memory-eternal 0.28.1 → 0.30.0

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/web/app.js CHANGED
@@ -1,22 +1,22 @@
1
- (()=>{var ug=Object.create;var Ld=Object.defineProperty;var pg=Object.getOwnPropertyDescriptor;var mg=Object.getOwnPropertyNames;var fg=Object.getPrototypeOf,gg=Object.prototype.hasOwnProperty;var Yn=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var hg=(e,t,n,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of mg(t))!gg.call(e,o)&&o!==n&&Ld(e,o,{get:()=>t[o],enumerable:!(a=pg(t,o))||a.enumerable});return e};var dr=(e,t,n)=>(n=e!=null?ug(fg(e)):{},hg(t||!e||!e.__esModule?Ld(n,"default",{value:e,enumerable:!0}):n,e));var Ud=Yn(De=>{"use strict";var Ua=Symbol.for("react.element"),yg=Symbol.for("react.portal"),vg=Symbol.for("react.fragment"),bg=Symbol.for("react.strict_mode"),wg=Symbol.for("react.profiler"),xg=Symbol.for("react.provider"),kg=Symbol.for("react.context"),Sg=Symbol.for("react.forward_ref"),Cg=Symbol.for("react.suspense"),Ng=Symbol.for("react.memo"),Tg=Symbol.for("react.lazy"),Dd=Symbol.iterator;function Mg(e){return e===null||typeof e!="object"?null:(e=Dd&&e[Dd]||e["@@iterator"],typeof e=="function"?e:null)}var Fd={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Id=Object.assign,_d={};function ia(e,t,n){this.props=e,this.context=t,this.refs=_d,this.updater=n||Fd}ia.prototype.isReactComponent={};ia.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};ia.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Od(){}Od.prototype=ia.prototype;function Al(e,t,n){this.props=e,this.context=t,this.refs=_d,this.updater=n||Fd}var Fl=Al.prototype=new Od;Fl.constructor=Al;Id(Fl,ia.prototype);Fl.isPureReactComponent=!0;var Pd=Array.isArray,jd=Object.prototype.hasOwnProperty,Il={current:null},Bd={key:!0,ref:!0,__self:!0,__source:!0};function Hd(e,t,n){var a,o={},i=null,l=null;if(t!=null)for(a in t.ref!==void 0&&(l=t.ref),t.key!==void 0&&(i=""+t.key),t)jd.call(t,a)&&!Bd.hasOwnProperty(a)&&(o[a]=t[a]);var s=arguments.length-2;if(s===1)o.children=n;else if(1<s){for(var c=Array(s),u=0;u<s;u++)c[u]=arguments[u+2];o.children=c}if(e&&e.defaultProps)for(a in s=e.defaultProps,s)o[a]===void 0&&(o[a]=s[a]);return{$$typeof:Ua,type:e,key:i,ref:l,props:o,_owner:Il.current}}function Eg(e,t){return{$$typeof:Ua,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function _l(e){return typeof e=="object"&&e!==null&&e.$$typeof===Ua}function zg(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Ad=/\/+/g;function Pl(e,t){return typeof e=="object"&&e!==null&&e.key!=null?zg(""+e.key):t.toString(36)}function Go(e,t,n,a,o){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var l=!1;if(e===null)l=!0;else switch(i){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case Ua:case yg:l=!0}}if(l)return l=e,o=o(l),e=a===""?"."+Pl(l,0):a,Pd(o)?(n="",e!=null&&(n=e.replace(Ad,"$&/")+"/"),Go(o,t,n,"",function(u){return u})):o!=null&&(_l(o)&&(o=Eg(o,n+(!o.key||l&&l.key===o.key?"":(""+o.key).replace(Ad,"$&/")+"/")+e)),t.push(o)),1;if(l=0,a=a===""?".":a+":",Pd(e))for(var s=0;s<e.length;s++){i=e[s];var c=a+Pl(i,s);l+=Go(i,t,n,c,o)}else if(c=Mg(e),typeof c=="function")for(e=c.call(e),s=0;!(i=e.next()).done;)i=i.value,c=a+Pl(i,s++),l+=Go(i,t,n,c,o);else if(i==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function Vo(e,t,n){if(e==null)return e;var a=[],o=0;return Go(e,a,"","",function(i){return t.call(n,i,o++)}),a}function Rg(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var $t={current:null},Ko={transition:null},Lg={ReactCurrentDispatcher:$t,ReactCurrentBatchConfig:Ko,ReactCurrentOwner:Il};function Wd(){throw Error("act(...) is not supported in production builds of React.")}De.Children={map:Vo,forEach:function(e,t,n){Vo(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Vo(e,function(){t++}),t},toArray:function(e){return Vo(e,function(t){return t})||[]},only:function(e){if(!_l(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};De.Component=ia;De.Fragment=vg;De.Profiler=wg;De.PureComponent=Al;De.StrictMode=bg;De.Suspense=Cg;De.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Lg;De.act=Wd;De.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var a=Id({},e.props),o=e.key,i=e.ref,l=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,l=Il.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(c in t)jd.call(t,c)&&!Bd.hasOwnProperty(c)&&(a[c]=t[c]===void 0&&s!==void 0?s[c]:t[c])}var c=arguments.length-2;if(c===1)a.children=n;else if(1<c){s=Array(c);for(var u=0;u<c;u++)s[u]=arguments[u+2];a.children=s}return{$$typeof:Ua,type:e.type,key:o,ref:i,props:a,_owner:l}};De.createContext=function(e){return e={$$typeof:kg,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:xg,_context:e},e.Consumer=e};De.createElement=Hd;De.createFactory=function(e){var t=Hd.bind(null,e);return t.type=e,t};De.createRef=function(){return{current:null}};De.forwardRef=function(e){return{$$typeof:Sg,render:e}};De.isValidElement=_l;De.lazy=function(e){return{$$typeof:Tg,_payload:{_status:-1,_result:e},_init:Rg}};De.memo=function(e,t){return{$$typeof:Ng,type:e,compare:t===void 0?null:t}};De.startTransition=function(e){var t=Ko.transition;Ko.transition={};try{e()}finally{Ko.transition=t}};De.unstable_act=Wd;De.useCallback=function(e,t){return $t.current.useCallback(e,t)};De.useContext=function(e){return $t.current.useContext(e)};De.useDebugValue=function(){};De.useDeferredValue=function(e){return $t.current.useDeferredValue(e)};De.useEffect=function(e,t){return $t.current.useEffect(e,t)};De.useId=function(){return $t.current.useId()};De.useImperativeHandle=function(e,t,n){return $t.current.useImperativeHandle(e,t,n)};De.useInsertionEffect=function(e,t){return $t.current.useInsertionEffect(e,t)};De.useLayoutEffect=function(e,t){return $t.current.useLayoutEffect(e,t)};De.useMemo=function(e,t){return $t.current.useMemo(e,t)};De.useReducer=function(e,t,n){return $t.current.useReducer(e,t,n)};De.useRef=function(e){return $t.current.useRef(e)};De.useState=function(e){return $t.current.useState(e)};De.useSyncExternalStore=function(e,t,n){return $t.current.useSyncExternalStore(e,t,n)};De.useTransition=function(){return $t.current.useTransition()};De.version="18.3.1"});var $a=Yn((Gv,$d)=>{"use strict";$d.exports=Ud()});var eu=Yn(Je=>{"use strict";function Hl(e,t){var n=e.length;e.push(t);e:for(;0<n;){var a=n-1>>>1,o=e[a];if(0<qo(o,t))e[a]=t,e[n]=o,n=a;else break e}}function En(e){return e.length===0?null:e[0]}function Qo(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var a=0,o=e.length,i=o>>>1;a<i;){var l=2*(a+1)-1,s=e[l],c=l+1,u=e[c];if(0>qo(s,n))c<o&&0>qo(u,s)?(e[a]=u,e[c]=n,a=c):(e[a]=s,e[l]=n,a=l);else if(c<o&&0>qo(u,n))e[a]=u,e[c]=n,a=c;else break e}}return t}function qo(e,t){var n=e.sortIndex-t.sortIndex;return n!==0?n:e.id-t.id}typeof performance=="object"&&typeof performance.now=="function"?(Vd=performance,Je.unstable_now=function(){return Vd.now()}):(Ol=Date,Gd=Ol.now(),Je.unstable_now=function(){return Ol.now()-Gd});var Vd,Ol,Gd,Hn=[],ur=[],Dg=1,mn=null,Pt=3,Xo=!1,jr=!1,Ga=!1,Yd=typeof setTimeout=="function"?setTimeout:null,Qd=typeof clearTimeout=="function"?clearTimeout:null,Kd=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function Wl(e){for(var t=En(ur);t!==null;){if(t.callback===null)Qo(ur);else if(t.startTime<=e)Qo(ur),t.sortIndex=t.expirationTime,Hl(Hn,t);else break;t=En(ur)}}function Ul(e){if(Ga=!1,Wl(e),!jr)if(En(Hn)!==null)jr=!0,Vl($l);else{var t=En(ur);t!==null&&Gl(Ul,t.startTime-e)}}function $l(e,t){jr=!1,Ga&&(Ga=!1,Qd(Ka),Ka=-1),Xo=!0;var n=Pt;try{for(Wl(t),mn=En(Hn);mn!==null&&(!(mn.expirationTime>t)||e&&!Zd());){var a=mn.callback;if(typeof a=="function"){mn.callback=null,Pt=mn.priorityLevel;var o=a(mn.expirationTime<=t);t=Je.unstable_now(),typeof o=="function"?mn.callback=o:mn===En(Hn)&&Qo(Hn),Wl(t)}else Qo(Hn);mn=En(Hn)}if(mn!==null)var i=!0;else{var l=En(ur);l!==null&&Gl(Ul,l.startTime-t),i=!1}return i}finally{mn=null,Pt=n,Xo=!1}}var Jo=!1,Yo=null,Ka=-1,Xd=5,Jd=-1;function Zd(){return!(Je.unstable_now()-Jd<Xd)}function jl(){if(Yo!==null){var e=Je.unstable_now();Jd=e;var t=!0;try{t=Yo(!0,e)}finally{t?Va():(Jo=!1,Yo=null)}}else Jo=!1}var Va;typeof Kd=="function"?Va=function(){Kd(jl)}:typeof MessageChannel<"u"?(Bl=new MessageChannel,qd=Bl.port2,Bl.port1.onmessage=jl,Va=function(){qd.postMessage(null)}):Va=function(){Yd(jl,0)};var Bl,qd;function Vl(e){Yo=e,Jo||(Jo=!0,Va())}function Gl(e,t){Ka=Yd(function(){e(Je.unstable_now())},t)}Je.unstable_IdlePriority=5;Je.unstable_ImmediatePriority=1;Je.unstable_LowPriority=4;Je.unstable_NormalPriority=3;Je.unstable_Profiling=null;Je.unstable_UserBlockingPriority=2;Je.unstable_cancelCallback=function(e){e.callback=null};Je.unstable_continueExecution=function(){jr||Xo||(jr=!0,Vl($l))};Je.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Xd=0<e?Math.floor(1e3/e):5};Je.unstable_getCurrentPriorityLevel=function(){return Pt};Je.unstable_getFirstCallbackNode=function(){return En(Hn)};Je.unstable_next=function(e){switch(Pt){case 1:case 2:case 3:var t=3;break;default:t=Pt}var n=Pt;Pt=t;try{return e()}finally{Pt=n}};Je.unstable_pauseExecution=function(){};Je.unstable_requestPaint=function(){};Je.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=Pt;Pt=e;try{return t()}finally{Pt=n}};Je.unstable_scheduleCallback=function(e,t,n){var a=Je.unstable_now();switch(typeof n=="object"&&n!==null?(n=n.delay,n=typeof n=="number"&&0<n?a+n:a):n=a,e){case 1:var o=-1;break;case 2:o=250;break;case 5:o=1073741823;break;case 4:o=1e4;break;default:o=5e3}return o=n+o,e={id:Dg++,callback:t,priorityLevel:e,startTime:n,expirationTime:o,sortIndex:-1},n>a?(e.sortIndex=n,Hl(ur,e),En(Hn)===null&&e===En(ur)&&(Ga?(Qd(Ka),Ka=-1):Ga=!0,Gl(Ul,n-a))):(e.sortIndex=o,Hl(Hn,e),jr||Xo||(jr=!0,Vl($l))),e};Je.unstable_shouldYield=Zd;Je.unstable_wrapCallback=function(e){var t=Pt;return function(){var n=Pt;Pt=t;try{return e.apply(this,arguments)}finally{Pt=n}}}});var nu=Yn((qv,tu)=>{"use strict";tu.exports=eu()});var lf=Yn(un=>{"use strict";var Pg=$a(),cn=nu();function Q(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var cp=new Set,ho={};function Jr(e,t){Ma(e,t),Ma(e+"Capture",t)}function Ma(e,t){for(ho[e]=t,e=0;e<t.length;e++)cp.add(t[e])}var tr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),gs=Object.prototype.hasOwnProperty,Ag=/^[: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]*$/,ru={},au={};function Fg(e){return gs.call(au,e)?!0:gs.call(ru,e)?!1:Ag.test(e)?au[e]=!0:(ru[e]=!0,!1)}function Ig(e,t,n,a){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return a?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function _g(e,t,n,a){if(t===null||typeof t>"u"||Ig(e,t,n,a))return!0;if(a)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Kt(e,t,n,a,o,i,l){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=a,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=l}var Lt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Lt[e]=new Kt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Lt[t]=new Kt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Lt[e]=new Kt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Lt[e]=new Kt(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Lt[e]=new Kt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Lt[e]=new Kt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Lt[e]=new Kt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Lt[e]=new Kt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Lt[e]=new Kt(e,5,!1,e.toLowerCase(),null,!1,!1)});var lc=/[\-:]([a-z])/g;function sc(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(lc,sc);Lt[t]=new Kt(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(lc,sc);Lt[t]=new Kt(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(lc,sc);Lt[t]=new Kt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Lt[e]=new Kt(e,1,!1,e.toLowerCase(),null,!1,!1)});Lt.xlinkHref=new Kt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Lt[e]=new Kt(e,1,!1,e.toLowerCase(),null,!0,!0)});function cc(e,t,n,a){var o=Lt.hasOwnProperty(t)?Lt[t]:null;(o!==null?o.type!==0:a||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(_g(t,n,o,a)&&(n=null),a||o===null?Fg(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=n===null?o.type===3?!1:"":n:(t=o.attributeName,a=o.attributeNamespace,n===null?e.removeAttribute(t):(o=o.type,n=o===3||o===4&&n===!0?"":""+n,a?e.setAttributeNS(a,t,n):e.setAttribute(t,n))))}var or=Pg.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Zo=Symbol.for("react.element"),ca=Symbol.for("react.portal"),da=Symbol.for("react.fragment"),dc=Symbol.for("react.strict_mode"),hs=Symbol.for("react.profiler"),dp=Symbol.for("react.provider"),up=Symbol.for("react.context"),uc=Symbol.for("react.forward_ref"),ys=Symbol.for("react.suspense"),vs=Symbol.for("react.suspense_list"),pc=Symbol.for("react.memo"),mr=Symbol.for("react.lazy");Symbol.for("react.scope");Symbol.for("react.debug_trace_mode");var pp=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden");Symbol.for("react.cache");Symbol.for("react.tracing_marker");var ou=Symbol.iterator;function qa(e){return e===null||typeof e!="object"?null:(e=ou&&e[ou]||e["@@iterator"],typeof e=="function"?e:null)}var ct=Object.assign,Kl;function no(e){if(Kl===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Kl=t&&t[1]||""}return`
2
- `+Kl+e}var ql=!1;function Yl(e,t){if(!e||ql)return"";ql=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var a=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){a=u}e.call(t.prototype)}else{try{throw Error()}catch(u){a=u}e()}}catch(u){if(u&&a&&typeof u.stack=="string"){for(var o=u.stack.split(`
1
+ (()=>{var pg=Object.create;var Dd=Object.defineProperty;var mg=Object.getOwnPropertyDescriptor;var fg=Object.getOwnPropertyNames;var gg=Object.getPrototypeOf,hg=Object.prototype.hasOwnProperty;var Yn=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var yg=(e,t,n,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of fg(t))!hg.call(e,o)&&o!==n&&Dd(e,o,{get:()=>t[o],enumerable:!(a=mg(t,o))||a.enumerable});return e};var dr=(e,t,n)=>(n=e!=null?pg(gg(e)):{},yg(t||!e||!e.__esModule?Dd(n,"default",{value:e,enumerable:!0}):n,e));var $d=Yn(Fe=>{"use strict";var Wa=Symbol.for("react.element"),vg=Symbol.for("react.portal"),bg=Symbol.for("react.fragment"),wg=Symbol.for("react.strict_mode"),xg=Symbol.for("react.profiler"),kg=Symbol.for("react.provider"),Sg=Symbol.for("react.context"),Cg=Symbol.for("react.forward_ref"),Ng=Symbol.for("react.suspense"),Tg=Symbol.for("react.memo"),Mg=Symbol.for("react.lazy"),Pd=Symbol.iterator;function Eg(e){return e===null||typeof e!="object"?null:(e=Pd&&e[Pd]||e["@@iterator"],typeof e=="function"?e:null)}var Id={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_d=Object.assign,Od={};function oa(e,t,n){this.props=e,this.context=t,this.refs=Od,this.updater=n||Id}oa.prototype.isReactComponent={};oa.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};oa.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function jd(){}jd.prototype=oa.prototype;function Fl(e,t,n){this.props=e,this.context=t,this.refs=Od,this.updater=n||Id}var Il=Fl.prototype=new jd;Il.constructor=Fl;_d(Il,oa.prototype);Il.isPureReactComponent=!0;var Ad=Array.isArray,Bd=Object.prototype.hasOwnProperty,_l={current:null},Hd={key:!0,ref:!0,__self:!0,__source:!0};function Wd(e,t,n){var a,o={},i=null,l=null;if(t!=null)for(a in t.ref!==void 0&&(l=t.ref),t.key!==void 0&&(i=""+t.key),t)Bd.call(t,a)&&!Hd.hasOwnProperty(a)&&(o[a]=t[a]);var s=arguments.length-2;if(s===1)o.children=n;else if(1<s){for(var c=Array(s),u=0;u<s;u++)c[u]=arguments[u+2];o.children=c}if(e&&e.defaultProps)for(a in s=e.defaultProps,s)o[a]===void 0&&(o[a]=s[a]);return{$$typeof:Wa,type:e,key:i,ref:l,props:o,_owner:_l.current}}function zg(e,t){return{$$typeof:Wa,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Ol(e){return typeof e=="object"&&e!==null&&e.$$typeof===Wa}function Rg(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Fd=/\/+/g;function Al(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Rg(""+e.key):t.toString(36)}function Go(e,t,n,a,o){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var l=!1;if(e===null)l=!0;else switch(i){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case Wa:case vg:l=!0}}if(l)return l=e,o=o(l),e=a===""?"."+Al(l,0):a,Ad(o)?(n="",e!=null&&(n=e.replace(Fd,"$&/")+"/"),Go(o,t,n,"",function(u){return u})):o!=null&&(Ol(o)&&(o=zg(o,n+(!o.key||l&&l.key===o.key?"":(""+o.key).replace(Fd,"$&/")+"/")+e)),t.push(o)),1;if(l=0,a=a===""?".":a+":",Ad(e))for(var s=0;s<e.length;s++){i=e[s];var c=a+Al(i,s);l+=Go(i,t,n,c,o)}else if(c=Eg(e),typeof c=="function")for(e=c.call(e),s=0;!(i=e.next()).done;)i=i.value,c=a+Al(i,s++),l+=Go(i,t,n,c,o);else if(i==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function Vo(e,t,n){if(e==null)return e;var a=[],o=0;return Go(e,a,"","",function(i){return t.call(n,i,o++)}),a}function Lg(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var $t={current:null},Ko={transition:null},Dg={ReactCurrentDispatcher:$t,ReactCurrentBatchConfig:Ko,ReactCurrentOwner:_l};function Ud(){throw Error("act(...) is not supported in production builds of React.")}Fe.Children={map:Vo,forEach:function(e,t,n){Vo(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Vo(e,function(){t++}),t},toArray:function(e){return Vo(e,function(t){return t})||[]},only:function(e){if(!Ol(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Fe.Component=oa;Fe.Fragment=bg;Fe.Profiler=xg;Fe.PureComponent=Fl;Fe.StrictMode=wg;Fe.Suspense=Ng;Fe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Dg;Fe.act=Ud;Fe.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var a=_d({},e.props),o=e.key,i=e.ref,l=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,l=_l.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(c in t)Bd.call(t,c)&&!Hd.hasOwnProperty(c)&&(a[c]=t[c]===void 0&&s!==void 0?s[c]:t[c])}var c=arguments.length-2;if(c===1)a.children=n;else if(1<c){s=Array(c);for(var u=0;u<c;u++)s[u]=arguments[u+2];a.children=s}return{$$typeof:Wa,type:e.type,key:o,ref:i,props:a,_owner:l}};Fe.createContext=function(e){return e={$$typeof:Sg,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:kg,_context:e},e.Consumer=e};Fe.createElement=Wd;Fe.createFactory=function(e){var t=Wd.bind(null,e);return t.type=e,t};Fe.createRef=function(){return{current:null}};Fe.forwardRef=function(e){return{$$typeof:Cg,render:e}};Fe.isValidElement=Ol;Fe.lazy=function(e){return{$$typeof:Mg,_payload:{_status:-1,_result:e},_init:Lg}};Fe.memo=function(e,t){return{$$typeof:Tg,type:e,compare:t===void 0?null:t}};Fe.startTransition=function(e){var t=Ko.transition;Ko.transition={};try{e()}finally{Ko.transition=t}};Fe.unstable_act=Ud;Fe.useCallback=function(e,t){return $t.current.useCallback(e,t)};Fe.useContext=function(e){return $t.current.useContext(e)};Fe.useDebugValue=function(){};Fe.useDeferredValue=function(e){return $t.current.useDeferredValue(e)};Fe.useEffect=function(e,t){return $t.current.useEffect(e,t)};Fe.useId=function(){return $t.current.useId()};Fe.useImperativeHandle=function(e,t,n){return $t.current.useImperativeHandle(e,t,n)};Fe.useInsertionEffect=function(e,t){return $t.current.useInsertionEffect(e,t)};Fe.useLayoutEffect=function(e,t){return $t.current.useLayoutEffect(e,t)};Fe.useMemo=function(e,t){return $t.current.useMemo(e,t)};Fe.useReducer=function(e,t,n){return $t.current.useReducer(e,t,n)};Fe.useRef=function(e){return $t.current.useRef(e)};Fe.useState=function(e){return $t.current.useState(e)};Fe.useSyncExternalStore=function(e,t,n){return $t.current.useSyncExternalStore(e,t,n)};Fe.useTransition=function(){return $t.current.useTransition()};Fe.version="18.3.1"});var Ua=Yn((K0,Vd)=>{"use strict";Vd.exports=$d()});var tu=Yn(Je=>{"use strict";function Wl(e,t){var n=e.length;e.push(t);e:for(;0<n;){var a=n-1>>>1,o=e[a];if(0<qo(o,t))e[a]=t,e[n]=o,n=a;else break e}}function En(e){return e.length===0?null:e[0]}function Qo(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var a=0,o=e.length,i=o>>>1;a<i;){var l=2*(a+1)-1,s=e[l],c=l+1,u=e[c];if(0>qo(s,n))c<o&&0>qo(u,s)?(e[a]=u,e[c]=n,a=c):(e[a]=s,e[l]=n,a=l);else if(c<o&&0>qo(u,n))e[a]=u,e[c]=n,a=c;else break e}}return t}function qo(e,t){var n=e.sortIndex-t.sortIndex;return n!==0?n:e.id-t.id}typeof performance=="object"&&typeof performance.now=="function"?(Gd=performance,Je.unstable_now=function(){return Gd.now()}):(jl=Date,Kd=jl.now(),Je.unstable_now=function(){return jl.now()-Kd});var Gd,jl,Kd,Hn=[],ur=[],Pg=1,fn=null,Pt=3,Xo=!1,jr=!1,Va=!1,Qd=typeof setTimeout=="function"?setTimeout:null,Xd=typeof clearTimeout=="function"?clearTimeout:null,qd=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function Ul(e){for(var t=En(ur);t!==null;){if(t.callback===null)Qo(ur);else if(t.startTime<=e)Qo(ur),t.sortIndex=t.expirationTime,Wl(Hn,t);else break;t=En(ur)}}function $l(e){if(Va=!1,Ul(e),!jr)if(En(Hn)!==null)jr=!0,Gl(Vl);else{var t=En(ur);t!==null&&Kl($l,t.startTime-e)}}function Vl(e,t){jr=!1,Va&&(Va=!1,Xd(Ga),Ga=-1),Xo=!0;var n=Pt;try{for(Ul(t),fn=En(Hn);fn!==null&&(!(fn.expirationTime>t)||e&&!eu());){var a=fn.callback;if(typeof a=="function"){fn.callback=null,Pt=fn.priorityLevel;var o=a(fn.expirationTime<=t);t=Je.unstable_now(),typeof o=="function"?fn.callback=o:fn===En(Hn)&&Qo(Hn),Ul(t)}else Qo(Hn);fn=En(Hn)}if(fn!==null)var i=!0;else{var l=En(ur);l!==null&&Kl($l,l.startTime-t),i=!1}return i}finally{fn=null,Pt=n,Xo=!1}}var Jo=!1,Yo=null,Ga=-1,Jd=5,Zd=-1;function eu(){return!(Je.unstable_now()-Zd<Jd)}function Bl(){if(Yo!==null){var e=Je.unstable_now();Zd=e;var t=!0;try{t=Yo(!0,e)}finally{t?$a():(Jo=!1,Yo=null)}}else Jo=!1}var $a;typeof qd=="function"?$a=function(){qd(Bl)}:typeof MessageChannel<"u"?(Hl=new MessageChannel,Yd=Hl.port2,Hl.port1.onmessage=Bl,$a=function(){Yd.postMessage(null)}):$a=function(){Qd(Bl,0)};var Hl,Yd;function Gl(e){Yo=e,Jo||(Jo=!0,$a())}function Kl(e,t){Ga=Qd(function(){e(Je.unstable_now())},t)}Je.unstable_IdlePriority=5;Je.unstable_ImmediatePriority=1;Je.unstable_LowPriority=4;Je.unstable_NormalPriority=3;Je.unstable_Profiling=null;Je.unstable_UserBlockingPriority=2;Je.unstable_cancelCallback=function(e){e.callback=null};Je.unstable_continueExecution=function(){jr||Xo||(jr=!0,Gl(Vl))};Je.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Jd=0<e?Math.floor(1e3/e):5};Je.unstable_getCurrentPriorityLevel=function(){return Pt};Je.unstable_getFirstCallbackNode=function(){return En(Hn)};Je.unstable_next=function(e){switch(Pt){case 1:case 2:case 3:var t=3;break;default:t=Pt}var n=Pt;Pt=t;try{return e()}finally{Pt=n}};Je.unstable_pauseExecution=function(){};Je.unstable_requestPaint=function(){};Je.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=Pt;Pt=e;try{return t()}finally{Pt=n}};Je.unstable_scheduleCallback=function(e,t,n){var a=Je.unstable_now();switch(typeof n=="object"&&n!==null?(n=n.delay,n=typeof n=="number"&&0<n?a+n:a):n=a,e){case 1:var o=-1;break;case 2:o=250;break;case 5:o=1073741823;break;case 4:o=1e4;break;default:o=5e3}return o=n+o,e={id:Pg++,callback:t,priorityLevel:e,startTime:n,expirationTime:o,sortIndex:-1},n>a?(e.sortIndex=n,Wl(ur,e),En(Hn)===null&&e===En(ur)&&(Va?(Xd(Ga),Ga=-1):Va=!0,Kl($l,n-a))):(e.sortIndex=o,Wl(Hn,e),jr||Xo||(jr=!0,Gl(Vl))),e};Je.unstable_shouldYield=eu;Je.unstable_wrapCallback=function(e){var t=Pt;return function(){var n=Pt;Pt=t;try{return e.apply(this,arguments)}finally{Pt=n}}}});var ru=Yn((Y0,nu)=>{"use strict";nu.exports=tu()});var sf=Yn(un=>{"use strict";var Ag=Ua(),cn=ru();function X(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var dp=new Set,go={};function Jr(e,t){Ta(e,t),Ta(e+"Capture",t)}function Ta(e,t){for(go[e]=t,e=0;e<t.length;e++)dp.add(t[e])}var tr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),hs=Object.prototype.hasOwnProperty,Fg=/^[: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]*$/,au={},ou={};function Ig(e){return hs.call(ou,e)?!0:hs.call(au,e)?!1:Fg.test(e)?ou[e]=!0:(au[e]=!0,!1)}function _g(e,t,n,a){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return a?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Og(e,t,n,a){if(t===null||typeof t>"u"||_g(e,t,n,a))return!0;if(a)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Kt(e,t,n,a,o,i,l){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=a,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=l}var Lt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Lt[e]=new Kt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Lt[t]=new Kt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Lt[e]=new Kt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Lt[e]=new Kt(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Lt[e]=new Kt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Lt[e]=new Kt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Lt[e]=new Kt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Lt[e]=new Kt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Lt[e]=new Kt(e,5,!1,e.toLowerCase(),null,!1,!1)});var sc=/[\-:]([a-z])/g;function cc(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(sc,cc);Lt[t]=new Kt(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(sc,cc);Lt[t]=new Kt(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(sc,cc);Lt[t]=new Kt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Lt[e]=new Kt(e,1,!1,e.toLowerCase(),null,!1,!1)});Lt.xlinkHref=new Kt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Lt[e]=new Kt(e,1,!1,e.toLowerCase(),null,!0,!0)});function dc(e,t,n,a){var o=Lt.hasOwnProperty(t)?Lt[t]:null;(o!==null?o.type!==0:a||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(Og(t,n,o,a)&&(n=null),a||o===null?Ig(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=n===null?o.type===3?!1:"":n:(t=o.attributeName,a=o.attributeNamespace,n===null?e.removeAttribute(t):(o=o.type,n=o===3||o===4&&n===!0?"":""+n,a?e.setAttributeNS(a,t,n):e.setAttribute(t,n))))}var or=Ag.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Zo=Symbol.for("react.element"),sa=Symbol.for("react.portal"),ca=Symbol.for("react.fragment"),uc=Symbol.for("react.strict_mode"),ys=Symbol.for("react.profiler"),up=Symbol.for("react.provider"),pp=Symbol.for("react.context"),pc=Symbol.for("react.forward_ref"),vs=Symbol.for("react.suspense"),bs=Symbol.for("react.suspense_list"),mc=Symbol.for("react.memo"),mr=Symbol.for("react.lazy");Symbol.for("react.scope");Symbol.for("react.debug_trace_mode");var mp=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden");Symbol.for("react.cache");Symbol.for("react.tracing_marker");var iu=Symbol.iterator;function Ka(e){return e===null||typeof e!="object"?null:(e=iu&&e[iu]||e["@@iterator"],typeof e=="function"?e:null)}var ct=Object.assign,ql;function to(e){if(ql===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);ql=t&&t[1]||""}return`
2
+ `+ql+e}var Yl=!1;function Ql(e,t){if(!e||Yl)return"";Yl=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var a=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){a=u}e.call(t.prototype)}else{try{throw Error()}catch(u){a=u}e()}}catch(u){if(u&&a&&typeof u.stack=="string"){for(var o=u.stack.split(`
3
3
  `),i=a.stack.split(`
4
4
  `),l=o.length-1,s=i.length-1;1<=l&&0<=s&&o[l]!==i[s];)s--;for(;1<=l&&0<=s;l--,s--)if(o[l]!==i[s]){if(l!==1||s!==1)do if(l--,s--,0>s||o[l]!==i[s]){var c=`
5
- `+o[l].replace(" at new "," at ");return e.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",e.displayName)),c}while(1<=l&&0<=s);break}}}finally{ql=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?no(e):""}function Og(e){switch(e.tag){case 5:return no(e.type);case 16:return no("Lazy");case 13:return no("Suspense");case 19:return no("SuspenseList");case 0:case 2:case 15:return e=Yl(e.type,!1),e;case 11:return e=Yl(e.type.render,!1),e;case 1:return e=Yl(e.type,!0),e;default:return""}}function bs(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case da:return"Fragment";case ca:return"Portal";case hs:return"Profiler";case dc:return"StrictMode";case ys:return"Suspense";case vs:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case up:return(e.displayName||"Context")+".Consumer";case dp:return(e._context.displayName||"Context")+".Provider";case uc:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case pc:return t=e.displayName||null,t!==null?t:bs(e.type)||"Memo";case mr:t=e._payload,e=e._init;try{return bs(e(t))}catch{}}return null}function jg(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return bs(t);case 8:return t===dc?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Mr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function mp(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Bg(e){var t=mp(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),a=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(l){a=""+l,i.call(this,l)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return a},setValue:function(l){a=""+l},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ei(e){e._valueTracker||(e._valueTracker=Bg(e))}function fp(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),a="";return e&&(a=mp(e)?e.checked?"true":"false":e.value),e=a,e!==n?(t.setValue(e),!0):!1}function Ei(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function ws(e,t){var n=t.checked;return ct({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function iu(e,t){var n=t.defaultValue==null?"":t.defaultValue,a=t.checked!=null?t.checked:t.defaultChecked;n=Mr(t.value!=null?t.value:n),e._wrapperState={initialChecked:a,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function gp(e,t){t=t.checked,t!=null&&cc(e,"checked",t,!1)}function xs(e,t){gp(e,t);var n=Mr(t.value),a=t.type;if(n!=null)a==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(a==="submit"||a==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?ks(e,t.type,n):t.hasOwnProperty("defaultValue")&&ks(e,t.type,Mr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function lu(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var a=t.type;if(!(a!=="submit"&&a!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function ks(e,t,n){(t!=="number"||Ei(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var ro=Array.isArray;function xa(e,t,n,a){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&a&&(e[n].defaultSelected=!0)}else{for(n=""+Mr(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,a&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function Ss(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(Q(91));return ct({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function su(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(Q(92));if(ro(n)){if(1<n.length)throw Error(Q(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Mr(n)}}function hp(e,t){var n=Mr(t.value),a=Mr(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),a!=null&&(e.defaultValue=""+a)}function cu(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function yp(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Cs(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?yp(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var ti,vp=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,a,o){MSApp.execUnsafeLocalFunction(function(){return e(t,n,a,o)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(ti=ti||document.createElement("div"),ti.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ti.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function yo(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var io={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Hg=["Webkit","ms","Moz","O"];Object.keys(io).forEach(function(e){Hg.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),io[t]=io[e]})});function bp(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||io.hasOwnProperty(e)&&io[e]?(""+t).trim():t+"px"}function wp(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var a=n.indexOf("--")===0,o=bp(n,t[n],a);n==="float"&&(n="cssFloat"),a?e.setProperty(n,o):e[n]=o}}var Wg=ct({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Ns(e,t){if(t){if(Wg[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Q(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Q(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Q(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Q(62))}}function Ts(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Ms=null;function mc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Es=null,ka=null,Sa=null;function du(e){if(e=Fo(e)){if(typeof Es!="function")throw Error(Q(280));var t=e.stateNode;t&&(t=nl(t),Es(e.stateNode,e.type,t))}}function xp(e){ka?Sa?Sa.push(e):Sa=[e]:ka=e}function kp(){if(ka){var e=ka,t=Sa;if(Sa=ka=null,du(e),t)for(e=0;e<t.length;e++)du(t[e])}}function Sp(e,t){return e(t)}function Cp(){}var Ql=!1;function Np(e,t,n){if(Ql)return e(t,n);Ql=!0;try{return Sp(e,t,n)}finally{Ql=!1,(ka!==null||Sa!==null)&&(Cp(),kp())}}function vo(e,t){var n=e.stateNode;if(n===null)return null;var a=nl(n);if(a===null)return null;n=a[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(Q(231,t,typeof n));return n}var zs=!1;if(tr)try{la={},Object.defineProperty(la,"passive",{get:function(){zs=!0}}),window.addEventListener("test",la,la),window.removeEventListener("test",la,la)}catch{zs=!1}var la;function Ug(e,t,n,a,o,i,l,s,c){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(p){this.onError(p)}}var lo=!1,zi=null,Ri=!1,Rs=null,$g={onError:function(e){lo=!0,zi=e}};function Vg(e,t,n,a,o,i,l,s,c){lo=!1,zi=null,Ug.apply($g,arguments)}function Gg(e,t,n,a,o,i,l,s,c){if(Vg.apply(this,arguments),lo){if(lo){var u=zi;lo=!1,zi=null}else throw Error(Q(198));Ri||(Ri=!0,Rs=u)}}function Zr(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function Tp(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function uu(e){if(Zr(e)!==e)throw Error(Q(188))}function Kg(e){var t=e.alternate;if(!t){if(t=Zr(e),t===null)throw Error(Q(188));return t!==e?null:e}for(var n=e,a=t;;){var o=n.return;if(o===null)break;var i=o.alternate;if(i===null){if(a=o.return,a!==null){n=a;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return uu(o),e;if(i===a)return uu(o),t;i=i.sibling}throw Error(Q(188))}if(n.return!==a.return)n=o,a=i;else{for(var l=!1,s=o.child;s;){if(s===n){l=!0,n=o,a=i;break}if(s===a){l=!0,a=o,n=i;break}s=s.sibling}if(!l){for(s=i.child;s;){if(s===n){l=!0,n=i,a=o;break}if(s===a){l=!0,a=i,n=o;break}s=s.sibling}if(!l)throw Error(Q(189))}}if(n.alternate!==a)throw Error(Q(190))}if(n.tag!==3)throw Error(Q(188));return n.stateNode.current===n?e:t}function Mp(e){return e=Kg(e),e!==null?Ep(e):null}function Ep(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Ep(e);if(t!==null)return t;e=e.sibling}return null}var zp=cn.unstable_scheduleCallback,pu=cn.unstable_cancelCallback,qg=cn.unstable_shouldYield,Yg=cn.unstable_requestPaint,ft=cn.unstable_now,Qg=cn.unstable_getCurrentPriorityLevel,fc=cn.unstable_ImmediatePriority,Rp=cn.unstable_UserBlockingPriority,Li=cn.unstable_NormalPriority,Xg=cn.unstable_LowPriority,Lp=cn.unstable_IdlePriority,Ji=null,Vn=null;function Jg(e){if(Vn&&typeof Vn.onCommitFiberRoot=="function")try{Vn.onCommitFiberRoot(Ji,e,void 0,(e.current.flags&128)===128)}catch{}}var Pn=Math.clz32?Math.clz32:th,Zg=Math.log,eh=Math.LN2;function th(e){return e>>>=0,e===0?32:31-(Zg(e)/eh|0)|0}var ni=64,ri=4194304;function ao(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Di(e,t){var n=e.pendingLanes;if(n===0)return 0;var a=0,o=e.suspendedLanes,i=e.pingedLanes,l=n&268435455;if(l!==0){var s=l&~o;s!==0?a=ao(s):(i&=l,i!==0&&(a=ao(i)))}else l=n&~o,l!==0?a=ao(l):i!==0&&(a=ao(i));if(a===0)return 0;if(t!==0&&t!==a&&!(t&o)&&(o=a&-a,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(a&4&&(a|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=a;0<t;)n=31-Pn(t),o=1<<n,a|=e[n],t&=~o;return a}function nh(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function rh(e,t){for(var n=e.suspendedLanes,a=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var l=31-Pn(i),s=1<<l,c=o[l];c===-1?(!(s&n)||s&a)&&(o[l]=nh(s,t)):c<=t&&(e.expiredLanes|=s),i&=~s}}function Ls(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Dp(){var e=ni;return ni<<=1,!(ni&4194240)&&(ni=64),e}function Xl(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Po(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Pn(t),e[t]=n}function ah(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var a=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-Pn(n),i=1<<o;t[o]=0,a[o]=-1,e[o]=-1,n&=~i}}function gc(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var a=31-Pn(n),o=1<<a;o&t|e[a]&t&&(e[a]|=t),n&=~o}}var qe=0;function Pp(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Ap,hc,Fp,Ip,_p,Ds=!1,ai=[],br=null,wr=null,xr=null,bo=new Map,wo=new Map,gr=[],oh="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function mu(e,t){switch(e){case"focusin":case"focusout":br=null;break;case"dragenter":case"dragleave":wr=null;break;case"mouseover":case"mouseout":xr=null;break;case"pointerover":case"pointerout":bo.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":wo.delete(t.pointerId)}}function Ya(e,t,n,a,o,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:a,nativeEvent:i,targetContainers:[o]},t!==null&&(t=Fo(t),t!==null&&hc(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function ih(e,t,n,a,o){switch(t){case"focusin":return br=Ya(br,e,t,n,a,o),!0;case"dragenter":return wr=Ya(wr,e,t,n,a,o),!0;case"mouseover":return xr=Ya(xr,e,t,n,a,o),!0;case"pointerover":var i=o.pointerId;return bo.set(i,Ya(bo.get(i)||null,e,t,n,a,o)),!0;case"gotpointercapture":return i=o.pointerId,wo.set(i,Ya(wo.get(i)||null,e,t,n,a,o)),!0}return!1}function Op(e){var t=Wr(e.target);if(t!==null){var n=Zr(t);if(n!==null){if(t=n.tag,t===13){if(t=Tp(n),t!==null){e.blockedOn=t,_p(e.priority,function(){Fp(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 vi(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Ps(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var a=new n.constructor(n.type,n);Ms=a,n.target.dispatchEvent(a),Ms=null}else return t=Fo(n),t!==null&&hc(t),e.blockedOn=n,!1;t.shift()}return!0}function fu(e,t,n){vi(e)&&n.delete(t)}function lh(){Ds=!1,br!==null&&vi(br)&&(br=null),wr!==null&&vi(wr)&&(wr=null),xr!==null&&vi(xr)&&(xr=null),bo.forEach(fu),wo.forEach(fu)}function Qa(e,t){e.blockedOn===t&&(e.blockedOn=null,Ds||(Ds=!0,cn.unstable_scheduleCallback(cn.unstable_NormalPriority,lh)))}function xo(e){function t(o){return Qa(o,e)}if(0<ai.length){Qa(ai[0],e);for(var n=1;n<ai.length;n++){var a=ai[n];a.blockedOn===e&&(a.blockedOn=null)}}for(br!==null&&Qa(br,e),wr!==null&&Qa(wr,e),xr!==null&&Qa(xr,e),bo.forEach(t),wo.forEach(t),n=0;n<gr.length;n++)a=gr[n],a.blockedOn===e&&(a.blockedOn=null);for(;0<gr.length&&(n=gr[0],n.blockedOn===null);)Op(n),n.blockedOn===null&&gr.shift()}var Ca=or.ReactCurrentBatchConfig,Pi=!0;function sh(e,t,n,a){var o=qe,i=Ca.transition;Ca.transition=null;try{qe=1,yc(e,t,n,a)}finally{qe=o,Ca.transition=i}}function ch(e,t,n,a){var o=qe,i=Ca.transition;Ca.transition=null;try{qe=4,yc(e,t,n,a)}finally{qe=o,Ca.transition=i}}function yc(e,t,n,a){if(Pi){var o=Ps(e,t,n,a);if(o===null)as(e,t,a,Ai,n),mu(e,a);else if(ih(o,e,t,n,a))a.stopPropagation();else if(mu(e,a),t&4&&-1<oh.indexOf(e)){for(;o!==null;){var i=Fo(o);if(i!==null&&Ap(i),i=Ps(e,t,n,a),i===null&&as(e,t,a,Ai,n),i===o)break;o=i}o!==null&&a.stopPropagation()}else as(e,t,a,null,n)}}var Ai=null;function Ps(e,t,n,a){if(Ai=null,e=mc(a),e=Wr(e),e!==null)if(t=Zr(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Tp(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 Ai=e,null}function jp(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Qg()){case fc:return 1;case Rp:return 4;case Li:case Xg:return 16;case Lp:return 536870912;default:return 16}default:return 16}}var yr=null,vc=null,bi=null;function Bp(){if(bi)return bi;var e,t=vc,n=t.length,a,o="value"in yr?yr.value:yr.textContent,i=o.length;for(e=0;e<n&&t[e]===o[e];e++);var l=n-e;for(a=1;a<=l&&t[n-a]===o[i-a];a++);return bi=o.slice(e,1<a?1-a:void 0)}function wi(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 oi(){return!0}function gu(){return!1}function dn(e){function t(n,a,o,i,l){this._reactName=n,this._targetInst=o,this.type=a,this.nativeEvent=i,this.target=l,this.currentTarget=null;for(var s in e)e.hasOwnProperty(s)&&(n=e[s],this[s]=n?n(i):i[s]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?oi:gu,this.isPropagationStopped=gu,this}return ct(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=oi)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=oi)},persist:function(){},isPersistent:oi}),t}var Aa={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},bc=dn(Aa),Ao=ct({},Aa,{view:0,detail:0}),dh=dn(Ao),Jl,Zl,Xa,Zi=ct({},Ao,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:wc,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!==Xa&&(Xa&&e.type==="mousemove"?(Jl=e.screenX-Xa.screenX,Zl=e.screenY-Xa.screenY):Zl=Jl=0,Xa=e),Jl)},movementY:function(e){return"movementY"in e?e.movementY:Zl}}),hu=dn(Zi),uh=ct({},Zi,{dataTransfer:0}),ph=dn(uh),mh=ct({},Ao,{relatedTarget:0}),es=dn(mh),fh=ct({},Aa,{animationName:0,elapsedTime:0,pseudoElement:0}),gh=dn(fh),hh=ct({},Aa,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),yh=dn(hh),vh=ct({},Aa,{data:0}),yu=dn(vh),bh={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},wh={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"},xh={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function kh(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=xh[e])?!!t[e]:!1}function wc(){return kh}var Sh=ct({},Ao,{key:function(e){if(e.key){var t=bh[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=wi(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?wh[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:wc,charCode:function(e){return e.type==="keypress"?wi(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?wi(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Ch=dn(Sh),Nh=ct({},Zi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),vu=dn(Nh),Th=ct({},Ao,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:wc}),Mh=dn(Th),Eh=ct({},Aa,{propertyName:0,elapsedTime:0,pseudoElement:0}),zh=dn(Eh),Rh=ct({},Zi,{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}),Lh=dn(Rh),Dh=[9,13,27,32],xc=tr&&"CompositionEvent"in window,so=null;tr&&"documentMode"in document&&(so=document.documentMode);var Ph=tr&&"TextEvent"in window&&!so,Hp=tr&&(!xc||so&&8<so&&11>=so),bu=" ",wu=!1;function Wp(e,t){switch(e){case"keyup":return Dh.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Up(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ua=!1;function Ah(e,t){switch(e){case"compositionend":return Up(t);case"keypress":return t.which!==32?null:(wu=!0,bu);case"textInput":return e=t.data,e===bu&&wu?null:e;default:return null}}function Fh(e,t){if(ua)return e==="compositionend"||!xc&&Wp(e,t)?(e=Bp(),bi=vc=yr=null,ua=!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 Hp&&t.locale!=="ko"?null:t.data;default:return null}}var Ih={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 xu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Ih[e.type]:t==="textarea"}function $p(e,t,n,a){xp(a),t=Fi(t,"onChange"),0<t.length&&(n=new bc("onChange","change",null,n,a),e.push({event:n,listeners:t}))}var co=null,ko=null;function _h(e){tm(e,0)}function el(e){var t=fa(e);if(fp(t))return e}function Oh(e,t){if(e==="change")return t}var Vp=!1;tr&&(tr?(li="oninput"in document,li||(ts=document.createElement("div"),ts.setAttribute("oninput","return;"),li=typeof ts.oninput=="function"),ii=li):ii=!1,Vp=ii&&(!document.documentMode||9<document.documentMode));var ii,li,ts;function ku(){co&&(co.detachEvent("onpropertychange",Gp),ko=co=null)}function Gp(e){if(e.propertyName==="value"&&el(ko)){var t=[];$p(t,ko,e,mc(e)),Np(_h,t)}}function jh(e,t,n){e==="focusin"?(ku(),co=t,ko=n,co.attachEvent("onpropertychange",Gp)):e==="focusout"&&ku()}function Bh(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return el(ko)}function Hh(e,t){if(e==="click")return el(t)}function Wh(e,t){if(e==="input"||e==="change")return el(t)}function Uh(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Fn=typeof Object.is=="function"?Object.is:Uh;function So(e,t){if(Fn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),a=Object.keys(t);if(n.length!==a.length)return!1;for(a=0;a<n.length;a++){var o=n[a];if(!gs.call(t,o)||!Fn(e[o],t[o]))return!1}return!0}function Su(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Cu(e,t){var n=Su(e);e=0;for(var a;n;){if(n.nodeType===3){if(a=e+n.textContent.length,e<=t&&a>=t)return{node:n,offset:t-e};e=a}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Su(n)}}function Kp(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Kp(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function qp(){for(var e=window,t=Ei();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ei(e.document)}return t}function kc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function $h(e){var t=qp(),n=e.focusedElem,a=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Kp(n.ownerDocument.documentElement,n)){if(a!==null&&kc(n)){if(t=a.start,e=a.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(a.start,o);a=a.end===void 0?i:Math.min(a.end,o),!e.extend&&i>a&&(o=a,a=i,i=o),o=Cu(n,i);var l=Cu(n,a);o&&l&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==l.node||e.focusOffset!==l.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>a?(e.addRange(t),e.extend(l.node,l.offset)):(t.setEnd(l.node,l.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Vh=tr&&"documentMode"in document&&11>=document.documentMode,pa=null,As=null,uo=null,Fs=!1;function Nu(e,t,n){var a=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Fs||pa==null||pa!==Ei(a)||(a=pa,"selectionStart"in a&&kc(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),uo&&So(uo,a)||(uo=a,a=Fi(As,"onSelect"),0<a.length&&(t=new bc("onSelect","select",null,t,n),e.push({event:t,listeners:a}),t.target=pa)))}function si(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var ma={animationend:si("Animation","AnimationEnd"),animationiteration:si("Animation","AnimationIteration"),animationstart:si("Animation","AnimationStart"),transitionend:si("Transition","TransitionEnd")},ns={},Yp={};tr&&(Yp=document.createElement("div").style,"AnimationEvent"in window||(delete ma.animationend.animation,delete ma.animationiteration.animation,delete ma.animationstart.animation),"TransitionEvent"in window||delete ma.transitionend.transition);function tl(e){if(ns[e])return ns[e];if(!ma[e])return e;var t=ma[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Yp)return ns[e]=t[n];return e}var Qp=tl("animationend"),Xp=tl("animationiteration"),Jp=tl("animationstart"),Zp=tl("transitionend"),em=new Map,Tu="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function zr(e,t){em.set(e,t),Jr(t,[e])}for(ci=0;ci<Tu.length;ci++)di=Tu[ci],Mu=di.toLowerCase(),Eu=di[0].toUpperCase()+di.slice(1),zr(Mu,"on"+Eu);var di,Mu,Eu,ci;zr(Qp,"onAnimationEnd");zr(Xp,"onAnimationIteration");zr(Jp,"onAnimationStart");zr("dblclick","onDoubleClick");zr("focusin","onFocus");zr("focusout","onBlur");zr(Zp,"onTransitionEnd");Ma("onMouseEnter",["mouseout","mouseover"]);Ma("onMouseLeave",["mouseout","mouseover"]);Ma("onPointerEnter",["pointerout","pointerover"]);Ma("onPointerLeave",["pointerout","pointerover"]);Jr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Jr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Jr("onBeforeInput",["compositionend","keypress","textInput","paste"]);Jr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Jr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Jr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var oo="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(" "),Gh=new Set("cancel close invalid load scroll toggle".split(" ").concat(oo));function zu(e,t,n){var a=e.type||"unknown-event";e.currentTarget=n,Gg(a,t,void 0,e),e.currentTarget=null}function tm(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var a=e[n],o=a.event;a=a.listeners;e:{var i=void 0;if(t)for(var l=a.length-1;0<=l;l--){var s=a[l],c=s.instance,u=s.currentTarget;if(s=s.listener,c!==i&&o.isPropagationStopped())break e;zu(o,s,u),i=c}else for(l=0;l<a.length;l++){if(s=a[l],c=s.instance,u=s.currentTarget,s=s.listener,c!==i&&o.isPropagationStopped())break e;zu(o,s,u),i=c}}}if(Ri)throw e=Rs,Ri=!1,Rs=null,e}function nt(e,t){var n=t[Bs];n===void 0&&(n=t[Bs]=new Set);var a=e+"__bubble";n.has(a)||(nm(t,e,2,!1),n.add(a))}function rs(e,t,n){var a=0;t&&(a|=4),nm(n,e,a,t)}var ui="_reactListening"+Math.random().toString(36).slice(2);function Co(e){if(!e[ui]){e[ui]=!0,cp.forEach(function(n){n!=="selectionchange"&&(Gh.has(n)||rs(n,!1,e),rs(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[ui]||(t[ui]=!0,rs("selectionchange",!1,t))}}function nm(e,t,n,a){switch(jp(t)){case 1:var o=sh;break;case 4:o=ch;break;default:o=yc}n=o.bind(null,t,n,e),o=void 0,!zs||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),a?o!==void 0?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):o!==void 0?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function as(e,t,n,a,o){var i=a;if(!(t&1)&&!(t&2)&&a!==null)e:for(;;){if(a===null)return;var l=a.tag;if(l===3||l===4){var s=a.stateNode.containerInfo;if(s===o||s.nodeType===8&&s.parentNode===o)break;if(l===4)for(l=a.return;l!==null;){var c=l.tag;if((c===3||c===4)&&(c=l.stateNode.containerInfo,c===o||c.nodeType===8&&c.parentNode===o))return;l=l.return}for(;s!==null;){if(l=Wr(s),l===null)return;if(c=l.tag,c===5||c===6){a=i=l;continue e}s=s.parentNode}}a=a.return}Np(function(){var u=i,p=mc(n),h=[];e:{var g=em.get(e);if(g!==void 0){var k=bc,L=e;switch(e){case"keypress":if(wi(n)===0)break e;case"keydown":case"keyup":k=Ch;break;case"focusin":L="focus",k=es;break;case"focusout":L="blur",k=es;break;case"beforeblur":case"afterblur":k=es;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":k=hu;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":k=ph;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":k=Mh;break;case Qp:case Xp:case Jp:k=gh;break;case Zp:k=zh;break;case"scroll":k=dh;break;case"wheel":k=Lh;break;case"copy":case"cut":case"paste":k=yh;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":k=vu}var R=(t&4)!==0,A=!R&&e==="scroll",v=R?g!==null?g+"Capture":null:g;R=[];for(var f=u,y;f!==null;){y=f;var P=y.stateNode;if(y.tag===5&&P!==null&&(y=P,v!==null&&(P=vo(f,v),P!=null&&R.push(No(f,P,y)))),A)break;f=f.return}0<R.length&&(g=new k(g,L,null,n,p),h.push({event:g,listeners:R}))}}if(!(t&7)){e:{if(g=e==="mouseover"||e==="pointerover",k=e==="mouseout"||e==="pointerout",g&&n!==Ms&&(L=n.relatedTarget||n.fromElement)&&(Wr(L)||L[nr]))break e;if((k||g)&&(g=p.window===p?p:(g=p.ownerDocument)?g.defaultView||g.parentWindow:window,k?(L=n.relatedTarget||n.toElement,k=u,L=L?Wr(L):null,L!==null&&(A=Zr(L),L!==A||L.tag!==5&&L.tag!==6)&&(L=null)):(k=null,L=u),k!==L)){if(R=hu,P="onMouseLeave",v="onMouseEnter",f="mouse",(e==="pointerout"||e==="pointerover")&&(R=vu,P="onPointerLeave",v="onPointerEnter",f="pointer"),A=k==null?g:fa(k),y=L==null?g:fa(L),g=new R(P,f+"leave",k,n,p),g.target=A,g.relatedTarget=y,P=null,Wr(p)===u&&(R=new R(v,f+"enter",L,n,p),R.target=y,R.relatedTarget=A,P=R),A=P,k&&L)t:{for(R=k,v=L,f=0,y=R;y;y=sa(y))f++;for(y=0,P=v;P;P=sa(P))y++;for(;0<f-y;)R=sa(R),f--;for(;0<y-f;)v=sa(v),y--;for(;f--;){if(R===v||v!==null&&R===v.alternate)break t;R=sa(R),v=sa(v)}R=null}else R=null;k!==null&&Ru(h,g,k,R,!1),L!==null&&A!==null&&Ru(h,A,L,R,!0)}}e:{if(g=u?fa(u):window,k=g.nodeName&&g.nodeName.toLowerCase(),k==="select"||k==="input"&&g.type==="file")var F=Oh;else if(xu(g))if(Vp)F=Wh;else{F=Bh;var z=jh}else(k=g.nodeName)&&k.toLowerCase()==="input"&&(g.type==="checkbox"||g.type==="radio")&&(F=Hh);if(F&&(F=F(e,u))){$p(h,F,n,p);break e}z&&z(e,g,u),e==="focusout"&&(z=g._wrapperState)&&z.controlled&&g.type==="number"&&ks(g,"number",g.value)}switch(z=u?fa(u):window,e){case"focusin":(xu(z)||z.contentEditable==="true")&&(pa=z,As=u,uo=null);break;case"focusout":uo=As=pa=null;break;case"mousedown":Fs=!0;break;case"contextmenu":case"mouseup":case"dragend":Fs=!1,Nu(h,n,p);break;case"selectionchange":if(Vh)break;case"keydown":case"keyup":Nu(h,n,p)}var I;if(xc)e:{switch(e){case"compositionstart":var _="onCompositionStart";break e;case"compositionend":_="onCompositionEnd";break e;case"compositionupdate":_="onCompositionUpdate";break e}_=void 0}else ua?Wp(e,n)&&(_="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(_="onCompositionStart");_&&(Hp&&n.locale!=="ko"&&(ua||_!=="onCompositionStart"?_==="onCompositionEnd"&&ua&&(I=Bp()):(yr=p,vc="value"in yr?yr.value:yr.textContent,ua=!0)),z=Fi(u,_),0<z.length&&(_=new yu(_,e,null,n,p),h.push({event:_,listeners:z}),I?_.data=I:(I=Up(n),I!==null&&(_.data=I)))),(I=Ph?Ah(e,n):Fh(e,n))&&(u=Fi(u,"onBeforeInput"),0<u.length&&(p=new yu("onBeforeInput","beforeinput",null,n,p),h.push({event:p,listeners:u}),p.data=I))}tm(h,t)})}function No(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Fi(e,t){for(var n=t+"Capture",a=[];e!==null;){var o=e,i=o.stateNode;o.tag===5&&i!==null&&(o=i,i=vo(e,n),i!=null&&a.unshift(No(e,i,o)),i=vo(e,t),i!=null&&a.push(No(e,i,o))),e=e.return}return a}function sa(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Ru(e,t,n,a,o){for(var i=t._reactName,l=[];n!==null&&n!==a;){var s=n,c=s.alternate,u=s.stateNode;if(c!==null&&c===a)break;s.tag===5&&u!==null&&(s=u,o?(c=vo(n,i),c!=null&&l.unshift(No(n,c,s))):o||(c=vo(n,i),c!=null&&l.push(No(n,c,s)))),n=n.return}l.length!==0&&e.push({event:t,listeners:l})}var Kh=/\r\n?/g,qh=/\u0000|\uFFFD/g;function Lu(e){return(typeof e=="string"?e:""+e).replace(Kh,`
6
- `).replace(qh,"")}function pi(e,t,n){if(t=Lu(t),Lu(e)!==t&&n)throw Error(Q(425))}function Ii(){}var Is=null,_s=null;function Os(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var js=typeof setTimeout=="function"?setTimeout:void 0,Yh=typeof clearTimeout=="function"?clearTimeout:void 0,Du=typeof Promise=="function"?Promise:void 0,Qh=typeof queueMicrotask=="function"?queueMicrotask:typeof Du<"u"?function(e){return Du.resolve(null).then(e).catch(Xh)}:js;function Xh(e){setTimeout(function(){throw e})}function os(e,t){var n=t,a=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"){if(a===0){e.removeChild(o),xo(t);return}a--}else n!=="$"&&n!=="$?"&&n!=="$!"||a++;n=o}while(n);xo(t)}function kr(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function Pu(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var Fa=Math.random().toString(36).slice(2),$n="__reactFiber$"+Fa,To="__reactProps$"+Fa,nr="__reactContainer$"+Fa,Bs="__reactEvents$"+Fa,Jh="__reactListeners$"+Fa,Zh="__reactHandles$"+Fa;function Wr(e){var t=e[$n];if(t)return t;for(var n=e.parentNode;n;){if(t=n[nr]||n[$n]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Pu(e);e!==null;){if(n=e[$n])return n;e=Pu(e)}return t}e=n,n=e.parentNode}return null}function Fo(e){return e=e[$n]||e[nr],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function fa(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(Q(33))}function nl(e){return e[To]||null}var Hs=[],ga=-1;function Rr(e){return{current:e}}function rt(e){0>ga||(e.current=Hs[ga],Hs[ga]=null,ga--)}function Ze(e,t){ga++,Hs[ga]=e.current,e.current=t}var Er={},_t=Rr(Er),tn=Rr(!1),Kr=Er;function Ea(e,t){var n=e.type.contextTypes;if(!n)return Er;var a=e.stateNode;if(a&&a.__reactInternalMemoizedUnmaskedChildContext===t)return a.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return a&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function nn(e){return e=e.childContextTypes,e!=null}function _i(){rt(tn),rt(_t)}function Au(e,t,n){if(_t.current!==Er)throw Error(Q(168));Ze(_t,t),Ze(tn,n)}function rm(e,t,n){var a=e.stateNode;if(t=t.childContextTypes,typeof a.getChildContext!="function")return n;a=a.getChildContext();for(var o in a)if(!(o in t))throw Error(Q(108,jg(e)||"Unknown",o));return ct({},n,a)}function Oi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Er,Kr=_t.current,Ze(_t,e),Ze(tn,tn.current),!0}function Fu(e,t,n){var a=e.stateNode;if(!a)throw Error(Q(169));n?(e=rm(e,t,Kr),a.__reactInternalMemoizedMergedChildContext=e,rt(tn),rt(_t),Ze(_t,e)):rt(tn),Ze(tn,n)}var Xn=null,rl=!1,is=!1;function am(e){Xn===null?Xn=[e]:Xn.push(e)}function ey(e){rl=!0,am(e)}function Lr(){if(!is&&Xn!==null){is=!0;var e=0,t=qe;try{var n=Xn;for(qe=1;e<n.length;e++){var a=n[e];do a=a(!0);while(a!==null)}Xn=null,rl=!1}catch(o){throw Xn!==null&&(Xn=Xn.slice(e+1)),zp(fc,Lr),o}finally{qe=t,is=!1}}return null}var ha=[],ya=0,ji=null,Bi=0,fn=[],gn=0,qr=null,Jn=1,Zn="";function Br(e,t){ha[ya++]=Bi,ha[ya++]=ji,ji=e,Bi=t}function om(e,t,n){fn[gn++]=Jn,fn[gn++]=Zn,fn[gn++]=qr,qr=e;var a=Jn;e=Zn;var o=32-Pn(a)-1;a&=~(1<<o),n+=1;var i=32-Pn(t)+o;if(30<i){var l=o-o%5;i=(a&(1<<l)-1).toString(32),a>>=l,o-=l,Jn=1<<32-Pn(t)+o|n<<o|a,Zn=i+e}else Jn=1<<i|n<<o|a,Zn=e}function Sc(e){e.return!==null&&(Br(e,1),om(e,1,0))}function Cc(e){for(;e===ji;)ji=ha[--ya],ha[ya]=null,Bi=ha[--ya],ha[ya]=null;for(;e===qr;)qr=fn[--gn],fn[gn]=null,Zn=fn[--gn],fn[gn]=null,Jn=fn[--gn],fn[gn]=null}var sn=null,ln=null,at=!1,Dn=null;function im(e,t){var n=hn(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Iu(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,sn=e,ln=kr(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,sn=e,ln=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=qr!==null?{id:Jn,overflow:Zn}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=hn(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,sn=e,ln=null,!0):!1;default:return!1}}function Ws(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Us(e){if(at){var t=ln;if(t){var n=t;if(!Iu(e,t)){if(Ws(e))throw Error(Q(418));t=kr(n.nextSibling);var a=sn;t&&Iu(e,t)?im(a,n):(e.flags=e.flags&-4097|2,at=!1,sn=e)}}else{if(Ws(e))throw Error(Q(418));e.flags=e.flags&-4097|2,at=!1,sn=e}}}function _u(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;sn=e}function mi(e){if(e!==sn)return!1;if(!at)return _u(e),at=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Os(e.type,e.memoizedProps)),t&&(t=ln)){if(Ws(e))throw lm(),Error(Q(418));for(;t;)im(e,t),t=kr(t.nextSibling)}if(_u(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(Q(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){ln=kr(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}ln=null}}else ln=sn?kr(e.stateNode.nextSibling):null;return!0}function lm(){for(var e=ln;e;)e=kr(e.nextSibling)}function za(){ln=sn=null,at=!1}function Nc(e){Dn===null?Dn=[e]:Dn.push(e)}var ty=or.ReactCurrentBatchConfig;function Ja(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(Q(309));var a=n.stateNode}if(!a)throw Error(Q(147,e));var o=a,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(l){var s=o.refs;l===null?delete s[i]:s[i]=l},t._stringRef=i,t)}if(typeof e!="string")throw Error(Q(284));if(!n._owner)throw Error(Q(290,e))}return e}function fi(e,t){throw e=Object.prototype.toString.call(t),Error(Q(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Ou(e){var t=e._init;return t(e._payload)}function sm(e){function t(v,f){if(e){var y=v.deletions;y===null?(v.deletions=[f],v.flags|=16):y.push(f)}}function n(v,f){if(!e)return null;for(;f!==null;)t(v,f),f=f.sibling;return null}function a(v,f){for(v=new Map;f!==null;)f.key!==null?v.set(f.key,f):v.set(f.index,f),f=f.sibling;return v}function o(v,f){return v=Tr(v,f),v.index=0,v.sibling=null,v}function i(v,f,y){return v.index=y,e?(y=v.alternate,y!==null?(y=y.index,y<f?(v.flags|=2,f):y):(v.flags|=2,f)):(v.flags|=1048576,f)}function l(v){return e&&v.alternate===null&&(v.flags|=2),v}function s(v,f,y,P){return f===null||f.tag!==6?(f=ms(y,v.mode,P),f.return=v,f):(f=o(f,y),f.return=v,f)}function c(v,f,y,P){var F=y.type;return F===da?p(v,f,y.props.children,P,y.key):f!==null&&(f.elementType===F||typeof F=="object"&&F!==null&&F.$$typeof===mr&&Ou(F)===f.type)?(P=o(f,y.props),P.ref=Ja(v,f,y),P.return=v,P):(P=Mi(y.type,y.key,y.props,null,v.mode,P),P.ref=Ja(v,f,y),P.return=v,P)}function u(v,f,y,P){return f===null||f.tag!==4||f.stateNode.containerInfo!==y.containerInfo||f.stateNode.implementation!==y.implementation?(f=fs(y,v.mode,P),f.return=v,f):(f=o(f,y.children||[]),f.return=v,f)}function p(v,f,y,P,F){return f===null||f.tag!==7?(f=Gr(y,v.mode,P,F),f.return=v,f):(f=o(f,y),f.return=v,f)}function h(v,f,y){if(typeof f=="string"&&f!==""||typeof f=="number")return f=ms(""+f,v.mode,y),f.return=v,f;if(typeof f=="object"&&f!==null){switch(f.$$typeof){case Zo:return y=Mi(f.type,f.key,f.props,null,v.mode,y),y.ref=Ja(v,null,f),y.return=v,y;case ca:return f=fs(f,v.mode,y),f.return=v,f;case mr:var P=f._init;return h(v,P(f._payload),y)}if(ro(f)||qa(f))return f=Gr(f,v.mode,y,null),f.return=v,f;fi(v,f)}return null}function g(v,f,y,P){var F=f!==null?f.key:null;if(typeof y=="string"&&y!==""||typeof y=="number")return F!==null?null:s(v,f,""+y,P);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case Zo:return y.key===F?c(v,f,y,P):null;case ca:return y.key===F?u(v,f,y,P):null;case mr:return F=y._init,g(v,f,F(y._payload),P)}if(ro(y)||qa(y))return F!==null?null:p(v,f,y,P,null);fi(v,y)}return null}function k(v,f,y,P,F){if(typeof P=="string"&&P!==""||typeof P=="number")return v=v.get(y)||null,s(f,v,""+P,F);if(typeof P=="object"&&P!==null){switch(P.$$typeof){case Zo:return v=v.get(P.key===null?y:P.key)||null,c(f,v,P,F);case ca:return v=v.get(P.key===null?y:P.key)||null,u(f,v,P,F);case mr:var z=P._init;return k(v,f,y,z(P._payload),F)}if(ro(P)||qa(P))return v=v.get(y)||null,p(f,v,P,F,null);fi(f,P)}return null}function L(v,f,y,P){for(var F=null,z=null,I=f,_=f=0,j=null;I!==null&&_<y.length;_++){I.index>_?(j=I,I=null):j=I.sibling;var H=g(v,I,y[_],P);if(H===null){I===null&&(I=j);break}e&&I&&H.alternate===null&&t(v,I),f=i(H,f,_),z===null?F=H:z.sibling=H,z=H,I=j}if(_===y.length)return n(v,I),at&&Br(v,_),F;if(I===null){for(;_<y.length;_++)I=h(v,y[_],P),I!==null&&(f=i(I,f,_),z===null?F=I:z.sibling=I,z=I);return at&&Br(v,_),F}for(I=a(v,I);_<y.length;_++)j=k(I,v,_,y[_],P),j!==null&&(e&&j.alternate!==null&&I.delete(j.key===null?_:j.key),f=i(j,f,_),z===null?F=j:z.sibling=j,z=j);return e&&I.forEach(function(se){return t(v,se)}),at&&Br(v,_),F}function R(v,f,y,P){var F=qa(y);if(typeof F!="function")throw Error(Q(150));if(y=F.call(y),y==null)throw Error(Q(151));for(var z=F=null,I=f,_=f=0,j=null,H=y.next();I!==null&&!H.done;_++,H=y.next()){I.index>_?(j=I,I=null):j=I.sibling;var se=g(v,I,H.value,P);if(se===null){I===null&&(I=j);break}e&&I&&se.alternate===null&&t(v,I),f=i(se,f,_),z===null?F=se:z.sibling=se,z=se,I=j}if(H.done)return n(v,I),at&&Br(v,_),F;if(I===null){for(;!H.done;_++,H=y.next())H=h(v,H.value,P),H!==null&&(f=i(H,f,_),z===null?F=H:z.sibling=H,z=H);return at&&Br(v,_),F}for(I=a(v,I);!H.done;_++,H=y.next())H=k(I,v,_,H.value,P),H!==null&&(e&&H.alternate!==null&&I.delete(H.key===null?_:H.key),f=i(H,f,_),z===null?F=H:z.sibling=H,z=H);return e&&I.forEach(function(he){return t(v,he)}),at&&Br(v,_),F}function A(v,f,y,P){if(typeof y=="object"&&y!==null&&y.type===da&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case Zo:e:{for(var F=y.key,z=f;z!==null;){if(z.key===F){if(F=y.type,F===da){if(z.tag===7){n(v,z.sibling),f=o(z,y.props.children),f.return=v,v=f;break e}}else if(z.elementType===F||typeof F=="object"&&F!==null&&F.$$typeof===mr&&Ou(F)===z.type){n(v,z.sibling),f=o(z,y.props),f.ref=Ja(v,z,y),f.return=v,v=f;break e}n(v,z);break}else t(v,z);z=z.sibling}y.type===da?(f=Gr(y.props.children,v.mode,P,y.key),f.return=v,v=f):(P=Mi(y.type,y.key,y.props,null,v.mode,P),P.ref=Ja(v,f,y),P.return=v,v=P)}return l(v);case ca:e:{for(z=y.key;f!==null;){if(f.key===z)if(f.tag===4&&f.stateNode.containerInfo===y.containerInfo&&f.stateNode.implementation===y.implementation){n(v,f.sibling),f=o(f,y.children||[]),f.return=v,v=f;break e}else{n(v,f);break}else t(v,f);f=f.sibling}f=fs(y,v.mode,P),f.return=v,v=f}return l(v);case mr:return z=y._init,A(v,f,z(y._payload),P)}if(ro(y))return L(v,f,y,P);if(qa(y))return R(v,f,y,P);fi(v,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,f!==null&&f.tag===6?(n(v,f.sibling),f=o(f,y),f.return=v,v=f):(n(v,f),f=ms(y,v.mode,P),f.return=v,v=f),l(v)):n(v,f)}return A}var Ra=sm(!0),cm=sm(!1),Hi=Rr(null),Wi=null,va=null,Tc=null;function Mc(){Tc=va=Wi=null}function Ec(e){var t=Hi.current;rt(Hi),e._currentValue=t}function $s(e,t,n){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===n)break;e=e.return}}function Na(e,t){Wi=e,Tc=va=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(en=!0),e.firstContext=null)}function vn(e){var t=e._currentValue;if(Tc!==e)if(e={context:e,memoizedValue:t,next:null},va===null){if(Wi===null)throw Error(Q(308));va=e,Wi.dependencies={lanes:0,firstContext:e}}else va=va.next=e;return t}var Ur=null;function zc(e){Ur===null?Ur=[e]:Ur.push(e)}function dm(e,t,n,a){var o=t.interleaved;return o===null?(n.next=n,zc(t)):(n.next=o.next,o.next=n),t.interleaved=n,rr(e,a)}function rr(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var fr=!1;function Rc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function um(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function er(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Sr(e,t,n){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,We&2){var o=a.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),a.pending=t,rr(e,n)}return o=a.interleaved,o===null?(t.next=t,zc(a)):(t.next=o.next,o.next=t),a.interleaved=t,rr(e,n)}function xi(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,gc(e,n)}}function ju(e,t){var n=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,n===a)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var l={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=l:i=i.next=l,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:a.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:a.shared,effects:a.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Ui(e,t,n,a){var o=e.updateQueue;fr=!1;var i=o.firstBaseUpdate,l=o.lastBaseUpdate,s=o.shared.pending;if(s!==null){o.shared.pending=null;var c=s,u=c.next;c.next=null,l===null?i=u:l.next=u,l=c;var p=e.alternate;p!==null&&(p=p.updateQueue,s=p.lastBaseUpdate,s!==l&&(s===null?p.firstBaseUpdate=u:s.next=u,p.lastBaseUpdate=c))}if(i!==null){var h=o.baseState;l=0,p=u=c=null,s=i;do{var g=s.lane,k=s.eventTime;if((a&g)===g){p!==null&&(p=p.next={eventTime:k,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var L=e,R=s;switch(g=t,k=n,R.tag){case 1:if(L=R.payload,typeof L=="function"){h=L.call(k,h,g);break e}h=L;break e;case 3:L.flags=L.flags&-65537|128;case 0:if(L=R.payload,g=typeof L=="function"?L.call(k,h,g):L,g==null)break e;h=ct({},h,g);break e;case 2:fr=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,g=o.effects,g===null?o.effects=[s]:g.push(s))}else k={eventTime:k,lane:g,tag:s.tag,payload:s.payload,callback:s.callback,next:null},p===null?(u=p=k,c=h):p=p.next=k,l|=g;if(s=s.next,s===null){if(s=o.shared.pending,s===null)break;g=s,s=g.next,g.next=null,o.lastBaseUpdate=g,o.shared.pending=null}}while(!0);if(p===null&&(c=h),o.baseState=c,o.firstBaseUpdate=u,o.lastBaseUpdate=p,t=o.shared.interleaved,t!==null){o=t;do l|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);Qr|=l,e.lanes=l,e.memoizedState=h}}function Bu(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var a=e[t],o=a.callback;if(o!==null){if(a.callback=null,a=n,typeof o!="function")throw Error(Q(191,o));o.call(a)}}}var Io={},Gn=Rr(Io),Mo=Rr(Io),Eo=Rr(Io);function $r(e){if(e===Io)throw Error(Q(174));return e}function Lc(e,t){switch(Ze(Eo,t),Ze(Mo,e),Ze(Gn,Io),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Cs(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Cs(t,e)}rt(Gn),Ze(Gn,t)}function La(){rt(Gn),rt(Mo),rt(Eo)}function pm(e){$r(Eo.current);var t=$r(Gn.current),n=Cs(t,e.type);t!==n&&(Ze(Mo,e),Ze(Gn,n))}function Dc(e){Mo.current===e&&(rt(Gn),rt(Mo))}var lt=Rr(0);function $i(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ls=[];function Pc(){for(var e=0;e<ls.length;e++)ls[e]._workInProgressVersionPrimary=null;ls.length=0}var ki=or.ReactCurrentDispatcher,ss=or.ReactCurrentBatchConfig,Yr=0,st=null,bt=null,kt=null,Vi=!1,po=!1,zo=0,ny=0;function At(){throw Error(Q(321))}function Ac(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Fn(e[n],t[n]))return!1;return!0}function Fc(e,t,n,a,o,i){if(Yr=i,st=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ki.current=e===null||e.memoizedState===null?iy:ly,e=n(a,o),po){i=0;do{if(po=!1,zo=0,25<=i)throw Error(Q(301));i+=1,kt=bt=null,t.updateQueue=null,ki.current=sy,e=n(a,o)}while(po)}if(ki.current=Gi,t=bt!==null&&bt.next!==null,Yr=0,kt=bt=st=null,Vi=!1,t)throw Error(Q(300));return e}function Ic(){var e=zo!==0;return zo=0,e}function Un(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return kt===null?st.memoizedState=kt=e:kt=kt.next=e,kt}function bn(){if(bt===null){var e=st.alternate;e=e!==null?e.memoizedState:null}else e=bt.next;var t=kt===null?st.memoizedState:kt.next;if(t!==null)kt=t,bt=e;else{if(e===null)throw Error(Q(310));bt=e,e={memoizedState:bt.memoizedState,baseState:bt.baseState,baseQueue:bt.baseQueue,queue:bt.queue,next:null},kt===null?st.memoizedState=kt=e:kt=kt.next=e}return kt}function Ro(e,t){return typeof t=="function"?t(e):t}function cs(e){var t=bn(),n=t.queue;if(n===null)throw Error(Q(311));n.lastRenderedReducer=e;var a=bt,o=a.baseQueue,i=n.pending;if(i!==null){if(o!==null){var l=o.next;o.next=i.next,i.next=l}a.baseQueue=o=i,n.pending=null}if(o!==null){i=o.next,a=a.baseState;var s=l=null,c=null,u=i;do{var p=u.lane;if((Yr&p)===p)c!==null&&(c=c.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),a=u.hasEagerState?u.eagerState:e(a,u.action);else{var h={lane:p,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};c===null?(s=c=h,l=a):c=c.next=h,st.lanes|=p,Qr|=p}u=u.next}while(u!==null&&u!==i);c===null?l=a:c.next=s,Fn(a,t.memoizedState)||(en=!0),t.memoizedState=a,t.baseState=l,t.baseQueue=c,n.lastRenderedState=a}if(e=n.interleaved,e!==null){o=e;do i=o.lane,st.lanes|=i,Qr|=i,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function ds(e){var t=bn(),n=t.queue;if(n===null)throw Error(Q(311));n.lastRenderedReducer=e;var a=n.dispatch,o=n.pending,i=t.memoizedState;if(o!==null){n.pending=null;var l=o=o.next;do i=e(i,l.action),l=l.next;while(l!==o);Fn(i,t.memoizedState)||(en=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,a]}function mm(){}function fm(e,t){var n=st,a=bn(),o=t(),i=!Fn(a.memoizedState,o);if(i&&(a.memoizedState=o,en=!0),a=a.queue,_c(ym.bind(null,n,a,e),[e]),a.getSnapshot!==t||i||kt!==null&&kt.memoizedState.tag&1){if(n.flags|=2048,Lo(9,hm.bind(null,n,a,o,t),void 0,null),St===null)throw Error(Q(349));Yr&30||gm(n,t,o)}return o}function gm(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=st.updateQueue,t===null?(t={lastEffect:null,stores:null},st.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function hm(e,t,n,a){t.value=n,t.getSnapshot=a,vm(t)&&bm(e)}function ym(e,t,n){return n(function(){vm(t)&&bm(e)})}function vm(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Fn(e,n)}catch{return!0}}function bm(e){var t=rr(e,1);t!==null&&An(t,e,1,-1)}function Hu(e){var t=Un();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ro,lastRenderedState:e},t.queue=e,e=e.dispatch=oy.bind(null,st,e),[t.memoizedState,e]}function Lo(e,t,n,a){return e={tag:e,create:t,destroy:n,deps:a,next:null},t=st.updateQueue,t===null?(t={lastEffect:null,stores:null},st.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(a=n.next,n.next=e,e.next=a,t.lastEffect=e)),e}function wm(){return bn().memoizedState}function Si(e,t,n,a){var o=Un();st.flags|=e,o.memoizedState=Lo(1|t,n,void 0,a===void 0?null:a)}function al(e,t,n,a){var o=bn();a=a===void 0?null:a;var i=void 0;if(bt!==null){var l=bt.memoizedState;if(i=l.destroy,a!==null&&Ac(a,l.deps)){o.memoizedState=Lo(t,n,i,a);return}}st.flags|=e,o.memoizedState=Lo(1|t,n,i,a)}function Wu(e,t){return Si(8390656,8,e,t)}function _c(e,t){return al(2048,8,e,t)}function xm(e,t){return al(4,2,e,t)}function km(e,t){return al(4,4,e,t)}function Sm(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Cm(e,t,n){return n=n!=null?n.concat([e]):null,al(4,4,Sm.bind(null,t,e),n)}function Oc(){}function Nm(e,t){var n=bn();t=t===void 0?null:t;var a=n.memoizedState;return a!==null&&t!==null&&Ac(t,a[1])?a[0]:(n.memoizedState=[e,t],e)}function Tm(e,t){var n=bn();t=t===void 0?null:t;var a=n.memoizedState;return a!==null&&t!==null&&Ac(t,a[1])?a[0]:(e=e(),n.memoizedState=[e,t],e)}function Mm(e,t,n){return Yr&21?(Fn(n,t)||(n=Dp(),st.lanes|=n,Qr|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,en=!0),e.memoizedState=n)}function ry(e,t){var n=qe;qe=n!==0&&4>n?n:4,e(!0);var a=ss.transition;ss.transition={};try{e(!1),t()}finally{qe=n,ss.transition=a}}function Em(){return bn().memoizedState}function ay(e,t,n){var a=Nr(e);if(n={lane:a,action:n,hasEagerState:!1,eagerState:null,next:null},zm(e))Rm(t,n);else if(n=dm(e,t,n,a),n!==null){var o=Gt();An(n,e,a,o),Lm(n,t,a)}}function oy(e,t,n){var a=Nr(e),o={lane:a,action:n,hasEagerState:!1,eagerState:null,next:null};if(zm(e))Rm(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var l=t.lastRenderedState,s=i(l,n);if(o.hasEagerState=!0,o.eagerState=s,Fn(s,l)){var c=t.interleaved;c===null?(o.next=o,zc(t)):(o.next=c.next,c.next=o),t.interleaved=o;return}}catch{}finally{}n=dm(e,t,o,a),n!==null&&(o=Gt(),An(n,e,a,o),Lm(n,t,a))}}function zm(e){var t=e.alternate;return e===st||t!==null&&t===st}function Rm(e,t){po=Vi=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Lm(e,t,n){if(n&4194240){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,gc(e,n)}}var Gi={readContext:vn,useCallback:At,useContext:At,useEffect:At,useImperativeHandle:At,useInsertionEffect:At,useLayoutEffect:At,useMemo:At,useReducer:At,useRef:At,useState:At,useDebugValue:At,useDeferredValue:At,useTransition:At,useMutableSource:At,useSyncExternalStore:At,useId:At,unstable_isNewReconciler:!1},iy={readContext:vn,useCallback:function(e,t){return Un().memoizedState=[e,t===void 0?null:t],e},useContext:vn,useEffect:Wu,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Si(4194308,4,Sm.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Si(4194308,4,e,t)},useInsertionEffect:function(e,t){return Si(4,2,e,t)},useMemo:function(e,t){var n=Un();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var a=Un();return t=n!==void 0?n(t):t,a.memoizedState=a.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},a.queue=e,e=e.dispatch=ay.bind(null,st,e),[a.memoizedState,e]},useRef:function(e){var t=Un();return e={current:e},t.memoizedState=e},useState:Hu,useDebugValue:Oc,useDeferredValue:function(e){return Un().memoizedState=e},useTransition:function(){var e=Hu(!1),t=e[0];return e=ry.bind(null,e[1]),Un().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var a=st,o=Un();if(at){if(n===void 0)throw Error(Q(407));n=n()}else{if(n=t(),St===null)throw Error(Q(349));Yr&30||gm(a,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,Wu(ym.bind(null,a,i,e),[e]),a.flags|=2048,Lo(9,hm.bind(null,a,i,n,t),void 0,null),n},useId:function(){var e=Un(),t=St.identifierPrefix;if(at){var n=Zn,a=Jn;n=(a&~(1<<32-Pn(a)-1)).toString(32)+n,t=":"+t+"R"+n,n=zo++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=ny++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},ly={readContext:vn,useCallback:Nm,useContext:vn,useEffect:_c,useImperativeHandle:Cm,useInsertionEffect:xm,useLayoutEffect:km,useMemo:Tm,useReducer:cs,useRef:wm,useState:function(){return cs(Ro)},useDebugValue:Oc,useDeferredValue:function(e){var t=bn();return Mm(t,bt.memoizedState,e)},useTransition:function(){var e=cs(Ro)[0],t=bn().memoizedState;return[e,t]},useMutableSource:mm,useSyncExternalStore:fm,useId:Em,unstable_isNewReconciler:!1},sy={readContext:vn,useCallback:Nm,useContext:vn,useEffect:_c,useImperativeHandle:Cm,useInsertionEffect:xm,useLayoutEffect:km,useMemo:Tm,useReducer:ds,useRef:wm,useState:function(){return ds(Ro)},useDebugValue:Oc,useDeferredValue:function(e){var t=bn();return bt===null?t.memoizedState=e:Mm(t,bt.memoizedState,e)},useTransition:function(){var e=ds(Ro)[0],t=bn().memoizedState;return[e,t]},useMutableSource:mm,useSyncExternalStore:fm,useId:Em,unstable_isNewReconciler:!1};function Rn(e,t){if(e&&e.defaultProps){t=ct({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Vs(e,t,n,a){t=e.memoizedState,n=n(a,t),n=n==null?t:ct({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var ol={isMounted:function(e){return(e=e._reactInternals)?Zr(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var a=Gt(),o=Nr(e),i=er(a,o);i.payload=t,n!=null&&(i.callback=n),t=Sr(e,i,o),t!==null&&(An(t,e,o,a),xi(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var a=Gt(),o=Nr(e),i=er(a,o);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Sr(e,i,o),t!==null&&(An(t,e,o,a),xi(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Gt(),a=Nr(e),o=er(n,a);o.tag=2,t!=null&&(o.callback=t),t=Sr(e,o,a),t!==null&&(An(t,e,a,n),xi(t,e,a))}};function Uu(e,t,n,a,o,i,l){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,i,l):t.prototype&&t.prototype.isPureReactComponent?!So(n,a)||!So(o,i):!0}function Dm(e,t,n){var a=!1,o=Er,i=t.contextType;return typeof i=="object"&&i!==null?i=vn(i):(o=nn(t)?Kr:_t.current,a=t.contextTypes,i=(a=a!=null)?Ea(e,o):Er),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=ol,e.stateNode=t,t._reactInternals=e,a&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function $u(e,t,n,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,a),t.state!==e&&ol.enqueueReplaceState(t,t.state,null)}function Gs(e,t,n,a){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},Rc(e);var i=t.contextType;typeof i=="object"&&i!==null?o.context=vn(i):(i=nn(t)?Kr:_t.current,o.context=Ea(e,i)),o.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(Vs(e,t,i,n),o.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(t=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),t!==o.state&&ol.enqueueReplaceState(o,o.state,null),Ui(e,n,o,a),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function Da(e,t){try{var n="",a=t;do n+=Og(a),a=a.return;while(a);var o=n}catch(i){o=`
5
+ `+o[l].replace(" at new "," at ");return e.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",e.displayName)),c}while(1<=l&&0<=s);break}}}finally{Yl=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?to(e):""}function jg(e){switch(e.tag){case 5:return to(e.type);case 16:return to("Lazy");case 13:return to("Suspense");case 19:return to("SuspenseList");case 0:case 2:case 15:return e=Ql(e.type,!1),e;case 11:return e=Ql(e.type.render,!1),e;case 1:return e=Ql(e.type,!0),e;default:return""}}function ws(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case ca:return"Fragment";case sa:return"Portal";case ys:return"Profiler";case uc:return"StrictMode";case vs:return"Suspense";case bs:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case pp:return(e.displayName||"Context")+".Consumer";case up:return(e._context.displayName||"Context")+".Provider";case pc:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case mc:return t=e.displayName||null,t!==null?t:ws(e.type)||"Memo";case mr:t=e._payload,e=e._init;try{return ws(e(t))}catch{}}return null}function Bg(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ws(t);case 8:return t===uc?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Mr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function fp(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Hg(e){var t=fp(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),a=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(l){a=""+l,i.call(this,l)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return a},setValue:function(l){a=""+l},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ei(e){e._valueTracker||(e._valueTracker=Hg(e))}function gp(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),a="";return e&&(a=fp(e)?e.checked?"true":"false":e.value),e=a,e!==n?(t.setValue(e),!0):!1}function Ei(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function xs(e,t){var n=t.checked;return ct({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function lu(e,t){var n=t.defaultValue==null?"":t.defaultValue,a=t.checked!=null?t.checked:t.defaultChecked;n=Mr(t.value!=null?t.value:n),e._wrapperState={initialChecked:a,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function hp(e,t){t=t.checked,t!=null&&dc(e,"checked",t,!1)}function ks(e,t){hp(e,t);var n=Mr(t.value),a=t.type;if(n!=null)a==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(a==="submit"||a==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Ss(e,t.type,n):t.hasOwnProperty("defaultValue")&&Ss(e,t.type,Mr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function su(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var a=t.type;if(!(a!=="submit"&&a!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Ss(e,t,n){(t!=="number"||Ei(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var no=Array.isArray;function wa(e,t,n,a){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&a&&(e[n].defaultSelected=!0)}else{for(n=""+Mr(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,a&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function Cs(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(X(91));return ct({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function cu(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(X(92));if(no(n)){if(1<n.length)throw Error(X(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Mr(n)}}function yp(e,t){var n=Mr(t.value),a=Mr(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),a!=null&&(e.defaultValue=""+a)}function du(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function vp(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Ns(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?vp(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var ti,bp=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,a,o){MSApp.execUnsafeLocalFunction(function(){return e(t,n,a,o)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(ti=ti||document.createElement("div"),ti.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ti.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ho(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var oo={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Wg=["Webkit","ms","Moz","O"];Object.keys(oo).forEach(function(e){Wg.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),oo[t]=oo[e]})});function wp(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||oo.hasOwnProperty(e)&&oo[e]?(""+t).trim():t+"px"}function xp(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var a=n.indexOf("--")===0,o=wp(n,t[n],a);n==="float"&&(n="cssFloat"),a?e.setProperty(n,o):e[n]=o}}var Ug=ct({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Ts(e,t){if(t){if(Ug[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(X(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(X(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(X(61))}if(t.style!=null&&typeof t.style!="object")throw Error(X(62))}}function Ms(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Es=null;function fc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var zs=null,xa=null,ka=null;function uu(e){if(e=Ao(e)){if(typeof zs!="function")throw Error(X(280));var t=e.stateNode;t&&(t=nl(t),zs(e.stateNode,e.type,t))}}function kp(e){xa?ka?ka.push(e):ka=[e]:xa=e}function Sp(){if(xa){var e=xa,t=ka;if(ka=xa=null,uu(e),t)for(e=0;e<t.length;e++)uu(t[e])}}function Cp(e,t){return e(t)}function Np(){}var Xl=!1;function Tp(e,t,n){if(Xl)return e(t,n);Xl=!0;try{return Cp(e,t,n)}finally{Xl=!1,(xa!==null||ka!==null)&&(Np(),Sp())}}function yo(e,t){var n=e.stateNode;if(n===null)return null;var a=nl(n);if(a===null)return null;n=a[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(X(231,t,typeof n));return n}var Rs=!1;if(tr)try{ia={},Object.defineProperty(ia,"passive",{get:function(){Rs=!0}}),window.addEventListener("test",ia,ia),window.removeEventListener("test",ia,ia)}catch{Rs=!1}var ia;function $g(e,t,n,a,o,i,l,s,c){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(m){this.onError(m)}}var io=!1,zi=null,Ri=!1,Ls=null,Vg={onError:function(e){io=!0,zi=e}};function Gg(e,t,n,a,o,i,l,s,c){io=!1,zi=null,$g.apply(Vg,arguments)}function Kg(e,t,n,a,o,i,l,s,c){if(Gg.apply(this,arguments),io){if(io){var u=zi;io=!1,zi=null}else throw Error(X(198));Ri||(Ri=!0,Ls=u)}}function Zr(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function Mp(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function pu(e){if(Zr(e)!==e)throw Error(X(188))}function qg(e){var t=e.alternate;if(!t){if(t=Zr(e),t===null)throw Error(X(188));return t!==e?null:e}for(var n=e,a=t;;){var o=n.return;if(o===null)break;var i=o.alternate;if(i===null){if(a=o.return,a!==null){n=a;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return pu(o),e;if(i===a)return pu(o),t;i=i.sibling}throw Error(X(188))}if(n.return!==a.return)n=o,a=i;else{for(var l=!1,s=o.child;s;){if(s===n){l=!0,n=o,a=i;break}if(s===a){l=!0,a=o,n=i;break}s=s.sibling}if(!l){for(s=i.child;s;){if(s===n){l=!0,n=i,a=o;break}if(s===a){l=!0,a=i,n=o;break}s=s.sibling}if(!l)throw Error(X(189))}}if(n.alternate!==a)throw Error(X(190))}if(n.tag!==3)throw Error(X(188));return n.stateNode.current===n?e:t}function Ep(e){return e=qg(e),e!==null?zp(e):null}function zp(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=zp(e);if(t!==null)return t;e=e.sibling}return null}var Rp=cn.unstable_scheduleCallback,mu=cn.unstable_cancelCallback,Yg=cn.unstable_shouldYield,Qg=cn.unstable_requestPaint,ft=cn.unstable_now,Xg=cn.unstable_getCurrentPriorityLevel,gc=cn.unstable_ImmediatePriority,Lp=cn.unstable_UserBlockingPriority,Li=cn.unstable_NormalPriority,Jg=cn.unstable_LowPriority,Dp=cn.unstable_IdlePriority,Ji=null,Vn=null;function Zg(e){if(Vn&&typeof Vn.onCommitFiberRoot=="function")try{Vn.onCommitFiberRoot(Ji,e,void 0,(e.current.flags&128)===128)}catch{}}var Pn=Math.clz32?Math.clz32:nh,eh=Math.log,th=Math.LN2;function nh(e){return e>>>=0,e===0?32:31-(eh(e)/th|0)|0}var ni=64,ri=4194304;function ro(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Di(e,t){var n=e.pendingLanes;if(n===0)return 0;var a=0,o=e.suspendedLanes,i=e.pingedLanes,l=n&268435455;if(l!==0){var s=l&~o;s!==0?a=ro(s):(i&=l,i!==0&&(a=ro(i)))}else l=n&~o,l!==0?a=ro(l):i!==0&&(a=ro(i));if(a===0)return 0;if(t!==0&&t!==a&&!(t&o)&&(o=a&-a,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(a&4&&(a|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=a;0<t;)n=31-Pn(t),o=1<<n,a|=e[n],t&=~o;return a}function rh(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function ah(e,t){for(var n=e.suspendedLanes,a=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var l=31-Pn(i),s=1<<l,c=o[l];c===-1?(!(s&n)||s&a)&&(o[l]=rh(s,t)):c<=t&&(e.expiredLanes|=s),i&=~s}}function Ds(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Pp(){var e=ni;return ni<<=1,!(ni&4194240)&&(ni=64),e}function Jl(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Do(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Pn(t),e[t]=n}function oh(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var a=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-Pn(n),i=1<<o;t[o]=0,a[o]=-1,e[o]=-1,n&=~i}}function hc(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var a=31-Pn(n),o=1<<a;o&t|e[a]&t&&(e[a]|=t),n&=~o}}var Ge=0;function Ap(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Fp,yc,Ip,_p,Op,Ps=!1,ai=[],br=null,wr=null,xr=null,vo=new Map,bo=new Map,gr=[],ih="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function fu(e,t){switch(e){case"focusin":case"focusout":br=null;break;case"dragenter":case"dragleave":wr=null;break;case"mouseover":case"mouseout":xr=null;break;case"pointerover":case"pointerout":vo.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":bo.delete(t.pointerId)}}function qa(e,t,n,a,o,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:a,nativeEvent:i,targetContainers:[o]},t!==null&&(t=Ao(t),t!==null&&yc(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function lh(e,t,n,a,o){switch(t){case"focusin":return br=qa(br,e,t,n,a,o),!0;case"dragenter":return wr=qa(wr,e,t,n,a,o),!0;case"mouseover":return xr=qa(xr,e,t,n,a,o),!0;case"pointerover":var i=o.pointerId;return vo.set(i,qa(vo.get(i)||null,e,t,n,a,o)),!0;case"gotpointercapture":return i=o.pointerId,bo.set(i,qa(bo.get(i)||null,e,t,n,a,o)),!0}return!1}function jp(e){var t=Wr(e.target);if(t!==null){var n=Zr(t);if(n!==null){if(t=n.tag,t===13){if(t=Mp(n),t!==null){e.blockedOn=t,Op(e.priority,function(){Ip(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 vi(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=As(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var a=new n.constructor(n.type,n);Es=a,n.target.dispatchEvent(a),Es=null}else return t=Ao(n),t!==null&&yc(t),e.blockedOn=n,!1;t.shift()}return!0}function gu(e,t,n){vi(e)&&n.delete(t)}function sh(){Ps=!1,br!==null&&vi(br)&&(br=null),wr!==null&&vi(wr)&&(wr=null),xr!==null&&vi(xr)&&(xr=null),vo.forEach(gu),bo.forEach(gu)}function Ya(e,t){e.blockedOn===t&&(e.blockedOn=null,Ps||(Ps=!0,cn.unstable_scheduleCallback(cn.unstable_NormalPriority,sh)))}function wo(e){function t(o){return Ya(o,e)}if(0<ai.length){Ya(ai[0],e);for(var n=1;n<ai.length;n++){var a=ai[n];a.blockedOn===e&&(a.blockedOn=null)}}for(br!==null&&Ya(br,e),wr!==null&&Ya(wr,e),xr!==null&&Ya(xr,e),vo.forEach(t),bo.forEach(t),n=0;n<gr.length;n++)a=gr[n],a.blockedOn===e&&(a.blockedOn=null);for(;0<gr.length&&(n=gr[0],n.blockedOn===null);)jp(n),n.blockedOn===null&&gr.shift()}var Sa=or.ReactCurrentBatchConfig,Pi=!0;function ch(e,t,n,a){var o=Ge,i=Sa.transition;Sa.transition=null;try{Ge=1,vc(e,t,n,a)}finally{Ge=o,Sa.transition=i}}function dh(e,t,n,a){var o=Ge,i=Sa.transition;Sa.transition=null;try{Ge=4,vc(e,t,n,a)}finally{Ge=o,Sa.transition=i}}function vc(e,t,n,a){if(Pi){var o=As(e,t,n,a);if(o===null)os(e,t,a,Ai,n),fu(e,a);else if(lh(o,e,t,n,a))a.stopPropagation();else if(fu(e,a),t&4&&-1<ih.indexOf(e)){for(;o!==null;){var i=Ao(o);if(i!==null&&Fp(i),i=As(e,t,n,a),i===null&&os(e,t,a,Ai,n),i===o)break;o=i}o!==null&&a.stopPropagation()}else os(e,t,a,null,n)}}var Ai=null;function As(e,t,n,a){if(Ai=null,e=fc(a),e=Wr(e),e!==null)if(t=Zr(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Mp(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 Ai=e,null}function Bp(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Xg()){case gc:return 1;case Lp:return 4;case Li:case Jg:return 16;case Dp:return 536870912;default:return 16}default:return 16}}var yr=null,bc=null,bi=null;function Hp(){if(bi)return bi;var e,t=bc,n=t.length,a,o="value"in yr?yr.value:yr.textContent,i=o.length;for(e=0;e<n&&t[e]===o[e];e++);var l=n-e;for(a=1;a<=l&&t[n-a]===o[i-a];a++);return bi=o.slice(e,1<a?1-a:void 0)}function wi(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 oi(){return!0}function hu(){return!1}function dn(e){function t(n,a,o,i,l){this._reactName=n,this._targetInst=o,this.type=a,this.nativeEvent=i,this.target=l,this.currentTarget=null;for(var s in e)e.hasOwnProperty(s)&&(n=e[s],this[s]=n?n(i):i[s]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?oi:hu,this.isPropagationStopped=hu,this}return ct(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=oi)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=oi)},persist:function(){},isPersistent:oi}),t}var Pa={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},wc=dn(Pa),Po=ct({},Pa,{view:0,detail:0}),uh=dn(Po),Zl,es,Qa,Zi=ct({},Po,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:xc,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!==Qa&&(Qa&&e.type==="mousemove"?(Zl=e.screenX-Qa.screenX,es=e.screenY-Qa.screenY):es=Zl=0,Qa=e),Zl)},movementY:function(e){return"movementY"in e?e.movementY:es}}),yu=dn(Zi),ph=ct({},Zi,{dataTransfer:0}),mh=dn(ph),fh=ct({},Po,{relatedTarget:0}),ts=dn(fh),gh=ct({},Pa,{animationName:0,elapsedTime:0,pseudoElement:0}),hh=dn(gh),yh=ct({},Pa,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),vh=dn(yh),bh=ct({},Pa,{data:0}),vu=dn(bh),wh={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},xh={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"},kh={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Sh(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=kh[e])?!!t[e]:!1}function xc(){return Sh}var Ch=ct({},Po,{key:function(e){if(e.key){var t=wh[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=wi(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?xh[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:xc,charCode:function(e){return e.type==="keypress"?wi(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?wi(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Nh=dn(Ch),Th=ct({},Zi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),bu=dn(Th),Mh=ct({},Po,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:xc}),Eh=dn(Mh),zh=ct({},Pa,{propertyName:0,elapsedTime:0,pseudoElement:0}),Rh=dn(zh),Lh=ct({},Zi,{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}),Dh=dn(Lh),Ph=[9,13,27,32],kc=tr&&"CompositionEvent"in window,lo=null;tr&&"documentMode"in document&&(lo=document.documentMode);var Ah=tr&&"TextEvent"in window&&!lo,Wp=tr&&(!kc||lo&&8<lo&&11>=lo),wu=" ",xu=!1;function Up(e,t){switch(e){case"keyup":return Ph.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function $p(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var da=!1;function Fh(e,t){switch(e){case"compositionend":return $p(t);case"keypress":return t.which!==32?null:(xu=!0,wu);case"textInput":return e=t.data,e===wu&&xu?null:e;default:return null}}function Ih(e,t){if(da)return e==="compositionend"||!kc&&Up(e,t)?(e=Hp(),bi=bc=yr=null,da=!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 Wp&&t.locale!=="ko"?null:t.data;default:return null}}var _h={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 ku(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!_h[e.type]:t==="textarea"}function Vp(e,t,n,a){kp(a),t=Fi(t,"onChange"),0<t.length&&(n=new wc("onChange","change",null,n,a),e.push({event:n,listeners:t}))}var so=null,xo=null;function Oh(e){nm(e,0)}function el(e){var t=ma(e);if(gp(t))return e}function jh(e,t){if(e==="change")return t}var Gp=!1;tr&&(tr?(li="oninput"in document,li||(ns=document.createElement("div"),ns.setAttribute("oninput","return;"),li=typeof ns.oninput=="function"),ii=li):ii=!1,Gp=ii&&(!document.documentMode||9<document.documentMode));var ii,li,ns;function Su(){so&&(so.detachEvent("onpropertychange",Kp),xo=so=null)}function Kp(e){if(e.propertyName==="value"&&el(xo)){var t=[];Vp(t,xo,e,fc(e)),Tp(Oh,t)}}function Bh(e,t,n){e==="focusin"?(Su(),so=t,xo=n,so.attachEvent("onpropertychange",Kp)):e==="focusout"&&Su()}function Hh(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return el(xo)}function Wh(e,t){if(e==="click")return el(t)}function Uh(e,t){if(e==="input"||e==="change")return el(t)}function $h(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Fn=typeof Object.is=="function"?Object.is:$h;function ko(e,t){if(Fn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),a=Object.keys(t);if(n.length!==a.length)return!1;for(a=0;a<n.length;a++){var o=n[a];if(!hs.call(t,o)||!Fn(e[o],t[o]))return!1}return!0}function Cu(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Nu(e,t){var n=Cu(e);e=0;for(var a;n;){if(n.nodeType===3){if(a=e+n.textContent.length,e<=t&&a>=t)return{node:n,offset:t-e};e=a}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Cu(n)}}function qp(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?qp(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Yp(){for(var e=window,t=Ei();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ei(e.document)}return t}function Sc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Vh(e){var t=Yp(),n=e.focusedElem,a=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&qp(n.ownerDocument.documentElement,n)){if(a!==null&&Sc(n)){if(t=a.start,e=a.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(a.start,o);a=a.end===void 0?i:Math.min(a.end,o),!e.extend&&i>a&&(o=a,a=i,i=o),o=Nu(n,i);var l=Nu(n,a);o&&l&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==l.node||e.focusOffset!==l.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>a?(e.addRange(t),e.extend(l.node,l.offset)):(t.setEnd(l.node,l.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Gh=tr&&"documentMode"in document&&11>=document.documentMode,ua=null,Fs=null,co=null,Is=!1;function Tu(e,t,n){var a=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Is||ua==null||ua!==Ei(a)||(a=ua,"selectionStart"in a&&Sc(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),co&&ko(co,a)||(co=a,a=Fi(Fs,"onSelect"),0<a.length&&(t=new wc("onSelect","select",null,t,n),e.push({event:t,listeners:a}),t.target=ua)))}function si(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var pa={animationend:si("Animation","AnimationEnd"),animationiteration:si("Animation","AnimationIteration"),animationstart:si("Animation","AnimationStart"),transitionend:si("Transition","TransitionEnd")},rs={},Qp={};tr&&(Qp=document.createElement("div").style,"AnimationEvent"in window||(delete pa.animationend.animation,delete pa.animationiteration.animation,delete pa.animationstart.animation),"TransitionEvent"in window||delete pa.transitionend.transition);function tl(e){if(rs[e])return rs[e];if(!pa[e])return e;var t=pa[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Qp)return rs[e]=t[n];return e}var Xp=tl("animationend"),Jp=tl("animationiteration"),Zp=tl("animationstart"),em=tl("transitionend"),tm=new Map,Mu="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function zr(e,t){tm.set(e,t),Jr(t,[e])}for(ci=0;ci<Mu.length;ci++)di=Mu[ci],Eu=di.toLowerCase(),zu=di[0].toUpperCase()+di.slice(1),zr(Eu,"on"+zu);var di,Eu,zu,ci;zr(Xp,"onAnimationEnd");zr(Jp,"onAnimationIteration");zr(Zp,"onAnimationStart");zr("dblclick","onDoubleClick");zr("focusin","onFocus");zr("focusout","onBlur");zr(em,"onTransitionEnd");Ta("onMouseEnter",["mouseout","mouseover"]);Ta("onMouseLeave",["mouseout","mouseover"]);Ta("onPointerEnter",["pointerout","pointerover"]);Ta("onPointerLeave",["pointerout","pointerover"]);Jr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Jr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Jr("onBeforeInput",["compositionend","keypress","textInput","paste"]);Jr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Jr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Jr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ao="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(" "),Kh=new Set("cancel close invalid load scroll toggle".split(" ").concat(ao));function Ru(e,t,n){var a=e.type||"unknown-event";e.currentTarget=n,Kg(a,t,void 0,e),e.currentTarget=null}function nm(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var a=e[n],o=a.event;a=a.listeners;e:{var i=void 0;if(t)for(var l=a.length-1;0<=l;l--){var s=a[l],c=s.instance,u=s.currentTarget;if(s=s.listener,c!==i&&o.isPropagationStopped())break e;Ru(o,s,u),i=c}else for(l=0;l<a.length;l++){if(s=a[l],c=s.instance,u=s.currentTarget,s=s.listener,c!==i&&o.isPropagationStopped())break e;Ru(o,s,u),i=c}}}if(Ri)throw e=Ls,Ri=!1,Ls=null,e}function nt(e,t){var n=t[Hs];n===void 0&&(n=t[Hs]=new Set);var a=e+"__bubble";n.has(a)||(rm(t,e,2,!1),n.add(a))}function as(e,t,n){var a=0;t&&(a|=4),rm(n,e,a,t)}var ui="_reactListening"+Math.random().toString(36).slice(2);function So(e){if(!e[ui]){e[ui]=!0,dp.forEach(function(n){n!=="selectionchange"&&(Kh.has(n)||as(n,!1,e),as(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[ui]||(t[ui]=!0,as("selectionchange",!1,t))}}function rm(e,t,n,a){switch(Bp(t)){case 1:var o=ch;break;case 4:o=dh;break;default:o=vc}n=o.bind(null,t,n,e),o=void 0,!Rs||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),a?o!==void 0?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):o!==void 0?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function os(e,t,n,a,o){var i=a;if(!(t&1)&&!(t&2)&&a!==null)e:for(;;){if(a===null)return;var l=a.tag;if(l===3||l===4){var s=a.stateNode.containerInfo;if(s===o||s.nodeType===8&&s.parentNode===o)break;if(l===4)for(l=a.return;l!==null;){var c=l.tag;if((c===3||c===4)&&(c=l.stateNode.containerInfo,c===o||c.nodeType===8&&c.parentNode===o))return;l=l.return}for(;s!==null;){if(l=Wr(s),l===null)return;if(c=l.tag,c===5||c===6){a=i=l;continue e}s=s.parentNode}}a=a.return}Tp(function(){var u=i,m=fc(n),h=[];e:{var g=tm.get(e);if(g!==void 0){var k=wc,E=e;switch(e){case"keypress":if(wi(n)===0)break e;case"keydown":case"keyup":k=Nh;break;case"focusin":E="focus",k=ts;break;case"focusout":E="blur",k=ts;break;case"beforeblur":case"afterblur":k=ts;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":k=yu;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":k=mh;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":k=Eh;break;case Xp:case Jp:case Zp:k=hh;break;case em:k=Rh;break;case"scroll":k=uh;break;case"wheel":k=Dh;break;case"copy":case"cut":case"paste":k=vh;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":k=bu}var T=(t&4)!==0,I=!T&&e==="scroll",w=T?g!==null?g+"Capture":null:g;T=[];for(var f=u,y;f!==null;){y=f;var L=y.stateNode;if(y.tag===5&&L!==null&&(y=L,w!==null&&(L=yo(f,w),L!=null&&T.push(Co(f,L,y)))),I)break;f=f.return}0<T.length&&(g=new k(g,E,null,n,m),h.push({event:g,listeners:T}))}}if(!(t&7)){e:{if(g=e==="mouseover"||e==="pointerover",k=e==="mouseout"||e==="pointerout",g&&n!==Es&&(E=n.relatedTarget||n.fromElement)&&(Wr(E)||E[nr]))break e;if((k||g)&&(g=m.window===m?m:(g=m.ownerDocument)?g.defaultView||g.parentWindow:window,k?(E=n.relatedTarget||n.toElement,k=u,E=E?Wr(E):null,E!==null&&(I=Zr(E),E!==I||E.tag!==5&&E.tag!==6)&&(E=null)):(k=null,E=u),k!==E)){if(T=yu,L="onMouseLeave",w="onMouseEnter",f="mouse",(e==="pointerout"||e==="pointerover")&&(T=bu,L="onPointerLeave",w="onPointerEnter",f="pointer"),I=k==null?g:ma(k),y=E==null?g:ma(E),g=new T(L,f+"leave",k,n,m),g.target=I,g.relatedTarget=y,L=null,Wr(m)===u&&(T=new T(w,f+"enter",E,n,m),T.target=y,T.relatedTarget=I,L=T),I=L,k&&E)t:{for(T=k,w=E,f=0,y=T;y;y=la(y))f++;for(y=0,L=w;L;L=la(L))y++;for(;0<f-y;)T=la(T),f--;for(;0<y-f;)w=la(w),y--;for(;f--;){if(T===w||w!==null&&T===w.alternate)break t;T=la(T),w=la(w)}T=null}else T=null;k!==null&&Lu(h,g,k,T,!1),E!==null&&I!==null&&Lu(h,I,E,T,!0)}}e:{if(g=u?ma(u):window,k=g.nodeName&&g.nodeName.toLowerCase(),k==="select"||k==="input"&&g.type==="file")var O=jh;else if(ku(g))if(Gp)O=Uh;else{O=Hh;var D=Bh}else(k=g.nodeName)&&k.toLowerCase()==="input"&&(g.type==="checkbox"||g.type==="radio")&&(O=Wh);if(O&&(O=O(e,u))){Vp(h,O,n,m);break e}D&&D(e,g,u),e==="focusout"&&(D=g._wrapperState)&&D.controlled&&g.type==="number"&&Ss(g,"number",g.value)}switch(D=u?ma(u):window,e){case"focusin":(ku(D)||D.contentEditable==="true")&&(ua=D,Fs=u,co=null);break;case"focusout":co=Fs=ua=null;break;case"mousedown":Is=!0;break;case"contextmenu":case"mouseup":case"dragend":Is=!1,Tu(h,n,m);break;case"selectionchange":if(Gh)break;case"keydown":case"keyup":Tu(h,n,m)}var P;if(kc)e:{switch(e){case"compositionstart":var A="onCompositionStart";break e;case"compositionend":A="onCompositionEnd";break e;case"compositionupdate":A="onCompositionUpdate";break e}A=void 0}else da?Up(e,n)&&(A="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(A="onCompositionStart");A&&(Wp&&n.locale!=="ko"&&(da||A!=="onCompositionStart"?A==="onCompositionEnd"&&da&&(P=Hp()):(yr=m,bc="value"in yr?yr.value:yr.textContent,da=!0)),D=Fi(u,A),0<D.length&&(A=new vu(A,e,null,n,m),h.push({event:A,listeners:D}),P?A.data=P:(P=$p(n),P!==null&&(A.data=P)))),(P=Ah?Fh(e,n):Ih(e,n))&&(u=Fi(u,"onBeforeInput"),0<u.length&&(m=new vu("onBeforeInput","beforeinput",null,n,m),h.push({event:m,listeners:u}),m.data=P))}nm(h,t)})}function Co(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Fi(e,t){for(var n=t+"Capture",a=[];e!==null;){var o=e,i=o.stateNode;o.tag===5&&i!==null&&(o=i,i=yo(e,n),i!=null&&a.unshift(Co(e,i,o)),i=yo(e,t),i!=null&&a.push(Co(e,i,o))),e=e.return}return a}function la(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Lu(e,t,n,a,o){for(var i=t._reactName,l=[];n!==null&&n!==a;){var s=n,c=s.alternate,u=s.stateNode;if(c!==null&&c===a)break;s.tag===5&&u!==null&&(s=u,o?(c=yo(n,i),c!=null&&l.unshift(Co(n,c,s))):o||(c=yo(n,i),c!=null&&l.push(Co(n,c,s)))),n=n.return}l.length!==0&&e.push({event:t,listeners:l})}var qh=/\r\n?/g,Yh=/\u0000|\uFFFD/g;function Du(e){return(typeof e=="string"?e:""+e).replace(qh,`
6
+ `).replace(Yh,"")}function pi(e,t,n){if(t=Du(t),Du(e)!==t&&n)throw Error(X(425))}function Ii(){}var _s=null,Os=null;function js(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Bs=typeof setTimeout=="function"?setTimeout:void 0,Qh=typeof clearTimeout=="function"?clearTimeout:void 0,Pu=typeof Promise=="function"?Promise:void 0,Xh=typeof queueMicrotask=="function"?queueMicrotask:typeof Pu<"u"?function(e){return Pu.resolve(null).then(e).catch(Jh)}:Bs;function Jh(e){setTimeout(function(){throw e})}function is(e,t){var n=t,a=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"){if(a===0){e.removeChild(o),wo(t);return}a--}else n!=="$"&&n!=="$?"&&n!=="$!"||a++;n=o}while(n);wo(t)}function kr(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function Au(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var Aa=Math.random().toString(36).slice(2),$n="__reactFiber$"+Aa,No="__reactProps$"+Aa,nr="__reactContainer$"+Aa,Hs="__reactEvents$"+Aa,Zh="__reactListeners$"+Aa,ey="__reactHandles$"+Aa;function Wr(e){var t=e[$n];if(t)return t;for(var n=e.parentNode;n;){if(t=n[nr]||n[$n]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Au(e);e!==null;){if(n=e[$n])return n;e=Au(e)}return t}e=n,n=e.parentNode}return null}function Ao(e){return e=e[$n]||e[nr],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function ma(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(X(33))}function nl(e){return e[No]||null}var Ws=[],fa=-1;function Rr(e){return{current:e}}function rt(e){0>fa||(e.current=Ws[fa],Ws[fa]=null,fa--)}function Ze(e,t){fa++,Ws[fa]=e.current,e.current=t}var Er={},_t=Rr(Er),tn=Rr(!1),Kr=Er;function Ma(e,t){var n=e.type.contextTypes;if(!n)return Er;var a=e.stateNode;if(a&&a.__reactInternalMemoizedUnmaskedChildContext===t)return a.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return a&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function nn(e){return e=e.childContextTypes,e!=null}function _i(){rt(tn),rt(_t)}function Fu(e,t,n){if(_t.current!==Er)throw Error(X(168));Ze(_t,t),Ze(tn,n)}function am(e,t,n){var a=e.stateNode;if(t=t.childContextTypes,typeof a.getChildContext!="function")return n;a=a.getChildContext();for(var o in a)if(!(o in t))throw Error(X(108,Bg(e)||"Unknown",o));return ct({},n,a)}function Oi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Er,Kr=_t.current,Ze(_t,e),Ze(tn,tn.current),!0}function Iu(e,t,n){var a=e.stateNode;if(!a)throw Error(X(169));n?(e=am(e,t,Kr),a.__reactInternalMemoizedMergedChildContext=e,rt(tn),rt(_t),Ze(_t,e)):rt(tn),Ze(tn,n)}var Xn=null,rl=!1,ls=!1;function om(e){Xn===null?Xn=[e]:Xn.push(e)}function ty(e){rl=!0,om(e)}function Lr(){if(!ls&&Xn!==null){ls=!0;var e=0,t=Ge;try{var n=Xn;for(Ge=1;e<n.length;e++){var a=n[e];do a=a(!0);while(a!==null)}Xn=null,rl=!1}catch(o){throw Xn!==null&&(Xn=Xn.slice(e+1)),Rp(gc,Lr),o}finally{Ge=t,ls=!1}}return null}var ga=[],ha=0,ji=null,Bi=0,gn=[],hn=0,qr=null,Jn=1,Zn="";function Br(e,t){ga[ha++]=Bi,ga[ha++]=ji,ji=e,Bi=t}function im(e,t,n){gn[hn++]=Jn,gn[hn++]=Zn,gn[hn++]=qr,qr=e;var a=Jn;e=Zn;var o=32-Pn(a)-1;a&=~(1<<o),n+=1;var i=32-Pn(t)+o;if(30<i){var l=o-o%5;i=(a&(1<<l)-1).toString(32),a>>=l,o-=l,Jn=1<<32-Pn(t)+o|n<<o|a,Zn=i+e}else Jn=1<<i|n<<o|a,Zn=e}function Cc(e){e.return!==null&&(Br(e,1),im(e,1,0))}function Nc(e){for(;e===ji;)ji=ga[--ha],ga[ha]=null,Bi=ga[--ha],ga[ha]=null;for(;e===qr;)qr=gn[--hn],gn[hn]=null,Zn=gn[--hn],gn[hn]=null,Jn=gn[--hn],gn[hn]=null}var sn=null,ln=null,at=!1,Dn=null;function lm(e,t){var n=yn(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function _u(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,sn=e,ln=kr(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,sn=e,ln=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=qr!==null?{id:Jn,overflow:Zn}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=yn(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,sn=e,ln=null,!0):!1;default:return!1}}function Us(e){return(e.mode&1)!==0&&(e.flags&128)===0}function $s(e){if(at){var t=ln;if(t){var n=t;if(!_u(e,t)){if(Us(e))throw Error(X(418));t=kr(n.nextSibling);var a=sn;t&&_u(e,t)?lm(a,n):(e.flags=e.flags&-4097|2,at=!1,sn=e)}}else{if(Us(e))throw Error(X(418));e.flags=e.flags&-4097|2,at=!1,sn=e}}}function Ou(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;sn=e}function mi(e){if(e!==sn)return!1;if(!at)return Ou(e),at=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!js(e.type,e.memoizedProps)),t&&(t=ln)){if(Us(e))throw sm(),Error(X(418));for(;t;)lm(e,t),t=kr(t.nextSibling)}if(Ou(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(X(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){ln=kr(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}ln=null}}else ln=sn?kr(e.stateNode.nextSibling):null;return!0}function sm(){for(var e=ln;e;)e=kr(e.nextSibling)}function Ea(){ln=sn=null,at=!1}function Tc(e){Dn===null?Dn=[e]:Dn.push(e)}var ny=or.ReactCurrentBatchConfig;function Xa(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(X(309));var a=n.stateNode}if(!a)throw Error(X(147,e));var o=a,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(l){var s=o.refs;l===null?delete s[i]:s[i]=l},t._stringRef=i,t)}if(typeof e!="string")throw Error(X(284));if(!n._owner)throw Error(X(290,e))}return e}function fi(e,t){throw e=Object.prototype.toString.call(t),Error(X(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function ju(e){var t=e._init;return t(e._payload)}function cm(e){function t(w,f){if(e){var y=w.deletions;y===null?(w.deletions=[f],w.flags|=16):y.push(f)}}function n(w,f){if(!e)return null;for(;f!==null;)t(w,f),f=f.sibling;return null}function a(w,f){for(w=new Map;f!==null;)f.key!==null?w.set(f.key,f):w.set(f.index,f),f=f.sibling;return w}function o(w,f){return w=Tr(w,f),w.index=0,w.sibling=null,w}function i(w,f,y){return w.index=y,e?(y=w.alternate,y!==null?(y=y.index,y<f?(w.flags|=2,f):y):(w.flags|=2,f)):(w.flags|=1048576,f)}function l(w){return e&&w.alternate===null&&(w.flags|=2),w}function s(w,f,y,L){return f===null||f.tag!==6?(f=fs(y,w.mode,L),f.return=w,f):(f=o(f,y),f.return=w,f)}function c(w,f,y,L){var O=y.type;return O===ca?m(w,f,y.props.children,L,y.key):f!==null&&(f.elementType===O||typeof O=="object"&&O!==null&&O.$$typeof===mr&&ju(O)===f.type)?(L=o(f,y.props),L.ref=Xa(w,f,y),L.return=w,L):(L=Mi(y.type,y.key,y.props,null,w.mode,L),L.ref=Xa(w,f,y),L.return=w,L)}function u(w,f,y,L){return f===null||f.tag!==4||f.stateNode.containerInfo!==y.containerInfo||f.stateNode.implementation!==y.implementation?(f=gs(y,w.mode,L),f.return=w,f):(f=o(f,y.children||[]),f.return=w,f)}function m(w,f,y,L,O){return f===null||f.tag!==7?(f=Gr(y,w.mode,L,O),f.return=w,f):(f=o(f,y),f.return=w,f)}function h(w,f,y){if(typeof f=="string"&&f!==""||typeof f=="number")return f=fs(""+f,w.mode,y),f.return=w,f;if(typeof f=="object"&&f!==null){switch(f.$$typeof){case Zo:return y=Mi(f.type,f.key,f.props,null,w.mode,y),y.ref=Xa(w,null,f),y.return=w,y;case sa:return f=gs(f,w.mode,y),f.return=w,f;case mr:var L=f._init;return h(w,L(f._payload),y)}if(no(f)||Ka(f))return f=Gr(f,w.mode,y,null),f.return=w,f;fi(w,f)}return null}function g(w,f,y,L){var O=f!==null?f.key:null;if(typeof y=="string"&&y!==""||typeof y=="number")return O!==null?null:s(w,f,""+y,L);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case Zo:return y.key===O?c(w,f,y,L):null;case sa:return y.key===O?u(w,f,y,L):null;case mr:return O=y._init,g(w,f,O(y._payload),L)}if(no(y)||Ka(y))return O!==null?null:m(w,f,y,L,null);fi(w,y)}return null}function k(w,f,y,L,O){if(typeof L=="string"&&L!==""||typeof L=="number")return w=w.get(y)||null,s(f,w,""+L,O);if(typeof L=="object"&&L!==null){switch(L.$$typeof){case Zo:return w=w.get(L.key===null?y:L.key)||null,c(f,w,L,O);case sa:return w=w.get(L.key===null?y:L.key)||null,u(f,w,L,O);case mr:var D=L._init;return k(w,f,y,D(L._payload),O)}if(no(L)||Ka(L))return w=w.get(y)||null,m(f,w,L,O,null);fi(f,L)}return null}function E(w,f,y,L){for(var O=null,D=null,P=f,A=f=0,j=null;P!==null&&A<y.length;A++){P.index>A?(j=P,P=null):j=P.sibling;var H=g(w,P,y[A],L);if(H===null){P===null&&(P=j);break}e&&P&&H.alternate===null&&t(w,P),f=i(H,f,A),D===null?O=H:D.sibling=H,D=H,P=j}if(A===y.length)return n(w,P),at&&Br(w,A),O;if(P===null){for(;A<y.length;A++)P=h(w,y[A],L),P!==null&&(f=i(P,f,A),D===null?O=P:D.sibling=P,D=P);return at&&Br(w,A),O}for(P=a(w,P);A<y.length;A++)j=k(P,w,A,y[A],L),j!==null&&(e&&j.alternate!==null&&P.delete(j.key===null?A:j.key),f=i(j,f,A),D===null?O=j:D.sibling=j,D=j);return e&&P.forEach(function(ce){return t(w,ce)}),at&&Br(w,A),O}function T(w,f,y,L){var O=Ka(y);if(typeof O!="function")throw Error(X(150));if(y=O.call(y),y==null)throw Error(X(151));for(var D=O=null,P=f,A=f=0,j=null,H=y.next();P!==null&&!H.done;A++,H=y.next()){P.index>A?(j=P,P=null):j=P.sibling;var ce=g(w,P,H.value,L);if(ce===null){P===null&&(P=j);break}e&&P&&ce.alternate===null&&t(w,P),f=i(ce,f,A),D===null?O=ce:D.sibling=ce,D=ce,P=j}if(H.done)return n(w,P),at&&Br(w,A),O;if(P===null){for(;!H.done;A++,H=y.next())H=h(w,H.value,L),H!==null&&(f=i(H,f,A),D===null?O=H:D.sibling=H,D=H);return at&&Br(w,A),O}for(P=a(w,P);!H.done;A++,H=y.next())H=k(P,w,A,H.value,L),H!==null&&(e&&H.alternate!==null&&P.delete(H.key===null?A:H.key),f=i(H,f,A),D===null?O=H:D.sibling=H,D=H);return e&&P.forEach(function(ve){return t(w,ve)}),at&&Br(w,A),O}function I(w,f,y,L){if(typeof y=="object"&&y!==null&&y.type===ca&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case Zo:e:{for(var O=y.key,D=f;D!==null;){if(D.key===O){if(O=y.type,O===ca){if(D.tag===7){n(w,D.sibling),f=o(D,y.props.children),f.return=w,w=f;break e}}else if(D.elementType===O||typeof O=="object"&&O!==null&&O.$$typeof===mr&&ju(O)===D.type){n(w,D.sibling),f=o(D,y.props),f.ref=Xa(w,D,y),f.return=w,w=f;break e}n(w,D);break}else t(w,D);D=D.sibling}y.type===ca?(f=Gr(y.props.children,w.mode,L,y.key),f.return=w,w=f):(L=Mi(y.type,y.key,y.props,null,w.mode,L),L.ref=Xa(w,f,y),L.return=w,w=L)}return l(w);case sa:e:{for(D=y.key;f!==null;){if(f.key===D)if(f.tag===4&&f.stateNode.containerInfo===y.containerInfo&&f.stateNode.implementation===y.implementation){n(w,f.sibling),f=o(f,y.children||[]),f.return=w,w=f;break e}else{n(w,f);break}else t(w,f);f=f.sibling}f=gs(y,w.mode,L),f.return=w,w=f}return l(w);case mr:return D=y._init,I(w,f,D(y._payload),L)}if(no(y))return E(w,f,y,L);if(Ka(y))return T(w,f,y,L);fi(w,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,f!==null&&f.tag===6?(n(w,f.sibling),f=o(f,y),f.return=w,w=f):(n(w,f),f=fs(y,w.mode,L),f.return=w,w=f),l(w)):n(w,f)}return I}var za=cm(!0),dm=cm(!1),Hi=Rr(null),Wi=null,ya=null,Mc=null;function Ec(){Mc=ya=Wi=null}function zc(e){var t=Hi.current;rt(Hi),e._currentValue=t}function Vs(e,t,n){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===n)break;e=e.return}}function Ca(e,t){Wi=e,Mc=ya=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(en=!0),e.firstContext=null)}function bn(e){var t=e._currentValue;if(Mc!==e)if(e={context:e,memoizedValue:t,next:null},ya===null){if(Wi===null)throw Error(X(308));ya=e,Wi.dependencies={lanes:0,firstContext:e}}else ya=ya.next=e;return t}var Ur=null;function Rc(e){Ur===null?Ur=[e]:Ur.push(e)}function um(e,t,n,a){var o=t.interleaved;return o===null?(n.next=n,Rc(t)):(n.next=o.next,o.next=n),t.interleaved=n,rr(e,a)}function rr(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var fr=!1;function Lc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function pm(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function er(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Sr(e,t,n){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,We&2){var o=a.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),a.pending=t,rr(e,n)}return o=a.interleaved,o===null?(t.next=t,Rc(a)):(t.next=o.next,o.next=t),a.interleaved=t,rr(e,n)}function xi(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,hc(e,n)}}function Bu(e,t){var n=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,n===a)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var l={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=l:i=i.next=l,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:a.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:a.shared,effects:a.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Ui(e,t,n,a){var o=e.updateQueue;fr=!1;var i=o.firstBaseUpdate,l=o.lastBaseUpdate,s=o.shared.pending;if(s!==null){o.shared.pending=null;var c=s,u=c.next;c.next=null,l===null?i=u:l.next=u,l=c;var m=e.alternate;m!==null&&(m=m.updateQueue,s=m.lastBaseUpdate,s!==l&&(s===null?m.firstBaseUpdate=u:s.next=u,m.lastBaseUpdate=c))}if(i!==null){var h=o.baseState;l=0,m=u=c=null,s=i;do{var g=s.lane,k=s.eventTime;if((a&g)===g){m!==null&&(m=m.next={eventTime:k,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var E=e,T=s;switch(g=t,k=n,T.tag){case 1:if(E=T.payload,typeof E=="function"){h=E.call(k,h,g);break e}h=E;break e;case 3:E.flags=E.flags&-65537|128;case 0:if(E=T.payload,g=typeof E=="function"?E.call(k,h,g):E,g==null)break e;h=ct({},h,g);break e;case 2:fr=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,g=o.effects,g===null?o.effects=[s]:g.push(s))}else k={eventTime:k,lane:g,tag:s.tag,payload:s.payload,callback:s.callback,next:null},m===null?(u=m=k,c=h):m=m.next=k,l|=g;if(s=s.next,s===null){if(s=o.shared.pending,s===null)break;g=s,s=g.next,g.next=null,o.lastBaseUpdate=g,o.shared.pending=null}}while(!0);if(m===null&&(c=h),o.baseState=c,o.firstBaseUpdate=u,o.lastBaseUpdate=m,t=o.shared.interleaved,t!==null){o=t;do l|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);Qr|=l,e.lanes=l,e.memoizedState=h}}function Hu(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var a=e[t],o=a.callback;if(o!==null){if(a.callback=null,a=n,typeof o!="function")throw Error(X(191,o));o.call(a)}}}var Fo={},Gn=Rr(Fo),To=Rr(Fo),Mo=Rr(Fo);function $r(e){if(e===Fo)throw Error(X(174));return e}function Dc(e,t){switch(Ze(Mo,t),Ze(To,e),Ze(Gn,Fo),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Ns(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Ns(t,e)}rt(Gn),Ze(Gn,t)}function Ra(){rt(Gn),rt(To),rt(Mo)}function mm(e){$r(Mo.current);var t=$r(Gn.current),n=Ns(t,e.type);t!==n&&(Ze(To,e),Ze(Gn,n))}function Pc(e){To.current===e&&(rt(Gn),rt(To))}var lt=Rr(0);function $i(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ss=[];function Ac(){for(var e=0;e<ss.length;e++)ss[e]._workInProgressVersionPrimary=null;ss.length=0}var ki=or.ReactCurrentDispatcher,cs=or.ReactCurrentBatchConfig,Yr=0,st=null,bt=null,kt=null,Vi=!1,uo=!1,Eo=0,ry=0;function At(){throw Error(X(321))}function Fc(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Fn(e[n],t[n]))return!1;return!0}function Ic(e,t,n,a,o,i){if(Yr=i,st=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ki.current=e===null||e.memoizedState===null?ly:sy,e=n(a,o),uo){i=0;do{if(uo=!1,Eo=0,25<=i)throw Error(X(301));i+=1,kt=bt=null,t.updateQueue=null,ki.current=cy,e=n(a,o)}while(uo)}if(ki.current=Gi,t=bt!==null&&bt.next!==null,Yr=0,kt=bt=st=null,Vi=!1,t)throw Error(X(300));return e}function _c(){var e=Eo!==0;return Eo=0,e}function Un(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return kt===null?st.memoizedState=kt=e:kt=kt.next=e,kt}function wn(){if(bt===null){var e=st.alternate;e=e!==null?e.memoizedState:null}else e=bt.next;var t=kt===null?st.memoizedState:kt.next;if(t!==null)kt=t,bt=e;else{if(e===null)throw Error(X(310));bt=e,e={memoizedState:bt.memoizedState,baseState:bt.baseState,baseQueue:bt.baseQueue,queue:bt.queue,next:null},kt===null?st.memoizedState=kt=e:kt=kt.next=e}return kt}function zo(e,t){return typeof t=="function"?t(e):t}function ds(e){var t=wn(),n=t.queue;if(n===null)throw Error(X(311));n.lastRenderedReducer=e;var a=bt,o=a.baseQueue,i=n.pending;if(i!==null){if(o!==null){var l=o.next;o.next=i.next,i.next=l}a.baseQueue=o=i,n.pending=null}if(o!==null){i=o.next,a=a.baseState;var s=l=null,c=null,u=i;do{var m=u.lane;if((Yr&m)===m)c!==null&&(c=c.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),a=u.hasEagerState?u.eagerState:e(a,u.action);else{var h={lane:m,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};c===null?(s=c=h,l=a):c=c.next=h,st.lanes|=m,Qr|=m}u=u.next}while(u!==null&&u!==i);c===null?l=a:c.next=s,Fn(a,t.memoizedState)||(en=!0),t.memoizedState=a,t.baseState=l,t.baseQueue=c,n.lastRenderedState=a}if(e=n.interleaved,e!==null){o=e;do i=o.lane,st.lanes|=i,Qr|=i,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function us(e){var t=wn(),n=t.queue;if(n===null)throw Error(X(311));n.lastRenderedReducer=e;var a=n.dispatch,o=n.pending,i=t.memoizedState;if(o!==null){n.pending=null;var l=o=o.next;do i=e(i,l.action),l=l.next;while(l!==o);Fn(i,t.memoizedState)||(en=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,a]}function fm(){}function gm(e,t){var n=st,a=wn(),o=t(),i=!Fn(a.memoizedState,o);if(i&&(a.memoizedState=o,en=!0),a=a.queue,Oc(vm.bind(null,n,a,e),[e]),a.getSnapshot!==t||i||kt!==null&&kt.memoizedState.tag&1){if(n.flags|=2048,Ro(9,ym.bind(null,n,a,o,t),void 0,null),St===null)throw Error(X(349));Yr&30||hm(n,t,o)}return o}function hm(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=st.updateQueue,t===null?(t={lastEffect:null,stores:null},st.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function ym(e,t,n,a){t.value=n,t.getSnapshot=a,bm(t)&&wm(e)}function vm(e,t,n){return n(function(){bm(t)&&wm(e)})}function bm(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Fn(e,n)}catch{return!0}}function wm(e){var t=rr(e,1);t!==null&&An(t,e,1,-1)}function Wu(e){var t=Un();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:zo,lastRenderedState:e},t.queue=e,e=e.dispatch=iy.bind(null,st,e),[t.memoizedState,e]}function Ro(e,t,n,a){return e={tag:e,create:t,destroy:n,deps:a,next:null},t=st.updateQueue,t===null?(t={lastEffect:null,stores:null},st.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(a=n.next,n.next=e,e.next=a,t.lastEffect=e)),e}function xm(){return wn().memoizedState}function Si(e,t,n,a){var o=Un();st.flags|=e,o.memoizedState=Ro(1|t,n,void 0,a===void 0?null:a)}function al(e,t,n,a){var o=wn();a=a===void 0?null:a;var i=void 0;if(bt!==null){var l=bt.memoizedState;if(i=l.destroy,a!==null&&Fc(a,l.deps)){o.memoizedState=Ro(t,n,i,a);return}}st.flags|=e,o.memoizedState=Ro(1|t,n,i,a)}function Uu(e,t){return Si(8390656,8,e,t)}function Oc(e,t){return al(2048,8,e,t)}function km(e,t){return al(4,2,e,t)}function Sm(e,t){return al(4,4,e,t)}function Cm(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Nm(e,t,n){return n=n!=null?n.concat([e]):null,al(4,4,Cm.bind(null,t,e),n)}function jc(){}function Tm(e,t){var n=wn();t=t===void 0?null:t;var a=n.memoizedState;return a!==null&&t!==null&&Fc(t,a[1])?a[0]:(n.memoizedState=[e,t],e)}function Mm(e,t){var n=wn();t=t===void 0?null:t;var a=n.memoizedState;return a!==null&&t!==null&&Fc(t,a[1])?a[0]:(e=e(),n.memoizedState=[e,t],e)}function Em(e,t,n){return Yr&21?(Fn(n,t)||(n=Pp(),st.lanes|=n,Qr|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,en=!0),e.memoizedState=n)}function ay(e,t){var n=Ge;Ge=n!==0&&4>n?n:4,e(!0);var a=cs.transition;cs.transition={};try{e(!1),t()}finally{Ge=n,cs.transition=a}}function zm(){return wn().memoizedState}function oy(e,t,n){var a=Nr(e);if(n={lane:a,action:n,hasEagerState:!1,eagerState:null,next:null},Rm(e))Lm(t,n);else if(n=um(e,t,n,a),n!==null){var o=Gt();An(n,e,a,o),Dm(n,t,a)}}function iy(e,t,n){var a=Nr(e),o={lane:a,action:n,hasEagerState:!1,eagerState:null,next:null};if(Rm(e))Lm(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var l=t.lastRenderedState,s=i(l,n);if(o.hasEagerState=!0,o.eagerState=s,Fn(s,l)){var c=t.interleaved;c===null?(o.next=o,Rc(t)):(o.next=c.next,c.next=o),t.interleaved=o;return}}catch{}finally{}n=um(e,t,o,a),n!==null&&(o=Gt(),An(n,e,a,o),Dm(n,t,a))}}function Rm(e){var t=e.alternate;return e===st||t!==null&&t===st}function Lm(e,t){uo=Vi=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Dm(e,t,n){if(n&4194240){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,hc(e,n)}}var Gi={readContext:bn,useCallback:At,useContext:At,useEffect:At,useImperativeHandle:At,useInsertionEffect:At,useLayoutEffect:At,useMemo:At,useReducer:At,useRef:At,useState:At,useDebugValue:At,useDeferredValue:At,useTransition:At,useMutableSource:At,useSyncExternalStore:At,useId:At,unstable_isNewReconciler:!1},ly={readContext:bn,useCallback:function(e,t){return Un().memoizedState=[e,t===void 0?null:t],e},useContext:bn,useEffect:Uu,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Si(4194308,4,Cm.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Si(4194308,4,e,t)},useInsertionEffect:function(e,t){return Si(4,2,e,t)},useMemo:function(e,t){var n=Un();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var a=Un();return t=n!==void 0?n(t):t,a.memoizedState=a.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},a.queue=e,e=e.dispatch=oy.bind(null,st,e),[a.memoizedState,e]},useRef:function(e){var t=Un();return e={current:e},t.memoizedState=e},useState:Wu,useDebugValue:jc,useDeferredValue:function(e){return Un().memoizedState=e},useTransition:function(){var e=Wu(!1),t=e[0];return e=ay.bind(null,e[1]),Un().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var a=st,o=Un();if(at){if(n===void 0)throw Error(X(407));n=n()}else{if(n=t(),St===null)throw Error(X(349));Yr&30||hm(a,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,Uu(vm.bind(null,a,i,e),[e]),a.flags|=2048,Ro(9,ym.bind(null,a,i,n,t),void 0,null),n},useId:function(){var e=Un(),t=St.identifierPrefix;if(at){var n=Zn,a=Jn;n=(a&~(1<<32-Pn(a)-1)).toString(32)+n,t=":"+t+"R"+n,n=Eo++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=ry++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},sy={readContext:bn,useCallback:Tm,useContext:bn,useEffect:Oc,useImperativeHandle:Nm,useInsertionEffect:km,useLayoutEffect:Sm,useMemo:Mm,useReducer:ds,useRef:xm,useState:function(){return ds(zo)},useDebugValue:jc,useDeferredValue:function(e){var t=wn();return Em(t,bt.memoizedState,e)},useTransition:function(){var e=ds(zo)[0],t=wn().memoizedState;return[e,t]},useMutableSource:fm,useSyncExternalStore:gm,useId:zm,unstable_isNewReconciler:!1},cy={readContext:bn,useCallback:Tm,useContext:bn,useEffect:Oc,useImperativeHandle:Nm,useInsertionEffect:km,useLayoutEffect:Sm,useMemo:Mm,useReducer:us,useRef:xm,useState:function(){return us(zo)},useDebugValue:jc,useDeferredValue:function(e){var t=wn();return bt===null?t.memoizedState=e:Em(t,bt.memoizedState,e)},useTransition:function(){var e=us(zo)[0],t=wn().memoizedState;return[e,t]},useMutableSource:fm,useSyncExternalStore:gm,useId:zm,unstable_isNewReconciler:!1};function Rn(e,t){if(e&&e.defaultProps){t=ct({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Gs(e,t,n,a){t=e.memoizedState,n=n(a,t),n=n==null?t:ct({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var ol={isMounted:function(e){return(e=e._reactInternals)?Zr(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var a=Gt(),o=Nr(e),i=er(a,o);i.payload=t,n!=null&&(i.callback=n),t=Sr(e,i,o),t!==null&&(An(t,e,o,a),xi(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var a=Gt(),o=Nr(e),i=er(a,o);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Sr(e,i,o),t!==null&&(An(t,e,o,a),xi(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Gt(),a=Nr(e),o=er(n,a);o.tag=2,t!=null&&(o.callback=t),t=Sr(e,o,a),t!==null&&(An(t,e,a,n),xi(t,e,a))}};function $u(e,t,n,a,o,i,l){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,i,l):t.prototype&&t.prototype.isPureReactComponent?!ko(n,a)||!ko(o,i):!0}function Pm(e,t,n){var a=!1,o=Er,i=t.contextType;return typeof i=="object"&&i!==null?i=bn(i):(o=nn(t)?Kr:_t.current,a=t.contextTypes,i=(a=a!=null)?Ma(e,o):Er),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=ol,e.stateNode=t,t._reactInternals=e,a&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function Vu(e,t,n,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,a),t.state!==e&&ol.enqueueReplaceState(t,t.state,null)}function Ks(e,t,n,a){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},Lc(e);var i=t.contextType;typeof i=="object"&&i!==null?o.context=bn(i):(i=nn(t)?Kr:_t.current,o.context=Ma(e,i)),o.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(Gs(e,t,i,n),o.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(t=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),t!==o.state&&ol.enqueueReplaceState(o,o.state,null),Ui(e,n,o,a),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function La(e,t){try{var n="",a=t;do n+=jg(a),a=a.return;while(a);var o=n}catch(i){o=`
7
7
  Error generating stack: `+i.message+`
8
- `+i.stack}return{value:e,source:t,stack:o,digest:null}}function us(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Ks(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var cy=typeof WeakMap=="function"?WeakMap:Map;function Pm(e,t,n){n=er(-1,n),n.tag=3,n.payload={element:null};var a=t.value;return n.callback=function(){qi||(qi=!0,rc=a),Ks(e,t)},n}function Am(e,t,n){n=er(-1,n),n.tag=3;var a=e.type.getDerivedStateFromError;if(typeof a=="function"){var o=t.value;n.payload=function(){return a(o)},n.callback=function(){Ks(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){Ks(e,t),typeof a!="function"&&(Cr===null?Cr=new Set([this]):Cr.add(this));var l=t.stack;this.componentDidCatch(t.value,{componentStack:l!==null?l:""})}),n}function Vu(e,t,n){var a=e.pingCache;if(a===null){a=e.pingCache=new cy;var o=new Set;a.set(t,o)}else o=a.get(t),o===void 0&&(o=new Set,a.set(t,o));o.has(n)||(o.add(n),e=Sy.bind(null,e,t,n),t.then(e,e))}function Gu(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Ku(e,t,n,a,o){return e.mode&1?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=er(-1,1),t.tag=2,Sr(n,t,1))),n.lanes|=1),e)}var dy=or.ReactCurrentOwner,en=!1;function Vt(e,t,n,a){t.child=e===null?cm(t,null,n,a):Ra(t,e.child,n,a)}function qu(e,t,n,a,o){n=n.render;var i=t.ref;return Na(t,o),a=Fc(e,t,n,a,i,o),n=Ic(),e!==null&&!en?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,ar(e,t,o)):(at&&n&&Sc(t),t.flags|=1,Vt(e,t,a,o),t.child)}function Yu(e,t,n,a,o){if(e===null){var i=n.type;return typeof i=="function"&&!Gc(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,Fm(e,t,i,a,o)):(e=Mi(n.type,null,a,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&o)){var l=i.memoizedProps;if(n=n.compare,n=n!==null?n:So,n(l,a)&&e.ref===t.ref)return ar(e,t,o)}return t.flags|=1,e=Tr(i,a),e.ref=t.ref,e.return=t,t.child=e}function Fm(e,t,n,a,o){if(e!==null){var i=e.memoizedProps;if(So(i,a)&&e.ref===t.ref)if(en=!1,t.pendingProps=a=i,(e.lanes&o)!==0)e.flags&131072&&(en=!0);else return t.lanes=e.lanes,ar(e,t,o)}return qs(e,t,n,a,o)}function Im(e,t,n){var a=t.pendingProps,o=a.children,i=e!==null?e.memoizedState:null;if(a.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ze(wa,on),on|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ze(wa,on),on|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},a=i!==null?i.baseLanes:n,Ze(wa,on),on|=a}else i!==null?(a=i.baseLanes|n,t.memoizedState=null):a=n,Ze(wa,on),on|=a;return Vt(e,t,o,n),t.child}function _m(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function qs(e,t,n,a,o){var i=nn(n)?Kr:_t.current;return i=Ea(t,i),Na(t,o),n=Fc(e,t,n,a,i,o),a=Ic(),e!==null&&!en?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,ar(e,t,o)):(at&&a&&Sc(t),t.flags|=1,Vt(e,t,n,o),t.child)}function Qu(e,t,n,a,o){if(nn(n)){var i=!0;Oi(t)}else i=!1;if(Na(t,o),t.stateNode===null)Ci(e,t),Dm(t,n,a),Gs(t,n,a,o),a=!0;else if(e===null){var l=t.stateNode,s=t.memoizedProps;l.props=s;var c=l.context,u=n.contextType;typeof u=="object"&&u!==null?u=vn(u):(u=nn(n)?Kr:_t.current,u=Ea(t,u));var p=n.getDerivedStateFromProps,h=typeof p=="function"||typeof l.getSnapshotBeforeUpdate=="function";h||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(s!==a||c!==u)&&$u(t,l,a,u),fr=!1;var g=t.memoizedState;l.state=g,Ui(t,a,l,o),c=t.memoizedState,s!==a||g!==c||tn.current||fr?(typeof p=="function"&&(Vs(t,n,p,a),c=t.memoizedState),(s=fr||Uu(t,n,s,a,g,c,u))?(h||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount()),typeof l.componentDidMount=="function"&&(t.flags|=4194308)):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=c),l.props=a,l.state=c,l.context=u,a=s):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{l=t.stateNode,um(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:Rn(t.type,s),l.props=u,h=t.pendingProps,g=l.context,c=n.contextType,typeof c=="object"&&c!==null?c=vn(c):(c=nn(n)?Kr:_t.current,c=Ea(t,c));var k=n.getDerivedStateFromProps;(p=typeof k=="function"||typeof l.getSnapshotBeforeUpdate=="function")||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(s!==h||g!==c)&&$u(t,l,a,c),fr=!1,g=t.memoizedState,l.state=g,Ui(t,a,l,o);var L=t.memoizedState;s!==h||g!==L||tn.current||fr?(typeof k=="function"&&(Vs(t,n,k,a),L=t.memoizedState),(u=fr||Uu(t,n,u,a,g,L,c)||!1)?(p||typeof l.UNSAFE_componentWillUpdate!="function"&&typeof l.componentWillUpdate!="function"||(typeof l.componentWillUpdate=="function"&&l.componentWillUpdate(a,L,c),typeof l.UNSAFE_componentWillUpdate=="function"&&l.UNSAFE_componentWillUpdate(a,L,c)),typeof l.componentDidUpdate=="function"&&(t.flags|=4),typeof l.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof l.componentDidUpdate!="function"||s===e.memoizedProps&&g===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&g===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=L),l.props=a,l.state=L,l.context=c,a=u):(typeof l.componentDidUpdate!="function"||s===e.memoizedProps&&g===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&g===e.memoizedState||(t.flags|=1024),a=!1)}return Ys(e,t,n,a,i,o)}function Ys(e,t,n,a,o,i){_m(e,t);var l=(t.flags&128)!==0;if(!a&&!l)return o&&Fu(t,n,!1),ar(e,t,i);a=t.stateNode,dy.current=t;var s=l&&typeof n.getDerivedStateFromError!="function"?null:a.render();return t.flags|=1,e!==null&&l?(t.child=Ra(t,e.child,null,i),t.child=Ra(t,null,s,i)):Vt(e,t,s,i),t.memoizedState=a.state,o&&Fu(t,n,!0),t.child}function Om(e){var t=e.stateNode;t.pendingContext?Au(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Au(e,t.context,!1),Lc(e,t.containerInfo)}function Xu(e,t,n,a,o){return za(),Nc(o),t.flags|=256,Vt(e,t,n,a),t.child}var Qs={dehydrated:null,treeContext:null,retryLane:0};function Xs(e){return{baseLanes:e,cachePool:null,transitions:null}}function jm(e,t,n){var a=t.pendingProps,o=lt.current,i=!1,l=(t.flags&128)!==0,s;if((s=l)||(s=e!==null&&e.memoizedState===null?!1:(o&2)!==0),s?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),Ze(lt,o&1),e===null)return Us(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(l=a.children,e=a.fallback,i?(a=t.mode,i=t.child,l={mode:"hidden",children:l},!(a&1)&&i!==null?(i.childLanes=0,i.pendingProps=l):i=sl(l,a,0,null),e=Gr(e,a,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=Xs(n),t.memoizedState=Qs,e):jc(t,l));if(o=e.memoizedState,o!==null&&(s=o.dehydrated,s!==null))return uy(e,t,l,a,s,o,n);if(i){i=a.fallback,l=t.mode,o=e.child,s=o.sibling;var c={mode:"hidden",children:a.children};return!(l&1)&&t.child!==o?(a=t.child,a.childLanes=0,a.pendingProps=c,t.deletions=null):(a=Tr(o,c),a.subtreeFlags=o.subtreeFlags&14680064),s!==null?i=Tr(s,i):(i=Gr(i,l,n,null),i.flags|=2),i.return=t,a.return=t,a.sibling=i,t.child=a,a=i,i=t.child,l=e.child.memoizedState,l=l===null?Xs(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},i.memoizedState=l,i.childLanes=e.childLanes&~n,t.memoizedState=Qs,a}return i=e.child,e=i.sibling,a=Tr(i,{mode:"visible",children:a.children}),!(t.mode&1)&&(a.lanes=n),a.return=t,a.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=a,t.memoizedState=null,a}function jc(e,t){return t=sl({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function gi(e,t,n,a){return a!==null&&Nc(a),Ra(t,e.child,null,n),e=jc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function uy(e,t,n,a,o,i,l){if(n)return t.flags&256?(t.flags&=-257,a=us(Error(Q(422))),gi(e,t,l,a)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=a.fallback,o=t.mode,a=sl({mode:"visible",children:a.children},o,0,null),i=Gr(i,o,l,null),i.flags|=2,a.return=t,i.return=t,a.sibling=i,t.child=a,t.mode&1&&Ra(t,e.child,null,l),t.child.memoizedState=Xs(l),t.memoizedState=Qs,i);if(!(t.mode&1))return gi(e,t,l,null);if(o.data==="$!"){if(a=o.nextSibling&&o.nextSibling.dataset,a)var s=a.dgst;return a=s,i=Error(Q(419)),a=us(i,a,void 0),gi(e,t,l,a)}if(s=(l&e.childLanes)!==0,en||s){if(a=St,a!==null){switch(l&-l){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(a.suspendedLanes|l)?0:o,o!==0&&o!==i.retryLane&&(i.retryLane=o,rr(e,o),An(a,e,o,-1))}return Vc(),a=us(Error(Q(421))),gi(e,t,l,a)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=Cy.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,ln=kr(o.nextSibling),sn=t,at=!0,Dn=null,e!==null&&(fn[gn++]=Jn,fn[gn++]=Zn,fn[gn++]=qr,Jn=e.id,Zn=e.overflow,qr=t),t=jc(t,a.children),t.flags|=4096,t)}function Ju(e,t,n){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),$s(e.return,t,n)}function ps(e,t,n,a,o){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=a,i.tail=n,i.tailMode=o)}function Bm(e,t,n){var a=t.pendingProps,o=a.revealOrder,i=a.tail;if(Vt(e,t,a.children,n),a=lt.current,a&2)a=a&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Ju(e,n,t);else if(e.tag===19)Ju(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}a&=1}if(Ze(lt,a),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&$i(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),ps(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&$i(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}ps(t,!0,n,null,i);break;case"together":ps(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Ci(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function ar(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Qr|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(Q(153));if(t.child!==null){for(e=t.child,n=Tr(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Tr(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function py(e,t,n){switch(t.tag){case 3:Om(t),za();break;case 5:pm(t);break;case 1:nn(t.type)&&Oi(t);break;case 4:Lc(t,t.stateNode.containerInfo);break;case 10:var a=t.type._context,o=t.memoizedProps.value;Ze(Hi,a._currentValue),a._currentValue=o;break;case 13:if(a=t.memoizedState,a!==null)return a.dehydrated!==null?(Ze(lt,lt.current&1),t.flags|=128,null):n&t.child.childLanes?jm(e,t,n):(Ze(lt,lt.current&1),e=ar(e,t,n),e!==null?e.sibling:null);Ze(lt,lt.current&1);break;case 19:if(a=(n&t.childLanes)!==0,e.flags&128){if(a)return Bm(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),Ze(lt,lt.current),a)break;return null;case 22:case 23:return t.lanes=0,Im(e,t,n)}return ar(e,t,n)}var Hm,Js,Wm,Um;Hm=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Js=function(){};Wm=function(e,t,n,a){var o=e.memoizedProps;if(o!==a){e=t.stateNode,$r(Gn.current);var i=null;switch(n){case"input":o=ws(e,o),a=ws(e,a),i=[];break;case"select":o=ct({},o,{value:void 0}),a=ct({},a,{value:void 0}),i=[];break;case"textarea":o=Ss(e,o),a=Ss(e,a),i=[];break;default:typeof o.onClick!="function"&&typeof a.onClick=="function"&&(e.onclick=Ii)}Ns(n,a);var l;n=null;for(u in o)if(!a.hasOwnProperty(u)&&o.hasOwnProperty(u)&&o[u]!=null)if(u==="style"){var s=o[u];for(l in s)s.hasOwnProperty(l)&&(n||(n={}),n[l]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(ho.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in a){var c=a[u];if(s=o?.[u],a.hasOwnProperty(u)&&c!==s&&(c!=null||s!=null))if(u==="style")if(s){for(l in s)!s.hasOwnProperty(l)||c&&c.hasOwnProperty(l)||(n||(n={}),n[l]="");for(l in c)c.hasOwnProperty(l)&&s[l]!==c[l]&&(n||(n={}),n[l]=c[l])}else n||(i||(i=[]),i.push(u,n)),n=c;else u==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,s=s?s.__html:void 0,c!=null&&s!==c&&(i=i||[]).push(u,c)):u==="children"?typeof c!="string"&&typeof c!="number"||(i=i||[]).push(u,""+c):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(ho.hasOwnProperty(u)?(c!=null&&u==="onScroll"&&nt("scroll",e),i||s===c||(i=[])):(i=i||[]).push(u,c))}n&&(i=i||[]).push("style",n);var u=i;(t.updateQueue=u)&&(t.flags|=4)}};Um=function(e,t,n,a){n!==a&&(t.flags|=4)};function Za(e,t){if(!at)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var a=null;n!==null;)n.alternate!==null&&(a=n),n=n.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function Ft(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,a=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,a|=o.subtreeFlags&14680064,a|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,a|=o.subtreeFlags,a|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=a,e.childLanes=n,t}function my(e,t,n){var a=t.pendingProps;switch(Cc(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ft(t),null;case 1:return nn(t.type)&&_i(),Ft(t),null;case 3:return a=t.stateNode,La(),rt(tn),rt(_t),Pc(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(mi(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Dn!==null&&(ic(Dn),Dn=null))),Js(e,t),Ft(t),null;case 5:Dc(t);var o=$r(Eo.current);if(n=t.type,e!==null&&t.stateNode!=null)Wm(e,t,n,a,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!a){if(t.stateNode===null)throw Error(Q(166));return Ft(t),null}if(e=$r(Gn.current),mi(t)){a=t.stateNode,n=t.type;var i=t.memoizedProps;switch(a[$n]=t,a[To]=i,e=(t.mode&1)!==0,n){case"dialog":nt("cancel",a),nt("close",a);break;case"iframe":case"object":case"embed":nt("load",a);break;case"video":case"audio":for(o=0;o<oo.length;o++)nt(oo[o],a);break;case"source":nt("error",a);break;case"img":case"image":case"link":nt("error",a),nt("load",a);break;case"details":nt("toggle",a);break;case"input":iu(a,i),nt("invalid",a);break;case"select":a._wrapperState={wasMultiple:!!i.multiple},nt("invalid",a);break;case"textarea":su(a,i),nt("invalid",a)}Ns(n,i),o=null;for(var l in i)if(i.hasOwnProperty(l)){var s=i[l];l==="children"?typeof s=="string"?a.textContent!==s&&(i.suppressHydrationWarning!==!0&&pi(a.textContent,s,e),o=["children",s]):typeof s=="number"&&a.textContent!==""+s&&(i.suppressHydrationWarning!==!0&&pi(a.textContent,s,e),o=["children",""+s]):ho.hasOwnProperty(l)&&s!=null&&l==="onScroll"&&nt("scroll",a)}switch(n){case"input":ei(a),lu(a,i,!0);break;case"textarea":ei(a),cu(a);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(a.onclick=Ii)}a=o,t.updateQueue=a,a!==null&&(t.flags|=4)}else{l=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=yp(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=l.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof a.is=="string"?e=l.createElement(n,{is:a.is}):(e=l.createElement(n),n==="select"&&(l=e,a.multiple?l.multiple=!0:a.size&&(l.size=a.size))):e=l.createElementNS(e,n),e[$n]=t,e[To]=a,Hm(e,t,!1,!1),t.stateNode=e;e:{switch(l=Ts(n,a),n){case"dialog":nt("cancel",e),nt("close",e),o=a;break;case"iframe":case"object":case"embed":nt("load",e),o=a;break;case"video":case"audio":for(o=0;o<oo.length;o++)nt(oo[o],e);o=a;break;case"source":nt("error",e),o=a;break;case"img":case"image":case"link":nt("error",e),nt("load",e),o=a;break;case"details":nt("toggle",e),o=a;break;case"input":iu(e,a),o=ws(e,a),nt("invalid",e);break;case"option":o=a;break;case"select":e._wrapperState={wasMultiple:!!a.multiple},o=ct({},a,{value:void 0}),nt("invalid",e);break;case"textarea":su(e,a),o=Ss(e,a),nt("invalid",e);break;default:o=a}Ns(n,o),s=o;for(i in s)if(s.hasOwnProperty(i)){var c=s[i];i==="style"?wp(e,c):i==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,c!=null&&vp(e,c)):i==="children"?typeof c=="string"?(n!=="textarea"||c!=="")&&yo(e,c):typeof c=="number"&&yo(e,""+c):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(ho.hasOwnProperty(i)?c!=null&&i==="onScroll"&&nt("scroll",e):c!=null&&cc(e,i,c,l))}switch(n){case"input":ei(e),lu(e,a,!1);break;case"textarea":ei(e),cu(e);break;case"option":a.value!=null&&e.setAttribute("value",""+Mr(a.value));break;case"select":e.multiple=!!a.multiple,i=a.value,i!=null?xa(e,!!a.multiple,i,!1):a.defaultValue!=null&&xa(e,!!a.multiple,a.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=Ii)}switch(n){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}}a&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Ft(t),null;case 6:if(e&&t.stateNode!=null)Um(e,t,e.memoizedProps,a);else{if(typeof a!="string"&&t.stateNode===null)throw Error(Q(166));if(n=$r(Eo.current),$r(Gn.current),mi(t)){if(a=t.stateNode,n=t.memoizedProps,a[$n]=t,(i=a.nodeValue!==n)&&(e=sn,e!==null))switch(e.tag){case 3:pi(a.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&pi(a.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else a=(n.nodeType===9?n:n.ownerDocument).createTextNode(a),a[$n]=t,t.stateNode=a}return Ft(t),null;case 13:if(rt(lt),a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(at&&ln!==null&&t.mode&1&&!(t.flags&128))lm(),za(),t.flags|=98560,i=!1;else if(i=mi(t),a!==null&&a.dehydrated!==null){if(e===null){if(!i)throw Error(Q(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(Q(317));i[$n]=t}else za(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Ft(t),i=!1}else Dn!==null&&(ic(Dn),Dn=null),i=!0;if(!i)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(a=a!==null,a!==(e!==null&&e.memoizedState!==null)&&a&&(t.child.flags|=8192,t.mode&1&&(e===null||lt.current&1?wt===0&&(wt=3):Vc())),t.updateQueue!==null&&(t.flags|=4),Ft(t),null);case 4:return La(),Js(e,t),e===null&&Co(t.stateNode.containerInfo),Ft(t),null;case 10:return Ec(t.type._context),Ft(t),null;case 17:return nn(t.type)&&_i(),Ft(t),null;case 19:if(rt(lt),i=t.memoizedState,i===null)return Ft(t),null;if(a=(t.flags&128)!==0,l=i.rendering,l===null)if(a)Za(i,!1);else{if(wt!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(l=$i(e),l!==null){for(t.flags|=128,Za(i,!1),a=l.updateQueue,a!==null&&(t.updateQueue=a,t.flags|=4),t.subtreeFlags=0,a=n,n=t.child;n!==null;)i=n,e=a,i.flags&=14680066,l=i.alternate,l===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=l.childLanes,i.lanes=l.lanes,i.child=l.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=l.memoizedProps,i.memoizedState=l.memoizedState,i.updateQueue=l.updateQueue,i.type=l.type,e=l.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Ze(lt,lt.current&1|2),t.child}e=e.sibling}i.tail!==null&&ft()>Pa&&(t.flags|=128,a=!0,Za(i,!1),t.lanes=4194304)}else{if(!a)if(e=$i(l),e!==null){if(t.flags|=128,a=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Za(i,!0),i.tail===null&&i.tailMode==="hidden"&&!l.alternate&&!at)return Ft(t),null}else 2*ft()-i.renderingStartTime>Pa&&n!==1073741824&&(t.flags|=128,a=!0,Za(i,!1),t.lanes=4194304);i.isBackwards?(l.sibling=t.child,t.child=l):(n=i.last,n!==null?n.sibling=l:t.child=l,i.last=l)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=ft(),t.sibling=null,n=lt.current,Ze(lt,a?n&1|2:n&1),t):(Ft(t),null);case 22:case 23:return $c(),a=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==a&&(t.flags|=8192),a&&t.mode&1?on&1073741824&&(Ft(t),t.subtreeFlags&6&&(t.flags|=8192)):Ft(t),null;case 24:return null;case 25:return null}throw Error(Q(156,t.tag))}function fy(e,t){switch(Cc(t),t.tag){case 1:return nn(t.type)&&_i(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return La(),rt(tn),rt(_t),Pc(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Dc(t),null;case 13:if(rt(lt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Q(340));za()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return rt(lt),null;case 4:return La(),null;case 10:return Ec(t.type._context),null;case 22:case 23:return $c(),null;case 24:return null;default:return null}}var hi=!1,It=!1,gy=typeof WeakSet=="function"?WeakSet:Set,ie=null;function ba(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(a){ut(e,t,a)}else n.current=null}function Zs(e,t,n){try{n()}catch(a){ut(e,t,a)}}var Zu=!1;function hy(e,t){if(Is=Pi,e=qp(),kc(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var a=n.getSelection&&n.getSelection();if(a&&a.rangeCount!==0){n=a.anchorNode;var o=a.anchorOffset,i=a.focusNode;a=a.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var l=0,s=-1,c=-1,u=0,p=0,h=e,g=null;t:for(;;){for(var k;h!==n||o!==0&&h.nodeType!==3||(s=l+o),h!==i||a!==0&&h.nodeType!==3||(c=l+a),h.nodeType===3&&(l+=h.nodeValue.length),(k=h.firstChild)!==null;)g=h,h=k;for(;;){if(h===e)break t;if(g===n&&++u===o&&(s=l),g===i&&++p===a&&(c=l),(k=h.nextSibling)!==null)break;h=g,g=h.parentNode}h=k}n=s===-1||c===-1?null:{start:s,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(_s={focusedElem:e,selectionRange:n},Pi=!1,ie=t;ie!==null;)if(t=ie,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ie=e;else for(;ie!==null;){t=ie;try{var L=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(L!==null){var R=L.memoizedProps,A=L.memoizedState,v=t.stateNode,f=v.getSnapshotBeforeUpdate(t.elementType===t.type?R:Rn(t.type,R),A);v.__reactInternalSnapshotBeforeUpdate=f}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Q(163))}}catch(P){ut(t,t.return,P)}if(e=t.sibling,e!==null){e.return=t.return,ie=e;break}ie=t.return}return L=Zu,Zu=!1,L}function mo(e,t,n){var a=t.updateQueue;if(a=a!==null?a.lastEffect:null,a!==null){var o=a=a.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&Zs(t,n,i)}o=o.next}while(o!==a)}}function il(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var a=n.create;n.destroy=a()}n=n.next}while(n!==t)}}function ec(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function $m(e){var t=e.alternate;t!==null&&(e.alternate=null,$m(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[$n],delete t[To],delete t[Bs],delete t[Jh],delete t[Zh])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Vm(e){return e.tag===5||e.tag===3||e.tag===4}function ep(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Vm(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function tc(e,t,n){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Ii));else if(a!==4&&(e=e.child,e!==null))for(tc(e,t,n),e=e.sibling;e!==null;)tc(e,t,n),e=e.sibling}function nc(e,t,n){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(a!==4&&(e=e.child,e!==null))for(nc(e,t,n),e=e.sibling;e!==null;)nc(e,t,n),e=e.sibling}var zt=null,Ln=!1;function pr(e,t,n){for(n=n.child;n!==null;)Gm(e,t,n),n=n.sibling}function Gm(e,t,n){if(Vn&&typeof Vn.onCommitFiberUnmount=="function")try{Vn.onCommitFiberUnmount(Ji,n)}catch{}switch(n.tag){case 5:It||ba(n,t);case 6:var a=zt,o=Ln;zt=null,pr(e,t,n),zt=a,Ln=o,zt!==null&&(Ln?(e=zt,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):zt.removeChild(n.stateNode));break;case 18:zt!==null&&(Ln?(e=zt,n=n.stateNode,e.nodeType===8?os(e.parentNode,n):e.nodeType===1&&os(e,n),xo(e)):os(zt,n.stateNode));break;case 4:a=zt,o=Ln,zt=n.stateNode.containerInfo,Ln=!0,pr(e,t,n),zt=a,Ln=o;break;case 0:case 11:case 14:case 15:if(!It&&(a=n.updateQueue,a!==null&&(a=a.lastEffect,a!==null))){o=a=a.next;do{var i=o,l=i.destroy;i=i.tag,l!==void 0&&(i&2||i&4)&&Zs(n,t,l),o=o.next}while(o!==a)}pr(e,t,n);break;case 1:if(!It&&(ba(n,t),a=n.stateNode,typeof a.componentWillUnmount=="function"))try{a.props=n.memoizedProps,a.state=n.memoizedState,a.componentWillUnmount()}catch(s){ut(n,t,s)}pr(e,t,n);break;case 21:pr(e,t,n);break;case 22:n.mode&1?(It=(a=It)||n.memoizedState!==null,pr(e,t,n),It=a):pr(e,t,n);break;default:pr(e,t,n)}}function tp(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new gy),t.forEach(function(a){var o=Ny.bind(null,e,a);n.has(a)||(n.add(a),a.then(o,o))})}}function zn(e,t){var n=t.deletions;if(n!==null)for(var a=0;a<n.length;a++){var o=n[a];try{var i=e,l=t,s=l;e:for(;s!==null;){switch(s.tag){case 5:zt=s.stateNode,Ln=!1;break e;case 3:zt=s.stateNode.containerInfo,Ln=!0;break e;case 4:zt=s.stateNode.containerInfo,Ln=!0;break e}s=s.return}if(zt===null)throw Error(Q(160));Gm(i,l,o),zt=null,Ln=!1;var c=o.alternate;c!==null&&(c.return=null),o.return=null}catch(u){ut(o,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Km(t,e),t=t.sibling}function Km(e,t){var n=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(zn(t,e),Wn(e),a&4){try{mo(3,e,e.return),il(3,e)}catch(R){ut(e,e.return,R)}try{mo(5,e,e.return)}catch(R){ut(e,e.return,R)}}break;case 1:zn(t,e),Wn(e),a&512&&n!==null&&ba(n,n.return);break;case 5:if(zn(t,e),Wn(e),a&512&&n!==null&&ba(n,n.return),e.flags&32){var o=e.stateNode;try{yo(o,"")}catch(R){ut(e,e.return,R)}}if(a&4&&(o=e.stateNode,o!=null)){var i=e.memoizedProps,l=n!==null?n.memoizedProps:i,s=e.type,c=e.updateQueue;if(e.updateQueue=null,c!==null)try{s==="input"&&i.type==="radio"&&i.name!=null&&gp(o,i),Ts(s,l);var u=Ts(s,i);for(l=0;l<c.length;l+=2){var p=c[l],h=c[l+1];p==="style"?wp(o,h):p==="dangerouslySetInnerHTML"?vp(o,h):p==="children"?yo(o,h):cc(o,p,h,u)}switch(s){case"input":xs(o,i);break;case"textarea":hp(o,i);break;case"select":var g=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var k=i.value;k!=null?xa(o,!!i.multiple,k,!1):g!==!!i.multiple&&(i.defaultValue!=null?xa(o,!!i.multiple,i.defaultValue,!0):xa(o,!!i.multiple,i.multiple?[]:"",!1))}o[To]=i}catch(R){ut(e,e.return,R)}}break;case 6:if(zn(t,e),Wn(e),a&4){if(e.stateNode===null)throw Error(Q(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(R){ut(e,e.return,R)}}break;case 3:if(zn(t,e),Wn(e),a&4&&n!==null&&n.memoizedState.isDehydrated)try{xo(t.containerInfo)}catch(R){ut(e,e.return,R)}break;case 4:zn(t,e),Wn(e);break;case 13:zn(t,e),Wn(e),o=e.child,o.flags&8192&&(i=o.memoizedState!==null,o.stateNode.isHidden=i,!i||o.alternate!==null&&o.alternate.memoizedState!==null||(Wc=ft())),a&4&&tp(e);break;case 22:if(p=n!==null&&n.memoizedState!==null,e.mode&1?(It=(u=It)||p,zn(t,e),It=u):zn(t,e),Wn(e),a&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!p&&e.mode&1)for(ie=e,p=e.child;p!==null;){for(h=ie=p;ie!==null;){switch(g=ie,k=g.child,g.tag){case 0:case 11:case 14:case 15:mo(4,g,g.return);break;case 1:ba(g,g.return);var L=g.stateNode;if(typeof L.componentWillUnmount=="function"){a=g,n=g.return;try{t=a,L.props=t.memoizedProps,L.state=t.memoizedState,L.componentWillUnmount()}catch(R){ut(a,n,R)}}break;case 5:ba(g,g.return);break;case 22:if(g.memoizedState!==null){rp(h);continue}}k!==null?(k.return=g,ie=k):rp(h)}p=p.sibling}e:for(p=null,h=e;;){if(h.tag===5){if(p===null){p=h;try{o=h.stateNode,u?(i=o.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(s=h.stateNode,c=h.memoizedProps.style,l=c!=null&&c.hasOwnProperty("display")?c.display:null,s.style.display=bp("display",l))}catch(R){ut(e,e.return,R)}}}else if(h.tag===6){if(p===null)try{h.stateNode.nodeValue=u?"":h.memoizedProps}catch(R){ut(e,e.return,R)}}else if((h.tag!==22&&h.tag!==23||h.memoizedState===null||h===e)&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===e)break e;for(;h.sibling===null;){if(h.return===null||h.return===e)break e;p===h&&(p=null),h=h.return}p===h&&(p=null),h.sibling.return=h.return,h=h.sibling}}break;case 19:zn(t,e),Wn(e),a&4&&tp(e);break;case 21:break;default:zn(t,e),Wn(e)}}function Wn(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Vm(n)){var a=n;break e}n=n.return}throw Error(Q(160))}switch(a.tag){case 5:var o=a.stateNode;a.flags&32&&(yo(o,""),a.flags&=-33);var i=ep(e);nc(e,i,o);break;case 3:case 4:var l=a.stateNode.containerInfo,s=ep(e);tc(e,s,l);break;default:throw Error(Q(161))}}catch(c){ut(e,e.return,c)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function yy(e,t,n){ie=e,qm(e,t,n)}function qm(e,t,n){for(var a=(e.mode&1)!==0;ie!==null;){var o=ie,i=o.child;if(o.tag===22&&a){var l=o.memoizedState!==null||hi;if(!l){var s=o.alternate,c=s!==null&&s.memoizedState!==null||It;s=hi;var u=It;if(hi=l,(It=c)&&!u)for(ie=o;ie!==null;)l=ie,c=l.child,l.tag===22&&l.memoizedState!==null?ap(o):c!==null?(c.return=l,ie=c):ap(o);for(;i!==null;)ie=i,qm(i,t,n),i=i.sibling;ie=o,hi=s,It=u}np(e,t,n)}else o.subtreeFlags&8772&&i!==null?(i.return=o,ie=i):np(e,t,n)}}function np(e){for(;ie!==null;){var t=ie;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:It||il(5,t);break;case 1:var a=t.stateNode;if(t.flags&4&&!It)if(n===null)a.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:Rn(t.type,n.memoizedProps);a.componentDidUpdate(o,n.memoizedState,a.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&Bu(t,i,a);break;case 3:var l=t.updateQueue;if(l!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Bu(t,l,n)}break;case 5:var s=t.stateNode;if(n===null&&t.flags&4){n=s;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&n.focus();break;case"img":c.src&&(n.src=c.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var p=u.memoizedState;if(p!==null){var h=p.dehydrated;h!==null&&xo(h)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(Q(163))}It||t.flags&512&&ec(t)}catch(g){ut(t,t.return,g)}}if(t===e){ie=null;break}if(n=t.sibling,n!==null){n.return=t.return,ie=n;break}ie=t.return}}function rp(e){for(;ie!==null;){var t=ie;if(t===e){ie=null;break}var n=t.sibling;if(n!==null){n.return=t.return,ie=n;break}ie=t.return}}function ap(e){for(;ie!==null;){var t=ie;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{il(4,t)}catch(c){ut(t,n,c)}break;case 1:var a=t.stateNode;if(typeof a.componentDidMount=="function"){var o=t.return;try{a.componentDidMount()}catch(c){ut(t,o,c)}}var i=t.return;try{ec(t)}catch(c){ut(t,i,c)}break;case 5:var l=t.return;try{ec(t)}catch(c){ut(t,l,c)}}}catch(c){ut(t,t.return,c)}if(t===e){ie=null;break}var s=t.sibling;if(s!==null){s.return=t.return,ie=s;break}ie=t.return}}var vy=Math.ceil,Ki=or.ReactCurrentDispatcher,Bc=or.ReactCurrentOwner,yn=or.ReactCurrentBatchConfig,We=0,St=null,ht=null,Rt=0,on=0,wa=Rr(0),wt=0,Do=null,Qr=0,ll=0,Hc=0,fo=null,Zt=null,Wc=0,Pa=1/0,Qn=null,qi=!1,rc=null,Cr=null,yi=!1,vr=null,Yi=0,go=0,ac=null,Ni=-1,Ti=0;function Gt(){return We&6?ft():Ni!==-1?Ni:Ni=ft()}function Nr(e){return e.mode&1?We&2&&Rt!==0?Rt&-Rt:ty.transition!==null?(Ti===0&&(Ti=Dp()),Ti):(e=qe,e!==0||(e=window.event,e=e===void 0?16:jp(e.type)),e):1}function An(e,t,n,a){if(50<go)throw go=0,ac=null,Error(Q(185));Po(e,n,a),(!(We&2)||e!==St)&&(e===St&&(!(We&2)&&(ll|=n),wt===4&&hr(e,Rt)),rn(e,a),n===1&&We===0&&!(t.mode&1)&&(Pa=ft()+500,rl&&Lr()))}function rn(e,t){var n=e.callbackNode;rh(e,t);var a=Di(e,e===St?Rt:0);if(a===0)n!==null&&pu(n),e.callbackNode=null,e.callbackPriority=0;else if(t=a&-a,e.callbackPriority!==t){if(n!=null&&pu(n),t===1)e.tag===0?ey(op.bind(null,e)):am(op.bind(null,e)),Qh(function(){!(We&6)&&Lr()}),n=null;else{switch(Pp(a)){case 1:n=fc;break;case 4:n=Rp;break;case 16:n=Li;break;case 536870912:n=Lp;break;default:n=Li}n=nf(n,Ym.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Ym(e,t){if(Ni=-1,Ti=0,We&6)throw Error(Q(327));var n=e.callbackNode;if(Ta()&&e.callbackNode!==n)return null;var a=Di(e,e===St?Rt:0);if(a===0)return null;if(a&30||a&e.expiredLanes||t)t=Qi(e,a);else{t=a;var o=We;We|=2;var i=Xm();(St!==e||Rt!==t)&&(Qn=null,Pa=ft()+500,Vr(e,t));do try{xy();break}catch(s){Qm(e,s)}while(!0);Mc(),Ki.current=i,We=o,ht!==null?t=0:(St=null,Rt=0,t=wt)}if(t!==0){if(t===2&&(o=Ls(e),o!==0&&(a=o,t=oc(e,o))),t===1)throw n=Do,Vr(e,0),hr(e,a),rn(e,ft()),n;if(t===6)hr(e,a);else{if(o=e.current.alternate,!(a&30)&&!by(o)&&(t=Qi(e,a),t===2&&(i=Ls(e),i!==0&&(a=i,t=oc(e,i))),t===1))throw n=Do,Vr(e,0),hr(e,a),rn(e,ft()),n;switch(e.finishedWork=o,e.finishedLanes=a,t){case 0:case 1:throw Error(Q(345));case 2:Hr(e,Zt,Qn);break;case 3:if(hr(e,a),(a&130023424)===a&&(t=Wc+500-ft(),10<t)){if(Di(e,0)!==0)break;if(o=e.suspendedLanes,(o&a)!==a){Gt(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=js(Hr.bind(null,e,Zt,Qn),t);break}Hr(e,Zt,Qn);break;case 4:if(hr(e,a),(a&4194240)===a)break;for(t=e.eventTimes,o=-1;0<a;){var l=31-Pn(a);i=1<<l,l=t[l],l>o&&(o=l),a&=~i}if(a=o,a=ft()-a,a=(120>a?120:480>a?480:1080>a?1080:1920>a?1920:3e3>a?3e3:4320>a?4320:1960*vy(a/1960))-a,10<a){e.timeoutHandle=js(Hr.bind(null,e,Zt,Qn),a);break}Hr(e,Zt,Qn);break;case 5:Hr(e,Zt,Qn);break;default:throw Error(Q(329))}}}return rn(e,ft()),e.callbackNode===n?Ym.bind(null,e):null}function oc(e,t){var n=fo;return e.current.memoizedState.isDehydrated&&(Vr(e,t).flags|=256),e=Qi(e,t),e!==2&&(t=Zt,Zt=n,t!==null&&ic(t)),e}function ic(e){Zt===null?Zt=e:Zt.push.apply(Zt,e)}function by(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var a=0;a<n.length;a++){var o=n[a],i=o.getSnapshot;o=o.value;try{if(!Fn(i(),o))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function hr(e,t){for(t&=~Hc,t&=~ll,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Pn(t),a=1<<n;e[n]=-1,t&=~a}}function op(e){if(We&6)throw Error(Q(327));Ta();var t=Di(e,0);if(!(t&1))return rn(e,ft()),null;var n=Qi(e,t);if(e.tag!==0&&n===2){var a=Ls(e);a!==0&&(t=a,n=oc(e,a))}if(n===1)throw n=Do,Vr(e,0),hr(e,t),rn(e,ft()),n;if(n===6)throw Error(Q(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Hr(e,Zt,Qn),rn(e,ft()),null}function Uc(e,t){var n=We;We|=1;try{return e(t)}finally{We=n,We===0&&(Pa=ft()+500,rl&&Lr())}}function Xr(e){vr!==null&&vr.tag===0&&!(We&6)&&Ta();var t=We;We|=1;var n=yn.transition,a=qe;try{if(yn.transition=null,qe=1,e)return e()}finally{qe=a,yn.transition=n,We=t,!(We&6)&&Lr()}}function $c(){on=wa.current,rt(wa)}function Vr(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Yh(n)),ht!==null)for(n=ht.return;n!==null;){var a=n;switch(Cc(a),a.tag){case 1:a=a.type.childContextTypes,a!=null&&_i();break;case 3:La(),rt(tn),rt(_t),Pc();break;case 5:Dc(a);break;case 4:La();break;case 13:rt(lt);break;case 19:rt(lt);break;case 10:Ec(a.type._context);break;case 22:case 23:$c()}n=n.return}if(St=e,ht=e=Tr(e.current,null),Rt=on=t,wt=0,Do=null,Hc=ll=Qr=0,Zt=fo=null,Ur!==null){for(t=0;t<Ur.length;t++)if(n=Ur[t],a=n.interleaved,a!==null){n.interleaved=null;var o=a.next,i=n.pending;if(i!==null){var l=i.next;i.next=o,a.next=l}n.pending=a}Ur=null}return e}function Qm(e,t){do{var n=ht;try{if(Mc(),ki.current=Gi,Vi){for(var a=st.memoizedState;a!==null;){var o=a.queue;o!==null&&(o.pending=null),a=a.next}Vi=!1}if(Yr=0,kt=bt=st=null,po=!1,zo=0,Bc.current=null,n===null||n.return===null){wt=1,Do=t,ht=null;break}e:{var i=e,l=n.return,s=n,c=t;if(t=Rt,s.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){var u=c,p=s,h=p.tag;if(!(p.mode&1)&&(h===0||h===11||h===15)){var g=p.alternate;g?(p.updateQueue=g.updateQueue,p.memoizedState=g.memoizedState,p.lanes=g.lanes):(p.updateQueue=null,p.memoizedState=null)}var k=Gu(l);if(k!==null){k.flags&=-257,Ku(k,l,s,i,t),k.mode&1&&Vu(i,u,t),t=k,c=u;var L=t.updateQueue;if(L===null){var R=new Set;R.add(c),t.updateQueue=R}else L.add(c);break e}else{if(!(t&1)){Vu(i,u,t),Vc();break e}c=Error(Q(426))}}else if(at&&s.mode&1){var A=Gu(l);if(A!==null){!(A.flags&65536)&&(A.flags|=256),Ku(A,l,s,i,t),Nc(Da(c,s));break e}}i=c=Da(c,s),wt!==4&&(wt=2),fo===null?fo=[i]:fo.push(i),i=l;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var v=Pm(i,c,t);ju(i,v);break e;case 1:s=c;var f=i.type,y=i.stateNode;if(!(i.flags&128)&&(typeof f.getDerivedStateFromError=="function"||y!==null&&typeof y.componentDidCatch=="function"&&(Cr===null||!Cr.has(y)))){i.flags|=65536,t&=-t,i.lanes|=t;var P=Am(i,s,t);ju(i,P);break e}}i=i.return}while(i!==null)}Zm(n)}catch(F){t=F,ht===n&&n!==null&&(ht=n=n.return);continue}break}while(!0)}function Xm(){var e=Ki.current;return Ki.current=Gi,e===null?Gi:e}function Vc(){(wt===0||wt===3||wt===2)&&(wt=4),St===null||!(Qr&268435455)&&!(ll&268435455)||hr(St,Rt)}function Qi(e,t){var n=We;We|=2;var a=Xm();(St!==e||Rt!==t)&&(Qn=null,Vr(e,t));do try{wy();break}catch(o){Qm(e,o)}while(!0);if(Mc(),We=n,Ki.current=a,ht!==null)throw Error(Q(261));return St=null,Rt=0,wt}function wy(){for(;ht!==null;)Jm(ht)}function xy(){for(;ht!==null&&!qg();)Jm(ht)}function Jm(e){var t=tf(e.alternate,e,on);e.memoizedProps=e.pendingProps,t===null?Zm(e):ht=t,Bc.current=null}function Zm(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=fy(n,t),n!==null){n.flags&=32767,ht=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{wt=6,ht=null;return}}else if(n=my(n,t,on),n!==null){ht=n;return}if(t=t.sibling,t!==null){ht=t;return}ht=t=e}while(t!==null);wt===0&&(wt=5)}function Hr(e,t,n){var a=qe,o=yn.transition;try{yn.transition=null,qe=1,ky(e,t,n,a)}finally{yn.transition=o,qe=a}return null}function ky(e,t,n,a){do Ta();while(vr!==null);if(We&6)throw Error(Q(327));n=e.finishedWork;var o=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(Q(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(ah(e,i),e===St&&(ht=St=null,Rt=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||yi||(yi=!0,nf(Li,function(){return Ta(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=yn.transition,yn.transition=null;var l=qe;qe=1;var s=We;We|=4,Bc.current=null,hy(e,n),Km(n,e),$h(_s),Pi=!!Is,_s=Is=null,e.current=n,yy(n,e,o),Yg(),We=s,qe=l,yn.transition=i}else e.current=n;if(yi&&(yi=!1,vr=e,Yi=o),i=e.pendingLanes,i===0&&(Cr=null),Jg(n.stateNode,a),rn(e,ft()),t!==null)for(a=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],a(o.value,{componentStack:o.stack,digest:o.digest});if(qi)throw qi=!1,e=rc,rc=null,e;return Yi&1&&e.tag!==0&&Ta(),i=e.pendingLanes,i&1?e===ac?go++:(go=0,ac=e):go=0,Lr(),null}function Ta(){if(vr!==null){var e=Pp(Yi),t=yn.transition,n=qe;try{if(yn.transition=null,qe=16>e?16:e,vr===null)var a=!1;else{if(e=vr,vr=null,Yi=0,We&6)throw Error(Q(331));var o=We;for(We|=4,ie=e.current;ie!==null;){var i=ie,l=i.child;if(ie.flags&16){var s=i.deletions;if(s!==null){for(var c=0;c<s.length;c++){var u=s[c];for(ie=u;ie!==null;){var p=ie;switch(p.tag){case 0:case 11:case 15:mo(8,p,i)}var h=p.child;if(h!==null)h.return=p,ie=h;else for(;ie!==null;){p=ie;var g=p.sibling,k=p.return;if($m(p),p===u){ie=null;break}if(g!==null){g.return=k,ie=g;break}ie=k}}}var L=i.alternate;if(L!==null){var R=L.child;if(R!==null){L.child=null;do{var A=R.sibling;R.sibling=null,R=A}while(R!==null)}}ie=i}}if(i.subtreeFlags&2064&&l!==null)l.return=i,ie=l;else e:for(;ie!==null;){if(i=ie,i.flags&2048)switch(i.tag){case 0:case 11:case 15:mo(9,i,i.return)}var v=i.sibling;if(v!==null){v.return=i.return,ie=v;break e}ie=i.return}}var f=e.current;for(ie=f;ie!==null;){l=ie;var y=l.child;if(l.subtreeFlags&2064&&y!==null)y.return=l,ie=y;else e:for(l=f;ie!==null;){if(s=ie,s.flags&2048)try{switch(s.tag){case 0:case 11:case 15:il(9,s)}}catch(F){ut(s,s.return,F)}if(s===l){ie=null;break e}var P=s.sibling;if(P!==null){P.return=s.return,ie=P;break e}ie=s.return}}if(We=o,Lr(),Vn&&typeof Vn.onPostCommitFiberRoot=="function")try{Vn.onPostCommitFiberRoot(Ji,e)}catch{}a=!0}return a}finally{qe=n,yn.transition=t}}return!1}function ip(e,t,n){t=Da(n,t),t=Pm(e,t,1),e=Sr(e,t,1),t=Gt(),e!==null&&(Po(e,1,t),rn(e,t))}function ut(e,t,n){if(e.tag===3)ip(e,e,n);else for(;t!==null;){if(t.tag===3){ip(t,e,n);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(Cr===null||!Cr.has(a))){e=Da(n,e),e=Am(t,e,1),t=Sr(t,e,1),e=Gt(),t!==null&&(Po(t,1,e),rn(t,e));break}}t=t.return}}function Sy(e,t,n){var a=e.pingCache;a!==null&&a.delete(t),t=Gt(),e.pingedLanes|=e.suspendedLanes&n,St===e&&(Rt&n)===n&&(wt===4||wt===3&&(Rt&130023424)===Rt&&500>ft()-Wc?Vr(e,0):Hc|=n),rn(e,t)}function ef(e,t){t===0&&(e.mode&1?(t=ri,ri<<=1,!(ri&130023424)&&(ri=4194304)):t=1);var n=Gt();e=rr(e,t),e!==null&&(Po(e,t,n),rn(e,n))}function Cy(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),ef(e,n)}function Ny(e,t){var n=0;switch(e.tag){case 13:var a=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:a=e.stateNode;break;default:throw Error(Q(314))}a!==null&&a.delete(t),ef(e,n)}var tf;tf=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||tn.current)en=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return en=!1,py(e,t,n);en=!!(e.flags&131072)}else en=!1,at&&t.flags&1048576&&om(t,Bi,t.index);switch(t.lanes=0,t.tag){case 2:var a=t.type;Ci(e,t),e=t.pendingProps;var o=Ea(t,_t.current);Na(t,n),o=Fc(null,t,a,e,o,n);var i=Ic();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,nn(a)?(i=!0,Oi(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Rc(t),o.updater=ol,t.stateNode=o,o._reactInternals=t,Gs(t,a,e,n),t=Ys(null,t,a,!0,i,n)):(t.tag=0,at&&i&&Sc(t),Vt(null,t,o,n),t=t.child),t;case 16:a=t.elementType;e:{switch(Ci(e,t),e=t.pendingProps,o=a._init,a=o(a._payload),t.type=a,o=t.tag=My(a),e=Rn(a,e),o){case 0:t=qs(null,t,a,e,n);break e;case 1:t=Qu(null,t,a,e,n);break e;case 11:t=qu(null,t,a,e,n);break e;case 14:t=Yu(null,t,a,Rn(a.type,e),n);break e}throw Error(Q(306,a,""))}return t;case 0:return a=t.type,o=t.pendingProps,o=t.elementType===a?o:Rn(a,o),qs(e,t,a,o,n);case 1:return a=t.type,o=t.pendingProps,o=t.elementType===a?o:Rn(a,o),Qu(e,t,a,o,n);case 3:e:{if(Om(t),e===null)throw Error(Q(387));a=t.pendingProps,i=t.memoizedState,o=i.element,um(e,t),Ui(t,a,null,n);var l=t.memoizedState;if(a=l.element,i.isDehydrated)if(i={element:a,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Da(Error(Q(423)),t),t=Xu(e,t,a,n,o);break e}else if(a!==o){o=Da(Error(Q(424)),t),t=Xu(e,t,a,n,o);break e}else for(ln=kr(t.stateNode.containerInfo.firstChild),sn=t,at=!0,Dn=null,n=cm(t,null,a,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(za(),a===o){t=ar(e,t,n);break e}Vt(e,t,a,n)}t=t.child}return t;case 5:return pm(t),e===null&&Us(t),a=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,l=o.children,Os(a,o)?l=null:i!==null&&Os(a,i)&&(t.flags|=32),_m(e,t),Vt(e,t,l,n),t.child;case 6:return e===null&&Us(t),null;case 13:return jm(e,t,n);case 4:return Lc(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=Ra(t,null,a,n):Vt(e,t,a,n),t.child;case 11:return a=t.type,o=t.pendingProps,o=t.elementType===a?o:Rn(a,o),qu(e,t,a,o,n);case 7:return Vt(e,t,t.pendingProps,n),t.child;case 8:return Vt(e,t,t.pendingProps.children,n),t.child;case 12:return Vt(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(a=t.type._context,o=t.pendingProps,i=t.memoizedProps,l=o.value,Ze(Hi,a._currentValue),a._currentValue=l,i!==null)if(Fn(i.value,l)){if(i.children===o.children&&!tn.current){t=ar(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var s=i.dependencies;if(s!==null){l=i.child;for(var c=s.firstContext;c!==null;){if(c.context===a){if(i.tag===1){c=er(-1,n&-n),c.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var p=u.pending;p===null?c.next=c:(c.next=p.next,p.next=c),u.pending=c}}i.lanes|=n,c=i.alternate,c!==null&&(c.lanes|=n),$s(i.return,n,t),s.lanes|=n;break}c=c.next}}else if(i.tag===10)l=i.type===t.type?null:i.child;else if(i.tag===18){if(l=i.return,l===null)throw Error(Q(341));l.lanes|=n,s=l.alternate,s!==null&&(s.lanes|=n),$s(l,n,t),l=i.sibling}else l=i.child;if(l!==null)l.return=i;else for(l=i;l!==null;){if(l===t){l=null;break}if(i=l.sibling,i!==null){i.return=l.return,l=i;break}l=l.return}i=l}Vt(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,a=t.pendingProps.children,Na(t,n),o=vn(o),a=a(o),t.flags|=1,Vt(e,t,a,n),t.child;case 14:return a=t.type,o=Rn(a,t.pendingProps),o=Rn(a.type,o),Yu(e,t,a,o,n);case 15:return Fm(e,t,t.type,t.pendingProps,n);case 17:return a=t.type,o=t.pendingProps,o=t.elementType===a?o:Rn(a,o),Ci(e,t),t.tag=1,nn(a)?(e=!0,Oi(t)):e=!1,Na(t,n),Dm(t,a,o),Gs(t,a,o,n),Ys(null,t,a,!0,e,n);case 19:return Bm(e,t,n);case 22:return Im(e,t,n)}throw Error(Q(156,t.tag))};function nf(e,t){return zp(e,t)}function Ty(e,t,n,a){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function hn(e,t,n,a){return new Ty(e,t,n,a)}function Gc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function My(e){if(typeof e=="function")return Gc(e)?1:0;if(e!=null){if(e=e.$$typeof,e===uc)return 11;if(e===pc)return 14}return 2}function Tr(e,t){var n=e.alternate;return n===null?(n=hn(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Mi(e,t,n,a,o,i){var l=2;if(a=e,typeof e=="function")Gc(e)&&(l=1);else if(typeof e=="string")l=5;else e:switch(e){case da:return Gr(n.children,o,i,t);case dc:l=8,o|=8;break;case hs:return e=hn(12,n,t,o|2),e.elementType=hs,e.lanes=i,e;case ys:return e=hn(13,n,t,o),e.elementType=ys,e.lanes=i,e;case vs:return e=hn(19,n,t,o),e.elementType=vs,e.lanes=i,e;case pp:return sl(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case dp:l=10;break e;case up:l=9;break e;case uc:l=11;break e;case pc:l=14;break e;case mr:l=16,a=null;break e}throw Error(Q(130,e==null?e:typeof e,""))}return t=hn(l,n,t,o),t.elementType=e,t.type=a,t.lanes=i,t}function Gr(e,t,n,a){return e=hn(7,e,a,t),e.lanes=n,e}function sl(e,t,n,a){return e=hn(22,e,a,t),e.elementType=pp,e.lanes=n,e.stateNode={isHidden:!1},e}function ms(e,t,n){return e=hn(6,e,null,t),e.lanes=n,e}function fs(e,t,n){return t=hn(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Ey(e,t,n,a,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Xl(0),this.expirationTimes=Xl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Xl(0),this.identifierPrefix=a,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Kc(e,t,n,a,o,i,l,s,c){return e=new Ey(e,t,n,s,c),t===1?(t=1,i===!0&&(t|=8)):t=0,i=hn(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:a,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Rc(i),e}function zy(e,t,n){var a=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:ca,key:a==null?null:""+a,children:e,containerInfo:t,implementation:n}}function rf(e){if(!e)return Er;e=e._reactInternals;e:{if(Zr(e)!==e||e.tag!==1)throw Error(Q(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(nn(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(Q(171))}if(e.tag===1){var n=e.type;if(nn(n))return rm(e,n,t)}return t}function af(e,t,n,a,o,i,l,s,c){return e=Kc(n,a,!0,e,o,i,l,s,c),e.context=rf(null),n=e.current,a=Gt(),o=Nr(n),i=er(a,o),i.callback=t??null,Sr(n,i,o),e.current.lanes=o,Po(e,o,a),rn(e,a),e}function cl(e,t,n,a){var o=t.current,i=Gt(),l=Nr(o);return n=rf(n),t.context===null?t.context=n:t.pendingContext=n,t=er(i,l),t.payload={element:e},a=a===void 0?null:a,a!==null&&(t.callback=a),e=Sr(o,t,l),e!==null&&(An(e,o,l,i),xi(e,o,l)),l}function Xi(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function lp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function qc(e,t){lp(e,t),(e=e.alternate)&&lp(e,t)}function Ry(){return null}var of=typeof reportError=="function"?reportError:function(e){console.error(e)};function Yc(e){this._internalRoot=e}dl.prototype.render=Yc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(Q(409));cl(e,t,null,null)};dl.prototype.unmount=Yc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Xr(function(){cl(null,e,null,null)}),t[nr]=null}};function dl(e){this._internalRoot=e}dl.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ip();e={blockedOn:null,target:e,priority:t};for(var n=0;n<gr.length&&t!==0&&t<gr[n].priority;n++);gr.splice(n,0,e),n===0&&Op(e)}};function Qc(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function ul(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function sp(){}function Ly(e,t,n,a,o){if(o){if(typeof a=="function"){var i=a;a=function(){var u=Xi(l);i.call(u)}}var l=af(t,a,e,0,null,!1,!1,"",sp);return e._reactRootContainer=l,e[nr]=l.current,Co(e.nodeType===8?e.parentNode:e),Xr(),l}for(;o=e.lastChild;)e.removeChild(o);if(typeof a=="function"){var s=a;a=function(){var u=Xi(c);s.call(u)}}var c=Kc(e,0,!1,null,null,!1,!1,"",sp);return e._reactRootContainer=c,e[nr]=c.current,Co(e.nodeType===8?e.parentNode:e),Xr(function(){cl(t,c,n,a)}),c}function pl(e,t,n,a,o){var i=n._reactRootContainer;if(i){var l=i;if(typeof o=="function"){var s=o;o=function(){var c=Xi(l);s.call(c)}}cl(t,l,e,o)}else l=Ly(n,t,e,o,a);return Xi(l)}Ap=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=ao(t.pendingLanes);n!==0&&(gc(t,n|1),rn(t,ft()),!(We&6)&&(Pa=ft()+500,Lr()))}break;case 13:Xr(function(){var a=rr(e,1);if(a!==null){var o=Gt();An(a,e,1,o)}}),qc(e,1)}};hc=function(e){if(e.tag===13){var t=rr(e,134217728);if(t!==null){var n=Gt();An(t,e,134217728,n)}qc(e,134217728)}};Fp=function(e){if(e.tag===13){var t=Nr(e),n=rr(e,t);if(n!==null){var a=Gt();An(n,e,t,a)}qc(e,t)}};Ip=function(){return qe};_p=function(e,t){var n=qe;try{return qe=e,t()}finally{qe=n}};Es=function(e,t,n){switch(t){case"input":if(xs(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var a=n[t];if(a!==e&&a.form===e.form){var o=nl(a);if(!o)throw Error(Q(90));fp(a),xs(a,o)}}}break;case"textarea":hp(e,n);break;case"select":t=n.value,t!=null&&xa(e,!!n.multiple,t,!1)}};Sp=Uc;Cp=Xr;var Dy={usingClientEntryPoint:!1,Events:[Fo,fa,nl,xp,kp,Uc]},eo={findFiberByHostInstance:Wr,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Py={bundleType:eo.bundleType,version:eo.version,rendererPackageName:eo.rendererPackageName,rendererConfig:eo.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:or.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Mp(e),e===null?null:e.stateNode},findFiberByHostInstance:eo.findFiberByHostInstance||Ry,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(to=__REACT_DEVTOOLS_GLOBAL_HOOK__,!to.isDisabled&&to.supportsFiber))try{Ji=to.inject(Py),Vn=to}catch{}var to;un.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Dy;un.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Qc(t))throw Error(Q(200));return zy(e,t,null,n)};un.createRoot=function(e,t){if(!Qc(e))throw Error(Q(299));var n=!1,a="",o=of;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=Kc(e,1,!1,null,null,n,!1,a,o),e[nr]=t.current,Co(e.nodeType===8?e.parentNode:e),new Yc(t)};un.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(Q(188)):(e=Object.keys(e).join(","),Error(Q(268,e)));return e=Mp(t),e=e===null?null:e.stateNode,e};un.flushSync=function(e){return Xr(e)};un.hydrate=function(e,t,n){if(!ul(t))throw Error(Q(200));return pl(null,e,t,!0,n)};un.hydrateRoot=function(e,t,n){if(!Qc(e))throw Error(Q(405));var a=n!=null&&n.hydratedSources||null,o=!1,i="",l=of;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(l=n.onRecoverableError)),t=af(t,null,e,1,n??null,o,!1,i,l),e[nr]=t.current,Co(e),a)for(e=0;e<a.length;e++)n=a[e],o=n._getVersion,o=o(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new dl(t)};un.render=function(e,t,n){if(!ul(t))throw Error(Q(200));return pl(null,e,t,!1,n)};un.unmountComponentAtNode=function(e){if(!ul(e))throw Error(Q(40));return e._reactRootContainer?(Xr(function(){pl(null,null,e,!1,function(){e._reactRootContainer=null,e[nr]=null})}),!0):!1};un.unstable_batchedUpdates=Uc;un.unstable_renderSubtreeIntoContainer=function(e,t,n,a){if(!ul(n))throw Error(Q(200));if(e==null||e._reactInternals===void 0)throw Error(Q(38));return pl(e,t,n,!1,a)};un.version="18.3.1-next-f1338f8080-20240426"});var Xc=Yn((Qv,cf)=>{"use strict";function sf(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(sf)}catch(e){console.error(e)}}sf(),cf.exports=lf()});var uf=Yn(Jc=>{"use strict";var df=Xc();Jc.createRoot=df.createRoot,Jc.hydrateRoot=df.hydrateRoot;var Xv});var _f=Yn(bl=>{"use strict";var qy=$a(),Yy=Symbol.for("react.element"),Qy=Symbol.for("react.fragment"),Xy=Object.prototype.hasOwnProperty,Jy=qy.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Zy={key:!0,ref:!0,__self:!0,__source:!0};function If(e,t,n){var a,o={},i=null,l=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(l=t.ref);for(a in t)Xy.call(t,a)&&!Zy.hasOwnProperty(a)&&(o[a]=t[a]);if(e&&e.defaultProps)for(a in t=e.defaultProps,t)o[a]===void 0&&(o[a]=t[a]);return{$$typeof:Yy,type:e,key:i,ref:l,props:o,_owner:Jy.current}}bl.Fragment=Qy;bl.jsx=If;bl.jsxs=If});var jo=Yn((p0,Of)=>{"use strict";Of.exports=_f()});var Oa=dr($a(),1),tg=dr(uf(),1);var m=dr($a(),1),tv=dr(Xc(),1);var Ay={"&":"&amp;","<":"&lt;",">":"&gt;"},Zc=e=>String(e).replace(/[&<>]/g,t=>Ay[t]),Fy=[[/结论|总结|tl;?dr|summary|takeaway/i,"\u2705","ok"],[/风险|注意|警告|禁止|坑|踩坑|务必/i,"\u26A0\uFE0F","warn"],[/根因|原因|为什么|定位|复现/i,"\u{1F50D}","info"],[/修复|解决|变更|fix/i,"\u{1F527}","ok"],[/验证|测试|实测|回归/i,"\u{1F9EA}","ok"],[/方案|做法|实现|设计|思路|架构/i,"\u{1F6E0}\uFE0F","plan"],[/步骤|流程|操作|用法|命令/i,"\u{1F9E9}","plan"],[/背景|由来|context/i,"\u{1F9ED}","info"],[/目标|需求|要解决/i,"\u{1F3AF}","plan"],[/环境|依赖|前置|安装/i,"\u{1F4E6}","info"],[/收益|效果|性能|指标|数据|统计/i,"\u{1F4C8}","ok"],[/示例|例子|样例|demo/i,"\u{1F4A1}","idea"],[/参考|链接|相关/i,"\u{1F517}","info"]],Iy=["\u2728","info"],_y=[[/风险|注意|警告|禁止|坑|务必/i,"\u26A0\uFE0F","warn"],[/提示|建议|tip|best practice/i,"\u{1F4A1}","idea"],[/结论|总结/i,"\u2705","ok"],[/错误|失败|报错/i,"\u2757","bad"]],Oy=e=>{let t=String(e);for(let[n,a,o]of Fy)if(n.test(t))return[a,o];return Iy},jy=e=>{let t=e.join(" ");for(let[n,a,o]of _y)if(n.test(t))return[a,o];return["\u{1F4CC}","info"]};function Ia(e){let t=String(e),n=/^([^::\s]{1,8})[::]\s*(.+)$/.exec(t);if(n&&!/[是为有了吗呢着过把被和与或于]/.test(n[1]))return'<span class="md-kv"><span class="md-k">'+Zc(n[1])+'</span><span class="md-v">'+Ia(n[2])+"</span></span>";let a=Zc(t);return a=a.replace(/^\[([ xX])\](?=\s|$)\s*/,(o,i)=>'<span class="md-task">'+(i.toLowerCase()==="x"?"\u2611":"\u2610")+"</span> "),a=a.replace(/`([^`\n]+)`/g,'<code class="md-code">$1</code>'),a=a.replace(/\*\*([^*]+)\*\*/g,'<strong class="md-b">$1</strong>'),a=a.replace(/(^|[^*])\*([^*\n]+)\*/g,"$1<em>$2</em>"),a=a.replace(/\[([^\]]+)\]\(([^)\s]+)\)/g,(o,i,l)=>/^(https?:|\/|#)/i.test(l)?'<a class="md-link" href="'+l+'" target="_blank" rel="noopener noreferrer">'+i+"</a>":i),a}function ml(e){let t=String(e||"").replace(/\r\n?/g,`
8
+ `+i.stack}return{value:e,source:t,stack:o,digest:null}}function ps(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function qs(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var dy=typeof WeakMap=="function"?WeakMap:Map;function Am(e,t,n){n=er(-1,n),n.tag=3,n.payload={element:null};var a=t.value;return n.callback=function(){qi||(qi=!0,ac=a),qs(e,t)},n}function Fm(e,t,n){n=er(-1,n),n.tag=3;var a=e.type.getDerivedStateFromError;if(typeof a=="function"){var o=t.value;n.payload=function(){return a(o)},n.callback=function(){qs(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){qs(e,t),typeof a!="function"&&(Cr===null?Cr=new Set([this]):Cr.add(this));var l=t.stack;this.componentDidCatch(t.value,{componentStack:l!==null?l:""})}),n}function Gu(e,t,n){var a=e.pingCache;if(a===null){a=e.pingCache=new dy;var o=new Set;a.set(t,o)}else o=a.get(t),o===void 0&&(o=new Set,a.set(t,o));o.has(n)||(o.add(n),e=Cy.bind(null,e,t,n),t.then(e,e))}function Ku(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function qu(e,t,n,a,o){return e.mode&1?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=er(-1,1),t.tag=2,Sr(n,t,1))),n.lanes|=1),e)}var uy=or.ReactCurrentOwner,en=!1;function Vt(e,t,n,a){t.child=e===null?dm(t,null,n,a):za(t,e.child,n,a)}function Yu(e,t,n,a,o){n=n.render;var i=t.ref;return Ca(t,o),a=Ic(e,t,n,a,i,o),n=_c(),e!==null&&!en?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,ar(e,t,o)):(at&&n&&Cc(t),t.flags|=1,Vt(e,t,a,o),t.child)}function Qu(e,t,n,a,o){if(e===null){var i=n.type;return typeof i=="function"&&!Kc(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,Im(e,t,i,a,o)):(e=Mi(n.type,null,a,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&o)){var l=i.memoizedProps;if(n=n.compare,n=n!==null?n:ko,n(l,a)&&e.ref===t.ref)return ar(e,t,o)}return t.flags|=1,e=Tr(i,a),e.ref=t.ref,e.return=t,t.child=e}function Im(e,t,n,a,o){if(e!==null){var i=e.memoizedProps;if(ko(i,a)&&e.ref===t.ref)if(en=!1,t.pendingProps=a=i,(e.lanes&o)!==0)e.flags&131072&&(en=!0);else return t.lanes=e.lanes,ar(e,t,o)}return Ys(e,t,n,a,o)}function _m(e,t,n){var a=t.pendingProps,o=a.children,i=e!==null?e.memoizedState:null;if(a.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ze(ba,on),on|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ze(ba,on),on|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},a=i!==null?i.baseLanes:n,Ze(ba,on),on|=a}else i!==null?(a=i.baseLanes|n,t.memoizedState=null):a=n,Ze(ba,on),on|=a;return Vt(e,t,o,n),t.child}function Om(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Ys(e,t,n,a,o){var i=nn(n)?Kr:_t.current;return i=Ma(t,i),Ca(t,o),n=Ic(e,t,n,a,i,o),a=_c(),e!==null&&!en?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,ar(e,t,o)):(at&&a&&Cc(t),t.flags|=1,Vt(e,t,n,o),t.child)}function Xu(e,t,n,a,o){if(nn(n)){var i=!0;Oi(t)}else i=!1;if(Ca(t,o),t.stateNode===null)Ci(e,t),Pm(t,n,a),Ks(t,n,a,o),a=!0;else if(e===null){var l=t.stateNode,s=t.memoizedProps;l.props=s;var c=l.context,u=n.contextType;typeof u=="object"&&u!==null?u=bn(u):(u=nn(n)?Kr:_t.current,u=Ma(t,u));var m=n.getDerivedStateFromProps,h=typeof m=="function"||typeof l.getSnapshotBeforeUpdate=="function";h||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(s!==a||c!==u)&&Vu(t,l,a,u),fr=!1;var g=t.memoizedState;l.state=g,Ui(t,a,l,o),c=t.memoizedState,s!==a||g!==c||tn.current||fr?(typeof m=="function"&&(Gs(t,n,m,a),c=t.memoizedState),(s=fr||$u(t,n,s,a,g,c,u))?(h||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount()),typeof l.componentDidMount=="function"&&(t.flags|=4194308)):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=c),l.props=a,l.state=c,l.context=u,a=s):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{l=t.stateNode,pm(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:Rn(t.type,s),l.props=u,h=t.pendingProps,g=l.context,c=n.contextType,typeof c=="object"&&c!==null?c=bn(c):(c=nn(n)?Kr:_t.current,c=Ma(t,c));var k=n.getDerivedStateFromProps;(m=typeof k=="function"||typeof l.getSnapshotBeforeUpdate=="function")||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(s!==h||g!==c)&&Vu(t,l,a,c),fr=!1,g=t.memoizedState,l.state=g,Ui(t,a,l,o);var E=t.memoizedState;s!==h||g!==E||tn.current||fr?(typeof k=="function"&&(Gs(t,n,k,a),E=t.memoizedState),(u=fr||$u(t,n,u,a,g,E,c)||!1)?(m||typeof l.UNSAFE_componentWillUpdate!="function"&&typeof l.componentWillUpdate!="function"||(typeof l.componentWillUpdate=="function"&&l.componentWillUpdate(a,E,c),typeof l.UNSAFE_componentWillUpdate=="function"&&l.UNSAFE_componentWillUpdate(a,E,c)),typeof l.componentDidUpdate=="function"&&(t.flags|=4),typeof l.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof l.componentDidUpdate!="function"||s===e.memoizedProps&&g===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&g===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=E),l.props=a,l.state=E,l.context=c,a=u):(typeof l.componentDidUpdate!="function"||s===e.memoizedProps&&g===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&g===e.memoizedState||(t.flags|=1024),a=!1)}return Qs(e,t,n,a,i,o)}function Qs(e,t,n,a,o,i){Om(e,t);var l=(t.flags&128)!==0;if(!a&&!l)return o&&Iu(t,n,!1),ar(e,t,i);a=t.stateNode,uy.current=t;var s=l&&typeof n.getDerivedStateFromError!="function"?null:a.render();return t.flags|=1,e!==null&&l?(t.child=za(t,e.child,null,i),t.child=za(t,null,s,i)):Vt(e,t,s,i),t.memoizedState=a.state,o&&Iu(t,n,!0),t.child}function jm(e){var t=e.stateNode;t.pendingContext?Fu(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Fu(e,t.context,!1),Dc(e,t.containerInfo)}function Ju(e,t,n,a,o){return Ea(),Tc(o),t.flags|=256,Vt(e,t,n,a),t.child}var Xs={dehydrated:null,treeContext:null,retryLane:0};function Js(e){return{baseLanes:e,cachePool:null,transitions:null}}function Bm(e,t,n){var a=t.pendingProps,o=lt.current,i=!1,l=(t.flags&128)!==0,s;if((s=l)||(s=e!==null&&e.memoizedState===null?!1:(o&2)!==0),s?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),Ze(lt,o&1),e===null)return $s(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(l=a.children,e=a.fallback,i?(a=t.mode,i=t.child,l={mode:"hidden",children:l},!(a&1)&&i!==null?(i.childLanes=0,i.pendingProps=l):i=sl(l,a,0,null),e=Gr(e,a,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=Js(n),t.memoizedState=Xs,e):Bc(t,l));if(o=e.memoizedState,o!==null&&(s=o.dehydrated,s!==null))return py(e,t,l,a,s,o,n);if(i){i=a.fallback,l=t.mode,o=e.child,s=o.sibling;var c={mode:"hidden",children:a.children};return!(l&1)&&t.child!==o?(a=t.child,a.childLanes=0,a.pendingProps=c,t.deletions=null):(a=Tr(o,c),a.subtreeFlags=o.subtreeFlags&14680064),s!==null?i=Tr(s,i):(i=Gr(i,l,n,null),i.flags|=2),i.return=t,a.return=t,a.sibling=i,t.child=a,a=i,i=t.child,l=e.child.memoizedState,l=l===null?Js(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},i.memoizedState=l,i.childLanes=e.childLanes&~n,t.memoizedState=Xs,a}return i=e.child,e=i.sibling,a=Tr(i,{mode:"visible",children:a.children}),!(t.mode&1)&&(a.lanes=n),a.return=t,a.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=a,t.memoizedState=null,a}function Bc(e,t){return t=sl({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function gi(e,t,n,a){return a!==null&&Tc(a),za(t,e.child,null,n),e=Bc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function py(e,t,n,a,o,i,l){if(n)return t.flags&256?(t.flags&=-257,a=ps(Error(X(422))),gi(e,t,l,a)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=a.fallback,o=t.mode,a=sl({mode:"visible",children:a.children},o,0,null),i=Gr(i,o,l,null),i.flags|=2,a.return=t,i.return=t,a.sibling=i,t.child=a,t.mode&1&&za(t,e.child,null,l),t.child.memoizedState=Js(l),t.memoizedState=Xs,i);if(!(t.mode&1))return gi(e,t,l,null);if(o.data==="$!"){if(a=o.nextSibling&&o.nextSibling.dataset,a)var s=a.dgst;return a=s,i=Error(X(419)),a=ps(i,a,void 0),gi(e,t,l,a)}if(s=(l&e.childLanes)!==0,en||s){if(a=St,a!==null){switch(l&-l){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(a.suspendedLanes|l)?0:o,o!==0&&o!==i.retryLane&&(i.retryLane=o,rr(e,o),An(a,e,o,-1))}return Gc(),a=ps(Error(X(421))),gi(e,t,l,a)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=Ny.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,ln=kr(o.nextSibling),sn=t,at=!0,Dn=null,e!==null&&(gn[hn++]=Jn,gn[hn++]=Zn,gn[hn++]=qr,Jn=e.id,Zn=e.overflow,qr=t),t=Bc(t,a.children),t.flags|=4096,t)}function Zu(e,t,n){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),Vs(e.return,t,n)}function ms(e,t,n,a,o){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=a,i.tail=n,i.tailMode=o)}function Hm(e,t,n){var a=t.pendingProps,o=a.revealOrder,i=a.tail;if(Vt(e,t,a.children,n),a=lt.current,a&2)a=a&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Zu(e,n,t);else if(e.tag===19)Zu(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}a&=1}if(Ze(lt,a),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&$i(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),ms(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&$i(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}ms(t,!0,n,null,i);break;case"together":ms(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Ci(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function ar(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Qr|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(X(153));if(t.child!==null){for(e=t.child,n=Tr(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Tr(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function my(e,t,n){switch(t.tag){case 3:jm(t),Ea();break;case 5:mm(t);break;case 1:nn(t.type)&&Oi(t);break;case 4:Dc(t,t.stateNode.containerInfo);break;case 10:var a=t.type._context,o=t.memoizedProps.value;Ze(Hi,a._currentValue),a._currentValue=o;break;case 13:if(a=t.memoizedState,a!==null)return a.dehydrated!==null?(Ze(lt,lt.current&1),t.flags|=128,null):n&t.child.childLanes?Bm(e,t,n):(Ze(lt,lt.current&1),e=ar(e,t,n),e!==null?e.sibling:null);Ze(lt,lt.current&1);break;case 19:if(a=(n&t.childLanes)!==0,e.flags&128){if(a)return Hm(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),Ze(lt,lt.current),a)break;return null;case 22:case 23:return t.lanes=0,_m(e,t,n)}return ar(e,t,n)}var Wm,Zs,Um,$m;Wm=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Zs=function(){};Um=function(e,t,n,a){var o=e.memoizedProps;if(o!==a){e=t.stateNode,$r(Gn.current);var i=null;switch(n){case"input":o=xs(e,o),a=xs(e,a),i=[];break;case"select":o=ct({},o,{value:void 0}),a=ct({},a,{value:void 0}),i=[];break;case"textarea":o=Cs(e,o),a=Cs(e,a),i=[];break;default:typeof o.onClick!="function"&&typeof a.onClick=="function"&&(e.onclick=Ii)}Ts(n,a);var l;n=null;for(u in o)if(!a.hasOwnProperty(u)&&o.hasOwnProperty(u)&&o[u]!=null)if(u==="style"){var s=o[u];for(l in s)s.hasOwnProperty(l)&&(n||(n={}),n[l]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(go.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in a){var c=a[u];if(s=o?.[u],a.hasOwnProperty(u)&&c!==s&&(c!=null||s!=null))if(u==="style")if(s){for(l in s)!s.hasOwnProperty(l)||c&&c.hasOwnProperty(l)||(n||(n={}),n[l]="");for(l in c)c.hasOwnProperty(l)&&s[l]!==c[l]&&(n||(n={}),n[l]=c[l])}else n||(i||(i=[]),i.push(u,n)),n=c;else u==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,s=s?s.__html:void 0,c!=null&&s!==c&&(i=i||[]).push(u,c)):u==="children"?typeof c!="string"&&typeof c!="number"||(i=i||[]).push(u,""+c):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(go.hasOwnProperty(u)?(c!=null&&u==="onScroll"&&nt("scroll",e),i||s===c||(i=[])):(i=i||[]).push(u,c))}n&&(i=i||[]).push("style",n);var u=i;(t.updateQueue=u)&&(t.flags|=4)}};$m=function(e,t,n,a){n!==a&&(t.flags|=4)};function Ja(e,t){if(!at)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var a=null;n!==null;)n.alternate!==null&&(a=n),n=n.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function Ft(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,a=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,a|=o.subtreeFlags&14680064,a|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,a|=o.subtreeFlags,a|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=a,e.childLanes=n,t}function fy(e,t,n){var a=t.pendingProps;switch(Nc(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ft(t),null;case 1:return nn(t.type)&&_i(),Ft(t),null;case 3:return a=t.stateNode,Ra(),rt(tn),rt(_t),Ac(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(mi(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Dn!==null&&(lc(Dn),Dn=null))),Zs(e,t),Ft(t),null;case 5:Pc(t);var o=$r(Mo.current);if(n=t.type,e!==null&&t.stateNode!=null)Um(e,t,n,a,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!a){if(t.stateNode===null)throw Error(X(166));return Ft(t),null}if(e=$r(Gn.current),mi(t)){a=t.stateNode,n=t.type;var i=t.memoizedProps;switch(a[$n]=t,a[No]=i,e=(t.mode&1)!==0,n){case"dialog":nt("cancel",a),nt("close",a);break;case"iframe":case"object":case"embed":nt("load",a);break;case"video":case"audio":for(o=0;o<ao.length;o++)nt(ao[o],a);break;case"source":nt("error",a);break;case"img":case"image":case"link":nt("error",a),nt("load",a);break;case"details":nt("toggle",a);break;case"input":lu(a,i),nt("invalid",a);break;case"select":a._wrapperState={wasMultiple:!!i.multiple},nt("invalid",a);break;case"textarea":cu(a,i),nt("invalid",a)}Ts(n,i),o=null;for(var l in i)if(i.hasOwnProperty(l)){var s=i[l];l==="children"?typeof s=="string"?a.textContent!==s&&(i.suppressHydrationWarning!==!0&&pi(a.textContent,s,e),o=["children",s]):typeof s=="number"&&a.textContent!==""+s&&(i.suppressHydrationWarning!==!0&&pi(a.textContent,s,e),o=["children",""+s]):go.hasOwnProperty(l)&&s!=null&&l==="onScroll"&&nt("scroll",a)}switch(n){case"input":ei(a),su(a,i,!0);break;case"textarea":ei(a),du(a);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(a.onclick=Ii)}a=o,t.updateQueue=a,a!==null&&(t.flags|=4)}else{l=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=vp(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=l.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof a.is=="string"?e=l.createElement(n,{is:a.is}):(e=l.createElement(n),n==="select"&&(l=e,a.multiple?l.multiple=!0:a.size&&(l.size=a.size))):e=l.createElementNS(e,n),e[$n]=t,e[No]=a,Wm(e,t,!1,!1),t.stateNode=e;e:{switch(l=Ms(n,a),n){case"dialog":nt("cancel",e),nt("close",e),o=a;break;case"iframe":case"object":case"embed":nt("load",e),o=a;break;case"video":case"audio":for(o=0;o<ao.length;o++)nt(ao[o],e);o=a;break;case"source":nt("error",e),o=a;break;case"img":case"image":case"link":nt("error",e),nt("load",e),o=a;break;case"details":nt("toggle",e),o=a;break;case"input":lu(e,a),o=xs(e,a),nt("invalid",e);break;case"option":o=a;break;case"select":e._wrapperState={wasMultiple:!!a.multiple},o=ct({},a,{value:void 0}),nt("invalid",e);break;case"textarea":cu(e,a),o=Cs(e,a),nt("invalid",e);break;default:o=a}Ts(n,o),s=o;for(i in s)if(s.hasOwnProperty(i)){var c=s[i];i==="style"?xp(e,c):i==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,c!=null&&bp(e,c)):i==="children"?typeof c=="string"?(n!=="textarea"||c!=="")&&ho(e,c):typeof c=="number"&&ho(e,""+c):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(go.hasOwnProperty(i)?c!=null&&i==="onScroll"&&nt("scroll",e):c!=null&&dc(e,i,c,l))}switch(n){case"input":ei(e),su(e,a,!1);break;case"textarea":ei(e),du(e);break;case"option":a.value!=null&&e.setAttribute("value",""+Mr(a.value));break;case"select":e.multiple=!!a.multiple,i=a.value,i!=null?wa(e,!!a.multiple,i,!1):a.defaultValue!=null&&wa(e,!!a.multiple,a.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=Ii)}switch(n){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}}a&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Ft(t),null;case 6:if(e&&t.stateNode!=null)$m(e,t,e.memoizedProps,a);else{if(typeof a!="string"&&t.stateNode===null)throw Error(X(166));if(n=$r(Mo.current),$r(Gn.current),mi(t)){if(a=t.stateNode,n=t.memoizedProps,a[$n]=t,(i=a.nodeValue!==n)&&(e=sn,e!==null))switch(e.tag){case 3:pi(a.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&pi(a.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else a=(n.nodeType===9?n:n.ownerDocument).createTextNode(a),a[$n]=t,t.stateNode=a}return Ft(t),null;case 13:if(rt(lt),a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(at&&ln!==null&&t.mode&1&&!(t.flags&128))sm(),Ea(),t.flags|=98560,i=!1;else if(i=mi(t),a!==null&&a.dehydrated!==null){if(e===null){if(!i)throw Error(X(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(X(317));i[$n]=t}else Ea(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Ft(t),i=!1}else Dn!==null&&(lc(Dn),Dn=null),i=!0;if(!i)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(a=a!==null,a!==(e!==null&&e.memoizedState!==null)&&a&&(t.child.flags|=8192,t.mode&1&&(e===null||lt.current&1?wt===0&&(wt=3):Gc())),t.updateQueue!==null&&(t.flags|=4),Ft(t),null);case 4:return Ra(),Zs(e,t),e===null&&So(t.stateNode.containerInfo),Ft(t),null;case 10:return zc(t.type._context),Ft(t),null;case 17:return nn(t.type)&&_i(),Ft(t),null;case 19:if(rt(lt),i=t.memoizedState,i===null)return Ft(t),null;if(a=(t.flags&128)!==0,l=i.rendering,l===null)if(a)Ja(i,!1);else{if(wt!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(l=$i(e),l!==null){for(t.flags|=128,Ja(i,!1),a=l.updateQueue,a!==null&&(t.updateQueue=a,t.flags|=4),t.subtreeFlags=0,a=n,n=t.child;n!==null;)i=n,e=a,i.flags&=14680066,l=i.alternate,l===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=l.childLanes,i.lanes=l.lanes,i.child=l.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=l.memoizedProps,i.memoizedState=l.memoizedState,i.updateQueue=l.updateQueue,i.type=l.type,e=l.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Ze(lt,lt.current&1|2),t.child}e=e.sibling}i.tail!==null&&ft()>Da&&(t.flags|=128,a=!0,Ja(i,!1),t.lanes=4194304)}else{if(!a)if(e=$i(l),e!==null){if(t.flags|=128,a=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Ja(i,!0),i.tail===null&&i.tailMode==="hidden"&&!l.alternate&&!at)return Ft(t),null}else 2*ft()-i.renderingStartTime>Da&&n!==1073741824&&(t.flags|=128,a=!0,Ja(i,!1),t.lanes=4194304);i.isBackwards?(l.sibling=t.child,t.child=l):(n=i.last,n!==null?n.sibling=l:t.child=l,i.last=l)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=ft(),t.sibling=null,n=lt.current,Ze(lt,a?n&1|2:n&1),t):(Ft(t),null);case 22:case 23:return Vc(),a=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==a&&(t.flags|=8192),a&&t.mode&1?on&1073741824&&(Ft(t),t.subtreeFlags&6&&(t.flags|=8192)):Ft(t),null;case 24:return null;case 25:return null}throw Error(X(156,t.tag))}function gy(e,t){switch(Nc(t),t.tag){case 1:return nn(t.type)&&_i(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ra(),rt(tn),rt(_t),Ac(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Pc(t),null;case 13:if(rt(lt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(X(340));Ea()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return rt(lt),null;case 4:return Ra(),null;case 10:return zc(t.type._context),null;case 22:case 23:return Vc(),null;case 24:return null;default:return null}}var hi=!1,It=!1,hy=typeof WeakSet=="function"?WeakSet:Set,se=null;function va(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(a){ut(e,t,a)}else n.current=null}function ec(e,t,n){try{n()}catch(a){ut(e,t,a)}}var ep=!1;function yy(e,t){if(_s=Pi,e=Yp(),Sc(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var a=n.getSelection&&n.getSelection();if(a&&a.rangeCount!==0){n=a.anchorNode;var o=a.anchorOffset,i=a.focusNode;a=a.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var l=0,s=-1,c=-1,u=0,m=0,h=e,g=null;t:for(;;){for(var k;h!==n||o!==0&&h.nodeType!==3||(s=l+o),h!==i||a!==0&&h.nodeType!==3||(c=l+a),h.nodeType===3&&(l+=h.nodeValue.length),(k=h.firstChild)!==null;)g=h,h=k;for(;;){if(h===e)break t;if(g===n&&++u===o&&(s=l),g===i&&++m===a&&(c=l),(k=h.nextSibling)!==null)break;h=g,g=h.parentNode}h=k}n=s===-1||c===-1?null:{start:s,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(Os={focusedElem:e,selectionRange:n},Pi=!1,se=t;se!==null;)if(t=se,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,se=e;else for(;se!==null;){t=se;try{var E=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(E!==null){var T=E.memoizedProps,I=E.memoizedState,w=t.stateNode,f=w.getSnapshotBeforeUpdate(t.elementType===t.type?T:Rn(t.type,T),I);w.__reactInternalSnapshotBeforeUpdate=f}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(X(163))}}catch(L){ut(t,t.return,L)}if(e=t.sibling,e!==null){e.return=t.return,se=e;break}se=t.return}return E=ep,ep=!1,E}function po(e,t,n){var a=t.updateQueue;if(a=a!==null?a.lastEffect:null,a!==null){var o=a=a.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&ec(t,n,i)}o=o.next}while(o!==a)}}function il(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var a=n.create;n.destroy=a()}n=n.next}while(n!==t)}}function tc(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Vm(e){var t=e.alternate;t!==null&&(e.alternate=null,Vm(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[$n],delete t[No],delete t[Hs],delete t[Zh],delete t[ey])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Gm(e){return e.tag===5||e.tag===3||e.tag===4}function tp(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Gm(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function nc(e,t,n){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Ii));else if(a!==4&&(e=e.child,e!==null))for(nc(e,t,n),e=e.sibling;e!==null;)nc(e,t,n),e=e.sibling}function rc(e,t,n){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(a!==4&&(e=e.child,e!==null))for(rc(e,t,n),e=e.sibling;e!==null;)rc(e,t,n),e=e.sibling}var zt=null,Ln=!1;function pr(e,t,n){for(n=n.child;n!==null;)Km(e,t,n),n=n.sibling}function Km(e,t,n){if(Vn&&typeof Vn.onCommitFiberUnmount=="function")try{Vn.onCommitFiberUnmount(Ji,n)}catch{}switch(n.tag){case 5:It||va(n,t);case 6:var a=zt,o=Ln;zt=null,pr(e,t,n),zt=a,Ln=o,zt!==null&&(Ln?(e=zt,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):zt.removeChild(n.stateNode));break;case 18:zt!==null&&(Ln?(e=zt,n=n.stateNode,e.nodeType===8?is(e.parentNode,n):e.nodeType===1&&is(e,n),wo(e)):is(zt,n.stateNode));break;case 4:a=zt,o=Ln,zt=n.stateNode.containerInfo,Ln=!0,pr(e,t,n),zt=a,Ln=o;break;case 0:case 11:case 14:case 15:if(!It&&(a=n.updateQueue,a!==null&&(a=a.lastEffect,a!==null))){o=a=a.next;do{var i=o,l=i.destroy;i=i.tag,l!==void 0&&(i&2||i&4)&&ec(n,t,l),o=o.next}while(o!==a)}pr(e,t,n);break;case 1:if(!It&&(va(n,t),a=n.stateNode,typeof a.componentWillUnmount=="function"))try{a.props=n.memoizedProps,a.state=n.memoizedState,a.componentWillUnmount()}catch(s){ut(n,t,s)}pr(e,t,n);break;case 21:pr(e,t,n);break;case 22:n.mode&1?(It=(a=It)||n.memoizedState!==null,pr(e,t,n),It=a):pr(e,t,n);break;default:pr(e,t,n)}}function np(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new hy),t.forEach(function(a){var o=Ty.bind(null,e,a);n.has(a)||(n.add(a),a.then(o,o))})}}function zn(e,t){var n=t.deletions;if(n!==null)for(var a=0;a<n.length;a++){var o=n[a];try{var i=e,l=t,s=l;e:for(;s!==null;){switch(s.tag){case 5:zt=s.stateNode,Ln=!1;break e;case 3:zt=s.stateNode.containerInfo,Ln=!0;break e;case 4:zt=s.stateNode.containerInfo,Ln=!0;break e}s=s.return}if(zt===null)throw Error(X(160));Km(i,l,o),zt=null,Ln=!1;var c=o.alternate;c!==null&&(c.return=null),o.return=null}catch(u){ut(o,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)qm(t,e),t=t.sibling}function qm(e,t){var n=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(zn(t,e),Wn(e),a&4){try{po(3,e,e.return),il(3,e)}catch(T){ut(e,e.return,T)}try{po(5,e,e.return)}catch(T){ut(e,e.return,T)}}break;case 1:zn(t,e),Wn(e),a&512&&n!==null&&va(n,n.return);break;case 5:if(zn(t,e),Wn(e),a&512&&n!==null&&va(n,n.return),e.flags&32){var o=e.stateNode;try{ho(o,"")}catch(T){ut(e,e.return,T)}}if(a&4&&(o=e.stateNode,o!=null)){var i=e.memoizedProps,l=n!==null?n.memoizedProps:i,s=e.type,c=e.updateQueue;if(e.updateQueue=null,c!==null)try{s==="input"&&i.type==="radio"&&i.name!=null&&hp(o,i),Ms(s,l);var u=Ms(s,i);for(l=0;l<c.length;l+=2){var m=c[l],h=c[l+1];m==="style"?xp(o,h):m==="dangerouslySetInnerHTML"?bp(o,h):m==="children"?ho(o,h):dc(o,m,h,u)}switch(s){case"input":ks(o,i);break;case"textarea":yp(o,i);break;case"select":var g=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var k=i.value;k!=null?wa(o,!!i.multiple,k,!1):g!==!!i.multiple&&(i.defaultValue!=null?wa(o,!!i.multiple,i.defaultValue,!0):wa(o,!!i.multiple,i.multiple?[]:"",!1))}o[No]=i}catch(T){ut(e,e.return,T)}}break;case 6:if(zn(t,e),Wn(e),a&4){if(e.stateNode===null)throw Error(X(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(T){ut(e,e.return,T)}}break;case 3:if(zn(t,e),Wn(e),a&4&&n!==null&&n.memoizedState.isDehydrated)try{wo(t.containerInfo)}catch(T){ut(e,e.return,T)}break;case 4:zn(t,e),Wn(e);break;case 13:zn(t,e),Wn(e),o=e.child,o.flags&8192&&(i=o.memoizedState!==null,o.stateNode.isHidden=i,!i||o.alternate!==null&&o.alternate.memoizedState!==null||(Uc=ft())),a&4&&np(e);break;case 22:if(m=n!==null&&n.memoizedState!==null,e.mode&1?(It=(u=It)||m,zn(t,e),It=u):zn(t,e),Wn(e),a&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!m&&e.mode&1)for(se=e,m=e.child;m!==null;){for(h=se=m;se!==null;){switch(g=se,k=g.child,g.tag){case 0:case 11:case 14:case 15:po(4,g,g.return);break;case 1:va(g,g.return);var E=g.stateNode;if(typeof E.componentWillUnmount=="function"){a=g,n=g.return;try{t=a,E.props=t.memoizedProps,E.state=t.memoizedState,E.componentWillUnmount()}catch(T){ut(a,n,T)}}break;case 5:va(g,g.return);break;case 22:if(g.memoizedState!==null){ap(h);continue}}k!==null?(k.return=g,se=k):ap(h)}m=m.sibling}e:for(m=null,h=e;;){if(h.tag===5){if(m===null){m=h;try{o=h.stateNode,u?(i=o.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(s=h.stateNode,c=h.memoizedProps.style,l=c!=null&&c.hasOwnProperty("display")?c.display:null,s.style.display=wp("display",l))}catch(T){ut(e,e.return,T)}}}else if(h.tag===6){if(m===null)try{h.stateNode.nodeValue=u?"":h.memoizedProps}catch(T){ut(e,e.return,T)}}else if((h.tag!==22&&h.tag!==23||h.memoizedState===null||h===e)&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===e)break e;for(;h.sibling===null;){if(h.return===null||h.return===e)break e;m===h&&(m=null),h=h.return}m===h&&(m=null),h.sibling.return=h.return,h=h.sibling}}break;case 19:zn(t,e),Wn(e),a&4&&np(e);break;case 21:break;default:zn(t,e),Wn(e)}}function Wn(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Gm(n)){var a=n;break e}n=n.return}throw Error(X(160))}switch(a.tag){case 5:var o=a.stateNode;a.flags&32&&(ho(o,""),a.flags&=-33);var i=tp(e);rc(e,i,o);break;case 3:case 4:var l=a.stateNode.containerInfo,s=tp(e);nc(e,s,l);break;default:throw Error(X(161))}}catch(c){ut(e,e.return,c)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function vy(e,t,n){se=e,Ym(e,t,n)}function Ym(e,t,n){for(var a=(e.mode&1)!==0;se!==null;){var o=se,i=o.child;if(o.tag===22&&a){var l=o.memoizedState!==null||hi;if(!l){var s=o.alternate,c=s!==null&&s.memoizedState!==null||It;s=hi;var u=It;if(hi=l,(It=c)&&!u)for(se=o;se!==null;)l=se,c=l.child,l.tag===22&&l.memoizedState!==null?op(o):c!==null?(c.return=l,se=c):op(o);for(;i!==null;)se=i,Ym(i,t,n),i=i.sibling;se=o,hi=s,It=u}rp(e,t,n)}else o.subtreeFlags&8772&&i!==null?(i.return=o,se=i):rp(e,t,n)}}function rp(e){for(;se!==null;){var t=se;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:It||il(5,t);break;case 1:var a=t.stateNode;if(t.flags&4&&!It)if(n===null)a.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:Rn(t.type,n.memoizedProps);a.componentDidUpdate(o,n.memoizedState,a.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&Hu(t,i,a);break;case 3:var l=t.updateQueue;if(l!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Hu(t,l,n)}break;case 5:var s=t.stateNode;if(n===null&&t.flags&4){n=s;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&n.focus();break;case"img":c.src&&(n.src=c.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var m=u.memoizedState;if(m!==null){var h=m.dehydrated;h!==null&&wo(h)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(X(163))}It||t.flags&512&&tc(t)}catch(g){ut(t,t.return,g)}}if(t===e){se=null;break}if(n=t.sibling,n!==null){n.return=t.return,se=n;break}se=t.return}}function ap(e){for(;se!==null;){var t=se;if(t===e){se=null;break}var n=t.sibling;if(n!==null){n.return=t.return,se=n;break}se=t.return}}function op(e){for(;se!==null;){var t=se;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{il(4,t)}catch(c){ut(t,n,c)}break;case 1:var a=t.stateNode;if(typeof a.componentDidMount=="function"){var o=t.return;try{a.componentDidMount()}catch(c){ut(t,o,c)}}var i=t.return;try{tc(t)}catch(c){ut(t,i,c)}break;case 5:var l=t.return;try{tc(t)}catch(c){ut(t,l,c)}}}catch(c){ut(t,t.return,c)}if(t===e){se=null;break}var s=t.sibling;if(s!==null){s.return=t.return,se=s;break}se=t.return}}var by=Math.ceil,Ki=or.ReactCurrentDispatcher,Hc=or.ReactCurrentOwner,vn=or.ReactCurrentBatchConfig,We=0,St=null,ht=null,Rt=0,on=0,ba=Rr(0),wt=0,Lo=null,Qr=0,ll=0,Wc=0,mo=null,Zt=null,Uc=0,Da=1/0,Qn=null,qi=!1,ac=null,Cr=null,yi=!1,vr=null,Yi=0,fo=0,oc=null,Ni=-1,Ti=0;function Gt(){return We&6?ft():Ni!==-1?Ni:Ni=ft()}function Nr(e){return e.mode&1?We&2&&Rt!==0?Rt&-Rt:ny.transition!==null?(Ti===0&&(Ti=Pp()),Ti):(e=Ge,e!==0||(e=window.event,e=e===void 0?16:Bp(e.type)),e):1}function An(e,t,n,a){if(50<fo)throw fo=0,oc=null,Error(X(185));Do(e,n,a),(!(We&2)||e!==St)&&(e===St&&(!(We&2)&&(ll|=n),wt===4&&hr(e,Rt)),rn(e,a),n===1&&We===0&&!(t.mode&1)&&(Da=ft()+500,rl&&Lr()))}function rn(e,t){var n=e.callbackNode;ah(e,t);var a=Di(e,e===St?Rt:0);if(a===0)n!==null&&mu(n),e.callbackNode=null,e.callbackPriority=0;else if(t=a&-a,e.callbackPriority!==t){if(n!=null&&mu(n),t===1)e.tag===0?ty(ip.bind(null,e)):om(ip.bind(null,e)),Xh(function(){!(We&6)&&Lr()}),n=null;else{switch(Ap(a)){case 1:n=gc;break;case 4:n=Lp;break;case 16:n=Li;break;case 536870912:n=Dp;break;default:n=Li}n=rf(n,Qm.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Qm(e,t){if(Ni=-1,Ti=0,We&6)throw Error(X(327));var n=e.callbackNode;if(Na()&&e.callbackNode!==n)return null;var a=Di(e,e===St?Rt:0);if(a===0)return null;if(a&30||a&e.expiredLanes||t)t=Qi(e,a);else{t=a;var o=We;We|=2;var i=Jm();(St!==e||Rt!==t)&&(Qn=null,Da=ft()+500,Vr(e,t));do try{ky();break}catch(s){Xm(e,s)}while(!0);Ec(),Ki.current=i,We=o,ht!==null?t=0:(St=null,Rt=0,t=wt)}if(t!==0){if(t===2&&(o=Ds(e),o!==0&&(a=o,t=ic(e,o))),t===1)throw n=Lo,Vr(e,0),hr(e,a),rn(e,ft()),n;if(t===6)hr(e,a);else{if(o=e.current.alternate,!(a&30)&&!wy(o)&&(t=Qi(e,a),t===2&&(i=Ds(e),i!==0&&(a=i,t=ic(e,i))),t===1))throw n=Lo,Vr(e,0),hr(e,a),rn(e,ft()),n;switch(e.finishedWork=o,e.finishedLanes=a,t){case 0:case 1:throw Error(X(345));case 2:Hr(e,Zt,Qn);break;case 3:if(hr(e,a),(a&130023424)===a&&(t=Uc+500-ft(),10<t)){if(Di(e,0)!==0)break;if(o=e.suspendedLanes,(o&a)!==a){Gt(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=Bs(Hr.bind(null,e,Zt,Qn),t);break}Hr(e,Zt,Qn);break;case 4:if(hr(e,a),(a&4194240)===a)break;for(t=e.eventTimes,o=-1;0<a;){var l=31-Pn(a);i=1<<l,l=t[l],l>o&&(o=l),a&=~i}if(a=o,a=ft()-a,a=(120>a?120:480>a?480:1080>a?1080:1920>a?1920:3e3>a?3e3:4320>a?4320:1960*by(a/1960))-a,10<a){e.timeoutHandle=Bs(Hr.bind(null,e,Zt,Qn),a);break}Hr(e,Zt,Qn);break;case 5:Hr(e,Zt,Qn);break;default:throw Error(X(329))}}}return rn(e,ft()),e.callbackNode===n?Qm.bind(null,e):null}function ic(e,t){var n=mo;return e.current.memoizedState.isDehydrated&&(Vr(e,t).flags|=256),e=Qi(e,t),e!==2&&(t=Zt,Zt=n,t!==null&&lc(t)),e}function lc(e){Zt===null?Zt=e:Zt.push.apply(Zt,e)}function wy(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var a=0;a<n.length;a++){var o=n[a],i=o.getSnapshot;o=o.value;try{if(!Fn(i(),o))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function hr(e,t){for(t&=~Wc,t&=~ll,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Pn(t),a=1<<n;e[n]=-1,t&=~a}}function ip(e){if(We&6)throw Error(X(327));Na();var t=Di(e,0);if(!(t&1))return rn(e,ft()),null;var n=Qi(e,t);if(e.tag!==0&&n===2){var a=Ds(e);a!==0&&(t=a,n=ic(e,a))}if(n===1)throw n=Lo,Vr(e,0),hr(e,t),rn(e,ft()),n;if(n===6)throw Error(X(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Hr(e,Zt,Qn),rn(e,ft()),null}function $c(e,t){var n=We;We|=1;try{return e(t)}finally{We=n,We===0&&(Da=ft()+500,rl&&Lr())}}function Xr(e){vr!==null&&vr.tag===0&&!(We&6)&&Na();var t=We;We|=1;var n=vn.transition,a=Ge;try{if(vn.transition=null,Ge=1,e)return e()}finally{Ge=a,vn.transition=n,We=t,!(We&6)&&Lr()}}function Vc(){on=ba.current,rt(ba)}function Vr(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Qh(n)),ht!==null)for(n=ht.return;n!==null;){var a=n;switch(Nc(a),a.tag){case 1:a=a.type.childContextTypes,a!=null&&_i();break;case 3:Ra(),rt(tn),rt(_t),Ac();break;case 5:Pc(a);break;case 4:Ra();break;case 13:rt(lt);break;case 19:rt(lt);break;case 10:zc(a.type._context);break;case 22:case 23:Vc()}n=n.return}if(St=e,ht=e=Tr(e.current,null),Rt=on=t,wt=0,Lo=null,Wc=ll=Qr=0,Zt=mo=null,Ur!==null){for(t=0;t<Ur.length;t++)if(n=Ur[t],a=n.interleaved,a!==null){n.interleaved=null;var o=a.next,i=n.pending;if(i!==null){var l=i.next;i.next=o,a.next=l}n.pending=a}Ur=null}return e}function Xm(e,t){do{var n=ht;try{if(Ec(),ki.current=Gi,Vi){for(var a=st.memoizedState;a!==null;){var o=a.queue;o!==null&&(o.pending=null),a=a.next}Vi=!1}if(Yr=0,kt=bt=st=null,uo=!1,Eo=0,Hc.current=null,n===null||n.return===null){wt=1,Lo=t,ht=null;break}e:{var i=e,l=n.return,s=n,c=t;if(t=Rt,s.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){var u=c,m=s,h=m.tag;if(!(m.mode&1)&&(h===0||h===11||h===15)){var g=m.alternate;g?(m.updateQueue=g.updateQueue,m.memoizedState=g.memoizedState,m.lanes=g.lanes):(m.updateQueue=null,m.memoizedState=null)}var k=Ku(l);if(k!==null){k.flags&=-257,qu(k,l,s,i,t),k.mode&1&&Gu(i,u,t),t=k,c=u;var E=t.updateQueue;if(E===null){var T=new Set;T.add(c),t.updateQueue=T}else E.add(c);break e}else{if(!(t&1)){Gu(i,u,t),Gc();break e}c=Error(X(426))}}else if(at&&s.mode&1){var I=Ku(l);if(I!==null){!(I.flags&65536)&&(I.flags|=256),qu(I,l,s,i,t),Tc(La(c,s));break e}}i=c=La(c,s),wt!==4&&(wt=2),mo===null?mo=[i]:mo.push(i),i=l;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var w=Am(i,c,t);Bu(i,w);break e;case 1:s=c;var f=i.type,y=i.stateNode;if(!(i.flags&128)&&(typeof f.getDerivedStateFromError=="function"||y!==null&&typeof y.componentDidCatch=="function"&&(Cr===null||!Cr.has(y)))){i.flags|=65536,t&=-t,i.lanes|=t;var L=Fm(i,s,t);Bu(i,L);break e}}i=i.return}while(i!==null)}ef(n)}catch(O){t=O,ht===n&&n!==null&&(ht=n=n.return);continue}break}while(!0)}function Jm(){var e=Ki.current;return Ki.current=Gi,e===null?Gi:e}function Gc(){(wt===0||wt===3||wt===2)&&(wt=4),St===null||!(Qr&268435455)&&!(ll&268435455)||hr(St,Rt)}function Qi(e,t){var n=We;We|=2;var a=Jm();(St!==e||Rt!==t)&&(Qn=null,Vr(e,t));do try{xy();break}catch(o){Xm(e,o)}while(!0);if(Ec(),We=n,Ki.current=a,ht!==null)throw Error(X(261));return St=null,Rt=0,wt}function xy(){for(;ht!==null;)Zm(ht)}function ky(){for(;ht!==null&&!Yg();)Zm(ht)}function Zm(e){var t=nf(e.alternate,e,on);e.memoizedProps=e.pendingProps,t===null?ef(e):ht=t,Hc.current=null}function ef(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=gy(n,t),n!==null){n.flags&=32767,ht=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{wt=6,ht=null;return}}else if(n=fy(n,t,on),n!==null){ht=n;return}if(t=t.sibling,t!==null){ht=t;return}ht=t=e}while(t!==null);wt===0&&(wt=5)}function Hr(e,t,n){var a=Ge,o=vn.transition;try{vn.transition=null,Ge=1,Sy(e,t,n,a)}finally{vn.transition=o,Ge=a}return null}function Sy(e,t,n,a){do Na();while(vr!==null);if(We&6)throw Error(X(327));n=e.finishedWork;var o=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(X(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(oh(e,i),e===St&&(ht=St=null,Rt=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||yi||(yi=!0,rf(Li,function(){return Na(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=vn.transition,vn.transition=null;var l=Ge;Ge=1;var s=We;We|=4,Hc.current=null,yy(e,n),qm(n,e),Vh(Os),Pi=!!_s,Os=_s=null,e.current=n,vy(n,e,o),Qg(),We=s,Ge=l,vn.transition=i}else e.current=n;if(yi&&(yi=!1,vr=e,Yi=o),i=e.pendingLanes,i===0&&(Cr=null),Zg(n.stateNode,a),rn(e,ft()),t!==null)for(a=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],a(o.value,{componentStack:o.stack,digest:o.digest});if(qi)throw qi=!1,e=ac,ac=null,e;return Yi&1&&e.tag!==0&&Na(),i=e.pendingLanes,i&1?e===oc?fo++:(fo=0,oc=e):fo=0,Lr(),null}function Na(){if(vr!==null){var e=Ap(Yi),t=vn.transition,n=Ge;try{if(vn.transition=null,Ge=16>e?16:e,vr===null)var a=!1;else{if(e=vr,vr=null,Yi=0,We&6)throw Error(X(331));var o=We;for(We|=4,se=e.current;se!==null;){var i=se,l=i.child;if(se.flags&16){var s=i.deletions;if(s!==null){for(var c=0;c<s.length;c++){var u=s[c];for(se=u;se!==null;){var m=se;switch(m.tag){case 0:case 11:case 15:po(8,m,i)}var h=m.child;if(h!==null)h.return=m,se=h;else for(;se!==null;){m=se;var g=m.sibling,k=m.return;if(Vm(m),m===u){se=null;break}if(g!==null){g.return=k,se=g;break}se=k}}}var E=i.alternate;if(E!==null){var T=E.child;if(T!==null){E.child=null;do{var I=T.sibling;T.sibling=null,T=I}while(T!==null)}}se=i}}if(i.subtreeFlags&2064&&l!==null)l.return=i,se=l;else e:for(;se!==null;){if(i=se,i.flags&2048)switch(i.tag){case 0:case 11:case 15:po(9,i,i.return)}var w=i.sibling;if(w!==null){w.return=i.return,se=w;break e}se=i.return}}var f=e.current;for(se=f;se!==null;){l=se;var y=l.child;if(l.subtreeFlags&2064&&y!==null)y.return=l,se=y;else e:for(l=f;se!==null;){if(s=se,s.flags&2048)try{switch(s.tag){case 0:case 11:case 15:il(9,s)}}catch(O){ut(s,s.return,O)}if(s===l){se=null;break e}var L=s.sibling;if(L!==null){L.return=s.return,se=L;break e}se=s.return}}if(We=o,Lr(),Vn&&typeof Vn.onPostCommitFiberRoot=="function")try{Vn.onPostCommitFiberRoot(Ji,e)}catch{}a=!0}return a}finally{Ge=n,vn.transition=t}}return!1}function lp(e,t,n){t=La(n,t),t=Am(e,t,1),e=Sr(e,t,1),t=Gt(),e!==null&&(Do(e,1,t),rn(e,t))}function ut(e,t,n){if(e.tag===3)lp(e,e,n);else for(;t!==null;){if(t.tag===3){lp(t,e,n);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(Cr===null||!Cr.has(a))){e=La(n,e),e=Fm(t,e,1),t=Sr(t,e,1),e=Gt(),t!==null&&(Do(t,1,e),rn(t,e));break}}t=t.return}}function Cy(e,t,n){var a=e.pingCache;a!==null&&a.delete(t),t=Gt(),e.pingedLanes|=e.suspendedLanes&n,St===e&&(Rt&n)===n&&(wt===4||wt===3&&(Rt&130023424)===Rt&&500>ft()-Uc?Vr(e,0):Wc|=n),rn(e,t)}function tf(e,t){t===0&&(e.mode&1?(t=ri,ri<<=1,!(ri&130023424)&&(ri=4194304)):t=1);var n=Gt();e=rr(e,t),e!==null&&(Do(e,t,n),rn(e,n))}function Ny(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),tf(e,n)}function Ty(e,t){var n=0;switch(e.tag){case 13:var a=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:a=e.stateNode;break;default:throw Error(X(314))}a!==null&&a.delete(t),tf(e,n)}var nf;nf=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||tn.current)en=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return en=!1,my(e,t,n);en=!!(e.flags&131072)}else en=!1,at&&t.flags&1048576&&im(t,Bi,t.index);switch(t.lanes=0,t.tag){case 2:var a=t.type;Ci(e,t),e=t.pendingProps;var o=Ma(t,_t.current);Ca(t,n),o=Ic(null,t,a,e,o,n);var i=_c();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,nn(a)?(i=!0,Oi(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Lc(t),o.updater=ol,t.stateNode=o,o._reactInternals=t,Ks(t,a,e,n),t=Qs(null,t,a,!0,i,n)):(t.tag=0,at&&i&&Cc(t),Vt(null,t,o,n),t=t.child),t;case 16:a=t.elementType;e:{switch(Ci(e,t),e=t.pendingProps,o=a._init,a=o(a._payload),t.type=a,o=t.tag=Ey(a),e=Rn(a,e),o){case 0:t=Ys(null,t,a,e,n);break e;case 1:t=Xu(null,t,a,e,n);break e;case 11:t=Yu(null,t,a,e,n);break e;case 14:t=Qu(null,t,a,Rn(a.type,e),n);break e}throw Error(X(306,a,""))}return t;case 0:return a=t.type,o=t.pendingProps,o=t.elementType===a?o:Rn(a,o),Ys(e,t,a,o,n);case 1:return a=t.type,o=t.pendingProps,o=t.elementType===a?o:Rn(a,o),Xu(e,t,a,o,n);case 3:e:{if(jm(t),e===null)throw Error(X(387));a=t.pendingProps,i=t.memoizedState,o=i.element,pm(e,t),Ui(t,a,null,n);var l=t.memoizedState;if(a=l.element,i.isDehydrated)if(i={element:a,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=La(Error(X(423)),t),t=Ju(e,t,a,n,o);break e}else if(a!==o){o=La(Error(X(424)),t),t=Ju(e,t,a,n,o);break e}else for(ln=kr(t.stateNode.containerInfo.firstChild),sn=t,at=!0,Dn=null,n=dm(t,null,a,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Ea(),a===o){t=ar(e,t,n);break e}Vt(e,t,a,n)}t=t.child}return t;case 5:return mm(t),e===null&&$s(t),a=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,l=o.children,js(a,o)?l=null:i!==null&&js(a,i)&&(t.flags|=32),Om(e,t),Vt(e,t,l,n),t.child;case 6:return e===null&&$s(t),null;case 13:return Bm(e,t,n);case 4:return Dc(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=za(t,null,a,n):Vt(e,t,a,n),t.child;case 11:return a=t.type,o=t.pendingProps,o=t.elementType===a?o:Rn(a,o),Yu(e,t,a,o,n);case 7:return Vt(e,t,t.pendingProps,n),t.child;case 8:return Vt(e,t,t.pendingProps.children,n),t.child;case 12:return Vt(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(a=t.type._context,o=t.pendingProps,i=t.memoizedProps,l=o.value,Ze(Hi,a._currentValue),a._currentValue=l,i!==null)if(Fn(i.value,l)){if(i.children===o.children&&!tn.current){t=ar(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var s=i.dependencies;if(s!==null){l=i.child;for(var c=s.firstContext;c!==null;){if(c.context===a){if(i.tag===1){c=er(-1,n&-n),c.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var m=u.pending;m===null?c.next=c:(c.next=m.next,m.next=c),u.pending=c}}i.lanes|=n,c=i.alternate,c!==null&&(c.lanes|=n),Vs(i.return,n,t),s.lanes|=n;break}c=c.next}}else if(i.tag===10)l=i.type===t.type?null:i.child;else if(i.tag===18){if(l=i.return,l===null)throw Error(X(341));l.lanes|=n,s=l.alternate,s!==null&&(s.lanes|=n),Vs(l,n,t),l=i.sibling}else l=i.child;if(l!==null)l.return=i;else for(l=i;l!==null;){if(l===t){l=null;break}if(i=l.sibling,i!==null){i.return=l.return,l=i;break}l=l.return}i=l}Vt(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,a=t.pendingProps.children,Ca(t,n),o=bn(o),a=a(o),t.flags|=1,Vt(e,t,a,n),t.child;case 14:return a=t.type,o=Rn(a,t.pendingProps),o=Rn(a.type,o),Qu(e,t,a,o,n);case 15:return Im(e,t,t.type,t.pendingProps,n);case 17:return a=t.type,o=t.pendingProps,o=t.elementType===a?o:Rn(a,o),Ci(e,t),t.tag=1,nn(a)?(e=!0,Oi(t)):e=!1,Ca(t,n),Pm(t,a,o),Ks(t,a,o,n),Qs(null,t,a,!0,e,n);case 19:return Hm(e,t,n);case 22:return _m(e,t,n)}throw Error(X(156,t.tag))};function rf(e,t){return Rp(e,t)}function My(e,t,n,a){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function yn(e,t,n,a){return new My(e,t,n,a)}function Kc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ey(e){if(typeof e=="function")return Kc(e)?1:0;if(e!=null){if(e=e.$$typeof,e===pc)return 11;if(e===mc)return 14}return 2}function Tr(e,t){var n=e.alternate;return n===null?(n=yn(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Mi(e,t,n,a,o,i){var l=2;if(a=e,typeof e=="function")Kc(e)&&(l=1);else if(typeof e=="string")l=5;else e:switch(e){case ca:return Gr(n.children,o,i,t);case uc:l=8,o|=8;break;case ys:return e=yn(12,n,t,o|2),e.elementType=ys,e.lanes=i,e;case vs:return e=yn(13,n,t,o),e.elementType=vs,e.lanes=i,e;case bs:return e=yn(19,n,t,o),e.elementType=bs,e.lanes=i,e;case mp:return sl(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case up:l=10;break e;case pp:l=9;break e;case pc:l=11;break e;case mc:l=14;break e;case mr:l=16,a=null;break e}throw Error(X(130,e==null?e:typeof e,""))}return t=yn(l,n,t,o),t.elementType=e,t.type=a,t.lanes=i,t}function Gr(e,t,n,a){return e=yn(7,e,a,t),e.lanes=n,e}function sl(e,t,n,a){return e=yn(22,e,a,t),e.elementType=mp,e.lanes=n,e.stateNode={isHidden:!1},e}function fs(e,t,n){return e=yn(6,e,null,t),e.lanes=n,e}function gs(e,t,n){return t=yn(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function zy(e,t,n,a,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Jl(0),this.expirationTimes=Jl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Jl(0),this.identifierPrefix=a,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function qc(e,t,n,a,o,i,l,s,c){return e=new zy(e,t,n,s,c),t===1?(t=1,i===!0&&(t|=8)):t=0,i=yn(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:a,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Lc(i),e}function Ry(e,t,n){var a=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:sa,key:a==null?null:""+a,children:e,containerInfo:t,implementation:n}}function af(e){if(!e)return Er;e=e._reactInternals;e:{if(Zr(e)!==e||e.tag!==1)throw Error(X(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(nn(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(X(171))}if(e.tag===1){var n=e.type;if(nn(n))return am(e,n,t)}return t}function of(e,t,n,a,o,i,l,s,c){return e=qc(n,a,!0,e,o,i,l,s,c),e.context=af(null),n=e.current,a=Gt(),o=Nr(n),i=er(a,o),i.callback=t??null,Sr(n,i,o),e.current.lanes=o,Do(e,o,a),rn(e,a),e}function cl(e,t,n,a){var o=t.current,i=Gt(),l=Nr(o);return n=af(n),t.context===null?t.context=n:t.pendingContext=n,t=er(i,l),t.payload={element:e},a=a===void 0?null:a,a!==null&&(t.callback=a),e=Sr(o,t,l),e!==null&&(An(e,o,l,i),xi(e,o,l)),l}function Xi(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function sp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Yc(e,t){sp(e,t),(e=e.alternate)&&sp(e,t)}function Ly(){return null}var lf=typeof reportError=="function"?reportError:function(e){console.error(e)};function Qc(e){this._internalRoot=e}dl.prototype.render=Qc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(X(409));cl(e,t,null,null)};dl.prototype.unmount=Qc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Xr(function(){cl(null,e,null,null)}),t[nr]=null}};function dl(e){this._internalRoot=e}dl.prototype.unstable_scheduleHydration=function(e){if(e){var t=_p();e={blockedOn:null,target:e,priority:t};for(var n=0;n<gr.length&&t!==0&&t<gr[n].priority;n++);gr.splice(n,0,e),n===0&&jp(e)}};function Xc(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function ul(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function cp(){}function Dy(e,t,n,a,o){if(o){if(typeof a=="function"){var i=a;a=function(){var u=Xi(l);i.call(u)}}var l=of(t,a,e,0,null,!1,!1,"",cp);return e._reactRootContainer=l,e[nr]=l.current,So(e.nodeType===8?e.parentNode:e),Xr(),l}for(;o=e.lastChild;)e.removeChild(o);if(typeof a=="function"){var s=a;a=function(){var u=Xi(c);s.call(u)}}var c=qc(e,0,!1,null,null,!1,!1,"",cp);return e._reactRootContainer=c,e[nr]=c.current,So(e.nodeType===8?e.parentNode:e),Xr(function(){cl(t,c,n,a)}),c}function pl(e,t,n,a,o){var i=n._reactRootContainer;if(i){var l=i;if(typeof o=="function"){var s=o;o=function(){var c=Xi(l);s.call(c)}}cl(t,l,e,o)}else l=Dy(n,t,e,o,a);return Xi(l)}Fp=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=ro(t.pendingLanes);n!==0&&(hc(t,n|1),rn(t,ft()),!(We&6)&&(Da=ft()+500,Lr()))}break;case 13:Xr(function(){var a=rr(e,1);if(a!==null){var o=Gt();An(a,e,1,o)}}),Yc(e,1)}};yc=function(e){if(e.tag===13){var t=rr(e,134217728);if(t!==null){var n=Gt();An(t,e,134217728,n)}Yc(e,134217728)}};Ip=function(e){if(e.tag===13){var t=Nr(e),n=rr(e,t);if(n!==null){var a=Gt();An(n,e,t,a)}Yc(e,t)}};_p=function(){return Ge};Op=function(e,t){var n=Ge;try{return Ge=e,t()}finally{Ge=n}};zs=function(e,t,n){switch(t){case"input":if(ks(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var a=n[t];if(a!==e&&a.form===e.form){var o=nl(a);if(!o)throw Error(X(90));gp(a),ks(a,o)}}}break;case"textarea":yp(e,n);break;case"select":t=n.value,t!=null&&wa(e,!!n.multiple,t,!1)}};Cp=$c;Np=Xr;var Py={usingClientEntryPoint:!1,Events:[Ao,ma,nl,kp,Sp,$c]},Za={findFiberByHostInstance:Wr,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Ay={bundleType:Za.bundleType,version:Za.version,rendererPackageName:Za.rendererPackageName,rendererConfig:Za.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:or.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Ep(e),e===null?null:e.stateNode},findFiberByHostInstance:Za.findFiberByHostInstance||Ly,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(eo=__REACT_DEVTOOLS_GLOBAL_HOOK__,!eo.isDisabled&&eo.supportsFiber))try{Ji=eo.inject(Ay),Vn=eo}catch{}var eo;un.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Py;un.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Xc(t))throw Error(X(200));return Ry(e,t,null,n)};un.createRoot=function(e,t){if(!Xc(e))throw Error(X(299));var n=!1,a="",o=lf;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=qc(e,1,!1,null,null,n,!1,a,o),e[nr]=t.current,So(e.nodeType===8?e.parentNode:e),new Qc(t)};un.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(X(188)):(e=Object.keys(e).join(","),Error(X(268,e)));return e=Ep(t),e=e===null?null:e.stateNode,e};un.flushSync=function(e){return Xr(e)};un.hydrate=function(e,t,n){if(!ul(t))throw Error(X(200));return pl(null,e,t,!0,n)};un.hydrateRoot=function(e,t,n){if(!Xc(e))throw Error(X(405));var a=n!=null&&n.hydratedSources||null,o=!1,i="",l=lf;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(l=n.onRecoverableError)),t=of(t,null,e,1,n??null,o,!1,i,l),e[nr]=t.current,So(e),a)for(e=0;e<a.length;e++)n=a[e],o=n._getVersion,o=o(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new dl(t)};un.render=function(e,t,n){if(!ul(t))throw Error(X(200));return pl(null,e,t,!1,n)};un.unmountComponentAtNode=function(e){if(!ul(e))throw Error(X(40));return e._reactRootContainer?(Xr(function(){pl(null,null,e,!1,function(){e._reactRootContainer=null,e[nr]=null})}),!0):!1};un.unstable_batchedUpdates=$c;un.unstable_renderSubtreeIntoContainer=function(e,t,n,a){if(!ul(n))throw Error(X(200));if(e==null||e._reactInternals===void 0)throw Error(X(38));return pl(e,t,n,!1,a)};un.version="18.3.1-next-f1338f8080-20240426"});var Jc=Yn((X0,df)=>{"use strict";function cf(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(cf)}catch(e){console.error(e)}}cf(),df.exports=sf()});var pf=Yn(Zc=>{"use strict";var uf=Jc();Zc.createRoot=uf.createRoot,Zc.hydrateRoot=uf.hydrateRoot;var J0});var Of=Yn(bl=>{"use strict";var Yy=Ua(),Qy=Symbol.for("react.element"),Xy=Symbol.for("react.fragment"),Jy=Object.prototype.hasOwnProperty,Zy=Yy.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,e0={key:!0,ref:!0,__self:!0,__source:!0};function _f(e,t,n){var a,o={},i=null,l=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(l=t.ref);for(a in t)Jy.call(t,a)&&!e0.hasOwnProperty(a)&&(o[a]=t[a]);if(e&&e.defaultProps)for(a in t=e.defaultProps,t)o[a]===void 0&&(o[a]=t[a]);return{$$typeof:Qy,type:e,key:i,ref:l,props:o,_owner:Zy.current}}bl.Fragment=Xy;bl.jsx=_f;bl.jsxs=_f});var Oo=Yn((mv,jf)=>{"use strict";jf.exports=Of()});var _a=dr(Ua(),1),ng=dr(pf(),1);var p=dr(Ua(),1),n0=dr(Jc(),1);var Fy={"&":"&amp;","<":"&lt;",">":"&gt;"},ed=e=>String(e).replace(/[&<>]/g,t=>Fy[t]),Iy=[[/结论|总结|tl;?dr|summary|takeaway/i,"\u2705","ok"],[/风险|注意|警告|禁止|坑|踩坑|务必/i,"\u26A0\uFE0F","warn"],[/根因|原因|为什么|定位|复现/i,"\u{1F50D}","info"],[/修复|解决|变更|fix/i,"\u{1F527}","ok"],[/验证|测试|实测|回归/i,"\u{1F9EA}","ok"],[/方案|做法|实现|设计|思路|架构/i,"\u{1F6E0}\uFE0F","plan"],[/步骤|流程|操作|用法|命令/i,"\u{1F9E9}","plan"],[/背景|由来|context/i,"\u{1F9ED}","info"],[/目标|需求|要解决/i,"\u{1F3AF}","plan"],[/环境|依赖|前置|安装/i,"\u{1F4E6}","info"],[/收益|效果|性能|指标|数据|统计/i,"\u{1F4C8}","ok"],[/示例|例子|样例|demo/i,"\u{1F4A1}","idea"],[/参考|链接|相关/i,"\u{1F517}","info"]],_y=["\u2728","info"],Oy=[[/风险|注意|警告|禁止|坑|务必/i,"\u26A0\uFE0F","warn"],[/提示|建议|tip|best practice/i,"\u{1F4A1}","idea"],[/结论|总结/i,"\u2705","ok"],[/错误|失败|报错/i,"\u2757","bad"]],jy=e=>{let t=String(e);for(let[n,a,o]of Iy)if(n.test(t))return[a,o];return _y},By=e=>{let t=e.join(" ");for(let[n,a,o]of Oy)if(n.test(t))return[a,o];return["\u{1F4CC}","info"]};function Fa(e){let t=String(e),n=/^([^::\s]{1,8})[::]\s*(.+)$/.exec(t);if(n&&!/[是为有了吗呢着过把被和与或于]/.test(n[1]))return'<span class="md-kv"><span class="md-k">'+ed(n[1])+'</span><span class="md-v">'+Fa(n[2])+"</span></span>";let a=ed(t);return a=a.replace(/^\[([ xX])\](?=\s|$)\s*/,(o,i)=>'<span class="md-task">'+(i.toLowerCase()==="x"?"\u2611":"\u2610")+"</span> "),a=a.replace(/`([^`\n]+)`/g,'<code class="md-code">$1</code>'),a=a.replace(/\*\*([^*]+)\*\*/g,'<strong class="md-b">$1</strong>'),a=a.replace(/(^|[^*])\*([^*\n]+)\*/g,"$1<em>$2</em>"),a=a.replace(/\[([^\]]+)\]\(([^)\s]+)\)/g,(o,i,l)=>/^(https?:|\/|#)/i.test(l)?'<a class="md-link" href="'+l+'" target="_blank" rel="noopener noreferrer">'+i+"</a>":i),a}function ml(e){let t=String(e||"").replace(/\r\n?/g,`
9
9
  `),n=/^---\n([\s\S]*?)\n---\n?/.exec(t);if(!n)return{meta:[],body:t};let a=[];for(let o of n[1].split(`
10
- `)){let i=o.indexOf(":");if(i<=0)continue;let l=o.slice(0,i).trim(),s=o.slice(i+1).trim().replace(/^["']|["']$/g,"");l&&a.push([l,s])}return{meta:a,body:t.slice(n[0].length)}}function pf(e){let t=String(e||"").trim().replace(/^\[|\]$/g,"");return t?t.split(",").map(n=>n.trim().replace(/^["']|["']$/g,"")).filter(Boolean):[]}function _o(e){let t=ml(String(e||"").replace(/\r\n?/g,`
11
- `)).body;if(!t.trim())return"";let n=[],a=t.replace(/```([\w+#.-]*)\n([\s\S]*?)```/g,(k,L,R)=>(n.push('<pre class="md-pre"><code>'+Zc(R.replace(/\n$/,""))+"</code></pre>"),"\0F"+(n.length-1)+"\0")),o=[],i=0,l=[],s=null,c=null,u=()=>{l.length&&(o.push('<p class="md-p">'+l.join("<br/>")+"</p>"),l=[])},p=()=>{if(!s)return;let k=s.type;o.push("<"+k+' class="md-'+k+'">'+s.items.map(L=>"<li>"+L+"</li>").join("")+"</"+k+">"),s=null},h=()=>{if(!c)return;let[k,L]=jy(c);o.push('<div class="md-callout md-c-'+L+'"><span class="md-ico">'+k+"</span>"+c.join("<br/>")+"</div>"),c=null},g=()=>{u(),p(),h()};for(let k of a.split(`
12
- `)){let L=k.trim();if(!L){g();continue}let R=/^\u0000F(\d+)\u0000$/.exec(L);if(R){g(),o.push(n[Number(R[1])]);continue}let A;if(A=/^(#{1,6})\s+(.+)$/.exec(L)){g();let[v,f]=Oy(A[2]);i++,o.push('<div id="md-h-'+i+'" class="md-h md-h-'+(A[1].length<=2?"h1":"h2")+" md-c-"+f+'"><span class="md-ico">'+v+'</span><span class="md-hx">'+Ia(A[2])+"</span></div>");continue}if(/^(-{3,}|\*{3,}|_{3,})$/.test(L)){g(),o.push('<hr class="md-hr"/>');continue}if(A=/^>\s?(.*)$/.exec(L)){u(),p(),c=c||[],c.push(Ia(A[1]));continue}if(A=/^[-*+]\s+(.+)$/.exec(L)){u(),h(),(!s||s.type!=="ul")&&(p(),s={type:"ul",items:[]}),s.items.push(Ia(A[1]));continue}if(A=/^\d+[.)]\s+(.+)$/.exec(L)){u(),h(),(!s||s.type!=="ol")&&(p(),s={type:"ol",items:[]}),s.items.push(Ia(A[1]));continue}p(),h(),l.push(Ia(L))}return g(),o.join(`
13
- `)}var fl="data:image/png;base64,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";function mf(e,t,n=48){if(!t||!e)return"";let a=String(e),o=a.toLowerCase(),i=String(t).toLowerCase();if(!i)return"";let l=o.indexOf(i);if(l<0)return"";let s=Math.max(0,l-n),c=Math.min(a.length,l+i.length+n),u=a.slice(s,c).replace(/\s+/g," ").trim();return(s>0?"\u2026":"")+u+(c<a.length?"\u2026":"")}function ed(e,t){let n=String(t||"").trim().toLowerCase();if(!n)return!0;let a=e||{},o=Array.isArray(a.tags)?a.tags.map(l=>String(l)):[],i=[a.title,a.summary,a.reason,a.path,a.submittedBy,...o].map(l=>String(l||"")).join(`
14
- `).toLowerCase();return n.split(/\s+/).filter(Boolean).every(l=>i.includes(l))}function ff({hasVersion:e=!1,hostVersion:t="",onDisk:n="",residentServed:a="",residentPresent:o=!1,residentManaged:i=null,residentManagedKnown:l=null,residentManagedBy:s="",replaceBlocked:c=null}={}){let u=String(n||""),p=String(t||""),h=String(a||""),g=!!(e&&o&&!h),k=!!(u&&h&&h!==u),L=i===!1&&l===!1,R=s==="host",A=i===!1&&!L&&!R,v=!!(p&&u&&p!==u),f=!!(c&&c.fresh),y=k||g||A||L,P=null;v?P="hostProcessStale":g?P="residentDown":f?P="residentReplaceBlocked":L?P="residentLockUnknown":A&&(P="residentUnmanaged");let F;return g?F="restartStart":k?F="restartFixes":A||L?F="restartRepair":v?F="restartHostOnly":F="restartAnyway",{showButton:!!e,emphasis:y,warn:P,hint:F,hostStale:v,residentDown:g,residentStale:k,residentUnmanaged:A,residentLockUnknown:L,residentHostManaged:R,needsRestart:y}}var Hy=/^\d{4}-\d{2}-\d{2}$/,gl=e=>String(e).padStart(2,"0");function Oo(e){if(e==null||e==="")return null;if(e instanceof Date)return Number.isNaN(e.getTime())?null:e;let t=String(e).trim();if(!t)return null;if(Hy.test(t)){let[a,o,i]=t.split("-").map(Number),l=new Date(a,o-1,i);return Number.isNaN(l.getTime())?null:l}let n=new Date(t);return Number.isNaN(n.getTime())?null:n}var gf=e=>`${e.getFullYear()}-${gl(e.getMonth()+1)}-${gl(e.getDate())}`,hf=e=>`${gl(e.getHours())}:${gl(e.getMinutes())}`;function hl(e){let t=Oo(e);return t?gf(t):""}function td(e){let t=Oo(e);return t?gf(t)+" "+hf(t):""}function yf(e){let t=Oo(e);return t?hf(t):""}function vf(e={}){let t=e.repo||"EternalNight996/memory-eternal",n=String(e.title||"[Bug] ").slice(0,120),a=Array.isArray(e.labels)?e.labels:["bug"],o=Number(e.maxLength)>500?Number(e.maxLength):7e3,i=c=>{let u=new URLSearchParams;return u.set("title",n),u.set("body",c),a.length&&u.set("labels",a.join(",")),"https://github.com/"+t+"/issues/new?"+u.toString()},l=String(e.body||""),s=i(l);if(s.length>o){let c=`
10
+ `)){let i=o.indexOf(":");if(i<=0)continue;let l=o.slice(0,i).trim(),s=o.slice(i+1).trim().replace(/^["']|["']$/g,"");l&&a.push([l,s])}return{meta:a,body:t.slice(n[0].length)}}function mf(e){let t=String(e||"").trim().replace(/^\[|\]$/g,"");return t?t.split(",").map(n=>n.trim().replace(/^["']|["']$/g,"")).filter(Boolean):[]}function Io(e){let t=ml(String(e||"").replace(/\r\n?/g,`
11
+ `)).body;if(!t.trim())return"";let n=[],a=t.replace(/```([\w+#.-]*)\n([\s\S]*?)```/g,(k,E,T)=>(n.push('<pre class="md-pre"><code>'+ed(T.replace(/\n$/,""))+"</code></pre>"),"\0F"+(n.length-1)+"\0")),o=[],i=0,l=[],s=null,c=null,u=()=>{l.length&&(o.push('<p class="md-p">'+l.join("<br/>")+"</p>"),l=[])},m=()=>{if(!s)return;let k=s.type;o.push("<"+k+' class="md-'+k+'">'+s.items.map(E=>"<li>"+E+"</li>").join("")+"</"+k+">"),s=null},h=()=>{if(!c)return;let[k,E]=By(c);o.push('<div class="md-callout md-c-'+E+'"><span class="md-ico">'+k+"</span>"+c.join("<br/>")+"</div>"),c=null},g=()=>{u(),m(),h()};for(let k of a.split(`
12
+ `)){let E=k.trim();if(!E){g();continue}let T=/^\u0000F(\d+)\u0000$/.exec(E);if(T){g(),o.push(n[Number(T[1])]);continue}let I;if(I=/^(#{1,6})\s+(.+)$/.exec(E)){g();let[w,f]=jy(I[2]);i++,o.push('<div id="md-h-'+i+'" class="md-h md-h-'+(I[1].length<=2?"h1":"h2")+" md-c-"+f+'"><span class="md-ico">'+w+'</span><span class="md-hx">'+Fa(I[2])+"</span></div>");continue}if(/^(-{3,}|\*{3,}|_{3,})$/.test(E)){g(),o.push('<hr class="md-hr"/>');continue}if(I=/^>\s?(.*)$/.exec(E)){u(),m(),c=c||[],c.push(Fa(I[1]));continue}if(I=/^[-*+]\s+(.+)$/.exec(E)){u(),h(),(!s||s.type!=="ul")&&(m(),s={type:"ul",items:[]}),s.items.push(Fa(I[1]));continue}if(I=/^\d+[.)]\s+(.+)$/.exec(E)){u(),h(),(!s||s.type!=="ol")&&(m(),s={type:"ol",items:[]}),s.items.push(Fa(I[1]));continue}m(),h(),l.push(Fa(E))}return g(),o.join(`
13
+ `)}var fl="data:image/png;base64,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";function ff(e,t,n=48){if(!t||!e)return"";let a=String(e),o=a.toLowerCase(),i=String(t).toLowerCase();if(!i)return"";let l=o.indexOf(i);if(l<0)return"";let s=Math.max(0,l-n),c=Math.min(a.length,l+i.length+n),u=a.slice(s,c).replace(/\s+/g," ").trim();return(s>0?"\u2026":"")+u+(c<a.length?"\u2026":"")}function td(e,t){let n=String(t||"").trim().toLowerCase();if(!n)return!0;let a=e||{},o=Array.isArray(a.tags)?a.tags.map(l=>String(l)):[],i=[a.title,a.summary,a.reason,a.path,a.submittedBy,...o].map(l=>String(l||"")).join(`
14
+ `).toLowerCase();return n.split(/\s+/).filter(Boolean).every(l=>i.includes(l))}function gf({hasVersion:e=!1,hostVersion:t="",onDisk:n="",residentServed:a="",residentPresent:o=!1,residentManaged:i=null,residentManagedKnown:l=null,residentManagedBy:s="",replaceBlocked:c=null}={}){let u=String(n||""),m=String(t||""),h=String(a||""),g=!!(e&&o&&!h),k=!!(u&&h&&h!==u),E=i===!1&&l===!1,T=s==="host",I=i===!1&&!E&&!T,w=!!(m&&u&&m!==u),f=!!(c&&c.fresh),y=k||g||I||E,L=null;w?L="hostProcessStale":g?L="residentDown":f?L="residentReplaceBlocked":E?L="residentLockUnknown":I&&(L="residentUnmanaged");let O;return g?O="restartStart":k?O="restartFixes":I||E?O="restartRepair":w?O="restartHostOnly":O="restartAnyway",{showButton:!!e,emphasis:y,warn:L,hint:O,hostStale:w,residentDown:g,residentStale:k,residentUnmanaged:I,residentLockUnknown:E,residentHostManaged:T,needsRestart:y}}var Wy=/^\d{4}-\d{2}-\d{2}$/,gl=e=>String(e).padStart(2,"0");function _o(e){if(e==null||e==="")return null;if(e instanceof Date)return Number.isNaN(e.getTime())?null:e;let t=String(e).trim();if(!t)return null;if(Wy.test(t)){let[a,o,i]=t.split("-").map(Number),l=new Date(a,o-1,i);return Number.isNaN(l.getTime())?null:l}let n=new Date(t);return Number.isNaN(n.getTime())?null:n}var hf=e=>`${e.getFullYear()}-${gl(e.getMonth()+1)}-${gl(e.getDate())}`,yf=e=>`${gl(e.getHours())}:${gl(e.getMinutes())}`;function hl(e){let t=_o(e);return t?hf(t):""}function nd(e){let t=_o(e);return t?hf(t)+" "+yf(t):""}function vf(e){let t=_o(e);return t?yf(t):""}function bf(e={}){let t=e.repo||"EternalNight996/memory-eternal",n=String(e.title||"[Bug] ").slice(0,120),a=Array.isArray(e.labels)?e.labels:["bug"],o=Number(e.maxLength)>500?Number(e.maxLength):7e3,i=c=>{let u=new URLSearchParams;return u.set("title",n),u.set("body",c),a.length&&u.set("labels",a.join(",")),"https://github.com/"+t+"/issues/new?"+u.toString()},l=String(e.body||""),s=i(l);if(s.length>o){let c=`
15
15
 
16
- > \u5185\u5BB9\u8FC7\u957F\u5DF2\u622A\u65AD\uFF1A\u5B8C\u6574\u8BCA\u65AD\u8BF7\u5728\u63D2\u4EF6\u91CC\u70B9\u300C\u590D\u5236\u8BCA\u65AD\u4FE1\u606F\u300D\uFF0C\u518D\u8865\u5230 issue \u8BC4\u8BBA\u91CC\u3002`,u=p=>i(l.slice(0,p)+c);if(u(0).length>o)l=c;else{let p=0,h=l.length;for(;p<h;){let g=Math.ceil((p+h)/2);u(g).length<=o?p=g:h=g-1}l=l.slice(0,p)+c}s=i(l)}return s}function bf(e={}){return["## \u73B0\u8C61",String(e.description||"").trim()||"\uFF08\u8BF7\u63CF\u8FF0\u4F60\u9047\u5230\u7684\u95EE\u9898\uFF09","","## \u590D\u73B0\u6B65\u9AA4","1. ","2. ","","## \u671F\u671B\u884C\u4E3A","","## \u5B9E\u9645\u884C\u4E3A","","## \u73AF\u5883","- \u63D2\u4EF6\u7248\u672C: "+(e.version||"\uFF08\u89C1\u8BCA\u65AD\u4FE1\u606F\uFF09"),"",e.diagnostics||"","","---","> \u7531 memory-eternal \u63D2\u4EF6\u5185\u300C\u53CD\u9988\u5F02\u5E38\u300D\u751F\u6210\uFF08\u8BCA\u65AD\u4FE1\u606F\u5DF2\u81EA\u52A8\u8131\u654F\uFF1Ahome \u76EE\u5F55\u4E0E\u5404\u7C7B key/token \u5DF2\u66FF\u6362\uFF09\u3002"].join(`
17
- `)}var nd="https://github.com/EternalNight996/memory-eternal",Wy=["\u6211\u5728\u4F7F\u7528 memory-eternal\uFF08DeepSeek Harness \u7684\u8BB0\u5FC6\u63D2\u4EF6\uFF09\u65F6\u9047\u5230\u4E86\u95EE\u9898\uFF0C\u8BF7\u4F60\u5E2E\u6211\u628A\u8FD9\u4E2A\u95EE\u9898\u63D0\u4EA4\u5230 GitHub\u3002","","\u4ED3\u5E93\uFF1A"+nd,"","\u8BF7\u6309\u8FD9\u4E2A\u6D41\u7A0B\u505A\uFF1A","","1. \u5148\u8DD1 `gh issue list --repo EternalNight996/memory-eternal --state open --limit 50`\uFF0C\u770B\u662F\u5426\u5DF2\u6709\u76F8\u540C\u95EE\u9898\uFF1A"," - \u5DF2\u6709 \u2192 \u7528 `gh issue comment <\u7F16\u53F7> --body-file <\u6587\u4EF6>` \u8865\u5145\u73B0\u8C61\uFF0C\u4E0D\u8981\u91CD\u590D\u5F00\u65B0 issue\uFF1B"," - \u6CA1\u6709 \u2192 \u7EE7\u7EED\u7B2C 2 \u6B65\u3002",'2. \u628A\u6B63\u6587\u5199\u6210\u6587\u4EF6\uFF0C\u7136\u540E `gh issue create --repo EternalNight996/memory-eternal --title "[Bug] <\u4E00\u53E5\u8BDD\u6982\u62EC>" --body-file <\u6587\u4EF6>`\uFF1B\u6B63\u6587\u7528\u8FD9\u4E2A\u7ED3\u6784\uFF1A'," \u73B0\u8C61 / \u590D\u73B0\u6B65\u9AA4 / \u671F\u671B\u884C\u4E3A / \u5B9E\u9645\u884C\u4E3A / \u73AF\u5883\uFF08\u63D2\u4EF6\u7248\u672C / DSH \u7248\u672C / \u64CD\u4F5C\u7CFB\u7EDF / Node\uFF09/ \u8BCA\u65AD\u4FE1\u606F\u3002","3. \u5982\u679C `gh` \u6CA1\u767B\u5F55\u6216\u4E0D\u53EF\u7528\uFF0C\u4E0D\u8981\u5C1D\u8BD5\u63D0\u4EA4\uFF0C\u6539\u4E3A\u8F93\u51FA\u4E00\u6761\u300C\u6807\u9898\u4E0E\u6B63\u6587\u90FD\u5DF2\u9884\u586B\u300D\u7684 GitHub \u65B0\u5EFA issue \u94FE\u63A5\u7ED9\u6211\uFF0C\u6211\u81EA\u5DF1\u70B9\u63D0\u4EA4\u3002","4. \u63D0\u4EA4\u6210\u529F\u540E\uFF0C\u628A issue \u94FE\u63A5\u53D1\u7ED9\u6211\u3002","","\u6CE8\u610F\uFF1A\u6211\u7684\u95EE\u9898\u63CF\u8FF0\u8BF7\u539F\u6837\u7167\u5F55\uFF0C\u4E0D\u8981\u66FF\u6211\u7F8E\u5316\u6216\u7701\u7565\u7EC6\u8282\uFF1B\u8BCA\u65AD\u4FE1\u606F\u539F\u6837\u653E\u8FDB\u300C\u8BCA\u65AD\u4FE1\u606F\u300D\u4E00\u8282\u3002","","\u6211\u7684\u95EE\u9898\u63CF\u8FF0\uFF1A","<\u5728\u8FD9\u91CC\u5199\u4F60\u7684\u95EE\u9898>","","\u8BCA\u65AD\u4FE1\u606F\uFF1A","<\u628A\u300C\u53CD\u9988\u5F02\u5E38\u300D\u5F39\u7A97\u91CC\u590D\u5236\u7684\u8BCA\u65AD\u4FE1\u606F\u7C98\u5230\u8FD9\u91CC>"].join(`
18
- `),Uy=["I hit a problem while using memory-eternal (a DeepSeek Harness memory plugin). Please file it on GitHub for me.","","Repo: "+nd,"","Workflow:","","1. Run `gh issue list --repo EternalNight996/memory-eternal --state open --limit 50` first: if a matching issue exists, add a comment with `gh issue comment <n> --body-file <file>` instead of opening a duplicate.",'2. Otherwise create it with `gh issue create --repo EternalNight996/memory-eternal --title "[Bug] <one-line summary>" --body-file <file>`, using sections: Symptoms / Steps to reproduce / Expected / Actual / Environment (plugin, DSH, OS, Node) / Diagnostics.',"3. If `gh` is not authenticated or unavailable, do NOT try to submit: output a GitHub new-issue link with the title and body pre-filled instead, and I will click submit myself.","4. Report the resulting issue URL back to me.","","Keep my description verbatim - do not rewrite or summarise it. Put the diagnostics under the Diagnostics section as-is.","","My description:","<write your problem here>","","Diagnostics:","<paste the diagnostics copied from the in-app Report-a-bug dialog>"].join(`
19
- `);function wf(e={}){let t=e.lang==="en"?"en":"zh",n=t==="en"?Uy:Wy,a=e.repo||"EternalNight996/memory-eternal";return n=n.split(nd).join("https://github.com/"+a),e.description&&(n=n.replace(t==="en"?"<write your problem here>":"<\u5728\u8FD9\u91CC\u5199\u4F60\u7684\u95EE\u9898>",String(e.description).trim())),e.diagnostics&&(n=n.replace(t==="en"?"<paste the diagnostics copied from the in-app Report-a-bug dialog>":"<\u628A\u300C\u53CD\u9988\u5F02\u5E38\u300D\u5F39\u7A97\u91CC\u590D\u5236\u7684\u8BCA\u65AD\u4FE1\u606F\u7C98\u5230\u8FD9\u91CC>",String(e.diagnostics).trim())),n}function xf({panX:e=0,panY:t=0,zoom:n=1,w:a=0,h:o=0,margin:i=60}={}){let l=n||1;return{x0:(0-e)/l-i,y0:(0-t)/l-i,x1:(a-e)/l+i,y1:(o-t)/l+i}}function yl(e,t,n,a){return a?e+n>=a.x0&&e-n<=a.x1&&t+n>=a.y0&&t-n<=a.y1:!0}function kf(e,t=0){let n=Number(e)||0,a=Number(t)||0;if(n<=60)return 1/0;let o=n<=600?64:48;return a>=3?Math.min(o,32):o}function Sf(e,t={}){let n=Number.isFinite(t.limit)?t.limit:1/0,a=new Set,o=u=>{u&&a.size<n&&a.add(u)};if(o(t.focusId),o(t.hoverId),t.searchHits)for(let u of t.searchHits){if(a.size>=n)break;a.add(u)}let i=t.degree||{},l=u=>Number(i[u])||0,s=new Set;for(let u of Array.isArray(e)?e:[])u&&u.id&&s.add(u.id);let c=Array.isArray(t.order)&&t.order.length?t.order:(Array.isArray(e)?e:[]).slice().sort((u,p)=>l(p.id)-l(u.id)).map(u=>u.id);for(let u of c){if(a.size>=n)break;u&&s.has(u)&&!a.has(u)&&a.add(u)}return a}function Cf(e){let t=Math.floor(Number(e)||0);return t<=0?0:t>1200?48:t>700?60:t>300?110:200}function vl(e){let t=Math.floor(Number(e)||0),n=t>1e3?3e3:t>100?2e3:t>50?1200:800,a=t>100?.002:.005,o=t>1e3?.012:t>100?.005:.01,i=t>1e3?6:t>200?12:24;return{repulsion:n,attraction:a,centerGravity:o,velCap:i,theta:.8}}var $y=.05,od=30;function rd(e,t,n,a){return(n>=e?1:0)+(a>=t?2:0)}var ad=class e{constructor(t){let n=Math.max(16,Math.floor(Number(t)||0)*6+16);this.capacity=Math.max(0,Math.floor(Number(t)||0)),this.cap=n,this.cx=new Float64Array(n),this.cy=new Float64Array(n),this.half=new Float64Array(n),this.mass=new Float64Array(n),this.mx=new Float64Array(n),this.my=new Float64Array(n),this.child=new Int32Array(n*4),this.point=new Int32Array(n),this.fx=new Float64Array(this.capacity),this.fy=new Float64Array(this.capacity),this.count=0,this.lastVisits=0}ensureCapacity(t){if(t<=this.capacity)return;let n=new e(t);this.capacity=n.capacity,this.cap=n.cap,this.cx=n.cx,this.cy=n.cy,this.half=n.half,this.mass=n.mass,this.mx=n.mx,this.my=n.my,this.child=n.child,this.point=n.point,this.fx=n.fx,this.fy=n.fy,this.count=0}newNode(t,n,a){if(this.count>=this.cap)return-1;let o=this.count++;this.cx[o]=t,this.cy[o]=n,this.half[o]=a,this.mass[o]=0,this.mx[o]=0,this.my[o]=0,this.point[o]=-1;let i=o*4;return this.child[i]=-1,this.child[i+1]=-1,this.child[i+2]=-1,this.child[i+3]=-1,o}insert(t,n,a){let o=t[a];if(!o)return;let i=Number(o.x)||0,l=Number(o.y)||0;this.mass[n]+=1,this.mx[n]+=i,this.my[n]+=l;let s=n*4;if(this.child[s]===-1&&this.child[s+1]===-1&&this.child[s+2]===-1&&this.child[s+3]===-1){if(this.point[n]===-1){this.point[n]=a;return}let c=this.half[n]/2;if(c<.001||this.count+4>this.cap){this.point[n]=-2;return}let u=this.cx[n],p=this.cy[n];for(let g=0;g<4;g+=1)this.child[s+g]=this.newNode(u+(g&1?c:-c),p+(g&2?c:-c),c);let h=this.point[n];if(this.point[n]=-2,h>=0){let g=t[h];this.insert(t,this.child[s+rd(u,p,Number(g.x)||0,Number(g.y)||0)],h)}this.insert(t,this.child[s+rd(u,p,i,l)],a);return}this.insert(t,this.child[s+rd(this.cx[n],this.cy[n],i,l)],a)}build(t){let n=t.length;if(this.count=0,this.lastVisits=0,n===0)return-1;let a=1/0,o=-1/0,i=1/0,l=-1/0;for(let h=0;h<n;h+=1){let g=Number(t[h].x)||0,k=Number(t[h].y)||0;g<a&&(a=g),g>o&&(o=g),k<i&&(i=k),k>l&&(l=k)}let s=(a+o)/2,c=(i+l)/2,u=Math.max(1,Math.max(o-a,l-i)/2)*1.001,p=this.newNode(s,c,u);if(p<0)return-1;for(let h=0;h<n;h+=1)this.insert(t,p,h);return p}accumulate(t,n,a,o,i,l){let s=this.mass[t];if(s<=0)return;let c=this.mx[t]/s,u=this.my[t]/s,p=a-c,h=o-u,g=p*p+h*h;if(g<1e-9)return;let k=this.child[t*4]===-1;if(k&&this.point[t]===n)return;let L=Math.sqrt(g);if(this.lastVisits+=1,k||2*this.half[t]/L<l){let A=i*s/g;this.fx[n]+=p/L*A,this.fy[n]+=h/L*A;return}let R=t*4;for(let A=0;A<4;A+=1){let v=this.child[R+A];v>=0&&this.accumulate(v,n,a,o,i,l)}}compute(t,n){let a=t.length;this.ensureCapacity(a);let o=this.fx,i=this.fy;o.fill(0),i.fill(0),this.lastVisits=0;let l=this.build(t);if(l<0)return{fx:o,fy:i,visits:0};let s=n.repulsion,c=n.theta===void 0?.8:n.theta,u=n.skipIndex===void 0?-1:n.skipIndex;for(let p=0;p<a;p+=1){if(p===u)continue;let h=t[p];this.accumulate(l,p,Number(h.x)||0,Number(h.y)||0,s,c)}return{fx:o,fy:i,visits:this.lastVisits}}};function Nf(e,t={}){let n=e.nodes,a=n.length,o=t.params||vl(a),i=t.theta===void 0?o.theta:t.theta;e.tickCount=(e.tickCount||0)+1;let l=t.settleTicks===void 0?460:t.settleTicks,s=t.alphaDecay===void 0?.08:t.alphaDecay;e.alpha===void 0&&(e.alpha=1),e.tickCount<=l?e.alpha=1:e.alpha+=((e.dragNode?.35:0)-e.alpha)*s,e.alpha<1e-4&&(e.alpha=0);let c=Math.max(0,Math.min(1,Number(t.alphaFloor)||0));e.alpha<c&&(e.alpha=c);let u=t.alpha===void 0?e.alpha:t.alpha,p=Math.min(.4,e.tickCount/1500),h=t.damping===void 0?.9-p:Math.max(.1,Math.min(.95,Number(t.damping)||.5)),g=e.dragNode?n.indexOf(e.dragNode):-1;(!e.forceEngine||e.forceEngine.capacity<a)&&(e.forceEngine=new ad(a));let k=e.forceEngine.compute(n,{repulsion:o.repulsion*u,theta:i,skipIndex:g}),L=k.fx,R=k.fy;for(let z=0;z<a;z+=1){if(z===g)continue;let I=n[z],_=L[z],j=R[z];if(Number.isFinite(_)||(_=0),Number.isFinite(j)||(j=0),e.clustered&&e.typeCenters&&e.typeCenters[I.type]){let he=e.typeCenters[I.type];_+=(he.x-I.x)*.006*u,j+=(he.y-I.y)*.006*u}else _-=I.x*o.centerGravity*u,j-=I.y*o.centerGravity*u;let H=((Number(I.vx)||0)+_)*h,se=((Number(I.vy)||0)+j)*h;H>o.velCap?H=o.velCap:H<-o.velCap&&(H=-o.velCap),se>o.velCap?se=o.velCap:se<-o.velCap&&(se=-o.velCap),I.vx=H,I.vy=se}let A=e.edges||[],v=e.edgePairs||null,f=e.nodeById||null,y=v?v.length/2:A.length;for(let z=0;z<y;z+=1){let I,_;if(v)I=n[v[z*2]],_=n[v[z*2+1]];else{let Y=A[z];I=f?f.get(Y.sourceNodeId):null,_=f?f.get(Y.targetNodeId):null}if(!I||!_)continue;let j=_.x-I.x,H=_.y-I.y,se=Math.sqrt(j*j+H*H)||1,he=(se-100)*o.attraction*u,ce=j/se*he,Ge=H/se*he;e.dragNode!==I&&(I.vx+=ce,I.vy+=Ge),e.dragNode!==_&&(_.vx-=ce,_.vy-=Ge)}let P=0;for(let z=0;z<a;z+=1){let I=n[z];z!==g&&(I.x+=I.vx,I.y+=I.vy,P+=I.vx*I.vx+I.vy*I.vy)}let F=a?Math.sqrt(P/a):0;return F<$y&&e.tickCount>60&&!e.dragNode?e.quietTicks=(e.quietTicks|0)+1:e.quietTicks=0,{rms:F,tickCount:e.tickCount,quietTicks:e.quietTicks,params:o,visits:k.visits,alpha:u}}function ea(e){return(Array.isArray(e)?e:[]).filter(Boolean).join("/")}function Tf(e){return String(e??"").split("/").filter(Boolean)}function Mf(e,t,n={}){let a=ea(t);return`${e}/graph/level?path=${encodeURIComponent(a)}${n.all?"&all=1":""}`}function Vy(e){let t=Math.max(0,Math.floor(Number(e)||0)),n=24+38*Math.log10(Math.max(1,t));return Math.max(34,Math.min(240,Math.round(n)))}function Gy({kind:e="other",degree:t=0,maxDegree:n=1}={}){let a=Math.max(0,Number(t)||0),o=Math.max(1,Number(n)||1);return 9+Math.min(10,a/o*8)+(e==="core"?3:0)}function Ef(e,t={}){let n=Math.max(0,Math.floor(Number(e)||0));if(n<1e4)return String(n);let a=t.unit||"\u4E07",o=t.locale||"zh-CN";if(t.intl!==!1)try{return new Intl.NumberFormat(o,{notation:"compact",maximumFractionDigits:1}).format(n)}catch{}return a==="\u4E07"?Math.round(n/1e3)/10+"\u4E07":n>=1e6?Math.round(n/1e5)/10+"M":Math.round(n/100)/10+"K"}function zf(e,t={}){let n=e||{},a=n.type==="planet",o=n.kind||"other",i=String(n.label||n.title||n.name||n.id||"");return{id:String(n.id||""),title:i,name:i,type:o,planet:a,count:a?Math.max(0,Math.floor(Number(n.count)||0)):0,tags:Array.isArray(n.tags)?n.tags.slice():[],updated:n.updated||"",r:a?Vy(n.count):Gy({kind:o,degree:t.degree,maxDegree:t.maxDegree})}}function Rf(e){return{...e||{},repulsion:1600,centerGravity:.004}}function Lf(e,t={}){let n=Math.max(1,Number(t.timeoutMs)||1600),a=Math.max(0,Number(t.elapsedMs)||0),o=String(e&&e.name||""),i=String(e&&e.message||e||""),s=o==="AbortError"||/abort/i.test(i)||a>=n;return{timeout:s,message:s?`\u5C42\u7EA7\u52A0\u8F7D\u8D85\u65F6\uFF08${n}ms\uFF09`:i||"\u672A\u77E5\u9519\u8BEF"}}function Df(e=96){let t=Math.max(1,Math.floor(Number(e)||96)),n=new Map;return{get size(){return n.size},has(a){return n.has(a)},get(a){if(!n.has(a))return null;let o=n.get(a);return n.delete(a),n.set(a,o),o},set(a,o){for(n.has(a)&&n.delete(a),n.set(a,o);n.size>t;)n.delete(n.keys().next().value);return o},clear(){n.clear()},keys(){return[...n.keys()]}}}function Pf(e={}){let t=e.raf||(c=>requestAnimationFrame(c)),n=e.cancelRaf||(c=>cancelAnimationFrame(c)),a=e.setTimeout||((c,u)=>setTimeout(c,u)),o=e.clearTimeout||(c=>clearTimeout(c)),i=new Set,l=new Set,s=[];return{raf(c){let u=t(()=>{i.delete(u),c()});return i.add(u),u},cancelRaf(c){c!=null&&(i.delete(c),n(c))},setTimeout(c,u){let p=a(()=>{l.delete(p),c()},u);return l.add(p),p},clearTimeout(c){c!=null&&(l.delete(c),o(c))},listen(c,u,p,h){c.addEventListener(u,p,h),s.push({target:c,type:u,fn:p,opts:h})},snapshot(){return{rafs:i.size,timers:l.size,listeners:s.length}},releaseAll(){for(let c of[...i]){i.delete(c);try{n(c)}catch{}}for(let c of[...l]){l.delete(c);try{o(c)}catch{}}for(let c of s.splice(0))try{c.target.removeEventListener(c.type,c.fn,c.opts)}catch{}}}}function Af(e,t={}){let n=Math.max(1,Number(t.maxItems)||1e3),a=Math.max(1,Number(t.payloadLimit)||1048576),o=e&&e.level&&Array.isArray(e.level.items)?e.level.items.length:0,i=Number(e&&e.stats&&e.stats.bytes)||0,l=[];return o>n&&l.push(`\u5355\u5C42\u56FE\u5143 ${o} > ${n}`),i>a&&l.push(`\u5C42 payload ${i} > ${a}`),{ok:l.length===0,items:o,bytes:i,problems:l}}function Ky(e,t){if(e===t)return!0;if(e===null||t===null||e===void 0||t===void 0||typeof e!="object"&&typeof t!="object")return e===t;try{return JSON.stringify(e)===JSON.stringify(t)}catch{return!1}}function Ff(e,t){let n={...e||{}},a={};for(let[o,i]of Object.entries(t||{}))Ky(e?e[o]:void 0,i)||(n[o]=i,a[o]=i);return{values:n,overlay:a}}var r=dr(jo(),1);var ee="/memory-eternal/api",wl=["\u843D\u9B44\u8C37\u4E2D\u5BD2\u98CE\u5439\uFF0C\u6625\u79CB\u8749\u9E23\u5C11\u5E74\u5F52\u3002\u8361\u9B42\u5C71\u5904\u77F3\u4EBA\u6CEA\uFF0C\u5B9A\u4ED9\u6E38\u8D70\u9B54\u5411\u5317\u3002\u9006\u6D41\u6CB3\u4E0A\u4E07\u4ED9\u9000\uFF0C\u7231\u60C5\u4E0D\u654C\u575A\u6301\u6CEA\u3002\u5BBF\u547D\u5929\u6210\u547D\u4E2D\u8D25\uFF0C\u4ED9\u5C0A\u6094\u800C\u6211\u4E0D\u6094\u3002","\u65E9\u5C81\u5DF2\u77E5\u4E16\u4E8B\u8270\uFF0C\u4ECD\u8BB8\u98DE\u9E3F\u8361\u4E91\u95F4\u3002","\u7537\u513F\u4E0D\u5C55\u51CC\u4E91\u5FD7\uFF0C\u7A7A\u8D1F\u5929\u751F\u516B\u5C3A\u8EAF\u3002","\u5343\u53E4\u5730\u4ED9\u968F\u98CE\u901D\uFF0C\u6614\u65E5\u4E09\u738B\u5F52\u9752\u51A2\u3002\u9633\u83BD\u608D\u9668\u8C01\u65E0\u8D25\uFF1F\u5377\u571F\u91CD\u6765\u518D\u79F0\u738B\u3002","\u5929\u6CB3\u4E00\u6302\u6DD8\u9F99\u9C7C\uFF0C\u9006\u5929\u72EC\u884C\u987E\u516B\u8352\u3002\u4ECA\u671D\u6682\u4E14\u5C55\u7FFC\u53BB\uFF0C\u660E\u671D\u98DE\u4ED9\u7B1E\u51E4\u51F0\uFF01","\u72EC\u5E1C\u5165\u6E0A\u6DF1\u672A\u77E5\uFF0C\u8EAB\u4F3C\u6D6E\u840D\u547D\u96BE\u6301\u3002\u5343\u821F\u7686\u671D\u5F52\u6D77\u5904\uFF0C\u4E00\u82C7\u9752\u62E8\u620F\u6D6A\u5DC5\u3002\u60CA\u9E3F\u56DB\u6563\u9C7C\u9003\u5C3D\uFF0C\u552F\u6709\u6B8B\u5E06\u50B2\u6B64\u95F4\u3002\u5F85\u5230\u5929\u5F00\u4E91\u96FE\u6563\uFF0C\u8D1F\u624B\u76F4\u671B\u7B11\u82CD\u5929\u3002"],jf="\u300A\u86CA\u771F\u4EBA\u300B\xB7 \u5927\u7231\u4ED9\u5C0A";async function kl(e){try{let t=await fetch(`${ee}/open-external?url=${encodeURIComponent(e)}`,{method:"POST"}),n=await t.json().catch(()=>null);if(t.ok&&n&&n.ok)return!0}catch{}try{if(window.open(e,"_blank","noopener,noreferrer"))return!0}catch{}try{let t=document.createElement("a");return t.href=e,t.target="_blank",t.rel="noopener noreferrer",t.click(),!0}catch{}return!1}var nv=100;var gd={nav:"\u8BB0\u5FC6",loading:"\u52A0\u8F7D\u4E2D\u2026",loadingGraph:"\u6B63\u5728\u52A0\u8F7D\u77E5\u8BC6\u661F\u56FE\u2026",refresh:"\u5237\u65B0",overview:"\u8BB0\u5FC6\u5E93\u6982\u89C8",total:"\u77E5\u8BC6\u5361",recent:"\u8FD1 7 \u5929\u65B0\u589E",tags:"\u6807\u7B7E",searchPlaceholder:"\u641C\u7D22\u8BB0\u5FC6\uFF08\u652F\u6301\u4E2D\u6587\u7247\u6BB5\uFF09\u2026",search:"\u641C\u7D22",all:"\u5168\u90E8",kindProject:"\u9879\u76EE",kindKnowledge:"\u77E5\u8BC6",kindOther:"\u5176\u4ED6",kindContent:"\u5185\u5BB9",kindPrompt:"\u63D0\u793A\u8BCD",kindBusiness:"\u4E1A\u52A1",kindTool:"\u5DE5\u5177",kindMistake:"\u6559\u8BAD",kindCore:"\u6838\u5FC3\u8BB0\u5FC6",kindSkill:"\u6280\u80FD",newsTab:"\u65B0\u95FB",newsTitle:"\u65B0\u95FB",newsHint:"\u6BCF\u65E5 AI \u65B0\u95FB\u3001\u672C\u6708\u699C\u5355\uFF0C\u4EE5\u53CA\u4F60\u81EA\u5DF1\u7684\u53D1\u5E03\u3002",newsNew:"\u5199\u4E00\u6761",newsSearch:"\u641C\u7D22\u6807\u9898 / \u6B63\u6587 / \u6807\u7B7E\u2026",newsUnreadOnly:"\u53EA\u770B\u672A\u8BFB",newsEmpty:"\u8FD8\u6CA1\u6709\u65B0\u95FB\u3002\u5199\u7B2C\u4E00\u6761\u53D1\u5E03\u3001\u51B3\u7B56\u6216\u56E2\u961F\u7B80\u62A5\u3002",newsNoMatch:"\u6CA1\u6709\u5339\u914D\u7684\u65B0\u95FB",newsPinned:"\u7F6E\u9876",newsRead:"\u5DF2\u8BFB",newsUnread:"\u672A\u8BFB",newsMarkRead:"\u6807\u8BB0\u5DF2\u8BFB",newsMarkUnread:"\u6807\u8BB0\u672A\u8BFB",newsEdit:"\u7F16\u8F91",newsDeleteConfirm:"\u5220\u9664\u8FD9\u6761\u65B0\u95FB\uFF1F",newsDeleted:"\u5DF2\u5220\u9664",newsSave:"\u4FDD\u5B58",newsSaving:"\u4FDD\u5B58\u4E2D\u2026",newsSaved:"\u5DF2\u4FDD\u5B58",newsSaveFail:"\u4FDD\u5B58\u5931\u8D25",newsTitleField:"\u6807\u9898",newsBodyField:"\u6B63\u6587\uFF08Markdown\uFF09",newsCategoryField:"\u5206\u7C7B",newsSourceField:"\u6765\u6E90",newsUrlField:"\u94FE\u63A5",newsTagsField:"\u6807\u7B7E\uFF08\u9017\u53F7\u5206\u9694\uFF09",newsDateField:"\u65E5\u671F",newsPinField:"\u7F6E\u9876",newsPreview:"\u9884\u89C8",newsEditBody:"\u7F16\u8F91\u6B63\u6587",newsOpenLink:"\u6253\u5F00\u94FE\u63A5",newsToday:"\u4ECA\u5929",newsYesterday:"\u6628\u5929",newsEarlier:"\u66F4\u65E9",newsTitlePlaceholder:"\u4F8B\u5982\uFF1Av0.20.0 \u53D1\u5E03\u8BF4\u660E",newsBodyPlaceholder:"\u5199\u70B9\u503C\u5F97\u7559\u4E0B\u7684\u5185\u5BB9\u2026\u652F\u6301 Markdown",newsCountUnit:"\u6761",cancel:"\u53D6\u6D88",newsDaily:"\u4ECA\u65E5\u65B0\u95FB",newsMonthly:"\u672C\u6708",newsMine:"\u6211\u7684\u65B0\u95FB",newsDailySub:"\u6BCF\u65E5\u6700\u65B0\u7684 AI \u65B0\u95FB\uFF0C\u4E2D\u6587\u4F18\u5148",newsMonthlySub:"\u672C\u6708 AI \u65B0\u95FB\uFF1A\u4E2D\u6587\u6309\u65F6\u95F4\u5F52\u6863\uFF0C\u82F1\u6587\u6309 Hacker News \u70ED\u5EA6",newsMineSub:"\u4F60\u81EA\u5B9A\u4E49\u7684\u53D1\u5E03\u3001\u51B3\u7B56\u548C\u56E2\u961F\u7B80\u62A5",newsLoading:"\u6B63\u5728\u62C9\u53D6\u8D44\u8BAF\u2026",newsFeedError:"\u8D44\u8BAF\u6E90\u6682\u65F6\u4E0D\u53EF\u7528",newsHeat:"\u70ED\u5EA6",newsComments:"\u8BC4\u8BBA",newsOriginal:"\u9605\u8BFB\u539F\u6587",newsUpdatedAt:"\u66F4\u65B0\u4E8E",newsPartialFail:"\u90E8\u5206\u6765\u6E90\u5931\u8D25",newsFeedEmpty:"\u4ECA\u5929\u8FD8\u6CA1\u6709\u6293\u5230\u8D44\u8BAF\uFF0C\u70B9\u5237\u65B0\u518D\u8BD5\u3002",newsFeedRefresh:"\u5237\u65B0\u8D44\u8BAF",newsLoadingHint:"\u9996\u6B21\u52A0\u8F7D\u4F1A\u6293\u53D6\u591A\u4E2A\u4E2D\u6587\u8D44\u8BAF\u6E90\uFF0C\u53EF\u80FD\u9700\u8981\u51E0\u79D2\u2026",newsRetry:"\u91CD\u8BD5",newsSearchGo:"\u641C\u7D22",newsFollow:"\u5173\u6CE8",newsFollowPreview:"\u6211\u8FD9\u6837\u7406\u89E3\uFF0C\u8981\u5173\u6CE8\u5417\uFF1F",newsFollowConfirm:"\u5F00\u59CB\u5173\u6CE8",newsFollowAdded:"\u5DF2\u5173\u6CE8",newsFollowExists:"\u5DF2\u7ECF\u5728\u5173\u6CE8\u4E86",newsFollowRemoved:"\u5DF2\u53D6\u6D88\u5173\u6CE8",newsFollowFail:"\u5173\u6CE8\u5931\u8D25",newsFollowNoQuery:"\u5148\u8F93\u5165\u4E00\u4E2A\u4E3B\u9898\u8BCD",newsFollowDomains:"\u5728\u8FD9\u4E9B\u6765\u6E90\u91CC\u627E",newsFollowEmpty:"\u8FD8\u6CA1\u6709\u5173\u6CE8\u4EFB\u4F55\u4E3B\u9898\u3002\u641C\u4E00\u4E2A\u8BCD\u540E\u70B9\u300C\u5173\u6CE8\u300D\uFF0C\u4EE5\u540E\u5B83\u81EA\u5DF1\u4F1A\u66F4\u65B0\u3002",newsIntentHint:"\u8FD9\u770B\u8D77\u6765\u662F\u4E00\u53E5\u6307\u4EE4 \u2014\u2014 \u70B9\u300C\uFF0B \u5173\u6CE8\u300D\u8BA9\u5B83\u6301\u7EED\u53BB\u5BF9\u5E94\u6765\u6E90\u91CC\u627E\uFF1B\u4E0B\u9762\u7684\u5217\u8868\u4E0D\u518D\u6309\u5B57\u9762\u8FC7\u6EE4\u3002",newsFollowing:"\u5173\u6CE8\u52A8\u6001",newsDigest:"\u5173\u6CE8\u6458\u8981\u63A8\u9001",newsDigestHint:"\u5F00\u542F\u540E\uFF0C\u5BBF\u4E3B\u6309\u95F4\u9694\u6293\u53D6\u300C\u65B0\u95FB\u5173\u6CE8\u300D\uFF0C\u53EA\u6709\u51FA\u73B0\u300C\u65B0\u300D\u5185\u5BB9\u65F6\u624D\u4F1A\u8BA9 Agent \u5728\u4E0B\u4E00\u8F6E\u63D0\u4E00\u53E5\u3002\u9ED8\u8BA4\u5173\u95ED\uFF1B\u5173\u6389\u5C31\u4E0D\u6253\u6270\u3002",newsDigestEnabled:"\u542F\u7528\u63A8\u9001",newsDigestInterval:"\u6293\u53D6\u95F4\u9694\uFF08\u5206\u949F\uFF09",newsDigestMaxItems:"\u6BCF\u6761\u6458\u8981\u6700\u591A\u51E0\u6761",newsDigestNow:"\u7ACB\u5373\u751F\u6210\u5E76\u9884\u89C8",newsDigestNowHint:"\u5F00\u542F\u524D\u53EF\u4EE5\u5148\u70B9\u5B83\uFF0C\u770B\u770B\u5230\u5E95\u4F1A\u63A8\u9001\u4EC0\u4E48\u3002",newsDigestBuilding:"\u751F\u6210\u4E2D\u2026",newsDigestDone:"\u6458\u8981\u5DF2\u751F\u6210",newsDigestEmpty:"\u5F53\u524D\u6CA1\u6709\u65B0\u7684\u5173\u6CE8\u5185\u5BB9",newsDigestFail:"\u751F\u6210\u6458\u8981\u5931\u8D25",newsSortRec:"\u4E3A\u4F60\u63A8\u8350",newsSortTime:"\u6700\u65B0",newsPersonalized:"\u5DF2\u6309\u4F60\u7684\u559C\u7231\u5B9A\u5236\u6392\u5E8F",newsLastQuery:"\u4E0A\u6B21\u641C\u7D22",newsResetPrefs:"\u91CD\u7F6E\u504F\u597D",newsHeroEye:"NEWSROOM \xB7 AI \u60C5\u62A5\u7AD9",newsHeroHint:"\u641C\u7D22\u4E00\u6B21\u5C31\u4F1A\u88AB\u8BB0\u4F4F\uFF0C\u4E0B\u6B21\u6253\u5F00\u81EA\u52A8\u6309\u4F60\u7684\u53E3\u5473\u6392\u5E8F\uFF1B\u53EA\u5728\u672C\u9875\u9996\u6B21\u6253\u5F00\u65F6\u62C9\u53D6\u4E00\u6B21\u6570\u636E\u3002",newsMatched:"\u6761\u547D\u4E2D",newsNoMatch:"\u6CA1\u6709\u5339\u914D\u7684\u8D44\u8BAF",newsNoMatchHint:"\u8FD9\u6279\u6570\u636E\u91CC\u6CA1\u6709\u547D\u4E2D\u5F53\u524D\u5173\u952E\u8BCD + \u5206\u7C7B + \u8BED\u8A00\u7684\u6761\u76EE\uFF0C\u6E05\u9664\u7B5B\u9009\u5C31\u80FD\u770B\u56DE\u5168\u90E8\u3002",newsClearFilters:"\u6E05\u9664\u7B5B\u9009",newsJustNow:"\u521A\u521A",newsMinutesAgo:"\u5206\u949F\u524D",newsHoursAgo:"\u5C0F\u65F6\u524D",newsDaysAgo:"\u5929\u524D",newsLangZh:"\u4E2D\u6587",newsLangEn:"\u82F1\u6587",newsLangAll:"\u4E0D\u9650",newsZhArchive:"\u4E2D\u6587\u6708\u699C\u6309\u65F6\u95F4\u5F52\u6863\uFF08\u4E2D\u6587\u6E90\u6682\u65E0\u516C\u5F00\u70ED\u5EA6\u5206\u6570\uFF09",newsEnRanking:"\u82F1\u6587\u6708\u699C\u6309 Hacker News \u5206\u6570\u6392\u540D",skillCards:"\u6280\u80FD\u5361",skillCardsHint:"\u4ECE\u672C\u673A\u5B9E\u9645\u5B89\u88C5/\u53EF\u7528\u7684\u6280\u80FD\u751F\u6210\u5361\u7247\uFF0C\u5F3A\u5236\u8FDB\u5165\u5BA1\u6838\uFF1B\u4E0D\u7531 Agent \u5BF9\u8BDD\u6C89\u6DC0\u3002",skillAutoSync:"\u81EA\u52A8\u540C\u6B65\u6280\u80FD\u5361",syncSkills:"\u540C\u6B65\u6280\u80FD",syncingSkills:"\u6B63\u5728\u540C\u6B65\u6280\u80FD\u2026",skillsSyncDone:"\u6280\u80FD\u5361\u540C\u6B65\u5B8C\u6210",skillsScanned:"\u626B\u63CF",skillsCreated:"\u65B0\u589E",skillsUpdated:"\u66F4\u65B0",skillsPendingUpdates:"\u5F85\u5BA1\u66F4\u65B0",skillsSyncFail:"\u6280\u80FD\u5361\u540C\u6B65\u5931\u8D25",cardsTab:"\u77E5\u8BC6\u5361",webTab:"Web \u7248",webOpening:"\u6B63\u5728\u7528\u9ED8\u8BA4\u6D4F\u89C8\u5668\u6253\u5F00 Web \u7248\u2026",webOpened:"\u5DF2\u7528\u9ED8\u8BA4\u6D4F\u89C8\u5668\u6253\u5F00 Web \u7248",webOpenFail:"\u6253\u5F00\u6D4F\u89C8\u5668\u5931\u8D25\uFF0C\u53EF\u624B\u52A8\u8BBF\u95EE",terminalTab:"\u7EC8\u7AEF\u7248",terminalTitle:"\u7EC8\u7AEF\u5B8C\u6574\u7248",terminalIntro:"Web UI \u4E0D\u6E32\u67D3\u7EC8\u7AEF\u539F\u751F TUI\u3002\u8981\u5B8C\u6574\u6279\u5361\u3001\u957F\u6587\u6EDA\u52A8\u548C\u5168\u9009\uFF0C\u8BF7\u6253\u5F00\u672C\u673A\u7EC8\u7AEF\uFF1B\u6216\u8005\u76F4\u63A5\u5728 dsh-tui \u91CC\u7528 /audit\u3002",terminalRun:"\u53EA\u8BFB\u4F53\u9A8C\uFF08\u771F\u5B9E\u961F\u5217\uFF09",terminalTui:"\u5199\u5165\u6A21\u5F0F\uFF08\u771F\u5B9E\u6279\u9A73\uFF09",terminalWhy:"\u4E3A\u4EC0\u4E48\u4E0D\u76F4\u63A5\u5D4C\u8FDB\u7F51\u9875",terminalWhyBody:"\u7EC8\u7AEF TUI \u4F9D\u8D56 alternate screen\u3001\u539F\u59CB\u952E\u76D8\u4E8B\u4EF6\u548C\u5B57\u7B26\u7F51\u683C\uFF0C\u65E0\u6CD5\u7528 iframe \u5FE0\u5B9E\u5D4C\u5165\u3002\u8FD9\u91CC\u7ED9\u51FA\u771F\u5B9E\u547D\u4EE4\uFF0C\u6253\u5F00\u540E\u5C31\u662F\u540C\u4E00\u5957\u754C\u9762\u3002",terminalCopy:"\u590D\u5236\u547D\u4EE4",terminalCopied:"\u5DF2\u590D\u5236",terminalPreview:"\u7EC8\u7AEF\u9884\u89C8",graphTab:"\u77E5\u8BC6\u661F\u56FE",graph:"\u77E5\u8BC6\u56FE\u8C31",graphHint:"\u8282\u70B9=\u77E5\u8BC6\u5361\uFF1B\u8FDE\u7EBF=[[\u94FE\u63A5]] \u6216\u5171\u4EAB\u6807\u7B7E\u3002\u70B9\u51FB\u8282\u70B9\u9605\u8BFB\u5361\u7247\u3002",graphLegendTitle:"\u5361\u7247\u5206\u5E03",graphTip:"\u5DE6\u952E\u51F8\u663E \xB7 Shift+\u62D6\u62FD\u6846\u9009 \xB7 \u53F3\u952E\u83DC\u5355 \xB7 \u6EDA\u8F6E\u7F29\u653E \xB7 \u62D6\u62FD\u5E73\u79FB",rebuild:"\u91CD\u5EFA",reset:"\u91CD\u7F6E",expandAll:"\u5168\u90E8\u5C55\u5F00",capped:"\u5DF2\u5C55\u793A\u6700\u6838\u5FC3\u7684",clearFocus:"\u53D6\u6D88\u9AD8\u4EAE",empty:"\u8BB0\u5FC6\u5E93\u8FD8\u662F\u7A7A\u7684\u3002\u591A\u804A\u51E0\u8F6E\u540E\uFF0C\u503C\u5F97\u4FDD\u5B58\u7684\u5185\u5BB9\u4F1A\u81EA\u52A8\u6C89\u6DC0\u6210\u77E5\u8BC6\u5361\u3002",emptyGraph:"\u56FE\u8C31\u6682\u65E0\u6570\u636E\u3002",open:"\u9605\u8BFB",updated:"\u66F4\u65B0\u4E8E",created:"\u521B\u5EFA\u4E8E",source:"\u6765\u6E90",contents:"\u76EE\u5F55",related:"\u76F8\u5173\u8BB0\u5FC6",file:"\u6587\u4EF6",close:"\u5173\u95ED",vaultDir:"\u8BB0\u5FC6\u5E93\u76EE\u5F55",capture:"\u81EA\u52A8\u6C89\u6DC0",recall:"\u81EA\u52A8\u53EC\u56DE",enabled:"\u5DF2\u542F\u7528",disabled:"\u5DF2\u7981\u7528",error:"\u52A0\u8F7D\u5931\u8D25",back:"\u8FD4\u56DE\u5217\u8868",cardCount:"\u5F20\u5361",nodes:"\u8282\u70B9",edges:"\u8FDE\u7EBF",memoryTitle:"\u8BB0\u5FC6\u5E93",memoryHint:"\u4F60\u7684\u672C\u5730\u7B2C\u4E8C\u5927\u8111",zoomIn:"\u653E\u5927",zoomOut:"\u7F29\u5C0F",fit:"\u9002\u5E94",enterFullscreen:"\u5168\u5C4F",exitFullscreen:"\u9000\u51FA\u5168\u5C4F",exportGraph:"\u5BFC\u51FA",openCard:"\u6253\u5F00\u5361\u7247",focusNeighbors:"\u51F8\u663E\u5173\u8054",copyName:"\u590D\u5236\u540D\u79F0",noMatch:"\u6CA1\u6709\u5339\u914D\u7684\u8BB0\u5FC6",clearFilter:"\u6E05\u9664\u8FC7\u6EE4",filterLabel:"\u7B5B\u9009",sortRecent:"\u6700\u8FD1",sortTitle:"\u6807\u9898",sortHot:"\u70ED\u70B9",exportSel:"\u5BFC\u51FA\u9009\u4E2D",clearSelection:"\u6E05\u7A7A\u9009\u62E9",download:"\u4E0B\u8F7D",openNewTab:"\u65B0\u6807\u7B7E\u6253\u5F00",copyImage:"\u590D\u5236\u56FE\u7247",done:"\u5B8C\u6210",downloaded:"\u5DF2\u5F00\u59CB\u4E0B\u8F7D",openedTab:"\u5DF2\u5728\u65B0\u6807\u7B7E\u6253\u5F00",copied:"\u5DF2\u590D\u5236",exportedSel:"\u4E2A\u8282\u70B9\u5DF2\u5BFC\u51FA",fullscreen:"\u5168\u5C4F",exitFull:"\u9000\u51FA\u5168\u5C4F",copyFail:"\u590D\u5236\u5931\u8D25",timeDim:"\u65F6\u95F4\u7EF4",graphWarming:"\u6B63\u5728\u5E03\u5C40 {n} \u4E2A\u8282\u70B9\u2026",graphAllCrumb:"\u5168\u90E8",graphOther:"\u5176\u4ED6",graphItems:"\u56FE\u5143",graphCardsUnit:"\u5361",graphPlanetCards:"{n} \u5F20\u5361",graphEnter:"\u8FDB\u5165\u8BE5\u5C42",graphLevelLoading:"\u6B63\u5728\u52A0\u8F7D\u5C42\u7EA7\u2026",graphLevelTimeout:"\u5C42\u52A0\u8F7D\u8D85\u65F6\uFF08{ms}ms\uFF09\xB7 \u5DF2\u4FDD\u7559\u5F53\u524D\u5C42",graphLevelError:"\u5C42\u52A0\u8F7D\u5931\u8D25 \xB7 \u5DF2\u4FDD\u7559\u5F53\u524D\u5C42",graphRetry:"\u91CD\u8BD5",graphEmptyLevel:"\u8FD9\u4E00\u5C42\u6CA1\u6709\u5361\u7247\u3002",graphLevelHint:"\u70B9\u5927\u661F\u7403\u8FDB\u5165\u8BE5\u5C42 \xB7 Shift+\u70B9\u51FB\u9009\u4E2D \xB7 \u62D6\u62FD\u79FB\u52A8 \xB7 \u6EDA\u8F6E\u7F29\u653E",graphBreadcrumbAria:"\u5C42\u7EA7\u9762\u5305\u5C51",graphCountWan:"\u4E07",graphCountLocale:"zh-CN",timeNew:"3 \u5929\u5185",timeRecent:"2 \u5468\u5185",timeMonth:"1 \u6708\u5185",timeOld:"\u66F4\u65E9",newBadge:"\u65B0",expand:"\u5C55\u5F00\u5168\u90E8",collapse:"\u6536\u8D77",copyBody:"\u590D\u5236\u6B63\u6587",clearFilter:"\u6E05\u9664\u6807\u7B7E\u7B5B\u9009",copyPath:"\u590D\u5236\u8DEF\u5F84",copied:"\u5DF2\u590D\u5236",copyFail:"\u590D\u5236\u5931\u8D25",readWidth:"\u9605\u8BFB\u5BBD\u5EA6",widthNarrow:"\u7A84",widthMid:"\u4E2D",widthWide:"\u5BBD",exportVault:"\u5BFC\u51FAMD",exportJson:"\u5BFC\u51FAJSON",exporting:"\u5BFC\u51FA\u4E2D\u2026",exportedVault:"\u8BB0\u5FC6\u5E93\u5DF2\u5BFC\u51FA",exportFail:"\u5BFC\u51FA\u5931\u8D25",importVault:"\u5BFC\u5165",importedVault:"\u5BFC\u5165\u5B8C\u6210",importedTotal:" \u5F20 / \u6587\u4EF6\u5171 ",importedTotalTail:" \u5F20",importedQuarantine:" \xB7 \u5F85\u5BA1\u6838 ",importedQuarantineTail:" \u5F20\uFF08\u9694\u79BB\u533A\uFF0C\u6279\u51C6\u540E\u624D\u53C2\u4E0E\u53EC\u56DE\uFF09",importedSkipped:" \xB7 \u8DF3\u8FC7 ",importedSkippedTail:" \u5F20\uFF08\u91CD\u590D\u6216\u7A7A\uFF09",importFail:"\u5BFC\u5165\u5931\u8D25",location:"\u81EA\u9009\u4F4D\u7F6E",saveAs:"\u53E6\u5B58\u4E3A",saveAsUnsupported:"\u5F53\u524D\u73AF\u5883\u4E0D\u652F\u6301\u9009\u62E9\u4FDD\u5B58\u4F4D\u7F6E",exportedTo:"\u5DF2\u5BFC\u51FA\u5230",defaultDownloads:"\u9ED8\u8BA4\u4E0B\u8F7D\u6587\u4EF6\u5939",exportCancel:"\u5DF2\u53D6\u6D88\u5BFC\u51FA",manage:"\u7BA1\u7406",tabUsage:"\u8FD0\u884C\u72B6\u6001",tabOptimize:"\u6574\u7406\u5EFA\u8BAE",adminLoadFail:"\u6570\u636E\u52A0\u8F7D\u5931\u8D25\uFF1A\u8BF7\u5F7B\u5E95\u91CD\u542F dsh-desktop\uFF08host \u9700\u52A0\u8F7D\u65B0\u7248 /memory-eternal \u8DEF\u7531\uFF09",retry:"\u91CD\u8BD5",mergeSimilar:"\u4E00\u952E\u5408\u5E76\u76F8\u4F3C",trendLabel:"\u8FD1 30 \u5929\u8D8B\u52BF",cleanStale:"\u{1F5D1}\uFE0F \u4E00\u952E\u6E05\u7406\u9648\u65E7",deletedStale:"\u4E2A\u9648\u65E7\u5361\u5DF2\u6E05\u7406",newCard:"\u65B0\u5EFA",tplDecision:"\u{1F4DD} \u6280\u672F\u51B3\u7B56",tplBug:"\u{1F41B} \u8E29\u5751",tplMeeting:"\u{1F4CB} \u4F1A\u8BAE\u7EAA\u8981",tplWeekly:"\u{1F4CA} \u5468\u62A5",createCard:"\u521B\u5EFA",cardTitle:"\u6807\u9898",cardBody:"\u6B63\u6587",fbUseful:"\u6709\u7528",fbIrr:"\u65E0\u5173",todayAdd:"\u4ECA\u65E5\u65B0\u589E",weekAdd:"\u8FD1 7 \u5929",byKind:"\u5206\u7C7B\u7EDF\u8BA1",todayList:"\u4ECA\u65E5\u6C89\u6DC0",budgetLabel:"\u4F1A\u8BDD\u9884\u7B97",budgetChars:"\u9884\u7B97\u5B57\u7B26",recallLimitLabel:"\u53EC\u56DE\u6761\u6570",embeddingLabel:"\u8BED\u4E49\u53EC\u56DE",mergePairs:"\u76F8\u4F3C\u5361\u5BF9\uFF08\u53EF\u5408\u5E76\uFF09",staleCards:"\u9648\u65E7\u5361\uFF08>90 \u5929\u672A\u66F4\u65B0\uFF09",noOptimize:"\u6682\u65E0\u53EF\u6574\u7406\u9879\uFF0C\u5F88\u5065\u5EB7 \u{1F389}",refineTitle:"\u77DB\u76FE\u626B\u63CF",refineScan:"\u5F00\u59CB\u626B\u63CF",refineHint:"\u76F8\u4F3C\u53EF\u4EE5\u5408\u5E76\uFF0C\u77DB\u76FE\u5FC5\u987B\u4EBA\u5224\u65AD \u2014\u2014 \u626B\u63CF\u53EA\u8BFB\uFF0C\u9009\u62E9\u540E\u624D\u52A8\u6570\u636E\uFF08\u4FDD\u7559\u4E00\u5F20\u4F1A\u628A\u53E6\u4E00\u5F20\u653E\u8FDB\u56DE\u6536\u7AD9\uFF0C\u53EF\u8FD8\u539F\uFF09",refineIdle:"\u70B9\u300C\u5F00\u59CB\u626B\u63CF\u300D\uFF1A\u5148\u5BBD\u53EC\u56DE\u53EF\u80FD\u6709\u5173\u7CFB\u7684\u5361\u7247\u5BF9\uFF0C\u518D\u8BA9\u6A21\u578B\u5224\u65AD\u662F\u91CD\u590D / \u8865\u5145 / \u77DB\u76FE / \u65E0\u5173",refineNone:"\u8FD9\u4E00\u8F6E\u6CA1\u6709\u53D1\u73B0\u9700\u8981\u4F60\u88C1\u51B3\u7684\u5361\u7247\u5BF9 \u{1F389}",refineFail:"\u77DB\u76FE\u626B\u63CF\u5931\u8D25",refineApplied:"\u5DF2\u8BB0\u5F55\u4F60\u7684\u88C1\u51B3\uFF08\u4E0D\u4F1A\u91CD\u590D\u6253\u6270\uFF09",refineRel_duplicate:"\u91CD\u590D\uFF08\u53EF\u5408\u5E76\uFF09",refineRel_complement:"\u8865\u5145\uFF08\u90FD\u7559\u7740\uFF09",refineRel_conflict:"\u77DB\u76FE\uFF08\u9700\u4F60\u88C1\u51B3\uFF09",refineRel_unrelated:"\u65E0\u5173",refineKeepA:"\u4FDD\u7559 A",refineKeepB:"\u4FDD\u7559 B",refineKeepBoth:"\u90FD\u4FDD\u7559",refineMerge:"\u5408\u5E76",junkTitle:"\u6CE8\u5165\u5783\u573E\u5361",junkScan:"\u626B\u63CF\u5B58\u91CF",junkHint:"\u6000\u7591\u662F\u8FD0\u884C\u65F6\u6CE8\u5165\u6587\u672C\uFF08\u6280\u80FD\u76EE\u5F55 / system-reminder\uFF09\u6C89\u6DC0\u6210\u7684\u5361 \u2014\u2014 \u626B\u63CF\u53EA\u8BFB\uFF0C\u56DE\u6536\u8D70\u56DE\u6536\u7AD9\u53EF\u8FD8\u539F",junkIdle:"\u70B9\u300C\u626B\u63CF\u5B58\u91CF\u300D\uFF1A\u627E\u51FA\u6B63\u6587\u5176\u5B9E\u662F\u88AB\u6CE8\u5165\u7684\u8FD0\u884C\u65F6\u6587\u672C\u3001\u5265\u6389\u540E\u51E0\u4E4E\u4E0D\u5269\u4EBA\u8BDD\u7684\u5361",junkNone:"\u6CA1\u53D1\u73B0\u8FD9\u7C7B\u5361 \u{1F389}",junkRecycle:"\u56DE\u6536",junkRecycleAll:"\u5168\u90E8\u56DE\u6536",junkRecycleAllConfirm:"\u786E\u8BA4\u628A\u8FD9\u4E9B\u5361\u9001\u8FDB\u56DE\u6536\u7AD9\uFF1F\uFF08\u4E0D\u662F\u6C38\u4E45\u5220\u9664\uFF0C\u53EF\u5728\u56DE\u6536\u4E2D\u5FC3\u8FD8\u539F\uFF09",junkDone:"\u5DF2\u9001\u56DE\u6536\u7AD9",junkFail:"\u626B\u63CF / \u56DE\u6536\u5931\u8D25",dbReadonlyTitle:"\u8BB0\u5FC6\u5E93\u5F53\u524D\u4E0D\u53EF\u5199",dbReadonlyBody:"\u5361\u7247\u8BFB\u5199 / \u5BA1\u6838 / \u56FE\u8C31\u4F1A\u5931\u8D25\uFF0C\u4F46**\u914D\u7F6E\u4ECD\u53EF\u4FDD\u5B58**\uFF08\u914D\u7F6E\u4E0D\u7ECF\u8FC7\u6570\u636E\u5E93\uFF09",dbReadonlyFix:"\u6392\u67E5\uFF1Adsh-memory doctor\uFF08\u770B journal \u6A21\u5F0F\u3001\u5199\u63A2\u9488\u3001\u5907\u4EFD\u6E05\u5355\u4E0E\u6062\u590D\u6B65\u9AA4\uFF09",goalTitle:"\u540C\u76EE\u6807\u4E0D\u540C\u505A\u6CD5",goalScan:"\u626B\u63CF\u76EE\u6807",goalHint:"\u6309\u300C\u8FD9\u5F20\u5361\u89E3\u51B3\u4EC0\u4E48\u95EE\u9898\u300D\u805A\u7C7B \u2014\u2014 \u6B63\u6587\u76F8\u4F3C\u5EA6\u6293\u4E0D\u5230\u7684\u505A\u6CD5\u5DEE\u5F02\uFF087z \u538B\u7F29 / tar \u5206\u53D1 / npm \u7626\u8EAB\uFF09\u4E5F\u80FD\u5F52\u5230\u4E00\u8D77",goalIdle:"\u70B9\u300C\u626B\u63CF\u76EE\u6807\u300D\uFF1A\u6A21\u578B\u5148\u7ED9\u6BCF\u5F20\u5361\u62BD\u4E00\u53E5\u76EE\u6807\uFF08\u9996\u6B21\u4F1A\u8C03\u6A21\u578B\uFF0C\u4E4B\u540E\u8D70\u7F13\u5B58\uFF09\uFF0C\u518D\u6309\u76EE\u6807\u805A\u7C7B",goalNone:"\u6CA1\u6709\u53D1\u73B0\u300C\u540C\u4E00\u76EE\u6807\u3001\u591A\u5F20\u5361\u300D\u7684\u7C07 \u{1F389}",goalStats:"\u5DF2\u7D22\u5F15 / \u672C\u6B21\u8C03\u7528",goalCards:"\u5F20\u5361",goalKeep:"\u90FD\u4FDD\u7559",goalMerge:"\u5408\u5E76\u8FD9\u4E00\u7EC4",goalMerged:"\u5DF2\u63D0\u4EA4\u5408\u5E76\uFF08\u65B0\u5361\u8FDB\u5BA1\u6838\u961F\u5217\uFF09",goalDone:"\u5DF2\u8BB0\u5F55\u300C\u90FD\u4FDD\u7559\u300D",goalFail:"\u76EE\u6807\u805A\u7C7B\u5931\u8D25",oneClickOptimize:"\u4E00\u952E\u4F18\u5316",oneClickOptimizeConfirm:"\u786E\u8BA4\u4E00\u952E\u4F18\u5316\uFF1F\u5C06\u5408\u5E76\u6240\u6709\u76F8\u4F3C\u5361\u5BF9\uFF08\u9ED8\u8BA4\u4E0D\u6E05\u7406\u9648\u65E7\u5361\uFF09\u3002",oneClickAlsoStale:"\u540C\u65F6\u6E05\u7406\u9648\u65E7\u5361",oneClickOptimizeDone:"\u4E00\u952E\u4F18\u5316\u5B8C\u6210",optimizedMerged:"\u5BF9\u5DF2\u5408\u5E76",optimizedStaleDeleted:"\u5F20\u9648\u65E7\u5361\u5DF2\u6E05\u7406",mcpSetupStatus:"Agent MCP \u6302\u8F7D\u72B6\u6001",rerunSetup:"\u8865\u5168 MCP",notInstalled:"\u672A\u5B89\u88C5",noMcpEntry:"\u914D\u7F6E\u7F3A\u5931",nodePathMismatch:"node \u8DEF\u5F84\u4E0D\u4E00\u81F4\uFF0C\u5EFA\u8BAE\u91CD\u8DD1 setup",nodePathNote:"node \u73AF\u5883\u4E0D\u540C\uFF08\u53EF\u7528\uFF09",mcpNeedsRepair:"\u26A0 \u9700\u4FEE\u590D\uFF08\u65E7\u914D\u7F6E\u4F1A\u62C9\u8D77 GUI\uFF09",repairMcp:"\u4FEE\u590D\u914D\u7F6E",healthy:"\u914D\u7F6E\u6B63\u5E38",mcpSetupHint:"\u300C\u81EA\u52A8\u6302\u8F7D MCP\u300D= \u8BA9 Claude Code / Codex / Cursor \u8FD9\u4E9B\u5DE5\u5177\u80FD\u8C03\u7528\u8BB0\u5FC6\u5E93\u3002\u5F00\u542F\u540E\u81EA\u52A8\u628A\u5B83\u4EEC\u914D\u7F6E\u597D\uFF1B\u5173\u6389\u5C31\u4E0D\u52A8\u4F60\u7535\u8111\u4E0A\u4EFB\u4F55\u914D\u7F6E\u6587\u4EF6\uFF0C\u9700\u8981\u65F6\u624B\u52A8\u8DD1 dsh-memory setup\u3002",mcpManageHint:"\u6BCF\u4E2A agent \u7528\u4E0B\u65B9\u6309\u94AE\u5355\u72EC\u5B89\u88C5/\u5378\u8F7D MCP",workTitle:"\u672C\u4F1A\u8BDD\u5DE5\u4F5C\u533A",workHint:"\u4E34\u65F6\u8349\u7A3F \xB7 \u4E0D\u8FDB\u5165\u77E5\u8BC6\u5E93 \xB7 \u4E0D\u53C2\u4E0E\u53EC\u56DE",workLines:"\u884C",workExpand:"\u5C55\u5F00",workCollapse:"\u6536\u8D77",workPlaceholder:"\u8BB0\u4E0B\u8FD9\u4E2A\u4EFB\u52A1\u73B0\u5728\u505A\u5230\u54EA\u3001\u4E0B\u4E00\u6B65\u505A\u4EC0\u4E48\u2026\uFF08\u4F1A\u8BDD\u7ED3\u675F\u81EA\u52A8\u5F52\u6863\uFF09",workSave:"\u4FDD\u5B58\u8349\u7A3F",workPromote:"\u5B58\u4E3A\u5F85\u5BA1\u5361",workClear:"\u6E05\u7A7A",workClearConfirm:"\u6E05\u7A7A\u672C\u4F1A\u8BDD\u5DE5\u4F5C\u533A\uFF1F\u6B64\u64CD\u4F5C\u4E0D\u53EF\u6062\u590D\u3002",workSaved:"\u5DF2\u4FDD\u5B58\u4F1A\u8BDD\u5DE5\u4F5C\u533A",workCleared:"\u5DF2\u6E05\u7A7A\u4F1A\u8BDD\u5DE5\u4F5C\u533A",workPromoted:"\u5DF2\u63D0\u4EA4\u5BA1\u6838\uFF0C\u8BF7\u5728\u300C\u5F85\u5BA1\u300D\u91CC\u5904\u7406",workLimitHint:"\u4E0A\u9650 200 \u884C / 24KB\uFF0C\u8D85\u51FA\u622A\u65AD",workPromoteHint:"\u9009\u4E2D\u4E00\u6BB5\u65F6\u53EA\u664B\u5347\u9009\u4E2D\u90E8\u5206",workPromoteEmpty:"\u6CA1\u6709\u53EF\u664B\u5347\u7684\u5185\u5BB9",starAskTitle:"\u8BB0\u5FC6\u5DF2\u7ECF\u7528\u8D77\u6765\u4E86",starAskBody:"\u5DF2\u53EC\u56DE {recalls} \u6B21 \xB7 \u6C89\u6DC0 {cards} \u5F20\u5361\u3002\u5982\u679C\u5B83\u5E2E\u4F60\u7701\u8FC7\u65F6\u95F4\uFF0C\u7ED9\u4E2A Star \u4F1A\u8BA9\u66F4\u591A\u4EBA\u627E\u5230\u5B83\u3002",starAskGo:"\u53BB Star",starAskLater:"\u665A\u70B9\u518D\u8BF4",starAskNever:"\u4E0D\u518D\u63D0\u793A",tabConfig:"\u8BB0\u5FC6\u914D\u7F6E",configPageSub:"\u5199\u5165\u3001\u8DEF\u7531\u3001\u5BA1\u6838\u4E0E\u670D\u52A1\u7684\u672C\u5730\u914D\u7F6E",tabAudit:"\u5F85\u5BA1",statusApproved:"\u5DF2\u5BA1\u6838",statusPending:"\u5F85\u5BA1\u6838",statusRejected:"\u5DF2\u9A73\u56DE",allStatus:"\u5168\u90E8\u72B6\u6001",tabRecycle:"\u56DE\u6536\u4E2D\u5FC3",recyclePageSub:"\u5DF2\u5220\u9664\u7684\u5361\u4FDD\u7559 30 \u5929\uFF0C\u53EF\u6062\u590D\u6216\u6C38\u4E45\u5220\u9664",pending:"\u5F85\u5BA1\u6838",rejected:"\u5DF2\u9A73\u56DE",selectAll:"\u5168\u9009",approve:"\u6279\u51C6",approveAndCore:"\u6279\u51C6\u5E76\u8BBE\u4E3A\u6838\u5FC3",approveCore:"\u6279\u51C6\u4E3A\u6838\u5FC3\u8BB0\u5FC6",approveAsNormal:"\u6279\u51C6\u4E3A\u666E\u901A\u5361",coreSuggested:"\u6838\u5FC3\u8BB0\u5FC6\uFF08\u5F85\u5BA1\u6838\uFF09",reclassify:"\u91CD\u65B0\u8BC6\u522B\u7C7B\u578B",reject:"\u9A73\u56DE",allAgents:"\u5168\u90E8\u667A\u80FD\u4F53",noAuditItems:"\u6682\u65E0\u5BA1\u6838\u9879\u76EE",auditBodyFail:"\u6B63\u6587\u8BFB\u53D6\u5931\u8D25",deletedAt:"\u5220\u9664\u4E8E",restore:"\u6062\u590D",restoreDelete:"\u5220\u9664\u8FDB\u56DE\u6536\u7AD9",purge:"\u6C38\u4E45\u5220\u9664",emptyRecycle:"\u56DE\u6536\u7AD9\u4E3A\u7A7A",recycleHint:"\u5220\u9664\u7684\u5361\u7247\u5148\u8FDB\u56DE\u6536\u7AD9\uFF0C30 \u5929\u5185\u53EF\u6062\u590D\uFF0C\u8D85\u671F\u81EA\u52A8\u6C38\u4E45\u5220\u9664",purgeConfirm:"\u786E\u5B9A\u6C38\u4E45\u5220\u9664\uFF1F\u4E0D\u53EF\u6062\u590D\u3002",recycleDeleteConfirm:"\u786E\u5B9A\u5220\u9664\u8FDB\u56DE\u6536\u7AD9\uFF1F30 \u5929\u5185\u53EF\u6062\u590D\u3002",modeInit:"\u542F\u52A8\u65F6\u62C9\u4E00\u6B21",modeInterval:"\u5468\u671F\u4FDD\u6D3B",modeManual:"\u4EC5\u624B\u52A8",serviceConfig:"\u670D\u52A1\u81EA\u7BA1\u7406\u914D\u7F6E",auditConfig:"\u81EA\u52A8\u5BA1\u6838\u914D\u7F6E",auditHint:"\u547D\u4E2D\u514D\u5BA1\u7684\u65B0\u5361\u76F4\u63A5\u5165\u5E93\uFF0C\u5176\u4F59\u8FDB\u5F85\u5BA1\u6838",auditMode:"\u5BA1\u6838\u6A21\u5F0F",auditAll:"\u5168\u90E8\u8981\u5BA1\u6838",auditNone:"\u5168\u90E8\u514D\u5BA1",auditExemptAgents:"\u514D\u5BA1\u667A\u80FD\u4F53",auditExemptKinds:"\u514D\u5BA1\u7C7B\u578B",allExempt:"\u5168\u90E8\u514D\u5BA1",recycleDays:"\u56DE\u6536\u4FDD\u7559\u5929\u6570",editInSetting:"\u7F16\u8F91\u8BF7\u5230 DSH \u8BBE\u7F6E \u2192 \u8BB0\u5FC6",pendingSyncNote:"\u6B64\u9875\u662F\u72EC\u7ACB Web \u9875\uFF1A\u4FDD\u5B58\u540E\u7531 DSH \u5BBF\u4E3B\u5E94\u7528\uFF08\u65B0\u7248\u5BBF\u4E3B\u4F1A\u88AB\u76F4\u63A5\u53EB\u9192\u3001\u5728\u8BF7\u6C42\u4E0A\u4E0B\u6587\u91CC\u5E94\u7528\uFF0C\u70B9\u4FDD\u5B58\u5373\u751F\u6548\uFF09\uFF1B\u82E5\u672C\u673A\u6CA1\u6709 DSH \u5BBF\u4E3B\u5728\u8FD0\u884C\uFF0C\u5219\u76F4\u63A5\u5199\u5165\u5171\u4EAB\u914D\u7F6E\u3001\u7ACB\u5373\u751F\u6548\u3002\u53EA\u6709\u5728\u5BF9\u63A5\u65E7\u7248\u5BBF\u4E3B\u65F6\u624D\u4F1A\u9000\u56DE\u300C\u6392\u961F\u7B49\u5B83\u81EA\u5DF1\u540C\u6B65\u300D\uFF0C\u90A3\u65F6\u53EF\u5728 DSH \u8BBE\u7F6E \u2192 \u8BB0\u5FC6\u91CC\u6539\u540C\u4E00\u9879\u3002",readonlyTitle:"\u5F53\u524D\u9875\u9762\u53EA\u8BFB\uFF0C\u65E0\u6CD5\u4FDD\u5B58\u914D\u7F6E",readonlyBody:"\u8FD9\u4E2A\u8FDB\u7A0B\u6CA1\u6709 DSH \u7684\u8BBE\u7F6E\u670D\u52A1\uFF08settings.update \u4E0D\u5B58\u5728\uFF09\uFF0C\u914D\u7F6E\u53EA\u80FD\u5728\u672C\u673A DSH \u91CC\u4FEE\u6539\uFF1A\u684C\u9762\u7248 \u2192 \u8BBE\u7F6E \u2192 \u8BB0\u5FC6\u3002",readonlyBtn:"\u53EA\u8BFB",setupRunInTerminal:"\u8BF7\u590D\u5236\u4EE5\u4E0B\u547D\u4EE4\u5230\u7EC8\u7AEF\u6267\u884C\uFF1A",dshMemoryConfig:"DSH \u8BB0\u5FC6\u914D\u7F6E",coreMemory:"\u6838\u5FC3\u8BB0\u5FC6\uFF08\u524D\u7F6E\u5F3A\u5236\uFF09",coreMemoryHint:"\u6BCF\u6B21\u4F1A\u8BDD\u81EA\u52A8\u6CE8\u5165\uFF0C\u4E0D\u4F9D\u8D56\u6A21\u578B\u4E3B\u52A8\u53EC\u56DE\uFF1B\u53EA\u8BFB\u53D6\u5DF2\u6279\u51C6\u7684\u6838\u5FC3\u5361",coreMemoryEnabled:"\u542F\u7528\u6838\u5FC3\u8BB0\u5FC6\u6CE8\u5165",workingMemoryEnabled:"\u542F\u7528\u4F1A\u8BDD\u5DE5\u4F5C\u533A\uFF08\u8349\u7A3F\u672C\uFF09",coreMemoryLimit:"\u6838\u5FC3\u8BB0\u5FC6\u4E0A\u9650\uFF08\u5F20\uFF09",coreMemoryMaxChars:"\u6838\u5FC3\u8BB0\u5FC6\u603B\u5B57\u7B26\u4E0A\u9650",setCore:"\u8BBE\u4E3A\u6838\u5FC3\u8BB0\u5FC6",unsetCore:"\u53D6\u6D88\u6838\u5FC3\u8BB0\u5FC6",coreSetOk:"\u5DF2\u8BBE\u4E3A\u6838\u5FC3\u8BB0\u5FC6",coreUnsetOk:"\u5DF2\u53D6\u6D88\u6838\u5FC3\u8BB0\u5FC6",coreSetFail:"\u8BBE\u7F6E\u5931\u8D25",coreActiveHint:"\u8FD9\u5F20\u5361\u6BCF\u6B21\u4F1A\u8BDD\u90FD\u4F1A\u5F3A\u5236\u6CE8\u5165\uFF1B\u4E0E\u666E\u901A\u8BB0\u5FC6\u51B2\u7A81\u65F6\u4EE5\u5B83\u4E3A\u51C6\u3002",coreInactiveHint:"\u666E\u901A\u77E5\u8BC6\u5361\u53EF\u4EE5\u63D0\u5347\u4E3A\u6838\u5FC3\u8BB0\u5FC6\uFF1B\u63D0\u5347\u540E\u6BCF\u6B21\u4F1A\u8BDD\u81EA\u52A8\u751F\u6548\u3002",coreNeedApproval:"\u5148\u6279\u51C6\u8FD9\u5F20\u5361\uFF0C\u624D\u80FD\u8BBE\u4E3A\u6838\u5FC3\u8BB0\u5FC6\u3002",coreShort:"\u6838\u5FC3",setCoreShort:"\u8BBE\u6838\u5FC3",uiLayout:"\u5E03\u5C40\u5927\u5C0F",uiLayoutHint:"\u8C03\u6574\u8BB0\u5FC6\u754C\u9762\u6574\u4F53\u5927\u5C0F\uFF08\u53EA\u5F71\u54CD\u663E\u793A\uFF0C\u4E0D\u5F71\u54CD\u8BB0\u5FC6\u6570\u636E\uFF09",uiCompact:"\u7D27\u51D1",uiNormal:"\u6807\u51C6",uiLarge:"\u5927",autoCapture:"\u81EA\u52A8\u6C89\u6DC0",autoRecall:"\u81EA\u52A8\u53EC\u56DE",captureMinChars:"\u6355\u83B7\u6700\u5C0F\u957F\u5EA6",maxCardsPerDay:"\u65E5\u914D\u989D",dedupThreshold:"\u53BB\u91CD\u9608\u503C",recallLimit:"\u53EC\u56DE\u6761\u6570",vaultMulti:"\u591A\u5E93\uFF08\u6309\u9879\u76EE\u9694\u79BB\uFF09",vaultMultiHint:"\u7559\u7A7A\u5373\u5355\u5E93\uFF0C\u8001\u914D\u7F6E\u4E0D\u53D7\u5F71\u54CD",vaultNow:"\u5F53\u524D\u751F\u6548",vaultSource:"\u6765\u6E90",vaultWorkspace:"\u5F53\u524D workspace",vaultNamePh:"\u5E93\u540D\uFF0C\u5982 work",vaultPathPh:"\u76EE\u5F55\uFF0C\u5982 D:/vaults/work",vaultMatchPh:"\u9879\u76EE\u76EE\u5F55\uFF08\u53EF\u9009\uFF0C\u6309 workspace \u81EA\u52A8\u9009\u5E93\uFF09",vaultAdd:"\u6DFB\u52A0\u4E00\u4E2A\u5E93",vaultActive:"\u6FC0\u6D3B\u5E93",vaultActiveNone:"\u9ED8\u8BA4\u5E93\uFF08\u4E0D\u6307\u5B9A\uFF09",vaultSrcEnv:"\u73AF\u5883\u53D8\u91CF MEMORY_VAULT_DIR",vaultSrcProfile:"\u6FC0\u6D3B\u5E93\u914D\u7F6E",vaultSrcWorkspace:"\u6309\u9879\u76EE\u76EE\u5F55\u81EA\u52A8\u547D\u4E2D",vaultSrcVaultDir:"\u5355\u5E93\u914D\u7F6E vaultDir",vaultSrcDefault:"\u9ED8\u8BA4\u76EE\u5F55",fbNav:"\u53CD\u9988\u5F02\u5E38",fbTitle:"\u53CD\u9988\u5F02\u5E38\uFF08\u63D0\u4EA4\u5230 GitHub\uFF09",fbDesc:"\u63CF\u8FF0\u4F60\u9047\u5230\u7684\u95EE\u9898\uFF08\u73B0\u8C61 / \u590D\u73B0\u6B65\u9AA4 / \u671F\u671B\u884C\u4E3A\uFF09",fbDiag:"\u8BCA\u65AD\u4FE1\u606F\uFF08\u5DF2\u81EA\u52A8\u8131\u654F\uFF1Ahome \u76EE\u5F55\u4E0E key/token \u5DF2\u66FF\u6362\uFF09",fbCopyDiag:"\u590D\u5236\u8BCA\u65AD\u4FE1\u606F",fbOpenIssue:"\u5728 GitHub \u63D0\u4EA4\uFF08\u5DF2\u9884\u586B\uFF09",fbCopyPrompt:"\u590D\u5236\u7ED9 AI \u7684\u63D0\u793A\u8BCD",fbCopiedDiag:"\u8BCA\u65AD\u4FE1\u606F\u5DF2\u590D\u5236",fbCopiedPrompt:"\u63D0\u793A\u8BCD\u5DF2\u590D\u5236\uFF0C\u7C98\u8FDB AI \u5BF9\u8BDD\u6846\u5373\u53EF",fbCopyFail:"\u590D\u5236\u5931\u8D25\uFF0C\u8BF7\u624B\u52A8\u9009\u4E2D\u590D\u5236",fbWhy:"GitHub \u4E0D\u5141\u8BB8\u533F\u540D\u521B\u5EFA issue\uFF0C\u63D2\u4EF6\u91CC\u4E5F\u4E0D\u5E94\u5185\u7F6E token\uFF1A\u6240\u4EE5\u8FD9\u91CC\u628A\u6807\u9898 / \u6B63\u6587 / \u8BCA\u65AD\u90FD\u9884\u586B\u597D\uFF0C\u4F60\u53EA\u9700\u518D\u70B9\u4E00\u6B21 Submit\u3002",fbNeedDesc:"\u8BF7\u5148\u63CF\u8FF0\u4F60\u9047\u5230\u7684\u95EE\u9898",fbLoading:"\u6B63\u5728\u6536\u96C6\u8BCA\u65AD\u4FE1\u606F\u2026",fbDiagFail:"\u8BCA\u65AD\u63A5\u53E3\u4E0D\u53EF\u7528\uFF08\u72EC\u7ACB web \u6216\u65E7\u7248\u5BBF\u4E3B\uFF09\uFF0C\u8BF7\u624B\u52A8\u8865\u5145\u73AF\u5883\u4FE1\u606F",fbOr:"\u6216\u8005",fbSelectAll:"\u5168\u9009",auditTypeLabel:"\u7C7B\u578B",auditInboxSub:"\u81EA\u52A8\u6C89\u6DC0\u7684\u5361\u5148\u5230\u8FD9\u91CC \xB7 \u6279\u51C6\u540E\u8FDB\u5165\u8BB0\u5FC6\u5E93",auditSearchPlaceholder:"\u641C\u7D22\u6807\u9898 / \u6807\u7B7E / \u8DEF\u5F84\u2026",auditNoMatch:"\u6CA1\u6709\u5339\u914D\u7684\u5BA1\u6838\u5361",auditUndo:"\u6279\u51C6\u4E0E\u9A73\u56DE\u90FD\u53EF\u64A4\u9500",auditSelected:"\u5DF2\u9009",auditRevision:"\u4FEE\u6539",auditRevisionFrom:"\u4FEE\u6539\u539F\u5361",auditClearSelection:"\u6E05\u7A7A",preview:"\u9884\u89C8",supportGroup:"\u4EA4\u6D41\u7FA4",supportGroupQQ:"QQ \u4EA4\u6D41\u7FA4",supportGroupWechat:"\u5FAE\u4FE1\u4EA4\u6D41\u7FA4",supportSponsor:"\u8D5E\u52A9",supportLegacy:"\u65E7\u7A0B\u5E8F",supportTitle:"\u652F\u6301\u4E0E\u4EA4\u6D41",clickToZoom:"\u70B9\u51FB\u653E\u5927",supportGroupHint:"\u626B\u7801\u8FDB\u4EA4\u6D41\u7FA4\uFF08QQ / \u5FAE\u4FE1\uFF09\uFF0C\u9047\u5230\u95EE\u9898\u53EF\u4EE5\u76F4\u63A5\u95EE\u3002",supportSponsorHint:"\u5982\u679C\u8FD9\u4E2A\u63D2\u4EF6\u5E2E\u4F60\u7701\u4E86\u65F6\u95F4\uFF0C\u53EF\u4EE5\u8BF7\u4F5C\u8005\u559D\u676F\u5496\u5561\u3002\u5B8C\u5168\u81EA\u613F\uFF0C\u4E0D\u5F71\u54CD\u4EFB\u4F55\u529F\u80FD\u3002",supportLegacyTitle:"\u65E7\u7A0B\u5E8F\uFF08dsh-desktop\uFF09\u5DF2\u505C\u6B62\u7EF4\u62A4",supportLegacyBody:"\u4F5C\u8005\u81EA\u7814\u7684 dsh-desktop \u5DF2\u505C\u6B62\u7EF4\u62A4\uFF0C\u5B98\u65B9 DeepSeek Harness \u684C\u9762\u7248\u5DF2\u8986\u76D6\u540C\u6837\u80FD\u529B\uFF0C\u5EFA\u8BAE\u8FC1\u79FB\u3002\u65E7 profile \u91CC\u5982\u679C\u8FD8\u9489\u7740\u5DF2\u64A4\u4E0B\u7684 dsh-desktop-shell@0.3.0\uFF0C\u5148\u5220\u6389\u90A3\u5957\u4F9D\u8D56\uFF0C\u5426\u5219 pnpm install \u4F1A\u5931\u8D25\u3002",supportReadme:"\u6253\u5F00 README",supportReleases:"\u5386\u53F2\u7248\u672C",supportFeedback:"\u5F02\u5E38\u53CD\u9988",supportReplay:"\u91CD\u65B0\u67E5\u770B\u5F15\u5BFC",onboardTitle:"30 \u79D2\u8BA4\u8BC6\u8BB0\u5FC6\u6838\u5FC3",onboardSub:"\u4F60\u7684 AI \u4F1A\u5728\u6BCF\u8F6E\u5BF9\u8BDD\u540E\u81EA\u52A8\u6C89\u6DC0\u77E5\u8BC6\u5361\uFF0C\u5148\u5BA1\u540E\u5165\u3002",onboardSkip:"\u8DF3\u8FC7",onboardBack:"\u4E0A\u4E00\u6B65",onboardNext:"\u4E0B\u4E00\u6B65",onboardStart:"\u5F00\u59CB\u4F7F\u7528",onboardStep0Title:"\u5148\u53BB GitHub \u70B9\u4E2A Star",onboardStep0Body:"Star \u662F\u4F5C\u8005\u7EE7\u7EED\u7EF4\u62A4\u6700\u76F4\u63A5\u7684\u53CD\u9988\uFF1B\u60F3\u81EA\u5DF1\u6539\u4EE3\u7801\u6216\u90E8\u7F72\uFF0C\u5C31\u987A\u624B Fork \u4E00\u4EFD\u3002",onboardStar:"Star / \u70B9\u8D5E",onboardFork:"Fork",onboardStarred:"\u5DF2 Star\uFF0C\u7EE7\u7EED",onboardStarHint:"\u4E4B\u540E\u53EF\u4EE5\u968F\u65F6\u70B9\u9876\u680F\u7684 \u2605 Star \u56DE\u6765\u3002",onboardStep1Title:"\u81EA\u52A8\u6C89\u6DC0\uFF0C\u4E0D\u7528\u624B\u52A8\u8BB0",onboardStep1Body:"\u6BCF\u8F6E\u5BF9\u8BDD\u7ED3\u675F\uFF0C\u503C\u5F97\u7559\u4E0B\u7684\u51B3\u7B56\u3001\u6839\u56E0\u548C\u6559\u8BAD\u4F1A\u88AB\u5199\u6210\u4E00\u5F20\u5361\u3002\u5148\u751F\u6210\uFF0C\u518D\u5BA1\u6838\u3002",onboardStep2Title:"\u8BFB\u5230\u6709\u7528\u7684\u5361\uFF0C\u70B9\u4E2A \u{1F44D}",onboardStep2Body:"\u6253\u5F00\u4EFB\u610F\u5361\u7247\uFF0C\u70B9 \u{1F44D} \u6709\u7528 / \u{1F44E} \u6CA1\u7528\u3002\u4E0D\u7528\u5148\u641C\u7D22\uFF0C\u6309\u94AE\u73B0\u5728\u4E00\u76F4\u90FD\u5728\u3002\u5B83\u4F1A\u5E2E\u52A9\u53EC\u56DE\u6392\u5E8F\u3002",onboardStep3Title:"\u5DE6\u4FA7\u65B0\u589E\u652F\u6301\u5165\u53E3",onboardStep3Body:"\u4EA4\u6D41\u7FA4\u3001\u8D5E\u52A9\u3001\u65E7\u7A0B\u5E8F\u3001\u5F02\u5E38\u53CD\u9988\u90FD\u5728\u5DE6\u680F\u5E95\u90E8\uFF1B\u9700\u8981\u5E2E\u52A9\u65F6\u4E0D\u7528\u7FFB README\u3002",onboardTip:"\u63D0\u793A\uFF1A\u8FD9\u4E2A\u5F15\u5BFC\u53EF\u4EE5\u5728\u300C\u652F\u6301\u4E0E\u4EA4\u6D41\u300D\u91CC\u91CD\u65B0\u6253\u5F00\u3002",navWorkspace:"\u5DE5\u4F5C\u533A",navSystem:"\u7CFB\u7EDF",navSupport:"\u652F\u6301",navQuotes:"\u4F5C\u8005\u8BED\u5F55",quoteHint:"\u70B9\u51FB\u6362\u4E00\u53E5",v5Local:"\u672C\u5730\u8FD0\u884C",v5Star:"\u53BB GitHub \u70B9 Star",runtimeTitle:"\u8FD0\u884C\u72B6\u6001",runtimeSub:"\u77E5\u8BC6\u5E93\u3001\u5907\u4EFD\u3001\u81EA\u52A8\u6C89\u6DC0\u4E0E\u7248\u672C",dbTitle:"\u77E5\u8BC6\u5E93",backupTitle:"\u5907\u4EFD",captureTitle:"\u81EA\u52A8\u6C89\u6DC0",versionTitle:"\u7248\u672C",cardsUnit:"\u5F20\u5361",links:"\u8FDE\u63A5",todayReview:"\u4ECA\u65E5\u56DE\u770B",openArrow:"\u6253\u5F00 \u2192",reshuffle:"\u6362\u4E00\u5F20",insightDecision:"\u51B3\u7B56",insightRoot:"\u6839\u56E0",insightLesson:"\u6559\u8BAD",insightSummary:"\u6458\u8981",pinCard:"\u56FA\u5B9A\u8FD9\u5F20\u5361",unpinCard:"\u53D6\u6D88\u56FA\u5B9A",pinnedOnly:"\u5DF2\u56FA\u5B9A",toastApproved:"\u5DF2\u6279\u51C6",toastRejected:"\u5DF2\u9A73\u56DE",toastCardDeleted:"\u5DF2\u5220\u9664",toastRestored:"\u5DF2\u6062\u590D",toastPurged:"\u5DF2\u5F7B\u5E95\u5220\u9664",toastPurgedExpired:"\u5DF2\u6E05\u7406\u8FC7\u671F\u56DE\u6536\u7AD9",toastFailed:"\u64CD\u4F5C\u5931\u8D25",noSelection:"\u8BF7\u5148\u9009\u62E9\u8981\u5904\u7406\u7684\u5361\u7247",enabledLabel:"\u542F\u7528\u8BB0\u5FC6\u6838\u5FC3",vaultDirLabel:"\u8BB0\u5FC6\u5E93\u76EE\u5F55\uFF08\u5355\u5E93\uFF09",captureCooldownMs:"\u6C89\u6DC0\u51B7\u5374 (ms)",captureProvider:"\u84B8\u998F provider\uFF08\u7559\u7A7A\u81EA\u52A8\uFF09",routeAuto:"\u81EA\u52A8\uFF08\u6309\u6CE8\u518C\u987A\u5E8F\uFF09",routeListFail:"\u53D6\u4E0D\u5230\u6A21\u578B\u5217\u8868\uFF08{err}\uFF09\u2192 \u4E0B\u9762\u53EF\u76F4\u63A5\u624B\u586B provider / model\uFF1B\u684C\u9762\u7248\u5F39\u7A97\u4F1A\u81EA\u52A8\u5411\u5BBF\u4E3B\u4EE3\u7406\uFF0C\u82E5\u4ECD\u5931\u8D25\u8BF7\u4ECE DSH \u8BBE\u7F6E\u9875\u6253\u5F00",captureFollowSession:"\u8DDF\u968F\u5F53\u524D\u4F1A\u8BDD\uFF08\u84B8\u998F\u7528\u4F1A\u8BDD\u7684 provider/model\uFF09",captureFirstOnly:"\u4EC5\u8BD5\u9996\u9009\uFF08\u5931\u8D25\u5373\u505C\uFF0C\u4E0D\u8F6E\u6362\u515C\u5E95\uFF09",llmTest:"\u6D4B\u8BD5\u84B8\u998F\u8DEF\u7531",llmTestOk:"\u2713 \u8C03\u7528\u6210\u529F",llmTestFail:"\u2717 \u8C03\u7528\u5931\u8D25",llmCandidates:"\u5019\u9009\u6570",captureModel:"\u84B8\u998F model\uFF08\u7559\u7A7A\u81EA\u52A8\uFF09",recallEmbedding:"\u8BED\u4E49\u53EC\u56DE provider\uFF08\u53EF\u9009\uFF09",sessionBudgetChars:"\u4F1A\u8BDD\u9884\u7B97 (\u5B57\u7B26)",saving:"\u4FDD\u5B58\u4E2D\u2026",savePending:"\u5DF2\u5199\u5165\u914D\u7F6E\u6587\u4EF6\uFF1B\u5BBF\u4E3B\u4ECD\u662F\u65E7\u7248\uFF0C\u91CD\u542F DSH \u540E\u5373\u4EE5\u65B0\u503C\u4E3A\u51C6\uFF08\u672C\u9762\u677F\u5DF2\u751F\u6548\uFF09",actionRunning:"\u5904\u7406\u4E2D\u2026",recycleEmptyHint:"\u56DE\u6536\u7AD9\u4E3A\u7A7A\uFF1A\u5220\u6389\u7684\u5361\u7247\u4F1A\u5148\u653E\u5230\u8FD9\u91CC\uFF0C\u4FDD\u7559 {days} \u5929\u540E\u81EA\u52A8\u6E05\u7406\u3002",recyclePurgeAll:"\u6E05\u7A7A\u56DE\u6536\u7AD9",recyclePurgeAllConfirm:"\u6C38\u4E45\u5220\u9664\u56DE\u6536\u7AD9\u91CC\u7684\u5168\u90E8 {n} \u5F20\u5361\u7247\uFF1F\u6B64\u64CD\u4F5C\u4E0D\u53EF\u6062\u590D\u3002",toastPurgeAll:"\u5DF2\u6C38\u4E45\u5220\u9664 {n} \u5F20",bucketDeleted:"\u5DF2\u5220\u9664",restoreToQueue:"\u9000\u56DE\u5BA1\u6838",fbCopyManual:"\u81EA\u52A8\u590D\u5236\u88AB\u6D4F\u89C8\u5668\u62E6\u622A\uFF0C\u5DF2\u628A\u5185\u5BB9\u653E\u5728\u4E0B\u9762\uFF1A\u70B9\u300C\u5168\u9009\u300D\u518D\u6309 Ctrl+C",vcPage:"\u9875\u9762\u811A\u672C",vcPageStale:"\u26A0 \u5F53\u524D\u9875\u9762\u4ECD\u5728\u8FD0\u884C\u65E7\u7248\u811A\u672C\uFF08\u9875\u9762 v{page} / \u78C1\u76D8 v{disk}\uFF09\uFF1A\u6309 Ctrl+F5 \u5237\u65B0\u9875\u9762\u5373\u751F\u6548\uFF1B\u82E5\u300C\u8FD0\u884C\u4E2D\u300D\u4ECD\u662F\u65E7\u7248\u53F7\uFF0C\u5219\u8FD8\u9700\u91CD\u542F\u684C\u9762\u7248 / DSH",vcLoaded:"\u8FD0\u884C\u4E2D\uFF08\u670D\u52A1\u672C\u9875\u7684\u8FDB\u7A0B\uFF09",vcResident:"\u5E38\u9A7B\u5B9E\u4F8B",vcOnDisk:"\u78C1\u76D8\u5B89\u88C5",vcLatest:"npm \u6700\u65B0",vcStale:"\u78C1\u76D8\u5DF2\u5B89\u88C5 v{disk}\uFF0C\u4F46\u670D\u52A1\u672C\u9875\u7684\u8FDB\u7A0B\u4ECD\u52A0\u8F7D v{loaded} \u2014\u2014 \u70B9\u300C\u91CD\u542F\u5E38\u9A7B\u5B9E\u4F8B\u300D\u5373\u53EF\u7528\u65B0\u4EE3\u7801\u91CD\u542F\u5B83\uFF08\u4E0D\u7528\u91CD\u542F DSH\uFF09",vcRestart:"\u91CD\u542F\u5E38\u9A7B\u5B9E\u4F8B",vcRestarting:"\u91CD\u542F\u4E2D\u2026",vcRestartSent:"\u5DF2\u8C03\u5EA6\u91CD\u542F\u5E38\u9A7B\u5B9E\u4F8B\uFF1A\u7EA6 3-8 \u79D2\u540E\u65B0\u8FDB\u7A0B\u63A5\u7BA1\uFF0C\u8BF7\u7A0D\u7B49\u518D\u5237\u65B0\u9875\u9762\uFF08Ctrl+F5\uFF09",vcRestartCurrent:"\u5E38\u9A7B\u5B9E\u4F8B\u5DF2\u7ECF\u662F\u6700\u65B0\u7248\uFF0C\u65E0\u9700\u91CD\u542F",vcRestartAnyway:"\u5E38\u9A7B\u5B9E\u4F8B\u5DF2\u662F v{ver}\uFF1B\u901A\u5E38\u65E0\u9700\u91CD\u542F\uFF0C\u5361\u4F4F/\u884C\u4E3A\u5F02\u5E38\u65F6\u53EF\u5F3A\u5236\u91CD\u542F",vcHostProcessStale:"\u78C1\u76D8\u5DF2\u5B89\u88C5 v{disk}\uFF0C\u4F46**\u670D\u52A1\u672C\u9875\u7684\u8FDB\u7A0B**\uFF08DSH \u5BBF\u4E3B\uFF09\u52A0\u8F7D\u7684\u4ECD\u662F v{loaded} \u2014\u2014 \u5B83\u6765\u81EA\u5BBF\u4E3B\u542F\u52A8\u65F6\u7684\u90A3\u4EFD\u4EE3\u7801\uFF1A**\u91CD\u542F\u5E38\u9A7B\u5B9E\u4F8B\u4E0D\u4F1A\u6539\u53D8\u672C\u9875**\uFF0C\u9700\u5B8C\u5168\u9000\u51FA\u5E76\u91CD\u5F00 DSH\u3002",vcRestartFixes:"\u70B9\u51FB\u4F1A\u628A\u5E38\u9A7B\u5B9E\u4F8B\uFF08\u7AEF\u53E3\u4E0A\u90A3\u4E2A\uFF09\u6362\u6210 v{disk}\uFF08\u5F53\u524D v{served}\uFF09\uFF0C\u4E0D\u7528\u91CD\u542F DSH",vcRestartStart:"\u70B9\u51FB\u4F1A\u7528\u5F53\u524D\u78C1\u76D8\u7248\u672C v{disk} \u628A\u5E38\u9A7B\u5B9E\u4F8B\u62C9\u8D77\u6765\uFF08\u4E0D\u7528\u91CD\u542F DSH\uFF09",vcRestartRepair:"\u70B9\u51FB\u4F1A\u628A\u5B83\u91CD\u65B0\u6258\u7BA1\u5E76\u4FDD\u6D3B\uFF08\u7248\u672C\u5DF2\u662F v{disk}\uFF0C\u4E0D\u7528\u91CD\u542F DSH\uFF09",vcRestartHostOnly:"\u5E38\u9A7B\u5B9E\u4F8B\u5DF2\u662F v{disk}\uFF1B\u672C\u9875\u663E\u793A v{loaded} \u6765\u81EA DSH \u5BBF\u4E3B \u2014\u2014 \u91CD\u542F\u5E38\u9A7B\u5B9E\u4F8B\u4E0D\u5F71\u54CD\u672C\u9875\uFF0C\u8BF7\u91CD\u542F DSH",vcRestartFail:"\u91CD\u542F\u8BF7\u6C42\u5931\u8D25",vcRestartNoRoute:"\u5F53\u524D\u9875\u9762\u5BF9\u63A5\u7684\u8FDB\u7A0B\u8FD8\u662F\u65E7\u7248\uFF08\u6CA1\u6709\u8FD9\u4E2A\u63A5\u53E3\uFF09\uFF1A\u8BF7\u91CD\u542F\u684C\u9762\u7248 / DSH \u540E\u518D\u8BD5\uFF0C\u6216\u6267\u884C {cmd}",vcHostStale:"\u4E0A\u65B9\u7684\u300C\u8FD0\u884C\u4E2D\u300D\u6765\u81EA\u670D\u52A1\u672C\u9875\u7684\u8FDB\u7A0B\uFF1B\u5E38\u9A7B\u5B9E\u4F8B\u5DF2\u662F\u65B0\u7248 \u2014\u2014 \u8981\u8BA9\u5B83\u4E5F\u53D8\u6210\u65B0\u7248\u53F7\uFF0C\u9700\u91CD\u542F\u684C\u9762\u7248 / DSH",vcResidentDownShort:"\u672A\u8FD0\u884C",vcResidentDown:"\u5E38\u9A7B\u5B9E\u4F8B\u6CA1\u5728\u8FD0\u884C\uFF08\u7AEF\u53E3 {port} \u65E0\u54CD\u5E94\uFF09\u2014\u2014 \u70B9\u4E0B\u9762\u7684\u6309\u94AE\u7528\u65B0\u4EE3\u7801\u628A\u5B83\u62C9\u8D77\u6765\uFF1B\u62C9\u4E0D\u8D77\u6765\u65F6\u6267\u884C {cmd}\uFF0C\u5E76\u8D34\u4E00\u4E0B dsh-memory status \u7684\u8F93\u51FA",vcResidentUnmanagedShort:"\u672A\u6258\u7BA1",vcResidentUnmanaged:"\u5E38\u9A7B\u5B9E\u4F8B\u5728\u670D\u52A1 v{served}\uFF0C\u4F46**\u6CA1\u6709\u770B\u95E8\u72D7\u4FDD\u6D3B**\uFF08\u505C\u6B62 / \u786C\u6740\u540E\u6B8B\u7559\u7684\u5B64\u513F\uFF09\u2014\u2014 \u70B9\u4E0B\u9762\u7684\u6309\u94AE\u628A\u5B83\u91CD\u65B0\u6258\u7BA1\uFF08\u91CD\u65B0\u62C9\u4E00\u4E2A\u770B\u95E8\u72D7 + \u65B0\u5B9E\u4F8B\uFF09\uFF1B\u4E5F\u53EF\u4EE5\u6267\u884C {cmd}",vcResidentLockUnknownShort:"\u6258\u7BA1\u72B6\u6001\u672A\u77E5",vcResidentReplaceBlockedShort:"\u4E0D\u53EF\u66FF\u6362",vcResidentHostManagedShort:"\u5BBF\u4E3B\u6258\u7BA1",vcResidentReplaceBlocked:"\u5E38\u9A7B\u5B9E\u4F8B**\u4E0D\u53EF\u66FF\u6362**\uFF08\u73AF\u5883\u9650\u5236\uFF09\uFF1A\u770B\u95E8\u72D7\u9501\u76EE\u5F55\u4E0D\u53EF\u5199\uFF08{err}\uFF1B{path}\uFF09\u2192 \u7AEF\u53E3\u4E0A\u4F1A**\u957F\u671F**\u505C\u5728 v{served}\u3002\u8FD9\u4E0D\u662F\u300C\u6682\u65F6\u843D\u540E\u300D\uFF1A\u81EA\u52A8\u66FF\u6362\u88AB\u6B63\u786E\u5730\u62D2\u7EDD\uFF08\u907F\u514D\u7559\u4E0B\u5B64\u513F\uFF09\u3002\u51FA\u8DEF\uFF1A\u4FEE\u590D\u8BE5\u76EE\u5F55\u6743\u9650\u540E\u6267\u884C {cmd}\uFF0C\u6216\u524D\u53F0\u89C2\u5BDF dsh-memory watchdog --port 7999",vcResidentLockUnknown:"\u5E38\u9A7B\u5B9E\u4F8B\u5728\u670D\u52A1 v{served}\uFF0C\u4F46**\u770B\u95E8\u72D7\u9501\u6587\u4EF6\u5199\u4E0D\u8FDB\u53BB**\uFF08\u53D7\u9650\u73AF\u5883\uFF1A\u6C99\u7BB1\u7981\u5199 / ACL / \u975E\u7CFB\u7EDF\u76D8\uFF09\u2192 \u65E0\u6CD5\u5224\u65AD\u5B83\u6709\u6CA1\u6709\u88AB\u6258\u7BA1\uFF08\u4E0D\u662F\u300C\u672A\u6258\u7BA1\u300D\uFF09\u3002\u539F\u56E0\uFF1A{err}\uFF08{path}\uFF09\u3002\u4FDD\u6D3B\u901A\u5E38\u4ECD\u7136\u6709\u6548\uFF1B\u70B9\u4E0B\u9762\u7684\u6309\u94AE\u53EF\u7528\u65B0\u4EE3\u7801\u91CD\u65B0\u6258\u7BA1\u4E00\u6B21\u3002",vcOutdated:"\u6709\u65B0\u7248\u672C",vcUpToDate:"\u5DF2\u662F\u6700\u65B0",vcCheck:"\u68C0\u67E5\u66F4\u65B0",checking:"\u68C0\u67E5\u4E2D\u2026",vcCheckFail:"\u68C0\u67E5\u66F4\u65B0\u5931\u8D25",recallSummaryLen:"\u53EC\u56DE\u6458\u8981\u957F\u5EA6",recallBody:"\u53EC\u56DE\u542B\u6B63\u6587",secretHint:"\u51ED\u8BC1\u53D6\u7528\u63D0\u793A\uFF08\u6CE8\u5165\u6BCF\u4E2A\u4F1A\u8BDD\uFF09",autoWeb:"Web server",autoWebMode:"\u4FDD\u6D3B\u6A21\u5F0F",webPort:"Web \u7AEF\u53E3",webCheckIntervalMs:"\u63A2\u6D3B\u95F4\u9694(ms)",webMaxRestart:"\u6700\u5927\u91CD\u542F\u6B21\u6570",watchdogAutoSpawn:"\u770B\u95E8\u72D7\u8FDB\u7A0B",autoRestartOnDrift:"\u7248\u672C\u6F02\u79FB\u81EA\u52A8\u91CD\u542F\u5E38\u9A7B\u5B9E\u4F8B",autoMcpSetup:"\u81EA\u52A8\u6302\u8F7D MCP",saveConfig:"\u4FDD\u5B58\u914D\u7F6E",saveFail:"\u4FDD\u5B58\u5931\u8D25",savedOk:"\u5DF2\u4FDD\u5B58",savedDirect:"\u672C\u673A\u6CA1\u6709 DSH \u5BBF\u4E3B\u5728\u8FD0\u884C\uFF0C\u5DF2\u76F4\u63A5\u5199\u5165\u5171\u4EAB\u914D\u7F6E\uFF08hooks / MCP / \u72EC\u7ACB\u9875\u7ACB\u5373\u751F\u6548\uFF09",savedApplied:"\u5DF2\u4FDD\u5B58\u5E76\u751F\u6548\uFF08\u5BBF\u4E3B\u5DF2\u5728\u8BF7\u6C42\u4E0A\u4E0B\u6587\u91CC\u5E94\u7528\uFF09",saveQueued:"\u5DF2\u4EA4\u7ED9 DSH \u5BBF\u4E3B\u540C\u6B65\uFF0C\u5C1A\u672A\u786E\u8BA4\u751F\u6548",saveHostGuard:"\u8BE5\u5BBF\u4E3B\u4E0D\u5141\u8BB8\u63D2\u4EF6\u4ECE\u81EA\u5DF1\u7684\u56DE\u8C03\u4E0A\u4E0B\u6587\u91CC\u5199\u914D\u7F6E\uFF1B\u8BF7\u5728\u300CDSH \u8BBE\u7F6E \u2192 \u8BB0\u5FC6\u300D\u91CC\u6539\u540C\u4E00\u9879\uFF0C\u6216\u7F16\u8F91 profile \u7684\u914D\u7F6E\u8865\u4E01\u5C42",saveFailHint:"\u5BBF\u4E3B\u4FA7\u672A\u5E94\u7528\uFF0C\u8BE6\u89C1\u300C\u53CD\u9988\u5F02\u5E38\u300D\u91CC\u7684\u8BCA\u65AD\u4FE1\u606F",recallTool:"recall \u5DE5\u5177",costControl:"\u6210\u672C\u63A7\u5236",costHint:"\u7701 token\u3001\u63A7 LLM \u6D88\u8017",distillEnabled:"\u84B8\u998F\u77E5\u8BC6\u5361(\u5F00=LLM \u538B\u7F29, \u5173=\u539F\u6587\u5361\u96F6 LLM)",dedupByLLM:"\u8BED\u4E49\u53BB\u91CD\u5582 LLM(\u5173=\u7EAF\u8BCD\u6CD5\u66F4\u7701)",captureMaxTokens:"\u84B8\u998F\u8F93\u51FA\u4E0A\u9650(token)",captureTimeoutMs:"\u84B8\u998F\u8D85\u65F6(\u6BEB\u79D2\uFF1B\u672C\u5730\u5927\u6A21\u578B\u51B7\u542F\u52A8\u5EFA\u8BAE 120000+)",recallMinScore:"\u53EC\u56DE\u76F8\u5173\u6027\u9608\u503C(\u8D8A\u9AD8\u8D8A\u7701)",configNeedsDsh:"\u914D\u7F6E\u7F16\u8F91\u9700\u5728 DSH \u5185\u6253\u5F00\uFF08\u672C\u9875\u53EF\u80FD\u53EA\u8BFB\u6216\u6709\u90E8\u5206\u7F3A\u5931\uFF09",installMcp:"\u5B89\u88C5 MCP",uninstallMcp:"\u5378\u8F7D MCP",uninstallConfirm:"\u786E\u8BA4\u5378\u8F7D\u8BE5\u667A\u80FD\u4F53\u7684 MCP\uFF1FClaude Code/Codex \u5C06\u65E0\u6CD5\u518D\u8C03\u7528\u8BB0\u5FC6\u5E93\u3002",presetConfig:"\u4E00\u952E\u63A8\u8350\u914D\u7F6E",presetHint:"\u70B9\u51FB\u586B\u5145\u5BF9\u5E94\u65B9\u6848\uFF0C\u70B9\u4FDD\u5B58\u751F\u6548",planApplied:"\u5DF2\u586B\u5165\u300C{plan}\u300D\xB7 \u70B9\u300C\u4FDD\u5B58\u914D\u7F6E\u300D\u751F\u6548",planDescA:"\u4E2A\u4EBA\u5F00\u53D1\u63A8\u8350 \xB7 \u84B8\u998F 4000 \xB7 \u5173\u770B\u95E8\u72D7",planDescB:"\u9884\u7B97\u654F\u611F \xB7 \u5173\u84B8\u998F \xB7 \u8FD1 0 \u6210\u672C",planDescC:"\u957F\u9879\u76EE \xB7 \u5F00\u770B\u95E8\u72D7 \xB7 \u9AD8\u8D28\u91CF",cfgSubCore:"\u81EA\u52A8\u6C89\u6DC0 / \u53EC\u56DE / \u5E93\u76EE\u5F55\u4E0E\u53BB\u91CD\u7B56\u7565",cfgSubMulti:"\u6309\u9879\u76EE\u9694\u79BB\u8BB0\u5FC6\u5E93\uFF0C\u5207\u6362\u540E CLI / MCP / hooks \u540C\u6B65\u751F\u6548",cfgSubCost:"\u63A7\u5236 LLM \u8C03\u7528\u4E0E\u53EC\u56DE\u89C4\u6A21\uFF0C\u76F4\u63A5\u51B3\u5B9A\u82B1\u591A\u5C11\u94B1",cfgSubAudit:"\u4EC0\u4E48\u5185\u5BB9\u9700\u8981\u4F60\u4EBA\u5DE5\u786E\u8BA4\u540E\u624D\u8FDB\u4E3B\u5E93",cfgSubService:"\u4FDD\u6D3B\u3001\u770B\u95E8\u72D7\u4E0E\u7248\u672C\u81EA\u6108\uFF0C\u4E00\u822C\u4FDD\u6301\u9ED8\u8BA4\u5373\u53EF",cfgDirty:"\u6709\u672A\u4FDD\u5B58\u7684\u66F4\u6539",cfgClean:"\u5DF2\u540C\u6B65",unitChars:"\u5B57",unitPerDay:"\u5F20 / \u5929",unitTokens:"tokens",unitMs:"\u6BEB\u79D2",unitTimes:"\u6B21",unitDays:"\u5929",mcpAutoHint:"\u81EA\u52A8\u8BC6\u522B\u5DF2\u5B89\u88C5\u7684 Agent \u4E0E\u5176 MCP \u914D\u7F6E\uFF08\u53EA\u8BFB\u63A2\u6D4B\uFF0C\u4E0D\u6539\u4EFB\u4F55\u6587\u4EF6\uFF09",mcpRefresh:"\u91CD\u65B0\u68C0\u6D4B",mcpSummary:"\u8BC6\u522B\u5230 {agents} \u4E2A Agent \xB7 {servers} \u4E2A MCP \xB7 {mounted} \u4E2A\u5DF2\u6302\u8F7D\u672C\u63D2\u4EF6",mcpNoServers:"\u672A\u914D\u7F6E MCP",mcpDetectedOnly:"\u4EC5\u8BC6\u522B",planA:"A \u8F7B\u91CF\u7701\u5FC3",planB:"B \u6781\u81F4\u7701\u94B1",planC:"C \u9AD8\u8D28\u91CF",pluginInfo:"\u63D2\u4EF6\u4FE1\u606F",organizeTitle:"\u6574\u7406\u5EFA\u8BAE",scanAndOrganize:"\u4E00\u952E\u641C\u7D22\u548C\u6574\u7406",scanHint:"\u70B9\u300C\u{1F50D} \u4E00\u952E\u641C\u7D22\u548C\u6574\u7406\u300D\u626B\u63CF\u76F8\u4F3C\u5361/\u9648\u65E7\u5361\uFF0C\u518D\u7528\u300C\u26A1 \u4E00\u952E\u4F18\u5316\u300D\u6267\u884C\u3002",mergeNow:"\u5408\u5E76",delete:"\u5220\u9664",captureAlert:"\u81EA\u52A8\u6C89\u6DC0\u5F02\u5E38",captureAlertHint:"\u6253\u5F00\u5DE6\u680F\u300C\u7528\u91CF/\u4ECA\u65E5\u300D\u770B\u81EA\u52A8\u6C89\u6DC0\u65E5\u5FD7\uFF1B\u82E5\u662F\u63A5\u53E3/\u7248\u672C\u4E0D\u5339\u914D\uFF0C\u9700\u66F4\u65B0 memory-eternal \u63D2\u4EF6\u3002",captureLog:"\u81EA\u52A8\u6C89\u6DC0\u65E5\u5FD7",captureLogHint:"\u6BCF\u8F6E\u5BF9\u8BDD\u7ED3\u675F\u540E\u81EA\u52A8\u8DD1\uFF1A\u76D1\u542C \u2192 \u5224\u5B9A \u2192 \u5199\u5361\u3002\u8FD9\u91CC\u663E\u793A\u6700\u8FD1 100 \u6761\uFF0C\u7528\u6765\u6392\u67E5\u300C\u4E3A\u4EC0\u4E48\u6CA1\u5199\u5361\u300D\u3002",captureLogEmpty:"\u8FD8\u6CA1\u6709\u8BB0\u5F55\u3002\u8DDF Agent \u804A\u4E00\u8F6E\uFF08> \u6355\u83B7\u6700\u5C0F\u957F\u5EA6\uFF09\u540E\u518D\u56DE\u6765\u770B\u3002",healthTitle:"\u5065\u5EB7\u6982\u89C8",healthHint:"\u5E93 / \u5907\u4EFD / \u6C89\u6DC0 / \u7248\u672C \u2014\u2014 \u4E00\u773C\u770B\u6E05\u6709\u6CA1\u6709\u9759\u9ED8\u574F\u6389\u7684\u4E1C\u897F",healthDb:"\u77E5\u8BC6\u5E93",healthDbBad:"\u5E93\u4E0D\u53EF\u5199\u6216\u635F\u574F",healthBackups:"\u5907\u4EFD",healthNoBackups:"\u6CA1\u6709\u5907\u4EFD\uFF08\u6267\u884C dsh-memory doctor \u53EF\u5EFA\uFF0C\u5BBF\u4E3B\u4E5F\u4F1A\u6BCF\u65E5\u5907\u4EFD\uFF09",healthBackupAge:"{n} \u4E2A \xB7 \u6700\u8FD1 {d} \u5929\u524D",healthBackupToday:"{n} \u4E2A \xB7 \u4ECA\u5929",healthCapture:"\u81EA\u52A8\u6C89\u6DC0",healthNoRecords:"\u6682\u65E0\u8BB0\u5F55\uFF08\u8FD8\u6CA1\u89E6\u53D1\u8FC7\u6C89\u6DC0\uFF09",healthCapOk:"\u6700\u8FD1\u4E00\u6B21\u6210\u529F\u5199\u5361",healthCapFail:"\u6700\u8FD1\u4E00\u6B21\u5931\u8D25",healthRunAlign:"\u8FD0\u884C\u300C\u7248\u672C\u5BF9\u9F50\u68C0\u67E5\u300D\u540E\u663E\u793A",healthVersion:"\u7248\u672C",ledgerTitle:"\u8BB0\u5FC6\u8D26\u672C\uFF08\u8FD1 7 \u5929\uFF09",ledgerHint:"\u53EC\u56DE\u6CE8\u5165\u4E86\u591A\u5C11\u3001\u84B8\u998F\u8C03\u7528\u4E86\u591A\u5C11\u6B21 \u2014\u2014 \u5224\u65AD\u300C\u5230\u5E95\u7701\u4E0D\u7701 token\u300D\u7684\u7B2C\u4E00\u5757\u6570\u636E",ledgerRecalls:"\u53EC\u56DE\u6B21\u6570",ledgerInjected:"\u6CE8\u5165",ledgerChars:"\u5B57\u7B26",ledgerCaptures:"\u6C89\u6DC0\u6B21\u6570",ledgerLlmCalls:"LLM \u8C03\u7528",ledgerEstimate:"\u4F30\u7B97 token",ledgerEstimateHint:"\u6309\u7EA6 2 \u5B57\u7B26 \u2248 1 token \u7C97\u4F30\uFF0C\u53EA\u770B\u91CF\u7EA7",ledgerUseful:"\u53EC\u56DE\u6709\u7528\u7387",ledgerUsefulHint:"\u6765\u81EA\u300C\u6709\u7528 / \u6CA1\u7528\u300D\u53CD\u9988\uFF1B\u4F4E\u4E8E 60% \u8BF4\u660E\u6CE8\u5165\u53EF\u80FD\u51C0\u4E8F",ledgerFormula:"\u51C0\u6536\u76CA \u2248 \u88AB\u907F\u514D\u7684\u4E0A\u4E0B\u6587\u5F00\u9500 \u2212\uFF08\u6CE8\u5165\u5B57\u7B26 + \u84B8\u998F\u8C03\u7528 \xD7 \u5355\u4EF7\uFF09\u3002\u8D26\u672C\u53EA\u8BB0\u300C\u82B1\u4E86\u591A\u5C11\u300D\uFF0C\u6536\u76CA\u4FA7\u8BF7\u7ED3\u5408\u4F60\u5B9E\u9645\u7701\u4E0B\u7684\u91CD\u8BFB / \u8FD4\u5DE5\u6765\u5224\u65AD\u3002",ledgerNoData:"\u8FD1 7 \u5929\u8FD8\u6CA1\u6709\u8BB0\u5F55\uFF1A\u804A\u51E0\u8F6E\u6216\u8BA9 agent recall \u4E00\u6B21\u540E\u518D\u770B\u3002",ledgerNeedRestart:"\u5BBF\u4E3B\u4ECD\u5728\u8DD1\u65E7\u7248 API\uFF08/ledger \u4E0D\u5B58\u5728\uFF09\uFF1A\u5B8C\u5168\u9000\u51FA\u5E76\u91CD\u5F00 DSH \u540E\uFF0C\u8D26\u672C\u624D\u4F1A\u5F00\u59CB\u8BB0\u5F55\u3002",alignTitle:"\u7248\u672C\u5BF9\u9F50\u68C0\u67E5",alignRun:"\u5F00\u59CB\u68C0\u67E5",alignFix:"\u91CD\u5199\u63A5\u7EBF",alignFixConfirm:"\u91CD\u5199 MCP / hooks \u63A5\u7EBF\uFF1F\uFF08\u53EA\u78B0\u63D2\u4EF6\u81EA\u5DF1\u7684\u952E\uFF0C\u4E0D\u52A8\u4F60\u7684\u6570\u636E\u4E0E\u914D\u7F6E\uFF09",alignFixed:"\u63A5\u7EBF\u5DF2\u91CD\u5199\uFF1B\u82E5\u4E0A\u9762\u63D0\u793A\u300C\u5BBF\u4E3B\u8FDB\u7A0B\u65E7\u300D\uFF0C\u4ECD\u9700\u5B8C\u5168\u9000\u51FA\u5E76\u91CD\u5F00 DSH",alignFail:"\u5BF9\u9F50\u68C0\u67E5\u5931\u8D25",alignHint:"\u63D2\u4EF6\u5347\u7EA7\u53EA\u6362\u78C1\u76D8\u6587\u4EF6 \u2014\u2014 \u5BBF\u4E3B\u5185\u5B58\u91CC\u7684\u4E8B\u4EF6\u8BA2\u9605\u4E0E MCP / hooks \u91CC\u7684\u65E7\u8DEF\u5F84\u4E0D\u4F1A\u81EA\u5DF1\u66F4\u65B0\uFF0C\u8FD9\u91CC\u4E00\u6B21\u67E5\u6E05",alignIdle:"\u70B9\u300C\u5F00\u59CB\u68C0\u67E5\u300D\uFF1A\u5BF9\u6BD4\u5BBF\u4E3B / \u5E38\u9A7B\u5B9E\u4F8B / npm \u7684\u7248\u672C\uFF0C\u5E76\u68C0\u67E5 MCP\u3001hooks \u91CC\u662F\u5426\u6709\u65E7\u8DEF\u5F84\u4E0E\u65E7\u53C2\u6570",alignDisk:"\u78C1\u76D8",alignResident:"\u5E38\u9A7B\u5B9E\u4F8B",alignHost:"\u5BBF\u4E3B\u8FDB\u7A0B",captureLogUnavailable:"\u65E5\u5FD7\u4EC5\u5728 DSH \u5BBF\u4E3B\u5185\u53EF\u7528\uFF08\u72EC\u7ACB Web \u9875\u6CA1\u6709 host \u8FD0\u884C\u65F6\uFF09\u3002",captureAgentCards:"Agent \u81EA\u52A8\u6C89\u6DC0\u7684\u5361",noCards:"\u6682\u65E0",loadMore:"\u52A0\u8F7D\u66F4\u591A",batchMerge:"\u4E00\u952E\u667A\u80FD\u5408\u5E76",mergeAllConfirm:"\u5C06\u6309\u76F8\u4F3C\u5EA6\u5206\u7EC4\u7684\u5361\u7247\u5404\u5408\u5E76\u4E3A\u4E00\u5F20\uFF08\u4FDD\u7559\u5404\u81EA kind\uFF09\uFF0C\u539F\u5361\u5220\u9664\uFF1F",crossVault:"\u8DE8\u5E93\u805A\u5408",deleteConfirm:"\u786E\u5B9A\u5220\u9664\u8BE5\u8BB0\u5FC6\u5361\uFF1F\u6B64\u64CD\u4F5C\u4E0D\u53EF\u64A4\u9500\u3002",editCard:"\u7F16\u8F91",editHint:"\u53EA\u6539\u6807\u9898 / \u6807\u7B7E / \u6B63\u6587\uFF1B\u72B6\u6001\u4E0E\u7C7B\u578B\u4ECD\u7531\u5BA1\u6838\u4E0E\u7CFB\u7EDF\u6D41\u8F6C\u51B3\u5B9A\uFF0C\u624B\u52A8\u7F16\u8F91\u4E0D\u4F1A\u7ED5\u8FC7\u5BA1\u6838\u3002",editTitle:"\u6807\u9898",editTags:"\u6807\u7B7E\uFF08\u9017\u53F7\u5206\u9694\uFF09",editTagsHint:"\u4F8B\u5982\uFF1A\u8BB0\u5FC6, \u68C0\u7D22, \u6027\u80FD",editBody:"\u6B63\u6587\uFF08Markdown\uFF09",editSave:"\u4FDD\u5B58",editSaving:"\u4FDD\u5B58\u4E2D\u2026",editCancel:"\u53D6\u6D88",editSaved:"\u5DF2\u4FDD\u5B58",editFail:"\u4FDD\u5B58\u5931\u8D25",editTitleEmpty:"\u6807\u9898\u4E0D\u80FD\u4E3A\u7A7A",editBodyEmpty:"\u6B63\u6587\u4E0D\u80FD\u4E3A\u7A7A",deleted:"\u5DF2\u5220\u9664",deleteFail:"\u5220\u9664\u5931\u8D25",deleteSelected:"\u5220\u9664\u9009\u4E2D",deletedSelected:"\u5F20\u5361\u5DF2\u5220\u9664",merge:"\u5408\u5E76",mergeNeed:"\u81F3\u5C11\u9009 2 \u5F20\u5361",mergeConfirm:"\u5C06\u6240\u9009\u5361\u7247\u5408\u5E76\u4E3A\u4E00\u5F20\u5E76\u5220\u9664\u539F\u5361\uFF1F",merged:"\u5DF2\u5408\u5E76",mergeFail:"\u5408\u5E76\u5931\u8D25",mcpInstalled:"\u2705 {agent} MCP \u5DF2\u5B89\u88C5",mcpUninstalled:"\u2705 {agent} MCP \u5DF2\u5378\u8F7D",mcpActionFail:"\u274C {agent} MCP \u64CD\u4F5C\u5931\u8D25\uFF1A{error}",dshHostLabel:"DeepSeek Harness\uFF08\u5F53\u524D\u5BBF\u4E3B\uFF09",restartHint:"\u5DF2\u4FDD\u5B58\u3002autoWebMode/watchdogAutoSpawn \u7B49\u9700\u91CD\u542F DSH \u751F\u6548\uFF1B\u5DF2\u6709\u5E38\u9A7B watchdog \u4E0D\u4F1A\u88AB\u81EA\u52A8\u505C\u6389\uFF0C\u9700 dsh-memory stop / restart\uFF08#19\uFF09",conflictRefresh:"\u914D\u7F6E\u5DF2\u88AB\u5916\u90E8\u4FEE\u6539\uFF0C\u8BF7\u5237\u65B0\u540E\u91CD\u8BD5",untitled:"\u65E0\u6807\u9898",tplBlank:"\u{1F4C4} \u7A7A\u767D",tagsHint:"\u6807\u7B7E\uFF08\u9017\u53F7\u5206\u9694\uFF09",connCount:"{n} \u8FDE\u63A5",tplDecisionTags:"\u51B3\u7B56, \u65B9\u6848",tplBugTags:"\u8E29\u5751, \u6559\u8BAD",tplMeetingTags:"\u4F1A\u8BAE, \u7EAA\u8981",tplWeeklyTags:"\u5468\u62A5",tplDecisionBody:`# \u6280\u672F\u51B3\u7B56\uFF1A[\u6807\u9898]
16
+ > \u5185\u5BB9\u8FC7\u957F\u5DF2\u622A\u65AD\uFF1A\u5B8C\u6574\u8BCA\u65AD\u8BF7\u5728\u63D2\u4EF6\u91CC\u70B9\u300C\u590D\u5236\u8BCA\u65AD\u4FE1\u606F\u300D\uFF0C\u518D\u8865\u5230 issue \u8BC4\u8BBA\u91CC\u3002`,u=m=>i(l.slice(0,m)+c);if(u(0).length>o)l=c;else{let m=0,h=l.length;for(;m<h;){let g=Math.ceil((m+h)/2);u(g).length<=o?m=g:h=g-1}l=l.slice(0,m)+c}s=i(l)}return s}function wf(e={}){return["## \u73B0\u8C61",String(e.description||"").trim()||"\uFF08\u8BF7\u63CF\u8FF0\u4F60\u9047\u5230\u7684\u95EE\u9898\uFF09","","## \u590D\u73B0\u6B65\u9AA4","1. ","2. ","","## \u671F\u671B\u884C\u4E3A","","## \u5B9E\u9645\u884C\u4E3A","","## \u73AF\u5883","- \u63D2\u4EF6\u7248\u672C: "+(e.version||"\uFF08\u89C1\u8BCA\u65AD\u4FE1\u606F\uFF09"),"",e.diagnostics||"","","---","> \u7531 memory-eternal \u63D2\u4EF6\u5185\u300C\u53CD\u9988\u5F02\u5E38\u300D\u751F\u6210\uFF08\u8BCA\u65AD\u4FE1\u606F\u5DF2\u81EA\u52A8\u8131\u654F\uFF1Ahome \u76EE\u5F55\u4E0E\u5404\u7C7B key/token \u5DF2\u66FF\u6362\uFF09\u3002"].join(`
17
+ `)}var rd="https://github.com/EternalNight996/memory-eternal",Uy=["\u6211\u5728\u4F7F\u7528 memory-eternal\uFF08DeepSeek Harness \u7684\u8BB0\u5FC6\u63D2\u4EF6\uFF09\u65F6\u9047\u5230\u4E86\u95EE\u9898\uFF0C\u8BF7\u4F60\u5E2E\u6211\u628A\u8FD9\u4E2A\u95EE\u9898\u63D0\u4EA4\u5230 GitHub\u3002","","\u4ED3\u5E93\uFF1A"+rd,"","\u8BF7\u6309\u8FD9\u4E2A\u6D41\u7A0B\u505A\uFF1A","","1. \u5148\u8DD1 `gh issue list --repo EternalNight996/memory-eternal --state open --limit 50`\uFF0C\u770B\u662F\u5426\u5DF2\u6709\u76F8\u540C\u95EE\u9898\uFF1A"," - \u5DF2\u6709 \u2192 \u7528 `gh issue comment <\u7F16\u53F7> --body-file <\u6587\u4EF6>` \u8865\u5145\u73B0\u8C61\uFF0C\u4E0D\u8981\u91CD\u590D\u5F00\u65B0 issue\uFF1B"," - \u6CA1\u6709 \u2192 \u7EE7\u7EED\u7B2C 2 \u6B65\u3002",'2. \u628A\u6B63\u6587\u5199\u6210\u6587\u4EF6\uFF0C\u7136\u540E `gh issue create --repo EternalNight996/memory-eternal --title "[Bug] <\u4E00\u53E5\u8BDD\u6982\u62EC>" --body-file <\u6587\u4EF6>`\uFF1B\u6B63\u6587\u7528\u8FD9\u4E2A\u7ED3\u6784\uFF1A'," \u73B0\u8C61 / \u590D\u73B0\u6B65\u9AA4 / \u671F\u671B\u884C\u4E3A / \u5B9E\u9645\u884C\u4E3A / \u73AF\u5883\uFF08\u63D2\u4EF6\u7248\u672C / DSH \u7248\u672C / \u64CD\u4F5C\u7CFB\u7EDF / Node\uFF09/ \u8BCA\u65AD\u4FE1\u606F\u3002","3. \u5982\u679C `gh` \u6CA1\u767B\u5F55\u6216\u4E0D\u53EF\u7528\uFF0C\u4E0D\u8981\u5C1D\u8BD5\u63D0\u4EA4\uFF0C\u6539\u4E3A\u8F93\u51FA\u4E00\u6761\u300C\u6807\u9898\u4E0E\u6B63\u6587\u90FD\u5DF2\u9884\u586B\u300D\u7684 GitHub \u65B0\u5EFA issue \u94FE\u63A5\u7ED9\u6211\uFF0C\u6211\u81EA\u5DF1\u70B9\u63D0\u4EA4\u3002","4. \u63D0\u4EA4\u6210\u529F\u540E\uFF0C\u628A issue \u94FE\u63A5\u53D1\u7ED9\u6211\u3002","","\u6CE8\u610F\uFF1A\u6211\u7684\u95EE\u9898\u63CF\u8FF0\u8BF7\u539F\u6837\u7167\u5F55\uFF0C\u4E0D\u8981\u66FF\u6211\u7F8E\u5316\u6216\u7701\u7565\u7EC6\u8282\uFF1B\u8BCA\u65AD\u4FE1\u606F\u539F\u6837\u653E\u8FDB\u300C\u8BCA\u65AD\u4FE1\u606F\u300D\u4E00\u8282\u3002","","\u6211\u7684\u95EE\u9898\u63CF\u8FF0\uFF1A","<\u5728\u8FD9\u91CC\u5199\u4F60\u7684\u95EE\u9898>","","\u8BCA\u65AD\u4FE1\u606F\uFF1A","<\u628A\u300C\u53CD\u9988\u5F02\u5E38\u300D\u5F39\u7A97\u91CC\u590D\u5236\u7684\u8BCA\u65AD\u4FE1\u606F\u7C98\u5230\u8FD9\u91CC>"].join(`
18
+ `),$y=["I hit a problem while using memory-eternal (a DeepSeek Harness memory plugin). Please file it on GitHub for me.","","Repo: "+rd,"","Workflow:","","1. Run `gh issue list --repo EternalNight996/memory-eternal --state open --limit 50` first: if a matching issue exists, add a comment with `gh issue comment <n> --body-file <file>` instead of opening a duplicate.",'2. Otherwise create it with `gh issue create --repo EternalNight996/memory-eternal --title "[Bug] <one-line summary>" --body-file <file>`, using sections: Symptoms / Steps to reproduce / Expected / Actual / Environment (plugin, DSH, OS, Node) / Diagnostics.',"3. If `gh` is not authenticated or unavailable, do NOT try to submit: output a GitHub new-issue link with the title and body pre-filled instead, and I will click submit myself.","4. Report the resulting issue URL back to me.","","Keep my description verbatim - do not rewrite or summarise it. Put the diagnostics under the Diagnostics section as-is.","","My description:","<write your problem here>","","Diagnostics:","<paste the diagnostics copied from the in-app Report-a-bug dialog>"].join(`
19
+ `);function xf(e={}){let t=e.lang==="en"?"en":"zh",n=t==="en"?$y:Uy,a=e.repo||"EternalNight996/memory-eternal";return n=n.split(rd).join("https://github.com/"+a),e.description&&(n=n.replace(t==="en"?"<write your problem here>":"<\u5728\u8FD9\u91CC\u5199\u4F60\u7684\u95EE\u9898>",String(e.description).trim())),e.diagnostics&&(n=n.replace(t==="en"?"<paste the diagnostics copied from the in-app Report-a-bug dialog>":"<\u628A\u300C\u53CD\u9988\u5F02\u5E38\u300D\u5F39\u7A97\u91CC\u590D\u5236\u7684\u8BCA\u65AD\u4FE1\u606F\u7C98\u5230\u8FD9\u91CC>",String(e.diagnostics).trim())),n}function kf({panX:e=0,panY:t=0,zoom:n=1,w:a=0,h:o=0,margin:i=60}={}){let l=n||1;return{x0:(0-e)/l-i,y0:(0-t)/l-i,x1:(a-e)/l+i,y1:(o-t)/l+i}}function yl(e,t,n,a){return a?e+n>=a.x0&&e-n<=a.x1&&t+n>=a.y0&&t-n<=a.y1:!0}function Sf(e,t=0){let n=Number(e)||0,a=Number(t)||0;if(n<=60)return 1/0;let o=n<=600?64:48;return a>=3?Math.min(o,32):o}function Cf(e,t={}){let n=Number.isFinite(t.limit)?t.limit:1/0,a=new Set,o=u=>{u&&a.size<n&&a.add(u)};if(o(t.focusId),o(t.hoverId),t.searchHits)for(let u of t.searchHits){if(a.size>=n)break;a.add(u)}let i=t.degree||{},l=u=>Number(i[u])||0,s=new Set;for(let u of Array.isArray(e)?e:[])u&&u.id&&s.add(u.id);let c=Array.isArray(t.order)&&t.order.length?t.order:(Array.isArray(e)?e:[]).slice().sort((u,m)=>l(m.id)-l(u.id)).map(u=>u.id);for(let u of c){if(a.size>=n)break;u&&s.has(u)&&!a.has(u)&&a.add(u)}return a}function Nf(e){let t=Math.floor(Number(e)||0);return t<=0?0:t>1200?48:t>700?60:t>300?110:200}function vl(e){let t=Math.floor(Number(e)||0),n=t>1e3?3e3:t>100?2e3:t>50?1200:800,a=t>100?.002:.005,o=t>1e3?.012:t>100?.005:.01,i=t>1e3?6:t>200?12:24;return{repulsion:n,attraction:a,centerGravity:o,velCap:i,theta:.8}}var Vy=.05,id=30;function ad(e,t,n,a){return(n>=e?1:0)+(a>=t?2:0)}var od=class e{constructor(t){let n=Math.max(16,Math.floor(Number(t)||0)*6+16);this.capacity=Math.max(0,Math.floor(Number(t)||0)),this.cap=n,this.cx=new Float64Array(n),this.cy=new Float64Array(n),this.half=new Float64Array(n),this.mass=new Float64Array(n),this.mx=new Float64Array(n),this.my=new Float64Array(n),this.child=new Int32Array(n*4),this.point=new Int32Array(n),this.fx=new Float64Array(this.capacity),this.fy=new Float64Array(this.capacity),this.count=0,this.lastVisits=0}ensureCapacity(t){if(t<=this.capacity)return;let n=new e(t);this.capacity=n.capacity,this.cap=n.cap,this.cx=n.cx,this.cy=n.cy,this.half=n.half,this.mass=n.mass,this.mx=n.mx,this.my=n.my,this.child=n.child,this.point=n.point,this.fx=n.fx,this.fy=n.fy,this.count=0}newNode(t,n,a){if(this.count>=this.cap)return-1;let o=this.count++;this.cx[o]=t,this.cy[o]=n,this.half[o]=a,this.mass[o]=0,this.mx[o]=0,this.my[o]=0,this.point[o]=-1;let i=o*4;return this.child[i]=-1,this.child[i+1]=-1,this.child[i+2]=-1,this.child[i+3]=-1,o}insert(t,n,a){let o=t[a];if(!o)return;let i=Number(o.x)||0,l=Number(o.y)||0;this.mass[n]+=1,this.mx[n]+=i,this.my[n]+=l;let s=n*4;if(this.child[s]===-1&&this.child[s+1]===-1&&this.child[s+2]===-1&&this.child[s+3]===-1){if(this.point[n]===-1){this.point[n]=a;return}let c=this.half[n]/2;if(c<.001||this.count+4>this.cap){this.point[n]=-2;return}let u=this.cx[n],m=this.cy[n];for(let g=0;g<4;g+=1)this.child[s+g]=this.newNode(u+(g&1?c:-c),m+(g&2?c:-c),c);let h=this.point[n];if(this.point[n]=-2,h>=0){let g=t[h];this.insert(t,this.child[s+ad(u,m,Number(g.x)||0,Number(g.y)||0)],h)}this.insert(t,this.child[s+ad(u,m,i,l)],a);return}this.insert(t,this.child[s+ad(this.cx[n],this.cy[n],i,l)],a)}build(t){let n=t.length;if(this.count=0,this.lastVisits=0,n===0)return-1;let a=1/0,o=-1/0,i=1/0,l=-1/0;for(let h=0;h<n;h+=1){let g=Number(t[h].x)||0,k=Number(t[h].y)||0;g<a&&(a=g),g>o&&(o=g),k<i&&(i=k),k>l&&(l=k)}let s=(a+o)/2,c=(i+l)/2,u=Math.max(1,Math.max(o-a,l-i)/2)*1.001,m=this.newNode(s,c,u);if(m<0)return-1;for(let h=0;h<n;h+=1)this.insert(t,m,h);return m}accumulate(t,n,a,o,i,l){let s=this.mass[t];if(s<=0)return;let c=this.mx[t]/s,u=this.my[t]/s,m=a-c,h=o-u,g=m*m+h*h;if(g<1e-9)return;let k=this.child[t*4]===-1;if(k&&this.point[t]===n)return;let E=Math.sqrt(g);if(this.lastVisits+=1,k||2*this.half[t]/E<l){let I=i*s/g;this.fx[n]+=m/E*I,this.fy[n]+=h/E*I;return}let T=t*4;for(let I=0;I<4;I+=1){let w=this.child[T+I];w>=0&&this.accumulate(w,n,a,o,i,l)}}compute(t,n){let a=t.length;this.ensureCapacity(a);let o=this.fx,i=this.fy;o.fill(0),i.fill(0),this.lastVisits=0;let l=this.build(t);if(l<0)return{fx:o,fy:i,visits:0};let s=n.repulsion,c=n.theta===void 0?.8:n.theta,u=n.skipIndex===void 0?-1:n.skipIndex;for(let m=0;m<a;m+=1){if(m===u)continue;let h=t[m];this.accumulate(l,m,Number(h.x)||0,Number(h.y)||0,s,c)}return{fx:o,fy:i,visits:this.lastVisits}}};function Tf(e,t={}){let n=e.nodes,a=n.length,o=t.params||vl(a),i=t.theta===void 0?o.theta:t.theta;e.tickCount=(e.tickCount||0)+1;let l=t.settleTicks===void 0?460:t.settleTicks,s=t.alphaDecay===void 0?.08:t.alphaDecay;e.alpha===void 0&&(e.alpha=1),e.tickCount<=l?e.alpha=1:e.alpha+=((e.dragNode?.35:0)-e.alpha)*s,e.alpha<1e-4&&(e.alpha=0);let c=Math.max(0,Math.min(1,Number(t.alphaFloor)||0));e.alpha<c&&(e.alpha=c);let u=t.alpha===void 0?e.alpha:t.alpha,m=Math.min(.4,e.tickCount/1500),h=t.damping===void 0?.9-m:Math.max(.1,Math.min(.95,Number(t.damping)||.5)),g=e.dragNode?n.indexOf(e.dragNode):-1;(!e.forceEngine||e.forceEngine.capacity<a)&&(e.forceEngine=new od(a));let k=e.forceEngine.compute(n,{repulsion:o.repulsion*u,theta:i,skipIndex:g}),E=k.fx,T=k.fy;for(let D=0;D<a;D+=1){if(D===g)continue;let P=n[D],A=E[D],j=T[D];if(Number.isFinite(A)||(A=0),Number.isFinite(j)||(j=0),e.clustered&&e.typeCenters&&e.typeCenters[P.type]){let ve=e.typeCenters[P.type];A+=(ve.x-P.x)*.006*u,j+=(ve.y-P.y)*.006*u}else A-=P.x*o.centerGravity*u,j-=P.y*o.centerGravity*u;let H=((Number(P.vx)||0)+A)*h,ce=((Number(P.vy)||0)+j)*h;H>o.velCap?H=o.velCap:H<-o.velCap&&(H=-o.velCap),ce>o.velCap?ce=o.velCap:ce<-o.velCap&&(ce=-o.velCap),P.vx=H,P.vy=ce}let I=e.edges||[],w=e.edgePairs||null,f=e.nodeById||null,y=w?w.length/2:I.length;for(let D=0;D<y;D+=1){let P,A;if(w)P=n[w[D*2]],A=n[w[D*2+1]];else{let G=I[D];P=f?f.get(G.sourceNodeId):null,A=f?f.get(G.targetNodeId):null}if(!P||!A)continue;let j=A.x-P.x,H=A.y-P.y,ce=Math.sqrt(j*j+H*H)||1,ve=(ce-100)*o.attraction*u,he=j/ce*ve,De=H/ce*ve;e.dragNode!==P&&(P.vx+=he,P.vy+=De),e.dragNode!==A&&(A.vx-=he,A.vy-=De)}let L=0;for(let D=0;D<a;D+=1){let P=n[D];D!==g&&(P.x+=P.vx,P.y+=P.vy,L+=P.vx*P.vx+P.vy*P.vy)}let O=a?Math.sqrt(L/a):0;return O<Vy&&e.tickCount>60&&!e.dragNode?e.quietTicks=(e.quietTicks|0)+1:e.quietTicks=0,{rms:O,tickCount:e.tickCount,quietTicks:e.quietTicks,params:o,visits:k.visits,alpha:u}}function ea(e){return(Array.isArray(e)?e:[]).filter(Boolean).join("/")}function Mf(e){return String(e??"").split("/").filter(Boolean)}function Ef(e,t,n={}){let a=ea(t);return`${e}/graph/level?path=${encodeURIComponent(a)}${n.all?"&all=1":""}`}function Gy(e){let t=Math.max(0,Math.floor(Number(e)||0)),n=24+38*Math.log10(Math.max(1,t));return Math.max(34,Math.min(240,Math.round(n)))}function Ky({kind:e="other",degree:t=0,maxDegree:n=1}={}){let a=Math.max(0,Number(t)||0),o=Math.max(1,Number(n)||1);return 9+Math.min(10,a/o*8)+(e==="core"?3:0)}function zf(e,t={}){let n=Math.max(0,Math.floor(Number(e)||0));if(n<1e4)return String(n);let a=t.unit||"\u4E07",o=t.locale||"zh-CN";if(t.intl!==!1)try{return new Intl.NumberFormat(o,{notation:"compact",maximumFractionDigits:1}).format(n)}catch{}return a==="\u4E07"?Math.round(n/1e3)/10+"\u4E07":n>=1e6?Math.round(n/1e5)/10+"M":Math.round(n/100)/10+"K"}function Rf(e,t={}){let n=e||{},a=n.type==="planet",o=n.kind||"other",i=String(n.label||n.title||n.name||n.id||"");return{id:String(n.id||""),title:i,name:i,type:o,planet:a,count:a?Math.max(0,Math.floor(Number(n.count)||0)):0,tags:Array.isArray(n.tags)?n.tags.slice():[],updated:n.updated||"",r:a?Gy(n.count):Ky({kind:o,degree:t.degree,maxDegree:t.maxDegree})}}function Lf(e){return{...e||{},repulsion:1600,centerGravity:.004}}function Df(e,t={}){let n=Math.max(1,Number(t.timeoutMs)||1600),a=Math.max(0,Number(t.elapsedMs)||0),o=String(e&&e.name||""),i=String(e&&e.message||e||""),s=o==="AbortError"||/abort/i.test(i)||a>=n;return{timeout:s,message:s?`\u5C42\u7EA7\u52A0\u8F7D\u8D85\u65F6\uFF08${n}ms\uFF09`:i||"\u672A\u77E5\u9519\u8BEF"}}function Pf(e=96){let t=Math.max(1,Math.floor(Number(e)||96)),n=new Map;return{get size(){return n.size},has(a){return n.has(a)},get(a){if(!n.has(a))return null;let o=n.get(a);return n.delete(a),n.set(a,o),o},set(a,o){for(n.has(a)&&n.delete(a),n.set(a,o);n.size>t;)n.delete(n.keys().next().value);return o},clear(){n.clear()},keys(){return[...n.keys()]}}}function Af(e={}){let t=e.raf||(c=>requestAnimationFrame(c)),n=e.cancelRaf||(c=>cancelAnimationFrame(c)),a=e.setTimeout||((c,u)=>setTimeout(c,u)),o=e.clearTimeout||(c=>clearTimeout(c)),i=new Set,l=new Set,s=[];return{raf(c){let u=t(()=>{i.delete(u),c()});return i.add(u),u},cancelRaf(c){c!=null&&(i.delete(c),n(c))},setTimeout(c,u){let m=a(()=>{l.delete(m),c()},u);return l.add(m),m},clearTimeout(c){c!=null&&(l.delete(c),o(c))},listen(c,u,m,h){c.addEventListener(u,m,h),s.push({target:c,type:u,fn:m,opts:h})},snapshot(){return{rafs:i.size,timers:l.size,listeners:s.length}},releaseAll(){for(let c of[...i]){i.delete(c);try{n(c)}catch{}}for(let c of[...l]){l.delete(c);try{o(c)}catch{}}for(let c of s.splice(0))try{c.target.removeEventListener(c.type,c.fn,c.opts)}catch{}}}}function Ff(e,t={}){let n=Math.max(1,Number(t.maxItems)||1e3),a=Math.max(1,Number(t.payloadLimit)||1048576),o=e&&e.level&&Array.isArray(e.level.items)?e.level.items.length:0,i=Number(e&&e.stats&&e.stats.bytes)||0,l=[];return o>n&&l.push(`\u5355\u5C42\u56FE\u5143 ${o} > ${n}`),i>a&&l.push(`\u5C42 payload ${i} > ${a}`),{ok:l.length===0,items:o,bytes:i,problems:l}}function qy(e,t){if(e===t)return!0;if(e===null||t===null||e===void 0||t===void 0||typeof e!="object"&&typeof t!="object")return e===t;try{return JSON.stringify(e)===JSON.stringify(t)}catch{return!1}}function If(e,t){let n={...e||{}},a={};for(let[o,i]of Object.entries(t||{}))qy(e?e[o]:void 0,i)||(n[o]=i,a[o]=i);return{values:n,overlay:a}}var r=dr(Oo(),1);var Z="/memory-eternal/api",wl=["\u843D\u9B44\u8C37\u4E2D\u5BD2\u98CE\u5439\uFF0C\u6625\u79CB\u8749\u9E23\u5C11\u5E74\u5F52\u3002\u8361\u9B42\u5C71\u5904\u77F3\u4EBA\u6CEA\uFF0C\u5B9A\u4ED9\u6E38\u8D70\u9B54\u5411\u5317\u3002\u9006\u6D41\u6CB3\u4E0A\u4E07\u4ED9\u9000\uFF0C\u7231\u60C5\u4E0D\u654C\u575A\u6301\u6CEA\u3002\u5BBF\u547D\u5929\u6210\u547D\u4E2D\u8D25\uFF0C\u4ED9\u5C0A\u6094\u800C\u6211\u4E0D\u6094\u3002","\u65E9\u5C81\u5DF2\u77E5\u4E16\u4E8B\u8270\uFF0C\u4ECD\u8BB8\u98DE\u9E3F\u8361\u4E91\u95F4\u3002","\u7537\u513F\u4E0D\u5C55\u51CC\u4E91\u5FD7\uFF0C\u7A7A\u8D1F\u5929\u751F\u516B\u5C3A\u8EAF\u3002","\u5343\u53E4\u5730\u4ED9\u968F\u98CE\u901D\uFF0C\u6614\u65E5\u4E09\u738B\u5F52\u9752\u51A2\u3002\u9633\u83BD\u608D\u9668\u8C01\u65E0\u8D25\uFF1F\u5377\u571F\u91CD\u6765\u518D\u79F0\u738B\u3002","\u5929\u6CB3\u4E00\u6302\u6DD8\u9F99\u9C7C\uFF0C\u9006\u5929\u72EC\u884C\u987E\u516B\u8352\u3002\u4ECA\u671D\u6682\u4E14\u5C55\u7FFC\u53BB\uFF0C\u660E\u671D\u98DE\u4ED9\u7B1E\u51E4\u51F0\uFF01","\u72EC\u5E1C\u5165\u6E0A\u6DF1\u672A\u77E5\uFF0C\u8EAB\u4F3C\u6D6E\u840D\u547D\u96BE\u6301\u3002\u5343\u821F\u7686\u671D\u5F52\u6D77\u5904\uFF0C\u4E00\u82C7\u9752\u62E8\u620F\u6D6A\u5DC5\u3002\u60CA\u9E3F\u56DB\u6563\u9C7C\u9003\u5C3D\uFF0C\u552F\u6709\u6B8B\u5E06\u50B2\u6B64\u95F4\u3002\u5F85\u5230\u5929\u5F00\u4E91\u96FE\u6563\uFF0C\u8D1F\u624B\u76F4\u671B\u7B11\u82CD\u5929\u3002"],Bf="\u300A\u86CA\u771F\u4EBA\u300B\xB7 \u5927\u7231\u4ED9\u5C0A";async function kl(e){try{let t=await fetch(`${Z}/open-external?url=${encodeURIComponent(e)}`,{method:"POST"}),n=await t.json().catch(()=>null);if(t.ok&&n&&n.ok)return!0}catch{}try{if(window.open(e,"_blank","noopener,noreferrer"))return!0}catch{}try{let t=document.createElement("a");return t.href=e,t.target="_blank",t.rel="noopener noreferrer",t.click(),!0}catch{}return!1}var r0=100;var hd={nav:"\u8BB0\u5FC6",loading:"\u52A0\u8F7D\u4E2D\u2026",loadingGraph:"\u6B63\u5728\u52A0\u8F7D\u77E5\u8BC6\u661F\u56FE\u2026",refresh:"\u5237\u65B0",overview:"\u8BB0\u5FC6\u5E93\u6982\u89C8",total:"\u77E5\u8BC6\u5361",recent:"\u8FD1 7 \u5929\u65B0\u589E",tags:"\u6807\u7B7E",searchPlaceholder:"\u641C\u7D22\u8BB0\u5FC6\uFF08\u652F\u6301\u4E2D\u6587\u7247\u6BB5\uFF09\u2026",search:"\u641C\u7D22",all:"\u5168\u90E8",kindProject:"\u9879\u76EE",kindKnowledge:"\u77E5\u8BC6",kindOther:"\u5176\u4ED6",kindContent:"\u5185\u5BB9",kindPrompt:"\u63D0\u793A\u8BCD",kindBusiness:"\u4E1A\u52A1",kindTool:"\u5DE5\u5177",kindMistake:"\u6559\u8BAD",kindCore:"\u6838\u5FC3\u8BB0\u5FC6",kindSkill:"\u6280\u80FD",newsTab:"\u65B0\u95FB",newsTitle:"\u65B0\u95FB",newsHint:"\u6BCF\u65E5 AI \u65B0\u95FB\u3001\u672C\u6708\u699C\u5355\uFF0C\u4EE5\u53CA\u4F60\u81EA\u5DF1\u7684\u53D1\u5E03\u3002",newsNew:"\u5199\u4E00\u6761",newsSearch:"\u641C\u7D22\u6807\u9898 / \u6B63\u6587 / \u6807\u7B7E\u2026",newsUnreadOnly:"\u53EA\u770B\u672A\u8BFB",newsEmpty:"\u8FD8\u6CA1\u6709\u65B0\u95FB\u3002\u5199\u7B2C\u4E00\u6761\u53D1\u5E03\u3001\u51B3\u7B56\u6216\u56E2\u961F\u7B80\u62A5\u3002",newsNoMatch:"\u6CA1\u6709\u5339\u914D\u7684\u65B0\u95FB",newsPinned:"\u7F6E\u9876",newsRead:"\u5DF2\u8BFB",newsUnread:"\u672A\u8BFB",newsMarkRead:"\u6807\u8BB0\u5DF2\u8BFB",newsMarkUnread:"\u6807\u8BB0\u672A\u8BFB",newsEdit:"\u7F16\u8F91",newsDeleteConfirm:"\u5220\u9664\u8FD9\u6761\u65B0\u95FB\uFF1F",newsDeleted:"\u5DF2\u5220\u9664",newsSave:"\u4FDD\u5B58",newsSaving:"\u4FDD\u5B58\u4E2D\u2026",newsSaved:"\u5DF2\u4FDD\u5B58",newsSaveFail:"\u4FDD\u5B58\u5931\u8D25",newsTitleField:"\u6807\u9898",newsBodyField:"\u6B63\u6587\uFF08Markdown\uFF09",newsCategoryField:"\u5206\u7C7B",newsSourceField:"\u6765\u6E90",newsUrlField:"\u94FE\u63A5",newsTagsField:"\u6807\u7B7E\uFF08\u9017\u53F7\u5206\u9694\uFF09",newsDateField:"\u65E5\u671F",newsPinField:"\u7F6E\u9876",newsPreview:"\u9884\u89C8",newsEditBody:"\u7F16\u8F91\u6B63\u6587",newsOpenLink:"\u6253\u5F00\u94FE\u63A5",newsToday:"\u4ECA\u5929",newsYesterday:"\u6628\u5929",newsEarlier:"\u66F4\u65E9",newsTitlePlaceholder:"\u4F8B\u5982\uFF1Av0.20.0 \u53D1\u5E03\u8BF4\u660E",newsBodyPlaceholder:"\u5199\u70B9\u503C\u5F97\u7559\u4E0B\u7684\u5185\u5BB9\u2026\u652F\u6301 Markdown",newsCountUnit:"\u6761",cancel:"\u53D6\u6D88",newsDaily:"\u4ECA\u65E5\u65B0\u95FB",newsMonthly:"\u672C\u6708",newsMine:"\u6211\u7684\u65B0\u95FB",newsDailySub:"\u6BCF\u65E5\u6700\u65B0\u7684 AI \u65B0\u95FB\uFF0C\u4E2D\u6587\u4F18\u5148",newsMonthlySub:"\u672C\u6708 AI \u65B0\u95FB\uFF1A\u4E2D\u6587\u6309\u65F6\u95F4\u5F52\u6863\uFF0C\u82F1\u6587\u6309 Hacker News \u70ED\u5EA6",newsMineSub:"\u4F60\u81EA\u5B9A\u4E49\u7684\u53D1\u5E03\u3001\u51B3\u7B56\u548C\u56E2\u961F\u7B80\u62A5",newsLoading:"\u6B63\u5728\u62C9\u53D6\u8D44\u8BAF\u2026",newsFeedError:"\u8D44\u8BAF\u6E90\u6682\u65F6\u4E0D\u53EF\u7528",newsHeat:"\u70ED\u5EA6",newsComments:"\u8BC4\u8BBA",newsOriginal:"\u9605\u8BFB\u539F\u6587",newsUpdatedAt:"\u66F4\u65B0\u4E8E",newsPartialFail:"\u90E8\u5206\u6765\u6E90\u5931\u8D25",newsFeedEmpty:"\u4ECA\u5929\u8FD8\u6CA1\u6709\u6293\u5230\u8D44\u8BAF\uFF0C\u70B9\u5237\u65B0\u518D\u8BD5\u3002",newsFeedRefresh:"\u5237\u65B0\u8D44\u8BAF",newsLoadingHint:"\u9996\u6B21\u52A0\u8F7D\u4F1A\u6293\u53D6\u591A\u4E2A\u4E2D\u6587\u8D44\u8BAF\u6E90\uFF0C\u53EF\u80FD\u9700\u8981\u51E0\u79D2\u2026",newsRetry:"\u91CD\u8BD5",newsSearchGo:"\u641C\u7D22",newsFollow:"\u5173\u6CE8",newsFollowPreview:"\u6211\u8FD9\u6837\u7406\u89E3\uFF0C\u8981\u5173\u6CE8\u5417\uFF1F",newsFollowConfirm:"\u5F00\u59CB\u5173\u6CE8",newsFollowAdded:"\u5DF2\u5173\u6CE8",newsFollowExists:"\u5DF2\u7ECF\u5728\u5173\u6CE8\u4E86",newsFollowRemoved:"\u5DF2\u53D6\u6D88\u5173\u6CE8",newsFollowFail:"\u5173\u6CE8\u5931\u8D25",newsFollowNoQuery:"\u5148\u8F93\u5165\u4E00\u4E2A\u4E3B\u9898\u8BCD",newsFollowDomains:"\u5728\u8FD9\u4E9B\u6765\u6E90\u91CC\u627E",newsFollowEmpty:"\u8FD8\u6CA1\u6709\u5173\u6CE8\u4EFB\u4F55\u4E3B\u9898\u3002\u641C\u4E00\u4E2A\u8BCD\u540E\u70B9\u300C\u5173\u6CE8\u300D\uFF0C\u4EE5\u540E\u5B83\u81EA\u5DF1\u4F1A\u66F4\u65B0\u3002",newsIntentHint:"\u8FD9\u770B\u8D77\u6765\u662F\u4E00\u53E5\u6307\u4EE4 \u2014\u2014 \u70B9\u300C\uFF0B \u5173\u6CE8\u300D\u8BA9\u5B83\u6301\u7EED\u53BB\u5BF9\u5E94\u6765\u6E90\u91CC\u627E\uFF1B\u4E0B\u9762\u7684\u5217\u8868\u4E0D\u518D\u6309\u5B57\u9762\u8FC7\u6EE4\u3002",newsFollowing:"\u5173\u6CE8\u52A8\u6001",newsDigest:"\u5173\u6CE8\u6458\u8981\u63A8\u9001",newsDigestHint:"\u5F00\u542F\u540E\uFF0C\u5BBF\u4E3B\u6309\u95F4\u9694\u6293\u53D6\u300C\u65B0\u95FB\u5173\u6CE8\u300D\uFF0C\u53EA\u6709\u51FA\u73B0\u300C\u65B0\u300D\u5185\u5BB9\u65F6\u624D\u4F1A\u8BA9 Agent \u5728\u4E0B\u4E00\u8F6E\u63D0\u4E00\u53E5\u3002\u9ED8\u8BA4\u5173\u95ED\uFF1B\u5173\u6389\u5C31\u4E0D\u6253\u6270\u3002",newsDigestEnabled:"\u542F\u7528\u63A8\u9001",newsDigestInterval:"\u6293\u53D6\u95F4\u9694\uFF08\u5206\u949F\uFF09",newsDigestMaxItems:"\u6BCF\u6761\u6458\u8981\u6700\u591A\u51E0\u6761",newsDigestNow:"\u7ACB\u5373\u751F\u6210\u5E76\u9884\u89C8",newsDigestNowHint:"\u5F00\u542F\u524D\u53EF\u4EE5\u5148\u70B9\u5B83\uFF0C\u770B\u770B\u5230\u5E95\u4F1A\u63A8\u9001\u4EC0\u4E48\u3002",newsDigestBuilding:"\u751F\u6210\u4E2D\u2026",newsDigestDone:"\u6458\u8981\u5DF2\u751F\u6210",newsDigestEmpty:"\u5F53\u524D\u6CA1\u6709\u65B0\u7684\u5173\u6CE8\u5185\u5BB9",newsDigestFail:"\u751F\u6210\u6458\u8981\u5931\u8D25",newsSortRec:"\u4E3A\u4F60\u63A8\u8350",newsSortTime:"\u6700\u65B0",newsPersonalized:"\u5DF2\u6309\u4F60\u7684\u559C\u7231\u5B9A\u5236\u6392\u5E8F",newsLastQuery:"\u4E0A\u6B21\u641C\u7D22",newsResetPrefs:"\u91CD\u7F6E\u504F\u597D",newsHeroEye:"NEWSROOM \xB7 AI \u60C5\u62A5\u7AD9",newsHeroHint:"\u641C\u7D22\u4E00\u6B21\u5C31\u4F1A\u88AB\u8BB0\u4F4F\uFF0C\u4E0B\u6B21\u6253\u5F00\u81EA\u52A8\u6309\u4F60\u7684\u53E3\u5473\u6392\u5E8F\uFF1B\u53EA\u5728\u672C\u9875\u9996\u6B21\u6253\u5F00\u65F6\u62C9\u53D6\u4E00\u6B21\u6570\u636E\u3002",newsMatched:"\u6761\u547D\u4E2D",newsNoMatch:"\u6CA1\u6709\u5339\u914D\u7684\u8D44\u8BAF",newsNoMatchHint:"\u8FD9\u6279\u6570\u636E\u91CC\u6CA1\u6709\u547D\u4E2D\u5F53\u524D\u5173\u952E\u8BCD + \u5206\u7C7B + \u8BED\u8A00\u7684\u6761\u76EE\uFF0C\u6E05\u9664\u7B5B\u9009\u5C31\u80FD\u770B\u56DE\u5168\u90E8\u3002",newsClearFilters:"\u6E05\u9664\u7B5B\u9009",newsJustNow:"\u521A\u521A",newsMinutesAgo:"\u5206\u949F\u524D",newsHoursAgo:"\u5C0F\u65F6\u524D",newsDaysAgo:"\u5929\u524D",newsLangZh:"\u4E2D\u6587",newsLangEn:"\u82F1\u6587",newsLangAll:"\u4E0D\u9650",newsZhArchive:"\u4E2D\u6587\u6708\u699C\u6309\u65F6\u95F4\u5F52\u6863\uFF08\u4E2D\u6587\u6E90\u6682\u65E0\u516C\u5F00\u70ED\u5EA6\u5206\u6570\uFF09",newsEnRanking:"\u82F1\u6587\u6708\u699C\u6309 Hacker News \u5206\u6570\u6392\u540D",skillCards:"\u6280\u80FD\u5361",skillCardsHint:"\u4ECE\u672C\u673A\u5B9E\u9645\u5B89\u88C5/\u53EF\u7528\u7684\u6280\u80FD\u751F\u6210\u5361\u7247\uFF0C\u5F3A\u5236\u8FDB\u5165\u5BA1\u6838\uFF1B\u4E0D\u7531 Agent \u5BF9\u8BDD\u6C89\u6DC0\u3002",skillAutoSync:"\u81EA\u52A8\u540C\u6B65\u6280\u80FD\u5361",syncSkills:"\u540C\u6B65\u6280\u80FD",syncingSkills:"\u6B63\u5728\u540C\u6B65\u6280\u80FD\u2026",skillsSyncDone:"\u6280\u80FD\u5361\u540C\u6B65\u5B8C\u6210",skillsScanned:"\u626B\u63CF",skillsCreated:"\u65B0\u589E",skillsUpdated:"\u66F4\u65B0",skillsPendingUpdates:"\u5F85\u5BA1\u66F4\u65B0",skillsSyncFail:"\u6280\u80FD\u5361\u540C\u6B65\u5931\u8D25",cardsTab:"\u77E5\u8BC6\u5361",webTab:"Web \u7248",webOpening:"\u6B63\u5728\u7528\u9ED8\u8BA4\u6D4F\u89C8\u5668\u6253\u5F00 Web \u7248\u2026",webOpened:"\u5DF2\u7528\u9ED8\u8BA4\u6D4F\u89C8\u5668\u6253\u5F00 Web \u7248",webOpenFail:"\u6253\u5F00\u6D4F\u89C8\u5668\u5931\u8D25\uFF0C\u53EF\u624B\u52A8\u8BBF\u95EE",terminalTab:"\u7EC8\u7AEF\u7248",terminalTitle:"\u7EC8\u7AEF\u5B8C\u6574\u7248",terminalIntro:"Web UI \u4E0D\u6E32\u67D3\u7EC8\u7AEF\u539F\u751F TUI\u3002\u8981\u5B8C\u6574\u6279\u5361\u3001\u957F\u6587\u6EDA\u52A8\u548C\u5168\u9009\uFF0C\u8BF7\u6253\u5F00\u672C\u673A\u7EC8\u7AEF\uFF1B\u6216\u8005\u76F4\u63A5\u5728 dsh-tui \u91CC\u7528 /audit\u3002",terminalRun:"\u53EA\u8BFB\u4F53\u9A8C\uFF08\u771F\u5B9E\u961F\u5217\uFF09",terminalTui:"\u5199\u5165\u6A21\u5F0F\uFF08\u771F\u5B9E\u6279\u9A73\uFF09",terminalWhy:"\u4E3A\u4EC0\u4E48\u4E0D\u76F4\u63A5\u5D4C\u8FDB\u7F51\u9875",terminalWhyBody:"\u7EC8\u7AEF TUI \u4F9D\u8D56 alternate screen\u3001\u539F\u59CB\u952E\u76D8\u4E8B\u4EF6\u548C\u5B57\u7B26\u7F51\u683C\uFF0C\u65E0\u6CD5\u7528 iframe \u5FE0\u5B9E\u5D4C\u5165\u3002\u8FD9\u91CC\u7ED9\u51FA\u771F\u5B9E\u547D\u4EE4\uFF0C\u6253\u5F00\u540E\u5C31\u662F\u540C\u4E00\u5957\u754C\u9762\u3002",terminalCopy:"\u590D\u5236\u547D\u4EE4",terminalCopied:"\u5DF2\u590D\u5236",terminalPreview:"\u7EC8\u7AEF\u9884\u89C8",graphTab:"\u77E5\u8BC6\u661F\u56FE",graph:"\u77E5\u8BC6\u56FE\u8C31",graphHint:"\u8282\u70B9=\u77E5\u8BC6\u5361\uFF1B\u8FDE\u7EBF=[[\u94FE\u63A5]] \u6216\u5171\u4EAB\u6807\u7B7E\u3002\u70B9\u51FB\u8282\u70B9\u9605\u8BFB\u5361\u7247\u3002",graphLegendTitle:"\u5361\u7247\u5206\u5E03",graphTip:"\u5DE6\u952E\u51F8\u663E \xB7 Shift+\u62D6\u62FD\u6846\u9009 \xB7 \u53F3\u952E\u83DC\u5355 \xB7 \u6EDA\u8F6E\u7F29\u653E \xB7 \u62D6\u62FD\u5E73\u79FB",rebuild:"\u91CD\u5EFA",reset:"\u91CD\u7F6E",expandAll:"\u5168\u90E8\u5C55\u5F00",capped:"\u5DF2\u5C55\u793A\u6700\u6838\u5FC3\u7684",clearFocus:"\u53D6\u6D88\u9AD8\u4EAE",empty:"\u8BB0\u5FC6\u5E93\u8FD8\u662F\u7A7A\u7684\u3002\u591A\u804A\u51E0\u8F6E\u540E\uFF0C\u503C\u5F97\u4FDD\u5B58\u7684\u5185\u5BB9\u4F1A\u81EA\u52A8\u6C89\u6DC0\u6210\u77E5\u8BC6\u5361\u3002",emptyGraph:"\u56FE\u8C31\u6682\u65E0\u6570\u636E\u3002",open:"\u9605\u8BFB",updated:"\u66F4\u65B0\u4E8E",created:"\u521B\u5EFA\u4E8E",source:"\u6765\u6E90",contents:"\u76EE\u5F55",related:"\u76F8\u5173\u8BB0\u5FC6",file:"\u6587\u4EF6",close:"\u5173\u95ED",vaultDir:"\u8BB0\u5FC6\u5E93\u76EE\u5F55",capture:"\u81EA\u52A8\u6C89\u6DC0",recall:"\u81EA\u52A8\u53EC\u56DE",enabled:"\u5DF2\u542F\u7528",disabled:"\u5DF2\u7981\u7528",error:"\u52A0\u8F7D\u5931\u8D25",back:"\u8FD4\u56DE\u5217\u8868",cardCount:"\u5F20\u5361",nodes:"\u8282\u70B9",edges:"\u8FDE\u7EBF",memoryTitle:"\u8BB0\u5FC6\u5E93",memoryHint:"\u4F60\u7684\u672C\u5730\u7B2C\u4E8C\u5927\u8111",zoomIn:"\u653E\u5927",zoomOut:"\u7F29\u5C0F",fit:"\u9002\u5E94",enterFullscreen:"\u5168\u5C4F",exitFullscreen:"\u9000\u51FA\u5168\u5C4F",exportGraph:"\u5BFC\u51FA",openCard:"\u6253\u5F00\u5361\u7247",focusNeighbors:"\u51F8\u663E\u5173\u8054",copyName:"\u590D\u5236\u540D\u79F0",noMatch:"\u6CA1\u6709\u5339\u914D\u7684\u8BB0\u5FC6",clearFilter:"\u6E05\u9664\u8FC7\u6EE4",filterLabel:"\u7B5B\u9009",sortRecent:"\u6700\u8FD1",sortTitle:"\u6807\u9898",sortHot:"\u70ED\u70B9",exportSel:"\u5BFC\u51FA\u9009\u4E2D",clearSelection:"\u6E05\u7A7A\u9009\u62E9",download:"\u4E0B\u8F7D",openNewTab:"\u65B0\u6807\u7B7E\u6253\u5F00",copyImage:"\u590D\u5236\u56FE\u7247",done:"\u5B8C\u6210",downloaded:"\u5DF2\u5F00\u59CB\u4E0B\u8F7D",openedTab:"\u5DF2\u5728\u65B0\u6807\u7B7E\u6253\u5F00",copied:"\u5DF2\u590D\u5236",exportedSel:"\u4E2A\u8282\u70B9\u5DF2\u5BFC\u51FA",fullscreen:"\u5168\u5C4F",exitFull:"\u9000\u51FA\u5168\u5C4F",copyFail:"\u590D\u5236\u5931\u8D25",timeDim:"\u65F6\u95F4\u7EF4",graphWarming:"\u6B63\u5728\u5E03\u5C40 {n} \u4E2A\u8282\u70B9\u2026",graphAllCrumb:"\u5168\u90E8",graphOther:"\u5176\u4ED6",graphItems:"\u56FE\u5143",graphCardsUnit:"\u5361",graphPlanetCards:"{n} \u5F20\u5361",graphToFlat:"\u5E73\u94FA\u5361\u7247\u56FE",graphToPlanet:"\u661F\u7403\u5206\u5C42\u89C6\u56FE",graphFlatAll:"\u663E\u793A\u5168\u90E8",graphFlatOnly:"\u53EA\u770B\u4E3B\u8981",graphEnter:"\u8FDB\u5165\u8BE5\u5C42",graphLevelLoading:"\u6B63\u5728\u52A0\u8F7D\u5C42\u7EA7\u2026",graphLevelTimeout:"\u5C42\u52A0\u8F7D\u8D85\u65F6\uFF08{ms}ms\uFF09\xB7 \u5DF2\u4FDD\u7559\u5F53\u524D\u5C42",graphLevelError:"\u5C42\u52A0\u8F7D\u5931\u8D25 \xB7 \u5DF2\u4FDD\u7559\u5F53\u524D\u5C42",graphRetry:"\u91CD\u8BD5",graphEmptyLevel:"\u8FD9\u4E00\u5C42\u6CA1\u6709\u5361\u7247\u3002",graphLevelHint:"\u70B9\u5927\u661F\u7403\u8FDB\u5165\u8BE5\u5C42 \xB7 Shift+\u70B9\u51FB\u9009\u4E2D \xB7 \u62D6\u62FD\u79FB\u52A8 \xB7 \u6EDA\u8F6E\u7F29\u653E",graphBreadcrumbAria:"\u5C42\u7EA7\u9762\u5305\u5C51",graphCountWan:"\u4E07",graphCountLocale:"zh-CN",timeNew:"3 \u5929\u5185",timeRecent:"2 \u5468\u5185",timeMonth:"1 \u6708\u5185",timeOld:"\u66F4\u65E9",newBadge:"\u65B0",expand:"\u5C55\u5F00\u5168\u90E8",collapse:"\u6536\u8D77",copyBody:"\u590D\u5236\u6B63\u6587",clearFilter:"\u6E05\u9664\u6807\u7B7E\u7B5B\u9009",copyPath:"\u590D\u5236\u8DEF\u5F84",copied:"\u5DF2\u590D\u5236",copyFail:"\u590D\u5236\u5931\u8D25",readWidth:"\u9605\u8BFB\u5BBD\u5EA6",widthNarrow:"\u7A84",widthMid:"\u4E2D",widthWide:"\u5BBD",exportVault:"\u5BFC\u51FAMD",exportJson:"\u5BFC\u51FAJSON",exporting:"\u5BFC\u51FA\u4E2D\u2026",exportedVault:"\u8BB0\u5FC6\u5E93\u5DF2\u5BFC\u51FA",exportFail:"\u5BFC\u51FA\u5931\u8D25",importVault:"\u5BFC\u5165",importedVault:"\u5BFC\u5165\u5B8C\u6210",importedTotal:" \u5F20 / \u6587\u4EF6\u5171 ",importedTotalTail:" \u5F20",importedQuarantine:" \xB7 \u5F85\u5BA1\u6838 ",importedQuarantineTail:" \u5F20\uFF08\u9694\u79BB\u533A\uFF0C\u6279\u51C6\u540E\u624D\u53C2\u4E0E\u53EC\u56DE\uFF09",importedSkipped:" \xB7 \u8DF3\u8FC7 ",importedSkippedTail:" \u5F20\uFF08\u91CD\u590D\u6216\u7A7A\uFF09",importFail:"\u5BFC\u5165\u5931\u8D25",location:"\u81EA\u9009\u4F4D\u7F6E",saveAs:"\u53E6\u5B58\u4E3A",saveAsUnsupported:"\u5F53\u524D\u73AF\u5883\u4E0D\u652F\u6301\u9009\u62E9\u4FDD\u5B58\u4F4D\u7F6E",exportedTo:"\u5DF2\u5BFC\u51FA\u5230",defaultDownloads:"\u9ED8\u8BA4\u4E0B\u8F7D\u6587\u4EF6\u5939",exportCancel:"\u5DF2\u53D6\u6D88\u5BFC\u51FA",manage:"\u7BA1\u7406",tabUsage:"\u8FD0\u884C\u72B6\u6001",tabOptimize:"\u6574\u7406\u5EFA\u8BAE",adminLoadFail:"\u6570\u636E\u52A0\u8F7D\u5931\u8D25\uFF1A\u8BF7\u5F7B\u5E95\u91CD\u542F dsh-desktop\uFF08host \u9700\u52A0\u8F7D\u65B0\u7248 /memory-eternal \u8DEF\u7531\uFF09",retry:"\u91CD\u8BD5",mergeSimilar:"\u4E00\u952E\u5408\u5E76\u76F8\u4F3C",trendLabel:"\u8FD1 30 \u5929\u8D8B\u52BF",cleanStale:"\u{1F5D1}\uFE0F \u4E00\u952E\u6E05\u7406\u9648\u65E7",deletedStale:"\u4E2A\u9648\u65E7\u5361\u5DF2\u6E05\u7406",newCard:"\u65B0\u5EFA",tplDecision:"\u{1F4DD} \u6280\u672F\u51B3\u7B56",tplBug:"\u{1F41B} \u8E29\u5751",tplMeeting:"\u{1F4CB} \u4F1A\u8BAE\u7EAA\u8981",tplWeekly:"\u{1F4CA} \u5468\u62A5",createCard:"\u521B\u5EFA",cardTitle:"\u6807\u9898",cardBody:"\u6B63\u6587",fbUseful:"\u6709\u7528",fbIrr:"\u65E0\u5173",todayAdd:"\u4ECA\u65E5\u65B0\u589E",weekAdd:"\u8FD1 7 \u5929",byKind:"\u5206\u7C7B\u7EDF\u8BA1",todayList:"\u4ECA\u65E5\u6C89\u6DC0",budgetLabel:"\u4F1A\u8BDD\u9884\u7B97",budgetChars:"\u9884\u7B97\u5B57\u7B26",recallLimitLabel:"\u53EC\u56DE\u6761\u6570",embeddingLabel:"\u8BED\u4E49\u53EC\u56DE",mergePairs:"\u76F8\u4F3C\u5361\u5BF9\uFF08\u53EF\u5408\u5E76\uFF09",staleCards:"\u9648\u65E7\u5361\uFF08>90 \u5929\u672A\u66F4\u65B0\uFF09",noOptimize:"\u6682\u65E0\u53EF\u6574\u7406\u9879\uFF0C\u5F88\u5065\u5EB7 \u{1F389}",refineTitle:"\u77DB\u76FE\u626B\u63CF",refineScan:"\u5F00\u59CB\u626B\u63CF",refineHint:"\u76F8\u4F3C\u53EF\u4EE5\u5408\u5E76\uFF0C\u77DB\u76FE\u5FC5\u987B\u4EBA\u5224\u65AD \u2014\u2014 \u626B\u63CF\u53EA\u8BFB\uFF0C\u9009\u62E9\u540E\u624D\u52A8\u6570\u636E\uFF08\u4FDD\u7559\u4E00\u5F20\u4F1A\u628A\u53E6\u4E00\u5F20\u653E\u8FDB\u56DE\u6536\u7AD9\uFF0C\u53EF\u8FD8\u539F\uFF09",refineIdle:"\u70B9\u300C\u5F00\u59CB\u626B\u63CF\u300D\uFF1A\u5148\u5BBD\u53EC\u56DE\u53EF\u80FD\u6709\u5173\u7CFB\u7684\u5361\u7247\u5BF9\uFF0C\u518D\u8BA9\u6A21\u578B\u5224\u65AD\u662F\u91CD\u590D / \u8865\u5145 / \u77DB\u76FE / \u65E0\u5173",refineNone:"\u8FD9\u4E00\u8F6E\u6CA1\u6709\u53D1\u73B0\u9700\u8981\u4F60\u88C1\u51B3\u7684\u5361\u7247\u5BF9 \u{1F389}",refineFail:"\u77DB\u76FE\u626B\u63CF\u5931\u8D25",refineApplied:"\u5DF2\u8BB0\u5F55\u4F60\u7684\u88C1\u51B3\uFF08\u4E0D\u4F1A\u91CD\u590D\u6253\u6270\uFF09",refineRel_duplicate:"\u91CD\u590D\uFF08\u53EF\u5408\u5E76\uFF09",refineRel_complement:"\u8865\u5145\uFF08\u90FD\u7559\u7740\uFF09",refineRel_conflict:"\u77DB\u76FE\uFF08\u9700\u4F60\u88C1\u51B3\uFF09",refineRel_unrelated:"\u65E0\u5173",refineKeepA:"\u4FDD\u7559 A",refineKeepB:"\u4FDD\u7559 B",refineKeepBoth:"\u90FD\u4FDD\u7559",refineMerge:"\u5408\u5E76",junkTitle:"\u6CE8\u5165\u5783\u573E\u5361",junkScan:"\u626B\u63CF\u5B58\u91CF",junkHint:"\u6000\u7591\u662F\u8FD0\u884C\u65F6\u6CE8\u5165\u6587\u672C\uFF08\u6280\u80FD\u76EE\u5F55 / system-reminder\uFF09\u6C89\u6DC0\u6210\u7684\u5361 \u2014\u2014 \u626B\u63CF\u53EA\u8BFB\uFF0C\u56DE\u6536\u8D70\u56DE\u6536\u7AD9\u53EF\u8FD8\u539F",junkIdle:"\u70B9\u300C\u626B\u63CF\u5B58\u91CF\u300D\uFF1A\u627E\u51FA\u6B63\u6587\u5176\u5B9E\u662F\u88AB\u6CE8\u5165\u7684\u8FD0\u884C\u65F6\u6587\u672C\u3001\u5265\u6389\u540E\u51E0\u4E4E\u4E0D\u5269\u4EBA\u8BDD\u7684\u5361",junkNone:"\u6CA1\u53D1\u73B0\u8FD9\u7C7B\u5361 \u{1F389}",junkRecycle:"\u56DE\u6536",junkRecycleAll:"\u5168\u90E8\u56DE\u6536",junkRecycleAllConfirm:"\u786E\u8BA4\u628A\u8FD9\u4E9B\u5361\u9001\u8FDB\u56DE\u6536\u7AD9\uFF1F\uFF08\u4E0D\u662F\u6C38\u4E45\u5220\u9664\uFF0C\u53EF\u5728\u56DE\u6536\u4E2D\u5FC3\u8FD8\u539F\uFF09",junkDone:"\u5DF2\u9001\u56DE\u6536\u7AD9",junkFail:"\u626B\u63CF / \u56DE\u6536\u5931\u8D25",dbReadonlyTitle:"\u8BB0\u5FC6\u5E93\u5F53\u524D\u4E0D\u53EF\u5199",dbReadonlyBody:"\u5361\u7247\u8BFB\u5199 / \u5BA1\u6838 / \u56FE\u8C31\u4F1A\u5931\u8D25\uFF0C\u4F46**\u914D\u7F6E\u4ECD\u53EF\u4FDD\u5B58**\uFF08\u914D\u7F6E\u4E0D\u7ECF\u8FC7\u6570\u636E\u5E93\uFF09",dbReadonlyFix:"\u6392\u67E5\uFF1Adsh-memory doctor\uFF08\u770B journal \u6A21\u5F0F\u3001\u5199\u63A2\u9488\u3001\u5907\u4EFD\u6E05\u5355\u4E0E\u6062\u590D\u6B65\u9AA4\uFF09",goalTitle:"\u540C\u76EE\u6807\u4E0D\u540C\u505A\u6CD5",goalScan:"\u626B\u63CF\u76EE\u6807",goalHint:"\u6309\u300C\u8FD9\u5F20\u5361\u89E3\u51B3\u4EC0\u4E48\u95EE\u9898\u300D\u805A\u7C7B \u2014\u2014 \u6B63\u6587\u76F8\u4F3C\u5EA6\u6293\u4E0D\u5230\u7684\u505A\u6CD5\u5DEE\u5F02\uFF087z \u538B\u7F29 / tar \u5206\u53D1 / npm \u7626\u8EAB\uFF09\u4E5F\u80FD\u5F52\u5230\u4E00\u8D77",goalIdle:"\u70B9\u300C\u626B\u63CF\u76EE\u6807\u300D\uFF1A\u6A21\u578B\u5148\u7ED9\u6BCF\u5F20\u5361\u62BD\u4E00\u53E5\u76EE\u6807\uFF08\u9996\u6B21\u4F1A\u8C03\u6A21\u578B\uFF0C\u4E4B\u540E\u8D70\u7F13\u5B58\uFF09\uFF0C\u518D\u6309\u76EE\u6807\u805A\u7C7B",goalNone:"\u6CA1\u6709\u53D1\u73B0\u300C\u540C\u4E00\u76EE\u6807\u3001\u591A\u5F20\u5361\u300D\u7684\u7C07 \u{1F389}",goalStats:"\u5DF2\u7D22\u5F15 / \u672C\u6B21\u8C03\u7528",goalCards:"\u5F20\u5361",goalKeep:"\u90FD\u4FDD\u7559",goalMerge:"\u5408\u5E76\u8FD9\u4E00\u7EC4",goalMerged:"\u5DF2\u63D0\u4EA4\u5408\u5E76\uFF08\u65B0\u5361\u8FDB\u5BA1\u6838\u961F\u5217\uFF09",goalDone:"\u5DF2\u8BB0\u5F55\u300C\u90FD\u4FDD\u7559\u300D",goalFail:"\u76EE\u6807\u805A\u7C7B\u5931\u8D25",oneClickOptimize:"\u4E00\u952E\u4F18\u5316",oneClickOptimizeConfirm:"\u786E\u8BA4\u4E00\u952E\u4F18\u5316\uFF1F\u5C06\u5408\u5E76\u6240\u6709\u76F8\u4F3C\u5361\u5BF9\uFF08\u9ED8\u8BA4\u4E0D\u6E05\u7406\u9648\u65E7\u5361\uFF09\u3002",oneClickAlsoStale:"\u540C\u65F6\u6E05\u7406\u9648\u65E7\u5361",oneClickOptimizeDone:"\u4E00\u952E\u4F18\u5316\u5B8C\u6210",optimizedMerged:"\u5BF9\u5DF2\u5408\u5E76",optimizedStaleDeleted:"\u5F20\u9648\u65E7\u5361\u5DF2\u6E05\u7406",mcpSetupStatus:"Agent MCP \u6302\u8F7D\u72B6\u6001",rerunSetup:"\u8865\u5168 MCP",notInstalled:"\u672A\u5B89\u88C5",noMcpEntry:"\u914D\u7F6E\u7F3A\u5931",nodePathMismatch:"node \u8DEF\u5F84\u4E0D\u4E00\u81F4\uFF0C\u5EFA\u8BAE\u91CD\u8DD1 setup",nodePathNote:"node \u73AF\u5883\u4E0D\u540C\uFF08\u53EF\u7528\uFF09",mcpNeedsRepair:"\u26A0 \u9700\u4FEE\u590D\uFF08\u65E7\u914D\u7F6E\u4F1A\u62C9\u8D77 GUI\uFF09",repairMcp:"\u4FEE\u590D\u914D\u7F6E",healthy:"\u914D\u7F6E\u6B63\u5E38",mcpSetupHint:"\u300C\u81EA\u52A8\u6302\u8F7D MCP\u300D= \u8BA9 Claude Code / Codex / Cursor \u8FD9\u4E9B\u5DE5\u5177\u80FD\u8C03\u7528\u8BB0\u5FC6\u5E93\u3002\u5F00\u542F\u540E\u81EA\u52A8\u628A\u5B83\u4EEC\u914D\u7F6E\u597D\uFF1B\u5173\u6389\u5C31\u4E0D\u52A8\u4F60\u7535\u8111\u4E0A\u4EFB\u4F55\u914D\u7F6E\u6587\u4EF6\uFF0C\u9700\u8981\u65F6\u624B\u52A8\u8DD1 dsh-memory setup\u3002",mcpManageHint:"\u6BCF\u4E2A agent \u7528\u4E0B\u65B9\u6309\u94AE\u5355\u72EC\u5B89\u88C5/\u5378\u8F7D MCP",workTitle:"\u672C\u4F1A\u8BDD\u5DE5\u4F5C\u533A",workHint:"\u4E34\u65F6\u8349\u7A3F \xB7 \u4E0D\u8FDB\u5165\u77E5\u8BC6\u5E93 \xB7 \u4E0D\u53C2\u4E0E\u53EC\u56DE",workLines:"\u884C",workExpand:"\u5C55\u5F00",workCollapse:"\u6536\u8D77",workPlaceholder:"\u8BB0\u4E0B\u8FD9\u4E2A\u4EFB\u52A1\u73B0\u5728\u505A\u5230\u54EA\u3001\u4E0B\u4E00\u6B65\u505A\u4EC0\u4E48\u2026\uFF08\u4F1A\u8BDD\u7ED3\u675F\u81EA\u52A8\u5F52\u6863\uFF09",workSave:"\u4FDD\u5B58\u8349\u7A3F",workPromote:"\u5B58\u4E3A\u5F85\u5BA1\u5361",workClear:"\u6E05\u7A7A",workClearConfirm:"\u6E05\u7A7A\u672C\u4F1A\u8BDD\u5DE5\u4F5C\u533A\uFF1F\u6B64\u64CD\u4F5C\u4E0D\u53EF\u6062\u590D\u3002",workSaved:"\u5DF2\u4FDD\u5B58\u4F1A\u8BDD\u5DE5\u4F5C\u533A",workCleared:"\u5DF2\u6E05\u7A7A\u4F1A\u8BDD\u5DE5\u4F5C\u533A",workPromoted:"\u5DF2\u63D0\u4EA4\u5BA1\u6838\uFF0C\u8BF7\u5728\u300C\u5F85\u5BA1\u300D\u91CC\u5904\u7406",workLimitHint:"\u4E0A\u9650 200 \u884C / 24KB\uFF0C\u8D85\u51FA\u622A\u65AD",workPromoteHint:"\u9009\u4E2D\u4E00\u6BB5\u65F6\u53EA\u664B\u5347\u9009\u4E2D\u90E8\u5206",workPromoteEmpty:"\u6CA1\u6709\u53EF\u664B\u5347\u7684\u5185\u5BB9",starAskTitle:"\u8BB0\u5FC6\u5DF2\u7ECF\u7528\u8D77\u6765\u4E86",starAskBody:"\u5DF2\u53EC\u56DE {recalls} \u6B21 \xB7 \u6C89\u6DC0 {cards} \u5F20\u5361\u3002\u5982\u679C\u5B83\u5E2E\u4F60\u7701\u8FC7\u65F6\u95F4\uFF0C\u7ED9\u4E2A Star \u4F1A\u8BA9\u66F4\u591A\u4EBA\u627E\u5230\u5B83\u3002",starAskGo:"\u53BB Star",starAskLater:"\u665A\u70B9\u518D\u8BF4",starAskNever:"\u4E0D\u518D\u63D0\u793A",tabConfig:"\u8BB0\u5FC6\u914D\u7F6E",configPageSub:"\u5199\u5165\u3001\u8DEF\u7531\u3001\u5BA1\u6838\u4E0E\u670D\u52A1\u7684\u672C\u5730\u914D\u7F6E",tabAudit:"\u5F85\u5BA1",statusApproved:"\u5DF2\u5BA1\u6838",statusPending:"\u5F85\u5BA1\u6838",statusRejected:"\u5DF2\u9A73\u56DE",allStatus:"\u5168\u90E8\u72B6\u6001",tabRecycle:"\u56DE\u6536\u4E2D\u5FC3",recyclePageSub:"\u5DF2\u5220\u9664\u7684\u5361\u4FDD\u7559 30 \u5929\uFF0C\u53EF\u6062\u590D\u6216\u6C38\u4E45\u5220\u9664",pending:"\u5F85\u5BA1\u6838",rejected:"\u5DF2\u9A73\u56DE",selectAll:"\u5168\u9009",approve:"\u6279\u51C6",approveAndCore:"\u6279\u51C6\u5E76\u8BBE\u4E3A\u6838\u5FC3",approveCore:"\u6279\u51C6\u4E3A\u6838\u5FC3\u8BB0\u5FC6",approveAsNormal:"\u6279\u51C6\u4E3A\u666E\u901A\u5361",coreSuggested:"\u6838\u5FC3\u8BB0\u5FC6\uFF08\u5F85\u5BA1\u6838\uFF09",reclassify:"\u91CD\u65B0\u8BC6\u522B\u7C7B\u578B",reject:"\u9A73\u56DE",allAgents:"\u5168\u90E8\u667A\u80FD\u4F53",noAuditItems:"\u6682\u65E0\u5BA1\u6838\u9879\u76EE",auditBodyFail:"\u6B63\u6587\u8BFB\u53D6\u5931\u8D25",deletedAt:"\u5220\u9664\u4E8E",restore:"\u6062\u590D",restoreDelete:"\u5220\u9664\u8FDB\u56DE\u6536\u7AD9",purge:"\u6C38\u4E45\u5220\u9664",emptyRecycle:"\u56DE\u6536\u7AD9\u4E3A\u7A7A",recycleHint:"\u5220\u9664\u7684\u5361\u7247\u5148\u8FDB\u56DE\u6536\u7AD9\uFF0C30 \u5929\u5185\u53EF\u6062\u590D\uFF0C\u8D85\u671F\u81EA\u52A8\u6C38\u4E45\u5220\u9664",purgeConfirm:"\u786E\u5B9A\u6C38\u4E45\u5220\u9664\uFF1F\u4E0D\u53EF\u6062\u590D\u3002",recycleDeleteConfirm:"\u786E\u5B9A\u5220\u9664\u8FDB\u56DE\u6536\u7AD9\uFF1F30 \u5929\u5185\u53EF\u6062\u590D\u3002",modeInit:"\u542F\u52A8\u65F6\u62C9\u4E00\u6B21",modeInterval:"\u5468\u671F\u4FDD\u6D3B",modeManual:"\u4EC5\u624B\u52A8",serviceConfig:"\u670D\u52A1\u81EA\u7BA1\u7406\u914D\u7F6E",auditConfig:"\u81EA\u52A8\u5BA1\u6838\u914D\u7F6E",auditHint:"\u547D\u4E2D\u514D\u5BA1\u7684\u65B0\u5361\u76F4\u63A5\u5165\u5E93\uFF0C\u5176\u4F59\u8FDB\u5F85\u5BA1\u6838",auditMode:"\u5BA1\u6838\u6A21\u5F0F",auditAll:"\u5168\u90E8\u8981\u5BA1\u6838",auditNone:"\u5168\u90E8\u514D\u5BA1",auditExemptAgents:"\u514D\u5BA1\u667A\u80FD\u4F53",auditExemptKinds:"\u514D\u5BA1\u7C7B\u578B",allExempt:"\u5168\u90E8\u514D\u5BA1",recycleDays:"\u56DE\u6536\u4FDD\u7559\u5929\u6570",editInSetting:"\u7F16\u8F91\u8BF7\u5230 DSH \u8BBE\u7F6E \u2192 \u8BB0\u5FC6",pendingSyncNote:"\u6B64\u9875\u662F\u72EC\u7ACB Web \u9875\uFF1A\u4FDD\u5B58\u540E\u7531 DSH \u5BBF\u4E3B\u5E94\u7528\uFF08\u65B0\u7248\u5BBF\u4E3B\u4F1A\u88AB\u76F4\u63A5\u53EB\u9192\u3001\u5728\u8BF7\u6C42\u4E0A\u4E0B\u6587\u91CC\u5E94\u7528\uFF0C\u70B9\u4FDD\u5B58\u5373\u751F\u6548\uFF09\uFF1B\u82E5\u672C\u673A\u6CA1\u6709 DSH \u5BBF\u4E3B\u5728\u8FD0\u884C\uFF0C\u5219\u76F4\u63A5\u5199\u5165\u5171\u4EAB\u914D\u7F6E\u3001\u7ACB\u5373\u751F\u6548\u3002\u53EA\u6709\u5728\u5BF9\u63A5\u65E7\u7248\u5BBF\u4E3B\u65F6\u624D\u4F1A\u9000\u56DE\u300C\u6392\u961F\u7B49\u5B83\u81EA\u5DF1\u540C\u6B65\u300D\uFF0C\u90A3\u65F6\u53EF\u5728 DSH \u8BBE\u7F6E \u2192 \u8BB0\u5FC6\u91CC\u6539\u540C\u4E00\u9879\u3002",readonlyTitle:"\u5F53\u524D\u9875\u9762\u53EA\u8BFB\uFF0C\u65E0\u6CD5\u4FDD\u5B58\u914D\u7F6E",readonlyBody:"\u8FD9\u4E2A\u8FDB\u7A0B\u6CA1\u6709 DSH \u7684\u8BBE\u7F6E\u670D\u52A1\uFF08settings.update \u4E0D\u5B58\u5728\uFF09\uFF0C\u914D\u7F6E\u53EA\u80FD\u5728\u672C\u673A DSH \u91CC\u4FEE\u6539\uFF1A\u684C\u9762\u7248 \u2192 \u8BBE\u7F6E \u2192 \u8BB0\u5FC6\u3002",readonlyBtn:"\u53EA\u8BFB",setupRunInTerminal:"\u8BF7\u590D\u5236\u4EE5\u4E0B\u547D\u4EE4\u5230\u7EC8\u7AEF\u6267\u884C\uFF1A",dshMemoryConfig:"DSH \u8BB0\u5FC6\u914D\u7F6E",coreMemory:"\u6838\u5FC3\u8BB0\u5FC6\uFF08\u524D\u7F6E\u5F3A\u5236\uFF09",coreMemoryHint:"\u6BCF\u6B21\u4F1A\u8BDD\u81EA\u52A8\u6CE8\u5165\uFF0C\u4E0D\u4F9D\u8D56\u6A21\u578B\u4E3B\u52A8\u53EC\u56DE\uFF1B\u53EA\u8BFB\u53D6\u5DF2\u6279\u51C6\u7684\u6838\u5FC3\u5361",coreMemoryEnabled:"\u542F\u7528\u6838\u5FC3\u8BB0\u5FC6\u6CE8\u5165",workingMemoryEnabled:"\u542F\u7528\u4F1A\u8BDD\u5DE5\u4F5C\u533A\uFF08\u8349\u7A3F\u672C\uFF09",coreMemoryLimit:"\u6838\u5FC3\u8BB0\u5FC6\u4E0A\u9650\uFF08\u5F20\uFF09",coreMemoryMaxChars:"\u6838\u5FC3\u8BB0\u5FC6\u603B\u5B57\u7B26\u4E0A\u9650",setCore:"\u8BBE\u4E3A\u6838\u5FC3\u8BB0\u5FC6",unsetCore:"\u53D6\u6D88\u6838\u5FC3\u8BB0\u5FC6",coreSetOk:"\u5DF2\u8BBE\u4E3A\u6838\u5FC3\u8BB0\u5FC6",coreUnsetOk:"\u5DF2\u53D6\u6D88\u6838\u5FC3\u8BB0\u5FC6",coreSetFail:"\u8BBE\u7F6E\u5931\u8D25",coreActiveHint:"\u8FD9\u5F20\u5361\u6BCF\u6B21\u4F1A\u8BDD\u90FD\u4F1A\u5F3A\u5236\u6CE8\u5165\uFF1B\u4E0E\u666E\u901A\u8BB0\u5FC6\u51B2\u7A81\u65F6\u4EE5\u5B83\u4E3A\u51C6\u3002",coreInactiveHint:"\u666E\u901A\u77E5\u8BC6\u5361\u53EF\u4EE5\u63D0\u5347\u4E3A\u6838\u5FC3\u8BB0\u5FC6\uFF1B\u63D0\u5347\u540E\u6BCF\u6B21\u4F1A\u8BDD\u81EA\u52A8\u751F\u6548\u3002",coreNeedApproval:"\u5148\u6279\u51C6\u8FD9\u5F20\u5361\uFF0C\u624D\u80FD\u8BBE\u4E3A\u6838\u5FC3\u8BB0\u5FC6\u3002",coreShort:"\u6838\u5FC3",setCoreShort:"\u8BBE\u6838\u5FC3",uiLayout:"\u5E03\u5C40\u5927\u5C0F",uiLayoutHint:"\u8C03\u6574\u8BB0\u5FC6\u754C\u9762\u6574\u4F53\u5927\u5C0F\uFF08\u53EA\u5F71\u54CD\u663E\u793A\uFF0C\u4E0D\u5F71\u54CD\u8BB0\u5FC6\u6570\u636E\uFF09",uiCompact:"\u7D27\u51D1",uiNormal:"\u6807\u51C6",uiLarge:"\u5927",autoCapture:"\u81EA\u52A8\u6C89\u6DC0",autoRecall:"\u81EA\u52A8\u53EC\u56DE",captureMinChars:"\u6355\u83B7\u6700\u5C0F\u957F\u5EA6",maxCardsPerDay:"\u65E5\u914D\u989D",dedupThreshold:"\u53BB\u91CD\u9608\u503C",recallLimit:"\u53EC\u56DE\u6761\u6570",vaultMulti:"\u591A\u5E93\uFF08\u6309\u9879\u76EE\u9694\u79BB\uFF09",vaultMultiHint:"\u7559\u7A7A\u5373\u5355\u5E93\uFF0C\u8001\u914D\u7F6E\u4E0D\u53D7\u5F71\u54CD",vaultNow:"\u5F53\u524D\u751F\u6548",vaultSource:"\u6765\u6E90",vaultWorkspace:"\u5F53\u524D workspace",vaultNamePh:"\u5E93\u540D\uFF0C\u5982 work",vaultPathPh:"\u76EE\u5F55\uFF0C\u5982 D:/vaults/work",vaultMatchPh:"\u9879\u76EE\u76EE\u5F55\uFF08\u53EF\u9009\uFF0C\u6309 workspace \u81EA\u52A8\u9009\u5E93\uFF09",vaultAdd:"\u6DFB\u52A0\u4E00\u4E2A\u5E93",vaultActive:"\u6FC0\u6D3B\u5E93",vaultActiveNone:"\u9ED8\u8BA4\u5E93\uFF08\u4E0D\u6307\u5B9A\uFF09",vaultSrcEnv:"\u73AF\u5883\u53D8\u91CF MEMORY_VAULT_DIR",vaultSrcProfile:"\u6FC0\u6D3B\u5E93\u914D\u7F6E",vaultSrcWorkspace:"\u6309\u9879\u76EE\u76EE\u5F55\u81EA\u52A8\u547D\u4E2D",vaultSrcVaultDir:"\u5355\u5E93\u914D\u7F6E vaultDir",vaultSrcDefault:"\u9ED8\u8BA4\u76EE\u5F55",fbNav:"\u53CD\u9988\u5F02\u5E38",fbTitle:"\u53CD\u9988\u5F02\u5E38\uFF08\u63D0\u4EA4\u5230 GitHub\uFF09",fbDesc:"\u63CF\u8FF0\u4F60\u9047\u5230\u7684\u95EE\u9898\uFF08\u73B0\u8C61 / \u590D\u73B0\u6B65\u9AA4 / \u671F\u671B\u884C\u4E3A\uFF09",fbDiag:"\u8BCA\u65AD\u4FE1\u606F\uFF08\u5DF2\u81EA\u52A8\u8131\u654F\uFF1Ahome \u76EE\u5F55\u4E0E key/token \u5DF2\u66FF\u6362\uFF09",fbCopyDiag:"\u590D\u5236\u8BCA\u65AD\u4FE1\u606F",fbOpenIssue:"\u5728 GitHub \u63D0\u4EA4\uFF08\u5DF2\u9884\u586B\uFF09",fbCopyPrompt:"\u590D\u5236\u7ED9 AI \u7684\u63D0\u793A\u8BCD",fbCopiedDiag:"\u8BCA\u65AD\u4FE1\u606F\u5DF2\u590D\u5236",fbCopiedPrompt:"\u63D0\u793A\u8BCD\u5DF2\u590D\u5236\uFF0C\u7C98\u8FDB AI \u5BF9\u8BDD\u6846\u5373\u53EF",fbCopyFail:"\u590D\u5236\u5931\u8D25\uFF0C\u8BF7\u624B\u52A8\u9009\u4E2D\u590D\u5236",fbWhy:"GitHub \u4E0D\u5141\u8BB8\u533F\u540D\u521B\u5EFA issue\uFF0C\u63D2\u4EF6\u91CC\u4E5F\u4E0D\u5E94\u5185\u7F6E token\uFF1A\u6240\u4EE5\u8FD9\u91CC\u628A\u6807\u9898 / \u6B63\u6587 / \u8BCA\u65AD\u90FD\u9884\u586B\u597D\uFF0C\u4F60\u53EA\u9700\u518D\u70B9\u4E00\u6B21 Submit\u3002",fbNeedDesc:"\u8BF7\u5148\u63CF\u8FF0\u4F60\u9047\u5230\u7684\u95EE\u9898",fbLoading:"\u6B63\u5728\u6536\u96C6\u8BCA\u65AD\u4FE1\u606F\u2026",fbDiagFail:"\u8BCA\u65AD\u63A5\u53E3\u4E0D\u53EF\u7528\uFF08\u72EC\u7ACB web \u6216\u65E7\u7248\u5BBF\u4E3B\uFF09\uFF0C\u8BF7\u624B\u52A8\u8865\u5145\u73AF\u5883\u4FE1\u606F",fbOr:"\u6216\u8005",fbSelectAll:"\u5168\u9009",auditTypeLabel:"\u7C7B\u578B",auditInboxSub:"\u81EA\u52A8\u6C89\u6DC0\u7684\u5361\u5148\u5230\u8FD9\u91CC \xB7 \u6279\u51C6\u540E\u8FDB\u5165\u8BB0\u5FC6\u5E93",auditSearchPlaceholder:"\u641C\u7D22\u6807\u9898 / \u6807\u7B7E / \u8DEF\u5F84\u2026",auditNoMatch:"\u6CA1\u6709\u5339\u914D\u7684\u5BA1\u6838\u5361",auditUndo:"\u6279\u51C6\u4E0E\u9A73\u56DE\u90FD\u53EF\u64A4\u9500",auditSelected:"\u5DF2\u9009",auditRevision:"\u4FEE\u6539",auditRevisionFrom:"\u4FEE\u6539\u539F\u5361",auditClearSelection:"\u6E05\u7A7A",preview:"\u9884\u89C8",supportGroup:"\u4EA4\u6D41\u7FA4",supportGroupQQ:"QQ \u4EA4\u6D41\u7FA4",supportGroupWechat:"\u5FAE\u4FE1\u4EA4\u6D41\u7FA4",supportSponsor:"\u8D5E\u52A9",supportLegacy:"\u65E7\u7A0B\u5E8F",supportTitle:"\u652F\u6301\u4E0E\u4EA4\u6D41",clickToZoom:"\u70B9\u51FB\u653E\u5927",supportGroupHint:"\u626B\u7801\u8FDB\u4EA4\u6D41\u7FA4\uFF08QQ / \u5FAE\u4FE1\uFF09\uFF0C\u9047\u5230\u95EE\u9898\u53EF\u4EE5\u76F4\u63A5\u95EE\u3002",supportSponsorHint:"\u5982\u679C\u8FD9\u4E2A\u63D2\u4EF6\u5E2E\u4F60\u7701\u4E86\u65F6\u95F4\uFF0C\u53EF\u4EE5\u8BF7\u4F5C\u8005\u559D\u676F\u5496\u5561\u3002\u5B8C\u5168\u81EA\u613F\uFF0C\u4E0D\u5F71\u54CD\u4EFB\u4F55\u529F\u80FD\u3002",supportAlipay:"\u652F\u4ED8\u5B9D",supportLegacyTitle:"\u65E7\u7A0B\u5E8F\uFF08dsh-desktop\uFF09\u5DF2\u505C\u6B62\u7EF4\u62A4",supportLegacyBody:"\u4F5C\u8005\u81EA\u7814\u7684 dsh-desktop \u5DF2\u505C\u6B62\u7EF4\u62A4\uFF0C\u5B98\u65B9 DeepSeek Harness \u684C\u9762\u7248\u5DF2\u8986\u76D6\u540C\u6837\u80FD\u529B\uFF0C\u5EFA\u8BAE\u8FC1\u79FB\u3002\u65E7 profile \u91CC\u5982\u679C\u8FD8\u9489\u7740\u5DF2\u64A4\u4E0B\u7684 dsh-desktop-shell@0.3.0\uFF0C\u5148\u5220\u6389\u90A3\u5957\u4F9D\u8D56\uFF0C\u5426\u5219 pnpm install \u4F1A\u5931\u8D25\u3002",supportReadme:"\u6253\u5F00 README",supportReleases:"\u5386\u53F2\u7248\u672C",supportFeedback:"\u5F02\u5E38\u53CD\u9988",supportReplay:"\u91CD\u65B0\u67E5\u770B\u5F15\u5BFC",onboardTitle:"30 \u79D2\u8BA4\u8BC6\u8BB0\u5FC6\u6838\u5FC3",onboardSub:"\u4F60\u7684 AI \u4F1A\u5728\u6BCF\u8F6E\u5BF9\u8BDD\u540E\u81EA\u52A8\u6C89\u6DC0\u77E5\u8BC6\u5361\uFF0C\u5148\u5BA1\u540E\u5165\u3002",onboardSkip:"\u8DF3\u8FC7",onboardBack:"\u4E0A\u4E00\u6B65",onboardNext:"\u4E0B\u4E00\u6B65",onboardStart:"\u5F00\u59CB\u4F7F\u7528",onboardStep0Title:"\u5148\u53BB GitHub \u70B9\u4E2A Star",onboardStep0Body:"Star \u662F\u4F5C\u8005\u7EE7\u7EED\u7EF4\u62A4\u6700\u76F4\u63A5\u7684\u53CD\u9988\uFF1B\u60F3\u81EA\u5DF1\u6539\u4EE3\u7801\u6216\u90E8\u7F72\uFF0C\u5C31\u987A\u624B Fork \u4E00\u4EFD\u3002",onboardStar:"Star / \u70B9\u8D5E",onboardFork:"Fork",onboardStarred:"\u5DF2 Star\uFF0C\u7EE7\u7EED",onboardStarHint:"\u4E4B\u540E\u53EF\u4EE5\u968F\u65F6\u70B9\u9876\u680F\u7684 \u2605 Star \u56DE\u6765\u3002",onboardStep1Title:"\u81EA\u52A8\u6C89\u6DC0\uFF0C\u4E0D\u7528\u624B\u52A8\u8BB0",onboardStep1Body:"\u6BCF\u8F6E\u5BF9\u8BDD\u7ED3\u675F\uFF0C\u503C\u5F97\u7559\u4E0B\u7684\u51B3\u7B56\u3001\u6839\u56E0\u548C\u6559\u8BAD\u4F1A\u88AB\u5199\u6210\u4E00\u5F20\u5361\u3002\u5148\u751F\u6210\uFF0C\u518D\u5BA1\u6838\u3002",onboardStep2Title:"\u8BFB\u5230\u6709\u7528\u7684\u5361\uFF0C\u70B9\u4E2A \u{1F44D}",onboardStep2Body:"\u6253\u5F00\u4EFB\u610F\u5361\u7247\uFF0C\u70B9 \u{1F44D} \u6709\u7528 / \u{1F44E} \u6CA1\u7528\u3002\u4E0D\u7528\u5148\u641C\u7D22\uFF0C\u6309\u94AE\u73B0\u5728\u4E00\u76F4\u90FD\u5728\u3002\u5B83\u4F1A\u5E2E\u52A9\u53EC\u56DE\u6392\u5E8F\u3002",onboardStep3Title:"\u5DE6\u4FA7\u65B0\u589E\u652F\u6301\u5165\u53E3",onboardStep3Body:"\u4EA4\u6D41\u7FA4\u3001\u8D5E\u52A9\u3001\u65E7\u7A0B\u5E8F\u3001\u5F02\u5E38\u53CD\u9988\u90FD\u5728\u5DE6\u680F\u5E95\u90E8\uFF1B\u9700\u8981\u5E2E\u52A9\u65F6\u4E0D\u7528\u7FFB README\u3002",onboardTip:"\u63D0\u793A\uFF1A\u8FD9\u4E2A\u5F15\u5BFC\u53EF\u4EE5\u5728\u300C\u652F\u6301\u4E0E\u4EA4\u6D41\u300D\u91CC\u91CD\u65B0\u6253\u5F00\u3002",navWorkspace:"\u5DE5\u4F5C\u533A",navSystem:"\u7CFB\u7EDF",navSupport:"\u652F\u6301",navQuotes:"\u4F5C\u8005\u8BED\u5F55",quoteHint:"\u70B9\u51FB\u6362\u4E00\u53E5",v5Local:"\u672C\u5730\u8FD0\u884C",v5Star:"\u53BB GitHub \u70B9 Star",runtimeTitle:"\u8FD0\u884C\u72B6\u6001",runtimeSub:"\u77E5\u8BC6\u5E93\u3001\u5907\u4EFD\u3001\u81EA\u52A8\u6C89\u6DC0\u4E0E\u7248\u672C",dbTitle:"\u77E5\u8BC6\u5E93",backupTitle:"\u5907\u4EFD",captureTitle:"\u81EA\u52A8\u6C89\u6DC0",versionTitle:"\u7248\u672C",cardsUnit:"\u5F20\u5361",links:"\u8FDE\u63A5",todayReview:"\u4ECA\u65E5\u56DE\u770B",openArrow:"\u6253\u5F00 \u2192",reshuffle:"\u6362\u4E00\u5F20",insightDecision:"\u51B3\u7B56",insightRoot:"\u6839\u56E0",insightLesson:"\u6559\u8BAD",insightSummary:"\u6458\u8981",pinCard:"\u56FA\u5B9A\u8FD9\u5F20\u5361",unpinCard:"\u53D6\u6D88\u56FA\u5B9A",pinnedOnly:"\u5DF2\u56FA\u5B9A",toastApproved:"\u5DF2\u6279\u51C6",toastRejected:"\u5DF2\u9A73\u56DE",toastCardDeleted:"\u5DF2\u5220\u9664",toastRestored:"\u5DF2\u6062\u590D",toastPurged:"\u5DF2\u5F7B\u5E95\u5220\u9664",toastPurgedExpired:"\u5DF2\u6E05\u7406\u8FC7\u671F\u56DE\u6536\u7AD9",toastFailed:"\u64CD\u4F5C\u5931\u8D25",noSelection:"\u8BF7\u5148\u9009\u62E9\u8981\u5904\u7406\u7684\u5361\u7247",enabledLabel:"\u542F\u7528\u8BB0\u5FC6\u6838\u5FC3",vaultDirLabel:"\u8BB0\u5FC6\u5E93\u76EE\u5F55\uFF08\u5355\u5E93\uFF09",captureCooldownMs:"\u6C89\u6DC0\u51B7\u5374 (ms)",captureProvider:"\u84B8\u998F provider\uFF08\u7559\u7A7A\u81EA\u52A8\uFF09",routeAuto:"\u81EA\u52A8\uFF08\u6309\u6CE8\u518C\u987A\u5E8F\uFF09",routeListFail:"\u53D6\u4E0D\u5230\u6A21\u578B\u5217\u8868\uFF08{err}\uFF09\u2192 \u4E0B\u9762\u53EF\u76F4\u63A5\u624B\u586B provider / model\uFF1B\u684C\u9762\u7248\u5F39\u7A97\u4F1A\u81EA\u52A8\u5411\u5BBF\u4E3B\u4EE3\u7406\uFF0C\u82E5\u4ECD\u5931\u8D25\u8BF7\u4ECE DSH \u8BBE\u7F6E\u9875\u6253\u5F00",captureFollowSession:"\u8DDF\u968F\u5F53\u524D\u4F1A\u8BDD\uFF08\u84B8\u998F\u7528\u4F1A\u8BDD\u7684 provider/model\uFF09",captureFirstOnly:"\u4EC5\u8BD5\u9996\u9009\uFF08\u5931\u8D25\u5373\u505C\uFF0C\u4E0D\u8F6E\u6362\u515C\u5E95\uFF09",llmTest:"\u6D4B\u8BD5\u84B8\u998F\u8DEF\u7531",llmTestOk:"\u2713 \u8C03\u7528\u6210\u529F",llmTestFail:"\u2717 \u8C03\u7528\u5931\u8D25",llmCandidates:"\u5019\u9009\u6570",captureModel:"\u84B8\u998F model\uFF08\u7559\u7A7A\u81EA\u52A8\uFF09",recallEmbedding:"\u8BED\u4E49\u53EC\u56DE provider\uFF08\u53EF\u9009\uFF09",sessionBudgetChars:"\u4F1A\u8BDD\u9884\u7B97 (\u5B57\u7B26)",saving:"\u4FDD\u5B58\u4E2D\u2026",savePending:"\u5DF2\u5199\u5165\u914D\u7F6E\u6587\u4EF6\uFF1B\u5BBF\u4E3B\u4ECD\u662F\u65E7\u7248\uFF0C\u91CD\u542F DSH \u540E\u5373\u4EE5\u65B0\u503C\u4E3A\u51C6\uFF08\u672C\u9762\u677F\u5DF2\u751F\u6548\uFF09",actionRunning:"\u5904\u7406\u4E2D\u2026",recycleEmptyHint:"\u56DE\u6536\u7AD9\u4E3A\u7A7A\uFF1A\u5220\u6389\u7684\u5361\u7247\u4F1A\u5148\u653E\u5230\u8FD9\u91CC\uFF0C\u4FDD\u7559 {days} \u5929\u540E\u81EA\u52A8\u6E05\u7406\u3002",recyclePurgeAll:"\u6E05\u7A7A\u56DE\u6536\u7AD9",recyclePurgeAllConfirm:"\u6C38\u4E45\u5220\u9664\u56DE\u6536\u7AD9\u91CC\u7684\u5168\u90E8 {n} \u5F20\u5361\u7247\uFF1F\u6B64\u64CD\u4F5C\u4E0D\u53EF\u6062\u590D\u3002",toastPurgeAll:"\u5DF2\u6C38\u4E45\u5220\u9664 {n} \u5F20",bucketDeleted:"\u5DF2\u5220\u9664",restoreToQueue:"\u9000\u56DE\u5BA1\u6838",fbCopyManual:"\u81EA\u52A8\u590D\u5236\u88AB\u6D4F\u89C8\u5668\u62E6\u622A\uFF0C\u5DF2\u628A\u5185\u5BB9\u653E\u5728\u4E0B\u9762\uFF1A\u70B9\u300C\u5168\u9009\u300D\u518D\u6309 Ctrl+C",vcPage:"\u9875\u9762\u811A\u672C",vcPageStale:"\u26A0 \u5F53\u524D\u9875\u9762\u4ECD\u5728\u8FD0\u884C\u65E7\u7248\u811A\u672C\uFF08\u9875\u9762 v{page} / \u78C1\u76D8 v{disk}\uFF09\uFF1A\u6309 Ctrl+F5 \u5237\u65B0\u9875\u9762\u5373\u751F\u6548\uFF1B\u82E5\u300C\u8FD0\u884C\u4E2D\u300D\u4ECD\u662F\u65E7\u7248\u53F7\uFF0C\u5219\u8FD8\u9700\u91CD\u542F\u684C\u9762\u7248 / DSH",vcLoaded:"\u8FD0\u884C\u4E2D\uFF08\u670D\u52A1\u672C\u9875\u7684\u8FDB\u7A0B\uFF09",vcResident:"\u5E38\u9A7B\u5B9E\u4F8B",vcOnDisk:"\u78C1\u76D8\u5B89\u88C5",vcLatest:"npm \u6700\u65B0",vcStale:"\u78C1\u76D8\u5DF2\u5B89\u88C5 v{disk}\uFF0C\u4F46\u670D\u52A1\u672C\u9875\u7684\u8FDB\u7A0B\u4ECD\u52A0\u8F7D v{loaded} \u2014\u2014 \u70B9\u300C\u91CD\u542F\u5E38\u9A7B\u5B9E\u4F8B\u300D\u5373\u53EF\u7528\u65B0\u4EE3\u7801\u91CD\u542F\u5B83\uFF08\u4E0D\u7528\u91CD\u542F DSH\uFF09",vcRestart:"\u91CD\u542F\u5E38\u9A7B\u5B9E\u4F8B",vcRestarting:"\u91CD\u542F\u4E2D\u2026",vcRestartSent:"\u5DF2\u8C03\u5EA6\u91CD\u542F\u5E38\u9A7B\u5B9E\u4F8B\uFF1A\u7EA6 3-8 \u79D2\u540E\u65B0\u8FDB\u7A0B\u63A5\u7BA1\uFF0C\u8BF7\u7A0D\u7B49\u518D\u5237\u65B0\u9875\u9762\uFF08Ctrl+F5\uFF09",vcRestartCurrent:"\u5E38\u9A7B\u5B9E\u4F8B\u5DF2\u7ECF\u662F\u6700\u65B0\u7248\uFF0C\u65E0\u9700\u91CD\u542F",vcRestartAnyway:"\u5E38\u9A7B\u5B9E\u4F8B\u5DF2\u662F v{ver}\uFF1B\u901A\u5E38\u65E0\u9700\u91CD\u542F\uFF0C\u5361\u4F4F/\u884C\u4E3A\u5F02\u5E38\u65F6\u53EF\u5F3A\u5236\u91CD\u542F",vcHostProcessStale:"\u78C1\u76D8\u5DF2\u5B89\u88C5 v{disk}\uFF0C\u4F46**\u670D\u52A1\u672C\u9875\u7684\u8FDB\u7A0B**\uFF08DSH \u5BBF\u4E3B\uFF09\u52A0\u8F7D\u7684\u4ECD\u662F v{loaded} \u2014\u2014 \u5B83\u6765\u81EA\u5BBF\u4E3B\u542F\u52A8\u65F6\u7684\u90A3\u4EFD\u4EE3\u7801\uFF1A**\u91CD\u542F\u5E38\u9A7B\u5B9E\u4F8B\u4E0D\u4F1A\u6539\u53D8\u672C\u9875**\uFF0C\u9700\u5B8C\u5168\u9000\u51FA\u5E76\u91CD\u5F00 DSH\u3002",vcRestartFixes:"\u70B9\u51FB\u4F1A\u628A\u5E38\u9A7B\u5B9E\u4F8B\uFF08\u7AEF\u53E3\u4E0A\u90A3\u4E2A\uFF09\u6362\u6210 v{disk}\uFF08\u5F53\u524D v{served}\uFF09\uFF0C\u4E0D\u7528\u91CD\u542F DSH",vcRestartStart:"\u70B9\u51FB\u4F1A\u7528\u5F53\u524D\u78C1\u76D8\u7248\u672C v{disk} \u628A\u5E38\u9A7B\u5B9E\u4F8B\u62C9\u8D77\u6765\uFF08\u4E0D\u7528\u91CD\u542F DSH\uFF09",vcRestartRepair:"\u70B9\u51FB\u4F1A\u628A\u5B83\u91CD\u65B0\u6258\u7BA1\u5E76\u4FDD\u6D3B\uFF08\u7248\u672C\u5DF2\u662F v{disk}\uFF0C\u4E0D\u7528\u91CD\u542F DSH\uFF09",vcRestartHostOnly:"\u5E38\u9A7B\u5B9E\u4F8B\u5DF2\u662F v{disk}\uFF1B\u672C\u9875\u663E\u793A v{loaded} \u6765\u81EA DSH \u5BBF\u4E3B \u2014\u2014 \u91CD\u542F\u5E38\u9A7B\u5B9E\u4F8B\u4E0D\u5F71\u54CD\u672C\u9875\uFF0C\u8BF7\u91CD\u542F DSH",vcRestartFail:"\u91CD\u542F\u8BF7\u6C42\u5931\u8D25",vcRestartNoRoute:"\u5F53\u524D\u9875\u9762\u5BF9\u63A5\u7684\u8FDB\u7A0B\u8FD8\u662F\u65E7\u7248\uFF08\u6CA1\u6709\u8FD9\u4E2A\u63A5\u53E3\uFF09\uFF1A\u8BF7\u91CD\u542F\u684C\u9762\u7248 / DSH \u540E\u518D\u8BD5\uFF0C\u6216\u6267\u884C {cmd}",vcHostStale:"\u4E0A\u65B9\u7684\u300C\u8FD0\u884C\u4E2D\u300D\u6765\u81EA\u670D\u52A1\u672C\u9875\u7684\u8FDB\u7A0B\uFF1B\u5E38\u9A7B\u5B9E\u4F8B\u5DF2\u662F\u65B0\u7248 \u2014\u2014 \u8981\u8BA9\u5B83\u4E5F\u53D8\u6210\u65B0\u7248\u53F7\uFF0C\u9700\u91CD\u542F\u684C\u9762\u7248 / DSH",vcResidentDownShort:"\u672A\u8FD0\u884C",vcResidentDown:"\u5E38\u9A7B\u5B9E\u4F8B\u6CA1\u5728\u8FD0\u884C\uFF08\u7AEF\u53E3 {port} \u65E0\u54CD\u5E94\uFF09\u2014\u2014 \u70B9\u4E0B\u9762\u7684\u6309\u94AE\u7528\u65B0\u4EE3\u7801\u628A\u5B83\u62C9\u8D77\u6765\uFF1B\u62C9\u4E0D\u8D77\u6765\u65F6\u6267\u884C {cmd}\uFF0C\u5E76\u8D34\u4E00\u4E0B dsh-memory status \u7684\u8F93\u51FA",vcResidentUnmanagedShort:"\u672A\u6258\u7BA1",vcResidentUnmanaged:"\u5E38\u9A7B\u5B9E\u4F8B\u5728\u670D\u52A1 v{served}\uFF0C\u4F46**\u6CA1\u6709\u770B\u95E8\u72D7\u4FDD\u6D3B**\uFF08\u505C\u6B62 / \u786C\u6740\u540E\u6B8B\u7559\u7684\u5B64\u513F\uFF09\u2014\u2014 \u70B9\u4E0B\u9762\u7684\u6309\u94AE\u628A\u5B83\u91CD\u65B0\u6258\u7BA1\uFF08\u91CD\u65B0\u62C9\u4E00\u4E2A\u770B\u95E8\u72D7 + \u65B0\u5B9E\u4F8B\uFF09\uFF1B\u4E5F\u53EF\u4EE5\u6267\u884C {cmd}",vcResidentLockUnknownShort:"\u6258\u7BA1\u72B6\u6001\u672A\u77E5",vcResidentReplaceBlockedShort:"\u4E0D\u53EF\u66FF\u6362",vcResidentHostManagedShort:"\u5BBF\u4E3B\u6258\u7BA1",vcResidentReplaceBlocked:"\u5E38\u9A7B\u5B9E\u4F8B**\u4E0D\u53EF\u66FF\u6362**\uFF08\u73AF\u5883\u9650\u5236\uFF09\uFF1A\u770B\u95E8\u72D7\u9501\u76EE\u5F55\u4E0D\u53EF\u5199\uFF08{err}\uFF1B{path}\uFF09\u2192 \u7AEF\u53E3\u4E0A\u4F1A**\u957F\u671F**\u505C\u5728 v{served}\u3002\u8FD9\u4E0D\u662F\u300C\u6682\u65F6\u843D\u540E\u300D\uFF1A\u81EA\u52A8\u66FF\u6362\u88AB\u6B63\u786E\u5730\u62D2\u7EDD\uFF08\u907F\u514D\u7559\u4E0B\u5B64\u513F\uFF09\u3002\u51FA\u8DEF\uFF1A\u4FEE\u590D\u8BE5\u76EE\u5F55\u6743\u9650\u540E\u6267\u884C {cmd}\uFF0C\u6216\u524D\u53F0\u89C2\u5BDF dsh-memory watchdog --port 7999",vcResidentLockUnknown:"\u5E38\u9A7B\u5B9E\u4F8B\u5728\u670D\u52A1 v{served}\uFF0C\u4F46**\u770B\u95E8\u72D7\u9501\u6587\u4EF6\u5199\u4E0D\u8FDB\u53BB**\uFF08\u53D7\u9650\u73AF\u5883\uFF1A\u6C99\u7BB1\u7981\u5199 / ACL / \u975E\u7CFB\u7EDF\u76D8\uFF09\u2192 \u65E0\u6CD5\u5224\u65AD\u5B83\u6709\u6CA1\u6709\u88AB\u6258\u7BA1\uFF08\u4E0D\u662F\u300C\u672A\u6258\u7BA1\u300D\uFF09\u3002\u539F\u56E0\uFF1A{err}\uFF08{path}\uFF09\u3002\u4FDD\u6D3B\u901A\u5E38\u4ECD\u7136\u6709\u6548\uFF1B\u70B9\u4E0B\u9762\u7684\u6309\u94AE\u53EF\u7528\u65B0\u4EE3\u7801\u91CD\u65B0\u6258\u7BA1\u4E00\u6B21\u3002",vcOutdated:"\u6709\u65B0\u7248\u672C",vcUpToDate:"\u5DF2\u662F\u6700\u65B0",vcCheck:"\u68C0\u67E5\u66F4\u65B0",checking:"\u68C0\u67E5\u4E2D\u2026",vcCheckFail:"\u68C0\u67E5\u66F4\u65B0\u5931\u8D25",recallSummaryLen:"\u53EC\u56DE\u6458\u8981\u957F\u5EA6",recallBody:"\u53EC\u56DE\u542B\u6B63\u6587",secretHint:"\u51ED\u8BC1\u53D6\u7528\u63D0\u793A\uFF08\u6CE8\u5165\u6BCF\u4E2A\u4F1A\u8BDD\uFF09",autoWeb:"Web server",autoWebMode:"\u4FDD\u6D3B\u6A21\u5F0F",webPort:"Web \u7AEF\u53E3",webCheckIntervalMs:"\u63A2\u6D3B\u95F4\u9694(ms)",webMaxRestart:"\u6700\u5927\u91CD\u542F\u6B21\u6570",watchdogAutoSpawn:"\u770B\u95E8\u72D7\u8FDB\u7A0B",autoRestartOnDrift:"\u7248\u672C\u6F02\u79FB\u81EA\u52A8\u91CD\u542F\u5E38\u9A7B\u5B9E\u4F8B",autoMcpSetup:"\u81EA\u52A8\u6302\u8F7D MCP",saveConfig:"\u4FDD\u5B58\u914D\u7F6E",saveFail:"\u4FDD\u5B58\u5931\u8D25",savedOk:"\u5DF2\u4FDD\u5B58",savedDirect:"\u672C\u673A\u6CA1\u6709 DSH \u5BBF\u4E3B\u5728\u8FD0\u884C\uFF0C\u5DF2\u76F4\u63A5\u5199\u5165\u5171\u4EAB\u914D\u7F6E\uFF08hooks / MCP / \u72EC\u7ACB\u9875\u7ACB\u5373\u751F\u6548\uFF09",savedApplied:"\u5DF2\u4FDD\u5B58\u5E76\u751F\u6548\uFF08\u5BBF\u4E3B\u5DF2\u5728\u8BF7\u6C42\u4E0A\u4E0B\u6587\u91CC\u5E94\u7528\uFF09",saveQueued:"\u5DF2\u4EA4\u7ED9 DSH \u5BBF\u4E3B\u540C\u6B65\uFF0C\u5C1A\u672A\u786E\u8BA4\u751F\u6548",saveHostGuard:"\u8BE5\u5BBF\u4E3B\u4E0D\u5141\u8BB8\u63D2\u4EF6\u4ECE\u81EA\u5DF1\u7684\u56DE\u8C03\u4E0A\u4E0B\u6587\u91CC\u5199\u914D\u7F6E\uFF1B\u8BF7\u5728\u300CDSH \u8BBE\u7F6E \u2192 \u8BB0\u5FC6\u300D\u91CC\u6539\u540C\u4E00\u9879\uFF0C\u6216\u7F16\u8F91 profile \u7684\u914D\u7F6E\u8865\u4E01\u5C42",saveFailHint:"\u5BBF\u4E3B\u4FA7\u672A\u5E94\u7528\uFF0C\u8BE6\u89C1\u300C\u53CD\u9988\u5F02\u5E38\u300D\u91CC\u7684\u8BCA\u65AD\u4FE1\u606F",recallTool:"recall \u5DE5\u5177",costControl:"\u6210\u672C\u63A7\u5236",costHint:"\u7701 token\u3001\u63A7 LLM \u6D88\u8017",distillEnabled:"\u84B8\u998F\u77E5\u8BC6\u5361(\u5F00=LLM \u538B\u7F29, \u5173=\u539F\u6587\u5361\u96F6 LLM)",dedupByLLM:"\u8BED\u4E49\u53BB\u91CD\u5582 LLM(\u5173=\u7EAF\u8BCD\u6CD5\u66F4\u7701)",captureMaxTokens:"\u84B8\u998F\u8F93\u51FA\u4E0A\u9650(token)",captureTimeoutMs:"\u84B8\u998F\u8D85\u65F6(\u6BEB\u79D2\uFF1B\u672C\u5730\u5927\u6A21\u578B\u51B7\u542F\u52A8\u5EFA\u8BAE 120000+)",recallMinScore:"\u53EC\u56DE\u76F8\u5173\u6027\u9608\u503C(\u8D8A\u9AD8\u8D8A\u7701)",configNeedsDsh:"\u914D\u7F6E\u7F16\u8F91\u9700\u5728 DSH \u5185\u6253\u5F00\uFF08\u672C\u9875\u53EF\u80FD\u53EA\u8BFB\u6216\u6709\u90E8\u5206\u7F3A\u5931\uFF09",installMcp:"\u5B89\u88C5 MCP",uninstallMcp:"\u5378\u8F7D MCP",uninstallConfirm:"\u786E\u8BA4\u5378\u8F7D\u8BE5\u667A\u80FD\u4F53\u7684 MCP\uFF1FClaude Code/Codex \u5C06\u65E0\u6CD5\u518D\u8C03\u7528\u8BB0\u5FC6\u5E93\u3002",presetConfig:"\u4E00\u952E\u63A8\u8350\u914D\u7F6E",presetHint:"\u70B9\u51FB\u586B\u5145\u5BF9\u5E94\u65B9\u6848\uFF0C\u70B9\u4FDD\u5B58\u751F\u6548",planApplied:"\u5DF2\u586B\u5165\u300C{plan}\u300D\xB7 \u70B9\u300C\u4FDD\u5B58\u914D\u7F6E\u300D\u751F\u6548",planDescA:"\u4E2A\u4EBA\u5F00\u53D1\u63A8\u8350 \xB7 \u84B8\u998F 4000 \xB7 \u5173\u770B\u95E8\u72D7",planDescB:"\u9884\u7B97\u654F\u611F \xB7 \u5173\u84B8\u998F \xB7 \u8FD1 0 \u6210\u672C",planDescC:"\u957F\u9879\u76EE \xB7 \u5F00\u770B\u95E8\u72D7 \xB7 \u9AD8\u8D28\u91CF",cfgSubCore:"\u81EA\u52A8\u6C89\u6DC0 / \u53EC\u56DE / \u5E93\u76EE\u5F55\u4E0E\u53BB\u91CD\u7B56\u7565",cfgSubMulti:"\u6309\u9879\u76EE\u9694\u79BB\u8BB0\u5FC6\u5E93\uFF0C\u5207\u6362\u540E CLI / MCP / hooks \u540C\u6B65\u751F\u6548",cfgSubCost:"\u63A7\u5236 LLM \u8C03\u7528\u4E0E\u53EC\u56DE\u89C4\u6A21\uFF0C\u76F4\u63A5\u51B3\u5B9A\u82B1\u591A\u5C11\u94B1",cfgSubAudit:"\u4EC0\u4E48\u5185\u5BB9\u9700\u8981\u4F60\u4EBA\u5DE5\u786E\u8BA4\u540E\u624D\u8FDB\u4E3B\u5E93",cfgSubService:"\u4FDD\u6D3B\u3001\u770B\u95E8\u72D7\u4E0E\u7248\u672C\u81EA\u6108\uFF0C\u4E00\u822C\u4FDD\u6301\u9ED8\u8BA4\u5373\u53EF",cfgDirty:"\u6709\u672A\u4FDD\u5B58\u7684\u66F4\u6539",cfgClean:"\u5DF2\u540C\u6B65",unitChars:"\u5B57",unitPerDay:"\u5F20 / \u5929",unitTokens:"tokens",unitMs:"\u6BEB\u79D2",unitTimes:"\u6B21",unitDays:"\u5929",mcpAutoHint:"\u81EA\u52A8\u8BC6\u522B\u5DF2\u5B89\u88C5\u7684 Agent \u4E0E\u5176 MCP \u914D\u7F6E\uFF08\u53EA\u8BFB\u63A2\u6D4B\uFF0C\u4E0D\u6539\u4EFB\u4F55\u6587\u4EF6\uFF09",mcpRefresh:"\u91CD\u65B0\u68C0\u6D4B",mcpSummary:"\u8BC6\u522B\u5230 {agents} \u4E2A Agent \xB7 {servers} \u4E2A MCP \xB7 {mounted} \u4E2A\u5DF2\u6302\u8F7D\u672C\u63D2\u4EF6",mcpNoServers:"\u672A\u914D\u7F6E MCP",mcpDetectedOnly:"\u4EC5\u8BC6\u522B",planA:"A \u8F7B\u91CF\u7701\u5FC3",planB:"B \u6781\u81F4\u7701\u94B1",planC:"C \u9AD8\u8D28\u91CF",pluginInfo:"\u63D2\u4EF6\u4FE1\u606F",organizeTitle:"\u6574\u7406\u5EFA\u8BAE",scanAndOrganize:"\u4E00\u952E\u641C\u7D22\u548C\u6574\u7406",scanHint:"\u70B9\u300C\u{1F50D} \u4E00\u952E\u641C\u7D22\u548C\u6574\u7406\u300D\u626B\u63CF\u76F8\u4F3C\u5361/\u9648\u65E7\u5361\uFF0C\u518D\u7528\u300C\u26A1 \u4E00\u952E\u4F18\u5316\u300D\u6267\u884C\u3002",mergeNow:"\u5408\u5E76",delete:"\u5220\u9664",captureAlert:"\u81EA\u52A8\u6C89\u6DC0\u5F02\u5E38",captureAlertHint:"\u6253\u5F00\u5DE6\u680F\u300C\u7528\u91CF/\u4ECA\u65E5\u300D\u770B\u81EA\u52A8\u6C89\u6DC0\u65E5\u5FD7\uFF1B\u82E5\u662F\u63A5\u53E3/\u7248\u672C\u4E0D\u5339\u914D\uFF0C\u9700\u66F4\u65B0 memory-eternal \u63D2\u4EF6\u3002",captureLog:"\u81EA\u52A8\u6C89\u6DC0\u65E5\u5FD7",captureLogHint:"\u6BCF\u8F6E\u5BF9\u8BDD\u7ED3\u675F\u540E\u81EA\u52A8\u8DD1\uFF1A\u76D1\u542C \u2192 \u5224\u5B9A \u2192 \u5199\u5361\u3002\u8FD9\u91CC\u663E\u793A\u6700\u8FD1 100 \u6761\uFF0C\u7528\u6765\u6392\u67E5\u300C\u4E3A\u4EC0\u4E48\u6CA1\u5199\u5361\u300D\u3002",captureLogEmpty:"\u8FD8\u6CA1\u6709\u8BB0\u5F55\u3002\u8DDF Agent \u804A\u4E00\u8F6E\uFF08> \u6355\u83B7\u6700\u5C0F\u957F\u5EA6\uFF09\u540E\u518D\u56DE\u6765\u770B\u3002",healthTitle:"\u5065\u5EB7\u6982\u89C8",healthHint:"\u5E93 / \u5907\u4EFD / \u6C89\u6DC0 / \u7248\u672C \u2014\u2014 \u4E00\u773C\u770B\u6E05\u6709\u6CA1\u6709\u9759\u9ED8\u574F\u6389\u7684\u4E1C\u897F",healthDb:"\u77E5\u8BC6\u5E93",healthDbBad:"\u5E93\u4E0D\u53EF\u5199\u6216\u635F\u574F",healthBackups:"\u5907\u4EFD",healthNoBackups:"\u6CA1\u6709\u5907\u4EFD\uFF08\u6267\u884C dsh-memory doctor \u53EF\u5EFA\uFF0C\u5BBF\u4E3B\u4E5F\u4F1A\u6BCF\u65E5\u5907\u4EFD\uFF09",healthBackupAge:"{n} \u4E2A \xB7 \u6700\u8FD1 {d} \u5929\u524D",healthBackupToday:"{n} \u4E2A \xB7 \u4ECA\u5929",healthCapture:"\u81EA\u52A8\u6C89\u6DC0",healthNoRecords:"\u6682\u65E0\u8BB0\u5F55\uFF08\u8FD8\u6CA1\u89E6\u53D1\u8FC7\u6C89\u6DC0\uFF09",healthCapOk:"\u6700\u8FD1\u4E00\u6B21\u6210\u529F\u5199\u5361",healthCapFail:"\u6700\u8FD1\u4E00\u6B21\u5931\u8D25",healthRunAlign:"\u8FD0\u884C\u300C\u7248\u672C\u5BF9\u9F50\u68C0\u67E5\u300D\u540E\u663E\u793A",healthVersion:"\u7248\u672C",ledgerTitle:"\u8BB0\u5FC6\u8D26\u672C\uFF08\u8FD1 7 \u5929\uFF09",ledgerHint:"\u53EC\u56DE\u6CE8\u5165\u4E86\u591A\u5C11\u3001\u84B8\u998F\u8C03\u7528\u4E86\u591A\u5C11\u6B21 \u2014\u2014 \u5224\u65AD\u300C\u5230\u5E95\u7701\u4E0D\u7701 token\u300D\u7684\u7B2C\u4E00\u5757\u6570\u636E",ledgerRecalls:"\u53EC\u56DE\u6B21\u6570",ledgerInjected:"\u6CE8\u5165",ledgerChars:"\u5B57\u7B26",ledgerCaptures:"\u6C89\u6DC0\u6B21\u6570",ledgerLlmCalls:"LLM \u8C03\u7528",ledgerEstimate:"\u4F30\u7B97 token",ledgerEstimateHint:"\u6309\u7EA6 2 \u5B57\u7B26 \u2248 1 token \u7C97\u4F30\uFF0C\u53EA\u770B\u91CF\u7EA7",ledgerUseful:"\u53EC\u56DE\u6709\u7528\u7387",ledgerUsefulHint:"\u6765\u81EA\u300C\u6709\u7528 / \u6CA1\u7528\u300D\u53CD\u9988\uFF1B\u4F4E\u4E8E 60% \u8BF4\u660E\u6CE8\u5165\u53EF\u80FD\u51C0\u4E8F",ledgerFormula:"\u51C0\u6536\u76CA \u2248 \u88AB\u907F\u514D\u7684\u4E0A\u4E0B\u6587\u5F00\u9500 \u2212\uFF08\u6CE8\u5165\u5B57\u7B26 + \u84B8\u998F\u8C03\u7528 \xD7 \u5355\u4EF7\uFF09\u3002\u8D26\u672C\u53EA\u8BB0\u300C\u82B1\u4E86\u591A\u5C11\u300D\uFF0C\u6536\u76CA\u4FA7\u8BF7\u7ED3\u5408\u4F60\u5B9E\u9645\u7701\u4E0B\u7684\u91CD\u8BFB / \u8FD4\u5DE5\u6765\u5224\u65AD\u3002",ledgerNoData:"\u8FD1 7 \u5929\u8FD8\u6CA1\u6709\u8BB0\u5F55\uFF1A\u804A\u51E0\u8F6E\u6216\u8BA9 agent recall \u4E00\u6B21\u540E\u518D\u770B\u3002",ledgerNeedRestart:"\u5BBF\u4E3B\u4ECD\u5728\u8DD1\u65E7\u7248 API\uFF08/ledger \u4E0D\u5B58\u5728\uFF09\uFF1A\u5B8C\u5168\u9000\u51FA\u5E76\u91CD\u5F00 DSH \u540E\uFF0C\u8D26\u672C\u624D\u4F1A\u5F00\u59CB\u8BB0\u5F55\u3002",alignTitle:"\u7248\u672C\u5BF9\u9F50\u68C0\u67E5",alignRun:"\u5F00\u59CB\u68C0\u67E5",alignFix:"\u91CD\u5199\u63A5\u7EBF",alignFixConfirm:"\u91CD\u5199 MCP / hooks \u63A5\u7EBF\uFF1F\uFF08\u53EA\u78B0\u63D2\u4EF6\u81EA\u5DF1\u7684\u952E\uFF0C\u4E0D\u52A8\u4F60\u7684\u6570\u636E\u4E0E\u914D\u7F6E\uFF09",alignFixed:"\u63A5\u7EBF\u5DF2\u91CD\u5199\uFF1B\u82E5\u4E0A\u9762\u63D0\u793A\u300C\u5BBF\u4E3B\u8FDB\u7A0B\u65E7\u300D\uFF0C\u4ECD\u9700\u5B8C\u5168\u9000\u51FA\u5E76\u91CD\u5F00 DSH",alignFail:"\u5BF9\u9F50\u68C0\u67E5\u5931\u8D25",alignHint:"\u63D2\u4EF6\u5347\u7EA7\u53EA\u6362\u78C1\u76D8\u6587\u4EF6 \u2014\u2014 \u5BBF\u4E3B\u5185\u5B58\u91CC\u7684\u4E8B\u4EF6\u8BA2\u9605\u4E0E MCP / hooks \u91CC\u7684\u65E7\u8DEF\u5F84\u4E0D\u4F1A\u81EA\u5DF1\u66F4\u65B0\uFF0C\u8FD9\u91CC\u4E00\u6B21\u67E5\u6E05",alignIdle:"\u70B9\u300C\u5F00\u59CB\u68C0\u67E5\u300D\uFF1A\u5BF9\u6BD4\u5BBF\u4E3B / \u5E38\u9A7B\u5B9E\u4F8B / npm \u7684\u7248\u672C\uFF0C\u5E76\u68C0\u67E5 MCP\u3001hooks \u91CC\u662F\u5426\u6709\u65E7\u8DEF\u5F84\u4E0E\u65E7\u53C2\u6570",alignDisk:"\u78C1\u76D8",alignResident:"\u5E38\u9A7B\u5B9E\u4F8B",alignHost:"\u5BBF\u4E3B\u8FDB\u7A0B",captureLogUnavailable:"\u65E5\u5FD7\u4EC5\u5728 DSH \u5BBF\u4E3B\u5185\u53EF\u7528\uFF08\u72EC\u7ACB Web \u9875\u6CA1\u6709 host \u8FD0\u884C\u65F6\uFF09\u3002",captureAgentCards:"Agent \u81EA\u52A8\u6C89\u6DC0\u7684\u5361",noCards:"\u6682\u65E0",loadMore:"\u52A0\u8F7D\u66F4\u591A",batchMerge:"\u4E00\u952E\u667A\u80FD\u5408\u5E76",mergeAllConfirm:"\u5C06\u6309\u76F8\u4F3C\u5EA6\u5206\u7EC4\u7684\u5361\u7247\u5404\u5408\u5E76\u4E3A\u4E00\u5F20\uFF08\u4FDD\u7559\u5404\u81EA kind\uFF09\uFF0C\u539F\u5361\u5220\u9664\uFF1F",crossVault:"\u8DE8\u5E93\u805A\u5408",deleteConfirm:"\u786E\u5B9A\u5220\u9664\u8BE5\u8BB0\u5FC6\u5361\uFF1F\u6B64\u64CD\u4F5C\u4E0D\u53EF\u64A4\u9500\u3002",editCard:"\u7F16\u8F91",editHint:"\u53EA\u6539\u6807\u9898 / \u6807\u7B7E / \u6B63\u6587\uFF1B\u72B6\u6001\u4E0E\u7C7B\u578B\u4ECD\u7531\u5BA1\u6838\u4E0E\u7CFB\u7EDF\u6D41\u8F6C\u51B3\u5B9A\uFF0C\u624B\u52A8\u7F16\u8F91\u4E0D\u4F1A\u7ED5\u8FC7\u5BA1\u6838\u3002",editTitle:"\u6807\u9898",editTags:"\u6807\u7B7E\uFF08\u9017\u53F7\u5206\u9694\uFF09",editTagsHint:"\u4F8B\u5982\uFF1A\u8BB0\u5FC6, \u68C0\u7D22, \u6027\u80FD",editBody:"\u6B63\u6587\uFF08Markdown\uFF09",editSave:"\u4FDD\u5B58",editSaving:"\u4FDD\u5B58\u4E2D\u2026",editCancel:"\u53D6\u6D88",editSaved:"\u5DF2\u4FDD\u5B58",editFail:"\u4FDD\u5B58\u5931\u8D25",editTitleEmpty:"\u6807\u9898\u4E0D\u80FD\u4E3A\u7A7A",editBodyEmpty:"\u6B63\u6587\u4E0D\u80FD\u4E3A\u7A7A",deleted:"\u5DF2\u5220\u9664",deleteFail:"\u5220\u9664\u5931\u8D25",deleteSelected:"\u5220\u9664\u9009\u4E2D",deletedSelected:"\u5F20\u5361\u5DF2\u5220\u9664",merge:"\u5408\u5E76",mergeNeed:"\u81F3\u5C11\u9009 2 \u5F20\u5361",mergeConfirm:"\u5C06\u6240\u9009\u5361\u7247\u5408\u5E76\u4E3A\u4E00\u5F20\u5E76\u5220\u9664\u539F\u5361\uFF1F",merged:"\u5DF2\u5408\u5E76",mergeFail:"\u5408\u5E76\u5931\u8D25",mcpInstalled:"\u2705 {agent} MCP \u5DF2\u5B89\u88C5",mcpUninstalled:"\u2705 {agent} MCP \u5DF2\u5378\u8F7D",mcpActionFail:"\u274C {agent} MCP \u64CD\u4F5C\u5931\u8D25\uFF1A{error}",dshHostLabel:"DeepSeek Harness\uFF08\u5F53\u524D\u5BBF\u4E3B\uFF09",restartHint:"\u5DF2\u4FDD\u5B58\u3002autoWebMode/watchdogAutoSpawn \u7B49\u9700\u91CD\u542F DSH \u751F\u6548\uFF1B\u5DF2\u6709\u5E38\u9A7B watchdog \u4E0D\u4F1A\u88AB\u81EA\u52A8\u505C\u6389\uFF0C\u9700 dsh-memory stop / restart\uFF08#19\uFF09",conflictRefresh:"\u914D\u7F6E\u5DF2\u88AB\u5916\u90E8\u4FEE\u6539\uFF0C\u8BF7\u5237\u65B0\u540E\u91CD\u8BD5",untitled:"\u65E0\u6807\u9898",tplBlank:"\u{1F4C4} \u7A7A\u767D",tagsHint:"\u6807\u7B7E\uFF08\u9017\u53F7\u5206\u9694\uFF09",connCount:"{n} \u8FDE\u63A5",tplDecisionTags:"\u51B3\u7B56, \u65B9\u6848",tplBugTags:"\u8E29\u5751, \u6559\u8BAD",tplMeetingTags:"\u4F1A\u8BAE, \u7EAA\u8981",tplWeeklyTags:"\u5468\u62A5",tplDecisionBody:`# \u6280\u672F\u51B3\u7B56\uFF1A[\u6807\u9898]
20
20
 
21
21
  ## \u80CC\u666F
22
22
  - \u95EE\u9898\u63CF\u8FF0
@@ -61,7 +61,7 @@ Error generating stack: `+i.message+`
61
61
  -
62
62
 
63
63
  ## \u98CE\u9669/\u963B\u585E
64
- - `},Gf={nav:"Memory",loading:"Loading\u2026",loadingGraph:"Loading knowledge graph\u2026",refresh:"Refresh",overview:"Memory Overview",total:"Cards",recent:"Added (7d)",tags:"Tags",searchPlaceholder:"Search memory\u2026",search:"Search",all:"All",kindProject:"Projects",kindKnowledge:"Knowledge",kindOther:"Other",kindContent:"Content",kindPrompt:"Prompts",kindBusiness:"Business",kindTool:"Tools",kindMistake:"Mistakes",kindCore:"Core memory",kindSkill:"Skills",newsTab:"News",newsTitle:"News",newsHint:"Your own updates, decisions and team briefs, kept separate from memory cards.",newsNew:"Write one",newsSearch:"Search title / body / tags\u2026",newsUnreadOnly:"Unread only",newsEmpty:"No news yet. Write the first update, decision or team brief here.",newsNoMatch:"No matching news",newsPinned:"Pinned",newsRead:"Read",newsUnread:"Unread",newsMarkRead:"Mark read",newsMarkUnread:"Mark unread",newsEdit:"Edit",newsDeleteConfirm:"Delete this news item?",newsDeleted:"Deleted",newsSave:"Save",newsSaving:"Saving\u2026",newsSaved:"Saved",newsSaveFail:"Save failed",newsTitleField:"Title",newsBodyField:"Body (Markdown)",newsCategoryField:"Category",newsSourceField:"Source",newsUrlField:"URL",newsTagsField:"Tags (comma separated)",newsDateField:"Date",newsPinField:"Pin to top",newsPreview:"Preview",newsEditBody:"Edit body",newsOpenLink:"Open link",newsToday:"Today",newsYesterday:"Yesterday",newsEarlier:"Earlier",newsTitlePlaceholder:"e.g. v0.20.0 release notes",newsBodyPlaceholder:"Write something worth keeping\u2026 Markdown supported",newsCountUnit:"items",cancel:"Cancel",newsDaily:"Daily AI",newsMonthly:"Monthly top",newsMine:"My updates",newsDailySub:"Latest AI news, aggregated by source",newsMonthlySub:"This month's AI discussion ranking (Hacker News points)",newsMineSub:"Your own releases, decisions and team briefs",newsLoading:"Fetching news\u2026",newsFeedError:"News sources are unavailable",newsHeat:"heat",newsComments:"comments",newsOriginal:"Read original",newsUpdatedAt:"Updated",newsPartialFail:"Some sources failed",newsFeedEmpty:"No news fetched today. Try refresh.",newsFeedRefresh:"Refresh news",newsLoadingHint:"First load fetches several Chinese sources; this can take a few seconds.",newsRetry:"Retry",newsSearchGo:"Search",newsFollow:"Follow",newsFollowPreview:"Here is what I understood \u2014 follow it?",newsFollowConfirm:"Start following",newsFollowAdded:"Following",newsFollowExists:"Already following",newsFollowRemoved:"Unfollowed",newsFollowFail:"Follow failed",newsFollowNoQuery:"Type a topic first",newsFollowDomains:"Search in these sources",newsFollowEmpty:'No topics followed yet. Search for something, then hit "Follow".',newsIntentHint:'That looks like an instruction \u2014 hit "\uFF0B Follow" to keep pulling it from the right sources; the list below is no longer filtered literally.',newsFollowing:"From your follows",newsDigest:"Follow digest push",newsDigestHint:"When on, the host refreshes your news follows on an interval and lets the agent surface NEW items on the next turn. Off by default.",newsDigestEnabled:"Enable push",newsDigestInterval:"Interval (minutes)",newsDigestMaxItems:"Max items per digest",newsDigestNow:"Generate & preview now",newsDigestNowHint:"Try it before enabling \u2014 see exactly what would be pushed.",newsDigestBuilding:"Generating\u2026",newsDigestDone:"Digest generated",newsDigestEmpty:"No new items from your follows",newsDigestFail:"Failed to generate digest",newsSortRec:"For you",newsSortTime:"Latest",newsPersonalized:"Ordered by your taste",newsLastQuery:"Last search",newsResetPrefs:"Reset taste",newsHeroEye:"NEWSROOM \xB7 AI FEED",newsHeroHint:"One search is remembered \u2014 the next visit is ordered by your taste. Data is fetched once per page open.",newsMatched:"hits",newsNoMatch:"No matching news",newsNoMatchHint:"Nothing in this dataset matches the current keyword, category and language. Clear the filters to see everything.",newsClearFilters:"Clear filters",newsJustNow:"just now",newsMinutesAgo:"min ago",newsHoursAgo:"h ago",newsDaysAgo:"d ago",newsLangZh:"\u4E2D\u6587",newsLangEn:"English",newsLangAll:"All",newsZhArchive:"Chinese monthly archive by date (no public heat score)",newsEnRanking:"English monthly ranking by Hacker News points",skillCards:"Skill cards",skillCardsHint:"Generated from the skills actually installed/available on this machine; always reviewed. Never deposited by agent chat.",skillAutoSync:"Auto-sync skill cards",syncSkills:"Sync skills",syncingSkills:"Syncing skills\u2026",skillsSyncDone:"Skill cards synced",skillsScanned:"scanned",skillsCreated:"created",skillsUpdated:"updated",skillsPendingUpdates:"pending updates",skillsSyncFail:"Skill sync failed",cardsTab:"Cards",webTab:"Web version",webOpening:"Opening the web version in your browser\u2026",webOpened:"Opened the web version in your browser",webOpenFail:"Could not open a browser; visit this URL manually",terminalTab:"Terminal",terminalTitle:"Full terminal UI",terminalIntro:"The Web UI does not render the native terminal TUI. For select-all, batch review and long-form scrolling, open a local terminal or use /audit inside dsh-tui.",terminalRun:"Read-only live queue",terminalTui:"Write mode (real review)",terminalWhy:"Why not embed it in the page",terminalWhyBody:"The terminal TUI relies on the alternate screen, raw key events and a character grid; an iframe cannot reproduce it faithfully. These are the real commands.",terminalCopy:"Copy command",terminalCopied:"Copied",terminalPreview:"Terminal preview",graphTab:"Star map",graph:"Knowledge Graph",graphHint:"Nodes = cards; edges = [[links]] or shared tags. Click a node to read.",graphLegendTitle:"Card types",graphTip:"Left-click highlights \xB7 Shift+drag box-select \xB7 right-click menu \xB7 scroll zoom \xB7 drag to pan",graphWarming:"Laying out {n} nodes\u2026",graphAllCrumb:"All",graphOther:"Other",graphItems:"items",graphCardsUnit:"cards",graphPlanetCards:"{n} cards",graphEnter:"Open this level",graphLevelLoading:"Loading level\u2026",graphLevelTimeout:"Level load timed out ({ms}ms) \xB7 current level kept",graphLevelError:"Level load failed \xB7 current level kept",graphRetry:"Retry",graphEmptyLevel:"No cards in this level.",graphLevelHint:"Click a planet to enter \xB7 Shift+click to select \xB7 drag to move \xB7 scroll to zoom",graphBreadcrumbAria:"Level breadcrumb",graphCountWan:"K",graphCountLocale:"en-US",rebuild:"Rebuild",reset:"Reset",expandAll:"Expand all",capped:"Showing the",clearFocus:"Clear highlight",empty:"Memory is empty. After a few conversations, valuable content is auto-captured.",emptyGraph:"No graph data yet.",open:"Read",updated:"Updated",created:"Created",source:"Source",contents:"Contents",related:"Related",file:"File",close:"Close",vaultDir:"Vault directory",capture:"Auto capture",recall:"Auto recall",enabled:"on",disabled:"off",error:"Load failed",back:"Back to list",cardCount:"cards",nodes:"nodes",edges:"edges",memoryTitle:"Memory Library",memoryHint:"Your local second brain",zoomIn:"Zoom in",zoomOut:"Zoom out",fit:"Fit",enterFullscreen:"Fullscreen",exitFullscreen:"Exit fullscreen",exportGraph:"Export",openCard:"Open card",focusNeighbors:"Highlight links",copyName:"Copy name",noMatch:"No matching memory",clearFilter:"Clear filter",filterLabel:"Filter",sortRecent:"Recent",sortTitle:"Title",sortHot:"Hot",exportSel:"Export selected",clearSelection:"Clear selection",download:"Download",openNewTab:"Open in new tab",copyImage:"Copy image",done:"Done",downloaded:"Download started",openedTab:"Opened in new tab",copied:"Copied",exportedSel:" nodes exported",fullscreen:"Fullscreen",exitFull:"Exit fullscreen",copyFail:"Copy failed",timeDim:"Time",timeNew:"\u22643 days",timeRecent:"\u22642 weeks",timeMonth:"\u22641 month",timeOld:"Older",newBadge:"NEW",expand:"Expand",collapse:"Collapse",copyBody:"Copy body",clearFilter:"Clear tag filter",copyPath:"Copy path",copied:"Copied",copyFail:"Copy failed",readWidth:"Reading width",widthNarrow:"Narrow",widthMid:"Medium",widthWide:"Wide",exportVault:"Export MD",exportJson:"Export JSON",exporting:"Exporting\u2026",exportedVault:"Vault exported",exportFail:"Export failed",importVault:"Import",importedVault:"Import complete",importedTotal:" / of ",importedTotalTail:"",importedQuarantine:" \xB7 pending review ",importedQuarantineTail:" (quarantined until approved)",importedSkipped:" \xB7 skipped ",importedSkippedTail:" (duplicate or empty)",importFail:"Import failed",location:"Choose location",saveAs:"Save as",saveAsUnsupported:"Choose-save-location not supported here",exportedTo:"Exported to",defaultDownloads:"default Downloads folder",exportCancel:"Export cancelled",manage:"Manage",tabUsage:"Runtime",tabOptimize:"Optimize",adminLoadFail:"Load failed: fully restart dsh-desktop so the host picks up the new /memory-eternal routes",retry:"Retry",mergeSimilar:"Merge similar",trendLabel:"Last 30 days trend",cleanStale:"\u{1F5D1}\uFE0F Clean stale",deletedStale:" stale cards cleaned",newCard:"New",tplDecision:"\u{1F4DD} Decision",tplBug:"\u{1F41B} Bug",tplMeeting:"\u{1F4CB} Meeting",tplWeekly:"\u{1F4CA} Weekly",createCard:"Create",cardTitle:"Title",cardBody:"Body",fbUseful:"Useful",fbIrr:"Irrelevant",todayAdd:"Added today",weekAdd:"Last 7d",byKind:"By kind",todayList:"Captured today",budgetLabel:"Session budget",budgetChars:"Budget chars",recallLimitLabel:"Recall limit",embeddingLabel:"Semantic recall",mergePairs:"Similar pairs (mergeable)",staleCards:"Stale (>90d)",noOptimize:"Nothing to organize, healthy \u{1F389}",refineTitle:"Conflict scan",refineScan:"Scan now",refineHint:"Similar cards can be merged; conflicts must be judged by a human \u2014 the scan is read-only, and data only moves after you choose (keeping one moves the other to the recycle bin, recoverable)",refineIdle:'Hit "Scan now": recall possibly-related card pairs, then let the model classify each as duplicate / complement / conflict / unrelated',refineNone:"No card pairs need your ruling this round \u{1F389}",refineFail:"Conflict scan failed",refineApplied:"Your ruling was recorded (it will not ask again)",refineRel_duplicate:"Duplicate (mergeable)",refineRel_complement:"Complement (keep both)",refineRel_conflict:"Conflict (needs your ruling)",refineRel_unrelated:"Unrelated",refineKeepA:"Keep A",refineKeepB:"Keep B",refineKeepBoth:"Keep both",refineMerge:"Merge",junkTitle:"Injected junk cards",junkScan:"Scan existing",junkHint:"Cards suspected to be captured runtime injections (skill catalogs / system-reminders) \u2014 the scan is read-only and recycling goes to the recycle bin (recoverable)",junkIdle:'Hit "Scan existing": find cards whose body is really injected runtime text with almost no human content left after stripping',junkNone:"No such cards found \u{1F389}",junkRecycle:"Recycle",junkRecycleAll:"Recycle all",junkRecycleAllConfirm:"Send these cards to the recycle bin? (Not a permanent delete \u2014 recoverable from the recycle center)",junkDone:"Sent to recycle bin",junkFail:"Scan / recycle failed",dbReadonlyTitle:"The memory database is currently not writable",dbReadonlyBody:"Card reads/writes, auditing and the graph will fail, but **settings can still be saved** (they do not go through the database)",dbReadonlyFix:"Diagnose with: dsh-memory doctor (journal mode, write probe, backups and recovery steps)",goalTitle:"Same goal, different approach",goalScan:"Scan goals",goalHint:'Clusters by "what problem does this card solve" \u2014 approaches that differ in wording (7z vs tar vs npm slimming) still land together',goalIdle:'Hit "Scan goals": the model first writes a one-line goal per card (first run calls the model, later runs use the cache), then clusters by goal',goalNone:'No clusters of "one goal, several cards" found \u{1F389}',goalStats:"indexed / calls this run",goalCards:"cards",goalKeep:"Keep all",goalMerge:"Merge this group",goalMerged:"Merge submitted (the new card goes to the audit queue)",goalDone:'Recorded as "keep all"',goalFail:"Goal clustering failed",oneClickOptimize:"One-click optimize",oneClickOptimizeConfirm:"Confirm one-click optimize? This will merge all similar pairs (stale cards are NOT deleted by default).",oneClickAlsoStale:"Also clean stale cards",oneClickOptimizeDone:"One-click optimize done",optimizedMerged:"pairs merged",optimizedStaleDeleted:"stale cards cleaned",mcpSetupStatus:"Agent MCP mount status",rerunSetup:"Re-run setup",notInstalled:"not installed",noMcpEntry:"no MCP entry",nodePathMismatch:"node path mismatch, consider re-running setup",nodePathNote:"different node env (usable)",mcpNeedsRepair:"\u26A0 Needs repair (old config launches GUI)",repairMcp:"Repair",healthy:"healthy",mcpSetupHint:'"Auto-mount MCP" = lets Claude Code / Codex / Cursor use the memory vault. On = auto-configures them; Off = never touches your machine config, run dsh-memory setup manually when needed.',mcpManageHint:"Use each agent row to install/uninstall MCP individually",workTitle:"This session's workspace",workHint:"scratch note \xB7 not knowledge \xB7 never recalled",workLines:"lines",workExpand:"Expand",workCollapse:"Collapse",workPlaceholder:"Where this task stands, what is next\u2026 (archived when the session ends)",workSave:"Save draft",workPromote:"Save as pending card",workClear:"Clear",workClearConfirm:"Clear this session workspace? This cannot be undone.",workSaved:"Session workspace saved",workCleared:"Session workspace cleared",workPromoted:"Submitted for review",workLimitHint:"capped at 200 lines / 24KB, truncated",workPromoteHint:"select a passage to promote only that",workPromoteEmpty:"Nothing to promote",starAskTitle:"Memory is being used",starAskBody:"Recalled {recalls} times \xB7 {cards} cards captured. If it saved you time, a Star helps others find it.",starAskGo:"Star on GitHub",starAskLater:"Later",starAskNever:"Don't ask again",tabConfig:"Memory Config",configPageSub:"Local write, routing, audit and service settings",tabAudit:"Review",statusApproved:"Approved",statusPending:"Pending",statusRejected:"Rejected",allStatus:"All statuses",tabRecycle:"Recycle Bin",recyclePageSub:"Deleted cards stay for 30 days; restore or purge",pending:"Pending",rejected:"Rejected",selectAll:"Select all",approve:"Approve",approveAndCore:"Approve as core",approveCore:"Approve as core memory",approveAsNormal:"Approve as normal card",coreSuggested:"Core memory (pending review)",reclassify:"Reclassify types",reject:"Reject",allAgents:"All agents",noAuditItems:"No items to review",auditBodyFail:"Failed to load the card body",deletedAt:"deleted",restore:"Restore",restoreDelete:"Delete to recycle",purge:"Purge",emptyRecycle:"Recycle bin is empty",recycleHint:"Deleted cards go to the recycle bin \u2014 recover within 30 days, else auto-purged",purgeConfirm:"Permanently delete? This cannot be undone.",recycleDeleteConfirm:"Delete to recycle? Recoverable within 30 days.",modeInit:"Init once",modeInterval:"Interval keep-alive",modeManual:"Manual only",serviceConfig:"Service self-hosting config",auditConfig:"Auto-audit config",auditHint:"Cards matching an exemption go straight in; others await audit",auditMode:"Audit mode",auditAll:"Audit all",auditNone:"Skip all",auditExemptAgents:"Exempt agents",auditExemptKinds:"Exempt kinds",allExempt:"Exempt all",recycleDays:"Recycle retention days",editInSetting:"Edit in DSH Settings \u2192 Memory",pendingSyncNote:'This is the standalone web page: the DSH host applies a save (a current host is woken up and applies it in a request context, so saving takes effect immediately); when no DSH host is running here the change goes straight into the shared config. Only an older host falls back to "queued until it syncs on its own" \u2014 in that case change the same option under DSH Settings \u2192 Memory.',readonlyTitle:"This page is read-only; config cannot be saved here",readonlyBody:"This process has no DSH settings service (settings.update is unavailable). Edit the config in DSH: desktop app \u2192 Settings \u2192 Memory.",readonlyBtn:"Read-only",setupRunInTerminal:"Copy this command to your terminal:",dshMemoryConfig:"DSH Memory Config",coreMemory:"Core memory (always-on)",coreMemoryHint:"Injected into every session; only approved core cards are used",coreMemoryEnabled:"Enable core-memory injection",workingMemoryEnabled:"Enable session workspace (scratchpad)",coreMemoryLimit:"Core-memory limit (cards)",coreMemoryMaxChars:"Core-memory total character limit",setCore:"Set as core memory",unsetCore:"Remove from core memory",coreSetOk:"Set as core memory",coreUnsetOk:"Removed from core memory",coreSetFail:"Failed to update",coreActiveHint:"This card is injected into every session; it wins conflicts with normal memory.",coreInactiveHint:"Any approved knowledge card can be promoted to core memory and applies to every session.",coreNeedApproval:"Approve this card before making it core memory.",coreShort:"Core",setCoreShort:"Set core",uiLayout:"Layout size",uiLayoutHint:"Scale the memory UI only; memory data is unchanged",uiCompact:"Compact",uiNormal:"Normal",uiLarge:"Large",autoCapture:"Auto capture",autoRecall:"Auto recall",captureMinChars:"Min capture chars",maxCardsPerDay:"Daily quota",dedupThreshold:"Dedup threshold",recallLimit:"Recall limit",vaultMulti:"Multiple vaults (per project)",vaultMultiHint:"Empty = single vault; existing setups unaffected",vaultNow:"Active now",vaultSource:"Source",vaultWorkspace:"Current workspace",vaultNamePh:"Name, e.g. work",vaultPathPh:"Directory, e.g. D:/vaults/work",vaultMatchPh:"Project dir (optional, auto-select by workspace)",vaultAdd:"Add a vault",vaultActive:"Active vault",vaultActiveNone:"Default vault (unset)",vaultSrcEnv:"env MEMORY_VAULT_DIR",vaultSrcProfile:"activeVault profile",vaultSrcWorkspace:"matched by project dir",vaultSrcVaultDir:"vaultDir setting",vaultSrcDefault:"default directory",fbNav:"Report a bug",fbTitle:"Report a bug (files on GitHub)",fbDesc:"Describe the problem (symptoms / steps / expected)",fbDiag:"Diagnostics (auto-redacted: home dir and keys/tokens replaced)",fbCopyDiag:"Copy diagnostics",fbOpenIssue:"Open prefilled issue on GitHub",fbCopyPrompt:"Copy AI prompt",fbCopiedDiag:"Diagnostics copied",fbCopiedPrompt:"Prompt copied \u2014 paste it into your AI chat",fbCopyFail:"Copy failed; please select and copy manually",fbWhy:"GitHub does not allow anonymous issue creation and the plugin must not ship a token: so the title, body and diagnostics are pre-filled \u2014 you just click Submit.",fbNeedDesc:"Please describe the problem first",fbLoading:"Collecting diagnostics\u2026",fbDiagFail:"Diagnostics endpoint unavailable (standalone web or older host); please add environment info manually",fbOr:"or",fbSelectAll:"Select all",auditTypeLabel:"Type",auditInboxSub:"Captured cards land here \xB7 approve to publish",auditSearchPlaceholder:"Search title, tag or path\u2026",auditNoMatch:"No matching review cards",auditUndo:"Approve and reject are both undoable",auditSelected:"Selected",auditRevision:"Revision",auditRevisionFrom:"Revises",auditClearSelection:"Clear",preview:"Preview",supportGroup:"Community",supportGroupQQ:"QQ group",supportGroupWechat:"WeChat group",supportSponsor:"Sponsor",supportLegacy:"Legacy app",supportTitle:"Support & community",clickToZoom:"Click to enlarge",supportGroupHint:"Scan to join the QQ or WeChat community; ask questions directly.",supportSponsorHint:"If this plugin saved you time, you can buy the author a coffee. Completely optional.",supportLegacyTitle:"Legacy app (dsh-desktop) is discontinued",supportLegacyBody:"The author\u2019s dsh-desktop is discontinued; the official DeepSeek Harness desktop build covers the same capabilities. If an old profile still pins the withdrawn dsh-desktop-shell@0.3.0, remove that dependency or pnpm install will fail.",supportReadme:"Open README",supportReleases:"Releases",supportFeedback:"Report a bug",supportReplay:"Replay onboarding",onboardTitle:"30 seconds with memory-eternal",onboardSub:"After every conversation, the AI distills knowledge cards. Review first, keep the good ones.",onboardSkip:"Skip",onboardBack:"Back",onboardNext:"Next",onboardStart:"Start using",onboardStep0Title:"Star the project on GitHub first",onboardStep0Body:"A Star is the most direct signal to keep maintaining it; Fork it if you want to modify or self-host.",onboardStar:"Star",onboardFork:"Fork",onboardStarred:"Starred, continue",onboardStarHint:"You can always come back via \u2605 Star in the top bar.",onboardStep1Title:"Auto-capture, no manual notes",onboardStep1Body:"When a session ends, decisions, root causes and lessons become a card. Capture first, review second.",onboardStep2Title:"Found a useful card? Tap \u{1F44D}",onboardStep2Body:"Open any card and tap \u{1F44D} useful / \u{1F44E} not useful. No search needed: the buttons are always there. It helps recall ranking.",onboardStep3Title:"New support entries",onboardStep3Body:"Community, sponsor, legacy app and bug report live at the bottom of the left rail. No need to dig through the README.",onboardTip:"Tip: reopen this guide from Support & community.",navWorkspace:"Workspace",navSystem:"System",navSupport:"Support",navQuotes:"Author's Quotes",quoteHint:"Click for the next verse",v5Local:"Local",v5Star:"Star on GitHub",runtimeTitle:"Runtime status",runtimeSub:"Vault, backups, capture and version",dbTitle:"Vault",backupTitle:"Backups",captureTitle:"Auto capture",versionTitle:"Version",cardsUnit:"cards",links:"links",todayReview:"Today's resurface",openArrow:"Open \u2192",reshuffle:"Another",insightDecision:"Decision",insightRoot:"Root cause",insightLesson:"Lesson",insightSummary:"Summary",pinCard:"Pin this card",unpinCard:"Unpin",pinnedOnly:"Pinned",toastApproved:"approved",toastRejected:"rejected",toastCardDeleted:"deleted",toastRestored:"restored",toastPurged:"permanently deleted",toastPurgedExpired:"expired recycle entries purged",toastFailed:"Action failed",noSelection:"Select the cards to act on first",enabledLabel:"Enable memory core",vaultDirLabel:"Vault directory (single)",captureCooldownMs:"Capture cooldown (ms)",captureProvider:"Distill provider (auto if empty)",routeAuto:"Auto (registration order)",routeListFail:"Could not load the model list ({err}) \u2014 you can type provider / model below; the desktop popup proxies this to the host, so if it still fails open the settings from DSH",captureFollowSession:"Follow current session (distill with the session provider/model)",captureFirstOnly:"First candidate only (stop on failure, no fallback)",llmTest:"Test distill route",llmTestOk:"\u2713 Call succeeded",llmTestFail:"\u2717 Call failed",llmCandidates:"candidates",captureModel:"Distill model (auto if empty)",recallEmbedding:"Semantic recall provider (optional)",sessionBudgetChars:"Session budget (chars)",saving:"Saving\u2026",savePending:"Saved to the config file; the host half is still the old build, so restart DSH to make it effective (already applied in this panel)",saveInvalid:"Some field values are invalid; nothing was submitted",invalidField:'"{field}" must be a number between {min} and {max} (now: {value})',actionRunning:"Working\u2026",recycleEmptyHint:"Recycle bin is empty: deleted cards land here first and are purged automatically after {days} days.",recyclePurgeAll:"Empty recycle bin",recyclePurgeAllConfirm:"Permanently delete all {n} cards in the recycle bin? This cannot be undone.",toastPurgeAll:"Permanently deleted {n}",bucketDeleted:"Deleted",restoreToQueue:"Back to review",fbCopyManual:"Auto-copy was blocked by the browser \u2014 the text is below: click Select all, then Ctrl+C",vcLoaded:"running (process serving this page)",vcResident:"resident instance",vcOnDisk:"on disk",vcLatest:"npm latest",vcStale:'v{disk} is installed on disk but the process serving this page still has v{loaded} loaded \u2014 click "Restart resident instance" to restart it on the new code (no DSH restart needed)',vcRestart:"Restart resident instance",vcRestarting:"Restarting\u2026",vcRestartSent:"Resident restart scheduled: the new process takes over in ~3-8s \u2014 refresh the page (Ctrl+F5) shortly",vcRestartCurrent:"The resident instance is already up to date \u2014 no restart needed",vcRestartAnyway:"Resident is already v{ver}; usually no restart needed \u2014 use this if it looks stuck",vcHostProcessStale:"Disk has v{disk}, but **the process serving this page** (the DSH host) still loads v{loaded} \u2014 that code was loaded when the host started, so **restarting the resident instance does not change this page**: fully quit and reopen DSH.",vcRestartFixes:"Restarts the resident instance (the process on the port) onto v{disk} (currently v{served}) without restarting DSH",vcRestartStart:"Starts the resident instance on the current disk version v{disk} (no DSH restart needed)",vcRestartRepair:"Re-registers it under a watchdog and keeps it alive (already v{disk}; no DSH restart needed)",vcRestartHostOnly:"The resident instance is already v{disk}; this page shows v{loaded} from the DSH host \u2014 restarting the resident does not affect it, please restart DSH",vcRestartFail:"Restart request failed",vcRestartNoRoute:"The process serving this page is still the old build (no such endpoint): restart the desktop app / DSH and retry, or run {cmd}",vcHostStale:'The "running" chip above comes from the process serving this page; the resident instance is already current \u2014 restart the desktop app / DSH to refresh that chip',vcResidentDownShort:"not running",vcResidentDown:"The resident instance is not running (no response on port {port}) \u2014 use the button below to bring it up on the new code; if that fails run {cmd} and share the output of dsh-memory status",vcResidentUnmanagedShort:"unmanaged",vcResidentUnmanaged:"The resident instance serves v{served} but has **no watchdog keeping it alive** (an orphan left by a stop or a hard kill) \u2014 use the button below to put it back under management (a fresh watchdog plus a new instance), or run {cmd}",vcResidentLockUnknownShort:"management unknown",vcResidentReplaceBlockedShort:"cannot replace",vcResidentHostManagedShort:"host-managed",vcResidentReplaceBlocked:'The resident instance **cannot be replaced** (environment limit): the watchdog lock directory is not writable ({err}; {path}) \u2192 the port will stay on v{served} **long-term**. This is not "temporarily behind": automatic replacement is refused on purpose to avoid leaving an orphan. Way out: fix that directory permissions and run {cmd}, or run dsh-memory watchdog --port 7999 in the foreground',vcResidentLockUnknown:'The resident instance serves v{served}, but the **watchdog lock file cannot be written** (restricted environment: sandbox, ACLs, non-system drive) \u2192 whether it is managed cannot be determined (this is not "unmanaged"). Cause: {err} ({path}). Keep-alive usually still works; the button below can put it back under management on the new code.',vcPage:"Page script",vcPageStale:"\u26A0 This page is still running an older script (page v{page} / disk v{disk}): press Ctrl+F5 to refresh. If the running version is still old, restart the desktop app / DSH as well",vcOutdated:"update available",vcUpToDate:"up to date",vcCheck:"Check for updates",checking:"Checking\u2026",vcCheckFail:"Update check failed",recallSummaryLen:"Recall summary len",recallBody:"Recall with body",secretHint:"Credential hint (injected into every session)",autoWeb:"Web server",autoWebMode:"Keep-alive mode",webPort:"Web port",webCheckIntervalMs:"Probe interval (ms)",webMaxRestart:"Max restart",watchdogAutoSpawn:"Watchdog process",autoRestartOnDrift:"Auto-restart resident on version drift",autoMcpSetup:"Auto-mount MCP",saveConfig:"Save config",saveFail:"Save failed",savedOk:"Saved",savedDirect:"No DSH host is running here, so the change went straight into the shared config (hooks / MCP / the standalone page pick it up immediately)",savedApplied:"Saved and applied (the host applied it in a request context)",saveQueued:"Handed to the DSH host for sync \u2014 not confirmed applied yet",saveHostGuard:"This host does not let a plugin write config from its own callback context; change the same option under DSH Settings \u2192 Memory, or edit the profile patch layer",saveFailHint:"the host did not apply it \u2014 see Diagnostics under Report a bug",recallTool:"recall tool",costControl:"Cost control",costHint:"save tokens, control LLM usage",distillEnabled:"Distill cards (on=LLM compress, off=raw cards zero LLM)",dedupByLLM:"Dedup feeds LLM (off=pure lexical, cheaper)",captureMaxTokens:"Distill output cap (tokens)",captureTimeoutMs:"Distill timeout (ms; use 120000+ for cold local models)",recallMinScore:"Recall min score (higher = cheaper)",configNeedsDsh:"Edit config inside DSH (this page may be read-only or partially missing)",installMcp:"Install MCP",uninstallMcp:"Uninstall MCP",uninstallConfirm:"Confirm uninstall MCP for this agent? Claude Code/Codex will lose access to the memory vault.",presetConfig:"One-click preset config",presetHint:"Click to fill a plan, then hit Save",planApplied:'Filled "{plan}" \u2014 hit "Save config" to apply',planDescA:"Personal dev \xB7 distill 4000 \xB7 watchdog off",planDescB:"Budget \xB7 no distill \xB7 ~zero cost",planDescC:"Long projects \xB7 watchdog on \xB7 high quality",cfgSubCore:"Capture / recall / vault dir and dedup strategy",cfgSubMulti:"Per-project vaults; CLI / MCP / hooks follow the active one",cfgSubCost:"Control LLM calls and recall size \u2014 this is your bill",cfgSubAudit:"What must be reviewed before entering the main vault",cfgSubService:"Keep-alive, watchdog and version self-heal \u2014 defaults are fine",cfgDirty:"Unsaved changes",cfgClean:"Synced",unitChars:"chars",unitPerDay:"cards / day",unitTokens:"tokens",unitMs:"ms",unitTimes:"times",unitDays:"days",mcpAutoHint:"Auto-detects installed agents and their MCP configs (read-only probe)",mcpRefresh:"Re-scan",mcpSummary:"{agents} agents \xB7 {servers} MCP servers \xB7 {mounted} mounting this plugin",mcpNoServers:"No MCP configured",mcpDetectedOnly:"detected only",planA:"A Light",planB:"B Budget",planC:"C Premium",pluginInfo:"Plugin info",organizeTitle:"Organize",scanAndOrganize:"Scan & organize",scanHint:'Click "\u{1F50D} Scan & organize" to find similar/stale cards, then "\u26A1 One-click optimize" to run.',mergeNow:"Merge",delete:"Delete",captureAlert:"Auto-capture failed",captureAlertHint:'Open "Usage / Today" for the capture log; if the cause is an API/version mismatch, update the memory-eternal plugin.',captureLog:"Auto-capture log",captureLogHint:"Runs after every turn: listen \u2192 judge \u2192 write. Last 100 entries, so you can see why a card was not written.",captureLogEmpty:"No entries yet. Chat one turn (> min capture chars) and come back.",healthTitle:"Health",healthHint:"Database / backups / capture / versions \u2014 spot anything that broke silently",healthDb:"Database",healthDbBad:"database is unwritable or corrupt",healthBackups:"Backups",healthNoBackups:"no backups yet (run dsh-memory doctor; the host also backs up daily)",healthBackupAge:"{n} files \xB7 newest {d} day(s) ago",healthBackupToday:"{n} files \xB7 newest today",healthCapture:"Auto capture",healthNoRecords:"no records yet (capture has not run)",healthCapOk:"last capture wrote a card",healthCapFail:"last capture failed",healthRunAlign:"run Version alignment check to show",healthVersion:"Versions",ledgerTitle:"Memory ledger (last 7 days)",ledgerHint:'How much recall injected and how many distillation calls ran \u2014 the first data point for the "does it save tokens?" question',ledgerRecalls:"Recalls",ledgerInjected:"injected",ledgerChars:"chars",ledgerCaptures:"Captures",ledgerLlmCalls:"LLM calls",ledgerEstimate:"Est. tokens",ledgerEstimateHint:"rough estimate at ~2 chars per token; order of magnitude only",ledgerUseful:"Recall usefulness",ledgerUsefulHint:"from useful / not-useful feedback; below 60% means injection may cost more than it saves",ledgerFormula:"Net benefit \u2248 avoided context cost \u2212 (injected chars + distillation calls \xD7 price). The ledger only records what we spent; weigh it against the re-reads and rework you actually avoided.",ledgerNoData:"No entries in the last 7 days: chat a few turns or let the agent recall once, then come back.",ledgerNeedRestart:"The host is still running the old API (/ledger missing): fully quit and reopen DSH to start recording.",alignTitle:"Version alignment check",alignRun:"Check now",alignFix:"Rewrite wiring",alignFixConfirm:"Rewrite the MCP / hooks wiring? (Only the plugin's own keys are touched; your data and config stay as they are)",alignFixed:"Wiring rewritten; if it still reports an old host process, you must fully quit and reopen DSH",alignFail:"Alignment check failed",alignHint:"Upgrading the plugin only replaces files on disk \u2014 the host's in-memory event subscriptions and stale paths inside MCP / hooks do not update themselves; this checks all of it at once",alignIdle:'Hit "Check now": compare the host / resident / npm versions and look for stale paths and arguments in MCP and hooks',alignDisk:"disk",alignResident:"resident",alignHost:"host process",captureLogUnavailable:"Log is available only inside the DSH host (the standalone web page has no host runtime).",captureAgentCards:"Cards auto-captured by the agent",noCards:"none",loadMore:"Load more",batchMerge:"Smart batch merge",mergeAllConfirm:"Merge similar-grouped cards into one each (keep kind), delete originals?",crossVault:"All vaults",deleteConfirm:"Delete this memory card? This cannot be undone.",editCard:"Edit",editHint:"Only title / tags / body are editable. Status and kind still flow through audit and system rules \u2014 manual edits never bypass review.",editTitle:"Title",editTags:"Tags (comma separated)",editTagsHint:"e.g. memory, recall, performance",editBody:"Body (Markdown)",editSave:"Save",editSaving:"Saving\u2026",editCancel:"Cancel",editSaved:"Saved",editFail:"Save failed",editTitleEmpty:"Title cannot be empty",editBodyEmpty:"Body cannot be empty",deleted:"Deleted",deleteFail:"Delete failed",deleteSelected:"Delete selected",deletedSelected:" cards deleted",merge:"Merge",mergeNeed:"Select at least 2 cards",mergeConfirm:"Merge the selected cards into one and delete the originals?",merged:"Merged",mergeFail:"Merge failed",mcpInstalled:"\u2705 {agent} MCP installed",mcpUninstalled:"\u2705 {agent} MCP uninstalled",mcpActionFail:"\u274C {agent} MCP action failed: {error}",dshHostLabel:"DeepSeek Harness (current host)",restartHint:"Saved. autoWebMode/watchdogAutoSpawn take effect after restarting DSH; a resident watchdog is never stopped automatically \u2014 use dsh-memory stop / restart (#19)",conflictRefresh:"Config changed elsewhere \u2014 refresh and retry",untitled:"Untitled",tplBlank:"\u{1F4C4} Blank",tagsHint:"Tags (comma-separated)",connCount:"{n} connections",tplDecisionTags:"decision, plan",tplBugTags:"pitfall, lesson",tplMeetingTags:"meeting, minutes",tplWeeklyTags:"weekly report",tplDecisionBody:`# Tech decision: [title]
64
+ - `},Kf={nav:"Memory",loading:"Loading\u2026",loadingGraph:"Loading knowledge graph\u2026",refresh:"Refresh",overview:"Memory Overview",total:"Cards",recent:"Added (7d)",tags:"Tags",searchPlaceholder:"Search memory\u2026",search:"Search",all:"All",kindProject:"Projects",kindKnowledge:"Knowledge",kindOther:"Other",kindContent:"Content",kindPrompt:"Prompts",kindBusiness:"Business",kindTool:"Tools",kindMistake:"Mistakes",kindCore:"Core memory",kindSkill:"Skills",newsTab:"News",newsTitle:"News",newsHint:"Your own updates, decisions and team briefs, kept separate from memory cards.",newsNew:"Write one",newsSearch:"Search title / body / tags\u2026",newsUnreadOnly:"Unread only",newsEmpty:"No news yet. Write the first update, decision or team brief here.",newsNoMatch:"No matching news",newsPinned:"Pinned",newsRead:"Read",newsUnread:"Unread",newsMarkRead:"Mark read",newsMarkUnread:"Mark unread",newsEdit:"Edit",newsDeleteConfirm:"Delete this news item?",newsDeleted:"Deleted",newsSave:"Save",newsSaving:"Saving\u2026",newsSaved:"Saved",newsSaveFail:"Save failed",newsTitleField:"Title",newsBodyField:"Body (Markdown)",newsCategoryField:"Category",newsSourceField:"Source",newsUrlField:"URL",newsTagsField:"Tags (comma separated)",newsDateField:"Date",newsPinField:"Pin to top",newsPreview:"Preview",newsEditBody:"Edit body",newsOpenLink:"Open link",newsToday:"Today",newsYesterday:"Yesterday",newsEarlier:"Earlier",newsTitlePlaceholder:"e.g. v0.20.0 release notes",newsBodyPlaceholder:"Write something worth keeping\u2026 Markdown supported",newsCountUnit:"items",cancel:"Cancel",newsDaily:"Daily AI",newsMonthly:"Monthly top",newsMine:"My updates",newsDailySub:"Latest AI news, aggregated by source",newsMonthlySub:"This month's AI discussion ranking (Hacker News points)",newsMineSub:"Your own releases, decisions and team briefs",newsLoading:"Fetching news\u2026",newsFeedError:"News sources are unavailable",newsHeat:"heat",newsComments:"comments",newsOriginal:"Read original",newsUpdatedAt:"Updated",newsPartialFail:"Some sources failed",newsFeedEmpty:"No news fetched today. Try refresh.",newsFeedRefresh:"Refresh news",newsLoadingHint:"First load fetches several Chinese sources; this can take a few seconds.",newsRetry:"Retry",newsSearchGo:"Search",newsFollow:"Follow",newsFollowPreview:"Here is what I understood \u2014 follow it?",newsFollowConfirm:"Start following",newsFollowAdded:"Following",newsFollowExists:"Already following",newsFollowRemoved:"Unfollowed",newsFollowFail:"Follow failed",newsFollowNoQuery:"Type a topic first",newsFollowDomains:"Search in these sources",newsFollowEmpty:'No topics followed yet. Search for something, then hit "Follow".',newsIntentHint:'That looks like an instruction \u2014 hit "\uFF0B Follow" to keep pulling it from the right sources; the list below is no longer filtered literally.',newsFollowing:"From your follows",newsDigest:"Follow digest push",newsDigestHint:"When on, the host refreshes your news follows on an interval and lets the agent surface NEW items on the next turn. Off by default.",newsDigestEnabled:"Enable push",newsDigestInterval:"Interval (minutes)",newsDigestMaxItems:"Max items per digest",newsDigestNow:"Generate & preview now",newsDigestNowHint:"Try it before enabling \u2014 see exactly what would be pushed.",newsDigestBuilding:"Generating\u2026",newsDigestDone:"Digest generated",newsDigestEmpty:"No new items from your follows",newsDigestFail:"Failed to generate digest",newsSortRec:"For you",newsSortTime:"Latest",newsPersonalized:"Ordered by your taste",newsLastQuery:"Last search",newsResetPrefs:"Reset taste",newsHeroEye:"NEWSROOM \xB7 AI FEED",newsHeroHint:"One search is remembered \u2014 the next visit is ordered by your taste. Data is fetched once per page open.",newsMatched:"hits",newsNoMatch:"No matching news",newsNoMatchHint:"Nothing in this dataset matches the current keyword, category and language. Clear the filters to see everything.",newsClearFilters:"Clear filters",newsJustNow:"just now",newsMinutesAgo:"min ago",newsHoursAgo:"h ago",newsDaysAgo:"d ago",newsLangZh:"\u4E2D\u6587",newsLangEn:"English",newsLangAll:"All",newsZhArchive:"Chinese monthly archive by date (no public heat score)",newsEnRanking:"English monthly ranking by Hacker News points",skillCards:"Skill cards",skillCardsHint:"Generated from the skills actually installed/available on this machine; always reviewed. Never deposited by agent chat.",skillAutoSync:"Auto-sync skill cards",syncSkills:"Sync skills",syncingSkills:"Syncing skills\u2026",skillsSyncDone:"Skill cards synced",skillsScanned:"scanned",skillsCreated:"created",skillsUpdated:"updated",skillsPendingUpdates:"pending updates",skillsSyncFail:"Skill sync failed",cardsTab:"Cards",webTab:"Web version",webOpening:"Opening the web version in your browser\u2026",webOpened:"Opened the web version in your browser",webOpenFail:"Could not open a browser; visit this URL manually",terminalTab:"Terminal",terminalTitle:"Full terminal UI",terminalIntro:"The Web UI does not render the native terminal TUI. For select-all, batch review and long-form scrolling, open a local terminal or use /audit inside dsh-tui.",terminalRun:"Read-only live queue",terminalTui:"Write mode (real review)",terminalWhy:"Why not embed it in the page",terminalWhyBody:"The terminal TUI relies on the alternate screen, raw key events and a character grid; an iframe cannot reproduce it faithfully. These are the real commands.",terminalCopy:"Copy command",terminalCopied:"Copied",terminalPreview:"Terminal preview",graphTab:"Star map",graph:"Knowledge Graph",graphHint:"Nodes = cards; edges = [[links]] or shared tags. Click a node to read.",graphLegendTitle:"Card types",graphTip:"Left-click highlights \xB7 Shift+drag box-select \xB7 right-click menu \xB7 scroll zoom \xB7 drag to pan",graphWarming:"Laying out {n} nodes\u2026",graphAllCrumb:"All",graphOther:"Other",graphItems:"items",graphCardsUnit:"cards",graphPlanetCards:"{n} cards",graphToFlat:"Flat cards",graphToPlanet:"Planet layers",graphFlatAll:"Show all",graphFlatOnly:"Top only",graphEnter:"Open this level",graphLevelLoading:"Loading level\u2026",graphLevelTimeout:"Level load timed out ({ms}ms) \xB7 current level kept",graphLevelError:"Level load failed \xB7 current level kept",graphRetry:"Retry",graphEmptyLevel:"No cards in this level.",graphLevelHint:"Click a planet to enter \xB7 Shift+click to select \xB7 drag to move \xB7 scroll to zoom",graphBreadcrumbAria:"Level breadcrumb",graphCountWan:"K",graphCountLocale:"en-US",rebuild:"Rebuild",reset:"Reset",expandAll:"Expand all",capped:"Showing the",clearFocus:"Clear highlight",empty:"Memory is empty. After a few conversations, valuable content is auto-captured.",emptyGraph:"No graph data yet.",open:"Read",updated:"Updated",created:"Created",source:"Source",contents:"Contents",related:"Related",file:"File",close:"Close",vaultDir:"Vault directory",capture:"Auto capture",recall:"Auto recall",enabled:"on",disabled:"off",error:"Load failed",back:"Back to list",cardCount:"cards",nodes:"nodes",edges:"edges",memoryTitle:"Memory Library",memoryHint:"Your local second brain",zoomIn:"Zoom in",zoomOut:"Zoom out",fit:"Fit",enterFullscreen:"Fullscreen",exitFullscreen:"Exit fullscreen",exportGraph:"Export",openCard:"Open card",focusNeighbors:"Highlight links",copyName:"Copy name",noMatch:"No matching memory",clearFilter:"Clear filter",filterLabel:"Filter",sortRecent:"Recent",sortTitle:"Title",sortHot:"Hot",exportSel:"Export selected",clearSelection:"Clear selection",download:"Download",openNewTab:"Open in new tab",copyImage:"Copy image",done:"Done",downloaded:"Download started",openedTab:"Opened in new tab",copied:"Copied",exportedSel:" nodes exported",fullscreen:"Fullscreen",exitFull:"Exit fullscreen",copyFail:"Copy failed",timeDim:"Time",timeNew:"\u22643 days",timeRecent:"\u22642 weeks",timeMonth:"\u22641 month",timeOld:"Older",newBadge:"NEW",expand:"Expand",collapse:"Collapse",copyBody:"Copy body",clearFilter:"Clear tag filter",copyPath:"Copy path",copied:"Copied",copyFail:"Copy failed",readWidth:"Reading width",widthNarrow:"Narrow",widthMid:"Medium",widthWide:"Wide",exportVault:"Export MD",exportJson:"Export JSON",exporting:"Exporting\u2026",exportedVault:"Vault exported",exportFail:"Export failed",importVault:"Import",importedVault:"Import complete",importedTotal:" / of ",importedTotalTail:"",importedQuarantine:" \xB7 pending review ",importedQuarantineTail:" (quarantined until approved)",importedSkipped:" \xB7 skipped ",importedSkippedTail:" (duplicate or empty)",importFail:"Import failed",location:"Choose location",saveAs:"Save as",saveAsUnsupported:"Choose-save-location not supported here",exportedTo:"Exported to",defaultDownloads:"default Downloads folder",exportCancel:"Export cancelled",manage:"Manage",tabUsage:"Runtime",tabOptimize:"Optimize",adminLoadFail:"Load failed: fully restart dsh-desktop so the host picks up the new /memory-eternal routes",retry:"Retry",mergeSimilar:"Merge similar",trendLabel:"Last 30 days trend",cleanStale:"\u{1F5D1}\uFE0F Clean stale",deletedStale:" stale cards cleaned",newCard:"New",tplDecision:"\u{1F4DD} Decision",tplBug:"\u{1F41B} Bug",tplMeeting:"\u{1F4CB} Meeting",tplWeekly:"\u{1F4CA} Weekly",createCard:"Create",cardTitle:"Title",cardBody:"Body",fbUseful:"Useful",fbIrr:"Irrelevant",todayAdd:"Added today",weekAdd:"Last 7d",byKind:"By kind",todayList:"Captured today",budgetLabel:"Session budget",budgetChars:"Budget chars",recallLimitLabel:"Recall limit",embeddingLabel:"Semantic recall",mergePairs:"Similar pairs (mergeable)",staleCards:"Stale (>90d)",noOptimize:"Nothing to organize, healthy \u{1F389}",refineTitle:"Conflict scan",refineScan:"Scan now",refineHint:"Similar cards can be merged; conflicts must be judged by a human \u2014 the scan is read-only, and data only moves after you choose (keeping one moves the other to the recycle bin, recoverable)",refineIdle:'Hit "Scan now": recall possibly-related card pairs, then let the model classify each as duplicate / complement / conflict / unrelated',refineNone:"No card pairs need your ruling this round \u{1F389}",refineFail:"Conflict scan failed",refineApplied:"Your ruling was recorded (it will not ask again)",refineRel_duplicate:"Duplicate (mergeable)",refineRel_complement:"Complement (keep both)",refineRel_conflict:"Conflict (needs your ruling)",refineRel_unrelated:"Unrelated",refineKeepA:"Keep A",refineKeepB:"Keep B",refineKeepBoth:"Keep both",refineMerge:"Merge",junkTitle:"Injected junk cards",junkScan:"Scan existing",junkHint:"Cards suspected to be captured runtime injections (skill catalogs / system-reminders) \u2014 the scan is read-only and recycling goes to the recycle bin (recoverable)",junkIdle:'Hit "Scan existing": find cards whose body is really injected runtime text with almost no human content left after stripping',junkNone:"No such cards found \u{1F389}",junkRecycle:"Recycle",junkRecycleAll:"Recycle all",junkRecycleAllConfirm:"Send these cards to the recycle bin? (Not a permanent delete \u2014 recoverable from the recycle center)",junkDone:"Sent to recycle bin",junkFail:"Scan / recycle failed",dbReadonlyTitle:"The memory database is currently not writable",dbReadonlyBody:"Card reads/writes, auditing and the graph will fail, but **settings can still be saved** (they do not go through the database)",dbReadonlyFix:"Diagnose with: dsh-memory doctor (journal mode, write probe, backups and recovery steps)",goalTitle:"Same goal, different approach",goalScan:"Scan goals",goalHint:'Clusters by "what problem does this card solve" \u2014 approaches that differ in wording (7z vs tar vs npm slimming) still land together',goalIdle:'Hit "Scan goals": the model first writes a one-line goal per card (first run calls the model, later runs use the cache), then clusters by goal',goalNone:'No clusters of "one goal, several cards" found \u{1F389}',goalStats:"indexed / calls this run",goalCards:"cards",goalKeep:"Keep all",goalMerge:"Merge this group",goalMerged:"Merge submitted (the new card goes to the audit queue)",goalDone:'Recorded as "keep all"',goalFail:"Goal clustering failed",oneClickOptimize:"One-click optimize",oneClickOptimizeConfirm:"Confirm one-click optimize? This will merge all similar pairs (stale cards are NOT deleted by default).",oneClickAlsoStale:"Also clean stale cards",oneClickOptimizeDone:"One-click optimize done",optimizedMerged:"pairs merged",optimizedStaleDeleted:"stale cards cleaned",mcpSetupStatus:"Agent MCP mount status",rerunSetup:"Re-run setup",notInstalled:"not installed",noMcpEntry:"no MCP entry",nodePathMismatch:"node path mismatch, consider re-running setup",nodePathNote:"different node env (usable)",mcpNeedsRepair:"\u26A0 Needs repair (old config launches GUI)",repairMcp:"Repair",healthy:"healthy",mcpSetupHint:'"Auto-mount MCP" = lets Claude Code / Codex / Cursor use the memory vault. On = auto-configures them; Off = never touches your machine config, run dsh-memory setup manually when needed.',mcpManageHint:"Use each agent row to install/uninstall MCP individually",workTitle:"This session's workspace",workHint:"scratch note \xB7 not knowledge \xB7 never recalled",workLines:"lines",workExpand:"Expand",workCollapse:"Collapse",workPlaceholder:"Where this task stands, what is next\u2026 (archived when the session ends)",workSave:"Save draft",workPromote:"Save as pending card",workClear:"Clear",workClearConfirm:"Clear this session workspace? This cannot be undone.",workSaved:"Session workspace saved",workCleared:"Session workspace cleared",workPromoted:"Submitted for review",workLimitHint:"capped at 200 lines / 24KB, truncated",workPromoteHint:"select a passage to promote only that",workPromoteEmpty:"Nothing to promote",starAskTitle:"Memory is being used",starAskBody:"Recalled {recalls} times \xB7 {cards} cards captured. If it saved you time, a Star helps others find it.",starAskGo:"Star on GitHub",starAskLater:"Later",starAskNever:"Don't ask again",tabConfig:"Memory Config",configPageSub:"Local write, routing, audit and service settings",tabAudit:"Review",statusApproved:"Approved",statusPending:"Pending",statusRejected:"Rejected",allStatus:"All statuses",tabRecycle:"Recycle Bin",recyclePageSub:"Deleted cards stay for 30 days; restore or purge",pending:"Pending",rejected:"Rejected",selectAll:"Select all",approve:"Approve",approveAndCore:"Approve as core",approveCore:"Approve as core memory",approveAsNormal:"Approve as normal card",coreSuggested:"Core memory (pending review)",reclassify:"Reclassify types",reject:"Reject",allAgents:"All agents",noAuditItems:"No items to review",auditBodyFail:"Failed to load the card body",deletedAt:"deleted",restore:"Restore",restoreDelete:"Delete to recycle",purge:"Purge",emptyRecycle:"Recycle bin is empty",recycleHint:"Deleted cards go to the recycle bin \u2014 recover within 30 days, else auto-purged",purgeConfirm:"Permanently delete? This cannot be undone.",recycleDeleteConfirm:"Delete to recycle? Recoverable within 30 days.",modeInit:"Init once",modeInterval:"Interval keep-alive",modeManual:"Manual only",serviceConfig:"Service self-hosting config",auditConfig:"Auto-audit config",auditHint:"Cards matching an exemption go straight in; others await audit",auditMode:"Audit mode",auditAll:"Audit all",auditNone:"Skip all",auditExemptAgents:"Exempt agents",auditExemptKinds:"Exempt kinds",allExempt:"Exempt all",recycleDays:"Recycle retention days",editInSetting:"Edit in DSH Settings \u2192 Memory",pendingSyncNote:'This is the standalone web page: the DSH host applies a save (a current host is woken up and applies it in a request context, so saving takes effect immediately); when no DSH host is running here the change goes straight into the shared config. Only an older host falls back to "queued until it syncs on its own" \u2014 in that case change the same option under DSH Settings \u2192 Memory.',readonlyTitle:"This page is read-only; config cannot be saved here",readonlyBody:"This process has no DSH settings service (settings.update is unavailable). Edit the config in DSH: desktop app \u2192 Settings \u2192 Memory.",readonlyBtn:"Read-only",setupRunInTerminal:"Copy this command to your terminal:",dshMemoryConfig:"DSH Memory Config",coreMemory:"Core memory (always-on)",coreMemoryHint:"Injected into every session; only approved core cards are used",coreMemoryEnabled:"Enable core-memory injection",workingMemoryEnabled:"Enable session workspace (scratchpad)",coreMemoryLimit:"Core-memory limit (cards)",coreMemoryMaxChars:"Core-memory total character limit",setCore:"Set as core memory",unsetCore:"Remove from core memory",coreSetOk:"Set as core memory",coreUnsetOk:"Removed from core memory",coreSetFail:"Failed to update",coreActiveHint:"This card is injected into every session; it wins conflicts with normal memory.",coreInactiveHint:"Any approved knowledge card can be promoted to core memory and applies to every session.",coreNeedApproval:"Approve this card before making it core memory.",coreShort:"Core",setCoreShort:"Set core",uiLayout:"Layout size",uiLayoutHint:"Scale the memory UI only; memory data is unchanged",uiCompact:"Compact",uiNormal:"Normal",uiLarge:"Large",autoCapture:"Auto capture",autoRecall:"Auto recall",captureMinChars:"Min capture chars",maxCardsPerDay:"Daily quota",dedupThreshold:"Dedup threshold",recallLimit:"Recall limit",vaultMulti:"Multiple vaults (per project)",vaultMultiHint:"Empty = single vault; existing setups unaffected",vaultNow:"Active now",vaultSource:"Source",vaultWorkspace:"Current workspace",vaultNamePh:"Name, e.g. work",vaultPathPh:"Directory, e.g. D:/vaults/work",vaultMatchPh:"Project dir (optional, auto-select by workspace)",vaultAdd:"Add a vault",vaultActive:"Active vault",vaultActiveNone:"Default vault (unset)",vaultSrcEnv:"env MEMORY_VAULT_DIR",vaultSrcProfile:"activeVault profile",vaultSrcWorkspace:"matched by project dir",vaultSrcVaultDir:"vaultDir setting",vaultSrcDefault:"default directory",fbNav:"Report a bug",fbTitle:"Report a bug (files on GitHub)",fbDesc:"Describe the problem (symptoms / steps / expected)",fbDiag:"Diagnostics (auto-redacted: home dir and keys/tokens replaced)",fbCopyDiag:"Copy diagnostics",fbOpenIssue:"Open prefilled issue on GitHub",fbCopyPrompt:"Copy AI prompt",fbCopiedDiag:"Diagnostics copied",fbCopiedPrompt:"Prompt copied \u2014 paste it into your AI chat",fbCopyFail:"Copy failed; please select and copy manually",fbWhy:"GitHub does not allow anonymous issue creation and the plugin must not ship a token: so the title, body and diagnostics are pre-filled \u2014 you just click Submit.",fbNeedDesc:"Please describe the problem first",fbLoading:"Collecting diagnostics\u2026",fbDiagFail:"Diagnostics endpoint unavailable (standalone web or older host); please add environment info manually",fbOr:"or",fbSelectAll:"Select all",auditTypeLabel:"Type",auditInboxSub:"Captured cards land here \xB7 approve to publish",auditSearchPlaceholder:"Search title, tag or path\u2026",auditNoMatch:"No matching review cards",auditUndo:"Approve and reject are both undoable",auditSelected:"Selected",auditRevision:"Revision",auditRevisionFrom:"Revises",auditClearSelection:"Clear",preview:"Preview",supportGroup:"Community",supportGroupQQ:"QQ group",supportGroupWechat:"WeChat group",supportSponsor:"Sponsor",supportLegacy:"Legacy app",supportTitle:"Support & community",clickToZoom:"Click to enlarge",supportGroupHint:"Scan to join the QQ or WeChat community; ask questions directly.",supportSponsorHint:"If this plugin saved you time, you can buy the author a coffee. Completely optional.",supportAlipay:"Alipay",supportLegacyTitle:"Legacy app (dsh-desktop) is discontinued",supportLegacyBody:"The author\u2019s dsh-desktop is discontinued; the official DeepSeek Harness desktop build covers the same capabilities. If an old profile still pins the withdrawn dsh-desktop-shell@0.3.0, remove that dependency or pnpm install will fail.",supportReadme:"Open README",supportReleases:"Releases",supportFeedback:"Report a bug",supportReplay:"Replay onboarding",onboardTitle:"30 seconds with memory-eternal",onboardSub:"After every conversation, the AI distills knowledge cards. Review first, keep the good ones.",onboardSkip:"Skip",onboardBack:"Back",onboardNext:"Next",onboardStart:"Start using",onboardStep0Title:"Star the project on GitHub first",onboardStep0Body:"A Star is the most direct signal to keep maintaining it; Fork it if you want to modify or self-host.",onboardStar:"Star",onboardFork:"Fork",onboardStarred:"Starred, continue",onboardStarHint:"You can always come back via \u2605 Star in the top bar.",onboardStep1Title:"Auto-capture, no manual notes",onboardStep1Body:"When a session ends, decisions, root causes and lessons become a card. Capture first, review second.",onboardStep2Title:"Found a useful card? Tap \u{1F44D}",onboardStep2Body:"Open any card and tap \u{1F44D} useful / \u{1F44E} not useful. No search needed: the buttons are always there. It helps recall ranking.",onboardStep3Title:"New support entries",onboardStep3Body:"Community, sponsor, legacy app and bug report live at the bottom of the left rail. No need to dig through the README.",onboardTip:"Tip: reopen this guide from Support & community.",navWorkspace:"Workspace",navSystem:"System",navSupport:"Support",navQuotes:"Author's Quotes",quoteHint:"Click for the next verse",v5Local:"Local",v5Star:"Star on GitHub",runtimeTitle:"Runtime status",runtimeSub:"Vault, backups, capture and version",dbTitle:"Vault",backupTitle:"Backups",captureTitle:"Auto capture",versionTitle:"Version",cardsUnit:"cards",links:"links",todayReview:"Today's resurface",openArrow:"Open \u2192",reshuffle:"Another",insightDecision:"Decision",insightRoot:"Root cause",insightLesson:"Lesson",insightSummary:"Summary",pinCard:"Pin this card",unpinCard:"Unpin",pinnedOnly:"Pinned",toastApproved:"approved",toastRejected:"rejected",toastCardDeleted:"deleted",toastRestored:"restored",toastPurged:"permanently deleted",toastPurgedExpired:"expired recycle entries purged",toastFailed:"Action failed",noSelection:"Select the cards to act on first",enabledLabel:"Enable memory core",vaultDirLabel:"Vault directory (single)",captureCooldownMs:"Capture cooldown (ms)",captureProvider:"Distill provider (auto if empty)",routeAuto:"Auto (registration order)",routeListFail:"Could not load the model list ({err}) \u2014 you can type provider / model below; the desktop popup proxies this to the host, so if it still fails open the settings from DSH",captureFollowSession:"Follow current session (distill with the session provider/model)",captureFirstOnly:"First candidate only (stop on failure, no fallback)",llmTest:"Test distill route",llmTestOk:"\u2713 Call succeeded",llmTestFail:"\u2717 Call failed",llmCandidates:"candidates",captureModel:"Distill model (auto if empty)",recallEmbedding:"Semantic recall provider (optional)",sessionBudgetChars:"Session budget (chars)",saving:"Saving\u2026",savePending:"Saved to the config file; the host half is still the old build, so restart DSH to make it effective (already applied in this panel)",saveInvalid:"Some field values are invalid; nothing was submitted",invalidField:'"{field}" must be a number between {min} and {max} (now: {value})',actionRunning:"Working\u2026",recycleEmptyHint:"Recycle bin is empty: deleted cards land here first and are purged automatically after {days} days.",recyclePurgeAll:"Empty recycle bin",recyclePurgeAllConfirm:"Permanently delete all {n} cards in the recycle bin? This cannot be undone.",toastPurgeAll:"Permanently deleted {n}",bucketDeleted:"Deleted",restoreToQueue:"Back to review",fbCopyManual:"Auto-copy was blocked by the browser \u2014 the text is below: click Select all, then Ctrl+C",vcLoaded:"running (process serving this page)",vcResident:"resident instance",vcOnDisk:"on disk",vcLatest:"npm latest",vcStale:'v{disk} is installed on disk but the process serving this page still has v{loaded} loaded \u2014 click "Restart resident instance" to restart it on the new code (no DSH restart needed)',vcRestart:"Restart resident instance",vcRestarting:"Restarting\u2026",vcRestartSent:"Resident restart scheduled: the new process takes over in ~3-8s \u2014 refresh the page (Ctrl+F5) shortly",vcRestartCurrent:"The resident instance is already up to date \u2014 no restart needed",vcRestartAnyway:"Resident is already v{ver}; usually no restart needed \u2014 use this if it looks stuck",vcHostProcessStale:"Disk has v{disk}, but **the process serving this page** (the DSH host) still loads v{loaded} \u2014 that code was loaded when the host started, so **restarting the resident instance does not change this page**: fully quit and reopen DSH.",vcRestartFixes:"Restarts the resident instance (the process on the port) onto v{disk} (currently v{served}) without restarting DSH",vcRestartStart:"Starts the resident instance on the current disk version v{disk} (no DSH restart needed)",vcRestartRepair:"Re-registers it under a watchdog and keeps it alive (already v{disk}; no DSH restart needed)",vcRestartHostOnly:"The resident instance is already v{disk}; this page shows v{loaded} from the DSH host \u2014 restarting the resident does not affect it, please restart DSH",vcRestartFail:"Restart request failed",vcRestartNoRoute:"The process serving this page is still the old build (no such endpoint): restart the desktop app / DSH and retry, or run {cmd}",vcHostStale:'The "running" chip above comes from the process serving this page; the resident instance is already current \u2014 restart the desktop app / DSH to refresh that chip',vcResidentDownShort:"not running",vcResidentDown:"The resident instance is not running (no response on port {port}) \u2014 use the button below to bring it up on the new code; if that fails run {cmd} and share the output of dsh-memory status",vcResidentUnmanagedShort:"unmanaged",vcResidentUnmanaged:"The resident instance serves v{served} but has **no watchdog keeping it alive** (an orphan left by a stop or a hard kill) \u2014 use the button below to put it back under management (a fresh watchdog plus a new instance), or run {cmd}",vcResidentLockUnknownShort:"management unknown",vcResidentReplaceBlockedShort:"cannot replace",vcResidentHostManagedShort:"host-managed",vcResidentReplaceBlocked:'The resident instance **cannot be replaced** (environment limit): the watchdog lock directory is not writable ({err}; {path}) \u2192 the port will stay on v{served} **long-term**. This is not "temporarily behind": automatic replacement is refused on purpose to avoid leaving an orphan. Way out: fix that directory permissions and run {cmd}, or run dsh-memory watchdog --port 7999 in the foreground',vcResidentLockUnknown:'The resident instance serves v{served}, but the **watchdog lock file cannot be written** (restricted environment: sandbox, ACLs, non-system drive) \u2192 whether it is managed cannot be determined (this is not "unmanaged"). Cause: {err} ({path}). Keep-alive usually still works; the button below can put it back under management on the new code.',vcPage:"Page script",vcPageStale:"\u26A0 This page is still running an older script (page v{page} / disk v{disk}): press Ctrl+F5 to refresh. If the running version is still old, restart the desktop app / DSH as well",vcOutdated:"update available",vcUpToDate:"up to date",vcCheck:"Check for updates",checking:"Checking\u2026",vcCheckFail:"Update check failed",recallSummaryLen:"Recall summary len",recallBody:"Recall with body",secretHint:"Credential hint (injected into every session)",autoWeb:"Web server",autoWebMode:"Keep-alive mode",webPort:"Web port",webCheckIntervalMs:"Probe interval (ms)",webMaxRestart:"Max restart",watchdogAutoSpawn:"Watchdog process",autoRestartOnDrift:"Auto-restart resident on version drift",autoMcpSetup:"Auto-mount MCP",saveConfig:"Save config",saveFail:"Save failed",savedOk:"Saved",savedDirect:"No DSH host is running here, so the change went straight into the shared config (hooks / MCP / the standalone page pick it up immediately)",savedApplied:"Saved and applied (the host applied it in a request context)",saveQueued:"Handed to the DSH host for sync \u2014 not confirmed applied yet",saveHostGuard:"This host does not let a plugin write config from its own callback context; change the same option under DSH Settings \u2192 Memory, or edit the profile patch layer",saveFailHint:"the host did not apply it \u2014 see Diagnostics under Report a bug",recallTool:"recall tool",costControl:"Cost control",costHint:"save tokens, control LLM usage",distillEnabled:"Distill cards (on=LLM compress, off=raw cards zero LLM)",dedupByLLM:"Dedup feeds LLM (off=pure lexical, cheaper)",captureMaxTokens:"Distill output cap (tokens)",captureTimeoutMs:"Distill timeout (ms; use 120000+ for cold local models)",recallMinScore:"Recall min score (higher = cheaper)",configNeedsDsh:"Edit config inside DSH (this page may be read-only or partially missing)",installMcp:"Install MCP",uninstallMcp:"Uninstall MCP",uninstallConfirm:"Confirm uninstall MCP for this agent? Claude Code/Codex will lose access to the memory vault.",presetConfig:"One-click preset config",presetHint:"Click to fill a plan, then hit Save",planApplied:'Filled "{plan}" \u2014 hit "Save config" to apply',planDescA:"Personal dev \xB7 distill 4000 \xB7 watchdog off",planDescB:"Budget \xB7 no distill \xB7 ~zero cost",planDescC:"Long projects \xB7 watchdog on \xB7 high quality",cfgSubCore:"Capture / recall / vault dir and dedup strategy",cfgSubMulti:"Per-project vaults; CLI / MCP / hooks follow the active one",cfgSubCost:"Control LLM calls and recall size \u2014 this is your bill",cfgSubAudit:"What must be reviewed before entering the main vault",cfgSubService:"Keep-alive, watchdog and version self-heal \u2014 defaults are fine",cfgDirty:"Unsaved changes",cfgClean:"Synced",unitChars:"chars",unitPerDay:"cards / day",unitTokens:"tokens",unitMs:"ms",unitTimes:"times",unitDays:"days",mcpAutoHint:"Auto-detects installed agents and their MCP configs (read-only probe)",mcpRefresh:"Re-scan",mcpSummary:"{agents} agents \xB7 {servers} MCP servers \xB7 {mounted} mounting this plugin",mcpNoServers:"No MCP configured",mcpDetectedOnly:"detected only",planA:"A Light",planB:"B Budget",planC:"C Premium",pluginInfo:"Plugin info",organizeTitle:"Organize",scanAndOrganize:"Scan & organize",scanHint:'Click "\u{1F50D} Scan & organize" to find similar/stale cards, then "\u26A1 One-click optimize" to run.',mergeNow:"Merge",delete:"Delete",captureAlert:"Auto-capture failed",captureAlertHint:'Open "Usage / Today" for the capture log; if the cause is an API/version mismatch, update the memory-eternal plugin.',captureLog:"Auto-capture log",captureLogHint:"Runs after every turn: listen \u2192 judge \u2192 write. Last 100 entries, so you can see why a card was not written.",captureLogEmpty:"No entries yet. Chat one turn (> min capture chars) and come back.",healthTitle:"Health",healthHint:"Database / backups / capture / versions \u2014 spot anything that broke silently",healthDb:"Database",healthDbBad:"database is unwritable or corrupt",healthBackups:"Backups",healthNoBackups:"no backups yet (run dsh-memory doctor; the host also backs up daily)",healthBackupAge:"{n} files \xB7 newest {d} day(s) ago",healthBackupToday:"{n} files \xB7 newest today",healthCapture:"Auto capture",healthNoRecords:"no records yet (capture has not run)",healthCapOk:"last capture wrote a card",healthCapFail:"last capture failed",healthRunAlign:"run Version alignment check to show",healthVersion:"Versions",ledgerTitle:"Memory ledger (last 7 days)",ledgerHint:'How much recall injected and how many distillation calls ran \u2014 the first data point for the "does it save tokens?" question',ledgerRecalls:"Recalls",ledgerInjected:"injected",ledgerChars:"chars",ledgerCaptures:"Captures",ledgerLlmCalls:"LLM calls",ledgerEstimate:"Est. tokens",ledgerEstimateHint:"rough estimate at ~2 chars per token; order of magnitude only",ledgerUseful:"Recall usefulness",ledgerUsefulHint:"from useful / not-useful feedback; below 60% means injection may cost more than it saves",ledgerFormula:"Net benefit \u2248 avoided context cost \u2212 (injected chars + distillation calls \xD7 price). The ledger only records what we spent; weigh it against the re-reads and rework you actually avoided.",ledgerNoData:"No entries in the last 7 days: chat a few turns or let the agent recall once, then come back.",ledgerNeedRestart:"The host is still running the old API (/ledger missing): fully quit and reopen DSH to start recording.",alignTitle:"Version alignment check",alignRun:"Check now",alignFix:"Rewrite wiring",alignFixConfirm:"Rewrite the MCP / hooks wiring? (Only the plugin's own keys are touched; your data and config stay as they are)",alignFixed:"Wiring rewritten; if it still reports an old host process, you must fully quit and reopen DSH",alignFail:"Alignment check failed",alignHint:"Upgrading the plugin only replaces files on disk \u2014 the host's in-memory event subscriptions and stale paths inside MCP / hooks do not update themselves; this checks all of it at once",alignIdle:'Hit "Check now": compare the host / resident / npm versions and look for stale paths and arguments in MCP and hooks',alignDisk:"disk",alignResident:"resident",alignHost:"host process",captureLogUnavailable:"Log is available only inside the DSH host (the standalone web page has no host runtime).",captureAgentCards:"Cards auto-captured by the agent",noCards:"none",loadMore:"Load more",batchMerge:"Smart batch merge",mergeAllConfirm:"Merge similar-grouped cards into one each (keep kind), delete originals?",crossVault:"All vaults",deleteConfirm:"Delete this memory card? This cannot be undone.",editCard:"Edit",editHint:"Only title / tags / body are editable. Status and kind still flow through audit and system rules \u2014 manual edits never bypass review.",editTitle:"Title",editTags:"Tags (comma separated)",editTagsHint:"e.g. memory, recall, performance",editBody:"Body (Markdown)",editSave:"Save",editSaving:"Saving\u2026",editCancel:"Cancel",editSaved:"Saved",editFail:"Save failed",editTitleEmpty:"Title cannot be empty",editBodyEmpty:"Body cannot be empty",deleted:"Deleted",deleteFail:"Delete failed",deleteSelected:"Delete selected",deletedSelected:" cards deleted",merge:"Merge",mergeNeed:"Select at least 2 cards",mergeConfirm:"Merge the selected cards into one and delete the originals?",merged:"Merged",mergeFail:"Merge failed",mcpInstalled:"\u2705 {agent} MCP installed",mcpUninstalled:"\u2705 {agent} MCP uninstalled",mcpActionFail:"\u274C {agent} MCP action failed: {error}",dshHostLabel:"DeepSeek Harness (current host)",restartHint:"Saved. autoWebMode/watchdogAutoSpawn take effect after restarting DSH; a resident watchdog is never stopped automatically \u2014 use dsh-memory stop / restart (#19)",conflictRefresh:"Config changed elsewhere \u2014 refresh and retry",untitled:"Untitled",tplBlank:"\u{1F4C4} Blank",tagsHint:"Tags (comma-separated)",connCount:"{n} connections",tplDecisionTags:"decision, plan",tplBugTags:"pitfall, lesson",tplMeetingTags:"meeting, minutes",tplWeeklyTags:"weekly report",tplDecisionBody:`# Tech decision: [title]
65
65
 
66
66
  ## Background
67
67
  - Problem
@@ -106,7 +106,7 @@ Option A, because:
106
106
  -
107
107
 
108
108
  ## Risks/blockers
109
- - `},Cl=["all","core","project","knowledge","skill","content","prompt","business","tool","mistake"],Kf=Cl.filter(e=>e!=="all"&&e!=="core"),qt={core:"#FF7A45",skill:"#8B5CF6",project:"#3B82F6",knowledge:"#10B981",content:"#F59E0B",prompt:"#A855F7",business:"#EC4899",tool:"#06B6D4",mistake:"#EF4444",other:"#6B7280"},id=e=>Array.isArray(e&&e.tags)?e.tags:[],Ar={core:"\u2B50",skill:"\u{1F9E9}",project:"\u{1F4C1}",knowledge:"\u{1F4DA}",content:"\u{1F4DD}",prompt:"\u{1F4AC}",business:"\u{1F4BC}",tool:"\u{1F527}",mistake:"\u26A0\uFE0F",other:"\u{1F4CE}"},Ct={core:"kindCore",skill:"kindSkill",project:"kindProject",knowledge:"kindKnowledge",content:"kindContent",prompt:"kindPrompt",business:"kindBusiness",tool:"kindTool",mistake:"kindMistake",other:"kindOther"},Wo="deepseek-harness",Pr=e=>{let t=String(e||""),n=t.toLowerCase();return!t||t==="agent"||t==="unknown"||t.startsWith("session:")||n.startsWith("claude-code")?n.startsWith("claude-code")?"claude":Wo:n==="deepseek harness"?Wo:t.split(":")[0]||Wo},rv=[Wo,"claude","codex","cursor","codex-desktop"],qf=(e=[])=>[...new Set([...rv,...(e||[]).map(Pr)])],av={boot:["\u{1F680}","#8b5cf6"],listen:["\u{1F442}","inherit"],created:["\u2705","#10b981"],appended:["\u2795","#3b82f6"],skip:["\u23ED","#f59e0b"],warn:["\u26A0\uFE0F","#f59e0b"],fail:["\u274C","#ef4444"]},xn=`
109
+ - `},Cl=["all","core","project","knowledge","skill","content","prompt","business","tool","mistake"],qf=Cl.filter(e=>e!=="all"&&e!=="core"),qt={core:"#FF7A45",skill:"#8B5CF6",project:"#3B82F6",knowledge:"#10B981",content:"#F59E0B",prompt:"#A855F7",business:"#EC4899",tool:"#06B6D4",mistake:"#EF4444",other:"#6B7280"},ld=e=>Array.isArray(e&&e.tags)?e.tags:[],Ar={core:"\u2B50",skill:"\u{1F9E9}",project:"\u{1F4C1}",knowledge:"\u{1F4DA}",content:"\u{1F4DD}",prompt:"\u{1F4AC}",business:"\u{1F4BC}",tool:"\u{1F527}",mistake:"\u26A0\uFE0F",other:"\u{1F4CE}"},Ct={core:"kindCore",skill:"kindSkill",project:"kindProject",knowledge:"kindKnowledge",content:"kindContent",prompt:"kindPrompt",business:"kindBusiness",tool:"kindTool",mistake:"kindMistake",other:"kindOther"},Ho="deepseek-harness",Pr=e=>{let t=String(e||""),n=t.toLowerCase();return!t||t==="agent"||t==="unknown"||t.startsWith("session:")||n.startsWith("claude-code")?n.startsWith("claude-code")?"claude":Ho:n==="deepseek harness"?Ho:t.split(":")[0]||Ho},a0=[Ho,"claude","codex","cursor","codex-desktop"],Yf=(e=[])=>[...new Set([...a0,...(e||[]).map(Pr)])],o0={boot:["\u{1F680}","#8b5cf6"],listen:["\u{1F442}","inherit"],created:["\u2705","#10b981"],appended:["\u2795","#3b82f6"],skip:["\u23ED","#f59e0b"],warn:["\u26A0\uFE0F","#f59e0b"],fail:["\u274C","#ef4444"]},kn=`
110
110
  .memory-eternal-root { font-family: inherit; color: var(--dsw-alias-label-primary, #1f2937); }
111
111
  .mc-card { background: var(--dsw-alias-bg-layer-1, #fff); border: 1px solid var(--dsw-alias-border-l1, #e5e7eb); border-radius: 12px; padding: 14px 16px; }
112
112
  .mc-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; margin-bottom: 14px; }
@@ -1035,7 +1035,7 @@ Option A, because:
1035
1035
  .mc-audit-batchcard > .mc-btn { width: 100%; }
1036
1036
  .mc-audit-batchcard > div[style*="flex: 1"] { display: none; }
1037
1037
  }
1038
- `;var _a="0.28.1";function ov({t:e}){let[t,n]=(0,m.useState)(""),a="dsh-memory tui",o="dsh-memory tui --write",i=async(u,p)=>{try{await navigator.clipboard.writeText(u),n(p),setTimeout(()=>n(""),1600)}catch{}},l={border:"1px solid #3a404a",borderRadius:14,background:"#22262d",padding:"16px 18px"},s={margin:"10px 0 0",padding:"12px 14px",borderRadius:10,background:"#171a1f",border:"1px solid #333943",color:"#f3f5f8",fontSize:12.5,lineHeight:1.7,overflowX:"auto",fontFamily:"ui-monospace, Consolas, monospace"},c={marginTop:10,border:"1px solid #4a515c",background:"transparent",color:"#ffb08a",borderRadius:9,padding:"7px 12px",fontSize:12,cursor:"pointer"};return(0,r.jsxs)("div",{style:{padding:"22px 26px 34px",maxWidth:1040,color:"#f3f5f8"},children:[(0,r.jsxs)("div",{style:{display:"flex",alignItems:"baseline",gap:12,flexWrap:"wrap"},children:[(0,r.jsx)("h2",{style:{margin:0,fontSize:24,letterSpacing:"-.02em"},children:e("terminalTitle")}),(0,r.jsx)("span",{style:{color:"#99a1ac",fontSize:12},children:"TUI \xB7 LIVE \xB7 dsh-tui"})]}),(0,r.jsx)("p",{style:{margin:"9px 0 20px",color:"#aeb5bf",fontSize:13.5,lineHeight:1.8},children:e("terminalIntro")}),(0,r.jsxs)("div",{style:{display:"grid",gridTemplateColumns:"minmax(0, 1.1fr) minmax(0, .9fr)",gap:14},children:[(0,r.jsxs)("div",{style:l,children:[(0,r.jsxs)("div",{style:{fontSize:13,fontWeight:700},children:["\u25B8 ",e("terminalRun")]}),(0,r.jsx)("pre",{style:s,children:a}),(0,r.jsx)("button",{type:"button",style:c,onClick:()=>i(a,"run"),children:t==="run"?"\u2713 "+e("terminalCopied"):"\u29C9 "+e("terminalCopy")}),(0,r.jsxs)("div",{style:{marginTop:12,color:"#99a1ac",fontSize:12,lineHeight:1.7},children:["\u9ED8\u8BA4\u8BFB\u53D6\u771F\u5B9E\u8BB0\u5FC6\u5E93\u4E0E\u5F85\u5BA1\u961F\u5217\uFF1B\u53EA\u8BFB\uFF0C\u786E\u8BA4\u540E\u624D\u7528 `--write`\u3002\u793A\u4F8B\u6570\u636E\u7528 `--demo`\u3002",(0,r.jsx)("br",{}),"\u6CA1\u6709 `dsh-memory` \u547D\u4EE4\u65F6\uFF1A`npx -p memory-eternal dsh-memory tui`"]})]}),(0,r.jsxs)("div",{style:l,children:[(0,r.jsxs)("div",{style:{fontSize:13,fontWeight:700},children:["\u25B8 ",e("terminalTui")]}),(0,r.jsx)("pre",{style:s,children:o}),(0,r.jsx)("button",{type:"button",style:c,onClick:()=>i(o,"tui"),children:t==="tui"?"\u2713 "+e("terminalCopied"):"\u29C9 "+e("terminalCopy")}),(0,r.jsx)("div",{style:{marginTop:12,color:"#99a1ac",fontSize:12,lineHeight:1.7},children:"\u771F\u5B9E\u6279\u51C6/\u9A73\u56DE\uFF1B\u4E0D\u786E\u5B9A\u65F6\u5148\u7528\u53EA\u8BFB\u6A21\u5F0F\u3002"})]})]}),(0,r.jsxs)("div",{style:{...l,marginTop:14},children:[(0,r.jsxs)("div",{style:{fontSize:13,fontWeight:700},children:["\u25B8 ",e("terminalPreview")]}),(0,r.jsx)("pre",{style:{...s,marginTop:10,color:"#d7dce3",fontSize:12,lineHeight:1.5},children:`\u256D\u2500 MEMORY ATLAS / \u5F85\u5BA1 \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u256E
1038
+ `;var Ia="0.30.0";function i0({t:e}){let[t,n]=(0,p.useState)(""),a="dsh-memory tui",o="dsh-memory tui --write",i=async(u,m)=>{try{await navigator.clipboard.writeText(u),n(m),setTimeout(()=>n(""),1600)}catch{}},l={border:"1px solid #3a404a",borderRadius:14,background:"#22262d",padding:"16px 18px"},s={margin:"10px 0 0",padding:"12px 14px",borderRadius:10,background:"#171a1f",border:"1px solid #333943",color:"#f3f5f8",fontSize:12.5,lineHeight:1.7,overflowX:"auto",fontFamily:"ui-monospace, Consolas, monospace"},c={marginTop:10,border:"1px solid #4a515c",background:"transparent",color:"#ffb08a",borderRadius:9,padding:"7px 12px",fontSize:12,cursor:"pointer"};return(0,r.jsxs)("div",{style:{padding:"22px 26px 34px",maxWidth:1040,color:"#f3f5f8"},children:[(0,r.jsxs)("div",{style:{display:"flex",alignItems:"baseline",gap:12,flexWrap:"wrap"},children:[(0,r.jsx)("h2",{style:{margin:0,fontSize:24,letterSpacing:"-.02em"},children:e("terminalTitle")}),(0,r.jsx)("span",{style:{color:"#99a1ac",fontSize:12},children:"TUI \xB7 LIVE \xB7 dsh-tui"})]}),(0,r.jsx)("p",{style:{margin:"9px 0 20px",color:"#aeb5bf",fontSize:13.5,lineHeight:1.8},children:e("terminalIntro")}),(0,r.jsxs)("div",{style:{display:"grid",gridTemplateColumns:"minmax(0, 1.1fr) minmax(0, .9fr)",gap:14},children:[(0,r.jsxs)("div",{style:l,children:[(0,r.jsxs)("div",{style:{fontSize:13,fontWeight:700},children:["\u25B8 ",e("terminalRun")]}),(0,r.jsx)("pre",{style:s,children:a}),(0,r.jsx)("button",{type:"button",style:c,onClick:()=>i(a,"run"),children:t==="run"?"\u2713 "+e("terminalCopied"):"\u29C9 "+e("terminalCopy")}),(0,r.jsxs)("div",{style:{marginTop:12,color:"#99a1ac",fontSize:12,lineHeight:1.7},children:["\u9ED8\u8BA4\u8BFB\u53D6\u771F\u5B9E\u8BB0\u5FC6\u5E93\u4E0E\u5F85\u5BA1\u961F\u5217\uFF1B\u53EA\u8BFB\uFF0C\u786E\u8BA4\u540E\u624D\u7528 `--write`\u3002\u793A\u4F8B\u6570\u636E\u7528 `--demo`\u3002",(0,r.jsx)("br",{}),"\u6CA1\u6709 `dsh-memory` \u547D\u4EE4\u65F6\uFF1A`npx -p memory-eternal dsh-memory tui`"]})]}),(0,r.jsxs)("div",{style:l,children:[(0,r.jsxs)("div",{style:{fontSize:13,fontWeight:700},children:["\u25B8 ",e("terminalTui")]}),(0,r.jsx)("pre",{style:s,children:o}),(0,r.jsx)("button",{type:"button",style:c,onClick:()=>i(o,"tui"),children:t==="tui"?"\u2713 "+e("terminalCopied"):"\u29C9 "+e("terminalCopy")}),(0,r.jsx)("div",{style:{marginTop:12,color:"#99a1ac",fontSize:12,lineHeight:1.7},children:"\u771F\u5B9E\u6279\u51C6/\u9A73\u56DE\uFF1B\u4E0D\u786E\u5B9A\u65F6\u5148\u7528\u53EA\u8BFB\u6A21\u5F0F\u3002"})]})]}),(0,r.jsxs)("div",{style:{...l,marginTop:14},children:[(0,r.jsxs)("div",{style:{fontSize:13,fontWeight:700},children:["\u25B8 ",e("terminalPreview")]}),(0,r.jsx)("pre",{style:{...s,marginTop:10,color:"#d7dce3",fontSize:12,lineHeight:1.5},children:`\u256D\u2500 MEMORY ATLAS / \u5F85\u5BA1 \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u256E
1039
1039
  \u2502 \u7C7B\u578B \u25CF \u5168\u90E8 7 \u25CB \u9879\u76EE 3 \u25CB \u77E5\u8BC6 1 \u25CB \u6559\u8BAD 1 \u2502
1040
1040
  \u2502 \u2502
1041
1041
  \u2502 \u25A3 \u5168\u9009 7 \u5DF2\u9009 3 s \u5168\u9009 \u2502
@@ -1044,17 +1044,17 @@ Option A, because:
1044
1044
  \u2502 \u25C9 [\u6559\u8BAD] shj-web \u7AEF\u53E3\u83DC\u5355\u9519\u4F4D \u2502
1045
1045
  \u2502 \u2502
1046
1046
  \u2502 [a] \u6279\u51C6 3 [r] \u9A73\u56DE [s] \u53CD\u9009 [Esc] \u6E05\u7A7A \u2502
1047
- \u2570\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u256F`})]}),(0,r.jsxs)("div",{style:{marginTop:16,color:"#99a1ac",fontSize:12.5,lineHeight:1.8},children:[(0,r.jsx)("b",{style:{color:"#f3f5f8"},children:e("terminalWhy")}),(0,r.jsx)("br",{}),e("terminalWhyBody")]})]})}var dd=class extends m.default.Component{constructor(t){super(t),this.state={error:null}}static getDerivedStateFromError(t){return{error:t||new Error("unknown")}}componentDidCatch(t,n){try{console.warn("[memory-eternal] \u8BB0\u5FC6\u9762\u677F\u6E32\u67D3\u5F02\u5E38\uFF08\u5DF2\u515C\u5E95\uFF0C\u4E0D\u518D\u6574\u9875\u767D\u5C4F\uFF09",t,n&&n.componentStack)}catch{}}render(){if(!this.state.error)return this.props.children;let t=String(this.state.error&&this.state.error.message||this.state.error||"unknown");return(0,r.jsxs)("div",{style:{padding:"22px 24px",fontFamily:'system-ui, "Segoe UI", "Microsoft YaHei", sans-serif',color:"var(--dsw-alias-label-primary, #1f2937)"},children:[(0,r.jsx)("div",{style:{fontSize:15,fontWeight:700,marginBottom:6},children:"\u8BB0\u5FC6\u9762\u677F\u6E32\u67D3\u51FA\u9519"}),(0,r.jsx)("div",{style:{fontSize:12.5,opacity:.75,lineHeight:1.7,marginBottom:14,wordBreak:"break-all"},children:t}),(0,r.jsx)("div",{style:{fontSize:12,opacity:.6,marginBottom:14,lineHeight:1.7},children:"\u5DF2\u7ECF\u515C\u5E95\u4F4F\uFF0C\u4E0D\u4F1A\u518D\u6574\u9875\u767D\u5C4F\u3002\u70B9\u300C\u91CD\u65B0\u52A0\u8F7D\u300D\u53EF\u6062\u590D\uFF1B\u53CD\u590D\u51FA\u73B0\u8BF7\u7528\u5DE6\u680F\u300C\u53CD\u9988\u5F02\u5E38\u300D\u5E26\u4E0A\u8FD9\u6BB5\u62A5\u9519\u3002"}),(0,r.jsx)("button",{type:"button",className:"mc-btn",onClick:()=>{try{window.location.reload()}catch{}},children:"\u91CD\u65B0\u52A0\u8F7D"})]})}};function iv({t:e,notify:t,onPromoted:n}){let[a,o]=(0,m.useState)(!1),[i,l]=(0,m.useState)(""),[s,c]=(0,m.useState)(null),[u,p]=(0,m.useState)(""),h=(0,m.useRef)(null),g=(0,m.useCallback)(async()=>{try{let y=await(await fetch(`${ee}/working`)).json().catch(()=>null);y&&y.ok&&(c(y),l(y.text||""))}catch{}},[]);(0,m.useEffect)(()=>{g()},[g]);let k=async(f,y)=>(await fetch(`${ee}${f}`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(y||{})})).json().catch(()=>null),L=async()=>{p("save");let f=await k("/working",{text:i,mode:"replace"});p(""),f&&f.ok?(t(!0,e("workSaved")),await g()):t(!1,f&&f.error||"save failed")},R=async()=>{if(!window.confirm(e("workClearConfirm")))return;p("clear");let f=await k("/working/clear",{});p(""),f&&f.ok?(l(""),t(!0,e("workCleared")),await g()):t(!1,f&&f.error||"clear failed")},A=async()=>{let f=h.current,y=f&&f.selectionEnd>f.selectionStart?f.value.slice(f.selectionStart,f.selectionEnd):i;if(!String(y||"").trim()){t(!1,e("workPromoteEmpty"));return}p("promote");let P=await k("/working/promote",{text:y});p(""),P&&P.ok?(t(!0,e("workPromoted")),n&&n()):t(!1,P&&P.error||"promote failed")},v=i?i.split(`
1048
- `).length:0;return(0,r.jsxs)("div",{className:"mc-card",style:{margin:"0 0 10px",padding:"10px 12px"},children:[(0,r.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,flexWrap:"wrap"},children:[(0,r.jsxs)("b",{style:{fontSize:12.5},children:["\u{1F4DD} ",e("workTitle")]}),(0,r.jsx)("span",{style:{fontSize:11,opacity:.65},children:e("workHint")}),(0,r.jsxs)("span",{style:{fontSize:11,opacity:.5},children:[v," ",e("workLines")]}),(0,r.jsx)("div",{style:{flex:1}}),(0,r.jsx)("button",{type:"button",className:"mc-btn",onClick:()=>o(f=>!f),children:e(a?"workCollapse":"workExpand")})]}),a&&(0,r.jsxs)("div",{style:{marginTop:8},children:[(0,r.jsx)("textarea",{ref:h,value:i,onChange:f=>l(f.target.value),rows:7,placeholder:e("workPlaceholder"),style:{width:"100%",boxSizing:"border-box",borderRadius:8,padding:"8px 10px",fontSize:12.5,lineHeight:1.6,background:"rgba(0,0,0,0.18)",color:"inherit",border:"1px solid rgba(140,148,160,0.35)",resize:"vertical"}}),(0,r.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,marginTop:8,flexWrap:"wrap"},children:[(0,r.jsx)("button",{type:"button",className:"mc-btn me-on",disabled:!!u,onClick:L,children:u==="save"?"\u2026":e("workSave")}),(0,r.jsx)("button",{type:"button",className:"mc-btn",disabled:!!u,onClick:A,children:u==="promote"?"\u2026":e("workPromote")}),(0,r.jsx)("button",{type:"button",className:"mc-btn mc-danger",disabled:!!u||!i.trim(),onClick:R,children:e("workClear")}),(0,r.jsxs)("span",{style:{fontSize:11,opacity:.55},children:[s&&s.maxLines?s.maxLines+" \u884C / "+Math.round((s.maxBytes||0)/1024)+"KB ":"",e("workLimitHint")," \xB7 ",e("workPromoteHint")]})]})]})]})}function Yf(e){return(0,r.jsx)(dd,{children:(0,r.jsx)(lv,{...e})})}function lv({t:e,inModal:t,onClose:n}){let a=typeof window<"u"&&(!!window.__DSH_BOOT__||String(location.pathname||"").includes("/memory-eternal/api/ui/app")),[o,i]=(0,m.useState)(null),[l,s]=(0,m.useState)(()=>{try{let N=localStorage.getItem("me-ui-scale");return["compact","normal","large"].includes(N)?N:"normal"}catch{return"normal"}}),[c,u]=(0,m.useState)([]),[p,h]=(0,m.useState)(!0),[g,k]=(0,m.useState)(null),[L,R]=(0,m.useState)(""),[A,v]=(0,m.useState)("all"),[f,y]=(0,m.useState)(""),[P,F]=(0,m.useState)("all"),[z,I]=(0,m.useState)("all"),[_,j]=(0,m.useState)(()=>{try{return new Set(JSON.parse(localStorage.getItem("me-pinned-v5")||"[]"))}catch{return new Set}}),[H,se]=(0,m.useState)(!1),he=(0,m.useCallback)(N=>{j(q=>{let oe=new Set(q);oe.has(N)?oe.delete(N):oe.add(N);try{localStorage.setItem("me-pinned-v5",JSON.stringify([...oe]))}catch{}return oe})},[]),[ce,Ge]=(0,m.useState)(""),[Y,je]=(0,m.useState)(()=>{try{let N=new URLSearchParams(typeof location<"u"?location.search:"").get("tab"),q={cards:"cards",graph:"graph",news:"news",usage:"stats",stats:"stats",audit:"audit",recycle:"optimize",optimize:"optimize",config:"config",terminal:"terminal"};if(N&&q[N])return q[N]}catch{}return"cards"}),[T,Ae]=(0,m.useState)(()=>new Set([Y])),re=(0,m.useCallback)(N=>{Ae(q=>q.has(N)?q:new Set(q).add(N)),je(N)},[]),[te,Ve]=(0,m.useState)("recent"),[Fe,le]=(0,m.useState)(null),[$,B]=(0,m.useState)(null),M=(0,m.useCallback)(N=>{B(null);try{fetch(`${ee}/star/action`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({action:N})}).catch(()=>{})}catch{}},[]);(0,m.useEffect)(()=>{let N=!0;return fetch(`${ee}/star/status`).then(q=>q.json()).then(q=>{!N||!q||!q.shouldAsk||(B(q),fetch(`${ee}/star/action`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({action:"shown"})}).catch(()=>{}))}).catch(()=>{}),()=>{N=!1}},[]);let V=(0,m.useRef)(null),de=(0,m.useRef)(null),[Ie,Be]=(0,m.useState)(!1),[me,x]=(0,m.useState)(!1),[J,G]=(0,m.useState)(0),[ge,Ee]=(0,m.useState)(null),[ke,we]=(0,m.useState)(!1),[K,ue]=(0,m.useState)(!1),[Me,fe]=(0,m.useState)(!1),[Nt,Yt]=(0,m.useState)("group"),[Ye,jt]=(0,m.useState)(!1);(0,m.useEffect)(()=>{let N=q=>{let oe=q&&q.detail;if(["compact","normal","large"].includes(oe)){s(oe);try{localStorage.setItem("me-ui-scale",oe)}catch{}}};return window.addEventListener("me-ui-scale",N),()=>window.removeEventListener("me-ui-scale",N)},[]);let gt=(0,m.useCallback)(()=>{jt(!1);try{localStorage.setItem("me-onboard-v2","1")}catch{}},[]),Qt=(0,m.useCallback)((N="group")=>{Yt(N),fe(!0)},[]),Qe=(0,m.useRef)(!1),qn=(0,m.useCallback)(async()=>{if(Qe.current)return;Qe.current=!0;let N=(q,oe=!0)=>{V.current&&clearTimeout(V.current),le({ok:oe,msg:q}),V.current=setTimeout(()=>le(null),3e3)};N(e("webOpening"));try{let q=await fetch(`${ee}/open-web`,{method:"POST"}).then(ye=>ye.json()).catch(()=>null);if(q&&q.ok&&q.url){N(e("webOpened")+" \xB7 "+q.url);return}let oe=await fetch(`${ee}/web-info`).then(ye=>ye.json()).catch(()=>null),xe=oe&&oe.ok&&oe.url||"http://127.0.0.1:7999/",Ce=window.open(xe,"_blank","noopener,noreferrer");N(Ce?e("webOpened")+" \xB7 "+xe:e("webOpenFail")+" \xB7 "+xe,!!Ce)}catch{N(e("webOpenFail"),!1)}finally{Qe.current=!1}},[e]);(0,m.useEffect)(()=>{try{if(localStorage.getItem("me-onboard-v2")||Y!=="cards")return;let N=setTimeout(()=>jt(!0),900);return()=>clearTimeout(N)}catch{}},[Y]);let[Se,C]=(0,m.useState)(!0),[w,pe]=(0,m.useState)(0),[Re,S]=(0,m.useState)(null),[D,Le]=(0,m.useState)(0),Ke=(0,m.useCallback)(()=>Le(N=>N+1),[]),d=o?.quarantine?.pending??0,Bt=(o?.quarantine?.deleted??0)+(o?.quarantine?.rejected??0),Xt=(0,m.useRef)(null),[Ht,kn]=(0,m.useState)(0),[Sn,Fr]=(0,m.useState)(!1),Ir=(0,m.useRef)(null),b=(0,m.useRef)(null),ne=(0,m.useCallback)(async(N=A,q=f,oe=z,xe={})=>{let Ce=xe.append===!0;try{Ce?Fr(!0):(h(!0),R(""));let ye=new URLSearchParams;N&&N!=="all"&&ye.set("kind",N),q.trim()&&ye.set("q",q.trim());let pt=xe.tag!==void 0?xe.tag:ce;pt&&ye.set("tag",pt),ye.set("status",oe||"all"),ye.set("limit",String(nv)),ye.set("offset",String(xe.offset||0)),te==="title"&&ye.set("sort","title");let Nn=await(await fetch(`${ee}/cards?${ye.toString()}`)).json();if(Nn.ok){let _n=Nn.cards||[];u(Tn=>Ce?[...Tn,..._n.filter(Tl=>!Tn.some(Ml=>Ml.path===Tl.path))]:_n),kn(Number(Nn.total)||_n.length)}}catch(ye){R(String(ye&&ye.message?ye.message:ye))}finally{Ce?Fr(!1):h(!1)}},[A,f,z,te,ce]),ae=(0,m.useCallback)(async()=>{try{let[N,q,oe,xe]=await Promise.all([fetch(`${ee}/overview`).then(ye=>ye.json()),fetch(`${ee}/capture-log`).then(ye=>ye.json()).catch(()=>null),fetch(`${ee}/config`).then(ye=>ye.json()).catch(()=>null),fetch(`${ee}/news?unread=1&limit=1`).then(ye=>ye.json()).catch(()=>null)]);N.ok&&i(N),xe&&xe.ok&&G(Number((xe.counts||{}).unread)||0);let Ce=oe&&oe.ok&&oe.config&&oe.config.uiScale;if(["compact","normal","large"].includes(Ce)){s(Ce);try{localStorage.setItem("me-ui-scale",Ce)}catch{}}k(q&&q.ok&&q.available&&q.health||null)}catch(N){R(String(N&&N.message?N.message:N))}finally{h(!1)}},[]),Ue=async N=>{try{let oe=await(await fetch(`${ee}/delete?path=${encodeURIComponent(N)}`)).json();oe.ok?(le({ok:!0,msg:e("deleted")}),await ae(),Ke()):le({ok:!1,msg:oe.error||e("deleteFail")})}catch{le({ok:!1,msg:e("deleteFail")})}V.current&&clearTimeout(V.current),V.current=setTimeout(()=>le(null),2e3)};(0,m.useEffect)(()=>(ae(),()=>{Xt.current&&clearTimeout(Xt.current)}),[ae]);let _e=N=>{y(N),Xt.current&&clearTimeout(Xt.current),Xt.current=setTimeout(()=>ne(A,N,z),280)},Te=N=>{v(N),ne(N,f,z)},$e=N=>{let q=String(N||"");Ge(q),Ee(null),ne(A,f,z,{tag:q})};(0,m.useEffect)(()=>{Y==="cards"&&ne(A,f,z)},[z,Y,D,te,ce]),(0,m.useEffect)(()=>{if(Y!=="cards"||p||Sn||c.length>=Ht)return;let N=Ir.current,q=b.current;if(!N)return;let oe=new IntersectionObserver(xe=>{xe[0]&&xe[0].isIntersecting&&ne(A,f,z,{append:!0,offset:c.length})},{root:q||null,rootMargin:"400px"});return oe.observe(N),()=>oe.disconnect()},[Y,c,Ht,p,Sn,A,f,z,ne]);let Jt=async(N,q)=>{try{let oe=await fetch(`${ee}/card-kind`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:N,kind:q})}).then(xe=>xe.json());!oe||!oe.ok?le({ok:!1,msg:oe&&oe.error||e("coreSetFail")}):(Ee(xe=>xe&&xe.path===N?{...xe,kind:oe.kind}:xe),await ae(),Ke(),le({ok:!0,msg:e(q==="core"?"coreSetOk":"coreUnsetOk")}))}catch(oe){le({ok:!1,msg:String(oe&&oe.message||oe)})}V.current&&clearTimeout(V.current),V.current=setTimeout(()=>le(null),2e3)},an=async N=>{try{let q=N.status;if(!q&&N.path)try{let pt=((await fetch(`${ee}/cards?status=all&q=${encodeURIComponent(N.title||"")}&limit=50`).then(pn=>pn.json())).cards||[]).find(pn=>pn.path===N.path);pt&&(q=pt.status)}catch{}let oe=q&&q!=="approved"?`&status=${encodeURIComponent(q)}`:"",xe=await fetch(`${ee}/card?path=${encodeURIComponent(N.path||N.id)}${oe}`),Ce=await xe.json();Ce.ok?Ee({path:Ce.path,title:N.title,text:Ce.text,kind:N.kind||"knowledge",status:q||"approved"}):R(Ce.error||`HTTP ${xe.status}`)}catch(q){R(String(q&&q.message?q.message:q))}},_r=async(N,q)=>{Be(!0);try{let oe=await fetch(`${ee}/export`);if(!oe.ok)throw new Error("HTTP "+oe.status);let xe=await oe.json();if(!xe.ok)throw new Error(xe.error||"export failed");let Ce,ye,pt;if(N==="json"){ye="memory-vault.json",pt="application/json";let _n=xe.cards.map(Tn=>({path:Tn.path,title:Tn.title,kind:Tn.kind,status:Tn.status,store:Tn.store,text:Tn.text}));Ce=JSON.stringify({format:xe.format||"memory-eternal-vault",formatVersion:xe.formatVersion||1,exportedAt:xe.exportedAt||new Date().toISOString(),count:_n.length,cards:_n},null,2)}else ye="memory-vault.md",pt="text/markdown;charset=utf-8",Ce=xe.cards.map(_n=>_n.text.trim()).filter(Boolean).join(`
1047
+ \u2570\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u256F`})]}),(0,r.jsxs)("div",{style:{marginTop:16,color:"#99a1ac",fontSize:12.5,lineHeight:1.8},children:[(0,r.jsx)("b",{style:{color:"#f3f5f8"},children:e("terminalWhy")}),(0,r.jsx)("br",{}),e("terminalWhyBody")]})]})}var ud=class extends p.default.Component{constructor(t){super(t),this.state={error:null}}static getDerivedStateFromError(t){return{error:t||new Error("unknown")}}componentDidCatch(t,n){try{console.warn("[memory-eternal] \u8BB0\u5FC6\u9762\u677F\u6E32\u67D3\u5F02\u5E38\uFF08\u5DF2\u515C\u5E95\uFF0C\u4E0D\u518D\u6574\u9875\u767D\u5C4F\uFF09",t,n&&n.componentStack)}catch{}}render(){if(!this.state.error)return this.props.children;let t=String(this.state.error&&this.state.error.message||this.state.error||"unknown");return(0,r.jsxs)("div",{style:{padding:"22px 24px",fontFamily:'system-ui, "Segoe UI", "Microsoft YaHei", sans-serif',color:"var(--dsw-alias-label-primary, #1f2937)"},children:[(0,r.jsx)("div",{style:{fontSize:15,fontWeight:700,marginBottom:6},children:"\u8BB0\u5FC6\u9762\u677F\u6E32\u67D3\u51FA\u9519"}),(0,r.jsx)("div",{style:{fontSize:12.5,opacity:.75,lineHeight:1.7,marginBottom:14,wordBreak:"break-all"},children:t}),(0,r.jsx)("div",{style:{fontSize:12,opacity:.6,marginBottom:14,lineHeight:1.7},children:"\u5DF2\u7ECF\u515C\u5E95\u4F4F\uFF0C\u4E0D\u4F1A\u518D\u6574\u9875\u767D\u5C4F\u3002\u70B9\u300C\u91CD\u65B0\u52A0\u8F7D\u300D\u53EF\u6062\u590D\uFF1B\u53CD\u590D\u51FA\u73B0\u8BF7\u7528\u5DE6\u680F\u300C\u53CD\u9988\u5F02\u5E38\u300D\u5E26\u4E0A\u8FD9\u6BB5\u62A5\u9519\u3002"}),(0,r.jsx)("button",{type:"button",className:"mc-btn",onClick:()=>{try{window.location.reload()}catch{}},children:"\u91CD\u65B0\u52A0\u8F7D"})]})}};function l0({t:e,notify:t,onPromoted:n}){let[a,o]=(0,p.useState)(!1),[i,l]=(0,p.useState)(""),[s,c]=(0,p.useState)(null),[u,m]=(0,p.useState)(""),h=(0,p.useRef)(null),g=(0,p.useCallback)(async()=>{try{let y=await(await fetch(`${Z}/working`)).json().catch(()=>null);y&&y.ok&&(c(y),l(y.text||""))}catch{}},[]);(0,p.useEffect)(()=>{g()},[g]);let k=async(f,y)=>(await fetch(`${Z}${f}`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(y||{})})).json().catch(()=>null),E=async()=>{m("save");let f=await k("/working",{text:i,mode:"replace"});m(""),f&&f.ok?(t(!0,e("workSaved")),await g()):t(!1,f&&f.error||"save failed")},T=async()=>{if(!window.confirm(e("workClearConfirm")))return;m("clear");let f=await k("/working/clear",{});m(""),f&&f.ok?(l(""),t(!0,e("workCleared")),await g()):t(!1,f&&f.error||"clear failed")},I=async()=>{let f=h.current,y=f&&f.selectionEnd>f.selectionStart?f.value.slice(f.selectionStart,f.selectionEnd):i;if(!String(y||"").trim()){t(!1,e("workPromoteEmpty"));return}m("promote");let L=await k("/working/promote",{text:y});m(""),L&&L.ok?(t(!0,e("workPromoted")),n&&n()):t(!1,L&&L.error||"promote failed")},w=i?i.split(`
1048
+ `).length:0;return(0,r.jsxs)("div",{className:"mc-card",style:{margin:"0 0 10px",padding:"10px 12px"},children:[(0,r.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,flexWrap:"wrap"},children:[(0,r.jsxs)("b",{style:{fontSize:12.5},children:["\u{1F4DD} ",e("workTitle")]}),(0,r.jsx)("span",{style:{fontSize:11,opacity:.65},children:e("workHint")}),(0,r.jsxs)("span",{style:{fontSize:11,opacity:.5},children:[w," ",e("workLines")]}),(0,r.jsx)("div",{style:{flex:1}}),(0,r.jsx)("button",{type:"button",className:"mc-btn",onClick:()=>o(f=>!f),children:e(a?"workCollapse":"workExpand")})]}),a&&(0,r.jsxs)("div",{style:{marginTop:8},children:[(0,r.jsx)("textarea",{ref:h,value:i,onChange:f=>l(f.target.value),rows:7,placeholder:e("workPlaceholder"),style:{width:"100%",boxSizing:"border-box",borderRadius:8,padding:"8px 10px",fontSize:12.5,lineHeight:1.6,background:"rgba(0,0,0,0.18)",color:"inherit",border:"1px solid rgba(140,148,160,0.35)",resize:"vertical"}}),(0,r.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,marginTop:8,flexWrap:"wrap"},children:[(0,r.jsx)("button",{type:"button",className:"mc-btn me-on",disabled:!!u,onClick:E,children:u==="save"?"\u2026":e("workSave")}),(0,r.jsx)("button",{type:"button",className:"mc-btn",disabled:!!u,onClick:I,children:u==="promote"?"\u2026":e("workPromote")}),(0,r.jsx)("button",{type:"button",className:"mc-btn mc-danger",disabled:!!u||!i.trim(),onClick:T,children:e("workClear")}),(0,r.jsxs)("span",{style:{fontSize:11,opacity:.55},children:[s&&s.maxLines?s.maxLines+" \u884C / "+Math.round((s.maxBytes||0)/1024)+"KB ":"",e("workLimitHint")," \xB7 ",e("workPromoteHint")]})]})]})]})}function Qf(e){return(0,r.jsx)(ud,{children:(0,r.jsx)(s0,{...e})})}function s0({t:e,inModal:t,onClose:n}){let a=typeof window<"u"&&(!!window.__DSH_BOOT__||String(location.pathname||"").includes("/memory-eternal/api/ui/app")),[o,i]=(0,p.useState)(null),[l,s]=(0,p.useState)(()=>{try{let N=localStorage.getItem("me-ui-scale");return["compact","normal","large"].includes(N)?N:"normal"}catch{return"normal"}}),[c,u]=(0,p.useState)([]),[m,h]=(0,p.useState)(!0),[g,k]=(0,p.useState)(null),[E,T]=(0,p.useState)(""),[I,w]=(0,p.useState)("all"),[f,y]=(0,p.useState)(""),[L,O]=(0,p.useState)("all"),[D,P]=(0,p.useState)("all"),[A,j]=(0,p.useState)(()=>{try{return new Set(JSON.parse(localStorage.getItem("me-pinned-v5")||"[]"))}catch{return new Set}}),[H,ce]=(0,p.useState)(!1),ve=(0,p.useCallback)(N=>{j(Y=>{let ie=new Set(Y);ie.has(N)?ie.delete(N):ie.add(N);try{localStorage.setItem("me-pinned-v5",JSON.stringify([...ie]))}catch{}return ie})},[]),[he,De]=(0,p.useState)(""),[G,je]=(0,p.useState)(()=>{try{let N=new URLSearchParams(typeof location<"u"?location.search:"").get("tab"),Y={cards:"cards",graph:"graph",news:"news",usage:"stats",stats:"stats",audit:"audit",recycle:"optimize",optimize:"optimize",config:"config",terminal:"terminal"};if(N&&Y[N])return Y[N]}catch{}return"cards"}),[F,et]=(0,p.useState)(()=>new Set([G])),pe=(0,p.useCallback)(N=>{et(Y=>Y.has(N)?Y:new Set(Y).add(N)),je(N)},[]),[ne,Ke]=(0,p.useState)("recent"),[Be,ae]=(0,p.useState)(null),[V,$]=(0,p.useState)(null),z=(0,p.useCallback)(N=>{$(null);try{fetch(`${Z}/star/action`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({action:N})}).catch(()=>{})}catch{}},[]);(0,p.useEffect)(()=>{let N=!0;return fetch(`${Z}/star/status`).then(Y=>Y.json()).then(Y=>{!N||!Y||!Y.shouldAsk||($(Y),fetch(`${Z}/star/action`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({action:"shown"})}).catch(()=>{}))}).catch(()=>{}),()=>{N=!1}},[]);let q=(0,p.useRef)(null),ge=(0,p.useRef)(null),[Le,le]=(0,p.useState)(!1),[te,v]=(0,p.useState)(!1),[Q,K]=(0,p.useState)(0),[me,Ee]=(0,p.useState)(null),[we,fe]=(0,p.useState)(!1),[W,ue]=(0,p.useState)(!1),[de,be]=(0,p.useState)(!1),[Nt,Yt]=(0,p.useState)("group"),[qe,jt]=(0,p.useState)(!1);(0,p.useEffect)(()=>{let N=Y=>{let ie=Y&&Y.detail;if(["compact","normal","large"].includes(ie)){s(ie);try{localStorage.setItem("me-ui-scale",ie)}catch{}}};return window.addEventListener("me-ui-scale",N),()=>window.removeEventListener("me-ui-scale",N)},[]);let gt=(0,p.useCallback)(()=>{jt(!1);try{localStorage.setItem("me-onboard-v2","1")}catch{}},[]),Qt=(0,p.useCallback)((N="group")=>{Yt(N),be(!0)},[]),Ye=(0,p.useRef)(!1),qn=(0,p.useCallback)(async()=>{if(Ye.current)return;Ye.current=!0;let N=(Y,ie=!0)=>{q.current&&clearTimeout(q.current),ae({ok:ie,msg:Y}),q.current=setTimeout(()=>ae(null),3e3)};N(e("webOpening"));try{let Y=await fetch(`${Z}/open-web`,{method:"POST"}).then(ke=>ke.json()).catch(()=>null);if(Y&&Y.ok&&Y.url){N(e("webOpened")+" \xB7 "+Y.url);return}let ie=await fetch(`${Z}/web-info`).then(ke=>ke.json()).catch(()=>null),Ce=ie&&ie.ok&&ie.url||"http://127.0.0.1:7999/",Te=window.open(Ce,"_blank","noopener,noreferrer");N(Te?e("webOpened")+" \xB7 "+Ce:e("webOpenFail")+" \xB7 "+Ce,!!Te)}catch{N(e("webOpenFail"),!1)}finally{Ye.current=!1}},[e]);(0,p.useEffect)(()=>{try{if(localStorage.getItem("me-onboard-v2")||G!=="cards")return;let N=setTimeout(()=>jt(!0),900);return()=>clearTimeout(N)}catch{}},[G]);let[Ne,C]=(0,p.useState)(!0),[x,ye]=(0,p.useState)(0),[Pe,S]=(0,p.useState)(null),[R,Ae]=(0,p.useState)(0),Ve=(0,p.useCallback)(()=>Ae(N=>N+1),[]),d=o?.quarantine?.pending??0,Bt=(o?.quarantine?.deleted??0)+(o?.quarantine?.rejected??0),Xt=(0,p.useRef)(null),[Ht,Sn]=(0,p.useState)(0),[Cn,Fr]=(0,p.useState)(!1),Ir=(0,p.useRef)(null),b=(0,p.useRef)(null),re=(0,p.useCallback)(async(N=I,Y=f,ie=D,Ce={})=>{let Te=Ce.append===!0;try{Te?Fr(!0):(h(!0),T(""));let ke=new URLSearchParams;N&&N!=="all"&&ke.set("kind",N),Y.trim()&&ke.set("q",Y.trim());let pt=Ce.tag!==void 0?Ce.tag:he;pt&&ke.set("tag",pt),ke.set("status",ie||"all"),ke.set("limit",String(r0)),ke.set("offset",String(Ce.offset||0)),ne==="title"&&ke.set("sort","title");let Tn=await(await fetch(`${Z}/cards?${ke.toString()}`)).json();if(Tn.ok){let _n=Tn.cards||[];u(Mn=>Te?[...Mn,..._n.filter(Tl=>!Mn.some(Ml=>Ml.path===Tl.path))]:_n),Sn(Number(Tn.total)||_n.length)}}catch(ke){T(String(ke&&ke.message?ke.message:ke))}finally{Te?Fr(!1):h(!1)}},[I,f,D,ne,he]),oe=(0,p.useCallback)(async()=>{try{let[N,Y,ie,Ce]=await Promise.all([fetch(`${Z}/overview`).then(ke=>ke.json()),fetch(`${Z}/capture-log`).then(ke=>ke.json()).catch(()=>null),fetch(`${Z}/config`).then(ke=>ke.json()).catch(()=>null),fetch(`${Z}/news?unread=1&limit=1`).then(ke=>ke.json()).catch(()=>null)]);N.ok&&i(N),Ce&&Ce.ok&&K(Number((Ce.counts||{}).unread)||0);let Te=ie&&ie.ok&&ie.config&&ie.config.uiScale;if(["compact","normal","large"].includes(Te)){s(Te);try{localStorage.setItem("me-ui-scale",Te)}catch{}}k(Y&&Y.ok&&Y.available&&Y.health||null)}catch(N){T(String(N&&N.message?N.message:N))}finally{h(!1)}},[]),Ue=async N=>{try{let ie=await(await fetch(`${Z}/delete?path=${encodeURIComponent(N)}`)).json();ie.ok?(ae({ok:!0,msg:e("deleted")}),await oe(),Ve()):ae({ok:!1,msg:ie.error||e("deleteFail")})}catch{ae({ok:!1,msg:e("deleteFail")})}q.current&&clearTimeout(q.current),q.current=setTimeout(()=>ae(null),2e3)};(0,p.useEffect)(()=>(oe(),()=>{Xt.current&&clearTimeout(Xt.current)}),[oe]);let _e=N=>{y(N),Xt.current&&clearTimeout(Xt.current),Xt.current=setTimeout(()=>re(I,N,D),280)},ze=N=>{w(N),re(N,f,D)},$e=N=>{let Y=String(N||"");De(Y),Ee(null),re(I,f,D,{tag:Y})};(0,p.useEffect)(()=>{G==="cards"&&re(I,f,D)},[D,G,R,ne,he]),(0,p.useEffect)(()=>{if(G!=="cards"||m||Cn||c.length>=Ht)return;let N=Ir.current,Y=b.current;if(!N)return;let ie=new IntersectionObserver(Ce=>{Ce[0]&&Ce[0].isIntersecting&&re(I,f,D,{append:!0,offset:c.length})},{root:Y||null,rootMargin:"400px"});return ie.observe(N),()=>ie.disconnect()},[G,c,Ht,m,Cn,I,f,D,re]);let Jt=async(N,Y)=>{try{let ie=await fetch(`${Z}/card-kind`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:N,kind:Y})}).then(Ce=>Ce.json());!ie||!ie.ok?ae({ok:!1,msg:ie&&ie.error||e("coreSetFail")}):(Ee(Ce=>Ce&&Ce.path===N?{...Ce,kind:ie.kind}:Ce),await oe(),Ve(),ae({ok:!0,msg:e(Y==="core"?"coreSetOk":"coreUnsetOk")}))}catch(ie){ae({ok:!1,msg:String(ie&&ie.message||ie)})}q.current&&clearTimeout(q.current),q.current=setTimeout(()=>ae(null),2e3)},an=async N=>{try{let Y=N.status;if(!Y&&N.path)try{let pt=((await fetch(`${Z}/cards?status=all&q=${encodeURIComponent(N.title||"")}&limit=50`).then(pn=>pn.json())).cards||[]).find(pn=>pn.path===N.path);pt&&(Y=pt.status)}catch{}let ie=Y&&Y!=="approved"?`&status=${encodeURIComponent(Y)}`:"",Ce=await fetch(`${Z}/card?path=${encodeURIComponent(N.path||N.id)}${ie}`),Te=await Ce.json();Te.ok?Ee({path:Te.path,title:N.title,text:Te.text,kind:N.kind||"knowledge",status:Y||"approved"}):T(Te.error||`HTTP ${Ce.status}`)}catch(Y){T(String(Y&&Y.message?Y.message:Y))}},_r=async(N,Y)=>{le(!0);try{let ie=await fetch(`${Z}/export`);if(!ie.ok)throw new Error("HTTP "+ie.status);let Ce=await ie.json();if(!Ce.ok)throw new Error(Ce.error||"export failed");let Te,ke,pt;if(N==="json"){ke="memory-vault.json",pt="application/json";let _n=Ce.cards.map(Mn=>({path:Mn.path,title:Mn.title,kind:Mn.kind,status:Mn.status,store:Mn.store,text:Mn.text}));Te=JSON.stringify({format:Ce.format||"memory-eternal-vault",formatVersion:Ce.formatVersion||1,exportedAt:Ce.exportedAt||new Date().toISOString(),count:_n.length,cards:_n},null,2)}else ke="memory-vault.md",pt="text/markdown;charset=utf-8",Te=Ce.cards.map(_n=>_n.text.trim()).filter(Boolean).join(`
1049
1049
 
1050
1050
  ---
1051
1051
 
1052
- `);let pn=new Blob([Ce],{type:pt}),Nn=await jv(pn,ye,!1);if(!Nn.ok){le({ok:!1,msg:e("exportFail")}),Be(!1);return}le({ok:!0,msg:e("exportedTo")+"\uFF1A"+e("defaultDownloads")+" \xB7 "+Nn.name})}catch(oe){le({ok:!1,msg:e("exportFail")+" \xB7 "+(oe.message||"")})}finally{Be(!1)}V.current&&clearTimeout(V.current),V.current=setTimeout(()=>le(null),2600)},na=async N=>{let q=N.target.files&&N.target.files[0];if(N.target.value="",!!q){try{let oe=await q.text(),Ce=await(await fetch(`${ee}/import`,{method:"POST",headers:{"Content-Type":"application/json"},body:oe})).json();if(Ce.ok){await ae();let ye=Ce.imported||0,pt=e("importedVault")+"\uFF1A"+ye;Ce.total&&(pt+=e("importedTotal")+Ce.total+e("importedTotalTail")),Ce.quarantined&&(pt+=e("importedQuarantine")+Ce.quarantined+e("importedQuarantineTail")),Ce.skipped&&(pt+=e("importedSkipped")+Ce.skipped+e("importedSkippedTail")),Ce.warning&&(pt+=" \xB7 "+Ce.warning),le({ok:ye>0||!Ce.total,msg:pt})}else le({ok:!1,msg:Ce.error||e("importFail")})}catch{le({ok:!1,msg:e("importFail")})}V.current&&clearTimeout(V.current),V.current=setTimeout(()=>le(null),2400)}},Uo=async()=>{if(!me){x(!0);try{let N=await fetch(`${ee}/skills/sync`,{method:"POST"}).then(q=>q.json()).catch(()=>null);if(N&&N.ok){let q=e("skillsSyncDone")+" \xB7 "+e("skillsScanned")+" "+(N.total||0)+" \xB7 "+e("skillsCreated")+" "+(N.created||0)+" \xB7 "+e("skillsUpdated")+" "+(N.updated||0)+" \xB7 "+e("skillsPendingUpdates")+" "+(N.pendingUpdates||0);le({ok:!0,msg:q}),await ae(),Ke()}else le({ok:!1,msg:N&&N.error||e("skillsSyncFail")})}catch{le({ok:!1,msg:e("skillsSyncFail")})}finally{x(!1)}V.current&&clearTimeout(V.current),V.current=setTimeout(()=>le(null),3600)}},Tt=(0,m.useMemo)(()=>{let N=c.slice();return P!=="all"&&(N=N.filter(q=>Pr(q.submittedBy)===P)),z!=="all"&&(N=N.filter(q=>(q.status||"approved")===z)),H&&(N=N.filter(q=>_.has(q.path))),te==="title"?N.sort((q,oe)=>String(q.title||"").localeCompare(String(oe.title||""))):te==="hot"?N.sort((q,oe)=>(oe.weight||oe.links||0)-(q.weight||q.links||0)):N.sort((q,oe)=>new Date(oe.updated||0).getTime()-new Date(q.updated||0).getTime()),N},[c,te,P,z,H,_]),Cn=(0,m.useMemo)(()=>[...new Set(c.map(N=>Pr(N.submittedBy)))],[c]),In=(0,m.useMemo)(()=>{let N={};for(let q of c){let oe=new Set(q.tags||[]),xe=0;for(let Ce of c)Ce.path!==q.path&&(Ce.tags||[]).some(ye=>oe.has(ye))&&xe++;N[q.path]=xe}return N},[c]),[Wt,ja]=(0,m.useState)(null),yt=(0,m.useMemo)(()=>{if(!Tt.length)return null;let N=Wt?Tt.find(oe=>oe.path===Wt):null;return N||Tt.find(oe=>Date.now()-new Date(oe.updated||0).getTime()>21*864e5)||Tt[0]},[Tt,Wt]),sr=()=>{if(!Tt.length)return;let N=Tt.findIndex(q=>q.path===(yt&&yt.path));ja(Tt[(N+1+Tt.length)%Tt.length].path)},Mt=!f&&A==="all"&&!ce&&z==="all"&&!!yt;return(0,r.jsxs)("div",{className:"memory-eternal-root me-v5","data-ui-scale":l,style:{height:"100%",width:"100%",zoom:l==="large"?1.15:l==="compact"?.92:1.06,overflow:"hidden",display:"flex",flexDirection:"column"},children:[(0,r.jsx)("style",{children:xn}),!t&&(0,r.jsxs)("div",{className:`mc-v5-top${a?" in-host":""}`,children:[(0,r.jsx)("img",{className:"mc-v5-logo",src:fl,alt:""}),(0,r.jsxs)("span",{className:"mc-v5-crumb",children:[(0,r.jsx)("b",{children:e("memoryTitle")}),(0,r.jsx)("i",{children:"/"}),(0,r.jsx)("span",{children:e(Y==="cards"?"cardsTab":Y==="graph"?"graphTab":Y==="news"?"newsTab":Y==="stats"?"tabUsage":Y==="audit"?"tabAudit":Y==="optimize"?"tabRecycle":Y==="terminal"?"terminalTab":"tabConfig")})]}),(0,r.jsx)("div",{className:"spacer"}),(0,r.jsxs)("div",{className:"mc-v5-top-actions",children:[(0,r.jsxs)("span",{className:"mc-v5-sys",children:[(0,r.jsx)("i",{}),e("v5Local")]}),(0,r.jsxs)("span",{className:"mc-v5-ver",children:["v",_a]}),(0,r.jsxs)("button",{type:"button",className:"mc-v5-star",onClick:()=>kl("https://github.com/EternalNight996/memory-eternal"),title:e("v5Star"),children:["\u2605 ",(0,r.jsx)("span",{className:"mc-v5-star-label",children:"Star"})]}),(0,r.jsx)("button",{type:"button",className:"mc-v5-help",onClick:()=>Qt("group"),title:e("supportTitle"),"aria-label":e("supportTitle"),children:"?"})]})]}),$&&(0,r.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10,margin:"8px 14px 0",padding:"10px 14px",borderRadius:10,background:"linear-gradient(90deg, rgba(255,122,69,0.14), rgba(255,122,69,0.03))",border:"1px solid rgba(255,122,69,0.32)",color:"var(--dsw-alias-label-primary, #e5e7eb)",fontSize:12.5,lineHeight:1.55},children:[(0,r.jsx)("span",{style:{fontSize:15,color:"#FF7A45"},children:"\u2605"}),(0,r.jsxs)("span",{style:{flex:1},children:[(0,r.jsx)("b",{children:e("starAskTitle")}),(0,r.jsx)("span",{style:{opacity:.82,marginLeft:8},children:e("starAskBody").replace("{recalls}",String($.evidence?.recalls??0)).replace("{cards}",String($.evidence?.cards??0))})]}),(0,r.jsxs)("button",{type:"button",className:"mc-btn me-on",onClick:()=>{kl("https://github.com/EternalNight996/memory-eternal"),M("never")},children:["\u2605 ",e("starAskGo")]}),(0,r.jsx)("button",{type:"button",className:"mc-btn",onClick:()=>M("later"),children:e("starAskLater")}),(0,r.jsx)("button",{type:"button",className:"mc-btn",onClick:()=>M("never"),children:e("starAskNever")})]}),Fe&&(0,r.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,position:"fixed",left:"50%",transform:"translateX(-50%)",top:22,zIndex:70,background:"rgba(20,22,26,0.97)",backdropFilter:"blur(12px)",WebkitBackdropFilter:"blur(12px)",color:"#f5f5f5",borderRadius:12,padding:"10px 20px",fontSize:13.5,fontWeight:600,boxShadow:"0 14px 44px rgba(0,0,0,.5)",pointerEvents:"none",animation:"me-pop .22s ease",borderLeft:"4px solid "+(Fe.ok?"#22c55e":"#ef4444"),maxWidth:"90vw"},children:[(0,r.jsx)("span",{style:{color:Fe.ok?"#34d399":"#f87171",fontWeight:800,fontSize:15},children:Fe.ok?"\u2713":"\u2715"}),(0,r.jsx)("span",{children:Fe.msg})]}),t&&(0,r.jsxs)("div",{className:"me-modal-head",children:[(0,r.jsxs)("div",{className:"me-modal-title",children:[(0,r.jsx)("span",{className:"me-wicon",children:(0,r.jsx)("img",{src:fl,alt:""})}),(0,r.jsx)("h2",{children:e("memoryTitle")}),(0,r.jsx)("span",{children:e("memoryHint")})]}),(0,r.jsx)("div",{className:"spacer"}),(0,r.jsx)("button",{type:"button",className:"me-modal-close me-modal-x",onClick:n,"aria-label":e("close"),title:e("close"),children:(0,r.jsx)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round","aria-hidden":"true",children:(0,r.jsx)("path",{d:"M6 6l12 12M18 6L6 18"})})})]}),g&&g.ok===!1&&(0,r.jsxs)("div",{style:{display:"flex",alignItems:"flex-start",gap:8,margin:"0 0 8px",padding:"9px 14px",borderRadius:10,background:"rgba(239,68,68,0.10)",border:"1px solid rgba(239,68,68,0.45)",borderLeft:"4px solid #ef4444",color:"var(--dsw-alias-label-primary, #e5e7eb)",fontSize:12.5,lineHeight:1.6},children:[(0,r.jsxs)("span",{style:{fontWeight:800},children:["\u26A0 ",e("captureAlert")]}),(0,r.jsxs)("span",{style:{flex:1},children:[g.reason,(0,r.jsx)("div",{style:{opacity:.68,fontSize:11.5,marginTop:2},children:e("captureAlertHint")})]}),(0,r.jsx)("span",{style:{opacity:.7},children:g.since?lr(new Date(g.since).toISOString()):""})]}),(0,r.jsxs)("div",{className:"me-modal-body",children:[(0,r.jsxs)("div",{className:`mc-rail${Se?" open":""}`,children:[(0,r.jsxs)("div",{className:"mc-v5-rail-top",children:[Se&&(0,r.jsxs)("div",{className:"mc-v5-railbrand",children:[(0,r.jsx)("img",{className:"mark",src:fl,alt:""}),(0,r.jsxs)("div",{children:[(0,r.jsx)("b",{children:e("memoryTitle")}),(0,r.jsx)("span",{children:"MEMORY ATLAS"})]})]}),(0,r.jsx)("button",{type:"button",className:"mc-rail-collapse",onClick:()=>C(N=>!N),"aria-label":e(Se?"collapse":"expand"),title:e(Se?"collapse":"expand"),children:Se?"\xAB":"\xBB"})]}),Se&&(0,r.jsx)("div",{className:"mc-rail-sec",children:e("navWorkspace")}),(0,r.jsxs)("button",{type:"button",className:`mc-railbtn${Y==="cards"?" active":""}`,onClick:()=>re("cards"),title:e("cardsTab"),children:[(0,r.jsx)("span",{className:"mc-rail-ico",children:"\u{1F9E0}"}),Se&&(0,r.jsx)("span",{className:"mc-rail-label",children:e("cardsTab")})]}),(0,r.jsxs)("button",{type:"button",className:`mc-railbtn${Y==="graph"?" active":""}`,onClick:()=>re("graph"),title:e("graphTab"),children:[(0,r.jsx)("span",{className:"mc-rail-ico",children:"\u{1F52E}"}),Se&&(0,r.jsx)("span",{className:"mc-rail-label",children:e("graphTab")})]}),(0,r.jsxs)("button",{type:"button",className:`mc-railbtn${Y==="news"?" active":""}`,onClick:()=>re("news"),title:e("newsTab"),children:[(0,r.jsx)("span",{className:"mc-rail-ico",children:"\u{1F4F0}"}),Se&&(0,r.jsx)("span",{className:"mc-rail-label",children:e("newsTab")}),J>0&&(0,r.jsx)("span",{className:"mc-dot",children:J>99?"99+":J})]}),(0,r.jsxs)("button",{type:"button",className:`mc-railbtn${Y==="stats"?" active":""}`,onClick:()=>re("stats"),title:e("tabUsage"),children:[(0,r.jsx)("span",{className:"mc-rail-ico",children:"\u{1F4C8}"}),Se&&(0,r.jsx)("span",{className:"mc-rail-label",children:e("tabUsage")})]}),(0,r.jsxs)("button",{type:"button",className:`mc-railbtn${Y==="audit"?" active":""}`,onClick:()=>re("audit"),title:e("tabAudit"),children:[(0,r.jsx)("span",{className:"mc-rail-ico",children:"\u{1F50D}"}),Se&&(0,r.jsx)("span",{className:"mc-rail-label",children:e("tabAudit")}),d>0&&(0,r.jsx)("span",{className:"mc-dot",children:d>99?"99+":d})]}),Se&&(0,r.jsx)("div",{className:"mc-rail-sec",children:e("navSystem")}),(0,r.jsxs)("button",{type:"button",className:`mc-railbtn${Y==="optimize"?" active":""}`,onClick:()=>re("optimize"),title:e("tabRecycle"),children:[(0,r.jsx)("span",{className:"mc-rail-ico",children:"\u267B\uFE0F"}),Se&&(0,r.jsx)("span",{className:"mc-rail-label",children:e("tabRecycle")}),Bt>0&&(0,r.jsx)("span",{className:"mc-dot",style:{background:"#6b7280"},children:Bt>99?"99+":Bt})]}),(0,r.jsxs)("button",{type:"button",className:`mc-railbtn${Y==="terminal"?" active":""}`,onClick:()=>re("terminal"),title:e("terminalTab"),children:[(0,r.jsx)("span",{className:"mc-rail-ico",children:"\u25B8_"}),Se&&(0,r.jsx)("span",{className:"mc-rail-label",children:e("terminalTab")})]}),(0,r.jsxs)("button",{type:"button",className:"mc-railbtn",onClick:qn,title:e("webTab"),"aria-label":e("webTab"),children:[(0,r.jsx)("span",{className:"mc-rail-ico",children:"\u{1F310}"}),Se&&(0,r.jsx)("span",{className:"mc-rail-label",children:e("webTab")})]}),(0,r.jsxs)("button",{type:"button",className:`mc-railbtn${Y==="config"?" active":""}`,onClick:()=>re("config"),title:e("tabConfig"),children:[(0,r.jsx)("span",{className:"mc-rail-ico",children:"\u2699\uFE0F"}),Se&&(0,r.jsx)("span",{className:"mc-rail-label",children:e("tabConfig")})]}),Se&&(0,r.jsx)("div",{className:"mc-rail-sec",children:e("navSupport")}),(0,r.jsxs)("button",{type:"button",className:"mc-railbtn",onClick:()=>Qt("group"),title:e("supportGroup"),children:[(0,r.jsx)("span",{className:"mc-rail-ico",children:"\u{1F4AC}"}),Se&&(0,r.jsx)("span",{className:"mc-rail-label",children:e("supportGroup")})]}),(0,r.jsxs)("button",{type:"button",className:"mc-railbtn",onClick:()=>Qt("sponsor"),title:e("supportSponsor"),children:[(0,r.jsx)("span",{className:"mc-rail-ico",children:"\u2615"}),Se&&(0,r.jsx)("span",{className:"mc-rail-label",children:e("supportSponsor")})]}),(0,r.jsxs)("button",{type:"button",className:"mc-railbtn",onClick:()=>Qt("legacy"),title:e("supportLegacy"),children:[(0,r.jsx)("span",{className:"mc-rail-ico",children:"\u{1F9E9}"}),Se&&(0,r.jsx)("span",{className:"mc-rail-label",children:e("supportLegacy")})]}),(0,r.jsxs)("button",{type:"button",className:"mc-railbtn",onClick:()=>ue(!0),title:e("fbNav"),children:[(0,r.jsx)("span",{className:"mc-rail-ico",children:"\u{1F41E}"}),Se&&(0,r.jsx)("span",{className:"mc-rail-label",children:e("fbNav")})]}),Se&&(0,r.jsxs)("button",{type:"button",className:"mc-quote",onClick:()=>pe(N=>(N+1)%wl.length),title:`${wl[w]}
1053
- ${jf}
1054
- ${e("quoteHint")}`,children:[(0,r.jsxs)("span",{className:"mc-quote-tag",children:[e("navQuotes")," \xB7 ",w+1,"/",wl.length]}),(0,r.jsx)("span",{className:"mc-quote-text",children:wl[w]},w),(0,r.jsx)("span",{className:"mc-quote-src",children:jf})]})]}),(0,r.jsxs)("div",{className:"mc-main",ref:b,children:[o&&o.db&&o.db.writable===!1?(0,r.jsxs)("div",{style:{margin:"8px 10px 0",padding:"8px 12px",borderRadius:8,fontSize:12,lineHeight:1.7,background:"rgba(239,68,68,0.10)",border:"1px solid rgba(239,68,68,0.35)",color:"#b91c1c"},children:["\u26A0\uFE0F ",e("dbReadonlyTitle"),"\uFF1A",o.db.error||"\u2014"," \u2014\u2014 ",e("dbReadonlyBody"),(0,r.jsx)("div",{style:{opacity:.85,marginTop:2},children:e("dbReadonlyFix")})]}):null,Y==="cards"&&(0,r.jsxs)("div",{className:"mc-v5-pagehead",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{className:"mc-v5-eyebrow",children:"MEMORY LIBRARY"}),(0,r.jsx)("h1",{children:e("memoryTitle")}),(0,r.jsx)("p",{children:e("memoryHint")}),(0,r.jsxs)("div",{className:"mc-v5-pagehead-stats",children:[(0,r.jsxs)("span",{children:[(0,r.jsx)("b",{children:o?.total??"\u2014"})," ",e("cardsUnit")]}),(0,r.jsxs)("span",{children:[e("recent")," +",o?.recent??0]}),(0,r.jsxs)("span",{children:[e("pending")," ",o?.quarantine?.pending??o?.status?.pending??0]}),(0,r.jsxs)("span",{children:[e("rejected")," ",o?.quarantine?.rejected??o?.status?.rejected??0]})]})]}),(0,r.jsxs)("span",{className:"mc-v5-pagecount",children:[c.length," / ",Ht]})]}),Y==="cards"&&(0,r.jsx)(iv,{t:e,notify:(N,q)=>le({ok:N,msg:q}),onPromoted:()=>{ae(),Ke()}}),Y==="cards"&&(0,r.jsxs)("div",{className:"mc-toolbar",children:[(0,r.jsx)("input",{type:"text",placeholder:e("searchPlaceholder"),value:f,onChange:N=>_e(N.target.value)}),ce&&(0,r.jsxs)("button",{type:"button",className:"mc-chip active",title:e("clearFilter"),onClick:()=>$e(""),children:["\u{1F3F7} ",ce," ",(0,r.jsx)("span",{style:{opacity:.7},children:"\u2715"})]}),(0,r.jsx)("input",{ref:de,type:"file",accept:".json,application/json",style:{display:"none"},onChange:na}),(0,r.jsx)("button",{type:"button",className:"mc-btn",onClick:()=>de.current&&de.current.click(),children:e("importVault")}),(0,r.jsxs)("button",{type:"button",className:"mc-btn me-on",onClick:()=>S({kind:"knowledge",title:"",body:"",tags:"",template:""}),children:["+ ",e("newCard")]}),(0,r.jsx)("button",{type:"button",className:"mc-btn",disabled:me,onClick:Uo,title:e("skillCardsHint"),children:me?"\u23F3 "+e("syncingSkills"):"\u{1F9E9} "+e("syncSkills")}),(0,r.jsx)("button",{type:"button",className:"mc-btn",disabled:Ie,onClick:()=>_r("md"),children:e(Ie?"exporting":"exportVault")}),(0,r.jsx)("button",{type:"button",className:"mc-btn",disabled:Ie,onClick:()=>_r("json"),children:e(Ie?"exporting":"exportJson")}),(0,r.jsx)("button",{type:"button",className:"mc-btn",onClick:()=>ae(),children:e("refresh")})]}),Y==="cards"&&(0,r.jsxs)("div",{className:"mc-chips",children:[Cl.map(N=>(0,r.jsxs)("button",{type:"button",className:`mc-chip${A===N?" active":""}`,onClick:()=>Te(N),children:[e(N==="all"?"all":Ct[N]),(0,r.jsx)("span",{className:"mc-chip-n",children:N==="all"?o?.total??0:o?.byKind?.[N]??0})]},N)),(0,r.jsxs)("button",{type:"button",className:`mc-chip${H?" active":""}`,onClick:()=>se(N=>!N),children:["\u{1F4CC} ",e("pinnedOnly"),(0,r.jsx)("span",{className:"mc-chip-n",children:_.size})]}),(0,r.jsxs)("select",{value:P,onChange:N=>F(N.target.value),style:{fontSize:12,padding:"4px 8px",borderRadius:8,background:"var(--dsw-alias-bg-layer-1, #fff)",color:"inherit",border:"1px solid var(--dsw-alias-border-l2, #d1d5db)"},children:[(0,r.jsxs)("option",{value:"all",children:["\u{1F916} ",e("allAgents")]}),qf(Cn).map(N=>(0,r.jsx)("option",{value:N,children:N},N))]}),(0,r.jsxs)("select",{value:z,onChange:N=>I(N.target.value),style:{fontSize:12,padding:"4px 8px",borderRadius:8,background:"var(--dsw-alias-bg-layer-1, #fff)",color:"inherit",border:"1px solid var(--dsw-alias-border-l2, #d1d5db)"},children:[(0,r.jsx)("option",{value:"all",children:e("allStatus")}),(0,r.jsx)("option",{value:"approved",children:e("statusApproved")}),(0,r.jsx)("option",{value:"pending",children:e("statusPending")}),(0,r.jsx)("option",{value:"rejected",children:e("statusRejected")})]}),(0,r.jsx)("span",{className:"spacer",style:{flex:1}}),[{key:"recent",label:e("sortRecent")},{key:"title",label:e("sortTitle")},{key:"hot",label:e("sortHot")}].map(N=>(0,r.jsx)("button",{type:"button",className:`mc-chip${te===N.key?" active":""}`,onClick:()=>Ve(N.key),children:N.label},N.key))]}),L&&(0,r.jsxs)("div",{className:"mc-empty",children:[e("error"),"\uFF1A",L]}),(0,r.jsx)("div",{style:{display:Y==="cards"?"contents":"none"},children:p?(0,r.jsx)(eg,{text:e("loading")}):L?(0,r.jsxs)("div",{className:"mc-empty",children:[e("error"),"\uFF1A",L," ",(0,r.jsx)("button",{type:"button",className:"mc-btn",onClick:()=>ae(),children:e("retry")})]}):c.length===0?(0,r.jsx)("div",{className:"mc-empty",children:e("empty")}):(0,r.jsxs)(r.Fragment,{children:[Mt&&(0,r.jsxs)("div",{className:"mc-v5-feature",onClick:()=>an(yt),children:[(0,r.jsxs)("div",{className:"mc-v5-feature-copy",children:[(0,r.jsx)("div",{className:"mc-v5-eyebrow",children:e("todayReview")}),(0,r.jsx)("h3",{children:yt.title}),(0,r.jsx)("p",{children:bd(yt)}),(0,r.jsxs)("div",{className:"mc-v5-feature-meta",children:[(0,r.jsxs)("span",{children:[Ar[yt.kind]||"\u{1F4CE}"," ",e(Ct[yt.kind]||"kindKnowledge")]}),(0,r.jsxs)("span",{children:["\u{1F552} ",lr(yt.updated)]}),(yt.tags||[]).slice(0,3).map(N=>(0,r.jsxs)("span",{children:["#",N]},N))]})]}),(0,r.jsxs)("div",{className:"mc-v5-feature-side",children:[(0,r.jsx)(Zf,{n:In[yt.path]||0,color:qt[yt.kind]||qt.other,size:58}),(0,r.jsx)("b",{children:In[yt.path]||0}),(0,r.jsx)("span",{children:e("links")}),(0,r.jsx)("button",{type:"button",className:"mc-v5-feature-shuffle",onClick:N=>{N.stopPropagation(),sr()},children:e("reshuffle")}),(0,r.jsx)("span",{className:"mc-v5-feature-open",children:e("openArrow")})]})]}),(0,r.jsx)("div",{className:"mc-grid",children:Tt.filter(N=>!Mt||N.path!==yt.path).map(N=>(0,r.jsx)(Mv,{card:N,t:e,query:f.trim(),onOpen:an,onDelete:Ue,onTagClick:$e,pinned:_.has(N.path),onPin:he,onCore:Jt,links:In[N.path]||0},N.path))}),c.length<Ht&&(0,r.jsx)("div",{ref:Ir,style:{height:1}}),Sn&&(0,r.jsxs)("div",{className:"mc-empty",style:{padding:"10px 0"},children:[e("loading"),"\uFF08",c.length," / ",Ht,"\uFF09"]})]})}),(0,r.jsx)("div",{style:{display:Y==="graph"?"flex":"none",flex:1,minHeight:0},children:T.has("graph")&&(0,r.jsx)(Av,{t:e,onOpen:an,all:ke,onAllChange:we,onMutate:Ke,active:Y==="graph",visible:Y==="graph"})}),(0,r.jsx)("div",{style:{display:Y==="news"?"contents":"none"},children:T.has("news")&&(0,r.jsx)(Sv,{t:e,version:D,onUnreadChange:G})}),(0,r.jsx)("div",{style:{display:Y==="terminal"?"contents":"none"},children:T.has("terminal")&&(0,r.jsx)(ov,{t:e})}),(0,r.jsx)("div",{style:{display:Y==="config"?"contents":"none"},children:T.has("config")&&(0,r.jsx)(cv,{t:e,onReload:()=>ae(),version:D})}),(0,r.jsx)("div",{style:{display:Y==="stats"?"contents":"none"},children:T.has("stats")&&(0,r.jsx)(Ev,{t:e,tab:"stats",onReload:()=>ae(),version:D})}),(0,r.jsx)("div",{style:{display:Y==="audit"?"contents":"none"},children:T.has("audit")&&(0,r.jsx)(dv,{t:e,onReload:()=>{ae(),Ke()},version:D})}),(0,r.jsx)("div",{style:{display:Y==="optimize"?"contents":"none"},children:T.has("optimize")&&(0,r.jsx)(Nv,{t:e,onReload:()=>{ae(),Ke()},version:D})}),K&&(0,r.jsx)(Rv,{t:e,onClose:()=>ue(!1)}),Me&&(0,r.jsx)(Lv,{t:e,tab:Nt,onTab:Yt,onClose:()=>fe(!1),onFeedback:()=>{fe(!1),ue(!0)},onReplay:()=>{fe(!1),jt(!0)}}),Ye&&(0,r.jsx)(Dv,{t:e,onDone:gt}),ge&&(0,r.jsx)(Pv,{t:e,card:ge,query:f.trim(),onNavigate:N=>{let q=Tt.findIndex(xe=>xe.path===ge.path),oe=Tt[q+N];oe&&an(oe)},onTagClick:$e,onClose:()=>Ee(null),onDelete:N=>{Ee(null),Ue(N)},onFeedback:N=>{let q=ge.path;fetch(`${ee}/feedback`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({query:f.trim(),path:q,useful:N})}).then(()=>le({ok:!0,msg:e(N?"fbUseful":"fbIrr")})).catch(()=>{}),V.current&&clearTimeout(V.current),V.current=setTimeout(()=>le(null),2e3)},allCards:Tt,onOpenRelated:N=>an(N),onKindChange:Jt,onSaved:async({path:N,status:q,title:oe})=>{try{let xe=q&&q!=="approved"?`&status=${encodeURIComponent(q)}`:"",Ce=await fetch(`${ee}/card?path=${encodeURIComponent(N)}${xe}`).then(ye=>ye.json());Ce&&Ce.ok&&Ee(ye=>ye&&ye.path===N?{...ye,title:oe||Ce.title||ye.title,text:Ce.text}:ye)}catch{}await ae(),Ke(),le({ok:!0,msg:e("editSaved")}),V.current&&clearTimeout(V.current),V.current=setTimeout(()=>le(null),2e3)}}),(0,r.jsx)(zv,{t:e,newCard:Re,setNewCard:S,onCreated:()=>{ae(),Ke(),le({ok:!0,msg:e("created")}),V.current&&clearTimeout(V.current),V.current=setTimeout(()=>le(null),2e3)}})]})]})]})}var Nl=({toast:e})=>e?(0,r.jsxs)("div",{className:"mc-card",style:{marginBottom:10,padding:"8px 12px",fontSize:12,borderLeft:"4px solid "+(e.ok?"#10b981":"#ef4444"),background:e.ok?"rgba(16,185,129,0.08)":"rgba(239,68,68,0.08)"},children:[e.ok?"\u2705":"\u26A0"," ",e.msg]}):null;var hd=(0,m.createContext)({form:null,set:()=>{}}),sv=new Set(["autoRestartOnDrift","coreMemoryEnabled","skillCardsAutoSync","workingMemoryEnabled"]);function dt({k:e,label:t,hint:n,type:a="text",step:o,min:i,max:l}){let{form:s,set:c}=(0,m.useContext)(hd);return(0,r.jsxs)("label",{className:"mc-field",children:[(0,r.jsx)("span",{className:"mc-field-label",children:t||e}),(0,r.jsx)("input",{type:a,step:o,min:i,max:l,value:s?s[e]??"":"",onChange:u=>{let p=u.target.value;c(e,a==="number"?p===""?"":Number(p):p)}}),n?(0,r.jsx)("span",{className:"mc-field-hint",children:n}):null]})}function Ot({k:e,label:t}){let{form:n,set:a}=(0,m.useContext)(hd),o=n?n[e]:void 0,i=o===void 0?sv.has(e):!!o;return(0,r.jsxs)("label",{className:"mc-switch",children:[(0,r.jsx)("input",{type:"checkbox",checked:i,onChange:l=>a(e,l.target.checked)}),(0,r.jsx)("span",{children:t||e})]})}function Kn({icon:e,title:t,sub:n,children:a}){return(0,r.jsxs)("div",{className:"mc-card mc-cfg-sec",children:[(0,r.jsxs)("div",{className:"mc-cfg-sec-head",children:[(0,r.jsx)("div",{className:"mc-cfg-sec-ico",children:e}),(0,r.jsxs)("div",{style:{minWidth:0},children:[(0,r.jsx)("div",{className:"mc-cfg-sec-title",children:t}),n?(0,r.jsx)("div",{className:"mc-cfg-sec-sub",children:n}):null]})]}),(0,r.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:13},children:a})]})}function cv({t:e,onReload:t,version:n,compact:a}){let[o,i]=(0,m.useState)(null),[l,s]=(0,m.useState)(0),[c,u]=(0,m.useState)(null),[p,h]=(0,m.useState)(null),[g,k]=(0,m.useState)(!1),[L,R]=(0,m.useState)(!1),A=(0,m.useRef)(!1),v=(0,m.useRef)(null),f=(0,m.useRef)({}),[y,P]=(0,m.useState)(null),[F,z]=(0,m.useState)(null),[I,_]=(0,m.useState)(""),[j,H]=(0,m.useState)(""),[se,he]=(0,m.useState)(""),[ce,Ge]=(0,m.useState)(null),[Y,je]=(0,m.useState)(null),[T,Ae]=(0,m.useState)(null),re=(0,m.useCallback)(async(b,ne=!1)=>{ne||H("version");try{let ae=await fetch(ee+"/version-check"+(b?"?force=1":"")).then(Ue=>Ue.json());ae&&ae.ok?(Ae(ae),b&&x(ae.updateAvailable?e("vcLatest")+" v"+ae.latest:e("vcUpToDate"))):b&&x(e("vcCheckFail"),!1)}catch{b&&x(e("vcCheckFail"),!1)}finally{ne||H("")}},[e]);(0,m.useEffect)(()=>{re(!1);let b=setInterval(()=>{re(!1,!0)},6e4),ne=()=>{typeof document<"u"&&!document.hidden&&re(!1,!0)};return document.addEventListener("visibilitychange",ne),()=>{clearInterval(b),document.removeEventListener("visibilitychange",ne)}},[n,re]);let[te,Ve]=(0,m.useState)(""),[Fe,le]=(0,m.useState)(null),[$,B]=(0,m.useState)(""),[M,V]=(0,m.useState)(!1),de=(0,m.useRef)(null),Ie=(0,m.useRef)(0),Be=b=>{Ie.current=b.currentTarget.scrollTop};(0,m.useLayoutEffect)(()=>{let b=de.current;b&&Math.abs(b.scrollTop-Ie.current)>1&&(b.scrollTop=Ie.current)});let me=(0,m.useRef)(null),x=(b,ne=!0)=>{me.current&&clearTimeout(me.current),le({msg:b,ok:ne}),me.current=setTimeout(()=>le(null),1900)},J=async()=>{if(!j){H("restart");try{let b=await fetch(ee+"/restart-self",{method:"POST"});if(b.status===404||b.status===405){x(Ye("vcRestartNoRoute",{cmd:T&&T.restartCommand||"dsh-memory restart --port 7999"}),!1);return}let ne=await b.json().catch(()=>null);if(!ne){x(e("vcRestartFail")+"\uFF08HTTP "+b.status+"\uFF09",!1);return}if(!ne.ok){x(ne.error||e("vcRestartFail"),!1);return}if(ne.alreadyCurrent){x(ne.note||e("vcRestartCurrent"));return}x(ne.note||e("vcRestartSent")),ne.alreadyRunning||setTimeout(()=>{re(!0)},6e3)}catch(b){x(e("vcRestartFail")+"\uFF1A"+String(b&&b.message||b),!1)}finally{H("")}}},G=T&&T.resident?String(T.resident.served||""):"",ge=!!(T&&T.onDisk&&G&&G!==T.onDisk),Ee=!!(T&&T.resident&&T.resident.managed===!1&&T.resident.managedKnown===!1),ke=T&&T.resident&&T.resident.replaceBlocked&&T.resident.replaceBlocked.fresh||null,we=!!(T&&T.resident&&T.resident.managedBy==="host"),K=!!(T&&T.resident&&T.resident.managed===!1&&!Ee&&!we),ue=!!(T&&T.resident&&!G),Me=ge||ue||K||Ee,fe=ff({hasVersion:!!T,hostVersion:T?T.loaded:"",onDisk:T?T.onDisk:"",residentServed:T&&T.resident?T.resident.served:"",residentPresent:!!(T&&T.resident),residentManaged:T&&T.resident?T.resident.managed:null,residentManagedKnown:T&&T.resident?T.resident.managedKnown:null,residentManagedBy:T&&T.resident?T.resident.managedBy:"",replaceBlocked:T&&T.resident?T.resident.replaceBlocked:null}),Nt={hostProcessStale:()=>Ye("vcHostProcessStale",{disk:T.onDisk,loaded:T.loaded}),residentDown:()=>Ye("vcResidentDown",{port:T.resident&&T.resident.port||"",cmd:T.restartCommand||"dsh-memory restart --port 7999"}),residentReplaceBlocked:()=>Ye("vcResidentReplaceBlocked",{served:G,err:ke&&ke.error||"",path:ke&&ke.lockPath||"",cmd:T.restartCommand||"dsh-memory restart --port "+(T.resident&&T.resident.port||7999)}),residentLockUnknown:()=>Ye("vcResidentLockUnknown",{served:G,path:T.resident&&T.resident.lock&&T.resident.lock.path||"",err:T.resident&&T.resident.lock&&T.resident.lock.error||""}),residentUnmanaged:()=>Ye("vcResidentUnmanaged",{served:G,cmd:T.restartCommand||"dsh-memory restart --port 7999"})},Yt={restartStart:()=>Ye("vcRestartStart",{disk:T&&T.onDisk||""}),restartRepair:()=>Ye("vcRestartRepair",{disk:T&&T.onDisk||""}),restartFixes:()=>Ye("vcRestartFixes",{served:G||"",disk:T&&T.onDisk||""}),restartHostOnly:()=>Ye("vcRestartHostOnly",{loaded:T&&T.loaded||"",disk:T&&T.onDisk||""}),restartAnyway:()=>Ye("vcRestartAnyway",{ver:T&&T.onDisk||""})},Ye=(b,ne)=>Object.keys(ne).reduce((ae,Ue)=>ae.split("{"+Ue+"}").join(ne[Ue]),e(b)),jt=(0,m.useCallback)(async()=>{try{let[b,ne,ae,Ue]=await Promise.all([fetch(`${ee}/config`).then(_e=>_e.json()).catch(()=>null),fetch(`${ee}/setup-status`).then(_e=>_e.json()).catch(()=>null),fetch(`${ee}/budget`).then(_e=>_e.json()).catch(()=>null),fetch(`${ee}/llm-routes`).then(_e=>_e.json()).catch(()=>null)]);if(Ue&&Ue.ok&&je(Ue),b&&b.ok){i(b),s(b.revision??0),u(b.schema??null);let _e=Ff(b.config??{},f.current);f.current=_e.overlay,h({..._e.values}),V(!1),P(b.dsh??null),k(b.writable===!1),R(b.viaPending===!0),_(""),A.current=!1}else ae&&ae.ok?(h({...ae}),V(!1),k(!0),_(e("configNeedsDsh"))):_(e("adminLoadFail"));ne&&ne.ok&&z(ne),he("")}catch{_(e("adminLoadFail"))}},[e]);(0,m.useEffect)(()=>{jt()},[n,jt]);let gt=(b,ne)=>{A.current=!0,V(!0),B(""),h(ae=>({...ae??{},[b]:ne}))};(0,m.useEffect)(()=>{v.current=jt},[jt]),(0,m.useEffect)(()=>{if(typeof EventSource>"u")return;let b=null;try{b=new EventSource(ee+"/events")}catch{return}let ne=()=>{!A.current&&typeof v.current=="function"&&v.current()};try{b.addEventListener("config",ne)}catch{}return()=>{try{b.close()}catch{}}},[]);let Qt=new Set(["dedupThreshold","captureMinChars","captureCooldownMs","maxCardsPerDay","captureMaxTokens","recallMinScore","recallLimit","recallSummaryLen","recycleRetentionDays","webPort","webCheckIntervalMs","webMaxRestart","sessionBudgetChars","coreMemoryLimit","coreMemoryMaxChars"]),Qe=b=>({init:e("modeInit"),interval:e("modeInterval"),manual:e("modeManual")})[b]||b,qn=async()=>{if(!p)return;if(g){x(e("editInSetting"),!1);return}let b={dedupThreshold:[0,1],captureMinChars:[0,1e6],captureCooldownMs:[0,1e9],maxCardsPerDay:[0,1e6],captureMaxTokens:[100,4e3],recallMinScore:[0,50],recallLimit:[1,20],recallSummaryLen:[40,400],recycleRetentionDays:[1,3650],webPort:[1,65535],webCheckIntervalMs:[1e3,6e5],webMaxRestart:[1,1e3],sessionBudgetChars:[0,1e9],coreMemoryLimit:[1,20],coreMemoryMaxChars:[200,1e4]},ne=[];for(let[ae,[Ue,_e]]of Object.entries(b)){if(!(ae in p))continue;let Te=p[ae],$e=typeof Te=="number"?Te:Number(Te);(Te===""||Te===null||Te===void 0||!Number.isFinite($e)||$e<Ue||$e>_e)&&ne.push(e("invalidField",{field:ae,min:Ue,max:_e,value:String(Te===""?"\u7A7A":Te)}))}if(ne.length){let ae=e("saveInvalid")+"\uFF1A"+ne.join("\uFF1B");_(ae),x(ae,!1);return}H("save");try{let ae={...p};for(let $e of Object.keys(p))$e in ae&&typeof ae[$e]=="string"&&ae[$e].trim()!==""&&Qt.has($e)&&(ae[$e]=Number(ae[$e]));Array.isArray(ae.vaultProfiles)&&(ae.vaultProfiles=ae.vaultProfiles.filter($e=>$e&&(String($e.name||"").trim()||String($e.path||"").trim())));let Ue=await fetch(`${ee}/config`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({patch:ae,expectedRevision:l})}),_e=await Ue.text(),Te=null;try{Te=_e?JSON.parse(_e):null}catch{Te=null}if(Te||(Te={error:"HTTP "+Ue.status+(_e?"\uFF1A"+_e.slice(0,200):"\uFF08\u5BBF\u4E3B\u672A\u8FD4\u56DE\u539F\u56E0\uFF0C\u8BF7\u68C0\u67E5\u662F\u5426\u6709\u6570\u5B57\u5B57\u6BB5\u4E3A\u7A7A\u6216\u8D85\u51FA\u8303\u56F4\uFF09")}),Te&&Te.ok){let $e=typeof Te.pendingOutcome=="string"?Te.pendingOutcome:"",Jt,an=!0;if($e==="applied")Jt=e("savedApplied")+(Array.isArray(Te.applied)&&Te.applied.length?" \xB7 "+Te.applied.join("\u3001"):"");else if($e==="queued")an=!1,Jt=e("saveQueued");else if($e==="failed")an=!1,Jt=e("saveFail")+" \xB7 "+(Te.hostGuard?e("saveHostGuard"):e("saveFailHint"));else if($e==="applied-direct")Jt=e("savedOk")+" \xB7 "+e("savedDirect");else{let _r=Array.isArray(Te.pending)&&Te.pending.length?" \xB7 "+e("savePending"):Te.note?" \xB7 "+e("restartHint"):"";Jt=(Te.retried?"\u267B ":"")+e("savedOk")+_r}f.current={...f.current,...ae},an?(B(""),V(!1),he(Jt)):_(Jt),x(Jt,an),await jt()}else{let $e=Ue.status===409?e("conflictRefresh"):Te?.error||e("saveFail");_($e),x($e,!1)}}catch{_(e("saveFail")),x(e("saveFail"),!1)}finally{H("")}},Se=()=>{f.current={},h({...o?.config??{}}),B(""),V(!1),he("")},C={env:"vaultSrcEnv",profile:"vaultSrcProfile",workspace:"vaultSrcWorkspace",vaultDir:"vaultSrcVaultDir",default:"vaultSrcDefault"},w=b=>Array.isArray(b?.vaultProfiles)?b.vaultProfiles:[],pe=(b,ne,ae)=>{A.current=!0,V(!0),h(Ue=>{let _e=w(Ue).map($e=>({...$e||{}})),Te={..._e[b]||{}};return ne==="match"?String(ae).trim()?Te.match={...Te.match||{},workspace:ae}:delete Te.match:Te[ne]=ae,_e[b]=Te,{...Ue??{},vaultProfiles:_e}})},Re=()=>{A.current=!0,V(!0),h(b=>({...b??{},vaultProfiles:[...w(b),{name:"",path:""}]}))},S=b=>{A.current=!0,V(!0),h(ne=>({...ne??{},vaultProfiles:w(ne).filter((ae,Ue)=>Ue!==b)}))},D={fontSize:11,padding:"2px 8px",background:"var(--dsw-alias-bg-layer-2, #f3f4f6)",borderRadius:6},Le={padding:"6px 8px",borderRadius:8,border:"1px solid var(--dsw-alias-border-l2, #d1d5db)",background:"transparent",color:"inherit",font:"inherit",fontSize:12,minWidth:0},Ke={A:{label:e("planA"),autoWebMode:"init",watchdogAutoSpawn:!1,distillEnabled:!0,dedupByLLM:!0,captureMaxTokens:4e3,recallMinScore:2,recallLimit:5,recallSummaryLen:130,recallIncludeBody:!1,captureCooldownMs:3e5},B:{label:e("planB"),autoWebMode:"init",watchdogAutoSpawn:!1,distillEnabled:!1,dedupByLLM:!1,captureMaxTokens:500,recallMinScore:3,recallLimit:3,recallSummaryLen:80,recallIncludeBody:!1,captureMinChars:300,maxCardsPerDay:40,captureCooldownMs:3e5},C:{label:e("planC"),autoWebMode:"interval",watchdogAutoSpawn:!0,distillEnabled:!0,dedupByLLM:!0,captureMaxTokens:1200,recallMinScore:1,recallLimit:8,recallSummaryLen:200,recallIncludeBody:!0,captureCooldownMs:12e4}},d=b=>{let ne=Ke[b];ne&&(h(ae=>({...ae??{},...ne})),A.current=!0,V(!0),B(b),x(Ye("planApplied",{plan:ne.label})))},Bt=async()=>{try{let b=await fetch(ee+"/setup-status").then(ne=>ne.json());b&&b.ok&&z(b)}catch{}},Xt=async(b,ne)=>{H(b+ne);try{let Ue=await(await fetch(`${ee}/mcp/action`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({agent:b,action:ne})})).json();Ue&&Ue.ok?x(Ye(ne==="install"?"mcpInstalled":"mcpUninstalled",{agent:b})):x(Ye("mcpActionFail",{agent:b,error:Ue?.error||""}),!1);try{let _e=await fetch(`${ee}/setup-status`).then(Te=>Te.json());_e&&_e.ok&&z(_e)}catch{}}catch{x(e("mergeFail"),!1)}finally{H("")}},Ht=F&&Array.isArray(F.agents)?F.agents:[],kn=Ht.filter(b=>b.installed),Sn=[...new Set(kn.flatMap(b=>Array.isArray(b.servers)?b.servers:[]))],Fr=Ht.filter(b=>b.mcpConfigured&&!b.isDsh).length,Ir=Ht.some(b=>Array.isArray(b.servers));return(0,r.jsx)(hd.Provider,{value:{form:p,set:gt},children:(0,r.jsxs)("div",{className:"mc-admin",style:{display:"flex",flexDirection:"column",overflow:"hidden",flex:a?"0 0 auto":1,minHeight:0,maxHeight:a?"52vh":void 0},children:[(0,r.jsx)("style",{children:xn}),Fe&&(0,r.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,position:"fixed",left:"50%",transform:"translateX(-50%)",top:22,zIndex:70,background:"rgba(20,22,26,0.97)",backdropFilter:"blur(12px)",WebkitBackdropFilter:"blur(12px)",color:"#f5f5f5",borderRadius:12,padding:"10px 20px",fontSize:13.5,fontWeight:600,boxShadow:"0 14px 44px rgba(0,0,0,.5)",pointerEvents:"none",animation:"me-pop .22s ease",borderLeft:"4px solid "+(Fe.ok?"#22c55e":"#ef4444"),maxWidth:"90vw"},children:[(0,r.jsx)("span",{style:{color:Fe.ok?"#34d399":"#f87171",fontWeight:800,fontSize:15},children:Fe.ok?"\u2713":"\u2715"}),(0,r.jsx)("span",{style:{wordBreak:"break-all"},children:Fe.msg})]}),(0,r.jsxs)("div",{ref:de,onScroll:Be,style:{flex:1,minHeight:0,overflow:"auto",overscrollBehavior:"contain",scrollbarGutter:"stable",padding:4},children:[!a&&(0,r.jsxs)("div",{className:"mc-v5-pagehead",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{className:"mc-v5-eyebrow",children:"MEMORY CONFIG"}),(0,r.jsx)("h1",{children:e("tabConfig")}),(0,r.jsx)("p",{children:e("configPageSub")})]}),(0,r.jsxs)("span",{className:"mc-v5-audit-trust",children:["\u{1F6E1} ",e("v5Local")]})]}),I&&(0,r.jsxs)("div",{className:"mc-card",style:{borderLeft:"4px solid #ef4444",background:"rgba(239,68,68,0.08)",padding:"12px 14px",marginBottom:10},children:[(0,r.jsxs)("div",{style:{fontSize:13,color:"#b91c1c",fontWeight:600,marginBottom:6},children:["\u26A0 ",I]}),(0,r.jsxs)("button",{type:"button",className:"mc-btn",onClick:jt,children:["\u21BB ",e("retry")]})]}),L&&(0,r.jsxs)("div",{className:"mc-card",style:{borderLeft:"4px solid #3b82f6",background:"rgba(59,130,246,0.08)",padding:"10px 14px",marginBottom:10,fontSize:12,color:"#1d4ed8",lineHeight:1.7},children:["\u2139 ",e("pendingSyncNote")]}),g&&(0,r.jsxs)("div",{className:"mc-card",style:{borderLeft:"4px solid #f59e0b",background:"rgba(245,158,11,0.08)",padding:"10px 14px",marginBottom:10,fontSize:12,color:"#b45309"},children:["\u2139\uFE0F ",e("configNeedsDsh")," \u2014\u2014 ",e("editInSetting")]}),se&&(0,r.jsxs)("div",{className:"mc-card",style:{borderLeft:"4px solid #10b981",background:"rgba(16,185,129,0.08)",padding:"10px 14px",marginBottom:10,fontSize:12,color:"#059669"},children:["\u2713 ",se]}),o&&(o.version||o.dsh?.vaultDir)&&(0,r.jsxs)("div",{className:"mc-card",style:{marginBottom:10,padding:"10px 14px"},children:[(0,r.jsxs)("div",{style:{display:"flex",gap:10,alignItems:"center",flexWrap:"wrap"},children:[(0,r.jsxs)("b",{style:{fontSize:12},children:["\u{1F4E6} ",e("pluginInfo")]}),(0,r.jsx)("span",{style:{fontSize:12,opacity:.7},children:e("dshHostLabel")}),o.version&&(0,r.jsxs)("code",{style:D,children:[e("vcLoaded")," v",o.version]}),T&&T.resident&&T.resident.served&&T.resident.served!==o.version&&(0,r.jsxs)("code",{style:D,children:[e("vcResident")," v",T.resident.served]}),T&&T.resident&&!T.resident.served&&(0,r.jsxs)("code",{style:{...D,color:"#b45309",fontWeight:600},children:[e("vcResident")," ",e("vcResidentDownShort")]}),T&&T.resident&&T.resident.served&&T.resident.managed===!1&&(0,r.jsxs)("code",{style:{...D,color:"#b45309",fontWeight:600},children:[e("vcResident")," v",T.resident.served," \xB7 ",e(ke?"vcResidentReplaceBlockedShort":we?"vcResidentHostManagedShort":Ee?"vcResidentLockUnknownShort":"vcResidentUnmanagedShort")]}),_a&&(0,r.jsxs)("code",{style:D,children:[e("vcPage")," v",_a]}),T&&T.onDisk&&(0,r.jsxs)("code",{style:D,children:[e("vcOnDisk")," v",T.onDisk]}),T&&T.latest&&(0,r.jsxs)("code",{style:D,children:[e("vcLatest")," v",T.latest]}),o.dsh?.vaultDir&&(0,r.jsxs)("span",{style:{fontSize:11,opacity:.6},children:["\u{1F4C1} ",o.dsh.vaultDir]}),(0,r.jsx)("div",{style:{flex:1}}),(0,r.jsx)("button",{type:"button",className:"mc-btn",disabled:j==="version",onClick:()=>re(!0),children:j==="version"?e("checking"):"\u{1F504} "+e("vcCheck")})]}),T&&fe.warn&&(0,r.jsx)("div",{style:{marginTop:8,fontSize:11.5,color:"#b45309",background:"rgba(245,158,11,0.12)",border:"1px solid rgba(245,158,11,0.35)",borderRadius:8,padding:"6px 10px"},children:(0,r.jsxs)("div",{children:["\u26A0\uFE0F ",Nt[fe.warn]?Nt[fe.warn]():""]})}),fe.showButton&&(0,r.jsxs)("div",{style:{display:"flex",gap:8,alignItems:"center",marginTop:6,flexWrap:"wrap"},children:[(0,r.jsx)("button",{type:"button",className:"mc-btn"+(fe.emphasis?" me-on":""),disabled:!!j,onClick:J,children:j==="restart"?"\u23F3 "+e("vcRestarting"):"\u{1F504} "+e("vcRestart")}),T.restartCommand&&(0,r.jsx)("code",{style:{fontSize:11,opacity:.75},children:T.restartCommand}),(0,r.jsx)("span",{style:{fontSize:11,opacity:.65},children:Yt[fe.hint]?Yt[fe.hint]():""})]}),_a&&T&&T.onDisk&&_a!==T.onDisk&&(0,r.jsx)("div",{style:{marginTop:8,fontSize:11.5,color:"#b45309",background:"rgba(245,158,11,0.12)",border:"1px solid rgba(245,158,11,0.35)",borderRadius:8,padding:"6px 10px",lineHeight:1.7},children:e("vcPageStale",{page:_a,disk:T.onDisk})}),T&&T.updateAvailable&&(0,r.jsxs)("div",{style:{marginTop:8,fontSize:11.5,opacity:.88},children:["\u2B06 ",e("vcOutdated")," \u2192 ",(0,r.jsx)("code",{children:T.updateCommand})]}),T&&T.checkError&&(0,r.jsxs)("div",{style:{marginTop:8,fontSize:11.5,color:"#b91c1c"},children:[e("vcCheckFail"),"\uFF1A",T.checkError]})]}),F&&F.agents&&(0,r.jsxs)("div",{className:"mc-card mc-cfg-sec",children:[(0,r.jsxs)("div",{className:"mc-cfg-sec-head",children:[(0,r.jsx)("div",{className:"mc-cfg-sec-ico",children:"\u{1F50C}"}),(0,r.jsxs)("div",{style:{minWidth:0},children:[(0,r.jsx)("div",{className:"mc-cfg-sec-title",children:e("mcpSetupStatus")}),(0,r.jsx)("div",{className:"mc-cfg-sec-sub",children:e("mcpAutoHint")})]}),(0,r.jsx)("span",{className:"mc-cfg-spacer"}),(0,r.jsx)("button",{type:"button",className:"mc-btn",style:{padding:"2px 8px",flex:"none"},onClick:Bt,children:e("mcpRefresh")})]}),Ir?(0,r.jsx)("div",{className:"mc-mcp-summary",children:Ye("mcpSummary",{agents:kn.length,servers:Sn.length,mounted:Fr})}):null,Ht.map(b=>{let ne=Array.isArray(b.servers),ae=ne?b.servers:[],Ue=b.isDsh?e("dshHostLabel"):b.label||b.name;return(0,r.jsxs)("div",{className:"mc-mcp-row",style:{opacity:b.installed?1:.55},children:[(0,r.jsxs)("div",{className:"mc-mcp-main",children:[(0,r.jsxs)("div",{className:"mc-mcp-title",children:[(0,r.jsx)("b",{children:Ue}),b.isDsh&&b.version&&(0,r.jsxs)("span",{className:"mc-mcp-badge",children:["v",b.version]}),!b.installed&&(0,r.jsx)("span",{className:"mc-mcp-badge",children:e("notInstalled")}),b.installed&&b.mcpConfigured===!1&&(0,r.jsx)("span",{className:"mc-mcp-badge",style:{color:"#f59e0b"},children:e("noMcpEntry")}),b.mcpConfigured===!0&&(0,r.jsxs)("span",{className:"mc-mcp-badge",style:{color:"#10b981"},children:["\u2713 ",e("healthy")]}),b.mcpConfigured===!0&&b.mcpMatchesCurrentNode===!1&&(0,r.jsx)("span",{className:"mc-mcp-badge",children:e("nodePathNote")}),(b.needsRepair||b.mcpNeedsRepair)&&(0,r.jsx)("span",{className:"mc-mcp-badge",style:{color:"#f59e0b"},children:e("mcpNeedsRepair")}),b.isDsh&&(0,r.jsxs)("span",{className:"mc-mcp-badge",children:[e("recallTool"),": ",b.recallTool?e("enabled"):e("disabled")]}),b.detectedOnly&&(0,r.jsx)("span",{className:"mc-mcp-badge",children:e("mcpDetectedOnly")}),b.reason&&(0,r.jsx)("span",{className:"mc-mcp-badge",style:{color:"#f59e0b"},children:b.reason})]}),ne?ae.length?(0,r.jsx)("div",{className:"mc-mcp-servers",children:ae.map(_e=>(0,r.jsx)("code",{className:_e==="memory"?"on":"",children:_e},_e))}):b.installed?(0,r.jsx)("div",{className:"mc-mcp-servers",children:(0,r.jsx)("span",{style:{fontSize:10.5,opacity:.45},children:e("mcpNoServers")})}):null:null,b.mcpPath&&(0,r.jsx)("div",{className:"mc-mcp-path",title:b.mcpPath,children:b.mcpPath})]}),(0,r.jsxs)("div",{className:"mc-mcp-actions",children:[b.hook&&(0,r.jsxs)("span",{style:{fontSize:10.5,opacity:.55},children:["hook: ",b.hook]}),!b.isDsh&&!b.detectedOnly&&b.installed&&b.mcpConfigured===!1&&(0,r.jsx)("button",{type:"button",className:"mc-btn",style:{padding:"2px 8px"},disabled:!!j,onClick:()=>Xt(b.name,"install"),children:e("installMcp")}),!b.isDsh&&!b.detectedOnly&&b.installed&&(b.needsRepair||b.mcpNeedsRepair||b.mcpMatchesCurrentNode===!1)&&(0,r.jsx)("button",{type:"button",className:"mc-btn me-on",style:{padding:"2px 8px"},disabled:!!j,onClick:()=>Xt(b.name,"install"),children:e("repairMcp")}),!b.isDsh&&!b.detectedOnly&&b.installed&&b.mcpConfigured===!0&&(0,r.jsx)("button",{type:"button",className:"mc-btn",style:{padding:"2px 8px",color:"#f87171"},disabled:!!j,onClick:()=>{window.confirm(e("uninstallConfirm"))&&Xt(b.name,"uninstall")},children:e("uninstallMcp")})]})]},b.name+(b.mcpPath||""))}),(0,r.jsx)("div",{style:{fontSize:11,opacity:.55,marginTop:6},children:e("mcpSetupHint")}),te&&(0,r.jsx)("div",{style:{fontSize:11,marginTop:6},children:(0,r.jsx)("code",{style:{padding:"2px 6px",background:"var(--dsw-alias-bg-layer-2, #f3f4f6)",borderRadius:4},children:te})})]}),p?(0,r.jsxs)("div",{className:"mc-cfg",children:[(0,r.jsxs)(Kn,{icon:"\u{1F3AF}",title:e("presetConfig"),sub:e("presetHint"),children:[(0,r.jsx)("div",{className:"mc-plan-grid",children:["A","B","C"].map(b=>(0,r.jsxs)("button",{type:"button",className:"mc-plan"+($===b?" on":""),"aria-pressed":$===b,onClick:()=>d(b),disabled:!!j,children:[(0,r.jsxs)("b",{children:[$===b?"\u2705 ":b==="A"?"\u{1F7E2} ":b==="B"?"\u{1F4B0} ":"\u2B50 ",Ke[b].label]}),(0,r.jsx)("span",{children:e("planDesc"+b)})]},b))}),$?(0,r.jsxs)("div",{style:{fontSize:11,color:"#10b981"},children:["\u2705 ",Ye("planApplied",{plan:Ke[$].label})]}):null]}),(0,r.jsx)(Kn,{icon:"\u{1F9E0}",title:e("dshMemoryConfig"),sub:e("cfgSubCore"),children:(0,r.jsxs)("div",{className:"mc-cfg-grid",children:[(0,r.jsx)(Ot,{k:"enabled",label:e("enabledLabel")}),(0,r.jsx)(Ot,{k:"autoCapture",label:e("autoCapture")}),(0,r.jsx)(Ot,{k:"autoRecall",label:e("autoRecall")}),(0,r.jsx)(dt,{k:"vaultDir",label:e("vaultDirLabel")}),(0,r.jsx)(dt,{k:"captureMinChars",label:e("captureMinChars"),hint:e("unitChars"),type:"number"}),(0,r.jsx)(dt,{k:"maxCardsPerDay",label:e("maxCardsPerDay"),hint:e("unitPerDay"),type:"number"}),(0,r.jsx)(dt,{k:"dedupThreshold",label:e("dedupThreshold"),type:"number",step:"0.01",min:"0",max:"1"}),(0,r.jsx)(dt,{k:"recallLimit",label:e("recallLimit"),type:"number"}),(0,r.jsx)(dt,{k:"recallSummaryLen",label:e("recallSummaryLen"),hint:e("unitChars"),type:"number"}),(0,r.jsx)(Ot,{k:"recallIncludeBody",label:e("recallBody")}),(0,r.jsx)(dt,{k:"secretHint",label:e("secretHint")}),(0,r.jsx)(dt,{k:"recallEmbedding",label:e("recallEmbedding")})]})}),(0,r.jsx)(Kn,{icon:"\u2B50",title:e("coreMemory"),sub:e("coreMemoryHint"),children:(0,r.jsxs)("div",{className:"mc-cfg-grid",children:[(0,r.jsx)(Ot,{k:"coreMemoryEnabled",label:e("coreMemoryEnabled")}),(0,r.jsx)(Ot,{k:"workingMemoryEnabled",label:e("workingMemoryEnabled")}),(0,r.jsx)(dt,{k:"coreMemoryLimit",label:e("coreMemoryLimit"),type:"number"}),(0,r.jsx)(dt,{k:"coreMemoryMaxChars",label:e("coreMemoryMaxChars"),type:"number"})]})}),(0,r.jsxs)(Kn,{icon:"\u{1F9E9}",title:e("skillCards"),sub:e("skillCardsHint"),children:[(0,r.jsx)("div",{className:"mc-cfg-grid",children:(0,r.jsx)(Ot,{k:"skillCardsAutoSync",label:e("skillAutoSync")})}),(0,r.jsx)("div",{style:{display:"flex",gap:10,alignItems:"center",flexWrap:"wrap"},children:(0,r.jsx)("button",{type:"button",className:"mc-btn",disabled:!!j,onClick:async()=>{H("skills");try{let b=await fetch(ee+"/skills/sync",{method:"POST"}).then(ne=>ne.json()).catch(()=>null);b&&b.ok?x(e("skillsSyncDone")+"\uFF1A"+e("skillsScanned")+" "+(b.total||0)+" \xB7 "+e("skillsCreated")+" "+(b.created||0)+" \xB7 "+e("skillsUpdated")+" "+(b.updated||0)+" \xB7 "+e("skillsPendingUpdates")+" "+(b.pendingUpdates||0)):x(b&&b.error||e("skillsSyncFail"),!1)}catch{x(e("skillsSyncFail"),!1)}finally{H("")}},children:j==="skills"?"\u23F3 "+e("syncingSkills"):"\u{1F9E9} "+e("syncSkills")})})]}),(0,r.jsxs)(Kn,{icon:"\u{1F4EC}",title:e("newsDigest"),sub:e("newsDigestHint"),children:[(0,r.jsxs)("div",{className:"mc-cfg-grid",children:[(0,r.jsx)(Ot,{k:"newsDigestEnabled",label:e("newsDigestEnabled")}),(0,r.jsx)(dt,{k:"newsDigestIntervalMinutes",label:e("newsDigestInterval"),type:"number"}),(0,r.jsx)(dt,{k:"newsDigestMaxItems",label:e("newsDigestMaxItems"),type:"number"})]}),(0,r.jsxs)("div",{style:{display:"flex",gap:10,alignItems:"center",flexWrap:"wrap"},children:[(0,r.jsx)("button",{type:"button",className:"mc-btn",disabled:!!j,onClick:async()=>{H("digest");try{let b=await fetch(ee+"/news/digest",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({})}).then(ne=>ne.json()).catch(()=>null);b&&b.ok?(Ge(b.text||""),x(b.digest&&b.digest.items&&b.digest.items.length?e("newsDigestDone"):e("newsDigestEmpty"),!0)):x(b&&b.error||e("newsDigestFail"),!1)}catch{x(e("newsDigestFail"),!1)}finally{H("")}},children:j==="digest"?"\u23F3 "+e("newsDigestBuilding"):"\u{1F4EC} "+e("newsDigestNow")}),(0,r.jsx)("span",{className:"mc-field-hint",children:e("newsDigestNowHint")})]}),ce!==null?(0,r.jsx)("pre",{className:"mc-digest-preview",children:ce||e("newsDigestEmpty")}):null]}),(0,r.jsx)(Kn,{icon:"\u{1F520}",title:e("uiLayout"),sub:e("uiLayoutHint"),children:(0,r.jsx)("div",{className:"mc-cfg-grid",children:(0,r.jsxs)("label",{className:"mc-field",children:[(0,r.jsx)("span",{className:"mc-field-label",children:e("uiLayout")}),(0,r.jsxs)("select",{value:p&&p.uiScale||"normal",onChange:b=>{let ne=b.target.value;gt("uiScale",ne);try{window.dispatchEvent(new CustomEvent("me-ui-scale",{detail:ne}))}catch{}},children:[(0,r.jsx)("option",{value:"compact",children:e("uiCompact")}),(0,r.jsx)("option",{value:"normal",children:e("uiNormal")}),(0,r.jsx)("option",{value:"large",children:e("uiLarge")})]})]})})}),(0,r.jsxs)(Kn,{icon:"\u{1F5C2}\uFE0F",title:e("vaultMulti"),sub:e("cfgSubMulti"),children:[(0,r.jsxs)("div",{style:{fontSize:11.5,opacity:.85,marginBottom:8,lineHeight:1.7},children:[e("vaultNow"),"\uFF1A",(0,r.jsx)("code",{children:y?.vaultDir||"\u2014"}),y?.vaultName?`\uFF08${y.vaultName}\uFF09`:""," \xB7 ",e("vaultSource"),"\uFF1A",e(C[y?.vaultSource]||"vaultSrcDefault"),y?.workspace?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("br",{}),e("vaultWorkspace"),"\uFF1A",(0,r.jsx)("code",{children:y.workspace})]}):null]}),w(p).map((b,ne)=>(0,r.jsxs)("div",{style:{display:"grid",gridTemplateColumns:"1fr 1.6fr 1.5fr auto",gap:6,marginBottom:6},children:[(0,r.jsx)("input",{value:b.name||"",placeholder:e("vaultNamePh"),onChange:ae=>pe(ne,"name",ae.target.value),style:Le,disabled:g}),(0,r.jsx)("input",{value:b.path||"",placeholder:e("vaultPathPh"),onChange:ae=>pe(ne,"path",ae.target.value),style:Le,disabled:g}),(0,r.jsx)("input",{value:b.match&&b.match.workspace||"",placeholder:e("vaultMatchPh"),onChange:ae=>pe(ne,"match",ae.target.value),style:Le,disabled:g}),(0,r.jsx)("button",{type:"button",className:"mc-btn",onClick:()=>S(ne),disabled:g,title:e("delete"),children:"\u2715"})]},ne)),(0,r.jsxs)("div",{style:{display:"flex",gap:10,alignItems:"center",flexWrap:"wrap",marginTop:4},children:[(0,r.jsxs)("button",{type:"button",className:"mc-btn",onClick:Re,disabled:g,children:["\uFF0B ",e("vaultAdd")]}),(0,r.jsxs)("label",{style:{display:"flex",alignItems:"center",gap:6,fontSize:12},children:[(0,r.jsx)("span",{style:{opacity:.6},children:e("vaultActive")}),(0,r.jsxs)("select",{value:p.activeVault||"",onChange:b=>gt("activeVault",b.target.value),disabled:g,style:Le,children:[(0,r.jsx)("option",{value:"",children:e("vaultActiveNone")}),w(p).filter(b=>b&&b.name).map(b=>(0,r.jsx)("option",{value:b.name,children:b.name},b.name))]})]})]})]}),(0,r.jsx)(Kn,{icon:"\u{1F4B0}",title:e("costControl"),sub:e("costHint"),children:(0,r.jsxs)("div",{className:"mc-cfg-grid",children:[(0,r.jsx)(Ot,{k:"distillEnabled",label:e("distillEnabled")}),(0,r.jsx)(Ot,{k:"dedupByLLM",label:e("dedupByLLM")}),(0,r.jsx)(dt,{k:"captureMaxTokens",label:e("captureMaxTokens"),type:"number"}),(0,r.jsx)(dt,{k:"captureTimeoutMs",label:e("captureTimeoutMs"),type:"number"}),(0,r.jsx)(dt,{k:"recallMinScore",label:e("recallMinScore"),type:"number"}),(0,r.jsx)(dt,{k:"captureCooldownMs",label:e("captureCooldownMs"),type:"number"}),Y&&Y.ok===!1&&(0,r.jsxs)("div",{style:{gridColumn:"1 / -1",fontSize:11.5,color:"#b45309",background:"rgba(245,158,11,0.12)",border:"1px solid rgba(245,158,11,0.35)",borderRadius:8,padding:"6px 10px",lineHeight:1.6},children:["\u26A0 ",Ye("routeListFail",{err:Y.error||"\u672A\u77E5\u539F\u56E0"})]}),Y&&Y.providers&&Y.providers.length?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("label",{className:"mc-field",children:[(0,r.jsx)("span",{className:"mc-field-label",children:e("captureProvider")}),(0,r.jsxs)("select",{value:p.captureProvider||"",onChange:b=>{gt("captureProvider",b.target.value),gt("captureModel","")},children:[(0,r.jsx)("option",{value:"",children:e("routeAuto")}),Y.providers.map(b=>(0,r.jsx)("option",{value:b.id,children:b.label},b.id))]})]}),(0,r.jsxs)("label",{className:"mc-field",children:[(0,r.jsx)("span",{className:"mc-field-label",children:e("captureModel")}),(0,r.jsxs)("select",{value:p.captureModel||"",onChange:b=>gt("captureModel",b.target.value),children:[(0,r.jsx)("option",{value:"",children:e("routeAuto")}),((Y.providers.find(b=>b.id===p.captureProvider)||{}).models||[]).map(b=>(0,r.jsx)("option",{value:b.id,children:b.label||b.id},b.id))]})]})]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(dt,{k:"captureProvider",label:e("captureProvider")}),(0,r.jsx)(dt,{k:"captureModel",label:e("captureModel")})]}),(0,r.jsx)(Ot,{k:"captureFollowSession",label:e("captureFollowSession")}),(0,r.jsx)(Ot,{k:"captureFirstOnly",label:e("captureFirstOnly")}),(0,r.jsx)(dt,{k:"sessionBudgetChars",label:e("sessionBudgetChars"),type:"number"}),(0,r.jsx)("div",{style:{display:"flex",alignItems:"flex-end"},children:(0,r.jsx)("button",{type:"button",className:"mc-btn",disabled:!!j,onClick:async()=>{H("llmtest");try{let b=await fetch(ee+"/llm-test",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:p.captureProvider||"",model:p.captureModel||"",firstOnly:p.captureFirstOnly===!0})}).then(ne=>ne.json());b&&b.ok?x(e("llmTestOk")+"\uFF1A"+b.route.provider+(b.route.model?"/"+b.route.model:"")+" \xB7 "+b.ms+"ms \xB7 "+e("llmCandidates")+" "+b.candidates):x(e("llmTestFail")+"\uFF1A"+(b&&(b.failure?b.failure.code+" "+b.failure.message:b.error)||"?"),!1)}catch(b){x(e("llmTestFail")+"\uFF1A"+String(b&&b.message||b),!1)}finally{H("")}},children:j==="llmtest"?e("exporting"):"\u{1F50C} "+e("llmTest")})})]})}),(0,r.jsx)(Kn,{icon:"\u{1F6E1}\uFE0F",title:e("auditConfig"),sub:e("auditHint"),children:(0,r.jsxs)("div",{className:"mc-cfg-grid",children:[(0,r.jsxs)("label",{className:"mc-field",children:[(0,r.jsx)("span",{className:"mc-field-label",children:e("auditMode")}),(0,r.jsxs)("select",{value:p.auditMode??"all",onChange:b=>gt("auditMode",b.target.value),children:[(0,r.jsx)("option",{value:"all",children:e("auditAll")}),(0,r.jsx)("option",{value:"none",children:e("auditNone")})]})]}),(0,r.jsx)(Vf,{label:e("auditExemptAgents"),value:p.auditExemptAgents||[],options:[{value:"__all__",label:e("allExempt")},...(F?.agents||[]).filter(b=>!b.isDsh).map(b=>({value:b.name,label:b.name}))],onChange:b=>gt("auditExemptAgents",b)}),(0,r.jsx)(Vf,{label:e("auditExemptKinds"),value:p.auditExemptKinds||[],options:[{value:"__all__",label:e("allExempt")},...Cl.filter(b=>b!=="all"&&b!=="core"&&b!=="skill").map(b=>({value:b,label:e(Ct[b])}))],onChange:b=>gt("auditExemptKinds",b)}),(0,r.jsx)(dt,{k:"recycleRetentionDays",label:e("recycleDays"),hint:e("unitDays"),type:"number"})]})}),(0,r.jsx)(Kn,{icon:"\u{1F6E0}",title:e("serviceConfig"),sub:e("cfgSubService"),children:(0,r.jsxs)("div",{className:"mc-cfg-grid",children:[(0,r.jsx)(Ot,{k:"autoWeb",label:e("autoWeb")}),(0,r.jsxs)("label",{className:"mc-field",children:[(0,r.jsx)("span",{className:"mc-field-label",children:e("autoWebMode")}),(0,r.jsxs)("select",{value:p.autoWebMode??"init",onChange:b=>gt("autoWebMode",b.target.value),children:[(0,r.jsx)("option",{value:"init",children:e("modeInit")}),(0,r.jsx)("option",{value:"interval",children:e("modeInterval")}),(0,r.jsx)("option",{value:"manual",children:e("modeManual")})]})]}),(0,r.jsx)(dt,{k:"webPort",label:e("webPort"),type:"number"}),(0,r.jsx)(dt,{k:"webCheckIntervalMs",label:e("webCheckIntervalMs"),type:"number"}),(0,r.jsx)(dt,{k:"webMaxRestart",label:e("webMaxRestart"),hint:e("unitTimes"),type:"number"}),(0,r.jsx)(Ot,{k:"watchdogAutoSpawn",label:e("watchdogAutoSpawn")}),(0,r.jsx)(Ot,{k:"autoRestartOnDrift",label:e("autoRestartOnDrift")}),(0,r.jsx)(Ot,{k:"autoMcpSetup",label:e("autoMcpSetup")})]})}),(0,r.jsxs)("div",{className:"mc-cfg-actions",children:[M?(0,r.jsx)("span",{className:"mc-cfg-dirty",children:e("cfgDirty")}):(0,r.jsxs)("span",{className:"mc-cfg-clean",children:["\u2713 ",e("cfgClean")]}),(0,r.jsx)("span",{className:"mc-cfg-spacer"}),j==="save"&&(0,r.jsxs)("span",{style:{fontSize:11.5,opacity:.75},children:["\u23F3 ",e("saving")]}),se&&j!=="save"&&(0,r.jsxs)("span",{style:{fontSize:11.5,color:"#10b981"},children:["\u2705 ",se]}),I&&j!=="save"&&(0,r.jsxs)("span",{style:{fontSize:11.5,color:"#b91c1c"},children:["\u26A0 ",I]}),(0,r.jsx)("button",{type:"button",className:"mc-btn",onClick:Se,disabled:!!j,children:e("reset")}),(0,r.jsx)("button",{type:"button",className:"mc-btn me-on",onClick:g?()=>x(e("readonlyTitle")+"\uFF1A"+e("readonlyBody"),!1):qn,disabled:j==="save",title:e(g?"readonlyBody":"saveConfig"),children:j==="save"?"\u23F3 "+e("saving"):g?"\u{1F512} "+e("readonlyBtn"):"\u{1F4BE} "+e("saveConfig")})]})]}):(0,r.jsx)("div",{style:{fontSize:12,opacity:.6},children:e("loading")})]})]})})}function dv({t:e,onReload:t,version:n}){let[a,o]=(0,m.useState)([]),[i,l]=(0,m.useState)([]),[s,c]=(0,m.useState)("all"),[u,p]=(0,m.useState)("all"),[h,g]=(0,m.useState)(""),[k,L]=(0,m.useState)(""),[R,A]=(0,m.useState)(new Set),[v,f]=(0,m.useState)(null),[y,P]=(0,m.useState)(""),[F,z]=(0,m.useState)(null),[I,_]=(0,m.useState)("pending"),j=(M,V=!0)=>{z({msg:M,ok:V}),setTimeout(()=>z(null),3e3)},H=[...new Set([...a,...i].map(M=>M.submittedBy).filter(Boolean))],se=(0,m.useCallback)(async()=>{try{let M=await fetch(`${ee}/audit/list`).then(V=>V.json());M.ok&&(o(M.pending||[]),l(M.rejected||[]),A(new Set),T({}))}catch{}},[]);(0,m.useEffect)(()=>{se()},[n,se]);let he=(I==="pending"?a:i).filter(M=>{if(!ed(M,k)||s!=="all"&&M.kind!==s||u!=="all"&&Pr(M.submittedBy)!==u)return!1;if(h){let V=hl(M.created);if(V&&V!==h)return!1}return!0}),ce=(0,m.useMemo)(()=>{let M=I==="pending"?a:i,V={all:0};return M.forEach(de=>{if(ed(de,k)&&!(u!=="all"&&Pr(de.submittedBy)!==u)){if(h){let Ie=hl(de.created);if(Ie&&Ie!==h)return}V.all++,V[de.kind||"other"]=(V[de.kind||"other"]||0)+1}}),V},[a,i,I,u,h,k]),Ge=M=>A(V=>{let de=new Set(V);return de.has(M)?de.delete(M):de.add(M),de}),Y=async(M,V,de={})=>{let Ie=V||[...R];if(!Ie.length){j(e("noSelection"),!1);return}P("apply");let Be=M==="approved"?de.kind==="core"?e("approveCore"):e("toastApproved"):e(M==="rejected"?"toastRejected":"toastCardDeleted");try{let me=0;for(let x of Ie){let J=M==="approved"?"audit/approve":M==="rejected"?"audit/reject":"delete";try{let G=M==="approved"&&de.kind?{path:x,kind:de.kind}:null;(await fetch(ee+"/"+J+(G?"":"?path="+encodeURIComponent(x)+(M==="delete"?"&permanent=0":"")),G?{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(G)}:void 0)).ok||me++}catch{me++}}await se(),t&&t(),me?j(e("toastFailed")+"\uFF08"+me+"/"+Ie.length+"\uFF09",!1):j(Be+" "+Ie.length+" \u5F20")}catch(me){j(e("toastFailed")+": "+String(me&&me.message||me),!1)}finally{P("")}},[je,T]=(0,m.useState)({}),Ae=M=>je[M]||{},re=[...R],te=he.find(M=>M.path===v)||he[0]||null,Ve=te?Ae(te.path):{};(0,m.useEffect)(()=>{let M=te;if(!M||je[M.path])return;let V=!0,de=M.path;T(Be=>({...Be,[de]:{loading:!0}}));let Ie=M.status||(I==="pending"?"pending":"rejected");return fetch(`${ee}/card?path=${encodeURIComponent(de)}&status=${Ie}`).then(Be=>Be.json()).then(Be=>{V&&(Be&&Be.ok?T(me=>({...me,[de]:{text:Be.text||""}})):T(me=>({...me,[de]:{error:Be&&Be.error||"HTTP"}})))}).catch(Be=>{V&&T(me=>({...me,[de]:{error:String(Be&&Be.message||Be)}}))}),()=>{V=!1}},[te&&te.path,I]);let Fe=async()=>{if(window.confirm(e("reclassify")+"\uFF1F\u53EA\u5904\u7406\u81EA\u52A8\u6C89\u6DC0\u7684\u5F85\u5BA1\u539F\u6587\u5361\uFF0C\u4E0D\u6539\u4EBA\u5DE5\u5361\u3002")){P("reclassify");try{let M=await fetch(ee+"/reclassify").then(V=>V.json());M&&M.ok?j(e("reclassify")+"\uFF1A"+M.changed+" / "+M.scanned):j(e("toastFailed")+": "+(M&&M.error||"HTTP"),!1),await se(),t&&t()}catch(M){j(e("toastFailed")+": "+String(M&&M.message||M),!1)}finally{P("")}}},le=()=>A(new Set),$=M=>{_(M),le()},B=["all",...Cl.filter(M=>M!=="all")];return(0,r.jsxs)("div",{className:"mc-admin",style:{display:"flex",flexDirection:"column",overflow:"auto",flex:1,minHeight:0},children:[(0,r.jsx)("style",{children:xn}),(0,r.jsxs)("div",{style:{overflow:"auto",padding:4},children:[(0,r.jsx)(Nl,{toast:F}),(0,r.jsxs)("div",{className:"mc-v5-pagehead mc-v5-audithead",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{className:"mc-v5-eyebrow",children:"REVIEW INBOX"}),(0,r.jsx)("h1",{children:e("tabAudit")}),(0,r.jsx)("p",{children:e("auditInboxSub")})]}),(0,r.jsxs)("span",{className:"mc-v5-pagecount",children:[a.length," \u5F20"]}),(0,r.jsxs)("span",{className:"mc-v5-audit-trust",children:["\u{1F6E1} ",e("auditUndo")]})]}),(0,r.jsxs)("div",{className:"me-audit",children:[(0,r.jsxs)("div",{className:"mc-card mc-audit-filtercard",style:{marginBottom:10,display:"flex",flexDirection:"column",gap:8},children:[(0,r.jsxs)("div",{className:"me-audit-filter-row",children:[(0,r.jsxs)("b",{style:{fontSize:12},children:["\u{1F6E1}\uFE0F ",e("tabAudit")]}),(0,r.jsx)("input",{type:"text",value:k,onChange:M=>{L(M.target.value),le(),f(null)},placeholder:e("auditSearchPlaceholder"),"aria-label":e("auditSearchPlaceholder"),style:{flex:"1 1 220px",minWidth:160,padding:"5px 9px",borderRadius:8,background:"var(--dsw-alias-bg-layer-1, #fff)",color:"inherit",border:"1px solid var(--dsw-alias-border-l2, #d1d5db)",fontSize:12}}),k&&(0,r.jsx)("button",{type:"button",className:"mc-btn",style:{padding:"2px 8px"},onClick:()=>{L(""),le(),f(null)},title:e("clearFilter"),children:"\u2715"}),(0,r.jsxs)("select",{value:u,onChange:M=>{p(M.target.value),le()},style:{fontSize:12,padding:"4px 8px",borderRadius:8,background:"var(--dsw-alias-bg-layer-1, #fff)",color:"inherit",border:"1px solid var(--dsw-alias-border-l2, #d1d5db)"},children:[(0,r.jsx)("option",{value:"all",children:e("allAgents")}),qf(H).map(M=>(0,r.jsx)("option",{value:M,children:M},M))]}),(0,r.jsx)("input",{type:"date",value:h,onChange:M=>{g(M.target.value),le()},style:{fontSize:12,padding:"4px 8px",borderRadius:8,background:"var(--dsw-alias-bg-layer-1, #fff)",color:"inherit",border:"1px solid var(--dsw-alias-border-l2, #d1d5db)"}})]}),(0,r.jsxs)("div",{className:"me-audit-types-top",children:[(0,r.jsx)("span",{className:"me-audit-types-label",children:e("auditTypeLabel")}),B.map(M=>{let V=M==="all"?"var(--dsw-alias-label-secondary, #9ca3af)":qt[M]||"#6B7280";return(0,r.jsxs)("button",{type:"button",className:`me-audit-kind${s===M?" active":""}`,onClick:()=>{c(M),le()},children:[(0,r.jsx)("span",{className:"me-audit-kind-dot",style:{background:V}}),(0,r.jsx)("span",{className:"me-audit-kind-name",children:e(M==="all"?"all":Ct[M])}),(0,r.jsx)("span",{className:"me-audit-kind-count",children:ce[M]||0})]},M)})]})]}),(0,r.jsxs)("div",{className:"me-audit-main",children:[(0,r.jsxs)("div",{className:"me-audit-queue",children:[(0,r.jsxs)("div",{className:"mc-card mc-audit-batchcard",style:{marginBottom:10,display:"flex",gap:10,alignItems:"center",flexWrap:"wrap"},children:[(0,r.jsxs)("button",{type:"button",className:`mc-btn${I==="pending"?" me-on":""}`,onClick:()=>$("pending"),children:[e("pending"),"\uFF08",a.length,"\uFF09"]}),(0,r.jsxs)("button",{type:"button",className:`mc-btn${I==="rejected"?" me-on":""}`,onClick:()=>$("rejected"),children:[e("rejected"),"\uFF08",i.length,"\uFF09"]}),(0,r.jsx)("div",{style:{flex:1}}),(0,r.jsxs)("label",{style:{fontSize:12},children:[(0,r.jsx)("input",{type:"checkbox",checked:he.length>0&&re.length===he.length,onChange:M=>{M.target.checked?A(new Set(he.map(V=>V.path))):A(new Set)}})," ",e("selectAll"),"\uFF08",he.length,"\uFF09"]}),(0,r.jsxs)("span",{style:{fontSize:11,opacity:.65},children:[e("auditSelected")," ",re.length]}),I==="pending"&&(0,r.jsxs)("button",{type:"button",className:"mc-btn",disabled:!!y,onClick:Fe,children:["\u{1F527} ",e("reclassify")]}),(0,r.jsxs)("button",{type:"button",className:"mc-btn me-on",disabled:!re.length||!!y,onClick:()=>Y("approved"),children:["\u2713 ",e(I==="rejected"?"restore":"approve")]}),I==="pending"?(0,r.jsxs)("button",{type:"button",className:"mc-btn",style:{color:"#f87171"},disabled:!re.length||!!y,onClick:()=>Y("rejected"),children:["\u2715 ",e("reject")]}):(0,r.jsxs)("button",{type:"button",className:"mc-btn",style:{color:"#f87171"},disabled:!re.length||!!y,onClick:()=>{window.confirm(e("recycleDeleteConfirm"))&&Y("delete")},children:["\u{1F5D1} ",e("restoreDelete")]}),re.length>0&&(0,r.jsx)("button",{type:"button",className:"mc-btn",onClick:le,children:e("auditClearSelection")})]}),he.length?(0,r.jsx)("div",{className:"mc-card",style:{display:"flex",flexDirection:"column"},children:he.map(M=>{let V=qt[M.kind]||"#6B7280";return(0,r.jsx)("div",{className:`me-audit-row${M.kind==="core"?" core":""}${te&&te.path===M.path?" active":""}`,children:(0,r.jsxs)("div",{className:"me-audit-row-main",onClick:()=>f(M.path),children:[(0,r.jsx)("input",{type:"checkbox",checked:R.has(M.path),onClick:de=>de.stopPropagation(),onChange:()=>Ge(M.path)}),(0,r.jsx)("span",{className:"me-audit-row-tile",style:{color:V,borderColor:V+"38",background:V+"18"},children:Ar[M.kind]||"\u{1F4CE}"}),(0,r.jsxs)("div",{className:"me-audit-row-copy",children:[(0,r.jsxs)("div",{className:"me-audit-row-top",children:[(0,r.jsx)("span",{className:`me-audit-row-kind${M.kind==="core"?" core":""}`,children:M.kind==="core"?"\u2B50 "+e("kindCore"):e(Ct[M.kind]||"kindKnowledge")}),M.revision&&(0,r.jsxs)("span",{className:"me-audit-row-state",style:{color:"#a78bfa",filter:"saturate(1.2)"},children:["\u270F\uFE0F ",e("auditRevision")]}),(0,r.jsx)("span",{className:`me-audit-row-state ${I==="pending"?"pending":"rejected"}`,children:I==="pending"?"\u23F3 "+e("statusPending"):"\u26D4 "+e("statusRejected")}),(0,r.jsx)("span",{className:"me-audit-row-time",children:td(M.created)||"-"})]}),(0,r.jsx)("button",{type:"button",className:"me-audit-row-title",title:M.title,onClick:()=>f(M.path),children:M.title}),M.revision&&(0,r.jsxs)("p",{className:"me-audit-row-reason",style:{color:"#a78bfa"},children:["\u270F\uFE0F ",e("auditRevisionFrom"),"\uFF1A",M.revision.targetTitle||M.revision.targetPath]}),(M.reason||M.summary)&&(0,r.jsx)("p",{className:"me-audit-row-reason",children:M.reason||M.summary}),(0,r.jsxs)("div",{className:"me-audit-row-meta",children:[(0,r.jsxs)("span",{children:["\u{1F916} ",Pr(M.submittedBy)]}),(Array.isArray(M.tags)?M.tags:[]).slice(0,3).map(de=>(0,r.jsxs)("span",{children:["#",de]},de))]})]}),(0,r.jsx)("div",{className:"me-audit-row-actions",onClick:de=>de.stopPropagation(),children:I==="pending"?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("button",{type:"button",className:"mc-btn",style:{padding:"2px 8px"},onClick:()=>Y("approved",[M.path]),children:"\u2713"}),(0,r.jsx)("button",{type:"button",className:"mc-btn",style:{padding:"2px 8px",color:"#f87171"},onClick:()=>Y("rejected",[M.path]),children:"\u2715"})]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("button",{type:"button",className:"mc-btn",style:{padding:"2px 8px"},title:e("restore"),onClick:()=>Y("approved",[M.path]),children:"\u2713"}),(0,r.jsx)("button",{type:"button",className:"mc-btn",style:{padding:"2px 8px",color:"#f87171"},title:e("restoreDelete"),onClick:()=>{window.confirm(e("recycleDeleteConfirm"))&&Y("delete",[M.path])},children:"\u{1F5D1}"})]})})]})},M.path)})}):(0,r.jsx)("div",{style:{opacity:.6,fontSize:12,padding:20,textAlign:"center"},children:e(k?"auditNoMatch":"noAuditItems")})]}),(0,r.jsx)("aside",{className:"me-audit-preview",children:te?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"me-audit-preview-head",children:[(0,r.jsxs)("div",{className:"me-audit-preview-top",children:[(0,r.jsxs)("span",{className:"me-audit-kind-badge",style:{color:qt[te.kind]||"#6B7280",borderColor:(qt[te.kind]||"#6B7280")+"59",background:(qt[te.kind]||"#6B7280")+"1a"},children:[Ar[te.kind]||"\u{1F4CE}"," ",e(Ct[te.kind]||"kindKnowledge")]}),(0,r.jsx)("span",{className:`md-chip ${I==="pending"?"md-chip-st-warn":"md-chip-st-bad"}`,children:I==="pending"?te.kind==="core"?"\u2B50 "+e("coreSuggested"):"\u23F3 "+e("statusPending"):"\u26D4 "+e("statusRejected")}),(0,r.jsx)("span",{className:"spacer",style:{flex:1}}),(0,r.jsx)("span",{style:{fontSize:10,opacity:.55},children:td(te.created)})]}),(0,r.jsx)("h3",{children:te.title}),te.revision&&(0,r.jsxs)("div",{className:"me-audit-preview-reason",style:{color:"#a78bfa",marginBottom:6},children:["\u270F\uFE0F ",e("auditRevisionFrom"),"\uFF1A",te.revision.targetTitle||te.revision.targetPath]}),(0,r.jsxs)("div",{className:"me-audit-preview-meta",children:[(0,r.jsxs)("span",{children:["\u{1F916} ",Pr(te.submittedBy)]}),!!te.reason&&(0,r.jsxs)("span",{className:"me-audit-preview-reason",children:["\u2691 ",te.reason]}),(Array.isArray(te.tags)?te.tags:[]).slice(0,5).map(M=>(0,r.jsxs)("span",{children:["#",M]},M))]})]}),(0,r.jsxs)("div",{className:"me-audit-preview-body",children:[Ve.loading&&(0,r.jsx)("div",{className:"me-audit-preview-empty",children:e("loading")}),Ve.error&&(0,r.jsxs)("div",{className:"me-audit-preview-empty",style:{color:"#f87171"},children:["\u26A0 ",e("auditBodyFail"),"\uFF1A",Ve.error]}),Ve.text!=null?(0,r.jsx)("div",{className:"md-doc",dangerouslySetInnerHTML:{__html:_o(vd(ml(Ve.text).body,te.title))}}):!Ve.loading&&(0,r.jsx)("p",{className:"me-audit-preview-summary",children:te.summary||""})]}),(0,r.jsxs)("div",{className:"me-audit-preview-actions",children:[(0,r.jsxs)("button",{type:"button",className:"mc-btn me-on",disabled:!!y,onClick:()=>Y("approved",[te.path]),children:["\u2713 ",I==="rejected"?e("restore"):te.kind==="core"?e("approveCore"):e("approve")]}),I==="pending"&&te.kind!=="core"&&!te.revision&&(0,r.jsxs)("button",{type:"button",className:"mc-btn me-core-btn",disabled:!!y,onClick:()=>Y("approved",[te.path],{kind:"core"}),children:["\u2B50 ",e("approveAndCore")]}),I==="pending"&&te.kind==="core"&&(0,r.jsx)("button",{type:"button",className:"mc-btn",disabled:!!y,onClick:()=>Y("approved",[te.path],{kind:"knowledge"}),children:e("approveAsNormal")}),I==="pending"?(0,r.jsxs)("button",{type:"button",className:"mc-btn",style:{color:"#f87171"},disabled:!!y,onClick:()=>Y("rejected",[te.path]),children:["\u2715 ",e("reject")]}):(0,r.jsxs)("button",{type:"button",className:"mc-btn",style:{color:"#f87171"},disabled:!!y,onClick:()=>{window.confirm(e("recycleDeleteConfirm"))&&Y("delete",[te.path])},children:["\u{1F5D1} ",e("restoreDelete")]})]})]}):(0,r.jsx)("div",{className:"me-audit-preview-empty",children:e(k?"auditNoMatch":"noAuditItems")})})]})]})]})]})}var uv={title:"",date:"",category:"",source:"",url:"",tags:"",pinned:!1,body:""};function ud(){let e=new Date;return e.getFullYear()+"-"+String(e.getMonth()+1).padStart(2,"0")+"-"+String(e.getDate()).padStart(2,"0")}function pd(e){try{let t=new URL(String(e||""));return t.protocol==="http:"||t.protocol==="https:"?t.href:""}catch{return""}}function pv(e,t){let n=String(e||"").slice(0,10);if(!n)return t("newsEarlier");if(n===ud())return t("newsToday");let a=new Date;a.setDate(a.getDate()-1);let o=a.getFullYear()+"-"+String(a.getMonth()+1).padStart(2,"0")+"-"+String(a.getDate()).padStart(2,"0");return n===o?t("newsYesterday"):n}function Bf({item:e,t,active:n,onOpen:a,onEdit:o,onToggleRead:i,onDelete:l}){return(0,r.jsxs)("article",{className:"mc-news-card"+(e.pinned?" pinned":"")+(e.read?"":" unread")+(n?" active":""),onClick:()=>a(e),children:[(0,r.jsxs)("div",{className:"mc-news-top",children:[!e.read&&(0,r.jsx)("span",{className:"mc-news-dot",title:t("newsUnread")}),(0,r.jsx)("span",{className:"mc-news-cat",children:e.category||t("newsCategoryField")}),e.pinned&&(0,r.jsxs)("span",{className:"mc-news-pin",children:["\u{1F4CC} ",t("newsPinned")]}),(0,r.jsx)("span",{className:"mc-news-time",children:e.date||(e.updated||"").slice(0,10)})]}),(0,r.jsx)("h3",{className:"mc-news-title",children:e.title}),e.excerpt&&(0,r.jsx)("p",{className:"mc-news-excerpt",children:e.excerpt}),(0,r.jsxs)("div",{className:"mc-news-meta",children:[e.source&&(0,r.jsx)("span",{children:e.source}),(e.tags||[]).slice(0,3).map(s=>(0,r.jsxs)("span",{children:["#",s]},s)),(0,r.jsx)("span",{style:{marginLeft:"auto",opacity:.72},children:e.read?t("newsRead"):t("newsUnread")}),(0,r.jsxs)("span",{className:"mc-news-actions",onClick:s=>s.stopPropagation(),children:[(0,r.jsx)("button",{type:"button",className:"mc-btn",onClick:()=>i(e),children:e.read?t("newsMarkUnread"):t("newsMarkRead")}),(0,r.jsx)("button",{type:"button",className:"mc-btn",onClick:()=>o(e),children:t("newsEdit")}),(0,r.jsx)("button",{type:"button",className:"mc-btn",style:{color:"#f87171"},onClick:()=>l(e),title:t("delete"),children:"\u2715"})]})]})]})}function mv(e,t){let n=Date.now()-Number(e||0);if(!Number.isFinite(n)||n<0)return"";let a=Math.floor(n/6e4);if(a<1)return t("newsJustNow");if(a<60)return a+" "+t("newsMinutesAgo");let o=Math.floor(a/60);if(o<24)return o+" "+t("newsHoursAgo");let i=Math.floor(o/24);return i<7?i+" "+t("newsDaysAgo"):new Date(Number(e)).toISOString().slice(0,10)}var ta="me.news.lastQuery",Ho="me.news.prefs",Qf="me.news.view",fv={model:"\u6A21",product:"\u54C1",research:"\u7814",opensource:"\u6E90",industry:"\u4E1A",policy:"\u7B56",other:"\u8BAF"},gv=new Set(["the","a","an","of","to","for","and","in","on","is","are","with","how","why","new","its","it","as","at","by","from"]);function yd(e,t){try{let n=localStorage.getItem(e);if(n===null)return t;try{return JSON.parse(n)}catch{return n}}catch{return t}}function ir(e,t){try{localStorage.setItem(e,JSON.stringify(t))}catch{}}function ld(e,t=""){let n=yd(e,t);return typeof n=="string"?n:t}function Hf(){let e=yd(Qf,null);return e&&typeof e=="object"?e:{}}function md(){return{types:{},sources:{},terms:{},opens:0,updatedAt:0}}function hv(){let e=yd(Ho,null);return!e||typeof e!="object"?md():{...md(),...e,types:e.types||{},sources:e.sources||{},terms:e.terms||{}}}function Xf(e){let t=[];for(let n of String(e||"").toLowerCase().split(/[^0-9a-z\u4e00-\u9fff]+/))!n||n.length<2||gv.has(n)||t.push(n);return t}function xl(e,t,n){t&&(e[t]=Math.min(60,(Number(e[t])||0)+n))}function yv(e,t,n){let a={...n,types:{...n.types},sources:{...n.sources},terms:{...n.terms}};return e&&(xl(a.types,e.type,t),xl(a.sources,e.sourceId,t),Xf(e.title).slice(0,6).forEach(o=>xl(a.terms,o,1)),a.opens=(Number(n.opens)||0)+1),a.updatedAt=Date.now(),a}function Wf(e,t){let n={...e,terms:{...e.terms}};return Xf(t).forEach(a=>xl(n.terms,a,3)),n.updatedAt=Date.now(),n}function vv(e){let t=0;for(let n of String(e||""))t=(t*31+n.charCodeAt(0))%360;return t}function bv(e){let t=String(e||"\u65B0\u95FB");if(/^[A-Za-z]/.test(t)){let n=t.split(/\s+/);return(n.length>1?n[0][0]+n[1][0]:t.slice(0,2)).toUpperCase()}return t.slice(0,1)}var wv=/(帮我|请|麻烦|推送|订阅|关注|跟踪|每天|每日|定时|最新|热门|看看|给我|关于|相关)/;function xv(e){let t=String(e||"").trim();return t?wv.test(t)||t.split(/\s+/).length>=4:!1}function Uf(e,t,n){let a=Math.max(0,(Date.now()-Number(e.publishedAt||0))/36e5),o=100-Math.min(60,a*.28);o+=(Number(t.types[e.type])||0)*1.6,o+=(Number(t.sources[e.sourceId])||0)*1.1;let i=(e.title+" "+(e.summary||"")).toLowerCase();for(let[s,c]of Object.entries(t.terms))i.includes(s)&&(o+=Math.min(8,Number(c)||0)*.9);let l=String(n||"").trim().toLowerCase();if(l)for(let s of l.split(/\s+/).filter(Boolean))String(e.title||"").toLowerCase().includes(s)?o+=16:i.includes(s)&&(o+=8);return e.followId&&(o+=10),o}function kv({t:e,mode:t,version:n}){let[a,o]=(0,m.useState)([]),[i,l]=(0,m.useState)([]),[s,c]=(0,m.useState)(!0),[u,p]=(0,m.useState)(0),[h,g]=(0,m.useState)([]),[k,L]=(0,m.useState)(""),[R,A]=(0,m.useState)(null),[v,f]=(0,m.useState)(()=>ld(ta)),[y,P]=(0,m.useState)(()=>ld(ta).trim()),[F,z]=(0,m.useState)(""),[I,_]=(0,m.useState)(()=>{let S=Hf();return typeof S.lang=="string"?S.lang:"zh"}),[j,H]=(0,m.useState)(()=>Hf().sort==="time"?"time":"rec"),[se,he]=(0,m.useState)(hv),[ce,Ge]=(0,m.useState)(!1),[Y,je]=(0,m.useState)([]),[T,Ae]=(0,m.useState)([]),[re,te]=(0,m.useState)(null),[Ve,Fe]=(0,m.useState)(!1),[le,$]=(0,m.useState)(""),B=(S,D=!0)=>{A({msg:S,ok:D}),setTimeout(()=>A(null),3200)},M=(0,m.useRef)(!1),V=(0,m.useRef)(ld(ta).trim());(0,m.useEffect)(()=>{let S=setTimeout(()=>{let D=v.trim();P(D),M.current&&(ir(ta,D),!(!D||D===V.current)&&(V.current=D,he(Le=>{let Ke=Wf(Le,D);return ir(Ho,Ke),Ke})))},260);return()=>clearTimeout(S)},[v]),(0,m.useEffect)(()=>{ir(Qf,{lang:I,sort:j})},[I,j]),(0,m.useEffect)(()=>{Ge(!0);let S=setTimeout(()=>Ge(!1),170);return()=>clearTimeout(S)},[F,I,y,j]);let de=(0,m.useCallback)(async()=>{c(!0),L("");try{let S=new URLSearchParams({period:t==="month"?"month":"today",lang:"all"});S.set("follows","1");let D=await fetch(ee+"/news/feed?"+S.toString()).then(Le=>Le.json());if(!D||!D.ok)throw new Error(D&&D.error||e("newsFeedError"));o(D.items||[]),Array.isArray(D.follows)&&je(D.follows),l(D.types||[]),p(Number(D.fetchedAt)||0),g(D.errors||[])}catch(S){let D=S&&S.message||e("newsFeedError");L(D),B(D,!1)}finally{c(!1)}},[t,e]);(0,m.useEffect)(()=>{de()},[n,de]);let Ie=(0,m.useCallback)(async()=>{try{let S=await fetch(ee+"/news/follows").then(D=>D.json());S&&S.ok&&(je(S.follows||[]),Ae(S.domains||[]))}catch{}},[]);(0,m.useEffect)(()=>{Ie()},[n,Ie]);let Be=async()=>{c(!0);try{let S=await fetch(ee+"/news/feed/refresh",{method:"POST"}).then(D=>D.json());if(!S||!S.ok)throw new Error(S&&S.error||e("newsFeedError"));await de(),B(e("newsUpdatedAt")+" "+new Date().toLocaleTimeString())}catch(S){let D=S&&S.message||e("newsFeedError");L(D),B(D,!1),c(!1)}},me=S=>(i.find(D=>D.id===S)||{}).label||e("all"),x=(a||[]).filter(S=>!I||S.lang===I||S.followId),J={};for(let S of x)J[S.type]=(J[S.type]||0)+1;let G=F?x.filter(S=>S.type===F):x,ge=xv(y);if(y&&!ge){let S=y.toLowerCase().split(/\s+/).filter(Boolean);G=G.filter(D=>{let Le=[D.title,D.summary,D.source,me(D.type)].join(" ").toLowerCase();return S.every(Ke=>Le.includes(Ke))})}le&&(G=G.filter(S=>S.followId===le));let Ee=S=>(Number(S.points)||0)+(Number(S.comments)||0)*2,ke=t==="month",we=ke?G.filter(S=>(S.points||0)>0):[],K=ke&&we.length>0,ue=new Map;K&&we.slice().sort((S,D)=>(D.points||0)-(S.points||0)||(D.comments||0)-(S.comments||0)).forEach((S,D)=>ue.set(S.id||S.url||S.title,D+1)),G=G.slice().sort((S,D)=>j==="time"?(D.publishedAt||0)-(S.publishedAt||0):ke&&K?(D.points||0)-(S.points||0)||(D.comments||0)-(S.comments||0)||(D.publishedAt||0)-(S.publishedAt||0):Uf(D,se,y)-Uf(S,se,y));let Me=Object.keys(se.types||{}).sort((S,D)=>(se.types[D]||0)-(se.types[S]||0)).slice(0,3),fe=Object.keys(se.terms||{}).sort((S,D)=>(se.terms[D]||0)-(se.terms[S]||0)).slice(0,4),Nt=!!y||Me.length>0||fe.length>0,Yt=S=>{M.current=!0;let D=String(S??"").trim();P(D),ir(ta,D),!(!D||D===V.current)&&(V.current=D,he(Le=>{let Ke=Wf(Le,D);return ir(Ho,Ke),Ke}))},Ye=()=>{M.current=!1,V.current="",z(""),_(""),f(""),P(""),ir(ta,"")},jt=S=>he(D=>{let Le=yv(S,4,D);return ir(Ho,Le),Le}),gt=()=>{let S=md();ir(Ho,S),ir(ta,""),V.current="",M.current=!1,he(S),f(""),P("")},Qt=async()=>{let S=v.trim();if(!S){B(e("newsFollowNoQuery"),!1);return}Fe(!0);try{let D=await fetch(ee+"/news/follows/preview",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({text:S})}).then(Le=>Le.json());if(!D||!D.ok)throw new Error(D&&D.error||e("newsFollowFail"));Ae(D.domainsEnum||T),te({text:S,query:D.parsed.query,label:D.parsed.label,domains:D.parsed.domains,sourceIds:D.parsed.sourceIds||[],notes:D.parsed.notes||[]})}catch(D){B(String(D&&D.message||D),!1)}finally{Fe(!1)}},Qe=(S,D)=>te(Le=>{if(!Le)return Le;let Ke=new Set(Le.domains);return D?Ke.add(S):Ke.delete(S),{...Le,domains:[...Ke]}}),qn=async()=>{if(re){Fe(!0);try{let S=await fetch(ee+"/news/follows",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({query:re.query,domains:re.domains,label:re.label,sourceIds:re.sourceIds||[]})}).then(Le=>Le.json());if(!S||!S.ok)throw new Error(S&&S.error||e("newsFollowFail"));let D=re.label;te(null),B((S.duplicate?e("newsFollowExists"):e("newsFollowAdded"))+"\uFF1A"+D),await Ie(),await de()}catch(S){B(String(S&&S.message||S),!1)}finally{Fe(!1)}}},Se=async S=>{try{let D=await fetch(ee+"/news/follows?id="+encodeURIComponent(S),{method:"DELETE"}).then(Le=>Le.json());if(!D||!D.ok)throw new Error(D&&D.error||e("newsFollowFail"));le===S&&$(""),B(e("newsFollowRemoved")),await Ie(),await de()}catch(D){B(String(D&&D.message||D),!1)}},C=(S,D)=>{let Le=pd(S.url),Ke=me(S.type),d=pd(S.image),Bt=K&&ue.get(S.id||S.url||S.title)||0,Xt=K&&Bt>0&&Bt<=3;return(0,r.jsxs)("a",{className:"mc-news-tile",style:{"--i":Math.min(D,14)},href:Le||void 0,target:Le?"_blank":void 0,rel:"noopener noreferrer",onClick:()=>jt(S),children:[(0,r.jsxs)("span",{className:"mc-news-tile-cover",children:[d?(0,r.jsx)("img",{className:"mc-news-tile-img",src:d,alt:"",loading:"lazy",referrerPolicy:"no-referrer",onError:Ht=>{let kn=Ht.currentTarget;kn.style.display="none",kn.nextElementSibling&&(kn.nextElementSibling.style.display="grid")}}):null,(0,r.jsxs)("span",{className:"mc-news-tile-gen",style:{"--hue":vv(S.title),display:d?"none":"grid"},children:[(0,r.jsx)("b",{children:fv[S.type]||"\u8BAF"}),(0,r.jsx)("small",{children:Ke}),(0,r.jsxs)("em",{children:[(0,r.jsx)("i",{children:bv(S.source)}),S.source]})]}),(0,r.jsx)("span",{className:"mc-news-tile-badge"+(Xt?" hot":""),children:Bt?"#"+Bt:Ke}),(0,r.jsx)("span",{className:"mc-news-tile-time",children:mv(S.publishedAt,e)})]}),(0,r.jsxs)("span",{className:"mc-news-tile-body",children:[(0,r.jsx)("span",{className:"mc-news-tile-title",children:S.title}),S.summary?(0,r.jsx)("span",{className:"mc-news-tile-summary",children:S.summary}):null,(0,r.jsxs)("span",{className:"mc-news-tile-foot",children:[(0,r.jsx)("i",{className:"mc-news-tile-dot"}),(0,r.jsx)("span",{children:S.source}),S.followLabel?(0,r.jsxs)("span",{className:"mc-news-tile-follow",children:["\u{1F514} ",S.followLabel]}):null,Bt?(0,r.jsxs)("span",{children:["\xB7 \u{1F525} ",e("newsHeat")," ",Ee(S)]}):null,(0,r.jsxs)("span",{className:"mc-news-tile-open",children:[e("newsOriginal")," \u2197"]})]})]})]},S.id||S.url||S.title)},w=G.filter(S=>S.followId),pe=w.slice(0,4),Re=le?G:pe.length?G.filter(S=>!S.followId):G;return(0,r.jsxs)("div",{className:"mc-news",children:[(0,r.jsx)(Nl,{toast:R}),(0,r.jsxs)("div",{className:"mc-news-hero",children:[(0,r.jsx)("div",{className:"mc-news-hero-eye",children:e("newsHeroEye")}),(0,r.jsxs)("div",{className:"mc-news-hero-search",children:[(0,r.jsx)("span",{"aria-hidden":"true",style:{fontSize:15,opacity:.75},children:"\u{1F50E}"}),(0,r.jsx)("input",{type:"text",value:v,onChange:S=>{M.current=!0,f(S.target.value)},onKeyDown:S=>{S.key==="Enter"&&Yt(v)},placeholder:e("newsSearch"),"aria-label":e("newsSearch")}),v?(0,r.jsx)("button",{type:"button",className:"mc-news-hero-clear",title:e("cancel"),onClick:()=>{f(""),Yt("")},children:"\u2715"}):null,(0,r.jsx)("button",{type:"button",className:"mc-news-hero-go",onClick:()=>Yt(v),children:e("newsSearchGo")}),v.trim()?(0,r.jsxs)("button",{type:"button",className:"mc-news-hero-follow",disabled:Ve,onClick:Qt,title:e("newsFollowPreview"),children:["\uFF0B ",e("newsFollow")]}):null]}),(0,r.jsx)("div",{className:"mc-news-hero-hint",children:e(ge?"newsIntentHint":"newsHeroHint")})]}),re?(0,r.jsxs)("div",{className:"mc-news-follow-draft",children:[(0,r.jsxs)("div",{className:"draft-head",children:["\u{1F514} ",e("newsFollowPreview")]}),(0,r.jsxs)("div",{className:"draft-body",children:[(0,r.jsx)("b",{children:re.label}),re.query?(0,r.jsxs)("span",{className:"draft-q",children:["\xB7 \u300C",re.query,"\u300D"]}):null,(0,r.jsxs)("div",{className:"draft-doms",children:[(0,r.jsx)("span",{className:"draft-lbl",children:e("newsFollowDomains")}),T.map(S=>(0,r.jsxs)("label",{className:"draft-opt",title:S.hint||"",children:[(0,r.jsx)("input",{type:"checkbox",checked:re.domains.includes(S.id),onChange:D=>Qe(S.id,D.target.checked)}),(0,r.jsx)("span",{children:S.label})]},S.id))]}),re.notes.map((S,D)=>(0,r.jsxs)("div",{className:"draft-note",children:["\xB7 ",S]},D))]}),(0,r.jsxs)("div",{className:"draft-actions",children:[(0,r.jsx)("button",{type:"button",className:"mc-btn",onClick:()=>te(null),children:e("cancel")}),(0,r.jsx)("button",{type:"button",className:"mc-btn me-on",disabled:Ve||!re.domains.length,onClick:qn,children:e("newsFollowConfirm")})]})]}):null,Y.length>0?(0,r.jsx)("div",{className:"mc-news-follows",children:Y.map(S=>(0,r.jsxs)("span",{className:"mc-news-follow-chip"+(le===S.id?" on":""),children:[(0,r.jsxs)("button",{type:"button",className:"chip-main",onClick:()=>$(D=>D===S.id?"":S.id),title:(S.domains||[]).join(" / "),children:["\u{1F514} ",S.label,(0,r.jsx)("i",{children:S.count||0})]}),(0,r.jsx)("button",{type:"button",className:"chip-x",title:e("delete"),"aria-label":e("delete"),onClick:()=>Se(S.id),children:"\u2715"})]},S.id))}):null,Nt?(0,r.jsxs)("div",{className:"mc-news-pref",children:[(0,r.jsxs)("span",{children:["\u{1F3AF} ",e("newsPersonalized")]}),y?(0,r.jsxs)("span",{children:["\xB7 ",e("newsLastQuery")," ",(0,r.jsx)("b",{children:y})]}):null,fe.length>0?(0,r.jsxs)("span",{children:["\xB7 ",fe.join(" / ")]}):null,Me.length>0?(0,r.jsxs)("span",{children:["\xB7 ",Me.map(me).join(" / ")]}):null,(0,r.jsx)("span",{className:"mc-news-pref-actions",children:(0,r.jsx)("button",{type:"button",className:"mc-btn",onClick:gt,children:e("newsResetPrefs")})})]}):null,(0,r.jsxs)("div",{className:"mc-news-feed-toolbar",children:[(0,r.jsxs)("div",{className:"mc-news-pills",children:[(0,r.jsxs)("button",{type:"button",className:"mc-news-pill"+(F===""?" on":""),onClick:()=>z(""),children:[e("all"),(0,r.jsx)("span",{className:"mc-news-pill-count",children:x.length})]}),i.map(S=>J[S.id]?(0,r.jsxs)("button",{type:"button",className:"mc-news-pill"+(F===S.id?" on":""),onClick:()=>z(F===S.id?"":S.id),children:[S.label,(0,r.jsx)("span",{className:"mc-news-pill-count",children:J[S.id]})]},S.id):null)]}),(0,r.jsxs)("span",{style:{marginLeft:"auto",display:"flex",alignItems:"center",gap:6,flexWrap:"wrap"},children:[(0,r.jsx)("button",{type:"button",className:"mc-chip"+(I==="zh"?" active":""),onClick:()=>_("zh"),children:e("newsLangZh")}),(0,r.jsx)("button",{type:"button",className:"mc-chip"+(I==="en"?" active":""),onClick:()=>_("en"),children:e("newsLangEn")}),(0,r.jsx)("button",{type:"button",className:"mc-chip"+(I===""?" active":""),onClick:()=>_(""),children:e("newsLangAll")}),(0,r.jsx)("button",{type:"button",className:"mc-chip"+(j==="rec"?" active":""),onClick:()=>H("rec"),children:e("newsSortRec")}),(0,r.jsx)("button",{type:"button",className:"mc-chip"+(j==="time"?" active":""),onClick:()=>H("time"),children:e("newsSortTime")}),(0,r.jsx)("button",{type:"button",className:"mc-btn",disabled:s,onClick:Be,children:e(s?"newsLoading":"newsFeedRefresh")})]})]}),(0,r.jsxs)("div",{className:"mc-news-feed-meta",style:{margin:"0 0 8px"},children:[u?e("newsUpdatedAt")+" "+new Date(u).toLocaleTimeString():"",s?"":" \xB7 "+G.length+" "+e("newsMatched")]}),t==="month"&&(0,r.jsx)("div",{className:"mc-news-feed-warn",style:{color:"var(--dsw-alias-label-secondary, #6b7280)",background:"transparent",borderColor:"var(--dsw-alias-border-l1, #e5e7eb)"},children:e(K?"newsEnRanking":"newsZhArchive")}),k&&!s&&(0,r.jsxs)("div",{className:"mc-news-feed-warn",style:{display:"flex",alignItems:"center",gap:10,flexWrap:"wrap"},children:[(0,r.jsxs)("span",{children:["\u26A0 ",k]}),(0,r.jsx)("button",{type:"button",className:"mc-btn",onClick:Be,children:e("newsRetry")})]}),h.length>0&&(0,r.jsxs)("div",{className:"mc-news-feed-warn",children:["\u26A0 ",e("newsPartialFail"),"\uFF1A",h.slice(0,2).join("\uFF1B")]}),s?(0,r.jsxs)("div",{className:"mc-card mc-news-feed-empty mc-news-loading-card",role:"status","aria-live":"polite",children:[(0,r.jsx)(Sl,{}),(0,r.jsx)("span",{children:e("newsLoading")}),(0,r.jsx)("small",{children:e("newsLoadingHint")})]}):a.length===0?(0,r.jsxs)("div",{className:"mc-card mc-news-feed-empty",children:[(0,r.jsx)("div",{children:e("newsFeedEmpty")}),(0,r.jsx)("button",{type:"button",className:"mc-btn me-on",style:{marginTop:10},onClick:Be,children:e("newsFeedRefresh")})]}):G.length===0?(0,r.jsxs)("div",{className:"mc-card mc-news-feed-empty mc-news-nomatch",children:[(0,r.jsx)("div",{children:e("newsNoMatch")}),(0,r.jsx)("p",{style:{margin:"6px 0 0",fontSize:11.5,lineHeight:1.6,opacity:.75},children:e("newsNoMatchHint")}),(0,r.jsx)("button",{type:"button",className:"mc-btn me-on",style:{marginTop:10},onClick:Ye,children:e("newsClearFilters")})]}):(0,r.jsxs)(r.Fragment,{children:[!le&&pe.length>0?(0,r.jsxs)("div",{className:"mc-news-follow-sec",children:[(0,r.jsxs)("div",{className:"mc-news-follow-sec-head",children:[(0,r.jsxs)("span",{children:["\u{1F514} ",e("newsFollowing")]}),(0,r.jsx)("em",{children:w.length})]}),(0,r.jsx)("div",{className:"mc-news-grid"+(ce?" is-swapping":""),children:pe.map((S,D)=>C(S,D))})]}):null,(0,r.jsx)("div",{className:"mc-news-grid"+(ce?" is-swapping":""),children:Re.map((S,D)=>C(S,D))})]})]})}function Sv({t:e,version:t,onUnreadChange:n}){let[a,o]=(0,m.useState)("daily"),i=a==="month"?"newsMonthlySub":a==="mine"?"newsMineSub":"newsDailySub";return(0,r.jsxs)("div",{className:"mc-news",children:[(0,r.jsx)("div",{className:"mc-v5-pagehead",children:(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{className:"mc-v5-eyebrow",children:"NEWSROOM"}),(0,r.jsx)("h1",{children:e("newsTitle")}),(0,r.jsx)("p",{children:e(i)})]})}),(0,r.jsxs)("div",{className:"mc-news-modes",children:[(0,r.jsx)("button",{type:"button",className:"mc-news-mode"+(a==="daily"?" active":""),onClick:()=>o("daily"),children:e("newsDaily")}),(0,r.jsx)("button",{type:"button",className:"mc-news-mode"+(a==="month"?" active":""),onClick:()=>o("month"),children:e("newsMonthly")}),(0,r.jsx)("button",{type:"button",className:"mc-news-mode"+(a==="mine"?" active":""),onClick:()=>o("mine"),children:e("newsMine")})]}),a==="mine"?(0,r.jsx)(Cv,{t:e,version:t,onUnreadChange:n}):(0,r.jsx)(kv,{t:e,mode:a,version:t})]})}function Cv({t:e,version:t,onUnreadChange:n}){let[a,o]=(0,m.useState)([]),[i,l]=(0,m.useState)([]),[s,c]=(0,m.useState)({all:0,unread:0}),[u,p]=(0,m.useState)(""),[h,g]=(0,m.useState)(""),[k,L]=(0,m.useState)(""),[R,A]=(0,m.useState)(!1),[v,f]=(0,m.useState)(""),[y,P]=(0,m.useState)(null),[F,z]=(0,m.useState)(null),[I,_]=(0,m.useState)(!1),[j,H]=(0,m.useState)(""),[se,he]=(0,m.useState)(null),ce=($,B=!0)=>{he({msg:$,ok:B}),setTimeout(()=>he(null),2600)};(0,m.useEffect)(()=>{let $=setTimeout(()=>g(u.trim()),220);return()=>clearTimeout($)},[u]);let Ge=(0,m.useCallback)(async()=>{let $=new URLSearchParams;h&&$.set("q",h),k&&$.set("category",k),R&&$.set("unread","1");try{let B=await fetch(ee+"/news?"+$.toString()).then(M=>M.json());if(!B||!B.ok)throw new Error(B&&B.error||"load failed");o(B.items||[]),l(B.categories||[]),c(B.counts||{all:0,unread:0}),n&&n(Number((B.counts||{}).unread)||0)}catch{ce(e("newsSaveFail"),!1)}},[h,k,R,n,e]);(0,m.useEffect)(()=>{Ge()},[t,Ge]);let Y=async $=>{f($.id);try{let B=await fetch(ee+"/news/item?id="+encodeURIComponent($.id)).then(M=>M.json());if(!B||!B.ok)throw new Error(B&&B.error||"load failed");P(B.item),B.item.read||await je($.id,!0)}catch{ce(e("newsSaveFail"),!1)}},je=async($,B)=>{try{let M=await fetch(ee+"/news/read",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:$,read:B})}).then(V=>V.json());if(!M||!M.ok)throw new Error(M&&M.error||"read failed");P(V=>V&&V.id===$?{...V,read:!!B}:V),await Ge()}catch{ce(e("newsSaveFail"),!1)}},T=async $=>{if(_(!1),$){let B=$;if(!B.body)try{let M=await fetch(ee+"/news/item?id="+encodeURIComponent(B.id)).then(V=>V.json());M&&M.ok&&(B=M.item)}catch{}z({id:B.id,title:B.title||"",date:B.date||ud(),category:B.category||"",source:B.source||"",url:B.url||"",tags:(B.tags||[]).join(", "),pinned:!!B.pinned,body:B.body||"",created:B.created||""})}else z({...uv,date:ud()})},Ae=async()=>{if(F){if(!String(F.title||"").trim()||!String(F.body||"").trim()){ce(e("newsSaveFail"),!1);return}H("save");try{let $={id:F.id||void 0,title:F.title,date:F.date,category:F.category,source:F.source,url:F.url,tags:String(F.tags||"").split(",").map(M=>M.trim()).filter(Boolean),pinned:!!F.pinned,body:F.body,created:F.created},B=await fetch(ee+"/news/save",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify($)}).then(M=>M.json());if(!B||!B.ok)throw new Error(B&&B.error||"save failed");z(null),f(B.item.id),P(B.item),await Ge(),ce(e("newsSaved"))}catch($){ce($&&$.message||e("newsSaveFail"),!1)}finally{H("")}}},re=async $=>{if(window.confirm(e("newsDeleteConfirm"))){H("delete");try{let B=await fetch(ee+"/news/delete",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:$.id})}).then(M=>M.json());if(!B||!B.ok)throw new Error(B&&B.error||"delete failed");v===$.id&&(f(""),P(null)),await Ge(),ce(e("newsDeleted"))}catch{ce(e("newsSaveFail"),!1)}finally{H("")}}},te=a.filter($=>$.pinned),Ve=a.filter($=>!$.pinned),Fe=y?pd(y.url):"",le="";return(0,r.jsxs)("div",{className:"mc-news",children:[(0,r.jsx)(Nl,{toast:se}),(0,r.jsxs)("div",{className:"mc-news-toolbar",children:[(0,r.jsxs)("span",{className:"mc-news-feed-meta",style:{marginLeft:0},children:[s.all," ",e("newsCountUnit")," \xB7 ",s.unread," ",e("newsUnread")]}),(0,r.jsxs)("button",{type:"button",className:"mc-btn me-on",onClick:()=>T(null),children:["\uFF0B ",e("newsNew")]}),(0,r.jsx)("input",{className:"mc-news-search",type:"text",value:u,onChange:$=>p($.target.value),placeholder:e("newsSearch"),"aria-label":e("newsSearch")}),(0,r.jsx)("button",{type:"button",className:"mc-chip"+(k===""?" active":""),onClick:()=>L(""),children:e("all")}),i.map($=>(0,r.jsx)("button",{type:"button",className:"mc-chip"+(k===$?" active":""),onClick:()=>L(B=>B===$?"":$),children:$},$)),(0,r.jsx)("button",{type:"button",className:"mc-chip"+(R?" active":""),onClick:()=>A($=>!$),children:e("newsUnreadOnly")}),(0,r.jsx)("button",{type:"button",className:"mc-btn",onClick:()=>Ge(),children:e("refresh")})]}),(0,r.jsxs)("div",{className:"mc-news-main",children:[(0,r.jsx)("div",{className:"mc-news-list",children:a.length===0?(0,r.jsxs)("div",{className:"mc-card mc-news-empty",children:[e(u||k||R?"newsNoMatch":"newsEmpty"),!u&&!k&&!R&&(0,r.jsx)("div",{style:{marginTop:10},children:(0,r.jsxs)("button",{type:"button",className:"mc-btn me-on",onClick:()=>T(null),children:["\uFF0B ",e("newsNew")]})})]}):(0,r.jsxs)(r.Fragment,{children:[te.length>0&&(0,r.jsxs)("div",{className:"mc-news-group",children:[(0,r.jsxs)("div",{className:"mc-news-group-label",children:["\u{1F4CC} ",e("newsPinned")]}),te.map($=>(0,r.jsx)(Bf,{item:$,t:e,active:v===$.id,onOpen:Y,onEdit:B=>T(B),onToggleRead:B=>je(B.id,!B.read),onDelete:re},$.id))]}),(0,r.jsx)("div",{className:"mc-news-group",children:Ve.map($=>{let B=pv($.date,e),M=B!==le;return le=B,(0,r.jsxs)(m.default.Fragment,{children:[M&&(0,r.jsx)("div",{className:"mc-news-group-label",children:B}),(0,r.jsx)(Bf,{item:$,t:e,active:v===$.id,onOpen:Y,onEdit:V=>T(V),onToggleRead:V=>je(V.id,!V.read),onDelete:re})]},$.id)})})]})}),y&&(0,r.jsxs)("aside",{className:"mc-news-reader",children:[(0,r.jsxs)("div",{className:"mc-news-reader-head",children:[(0,r.jsx)("span",{className:"mc-news-cat",children:y.category||e("newsCategoryField")}),y.pinned&&(0,r.jsxs)("span",{className:"mc-news-pin",children:["\u{1F4CC} ",e("newsPinned")]}),(0,r.jsx)("div",{style:{flex:1}}),(0,r.jsx)("button",{type:"button",className:"mc-btn",style:{padding:"2px 8px"},onClick:()=>{P(null),f("")},title:e("close"),children:"\u2715"})]}),(0,r.jsx)("h2",{children:y.title}),(0,r.jsxs)("div",{className:"mc-news-reader-meta",children:[(0,r.jsx)("span",{children:y.date||""}),y.source&&(0,r.jsxs)("span",{children:["\xB7 ",y.source]}),(0,r.jsxs)("span",{children:["\xB7 ",y.read?e("newsRead"):e("newsUnread")]}),(y.tags||[]).map($=>(0,r.jsxs)("span",{children:["#",$]},$))]}),Fe&&(0,r.jsx)("div",{style:{marginTop:8},children:(0,r.jsxs)("a",{className:"mc-btn",style:{textDecoration:"none"},href:Fe,target:"_blank",rel:"noopener noreferrer",children:["\u2197 ",e("newsOpenLink")]})}),(0,r.jsx)("div",{className:"md-doc",style:{marginTop:12},dangerouslySetInnerHTML:{__html:_o(vd(y.body||"",y.title))}}),(0,r.jsxs)("div",{className:"mc-news-reader-actions",children:[(0,r.jsx)("button",{type:"button",className:"mc-btn",onClick:()=>T(y),children:e("newsEdit")}),(0,r.jsx)("button",{type:"button",className:"mc-btn",onClick:()=>je(y.id,!y.read),children:y.read?e("newsMarkUnread"):e("newsMarkRead")}),(0,r.jsx)("button",{type:"button",className:"mc-btn",style:{color:"#f87171"},disabled:j==="delete",onClick:()=>re(y),children:e("delete")})]})]})]}),F&&(0,r.jsx)("div",{className:"me-overlay",onClick:()=>z(null),children:(0,r.jsxs)("div",{className:"me-dialog",style:{maxWidth:860,width:"94vw",maxHeight:"90vh"},onClick:$=>$.stopPropagation(),children:[(0,r.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10,padding:"14px 18px",borderBottom:"1px solid var(--dsw-alias-border-l1, #e5e7eb)"},children:[(0,r.jsx)("b",{children:F.id?e("newsEdit"):e("newsNew")}),(0,r.jsx)("div",{style:{flex:1}}),(0,r.jsx)("button",{type:"button",className:"mc-btn",onClick:()=>z(null),children:e("close")})]}),(0,r.jsxs)("div",{style:{padding:16,overflow:"auto",maxHeight:"calc(90vh - 60px)"},children:[(0,r.jsxs)("div",{className:"mc-news-form",children:[(0,r.jsxs)("label",{className:"full",children:[(0,r.jsx)("span",{children:e("newsTitleField")}),(0,r.jsx)("input",{className:"mc-news-input",value:F.title,onChange:$=>z(B=>({...B,title:$.target.value})),placeholder:e("newsTitlePlaceholder")})]}),(0,r.jsxs)("label",{children:[(0,r.jsx)("span",{children:e("newsDateField")}),(0,r.jsx)("input",{className:"mc-news-input",type:"date",value:F.date||"",onChange:$=>z(B=>({...B,date:$.target.value}))})]}),(0,r.jsxs)("label",{children:[(0,r.jsx)("span",{children:e("newsCategoryField")}),(0,r.jsx)("input",{className:"mc-news-input",list:"me-news-categories",value:F.category||"",onChange:$=>z(B=>({...B,category:$.target.value}))})]}),(0,r.jsx)("datalist",{id:"me-news-categories",children:i.map($=>(0,r.jsx)("option",{value:$},$))}),(0,r.jsxs)("label",{children:[(0,r.jsx)("span",{children:e("newsSourceField")}),(0,r.jsx)("input",{className:"mc-news-input",value:F.source||"",onChange:$=>z(B=>({...B,source:$.target.value}))})]}),(0,r.jsxs)("label",{children:[(0,r.jsx)("span",{children:e("newsUrlField")}),(0,r.jsx)("input",{className:"mc-news-input",value:F.url||"",onChange:$=>z(B=>({...B,url:$.target.value})),placeholder:"https://\u2026"})]}),(0,r.jsxs)("label",{children:[(0,r.jsx)("span",{children:e("newsTagsField")}),(0,r.jsx)("input",{className:"mc-news-input",value:F.tags||"",onChange:$=>z(B=>({...B,tags:$.target.value}))})]}),(0,r.jsxs)("label",{style:{flexDirection:"row",alignItems:"center",gap:8,paddingTop:18},children:[(0,r.jsx)("input",{type:"checkbox",checked:!!F.pinned,onChange:$=>z(B=>({...B,pinned:$.target.checked}))}),(0,r.jsx)("span",{children:e("newsPinField")})]}),(0,r.jsxs)("label",{className:"full",children:[(0,r.jsx)("span",{children:e("newsBodyField")}),(0,r.jsx)("textarea",{className:"mc-news-textarea",value:F.body||"",onChange:$=>z(B=>({...B,body:$.target.value})),placeholder:e("newsBodyPlaceholder")})]}),I&&(0,r.jsx)("div",{className:"full mc-news-preview",children:(0,r.jsx)("div",{className:"md-doc",dangerouslySetInnerHTML:{__html:_o(F.body||"")}})})]}),(0,r.jsxs)("div",{style:{display:"flex",gap:8,justifyContent:"flex-end",marginTop:14},children:[(0,r.jsx)("button",{type:"button",className:"mc-btn",onClick:()=>_($=>!$),children:e(I?"newsEditBody":"newsPreview")}),(0,r.jsx)("button",{type:"button",className:"mc-btn",onClick:()=>z(null),children:e("cancel")}),(0,r.jsx)("button",{type:"button",className:"mc-btn me-on",disabled:j==="save",onClick:Ae,children:e(j==="save"?"newsSaving":"newsSave")})]})]})]})})]})}function Nv({t:e,onReload:t,version:n}){let[a,o]=(0,m.useState)([]),[i,l]=(0,m.useState)(""),[s,c]=(0,m.useState)(null),u=(g,k=!0)=>{c({msg:g,ok:k}),setTimeout(()=>c(null),3200)},p=(0,m.useCallback)(async()=>{try{let g=await fetch(`${ee}/recycle/list`).then(k=>k.json());g.ok&&o(g.items||[])}catch{}},[]);(0,m.useEffect)(()=>{p()},[n,p]);let h=async(g,k)=>{let L=(a.find(R=>R.path===k)||{}).title||k;l(g+k);try{let A=await fetch(ee+(g==="restore"?"/recycle/restore":"/recycle/purge")+"?path="+encodeURIComponent(k)),v=await A.json().catch(()=>null);await p(),t&&t(),A.ok&&(!v||v.ok!==!1)?u(e(g==="restore"?"toastRestored":"toastPurged")+"\uFF1A"+L):u(e("toastFailed")+"\uFF1A"+(v&&v.error||"HTTP "+A.status),!1)}catch(R){u(e("toastFailed")+"\uFF1A"+String(R&&R.message||R),!1)}finally{l("")}};return(0,r.jsxs)("div",{className:"mc-admin",style:{display:"flex",flexDirection:"column",overflow:"auto",flex:1,minHeight:0},children:[(0,r.jsx)("style",{children:xn}),(0,r.jsxs)("div",{style:{overflow:"auto",padding:4},children:[(0,r.jsx)(Nl,{toast:s}),(0,r.jsxs)("div",{className:"mc-v5-pagehead",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{className:"mc-v5-eyebrow",children:"RECYCLE CENTER"}),(0,r.jsx)("h1",{children:e("tabRecycle")}),(0,r.jsx)("p",{children:e("recyclePageSub")})]}),(0,r.jsx)("span",{className:"mc-v5-pagecount",children:a.length}),(0,r.jsxs)("button",{type:"button",className:"mc-btn mc-danger",disabled:!!i||a.length===0,title:a.length?e("recyclePurgeAllConfirm").split("{n}").join(String(a.length)):e("emptyRecycle"),onClick:async()=>{if(a.length&&window.confirm(e("recyclePurgeAllConfirm").split("{n}").join(String(a.length)))){l("purgeAll");try{let g=await fetch(ee+"/recycle/purge-all",{method:"POST"}),k=await g.json().catch(()=>null);await p(),t&&t(),g.ok&&(!k||k.ok!==!1)?u(e("toastPurgeAll").split("{n}").join(String(k&&k.purged!=null?k.purged:a.length)),!0):u(e("toastFailed")+"\uFF1A"+(k&&k.error||"HTTP "+g.status),!1)}catch(g){u(e("toastFailed")+"\uFF1A"+String(g&&g.message||g),!1)}finally{l("")}}},children:["\u{1F5D1} ",e("recyclePurgeAll"),a.length?"\uFF08"+a.length+"\uFF09":""]})]}),(0,r.jsx)("div",{className:"mc-v5-recycle-hint",children:e("recycleHint")}),a.length?(0,r.jsx)("div",{className:"mc-card mc-v5-recycle",children:a.map(g=>{let k=qt[g.kind]||"#6B7280";return(0,r.jsxs)("div",{className:"mc-v5-recycle-row",children:[(0,r.jsx)("span",{className:"mc-v5-recycle-tile",style:{color:k,background:k+"18",borderColor:k+"38"},children:Ar[g.kind]||"\u{1F4CE}"}),(0,r.jsxs)("div",{className:"mc-v5-recycle-copy",children:[(0,r.jsx)("b",{children:g.title}),(0,r.jsxs)("span",{children:[e(Ct[g.kind]||"kindKnowledge")," \xB7 ",g.status==="rejected"?e("rejected"):e("bucketDeleted")," \xB7 ",hl(g.deletedAt||g.updated)||"-"]})]}),(0,r.jsxs)("div",{className:"mc-v5-recycle-actions",children:[(0,r.jsx)("button",{type:"button",className:"mc-btn",disabled:!!i,title:g.status==="rejected"?e("restoreToQueue"):e("restore"),onClick:()=>h("restore",g.path),children:g.status==="rejected"?e("restoreToQueue"):e("restore")}),(0,r.jsx)("button",{type:"button",className:"mc-btn mc-danger",disabled:!!i,onClick:()=>{window.confirm(e("purgeConfirm"))&&h("purge",g.path)},children:e("purge")})]})]},g.path)})}):(0,r.jsxs)("div",{className:"mc-card mc-v5-empty-state",children:["\u{1F5D1}\uFE0F ",(0,r.jsx)("b",{children:e("emptyRecycle")}),(0,r.jsx)("span",{children:e("recycleEmptyHint").split("{days}").join("30")})]})]})]})}var vd=(e,t)=>{let n=String(e||"").split(/\r?\n/),a=i=>String(i||"").replace(/[#*_`]/g,"").replace(/[\s::\-–—·]/g,"").trim(),o=a(t);for(;;){let i=0;for(;i<n.length&&!n[i].trim();)i++;let l=/^#{1,2}\s+(.+?)\s*$/.exec(n[i]||"");if(!l||a(l[1])!==o)break;for(n.splice(i,1);i<n.length&&!n[i].trim();)n.splice(i,1)}return n.join(`
1055
- `)},Tv=e=>{let t=[],n=!1,a=0;for(let o of String(e||"").split(/\r?\n/)){let i=o.trim();if(/^```/.test(i)){n=!n;continue}if(n)continue;let l=/^(#{1,6})\s+(.+)$/.exec(i);if(!l)continue;a++;let s=l[1].length;s<=3&&t.push({id:"md-h-"+a,level:s,text:l[2].replace(/[#*_`>\[\]()]/g,"").replace(/\s+/g," ").trim()})}return t},bd=e=>{let t=String(e.summary||"").replace(/[#>*_`]/g," ").replace(/\s+/g," ").trim();return t.length>150?t.slice(0,148)+"\u2026":t},Jf=e=>{let t=String(e.summary||"").toLowerCase();return/决策|结论|决定|decision/.test(t)?"insightDecision":/根因|原因|root cause/.test(t)?"insightRoot":/教训|避免|lesson/.test(t)?"insightLesson":"insightSummary"},Zf=({n:e=0,color:t="#ff9a72",size:n=30})=>{let a=Math.max(2,Math.min(6,Number(e)||2)),o=Array.from({length:a},(i,l)=>{let s=-Math.PI/2+l*Math.PI*2/a,c=l%2?13:16;return[20+Math.cos(s)*c,20+Math.sin(s)*c]});return(0,r.jsxs)("svg",{className:"mc-v5-mini",width:n,height:n,viewBox:"0 0 40 40","aria-hidden":"true",children:[o.map(([i,l],s)=>(0,r.jsx)("line",{x1:"20",y1:"20",x2:i,y2:l,stroke:t,strokeOpacity:".35"},"l"+s)),o.map(([i,l],s)=>(0,r.jsx)("circle",{cx:i,cy:l,r:s%2?2.2:1.8,fill:t,fillOpacity:s%2?.8:.55},"c"+s)),(0,r.jsx)("circle",{cx:"20",cy:"20",r:"2.6",fill:t})]})},Mv=({card:e,t,onOpen:n,query:a,onDelete:o,onTagClick:i,pinned:l,onPin:s,onCore:c,links:u})=>{let p=qt[e.kind]||qt.other,h=Number(u??e.links??e.weight??0),g=id(e);return(0,r.jsxs)("article",{className:`mc-cardrow mc-card mc-v5-card${l?" pinned":""}${e.kind==="core"?" core":""}`,onClick:()=>n(e),children:[(0,r.jsxs)("div",{className:"mc-v5-card-top",children:[(0,r.jsx)("span",{className:"mc-v5-card-tile",style:{color:p,background:p+"18",borderColor:p+"38"},children:Ar[e.kind]||"\u{1F4CE}"}),(0,r.jsx)("span",{className:"mc-v5-card-kind-name",children:e.kind==="core"?"\u2B50 "+t("kindCore"):t(Ct[e.kind]||"kindKnowledge")}),e.kind==="core"&&(0,r.jsxs)("span",{className:"mc-v5-core-badge",children:["\u2B50 ",t("kindCore")]}),e.status==="pending"&&(0,r.jsxs)("span",{className:"mc-v5-card-status pending",children:["\u23F3 ",t("statusPending")]}),e.status==="rejected"&&(0,r.jsxs)("span",{className:"mc-v5-card-status rejected",children:["\u26D4 ",t("statusRejected")]}),Ov(e.updated)&&(0,r.jsx)("span",{className:"mc-new",children:t("newBadge")}),(0,r.jsx)("span",{className:"spacer",style:{flex:1}}),(0,r.jsx)("span",{className:"mc-v5-card-time",children:lr(e.updated)}),c&&e.status!=="pending"&&e.status!=="rejected"&&(0,r.jsx)("button",{type:"button",className:`mc-v5-core${e.kind==="core"?" on":""}`,title:t(e.kind==="core"?"unsetCore":"setCore"),onClick:k=>{k.stopPropagation(),c(e.path,e.kind==="core"?"knowledge":"core")},children:e.kind==="core"?"\u2B50 "+t("coreShort"):"\u2606 "+t("setCoreShort")}),s&&(0,r.jsx)("button",{type:"button",className:`mc-v5-pin${l?" on":""}`,title:t(l?"unpinCard":"pinCard"),"aria-label":t(l?"unpinCard":"pinCard"),onClick:k=>{k.stopPropagation(),s(e.path)},children:"\u{1F4CC}"})]}),(0,r.jsx)("h4",{className:"mc-v5-card-title",children:a?cd(e.title,a):e.title}),(0,r.jsxs)("div",{className:"mc-v5-card-insight",children:[(0,r.jsx)("span",{className:"mc-v5-insight-k",children:t(Jf(e))}),(0,r.jsx)("span",{className:"mc-v5-card-lead",children:a?cd(e.summary||"",a):bd(e)})]}),a&&(()=>{let k=mf(e.body||"",a);return k?(0,r.jsx)("p",{className:"mc-snippet",children:cd(k,a)}):null})(),id(e).length>0&&(0,r.jsxs)("div",{className:"mc-tags mc-v5-card-tags",children:[id(e).slice(0,2).map(k=>(0,r.jsxs)("button",{type:"button",className:"mc-tag mc-tag-click",title:k,onClick:L=>{L.stopPropagation(),i&&i(k)},children:["#",k]},k)),g.length>2&&(0,r.jsxs)("span",{className:"mc-tag more",children:["+",g.length-2]})]}),(0,r.jsxs)("footer",{className:"mc-v5-card-foot",children:[h>0&&(0,r.jsxs)("span",{className:"mc-v5-conn",children:[(0,r.jsx)(Zf,{n:h,color:p})," ",(0,r.jsx)("b",{children:h})," ",t("links")]}),(0,r.jsxs)("span",{className:"mc-v5-author",children:["\u{1F916} ",Pr(e.submittedBy)]}),(0,r.jsx)("span",{className:"spacer",style:{flex:1}}),(0,r.jsx)("button",{type:"button",className:"mc-card-del",title:t("delete"),onClick:k=>{k.stopPropagation(),window.confirm(t("deleteConfirm"))&&o&&o(e.path)},children:"\u{1F5D1}"})]})]})};function Ev({t:e,tab:t,onReload:n,version:a}){let[o,i]=(0,m.useState)(null),[l,s]=(0,m.useState)(""),[c,u]=(0,m.useState)(null),[p,h]=(0,m.useState)(null),[g,k]=(0,m.useState)(null),[L,R]=(0,m.useState)(null),[A,v]=(0,m.useState)(null),[f,y]=(0,m.useState)(null),P=(0,m.useCallback)(async()=>{j("align");try{let x=await fetch(ee+"/align").then(J=>J.json());x&&x.findings?y(x):notify(e("alignFail"),!1)}catch{notify(e("alignFail"),!1)}finally{j("")}},[e]),F=async()=>{if(window.confirm(e("alignFixConfirm"))){j("alignfix");try{let x=await fetch(ee+"/setup-run",{method:"POST",headers:{"Content-Type":"application/json"},body:"{}"}).then(J=>J.json());x&&x.ok?(notify(e("alignFixed")),await P()):notify(e("alignFail"),!1)}catch{notify(e("alignFail"),!1)}finally{j("")}}},[z,I]=(0,m.useState)([]),[_,j]=(0,m.useState)(""),[H,se]=(0,m.useState)(!1),he=(0,m.useCallback)(async()=>{if(!(!c||!c.merge||!c.merge.length)&&window.confirm(e("mergeAllConfirm"))){j("merge");try{let x={},J=we=>x[we]===void 0?we:x[we]=J(x[we]),G=(we,K)=>{x[J(we)]=J(K)},ge=new Set;for(let we of c.merge)ge.add(we.a.path),ge.add(we.b.path),G(we.a.path,we.b.path);let Ee={};for(let we of ge){let K=J(we);(Ee[K]=Ee[K]||[]).push(we)}let ke=0;for(let we of Object.values(Ee)){if(we.length<2)continue;(await fetch(`${ee}/merge?paths=${encodeURIComponent(we.join(","))}`).then(ue=>ue.json())).ok&&ke++}await ce(),n&&n()}catch{}j("")}},[c,ce,n,e]);async function ce(){try{let x=await Promise.all([fetch(`${ee}/stats`),fetch(`${ee}/budget`),fetch(`${ee}/capture-log`),fetch(`${ee}/cards?status=all&limit=30&agent=${Wo}`),fetch(`${ee}/overview`),fetch(`${ee}/ledger?days=7`)]),[J,G,ge,Ee,ke,we]=await Promise.all(x.map(K=>K.json()));J&&J.ok&&i(J),G&&G.ok&&h(G),ge&&ge.ok&&k(ge),Ee&&Ee.ok&&I(Ee.cards||[]),ke&&ke.ok&&R({db:ke.db,backups:ke.backups,total:ke.total,version:ke.version,degraded:ke.degraded===!0}),v(we&&we.ok?we:{ok:!1,error:we&&we.error||""}),s(!J||!J.ok?e("adminLoadFail"):"")}catch{s(e("adminLoadFail"))}}let Ge=(0,m.useCallback)(async()=>{j("scan");try{let x=await fetch(`${ee}/optimize`).then(J=>J.json());x.ok&&u(x)}catch{s(e("adminLoadFail"))}finally{j("")}},[e]),[Y,je]=(0,m.useState)(null),T=(0,m.useCallback)(async()=>{j("refine");try{let x=await fetch(`${ee}/refine-scan`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({limit:8})}).then(J=>J.json());x&&x.ok?je(x):notify(x&&x.error||e("refineFail"),!1)}catch{notify(e("refineFail"),!1)}finally{j("")}},[e]),Ae=async(x,J)=>{if(!(J==="merge"&&!window.confirm(e("mergeConfirm")))){j("refineapply");try{let G=await fetch(`${ee}/refine-apply`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({a:x.a.path,b:x.b.path,action:J,relation:x.relation})}).then(ge=>ge.json());G&&G.ok?(notify(e("refineApplied")),je(ge=>ge&&{...ge,findings:(ge.findings||[]).filter(Ee=>!(Ee.a.path===x.a.path&&Ee.b.path===x.b.path))}),await ce(),n&&n()):notify(G&&G.error||e("refineFail"),!1)}catch{notify(e("refineFail"),!1)}finally{j("")}}},[re,te]=(0,m.useState)(null),Ve=(0,m.useCallback)(async()=>{j("junk");try{let x=await fetch(`${ee}/refine-junk`).then(J=>J.json());x&&x.ok?te(x.items||[]):notify(e("junkFail"),!1)}catch{notify(e("junkFail"),!1)}finally{j("")}},[e]),Fe=async x=>{if(x.length&&window.confirm(e("junkRecycleAllConfirm"))){j("junkpurge");try{let J=await fetch(`${ee}/refine-junk-purge`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({paths:x})}).then(G=>G.json());J&&J.removed?(notify(e("junkDone")+"\uFF1A"+J.removed.length+(J.failed?.length?"\uFF08\u5931\u8D25 "+J.failed.length+"\uFF09":"")),te(G=>G&&G.filter(ge=>!J.removed.includes(ge.path))),await ce(),n&&n()):notify(e("junkFail"),!1)}catch{notify(e("junkFail"),!1)}finally{j("")}}},[le,$]=(0,m.useState)(null),B=(0,m.useCallback)(async()=>{j("goals");try{let x=await fetch(ee+"/refine-goals",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({limit:30})}).then(J=>J.json());x&&x.ok?$(x):notify(x&&x.error||e("goalFail"),!1)}catch{notify(e("goalFail"),!1)}finally{j("")}},[e]),M=async x=>{j("goalskeep");try{let J=await fetch(ee+"/refine-goals-keep",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({paths:x.members.map(G=>G.path)})}).then(G=>G.json());J&&J.ok?(notify(e("goalDone")),$(G=>G&&{...G,clusters:(G.clusters||[]).filter(ge=>ge.goal!==x.goal)})):notify(e("goalFail"),!1)}catch{notify(e("goalFail"),!1)}finally{j("")}},V=async x=>{if(window.confirm(e("mergeConfirm"))){j("goalsmerge");try{let J=await fetch(ee+"/merge?paths="+encodeURIComponent(x.members.map(G=>G.path).join(","))).then(G=>G.json());J&&J.ok?(notify(e("goalMerged")),$(G=>G&&{...G,clusters:(G.clusters||[]).filter(ge=>ge.goal!==x.goal)}),await ce(),n&&n()):notify(e("mergeFail"),!1)}catch{notify(e("mergeFail"),!1)}finally{j("")}}};(0,m.useEffect)(()=>{ce()},[a]);let de=async(x,J)=>{if(window.confirm(e("mergeConfirm")))try{(await fetch(`${ee}/merge?paths=${encodeURIComponent(x+","+J)}`).then(ge=>ge.json())).ok&&(await ce(),n&&n())}catch{}},Ie=async x=>{if(window.confirm(e("deleteConfirm")))try{(await fetch(`${ee}/delete?path=${encodeURIComponent(x)}`).then(G=>G.json())).ok&&(await ce(),n&&n())}catch{}},Be=Kf,me=({title:x,kind:J,updated:G,path:ge})=>(0,r.jsxs)("li",{style:{display:"flex",alignItems:"center",gap:8,padding:"3px 4px",borderBottom:"1px solid rgba(127,127,127,0.12)"},children:[(0,r.jsx)("span",{className:"mc-kind",style:{background:wn.colors[J]||"#666"}}),(0,r.jsx)("span",{style:{flex:1,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:x}),(0,r.jsx)("span",{style:{opacity:.55,fontSize:11},children:lr(G)}),(0,r.jsxs)("button",{type:"button",className:"mc-btn",style:{padding:"2px 8px"},onClick:()=>Ie(ge),children:[e("delete")," \u2715"]})]});return(0,r.jsxs)("div",{className:"mc-admin",style:{display:"flex",flexDirection:"column",overflow:"auto",flex:1,minHeight:0},children:[(0,r.jsx)("style",{children:xn}),(0,r.jsxs)("div",{style:{overflow:"auto"},children:[l&&(0,r.jsxs)("div",{className:"mc-card",style:{borderLeft:"4px solid #ef4444",background:"rgba(239,68,68,0.08)",padding:"12px 14px",marginBottom:10},children:[(0,r.jsxs)("div",{style:{fontSize:13,color:"#b91c1c",fontWeight:600,marginBottom:6},children:["\u26A0 ",l]}),(0,r.jsxs)("button",{type:"button",className:"mc-btn",onClick:ce,children:["\u21BB ",e("retry")]})]}),t==="stats"&&(0,r.jsxs)("div",{children:[(0,r.jsxs)("div",{className:"mc-v5-pagehead",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{className:"mc-v5-eyebrow",children:"SYSTEM STATUS"}),(0,r.jsx)("h1",{children:e("runtimeTitle")}),(0,r.jsx)("p",{children:e("runtimeSub")})]}),(0,r.jsx)("span",{className:"mc-v5-pagecount",children:L?`${L.total||0} ${e("cardsUnit")}`:""}),(0,r.jsxs)("button",{type:"button",className:"mc-btn",onClick:()=>ce(),children:["\u21BB ",e("refresh")]})]}),(0,r.jsxs)("div",{className:"mc-v5-statusgrid",children:[(0,r.jsxs)("div",{className:"mc-v5-statuscard",children:[(0,r.jsx)("span",{className:"mc-v5-status-ico",children:"\u{1F5C4}\uFE0F"}),(0,r.jsx)("b",{children:L?L.total||0:"\u2014"}),(0,r.jsx)("span",{children:e("dbTitle")}),(0,r.jsx)("small",{children:L?.db?.journalMode||L?.db?.journal_mode||"SQLite"})]}),(0,r.jsxs)("div",{className:"mc-v5-statuscard",children:[(0,r.jsx)("span",{className:"mc-v5-status-ico",children:"\u{1F4BE}"}),(0,r.jsx)("b",{children:L?.backups?.count??"\u2014"}),(0,r.jsx)("span",{children:e("backupTitle")}),(0,r.jsx)("small",{children:L?.backups?.newestAt?`${Math.max(0,Math.floor((Date.now()-Number(L.backups.newestAt))/864e5))} \u5929\u524D`:"\u2014"})]}),(0,r.jsxs)("div",{className:"mc-v5-statuscard",children:[(0,r.jsx)("span",{className:"mc-v5-status-ico",children:"\u2728"}),(0,r.jsx)("b",{children:g?.available?g.health?.ok?"\u6B63\u5E38":"\u5F02\u5E38":"\u2014"}),(0,r.jsx)("span",{children:e("captureTitle")}),(0,r.jsx)("small",{children:g?.health?.lastAt?lr(new Date(g.health.lastAt).toISOString()):"\u2014"})]}),(0,r.jsxs)("div",{className:"mc-v5-statuscard",children:[(0,r.jsx)("span",{className:"mc-v5-status-ico",children:"\u{1F3F7}\uFE0F"}),(0,r.jsx)("b",{children:L?.version||"\u2014"}),(0,r.jsx)("span",{children:e("versionTitle")}),(0,r.jsx)("small",{children:e("v5Local")})]})]}),(0,r.jsxs)("div",{className:"mc-card",style:{marginBottom:10},children:[(0,r.jsxs)("div",{style:{display:"flex",gap:10,alignItems:"center",flexWrap:"wrap"},children:[(0,r.jsxs)("b",{style:{fontSize:12},children:["\u{1FA7A} ",e("healthTitle")]}),(0,r.jsx)("span",{style:{fontSize:11,opacity:.6},children:e("healthHint")}),(0,r.jsx)("div",{style:{flex:1}}),(0,r.jsxs)("button",{type:"button",className:"mc-btn",onClick:()=>ce(),children:["\u21BB ",e("refresh")]})]}),L?(()=>{let x=L.db||{},J=x.writable!==!1&&!x.corrupt,G=L.backups||{count:0,newestAt:0},ge=G.newestAt?Math.floor((Date.now()-Number(G.newestAt))/864e5):-1,Ee=G.count?ge>7?"warn":"ok":"bad",ke=g&&g.available?g.health:null,we=ke?ke.ok?"ok":"warn":"none",K=f&&f.findings?f.onDisk&&f.residentServed===f.onDisk&&f.hostVersion===f.onDisk?"ok":"warn":"none",ue={ok:["\u2705","#10b981"],warn:["\u26A0","#f59e0b"],bad:["\u2717","#ef4444"],none:["\u2022","inherit"]},Me=[{label:e("healthDb"),level:J?"ok":"bad",text:J?"journal="+(x.journalMode||"?")+(x.checkedAt?" \xB7 "+new Date(x.checkedAt).toLocaleString():""):(x.error||e("healthDbBad"))+" \u2192 dsh-memory doctor"},{label:e("healthBackups"),level:Ee,text:G.count?(ge<=0?e("healthBackupToday").replace("{n}",String(G.count)):e("healthBackupAge").replace("{n}",String(G.count)).replace("{d}",String(ge)))+(G.files&&G.files.length?" \xB7 "+G.files[G.files.length-1]:""):e("healthNoBackups")},{label:e("healthCapture"),level:we,text:ke?ke.ok?e("healthCapOk"):e("healthCapFail")+"\uFF1A"+(ke.reason||""):e("healthNoRecords")},{label:e("healthVersion"),level:K,text:K==="none"?e("healthRunAlign"):e("vcOnDisk")+" v"+(f.onDisk||"?")+" \xB7 "+e("vcResident")+" v"+(f.residentServed||"?")+" \xB7 "+e("vcLoaded")+" v"+(f.hostVersion||"?"),action:K==="none"?{label:e("alignRun"),run:P}:null}];return(0,r.jsx)("div",{style:{marginTop:6},children:Me.map(fe=>(0,r.jsxs)("div",{style:{display:"flex",gap:8,alignItems:"baseline",fontSize:12,padding:"3px 0",borderTop:"1px solid rgba(127,127,127,0.10)"},children:[(0,r.jsx)("span",{style:{width:14,flex:"0 0 auto",color:ue[fe.level][1]},children:ue[fe.level][0]}),(0,r.jsx)("b",{style:{minWidth:62,flex:"0 0 auto",opacity:.85},children:fe.label}),(0,r.jsx)("span",{style:{opacity:.82,wordBreak:"break-word"},children:fe.text}),fe.action&&(0,r.jsx)("button",{type:"button",className:"mc-btn",style:{marginLeft:6,padding:"0 6px",fontSize:11},disabled:!!_,onClick:fe.action.run,children:fe.action.label})]},fe.label))})})():(0,r.jsx)("div",{style:{opacity:.6,fontSize:12,padding:"8px 0"},children:e("loading")})]}),(0,r.jsxs)("div",{className:"mc-card",style:{marginBottom:10},children:[(0,r.jsxs)("div",{style:{display:"flex",gap:10,alignItems:"center",flexWrap:"wrap"},children:[(0,r.jsxs)("b",{style:{fontSize:12},children:["\u{1F9FE} ",e("ledgerTitle")]}),(0,r.jsx)("span",{style:{fontSize:11,opacity:.6},children:e("ledgerHint")}),(0,r.jsx)("div",{style:{flex:1}}),(0,r.jsxs)("button",{type:"button",className:"mc-btn",onClick:()=>ce(),children:["\u21BB ",e("refresh")]})]}),A?A.ok===!1?(0,r.jsxs)("div",{style:{color:"#f59e0b",fontSize:12,padding:"8px 0",lineHeight:1.7},children:["\u26A0 ",/未知接口|404|not found/i.test(String(A.error||""))?e("ledgerNeedRestart"):A.error||e("adminLoadFail")]}):A.totals.recalls+A.totals.captures===0?(0,r.jsx)("div",{style:{opacity:.6,fontSize:12,padding:"8px 0"},children:e("ledgerNoData")}):(0,r.jsxs)("div",{style:{marginTop:8},children:[(0,r.jsx)("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(160px, 1fr))",gap:8},children:[{k:e("ledgerRecalls"),v:String(A.totals.recalls),s:e("ledgerInjected")+" "+Number(A.totals.injectedChars||0).toLocaleString()+" "+e("ledgerChars")},{k:e("ledgerCaptures"),v:String(A.totals.captures),s:e("ledgerLlmCalls")+" "+A.totals.llmCalls+(A.totals.captureFail?" \xB7 \u2717 "+A.totals.captureFail:"")},{k:e("ledgerEstimate"),v:"\u2248 "+Number(A.totals.estTokens||0).toLocaleString(),s:e("ledgerEstimateHint")},{k:e("ledgerUseful"),v:A.feedback.rate==null?"\u2014":Math.round(A.feedback.rate*100)+"%",s:e("ledgerUsefulHint")}].map(x=>(0,r.jsxs)("div",{style:{border:"1px solid rgba(127,127,127,.16)",borderRadius:10,padding:"8px 10px"},children:[(0,r.jsx)("div",{style:{fontSize:11,opacity:.6},children:x.k}),(0,r.jsx)("div",{style:{fontSize:18,fontWeight:700,lineHeight:1.35},children:x.v}),(0,r.jsx)("div",{style:{fontSize:10.5,opacity:.55,lineHeight:1.5},children:x.s})]},x.k))}),(0,r.jsx)("div",{style:{fontSize:11,opacity:.55,marginTop:8,lineHeight:1.7},children:e("ledgerFormula")})]}):(0,r.jsx)("div",{style:{opacity:.6,fontSize:12,padding:"8px 0"},children:e("loading")})]}),(0,r.jsxs)("div",{className:"mc-card",style:{marginBottom:10},children:[(0,r.jsxs)("div",{style:{display:"flex",gap:10,alignItems:"center",flexWrap:"wrap"},children:[(0,r.jsxs)("b",{style:{fontSize:12},children:["\u{1F527} ",e("alignTitle")]}),(0,r.jsx)("button",{type:"button",className:"mc-btn",disabled:!!_,onClick:P,children:e(_==="align"?"exporting":"alignRun")}),f&&f.counts&&f.counts.fix>0&&(0,r.jsx)("button",{type:"button",className:"mc-btn me-on",disabled:!!_,onClick:F,children:e(_==="alignfix"?"exporting":"alignFix")}),(0,r.jsx)("span",{style:{fontSize:11,opacity:.6},children:e("alignHint")})]}),f&&f.findings?(0,r.jsxs)("div",{style:{marginTop:6},children:[(0,r.jsxs)("div",{style:{fontSize:12,opacity:.75,marginBottom:4},children:[e("alignDisk")," v",f.onDisk||"?",f.residentServed?" \xB7 "+e("alignResident")+" v"+f.residentServed:"",f.hostVersion?" \xB7 "+e("alignHost")+" v"+f.hostVersion:""]}),(0,r.jsx)("ul",{style:{margin:0,padding:0,listStyle:"none"},children:f.findings.map((x,J)=>(0,r.jsxs)("li",{style:{padding:"4px 2px",borderTop:J?"1px solid rgba(127,127,127,0.12)":"none",fontSize:12},children:[(0,r.jsx)("span",{style:{fontWeight:700,color:x.level==="fix"?"#ef4444":x.level==="warn"?"#f59e0b":"#10b981"},children:x.level==="fix"?"\u2717":x.level==="warn"?"\u26A0":"\u2713"})," ",(0,r.jsx)("span",{children:x.title}),x.detail?(0,r.jsx)("div",{style:{opacity:.75,marginLeft:14},children:x.detail}):null,x.command?(0,r.jsxs)("div",{style:{marginLeft:14,opacity:.9},children:["\u2192 ",(0,r.jsx)("code",{children:x.command})]}):null]},J))})]}):(0,r.jsx)("div",{style:{opacity:.6,fontSize:12,marginTop:4},children:e("alignIdle")})]}),(0,r.jsxs)("div",{className:"mc-card",style:{marginBottom:10},children:[(0,r.jsxs)("div",{style:{display:"flex",gap:10,alignItems:"center",flexWrap:"wrap"},children:[(0,r.jsxs)("b",{style:{fontSize:12},children:["\u{1FAB5} ",e("captureLog")]}),(0,r.jsx)("span",{style:{fontSize:11,opacity:.6},children:e("captureLogHint")}),(0,r.jsx)("div",{style:{flex:1}}),(0,r.jsxs)("button",{type:"button",className:"mc-btn",onClick:()=>ce(),children:["\u21BB ",e("refresh")]})]}),g?g.available===!1?(0,r.jsx)("div",{style:{opacity:.6,fontSize:12,padding:"8px 0"},children:e("captureLogUnavailable")}):(g.entries||[]).length===0?(0,r.jsx)("div",{style:{opacity:.6,fontSize:12,padding:"8px 0"},children:e("captureLogEmpty")}):(0,r.jsx)("div",{style:{maxHeight:260,overflow:"auto",marginTop:8},children:(0,r.jsx)("table",{style:{width:"100%",borderCollapse:"collapse",fontSize:12},children:(0,r.jsx)("tbody",{children:(g.entries||[]).map((x,J)=>{let G=av[x.action]||["\u2022","inherit"];return(0,r.jsxs)("tr",{style:{borderBottom:"1px solid rgba(127,127,127,0.12)"},children:[(0,r.jsx)("td",{style:{padding:"4px 6px",opacity:.55,whiteSpace:"nowrap",fontVariantNumeric:"tabular-nums"},children:lr(x.time?new Date(x.time).toISOString():"")}),(0,r.jsxs)("td",{style:{padding:"4px 6px",whiteSpace:"nowrap",color:G[1],fontWeight:600},children:[G[0]," ",x.action]}),(0,r.jsx)("td",{style:{padding:"4px 6px"},children:x.reason||""}),(0,r.jsx)("td",{style:{padding:"4px 6px",opacity:.55,maxWidth:220,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},title:x.preview||"",children:x.preview||""})]},J)})})})}):(0,r.jsx)("div",{style:{opacity:.6,fontSize:12,padding:"8px 0"},children:e("loading")})]}),(0,r.jsxs)("div",{className:"mc-card",style:{marginBottom:10},children:[(0,r.jsxs)("div",{style:{fontSize:12,fontWeight:700,marginBottom:6},children:["\u{1F916} ",e("captureAgentCards"),"\uFF08",z.length,"\uFF09"]}),z.length?(0,r.jsx)("ul",{style:{margin:0,padding:0,listStyle:"none"},children:z.map(x=>(0,r.jsxs)("li",{style:{display:"flex",alignItems:"center",gap:8,padding:"3px 4px",borderBottom:"1px solid rgba(127,127,127,0.12)",fontSize:12},children:[(0,r.jsx)("span",{className:"mc-kind",style:{background:qt[x.kind]||qt.other}}),(0,r.jsx)("span",{style:{flex:1,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:x.title}),x.status==="pending"&&(0,r.jsxs)("span",{className:"mc-status",style:{background:"#f59e0b"},children:["\u23F3 ",e("statusPending")]}),(0,r.jsx)("span",{style:{opacity:.55,fontSize:11},children:lr(x.updated)})]},x.path))}):(0,r.jsx)("div",{style:{opacity:.6,fontSize:12},children:e("noCards")})]}),o&&(0,r.jsxs)(r.Fragment,{children:[o.trend&&o.trend.length>0&&(()=>{let x=o.trend,J=Math.max(...x.map(ke=>ke.count),1),G=260,ge=50,Ee=G/x.length;return(0,r.jsxs)("div",{className:"mc-card",style:{marginBottom:10,padding:"10px 14px"},children:[(0,r.jsxs)("div",{style:{fontSize:11,opacity:.6,marginBottom:4},children:["\u{1F4C8} ",e("trendLabel")]}),(0,r.jsx)("svg",{width:G,height:ge,style:{display:"block",width:"100%",height:50},children:x.map((ke,we)=>{let K=Math.round(ke.count/J*(ge-4));return(0,r.jsx)("rect",{x:we*Ee+1,y:ge-K,width:Math.max(Ee-2,2),height:K,rx:1.5,fill:ke.count>0?"var(--dsw-alias-accent, #3b82f6)":"var(--dsw-alias-border-l1, #e5e7eb)",opacity:ke.count>0?.85:.35},ke.date)})})]})})(),(0,r.jsxs)("div",{className:"mc-stats",children:[(0,r.jsxs)("div",{className:"mc-stat mc-card",children:[(0,r.jsx)("b",{children:o.total}),(0,r.jsx)("span",{children:e("total")})]}),(0,r.jsxs)("div",{className:"mc-stat mc-card",children:[(0,r.jsx)("b",{children:o.today}),(0,r.jsx)("span",{children:e("todayAdd")})]}),(0,r.jsxs)("div",{className:"mc-stat mc-card",children:[(0,r.jsx)("b",{children:o.week}),(0,r.jsx)("span",{children:e("weekAdd")})]}),(0,r.jsxs)("div",{className:"mc-stat mc-card",children:[(0,r.jsx)("b",{children:o.tags}),(0,r.jsx)("span",{children:e("tags")})]})]}),(0,r.jsxs)("div",{className:"mc-card",style:{marginBottom:10},children:[(0,r.jsx)("div",{style:{fontSize:12,fontWeight:700,marginBottom:6},children:e("byKind")}),(0,r.jsx)("div",{style:{display:"flex",gap:10,flexWrap:"wrap"},children:Be.map(x=>(0,r.jsxs)("span",{style:{fontSize:12},children:[(0,r.jsx)("span",{className:"mc-kind",style:{background:wn.colors[x]||"#666"}}),e(Ct[x]),": ",o.byKind?.[x]||0]},x))})]}),p&&(p.budgetChars||p.recallLimit||p.embedding)&&(0,r.jsxs)("div",{className:"mc-card",style:{marginBottom:10,fontSize:12},children:[(0,r.jsx)("b",{children:e("budgetLabel")}),"\uFF1A",e("budgetChars")," ",(0,r.jsx)("b",{children:p.budgetChars||8e4})," \xB7 ",e("recallLimitLabel")," ",(0,r.jsx)("b",{children:p.recallLimit||5})," \xB7 ",e("embeddingLabel")," ",p.embedding?"ON":"OFF"]}),(0,r.jsxs)("div",{className:"mc-card",children:[(0,r.jsxs)("div",{style:{fontSize:12,fontWeight:700,marginBottom:6},children:[e("todayList"),"\uFF08",o.todayCards?.length||0,"\uFF09"]}),o.todayCards?.length?(0,r.jsx)("ul",{style:{margin:0,padding:0,listStyle:"none"},children:o.todayCards.map(x=>(0,r.jsx)(me,{title:x.title,kind:x.kind,updated:x.updated,path:x.path},x.path))}):(0,r.jsx)("div",{style:{opacity:.6,fontSize:12},children:e("noOptimize")})]})]})]}),t==="optimize"&&(0,r.jsxs)("div",{children:[(0,r.jsxs)("div",{className:"mc-card mc-audit-batchcard",style:{marginBottom:10,display:"flex",gap:10,alignItems:"center",flexWrap:"wrap"},children:[(0,r.jsx)("b",{style:{fontSize:12},children:e("organizeTitle")}),(0,r.jsx)("div",{style:{flex:1}}),(0,r.jsx)("button",{type:"button",className:"mc-btn",disabled:!!_,onClick:Ge,children:_==="scan"?e("exporting"):"\u{1F50D} "+e("scanAndOrganize")}),c&&c.merge?.length>0&&(0,r.jsx)("button",{type:"button",className:"mc-btn me-on",disabled:!!_,onClick:async()=>{if(window.confirm(e("oneClickOptimizeConfirm"))){j("oneclick");try{let x=JSON.stringify({cleanupStale:H}),G=await(await fetch(`${ee}/optimize-execute`,{method:"POST",headers:{"Content-Type":"application/json"},body:x})).json();G&&G.ok?(notify(`${e("oneClickOptimizeDone")}\uFF1A${G.plan.merged} ${e("optimizedMerged")}${H?` \xB7 ${G.plan.staleDeleted} ${e("optimizedStaleDeleted")}`:""}`),await ce(),n&&n(),u(null)):notify(e("mergeFail"),!1)}catch{notify(e("mergeFail"),!1)}finally{j("")}}},children:_==="oneclick"?e("exporting"):"\u26A1 "+e("oneClickOptimize")}),c&&c.merge?.length>0&&(0,r.jsxs)("label",{style:{fontSize:11,opacity:.7,display:"flex",alignItems:"center",gap:4},children:[(0,r.jsx)("input",{type:"checkbox",checked:H,onChange:x=>se(x.target.checked)}),e("oneClickAlsoStale")]})]}),!c&&(0,r.jsx)("div",{style:{opacity:.6,fontSize:12,marginBottom:10},children:e("scanHint")}),c&&(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)("div",{className:"mc-card",style:{marginBottom:10,display:"flex",flexDirection:"column",gap:8},children:[(0,r.jsxs)("div",{style:{display:"flex",gap:10,alignItems:"center"},children:[(0,r.jsx)("b",{style:{fontSize:12},children:e("mergePairs")}),(0,r.jsx)("div",{className:"spacer",style:{flex:1}}),c.merge?.length>0&&(0,r.jsx)("button",{type:"button",className:"mc-btn me-on",disabled:!!_,onClick:he,children:e(_==="merge"?"exporting":"batchMerge")})]}),(0,r.jsx)("div",{style:{fontSize:12,fontWeight:700,marginBottom:6},children:e("mergePairs")}),c.merge?.length?(0,r.jsx)("ul",{style:{margin:"0 0 12px",padding:0,listStyle:"none"},children:c.merge.map((x,J)=>(0,r.jsxs)("li",{style:{display:"flex",alignItems:"center",gap:8,padding:"4px 4px",borderBottom:"1px solid rgba(127,127,127,0.12)",fontSize:12},children:[(0,r.jsxs)("span",{style:{flex:1,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:[x.a.title," \u21C4 ",x.b.title]}),(0,r.jsxs)("span",{style:{opacity:.6},children:[Math.round(x.sim*100),"%"]}),(0,r.jsx)("button",{type:"button",className:"mc-btn",style:{padding:"2px 8px"},onClick:()=>de(x.a.path,x.b.path),children:e("mergeNow")})]},J))}):(0,r.jsx)("div",{style:{opacity:.6,fontSize:12,marginBottom:12},children:e("noOptimize")}),(0,r.jsxs)("div",{style:{fontSize:12,fontWeight:700,marginBottom:6},children:[e("staleCards"),"\uFF08",c.stale?.length||0,"\uFF09"]}),c.stale?.length>0&&(0,r.jsx)("div",{style:{marginBottom:6},children:(0,r.jsx)("button",{type:"button",className:"mc-btn",style:{color:"#f87171"},disabled:!!_,onClick:async()=>{if(!window.confirm(e("deleteConfirm")))return;j("clean");let x=0;for(let J of c.stale)try{await fetch(`${ee}/delete?path=${encodeURIComponent(J.path)}`),x++}catch{}j(""),notify(`${x} ${e("deletedStale")}`),await ce(),n&&n()},children:e("cleanStale")})}),c.stale?.length?(0,r.jsx)("ul",{style:{margin:0,padding:0,listStyle:"none"},children:c.stale.map(x=>(0,r.jsx)(me,{title:x.title,kind:"other",updated:x.updated,path:x.path},x.path))}):(0,r.jsx)("div",{style:{opacity:.6,fontSize:12},children:e("noOptimize")})]})}),(0,r.jsxs)("div",{className:"mc-card",style:{marginBottom:10},children:[(0,r.jsxs)("div",{style:{display:"flex",gap:10,alignItems:"center",flexWrap:"wrap",marginBottom:6},children:[(0,r.jsxs)("b",{style:{fontSize:12},children:["\u{1F9ED} ",e("refineTitle")]}),(0,r.jsx)("button",{type:"button",className:"mc-btn",disabled:!!_,onClick:T,children:e(_==="refine"?"exporting":"refineScan")}),(0,r.jsx)("span",{style:{opacity:.6,fontSize:11},children:e("refineHint")})]}),Y?.findings?.length?Y.findings.map((x,J)=>(0,r.jsxs)("div",{style:{borderTop:J?"1px solid rgba(127,127,127,0.14)":"none",padding:"7px 2px"},children:[(0,r.jsxs)("div",{style:{fontSize:12,marginBottom:3},children:[(0,r.jsx)("span",{style:{fontWeight:700,color:x.relation==="conflict"?"#ef4444":x.relation==="duplicate"?"#f59e0b":"#10b981"},children:e("refineRel_"+x.relation)}),(0,r.jsxs)("span",{style:{opacity:.55},children:[" \xB7 sim ",x.sim," \xB7 ",x.useModel||""]}),x.conflict?(0,r.jsx)("span",{style:{marginLeft:6},children:x.conflict}):null]}),(0,r.jsxs)("div",{style:{fontSize:12,opacity:.85,marginBottom:5},children:["A\uFF1A",x.a.title,(0,r.jsx)("br",{}),"B\uFF1A",x.b.title]}),(0,r.jsxs)("div",{style:{display:"flex",gap:6,flexWrap:"wrap"},children:[(0,r.jsx)("button",{type:"button",className:"mc-btn",style:{padding:"2px 8px"},disabled:!!_,onClick:()=>Ae(x,"keepA"),children:e("refineKeepA")}),(0,r.jsx)("button",{type:"button",className:"mc-btn",style:{padding:"2px 8px"},disabled:!!_,onClick:()=>Ae(x,"keepB"),children:e("refineKeepB")}),(0,r.jsx)("button",{type:"button",className:"mc-btn",style:{padding:"2px 8px"},disabled:!!_,onClick:()=>Ae(x,"keepBoth"),children:e("refineKeepBoth")}),(0,r.jsx)("button",{type:"button",className:"mc-btn",style:{padding:"2px 8px"},disabled:!!_,onClick:()=>Ae(x,"merge"),children:e("refineMerge")})]})]},J)):(0,r.jsx)("div",{style:{opacity:.6,fontSize:12},children:e(Y?"refineNone":"refineIdle")})]}),(0,r.jsxs)("div",{className:"mc-card",style:{marginBottom:10},children:[(0,r.jsxs)("div",{style:{display:"flex",gap:10,alignItems:"center",flexWrap:"wrap",marginBottom:6},children:[(0,r.jsxs)("b",{style:{fontSize:12},children:["\u{1F9F9} ",e("junkTitle")]}),(0,r.jsx)("button",{type:"button",className:"mc-btn",disabled:!!_,onClick:Ve,children:e(_==="junk"?"exporting":"junkScan")}),re?.length?(0,r.jsx)("button",{type:"button",className:"mc-btn",disabled:!!_,onClick:()=>Fe(re.map(x=>x.path)),children:e(_==="junkpurge"?"exporting":"junkRecycleAll")}):null,(0,r.jsx)("span",{style:{opacity:.6,fontSize:11},children:e("junkHint")})]}),re?.length?(0,r.jsx)("ul",{style:{margin:0,padding:0,listStyle:"none"},children:re.map((x,J)=>(0,r.jsxs)("li",{style:{display:"flex",alignItems:"center",gap:8,padding:"4px 2px",borderTop:J?"1px solid rgba(127,127,127,0.14)":"none",fontSize:12},children:[(0,r.jsx)("span",{style:{flex:1,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},title:x.reasons.join("\uFF1B"),children:x.title||x.path}),(0,r.jsx)("span",{style:{opacity:.55,fontSize:11},children:x.reasons[0]}),(0,r.jsx)("button",{type:"button",className:"mc-btn",style:{padding:"2px 8px"},disabled:!!_,onClick:()=>Fe([x.path]),children:e("junkRecycle")})]},J))}):(0,r.jsx)("div",{style:{opacity:.6,fontSize:12},children:e(re?"junkNone":"junkIdle")})]}),(0,r.jsxs)("div",{className:"mc-card",style:{marginBottom:10},children:[(0,r.jsxs)("div",{style:{display:"flex",gap:10,alignItems:"center",flexWrap:"wrap",marginBottom:6},children:[(0,r.jsxs)("b",{style:{fontSize:12},children:["\u{1F3AF} ",e("goalTitle")]}),(0,r.jsx)("button",{type:"button",className:"mc-btn",disabled:!!_,onClick:B,children:e(_==="goals"?"exporting":"goalScan")}),le?(0,r.jsxs)("span",{style:{opacity:.6,fontSize:11},children:[e("goalStats"),"\uFF1A",le.cached," / ",le.calls]}):null,(0,r.jsx)("span",{style:{opacity:.6,fontSize:11},children:e("goalHint")})]}),le?.clusters?.length?le.clusters.map((x,J)=>(0,r.jsxs)("div",{style:{borderTop:J?"1px solid rgba(127,127,127,0.14)":"none",padding:"7px 2px"},children:[(0,r.jsxs)("div",{style:{fontSize:12,marginBottom:4},children:[(0,r.jsx)("b",{children:x.goal})," ",(0,r.jsxs)("span",{style:{opacity:.55},children:["\xB7 ",x.members.length," ",e("goalCards")]})]}),(0,r.jsx)("ul",{style:{margin:"0 0 5px",padding:"0 0 0 16px",fontSize:12,opacity:.85},children:x.members.map((G,ge)=>(0,r.jsx)("li",{children:G.title},ge))}),(0,r.jsxs)("div",{style:{display:"flex",gap:6,flexWrap:"wrap"},children:[(0,r.jsx)("button",{type:"button",className:"mc-btn",style:{padding:"2px 8px"},disabled:!!_,onClick:()=>M(x),children:e("goalKeep")}),(0,r.jsx)("button",{type:"button",className:"mc-btn",style:{padding:"2px 8px"},disabled:!!_,onClick:()=>V(x),children:e("goalMerge")})]})]},J)):(0,r.jsx)("div",{style:{opacity:.6,fontSize:12},children:e(le?"goalNone":"goalIdle")})]})]})]})]})}var sd=[{key:"decision",label:"tplDecision",kind:"knowledge",tagKey:"tplDecisionTags",bodyKey:"tplDecisionBody"},{key:"bug",label:"tplBug",kind:"mistake",tagKey:"tplBugTags",bodyKey:"tplBugBody"},{key:"meeting",label:"tplMeeting",kind:"content",tagKey:"tplMeetingTags",bodyKey:"tplMeetingBody"},{key:"weekly",label:"tplWeekly",kind:"content",tagKey:"tplWeeklyTags",bodyKey:"tplWeeklyBody"}];function zv({t:e,newCard:t,setNewCard:n,onCreated:a}){if(!t)return null;let o=sd.find(h=>h.key===t.template),i=t.body||(o?e(o.bodyKey):""),l=t.kind||(o?o.kind:"knowledge"),s=t.tags||(o?e(o.tagKey):""),c=t._creating,u=h=>{let g=sd.find(k=>k.key===h);n(k=>({...k,template:h,kind:g?g.kind:k.kind,body:g?e(g.bodyKey):k.body,tags:g?e(g.tagKey):k.tags}))},p=async()=>{if(!(!t.title&&!i)){n(h=>({...h,_creating:!0}));try{(await fetch(`${ee}/write`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({title:t.title||e("untitled"),kind:l,tags:s.split(",").map(g=>g.trim()).filter(Boolean),body:i,source:"manual"})}).then(g=>g.json())).ok?(n(null),a&&a()):n(g=>({...g,_creating:!1}))}catch{n(g=>({...g,_creating:!1}))}}};return(0,r.jsxs)("div",{className:"me-overlay",onClick:()=>n(null),children:[(0,r.jsx)("style",{children:xn}),(0,r.jsxs)("div",{className:"me-dialog",style:{maxWidth:600,width:"92vw",maxHeight:"85vh"},onClick:h=>h.stopPropagation(),children:[(0,r.jsxs)("div",{className:"me-dialog-head",children:[(0,r.jsx)("h3",{children:e("newCard")}),(0,r.jsx)("button",{type:"button",className:"mc-btn",onClick:()=>n(null),children:e("close")})]}),(0,r.jsxs)("div",{className:"me-dialog-body",style:{display:"flex",flexDirection:"column",gap:10,overflow:"auto"},children:[(0,r.jsxs)("div",{style:{display:"flex",gap:6,flexWrap:"wrap"},children:[sd.map(h=>(0,r.jsx)("button",{type:"button",className:`mc-btn${t.template===h.key?" me-on":""}`,onClick:()=>u(h.key),children:e(h.label)},h.key)),(0,r.jsx)("button",{type:"button",className:`mc-btn${t.template===""?" me-on":""}`,onClick:()=>n(h=>({...h,template:"",body:"",tags:"",kind:"knowledge"})),children:e("tplBlank")})]}),(0,r.jsx)("select",{className:"mc-btn",value:l,onChange:h=>n(g=>({...g,kind:h.target.value})),style:{maxWidth:180,background:"var(--dsw-alias-bg-layer-1, #fff)",color:"var(--dsw-alias-label-primary, #111)"},children:Kf.map(h=>(0,r.jsx)("option",{value:h,style:{background:"var(--dsw-alias-bg-layer-1, #fff)",color:"var(--dsw-alias-label-primary, #111)"},children:e(Ct[h])||h},h))}),(0,r.jsx)("input",{type:"text",className:"mc-btn",placeholder:e("cardTitle"),value:t.title||"",onChange:h=>n(g=>({...g,title:h.target.value}))}),(0,r.jsx)("input",{type:"text",className:"mc-btn",placeholder:e("tagsHint"),value:s,onChange:h=>n(g=>({...g,tags:h.target.value}))}),(0,r.jsx)("textarea",{className:"mc-btn",placeholder:e("cardBody"),value:i,onChange:h=>n(g=>({...g,body:h.target.value})),style:{minHeight:180,resize:"vertical",fontFamily:"inherit"}}),(0,r.jsx)("div",{style:{display:"flex",justifyContent:"flex-end",gap:8},children:(0,r.jsx)("button",{type:"button",className:"mc-btn me-on",disabled:c,onClick:p,children:e(c?"exporting":"createCard")})})]})]})]})}async function fd(e){let t=String(e||"");if(!t)return!1;try{if(navigator.clipboard&&navigator.clipboard.writeText)return await navigator.clipboard.writeText(t),!0}catch{}try{let n=document.createElement("textarea");n.value=t,n.setAttribute("readonly",""),n.style.position="fixed",n.style.left="-9999px",n.style.top="0",document.body.appendChild(n),n.focus(),n.select();let a=!!(document.execCommand&&document.execCommand("copy"));return document.body.removeChild(n),a}catch{return!1}}function Rv({t:e,onClose:t}){let[n,a]=(0,m.useState)(""),[o,i]=(0,m.useState)(""),[l,s]=(0,m.useState)(""),[c,u]=(0,m.useState)(!0),[p,h]=(0,m.useState)(!1),[g,k]=(0,m.useState)(""),[L,R]=(0,m.useState)(""),A=(0,m.useRef)(null),v=(0,m.useRef)(null),f=()=>{let H=A.current;if(H)try{H.focus(),H.select()}catch{}},y=H=>{k(H),v.current&&clearTimeout(v.current),v.current=setTimeout(()=>k(""),2400)};(0,m.useEffect)(()=>{let H=!0;return fetch(ee+"/diagnostics").then(se=>se.json()).then(se=>{H&&(se&&se.ok?(i(String(se.diagnostics||"")),s(String(se.version||""))):h(!0))}).catch(()=>{H&&h(!0)}).finally(()=>{H&&u(!1)}),()=>{H=!1}},[]),(0,m.useEffect)(()=>{let H=se=>{se.key==="Escape"&&t()};return window.addEventListener("keydown",H),()=>{window.removeEventListener("keydown",H),v.current&&clearTimeout(v.current)}},[t]);let P=(()=>{try{return String(navigator.language||"").toLowerCase().startsWith("en")?"en":"zh"}catch{return"zh"}})(),F=()=>{let H=n.trim().split(`
1056
- `)[0]||"",se=vf({title:"[Bug] "+(H.slice(0,60)||"memory-eternal \u95EE\u9898"),body:bf({description:n,diagnostics:o,version:l})});try{window.open(se,"_blank","noopener")}catch{y(e("fbCopyFail"))}},z=async()=>{await fd(o)?(R(""),y(e("fbCopiedDiag"))):(R(o),y(e("fbCopyManual")))},I=async()=>{let H=wf({lang:P,description:n,diagnostics:o});await fd(H)?(R(""),y(e("fbCopiedPrompt"))):(R(H),y(e("fbCopyManual")))},_={width:"100%",resize:"vertical",padding:"8px 10px",borderRadius:10,border:"1px solid var(--dsw-alias-border-l2, #d1d5db)",background:"transparent",color:"inherit",font:"inherit",fontSize:13},j={margin:0,maxHeight:170,overflow:"auto",fontSize:11.5,lineHeight:1.55,padding:"8px 10px",borderRadius:10,background:"var(--dsw-alias-bg-layer-1, rgba(127,127,127,0.08))",whiteSpace:"pre-wrap",wordBreak:"break-word",overflowX:"hidden"};return(0,r.jsxs)("div",{className:"me-overlay",onClick:t,children:[(0,r.jsx)("style",{children:xn}),(0,r.jsxs)("div",{className:"me-dialog",style:{maxWidth:720},onClick:H=>H.stopPropagation(),children:[(0,r.jsxs)("div",{className:"me-dialog-head",children:[(0,r.jsxs)("h3",{children:["\u{1F41E} ",e("fbTitle")]}),(0,r.jsx)("button",{type:"button",className:"mc-btn",onClick:t,children:e("close")})]}),(0,r.jsxs)("div",{className:"me-dialog-body",style:{display:"flex",flexDirection:"column",gap:10},children:[(0,r.jsx)("div",{style:{fontSize:12,opacity:.72,lineHeight:1.6},children:e("fbWhy")}),(0,r.jsx)("textarea",{value:n,onChange:H=>a(H.target.value),placeholder:e("fbDesc"),rows:5,style:_}),(0,r.jsxs)("div",{children:[(0,r.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,marginBottom:4},children:[(0,r.jsx)("b",{style:{fontSize:12},children:e("fbDiag")}),(0,r.jsx)("div",{style:{flex:1}}),(0,r.jsx)("button",{type:"button",className:"mc-btn",onClick:z,disabled:!o,children:e("fbCopyDiag")})]}),(0,r.jsx)("pre",{style:j,children:c?e("fbLoading"):p?e("fbDiagFail"):o})]}),(0,r.jsxs)("div",{style:{display:"flex",gap:8,alignItems:"center",flexWrap:"wrap",justifyContent:"flex-end"},children:[(0,r.jsxs)("button",{type:"button",className:"mc-btn",onClick:()=>{if(!n.trim()){y(e("fbNeedDesc"));return}F()},style:{borderColor:"var(--dsw-alias-brand-primary, #3b82f6)",color:"var(--dsw-alias-brand-primary, #3b82f6)",fontWeight:600},children:["\u{1F680} ",e("fbOpenIssue")]}),(0,r.jsx)("span",{style:{opacity:.5,fontSize:12},children:e("fbOr")}),(0,r.jsxs)("button",{type:"button",className:"mc-btn",onClick:I,children:["\u{1F916} ",e("fbCopyPrompt")]})]}),g&&(0,r.jsx)("div",{style:{fontSize:12,color:"var(--dsw-alias-brand-primary, #3b82f6)"},children:g}),L&&(0,r.jsxs)("div",{children:[(0,r.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,marginBottom:4},children:[(0,r.jsxs)("b",{style:{fontSize:12,color:"#b45309"},children:["\u26A0 ",e("fbCopyFail")]}),(0,r.jsx)("span",{style:{fontSize:11.5,opacity:.75},children:e("fbCopyManual")}),(0,r.jsx)("div",{style:{flex:1}}),(0,r.jsx)("button",{type:"button",className:"mc-btn",onClick:f,children:e("fbSelectAll")})]}),(0,r.jsx)("textarea",{ref:A,readOnly:!0,value:L,rows:7,style:_})]})]})]})]})}function Lv({t:e,tab:t,onTab:n,onClose:a,onFeedback:o,onReplay:i}){let[l,s]=(0,m.useState)(null);(0,m.useEffect)(()=>{if(!l)return;let h=g=>{g.key==="Escape"&&s(null)};return window.addEventListener("keydown",h),()=>window.removeEventListener("keydown",h)},[l]);let c=[{id:"group",label:e("supportGroup")},{id:"sponsor",label:e("supportSponsor")},{id:"legacy",label:e("supportLegacy")}],u="https://github.com/EternalNight996/memory-eternal/blob/main/README.md",p=(h,g)=>(0,r.jsxs)("figure",{children:[(0,r.jsx)("img",{src:h,alt:g,loading:"lazy",title:e("clickToZoom"),onClick:k=>s(k.currentTarget.currentSrc||h),onError:k=>{let L=k.currentTarget;L.dataset.fb||(L.dataset.fb="1",L.src="https://raw.githubusercontent.com/EternalNight996/memory-eternal/main/assets/support/"+String(h).split("/").pop())}}),(0,r.jsx)("figcaption",{children:g})]});return(0,r.jsxs)("div",{className:"me-overlay",onClick:a,children:[(0,r.jsx)("style",{children:xn}),(0,r.jsxs)("div",{className:"me-dialog me-support",onClick:h=>h.stopPropagation(),children:[(0,r.jsxs)("div",{className:"me-dialog-head",children:[(0,r.jsxs)("h3",{children:["\u{1F4AC} ",e("supportTitle")]}),(0,r.jsx)("div",{className:"me-head-actions",children:(0,r.jsx)("button",{type:"button",className:"mc-btn",onClick:a,children:e("close")})})]}),(0,r.jsx)("div",{className:"me-support-tabs",children:c.map(h=>(0,r.jsx)("button",{type:"button",className:`me-support-tab${t===h.id?" active":""}`,onClick:()=>n(h.id),children:h.label},h.id))}),(0,r.jsxs)("div",{className:"me-support-body",children:[t==="group"&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("p",{className:"me-support-note",children:e("supportGroupHint")}),(0,r.jsxs)("div",{className:"me-support-qr",children:[p("support/group-qr.jpg",e("supportGroupQQ")),p("support/group-wechat.jpg",e("supportGroupWechat"))]}),(0,r.jsx)("p",{className:"me-support-note",style:{marginTop:12},children:(0,r.jsxs)("a",{className:"me-support-link",href:u,target:"_blank",rel:"noreferrer",children:[e("supportReadme")," \u2197"]})})]}),t==="sponsor"&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("p",{className:"me-support-note",children:e("supportSponsorHint")}),(0,r.jsxs)("div",{className:"me-support-qr",children:[p("support/wechat-pay.jpg","\u5FAE\u4FE1\u6536\u6B3E\u7801"),p("support/wechat-reward.jpg","\u5FAE\u4FE1\u8D5E\u8D4F\u7801")]}),(0,r.jsxs)("p",{className:"me-support-note",style:{marginTop:12},children:["\u6253\u8D4F\u5B8C\u5168\u81EA\u613F\uFF0C\u4E0D\u5F71\u54CD\u4EFB\u4F55\u529F\u80FD\uFF1B\u63D2\u4EF6\u672C\u4F53\u59CB\u7EC8\u5F00\u6E90\u514D\u8D39\uFF08MIT\uFF09\u3002",(0,r.jsx)("br",{}),(0,r.jsx)("a",{className:"me-support-link",href:"https://github.com/EternalNight996/memory-eternal/blob/main/SPONSOR.md",target:"_blank",rel:"noreferrer",children:"SPONSOR.md \u2197"})]})]}),t==="legacy"&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("h3",{style:{margin:"0 0 8px",fontSize:14},children:e("supportLegacyTitle")}),(0,r.jsx)("p",{className:"me-support-note",children:e("supportLegacyBody")}),(0,r.jsxs)("div",{className:"me-support-actions",children:[(0,r.jsxs)("a",{className:"mc-btn",href:u,target:"_blank",rel:"noreferrer",children:["\u{1F4D6} ",e("supportReadme")," \u2197"]}),(0,r.jsxs)("a",{className:"mc-btn",href:"https://github.com/EternalNight996/memory-eternal/releases",target:"_blank",rel:"noreferrer",children:["\u{1F3F7} ",e("supportReleases")," \u2197"]})]})]})]}),(0,r.jsxs)("div",{className:"me-support-actions",style:{padding:"0 18px 16px",marginTop:0},children:[(0,r.jsxs)("button",{type:"button",className:"mc-btn",onClick:o,children:["\u{1F41E} ",e("supportFeedback")]}),(0,r.jsxs)("button",{type:"button",className:"mc-btn",onClick:i,children:["\u2728 ",e("supportReplay")]})]})]}),l&&(0,r.jsxs)("div",{className:"me-lightbox",role:"dialog","aria-modal":"true","aria-label":e("close"),onClick:h=>{h.stopPropagation(),s(null)},children:[(0,r.jsx)("button",{type:"button",className:"me-lightbox-close",onClick:h=>{h.stopPropagation(),s(null)},"aria-label":e("close"),children:"\u2715"}),(0,r.jsx)("img",{src:l,alt:"",onClick:h=>h.stopPropagation()})]})]})}function Dv({t:e,onDone:t}){let[n,a]=(0,m.useState)(0),o="https://github.com/EternalNight996/memory-eternal",i=[{title:e("onboardStep0Title"),body:e("onboardStep0Body")},{title:e("onboardStep1Title"),body:e("onboardStep1Body")},{title:e("onboardStep2Title"),body:e("onboardStep2Body")},{title:e("onboardStep3Title"),body:e("onboardStep3Body")}],l=n===i.length-1;return(0,m.useEffect)(()=>{let s=c=>{c.key==="Escape"&&t()};return window.addEventListener("keydown",s),()=>window.removeEventListener("keydown",s)},[t]),(0,r.jsxs)("div",{className:"me-overlay",style:{zIndex:1006},children:[(0,r.jsx)("style",{children:xn}),(0,r.jsxs)("div",{className:"me-dialog me-guide",children:[(0,r.jsxs)("div",{className:"me-guide-head",children:[(0,r.jsxs)("b",{children:["\u2728 ",e("onboardTitle")]}),(0,r.jsx)("div",{className:"spacer"}),(0,r.jsx)("span",{style:{fontSize:11,opacity:.55},children:e("onboardSub")})]}),(0,r.jsx)("div",{className:"me-guide-dots",children:i.map((s,c)=>(0,r.jsx)("span",{className:`me-guide-dot${c<=n?" on":""}`},c))}),(0,r.jsxs)("div",{className:"me-guide-body",children:[(0,r.jsx)("h3",{children:i[n].title}),(0,r.jsx)("p",{children:i[n].body}),n===0&&(0,r.jsxs)("div",{className:"me-guide-github",children:[(0,r.jsxs)("button",{type:"button",className:"mc-btn me-on",onClick:()=>kl(o),children:["\u2605 ",e("onboardStar")]}),(0,r.jsxs)("button",{type:"button",className:"mc-btn",onClick:()=>kl(o+"/fork"),children:["\u2442 ",e("onboardFork")]}),(0,r.jsx)("span",{className:"me-guide-github-hint",children:e("onboardStarHint")})]}),n===1&&(0,r.jsxs)("div",{className:"me-guide-chips",children:[(0,r.jsx)("span",{children:"\u81EA\u52A8\u6C89\u6DC0"}),(0,r.jsx)("span",{children:"\u5148\u5BA1\u540E\u5165"}),(0,r.jsx)("span",{children:"\u53EA\u53EC\u56DE\u76F8\u5173\u5C0F\u5757"})]}),n===2&&(0,r.jsxs)("div",{className:"me-guide-like",children:[(0,r.jsx)("span",{className:"me-guide-thumb",children:"\u{1F44D}"})," \u6709\u7528"]}),n===3&&(0,r.jsxs)("div",{className:"me-guide-chips",children:[(0,r.jsxs)("span",{children:["\u{1F4AC} ",e("supportGroup")]}),(0,r.jsxs)("span",{children:["\u2615 ",e("supportSponsor")]}),(0,r.jsxs)("span",{children:["\u{1F9E9} ",e("supportLegacy")]}),(0,r.jsxs)("span",{children:["\u{1F41E} ",e("supportFeedback")]})]})]}),(0,r.jsxs)("div",{className:"me-guide-actions",children:[(0,r.jsx)("button",{type:"button",className:"mc-btn",onClick:t,children:e("onboardSkip")}),(0,r.jsx)("div",{className:"spacer"}),(0,r.jsx)("span",{className:"me-guide-tip",children:e("onboardTip")}),n>0&&(0,r.jsx)("button",{type:"button",className:"mc-btn",onClick:()=>a(s=>s-1),children:e("onboardBack")}),l?(0,r.jsx)("button",{type:"button",className:"mc-btn me-on",onClick:t,children:e("onboardStart")}):(0,r.jsx)("button",{type:"button",className:"mc-btn me-on",onClick:()=>a(s=>s+1),children:e(n===0?"onboardStarred":"onboardNext")})]})]})]})}function Pv({t:e,card:t,query:n,onClose:a,onDelete:o,onFeedback:i,onNavigate:l,onTagClick:s,allCards:c,onOpenRelated:u,onKindChange:p,onSaved:h}){let[g,k]=(0,m.useState)(0),[L,R]=(0,m.useState)(""),[A,v]=(0,m.useState)(()=>{try{let K=localStorage.getItem("me-read-width");return["narrow","mid","wide"].includes(K)?K:"mid"}catch{return"mid"}}),f={narrow:720,mid:900,wide:1180};(0,m.useEffect)(()=>{let K=ue=>{if(ue.key==="Escape"){a();return}let Me=String(ue.target&&ue.target.tagName||"").toLowerCase();Me==="input"||Me==="textarea"||Me==="select"||ue.target&&ue.target.isContentEditable||(ue.key==="j"&&l?(ue.preventDefault(),l(1)):ue.key==="k"&&l&&(ue.preventDefault(),l(-1)))};return window.addEventListener("keydown",K),()=>window.removeEventListener("keydown",K)},[a,l]);let y=async(K,ue)=>{let Me=await fd(String(K||""));R(Me?e("copied")+" \xB7 "+ue:e("copyFail")),setTimeout(()=>R(""),1500)},{meta:P,body:F}=(0,m.useMemo)(()=>ml(t.text||""),[t.text]),z=K=>{let ue=P.find(([Me])=>String(Me).toLowerCase()===K);return ue?ue[1]:""},I=pf(z("tags")),_=t.kind||z("kind")||"knowledge",j=String(t.status||z("status")||"approved").toLowerCase(),H=qt[_]||"#6B7280",se=(F||"").length>460,he=(0,m.useMemo)(()=>vd(F,t.title),[F,t.title]),ce=(0,m.useMemo)(()=>{let K=bd(t);if(K)return K;let Me=(he.split(/\r?\n/).map(fe=>fe.trim()).find(fe=>fe&&!/^#{1,2}\s/.test(fe))||"").replace(/[#>*_`]/g,"").replace(/\s+/g," ").trim();return Me.length>150?Me.slice(0,148)+"\u2026":Me},[t,he]),Ge=(0,m.useMemo)(()=>Tv(he),[he]),Y=(0,m.useMemo)(()=>{let K=new Set(I);return(c||[]).filter(ue=>ue.path!==t.path&&(ue.tags||[]).some(Me=>K.has(Me))).slice(0,3)},[c,t.path,I.join("|")]),je=()=>{$(String(t.title||"")),M((Array.isArray(I)?I:[]).join(", ")),de(String(F||"")),x(""),Fe(!0)},T=()=>{Fe(!1),x("")},Ae=async()=>{let K=String(le||"").trim(),ue=String(V||"").trim();if(!K){x(e("editTitleEmpty"));return}if(!ue){x(e("editBodyEmpty"));return}let Me=String(B||"").split(/[,,\n]+/).map(fe=>fe.trim()).filter(Boolean);Be(!0),x("");try{let fe=await fetch(`${ee}/card/update`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:t.path,title:K,tags:Me,body:ue})}).then(Nt=>Nt.json());if(!fe||!fe.ok){x(fe&&fe.error||e("editFail"));return}Fe(!1),h&&await h({path:t.path,status:j,title:K})}catch(fe){x(String(fe&&fe.message||fe))}finally{Be(!1)}},[re,te]=(0,m.useState)(!0),[Ve,Fe]=(0,m.useState)(!1),[le,$]=(0,m.useState)(""),[B,M]=(0,m.useState)(""),[V,de]=(0,m.useState)(""),[Ie,Be]=(0,m.useState)(!1),[me,x]=(0,m.useState)(""),J=(0,m.useRef)(null),[G,ge]=(0,m.useState)(""),Ee=K=>{let ue=J.current;if(!ue)return;let Me=document.getElementById(K);if(!Me||!ue.contains(Me))return;let fe=Me.getBoundingClientRect().top-ue.getBoundingClientRect().top+ue.scrollTop-12;ue.scrollTo({top:Math.max(0,fe),behavior:"smooth"})},ke=K=>{if(!re){te(!0),setTimeout(()=>Ee(K),80);return}Ee(K)},we=K=>{let ue=K.currentTarget,Me=ue.scrollHeight-ue.clientHeight;k(Me<=0?100:Math.min(100,Math.max(0,ue.scrollTop/Me*100)));let fe=ue.querySelectorAll(".md-doc .md-h"),Nt="",Yt=ue.getBoundingClientRect().top+28;for(let Ye of fe)if(Ye.getBoundingClientRect().top<=Yt)Nt=Ye.id;else break;ge(Nt)};return(0,r.jsxs)("div",{className:"me-overlay",onClick:a,children:[(0,r.jsx)("style",{children:xn}),(0,r.jsxs)("div",{className:"me-dialog me-reader-dialog",onClick:K=>K.stopPropagation(),children:[(0,r.jsxs)("div",{className:"me-dialog-head",children:[(0,r.jsxs)("h3",{title:t.title,children:[(0,r.jsx)("span",{style:{marginRight:6,flex:"none"},children:Ar[_]||"\u{1F4CE}"}),t.title]}),(0,r.jsxs)("div",{className:"me-head-actions",children:[L&&(0,r.jsx)("span",{style:{fontSize:11.5,color:"#10b981",whiteSpace:"nowrap"},children:L}),(0,r.jsxs)("button",{type:"button",className:"mc-btn",title:e("copyBody"),onClick:()=>y(F,e("copyBody")),children:["\u{1F4CB} ",e("copyBody")]}),(0,r.jsxs)("button",{type:"button",className:"mc-btn",title:e("copyPath"),onClick:()=>y(t.path,e("copyPath")),children:["\u{1F517} ",e("copyPath")]}),(0,r.jsx)("button",{type:"button",className:"mc-btn",title:e("editCard"),onClick:Ve?T:je,children:Ve?"\u2716 "+e("editCancel"):"\u270F\uFE0F "+e("editCard")}),(0,r.jsxs)("button",{type:"button",className:"mc-btn",title:e("readWidth"),onClick:()=>{let K=["narrow","mid","wide"],ue=K[(K.indexOf(A)+1)%K.length];v(ue);try{localStorage.setItem("me-read-width",ue)}catch{}},children:[e("readWidth")," \xB7 ",e(A==="narrow"?"widthNarrow":A==="wide"?"widthWide":"widthMid")]}),(0,r.jsxs)("button",{type:"button",className:"mc-btn",onClick:()=>i&&i(!0),children:["\u{1F44D} ",e("fbUseful")]}),(0,r.jsxs)("button",{type:"button",className:"mc-btn",onClick:()=>i&&i(!1),children:["\u{1F44E} ",e("fbIrr")]}),se&&(0,r.jsx)("button",{type:"button",className:"mc-btn","aria-expanded":re,onClick:()=>te(K=>!K),children:e(re?"collapse":"expand")}),(0,r.jsx)("button",{type:"button",className:"mc-btn",style:{color:"#f87171"},onClick:()=>{window.confirm(e("deleteConfirm"))&&o&&o(t.path)},children:e("delete")}),p&&j==="approved"&&(_==="core"?(0,r.jsx)("button",{type:"button",className:"mc-btn",onClick:()=>p(t.path,"knowledge"),children:e("unsetCore")}):(0,r.jsxs)("button",{type:"button",className:"mc-btn",onClick:()=>p(t.path,"core"),children:["\u2B50 ",e("setCore")]})),(0,r.jsx)("button",{type:"button",className:"mc-btn",onClick:a,children:e("close")})]})]}),p&&(0,r.jsxs)("div",{className:"me-core-banner"+(_==="core"?" on":""),children:[(0,r.jsxs)("div",{className:"me-core-banner-k",children:["\u2B50 ",e("kindCore")]}),(0,r.jsx)("div",{className:"me-core-banner-desc",children:e(_==="core"?"coreActiveHint":"coreInactiveHint")}),j==="approved"?(0,r.jsx)("button",{type:"button",className:"mc-btn me-core-btn",onClick:()=>p(t.path,_==="core"?"knowledge":"core"),children:_==="core"?e("unsetCore"):"\u2B50 "+e("setCore")}):(0,r.jsx)("span",{className:"me-core-banner-desc",style:{flex:"none",opacity:.6},children:e("coreNeedApproval")})]}),(0,r.jsxs)("div",{className:"md-meta",children:[(0,r.jsxs)("span",{className:"md-chip md-chip-kind",style:{color:H,borderColor:H+"59",background:H+"1a"},children:[Ar[_]||"\u{1F4CE}"," ",e(Ct[_]||"kindKnowledge")]}),(0,r.jsxs)("span",{className:"md-chip "+(j==="approved"?"md-chip-st-ok":j==="pending"?"md-chip-st-warn":"md-chip-st-bad"),children:[j==="approved"?"\u2705":j==="pending"?"\u23F3":"\u26D4"," ",e(j==="approved"?"statusApproved":j==="pending"?"statusPending":"statusRejected")]}),(Array.isArray(I)?I:[]).slice(0,8).map(K=>(0,r.jsxs)("button",{type:"button",className:"md-chip md-chip-tag mc-tag-click",title:K,onClick:()=>s&&s(K),children:["\u{1F3F7} ",K]},K)),!!z("updated")&&(0,r.jsxs)("span",{className:"md-chip md-date",children:["\u{1F552} ",e("updated")," ",lr(z("updated"))]}),!!z("source")&&(0,r.jsxs)("span",{className:"md-chip md-date",children:["\u{1F4E5} ",z("source")]})]}),(0,r.jsx)("div",{className:"me-read-progress","aria-hidden":"true",children:(0,r.jsx)("i",{style:{width:g+"%"}})}),(0,r.jsxs)("div",{className:"me-reader-body",children:[(0,r.jsxs)("div",{className:"me-dialog-body me-reader-main",style:{maxWidth:f[A],margin:"0 auto",width:"100%",boxSizing:"border-box",...re?{}:{maxHeight:300,overflow:"hidden"}},ref:J,onScroll:we,onClick:re?void 0:K=>{K.stopPropagation(),te(!0)},children:[!Ve&&!!ce&&(0,r.jsxs)("div",{className:"me-reader-callout",children:[(0,r.jsx)("span",{className:"me-reader-callout-k",children:e(Jf(t))}),(0,r.jsx)("p",{children:ce})]}),Ve?(0,r.jsxs)("div",{className:"me-edit-form",style:{display:"flex",flexDirection:"column",gap:8,padding:"2px 0 14px"},children:[(0,r.jsx)("div",{style:{fontSize:11.5,opacity:.62,lineHeight:1.6},children:e("editHint")}),(0,r.jsx)("label",{style:{fontSize:12,fontWeight:600,opacity:.8},htmlFor:"me-edit-title",children:e("editTitle")}),(0,r.jsx)("input",{id:"me-edit-title",value:le,onChange:K=>$(K.target.value),maxLength:200,style:{width:"100%",padding:"8px 10px",borderRadius:10,border:"1px solid var(--dsw-alias-border-l2, #d1d5db)",background:"transparent",color:"inherit",font:"inherit",fontSize:13,boxSizing:"border-box"}}),(0,r.jsx)("label",{style:{fontSize:12,fontWeight:600,opacity:.8},htmlFor:"me-edit-tags",children:e("editTags")}),(0,r.jsx)("input",{id:"me-edit-tags",value:B,onChange:K=>M(K.target.value),placeholder:e("editTagsHint"),style:{width:"100%",padding:"8px 10px",borderRadius:10,border:"1px solid var(--dsw-alias-border-l2, #d1d5db)",background:"transparent",color:"inherit",font:"inherit",fontSize:13,boxSizing:"border-box"}}),(0,r.jsx)("label",{style:{fontSize:12,fontWeight:600,opacity:.8},htmlFor:"me-edit-body",children:e("editBody")}),(0,r.jsx)("textarea",{id:"me-edit-body",value:V,onChange:K=>de(K.target.value),spellCheck:!1,rows:18,style:{width:"100%",padding:"8px 10px",borderRadius:10,border:"1px solid var(--dsw-alias-border-l2, #d1d5db)",background:"transparent",color:"inherit",font:"inherit",fontSize:13,boxSizing:"border-box",resize:"vertical",minHeight:260,lineHeight:1.7,fontFamily:"ui-monospace, SFMono-Regular, Menlo, monospace"}}),me&&(0,r.jsx)("div",{style:{color:"#f87171",fontSize:12},children:me}),(0,r.jsxs)("div",{style:{display:"flex",gap:8,justifyContent:"flex-end",alignItems:"center"},children:[(0,r.jsx)("span",{style:{marginRight:"auto",fontSize:11.5,opacity:.55},children:t.path}),(0,r.jsx)("button",{type:"button",className:"mc-btn",onClick:T,disabled:Ie,children:e("editCancel")}),(0,r.jsx)("button",{type:"button",className:"mc-btn",onClick:Ae,disabled:Ie,style:{borderColor:"var(--dsw-alias-brand-primary, #3b82f6)",color:"var(--dsw-alias-brand-primary, #3b82f6)",fontWeight:600},children:e(Ie?"editSaving":"editSave")})]})]}):(0,r.jsx)("div",{className:"md-doc",dangerouslySetInnerHTML:{__html:_o(he)}})]}),(0,r.jsxs)("aside",{className:"me-reader-side",children:[Ge.length>0&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"side-label",children:e("contents")}),(0,r.jsx)("div",{className:"me-reader-toc",children:Ge.map((K,ue)=>(0,r.jsxs)("button",{type:"button",className:`lv${K.level}${G===K.id?" active":""}`,onClick:()=>ke(K.id),children:[(0,r.jsx)("span",{children:String(ue+1).padStart(2,"0")}),K.text]},K.id))})]}),(0,r.jsx)("div",{className:"side-label",children:e("source")}),(0,r.jsx)("div",{className:"me-reader-side-val",children:z("source")||t.submittedBy||"\u2014"}),(0,r.jsx)("div",{className:"side-label",children:e("updated")}),(0,r.jsx)("div",{className:"me-reader-side-val",children:lr(z("updated")||t.updated)}),(0,r.jsx)("div",{className:"side-label",children:e("file")}),(0,r.jsx)("div",{className:"me-reader-side-val mono",children:t.path}),I.length>0&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"side-label",children:e("tags")}),(0,r.jsx)("div",{className:"me-reader-tags",children:I.slice(0,8).map(K=>(0,r.jsxs)("button",{type:"button",className:"mc-chip",onClick:()=>s&&s(K),children:["#",K]},K))})]}),Y.length>0&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"side-label",children:e("related")}),(0,r.jsx)("div",{className:"me-reader-related",children:Y.map(K=>(0,r.jsxs)("button",{type:"button",onClick:()=>u&&u(K),children:[(0,r.jsx)("span",{children:Ar[K.kind]||"\u{1F4CE}"}),(0,r.jsx)("b",{children:K.title})]},K.path))})]})]})]}),!re&&(0,r.jsxs)("div",{className:"md-collapsed-hint",onClick:K=>{K.stopPropagation(),te(!0)},children:[e("expand")," \u2304"]})]})]})}function Av({t:e,onOpen:t,all:n,onAllChange:a,onMutate:o,active:i,visible:l}){let[s,c]=(0,m.useState)([]),[u,p]=(0,m.useState)(null),[h,g]=(0,m.useState)(null),[k,L]=(0,m.useState)(!1),R=(0,m.useRef)(0),A=(0,m.useRef)(null);A.current||(A.current=Df(96));let v=(0,m.useRef)(0),f=(0,m.useRef)(0),y=(0,m.useRef)(s);y.current=s;let P=(0,m.useRef)(n),F=(0,m.useRef)({requests:0,cacheHits:0,errors:0,timeouts:0,lastMs:0,lastBytes:0}),z=(0,m.useCallback)(async(T,Ae={})=>{let re=Array.isArray(T)?T.filter(Boolean):[],te=(n?"all|":"")+ea(re);if(!Ae.force){let B=A.current.get(te);if(B)return F.current.cacheHits+=1,p(B),c(re),g(null),L(!1),B}let Ve=++v.current;L(!0),g(null);let Fe=new AbortController,le=setTimeout(()=>{try{Fe.abort()}catch{}},1600),$=performance.now();F.current.requests+=1;try{let B=await fetch(Mf(ee,re,{all:n}),{signal:Fe.signal}),M=await B.json().catch(()=>null);if(Ve!==v.current)return null;if(!B.ok||!M||!M.ok)throw new Error(M&&M.error||"HTTP "+B.status);let V=Af(M);if(!V.ok)try{console.warn("[memory-eternal] \u5206\u5C42\u54CD\u5E94\u8D8A\u754C\uFF1A"+V.problems.join("\uFF1B"))}catch{}return A.current.set(te,M),F.current.lastMs=Math.round(performance.now()-$),F.current.lastBytes=V.bytes,f.current||(f.current=Math.round(performance.now())),p(M),c(re),g(null),M}catch(B){if(Ve!==v.current)return null;let M=Lf(B,{timeoutMs:1600,elapsedMs:performance.now()-$});M.timeout&&(F.current.timeouts+=1),F.current.errors+=1;try{console.warn("[memory-eternal] \u5C42\u7EA7\u52A0\u8F7D\u5931\u8D25 @ "+te+"\uFF1A"+M.message)}catch{}return g({...M,target:ea(re),segments:re.slice()}),null}finally{clearTimeout(le),Ve===v.current&&L(!1)}},[n]);(0,m.useEffect)(()=>{P.current!==n&&(P.current=n,A.current.clear(),i&&z([],{force:!0}))},[n,i,z]),(0,m.useEffect)(()=>{!i||u||k||z([])},[i,u,k,z]),(0,m.useEffect)(()=>{l&&u&&R.current++},[l,u]);let I=(0,m.useCallback)(T=>{let Ae=Array.isArray(T)?T:Tf(T&&T.path!==void 0?T.path:T);ea(Ae)!==ea(y.current)&&z(Ae)},[z]),_=(0,m.useCallback)(T=>{T&&z(y.current.concat(String(T)))},[z]),j=(0,m.useCallback)(()=>{A.current.clear();let T=h&&Array.isArray(h.segments)?h.segments:y.current;z(T,{force:!0})},[z,h]),H=(0,m.useCallback)(async()=>(A.current.clear(),z(y.current,{force:!0})),[z]),se=(0,m.useCallback)(async T=>{try{let re=await(await fetch(`${ee}/delete?path=${encodeURIComponent(T)}`)).json();return re&&re.ok?(await H(),o&&o(),!0):!1}catch{return!1}},[H,o]),he=(0,m.useCallback)(async T=>{if(!T||T.length<2)return!1;try{let Ae=await fetch(`${ee}/merge?paths=${encodeURIComponent(T.join(","))}`).then(re=>re.json());return Ae&&Ae.ok?(await H(),o&&o(),!0):!1}catch{return!1}},[H,o]);(0,m.useEffect)(()=>{let T=()=>{let Ae=typeof globalThis.__meGraphRuntime=="function"?globalThis.__meGraphRuntime():null;return{path:ea(y.current),crumbs:u&&Array.isArray(u.crumbs)?u.crumbs.map(re=>({path:re.path,label:re.label,labelKey:re.labelKey,count:re.count})):[],level:u&&u.level?{mode:u.level.mode,total:u.level.total,items:u.level.items.length,edges:u.level.edges.length}:null,loading:!!k,error:h?{timeout:!!h.timeout,message:h.message,target:h.target||""}:null,requests:F.current.requests,cacheHits:F.current.cacheHits,errors:F.current.errors,timeouts:F.current.timeouts,lastMs:F.current.lastMs,lastBytes:F.current.lastBytes,firstLevelMs:f.current,cacheSize:A.current.size,timeoutMs:1600,runtime:Ae}};return globalThis.__meGraphProbe=T,()=>{if(globalThis.__meGraphProbe===T)try{delete globalThis.__meGraphProbe}catch{globalThis.__meGraphProbe=void 0}}},[u,k,h]);let ce=u&&u.level?u.level:null,Ge=ce?ce.items.length:0,Y=ce?ce.total:0,je=ce?ce.edges.length:0;return(0,r.jsxs)("div",{className:"me-graph me-v5-graph",children:[(0,r.jsx)("style",{children:xn}),(0,r.jsxs)("div",{className:"mc-v5-pagehead mc-v5-graphhead",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{className:"mc-v5-eyebrow",children:"KNOWLEDGE GRAPH"}),(0,r.jsx)("h1",{children:e("graphTab")}),(0,r.jsx)("p",{children:e("graphHint")})]}),(0,r.jsx)("span",{className:"mc-v5-pagecount",children:u?`${Ge} ${e("graphItems")} \xB7 ${Y} ${e("graphCardsUnit")} \xB7 ${je} ${e("edges")}`:""})]}),!u&&!h&&(0,r.jsx)(eg,{text:e("loadingGraph")}),!u&&h&&(0,r.jsxs)("div",{className:"mc-empty",style:{display:"flex",flexDirection:"column",gap:10,alignItems:"center"},children:[(0,r.jsxs)("span",{children:[h.timeout?e("graphLevelTimeout").replace("{ms}",String(1600)):e("graphLevelError"),"\uFF1A",h.message]}),(0,r.jsx)("button",{type:"button",className:"mc-btn",onClick:j,children:e("graphRetry")})]}),u&&Ge===0&&(0,r.jsx)("div",{className:"mc-empty",children:e("graphEmptyLevel")}),u&&Ge>0&&(0,r.jsx)(Iv,{level:ce,crumbs:u.crumbs||[],onOpen:t,onDelete:se,onMerge:he,onDrill:_,onNavigate:I,onRetry:j,error:u?h:null,loading:k,t:e,all:n,onAllChange:a,fitTrigger:R.current})]})}var wn={colors:{core:"#FF7A45",skill:"#A78BFA",project:"#60A5FA",knowledge:"#34D399",content:"#FBBF24",prompt:"#C084FC",business:"#F472B6",tool:"#22B8CF",mistake:"#FB7185",other:"#8CA0B3"},deep:{core:"#E8590C",skill:"#7C3AED",project:"#2563EB",knowledge:"#059669",content:"#D97706",prompt:"#9333EA",business:"#DB2777",tool:"#0891B2",mistake:"#E11D48",other:"#64748B"},shapes:{core:"diamond",skill:"hexagon",project:"circle",knowledge:"circle",content:"rect",prompt:"diamond",business:"hexagon",tool:"circle",mistake:"diamond",other:"circle"}};function Dr(e,t){try{let n=globalThis;if(n.__meGraphDrawWarned)return;n.__meGraphDrawWarned=!0,console.warn("[memory-eternal] \u77E5\u8BC6\u56FE\u8C31\u7ED8\u5236\u5F02\u5E38\uFF08\u5DF2\u515C\u5E95\uFF0C\u4E0D\u518D\u6574\u9875\u767D\u5C4F\uFF09"+(t?" @ "+t:""),e)}catch{}}function Sl({value:e,small:t}){let n=typeof e=="number"&&Number.isFinite(e),a=n?Math.max(0,Math.min(100,e)):0;return(0,r.jsx)("div",{className:"me-progress"+(t?" me-progress-sm":"")+(n?" is-determinate":""),role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":n?Math.round(a):void 0,"aria-label":"\u52A0\u8F7D\u8FDB\u5EA6",children:(0,r.jsx)("span",{className:"me-progress-fill",style:n?{width:Math.max(3,a)+"%"}:void 0})})}function eg({text:e,value:t}){return(0,r.jsxs)("div",{className:"me-loading",role:"status","aria-live":"polite",children:[(0,r.jsx)(Sl,{value:t}),(0,r.jsx)("span",{className:"me-loading-text",children:e})]})}var $f=[];function Fv({crumbs:e,t,onPick:n,busy:a}){let o=Array.isArray(e)&&e.length?e:[{path:"",labelKey:"graphAllCrumb",label:"\u5168\u90E8"}];return(0,r.jsx)("nav",{className:"me-graph-crumbs","aria-label":t("graphBreadcrumbAria"),"data-level-depth":o.length,children:o.map((i,l)=>{let s=i.labelKey?t(i.labelKey):"",c=s&&s!==i.labelKey?s:i.label||i.path||"\u2014",u=l===o.length-1;return(0,r.jsxs)("span",{style:{display:"inline-flex",alignItems:"center",gap:2},children:[l>0&&(0,r.jsx)("span",{className:"sep","aria-hidden":"true",children:"\u203A"}),(0,r.jsx)("button",{type:"button",className:(l===0?"home":"")+(u?" current":""),"aria-current":u?"page":void 0,title:c,disabled:u||a,onClick:()=>{u||n(i)},children:c})]},i.path||"root")})})}function Iv({level:e,crumbs:t,onOpen:n,onDelete:a,onMerge:o,onDrill:i,onNavigate:l,onRetry:s,error:c,loading:u,t:p,all:h,onAllChange:g,fitTrigger:k}){let L=(0,m.useRef)(null),R=(0,m.useRef)(null),A=(0,m.useRef)(null),v=(0,m.useRef)(null),f=(0,m.useRef)(null),y=e&&Array.isArray(e.items)?e.items:$f,P=e&&Array.isArray(e.edges)?e.edges:$f,F=e&&e.id||"",z=(0,m.useMemo)(()=>y.map(C=>({id:C.id,title:C.label||C.id,name:C.label||C.id,kind:C.kind||"other",tags:Array.isArray(C.tags)?C.tags:[],updated:C.updated||"",count:Number(C.count)||0,type:C.type||"card"})),[y]),I=(0,m.useMemo)(()=>P.map(C=>({source:C.source,target:C.target,type:C.type||"tag",weight:Number(C.weight)||1})),[P]),_=(0,m.useRef)(p);_.current=p;let j=(0,m.useRef)(n);(0,m.useEffect)(()=>{j.current=n},[n]);let H=(0,m.useRef)(a);(0,m.useEffect)(()=>{H.current=a},[a]);let se=(0,m.useRef)(o);(0,m.useEffect)(()=>{se.current=o},[o]);let he=(0,m.useRef)(i);(0,m.useEffect)(()=>{he.current=i},[i]);let[ce,Ge]=(0,m.useState)(""),[Y,je]=(0,m.useState)(null),[T,Ae]=(0,m.useState)(null),re=(0,m.useRef)("");(0,m.useEffect)(()=>{re.current=ce.trim().toLowerCase()},[ce]),(0,m.useEffect)(()=>{let C=A.current;if(!C)return;let w=ce.trim().toLowerCase();if(!w)return;let pe=C.nodes.find(Re=>(Re.name||"").toLowerCase().includes(w));if(pe){A.current.selectedId=pe.id,je(pe.id),C.panX=C.w/2-pe.x*C.zoom,C.panY=C.h/2-pe.y*C.zoom;try{C.render&&C.render()}catch(Re){Dr(Re,"search-center")}}},[ce]);let[te,Ve]=(0,m.useState)("all"),[Fe,le]=(0,m.useState)(!1),$=(0,m.useRef)("all"),[B,M]=(0,m.useState)(""),V=(0,m.useRef)(""),[de,Ie]=(0,m.useState)(!1),Be=(0,m.useRef)(!1),[me,x]=(0,m.useState)(null);(0,m.useEffect)(()=>{$.current=te},[te]),(0,m.useEffect)(()=>{V.current=B},[B]),(0,m.useEffect)(()=>{Be.current=de},[de]);let J=(0,m.useMemo)(()=>{let C=new Map;for(let w of z)for(let pe of w.tags||[]){let Re=String(pe).trim();Re&&C.set(Re,(C.get(Re)||0)+1)}return[...C.entries()].sort((w,pe)=>pe[1]-w[1]).slice(0,24).map(([w,pe])=>({tag:w,n:pe}))},[z]),G=(0,m.useMemo)(()=>{let C={};for(let w of z)C[w.kind||"other"]=(C[w.kind||"other"]||0)+(w.type==="planet"?Math.max(1,w.count||0):1);return C},[z]),ge=(()=>{let C=ce.trim().toLowerCase();return!!C&&!z.some(w=>(w.title||w.name||"").toLowerCase().includes(C)||String(w.kind||"").toLowerCase().includes(C)||String(Ct[w.kind]||"").toLowerCase().includes(C))})();(0,m.useEffect)(()=>{let C=A.current;C&&C.requestRender&&C.requestRender()},[ce]),(0,m.useEffect)(()=>{let C=A.current;if(!(!C||!C.render))try{C.render()}catch(w){Dr(w,"filter/timeDim")}},[te,B,de]);let Ee=(0,m.useRef)(null),[ke,we]=(0,m.useState)([]),[K,ue]=(0,m.useState)(null),[Me,fe]=(0,m.useState)(!1),[Nt,Yt]=(0,m.useState)(null),[Ye,jt]=(0,m.useState)(""),gt=(0,m.useRef)(null),Qt=(0,m.useRef)(null),Qe=(C,w=!0)=>{gt.current&&clearTimeout(gt.current),Yt({msg:C,ok:w}),gt.current=setTimeout(()=>Yt(null),1900)},qn=C=>{jt(C),Qt.current&&clearTimeout(Qt.current),Qt.current=setTimeout(()=>jt(""),1600)};(0,m.useEffect)(()=>()=>{gt.current&&clearTimeout(gt.current),Qt.current&&clearTimeout(Qt.current)},[]);let Se=(0,m.useMemo)(()=>z.reduce((C,w)=>(C[w.id]=w,C),{}),[z]);return(0,m.useEffect)(()=>{let C=L.current;if(!C||z.length===0)return;let w=C.getContext("2d");if(!w)return;let pe=Math.min(1.5,Math.max(1,window.devicePixelRatio||1)),Re={};I.forEach(E=>{Re[E.source]=(Re[E.source]||0)+1,Re[E.target]=(Re[E.target]||0)+1});let S=Math.max(1,...Object.values(Re)),D=Pf(),Le=y.some(E=>E&&E.type==="planet"),d={nodes:y.filter(E=>E&&E.type!=="planet").concat(y.filter(E=>E&&E.type==="planet")).map(E=>zf(E,{degree:Re[E.id]||0,maxDegree:S})),edges:I.map(E=>({sourceNodeId:E.source,targetNodeId:E.target,weight:Math.max(1,Number(E.weight)||1)})),panX:0,panY:0,zoom:1,running:!0,raf:0,tickCount:0,quietTicks:0,dragNode:null,selectedId:null,mouseX:0,mouseY:0,w:0,h:0,dpr:pe,ctx:w,multi:[],marquee:null,planetLayer:Le,levelId:F};d.domain=z,d.domainById=z.reduce((E,U)=>(E[U.id]=U,E),{}),d.nodeById=new Map(d.nodes.map(E=>[E.id,E])),d.edgePairs=(()=>{let E=new Map(d.nodes.map((W,Z)=>[W.id,Z])),U=new Int32Array(d.edges.length*2),X=0;for(let W of d.edges){let Z=E.get(W.sourceNodeId),ve=E.get(W.targetNodeId);Z===void 0||ve===void 0||(U[X]=Z,U[X+1]=ve,X+=2)}return U.subarray(0,X)})(),d.alpha=1,d.forceParams=Le?Rf(vl(d.nodes.length)):vl(d.nodes.length),d.lastTickMs=0,d.lastRenderMs=0,d.nodes.forEach((E,U)=>{let X=U*2.399963229728653,W=12*Math.sqrt(U);E.x=Math.cos(X)*W,E.y=Math.sin(X)*W});let Bt=[...new Set(d.nodes.map(E=>E.type))];d.clustered=!Le&&Bt.length>1,d.typeCenters=d.typeCenters||{};let Xt=Le?0:160;Bt.forEach((E,U)=>{if(d.typeCenters[E])return;let X=U/Bt.length*Math.PI*2-Math.PI/2;d.typeCenters[E]={x:Math.cos(X)*Xt,y:Math.sin(X)*Xt}}),A.current=d;let Ht=0,kn=0,Sn=null,Fr="",Ir=()=>{let E=C.clientWidth,U=C.clientHeight;d.w=E,d.h=U,C.width=E*pe,C.height=U*pe,w.setTransform(pe,0,0,pe,0,0),(Ht===0||kn===0)&&E>0&&U>0&&d.tickCount>0&&D.raf(()=>Cn()),Ht=E,kn=U};Ir();let b=new ResizeObserver(Ir);b.observe(C.parentElement);let ne=(E,U)=>E&&E.length>U?E.slice(0,U)+"\u2026":E,ae=(E,U,X,W)=>{if(w.beginPath(),W==="rect")w.rect(E-X,U-X*.75,X*2,X*1.5);else if(W==="diamond")w.moveTo(E,U-X),w.lineTo(E+X,U),w.lineTo(E,U+X),w.lineTo(E-X,U),w.closePath();else if(W==="hexagon"){for(let Z=0;Z<6;Z++){let ve=Math.PI/3*Z-Math.PI/2,ze=E+X*Math.cos(ve),Pe=U+X*Math.sin(ve);Z===0?w.moveTo(ze,Pe):w.lineTo(ze,Pe)}w.closePath()}else w.arc(E,U,X,0,Math.PI*2)},Ue=new Map,_e=(E,U)=>{let X=E+"|"+Math.round(U),W=Ue.get(X);return W||(W=w.createRadialGradient(-U*.32,-U*.38,0,0,0,U*1.15),W.addColorStop(0,$e(E,"#ffffff",.2)),W.addColorStop(.62,E),W.addColorStop(1,$e(E,"#000000",.22)),Ue.set(X,W)),W},Te=(E,U)=>{let X=parseInt(E.slice(1,3),16),W=parseInt(E.slice(3,5),16),Z=parseInt(E.slice(5,7),16);return"rgba("+X+","+W+","+Z+","+U+")"},$e=(E,U,X)=>{let W=Pe=>[parseInt(Pe.slice(1,3),16),parseInt(Pe.slice(3,5),16),parseInt(Pe.slice(5,7),16)],Z=W(E),ve=W(U),ze=Math.max(0,Math.min(1,Number(X)||0));return"rgb("+Z.map((Pe,et)=>Math.round(Pe+(ve[et]-Pe)*ze)).join(",")+")"},Jt=new Map,an=new Map,_r=(E,U,X,W)=>{let Z=et=>[parseInt(et.slice(1,3),16),parseInt(et.slice(3,5),16),parseInt(et.slice(5,7),16)],ve=Z(E),ze=Z(U),Pe=Math.max(0,Math.min(1,Number(X)||0));return"rgba("+ve.map((et,Xe)=>Math.round(et+(ze[Xe]-et)*Pe)).join(",")+","+W+")"},na=1.1,Uo=.3,Tt=3,Cn=()=>{if(!d.nodes.length)return;let E=1/0,U=-1/0,X=1/0,W=-1/0;d.nodes.forEach(ot=>{let xt=Number(ot.r)||0,tt=ot.planet?xt*1.32:xt;ot.x-tt<E&&(E=ot.x-tt),ot.x+tt>U&&(U=ot.x+tt),ot.y-tt<X&&(X=ot.y-tt),ot.y+tt>W&&(W=ot.y+tt)});let Z=28,ve=U-E+Z*2,ze=W-X+Z*2,Pe=Math.min(d.w/ve,d.h/ze),et=Math.pow(1/na,Tt);d.zoom=Math.max(.35,Math.min(1.8,Pe*et));let Xe=!(Array.isArray(t)&&t.length>1);d.planetLayer&&Xe?d.zoom=Math.max(.12,Math.min(Uo,Pe)):d.planetLayer&&(d.zoom=Math.max(.12,Pe*Math.pow(1/na,Tt-2))),d.panX=d.w/2-(E+U)/2*d.zoom,d.panY=d.h/2-(X+W)/2*d.zoom};v.current=Cn;let In=()=>{d.renderFrames=(d.renderFrames|0)+1;let E=d.zoom>=1.2?"in":"out";R.current&&R.current.dataset.zoom!==E&&(R.current.dataset.zoom=E),w.clearRect(0,0,d.w,d.h),d.searchTerm=re.current,d.kindFilter=$.current,d.timeMode=Be.current,d.tagFilter=V.current;let U=d.tagFilter,X=d.kindFilter,W=O=>String(O||"").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;");w.save();let Z=d.w+"x"+d.h;if(!Sn||Fr!==Z){Sn=new Path2D;let O=26;for(let Ne=O/2;Ne<d.w;Ne+=O)for(let Oe=O/2;Oe<d.h;Oe+=O)Sn.moveTo(Ne+1,Oe),Sn.arc(Ne,Oe,1,0,Math.PI*2);Fr=Z}w.fillStyle="rgba(255,255,255,0.055)",w.fill(Sn),w.restore(),w.save(),w.translate(d.panX,d.panY),w.scale(d.zoom,d.zoom);let ve={};d.nodes.forEach(O=>ve[O.id]=O);let ze=performance.now()<(d.motionUntil||0),Pe=d.nodes.length>40,et=Pe?1.5:.55,Xe=d.selectedId||d.hoverId,ot=xf({panX:d.panX,panY:d.panY,zoom:d.zoom,w:d.w,h:d.h,margin:80}),xt=(()=>{let O=(d.searchTerm||"").toLowerCase();if(!O)return null;let Ne=[];for(let Oe of d.nodes){let He=(d.domainById[Oe.id]||{}).kind||"other";if(((Oe.name||"").toLowerCase().includes(O)||String(Ct[He]||"").toLowerCase().includes(O)||String(He).toLowerCase().includes(O))&&Ne.push(Oe.id),Ne.length>200)break}return Ne})(),tt=d.quality|0;(!d.labelOrder||d.labelOrder.src!==d.nodes)&&(d.labelOrder={src:d.nodes,ids:d.nodes.slice().sort((O,Ne)=>(Number(Re[Ne.id])||0)-(Number(Re[O.id])||0)).map(O=>O.id)});let On=Sf(d.nodes,{limit:kf(d.nodes.length,tt),focusId:Xe,hoverId:d.hoverId,searchHits:xt,degree:Re,order:d.labelOrder.ids}),cr=new Map,Mn=(O,Ne)=>{let Oe=O+"|"+Ne,be=cr.get(Oe);return be===void 0&&(w.font=O,be=w.measureText(Ne).width,cr.set(Oe,be)),be},$o=d.nodes.length<=250,aa=new Map,lg=d.nodes.length>1200&&d.zoom<.3,xd=d.zoom>=.6,Rl=tt>=3,kd=tt<=0?1:tt===1?2:tt===2?4:8;d.edges.forEach((O,Ne)=>{if(lg)return;let Oe=Xe&&(O.sourceNodeId===Xe||O.targetNodeId===Xe);if(Xe){if(!Oe)return}else if(kd>1&&Ne%kd!==0)return;let be=ve[O.sourceNodeId],He=ve[O.targetNodeId];if(!be||!He||!yl(be.x,be.y,10,ot)&&!yl(He.x,He.y,10,ot))return;if(X!=="all"){let Ll=d.domainById[O.sourceNodeId]&&d.domainById[O.sourceNodeId].kind,Dl=d.domainById[O.targetNodeId]&&d.domainById[O.targetNodeId].kind;if(Ll!==X&&Dl!==X)return}if(U){let Ll=d.domainById[O.sourceNodeId]&&(d.domainById[O.sourceNodeId].tags||[]).includes(U),Dl=d.domainById[O.targetNodeId]&&(d.domainById[O.targetNodeId].tags||[]).includes(U);if(!Ll&&!Dl)return}let vt=He.x-be.x,it=He.y-be.y,mt=Math.sqrt(vt*vt+it*it)||1,Ut=ze||xd||tt>=2?0:Pe?10:16,Dt=-it/mt*Ut,Et=vt/mt*Ut,Or=(be.x+He.x)/2+Dt,jn=(be.y+He.y)/2+Et,Bn=wn.colors[d.domainById[be.id]&&d.domainById[be.id].kind||"other"]||wn.colors.other,oa=Xe?Oe?.72:.06:d.planetLayer?.22:Pe?.12:.17,Nd=parseInt(Bn.slice(1,3),16),Td=parseInt(Bn.slice(3,5),16),Md=parseInt(Bn.slice(5,7),16),Ed=Math.max(1,Number(O.weight)||1),dg=Oe?1.6+Math.min(3.2,Ed*.8):.7+Math.min(2.4,(Ed-1)*.35),zd=Math.min(xd||tt>=1?1.2:1/0,Math.round(dg*2)/2),Rd=Nd+","+Td+","+Md+","+oa+","+zd,Wa=aa.get(Rd);Wa||(Wa={path:new Path2D,stroke:"rgba("+Nd+","+Td+","+Md+","+oa+")",width:zd},aa.set(Rd,Wa)),Wa.path.moveTo(be.x,be.y),Wa.path.quadraticCurveTo(Or,jn,He.x,He.y)}),aa.forEach(O=>{w.strokeStyle=O.stroke,w.lineWidth=O.width,w.stroke(O.path)});let Ha=null;Xe&&(Ha=new Set,d.edges.forEach(O=>{O.sourceNodeId===Xe?Ha.add(O.targetNodeId):O.targetNodeId===Xe&&Ha.add(O.sourceNodeId)}));let sg=(O,Ne={})=>{let Oe=ne(O.name,Ne.maxChars||16),be=1/d.zoom,He="500 "+(11.5*be).toFixed(1)+"px -apple-system,Segoe UI,sans-serif";w.font=He;let it=Mn(He,Oe)+14*be,mt=17*be,Ut=O.y+O.r+(Ne.gap===void 0?8:Ne.gap)*be,Dt=!0;for(let Et of Sd)if(O.x-it/2<Et.x+Et.w&&O.x+it/2>Et.x&&Ut<Et.y+Et.h&&Ut+mt>Et.y){Dt=!1;break}return!Dt&&!Ne.force?!1:(Sd.push({x:O.x-it/2,y:Ut,w:it,h:mt}),w.fillStyle="rgba(20,24,30,0.78)",w.beginPath(),w.roundRect?w.roundRect(O.x-it/2,Ut,it,mt,4*be):w.rect(O.x-it/2,Ut,it,mt),w.fill(),w.strokeStyle="rgba(255,255,255,0.07)",w.lineWidth=1*be,w.stroke(),w.fillStyle=Ne.strong?"#f2f5f8":"#aeb6c2",w.textAlign="center",w.textBaseline="top",w.fillText(Oe,O.x,Ut+4.6*be),!0)},cg=(O,Ne,Oe)=>{let be=1/d.zoom,{isSel:He,isHov:vt,dimmed:it}=Oe,mt=O.r*d.zoom;w.save(),w.globalAlpha=it?.16:1;let Ut="g|"+Ne+"|"+Math.round(O.r),Dt=Jt.get(Ut);Dt||(Dt=w.createRadialGradient(0,0,O.r*.8,0,0,O.r*1.24),Dt.addColorStop(0,Te(Ne,.18)),Dt.addColorStop(.58,Te(Ne,.06)),Dt.addColorStop(1,Te(Ne,0)),Jt.set(Ut,Dt)),w.save(),w.translate(O.x,O.y),Rl||(w.fillStyle=Dt,w.beginPath(),w.arc(0,0,O.r*1.24,0,Math.PI*2),w.fill());let Et=d.timeMode?Ne:wn.deep[O.type]||Ne,Or="b|"+Et+"|"+Math.round(O.r),jn=an.get(Or);if(jn||(jn=w.createRadialGradient(-O.r*.26,-O.r*.32,O.r*.12,0,0,O.r*1.1),jn.addColorStop(0,_r(Et,"#ffffff",.24,.9)),jn.addColorStop(.58,Te(Et,.86)),jn.addColorStop(1,_r(Et,"#000000",.34,.9)),an.set(Or,jn)),w.beginPath(),w.arc(0,0,O.r,0,Math.PI*2),w.fillStyle="rgba(13,16,21,0.92)",w.fill(),w.beginPath(),w.arc(0,0,O.r,0,Math.PI*2),w.fillStyle=jn,w.fill(),w.beginPath(),w.arc(0,0,O.r-Math.max(.6,1.1*be),Math.PI*1.06,Math.PI*1.94),w.strokeStyle="rgba(255,255,255,0.14)",w.lineWidth=Math.max(.7,1.2*be),w.stroke(),w.beginPath(),w.arc(0,0,O.r,0,Math.PI*2),w.strokeStyle=Te(Ne,He||vt?.95:.58),w.lineWidth=Math.max(.8,1.1*be),w.stroke(),w.restore(),(He||vt)&&(w.save(),w.beginPath(),w.arc(O.x,O.y,O.r+(He?7:5)*be,0,Math.PI*2),w.strokeStyle=He?"rgba(255,122,69,0.9)":Te(Ne,.7),w.lineWidth=Math.max(1,1.2*be),He&&w.setLineDash([5*be,4*be]),w.stroke(),w.restore()),w.restore(),He||vt||mt>=11){let Bn=Math.max(9,Math.min(21,mt*.42))*be,oa=mt>=30;w.save(),w.textAlign="center",w.textBaseline="middle",w.shadowColor="rgba(0,0,0,0.5)",w.shadowBlur=5*be,oa&&(w.font="600 "+(Bn*.48).toFixed(1)+"px -apple-system,Segoe UI,sans-serif",w.fillStyle="rgba(255,255,255,0.72)",w.fillText(ne(O.name,12),O.x,O.y-Bn*1.02)),w.font="700 "+Bn.toFixed(1)+"px -apple-system,Segoe UI,sans-serif",w.fillStyle="rgba(255,255,255,0.96)",w.fillText(Ef(O.count,{unit:_.current("graphCountWan"),locale:_.current("graphCountLocale")}),O.x,O.y+(oa?Bn*.06:0)),oa&&(w.font="500 "+(Bn*.38).toFixed(1)+"px -apple-system,Segoe UI,sans-serif",w.fillStyle="rgba(255,255,255,0.5)",w.fillText(_.current("graphCardsUnit"),O.x,O.y+Bn*.92)),w.restore()}},Sd=[],Cd=[];if(d.nodes.forEach(O=>{if(!yl(O.x,O.y,O.r+2,ot))return;let Ne=d.domainById[O.id]||{},Oe=Ne.kind||"other",be=d.timeMode&&Ne.updated?_v(Ne.updated):wn.colors[Oe]||wn.colors.other,He=wn.shapes[Oe]||"circle",vt=d.selectedId===O.id,it=d.hoverId===O.id,mt=d.searchTerm||"",Ut=!mt||(O.name||"").toLowerCase().includes(mt)||String(Ct[Oe]||"").toLowerCase().includes(mt)||String(Oe).toLowerCase().includes(mt),Dt=X==="all"||Oe===X,Et=!U||(Ne.tags||[]).includes(U),Or=Xe&&O.id!==Xe&&!(Ha&&Ha.has(O.id))||mt&&!Ut||!Dt||!Et;if(O.planet){Cd.push({n:O,color:be,isSel:vt,isHov:it,dimmed:Or,ok:Dt&&Et});return}w.save(),w.globalAlpha=Or?.08:1,(vt||it)&&$o&&(w.shadowColor=be,w.shadowBlur=vt?16:11),w.translate(O.x,O.y),ae(0,0,O.r,He),w.fillStyle=Rl?be:_e(be,O.r),w.fill(),(!Rl||vt||it)&&(w.strokeStyle="rgba(255,255,255,0.16)",w.lineWidth=Math.max(.6,.8*(1/d.zoom)),w.stroke()),Oe==="core"&&(w.fillStyle="#1b120e",w.font="700 "+Math.max(10,Math.round(O.r*.95))+"px sans-serif",w.textAlign="center",w.textBaseline="middle",w.fillText("\u2605",0,0)),w.restore(),vt?(w.save(),ae(O.x,O.y,O.r+3,He),w.strokeStyle=be,w.lineWidth=3,w.shadowColor=be,w.shadowBlur=12,w.stroke(),w.restore()):it?(w.save(),ae(O.x,O.y,O.r+2,He),w.strokeStyle=be,w.lineWidth=2,w.stroke(),w.restore()):mt&&Ut?(w.save(),ae(O.x,O.y,O.r+2,He),w.strokeStyle="#ffa06b",w.lineWidth=2,w.stroke(),w.restore()):d.multi.indexOf(O.id)>=0&&(w.save(),ae(O.x,O.y,O.r+2,He),w.strokeStyle="#60a5fa",w.lineWidth=2,w.shadowColor="#60a5fa",w.shadowBlur=8,w.stroke(),w.restore()),(vt||it||!ze&&(On.has(O.id)&&d.zoom>et||!Pe&&d.zoom>.6))&&Dt&&Et&&sg(O,{force:vt||it})}),Cd.forEach(O=>cg(O.n,O.color,O)),w.restore(),d.marquee){let O=d.marquee,Ne=Math.min(O.sx,O.ex),Oe=Math.min(O.sy,O.ey),be=Math.abs(O.ex-O.sx),He=Math.abs(O.ey-O.sy);w.save(),w.setLineDash([4,4]),w.strokeStyle="rgba(96,165,250,0.9)",w.lineWidth=1,w.fillStyle="rgba(96,165,250,0.12)",w.fillRect(Ne,Oe,be,He),w.strokeRect(Ne,Oe,be,He),w.restore()}if(d.hoverId&&Ee.current){let O=d.domainById[d.hoverId],Ne=d.nodes.find(function(Oe){return Oe.id===d.hoverId});if(O&&Ne){let Oe=d.edges.filter(function(mt){return mt.sourceNodeId===O.id||mt.targetNodeId===O.id}).length,be=Ne.x*d.zoom+d.panX,He=Ne.y*d.zoom+d.panY;Ee.current.style.display="block",Ee.current.style.left=be+14+"px",Ee.current.style.top=He-6+"px";let vt=Ne.planet?_.current("graphPlanetCards").replace("{n}",String(Ne.count))+" \xB7 "+_.current("graphEnter"):_.current("connCount").replace("{n}",Oe),it=_.current(Ct[O.kind]||"kindKnowledge");Ee.current.innerHTML="<b>"+W(O.title||O.name||"")+'</b><br/><span style="opacity:.8">'+W(it)+" \xB7 "+W(vt)+"</span>"}}else Ee.current&&(Ee.current.style.display="none")},Wt=0,ja=0,yt=0,sr=()=>{d.motionUntil=performance.now()+140,yt&&D.clearTimeout(yt),yt=D.setTimeout(()=>{yt=0,Mt()},160)},Mt=()=>{ja||(ja=D.raf(()=>{ja=0;let E=performance.now();try{In()}catch(U){Dr(U,"render")}d.lastRenderMs=performance.now()-E}))};d.requestRender=Mt;let ra=()=>{Wt>0||(d.alpha=Math.max(d.alpha||0,.35),d.running=!0,d.raf||(d.raf=D.raf(oe)))};d.wake=ra,d.render=In;let N=()=>{if(!Le)return;let E=d.nodes.filter(U=>U.planet);if(E.length){for(let U=0;U<E.length;U++)for(let X=U+1;X<E.length;X++){let W=E[U],Z=E[X],ve=Z.x-W.x,ze=Z.y-W.y,Pe=Math.sqrt(ve*ve+ze*ze)||1,et=24+Math.min(W.r,Z.r)*.18,Xe=W.r+Z.r+et;if(Pe>=Xe)continue;let ot=Xe-Pe,xt=ve/Pe,tt=ze/Pe,On=W.r*W.r,cr=Z.r*Z.r,Mn=On+cr,$o=ot*(cr/Mn),aa=ot*(On/Mn);W.x-=xt*$o,W.y-=tt*$o,Z.x+=xt*aa,Z.y+=tt*aa,W.vx*=.55,W.vy*=.55,Z.vx*=.55,Z.vy*=.55}for(let U of E)for(let W of d.nodes){if(W.planet||W===d.dragNode)continue;let Z=W.x-U.x,ve=W.y-U.y,ze=Math.sqrt(Z*Z+ve*ve)||1,Pe=Z/ze,et=ve/ze,Xe=U.r+W.r+30,ot=Xe+12;if(ze>=ot)continue;let xt=ze;if(ze<Xe){W.x=U.x+Pe*Xe,W.y=U.y+et*Xe;let Mn=W.vx*Pe+W.vy*et;Mn<0&&(W.vx-=Pe*Mn,W.vy-=et*Mn),xt=Xe}let tt=Math.min(1,(ot-xt)/12),On=(.28+U.r*.009)*tt*tt,cr=W.vx*Pe+W.vy*et;if(cr<On){let Mn=(On-cr)*.5;W.vx+=Pe*Mn,W.vy+=et*Mn}}}},q=()=>{let E=performance.now(),U=Nf(d,{params:d.forceParams,alphaFloor:d.drift?1:0,damping:d.drift?.8:void 0});N(),d.lastTickMs=performance.now()-E,d.lastRms=U.rms,d.autoFitPending&&d.tickCount>45&&(d.autoFitPending=!1,Cn())},oe=()=>{if(!d.running)return;let E=performance.now(),U=0;d.lastStepAt&&E-d.lastStepAt>0&&E-d.lastStepAt<120&&(U=E-d.lastStepAt,d.frameEma=d.frameEma?d.frameEma*.8+U*.2:U),d.lastStepAt=E,d.tickCount>30&&U>0&&(d.frameEma>17.8?d.perfBad=(d.perfBad||0)+U:d.perfBad=Math.max(0,(d.perfBad||0)-U*.5),d.perfBad>500&&(d.quality|0)<3&&(d.quality=(d.quality|0)+1,d.perfBad=0,d.frameEma=16.7)),!d.drift&&(d.quietTicks>od||d.alpha===0&&d.tickCount>120)&&(d.quietTicks=0,d.drift=!0,d.alpha=Math.max(d.alpha||0,1),d.motionUntil=0,d.userTouched||Cn());try{let X=performance.now(),W=d.dragNode||d.drift?1:6,Z=0;do q(),Z+=1;while(!d.dragNode&&!d.drift&&Z<W&&performance.now()-X<18&&d.quietTicks<=od);d.drift||(d.motionUntil=performance.now()+60);let ve=performance.now();In(),d.lastRenderMs=performance.now()-ve}catch(X){Dr(X,"step")}d.raf=D.raf(oe)},xe=()=>({nodes:d.nodes.length,edges:d.edges.length,planets:d.nodes.filter(E=>E.planet).length,level:d.levelId||"",tickCount:d.tickCount,quietTicks:d.quietTicks,running:!!d.running,dragging:!!d.dragNode,lastTickMs:Math.round((d.lastTickMs||0)*100)/100,lastRenderMs:Math.round((d.lastRenderMs||0)*100)/100,rms:Math.round((d.lastRms||0)*1e3)/1e3,alpha:Math.round((d.alpha||0)*1e3)/1e3,drift:!!d.drift,frames:d.renderFrames|0,quality:d.quality|0,frameEma:Math.round((d.frameEma||0)*10)/10});d.stats=xe,globalThis.__meGraphStats=xe;let Ce=()=>{let E=C.getBoundingClientRect(),U=E.width?C.clientWidth/E.width:1,X=E.height?C.clientHeight/E.height:1;return{level:d.levelId||"",planetLayer:!!d.planetLayer,nodes:d.nodes.length,planets:d.nodes.filter(W=>W.planet).length,edges:d.edges.length,running:!!d.running,quietTicks:d.quietTicks,zoom:Math.round(d.zoom*1e3)/1e3,panX:Math.round(d.panX),panY:Math.round(d.panY),selected:d.selectedId||null,multi:Array.isArray(d.multi)?d.multi.length:0,drift:!!d.drift,frames:d.renderFrames|0,resources:D.snapshot(),screen:d.nodes.map(W=>({id:W.id,label:W.name,planet:!!W.planet,count:W.count||0,dir:W.orbitDir||0,scale:W.orbitScale?Math.round(W.orbitScale*100)/100:0,x:E.left+(W.x*d.zoom+d.panX)/U,y:E.top+(W.y*d.zoom+d.panY)/X,r:Math.max(4,W.r*d.zoom/U)}))}};d.runtime=Ce,globalThis.__meGraphRuntime=Ce;let ye=(E,U)=>{let X=C.getBoundingClientRect(),W=X.width?C.clientWidth/X.width:1,Z=X.height?C.clientHeight/X.height:1;return{x:(E-X.left)*W,y:(U-X.top)*Z}},pt=(E,U)=>{let X=ye(E,U);return{x:(X.x-d.panX)/d.zoom,y:(X.y-d.panY)/d.zoom}},pn=E=>{let U=d.domainById[E];return!(!U||$.current!=="all"&&U.kind!==$.current||V.current&&!(U.tags||[]).includes(V.current))},Nn=(E,U,X)=>Math.max(U,Math.min(X,E)),_n=E=>{d.mouseX=E.clientX,d.mouseY=E.clientY;let U=pt(E.clientX,E.clientY),X=null;for(let W=d.nodes.length-1;W>=0;W--){let Z=d.nodes[W];if(!pn(Z.id))continue;let ve=Z.x-U.x,ze=Z.y-U.y;if(ve*ve+ze*ze<Z.r*Z.r+36){X=Z.id;break}}X!==d.hoverId&&(d.hoverId=X,d.motionUntil=performance.now()+140,Mt())},Tn=E=>{if(E.button!==0)return;let U=pt(E.clientX,E.clientY),X=null;for(let W=d.nodes.length-1;W>=0;W--){let Z=d.nodes[W];if(!pn(Z.id))continue;let ve=Z.x-U.x,ze=Z.y-U.y;if(ve*ve+ze*ze<Z.r*Z.r+25){X=Z;break}}if(E.shiftKey){if(X){d.shiftClick=X.id;return}d.marquee={sx:E.clientX,sy:E.clientY,ex:E.clientX,ey:E.clientY};return}d.userTouched=!0,d.dragStart={x:E.clientX,y:E.clientY,px:d.panX,py:d.panY},d.dragging=!1,d.dragNode=X||null,X&&(d.dragOffset={dx:X.x-U.x,dy:X.y-U.y})},Tl=E=>{if(d.marquee){d.marquee.ex=E.clientX,d.marquee.ey=E.clientY,sr(),Mt();return}if(!d.dragStart)return;let U=E.clientX-d.dragStart.x,X=E.clientY-d.dragStart.y;if(Math.abs(U)+Math.abs(X)>3&&!d.dragging&&(d.dragging=!0,d.dragNode&&(d.alpha=Math.max(d.alpha||0,.35))),d.dragNode){let W=pt(E.clientX,E.clientY);d.dragNode.x=W.x+d.dragOffset.dx,d.dragNode.y=W.y+d.dragOffset.dy,sr(),ra()}else d.dragging&&(d.panX=Nn(d.dragStart.px+U,-1e5,1e5),d.panY=Nn(d.dragStart.py+X,-1e5,1e5),sr(),Mt())},Ml=E=>{if(d.marquee){let W=d.marquee;d.marquee=null;let Z=ye(W.sx,W.sy),ve=ye(W.ex,W.ey),ze=Math.min(Z.x,ve.x),Pe=Math.max(Z.x,ve.x),et=Math.min(Z.y,ve.y),Xe=Math.max(Z.y,ve.y),ot=d.nodes.filter(xt=>!xt.planet&&pn(xt.id)).filter(xt=>{let tt=xt.x*d.zoom+d.panX,On=xt.y*d.zoom+d.panY;return tt>=ze&&tt<=Pe&&On>=et&&On<=Xe}).map(xt=>xt.id);d.multi=ot,we(ot),sr(),Mt();return}let U=d.dragStart&&!d.dragging,X=!!d.dragNode&&!!d.dragging;if(d.shiftClick){let W=d.shiftClick;d.shiftClick=null;let Z=d.nodeById.get(W);if(Z&&Z.planet){d.selectedId=W,je(W),Mt();return}let ve=Array.isArray(d.multi)?d.multi.slice():[];ve.includes(W)||ve.push(W),d.multi=ve,we(ve),Mt();return}if(U){let W=pt(E.clientX,E.clientY),Z=null;for(let ve=d.nodes.length-1;ve>=0;ve--){let ze=d.nodes[ve];if(!pn(ze.id))continue;let Pe=ze.x-W.x,et=ze.y-W.y;if(Pe*Pe+et*et<ze.r*ze.r+20){Z=ze;break}}if(Z&&Z.planet){d.selectedId=null,je(null),Mt(),d.dragStart=null,d.dragging=!1,d.dragNode=null,he.current&&he.current(Z.id);return}Z?d.selectedId===Z.id?(d.selectedId=null,je(null),Mt()):(d.selectedId=Z.id,je(Z.id),Mt()):(d.selectedId=null,d.hoverId=null,E.shiftKey||(d.multi=[],we([])),je(null),Mt())}d.dragStart=null,d.dragging=!1,d.dragNode=null,X&&ra()},rg=E=>{E.preventDefault();let U=pt(E.clientX,E.clientY),X=null;for(let W=d.nodes.length-1;W>=0;W--){let Z=d.nodes[W];if(!pn(Z.id))continue;let ve=Z.x-U.x,ze=Z.y-U.y;if(ve*ve+ze*ze<Z.r*Z.r+25){X=Z;break}}if(X){let W=d.domainById[X.id];W&&x({x:E.clientX,y:E.clientY,id:X.id,path:W.id,title:W.title,planet:!!X.planet,count:X.count||0})}else x(null)},ag=E=>{E.preventDefault();let U=ye(E.clientX,E.clientY),X=(U.x-d.panX)/d.zoom,W=(U.y-d.panY)/d.zoom,Z=Math.max(Uo,Math.min(3,d.zoom*(E.deltaY<0?na:1/na)));d.panX=Nn(d.panX+X*(d.zoom-Z),-1e5,1e5),d.panY=Nn(d.panY+W*(d.zoom-Z),-1e5,1e5),d.zoom=Z,d.userTouched=!0,d.quality=0,d.perfBad=0,d.frameEma=16.7,sr(),Mt()};D.listen(C,"mousemove",_n),D.listen(C,"mousedown",Tn),D.listen(window,"mousemove",Tl),D.listen(window,"mouseup",Ml),D.listen(C,"wheel",ag,{passive:!1}),D.listen(C,"contextmenu",rg),f.current=()=>{d.selectedId=null,d.hoverId=null,d.multi=[],we([]),d.userTouched=!1,Cn(),sr(),Mt()},Wt=Cf(d.nodes.length);let Ba=Wt,og=()=>Ba>0?Math.round((Ba-Wt)/Ba*100):100;Wt>0&&Ae(0);let El=Ba>0?[.75,.5,.25].map(E=>Math.round(Ba*E)):[],zl=()=>{if(!d.running)return;let E=performance.now();for(;Wt>0&&performance.now()-E<12;)q(),Wt--;if(Ae(Wt>0?Math.min(99,og()):100),El.length&&Wt<=El[0]){El.shift(),d.userTouched||Cn();try{In()}catch(U){Dr(U,"warm-frame")}}if(Wt>0){d.userTouched||Cn(),d.warmRaf=D.raf(zl);return}d.warmRaf=0,d.userTouched||Cn();try{In()}catch(U){Dr(U,"warm-final")}Ae(null),ra()};d.warmStep=zl,Cn();try{In()}catch(E){Dr(E,"first-frame")}Wt>0?d.warmRaf=D.raf(zl):(Ae(0),ra());let ig=()=>le(!1);return D.listen(window,"mousedown",ig),()=>{if(d.running=!1,D.releaseAll(),globalThis.__meGraphStats===xe)try{delete globalThis.__meGraphStats}catch{globalThis.__meGraphStats=void 0}if(globalThis.__meGraphRuntime===Ce)try{delete globalThis.__meGraphRuntime}catch{globalThis.__meGraphRuntime=void 0}try{b.disconnect()}catch{}}},[y,I,F]),(0,m.useEffect)(()=>{je(null),we([]),x(null);let C=A.current;C&&(C.selectedId=null,C.multi=[])},[F]),(0,m.useEffect)(()=>{k!==void 0&&v.current&&requestAnimationFrame(()=>{try{v.current()}catch(C){Dr(C,"fit")}})},[k]),(0,r.jsxs)("div",{className:"me-graph",ref:R,children:[(0,r.jsxs)("div",{className:"me-graph-toolbar",children:[(0,r.jsxs)("label",{className:"me-graph-search",children:[(0,r.jsxs)("svg",{className:"ico",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.6","aria-hidden":"true",children:[(0,r.jsx)("circle",{cx:"7",cy:"7",r:"4.4"}),(0,r.jsx)("path",{d:"m10.4 10.4 3.2 3.2",strokeLinecap:"round"})]}),(0,r.jsx)("input",{type:"text",placeholder:p("search"),value:ce,onChange:C=>Ge(C.target.value),"aria-label":p("search")})]}),(0,r.jsxs)("span",{style:{position:"relative",display:"inline-flex"},children:[(0,r.jsxs)("button",{type:"button",className:"me-gtool"+(te!=="all"||de||B?" on":""),onClick:()=>le(C=>!C),"aria-expanded":Fe,title:p("filterLabel"),children:[p("filterLabel"),te!=="all"||de||B?(0,r.jsx)("span",{className:"badge","aria-hidden":"true"}):(0,r.jsx)("span",{className:"caret","aria-hidden":"true",children:"\u25BE"})]}),Fe&&(0,r.jsx)("div",{className:"me-graph-legend-pop",onMouseDown:C=>C.stopPropagation(),style:{position:"absolute",top:"calc(100% + 8px)",left:0,zIndex:50,background:"rgba(24,28,34,0.97)",backdropFilter:"blur(16px)",WebkitBackdropFilter:"blur(16px)",color:"#e5e9ef",border:"1px solid rgba(255,255,255,0.08)",borderRadius:11,padding:8,minWidth:236,boxShadow:"0 18px 44px rgba(0,0,0,.5)"},children:(0,r.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:2},children:[(0,r.jsx)("button",{type:"button",className:`lg${te==="all"&&!de?" active":""}`,onClick:()=>{Ve("all"),Ie(!1)},children:p("all")}),Object.keys(qt).map(C=>(0,r.jsxs)("button",{type:"button",className:`lg${te===C?" active":""}`,onClick:()=>Ve(w=>w===C?"all":C),children:[(0,r.jsx)("span",{className:"mc-kind",style:{background:wn.colors[C]||qt[C]}}),p(Ct[C])]},C)),(0,r.jsx)("div",{style:{height:1,background:"rgba(255,255,255,0.07)",margin:"5px 0"}}),(0,r.jsxs)("button",{type:"button",className:`lg${de?" active":""}`,onClick:()=>Ie(C=>!C),children:["\u23F1 ",p("timeDim")]}),J.length>0&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{style:{height:1,background:"rgba(255,255,255,0.07)",margin:"5px 0"}}),(0,r.jsx)("div",{style:{maxHeight:130,overflow:"auto",display:"flex",flexWrap:"wrap",gap:4,padding:"1px 1px 2px"},children:J.map(C=>(0,r.jsxs)("button",{type:"button",className:`lg${B===C.tag?" active":""}`,style:{width:"auto",color:"#b9c0ca",padding:"2px 7px",fontSize:10.5,border:"1px solid rgba(255,255,255,.07)"},onClick:()=>M(w=>w===C.tag?"":C.tag),title:C.tag,children:["#",C.tag," ",(0,r.jsx)("span",{style:{opacity:.55},children:C.n})]},C.tag))})]}),(te!=="all"||de||B)&&(0,r.jsxs)("button",{type:"button",className:"lg lg-clear",style:{color:"#f87171"},onClick:()=>{Ve("all"),Ie(!1),M("")},children:[p("clearFilter")," \u2715"]})]})})]}),(0,r.jsxs)("label",{className:"me-gswitch"+(h?" on":""),title:p("crossVault"),children:[(0,r.jsx)("input",{type:"checkbox",checked:!!h,onChange:C=>g&&g(C.target.checked)}),(0,r.jsx)("span",{className:"track","aria-hidden":"true"}),(0,r.jsx)("span",{children:p("crossVault")})]}),(0,r.jsx)("button",{type:"button",className:"me-gtool"+(de?" on":""),"aria-pressed":de,onClick:()=>Ie(C=>!C),children:p("timeDim")}),(0,r.jsx)("span",{className:"me-gdiv","aria-hidden":"true"}),(0,r.jsx)("button",{type:"button",className:"me-gtool",onClick:()=>{let C=L.current;if(C)try{C.toBlob(w=>{w&&ue({url:URL.createObjectURL(w),blob:w})},"image/png")}catch{}},children:p("exportGraph")}),(0,r.jsx)("button",{type:"button",className:"me-gtool",onClick:()=>v.current&&v.current(),children:p("fit")}),(0,r.jsx)("button",{type:"button",className:"me-gtool",onClick:()=>{je(null),Ve("all"),f.current&&f.current()},children:p("reset")})]}),(0,r.jsxs)("div",{className:"me-graph-canvas",style:{position:"relative",overflow:"hidden"},children:[(0,r.jsx)("canvas",{ref:L,style:{width:"100%",height:"100%",display:"block",cursor:"grab"}}),(0,r.jsx)(Fv,{crumbs:t,t:p,onPick:l,busy:u}),c&&(0,r.jsxs)("div",{className:"me-graph-levelerr",role:"alert",children:[(0,r.jsx)("span",{style:{flex:"none",fontWeight:800},children:c.timeout?"\u23F1":"\u2715"}),(0,r.jsx)("span",{className:"msg",children:(c.timeout?p("graphLevelTimeout").replace("{ms}",String(1600)):p("graphLevelError"))+"\uFF1A"+c.message}),(0,r.jsx)("button",{type:"button",onClick:()=>s&&s(),children:p("graphRetry")})]}),!c&&u&&(0,r.jsxs)("div",{className:"me-graph-levelbusy",role:"status","aria-live":"polite",children:[(0,r.jsx)(Sl,{small:!0}),p("graphLevelLoading")]}),T!==null&&(0,r.jsxs)("div",{role:"status","aria-live":"polite",style:{position:"absolute",left:"50%",top:14,transform:"translateX(-50%)",zIndex:3,display:"flex",alignItems:"center",gap:9,padding:"6px 12px",borderRadius:999,background:"rgba(23,27,33,0.9)",backdropFilter:"blur(14px)",WebkitBackdropFilter:"blur(14px)",color:"#e8ebf0",fontSize:11,fontWeight:500,letterSpacing:".01em",pointerEvents:"none",border:"1px solid rgba(255,255,255,0.07)",boxShadow:"0 10px 26px rgba(0,0,0,.3)"},children:[(0,r.jsx)(Sl,{value:T,small:!0}),(0,r.jsxs)("span",{children:[p("graphWarming").replace("{n}",z.length)," \xB7 ",Math.round(T),"%"]})]}),(0,r.jsxs)("div",{className:"mc-v5-graph-legend",children:[(0,r.jsx)("div",{className:"mc-v5-graph-legend-title",children:p("graphLegendTitle")}),Object.keys(wn.colors).filter(C=>G[C]).map(C=>(0,r.jsxs)("div",{className:"mc-v5-graph-legend-row",children:[(0,r.jsx)("i",{style:{background:wn.colors[C],boxShadow:"0 0 0 3px "+wn.colors[C]+"24"}}),(0,r.jsx)("span",{children:p(Ct[C]||"kindKnowledge")}),(0,r.jsx)("b",{children:G[C]})]},C))]}),(0,r.jsx)("div",{className:"me-graph-tooltip",ref:Ee,style:{display:"none",position:"absolute",zIndex:4,pointerEvents:"none",background:"rgba(24,28,34,0.94)",backdropFilter:"blur(14px)",WebkitBackdropFilter:"blur(14px)",color:"#e6eaf0",border:"1px solid rgba(255,255,255,0.08)",borderRadius:9,padding:"8px 10px",fontSize:11.5,maxWidth:220,boxShadow:"0 12px 30px rgba(0,0,0,.34)"}}),ge&&(0,r.jsx)("div",{className:"mc-empty",style:{position:"absolute",inset:0,zIndex:2,display:"flex",alignItems:"center",justifyContent:"center",backdropFilter:"blur(2px)",WebkitBackdropFilter:"blur(2px)"},children:p("noMatch")}),me&&(0,r.jsx)("div",{className:"me-graph-ctx-back",style:{position:"fixed",inset:0,zIndex:30},onMouseDown:()=>x(null)}),me&&(0,r.jsxs)("div",{className:"me-graph-ctxmenu",style:{position:"fixed",left:me.x,top:me.y,zIndex:31},onMouseDown:C=>C.stopPropagation(),children:[me.planet&&(0,r.jsxs)("button",{type:"button",onClick:()=>{let C=me.id;x(null),he.current&&he.current(C)},children:[p("graphEnter")," \u203A"]}),me.planet&&(0,r.jsx)("div",{style:{padding:"4px 10px 6px",fontSize:11,opacity:.7},children:p("graphPlanetCards").replace("{n}",String(me.count||0))}),!me.planet&&(0,r.jsx)("button",{type:"button",onClick:()=>{j.current({path:me.path,title:me.title}),x(null)},children:p("openCard")}),!me.planet&&(0,r.jsx)("button",{type:"button",onClick:()=>{me.id&&(A.current.selectedId=me.id,je(me.id)),x(null);let C=A.current;C&&C.requestRender&&C.requestRender()},children:p("focusNeighbors")}),(0,r.jsx)("button",{type:"button",onClick:()=>{try{navigator.clipboard&&navigator.clipboard.writeText(me.title||"")}catch{}x(null),Qe(p("copied"))},children:p("copyName")}),!me.planet&&(0,r.jsx)("button",{type:"button",onClick:()=>{let C=A.current,w=C&&Array.isArray(C.multi)?C.multi.slice():[],pe=me.id;if(pe&&!w.includes(pe)&&w.push(pe),x(null),w.length<2){Qe(p("mergeNeed"),!1);return}if(!window.confirm(p("mergeConfirm")))return;let Re=se.current&&se.current(w);Re&&Re.then?Re.then(S=>S?Qe(p("merged")):Qe(p("mergeFail"),!1)).catch(()=>Qe(p("mergeFail"),!1)):Re&&Qe(p("merged"))},children:p("merge")}),!me.planet&&(0,r.jsx)("button",{type:"button",style:{color:"#f87171"},onClick:()=>{let C=me.path;x(null),window.confirm(p("deleteConfirm"))&&(async()=>{try{(H.current?await H.current(C):!1)?Qe(p("deleted")):Qe(p("deleteFail"),!1)}catch{Qe(p("deleteFail"),!1)}})()},children:p("delete")})]}),ke.length>0&&(0,r.jsxs)("div",{style:{position:"absolute",left:"50%",bottom:52,transform:"translateX(-50%)",zIndex:3,display:"flex",gap:8,alignItems:"center",background:"rgba(24,28,34,0.94)",backdropFilter:"blur(14px)",WebkitBackdropFilter:"blur(14px)",color:"#e6eaf0",border:"1px solid rgba(255,255,255,0.08)",borderRadius:11,padding:"7px 11px",fontSize:11.5,boxShadow:"0 14px 34px rgba(0,0,0,.4)"},children:[(0,r.jsxs)("span",{style:{fontWeight:700},children:[ke.length," ",p("nodes")]}),(0,r.jsx)("button",{type:"button",className:"mc-btn",onClick:()=>{let w=ke.map(D=>Se[D]).filter(Boolean).map(D=>D.title||D.name).join(`
1057
- `),pe=new Blob([w],{type:"text/plain;charset=utf-8"}),Re=URL.createObjectURL(pe),S=document.createElement("a");S.href=Re,S.download="memory-selected.txt",document.body.appendChild(S),S.click(),document.body.removeChild(S),setTimeout(()=>URL.revokeObjectURL(Re),1e3),Qe(ke.length+p("exportedSel"))},children:p("exportSel")}),(0,r.jsx)("button",{type:"button",className:"mc-btn",onClick:()=>{if(ke.length<2){Qe(p("mergeNeed"),!1);return}let C=ke.map(pe=>Se[pe]?Se[pe].id:pe);if(!window.confirm(p("mergeConfirm")))return;we([]);let w=A.current;w&&(w.multi=[]),fetch(`${ee}/merge?paths=${encodeURIComponent(C.join(","))}`).then(pe=>pe.json()).then(pe=>{pe&&pe.ok?Qe(p("merged")):Qe(p("mergeFail"),!1)}).catch(()=>Qe(p("mergeFail"),!1))},children:p("merge")}),(0,r.jsx)("button",{type:"button",className:"mc-btn",style:{color:"#f87171"},onClick:()=>{if(!window.confirm(p("deleteConfirm")))return;let C=ke.map(pe=>Se[pe]?Se[pe].id:pe);we([]);let w=A.current;w&&(w.multi=[]),(async()=>{let pe=0;for(let Re of C)try{(H.current?await H.current(Re):!1)&&pe++}catch{}Qe(pe+p("deletedSelected"),pe>0)})()},children:p("deleteSelected")}),(0,r.jsx)("button",{type:"button",className:"mc-btn",onClick:()=>{let C=A.current;C&&(C.multi=[]),we([]);let w=A.current;w&&w.render&&w.render()},children:p("clearSelection")})]}),Y&&Se[Y]&&(0,r.jsxs)("div",{className:"me-graph-sidebar",style:{position:"absolute",right:14,top:14,zIndex:3,maxWidth:248,background:"rgba(24,28,34,0.94)",backdropFilter:"blur(14px)",WebkitBackdropFilter:"blur(14px)",color:"#e6eaf0",border:"1px solid rgba(255,255,255,0.08)",borderRadius:11,padding:13,fontSize:11.5,boxShadow:"0 14px 34px rgba(0,0,0,.38)"},children:[(0,r.jsx)("div",{style:{fontWeight:700,fontSize:13,marginBottom:4},children:Se[Y]?Se[Y].title||Se[Y].name:Y}),(0,r.jsxs)("div",{style:{opacity:.8,marginBottom:8},children:[Se[Y]?p(Ct[Se[Y].kind]||"kindKnowledge"):"\u2014",Se[Y]&&Se[Y].type==="planet"?" \xB7 "+p("graphPlanetCards").replace("{n}",String(Se[Y].count||0)):""]}),Se[Y]&&Se[Y].type==="planet"&&(0,r.jsxs)("button",{type:"button",className:"mc-btn",style:{width:"100%",marginBottom:8},onClick:()=>{let C=Y;je(null),he.current&&he.current(C)},children:[p("graphEnter")," \u203A"]}),(0,r.jsx)("div",{style:{fontSize:11,opacity:.65,letterSpacing:".04em",marginBottom:6},children:p("graphLevelHint")}),(I.filter(C=>C.source===Y||C.target===Y)||[]).slice(0,8).map((C,w)=>{let pe=C.source===Y?C.target:C.source,Re=Se[pe];return(0,r.jsx)("div",{style:{padding:"4px 6px",cursor:"pointer",borderRadius:6},onMouseDown:S=>{S.preventDefault();let D=A.current;D&&(D.selectedId=pe,D.hoverId=pe,D.requestRender&&D.requestRender()),je(pe)},children:Re?(Re.title||Re.name).slice(0,28):pe},w)})]})]}),(0,r.jsx)("div",{className:"me-graph-tip",children:p("graphTip")}),Nt&&(0,r.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,position:"fixed",left:"50%",transform:"translateX(-50%)",top:22,zIndex:70,background:"rgba(20,22,26,0.97)",backdropFilter:"blur(12px)",WebkitBackdropFilter:"blur(12px)",color:"#f5f5f5",borderRadius:12,padding:"10px 20px",fontSize:13.5,fontWeight:600,boxShadow:"0 14px 44px rgba(0,0,0,.5)",pointerEvents:"none",animation:"me-pop .22s ease",borderLeft:"4px solid "+(Nt.ok?"#22c55e":"#ef4444"),maxWidth:"90vw"},children:[(0,r.jsx)("span",{style:{color:Nt.ok?"#34d399":"#f87171",fontWeight:800,fontSize:15},children:Nt.ok?"\u2713":"\u2715"}),(0,r.jsx)("span",{style:{wordBreak:"break-all"},children:Nt.msg})]}),K&&(0,r.jsxs)("div",{className:"me-overlay",onClick:()=>{K.url&&URL.revokeObjectURL(K.url),ue(null),fe(!1)},children:[(0,r.jsx)("style",{children:xn}),(0,r.jsxs)("div",{className:"me-dialog",style:{maxWidth:Me?"100vw":900,width:Me?"100vw":"92vw",maxHeight:Me?"100%":"90vh",height:Me?"100%":void 0,borderRadius:Me?0:14},onClick:C=>C.stopPropagation(),children:[(0,r.jsxs)("div",{className:"me-dialog-head",children:[(0,r.jsx)("h3",{children:p("exportGraph")}),(0,r.jsxs)("div",{className:"me-head-actions",children:[(0,r.jsx)("a",{className:"mc-btn",href:K.url,download:"memory-graph.png",onClick:()=>{qn("download"),Qe(p("downloaded")+" \xB7 "+p("defaultDownloads"))},style:{textDecoration:"none",display:"inline-flex",alignItems:"center"},children:p(Ye==="download"?"done":"download")}),(0,r.jsx)("button",{type:"button",className:"mc-btn",onClick:()=>{qn("full"),fe(C=>!C),Qe(p("fullscreen"))},children:p(Ye==="full"?"done":Me?"exitFull":"fullscreen")}),(0,r.jsx)("button",{type:"button",className:"mc-btn",onClick:()=>{let C=K.blob;C&&window.ClipboardItem&&navigator.clipboard?navigator.clipboard.write([new window.ClipboardItem({"image/png":C})]).then(()=>{qn("copy"),Qe(p("copied"))}).catch(()=>{Qe(p("copyFail"),!1)}):Qe(p("copyFail"),!1)},children:p(Ye==="copy"?"done":"copyImage")}),(0,r.jsx)("button",{type:"button",className:"mc-btn",onClick:()=>{K.url&&URL.revokeObjectURL(K.url),ue(null),fe(!1)},children:p("close")})]})]}),(0,r.jsx)("div",{className:"me-dialog-body",style:{display:"flex",justifyContent:"center",background:Me?"var(--dsw-alias-bg-base, #0b0d10)":"var(--dsw-alias-bg-base, #f3f4f6)"},children:(0,r.jsx)("img",{src:K.url,alt:p("exportGraph"),style:{maxWidth:"100%",maxHeight:Me?"calc(100% - 64px)":"70vh",borderRadius:Me?0:8,cursor:"zoom-in"},onClick:()=>fe(C=>!C)})})]})]})]})}function _v(e){let t=new Date(e||0).getTime();if(!t)return"#94a3b8";let n=(Date.now()-t)/864e5;return n<3?"#34D399":n<14?"#FBBF24":n<30?"#FF7A45":"#8CA0B3"}function Vf({label:e,value:t=[],options:n,onChange:a,placeholder:o,z:i=20}){let[l,s]=(0,m.useState)(!1),c=(0,m.useRef)(null);(0,m.useEffect)(()=>{if(!l)return;let R=A=>{c.current&&!c.current.contains(A.target)&&s(!1)};return document.addEventListener("mousedown",R),()=>document.removeEventListener("mousedown",R)},[l]);let u=Array.isArray(t)?t:[],p=u.includes("__all__"),h=p?n.find(R=>R.value==="__all__")?.label||"":u.length?u.map(R=>n.find(A=>A.value===R)?.label||R).join("\u3001"):"",g=(R,A)=>{if(R.value==="__all__"){a(A?["__all__"]:[]);return}let v=new Set(u);v.has("__all__")&&v.delete("__all__"),A?v.add(R.value):v.delete(R.value),a([...v])},k=n.find(R=>R.value==="__all__"),L=n.filter(R=>R.value!=="__all__");return(0,r.jsxs)("div",{className:"mc-field",children:[(0,r.jsx)("span",{className:"mc-field-label",children:e}),(0,r.jsxs)("div",{ref:c,style:{position:"relative",minWidth:0},children:[(0,r.jsxs)("button",{type:"button",onClick:()=>s(R=>!R),style:{width:"100%",textAlign:"left",padding:"6px 8px",borderRadius:8,border:"1px solid var(--dsw-alias-border-l2, #d1d5db)",background:"var(--dsw-alias-bg-layer-1, #fff)",color:"inherit",fontSize:12,cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"space-between",gap:6},children:[(0,r.jsx)("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:h||o||"\u2014"}),(0,r.jsx)("span",{style:{fontSize:10,opacity:.7},children:"\u25BE"})]}),l&&(0,r.jsxs)("div",{style:{position:"absolute",top:"100%",left:0,right:0,zIndex:i,marginTop:2,borderRadius:8,border:"1px solid var(--dsw-alias-border-l2, #d1d5db)",background:"var(--dsw-alias-bg-layer-1, #fff)",color:"inherit",boxShadow:"0 6px 20px rgba(0,0,0,0.14)",maxHeight:180,overflow:"auto"},children:[k&&(0,r.jsxs)("label",{onClick:R=>R.stopPropagation(),className:"mc-dd-opt",style:{borderBottom:"1px solid rgba(127,127,127,0.12)"},children:[(0,r.jsx)("input",{type:"checkbox",checked:p,onChange:R=>g(k,R.target.checked)}),(0,r.jsx)("span",{children:k.label})]}),L.map(R=>(0,r.jsxs)("label",{onClick:A=>A.stopPropagation(),className:"mc-dd-opt",children:[(0,r.jsx)("input",{type:"checkbox",checked:u.includes(R.value),onChange:A=>g(R,A.target.checked)}),(0,r.jsx)("span",{children:R.label})]},R.value))]})]})]})}function Ov(e){let t=new Date(e||0).getTime();return!!t&&(Date.now()-t)/864e5<3}async function jv(e,t,n){if(n&&typeof window.showSaveFilePicker=="function")try{let i=await window.showSaveFilePicker({suggestedName:t}),l=await i.createWritable();return await l.write(e),await l.close(),{ok:!0,picked:!0,name:i.name}}catch(i){return i&&i.name==="AbortError"?{ok:!1,aborted:!0}:{ok:!1,err:String(i.message||i)}}let a=URL.createObjectURL(e),o=document.createElement("a");return o.href=a,o.download=t,document.body.appendChild(o),o.click(),document.body.removeChild(o),setTimeout(()=>URL.revokeObjectURL(a),1e3),{ok:!0,picked:!1,name:t}}function cd(e,t){if(!t||!e)return e;let n=e.toLowerCase(),a=t.toLowerCase(),o=[],i=0;for(;i<e.length;){let l=n.indexOf(a,i);if(l<0){o.push(e.slice(i));break}l>i&&o.push(e.slice(i,l)),o.push((0,r.jsx)("mark",{className:"mc-hl",children:e.slice(l,l+a.length)},l)),i=l+a.length}return o}function lr(e){let t=Oo(e);if(!t)return"";let n=t.toDateString()===new Date().toDateString(),a=yf(t);return n?a:`${t.getMonth()+1}-${t.getDate()} ${a}`}var wd=dr(jo(),1);function Bv(){try{let e=new URLSearchParams(window.location.search).get("lang");if(e==="zh"||e==="en")return e}catch{}return typeof navigator<"u"&&String(navigator.language||"").toLowerCase().startsWith("zh")?"zh":"en"}function Hv(){let[e,t]=(0,Oa.useState)(Bv);(0,Oa.useEffect)(()=>{let a=o=>{let i=o&&o.data;i&&i.source==="memory-eternal"&&i.type==="locale"&&(i.lang==="zh"||i.lang==="en")&&t(i.lang)};return window.addEventListener("message",a),()=>window.removeEventListener("message",a)},[]);let n=(0,Oa.useMemo)(()=>a=>(e==="zh"?gd:Gf)[a]??gd[a]??a,[e]);return document.documentElement.lang=e==="zh"?"zh-CN":"en",(0,wd.jsx)(Yf,{t:n,inModal:!1})}var Wv=(0,tg.createRoot)(document.getElementById("root"));Wv.render((0,wd.jsx)(Hv,{}));var Uv=0,ng=()=>{let e=document.getElementById("root");if(e&&e.childElementCount>0){let t=document.getElementById("boot");t&&t.remove();return}++Uv<900&&requestAnimationFrame(ng)};requestAnimationFrame(ng);})();
1052
+ `);let pn=new Blob([Te],{type:pt}),Tn=await B0(pn,ke,!1);if(!Tn.ok){ae({ok:!1,msg:e("exportFail")}),le(!1);return}ae({ok:!0,msg:e("exportedTo")+"\uFF1A"+e("defaultDownloads")+" \xB7 "+Tn.name})}catch(ie){ae({ok:!1,msg:e("exportFail")+" \xB7 "+(ie.message||"")})}finally{le(!1)}q.current&&clearTimeout(q.current),q.current=setTimeout(()=>ae(null),2600)},na=async N=>{let Y=N.target.files&&N.target.files[0];if(N.target.value="",!!Y){try{let ie=await Y.text(),Te=await(await fetch(`${Z}/import`,{method:"POST",headers:{"Content-Type":"application/json"},body:ie})).json();if(Te.ok){await oe();let ke=Te.imported||0,pt=e("importedVault")+"\uFF1A"+ke;Te.total&&(pt+=e("importedTotal")+Te.total+e("importedTotalTail")),Te.quarantined&&(pt+=e("importedQuarantine")+Te.quarantined+e("importedQuarantineTail")),Te.skipped&&(pt+=e("importedSkipped")+Te.skipped+e("importedSkippedTail")),Te.warning&&(pt+=" \xB7 "+Te.warning),ae({ok:ke>0||!Te.total,msg:pt})}else ae({ok:!1,msg:Te.error||e("importFail")})}catch{ae({ok:!1,msg:e("importFail")})}q.current&&clearTimeout(q.current),q.current=setTimeout(()=>ae(null),2400)}},Wo=async()=>{if(!te){v(!0);try{let N=await fetch(`${Z}/skills/sync`,{method:"POST"}).then(Y=>Y.json()).catch(()=>null);if(N&&N.ok){let Y=e("skillsSyncDone")+" \xB7 "+e("skillsScanned")+" "+(N.total||0)+" \xB7 "+e("skillsCreated")+" "+(N.created||0)+" \xB7 "+e("skillsUpdated")+" "+(N.updated||0)+" \xB7 "+e("skillsPendingUpdates")+" "+(N.pendingUpdates||0);ae({ok:!0,msg:Y}),await oe(),Ve()}else ae({ok:!1,msg:N&&N.error||e("skillsSyncFail")})}catch{ae({ok:!1,msg:e("skillsSyncFail")})}finally{v(!1)}q.current&&clearTimeout(q.current),q.current=setTimeout(()=>ae(null),3600)}},Tt=(0,p.useMemo)(()=>{let N=c.slice();return L!=="all"&&(N=N.filter(Y=>Pr(Y.submittedBy)===L)),D!=="all"&&(N=N.filter(Y=>(Y.status||"approved")===D)),H&&(N=N.filter(Y=>A.has(Y.path))),ne==="title"?N.sort((Y,ie)=>String(Y.title||"").localeCompare(String(ie.title||""))):ne==="hot"?N.sort((Y,ie)=>(ie.weight||ie.links||0)-(Y.weight||Y.links||0)):N.sort((Y,ie)=>new Date(ie.updated||0).getTime()-new Date(Y.updated||0).getTime()),N},[c,ne,L,D,H,A]),Nn=(0,p.useMemo)(()=>[...new Set(c.map(N=>Pr(N.submittedBy)))],[c]),In=(0,p.useMemo)(()=>{let N={};for(let Y of c){let ie=new Set(Y.tags||[]),Ce=0;for(let Te of c)Te.path!==Y.path&&(Te.tags||[]).some(ke=>ie.has(ke))&&Ce++;N[Y.path]=Ce}return N},[c]),[Wt,Oa]=(0,p.useState)(null),yt=(0,p.useMemo)(()=>{if(!Tt.length)return null;let N=Wt?Tt.find(ie=>ie.path===Wt):null;return N||Tt.find(ie=>Date.now()-new Date(ie.updated||0).getTime()>21*864e5)||Tt[0]},[Tt,Wt]),sr=()=>{if(!Tt.length)return;let N=Tt.findIndex(Y=>Y.path===(yt&&yt.path));Oa(Tt[(N+1+Tt.length)%Tt.length].path)},Mt=!f&&I==="all"&&!he&&D==="all"&&!!yt;return(0,r.jsxs)("div",{className:"memory-eternal-root me-v5","data-ui-scale":l,style:{height:"100%",width:"100%",zoom:l==="large"?1.15:l==="compact"?.92:1.06,overflow:"hidden",display:"flex",flexDirection:"column"},children:[(0,r.jsx)("style",{children:kn}),!t&&(0,r.jsxs)("div",{className:`mc-v5-top${a?" in-host":""}`,children:[(0,r.jsx)("img",{className:"mc-v5-logo",src:fl,alt:""}),(0,r.jsxs)("span",{className:"mc-v5-crumb",children:[(0,r.jsx)("b",{children:e("memoryTitle")}),(0,r.jsx)("i",{children:"/"}),(0,r.jsx)("span",{children:e(G==="cards"?"cardsTab":G==="graph"?"graphTab":G==="news"?"newsTab":G==="stats"?"tabUsage":G==="audit"?"tabAudit":G==="optimize"?"tabRecycle":G==="terminal"?"terminalTab":"tabConfig")})]}),(0,r.jsx)("div",{className:"spacer"}),(0,r.jsxs)("div",{className:"mc-v5-top-actions",children:[(0,r.jsxs)("span",{className:"mc-v5-sys",children:[(0,r.jsx)("i",{}),e("v5Local")]}),(0,r.jsxs)("span",{className:"mc-v5-ver",children:["v",Ia]}),(0,r.jsxs)("button",{type:"button",className:"mc-v5-star",onClick:()=>kl("https://github.com/EternalNight996/memory-eternal"),title:e("v5Star"),children:["\u2605 ",(0,r.jsx)("span",{className:"mc-v5-star-label",children:"Star"})]}),(0,r.jsx)("button",{type:"button",className:"mc-v5-help",onClick:()=>Qt("group"),title:e("supportTitle"),"aria-label":e("supportTitle"),children:"?"})]})]}),V&&(0,r.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10,margin:"8px 14px 0",padding:"10px 14px",borderRadius:10,background:"linear-gradient(90deg, rgba(255,122,69,0.14), rgba(255,122,69,0.03))",border:"1px solid rgba(255,122,69,0.32)",color:"var(--dsw-alias-label-primary, #e5e7eb)",fontSize:12.5,lineHeight:1.55},children:[(0,r.jsx)("span",{style:{fontSize:15,color:"#FF7A45"},children:"\u2605"}),(0,r.jsxs)("span",{style:{flex:1},children:[(0,r.jsx)("b",{children:e("starAskTitle")}),(0,r.jsx)("span",{style:{opacity:.82,marginLeft:8},children:e("starAskBody").replace("{recalls}",String(V.evidence?.recalls??0)).replace("{cards}",String(V.evidence?.cards??0))})]}),(0,r.jsxs)("button",{type:"button",className:"mc-btn me-on",onClick:()=>{kl("https://github.com/EternalNight996/memory-eternal"),z("never")},children:["\u2605 ",e("starAskGo")]}),(0,r.jsx)("button",{type:"button",className:"mc-btn",onClick:()=>z("later"),children:e("starAskLater")}),(0,r.jsx)("button",{type:"button",className:"mc-btn",onClick:()=>z("never"),children:e("starAskNever")})]}),Be&&(0,r.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,position:"fixed",left:"50%",transform:"translateX(-50%)",top:22,zIndex:70,background:"rgba(20,22,26,0.97)",backdropFilter:"blur(12px)",WebkitBackdropFilter:"blur(12px)",color:"#f5f5f5",borderRadius:12,padding:"10px 20px",fontSize:13.5,fontWeight:600,boxShadow:"0 14px 44px rgba(0,0,0,.5)",pointerEvents:"none",animation:"me-pop .22s ease",borderLeft:"4px solid "+(Be.ok?"#22c55e":"#ef4444"),maxWidth:"90vw"},children:[(0,r.jsx)("span",{style:{color:Be.ok?"#34d399":"#f87171",fontWeight:800,fontSize:15},children:Be.ok?"\u2713":"\u2715"}),(0,r.jsx)("span",{children:Be.msg})]}),t&&(0,r.jsxs)("div",{className:"me-modal-head",children:[(0,r.jsxs)("div",{className:"me-modal-title",children:[(0,r.jsx)("span",{className:"me-wicon",children:(0,r.jsx)("img",{src:fl,alt:""})}),(0,r.jsx)("h2",{children:e("memoryTitle")}),(0,r.jsx)("span",{children:e("memoryHint")})]}),(0,r.jsx)("div",{className:"spacer"}),(0,r.jsx)("button",{type:"button",className:"me-modal-close me-modal-x",onClick:n,"aria-label":e("close"),title:e("close"),children:(0,r.jsx)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round","aria-hidden":"true",children:(0,r.jsx)("path",{d:"M6 6l12 12M18 6L6 18"})})})]}),g&&g.ok===!1&&(0,r.jsxs)("div",{style:{display:"flex",alignItems:"flex-start",gap:8,margin:"0 0 8px",padding:"9px 14px",borderRadius:10,background:"rgba(239,68,68,0.10)",border:"1px solid rgba(239,68,68,0.45)",borderLeft:"4px solid #ef4444",color:"var(--dsw-alias-label-primary, #e5e7eb)",fontSize:12.5,lineHeight:1.6},children:[(0,r.jsxs)("span",{style:{fontWeight:800},children:["\u26A0 ",e("captureAlert")]}),(0,r.jsxs)("span",{style:{flex:1},children:[g.reason,(0,r.jsx)("div",{style:{opacity:.68,fontSize:11.5,marginTop:2},children:e("captureAlertHint")})]}),(0,r.jsx)("span",{style:{opacity:.7},children:g.since?lr(new Date(g.since).toISOString()):""})]}),(0,r.jsxs)("div",{className:"me-modal-body",children:[(0,r.jsxs)("div",{className:`mc-rail${Ne?" open":""}`,children:[(0,r.jsxs)("div",{className:"mc-v5-rail-top",children:[Ne&&(0,r.jsxs)("div",{className:"mc-v5-railbrand",children:[(0,r.jsx)("img",{className:"mark",src:fl,alt:""}),(0,r.jsxs)("div",{children:[(0,r.jsx)("b",{children:e("memoryTitle")}),(0,r.jsx)("span",{children:"MEMORY ATLAS"})]})]}),(0,r.jsx)("button",{type:"button",className:"mc-rail-collapse",onClick:()=>C(N=>!N),"aria-label":e(Ne?"collapse":"expand"),title:e(Ne?"collapse":"expand"),children:Ne?"\xAB":"\xBB"})]}),Ne&&(0,r.jsx)("div",{className:"mc-rail-sec",children:e("navWorkspace")}),(0,r.jsxs)("button",{type:"button",className:`mc-railbtn${G==="cards"?" active":""}`,onClick:()=>pe("cards"),title:e("cardsTab"),children:[(0,r.jsx)("span",{className:"mc-rail-ico",children:"\u{1F9E0}"}),Ne&&(0,r.jsx)("span",{className:"mc-rail-label",children:e("cardsTab")})]}),(0,r.jsxs)("button",{type:"button",className:`mc-railbtn${G==="graph"?" active":""}`,onClick:()=>pe("graph"),title:e("graphTab"),children:[(0,r.jsx)("span",{className:"mc-rail-ico",children:"\u{1F52E}"}),Ne&&(0,r.jsx)("span",{className:"mc-rail-label",children:e("graphTab")})]}),(0,r.jsxs)("button",{type:"button",className:`mc-railbtn${G==="news"?" active":""}`,onClick:()=>pe("news"),title:e("newsTab"),children:[(0,r.jsx)("span",{className:"mc-rail-ico",children:"\u{1F4F0}"}),Ne&&(0,r.jsx)("span",{className:"mc-rail-label",children:e("newsTab")}),Q>0&&(0,r.jsx)("span",{className:"mc-dot",children:Q>99?"99+":Q})]}),(0,r.jsxs)("button",{type:"button",className:`mc-railbtn${G==="stats"?" active":""}`,onClick:()=>pe("stats"),title:e("tabUsage"),children:[(0,r.jsx)("span",{className:"mc-rail-ico",children:"\u{1F4C8}"}),Ne&&(0,r.jsx)("span",{className:"mc-rail-label",children:e("tabUsage")})]}),(0,r.jsxs)("button",{type:"button",className:`mc-railbtn${G==="audit"?" active":""}`,onClick:()=>pe("audit"),title:e("tabAudit"),children:[(0,r.jsx)("span",{className:"mc-rail-ico",children:"\u{1F50D}"}),Ne&&(0,r.jsx)("span",{className:"mc-rail-label",children:e("tabAudit")}),d>0&&(0,r.jsx)("span",{className:"mc-dot",children:d>99?"99+":d})]}),Ne&&(0,r.jsx)("div",{className:"mc-rail-sec",children:e("navSystem")}),(0,r.jsxs)("button",{type:"button",className:`mc-railbtn${G==="optimize"?" active":""}`,onClick:()=>pe("optimize"),title:e("tabRecycle"),children:[(0,r.jsx)("span",{className:"mc-rail-ico",children:"\u267B\uFE0F"}),Ne&&(0,r.jsx)("span",{className:"mc-rail-label",children:e("tabRecycle")}),Bt>0&&(0,r.jsx)("span",{className:"mc-dot",style:{background:"#6b7280"},children:Bt>99?"99+":Bt})]}),(0,r.jsxs)("button",{type:"button",className:`mc-railbtn${G==="terminal"?" active":""}`,onClick:()=>pe("terminal"),title:e("terminalTab"),children:[(0,r.jsx)("span",{className:"mc-rail-ico",children:"\u25B8_"}),Ne&&(0,r.jsx)("span",{className:"mc-rail-label",children:e("terminalTab")})]}),(0,r.jsxs)("button",{type:"button",className:"mc-railbtn",onClick:qn,title:e("webTab"),"aria-label":e("webTab"),children:[(0,r.jsx)("span",{className:"mc-rail-ico",children:"\u{1F310}"}),Ne&&(0,r.jsx)("span",{className:"mc-rail-label",children:e("webTab")})]}),(0,r.jsxs)("button",{type:"button",className:`mc-railbtn${G==="config"?" active":""}`,onClick:()=>pe("config"),title:e("tabConfig"),children:[(0,r.jsx)("span",{className:"mc-rail-ico",children:"\u2699\uFE0F"}),Ne&&(0,r.jsx)("span",{className:"mc-rail-label",children:e("tabConfig")})]}),Ne&&(0,r.jsx)("div",{className:"mc-rail-sec",children:e("navSupport")}),(0,r.jsxs)("button",{type:"button",className:"mc-railbtn",onClick:()=>Qt("group"),title:e("supportGroup"),children:[(0,r.jsx)("span",{className:"mc-rail-ico",children:"\u{1F4AC}"}),Ne&&(0,r.jsx)("span",{className:"mc-rail-label",children:e("supportGroup")})]}),(0,r.jsxs)("button",{type:"button",className:"mc-railbtn",onClick:()=>Qt("sponsor"),title:e("supportSponsor"),children:[(0,r.jsx)("span",{className:"mc-rail-ico",children:"\u2615"}),Ne&&(0,r.jsx)("span",{className:"mc-rail-label",children:e("supportSponsor")})]}),(0,r.jsxs)("button",{type:"button",className:"mc-railbtn",onClick:()=>Qt("legacy"),title:e("supportLegacy"),children:[(0,r.jsx)("span",{className:"mc-rail-ico",children:"\u{1F9E9}"}),Ne&&(0,r.jsx)("span",{className:"mc-rail-label",children:e("supportLegacy")})]}),(0,r.jsxs)("button",{type:"button",className:"mc-railbtn",onClick:()=>ue(!0),title:e("fbNav"),children:[(0,r.jsx)("span",{className:"mc-rail-ico",children:"\u{1F41E}"}),Ne&&(0,r.jsx)("span",{className:"mc-rail-label",children:e("fbNav")})]}),Ne&&(0,r.jsxs)("button",{type:"button",className:"mc-quote",onClick:()=>ye(N=>(N+1)%wl.length),title:`${wl[x]}
1053
+ ${Bf}
1054
+ ${e("quoteHint")}`,children:[(0,r.jsxs)("span",{className:"mc-quote-tag",children:[e("navQuotes")," \xB7 ",x+1,"/",wl.length]}),(0,r.jsx)("span",{className:"mc-quote-text",children:wl[x]},x),(0,r.jsx)("span",{className:"mc-quote-src",children:Bf})]})]}),(0,r.jsxs)("div",{className:"mc-main",ref:b,children:[o&&o.db&&o.db.writable===!1?(0,r.jsxs)("div",{style:{margin:"8px 10px 0",padding:"8px 12px",borderRadius:8,fontSize:12,lineHeight:1.7,background:"rgba(239,68,68,0.10)",border:"1px solid rgba(239,68,68,0.35)",color:"#b91c1c"},children:["\u26A0\uFE0F ",e("dbReadonlyTitle"),"\uFF1A",o.db.error||"\u2014"," \u2014\u2014 ",e("dbReadonlyBody"),(0,r.jsx)("div",{style:{opacity:.85,marginTop:2},children:e("dbReadonlyFix")})]}):null,G==="cards"&&(0,r.jsxs)("div",{className:"mc-v5-pagehead",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{className:"mc-v5-eyebrow",children:"MEMORY LIBRARY"}),(0,r.jsx)("h1",{children:e("memoryTitle")}),(0,r.jsx)("p",{children:e("memoryHint")}),(0,r.jsxs)("div",{className:"mc-v5-pagehead-stats",children:[(0,r.jsxs)("span",{children:[(0,r.jsx)("b",{children:o?.total??"\u2014"})," ",e("cardsUnit")]}),(0,r.jsxs)("span",{children:[e("recent")," +",o?.recent??0]}),(0,r.jsxs)("span",{children:[e("pending")," ",o?.quarantine?.pending??o?.status?.pending??0]}),(0,r.jsxs)("span",{children:[e("rejected")," ",o?.quarantine?.rejected??o?.status?.rejected??0]})]})]}),(0,r.jsxs)("span",{className:"mc-v5-pagecount",children:[c.length," / ",Ht]})]}),G==="cards"&&(0,r.jsx)(l0,{t:e,notify:(N,Y)=>ae({ok:N,msg:Y}),onPromoted:()=>{oe(),Ve()}}),G==="cards"&&(0,r.jsxs)("div",{className:"mc-toolbar",children:[(0,r.jsx)("input",{type:"text",placeholder:e("searchPlaceholder"),value:f,onChange:N=>_e(N.target.value)}),he&&(0,r.jsxs)("button",{type:"button",className:"mc-chip active",title:e("clearFilter"),onClick:()=>$e(""),children:["\u{1F3F7} ",he," ",(0,r.jsx)("span",{style:{opacity:.7},children:"\u2715"})]}),(0,r.jsx)("input",{ref:ge,type:"file",accept:".json,application/json",style:{display:"none"},onChange:na}),(0,r.jsx)("button",{type:"button",className:"mc-btn",onClick:()=>ge.current&&ge.current.click(),children:e("importVault")}),(0,r.jsxs)("button",{type:"button",className:"mc-btn me-on",onClick:()=>S({kind:"knowledge",title:"",body:"",tags:"",template:""}),children:["+ ",e("newCard")]}),(0,r.jsx)("button",{type:"button",className:"mc-btn",disabled:te,onClick:Wo,title:e("skillCardsHint"),children:te?"\u23F3 "+e("syncingSkills"):"\u{1F9E9} "+e("syncSkills")}),(0,r.jsx)("button",{type:"button",className:"mc-btn",disabled:Le,onClick:()=>_r("md"),children:e(Le?"exporting":"exportVault")}),(0,r.jsx)("button",{type:"button",className:"mc-btn",disabled:Le,onClick:()=>_r("json"),children:e(Le?"exporting":"exportJson")}),(0,r.jsx)("button",{type:"button",className:"mc-btn",onClick:()=>oe(),children:e("refresh")})]}),G==="cards"&&(0,r.jsxs)("div",{className:"mc-chips",children:[Cl.map(N=>(0,r.jsxs)("button",{type:"button",className:`mc-chip${I===N?" active":""}`,onClick:()=>ze(N),children:[e(N==="all"?"all":Ct[N]),(0,r.jsx)("span",{className:"mc-chip-n",children:N==="all"?o?.total??0:o?.byKind?.[N]??0})]},N)),(0,r.jsxs)("button",{type:"button",className:`mc-chip${H?" active":""}`,onClick:()=>ce(N=>!N),children:["\u{1F4CC} ",e("pinnedOnly"),(0,r.jsx)("span",{className:"mc-chip-n",children:A.size})]}),(0,r.jsxs)("select",{value:L,onChange:N=>O(N.target.value),style:{fontSize:12,padding:"4px 8px",borderRadius:8,background:"var(--dsw-alias-bg-layer-1, #fff)",color:"inherit",border:"1px solid var(--dsw-alias-border-l2, #d1d5db)"},children:[(0,r.jsxs)("option",{value:"all",children:["\u{1F916} ",e("allAgents")]}),Yf(Nn).map(N=>(0,r.jsx)("option",{value:N,children:N},N))]}),(0,r.jsxs)("select",{value:D,onChange:N=>P(N.target.value),style:{fontSize:12,padding:"4px 8px",borderRadius:8,background:"var(--dsw-alias-bg-layer-1, #fff)",color:"inherit",border:"1px solid var(--dsw-alias-border-l2, #d1d5db)"},children:[(0,r.jsx)("option",{value:"all",children:e("allStatus")}),(0,r.jsx)("option",{value:"approved",children:e("statusApproved")}),(0,r.jsx)("option",{value:"pending",children:e("statusPending")}),(0,r.jsx)("option",{value:"rejected",children:e("statusRejected")})]}),(0,r.jsx)("span",{className:"spacer",style:{flex:1}}),[{key:"recent",label:e("sortRecent")},{key:"title",label:e("sortTitle")},{key:"hot",label:e("sortHot")}].map(N=>(0,r.jsx)("button",{type:"button",className:`mc-chip${ne===N.key?" active":""}`,onClick:()=>Ke(N.key),children:N.label},N.key))]}),E&&(0,r.jsxs)("div",{className:"mc-empty",children:[e("error"),"\uFF1A",E]}),(0,r.jsx)("div",{style:{display:G==="cards"?"contents":"none"},children:m?(0,r.jsx)(tg,{text:e("loading")}):E?(0,r.jsxs)("div",{className:"mc-empty",children:[e("error"),"\uFF1A",E," ",(0,r.jsx)("button",{type:"button",className:"mc-btn",onClick:()=>oe(),children:e("retry")})]}):c.length===0?(0,r.jsx)("div",{className:"mc-empty",children:e("empty")}):(0,r.jsxs)(r.Fragment,{children:[Mt&&(0,r.jsxs)("div",{className:"mc-v5-feature",onClick:()=>an(yt),children:[(0,r.jsxs)("div",{className:"mc-v5-feature-copy",children:[(0,r.jsx)("div",{className:"mc-v5-eyebrow",children:e("todayReview")}),(0,r.jsx)("h3",{children:yt.title}),(0,r.jsx)("p",{children:wd(yt)}),(0,r.jsxs)("div",{className:"mc-v5-feature-meta",children:[(0,r.jsxs)("span",{children:[Ar[yt.kind]||"\u{1F4CE}"," ",e(Ct[yt.kind]||"kindKnowledge")]}),(0,r.jsxs)("span",{children:["\u{1F552} ",lr(yt.updated)]}),(yt.tags||[]).slice(0,3).map(N=>(0,r.jsxs)("span",{children:["#",N]},N))]})]}),(0,r.jsxs)("div",{className:"mc-v5-feature-side",children:[(0,r.jsx)(eg,{n:In[yt.path]||0,color:qt[yt.kind]||qt.other,size:58}),(0,r.jsx)("b",{children:In[yt.path]||0}),(0,r.jsx)("span",{children:e("links")}),(0,r.jsx)("button",{type:"button",className:"mc-v5-feature-shuffle",onClick:N=>{N.stopPropagation(),sr()},children:e("reshuffle")}),(0,r.jsx)("span",{className:"mc-v5-feature-open",children:e("openArrow")})]})]}),(0,r.jsx)("div",{className:"mc-grid",children:Tt.filter(N=>!Mt||N.path!==yt.path).map(N=>(0,r.jsx)(E0,{card:N,t:e,query:f.trim(),onOpen:an,onDelete:Ue,onTagClick:$e,pinned:A.has(N.path),onPin:ve,onCore:Jt,links:In[N.path]||0},N.path))}),c.length<Ht&&(0,r.jsx)("div",{ref:Ir,style:{height:1}}),Cn&&(0,r.jsxs)("div",{className:"mc-empty",style:{padding:"10px 0"},children:[e("loading"),"\uFF08",c.length," / ",Ht,"\uFF09"]})]})}),(0,r.jsx)("div",{style:{display:G==="graph"?"flex":"none",flex:1,minHeight:0},children:F.has("graph")&&(0,r.jsx)(F0,{t:e,onOpen:an,all:we,onAllChange:fe,onMutate:Ve,active:G==="graph",visible:G==="graph"})}),(0,r.jsx)("div",{style:{display:G==="news"?"contents":"none"},children:F.has("news")&&(0,r.jsx)(C0,{t:e,version:R,onUnreadChange:K})}),(0,r.jsx)("div",{style:{display:G==="terminal"?"contents":"none"},children:F.has("terminal")&&(0,r.jsx)(i0,{t:e})}),(0,r.jsx)("div",{style:{display:G==="config"?"contents":"none"},children:F.has("config")&&(0,r.jsx)(d0,{t:e,onReload:()=>oe(),version:R})}),(0,r.jsx)("div",{style:{display:G==="stats"?"contents":"none"},children:F.has("stats")&&(0,r.jsx)(z0,{t:e,tab:"stats",onReload:()=>oe(),version:R})}),(0,r.jsx)("div",{style:{display:G==="audit"?"contents":"none"},children:F.has("audit")&&(0,r.jsx)(u0,{t:e,onReload:()=>{oe(),Ve()},version:R})}),(0,r.jsx)("div",{style:{display:G==="optimize"?"contents":"none"},children:F.has("optimize")&&(0,r.jsx)(T0,{t:e,onReload:()=>{oe(),Ve()},version:R})}),W&&(0,r.jsx)(L0,{t:e,onClose:()=>ue(!1)}),de&&(0,r.jsx)(D0,{t:e,tab:Nt,onTab:Yt,onClose:()=>be(!1),onFeedback:()=>{be(!1),ue(!0)},onReplay:()=>{be(!1),jt(!0)}}),qe&&(0,r.jsx)(P0,{t:e,onDone:gt}),me&&(0,r.jsx)(A0,{t:e,card:me,query:f.trim(),onNavigate:N=>{let Y=Tt.findIndex(Ce=>Ce.path===me.path),ie=Tt[Y+N];ie&&an(ie)},onTagClick:$e,onClose:()=>Ee(null),onDelete:N=>{Ee(null),Ue(N)},onFeedback:N=>{let Y=me.path;fetch(`${Z}/feedback`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({query:f.trim(),path:Y,useful:N})}).then(()=>ae({ok:!0,msg:e(N?"fbUseful":"fbIrr")})).catch(()=>{}),q.current&&clearTimeout(q.current),q.current=setTimeout(()=>ae(null),2e3)},allCards:Tt,onOpenRelated:N=>an(N),onKindChange:Jt,onSaved:async({path:N,status:Y,title:ie})=>{try{let Ce=Y&&Y!=="approved"?`&status=${encodeURIComponent(Y)}`:"",Te=await fetch(`${Z}/card?path=${encodeURIComponent(N)}${Ce}`).then(ke=>ke.json());Te&&Te.ok&&Ee(ke=>ke&&ke.path===N?{...ke,title:ie||Te.title||ke.title,text:Te.text}:ke)}catch{}await oe(),Ve(),ae({ok:!0,msg:e("editSaved")}),q.current&&clearTimeout(q.current),q.current=setTimeout(()=>ae(null),2e3)}}),(0,r.jsx)(R0,{t:e,newCard:Pe,setNewCard:S,onCreated:()=>{oe(),Ve(),ae({ok:!0,msg:e("created")}),q.current&&clearTimeout(q.current),q.current=setTimeout(()=>ae(null),2e3)}})]})]})]})}var Nl=({toast:e})=>e?(0,r.jsxs)("div",{className:"mc-card",style:{marginBottom:10,padding:"8px 12px",fontSize:12,borderLeft:"4px solid "+(e.ok?"#10b981":"#ef4444"),background:e.ok?"rgba(16,185,129,0.08)":"rgba(239,68,68,0.08)"},children:[e.ok?"\u2705":"\u26A0"," ",e.msg]}):null;var yd=(0,p.createContext)({form:null,set:()=>{}}),c0=new Set(["autoRestartOnDrift","coreMemoryEnabled","skillCardsAutoSync","workingMemoryEnabled"]);function dt({k:e,label:t,hint:n,type:a="text",step:o,min:i,max:l}){let{form:s,set:c}=(0,p.useContext)(yd);return(0,r.jsxs)("label",{className:"mc-field",children:[(0,r.jsx)("span",{className:"mc-field-label",children:t||e}),(0,r.jsx)("input",{type:a,step:o,min:i,max:l,value:s?s[e]??"":"",onChange:u=>{let m=u.target.value;c(e,a==="number"?m===""?"":Number(m):m)}}),n?(0,r.jsx)("span",{className:"mc-field-hint",children:n}):null]})}function Ot({k:e,label:t}){let{form:n,set:a}=(0,p.useContext)(yd),o=n?n[e]:void 0,i=o===void 0?c0.has(e):!!o;return(0,r.jsxs)("label",{className:"mc-switch",children:[(0,r.jsx)("input",{type:"checkbox",checked:i,onChange:l=>a(e,l.target.checked)}),(0,r.jsx)("span",{children:t||e})]})}function Kn({icon:e,title:t,sub:n,children:a}){return(0,r.jsxs)("div",{className:"mc-card mc-cfg-sec",children:[(0,r.jsxs)("div",{className:"mc-cfg-sec-head",children:[(0,r.jsx)("div",{className:"mc-cfg-sec-ico",children:e}),(0,r.jsxs)("div",{style:{minWidth:0},children:[(0,r.jsx)("div",{className:"mc-cfg-sec-title",children:t}),n?(0,r.jsx)("div",{className:"mc-cfg-sec-sub",children:n}):null]})]}),(0,r.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:13},children:a})]})}function d0({t:e,onReload:t,version:n,compact:a}){let[o,i]=(0,p.useState)(null),[l,s]=(0,p.useState)(0),[c,u]=(0,p.useState)(null),[m,h]=(0,p.useState)(null),[g,k]=(0,p.useState)(!1),[E,T]=(0,p.useState)(!1),I=(0,p.useRef)(!1),w=(0,p.useRef)(null),f=(0,p.useRef)({}),[y,L]=(0,p.useState)(null),[O,D]=(0,p.useState)(null),[P,A]=(0,p.useState)(""),[j,H]=(0,p.useState)(""),[ce,ve]=(0,p.useState)(""),[he,De]=(0,p.useState)(null),[G,je]=(0,p.useState)(null),[F,et]=(0,p.useState)(null),pe=(0,p.useCallback)(async(b,re=!1)=>{re||H("version");try{let oe=await fetch(Z+"/version-check"+(b?"?force=1":"")).then(Ue=>Ue.json());oe&&oe.ok?(et(oe),b&&v(oe.updateAvailable?e("vcLatest")+" v"+oe.latest:e("vcUpToDate"))):b&&v(e("vcCheckFail"),!1)}catch{b&&v(e("vcCheckFail"),!1)}finally{re||H("")}},[e]);(0,p.useEffect)(()=>{pe(!1);let b=setInterval(()=>{pe(!1,!0)},6e4),re=()=>{typeof document<"u"&&!document.hidden&&pe(!1,!0)};return document.addEventListener("visibilitychange",re),()=>{clearInterval(b),document.removeEventListener("visibilitychange",re)}},[n,pe]);let[ne,Ke]=(0,p.useState)(""),[Be,ae]=(0,p.useState)(null),[V,$]=(0,p.useState)(""),[z,q]=(0,p.useState)(!1),ge=(0,p.useRef)(null),Le=(0,p.useRef)(0),le=b=>{Le.current=b.currentTarget.scrollTop};(0,p.useLayoutEffect)(()=>{let b=ge.current;b&&Math.abs(b.scrollTop-Le.current)>1&&(b.scrollTop=Le.current)});let te=(0,p.useRef)(null),v=(b,re=!0)=>{te.current&&clearTimeout(te.current),ae({msg:b,ok:re}),te.current=setTimeout(()=>ae(null),1900)},Q=async()=>{if(!j){H("restart");try{let b=await fetch(Z+"/restart-self",{method:"POST"});if(b.status===404||b.status===405){v(qe("vcRestartNoRoute",{cmd:F&&F.restartCommand||"dsh-memory restart --port 7999"}),!1);return}let re=await b.json().catch(()=>null);if(!re){v(e("vcRestartFail")+"\uFF08HTTP "+b.status+"\uFF09",!1);return}if(!re.ok){v(re.error||e("vcRestartFail"),!1);return}if(re.alreadyCurrent){v(re.note||e("vcRestartCurrent"));return}v(re.note||e("vcRestartSent")),re.alreadyRunning||setTimeout(()=>{pe(!0)},6e3)}catch(b){v(e("vcRestartFail")+"\uFF1A"+String(b&&b.message||b),!1)}finally{H("")}}},K=F&&F.resident?String(F.resident.served||""):"",me=!!(F&&F.onDisk&&K&&K!==F.onDisk),Ee=!!(F&&F.resident&&F.resident.managed===!1&&F.resident.managedKnown===!1),we=F&&F.resident&&F.resident.replaceBlocked&&F.resident.replaceBlocked.fresh||null,fe=!!(F&&F.resident&&F.resident.managedBy==="host"),W=!!(F&&F.resident&&F.resident.managed===!1&&!Ee&&!fe),ue=!!(F&&F.resident&&!K),de=me||ue||W||Ee,be=gf({hasVersion:!!F,hostVersion:F?F.loaded:"",onDisk:F?F.onDisk:"",residentServed:F&&F.resident?F.resident.served:"",residentPresent:!!(F&&F.resident),residentManaged:F&&F.resident?F.resident.managed:null,residentManagedKnown:F&&F.resident?F.resident.managedKnown:null,residentManagedBy:F&&F.resident?F.resident.managedBy:"",replaceBlocked:F&&F.resident?F.resident.replaceBlocked:null}),Nt={hostProcessStale:()=>qe("vcHostProcessStale",{disk:F.onDisk,loaded:F.loaded}),residentDown:()=>qe("vcResidentDown",{port:F.resident&&F.resident.port||"",cmd:F.restartCommand||"dsh-memory restart --port 7999"}),residentReplaceBlocked:()=>qe("vcResidentReplaceBlocked",{served:K,err:we&&we.error||"",path:we&&we.lockPath||"",cmd:F.restartCommand||"dsh-memory restart --port "+(F.resident&&F.resident.port||7999)}),residentLockUnknown:()=>qe("vcResidentLockUnknown",{served:K,path:F.resident&&F.resident.lock&&F.resident.lock.path||"",err:F.resident&&F.resident.lock&&F.resident.lock.error||""}),residentUnmanaged:()=>qe("vcResidentUnmanaged",{served:K,cmd:F.restartCommand||"dsh-memory restart --port 7999"})},Yt={restartStart:()=>qe("vcRestartStart",{disk:F&&F.onDisk||""}),restartRepair:()=>qe("vcRestartRepair",{disk:F&&F.onDisk||""}),restartFixes:()=>qe("vcRestartFixes",{served:K||"",disk:F&&F.onDisk||""}),restartHostOnly:()=>qe("vcRestartHostOnly",{loaded:F&&F.loaded||"",disk:F&&F.onDisk||""}),restartAnyway:()=>qe("vcRestartAnyway",{ver:F&&F.onDisk||""})},qe=(b,re)=>Object.keys(re).reduce((oe,Ue)=>oe.split("{"+Ue+"}").join(re[Ue]),e(b)),jt=(0,p.useCallback)(async()=>{try{let[b,re,oe,Ue]=await Promise.all([fetch(`${Z}/config`).then(_e=>_e.json()).catch(()=>null),fetch(`${Z}/setup-status`).then(_e=>_e.json()).catch(()=>null),fetch(`${Z}/budget`).then(_e=>_e.json()).catch(()=>null),fetch(`${Z}/llm-routes`).then(_e=>_e.json()).catch(()=>null)]);if(Ue&&Ue.ok&&je(Ue),b&&b.ok){i(b),s(b.revision??0),u(b.schema??null);let _e=If(b.config??{},f.current);f.current=_e.overlay,h({..._e.values}),q(!1),L(b.dsh??null),k(b.writable===!1),T(b.viaPending===!0),A(""),I.current=!1}else oe&&oe.ok?(h({...oe}),q(!1),k(!0),A(e("configNeedsDsh"))):A(e("adminLoadFail"));re&&re.ok&&D(re),ve("")}catch{A(e("adminLoadFail"))}},[e]);(0,p.useEffect)(()=>{jt()},[n,jt]);let gt=(b,re)=>{I.current=!0,q(!0),$(""),h(oe=>({...oe??{},[b]:re}))};(0,p.useEffect)(()=>{w.current=jt},[jt]),(0,p.useEffect)(()=>{if(typeof EventSource>"u")return;let b=null;try{b=new EventSource(Z+"/events")}catch{return}let re=()=>{!I.current&&typeof w.current=="function"&&w.current()};try{b.addEventListener("config",re)}catch{}return()=>{try{b.close()}catch{}}},[]);let Qt=new Set(["dedupThreshold","captureMinChars","captureCooldownMs","maxCardsPerDay","captureMaxTokens","recallMinScore","recallLimit","recallSummaryLen","recycleRetentionDays","webPort","webCheckIntervalMs","webMaxRestart","sessionBudgetChars","coreMemoryLimit","coreMemoryMaxChars"]),Ye=b=>({init:e("modeInit"),interval:e("modeInterval"),manual:e("modeManual")})[b]||b,qn=async()=>{if(!m)return;if(g){v(e("editInSetting"),!1);return}let b={dedupThreshold:[0,1],captureMinChars:[0,1e6],captureCooldownMs:[0,1e9],maxCardsPerDay:[0,1e6],captureMaxTokens:[100,4e3],recallMinScore:[0,50],recallLimit:[1,20],recallSummaryLen:[40,400],recycleRetentionDays:[1,3650],webPort:[1,65535],webCheckIntervalMs:[1e3,6e5],webMaxRestart:[1,1e3],sessionBudgetChars:[0,1e9],coreMemoryLimit:[1,20],coreMemoryMaxChars:[200,1e4]},re=[];for(let[oe,[Ue,_e]]of Object.entries(b)){if(!(oe in m))continue;let ze=m[oe],$e=typeof ze=="number"?ze:Number(ze);(ze===""||ze===null||ze===void 0||!Number.isFinite($e)||$e<Ue||$e>_e)&&re.push(e("invalidField",{field:oe,min:Ue,max:_e,value:String(ze===""?"\u7A7A":ze)}))}if(re.length){let oe=e("saveInvalid")+"\uFF1A"+re.join("\uFF1B");A(oe),v(oe,!1);return}H("save");try{let oe={...m};for(let $e of Object.keys(m))$e in oe&&typeof oe[$e]=="string"&&oe[$e].trim()!==""&&Qt.has($e)&&(oe[$e]=Number(oe[$e]));Array.isArray(oe.vaultProfiles)&&(oe.vaultProfiles=oe.vaultProfiles.filter($e=>$e&&(String($e.name||"").trim()||String($e.path||"").trim())));let Ue=await fetch(`${Z}/config`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({patch:oe,expectedRevision:l})}),_e=await Ue.text(),ze=null;try{ze=_e?JSON.parse(_e):null}catch{ze=null}if(ze||(ze={error:"HTTP "+Ue.status+(_e?"\uFF1A"+_e.slice(0,200):"\uFF08\u5BBF\u4E3B\u672A\u8FD4\u56DE\u539F\u56E0\uFF0C\u8BF7\u68C0\u67E5\u662F\u5426\u6709\u6570\u5B57\u5B57\u6BB5\u4E3A\u7A7A\u6216\u8D85\u51FA\u8303\u56F4\uFF09")}),ze&&ze.ok){let $e=typeof ze.pendingOutcome=="string"?ze.pendingOutcome:"",Jt,an=!0;if($e==="applied")Jt=e("savedApplied")+(Array.isArray(ze.applied)&&ze.applied.length?" \xB7 "+ze.applied.join("\u3001"):"");else if($e==="queued")an=!1,Jt=e("saveQueued");else if($e==="failed")an=!1,Jt=e("saveFail")+" \xB7 "+(ze.hostGuard?e("saveHostGuard"):e("saveFailHint"));else if($e==="applied-direct")Jt=e("savedOk")+" \xB7 "+e("savedDirect");else{let _r=Array.isArray(ze.pending)&&ze.pending.length?" \xB7 "+e("savePending"):ze.note?" \xB7 "+e("restartHint"):"";Jt=(ze.retried?"\u267B ":"")+e("savedOk")+_r}f.current={...f.current,...oe},an?($(""),q(!1),ve(Jt)):A(Jt),v(Jt,an),await jt()}else{let $e=Ue.status===409?e("conflictRefresh"):ze?.error||e("saveFail");A($e),v($e,!1)}}catch{A(e("saveFail")),v(e("saveFail"),!1)}finally{H("")}},Ne=()=>{f.current={},h({...o?.config??{}}),$(""),q(!1),ve("")},C={env:"vaultSrcEnv",profile:"vaultSrcProfile",workspace:"vaultSrcWorkspace",vaultDir:"vaultSrcVaultDir",default:"vaultSrcDefault"},x=b=>Array.isArray(b?.vaultProfiles)?b.vaultProfiles:[],ye=(b,re,oe)=>{I.current=!0,q(!0),h(Ue=>{let _e=x(Ue).map($e=>({...$e||{}})),ze={..._e[b]||{}};return re==="match"?String(oe).trim()?ze.match={...ze.match||{},workspace:oe}:delete ze.match:ze[re]=oe,_e[b]=ze,{...Ue??{},vaultProfiles:_e}})},Pe=()=>{I.current=!0,q(!0),h(b=>({...b??{},vaultProfiles:[...x(b),{name:"",path:""}]}))},S=b=>{I.current=!0,q(!0),h(re=>({...re??{},vaultProfiles:x(re).filter((oe,Ue)=>Ue!==b)}))},R={fontSize:11,padding:"2px 8px",background:"var(--dsw-alias-bg-layer-2, #f3f4f6)",borderRadius:6},Ae={padding:"6px 8px",borderRadius:8,border:"1px solid var(--dsw-alias-border-l2, #d1d5db)",background:"transparent",color:"inherit",font:"inherit",fontSize:12,minWidth:0},Ve={A:{label:e("planA"),autoWebMode:"init",watchdogAutoSpawn:!1,distillEnabled:!0,dedupByLLM:!0,captureMaxTokens:4e3,recallMinScore:2,recallLimit:5,recallSummaryLen:130,recallIncludeBody:!1,captureCooldownMs:3e5},B:{label:e("planB"),autoWebMode:"init",watchdogAutoSpawn:!1,distillEnabled:!1,dedupByLLM:!1,captureMaxTokens:500,recallMinScore:3,recallLimit:3,recallSummaryLen:80,recallIncludeBody:!1,captureMinChars:300,maxCardsPerDay:40,captureCooldownMs:3e5},C:{label:e("planC"),autoWebMode:"interval",watchdogAutoSpawn:!0,distillEnabled:!0,dedupByLLM:!0,captureMaxTokens:1200,recallMinScore:1,recallLimit:8,recallSummaryLen:200,recallIncludeBody:!0,captureCooldownMs:12e4}},d=b=>{let re=Ve[b];re&&(h(oe=>({...oe??{},...re})),I.current=!0,q(!0),$(b),v(qe("planApplied",{plan:re.label})))},Bt=async()=>{try{let b=await fetch(Z+"/setup-status").then(re=>re.json());b&&b.ok&&D(b)}catch{}},Xt=async(b,re)=>{H(b+re);try{let Ue=await(await fetch(`${Z}/mcp/action`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({agent:b,action:re})})).json();Ue&&Ue.ok?v(qe(re==="install"?"mcpInstalled":"mcpUninstalled",{agent:b})):v(qe("mcpActionFail",{agent:b,error:Ue?.error||""}),!1);try{let _e=await fetch(`${Z}/setup-status`).then(ze=>ze.json());_e&&_e.ok&&D(_e)}catch{}}catch{v(e("mergeFail"),!1)}finally{H("")}},Ht=O&&Array.isArray(O.agents)?O.agents:[],Sn=Ht.filter(b=>b.installed),Cn=[...new Set(Sn.flatMap(b=>Array.isArray(b.servers)?b.servers:[]))],Fr=Ht.filter(b=>b.mcpConfigured&&!b.isDsh).length,Ir=Ht.some(b=>Array.isArray(b.servers));return(0,r.jsx)(yd.Provider,{value:{form:m,set:gt},children:(0,r.jsxs)("div",{className:"mc-admin",style:{display:"flex",flexDirection:"column",overflow:"hidden",flex:a?"0 0 auto":1,minHeight:0,maxHeight:a?"52vh":void 0},children:[(0,r.jsx)("style",{children:kn}),Be&&(0,r.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,position:"fixed",left:"50%",transform:"translateX(-50%)",top:22,zIndex:70,background:"rgba(20,22,26,0.97)",backdropFilter:"blur(12px)",WebkitBackdropFilter:"blur(12px)",color:"#f5f5f5",borderRadius:12,padding:"10px 20px",fontSize:13.5,fontWeight:600,boxShadow:"0 14px 44px rgba(0,0,0,.5)",pointerEvents:"none",animation:"me-pop .22s ease",borderLeft:"4px solid "+(Be.ok?"#22c55e":"#ef4444"),maxWidth:"90vw"},children:[(0,r.jsx)("span",{style:{color:Be.ok?"#34d399":"#f87171",fontWeight:800,fontSize:15},children:Be.ok?"\u2713":"\u2715"}),(0,r.jsx)("span",{style:{wordBreak:"break-all"},children:Be.msg})]}),(0,r.jsxs)("div",{ref:ge,onScroll:le,style:{flex:1,minHeight:0,overflow:"auto",overscrollBehavior:"contain",scrollbarGutter:"stable",padding:4},children:[!a&&(0,r.jsxs)("div",{className:"mc-v5-pagehead",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{className:"mc-v5-eyebrow",children:"MEMORY CONFIG"}),(0,r.jsx)("h1",{children:e("tabConfig")}),(0,r.jsx)("p",{children:e("configPageSub")})]}),(0,r.jsxs)("span",{className:"mc-v5-audit-trust",children:["\u{1F6E1} ",e("v5Local")]})]}),P&&(0,r.jsxs)("div",{className:"mc-card",style:{borderLeft:"4px solid #ef4444",background:"rgba(239,68,68,0.08)",padding:"12px 14px",marginBottom:10},children:[(0,r.jsxs)("div",{style:{fontSize:13,color:"#b91c1c",fontWeight:600,marginBottom:6},children:["\u26A0 ",P]}),(0,r.jsxs)("button",{type:"button",className:"mc-btn",onClick:jt,children:["\u21BB ",e("retry")]})]}),E&&(0,r.jsxs)("div",{className:"mc-card",style:{borderLeft:"4px solid #3b82f6",background:"rgba(59,130,246,0.08)",padding:"10px 14px",marginBottom:10,fontSize:12,color:"#1d4ed8",lineHeight:1.7},children:["\u2139 ",e("pendingSyncNote")]}),g&&(0,r.jsxs)("div",{className:"mc-card",style:{borderLeft:"4px solid #f59e0b",background:"rgba(245,158,11,0.08)",padding:"10px 14px",marginBottom:10,fontSize:12,color:"#b45309"},children:["\u2139\uFE0F ",e("configNeedsDsh")," \u2014\u2014 ",e("editInSetting")]}),ce&&(0,r.jsxs)("div",{className:"mc-card",style:{borderLeft:"4px solid #10b981",background:"rgba(16,185,129,0.08)",padding:"10px 14px",marginBottom:10,fontSize:12,color:"#059669"},children:["\u2713 ",ce]}),o&&(o.version||o.dsh?.vaultDir)&&(0,r.jsxs)("div",{className:"mc-card",style:{marginBottom:10,padding:"10px 14px"},children:[(0,r.jsxs)("div",{style:{display:"flex",gap:10,alignItems:"center",flexWrap:"wrap"},children:[(0,r.jsxs)("b",{style:{fontSize:12},children:["\u{1F4E6} ",e("pluginInfo")]}),(0,r.jsx)("span",{style:{fontSize:12,opacity:.7},children:e("dshHostLabel")}),o.version&&(0,r.jsxs)("code",{style:R,children:[e("vcLoaded")," v",o.version]}),F&&F.resident&&F.resident.served&&F.resident.served!==o.version&&(0,r.jsxs)("code",{style:R,children:[e("vcResident")," v",F.resident.served]}),F&&F.resident&&!F.resident.served&&(0,r.jsxs)("code",{style:{...R,color:"#b45309",fontWeight:600},children:[e("vcResident")," ",e("vcResidentDownShort")]}),F&&F.resident&&F.resident.served&&F.resident.managed===!1&&(0,r.jsxs)("code",{style:{...R,color:"#b45309",fontWeight:600},children:[e("vcResident")," v",F.resident.served," \xB7 ",e(we?"vcResidentReplaceBlockedShort":fe?"vcResidentHostManagedShort":Ee?"vcResidentLockUnknownShort":"vcResidentUnmanagedShort")]}),Ia&&(0,r.jsxs)("code",{style:R,children:[e("vcPage")," v",Ia]}),F&&F.onDisk&&(0,r.jsxs)("code",{style:R,children:[e("vcOnDisk")," v",F.onDisk]}),F&&F.latest&&(0,r.jsxs)("code",{style:R,children:[e("vcLatest")," v",F.latest]}),o.dsh?.vaultDir&&(0,r.jsxs)("span",{style:{fontSize:11,opacity:.6},children:["\u{1F4C1} ",o.dsh.vaultDir]}),(0,r.jsx)("div",{style:{flex:1}}),(0,r.jsx)("button",{type:"button",className:"mc-btn",disabled:j==="version",onClick:()=>pe(!0),children:j==="version"?e("checking"):"\u{1F504} "+e("vcCheck")})]}),F&&be.warn&&(0,r.jsx)("div",{style:{marginTop:8,fontSize:11.5,color:"#b45309",background:"rgba(245,158,11,0.12)",border:"1px solid rgba(245,158,11,0.35)",borderRadius:8,padding:"6px 10px"},children:(0,r.jsxs)("div",{children:["\u26A0\uFE0F ",Nt[be.warn]?Nt[be.warn]():""]})}),be.showButton&&(0,r.jsxs)("div",{style:{display:"flex",gap:8,alignItems:"center",marginTop:6,flexWrap:"wrap"},children:[(0,r.jsx)("button",{type:"button",className:"mc-btn"+(be.emphasis?" me-on":""),disabled:!!j,onClick:Q,children:j==="restart"?"\u23F3 "+e("vcRestarting"):"\u{1F504} "+e("vcRestart")}),F.restartCommand&&(0,r.jsx)("code",{style:{fontSize:11,opacity:.75},children:F.restartCommand}),(0,r.jsx)("span",{style:{fontSize:11,opacity:.65},children:Yt[be.hint]?Yt[be.hint]():""})]}),Ia&&F&&F.onDisk&&Ia!==F.onDisk&&(0,r.jsx)("div",{style:{marginTop:8,fontSize:11.5,color:"#b45309",background:"rgba(245,158,11,0.12)",border:"1px solid rgba(245,158,11,0.35)",borderRadius:8,padding:"6px 10px",lineHeight:1.7},children:e("vcPageStale",{page:Ia,disk:F.onDisk})}),F&&F.updateAvailable&&(0,r.jsxs)("div",{style:{marginTop:8,fontSize:11.5,opacity:.88},children:["\u2B06 ",e("vcOutdated")," \u2192 ",(0,r.jsx)("code",{children:F.updateCommand})]}),F&&F.checkError&&(0,r.jsxs)("div",{style:{marginTop:8,fontSize:11.5,color:"#b91c1c"},children:[e("vcCheckFail"),"\uFF1A",F.checkError]})]}),O&&O.agents&&(0,r.jsxs)("div",{className:"mc-card mc-cfg-sec",children:[(0,r.jsxs)("div",{className:"mc-cfg-sec-head",children:[(0,r.jsx)("div",{className:"mc-cfg-sec-ico",children:"\u{1F50C}"}),(0,r.jsxs)("div",{style:{minWidth:0},children:[(0,r.jsx)("div",{className:"mc-cfg-sec-title",children:e("mcpSetupStatus")}),(0,r.jsx)("div",{className:"mc-cfg-sec-sub",children:e("mcpAutoHint")})]}),(0,r.jsx)("span",{className:"mc-cfg-spacer"}),(0,r.jsx)("button",{type:"button",className:"mc-btn",style:{padding:"2px 8px",flex:"none"},onClick:Bt,children:e("mcpRefresh")})]}),Ir?(0,r.jsx)("div",{className:"mc-mcp-summary",children:qe("mcpSummary",{agents:Sn.length,servers:Cn.length,mounted:Fr})}):null,Ht.map(b=>{let re=Array.isArray(b.servers),oe=re?b.servers:[],Ue=b.isDsh?e("dshHostLabel"):b.label||b.name;return(0,r.jsxs)("div",{className:"mc-mcp-row",style:{opacity:b.installed?1:.55},children:[(0,r.jsxs)("div",{className:"mc-mcp-main",children:[(0,r.jsxs)("div",{className:"mc-mcp-title",children:[(0,r.jsx)("b",{children:Ue}),b.isDsh&&b.version&&(0,r.jsxs)("span",{className:"mc-mcp-badge",children:["v",b.version]}),!b.installed&&(0,r.jsx)("span",{className:"mc-mcp-badge",children:e("notInstalled")}),b.installed&&b.mcpConfigured===!1&&(0,r.jsx)("span",{className:"mc-mcp-badge",style:{color:"#f59e0b"},children:e("noMcpEntry")}),b.mcpConfigured===!0&&(0,r.jsxs)("span",{className:"mc-mcp-badge",style:{color:"#10b981"},children:["\u2713 ",e("healthy")]}),b.mcpConfigured===!0&&b.mcpMatchesCurrentNode===!1&&(0,r.jsx)("span",{className:"mc-mcp-badge",children:e("nodePathNote")}),(b.needsRepair||b.mcpNeedsRepair)&&(0,r.jsx)("span",{className:"mc-mcp-badge",style:{color:"#f59e0b"},children:e("mcpNeedsRepair")}),b.isDsh&&(0,r.jsxs)("span",{className:"mc-mcp-badge",children:[e("recallTool"),": ",b.recallTool?e("enabled"):e("disabled")]}),b.detectedOnly&&(0,r.jsx)("span",{className:"mc-mcp-badge",children:e("mcpDetectedOnly")}),b.reason&&(0,r.jsx)("span",{className:"mc-mcp-badge",style:{color:"#f59e0b"},children:b.reason})]}),re?oe.length?(0,r.jsx)("div",{className:"mc-mcp-servers",children:oe.map(_e=>(0,r.jsx)("code",{className:_e==="memory"?"on":"",children:_e},_e))}):b.installed?(0,r.jsx)("div",{className:"mc-mcp-servers",children:(0,r.jsx)("span",{style:{fontSize:10.5,opacity:.45},children:e("mcpNoServers")})}):null:null,b.mcpPath&&(0,r.jsx)("div",{className:"mc-mcp-path",title:b.mcpPath,children:b.mcpPath})]}),(0,r.jsxs)("div",{className:"mc-mcp-actions",children:[b.hook&&(0,r.jsxs)("span",{style:{fontSize:10.5,opacity:.55},children:["hook: ",b.hook]}),!b.isDsh&&!b.detectedOnly&&b.installed&&b.mcpConfigured===!1&&(0,r.jsx)("button",{type:"button",className:"mc-btn",style:{padding:"2px 8px"},disabled:!!j,onClick:()=>Xt(b.name,"install"),children:e("installMcp")}),!b.isDsh&&!b.detectedOnly&&b.installed&&(b.needsRepair||b.mcpNeedsRepair||b.mcpMatchesCurrentNode===!1)&&(0,r.jsx)("button",{type:"button",className:"mc-btn me-on",style:{padding:"2px 8px"},disabled:!!j,onClick:()=>Xt(b.name,"install"),children:e("repairMcp")}),!b.isDsh&&!b.detectedOnly&&b.installed&&b.mcpConfigured===!0&&(0,r.jsx)("button",{type:"button",className:"mc-btn",style:{padding:"2px 8px",color:"#f87171"},disabled:!!j,onClick:()=>{window.confirm(e("uninstallConfirm"))&&Xt(b.name,"uninstall")},children:e("uninstallMcp")})]})]},b.name+(b.mcpPath||""))}),(0,r.jsx)("div",{style:{fontSize:11,opacity:.55,marginTop:6},children:e("mcpSetupHint")}),ne&&(0,r.jsx)("div",{style:{fontSize:11,marginTop:6},children:(0,r.jsx)("code",{style:{padding:"2px 6px",background:"var(--dsw-alias-bg-layer-2, #f3f4f6)",borderRadius:4},children:ne})})]}),m?(0,r.jsxs)("div",{className:"mc-cfg",children:[(0,r.jsxs)(Kn,{icon:"\u{1F3AF}",title:e("presetConfig"),sub:e("presetHint"),children:[(0,r.jsx)("div",{className:"mc-plan-grid",children:["A","B","C"].map(b=>(0,r.jsxs)("button",{type:"button",className:"mc-plan"+(V===b?" on":""),"aria-pressed":V===b,onClick:()=>d(b),disabled:!!j,children:[(0,r.jsxs)("b",{children:[V===b?"\u2705 ":b==="A"?"\u{1F7E2} ":b==="B"?"\u{1F4B0} ":"\u2B50 ",Ve[b].label]}),(0,r.jsx)("span",{children:e("planDesc"+b)})]},b))}),V?(0,r.jsxs)("div",{style:{fontSize:11,color:"#10b981"},children:["\u2705 ",qe("planApplied",{plan:Ve[V].label})]}):null]}),(0,r.jsx)(Kn,{icon:"\u{1F9E0}",title:e("dshMemoryConfig"),sub:e("cfgSubCore"),children:(0,r.jsxs)("div",{className:"mc-cfg-grid",children:[(0,r.jsx)(Ot,{k:"enabled",label:e("enabledLabel")}),(0,r.jsx)(Ot,{k:"autoCapture",label:e("autoCapture")}),(0,r.jsx)(Ot,{k:"autoRecall",label:e("autoRecall")}),(0,r.jsx)(dt,{k:"vaultDir",label:e("vaultDirLabel")}),(0,r.jsx)(dt,{k:"captureMinChars",label:e("captureMinChars"),hint:e("unitChars"),type:"number"}),(0,r.jsx)(dt,{k:"maxCardsPerDay",label:e("maxCardsPerDay"),hint:e("unitPerDay"),type:"number"}),(0,r.jsx)(dt,{k:"dedupThreshold",label:e("dedupThreshold"),type:"number",step:"0.01",min:"0",max:"1"}),(0,r.jsx)(dt,{k:"recallLimit",label:e("recallLimit"),type:"number"}),(0,r.jsx)(dt,{k:"recallSummaryLen",label:e("recallSummaryLen"),hint:e("unitChars"),type:"number"}),(0,r.jsx)(Ot,{k:"recallIncludeBody",label:e("recallBody")}),(0,r.jsx)(dt,{k:"secretHint",label:e("secretHint")}),(0,r.jsx)(dt,{k:"recallEmbedding",label:e("recallEmbedding")})]})}),(0,r.jsx)(Kn,{icon:"\u2B50",title:e("coreMemory"),sub:e("coreMemoryHint"),children:(0,r.jsxs)("div",{className:"mc-cfg-grid",children:[(0,r.jsx)(Ot,{k:"coreMemoryEnabled",label:e("coreMemoryEnabled")}),(0,r.jsx)(Ot,{k:"workingMemoryEnabled",label:e("workingMemoryEnabled")}),(0,r.jsx)(dt,{k:"coreMemoryLimit",label:e("coreMemoryLimit"),type:"number"}),(0,r.jsx)(dt,{k:"coreMemoryMaxChars",label:e("coreMemoryMaxChars"),type:"number"})]})}),(0,r.jsxs)(Kn,{icon:"\u{1F9E9}",title:e("skillCards"),sub:e("skillCardsHint"),children:[(0,r.jsx)("div",{className:"mc-cfg-grid",children:(0,r.jsx)(Ot,{k:"skillCardsAutoSync",label:e("skillAutoSync")})}),(0,r.jsx)("div",{style:{display:"flex",gap:10,alignItems:"center",flexWrap:"wrap"},children:(0,r.jsx)("button",{type:"button",className:"mc-btn",disabled:!!j,onClick:async()=>{H("skills");try{let b=await fetch(Z+"/skills/sync",{method:"POST"}).then(re=>re.json()).catch(()=>null);b&&b.ok?v(e("skillsSyncDone")+"\uFF1A"+e("skillsScanned")+" "+(b.total||0)+" \xB7 "+e("skillsCreated")+" "+(b.created||0)+" \xB7 "+e("skillsUpdated")+" "+(b.updated||0)+" \xB7 "+e("skillsPendingUpdates")+" "+(b.pendingUpdates||0)):v(b&&b.error||e("skillsSyncFail"),!1)}catch{v(e("skillsSyncFail"),!1)}finally{H("")}},children:j==="skills"?"\u23F3 "+e("syncingSkills"):"\u{1F9E9} "+e("syncSkills")})})]}),(0,r.jsxs)(Kn,{icon:"\u{1F4EC}",title:e("newsDigest"),sub:e("newsDigestHint"),children:[(0,r.jsxs)("div",{className:"mc-cfg-grid",children:[(0,r.jsx)(Ot,{k:"newsDigestEnabled",label:e("newsDigestEnabled")}),(0,r.jsx)(dt,{k:"newsDigestIntervalMinutes",label:e("newsDigestInterval"),type:"number"}),(0,r.jsx)(dt,{k:"newsDigestMaxItems",label:e("newsDigestMaxItems"),type:"number"})]}),(0,r.jsxs)("div",{style:{display:"flex",gap:10,alignItems:"center",flexWrap:"wrap"},children:[(0,r.jsx)("button",{type:"button",className:"mc-btn",disabled:!!j,onClick:async()=>{H("digest");try{let b=await fetch(Z+"/news/digest",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({})}).then(re=>re.json()).catch(()=>null);b&&b.ok?(De(b.text||""),v(b.digest&&b.digest.items&&b.digest.items.length?e("newsDigestDone"):e("newsDigestEmpty"),!0)):v(b&&b.error||e("newsDigestFail"),!1)}catch{v(e("newsDigestFail"),!1)}finally{H("")}},children:j==="digest"?"\u23F3 "+e("newsDigestBuilding"):"\u{1F4EC} "+e("newsDigestNow")}),(0,r.jsx)("span",{className:"mc-field-hint",children:e("newsDigestNowHint")})]}),he!==null?(0,r.jsx)("pre",{className:"mc-digest-preview",children:he||e("newsDigestEmpty")}):null]}),(0,r.jsx)(Kn,{icon:"\u{1F520}",title:e("uiLayout"),sub:e("uiLayoutHint"),children:(0,r.jsx)("div",{className:"mc-cfg-grid",children:(0,r.jsxs)("label",{className:"mc-field",children:[(0,r.jsx)("span",{className:"mc-field-label",children:e("uiLayout")}),(0,r.jsxs)("select",{value:m&&m.uiScale||"normal",onChange:b=>{let re=b.target.value;gt("uiScale",re);try{window.dispatchEvent(new CustomEvent("me-ui-scale",{detail:re}))}catch{}},children:[(0,r.jsx)("option",{value:"compact",children:e("uiCompact")}),(0,r.jsx)("option",{value:"normal",children:e("uiNormal")}),(0,r.jsx)("option",{value:"large",children:e("uiLarge")})]})]})})}),(0,r.jsxs)(Kn,{icon:"\u{1F5C2}\uFE0F",title:e("vaultMulti"),sub:e("cfgSubMulti"),children:[(0,r.jsxs)("div",{style:{fontSize:11.5,opacity:.85,marginBottom:8,lineHeight:1.7},children:[e("vaultNow"),"\uFF1A",(0,r.jsx)("code",{children:y?.vaultDir||"\u2014"}),y?.vaultName?`\uFF08${y.vaultName}\uFF09`:""," \xB7 ",e("vaultSource"),"\uFF1A",e(C[y?.vaultSource]||"vaultSrcDefault"),y?.workspace?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("br",{}),e("vaultWorkspace"),"\uFF1A",(0,r.jsx)("code",{children:y.workspace})]}):null]}),x(m).map((b,re)=>(0,r.jsxs)("div",{style:{display:"grid",gridTemplateColumns:"1fr 1.6fr 1.5fr auto",gap:6,marginBottom:6},children:[(0,r.jsx)("input",{value:b.name||"",placeholder:e("vaultNamePh"),onChange:oe=>ye(re,"name",oe.target.value),style:Ae,disabled:g}),(0,r.jsx)("input",{value:b.path||"",placeholder:e("vaultPathPh"),onChange:oe=>ye(re,"path",oe.target.value),style:Ae,disabled:g}),(0,r.jsx)("input",{value:b.match&&b.match.workspace||"",placeholder:e("vaultMatchPh"),onChange:oe=>ye(re,"match",oe.target.value),style:Ae,disabled:g}),(0,r.jsx)("button",{type:"button",className:"mc-btn",onClick:()=>S(re),disabled:g,title:e("delete"),children:"\u2715"})]},re)),(0,r.jsxs)("div",{style:{display:"flex",gap:10,alignItems:"center",flexWrap:"wrap",marginTop:4},children:[(0,r.jsxs)("button",{type:"button",className:"mc-btn",onClick:Pe,disabled:g,children:["\uFF0B ",e("vaultAdd")]}),(0,r.jsxs)("label",{style:{display:"flex",alignItems:"center",gap:6,fontSize:12},children:[(0,r.jsx)("span",{style:{opacity:.6},children:e("vaultActive")}),(0,r.jsxs)("select",{value:m.activeVault||"",onChange:b=>gt("activeVault",b.target.value),disabled:g,style:Ae,children:[(0,r.jsx)("option",{value:"",children:e("vaultActiveNone")}),x(m).filter(b=>b&&b.name).map(b=>(0,r.jsx)("option",{value:b.name,children:b.name},b.name))]})]})]})]}),(0,r.jsx)(Kn,{icon:"\u{1F4B0}",title:e("costControl"),sub:e("costHint"),children:(0,r.jsxs)("div",{className:"mc-cfg-grid",children:[(0,r.jsx)(Ot,{k:"distillEnabled",label:e("distillEnabled")}),(0,r.jsx)(Ot,{k:"dedupByLLM",label:e("dedupByLLM")}),(0,r.jsx)(dt,{k:"captureMaxTokens",label:e("captureMaxTokens"),type:"number"}),(0,r.jsx)(dt,{k:"captureTimeoutMs",label:e("captureTimeoutMs"),type:"number"}),(0,r.jsx)(dt,{k:"recallMinScore",label:e("recallMinScore"),type:"number"}),(0,r.jsx)(dt,{k:"captureCooldownMs",label:e("captureCooldownMs"),type:"number"}),G&&G.ok===!1&&(0,r.jsxs)("div",{style:{gridColumn:"1 / -1",fontSize:11.5,color:"#b45309",background:"rgba(245,158,11,0.12)",border:"1px solid rgba(245,158,11,0.35)",borderRadius:8,padding:"6px 10px",lineHeight:1.6},children:["\u26A0 ",qe("routeListFail",{err:G.error||"\u672A\u77E5\u539F\u56E0"})]}),G&&G.providers&&G.providers.length?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("label",{className:"mc-field",children:[(0,r.jsx)("span",{className:"mc-field-label",children:e("captureProvider")}),(0,r.jsxs)("select",{value:m.captureProvider||"",onChange:b=>{gt("captureProvider",b.target.value),gt("captureModel","")},children:[(0,r.jsx)("option",{value:"",children:e("routeAuto")}),G.providers.map(b=>(0,r.jsx)("option",{value:b.id,children:b.label},b.id))]})]}),(0,r.jsxs)("label",{className:"mc-field",children:[(0,r.jsx)("span",{className:"mc-field-label",children:e("captureModel")}),(0,r.jsxs)("select",{value:m.captureModel||"",onChange:b=>gt("captureModel",b.target.value),children:[(0,r.jsx)("option",{value:"",children:e("routeAuto")}),((G.providers.find(b=>b.id===m.captureProvider)||{}).models||[]).map(b=>(0,r.jsx)("option",{value:b.id,children:b.label||b.id},b.id))]})]})]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(dt,{k:"captureProvider",label:e("captureProvider")}),(0,r.jsx)(dt,{k:"captureModel",label:e("captureModel")})]}),(0,r.jsx)(Ot,{k:"captureFollowSession",label:e("captureFollowSession")}),(0,r.jsx)(Ot,{k:"captureFirstOnly",label:e("captureFirstOnly")}),(0,r.jsx)(dt,{k:"sessionBudgetChars",label:e("sessionBudgetChars"),type:"number"}),(0,r.jsx)("div",{style:{display:"flex",alignItems:"flex-end"},children:(0,r.jsx)("button",{type:"button",className:"mc-btn",disabled:!!j,onClick:async()=>{H("llmtest");try{let b=await fetch(Z+"/llm-test",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:m.captureProvider||"",model:m.captureModel||"",firstOnly:m.captureFirstOnly===!0})}).then(re=>re.json());b&&b.ok?v(e("llmTestOk")+"\uFF1A"+b.route.provider+(b.route.model?"/"+b.route.model:"")+" \xB7 "+b.ms+"ms \xB7 "+e("llmCandidates")+" "+b.candidates):v(e("llmTestFail")+"\uFF1A"+(b&&(b.failure?b.failure.code+" "+b.failure.message:b.error)||"?"),!1)}catch(b){v(e("llmTestFail")+"\uFF1A"+String(b&&b.message||b),!1)}finally{H("")}},children:j==="llmtest"?e("exporting"):"\u{1F50C} "+e("llmTest")})})]})}),(0,r.jsx)(Kn,{icon:"\u{1F6E1}\uFE0F",title:e("auditConfig"),sub:e("auditHint"),children:(0,r.jsxs)("div",{className:"mc-cfg-grid",children:[(0,r.jsxs)("label",{className:"mc-field",children:[(0,r.jsx)("span",{className:"mc-field-label",children:e("auditMode")}),(0,r.jsxs)("select",{value:m.auditMode??"all",onChange:b=>gt("auditMode",b.target.value),children:[(0,r.jsx)("option",{value:"all",children:e("auditAll")}),(0,r.jsx)("option",{value:"none",children:e("auditNone")})]})]}),(0,r.jsx)(Gf,{label:e("auditExemptAgents"),value:m.auditExemptAgents||[],options:[{value:"__all__",label:e("allExempt")},...(O?.agents||[]).filter(b=>!b.isDsh).map(b=>({value:b.name,label:b.name}))],onChange:b=>gt("auditExemptAgents",b)}),(0,r.jsx)(Gf,{label:e("auditExemptKinds"),value:m.auditExemptKinds||[],options:[{value:"__all__",label:e("allExempt")},...Cl.filter(b=>b!=="all"&&b!=="core"&&b!=="skill").map(b=>({value:b,label:e(Ct[b])}))],onChange:b=>gt("auditExemptKinds",b)}),(0,r.jsx)(dt,{k:"recycleRetentionDays",label:e("recycleDays"),hint:e("unitDays"),type:"number"})]})}),(0,r.jsx)(Kn,{icon:"\u{1F6E0}",title:e("serviceConfig"),sub:e("cfgSubService"),children:(0,r.jsxs)("div",{className:"mc-cfg-grid",children:[(0,r.jsx)(Ot,{k:"autoWeb",label:e("autoWeb")}),(0,r.jsxs)("label",{className:"mc-field",children:[(0,r.jsx)("span",{className:"mc-field-label",children:e("autoWebMode")}),(0,r.jsxs)("select",{value:m.autoWebMode??"init",onChange:b=>gt("autoWebMode",b.target.value),children:[(0,r.jsx)("option",{value:"init",children:e("modeInit")}),(0,r.jsx)("option",{value:"interval",children:e("modeInterval")}),(0,r.jsx)("option",{value:"manual",children:e("modeManual")})]})]}),(0,r.jsx)(dt,{k:"webPort",label:e("webPort"),type:"number"}),(0,r.jsx)(dt,{k:"webCheckIntervalMs",label:e("webCheckIntervalMs"),type:"number"}),(0,r.jsx)(dt,{k:"webMaxRestart",label:e("webMaxRestart"),hint:e("unitTimes"),type:"number"}),(0,r.jsx)(Ot,{k:"watchdogAutoSpawn",label:e("watchdogAutoSpawn")}),(0,r.jsx)(Ot,{k:"autoRestartOnDrift",label:e("autoRestartOnDrift")}),(0,r.jsx)(Ot,{k:"autoMcpSetup",label:e("autoMcpSetup")})]})}),(0,r.jsxs)("div",{className:"mc-cfg-actions",children:[z?(0,r.jsx)("span",{className:"mc-cfg-dirty",children:e("cfgDirty")}):(0,r.jsxs)("span",{className:"mc-cfg-clean",children:["\u2713 ",e("cfgClean")]}),(0,r.jsx)("span",{className:"mc-cfg-spacer"}),j==="save"&&(0,r.jsxs)("span",{style:{fontSize:11.5,opacity:.75},children:["\u23F3 ",e("saving")]}),ce&&j!=="save"&&(0,r.jsxs)("span",{style:{fontSize:11.5,color:"#10b981"},children:["\u2705 ",ce]}),P&&j!=="save"&&(0,r.jsxs)("span",{style:{fontSize:11.5,color:"#b91c1c"},children:["\u26A0 ",P]}),(0,r.jsx)("button",{type:"button",className:"mc-btn",onClick:Ne,disabled:!!j,children:e("reset")}),(0,r.jsx)("button",{type:"button",className:"mc-btn me-on",onClick:g?()=>v(e("readonlyTitle")+"\uFF1A"+e("readonlyBody"),!1):qn,disabled:j==="save",title:e(g?"readonlyBody":"saveConfig"),children:j==="save"?"\u23F3 "+e("saving"):g?"\u{1F512} "+e("readonlyBtn"):"\u{1F4BE} "+e("saveConfig")})]})]}):(0,r.jsx)("div",{style:{fontSize:12,opacity:.6},children:e("loading")})]})]})})}function u0({t:e,onReload:t,version:n}){let[a,o]=(0,p.useState)([]),[i,l]=(0,p.useState)([]),[s,c]=(0,p.useState)("all"),[u,m]=(0,p.useState)("all"),[h,g]=(0,p.useState)(""),[k,E]=(0,p.useState)(""),[T,I]=(0,p.useState)(new Set),[w,f]=(0,p.useState)(null),[y,L]=(0,p.useState)(""),[O,D]=(0,p.useState)(null),[P,A]=(0,p.useState)("pending"),j=(z,q=!0)=>{D({msg:z,ok:q}),setTimeout(()=>D(null),3e3)},H=[...new Set([...a,...i].map(z=>z.submittedBy).filter(Boolean))],ce=(0,p.useCallback)(async()=>{try{let z=await fetch(`${Z}/audit/list`).then(q=>q.json());z.ok&&(o(z.pending||[]),l(z.rejected||[]),I(new Set),F({}))}catch{}},[]);(0,p.useEffect)(()=>{ce()},[n,ce]);let ve=(P==="pending"?a:i).filter(z=>{if(!td(z,k)||s!=="all"&&z.kind!==s||u!=="all"&&Pr(z.submittedBy)!==u)return!1;if(h){let q=hl(z.created);if(q&&q!==h)return!1}return!0}),he=(0,p.useMemo)(()=>{let z=P==="pending"?a:i,q={all:0};return z.forEach(ge=>{if(td(ge,k)&&!(u!=="all"&&Pr(ge.submittedBy)!==u)){if(h){let Le=hl(ge.created);if(Le&&Le!==h)return}q.all++,q[ge.kind||"other"]=(q[ge.kind||"other"]||0)+1}}),q},[a,i,P,u,h,k]),De=z=>I(q=>{let ge=new Set(q);return ge.has(z)?ge.delete(z):ge.add(z),ge}),G=async(z,q,ge={})=>{let Le=q||[...T];if(!Le.length){j(e("noSelection"),!1);return}L("apply");let le=z==="approved"?ge.kind==="core"?e("approveCore"):e("toastApproved"):e(z==="rejected"?"toastRejected":"toastCardDeleted");try{let te=0;for(let v of Le){let Q=z==="approved"?"audit/approve":z==="rejected"?"audit/reject":"delete";try{let K=z==="approved"&&ge.kind?{path:v,kind:ge.kind}:null;(await fetch(Z+"/"+Q+(K?"":"?path="+encodeURIComponent(v)+(z==="delete"?"&permanent=0":"")),K?{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(K)}:void 0)).ok||te++}catch{te++}}await ce(),t&&t(),te?j(e("toastFailed")+"\uFF08"+te+"/"+Le.length+"\uFF09",!1):j(le+" "+Le.length+" \u5F20")}catch(te){j(e("toastFailed")+": "+String(te&&te.message||te),!1)}finally{L("")}},[je,F]=(0,p.useState)({}),et=z=>je[z]||{},pe=[...T],ne=ve.find(z=>z.path===w)||ve[0]||null,Ke=ne?et(ne.path):{};(0,p.useEffect)(()=>{let z=ne;if(!z||je[z.path])return;let q=!0,ge=z.path;F(le=>({...le,[ge]:{loading:!0}}));let Le=z.status||(P==="pending"?"pending":"rejected");return fetch(`${Z}/card?path=${encodeURIComponent(ge)}&status=${Le}`).then(le=>le.json()).then(le=>{q&&(le&&le.ok?F(te=>({...te,[ge]:{text:le.text||""}})):F(te=>({...te,[ge]:{error:le&&le.error||"HTTP"}})))}).catch(le=>{q&&F(te=>({...te,[ge]:{error:String(le&&le.message||le)}}))}),()=>{q=!1}},[ne&&ne.path,P]);let Be=async()=>{if(window.confirm(e("reclassify")+"\uFF1F\u53EA\u5904\u7406\u81EA\u52A8\u6C89\u6DC0\u7684\u5F85\u5BA1\u539F\u6587\u5361\uFF0C\u4E0D\u6539\u4EBA\u5DE5\u5361\u3002")){L("reclassify");try{let z=await fetch(Z+"/reclassify").then(q=>q.json());z&&z.ok?j(e("reclassify")+"\uFF1A"+z.changed+" / "+z.scanned):j(e("toastFailed")+": "+(z&&z.error||"HTTP"),!1),await ce(),t&&t()}catch(z){j(e("toastFailed")+": "+String(z&&z.message||z),!1)}finally{L("")}}},ae=()=>I(new Set),V=z=>{A(z),ae()},$=["all",...Cl.filter(z=>z!=="all")];return(0,r.jsxs)("div",{className:"mc-admin",style:{display:"flex",flexDirection:"column",overflow:"auto",flex:1,minHeight:0},children:[(0,r.jsx)("style",{children:kn}),(0,r.jsxs)("div",{style:{overflow:"auto",padding:4},children:[(0,r.jsx)(Nl,{toast:O}),(0,r.jsxs)("div",{className:"mc-v5-pagehead mc-v5-audithead",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{className:"mc-v5-eyebrow",children:"REVIEW INBOX"}),(0,r.jsx)("h1",{children:e("tabAudit")}),(0,r.jsx)("p",{children:e("auditInboxSub")})]}),(0,r.jsxs)("span",{className:"mc-v5-pagecount",children:[a.length," \u5F20"]}),(0,r.jsxs)("span",{className:"mc-v5-audit-trust",children:["\u{1F6E1} ",e("auditUndo")]})]}),(0,r.jsxs)("div",{className:"me-audit",children:[(0,r.jsxs)("div",{className:"mc-card mc-audit-filtercard",style:{marginBottom:10,display:"flex",flexDirection:"column",gap:8},children:[(0,r.jsxs)("div",{className:"me-audit-filter-row",children:[(0,r.jsxs)("b",{style:{fontSize:12},children:["\u{1F6E1}\uFE0F ",e("tabAudit")]}),(0,r.jsx)("input",{type:"text",value:k,onChange:z=>{E(z.target.value),ae(),f(null)},placeholder:e("auditSearchPlaceholder"),"aria-label":e("auditSearchPlaceholder"),style:{flex:"1 1 220px",minWidth:160,padding:"5px 9px",borderRadius:8,background:"var(--dsw-alias-bg-layer-1, #fff)",color:"inherit",border:"1px solid var(--dsw-alias-border-l2, #d1d5db)",fontSize:12}}),k&&(0,r.jsx)("button",{type:"button",className:"mc-btn",style:{padding:"2px 8px"},onClick:()=>{E(""),ae(),f(null)},title:e("clearFilter"),children:"\u2715"}),(0,r.jsxs)("select",{value:u,onChange:z=>{m(z.target.value),ae()},style:{fontSize:12,padding:"4px 8px",borderRadius:8,background:"var(--dsw-alias-bg-layer-1, #fff)",color:"inherit",border:"1px solid var(--dsw-alias-border-l2, #d1d5db)"},children:[(0,r.jsx)("option",{value:"all",children:e("allAgents")}),Yf(H).map(z=>(0,r.jsx)("option",{value:z,children:z},z))]}),(0,r.jsx)("input",{type:"date",value:h,onChange:z=>{g(z.target.value),ae()},style:{fontSize:12,padding:"4px 8px",borderRadius:8,background:"var(--dsw-alias-bg-layer-1, #fff)",color:"inherit",border:"1px solid var(--dsw-alias-border-l2, #d1d5db)"}})]}),(0,r.jsxs)("div",{className:"me-audit-types-top",children:[(0,r.jsx)("span",{className:"me-audit-types-label",children:e("auditTypeLabel")}),$.map(z=>{let q=z==="all"?"var(--dsw-alias-label-secondary, #9ca3af)":qt[z]||"#6B7280";return(0,r.jsxs)("button",{type:"button",className:`me-audit-kind${s===z?" active":""}`,onClick:()=>{c(z),ae()},children:[(0,r.jsx)("span",{className:"me-audit-kind-dot",style:{background:q}}),(0,r.jsx)("span",{className:"me-audit-kind-name",children:e(z==="all"?"all":Ct[z])}),(0,r.jsx)("span",{className:"me-audit-kind-count",children:he[z]||0})]},z)})]})]}),(0,r.jsxs)("div",{className:"me-audit-main",children:[(0,r.jsxs)("div",{className:"me-audit-queue",children:[(0,r.jsxs)("div",{className:"mc-card mc-audit-batchcard",style:{marginBottom:10,display:"flex",gap:10,alignItems:"center",flexWrap:"wrap"},children:[(0,r.jsxs)("button",{type:"button",className:`mc-btn${P==="pending"?" me-on":""}`,onClick:()=>V("pending"),children:[e("pending"),"\uFF08",a.length,"\uFF09"]}),(0,r.jsxs)("button",{type:"button",className:`mc-btn${P==="rejected"?" me-on":""}`,onClick:()=>V("rejected"),children:[e("rejected"),"\uFF08",i.length,"\uFF09"]}),(0,r.jsx)("div",{style:{flex:1}}),(0,r.jsxs)("label",{style:{fontSize:12},children:[(0,r.jsx)("input",{type:"checkbox",checked:ve.length>0&&pe.length===ve.length,onChange:z=>{z.target.checked?I(new Set(ve.map(q=>q.path))):I(new Set)}})," ",e("selectAll"),"\uFF08",ve.length,"\uFF09"]}),(0,r.jsxs)("span",{style:{fontSize:11,opacity:.65},children:[e("auditSelected")," ",pe.length]}),P==="pending"&&(0,r.jsxs)("button",{type:"button",className:"mc-btn",disabled:!!y,onClick:Be,children:["\u{1F527} ",e("reclassify")]}),(0,r.jsxs)("button",{type:"button",className:"mc-btn me-on",disabled:!pe.length||!!y,onClick:()=>G("approved"),children:["\u2713 ",e(P==="rejected"?"restore":"approve")]}),P==="pending"?(0,r.jsxs)("button",{type:"button",className:"mc-btn",style:{color:"#f87171"},disabled:!pe.length||!!y,onClick:()=>G("rejected"),children:["\u2715 ",e("reject")]}):(0,r.jsxs)("button",{type:"button",className:"mc-btn",style:{color:"#f87171"},disabled:!pe.length||!!y,onClick:()=>{window.confirm(e("recycleDeleteConfirm"))&&G("delete")},children:["\u{1F5D1} ",e("restoreDelete")]}),pe.length>0&&(0,r.jsx)("button",{type:"button",className:"mc-btn",onClick:ae,children:e("auditClearSelection")})]}),ve.length?(0,r.jsx)("div",{className:"mc-card",style:{display:"flex",flexDirection:"column"},children:ve.map(z=>{let q=qt[z.kind]||"#6B7280";return(0,r.jsx)("div",{className:`me-audit-row${z.kind==="core"?" core":""}${ne&&ne.path===z.path?" active":""}`,children:(0,r.jsxs)("div",{className:"me-audit-row-main",onClick:()=>f(z.path),children:[(0,r.jsx)("input",{type:"checkbox",checked:T.has(z.path),onClick:ge=>ge.stopPropagation(),onChange:()=>De(z.path)}),(0,r.jsx)("span",{className:"me-audit-row-tile",style:{color:q,borderColor:q+"38",background:q+"18"},children:Ar[z.kind]||"\u{1F4CE}"}),(0,r.jsxs)("div",{className:"me-audit-row-copy",children:[(0,r.jsxs)("div",{className:"me-audit-row-top",children:[(0,r.jsx)("span",{className:`me-audit-row-kind${z.kind==="core"?" core":""}`,children:z.kind==="core"?"\u2B50 "+e("kindCore"):e(Ct[z.kind]||"kindKnowledge")}),z.revision&&(0,r.jsxs)("span",{className:"me-audit-row-state",style:{color:"#a78bfa",filter:"saturate(1.2)"},children:["\u270F\uFE0F ",e("auditRevision")]}),(0,r.jsx)("span",{className:`me-audit-row-state ${P==="pending"?"pending":"rejected"}`,children:P==="pending"?"\u23F3 "+e("statusPending"):"\u26D4 "+e("statusRejected")}),(0,r.jsx)("span",{className:"me-audit-row-time",children:nd(z.created)||"-"})]}),(0,r.jsx)("button",{type:"button",className:"me-audit-row-title",title:z.title,onClick:()=>f(z.path),children:z.title}),z.revision&&(0,r.jsxs)("p",{className:"me-audit-row-reason",style:{color:"#a78bfa"},children:["\u270F\uFE0F ",e("auditRevisionFrom"),"\uFF1A",z.revision.targetTitle||z.revision.targetPath]}),(z.reason||z.summary)&&(0,r.jsx)("p",{className:"me-audit-row-reason",children:z.reason||z.summary}),(0,r.jsxs)("div",{className:"me-audit-row-meta",children:[(0,r.jsxs)("span",{children:["\u{1F916} ",Pr(z.submittedBy)]}),(Array.isArray(z.tags)?z.tags:[]).slice(0,3).map(ge=>(0,r.jsxs)("span",{children:["#",ge]},ge))]})]}),(0,r.jsx)("div",{className:"me-audit-row-actions",onClick:ge=>ge.stopPropagation(),children:P==="pending"?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("button",{type:"button",className:"mc-btn",style:{padding:"2px 8px"},onClick:()=>G("approved",[z.path]),children:"\u2713"}),(0,r.jsx)("button",{type:"button",className:"mc-btn",style:{padding:"2px 8px",color:"#f87171"},onClick:()=>G("rejected",[z.path]),children:"\u2715"})]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("button",{type:"button",className:"mc-btn",style:{padding:"2px 8px"},title:e("restore"),onClick:()=>G("approved",[z.path]),children:"\u2713"}),(0,r.jsx)("button",{type:"button",className:"mc-btn",style:{padding:"2px 8px",color:"#f87171"},title:e("restoreDelete"),onClick:()=>{window.confirm(e("recycleDeleteConfirm"))&&G("delete",[z.path])},children:"\u{1F5D1}"})]})})]})},z.path)})}):(0,r.jsx)("div",{style:{opacity:.6,fontSize:12,padding:20,textAlign:"center"},children:e(k?"auditNoMatch":"noAuditItems")})]}),(0,r.jsx)("aside",{className:"me-audit-preview",children:ne?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"me-audit-preview-head",children:[(0,r.jsxs)("div",{className:"me-audit-preview-top",children:[(0,r.jsxs)("span",{className:"me-audit-kind-badge",style:{color:qt[ne.kind]||"#6B7280",borderColor:(qt[ne.kind]||"#6B7280")+"59",background:(qt[ne.kind]||"#6B7280")+"1a"},children:[Ar[ne.kind]||"\u{1F4CE}"," ",e(Ct[ne.kind]||"kindKnowledge")]}),(0,r.jsx)("span",{className:`md-chip ${P==="pending"?"md-chip-st-warn":"md-chip-st-bad"}`,children:P==="pending"?ne.kind==="core"?"\u2B50 "+e("coreSuggested"):"\u23F3 "+e("statusPending"):"\u26D4 "+e("statusRejected")}),(0,r.jsx)("span",{className:"spacer",style:{flex:1}}),(0,r.jsx)("span",{style:{fontSize:10,opacity:.55},children:nd(ne.created)})]}),(0,r.jsx)("h3",{children:ne.title}),ne.revision&&(0,r.jsxs)("div",{className:"me-audit-preview-reason",style:{color:"#a78bfa",marginBottom:6},children:["\u270F\uFE0F ",e("auditRevisionFrom"),"\uFF1A",ne.revision.targetTitle||ne.revision.targetPath]}),(0,r.jsxs)("div",{className:"me-audit-preview-meta",children:[(0,r.jsxs)("span",{children:["\u{1F916} ",Pr(ne.submittedBy)]}),!!ne.reason&&(0,r.jsxs)("span",{className:"me-audit-preview-reason",children:["\u2691 ",ne.reason]}),(Array.isArray(ne.tags)?ne.tags:[]).slice(0,5).map(z=>(0,r.jsxs)("span",{children:["#",z]},z))]})]}),(0,r.jsxs)("div",{className:"me-audit-preview-body",children:[Ke.loading&&(0,r.jsx)("div",{className:"me-audit-preview-empty",children:e("loading")}),Ke.error&&(0,r.jsxs)("div",{className:"me-audit-preview-empty",style:{color:"#f87171"},children:["\u26A0 ",e("auditBodyFail"),"\uFF1A",Ke.error]}),Ke.text!=null?(0,r.jsx)("div",{className:"md-doc",dangerouslySetInnerHTML:{__html:Io(bd(ml(Ke.text).body,ne.title))}}):!Ke.loading&&(0,r.jsx)("p",{className:"me-audit-preview-summary",children:ne.summary||""})]}),(0,r.jsxs)("div",{className:"me-audit-preview-actions",children:[(0,r.jsxs)("button",{type:"button",className:"mc-btn me-on",disabled:!!y,onClick:()=>G("approved",[ne.path]),children:["\u2713 ",P==="rejected"?e("restore"):ne.kind==="core"?e("approveCore"):e("approve")]}),P==="pending"&&ne.kind!=="core"&&!ne.revision&&(0,r.jsxs)("button",{type:"button",className:"mc-btn me-core-btn",disabled:!!y,onClick:()=>G("approved",[ne.path],{kind:"core"}),children:["\u2B50 ",e("approveAndCore")]}),P==="pending"&&ne.kind==="core"&&(0,r.jsx)("button",{type:"button",className:"mc-btn",disabled:!!y,onClick:()=>G("approved",[ne.path],{kind:"knowledge"}),children:e("approveAsNormal")}),P==="pending"?(0,r.jsxs)("button",{type:"button",className:"mc-btn",style:{color:"#f87171"},disabled:!!y,onClick:()=>G("rejected",[ne.path]),children:["\u2715 ",e("reject")]}):(0,r.jsxs)("button",{type:"button",className:"mc-btn",style:{color:"#f87171"},disabled:!!y,onClick:()=>{window.confirm(e("recycleDeleteConfirm"))&&G("delete",[ne.path])},children:["\u{1F5D1} ",e("restoreDelete")]})]})]}):(0,r.jsx)("div",{className:"me-audit-preview-empty",children:e(k?"auditNoMatch":"noAuditItems")})})]})]})]})]})}var p0={title:"",date:"",category:"",source:"",url:"",tags:"",pinned:!1,body:""};function pd(){let e=new Date;return e.getFullYear()+"-"+String(e.getMonth()+1).padStart(2,"0")+"-"+String(e.getDate()).padStart(2,"0")}function md(e){try{let t=new URL(String(e||""));return t.protocol==="http:"||t.protocol==="https:"?t.href:""}catch{return""}}function m0(e,t){let n=String(e||"").slice(0,10);if(!n)return t("newsEarlier");if(n===pd())return t("newsToday");let a=new Date;a.setDate(a.getDate()-1);let o=a.getFullYear()+"-"+String(a.getMonth()+1).padStart(2,"0")+"-"+String(a.getDate()).padStart(2,"0");return n===o?t("newsYesterday"):n}function Hf({item:e,t,active:n,onOpen:a,onEdit:o,onToggleRead:i,onDelete:l}){return(0,r.jsxs)("article",{className:"mc-news-card"+(e.pinned?" pinned":"")+(e.read?"":" unread")+(n?" active":""),onClick:()=>a(e),children:[(0,r.jsxs)("div",{className:"mc-news-top",children:[!e.read&&(0,r.jsx)("span",{className:"mc-news-dot",title:t("newsUnread")}),(0,r.jsx)("span",{className:"mc-news-cat",children:e.category||t("newsCategoryField")}),e.pinned&&(0,r.jsxs)("span",{className:"mc-news-pin",children:["\u{1F4CC} ",t("newsPinned")]}),(0,r.jsx)("span",{className:"mc-news-time",children:e.date||(e.updated||"").slice(0,10)})]}),(0,r.jsx)("h3",{className:"mc-news-title",children:e.title}),e.excerpt&&(0,r.jsx)("p",{className:"mc-news-excerpt",children:e.excerpt}),(0,r.jsxs)("div",{className:"mc-news-meta",children:[e.source&&(0,r.jsx)("span",{children:e.source}),(e.tags||[]).slice(0,3).map(s=>(0,r.jsxs)("span",{children:["#",s]},s)),(0,r.jsx)("span",{style:{marginLeft:"auto",opacity:.72},children:e.read?t("newsRead"):t("newsUnread")}),(0,r.jsxs)("span",{className:"mc-news-actions",onClick:s=>s.stopPropagation(),children:[(0,r.jsx)("button",{type:"button",className:"mc-btn",onClick:()=>i(e),children:e.read?t("newsMarkUnread"):t("newsMarkRead")}),(0,r.jsx)("button",{type:"button",className:"mc-btn",onClick:()=>o(e),children:t("newsEdit")}),(0,r.jsx)("button",{type:"button",className:"mc-btn",style:{color:"#f87171"},onClick:()=>l(e),title:t("delete"),children:"\u2715"})]})]})]})}function f0(e,t){let n=Date.now()-Number(e||0);if(!Number.isFinite(n)||n<0)return"";let a=Math.floor(n/6e4);if(a<1)return t("newsJustNow");if(a<60)return a+" "+t("newsMinutesAgo");let o=Math.floor(a/60);if(o<24)return o+" "+t("newsHoursAgo");let i=Math.floor(o/24);return i<7?i+" "+t("newsDaysAgo"):new Date(Number(e)).toISOString().slice(0,10)}var ta="me.news.lastQuery",Bo="me.news.prefs",Xf="me.news.view",g0={model:"\u6A21",product:"\u54C1",research:"\u7814",opensource:"\u6E90",industry:"\u4E1A",policy:"\u7B56",other:"\u8BAF"},h0=new Set(["the","a","an","of","to","for","and","in","on","is","are","with","how","why","new","its","it","as","at","by","from"]);function vd(e,t){try{let n=localStorage.getItem(e);if(n===null)return t;try{return JSON.parse(n)}catch{return n}}catch{return t}}function ir(e,t){try{localStorage.setItem(e,JSON.stringify(t))}catch{}}function sd(e,t=""){let n=vd(e,t);return typeof n=="string"?n:t}function Wf(){let e=vd(Xf,null);return e&&typeof e=="object"?e:{}}function fd(){return{types:{},sources:{},terms:{},opens:0,updatedAt:0}}function y0(){let e=vd(Bo,null);return!e||typeof e!="object"?fd():{...fd(),...e,types:e.types||{},sources:e.sources||{},terms:e.terms||{}}}function Jf(e){let t=[];for(let n of String(e||"").toLowerCase().split(/[^0-9a-z\u4e00-\u9fff]+/))!n||n.length<2||h0.has(n)||t.push(n);return t}function xl(e,t,n){t&&(e[t]=Math.min(60,(Number(e[t])||0)+n))}function v0(e,t,n){let a={...n,types:{...n.types},sources:{...n.sources},terms:{...n.terms}};return e&&(xl(a.types,e.type,t),xl(a.sources,e.sourceId,t),Jf(e.title).slice(0,6).forEach(o=>xl(a.terms,o,1)),a.opens=(Number(n.opens)||0)+1),a.updatedAt=Date.now(),a}function Uf(e,t){let n={...e,terms:{...e.terms}};return Jf(t).forEach(a=>xl(n.terms,a,3)),n.updatedAt=Date.now(),n}function b0(e){let t=0;for(let n of String(e||""))t=(t*31+n.charCodeAt(0))%360;return t}function w0(e){let t=String(e||"\u65B0\u95FB");if(/^[A-Za-z]/.test(t)){let n=t.split(/\s+/);return(n.length>1?n[0][0]+n[1][0]:t.slice(0,2)).toUpperCase()}return t.slice(0,1)}var x0=/(帮我|请|麻烦|推送|订阅|关注|跟踪|每天|每日|定时|最新|热门|看看|给我|关于|相关)/;function k0(e){let t=String(e||"").trim();return t?x0.test(t)||t.split(/\s+/).length>=4:!1}function $f(e,t,n){let a=Math.max(0,(Date.now()-Number(e.publishedAt||0))/36e5),o=100-Math.min(60,a*.28);o+=(Number(t.types[e.type])||0)*1.6,o+=(Number(t.sources[e.sourceId])||0)*1.1;let i=(e.title+" "+(e.summary||"")).toLowerCase();for(let[s,c]of Object.entries(t.terms))i.includes(s)&&(o+=Math.min(8,Number(c)||0)*.9);let l=String(n||"").trim().toLowerCase();if(l)for(let s of l.split(/\s+/).filter(Boolean))String(e.title||"").toLowerCase().includes(s)?o+=16:i.includes(s)&&(o+=8);return e.followId&&(o+=10),o}function S0({t:e,mode:t,version:n}){let[a,o]=(0,p.useState)([]),[i,l]=(0,p.useState)([]),[s,c]=(0,p.useState)(!0),[u,m]=(0,p.useState)(0),[h,g]=(0,p.useState)([]),[k,E]=(0,p.useState)(""),[T,I]=(0,p.useState)(null),[w,f]=(0,p.useState)(()=>sd(ta)),[y,L]=(0,p.useState)(()=>sd(ta).trim()),[O,D]=(0,p.useState)(""),[P,A]=(0,p.useState)(()=>{let S=Wf();return typeof S.lang=="string"?S.lang:"zh"}),[j,H]=(0,p.useState)(()=>Wf().sort==="time"?"time":"rec"),[ce,ve]=(0,p.useState)(y0),[he,De]=(0,p.useState)(!1),[G,je]=(0,p.useState)([]),[F,et]=(0,p.useState)([]),[pe,ne]=(0,p.useState)(null),[Ke,Be]=(0,p.useState)(!1),[ae,V]=(0,p.useState)(""),$=(S,R=!0)=>{I({msg:S,ok:R}),setTimeout(()=>I(null),3200)},z=(0,p.useRef)(!1),q=(0,p.useRef)(sd(ta).trim());(0,p.useEffect)(()=>{let S=setTimeout(()=>{let R=w.trim();L(R),z.current&&(ir(ta,R),!(!R||R===q.current)&&(q.current=R,ve(Ae=>{let Ve=Uf(Ae,R);return ir(Bo,Ve),Ve})))},260);return()=>clearTimeout(S)},[w]),(0,p.useEffect)(()=>{ir(Xf,{lang:P,sort:j})},[P,j]),(0,p.useEffect)(()=>{De(!0);let S=setTimeout(()=>De(!1),170);return()=>clearTimeout(S)},[O,P,y,j]);let ge=(0,p.useCallback)(async()=>{c(!0),E("");try{let S=new URLSearchParams({period:t==="month"?"month":"today",lang:"all"});S.set("follows","1");let R=await fetch(Z+"/news/feed?"+S.toString()).then(Ae=>Ae.json());if(!R||!R.ok)throw new Error(R&&R.error||e("newsFeedError"));o(R.items||[]),Array.isArray(R.follows)&&je(R.follows),l(R.types||[]),m(Number(R.fetchedAt)||0),g(R.errors||[])}catch(S){let R=S&&S.message||e("newsFeedError");E(R),$(R,!1)}finally{c(!1)}},[t,e]);(0,p.useEffect)(()=>{ge()},[n,ge]);let Le=(0,p.useCallback)(async()=>{try{let S=await fetch(Z+"/news/follows").then(R=>R.json());S&&S.ok&&(je(S.follows||[]),et(S.domains||[]))}catch{}},[]);(0,p.useEffect)(()=>{Le()},[n,Le]);let le=async()=>{c(!0);try{let S=await fetch(Z+"/news/feed/refresh",{method:"POST"}).then(R=>R.json());if(!S||!S.ok)throw new Error(S&&S.error||e("newsFeedError"));await ge(),$(e("newsUpdatedAt")+" "+new Date().toLocaleTimeString())}catch(S){let R=S&&S.message||e("newsFeedError");E(R),$(R,!1),c(!1)}},te=S=>(i.find(R=>R.id===S)||{}).label||e("all"),v=(a||[]).filter(S=>!P||S.lang===P||S.followId),Q={};for(let S of v)Q[S.type]=(Q[S.type]||0)+1;let K=O?v.filter(S=>S.type===O):v,me=k0(y);if(y&&!me){let S=y.toLowerCase().split(/\s+/).filter(Boolean);K=K.filter(R=>{let Ae=[R.title,R.summary,R.source,te(R.type)].join(" ").toLowerCase();return S.every(Ve=>Ae.includes(Ve))})}ae&&(K=K.filter(S=>S.followId===ae));let Ee=S=>(Number(S.points)||0)+(Number(S.comments)||0)*2,we=t==="month",fe=we?K.filter(S=>(S.points||0)>0):[],W=we&&fe.length>0,ue=new Map;W&&fe.slice().sort((S,R)=>(R.points||0)-(S.points||0)||(R.comments||0)-(S.comments||0)).forEach((S,R)=>ue.set(S.id||S.url||S.title,R+1)),K=K.slice().sort((S,R)=>j==="time"?(R.publishedAt||0)-(S.publishedAt||0):we&&W?(R.points||0)-(S.points||0)||(R.comments||0)-(S.comments||0)||(R.publishedAt||0)-(S.publishedAt||0):$f(R,ce,y)-$f(S,ce,y));let de=Object.keys(ce.types||{}).sort((S,R)=>(ce.types[R]||0)-(ce.types[S]||0)).slice(0,3),be=Object.keys(ce.terms||{}).sort((S,R)=>(ce.terms[R]||0)-(ce.terms[S]||0)).slice(0,4),Nt=!!y||de.length>0||be.length>0,Yt=S=>{z.current=!0;let R=String(S??"").trim();L(R),ir(ta,R),!(!R||R===q.current)&&(q.current=R,ve(Ae=>{let Ve=Uf(Ae,R);return ir(Bo,Ve),Ve}))},qe=()=>{z.current=!1,q.current="",D(""),A(""),f(""),L(""),ir(ta,"")},jt=S=>ve(R=>{let Ae=v0(S,4,R);return ir(Bo,Ae),Ae}),gt=()=>{let S=fd();ir(Bo,S),ir(ta,""),q.current="",z.current=!1,ve(S),f(""),L("")},Qt=async()=>{let S=w.trim();if(!S){$(e("newsFollowNoQuery"),!1);return}Be(!0);try{let R=await fetch(Z+"/news/follows/preview",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({text:S})}).then(Ae=>Ae.json());if(!R||!R.ok)throw new Error(R&&R.error||e("newsFollowFail"));et(R.domainsEnum||F),ne({text:S,query:R.parsed.query,label:R.parsed.label,domains:R.parsed.domains,sourceIds:R.parsed.sourceIds||[],notes:R.parsed.notes||[]})}catch(R){$(String(R&&R.message||R),!1)}finally{Be(!1)}},Ye=(S,R)=>ne(Ae=>{if(!Ae)return Ae;let Ve=new Set(Ae.domains);return R?Ve.add(S):Ve.delete(S),{...Ae,domains:[...Ve]}}),qn=async()=>{if(pe){Be(!0);try{let S=await fetch(Z+"/news/follows",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({query:pe.query,domains:pe.domains,label:pe.label,sourceIds:pe.sourceIds||[]})}).then(Ae=>Ae.json());if(!S||!S.ok)throw new Error(S&&S.error||e("newsFollowFail"));let R=pe.label;ne(null),$((S.duplicate?e("newsFollowExists"):e("newsFollowAdded"))+"\uFF1A"+R),await Le(),await ge()}catch(S){$(String(S&&S.message||S),!1)}finally{Be(!1)}}},Ne=async S=>{try{let R=await fetch(Z+"/news/follows?id="+encodeURIComponent(S),{method:"DELETE"}).then(Ae=>Ae.json());if(!R||!R.ok)throw new Error(R&&R.error||e("newsFollowFail"));ae===S&&V(""),$(e("newsFollowRemoved")),await Le(),await ge()}catch(R){$(String(R&&R.message||R),!1)}},C=(S,R)=>{let Ae=md(S.url),Ve=te(S.type),d=md(S.image),Bt=W&&ue.get(S.id||S.url||S.title)||0,Xt=W&&Bt>0&&Bt<=3;return(0,r.jsxs)("a",{className:"mc-news-tile",style:{"--i":Math.min(R,14)},href:Ae||void 0,target:Ae?"_blank":void 0,rel:"noopener noreferrer",onClick:()=>jt(S),children:[(0,r.jsxs)("span",{className:"mc-news-tile-cover",children:[d?(0,r.jsx)("img",{className:"mc-news-tile-img",src:d,alt:"",loading:"lazy",referrerPolicy:"no-referrer",onError:Ht=>{let Sn=Ht.currentTarget;Sn.style.display="none",Sn.nextElementSibling&&(Sn.nextElementSibling.style.display="grid")}}):null,(0,r.jsxs)("span",{className:"mc-news-tile-gen",style:{"--hue":b0(S.title),display:d?"none":"grid"},children:[(0,r.jsx)("b",{children:g0[S.type]||"\u8BAF"}),(0,r.jsx)("small",{children:Ve}),(0,r.jsxs)("em",{children:[(0,r.jsx)("i",{children:w0(S.source)}),S.source]})]}),(0,r.jsx)("span",{className:"mc-news-tile-badge"+(Xt?" hot":""),children:Bt?"#"+Bt:Ve}),(0,r.jsx)("span",{className:"mc-news-tile-time",children:f0(S.publishedAt,e)})]}),(0,r.jsxs)("span",{className:"mc-news-tile-body",children:[(0,r.jsx)("span",{className:"mc-news-tile-title",children:S.title}),S.summary?(0,r.jsx)("span",{className:"mc-news-tile-summary",children:S.summary}):null,(0,r.jsxs)("span",{className:"mc-news-tile-foot",children:[(0,r.jsx)("i",{className:"mc-news-tile-dot"}),(0,r.jsx)("span",{children:S.source}),S.followLabel?(0,r.jsxs)("span",{className:"mc-news-tile-follow",children:["\u{1F514} ",S.followLabel]}):null,Bt?(0,r.jsxs)("span",{children:["\xB7 \u{1F525} ",e("newsHeat")," ",Ee(S)]}):null,(0,r.jsxs)("span",{className:"mc-news-tile-open",children:[e("newsOriginal")," \u2197"]})]})]})]},S.id||S.url||S.title)},x=K.filter(S=>S.followId),ye=x.slice(0,4),Pe=ae?K:ye.length?K.filter(S=>!S.followId):K;return(0,r.jsxs)("div",{className:"mc-news",children:[(0,r.jsx)(Nl,{toast:T}),(0,r.jsxs)("div",{className:"mc-news-hero",children:[(0,r.jsx)("div",{className:"mc-news-hero-eye",children:e("newsHeroEye")}),(0,r.jsxs)("div",{className:"mc-news-hero-search",children:[(0,r.jsx)("span",{"aria-hidden":"true",style:{fontSize:15,opacity:.75},children:"\u{1F50E}"}),(0,r.jsx)("input",{type:"text",value:w,onChange:S=>{z.current=!0,f(S.target.value)},onKeyDown:S=>{S.key==="Enter"&&Yt(w)},placeholder:e("newsSearch"),"aria-label":e("newsSearch")}),w?(0,r.jsx)("button",{type:"button",className:"mc-news-hero-clear",title:e("cancel"),onClick:()=>{f(""),Yt("")},children:"\u2715"}):null,(0,r.jsx)("button",{type:"button",className:"mc-news-hero-go",onClick:()=>Yt(w),children:e("newsSearchGo")}),w.trim()?(0,r.jsxs)("button",{type:"button",className:"mc-news-hero-follow",disabled:Ke,onClick:Qt,title:e("newsFollowPreview"),children:["\uFF0B ",e("newsFollow")]}):null]}),(0,r.jsx)("div",{className:"mc-news-hero-hint",children:e(me?"newsIntentHint":"newsHeroHint")})]}),pe?(0,r.jsxs)("div",{className:"mc-news-follow-draft",children:[(0,r.jsxs)("div",{className:"draft-head",children:["\u{1F514} ",e("newsFollowPreview")]}),(0,r.jsxs)("div",{className:"draft-body",children:[(0,r.jsx)("b",{children:pe.label}),pe.query?(0,r.jsxs)("span",{className:"draft-q",children:["\xB7 \u300C",pe.query,"\u300D"]}):null,(0,r.jsxs)("div",{className:"draft-doms",children:[(0,r.jsx)("span",{className:"draft-lbl",children:e("newsFollowDomains")}),F.map(S=>(0,r.jsxs)("label",{className:"draft-opt",title:S.hint||"",children:[(0,r.jsx)("input",{type:"checkbox",checked:pe.domains.includes(S.id),onChange:R=>Ye(S.id,R.target.checked)}),(0,r.jsx)("span",{children:S.label})]},S.id))]}),pe.notes.map((S,R)=>(0,r.jsxs)("div",{className:"draft-note",children:["\xB7 ",S]},R))]}),(0,r.jsxs)("div",{className:"draft-actions",children:[(0,r.jsx)("button",{type:"button",className:"mc-btn",onClick:()=>ne(null),children:e("cancel")}),(0,r.jsx)("button",{type:"button",className:"mc-btn me-on",disabled:Ke||!pe.domains.length,onClick:qn,children:e("newsFollowConfirm")})]})]}):null,G.length>0?(0,r.jsx)("div",{className:"mc-news-follows",children:G.map(S=>(0,r.jsxs)("span",{className:"mc-news-follow-chip"+(ae===S.id?" on":""),children:[(0,r.jsxs)("button",{type:"button",className:"chip-main",onClick:()=>V(R=>R===S.id?"":S.id),title:(S.domains||[]).join(" / "),children:["\u{1F514} ",S.label,(0,r.jsx)("i",{children:S.count||0})]}),(0,r.jsx)("button",{type:"button",className:"chip-x",title:e("delete"),"aria-label":e("delete"),onClick:()=>Ne(S.id),children:"\u2715"})]},S.id))}):null,Nt?(0,r.jsxs)("div",{className:"mc-news-pref",children:[(0,r.jsxs)("span",{children:["\u{1F3AF} ",e("newsPersonalized")]}),y?(0,r.jsxs)("span",{children:["\xB7 ",e("newsLastQuery")," ",(0,r.jsx)("b",{children:y})]}):null,be.length>0?(0,r.jsxs)("span",{children:["\xB7 ",be.join(" / ")]}):null,de.length>0?(0,r.jsxs)("span",{children:["\xB7 ",de.map(te).join(" / ")]}):null,(0,r.jsx)("span",{className:"mc-news-pref-actions",children:(0,r.jsx)("button",{type:"button",className:"mc-btn",onClick:gt,children:e("newsResetPrefs")})})]}):null,(0,r.jsxs)("div",{className:"mc-news-feed-toolbar",children:[(0,r.jsxs)("div",{className:"mc-news-pills",children:[(0,r.jsxs)("button",{type:"button",className:"mc-news-pill"+(O===""?" on":""),onClick:()=>D(""),children:[e("all"),(0,r.jsx)("span",{className:"mc-news-pill-count",children:v.length})]}),i.map(S=>Q[S.id]?(0,r.jsxs)("button",{type:"button",className:"mc-news-pill"+(O===S.id?" on":""),onClick:()=>D(O===S.id?"":S.id),children:[S.label,(0,r.jsx)("span",{className:"mc-news-pill-count",children:Q[S.id]})]},S.id):null)]}),(0,r.jsxs)("span",{style:{marginLeft:"auto",display:"flex",alignItems:"center",gap:6,flexWrap:"wrap"},children:[(0,r.jsx)("button",{type:"button",className:"mc-chip"+(P==="zh"?" active":""),onClick:()=>A("zh"),children:e("newsLangZh")}),(0,r.jsx)("button",{type:"button",className:"mc-chip"+(P==="en"?" active":""),onClick:()=>A("en"),children:e("newsLangEn")}),(0,r.jsx)("button",{type:"button",className:"mc-chip"+(P===""?" active":""),onClick:()=>A(""),children:e("newsLangAll")}),(0,r.jsx)("button",{type:"button",className:"mc-chip"+(j==="rec"?" active":""),onClick:()=>H("rec"),children:e("newsSortRec")}),(0,r.jsx)("button",{type:"button",className:"mc-chip"+(j==="time"?" active":""),onClick:()=>H("time"),children:e("newsSortTime")}),(0,r.jsx)("button",{type:"button",className:"mc-btn",disabled:s,onClick:le,children:e(s?"newsLoading":"newsFeedRefresh")})]})]}),(0,r.jsxs)("div",{className:"mc-news-feed-meta",style:{margin:"0 0 8px"},children:[u?e("newsUpdatedAt")+" "+new Date(u).toLocaleTimeString():"",s?"":" \xB7 "+K.length+" "+e("newsMatched")]}),t==="month"&&(0,r.jsx)("div",{className:"mc-news-feed-warn",style:{color:"var(--dsw-alias-label-secondary, #6b7280)",background:"transparent",borderColor:"var(--dsw-alias-border-l1, #e5e7eb)"},children:e(W?"newsEnRanking":"newsZhArchive")}),k&&!s&&(0,r.jsxs)("div",{className:"mc-news-feed-warn",style:{display:"flex",alignItems:"center",gap:10,flexWrap:"wrap"},children:[(0,r.jsxs)("span",{children:["\u26A0 ",k]}),(0,r.jsx)("button",{type:"button",className:"mc-btn",onClick:le,children:e("newsRetry")})]}),h.length>0&&(0,r.jsxs)("div",{className:"mc-news-feed-warn",children:["\u26A0 ",e("newsPartialFail"),"\uFF1A",h.slice(0,2).join("\uFF1B")]}),s?(0,r.jsxs)("div",{className:"mc-card mc-news-feed-empty mc-news-loading-card",role:"status","aria-live":"polite",children:[(0,r.jsx)(Sl,{}),(0,r.jsx)("span",{children:e("newsLoading")}),(0,r.jsx)("small",{children:e("newsLoadingHint")})]}):a.length===0?(0,r.jsxs)("div",{className:"mc-card mc-news-feed-empty",children:[(0,r.jsx)("div",{children:e("newsFeedEmpty")}),(0,r.jsx)("button",{type:"button",className:"mc-btn me-on",style:{marginTop:10},onClick:le,children:e("newsFeedRefresh")})]}):K.length===0?(0,r.jsxs)("div",{className:"mc-card mc-news-feed-empty mc-news-nomatch",children:[(0,r.jsx)("div",{children:e("newsNoMatch")}),(0,r.jsx)("p",{style:{margin:"6px 0 0",fontSize:11.5,lineHeight:1.6,opacity:.75},children:e("newsNoMatchHint")}),(0,r.jsx)("button",{type:"button",className:"mc-btn me-on",style:{marginTop:10},onClick:qe,children:e("newsClearFilters")})]}):(0,r.jsxs)(r.Fragment,{children:[!ae&&ye.length>0?(0,r.jsxs)("div",{className:"mc-news-follow-sec",children:[(0,r.jsxs)("div",{className:"mc-news-follow-sec-head",children:[(0,r.jsxs)("span",{children:["\u{1F514} ",e("newsFollowing")]}),(0,r.jsx)("em",{children:x.length})]}),(0,r.jsx)("div",{className:"mc-news-grid"+(he?" is-swapping":""),children:ye.map((S,R)=>C(S,R))})]}):null,(0,r.jsx)("div",{className:"mc-news-grid"+(he?" is-swapping":""),children:Pe.map((S,R)=>C(S,R))})]})]})}function C0({t:e,version:t,onUnreadChange:n}){let[a,o]=(0,p.useState)("daily"),i=a==="month"?"newsMonthlySub":a==="mine"?"newsMineSub":"newsDailySub";return(0,r.jsxs)("div",{className:"mc-news",children:[(0,r.jsx)("div",{className:"mc-v5-pagehead",children:(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{className:"mc-v5-eyebrow",children:"NEWSROOM"}),(0,r.jsx)("h1",{children:e("newsTitle")}),(0,r.jsx)("p",{children:e(i)})]})}),(0,r.jsxs)("div",{className:"mc-news-modes",children:[(0,r.jsx)("button",{type:"button",className:"mc-news-mode"+(a==="daily"?" active":""),onClick:()=>o("daily"),children:e("newsDaily")}),(0,r.jsx)("button",{type:"button",className:"mc-news-mode"+(a==="month"?" active":""),onClick:()=>o("month"),children:e("newsMonthly")}),(0,r.jsx)("button",{type:"button",className:"mc-news-mode"+(a==="mine"?" active":""),onClick:()=>o("mine"),children:e("newsMine")})]}),a==="mine"?(0,r.jsx)(N0,{t:e,version:t,onUnreadChange:n}):(0,r.jsx)(S0,{t:e,mode:a,version:t})]})}function N0({t:e,version:t,onUnreadChange:n}){let[a,o]=(0,p.useState)([]),[i,l]=(0,p.useState)([]),[s,c]=(0,p.useState)({all:0,unread:0}),[u,m]=(0,p.useState)(""),[h,g]=(0,p.useState)(""),[k,E]=(0,p.useState)(""),[T,I]=(0,p.useState)(!1),[w,f]=(0,p.useState)(""),[y,L]=(0,p.useState)(null),[O,D]=(0,p.useState)(null),[P,A]=(0,p.useState)(!1),[j,H]=(0,p.useState)(""),[ce,ve]=(0,p.useState)(null),he=(V,$=!0)=>{ve({msg:V,ok:$}),setTimeout(()=>ve(null),2600)};(0,p.useEffect)(()=>{let V=setTimeout(()=>g(u.trim()),220);return()=>clearTimeout(V)},[u]);let De=(0,p.useCallback)(async()=>{let V=new URLSearchParams;h&&V.set("q",h),k&&V.set("category",k),T&&V.set("unread","1");try{let $=await fetch(Z+"/news?"+V.toString()).then(z=>z.json());if(!$||!$.ok)throw new Error($&&$.error||"load failed");o($.items||[]),l($.categories||[]),c($.counts||{all:0,unread:0}),n&&n(Number(($.counts||{}).unread)||0)}catch{he(e("newsSaveFail"),!1)}},[h,k,T,n,e]);(0,p.useEffect)(()=>{De()},[t,De]);let G=async V=>{f(V.id);try{let $=await fetch(Z+"/news/item?id="+encodeURIComponent(V.id)).then(z=>z.json());if(!$||!$.ok)throw new Error($&&$.error||"load failed");L($.item),$.item.read||await je(V.id,!0)}catch{he(e("newsSaveFail"),!1)}},je=async(V,$)=>{try{let z=await fetch(Z+"/news/read",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:V,read:$})}).then(q=>q.json());if(!z||!z.ok)throw new Error(z&&z.error||"read failed");L(q=>q&&q.id===V?{...q,read:!!$}:q),await De()}catch{he(e("newsSaveFail"),!1)}},F=async V=>{if(A(!1),V){let $=V;if(!$.body)try{let z=await fetch(Z+"/news/item?id="+encodeURIComponent($.id)).then(q=>q.json());z&&z.ok&&($=z.item)}catch{}D({id:$.id,title:$.title||"",date:$.date||pd(),category:$.category||"",source:$.source||"",url:$.url||"",tags:($.tags||[]).join(", "),pinned:!!$.pinned,body:$.body||"",created:$.created||""})}else D({...p0,date:pd()})},et=async()=>{if(O){if(!String(O.title||"").trim()||!String(O.body||"").trim()){he(e("newsSaveFail"),!1);return}H("save");try{let V={id:O.id||void 0,title:O.title,date:O.date,category:O.category,source:O.source,url:O.url,tags:String(O.tags||"").split(",").map(z=>z.trim()).filter(Boolean),pinned:!!O.pinned,body:O.body,created:O.created},$=await fetch(Z+"/news/save",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(V)}).then(z=>z.json());if(!$||!$.ok)throw new Error($&&$.error||"save failed");D(null),f($.item.id),L($.item),await De(),he(e("newsSaved"))}catch(V){he(V&&V.message||e("newsSaveFail"),!1)}finally{H("")}}},pe=async V=>{if(window.confirm(e("newsDeleteConfirm"))){H("delete");try{let $=await fetch(Z+"/news/delete",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:V.id})}).then(z=>z.json());if(!$||!$.ok)throw new Error($&&$.error||"delete failed");w===V.id&&(f(""),L(null)),await De(),he(e("newsDeleted"))}catch{he(e("newsSaveFail"),!1)}finally{H("")}}},ne=a.filter(V=>V.pinned),Ke=a.filter(V=>!V.pinned),Be=y?md(y.url):"",ae="";return(0,r.jsxs)("div",{className:"mc-news",children:[(0,r.jsx)(Nl,{toast:ce}),(0,r.jsxs)("div",{className:"mc-news-toolbar",children:[(0,r.jsxs)("span",{className:"mc-news-feed-meta",style:{marginLeft:0},children:[s.all," ",e("newsCountUnit")," \xB7 ",s.unread," ",e("newsUnread")]}),(0,r.jsxs)("button",{type:"button",className:"mc-btn me-on",onClick:()=>F(null),children:["\uFF0B ",e("newsNew")]}),(0,r.jsx)("input",{className:"mc-news-search",type:"text",value:u,onChange:V=>m(V.target.value),placeholder:e("newsSearch"),"aria-label":e("newsSearch")}),(0,r.jsx)("button",{type:"button",className:"mc-chip"+(k===""?" active":""),onClick:()=>E(""),children:e("all")}),i.map(V=>(0,r.jsx)("button",{type:"button",className:"mc-chip"+(k===V?" active":""),onClick:()=>E($=>$===V?"":V),children:V},V)),(0,r.jsx)("button",{type:"button",className:"mc-chip"+(T?" active":""),onClick:()=>I(V=>!V),children:e("newsUnreadOnly")}),(0,r.jsx)("button",{type:"button",className:"mc-btn",onClick:()=>De(),children:e("refresh")})]}),(0,r.jsxs)("div",{className:"mc-news-main",children:[(0,r.jsx)("div",{className:"mc-news-list",children:a.length===0?(0,r.jsxs)("div",{className:"mc-card mc-news-empty",children:[e(u||k||T?"newsNoMatch":"newsEmpty"),!u&&!k&&!T&&(0,r.jsx)("div",{style:{marginTop:10},children:(0,r.jsxs)("button",{type:"button",className:"mc-btn me-on",onClick:()=>F(null),children:["\uFF0B ",e("newsNew")]})})]}):(0,r.jsxs)(r.Fragment,{children:[ne.length>0&&(0,r.jsxs)("div",{className:"mc-news-group",children:[(0,r.jsxs)("div",{className:"mc-news-group-label",children:["\u{1F4CC} ",e("newsPinned")]}),ne.map(V=>(0,r.jsx)(Hf,{item:V,t:e,active:w===V.id,onOpen:G,onEdit:$=>F($),onToggleRead:$=>je($.id,!$.read),onDelete:pe},V.id))]}),(0,r.jsx)("div",{className:"mc-news-group",children:Ke.map(V=>{let $=m0(V.date,e),z=$!==ae;return ae=$,(0,r.jsxs)(p.default.Fragment,{children:[z&&(0,r.jsx)("div",{className:"mc-news-group-label",children:$}),(0,r.jsx)(Hf,{item:V,t:e,active:w===V.id,onOpen:G,onEdit:q=>F(q),onToggleRead:q=>je(q.id,!q.read),onDelete:pe})]},V.id)})})]})}),y&&(0,r.jsxs)("aside",{className:"mc-news-reader",children:[(0,r.jsxs)("div",{className:"mc-news-reader-head",children:[(0,r.jsx)("span",{className:"mc-news-cat",children:y.category||e("newsCategoryField")}),y.pinned&&(0,r.jsxs)("span",{className:"mc-news-pin",children:["\u{1F4CC} ",e("newsPinned")]}),(0,r.jsx)("div",{style:{flex:1}}),(0,r.jsx)("button",{type:"button",className:"mc-btn",style:{padding:"2px 8px"},onClick:()=>{L(null),f("")},title:e("close"),children:"\u2715"})]}),(0,r.jsx)("h2",{children:y.title}),(0,r.jsxs)("div",{className:"mc-news-reader-meta",children:[(0,r.jsx)("span",{children:y.date||""}),y.source&&(0,r.jsxs)("span",{children:["\xB7 ",y.source]}),(0,r.jsxs)("span",{children:["\xB7 ",y.read?e("newsRead"):e("newsUnread")]}),(y.tags||[]).map(V=>(0,r.jsxs)("span",{children:["#",V]},V))]}),Be&&(0,r.jsx)("div",{style:{marginTop:8},children:(0,r.jsxs)("a",{className:"mc-btn",style:{textDecoration:"none"},href:Be,target:"_blank",rel:"noopener noreferrer",children:["\u2197 ",e("newsOpenLink")]})}),(0,r.jsx)("div",{className:"md-doc",style:{marginTop:12},dangerouslySetInnerHTML:{__html:Io(bd(y.body||"",y.title))}}),(0,r.jsxs)("div",{className:"mc-news-reader-actions",children:[(0,r.jsx)("button",{type:"button",className:"mc-btn",onClick:()=>F(y),children:e("newsEdit")}),(0,r.jsx)("button",{type:"button",className:"mc-btn",onClick:()=>je(y.id,!y.read),children:y.read?e("newsMarkUnread"):e("newsMarkRead")}),(0,r.jsx)("button",{type:"button",className:"mc-btn",style:{color:"#f87171"},disabled:j==="delete",onClick:()=>pe(y),children:e("delete")})]})]})]}),O&&(0,r.jsx)("div",{className:"me-overlay",onClick:()=>D(null),children:(0,r.jsxs)("div",{className:"me-dialog",style:{maxWidth:860,width:"94vw",maxHeight:"90vh"},onClick:V=>V.stopPropagation(),children:[(0,r.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10,padding:"14px 18px",borderBottom:"1px solid var(--dsw-alias-border-l1, #e5e7eb)"},children:[(0,r.jsx)("b",{children:O.id?e("newsEdit"):e("newsNew")}),(0,r.jsx)("div",{style:{flex:1}}),(0,r.jsx)("button",{type:"button",className:"mc-btn",onClick:()=>D(null),children:e("close")})]}),(0,r.jsxs)("div",{style:{padding:16,overflow:"auto",maxHeight:"calc(90vh - 60px)"},children:[(0,r.jsxs)("div",{className:"mc-news-form",children:[(0,r.jsxs)("label",{className:"full",children:[(0,r.jsx)("span",{children:e("newsTitleField")}),(0,r.jsx)("input",{className:"mc-news-input",value:O.title,onChange:V=>D($=>({...$,title:V.target.value})),placeholder:e("newsTitlePlaceholder")})]}),(0,r.jsxs)("label",{children:[(0,r.jsx)("span",{children:e("newsDateField")}),(0,r.jsx)("input",{className:"mc-news-input",type:"date",value:O.date||"",onChange:V=>D($=>({...$,date:V.target.value}))})]}),(0,r.jsxs)("label",{children:[(0,r.jsx)("span",{children:e("newsCategoryField")}),(0,r.jsx)("input",{className:"mc-news-input",list:"me-news-categories",value:O.category||"",onChange:V=>D($=>({...$,category:V.target.value}))})]}),(0,r.jsx)("datalist",{id:"me-news-categories",children:i.map(V=>(0,r.jsx)("option",{value:V},V))}),(0,r.jsxs)("label",{children:[(0,r.jsx)("span",{children:e("newsSourceField")}),(0,r.jsx)("input",{className:"mc-news-input",value:O.source||"",onChange:V=>D($=>({...$,source:V.target.value}))})]}),(0,r.jsxs)("label",{children:[(0,r.jsx)("span",{children:e("newsUrlField")}),(0,r.jsx)("input",{className:"mc-news-input",value:O.url||"",onChange:V=>D($=>({...$,url:V.target.value})),placeholder:"https://\u2026"})]}),(0,r.jsxs)("label",{children:[(0,r.jsx)("span",{children:e("newsTagsField")}),(0,r.jsx)("input",{className:"mc-news-input",value:O.tags||"",onChange:V=>D($=>({...$,tags:V.target.value}))})]}),(0,r.jsxs)("label",{style:{flexDirection:"row",alignItems:"center",gap:8,paddingTop:18},children:[(0,r.jsx)("input",{type:"checkbox",checked:!!O.pinned,onChange:V=>D($=>({...$,pinned:V.target.checked}))}),(0,r.jsx)("span",{children:e("newsPinField")})]}),(0,r.jsxs)("label",{className:"full",children:[(0,r.jsx)("span",{children:e("newsBodyField")}),(0,r.jsx)("textarea",{className:"mc-news-textarea",value:O.body||"",onChange:V=>D($=>({...$,body:V.target.value})),placeholder:e("newsBodyPlaceholder")})]}),P&&(0,r.jsx)("div",{className:"full mc-news-preview",children:(0,r.jsx)("div",{className:"md-doc",dangerouslySetInnerHTML:{__html:Io(O.body||"")}})})]}),(0,r.jsxs)("div",{style:{display:"flex",gap:8,justifyContent:"flex-end",marginTop:14},children:[(0,r.jsx)("button",{type:"button",className:"mc-btn",onClick:()=>A(V=>!V),children:e(P?"newsEditBody":"newsPreview")}),(0,r.jsx)("button",{type:"button",className:"mc-btn",onClick:()=>D(null),children:e("cancel")}),(0,r.jsx)("button",{type:"button",className:"mc-btn me-on",disabled:j==="save",onClick:et,children:e(j==="save"?"newsSaving":"newsSave")})]})]})]})})]})}function T0({t:e,onReload:t,version:n}){let[a,o]=(0,p.useState)([]),[i,l]=(0,p.useState)(""),[s,c]=(0,p.useState)(null),u=(g,k=!0)=>{c({msg:g,ok:k}),setTimeout(()=>c(null),3200)},m=(0,p.useCallback)(async()=>{try{let g=await fetch(`${Z}/recycle/list`).then(k=>k.json());g.ok&&o(g.items||[])}catch{}},[]);(0,p.useEffect)(()=>{m()},[n,m]);let h=async(g,k)=>{let E=(a.find(T=>T.path===k)||{}).title||k;l(g+k);try{let I=await fetch(Z+(g==="restore"?"/recycle/restore":"/recycle/purge")+"?path="+encodeURIComponent(k)),w=await I.json().catch(()=>null);await m(),t&&t(),I.ok&&(!w||w.ok!==!1)?u(e(g==="restore"?"toastRestored":"toastPurged")+"\uFF1A"+E):u(e("toastFailed")+"\uFF1A"+(w&&w.error||"HTTP "+I.status),!1)}catch(T){u(e("toastFailed")+"\uFF1A"+String(T&&T.message||T),!1)}finally{l("")}};return(0,r.jsxs)("div",{className:"mc-admin",style:{display:"flex",flexDirection:"column",overflow:"auto",flex:1,minHeight:0},children:[(0,r.jsx)("style",{children:kn}),(0,r.jsxs)("div",{style:{overflow:"auto",padding:4},children:[(0,r.jsx)(Nl,{toast:s}),(0,r.jsxs)("div",{className:"mc-v5-pagehead",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{className:"mc-v5-eyebrow",children:"RECYCLE CENTER"}),(0,r.jsx)("h1",{children:e("tabRecycle")}),(0,r.jsx)("p",{children:e("recyclePageSub")})]}),(0,r.jsx)("span",{className:"mc-v5-pagecount",children:a.length}),(0,r.jsxs)("button",{type:"button",className:"mc-btn mc-danger",disabled:!!i||a.length===0,title:a.length?e("recyclePurgeAllConfirm").split("{n}").join(String(a.length)):e("emptyRecycle"),onClick:async()=>{if(a.length&&window.confirm(e("recyclePurgeAllConfirm").split("{n}").join(String(a.length)))){l("purgeAll");try{let g=await fetch(Z+"/recycle/purge-all",{method:"POST"}),k=await g.json().catch(()=>null);await m(),t&&t(),g.ok&&(!k||k.ok!==!1)?u(e("toastPurgeAll").split("{n}").join(String(k&&k.purged!=null?k.purged:a.length)),!0):u(e("toastFailed")+"\uFF1A"+(k&&k.error||"HTTP "+g.status),!1)}catch(g){u(e("toastFailed")+"\uFF1A"+String(g&&g.message||g),!1)}finally{l("")}}},children:["\u{1F5D1} ",e("recyclePurgeAll"),a.length?"\uFF08"+a.length+"\uFF09":""]})]}),(0,r.jsx)("div",{className:"mc-v5-recycle-hint",children:e("recycleHint")}),a.length?(0,r.jsx)("div",{className:"mc-card mc-v5-recycle",children:a.map(g=>{let k=qt[g.kind]||"#6B7280";return(0,r.jsxs)("div",{className:"mc-v5-recycle-row",children:[(0,r.jsx)("span",{className:"mc-v5-recycle-tile",style:{color:k,background:k+"18",borderColor:k+"38"},children:Ar[g.kind]||"\u{1F4CE}"}),(0,r.jsxs)("div",{className:"mc-v5-recycle-copy",children:[(0,r.jsx)("b",{children:g.title}),(0,r.jsxs)("span",{children:[e(Ct[g.kind]||"kindKnowledge")," \xB7 ",g.status==="rejected"?e("rejected"):e("bucketDeleted")," \xB7 ",hl(g.deletedAt||g.updated)||"-"]})]}),(0,r.jsxs)("div",{className:"mc-v5-recycle-actions",children:[(0,r.jsx)("button",{type:"button",className:"mc-btn",disabled:!!i,title:g.status==="rejected"?e("restoreToQueue"):e("restore"),onClick:()=>h("restore",g.path),children:g.status==="rejected"?e("restoreToQueue"):e("restore")}),(0,r.jsx)("button",{type:"button",className:"mc-btn mc-danger",disabled:!!i,onClick:()=>{window.confirm(e("purgeConfirm"))&&h("purge",g.path)},children:e("purge")})]})]},g.path)})}):(0,r.jsxs)("div",{className:"mc-card mc-v5-empty-state",children:["\u{1F5D1}\uFE0F ",(0,r.jsx)("b",{children:e("emptyRecycle")}),(0,r.jsx)("span",{children:e("recycleEmptyHint").split("{days}").join("30")})]})]})]})}var bd=(e,t)=>{let n=String(e||"").split(/\r?\n/),a=i=>String(i||"").replace(/[#*_`]/g,"").replace(/[\s::\-–—·]/g,"").trim(),o=a(t);for(;;){let i=0;for(;i<n.length&&!n[i].trim();)i++;let l=/^#{1,2}\s+(.+?)\s*$/.exec(n[i]||"");if(!l||a(l[1])!==o)break;for(n.splice(i,1);i<n.length&&!n[i].trim();)n.splice(i,1)}return n.join(`
1055
+ `)},M0=e=>{let t=[],n=!1,a=0;for(let o of String(e||"").split(/\r?\n/)){let i=o.trim();if(/^```/.test(i)){n=!n;continue}if(n)continue;let l=/^(#{1,6})\s+(.+)$/.exec(i);if(!l)continue;a++;let s=l[1].length;s<=3&&t.push({id:"md-h-"+a,level:s,text:l[2].replace(/[#*_`>\[\]()]/g,"").replace(/\s+/g," ").trim()})}return t},wd=e=>{let t=String(e.summary||"").replace(/[#>*_`]/g," ").replace(/\s+/g," ").trim();return t.length>150?t.slice(0,148)+"\u2026":t},Zf=e=>{let t=String(e.summary||"").toLowerCase();return/决策|结论|决定|decision/.test(t)?"insightDecision":/根因|原因|root cause/.test(t)?"insightRoot":/教训|避免|lesson/.test(t)?"insightLesson":"insightSummary"},eg=({n:e=0,color:t="#ff9a72",size:n=30})=>{let a=Math.max(2,Math.min(6,Number(e)||2)),o=Array.from({length:a},(i,l)=>{let s=-Math.PI/2+l*Math.PI*2/a,c=l%2?13:16;return[20+Math.cos(s)*c,20+Math.sin(s)*c]});return(0,r.jsxs)("svg",{className:"mc-v5-mini",width:n,height:n,viewBox:"0 0 40 40","aria-hidden":"true",children:[o.map(([i,l],s)=>(0,r.jsx)("line",{x1:"20",y1:"20",x2:i,y2:l,stroke:t,strokeOpacity:".35"},"l"+s)),o.map(([i,l],s)=>(0,r.jsx)("circle",{cx:i,cy:l,r:s%2?2.2:1.8,fill:t,fillOpacity:s%2?.8:.55},"c"+s)),(0,r.jsx)("circle",{cx:"20",cy:"20",r:"2.6",fill:t})]})},E0=({card:e,t,onOpen:n,query:a,onDelete:o,onTagClick:i,pinned:l,onPin:s,onCore:c,links:u})=>{let m=qt[e.kind]||qt.other,h=Number(u??e.links??e.weight??0),g=ld(e);return(0,r.jsxs)("article",{className:`mc-cardrow mc-card mc-v5-card${l?" pinned":""}${e.kind==="core"?" core":""}`,onClick:()=>n(e),children:[(0,r.jsxs)("div",{className:"mc-v5-card-top",children:[(0,r.jsx)("span",{className:"mc-v5-card-tile",style:{color:m,background:m+"18",borderColor:m+"38"},children:Ar[e.kind]||"\u{1F4CE}"}),(0,r.jsx)("span",{className:"mc-v5-card-kind-name",children:e.kind==="core"?"\u2B50 "+t("kindCore"):t(Ct[e.kind]||"kindKnowledge")}),e.kind==="core"&&(0,r.jsxs)("span",{className:"mc-v5-core-badge",children:["\u2B50 ",t("kindCore")]}),e.status==="pending"&&(0,r.jsxs)("span",{className:"mc-v5-card-status pending",children:["\u23F3 ",t("statusPending")]}),e.status==="rejected"&&(0,r.jsxs)("span",{className:"mc-v5-card-status rejected",children:["\u26D4 ",t("statusRejected")]}),j0(e.updated)&&(0,r.jsx)("span",{className:"mc-new",children:t("newBadge")}),(0,r.jsx)("span",{className:"spacer",style:{flex:1}}),(0,r.jsx)("span",{className:"mc-v5-card-time",children:lr(e.updated)}),c&&e.status!=="pending"&&e.status!=="rejected"&&(0,r.jsx)("button",{type:"button",className:`mc-v5-core${e.kind==="core"?" on":""}`,title:t(e.kind==="core"?"unsetCore":"setCore"),onClick:k=>{k.stopPropagation(),c(e.path,e.kind==="core"?"knowledge":"core")},children:e.kind==="core"?"\u2B50 "+t("coreShort"):"\u2606 "+t("setCoreShort")}),s&&(0,r.jsx)("button",{type:"button",className:`mc-v5-pin${l?" on":""}`,title:t(l?"unpinCard":"pinCard"),"aria-label":t(l?"unpinCard":"pinCard"),onClick:k=>{k.stopPropagation(),s(e.path)},children:"\u{1F4CC}"})]}),(0,r.jsx)("h4",{className:"mc-v5-card-title",children:a?dd(e.title,a):e.title}),(0,r.jsxs)("div",{className:"mc-v5-card-insight",children:[(0,r.jsx)("span",{className:"mc-v5-insight-k",children:t(Zf(e))}),(0,r.jsx)("span",{className:"mc-v5-card-lead",children:a?dd(e.summary||"",a):wd(e)})]}),a&&(()=>{let k=ff(e.body||"",a);return k?(0,r.jsx)("p",{className:"mc-snippet",children:dd(k,a)}):null})(),ld(e).length>0&&(0,r.jsxs)("div",{className:"mc-tags mc-v5-card-tags",children:[ld(e).slice(0,2).map(k=>(0,r.jsxs)("button",{type:"button",className:"mc-tag mc-tag-click",title:k,onClick:E=>{E.stopPropagation(),i&&i(k)},children:["#",k]},k)),g.length>2&&(0,r.jsxs)("span",{className:"mc-tag more",children:["+",g.length-2]})]}),(0,r.jsxs)("footer",{className:"mc-v5-card-foot",children:[h>0&&(0,r.jsxs)("span",{className:"mc-v5-conn",children:[(0,r.jsx)(eg,{n:h,color:m})," ",(0,r.jsx)("b",{children:h})," ",t("links")]}),(0,r.jsxs)("span",{className:"mc-v5-author",children:["\u{1F916} ",Pr(e.submittedBy)]}),(0,r.jsx)("span",{className:"spacer",style:{flex:1}}),(0,r.jsx)("button",{type:"button",className:"mc-card-del",title:t("delete"),onClick:k=>{k.stopPropagation(),window.confirm(t("deleteConfirm"))&&o&&o(e.path)},children:"\u{1F5D1}"})]})]})};function z0({t:e,tab:t,onReload:n,version:a}){let[o,i]=(0,p.useState)(null),[l,s]=(0,p.useState)(""),[c,u]=(0,p.useState)(null),[m,h]=(0,p.useState)(null),[g,k]=(0,p.useState)(null),[E,T]=(0,p.useState)(null),[I,w]=(0,p.useState)(null),[f,y]=(0,p.useState)(null),L=(0,p.useCallback)(async()=>{j("align");try{let v=await fetch(Z+"/align").then(Q=>Q.json());v&&v.findings?y(v):notify(e("alignFail"),!1)}catch{notify(e("alignFail"),!1)}finally{j("")}},[e]),O=async()=>{if(window.confirm(e("alignFixConfirm"))){j("alignfix");try{let v=await fetch(Z+"/setup-run",{method:"POST",headers:{"Content-Type":"application/json"},body:"{}"}).then(Q=>Q.json());v&&v.ok?(notify(e("alignFixed")),await L()):notify(e("alignFail"),!1)}catch{notify(e("alignFail"),!1)}finally{j("")}}},[D,P]=(0,p.useState)([]),[A,j]=(0,p.useState)(""),[H,ce]=(0,p.useState)(!1),ve=(0,p.useCallback)(async()=>{if(!(!c||!c.merge||!c.merge.length)&&window.confirm(e("mergeAllConfirm"))){j("merge");try{let v={},Q=fe=>v[fe]===void 0?fe:v[fe]=Q(v[fe]),K=(fe,W)=>{v[Q(fe)]=Q(W)},me=new Set;for(let fe of c.merge)me.add(fe.a.path),me.add(fe.b.path),K(fe.a.path,fe.b.path);let Ee={};for(let fe of me){let W=Q(fe);(Ee[W]=Ee[W]||[]).push(fe)}let we=0;for(let fe of Object.values(Ee)){if(fe.length<2)continue;(await fetch(`${Z}/merge?paths=${encodeURIComponent(fe.join(","))}`).then(ue=>ue.json())).ok&&we++}await he(),n&&n()}catch{}j("")}},[c,he,n,e]);async function he(){try{let v=await Promise.all([fetch(`${Z}/stats`),fetch(`${Z}/budget`),fetch(`${Z}/capture-log`),fetch(`${Z}/cards?status=all&limit=30&agent=${Ho}`),fetch(`${Z}/overview`),fetch(`${Z}/ledger?days=7`)]),[Q,K,me,Ee,we,fe]=await Promise.all(v.map(W=>W.json()));Q&&Q.ok&&i(Q),K&&K.ok&&h(K),me&&me.ok&&k(me),Ee&&Ee.ok&&P(Ee.cards||[]),we&&we.ok&&T({db:we.db,backups:we.backups,total:we.total,version:we.version,degraded:we.degraded===!0}),w(fe&&fe.ok?fe:{ok:!1,error:fe&&fe.error||""}),s(!Q||!Q.ok?e("adminLoadFail"):"")}catch{s(e("adminLoadFail"))}}let De=(0,p.useCallback)(async()=>{j("scan");try{let v=await fetch(`${Z}/optimize`).then(Q=>Q.json());v.ok&&u(v)}catch{s(e("adminLoadFail"))}finally{j("")}},[e]),[G,je]=(0,p.useState)(null),F=(0,p.useCallback)(async()=>{j("refine");try{let v=await fetch(`${Z}/refine-scan`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({limit:8})}).then(Q=>Q.json());v&&v.ok?je(v):notify(v&&v.error||e("refineFail"),!1)}catch{notify(e("refineFail"),!1)}finally{j("")}},[e]),et=async(v,Q)=>{if(!(Q==="merge"&&!window.confirm(e("mergeConfirm")))){j("refineapply");try{let K=await fetch(`${Z}/refine-apply`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({a:v.a.path,b:v.b.path,action:Q,relation:v.relation})}).then(me=>me.json());K&&K.ok?(notify(e("refineApplied")),je(me=>me&&{...me,findings:(me.findings||[]).filter(Ee=>!(Ee.a.path===v.a.path&&Ee.b.path===v.b.path))}),await he(),n&&n()):notify(K&&K.error||e("refineFail"),!1)}catch{notify(e("refineFail"),!1)}finally{j("")}}},[pe,ne]=(0,p.useState)(null),Ke=(0,p.useCallback)(async()=>{j("junk");try{let v=await fetch(`${Z}/refine-junk`).then(Q=>Q.json());v&&v.ok?ne(v.items||[]):notify(e("junkFail"),!1)}catch{notify(e("junkFail"),!1)}finally{j("")}},[e]),Be=async v=>{if(v.length&&window.confirm(e("junkRecycleAllConfirm"))){j("junkpurge");try{let Q=await fetch(`${Z}/refine-junk-purge`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({paths:v})}).then(K=>K.json());Q&&Q.removed?(notify(e("junkDone")+"\uFF1A"+Q.removed.length+(Q.failed?.length?"\uFF08\u5931\u8D25 "+Q.failed.length+"\uFF09":"")),ne(K=>K&&K.filter(me=>!Q.removed.includes(me.path))),await he(),n&&n()):notify(e("junkFail"),!1)}catch{notify(e("junkFail"),!1)}finally{j("")}}},[ae,V]=(0,p.useState)(null),$=(0,p.useCallback)(async()=>{j("goals");try{let v=await fetch(Z+"/refine-goals",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({limit:30})}).then(Q=>Q.json());v&&v.ok?V(v):notify(v&&v.error||e("goalFail"),!1)}catch{notify(e("goalFail"),!1)}finally{j("")}},[e]),z=async v=>{j("goalskeep");try{let Q=await fetch(Z+"/refine-goals-keep",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({paths:v.members.map(K=>K.path)})}).then(K=>K.json());Q&&Q.ok?(notify(e("goalDone")),V(K=>K&&{...K,clusters:(K.clusters||[]).filter(me=>me.goal!==v.goal)})):notify(e("goalFail"),!1)}catch{notify(e("goalFail"),!1)}finally{j("")}},q=async v=>{if(window.confirm(e("mergeConfirm"))){j("goalsmerge");try{let Q=await fetch(Z+"/merge?paths="+encodeURIComponent(v.members.map(K=>K.path).join(","))).then(K=>K.json());Q&&Q.ok?(notify(e("goalMerged")),V(K=>K&&{...K,clusters:(K.clusters||[]).filter(me=>me.goal!==v.goal)}),await he(),n&&n()):notify(e("mergeFail"),!1)}catch{notify(e("mergeFail"),!1)}finally{j("")}}};(0,p.useEffect)(()=>{he()},[a]);let ge=async(v,Q)=>{if(window.confirm(e("mergeConfirm")))try{(await fetch(`${Z}/merge?paths=${encodeURIComponent(v+","+Q)}`).then(me=>me.json())).ok&&(await he(),n&&n())}catch{}},Le=async v=>{if(window.confirm(e("deleteConfirm")))try{(await fetch(`${Z}/delete?path=${encodeURIComponent(v)}`).then(K=>K.json())).ok&&(await he(),n&&n())}catch{}},le=qf,te=({title:v,kind:Q,updated:K,path:me})=>(0,r.jsxs)("li",{style:{display:"flex",alignItems:"center",gap:8,padding:"3px 4px",borderBottom:"1px solid rgba(127,127,127,0.12)"},children:[(0,r.jsx)("span",{className:"mc-kind",style:{background:xn.colors[Q]||"#666"}}),(0,r.jsx)("span",{style:{flex:1,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:v}),(0,r.jsx)("span",{style:{opacity:.55,fontSize:11},children:lr(K)}),(0,r.jsxs)("button",{type:"button",className:"mc-btn",style:{padding:"2px 8px"},onClick:()=>Le(me),children:[e("delete")," \u2715"]})]});return(0,r.jsxs)("div",{className:"mc-admin",style:{display:"flex",flexDirection:"column",overflow:"auto",flex:1,minHeight:0},children:[(0,r.jsx)("style",{children:kn}),(0,r.jsxs)("div",{style:{overflow:"auto"},children:[l&&(0,r.jsxs)("div",{className:"mc-card",style:{borderLeft:"4px solid #ef4444",background:"rgba(239,68,68,0.08)",padding:"12px 14px",marginBottom:10},children:[(0,r.jsxs)("div",{style:{fontSize:13,color:"#b91c1c",fontWeight:600,marginBottom:6},children:["\u26A0 ",l]}),(0,r.jsxs)("button",{type:"button",className:"mc-btn",onClick:he,children:["\u21BB ",e("retry")]})]}),t==="stats"&&(0,r.jsxs)("div",{children:[(0,r.jsxs)("div",{className:"mc-v5-pagehead",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{className:"mc-v5-eyebrow",children:"SYSTEM STATUS"}),(0,r.jsx)("h1",{children:e("runtimeTitle")}),(0,r.jsx)("p",{children:e("runtimeSub")})]}),(0,r.jsx)("span",{className:"mc-v5-pagecount",children:E?`${E.total||0} ${e("cardsUnit")}`:""}),(0,r.jsxs)("button",{type:"button",className:"mc-btn",onClick:()=>he(),children:["\u21BB ",e("refresh")]})]}),(0,r.jsxs)("div",{className:"mc-v5-statusgrid",children:[(0,r.jsxs)("div",{className:"mc-v5-statuscard",children:[(0,r.jsx)("span",{className:"mc-v5-status-ico",children:"\u{1F5C4}\uFE0F"}),(0,r.jsx)("b",{children:E?E.total||0:"\u2014"}),(0,r.jsx)("span",{children:e("dbTitle")}),(0,r.jsx)("small",{children:E?.db?.journalMode||E?.db?.journal_mode||"SQLite"})]}),(0,r.jsxs)("div",{className:"mc-v5-statuscard",children:[(0,r.jsx)("span",{className:"mc-v5-status-ico",children:"\u{1F4BE}"}),(0,r.jsx)("b",{children:E?.backups?.count??"\u2014"}),(0,r.jsx)("span",{children:e("backupTitle")}),(0,r.jsx)("small",{children:E?.backups?.newestAt?`${Math.max(0,Math.floor((Date.now()-Number(E.backups.newestAt))/864e5))} \u5929\u524D`:"\u2014"})]}),(0,r.jsxs)("div",{className:"mc-v5-statuscard",children:[(0,r.jsx)("span",{className:"mc-v5-status-ico",children:"\u2728"}),(0,r.jsx)("b",{children:g?.available?g.health?.ok?"\u6B63\u5E38":"\u5F02\u5E38":"\u2014"}),(0,r.jsx)("span",{children:e("captureTitle")}),(0,r.jsx)("small",{children:g?.health?.lastAt?lr(new Date(g.health.lastAt).toISOString()):"\u2014"})]}),(0,r.jsxs)("div",{className:"mc-v5-statuscard",children:[(0,r.jsx)("span",{className:"mc-v5-status-ico",children:"\u{1F3F7}\uFE0F"}),(0,r.jsx)("b",{children:E?.version||"\u2014"}),(0,r.jsx)("span",{children:e("versionTitle")}),(0,r.jsx)("small",{children:e("v5Local")})]})]}),(0,r.jsxs)("div",{className:"mc-card",style:{marginBottom:10},children:[(0,r.jsxs)("div",{style:{display:"flex",gap:10,alignItems:"center",flexWrap:"wrap"},children:[(0,r.jsxs)("b",{style:{fontSize:12},children:["\u{1FA7A} ",e("healthTitle")]}),(0,r.jsx)("span",{style:{fontSize:11,opacity:.6},children:e("healthHint")}),(0,r.jsx)("div",{style:{flex:1}}),(0,r.jsxs)("button",{type:"button",className:"mc-btn",onClick:()=>he(),children:["\u21BB ",e("refresh")]})]}),E?(()=>{let v=E.db||{},Q=v.writable!==!1&&!v.corrupt,K=E.backups||{count:0,newestAt:0},me=K.newestAt?Math.floor((Date.now()-Number(K.newestAt))/864e5):-1,Ee=K.count?me>7?"warn":"ok":"bad",we=g&&g.available?g.health:null,fe=we?we.ok?"ok":"warn":"none",W=f&&f.findings?f.onDisk&&f.residentServed===f.onDisk&&f.hostVersion===f.onDisk?"ok":"warn":"none",ue={ok:["\u2705","#10b981"],warn:["\u26A0","#f59e0b"],bad:["\u2717","#ef4444"],none:["\u2022","inherit"]},de=[{label:e("healthDb"),level:Q?"ok":"bad",text:Q?"journal="+(v.journalMode||"?")+(v.checkedAt?" \xB7 "+new Date(v.checkedAt).toLocaleString():""):(v.error||e("healthDbBad"))+" \u2192 dsh-memory doctor"},{label:e("healthBackups"),level:Ee,text:K.count?(me<=0?e("healthBackupToday").replace("{n}",String(K.count)):e("healthBackupAge").replace("{n}",String(K.count)).replace("{d}",String(me)))+(K.files&&K.files.length?" \xB7 "+K.files[K.files.length-1]:""):e("healthNoBackups")},{label:e("healthCapture"),level:fe,text:we?we.ok?e("healthCapOk"):e("healthCapFail")+"\uFF1A"+(we.reason||""):e("healthNoRecords")},{label:e("healthVersion"),level:W,text:W==="none"?e("healthRunAlign"):e("vcOnDisk")+" v"+(f.onDisk||"?")+" \xB7 "+e("vcResident")+" v"+(f.residentServed||"?")+" \xB7 "+e("vcLoaded")+" v"+(f.hostVersion||"?"),action:W==="none"?{label:e("alignRun"),run:L}:null}];return(0,r.jsx)("div",{style:{marginTop:6},children:de.map(be=>(0,r.jsxs)("div",{style:{display:"flex",gap:8,alignItems:"baseline",fontSize:12,padding:"3px 0",borderTop:"1px solid rgba(127,127,127,0.10)"},children:[(0,r.jsx)("span",{style:{width:14,flex:"0 0 auto",color:ue[be.level][1]},children:ue[be.level][0]}),(0,r.jsx)("b",{style:{minWidth:62,flex:"0 0 auto",opacity:.85},children:be.label}),(0,r.jsx)("span",{style:{opacity:.82,wordBreak:"break-word"},children:be.text}),be.action&&(0,r.jsx)("button",{type:"button",className:"mc-btn",style:{marginLeft:6,padding:"0 6px",fontSize:11},disabled:!!A,onClick:be.action.run,children:be.action.label})]},be.label))})})():(0,r.jsx)("div",{style:{opacity:.6,fontSize:12,padding:"8px 0"},children:e("loading")})]}),(0,r.jsxs)("div",{className:"mc-card",style:{marginBottom:10},children:[(0,r.jsxs)("div",{style:{display:"flex",gap:10,alignItems:"center",flexWrap:"wrap"},children:[(0,r.jsxs)("b",{style:{fontSize:12},children:["\u{1F9FE} ",e("ledgerTitle")]}),(0,r.jsx)("span",{style:{fontSize:11,opacity:.6},children:e("ledgerHint")}),(0,r.jsx)("div",{style:{flex:1}}),(0,r.jsxs)("button",{type:"button",className:"mc-btn",onClick:()=>he(),children:["\u21BB ",e("refresh")]})]}),I?I.ok===!1?(0,r.jsxs)("div",{style:{color:"#f59e0b",fontSize:12,padding:"8px 0",lineHeight:1.7},children:["\u26A0 ",/未知接口|404|not found/i.test(String(I.error||""))?e("ledgerNeedRestart"):I.error||e("adminLoadFail")]}):I.totals.recalls+I.totals.captures===0?(0,r.jsx)("div",{style:{opacity:.6,fontSize:12,padding:"8px 0"},children:e("ledgerNoData")}):(0,r.jsxs)("div",{style:{marginTop:8},children:[(0,r.jsx)("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(160px, 1fr))",gap:8},children:[{k:e("ledgerRecalls"),v:String(I.totals.recalls),s:e("ledgerInjected")+" "+Number(I.totals.injectedChars||0).toLocaleString()+" "+e("ledgerChars")},{k:e("ledgerCaptures"),v:String(I.totals.captures),s:e("ledgerLlmCalls")+" "+I.totals.llmCalls+(I.totals.captureFail?" \xB7 \u2717 "+I.totals.captureFail:"")},{k:e("ledgerEstimate"),v:"\u2248 "+Number(I.totals.estTokens||0).toLocaleString(),s:e("ledgerEstimateHint")},{k:e("ledgerUseful"),v:I.feedback.rate==null?"\u2014":Math.round(I.feedback.rate*100)+"%",s:e("ledgerUsefulHint")}].map(v=>(0,r.jsxs)("div",{style:{border:"1px solid rgba(127,127,127,.16)",borderRadius:10,padding:"8px 10px"},children:[(0,r.jsx)("div",{style:{fontSize:11,opacity:.6},children:v.k}),(0,r.jsx)("div",{style:{fontSize:18,fontWeight:700,lineHeight:1.35},children:v.v}),(0,r.jsx)("div",{style:{fontSize:10.5,opacity:.55,lineHeight:1.5},children:v.s})]},v.k))}),(0,r.jsx)("div",{style:{fontSize:11,opacity:.55,marginTop:8,lineHeight:1.7},children:e("ledgerFormula")})]}):(0,r.jsx)("div",{style:{opacity:.6,fontSize:12,padding:"8px 0"},children:e("loading")})]}),(0,r.jsxs)("div",{className:"mc-card",style:{marginBottom:10},children:[(0,r.jsxs)("div",{style:{display:"flex",gap:10,alignItems:"center",flexWrap:"wrap"},children:[(0,r.jsxs)("b",{style:{fontSize:12},children:["\u{1F527} ",e("alignTitle")]}),(0,r.jsx)("button",{type:"button",className:"mc-btn",disabled:!!A,onClick:L,children:e(A==="align"?"exporting":"alignRun")}),f&&f.counts&&f.counts.fix>0&&(0,r.jsx)("button",{type:"button",className:"mc-btn me-on",disabled:!!A,onClick:O,children:e(A==="alignfix"?"exporting":"alignFix")}),(0,r.jsx)("span",{style:{fontSize:11,opacity:.6},children:e("alignHint")})]}),f&&f.findings?(0,r.jsxs)("div",{style:{marginTop:6},children:[(0,r.jsxs)("div",{style:{fontSize:12,opacity:.75,marginBottom:4},children:[e("alignDisk")," v",f.onDisk||"?",f.residentServed?" \xB7 "+e("alignResident")+" v"+f.residentServed:"",f.hostVersion?" \xB7 "+e("alignHost")+" v"+f.hostVersion:""]}),(0,r.jsx)("ul",{style:{margin:0,padding:0,listStyle:"none"},children:f.findings.map((v,Q)=>(0,r.jsxs)("li",{style:{padding:"4px 2px",borderTop:Q?"1px solid rgba(127,127,127,0.12)":"none",fontSize:12},children:[(0,r.jsx)("span",{style:{fontWeight:700,color:v.level==="fix"?"#ef4444":v.level==="warn"?"#f59e0b":"#10b981"},children:v.level==="fix"?"\u2717":v.level==="warn"?"\u26A0":"\u2713"})," ",(0,r.jsx)("span",{children:v.title}),v.detail?(0,r.jsx)("div",{style:{opacity:.75,marginLeft:14},children:v.detail}):null,v.command?(0,r.jsxs)("div",{style:{marginLeft:14,opacity:.9},children:["\u2192 ",(0,r.jsx)("code",{children:v.command})]}):null]},Q))})]}):(0,r.jsx)("div",{style:{opacity:.6,fontSize:12,marginTop:4},children:e("alignIdle")})]}),(0,r.jsxs)("div",{className:"mc-card",style:{marginBottom:10},children:[(0,r.jsxs)("div",{style:{display:"flex",gap:10,alignItems:"center",flexWrap:"wrap"},children:[(0,r.jsxs)("b",{style:{fontSize:12},children:["\u{1FAB5} ",e("captureLog")]}),(0,r.jsx)("span",{style:{fontSize:11,opacity:.6},children:e("captureLogHint")}),(0,r.jsx)("div",{style:{flex:1}}),(0,r.jsxs)("button",{type:"button",className:"mc-btn",onClick:()=>he(),children:["\u21BB ",e("refresh")]})]}),g?g.available===!1?(0,r.jsx)("div",{style:{opacity:.6,fontSize:12,padding:"8px 0"},children:e("captureLogUnavailable")}):(g.entries||[]).length===0?(0,r.jsx)("div",{style:{opacity:.6,fontSize:12,padding:"8px 0"},children:e("captureLogEmpty")}):(0,r.jsx)("div",{style:{maxHeight:260,overflow:"auto",marginTop:8},children:(0,r.jsx)("table",{style:{width:"100%",borderCollapse:"collapse",fontSize:12},children:(0,r.jsx)("tbody",{children:(g.entries||[]).map((v,Q)=>{let K=o0[v.action]||["\u2022","inherit"];return(0,r.jsxs)("tr",{style:{borderBottom:"1px solid rgba(127,127,127,0.12)"},children:[(0,r.jsx)("td",{style:{padding:"4px 6px",opacity:.55,whiteSpace:"nowrap",fontVariantNumeric:"tabular-nums"},children:lr(v.time?new Date(v.time).toISOString():"")}),(0,r.jsxs)("td",{style:{padding:"4px 6px",whiteSpace:"nowrap",color:K[1],fontWeight:600},children:[K[0]," ",v.action]}),(0,r.jsx)("td",{style:{padding:"4px 6px"},children:v.reason||""}),(0,r.jsx)("td",{style:{padding:"4px 6px",opacity:.55,maxWidth:220,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},title:v.preview||"",children:v.preview||""})]},Q)})})})}):(0,r.jsx)("div",{style:{opacity:.6,fontSize:12,padding:"8px 0"},children:e("loading")})]}),(0,r.jsxs)("div",{className:"mc-card",style:{marginBottom:10},children:[(0,r.jsxs)("div",{style:{fontSize:12,fontWeight:700,marginBottom:6},children:["\u{1F916} ",e("captureAgentCards"),"\uFF08",D.length,"\uFF09"]}),D.length?(0,r.jsx)("ul",{style:{margin:0,padding:0,listStyle:"none"},children:D.map(v=>(0,r.jsxs)("li",{style:{display:"flex",alignItems:"center",gap:8,padding:"3px 4px",borderBottom:"1px solid rgba(127,127,127,0.12)",fontSize:12},children:[(0,r.jsx)("span",{className:"mc-kind",style:{background:qt[v.kind]||qt.other}}),(0,r.jsx)("span",{style:{flex:1,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:v.title}),v.status==="pending"&&(0,r.jsxs)("span",{className:"mc-status",style:{background:"#f59e0b"},children:["\u23F3 ",e("statusPending")]}),(0,r.jsx)("span",{style:{opacity:.55,fontSize:11},children:lr(v.updated)})]},v.path))}):(0,r.jsx)("div",{style:{opacity:.6,fontSize:12},children:e("noCards")})]}),o&&(0,r.jsxs)(r.Fragment,{children:[o.trend&&o.trend.length>0&&(()=>{let v=o.trend,Q=Math.max(...v.map(we=>we.count),1),K=260,me=50,Ee=K/v.length;return(0,r.jsxs)("div",{className:"mc-card",style:{marginBottom:10,padding:"10px 14px"},children:[(0,r.jsxs)("div",{style:{fontSize:11,opacity:.6,marginBottom:4},children:["\u{1F4C8} ",e("trendLabel")]}),(0,r.jsx)("svg",{width:K,height:me,style:{display:"block",width:"100%",height:50},children:v.map((we,fe)=>{let W=Math.round(we.count/Q*(me-4));return(0,r.jsx)("rect",{x:fe*Ee+1,y:me-W,width:Math.max(Ee-2,2),height:W,rx:1.5,fill:we.count>0?"var(--dsw-alias-accent, #3b82f6)":"var(--dsw-alias-border-l1, #e5e7eb)",opacity:we.count>0?.85:.35},we.date)})})]})})(),(0,r.jsxs)("div",{className:"mc-stats",children:[(0,r.jsxs)("div",{className:"mc-stat mc-card",children:[(0,r.jsx)("b",{children:o.total}),(0,r.jsx)("span",{children:e("total")})]}),(0,r.jsxs)("div",{className:"mc-stat mc-card",children:[(0,r.jsx)("b",{children:o.today}),(0,r.jsx)("span",{children:e("todayAdd")})]}),(0,r.jsxs)("div",{className:"mc-stat mc-card",children:[(0,r.jsx)("b",{children:o.week}),(0,r.jsx)("span",{children:e("weekAdd")})]}),(0,r.jsxs)("div",{className:"mc-stat mc-card",children:[(0,r.jsx)("b",{children:o.tags}),(0,r.jsx)("span",{children:e("tags")})]})]}),(0,r.jsxs)("div",{className:"mc-card",style:{marginBottom:10},children:[(0,r.jsx)("div",{style:{fontSize:12,fontWeight:700,marginBottom:6},children:e("byKind")}),(0,r.jsx)("div",{style:{display:"flex",gap:10,flexWrap:"wrap"},children:le.map(v=>(0,r.jsxs)("span",{style:{fontSize:12},children:[(0,r.jsx)("span",{className:"mc-kind",style:{background:xn.colors[v]||"#666"}}),e(Ct[v]),": ",o.byKind?.[v]||0]},v))})]}),m&&(m.budgetChars||m.recallLimit||m.embedding)&&(0,r.jsxs)("div",{className:"mc-card",style:{marginBottom:10,fontSize:12},children:[(0,r.jsx)("b",{children:e("budgetLabel")}),"\uFF1A",e("budgetChars")," ",(0,r.jsx)("b",{children:m.budgetChars||8e4})," \xB7 ",e("recallLimitLabel")," ",(0,r.jsx)("b",{children:m.recallLimit||5})," \xB7 ",e("embeddingLabel")," ",m.embedding?"ON":"OFF"]}),(0,r.jsxs)("div",{className:"mc-card",children:[(0,r.jsxs)("div",{style:{fontSize:12,fontWeight:700,marginBottom:6},children:[e("todayList"),"\uFF08",o.todayCards?.length||0,"\uFF09"]}),o.todayCards?.length?(0,r.jsx)("ul",{style:{margin:0,padding:0,listStyle:"none"},children:o.todayCards.map(v=>(0,r.jsx)(te,{title:v.title,kind:v.kind,updated:v.updated,path:v.path},v.path))}):(0,r.jsx)("div",{style:{opacity:.6,fontSize:12},children:e("noOptimize")})]})]})]}),t==="optimize"&&(0,r.jsxs)("div",{children:[(0,r.jsxs)("div",{className:"mc-card mc-audit-batchcard",style:{marginBottom:10,display:"flex",gap:10,alignItems:"center",flexWrap:"wrap"},children:[(0,r.jsx)("b",{style:{fontSize:12},children:e("organizeTitle")}),(0,r.jsx)("div",{style:{flex:1}}),(0,r.jsx)("button",{type:"button",className:"mc-btn",disabled:!!A,onClick:De,children:A==="scan"?e("exporting"):"\u{1F50D} "+e("scanAndOrganize")}),c&&c.merge?.length>0&&(0,r.jsx)("button",{type:"button",className:"mc-btn me-on",disabled:!!A,onClick:async()=>{if(window.confirm(e("oneClickOptimizeConfirm"))){j("oneclick");try{let v=JSON.stringify({cleanupStale:H}),K=await(await fetch(`${Z}/optimize-execute`,{method:"POST",headers:{"Content-Type":"application/json"},body:v})).json();K&&K.ok?(notify(`${e("oneClickOptimizeDone")}\uFF1A${K.plan.merged} ${e("optimizedMerged")}${H?` \xB7 ${K.plan.staleDeleted} ${e("optimizedStaleDeleted")}`:""}`),await he(),n&&n(),u(null)):notify(e("mergeFail"),!1)}catch{notify(e("mergeFail"),!1)}finally{j("")}}},children:A==="oneclick"?e("exporting"):"\u26A1 "+e("oneClickOptimize")}),c&&c.merge?.length>0&&(0,r.jsxs)("label",{style:{fontSize:11,opacity:.7,display:"flex",alignItems:"center",gap:4},children:[(0,r.jsx)("input",{type:"checkbox",checked:H,onChange:v=>ce(v.target.checked)}),e("oneClickAlsoStale")]})]}),!c&&(0,r.jsx)("div",{style:{opacity:.6,fontSize:12,marginBottom:10},children:e("scanHint")}),c&&(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)("div",{className:"mc-card",style:{marginBottom:10,display:"flex",flexDirection:"column",gap:8},children:[(0,r.jsxs)("div",{style:{display:"flex",gap:10,alignItems:"center"},children:[(0,r.jsx)("b",{style:{fontSize:12},children:e("mergePairs")}),(0,r.jsx)("div",{className:"spacer",style:{flex:1}}),c.merge?.length>0&&(0,r.jsx)("button",{type:"button",className:"mc-btn me-on",disabled:!!A,onClick:ve,children:e(A==="merge"?"exporting":"batchMerge")})]}),(0,r.jsx)("div",{style:{fontSize:12,fontWeight:700,marginBottom:6},children:e("mergePairs")}),c.merge?.length?(0,r.jsx)("ul",{style:{margin:"0 0 12px",padding:0,listStyle:"none"},children:c.merge.map((v,Q)=>(0,r.jsxs)("li",{style:{display:"flex",alignItems:"center",gap:8,padding:"4px 4px",borderBottom:"1px solid rgba(127,127,127,0.12)",fontSize:12},children:[(0,r.jsxs)("span",{style:{flex:1,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:[v.a.title," \u21C4 ",v.b.title]}),(0,r.jsxs)("span",{style:{opacity:.6},children:[Math.round(v.sim*100),"%"]}),(0,r.jsx)("button",{type:"button",className:"mc-btn",style:{padding:"2px 8px"},onClick:()=>ge(v.a.path,v.b.path),children:e("mergeNow")})]},Q))}):(0,r.jsx)("div",{style:{opacity:.6,fontSize:12,marginBottom:12},children:e("noOptimize")}),(0,r.jsxs)("div",{style:{fontSize:12,fontWeight:700,marginBottom:6},children:[e("staleCards"),"\uFF08",c.stale?.length||0,"\uFF09"]}),c.stale?.length>0&&(0,r.jsx)("div",{style:{marginBottom:6},children:(0,r.jsx)("button",{type:"button",className:"mc-btn",style:{color:"#f87171"},disabled:!!A,onClick:async()=>{if(!window.confirm(e("deleteConfirm")))return;j("clean");let v=0;for(let Q of c.stale)try{await fetch(`${Z}/delete?path=${encodeURIComponent(Q.path)}`),v++}catch{}j(""),notify(`${v} ${e("deletedStale")}`),await he(),n&&n()},children:e("cleanStale")})}),c.stale?.length?(0,r.jsx)("ul",{style:{margin:0,padding:0,listStyle:"none"},children:c.stale.map(v=>(0,r.jsx)(te,{title:v.title,kind:"other",updated:v.updated,path:v.path},v.path))}):(0,r.jsx)("div",{style:{opacity:.6,fontSize:12},children:e("noOptimize")})]})}),(0,r.jsxs)("div",{className:"mc-card",style:{marginBottom:10},children:[(0,r.jsxs)("div",{style:{display:"flex",gap:10,alignItems:"center",flexWrap:"wrap",marginBottom:6},children:[(0,r.jsxs)("b",{style:{fontSize:12},children:["\u{1F9ED} ",e("refineTitle")]}),(0,r.jsx)("button",{type:"button",className:"mc-btn",disabled:!!A,onClick:F,children:e(A==="refine"?"exporting":"refineScan")}),(0,r.jsx)("span",{style:{opacity:.6,fontSize:11},children:e("refineHint")})]}),G?.findings?.length?G.findings.map((v,Q)=>(0,r.jsxs)("div",{style:{borderTop:Q?"1px solid rgba(127,127,127,0.14)":"none",padding:"7px 2px"},children:[(0,r.jsxs)("div",{style:{fontSize:12,marginBottom:3},children:[(0,r.jsx)("span",{style:{fontWeight:700,color:v.relation==="conflict"?"#ef4444":v.relation==="duplicate"?"#f59e0b":"#10b981"},children:e("refineRel_"+v.relation)}),(0,r.jsxs)("span",{style:{opacity:.55},children:[" \xB7 sim ",v.sim," \xB7 ",v.useModel||""]}),v.conflict?(0,r.jsx)("span",{style:{marginLeft:6},children:v.conflict}):null]}),(0,r.jsxs)("div",{style:{fontSize:12,opacity:.85,marginBottom:5},children:["A\uFF1A",v.a.title,(0,r.jsx)("br",{}),"B\uFF1A",v.b.title]}),(0,r.jsxs)("div",{style:{display:"flex",gap:6,flexWrap:"wrap"},children:[(0,r.jsx)("button",{type:"button",className:"mc-btn",style:{padding:"2px 8px"},disabled:!!A,onClick:()=>et(v,"keepA"),children:e("refineKeepA")}),(0,r.jsx)("button",{type:"button",className:"mc-btn",style:{padding:"2px 8px"},disabled:!!A,onClick:()=>et(v,"keepB"),children:e("refineKeepB")}),(0,r.jsx)("button",{type:"button",className:"mc-btn",style:{padding:"2px 8px"},disabled:!!A,onClick:()=>et(v,"keepBoth"),children:e("refineKeepBoth")}),(0,r.jsx)("button",{type:"button",className:"mc-btn",style:{padding:"2px 8px"},disabled:!!A,onClick:()=>et(v,"merge"),children:e("refineMerge")})]})]},Q)):(0,r.jsx)("div",{style:{opacity:.6,fontSize:12},children:e(G?"refineNone":"refineIdle")})]}),(0,r.jsxs)("div",{className:"mc-card",style:{marginBottom:10},children:[(0,r.jsxs)("div",{style:{display:"flex",gap:10,alignItems:"center",flexWrap:"wrap",marginBottom:6},children:[(0,r.jsxs)("b",{style:{fontSize:12},children:["\u{1F9F9} ",e("junkTitle")]}),(0,r.jsx)("button",{type:"button",className:"mc-btn",disabled:!!A,onClick:Ke,children:e(A==="junk"?"exporting":"junkScan")}),pe?.length?(0,r.jsx)("button",{type:"button",className:"mc-btn",disabled:!!A,onClick:()=>Be(pe.map(v=>v.path)),children:e(A==="junkpurge"?"exporting":"junkRecycleAll")}):null,(0,r.jsx)("span",{style:{opacity:.6,fontSize:11},children:e("junkHint")})]}),pe?.length?(0,r.jsx)("ul",{style:{margin:0,padding:0,listStyle:"none"},children:pe.map((v,Q)=>(0,r.jsxs)("li",{style:{display:"flex",alignItems:"center",gap:8,padding:"4px 2px",borderTop:Q?"1px solid rgba(127,127,127,0.14)":"none",fontSize:12},children:[(0,r.jsx)("span",{style:{flex:1,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},title:v.reasons.join("\uFF1B"),children:v.title||v.path}),(0,r.jsx)("span",{style:{opacity:.55,fontSize:11},children:v.reasons[0]}),(0,r.jsx)("button",{type:"button",className:"mc-btn",style:{padding:"2px 8px"},disabled:!!A,onClick:()=>Be([v.path]),children:e("junkRecycle")})]},Q))}):(0,r.jsx)("div",{style:{opacity:.6,fontSize:12},children:e(pe?"junkNone":"junkIdle")})]}),(0,r.jsxs)("div",{className:"mc-card",style:{marginBottom:10},children:[(0,r.jsxs)("div",{style:{display:"flex",gap:10,alignItems:"center",flexWrap:"wrap",marginBottom:6},children:[(0,r.jsxs)("b",{style:{fontSize:12},children:["\u{1F3AF} ",e("goalTitle")]}),(0,r.jsx)("button",{type:"button",className:"mc-btn",disabled:!!A,onClick:$,children:e(A==="goals"?"exporting":"goalScan")}),ae?(0,r.jsxs)("span",{style:{opacity:.6,fontSize:11},children:[e("goalStats"),"\uFF1A",ae.cached," / ",ae.calls]}):null,(0,r.jsx)("span",{style:{opacity:.6,fontSize:11},children:e("goalHint")})]}),ae?.clusters?.length?ae.clusters.map((v,Q)=>(0,r.jsxs)("div",{style:{borderTop:Q?"1px solid rgba(127,127,127,0.14)":"none",padding:"7px 2px"},children:[(0,r.jsxs)("div",{style:{fontSize:12,marginBottom:4},children:[(0,r.jsx)("b",{children:v.goal})," ",(0,r.jsxs)("span",{style:{opacity:.55},children:["\xB7 ",v.members.length," ",e("goalCards")]})]}),(0,r.jsx)("ul",{style:{margin:"0 0 5px",padding:"0 0 0 16px",fontSize:12,opacity:.85},children:v.members.map((K,me)=>(0,r.jsx)("li",{children:K.title},me))}),(0,r.jsxs)("div",{style:{display:"flex",gap:6,flexWrap:"wrap"},children:[(0,r.jsx)("button",{type:"button",className:"mc-btn",style:{padding:"2px 8px"},disabled:!!A,onClick:()=>z(v),children:e("goalKeep")}),(0,r.jsx)("button",{type:"button",className:"mc-btn",style:{padding:"2px 8px"},disabled:!!A,onClick:()=>q(v),children:e("goalMerge")})]})]},Q)):(0,r.jsx)("div",{style:{opacity:.6,fontSize:12},children:e(ae?"goalNone":"goalIdle")})]})]})]})]})}var cd=[{key:"decision",label:"tplDecision",kind:"knowledge",tagKey:"tplDecisionTags",bodyKey:"tplDecisionBody"},{key:"bug",label:"tplBug",kind:"mistake",tagKey:"tplBugTags",bodyKey:"tplBugBody"},{key:"meeting",label:"tplMeeting",kind:"content",tagKey:"tplMeetingTags",bodyKey:"tplMeetingBody"},{key:"weekly",label:"tplWeekly",kind:"content",tagKey:"tplWeeklyTags",bodyKey:"tplWeeklyBody"}];function R0({t:e,newCard:t,setNewCard:n,onCreated:a}){if(!t)return null;let o=cd.find(h=>h.key===t.template),i=t.body||(o?e(o.bodyKey):""),l=t.kind||(o?o.kind:"knowledge"),s=t.tags||(o?e(o.tagKey):""),c=t._creating,u=h=>{let g=cd.find(k=>k.key===h);n(k=>({...k,template:h,kind:g?g.kind:k.kind,body:g?e(g.bodyKey):k.body,tags:g?e(g.tagKey):k.tags}))},m=async()=>{if(!(!t.title&&!i)){n(h=>({...h,_creating:!0}));try{(await fetch(`${Z}/write`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({title:t.title||e("untitled"),kind:l,tags:s.split(",").map(g=>g.trim()).filter(Boolean),body:i,source:"manual"})}).then(g=>g.json())).ok?(n(null),a&&a()):n(g=>({...g,_creating:!1}))}catch{n(g=>({...g,_creating:!1}))}}};return(0,r.jsxs)("div",{className:"me-overlay",onClick:()=>n(null),children:[(0,r.jsx)("style",{children:kn}),(0,r.jsxs)("div",{className:"me-dialog",style:{maxWidth:600,width:"92vw",maxHeight:"85vh"},onClick:h=>h.stopPropagation(),children:[(0,r.jsxs)("div",{className:"me-dialog-head",children:[(0,r.jsx)("h3",{children:e("newCard")}),(0,r.jsx)("button",{type:"button",className:"mc-btn",onClick:()=>n(null),children:e("close")})]}),(0,r.jsxs)("div",{className:"me-dialog-body",style:{display:"flex",flexDirection:"column",gap:10,overflow:"auto"},children:[(0,r.jsxs)("div",{style:{display:"flex",gap:6,flexWrap:"wrap"},children:[cd.map(h=>(0,r.jsx)("button",{type:"button",className:`mc-btn${t.template===h.key?" me-on":""}`,onClick:()=>u(h.key),children:e(h.label)},h.key)),(0,r.jsx)("button",{type:"button",className:`mc-btn${t.template===""?" me-on":""}`,onClick:()=>n(h=>({...h,template:"",body:"",tags:"",kind:"knowledge"})),children:e("tplBlank")})]}),(0,r.jsx)("select",{className:"mc-btn",value:l,onChange:h=>n(g=>({...g,kind:h.target.value})),style:{maxWidth:180,background:"var(--dsw-alias-bg-layer-1, #fff)",color:"var(--dsw-alias-label-primary, #111)"},children:qf.map(h=>(0,r.jsx)("option",{value:h,style:{background:"var(--dsw-alias-bg-layer-1, #fff)",color:"var(--dsw-alias-label-primary, #111)"},children:e(Ct[h])||h},h))}),(0,r.jsx)("input",{type:"text",className:"mc-btn",placeholder:e("cardTitle"),value:t.title||"",onChange:h=>n(g=>({...g,title:h.target.value}))}),(0,r.jsx)("input",{type:"text",className:"mc-btn",placeholder:e("tagsHint"),value:s,onChange:h=>n(g=>({...g,tags:h.target.value}))}),(0,r.jsx)("textarea",{className:"mc-btn",placeholder:e("cardBody"),value:i,onChange:h=>n(g=>({...g,body:h.target.value})),style:{minHeight:180,resize:"vertical",fontFamily:"inherit"}}),(0,r.jsx)("div",{style:{display:"flex",justifyContent:"flex-end",gap:8},children:(0,r.jsx)("button",{type:"button",className:"mc-btn me-on",disabled:c,onClick:m,children:e(c?"exporting":"createCard")})})]})]})]})}async function gd(e){let t=String(e||"");if(!t)return!1;try{if(navigator.clipboard&&navigator.clipboard.writeText)return await navigator.clipboard.writeText(t),!0}catch{}try{let n=document.createElement("textarea");n.value=t,n.setAttribute("readonly",""),n.style.position="fixed",n.style.left="-9999px",n.style.top="0",document.body.appendChild(n),n.focus(),n.select();let a=!!(document.execCommand&&document.execCommand("copy"));return document.body.removeChild(n),a}catch{return!1}}function L0({t:e,onClose:t}){let[n,a]=(0,p.useState)(""),[o,i]=(0,p.useState)(""),[l,s]=(0,p.useState)(""),[c,u]=(0,p.useState)(!0),[m,h]=(0,p.useState)(!1),[g,k]=(0,p.useState)(""),[E,T]=(0,p.useState)(""),I=(0,p.useRef)(null),w=(0,p.useRef)(null),f=()=>{let H=I.current;if(H)try{H.focus(),H.select()}catch{}},y=H=>{k(H),w.current&&clearTimeout(w.current),w.current=setTimeout(()=>k(""),2400)};(0,p.useEffect)(()=>{let H=!0;return fetch(Z+"/diagnostics").then(ce=>ce.json()).then(ce=>{H&&(ce&&ce.ok?(i(String(ce.diagnostics||"")),s(String(ce.version||""))):h(!0))}).catch(()=>{H&&h(!0)}).finally(()=>{H&&u(!1)}),()=>{H=!1}},[]),(0,p.useEffect)(()=>{let H=ce=>{ce.key==="Escape"&&t()};return window.addEventListener("keydown",H),()=>{window.removeEventListener("keydown",H),w.current&&clearTimeout(w.current)}},[t]);let L=(()=>{try{return String(navigator.language||"").toLowerCase().startsWith("en")?"en":"zh"}catch{return"zh"}})(),O=()=>{let H=n.trim().split(`
1056
+ `)[0]||"",ce=bf({title:"[Bug] "+(H.slice(0,60)||"memory-eternal \u95EE\u9898"),body:wf({description:n,diagnostics:o,version:l})});try{window.open(ce,"_blank","noopener")}catch{y(e("fbCopyFail"))}},D=async()=>{await gd(o)?(T(""),y(e("fbCopiedDiag"))):(T(o),y(e("fbCopyManual")))},P=async()=>{let H=xf({lang:L,description:n,diagnostics:o});await gd(H)?(T(""),y(e("fbCopiedPrompt"))):(T(H),y(e("fbCopyManual")))},A={width:"100%",resize:"vertical",padding:"8px 10px",borderRadius:10,border:"1px solid var(--dsw-alias-border-l2, #d1d5db)",background:"transparent",color:"inherit",font:"inherit",fontSize:13},j={margin:0,maxHeight:170,overflow:"auto",fontSize:11.5,lineHeight:1.55,padding:"8px 10px",borderRadius:10,background:"var(--dsw-alias-bg-layer-1, rgba(127,127,127,0.08))",whiteSpace:"pre-wrap",wordBreak:"break-word",overflowX:"hidden"};return(0,r.jsxs)("div",{className:"me-overlay",onClick:t,children:[(0,r.jsx)("style",{children:kn}),(0,r.jsxs)("div",{className:"me-dialog",style:{maxWidth:720},onClick:H=>H.stopPropagation(),children:[(0,r.jsxs)("div",{className:"me-dialog-head",children:[(0,r.jsxs)("h3",{children:["\u{1F41E} ",e("fbTitle")]}),(0,r.jsx)("button",{type:"button",className:"mc-btn",onClick:t,children:e("close")})]}),(0,r.jsxs)("div",{className:"me-dialog-body",style:{display:"flex",flexDirection:"column",gap:10},children:[(0,r.jsx)("div",{style:{fontSize:12,opacity:.72,lineHeight:1.6},children:e("fbWhy")}),(0,r.jsx)("textarea",{value:n,onChange:H=>a(H.target.value),placeholder:e("fbDesc"),rows:5,style:A}),(0,r.jsxs)("div",{children:[(0,r.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,marginBottom:4},children:[(0,r.jsx)("b",{style:{fontSize:12},children:e("fbDiag")}),(0,r.jsx)("div",{style:{flex:1}}),(0,r.jsx)("button",{type:"button",className:"mc-btn",onClick:D,disabled:!o,children:e("fbCopyDiag")})]}),(0,r.jsx)("pre",{style:j,children:c?e("fbLoading"):m?e("fbDiagFail"):o})]}),(0,r.jsxs)("div",{style:{display:"flex",gap:8,alignItems:"center",flexWrap:"wrap",justifyContent:"flex-end"},children:[(0,r.jsxs)("button",{type:"button",className:"mc-btn",onClick:()=>{if(!n.trim()){y(e("fbNeedDesc"));return}O()},style:{borderColor:"var(--dsw-alias-brand-primary, #3b82f6)",color:"var(--dsw-alias-brand-primary, #3b82f6)",fontWeight:600},children:["\u{1F680} ",e("fbOpenIssue")]}),(0,r.jsx)("span",{style:{opacity:.5,fontSize:12},children:e("fbOr")}),(0,r.jsxs)("button",{type:"button",className:"mc-btn",onClick:P,children:["\u{1F916} ",e("fbCopyPrompt")]})]}),g&&(0,r.jsx)("div",{style:{fontSize:12,color:"var(--dsw-alias-brand-primary, #3b82f6)"},children:g}),E&&(0,r.jsxs)("div",{children:[(0,r.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,marginBottom:4},children:[(0,r.jsxs)("b",{style:{fontSize:12,color:"#b45309"},children:["\u26A0 ",e("fbCopyFail")]}),(0,r.jsx)("span",{style:{fontSize:11.5,opacity:.75},children:e("fbCopyManual")}),(0,r.jsx)("div",{style:{flex:1}}),(0,r.jsx)("button",{type:"button",className:"mc-btn",onClick:f,children:e("fbSelectAll")})]}),(0,r.jsx)("textarea",{ref:I,readOnly:!0,value:E,rows:7,style:A})]})]})]})]})}function D0({t:e,tab:t,onTab:n,onClose:a,onFeedback:o,onReplay:i}){let[l,s]=(0,p.useState)(null);(0,p.useEffect)(()=>{if(!l)return;let h=g=>{g.key==="Escape"&&s(null)};return window.addEventListener("keydown",h),()=>window.removeEventListener("keydown",h)},[l]);let c=[{id:"group",label:e("supportGroup")},{id:"sponsor",label:e("supportSponsor")},{id:"legacy",label:e("supportLegacy")}],u="https://github.com/EternalNight996/memory-eternal/blob/main/README.md",m=(h,g)=>(0,r.jsxs)("figure",{children:[(0,r.jsx)("img",{src:h,alt:g,loading:"lazy",title:e("clickToZoom"),onClick:k=>s(k.currentTarget.currentSrc||h),onError:k=>{let E=k.currentTarget;E.dataset.fb||(E.dataset.fb="1",E.src="https://raw.githubusercontent.com/EternalNight996/memory-eternal/main/assets/support/"+String(h).split("/").pop())}}),(0,r.jsx)("figcaption",{children:g})]});return(0,r.jsxs)("div",{className:"me-overlay",onClick:a,children:[(0,r.jsx)("style",{children:kn}),(0,r.jsxs)("div",{className:"me-dialog me-support",onClick:h=>h.stopPropagation(),children:[(0,r.jsxs)("div",{className:"me-dialog-head",children:[(0,r.jsxs)("h3",{children:["\u{1F4AC} ",e("supportTitle")]}),(0,r.jsx)("div",{className:"me-head-actions",children:(0,r.jsx)("button",{type:"button",className:"mc-btn",onClick:a,children:e("close")})})]}),(0,r.jsx)("div",{className:"me-support-tabs",children:c.map(h=>(0,r.jsx)("button",{type:"button",className:`me-support-tab${t===h.id?" active":""}`,onClick:()=>n(h.id),children:h.label},h.id))}),(0,r.jsxs)("div",{className:"me-support-body",children:[t==="group"&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("p",{className:"me-support-note",children:e("supportGroupHint")}),(0,r.jsxs)("div",{className:"me-support-qr",children:[m("support/group-qr.jpg",e("supportGroupQQ")),m("support/group-wechat.jpg",e("supportGroupWechat"))]}),(0,r.jsx)("p",{className:"me-support-note",style:{marginTop:12},children:(0,r.jsxs)("a",{className:"me-support-link",href:u,target:"_blank",rel:"noreferrer",children:[e("supportReadme")," \u2197"]})})]}),t==="sponsor"&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("p",{className:"me-support-note",children:e("supportSponsorHint")}),(0,r.jsxs)("div",{className:"me-support-qr",children:[m("support/wechat-pay.jpg","\u5FAE\u4FE1\u6536\u6B3E\u7801"),m("support/wechat-reward.jpg","\u5FAE\u4FE1\u8D5E\u8D4F\u7801"),m("support/alipay.jpg",e("supportAlipay"))]}),(0,r.jsxs)("p",{className:"me-support-note",style:{marginTop:12},children:["\u6253\u8D4F\u5B8C\u5168\u81EA\u613F\uFF0C\u4E0D\u5F71\u54CD\u4EFB\u4F55\u529F\u80FD\uFF1B\u63D2\u4EF6\u672C\u4F53\u59CB\u7EC8\u5F00\u6E90\u514D\u8D39\uFF08MIT\uFF09\u3002",(0,r.jsx)("br",{}),(0,r.jsx)("a",{className:"me-support-link",href:"https://github.com/EternalNight996/memory-eternal/blob/main/SPONSOR.md",target:"_blank",rel:"noreferrer",children:"SPONSOR.md \u2197"})]})]}),t==="legacy"&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("h3",{style:{margin:"0 0 8px",fontSize:14},children:e("supportLegacyTitle")}),(0,r.jsx)("p",{className:"me-support-note",children:e("supportLegacyBody")}),(0,r.jsxs)("div",{className:"me-support-actions",children:[(0,r.jsxs)("a",{className:"mc-btn",href:u,target:"_blank",rel:"noreferrer",children:["\u{1F4D6} ",e("supportReadme")," \u2197"]}),(0,r.jsxs)("a",{className:"mc-btn",href:"https://github.com/EternalNight996/memory-eternal/releases",target:"_blank",rel:"noreferrer",children:["\u{1F3F7} ",e("supportReleases")," \u2197"]})]})]})]}),(0,r.jsxs)("div",{className:"me-support-actions",style:{padding:"0 18px 16px",marginTop:0},children:[(0,r.jsxs)("button",{type:"button",className:"mc-btn",onClick:o,children:["\u{1F41E} ",e("supportFeedback")]}),(0,r.jsxs)("button",{type:"button",className:"mc-btn",onClick:i,children:["\u2728 ",e("supportReplay")]})]})]}),l&&(0,r.jsxs)("div",{className:"me-lightbox",role:"dialog","aria-modal":"true","aria-label":e("close"),onClick:h=>{h.stopPropagation(),s(null)},children:[(0,r.jsx)("button",{type:"button",className:"me-lightbox-close",onClick:h=>{h.stopPropagation(),s(null)},"aria-label":e("close"),children:"\u2715"}),(0,r.jsx)("img",{src:l,alt:"",onClick:h=>h.stopPropagation()})]})]})}function P0({t:e,onDone:t}){let[n,a]=(0,p.useState)(0),o="https://github.com/EternalNight996/memory-eternal",i=[{title:e("onboardStep0Title"),body:e("onboardStep0Body")},{title:e("onboardStep1Title"),body:e("onboardStep1Body")},{title:e("onboardStep2Title"),body:e("onboardStep2Body")},{title:e("onboardStep3Title"),body:e("onboardStep3Body")}],l=n===i.length-1;return(0,p.useEffect)(()=>{let s=c=>{c.key==="Escape"&&t()};return window.addEventListener("keydown",s),()=>window.removeEventListener("keydown",s)},[t]),(0,r.jsxs)("div",{className:"me-overlay",style:{zIndex:1006},children:[(0,r.jsx)("style",{children:kn}),(0,r.jsxs)("div",{className:"me-dialog me-guide",children:[(0,r.jsxs)("div",{className:"me-guide-head",children:[(0,r.jsxs)("b",{children:["\u2728 ",e("onboardTitle")]}),(0,r.jsx)("div",{className:"spacer"}),(0,r.jsx)("span",{style:{fontSize:11,opacity:.55},children:e("onboardSub")})]}),(0,r.jsx)("div",{className:"me-guide-dots",children:i.map((s,c)=>(0,r.jsx)("span",{className:`me-guide-dot${c<=n?" on":""}`},c))}),(0,r.jsxs)("div",{className:"me-guide-body",children:[(0,r.jsx)("h3",{children:i[n].title}),(0,r.jsx)("p",{children:i[n].body}),n===0&&(0,r.jsxs)("div",{className:"me-guide-github",children:[(0,r.jsxs)("button",{type:"button",className:"mc-btn me-on",onClick:()=>kl(o),children:["\u2605 ",e("onboardStar")]}),(0,r.jsxs)("button",{type:"button",className:"mc-btn",onClick:()=>kl(o+"/fork"),children:["\u2442 ",e("onboardFork")]}),(0,r.jsx)("span",{className:"me-guide-github-hint",children:e("onboardStarHint")})]}),n===1&&(0,r.jsxs)("div",{className:"me-guide-chips",children:[(0,r.jsx)("span",{children:"\u81EA\u52A8\u6C89\u6DC0"}),(0,r.jsx)("span",{children:"\u5148\u5BA1\u540E\u5165"}),(0,r.jsx)("span",{children:"\u53EA\u53EC\u56DE\u76F8\u5173\u5C0F\u5757"})]}),n===2&&(0,r.jsxs)("div",{className:"me-guide-like",children:[(0,r.jsx)("span",{className:"me-guide-thumb",children:"\u{1F44D}"})," \u6709\u7528"]}),n===3&&(0,r.jsxs)("div",{className:"me-guide-chips",children:[(0,r.jsxs)("span",{children:["\u{1F4AC} ",e("supportGroup")]}),(0,r.jsxs)("span",{children:["\u2615 ",e("supportSponsor")]}),(0,r.jsxs)("span",{children:["\u{1F9E9} ",e("supportLegacy")]}),(0,r.jsxs)("span",{children:["\u{1F41E} ",e("supportFeedback")]})]})]}),(0,r.jsxs)("div",{className:"me-guide-actions",children:[(0,r.jsx)("button",{type:"button",className:"mc-btn",onClick:t,children:e("onboardSkip")}),(0,r.jsx)("div",{className:"spacer"}),(0,r.jsx)("span",{className:"me-guide-tip",children:e("onboardTip")}),n>0&&(0,r.jsx)("button",{type:"button",className:"mc-btn",onClick:()=>a(s=>s-1),children:e("onboardBack")}),l?(0,r.jsx)("button",{type:"button",className:"mc-btn me-on",onClick:t,children:e("onboardStart")}):(0,r.jsx)("button",{type:"button",className:"mc-btn me-on",onClick:()=>a(s=>s+1),children:e(n===0?"onboardStarred":"onboardNext")})]})]})]})}function A0({t:e,card:t,query:n,onClose:a,onDelete:o,onFeedback:i,onNavigate:l,onTagClick:s,allCards:c,onOpenRelated:u,onKindChange:m,onSaved:h}){let[g,k]=(0,p.useState)(0),[E,T]=(0,p.useState)(""),[I,w]=(0,p.useState)(()=>{try{let W=localStorage.getItem("me-read-width");return["narrow","mid","wide"].includes(W)?W:"mid"}catch{return"mid"}}),f={narrow:720,mid:900,wide:1180};(0,p.useEffect)(()=>{let W=ue=>{if(ue.key==="Escape"){a();return}let de=String(ue.target&&ue.target.tagName||"").toLowerCase();de==="input"||de==="textarea"||de==="select"||ue.target&&ue.target.isContentEditable||(ue.key==="j"&&l?(ue.preventDefault(),l(1)):ue.key==="k"&&l&&(ue.preventDefault(),l(-1)))};return window.addEventListener("keydown",W),()=>window.removeEventListener("keydown",W)},[a,l]);let y=async(W,ue)=>{let de=await gd(String(W||""));T(de?e("copied")+" \xB7 "+ue:e("copyFail")),setTimeout(()=>T(""),1500)},{meta:L,body:O}=(0,p.useMemo)(()=>ml(t.text||""),[t.text]),D=W=>{let ue=L.find(([de])=>String(de).toLowerCase()===W);return ue?ue[1]:""},P=mf(D("tags")),A=t.kind||D("kind")||"knowledge",j=String(t.status||D("status")||"approved").toLowerCase(),H=qt[A]||"#6B7280",ce=(O||"").length>460,ve=(0,p.useMemo)(()=>bd(O,t.title),[O,t.title]),he=(0,p.useMemo)(()=>{let W=wd(t);if(W)return W;let de=(ve.split(/\r?\n/).map(be=>be.trim()).find(be=>be&&!/^#{1,2}\s/.test(be))||"").replace(/[#>*_`]/g,"").replace(/\s+/g," ").trim();return de.length>150?de.slice(0,148)+"\u2026":de},[t,ve]),De=(0,p.useMemo)(()=>M0(ve),[ve]),G=(0,p.useMemo)(()=>{let W=new Set(P);return(c||[]).filter(ue=>ue.path!==t.path&&(ue.tags||[]).some(de=>W.has(de))).slice(0,3)},[c,t.path,P.join("|")]),je=()=>{V(String(t.title||"")),z((Array.isArray(P)?P:[]).join(", ")),ge(String(O||"")),v(""),Be(!0)},F=()=>{Be(!1),v("")},et=async()=>{let W=String(ae||"").trim(),ue=String(q||"").trim();if(!W){v(e("editTitleEmpty"));return}if(!ue){v(e("editBodyEmpty"));return}let de=String($||"").split(/[,,\n]+/).map(be=>be.trim()).filter(Boolean);le(!0),v("");try{let be=await fetch(`${Z}/card/update`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:t.path,title:W,tags:de,body:ue})}).then(Nt=>Nt.json());if(!be||!be.ok){v(be&&be.error||e("editFail"));return}Be(!1),h&&await h({path:t.path,status:j,title:W})}catch(be){v(String(be&&be.message||be))}finally{le(!1)}},[pe,ne]=(0,p.useState)(!0),[Ke,Be]=(0,p.useState)(!1),[ae,V]=(0,p.useState)(""),[$,z]=(0,p.useState)(""),[q,ge]=(0,p.useState)(""),[Le,le]=(0,p.useState)(!1),[te,v]=(0,p.useState)(""),Q=(0,p.useRef)(null),[K,me]=(0,p.useState)(""),Ee=W=>{let ue=Q.current;if(!ue)return;let de=document.getElementById(W);if(!de||!ue.contains(de))return;let be=de.getBoundingClientRect().top-ue.getBoundingClientRect().top+ue.scrollTop-12;ue.scrollTo({top:Math.max(0,be),behavior:"smooth"})},we=W=>{if(!pe){ne(!0),setTimeout(()=>Ee(W),80);return}Ee(W)},fe=W=>{let ue=W.currentTarget,de=ue.scrollHeight-ue.clientHeight;k(de<=0?100:Math.min(100,Math.max(0,ue.scrollTop/de*100)));let be=ue.querySelectorAll(".md-doc .md-h"),Nt="",Yt=ue.getBoundingClientRect().top+28;for(let qe of be)if(qe.getBoundingClientRect().top<=Yt)Nt=qe.id;else break;me(Nt)};return(0,r.jsxs)("div",{className:"me-overlay",onClick:a,children:[(0,r.jsx)("style",{children:kn}),(0,r.jsxs)("div",{className:"me-dialog me-reader-dialog",onClick:W=>W.stopPropagation(),children:[(0,r.jsxs)("div",{className:"me-dialog-head",children:[(0,r.jsxs)("h3",{title:t.title,children:[(0,r.jsx)("span",{style:{marginRight:6,flex:"none"},children:Ar[A]||"\u{1F4CE}"}),t.title]}),(0,r.jsxs)("div",{className:"me-head-actions",children:[E&&(0,r.jsx)("span",{style:{fontSize:11.5,color:"#10b981",whiteSpace:"nowrap"},children:E}),(0,r.jsxs)("button",{type:"button",className:"mc-btn",title:e("copyBody"),onClick:()=>y(O,e("copyBody")),children:["\u{1F4CB} ",e("copyBody")]}),(0,r.jsxs)("button",{type:"button",className:"mc-btn",title:e("copyPath"),onClick:()=>y(t.path,e("copyPath")),children:["\u{1F517} ",e("copyPath")]}),(0,r.jsx)("button",{type:"button",className:"mc-btn",title:e("editCard"),onClick:Ke?F:je,children:Ke?"\u2716 "+e("editCancel"):"\u270F\uFE0F "+e("editCard")}),(0,r.jsxs)("button",{type:"button",className:"mc-btn",title:e("readWidth"),onClick:()=>{let W=["narrow","mid","wide"],ue=W[(W.indexOf(I)+1)%W.length];w(ue);try{localStorage.setItem("me-read-width",ue)}catch{}},children:[e("readWidth")," \xB7 ",e(I==="narrow"?"widthNarrow":I==="wide"?"widthWide":"widthMid")]}),(0,r.jsxs)("button",{type:"button",className:"mc-btn",onClick:()=>i&&i(!0),children:["\u{1F44D} ",e("fbUseful")]}),(0,r.jsxs)("button",{type:"button",className:"mc-btn",onClick:()=>i&&i(!1),children:["\u{1F44E} ",e("fbIrr")]}),ce&&(0,r.jsx)("button",{type:"button",className:"mc-btn","aria-expanded":pe,onClick:()=>ne(W=>!W),children:e(pe?"collapse":"expand")}),(0,r.jsx)("button",{type:"button",className:"mc-btn",style:{color:"#f87171"},onClick:()=>{window.confirm(e("deleteConfirm"))&&o&&o(t.path)},children:e("delete")}),m&&j==="approved"&&(A==="core"?(0,r.jsx)("button",{type:"button",className:"mc-btn",onClick:()=>m(t.path,"knowledge"),children:e("unsetCore")}):(0,r.jsxs)("button",{type:"button",className:"mc-btn",onClick:()=>m(t.path,"core"),children:["\u2B50 ",e("setCore")]})),(0,r.jsx)("button",{type:"button",className:"mc-btn",onClick:a,children:e("close")})]})]}),m&&(0,r.jsxs)("div",{className:"me-core-banner"+(A==="core"?" on":""),children:[(0,r.jsxs)("div",{className:"me-core-banner-k",children:["\u2B50 ",e("kindCore")]}),(0,r.jsx)("div",{className:"me-core-banner-desc",children:e(A==="core"?"coreActiveHint":"coreInactiveHint")}),j==="approved"?(0,r.jsx)("button",{type:"button",className:"mc-btn me-core-btn",onClick:()=>m(t.path,A==="core"?"knowledge":"core"),children:A==="core"?e("unsetCore"):"\u2B50 "+e("setCore")}):(0,r.jsx)("span",{className:"me-core-banner-desc",style:{flex:"none",opacity:.6},children:e("coreNeedApproval")})]}),(0,r.jsxs)("div",{className:"md-meta",children:[(0,r.jsxs)("span",{className:"md-chip md-chip-kind",style:{color:H,borderColor:H+"59",background:H+"1a"},children:[Ar[A]||"\u{1F4CE}"," ",e(Ct[A]||"kindKnowledge")]}),(0,r.jsxs)("span",{className:"md-chip "+(j==="approved"?"md-chip-st-ok":j==="pending"?"md-chip-st-warn":"md-chip-st-bad"),children:[j==="approved"?"\u2705":j==="pending"?"\u23F3":"\u26D4"," ",e(j==="approved"?"statusApproved":j==="pending"?"statusPending":"statusRejected")]}),(Array.isArray(P)?P:[]).slice(0,8).map(W=>(0,r.jsxs)("button",{type:"button",className:"md-chip md-chip-tag mc-tag-click",title:W,onClick:()=>s&&s(W),children:["\u{1F3F7} ",W]},W)),!!D("updated")&&(0,r.jsxs)("span",{className:"md-chip md-date",children:["\u{1F552} ",e("updated")," ",lr(D("updated"))]}),!!D("source")&&(0,r.jsxs)("span",{className:"md-chip md-date",children:["\u{1F4E5} ",D("source")]})]}),(0,r.jsx)("div",{className:"me-read-progress","aria-hidden":"true",children:(0,r.jsx)("i",{style:{width:g+"%"}})}),(0,r.jsxs)("div",{className:"me-reader-body",children:[(0,r.jsxs)("div",{className:"me-dialog-body me-reader-main",style:{maxWidth:f[I],margin:"0 auto",width:"100%",boxSizing:"border-box",...pe?{}:{maxHeight:300,overflow:"hidden"}},ref:Q,onScroll:fe,onClick:pe?void 0:W=>{W.stopPropagation(),ne(!0)},children:[!Ke&&!!he&&(0,r.jsxs)("div",{className:"me-reader-callout",children:[(0,r.jsx)("span",{className:"me-reader-callout-k",children:e(Zf(t))}),(0,r.jsx)("p",{children:he})]}),Ke?(0,r.jsxs)("div",{className:"me-edit-form",style:{display:"flex",flexDirection:"column",gap:8,padding:"2px 0 14px"},children:[(0,r.jsx)("div",{style:{fontSize:11.5,opacity:.62,lineHeight:1.6},children:e("editHint")}),(0,r.jsx)("label",{style:{fontSize:12,fontWeight:600,opacity:.8},htmlFor:"me-edit-title",children:e("editTitle")}),(0,r.jsx)("input",{id:"me-edit-title",value:ae,onChange:W=>V(W.target.value),maxLength:200,style:{width:"100%",padding:"8px 10px",borderRadius:10,border:"1px solid var(--dsw-alias-border-l2, #d1d5db)",background:"transparent",color:"inherit",font:"inherit",fontSize:13,boxSizing:"border-box"}}),(0,r.jsx)("label",{style:{fontSize:12,fontWeight:600,opacity:.8},htmlFor:"me-edit-tags",children:e("editTags")}),(0,r.jsx)("input",{id:"me-edit-tags",value:$,onChange:W=>z(W.target.value),placeholder:e("editTagsHint"),style:{width:"100%",padding:"8px 10px",borderRadius:10,border:"1px solid var(--dsw-alias-border-l2, #d1d5db)",background:"transparent",color:"inherit",font:"inherit",fontSize:13,boxSizing:"border-box"}}),(0,r.jsx)("label",{style:{fontSize:12,fontWeight:600,opacity:.8},htmlFor:"me-edit-body",children:e("editBody")}),(0,r.jsx)("textarea",{id:"me-edit-body",value:q,onChange:W=>ge(W.target.value),spellCheck:!1,rows:18,style:{width:"100%",padding:"8px 10px",borderRadius:10,border:"1px solid var(--dsw-alias-border-l2, #d1d5db)",background:"transparent",color:"inherit",font:"inherit",fontSize:13,boxSizing:"border-box",resize:"vertical",minHeight:260,lineHeight:1.7,fontFamily:"ui-monospace, SFMono-Regular, Menlo, monospace"}}),te&&(0,r.jsx)("div",{style:{color:"#f87171",fontSize:12},children:te}),(0,r.jsxs)("div",{style:{display:"flex",gap:8,justifyContent:"flex-end",alignItems:"center"},children:[(0,r.jsx)("span",{style:{marginRight:"auto",fontSize:11.5,opacity:.55},children:t.path}),(0,r.jsx)("button",{type:"button",className:"mc-btn",onClick:F,disabled:Le,children:e("editCancel")}),(0,r.jsx)("button",{type:"button",className:"mc-btn",onClick:et,disabled:Le,style:{borderColor:"var(--dsw-alias-brand-primary, #3b82f6)",color:"var(--dsw-alias-brand-primary, #3b82f6)",fontWeight:600},children:e(Le?"editSaving":"editSave")})]})]}):(0,r.jsx)("div",{className:"md-doc",dangerouslySetInnerHTML:{__html:Io(ve)}})]}),(0,r.jsxs)("aside",{className:"me-reader-side",children:[De.length>0&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"side-label",children:e("contents")}),(0,r.jsx)("div",{className:"me-reader-toc",children:De.map((W,ue)=>(0,r.jsxs)("button",{type:"button",className:`lv${W.level}${K===W.id?" active":""}`,onClick:()=>we(W.id),children:[(0,r.jsx)("span",{children:String(ue+1).padStart(2,"0")}),W.text]},W.id))})]}),(0,r.jsx)("div",{className:"side-label",children:e("source")}),(0,r.jsx)("div",{className:"me-reader-side-val",children:D("source")||t.submittedBy||"\u2014"}),(0,r.jsx)("div",{className:"side-label",children:e("updated")}),(0,r.jsx)("div",{className:"me-reader-side-val",children:lr(D("updated")||t.updated)}),(0,r.jsx)("div",{className:"side-label",children:e("file")}),(0,r.jsx)("div",{className:"me-reader-side-val mono",children:t.path}),P.length>0&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"side-label",children:e("tags")}),(0,r.jsx)("div",{className:"me-reader-tags",children:P.slice(0,8).map(W=>(0,r.jsxs)("button",{type:"button",className:"mc-chip",onClick:()=>s&&s(W),children:["#",W]},W))})]}),G.length>0&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"side-label",children:e("related")}),(0,r.jsx)("div",{className:"me-reader-related",children:G.map(W=>(0,r.jsxs)("button",{type:"button",onClick:()=>u&&u(W),children:[(0,r.jsx)("span",{children:Ar[W.kind]||"\u{1F4CE}"}),(0,r.jsx)("b",{children:W.title})]},W.path))})]})]})]}),!pe&&(0,r.jsxs)("div",{className:"md-collapsed-hint",onClick:W=>{W.stopPropagation(),ne(!0)},children:[e("expand")," \u2304"]})]})]})}function F0({t:e,onOpen:t,all:n,onAllChange:a,onMutate:o,active:i,visible:l}){let[s,c]=(0,p.useState)([]),[u,m]=(0,p.useState)(null),[h,g]=(0,p.useState)(null),[k,E]=(0,p.useState)(!1),T=!0,[I,w]=(0,p.useState)(null),[f,y]=(0,p.useState)(!1),[L,O]=(0,p.useState)(!1),[D,P]=(0,p.useState)(null),A=(0,p.useRef)(0),j=(0,p.useRef)(null);j.current||(j.current=Pf(96));let H=(0,p.useRef)(0),ce=(0,p.useRef)(0),ve=(0,p.useRef)(s);ve.current=s;let he=(0,p.useRef)(n),De=(0,p.useRef)({requests:0,cacheHits:0,errors:0,timeouts:0,lastMs:0,lastBytes:0}),G=(0,p.useCallback)(async(le,te={})=>{let v=Array.isArray(le)?le.filter(Boolean):[],Q=(n?"all|":"")+ea(v);if(!te.force){let fe=j.current.get(Q);if(fe)return De.current.cacheHits+=1,m(fe),c(v),g(null),E(!1),fe}let K=++H.current;E(!0),g(null);let me=new AbortController,Ee=setTimeout(()=>{try{me.abort()}catch{}},1600),we=performance.now();De.current.requests+=1;try{let fe=await fetch(Ef(Z,v,{all:n}),{signal:me.signal}),W=await fe.json().catch(()=>null);if(K!==H.current)return null;if(!fe.ok||!W||!W.ok)throw new Error(W&&W.error||"HTTP "+fe.status);let ue=Ff(W);if(!ue.ok)try{console.warn("[memory-eternal] \u5206\u5C42\u54CD\u5E94\u8D8A\u754C\uFF1A"+ue.problems.join("\uFF1B"))}catch{}return j.current.set(Q,W),De.current.lastMs=Math.round(performance.now()-we),De.current.lastBytes=ue.bytes,ce.current||(ce.current=Math.round(performance.now())),m(W),c(v),g(null),W}catch(fe){if(K!==H.current)return null;let W=Df(fe,{timeoutMs:1600,elapsedMs:performance.now()-we});W.timeout&&(De.current.timeouts+=1),De.current.errors+=1;try{console.warn("[memory-eternal] \u5C42\u7EA7\u52A0\u8F7D\u5931\u8D25 @ "+Q+"\uFF1A"+W.message)}catch{}return g({...W,target:ea(v),segments:v.slice()}),null}finally{clearTimeout(Ee),K===H.current&&E(!1)}},[n]);(0,p.useEffect)(()=>{he.current!==n&&(he.current=n,j.current.clear(),i&&G([],{force:!0}))},[n,i,G]),(0,p.useEffect)(()=>{!i||u||k||G([])},[i,u,k,G]),(0,p.useEffect)(()=>{l&&u&&A.current++},[l,u]);let je=(0,p.useCallback)(le=>{let te=Array.isArray(le)?le:Mf(le&&le.path!==void 0?le.path:le);ea(te)!==ea(ve.current)&&G(te)},[G]),F=(0,p.useCallback)(le=>{le&&G(ve.current.concat(String(le)))},[G]),et=(0,p.useCallback)(()=>{j.current.clear();let le=h&&Array.isArray(h.segments)?h.segments:ve.current;G(le,{force:!0})},[G,h]),pe=(0,p.useCallback)(async()=>(j.current.clear(),G(ve.current,{force:!0})),[G]),ne=(0,p.useCallback)(async()=>{O(!0),P(null);try{let le=await fetch(`${Z}/graph?${n?"all=1&":""}limit=${f?0:800}`),te=await le.json().catch(()=>null);if(!le.ok||!te||!te.ok)throw new Error(te&&te.error||"HTTP "+le.status);let v=Array.isArray(te.nodes)?te.nodes:[],Q=Array.isArray(te.edges)?te.edges:[],K=typeof te.shown=="number",me=new Map;for(let de of Q)me.set(de.source,(me.get(de.source)||0)+1),me.set(de.target,(me.get(de.target)||0)+1);let we=f||K?v:v.slice().sort((de,be)=>(me.get(be.id)||0)-(me.get(de.id)||0)).slice(0,800),fe=new Set(we.map(de=>de.id)),W=we.map(de=>({id:de.id,label:de.label||de.title||de.id,kind:de.kind||"other",tags:Array.isArray(de.tags)?de.tags:[],updated:de.updated||de.updated_at||"",count:0,type:"card"})),ue=f?Q:Q.filter(de=>fe.has(de.source)&&fe.has(de.target));w({id:"flat",mode:"flat",total:Number(te.total)||v.length,shown:Number(te.shown)||W.length,items:W,edges:ue})}catch(le){P({message:String(le&&le.message||le)})}finally{O(!1)}},[n,f]);(0,p.useEffect)(()=>{ne()},[ne]);let Ke=(0,p.useCallback)(async le=>{try{let v=await(await fetch(`${Z}/delete?path=${encodeURIComponent(le)}`)).json();return v&&v.ok?(await pe(),o&&o(),!0):!1}catch{return!1}},[pe,o]),Be=(0,p.useCallback)(async le=>{if(!le||le.length<2)return!1;try{let te=await fetch(`${Z}/merge?paths=${encodeURIComponent(le.join(","))}`).then(v=>v.json());return te&&te.ok?(await pe(),o&&o(),!0):!1}catch{return!1}},[pe,o]);(0,p.useEffect)(()=>{let le=()=>{let te=typeof globalThis.__meGraphRuntime=="function"?globalThis.__meGraphRuntime():null;return{path:ea(ve.current),crumbs:u&&Array.isArray(u.crumbs)?u.crumbs.map(v=>({path:v.path,label:v.label,labelKey:v.labelKey,count:v.count})):[],level:u&&u.level?{mode:u.level.mode,total:u.level.total,items:u.level.items.length,edges:u.level.edges.length}:null,loading:!!k,error:h?{timeout:!!h.timeout,message:h.message,target:h.target||""}:null,requests:De.current.requests,cacheHits:De.current.cacheHits,errors:De.current.errors,timeouts:De.current.timeouts,lastMs:De.current.lastMs,lastBytes:De.current.lastBytes,firstLevelMs:ce.current,cacheSize:j.current.size,timeoutMs:1600,runtime:te}};return globalThis.__meGraphProbe=le,()=>{if(globalThis.__meGraphProbe===le)try{delete globalThis.__meGraphProbe}catch{globalThis.__meGraphProbe=void 0}}},[u,k,h]);let ae=T?I:u&&u.level?u.level:null,V=ae?ae.items.length:0,$=ae?ae.total:0,z=ae?ae.edges.length:0,q=T?L:!u&&!h,ge=T?D:!u&&h,Le=T?D:u?h:null;return(0,r.jsxs)("div",{className:"me-graph me-v5-graph",children:[(0,r.jsx)("style",{children:kn}),(0,r.jsxs)("div",{className:"mc-v5-pagehead mc-v5-graphhead",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{className:"mc-v5-eyebrow",children:"KNOWLEDGE GRAPH"}),(0,r.jsx)("h1",{children:e("graphTab")}),(0,r.jsx)("p",{children:e("graphHint")})]}),(0,r.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8},children:[(0,r.jsx)("button",{type:"button",className:"mc-btn",onClick:()=>y(le=>!le),children:e(f?"graphFlatOnly":"graphFlatAll")}),(0,r.jsx)("span",{className:"mc-v5-pagecount",children:(T?I:u)?`${V} ${e("graphItems")} \xB7 ${$} ${e("graphCardsUnit")} \xB7 ${z} ${e("edges")}`:""})]})]}),q&&(0,r.jsx)(tg,{text:e("loadingGraph")}),ge&&(0,r.jsxs)("div",{className:"mc-empty",style:{display:"flex",flexDirection:"column",gap:10,alignItems:"center"},children:[(0,r.jsxs)("span",{children:[Le&&Le.timeout?e("graphLevelTimeout").replace("{ms}",String(1600)):e("graphLevelError"),"\uFF1A",Le&&Le.message]}),(0,r.jsx)("button",{type:"button",className:"mc-btn",onClick:T?ne:et,children:e("graphRetry")})]}),(T?I:u)&&V===0&&(0,r.jsx)("div",{className:"mc-empty",children:e("graphEmptyLevel")}),ae&&V>0&&(0,r.jsx)(_0,{level:ae,crumbs:T?[]:u&&u.crumbs?u.crumbs:[],onOpen:t,onDelete:Ke,onMerge:Be,onDrill:T?()=>{}:F,onNavigate:je,onRetry:T?ne:et,error:Le,loading:T?L:k,t:e,all:n,onAllChange:a,fitTrigger:A.current})]})}var xn={colors:{core:"#FF7A45",skill:"#A78BFA",project:"#60A5FA",knowledge:"#34D399",content:"#FBBF24",prompt:"#C084FC",business:"#F472B6",tool:"#22B8CF",mistake:"#FB7185",other:"#8CA0B3"},deep:{core:"#E8590C",skill:"#7C3AED",project:"#2563EB",knowledge:"#059669",content:"#D97706",prompt:"#9333EA",business:"#DB2777",tool:"#0891B2",mistake:"#E11D48",other:"#64748B"},shapes:{core:"diamond",skill:"hexagon",project:"circle",knowledge:"circle",content:"rect",prompt:"diamond",business:"hexagon",tool:"circle",mistake:"diamond",other:"circle"}};function Dr(e,t){try{let n=globalThis;if(n.__meGraphDrawWarned)return;n.__meGraphDrawWarned=!0,console.warn("[memory-eternal] \u77E5\u8BC6\u56FE\u8C31\u7ED8\u5236\u5F02\u5E38\uFF08\u5DF2\u515C\u5E95\uFF0C\u4E0D\u518D\u6574\u9875\u767D\u5C4F\uFF09"+(t?" @ "+t:""),e)}catch{}}function Sl({value:e,small:t}){let n=typeof e=="number"&&Number.isFinite(e),a=n?Math.max(0,Math.min(100,e)):0;return(0,r.jsx)("div",{className:"me-progress"+(t?" me-progress-sm":"")+(n?" is-determinate":""),role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":n?Math.round(a):void 0,"aria-label":"\u52A0\u8F7D\u8FDB\u5EA6",children:(0,r.jsx)("span",{className:"me-progress-fill",style:n?{width:Math.max(3,a)+"%"}:void 0})})}function tg({text:e,value:t}){return(0,r.jsxs)("div",{className:"me-loading",role:"status","aria-live":"polite",children:[(0,r.jsx)(Sl,{value:t}),(0,r.jsx)("span",{className:"me-loading-text",children:e})]})}var Vf=[];function I0({crumbs:e,t,onPick:n,busy:a}){let o=Array.isArray(e)&&e.length?e:[{path:"",labelKey:"graphAllCrumb",label:"\u5168\u90E8"}];return(0,r.jsx)("nav",{className:"me-graph-crumbs","aria-label":t("graphBreadcrumbAria"),"data-level-depth":o.length,children:o.map((i,l)=>{let s=i.labelKey?t(i.labelKey):"",c=s&&s!==i.labelKey?s:i.label||i.path||"\u2014",u=l===o.length-1;return(0,r.jsxs)("span",{style:{display:"inline-flex",alignItems:"center",gap:2},children:[l>0&&(0,r.jsx)("span",{className:"sep","aria-hidden":"true",children:"\u203A"}),(0,r.jsx)("button",{type:"button",className:(l===0?"home":"")+(u?" current":""),"aria-current":u?"page":void 0,title:c,disabled:u||a,onClick:()=>{u||n(i)},children:c})]},i.path||"root")})})}function _0({level:e,crumbs:t,onOpen:n,onDelete:a,onMerge:o,onDrill:i,onNavigate:l,onRetry:s,error:c,loading:u,t:m,all:h,onAllChange:g,fitTrigger:k}){let E=(0,p.useRef)(null),T=(0,p.useRef)(null),I=(0,p.useRef)(null),w=(0,p.useRef)(null),f=(0,p.useRef)(null),y=e&&Array.isArray(e.items)?e.items:Vf,L=e&&Array.isArray(e.edges)?e.edges:Vf,O=e&&e.id||"",D=(0,p.useMemo)(()=>y.map(C=>({id:C.id,title:C.label||C.id,name:C.label||C.id,kind:C.kind||"other",tags:Array.isArray(C.tags)?C.tags:[],updated:C.updated||"",count:Number(C.count)||0,type:C.type||"card"})),[y]),P=(0,p.useMemo)(()=>L.map(C=>({source:C.source,target:C.target,type:C.type||"tag",weight:Number(C.weight)||1})),[L]),A=(0,p.useRef)(m);A.current=m;let j=(0,p.useRef)(n);(0,p.useEffect)(()=>{j.current=n},[n]);let H=(0,p.useRef)(a);(0,p.useEffect)(()=>{H.current=a},[a]);let ce=(0,p.useRef)(o);(0,p.useEffect)(()=>{ce.current=o},[o]);let ve=(0,p.useRef)(i);(0,p.useEffect)(()=>{ve.current=i},[i]);let[he,De]=(0,p.useState)(""),[G,je]=(0,p.useState)(null),[F,et]=(0,p.useState)(null),pe=(0,p.useRef)("");(0,p.useEffect)(()=>{pe.current=he.trim().toLowerCase()},[he]),(0,p.useEffect)(()=>{let C=I.current;if(!C)return;let x=he.trim().toLowerCase();if(!x)return;let ye=C.nodes.find(Pe=>(Pe.name||"").toLowerCase().includes(x));if(ye){I.current.selectedId=ye.id,je(ye.id),C.panX=C.w/2-ye.x*C.zoom,C.panY=C.h/2-ye.y*C.zoom;try{C.render&&C.render()}catch(Pe){Dr(Pe,"search-center")}}},[he]);let[ne,Ke]=(0,p.useState)("all"),[Be,ae]=(0,p.useState)(!1),V=(0,p.useRef)("all"),[$,z]=(0,p.useState)(""),q=(0,p.useRef)(""),[ge,Le]=(0,p.useState)(!1),le=(0,p.useRef)(!1),[te,v]=(0,p.useState)(null);(0,p.useEffect)(()=>{V.current=ne},[ne]),(0,p.useEffect)(()=>{q.current=$},[$]),(0,p.useEffect)(()=>{le.current=ge},[ge]);let Q=(0,p.useMemo)(()=>{let C=new Map;for(let x of D)for(let ye of x.tags||[]){let Pe=String(ye).trim();Pe&&C.set(Pe,(C.get(Pe)||0)+1)}return[...C.entries()].sort((x,ye)=>ye[1]-x[1]).slice(0,24).map(([x,ye])=>({tag:x,n:ye}))},[D]),K=(0,p.useMemo)(()=>{let C={};for(let x of D)C[x.kind||"other"]=(C[x.kind||"other"]||0)+(x.type==="planet"?Math.max(1,x.count||0):1);return C},[D]),me=(()=>{let C=he.trim().toLowerCase();return!!C&&!D.some(x=>(x.title||x.name||"").toLowerCase().includes(C)||String(x.kind||"").toLowerCase().includes(C)||String(Ct[x.kind]||"").toLowerCase().includes(C))})();(0,p.useEffect)(()=>{let C=I.current;C&&C.requestRender&&C.requestRender()},[he]),(0,p.useEffect)(()=>{let C=I.current;if(!(!C||!C.render))try{C.render()}catch(x){Dr(x,"filter/timeDim")}},[ne,$,ge]);let Ee=(0,p.useRef)(null),[we,fe]=(0,p.useState)([]),[W,ue]=(0,p.useState)(null),[de,be]=(0,p.useState)(!1),[Nt,Yt]=(0,p.useState)(null),[qe,jt]=(0,p.useState)(""),gt=(0,p.useRef)(null),Qt=(0,p.useRef)(null),Ye=(C,x=!0)=>{gt.current&&clearTimeout(gt.current),Yt({msg:C,ok:x}),gt.current=setTimeout(()=>Yt(null),1900)},qn=C=>{jt(C),Qt.current&&clearTimeout(Qt.current),Qt.current=setTimeout(()=>jt(""),1600)};(0,p.useEffect)(()=>()=>{gt.current&&clearTimeout(gt.current),Qt.current&&clearTimeout(Qt.current)},[]);let Ne=(0,p.useMemo)(()=>D.reduce((C,x)=>(C[x.id]=x,C),{}),[D]);return(0,p.useEffect)(()=>{let C=E.current;if(!C||D.length===0)return;let x=C.getContext("2d");if(!x)return;let ye=Math.min(1.5,Math.max(1,window.devicePixelRatio||1)),Pe={};P.forEach(M=>{Pe[M.source]=(Pe[M.source]||0)+1,Pe[M.target]=(Pe[M.target]||0)+1});let S=Math.max(1,...Object.values(Pe)),R=Af(),Ae=y.some(M=>M&&M.type==="planet"),d={nodes:y.filter(M=>M&&M.type!=="planet").concat(y.filter(M=>M&&M.type==="planet")).map(M=>Rf(M,{degree:Pe[M.id]||0,maxDegree:S})),edges:P.map(M=>({sourceNodeId:M.source,targetNodeId:M.target,weight:Math.max(1,Number(M.weight)||1)})),panX:0,panY:0,zoom:1,running:!0,raf:0,tickCount:0,quietTicks:0,dragNode:null,selectedId:null,mouseX:0,mouseY:0,w:0,h:0,dpr:ye,ctx:x,multi:[],marquee:null,planetLayer:Ae,levelId:O};d.domain=D,d.domainById=D.reduce((M,U)=>(M[U.id]=U,M),{}),d.nodeById=new Map(d.nodes.map(M=>[M.id,M])),d.edgePairs=(()=>{let M=new Map(d.nodes.map((B,ee)=>[B.id,ee])),U=new Int32Array(d.edges.length*2),J=0;for(let B of d.edges){let ee=M.get(B.sourceNodeId),xe=M.get(B.targetNodeId);ee===void 0||xe===void 0||(U[J]=ee,U[J+1]=xe,J+=2)}return U.subarray(0,J)})(),d.alpha=1,d.forceParams=Ae?Lf(vl(d.nodes.length)):vl(d.nodes.length),d.lastTickMs=0,d.lastRenderMs=0,d.nodes.forEach((M,U)=>{let J=U*2.399963229728653,B=12*Math.sqrt(U);M.x=Math.cos(J)*B,M.y=Math.sin(J)*B});let Bt=[...new Set(d.nodes.map(M=>M.type))];d.clustered=!Ae&&Bt.length>1,d.typeCenters=d.typeCenters||{};let Xt=Ae?0:160;Bt.forEach((M,U)=>{if(d.typeCenters[M])return;let J=U/Bt.length*Math.PI*2-Math.PI/2;d.typeCenters[M]={x:Math.cos(J)*Xt,y:Math.sin(J)*Xt}}),I.current=d;let Ht=0,Sn=0,Cn=null,Fr="",Ir=()=>{let M=C.clientWidth,U=C.clientHeight;d.w=M,d.h=U,C.width=M*ye,C.height=U*ye,x.setTransform(ye,0,0,ye,0,0),(Ht===0||Sn===0)&&M>0&&U>0&&d.tickCount>0&&R.raf(()=>Nn()),Ht=M,Sn=U};Ir();let b=new ResizeObserver(Ir);b.observe(C.parentElement);let re=(M,U)=>M&&M.length>U?M.slice(0,U)+"\u2026":M,oe=(M,U,J,B)=>{if(x.beginPath(),B==="rect")x.rect(M-J,U-J*.75,J*2,J*1.5);else if(B==="diamond")x.moveTo(M,U-J),x.lineTo(M+J,U),x.lineTo(M,U+J),x.lineTo(M-J,U),x.closePath();else if(B==="hexagon"){for(let ee=0;ee<6;ee++){let xe=Math.PI/3*ee-Math.PI/2,Re=M+J*Math.cos(xe),Ie=U+J*Math.sin(xe);ee===0?x.moveTo(Re,Ie):x.lineTo(Re,Ie)}x.closePath()}else x.arc(M,U,J,0,Math.PI*2)},Ue=new Map,_e=(M,U)=>{let J=M+"|"+Math.round(U),B=Ue.get(J);return B||(B=x.createRadialGradient(-U*.32,-U*.38,0,0,0,U*1.15),B.addColorStop(0,$e(M,"#ffffff",.2)),B.addColorStop(.62,M),B.addColorStop(1,$e(M,"#000000",.22)),Ue.set(J,B)),B},ze=(M,U)=>{let J=parseInt(M.slice(1,3),16),B=parseInt(M.slice(3,5),16),ee=parseInt(M.slice(5,7),16);return"rgba("+J+","+B+","+ee+","+U+")"},$e=(M,U,J)=>{let B=Ie=>[parseInt(Ie.slice(1,3),16),parseInt(Ie.slice(3,5),16),parseInt(Ie.slice(5,7),16)],ee=B(M),xe=B(U),Re=Math.max(0,Math.min(1,Number(J)||0));return"rgb("+ee.map((Ie,Qe)=>Math.round(Ie+(xe[Qe]-Ie)*Re)).join(",")+")"},Jt=new Map,an=new Map,_r=(M,U,J,B)=>{let ee=Qe=>[parseInt(Qe.slice(1,3),16),parseInt(Qe.slice(3,5),16),parseInt(Qe.slice(5,7),16)],xe=ee(M),Re=ee(U),Ie=Math.max(0,Math.min(1,Number(J)||0));return"rgba("+xe.map((Qe,Xe)=>Math.round(Qe+(Re[Xe]-Qe)*Ie)).join(",")+","+B+")"},na=1.1,Wo=.3,Tt=3,Nn=()=>{if(!d.nodes.length)return;let M=1/0,U=-1/0,J=1/0,B=-1/0;d.nodes.forEach(ot=>{let xt=Number(ot.r)||0,tt=ot.planet?xt*1.32:xt;ot.x-tt<M&&(M=ot.x-tt),ot.x+tt>U&&(U=ot.x+tt),ot.y-tt<J&&(J=ot.y-tt),ot.y+tt>B&&(B=ot.y+tt)});let ee=28,xe=U-M+ee*2,Re=B-J+ee*2,Ie=Math.min(d.w/xe,d.h/Re),Qe=Math.pow(1/na,Tt);d.zoom=Math.max(.35,Math.min(1.8,Ie*Qe));let Xe=!(Array.isArray(t)&&t.length>1);d.planetLayer&&Xe?d.zoom=Math.max(.12,Math.min(Wo,Ie)):d.planetLayer&&(d.zoom=Math.max(.12,Ie*Math.pow(1/na,Tt-2))),d.panX=d.w/2-(M+U)/2*d.zoom,d.panY=d.h/2-(J+B)/2*d.zoom};w.current=Nn;let In=()=>{d.renderFrames=(d.renderFrames|0)+1;let M=d.zoom>=1.2?"in":"out";T.current&&T.current.dataset.zoom!==M&&(T.current.dataset.zoom=M),x.clearRect(0,0,d.w,d.h),d.searchTerm=pe.current,d.kindFilter=V.current,d.timeMode=le.current,d.tagFilter=q.current;let U=d.tagFilter,J=d.kindFilter,B=_=>String(_||"").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;");x.save();let ee=d.w+"x"+d.h;if(!Cn||Fr!==ee){Cn=new Path2D;let _=26;for(let Me=_/2;Me<d.w;Me+=_)for(let Oe=_/2;Oe<d.h;Oe+=_)Cn.moveTo(Me+1,Oe),Cn.arc(Me,Oe,1,0,Math.PI*2);Fr=ee}x.fillStyle="rgba(255,255,255,0.055)",x.fill(Cn),x.restore(),x.save(),x.translate(d.panX,d.panY),x.scale(d.zoom,d.zoom);let xe={};d.nodes.forEach(_=>xe[_.id]=_);let Re=performance.now()<(d.motionUntil||0),Ie=d.nodes.length>40,Qe=Ie?1.5:.55,Xe=d.selectedId||d.hoverId,ot=kf({panX:d.panX,panY:d.panY,zoom:d.zoom,w:d.w,h:d.h,margin:80}),xt=(()=>{let _=(d.searchTerm||"").toLowerCase();if(!_)return null;let Me=[];for(let Oe of d.nodes){let He=(d.domainById[Oe.id]||{}).kind||"other";if(((Oe.name||"").toLowerCase().includes(_)||String(Ct[He]||"").toLowerCase().includes(_)||String(He).toLowerCase().includes(_))&&Me.push(Oe.id),Me.length>200)break}return Me})(),tt=d.quality|0;(!d.labelOrder||d.labelOrder.src!==d.nodes)&&(d.labelOrder={src:d.nodes,ids:d.nodes.slice().sort((_,Me)=>(Number(Pe[Me.id])||0)-(Number(Pe[_.id])||0)).map(_=>_.id)});let On=Cf(d.nodes,{limit:Sf(d.nodes.length,tt),focusId:Xe,hoverId:d.hoverId,searchHits:xt,degree:Pe,order:d.labelOrder.ids}),cr=d.zoom<=Qe?new Set((d.labelOrder&&d.labelOrder.ids?d.labelOrder.ids:[]).slice(0,12)):null,mn=new Map,Uo=(_,Me)=>{let Oe=_+"|"+Me,Se=mn.get(Oe);return Se===void 0&&(x.font=_,Se=x.measureText(Me).width,mn.set(Oe,Se)),Se},$o=d.nodes.length<=250,Rl=new Map,sg=d.nodes.length>1200&&d.zoom<.3,kd=d.zoom>=.6,Ll=tt>=3,Sd=tt<=0?1:tt===1?2:tt===2?4:8;d.edges.forEach((_,Me)=>{if(sg)return;let Oe=Xe&&(_.sourceNodeId===Xe||_.targetNodeId===Xe);if(Xe){if(!Oe)return}else if(Sd>1&&Me%Sd!==0)return;let Se=xe[_.sourceNodeId],He=xe[_.targetNodeId];if(!Se||!He||!yl(Se.x,Se.y,10,ot)&&!yl(He.x,He.y,10,ot))return;if(J!=="all"){let Dl=d.domainById[_.sourceNodeId]&&d.domainById[_.sourceNodeId].kind,Pl=d.domainById[_.targetNodeId]&&d.domainById[_.targetNodeId].kind;if(Dl!==J&&Pl!==J)return}if(U){let Dl=d.domainById[_.sourceNodeId]&&(d.domainById[_.sourceNodeId].tags||[]).includes(U),Pl=d.domainById[_.targetNodeId]&&(d.domainById[_.targetNodeId].tags||[]).includes(U);if(!Dl&&!Pl)return}let vt=He.x-Se.x,it=He.y-Se.y,mt=Math.sqrt(vt*vt+it*it)||1,Ut=Re||kd||tt>=2?0:Ie?10:16,Dt=-it/mt*Ut,Et=vt/mt*Ut,Or=(Se.x+He.x)/2+Dt,jn=(Se.y+He.y)/2+Et,Bn=xn.colors[d.domainById[Se.id]&&d.domainById[Se.id].kind||"other"]||xn.colors.other,aa=Xe?Oe?.72:.06:d.planetLayer?.22:Ie?.16:.2,Td=parseInt(Bn.slice(1,3),16),Md=parseInt(Bn.slice(3,5),16),Ed=parseInt(Bn.slice(5,7),16),zd=Math.max(1,Number(_.weight)||1),ug=Oe?1.6+Math.min(3.2,zd*.8):.7+Math.min(2.4,(zd-1)*.35),Rd=Math.min(kd||tt>=1?1.2:1/0,Math.round(ug*2)/2),Ld=Td+","+Md+","+Ed+","+aa+","+Rd,Ha=Rl.get(Ld);Ha||(Ha={path:new Path2D,stroke:"rgba("+Td+","+Md+","+Ed+","+aa+")",width:Rd},Rl.set(Ld,Ha)),Ha.path.moveTo(Se.x,Se.y),Ha.path.quadraticCurveTo(Or,jn,He.x,He.y)}),Rl.forEach(_=>{x.strokeStyle=_.stroke,x.lineWidth=_.width,x.stroke(_.path)});let Ba=null;Xe&&(Ba=new Set,d.edges.forEach(_=>{_.sourceNodeId===Xe?Ba.add(_.targetNodeId):_.targetNodeId===Xe&&Ba.add(_.sourceNodeId)}));let cg=(_,Me={})=>{let Oe=re(_.name,Me.maxChars||16),Se=1/d.zoom,He="500 "+(11.5*Se).toFixed(1)+"px -apple-system,Segoe UI,sans-serif";x.font=He;let it=Uo(He,Oe)+14*Se,mt=17*Se,Ut=_.y+_.r+(Me.gap===void 0?8:Me.gap)*Se,Dt=!0;for(let Et of Cd)if(_.x-it/2<Et.x+Et.w&&_.x+it/2>Et.x&&Ut<Et.y+Et.h&&Ut+mt>Et.y){Dt=!1;break}return!Dt&&!Me.force?!1:(Cd.push({x:_.x-it/2,y:Ut,w:it,h:mt}),x.fillStyle="rgba(20,24,30,0.78)",x.beginPath(),x.roundRect?x.roundRect(_.x-it/2,Ut,it,mt,4*Se):x.rect(_.x-it/2,Ut,it,mt),x.fill(),x.strokeStyle="rgba(255,255,255,0.07)",x.lineWidth=1*Se,x.stroke(),x.fillStyle=Me.strong?"#f2f5f8":"#aeb6c2",x.textAlign="center",x.textBaseline="top",x.fillText(Oe,_.x,Ut+4.6*Se),!0)},dg=(_,Me,Oe)=>{let Se=1/d.zoom,{isSel:He,isHov:vt,dimmed:it}=Oe,mt=_.r*d.zoom;x.save(),x.globalAlpha=it?.16:1;let Ut="g|"+Me+"|"+Math.round(_.r),Dt=Jt.get(Ut);Dt||(Dt=x.createRadialGradient(0,0,_.r*.8,0,0,_.r*1.24),Dt.addColorStop(0,ze(Me,.18)),Dt.addColorStop(.58,ze(Me,.06)),Dt.addColorStop(1,ze(Me,0)),Jt.set(Ut,Dt)),x.save(),x.translate(_.x,_.y),!Ll&&(d.quality|0)<2&&(x.fillStyle=Dt,x.beginPath(),x.arc(0,0,_.r*1.24,0,Math.PI*2),x.fill());let Et=d.timeMode?Me:xn.deep[_.type]||Me,Or="b|"+Et+"|"+Math.round(_.r),jn=an.get(Or);if(jn||(jn=x.createRadialGradient(-_.r*.26,-_.r*.32,_.r*.12,0,0,_.r*1.1),jn.addColorStop(0,_r(Et,"#ffffff",.24,.9)),jn.addColorStop(.58,ze(Et,.86)),jn.addColorStop(1,_r(Et,"#000000",.34,.9)),an.set(Or,jn)),x.beginPath(),x.arc(0,0,_.r,0,Math.PI*2),x.fillStyle="rgba(13,16,21,0.92)",x.fill(),x.beginPath(),x.arc(0,0,_.r,0,Math.PI*2),x.fillStyle=jn,x.fill(),x.beginPath(),x.arc(0,0,_.r-Math.max(.6,1.1*Se),Math.PI*1.06,Math.PI*1.94),x.strokeStyle="rgba(255,255,255,0.14)",x.lineWidth=Math.max(.7,1.2*Se),x.stroke(),x.beginPath(),x.arc(0,0,_.r,0,Math.PI*2),x.strokeStyle=ze(Me,He||vt?.95:.58),x.lineWidth=Math.max(.8,1.1*Se),x.stroke(),x.restore(),(He||vt)&&(x.save(),x.beginPath(),x.arc(_.x,_.y,_.r+(He?7:5)*Se,0,Math.PI*2),x.strokeStyle=He?"rgba(255,122,69,0.9)":ze(Me,.7),x.lineWidth=Math.max(1,1.2*Se),He&&x.setLineDash([5*Se,4*Se]),x.stroke(),x.restore()),x.restore(),He||vt||mt>=11){let Bn=Math.max(9,Math.min(21,mt*.42))*Se,aa=mt>=30;x.save(),x.textAlign="center",x.textBaseline="middle",x.shadowColor="rgba(0,0,0,0.5)",x.shadowBlur=(d.quality|0)>=2?0:5*Se,aa&&(x.font="600 "+(Bn*.48).toFixed(1)+"px -apple-system,Segoe UI,sans-serif",x.fillStyle="rgba(255,255,255,0.72)",x.fillText(re(_.name,12),_.x,_.y-Bn*1.02)),x.font="700 "+Bn.toFixed(1)+"px -apple-system,Segoe UI,sans-serif",x.fillStyle="rgba(255,255,255,0.96)",x.fillText(zf(_.count,{unit:A.current("graphCountWan"),locale:A.current("graphCountLocale")}),_.x,_.y+(aa?Bn*.06:0)),aa&&(x.font="500 "+(Bn*.38).toFixed(1)+"px -apple-system,Segoe UI,sans-serif",x.fillStyle="rgba(255,255,255,0.5)",x.fillText(A.current("graphCardsUnit"),_.x,_.y+Bn*.92)),x.restore()}},Cd=[],Nd=[];if(d.nodes.forEach(_=>{if(!yl(_.x,_.y,_.r+2,ot))return;let Me=d.domainById[_.id]||{},Oe=Me.kind||"other",Se=d.timeMode&&Me.updated?O0(Me.updated):xn.colors[Oe]||xn.colors.other,He=xn.shapes[Oe]||"circle",vt=d.selectedId===_.id,it=d.hoverId===_.id,mt=d.searchTerm||"",Ut=!mt||(_.name||"").toLowerCase().includes(mt)||String(Ct[Oe]||"").toLowerCase().includes(mt)||String(Oe).toLowerCase().includes(mt),Dt=J==="all"||Oe===J,Et=!U||(Me.tags||[]).includes(U),Or=Xe&&_.id!==Xe&&!(Ba&&Ba.has(_.id))||mt&&!Ut||!Dt||!Et;if(_.planet){Nd.push({n:_,color:Se,isSel:vt,isHov:it,dimmed:Or,ok:Dt&&Et});return}x.save(),x.globalAlpha=Or?.08:1,(vt||it)&&$o&&(x.shadowColor=Se,x.shadowBlur=vt?16:11),x.translate(_.x,_.y),oe(0,0,_.r,He),x.fillStyle=Ll?Se:_e(Se,_.r),x.fill(),(!Ll||vt||it)&&(x.strokeStyle="rgba(255,255,255,0.16)",x.lineWidth=Math.max(.6,.8*(1/d.zoom)),x.stroke()),Oe==="core"&&(x.fillStyle="#1b120e",x.font="700 "+Math.max(10,Math.round(_.r*.95))+"px sans-serif",x.textAlign="center",x.textBaseline="middle",x.fillText("\u2605",0,0)),x.restore(),vt?(x.save(),oe(_.x,_.y,_.r+3,He),x.strokeStyle=Se,x.lineWidth=3,x.shadowColor=Se,x.shadowBlur=12,x.stroke(),x.restore()):it?(x.save(),oe(_.x,_.y,_.r+2,He),x.strokeStyle=Se,x.lineWidth=2,x.stroke(),x.restore()):mt&&Ut?(x.save(),oe(_.x,_.y,_.r+2,He),x.strokeStyle="#ffa06b",x.lineWidth=2,x.stroke(),x.restore()):d.multi.indexOf(_.id)>=0&&(x.save(),oe(_.x,_.y,_.r+2,He),x.strokeStyle="#60a5fa",x.lineWidth=2,x.shadowColor="#60a5fa",x.shadowBlur=8,x.stroke(),x.restore()),(vt||it||!Re&&(On.has(_.id)&&d.zoom>Qe||!Ie&&d.zoom>.6||cr&&cr.has(_.id)))&&Dt&&Et&&cg(_,{force:vt||it})}),Nd.forEach(_=>dg(_.n,_.color,_)),x.restore(),d.marquee){let _=d.marquee,Me=Math.min(_.sx,_.ex),Oe=Math.min(_.sy,_.ey),Se=Math.abs(_.ex-_.sx),He=Math.abs(_.ey-_.sy);x.save(),x.setLineDash([4,4]),x.strokeStyle="rgba(96,165,250,0.9)",x.lineWidth=1,x.fillStyle="rgba(96,165,250,0.12)",x.fillRect(Me,Oe,Se,He),x.strokeRect(Me,Oe,Se,He),x.restore()}if(d.hoverId&&Ee.current){let _=d.domainById[d.hoverId],Me=d.nodes.find(function(Oe){return Oe.id===d.hoverId});if(_&&Me){let Oe=d.edges.filter(function(mt){return mt.sourceNodeId===_.id||mt.targetNodeId===_.id}).length,Se=Me.x*d.zoom+d.panX,He=Me.y*d.zoom+d.panY;Ee.current.style.display="block",Ee.current.style.left=Se+14+"px",Ee.current.style.top=He-6+"px";let vt=Me.planet?A.current("graphPlanetCards").replace("{n}",String(Me.count))+" \xB7 "+A.current("graphEnter"):A.current("connCount").replace("{n}",Oe),it=A.current(Ct[_.kind]||"kindKnowledge");Ee.current.innerHTML="<b>"+B(_.title||_.name||"")+'</b><br/><span style="opacity:.8">'+B(it)+" \xB7 "+B(vt)+"</span>"}}else Ee.current&&(Ee.current.style.display="none")},Wt=0,Oa=0,yt=0,sr=()=>{d.lastInputAt=performance.now(),d.motionUntil=performance.now()+140,yt&&R.clearTimeout(yt),yt=R.setTimeout(()=>{yt=0,Mt()},160)},Mt=()=>{Oa||(Oa=R.raf(()=>{Oa=0;let M=performance.now();try{In()}catch(U){Dr(U,"render")}d.lastRenderMs=performance.now()-M}))};d.requestRender=Mt;let ra=()=>{Wt>0||(d.alpha=Math.max(d.alpha||0,.35),d.running=!0,d.raf||(d.raf=R.raf(ie)))};d.wake=ra,d.render=In;let N=()=>{if(!Ae)return;d.planetsSrc!==d.nodes&&(d.planets=d.nodes.filter(U=>U.planet),d.planetsSrc=d.nodes);let M=d.planets;if(!(!M||!M.length)){for(let U=0;U<M.length;U++)for(let J=U+1;J<M.length;J++){let B=M[U],ee=M[J],xe=ee.x-B.x,Re=ee.y-B.y,Ie=Math.sqrt(xe*xe+Re*Re)||1,Qe=24+Math.min(B.r,ee.r)*.18,Xe=B.r+ee.r+Qe;if(Ie>=Xe)continue;let ot=Xe-Ie,xt=xe/Ie,tt=Re/Ie,On=B.r*B.r,cr=ee.r*ee.r,mn=On+cr,Uo=ot*(cr/mn),$o=ot*(On/mn);B.x-=xt*Uo,B.y-=tt*Uo,ee.x+=xt*$o,ee.y+=tt*$o,B.vx*=.55,B.vy*=.55,ee.vx*=.55,ee.vy*=.55}for(let U of M)for(let B of d.nodes){if(B.planet||B===d.dragNode)continue;let ee=B.x-U.x,xe=B.y-U.y,Re=Math.sqrt(ee*ee+xe*xe)||1,Ie=ee/Re,Qe=xe/Re,Xe=U.r+B.r+30,ot=Xe+12;if(Re>=ot)continue;let xt=Re;if(Re<Xe){B.x=U.x+Ie*Xe,B.y=U.y+Qe*Xe;let mn=B.vx*Ie+B.vy*Qe;mn<0&&(B.vx-=Ie*mn,B.vy-=Qe*mn),xt=Xe}let tt=Math.min(1,(ot-xt)/12),On=(.28+U.r*.009)*tt*tt,cr=B.vx*Ie+B.vy*Qe;if(cr<On){let mn=(On-cr)*.5;B.vx+=Ie*mn,B.vy+=Qe*mn}}}},Y=()=>{let M=performance.now(),U=Tf(d,{params:d.forceParams,alphaFloor:d.drift?1:0,damping:d.drift?.8:void 0});N(),d.lastTickMs=performance.now()-M,d.lastRms=U.rms,d.autoFitPending&&d.tickCount>45&&(d.autoFitPending=!1,Nn())},ie=()=>{if(!d.running)return;let M=performance.now(),U=0;d.lastStepAt&&M-d.lastStepAt>0&&M-d.lastStepAt<120&&(U=M-d.lastStepAt,d.frameEma=d.frameEma?d.frameEma*.8+U*.2:U),d.lastStepAt=M,d.tickCount>30&&U>0&&(d.frameEma>17.8?d.perfBad=(d.perfBad||0)+U:d.perfBad=Math.max(0,(d.perfBad||0)-U*.5),d.perfBad>500&&(d.quality|0)<3&&(d.quality=(d.quality|0)+1,d.perfBad=0,d.frameEma=16.7),d.frameEma&&d.frameEma<13.5?d.goodMs=(d.goodMs||0)+U:d.goodMs=0,(d.goodMs||0)>4e3&&(d.quality|0)>0&&(d.quality=(d.quality|0)-1,d.goodMs=0));let J=performance.now()-(d.lastInputAt||0);if(d.drift&&(J>4e3||(d.quality|0)>=1&&J>1200)){d.drift=!1,d.running=!1,d.raf=0;return}!d.drift&&(d.quietTicks>id||d.alpha===0&&d.tickCount>120)&&(d.quietTicks=0,d.drift=!0,d.alpha=Math.max(d.alpha||0,1),d.motionUntil=0,d.userTouched||Nn());try{let B=performance.now(),ee=d.dragNode||d.drift?1:6,xe=0;do Y(),xe+=1;while(!d.dragNode&&!d.drift&&xe<ee&&performance.now()-B<18&&d.quietTicks<=id);d.drift||(d.motionUntil=performance.now()+60);let Re=performance.now();In(),d.lastRenderMs=performance.now()-Re}catch(B){Dr(B,"step")}d.raf=R.raf(ie)},Ce=()=>({nodes:d.nodes.length,edges:d.edges.length,planets:d.nodes.filter(M=>M.planet).length,level:d.levelId||"",tickCount:d.tickCount,quietTicks:d.quietTicks,running:!!d.running,dragging:!!d.dragNode,lastTickMs:Math.round((d.lastTickMs||0)*100)/100,lastRenderMs:Math.round((d.lastRenderMs||0)*100)/100,rms:Math.round((d.lastRms||0)*1e3)/1e3,alpha:Math.round((d.alpha||0)*1e3)/1e3,drift:!!d.drift,frames:d.renderFrames|0,quality:d.quality|0,frameEma:Math.round((d.frameEma||0)*10)/10});d.stats=Ce,globalThis.__meGraphStats=Ce;let Te=()=>{let M=C.getBoundingClientRect(),U=M.width?C.clientWidth/M.width:1,J=M.height?C.clientHeight/M.height:1;return{level:d.levelId||"",planetLayer:!!d.planetLayer,nodes:d.nodes.length,planets:d.nodes.filter(B=>B.planet).length,edges:d.edges.length,running:!!d.running,quietTicks:d.quietTicks,zoom:Math.round(d.zoom*1e3)/1e3,panX:Math.round(d.panX),panY:Math.round(d.panY),selected:d.selectedId||null,multi:Array.isArray(d.multi)?d.multi.length:0,drift:!!d.drift,frames:d.renderFrames|0,resources:R.snapshot(),screen:d.nodes.map(B=>({id:B.id,label:B.name,planet:!!B.planet,count:B.count||0,dir:B.orbitDir||0,scale:B.orbitScale?Math.round(B.orbitScale*100)/100:0,x:M.left+(B.x*d.zoom+d.panX)/U,y:M.top+(B.y*d.zoom+d.panY)/J,r:Math.max(4,B.r*d.zoom/U)}))}};d.runtime=Te,globalThis.__meGraphRuntime=Te;let ke=(M,U)=>{let J=C.getBoundingClientRect(),B=J.width?C.clientWidth/J.width:1,ee=J.height?C.clientHeight/J.height:1;return{x:(M-J.left)*B,y:(U-J.top)*ee}},pt=(M,U)=>{let J=ke(M,U);return{x:(J.x-d.panX)/d.zoom,y:(J.y-d.panY)/d.zoom}},pn=M=>{let U=d.domainById[M];return!(!U||V.current!=="all"&&U.kind!==V.current||q.current&&!(U.tags||[]).includes(q.current))},Tn=(M,U,J)=>Math.max(U,Math.min(J,M)),_n=M=>{d.mouseX=M.clientX,d.mouseY=M.clientY;let U=pt(M.clientX,M.clientY),J=null;for(let B=d.nodes.length-1;B>=0;B--){let ee=d.nodes[B];if(!pn(ee.id))continue;let xe=ee.x-U.x,Re=ee.y-U.y;if(xe*xe+Re*Re<ee.r*ee.r+36){J=ee.id;break}}J!==d.hoverId&&(d.hoverId=J,d.motionUntil=performance.now()+140,Mt())},Mn=M=>{if(M.button!==0)return;let U=pt(M.clientX,M.clientY),J=null;for(let B=d.nodes.length-1;B>=0;B--){let ee=d.nodes[B];if(!pn(ee.id))continue;let xe=ee.x-U.x,Re=ee.y-U.y;if(xe*xe+Re*Re<ee.r*ee.r+25){J=ee;break}}if(M.shiftKey){if(J){d.shiftClick=J.id;return}d.marquee={sx:M.clientX,sy:M.clientY,ex:M.clientX,ey:M.clientY};return}d.userTouched=!0,d.dragStart={x:M.clientX,y:M.clientY,px:d.panX,py:d.panY},d.dragging=!1,d.dragNode=J||null,J&&(d.dragOffset={dx:J.x-U.x,dy:J.y-U.y})},Tl=M=>{if(d.marquee){d.marquee.ex=M.clientX,d.marquee.ey=M.clientY,sr(),Mt();return}if(!d.dragStart)return;let U=M.clientX-d.dragStart.x,J=M.clientY-d.dragStart.y;if(Math.abs(U)+Math.abs(J)>3&&!d.dragging&&(d.dragging=!0,d.dragNode&&(d.alpha=Math.max(d.alpha||0,.35))),d.dragNode){let B=pt(M.clientX,M.clientY);d.dragNode.x=B.x+d.dragOffset.dx,d.dragNode.y=B.y+d.dragOffset.dy,sr(),ra()}else d.dragging&&(d.panX=Tn(d.dragStart.px+U,-1e5,1e5),d.panY=Tn(d.dragStart.py+J,-1e5,1e5),sr(),Mt())},Ml=M=>{if(d.marquee){let B=d.marquee;d.marquee=null;let ee=ke(B.sx,B.sy),xe=ke(B.ex,B.ey),Re=Math.min(ee.x,xe.x),Ie=Math.max(ee.x,xe.x),Qe=Math.min(ee.y,xe.y),Xe=Math.max(ee.y,xe.y),ot=d.nodes.filter(xt=>!xt.planet&&pn(xt.id)).filter(xt=>{let tt=xt.x*d.zoom+d.panX,On=xt.y*d.zoom+d.panY;return tt>=Re&&tt<=Ie&&On>=Qe&&On<=Xe}).map(xt=>xt.id);d.multi=ot,fe(ot),sr(),Mt();return}let U=d.dragStart&&!d.dragging,J=!!d.dragNode&&!!d.dragging;if(d.shiftClick){let B=d.shiftClick;d.shiftClick=null;let ee=d.nodeById.get(B);if(ee&&ee.planet){d.selectedId=B,je(B),Mt();return}let xe=Array.isArray(d.multi)?d.multi.slice():[];xe.includes(B)||xe.push(B),d.multi=xe,fe(xe),Mt();return}if(U){let B=pt(M.clientX,M.clientY),ee=null;for(let xe=d.nodes.length-1;xe>=0;xe--){let Re=d.nodes[xe];if(!pn(Re.id))continue;let Ie=Re.x-B.x,Qe=Re.y-B.y;if(Ie*Ie+Qe*Qe<Re.r*Re.r+20){ee=Re;break}}if(ee&&ee.planet){d.selectedId=null,je(null),Mt(),d.dragStart=null,d.dragging=!1,d.dragNode=null,ve.current&&ve.current(ee.id);return}ee?d.selectedId===ee.id?(d.selectedId=null,je(null),Mt()):(d.selectedId=ee.id,je(ee.id),Mt()):(d.selectedId=null,d.hoverId=null,M.shiftKey||(d.multi=[],fe([])),je(null),Mt())}d.dragStart=null,d.dragging=!1,d.dragNode=null,J&&ra()},ag=M=>{M.preventDefault();let U=pt(M.clientX,M.clientY),J=null;for(let B=d.nodes.length-1;B>=0;B--){let ee=d.nodes[B];if(!pn(ee.id))continue;let xe=ee.x-U.x,Re=ee.y-U.y;if(xe*xe+Re*Re<ee.r*ee.r+25){J=ee;break}}if(J){let B=d.domainById[J.id];B&&v({x:M.clientX,y:M.clientY,id:J.id,path:B.id,title:B.title,planet:!!J.planet,count:J.count||0})}else v(null)},og=M=>{M.preventDefault();let U=ke(M.clientX,M.clientY),J=(U.x-d.panX)/d.zoom,B=(U.y-d.panY)/d.zoom,ee=Math.max(Wo,Math.min(3,d.zoom*(M.deltaY<0?na:1/na)));d.panX=Tn(d.panX+J*(d.zoom-ee),-1e5,1e5),d.panY=Tn(d.panY+B*(d.zoom-ee),-1e5,1e5),d.zoom=ee,d.userTouched=!0,sr(),Mt()};R.listen(C,"mousemove",_n),R.listen(C,"mousedown",Mn),R.listen(window,"mousemove",Tl),R.listen(window,"mouseup",Ml),R.listen(C,"wheel",og,{passive:!1}),R.listen(C,"contextmenu",ag),f.current=()=>{d.selectedId=null,d.hoverId=null,d.multi=[],fe([]),d.userTouched=!1,Nn(),sr(),Mt()},Wt=Nf(d.nodes.length);let ja=Wt,ig=()=>ja>0?Math.round((ja-Wt)/ja*100):100;Wt>0&&et(0);let El=ja>0?[.75,.5,.25].map(M=>Math.round(ja*M)):[],zl=()=>{if(!d.running)return;let M=performance.now();for(;Wt>0&&performance.now()-M<12;)Y(),Wt--;if(et(Wt>0?Math.min(99,ig()):100),El.length&&Wt<=El[0]){El.shift(),d.userTouched||Nn();try{In()}catch(U){Dr(U,"warm-frame")}}if(Wt>0){d.userTouched||Nn(),d.warmRaf=R.raf(zl);return}d.warmRaf=0,d.userTouched||Nn();try{In()}catch(U){Dr(U,"warm-final")}et(null),ra()};d.warmStep=zl,Nn();try{In()}catch(M){Dr(M,"first-frame")}Wt>0?d.warmRaf=R.raf(zl):(et(0),ra());let lg=()=>ae(!1);return R.listen(window,"mousedown",lg),()=>{if(d.running=!1,R.releaseAll(),globalThis.__meGraphStats===Ce)try{delete globalThis.__meGraphStats}catch{globalThis.__meGraphStats=void 0}if(globalThis.__meGraphRuntime===Te)try{delete globalThis.__meGraphRuntime}catch{globalThis.__meGraphRuntime=void 0}try{b.disconnect()}catch{}}},[y,P,O]),(0,p.useEffect)(()=>{je(null),fe([]),v(null);let C=I.current;C&&(C.selectedId=null,C.multi=[])},[O]),(0,p.useEffect)(()=>{k!==void 0&&w.current&&requestAnimationFrame(()=>{try{w.current()}catch(C){Dr(C,"fit")}})},[k]),(0,r.jsxs)("div",{className:"me-graph",ref:T,children:[(0,r.jsxs)("div",{className:"me-graph-toolbar",children:[(0,r.jsxs)("label",{className:"me-graph-search",children:[(0,r.jsxs)("svg",{className:"ico",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.6","aria-hidden":"true",children:[(0,r.jsx)("circle",{cx:"7",cy:"7",r:"4.4"}),(0,r.jsx)("path",{d:"m10.4 10.4 3.2 3.2",strokeLinecap:"round"})]}),(0,r.jsx)("input",{type:"text",placeholder:m("search"),value:he,onChange:C=>De(C.target.value),"aria-label":m("search")})]}),(0,r.jsxs)("span",{style:{position:"relative",display:"inline-flex"},children:[(0,r.jsxs)("button",{type:"button",className:"me-gtool"+(ne!=="all"||ge||$?" on":""),onClick:()=>ae(C=>!C),"aria-expanded":Be,title:m("filterLabel"),children:[m("filterLabel"),ne!=="all"||ge||$?(0,r.jsx)("span",{className:"badge","aria-hidden":"true"}):(0,r.jsx)("span",{className:"caret","aria-hidden":"true",children:"\u25BE"})]}),Be&&(0,r.jsx)("div",{className:"me-graph-legend-pop",onMouseDown:C=>C.stopPropagation(),style:{position:"absolute",top:"calc(100% + 8px)",left:0,zIndex:50,background:"rgba(24,28,34,0.97)",backdropFilter:"blur(16px)",WebkitBackdropFilter:"blur(16px)",color:"#e5e9ef",border:"1px solid rgba(255,255,255,0.08)",borderRadius:11,padding:8,minWidth:236,boxShadow:"0 18px 44px rgba(0,0,0,.5)"},children:(0,r.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:2},children:[(0,r.jsx)("button",{type:"button",className:`lg${ne==="all"&&!ge?" active":""}`,onClick:()=>{Ke("all"),Le(!1)},children:m("all")}),Object.keys(qt).map(C=>(0,r.jsxs)("button",{type:"button",className:`lg${ne===C?" active":""}`,onClick:()=>Ke(x=>x===C?"all":C),children:[(0,r.jsx)("span",{className:"mc-kind",style:{background:xn.colors[C]||qt[C]}}),m(Ct[C])]},C)),(0,r.jsx)("div",{style:{height:1,background:"rgba(255,255,255,0.07)",margin:"5px 0"}}),(0,r.jsxs)("button",{type:"button",className:`lg${ge?" active":""}`,onClick:()=>Le(C=>!C),children:["\u23F1 ",m("timeDim")]}),Q.length>0&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{style:{height:1,background:"rgba(255,255,255,0.07)",margin:"5px 0"}}),(0,r.jsx)("div",{style:{maxHeight:130,overflow:"auto",display:"flex",flexWrap:"wrap",gap:4,padding:"1px 1px 2px"},children:Q.map(C=>(0,r.jsxs)("button",{type:"button",className:`lg${$===C.tag?" active":""}`,style:{width:"auto",color:"#b9c0ca",padding:"2px 7px",fontSize:10.5,border:"1px solid rgba(255,255,255,.07)"},onClick:()=>z(x=>x===C.tag?"":C.tag),title:C.tag,children:["#",C.tag," ",(0,r.jsx)("span",{style:{opacity:.55},children:C.n})]},C.tag))})]}),(ne!=="all"||ge||$)&&(0,r.jsxs)("button",{type:"button",className:"lg lg-clear",style:{color:"#f87171"},onClick:()=>{Ke("all"),Le(!1),z("")},children:[m("clearFilter")," \u2715"]})]})})]}),(0,r.jsxs)("label",{className:"me-gswitch"+(h?" on":""),title:m("crossVault"),children:[(0,r.jsx)("input",{type:"checkbox",checked:!!h,onChange:C=>g&&g(C.target.checked)}),(0,r.jsx)("span",{className:"track","aria-hidden":"true"}),(0,r.jsx)("span",{children:m("crossVault")})]}),(0,r.jsx)("button",{type:"button",className:"me-gtool"+(ge?" on":""),"aria-pressed":ge,onClick:()=>Le(C=>!C),children:m("timeDim")}),(0,r.jsx)("span",{className:"me-gdiv","aria-hidden":"true"}),(0,r.jsx)("button",{type:"button",className:"me-gtool",onClick:()=>{let C=E.current;if(C)try{C.toBlob(x=>{x&&ue({url:URL.createObjectURL(x),blob:x})},"image/png")}catch{}},children:m("exportGraph")}),(0,r.jsx)("button",{type:"button",className:"me-gtool",onClick:()=>w.current&&w.current(),children:m("fit")}),(0,r.jsx)("button",{type:"button",className:"me-gtool",onClick:()=>{je(null),Ke("all"),f.current&&f.current()},children:m("reset")})]}),(0,r.jsxs)("div",{className:"me-graph-canvas",style:{position:"relative",overflow:"hidden"},children:[(0,r.jsx)("canvas",{ref:E,style:{width:"100%",height:"100%",display:"block",cursor:"grab"}}),(0,r.jsx)(I0,{crumbs:t,t:m,onPick:l,busy:u}),c&&(0,r.jsxs)("div",{className:"me-graph-levelerr",role:"alert",children:[(0,r.jsx)("span",{style:{flex:"none",fontWeight:800},children:c.timeout?"\u23F1":"\u2715"}),(0,r.jsx)("span",{className:"msg",children:(c.timeout?m("graphLevelTimeout").replace("{ms}",String(1600)):m("graphLevelError"))+"\uFF1A"+c.message}),(0,r.jsx)("button",{type:"button",onClick:()=>s&&s(),children:m("graphRetry")})]}),!c&&u&&(0,r.jsxs)("div",{className:"me-graph-levelbusy",role:"status","aria-live":"polite",children:[(0,r.jsx)(Sl,{small:!0}),m("graphLevelLoading")]}),F!==null&&(0,r.jsxs)("div",{role:"status","aria-live":"polite",style:{position:"absolute",left:"50%",top:14,transform:"translateX(-50%)",zIndex:3,display:"flex",alignItems:"center",gap:9,padding:"6px 12px",borderRadius:999,background:"rgba(23,27,33,0.9)",backdropFilter:"blur(14px)",WebkitBackdropFilter:"blur(14px)",color:"#e8ebf0",fontSize:11,fontWeight:500,letterSpacing:".01em",pointerEvents:"none",border:"1px solid rgba(255,255,255,0.07)",boxShadow:"0 10px 26px rgba(0,0,0,.3)"},children:[(0,r.jsx)(Sl,{value:F,small:!0}),(0,r.jsxs)("span",{children:[m("graphWarming").replace("{n}",D.length)," \xB7 ",Math.round(F),"%"]})]}),(0,r.jsxs)("div",{className:"mc-v5-graph-legend",children:[(0,r.jsx)("div",{className:"mc-v5-graph-legend-title",children:m("graphLegendTitle")}),Object.keys(xn.colors).filter(C=>K[C]).map(C=>(0,r.jsxs)("div",{className:"mc-v5-graph-legend-row",children:[(0,r.jsx)("i",{style:{background:xn.colors[C],boxShadow:"0 0 0 3px "+xn.colors[C]+"24"}}),(0,r.jsx)("span",{children:m(Ct[C]||"kindKnowledge")}),(0,r.jsx)("b",{children:K[C]})]},C))]}),(0,r.jsx)("div",{className:"me-graph-tooltip",ref:Ee,style:{display:"none",position:"absolute",zIndex:4,pointerEvents:"none",background:"rgba(24,28,34,0.94)",backdropFilter:"blur(14px)",WebkitBackdropFilter:"blur(14px)",color:"#e6eaf0",border:"1px solid rgba(255,255,255,0.08)",borderRadius:9,padding:"8px 10px",fontSize:11.5,maxWidth:220,boxShadow:"0 12px 30px rgba(0,0,0,.34)"}}),me&&(0,r.jsx)("div",{className:"mc-empty",style:{position:"absolute",inset:0,zIndex:2,display:"flex",alignItems:"center",justifyContent:"center",backdropFilter:"blur(2px)",WebkitBackdropFilter:"blur(2px)"},children:m("noMatch")}),te&&(0,r.jsx)("div",{className:"me-graph-ctx-back",style:{position:"fixed",inset:0,zIndex:30},onMouseDown:()=>v(null)}),te&&(0,r.jsxs)("div",{className:"me-graph-ctxmenu",style:{position:"fixed",left:te.x,top:te.y,zIndex:31},onMouseDown:C=>C.stopPropagation(),children:[te.planet&&(0,r.jsxs)("button",{type:"button",onClick:()=>{let C=te.id;v(null),ve.current&&ve.current(C)},children:[m("graphEnter")," \u203A"]}),te.planet&&(0,r.jsx)("div",{style:{padding:"4px 10px 6px",fontSize:11,opacity:.7},children:m("graphPlanetCards").replace("{n}",String(te.count||0))}),!te.planet&&(0,r.jsx)("button",{type:"button",onClick:()=>{j.current({path:te.path,title:te.title}),v(null)},children:m("openCard")}),!te.planet&&(0,r.jsx)("button",{type:"button",onClick:()=>{te.id&&(I.current.selectedId=te.id,je(te.id)),v(null);let C=I.current;C&&C.requestRender&&C.requestRender()},children:m("focusNeighbors")}),(0,r.jsx)("button",{type:"button",onClick:()=>{try{navigator.clipboard&&navigator.clipboard.writeText(te.title||"")}catch{}v(null),Ye(m("copied"))},children:m("copyName")}),!te.planet&&(0,r.jsx)("button",{type:"button",onClick:()=>{let C=I.current,x=C&&Array.isArray(C.multi)?C.multi.slice():[],ye=te.id;if(ye&&!x.includes(ye)&&x.push(ye),v(null),x.length<2){Ye(m("mergeNeed"),!1);return}if(!window.confirm(m("mergeConfirm")))return;let Pe=ce.current&&ce.current(x);Pe&&Pe.then?Pe.then(S=>S?Ye(m("merged")):Ye(m("mergeFail"),!1)).catch(()=>Ye(m("mergeFail"),!1)):Pe&&Ye(m("merged"))},children:m("merge")}),!te.planet&&(0,r.jsx)("button",{type:"button",style:{color:"#f87171"},onClick:()=>{let C=te.path;v(null),window.confirm(m("deleteConfirm"))&&(async()=>{try{(H.current?await H.current(C):!1)?Ye(m("deleted")):Ye(m("deleteFail"),!1)}catch{Ye(m("deleteFail"),!1)}})()},children:m("delete")})]}),we.length>0&&(0,r.jsxs)("div",{style:{position:"absolute",left:"50%",bottom:52,transform:"translateX(-50%)",zIndex:3,display:"flex",gap:8,alignItems:"center",background:"rgba(24,28,34,0.94)",backdropFilter:"blur(14px)",WebkitBackdropFilter:"blur(14px)",color:"#e6eaf0",border:"1px solid rgba(255,255,255,0.08)",borderRadius:11,padding:"7px 11px",fontSize:11.5,boxShadow:"0 14px 34px rgba(0,0,0,.4)"},children:[(0,r.jsxs)("span",{style:{fontWeight:700},children:[we.length," ",m("nodes")]}),(0,r.jsx)("button",{type:"button",className:"mc-btn",onClick:()=>{let x=we.map(R=>Ne[R]).filter(Boolean).map(R=>R.title||R.name).join(`
1057
+ `),ye=new Blob([x],{type:"text/plain;charset=utf-8"}),Pe=URL.createObjectURL(ye),S=document.createElement("a");S.href=Pe,S.download="memory-selected.txt",document.body.appendChild(S),S.click(),document.body.removeChild(S),setTimeout(()=>URL.revokeObjectURL(Pe),1e3),Ye(we.length+m("exportedSel"))},children:m("exportSel")}),(0,r.jsx)("button",{type:"button",className:"mc-btn",onClick:()=>{if(we.length<2){Ye(m("mergeNeed"),!1);return}let C=we.map(ye=>Ne[ye]?Ne[ye].id:ye);if(!window.confirm(m("mergeConfirm")))return;fe([]);let x=I.current;x&&(x.multi=[]),fetch(`${Z}/merge?paths=${encodeURIComponent(C.join(","))}`).then(ye=>ye.json()).then(ye=>{ye&&ye.ok?Ye(m("merged")):Ye(m("mergeFail"),!1)}).catch(()=>Ye(m("mergeFail"),!1))},children:m("merge")}),(0,r.jsx)("button",{type:"button",className:"mc-btn",style:{color:"#f87171"},onClick:()=>{if(!window.confirm(m("deleteConfirm")))return;let C=we.map(ye=>Ne[ye]?Ne[ye].id:ye);fe([]);let x=I.current;x&&(x.multi=[]),(async()=>{let ye=0;for(let Pe of C)try{(H.current?await H.current(Pe):!1)&&ye++}catch{}Ye(ye+m("deletedSelected"),ye>0)})()},children:m("deleteSelected")}),(0,r.jsx)("button",{type:"button",className:"mc-btn",onClick:()=>{let C=I.current;C&&(C.multi=[]),fe([]);let x=I.current;x&&x.render&&x.render()},children:m("clearSelection")})]}),G&&Ne[G]&&(0,r.jsxs)("div",{className:"me-graph-sidebar",style:{position:"absolute",right:14,top:14,zIndex:3,maxWidth:248,background:"rgba(24,28,34,0.94)",backdropFilter:"blur(14px)",WebkitBackdropFilter:"blur(14px)",color:"#e6eaf0",border:"1px solid rgba(255,255,255,0.08)",borderRadius:11,padding:13,fontSize:11.5,boxShadow:"0 14px 34px rgba(0,0,0,.38)"},children:[(0,r.jsx)("div",{style:{fontWeight:700,fontSize:13,marginBottom:4},children:Ne[G]?Ne[G].title||Ne[G].name:G}),(0,r.jsxs)("div",{style:{opacity:.8,marginBottom:8},children:[Ne[G]?m(Ct[Ne[G].kind]||"kindKnowledge"):"\u2014",Ne[G]&&Ne[G].type==="planet"?" \xB7 "+m("graphPlanetCards").replace("{n}",String(Ne[G].count||0)):""]}),Ne[G]&&Ne[G].type==="planet"&&(0,r.jsxs)("button",{type:"button",className:"mc-btn",style:{width:"100%",marginBottom:8},onClick:()=>{let C=G;je(null),ve.current&&ve.current(C)},children:[m("graphEnter")," \u203A"]}),(0,r.jsx)("div",{style:{fontSize:11,opacity:.65,letterSpacing:".04em",marginBottom:6},children:m("graphLevelHint")}),(P.filter(C=>C.source===G||C.target===G)||[]).slice(0,8).map((C,x)=>{let ye=C.source===G?C.target:C.source,Pe=Ne[ye];return(0,r.jsx)("div",{style:{padding:"4px 6px",cursor:"pointer",borderRadius:6},onMouseDown:S=>{S.preventDefault();let R=I.current;R&&(R.selectedId=ye,R.hoverId=ye,R.requestRender&&R.requestRender()),je(ye)},children:Pe?(Pe.title||Pe.name).slice(0,28):ye},x)})]})]}),(0,r.jsx)("div",{className:"me-graph-tip",children:m("graphTip")}),Nt&&(0,r.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,position:"fixed",left:"50%",transform:"translateX(-50%)",top:22,zIndex:70,background:"rgba(20,22,26,0.97)",backdropFilter:"blur(12px)",WebkitBackdropFilter:"blur(12px)",color:"#f5f5f5",borderRadius:12,padding:"10px 20px",fontSize:13.5,fontWeight:600,boxShadow:"0 14px 44px rgba(0,0,0,.5)",pointerEvents:"none",animation:"me-pop .22s ease",borderLeft:"4px solid "+(Nt.ok?"#22c55e":"#ef4444"),maxWidth:"90vw"},children:[(0,r.jsx)("span",{style:{color:Nt.ok?"#34d399":"#f87171",fontWeight:800,fontSize:15},children:Nt.ok?"\u2713":"\u2715"}),(0,r.jsx)("span",{style:{wordBreak:"break-all"},children:Nt.msg})]}),W&&(0,r.jsxs)("div",{className:"me-overlay",onClick:()=>{W.url&&URL.revokeObjectURL(W.url),ue(null),be(!1)},children:[(0,r.jsx)("style",{children:kn}),(0,r.jsxs)("div",{className:"me-dialog",style:{maxWidth:de?"100vw":900,width:de?"100vw":"92vw",maxHeight:de?"100%":"90vh",height:de?"100%":void 0,borderRadius:de?0:14},onClick:C=>C.stopPropagation(),children:[(0,r.jsxs)("div",{className:"me-dialog-head",children:[(0,r.jsx)("h3",{children:m("exportGraph")}),(0,r.jsxs)("div",{className:"me-head-actions",children:[(0,r.jsx)("a",{className:"mc-btn",href:W.url,download:"memory-graph.png",onClick:()=>{qn("download"),Ye(m("downloaded")+" \xB7 "+m("defaultDownloads"))},style:{textDecoration:"none",display:"inline-flex",alignItems:"center"},children:m(qe==="download"?"done":"download")}),(0,r.jsx)("button",{type:"button",className:"mc-btn",onClick:()=>{qn("full"),be(C=>!C),Ye(m("fullscreen"))},children:m(qe==="full"?"done":de?"exitFull":"fullscreen")}),(0,r.jsx)("button",{type:"button",className:"mc-btn",onClick:()=>{let C=W.blob;C&&window.ClipboardItem&&navigator.clipboard?navigator.clipboard.write([new window.ClipboardItem({"image/png":C})]).then(()=>{qn("copy"),Ye(m("copied"))}).catch(()=>{Ye(m("copyFail"),!1)}):Ye(m("copyFail"),!1)},children:m(qe==="copy"?"done":"copyImage")}),(0,r.jsx)("button",{type:"button",className:"mc-btn",onClick:()=>{W.url&&URL.revokeObjectURL(W.url),ue(null),be(!1)},children:m("close")})]})]}),(0,r.jsx)("div",{className:"me-dialog-body",style:{display:"flex",justifyContent:"center",background:de?"var(--dsw-alias-bg-base, #0b0d10)":"var(--dsw-alias-bg-base, #f3f4f6)"},children:(0,r.jsx)("img",{src:W.url,alt:m("exportGraph"),style:{maxWidth:"100%",maxHeight:de?"calc(100% - 64px)":"70vh",borderRadius:de?0:8,cursor:"zoom-in"},onClick:()=>be(C=>!C)})})]})]})]})}function O0(e){let t=new Date(e||0).getTime();if(!t)return"#94a3b8";let n=(Date.now()-t)/864e5;return n<3?"#34D399":n<14?"#FBBF24":n<30?"#FF7A45":"#8CA0B3"}function Gf({label:e,value:t=[],options:n,onChange:a,placeholder:o,z:i=20}){let[l,s]=(0,p.useState)(!1),c=(0,p.useRef)(null);(0,p.useEffect)(()=>{if(!l)return;let T=I=>{c.current&&!c.current.contains(I.target)&&s(!1)};return document.addEventListener("mousedown",T),()=>document.removeEventListener("mousedown",T)},[l]);let u=Array.isArray(t)?t:[],m=u.includes("__all__"),h=m?n.find(T=>T.value==="__all__")?.label||"":u.length?u.map(T=>n.find(I=>I.value===T)?.label||T).join("\u3001"):"",g=(T,I)=>{if(T.value==="__all__"){a(I?["__all__"]:[]);return}let w=new Set(u);w.has("__all__")&&w.delete("__all__"),I?w.add(T.value):w.delete(T.value),a([...w])},k=n.find(T=>T.value==="__all__"),E=n.filter(T=>T.value!=="__all__");return(0,r.jsxs)("div",{className:"mc-field",children:[(0,r.jsx)("span",{className:"mc-field-label",children:e}),(0,r.jsxs)("div",{ref:c,style:{position:"relative",minWidth:0},children:[(0,r.jsxs)("button",{type:"button",onClick:()=>s(T=>!T),style:{width:"100%",textAlign:"left",padding:"6px 8px",borderRadius:8,border:"1px solid var(--dsw-alias-border-l2, #d1d5db)",background:"var(--dsw-alias-bg-layer-1, #fff)",color:"inherit",fontSize:12,cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"space-between",gap:6},children:[(0,r.jsx)("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:h||o||"\u2014"}),(0,r.jsx)("span",{style:{fontSize:10,opacity:.7},children:"\u25BE"})]}),l&&(0,r.jsxs)("div",{style:{position:"absolute",top:"100%",left:0,right:0,zIndex:i,marginTop:2,borderRadius:8,border:"1px solid var(--dsw-alias-border-l2, #d1d5db)",background:"var(--dsw-alias-bg-layer-1, #fff)",color:"inherit",boxShadow:"0 6px 20px rgba(0,0,0,0.14)",maxHeight:180,overflow:"auto"},children:[k&&(0,r.jsxs)("label",{onClick:T=>T.stopPropagation(),className:"mc-dd-opt",style:{borderBottom:"1px solid rgba(127,127,127,0.12)"},children:[(0,r.jsx)("input",{type:"checkbox",checked:m,onChange:T=>g(k,T.target.checked)}),(0,r.jsx)("span",{children:k.label})]}),E.map(T=>(0,r.jsxs)("label",{onClick:I=>I.stopPropagation(),className:"mc-dd-opt",children:[(0,r.jsx)("input",{type:"checkbox",checked:u.includes(T.value),onChange:I=>g(T,I.target.checked)}),(0,r.jsx)("span",{children:T.label})]},T.value))]})]})]})}function j0(e){let t=new Date(e||0).getTime();return!!t&&(Date.now()-t)/864e5<3}async function B0(e,t,n){if(n&&typeof window.showSaveFilePicker=="function")try{let i=await window.showSaveFilePicker({suggestedName:t}),l=await i.createWritable();return await l.write(e),await l.close(),{ok:!0,picked:!0,name:i.name}}catch(i){return i&&i.name==="AbortError"?{ok:!1,aborted:!0}:{ok:!1,err:String(i.message||i)}}let a=URL.createObjectURL(e),o=document.createElement("a");return o.href=a,o.download=t,document.body.appendChild(o),o.click(),document.body.removeChild(o),setTimeout(()=>URL.revokeObjectURL(a),1e3),{ok:!0,picked:!1,name:t}}function dd(e,t){if(!t||!e)return e;let n=e.toLowerCase(),a=t.toLowerCase(),o=[],i=0;for(;i<e.length;){let l=n.indexOf(a,i);if(l<0){o.push(e.slice(i));break}l>i&&o.push(e.slice(i,l)),o.push((0,r.jsx)("mark",{className:"mc-hl",children:e.slice(l,l+a.length)},l)),i=l+a.length}return o}function lr(e){let t=_o(e);if(!t)return"";let n=t.toDateString()===new Date().toDateString(),a=vf(t);return n?a:`${t.getMonth()+1}-${t.getDate()} ${a}`}var xd=dr(Oo(),1);function H0(){try{let e=new URLSearchParams(window.location.search).get("lang");if(e==="zh"||e==="en")return e}catch{}return typeof navigator<"u"&&String(navigator.language||"").toLowerCase().startsWith("zh")?"zh":"en"}function W0(){let[e,t]=(0,_a.useState)(H0);(0,_a.useEffect)(()=>{let a=o=>{let i=o&&o.data;i&&i.source==="memory-eternal"&&i.type==="locale"&&(i.lang==="zh"||i.lang==="en")&&t(i.lang)};return window.addEventListener("message",a),()=>window.removeEventListener("message",a)},[]);let n=(0,_a.useMemo)(()=>a=>(e==="zh"?hd:Kf)[a]??hd[a]??a,[e]);return document.documentElement.lang=e==="zh"?"zh-CN":"en",(0,xd.jsx)(Qf,{t:n,inModal:!1})}var U0=(0,ng.createRoot)(document.getElementById("root"));U0.render((0,xd.jsx)(W0,{}));var $0=0,rg=()=>{let e=document.getElementById("root");if(e&&e.childElementCount>0){let t=document.getElementById("boot");t&&t.remove();return}++$0<900&&requestAnimationFrame(rg)};requestAnimationFrame(rg);})();
1058
1058
  /*! Bundled license information:
1059
1059
 
1060
1060
  react/cjs/react.production.min.js: