memory-eternal 0.21.0 → 0.23.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/.claude-plugin/plugin.json +1 -1
- package/.codex-plugin/plugin.json +1 -1
- package/.cursor-plugin/plugin.json +1 -1
- package/README.md +30 -1
- package/README.zh-CN.md +30 -1
- package/cursor-extension/package.json +1 -1
- package/dsh-tui-plugin/dsh-plugin.json +1 -1
- package/dsh-tui-plugin/package.json +1 -1
- package/index.js +78 -0
- package/lib/align.js +16 -2
- package/lib/api.js +211 -20
- package/lib/client.js +93 -23
- package/lib/db.js +12 -0
- package/lib/mcp.js +41 -2
- package/lib/news-digest.js +109 -0
- package/lib/news-follows.js +523 -0
- package/lib/node-bin.js +17 -12
- package/lib/vault.js +159 -7
- package/orca-plugin/orca-plugin.json +1 -1
- package/package.json +2 -2
- package/web/app.js +98 -28
package/web/app.js
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
(()=>{var tg=Object.create;var kd=Object.defineProperty;var ng=Object.getOwnPropertyDescriptor;var rg=Object.getOwnPropertyNames;var ag=Object.getPrototypeOf,og=Object.prototype.hasOwnProperty;var _n=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var ig=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of rg(t))!og.call(e,o)&&o!==n&&kd(e,o,{get:()=>t[o],enumerable:!(r=ng(t,o))||r.enumerable});return e};var tr=(e,t,n)=>(n=e!=null?tg(ag(e)):{},ig(t||!e||!e.__esModule?kd(n,"default",{value:e,enumerable:!0}):n,e));var Id=_n(Te=>{"use strict";var Ia=Symbol.for("react.element"),lg=Symbol.for("react.portal"),sg=Symbol.for("react.fragment"),cg=Symbol.for("react.strict_mode"),dg=Symbol.for("react.profiler"),ug=Symbol.for("react.provider"),pg=Symbol.for("react.context"),mg=Symbol.for("react.forward_ref"),fg=Symbol.for("react.suspense"),gg=Symbol.for("react.memo"),hg=Symbol.for("react.lazy"),Sd=Symbol.iterator;function yg(e){return e===null||typeof e!="object"?null:(e=Sd&&e[Sd]||e["@@iterator"],typeof e=="function"?e:null)}var Md={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Td=Object.assign,Ed={};function qr(e,t,n){this.props=e,this.context=t,this.refs=Ed,this.updater=n||Md}qr.prototype.isReactComponent={};qr.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")};qr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function zd(){}zd.prototype=qr.prototype;function Nl(e,t,n){this.props=e,this.context=t,this.refs=Ed,this.updater=n||Md}var Ml=Nl.prototype=new zd;Ml.constructor=Nl;Td(Ml,qr.prototype);Ml.isPureReactComponent=!0;var Cd=Array.isArray,Rd=Object.prototype.hasOwnProperty,Tl={current:null},Ld={key:!0,ref:!0,__self:!0,__source:!0};function Pd(e,t,n){var r,o={},i=null,l=null;if(t!=null)for(r in t.ref!==void 0&&(l=t.ref),t.key!==void 0&&(i=""+t.key),t)Rd.call(t,r)&&!Ld.hasOwnProperty(r)&&(o[r]=t[r]);var s=arguments.length-2;if(s===1)o.children=n;else if(1<s){for(var c=Array(s),p=0;p<s;p++)c[p]=arguments[p+2];o.children=c}if(e&&e.defaultProps)for(r in s=e.defaultProps,s)o[r]===void 0&&(o[r]=s[r]);return{$$typeof:Ia,type:e,key:i,ref:l,props:o,_owner:Tl.current}}function vg(e,t){return{$$typeof:Ia,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function El(e){return typeof e=="object"&&e!==null&&e.$$typeof===Ia}function bg(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Nd=/\/+/g;function Cl(e,t){return typeof e=="object"&&e!==null&&e.key!=null?bg(""+e.key):t.toString(36)}function Oo(e,t,n,r,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 Ia:case lg:l=!0}}if(l)return l=e,o=o(l),e=r===""?"."+Cl(l,0):r,Cd(o)?(n="",e!=null&&(n=e.replace(Nd,"$&/")+"/"),Oo(o,t,n,"",function(p){return p})):o!=null&&(El(o)&&(o=vg(o,n+(!o.key||l&&l.key===o.key?"":(""+o.key).replace(Nd,"$&/")+"/")+e)),t.push(o)),1;if(l=0,r=r===""?".":r+":",Cd(e))for(var s=0;s<e.length;s++){i=e[s];var c=r+Cl(i,s);l+=Oo(i,t,n,c,o)}else if(c=yg(e),typeof c=="function")for(e=c.call(e),s=0;!(i=e.next()).done;)i=i.value,c=r+Cl(i,s++),l+=Oo(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 Fo(e,t,n){if(e==null)return e;var r=[],o=0;return Oo(e,r,"","",function(i){return t.call(n,i,o++)}),r}function xg(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},jo={transition:null},wg={ReactCurrentDispatcher:_t,ReactCurrentBatchConfig:jo,ReactCurrentOwner:Tl};function Dd(){throw Error("act(...) is not supported in production builds of React.")}Te.Children={map:Fo,forEach:function(e,t,n){Fo(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Fo(e,function(){t++}),t},toArray:function(e){return Fo(e,function(t){return t})||[]},only:function(e){if(!El(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Te.Component=qr;Te.Fragment=sg;Te.Profiler=dg;Te.PureComponent=Nl;Te.StrictMode=cg;Te.Suspense=fg;Te.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=wg;Te.act=Dd;Te.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=Td({},e.props),o=e.key,i=e.ref,l=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,l=Tl.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(c in t)Rd.call(t,c)&&!Ld.hasOwnProperty(c)&&(r[c]=t[c]===void 0&&s!==void 0?s[c]:t[c])}var c=arguments.length-2;if(c===1)r.children=n;else if(1<c){s=Array(c);for(var p=0;p<c;p++)s[p]=arguments[p+2];r.children=s}return{$$typeof:Ia,type:e.type,key:o,ref:i,props:r,_owner:l}};Te.createContext=function(e){return e={$$typeof:pg,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:ug,_context:e},e.Consumer=e};Te.createElement=Pd;Te.createFactory=function(e){var t=Pd.bind(null,e);return t.type=e,t};Te.createRef=function(){return{current:null}};Te.forwardRef=function(e){return{$$typeof:mg,render:e}};Te.isValidElement=El;Te.lazy=function(e){return{$$typeof:hg,_payload:{_status:-1,_result:e},_init:xg}};Te.memo=function(e,t){return{$$typeof:gg,type:e,compare:t===void 0?null:t}};Te.startTransition=function(e){var t=jo.transition;jo.transition={};try{e()}finally{jo.transition=t}};Te.unstable_act=Dd;Te.useCallback=function(e,t){return _t.current.useCallback(e,t)};Te.useContext=function(e){return _t.current.useContext(e)};Te.useDebugValue=function(){};Te.useDeferredValue=function(e){return _t.current.useDeferredValue(e)};Te.useEffect=function(e,t){return _t.current.useEffect(e,t)};Te.useId=function(){return _t.current.useId()};Te.useImperativeHandle=function(e,t,n){return _t.current.useImperativeHandle(e,t,n)};Te.useInsertionEffect=function(e,t){return _t.current.useInsertionEffect(e,t)};Te.useLayoutEffect=function(e,t){return _t.current.useLayoutEffect(e,t)};Te.useMemo=function(e,t){return _t.current.useMemo(e,t)};Te.useReducer=function(e,t,n){return _t.current.useReducer(e,t,n)};Te.useRef=function(e){return _t.current.useRef(e)};Te.useState=function(e){return _t.current.useState(e)};Te.useSyncExternalStore=function(e,t,n){return _t.current.useSyncExternalStore(e,t,n)};Te.useTransition=function(){return _t.current.useTransition()};Te.version="18.3.1"});var Aa=_n((Dv,Ad)=>{"use strict";Ad.exports=Id()});var Vd=_n(Ye=>{"use strict";function Pl(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,o=e[r];if(0<Bo(o,t))e[r]=t,e[n]=o,n=r;else break e}}function bn(e){return e.length===0?null:e[0]}function Wo(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length,i=o>>>1;r<i;){var l=2*(r+1)-1,s=e[l],c=l+1,p=e[c];if(0>Bo(s,n))c<o&&0>Bo(p,s)?(e[r]=p,e[c]=n,r=c):(e[r]=s,e[l]=n,r=l);else if(c<o&&0>Bo(p,n))e[r]=p,e[c]=n,r=c;else break e}}return t}function Bo(e,t){var n=e.sortIndex-t.sortIndex;return n!==0?n:e.id-t.id}typeof performance=="object"&&typeof performance.now=="function"?(_d=performance,Ye.unstable_now=function(){return _d.now()}):(zl=Date,Fd=zl.now(),Ye.unstable_now=function(){return zl.now()-Fd});var _d,zl,Fd,Tn=[],nr=[],kg=1,sn=null,Rt=3,Uo=!1,Rr=!1,Fa=!1,Bd=typeof setTimeout=="function"?setTimeout:null,Hd=typeof clearTimeout=="function"?clearTimeout:null,Od=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function Dl(e){for(var t=bn(nr);t!==null;){if(t.callback===null)Wo(nr);else if(t.startTime<=e)Wo(nr),t.sortIndex=t.expirationTime,Pl(Tn,t);else break;t=bn(nr)}}function Il(e){if(Fa=!1,Dl(e),!Rr)if(bn(Tn)!==null)Rr=!0,_l(Al);else{var t=bn(nr);t!==null&&Fl(Il,t.startTime-e)}}function Al(e,t){Rr=!1,Fa&&(Fa=!1,Hd(Oa),Oa=-1),Uo=!0;var n=Rt;try{for(Dl(t),sn=bn(Tn);sn!==null&&(!(sn.expirationTime>t)||e&&!$d());){var r=sn.callback;if(typeof r=="function"){sn.callback=null,Rt=sn.priorityLevel;var o=r(sn.expirationTime<=t);t=Ye.unstable_now(),typeof o=="function"?sn.callback=o:sn===bn(Tn)&&Wo(Tn),Dl(t)}else Wo(Tn);sn=bn(Tn)}if(sn!==null)var i=!0;else{var l=bn(nr);l!==null&&Fl(Il,l.startTime-t),i=!1}return i}finally{sn=null,Rt=n,Uo=!1}}var $o=!1,Ho=null,Oa=-1,Wd=5,Ud=-1;function $d(){return!(Ye.unstable_now()-Ud<Wd)}function Rl(){if(Ho!==null){var e=Ye.unstable_now();Ud=e;var t=!0;try{t=Ho(!0,e)}finally{t?_a():($o=!1,Ho=null)}}else $o=!1}var _a;typeof Od=="function"?_a=function(){Od(Rl)}:typeof MessageChannel<"u"?(Ll=new MessageChannel,jd=Ll.port2,Ll.port1.onmessage=Rl,_a=function(){jd.postMessage(null)}):_a=function(){Bd(Rl,0)};var Ll,jd;function _l(e){Ho=e,$o||($o=!0,_a())}function Fl(e,t){Oa=Bd(function(){e(Ye.unstable_now())},t)}Ye.unstable_IdlePriority=5;Ye.unstable_ImmediatePriority=1;Ye.unstable_LowPriority=4;Ye.unstable_NormalPriority=3;Ye.unstable_Profiling=null;Ye.unstable_UserBlockingPriority=2;Ye.unstable_cancelCallback=function(e){e.callback=null};Ye.unstable_continueExecution=function(){Rr||Uo||(Rr=!0,_l(Al))};Ye.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"):Wd=0<e?Math.floor(1e3/e):5};Ye.unstable_getCurrentPriorityLevel=function(){return Rt};Ye.unstable_getFirstCallbackNode=function(){return bn(Tn)};Ye.unstable_next=function(e){switch(Rt){case 1:case 2:case 3:var t=3;break;default:t=Rt}var n=Rt;Rt=t;try{return e()}finally{Rt=n}};Ye.unstable_pauseExecution=function(){};Ye.unstable_requestPaint=function(){};Ye.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=Rt;Rt=e;try{return t()}finally{Rt=n}};Ye.unstable_scheduleCallback=function(e,t,n){var r=Ye.unstable_now();switch(typeof n=="object"&&n!==null?(n=n.delay,n=typeof n=="number"&&0<n?r+n:r):n=r,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:kg++,callback:t,priorityLevel:e,startTime:n,expirationTime:o,sortIndex:-1},n>r?(e.sortIndex=n,Pl(nr,e),bn(Tn)===null&&e===bn(nr)&&(Fa?(Hd(Oa),Oa=-1):Fa=!0,Fl(Il,n-r))):(e.sortIndex=o,Pl(Tn,e),Rr||Uo||(Rr=!0,_l(Al))),e};Ye.unstable_shouldYield=$d;Ye.unstable_wrapCallback=function(e){var t=Rt;return function(){var n=Rt;Rt=t;try{return e.apply(this,arguments)}finally{Rt=n}}}});var Kd=_n((Av,Gd)=>{"use strict";Gd.exports=Vd()});var Xm=_n(rn=>{"use strict";var Sg=Aa(),tn=Kd();function V(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 ep=new Set,io={};function Ur(e,t){ya(e,t),ya(e+"Capture",t)}function ya(e,t){for(io[e]=t,e=0;e<t.length;e++)ep.add(t[e])}var Wn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),is=Object.prototype.hasOwnProperty,Cg=/^[: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]*$/,Yd={},Qd={};function Ng(e){return is.call(Qd,e)?!0:is.call(Yd,e)?!1:Cg.test(e)?Qd[e]=!0:(Yd[e]=!0,!1)}function Mg(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Tg(e,t,n,r){if(t===null||typeof t>"u"||Mg(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function jt(e,t,n,r,o,i,l){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=l}var Tt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Tt[e]=new jt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Tt[t]=new jt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Tt[e]=new jt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Tt[e]=new jt(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){Tt[e]=new jt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Tt[e]=new jt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Tt[e]=new jt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Tt[e]=new jt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Tt[e]=new jt(e,5,!1,e.toLowerCase(),null,!1,!1)});var Js=/[\-:]([a-z])/g;function Zs(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(Js,Zs);Tt[t]=new jt(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(Js,Zs);Tt[t]=new jt(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(Js,Zs);Tt[t]=new jt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Tt[e]=new jt(e,1,!1,e.toLowerCase(),null,!1,!1)});Tt.xlinkHref=new jt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Tt[e]=new jt(e,1,!1,e.toLowerCase(),null,!0,!0)});function ec(e,t,n,r){var o=Tt.hasOwnProperty(t)?Tt[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(Tg(t,n,o,r)&&(n=null),r||o===null?Ng(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=n===null?o.type===3?!1:"":n:(t=o.attributeName,r=o.attributeNamespace,n===null?e.removeAttribute(t):(o=o.type,n=o===3||o===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Gn=Sg.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Vo=Symbol.for("react.element"),Zr=Symbol.for("react.portal"),ea=Symbol.for("react.fragment"),tc=Symbol.for("react.strict_mode"),ls=Symbol.for("react.profiler"),tp=Symbol.for("react.provider"),np=Symbol.for("react.context"),nc=Symbol.for("react.forward_ref"),ss=Symbol.for("react.suspense"),cs=Symbol.for("react.suspense_list"),rc=Symbol.for("react.memo"),ar=Symbol.for("react.lazy");Symbol.for("react.scope");Symbol.for("react.debug_trace_mode");var rp=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden");Symbol.for("react.cache");Symbol.for("react.tracing_marker");var qd=Symbol.iterator;function ja(e){return e===null||typeof e!="object"?null:(e=qd&&e[qd]||e["@@iterator"],typeof e=="function"?e:null)}var rt=Object.assign,Ol;function Ka(e){if(Ol===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Ol=t&&t[1]||""}return`
|
|
2
|
-
`+
|
|
3
|
-
`),i=
|
|
1
|
+
(()=>{var rg=Object.create;var Nd=Object.defineProperty;var ag=Object.getOwnPropertyDescriptor;var og=Object.getOwnPropertyNames;var ig=Object.getPrototypeOf,lg=Object.prototype.hasOwnProperty;var Gn=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var sg=(e,t,n,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of og(t))!lg.call(e,o)&&o!==n&&Nd(e,o,{get:()=>t[o],enumerable:!(a=ag(t,o))||a.enumerable});return e};var lr=(e,t,n)=>(n=e!=null?rg(ig(e)):{},sg(t||!e||!e.__esModule?Nd(n,"default",{value:e,enumerable:!0}):n,e));var _d=Gn(Ee=>{"use strict";var Aa=Symbol.for("react.element"),cg=Symbol.for("react.portal"),dg=Symbol.for("react.fragment"),ug=Symbol.for("react.strict_mode"),pg=Symbol.for("react.profiler"),mg=Symbol.for("react.provider"),fg=Symbol.for("react.context"),gg=Symbol.for("react.forward_ref"),hg=Symbol.for("react.suspense"),yg=Symbol.for("react.memo"),vg=Symbol.for("react.lazy"),Td=Symbol.iterator;function bg(e){return e===null||typeof e!="object"?null:(e=Td&&e[Td]||e["@@iterator"],typeof e=="function"?e:null)}var zd={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Rd=Object.assign,Ld={};function Jr(e,t,n){this.props=e,this.context=t,this.refs=Ld,this.updater=n||zd}Jr.prototype.isReactComponent={};Jr.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")};Jr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Dd(){}Dd.prototype=Jr.prototype;function El(e,t,n){this.props=e,this.context=t,this.refs=Ld,this.updater=n||zd}var zl=El.prototype=new Dd;zl.constructor=El;Rd(zl,Jr.prototype);zl.isPureReactComponent=!0;var Md=Array.isArray,Pd=Object.prototype.hasOwnProperty,Rl={current:null},Id={key:!0,ref:!0,__self:!0,__source:!0};function Fd(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)Pd.call(t,a)&&!Id.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),p=0;p<s;p++)c[p]=arguments[p+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:Aa,type:e,key:i,ref:l,props:o,_owner:Rl.current}}function wg(e,t){return{$$typeof:Aa,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Ll(e){return typeof e=="object"&&e!==null&&e.$$typeof===Aa}function xg(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Ed=/\/+/g;function Ml(e,t){return typeof e=="object"&&e!==null&&e.key!=null?xg(""+e.key):t.toString(36)}function Bo(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 Aa:case cg:l=!0}}if(l)return l=e,o=o(l),e=a===""?"."+Ml(l,0):a,Md(o)?(n="",e!=null&&(n=e.replace(Ed,"$&/")+"/"),Bo(o,t,n,"",function(p){return p})):o!=null&&(Ll(o)&&(o=wg(o,n+(!o.key||l&&l.key===o.key?"":(""+o.key).replace(Ed,"$&/")+"/")+e)),t.push(o)),1;if(l=0,a=a===""?".":a+":",Md(e))for(var s=0;s<e.length;s++){i=e[s];var c=a+Ml(i,s);l+=Bo(i,t,n,c,o)}else if(c=bg(e),typeof c=="function")for(e=c.call(e),s=0;!(i=e.next()).done;)i=i.value,c=a+Ml(i,s++),l+=Bo(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 Oo(e,t,n){if(e==null)return e;var a=[],o=0;return Bo(e,a,"","",function(i){return t.call(n,i,o++)}),a}function kg(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 Ht={current:null},Ho={transition:null},Sg={ReactCurrentDispatcher:Ht,ReactCurrentBatchConfig:Ho,ReactCurrentOwner:Rl};function Ad(){throw Error("act(...) is not supported in production builds of React.")}Ee.Children={map:Oo,forEach:function(e,t,n){Oo(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Oo(e,function(){t++}),t},toArray:function(e){return Oo(e,function(t){return t})||[]},only:function(e){if(!Ll(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Ee.Component=Jr;Ee.Fragment=dg;Ee.Profiler=pg;Ee.PureComponent=El;Ee.StrictMode=ug;Ee.Suspense=hg;Ee.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Sg;Ee.act=Ad;Ee.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=Rd({},e.props),o=e.key,i=e.ref,l=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,l=Rl.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(c in t)Pd.call(t,c)&&!Id.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 p=0;p<c;p++)s[p]=arguments[p+2];a.children=s}return{$$typeof:Aa,type:e.type,key:o,ref:i,props:a,_owner:l}};Ee.createContext=function(e){return e={$$typeof:fg,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:mg,_context:e},e.Consumer=e};Ee.createElement=Fd;Ee.createFactory=function(e){var t=Fd.bind(null,e);return t.type=e,t};Ee.createRef=function(){return{current:null}};Ee.forwardRef=function(e){return{$$typeof:gg,render:e}};Ee.isValidElement=Ll;Ee.lazy=function(e){return{$$typeof:vg,_payload:{_status:-1,_result:e},_init:kg}};Ee.memo=function(e,t){return{$$typeof:yg,type:e,compare:t===void 0?null:t}};Ee.startTransition=function(e){var t=Ho.transition;Ho.transition={};try{e()}finally{Ho.transition=t}};Ee.unstable_act=Ad;Ee.useCallback=function(e,t){return Ht.current.useCallback(e,t)};Ee.useContext=function(e){return Ht.current.useContext(e)};Ee.useDebugValue=function(){};Ee.useDeferredValue=function(e){return Ht.current.useDeferredValue(e)};Ee.useEffect=function(e,t){return Ht.current.useEffect(e,t)};Ee.useId=function(){return Ht.current.useId()};Ee.useImperativeHandle=function(e,t,n){return Ht.current.useImperativeHandle(e,t,n)};Ee.useInsertionEffect=function(e,t){return Ht.current.useInsertionEffect(e,t)};Ee.useLayoutEffect=function(e,t){return Ht.current.useLayoutEffect(e,t)};Ee.useMemo=function(e,t){return Ht.current.useMemo(e,t)};Ee.useReducer=function(e,t,n){return Ht.current.useReducer(e,t,n)};Ee.useRef=function(e){return Ht.current.useRef(e)};Ee.useState=function(e){return Ht.current.useState(e)};Ee.useSyncExternalStore=function(e,t,n){return Ht.current.useSyncExternalStore(e,t,n)};Ee.useTransition=function(){return Ht.current.useTransition()};Ee.version="18.3.1"});var _a=Gn((_v,jd)=>{"use strict";jd.exports=_d()});var Yd=Gn(Xe=>{"use strict";function Fl(e,t){var n=e.length;e.push(t);e:for(;0<n;){var a=n-1>>>1,o=e[a];if(0<Wo(o,t))e[a]=t,e[n]=o,n=a;else break e}}function En(e){return e.length===0?null:e[0]}function $o(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,p=e[c];if(0>Wo(s,n))c<o&&0>Wo(p,s)?(e[a]=p,e[c]=n,a=c):(e[a]=s,e[l]=n,a=l);else if(c<o&&0>Wo(p,n))e[a]=p,e[c]=n,a=c;else break e}}return t}function Wo(e,t){var n=e.sortIndex-t.sortIndex;return n!==0?n:e.id-t.id}typeof performance=="object"&&typeof performance.now=="function"?(Od=performance,Xe.unstable_now=function(){return Od.now()}):(Dl=Date,Bd=Dl.now(),Xe.unstable_now=function(){return Dl.now()-Bd});var Od,Dl,Bd,jn=[],sr=[],Cg=1,gn=null,It=3,Vo=!1,Pr=!1,Oa=!1,Ud=typeof setTimeout=="function"?setTimeout:null,$d=typeof clearTimeout=="function"?clearTimeout:null,Hd=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function Al(e){for(var t=En(sr);t!==null;){if(t.callback===null)$o(sr);else if(t.startTime<=e)$o(sr),t.sortIndex=t.expirationTime,Fl(jn,t);else break;t=En(sr)}}function _l(e){if(Oa=!1,Al(e),!Pr)if(En(jn)!==null)Pr=!0,Ol(jl);else{var t=En(sr);t!==null&&Bl(_l,t.startTime-e)}}function jl(e,t){Pr=!1,Oa&&(Oa=!1,$d(Ba),Ba=-1),Vo=!0;var n=It;try{for(Al(t),gn=En(jn);gn!==null&&(!(gn.expirationTime>t)||e&&!Kd());){var a=gn.callback;if(typeof a=="function"){gn.callback=null,It=gn.priorityLevel;var o=a(gn.expirationTime<=t);t=Xe.unstable_now(),typeof o=="function"?gn.callback=o:gn===En(jn)&&$o(jn),Al(t)}else $o(jn);gn=En(jn)}if(gn!==null)var i=!0;else{var l=En(sr);l!==null&&Bl(_l,l.startTime-t),i=!1}return i}finally{gn=null,It=n,Vo=!1}}var Go=!1,Uo=null,Ba=-1,Vd=5,Gd=-1;function Kd(){return!(Xe.unstable_now()-Gd<Vd)}function Pl(){if(Uo!==null){var e=Xe.unstable_now();Gd=e;var t=!0;try{t=Uo(!0,e)}finally{t?ja():(Go=!1,Uo=null)}}else Go=!1}var ja;typeof Hd=="function"?ja=function(){Hd(Pl)}:typeof MessageChannel<"u"?(Il=new MessageChannel,Wd=Il.port2,Il.port1.onmessage=Pl,ja=function(){Wd.postMessage(null)}):ja=function(){Ud(Pl,0)};var Il,Wd;function Ol(e){Uo=e,Go||(Go=!0,ja())}function Bl(e,t){Ba=Ud(function(){e(Xe.unstable_now())},t)}Xe.unstable_IdlePriority=5;Xe.unstable_ImmediatePriority=1;Xe.unstable_LowPriority=4;Xe.unstable_NormalPriority=3;Xe.unstable_Profiling=null;Xe.unstable_UserBlockingPriority=2;Xe.unstable_cancelCallback=function(e){e.callback=null};Xe.unstable_continueExecution=function(){Pr||Vo||(Pr=!0,Ol(jl))};Xe.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"):Vd=0<e?Math.floor(1e3/e):5};Xe.unstable_getCurrentPriorityLevel=function(){return It};Xe.unstable_getFirstCallbackNode=function(){return En(jn)};Xe.unstable_next=function(e){switch(It){case 1:case 2:case 3:var t=3;break;default:t=It}var n=It;It=t;try{return e()}finally{It=n}};Xe.unstable_pauseExecution=function(){};Xe.unstable_requestPaint=function(){};Xe.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=It;It=e;try{return t()}finally{It=n}};Xe.unstable_scheduleCallback=function(e,t,n){var a=Xe.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:Cg++,callback:t,priorityLevel:e,startTime:n,expirationTime:o,sortIndex:-1},n>a?(e.sortIndex=n,Fl(sr,e),En(jn)===null&&e===En(sr)&&(Oa?($d(Ba),Ba=-1):Oa=!0,Bl(_l,n-a))):(e.sortIndex=o,Fl(jn,e),Pr||Vo||(Pr=!0,Ol(jl))),e};Xe.unstable_shouldYield=Kd;Xe.unstable_wrapCallback=function(e){var t=It;return function(){var n=It;It=t;try{return e.apply(this,arguments)}finally{It=n}}}});var Qd=Gn((Ov,qd)=>{"use strict";qd.exports=Yd()});var ef=Gn(sn=>{"use strict";var Ng=_a(),on=Qd();function K(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 rp=new Set,so={};function Gr(e,t){ba(e,t),ba(e+"Capture",t)}function ba(e,t){for(so[e]=t,e=0;e<t.length;e++)rp.add(t[e])}var Jn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),cs=Object.prototype.hasOwnProperty,Tg=/^[: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]*$/,Xd={},Jd={};function Mg(e){return cs.call(Jd,e)?!0:cs.call(Xd,e)?!1:Tg.test(e)?Jd[e]=!0:(Xd[e]=!0,!1)}function Eg(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 zg(e,t,n,a){if(t===null||typeof t>"u"||Eg(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 $t(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 Rt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Rt[e]=new $t(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Rt[t]=new $t(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Rt[e]=new $t(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Rt[e]=new $t(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){Rt[e]=new $t(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Rt[e]=new $t(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Rt[e]=new $t(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Rt[e]=new $t(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Rt[e]=new $t(e,5,!1,e.toLowerCase(),null,!1,!1)});var tc=/[\-:]([a-z])/g;function nc(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(tc,nc);Rt[t]=new $t(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(tc,nc);Rt[t]=new $t(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(tc,nc);Rt[t]=new $t(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Rt[e]=new $t(e,1,!1,e.toLowerCase(),null,!1,!1)});Rt.xlinkHref=new $t("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Rt[e]=new $t(e,1,!1,e.toLowerCase(),null,!0,!0)});function rc(e,t,n,a){var o=Rt.hasOwnProperty(t)?Rt[t]:null;(o!==null?o.type!==0:a||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(zg(t,n,o,a)&&(n=null),a||o===null?Mg(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 nr=Ng.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Ko=Symbol.for("react.element"),ta=Symbol.for("react.portal"),na=Symbol.for("react.fragment"),ac=Symbol.for("react.strict_mode"),ds=Symbol.for("react.profiler"),ap=Symbol.for("react.provider"),op=Symbol.for("react.context"),oc=Symbol.for("react.forward_ref"),us=Symbol.for("react.suspense"),ps=Symbol.for("react.suspense_list"),ic=Symbol.for("react.memo"),dr=Symbol.for("react.lazy");Symbol.for("react.scope");Symbol.for("react.debug_trace_mode");var ip=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden");Symbol.for("react.cache");Symbol.for("react.tracing_marker");var Zd=Symbol.iterator;function Ha(e){return e===null||typeof e!="object"?null:(e=Zd&&e[Zd]||e["@@iterator"],typeof e=="function"?e:null)}var it=Object.assign,Hl;function qa(e){if(Hl===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Hl=t&&t[1]||""}return`
|
|
2
|
+
`+Hl+e}var Wl=!1;function Ul(e,t){if(!e||Wl)return"";Wl=!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(p){var a=p}Reflect.construct(e,[],t)}else{try{t.call()}catch(p){a=p}e.call(t.prototype)}else{try{throw Error()}catch(p){a=p}e()}}catch(p){if(p&&a&&typeof p.stack=="string"){for(var o=p.stack.split(`
|
|
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{jl=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Ka(e):""}function Eg(e){switch(e.tag){case 5:return Ka(e.type);case 16:return Ka("Lazy");case 13:return Ka("Suspense");case 19:return Ka("SuspenseList");case 0:case 2:case 15:return e=Bl(e.type,!1),e;case 11:return e=Bl(e.type.render,!1),e;case 1:return e=Bl(e.type,!0),e;default:return""}}function ds(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 ea:return"Fragment";case Zr:return"Portal";case ls:return"Profiler";case tc:return"StrictMode";case ss:return"Suspense";case cs:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case np:return(e.displayName||"Context")+".Consumer";case tp:return(e._context.displayName||"Context")+".Provider";case nc:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case rc:return t=e.displayName||null,t!==null?t:ds(e.type)||"Memo";case ar:t=e._payload,e=e._init;try{return ds(e(t))}catch{}}return null}function zg(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 ds(t);case 8:return t===tc?"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 vr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function ap(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Rg(e){var t=ap(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(l){r=""+l,i.call(this,l)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(l){r=""+l},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Go(e){e._valueTracker||(e._valueTracker=Rg(e))}function op(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ap(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function xi(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 us(e,t){var n=t.checked;return rt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Xd(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=vr(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function ip(e,t){t=t.checked,t!=null&&ec(e,"checked",t,!1)}function ps(e,t){ip(e,t);var n=vr(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?ms(e,t.type,n):t.hasOwnProperty("defaultValue")&&ms(e,t.type,vr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Jd(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function ms(e,t,n){(t!=="number"||xi(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Ya=Array.isArray;function ua(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+vr(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,r&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function fs(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(V(91));return rt({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Zd(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(V(92));if(Ya(n)){if(1<n.length)throw Error(V(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:vr(n)}}function lp(e,t){var n=vr(t.value),r=vr(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function eu(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function sp(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 gs(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?sp(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Ko,cp=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,o)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Ko=Ko||document.createElement("div"),Ko.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Ko.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function lo(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Xa={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},Lg=["Webkit","ms","Moz","O"];Object.keys(Xa).forEach(function(e){Lg.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Xa[t]=Xa[e]})});function dp(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Xa.hasOwnProperty(e)&&Xa[e]?(""+t).trim():t+"px"}function up(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=dp(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var Pg=rt({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 hs(e,t){if(t){if(Pg[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(V(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(V(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(V(61))}if(t.style!=null&&typeof t.style!="object")throw Error(V(62))}}function ys(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 vs=null;function ac(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var bs=null,pa=null,ma=null;function tu(e){if(e=Mo(e)){if(typeof bs!="function")throw Error(V(280));var t=e.stateNode;t&&(t=Yi(t),bs(e.stateNode,e.type,t))}}function pp(e){pa?ma?ma.push(e):ma=[e]:pa=e}function mp(){if(pa){var e=pa,t=ma;if(ma=pa=null,tu(e),t)for(e=0;e<t.length;e++)tu(t[e])}}function fp(e,t){return e(t)}function gp(){}var Hl=!1;function hp(e,t,n){if(Hl)return e(t,n);Hl=!0;try{return fp(e,t,n)}finally{Hl=!1,(pa!==null||ma!==null)&&(gp(),mp())}}function so(e,t){var n=e.stateNode;if(n===null)return null;var r=Yi(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(V(231,t,typeof n));return n}var xs=!1;if(Wn)try{Xr={},Object.defineProperty(Xr,"passive",{get:function(){xs=!0}}),window.addEventListener("test",Xr,Xr),window.removeEventListener("test",Xr,Xr)}catch{xs=!1}var Xr;function Dg(e,t,n,r,o,i,l,s,c){var p=Array.prototype.slice.call(arguments,3);try{t.apply(n,p)}catch(u){this.onError(u)}}var Ja=!1,wi=null,ki=!1,ws=null,Ig={onError:function(e){Ja=!0,wi=e}};function Ag(e,t,n,r,o,i,l,s,c){Ja=!1,wi=null,Dg.apply(Ig,arguments)}function _g(e,t,n,r,o,i,l,s,c){if(Ag.apply(this,arguments),Ja){if(Ja){var p=wi;Ja=!1,wi=null}else throw Error(V(198));ki||(ki=!0,ws=p)}}function $r(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 yp(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 nu(e){if($r(e)!==e)throw Error(V(188))}function Fg(e){var t=e.alternate;if(!t){if(t=$r(e),t===null)throw Error(V(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(o===null)break;var i=o.alternate;if(i===null){if(r=o.return,r!==null){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return nu(o),e;if(i===r)return nu(o),t;i=i.sibling}throw Error(V(188))}if(n.return!==r.return)n=o,r=i;else{for(var l=!1,s=o.child;s;){if(s===n){l=!0,n=o,r=i;break}if(s===r){l=!0,r=o,n=i;break}s=s.sibling}if(!l){for(s=i.child;s;){if(s===n){l=!0,n=i,r=o;break}if(s===r){l=!0,r=i,n=o;break}s=s.sibling}if(!l)throw Error(V(189))}}if(n.alternate!==r)throw Error(V(190))}if(n.tag!==3)throw Error(V(188));return n.stateNode.current===n?e:t}function vp(e){return e=Fg(e),e!==null?bp(e):null}function bp(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=bp(e);if(t!==null)return t;e=e.sibling}return null}var xp=tn.unstable_scheduleCallback,ru=tn.unstable_cancelCallback,Og=tn.unstable_shouldYield,jg=tn.unstable_requestPaint,dt=tn.unstable_now,Bg=tn.unstable_getCurrentPriorityLevel,oc=tn.unstable_ImmediatePriority,wp=tn.unstable_UserBlockingPriority,Si=tn.unstable_NormalPriority,Hg=tn.unstable_LowPriority,kp=tn.unstable_IdlePriority,$i=null,Ln=null;function Wg(e){if(Ln&&typeof Ln.onCommitFiberRoot=="function")try{Ln.onCommitFiberRoot($i,e,void 0,(e.current.flags&128)===128)}catch{}}var Cn=Math.clz32?Math.clz32:Vg,Ug=Math.log,$g=Math.LN2;function Vg(e){return e>>>=0,e===0?32:31-(Ug(e)/$g|0)|0}var Yo=64,Qo=4194304;function Qa(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 Ci(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,l=n&268435455;if(l!==0){var s=l&~o;s!==0?r=Qa(s):(i&=l,i!==0&&(r=Qa(i)))}else l=n&~o,l!==0?r=Qa(l):i!==0&&(r=Qa(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Cn(t),o=1<<n,r|=e[n],t&=~o;return r}function Gg(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 Kg(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var l=31-Cn(i),s=1<<l,c=o[l];c===-1?(!(s&n)||s&r)&&(o[l]=Gg(s,t)):c<=t&&(e.expiredLanes|=s),i&=~s}}function ks(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Sp(){var e=Yo;return Yo<<=1,!(Yo&4194240)&&(Yo=64),e}function Wl(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Co(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Cn(t),e[t]=n}function Yg(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-Cn(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}function ic(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Cn(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var Be=0;function Cp(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Np,lc,Mp,Tp,Ep,Ss=!1,qo=[],dr=null,ur=null,pr=null,co=new Map,uo=new Map,ir=[],Qg="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 au(e,t){switch(e){case"focusin":case"focusout":dr=null;break;case"dragenter":case"dragleave":ur=null;break;case"mouseover":case"mouseout":pr=null;break;case"pointerover":case"pointerout":co.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":uo.delete(t.pointerId)}}function Ba(e,t,n,r,o,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},t!==null&&(t=Mo(t),t!==null&&lc(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function qg(e,t,n,r,o){switch(t){case"focusin":return dr=Ba(dr,e,t,n,r,o),!0;case"dragenter":return ur=Ba(ur,e,t,n,r,o),!0;case"mouseover":return pr=Ba(pr,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return co.set(i,Ba(co.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,uo.set(i,Ba(uo.get(i)||null,e,t,n,r,o)),!0}return!1}function zp(e){var t=Dr(e.target);if(t!==null){var n=$r(t);if(n!==null){if(t=n.tag,t===13){if(t=yp(n),t!==null){e.blockedOn=t,Ep(e.priority,function(){Mp(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 di(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Cs(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);vs=r,n.target.dispatchEvent(r),vs=null}else return t=Mo(n),t!==null&&lc(t),e.blockedOn=n,!1;t.shift()}return!0}function ou(e,t,n){di(e)&&n.delete(t)}function Xg(){Ss=!1,dr!==null&&di(dr)&&(dr=null),ur!==null&&di(ur)&&(ur=null),pr!==null&&di(pr)&&(pr=null),co.forEach(ou),uo.forEach(ou)}function Ha(e,t){e.blockedOn===t&&(e.blockedOn=null,Ss||(Ss=!0,tn.unstable_scheduleCallback(tn.unstable_NormalPriority,Xg)))}function po(e){function t(o){return Ha(o,e)}if(0<qo.length){Ha(qo[0],e);for(var n=1;n<qo.length;n++){var r=qo[n];r.blockedOn===e&&(r.blockedOn=null)}}for(dr!==null&&Ha(dr,e),ur!==null&&Ha(ur,e),pr!==null&&Ha(pr,e),co.forEach(t),uo.forEach(t),n=0;n<ir.length;n++)r=ir[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<ir.length&&(n=ir[0],n.blockedOn===null);)zp(n),n.blockedOn===null&&ir.shift()}var fa=Gn.ReactCurrentBatchConfig,Ni=!0;function Jg(e,t,n,r){var o=Be,i=fa.transition;fa.transition=null;try{Be=1,sc(e,t,n,r)}finally{Be=o,fa.transition=i}}function Zg(e,t,n,r){var o=Be,i=fa.transition;fa.transition=null;try{Be=4,sc(e,t,n,r)}finally{Be=o,fa.transition=i}}function sc(e,t,n,r){if(Ni){var o=Cs(e,t,n,r);if(o===null)Ql(e,t,r,Mi,n),au(e,r);else if(qg(o,e,t,n,r))r.stopPropagation();else if(au(e,r),t&4&&-1<Qg.indexOf(e)){for(;o!==null;){var i=Mo(o);if(i!==null&&Np(i),i=Cs(e,t,n,r),i===null&&Ql(e,t,r,Mi,n),i===o)break;o=i}o!==null&&r.stopPropagation()}else Ql(e,t,r,null,n)}}var Mi=null;function Cs(e,t,n,r){if(Mi=null,e=ac(r),e=Dr(e),e!==null)if(t=$r(e),t===null)e=null;else if(n=t.tag,n===13){if(e=yp(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 Mi=e,null}function Rp(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(Bg()){case oc:return 1;case wp:return 4;case Si:case Hg:return 16;case kp:return 536870912;default:return 16}default:return 16}}var sr=null,cc=null,ui=null;function Lp(){if(ui)return ui;var e,t=cc,n=t.length,r,o="value"in sr?sr.value:sr.textContent,i=o.length;for(e=0;e<n&&t[e]===o[e];e++);var l=n-e;for(r=1;r<=l&&t[n-r]===o[i-r];r++);return ui=o.slice(e,1<r?1-r:void 0)}function pi(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 Xo(){return!0}function iu(){return!1}function nn(e){function t(n,r,o,i,l){this._reactName=n,this._targetInst=o,this.type=r,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)?Xo:iu,this.isPropagationStopped=iu,this}return rt(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=Xo)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Xo)},persist:function(){},isPersistent:Xo}),t}var Ca={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},dc=nn(Ca),No=rt({},Ca,{view:0,detail:0}),eh=nn(No),Ul,$l,Wa,Vi=rt({},No,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:uc,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!==Wa&&(Wa&&e.type==="mousemove"?(Ul=e.screenX-Wa.screenX,$l=e.screenY-Wa.screenY):$l=Ul=0,Wa=e),Ul)},movementY:function(e){return"movementY"in e?e.movementY:$l}}),lu=nn(Vi),th=rt({},Vi,{dataTransfer:0}),nh=nn(th),rh=rt({},No,{relatedTarget:0}),Vl=nn(rh),ah=rt({},Ca,{animationName:0,elapsedTime:0,pseudoElement:0}),oh=nn(ah),ih=rt({},Ca,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),lh=nn(ih),sh=rt({},Ca,{data:0}),su=nn(sh),ch={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},dh={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"},uh={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function ph(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=uh[e])?!!t[e]:!1}function uc(){return ph}var mh=rt({},No,{key:function(e){if(e.key){var t=ch[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=pi(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?dh[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:uc,charCode:function(e){return e.type==="keypress"?pi(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?pi(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),fh=nn(mh),gh=rt({},Vi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),cu=nn(gh),hh=rt({},No,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:uc}),yh=nn(hh),vh=rt({},Ca,{propertyName:0,elapsedTime:0,pseudoElement:0}),bh=nn(vh),xh=rt({},Vi,{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}),wh=nn(xh),kh=[9,13,27,32],pc=Wn&&"CompositionEvent"in window,Za=null;Wn&&"documentMode"in document&&(Za=document.documentMode);var Sh=Wn&&"TextEvent"in window&&!Za,Pp=Wn&&(!pc||Za&&8<Za&&11>=Za),du=" ",uu=!1;function Dp(e,t){switch(e){case"keyup":return kh.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ip(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ta=!1;function Ch(e,t){switch(e){case"compositionend":return Ip(t);case"keypress":return t.which!==32?null:(uu=!0,du);case"textInput":return e=t.data,e===du&&uu?null:e;default:return null}}function Nh(e,t){if(ta)return e==="compositionend"||!pc&&Dp(e,t)?(e=Lp(),ui=cc=sr=null,ta=!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 Pp&&t.locale!=="ko"?null:t.data;default:return null}}var Mh={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 pu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Mh[e.type]:t==="textarea"}function Ap(e,t,n,r){pp(r),t=Ti(t,"onChange"),0<t.length&&(n=new dc("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var eo=null,mo=null;function Th(e){Gp(e,0)}function Gi(e){var t=aa(e);if(op(t))return e}function Eh(e,t){if(e==="change")return t}var _p=!1;Wn&&(Wn?(Zo="oninput"in document,Zo||(Gl=document.createElement("div"),Gl.setAttribute("oninput","return;"),Zo=typeof Gl.oninput=="function"),Jo=Zo):Jo=!1,_p=Jo&&(!document.documentMode||9<document.documentMode));var Jo,Zo,Gl;function mu(){eo&&(eo.detachEvent("onpropertychange",Fp),mo=eo=null)}function Fp(e){if(e.propertyName==="value"&&Gi(mo)){var t=[];Ap(t,mo,e,ac(e)),hp(Th,t)}}function zh(e,t,n){e==="focusin"?(mu(),eo=t,mo=n,eo.attachEvent("onpropertychange",Fp)):e==="focusout"&&mu()}function Rh(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Gi(mo)}function Lh(e,t){if(e==="click")return Gi(t)}function Ph(e,t){if(e==="input"||e==="change")return Gi(t)}function Dh(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Mn=typeof Object.is=="function"?Object.is:Dh;function fo(e,t){if(Mn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!is.call(t,o)||!Mn(e[o],t[o]))return!1}return!0}function fu(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function gu(e,t){var n=fu(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=fu(n)}}function Op(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Op(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function jp(){for(var e=window,t=xi();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=xi(e.document)}return t}function mc(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 Ih(e){var t=jp(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Op(n.ownerDocument.documentElement,n)){if(r!==null&&mc(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=gu(n,i);var l=gu(n,r);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>r?(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 Ah=Wn&&"documentMode"in document&&11>=document.documentMode,na=null,Ns=null,to=null,Ms=!1;function hu(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ms||na==null||na!==xi(r)||(r=na,"selectionStart"in r&&mc(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),to&&fo(to,r)||(to=r,r=Ti(Ns,"onSelect"),0<r.length&&(t=new dc("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=na)))}function ei(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var ra={animationend:ei("Animation","AnimationEnd"),animationiteration:ei("Animation","AnimationIteration"),animationstart:ei("Animation","AnimationStart"),transitionend:ei("Transition","TransitionEnd")},Kl={},Bp={};Wn&&(Bp=document.createElement("div").style,"AnimationEvent"in window||(delete ra.animationend.animation,delete ra.animationiteration.animation,delete ra.animationstart.animation),"TransitionEvent"in window||delete ra.transitionend.transition);function Ki(e){if(Kl[e])return Kl[e];if(!ra[e])return e;var t=ra[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Bp)return Kl[e]=t[n];return e}var Hp=Ki("animationend"),Wp=Ki("animationiteration"),Up=Ki("animationstart"),$p=Ki("transitionend"),Vp=new Map,yu="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 xr(e,t){Vp.set(e,t),Ur(t,[e])}for(ti=0;ti<yu.length;ti++)ni=yu[ti],vu=ni.toLowerCase(),bu=ni[0].toUpperCase()+ni.slice(1),xr(vu,"on"+bu);var ni,vu,bu,ti;xr(Hp,"onAnimationEnd");xr(Wp,"onAnimationIteration");xr(Up,"onAnimationStart");xr("dblclick","onDoubleClick");xr("focusin","onFocus");xr("focusout","onBlur");xr($p,"onTransitionEnd");ya("onMouseEnter",["mouseout","mouseover"]);ya("onMouseLeave",["mouseout","mouseover"]);ya("onPointerEnter",["pointerout","pointerover"]);ya("onPointerLeave",["pointerout","pointerover"]);Ur("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Ur("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Ur("onBeforeInput",["compositionend","keypress","textInput","paste"]);Ur("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Ur("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Ur("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var qa="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(" "),_h=new Set("cancel close invalid load scroll toggle".split(" ").concat(qa));function xu(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,_g(r,t,void 0,e),e.currentTarget=null}function Gp(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var l=r.length-1;0<=l;l--){var s=r[l],c=s.instance,p=s.currentTarget;if(s=s.listener,c!==i&&o.isPropagationStopped())break e;xu(o,s,p),i=c}else for(l=0;l<r.length;l++){if(s=r[l],c=s.instance,p=s.currentTarget,s=s.listener,c!==i&&o.isPropagationStopped())break e;xu(o,s,p),i=c}}}if(ki)throw e=ws,ki=!1,ws=null,e}function qe(e,t){var n=t[Ls];n===void 0&&(n=t[Ls]=new Set);var r=e+"__bubble";n.has(r)||(Kp(t,e,2,!1),n.add(r))}function Yl(e,t,n){var r=0;t&&(r|=4),Kp(n,e,r,t)}var ri="_reactListening"+Math.random().toString(36).slice(2);function go(e){if(!e[ri]){e[ri]=!0,ep.forEach(function(n){n!=="selectionchange"&&(_h.has(n)||Yl(n,!1,e),Yl(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[ri]||(t[ri]=!0,Yl("selectionchange",!1,t))}}function Kp(e,t,n,r){switch(Rp(t)){case 1:var o=Jg;break;case 4:o=Zg;break;default:o=sc}n=o.bind(null,t,n,e),o=void 0,!xs||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),r?o!==void 0?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):o!==void 0?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Ql(e,t,n,r,o){var i=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var l=r.tag;if(l===3||l===4){var s=r.stateNode.containerInfo;if(s===o||s.nodeType===8&&s.parentNode===o)break;if(l===4)for(l=r.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=Dr(s),l===null)return;if(c=l.tag,c===5||c===6){r=i=l;continue e}s=s.parentNode}}r=r.return}hp(function(){var p=i,u=ac(n),h=[];e:{var g=Vp.get(e);if(g!==void 0){var S=dc,L=e;switch(e){case"keypress":if(pi(n)===0)break e;case"keydown":case"keyup":S=fh;break;case"focusin":L="focus",S=Vl;break;case"focusout":L="blur",S=Vl;break;case"beforeblur":case"afterblur":S=Vl;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":S=lu;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":S=nh;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":S=yh;break;case Hp:case Wp:case Up:S=oh;break;case $p:S=bh;break;case"scroll":S=eh;break;case"wheel":S=wh;break;case"copy":case"cut":case"paste":S=lh;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":S=cu}var P=(t&4)!==0,_=!P&&e==="scroll",v=P?g!==null?g+"Capture":null:g;P=[];for(var f=p,y;f!==null;){y=f;var A=y.stateNode;if(y.tag===5&&A!==null&&(y=A,v!==null&&(A=so(f,v),A!=null&&P.push(ho(f,A,y)))),_)break;f=f.return}0<P.length&&(g=new S(g,L,null,n,u),h.push({event:g,listeners:P}))}}if(!(t&7)){e:{if(g=e==="mouseover"||e==="pointerover",S=e==="mouseout"||e==="pointerout",g&&n!==vs&&(L=n.relatedTarget||n.fromElement)&&(Dr(L)||L[Un]))break e;if((S||g)&&(g=u.window===u?u:(g=u.ownerDocument)?g.defaultView||g.parentWindow:window,S?(L=n.relatedTarget||n.toElement,S=p,L=L?Dr(L):null,L!==null&&(_=$r(L),L!==_||L.tag!==5&&L.tag!==6)&&(L=null)):(S=null,L=p),S!==L)){if(P=lu,A="onMouseLeave",v="onMouseEnter",f="mouse",(e==="pointerout"||e==="pointerover")&&(P=cu,A="onPointerLeave",v="onPointerEnter",f="pointer"),_=S==null?g:aa(S),y=L==null?g:aa(L),g=new P(A,f+"leave",S,n,u),g.target=_,g.relatedTarget=y,A=null,Dr(u)===p&&(P=new P(v,f+"enter",L,n,u),P.target=y,P.relatedTarget=_,A=P),_=A,S&&L)t:{for(P=S,v=L,f=0,y=P;y;y=Jr(y))f++;for(y=0,A=v;A;A=Jr(A))y++;for(;0<f-y;)P=Jr(P),f--;for(;0<y-f;)v=Jr(v),y--;for(;f--;){if(P===v||v!==null&&P===v.alternate)break t;P=Jr(P),v=Jr(v)}P=null}else P=null;S!==null&&wu(h,g,S,P,!1),L!==null&&_!==null&&wu(h,_,L,P,!0)}}e:{if(g=p?aa(p):window,S=g.nodeName&&g.nodeName.toLowerCase(),S==="select"||S==="input"&&g.type==="file")var D=Eh;else if(pu(g))if(_p)D=Ph;else{D=Rh;var R=zh}else(S=g.nodeName)&&S.toLowerCase()==="input"&&(g.type==="checkbox"||g.type==="radio")&&(D=Lh);if(D&&(D=D(e,p))){Ap(h,D,n,u);break e}R&&R(e,g,p),e==="focusout"&&(R=g._wrapperState)&&R.controlled&&g.type==="number"&&ms(g,"number",g.value)}switch(R=p?aa(p):window,e){case"focusin":(pu(R)||R.contentEditable==="true")&&(na=R,Ns=p,to=null);break;case"focusout":to=Ns=na=null;break;case"mousedown":Ms=!0;break;case"contextmenu":case"mouseup":case"dragend":Ms=!1,hu(h,n,u);break;case"selectionchange":if(Ah)break;case"keydown":case"keyup":hu(h,n,u)}var I;if(pc)e:{switch(e){case"compositionstart":var F="onCompositionStart";break e;case"compositionend":F="onCompositionEnd";break e;case"compositionupdate":F="onCompositionUpdate";break e}F=void 0}else ta?Dp(e,n)&&(F="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(F="onCompositionStart");F&&(Pp&&n.locale!=="ko"&&(ta||F!=="onCompositionStart"?F==="onCompositionEnd"&&ta&&(I=Lp()):(sr=u,cc="value"in sr?sr.value:sr.textContent,ta=!0)),R=Ti(p,F),0<R.length&&(F=new su(F,e,null,n,u),h.push({event:F,listeners:R}),I?F.data=I:(I=Ip(n),I!==null&&(F.data=I)))),(I=Sh?Ch(e,n):Nh(e,n))&&(p=Ti(p,"onBeforeInput"),0<p.length&&(u=new su("onBeforeInput","beforeinput",null,n,u),h.push({event:u,listeners:p}),u.data=I))}Gp(h,t)})}function ho(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Ti(e,t){for(var n=t+"Capture",r=[];e!==null;){var o=e,i=o.stateNode;o.tag===5&&i!==null&&(o=i,i=so(e,n),i!=null&&r.unshift(ho(e,i,o)),i=so(e,t),i!=null&&r.push(ho(e,i,o))),e=e.return}return r}function Jr(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function wu(e,t,n,r,o){for(var i=t._reactName,l=[];n!==null&&n!==r;){var s=n,c=s.alternate,p=s.stateNode;if(c!==null&&c===r)break;s.tag===5&&p!==null&&(s=p,o?(c=so(n,i),c!=null&&l.unshift(ho(n,c,s))):o||(c=so(n,i),c!=null&&l.push(ho(n,c,s)))),n=n.return}l.length!==0&&e.push({event:t,listeners:l})}var Fh=/\r\n?/g,Oh=/\u0000|\uFFFD/g;function ku(e){return(typeof e=="string"?e:""+e).replace(Fh,`
|
|
6
|
-
`).replace(Oh,"")}function ai(e,t,n){if(t=ku(t),ku(e)!==t&&n)throw Error(V(425))}function Ei(){}var Ts=null,Es=null;function zs(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 Rs=typeof setTimeout=="function"?setTimeout:void 0,jh=typeof clearTimeout=="function"?clearTimeout:void 0,Su=typeof Promise=="function"?Promise:void 0,Bh=typeof queueMicrotask=="function"?queueMicrotask:typeof Su<"u"?function(e){return Su.resolve(null).then(e).catch(Hh)}:Rs;function Hh(e){setTimeout(function(){throw e})}function ql(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"){if(r===0){e.removeChild(o),po(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);po(t)}function mr(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 Cu(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 Na=Math.random().toString(36).slice(2),Rn="__reactFiber$"+Na,yo="__reactProps$"+Na,Un="__reactContainer$"+Na,Ls="__reactEvents$"+Na,Wh="__reactListeners$"+Na,Uh="__reactHandles$"+Na;function Dr(e){var t=e[Rn];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Un]||n[Rn]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Cu(e);e!==null;){if(n=e[Rn])return n;e=Cu(e)}return t}e=n,n=e.parentNode}return null}function Mo(e){return e=e[Rn]||e[Un],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function aa(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(V(33))}function Yi(e){return e[yo]||null}var Ps=[],oa=-1;function wr(e){return{current:e}}function Xe(e){0>oa||(e.current=Ps[oa],Ps[oa]=null,oa--)}function Qe(e,t){oa++,Ps[oa]=e.current,e.current=t}var br={},It=wr(br),Vt=wr(!1),Or=br;function va(e,t){var n=e.type.contextTypes;if(!n)return br;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Gt(e){return e=e.childContextTypes,e!=null}function zi(){Xe(Vt),Xe(It)}function Nu(e,t,n){if(It.current!==br)throw Error(V(168));Qe(It,t),Qe(Vt,n)}function Yp(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(V(108,zg(e)||"Unknown",o));return rt({},n,r)}function Ri(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||br,Or=It.current,Qe(It,e),Qe(Vt,Vt.current),!0}function Mu(e,t,n){var r=e.stateNode;if(!r)throw Error(V(169));n?(e=Yp(e,t,Or),r.__reactInternalMemoizedMergedChildContext=e,Xe(Vt),Xe(It),Qe(It,e)):Xe(Vt),Qe(Vt,n)}var On=null,Qi=!1,Xl=!1;function Qp(e){On===null?On=[e]:On.push(e)}function $h(e){Qi=!0,Qp(e)}function kr(){if(!Xl&&On!==null){Xl=!0;var e=0,t=Be;try{var n=On;for(Be=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}On=null,Qi=!1}catch(o){throw On!==null&&(On=On.slice(e+1)),xp(oc,kr),o}finally{Be=t,Xl=!1}}return null}var ia=[],la=0,Li=null,Pi=0,cn=[],dn=0,jr=null,jn=1,Bn="";function Lr(e,t){ia[la++]=Pi,ia[la++]=Li,Li=e,Pi=t}function qp(e,t,n){cn[dn++]=jn,cn[dn++]=Bn,cn[dn++]=jr,jr=e;var r=jn;e=Bn;var o=32-Cn(r)-1;r&=~(1<<o),n+=1;var i=32-Cn(t)+o;if(30<i){var l=o-o%5;i=(r&(1<<l)-1).toString(32),r>>=l,o-=l,jn=1<<32-Cn(t)+o|n<<o|r,Bn=i+e}else jn=1<<i|n<<o|r,Bn=e}function fc(e){e.return!==null&&(Lr(e,1),qp(e,1,0))}function gc(e){for(;e===Li;)Li=ia[--la],ia[la]=null,Pi=ia[--la],ia[la]=null;for(;e===jr;)jr=cn[--dn],cn[dn]=null,Bn=cn[--dn],cn[dn]=null,jn=cn[--dn],cn[dn]=null}var en=null,Zt=null,Ze=!1,Sn=null;function Xp(e,t){var n=un(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 Tu(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,en=e,Zt=mr(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,en=e,Zt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=jr!==null?{id:jn,overflow:Bn}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=un(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,en=e,Zt=null,!0):!1;default:return!1}}function Ds(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Is(e){if(Ze){var t=Zt;if(t){var n=t;if(!Tu(e,t)){if(Ds(e))throw Error(V(418));t=mr(n.nextSibling);var r=en;t&&Tu(e,t)?Xp(r,n):(e.flags=e.flags&-4097|2,Ze=!1,en=e)}}else{if(Ds(e))throw Error(V(418));e.flags=e.flags&-4097|2,Ze=!1,en=e}}}function Eu(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;en=e}function oi(e){if(e!==en)return!1;if(!Ze)return Eu(e),Ze=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!zs(e.type,e.memoizedProps)),t&&(t=Zt)){if(Ds(e))throw Jp(),Error(V(418));for(;t;)Xp(e,t),t=mr(t.nextSibling)}if(Eu(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(V(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Zt=mr(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Zt=null}}else Zt=en?mr(e.stateNode.nextSibling):null;return!0}function Jp(){for(var e=Zt;e;)e=mr(e.nextSibling)}function ba(){Zt=en=null,Ze=!1}function hc(e){Sn===null?Sn=[e]:Sn.push(e)}var Vh=Gn.ReactCurrentBatchConfig;function Ua(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(V(309));var r=n.stateNode}if(!r)throw Error(V(147,e));var o=r,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(V(284));if(!n._owner)throw Error(V(290,e))}return e}function ii(e,t){throw e=Object.prototype.toString.call(t),Error(V(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function zu(e){var t=e._init;return t(e._payload)}function Zp(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 r(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=yr(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,A){return f===null||f.tag!==6?(f=as(y,v.mode,A),f.return=v,f):(f=o(f,y),f.return=v,f)}function c(v,f,y,A){var D=y.type;return D===ea?u(v,f,y.props.children,A,y.key):f!==null&&(f.elementType===D||typeof D=="object"&&D!==null&&D.$$typeof===ar&&zu(D)===f.type)?(A=o(f,y.props),A.ref=Ua(v,f,y),A.return=v,A):(A=bi(y.type,y.key,y.props,null,v.mode,A),A.ref=Ua(v,f,y),A.return=v,A)}function p(v,f,y,A){return f===null||f.tag!==4||f.stateNode.containerInfo!==y.containerInfo||f.stateNode.implementation!==y.implementation?(f=os(y,v.mode,A),f.return=v,f):(f=o(f,y.children||[]),f.return=v,f)}function u(v,f,y,A,D){return f===null||f.tag!==7?(f=Fr(y,v.mode,A,D),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=as(""+f,v.mode,y),f.return=v,f;if(typeof f=="object"&&f!==null){switch(f.$$typeof){case Vo:return y=bi(f.type,f.key,f.props,null,v.mode,y),y.ref=Ua(v,null,f),y.return=v,y;case Zr:return f=os(f,v.mode,y),f.return=v,f;case ar:var A=f._init;return h(v,A(f._payload),y)}if(Ya(f)||ja(f))return f=Fr(f,v.mode,y,null),f.return=v,f;ii(v,f)}return null}function g(v,f,y,A){var D=f!==null?f.key:null;if(typeof y=="string"&&y!==""||typeof y=="number")return D!==null?null:s(v,f,""+y,A);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case Vo:return y.key===D?c(v,f,y,A):null;case Zr:return y.key===D?p(v,f,y,A):null;case ar:return D=y._init,g(v,f,D(y._payload),A)}if(Ya(y)||ja(y))return D!==null?null:u(v,f,y,A,null);ii(v,y)}return null}function S(v,f,y,A,D){if(typeof A=="string"&&A!==""||typeof A=="number")return v=v.get(y)||null,s(f,v,""+A,D);if(typeof A=="object"&&A!==null){switch(A.$$typeof){case Vo:return v=v.get(A.key===null?y:A.key)||null,c(f,v,A,D);case Zr:return v=v.get(A.key===null?y:A.key)||null,p(f,v,A,D);case ar:var R=A._init;return S(v,f,y,R(A._payload),D)}if(Ya(A)||ja(A))return v=v.get(y)||null,u(f,v,A,D,null);ii(f,A)}return null}function L(v,f,y,A){for(var D=null,R=null,I=f,F=f=0,W=null;I!==null&&F<y.length;F++){I.index>F?(W=I,I=null):W=I.sibling;var H=g(v,I,y[F],A);if(H===null){I===null&&(I=W);break}e&&I&&H.alternate===null&&t(v,I),f=i(H,f,F),R===null?D=H:R.sibling=H,R=H,I=W}if(F===y.length)return n(v,I),Ze&&Lr(v,F),D;if(I===null){for(;F<y.length;F++)I=h(v,y[F],A),I!==null&&(f=i(I,f,F),R===null?D=I:R.sibling=I,R=I);return Ze&&Lr(v,F),D}for(I=r(v,I);F<y.length;F++)W=S(I,v,F,y[F],A),W!==null&&(e&&W.alternate!==null&&I.delete(W.key===null?F:W.key),f=i(W,f,F),R===null?D=W:R.sibling=W,R=W);return e&&I.forEach(function(te){return t(v,te)}),Ze&&Lr(v,F),D}function P(v,f,y,A){var D=ja(y);if(typeof D!="function")throw Error(V(150));if(y=D.call(y),y==null)throw Error(V(151));for(var R=D=null,I=f,F=f=0,W=null,H=y.next();I!==null&&!H.done;F++,H=y.next()){I.index>F?(W=I,I=null):W=I.sibling;var te=g(v,I,H.value,A);if(te===null){I===null&&(I=W);break}e&&I&&te.alternate===null&&t(v,I),f=i(te,f,F),R===null?D=te:R.sibling=te,R=te,I=W}if(H.done)return n(v,I),Ze&&Lr(v,F),D;if(I===null){for(;!H.done;F++,H=y.next())H=h(v,H.value,A),H!==null&&(f=i(H,f,F),R===null?D=H:R.sibling=H,R=H);return Ze&&Lr(v,F),D}for(I=r(v,I);!H.done;F++,H=y.next())H=S(I,v,F,H.value,A),H!==null&&(e&&H.alternate!==null&&I.delete(H.key===null?F:H.key),f=i(H,f,F),R===null?D=H:R.sibling=H,R=H);return e&&I.forEach(function(ye){return t(v,ye)}),Ze&&Lr(v,F),D}function _(v,f,y,A){if(typeof y=="object"&&y!==null&&y.type===ea&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case Vo:e:{for(var D=y.key,R=f;R!==null;){if(R.key===D){if(D=y.type,D===ea){if(R.tag===7){n(v,R.sibling),f=o(R,y.props.children),f.return=v,v=f;break e}}else if(R.elementType===D||typeof D=="object"&&D!==null&&D.$$typeof===ar&&zu(D)===R.type){n(v,R.sibling),f=o(R,y.props),f.ref=Ua(v,R,y),f.return=v,v=f;break e}n(v,R);break}else t(v,R);R=R.sibling}y.type===ea?(f=Fr(y.props.children,v.mode,A,y.key),f.return=v,v=f):(A=bi(y.type,y.key,y.props,null,v.mode,A),A.ref=Ua(v,f,y),A.return=v,v=A)}return l(v);case Zr:e:{for(R=y.key;f!==null;){if(f.key===R)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=os(y,v.mode,A),f.return=v,v=f}return l(v);case ar:return R=y._init,_(v,f,R(y._payload),A)}if(Ya(y))return L(v,f,y,A);if(ja(y))return P(v,f,y,A);ii(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=as(y,v.mode,A),f.return=v,v=f),l(v)):n(v,f)}return _}var xa=Zp(!0),em=Zp(!1),Di=wr(null),Ii=null,sa=null,yc=null;function vc(){yc=sa=Ii=null}function bc(e){var t=Di.current;Xe(Di),e._currentValue=t}function As(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function ga(e,t){Ii=e,yc=sa=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&($t=!0),e.firstContext=null)}function mn(e){var t=e._currentValue;if(yc!==e)if(e={context:e,memoizedValue:t,next:null},sa===null){if(Ii===null)throw Error(V(308));sa=e,Ii.dependencies={lanes:0,firstContext:e}}else sa=sa.next=e;return t}var Ir=null;function xc(e){Ir===null?Ir=[e]:Ir.push(e)}function tm(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,xc(t)):(n.next=o.next,o.next=n),t.interleaved=n,$n(e,r)}function $n(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 or=!1;function wc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function nm(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 Hn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function fr(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Pe&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,$n(e,n)}return o=r.interleaved,o===null?(t.next=t,xc(r)):(t.next=o.next,o.next=t),r.interleaved=t,$n(e,n)}function mi(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ic(e,n)}}function Ru(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){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:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Ai(e,t,n,r){var o=e.updateQueue;or=!1;var i=o.firstBaseUpdate,l=o.lastBaseUpdate,s=o.shared.pending;if(s!==null){o.shared.pending=null;var c=s,p=c.next;c.next=null,l===null?i=p:l.next=p,l=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==l&&(s===null?u.firstBaseUpdate=p:s.next=p,u.lastBaseUpdate=c))}if(i!==null){var h=o.baseState;l=0,u=p=c=null,s=i;do{var g=s.lane,S=s.eventTime;if((r&g)===g){u!==null&&(u=u.next={eventTime:S,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var L=e,P=s;switch(g=t,S=n,P.tag){case 1:if(L=P.payload,typeof L=="function"){h=L.call(S,h,g);break e}h=L;break e;case 3:L.flags=L.flags&-65537|128;case 0:if(L=P.payload,g=typeof L=="function"?L.call(S,h,g):L,g==null)break e;h=rt({},h,g);break e;case 2:or=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,g=o.effects,g===null?o.effects=[s]:g.push(s))}else S={eventTime:S,lane:g,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(p=u=S,c=h):u=u.next=S,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(u===null&&(c=h),o.baseState=c,o.firstBaseUpdate=p,o.lastBaseUpdate=u,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);Hr|=l,e.lanes=l,e.memoizedState=h}}function Lu(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(o!==null){if(r.callback=null,r=n,typeof o!="function")throw Error(V(191,o));o.call(r)}}}var To={},Pn=wr(To),vo=wr(To),bo=wr(To);function Ar(e){if(e===To)throw Error(V(174));return e}function kc(e,t){switch(Qe(bo,t),Qe(vo,e),Qe(Pn,To),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:gs(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=gs(t,e)}Xe(Pn),Qe(Pn,t)}function wa(){Xe(Pn),Xe(vo),Xe(bo)}function rm(e){Ar(bo.current);var t=Ar(Pn.current),n=gs(t,e.type);t!==n&&(Qe(vo,e),Qe(Pn,n))}function Sc(e){vo.current===e&&(Xe(Pn),Xe(vo))}var tt=wr(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 Jl=[];function Cc(){for(var e=0;e<Jl.length;e++)Jl[e]._workInProgressVersionPrimary=null;Jl.length=0}var fi=Gn.ReactCurrentDispatcher,Zl=Gn.ReactCurrentBatchConfig,Br=0,nt=null,yt=null,wt=null,Fi=!1,no=!1,xo=0,Gh=0;function Lt(){throw Error(V(321))}function Nc(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Mn(e[n],t[n]))return!1;return!0}function Mc(e,t,n,r,o,i){if(Br=i,nt=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,fi.current=e===null||e.memoizedState===null?qh:Xh,e=n(r,o),no){i=0;do{if(no=!1,xo=0,25<=i)throw Error(V(301));i+=1,wt=yt=null,t.updateQueue=null,fi.current=Jh,e=n(r,o)}while(no)}if(fi.current=Oi,t=yt!==null&&yt.next!==null,Br=0,wt=yt=nt=null,Fi=!1,t)throw Error(V(300));return e}function Tc(){var e=xo!==0;return xo=0,e}function zn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return wt===null?nt.memoizedState=wt=e:wt=wt.next=e,wt}function fn(){if(yt===null){var e=nt.alternate;e=e!==null?e.memoizedState:null}else e=yt.next;var t=wt===null?nt.memoizedState:wt.next;if(t!==null)wt=t,yt=e;else{if(e===null)throw Error(V(310));yt=e,e={memoizedState:yt.memoizedState,baseState:yt.baseState,baseQueue:yt.baseQueue,queue:yt.queue,next:null},wt===null?nt.memoizedState=wt=e:wt=wt.next=e}return wt}function wo(e,t){return typeof t=="function"?t(e):t}function es(e){var t=fn(),n=t.queue;if(n===null)throw Error(V(311));n.lastRenderedReducer=e;var r=yt,o=r.baseQueue,i=n.pending;if(i!==null){if(o!==null){var l=o.next;o.next=i.next,i.next=l}r.baseQueue=o=i,n.pending=null}if(o!==null){i=o.next,r=r.baseState;var s=l=null,c=null,p=i;do{var u=p.lane;if((Br&u)===u)c!==null&&(c=c.next={lane:0,action:p.action,hasEagerState:p.hasEagerState,eagerState:p.eagerState,next:null}),r=p.hasEagerState?p.eagerState:e(r,p.action);else{var h={lane:u,action:p.action,hasEagerState:p.hasEagerState,eagerState:p.eagerState,next:null};c===null?(s=c=h,l=r):c=c.next=h,nt.lanes|=u,Hr|=u}p=p.next}while(p!==null&&p!==i);c===null?l=r:c.next=s,Mn(r,t.memoizedState)||($t=!0),t.memoizedState=r,t.baseState=l,t.baseQueue=c,n.lastRenderedState=r}if(e=n.interleaved,e!==null){o=e;do i=o.lane,nt.lanes|=i,Hr|=i,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function ts(e){var t=fn(),n=t.queue;if(n===null)throw Error(V(311));n.lastRenderedReducer=e;var r=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);Mn(i,t.memoizedState)||($t=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function am(){}function om(e,t){var n=nt,r=fn(),o=t(),i=!Mn(r.memoizedState,o);if(i&&(r.memoizedState=o,$t=!0),r=r.queue,Ec(sm.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||wt!==null&&wt.memoizedState.tag&1){if(n.flags|=2048,ko(9,lm.bind(null,n,r,o,t),void 0,null),kt===null)throw Error(V(349));Br&30||im(n,t,o)}return o}function im(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=nt.updateQueue,t===null?(t={lastEffect:null,stores:null},nt.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function lm(e,t,n,r){t.value=n,t.getSnapshot=r,cm(t)&&dm(e)}function sm(e,t,n){return n(function(){cm(t)&&dm(e)})}function cm(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Mn(e,n)}catch{return!0}}function dm(e){var t=$n(e,1);t!==null&&Nn(t,e,1,-1)}function Pu(e){var t=zn();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:wo,lastRenderedState:e},t.queue=e,e=e.dispatch=Qh.bind(null,nt,e),[t.memoizedState,e]}function ko(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=nt.updateQueue,t===null?(t={lastEffect:null,stores:null},nt.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function um(){return fn().memoizedState}function gi(e,t,n,r){var o=zn();nt.flags|=e,o.memoizedState=ko(1|t,n,void 0,r===void 0?null:r)}function qi(e,t,n,r){var o=fn();r=r===void 0?null:r;var i=void 0;if(yt!==null){var l=yt.memoizedState;if(i=l.destroy,r!==null&&Nc(r,l.deps)){o.memoizedState=ko(t,n,i,r);return}}nt.flags|=e,o.memoizedState=ko(1|t,n,i,r)}function Du(e,t){return gi(8390656,8,e,t)}function Ec(e,t){return qi(2048,8,e,t)}function pm(e,t){return qi(4,2,e,t)}function mm(e,t){return qi(4,4,e,t)}function fm(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 gm(e,t,n){return n=n!=null?n.concat([e]):null,qi(4,4,fm.bind(null,t,e),n)}function zc(){}function hm(e,t){var n=fn();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Nc(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function ym(e,t){var n=fn();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Nc(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function vm(e,t,n){return Br&21?(Mn(n,t)||(n=Sp(),nt.lanes|=n,Hr|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,$t=!0),e.memoizedState=n)}function Kh(e,t){var n=Be;Be=n!==0&&4>n?n:4,e(!0);var r=Zl.transition;Zl.transition={};try{e(!1),t()}finally{Be=n,Zl.transition=r}}function bm(){return fn().memoizedState}function Yh(e,t,n){var r=hr(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},xm(e))wm(t,n);else if(n=tm(e,t,n,r),n!==null){var o=Ot();Nn(n,e,r,o),km(n,t,r)}}function Qh(e,t,n){var r=hr(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(xm(e))wm(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,Mn(s,l)){var c=t.interleaved;c===null?(o.next=o,xc(t)):(o.next=c.next,c.next=o),t.interleaved=o;return}}catch{}finally{}n=tm(e,t,o,r),n!==null&&(o=Ot(),Nn(n,e,r,o),km(n,t,r))}}function xm(e){var t=e.alternate;return e===nt||t!==null&&t===nt}function wm(e,t){no=Fi=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function km(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ic(e,n)}}var Oi={readContext:mn,useCallback:Lt,useContext:Lt,useEffect:Lt,useImperativeHandle:Lt,useInsertionEffect:Lt,useLayoutEffect:Lt,useMemo:Lt,useReducer:Lt,useRef:Lt,useState:Lt,useDebugValue:Lt,useDeferredValue:Lt,useTransition:Lt,useMutableSource:Lt,useSyncExternalStore:Lt,useId:Lt,unstable_isNewReconciler:!1},qh={readContext:mn,useCallback:function(e,t){return zn().memoizedState=[e,t===void 0?null:t],e},useContext:mn,useEffect:Du,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,gi(4194308,4,fm.bind(null,t,e),n)},useLayoutEffect:function(e,t){return gi(4194308,4,e,t)},useInsertionEffect:function(e,t){return gi(4,2,e,t)},useMemo:function(e,t){var n=zn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=zn();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Yh.bind(null,nt,e),[r.memoizedState,e]},useRef:function(e){var t=zn();return e={current:e},t.memoizedState=e},useState:Pu,useDebugValue:zc,useDeferredValue:function(e){return zn().memoizedState=e},useTransition:function(){var e=Pu(!1),t=e[0];return e=Kh.bind(null,e[1]),zn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=nt,o=zn();if(Ze){if(n===void 0)throw Error(V(407));n=n()}else{if(n=t(),kt===null)throw Error(V(349));Br&30||im(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,Du(sm.bind(null,r,i,e),[e]),r.flags|=2048,ko(9,lm.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=zn(),t=kt.identifierPrefix;if(Ze){var n=Bn,r=jn;n=(r&~(1<<32-Cn(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=xo++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=Gh++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Xh={readContext:mn,useCallback:hm,useContext:mn,useEffect:Ec,useImperativeHandle:gm,useInsertionEffect:pm,useLayoutEffect:mm,useMemo:ym,useReducer:es,useRef:um,useState:function(){return es(wo)},useDebugValue:zc,useDeferredValue:function(e){var t=fn();return vm(t,yt.memoizedState,e)},useTransition:function(){var e=es(wo)[0],t=fn().memoizedState;return[e,t]},useMutableSource:am,useSyncExternalStore:om,useId:bm,unstable_isNewReconciler:!1},Jh={readContext:mn,useCallback:hm,useContext:mn,useEffect:Ec,useImperativeHandle:gm,useInsertionEffect:pm,useLayoutEffect:mm,useMemo:ym,useReducer:ts,useRef:um,useState:function(){return ts(wo)},useDebugValue:zc,useDeferredValue:function(e){var t=fn();return yt===null?t.memoizedState=e:vm(t,yt.memoizedState,e)},useTransition:function(){var e=ts(wo)[0],t=fn().memoizedState;return[e,t]},useMutableSource:am,useSyncExternalStore:om,useId:bm,unstable_isNewReconciler:!1};function wn(e,t){if(e&&e.defaultProps){t=rt({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function _s(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:rt({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Xi={isMounted:function(e){return(e=e._reactInternals)?$r(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Ot(),o=hr(e),i=Hn(r,o);i.payload=t,n!=null&&(i.callback=n),t=fr(e,i,o),t!==null&&(Nn(t,e,o,r),mi(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Ot(),o=hr(e),i=Hn(r,o);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=fr(e,i,o),t!==null&&(Nn(t,e,o,r),mi(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Ot(),r=hr(e),o=Hn(n,r);o.tag=2,t!=null&&(o.callback=t),t=fr(e,o,r),t!==null&&(Nn(t,e,r,n),mi(t,e,r))}};function Iu(e,t,n,r,o,i,l){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,i,l):t.prototype&&t.prototype.isPureReactComponent?!fo(n,r)||!fo(o,i):!0}function Sm(e,t,n){var r=!1,o=br,i=t.contextType;return typeof i=="object"&&i!==null?i=mn(i):(o=Gt(t)?Or:It.current,r=t.contextTypes,i=(r=r!=null)?va(e,o):br),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Xi,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function Au(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Xi.enqueueReplaceState(t,t.state,null)}function Fs(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},wc(e);var i=t.contextType;typeof i=="object"&&i!==null?o.context=mn(i):(i=Gt(t)?Or:It.current,o.context=va(e,i)),o.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(_s(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&&Xi.enqueueReplaceState(o,o.state,null),Ai(e,n,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function ka(e,t){try{var n="",r=t;do n+=Eg(r),r=r.return;while(r);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{Wl=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?qa(e):""}function Rg(e){switch(e.tag){case 5:return qa(e.type);case 16:return qa("Lazy");case 13:return qa("Suspense");case 19:return qa("SuspenseList");case 0:case 2:case 15:return e=Ul(e.type,!1),e;case 11:return e=Ul(e.type.render,!1),e;case 1:return e=Ul(e.type,!0),e;default:return""}}function ms(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 na:return"Fragment";case ta:return"Portal";case ds:return"Profiler";case ac:return"StrictMode";case us:return"Suspense";case ps:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case op:return(e.displayName||"Context")+".Consumer";case ap:return(e._context.displayName||"Context")+".Provider";case oc:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ic:return t=e.displayName||null,t!==null?t:ms(e.type)||"Memo";case dr:t=e._payload,e=e._init;try{return ms(e(t))}catch{}}return null}function Lg(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 ms(t);case 8:return t===ac?"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 Cr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function lp(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Dg(e){var t=lp(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 Yo(e){e._valueTracker||(e._valueTracker=Dg(e))}function sp(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),a="";return e&&(a=lp(e)?e.checked?"true":"false":e.value),e=a,e!==n?(t.setValue(e),!0):!1}function ki(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 fs(e,t){var n=t.checked;return it({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function eu(e,t){var n=t.defaultValue==null?"":t.defaultValue,a=t.checked!=null?t.checked:t.defaultChecked;n=Cr(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 cp(e,t){t=t.checked,t!=null&&rc(e,"checked",t,!1)}function gs(e,t){cp(e,t);var n=Cr(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")?hs(e,t.type,n):t.hasOwnProperty("defaultValue")&&hs(e,t.type,Cr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function tu(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 hs(e,t,n){(t!=="number"||ki(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Qa=Array.isArray;function ma(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=""+Cr(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 ys(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(K(91));return it({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function nu(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(K(92));if(Qa(n)){if(1<n.length)throw Error(K(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Cr(n)}}function dp(e,t){var n=Cr(t.value),a=Cr(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 ru(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function up(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 vs(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?up(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var qo,pp=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(qo=qo||document.createElement("div"),qo.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=qo.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function co(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Za={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},Pg=["Webkit","ms","Moz","O"];Object.keys(Za).forEach(function(e){Pg.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Za[t]=Za[e]})});function mp(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Za.hasOwnProperty(e)&&Za[e]?(""+t).trim():t+"px"}function fp(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var a=n.indexOf("--")===0,o=mp(n,t[n],a);n==="float"&&(n="cssFloat"),a?e.setProperty(n,o):e[n]=o}}var Ig=it({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 bs(e,t){if(t){if(Ig[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(K(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(K(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(K(61))}if(t.style!=null&&typeof t.style!="object")throw Error(K(62))}}function ws(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 xs=null;function lc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ks=null,fa=null,ga=null;function au(e){if(e=Eo(e)){if(typeof ks!="function")throw Error(K(280));var t=e.stateNode;t&&(t=Qi(t),ks(e.stateNode,e.type,t))}}function gp(e){fa?ga?ga.push(e):ga=[e]:fa=e}function hp(){if(fa){var e=fa,t=ga;if(ga=fa=null,au(e),t)for(e=0;e<t.length;e++)au(t[e])}}function yp(e,t){return e(t)}function vp(){}var $l=!1;function bp(e,t,n){if($l)return e(t,n);$l=!0;try{return yp(e,t,n)}finally{$l=!1,(fa!==null||ga!==null)&&(vp(),hp())}}function uo(e,t){var n=e.stateNode;if(n===null)return null;var a=Qi(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(K(231,t,typeof n));return n}var Ss=!1;if(Jn)try{Zr={},Object.defineProperty(Zr,"passive",{get:function(){Ss=!0}}),window.addEventListener("test",Zr,Zr),window.removeEventListener("test",Zr,Zr)}catch{Ss=!1}var Zr;function Fg(e,t,n,a,o,i,l,s,c){var p=Array.prototype.slice.call(arguments,3);try{t.apply(n,p)}catch(u){this.onError(u)}}var eo=!1,Si=null,Ci=!1,Cs=null,Ag={onError:function(e){eo=!0,Si=e}};function _g(e,t,n,a,o,i,l,s,c){eo=!1,Si=null,Fg.apply(Ag,arguments)}function jg(e,t,n,a,o,i,l,s,c){if(_g.apply(this,arguments),eo){if(eo){var p=Si;eo=!1,Si=null}else throw Error(K(198));Ci||(Ci=!0,Cs=p)}}function Kr(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 wp(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 ou(e){if(Kr(e)!==e)throw Error(K(188))}function Og(e){var t=e.alternate;if(!t){if(t=Kr(e),t===null)throw Error(K(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 ou(o),e;if(i===a)return ou(o),t;i=i.sibling}throw Error(K(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(K(189))}}if(n.alternate!==a)throw Error(K(190))}if(n.tag!==3)throw Error(K(188));return n.stateNode.current===n?e:t}function xp(e){return e=Og(e),e!==null?kp(e):null}function kp(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=kp(e);if(t!==null)return t;e=e.sibling}return null}var Sp=on.unstable_scheduleCallback,iu=on.unstable_cancelCallback,Bg=on.unstable_shouldYield,Hg=on.unstable_requestPaint,mt=on.unstable_now,Wg=on.unstable_getCurrentPriorityLevel,sc=on.unstable_ImmediatePriority,Cp=on.unstable_UserBlockingPriority,Ni=on.unstable_NormalPriority,Ug=on.unstable_LowPriority,Np=on.unstable_IdlePriority,Gi=null,Wn=null;function $g(e){if(Wn&&typeof Wn.onCommitFiberRoot=="function")try{Wn.onCommitFiberRoot(Gi,e,void 0,(e.current.flags&128)===128)}catch{}}var Pn=Math.clz32?Math.clz32:Kg,Vg=Math.log,Gg=Math.LN2;function Kg(e){return e>>>=0,e===0?32:31-(Vg(e)/Gg|0)|0}var Qo=64,Xo=4194304;function Xa(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 Ti(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=Xa(s):(i&=l,i!==0&&(a=Xa(i)))}else l=n&~o,l!==0?a=Xa(l):i!==0&&(a=Xa(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 Yg(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 qg(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]=Yg(s,t)):c<=t&&(e.expiredLanes|=s),i&=~s}}function Ns(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Tp(){var e=Qo;return Qo<<=1,!(Qo&4194240)&&(Qo=64),e}function Vl(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function To(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 Qg(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 cc(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 Ke=0;function Mp(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Ep,dc,zp,Rp,Lp,Ts=!1,Jo=[],hr=null,yr=null,vr=null,po=new Map,mo=new Map,pr=[],Xg="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 lu(e,t){switch(e){case"focusin":case"focusout":hr=null;break;case"dragenter":case"dragleave":yr=null;break;case"mouseover":case"mouseout":vr=null;break;case"pointerover":case"pointerout":po.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":mo.delete(t.pointerId)}}function Wa(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=Eo(t),t!==null&&dc(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function Jg(e,t,n,a,o){switch(t){case"focusin":return hr=Wa(hr,e,t,n,a,o),!0;case"dragenter":return yr=Wa(yr,e,t,n,a,o),!0;case"mouseover":return vr=Wa(vr,e,t,n,a,o),!0;case"pointerover":var i=o.pointerId;return po.set(i,Wa(po.get(i)||null,e,t,n,a,o)),!0;case"gotpointercapture":return i=o.pointerId,mo.set(i,Wa(mo.get(i)||null,e,t,n,a,o)),!0}return!1}function Dp(e){var t=Ar(e.target);if(t!==null){var n=Kr(t);if(n!==null){if(t=n.tag,t===13){if(t=wp(n),t!==null){e.blockedOn=t,Lp(e.priority,function(){zp(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 pi(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Ms(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var a=new n.constructor(n.type,n);xs=a,n.target.dispatchEvent(a),xs=null}else return t=Eo(n),t!==null&&dc(t),e.blockedOn=n,!1;t.shift()}return!0}function su(e,t,n){pi(e)&&n.delete(t)}function Zg(){Ts=!1,hr!==null&&pi(hr)&&(hr=null),yr!==null&&pi(yr)&&(yr=null),vr!==null&&pi(vr)&&(vr=null),po.forEach(su),mo.forEach(su)}function Ua(e,t){e.blockedOn===t&&(e.blockedOn=null,Ts||(Ts=!0,on.unstable_scheduleCallback(on.unstable_NormalPriority,Zg)))}function fo(e){function t(o){return Ua(o,e)}if(0<Jo.length){Ua(Jo[0],e);for(var n=1;n<Jo.length;n++){var a=Jo[n];a.blockedOn===e&&(a.blockedOn=null)}}for(hr!==null&&Ua(hr,e),yr!==null&&Ua(yr,e),vr!==null&&Ua(vr,e),po.forEach(t),mo.forEach(t),n=0;n<pr.length;n++)a=pr[n],a.blockedOn===e&&(a.blockedOn=null);for(;0<pr.length&&(n=pr[0],n.blockedOn===null);)Dp(n),n.blockedOn===null&&pr.shift()}var ha=nr.ReactCurrentBatchConfig,Mi=!0;function eh(e,t,n,a){var o=Ke,i=ha.transition;ha.transition=null;try{Ke=1,uc(e,t,n,a)}finally{Ke=o,ha.transition=i}}function th(e,t,n,a){var o=Ke,i=ha.transition;ha.transition=null;try{Ke=4,uc(e,t,n,a)}finally{Ke=o,ha.transition=i}}function uc(e,t,n,a){if(Mi){var o=Ms(e,t,n,a);if(o===null)Jl(e,t,a,Ei,n),lu(e,a);else if(Jg(o,e,t,n,a))a.stopPropagation();else if(lu(e,a),t&4&&-1<Xg.indexOf(e)){for(;o!==null;){var i=Eo(o);if(i!==null&&Ep(i),i=Ms(e,t,n,a),i===null&&Jl(e,t,a,Ei,n),i===o)break;o=i}o!==null&&a.stopPropagation()}else Jl(e,t,a,null,n)}}var Ei=null;function Ms(e,t,n,a){if(Ei=null,e=lc(a),e=Ar(e),e!==null)if(t=Kr(e),t===null)e=null;else if(n=t.tag,n===13){if(e=wp(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 Ei=e,null}function Pp(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(Wg()){case sc:return 1;case Cp:return 4;case Ni:case Ug:return 16;case Np:return 536870912;default:return 16}default:return 16}}var fr=null,pc=null,mi=null;function Ip(){if(mi)return mi;var e,t=pc,n=t.length,a,o="value"in fr?fr.value:fr.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 mi=o.slice(e,1<a?1-a:void 0)}function fi(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 Zo(){return!0}function cu(){return!1}function ln(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)?Zo:cu,this.isPropagationStopped=cu,this}return it(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=Zo)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Zo)},persist:function(){},isPersistent:Zo}),t}var Ta={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},mc=ln(Ta),Mo=it({},Ta,{view:0,detail:0}),nh=ln(Mo),Gl,Kl,$a,Ki=it({},Mo,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:fc,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!==$a&&($a&&e.type==="mousemove"?(Gl=e.screenX-$a.screenX,Kl=e.screenY-$a.screenY):Kl=Gl=0,$a=e),Gl)},movementY:function(e){return"movementY"in e?e.movementY:Kl}}),du=ln(Ki),rh=it({},Ki,{dataTransfer:0}),ah=ln(rh),oh=it({},Mo,{relatedTarget:0}),Yl=ln(oh),ih=it({},Ta,{animationName:0,elapsedTime:0,pseudoElement:0}),lh=ln(ih),sh=it({},Ta,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),ch=ln(sh),dh=it({},Ta,{data:0}),uu=ln(dh),uh={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ph={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"},mh={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function fh(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=mh[e])?!!t[e]:!1}function fc(){return fh}var gh=it({},Mo,{key:function(e){if(e.key){var t=uh[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=fi(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?ph[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:fc,charCode:function(e){return e.type==="keypress"?fi(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?fi(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),hh=ln(gh),yh=it({},Ki,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),pu=ln(yh),vh=it({},Mo,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:fc}),bh=ln(vh),wh=it({},Ta,{propertyName:0,elapsedTime:0,pseudoElement:0}),xh=ln(wh),kh=it({},Ki,{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}),Sh=ln(kh),Ch=[9,13,27,32],gc=Jn&&"CompositionEvent"in window,to=null;Jn&&"documentMode"in document&&(to=document.documentMode);var Nh=Jn&&"TextEvent"in window&&!to,Fp=Jn&&(!gc||to&&8<to&&11>=to),mu=" ",fu=!1;function Ap(e,t){switch(e){case"keyup":return Ch.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 ra=!1;function Th(e,t){switch(e){case"compositionend":return _p(t);case"keypress":return t.which!==32?null:(fu=!0,mu);case"textInput":return e=t.data,e===mu&&fu?null:e;default:return null}}function Mh(e,t){if(ra)return e==="compositionend"||!gc&&Ap(e,t)?(e=Ip(),mi=pc=fr=null,ra=!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 Fp&&t.locale!=="ko"?null:t.data;default:return null}}var Eh={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 gu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Eh[e.type]:t==="textarea"}function jp(e,t,n,a){gp(a),t=zi(t,"onChange"),0<t.length&&(n=new mc("onChange","change",null,n,a),e.push({event:n,listeners:t}))}var no=null,go=null;function zh(e){qp(e,0)}function Yi(e){var t=ia(e);if(sp(t))return e}function Rh(e,t){if(e==="change")return t}var Op=!1;Jn&&(Jn?(ti="oninput"in document,ti||(ql=document.createElement("div"),ql.setAttribute("oninput","return;"),ti=typeof ql.oninput=="function"),ei=ti):ei=!1,Op=ei&&(!document.documentMode||9<document.documentMode));var ei,ti,ql;function hu(){no&&(no.detachEvent("onpropertychange",Bp),go=no=null)}function Bp(e){if(e.propertyName==="value"&&Yi(go)){var t=[];jp(t,go,e,lc(e)),bp(zh,t)}}function Lh(e,t,n){e==="focusin"?(hu(),no=t,go=n,no.attachEvent("onpropertychange",Bp)):e==="focusout"&&hu()}function Dh(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Yi(go)}function Ph(e,t){if(e==="click")return Yi(t)}function Ih(e,t){if(e==="input"||e==="change")return Yi(t)}function Fh(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Fn=typeof Object.is=="function"?Object.is:Fh;function ho(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(!cs.call(t,o)||!Fn(e[o],t[o]))return!1}return!0}function yu(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function vu(e,t){var n=yu(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=yu(n)}}function Hp(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Hp(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Wp(){for(var e=window,t=ki();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=ki(e.document)}return t}function hc(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 Ah(e){var t=Wp(),n=e.focusedElem,a=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Hp(n.ownerDocument.documentElement,n)){if(a!==null&&hc(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=vu(n,i);var l=vu(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 _h=Jn&&"documentMode"in document&&11>=document.documentMode,aa=null,Es=null,ro=null,zs=!1;function bu(e,t,n){var a=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;zs||aa==null||aa!==ki(a)||(a=aa,"selectionStart"in a&&hc(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}),ro&&ho(ro,a)||(ro=a,a=zi(Es,"onSelect"),0<a.length&&(t=new mc("onSelect","select",null,t,n),e.push({event:t,listeners:a}),t.target=aa)))}function ni(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var oa={animationend:ni("Animation","AnimationEnd"),animationiteration:ni("Animation","AnimationIteration"),animationstart:ni("Animation","AnimationStart"),transitionend:ni("Transition","TransitionEnd")},Ql={},Up={};Jn&&(Up=document.createElement("div").style,"AnimationEvent"in window||(delete oa.animationend.animation,delete oa.animationiteration.animation,delete oa.animationstart.animation),"TransitionEvent"in window||delete oa.transitionend.transition);function qi(e){if(Ql[e])return Ql[e];if(!oa[e])return e;var t=oa[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Up)return Ql[e]=t[n];return e}var $p=qi("animationend"),Vp=qi("animationiteration"),Gp=qi("animationstart"),Kp=qi("transitionend"),Yp=new Map,wu="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 Tr(e,t){Yp.set(e,t),Gr(t,[e])}for(ri=0;ri<wu.length;ri++)ai=wu[ri],xu=ai.toLowerCase(),ku=ai[0].toUpperCase()+ai.slice(1),Tr(xu,"on"+ku);var ai,xu,ku,ri;Tr($p,"onAnimationEnd");Tr(Vp,"onAnimationIteration");Tr(Gp,"onAnimationStart");Tr("dblclick","onDoubleClick");Tr("focusin","onFocus");Tr("focusout","onBlur");Tr(Kp,"onTransitionEnd");ba("onMouseEnter",["mouseout","mouseover"]);ba("onMouseLeave",["mouseout","mouseover"]);ba("onPointerEnter",["pointerout","pointerover"]);ba("onPointerLeave",["pointerout","pointerover"]);Gr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Gr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Gr("onBeforeInput",["compositionend","keypress","textInput","paste"]);Gr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Gr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Gr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ja="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(" "),jh=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ja));function Su(e,t,n){var a=e.type||"unknown-event";e.currentTarget=n,jg(a,t,void 0,e),e.currentTarget=null}function qp(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,p=s.currentTarget;if(s=s.listener,c!==i&&o.isPropagationStopped())break e;Su(o,s,p),i=c}else for(l=0;l<a.length;l++){if(s=a[l],c=s.instance,p=s.currentTarget,s=s.listener,c!==i&&o.isPropagationStopped())break e;Su(o,s,p),i=c}}}if(Ci)throw e=Cs,Ci=!1,Cs=null,e}function et(e,t){var n=t[Is];n===void 0&&(n=t[Is]=new Set);var a=e+"__bubble";n.has(a)||(Qp(t,e,2,!1),n.add(a))}function Xl(e,t,n){var a=0;t&&(a|=4),Qp(n,e,a,t)}var oi="_reactListening"+Math.random().toString(36).slice(2);function yo(e){if(!e[oi]){e[oi]=!0,rp.forEach(function(n){n!=="selectionchange"&&(jh.has(n)||Xl(n,!1,e),Xl(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[oi]||(t[oi]=!0,Xl("selectionchange",!1,t))}}function Qp(e,t,n,a){switch(Pp(t)){case 1:var o=eh;break;case 4:o=th;break;default:o=uc}n=o.bind(null,t,n,e),o=void 0,!Ss||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 Jl(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=Ar(s),l===null)return;if(c=l.tag,c===5||c===6){a=i=l;continue e}s=s.parentNode}}a=a.return}bp(function(){var p=i,u=lc(n),h=[];e:{var g=Yp.get(e);if(g!==void 0){var k=mc,L=e;switch(e){case"keypress":if(fi(n)===0)break e;case"keydown":case"keyup":k=hh;break;case"focusin":L="focus",k=Yl;break;case"focusout":L="blur",k=Yl;break;case"beforeblur":case"afterblur":k=Yl;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=du;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":k=ah;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":k=bh;break;case $p:case Vp:case Gp:k=lh;break;case Kp:k=xh;break;case"scroll":k=nh;break;case"wheel":k=Sh;break;case"copy":case"cut":case"paste":k=ch;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":k=pu}var D=(t&4)!==0,F=!D&&e==="scroll",v=D?g!==null?g+"Capture":null:g;D=[];for(var f=p,y;f!==null;){y=f;var _=y.stateNode;if(y.tag===5&&_!==null&&(y=_,v!==null&&(_=uo(f,v),_!=null&&D.push(vo(f,_,y)))),F)break;f=f.return}0<D.length&&(g=new k(g,L,null,n,u),h.push({event:g,listeners:D}))}}if(!(t&7)){e:{if(g=e==="mouseover"||e==="pointerover",k=e==="mouseout"||e==="pointerout",g&&n!==xs&&(L=n.relatedTarget||n.fromElement)&&(Ar(L)||L[Zn]))break e;if((k||g)&&(g=u.window===u?u:(g=u.ownerDocument)?g.defaultView||g.parentWindow:window,k?(L=n.relatedTarget||n.toElement,k=p,L=L?Ar(L):null,L!==null&&(F=Kr(L),L!==F||L.tag!==5&&L.tag!==6)&&(L=null)):(k=null,L=p),k!==L)){if(D=du,_="onMouseLeave",v="onMouseEnter",f="mouse",(e==="pointerout"||e==="pointerover")&&(D=pu,_="onPointerLeave",v="onPointerEnter",f="pointer"),F=k==null?g:ia(k),y=L==null?g:ia(L),g=new D(_,f+"leave",k,n,u),g.target=F,g.relatedTarget=y,_=null,Ar(u)===p&&(D=new D(v,f+"enter",L,n,u),D.target=y,D.relatedTarget=F,_=D),F=_,k&&L)t:{for(D=k,v=L,f=0,y=D;y;y=ea(y))f++;for(y=0,_=v;_;_=ea(_))y++;for(;0<f-y;)D=ea(D),f--;for(;0<y-f;)v=ea(v),y--;for(;f--;){if(D===v||v!==null&&D===v.alternate)break t;D=ea(D),v=ea(v)}D=null}else D=null;k!==null&&Cu(h,g,k,D,!1),L!==null&&F!==null&&Cu(h,F,L,D,!0)}}e:{if(g=p?ia(p):window,k=g.nodeName&&g.nodeName.toLowerCase(),k==="select"||k==="input"&&g.type==="file")var I=Rh;else if(gu(g))if(Op)I=Ih;else{I=Dh;var R=Lh}else(k=g.nodeName)&&k.toLowerCase()==="input"&&(g.type==="checkbox"||g.type==="radio")&&(I=Ph);if(I&&(I=I(e,p))){jp(h,I,n,u);break e}R&&R(e,g,p),e==="focusout"&&(R=g._wrapperState)&&R.controlled&&g.type==="number"&&hs(g,"number",g.value)}switch(R=p?ia(p):window,e){case"focusin":(gu(R)||R.contentEditable==="true")&&(aa=R,Es=p,ro=null);break;case"focusout":ro=Es=aa=null;break;case"mousedown":zs=!0;break;case"contextmenu":case"mouseup":case"dragend":zs=!1,bu(h,n,u);break;case"selectionchange":if(_h)break;case"keydown":case"keyup":bu(h,n,u)}var P;if(gc)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 ra?Ap(e,n)&&(A="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(A="onCompositionStart");A&&(Fp&&n.locale!=="ko"&&(ra||A!=="onCompositionStart"?A==="onCompositionEnd"&&ra&&(P=Ip()):(fr=u,pc="value"in fr?fr.value:fr.textContent,ra=!0)),R=zi(p,A),0<R.length&&(A=new uu(A,e,null,n,u),h.push({event:A,listeners:R}),P?A.data=P:(P=_p(n),P!==null&&(A.data=P)))),(P=Nh?Th(e,n):Mh(e,n))&&(p=zi(p,"onBeforeInput"),0<p.length&&(u=new uu("onBeforeInput","beforeinput",null,n,u),h.push({event:u,listeners:p}),u.data=P))}qp(h,t)})}function vo(e,t,n){return{instance:e,listener:t,currentTarget:n}}function zi(e,t){for(var n=t+"Capture",a=[];e!==null;){var o=e,i=o.stateNode;o.tag===5&&i!==null&&(o=i,i=uo(e,n),i!=null&&a.unshift(vo(e,i,o)),i=uo(e,t),i!=null&&a.push(vo(e,i,o))),e=e.return}return a}function ea(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Cu(e,t,n,a,o){for(var i=t._reactName,l=[];n!==null&&n!==a;){var s=n,c=s.alternate,p=s.stateNode;if(c!==null&&c===a)break;s.tag===5&&p!==null&&(s=p,o?(c=uo(n,i),c!=null&&l.unshift(vo(n,c,s))):o||(c=uo(n,i),c!=null&&l.push(vo(n,c,s)))),n=n.return}l.length!==0&&e.push({event:t,listeners:l})}var Oh=/\r\n?/g,Bh=/\u0000|\uFFFD/g;function Nu(e){return(typeof e=="string"?e:""+e).replace(Oh,`
|
|
6
|
+
`).replace(Bh,"")}function ii(e,t,n){if(t=Nu(t),Nu(e)!==t&&n)throw Error(K(425))}function Ri(){}var Rs=null,Ls=null;function Ds(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 Ps=typeof setTimeout=="function"?setTimeout:void 0,Hh=typeof clearTimeout=="function"?clearTimeout:void 0,Tu=typeof Promise=="function"?Promise:void 0,Wh=typeof queueMicrotask=="function"?queueMicrotask:typeof Tu<"u"?function(e){return Tu.resolve(null).then(e).catch(Uh)}:Ps;function Uh(e){setTimeout(function(){throw e})}function Zl(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),fo(t);return}a--}else n!=="$"&&n!=="$?"&&n!=="$!"||a++;n=o}while(n);fo(t)}function br(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 Mu(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 Ma=Math.random().toString(36).slice(2),Hn="__reactFiber$"+Ma,bo="__reactProps$"+Ma,Zn="__reactContainer$"+Ma,Is="__reactEvents$"+Ma,$h="__reactListeners$"+Ma,Vh="__reactHandles$"+Ma;function Ar(e){var t=e[Hn];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Zn]||n[Hn]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Mu(e);e!==null;){if(n=e[Hn])return n;e=Mu(e)}return t}e=n,n=e.parentNode}return null}function Eo(e){return e=e[Hn]||e[Zn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function ia(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(K(33))}function Qi(e){return e[bo]||null}var Fs=[],la=-1;function Mr(e){return{current:e}}function tt(e){0>la||(e.current=Fs[la],Fs[la]=null,la--)}function Je(e,t){la++,Fs[la]=e.current,e.current=t}var Nr={},jt=Mr(Nr),qt=Mr(!1),Hr=Nr;function wa(e,t){var n=e.type.contextTypes;if(!n)return Nr;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 Qt(e){return e=e.childContextTypes,e!=null}function Li(){tt(qt),tt(jt)}function Eu(e,t,n){if(jt.current!==Nr)throw Error(K(168));Je(jt,t),Je(qt,n)}function Xp(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(K(108,Lg(e)||"Unknown",o));return it({},n,a)}function Di(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Nr,Hr=jt.current,Je(jt,e),Je(qt,qt.current),!0}function zu(e,t,n){var a=e.stateNode;if(!a)throw Error(K(169));n?(e=Xp(e,t,Hr),a.__reactInternalMemoizedMergedChildContext=e,tt(qt),tt(jt),Je(jt,e)):tt(qt),Je(qt,n)}var Yn=null,Xi=!1,es=!1;function Jp(e){Yn===null?Yn=[e]:Yn.push(e)}function Gh(e){Xi=!0,Jp(e)}function Er(){if(!es&&Yn!==null){es=!0;var e=0,t=Ke;try{var n=Yn;for(Ke=1;e<n.length;e++){var a=n[e];do a=a(!0);while(a!==null)}Yn=null,Xi=!1}catch(o){throw Yn!==null&&(Yn=Yn.slice(e+1)),Sp(sc,Er),o}finally{Ke=t,es=!1}}return null}var sa=[],ca=0,Pi=null,Ii=0,hn=[],yn=0,Wr=null,qn=1,Qn="";function Ir(e,t){sa[ca++]=Ii,sa[ca++]=Pi,Pi=e,Ii=t}function Zp(e,t,n){hn[yn++]=qn,hn[yn++]=Qn,hn[yn++]=Wr,Wr=e;var a=qn;e=Qn;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,qn=1<<32-Pn(t)+o|n<<o|a,Qn=i+e}else qn=1<<i|n<<o|a,Qn=e}function yc(e){e.return!==null&&(Ir(e,1),Zp(e,1,0))}function vc(e){for(;e===Pi;)Pi=sa[--ca],sa[ca]=null,Ii=sa[--ca],sa[ca]=null;for(;e===Wr;)Wr=hn[--yn],hn[yn]=null,Qn=hn[--yn],hn[yn]=null,qn=hn[--yn],hn[yn]=null}var an=null,rn=null,nt=!1,Dn=null;function em(e,t){var n=vn(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 Ru(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,an=e,rn=br(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,an=e,rn=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Wr!==null?{id:qn,overflow:Qn}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=vn(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,an=e,rn=null,!0):!1;default:return!1}}function As(e){return(e.mode&1)!==0&&(e.flags&128)===0}function _s(e){if(nt){var t=rn;if(t){var n=t;if(!Ru(e,t)){if(As(e))throw Error(K(418));t=br(n.nextSibling);var a=an;t&&Ru(e,t)?em(a,n):(e.flags=e.flags&-4097|2,nt=!1,an=e)}}else{if(As(e))throw Error(K(418));e.flags=e.flags&-4097|2,nt=!1,an=e}}}function Lu(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;an=e}function li(e){if(e!==an)return!1;if(!nt)return Lu(e),nt=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Ds(e.type,e.memoizedProps)),t&&(t=rn)){if(As(e))throw tm(),Error(K(418));for(;t;)em(e,t),t=br(t.nextSibling)}if(Lu(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(K(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){rn=br(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}rn=null}}else rn=an?br(e.stateNode.nextSibling):null;return!0}function tm(){for(var e=rn;e;)e=br(e.nextSibling)}function xa(){rn=an=null,nt=!1}function bc(e){Dn===null?Dn=[e]:Dn.push(e)}var Kh=nr.ReactCurrentBatchConfig;function Va(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(K(309));var a=n.stateNode}if(!a)throw Error(K(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(K(284));if(!n._owner)throw Error(K(290,e))}return e}function si(e,t){throw e=Object.prototype.toString.call(t),Error(K(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Du(e){var t=e._init;return t(e._payload)}function nm(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=Sr(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,_){return f===null||f.tag!==6?(f=ls(y,v.mode,_),f.return=v,f):(f=o(f,y),f.return=v,f)}function c(v,f,y,_){var I=y.type;return I===na?u(v,f,y.props.children,_,y.key):f!==null&&(f.elementType===I||typeof I=="object"&&I!==null&&I.$$typeof===dr&&Du(I)===f.type)?(_=o(f,y.props),_.ref=Va(v,f,y),_.return=v,_):(_=xi(y.type,y.key,y.props,null,v.mode,_),_.ref=Va(v,f,y),_.return=v,_)}function p(v,f,y,_){return f===null||f.tag!==4||f.stateNode.containerInfo!==y.containerInfo||f.stateNode.implementation!==y.implementation?(f=ss(y,v.mode,_),f.return=v,f):(f=o(f,y.children||[]),f.return=v,f)}function u(v,f,y,_,I){return f===null||f.tag!==7?(f=Br(y,v.mode,_,I),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=ls(""+f,v.mode,y),f.return=v,f;if(typeof f=="object"&&f!==null){switch(f.$$typeof){case Ko:return y=xi(f.type,f.key,f.props,null,v.mode,y),y.ref=Va(v,null,f),y.return=v,y;case ta:return f=ss(f,v.mode,y),f.return=v,f;case dr:var _=f._init;return h(v,_(f._payload),y)}if(Qa(f)||Ha(f))return f=Br(f,v.mode,y,null),f.return=v,f;si(v,f)}return null}function g(v,f,y,_){var I=f!==null?f.key:null;if(typeof y=="string"&&y!==""||typeof y=="number")return I!==null?null:s(v,f,""+y,_);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case Ko:return y.key===I?c(v,f,y,_):null;case ta:return y.key===I?p(v,f,y,_):null;case dr:return I=y._init,g(v,f,I(y._payload),_)}if(Qa(y)||Ha(y))return I!==null?null:u(v,f,y,_,null);si(v,y)}return null}function k(v,f,y,_,I){if(typeof _=="string"&&_!==""||typeof _=="number")return v=v.get(y)||null,s(f,v,""+_,I);if(typeof _=="object"&&_!==null){switch(_.$$typeof){case Ko:return v=v.get(_.key===null?y:_.key)||null,c(f,v,_,I);case ta:return v=v.get(_.key===null?y:_.key)||null,p(f,v,_,I);case dr:var R=_._init;return k(v,f,y,R(_._payload),I)}if(Qa(_)||Ha(_))return v=v.get(y)||null,u(f,v,_,I,null);si(f,_)}return null}function L(v,f,y,_){for(var I=null,R=null,P=f,A=f=0,B=null;P!==null&&A<y.length;A++){P.index>A?(B=P,P=null):B=P.sibling;var W=g(v,P,y[A],_);if(W===null){P===null&&(P=B);break}e&&P&&W.alternate===null&&t(v,P),f=i(W,f,A),R===null?I=W:R.sibling=W,R=W,P=B}if(A===y.length)return n(v,P),nt&&Ir(v,A),I;if(P===null){for(;A<y.length;A++)P=h(v,y[A],_),P!==null&&(f=i(P,f,A),R===null?I=P:R.sibling=P,R=P);return nt&&Ir(v,A),I}for(P=a(v,P);A<y.length;A++)B=k(P,v,A,y[A],_),B!==null&&(e&&B.alternate!==null&&P.delete(B.key===null?A:B.key),f=i(B,f,A),R===null?I=B:R.sibling=B,R=B);return e&&P.forEach(function(le){return t(v,le)}),nt&&Ir(v,A),I}function D(v,f,y,_){var I=Ha(y);if(typeof I!="function")throw Error(K(150));if(y=I.call(y),y==null)throw Error(K(151));for(var R=I=null,P=f,A=f=0,B=null,W=y.next();P!==null&&!W.done;A++,W=y.next()){P.index>A?(B=P,P=null):B=P.sibling;var le=g(v,P,W.value,_);if(le===null){P===null&&(P=B);break}e&&P&&le.alternate===null&&t(v,P),f=i(le,f,A),R===null?I=le:R.sibling=le,R=le,P=B}if(W.done)return n(v,P),nt&&Ir(v,A),I;if(P===null){for(;!W.done;A++,W=y.next())W=h(v,W.value,_),W!==null&&(f=i(W,f,A),R===null?I=W:R.sibling=W,R=W);return nt&&Ir(v,A),I}for(P=a(v,P);!W.done;A++,W=y.next())W=k(P,v,A,W.value,_),W!==null&&(e&&W.alternate!==null&&P.delete(W.key===null?A:W.key),f=i(W,f,A),R===null?I=W:R.sibling=W,R=W);return e&&P.forEach(function(ye){return t(v,ye)}),nt&&Ir(v,A),I}function F(v,f,y,_){if(typeof y=="object"&&y!==null&&y.type===na&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case Ko:e:{for(var I=y.key,R=f;R!==null;){if(R.key===I){if(I=y.type,I===na){if(R.tag===7){n(v,R.sibling),f=o(R,y.props.children),f.return=v,v=f;break e}}else if(R.elementType===I||typeof I=="object"&&I!==null&&I.$$typeof===dr&&Du(I)===R.type){n(v,R.sibling),f=o(R,y.props),f.ref=Va(v,R,y),f.return=v,v=f;break e}n(v,R);break}else t(v,R);R=R.sibling}y.type===na?(f=Br(y.props.children,v.mode,_,y.key),f.return=v,v=f):(_=xi(y.type,y.key,y.props,null,v.mode,_),_.ref=Va(v,f,y),_.return=v,v=_)}return l(v);case ta:e:{for(R=y.key;f!==null;){if(f.key===R)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=ss(y,v.mode,_),f.return=v,v=f}return l(v);case dr:return R=y._init,F(v,f,R(y._payload),_)}if(Qa(y))return L(v,f,y,_);if(Ha(y))return D(v,f,y,_);si(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=ls(y,v.mode,_),f.return=v,v=f),l(v)):n(v,f)}return F}var ka=nm(!0),rm=nm(!1),Fi=Mr(null),Ai=null,da=null,wc=null;function xc(){wc=da=Ai=null}function kc(e){var t=Fi.current;tt(Fi),e._currentValue=t}function js(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 ya(e,t){Ai=e,wc=da=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Yt=!0),e.firstContext=null)}function wn(e){var t=e._currentValue;if(wc!==e)if(e={context:e,memoizedValue:t,next:null},da===null){if(Ai===null)throw Error(K(308));da=e,Ai.dependencies={lanes:0,firstContext:e}}else da=da.next=e;return t}var _r=null;function Sc(e){_r===null?_r=[e]:_r.push(e)}function am(e,t,n,a){var o=t.interleaved;return o===null?(n.next=n,Sc(t)):(n.next=o.next,o.next=n),t.interleaved=n,er(e,a)}function er(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 ur=!1;function Cc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function om(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 Xn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function wr(e,t,n){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,Oe&2){var o=a.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),a.pending=t,er(e,n)}return o=a.interleaved,o===null?(t.next=t,Sc(a)):(t.next=o.next,o.next=t),a.interleaved=t,er(e,n)}function gi(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,cc(e,n)}}function Pu(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 _i(e,t,n,a){var o=e.updateQueue;ur=!1;var i=o.firstBaseUpdate,l=o.lastBaseUpdate,s=o.shared.pending;if(s!==null){o.shared.pending=null;var c=s,p=c.next;c.next=null,l===null?i=p:l.next=p,l=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==l&&(s===null?u.firstBaseUpdate=p:s.next=p,u.lastBaseUpdate=c))}if(i!==null){var h=o.baseState;l=0,u=p=c=null,s=i;do{var g=s.lane,k=s.eventTime;if((a&g)===g){u!==null&&(u=u.next={eventTime:k,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var L=e,D=s;switch(g=t,k=n,D.tag){case 1:if(L=D.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=D.payload,g=typeof L=="function"?L.call(k,h,g):L,g==null)break e;h=it({},h,g);break e;case 2:ur=!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},u===null?(p=u=k,c=h):u=u.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(u===null&&(c=h),o.baseState=c,o.firstBaseUpdate=p,o.lastBaseUpdate=u,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);$r|=l,e.lanes=l,e.memoizedState=h}}function Iu(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(K(191,o));o.call(a)}}}var zo={},Un=Mr(zo),wo=Mr(zo),xo=Mr(zo);function jr(e){if(e===zo)throw Error(K(174));return e}function Nc(e,t){switch(Je(xo,t),Je(wo,e),Je(Un,zo),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:vs(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=vs(t,e)}tt(Un),Je(Un,t)}function Sa(){tt(Un),tt(wo),tt(xo)}function im(e){jr(xo.current);var t=jr(Un.current),n=vs(t,e.type);t!==n&&(Je(wo,e),Je(Un,n))}function Tc(e){wo.current===e&&(tt(Un),tt(wo))}var at=Mr(0);function ji(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 ts=[];function Mc(){for(var e=0;e<ts.length;e++)ts[e]._workInProgressVersionPrimary=null;ts.length=0}var hi=nr.ReactCurrentDispatcher,ns=nr.ReactCurrentBatchConfig,Ur=0,ot=null,wt=null,St=null,Oi=!1,ao=!1,ko=0,Yh=0;function Ft(){throw Error(K(321))}function Ec(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 zc(e,t,n,a,o,i){if(Ur=i,ot=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,hi.current=e===null||e.memoizedState===null?Jh:Zh,e=n(a,o),ao){i=0;do{if(ao=!1,ko=0,25<=i)throw Error(K(301));i+=1,St=wt=null,t.updateQueue=null,hi.current=ey,e=n(a,o)}while(ao)}if(hi.current=Bi,t=wt!==null&&wt.next!==null,Ur=0,St=wt=ot=null,Oi=!1,t)throw Error(K(300));return e}function Rc(){var e=ko!==0;return ko=0,e}function Bn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return St===null?ot.memoizedState=St=e:St=St.next=e,St}function xn(){if(wt===null){var e=ot.alternate;e=e!==null?e.memoizedState:null}else e=wt.next;var t=St===null?ot.memoizedState:St.next;if(t!==null)St=t,wt=e;else{if(e===null)throw Error(K(310));wt=e,e={memoizedState:wt.memoizedState,baseState:wt.baseState,baseQueue:wt.baseQueue,queue:wt.queue,next:null},St===null?ot.memoizedState=St=e:St=St.next=e}return St}function So(e,t){return typeof t=="function"?t(e):t}function rs(e){var t=xn(),n=t.queue;if(n===null)throw Error(K(311));n.lastRenderedReducer=e;var a=wt,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,p=i;do{var u=p.lane;if((Ur&u)===u)c!==null&&(c=c.next={lane:0,action:p.action,hasEagerState:p.hasEagerState,eagerState:p.eagerState,next:null}),a=p.hasEagerState?p.eagerState:e(a,p.action);else{var h={lane:u,action:p.action,hasEagerState:p.hasEagerState,eagerState:p.eagerState,next:null};c===null?(s=c=h,l=a):c=c.next=h,ot.lanes|=u,$r|=u}p=p.next}while(p!==null&&p!==i);c===null?l=a:c.next=s,Fn(a,t.memoizedState)||(Yt=!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,ot.lanes|=i,$r|=i,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function as(e){var t=xn(),n=t.queue;if(n===null)throw Error(K(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)||(Yt=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,a]}function lm(){}function sm(e,t){var n=ot,a=xn(),o=t(),i=!Fn(a.memoizedState,o);if(i&&(a.memoizedState=o,Yt=!0),a=a.queue,Lc(um.bind(null,n,a,e),[e]),a.getSnapshot!==t||i||St!==null&&St.memoizedState.tag&1){if(n.flags|=2048,Co(9,dm.bind(null,n,a,o,t),void 0,null),Ct===null)throw Error(K(349));Ur&30||cm(n,t,o)}return o}function cm(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ot.updateQueue,t===null?(t={lastEffect:null,stores:null},ot.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function dm(e,t,n,a){t.value=n,t.getSnapshot=a,pm(t)&&mm(e)}function um(e,t,n){return n(function(){pm(t)&&mm(e)})}function pm(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Fn(e,n)}catch{return!0}}function mm(e){var t=er(e,1);t!==null&&In(t,e,1,-1)}function Fu(e){var t=Bn();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:So,lastRenderedState:e},t.queue=e,e=e.dispatch=Xh.bind(null,ot,e),[t.memoizedState,e]}function Co(e,t,n,a){return e={tag:e,create:t,destroy:n,deps:a,next:null},t=ot.updateQueue,t===null?(t={lastEffect:null,stores:null},ot.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 fm(){return xn().memoizedState}function yi(e,t,n,a){var o=Bn();ot.flags|=e,o.memoizedState=Co(1|t,n,void 0,a===void 0?null:a)}function Ji(e,t,n,a){var o=xn();a=a===void 0?null:a;var i=void 0;if(wt!==null){var l=wt.memoizedState;if(i=l.destroy,a!==null&&Ec(a,l.deps)){o.memoizedState=Co(t,n,i,a);return}}ot.flags|=e,o.memoizedState=Co(1|t,n,i,a)}function Au(e,t){return yi(8390656,8,e,t)}function Lc(e,t){return Ji(2048,8,e,t)}function gm(e,t){return Ji(4,2,e,t)}function hm(e,t){return Ji(4,4,e,t)}function ym(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 vm(e,t,n){return n=n!=null?n.concat([e]):null,Ji(4,4,ym.bind(null,t,e),n)}function Dc(){}function bm(e,t){var n=xn();t=t===void 0?null:t;var a=n.memoizedState;return a!==null&&t!==null&&Ec(t,a[1])?a[0]:(n.memoizedState=[e,t],e)}function wm(e,t){var n=xn();t=t===void 0?null:t;var a=n.memoizedState;return a!==null&&t!==null&&Ec(t,a[1])?a[0]:(e=e(),n.memoizedState=[e,t],e)}function xm(e,t,n){return Ur&21?(Fn(n,t)||(n=Tp(),ot.lanes|=n,$r|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Yt=!0),e.memoizedState=n)}function qh(e,t){var n=Ke;Ke=n!==0&&4>n?n:4,e(!0);var a=ns.transition;ns.transition={};try{e(!1),t()}finally{Ke=n,ns.transition=a}}function km(){return xn().memoizedState}function Qh(e,t,n){var a=kr(e);if(n={lane:a,action:n,hasEagerState:!1,eagerState:null,next:null},Sm(e))Cm(t,n);else if(n=am(e,t,n,a),n!==null){var o=Ut();In(n,e,a,o),Nm(n,t,a)}}function Xh(e,t,n){var a=kr(e),o={lane:a,action:n,hasEagerState:!1,eagerState:null,next:null};if(Sm(e))Cm(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,Sc(t)):(o.next=c.next,c.next=o),t.interleaved=o;return}}catch{}finally{}n=am(e,t,o,a),n!==null&&(o=Ut(),In(n,e,a,o),Nm(n,t,a))}}function Sm(e){var t=e.alternate;return e===ot||t!==null&&t===ot}function Cm(e,t){ao=Oi=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Nm(e,t,n){if(n&4194240){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,cc(e,n)}}var Bi={readContext:wn,useCallback:Ft,useContext:Ft,useEffect:Ft,useImperativeHandle:Ft,useInsertionEffect:Ft,useLayoutEffect:Ft,useMemo:Ft,useReducer:Ft,useRef:Ft,useState:Ft,useDebugValue:Ft,useDeferredValue:Ft,useTransition:Ft,useMutableSource:Ft,useSyncExternalStore:Ft,useId:Ft,unstable_isNewReconciler:!1},Jh={readContext:wn,useCallback:function(e,t){return Bn().memoizedState=[e,t===void 0?null:t],e},useContext:wn,useEffect:Au,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,yi(4194308,4,ym.bind(null,t,e),n)},useLayoutEffect:function(e,t){return yi(4194308,4,e,t)},useInsertionEffect:function(e,t){return yi(4,2,e,t)},useMemo:function(e,t){var n=Bn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var a=Bn();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=Qh.bind(null,ot,e),[a.memoizedState,e]},useRef:function(e){var t=Bn();return e={current:e},t.memoizedState=e},useState:Fu,useDebugValue:Dc,useDeferredValue:function(e){return Bn().memoizedState=e},useTransition:function(){var e=Fu(!1),t=e[0];return e=qh.bind(null,e[1]),Bn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var a=ot,o=Bn();if(nt){if(n===void 0)throw Error(K(407));n=n()}else{if(n=t(),Ct===null)throw Error(K(349));Ur&30||cm(a,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,Au(um.bind(null,a,i,e),[e]),a.flags|=2048,Co(9,dm.bind(null,a,i,n,t),void 0,null),n},useId:function(){var e=Bn(),t=Ct.identifierPrefix;if(nt){var n=Qn,a=qn;n=(a&~(1<<32-Pn(a)-1)).toString(32)+n,t=":"+t+"R"+n,n=ko++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=Yh++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Zh={readContext:wn,useCallback:bm,useContext:wn,useEffect:Lc,useImperativeHandle:vm,useInsertionEffect:gm,useLayoutEffect:hm,useMemo:wm,useReducer:rs,useRef:fm,useState:function(){return rs(So)},useDebugValue:Dc,useDeferredValue:function(e){var t=xn();return xm(t,wt.memoizedState,e)},useTransition:function(){var e=rs(So)[0],t=xn().memoizedState;return[e,t]},useMutableSource:lm,useSyncExternalStore:sm,useId:km,unstable_isNewReconciler:!1},ey={readContext:wn,useCallback:bm,useContext:wn,useEffect:Lc,useImperativeHandle:vm,useInsertionEffect:gm,useLayoutEffect:hm,useMemo:wm,useReducer:as,useRef:fm,useState:function(){return as(So)},useDebugValue:Dc,useDeferredValue:function(e){var t=xn();return wt===null?t.memoizedState=e:xm(t,wt.memoizedState,e)},useTransition:function(){var e=as(So)[0],t=xn().memoizedState;return[e,t]},useMutableSource:lm,useSyncExternalStore:sm,useId:km,unstable_isNewReconciler:!1};function Rn(e,t){if(e&&e.defaultProps){t=it({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Os(e,t,n,a){t=e.memoizedState,n=n(a,t),n=n==null?t:it({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Zi={isMounted:function(e){return(e=e._reactInternals)?Kr(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var a=Ut(),o=kr(e),i=Xn(a,o);i.payload=t,n!=null&&(i.callback=n),t=wr(e,i,o),t!==null&&(In(t,e,o,a),gi(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var a=Ut(),o=kr(e),i=Xn(a,o);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=wr(e,i,o),t!==null&&(In(t,e,o,a),gi(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Ut(),a=kr(e),o=Xn(n,a);o.tag=2,t!=null&&(o.callback=t),t=wr(e,o,a),t!==null&&(In(t,e,a,n),gi(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?!ho(n,a)||!ho(o,i):!0}function Tm(e,t,n){var a=!1,o=Nr,i=t.contextType;return typeof i=="object"&&i!==null?i=wn(i):(o=Qt(t)?Hr:jt.current,a=t.contextTypes,i=(a=a!=null)?wa(e,o):Nr),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Zi,e.stateNode=t,t._reactInternals=e,a&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function ju(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&&Zi.enqueueReplaceState(t,t.state,null)}function Bs(e,t,n,a){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},Cc(e);var i=t.contextType;typeof i=="object"&&i!==null?o.context=wn(i):(i=Qt(t)?Hr:jt.current,o.context=wa(e,i)),o.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(Os(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&&Zi.enqueueReplaceState(o,o.state,null),_i(e,n,o,a),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function Ca(e,t){try{var n="",a=t;do n+=Rg(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 ns(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Os(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Zh=typeof WeakMap=="function"?WeakMap:Map;function Cm(e,t,n){n=Hn(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Bi||(Bi=!0,Ys=r),Os(e,t)},n}function Nm(e,t,n){n=Hn(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){Os(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){Os(e,t),typeof r!="function"&&(gr===null?gr=new Set([this]):gr.add(this));var l=t.stack;this.componentDidCatch(t.value,{componentStack:l!==null?l:""})}),n}function _u(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Zh;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=my.bind(null,e,t,n),t.then(e,e))}function Fu(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 Ou(e,t,n,r,o){return e.mode&1?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Hn(-1,1),t.tag=2,fr(n,t,1))),n.lanes|=1),e)}var ey=Gn.ReactCurrentOwner,$t=!1;function Ft(e,t,n,r){t.child=e===null?em(t,null,n,r):xa(t,e.child,n,r)}function ju(e,t,n,r,o){n=n.render;var i=t.ref;return ga(t,o),r=Mc(e,t,n,r,i,o),n=Tc(),e!==null&&!$t?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Vn(e,t,o)):(Ze&&n&&fc(t),t.flags|=1,Ft(e,t,r,o),t.child)}function Bu(e,t,n,r,o){if(e===null){var i=n.type;return typeof i=="function"&&!Fc(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,Mm(e,t,i,r,o)):(e=bi(n.type,null,r,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:fo,n(l,r)&&e.ref===t.ref)return Vn(e,t,o)}return t.flags|=1,e=yr(i,r),e.ref=t.ref,e.return=t,t.child=e}function Mm(e,t,n,r,o){if(e!==null){var i=e.memoizedProps;if(fo(i,r)&&e.ref===t.ref)if($t=!1,t.pendingProps=r=i,(e.lanes&o)!==0)e.flags&131072&&($t=!0);else return t.lanes=e.lanes,Vn(e,t,o)}return js(e,t,n,r,o)}function Tm(e,t,n){var r=t.pendingProps,o=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Qe(da,Jt),Jt|=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,Qe(da,Jt),Jt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,Qe(da,Jt),Jt|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,Qe(da,Jt),Jt|=r;return Ft(e,t,o,n),t.child}function Em(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function js(e,t,n,r,o){var i=Gt(n)?Or:It.current;return i=va(t,i),ga(t,o),n=Mc(e,t,n,r,i,o),r=Tc(),e!==null&&!$t?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Vn(e,t,o)):(Ze&&r&&fc(t),t.flags|=1,Ft(e,t,n,o),t.child)}function Hu(e,t,n,r,o){if(Gt(n)){var i=!0;Ri(t)}else i=!1;if(ga(t,o),t.stateNode===null)hi(e,t),Sm(t,n,r),Fs(t,n,r,o),r=!0;else if(e===null){var l=t.stateNode,s=t.memoizedProps;l.props=s;var c=l.context,p=n.contextType;typeof p=="object"&&p!==null?p=mn(p):(p=Gt(n)?Or:It.current,p=va(t,p));var u=n.getDerivedStateFromProps,h=typeof u=="function"||typeof l.getSnapshotBeforeUpdate=="function";h||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(s!==r||c!==p)&&Au(t,l,r,p),or=!1;var g=t.memoizedState;l.state=g,Ai(t,r,l,o),c=t.memoizedState,s!==r||g!==c||Vt.current||or?(typeof u=="function"&&(_s(t,n,u,r),c=t.memoizedState),(s=or||Iu(t,n,s,r,g,c,p))?(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=r,t.memoizedState=c),l.props=r,l.state=c,l.context=p,r=s):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{l=t.stateNode,nm(e,t),s=t.memoizedProps,p=t.type===t.elementType?s:wn(t.type,s),l.props=p,h=t.pendingProps,g=l.context,c=n.contextType,typeof c=="object"&&c!==null?c=mn(c):(c=Gt(n)?Or:It.current,c=va(t,c));var S=n.getDerivedStateFromProps;(u=typeof S=="function"||typeof l.getSnapshotBeforeUpdate=="function")||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(s!==h||g!==c)&&Au(t,l,r,c),or=!1,g=t.memoizedState,l.state=g,Ai(t,r,l,o);var L=t.memoizedState;s!==h||g!==L||Vt.current||or?(typeof S=="function"&&(_s(t,n,S,r),L=t.memoizedState),(p=or||Iu(t,n,p,r,g,L,c)||!1)?(u||typeof l.UNSAFE_componentWillUpdate!="function"&&typeof l.componentWillUpdate!="function"||(typeof l.componentWillUpdate=="function"&&l.componentWillUpdate(r,L,c),typeof l.UNSAFE_componentWillUpdate=="function"&&l.UNSAFE_componentWillUpdate(r,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=r,t.memoizedState=L),l.props=r,l.state=L,l.context=c,r=p):(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),r=!1)}return Bs(e,t,n,r,i,o)}function Bs(e,t,n,r,o,i){Em(e,t);var l=(t.flags&128)!==0;if(!r&&!l)return o&&Mu(t,n,!1),Vn(e,t,i);r=t.stateNode,ey.current=t;var s=l&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&l?(t.child=xa(t,e.child,null,i),t.child=xa(t,null,s,i)):Ft(e,t,s,i),t.memoizedState=r.state,o&&Mu(t,n,!0),t.child}function zm(e){var t=e.stateNode;t.pendingContext?Nu(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Nu(e,t.context,!1),kc(e,t.containerInfo)}function Wu(e,t,n,r,o){return ba(),hc(o),t.flags|=256,Ft(e,t,n,r),t.child}var Hs={dehydrated:null,treeContext:null,retryLane:0};function Ws(e){return{baseLanes:e,cachePool:null,transitions:null}}function Rm(e,t,n){var r=t.pendingProps,o=tt.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),Qe(tt,o&1),e===null)return Is(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=r.children,e=r.fallback,i?(r=t.mode,i=t.child,l={mode:"hidden",children:l},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=l):i=el(l,r,0,null),e=Fr(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=Ws(n),t.memoizedState=Hs,e):Rc(t,l));if(o=e.memoizedState,o!==null&&(s=o.dehydrated,s!==null))return ty(e,t,l,r,s,o,n);if(i){i=r.fallback,l=t.mode,o=e.child,s=o.sibling;var c={mode:"hidden",children:r.children};return!(l&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=c,t.deletions=null):(r=yr(o,c),r.subtreeFlags=o.subtreeFlags&14680064),s!==null?i=yr(s,i):(i=Fr(i,l,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,l=e.child.memoizedState,l=l===null?Ws(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},i.memoizedState=l,i.childLanes=e.childLanes&~n,t.memoizedState=Hs,r}return i=e.child,e=i.sibling,r=yr(i,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Rc(e,t){return t=el({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function li(e,t,n,r){return r!==null&&hc(r),xa(t,e.child,null,n),e=Rc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function ty(e,t,n,r,o,i,l){if(n)return t.flags&256?(t.flags&=-257,r=ns(Error(V(422))),li(e,t,l,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=el({mode:"visible",children:r.children},o,0,null),i=Fr(i,o,l,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&xa(t,e.child,null,l),t.child.memoizedState=Ws(l),t.memoizedState=Hs,i);if(!(t.mode&1))return li(e,t,l,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var s=r.dgst;return r=s,i=Error(V(419)),r=ns(i,r,void 0),li(e,t,l,r)}if(s=(l&e.childLanes)!==0,$t||s){if(r=kt,r!==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&(r.suspendedLanes|l)?0:o,o!==0&&o!==i.retryLane&&(i.retryLane=o,$n(e,o),Nn(r,e,o,-1))}return _c(),r=ns(Error(V(421))),li(e,t,l,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=fy.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,Zt=mr(o.nextSibling),en=t,Ze=!0,Sn=null,e!==null&&(cn[dn++]=jn,cn[dn++]=Bn,cn[dn++]=jr,jn=e.id,Bn=e.overflow,jr=t),t=Rc(t,r.children),t.flags|=4096,t)}function Uu(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),As(e.return,t,n)}function rs(e,t,n,r,o){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function Lm(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(Ft(e,t,r.children,n),r=tt.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Uu(e,n,t);else if(e.tag===19)Uu(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Qe(tt,r),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&_i(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),rs(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}rs(t,!0,n,null,i);break;case"together":rs(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function hi(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Vn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Hr|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(V(153));if(t.child!==null){for(e=t.child,n=yr(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=yr(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function ny(e,t,n){switch(t.tag){case 3:zm(t),ba();break;case 5:rm(t);break;case 1:Gt(t.type)&&Ri(t);break;case 4:kc(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;Qe(Di,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Qe(tt,tt.current&1),t.flags|=128,null):n&t.child.childLanes?Rm(e,t,n):(Qe(tt,tt.current&1),e=Vn(e,t,n),e!==null?e.sibling:null);Qe(tt,tt.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Lm(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),Qe(tt,tt.current),r)break;return null;case 22:case 23:return t.lanes=0,Tm(e,t,n)}return Vn(e,t,n)}var Pm,Us,Dm,Im;Pm=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}};Us=function(){};Dm=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Ar(Pn.current);var i=null;switch(n){case"input":o=us(e,o),r=us(e,r),i=[];break;case"select":o=rt({},o,{value:void 0}),r=rt({},r,{value:void 0}),i=[];break;case"textarea":o=fs(e,o),r=fs(e,r),i=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Ei)}hs(n,r);var l;n=null;for(p in o)if(!r.hasOwnProperty(p)&&o.hasOwnProperty(p)&&o[p]!=null)if(p==="style"){var s=o[p];for(l in s)s.hasOwnProperty(l)&&(n||(n={}),n[l]="")}else p!=="dangerouslySetInnerHTML"&&p!=="children"&&p!=="suppressContentEditableWarning"&&p!=="suppressHydrationWarning"&&p!=="autoFocus"&&(io.hasOwnProperty(p)?i||(i=[]):(i=i||[]).push(p,null));for(p in r){var c=r[p];if(s=o?.[p],r.hasOwnProperty(p)&&c!==s&&(c!=null||s!=null))if(p==="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(p,n)),n=c;else p==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,s=s?s.__html:void 0,c!=null&&s!==c&&(i=i||[]).push(p,c)):p==="children"?typeof c!="string"&&typeof c!="number"||(i=i||[]).push(p,""+c):p!=="suppressContentEditableWarning"&&p!=="suppressHydrationWarning"&&(io.hasOwnProperty(p)?(c!=null&&p==="onScroll"&&qe("scroll",e),i||s===c||(i=[])):(i=i||[]).push(p,c))}n&&(i=i||[]).push("style",n);var p=i;(t.updateQueue=p)&&(t.flags|=4)}};Im=function(e,t,n,r){n!==r&&(t.flags|=4)};function $a(e,t){if(!Ze)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Pt(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function ry(e,t,n){var r=t.pendingProps;switch(gc(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Pt(t),null;case 1:return Gt(t.type)&&zi(),Pt(t),null;case 3:return r=t.stateNode,wa(),Xe(Vt),Xe(It),Cc(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(oi(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Sn!==null&&(Xs(Sn),Sn=null))),Us(e,t),Pt(t),null;case 5:Sc(t);var o=Ar(bo.current);if(n=t.type,e!==null&&t.stateNode!=null)Dm(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(V(166));return Pt(t),null}if(e=Ar(Pn.current),oi(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[Rn]=t,r[yo]=i,e=(t.mode&1)!==0,n){case"dialog":qe("cancel",r),qe("close",r);break;case"iframe":case"object":case"embed":qe("load",r);break;case"video":case"audio":for(o=0;o<qa.length;o++)qe(qa[o],r);break;case"source":qe("error",r);break;case"img":case"image":case"link":qe("error",r),qe("load",r);break;case"details":qe("toggle",r);break;case"input":Xd(r,i),qe("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},qe("invalid",r);break;case"textarea":Zd(r,i),qe("invalid",r)}hs(n,i),o=null;for(var l in i)if(i.hasOwnProperty(l)){var s=i[l];l==="children"?typeof s=="string"?r.textContent!==s&&(i.suppressHydrationWarning!==!0&&ai(r.textContent,s,e),o=["children",s]):typeof s=="number"&&r.textContent!==""+s&&(i.suppressHydrationWarning!==!0&&ai(r.textContent,s,e),o=["children",""+s]):io.hasOwnProperty(l)&&s!=null&&l==="onScroll"&&qe("scroll",r)}switch(n){case"input":Go(r),Jd(r,i,!0);break;case"textarea":Go(r),eu(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=Ei)}r=o,t.updateQueue=r,r!==null&&(t.flags|=4)}else{l=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=sp(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=l.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),n==="select"&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[Rn]=t,e[yo]=r,Pm(e,t,!1,!1),t.stateNode=e;e:{switch(l=ys(n,r),n){case"dialog":qe("cancel",e),qe("close",e),o=r;break;case"iframe":case"object":case"embed":qe("load",e),o=r;break;case"video":case"audio":for(o=0;o<qa.length;o++)qe(qa[o],e);o=r;break;case"source":qe("error",e),o=r;break;case"img":case"image":case"link":qe("error",e),qe("load",e),o=r;break;case"details":qe("toggle",e),o=r;break;case"input":Xd(e,r),o=us(e,r),qe("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=rt({},r,{value:void 0}),qe("invalid",e);break;case"textarea":Zd(e,r),o=fs(e,r),qe("invalid",e);break;default:o=r}hs(n,o),s=o;for(i in s)if(s.hasOwnProperty(i)){var c=s[i];i==="style"?up(e,c):i==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,c!=null&&cp(e,c)):i==="children"?typeof c=="string"?(n!=="textarea"||c!=="")&&lo(e,c):typeof c=="number"&&lo(e,""+c):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(io.hasOwnProperty(i)?c!=null&&i==="onScroll"&&qe("scroll",e):c!=null&&ec(e,i,c,l))}switch(n){case"input":Go(e),Jd(e,r,!1);break;case"textarea":Go(e),eu(e);break;case"option":r.value!=null&&e.setAttribute("value",""+vr(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?ua(e,!!r.multiple,i,!1):r.defaultValue!=null&&ua(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=Ei)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Pt(t),null;case 6:if(e&&t.stateNode!=null)Im(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(V(166));if(n=Ar(bo.current),Ar(Pn.current),oi(t)){if(r=t.stateNode,n=t.memoizedProps,r[Rn]=t,(i=r.nodeValue!==n)&&(e=en,e!==null))switch(e.tag){case 3:ai(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&ai(r.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Rn]=t,t.stateNode=r}return Pt(t),null;case 13:if(Xe(tt),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Ze&&Zt!==null&&t.mode&1&&!(t.flags&128))Jp(),ba(),t.flags|=98560,i=!1;else if(i=oi(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(V(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(V(317));i[Rn]=t}else ba(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Pt(t),i=!1}else Sn!==null&&(Xs(Sn),Sn=null),i=!0;if(!i)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||tt.current&1?vt===0&&(vt=3):_c())),t.updateQueue!==null&&(t.flags|=4),Pt(t),null);case 4:return wa(),Us(e,t),e===null&&go(t.stateNode.containerInfo),Pt(t),null;case 10:return bc(t.type._context),Pt(t),null;case 17:return Gt(t.type)&&zi(),Pt(t),null;case 19:if(Xe(tt),i=t.memoizedState,i===null)return Pt(t),null;if(r=(t.flags&128)!==0,l=i.rendering,l===null)if(r)$a(i,!1);else{if(vt!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(l=_i(e),l!==null){for(t.flags|=128,$a(i,!1),r=l.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)i=n,e=r,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 Qe(tt,tt.current&1|2),t.child}e=e.sibling}i.tail!==null&&dt()>Sa&&(t.flags|=128,r=!0,$a(i,!1),t.lanes=4194304)}else{if(!r)if(e=_i(l),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),$a(i,!0),i.tail===null&&i.tailMode==="hidden"&&!l.alternate&&!Ze)return Pt(t),null}else 2*dt()-i.renderingStartTime>Sa&&n!==1073741824&&(t.flags|=128,r=!0,$a(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=dt(),t.sibling=null,n=tt.current,Qe(tt,r?n&1|2:n&1),t):(Pt(t),null);case 22:case 23:return Ac(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Jt&1073741824&&(Pt(t),t.subtreeFlags&6&&(t.flags|=8192)):Pt(t),null;case 24:return null;case 25:return null}throw Error(V(156,t.tag))}function ay(e,t){switch(gc(t),t.tag){case 1:return Gt(t.type)&&zi(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return wa(),Xe(Vt),Xe(It),Cc(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Sc(t),null;case 13:if(Xe(tt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(V(340));ba()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Xe(tt),null;case 4:return wa(),null;case 10:return bc(t.type._context),null;case 22:case 23:return Ac(),null;case 24:return null;default:return null}}var si=!1,Dt=!1,oy=typeof WeakSet=="function"?WeakSet:Set,ie=null;function ca(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){st(e,t,r)}else n.current=null}function $s(e,t,n){try{n()}catch(r){st(e,t,r)}}var $u=!1;function iy(e,t){if(Ts=Ni,e=jp(),mc(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var l=0,s=-1,c=-1,p=0,u=0,h=e,g=null;t:for(;;){for(var S;h!==n||o!==0&&h.nodeType!==3||(s=l+o),h!==i||r!==0&&h.nodeType!==3||(c=l+r),h.nodeType===3&&(l+=h.nodeValue.length),(S=h.firstChild)!==null;)g=h,h=S;for(;;){if(h===e)break t;if(g===n&&++p===o&&(s=l),g===i&&++u===r&&(c=l),(S=h.nextSibling)!==null)break;h=g,g=h.parentNode}h=S}n=s===-1||c===-1?null:{start:s,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(Es={focusedElem:e,selectionRange:n},Ni=!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 P=L.memoizedProps,_=L.memoizedState,v=t.stateNode,f=v.getSnapshotBeforeUpdate(t.elementType===t.type?P:wn(t.type,P),_);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(V(163))}}catch(A){st(t,t.return,A)}if(e=t.sibling,e!==null){e.return=t.return,ie=e;break}ie=t.return}return L=$u,$u=!1,L}function ro(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&$s(t,n,i)}o=o.next}while(o!==r)}}function Ji(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Vs(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 Am(e){var t=e.alternate;t!==null&&(e.alternate=null,Am(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Rn],delete t[yo],delete t[Ls],delete t[Wh],delete t[Uh])),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 _m(e){return e.tag===5||e.tag===3||e.tag===4}function Vu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||_m(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 Gs(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Ei));else if(r!==4&&(e=e.child,e!==null))for(Gs(e,t,n),e=e.sibling;e!==null;)Gs(e,t,n),e=e.sibling}function Ks(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Ks(e,t,n),e=e.sibling;e!==null;)Ks(e,t,n),e=e.sibling}var Nt=null,kn=!1;function rr(e,t,n){for(n=n.child;n!==null;)Fm(e,t,n),n=n.sibling}function Fm(e,t,n){if(Ln&&typeof Ln.onCommitFiberUnmount=="function")try{Ln.onCommitFiberUnmount($i,n)}catch{}switch(n.tag){case 5:Dt||ca(n,t);case 6:var r=Nt,o=kn;Nt=null,rr(e,t,n),Nt=r,kn=o,Nt!==null&&(kn?(e=Nt,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Nt.removeChild(n.stateNode));break;case 18:Nt!==null&&(kn?(e=Nt,n=n.stateNode,e.nodeType===8?ql(e.parentNode,n):e.nodeType===1&&ql(e,n),po(e)):ql(Nt,n.stateNode));break;case 4:r=Nt,o=kn,Nt=n.stateNode.containerInfo,kn=!0,rr(e,t,n),Nt=r,kn=o;break;case 0:case 11:case 14:case 15:if(!Dt&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,l=i.destroy;i=i.tag,l!==void 0&&(i&2||i&4)&&$s(n,t,l),o=o.next}while(o!==r)}rr(e,t,n);break;case 1:if(!Dt&&(ca(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){st(n,t,s)}rr(e,t,n);break;case 21:rr(e,t,n);break;case 22:n.mode&1?(Dt=(r=Dt)||n.memoizedState!==null,rr(e,t,n),Dt=r):rr(e,t,n);break;default:rr(e,t,n)}}function Gu(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new oy),t.forEach(function(r){var o=gy.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function xn(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var o=n[r];try{var i=e,l=t,s=l;e:for(;s!==null;){switch(s.tag){case 5:Nt=s.stateNode,kn=!1;break e;case 3:Nt=s.stateNode.containerInfo,kn=!0;break e;case 4:Nt=s.stateNode.containerInfo,kn=!0;break e}s=s.return}if(Nt===null)throw Error(V(160));Fm(i,l,o),Nt=null,kn=!1;var c=o.alternate;c!==null&&(c.return=null),o.return=null}catch(p){st(o,t,p)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Om(t,e),t=t.sibling}function Om(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(xn(t,e),En(e),r&4){try{ro(3,e,e.return),Ji(3,e)}catch(P){st(e,e.return,P)}try{ro(5,e,e.return)}catch(P){st(e,e.return,P)}}break;case 1:xn(t,e),En(e),r&512&&n!==null&&ca(n,n.return);break;case 5:if(xn(t,e),En(e),r&512&&n!==null&&ca(n,n.return),e.flags&32){var o=e.stateNode;try{lo(o,"")}catch(P){st(e,e.return,P)}}if(r&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&&ip(o,i),ys(s,l);var p=ys(s,i);for(l=0;l<c.length;l+=2){var u=c[l],h=c[l+1];u==="style"?up(o,h):u==="dangerouslySetInnerHTML"?cp(o,h):u==="children"?lo(o,h):ec(o,u,h,p)}switch(s){case"input":ps(o,i);break;case"textarea":lp(o,i);break;case"select":var g=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var S=i.value;S!=null?ua(o,!!i.multiple,S,!1):g!==!!i.multiple&&(i.defaultValue!=null?ua(o,!!i.multiple,i.defaultValue,!0):ua(o,!!i.multiple,i.multiple?[]:"",!1))}o[yo]=i}catch(P){st(e,e.return,P)}}break;case 6:if(xn(t,e),En(e),r&4){if(e.stateNode===null)throw Error(V(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(P){st(e,e.return,P)}}break;case 3:if(xn(t,e),En(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{po(t.containerInfo)}catch(P){st(e,e.return,P)}break;case 4:xn(t,e),En(e);break;case 13:xn(t,e),En(e),o=e.child,o.flags&8192&&(i=o.memoizedState!==null,o.stateNode.isHidden=i,!i||o.alternate!==null&&o.alternate.memoizedState!==null||(Dc=dt())),r&4&&Gu(e);break;case 22:if(u=n!==null&&n.memoizedState!==null,e.mode&1?(Dt=(p=Dt)||u,xn(t,e),Dt=p):xn(t,e),En(e),r&8192){if(p=e.memoizedState!==null,(e.stateNode.isHidden=p)&&!u&&e.mode&1)for(ie=e,u=e.child;u!==null;){for(h=ie=u;ie!==null;){switch(g=ie,S=g.child,g.tag){case 0:case 11:case 14:case 15:ro(4,g,g.return);break;case 1:ca(g,g.return);var L=g.stateNode;if(typeof L.componentWillUnmount=="function"){r=g,n=g.return;try{t=r,L.props=t.memoizedProps,L.state=t.memoizedState,L.componentWillUnmount()}catch(P){st(r,n,P)}}break;case 5:ca(g,g.return);break;case 22:if(g.memoizedState!==null){Yu(h);continue}}S!==null?(S.return=g,ie=S):Yu(h)}u=u.sibling}e:for(u=null,h=e;;){if(h.tag===5){if(u===null){u=h;try{o=h.stateNode,p?(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=dp("display",l))}catch(P){st(e,e.return,P)}}}else if(h.tag===6){if(u===null)try{h.stateNode.nodeValue=p?"":h.memoizedProps}catch(P){st(e,e.return,P)}}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;u===h&&(u=null),h=h.return}u===h&&(u=null),h.sibling.return=h.return,h=h.sibling}}break;case 19:xn(t,e),En(e),r&4&&Gu(e);break;case 21:break;default:xn(t,e),En(e)}}function En(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(_m(n)){var r=n;break e}n=n.return}throw Error(V(160))}switch(r.tag){case 5:var o=r.stateNode;r.flags&32&&(lo(o,""),r.flags&=-33);var i=Vu(e);Ks(e,i,o);break;case 3:case 4:var l=r.stateNode.containerInfo,s=Vu(e);Gs(e,s,l);break;default:throw Error(V(161))}}catch(c){st(e,e.return,c)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function ly(e,t,n){ie=e,jm(e,t,n)}function jm(e,t,n){for(var r=(e.mode&1)!==0;ie!==null;){var o=ie,i=o.child;if(o.tag===22&&r){var l=o.memoizedState!==null||si;if(!l){var s=o.alternate,c=s!==null&&s.memoizedState!==null||Dt;s=si;var p=Dt;if(si=l,(Dt=c)&&!p)for(ie=o;ie!==null;)l=ie,c=l.child,l.tag===22&&l.memoizedState!==null?Qu(o):c!==null?(c.return=l,ie=c):Qu(o);for(;i!==null;)ie=i,jm(i,t,n),i=i.sibling;ie=o,si=s,Dt=p}Ku(e,t,n)}else o.subtreeFlags&8772&&i!==null?(i.return=o,ie=i):Ku(e,t,n)}}function Ku(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:Dt||Ji(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Dt)if(n===null)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:wn(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&Lu(t,i,r);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}Lu(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 p=t.alternate;if(p!==null){var u=p.memoizedState;if(u!==null){var h=u.dehydrated;h!==null&&po(h)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(V(163))}Dt||t.flags&512&&Vs(t)}catch(g){st(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 Yu(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 Qu(e){for(;ie!==null;){var t=ie;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Ji(4,t)}catch(c){st(t,n,c)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(c){st(t,o,c)}}var i=t.return;try{Vs(t)}catch(c){st(t,i,c)}break;case 5:var l=t.return;try{Vs(t)}catch(c){st(t,l,c)}}}catch(c){st(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 sy=Math.ceil,ji=Gn.ReactCurrentDispatcher,Lc=Gn.ReactCurrentOwner,pn=Gn.ReactCurrentBatchConfig,Pe=0,kt=null,mt=null,Mt=0,Jt=0,da=wr(0),vt=0,So=null,Hr=0,Zi=0,Pc=0,ao=null,Ut=null,Dc=0,Sa=1/0,Fn=null,Bi=!1,Ys=null,gr=null,ci=!1,cr=null,Hi=0,oo=0,Qs=null,yi=-1,vi=0;function Ot(){return Pe&6?dt():yi!==-1?yi:yi=dt()}function hr(e){return e.mode&1?Pe&2&&Mt!==0?Mt&-Mt:Vh.transition!==null?(vi===0&&(vi=Sp()),vi):(e=Be,e!==0||(e=window.event,e=e===void 0?16:Rp(e.type)),e):1}function Nn(e,t,n,r){if(50<oo)throw oo=0,Qs=null,Error(V(185));Co(e,n,r),(!(Pe&2)||e!==kt)&&(e===kt&&(!(Pe&2)&&(Zi|=n),vt===4&&lr(e,Mt)),Kt(e,r),n===1&&Pe===0&&!(t.mode&1)&&(Sa=dt()+500,Qi&&kr()))}function Kt(e,t){var n=e.callbackNode;Kg(e,t);var r=Ci(e,e===kt?Mt:0);if(r===0)n!==null&&ru(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&ru(n),t===1)e.tag===0?$h(qu.bind(null,e)):Qp(qu.bind(null,e)),Bh(function(){!(Pe&6)&&kr()}),n=null;else{switch(Cp(r)){case 1:n=oc;break;case 4:n=wp;break;case 16:n=Si;break;case 536870912:n=kp;break;default:n=Si}n=Km(n,Bm.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Bm(e,t){if(yi=-1,vi=0,Pe&6)throw Error(V(327));var n=e.callbackNode;if(ha()&&e.callbackNode!==n)return null;var r=Ci(e,e===kt?Mt:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Wi(e,r);else{t=r;var o=Pe;Pe|=2;var i=Wm();(kt!==e||Mt!==t)&&(Fn=null,Sa=dt()+500,_r(e,t));do try{uy();break}catch(s){Hm(e,s)}while(!0);vc(),ji.current=i,Pe=o,mt!==null?t=0:(kt=null,Mt=0,t=vt)}if(t!==0){if(t===2&&(o=ks(e),o!==0&&(r=o,t=qs(e,o))),t===1)throw n=So,_r(e,0),lr(e,r),Kt(e,dt()),n;if(t===6)lr(e,r);else{if(o=e.current.alternate,!(r&30)&&!cy(o)&&(t=Wi(e,r),t===2&&(i=ks(e),i!==0&&(r=i,t=qs(e,i))),t===1))throw n=So,_r(e,0),lr(e,r),Kt(e,dt()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(V(345));case 2:Pr(e,Ut,Fn);break;case 3:if(lr(e,r),(r&130023424)===r&&(t=Dc+500-dt(),10<t)){if(Ci(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){Ot(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=Rs(Pr.bind(null,e,Ut,Fn),t);break}Pr(e,Ut,Fn);break;case 4:if(lr(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var l=31-Cn(r);i=1<<l,l=t[l],l>o&&(o=l),r&=~i}if(r=o,r=dt()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*sy(r/1960))-r,10<r){e.timeoutHandle=Rs(Pr.bind(null,e,Ut,Fn),r);break}Pr(e,Ut,Fn);break;case 5:Pr(e,Ut,Fn);break;default:throw Error(V(329))}}}return Kt(e,dt()),e.callbackNode===n?Bm.bind(null,e):null}function qs(e,t){var n=ao;return e.current.memoizedState.isDehydrated&&(_r(e,t).flags|=256),e=Wi(e,t),e!==2&&(t=Ut,Ut=n,t!==null&&Xs(t)),e}function Xs(e){Ut===null?Ut=e:Ut.push.apply(Ut,e)}function cy(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!Mn(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 lr(e,t){for(t&=~Pc,t&=~Zi,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Cn(t),r=1<<n;e[n]=-1,t&=~r}}function qu(e){if(Pe&6)throw Error(V(327));ha();var t=Ci(e,0);if(!(t&1))return Kt(e,dt()),null;var n=Wi(e,t);if(e.tag!==0&&n===2){var r=ks(e);r!==0&&(t=r,n=qs(e,r))}if(n===1)throw n=So,_r(e,0),lr(e,t),Kt(e,dt()),n;if(n===6)throw Error(V(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Pr(e,Ut,Fn),Kt(e,dt()),null}function Ic(e,t){var n=Pe;Pe|=1;try{return e(t)}finally{Pe=n,Pe===0&&(Sa=dt()+500,Qi&&kr())}}function Wr(e){cr!==null&&cr.tag===0&&!(Pe&6)&&ha();var t=Pe;Pe|=1;var n=pn.transition,r=Be;try{if(pn.transition=null,Be=1,e)return e()}finally{Be=r,pn.transition=n,Pe=t,!(Pe&6)&&kr()}}function Ac(){Jt=da.current,Xe(da)}function _r(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,jh(n)),mt!==null)for(n=mt.return;n!==null;){var r=n;switch(gc(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&zi();break;case 3:wa(),Xe(Vt),Xe(It),Cc();break;case 5:Sc(r);break;case 4:wa();break;case 13:Xe(tt);break;case 19:Xe(tt);break;case 10:bc(r.type._context);break;case 22:case 23:Ac()}n=n.return}if(kt=e,mt=e=yr(e.current,null),Mt=Jt=t,vt=0,So=null,Pc=Zi=Hr=0,Ut=ao=null,Ir!==null){for(t=0;t<Ir.length;t++)if(n=Ir[t],r=n.interleaved,r!==null){n.interleaved=null;var o=r.next,i=n.pending;if(i!==null){var l=i.next;i.next=o,r.next=l}n.pending=r}Ir=null}return e}function Hm(e,t){do{var n=mt;try{if(vc(),fi.current=Oi,Fi){for(var r=nt.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}Fi=!1}if(Br=0,wt=yt=nt=null,no=!1,xo=0,Lc.current=null,n===null||n.return===null){vt=1,So=t,mt=null;break}e:{var i=e,l=n.return,s=n,c=t;if(t=Mt,s.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){var p=c,u=s,h=u.tag;if(!(u.mode&1)&&(h===0||h===11||h===15)){var g=u.alternate;g?(u.updateQueue=g.updateQueue,u.memoizedState=g.memoizedState,u.lanes=g.lanes):(u.updateQueue=null,u.memoizedState=null)}var S=Fu(l);if(S!==null){S.flags&=-257,Ou(S,l,s,i,t),S.mode&1&&_u(i,p,t),t=S,c=p;var L=t.updateQueue;if(L===null){var P=new Set;P.add(c),t.updateQueue=P}else L.add(c);break e}else{if(!(t&1)){_u(i,p,t),_c();break e}c=Error(V(426))}}else if(Ze&&s.mode&1){var _=Fu(l);if(_!==null){!(_.flags&65536)&&(_.flags|=256),Ou(_,l,s,i,t),hc(ka(c,s));break e}}i=c=ka(c,s),vt!==4&&(vt=2),ao===null?ao=[i]:ao.push(i),i=l;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var v=Cm(i,c,t);Ru(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"&&(gr===null||!gr.has(y)))){i.flags|=65536,t&=-t,i.lanes|=t;var A=Nm(i,s,t);Ru(i,A);break e}}i=i.return}while(i!==null)}$m(n)}catch(D){t=D,mt===n&&n!==null&&(mt=n=n.return);continue}break}while(!0)}function Wm(){var e=ji.current;return ji.current=Oi,e===null?Oi:e}function _c(){(vt===0||vt===3||vt===2)&&(vt=4),kt===null||!(Hr&268435455)&&!(Zi&268435455)||lr(kt,Mt)}function Wi(e,t){var n=Pe;Pe|=2;var r=Wm();(kt!==e||Mt!==t)&&(Fn=null,_r(e,t));do try{dy();break}catch(o){Hm(e,o)}while(!0);if(vc(),Pe=n,ji.current=r,mt!==null)throw Error(V(261));return kt=null,Mt=0,vt}function dy(){for(;mt!==null;)Um(mt)}function uy(){for(;mt!==null&&!Og();)Um(mt)}function Um(e){var t=Gm(e.alternate,e,Jt);e.memoizedProps=e.pendingProps,t===null?$m(e):mt=t,Lc.current=null}function $m(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=ay(n,t),n!==null){n.flags&=32767,mt=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{vt=6,mt=null;return}}else if(n=ry(n,t,Jt),n!==null){mt=n;return}if(t=t.sibling,t!==null){mt=t;return}mt=t=e}while(t!==null);vt===0&&(vt=5)}function Pr(e,t,n){var r=Be,o=pn.transition;try{pn.transition=null,Be=1,py(e,t,n,r)}finally{pn.transition=o,Be=r}return null}function py(e,t,n,r){do ha();while(cr!==null);if(Pe&6)throw Error(V(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(V(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(Yg(e,i),e===kt&&(mt=kt=null,Mt=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||ci||(ci=!0,Km(Si,function(){return ha(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=pn.transition,pn.transition=null;var l=Be;Be=1;var s=Pe;Pe|=4,Lc.current=null,iy(e,n),Om(n,e),Ih(Es),Ni=!!Ts,Es=Ts=null,e.current=n,ly(n,e,o),jg(),Pe=s,Be=l,pn.transition=i}else e.current=n;if(ci&&(ci=!1,cr=e,Hi=o),i=e.pendingLanes,i===0&&(gr=null),Wg(n.stateNode,r),Kt(e,dt()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(Bi)throw Bi=!1,e=Ys,Ys=null,e;return Hi&1&&e.tag!==0&&ha(),i=e.pendingLanes,i&1?e===Qs?oo++:(oo=0,Qs=e):oo=0,kr(),null}function ha(){if(cr!==null){var e=Cp(Hi),t=pn.transition,n=Be;try{if(pn.transition=null,Be=16>e?16:e,cr===null)var r=!1;else{if(e=cr,cr=null,Hi=0,Pe&6)throw Error(V(331));var o=Pe;for(Pe|=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 p=s[c];for(ie=p;ie!==null;){var u=ie;switch(u.tag){case 0:case 11:case 15:ro(8,u,i)}var h=u.child;if(h!==null)h.return=u,ie=h;else for(;ie!==null;){u=ie;var g=u.sibling,S=u.return;if(Am(u),u===p){ie=null;break}if(g!==null){g.return=S,ie=g;break}ie=S}}}var L=i.alternate;if(L!==null){var P=L.child;if(P!==null){L.child=null;do{var _=P.sibling;P.sibling=null,P=_}while(P!==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:ro(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:Ji(9,s)}}catch(D){st(s,s.return,D)}if(s===l){ie=null;break e}var A=s.sibling;if(A!==null){A.return=s.return,ie=A;break e}ie=s.return}}if(Pe=o,kr(),Ln&&typeof Ln.onPostCommitFiberRoot=="function")try{Ln.onPostCommitFiberRoot($i,e)}catch{}r=!0}return r}finally{Be=n,pn.transition=t}}return!1}function Xu(e,t,n){t=ka(n,t),t=Cm(e,t,1),e=fr(e,t,1),t=Ot(),e!==null&&(Co(e,1,t),Kt(e,t))}function st(e,t,n){if(e.tag===3)Xu(e,e,n);else for(;t!==null;){if(t.tag===3){Xu(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(gr===null||!gr.has(r))){e=ka(n,e),e=Nm(t,e,1),t=fr(t,e,1),e=Ot(),t!==null&&(Co(t,1,e),Kt(t,e));break}}t=t.return}}function my(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Ot(),e.pingedLanes|=e.suspendedLanes&n,kt===e&&(Mt&n)===n&&(vt===4||vt===3&&(Mt&130023424)===Mt&&500>dt()-Dc?_r(e,0):Pc|=n),Kt(e,t)}function Vm(e,t){t===0&&(e.mode&1?(t=Qo,Qo<<=1,!(Qo&130023424)&&(Qo=4194304)):t=1);var n=Ot();e=$n(e,t),e!==null&&(Co(e,t,n),Kt(e,n))}function fy(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Vm(e,n)}function gy(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(V(314))}r!==null&&r.delete(t),Vm(e,n)}var Gm;Gm=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Vt.current)$t=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return $t=!1,ny(e,t,n);$t=!!(e.flags&131072)}else $t=!1,Ze&&t.flags&1048576&&qp(t,Pi,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;hi(e,t),e=t.pendingProps;var o=va(t,It.current);ga(t,n),o=Mc(null,t,r,e,o,n);var i=Tc();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,Gt(r)?(i=!0,Ri(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,wc(t),o.updater=Xi,t.stateNode=o,o._reactInternals=t,Fs(t,r,e,n),t=Bs(null,t,r,!0,i,n)):(t.tag=0,Ze&&i&&fc(t),Ft(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(hi(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=yy(r),e=wn(r,e),o){case 0:t=js(null,t,r,e,n);break e;case 1:t=Hu(null,t,r,e,n);break e;case 11:t=ju(null,t,r,e,n);break e;case 14:t=Bu(null,t,r,wn(r.type,e),n);break e}throw Error(V(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:wn(r,o),js(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:wn(r,o),Hu(e,t,r,o,n);case 3:e:{if(zm(t),e===null)throw Error(V(387));r=t.pendingProps,i=t.memoizedState,o=i.element,nm(e,t),Ai(t,r,null,n);var l=t.memoizedState;if(r=l.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=ka(Error(V(423)),t),t=Wu(e,t,r,n,o);break e}else if(r!==o){o=ka(Error(V(424)),t),t=Wu(e,t,r,n,o);break e}else for(Zt=mr(t.stateNode.containerInfo.firstChild),en=t,Ze=!0,Sn=null,n=em(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(ba(),r===o){t=Vn(e,t,n);break e}Ft(e,t,r,n)}t=t.child}return t;case 5:return rm(t),e===null&&Is(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,l=o.children,zs(r,o)?l=null:i!==null&&zs(r,i)&&(t.flags|=32),Em(e,t),Ft(e,t,l,n),t.child;case 6:return e===null&&Is(t),null;case 13:return Rm(e,t,n);case 4:return kc(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=xa(t,null,r,n):Ft(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:wn(r,o),ju(e,t,r,o,n);case 7:return Ft(e,t,t.pendingProps,n),t.child;case 8:return Ft(e,t,t.pendingProps.children,n),t.child;case 12:return Ft(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,l=o.value,Qe(Di,r._currentValue),r._currentValue=l,i!==null)if(Mn(i.value,l)){if(i.children===o.children&&!Vt.current){t=Vn(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===r){if(i.tag===1){c=Hn(-1,n&-n),c.tag=2;var p=i.updateQueue;if(p!==null){p=p.shared;var u=p.pending;u===null?c.next=c:(c.next=u.next,u.next=c),p.pending=c}}i.lanes|=n,c=i.alternate,c!==null&&(c.lanes|=n),As(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(V(341));l.lanes|=n,s=l.alternate,s!==null&&(s.lanes|=n),As(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}Ft(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,ga(t,n),o=mn(o),r=r(o),t.flags|=1,Ft(e,t,r,n),t.child;case 14:return r=t.type,o=wn(r,t.pendingProps),o=wn(r.type,o),Bu(e,t,r,o,n);case 15:return Mm(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:wn(r,o),hi(e,t),t.tag=1,Gt(r)?(e=!0,Ri(t)):e=!1,ga(t,n),Sm(t,r,o),Fs(t,r,o,n),Bs(null,t,r,!0,e,n);case 19:return Lm(e,t,n);case 22:return Tm(e,t,n)}throw Error(V(156,t.tag))};function Km(e,t){return xp(e,t)}function hy(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function un(e,t,n,r){return new hy(e,t,n,r)}function Fc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function yy(e){if(typeof e=="function")return Fc(e)?1:0;if(e!=null){if(e=e.$$typeof,e===nc)return 11;if(e===rc)return 14}return 2}function yr(e,t){var n=e.alternate;return n===null?(n=un(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 bi(e,t,n,r,o,i){var l=2;if(r=e,typeof e=="function")Fc(e)&&(l=1);else if(typeof e=="string")l=5;else e:switch(e){case ea:return Fr(n.children,o,i,t);case tc:l=8,o|=8;break;case ls:return e=un(12,n,t,o|2),e.elementType=ls,e.lanes=i,e;case ss:return e=un(13,n,t,o),e.elementType=ss,e.lanes=i,e;case cs:return e=un(19,n,t,o),e.elementType=cs,e.lanes=i,e;case rp:return el(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case tp:l=10;break e;case np:l=9;break e;case nc:l=11;break e;case rc:l=14;break e;case ar:l=16,r=null;break e}throw Error(V(130,e==null?e:typeof e,""))}return t=un(l,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function Fr(e,t,n,r){return e=un(7,e,r,t),e.lanes=n,e}function el(e,t,n,r){return e=un(22,e,r,t),e.elementType=rp,e.lanes=n,e.stateNode={isHidden:!1},e}function as(e,t,n){return e=un(6,e,null,t),e.lanes=n,e}function os(e,t,n){return t=un(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function vy(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Wl(0),this.expirationTimes=Wl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Wl(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Oc(e,t,n,r,o,i,l,s,c){return e=new vy(e,t,n,s,c),t===1?(t=1,i===!0&&(t|=8)):t=0,i=un(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},wc(i),e}function by(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Zr,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Ym(e){if(!e)return br;e=e._reactInternals;e:{if($r(e)!==e||e.tag!==1)throw Error(V(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Gt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(V(171))}if(e.tag===1){var n=e.type;if(Gt(n))return Yp(e,n,t)}return t}function Qm(e,t,n,r,o,i,l,s,c){return e=Oc(n,r,!0,e,o,i,l,s,c),e.context=Ym(null),n=e.current,r=Ot(),o=hr(n),i=Hn(r,o),i.callback=t??null,fr(n,i,o),e.current.lanes=o,Co(e,o,r),Kt(e,r),e}function tl(e,t,n,r){var o=t.current,i=Ot(),l=hr(o);return n=Ym(n),t.context===null?t.context=n:t.pendingContext=n,t=Hn(i,l),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=fr(o,t,l),e!==null&&(Nn(e,o,l,i),mi(e,o,l)),l}function Ui(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 Ju(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function jc(e,t){Ju(e,t),(e=e.alternate)&&Ju(e,t)}function xy(){return null}var qm=typeof reportError=="function"?reportError:function(e){console.error(e)};function Bc(e){this._internalRoot=e}nl.prototype.render=Bc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(V(409));tl(e,t,null,null)};nl.prototype.unmount=Bc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Wr(function(){tl(null,e,null,null)}),t[Un]=null}};function nl(e){this._internalRoot=e}nl.prototype.unstable_scheduleHydration=function(e){if(e){var t=Tp();e={blockedOn:null,target:e,priority:t};for(var n=0;n<ir.length&&t!==0&&t<ir[n].priority;n++);ir.splice(n,0,e),n===0&&zp(e)}};function Hc(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function rl(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Zu(){}function wy(e,t,n,r,o){if(o){if(typeof r=="function"){var i=r;r=function(){var p=Ui(l);i.call(p)}}var l=Qm(t,r,e,0,null,!1,!1,"",Zu);return e._reactRootContainer=l,e[Un]=l.current,go(e.nodeType===8?e.parentNode:e),Wr(),l}for(;o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var s=r;r=function(){var p=Ui(c);s.call(p)}}var c=Oc(e,0,!1,null,null,!1,!1,"",Zu);return e._reactRootContainer=c,e[Un]=c.current,go(e.nodeType===8?e.parentNode:e),Wr(function(){tl(t,c,n,r)}),c}function al(e,t,n,r,o){var i=n._reactRootContainer;if(i){var l=i;if(typeof o=="function"){var s=o;o=function(){var c=Ui(l);s.call(c)}}tl(t,l,e,o)}else l=wy(n,t,e,o,r);return Ui(l)}Np=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Qa(t.pendingLanes);n!==0&&(ic(t,n|1),Kt(t,dt()),!(Pe&6)&&(Sa=dt()+500,kr()))}break;case 13:Wr(function(){var r=$n(e,1);if(r!==null){var o=Ot();Nn(r,e,1,o)}}),jc(e,1)}};lc=function(e){if(e.tag===13){var t=$n(e,134217728);if(t!==null){var n=Ot();Nn(t,e,134217728,n)}jc(e,134217728)}};Mp=function(e){if(e.tag===13){var t=hr(e),n=$n(e,t);if(n!==null){var r=Ot();Nn(n,e,t,r)}jc(e,t)}};Tp=function(){return Be};Ep=function(e,t){var n=Be;try{return Be=e,t()}finally{Be=n}};bs=function(e,t,n){switch(t){case"input":if(ps(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=Yi(r);if(!o)throw Error(V(90));op(r),ps(r,o)}}}break;case"textarea":lp(e,n);break;case"select":t=n.value,t!=null&&ua(e,!!n.multiple,t,!1)}};fp=Ic;gp=Wr;var ky={usingClientEntryPoint:!1,Events:[Mo,aa,Yi,pp,mp,Ic]},Va={findFiberByHostInstance:Dr,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Sy={bundleType:Va.bundleType,version:Va.version,rendererPackageName:Va.rendererPackageName,rendererConfig:Va.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Gn.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=vp(e),e===null?null:e.stateNode},findFiberByHostInstance:Va.findFiberByHostInstance||xy,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(Ga=__REACT_DEVTOOLS_GLOBAL_HOOK__,!Ga.isDisabled&&Ga.supportsFiber))try{$i=Ga.inject(Sy),Ln=Ga}catch{}var Ga;rn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ky;rn.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Hc(t))throw Error(V(200));return by(e,t,null,n)};rn.createRoot=function(e,t){if(!Hc(e))throw Error(V(299));var n=!1,r="",o=qm;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=Oc(e,1,!1,null,null,n,!1,r,o),e[Un]=t.current,go(e.nodeType===8?e.parentNode:e),new Bc(t)};rn.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(V(188)):(e=Object.keys(e).join(","),Error(V(268,e)));return e=vp(t),e=e===null?null:e.stateNode,e};rn.flushSync=function(e){return Wr(e)};rn.hydrate=function(e,t,n){if(!rl(t))throw Error(V(200));return al(null,e,t,!0,n)};rn.hydrateRoot=function(e,t,n){if(!Hc(e))throw Error(V(405));var r=n!=null&&n.hydratedSources||null,o=!1,i="",l=qm;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(l=n.onRecoverableError)),t=Qm(t,null,e,1,n??null,o,!1,i,l),e[Un]=t.current,go(e),r)for(e=0;e<r.length;e++)n=r[e],o=n._getVersion,o=o(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new nl(t)};rn.render=function(e,t,n){if(!rl(t))throw Error(V(200));return al(null,e,t,!1,n)};rn.unmountComponentAtNode=function(e){if(!rl(e))throw Error(V(40));return e._reactRootContainer?(Wr(function(){al(null,null,e,!1,function(){e._reactRootContainer=null,e[Un]=null})}),!0):!1};rn.unstable_batchedUpdates=Ic;rn.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!rl(n))throw Error(V(200));if(e==null||e._reactInternals===void 0)throw Error(V(38));return al(e,t,n,!1,r)};rn.version="18.3.1-next-f1338f8080-20240426"});var Wc=_n((Fv,Zm)=>{"use strict";function Jm(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Jm)}catch(e){console.error(e)}}Jm(),Zm.exports=Xm()});var tf=_n(Uc=>{"use strict";var ef=Wc();Uc.createRoot=ef.createRoot,Uc.hydrateRoot=ef.hydrateRoot;var Ov});var Ef=_n(ul=>{"use strict";var Oy=Aa(),jy=Symbol.for("react.element"),By=Symbol.for("react.fragment"),Hy=Object.prototype.hasOwnProperty,Wy=Oy.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Uy={key:!0,ref:!0,__self:!0,__source:!0};function Tf(e,t,n){var r,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(r in t)Hy.call(t,r)&&!Uy.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:jy,type:e,key:i,ref:l,props:o,_owner:Wy.current}}ul.Fragment=By;ul.jsx=Tf;ul.jsxs=Tf});var Ro=_n((Zv,zf)=>{"use strict";zf.exports=Ef()});var Ea=tr(Aa(),1),Vf=tr(tf(),1);var m=tr(Aa(),1),Vy=tr(Wc(),1);var Cy={"&":"&","<":"<",">":">"},$c=e=>String(e).replace(/[&<>]/g,t=>Cy[t]),Ny=[[/结论|总结|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"]],My=["\u2728","info"],Ty=[[/风险|注意|警告|禁止|坑|务必/i,"\u26A0\uFE0F","warn"],[/提示|建议|tip|best practice/i,"\u{1F4A1}","idea"],[/结论|总结/i,"\u2705","ok"],[/错误|失败|报错/i,"\u2757","bad"]],Ey=e=>{let t=String(e);for(let[n,r,o]of Ny)if(n.test(t))return[r,o];return My},zy=e=>{let t=e.join(" ");for(let[n,r,o]of Ty)if(n.test(t))return[r,o];return["\u{1F4CC}","info"]};function Ma(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">'+$c(n[1])+'</span><span class="md-v">'+Ma(n[2])+"</span></span>";let r=$c(t);return r=r.replace(/^\[([ xX])\](?=\s|$)\s*/,(o,i)=>'<span class="md-task">'+(i.toLowerCase()==="x"?"\u2611":"\u2610")+"</span> "),r=r.replace(/`([^`\n]+)`/g,'<code class="md-code">$1</code>'),r=r.replace(/\*\*([^*]+)\*\*/g,'<strong class="md-b">$1</strong>'),r=r.replace(/(^|[^*])\*([^*\n]+)\*/g,"$1<em>$2</em>"),r=r.replace(/\[([^\]]+)\]\(([^)\s]+)\)/g,(o,i,l)=>/^(https?:|\/|#)/i.test(l)?'<a class="md-link" href="'+l+'" target="_blank" rel="noopener noreferrer">'+i+"</a>":i),r}function ol(e){let t=String(e||"").replace(/\r\n?/g,`
|
|
9
|
-
`),n=/^---\n([\s\S]*?)\n---\n?/.exec(t);if(!n)return{meta:[],body:t};let
|
|
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&&
|
|
11
|
-
`)).body;if(!t.trim())return"";let n=[],
|
|
12
|
-
`)){let L=
|
|
13
|
-
`)}var il="data:image/png;base64,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";function rf(e,t,n=48){if(!t||!e)return"";let r=String(e),o=r.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(r.length,l+i.length+n),p=r.slice(s,c).replace(/\s+/g," ").trim();return(s>0?"\u2026":"")+p+(c<r.length?"\u2026":"")}function Vc(e,t){let n=String(t||"").trim().toLowerCase();if(!n)return!0;let r=e||{},o=Array.isArray(r.tags)?r.tags.map(l=>String(l)):[],i=[r.title,r.summary,r.reason,r.path,r.submittedBy,...o].map(l=>String(l||"")).join(`
|
|
14
|
-
`).toLowerCase();return n.split(/\s+/).filter(Boolean).every(l=>i.includes(l))}function
|
|
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`,p=u=>i(l.slice(0,u)+c);if(p(0).length>o)l=c;else{let u=0,h=l.length;for(;u<h;){let g=Math.ceil((u+h)/2);p(g).length<=o?u=g:h=g-1}l=l.slice(0,u)+c}s=i(l)}return s}function
|
|
17
|
-
`)}var
|
|
18
|
-
`),
|
|
19
|
-
`);function uf(e={}){let t=e.lang==="en"?"en":"zh",n=t==="en"?Dy:Py,r=e.repo||"EternalNight996/memory-eternal";return n=n.split(Kc).join("https://github.com/"+r),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 pf({panX:e=0,panY:t=0,zoom:n=1,w:r=0,h:o=0,margin:i=60}={}){let l=n||1;return{x0:(0-e)/l-i,y0:(0-t)/l-i,x1:(r-e)/l+i,y1:(o-t)/l+i}}function cl(e,t,n,r){return r?e+n>=r.x0&&e-n<=r.x1&&t+n>=r.y0&&t-n<=r.y1:!0}function mf(e){let t=Number(e)||0;return t<=120?1/0:t<=300?160:t<=600?90:60}function ff(e,t={}){let n=Number.isFinite(t.limit)?t.limit:1/0,r=new Set,o=c=>{c&&r.size<n&&r.add(c)};if(o(t.focusId),o(t.hoverId),t.searchHits)for(let c of t.searchHits){if(r.size>=n)break;r.add(c)}let i=t.degree||{},l=c=>Number(i[c])||0,s=[];for(let c of Array.isArray(e)?e:[])c&&c.id&&!r.has(c.id)&&s.push(c);s.sort((c,p)=>l(p.id)-l(c.id));for(let c of s){if(r.size>=n)break;r.add(c.id)}return r}function gf(e){let t=Math.floor(Number(e)||0);return t<=0?0:t>1200?48:t>700?60:t>300?110:200}function dl(e){let t=Math.floor(Number(e)||0),n=t>1e3?3e3:t>100?2e3:t>50?1200:800,r=t>100?.002:.005,o=t>1e3?.012:t>100?.005:.01,i=t>1e3?6:t>200?12:24;return{repulsion:n,attraction:r,centerGravity:o,velCap:i,theta:.8}}var Iy=.05,qc=30;function Yc(e,t,n,r){return(n>=e?1:0)+(r>=t?2:0)}var Qc=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,r){if(this.count>=this.cap)return-1;let o=this.count++;this.cx[o]=t,this.cy[o]=n,this.half[o]=r,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,r){let o=t[r];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]=r;return}let c=this.half[n]/2;if(c<.001||this.count+4>this.cap){this.point[n]=-2;return}let p=this.cx[n],u=this.cy[n];for(let g=0;g<4;g+=1)this.child[s+g]=this.newNode(p+(g&1?c:-c),u+(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+Yc(p,u,Number(g.x)||0,Number(g.y)||0)],h)}this.insert(t,this.child[s+Yc(p,u,i,l)],r);return}this.insert(t,this.child[s+Yc(this.cx[n],this.cy[n],i,l)],r)}build(t){let n=t.length;if(this.count=0,this.lastVisits=0,n===0)return-1;let r=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,S=Number(t[h].y)||0;g<r&&(r=g),g>o&&(o=g),S<i&&(i=S),S>l&&(l=S)}let s=(r+o)/2,c=(i+l)/2,p=Math.max(1,Math.max(o-r,l-i)/2)*1.001,u=this.newNode(s,c,p);if(u<0)return-1;for(let h=0;h<n;h+=1)this.insert(t,u,h);return u}accumulate(t,n,r,o,i,l){let s=this.mass[t];if(s<=0)return;let c=this.mx[t]/s,p=this.my[t]/s,u=r-c,h=o-p,g=u*u+h*h;if(g<1e-9)return;let S=this.child[t*4]===-1;if(S&&this.point[t]===n)return;let L=Math.sqrt(g);if(this.lastVisits+=1,S||2*this.half[t]/L<l){let _=i*s/g;this.fx[n]+=u/L*_,this.fy[n]+=h/L*_;return}let P=t*4;for(let _=0;_<4;_+=1){let v=this.child[P+_];v>=0&&this.accumulate(v,n,r,o,i,l)}}compute(t,n){let r=t.length;this.ensureCapacity(r);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,p=n.skipIndex===void 0?-1:n.skipIndex;for(let u=0;u<r;u+=1){if(u===p)continue;let h=t[u];this.accumulate(l,u,Number(h.x)||0,Number(h.y)||0,s,c)}return{fx:o,fy:i,visits:this.lastVisits}}};function hf(e,t={}){let n=e.nodes,r=n.length,o=t.params||dl(r),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 p=t.alpha===void 0?e.alpha:t.alpha,u=Math.min(.4,e.tickCount/1500),h=t.damping===void 0?.9-u:Math.max(.1,Math.min(.95,Number(t.damping)||.5)),g=e.dragNode?n.indexOf(e.dragNode):-1;(!e.forceEngine||e.forceEngine.capacity<r)&&(e.forceEngine=new Qc(r));let S=e.forceEngine.compute(n,{repulsion:o.repulsion*p,theta:i,skipIndex:g}),L=S.fx,P=S.fy;for(let R=0;R<r;R+=1){if(R===g)continue;let I=n[R],F=L[R],W=P[R];if(Number.isFinite(F)||(F=0),Number.isFinite(W)||(W=0),e.clustered&&e.typeCenters&&e.typeCenters[I.type]){let ye=e.typeCenters[I.type];F+=(ye.x-I.x)*.006*p,W+=(ye.y-I.y)*.006*p}else F-=I.x*o.centerGravity*p,W-=I.y*o.centerGravity*p;let H=((Number(I.vx)||0)+F)*h,te=((Number(I.vy)||0)+W)*h;H>o.velCap?H=o.velCap:H<-o.velCap&&(H=-o.velCap),te>o.velCap?te=o.velCap:te<-o.velCap&&(te=-o.velCap),I.vx=H,I.vy=te}let _=e.edges||[],v=e.edgePairs||null,f=e.nodeById||null,y=v?v.length/2:_.length;for(let R=0;R<y;R+=1){let I,F;if(v)I=n[v[R*2]],F=n[v[R*2+1]];else{let w=_[R];I=f?f.get(w.sourceNodeId):null,F=f?f.get(w.targetNodeId):null}if(!I||!F)continue;let W=F.x-I.x,H=F.y-I.y,te=Math.sqrt(W*W+H*H)||1,ye=(te-100)*o.attraction*p,ae=W/te*ye,Fe=H/te*ye;e.dragNode!==I&&(I.vx+=ae,I.vy+=Fe),e.dragNode!==F&&(F.vx-=ae,F.vy-=Fe)}let A=0;for(let R=0;R<r;R+=1){let I=n[R];R!==g&&(I.x+=I.vx,I.y+=I.vy,A+=I.vx*I.vx+I.vy*I.vy)}let D=r?Math.sqrt(A/r):0;return D<Iy&&e.tickCount>60&&!e.dragNode?e.quietTicks=(e.quietTicks|0)+1:e.quietTicks=0,{rms:D,tickCount:e.tickCount,quietTicks:e.quietTicks,params:o,visits:S.visits,alpha:p}}function Vr(e){return(Array.isArray(e)?e:[]).filter(Boolean).join("/")}function yf(e){return String(e??"").split("/").filter(Boolean)}function vf(e,t,n={}){let r=Vr(t);return`${e}/graph/level?path=${encodeURIComponent(r)}${n.all?"&all=1":""}`}function Ay(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 _y({kind:e="other",degree:t=0,maxDegree:n=1}={}){let r=Math.max(0,Number(t)||0),o=Math.max(1,Number(n)||1);return 9+Math.min(10,r/o*8)+(e==="core"?3:0)}function bf(e,t={}){let n=Math.max(0,Math.floor(Number(e)||0));if(n<1e4)return String(n);let r=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 r==="\u4E07"?Math.round(n/1e3)/10+"\u4E07":n>=1e6?Math.round(n/1e5)/10+"M":Math.round(n/100)/10+"K"}function xf(e,t={}){let n=e||{},r=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:r,count:r?Math.max(0,Math.floor(Number(n.count)||0)):0,tags:Array.isArray(n.tags)?n.tags.slice():[],updated:n.updated||"",r:r?Ay(n.count):_y({kind:o,degree:t.degree,maxDegree:t.maxDegree})}}function wf(e){return{...e||{},repulsion:1600,centerGravity:.004}}function kf(e,t={}){let n=Math.max(1,Number(t.timeoutMs)||1600),r=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)||r>=n;return{timeout:s,message:s?`\u5C42\u7EA7\u52A0\u8F7D\u8D85\u65F6\uFF08${n}ms\uFF09`:i||"\u672A\u77E5\u9519\u8BEF"}}function Sf(e=96){let t=Math.max(1,Math.floor(Number(e)||96)),n=new Map;return{get size(){return n.size},has(r){return n.has(r)},get(r){if(!n.has(r))return null;let o=n.get(r);return n.delete(r),n.set(r,o),o},set(r,o){for(n.has(r)&&n.delete(r),n.set(r,o);n.size>t;)n.delete(n.keys().next().value);return o},clear(){n.clear()},keys(){return[...n.keys()]}}}function Cf(e={}){let t=e.raf||(c=>requestAnimationFrame(c)),n=e.cancelRaf||(c=>cancelAnimationFrame(c)),r=e.setTimeout||((c,p)=>setTimeout(c,p)),o=e.clearTimeout||(c=>clearTimeout(c)),i=new Set,l=new Set,s=[];return{raf(c){let p=t(()=>{i.delete(p),c()});return i.add(p),p},cancelRaf(c){c!=null&&(i.delete(c),n(c))},setTimeout(c,p){let u=r(()=>{l.delete(u),c()},p);return l.add(u),u},clearTimeout(c){c!=null&&(l.delete(c),o(c))},listen(c,p,u,h){c.addEventListener(p,u,h),s.push({target:c,type:p,fn:u,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 Nf(e,t={}){let n=Math.max(1,Number(t.maxItems)||1e3),r=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>r&&l.push(`\u5C42 payload ${i} > ${r}`),{ok:l.length===0,items:o,bytes:i,problems:l}}function Fy(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 Mf(e,t){let n={...e||{}},r={};for(let[o,i]of Object.entries(t||{}))Fy(e?e[o]:void 0,i)||(n[o]=i,r[o]=i);return{values:n,overlay:r}}var a=tr(Ro(),1);var Z="/memory-eternal/api";async function td(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 Gy=100;var ld={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",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",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",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",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",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",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",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",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",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]
|
|
8
|
+
`+i.stack}return{value:e,source:t,stack:o,digest:null}}function os(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Hs(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var ty=typeof WeakMap=="function"?WeakMap:Map;function Mm(e,t,n){n=Xn(-1,n),n.tag=3,n.payload={element:null};var a=t.value;return n.callback=function(){Wi||(Wi=!0,Xs=a),Hs(e,t)},n}function Em(e,t,n){n=Xn(-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(){Hs(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){Hs(e,t),typeof a!="function"&&(xr===null?xr=new Set([this]):xr.add(this));var l=t.stack;this.componentDidCatch(t.value,{componentStack:l!==null?l:""})}),n}function Ou(e,t,n){var a=e.pingCache;if(a===null){a=e.pingCache=new ty;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=gy.bind(null,e,t,n),t.then(e,e))}function Bu(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 Hu(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=Xn(-1,1),t.tag=2,wr(n,t,1))),n.lanes|=1),e)}var ny=nr.ReactCurrentOwner,Yt=!1;function Wt(e,t,n,a){t.child=e===null?rm(t,null,n,a):ka(t,e.child,n,a)}function Wu(e,t,n,a,o){n=n.render;var i=t.ref;return ya(t,o),a=zc(e,t,n,a,i,o),n=Rc(),e!==null&&!Yt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,tr(e,t,o)):(nt&&n&&yc(t),t.flags|=1,Wt(e,t,a,o),t.child)}function Uu(e,t,n,a,o){if(e===null){var i=n.type;return typeof i=="function"&&!Bc(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,zm(e,t,i,a,o)):(e=xi(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:ho,n(l,a)&&e.ref===t.ref)return tr(e,t,o)}return t.flags|=1,e=Sr(i,a),e.ref=t.ref,e.return=t,t.child=e}function zm(e,t,n,a,o){if(e!==null){var i=e.memoizedProps;if(ho(i,a)&&e.ref===t.ref)if(Yt=!1,t.pendingProps=a=i,(e.lanes&o)!==0)e.flags&131072&&(Yt=!0);else return t.lanes=e.lanes,tr(e,t,o)}return Ws(e,t,n,a,o)}function Rm(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},Je(pa,nn),nn|=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,Je(pa,nn),nn|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},a=i!==null?i.baseLanes:n,Je(pa,nn),nn|=a}else i!==null?(a=i.baseLanes|n,t.memoizedState=null):a=n,Je(pa,nn),nn|=a;return Wt(e,t,o,n),t.child}function Lm(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Ws(e,t,n,a,o){var i=Qt(n)?Hr:jt.current;return i=wa(t,i),ya(t,o),n=zc(e,t,n,a,i,o),a=Rc(),e!==null&&!Yt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,tr(e,t,o)):(nt&&a&&yc(t),t.flags|=1,Wt(e,t,n,o),t.child)}function $u(e,t,n,a,o){if(Qt(n)){var i=!0;Di(t)}else i=!1;if(ya(t,o),t.stateNode===null)vi(e,t),Tm(t,n,a),Bs(t,n,a,o),a=!0;else if(e===null){var l=t.stateNode,s=t.memoizedProps;l.props=s;var c=l.context,p=n.contextType;typeof p=="object"&&p!==null?p=wn(p):(p=Qt(n)?Hr:jt.current,p=wa(t,p));var u=n.getDerivedStateFromProps,h=typeof u=="function"||typeof l.getSnapshotBeforeUpdate=="function";h||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(s!==a||c!==p)&&ju(t,l,a,p),ur=!1;var g=t.memoizedState;l.state=g,_i(t,a,l,o),c=t.memoizedState,s!==a||g!==c||qt.current||ur?(typeof u=="function"&&(Os(t,n,u,a),c=t.memoizedState),(s=ur||_u(t,n,s,a,g,c,p))?(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=p,a=s):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{l=t.stateNode,om(e,t),s=t.memoizedProps,p=t.type===t.elementType?s:Rn(t.type,s),l.props=p,h=t.pendingProps,g=l.context,c=n.contextType,typeof c=="object"&&c!==null?c=wn(c):(c=Qt(n)?Hr:jt.current,c=wa(t,c));var k=n.getDerivedStateFromProps;(u=typeof k=="function"||typeof l.getSnapshotBeforeUpdate=="function")||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(s!==h||g!==c)&&ju(t,l,a,c),ur=!1,g=t.memoizedState,l.state=g,_i(t,a,l,o);var L=t.memoizedState;s!==h||g!==L||qt.current||ur?(typeof k=="function"&&(Os(t,n,k,a),L=t.memoizedState),(p=ur||_u(t,n,p,a,g,L,c)||!1)?(u||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=p):(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 Us(e,t,n,a,i,o)}function Us(e,t,n,a,o,i){Lm(e,t);var l=(t.flags&128)!==0;if(!a&&!l)return o&&zu(t,n,!1),tr(e,t,i);a=t.stateNode,ny.current=t;var s=l&&typeof n.getDerivedStateFromError!="function"?null:a.render();return t.flags|=1,e!==null&&l?(t.child=ka(t,e.child,null,i),t.child=ka(t,null,s,i)):Wt(e,t,s,i),t.memoizedState=a.state,o&&zu(t,n,!0),t.child}function Dm(e){var t=e.stateNode;t.pendingContext?Eu(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Eu(e,t.context,!1),Nc(e,t.containerInfo)}function Vu(e,t,n,a,o){return xa(),bc(o),t.flags|=256,Wt(e,t,n,a),t.child}var $s={dehydrated:null,treeContext:null,retryLane:0};function Vs(e){return{baseLanes:e,cachePool:null,transitions:null}}function Pm(e,t,n){var a=t.pendingProps,o=at.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),Je(at,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=nl(l,a,0,null),e=Br(e,a,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=Vs(n),t.memoizedState=$s,e):Pc(t,l));if(o=e.memoizedState,o!==null&&(s=o.dehydrated,s!==null))return ry(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=Sr(o,c),a.subtreeFlags=o.subtreeFlags&14680064),s!==null?i=Sr(s,i):(i=Br(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?Vs(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},i.memoizedState=l,i.childLanes=e.childLanes&~n,t.memoizedState=$s,a}return i=e.child,e=i.sibling,a=Sr(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 Pc(e,t){return t=nl({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function ci(e,t,n,a){return a!==null&&bc(a),ka(t,e.child,null,n),e=Pc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function ry(e,t,n,a,o,i,l){if(n)return t.flags&256?(t.flags&=-257,a=os(Error(K(422))),ci(e,t,l,a)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=a.fallback,o=t.mode,a=nl({mode:"visible",children:a.children},o,0,null),i=Br(i,o,l,null),i.flags|=2,a.return=t,i.return=t,a.sibling=i,t.child=a,t.mode&1&&ka(t,e.child,null,l),t.child.memoizedState=Vs(l),t.memoizedState=$s,i);if(!(t.mode&1))return ci(e,t,l,null);if(o.data==="$!"){if(a=o.nextSibling&&o.nextSibling.dataset,a)var s=a.dgst;return a=s,i=Error(K(419)),a=os(i,a,void 0),ci(e,t,l,a)}if(s=(l&e.childLanes)!==0,Yt||s){if(a=Ct,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,er(e,o),In(a,e,o,-1))}return Oc(),a=os(Error(K(421))),ci(e,t,l,a)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=hy.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,rn=br(o.nextSibling),an=t,nt=!0,Dn=null,e!==null&&(hn[yn++]=qn,hn[yn++]=Qn,hn[yn++]=Wr,qn=e.id,Qn=e.overflow,Wr=t),t=Pc(t,a.children),t.flags|=4096,t)}function Gu(e,t,n){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),js(e.return,t,n)}function is(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 Im(e,t,n){var a=t.pendingProps,o=a.revealOrder,i=a.tail;if(Wt(e,t,a.children,n),a=at.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&&Gu(e,n,t);else if(e.tag===19)Gu(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(Je(at,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&&ji(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),is(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&&ji(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}is(t,!0,n,null,i);break;case"together":is(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function vi(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function tr(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),$r|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(K(153));if(t.child!==null){for(e=t.child,n=Sr(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Sr(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function ay(e,t,n){switch(t.tag){case 3:Dm(t),xa();break;case 5:im(t);break;case 1:Qt(t.type)&&Di(t);break;case 4:Nc(t,t.stateNode.containerInfo);break;case 10:var a=t.type._context,o=t.memoizedProps.value;Je(Fi,a._currentValue),a._currentValue=o;break;case 13:if(a=t.memoizedState,a!==null)return a.dehydrated!==null?(Je(at,at.current&1),t.flags|=128,null):n&t.child.childLanes?Pm(e,t,n):(Je(at,at.current&1),e=tr(e,t,n),e!==null?e.sibling:null);Je(at,at.current&1);break;case 19:if(a=(n&t.childLanes)!==0,e.flags&128){if(a)return Im(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),Je(at,at.current),a)break;return null;case 22:case 23:return t.lanes=0,Rm(e,t,n)}return tr(e,t,n)}var Fm,Gs,Am,_m;Fm=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}};Gs=function(){};Am=function(e,t,n,a){var o=e.memoizedProps;if(o!==a){e=t.stateNode,jr(Un.current);var i=null;switch(n){case"input":o=fs(e,o),a=fs(e,a),i=[];break;case"select":o=it({},o,{value:void 0}),a=it({},a,{value:void 0}),i=[];break;case"textarea":o=ys(e,o),a=ys(e,a),i=[];break;default:typeof o.onClick!="function"&&typeof a.onClick=="function"&&(e.onclick=Ri)}bs(n,a);var l;n=null;for(p in o)if(!a.hasOwnProperty(p)&&o.hasOwnProperty(p)&&o[p]!=null)if(p==="style"){var s=o[p];for(l in s)s.hasOwnProperty(l)&&(n||(n={}),n[l]="")}else p!=="dangerouslySetInnerHTML"&&p!=="children"&&p!=="suppressContentEditableWarning"&&p!=="suppressHydrationWarning"&&p!=="autoFocus"&&(so.hasOwnProperty(p)?i||(i=[]):(i=i||[]).push(p,null));for(p in a){var c=a[p];if(s=o?.[p],a.hasOwnProperty(p)&&c!==s&&(c!=null||s!=null))if(p==="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(p,n)),n=c;else p==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,s=s?s.__html:void 0,c!=null&&s!==c&&(i=i||[]).push(p,c)):p==="children"?typeof c!="string"&&typeof c!="number"||(i=i||[]).push(p,""+c):p!=="suppressContentEditableWarning"&&p!=="suppressHydrationWarning"&&(so.hasOwnProperty(p)?(c!=null&&p==="onScroll"&&et("scroll",e),i||s===c||(i=[])):(i=i||[]).push(p,c))}n&&(i=i||[]).push("style",n);var p=i;(t.updateQueue=p)&&(t.flags|=4)}};_m=function(e,t,n,a){n!==a&&(t.flags|=4)};function Ga(e,t){if(!nt)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 At(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 oy(e,t,n){var a=t.pendingProps;switch(vc(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return At(t),null;case 1:return Qt(t.type)&&Li(),At(t),null;case 3:return a=t.stateNode,Sa(),tt(qt),tt(jt),Mc(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(li(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Dn!==null&&(ec(Dn),Dn=null))),Gs(e,t),At(t),null;case 5:Tc(t);var o=jr(xo.current);if(n=t.type,e!==null&&t.stateNode!=null)Am(e,t,n,a,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!a){if(t.stateNode===null)throw Error(K(166));return At(t),null}if(e=jr(Un.current),li(t)){a=t.stateNode,n=t.type;var i=t.memoizedProps;switch(a[Hn]=t,a[bo]=i,e=(t.mode&1)!==0,n){case"dialog":et("cancel",a),et("close",a);break;case"iframe":case"object":case"embed":et("load",a);break;case"video":case"audio":for(o=0;o<Ja.length;o++)et(Ja[o],a);break;case"source":et("error",a);break;case"img":case"image":case"link":et("error",a),et("load",a);break;case"details":et("toggle",a);break;case"input":eu(a,i),et("invalid",a);break;case"select":a._wrapperState={wasMultiple:!!i.multiple},et("invalid",a);break;case"textarea":nu(a,i),et("invalid",a)}bs(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&&ii(a.textContent,s,e),o=["children",s]):typeof s=="number"&&a.textContent!==""+s&&(i.suppressHydrationWarning!==!0&&ii(a.textContent,s,e),o=["children",""+s]):so.hasOwnProperty(l)&&s!=null&&l==="onScroll"&&et("scroll",a)}switch(n){case"input":Yo(a),tu(a,i,!0);break;case"textarea":Yo(a),ru(a);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(a.onclick=Ri)}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=up(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[Hn]=t,e[bo]=a,Fm(e,t,!1,!1),t.stateNode=e;e:{switch(l=ws(n,a),n){case"dialog":et("cancel",e),et("close",e),o=a;break;case"iframe":case"object":case"embed":et("load",e),o=a;break;case"video":case"audio":for(o=0;o<Ja.length;o++)et(Ja[o],e);o=a;break;case"source":et("error",e),o=a;break;case"img":case"image":case"link":et("error",e),et("load",e),o=a;break;case"details":et("toggle",e),o=a;break;case"input":eu(e,a),o=fs(e,a),et("invalid",e);break;case"option":o=a;break;case"select":e._wrapperState={wasMultiple:!!a.multiple},o=it({},a,{value:void 0}),et("invalid",e);break;case"textarea":nu(e,a),o=ys(e,a),et("invalid",e);break;default:o=a}bs(n,o),s=o;for(i in s)if(s.hasOwnProperty(i)){var c=s[i];i==="style"?fp(e,c):i==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,c!=null&&pp(e,c)):i==="children"?typeof c=="string"?(n!=="textarea"||c!=="")&&co(e,c):typeof c=="number"&&co(e,""+c):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(so.hasOwnProperty(i)?c!=null&&i==="onScroll"&&et("scroll",e):c!=null&&rc(e,i,c,l))}switch(n){case"input":Yo(e),tu(e,a,!1);break;case"textarea":Yo(e),ru(e);break;case"option":a.value!=null&&e.setAttribute("value",""+Cr(a.value));break;case"select":e.multiple=!!a.multiple,i=a.value,i!=null?ma(e,!!a.multiple,i,!1):a.defaultValue!=null&&ma(e,!!a.multiple,a.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=Ri)}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 At(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(K(166));if(n=jr(xo.current),jr(Un.current),li(t)){if(a=t.stateNode,n=t.memoizedProps,a[Hn]=t,(i=a.nodeValue!==n)&&(e=an,e!==null))switch(e.tag){case 3:ii(a.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&ii(a.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else a=(n.nodeType===9?n:n.ownerDocument).createTextNode(a),a[Hn]=t,t.stateNode=a}return At(t),null;case 13:if(tt(at),a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(nt&&rn!==null&&t.mode&1&&!(t.flags&128))tm(),xa(),t.flags|=98560,i=!1;else if(i=li(t),a!==null&&a.dehydrated!==null){if(e===null){if(!i)throw Error(K(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(K(317));i[Hn]=t}else xa(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;At(t),i=!1}else Dn!==null&&(ec(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||at.current&1?xt===0&&(xt=3):Oc())),t.updateQueue!==null&&(t.flags|=4),At(t),null);case 4:return Sa(),Gs(e,t),e===null&&yo(t.stateNode.containerInfo),At(t),null;case 10:return kc(t.type._context),At(t),null;case 17:return Qt(t.type)&&Li(),At(t),null;case 19:if(tt(at),i=t.memoizedState,i===null)return At(t),null;if(a=(t.flags&128)!==0,l=i.rendering,l===null)if(a)Ga(i,!1);else{if(xt!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(l=ji(e),l!==null){for(t.flags|=128,Ga(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 Je(at,at.current&1|2),t.child}e=e.sibling}i.tail!==null&&mt()>Na&&(t.flags|=128,a=!0,Ga(i,!1),t.lanes=4194304)}else{if(!a)if(e=ji(l),e!==null){if(t.flags|=128,a=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Ga(i,!0),i.tail===null&&i.tailMode==="hidden"&&!l.alternate&&!nt)return At(t),null}else 2*mt()-i.renderingStartTime>Na&&n!==1073741824&&(t.flags|=128,a=!0,Ga(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=mt(),t.sibling=null,n=at.current,Je(at,a?n&1|2:n&1),t):(At(t),null);case 22:case 23:return jc(),a=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==a&&(t.flags|=8192),a&&t.mode&1?nn&1073741824&&(At(t),t.subtreeFlags&6&&(t.flags|=8192)):At(t),null;case 24:return null;case 25:return null}throw Error(K(156,t.tag))}function iy(e,t){switch(vc(t),t.tag){case 1:return Qt(t.type)&&Li(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Sa(),tt(qt),tt(jt),Mc(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Tc(t),null;case 13:if(tt(at),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(K(340));xa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return tt(at),null;case 4:return Sa(),null;case 10:return kc(t.type._context),null;case 22:case 23:return jc(),null;case 24:return null;default:return null}}var di=!1,_t=!1,ly=typeof WeakSet=="function"?WeakSet:Set,oe=null;function ua(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(a){dt(e,t,a)}else n.current=null}function Ks(e,t,n){try{n()}catch(a){dt(e,t,a)}}var Ku=!1;function sy(e,t){if(Rs=Mi,e=Wp(),hc(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,p=0,u=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&&++p===o&&(s=l),g===i&&++u===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(Ls={focusedElem:e,selectionRange:n},Mi=!1,oe=t;oe!==null;)if(t=oe,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,oe=e;else for(;oe!==null;){t=oe;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 D=L.memoizedProps,F=L.memoizedState,v=t.stateNode,f=v.getSnapshotBeforeUpdate(t.elementType===t.type?D:Rn(t.type,D),F);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(K(163))}}catch(_){dt(t,t.return,_)}if(e=t.sibling,e!==null){e.return=t.return,oe=e;break}oe=t.return}return L=Ku,Ku=!1,L}function oo(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&&Ks(t,n,i)}o=o.next}while(o!==a)}}function el(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 Ys(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 jm(e){var t=e.alternate;t!==null&&(e.alternate=null,jm(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Hn],delete t[bo],delete t[Is],delete t[$h],delete t[Vh])),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 Om(e){return e.tag===5||e.tag===3||e.tag===4}function Yu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Om(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 qs(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=Ri));else if(a!==4&&(e=e.child,e!==null))for(qs(e,t,n),e=e.sibling;e!==null;)qs(e,t,n),e=e.sibling}function Qs(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(Qs(e,t,n),e=e.sibling;e!==null;)Qs(e,t,n),e=e.sibling}var Et=null,Ln=!1;function cr(e,t,n){for(n=n.child;n!==null;)Bm(e,t,n),n=n.sibling}function Bm(e,t,n){if(Wn&&typeof Wn.onCommitFiberUnmount=="function")try{Wn.onCommitFiberUnmount(Gi,n)}catch{}switch(n.tag){case 5:_t||ua(n,t);case 6:var a=Et,o=Ln;Et=null,cr(e,t,n),Et=a,Ln=o,Et!==null&&(Ln?(e=Et,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Et.removeChild(n.stateNode));break;case 18:Et!==null&&(Ln?(e=Et,n=n.stateNode,e.nodeType===8?Zl(e.parentNode,n):e.nodeType===1&&Zl(e,n),fo(e)):Zl(Et,n.stateNode));break;case 4:a=Et,o=Ln,Et=n.stateNode.containerInfo,Ln=!0,cr(e,t,n),Et=a,Ln=o;break;case 0:case 11:case 14:case 15:if(!_t&&(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)&&Ks(n,t,l),o=o.next}while(o!==a)}cr(e,t,n);break;case 1:if(!_t&&(ua(n,t),a=n.stateNode,typeof a.componentWillUnmount=="function"))try{a.props=n.memoizedProps,a.state=n.memoizedState,a.componentWillUnmount()}catch(s){dt(n,t,s)}cr(e,t,n);break;case 21:cr(e,t,n);break;case 22:n.mode&1?(_t=(a=_t)||n.memoizedState!==null,cr(e,t,n),_t=a):cr(e,t,n);break;default:cr(e,t,n)}}function qu(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new ly),t.forEach(function(a){var o=yy.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:Et=s.stateNode,Ln=!1;break e;case 3:Et=s.stateNode.containerInfo,Ln=!0;break e;case 4:Et=s.stateNode.containerInfo,Ln=!0;break e}s=s.return}if(Et===null)throw Error(K(160));Bm(i,l,o),Et=null,Ln=!1;var c=o.alternate;c!==null&&(c.return=null),o.return=null}catch(p){dt(o,t,p)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Hm(t,e),t=t.sibling}function Hm(e,t){var n=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(zn(t,e),On(e),a&4){try{oo(3,e,e.return),el(3,e)}catch(D){dt(e,e.return,D)}try{oo(5,e,e.return)}catch(D){dt(e,e.return,D)}}break;case 1:zn(t,e),On(e),a&512&&n!==null&&ua(n,n.return);break;case 5:if(zn(t,e),On(e),a&512&&n!==null&&ua(n,n.return),e.flags&32){var o=e.stateNode;try{co(o,"")}catch(D){dt(e,e.return,D)}}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&&cp(o,i),ws(s,l);var p=ws(s,i);for(l=0;l<c.length;l+=2){var u=c[l],h=c[l+1];u==="style"?fp(o,h):u==="dangerouslySetInnerHTML"?pp(o,h):u==="children"?co(o,h):rc(o,u,h,p)}switch(s){case"input":gs(o,i);break;case"textarea":dp(o,i);break;case"select":var g=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var k=i.value;k!=null?ma(o,!!i.multiple,k,!1):g!==!!i.multiple&&(i.defaultValue!=null?ma(o,!!i.multiple,i.defaultValue,!0):ma(o,!!i.multiple,i.multiple?[]:"",!1))}o[bo]=i}catch(D){dt(e,e.return,D)}}break;case 6:if(zn(t,e),On(e),a&4){if(e.stateNode===null)throw Error(K(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(D){dt(e,e.return,D)}}break;case 3:if(zn(t,e),On(e),a&4&&n!==null&&n.memoizedState.isDehydrated)try{fo(t.containerInfo)}catch(D){dt(e,e.return,D)}break;case 4:zn(t,e),On(e);break;case 13:zn(t,e),On(e),o=e.child,o.flags&8192&&(i=o.memoizedState!==null,o.stateNode.isHidden=i,!i||o.alternate!==null&&o.alternate.memoizedState!==null||(Ac=mt())),a&4&&qu(e);break;case 22:if(u=n!==null&&n.memoizedState!==null,e.mode&1?(_t=(p=_t)||u,zn(t,e),_t=p):zn(t,e),On(e),a&8192){if(p=e.memoizedState!==null,(e.stateNode.isHidden=p)&&!u&&e.mode&1)for(oe=e,u=e.child;u!==null;){for(h=oe=u;oe!==null;){switch(g=oe,k=g.child,g.tag){case 0:case 11:case 14:case 15:oo(4,g,g.return);break;case 1:ua(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(D){dt(a,n,D)}}break;case 5:ua(g,g.return);break;case 22:if(g.memoizedState!==null){Xu(h);continue}}k!==null?(k.return=g,oe=k):Xu(h)}u=u.sibling}e:for(u=null,h=e;;){if(h.tag===5){if(u===null){u=h;try{o=h.stateNode,p?(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=mp("display",l))}catch(D){dt(e,e.return,D)}}}else if(h.tag===6){if(u===null)try{h.stateNode.nodeValue=p?"":h.memoizedProps}catch(D){dt(e,e.return,D)}}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;u===h&&(u=null),h=h.return}u===h&&(u=null),h.sibling.return=h.return,h=h.sibling}}break;case 19:zn(t,e),On(e),a&4&&qu(e);break;case 21:break;default:zn(t,e),On(e)}}function On(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Om(n)){var a=n;break e}n=n.return}throw Error(K(160))}switch(a.tag){case 5:var o=a.stateNode;a.flags&32&&(co(o,""),a.flags&=-33);var i=Yu(e);Qs(e,i,o);break;case 3:case 4:var l=a.stateNode.containerInfo,s=Yu(e);qs(e,s,l);break;default:throw Error(K(161))}}catch(c){dt(e,e.return,c)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function cy(e,t,n){oe=e,Wm(e,t,n)}function Wm(e,t,n){for(var a=(e.mode&1)!==0;oe!==null;){var o=oe,i=o.child;if(o.tag===22&&a){var l=o.memoizedState!==null||di;if(!l){var s=o.alternate,c=s!==null&&s.memoizedState!==null||_t;s=di;var p=_t;if(di=l,(_t=c)&&!p)for(oe=o;oe!==null;)l=oe,c=l.child,l.tag===22&&l.memoizedState!==null?Ju(o):c!==null?(c.return=l,oe=c):Ju(o);for(;i!==null;)oe=i,Wm(i,t,n),i=i.sibling;oe=o,di=s,_t=p}Qu(e,t,n)}else o.subtreeFlags&8772&&i!==null?(i.return=o,oe=i):Qu(e,t,n)}}function Qu(e){for(;oe!==null;){var t=oe;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:_t||el(5,t);break;case 1:var a=t.stateNode;if(t.flags&4&&!_t)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&&Iu(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}Iu(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 p=t.alternate;if(p!==null){var u=p.memoizedState;if(u!==null){var h=u.dehydrated;h!==null&&fo(h)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(K(163))}_t||t.flags&512&&Ys(t)}catch(g){dt(t,t.return,g)}}if(t===e){oe=null;break}if(n=t.sibling,n!==null){n.return=t.return,oe=n;break}oe=t.return}}function Xu(e){for(;oe!==null;){var t=oe;if(t===e){oe=null;break}var n=t.sibling;if(n!==null){n.return=t.return,oe=n;break}oe=t.return}}function Ju(e){for(;oe!==null;){var t=oe;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{el(4,t)}catch(c){dt(t,n,c)}break;case 1:var a=t.stateNode;if(typeof a.componentDidMount=="function"){var o=t.return;try{a.componentDidMount()}catch(c){dt(t,o,c)}}var i=t.return;try{Ys(t)}catch(c){dt(t,i,c)}break;case 5:var l=t.return;try{Ys(t)}catch(c){dt(t,l,c)}}}catch(c){dt(t,t.return,c)}if(t===e){oe=null;break}var s=t.sibling;if(s!==null){s.return=t.return,oe=s;break}oe=t.return}}var dy=Math.ceil,Hi=nr.ReactCurrentDispatcher,Ic=nr.ReactCurrentOwner,bn=nr.ReactCurrentBatchConfig,Oe=0,Ct=null,gt=null,zt=0,nn=0,pa=Mr(0),xt=0,No=null,$r=0,tl=0,Fc=0,io=null,Kt=null,Ac=0,Na=1/0,Kn=null,Wi=!1,Xs=null,xr=null,ui=!1,gr=null,Ui=0,lo=0,Js=null,bi=-1,wi=0;function Ut(){return Oe&6?mt():bi!==-1?bi:bi=mt()}function kr(e){return e.mode&1?Oe&2&&zt!==0?zt&-zt:Kh.transition!==null?(wi===0&&(wi=Tp()),wi):(e=Ke,e!==0||(e=window.event,e=e===void 0?16:Pp(e.type)),e):1}function In(e,t,n,a){if(50<lo)throw lo=0,Js=null,Error(K(185));To(e,n,a),(!(Oe&2)||e!==Ct)&&(e===Ct&&(!(Oe&2)&&(tl|=n),xt===4&&mr(e,zt)),Xt(e,a),n===1&&Oe===0&&!(t.mode&1)&&(Na=mt()+500,Xi&&Er()))}function Xt(e,t){var n=e.callbackNode;qg(e,t);var a=Ti(e,e===Ct?zt:0);if(a===0)n!==null&&iu(n),e.callbackNode=null,e.callbackPriority=0;else if(t=a&-a,e.callbackPriority!==t){if(n!=null&&iu(n),t===1)e.tag===0?Gh(Zu.bind(null,e)):Jp(Zu.bind(null,e)),Wh(function(){!(Oe&6)&&Er()}),n=null;else{switch(Mp(a)){case 1:n=sc;break;case 4:n=Cp;break;case 16:n=Ni;break;case 536870912:n=Np;break;default:n=Ni}n=Qm(n,Um.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Um(e,t){if(bi=-1,wi=0,Oe&6)throw Error(K(327));var n=e.callbackNode;if(va()&&e.callbackNode!==n)return null;var a=Ti(e,e===Ct?zt:0);if(a===0)return null;if(a&30||a&e.expiredLanes||t)t=$i(e,a);else{t=a;var o=Oe;Oe|=2;var i=Vm();(Ct!==e||zt!==t)&&(Kn=null,Na=mt()+500,Or(e,t));do try{my();break}catch(s){$m(e,s)}while(!0);xc(),Hi.current=i,Oe=o,gt!==null?t=0:(Ct=null,zt=0,t=xt)}if(t!==0){if(t===2&&(o=Ns(e),o!==0&&(a=o,t=Zs(e,o))),t===1)throw n=No,Or(e,0),mr(e,a),Xt(e,mt()),n;if(t===6)mr(e,a);else{if(o=e.current.alternate,!(a&30)&&!uy(o)&&(t=$i(e,a),t===2&&(i=Ns(e),i!==0&&(a=i,t=Zs(e,i))),t===1))throw n=No,Or(e,0),mr(e,a),Xt(e,mt()),n;switch(e.finishedWork=o,e.finishedLanes=a,t){case 0:case 1:throw Error(K(345));case 2:Fr(e,Kt,Kn);break;case 3:if(mr(e,a),(a&130023424)===a&&(t=Ac+500-mt(),10<t)){if(Ti(e,0)!==0)break;if(o=e.suspendedLanes,(o&a)!==a){Ut(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=Ps(Fr.bind(null,e,Kt,Kn),t);break}Fr(e,Kt,Kn);break;case 4:if(mr(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=mt()-a,a=(120>a?120:480>a?480:1080>a?1080:1920>a?1920:3e3>a?3e3:4320>a?4320:1960*dy(a/1960))-a,10<a){e.timeoutHandle=Ps(Fr.bind(null,e,Kt,Kn),a);break}Fr(e,Kt,Kn);break;case 5:Fr(e,Kt,Kn);break;default:throw Error(K(329))}}}return Xt(e,mt()),e.callbackNode===n?Um.bind(null,e):null}function Zs(e,t){var n=io;return e.current.memoizedState.isDehydrated&&(Or(e,t).flags|=256),e=$i(e,t),e!==2&&(t=Kt,Kt=n,t!==null&&ec(t)),e}function ec(e){Kt===null?Kt=e:Kt.push.apply(Kt,e)}function uy(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 mr(e,t){for(t&=~Fc,t&=~tl,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 Zu(e){if(Oe&6)throw Error(K(327));va();var t=Ti(e,0);if(!(t&1))return Xt(e,mt()),null;var n=$i(e,t);if(e.tag!==0&&n===2){var a=Ns(e);a!==0&&(t=a,n=Zs(e,a))}if(n===1)throw n=No,Or(e,0),mr(e,t),Xt(e,mt()),n;if(n===6)throw Error(K(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Fr(e,Kt,Kn),Xt(e,mt()),null}function _c(e,t){var n=Oe;Oe|=1;try{return e(t)}finally{Oe=n,Oe===0&&(Na=mt()+500,Xi&&Er())}}function Vr(e){gr!==null&&gr.tag===0&&!(Oe&6)&&va();var t=Oe;Oe|=1;var n=bn.transition,a=Ke;try{if(bn.transition=null,Ke=1,e)return e()}finally{Ke=a,bn.transition=n,Oe=t,!(Oe&6)&&Er()}}function jc(){nn=pa.current,tt(pa)}function Or(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Hh(n)),gt!==null)for(n=gt.return;n!==null;){var a=n;switch(vc(a),a.tag){case 1:a=a.type.childContextTypes,a!=null&&Li();break;case 3:Sa(),tt(qt),tt(jt),Mc();break;case 5:Tc(a);break;case 4:Sa();break;case 13:tt(at);break;case 19:tt(at);break;case 10:kc(a.type._context);break;case 22:case 23:jc()}n=n.return}if(Ct=e,gt=e=Sr(e.current,null),zt=nn=t,xt=0,No=null,Fc=tl=$r=0,Kt=io=null,_r!==null){for(t=0;t<_r.length;t++)if(n=_r[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}_r=null}return e}function $m(e,t){do{var n=gt;try{if(xc(),hi.current=Bi,Oi){for(var a=ot.memoizedState;a!==null;){var o=a.queue;o!==null&&(o.pending=null),a=a.next}Oi=!1}if(Ur=0,St=wt=ot=null,ao=!1,ko=0,Ic.current=null,n===null||n.return===null){xt=1,No=t,gt=null;break}e:{var i=e,l=n.return,s=n,c=t;if(t=zt,s.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){var p=c,u=s,h=u.tag;if(!(u.mode&1)&&(h===0||h===11||h===15)){var g=u.alternate;g?(u.updateQueue=g.updateQueue,u.memoizedState=g.memoizedState,u.lanes=g.lanes):(u.updateQueue=null,u.memoizedState=null)}var k=Bu(l);if(k!==null){k.flags&=-257,Hu(k,l,s,i,t),k.mode&1&&Ou(i,p,t),t=k,c=p;var L=t.updateQueue;if(L===null){var D=new Set;D.add(c),t.updateQueue=D}else L.add(c);break e}else{if(!(t&1)){Ou(i,p,t),Oc();break e}c=Error(K(426))}}else if(nt&&s.mode&1){var F=Bu(l);if(F!==null){!(F.flags&65536)&&(F.flags|=256),Hu(F,l,s,i,t),bc(Ca(c,s));break e}}i=c=Ca(c,s),xt!==4&&(xt=2),io===null?io=[i]:io.push(i),i=l;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var v=Mm(i,c,t);Pu(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"&&(xr===null||!xr.has(y)))){i.flags|=65536,t&=-t,i.lanes|=t;var _=Em(i,s,t);Pu(i,_);break e}}i=i.return}while(i!==null)}Km(n)}catch(I){t=I,gt===n&&n!==null&&(gt=n=n.return);continue}break}while(!0)}function Vm(){var e=Hi.current;return Hi.current=Bi,e===null?Bi:e}function Oc(){(xt===0||xt===3||xt===2)&&(xt=4),Ct===null||!($r&268435455)&&!(tl&268435455)||mr(Ct,zt)}function $i(e,t){var n=Oe;Oe|=2;var a=Vm();(Ct!==e||zt!==t)&&(Kn=null,Or(e,t));do try{py();break}catch(o){$m(e,o)}while(!0);if(xc(),Oe=n,Hi.current=a,gt!==null)throw Error(K(261));return Ct=null,zt=0,xt}function py(){for(;gt!==null;)Gm(gt)}function my(){for(;gt!==null&&!Bg();)Gm(gt)}function Gm(e){var t=qm(e.alternate,e,nn);e.memoizedProps=e.pendingProps,t===null?Km(e):gt=t,Ic.current=null}function Km(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=iy(n,t),n!==null){n.flags&=32767,gt=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{xt=6,gt=null;return}}else if(n=oy(n,t,nn),n!==null){gt=n;return}if(t=t.sibling,t!==null){gt=t;return}gt=t=e}while(t!==null);xt===0&&(xt=5)}function Fr(e,t,n){var a=Ke,o=bn.transition;try{bn.transition=null,Ke=1,fy(e,t,n,a)}finally{bn.transition=o,Ke=a}return null}function fy(e,t,n,a){do va();while(gr!==null);if(Oe&6)throw Error(K(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(K(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(Qg(e,i),e===Ct&&(gt=Ct=null,zt=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||ui||(ui=!0,Qm(Ni,function(){return va(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=bn.transition,bn.transition=null;var l=Ke;Ke=1;var s=Oe;Oe|=4,Ic.current=null,sy(e,n),Hm(n,e),Ah(Ls),Mi=!!Rs,Ls=Rs=null,e.current=n,cy(n,e,o),Hg(),Oe=s,Ke=l,bn.transition=i}else e.current=n;if(ui&&(ui=!1,gr=e,Ui=o),i=e.pendingLanes,i===0&&(xr=null),$g(n.stateNode,a),Xt(e,mt()),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(Wi)throw Wi=!1,e=Xs,Xs=null,e;return Ui&1&&e.tag!==0&&va(),i=e.pendingLanes,i&1?e===Js?lo++:(lo=0,Js=e):lo=0,Er(),null}function va(){if(gr!==null){var e=Mp(Ui),t=bn.transition,n=Ke;try{if(bn.transition=null,Ke=16>e?16:e,gr===null)var a=!1;else{if(e=gr,gr=null,Ui=0,Oe&6)throw Error(K(331));var o=Oe;for(Oe|=4,oe=e.current;oe!==null;){var i=oe,l=i.child;if(oe.flags&16){var s=i.deletions;if(s!==null){for(var c=0;c<s.length;c++){var p=s[c];for(oe=p;oe!==null;){var u=oe;switch(u.tag){case 0:case 11:case 15:oo(8,u,i)}var h=u.child;if(h!==null)h.return=u,oe=h;else for(;oe!==null;){u=oe;var g=u.sibling,k=u.return;if(jm(u),u===p){oe=null;break}if(g!==null){g.return=k,oe=g;break}oe=k}}}var L=i.alternate;if(L!==null){var D=L.child;if(D!==null){L.child=null;do{var F=D.sibling;D.sibling=null,D=F}while(D!==null)}}oe=i}}if(i.subtreeFlags&2064&&l!==null)l.return=i,oe=l;else e:for(;oe!==null;){if(i=oe,i.flags&2048)switch(i.tag){case 0:case 11:case 15:oo(9,i,i.return)}var v=i.sibling;if(v!==null){v.return=i.return,oe=v;break e}oe=i.return}}var f=e.current;for(oe=f;oe!==null;){l=oe;var y=l.child;if(l.subtreeFlags&2064&&y!==null)y.return=l,oe=y;else e:for(l=f;oe!==null;){if(s=oe,s.flags&2048)try{switch(s.tag){case 0:case 11:case 15:el(9,s)}}catch(I){dt(s,s.return,I)}if(s===l){oe=null;break e}var _=s.sibling;if(_!==null){_.return=s.return,oe=_;break e}oe=s.return}}if(Oe=o,Er(),Wn&&typeof Wn.onPostCommitFiberRoot=="function")try{Wn.onPostCommitFiberRoot(Gi,e)}catch{}a=!0}return a}finally{Ke=n,bn.transition=t}}return!1}function ep(e,t,n){t=Ca(n,t),t=Mm(e,t,1),e=wr(e,t,1),t=Ut(),e!==null&&(To(e,1,t),Xt(e,t))}function dt(e,t,n){if(e.tag===3)ep(e,e,n);else for(;t!==null;){if(t.tag===3){ep(t,e,n);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(xr===null||!xr.has(a))){e=Ca(n,e),e=Em(t,e,1),t=wr(t,e,1),e=Ut(),t!==null&&(To(t,1,e),Xt(t,e));break}}t=t.return}}function gy(e,t,n){var a=e.pingCache;a!==null&&a.delete(t),t=Ut(),e.pingedLanes|=e.suspendedLanes&n,Ct===e&&(zt&n)===n&&(xt===4||xt===3&&(zt&130023424)===zt&&500>mt()-Ac?Or(e,0):Fc|=n),Xt(e,t)}function Ym(e,t){t===0&&(e.mode&1?(t=Xo,Xo<<=1,!(Xo&130023424)&&(Xo=4194304)):t=1);var n=Ut();e=er(e,t),e!==null&&(To(e,t,n),Xt(e,n))}function hy(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Ym(e,n)}function yy(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(K(314))}a!==null&&a.delete(t),Ym(e,n)}var qm;qm=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||qt.current)Yt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Yt=!1,ay(e,t,n);Yt=!!(e.flags&131072)}else Yt=!1,nt&&t.flags&1048576&&Zp(t,Ii,t.index);switch(t.lanes=0,t.tag){case 2:var a=t.type;vi(e,t),e=t.pendingProps;var o=wa(t,jt.current);ya(t,n),o=zc(null,t,a,e,o,n);var i=Rc();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,Qt(a)?(i=!0,Di(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Cc(t),o.updater=Zi,t.stateNode=o,o._reactInternals=t,Bs(t,a,e,n),t=Us(null,t,a,!0,i,n)):(t.tag=0,nt&&i&&yc(t),Wt(null,t,o,n),t=t.child),t;case 16:a=t.elementType;e:{switch(vi(e,t),e=t.pendingProps,o=a._init,a=o(a._payload),t.type=a,o=t.tag=by(a),e=Rn(a,e),o){case 0:t=Ws(null,t,a,e,n);break e;case 1:t=$u(null,t,a,e,n);break e;case 11:t=Wu(null,t,a,e,n);break e;case 14:t=Uu(null,t,a,Rn(a.type,e),n);break e}throw Error(K(306,a,""))}return t;case 0:return a=t.type,o=t.pendingProps,o=t.elementType===a?o:Rn(a,o),Ws(e,t,a,o,n);case 1:return a=t.type,o=t.pendingProps,o=t.elementType===a?o:Rn(a,o),$u(e,t,a,o,n);case 3:e:{if(Dm(t),e===null)throw Error(K(387));a=t.pendingProps,i=t.memoizedState,o=i.element,om(e,t),_i(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=Ca(Error(K(423)),t),t=Vu(e,t,a,n,o);break e}else if(a!==o){o=Ca(Error(K(424)),t),t=Vu(e,t,a,n,o);break e}else for(rn=br(t.stateNode.containerInfo.firstChild),an=t,nt=!0,Dn=null,n=rm(t,null,a,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(xa(),a===o){t=tr(e,t,n);break e}Wt(e,t,a,n)}t=t.child}return t;case 5:return im(t),e===null&&_s(t),a=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,l=o.children,Ds(a,o)?l=null:i!==null&&Ds(a,i)&&(t.flags|=32),Lm(e,t),Wt(e,t,l,n),t.child;case 6:return e===null&&_s(t),null;case 13:return Pm(e,t,n);case 4:return Nc(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=ka(t,null,a,n):Wt(e,t,a,n),t.child;case 11:return a=t.type,o=t.pendingProps,o=t.elementType===a?o:Rn(a,o),Wu(e,t,a,o,n);case 7:return Wt(e,t,t.pendingProps,n),t.child;case 8:return Wt(e,t,t.pendingProps.children,n),t.child;case 12:return Wt(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,Je(Fi,a._currentValue),a._currentValue=l,i!==null)if(Fn(i.value,l)){if(i.children===o.children&&!qt.current){t=tr(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=Xn(-1,n&-n),c.tag=2;var p=i.updateQueue;if(p!==null){p=p.shared;var u=p.pending;u===null?c.next=c:(c.next=u.next,u.next=c),p.pending=c}}i.lanes|=n,c=i.alternate,c!==null&&(c.lanes|=n),js(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(K(341));l.lanes|=n,s=l.alternate,s!==null&&(s.lanes|=n),js(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}Wt(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,a=t.pendingProps.children,ya(t,n),o=wn(o),a=a(o),t.flags|=1,Wt(e,t,a,n),t.child;case 14:return a=t.type,o=Rn(a,t.pendingProps),o=Rn(a.type,o),Uu(e,t,a,o,n);case 15:return zm(e,t,t.type,t.pendingProps,n);case 17:return a=t.type,o=t.pendingProps,o=t.elementType===a?o:Rn(a,o),vi(e,t),t.tag=1,Qt(a)?(e=!0,Di(t)):e=!1,ya(t,n),Tm(t,a,o),Bs(t,a,o,n),Us(null,t,a,!0,e,n);case 19:return Im(e,t,n);case 22:return Rm(e,t,n)}throw Error(K(156,t.tag))};function Qm(e,t){return Sp(e,t)}function vy(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 vn(e,t,n,a){return new vy(e,t,n,a)}function Bc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function by(e){if(typeof e=="function")return Bc(e)?1:0;if(e!=null){if(e=e.$$typeof,e===oc)return 11;if(e===ic)return 14}return 2}function Sr(e,t){var n=e.alternate;return n===null?(n=vn(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 xi(e,t,n,a,o,i){var l=2;if(a=e,typeof e=="function")Bc(e)&&(l=1);else if(typeof e=="string")l=5;else e:switch(e){case na:return Br(n.children,o,i,t);case ac:l=8,o|=8;break;case ds:return e=vn(12,n,t,o|2),e.elementType=ds,e.lanes=i,e;case us:return e=vn(13,n,t,o),e.elementType=us,e.lanes=i,e;case ps:return e=vn(19,n,t,o),e.elementType=ps,e.lanes=i,e;case ip:return nl(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ap:l=10;break e;case op:l=9;break e;case oc:l=11;break e;case ic:l=14;break e;case dr:l=16,a=null;break e}throw Error(K(130,e==null?e:typeof e,""))}return t=vn(l,n,t,o),t.elementType=e,t.type=a,t.lanes=i,t}function Br(e,t,n,a){return e=vn(7,e,a,t),e.lanes=n,e}function nl(e,t,n,a){return e=vn(22,e,a,t),e.elementType=ip,e.lanes=n,e.stateNode={isHidden:!1},e}function ls(e,t,n){return e=vn(6,e,null,t),e.lanes=n,e}function ss(e,t,n){return t=vn(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function wy(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=Vl(0),this.expirationTimes=Vl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Vl(0),this.identifierPrefix=a,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Hc(e,t,n,a,o,i,l,s,c){return e=new wy(e,t,n,s,c),t===1?(t=1,i===!0&&(t|=8)):t=0,i=vn(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:a,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Cc(i),e}function xy(e,t,n){var a=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:ta,key:a==null?null:""+a,children:e,containerInfo:t,implementation:n}}function Xm(e){if(!e)return Nr;e=e._reactInternals;e:{if(Kr(e)!==e||e.tag!==1)throw Error(K(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Qt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(K(171))}if(e.tag===1){var n=e.type;if(Qt(n))return Xp(e,n,t)}return t}function Jm(e,t,n,a,o,i,l,s,c){return e=Hc(n,a,!0,e,o,i,l,s,c),e.context=Xm(null),n=e.current,a=Ut(),o=kr(n),i=Xn(a,o),i.callback=t??null,wr(n,i,o),e.current.lanes=o,To(e,o,a),Xt(e,a),e}function rl(e,t,n,a){var o=t.current,i=Ut(),l=kr(o);return n=Xm(n),t.context===null?t.context=n:t.pendingContext=n,t=Xn(i,l),t.payload={element:e},a=a===void 0?null:a,a!==null&&(t.callback=a),e=wr(o,t,l),e!==null&&(In(e,o,l,i),gi(e,o,l)),l}function Vi(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 tp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Wc(e,t){tp(e,t),(e=e.alternate)&&tp(e,t)}function ky(){return null}var Zm=typeof reportError=="function"?reportError:function(e){console.error(e)};function Uc(e){this._internalRoot=e}al.prototype.render=Uc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(K(409));rl(e,t,null,null)};al.prototype.unmount=Uc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Vr(function(){rl(null,e,null,null)}),t[Zn]=null}};function al(e){this._internalRoot=e}al.prototype.unstable_scheduleHydration=function(e){if(e){var t=Rp();e={blockedOn:null,target:e,priority:t};for(var n=0;n<pr.length&&t!==0&&t<pr[n].priority;n++);pr.splice(n,0,e),n===0&&Dp(e)}};function $c(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function ol(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function np(){}function Sy(e,t,n,a,o){if(o){if(typeof a=="function"){var i=a;a=function(){var p=Vi(l);i.call(p)}}var l=Jm(t,a,e,0,null,!1,!1,"",np);return e._reactRootContainer=l,e[Zn]=l.current,yo(e.nodeType===8?e.parentNode:e),Vr(),l}for(;o=e.lastChild;)e.removeChild(o);if(typeof a=="function"){var s=a;a=function(){var p=Vi(c);s.call(p)}}var c=Hc(e,0,!1,null,null,!1,!1,"",np);return e._reactRootContainer=c,e[Zn]=c.current,yo(e.nodeType===8?e.parentNode:e),Vr(function(){rl(t,c,n,a)}),c}function il(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=Vi(l);s.call(c)}}rl(t,l,e,o)}else l=Sy(n,t,e,o,a);return Vi(l)}Ep=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Xa(t.pendingLanes);n!==0&&(cc(t,n|1),Xt(t,mt()),!(Oe&6)&&(Na=mt()+500,Er()))}break;case 13:Vr(function(){var a=er(e,1);if(a!==null){var o=Ut();In(a,e,1,o)}}),Wc(e,1)}};dc=function(e){if(e.tag===13){var t=er(e,134217728);if(t!==null){var n=Ut();In(t,e,134217728,n)}Wc(e,134217728)}};zp=function(e){if(e.tag===13){var t=kr(e),n=er(e,t);if(n!==null){var a=Ut();In(n,e,t,a)}Wc(e,t)}};Rp=function(){return Ke};Lp=function(e,t){var n=Ke;try{return Ke=e,t()}finally{Ke=n}};ks=function(e,t,n){switch(t){case"input":if(gs(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=Qi(a);if(!o)throw Error(K(90));sp(a),gs(a,o)}}}break;case"textarea":dp(e,n);break;case"select":t=n.value,t!=null&&ma(e,!!n.multiple,t,!1)}};yp=_c;vp=Vr;var Cy={usingClientEntryPoint:!1,Events:[Eo,ia,Qi,gp,hp,_c]},Ka={findFiberByHostInstance:Ar,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Ny={bundleType:Ka.bundleType,version:Ka.version,rendererPackageName:Ka.rendererPackageName,rendererConfig:Ka.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:nr.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=xp(e),e===null?null:e.stateNode},findFiberByHostInstance:Ka.findFiberByHostInstance||ky,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(Ya=__REACT_DEVTOOLS_GLOBAL_HOOK__,!Ya.isDisabled&&Ya.supportsFiber))try{Gi=Ya.inject(Ny),Wn=Ya}catch{}var Ya;sn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Cy;sn.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!$c(t))throw Error(K(200));return xy(e,t,null,n)};sn.createRoot=function(e,t){if(!$c(e))throw Error(K(299));var n=!1,a="",o=Zm;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=Hc(e,1,!1,null,null,n,!1,a,o),e[Zn]=t.current,yo(e.nodeType===8?e.parentNode:e),new Uc(t)};sn.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(K(188)):(e=Object.keys(e).join(","),Error(K(268,e)));return e=xp(t),e=e===null?null:e.stateNode,e};sn.flushSync=function(e){return Vr(e)};sn.hydrate=function(e,t,n){if(!ol(t))throw Error(K(200));return il(null,e,t,!0,n)};sn.hydrateRoot=function(e,t,n){if(!$c(e))throw Error(K(405));var a=n!=null&&n.hydratedSources||null,o=!1,i="",l=Zm;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(l=n.onRecoverableError)),t=Jm(t,null,e,1,n??null,o,!1,i,l),e[Zn]=t.current,yo(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 al(t)};sn.render=function(e,t,n){if(!ol(t))throw Error(K(200));return il(null,e,t,!1,n)};sn.unmountComponentAtNode=function(e){if(!ol(e))throw Error(K(40));return e._reactRootContainer?(Vr(function(){il(null,null,e,!1,function(){e._reactRootContainer=null,e[Zn]=null})}),!0):!1};sn.unstable_batchedUpdates=_c;sn.unstable_renderSubtreeIntoContainer=function(e,t,n,a){if(!ol(n))throw Error(K(200));if(e==null||e._reactInternals===void 0)throw Error(K(38));return il(e,t,n,!1,a)};sn.version="18.3.1-next-f1338f8080-20240426"});var Vc=Gn((Hv,nf)=>{"use strict";function tf(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(tf)}catch(e){console.error(e)}}tf(),nf.exports=ef()});var af=Gn(Gc=>{"use strict";var rf=Vc();Gc.createRoot=rf.createRoot,Gc.hydrateRoot=rf.hydrateRoot;var Wv});var Lf=Gn(ml=>{"use strict";var By=_a(),Hy=Symbol.for("react.element"),Wy=Symbol.for("react.fragment"),Uy=Object.prototype.hasOwnProperty,$y=By.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Vy={key:!0,ref:!0,__self:!0,__source:!0};function Rf(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)Uy.call(t,a)&&!Vy.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:Hy,type:e,key:i,ref:l,props:o,_owner:$y.current}}ml.Fragment=Wy;ml.jsx=Rf;ml.jsxs=Rf});var Do=Gn((r0,Df)=>{"use strict";Df.exports=Lf()});var Ra=lr(_a(),1),qf=lr(af(),1);var m=lr(_a(),1),Ky=lr(Vc(),1);var Ty={"&":"&","<":"<",">":">"},Kc=e=>String(e).replace(/[&<>]/g,t=>Ty[t]),My=[[/结论|总结|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"]],Ey=["\u2728","info"],zy=[[/风险|注意|警告|禁止|坑|务必/i,"\u26A0\uFE0F","warn"],[/提示|建议|tip|best practice/i,"\u{1F4A1}","idea"],[/结论|总结/i,"\u2705","ok"],[/错误|失败|报错/i,"\u2757","bad"]],Ry=e=>{let t=String(e);for(let[n,a,o]of My)if(n.test(t))return[a,o];return Ey},Ly=e=>{let t=e.join(" ");for(let[n,a,o]of zy)if(n.test(t))return[a,o];return["\u{1F4CC}","info"]};function Ea(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">'+Kc(n[1])+'</span><span class="md-v">'+Ea(n[2])+"</span></span>";let a=Kc(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 ll(e){let t=String(e||"").replace(/\r\n?/g,`
|
|
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 of(e){let t=String(e||"").trim().replace(/^\[|\]$/g,"");return t?t.split(",").map(n=>n.trim().replace(/^["']|["']$/g,"")).filter(Boolean):[]}function Ro(e){let t=ll(String(e||"").replace(/\r\n?/g,`
|
|
11
|
+
`)).body;if(!t.trim())return"";let n=[],a=t.replace(/```([\w+#.-]*)\n([\s\S]*?)```/g,(k,L,D)=>(n.push('<pre class="md-pre"><code>'+Kc(D.replace(/\n$/,""))+"</code></pre>"),"\0F"+(n.length-1)+"\0")),o=[],i=0,l=[],s=null,c=null,p=()=>{l.length&&(o.push('<p class="md-p">'+l.join("<br/>")+"</p>"),l=[])},u=()=>{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]=Ly(c);o.push('<div class="md-callout md-c-'+L+'"><span class="md-ico">'+k+"</span>"+c.join("<br/>")+"</div>"),c=null},g=()=>{p(),u(),h()};for(let k of a.split(`
|
|
12
|
+
`)){let L=k.trim();if(!L){g();continue}let D=/^\u0000F(\d+)\u0000$/.exec(L);if(D){g(),o.push(n[Number(D[1])]);continue}let F;if(F=/^(#{1,6})\s+(.+)$/.exec(L)){g();let[v,f]=Ry(F[2]);i++,o.push('<div id="md-h-'+i+'" class="md-h md-h-'+(F[1].length<=2?"h1":"h2")+" md-c-"+f+'"><span class="md-ico">'+v+'</span><span class="md-hx">'+Ea(F[2])+"</span></div>");continue}if(/^(-{3,}|\*{3,}|_{3,})$/.test(L)){g(),o.push('<hr class="md-hr"/>');continue}if(F=/^>\s?(.*)$/.exec(L)){p(),u(),c=c||[],c.push(Ea(F[1]));continue}if(F=/^[-*+]\s+(.+)$/.exec(L)){p(),h(),(!s||s.type!=="ul")&&(u(),s={type:"ul",items:[]}),s.items.push(Ea(F[1]));continue}if(F=/^\d+[.)]\s+(.+)$/.exec(L)){p(),h(),(!s||s.type!=="ol")&&(u(),s={type:"ol",items:[]}),s.items.push(Ea(F[1]));continue}u(),h(),l.push(Ea(L))}return g(),o.join(`
|
|
13
|
+
`)}var sl="data:image/png;base64,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";function lf(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),p=a.slice(s,c).replace(/\s+/g," ").trim();return(s>0?"\u2026":"")+p+(c<a.length?"\u2026":"")}function Yc(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 sf({hasVersion:e=!1,hostVersion:t="",onDisk:n="",residentServed:a="",residentPresent:o=!1,residentManaged:i=null,residentManagedKnown:l=null,residentManagedBy:s="",replaceBlocked:c=null}={}){let p=String(n||""),u=String(t||""),h=String(a||""),g=!!(e&&o&&!h),k=!!(p&&h&&h!==p),L=i===!1&&l===!1,D=s==="host",F=i===!1&&!L&&!D,v=!!(u&&p&&u!==p),f=!!(c&&c.fresh),y=k||g||F||L,_=null;v?_="hostProcessStale":g?_="residentDown":f?_="residentReplaceBlocked":L?_="residentLockUnknown":F&&(_="residentUnmanaged");let I;return g?I="restartStart":k?I="restartFixes":F||L?I="restartRepair":v?I="restartHostOnly":I="restartAnyway",{showButton:!!e,emphasis:y,warn:_,hint:I,hostStale:v,residentDown:g,residentStale:k,residentUnmanaged:F,residentLockUnknown:L,residentHostManaged:D,needsRestart:y}}var Py=/^\d{4}-\d{2}-\d{2}$/,cl=e=>String(e).padStart(2,"0");function Lo(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(Py.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 cf=e=>`${e.getFullYear()}-${cl(e.getMonth()+1)}-${cl(e.getDate())}`,df=e=>`${cl(e.getHours())}:${cl(e.getMinutes())}`;function dl(e){let t=Lo(e);return t?cf(t):""}function qc(e){let t=Lo(e);return t?cf(t)+" "+df(t):""}function uf(e){let t=Lo(e);return t?df(t):""}function pf(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 p=new URLSearchParams;return p.set("title",n),p.set("body",c),a.length&&p.set("labels",a.join(",")),"https://github.com/"+t+"/issues/new?"+p.toString()},l=String(e.body||""),s=i(l);if(s.length>o){let c=`
|
|
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`,p=u=>i(l.slice(0,u)+c);if(p(0).length>o)l=c;else{let u=0,h=l.length;for(;u<h;){let g=Math.ceil((u+h)/2);p(g).length<=o?u=g:h=g-1}l=l.slice(0,u)+c}s=i(l)}return s}function mf(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 Qc="https://github.com/EternalNight996/memory-eternal",Iy=["\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"+Qc,"","\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
|
+
`),Fy=["I hit a problem while using memory-eternal (a DeepSeek Harness memory plugin). Please file it on GitHub for me.","","Repo: "+Qc,"","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 ff(e={}){let t=e.lang==="en"?"en":"zh",n=t==="en"?Fy:Iy,a=e.repo||"EternalNight996/memory-eternal";return n=n.split(Qc).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 gf({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 ul(e,t,n,a){return a?e+n>=a.x0&&e-n<=a.x1&&t+n>=a.y0&&t-n<=a.y1:!0}function hf(e){let t=Number(e)||0;return t<=120?1/0:t<=300?160:t<=600?90:60}function yf(e,t={}){let n=Number.isFinite(t.limit)?t.limit:1/0,a=new Set,o=c=>{c&&a.size<n&&a.add(c)};if(o(t.focusId),o(t.hoverId),t.searchHits)for(let c of t.searchHits){if(a.size>=n)break;a.add(c)}let i=t.degree||{},l=c=>Number(i[c])||0,s=[];for(let c of Array.isArray(e)?e:[])c&&c.id&&!a.has(c.id)&&s.push(c);s.sort((c,p)=>l(p.id)-l(c.id));for(let c of s){if(a.size>=n)break;a.add(c.id)}return a}function vf(e){let t=Math.floor(Number(e)||0);return t<=0?0:t>1200?48:t>700?60:t>300?110:200}function pl(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 Ay=.05,Zc=30;function Xc(e,t,n,a){return(n>=e?1:0)+(a>=t?2:0)}var Jc=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 p=this.cx[n],u=this.cy[n];for(let g=0;g<4;g+=1)this.child[s+g]=this.newNode(p+(g&1?c:-c),u+(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+Xc(p,u,Number(g.x)||0,Number(g.y)||0)],h)}this.insert(t,this.child[s+Xc(p,u,i,l)],a);return}this.insert(t,this.child[s+Xc(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,p=Math.max(1,Math.max(o-a,l-i)/2)*1.001,u=this.newNode(s,c,p);if(u<0)return-1;for(let h=0;h<n;h+=1)this.insert(t,u,h);return u}accumulate(t,n,a,o,i,l){let s=this.mass[t];if(s<=0)return;let c=this.mx[t]/s,p=this.my[t]/s,u=a-c,h=o-p,g=u*u+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 F=i*s/g;this.fx[n]+=u/L*F,this.fy[n]+=h/L*F;return}let D=t*4;for(let F=0;F<4;F+=1){let v=this.child[D+F];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,p=n.skipIndex===void 0?-1:n.skipIndex;for(let u=0;u<a;u+=1){if(u===p)continue;let h=t[u];this.accumulate(l,u,Number(h.x)||0,Number(h.y)||0,s,c)}return{fx:o,fy:i,visits:this.lastVisits}}};function bf(e,t={}){let n=e.nodes,a=n.length,o=t.params||pl(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 p=t.alpha===void 0?e.alpha:t.alpha,u=Math.min(.4,e.tickCount/1500),h=t.damping===void 0?.9-u: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 Jc(a));let k=e.forceEngine.compute(n,{repulsion:o.repulsion*p,theta:i,skipIndex:g}),L=k.fx,D=k.fy;for(let R=0;R<a;R+=1){if(R===g)continue;let P=n[R],A=L[R],B=D[R];if(Number.isFinite(A)||(A=0),Number.isFinite(B)||(B=0),e.clustered&&e.typeCenters&&e.typeCenters[P.type]){let ye=e.typeCenters[P.type];A+=(ye.x-P.x)*.006*p,B+=(ye.y-P.y)*.006*p}else A-=P.x*o.centerGravity*p,B-=P.y*o.centerGravity*p;let W=((Number(P.vx)||0)+A)*h,le=((Number(P.vy)||0)+B)*h;W>o.velCap?W=o.velCap:W<-o.velCap&&(W=-o.velCap),le>o.velCap?le=o.velCap:le<-o.velCap&&(le=-o.velCap),P.vx=W,P.vy=le}let F=e.edges||[],v=e.edgePairs||null,f=e.nodeById||null,y=v?v.length/2:F.length;for(let R=0;R<y;R+=1){let P,A;if(v)P=n[v[R*2]],A=n[v[R*2+1]];else{let V=F[R];P=f?f.get(V.sourceNodeId):null,A=f?f.get(V.targetNodeId):null}if(!P||!A)continue;let B=A.x-P.x,W=A.y-P.y,le=Math.sqrt(B*B+W*W)||1,ye=(le-100)*o.attraction*p,se=B/le*ye,Ge=W/le*ye;e.dragNode!==P&&(P.vx+=se,P.vy+=Ge),e.dragNode!==A&&(A.vx-=se,A.vy-=Ge)}let _=0;for(let R=0;R<a;R+=1){let P=n[R];R!==g&&(P.x+=P.vx,P.y+=P.vy,_+=P.vx*P.vx+P.vy*P.vy)}let I=a?Math.sqrt(_/a):0;return I<Ay&&e.tickCount>60&&!e.dragNode?e.quietTicks=(e.quietTicks|0)+1:e.quietTicks=0,{rms:I,tickCount:e.tickCount,quietTicks:e.quietTicks,params:o,visits:k.visits,alpha:p}}function Yr(e){return(Array.isArray(e)?e:[]).filter(Boolean).join("/")}function wf(e){return String(e??"").split("/").filter(Boolean)}function xf(e,t,n={}){let a=Yr(t);return`${e}/graph/level?path=${encodeURIComponent(a)}${n.all?"&all=1":""}`}function _y(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 jy({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 kf(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 Sf(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?_y(n.count):jy({kind:o,degree:t.degree,maxDegree:t.maxDegree})}}function Cf(e){return{...e||{},repulsion:1600,centerGravity:.004}}function Nf(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 Tf(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 Mf(e={}){let t=e.raf||(c=>requestAnimationFrame(c)),n=e.cancelRaf||(c=>cancelAnimationFrame(c)),a=e.setTimeout||((c,p)=>setTimeout(c,p)),o=e.clearTimeout||(c=>clearTimeout(c)),i=new Set,l=new Set,s=[];return{raf(c){let p=t(()=>{i.delete(p),c()});return i.add(p),p},cancelRaf(c){c!=null&&(i.delete(c),n(c))},setTimeout(c,p){let u=a(()=>{l.delete(u),c()},p);return l.add(u),u},clearTimeout(c){c!=null&&(l.delete(c),o(c))},listen(c,p,u,h){c.addEventListener(p,u,h),s.push({target:c,type:p,fn:u,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 Ef(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 Oy(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 zf(e,t){let n={...e||{}},a={};for(let[o,i]of Object.entries(t||{}))Oy(e?e[o]:void 0,i)||(n[o]=i,a[o]=i);return{values:n,overlay:a}}var r=lr(Do(),1);var ee="/memory-eternal/api",fl=["\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"],Pf="\u300A\u86CA\u771F\u4EBA\u300B\xB7 \u5927\u7231\u4ED9\u5C0A";async function ad(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 Yy=100;var dd={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",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",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",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",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]
|
|
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
|
-
- `},_f={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",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",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.",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",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",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",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",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",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.",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
|
+
- `},Bf={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",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.",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",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",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]
|
|
65
65
|
|
|
66
66
|
## Background
|
|
67
67
|
- Problem
|
|
@@ -106,7 +106,7 @@ Option A, because:
|
|
|
106
106
|
-
|
|
107
107
|
|
|
108
108
|
## Risks/blockers
|
|
109
|
-
- `},
|
|
109
|
+
- `},yl=["all","core","project","knowledge","skill","content","prompt","business","tool","mistake"],Hf=yl.filter(e=>e!=="all"&&e!=="core"),Gt={core:"#FF7A45",skill:"#8B5CF6",project:"#3B82F6",knowledge:"#10B981",content:"#F59E0B",prompt:"#A855F7",business:"#EC4899",tool:"#06B6D4",mistake:"#EF4444",other:"#6B7280"},ed=e=>Array.isArray(e&&e.tags)?e.tags:[],Lr={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}"},Lt={core:"kindCore",skill:"kindSkill",project:"kindProject",knowledge:"kindKnowledge",content:"kindContent",prompt:"kindPrompt",business:"kindBusiness",tool:"kindTool",mistake:"kindMistake",other:"kindKnowledge"},Fo="deepseek-harness",Rr=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":Fo:n==="deepseek harness"?Fo:t.split(":")[0]||Fo},qy=[Fo,"claude","codex","cursor","codex-desktop"],Wf=(e=[])=>[...new Set([...qy,...(e||[]).map(Rr)])],Qy={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; }
|
|
@@ -133,9 +133,19 @@ Option A, because:
|
|
|
133
133
|
.mc-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; font-size: 12px; }
|
|
134
134
|
.mc-field-label { font-size: 11.5px; opacity: .62; line-height: 1.4; white-space: normal; overflow-wrap: anywhere; }
|
|
135
135
|
.mc-field-hint { font-size: 10.5px; opacity: .45; line-height: 1.4; }
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
.mc-field input:
|
|
136
|
+
/* \u53EA\u6709\u300C\u771F\u6B63\u586B\u5185\u5BB9\u300D\u7684\u63A7\u4EF6\u624D\u5360\u6EE1\u4E00\u884C\u3002\u591A\u9009\u4E0B\u62C9\u91CC\u7684 checkbox \u4E00\u65E6\u88AB\u8FD9\u6761\u547D\u4E2D\uFF0C
|
|
137
|
+
\u4F1A\u88AB\u6491\u6210\u6574\u884C\u5BBD \u2014\u2014 \u9009\u9879\u6587\u5B57\u88AB\u6324\u5230\u6700\u53F3\u7F18\u3001\u9010\u5B57\u6362\u884C\uFF08\u7528\u6237\u622A\u56FE\u91CC\u7684\u4E0B\u62C9\u6846 BUG\uFF09\u3002 */
|
|
138
|
+
.mc-field input:not([type="checkbox"]):not([type="radio"]), .mc-field select { width: 100%; box-sizing: border-box; padding: 7px 9px; border-radius: 8px; border: 1px solid var(--dsw-alias-border-l2, #d1d5db); background: var(--dsw-alias-bg-layer-1, #fff); color: inherit; font-size: 12px; transition: border-color .15s, box-shadow .15s; }
|
|
139
|
+
.mc-field input:not([type="checkbox"]):not([type="radio"]):focus, .mc-field select:focus { outline: none; border-color: var(--dsw-alias-brand-primary, #3b82f6); box-shadow: 0 0 0 3px rgba(59,130,246,.14); }
|
|
140
|
+
.mc-field input:not([type="checkbox"]):not([type="radio"]):disabled, .mc-field select:disabled { opacity: .55; cursor: not-allowed; }
|
|
141
|
+
/* \u590D\u9009\u6846\uFF1A\u56FA\u5B9A\u5C3A\u5BF8\u3001\u4E0D\u53C2\u4E0E\u62C9\u4F38\uFF0C\u5E76\u8DDF\u968F\u4E3B\u9898\u5F3A\u8C03\u8272 */
|
|
142
|
+
.mc-field input[type="checkbox"], .mc-field input[type="radio"] { width: 15px; height: 15px; flex: none; margin: 0; padding: 0; accent-color: #ff7a45; cursor: pointer; }
|
|
143
|
+
/* \u591A\u9009\u4E0B\u62C9\u7684\u9009\u9879\u884C\uFF1A\u4E00\u884C\u4E00\u4E2A\uFF0C\u4E0D\u6362\u884C\uFF0Chover \u6709\u53CD\u9988 */
|
|
144
|
+
.mc-dd-opt { display: flex; align-items: center; gap: 8px; padding: 7px 9px; cursor: pointer; white-space: nowrap; min-width: 0; }
|
|
145
|
+
.mc-dd-opt:hover { background: rgba(127,127,127,.10); }
|
|
146
|
+
.mc-dd-opt span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
|
|
147
|
+
/* \u6DF1\u8272\u4E3B\u9898\u4E0B\u8BA9\u539F\u751F\u590D\u9009\u6846\u8D70\u6DF1\u8272\u6E32\u67D3\uFF08\u9ED8\u8BA4\u662F\u767D\u5E95\u65B9\u5757\uFF0C\u5728\u9ED1\u5361\u4E0A\u975E\u5E38\u523A\u773C\uFF09 */
|
|
148
|
+
.me-v5 .mc-dd-opt input[type="checkbox"] { color-scheme: dark; }
|
|
139
149
|
.mc-switch { display: flex; align-items: flex-start; gap: 9px; cursor: pointer; font-size: 12px; line-height: 1.5; min-width: 0; }
|
|
140
150
|
.mc-switch input { appearance: none; -webkit-appearance: none; flex: none; width: 34px; height: 20px; margin: 1px 0 0; border-radius: 999px; background: var(--dsw-alias-border-l2, #cbd5e1); position: relative; cursor: pointer; transition: background .16s; }
|
|
141
151
|
.mc-switch input::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.28); transition: transform .16s; }
|
|
@@ -183,6 +193,35 @@ Option A, because:
|
|
|
183
193
|
.mc-rail:not(.open) .mc-railbtn .mc-rail-label, .mc-rail:not(.open) .mc-rail-collapse { position: relative; }
|
|
184
194
|
.mc-railbtn:hover { border-color: var(--dsw-alias-brand-primary, #3b82f6); color: var(--dsw-alias-label-primary, #111); background: var(--dsw-alias-bg-layer-1, #fff); }
|
|
185
195
|
.mc-railbtn.active { background: #3b82f6; border-color: transparent; color: #fff; box-shadow: 0 6px 18px rgba(59,130,246,0.35); }
|
|
196
|
+
/* ---- \u4F5C\u8005\u8BED\u5F55\uFF08\u5DE6\u4FA7\u680F\u5E95\u90E8\uFF0Cmargin-top:auto \u8D34\u5E95\uFF09----
|
|
197
|
+
\u6309\u94AE\u8BED\u4E49\uFF1A\u6574\u5757\u53EF\u70B9\uFF0C\u70B9\u4E00\u6B21\u6362\u4E0B\u4E00\u53E5\uFF1B\u6298\u53E0\u6001\u4E0E\u7A84\u5C4F\u9690\u85CF\uFF0C\u907F\u514D\u6324\u574F\u56FE\u6807\u680F\u3002 */
|
|
198
|
+
/* \u4F5C\u8005\u8BED\u5F55\uFF1A\u505A\u6210\u4E00\u5F20\u300C\u9898\u8BCD\u5361\u300D\uFF0C\u4E0D\u662F\u53C8\u4E00\u5757 UI \u9762\u677F\u3002
|
|
199
|
+
\u4E09\u6761\u8BBE\u8BA1\u7406\u7531\uFF1A
|
|
200
|
+
\u2460 \u8BD7\u53E5\u7528\u886C\u7EBF\uFF08\u5B8B\u4F53\u65CF\uFF09\u2014\u2014\u9ED1\u4F53\u8BFB\u8BD7\u50CF\u516C\u544A\u680F\uFF0C\u6A2A\u7EC6\u7AD6\u7C97\u624D\u6709\u53E4\u610F\uFF1B
|
|
201
|
+
\u2461 \u7EB8\u611F\u6696\u767D + \u53F3\u4E0B\u89D2 13% \u900F\u660E\u5EA6\u7684\u5F15\u53F7\u6C34\u5370 \u2014\u2014 \u5361\u7247\u53EA\u6709 ~200px \u5BBD\uFF0C\u7EAF\u6587\u5B57\u5BB9\u6613\u7CCA\u6210\u4E00\u5757\uFF0C
|
|
202
|
+
\u4E00\u4E2A\u6C34\u5370 + \u4E00\u70B9\u7559\u767D\u5C31\u80FD\u628A\u5B83\u538B\u6210"\u9898\u8BCD"\u800C\u4E0D\u662F"\u5361\u7247"\uFF1B
|
|
203
|
+
\u2462 \u5C42\u6B21\u9760\u989C\u8272\u533A\u5206\u800C\u4E0D\u662F\u5B57\u53F7\u5806\u53E0\uFF1A\u7709\u6807\u7528\u7425\u73C0\u8272\u3001\u8BD7\u53E5\u7528\u58A8\u8272\u3001\u51FA\u5904\u7528\u892A\u8272\u7684\u8910\u3002 */
|
|
204
|
+
.mc-quote { position: relative; margin-top: auto; flex: none; width: 100%; box-sizing: border-box; display: flex; flex-direction: column; gap: 7px; padding: 12px 13px 11px; text-align: left; font: inherit; cursor: pointer; overflow: hidden; border: 1px solid rgba(120, 105, 85, .16); border-radius: 13px; background: linear-gradient(158deg, #fffdf9 0%, #f6f1e7 100%); color: #4a443c; transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease; }
|
|
205
|
+
.mc-quote::before { content: '\u275D'; position: absolute; top: 3px; right: 8px; font-family: Georgia, 'Times New Roman', serif; font-size: 30px; line-height: 1; color: rgba(180, 83, 9, .13); pointer-events: none; }
|
|
206
|
+
.mc-quote:hover { border-color: rgba(180, 83, 9, .42); background: linear-gradient(158deg, #fffefb 0%, #f8f2e6 100%); box-shadow: 0 6px 18px rgba(120, 90, 50, .10); transform: translateY(-1px); }
|
|
207
|
+
.mc-quote-tag { position: relative; font-size: 9px; font-weight: 700; letter-spacing: .16em; color: #b45309; opacity: .9; }
|
|
208
|
+
.mc-quote-text { position: relative; font-family: 'Noto Serif SC', 'Source Han Serif SC', 'Songti SC', 'STSong', 'SimSun', serif; font-size: 12px; line-height: 1.95; letter-spacing: .015em; color: #3f3a33; word-break: break-word; }
|
|
209
|
+
.mc-quote-src { position: relative; align-self: flex-end; font-size: 9.5px; letter-spacing: .04em; color: #a08b6b; }
|
|
210
|
+
.mc-quote-src::before { content: '\u2014 '; opacity: .7; }
|
|
211
|
+
@keyframes me-quote-in { from { opacity: 0; transform: translateY(2px); } to { opacity: 1; transform: none; } }
|
|
212
|
+
.mc-quote-text { animation: me-quote-in .26s ease both; }
|
|
213
|
+
.mc-rail:not(.open) .mc-quote { display: none; }
|
|
214
|
+
@media (max-width: 720px) { .mc-quote { display: none; } }
|
|
215
|
+
/* \u6DF1\u8272\u4E3B\u9898\uFF1A\u6696\u58A8\u5E95 + \u7425\u73C0\u8272\u63CF\u8FB9\u3002\u8BD7\u53E5\u7528 #ece6dc \u800C\u4E0D\u662F\u7EE7\u627F\u7684 #b0b7c1 \u2014\u2014
|
|
216
|
+
\u540E\u8005\u662F"\u8BF4\u660E\u6587\u5B57"\u7684\u7070\u5EA6\uFF0C\u8BFB\u8BD7\u4F1A\u663E\u5F97\u810F\u4E14\u53D1\u9752\u3002 */
|
|
217
|
+
.me-v5 .mc-quote { border-color: rgba(255, 122, 69, .16); background: linear-gradient(158deg, #262a31 0%, #1d2127 100%); color: #b0b7c1; }
|
|
218
|
+
.me-v5 .mc-quote::before { color: rgba(255, 122, 69, .14); }
|
|
219
|
+
.me-v5 .mc-quote:hover { border-color: rgba(255, 122, 69, .45); background: linear-gradient(158deg, #2b3038 0%, #22262d 100%); box-shadow: 0 8px 22px rgba(0, 0, 0, .35); }
|
|
220
|
+
.me-v5 .mc-quote-tag { color: #ff9d6e; }
|
|
221
|
+
.me-v5 .mc-quote-text { color: #ece6dc; }
|
|
222
|
+
.me-v5 .mc-quote-src { color: rgba(255, 157, 110, .62); }
|
|
223
|
+
@media (max-width: 1100px) { .me-v5 .mc-quote { display: none; } }
|
|
224
|
+
@container (max-width: 1100px) { .me-v5 .mc-quote { display: none; } }
|
|
186
225
|
.mc-main { flex: 1; min-width: 0; overflow: auto; display: flex; flex-direction: column; }
|
|
187
226
|
.mc-tab.active { background: var(--dsw-alias-bg-layer-1, #fff); opacity: 1; font-weight: 600; box-shadow: 0 1px 4px rgba(0,0,0,0.12); }
|
|
188
227
|
.mc-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
|
|
@@ -368,6 +407,35 @@ Option A, because:
|
|
|
368
407
|
.mc-news-hero-go { flex: none; padding: 9px 18px; border: 0; border-radius: 999px; cursor: pointer; font-family: inherit; font-size: 13px; font-weight: 650; color: #04101f; background: linear-gradient(120deg, #67e8f9, #38bdf8 45%, #a78bfa); box-shadow: 0 8px 20px -10px rgba(56,189,248,.9); transition: transform .18s ease, filter .2s ease; }
|
|
369
408
|
.mc-news-hero-go:hover { transform: translateY(-1px); filter: brightness(1.06); }
|
|
370
409
|
.mc-news-hero-go:active { transform: scale(.98); }
|
|
410
|
+
/* ---- \u5173\u6CE8\uFF08Follow\uFF09\uFF1Ahero \u91CC\u7684\u8BA2\u9605\u5165\u53E3 + \u9884\u89C8\u5361 + \u5173\u6CE8 chips ---- */
|
|
411
|
+
.mc-news-hero-follow { flex: none; padding: 9px 15px; border: 1px solid var(--dsw-alias-border-l2, #d1d5db); border-radius: 999px; cursor: pointer; font-family: inherit; font-size: 12.5px; font-weight: 650; color: inherit; background: var(--dsw-alias-bg-layer-1, #fff); transition: all .16s ease; }
|
|
412
|
+
.mc-news-hero-follow:hover { border-color: var(--dsw-alias-brand-primary, #3b82f6); color: var(--dsw-alias-brand-primary, #3b82f6); transform: translateY(-1px); }
|
|
413
|
+
.mc-news-hero-follow:disabled { opacity: .55; cursor: not-allowed; transform: none; }
|
|
414
|
+
/* \u9884\u89C8\u5361\uFF1A\u843D\u5E93\u524D\u7684\u300C\u6211\u7406\u89E3\u5BF9\u4E86\u5417\u300D\u3002\u7559\u767D\u5927\u4E00\u70B9\uFF0C\u8BA9\u4EBA\u771F\u7684\u8BFB\u4E00\u904D\u518D\u70B9\u786E\u8BA4\u3002 */
|
|
415
|
+
.mc-news-follow-draft { margin: 0 0 12px; padding: 12px 13px; border-radius: 12px; border: 1px solid rgba(59,130,246,.35); background: rgba(59,130,246,.06); font-size: 12px; display: flex; flex-direction: column; gap: 9px; }
|
|
416
|
+
.mc-news-follow-draft .draft-head { font-size: 11px; font-weight: 700; letter-spacing: .04em; opacity: .8; }
|
|
417
|
+
.mc-news-follow-draft .draft-q { opacity: .75; margin-left: 4px; }
|
|
418
|
+
.mc-news-follow-draft .draft-doms { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
|
|
419
|
+
.mc-news-follow-draft .draft-lbl { font-size: 10.5px; opacity: .6; }
|
|
420
|
+
.mc-news-follow-draft .draft-opt { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; font-size: 11.5px; white-space: nowrap; }
|
|
421
|
+
.mc-news-follow-draft .draft-opt input { width: 14px; height: 14px; margin: 0; accent-color: #3b82f6; }
|
|
422
|
+
.mc-news-follow-draft .draft-note { font-size: 10.5px; line-height: 1.7; opacity: .68; }
|
|
423
|
+
.mc-news-follow-draft .draft-actions { display: flex; gap: 8px; justify-content: flex-end; }
|
|
424
|
+
/* \u5173\u6CE8 chips\uFF1A\u70B9\u4E3B\u4F53 = \u53EA\u770B\u8FD9\u4E2A\u4E3B\u9898\uFF1B\u70B9 \u2715 = \u53D6\u6D88\u5173\u6CE8 */
|
|
425
|
+
.mc-news-follows { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin: 0 0 10px; }
|
|
426
|
+
.mc-news-follow-chip { display: inline-flex; align-items: center; border: 1px solid var(--dsw-alias-border-l2, #d1d5db); border-radius: 999px; overflow: hidden; font-size: 11.5px; background: var(--dsw-alias-bg-layer-1, #fff); }
|
|
427
|
+
.mc-news-follow-chip.on { border-color: #3b82f6; color: #3b82f6; background: rgba(59,130,246,.10); }
|
|
428
|
+
.mc-news-follow-chip .chip-main { border: 0; background: transparent; color: inherit; cursor: pointer; padding: 5px 9px; font-family: inherit; font-size: inherit; }
|
|
429
|
+
.mc-news-follow-chip .chip-main i { font-style: normal; opacity: .55; margin-left: 5px; }
|
|
430
|
+
.mc-news-follow-chip .chip-x { border: 0; border-left: 1px solid var(--dsw-alias-border-l1, #e5e7eb); background: transparent; color: inherit; cursor: pointer; padding: 5px 8px; font-size: 10px; opacity: .5; }
|
|
431
|
+
.mc-news-follow-chip .chip-x:hover { opacity: 1; color: #ef4444; }
|
|
432
|
+
.mc-news-tile-follow { font-size: 9.5px; padding: 1px 6px; border-radius: 999px; background: rgba(59,130,246,.12); color: #3b82f6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 120px; }
|
|
433
|
+
/* \u5173\u6CE8\u4E13\u533A\uFF1A\u5355\u72EC\u4E00\u680F\uFF0C\u4E0D\u548C\u65B0\u95FB\u62A2\u65B0\u9C9C\u5EA6\u6392\u5E8F */
|
|
434
|
+
.mc-news-follow-sec { margin: 0 0 14px; padding: 10px 11px 12px; border-radius: 13px; border: 1px solid rgba(59,130,246,.22); background: rgba(59,130,246,.045); }
|
|
435
|
+
.mc-news-follow-sec-head { display: flex; align-items: center; gap: 8px; margin: 0 2px 9px; font-size: 11px; font-weight: 700; letter-spacing: .03em; color: var(--dsw-alias-brand-primary, #3b82f6); }
|
|
436
|
+
.mc-news-follow-sec-head em { font-style: normal; font-size: 10px; padding: 1px 7px; border-radius: 999px; background: rgba(59,130,246,.14); }
|
|
437
|
+
/* \u6458\u8981\u9884\u89C8\uFF1A\u8BA9\u7528\u6237\u5728\u5F00\u542F\u63A8\u9001\u524D\u5148\u770B\u6E05\u300C\u4F1A\u63A8\u4EC0\u4E48\u300D */
|
|
438
|
+
.mc-digest-preview { margin: 0; padding: 10px 12px; border-radius: 9px; background: var(--dsw-alias-bg-base, #f3f4f6); color: inherit; font-size: 11.5px; line-height: 1.7; white-space: pre-wrap; word-break: break-word; max-height: 220px; overflow: auto; }
|
|
371
439
|
.mc-news-hero-clear { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--dsw-alias-border-l1, #e5e7eb); background: rgba(127,127,127,.08); color: var(--dsw-alias-label-secondary, #6b7280); font-size: 11px; line-height: 1; cursor: pointer; transition: all .2s ease; }
|
|
372
440
|
.mc-news-hero-clear:hover { color: var(--dsw-alias-label-primary, #111827); border-color: var(--dsw-alias-border-l2, #d1d5db); }
|
|
373
441
|
.mc-news-hero-hint { margin-top: 8px; font-size: 10.5px; line-height: 1.6; color: var(--dsw-alias-label-secondary, #6b7280); }
|
|
@@ -949,7 +1017,7 @@ Option A, because:
|
|
|
949
1017
|
.mc-audit-batchcard > .mc-btn { width: 100%; }
|
|
950
1018
|
.mc-audit-batchcard > div[style*="flex: 1"] { display: none; }
|
|
951
1019
|
}
|
|
952
|
-
`;var
|
|
1020
|
+
`;var za="0.23.0";function Xy({t:e}){let[t,n]=(0,m.useState)(""),a="dsh-memory tui",o="dsh-memory tui --write",i=async(p,u)=>{try{await navigator.clipboard.writeText(p),n(u),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
|
|
953
1021
|
\u2502 \u7C7B\u578B \u25CF \u5168\u90E8 7 \u25CB \u9879\u76EE 3 \u25CB \u77E5\u8BC6 1 \u25CB \u6559\u8BAD 1 \u2502
|
|
954
1022
|
\u2502 \u2502
|
|
955
1023
|
\u2502 \u25A3 \u5168\u9009 7 \u5DF2\u9009 3 s \u5168\u9009 \u2502
|
|
@@ -958,14 +1026,16 @@ Option A, because:
|
|
|
958
1026
|
\u2502 \u25C9 [\u6559\u8BAD] shj-web \u7AEF\u53E3\u83DC\u5355\u9519\u4F4D \u2502
|
|
959
1027
|
\u2502 \u2502
|
|
960
1028
|
\u2502 [a] \u6279\u51C6 3 [r] \u9A73\u56DE [s] \u53CD\u9009 [Esc] \u6E05\u7A7A \u2502
|
|
961
|
-
\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,
|
|
1029
|
+
\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 od=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 Uf(e){return(0,r.jsx)(od,{children:(0,r.jsx)(Jy,{...e})})}function Jy({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 z=localStorage.getItem("me-ui-scale");return["compact","normal","large"].includes(z)?z:"normal"}catch{return"normal"}}),[c,p]=(0,m.useState)([]),[u,h]=(0,m.useState)(!0),[g,k]=(0,m.useState)(null),[L,D]=(0,m.useState)(""),[F,v]=(0,m.useState)("all"),[f,y]=(0,m.useState)(""),[_,I]=(0,m.useState)("all"),[R,P]=(0,m.useState)("all"),[A,B]=(0,m.useState)(()=>{try{return new Set(JSON.parse(localStorage.getItem("me-pinned-v5")||"[]"))}catch{return new Set}}),[W,le]=(0,m.useState)(!1),ye=(0,m.useCallback)(z=>{B(X=>{let re=new Set(X);re.has(z)?re.delete(z):re.add(z);try{localStorage.setItem("me-pinned-v5",JSON.stringify([...re]))}catch{}return re})},[]),[se,Ge]=(0,m.useState)(""),[V,_e]=(0,m.useState)(()=>{try{let z=new URLSearchParams(typeof location<"u"?location.search:"").get("tab"),X={cards:"cards",graph:"graph",news:"news",usage:"stats",stats:"stats",audit:"audit",recycle:"optimize",optimize:"optimize",config:"config",terminal:"terminal"};if(z&&X[z])return X[z]}catch{}return"cards"}),[T,Le]=(0,m.useState)(()=>new Set([V])),ne=(0,m.useCallback)(z=>{Le(X=>X.has(z)?X:new Set(X).add(z)),_e(z)},[]),[te,$e]=(0,m.useState)("recent"),[Ie,ie]=(0,m.useState)(null),j=(0,m.useRef)(null),H=(0,m.useRef)(null),[M,J]=(0,m.useState)(!1),[de,Be]=(0,m.useState)(!1),[je,pe]=(0,m.useState)(0),[x,Q]=(0,m.useState)(null),[$,we]=(0,m.useState)(!1),[De,xe]=(0,m.useState)(!1),[ke,U]=(0,m.useState)(!1),[ue,Ne]=(0,m.useState)("group"),[be,ht]=(0,m.useState)(!1);(0,m.useEffect)(()=>{let z=X=>{let re=X&&X.detail;if(["compact","normal","large"].includes(re)){s(re);try{localStorage.setItem("me-ui-scale",re)}catch{}}};return window.addEventListener("me-ui-scale",z),()=>window.removeEventListener("me-ui-scale",z)},[]);let Jt=(0,m.useCallback)(()=>{ht(!1);try{localStorage.setItem("me-onboard-v2","1")}catch{}},[]),Ue=(0,m.useCallback)((z="group")=>{Ne(z),U(!0)},[]),Ot=(0,m.useRef)(!1),ft=(0,m.useCallback)(async()=>{if(Ot.current)return;Ot.current=!0;let z=(X,re=!0)=>{j.current&&clearTimeout(j.current),ie({ok:re,msg:X}),j.current=setTimeout(()=>ie(null),3e3)};z(e("webOpening"));try{let X=await fetch(`${ee}/open-web`,{method:"POST"}).then(ve=>ve.json()).catch(()=>null);if(X&&X.ok&&X.url){z(e("webOpened")+" \xB7 "+X.url);return}let re=await fetch(`${ee}/web-info`).then(ve=>ve.json()).catch(()=>null),Se=re&&re.ok&&re.url||"http://127.0.0.1:7999/",Ce=window.open(Se,"_blank","noopener,noreferrer");z(Ce?e("webOpened")+" \xB7 "+Se:e("webOpenFail")+" \xB7 "+Se,!!Ce)}catch{z(e("webOpenFail"),!1)}finally{Ot.current=!1}},[e]);(0,m.useEffect)(()=>{try{if(localStorage.getItem("me-onboard-v2")||V!=="cards")return;let z=setTimeout(()=>ht(!0),900);return()=>clearTimeout(z)}catch{}},[V]);let[He,Ze]=(0,m.useState)(!0),[cn,rt]=(0,m.useState)(0),[N,w]=(0,m.useState)(null),[ce,We]=(0,m.useState)(0),S=(0,m.useCallback)(()=>We(z=>z+1),[]),O=o?.quarantine?.pending??0,me=(o?.quarantine?.deleted??0)+(o?.quarantine?.rejected??0),Ve=(0,m.useRef)(null),[dn,d]=(0,m.useState)(0),[Zt,un]=(0,m.useState)(!1),pn=(0,m.useRef)(null),Dr=(0,m.useRef)(null),Dt=(0,m.useCallback)(async(z=F,X=f,re=R,Se={})=>{let Ce=Se.append===!0;try{Ce?un(!0):(h(!0),D(""));let ve=new URLSearchParams;z&&z!=="all"&&ve.set("kind",z),X.trim()&&ve.set("q",X.trim());let ut=Se.tag!==void 0?Se.tag:se;ut&&ve.set("tag",ut),ve.set("status",re||"all"),ve.set("limit",String(Yy)),ve.set("offset",String(Se.offset||0)),te==="title"&&ve.set("sort","title");let Nn=await(await fetch(`${ee}/cards?${ve.toString()}`)).json();if(Nn.ok){let _n=Nn.cards||[];p(Tn=>Ce?[...Tn,..._n.filter(bl=>!Tn.some(wl=>wl.path===bl.path))]:_n),d(Number(Nn.total)||_n.length)}}catch(ve){D(String(ve&&ve.message?ve.message:ve))}finally{Ce?un(!1):h(!1)}},[F,f,R,te,se]),yt=(0,m.useCallback)(async()=>{try{let[z,X,re,Se]=await Promise.all([fetch(`${ee}/overview`).then(ve=>ve.json()),fetch(`${ee}/capture-log`).then(ve=>ve.json()).catch(()=>null),fetch(`${ee}/config`).then(ve=>ve.json()).catch(()=>null),fetch(`${ee}/news?unread=1&limit=1`).then(ve=>ve.json()).catch(()=>null)]);z.ok&&i(z),Se&&Se.ok&&pe(Number((Se.counts||{}).unread)||0);let Ce=re&&re.ok&&re.config&&re.config.uiScale;if(["compact","normal","large"].includes(Ce)){s(Ce);try{localStorage.setItem("me-ui-scale",Ce)}catch{}}k(X&&X.ok&&X.available&&X.health||null)}catch(z){D(String(z&&z.message?z.message:z))}finally{h(!1)}},[]),b=async z=>{try{let re=await(await fetch(`${ee}/delete?path=${encodeURIComponent(z)}`)).json();re.ok?(ie({ok:!0,msg:e("deleted")}),await yt(),S()):ie({ok:!1,msg:re.error||e("deleteFail")})}catch{ie({ok:!1,msg:e("deleteFail")})}j.current&&clearTimeout(j.current),j.current=setTimeout(()=>ie(null),2e3)};(0,m.useEffect)(()=>(yt(),()=>{Ve.current&&clearTimeout(Ve.current)}),[yt]);let ae=z=>{y(z),Ve.current&&clearTimeout(Ve.current),Ve.current=setTimeout(()=>Dt(F,z,R),280)},fe=z=>{v(z),Dt(z,f,R)},ze=z=>{let X=String(z||"");Ge(X),Q(null),Dt(F,f,R,{tag:X})};(0,m.useEffect)(()=>{V==="cards"&&Dt(F,f,R)},[R,V,ce,te,se]),(0,m.useEffect)(()=>{if(V!=="cards"||u||Zt||c.length>=dn)return;let z=pn.current,X=Dr.current;if(!z)return;let re=new IntersectionObserver(Se=>{Se[0]&&Se[0].isIntersecting&&Dt(F,f,R,{append:!0,offset:c.length})},{root:X||null,rootMargin:"400px"});return re.observe(z),()=>re.disconnect()},[V,c,dn,u,Zt,F,f,R,Dt]);let Re=async(z,X)=>{try{let re=await fetch(`${ee}/card-kind`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:z,kind:X})}).then(Se=>Se.json());!re||!re.ok?ie({ok:!1,msg:re&&re.error||e("coreSetFail")}):(Q(Se=>Se&&Se.path===z?{...Se,kind:re.kind}:Se),await yt(),S(),ie({ok:!0,msg:e(X==="core"?"coreSetOk":"coreUnsetOk")}))}catch(re){ie({ok:!1,msg:String(re&&re.message||re)})}j.current&&clearTimeout(j.current),j.current=setTimeout(()=>ie(null),2e3)},Te=async z=>{try{let X=z.status;if(!X&&z.path)try{let ut=((await fetch(`${ee}/cards?status=all&q=${encodeURIComponent(z.title||"")}&limit=50`).then(mn=>mn.json())).cards||[]).find(mn=>mn.path===z.path);ut&&(X=ut.status)}catch{}let re=X&&X!=="approved"?`&status=${encodeURIComponent(X)}`:"",Se=await fetch(`${ee}/card?path=${encodeURIComponent(z.path||z.id)}${re}`),Ce=await Se.json();Ce.ok?Q({path:Ce.path,title:z.title,text:Ce.text,kind:z.kind||"knowledge",status:X||"approved"}):D(Ce.error||`HTTP ${Se.status}`)}catch(X){D(String(X&&X.message?X.message:X))}},Fe=async(z,X)=>{J(!0);try{let re=await fetch(`${ee}/export`);if(!re.ok)throw new Error("HTTP "+re.status);let Se=await re.json();if(!Se.ok)throw new Error(Se.error||"export failed");let Ce,ve,ut;if(z==="json"){ve="memory-vault.json",ut="application/json";let _n=Se.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:Se.format||"memory-eternal-vault",formatVersion:Se.formatVersion||1,exportedAt:Se.exportedAt||new Date().toISOString(),count:_n.length,cards:_n},null,2)}else ve="memory-vault.md",ut="text/markdown;charset=utf-8",Ce=Se.cards.map(_n=>_n.text.trim()).filter(Boolean).join(`
|
|
962
1030
|
|
|
963
1031
|
---
|
|
964
1032
|
|
|
965
|
-
`);let yn=new Blob([Se],{type:ht}),on=await Mv(yn,Ce,!1);if(!on.ok){B({ok:!1,msg:e("exportFail")}),J(!1);return}B({ok:!0,msg:e("exportedTo")+"\uFF1A"+e("defaultDownloads")+" \xB7 "+on.name})}catch(re){B({ok:!1,msg:e("exportFail")+" \xB7 "+(re.message||"")})}finally{J(!1)}z.current&&clearTimeout(z.current),z.current=setTimeout(()=>B(null),2600)},an=async M=>{let Y=M.target.files&&M.target.files[0];if(M.target.value="",!!Y){try{let re=await Y.text(),Se=await(await fetch(`${Z}/import`,{method:"POST",headers:{"Content-Type":"application/json"},body:re})).json();if(Se.ok){await bt();let Ce=Se.imported||0,ht=e("importedVault")+"\uFF1A"+Ce;Se.total&&(ht+=e("importedTotal")+Se.total+e("importedTotalTail")),Se.quarantined&&(ht+=e("importedQuarantine")+Se.quarantined+e("importedQuarantineTail")),Se.skipped&&(ht+=e("importedSkipped")+Se.skipped+e("importedSkippedTail")),Se.warning&&(ht+=" \xB7 "+Se.warning),B({ok:Ce>0||!Se.total,msg:ht})}else B({ok:!1,msg:Se.error||e("importFail")})}catch{B({ok:!1,msg:e("importFail")})}z.current&&clearTimeout(z.current),z.current=setTimeout(()=>B(null),2400)}},Qt=async()=>{if(!me){Ae(!0);try{let M=await fetch(`${Z}/skills/sync`,{method:"POST"}).then(Y=>Y.json()).catch(()=>null);if(M&&M.ok){let Y=e("skillsSyncDone")+" \xB7 "+e("skillsScanned")+" "+(M.total||0)+" \xB7 "+e("skillsCreated")+" "+(M.created||0)+" \xB7 "+e("skillsUpdated")+" "+(M.updated||0)+" \xB7 "+e("skillsPendingUpdates")+" "+(M.pendingUpdates||0);B({ok:!0,msg:Y}),await bt(),ce()}else B({ok:!1,msg:M&&M.error||e("skillsSyncFail")})}catch{B({ok:!1,msg:e("skillsSyncFail")})}finally{Ae(!1)}z.current&&clearTimeout(z.current),z.current=setTimeout(()=>B(null),3600)}},gt=(0,m.useMemo)(()=>{let M=c.slice();return A!=="all"&&(M=M.filter(Y=>Cr(Y.submittedBy)===A)),R!=="all"&&(M=M.filter(Y=>(Y.status||"approved")===R)),H&&(M=M.filter(Y=>F.has(Y.path))),ee==="title"?M.sort((Y,re)=>String(Y.title||"").localeCompare(String(re.title||""))):ee==="hot"?M.sort((Y,re)=>(re.weight||re.links||0)-(Y.weight||Y.links||0)):M.sort((Y,re)=>new Date(re.updated||0).getTime()-new Date(Y.updated||0).getTime()),M},[c,ee,A,R,H,F]),Kr=(0,m.useMemo)(()=>[...new Set(c.map(M=>Cr(M.submittedBy)))],[c]),Yr=(0,m.useMemo)(()=>{let M={};for(let Y of c){let re=new Set(Y.tags||[]),be=0;for(let Se of c)Se.path!==Y.path&&(Se.tags||[]).some(Ce=>re.has(Ce))&&be++;M[Y.path]=be}return M},[c]),[qt,Zn]=(0,m.useState)(null),Ge=(0,m.useMemo)(()=>{if(!gt.length)return null;let M=qt?gt.find(re=>re.path===qt):null;return M||gt.find(re=>Date.now()-new Date(re.updated||0).getTime()>21*864e5)||gt[0]},[gt,qt]),za=()=>{if(!gt.length)return;let M=gt.findIndex(Y=>Y.path===(Ge&&Ge.path));Zn(gt[(M+1+gt.length)%gt.length].path)},Er=!f&&_==="all"&&!ae&&R==="all"&&!!Ge;return(0,a.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,a.jsx)("style",{children:gn}),!t&&(0,a.jsxs)("div",{className:`mc-v5-top${r?" in-host":""}`,children:[(0,a.jsx)("img",{className:"mc-v5-logo",src:il,alt:""}),(0,a.jsxs)("span",{className:"mc-v5-crumb",children:[(0,a.jsx)("b",{children:e("memoryTitle")}),(0,a.jsx)("i",{children:"/"}),(0,a.jsx)("span",{children:e(w==="cards"?"cardsTab":w==="graph"?"graphTab":w==="news"?"newsTab":w==="stats"?"tabUsage":w==="audit"?"tabAudit":w==="optimize"?"tabRecycle":w==="terminal"?"terminalTab":"tabConfig")})]}),(0,a.jsx)("div",{className:"spacer"}),(0,a.jsxs)("div",{className:"mc-v5-top-actions",children:[(0,a.jsxs)("span",{className:"mc-v5-sys",children:[(0,a.jsx)("i",{}),e("v5Local")]}),(0,a.jsxs)("span",{className:"mc-v5-ver",children:["v",Ta]}),(0,a.jsxs)("button",{type:"button",className:"mc-v5-star",onClick:()=>td("https://github.com/EternalNight996/memory-eternal"),title:e("v5Star"),children:["\u2605 ",(0,a.jsx)("span",{className:"mc-v5-star-label",children:"Star"})]}),(0,a.jsx)("button",{type:"button",className:"mc-v5-help",onClick:()=>ft("group"),title:e("supportTitle"),"aria-label":e("supportTitle"),children:"?"})]})]}),De&&(0,a.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 "+(De.ok?"#22c55e":"#ef4444"),maxWidth:"90vw"},children:[(0,a.jsx)("span",{style:{color:De.ok?"#34d399":"#f87171",fontWeight:800,fontSize:15},children:De.ok?"\u2713":"\u2715"}),(0,a.jsx)("span",{children:De.msg})]}),t&&(0,a.jsxs)("div",{className:"me-modal-head",children:[(0,a.jsxs)("div",{className:"me-modal-title",children:[(0,a.jsx)("span",{className:"me-wicon",children:(0,a.jsx)("img",{src:il,alt:""})}),(0,a.jsx)("h2",{children:e("memoryTitle")}),(0,a.jsx)("span",{children:e("memoryHint")})]}),(0,a.jsx)("div",{className:"spacer"}),(0,a.jsx)("button",{type:"button",className:"me-modal-close me-modal-x",onClick:n,"aria-label":e("close"),title:e("close"),children:(0,a.jsx)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round","aria-hidden":"true",children:(0,a.jsx)("path",{d:"M6 6l12 12M18 6L6 18"})})})]}),g&&g.ok===!1&&(0,a.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,a.jsxs)("span",{style:{fontWeight:800},children:["\u26A0 ",e("captureAlert")]}),(0,a.jsxs)("span",{style:{flex:1},children:[g.reason,(0,a.jsx)("div",{style:{opacity:.68,fontSize:11.5,marginTop:2},children:e("captureAlertHint")})]}),(0,a.jsx)("span",{style:{opacity:.7},children:g.since?Qn(new Date(g.since).toISOString()):""})]}),(0,a.jsxs)("div",{className:"me-modal-body",children:[(0,a.jsxs)("div",{className:`mc-rail${je?" open":""}`,children:[(0,a.jsxs)("div",{className:"mc-v5-rail-top",children:[je&&(0,a.jsxs)("div",{className:"mc-v5-railbrand",children:[(0,a.jsx)("img",{className:"mark",src:il,alt:""}),(0,a.jsxs)("div",{children:[(0,a.jsx)("b",{children:e("memoryTitle")}),(0,a.jsx)("span",{children:"MEMORY ATLAS"})]})]}),(0,a.jsx)("button",{type:"button",className:"mc-rail-collapse",onClick:()=>Je(M=>!M),"aria-label":e(je?"collapse":"expand"),title:e(je?"collapse":"expand"),children:je?"\xAB":"\xBB"})]}),je&&(0,a.jsx)("div",{className:"mc-rail-sec",children:e("navWorkspace")}),(0,a.jsxs)("button",{type:"button",className:`mc-railbtn${w==="cards"?" active":""}`,onClick:()=>ue("cards"),title:e("cardsTab"),children:[(0,a.jsx)("span",{className:"mc-rail-ico",children:"\u{1F9E0}"}),je&&(0,a.jsx)("span",{className:"mc-rail-label",children:e("cardsTab")})]}),(0,a.jsxs)("button",{type:"button",className:`mc-railbtn${w==="graph"?" active":""}`,onClick:()=>ue("graph"),title:e("graphTab"),children:[(0,a.jsx)("span",{className:"mc-rail-ico",children:"\u{1F52E}"}),je&&(0,a.jsx)("span",{className:"mc-rail-label",children:e("graphTab")})]}),(0,a.jsxs)("button",{type:"button",className:`mc-railbtn${w==="news"?" active":""}`,onClick:()=>ue("news"),title:e("newsTab"),children:[(0,a.jsx)("span",{className:"mc-rail-ico",children:"\u{1F4F0}"}),je&&(0,a.jsx)("span",{className:"mc-rail-label",children:e("newsTab")}),le>0&&(0,a.jsx)("span",{className:"mc-dot",children:le>99?"99+":le})]}),(0,a.jsxs)("button",{type:"button",className:`mc-railbtn${w==="stats"?" active":""}`,onClick:()=>ue("stats"),title:e("tabUsage"),children:[(0,a.jsx)("span",{className:"mc-rail-ico",children:"\u{1F4C8}"}),je&&(0,a.jsx)("span",{className:"mc-rail-label",children:e("tabUsage")})]}),(0,a.jsxs)("button",{type:"button",className:`mc-railbtn${w==="audit"?" active":""}`,onClick:()=>ue("audit"),title:e("tabAudit"),children:[(0,a.jsx)("span",{className:"mc-rail-ico",children:"\u{1F50D}"}),je&&(0,a.jsx)("span",{className:"mc-rail-label",children:e("tabAudit")}),Ne>0&&(0,a.jsx)("span",{className:"mc-dot",children:Ne>99?"99+":Ne})]}),je&&(0,a.jsx)("div",{className:"mc-rail-sec",children:e("navSystem")}),(0,a.jsxs)("button",{type:"button",className:`mc-railbtn${w==="optimize"?" active":""}`,onClick:()=>ue("optimize"),title:e("tabRecycle"),children:[(0,a.jsx)("span",{className:"mc-rail-ico",children:"\u267B\uFE0F"}),je&&(0,a.jsx)("span",{className:"mc-rail-label",children:e("tabRecycle")}),He>0&&(0,a.jsx)("span",{className:"mc-dot",style:{background:"#6b7280"},children:He>99?"99+":He})]}),(0,a.jsxs)("button",{type:"button",className:`mc-railbtn${w==="terminal"?" active":""}`,onClick:()=>ue("terminal"),title:e("terminalTab"),children:[(0,a.jsx)("span",{className:"mc-rail-ico",children:"\u25B8_"}),je&&(0,a.jsx)("span",{className:"mc-rail-label",children:e("terminalTab")})]}),(0,a.jsxs)("button",{type:"button",className:"mc-railbtn",onClick:Xn,title:e("webTab"),"aria-label":e("webTab"),children:[(0,a.jsx)("span",{className:"mc-rail-ico",children:"\u{1F310}"}),je&&(0,a.jsx)("span",{className:"mc-rail-label",children:e("webTab")})]}),(0,a.jsxs)("button",{type:"button",className:`mc-railbtn${w==="config"?" active":""}`,onClick:()=>ue("config"),title:e("tabConfig"),children:[(0,a.jsx)("span",{className:"mc-rail-ico",children:"\u2699\uFE0F"}),je&&(0,a.jsx)("span",{className:"mc-rail-label",children:e("tabConfig")})]}),je&&(0,a.jsx)("div",{className:"mc-rail-sec",children:e("navSupport")}),(0,a.jsxs)("button",{type:"button",className:"mc-railbtn",onClick:()=>ft("group"),title:e("supportGroup"),children:[(0,a.jsx)("span",{className:"mc-rail-ico",children:"\u{1F4AC}"}),je&&(0,a.jsx)("span",{className:"mc-rail-label",children:e("supportGroup")})]}),(0,a.jsxs)("button",{type:"button",className:"mc-railbtn",onClick:()=>ft("sponsor"),title:e("supportSponsor"),children:[(0,a.jsx)("span",{className:"mc-rail-ico",children:"\u2615"}),je&&(0,a.jsx)("span",{className:"mc-rail-label",children:e("supportSponsor")})]}),(0,a.jsxs)("button",{type:"button",className:"mc-railbtn",onClick:()=>ft("legacy"),title:e("supportLegacy"),children:[(0,a.jsx)("span",{className:"mc-rail-ico",children:"\u{1F9E9}"}),je&&(0,a.jsx)("span",{className:"mc-rail-label",children:e("supportLegacy")})]}),(0,a.jsxs)("button",{type:"button",className:"mc-railbtn",onClick:()=>U(!0),title:e("fbNav"),children:[(0,a.jsx)("span",{className:"mc-rail-ico",children:"\u{1F41E}"}),je&&(0,a.jsx)("span",{className:"mc-rail-label",children:e("fbNav")})]})]}),(0,a.jsxs)("div",{className:"mc-main",ref:Tr,children:[o&&o.db&&o.db.writable===!1?(0,a.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,a.jsx)("div",{style:{opacity:.85,marginTop:2},children:e("dbReadonlyFix")})]}):null,w==="cards"&&(0,a.jsxs)("div",{className:"mc-v5-pagehead",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"mc-v5-eyebrow",children:"MEMORY LIBRARY"}),(0,a.jsx)("h1",{children:e("memoryTitle")}),(0,a.jsx)("p",{children:e("memoryHint")}),(0,a.jsxs)("div",{className:"mc-v5-pagehead-stats",children:[(0,a.jsxs)("span",{children:[(0,a.jsx)("b",{children:o?.total??"\u2014"})," ",e("cardsUnit")]}),(0,a.jsxs)("span",{children:[e("recent")," +",o?.recent??0]}),(0,a.jsxs)("span",{children:[e("pending")," ",o?.quarantine?.pending??o?.status?.pending??0]}),(0,a.jsxs)("span",{children:[e("rejected")," ",o?.quarantine?.rejected??o?.status?.rejected??0]})]})]}),(0,a.jsxs)("span",{className:"mc-v5-pagecount",children:[c.length," / ",Ve]})]}),w==="cards"&&(0,a.jsxs)("div",{className:"mc-toolbar",children:[(0,a.jsx)("input",{type:"text",placeholder:e("searchPlaceholder"),value:f,onChange:M=>ne(M.target.value)}),ae&&(0,a.jsxs)("button",{type:"button",className:"mc-chip active",title:e("clearFilter"),onClick:()=>Le(""),children:["\u{1F3F7} ",ae," ",(0,a.jsx)("span",{style:{opacity:.7},children:"\u2715"})]}),(0,a.jsx)("input",{ref:O,type:"file",accept:".json,application/json",style:{display:"none"},onChange:an}),(0,a.jsx)("button",{type:"button",className:"mc-btn",onClick:()=>O.current&&O.current.click(),children:e("importVault")}),(0,a.jsxs)("button",{type:"button",className:"mc-btn me-on",onClick:()=>$e({kind:"knowledge",title:"",body:"",tags:"",template:""}),children:["+ ",e("newCard")]}),(0,a.jsx)("button",{type:"button",className:"mc-btn",disabled:me,onClick:Qt,title:e("skillCardsHint"),children:me?"\u23F3 "+e("syncingSkills"):"\u{1F9E9} "+e("syncSkills")}),(0,a.jsx)("button",{type:"button",className:"mc-btn",disabled:T,onClick:()=>_e("md"),children:e(T?"exporting":"exportVault")}),(0,a.jsx)("button",{type:"button",className:"mc-btn",disabled:T,onClick:()=>_e("json"),children:e(T?"exporting":"exportJson")}),(0,a.jsx)("button",{type:"button",className:"mc-btn",onClick:()=>bt(),children:e("refresh")})]}),w==="cards"&&(0,a.jsxs)("div",{className:"mc-chips",children:[fl.map(M=>(0,a.jsxs)("button",{type:"button",className:`mc-chip${_===M?" active":""}`,onClick:()=>de(M),children:[e(M==="all"?"all":Et[M]),(0,a.jsx)("span",{className:"mc-chip-n",children:M==="all"?o?.total??0:o?.byKind?.[M]??0})]},M)),(0,a.jsxs)("button",{type:"button",className:`mc-chip${H?" active":""}`,onClick:()=>te(M=>!M),children:["\u{1F4CC} ",e("pinnedOnly"),(0,a.jsx)("span",{className:"mc-chip-n",children:F.size})]}),(0,a.jsxs)("select",{value:A,onChange:M=>D(M.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,a.jsxs)("option",{value:"all",children:["\u{1F916} ",e("allAgents")]}),Of(Kr).map(M=>(0,a.jsx)("option",{value:M,children:M},M))]}),(0,a.jsxs)("select",{value:R,onChange:M=>I(M.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,a.jsx)("option",{value:"all",children:e("allStatus")}),(0,a.jsx)("option",{value:"approved",children:e("statusApproved")}),(0,a.jsx)("option",{value:"pending",children:e("statusPending")}),(0,a.jsx)("option",{value:"rejected",children:e("statusRejected")})]}),(0,a.jsx)("span",{className:"spacer",style:{flex:1}}),[{key:"recent",label:e("sortRecent")},{key:"title",label:e("sortTitle")},{key:"hot",label:e("sortHot")}].map(M=>(0,a.jsx)("button",{type:"button",className:`mc-chip${ee===M.key?" active":""}`,onClick:()=>Ie(M.key),children:M.label},M.key))]}),L&&(0,a.jsxs)("div",{className:"mc-empty",children:[e("error"),"\uFF1A",L]}),(0,a.jsx)("div",{style:{display:w==="cards"?"contents":"none"},children:u?(0,a.jsx)($f,{text:e("loading")}):L?(0,a.jsxs)("div",{className:"mc-empty",children:[e("error"),"\uFF1A",L," ",(0,a.jsx)("button",{type:"button",className:"mc-btn",onClick:()=>bt(),children:e("retry")})]}):c.length===0?(0,a.jsx)("div",{className:"mc-empty",children:e("empty")}):(0,a.jsxs)(a.Fragment,{children:[Er&&(0,a.jsxs)("div",{className:"mc-v5-feature",onClick:()=>he(Ge),children:[(0,a.jsxs)("div",{className:"mc-v5-feature-copy",children:[(0,a.jsx)("div",{className:"mc-v5-eyebrow",children:e("todayReview")}),(0,a.jsx)("h3",{children:Ge.title}),(0,a.jsx)("p",{children:ud(Ge)}),(0,a.jsxs)("div",{className:"mc-v5-feature-meta",children:[(0,a.jsxs)("span",{children:[Nr[Ge.kind]||"\u{1F4CE}"," ",e(Et[Ge.kind]||"kindKnowledge")]}),(0,a.jsxs)("span",{children:["\u{1F552} ",Qn(Ge.updated)]}),(Ge.tags||[]).slice(0,3).map(M=>(0,a.jsxs)("span",{children:["#",M]},M))]})]}),(0,a.jsxs)("div",{className:"mc-v5-feature-side",children:[(0,a.jsx)(Uf,{n:Yr[Ge.path]||0,color:Bt[Ge.kind]||Bt.other,size:58}),(0,a.jsx)("b",{children:Yr[Ge.path]||0}),(0,a.jsx)("span",{children:e("links")}),(0,a.jsx)("button",{type:"button",className:"mc-v5-feature-shuffle",onClick:M=>{M.stopPropagation(),za()},children:e("reshuffle")}),(0,a.jsx)("span",{className:"mc-v5-feature-open",children:e("openArrow")})]})]}),(0,a.jsx)("div",{className:"mc-grid",children:gt.filter(M=>!Er||M.path!==Ge.path).map(M=>(0,a.jsx)(fv,{card:M,t:e,query:f.trim(),onOpen:he,onDelete:b,onTagClick:Le,pinned:F.has(M.path),onPin:ye,onCore:Ee,links:Yr[M.path]||0},M.path))}),c.length<Ve&&(0,a.jsx)("div",{ref:An,style:{height:1}}),Jn&&(0,a.jsxs)("div",{className:"mc-empty",style:{padding:"10px 0"},children:[e("loading"),"\uFF08",c.length," / ",Ve,"\uFF09"]})]})}),(0,a.jsx)("div",{style:{display:w==="graph"?"flex":"none",flex:1,minHeight:0},children:oe.has("graph")&&(0,a.jsx)(wv,{t:e,onOpen:he,all:q,onAllChange:ge,onMutate:ce,active:w==="graph",visible:w==="graph"})}),(0,a.jsx)("div",{style:{display:w==="news"?"contents":"none"},children:oe.has("news")&&(0,a.jsx)(dv,{t:e,version:N,onUnreadChange:ve})}),(0,a.jsx)("div",{style:{display:w==="terminal"?"contents":"none"},children:oe.has("terminal")&&(0,a.jsx)(Qy,{t:e})}),(0,a.jsx)("div",{style:{display:w==="config"?"contents":"none"},children:oe.has("config")&&(0,a.jsx)(Jy,{t:e,onReload:()=>bt(),version:N})}),(0,a.jsx)("div",{style:{display:w==="stats"?"contents":"none"},children:oe.has("stats")&&(0,a.jsx)(gv,{t:e,tab:"stats",onReload:()=>bt(),version:N})}),(0,a.jsx)("div",{style:{display:w==="audit"?"contents":"none"},children:oe.has("audit")&&(0,a.jsx)(Zy,{t:e,onReload:()=>bt(),version:N})}),(0,a.jsx)("div",{style:{display:w==="optimize"?"contents":"none"},children:oe.has("optimize")&&(0,a.jsx)(pv,{t:e,onReload:()=>bt(),version:N})}),j&&(0,a.jsx)(yv,{t:e,onClose:()=>U(!1)}),se&&(0,a.jsx)(vv,{t:e,tab:at,onTab:et,onClose:()=>xe(!1),onFeedback:()=>{xe(!1),U(!0)},onReplay:()=>{xe(!1),Oe(!0)}}),pt&&(0,a.jsx)(bv,{t:e,onDone:At}),k&&(0,a.jsx)(xv,{t:e,card:k,query:f.trim(),onNavigate:M=>{let Y=gt.findIndex(be=>be.path===k.path),re=gt[Y+M];re&&he(re)},onTagClick:Le,onClose:()=>Q(null),onDelete:M=>{Q(null),b(M)},onFeedback:M=>{let Y=k.path;fetch(`${Z}/feedback`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({query:f.trim(),path:Y,useful:M})}).then(()=>B({ok:!0,msg:e(M?"fbUseful":"fbIrr")})).catch(()=>{}),z.current&&clearTimeout(z.current),z.current=setTimeout(()=>B(null),2e3)},allCards:gt,onOpenRelated:M=>he(M),onKindChange:Ee}),(0,a.jsx)(hv,{t:e,newCard:Mr,setNewCard:$e,onCreated:()=>{bt(),ce(),B({ok:!0,msg:e("created")}),z.current&&clearTimeout(z.current),z.current=setTimeout(()=>B(null),2e3)}})]})]})]})}var gl=({toast:e})=>e?(0,a.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 sd=(0,m.createContext)({form:null,set:()=>{}}),Xy=new Set(["autoRestartOnDrift","coreMemoryEnabled","skillCardsAutoSync"]);function ut({k:e,label:t,hint:n,type:r="text",step:o,min:i,max:l}){let{form:s,set:c}=(0,m.useContext)(sd);return(0,a.jsxs)("label",{className:"mc-field",children:[(0,a.jsx)("span",{className:"mc-field-label",children:t||e}),(0,a.jsx)("input",{type:r,step:o,min:i,max:l,value:s?s[e]??"":"",onChange:p=>{let u=p.target.value;c(e,r==="number"?u===""?"":Number(u):u)}}),n?(0,a.jsx)("span",{className:"mc-field-hint",children:n}):null]})}function Yt({k:e,label:t}){let{form:n,set:r}=(0,m.useContext)(sd),o=n?n[e]:void 0,i=o===void 0?Xy.has(e):!!o;return(0,a.jsxs)("label",{className:"mc-switch",children:[(0,a.jsx)("input",{type:"checkbox",checked:i,onChange:l=>r(e,l.target.checked)}),(0,a.jsx)("span",{children:t||e})]})}function Kn({icon:e,title:t,sub:n,children:r}){return(0,a.jsxs)("div",{className:"mc-card mc-cfg-sec",children:[(0,a.jsxs)("div",{className:"mc-cfg-sec-head",children:[(0,a.jsx)("div",{className:"mc-cfg-sec-ico",children:e}),(0,a.jsxs)("div",{style:{minWidth:0},children:[(0,a.jsx)("div",{className:"mc-cfg-sec-title",children:t}),n?(0,a.jsx)("div",{className:"mc-cfg-sec-sub",children:n}):null]})]}),(0,a.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:13},children:r})]})}function Jy({t:e,onReload:t,version:n,compact:r}){let[o,i]=(0,m.useState)(null),[l,s]=(0,m.useState)(0),[c,p]=(0,m.useState)(null),[u,h]=(0,m.useState)(null),[g,S]=(0,m.useState)(!1),[L,P]=(0,m.useState)(!1),_=(0,m.useRef)(!1),v=(0,m.useRef)(null),f=(0,m.useRef)({}),[y,A]=(0,m.useState)(null),[D,R]=(0,m.useState)(null),[I,F]=(0,m.useState)(""),[W,H]=(0,m.useState)(""),[te,ye]=(0,m.useState)(""),[ae,Fe]=(0,m.useState)(null),[w,ke]=(0,m.useState)(null),oe=(0,m.useCallback)(async(b,ne=!1)=>{ne||H("version");try{let de=await fetch(Z+"/version-check"+(b?"?force=1":"")).then(Le=>Le.json());de&&de.ok?(ke(de),b&&le(de.updateAvailable?e("vcLatest")+" v"+de.latest:e("vcUpToDate"))):b&&le(e("vcCheckFail"),!1)}catch{b&&le(e("vcCheckFail"),!1)}finally{ne||H("")}},[e]);(0,m.useEffect)(()=>{oe(!1);let b=setInterval(()=>{oe(!1,!0)},6e4),ne=()=>{typeof document<"u"&&!document.hidden&&oe(!1,!0)};return document.addEventListener("visibilitychange",ne),()=>{clearInterval(b),document.removeEventListener("visibilitychange",ne)}},[n,oe]);let[Me,ue]=(0,m.useState)(""),[ee,Ie]=(0,m.useState)(null),[De,B]=(0,m.useState)(""),[z,O]=(0,m.useState)(!1),T=(0,m.useRef)(null),J=(0,m.useRef)(0),me=b=>{J.current=b.currentTarget.scrollTop};(0,m.useLayoutEffect)(()=>{let b=T.current;b&&Math.abs(b.scrollTop-J.current)>1&&(b.scrollTop=J.current)});let Ae=(0,m.useRef)(null),le=(b,ne=!0)=>{Ae.current&&clearTimeout(Ae.current),Ie({msg:b,ok:ne}),Ae.current=setTimeout(()=>Ie(null),1900)},ve=async()=>{if(!W){H("restart");try{let b=await fetch(Z+"/restart-self",{method:"POST"});if(b.status===404||b.status===405){le(Oe("vcRestartNoRoute",{cmd:w&&w.restartCommand||"dsh-memory restart --port 7999"}),!1);return}let ne=await b.json().catch(()=>null);if(!ne){le(e("vcRestartFail")+"\uFF08HTTP "+b.status+"\uFF09",!1);return}if(!ne.ok){le(ne.error||e("vcRestartFail"),!1);return}if(ne.alreadyCurrent){le(ne.note||e("vcRestartCurrent"));return}le(ne.note||e("vcRestartSent")),ne.alreadyRunning||setTimeout(()=>{oe(!0)},6e3)}catch(b){le(e("vcRestartFail")+"\uFF1A"+String(b&&b.message||b),!1)}finally{H("")}}},k=w&&w.resident?String(w.resident.served||""):"",Q=!!(w&&w.onDisk&&k&&k!==w.onDisk),q=!!(w&&w.resident&&w.resident.managed===!1&&w.resident.managedKnown===!1),ge=w&&w.resident&&w.resident.replaceBlocked&&w.resident.replaceBlocked.fresh||null,j=!!(w&&w.resident&&w.resident.managedBy==="host"),U=!!(w&&w.resident&&w.resident.managed===!1&&!q&&!j),se=!!(w&&w.resident&&!k),xe=Q||se||U||q,at=af({hasVersion:!!w,hostVersion:w?w.loaded:"",onDisk:w?w.onDisk:"",residentServed:w&&w.resident?w.resident.served:"",residentPresent:!!(w&&w.resident),residentManaged:w&&w.resident?w.resident.managed:null,residentManagedKnown:w&&w.resident?w.resident.managedKnown:null,residentManagedBy:w&&w.resident?w.resident.managedBy:"",replaceBlocked:w&&w.resident?w.resident.replaceBlocked:null}),et={hostProcessStale:()=>Oe("vcHostProcessStale",{disk:w.onDisk,loaded:w.loaded}),residentDown:()=>Oe("vcResidentDown",{port:w.resident&&w.resident.port||"",cmd:w.restartCommand||"dsh-memory restart --port 7999"}),residentReplaceBlocked:()=>Oe("vcResidentReplaceBlocked",{served:k,err:ge&&ge.error||"",path:ge&&ge.lockPath||"",cmd:w.restartCommand||"dsh-memory restart --port "+(w.resident&&w.resident.port||7999)}),residentLockUnknown:()=>Oe("vcResidentLockUnknown",{served:k,path:w.resident&&w.resident.lock&&w.resident.lock.path||"",err:w.resident&&w.resident.lock&&w.resident.lock.error||""}),residentUnmanaged:()=>Oe("vcResidentUnmanaged",{served:k,cmd:w.restartCommand||"dsh-memory restart --port 7999"})},pt={restartStart:()=>Oe("vcRestartStart",{disk:w&&w.onDisk||""}),restartRepair:()=>Oe("vcRestartRepair",{disk:w&&w.onDisk||""}),restartFixes:()=>Oe("vcRestartFixes",{served:k||"",disk:w&&w.onDisk||""}),restartHostOnly:()=>Oe("vcRestartHostOnly",{loaded:w&&w.loaded||"",disk:w&&w.onDisk||""}),restartAnyway:()=>Oe("vcRestartAnyway",{ver:w&&w.onDisk||""})},Oe=(b,ne)=>Object.keys(ne).reduce((de,Le)=>de.split("{"+Le+"}").join(ne[Le]),e(b)),At=(0,m.useCallback)(async()=>{try{let[b,ne,de,Le]=await Promise.all([fetch(`${Z}/config`).then(Ee=>Ee.json()).catch(()=>null),fetch(`${Z}/setup-status`).then(Ee=>Ee.json()).catch(()=>null),fetch(`${Z}/budget`).then(Ee=>Ee.json()).catch(()=>null),fetch(`${Z}/llm-routes`).then(Ee=>Ee.json()).catch(()=>null)]);if(Le&&Le.ok&&Fe(Le),b&&b.ok){i(b),s(b.revision??0),p(b.schema??null);let Ee=Mf(b.config??{},f.current);f.current=Ee.overlay,h({...Ee.values}),O(!1),A(b.dsh??null),S(b.writable===!1),P(b.viaPending===!0),F(""),_.current=!1}else de&&de.ok?(h({...de}),O(!1),S(!0),F(e("configNeedsDsh"))):F(e("adminLoadFail"));ne&&ne.ok&&R(ne),ye("")}catch{F(e("adminLoadFail"))}},[e]);(0,m.useEffect)(()=>{At()},[n,At]);let ft=(b,ne)=>{_.current=!0,O(!0),B(""),h(de=>({...de??{},[b]:ne}))};(0,m.useEffect)(()=>{v.current=At},[At]),(0,m.useEffect)(()=>{if(typeof EventSource>"u")return;let b=null;try{b=new EventSource(Z+"/events")}catch{return}let ne=()=>{!_.current&&typeof v.current=="function"&&v.current()};try{b.addEventListener("config",ne)}catch{}return()=>{try{b.close()}catch{}}},[]);let qn=new Set(["dedupThreshold","captureMinChars","captureCooldownMs","maxCardsPerDay","captureMaxTokens","recallMinScore","recallLimit","recallSummaryLen","recycleRetentionDays","webPort","webCheckIntervalMs","webMaxRestart","sessionBudgetChars","coreMemoryLimit","coreMemoryMaxChars"]),Xn=b=>({init:e("modeInit"),interval:e("modeInterval"),manual:e("modeManual")})[b]||b,je=async()=>{if(!u)return;if(g){le(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[de,[Le,Ee]]of Object.entries(b)){if(!(de in u))continue;let he=u[de],_e=typeof he=="number"?he:Number(he);(he===""||he===null||he===void 0||!Number.isFinite(_e)||_e<Le||_e>Ee)&&ne.push(e("invalidField",{field:de,min:Le,max:Ee,value:String(he===""?"\u7A7A":he)}))}if(ne.length){let de=e("saveInvalid")+"\uFF1A"+ne.join("\uFF1B");F(de),le(de,!1);return}H("save");try{let de={...u};for(let _e of Object.keys(u))_e in de&&typeof de[_e]=="string"&&de[_e].trim()!==""&&qn.has(_e)&&(de[_e]=Number(de[_e]));Array.isArray(de.vaultProfiles)&&(de.vaultProfiles=de.vaultProfiles.filter(_e=>_e&&(String(_e.name||"").trim()||String(_e.path||"").trim())));let Le=await fetch(`${Z}/config`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({patch:de,expectedRevision:l})}),Ee=await Le.text(),he=null;try{he=Ee?JSON.parse(Ee):null}catch{he=null}if(he||(he={error:"HTTP "+Le.status+(Ee?"\uFF1A"+Ee.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")}),he&&he.ok){let _e=typeof he.pendingOutcome=="string"?he.pendingOutcome:"",an,Qt=!0;if(_e==="applied")an=e("savedApplied")+(Array.isArray(he.applied)&&he.applied.length?" \xB7 "+he.applied.join("\u3001"):"");else if(_e==="queued")Qt=!1,an=e("saveQueued");else if(_e==="failed")Qt=!1,an=e("saveFail")+" \xB7 "+(he.hostGuard?e("saveHostGuard"):e("saveFailHint"));else if(_e==="applied-direct")an=e("savedOk")+" \xB7 "+e("savedDirect");else{let gt=Array.isArray(he.pending)&&he.pending.length?" \xB7 "+e("savePending"):he.note?" \xB7 "+e("restartHint"):"";an=(he.retried?"\u267B ":"")+e("savedOk")+gt}f.current={...f.current,...de},Qt?(B(""),O(!1),ye(an)):F(an),le(an,Qt),await At()}else{let _e=Le.status===409?e("conflictRefresh"):he?.error||e("saveFail");F(_e),le(_e,!1)}}catch{F(e("saveFail")),le(e("saveFail"),!1)}finally{H("")}},Je=()=>{f.current={},h({...o?.config??{}}),B(""),O(!1),ye("")},Mr={env:"vaultSrcEnv",profile:"vaultSrcProfile",workspace:"vaultSrcWorkspace",vaultDir:"vaultSrcVaultDir",default:"vaultSrcDefault"},$e=b=>Array.isArray(b?.vaultProfiles)?b.vaultProfiles:[],N=(b,ne,de)=>{_.current=!0,O(!0),h(Le=>{let Ee=$e(Le).map(_e=>({..._e||{}})),he={...Ee[b]||{}};return ne==="match"?String(de).trim()?he.match={...he.match||{},workspace:de}:delete he.match:he[ne]=de,Ee[b]=he,{...Le??{},vaultProfiles:Ee}})},x=()=>{_.current=!0,O(!0),h(b=>({...b??{},vaultProfiles:[...$e(b),{name:"",path:""}]}))},ce=b=>{_.current=!0,O(!0),h(ne=>({...ne??{},vaultProfiles:$e(ne).filter((de,Le)=>Le!==b)}))},Ne={fontSize:11,padding:"2px 8px",background:"var(--dsw-alias-bg-layer-2, #f3f4f6)",borderRadius:6},He={padding:"6px 8px",borderRadius:8,border:"1px solid var(--dsw-alias-border-l2, #d1d5db)",background:"transparent",color:"inherit",font:"inherit",fontSize:12,minWidth:0},ot={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}},Ve=b=>{let ne=ot[b];ne&&(h(de=>({...de??{},...ne})),_.current=!0,O(!0),B(b),le(Oe("planApplied",{plan:ne.label})))},In=async()=>{try{let b=await fetch(Z+"/setup-status").then(ne=>ne.json());b&&b.ok&&R(b)}catch{}},Jn=async(b,ne)=>{H(b+ne);try{let Le=await(await fetch(`${Z}/mcp/action`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({agent:b,action:ne})})).json();Le&&Le.ok?le(Oe(ne==="install"?"mcpInstalled":"mcpUninstalled",{agent:b})):le(Oe("mcpActionFail",{agent:b,error:Le?.error||""}),!1);try{let Ee=await fetch(`${Z}/setup-status`).then(he=>he.json());Ee&&Ee.ok&&R(Ee)}catch{}}catch{le(e("mergeFail"),!1)}finally{H("")}},d=D&&Array.isArray(D.agents)?D.agents:[],An=d.filter(b=>b.installed),Tr=[...new Set(An.flatMap(b=>Array.isArray(b.servers)?b.servers:[]))],hn=d.filter(b=>b.mcpConfigured&&!b.isDsh).length,bt=d.some(b=>Array.isArray(b.servers));return(0,a.jsx)(sd.Provider,{value:{form:u,set:ft},children:(0,a.jsxs)("div",{className:"mc-admin",style:{display:"flex",flexDirection:"column",overflow:"hidden",flex:r?"0 0 auto":1,minHeight:0,maxHeight:r?"52vh":void 0},children:[(0,a.jsx)("style",{children:gn}),ee&&(0,a.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 "+(ee.ok?"#22c55e":"#ef4444"),maxWidth:"90vw"},children:[(0,a.jsx)("span",{style:{color:ee.ok?"#34d399":"#f87171",fontWeight:800,fontSize:15},children:ee.ok?"\u2713":"\u2715"}),(0,a.jsx)("span",{style:{wordBreak:"break-all"},children:ee.msg})]}),(0,a.jsxs)("div",{ref:T,onScroll:me,style:{flex:1,minHeight:0,overflow:"auto",overscrollBehavior:"contain",scrollbarGutter:"stable",padding:4},children:[!r&&(0,a.jsxs)("div",{className:"mc-v5-pagehead",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"mc-v5-eyebrow",children:"MEMORY CONFIG"}),(0,a.jsx)("h1",{children:e("tabConfig")}),(0,a.jsx)("p",{children:e("configPageSub")})]}),(0,a.jsxs)("span",{className:"mc-v5-audit-trust",children:["\u{1F6E1} ",e("v5Local")]})]}),I&&(0,a.jsxs)("div",{className:"mc-card",style:{borderLeft:"4px solid #ef4444",background:"rgba(239,68,68,0.08)",padding:"12px 14px",marginBottom:10},children:[(0,a.jsxs)("div",{style:{fontSize:13,color:"#b91c1c",fontWeight:600,marginBottom:6},children:["\u26A0 ",I]}),(0,a.jsxs)("button",{type:"button",className:"mc-btn",onClick:At,children:["\u21BB ",e("retry")]})]}),L&&(0,a.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,a.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")]}),te&&(0,a.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 ",te]}),o&&(o.version||o.dsh?.vaultDir)&&(0,a.jsxs)("div",{className:"mc-card",style:{marginBottom:10,padding:"10px 14px"},children:[(0,a.jsxs)("div",{style:{display:"flex",gap:10,alignItems:"center",flexWrap:"wrap"},children:[(0,a.jsxs)("b",{style:{fontSize:12},children:["\u{1F4E6} ",e("pluginInfo")]}),(0,a.jsx)("span",{style:{fontSize:12,opacity:.7},children:e("dshHostLabel")}),o.version&&(0,a.jsxs)("code",{style:Ne,children:[e("vcLoaded")," v",o.version]}),w&&w.resident&&w.resident.served&&w.resident.served!==o.version&&(0,a.jsxs)("code",{style:Ne,children:[e("vcResident")," v",w.resident.served]}),w&&w.resident&&!w.resident.served&&(0,a.jsxs)("code",{style:{...Ne,color:"#b45309",fontWeight:600},children:[e("vcResident")," ",e("vcResidentDownShort")]}),w&&w.resident&&w.resident.served&&w.resident.managed===!1&&(0,a.jsxs)("code",{style:{...Ne,color:"#b45309",fontWeight:600},children:[e("vcResident")," v",w.resident.served," \xB7 ",e(ge?"vcResidentReplaceBlockedShort":j?"vcResidentHostManagedShort":q?"vcResidentLockUnknownShort":"vcResidentUnmanagedShort")]}),Ta&&(0,a.jsxs)("code",{style:Ne,children:[e("vcPage")," v",Ta]}),w&&w.onDisk&&(0,a.jsxs)("code",{style:Ne,children:[e("vcOnDisk")," v",w.onDisk]}),w&&w.latest&&(0,a.jsxs)("code",{style:Ne,children:[e("vcLatest")," v",w.latest]}),o.dsh?.vaultDir&&(0,a.jsxs)("span",{style:{fontSize:11,opacity:.6},children:["\u{1F4C1} ",o.dsh.vaultDir]}),(0,a.jsx)("div",{style:{flex:1}}),(0,a.jsx)("button",{type:"button",className:"mc-btn",disabled:W==="version",onClick:()=>oe(!0),children:W==="version"?e("checking"):"\u{1F504} "+e("vcCheck")})]}),w&&at.warn&&(0,a.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,a.jsxs)("div",{children:["\u26A0\uFE0F ",et[at.warn]?et[at.warn]():""]})}),at.showButton&&(0,a.jsxs)("div",{style:{display:"flex",gap:8,alignItems:"center",marginTop:6,flexWrap:"wrap"},children:[(0,a.jsx)("button",{type:"button",className:"mc-btn"+(at.emphasis?" me-on":""),disabled:!!W,onClick:ve,children:W==="restart"?"\u23F3 "+e("vcRestarting"):"\u{1F504} "+e("vcRestart")}),w.restartCommand&&(0,a.jsx)("code",{style:{fontSize:11,opacity:.75},children:w.restartCommand}),(0,a.jsx)("span",{style:{fontSize:11,opacity:.65},children:pt[at.hint]?pt[at.hint]():""})]}),Ta&&w&&w.onDisk&&Ta!==w.onDisk&&(0,a.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:Ta,disk:w.onDisk})}),w&&w.updateAvailable&&(0,a.jsxs)("div",{style:{marginTop:8,fontSize:11.5,opacity:.88},children:["\u2B06 ",e("vcOutdated")," \u2192 ",(0,a.jsx)("code",{children:w.updateCommand})]}),w&&w.checkError&&(0,a.jsxs)("div",{style:{marginTop:8,fontSize:11.5,color:"#b91c1c"},children:[e("vcCheckFail"),"\uFF1A",w.checkError]})]}),D&&D.agents&&(0,a.jsxs)("div",{className:"mc-card mc-cfg-sec",children:[(0,a.jsxs)("div",{className:"mc-cfg-sec-head",children:[(0,a.jsx)("div",{className:"mc-cfg-sec-ico",children:"\u{1F50C}"}),(0,a.jsxs)("div",{style:{minWidth:0},children:[(0,a.jsx)("div",{className:"mc-cfg-sec-title",children:e("mcpSetupStatus")}),(0,a.jsx)("div",{className:"mc-cfg-sec-sub",children:e("mcpAutoHint")})]}),(0,a.jsx)("span",{className:"mc-cfg-spacer"}),(0,a.jsx)("button",{type:"button",className:"mc-btn",style:{padding:"2px 8px",flex:"none"},onClick:In,children:e("mcpRefresh")})]}),bt?(0,a.jsx)("div",{className:"mc-mcp-summary",children:Oe("mcpSummary",{agents:An.length,servers:Tr.length,mounted:hn})}):null,d.map(b=>{let ne=Array.isArray(b.servers),de=ne?b.servers:[],Le=b.isDsh?e("dshHostLabel"):b.label||b.name;return(0,a.jsxs)("div",{className:"mc-mcp-row",style:{opacity:b.installed?1:.55},children:[(0,a.jsxs)("div",{className:"mc-mcp-main",children:[(0,a.jsxs)("div",{className:"mc-mcp-title",children:[(0,a.jsx)("b",{children:Le}),b.isDsh&&b.version&&(0,a.jsxs)("span",{className:"mc-mcp-badge",children:["v",b.version]}),!b.installed&&(0,a.jsx)("span",{className:"mc-mcp-badge",children:e("notInstalled")}),b.installed&&b.mcpConfigured===!1&&(0,a.jsx)("span",{className:"mc-mcp-badge",style:{color:"#f59e0b"},children:e("noMcpEntry")}),b.mcpConfigured===!0&&(0,a.jsxs)("span",{className:"mc-mcp-badge",style:{color:"#10b981"},children:["\u2713 ",e("healthy")]}),b.mcpConfigured===!0&&b.mcpMatchesCurrentNode===!1&&(0,a.jsx)("span",{className:"mc-mcp-badge",children:e("nodePathNote")}),(b.needsRepair||b.mcpNeedsRepair)&&(0,a.jsx)("span",{className:"mc-mcp-badge",style:{color:"#f59e0b"},children:e("mcpNeedsRepair")}),b.isDsh&&(0,a.jsxs)("span",{className:"mc-mcp-badge",children:[e("recallTool"),": ",b.recallTool?e("enabled"):e("disabled")]}),b.detectedOnly&&(0,a.jsx)("span",{className:"mc-mcp-badge",children:e("mcpDetectedOnly")}),b.reason&&(0,a.jsx)("span",{className:"mc-mcp-badge",style:{color:"#f59e0b"},children:b.reason})]}),ne?de.length?(0,a.jsx)("div",{className:"mc-mcp-servers",children:de.map(Ee=>(0,a.jsx)("code",{className:Ee==="memory"?"on":"",children:Ee},Ee))}):b.installed?(0,a.jsx)("div",{className:"mc-mcp-servers",children:(0,a.jsx)("span",{style:{fontSize:10.5,opacity:.45},children:e("mcpNoServers")})}):null:null,b.mcpPath&&(0,a.jsx)("div",{className:"mc-mcp-path",title:b.mcpPath,children:b.mcpPath})]}),(0,a.jsxs)("div",{className:"mc-mcp-actions",children:[b.hook&&(0,a.jsxs)("span",{style:{fontSize:10.5,opacity:.55},children:["hook: ",b.hook]}),!b.isDsh&&!b.detectedOnly&&b.installed&&b.mcpConfigured===!1&&(0,a.jsx)("button",{type:"button",className:"mc-btn",style:{padding:"2px 8px"},disabled:!!W,onClick:()=>Jn(b.name,"install"),children:e("installMcp")}),!b.isDsh&&!b.detectedOnly&&b.installed&&(b.needsRepair||b.mcpNeedsRepair||b.mcpMatchesCurrentNode===!1)&&(0,a.jsx)("button",{type:"button",className:"mc-btn me-on",style:{padding:"2px 8px"},disabled:!!W,onClick:()=>Jn(b.name,"install"),children:e("repairMcp")}),!b.isDsh&&!b.detectedOnly&&b.installed&&b.mcpConfigured===!0&&(0,a.jsx)("button",{type:"button",className:"mc-btn",style:{padding:"2px 8px",color:"#f87171"},disabled:!!W,onClick:()=>{window.confirm(e("uninstallConfirm"))&&Jn(b.name,"uninstall")},children:e("uninstallMcp")})]})]},b.name+(b.mcpPath||""))}),(0,a.jsx)("div",{style:{fontSize:11,opacity:.55,marginTop:6},children:e("mcpSetupHint")}),Me&&(0,a.jsx)("div",{style:{fontSize:11,marginTop:6},children:(0,a.jsx)("code",{style:{padding:"2px 6px",background:"var(--dsw-alias-bg-layer-2, #f3f4f6)",borderRadius:4},children:Me})})]}),u?(0,a.jsxs)("div",{className:"mc-cfg",children:[(0,a.jsxs)(Kn,{icon:"\u{1F3AF}",title:e("presetConfig"),sub:e("presetHint"),children:[(0,a.jsx)("div",{className:"mc-plan-grid",children:["A","B","C"].map(b=>(0,a.jsxs)("button",{type:"button",className:"mc-plan"+(De===b?" on":""),"aria-pressed":De===b,onClick:()=>Ve(b),disabled:!!W,children:[(0,a.jsxs)("b",{children:[De===b?"\u2705 ":b==="A"?"\u{1F7E2} ":b==="B"?"\u{1F4B0} ":"\u2B50 ",ot[b].label]}),(0,a.jsx)("span",{children:e("planDesc"+b)})]},b))}),De?(0,a.jsxs)("div",{style:{fontSize:11,color:"#10b981"},children:["\u2705 ",Oe("planApplied",{plan:ot[De].label})]}):null]}),(0,a.jsx)(Kn,{icon:"\u{1F9E0}",title:e("dshMemoryConfig"),sub:e("cfgSubCore"),children:(0,a.jsxs)("div",{className:"mc-cfg-grid",children:[(0,a.jsx)(Yt,{k:"enabled",label:e("enabledLabel")}),(0,a.jsx)(Yt,{k:"autoCapture",label:e("autoCapture")}),(0,a.jsx)(Yt,{k:"autoRecall",label:e("autoRecall")}),(0,a.jsx)(ut,{k:"vaultDir",label:e("vaultDirLabel")}),(0,a.jsx)(ut,{k:"captureMinChars",label:e("captureMinChars"),hint:e("unitChars"),type:"number"}),(0,a.jsx)(ut,{k:"maxCardsPerDay",label:e("maxCardsPerDay"),hint:e("unitPerDay"),type:"number"}),(0,a.jsx)(ut,{k:"dedupThreshold",label:e("dedupThreshold"),type:"number",step:"0.01",min:"0",max:"1"}),(0,a.jsx)(ut,{k:"recallLimit",label:e("recallLimit"),type:"number"}),(0,a.jsx)(ut,{k:"recallSummaryLen",label:e("recallSummaryLen"),hint:e("unitChars"),type:"number"}),(0,a.jsx)(Yt,{k:"recallIncludeBody",label:e("recallBody")}),(0,a.jsx)(ut,{k:"secretHint",label:e("secretHint")}),(0,a.jsx)(ut,{k:"recallEmbedding",label:e("recallEmbedding")})]})}),(0,a.jsx)(Kn,{icon:"\u2B50",title:e("coreMemory"),sub:e("coreMemoryHint"),children:(0,a.jsxs)("div",{className:"mc-cfg-grid",children:[(0,a.jsx)(Yt,{k:"coreMemoryEnabled",label:e("coreMemoryEnabled")}),(0,a.jsx)(ut,{k:"coreMemoryLimit",label:e("coreMemoryLimit"),type:"number"}),(0,a.jsx)(ut,{k:"coreMemoryMaxChars",label:e("coreMemoryMaxChars"),type:"number"})]})}),(0,a.jsxs)(Kn,{icon:"\u{1F9E9}",title:e("skillCards"),sub:e("skillCardsHint"),children:[(0,a.jsx)("div",{className:"mc-cfg-grid",children:(0,a.jsx)(Yt,{k:"skillCardsAutoSync",label:e("skillAutoSync")})}),(0,a.jsx)("div",{style:{display:"flex",gap:10,alignItems:"center",flexWrap:"wrap"},children:(0,a.jsx)("button",{type:"button",className:"mc-btn",disabled:!!W,onClick:async()=>{H("skills");try{let b=await fetch(Z+"/skills/sync",{method:"POST"}).then(ne=>ne.json()).catch(()=>null);b&&b.ok?le(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)):le(b&&b.error||e("skillsSyncFail"),!1)}catch{le(e("skillsSyncFail"),!1)}finally{H("")}},children:W==="skills"?"\u23F3 "+e("syncingSkills"):"\u{1F9E9} "+e("syncSkills")})})]}),(0,a.jsx)(Kn,{icon:"\u{1F520}",title:e("uiLayout"),sub:e("uiLayoutHint"),children:(0,a.jsx)("div",{className:"mc-cfg-grid",children:(0,a.jsxs)("label",{className:"mc-field",children:[(0,a.jsx)("span",{className:"mc-field-label",children:e("uiLayout")}),(0,a.jsxs)("select",{value:u&&u.uiScale||"normal",onChange:b=>{let ne=b.target.value;ft("uiScale",ne);try{window.dispatchEvent(new CustomEvent("me-ui-scale",{detail:ne}))}catch{}},children:[(0,a.jsx)("option",{value:"compact",children:e("uiCompact")}),(0,a.jsx)("option",{value:"normal",children:e("uiNormal")}),(0,a.jsx)("option",{value:"large",children:e("uiLarge")})]})]})})}),(0,a.jsxs)(Kn,{icon:"\u{1F5C2}\uFE0F",title:e("vaultMulti"),sub:e("cfgSubMulti"),children:[(0,a.jsxs)("div",{style:{fontSize:11.5,opacity:.85,marginBottom:8,lineHeight:1.7},children:[e("vaultNow"),"\uFF1A",(0,a.jsx)("code",{children:y?.vaultDir||"\u2014"}),y?.vaultName?`\uFF08${y.vaultName}\uFF09`:""," \xB7 ",e("vaultSource"),"\uFF1A",e(Mr[y?.vaultSource]||"vaultSrcDefault"),y?.workspace?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("br",{}),e("vaultWorkspace"),"\uFF1A",(0,a.jsx)("code",{children:y.workspace})]}):null]}),$e(u).map((b,ne)=>(0,a.jsxs)("div",{style:{display:"grid",gridTemplateColumns:"1fr 1.6fr 1.5fr auto",gap:6,marginBottom:6},children:[(0,a.jsx)("input",{value:b.name||"",placeholder:e("vaultNamePh"),onChange:de=>N(ne,"name",de.target.value),style:He,disabled:g}),(0,a.jsx)("input",{value:b.path||"",placeholder:e("vaultPathPh"),onChange:de=>N(ne,"path",de.target.value),style:He,disabled:g}),(0,a.jsx)("input",{value:b.match&&b.match.workspace||"",placeholder:e("vaultMatchPh"),onChange:de=>N(ne,"match",de.target.value),style:He,disabled:g}),(0,a.jsx)("button",{type:"button",className:"mc-btn",onClick:()=>ce(ne),disabled:g,title:e("delete"),children:"\u2715"})]},ne)),(0,a.jsxs)("div",{style:{display:"flex",gap:10,alignItems:"center",flexWrap:"wrap",marginTop:4},children:[(0,a.jsxs)("button",{type:"button",className:"mc-btn",onClick:x,disabled:g,children:["\uFF0B ",e("vaultAdd")]}),(0,a.jsxs)("label",{style:{display:"flex",alignItems:"center",gap:6,fontSize:12},children:[(0,a.jsx)("span",{style:{opacity:.6},children:e("vaultActive")}),(0,a.jsxs)("select",{value:u.activeVault||"",onChange:b=>ft("activeVault",b.target.value),disabled:g,style:He,children:[(0,a.jsx)("option",{value:"",children:e("vaultActiveNone")}),$e(u).filter(b=>b&&b.name).map(b=>(0,a.jsx)("option",{value:b.name,children:b.name},b.name))]})]})]})]}),(0,a.jsx)(Kn,{icon:"\u{1F4B0}",title:e("costControl"),sub:e("costHint"),children:(0,a.jsxs)("div",{className:"mc-cfg-grid",children:[(0,a.jsx)(Yt,{k:"distillEnabled",label:e("distillEnabled")}),(0,a.jsx)(Yt,{k:"dedupByLLM",label:e("dedupByLLM")}),(0,a.jsx)(ut,{k:"captureMaxTokens",label:e("captureMaxTokens"),type:"number"}),(0,a.jsx)(ut,{k:"captureTimeoutMs",label:e("captureTimeoutMs"),type:"number"}),(0,a.jsx)(ut,{k:"recallMinScore",label:e("recallMinScore"),type:"number"}),(0,a.jsx)(ut,{k:"captureCooldownMs",label:e("captureCooldownMs"),type:"number"}),ae&&ae.ok===!1&&(0,a.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 ",Oe("routeListFail",{err:ae.error||"\u672A\u77E5\u539F\u56E0"})]}),ae&&ae.providers&&ae.providers.length?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("label",{className:"mc-field",children:[(0,a.jsx)("span",{className:"mc-field-label",children:e("captureProvider")}),(0,a.jsxs)("select",{value:u.captureProvider||"",onChange:b=>{ft("captureProvider",b.target.value),ft("captureModel","")},children:[(0,a.jsx)("option",{value:"",children:e("routeAuto")}),ae.providers.map(b=>(0,a.jsx)("option",{value:b.id,children:b.label},b.id))]})]}),(0,a.jsxs)("label",{className:"mc-field",children:[(0,a.jsx)("span",{className:"mc-field-label",children:e("captureModel")}),(0,a.jsxs)("select",{value:u.captureModel||"",onChange:b=>ft("captureModel",b.target.value),children:[(0,a.jsx)("option",{value:"",children:e("routeAuto")}),((ae.providers.find(b=>b.id===u.captureProvider)||{}).models||[]).map(b=>(0,a.jsx)("option",{value:b.id,children:b.label||b.id},b.id))]})]})]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(ut,{k:"captureProvider",label:e("captureProvider")}),(0,a.jsx)(ut,{k:"captureModel",label:e("captureModel")})]}),(0,a.jsx)(Yt,{k:"captureFollowSession",label:e("captureFollowSession")}),(0,a.jsx)(Yt,{k:"captureFirstOnly",label:e("captureFirstOnly")}),(0,a.jsx)(ut,{k:"sessionBudgetChars",label:e("sessionBudgetChars"),type:"number"}),(0,a.jsx)("div",{style:{display:"flex",alignItems:"flex-end"},children:(0,a.jsx)("button",{type:"button",className:"mc-btn",disabled:!!W,onClick:async()=>{H("llmtest");try{let b=await fetch(Z+"/llm-test",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:u.captureProvider||"",model:u.captureModel||"",firstOnly:u.captureFirstOnly===!0})}).then(ne=>ne.json());b&&b.ok?le(e("llmTestOk")+"\uFF1A"+b.route.provider+(b.route.model?"/"+b.route.model:"")+" \xB7 "+b.ms+"ms \xB7 "+e("llmCandidates")+" "+b.candidates):le(e("llmTestFail")+"\uFF1A"+(b&&(b.failure?b.failure.code+" "+b.failure.message:b.error)||"?"),!1)}catch(b){le(e("llmTestFail")+"\uFF1A"+String(b&&b.message||b),!1)}finally{H("")}},children:W==="llmtest"?e("exporting"):"\u{1F50C} "+e("llmTest")})})]})}),(0,a.jsx)(Kn,{icon:"\u{1F6E1}\uFE0F",title:e("auditConfig"),sub:e("auditHint"),children:(0,a.jsxs)("div",{className:"mc-cfg-grid",children:[(0,a.jsxs)("label",{className:"mc-field",children:[(0,a.jsx)("span",{className:"mc-field-label",children:e("auditMode")}),(0,a.jsxs)("select",{value:u.auditMode??"all",onChange:b=>ft("auditMode",b.target.value),children:[(0,a.jsx)("option",{value:"all",children:e("auditAll")}),(0,a.jsx)("option",{value:"none",children:e("auditNone")})]})]}),(0,a.jsx)(Af,{label:e("auditExemptAgents"),value:u.auditExemptAgents||[],options:[{value:"__all__",label:e("allExempt")},...(D?.agents||[]).filter(b=>!b.isDsh).map(b=>({value:b.name,label:b.name}))],onChange:b=>ft("auditExemptAgents",b)}),(0,a.jsx)(Af,{label:e("auditExemptKinds"),value:u.auditExemptKinds||[],options:[{value:"__all__",label:e("allExempt")},...fl.filter(b=>b!=="all"&&b!=="core"&&b!=="skill").map(b=>({value:b,label:e(Et[b])}))],onChange:b=>ft("auditExemptKinds",b)}),(0,a.jsx)(ut,{k:"recycleRetentionDays",label:e("recycleDays"),hint:e("unitDays"),type:"number"})]})}),(0,a.jsx)(Kn,{icon:"\u{1F6E0}",title:e("serviceConfig"),sub:e("cfgSubService"),children:(0,a.jsxs)("div",{className:"mc-cfg-grid",children:[(0,a.jsx)(Yt,{k:"autoWeb",label:e("autoWeb")}),(0,a.jsxs)("label",{className:"mc-field",children:[(0,a.jsx)("span",{className:"mc-field-label",children:e("autoWebMode")}),(0,a.jsxs)("select",{value:u.autoWebMode??"init",onChange:b=>ft("autoWebMode",b.target.value),children:[(0,a.jsx)("option",{value:"init",children:e("modeInit")}),(0,a.jsx)("option",{value:"interval",children:e("modeInterval")}),(0,a.jsx)("option",{value:"manual",children:e("modeManual")})]})]}),(0,a.jsx)(ut,{k:"webPort",label:e("webPort"),type:"number"}),(0,a.jsx)(ut,{k:"webCheckIntervalMs",label:e("webCheckIntervalMs"),type:"number"}),(0,a.jsx)(ut,{k:"webMaxRestart",label:e("webMaxRestart"),hint:e("unitTimes"),type:"number"}),(0,a.jsx)(Yt,{k:"watchdogAutoSpawn",label:e("watchdogAutoSpawn")}),(0,a.jsx)(Yt,{k:"autoRestartOnDrift",label:e("autoRestartOnDrift")}),(0,a.jsx)(Yt,{k:"autoMcpSetup",label:e("autoMcpSetup")})]})}),(0,a.jsxs)("div",{className:"mc-cfg-actions",children:[z?(0,a.jsx)("span",{className:"mc-cfg-dirty",children:e("cfgDirty")}):(0,a.jsxs)("span",{className:"mc-cfg-clean",children:["\u2713 ",e("cfgClean")]}),(0,a.jsx)("span",{className:"mc-cfg-spacer"}),W==="save"&&(0,a.jsxs)("span",{style:{fontSize:11.5,opacity:.75},children:["\u23F3 ",e("saving")]}),te&&W!=="save"&&(0,a.jsxs)("span",{style:{fontSize:11.5,color:"#10b981"},children:["\u2705 ",te]}),I&&W!=="save"&&(0,a.jsxs)("span",{style:{fontSize:11.5,color:"#b91c1c"},children:["\u26A0 ",I]}),(0,a.jsx)("button",{type:"button",className:"mc-btn",onClick:Je,disabled:!!W,children:e("reset")}),(0,a.jsx)("button",{type:"button",className:"mc-btn me-on",onClick:g?()=>le(e("readonlyTitle")+"\uFF1A"+e("readonlyBody"),!1):je,disabled:W==="save",title:e(g?"readonlyBody":"saveConfig"),children:W==="save"?"\u23F3 "+e("saving"):g?"\u{1F512} "+e("readonlyBtn"):"\u{1F4BE} "+e("saveConfig")})]})]}):(0,a.jsx)("div",{style:{fontSize:12,opacity:.6},children:e("loading")})]})]})})}function Zy({t:e,onReload:t,version:n}){let[r,o]=(0,m.useState)([]),[i,l]=(0,m.useState)([]),[s,c]=(0,m.useState)("all"),[p,u]=(0,m.useState)("all"),[h,g]=(0,m.useState)(""),[S,L]=(0,m.useState)(""),[P,_]=(0,m.useState)(new Set),[v,f]=(0,m.useState)(null),[y,A]=(0,m.useState)(""),[D,R]=(0,m.useState)(null),[I,F]=(0,m.useState)("pending"),W=(T,J=!0)=>{R({msg:T,ok:J}),setTimeout(()=>R(null),3e3)},H=[...new Set([...r,...i].map(T=>T.submittedBy).filter(Boolean))],te=(0,m.useCallback)(async()=>{try{let T=await fetch(`${Z}/audit/list`).then(J=>J.json());T.ok&&(o(T.pending||[]),l(T.rejected||[]),_(new Set),oe({}))}catch{}},[]);(0,m.useEffect)(()=>{te()},[n,te]);let ye=(I==="pending"?r:i).filter(T=>{if(!Vc(T,S)||s!=="all"&&T.kind!==s||p!=="all"&&Cr(T.submittedBy)!==p)return!1;if(h){let J=sl(T.created);if(J&&J!==h)return!1}return!0}),ae=(0,m.useMemo)(()=>{let T=I==="pending"?r:i,J={all:0};return T.forEach(me=>{if(Vc(me,S)&&!(p!=="all"&&Cr(me.submittedBy)!==p)){if(h){let Ae=sl(me.created);if(Ae&&Ae!==h)return}J.all++,J[me.kind||"other"]=(J[me.kind||"other"]||0)+1}}),J},[r,i,I,p,h,S]),Fe=T=>_(J=>{let me=new Set(J);return me.has(T)?me.delete(T):me.add(T),me}),w=async(T,J,me={})=>{let Ae=J||[...P];if(!Ae.length){W(e("noSelection"),!1);return}A("apply");let le=T==="approved"?me.kind==="core"?e("approveCore"):e("toastApproved"):e(T==="rejected"?"toastRejected":"toastCardDeleted");try{let ve=0;for(let k of Ae){let Q=T==="approved"?"audit/approve":T==="rejected"?"audit/reject":"delete";try{let q=T==="approved"&&me.kind?{path:k,kind:me.kind}:null;(await fetch(Z+"/"+Q+(q?"":"?path="+encodeURIComponent(k)+(T==="delete"?"&permanent=0":"")),q?{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(q)}:void 0)).ok||ve++}catch{ve++}}await te(),t&&t(),ve?W(e("toastFailed")+"\uFF08"+ve+"/"+Ae.length+"\uFF09",!1):W(le+" "+Ae.length+" \u5F20")}catch(ve){W(e("toastFailed")+": "+String(ve&&ve.message||ve),!1)}finally{A("")}},[ke,oe]=(0,m.useState)({}),Me=T=>ke[T]||{},ue=[...P],ee=ye.find(T=>T.path===v)||ye[0]||null,Ie=ee?Me(ee.path):{};(0,m.useEffect)(()=>{let T=ee;if(!T||ke[T.path])return;let J=!0,me=T.path;oe(le=>({...le,[me]:{loading:!0}}));let Ae=T.status||(I==="pending"?"pending":"rejected");return fetch(`${Z}/card?path=${encodeURIComponent(me)}&status=${Ae}`).then(le=>le.json()).then(le=>{J&&(le&&le.ok?oe(ve=>({...ve,[me]:{text:le.text||""}})):oe(ve=>({...ve,[me]:{error:le&&le.error||"HTTP"}})))}).catch(le=>{J&&oe(ve=>({...ve,[me]:{error:String(le&&le.message||le)}}))}),()=>{J=!1}},[ee&&ee.path,I]);let De=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")){A("reclassify");try{let T=await fetch(Z+"/reclassify").then(J=>J.json());T&&T.ok?W(e("reclassify")+"\uFF1A"+T.changed+" / "+T.scanned):W(e("toastFailed")+": "+(T&&T.error||"HTTP"),!1),await te(),t&&t()}catch(T){W(e("toastFailed")+": "+String(T&&T.message||T),!1)}finally{A("")}}},B=()=>_(new Set),z=T=>{F(T),B()},O=["all",...fl.filter(T=>T!=="all")];return(0,a.jsxs)("div",{className:"mc-admin",style:{display:"flex",flexDirection:"column",overflow:"auto",flex:1,minHeight:0},children:[(0,a.jsx)("style",{children:gn}),(0,a.jsxs)("div",{style:{overflow:"auto",padding:4},children:[(0,a.jsx)(gl,{toast:D}),(0,a.jsxs)("div",{className:"mc-v5-pagehead mc-v5-audithead",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"mc-v5-eyebrow",children:"REVIEW INBOX"}),(0,a.jsx)("h1",{children:e("tabAudit")}),(0,a.jsx)("p",{children:e("auditInboxSub")})]}),(0,a.jsxs)("span",{className:"mc-v5-pagecount",children:[r.length," \u5F20"]}),(0,a.jsxs)("span",{className:"mc-v5-audit-trust",children:["\u{1F6E1} ",e("auditUndo")]})]}),(0,a.jsxs)("div",{className:"me-audit",children:[(0,a.jsxs)("div",{className:"mc-card mc-audit-filtercard",style:{marginBottom:10,display:"flex",flexDirection:"column",gap:8},children:[(0,a.jsxs)("div",{className:"me-audit-filter-row",children:[(0,a.jsxs)("b",{style:{fontSize:12},children:["\u{1F6E1}\uFE0F ",e("tabAudit")]}),(0,a.jsx)("input",{type:"text",value:S,onChange:T=>{L(T.target.value),B(),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}}),S&&(0,a.jsx)("button",{type:"button",className:"mc-btn",style:{padding:"2px 8px"},onClick:()=>{L(""),B(),f(null)},title:e("clearFilter"),children:"\u2715"}),(0,a.jsxs)("select",{value:p,onChange:T=>{u(T.target.value),B()},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,a.jsx)("option",{value:"all",children:e("allAgents")}),Of(H).map(T=>(0,a.jsx)("option",{value:T,children:T},T))]}),(0,a.jsx)("input",{type:"date",value:h,onChange:T=>{g(T.target.value),B()},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,a.jsxs)("div",{className:"me-audit-types-top",children:[(0,a.jsx)("span",{className:"me-audit-types-label",children:e("auditTypeLabel")}),O.map(T=>{let J=T==="all"?"var(--dsw-alias-label-secondary, #9ca3af)":Bt[T]||"#6B7280";return(0,a.jsxs)("button",{type:"button",className:`me-audit-kind${s===T?" active":""}`,onClick:()=>{c(T),B()},children:[(0,a.jsx)("span",{className:"me-audit-kind-dot",style:{background:J}}),(0,a.jsx)("span",{className:"me-audit-kind-name",children:e(T==="all"?"all":Et[T])}),(0,a.jsx)("span",{className:"me-audit-kind-count",children:ae[T]||0})]},T)})]})]}),(0,a.jsxs)("div",{className:"me-audit-main",children:[(0,a.jsxs)("div",{className:"me-audit-queue",children:[(0,a.jsxs)("div",{className:"mc-card mc-audit-batchcard",style:{marginBottom:10,display:"flex",gap:10,alignItems:"center",flexWrap:"wrap"},children:[(0,a.jsxs)("button",{type:"button",className:`mc-btn${I==="pending"?" me-on":""}`,onClick:()=>z("pending"),children:[e("pending"),"\uFF08",r.length,"\uFF09"]}),(0,a.jsxs)("button",{type:"button",className:`mc-btn${I==="rejected"?" me-on":""}`,onClick:()=>z("rejected"),children:[e("rejected"),"\uFF08",i.length,"\uFF09"]}),(0,a.jsx)("div",{style:{flex:1}}),(0,a.jsxs)("label",{style:{fontSize:12},children:[(0,a.jsx)("input",{type:"checkbox",checked:ye.length>0&&ue.length===ye.length,onChange:T=>{T.target.checked?_(new Set(ye.map(J=>J.path))):_(new Set)}})," ",e("selectAll"),"\uFF08",ye.length,"\uFF09"]}),(0,a.jsxs)("span",{style:{fontSize:11,opacity:.65},children:[e("auditSelected")," ",ue.length]}),I==="pending"&&(0,a.jsxs)("button",{type:"button",className:"mc-btn",disabled:!!y,onClick:De,children:["\u{1F527} ",e("reclassify")]}),(0,a.jsxs)("button",{type:"button",className:"mc-btn me-on",disabled:!ue.length||!!y,onClick:()=>w("approved"),children:["\u2713 ",e(I==="rejected"?"restore":"approve")]}),I==="pending"?(0,a.jsxs)("button",{type:"button",className:"mc-btn",style:{color:"#f87171"},disabled:!ue.length||!!y,onClick:()=>w("rejected"),children:["\u2715 ",e("reject")]}):(0,a.jsxs)("button",{type:"button",className:"mc-btn",style:{color:"#f87171"},disabled:!ue.length||!!y,onClick:()=>{window.confirm(e("recycleDeleteConfirm"))&&w("delete")},children:["\u{1F5D1} ",e("restoreDelete")]}),ue.length>0&&(0,a.jsx)("button",{type:"button",className:"mc-btn",onClick:B,children:e("auditClearSelection")})]}),ye.length?(0,a.jsx)("div",{className:"mc-card",style:{display:"flex",flexDirection:"column"},children:ye.map(T=>{let J=Bt[T.kind]||"#6B7280";return(0,a.jsx)("div",{className:`me-audit-row${T.kind==="core"?" core":""}${ee&&ee.path===T.path?" active":""}`,children:(0,a.jsxs)("div",{className:"me-audit-row-main",onClick:()=>f(T.path),children:[(0,a.jsx)("input",{type:"checkbox",checked:P.has(T.path),onClick:me=>me.stopPropagation(),onChange:()=>Fe(T.path)}),(0,a.jsx)("span",{className:"me-audit-row-tile",style:{color:J,borderColor:J+"38",background:J+"18"},children:Nr[T.kind]||"\u{1F4CE}"}),(0,a.jsxs)("div",{className:"me-audit-row-copy",children:[(0,a.jsxs)("div",{className:"me-audit-row-top",children:[(0,a.jsx)("span",{className:`me-audit-row-kind${T.kind==="core"?" core":""}`,children:T.kind==="core"?"\u2B50 "+e("kindCore"):e(Et[T.kind]||"kindKnowledge")}),(0,a.jsx)("span",{className:`me-audit-row-state ${I==="pending"?"pending":"rejected"}`,children:I==="pending"?"\u23F3 "+e("statusPending"):"\u26D4 "+e("statusRejected")}),(0,a.jsx)("span",{className:"me-audit-row-time",children:Gc(T.created)||"-"})]}),(0,a.jsx)("button",{type:"button",className:"me-audit-row-title",title:T.title,onClick:()=>f(T.path),children:T.title}),(T.reason||T.summary)&&(0,a.jsx)("p",{className:"me-audit-row-reason",children:T.reason||T.summary}),(0,a.jsxs)("div",{className:"me-audit-row-meta",children:[(0,a.jsxs)("span",{children:["\u{1F916} ",Cr(T.submittedBy)]}),(Array.isArray(T.tags)?T.tags:[]).slice(0,3).map(me=>(0,a.jsxs)("span",{children:["#",me]},me))]})]}),(0,a.jsx)("div",{className:"me-audit-row-actions",onClick:me=>me.stopPropagation(),children:I==="pending"?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("button",{type:"button",className:"mc-btn",style:{padding:"2px 8px"},onClick:()=>w("approved",[T.path]),children:"\u2713"}),(0,a.jsx)("button",{type:"button",className:"mc-btn",style:{padding:"2px 8px",color:"#f87171"},onClick:()=>w("rejected",[T.path]),children:"\u2715"})]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("button",{type:"button",className:"mc-btn",style:{padding:"2px 8px"},title:e("restore"),onClick:()=>w("approved",[T.path]),children:"\u2713"}),(0,a.jsx)("button",{type:"button",className:"mc-btn",style:{padding:"2px 8px",color:"#f87171"},title:e("restoreDelete"),onClick:()=>{window.confirm(e("recycleDeleteConfirm"))&&w("delete",[T.path])},children:"\u{1F5D1}"})]})})]})},T.path)})}):(0,a.jsx)("div",{style:{opacity:.6,fontSize:12,padding:20,textAlign:"center"},children:e(S?"auditNoMatch":"noAuditItems")})]}),(0,a.jsx)("aside",{className:"me-audit-preview",children:ee?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"me-audit-preview-head",children:[(0,a.jsxs)("div",{className:"me-audit-preview-top",children:[(0,a.jsxs)("span",{className:"me-audit-kind-badge",style:{color:Bt[ee.kind]||"#6B7280",borderColor:(Bt[ee.kind]||"#6B7280")+"59",background:(Bt[ee.kind]||"#6B7280")+"1a"},children:[Nr[ee.kind]||"\u{1F4CE}"," ",e(Et[ee.kind]||"kindKnowledge")]}),(0,a.jsx)("span",{className:`md-chip ${I==="pending"?"md-chip-st-warn":"md-chip-st-bad"}`,children:I==="pending"?ee.kind==="core"?"\u2B50 "+e("coreSuggested"):"\u23F3 "+e("statusPending"):"\u26D4 "+e("statusRejected")}),(0,a.jsx)("span",{className:"spacer",style:{flex:1}}),(0,a.jsx)("span",{style:{fontSize:10,opacity:.55},children:Gc(ee.created)})]}),(0,a.jsx)("h3",{children:ee.title}),(0,a.jsxs)("div",{className:"me-audit-preview-meta",children:[(0,a.jsxs)("span",{children:["\u{1F916} ",Cr(ee.submittedBy)]}),!!ee.reason&&(0,a.jsxs)("span",{className:"me-audit-preview-reason",children:["\u2691 ",ee.reason]}),(Array.isArray(ee.tags)?ee.tags:[]).slice(0,5).map(T=>(0,a.jsxs)("span",{children:["#",T]},T))]})]}),(0,a.jsxs)("div",{className:"me-audit-preview-body",children:[Ie.loading&&(0,a.jsx)("div",{className:"me-audit-preview-empty",children:e("loading")}),Ie.error&&(0,a.jsxs)("div",{className:"me-audit-preview-empty",style:{color:"#f87171"},children:["\u26A0 ",e("auditBodyFail"),"\uFF1A",Ie.error]}),Ie.text!=null?(0,a.jsx)("div",{className:"md-doc",dangerouslySetInnerHTML:{__html:Eo(dd(ol(Ie.text).body,ee.title))}}):!Ie.loading&&(0,a.jsx)("p",{className:"me-audit-preview-summary",children:ee.summary||""})]}),(0,a.jsxs)("div",{className:"me-audit-preview-actions",children:[(0,a.jsxs)("button",{type:"button",className:"mc-btn me-on",disabled:!!y,onClick:()=>w("approved",[ee.path]),children:["\u2713 ",I==="rejected"?e("restore"):ee.kind==="core"?e("approveCore"):e("approve")]}),I==="pending"&&ee.kind!=="core"&&(0,a.jsxs)("button",{type:"button",className:"mc-btn me-core-btn",disabled:!!y,onClick:()=>w("approved",[ee.path],{kind:"core"}),children:["\u2B50 ",e("approveAndCore")]}),I==="pending"&&ee.kind==="core"&&(0,a.jsx)("button",{type:"button",className:"mc-btn",disabled:!!y,onClick:()=>w("approved",[ee.path],{kind:"knowledge"}),children:e("approveAsNormal")}),I==="pending"?(0,a.jsxs)("button",{type:"button",className:"mc-btn",style:{color:"#f87171"},disabled:!!y,onClick:()=>w("rejected",[ee.path]),children:["\u2715 ",e("reject")]}):(0,a.jsxs)("button",{type:"button",className:"mc-btn",style:{color:"#f87171"},disabled:!!y,onClick:()=>{window.confirm(e("recycleDeleteConfirm"))&&w("delete",[ee.path])},children:["\u{1F5D1} ",e("restoreDelete")]})]})]}):(0,a.jsx)("div",{className:"me-audit-preview-empty",children:e(S?"auditNoMatch":"noAuditItems")})})]})]})]})]})}var ev={title:"",date:"",category:"",source:"",url:"",tags:"",pinned:!1,body:""};function rd(){let e=new Date;return e.getFullYear()+"-"+String(e.getMonth()+1).padStart(2,"0")+"-"+String(e.getDate()).padStart(2,"0")}function ad(e){try{let t=new URL(String(e||""));return t.protocol==="http:"||t.protocol==="https:"?t.href:""}catch{return""}}function tv(e,t){let n=String(e||"").slice(0,10);if(!n)return t("newsEarlier");if(n===rd())return t("newsToday");let r=new Date;r.setDate(r.getDate()-1);let o=r.getFullYear()+"-"+String(r.getMonth()+1).padStart(2,"0")+"-"+String(r.getDate()).padStart(2,"0");return n===o?t("newsYesterday"):n}function Rf({item:e,t,active:n,onOpen:r,onEdit:o,onToggleRead:i,onDelete:l}){return(0,a.jsxs)("article",{className:"mc-news-card"+(e.pinned?" pinned":"")+(e.read?"":" unread")+(n?" active":""),onClick:()=>r(e),children:[(0,a.jsxs)("div",{className:"mc-news-top",children:[!e.read&&(0,a.jsx)("span",{className:"mc-news-dot",title:t("newsUnread")}),(0,a.jsx)("span",{className:"mc-news-cat",children:e.category||t("newsCategoryField")}),e.pinned&&(0,a.jsxs)("span",{className:"mc-news-pin",children:["\u{1F4CC} ",t("newsPinned")]}),(0,a.jsx)("span",{className:"mc-news-time",children:e.date||(e.updated||"").slice(0,10)})]}),(0,a.jsx)("h3",{className:"mc-news-title",children:e.title}),e.excerpt&&(0,a.jsx)("p",{className:"mc-news-excerpt",children:e.excerpt}),(0,a.jsxs)("div",{className:"mc-news-meta",children:[e.source&&(0,a.jsx)("span",{children:e.source}),(e.tags||[]).slice(0,3).map(s=>(0,a.jsxs)("span",{children:["#",s]},s)),(0,a.jsx)("span",{style:{marginLeft:"auto",opacity:.72},children:e.read?t("newsRead"):t("newsUnread")}),(0,a.jsxs)("span",{className:"mc-news-actions",onClick:s=>s.stopPropagation(),children:[(0,a.jsx)("button",{type:"button",className:"mc-btn",onClick:()=>i(e),children:e.read?t("newsMarkUnread"):t("newsMarkRead")}),(0,a.jsx)("button",{type:"button",className:"mc-btn",onClick:()=>o(e),children:t("newsEdit")}),(0,a.jsx)("button",{type:"button",className:"mc-btn",style:{color:"#f87171"},onClick:()=>l(e),title:t("delete"),children:"\u2715"})]})]})]})}function nv(e,t){let n=Date.now()-Number(e||0);if(!Number.isFinite(n)||n<0)return"";let r=Math.floor(n/6e4);if(r<1)return t("newsJustNow");if(r<60)return r+" "+t("newsMinutesAgo");let o=Math.floor(r/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 Gr="me.news.lastQuery",Po="me.news.prefs",Bf="me.news.view",rv={model:"\u6A21",product:"\u54C1",research:"\u7814",opensource:"\u6E90",industry:"\u4E1A",policy:"\u7B56",other:"\u8BAF"},av=new Set(["the","a","an","of","to","for","and","in","on","is","are","with","how","why","new","its","it","as","at","by","from"]);function cd(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 Yn(e,t){try{localStorage.setItem(e,JSON.stringify(t))}catch{}}function Jc(e,t=""){let n=cd(e,t);return typeof n=="string"?n:t}function Lf(){let e=cd(Bf,null);return e&&typeof e=="object"?e:{}}function od(){return{types:{},sources:{},terms:{},opens:0,updatedAt:0}}function ov(){let e=cd(Po,null);return!e||typeof e!="object"?od():{...od(),...e,types:e.types||{},sources:e.sources||{},terms:e.terms||{}}}function Hf(e){let t=[];for(let n of String(e||"").toLowerCase().split(/[^0-9a-z\u4e00-\u9fff]+/))!n||n.length<2||av.has(n)||t.push(n);return t}function pl(e,t,n){t&&(e[t]=Math.min(60,(Number(e[t])||0)+n))}function iv(e,t,n){let r={...n,types:{...n.types},sources:{...n.sources},terms:{...n.terms}};return e&&(pl(r.types,e.type,t),pl(r.sources,e.sourceId,t),Hf(e.title).slice(0,6).forEach(o=>pl(r.terms,o,1)),r.opens=(Number(n.opens)||0)+1),r.updatedAt=Date.now(),r}function Pf(e,t){let n={...e,terms:{...e.terms}};return Hf(t).forEach(r=>pl(n.terms,r,3)),n.updatedAt=Date.now(),n}function lv(e){let t=0;for(let n of String(e||""))t=(t*31+n.charCodeAt(0))%360;return t}function sv(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)}function Df(e,t,n){let r=Math.max(0,(Date.now()-Number(e.publishedAt||0))/36e5),o=100-Math.min(60,r*.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 o}function cv({t:e,mode:t,version:n}){let[r,o]=(0,m.useState)([]),[i,l]=(0,m.useState)([]),[s,c]=(0,m.useState)(!0),[p,u]=(0,m.useState)(0),[h,g]=(0,m.useState)([]),[S,L]=(0,m.useState)(""),[P,_]=(0,m.useState)(null),[v,f]=(0,m.useState)(()=>Jc(Gr)),[y,A]=(0,m.useState)(()=>Jc(Gr).trim()),[D,R]=(0,m.useState)(""),[I,F]=(0,m.useState)(()=>{let j=Lf();return typeof j.lang=="string"?j.lang:"zh"}),[W,H]=(0,m.useState)(()=>Lf().sort==="time"?"time":"rec"),[te,ye]=(0,m.useState)(ov),[ae,Fe]=(0,m.useState)(!1),w=(j,U=!0)=>{_({msg:j,ok:U}),setTimeout(()=>_(null),3200)},ke=(0,m.useRef)(!1),oe=(0,m.useRef)(Jc(Gr).trim());(0,m.useEffect)(()=>{let j=setTimeout(()=>{let U=v.trim();A(U),ke.current&&(Yn(Gr,U),!(!U||U===oe.current)&&(oe.current=U,ye(se=>{let xe=Pf(se,U);return Yn(Po,xe),xe})))},260);return()=>clearTimeout(j)},[v]),(0,m.useEffect)(()=>{Yn(Bf,{lang:I,sort:W})},[I,W]),(0,m.useEffect)(()=>{Fe(!0);let j=setTimeout(()=>Fe(!1),170);return()=>clearTimeout(j)},[D,I,y,W]);let Me=(0,m.useCallback)(async()=>{c(!0),L("");try{let j=new URLSearchParams({period:t==="month"?"month":"today",lang:"all"}),U=await fetch(Z+"/news/feed?"+j.toString()).then(se=>se.json());if(!U||!U.ok)throw new Error(U&&U.error||e("newsFeedError"));o(U.items||[]),l(U.types||[]),u(Number(U.fetchedAt)||0),g(U.errors||[])}catch(j){let U=j&&j.message||e("newsFeedError");L(U),w(U,!1)}finally{c(!1)}},[t,e]);(0,m.useEffect)(()=>{Me()},[n,Me]);let ue=async()=>{c(!0);try{let j=await fetch(Z+"/news/feed/refresh",{method:"POST"}).then(U=>U.json());if(!j||!j.ok)throw new Error(j&&j.error||e("newsFeedError"));await Me(),w(e("newsUpdatedAt")+" "+new Date().toLocaleTimeString())}catch(j){let U=j&&j.message||e("newsFeedError");L(U),w(U,!1),c(!1)}},ee=j=>(i.find(U=>U.id===j)||{}).label||e("all"),Ie=(r||[]).filter(j=>!I||j.lang===I),De={};for(let j of Ie)De[j.type]=(De[j.type]||0)+1;let B=D?Ie.filter(j=>j.type===D):Ie;if(y){let j=y.toLowerCase().split(/\s+/).filter(Boolean);B=B.filter(U=>{let se=[U.title,U.summary,U.source,ee(U.type)].join(" ").toLowerCase();return j.every(xe=>se.includes(xe))})}let z=j=>(Number(j.points)||0)+(Number(j.comments)||0)*2,O=t==="month",T=O?B.filter(j=>(j.points||0)>0):[],J=O&&T.length>0,me=new Map;J&&T.slice().sort((j,U)=>(U.points||0)-(j.points||0)||(U.comments||0)-(j.comments||0)).forEach((j,U)=>me.set(j.id||j.url||j.title,U+1)),B=B.slice().sort((j,U)=>W==="time"?(U.publishedAt||0)-(j.publishedAt||0):O&&J?(U.points||0)-(j.points||0)||(U.comments||0)-(j.comments||0)||(U.publishedAt||0)-(j.publishedAt||0):Df(U,te,y)-Df(j,te,y));let Ae=Object.keys(te.types||{}).sort((j,U)=>(te.types[U]||0)-(te.types[j]||0)).slice(0,3),le=Object.keys(te.terms||{}).sort((j,U)=>(te.terms[U]||0)-(te.terms[j]||0)).slice(0,4),ve=!!y||Ae.length>0||le.length>0,k=j=>{ke.current=!0;let U=String(j??"").trim();A(U),Yn(Gr,U),!(!U||U===oe.current)&&(oe.current=U,ye(se=>{let xe=Pf(se,U);return Yn(Po,xe),xe}))},Q=()=>{ke.current=!1,oe.current="",R(""),F(""),f(""),A(""),Yn(Gr,"")},q=j=>ye(U=>{let se=iv(j,4,U);return Yn(Po,se),se}),ge=()=>{let j=od();Yn(Po,j),Yn(Gr,""),oe.current="",ke.current=!1,ye(j),f(""),A("")};return(0,a.jsxs)("div",{className:"mc-news",children:[(0,a.jsx)(gl,{toast:P}),(0,a.jsxs)("div",{className:"mc-news-hero",children:[(0,a.jsx)("div",{className:"mc-news-hero-eye",children:e("newsHeroEye")}),(0,a.jsxs)("div",{className:"mc-news-hero-search",children:[(0,a.jsx)("span",{"aria-hidden":"true",style:{fontSize:15,opacity:.75},children:"\u{1F50E}"}),(0,a.jsx)("input",{type:"text",value:v,onChange:j=>{ke.current=!0,f(j.target.value)},onKeyDown:j=>{j.key==="Enter"&&k(v)},placeholder:e("newsSearch"),"aria-label":e("newsSearch")}),v?(0,a.jsx)("button",{type:"button",className:"mc-news-hero-clear",title:e("cancel"),onClick:()=>{f(""),k("")},children:"\u2715"}):null,(0,a.jsx)("button",{type:"button",className:"mc-news-hero-go",onClick:()=>k(v),children:e("newsSearchGo")})]}),(0,a.jsx)("div",{className:"mc-news-hero-hint",children:e("newsHeroHint")})]}),ve?(0,a.jsxs)("div",{className:"mc-news-pref",children:[(0,a.jsxs)("span",{children:["\u{1F3AF} ",e("newsPersonalized")]}),y?(0,a.jsxs)("span",{children:["\xB7 ",e("newsLastQuery")," ",(0,a.jsx)("b",{children:y})]}):null,le.length>0?(0,a.jsxs)("span",{children:["\xB7 ",le.join(" / ")]}):null,Ae.length>0?(0,a.jsxs)("span",{children:["\xB7 ",Ae.map(ee).join(" / ")]}):null,(0,a.jsx)("span",{className:"mc-news-pref-actions",children:(0,a.jsx)("button",{type:"button",className:"mc-btn",onClick:ge,children:e("newsResetPrefs")})})]}):null,(0,a.jsxs)("div",{className:"mc-news-feed-toolbar",children:[(0,a.jsxs)("div",{className:"mc-news-pills",children:[(0,a.jsxs)("button",{type:"button",className:"mc-news-pill"+(D===""?" on":""),onClick:()=>R(""),children:[e("all"),(0,a.jsx)("span",{className:"mc-news-pill-count",children:Ie.length})]}),i.map(j=>De[j.id]?(0,a.jsxs)("button",{type:"button",className:"mc-news-pill"+(D===j.id?" on":""),onClick:()=>R(D===j.id?"":j.id),children:[j.label,(0,a.jsx)("span",{className:"mc-news-pill-count",children:De[j.id]})]},j.id):null)]}),(0,a.jsxs)("span",{style:{marginLeft:"auto",display:"flex",alignItems:"center",gap:6,flexWrap:"wrap"},children:[(0,a.jsx)("button",{type:"button",className:"mc-chip"+(I==="zh"?" active":""),onClick:()=>F("zh"),children:e("newsLangZh")}),(0,a.jsx)("button",{type:"button",className:"mc-chip"+(I==="en"?" active":""),onClick:()=>F("en"),children:e("newsLangEn")}),(0,a.jsx)("button",{type:"button",className:"mc-chip"+(I===""?" active":""),onClick:()=>F(""),children:e("newsLangAll")}),(0,a.jsx)("button",{type:"button",className:"mc-chip"+(W==="rec"?" active":""),onClick:()=>H("rec"),children:e("newsSortRec")}),(0,a.jsx)("button",{type:"button",className:"mc-chip"+(W==="time"?" active":""),onClick:()=>H("time"),children:e("newsSortTime")}),(0,a.jsx)("button",{type:"button",className:"mc-btn",disabled:s,onClick:ue,children:e(s?"newsLoading":"newsFeedRefresh")})]})]}),(0,a.jsxs)("div",{className:"mc-news-feed-meta",style:{margin:"0 0 8px"},children:[p?e("newsUpdatedAt")+" "+new Date(p).toLocaleTimeString():"",s?"":" \xB7 "+B.length+" "+e("newsMatched")]}),t==="month"&&(0,a.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(J?"newsEnRanking":"newsZhArchive")}),S&&!s&&(0,a.jsxs)("div",{className:"mc-news-feed-warn",style:{display:"flex",alignItems:"center",gap:10,flexWrap:"wrap"},children:[(0,a.jsxs)("span",{children:["\u26A0 ",S]}),(0,a.jsx)("button",{type:"button",className:"mc-btn",onClick:ue,children:e("newsRetry")})]}),h.length>0&&(0,a.jsxs)("div",{className:"mc-news-feed-warn",children:["\u26A0 ",e("newsPartialFail"),"\uFF1A",h.slice(0,2).join("\uFF1B")]}),s?(0,a.jsxs)("div",{className:"mc-card mc-news-feed-empty mc-news-loading-card",role:"status","aria-live":"polite",children:[(0,a.jsx)(ml,{}),(0,a.jsx)("span",{children:e("newsLoading")}),(0,a.jsx)("small",{children:e("newsLoadingHint")})]}):r.length===0?(0,a.jsxs)("div",{className:"mc-card mc-news-feed-empty",children:[(0,a.jsx)("div",{children:e("newsFeedEmpty")}),(0,a.jsx)("button",{type:"button",className:"mc-btn me-on",style:{marginTop:10},onClick:ue,children:e("newsFeedRefresh")})]}):B.length===0?(0,a.jsxs)("div",{className:"mc-card mc-news-feed-empty mc-news-nomatch",children:[(0,a.jsx)("div",{children:e("newsNoMatch")}),(0,a.jsx)("p",{style:{margin:"6px 0 0",fontSize:11.5,lineHeight:1.6,opacity:.75},children:e("newsNoMatchHint")}),(0,a.jsx)("button",{type:"button",className:"mc-btn me-on",style:{marginTop:10},onClick:Q,children:e("newsClearFilters")})]}):(0,a.jsx)("div",{className:"mc-news-grid"+(ae?" is-swapping":""),children:B.map((j,U)=>{let se=ad(j.url),xe=ee(j.type),at=ad(j.image),et=J&&me.get(j.id||j.url||j.title)||0,pt=J&&et>0&&et<=3;return(0,a.jsxs)("a",{className:"mc-news-tile",style:{"--i":Math.min(U,14)},href:se||void 0,target:se?"_blank":void 0,rel:"noopener noreferrer",onClick:()=>q(j),children:[(0,a.jsxs)("span",{className:"mc-news-tile-cover",children:[at?(0,a.jsx)("img",{className:"mc-news-tile-img",src:at,alt:"",loading:"lazy",referrerPolicy:"no-referrer",onError:Oe=>{let At=Oe.currentTarget;At.style.display="none",At.nextElementSibling&&(At.nextElementSibling.style.display="grid")}}):null,(0,a.jsxs)("span",{className:"mc-news-tile-gen",style:{"--hue":lv(j.title),display:at?"none":"grid"},children:[(0,a.jsx)("b",{children:rv[j.type]||"\u8BAF"}),(0,a.jsx)("small",{children:xe}),(0,a.jsxs)("em",{children:[(0,a.jsx)("i",{children:sv(j.source)}),j.source]})]}),(0,a.jsx)("span",{className:"mc-news-tile-badge"+(pt?" hot":""),children:et?"#"+et:xe}),(0,a.jsx)("span",{className:"mc-news-tile-time",children:nv(j.publishedAt,e)})]}),(0,a.jsxs)("span",{className:"mc-news-tile-body",children:[(0,a.jsx)("span",{className:"mc-news-tile-title",children:j.title}),j.summary?(0,a.jsx)("span",{className:"mc-news-tile-summary",children:j.summary}):null,(0,a.jsxs)("span",{className:"mc-news-tile-foot",children:[(0,a.jsx)("i",{className:"mc-news-tile-dot"}),(0,a.jsx)("span",{children:j.source}),et?(0,a.jsxs)("span",{children:["\xB7 \u{1F525} ",e("newsHeat")," ",z(j)]}):null,(0,a.jsxs)("span",{className:"mc-news-tile-open",children:[e("newsOriginal")," \u2197"]})]})]})]},j.id||j.url||j.title)})})]})}function dv({t:e,version:t,onUnreadChange:n}){let[r,o]=(0,m.useState)("daily"),i=r==="month"?"newsMonthlySub":r==="mine"?"newsMineSub":"newsDailySub";return(0,a.jsxs)("div",{className:"mc-news",children:[(0,a.jsx)("div",{className:"mc-v5-pagehead",children:(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"mc-v5-eyebrow",children:"NEWSROOM"}),(0,a.jsx)("h1",{children:e("newsTitle")}),(0,a.jsx)("p",{children:e(i)})]})}),(0,a.jsxs)("div",{className:"mc-news-modes",children:[(0,a.jsx)("button",{type:"button",className:"mc-news-mode"+(r==="daily"?" active":""),onClick:()=>o("daily"),children:e("newsDaily")}),(0,a.jsx)("button",{type:"button",className:"mc-news-mode"+(r==="month"?" active":""),onClick:()=>o("month"),children:e("newsMonthly")}),(0,a.jsx)("button",{type:"button",className:"mc-news-mode"+(r==="mine"?" active":""),onClick:()=>o("mine"),children:e("newsMine")})]}),r==="mine"?(0,a.jsx)(uv,{t:e,version:t,onUnreadChange:n}):(0,a.jsx)(cv,{t:e,mode:r,version:t})]})}function uv({t:e,version:t,onUnreadChange:n}){let[r,o]=(0,m.useState)([]),[i,l]=(0,m.useState)([]),[s,c]=(0,m.useState)({all:0,unread:0}),[p,u]=(0,m.useState)(""),[h,g]=(0,m.useState)(""),[S,L]=(0,m.useState)(""),[P,_]=(0,m.useState)(!1),[v,f]=(0,m.useState)(""),[y,A]=(0,m.useState)(null),[D,R]=(0,m.useState)(null),[I,F]=(0,m.useState)(!1),[W,H]=(0,m.useState)(""),[te,ye]=(0,m.useState)(null),ae=(z,O=!0)=>{ye({msg:z,ok:O}),setTimeout(()=>ye(null),2600)};(0,m.useEffect)(()=>{let z=setTimeout(()=>g(p.trim()),220);return()=>clearTimeout(z)},[p]);let Fe=(0,m.useCallback)(async()=>{let z=new URLSearchParams;h&&z.set("q",h),S&&z.set("category",S),P&&z.set("unread","1");try{let O=await fetch(Z+"/news?"+z.toString()).then(T=>T.json());if(!O||!O.ok)throw new Error(O&&O.error||"load failed");o(O.items||[]),l(O.categories||[]),c(O.counts||{all:0,unread:0}),n&&n(Number((O.counts||{}).unread)||0)}catch{ae(e("newsSaveFail"),!1)}},[h,S,P,n,e]);(0,m.useEffect)(()=>{Fe()},[t,Fe]);let w=async z=>{f(z.id);try{let O=await fetch(Z+"/news/item?id="+encodeURIComponent(z.id)).then(T=>T.json());if(!O||!O.ok)throw new Error(O&&O.error||"load failed");A(O.item),O.item.read||await ke(z.id,!0)}catch{ae(e("newsSaveFail"),!1)}},ke=async(z,O)=>{try{let T=await fetch(Z+"/news/read",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:z,read:O})}).then(J=>J.json());if(!T||!T.ok)throw new Error(T&&T.error||"read failed");A(J=>J&&J.id===z?{...J,read:!!O}:J),await Fe()}catch{ae(e("newsSaveFail"),!1)}},oe=async z=>{if(F(!1),z){let O=z;if(!O.body)try{let T=await fetch(Z+"/news/item?id="+encodeURIComponent(O.id)).then(J=>J.json());T&&T.ok&&(O=T.item)}catch{}R({id:O.id,title:O.title||"",date:O.date||rd(),category:O.category||"",source:O.source||"",url:O.url||"",tags:(O.tags||[]).join(", "),pinned:!!O.pinned,body:O.body||"",created:O.created||""})}else R({...ev,date:rd()})},Me=async()=>{if(D){if(!String(D.title||"").trim()||!String(D.body||"").trim()){ae(e("newsSaveFail"),!1);return}H("save");try{let z={id:D.id||void 0,title:D.title,date:D.date,category:D.category,source:D.source,url:D.url,tags:String(D.tags||"").split(",").map(T=>T.trim()).filter(Boolean),pinned:!!D.pinned,body:D.body,created:D.created},O=await fetch(Z+"/news/save",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(z)}).then(T=>T.json());if(!O||!O.ok)throw new Error(O&&O.error||"save failed");R(null),f(O.item.id),A(O.item),await Fe(),ae(e("newsSaved"))}catch(z){ae(z&&z.message||e("newsSaveFail"),!1)}finally{H("")}}},ue=async z=>{if(window.confirm(e("newsDeleteConfirm"))){H("delete");try{let O=await fetch(Z+"/news/delete",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:z.id})}).then(T=>T.json());if(!O||!O.ok)throw new Error(O&&O.error||"delete failed");v===z.id&&(f(""),A(null)),await Fe(),ae(e("newsDeleted"))}catch{ae(e("newsSaveFail"),!1)}finally{H("")}}},ee=r.filter(z=>z.pinned),Ie=r.filter(z=>!z.pinned),De=y?ad(y.url):"",B="";return(0,a.jsxs)("div",{className:"mc-news",children:[(0,a.jsx)(gl,{toast:te}),(0,a.jsxs)("div",{className:"mc-news-toolbar",children:[(0,a.jsxs)("span",{className:"mc-news-feed-meta",style:{marginLeft:0},children:[s.all," ",e("newsCountUnit")," \xB7 ",s.unread," ",e("newsUnread")]}),(0,a.jsxs)("button",{type:"button",className:"mc-btn me-on",onClick:()=>oe(null),children:["\uFF0B ",e("newsNew")]}),(0,a.jsx)("input",{className:"mc-news-search",type:"text",value:p,onChange:z=>u(z.target.value),placeholder:e("newsSearch"),"aria-label":e("newsSearch")}),(0,a.jsx)("button",{type:"button",className:"mc-chip"+(S===""?" active":""),onClick:()=>L(""),children:e("all")}),i.map(z=>(0,a.jsx)("button",{type:"button",className:"mc-chip"+(S===z?" active":""),onClick:()=>L(O=>O===z?"":z),children:z},z)),(0,a.jsx)("button",{type:"button",className:"mc-chip"+(P?" active":""),onClick:()=>_(z=>!z),children:e("newsUnreadOnly")}),(0,a.jsx)("button",{type:"button",className:"mc-btn",onClick:()=>Fe(),children:e("refresh")})]}),(0,a.jsxs)("div",{className:"mc-news-main",children:[(0,a.jsx)("div",{className:"mc-news-list",children:r.length===0?(0,a.jsxs)("div",{className:"mc-card mc-news-empty",children:[e(p||S||P?"newsNoMatch":"newsEmpty"),!p&&!S&&!P&&(0,a.jsx)("div",{style:{marginTop:10},children:(0,a.jsxs)("button",{type:"button",className:"mc-btn me-on",onClick:()=>oe(null),children:["\uFF0B ",e("newsNew")]})})]}):(0,a.jsxs)(a.Fragment,{children:[ee.length>0&&(0,a.jsxs)("div",{className:"mc-news-group",children:[(0,a.jsxs)("div",{className:"mc-news-group-label",children:["\u{1F4CC} ",e("newsPinned")]}),ee.map(z=>(0,a.jsx)(Rf,{item:z,t:e,active:v===z.id,onOpen:w,onEdit:O=>oe(O),onToggleRead:O=>ke(O.id,!O.read),onDelete:ue},z.id))]}),(0,a.jsx)("div",{className:"mc-news-group",children:Ie.map(z=>{let O=tv(z.date,e),T=O!==B;return B=O,(0,a.jsxs)(m.default.Fragment,{children:[T&&(0,a.jsx)("div",{className:"mc-news-group-label",children:O}),(0,a.jsx)(Rf,{item:z,t:e,active:v===z.id,onOpen:w,onEdit:J=>oe(J),onToggleRead:J=>ke(J.id,!J.read),onDelete:ue})]},z.id)})})]})}),y&&(0,a.jsxs)("aside",{className:"mc-news-reader",children:[(0,a.jsxs)("div",{className:"mc-news-reader-head",children:[(0,a.jsx)("span",{className:"mc-news-cat",children:y.category||e("newsCategoryField")}),y.pinned&&(0,a.jsxs)("span",{className:"mc-news-pin",children:["\u{1F4CC} ",e("newsPinned")]}),(0,a.jsx)("div",{style:{flex:1}}),(0,a.jsx)("button",{type:"button",className:"mc-btn",style:{padding:"2px 8px"},onClick:()=>{A(null),f("")},title:e("close"),children:"\u2715"})]}),(0,a.jsx)("h2",{children:y.title}),(0,a.jsxs)("div",{className:"mc-news-reader-meta",children:[(0,a.jsx)("span",{children:y.date||""}),y.source&&(0,a.jsxs)("span",{children:["\xB7 ",y.source]}),(0,a.jsxs)("span",{children:["\xB7 ",y.read?e("newsRead"):e("newsUnread")]}),(y.tags||[]).map(z=>(0,a.jsxs)("span",{children:["#",z]},z))]}),De&&(0,a.jsx)("div",{style:{marginTop:8},children:(0,a.jsxs)("a",{className:"mc-btn",style:{textDecoration:"none"},href:De,target:"_blank",rel:"noopener noreferrer",children:["\u2197 ",e("newsOpenLink")]})}),(0,a.jsx)("div",{className:"md-doc",style:{marginTop:12},dangerouslySetInnerHTML:{__html:Eo(dd(y.body||"",y.title))}}),(0,a.jsxs)("div",{className:"mc-news-reader-actions",children:[(0,a.jsx)("button",{type:"button",className:"mc-btn",onClick:()=>oe(y),children:e("newsEdit")}),(0,a.jsx)("button",{type:"button",className:"mc-btn",onClick:()=>ke(y.id,!y.read),children:y.read?e("newsMarkUnread"):e("newsMarkRead")}),(0,a.jsx)("button",{type:"button",className:"mc-btn",style:{color:"#f87171"},disabled:W==="delete",onClick:()=>ue(y),children:e("delete")})]})]})]}),D&&(0,a.jsx)("div",{className:"me-overlay",onClick:()=>R(null),children:(0,a.jsxs)("div",{className:"me-dialog",style:{maxWidth:860,width:"94vw",maxHeight:"90vh"},onClick:z=>z.stopPropagation(),children:[(0,a.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10,padding:"14px 18px",borderBottom:"1px solid var(--dsw-alias-border-l1, #e5e7eb)"},children:[(0,a.jsx)("b",{children:D.id?e("newsEdit"):e("newsNew")}),(0,a.jsx)("div",{style:{flex:1}}),(0,a.jsx)("button",{type:"button",className:"mc-btn",onClick:()=>R(null),children:e("close")})]}),(0,a.jsxs)("div",{style:{padding:16,overflow:"auto",maxHeight:"calc(90vh - 60px)"},children:[(0,a.jsxs)("div",{className:"mc-news-form",children:[(0,a.jsxs)("label",{className:"full",children:[(0,a.jsx)("span",{children:e("newsTitleField")}),(0,a.jsx)("input",{className:"mc-news-input",value:D.title,onChange:z=>R(O=>({...O,title:z.target.value})),placeholder:e("newsTitlePlaceholder")})]}),(0,a.jsxs)("label",{children:[(0,a.jsx)("span",{children:e("newsDateField")}),(0,a.jsx)("input",{className:"mc-news-input",type:"date",value:D.date||"",onChange:z=>R(O=>({...O,date:z.target.value}))})]}),(0,a.jsxs)("label",{children:[(0,a.jsx)("span",{children:e("newsCategoryField")}),(0,a.jsx)("input",{className:"mc-news-input",list:"me-news-categories",value:D.category||"",onChange:z=>R(O=>({...O,category:z.target.value}))})]}),(0,a.jsx)("datalist",{id:"me-news-categories",children:i.map(z=>(0,a.jsx)("option",{value:z},z))}),(0,a.jsxs)("label",{children:[(0,a.jsx)("span",{children:e("newsSourceField")}),(0,a.jsx)("input",{className:"mc-news-input",value:D.source||"",onChange:z=>R(O=>({...O,source:z.target.value}))})]}),(0,a.jsxs)("label",{children:[(0,a.jsx)("span",{children:e("newsUrlField")}),(0,a.jsx)("input",{className:"mc-news-input",value:D.url||"",onChange:z=>R(O=>({...O,url:z.target.value})),placeholder:"https://\u2026"})]}),(0,a.jsxs)("label",{children:[(0,a.jsx)("span",{children:e("newsTagsField")}),(0,a.jsx)("input",{className:"mc-news-input",value:D.tags||"",onChange:z=>R(O=>({...O,tags:z.target.value}))})]}),(0,a.jsxs)("label",{style:{flexDirection:"row",alignItems:"center",gap:8,paddingTop:18},children:[(0,a.jsx)("input",{type:"checkbox",checked:!!D.pinned,onChange:z=>R(O=>({...O,pinned:z.target.checked}))}),(0,a.jsx)("span",{children:e("newsPinField")})]}),(0,a.jsxs)("label",{className:"full",children:[(0,a.jsx)("span",{children:e("newsBodyField")}),(0,a.jsx)("textarea",{className:"mc-news-textarea",value:D.body||"",onChange:z=>R(O=>({...O,body:z.target.value})),placeholder:e("newsBodyPlaceholder")})]}),I&&(0,a.jsx)("div",{className:"full mc-news-preview",children:(0,a.jsx)("div",{className:"md-doc",dangerouslySetInnerHTML:{__html:Eo(D.body||"")}})})]}),(0,a.jsxs)("div",{style:{display:"flex",gap:8,justifyContent:"flex-end",marginTop:14},children:[(0,a.jsx)("button",{type:"button",className:"mc-btn",onClick:()=>F(z=>!z),children:e(I?"newsEditBody":"newsPreview")}),(0,a.jsx)("button",{type:"button",className:"mc-btn",onClick:()=>R(null),children:e("cancel")}),(0,a.jsx)("button",{type:"button",className:"mc-btn me-on",disabled:W==="save",onClick:Me,children:e(W==="save"?"newsSaving":"newsSave")})]})]})]})})]})}function pv({t:e,onReload:t,version:n}){let[r,o]=(0,m.useState)([]),[i,l]=(0,m.useState)(""),[s,c]=(0,m.useState)(null),p=(g,S=!0)=>{c({msg:g,ok:S}),setTimeout(()=>c(null),3200)},u=(0,m.useCallback)(async()=>{try{let g=await fetch(`${Z}/recycle/list`).then(S=>S.json());g.ok&&o(g.items||[])}catch{}},[]);(0,m.useEffect)(()=>{u()},[n,u]);let h=async(g,S)=>{let L=(r.find(P=>P.path===S)||{}).title||S;l(g+S);try{let _=await fetch(Z+(g==="restore"?"/recycle/restore":"/recycle/purge")+"?path="+encodeURIComponent(S)),v=await _.json().catch(()=>null);await u(),t&&t(),_.ok&&(!v||v.ok!==!1)?p(e(g==="restore"?"toastRestored":"toastPurged")+"\uFF1A"+L):p(e("toastFailed")+"\uFF1A"+(v&&v.error||"HTTP "+_.status),!1)}catch(P){p(e("toastFailed")+"\uFF1A"+String(P&&P.message||P),!1)}finally{l("")}};return(0,a.jsxs)("div",{className:"mc-admin",style:{display:"flex",flexDirection:"column",overflow:"auto",flex:1,minHeight:0},children:[(0,a.jsx)("style",{children:gn}),(0,a.jsxs)("div",{style:{overflow:"auto",padding:4},children:[(0,a.jsx)(gl,{toast:s}),(0,a.jsxs)("div",{className:"mc-v5-pagehead",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"mc-v5-eyebrow",children:"RECYCLE CENTER"}),(0,a.jsx)("h1",{children:e("tabRecycle")}),(0,a.jsx)("p",{children:e("recyclePageSub")})]}),(0,a.jsx)("span",{className:"mc-v5-pagecount",children:r.length}),(0,a.jsxs)("button",{type:"button",className:"mc-btn",disabled:!!i||r.length===0,title:r.length?"":e("emptyRecycle"),onClick:async()=>{l("purgeAll");try{let g=await fetch(Z+"/recycle/purge-expired?days=0"),S=await g.json().catch(()=>null);await u(),p(g.ok?e("toastPurgedExpired")+(S&&S.purged!=null?"\uFF08"+S.purged+"\uFF09":""):e("toastFailed"),g.ok)}catch(g){p(e("toastFailed")+"\uFF1A"+String(g&&g.message||g),!1)}finally{l("")}},children:["\u{1F5D1} ",e("emptyRecycle")]})]}),(0,a.jsx)("div",{className:"mc-v5-recycle-hint",children:e("recycleHint")}),r.length?(0,a.jsx)("div",{className:"mc-card mc-v5-recycle",children:r.map(g=>{let S=Bt[g.kind]||"#6B7280";return(0,a.jsxs)("div",{className:"mc-v5-recycle-row",children:[(0,a.jsx)("span",{className:"mc-v5-recycle-tile",style:{color:S,background:S+"18",borderColor:S+"38"},children:Nr[g.kind]||"\u{1F4CE}"}),(0,a.jsxs)("div",{className:"mc-v5-recycle-copy",children:[(0,a.jsx)("b",{children:g.title}),(0,a.jsxs)("span",{children:[e(Et[g.kind]||"kindKnowledge")," \xB7 ",e("deletedAt")," ",sl(g.deletedAt)||"-"]})]}),(0,a.jsxs)("div",{className:"mc-v5-recycle-actions",children:[(0,a.jsx)("button",{type:"button",className:"mc-btn",disabled:!!i,onClick:()=>h("restore",g.path),children:e("restore")}),(0,a.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,a.jsxs)("div",{className:"mc-card mc-v5-empty-state",children:["\u{1F5D1}\uFE0F ",(0,a.jsx)("b",{children:e("emptyRecycle")}),(0,a.jsx)("span",{children:e("recycleEmptyHint").split("{days}").join("30")})]})]})]})}var dd=(e,t)=>{let n=String(e||"").split(/\r?\n/),r=i=>String(i||"").replace(/[#*_`]/g,"").replace(/[\s::\-–—·]/g,"").trim(),o=r(t);for(;;){let i=0;for(;i<n.length&&!n[i].trim();)i++;let l=/^#{1,2}\s+(.+?)\s*$/.exec(n[i]||"");if(!l||r(l[1])!==o)break;for(n.splice(i,1);i<n.length&&!n[i].trim();)n.splice(i,1)}return n.join(`
|
|
966
|
-
`)},mv=e=>{let t=[],n=!1,r=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;r++;let s=l[1].length;s<=3&&t.push({id:"md-h-"+r,level:s,text:l[2].replace(/[#*_`>\[\]()]/g,"").replace(/\s+/g," ").trim()})}return t},ud=e=>{let t=String(e.summary||"").replace(/[#>*_`]/g," ").replace(/\s+/g," ").trim();return t.length>150?t.slice(0,148)+"\u2026":t},Wf=e=>{let t=String(e.summary||"").toLowerCase();return/决策|结论|决定|decision/.test(t)?"insightDecision":/根因|原因|root cause/.test(t)?"insightRoot":/教训|避免|lesson/.test(t)?"insightLesson":"insightSummary"},Uf=({n:e=0,color:t="#ff9a72",size:n=30})=>{let r=Math.max(2,Math.min(6,Number(e)||2)),o=Array.from({length:r},(i,l)=>{let s=-Math.PI/2+l*Math.PI*2/r,c=l%2?13:16;return[20+Math.cos(s)*c,20+Math.sin(s)*c]});return(0,a.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,a.jsx)("line",{x1:"20",y1:"20",x2:i,y2:l,stroke:t,strokeOpacity:".35"},"l"+s)),o.map(([i,l],s)=>(0,a.jsx)("circle",{cx:i,cy:l,r:s%2?2.2:1.8,fill:t,fillOpacity:s%2?.8:.55},"c"+s)),(0,a.jsx)("circle",{cx:"20",cy:"20",r:"2.6",fill:t})]})},fv=({card:e,t,onOpen:n,query:r,onDelete:o,onTagClick:i,pinned:l,onPin:s,onCore:c,links:p})=>{let u=Bt[e.kind]||Bt.other,h=Number(p??e.links??e.weight??0),g=Xc(e);return(0,a.jsxs)("article",{className:`mc-cardrow mc-card mc-v5-card${l?" pinned":""}${e.kind==="core"?" core":""}`,onClick:()=>n(e),children:[(0,a.jsxs)("div",{className:"mc-v5-card-top",children:[(0,a.jsx)("span",{className:"mc-v5-card-tile",style:{color:u,background:u+"18",borderColor:u+"38"},children:Nr[e.kind]||"\u{1F4CE}"}),(0,a.jsx)("span",{className:"mc-v5-card-kind-name",children:e.kind==="core"?"\u2B50 "+t("kindCore"):t(Et[e.kind]||"kindKnowledge")}),e.kind==="core"&&(0,a.jsxs)("span",{className:"mc-v5-core-badge",children:["\u2B50 ",t("kindCore")]}),e.status==="pending"&&(0,a.jsxs)("span",{className:"mc-v5-card-status pending",children:["\u23F3 ",t("statusPending")]}),e.status==="rejected"&&(0,a.jsxs)("span",{className:"mc-v5-card-status rejected",children:["\u26D4 ",t("statusRejected")]}),Nv(e.updated)&&(0,a.jsx)("span",{className:"mc-new",children:t("newBadge")}),(0,a.jsx)("span",{className:"spacer",style:{flex:1}}),(0,a.jsx)("span",{className:"mc-v5-card-time",children:Qn(e.updated)}),c&&e.status!=="pending"&&e.status!=="rejected"&&(0,a.jsx)("button",{type:"button",className:`mc-v5-core${e.kind==="core"?" on":""}`,title:t(e.kind==="core"?"unsetCore":"setCore"),onClick:S=>{S.stopPropagation(),c(e.path,e.kind==="core"?"knowledge":"core")},children:e.kind==="core"?"\u2B50 "+t("coreShort"):"\u2606 "+t("setCoreShort")}),s&&(0,a.jsx)("button",{type:"button",className:`mc-v5-pin${l?" on":""}`,title:t(l?"unpinCard":"pinCard"),"aria-label":t(l?"unpinCard":"pinCard"),onClick:S=>{S.stopPropagation(),s(e.path)},children:"\u{1F4CC}"})]}),(0,a.jsx)("h4",{className:"mc-v5-card-title",children:r?ed(e.title,r):e.title}),(0,a.jsxs)("div",{className:"mc-v5-card-insight",children:[(0,a.jsx)("span",{className:"mc-v5-insight-k",children:t(Wf(e))}),(0,a.jsx)("span",{className:"mc-v5-card-lead",children:r?ed(e.summary||"",r):ud(e)})]}),r&&(()=>{let S=rf(e.body||"",r);return S?(0,a.jsx)("p",{className:"mc-snippet",children:ed(S,r)}):null})(),Xc(e).length>0&&(0,a.jsxs)("div",{className:"mc-tags mc-v5-card-tags",children:[Xc(e).slice(0,2).map(S=>(0,a.jsxs)("button",{type:"button",className:"mc-tag mc-tag-click",title:S,onClick:L=>{L.stopPropagation(),i&&i(S)},children:["#",S]},S)),g.length>2&&(0,a.jsxs)("span",{className:"mc-tag more",children:["+",g.length-2]})]}),(0,a.jsxs)("footer",{className:"mc-v5-card-foot",children:[h>0&&(0,a.jsxs)("span",{className:"mc-v5-conn",children:[(0,a.jsx)(Uf,{n:h,color:u})," ",(0,a.jsx)("b",{children:h})," ",t("links")]}),(0,a.jsxs)("span",{className:"mc-v5-author",children:["\u{1F916} ",Cr(e.submittedBy)]}),(0,a.jsx)("span",{className:"spacer",style:{flex:1}}),(0,a.jsx)("button",{type:"button",className:"mc-card-del",title:t("delete"),onClick:S=>{S.stopPropagation(),window.confirm(t("deleteConfirm"))&&o&&o(e.path)},children:"\u{1F5D1}"})]})]})};function gv({t:e,tab:t,onReload:n,version:r}){let[o,i]=(0,m.useState)(null),[l,s]=(0,m.useState)(""),[c,p]=(0,m.useState)(null),[u,h]=(0,m.useState)(null),[g,S]=(0,m.useState)(null),[L,P]=(0,m.useState)(null),[_,v]=(0,m.useState)(null),[f,y]=(0,m.useState)(null),A=(0,m.useCallback)(async()=>{W("align");try{let k=await fetch(Z+"/align").then(Q=>Q.json());k&&k.findings?y(k):notify(e("alignFail"),!1)}catch{notify(e("alignFail"),!1)}finally{W("")}},[e]),D=async()=>{if(window.confirm(e("alignFixConfirm"))){W("alignfix");try{let k=await fetch(Z+"/setup-run",{method:"POST",headers:{"Content-Type":"application/json"},body:"{}"}).then(Q=>Q.json());k&&k.ok?(notify(e("alignFixed")),await A()):notify(e("alignFail"),!1)}catch{notify(e("alignFail"),!1)}finally{W("")}}},[R,I]=(0,m.useState)([]),[F,W]=(0,m.useState)(""),[H,te]=(0,m.useState)(!1),ye=(0,m.useCallback)(async()=>{if(!(!c||!c.merge||!c.merge.length)&&window.confirm(e("mergeAllConfirm"))){W("merge");try{let k={},Q=se=>k[se]===void 0?se:k[se]=Q(k[se]),q=(se,xe)=>{k[Q(se)]=Q(xe)},ge=new Set;for(let se of c.merge)ge.add(se.a.path),ge.add(se.b.path),q(se.a.path,se.b.path);let j={};for(let se of ge){let xe=Q(se);(j[xe]=j[xe]||[]).push(se)}let U=0;for(let se of Object.values(j)){if(se.length<2)continue;(await fetch(`${Z}/merge?paths=${encodeURIComponent(se.join(","))}`).then(at=>at.json())).ok&&U++}await ae(),n&&n()}catch{}W("")}},[c,ae,n,e]);async function ae(){try{let k=await Promise.all([fetch(`${Z}/stats`),fetch(`${Z}/budget`),fetch(`${Z}/capture-log`),fetch(`${Z}/cards?status=all&limit=30&agent=${Do}`),fetch(`${Z}/overview`),fetch(`${Z}/ledger?days=7`)]),[Q,q,ge,j,U,se]=await Promise.all(k.map(xe=>xe.json()));Q&&Q.ok&&i(Q),q&&q.ok&&h(q),ge&&ge.ok&&S(ge),j&&j.ok&&I(j.cards||[]),U&&U.ok&&P({db:U.db,backups:U.backups,total:U.total,version:U.version,degraded:U.degraded===!0}),v(se&&se.ok?se:{ok:!1,error:se&&se.error||""}),s(!Q||!Q.ok?e("adminLoadFail"):"")}catch{s(e("adminLoadFail"))}}let Fe=(0,m.useCallback)(async()=>{W("scan");try{let k=await fetch(`${Z}/optimize`).then(Q=>Q.json());k.ok&&p(k)}catch{s(e("adminLoadFail"))}finally{W("")}},[e]),[w,ke]=(0,m.useState)(null),oe=(0,m.useCallback)(async()=>{W("refine");try{let k=await fetch(`${Z}/refine-scan`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({limit:8})}).then(Q=>Q.json());k&&k.ok?ke(k):notify(k&&k.error||e("refineFail"),!1)}catch{notify(e("refineFail"),!1)}finally{W("")}},[e]),Me=async(k,Q)=>{if(!(Q==="merge"&&!window.confirm(e("mergeConfirm")))){W("refineapply");try{let q=await fetch(`${Z}/refine-apply`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({a:k.a.path,b:k.b.path,action:Q,relation:k.relation})}).then(ge=>ge.json());q&&q.ok?(notify(e("refineApplied")),ke(ge=>ge&&{...ge,findings:(ge.findings||[]).filter(j=>!(j.a.path===k.a.path&&j.b.path===k.b.path))}),await ae(),n&&n()):notify(q&&q.error||e("refineFail"),!1)}catch{notify(e("refineFail"),!1)}finally{W("")}}},[ue,ee]=(0,m.useState)(null),Ie=(0,m.useCallback)(async()=>{W("junk");try{let k=await fetch(`${Z}/refine-junk`).then(Q=>Q.json());k&&k.ok?ee(k.items||[]):notify(e("junkFail"),!1)}catch{notify(e("junkFail"),!1)}finally{W("")}},[e]),De=async k=>{if(k.length&&window.confirm(e("junkRecycleAllConfirm"))){W("junkpurge");try{let Q=await fetch(`${Z}/refine-junk-purge`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({paths:k})}).then(q=>q.json());Q&&Q.removed?(notify(e("junkDone")+"\uFF1A"+Q.removed.length+(Q.failed?.length?"\uFF08\u5931\u8D25 "+Q.failed.length+"\uFF09":"")),ee(q=>q&&q.filter(ge=>!Q.removed.includes(ge.path))),await ae(),n&&n()):notify(e("junkFail"),!1)}catch{notify(e("junkFail"),!1)}finally{W("")}}},[B,z]=(0,m.useState)(null),O=(0,m.useCallback)(async()=>{W("goals");try{let k=await fetch(Z+"/refine-goals",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({limit:30})}).then(Q=>Q.json());k&&k.ok?z(k):notify(k&&k.error||e("goalFail"),!1)}catch{notify(e("goalFail"),!1)}finally{W("")}},[e]),T=async k=>{W("goalskeep");try{let Q=await fetch(Z+"/refine-goals-keep",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({paths:k.members.map(q=>q.path)})}).then(q=>q.json());Q&&Q.ok?(notify(e("goalDone")),z(q=>q&&{...q,clusters:(q.clusters||[]).filter(ge=>ge.goal!==k.goal)})):notify(e("goalFail"),!1)}catch{notify(e("goalFail"),!1)}finally{W("")}},J=async k=>{if(window.confirm(e("mergeConfirm"))){W("goalsmerge");try{let Q=await fetch(Z+"/merge?paths="+encodeURIComponent(k.members.map(q=>q.path).join(","))).then(q=>q.json());Q&&Q.ok?(notify(e("goalMerged")),z(q=>q&&{...q,clusters:(q.clusters||[]).filter(ge=>ge.goal!==k.goal)}),await ae(),n&&n()):notify(e("mergeFail"),!1)}catch{notify(e("mergeFail"),!1)}finally{W("")}}};(0,m.useEffect)(()=>{ae()},[r]);let me=async(k,Q)=>{if(window.confirm(e("mergeConfirm")))try{(await fetch(`${Z}/merge?paths=${encodeURIComponent(k+","+Q)}`).then(ge=>ge.json())).ok&&(await ae(),n&&n())}catch{}},Ae=async k=>{if(window.confirm(e("deleteConfirm")))try{(await fetch(`${Z}/delete?path=${encodeURIComponent(k)}`).then(q=>q.json())).ok&&(await ae(),n&&n())}catch{}},le=Ff,ve=({title:k,kind:Q,updated:q,path:ge})=>(0,a.jsxs)("li",{style:{display:"flex",alignItems:"center",gap:8,padding:"3px 4px",borderBottom:"1px solid rgba(127,127,127,0.12)"},children:[(0,a.jsx)("span",{className:"mc-kind",style:{background:Dn.colors[Q]||"#666"}}),(0,a.jsx)("span",{style:{flex:1,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:k}),(0,a.jsx)("span",{style:{opacity:.55,fontSize:11},children:Qn(q)}),(0,a.jsxs)("button",{type:"button",className:"mc-btn",style:{padding:"2px 8px"},onClick:()=>Ae(ge),children:[e("delete")," \u2715"]})]});return(0,a.jsxs)("div",{className:"mc-admin",style:{display:"flex",flexDirection:"column",overflow:"auto",flex:1,minHeight:0},children:[(0,a.jsx)("style",{children:gn}),(0,a.jsxs)("div",{style:{overflow:"auto"},children:[l&&(0,a.jsxs)("div",{className:"mc-card",style:{borderLeft:"4px solid #ef4444",background:"rgba(239,68,68,0.08)",padding:"12px 14px",marginBottom:10},children:[(0,a.jsxs)("div",{style:{fontSize:13,color:"#b91c1c",fontWeight:600,marginBottom:6},children:["\u26A0 ",l]}),(0,a.jsxs)("button",{type:"button",className:"mc-btn",onClick:ae,children:["\u21BB ",e("retry")]})]}),t==="stats"&&(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"mc-v5-pagehead",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"mc-v5-eyebrow",children:"SYSTEM STATUS"}),(0,a.jsx)("h1",{children:e("runtimeTitle")}),(0,a.jsx)("p",{children:e("runtimeSub")})]}),(0,a.jsx)("span",{className:"mc-v5-pagecount",children:L?`${L.total||0} ${e("cardsUnit")}`:""}),(0,a.jsxs)("button",{type:"button",className:"mc-btn",onClick:()=>ae(),children:["\u21BB ",e("refresh")]})]}),(0,a.jsxs)("div",{className:"mc-v5-statusgrid",children:[(0,a.jsxs)("div",{className:"mc-v5-statuscard",children:[(0,a.jsx)("span",{className:"mc-v5-status-ico",children:"\u{1F5C4}\uFE0F"}),(0,a.jsx)("b",{children:L?L.total||0:"\u2014"}),(0,a.jsx)("span",{children:e("dbTitle")}),(0,a.jsx)("small",{children:L?.db?.journalMode||L?.db?.journal_mode||"SQLite"})]}),(0,a.jsxs)("div",{className:"mc-v5-statuscard",children:[(0,a.jsx)("span",{className:"mc-v5-status-ico",children:"\u{1F4BE}"}),(0,a.jsx)("b",{children:L?.backups?.count??"\u2014"}),(0,a.jsx)("span",{children:e("backupTitle")}),(0,a.jsx)("small",{children:L?.backups?.newestAt?`${Math.max(0,Math.floor((Date.now()-Number(L.backups.newestAt))/864e5))} \u5929\u524D`:"\u2014"})]}),(0,a.jsxs)("div",{className:"mc-v5-statuscard",children:[(0,a.jsx)("span",{className:"mc-v5-status-ico",children:"\u2728"}),(0,a.jsx)("b",{children:g?.available?g.health?.ok?"\u6B63\u5E38":"\u5F02\u5E38":"\u2014"}),(0,a.jsx)("span",{children:e("captureTitle")}),(0,a.jsx)("small",{children:g?.health?.lastAt?Qn(new Date(g.health.lastAt).toISOString()):"\u2014"})]}),(0,a.jsxs)("div",{className:"mc-v5-statuscard",children:[(0,a.jsx)("span",{className:"mc-v5-status-ico",children:"\u{1F3F7}\uFE0F"}),(0,a.jsx)("b",{children:L?.version||"\u2014"}),(0,a.jsx)("span",{children:e("versionTitle")}),(0,a.jsx)("small",{children:e("v5Local")})]})]}),(0,a.jsxs)("div",{className:"mc-card",style:{marginBottom:10},children:[(0,a.jsxs)("div",{style:{display:"flex",gap:10,alignItems:"center",flexWrap:"wrap"},children:[(0,a.jsxs)("b",{style:{fontSize:12},children:["\u{1FA7A} ",e("healthTitle")]}),(0,a.jsx)("span",{style:{fontSize:11,opacity:.6},children:e("healthHint")}),(0,a.jsx)("div",{style:{flex:1}}),(0,a.jsxs)("button",{type:"button",className:"mc-btn",onClick:()=>ae(),children:["\u21BB ",e("refresh")]})]}),L?(()=>{let k=L.db||{},Q=k.writable!==!1&&!k.corrupt,q=L.backups||{count:0,newestAt:0},ge=q.newestAt?Math.floor((Date.now()-Number(q.newestAt))/864e5):-1,j=q.count?ge>7?"warn":"ok":"bad",U=g&&g.available?g.health:null,se=U?U.ok?"ok":"warn":"none",xe=f&&f.findings?f.onDisk&&f.residentServed===f.onDisk&&f.hostVersion===f.onDisk?"ok":"warn":"none",at={ok:["\u2705","#10b981"],warn:["\u26A0","#f59e0b"],bad:["\u2717","#ef4444"],none:["\u2022","inherit"]},et=[{label:e("healthDb"),level:Q?"ok":"bad",text:Q?"journal="+(k.journalMode||"?")+(k.checkedAt?" \xB7 "+new Date(k.checkedAt).toLocaleString():""):(k.error||e("healthDbBad"))+" \u2192 dsh-memory doctor"},{label:e("healthBackups"),level:j,text:q.count?(ge<=0?e("healthBackupToday").replace("{n}",String(q.count)):e("healthBackupAge").replace("{n}",String(q.count)).replace("{d}",String(ge)))+(q.files&&q.files.length?" \xB7 "+q.files[q.files.length-1]:""):e("healthNoBackups")},{label:e("healthCapture"),level:se,text:U?U.ok?e("healthCapOk"):e("healthCapFail")+"\uFF1A"+(U.reason||""):e("healthNoRecords")},{label:e("healthVersion"),level:xe,text:xe==="none"?e("healthRunAlign"):e("vcOnDisk")+" v"+(f.onDisk||"?")+" \xB7 "+e("vcResident")+" v"+(f.residentServed||"?")+" \xB7 "+e("vcLoaded")+" v"+(f.hostVersion||"?"),action:xe==="none"?{label:e("alignRun"),run:A}:null}];return(0,a.jsx)("div",{style:{marginTop:6},children:et.map(pt=>(0,a.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,a.jsx)("span",{style:{width:14,flex:"0 0 auto",color:at[pt.level][1]},children:at[pt.level][0]}),(0,a.jsx)("b",{style:{minWidth:62,flex:"0 0 auto",opacity:.85},children:pt.label}),(0,a.jsx)("span",{style:{opacity:.82,wordBreak:"break-word"},children:pt.text}),pt.action&&(0,a.jsx)("button",{type:"button",className:"mc-btn",style:{marginLeft:6,padding:"0 6px",fontSize:11},disabled:!!F,onClick:pt.action.run,children:pt.action.label})]},pt.label))})})():(0,a.jsx)("div",{style:{opacity:.6,fontSize:12,padding:"8px 0"},children:e("loading")})]}),(0,a.jsxs)("div",{className:"mc-card",style:{marginBottom:10},children:[(0,a.jsxs)("div",{style:{display:"flex",gap:10,alignItems:"center",flexWrap:"wrap"},children:[(0,a.jsxs)("b",{style:{fontSize:12},children:["\u{1F9FE} ",e("ledgerTitle")]}),(0,a.jsx)("span",{style:{fontSize:11,opacity:.6},children:e("ledgerHint")}),(0,a.jsx)("div",{style:{flex:1}}),(0,a.jsxs)("button",{type:"button",className:"mc-btn",onClick:()=>ae(),children:["\u21BB ",e("refresh")]})]}),_?_.ok===!1?(0,a.jsxs)("div",{style:{color:"#f59e0b",fontSize:12,padding:"8px 0",lineHeight:1.7},children:["\u26A0 ",/未知接口|404|not found/i.test(String(_.error||""))?e("ledgerNeedRestart"):_.error||e("adminLoadFail")]}):_.totals.recalls+_.totals.captures===0?(0,a.jsx)("div",{style:{opacity:.6,fontSize:12,padding:"8px 0"},children:e("ledgerNoData")}):(0,a.jsxs)("div",{style:{marginTop:8},children:[(0,a.jsx)("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(160px, 1fr))",gap:8},children:[{k:e("ledgerRecalls"),v:String(_.totals.recalls),s:e("ledgerInjected")+" "+Number(_.totals.injectedChars||0).toLocaleString()+" "+e("ledgerChars")},{k:e("ledgerCaptures"),v:String(_.totals.captures),s:e("ledgerLlmCalls")+" "+_.totals.llmCalls+(_.totals.captureFail?" \xB7 \u2717 "+_.totals.captureFail:"")},{k:e("ledgerEstimate"),v:"\u2248 "+Number(_.totals.estTokens||0).toLocaleString(),s:e("ledgerEstimateHint")},{k:e("ledgerUseful"),v:_.feedback.rate==null?"\u2014":Math.round(_.feedback.rate*100)+"%",s:e("ledgerUsefulHint")}].map(k=>(0,a.jsxs)("div",{style:{border:"1px solid rgba(127,127,127,.16)",borderRadius:10,padding:"8px 10px"},children:[(0,a.jsx)("div",{style:{fontSize:11,opacity:.6},children:k.k}),(0,a.jsx)("div",{style:{fontSize:18,fontWeight:700,lineHeight:1.35},children:k.v}),(0,a.jsx)("div",{style:{fontSize:10.5,opacity:.55,lineHeight:1.5},children:k.s})]},k.k))}),(0,a.jsx)("div",{style:{fontSize:11,opacity:.55,marginTop:8,lineHeight:1.7},children:e("ledgerFormula")})]}):(0,a.jsx)("div",{style:{opacity:.6,fontSize:12,padding:"8px 0"},children:e("loading")})]}),(0,a.jsxs)("div",{className:"mc-card",style:{marginBottom:10},children:[(0,a.jsxs)("div",{style:{display:"flex",gap:10,alignItems:"center",flexWrap:"wrap"},children:[(0,a.jsxs)("b",{style:{fontSize:12},children:["\u{1F527} ",e("alignTitle")]}),(0,a.jsx)("button",{type:"button",className:"mc-btn",disabled:!!F,onClick:A,children:e(F==="align"?"exporting":"alignRun")}),f&&f.counts&&f.counts.fix>0&&(0,a.jsx)("button",{type:"button",className:"mc-btn me-on",disabled:!!F,onClick:D,children:e(F==="alignfix"?"exporting":"alignFix")}),(0,a.jsx)("span",{style:{fontSize:11,opacity:.6},children:e("alignHint")})]}),f&&f.findings?(0,a.jsxs)("div",{style:{marginTop:6},children:[(0,a.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,a.jsx)("ul",{style:{margin:0,padding:0,listStyle:"none"},children:f.findings.map((k,Q)=>(0,a.jsxs)("li",{style:{padding:"4px 2px",borderTop:Q?"1px solid rgba(127,127,127,0.12)":"none",fontSize:12},children:[(0,a.jsx)("span",{style:{fontWeight:700,color:k.level==="fix"?"#ef4444":k.level==="warn"?"#f59e0b":"#10b981"},children:k.level==="fix"?"\u2717":k.level==="warn"?"\u26A0":"\u2713"})," ",(0,a.jsx)("span",{children:k.title}),k.detail?(0,a.jsx)("div",{style:{opacity:.75,marginLeft:14},children:k.detail}):null,k.command?(0,a.jsxs)("div",{style:{marginLeft:14,opacity:.9},children:["\u2192 ",(0,a.jsx)("code",{children:k.command})]}):null]},Q))})]}):(0,a.jsx)("div",{style:{opacity:.6,fontSize:12,marginTop:4},children:e("alignIdle")})]}),(0,a.jsxs)("div",{className:"mc-card",style:{marginBottom:10},children:[(0,a.jsxs)("div",{style:{display:"flex",gap:10,alignItems:"center",flexWrap:"wrap"},children:[(0,a.jsxs)("b",{style:{fontSize:12},children:["\u{1FAB5} ",e("captureLog")]}),(0,a.jsx)("span",{style:{fontSize:11,opacity:.6},children:e("captureLogHint")}),(0,a.jsx)("div",{style:{flex:1}}),(0,a.jsxs)("button",{type:"button",className:"mc-btn",onClick:()=>ae(),children:["\u21BB ",e("refresh")]})]}),g?g.available===!1?(0,a.jsx)("div",{style:{opacity:.6,fontSize:12,padding:"8px 0"},children:e("captureLogUnavailable")}):(g.entries||[]).length===0?(0,a.jsx)("div",{style:{opacity:.6,fontSize:12,padding:"8px 0"},children:e("captureLogEmpty")}):(0,a.jsx)("div",{style:{maxHeight:260,overflow:"auto",marginTop:8},children:(0,a.jsx)("table",{style:{width:"100%",borderCollapse:"collapse",fontSize:12},children:(0,a.jsx)("tbody",{children:(g.entries||[]).map((k,Q)=>{let q=Yy[k.action]||["\u2022","inherit"];return(0,a.jsxs)("tr",{style:{borderBottom:"1px solid rgba(127,127,127,0.12)"},children:[(0,a.jsx)("td",{style:{padding:"4px 6px",opacity:.55,whiteSpace:"nowrap",fontVariantNumeric:"tabular-nums"},children:Qn(k.time?new Date(k.time).toISOString():"")}),(0,a.jsxs)("td",{style:{padding:"4px 6px",whiteSpace:"nowrap",color:q[1],fontWeight:600},children:[q[0]," ",k.action]}),(0,a.jsx)("td",{style:{padding:"4px 6px"},children:k.reason||""}),(0,a.jsx)("td",{style:{padding:"4px 6px",opacity:.55,maxWidth:220,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},title:k.preview||"",children:k.preview||""})]},Q)})})})}):(0,a.jsx)("div",{style:{opacity:.6,fontSize:12,padding:"8px 0"},children:e("loading")})]}),(0,a.jsxs)("div",{className:"mc-card",style:{marginBottom:10},children:[(0,a.jsxs)("div",{style:{fontSize:12,fontWeight:700,marginBottom:6},children:["\u{1F916} ",e("captureAgentCards"),"\uFF08",R.length,"\uFF09"]}),R.length?(0,a.jsx)("ul",{style:{margin:0,padding:0,listStyle:"none"},children:R.map(k=>(0,a.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,a.jsx)("span",{className:"mc-kind",style:{background:Bt[k.kind]||Bt.other}}),(0,a.jsx)("span",{style:{flex:1,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:k.title}),k.status==="pending"&&(0,a.jsxs)("span",{className:"mc-status",style:{background:"#f59e0b"},children:["\u23F3 ",e("statusPending")]}),(0,a.jsx)("span",{style:{opacity:.55,fontSize:11},children:Qn(k.updated)})]},k.path))}):(0,a.jsx)("div",{style:{opacity:.6,fontSize:12},children:e("noCards")})]}),o&&(0,a.jsxs)(a.Fragment,{children:[o.trend&&o.trend.length>0&&(()=>{let k=o.trend,Q=Math.max(...k.map(U=>U.count),1),q=260,ge=50,j=q/k.length;return(0,a.jsxs)("div",{className:"mc-card",style:{marginBottom:10,padding:"10px 14px"},children:[(0,a.jsxs)("div",{style:{fontSize:11,opacity:.6,marginBottom:4},children:["\u{1F4C8} ",e("trendLabel")]}),(0,a.jsx)("svg",{width:q,height:ge,style:{display:"block",width:"100%",height:50},children:k.map((U,se)=>{let xe=Math.round(U.count/Q*(ge-4));return(0,a.jsx)("rect",{x:se*j+1,y:ge-xe,width:Math.max(j-2,2),height:xe,rx:1.5,fill:U.count>0?"var(--dsw-alias-accent, #3b82f6)":"var(--dsw-alias-border-l1, #e5e7eb)",opacity:U.count>0?.85:.35},U.date)})})]})})(),(0,a.jsxs)("div",{className:"mc-stats",children:[(0,a.jsxs)("div",{className:"mc-stat mc-card",children:[(0,a.jsx)("b",{children:o.total}),(0,a.jsx)("span",{children:e("total")})]}),(0,a.jsxs)("div",{className:"mc-stat mc-card",children:[(0,a.jsx)("b",{children:o.today}),(0,a.jsx)("span",{children:e("todayAdd")})]}),(0,a.jsxs)("div",{className:"mc-stat mc-card",children:[(0,a.jsx)("b",{children:o.week}),(0,a.jsx)("span",{children:e("weekAdd")})]}),(0,a.jsxs)("div",{className:"mc-stat mc-card",children:[(0,a.jsx)("b",{children:o.tags}),(0,a.jsx)("span",{children:e("tags")})]})]}),(0,a.jsxs)("div",{className:"mc-card",style:{marginBottom:10},children:[(0,a.jsx)("div",{style:{fontSize:12,fontWeight:700,marginBottom:6},children:e("byKind")}),(0,a.jsx)("div",{style:{display:"flex",gap:10,flexWrap:"wrap"},children:le.map(k=>(0,a.jsxs)("span",{style:{fontSize:12},children:[(0,a.jsx)("span",{className:"mc-kind",style:{background:Dn.colors[k]||"#666"}}),e(Et[k]),": ",o.byKind?.[k]||0]},k))})]}),u&&(u.budgetChars||u.recallLimit||u.embedding)&&(0,a.jsxs)("div",{className:"mc-card",style:{marginBottom:10,fontSize:12},children:[(0,a.jsx)("b",{children:e("budgetLabel")}),"\uFF1A",e("budgetChars")," ",(0,a.jsx)("b",{children:u.budgetChars||8e4})," \xB7 ",e("recallLimitLabel")," ",(0,a.jsx)("b",{children:u.recallLimit||5})," \xB7 ",e("embeddingLabel")," ",u.embedding?"ON":"OFF"]}),(0,a.jsxs)("div",{className:"mc-card",children:[(0,a.jsxs)("div",{style:{fontSize:12,fontWeight:700,marginBottom:6},children:[e("todayList"),"\uFF08",o.todayCards?.length||0,"\uFF09"]}),o.todayCards?.length?(0,a.jsx)("ul",{style:{margin:0,padding:0,listStyle:"none"},children:o.todayCards.map(k=>(0,a.jsx)(ve,{title:k.title,kind:k.kind,updated:k.updated,path:k.path},k.path))}):(0,a.jsx)("div",{style:{opacity:.6,fontSize:12},children:e("noOptimize")})]})]})]}),t==="optimize"&&(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"mc-card mc-audit-batchcard",style:{marginBottom:10,display:"flex",gap:10,alignItems:"center",flexWrap:"wrap"},children:[(0,a.jsx)("b",{style:{fontSize:12},children:e("organizeTitle")}),(0,a.jsx)("div",{style:{flex:1}}),(0,a.jsx)("button",{type:"button",className:"mc-btn",disabled:!!F,onClick:Fe,children:F==="scan"?e("exporting"):"\u{1F50D} "+e("scanAndOrganize")}),c&&c.merge?.length>0&&(0,a.jsx)("button",{type:"button",className:"mc-btn me-on",disabled:!!F,onClick:async()=>{if(window.confirm(e("oneClickOptimizeConfirm"))){W("oneclick");try{let k=JSON.stringify({cleanupStale:H}),q=await(await fetch(`${Z}/optimize-execute`,{method:"POST",headers:{"Content-Type":"application/json"},body:k})).json();q&&q.ok?(notify(`${e("oneClickOptimizeDone")}\uFF1A${q.plan.merged} ${e("optimizedMerged")}${H?` \xB7 ${q.plan.staleDeleted} ${e("optimizedStaleDeleted")}`:""}`),await ae(),n&&n(),p(null)):notify(e("mergeFail"),!1)}catch{notify(e("mergeFail"),!1)}finally{W("")}}},children:F==="oneclick"?e("exporting"):"\u26A1 "+e("oneClickOptimize")}),c&&c.merge?.length>0&&(0,a.jsxs)("label",{style:{fontSize:11,opacity:.7,display:"flex",alignItems:"center",gap:4},children:[(0,a.jsx)("input",{type:"checkbox",checked:H,onChange:k=>te(k.target.checked)}),e("oneClickAlsoStale")]})]}),!c&&(0,a.jsx)("div",{style:{opacity:.6,fontSize:12,marginBottom:10},children:e("scanHint")}),c&&(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("div",{className:"mc-card",style:{marginBottom:10,display:"flex",flexDirection:"column",gap:8},children:[(0,a.jsxs)("div",{style:{display:"flex",gap:10,alignItems:"center"},children:[(0,a.jsx)("b",{style:{fontSize:12},children:e("mergePairs")}),(0,a.jsx)("div",{className:"spacer",style:{flex:1}}),c.merge?.length>0&&(0,a.jsx)("button",{type:"button",className:"mc-btn me-on",disabled:!!F,onClick:ye,children:e(F==="merge"?"exporting":"batchMerge")})]}),(0,a.jsx)("div",{style:{fontSize:12,fontWeight:700,marginBottom:6},children:e("mergePairs")}),c.merge?.length?(0,a.jsx)("ul",{style:{margin:"0 0 12px",padding:0,listStyle:"none"},children:c.merge.map((k,Q)=>(0,a.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,a.jsxs)("span",{style:{flex:1,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:[k.a.title," \u21C4 ",k.b.title]}),(0,a.jsxs)("span",{style:{opacity:.6},children:[Math.round(k.sim*100),"%"]}),(0,a.jsx)("button",{type:"button",className:"mc-btn",style:{padding:"2px 8px"},onClick:()=>me(k.a.path,k.b.path),children:e("mergeNow")})]},Q))}):(0,a.jsx)("div",{style:{opacity:.6,fontSize:12,marginBottom:12},children:e("noOptimize")}),(0,a.jsxs)("div",{style:{fontSize:12,fontWeight:700,marginBottom:6},children:[e("staleCards"),"\uFF08",c.stale?.length||0,"\uFF09"]}),c.stale?.length>0&&(0,a.jsx)("div",{style:{marginBottom:6},children:(0,a.jsx)("button",{type:"button",className:"mc-btn",style:{color:"#f87171"},disabled:!!F,onClick:async()=>{if(!window.confirm(e("deleteConfirm")))return;W("clean");let k=0;for(let Q of c.stale)try{await fetch(`${Z}/delete?path=${encodeURIComponent(Q.path)}`),k++}catch{}W(""),notify(`${k} ${e("deletedStale")}`),await ae(),n&&n()},children:e("cleanStale")})}),c.stale?.length?(0,a.jsx)("ul",{style:{margin:0,padding:0,listStyle:"none"},children:c.stale.map(k=>(0,a.jsx)(ve,{title:k.title,kind:"other",updated:k.updated,path:k.path},k.path))}):(0,a.jsx)("div",{style:{opacity:.6,fontSize:12},children:e("noOptimize")})]})}),(0,a.jsxs)("div",{className:"mc-card",style:{marginBottom:10},children:[(0,a.jsxs)("div",{style:{display:"flex",gap:10,alignItems:"center",flexWrap:"wrap",marginBottom:6},children:[(0,a.jsxs)("b",{style:{fontSize:12},children:["\u{1F9ED} ",e("refineTitle")]}),(0,a.jsx)("button",{type:"button",className:"mc-btn",disabled:!!F,onClick:oe,children:e(F==="refine"?"exporting":"refineScan")}),(0,a.jsx)("span",{style:{opacity:.6,fontSize:11},children:e("refineHint")})]}),w?.findings?.length?w.findings.map((k,Q)=>(0,a.jsxs)("div",{style:{borderTop:Q?"1px solid rgba(127,127,127,0.14)":"none",padding:"7px 2px"},children:[(0,a.jsxs)("div",{style:{fontSize:12,marginBottom:3},children:[(0,a.jsx)("span",{style:{fontWeight:700,color:k.relation==="conflict"?"#ef4444":k.relation==="duplicate"?"#f59e0b":"#10b981"},children:e("refineRel_"+k.relation)}),(0,a.jsxs)("span",{style:{opacity:.55},children:[" \xB7 sim ",k.sim," \xB7 ",k.useModel||""]}),k.conflict?(0,a.jsx)("span",{style:{marginLeft:6},children:k.conflict}):null]}),(0,a.jsxs)("div",{style:{fontSize:12,opacity:.85,marginBottom:5},children:["A\uFF1A",k.a.title,(0,a.jsx)("br",{}),"B\uFF1A",k.b.title]}),(0,a.jsxs)("div",{style:{display:"flex",gap:6,flexWrap:"wrap"},children:[(0,a.jsx)("button",{type:"button",className:"mc-btn",style:{padding:"2px 8px"},disabled:!!F,onClick:()=>Me(k,"keepA"),children:e("refineKeepA")}),(0,a.jsx)("button",{type:"button",className:"mc-btn",style:{padding:"2px 8px"},disabled:!!F,onClick:()=>Me(k,"keepB"),children:e("refineKeepB")}),(0,a.jsx)("button",{type:"button",className:"mc-btn",style:{padding:"2px 8px"},disabled:!!F,onClick:()=>Me(k,"keepBoth"),children:e("refineKeepBoth")}),(0,a.jsx)("button",{type:"button",className:"mc-btn",style:{padding:"2px 8px"},disabled:!!F,onClick:()=>Me(k,"merge"),children:e("refineMerge")})]})]},Q)):(0,a.jsx)("div",{style:{opacity:.6,fontSize:12},children:e(w?"refineNone":"refineIdle")})]}),(0,a.jsxs)("div",{className:"mc-card",style:{marginBottom:10},children:[(0,a.jsxs)("div",{style:{display:"flex",gap:10,alignItems:"center",flexWrap:"wrap",marginBottom:6},children:[(0,a.jsxs)("b",{style:{fontSize:12},children:["\u{1F9F9} ",e("junkTitle")]}),(0,a.jsx)("button",{type:"button",className:"mc-btn",disabled:!!F,onClick:Ie,children:e(F==="junk"?"exporting":"junkScan")}),ue?.length?(0,a.jsx)("button",{type:"button",className:"mc-btn",disabled:!!F,onClick:()=>De(ue.map(k=>k.path)),children:e(F==="junkpurge"?"exporting":"junkRecycleAll")}):null,(0,a.jsx)("span",{style:{opacity:.6,fontSize:11},children:e("junkHint")})]}),ue?.length?(0,a.jsx)("ul",{style:{margin:0,padding:0,listStyle:"none"},children:ue.map((k,Q)=>(0,a.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,a.jsx)("span",{style:{flex:1,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},title:k.reasons.join("\uFF1B"),children:k.title||k.path}),(0,a.jsx)("span",{style:{opacity:.55,fontSize:11},children:k.reasons[0]}),(0,a.jsx)("button",{type:"button",className:"mc-btn",style:{padding:"2px 8px"},disabled:!!F,onClick:()=>De([k.path]),children:e("junkRecycle")})]},Q))}):(0,a.jsx)("div",{style:{opacity:.6,fontSize:12},children:e(ue?"junkNone":"junkIdle")})]}),(0,a.jsxs)("div",{className:"mc-card",style:{marginBottom:10},children:[(0,a.jsxs)("div",{style:{display:"flex",gap:10,alignItems:"center",flexWrap:"wrap",marginBottom:6},children:[(0,a.jsxs)("b",{style:{fontSize:12},children:["\u{1F3AF} ",e("goalTitle")]}),(0,a.jsx)("button",{type:"button",className:"mc-btn",disabled:!!F,onClick:O,children:e(F==="goals"?"exporting":"goalScan")}),B?(0,a.jsxs)("span",{style:{opacity:.6,fontSize:11},children:[e("goalStats"),"\uFF1A",B.cached," / ",B.calls]}):null,(0,a.jsx)("span",{style:{opacity:.6,fontSize:11},children:e("goalHint")})]}),B?.clusters?.length?B.clusters.map((k,Q)=>(0,a.jsxs)("div",{style:{borderTop:Q?"1px solid rgba(127,127,127,0.14)":"none",padding:"7px 2px"},children:[(0,a.jsxs)("div",{style:{fontSize:12,marginBottom:4},children:[(0,a.jsx)("b",{children:k.goal})," ",(0,a.jsxs)("span",{style:{opacity:.55},children:["\xB7 ",k.members.length," ",e("goalCards")]})]}),(0,a.jsx)("ul",{style:{margin:"0 0 5px",padding:"0 0 0 16px",fontSize:12,opacity:.85},children:k.members.map((q,ge)=>(0,a.jsx)("li",{children:q.title},ge))}),(0,a.jsxs)("div",{style:{display:"flex",gap:6,flexWrap:"wrap"},children:[(0,a.jsx)("button",{type:"button",className:"mc-btn",style:{padding:"2px 8px"},disabled:!!F,onClick:()=>T(k),children:e("goalKeep")}),(0,a.jsx)("button",{type:"button",className:"mc-btn",style:{padding:"2px 8px"},disabled:!!F,onClick:()=>J(k),children:e("goalMerge")})]})]},Q)):(0,a.jsx)("div",{style:{opacity:.6,fontSize:12},children:e(B?"goalNone":"goalIdle")})]})]})]})]})}var Zc=[{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 hv({t:e,newCard:t,setNewCard:n,onCreated:r}){if(!t)return null;let o=Zc.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,p=h=>{let g=Zc.find(S=>S.key===h);n(S=>({...S,template:h,kind:g?g.kind:S.kind,body:g?e(g.bodyKey):S.body,tags:g?e(g.tagKey):S.tags}))},u=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),r&&r()):n(g=>({...g,_creating:!1}))}catch{n(g=>({...g,_creating:!1}))}}};return(0,a.jsxs)("div",{className:"me-overlay",onClick:()=>n(null),children:[(0,a.jsx)("style",{children:gn}),(0,a.jsxs)("div",{className:"me-dialog",style:{maxWidth:600,width:"92vw",maxHeight:"85vh"},onClick:h=>h.stopPropagation(),children:[(0,a.jsxs)("div",{className:"me-dialog-head",children:[(0,a.jsx)("h3",{children:e("newCard")}),(0,a.jsx)("button",{type:"button",className:"mc-btn",onClick:()=>n(null),children:e("close")})]}),(0,a.jsxs)("div",{className:"me-dialog-body",style:{display:"flex",flexDirection:"column",gap:10,overflow:"auto"},children:[(0,a.jsxs)("div",{style:{display:"flex",gap:6,flexWrap:"wrap"},children:[Zc.map(h=>(0,a.jsx)("button",{type:"button",className:`mc-btn${t.template===h.key?" me-on":""}`,onClick:()=>p(h.key),children:e(h.label)},h.key)),(0,a.jsx)("button",{type:"button",className:`mc-btn${t.template===""?" me-on":""}`,onClick:()=>n(h=>({...h,template:"",body:"",tags:"",kind:"knowledge"})),children:e("tplBlank")})]}),(0,a.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:Ff.map(h=>(0,a.jsx)("option",{value:h,style:{background:"var(--dsw-alias-bg-layer-1, #fff)",color:"var(--dsw-alias-label-primary, #111)"},children:e(Et[h])||h},h))}),(0,a.jsx)("input",{type:"text",className:"mc-btn",placeholder:e("cardTitle"),value:t.title||"",onChange:h=>n(g=>({...g,title:h.target.value}))}),(0,a.jsx)("input",{type:"text",className:"mc-btn",placeholder:e("tagsHint"),value:s,onChange:h=>n(g=>({...g,tags:h.target.value}))}),(0,a.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,a.jsx)("div",{style:{display:"flex",justifyContent:"flex-end",gap:8},children:(0,a.jsx)("button",{type:"button",className:"mc-btn me-on",disabled:c,onClick:u,children:e(c?"exporting":"createCard")})})]})]})]})}async function id(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 r=!!(document.execCommand&&document.execCommand("copy"));return document.body.removeChild(n),r}catch{return!1}}function yv({t:e,onClose:t}){let[n,r]=(0,m.useState)(""),[o,i]=(0,m.useState)(""),[l,s]=(0,m.useState)(""),[c,p]=(0,m.useState)(!0),[u,h]=(0,m.useState)(!1),[g,S]=(0,m.useState)(""),[L,P]=(0,m.useState)(""),_=(0,m.useRef)(null),v=(0,m.useRef)(null),f=()=>{let H=_.current;if(H)try{H.focus(),H.select()}catch{}},y=H=>{S(H),v.current&&clearTimeout(v.current),v.current=setTimeout(()=>S(""),2400)};(0,m.useEffect)(()=>{let H=!0;return fetch(Z+"/diagnostics").then(te=>te.json()).then(te=>{H&&(te&&te.ok?(i(String(te.diagnostics||"")),s(String(te.version||""))):h(!0))}).catch(()=>{H&&h(!0)}).finally(()=>{H&&p(!1)}),()=>{H=!1}},[]),(0,m.useEffect)(()=>{let H=te=>{te.key==="Escape"&&t()};return window.addEventListener("keydown",H),()=>{window.removeEventListener("keydown",H),v.current&&clearTimeout(v.current)}},[t]);let A=(()=>{try{return String(navigator.language||"").toLowerCase().startsWith("en")?"en":"zh"}catch{return"zh"}})(),D=()=>{let H=n.trim().split(`
|
|
967
|
-
`)[0]||"",te=cf({title:"[Bug] "+(H.slice(0,60)||"memory-eternal \u95EE\u9898"),body:df({description:n,diagnostics:o,version:l})});try{window.open(te,"_blank","noopener")}catch{y(e("fbCopyFail"))}},R=async()=>{await id(o)?(P(""),y(e("fbCopiedDiag"))):(P(o),y(e("fbCopyManual")))},I=async()=>{let H=uf({lang:A,description:n,diagnostics:o});await id(H)?(P(""),y(e("fbCopiedPrompt"))):(P(H),y(e("fbCopyManual")))},F={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},W={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,a.jsxs)("div",{className:"me-overlay",onClick:t,children:[(0,a.jsx)("style",{children:gn}),(0,a.jsxs)("div",{className:"me-dialog",style:{maxWidth:720},onClick:H=>H.stopPropagation(),children:[(0,a.jsxs)("div",{className:"me-dialog-head",children:[(0,a.jsxs)("h3",{children:["\u{1F41E} ",e("fbTitle")]}),(0,a.jsx)("button",{type:"button",className:"mc-btn",onClick:t,children:e("close")})]}),(0,a.jsxs)("div",{className:"me-dialog-body",style:{display:"flex",flexDirection:"column",gap:10},children:[(0,a.jsx)("div",{style:{fontSize:12,opacity:.72,lineHeight:1.6},children:e("fbWhy")}),(0,a.jsx)("textarea",{value:n,onChange:H=>r(H.target.value),placeholder:e("fbDesc"),rows:5,style:F}),(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,marginBottom:4},children:[(0,a.jsx)("b",{style:{fontSize:12},children:e("fbDiag")}),(0,a.jsx)("div",{style:{flex:1}}),(0,a.jsx)("button",{type:"button",className:"mc-btn",onClick:R,disabled:!o,children:e("fbCopyDiag")})]}),(0,a.jsx)("pre",{style:W,children:c?e("fbLoading"):u?e("fbDiagFail"):o})]}),(0,a.jsxs)("div",{style:{display:"flex",gap:8,alignItems:"center",flexWrap:"wrap",justifyContent:"flex-end"},children:[(0,a.jsxs)("button",{type:"button",className:"mc-btn",onClick:()=>{if(!n.trim()){y(e("fbNeedDesc"));return}D()},style:{borderColor:"var(--dsw-alias-brand-primary, #3b82f6)",color:"var(--dsw-alias-brand-primary, #3b82f6)",fontWeight:600},children:["\u{1F680} ",e("fbOpenIssue")]}),(0,a.jsx)("span",{style:{opacity:.5,fontSize:12},children:e("fbOr")}),(0,a.jsxs)("button",{type:"button",className:"mc-btn",onClick:I,children:["\u{1F916} ",e("fbCopyPrompt")]})]}),g&&(0,a.jsx)("div",{style:{fontSize:12,color:"var(--dsw-alias-brand-primary, #3b82f6)"},children:g}),L&&(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,marginBottom:4},children:[(0,a.jsxs)("b",{style:{fontSize:12,color:"#b45309"},children:["\u26A0 ",e("fbCopyFail")]}),(0,a.jsx)("span",{style:{fontSize:11.5,opacity:.75},children:e("fbCopyManual")}),(0,a.jsx)("div",{style:{flex:1}}),(0,a.jsx)("button",{type:"button",className:"mc-btn",onClick:f,children:e("fbSelectAll")})]}),(0,a.jsx)("textarea",{ref:_,readOnly:!0,value:L,rows:7,style:F})]})]})]})]})}function vv({t:e,tab:t,onTab:n,onClose:r,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")}],p="https://github.com/EternalNight996/memory-eternal/blob/main/README.md",u=(h,g)=>(0,a.jsxs)("figure",{children:[(0,a.jsx)("img",{src:h,alt:g,loading:"lazy",title:e("clickToZoom"),onClick:S=>s(S.currentTarget.currentSrc||h),onError:S=>{let L=S.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,a.jsx)("figcaption",{children:g})]});return(0,a.jsxs)("div",{className:"me-overlay",onClick:r,children:[(0,a.jsx)("style",{children:gn}),(0,a.jsxs)("div",{className:"me-dialog me-support",onClick:h=>h.stopPropagation(),children:[(0,a.jsxs)("div",{className:"me-dialog-head",children:[(0,a.jsxs)("h3",{children:["\u{1F4AC} ",e("supportTitle")]}),(0,a.jsx)("div",{className:"me-head-actions",children:(0,a.jsx)("button",{type:"button",className:"mc-btn",onClick:r,children:e("close")})})]}),(0,a.jsx)("div",{className:"me-support-tabs",children:c.map(h=>(0,a.jsx)("button",{type:"button",className:`me-support-tab${t===h.id?" active":""}`,onClick:()=>n(h.id),children:h.label},h.id))}),(0,a.jsxs)("div",{className:"me-support-body",children:[t==="group"&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("p",{className:"me-support-note",children:e("supportGroupHint")}),(0,a.jsxs)("div",{className:"me-support-qr",children:[u("support/group-qr.jpg",e("supportGroupQQ")),u("support/group-wechat.jpg",e("supportGroupWechat"))]}),(0,a.jsx)("p",{className:"me-support-note",style:{marginTop:12},children:(0,a.jsxs)("a",{className:"me-support-link",href:p,target:"_blank",rel:"noreferrer",children:[e("supportReadme")," \u2197"]})})]}),t==="sponsor"&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("p",{className:"me-support-note",children:e("supportSponsorHint")}),(0,a.jsxs)("div",{className:"me-support-qr",children:[u("support/wechat-pay.jpg","\u5FAE\u4FE1\u6536\u6B3E\u7801"),u("support/wechat-reward.jpg","\u5FAE\u4FE1\u8D5E\u8D4F\u7801")]}),(0,a.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,a.jsx)("br",{}),(0,a.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,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("h3",{style:{margin:"0 0 8px",fontSize:14},children:e("supportLegacyTitle")}),(0,a.jsx)("p",{className:"me-support-note",children:e("supportLegacyBody")}),(0,a.jsxs)("div",{className:"me-support-actions",children:[(0,a.jsxs)("a",{className:"mc-btn",href:p,target:"_blank",rel:"noreferrer",children:["\u{1F4D6} ",e("supportReadme")," \u2197"]}),(0,a.jsxs)("a",{className:"mc-btn",href:"https://github.com/EternalNight996/memory-eternal/releases",target:"_blank",rel:"noreferrer",children:["\u{1F3F7} ",e("supportReleases")," \u2197"]})]})]})]}),(0,a.jsxs)("div",{className:"me-support-actions",style:{padding:"0 18px 16px",marginTop:0},children:[(0,a.jsxs)("button",{type:"button",className:"mc-btn",onClick:o,children:["\u{1F41E} ",e("supportFeedback")]}),(0,a.jsxs)("button",{type:"button",className:"mc-btn",onClick:i,children:["\u2728 ",e("supportReplay")]})]})]}),l&&(0,a.jsxs)("div",{className:"me-lightbox",role:"dialog","aria-modal":"true","aria-label":e("close"),onClick:h=>{h.stopPropagation(),s(null)},children:[(0,a.jsx)("button",{type:"button",className:"me-lightbox-close",onClick:h=>{h.stopPropagation(),s(null)},"aria-label":e("close"),children:"\u2715"}),(0,a.jsx)("img",{src:l,alt:"",onClick:h=>h.stopPropagation()})]})]})}function bv({t:e,onDone:t}){let[n,r]=(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,a.jsxs)("div",{className:"me-overlay",style:{zIndex:1006},children:[(0,a.jsx)("style",{children:gn}),(0,a.jsxs)("div",{className:"me-dialog me-guide",children:[(0,a.jsxs)("div",{className:"me-guide-head",children:[(0,a.jsxs)("b",{children:["\u2728 ",e("onboardTitle")]}),(0,a.jsx)("div",{className:"spacer"}),(0,a.jsx)("span",{style:{fontSize:11,opacity:.55},children:e("onboardSub")})]}),(0,a.jsx)("div",{className:"me-guide-dots",children:i.map((s,c)=>(0,a.jsx)("span",{className:`me-guide-dot${c<=n?" on":""}`},c))}),(0,a.jsxs)("div",{className:"me-guide-body",children:[(0,a.jsx)("h3",{children:i[n].title}),(0,a.jsx)("p",{children:i[n].body}),n===0&&(0,a.jsxs)("div",{className:"me-guide-github",children:[(0,a.jsxs)("button",{type:"button",className:"mc-btn me-on",onClick:()=>td(o),children:["\u2605 ",e("onboardStar")]}),(0,a.jsxs)("button",{type:"button",className:"mc-btn",onClick:()=>td(o+"/fork"),children:["\u2442 ",e("onboardFork")]}),(0,a.jsx)("span",{className:"me-guide-github-hint",children:e("onboardStarHint")})]}),n===1&&(0,a.jsxs)("div",{className:"me-guide-chips",children:[(0,a.jsx)("span",{children:"\u81EA\u52A8\u6C89\u6DC0"}),(0,a.jsx)("span",{children:"\u5148\u5BA1\u540E\u5165"}),(0,a.jsx)("span",{children:"\u53EA\u53EC\u56DE\u76F8\u5173\u5C0F\u5757"})]}),n===2&&(0,a.jsxs)("div",{className:"me-guide-like",children:[(0,a.jsx)("span",{className:"me-guide-thumb",children:"\u{1F44D}"})," \u6709\u7528"]}),n===3&&(0,a.jsxs)("div",{className:"me-guide-chips",children:[(0,a.jsxs)("span",{children:["\u{1F4AC} ",e("supportGroup")]}),(0,a.jsxs)("span",{children:["\u2615 ",e("supportSponsor")]}),(0,a.jsxs)("span",{children:["\u{1F9E9} ",e("supportLegacy")]}),(0,a.jsxs)("span",{children:["\u{1F41E} ",e("supportFeedback")]})]})]}),(0,a.jsxs)("div",{className:"me-guide-actions",children:[(0,a.jsx)("button",{type:"button",className:"mc-btn",onClick:t,children:e("onboardSkip")}),(0,a.jsx)("div",{className:"spacer"}),(0,a.jsx)("span",{className:"me-guide-tip",children:e("onboardTip")}),n>0&&(0,a.jsx)("button",{type:"button",className:"mc-btn",onClick:()=>r(s=>s-1),children:e("onboardBack")}),l?(0,a.jsx)("button",{type:"button",className:"mc-btn me-on",onClick:t,children:e("onboardStart")}):(0,a.jsx)("button",{type:"button",className:"mc-btn me-on",onClick:()=>r(s=>s+1),children:e(n===0?"onboardStarred":"onboardNext")})]})]})]})}function xv({t:e,card:t,query:n,onClose:r,onDelete:o,onFeedback:i,onNavigate:l,onTagClick:s,allCards:c,onOpenRelated:p,onKindChange:u}){let[h,g]=(0,m.useState)(0),[S,L]=(0,m.useState)(""),[P,_]=(0,m.useState)(()=>{try{let B=localStorage.getItem("me-read-width");return["narrow","mid","wide"].includes(B)?B:"mid"}catch{return"mid"}}),v={narrow:720,mid:900,wide:1180};(0,m.useEffect)(()=>{let B=z=>{if(z.key==="Escape"){r();return}let O=String(z.target&&z.target.tagName||"").toLowerCase();O==="input"||O==="textarea"||O==="select"||z.target&&z.target.isContentEditable||(z.key==="j"&&l?(z.preventDefault(),l(1)):z.key==="k"&&l&&(z.preventDefault(),l(-1)))};return window.addEventListener("keydown",B),()=>window.removeEventListener("keydown",B)},[r,l]);let f=async(B,z)=>{let O=await id(String(B||""));L(O?e("copied")+" \xB7 "+z:e("copyFail")),setTimeout(()=>L(""),1500)},{meta:y,body:A}=(0,m.useMemo)(()=>ol(t.text||""),[t.text]),D=B=>{let z=y.find(([O])=>String(O).toLowerCase()===B);return z?z[1]:""},R=nf(D("tags")),I=t.kind||D("kind")||"knowledge",F=String(t.status||D("status")||"approved").toLowerCase(),W=Bt[I]||"#6B7280",H=(A||"").length>460,te=(0,m.useMemo)(()=>dd(A,t.title),[A,t.title]),ye=(0,m.useMemo)(()=>{let B=ud(t);if(B)return B;let O=(te.split(/\r?\n/).map(T=>T.trim()).find(T=>T&&!/^#{1,2}\s/.test(T))||"").replace(/[#>*_`]/g,"").replace(/\s+/g," ").trim();return O.length>150?O.slice(0,148)+"\u2026":O},[t,te]),ae=(0,m.useMemo)(()=>mv(te),[te]),Fe=(0,m.useMemo)(()=>{let B=new Set(R);return(c||[]).filter(z=>z.path!==t.path&&(z.tags||[]).some(O=>B.has(O))).slice(0,3)},[c,t.path,R.join("|")]),[w,ke]=(0,m.useState)(!0),oe=(0,m.useRef)(null),[Me,ue]=(0,m.useState)(""),ee=B=>{let z=oe.current;if(!z)return;let O=document.getElementById(B);if(!O||!z.contains(O))return;let T=O.getBoundingClientRect().top-z.getBoundingClientRect().top+z.scrollTop-12;z.scrollTo({top:Math.max(0,T),behavior:"smooth"})},Ie=B=>{if(!w){ke(!0),setTimeout(()=>ee(B),80);return}ee(B)},De=B=>{let z=B.currentTarget,O=z.scrollHeight-z.clientHeight;g(O<=0?100:Math.min(100,Math.max(0,z.scrollTop/O*100)));let T=z.querySelectorAll(".md-doc .md-h"),J="",me=z.getBoundingClientRect().top+28;for(let Ae of T)if(Ae.getBoundingClientRect().top<=me)J=Ae.id;else break;ue(J)};return(0,a.jsxs)("div",{className:"me-overlay",onClick:r,children:[(0,a.jsx)("style",{children:gn}),(0,a.jsxs)("div",{className:"me-dialog me-reader-dialog",onClick:B=>B.stopPropagation(),children:[(0,a.jsxs)("div",{className:"me-dialog-head",children:[(0,a.jsxs)("h3",{title:t.title,children:[(0,a.jsx)("span",{style:{marginRight:6,flex:"none"},children:Nr[I]||"\u{1F4CE}"}),t.title]}),(0,a.jsxs)("div",{className:"me-head-actions",children:[S&&(0,a.jsx)("span",{style:{fontSize:11.5,color:"#10b981",whiteSpace:"nowrap"},children:S}),(0,a.jsxs)("button",{type:"button",className:"mc-btn",title:e("copyBody"),onClick:()=>f(A,e("copyBody")),children:["\u{1F4CB} ",e("copyBody")]}),(0,a.jsxs)("button",{type:"button",className:"mc-btn",title:e("copyPath"),onClick:()=>f(t.path,e("copyPath")),children:["\u{1F517} ",e("copyPath")]}),(0,a.jsxs)("button",{type:"button",className:"mc-btn",title:e("readWidth"),onClick:()=>{let B=["narrow","mid","wide"],z=B[(B.indexOf(P)+1)%B.length];_(z);try{localStorage.setItem("me-read-width",z)}catch{}},children:[e("readWidth")," \xB7 ",e(P==="narrow"?"widthNarrow":P==="wide"?"widthWide":"widthMid")]}),(0,a.jsxs)("button",{type:"button",className:"mc-btn",onClick:()=>i&&i(!0),children:["\u{1F44D} ",e("fbUseful")]}),(0,a.jsxs)("button",{type:"button",className:"mc-btn",onClick:()=>i&&i(!1),children:["\u{1F44E} ",e("fbIrr")]}),H&&(0,a.jsx)("button",{type:"button",className:"mc-btn","aria-expanded":w,onClick:()=>ke(B=>!B),children:e(w?"collapse":"expand")}),(0,a.jsx)("button",{type:"button",className:"mc-btn",style:{color:"#f87171"},onClick:()=>{window.confirm(e("deleteConfirm"))&&o&&o(t.path)},children:e("delete")}),u&&F==="approved"&&(I==="core"?(0,a.jsx)("button",{type:"button",className:"mc-btn",onClick:()=>u(t.path,"knowledge"),children:e("unsetCore")}):(0,a.jsxs)("button",{type:"button",className:"mc-btn",onClick:()=>u(t.path,"core"),children:["\u2B50 ",e("setCore")]})),(0,a.jsx)("button",{type:"button",className:"mc-btn",onClick:r,children:e("close")})]})]}),u&&(0,a.jsxs)("div",{className:"me-core-banner"+(I==="core"?" on":""),children:[(0,a.jsxs)("div",{className:"me-core-banner-k",children:["\u2B50 ",e("kindCore")]}),(0,a.jsx)("div",{className:"me-core-banner-desc",children:e(I==="core"?"coreActiveHint":"coreInactiveHint")}),F==="approved"?(0,a.jsx)("button",{type:"button",className:"mc-btn me-core-btn",onClick:()=>u(t.path,I==="core"?"knowledge":"core"),children:I==="core"?e("unsetCore"):"\u2B50 "+e("setCore")}):(0,a.jsx)("span",{className:"me-core-banner-desc",style:{flex:"none",opacity:.6},children:e("coreNeedApproval")})]}),(0,a.jsxs)("div",{className:"md-meta",children:[(0,a.jsxs)("span",{className:"md-chip md-chip-kind",style:{color:W,borderColor:W+"59",background:W+"1a"},children:[Nr[I]||"\u{1F4CE}"," ",e(Et[I]||"kindKnowledge")]}),(0,a.jsxs)("span",{className:"md-chip "+(F==="approved"?"md-chip-st-ok":F==="pending"?"md-chip-st-warn":"md-chip-st-bad"),children:[F==="approved"?"\u2705":F==="pending"?"\u23F3":"\u26D4"," ",e(F==="approved"?"statusApproved":F==="pending"?"statusPending":"statusRejected")]}),(Array.isArray(R)?R:[]).slice(0,8).map(B=>(0,a.jsxs)("button",{type:"button",className:"md-chip md-chip-tag mc-tag-click",title:B,onClick:()=>s&&s(B),children:["\u{1F3F7} ",B]},B)),!!D("updated")&&(0,a.jsxs)("span",{className:"md-chip md-date",children:["\u{1F552} ",e("updated")," ",Qn(D("updated"))]}),!!D("source")&&(0,a.jsxs)("span",{className:"md-chip md-date",children:["\u{1F4E5} ",D("source")]})]}),(0,a.jsx)("div",{className:"me-read-progress","aria-hidden":"true",children:(0,a.jsx)("i",{style:{width:h+"%"}})}),(0,a.jsxs)("div",{className:"me-reader-body",children:[(0,a.jsxs)("div",{className:"me-dialog-body me-reader-main",style:{maxWidth:v[P],margin:"0 auto",width:"100%",boxSizing:"border-box",...w?{}:{maxHeight:300,overflow:"hidden"}},ref:oe,onScroll:De,onClick:w?void 0:B=>{B.stopPropagation(),ke(!0)},children:[!!ye&&(0,a.jsxs)("div",{className:"me-reader-callout",children:[(0,a.jsx)("span",{className:"me-reader-callout-k",children:e(Wf(t))}),(0,a.jsx)("p",{children:ye})]}),(0,a.jsx)("div",{className:"md-doc",dangerouslySetInnerHTML:{__html:Eo(te)}})]}),(0,a.jsxs)("aside",{className:"me-reader-side",children:[ae.length>0&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"side-label",children:e("contents")}),(0,a.jsx)("div",{className:"me-reader-toc",children:ae.map((B,z)=>(0,a.jsxs)("button",{type:"button",className:`lv${B.level}${Me===B.id?" active":""}`,onClick:()=>Ie(B.id),children:[(0,a.jsx)("span",{children:String(z+1).padStart(2,"0")}),B.text]},B.id))})]}),(0,a.jsx)("div",{className:"side-label",children:e("source")}),(0,a.jsx)("div",{className:"me-reader-side-val",children:D("source")||t.submittedBy||"\u2014"}),(0,a.jsx)("div",{className:"side-label",children:e("updated")}),(0,a.jsx)("div",{className:"me-reader-side-val",children:Qn(D("updated")||t.updated)}),(0,a.jsx)("div",{className:"side-label",children:e("file")}),(0,a.jsx)("div",{className:"me-reader-side-val mono",children:t.path}),R.length>0&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"side-label",children:e("tags")}),(0,a.jsx)("div",{className:"me-reader-tags",children:R.slice(0,8).map(B=>(0,a.jsxs)("button",{type:"button",className:"mc-chip",onClick:()=>s&&s(B),children:["#",B]},B))})]}),Fe.length>0&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"side-label",children:e("related")}),(0,a.jsx)("div",{className:"me-reader-related",children:Fe.map(B=>(0,a.jsxs)("button",{type:"button",onClick:()=>p&&p(B),children:[(0,a.jsx)("span",{children:Nr[B.kind]||"\u{1F4CE}"}),(0,a.jsx)("b",{children:B.title})]},B.path))})]})]})]}),!w&&(0,a.jsxs)("div",{className:"md-collapsed-hint",onClick:B=>{B.stopPropagation(),ke(!0)},children:[e("expand")," \u2304"]})]})]})}function wv({t:e,onOpen:t,all:n,onAllChange:r,onMutate:o,active:i,visible:l}){let[s,c]=(0,m.useState)([]),[p,u]=(0,m.useState)(null),[h,g]=(0,m.useState)(null),[S,L]=(0,m.useState)(!1),P=(0,m.useRef)(0),_=(0,m.useRef)(null);_.current||(_.current=Sf(96));let v=(0,m.useRef)(0),f=(0,m.useRef)(0),y=(0,m.useRef)(s);y.current=s;let A=(0,m.useRef)(n),D=(0,m.useRef)({requests:0,cacheHits:0,errors:0,timeouts:0,lastMs:0,lastBytes:0}),R=(0,m.useCallback)(async(oe,Me={})=>{let ue=Array.isArray(oe)?oe.filter(Boolean):[],ee=(n?"all|":"")+Vr(ue);if(!Me.force){let O=_.current.get(ee);if(O)return D.current.cacheHits+=1,u(O),c(ue),g(null),L(!1),O}let Ie=++v.current;L(!0),g(null);let De=new AbortController,B=setTimeout(()=>{try{De.abort()}catch{}},1600),z=performance.now();D.current.requests+=1;try{let O=await fetch(vf(Z,ue,{all:n}),{signal:De.signal}),T=await O.json().catch(()=>null);if(Ie!==v.current)return null;if(!O.ok||!T||!T.ok)throw new Error(T&&T.error||"HTTP "+O.status);let J=Nf(T);if(!J.ok)try{console.warn("[memory-eternal] \u5206\u5C42\u54CD\u5E94\u8D8A\u754C\uFF1A"+J.problems.join("\uFF1B"))}catch{}return _.current.set(ee,T),D.current.lastMs=Math.round(performance.now()-z),D.current.lastBytes=J.bytes,f.current||(f.current=Math.round(performance.now())),u(T),c(ue),g(null),T}catch(O){if(Ie!==v.current)return null;let T=kf(O,{timeoutMs:1600,elapsedMs:performance.now()-z});T.timeout&&(D.current.timeouts+=1),D.current.errors+=1;try{console.warn("[memory-eternal] \u5C42\u7EA7\u52A0\u8F7D\u5931\u8D25 @ "+ee+"\uFF1A"+T.message)}catch{}return g({...T,target:Vr(ue),segments:ue.slice()}),null}finally{clearTimeout(B),Ie===v.current&&L(!1)}},[n]);(0,m.useEffect)(()=>{A.current!==n&&(A.current=n,_.current.clear(),i&&R([],{force:!0}))},[n,i,R]),(0,m.useEffect)(()=>{!i||p||S||R([])},[i,p,S,R]),(0,m.useEffect)(()=>{l&&p&&P.current++},[l,p]);let I=(0,m.useCallback)(oe=>{let Me=Array.isArray(oe)?oe:yf(oe&&oe.path!==void 0?oe.path:oe);Vr(Me)!==Vr(y.current)&&R(Me)},[R]),F=(0,m.useCallback)(oe=>{oe&&R(y.current.concat(String(oe)))},[R]),W=(0,m.useCallback)(()=>{_.current.clear();let oe=h&&Array.isArray(h.segments)?h.segments:y.current;R(oe,{force:!0})},[R,h]),H=(0,m.useCallback)(async()=>(_.current.clear(),R(y.current,{force:!0})),[R]),te=(0,m.useCallback)(async oe=>{try{let ue=await(await fetch(`${Z}/delete?path=${encodeURIComponent(oe)}`)).json();return ue&&ue.ok?(await H(),o&&o(),!0):!1}catch{return!1}},[H,o]),ye=(0,m.useCallback)(async oe=>{if(!oe||oe.length<2)return!1;try{let Me=await fetch(`${Z}/merge?paths=${encodeURIComponent(oe.join(","))}`).then(ue=>ue.json());return Me&&Me.ok?(await H(),o&&o(),!0):!1}catch{return!1}},[H,o]);(0,m.useEffect)(()=>{let oe=()=>{let Me=typeof globalThis.__meGraphRuntime=="function"?globalThis.__meGraphRuntime():null;return{path:Vr(y.current),crumbs:p&&Array.isArray(p.crumbs)?p.crumbs.map(ue=>({path:ue.path,label:ue.label,labelKey:ue.labelKey,count:ue.count})):[],level:p&&p.level?{mode:p.level.mode,total:p.level.total,items:p.level.items.length,edges:p.level.edges.length}:null,loading:!!S,error:h?{timeout:!!h.timeout,message:h.message,target:h.target||""}:null,requests:D.current.requests,cacheHits:D.current.cacheHits,errors:D.current.errors,timeouts:D.current.timeouts,lastMs:D.current.lastMs,lastBytes:D.current.lastBytes,firstLevelMs:f.current,cacheSize:_.current.size,timeoutMs:1600,runtime:Me}};return globalThis.__meGraphProbe=oe,()=>{if(globalThis.__meGraphProbe===oe)try{delete globalThis.__meGraphProbe}catch{globalThis.__meGraphProbe=void 0}}},[p,S,h]);let ae=p&&p.level?p.level:null,Fe=ae?ae.items.length:0,w=ae?ae.total:0,ke=ae?ae.edges.length:0;return(0,a.jsxs)("div",{className:"me-graph me-v5-graph",children:[(0,a.jsx)("style",{children:gn}),(0,a.jsxs)("div",{className:"mc-v5-pagehead mc-v5-graphhead",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"mc-v5-eyebrow",children:"KNOWLEDGE GRAPH"}),(0,a.jsx)("h1",{children:e("graphTab")}),(0,a.jsx)("p",{children:e("graphHint")})]}),(0,a.jsx)("span",{className:"mc-v5-pagecount",children:p?`${Fe} ${e("graphItems")} \xB7 ${w} ${e("graphCardsUnit")} \xB7 ${ke} ${e("edges")}`:""})]}),!p&&!h&&(0,a.jsx)($f,{text:e("loadingGraph")}),!p&&h&&(0,a.jsxs)("div",{className:"mc-empty",style:{display:"flex",flexDirection:"column",gap:10,alignItems:"center"},children:[(0,a.jsxs)("span",{children:[h.timeout?e("graphLevelTimeout").replace("{ms}",String(1600)):e("graphLevelError"),"\uFF1A",h.message]}),(0,a.jsx)("button",{type:"button",className:"mc-btn",onClick:W,children:e("graphRetry")})]}),p&&Fe===0&&(0,a.jsx)("div",{className:"mc-empty",children:e("graphEmptyLevel")}),p&&Fe>0&&(0,a.jsx)(Sv,{level:ae,crumbs:p.crumbs||[],onOpen:t,onDelete:te,onMerge:ye,onDrill:F,onNavigate:I,onRetry:W,error:p?h:null,loading:S,t:e,all:n,onAllChange:r,fitTrigger:P.current})]})}var Dn={colors:{core:"#FF7A45",skill:"#8B5CF6",project:"#3B82F6",knowledge:"#10B981",content:"#F59E0B",prompt:"#A855F7",business:"#EC4899",tool:"#06B6D4",mistake:"#EF4444",other:"#6B7280"},shapes:{core:"diamond",skill:"hexagon",project:"circle",knowledge:"circle",content:"rect",prompt:"diamond",business:"hexagon",tool:"circle",mistake:"diamond",other:"circle"}};function Sr(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 ml({value:e,small:t}){let n=typeof e=="number"&&Number.isFinite(e),r=n?Math.max(0,Math.min(100,e)):0;return(0,a.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(r):void 0,"aria-label":"\u52A0\u8F7D\u8FDB\u5EA6",children:(0,a.jsx)("span",{className:"me-progress-fill",style:n?{width:Math.max(3,r)+"%"}:void 0})})}function $f({text:e,value:t}){return(0,a.jsxs)("div",{className:"me-loading",role:"status","aria-live":"polite",children:[(0,a.jsx)(ml,{value:t}),(0,a.jsx)("span",{className:"me-loading-text",children:e})]})}var If=[];function kv({crumbs:e,t,onPick:n,busy:r}){let o=Array.isArray(e)&&e.length?e:[{path:"",labelKey:"graphAllCrumb",label:"\u5168\u90E8"}];return(0,a.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",p=l===o.length-1;return(0,a.jsxs)("span",{style:{display:"inline-flex",alignItems:"center",gap:2},children:[l>0&&(0,a.jsx)("span",{className:"sep","aria-hidden":"true",children:"\u203A"}),(0,a.jsx)("button",{type:"button",className:(l===0?"home":"")+(p?" current":""),"aria-current":p?"page":void 0,title:c,disabled:p||r,onClick:()=>{p||n(i)},children:c})]},i.path||"root")})})}function Sv({level:e,crumbs:t,onOpen:n,onDelete:r,onMerge:o,onDrill:i,onNavigate:l,onRetry:s,error:c,loading:p,t:u,all:h,onAllChange:g,fitTrigger:S}){let L=(0,m.useRef)(null),P=(0,m.useRef)(null),_=(0,m.useRef)(null),v=(0,m.useRef)(null),f=(0,m.useRef)(null),y=e&&Array.isArray(e.items)?e.items:If,A=e&&Array.isArray(e.edges)?e.edges:If,D=e&&e.id||"",R=(0,m.useMemo)(()=>y.map(N=>({id:N.id,title:N.label||N.id,name:N.label||N.id,kind:N.kind||"other",tags:Array.isArray(N.tags)?N.tags:[],updated:N.updated||"",count:Number(N.count)||0,type:N.type||"card"})),[y]),I=(0,m.useMemo)(()=>A.map(N=>({source:N.source,target:N.target,type:N.type||"tag",weight:Number(N.weight)||1})),[A]),F=(0,m.useRef)(u);F.current=u;let W=(0,m.useRef)(n);(0,m.useEffect)(()=>{W.current=n},[n]);let H=(0,m.useRef)(r);(0,m.useEffect)(()=>{H.current=r},[r]);let te=(0,m.useRef)(o);(0,m.useEffect)(()=>{te.current=o},[o]);let ye=(0,m.useRef)(i);(0,m.useEffect)(()=>{ye.current=i},[i]);let[ae,Fe]=(0,m.useState)(""),[w,ke]=(0,m.useState)(null),[oe,Me]=(0,m.useState)(null),ue=(0,m.useRef)("");(0,m.useEffect)(()=>{ue.current=ae.trim().toLowerCase()},[ae]),(0,m.useEffect)(()=>{let N=_.current;if(!N)return;let x=ae.trim().toLowerCase();if(!x)return;let ce=N.nodes.find(Ne=>(Ne.name||"").toLowerCase().includes(x));if(ce){_.current.selectedId=ce.id,ke(ce.id),N.panX=N.w/2-ce.x*N.zoom,N.panY=N.h/2-ce.y*N.zoom;try{N.render&&N.render()}catch(Ne){Sr(Ne,"search-center")}}},[ae]);let[ee,Ie]=(0,m.useState)("all"),[De,B]=(0,m.useState)(!1),z=(0,m.useRef)("all"),[O,T]=(0,m.useState)(""),J=(0,m.useRef)(""),[me,Ae]=(0,m.useState)(!1),le=(0,m.useRef)(!1),[ve,k]=(0,m.useState)(null);(0,m.useEffect)(()=>{z.current=ee},[ee]),(0,m.useEffect)(()=>{J.current=O},[O]),(0,m.useEffect)(()=>{le.current=me},[me]);let Q=(0,m.useMemo)(()=>{let N=new Map;for(let x of R)for(let ce of x.tags||[]){let Ne=String(ce).trim();Ne&&N.set(Ne,(N.get(Ne)||0)+1)}return[...N.entries()].sort((x,ce)=>ce[1]-x[1]).slice(0,24).map(([x,ce])=>({tag:x,n:ce}))},[R]),q=(0,m.useMemo)(()=>{let N={};for(let x of R)N[x.kind||"other"]=(N[x.kind||"other"]||0)+(x.type==="planet"?Math.max(1,x.count||0):1);return N},[R]),ge=(()=>{let N=ae.trim().toLowerCase();return!!N&&!R.some(x=>(x.title||x.name||"").toLowerCase().includes(N)||String(x.kind||"").toLowerCase().includes(N)||String(Et[x.kind]||"").toLowerCase().includes(N))})();(0,m.useEffect)(()=>{let N=_.current;N&&N.requestRender&&N.requestRender()},[ae]),(0,m.useEffect)(()=>{let N=_.current;if(!(!N||!N.render))try{N.render()}catch(x){Sr(x,"filter/timeDim")}},[ee,O,me]);let j=(0,m.useRef)(null),[U,se]=(0,m.useState)([]),[xe,at]=(0,m.useState)(null),[et,pt]=(0,m.useState)(!1),[Oe,At]=(0,m.useState)(null),[ft,qn]=(0,m.useState)(""),Xn=(0,m.useRef)(null),je=(0,m.useRef)(null),Je=(N,x=!0)=>{Xn.current&&clearTimeout(Xn.current),At({msg:N,ok:x}),Xn.current=setTimeout(()=>At(null),1900)},Mr=N=>{qn(N),je.current&&clearTimeout(je.current),je.current=setTimeout(()=>qn(""),1600)};(0,m.useEffect)(()=>()=>{Xn.current&&clearTimeout(Xn.current),je.current&&clearTimeout(je.current)},[]);let $e=(0,m.useMemo)(()=>R.reduce((N,x)=>(N[x.id]=x,N),{}),[R]);return(0,m.useEffect)(()=>{let N=L.current;if(!N||R.length===0)return;let x=N.getContext("2d");if(!x)return;let ce=Math.min(1.5,Math.max(1,window.devicePixelRatio||1)),Ne=()=>{let E=document.documentElement.getAttribute("data-theme");if(E)return E==="dark";try{return typeof window<"u"&&!!window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches}catch{return!1}},He={};I.forEach(E=>{He[E.source]=(He[E.source]||0)+1,He[E.target]=(He[E.target]||0)+1});let ot=Math.max(1,...Object.values(He)),Ve=Cf(),In=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=>xf(E,{degree:He[E.id]||0,maxDegree:ot})),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:ce,ctx:x,multi:[],marquee:null,planetLayer:In,levelId:D};d.domain=R,d.domainById=R.reduce((E,K)=>(E[K.id]=K,E),{}),d.nodeById=new Map(d.nodes.map(E=>[E.id,E])),d.edgePairs=(()=>{let E=new Map(d.nodes.map(($,X)=>[$.id,X])),K=new Int32Array(d.edges.length*2),G=0;for(let $ of d.edges){let X=E.get($.sourceNodeId),fe=E.get($.targetNodeId);X===void 0||fe===void 0||(K[G]=X,K[G+1]=fe,G+=2)}return K.subarray(0,G)})(),d.alpha=1,d.forceParams=In?wf(dl(d.nodes.length)):dl(d.nodes.length),d.lastTickMs=0,d.lastRenderMs=0,d.nodes.forEach((E,K)=>{let G=K*2.399963229728653,$=12*Math.sqrt(K);E.x=Math.cos(G)*$,E.y=Math.sin(G)*$});let An=[...new Set(d.nodes.map(E=>E.type))];d.clustered=!In&&An.length>1,d.typeCenters=d.typeCenters||{};let Tr=In?0:160;An.forEach((E,K)=>{if(d.typeCenters[E])return;let G=K/An.length*Math.PI*2-Math.PI/2;d.typeCenters[E]={x:Math.cos(G)*Tr,y:Math.sin(G)*Tr}}),_.current=d;let hn=0,bt=0,b=null,ne="",de=()=>{let E=N.clientWidth,K=N.clientHeight;d.w=E,d.h=K,N.width=E*ce,N.height=K*ce,x.setTransform(ce,0,0,ce,0,0),(hn===0||bt===0)&&E>0&&K>0&&d.tickCount>0&&Ve.raf(()=>qt()),hn=E,bt=K};de();let Le=new ResizeObserver(de);Le.observe(N.parentElement);let Ee=(E,K)=>E&&E.length>K?E.slice(0,K)+"\u2026":E,he=(E,K,G,$)=>{if(x.beginPath(),$==="rect")x.rect(E-G,K-G*.75,G*2,G*1.5);else if($==="diamond")x.moveTo(E,K-G),x.lineTo(E+G,K),x.lineTo(E,K+G),x.lineTo(E-G,K),x.closePath();else if($==="hexagon"){for(let X=0;X<6;X++){let fe=Math.PI/3*X-Math.PI/2,we=E+G*Math.cos(fe),Ke=K+G*Math.sin(fe);X===0?x.moveTo(we,Ke):x.lineTo(we,Ke)}x.closePath()}else x.arc(E,K,G,0,Math.PI*2)},_e=new Map,an=(E,K)=>{let G=E+"|"+Math.round(K),$=_e.get(G);if(!$){let X=parseInt(E.slice(1,3),16),fe=parseInt(E.slice(3,5),16),we=parseInt(E.slice(5,7),16);$=x.createRadialGradient(-K*.3,-K*.3,0,0,0,K*1.2),$.addColorStop(0,"rgba("+Math.min(255,X+70)+","+Math.min(255,fe+70)+","+Math.min(255,we+70)+",0.95)"),$.addColorStop(1,E),_e.set(G,$)}return $},Qt=(E,K)=>{let G=parseInt(E.slice(1,3),16),$=parseInt(E.slice(3,5),16),X=parseInt(E.slice(5,7),16);return"rgba("+G+","+$+","+X+","+K+")"},gt=(E,K,G)=>{let $=Ke=>[parseInt(Ke.slice(1,3),16),parseInt(Ke.slice(3,5),16),parseInt(Ke.slice(5,7),16)],X=$(E),fe=$(K),we=Math.max(0,Math.min(1,Number(G)||0));return"rgb("+X.map((Ke,We)=>Math.round(Ke+(fe[We]-Ke)*we)).join(",")+")"},Kr=1.1,Yr=3,qt=()=>{if(!d.nodes.length)return;let E=1/0,K=-1/0,G=1/0,$=-1/0;d.nodes.forEach(it=>{let ln=Number(it.r)||0,ct=it.planet?ln*1.75:ln;it.x-ct<E&&(E=it.x-ct),it.x+ct>K&&(K=it.x+ct),it.y-ct<G&&(G=it.y-ct),it.y+ct>$&&($=it.y+ct)});let X=20,fe=K-E+X*2,we=$-G+X*2,Ke=Math.min(d.w/fe,d.h/we),We=Math.pow(1/Kr,Yr);if(d.zoom=Math.max(.35,Math.min(1.8,Ke*We)),d.planetLayer){let it=Ke*Math.pow(1/Kr,Yr);it<d.zoom&&(d.zoom=Math.max(.12,it))}d.panX=d.w/2-(E+K)/2*d.zoom,d.panY=d.h/2-(G+$)/2*d.zoom};v.current=qt;let Zn=()=>{x.clearRect(0,0,d.w,d.h),d.searchTerm=ue.current,d.kindFilter=z.current,d.timeMode=le.current,d.tagFilter=J.current;let E=d.tagFilter,K=d.kindFilter,G=C=>String(C||"").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">");x.save();let $=d.w+"x"+d.h;if(!b||ne!==$){b=new Path2D;for(let C=0;C<d.w;C+=24)b.moveTo(C,0),b.lineTo(C,d.h);for(let C=0;C<d.h;C+=24)b.moveTo(0,C),b.lineTo(d.w,C);ne=$}x.strokeStyle=Ne()?"rgba(255,255,255,0.04)":"rgba(0,0,0,0.04)",x.lineWidth=.5,x.stroke(b),x.restore(),x.save(),x.translate(d.panX,d.panY),x.scale(d.zoom,d.zoom);let X={};d.nodes.forEach(C=>X[C.id]=C);let fe=performance.now()<(d.motionUntil||0),we=d.nodes.length>40,Ke=we?1.5:.55,We=d.selectedId||d.hoverId,it=pf({panX:d.panX,panY:d.panY,zoom:d.zoom,w:d.w,h:d.h,margin:80}),ln=(()=>{let C=(d.searchTerm||"").toLowerCase();if(!C)return null;let pe=[];for(let ze of d.nodes){let Ue=(d.domainById[ze.id]||{}).kind||"other";if(((ze.name||"").toLowerCase().includes(C)||String(Et[Ue]||"").toLowerCase().includes(C)||String(Ue).toLowerCase().includes(C))&&pe.push(ze.id),pe.length>200)break}return pe})(),ct=ff(d.nodes,{limit:mf(d.nodes.length),focusId:We,hoverId:d.hoverId,searchHits:ln,degree:He}),er=new Map,Io=(C,pe)=>{let ze=C+"|"+pe,Re=er.get(ze);return Re===void 0&&(x.font=C,Re=x.measureText(pe).width,er.set(ze,Re)),Re},xl=d.nodes.length<=250,wl=new Map,Zf=d.nodes.length>1200&&d.zoom<.3;d.edges.forEach(C=>{if(Zf)return;let pe=X[C.sourceNodeId],ze=X[C.targetNodeId];if(!pe||!ze||!cl(pe.x,pe.y,10,it)&&!cl(ze.x,ze.y,10,it))return;if(K!=="all"){let kl=d.domainById[C.sourceNodeId]&&d.domainById[C.sourceNodeId].kind,Sl=d.domainById[C.targetNodeId]&&d.domainById[C.targetNodeId].kind;if(kl!==K&&Sl!==K)return}if(E){let kl=d.domainById[C.sourceNodeId]&&(d.domainById[C.sourceNodeId].tags||[]).includes(E),Sl=d.domainById[C.targetNodeId]&&(d.domainById[C.targetNodeId].tags||[]).includes(E);if(!kl&&!Sl)return}let Re=ze.x-pe.x,Ue=ze.y-pe.y,St=Math.sqrt(Re*Re+Ue*Ue)||1,lt=fe?0:we?12:18,xt=-Ue/St*lt,zt=Re/St*lt,Xt=(pe.x+ze.x)/2+xt,Ct=(pe.y+ze.y)/2+zt,vn=Dn.colors[d.domainById[pe.id]&&d.domainById[pe.id].kind||"other"]||Dn.colors.other,Pa=We&&(C.sourceNodeId===We||C.targetNodeId===We),gd=We?Pa?.62:.09:d.planetLayer?.32:we?.18:.26,hd=parseInt(vn.slice(1,3),16),yd=parseInt(vn.slice(3,5),16),vd=parseInt(vn.slice(5,7),16),bd=Math.max(1,Number(C.weight)||1),xd=Pa?1.8+Math.min(4,bd):.9+Math.min(3,bd-1)*.45,wd=hd+","+yd+","+vd+","+gd+","+xd,Da=wl.get(wd);Da||(Da={path:new Path2D,stroke:"rgba("+hd+","+yd+","+vd+","+gd+")",width:xd},wl.set(wd,Da)),Da.path.moveTo(pe.x,pe.y),Da.path.quadraticCurveTo(Xt,Ct,ze.x,ze.y)}),wl.forEach(C=>{x.strokeStyle=C.stroke,x.lineWidth=C.width,x.stroke(C.path)});let La=null;We&&(La=new Set,d.edges.forEach(C=>{C.sourceNodeId===We?La.add(C.targetNodeId):C.targetNodeId===We&&La.add(C.sourceNodeId)}));let Ao=(C,pe={})=>{let ze=Ee(C.name,pe.maxChars||16),Re=1/d.zoom,Ue="500 "+(12*Re).toFixed(1)+"px -apple-system,Segoe UI,sans-serif";x.font=Ue;let lt=Io(Ue,ze)+16*Re,xt=18*Re,zt=C.y+C.r+(pe.gap===void 0?8:pe.gap)*Re,Xt=!0;for(let Ct of md)if(C.x-lt/2<Ct.x+Ct.w&&C.x+lt/2>Ct.x&&zt<Ct.y+Ct.h&&zt+xt>Ct.y){Xt=!1;break}return!Xt&&!pe.force?!1:(md.push({x:C.x-lt/2,y:zt,w:lt,h:xt}),x.fillStyle=Ne()?"rgba(30,30,35,0.92)":"rgba(255,255,255,0.92)",x.beginPath(),x.roundRect?x.roundRect(C.x-lt/2,zt,lt,xt,4*Re):x.rect(C.x-lt/2,zt,lt,xt),x.fill(),x.strokeStyle=Ne()?"rgba(255,255,255,0.08)":"rgba(0,0,0,0.08)",x.lineWidth=1*Re,x.stroke(),x.fillStyle=Ne()?pe.strong?"#eee":"#bbb":pe.strong?"#111":"#444",x.textAlign="center",x.fillText(ze,C.x,zt+13*Re),!0)},eg=(C,pe,ze)=>{let Re=1/d.zoom,{isSel:Ue,isHov:St,dimmed:lt}=ze;x.save(),x.globalAlpha=lt?.12:1;let xt=x.createRadialGradient(C.x,C.y,C.r*.7,C.x,C.y,C.r*1.9);xt.addColorStop(0,Qt(pe,.34)),xt.addColorStop(.5,Qt(pe,.12)),xt.addColorStop(1,Qt(pe,0)),x.fillStyle=xt,x.beginPath(),x.arc(C.x,C.y,C.r*1.9,0,Math.PI*2),x.fill(),x.save(),x.translate(C.x,C.y),x.rotate(-.34),x.strokeStyle=Qt(pe,Ue||St?.8:.32),x.lineWidth=Math.max(.8,1.1*Re),x.beginPath(),x.ellipse(0,0,C.r*1.5,C.r*.3,0,0,Math.PI*2),x.stroke(),x.restore(),x.save(),x.translate(C.x,C.y),x.save(),x.beginPath(),x.arc(0,0,C.r,0,Math.PI*2),x.clip();let zt=x.createRadialGradient(-C.r*.34,-C.r*.38,C.r*.08,0,0,C.r*1.08);zt.addColorStop(0,gt(pe,"#ffffff",.46)),zt.addColorStop(.52,pe),zt.addColorStop(1,gt(pe,"#000000",.44)),xl&&(x.shadowColor=Qt(pe,.45),x.shadowBlur=Ue?26:14),x.fillStyle=zt,x.beginPath(),x.arc(0,0,C.r,0,Math.PI*2),x.fill(),x.shadowBlur=0;let Xt=x.createLinearGradient(-C.r,-C.r,C.r,C.r);Xt.addColorStop(0,"rgba(255,255,255,0.10)"),Xt.addColorStop(.52,"rgba(0,0,0,0)"),Xt.addColorStop(1,"rgba(0,0,0,0.30)"),x.fillStyle=Xt,x.fillRect(-C.r,-C.r,C.r*2,C.r*2),x.beginPath(),x.arc(-C.r*.36,-C.r*.4,C.r*.3,0,Math.PI*2),x.fillStyle="rgba(255,255,255,0.14)",x.fill(),x.restore(),x.beginPath(),x.arc(0,0,C.r-Math.max(.5,1*Re)*.5,Math.PI*1.05,Math.PI*1.95),x.strokeStyle="rgba(255,255,255,0.34)",x.lineWidth=Math.max(.8,1.4*Re),x.stroke(),x.restore(),(Ue||St)&&(x.save(),x.beginPath(),x.arc(C.x,C.y,C.r+5,0,Math.PI*2),x.strokeStyle=Ue?"#ffffff":Qt(pe,.9),x.lineWidth=Ue?2.4:1.6,xl&&(x.shadowColor=pe,x.shadowBlur=12),x.stroke(),x.restore()),x.restore();let Ct=C.r*d.zoom;if(Ue||St||Ct>=11){let vn=Math.max(8,Math.min(22,Ct*.46))*Re;if(x.save(),x.textAlign="center",x.textBaseline="middle",x.font="800 "+vn.toFixed(1)+"px -apple-system,Segoe UI,sans-serif",x.fillStyle="rgba(255,255,255,0.97)",x.fillText(bf(C.count,{unit:F.current("graphCountWan"),locale:F.current("graphCountLocale")}),C.x,C.y-(Ct>=24?vn*.28:0)),Ct>=24){let Pa=F.current("graphCardsUnit");x.font="600 "+(vn*.46).toFixed(1)+"px -apple-system,Segoe UI,sans-serif",x.fillStyle="rgba(255,255,255,0.72)",x.fillText(Pa,C.x,C.y+vn*.82)}x.restore()}},md=[],Qr=[];d.nodes.forEach(C=>{if(!cl(C.x,C.y,C.r+2,it))return;let pe=d.domainById[C.id]||{},ze=pe.kind||"other",Re=d.timeMode?Cv(pe.updated):Dn.colors[ze]||Dn.colors.other,Ue=Dn.shapes[ze]||"circle",St=d.selectedId===C.id,lt=d.hoverId===C.id,xt=d.searchTerm||"",zt=!xt||(C.name||"").toLowerCase().includes(xt)||String(Et[ze]||"").toLowerCase().includes(xt)||String(ze).toLowerCase().includes(xt),Xt=K==="all"||ze===K,Ct=!E||(pe.tags||[]).includes(E),vn=We&&C.id!==We&&!(La&&La.has(C.id))||xt&&!zt||!Xt||!Ct;if(C.planet){Qr.push({n:C,color:Re,isSel:St,isHov:lt,dimmed:vn,ok:Xt&&Ct});return}x.save(),x.globalAlpha=vn?.08:1,(St||lt)&&xl&&(x.shadowColor=Re,x.shadowBlur=St?20:14),x.translate(C.x,C.y),he(0,0,C.r,Ue),x.fillStyle=an(Re,C.r),x.fill(),ze==="core"&&(x.fillStyle="#1b120e",x.font="700 "+Math.max(10,Math.round(C.r*.95))+"px sans-serif",x.textAlign="center",x.textBaseline="middle",x.fillText("\u2605",0,0)),x.restore(),St?(x.save(),he(C.x,C.y,C.r+3,Ue),x.strokeStyle=Re,x.lineWidth=3,x.shadowColor=Re,x.shadowBlur=12,x.stroke(),x.restore()):lt?(x.save(),he(C.x,C.y,C.r+2,Ue),x.strokeStyle=Re,x.lineWidth=2,x.stroke(),x.restore()):xt&&zt?(x.save(),he(C.x,C.y,C.r+2,Ue),x.strokeStyle="#e11d48",x.lineWidth=2,x.stroke(),x.restore()):d.multi.indexOf(C.id)>=0&&(x.save(),he(C.x,C.y,C.r+2,Ue),x.strokeStyle="#60a5fa",x.lineWidth=2,x.shadowColor="#60a5fa",x.shadowBlur=8,x.stroke(),x.restore()),(St||lt||!fe&&(ct.has(C.id)&&d.zoom>Ke||!we&&d.zoom>.6))&&Xt&&Ct&&Ao(C,{force:St||lt})}),Qr.forEach(C=>eg(C.n,C.color,C));let fd=Qr.length<=12?1/0:8,_o=new Set;if(Number.isFinite(fd)?(Qr.filter(C=>(C.isSel||C.isHov)&&C.ok).forEach(C=>{_o.add(C.n.id),Ao(C.n,{gap:8,force:!0,maxChars:20})}),Qr.filter(C=>C.ok&&!_o.has(C.n.id)).sort((C,pe)=>(pe.n.count||0)-(C.n.count||0)).slice(0,fd).forEach(C=>{_o.has(C.n.id)||(_o.add(C.n.id),Ao(C.n,{gap:8,maxChars:20}))})):Qr.forEach(C=>{C.ok&&Ao(C.n,{gap:8,force:C.isSel||C.isHov,maxChars:20})}),x.restore(),d.marquee){let C=d.marquee,pe=Math.min(C.sx,C.ex),ze=Math.min(C.sy,C.ey),Re=Math.abs(C.ex-C.sx),Ue=Math.abs(C.ey-C.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(pe,ze,Re,Ue),x.strokeRect(pe,ze,Re,Ue),x.restore()}if(d.hoverId&&j.current){let C=d.domainById[d.hoverId],pe=d.nodes.find(function(ze){return ze.id===d.hoverId});if(C&&pe){let ze=d.edges.filter(function(lt){return lt.sourceNodeId===C.id||lt.targetNodeId===C.id}).length,Re=pe.x*d.zoom+d.panX,Ue=pe.y*d.zoom+d.panY;j.current.style.display="block",j.current.style.left=Re+14+"px",j.current.style.top=Ue-6+"px";let St=pe.planet?F.current("graphPlanetCards").replace("{n}",String(pe.count))+" \xB7 "+F.current("graphEnter"):F.current("connCount").replace("{n}",ze);j.current.innerHTML="<b>"+G(C.title||C.name||"")+'</b><br/><span style="opacity:.8">'+G(C.kind||"")+" \xB7 "+G(St)+"</span>"}}else j.current&&(j.current.style.display="none")},Ge=0,za=0,Er=0,zr=()=>{d.motionUntil=performance.now()+140,Er&&Ve.clearTimeout(Er),Er=Ve.setTimeout(()=>{Er=0,M()},160)},M=()=>{za||(za=Ve.raf(()=>{za=0;let E=performance.now();try{Zn()}catch(K){Sr(K,"render")}d.lastRenderMs=performance.now()-E}))};d.requestRender=M;let Y=()=>{Ge>0||(d.alpha=Math.max(d.alpha||0,.35),d.running=!0,d.raf||(d.raf=Ve.raf(Se)))};d.wake=Y,d.render=Zn;let re=()=>{if(!In)return;let E=d.nodes.filter(G=>G.planet);if(!E.length)return;let K=12;for(let G=0;G<E.length;G++)for(let $=G+1;$<E.length;$++){let X=E[G],fe=E[$],we=fe.x-X.x,Ke=fe.y-X.y,We=Math.sqrt(we*we+Ke*Ke)||1,it=X.r+fe.r+K;if(We>=it)continue;let ln=(it-We)*.5,ct=we/We,er=Ke/We;X.x-=ct*ln,X.y-=er*ln,fe.x+=ct*ln,fe.y+=er*ln,X.vx*=.4,X.vy*=.4,fe.vx*=.4,fe.vy*=.4}for(let G of E)for(let $ of d.nodes){if($.planet)continue;let X=$.x-G.x,fe=$.y-G.y,we=Math.sqrt(X*X+fe*fe)||1,Ke=G.r+$.r+8;if(we>=Ke)continue;let We=Ke-we;$.x+=X/we*We,$.y+=fe/we*We,$.vx*=.5,$.vy*=.5}},be=()=>{let E=performance.now(),K=hf(d,{params:d.forceParams,alphaFloor:d.drift?1:0,damping:d.drift?.8:void 0});re(),d.lastTickMs=performance.now()-E,d.lastRms=K.rms,d.autoFitPending&&d.tickCount>45&&(d.autoFitPending=!1,qt())},Se=()=>{if(d.running){if(d.quietTicks>qc&&(d.quietTicks=0,d.drift||(d.drift=!0,d.alpha=Math.max(d.alpha||0,1),d.motionUntil=0,d.userTouched||qt())),d.drift&&!d.dragNode&&(d.driftFrame=(d.driftFrame|0)+1,d.driftFrame%2)){d.raf=Ve.raf(Se);return}try{let E=performance.now(),K=d.dragNode||d.drift?1:6,G=0;do be(),G+=1;while(!d.dragNode&&!d.drift&&G<K&&performance.now()-E<18&&d.quietTicks<=qc);d.drift||(d.motionUntil=performance.now()+60);let $=performance.now();Zn(),d.lastRenderMs=performance.now()-$}catch(E){Sr(E,"step")}d.raf=Ve.raf(Se)}},Ce=()=>({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});d.stats=Ce,globalThis.__meGraphStats=Ce;let ht=()=>{let E=N.getBoundingClientRect(),K=E.width?N.clientWidth/E.width:1,G=E.height?N.clientHeight/E.height:1;return{level:d.levelId||"",planetLayer:!!d.planetLayer,nodes:d.nodes.length,planets:d.nodes.filter($=>$.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,resources:Ve.snapshot(),screen:d.nodes.map($=>({id:$.id,label:$.name,planet:!!$.planet,count:$.count||0,x:E.left+($.x*d.zoom+d.panX)/K,y:E.top+($.y*d.zoom+d.panY)/G,r:Math.max(4,$.r*d.zoom/K)}))}};d.runtime=ht,globalThis.__meGraphRuntime=ht;let yn=(E,K)=>{let G=N.getBoundingClientRect(),$=G.width?N.clientWidth/G.width:1,X=G.height?N.clientHeight/G.height:1;return{x:(E-G.left)*$,y:(K-G.top)*X}},on=(E,K)=>{let G=yn(E,K);return{x:(G.x-d.panX)/d.zoom,y:(G.y-d.panY)/d.zoom}},Ht=E=>{let K=d.domainById[E];return!(!K||z.current!=="all"&&K.kind!==z.current||J.current&&!(K.tags||[]).includes(J.current))},Wt=(E,K,G)=>Math.max(K,Math.min(G,E)),hl=E=>{d.mouseX=E.clientX,d.mouseY=E.clientY;let K=on(E.clientX,E.clientY),G=null;for(let $=d.nodes.length-1;$>=0;$--){let X=d.nodes[$];if(!Ht(X.id))continue;let fe=X.x-K.x,we=X.y-K.y;if(fe*fe+we*we<X.r*X.r+36){G=X.id;break}}G!==d.hoverId&&(d.hoverId=G,d.motionUntil=performance.now()+140,M())},yl=E=>{if(E.button!==0)return;let K=on(E.clientX,E.clientY),G=null;for(let $=d.nodes.length-1;$>=0;$--){let X=d.nodes[$];if(!Ht(X.id))continue;let fe=X.x-K.x,we=X.y-K.y;if(fe*fe+we*we<X.r*X.r+25){G=X;break}}if(E.shiftKey){if(G){d.shiftClick=G.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=G||null,G&&(d.dragOffset={dx:G.x-K.x,dy:G.y-K.y})},Kf=E=>{if(d.marquee){d.marquee.ex=E.clientX,d.marquee.ey=E.clientY,zr(),M();return}if(!d.dragStart)return;let K=E.clientX-d.dragStart.x,G=E.clientY-d.dragStart.y;if(Math.abs(K)+Math.abs(G)>3&&!d.dragging&&(d.dragging=!0,d.dragNode&&(d.alpha=Math.max(d.alpha||0,.35))),d.dragNode){let $=on(E.clientX,E.clientY);d.dragNode.x=$.x+d.dragOffset.dx,d.dragNode.y=$.y+d.dragOffset.dy,zr(),Y()}else d.dragging&&(d.panX=Wt(d.dragStart.px+K,-1e5,1e5),d.panY=Wt(d.dragStart.py+G,-1e5,1e5),zr(),M())},Yf=E=>{if(d.marquee){let $=d.marquee;d.marquee=null;let X=yn($.sx,$.sy),fe=yn($.ex,$.ey),we=Math.min(X.x,fe.x),Ke=Math.max(X.x,fe.x),We=Math.min(X.y,fe.y),it=Math.max(X.y,fe.y),ln=d.nodes.filter(ct=>!ct.planet&&Ht(ct.id)).filter(ct=>{let er=ct.x*d.zoom+d.panX,Io=ct.y*d.zoom+d.panY;return er>=we&&er<=Ke&&Io>=We&&Io<=it}).map(ct=>ct.id);d.multi=ln,se(ln),zr(),M();return}let K=d.dragStart&&!d.dragging,G=!!d.dragNode&&!!d.dragging;if(d.shiftClick){let $=d.shiftClick;d.shiftClick=null;let X=d.nodeById.get($);if(X&&X.planet){d.selectedId=$,ke($),M();return}let fe=Array.isArray(d.multi)?d.multi.slice():[];fe.includes($)||fe.push($),d.multi=fe,se(fe),M();return}if(K){let $=on(E.clientX,E.clientY),X=null;for(let fe=d.nodes.length-1;fe>=0;fe--){let we=d.nodes[fe];if(!Ht(we.id))continue;let Ke=we.x-$.x,We=we.y-$.y;if(Ke*Ke+We*We<we.r*we.r+20){X=we;break}}if(X&&X.planet){d.selectedId=null,ke(null),M(),d.dragStart=null,d.dragging=!1,d.dragNode=null,ye.current&&ye.current(X.id);return}X?d.selectedId===X.id?(d.selectedId=null,ke(null),M()):(d.selectedId=X.id,ke(X.id),M()):(d.selectedId=null,d.hoverId=null,E.shiftKey||(d.multi=[],se([])),ke(null),M())}d.dragStart=null,d.dragging=!1,d.dragNode=null,G&&Y()},Qf=E=>{E.preventDefault();let K=on(E.clientX,E.clientY),G=null;for(let $=d.nodes.length-1;$>=0;$--){let X=d.nodes[$];if(!Ht(X.id))continue;let fe=X.x-K.x,we=X.y-K.y;if(fe*fe+we*we<X.r*X.r+25){G=X;break}}if(G){let $=d.domainById[G.id];$&&k({x:E.clientX,y:E.clientY,id:G.id,path:$.id,title:$.title,planet:!!G.planet,count:G.count||0})}else k(null)},qf=E=>{E.preventDefault();let K=yn(E.clientX,E.clientY),G=(K.x-d.panX)/d.zoom,$=(K.y-d.panY)/d.zoom,X=Math.max(.3,Math.min(3,d.zoom*(E.deltaY<0?Kr:1/Kr)));d.panX=Wt(d.panX+G*(d.zoom-X),-1e5,1e5),d.panY=Wt(d.panY+$*(d.zoom-X),-1e5,1e5),d.zoom=X,d.userTouched=!0,zr(),M()};Ve.listen(N,"mousemove",hl),Ve.listen(N,"mousedown",yl),Ve.listen(window,"mousemove",Kf),Ve.listen(window,"mouseup",Yf),Ve.listen(N,"wheel",qf,{passive:!1}),Ve.listen(N,"contextmenu",Qf),f.current=()=>{d.selectedId=null,d.hoverId=null,d.multi=[],se([]),d.userTouched=!1,qt(),zr(),M()},Ge=gf(d.nodes.length);let Ra=Ge,Xf=()=>Ra>0?Math.round((Ra-Ge)/Ra*100):100;Ge>0&&Me(0);let vl=Ra>0?[.75,.5,.25].map(E=>Math.round(Ra*E)):[],bl=()=>{if(!d.running)return;let E=performance.now();for(;Ge>0&&performance.now()-E<12;)be(),Ge--;if(Me(Ge>0?Math.min(99,Xf()):100),vl.length&&Ge<=vl[0]){vl.shift(),d.userTouched||qt();try{Zn()}catch(K){Sr(K,"warm-frame")}}if(Ge>0){d.userTouched||qt(),d.warmRaf=Ve.raf(bl);return}d.warmRaf=0,d.userTouched||qt();try{Zn()}catch(K){Sr(K,"warm-final")}Me(null),Y()};d.warmStep=bl,qt();try{Zn()}catch(E){Sr(E,"first-frame")}Ge>0?d.warmRaf=Ve.raf(bl):(Me(0),Y());let Jf=()=>B(!1);return Ve.listen(window,"mousedown",Jf),()=>{if(d.running=!1,Ve.releaseAll(),globalThis.__meGraphStats===Ce)try{delete globalThis.__meGraphStats}catch{globalThis.__meGraphStats=void 0}if(globalThis.__meGraphRuntime===ht)try{delete globalThis.__meGraphRuntime}catch{globalThis.__meGraphRuntime=void 0}try{Le.disconnect()}catch{}}},[y,I,D]),(0,m.useEffect)(()=>{ke(null),se([]),k(null);let N=_.current;N&&(N.selectedId=null,N.multi=[])},[D]),(0,m.useEffect)(()=>{S!==void 0&&v.current&&requestAnimationFrame(()=>{try{v.current()}catch(N){Sr(N,"fit")}})},[S]),(0,a.jsxs)("div",{className:"me-graph",ref:P,children:[(0,a.jsxs)("div",{className:"me-graph-toolbar",children:[(0,a.jsxs)("span",{className:"me-graph-count",children:[R.length," ",u("graphItems")," \xB7 ",e&&e.total," ",u("graphCardsUnit")," \xB7 ",I.length," ",u("edges")]}),(0,a.jsx)("span",{className:"spacer",style:{flex:1}}),(0,a.jsx)("input",{type:"text",placeholder:u("search"),value:ae,onChange:N=>Fe(N.target.value)}),(0,a.jsxs)("span",{style:{position:"relative",display:"inline-flex"},children:[(0,a.jsxs)("button",{type:"button",className:"mc-btn",onClick:()=>B(N=>!N),"aria-expanded":De,title:u("filterLabel"),style:{borderRadius:8},children:["\u{1F50D} ",u("filterLabel")," ",ee!=="all"||me||O?"\u25CF":"\u25BE"]}),De&&(0,a.jsx)("div",{className:"me-graph-legend-pop",onMouseDown:N=>N.stopPropagation(),style:{position:"absolute",top:"calc(100% + 6px)",left:0,zIndex:50,background:"rgba(28,28,32,0.92)",backdropFilter:"blur(10px)",WebkitBackdropFilter:"blur(10px)",color:"#eee",border:"1px solid rgba(255,255,255,0.1)",borderRadius:10,padding:8,minWidth:240,boxShadow:"0 12px 34px rgba(0,0,0,.35)"},children:(0,a.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:4},children:[(0,a.jsx)("button",{type:"button",className:`lg${ee==="all"&&!me?" active":""}`,style:{justifyContent:"flex-start"},onClick:()=>{Ie("all"),Ae(!1)},children:u("all")}),Object.keys(Bt).map(N=>(0,a.jsxs)("button",{type:"button",className:`lg${ee===N?" active":""}`,style:{justifyContent:"flex-start"},onClick:()=>Ie(x=>x===N?"all":N),children:[(0,a.jsx)("span",{className:"mc-kind",style:{background:Dn.colors[N]||Bt[N]}}),u(Et[N])]},N)),(0,a.jsx)("div",{style:{height:1,background:"rgba(255,255,255,0.1)",margin:"4px 0"}}),(0,a.jsxs)("button",{type:"button",className:`lg${me?" active":""}`,style:{justifyContent:"flex-start"},onClick:()=>Ae(N=>!N),children:["\u23F1 ",u("timeDim")]}),Q.length>0&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{style:{height:1,background:"rgba(255,255,255,0.1)",margin:"4px 0"}}),(0,a.jsx)("div",{style:{maxHeight:130,overflow:"auto",display:"flex",flexWrap:"wrap",gap:4},children:Q.map(N=>(0,a.jsxs)("button",{type:"button",className:`lg${O===N.tag?" active":""}`,style:{color:"#ddd",padding:"2px 7px",fontSize:11},onClick:()=>T(x=>x===N.tag?"":N.tag),title:N.tag,children:["#",N.tag," ",(0,a.jsx)("span",{style:{opacity:.55},children:N.n})]},N.tag))})]}),(ee!=="all"||me||O)&&(0,a.jsxs)("button",{type:"button",className:"lg lg-clear",style:{justifyContent:"flex-start",color:"#f87171"},onClick:()=>{Ie("all"),Ae(!1),T("")},children:[u("clearFilter")," \u2715"]})]})})]}),(0,a.jsxs)("label",{className:"mc-btn",style:{display:"inline-flex",alignItems:"center",gap:5,cursor:"pointer"},title:u("crossVault"),children:[(0,a.jsx)("input",{type:"checkbox",checked:!!h,onChange:N=>g&&g(N.target.checked)}),u("crossVault")]}),(0,a.jsx)("button",{type:"button",className:`mc-btn${me?" me-on":""}`,onClick:()=>Ae(N=>!N),children:u("timeDim")}),(0,a.jsx)("button",{type:"button",className:"mc-btn",onClick:()=>{let N=L.current;if(N)try{N.toBlob(x=>{x&&at({url:URL.createObjectURL(x),blob:x})},"image/png")}catch{}},children:u("exportGraph")}),(0,a.jsx)("button",{type:"button",className:"mc-btn",onClick:()=>v.current&&v.current(),children:u("fit")}),(0,a.jsx)("button",{type:"button",className:"mc-btn",onClick:()=>{ke(null),Ie("all"),f.current&&f.current()},children:u("reset")})]}),(0,a.jsxs)("div",{className:"me-graph-canvas",style:{position:"relative",overflow:"hidden"},children:[(0,a.jsx)("canvas",{ref:L,style:{width:"100%",height:"100%",display:"block",cursor:"grab"}}),(0,a.jsx)(kv,{crumbs:t,t:u,onPick:l,busy:p}),(0,a.jsxs)("div",{className:"me-graph-levelchip",children:[(0,a.jsxs)("span",{children:[(0,a.jsx)("b",{children:R.length})," ",u("graphItems")]}),(0,a.jsxs)("span",{children:[(0,a.jsx)("b",{children:e&&e.total})," ",u("graphCardsUnit")]}),(0,a.jsxs)("span",{children:[(0,a.jsx)("b",{children:I.length})," ",u("edges")]})]}),c&&(0,a.jsxs)("div",{className:"me-graph-levelerr",role:"alert",children:[(0,a.jsx)("span",{style:{flex:"none",fontWeight:800},children:c.timeout?"\u23F1":"\u2715"}),(0,a.jsx)("span",{className:"msg",children:(c.timeout?u("graphLevelTimeout").replace("{ms}",String(1600)):u("graphLevelError"))+"\uFF1A"+c.message}),(0,a.jsx)("button",{type:"button",onClick:()=>s&&s(),children:u("graphRetry")})]}),!c&&p&&(0,a.jsxs)("div",{className:"me-graph-levelbusy",role:"status","aria-live":"polite",children:[(0,a.jsx)(ml,{small:!0}),u("graphLevelLoading")]}),oe!==null&&(0,a.jsxs)("div",{role:"status","aria-live":"polite",style:{position:"absolute",left:"50%",top:10,transform:"translateX(-50%)",zIndex:3,display:"flex",alignItems:"center",gap:9,padding:"6px 12px",borderRadius:999,background:"rgba(28,28,32,0.86)",backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)",color:"#eee",fontSize:11.5,fontWeight:600,letterSpacing:".02em",pointerEvents:"none",boxShadow:"0 6px 18px rgba(0,0,0,.22)"},children:[(0,a.jsx)(ml,{value:oe,small:!0}),(0,a.jsxs)("span",{children:[u("graphWarming").replace("{n}",R.length)," \xB7 ",Math.round(oe),"%"]})]}),(0,a.jsxs)("div",{className:"mc-v5-graph-legend",children:[(0,a.jsx)("div",{className:"mc-v5-graph-legend-title",children:"\u8FDE\u63A5\u7C07"}),Object.keys(Dn.colors).filter(N=>q[N]).map(N=>(0,a.jsxs)("div",{className:"mc-v5-graph-legend-row",children:[(0,a.jsx)("i",{style:{background:Dn.colors[N]}}),(0,a.jsx)("span",{children:u(Et[N]||"kindKnowledge")}),(0,a.jsx)("b",{children:q[N]})]},N))]}),(0,a.jsx)("div",{className:"me-graph-tooltip",ref:j,style:{display:"none",position:"absolute",zIndex:4,pointerEvents:"none",background:"rgba(28,28,32,0.88)",backdropFilter:"blur(10px)",WebkitBackdropFilter:"blur(10px)",color:"#eee",borderRadius:8,padding:"7px 10px",fontSize:12,maxWidth:220,boxShadow:"0 8px 24px rgba(0,0,0,.2)"}}),ge&&(0,a.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:u("noMatch")}),ve&&(0,a.jsx)("div",{className:"me-graph-ctx-back",style:{position:"fixed",inset:0,zIndex:30},onMouseDown:()=>k(null)}),ve&&(0,a.jsxs)("div",{className:"me-graph-ctxmenu",style:{position:"fixed",left:ve.x,top:ve.y,zIndex:31},onMouseDown:N=>N.stopPropagation(),children:[ve.planet&&(0,a.jsxs)("button",{type:"button",onClick:()=>{let N=ve.id;k(null),ye.current&&ye.current(N)},children:[u("graphEnter")," \u203A"]}),ve.planet&&(0,a.jsx)("div",{style:{padding:"4px 10px 6px",fontSize:11,opacity:.7},children:u("graphPlanetCards").replace("{n}",String(ve.count||0))}),!ve.planet&&(0,a.jsx)("button",{type:"button",onClick:()=>{W.current({path:ve.path,title:ve.title}),k(null)},children:u("openCard")}),!ve.planet&&(0,a.jsx)("button",{type:"button",onClick:()=>{ve.id&&(_.current.selectedId=ve.id,ke(ve.id)),k(null);let N=_.current;N&&N.requestRender&&N.requestRender()},children:u("focusNeighbors")}),(0,a.jsx)("button",{type:"button",onClick:()=>{try{navigator.clipboard&&navigator.clipboard.writeText(ve.title||"")}catch{}k(null),Je(u("copied"))},children:u("copyName")}),!ve.planet&&(0,a.jsx)("button",{type:"button",onClick:()=>{let N=_.current,x=N&&Array.isArray(N.multi)?N.multi.slice():[],ce=ve.id;if(ce&&!x.includes(ce)&&x.push(ce),k(null),x.length<2){Je(u("mergeNeed"),!1);return}if(!window.confirm(u("mergeConfirm")))return;let Ne=te.current&&te.current(x);Ne&&Ne.then?Ne.then(He=>He?Je(u("merged")):Je(u("mergeFail"),!1)).catch(()=>Je(u("mergeFail"),!1)):Ne&&Je(u("merged"))},children:u("merge")}),!ve.planet&&(0,a.jsx)("button",{type:"button",style:{color:"#f87171"},onClick:()=>{let N=ve.path;k(null),window.confirm(u("deleteConfirm"))&&(async()=>{try{(H.current?await H.current(N):!1)?Je(u("deleted")):Je(u("deleteFail"),!1)}catch{Je(u("deleteFail"),!1)}})()},children:u("delete")})]}),U.length>0&&(0,a.jsxs)("div",{style:{position:"absolute",left:10,top:10,zIndex:3,display:"flex",gap:8,alignItems:"center",background:"rgba(28,28,32,0.92)",backdropFilter:"blur(10px)",WebkitBackdropFilter:"blur(10px)",color:"#eee",borderRadius:10,padding:"6px 10px",fontSize:12,boxShadow:"0 10px 30px rgba(0,0,0,.25)"},children:[(0,a.jsxs)("span",{style:{fontWeight:700},children:[U.length," ",u("nodes")]}),(0,a.jsx)("button",{type:"button",className:"mc-btn",onClick:()=>{let x=U.map(ot=>$e[ot]).filter(Boolean).map(ot=>ot.title||ot.name).join(`
|
|
968
|
-
`),ce=new Blob([x],{type:"text/plain;charset=utf-8"}),Ne=URL.createObjectURL(ce),He=document.createElement("a");He.href=Ne,He.download="memory-selected.txt",document.body.appendChild(He),He.click(),document.body.removeChild(He),setTimeout(()=>URL.revokeObjectURL(Ne),1e3),Je(U.length+u("exportedSel"))},children:u("exportSel")}),(0,a.jsx)("button",{type:"button",className:"mc-btn",onClick:()=>{if(U.length<2){Je(u("mergeNeed"),!1);return}let N=U.map(ce=>$e[ce]?$e[ce].id:ce);if(!window.confirm(u("mergeConfirm")))return;se([]);let x=_.current;x&&(x.multi=[]),fetch(`${Z}/merge?paths=${encodeURIComponent(N.join(","))}`).then(ce=>ce.json()).then(ce=>{ce&&ce.ok?Je(u("merged")):Je(u("mergeFail"),!1)}).catch(()=>Je(u("mergeFail"),!1))},children:u("merge")}),(0,a.jsx)("button",{type:"button",className:"mc-btn",style:{color:"#f87171"},onClick:()=>{if(!window.confirm(u("deleteConfirm")))return;let N=U.map(ce=>$e[ce]?$e[ce].id:ce);se([]);let x=_.current;x&&(x.multi=[]),(async()=>{let ce=0;for(let Ne of N)try{(H.current?await H.current(Ne):!1)&&ce++}catch{}Je(ce+u("deletedSelected"),ce>0)})()},children:u("deleteSelected")}),(0,a.jsx)("button",{type:"button",className:"mc-btn",onClick:()=>{let N=_.current;N&&(N.multi=[]),se([]);let x=_.current;x&&x.render&&x.render()},children:u("clearSelection")})]}),w&&$e[w]&&(0,a.jsxs)("div",{className:"me-graph-sidebar",style:{position:"absolute",right:10,top:10,zIndex:3,maxWidth:240,background:"rgba(28,28,32,0.92)",backdropFilter:"blur(10px)",WebkitBackdropFilter:"blur(10px)",color:"#eee",borderRadius:10,padding:12,fontSize:12,boxShadow:"0 10px 30px rgba(0,0,0,.25)"},children:[(0,a.jsx)("div",{style:{fontWeight:700,fontSize:13,marginBottom:4},children:$e[w]?$e[w].title||$e[w].name:w}),(0,a.jsxs)("div",{style:{opacity:.8,marginBottom:8},children:[$e[w]?u(Et[$e[w].kind]||"kindKnowledge"):"\u2014",$e[w]&&$e[w].type==="planet"?" \xB7 "+u("graphPlanetCards").replace("{n}",String($e[w].count||0)):""]}),$e[w]&&$e[w].type==="planet"&&(0,a.jsxs)("button",{type:"button",className:"mc-btn",style:{width:"100%",marginBottom:8},onClick:()=>{let N=w;ke(null),ye.current&&ye.current(N)},children:[u("graphEnter")," \u203A"]}),(0,a.jsx)("div",{style:{fontSize:11,opacity:.65,letterSpacing:".04em",marginBottom:6},children:u("graphLevelHint")}),(I.filter(N=>N.source===w||N.target===w)||[]).slice(0,8).map((N,x)=>{let ce=N.source===w?N.target:N.source,Ne=$e[ce];return(0,a.jsx)("div",{style:{padding:"4px 6px",cursor:"pointer",borderRadius:6},onMouseDown:He=>{He.preventDefault();let ot=_.current;ot&&(ot.selectedId=ce,ot.hoverId=ce,ot.requestRender&&ot.requestRender()),ke(ce)},children:Ne?(Ne.title||Ne.name).slice(0,28):ce},x)})]})]}),(0,a.jsx)("div",{className:"me-graph-tip",children:u("graphTip")}),Oe&&(0,a.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 "+(Oe.ok?"#22c55e":"#ef4444"),maxWidth:"90vw"},children:[(0,a.jsx)("span",{style:{color:Oe.ok?"#34d399":"#f87171",fontWeight:800,fontSize:15},children:Oe.ok?"\u2713":"\u2715"}),(0,a.jsx)("span",{style:{wordBreak:"break-all"},children:Oe.msg})]}),xe&&(0,a.jsxs)("div",{className:"me-overlay",onClick:()=>{xe.url&&URL.revokeObjectURL(xe.url),at(null),pt(!1)},children:[(0,a.jsx)("style",{children:gn}),(0,a.jsxs)("div",{className:"me-dialog",style:{maxWidth:et?"100vw":900,width:et?"100vw":"92vw",maxHeight:et?"100%":"90vh",height:et?"100%":void 0,borderRadius:et?0:14},onClick:N=>N.stopPropagation(),children:[(0,a.jsxs)("div",{className:"me-dialog-head",children:[(0,a.jsx)("h3",{children:u("exportGraph")}),(0,a.jsxs)("div",{className:"me-head-actions",children:[(0,a.jsx)("a",{className:"mc-btn",href:xe.url,download:"memory-graph.png",onClick:()=>{Mr("download"),Je(u("downloaded")+" \xB7 "+u("defaultDownloads"))},style:{textDecoration:"none",display:"inline-flex",alignItems:"center"},children:u(ft==="download"?"done":"download")}),(0,a.jsx)("button",{type:"button",className:"mc-btn",onClick:()=>{Mr("full"),pt(N=>!N),Je(u("fullscreen"))},children:u(ft==="full"?"done":et?"exitFull":"fullscreen")}),(0,a.jsx)("button",{type:"button",className:"mc-btn",onClick:()=>{let N=xe.blob;N&&window.ClipboardItem&&navigator.clipboard?navigator.clipboard.write([new window.ClipboardItem({"image/png":N})]).then(()=>{Mr("copy"),Je(u("copied"))}).catch(()=>{Je(u("copyFail"),!1)}):Je(u("copyFail"),!1)},children:u(ft==="copy"?"done":"copyImage")}),(0,a.jsx)("button",{type:"button",className:"mc-btn",onClick:()=>{xe.url&&URL.revokeObjectURL(xe.url),at(null),pt(!1)},children:u("close")})]})]}),(0,a.jsx)("div",{className:"me-dialog-body",style:{display:"flex",justifyContent:"center",background:et?"var(--dsw-alias-bg-base, #0b0d10)":"var(--dsw-alias-bg-base, #f3f4f6)"},children:(0,a.jsx)("img",{src:xe.url,alt:u("exportGraph"),style:{maxWidth:"100%",maxHeight:et?"calc(100% - 64px)":"70vh",borderRadius:et?0:8,cursor:"zoom-in"},onClick:()=>pt(N=>!N)})})]})]})]})}function Cv(e){let t=new Date(e||0).getTime();if(!t)return"#94a3b8";let n=(Date.now()-t)/864e5;return n<3?"#10b981":n<14?"#f59e0b":n<30?"#f97316":"#94a3b8"}function Af({label:e,value:t=[],options:n,onChange:r,placeholder:o,z:i=20}){let[l,s]=(0,m.useState)(!1),c=(0,m.useRef)(null);(0,m.useEffect)(()=>{if(!l)return;let P=_=>{c.current&&!c.current.contains(_.target)&&s(!1)};return document.addEventListener("mousedown",P),()=>document.removeEventListener("mousedown",P)},[l]);let p=Array.isArray(t)?t:[],u=p.includes("__all__"),h=u?n.find(P=>P.value==="__all__")?.label||"":p.length?p.map(P=>n.find(_=>_.value===P)?.label||P).join("\u3001"):"",g=(P,_)=>{if(P.value==="__all__"){r(_?["__all__"]:[]);return}let v=new Set(p);v.has("__all__")&&v.delete("__all__"),_?v.add(P.value):v.delete(P.value),r([...v])},S=n.find(P=>P.value==="__all__"),L=n.filter(P=>P.value!=="__all__");return(0,a.jsxs)("label",{className:"mc-field",children:[(0,a.jsx)("span",{className:"mc-field-label",children:e}),(0,a.jsxs)("div",{ref:c,style:{position:"relative",minWidth:0},children:[(0,a.jsxs)("button",{type:"button",onClick:()=>s(P=>!P),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,a.jsx)("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:h||o||"\u2014"}),(0,a.jsx)("span",{style:{fontSize:10,opacity:.7},children:"\u25BE"})]}),l&&(0,a.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:[S&&(0,a.jsxs)("label",{onClick:P=>P.stopPropagation(),style:{display:"flex",alignItems:"center",gap:6,padding:"6px 8px",cursor:"pointer",borderBottom:"1px solid rgba(127,127,127,0.12)"},children:[(0,a.jsx)("input",{type:"checkbox",checked:u,onChange:P=>g(S,P.target.checked)}),(0,a.jsx)("span",{children:S.label})]}),L.map(P=>(0,a.jsxs)("label",{onClick:_=>_.stopPropagation(),style:{display:"flex",alignItems:"center",gap:6,padding:"6px 8px",cursor:"pointer"},children:[(0,a.jsx)("input",{type:"checkbox",checked:p.includes(P.value),onChange:_=>g(P,_.target.checked)}),(0,a.jsx)("span",{children:P.label})]},P.value))]})]})]})}function Nv(e){let t=new Date(e||0).getTime();return!!t&&(Date.now()-t)/864e5<3}async function Mv(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 r=URL.createObjectURL(e),o=document.createElement("a");return o.href=r,o.download=t,document.body.appendChild(o),o.click(),document.body.removeChild(o),setTimeout(()=>URL.revokeObjectURL(r),1e3),{ok:!0,picked:!1,name:t}}function ed(e,t){if(!t||!e)return e;let n=e.toLowerCase(),r=t.toLowerCase(),o=[],i=0;for(;i<e.length;){let l=n.indexOf(r,i);if(l<0){o.push(e.slice(i));break}l>i&&o.push(e.slice(i,l)),o.push((0,a.jsx)("mark",{className:"mc-hl",children:e.slice(l,l+r.length)},l)),i=l+r.length}return o}function Qn(e){let t=zo(e);if(!t)return"";let n=t.toDateString()===new Date().toDateString(),r=sf(t);return n?r:`${t.getMonth()+1}-${t.getDate()} ${r}`}var pd=tr(Ro(),1);function Tv(){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 Ev(){let[e,t]=(0,Ea.useState)(Tv);(0,Ea.useEffect)(()=>{let r=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",r),()=>window.removeEventListener("message",r)},[]);let n=(0,Ea.useMemo)(()=>r=>(e==="zh"?ld:_f)[r]??ld[r]??r,[e]);return document.documentElement.lang=e==="zh"?"zh-CN":"en",(0,pd.jsx)(jf,{t:n,inModal:!1})}var zv=(0,Vf.createRoot)(document.getElementById("root"));zv.render((0,pd.jsx)(Ev,{}));var Rv=0,Gf=()=>{let e=document.getElementById("root");if(e&&e.childElementCount>0){let t=document.getElementById("boot");t&&t.remove();return}++Rv<900&&requestAnimationFrame(Gf)};requestAnimationFrame(Gf);})();
|
|
1033
|
+
`);let mn=new Blob([Ce],{type:ut}),Nn=await Rv(mn,ve,!1);if(!Nn.ok){ie({ok:!1,msg:e("exportFail")}),J(!1);return}ie({ok:!0,msg:e("exportedTo")+"\uFF1A"+e("defaultDownloads")+" \xB7 "+Nn.name})}catch(re){ie({ok:!1,msg:e("exportFail")+" \xB7 "+(re.message||"")})}finally{J(!1)}j.current&&clearTimeout(j.current),j.current=setTimeout(()=>ie(null),2600)},en=async z=>{let X=z.target.files&&z.target.files[0];if(z.target.value="",!!X){try{let re=await X.text(),Ce=await(await fetch(`${ee}/import`,{method:"POST",headers:{"Content-Type":"application/json"},body:re})).json();if(Ce.ok){await yt();let ve=Ce.imported||0,ut=e("importedVault")+"\uFF1A"+ve;Ce.total&&(ut+=e("importedTotal")+Ce.total+e("importedTotalTail")),Ce.quarantined&&(ut+=e("importedQuarantine")+Ce.quarantined+e("importedQuarantineTail")),Ce.skipped&&(ut+=e("importedSkipped")+Ce.skipped+e("importedSkippedTail")),Ce.warning&&(ut+=" \xB7 "+Ce.warning),ie({ok:ve>0||!Ce.total,msg:ut})}else ie({ok:!1,msg:Ce.error||e("importFail")})}catch{ie({ok:!1,msg:e("importFail")})}j.current&&clearTimeout(j.current),j.current=setTimeout(()=>ie(null),2400)}},Sn=async()=>{if(!de){Be(!0);try{let z=await fetch(`${ee}/skills/sync`,{method:"POST"}).then(X=>X.json()).catch(()=>null);if(z&&z.ok){let X=e("skillsSyncDone")+" \xB7 "+e("skillsScanned")+" "+(z.total||0)+" \xB7 "+e("skillsCreated")+" "+(z.created||0)+" \xB7 "+e("skillsUpdated")+" "+(z.updated||0)+" \xB7 "+e("skillsPendingUpdates")+" "+(z.pendingUpdates||0);ie({ok:!0,msg:X}),await yt(),S()}else ie({ok:!1,msg:z&&z.error||e("skillsSyncFail")})}catch{ie({ok:!1,msg:e("skillsSyncFail")})}finally{Be(!1)}j.current&&clearTimeout(j.current),j.current=setTimeout(()=>ie(null),3600)}},vt=(0,m.useMemo)(()=>{let z=c.slice();return _!=="all"&&(z=z.filter(X=>Rr(X.submittedBy)===_)),R!=="all"&&(z=z.filter(X=>(X.status||"approved")===R)),W&&(z=z.filter(X=>A.has(X.path))),te==="title"?z.sort((X,re)=>String(X.title||"").localeCompare(String(re.title||""))):te==="hot"?z.sort((X,re)=>(re.weight||re.links||0)-(X.weight||X.links||0)):z.sort((X,re)=>new Date(re.updated||0).getTime()-new Date(X.updated||0).getTime()),z},[c,te,_,R,W,A]),Cn=(0,m.useMemo)(()=>[...new Set(c.map(z=>Rr(z.submittedBy)))],[c]),An=(0,m.useMemo)(()=>{let z={};for(let X of c){let re=new Set(X.tags||[]),Se=0;for(let Ce of c)Ce.path!==X.path&&(Ce.tags||[]).some(ve=>re.has(ve))&&Se++;z[X.path]=Se}return z},[c]),[Bt,La]=(0,m.useState)(null),bt=(0,m.useMemo)(()=>{if(!vt.length)return null;let z=Bt?vt.find(re=>re.path===Bt):null;return z||vt.find(re=>Date.now()-new Date(re.updated||0).getTime()>21*864e5)||vt[0]},[vt,Bt]),or=()=>{if(!vt.length)return;let z=vt.findIndex(X=>X.path===(bt&&bt.path));La(vt[(z+1+vt.length)%vt.length].path)},Nt=!f&&F==="all"&&!se&&R==="all"&&!!bt;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:sl,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(V==="cards"?"cardsTab":V==="graph"?"graphTab":V==="news"?"newsTab":V==="stats"?"tabUsage":V==="audit"?"tabAudit":V==="optimize"?"tabRecycle":V==="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",za]}),(0,r.jsxs)("button",{type:"button",className:"mc-v5-star",onClick:()=>ad("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:()=>Ue("group"),title:e("supportTitle"),"aria-label":e("supportTitle"),children:"?"})]})]}),Ie&&(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 "+(Ie.ok?"#22c55e":"#ef4444"),maxWidth:"90vw"},children:[(0,r.jsx)("span",{style:{color:Ie.ok?"#34d399":"#f87171",fontWeight:800,fontSize:15},children:Ie.ok?"\u2713":"\u2715"}),(0,r.jsx)("span",{children:Ie.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:sl,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?ar(new Date(g.since).toISOString()):""})]}),(0,r.jsxs)("div",{className:"me-modal-body",children:[(0,r.jsxs)("div",{className:`mc-rail${He?" open":""}`,children:[(0,r.jsxs)("div",{className:"mc-v5-rail-top",children:[He&&(0,r.jsxs)("div",{className:"mc-v5-railbrand",children:[(0,r.jsx)("img",{className:"mark",src:sl,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:()=>Ze(z=>!z),"aria-label":e(He?"collapse":"expand"),title:e(He?"collapse":"expand"),children:He?"\xAB":"\xBB"})]}),He&&(0,r.jsx)("div",{className:"mc-rail-sec",children:e("navWorkspace")}),(0,r.jsxs)("button",{type:"button",className:`mc-railbtn${V==="cards"?" active":""}`,onClick:()=>ne("cards"),title:e("cardsTab"),children:[(0,r.jsx)("span",{className:"mc-rail-ico",children:"\u{1F9E0}"}),He&&(0,r.jsx)("span",{className:"mc-rail-label",children:e("cardsTab")})]}),(0,r.jsxs)("button",{type:"button",className:`mc-railbtn${V==="graph"?" active":""}`,onClick:()=>ne("graph"),title:e("graphTab"),children:[(0,r.jsx)("span",{className:"mc-rail-ico",children:"\u{1F52E}"}),He&&(0,r.jsx)("span",{className:"mc-rail-label",children:e("graphTab")})]}),(0,r.jsxs)("button",{type:"button",className:`mc-railbtn${V==="news"?" active":""}`,onClick:()=>ne("news"),title:e("newsTab"),children:[(0,r.jsx)("span",{className:"mc-rail-ico",children:"\u{1F4F0}"}),He&&(0,r.jsx)("span",{className:"mc-rail-label",children:e("newsTab")}),je>0&&(0,r.jsx)("span",{className:"mc-dot",children:je>99?"99+":je})]}),(0,r.jsxs)("button",{type:"button",className:`mc-railbtn${V==="stats"?" active":""}`,onClick:()=>ne("stats"),title:e("tabUsage"),children:[(0,r.jsx)("span",{className:"mc-rail-ico",children:"\u{1F4C8}"}),He&&(0,r.jsx)("span",{className:"mc-rail-label",children:e("tabUsage")})]}),(0,r.jsxs)("button",{type:"button",className:`mc-railbtn${V==="audit"?" active":""}`,onClick:()=>ne("audit"),title:e("tabAudit"),children:[(0,r.jsx)("span",{className:"mc-rail-ico",children:"\u{1F50D}"}),He&&(0,r.jsx)("span",{className:"mc-rail-label",children:e("tabAudit")}),O>0&&(0,r.jsx)("span",{className:"mc-dot",children:O>99?"99+":O})]}),He&&(0,r.jsx)("div",{className:"mc-rail-sec",children:e("navSystem")}),(0,r.jsxs)("button",{type:"button",className:`mc-railbtn${V==="optimize"?" active":""}`,onClick:()=>ne("optimize"),title:e("tabRecycle"),children:[(0,r.jsx)("span",{className:"mc-rail-ico",children:"\u267B\uFE0F"}),He&&(0,r.jsx)("span",{className:"mc-rail-label",children:e("tabRecycle")}),me>0&&(0,r.jsx)("span",{className:"mc-dot",style:{background:"#6b7280"},children:me>99?"99+":me})]}),(0,r.jsxs)("button",{type:"button",className:`mc-railbtn${V==="terminal"?" active":""}`,onClick:()=>ne("terminal"),title:e("terminalTab"),children:[(0,r.jsx)("span",{className:"mc-rail-ico",children:"\u25B8_"}),He&&(0,r.jsx)("span",{className:"mc-rail-label",children:e("terminalTab")})]}),(0,r.jsxs)("button",{type:"button",className:"mc-railbtn",onClick:ft,title:e("webTab"),"aria-label":e("webTab"),children:[(0,r.jsx)("span",{className:"mc-rail-ico",children:"\u{1F310}"}),He&&(0,r.jsx)("span",{className:"mc-rail-label",children:e("webTab")})]}),(0,r.jsxs)("button",{type:"button",className:`mc-railbtn${V==="config"?" active":""}`,onClick:()=>ne("config"),title:e("tabConfig"),children:[(0,r.jsx)("span",{className:"mc-rail-ico",children:"\u2699\uFE0F"}),He&&(0,r.jsx)("span",{className:"mc-rail-label",children:e("tabConfig")})]}),He&&(0,r.jsx)("div",{className:"mc-rail-sec",children:e("navSupport")}),(0,r.jsxs)("button",{type:"button",className:"mc-railbtn",onClick:()=>Ue("group"),title:e("supportGroup"),children:[(0,r.jsx)("span",{className:"mc-rail-ico",children:"\u{1F4AC}"}),He&&(0,r.jsx)("span",{className:"mc-rail-label",children:e("supportGroup")})]}),(0,r.jsxs)("button",{type:"button",className:"mc-railbtn",onClick:()=>Ue("sponsor"),title:e("supportSponsor"),children:[(0,r.jsx)("span",{className:"mc-rail-ico",children:"\u2615"}),He&&(0,r.jsx)("span",{className:"mc-rail-label",children:e("supportSponsor")})]}),(0,r.jsxs)("button",{type:"button",className:"mc-railbtn",onClick:()=>Ue("legacy"),title:e("supportLegacy"),children:[(0,r.jsx)("span",{className:"mc-rail-ico",children:"\u{1F9E9}"}),He&&(0,r.jsx)("span",{className:"mc-rail-label",children:e("supportLegacy")})]}),(0,r.jsxs)("button",{type:"button",className:"mc-railbtn",onClick:()=>xe(!0),title:e("fbNav"),children:[(0,r.jsx)("span",{className:"mc-rail-ico",children:"\u{1F41E}"}),He&&(0,r.jsx)("span",{className:"mc-rail-label",children:e("fbNav")})]}),He&&(0,r.jsxs)("button",{type:"button",className:"mc-quote",onClick:()=>rt(z=>(z+1)%fl.length),title:`${fl[cn]}
|
|
1034
|
+
${Pf}
|
|
1035
|
+
${e("quoteHint")}`,children:[(0,r.jsxs)("span",{className:"mc-quote-tag",children:[e("navQuotes")," \xB7 ",cn+1,"/",fl.length]}),(0,r.jsx)("span",{className:"mc-quote-text",children:fl[cn]},cn),(0,r.jsx)("span",{className:"mc-quote-src",children:Pf})]})]}),(0,r.jsxs)("div",{className:"mc-main",ref:Dr,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,V==="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," / ",dn]})]}),V==="cards"&&(0,r.jsxs)("div",{className:"mc-toolbar",children:[(0,r.jsx)("input",{type:"text",placeholder:e("searchPlaceholder"),value:f,onChange:z=>ae(z.target.value)}),se&&(0,r.jsxs)("button",{type:"button",className:"mc-chip active",title:e("clearFilter"),onClick:()=>ze(""),children:["\u{1F3F7} ",se," ",(0,r.jsx)("span",{style:{opacity:.7},children:"\u2715"})]}),(0,r.jsx)("input",{ref:H,type:"file",accept:".json,application/json",style:{display:"none"},onChange:en}),(0,r.jsx)("button",{type:"button",className:"mc-btn",onClick:()=>H.current&&H.current.click(),children:e("importVault")}),(0,r.jsxs)("button",{type:"button",className:"mc-btn me-on",onClick:()=>w({kind:"knowledge",title:"",body:"",tags:"",template:""}),children:["+ ",e("newCard")]}),(0,r.jsx)("button",{type:"button",className:"mc-btn",disabled:de,onClick:Sn,title:e("skillCardsHint"),children:de?"\u23F3 "+e("syncingSkills"):"\u{1F9E9} "+e("syncSkills")}),(0,r.jsx)("button",{type:"button",className:"mc-btn",disabled:M,onClick:()=>Fe("md"),children:e(M?"exporting":"exportVault")}),(0,r.jsx)("button",{type:"button",className:"mc-btn",disabled:M,onClick:()=>Fe("json"),children:e(M?"exporting":"exportJson")}),(0,r.jsx)("button",{type:"button",className:"mc-btn",onClick:()=>yt(),children:e("refresh")})]}),V==="cards"&&(0,r.jsxs)("div",{className:"mc-chips",children:[yl.map(z=>(0,r.jsxs)("button",{type:"button",className:`mc-chip${F===z?" active":""}`,onClick:()=>fe(z),children:[e(z==="all"?"all":Lt[z]),(0,r.jsx)("span",{className:"mc-chip-n",children:z==="all"?o?.total??0:o?.byKind?.[z]??0})]},z)),(0,r.jsxs)("button",{type:"button",className:`mc-chip${W?" active":""}`,onClick:()=>le(z=>!z),children:["\u{1F4CC} ",e("pinnedOnly"),(0,r.jsx)("span",{className:"mc-chip-n",children:A.size})]}),(0,r.jsxs)("select",{value:_,onChange:z=>I(z.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")]}),Wf(Cn).map(z=>(0,r.jsx)("option",{value:z,children:z},z))]}),(0,r.jsxs)("select",{value:R,onChange:z=>P(z.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(z=>(0,r.jsx)("button",{type:"button",className:`mc-chip${te===z.key?" active":""}`,onClick:()=>$e(z.key),children:z.label},z.key))]}),L&&(0,r.jsxs)("div",{className:"mc-empty",children:[e("error"),"\uFF1A",L]}),(0,r.jsx)("div",{style:{display:V==="cards"?"contents":"none"},children:u?(0,r.jsx)(Yf,{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:()=>yt(),children:e("retry")})]}):c.length===0?(0,r.jsx)("div",{className:"mc-empty",children:e("empty")}):(0,r.jsxs)(r.Fragment,{children:[Nt&&(0,r.jsxs)("div",{className:"mc-v5-feature",onClick:()=>Te(bt),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:bt.title}),(0,r.jsx)("p",{children:fd(bt)}),(0,r.jsxs)("div",{className:"mc-v5-feature-meta",children:[(0,r.jsxs)("span",{children:[Lr[bt.kind]||"\u{1F4CE}"," ",e(Lt[bt.kind]||"kindKnowledge")]}),(0,r.jsxs)("span",{children:["\u{1F552} ",ar(bt.updated)]}),(bt.tags||[]).slice(0,3).map(z=>(0,r.jsxs)("span",{children:["#",z]},z))]})]}),(0,r.jsxs)("div",{className:"mc-v5-feature-side",children:[(0,r.jsx)(Kf,{n:An[bt.path]||0,color:Gt[bt.kind]||Gt.other,size:58}),(0,r.jsx)("b",{children:An[bt.path]||0}),(0,r.jsx)("span",{children:e("links")}),(0,r.jsx)("button",{type:"button",className:"mc-v5-feature-shuffle",onClick:z=>{z.stopPropagation(),or()},children:e("reshuffle")}),(0,r.jsx)("span",{className:"mc-v5-feature-open",children:e("openArrow")})]})]}),(0,r.jsx)("div",{className:"mc-grid",children:vt.filter(z=>!Nt||z.path!==bt.path).map(z=>(0,r.jsx)(vv,{card:z,t:e,query:f.trim(),onOpen:Te,onDelete:b,onTagClick:ze,pinned:A.has(z.path),onPin:ye,onCore:Re,links:An[z.path]||0},z.path))}),c.length<dn&&(0,r.jsx)("div",{ref:pn,style:{height:1}}),Zt&&(0,r.jsxs)("div",{className:"mc-empty",style:{padding:"10px 0"},children:[e("loading"),"\uFF08",c.length," / ",dn,"\uFF09"]})]})}),(0,r.jsx)("div",{style:{display:V==="graph"?"flex":"none",flex:1,minHeight:0},children:T.has("graph")&&(0,r.jsx)(Nv,{t:e,onOpen:Te,all:$,onAllChange:we,onMutate:S,active:V==="graph",visible:V==="graph"})}),(0,r.jsx)("div",{style:{display:V==="news"?"contents":"none"},children:T.has("news")&&(0,r.jsx)(fv,{t:e,version:ce,onUnreadChange:pe})}),(0,r.jsx)("div",{style:{display:V==="terminal"?"contents":"none"},children:T.has("terminal")&&(0,r.jsx)(Xy,{t:e})}),(0,r.jsx)("div",{style:{display:V==="config"?"contents":"none"},children:T.has("config")&&(0,r.jsx)(ev,{t:e,onReload:()=>yt(),version:ce})}),(0,r.jsx)("div",{style:{display:V==="stats"?"contents":"none"},children:T.has("stats")&&(0,r.jsx)(bv,{t:e,tab:"stats",onReload:()=>yt(),version:ce})}),(0,r.jsx)("div",{style:{display:V==="audit"?"contents":"none"},children:T.has("audit")&&(0,r.jsx)(tv,{t:e,onReload:()=>{yt(),S()},version:ce})}),(0,r.jsx)("div",{style:{display:V==="optimize"?"contents":"none"},children:T.has("optimize")&&(0,r.jsx)(hv,{t:e,onReload:()=>{yt(),S()},version:ce})}),De&&(0,r.jsx)(xv,{t:e,onClose:()=>xe(!1)}),ke&&(0,r.jsx)(kv,{t:e,tab:ue,onTab:Ne,onClose:()=>U(!1),onFeedback:()=>{U(!1),xe(!0)},onReplay:()=>{U(!1),ht(!0)}}),be&&(0,r.jsx)(Sv,{t:e,onDone:Jt}),x&&(0,r.jsx)(Cv,{t:e,card:x,query:f.trim(),onNavigate:z=>{let X=vt.findIndex(Se=>Se.path===x.path),re=vt[X+z];re&&Te(re)},onTagClick:ze,onClose:()=>Q(null),onDelete:z=>{Q(null),b(z)},onFeedback:z=>{let X=x.path;fetch(`${ee}/feedback`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({query:f.trim(),path:X,useful:z})}).then(()=>ie({ok:!0,msg:e(z?"fbUseful":"fbIrr")})).catch(()=>{}),j.current&&clearTimeout(j.current),j.current=setTimeout(()=>ie(null),2e3)},allCards:vt,onOpenRelated:z=>Te(z),onKindChange:Re,onSaved:async({path:z,status:X,title:re})=>{try{let Se=X&&X!=="approved"?`&status=${encodeURIComponent(X)}`:"",Ce=await fetch(`${ee}/card?path=${encodeURIComponent(z)}${Se}`).then(ve=>ve.json());Ce&&Ce.ok&&Q(ve=>ve&&ve.path===z?{...ve,title:re||Ce.title||ve.title,text:Ce.text}:ve)}catch{}await yt(),S(),ie({ok:!0,msg:e("editSaved")}),j.current&&clearTimeout(j.current),j.current=setTimeout(()=>ie(null),2e3)}}),(0,r.jsx)(wv,{t:e,newCard:N,setNewCard:w,onCreated:()=>{yt(),S(),ie({ok:!0,msg:e("created")}),j.current&&clearTimeout(j.current),j.current=setTimeout(()=>ie(null),2e3)}})]})]})]})}var vl=({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 ud=(0,m.createContext)({form:null,set:()=>{}}),Zy=new Set(["autoRestartOnDrift","coreMemoryEnabled","skillCardsAutoSync"]);function lt({k:e,label:t,hint:n,type:a="text",step:o,min:i,max:l}){let{form:s,set:c}=(0,m.useContext)(ud);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:p=>{let u=p.target.value;c(e,a==="number"?u===""?"":Number(u):u)}}),n?(0,r.jsx)("span",{className:"mc-field-hint",children:n}):null]})}function Vt({k:e,label:t}){let{form:n,set:a}=(0,m.useContext)(ud),o=n?n[e]:void 0,i=o===void 0?Zy.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 $n({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 ev({t:e,onReload:t,version:n,compact:a}){let[o,i]=(0,m.useState)(null),[l,s]=(0,m.useState)(0),[c,p]=(0,m.useState)(null),[u,h]=(0,m.useState)(null),[g,k]=(0,m.useState)(!1),[L,D]=(0,m.useState)(!1),F=(0,m.useRef)(!1),v=(0,m.useRef)(null),f=(0,m.useRef)({}),[y,_]=(0,m.useState)(null),[I,R]=(0,m.useState)(null),[P,A]=(0,m.useState)(""),[B,W]=(0,m.useState)(""),[le,ye]=(0,m.useState)(""),[se,Ge]=(0,m.useState)(null),[V,_e]=(0,m.useState)(null),[T,Le]=(0,m.useState)(null),ne=(0,m.useCallback)(async(b,ae=!1)=>{ae||W("version");try{let fe=await fetch(ee+"/version-check"+(b?"?force=1":"")).then(ze=>ze.json());fe&&fe.ok?(Le(fe),b&&x(fe.updateAvailable?e("vcLatest")+" v"+fe.latest:e("vcUpToDate"))):b&&x(e("vcCheckFail"),!1)}catch{b&&x(e("vcCheckFail"),!1)}finally{ae||W("")}},[e]);(0,m.useEffect)(()=>{ne(!1);let b=setInterval(()=>{ne(!1,!0)},6e4),ae=()=>{typeof document<"u"&&!document.hidden&&ne(!1,!0)};return document.addEventListener("visibilitychange",ae),()=>{clearInterval(b),document.removeEventListener("visibilitychange",ae)}},[n,ne]);let[te,$e]=(0,m.useState)(""),[Ie,ie]=(0,m.useState)(null),[j,H]=(0,m.useState)(""),[M,J]=(0,m.useState)(!1),de=(0,m.useRef)(null),Be=(0,m.useRef)(0),je=b=>{Be.current=b.currentTarget.scrollTop};(0,m.useLayoutEffect)(()=>{let b=de.current;b&&Math.abs(b.scrollTop-Be.current)>1&&(b.scrollTop=Be.current)});let pe=(0,m.useRef)(null),x=(b,ae=!0)=>{pe.current&&clearTimeout(pe.current),ie({msg:b,ok:ae}),pe.current=setTimeout(()=>ie(null),1900)},Q=async()=>{if(!B){W("restart");try{let b=await fetch(ee+"/restart-self",{method:"POST"});if(b.status===404||b.status===405){x(Ue("vcRestartNoRoute",{cmd:T&&T.restartCommand||"dsh-memory restart --port 7999"}),!1);return}let ae=await b.json().catch(()=>null);if(!ae){x(e("vcRestartFail")+"\uFF08HTTP "+b.status+"\uFF09",!1);return}if(!ae.ok){x(ae.error||e("vcRestartFail"),!1);return}if(ae.alreadyCurrent){x(ae.note||e("vcRestartCurrent"));return}x(ae.note||e("vcRestartSent")),ae.alreadyRunning||setTimeout(()=>{ne(!0)},6e3)}catch(b){x(e("vcRestartFail")+"\uFF1A"+String(b&&b.message||b),!1)}finally{W("")}}},$=T&&T.resident?String(T.resident.served||""):"",we=!!(T&&T.onDisk&&$&&$!==T.onDisk),De=!!(T&&T.resident&&T.resident.managed===!1&&T.resident.managedKnown===!1),xe=T&&T.resident&&T.resident.replaceBlocked&&T.resident.replaceBlocked.fresh||null,ke=!!(T&&T.resident&&T.resident.managedBy==="host"),U=!!(T&&T.resident&&T.resident.managed===!1&&!De&&!ke),ue=!!(T&&T.resident&&!$),Ne=we||ue||U||De,be=sf({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}),ht={hostProcessStale:()=>Ue("vcHostProcessStale",{disk:T.onDisk,loaded:T.loaded}),residentDown:()=>Ue("vcResidentDown",{port:T.resident&&T.resident.port||"",cmd:T.restartCommand||"dsh-memory restart --port 7999"}),residentReplaceBlocked:()=>Ue("vcResidentReplaceBlocked",{served:$,err:xe&&xe.error||"",path:xe&&xe.lockPath||"",cmd:T.restartCommand||"dsh-memory restart --port "+(T.resident&&T.resident.port||7999)}),residentLockUnknown:()=>Ue("vcResidentLockUnknown",{served:$,path:T.resident&&T.resident.lock&&T.resident.lock.path||"",err:T.resident&&T.resident.lock&&T.resident.lock.error||""}),residentUnmanaged:()=>Ue("vcResidentUnmanaged",{served:$,cmd:T.restartCommand||"dsh-memory restart --port 7999"})},Jt={restartStart:()=>Ue("vcRestartStart",{disk:T&&T.onDisk||""}),restartRepair:()=>Ue("vcRestartRepair",{disk:T&&T.onDisk||""}),restartFixes:()=>Ue("vcRestartFixes",{served:$||"",disk:T&&T.onDisk||""}),restartHostOnly:()=>Ue("vcRestartHostOnly",{loaded:T&&T.loaded||"",disk:T&&T.onDisk||""}),restartAnyway:()=>Ue("vcRestartAnyway",{ver:T&&T.onDisk||""})},Ue=(b,ae)=>Object.keys(ae).reduce((fe,ze)=>fe.split("{"+ze+"}").join(ae[ze]),e(b)),Ot=(0,m.useCallback)(async()=>{try{let[b,ae,fe,ze]=await Promise.all([fetch(`${ee}/config`).then(Re=>Re.json()).catch(()=>null),fetch(`${ee}/setup-status`).then(Re=>Re.json()).catch(()=>null),fetch(`${ee}/budget`).then(Re=>Re.json()).catch(()=>null),fetch(`${ee}/llm-routes`).then(Re=>Re.json()).catch(()=>null)]);if(ze&&ze.ok&&_e(ze),b&&b.ok){i(b),s(b.revision??0),p(b.schema??null);let Re=zf(b.config??{},f.current);f.current=Re.overlay,h({...Re.values}),J(!1),_(b.dsh??null),k(b.writable===!1),D(b.viaPending===!0),A(""),F.current=!1}else fe&&fe.ok?(h({...fe}),J(!1),k(!0),A(e("configNeedsDsh"))):A(e("adminLoadFail"));ae&&ae.ok&&R(ae),ye("")}catch{A(e("adminLoadFail"))}},[e]);(0,m.useEffect)(()=>{Ot()},[n,Ot]);let ft=(b,ae)=>{F.current=!0,J(!0),H(""),h(fe=>({...fe??{},[b]:ae}))};(0,m.useEffect)(()=>{v.current=Ot},[Ot]),(0,m.useEffect)(()=>{if(typeof EventSource>"u")return;let b=null;try{b=new EventSource(ee+"/events")}catch{return}let ae=()=>{!F.current&&typeof v.current=="function"&&v.current()};try{b.addEventListener("config",ae)}catch{}return()=>{try{b.close()}catch{}}},[]);let He=new Set(["dedupThreshold","captureMinChars","captureCooldownMs","maxCardsPerDay","captureMaxTokens","recallMinScore","recallLimit","recallSummaryLen","recycleRetentionDays","webPort","webCheckIntervalMs","webMaxRestart","sessionBudgetChars","coreMemoryLimit","coreMemoryMaxChars"]),Ze=b=>({init:e("modeInit"),interval:e("modeInterval"),manual:e("modeManual")})[b]||b,cn=async()=>{if(!u)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]},ae=[];for(let[fe,[ze,Re]]of Object.entries(b)){if(!(fe in u))continue;let Te=u[fe],Fe=typeof Te=="number"?Te:Number(Te);(Te===""||Te===null||Te===void 0||!Number.isFinite(Fe)||Fe<ze||Fe>Re)&&ae.push(e("invalidField",{field:fe,min:ze,max:Re,value:String(Te===""?"\u7A7A":Te)}))}if(ae.length){let fe=e("saveInvalid")+"\uFF1A"+ae.join("\uFF1B");A(fe),x(fe,!1);return}W("save");try{let fe={...u};for(let Fe of Object.keys(u))Fe in fe&&typeof fe[Fe]=="string"&&fe[Fe].trim()!==""&&He.has(Fe)&&(fe[Fe]=Number(fe[Fe]));Array.isArray(fe.vaultProfiles)&&(fe.vaultProfiles=fe.vaultProfiles.filter(Fe=>Fe&&(String(Fe.name||"").trim()||String(Fe.path||"").trim())));let ze=await fetch(`${ee}/config`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({patch:fe,expectedRevision:l})}),Re=await ze.text(),Te=null;try{Te=Re?JSON.parse(Re):null}catch{Te=null}if(Te||(Te={error:"HTTP "+ze.status+(Re?"\uFF1A"+Re.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 Fe=typeof Te.pendingOutcome=="string"?Te.pendingOutcome:"",en,Sn=!0;if(Fe==="applied")en=e("savedApplied")+(Array.isArray(Te.applied)&&Te.applied.length?" \xB7 "+Te.applied.join("\u3001"):"");else if(Fe==="queued")Sn=!1,en=e("saveQueued");else if(Fe==="failed")Sn=!1,en=e("saveFail")+" \xB7 "+(Te.hostGuard?e("saveHostGuard"):e("saveFailHint"));else if(Fe==="applied-direct")en=e("savedOk")+" \xB7 "+e("savedDirect");else{let vt=Array.isArray(Te.pending)&&Te.pending.length?" \xB7 "+e("savePending"):Te.note?" \xB7 "+e("restartHint"):"";en=(Te.retried?"\u267B ":"")+e("savedOk")+vt}f.current={...f.current,...fe},Sn?(H(""),J(!1),ye(en)):A(en),x(en,Sn),await Ot()}else{let Fe=ze.status===409?e("conflictRefresh"):Te?.error||e("saveFail");A(Fe),x(Fe,!1)}}catch{A(e("saveFail")),x(e("saveFail"),!1)}finally{W("")}},rt=()=>{f.current={},h({...o?.config??{}}),H(""),J(!1),ye("")},N={env:"vaultSrcEnv",profile:"vaultSrcProfile",workspace:"vaultSrcWorkspace",vaultDir:"vaultSrcVaultDir",default:"vaultSrcDefault"},w=b=>Array.isArray(b?.vaultProfiles)?b.vaultProfiles:[],ce=(b,ae,fe)=>{F.current=!0,J(!0),h(ze=>{let Re=w(ze).map(Fe=>({...Fe||{}})),Te={...Re[b]||{}};return ae==="match"?String(fe).trim()?Te.match={...Te.match||{},workspace:fe}:delete Te.match:Te[ae]=fe,Re[b]=Te,{...ze??{},vaultProfiles:Re}})},We=()=>{F.current=!0,J(!0),h(b=>({...b??{},vaultProfiles:[...w(b),{name:"",path:""}]}))},S=b=>{F.current=!0,J(!0),h(ae=>({...ae??{},vaultProfiles:w(ae).filter((fe,ze)=>ze!==b)}))},O={fontSize:11,padding:"2px 8px",background:"var(--dsw-alias-bg-layer-2, #f3f4f6)",borderRadius:6},me={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}},dn=b=>{let ae=Ve[b];ae&&(h(fe=>({...fe??{},...ae})),F.current=!0,J(!0),H(b),x(Ue("planApplied",{plan:ae.label})))},d=async()=>{try{let b=await fetch(ee+"/setup-status").then(ae=>ae.json());b&&b.ok&&R(b)}catch{}},Zt=async(b,ae)=>{W(b+ae);try{let ze=await(await fetch(`${ee}/mcp/action`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({agent:b,action:ae})})).json();ze&&ze.ok?x(Ue(ae==="install"?"mcpInstalled":"mcpUninstalled",{agent:b})):x(Ue("mcpActionFail",{agent:b,error:ze?.error||""}),!1);try{let Re=await fetch(`${ee}/setup-status`).then(Te=>Te.json());Re&&Re.ok&&R(Re)}catch{}}catch{x(e("mergeFail"),!1)}finally{W("")}},un=I&&Array.isArray(I.agents)?I.agents:[],pn=un.filter(b=>b.installed),Dr=[...new Set(pn.flatMap(b=>Array.isArray(b.servers)?b.servers:[]))],Dt=un.filter(b=>b.mcpConfigured&&!b.isDsh).length,yt=un.some(b=>Array.isArray(b.servers));return(0,r.jsx)(ud.Provider,{value:{form:u,set:ft},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}),Ie&&(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 "+(Ie.ok?"#22c55e":"#ef4444"),maxWidth:"90vw"},children:[(0,r.jsx)("span",{style:{color:Ie.ok?"#34d399":"#f87171",fontWeight:800,fontSize:15},children:Ie.ok?"\u2713":"\u2715"}),(0,r.jsx)("span",{style:{wordBreak:"break-all"},children:Ie.msg})]}),(0,r.jsxs)("div",{ref:de,onScroll:je,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:Ot,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")]}),le&&(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 ",le]}),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:O,children:[e("vcLoaded")," v",o.version]}),T&&T.resident&&T.resident.served&&T.resident.served!==o.version&&(0,r.jsxs)("code",{style:O,children:[e("vcResident")," v",T.resident.served]}),T&&T.resident&&!T.resident.served&&(0,r.jsxs)("code",{style:{...O,color:"#b45309",fontWeight:600},children:[e("vcResident")," ",e("vcResidentDownShort")]}),T&&T.resident&&T.resident.served&&T.resident.managed===!1&&(0,r.jsxs)("code",{style:{...O,color:"#b45309",fontWeight:600},children:[e("vcResident")," v",T.resident.served," \xB7 ",e(xe?"vcResidentReplaceBlockedShort":ke?"vcResidentHostManagedShort":De?"vcResidentLockUnknownShort":"vcResidentUnmanagedShort")]}),za&&(0,r.jsxs)("code",{style:O,children:[e("vcPage")," v",za]}),T&&T.onDisk&&(0,r.jsxs)("code",{style:O,children:[e("vcOnDisk")," v",T.onDisk]}),T&&T.latest&&(0,r.jsxs)("code",{style:O,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:B==="version",onClick:()=>ne(!0),children:B==="version"?e("checking"):"\u{1F504} "+e("vcCheck")})]}),T&&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 ",ht[be.warn]?ht[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:!!B,onClick:Q,children:B==="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:Jt[be.hint]?Jt[be.hint]():""})]}),za&&T&&T.onDisk&&za!==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:za,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]})]}),I&&I.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:d,children:e("mcpRefresh")})]}),yt?(0,r.jsx)("div",{className:"mc-mcp-summary",children:Ue("mcpSummary",{agents:pn.length,servers:Dr.length,mounted:Dt})}):null,un.map(b=>{let ae=Array.isArray(b.servers),fe=ae?b.servers:[],ze=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:ze}),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})]}),ae?fe.length?(0,r.jsx)("div",{className:"mc-mcp-servers",children:fe.map(Re=>(0,r.jsx)("code",{className:Re==="memory"?"on":"",children:Re},Re))}):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:!!B,onClick:()=>Zt(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:!!B,onClick:()=>Zt(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:!!B,onClick:()=>{window.confirm(e("uninstallConfirm"))&&Zt(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})})]}),u?(0,r.jsxs)("div",{className:"mc-cfg",children:[(0,r.jsxs)($n,{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"+(j===b?" on":""),"aria-pressed":j===b,onClick:()=>dn(b),disabled:!!B,children:[(0,r.jsxs)("b",{children:[j===b?"\u2705 ":b==="A"?"\u{1F7E2} ":b==="B"?"\u{1F4B0} ":"\u2B50 ",Ve[b].label]}),(0,r.jsx)("span",{children:e("planDesc"+b)})]},b))}),j?(0,r.jsxs)("div",{style:{fontSize:11,color:"#10b981"},children:["\u2705 ",Ue("planApplied",{plan:Ve[j].label})]}):null]}),(0,r.jsx)($n,{icon:"\u{1F9E0}",title:e("dshMemoryConfig"),sub:e("cfgSubCore"),children:(0,r.jsxs)("div",{className:"mc-cfg-grid",children:[(0,r.jsx)(Vt,{k:"enabled",label:e("enabledLabel")}),(0,r.jsx)(Vt,{k:"autoCapture",label:e("autoCapture")}),(0,r.jsx)(Vt,{k:"autoRecall",label:e("autoRecall")}),(0,r.jsx)(lt,{k:"vaultDir",label:e("vaultDirLabel")}),(0,r.jsx)(lt,{k:"captureMinChars",label:e("captureMinChars"),hint:e("unitChars"),type:"number"}),(0,r.jsx)(lt,{k:"maxCardsPerDay",label:e("maxCardsPerDay"),hint:e("unitPerDay"),type:"number"}),(0,r.jsx)(lt,{k:"dedupThreshold",label:e("dedupThreshold"),type:"number",step:"0.01",min:"0",max:"1"}),(0,r.jsx)(lt,{k:"recallLimit",label:e("recallLimit"),type:"number"}),(0,r.jsx)(lt,{k:"recallSummaryLen",label:e("recallSummaryLen"),hint:e("unitChars"),type:"number"}),(0,r.jsx)(Vt,{k:"recallIncludeBody",label:e("recallBody")}),(0,r.jsx)(lt,{k:"secretHint",label:e("secretHint")}),(0,r.jsx)(lt,{k:"recallEmbedding",label:e("recallEmbedding")})]})}),(0,r.jsx)($n,{icon:"\u2B50",title:e("coreMemory"),sub:e("coreMemoryHint"),children:(0,r.jsxs)("div",{className:"mc-cfg-grid",children:[(0,r.jsx)(Vt,{k:"coreMemoryEnabled",label:e("coreMemoryEnabled")}),(0,r.jsx)(lt,{k:"coreMemoryLimit",label:e("coreMemoryLimit"),type:"number"}),(0,r.jsx)(lt,{k:"coreMemoryMaxChars",label:e("coreMemoryMaxChars"),type:"number"})]})}),(0,r.jsxs)($n,{icon:"\u{1F9E9}",title:e("skillCards"),sub:e("skillCardsHint"),children:[(0,r.jsx)("div",{className:"mc-cfg-grid",children:(0,r.jsx)(Vt,{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:!!B,onClick:async()=>{W("skills");try{let b=await fetch(ee+"/skills/sync",{method:"POST"}).then(ae=>ae.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{W("")}},children:B==="skills"?"\u23F3 "+e("syncingSkills"):"\u{1F9E9} "+e("syncSkills")})})]}),(0,r.jsxs)($n,{icon:"\u{1F4EC}",title:e("newsDigest"),sub:e("newsDigestHint"),children:[(0,r.jsxs)("div",{className:"mc-cfg-grid",children:[(0,r.jsx)(Vt,{k:"newsDigestEnabled",label:e("newsDigestEnabled")}),(0,r.jsx)(lt,{k:"newsDigestIntervalMinutes",label:e("newsDigestInterval"),type:"number"}),(0,r.jsx)(lt,{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:!!B,onClick:async()=>{W("digest");try{let b=await fetch(ee+"/news/digest",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({})}).then(ae=>ae.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{W("")}},children:B==="digest"?"\u23F3 "+e("newsDigestBuilding"):"\u{1F4EC} "+e("newsDigestNow")}),(0,r.jsx)("span",{className:"mc-field-hint",children:e("newsDigestNowHint")})]}),se!==null?(0,r.jsx)("pre",{className:"mc-digest-preview",children:se||e("newsDigestEmpty")}):null]}),(0,r.jsx)($n,{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:u&&u.uiScale||"normal",onChange:b=>{let ae=b.target.value;ft("uiScale",ae);try{window.dispatchEvent(new CustomEvent("me-ui-scale",{detail:ae}))}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)($n,{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(N[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(u).map((b,ae)=>(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:fe=>ce(ae,"name",fe.target.value),style:me,disabled:g}),(0,r.jsx)("input",{value:b.path||"",placeholder:e("vaultPathPh"),onChange:fe=>ce(ae,"path",fe.target.value),style:me,disabled:g}),(0,r.jsx)("input",{value:b.match&&b.match.workspace||"",placeholder:e("vaultMatchPh"),onChange:fe=>ce(ae,"match",fe.target.value),style:me,disabled:g}),(0,r.jsx)("button",{type:"button",className:"mc-btn",onClick:()=>S(ae),disabled:g,title:e("delete"),children:"\u2715"})]},ae)),(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:We,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:u.activeVault||"",onChange:b=>ft("activeVault",b.target.value),disabled:g,style:me,children:[(0,r.jsx)("option",{value:"",children:e("vaultActiveNone")}),w(u).filter(b=>b&&b.name).map(b=>(0,r.jsx)("option",{value:b.name,children:b.name},b.name))]})]})]})]}),(0,r.jsx)($n,{icon:"\u{1F4B0}",title:e("costControl"),sub:e("costHint"),children:(0,r.jsxs)("div",{className:"mc-cfg-grid",children:[(0,r.jsx)(Vt,{k:"distillEnabled",label:e("distillEnabled")}),(0,r.jsx)(Vt,{k:"dedupByLLM",label:e("dedupByLLM")}),(0,r.jsx)(lt,{k:"captureMaxTokens",label:e("captureMaxTokens"),type:"number"}),(0,r.jsx)(lt,{k:"captureTimeoutMs",label:e("captureTimeoutMs"),type:"number"}),(0,r.jsx)(lt,{k:"recallMinScore",label:e("recallMinScore"),type:"number"}),(0,r.jsx)(lt,{k:"captureCooldownMs",label:e("captureCooldownMs"),type:"number"}),V&&V.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 ",Ue("routeListFail",{err:V.error||"\u672A\u77E5\u539F\u56E0"})]}),V&&V.providers&&V.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:u.captureProvider||"",onChange:b=>{ft("captureProvider",b.target.value),ft("captureModel","")},children:[(0,r.jsx)("option",{value:"",children:e("routeAuto")}),V.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:u.captureModel||"",onChange:b=>ft("captureModel",b.target.value),children:[(0,r.jsx)("option",{value:"",children:e("routeAuto")}),((V.providers.find(b=>b.id===u.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)(lt,{k:"captureProvider",label:e("captureProvider")}),(0,r.jsx)(lt,{k:"captureModel",label:e("captureModel")})]}),(0,r.jsx)(Vt,{k:"captureFollowSession",label:e("captureFollowSession")}),(0,r.jsx)(Vt,{k:"captureFirstOnly",label:e("captureFirstOnly")}),(0,r.jsx)(lt,{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:!!B,onClick:async()=>{W("llmtest");try{let b=await fetch(ee+"/llm-test",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:u.captureProvider||"",model:u.captureModel||"",firstOnly:u.captureFirstOnly===!0})}).then(ae=>ae.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{W("")}},children:B==="llmtest"?e("exporting"):"\u{1F50C} "+e("llmTest")})})]})}),(0,r.jsx)($n,{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:u.auditMode??"all",onChange:b=>ft("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)(Of,{label:e("auditExemptAgents"),value:u.auditExemptAgents||[],options:[{value:"__all__",label:e("allExempt")},...(I?.agents||[]).filter(b=>!b.isDsh).map(b=>({value:b.name,label:b.name}))],onChange:b=>ft("auditExemptAgents",b)}),(0,r.jsx)(Of,{label:e("auditExemptKinds"),value:u.auditExemptKinds||[],options:[{value:"__all__",label:e("allExempt")},...yl.filter(b=>b!=="all"&&b!=="core"&&b!=="skill").map(b=>({value:b,label:e(Lt[b])}))],onChange:b=>ft("auditExemptKinds",b)}),(0,r.jsx)(lt,{k:"recycleRetentionDays",label:e("recycleDays"),hint:e("unitDays"),type:"number"})]})}),(0,r.jsx)($n,{icon:"\u{1F6E0}",title:e("serviceConfig"),sub:e("cfgSubService"),children:(0,r.jsxs)("div",{className:"mc-cfg-grid",children:[(0,r.jsx)(Vt,{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:u.autoWebMode??"init",onChange:b=>ft("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)(lt,{k:"webPort",label:e("webPort"),type:"number"}),(0,r.jsx)(lt,{k:"webCheckIntervalMs",label:e("webCheckIntervalMs"),type:"number"}),(0,r.jsx)(lt,{k:"webMaxRestart",label:e("webMaxRestart"),hint:e("unitTimes"),type:"number"}),(0,r.jsx)(Vt,{k:"watchdogAutoSpawn",label:e("watchdogAutoSpawn")}),(0,r.jsx)(Vt,{k:"autoRestartOnDrift",label:e("autoRestartOnDrift")}),(0,r.jsx)(Vt,{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"}),B==="save"&&(0,r.jsxs)("span",{style:{fontSize:11.5,opacity:.75},children:["\u23F3 ",e("saving")]}),le&&B!=="save"&&(0,r.jsxs)("span",{style:{fontSize:11.5,color:"#10b981"},children:["\u2705 ",le]}),P&&B!=="save"&&(0,r.jsxs)("span",{style:{fontSize:11.5,color:"#b91c1c"},children:["\u26A0 ",P]}),(0,r.jsx)("button",{type:"button",className:"mc-btn",onClick:rt,disabled:!!B,children:e("reset")}),(0,r.jsx)("button",{type:"button",className:"mc-btn me-on",onClick:g?()=>x(e("readonlyTitle")+"\uFF1A"+e("readonlyBody"),!1):cn,disabled:B==="save",title:e(g?"readonlyBody":"saveConfig"),children:B==="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 tv({t:e,onReload:t,version:n}){let[a,o]=(0,m.useState)([]),[i,l]=(0,m.useState)([]),[s,c]=(0,m.useState)("all"),[p,u]=(0,m.useState)("all"),[h,g]=(0,m.useState)(""),[k,L]=(0,m.useState)(""),[D,F]=(0,m.useState)(new Set),[v,f]=(0,m.useState)(null),[y,_]=(0,m.useState)(""),[I,R]=(0,m.useState)(null),[P,A]=(0,m.useState)("pending"),B=(M,J=!0)=>{R({msg:M,ok:J}),setTimeout(()=>R(null),3e3)},W=[...new Set([...a,...i].map(M=>M.submittedBy).filter(Boolean))],le=(0,m.useCallback)(async()=>{try{let M=await fetch(`${ee}/audit/list`).then(J=>J.json());M.ok&&(o(M.pending||[]),l(M.rejected||[]),F(new Set),T({}))}catch{}},[]);(0,m.useEffect)(()=>{le()},[n,le]);let ye=(P==="pending"?a:i).filter(M=>{if(!Yc(M,k)||s!=="all"&&M.kind!==s||p!=="all"&&Rr(M.submittedBy)!==p)return!1;if(h){let J=dl(M.created);if(J&&J!==h)return!1}return!0}),se=(0,m.useMemo)(()=>{let M=P==="pending"?a:i,J={all:0};return M.forEach(de=>{if(Yc(de,k)&&!(p!=="all"&&Rr(de.submittedBy)!==p)){if(h){let Be=dl(de.created);if(Be&&Be!==h)return}J.all++,J[de.kind||"other"]=(J[de.kind||"other"]||0)+1}}),J},[a,i,P,p,h,k]),Ge=M=>F(J=>{let de=new Set(J);return de.has(M)?de.delete(M):de.add(M),de}),V=async(M,J,de={})=>{let Be=J||[...D];if(!Be.length){B(e("noSelection"),!1);return}_("apply");let je=M==="approved"?de.kind==="core"?e("approveCore"):e("toastApproved"):e(M==="rejected"?"toastRejected":"toastCardDeleted");try{let pe=0;for(let x of Be){let Q=M==="approved"?"audit/approve":M==="rejected"?"audit/reject":"delete";try{let $=M==="approved"&&de.kind?{path:x,kind:de.kind}:null;(await fetch(ee+"/"+Q+($?"":"?path="+encodeURIComponent(x)+(M==="delete"?"&permanent=0":"")),$?{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify($)}:void 0)).ok||pe++}catch{pe++}}await le(),t&&t(),pe?B(e("toastFailed")+"\uFF08"+pe+"/"+Be.length+"\uFF09",!1):B(je+" "+Be.length+" \u5F20")}catch(pe){B(e("toastFailed")+": "+String(pe&&pe.message||pe),!1)}finally{_("")}},[_e,T]=(0,m.useState)({}),Le=M=>_e[M]||{},ne=[...D],te=ye.find(M=>M.path===v)||ye[0]||null,$e=te?Le(te.path):{};(0,m.useEffect)(()=>{let M=te;if(!M||_e[M.path])return;let J=!0,de=M.path;T(je=>({...je,[de]:{loading:!0}}));let Be=M.status||(P==="pending"?"pending":"rejected");return fetch(`${ee}/card?path=${encodeURIComponent(de)}&status=${Be}`).then(je=>je.json()).then(je=>{J&&(je&&je.ok?T(pe=>({...pe,[de]:{text:je.text||""}})):T(pe=>({...pe,[de]:{error:je&&je.error||"HTTP"}})))}).catch(je=>{J&&T(pe=>({...pe,[de]:{error:String(je&&je.message||je)}}))}),()=>{J=!1}},[te&&te.path,P]);let Ie=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")){_("reclassify");try{let M=await fetch(ee+"/reclassify").then(J=>J.json());M&&M.ok?B(e("reclassify")+"\uFF1A"+M.changed+" / "+M.scanned):B(e("toastFailed")+": "+(M&&M.error||"HTTP"),!1),await le(),t&&t()}catch(M){B(e("toastFailed")+": "+String(M&&M.message||M),!1)}finally{_("")}}},ie=()=>F(new Set),j=M=>{A(M),ie()},H=["all",...yl.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:kn}),(0,r.jsxs)("div",{style:{overflow:"auto",padding:4},children:[(0,r.jsx)(vl,{toast:I}),(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),ie(),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(""),ie(),f(null)},title:e("clearFilter"),children:"\u2715"}),(0,r.jsxs)("select",{value:p,onChange:M=>{u(M.target.value),ie()},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")}),Wf(W).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),ie()},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")}),H.map(M=>{let J=M==="all"?"var(--dsw-alias-label-secondary, #9ca3af)":Gt[M]||"#6B7280";return(0,r.jsxs)("button",{type:"button",className:`me-audit-kind${s===M?" active":""}`,onClick:()=>{c(M),ie()},children:[(0,r.jsx)("span",{className:"me-audit-kind-dot",style:{background:J}}),(0,r.jsx)("span",{className:"me-audit-kind-name",children:e(M==="all"?"all":Lt[M])}),(0,r.jsx)("span",{className:"me-audit-kind-count",children:se[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${P==="pending"?" me-on":""}`,onClick:()=>j("pending"),children:[e("pending"),"\uFF08",a.length,"\uFF09"]}),(0,r.jsxs)("button",{type:"button",className:`mc-btn${P==="rejected"?" me-on":""}`,onClick:()=>j("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:ye.length>0&&ne.length===ye.length,onChange:M=>{M.target.checked?F(new Set(ye.map(J=>J.path))):F(new Set)}})," ",e("selectAll"),"\uFF08",ye.length,"\uFF09"]}),(0,r.jsxs)("span",{style:{fontSize:11,opacity:.65},children:[e("auditSelected")," ",ne.length]}),P==="pending"&&(0,r.jsxs)("button",{type:"button",className:"mc-btn",disabled:!!y,onClick:Ie,children:["\u{1F527} ",e("reclassify")]}),(0,r.jsxs)("button",{type:"button",className:"mc-btn me-on",disabled:!ne.length||!!y,onClick:()=>V("approved"),children:["\u2713 ",e(P==="rejected"?"restore":"approve")]}),P==="pending"?(0,r.jsxs)("button",{type:"button",className:"mc-btn",style:{color:"#f87171"},disabled:!ne.length||!!y,onClick:()=>V("rejected"),children:["\u2715 ",e("reject")]}):(0,r.jsxs)("button",{type:"button",className:"mc-btn",style:{color:"#f87171"},disabled:!ne.length||!!y,onClick:()=>{window.confirm(e("recycleDeleteConfirm"))&&V("delete")},children:["\u{1F5D1} ",e("restoreDelete")]}),ne.length>0&&(0,r.jsx)("button",{type:"button",className:"mc-btn",onClick:ie,children:e("auditClearSelection")})]}),ye.length?(0,r.jsx)("div",{className:"mc-card",style:{display:"flex",flexDirection:"column"},children:ye.map(M=>{let J=Gt[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:D.has(M.path),onClick:de=>de.stopPropagation(),onChange:()=>Ge(M.path)}),(0,r.jsx)("span",{className:"me-audit-row-tile",style:{color:J,borderColor:J+"38",background:J+"18"},children:Lr[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(Lt[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 ${P==="pending"?"pending":"rejected"}`,children:P==="pending"?"\u23F3 "+e("statusPending"):"\u26D4 "+e("statusRejected")}),(0,r.jsx)("span",{className:"me-audit-row-time",children:qc(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} ",Rr(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:P==="pending"?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("button",{type:"button",className:"mc-btn",style:{padding:"2px 8px"},onClick:()=>V("approved",[M.path]),children:"\u2713"}),(0,r.jsx)("button",{type:"button",className:"mc-btn",style:{padding:"2px 8px",color:"#f87171"},onClick:()=>V("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:()=>V("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"))&&V("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:Gt[te.kind]||"#6B7280",borderColor:(Gt[te.kind]||"#6B7280")+"59",background:(Gt[te.kind]||"#6B7280")+"1a"},children:[Lr[te.kind]||"\u{1F4CE}"," ",e(Lt[te.kind]||"kindKnowledge")]}),(0,r.jsx)("span",{className:`md-chip ${P==="pending"?"md-chip-st-warn":"md-chip-st-bad"}`,children:P==="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:qc(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} ",Rr(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:[$e.loading&&(0,r.jsx)("div",{className:"me-audit-preview-empty",children:e("loading")}),$e.error&&(0,r.jsxs)("div",{className:"me-audit-preview-empty",style:{color:"#f87171"},children:["\u26A0 ",e("auditBodyFail"),"\uFF1A",$e.error]}),$e.text!=null?(0,r.jsx)("div",{className:"md-doc",dangerouslySetInnerHTML:{__html:Ro(md(ll($e.text).body,te.title))}}):!$e.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:()=>V("approved",[te.path]),children:["\u2713 ",P==="rejected"?e("restore"):te.kind==="core"?e("approveCore"):e("approve")]}),P==="pending"&&te.kind!=="core"&&!te.revision&&(0,r.jsxs)("button",{type:"button",className:"mc-btn me-core-btn",disabled:!!y,onClick:()=>V("approved",[te.path],{kind:"core"}),children:["\u2B50 ",e("approveAndCore")]}),P==="pending"&&te.kind==="core"&&(0,r.jsx)("button",{type:"button",className:"mc-btn",disabled:!!y,onClick:()=>V("approved",[te.path],{kind:"knowledge"}),children:e("approveAsNormal")}),P==="pending"?(0,r.jsxs)("button",{type:"button",className:"mc-btn",style:{color:"#f87171"},disabled:!!y,onClick:()=>V("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"))&&V("delete",[te.path])},children:["\u{1F5D1} ",e("restoreDelete")]})]})]}):(0,r.jsx)("div",{className:"me-audit-preview-empty",children:e(k?"auditNoMatch":"noAuditItems")})})]})]})]})]})}var nv={title:"",date:"",category:"",source:"",url:"",tags:"",pinned:!1,body:""};function id(){let e=new Date;return e.getFullYear()+"-"+String(e.getMonth()+1).padStart(2,"0")+"-"+String(e.getDate()).padStart(2,"0")}function ld(e){try{let t=new URL(String(e||""));return t.protocol==="http:"||t.protocol==="https:"?t.href:""}catch{return""}}function rv(e,t){let n=String(e||"").slice(0,10);if(!n)return t("newsEarlier");if(n===id())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 If({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 av(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 qr="me.news.lastQuery",Io="me.news.prefs",$f="me.news.view",ov={model:"\u6A21",product:"\u54C1",research:"\u7814",opensource:"\u6E90",industry:"\u4E1A",policy:"\u7B56",other:"\u8BAF"},iv=new Set(["the","a","an","of","to","for","and","in","on","is","are","with","how","why","new","its","it","as","at","by","from"]);function pd(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 rr(e,t){try{localStorage.setItem(e,JSON.stringify(t))}catch{}}function td(e,t=""){let n=pd(e,t);return typeof n=="string"?n:t}function Ff(){let e=pd($f,null);return e&&typeof e=="object"?e:{}}function sd(){return{types:{},sources:{},terms:{},opens:0,updatedAt:0}}function lv(){let e=pd(Io,null);return!e||typeof e!="object"?sd():{...sd(),...e,types:e.types||{},sources:e.sources||{},terms:e.terms||{}}}function Vf(e){let t=[];for(let n of String(e||"").toLowerCase().split(/[^0-9a-z\u4e00-\u9fff]+/))!n||n.length<2||iv.has(n)||t.push(n);return t}function gl(e,t,n){t&&(e[t]=Math.min(60,(Number(e[t])||0)+n))}function sv(e,t,n){let a={...n,types:{...n.types},sources:{...n.sources},terms:{...n.terms}};return e&&(gl(a.types,e.type,t),gl(a.sources,e.sourceId,t),Vf(e.title).slice(0,6).forEach(o=>gl(a.terms,o,1)),a.opens=(Number(n.opens)||0)+1),a.updatedAt=Date.now(),a}function Af(e,t){let n={...e,terms:{...e.terms}};return Vf(t).forEach(a=>gl(n.terms,a,3)),n.updatedAt=Date.now(),n}function cv(e){let t=0;for(let n of String(e||""))t=(t*31+n.charCodeAt(0))%360;return t}function dv(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 uv=/(帮我|请|麻烦|推送|订阅|关注|跟踪|每天|每日|定时|最新|热门|看看|给我|关于|相关)/;function pv(e){let t=String(e||"").trim();return t?uv.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 mv({t:e,mode:t,version:n}){let[a,o]=(0,m.useState)([]),[i,l]=(0,m.useState)([]),[s,c]=(0,m.useState)(!0),[p,u]=(0,m.useState)(0),[h,g]=(0,m.useState)([]),[k,L]=(0,m.useState)(""),[D,F]=(0,m.useState)(null),[v,f]=(0,m.useState)(()=>td(qr)),[y,_]=(0,m.useState)(()=>td(qr).trim()),[I,R]=(0,m.useState)(""),[P,A]=(0,m.useState)(()=>{let S=Ff();return typeof S.lang=="string"?S.lang:"zh"}),[B,W]=(0,m.useState)(()=>Ff().sort==="time"?"time":"rec"),[le,ye]=(0,m.useState)(lv),[se,Ge]=(0,m.useState)(!1),[V,_e]=(0,m.useState)([]),[T,Le]=(0,m.useState)([]),[ne,te]=(0,m.useState)(null),[$e,Ie]=(0,m.useState)(!1),[ie,j]=(0,m.useState)(""),H=(S,O=!0)=>{F({msg:S,ok:O}),setTimeout(()=>F(null),3200)},M=(0,m.useRef)(!1),J=(0,m.useRef)(td(qr).trim());(0,m.useEffect)(()=>{let S=setTimeout(()=>{let O=v.trim();_(O),M.current&&(rr(qr,O),!(!O||O===J.current)&&(J.current=O,ye(me=>{let Ve=Af(me,O);return rr(Io,Ve),Ve})))},260);return()=>clearTimeout(S)},[v]),(0,m.useEffect)(()=>{rr($f,{lang:P,sort:B})},[P,B]),(0,m.useEffect)(()=>{Ge(!0);let S=setTimeout(()=>Ge(!1),170);return()=>clearTimeout(S)},[I,P,y,B]);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 O=await fetch(ee+"/news/feed?"+S.toString()).then(me=>me.json());if(!O||!O.ok)throw new Error(O&&O.error||e("newsFeedError"));o(O.items||[]),Array.isArray(O.follows)&&_e(O.follows),l(O.types||[]),u(Number(O.fetchedAt)||0),g(O.errors||[])}catch(S){let O=S&&S.message||e("newsFeedError");L(O),H(O,!1)}finally{c(!1)}},[t,e]);(0,m.useEffect)(()=>{de()},[n,de]);let Be=(0,m.useCallback)(async()=>{try{let S=await fetch(ee+"/news/follows").then(O=>O.json());S&&S.ok&&(_e(S.follows||[]),Le(S.domains||[]))}catch{}},[]);(0,m.useEffect)(()=>{Be()},[n,Be]);let je=async()=>{c(!0);try{let S=await fetch(ee+"/news/feed/refresh",{method:"POST"}).then(O=>O.json());if(!S||!S.ok)throw new Error(S&&S.error||e("newsFeedError"));await de(),H(e("newsUpdatedAt")+" "+new Date().toLocaleTimeString())}catch(S){let O=S&&S.message||e("newsFeedError");L(O),H(O,!1),c(!1)}},pe=S=>(i.find(O=>O.id===S)||{}).label||e("all"),x=(a||[]).filter(S=>!P||S.lang===P||S.followId),Q={};for(let S of x)Q[S.type]=(Q[S.type]||0)+1;let $=I?x.filter(S=>S.type===I):x,we=pv(y);if(y&&!we){let S=y.toLowerCase().split(/\s+/).filter(Boolean);$=$.filter(O=>{let me=[O.title,O.summary,O.source,pe(O.type)].join(" ").toLowerCase();return S.every(Ve=>me.includes(Ve))})}ie&&($=$.filter(S=>S.followId===ie));let De=S=>(Number(S.points)||0)+(Number(S.comments)||0)*2,xe=t==="month",ke=xe?$.filter(S=>(S.points||0)>0):[],U=xe&&ke.length>0,ue=new Map;U&&ke.slice().sort((S,O)=>(O.points||0)-(S.points||0)||(O.comments||0)-(S.comments||0)).forEach((S,O)=>ue.set(S.id||S.url||S.title,O+1)),$=$.slice().sort((S,O)=>B==="time"?(O.publishedAt||0)-(S.publishedAt||0):xe&&U?(O.points||0)-(S.points||0)||(O.comments||0)-(S.comments||0)||(O.publishedAt||0)-(S.publishedAt||0):_f(O,le,y)-_f(S,le,y));let Ne=Object.keys(le.types||{}).sort((S,O)=>(le.types[O]||0)-(le.types[S]||0)).slice(0,3),be=Object.keys(le.terms||{}).sort((S,O)=>(le.terms[O]||0)-(le.terms[S]||0)).slice(0,4),ht=!!y||Ne.length>0||be.length>0,Jt=S=>{M.current=!0;let O=String(S??"").trim();_(O),rr(qr,O),!(!O||O===J.current)&&(J.current=O,ye(me=>{let Ve=Af(me,O);return rr(Io,Ve),Ve}))},Ue=()=>{M.current=!1,J.current="",R(""),A(""),f(""),_(""),rr(qr,"")},Ot=S=>ye(O=>{let me=sv(S,4,O);return rr(Io,me),me}),ft=()=>{let S=sd();rr(Io,S),rr(qr,""),J.current="",M.current=!1,ye(S),f(""),_("")},He=async()=>{let S=v.trim();if(!S){H(e("newsFollowNoQuery"),!1);return}Ie(!0);try{let O=await fetch(ee+"/news/follows/preview",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({text:S})}).then(me=>me.json());if(!O||!O.ok)throw new Error(O&&O.error||e("newsFollowFail"));Le(O.domainsEnum||T),te({text:S,query:O.parsed.query,label:O.parsed.label,domains:O.parsed.domains,sourceIds:O.parsed.sourceIds||[],notes:O.parsed.notes||[]})}catch(O){H(String(O&&O.message||O),!1)}finally{Ie(!1)}},Ze=(S,O)=>te(me=>{if(!me)return me;let Ve=new Set(me.domains);return O?Ve.add(S):Ve.delete(S),{...me,domains:[...Ve]}}),cn=async()=>{if(ne){Ie(!0);try{let S=await fetch(ee+"/news/follows",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({query:ne.query,domains:ne.domains,label:ne.label,sourceIds:ne.sourceIds||[]})}).then(me=>me.json());if(!S||!S.ok)throw new Error(S&&S.error||e("newsFollowFail"));let O=ne.label;te(null),H((S.duplicate?e("newsFollowExists"):e("newsFollowAdded"))+"\uFF1A"+O),await Be(),await de()}catch(S){H(String(S&&S.message||S),!1)}finally{Ie(!1)}}},rt=async S=>{try{let O=await fetch(ee+"/news/follows?id="+encodeURIComponent(S),{method:"DELETE"}).then(me=>me.json());if(!O||!O.ok)throw new Error(O&&O.error||e("newsFollowFail"));ie===S&&j(""),H(e("newsFollowRemoved")),await Be(),await de()}catch(O){H(String(O&&O.message||O),!1)}},N=(S,O)=>{let me=ld(S.url),Ve=pe(S.type),dn=ld(S.image),d=U&&ue.get(S.id||S.url||S.title)||0,Zt=U&&d>0&&d<=3;return(0,r.jsxs)("a",{className:"mc-news-tile",style:{"--i":Math.min(O,14)},href:me||void 0,target:me?"_blank":void 0,rel:"noopener noreferrer",onClick:()=>Ot(S),children:[(0,r.jsxs)("span",{className:"mc-news-tile-cover",children:[dn?(0,r.jsx)("img",{className:"mc-news-tile-img",src:dn,alt:"",loading:"lazy",referrerPolicy:"no-referrer",onError:un=>{let pn=un.currentTarget;pn.style.display="none",pn.nextElementSibling&&(pn.nextElementSibling.style.display="grid")}}):null,(0,r.jsxs)("span",{className:"mc-news-tile-gen",style:{"--hue":cv(S.title),display:dn?"none":"grid"},children:[(0,r.jsx)("b",{children:ov[S.type]||"\u8BAF"}),(0,r.jsx)("small",{children:Ve}),(0,r.jsxs)("em",{children:[(0,r.jsx)("i",{children:dv(S.source)}),S.source]})]}),(0,r.jsx)("span",{className:"mc-news-tile-badge"+(Zt?" hot":""),children:d?"#"+d:Ve}),(0,r.jsx)("span",{className:"mc-news-tile-time",children:av(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,d?(0,r.jsxs)("span",{children:["\xB7 \u{1F525} ",e("newsHeat")," ",De(S)]}):null,(0,r.jsxs)("span",{className:"mc-news-tile-open",children:[e("newsOriginal")," \u2197"]})]})]})]},S.id||S.url||S.title)},w=$.filter(S=>S.followId),ce=w.slice(0,4),We=ie?$:ce.length?$.filter(S=>!S.followId):$;return(0,r.jsxs)("div",{className:"mc-news",children:[(0,r.jsx)(vl,{toast:D}),(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"&&Jt(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(""),Jt("")},children:"\u2715"}):null,(0,r.jsx)("button",{type:"button",className:"mc-news-hero-go",onClick:()=>Jt(v),children:e("newsSearchGo")}),v.trim()?(0,r.jsxs)("button",{type:"button",className:"mc-news-hero-follow",disabled:$e,onClick:He,title:e("newsFollowPreview"),children:["\uFF0B ",e("newsFollow")]}):null]}),(0,r.jsx)("div",{className:"mc-news-hero-hint",children:e(we?"newsIntentHint":"newsHeroHint")})]}),ne?(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:ne.label}),ne.query?(0,r.jsxs)("span",{className:"draft-q",children:["\xB7 \u300C",ne.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:ne.domains.includes(S.id),onChange:O=>Ze(S.id,O.target.checked)}),(0,r.jsx)("span",{children:S.label})]},S.id))]}),ne.notes.map((S,O)=>(0,r.jsxs)("div",{className:"draft-note",children:["\xB7 ",S]},O))]}),(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:$e||!ne.domains.length,onClick:cn,children:e("newsFollowConfirm")})]})]}):null,V.length>0?(0,r.jsx)("div",{className:"mc-news-follows",children:V.map(S=>(0,r.jsxs)("span",{className:"mc-news-follow-chip"+(ie===S.id?" on":""),children:[(0,r.jsxs)("button",{type:"button",className:"chip-main",onClick:()=>j(O=>O===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:()=>rt(S.id),children:"\u2715"})]},S.id))}):null,ht?(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,Ne.length>0?(0,r.jsxs)("span",{children:["\xB7 ",Ne.map(pe).join(" / ")]}):null,(0,r.jsx)("span",{className:"mc-news-pref-actions",children:(0,r.jsx)("button",{type:"button",className:"mc-btn",onClick:ft,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"+(I===""?" on":""),onClick:()=>R(""),children:[e("all"),(0,r.jsx)("span",{className:"mc-news-pill-count",children:x.length})]}),i.map(S=>Q[S.id]?(0,r.jsxs)("button",{type:"button",className:"mc-news-pill"+(I===S.id?" on":""),onClick:()=>R(I===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"+(B==="rec"?" active":""),onClick:()=>W("rec"),children:e("newsSortRec")}),(0,r.jsx)("button",{type:"button",className:"mc-chip"+(B==="time"?" active":""),onClick:()=>W("time"),children:e("newsSortTime")}),(0,r.jsx)("button",{type:"button",className:"mc-btn",disabled:s,onClick:je,children:e(s?"newsLoading":"newsFeedRefresh")})]})]}),(0,r.jsxs)("div",{className:"mc-news-feed-meta",style:{margin:"0 0 8px"},children:[p?e("newsUpdatedAt")+" "+new Date(p).toLocaleTimeString():"",s?"":" \xB7 "+$.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(U?"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:je,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)(hl,{}),(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:je,children:e("newsFeedRefresh")})]}):$.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:Ue,children:e("newsClearFilters")})]}):(0,r.jsxs)(r.Fragment,{children:[!ie&&ce.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"+(se?" is-swapping":""),children:ce.map((S,O)=>N(S,O))})]}):null,(0,r.jsx)("div",{className:"mc-news-grid"+(se?" is-swapping":""),children:We.map((S,O)=>N(S,O))})]})]})}function fv({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)(gv,{t:e,version:t,onUnreadChange:n}):(0,r.jsx)(mv,{t:e,mode:a,version:t})]})}function gv({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}),[p,u]=(0,m.useState)(""),[h,g]=(0,m.useState)(""),[k,L]=(0,m.useState)(""),[D,F]=(0,m.useState)(!1),[v,f]=(0,m.useState)(""),[y,_]=(0,m.useState)(null),[I,R]=(0,m.useState)(null),[P,A]=(0,m.useState)(!1),[B,W]=(0,m.useState)(""),[le,ye]=(0,m.useState)(null),se=(j,H=!0)=>{ye({msg:j,ok:H}),setTimeout(()=>ye(null),2600)};(0,m.useEffect)(()=>{let j=setTimeout(()=>g(p.trim()),220);return()=>clearTimeout(j)},[p]);let Ge=(0,m.useCallback)(async()=>{let j=new URLSearchParams;h&&j.set("q",h),k&&j.set("category",k),D&&j.set("unread","1");try{let H=await fetch(ee+"/news?"+j.toString()).then(M=>M.json());if(!H||!H.ok)throw new Error(H&&H.error||"load failed");o(H.items||[]),l(H.categories||[]),c(H.counts||{all:0,unread:0}),n&&n(Number((H.counts||{}).unread)||0)}catch{se(e("newsSaveFail"),!1)}},[h,k,D,n,e]);(0,m.useEffect)(()=>{Ge()},[t,Ge]);let V=async j=>{f(j.id);try{let H=await fetch(ee+"/news/item?id="+encodeURIComponent(j.id)).then(M=>M.json());if(!H||!H.ok)throw new Error(H&&H.error||"load failed");_(H.item),H.item.read||await _e(j.id,!0)}catch{se(e("newsSaveFail"),!1)}},_e=async(j,H)=>{try{let M=await fetch(ee+"/news/read",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:j,read:H})}).then(J=>J.json());if(!M||!M.ok)throw new Error(M&&M.error||"read failed");_(J=>J&&J.id===j?{...J,read:!!H}:J),await Ge()}catch{se(e("newsSaveFail"),!1)}},T=async j=>{if(A(!1),j){let H=j;if(!H.body)try{let M=await fetch(ee+"/news/item?id="+encodeURIComponent(H.id)).then(J=>J.json());M&&M.ok&&(H=M.item)}catch{}R({id:H.id,title:H.title||"",date:H.date||id(),category:H.category||"",source:H.source||"",url:H.url||"",tags:(H.tags||[]).join(", "),pinned:!!H.pinned,body:H.body||"",created:H.created||""})}else R({...nv,date:id()})},Le=async()=>{if(I){if(!String(I.title||"").trim()||!String(I.body||"").trim()){se(e("newsSaveFail"),!1);return}W("save");try{let j={id:I.id||void 0,title:I.title,date:I.date,category:I.category,source:I.source,url:I.url,tags:String(I.tags||"").split(",").map(M=>M.trim()).filter(Boolean),pinned:!!I.pinned,body:I.body,created:I.created},H=await fetch(ee+"/news/save",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(j)}).then(M=>M.json());if(!H||!H.ok)throw new Error(H&&H.error||"save failed");R(null),f(H.item.id),_(H.item),await Ge(),se(e("newsSaved"))}catch(j){se(j&&j.message||e("newsSaveFail"),!1)}finally{W("")}}},ne=async j=>{if(window.confirm(e("newsDeleteConfirm"))){W("delete");try{let H=await fetch(ee+"/news/delete",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:j.id})}).then(M=>M.json());if(!H||!H.ok)throw new Error(H&&H.error||"delete failed");v===j.id&&(f(""),_(null)),await Ge(),se(e("newsDeleted"))}catch{se(e("newsSaveFail"),!1)}finally{W("")}}},te=a.filter(j=>j.pinned),$e=a.filter(j=>!j.pinned),Ie=y?ld(y.url):"",ie="";return(0,r.jsxs)("div",{className:"mc-news",children:[(0,r.jsx)(vl,{toast:le}),(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:p,onChange:j=>u(j.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(j=>(0,r.jsx)("button",{type:"button",className:"mc-chip"+(k===j?" active":""),onClick:()=>L(H=>H===j?"":j),children:j},j)),(0,r.jsx)("button",{type:"button",className:"mc-chip"+(D?" active":""),onClick:()=>F(j=>!j),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(p||k||D?"newsNoMatch":"newsEmpty"),!p&&!k&&!D&&(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(j=>(0,r.jsx)(If,{item:j,t:e,active:v===j.id,onOpen:V,onEdit:H=>T(H),onToggleRead:H=>_e(H.id,!H.read),onDelete:ne},j.id))]}),(0,r.jsx)("div",{className:"mc-news-group",children:$e.map(j=>{let H=rv(j.date,e),M=H!==ie;return ie=H,(0,r.jsxs)(m.default.Fragment,{children:[M&&(0,r.jsx)("div",{className:"mc-news-group-label",children:H}),(0,r.jsx)(If,{item:j,t:e,active:v===j.id,onOpen:V,onEdit:J=>T(J),onToggleRead:J=>_e(J.id,!J.read),onDelete:ne})]},j.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:()=>{_(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(j=>(0,r.jsxs)("span",{children:["#",j]},j))]}),Ie&&(0,r.jsx)("div",{style:{marginTop:8},children:(0,r.jsxs)("a",{className:"mc-btn",style:{textDecoration:"none"},href:Ie,target:"_blank",rel:"noopener noreferrer",children:["\u2197 ",e("newsOpenLink")]})}),(0,r.jsx)("div",{className:"md-doc",style:{marginTop:12},dangerouslySetInnerHTML:{__html:Ro(md(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:()=>_e(y.id,!y.read),children:y.read?e("newsMarkUnread"):e("newsMarkRead")}),(0,r.jsx)("button",{type:"button",className:"mc-btn",style:{color:"#f87171"},disabled:B==="delete",onClick:()=>ne(y),children:e("delete")})]})]})]}),I&&(0,r.jsx)("div",{className:"me-overlay",onClick:()=>R(null),children:(0,r.jsxs)("div",{className:"me-dialog",style:{maxWidth:860,width:"94vw",maxHeight:"90vh"},onClick:j=>j.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:I.id?e("newsEdit"):e("newsNew")}),(0,r.jsx)("div",{style:{flex:1}}),(0,r.jsx)("button",{type:"button",className:"mc-btn",onClick:()=>R(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:I.title,onChange:j=>R(H=>({...H,title:j.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:I.date||"",onChange:j=>R(H=>({...H,date:j.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:I.category||"",onChange:j=>R(H=>({...H,category:j.target.value}))})]}),(0,r.jsx)("datalist",{id:"me-news-categories",children:i.map(j=>(0,r.jsx)("option",{value:j},j))}),(0,r.jsxs)("label",{children:[(0,r.jsx)("span",{children:e("newsSourceField")}),(0,r.jsx)("input",{className:"mc-news-input",value:I.source||"",onChange:j=>R(H=>({...H,source:j.target.value}))})]}),(0,r.jsxs)("label",{children:[(0,r.jsx)("span",{children:e("newsUrlField")}),(0,r.jsx)("input",{className:"mc-news-input",value:I.url||"",onChange:j=>R(H=>({...H,url:j.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:I.tags||"",onChange:j=>R(H=>({...H,tags:j.target.value}))})]}),(0,r.jsxs)("label",{style:{flexDirection:"row",alignItems:"center",gap:8,paddingTop:18},children:[(0,r.jsx)("input",{type:"checkbox",checked:!!I.pinned,onChange:j=>R(H=>({...H,pinned:j.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:I.body||"",onChange:j=>R(H=>({...H,body:j.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:Ro(I.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(j=>!j),children:e(P?"newsEditBody":"newsPreview")}),(0,r.jsx)("button",{type:"button",className:"mc-btn",onClick:()=>R(null),children:e("cancel")}),(0,r.jsx)("button",{type:"button",className:"mc-btn me-on",disabled:B==="save",onClick:Le,children:e(B==="save"?"newsSaving":"newsSave")})]})]})]})})]})}function hv({t:e,onReload:t,version:n}){let[a,o]=(0,m.useState)([]),[i,l]=(0,m.useState)(""),[s,c]=(0,m.useState)(null),p=(g,k=!0)=>{c({msg:g,ok:k}),setTimeout(()=>c(null),3200)},u=(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)(()=>{u()},[n,u]);let h=async(g,k)=>{let L=(a.find(D=>D.path===k)||{}).title||k;l(g+k);try{let F=await fetch(ee+(g==="restore"?"/recycle/restore":"/recycle/purge")+"?path="+encodeURIComponent(k)),v=await F.json().catch(()=>null);await u(),t&&t(),F.ok&&(!v||v.ok!==!1)?p(e(g==="restore"?"toastRestored":"toastPurged")+"\uFF1A"+L):p(e("toastFailed")+"\uFF1A"+(v&&v.error||"HTTP "+F.status),!1)}catch(D){p(e("toastFailed")+"\uFF1A"+String(D&&D.message||D),!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)(vl,{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 u(),t&&t(),g.ok&&(!k||k.ok!==!1)?p(e("toastPurgeAll").split("{n}").join(String(k&&k.purged!=null?k.purged:a.length)),!0):p(e("toastFailed")+"\uFF1A"+(k&&k.error||"HTTP "+g.status),!1)}catch(g){p(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=Gt[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:Lr[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(Lt[g.kind]||"kindKnowledge")," \xB7 ",g.status==="rejected"?e("rejected"):e("bucketDeleted")," \xB7 ",dl(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 md=(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(`
|
|
1036
|
+
`)},yv=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},fd=e=>{let t=String(e.summary||"").replace(/[#>*_`]/g," ").replace(/\s+/g," ").trim();return t.length>150?t.slice(0,148)+"\u2026":t},Gf=e=>{let t=String(e.summary||"").toLowerCase();return/决策|结论|决定|decision/.test(t)?"insightDecision":/根因|原因|root cause/.test(t)?"insightRoot":/教训|避免|lesson/.test(t)?"insightLesson":"insightSummary"},Kf=({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})]})},vv=({card:e,t,onOpen:n,query:a,onDelete:o,onTagClick:i,pinned:l,onPin:s,onCore:c,links:p})=>{let u=Gt[e.kind]||Gt.other,h=Number(p??e.links??e.weight??0),g=ed(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:u,background:u+"18",borderColor:u+"38"},children:Lr[e.kind]||"\u{1F4CE}"}),(0,r.jsx)("span",{className:"mc-v5-card-kind-name",children:e.kind==="core"?"\u2B50 "+t("kindCore"):t(Lt[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")]}),zv(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:ar(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?rd(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(Gf(e))}),(0,r.jsx)("span",{className:"mc-v5-card-lead",children:a?rd(e.summary||"",a):fd(e)})]}),a&&(()=>{let k=lf(e.body||"",a);return k?(0,r.jsx)("p",{className:"mc-snippet",children:rd(k,a)}):null})(),ed(e).length>0&&(0,r.jsxs)("div",{className:"mc-tags mc-v5-card-tags",children:[ed(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)(Kf,{n:h,color:u})," ",(0,r.jsx)("b",{children:h})," ",t("links")]}),(0,r.jsxs)("span",{className:"mc-v5-author",children:["\u{1F916} ",Rr(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 bv({t:e,tab:t,onReload:n,version:a}){let[o,i]=(0,m.useState)(null),[l,s]=(0,m.useState)(""),[c,p]=(0,m.useState)(null),[u,h]=(0,m.useState)(null),[g,k]=(0,m.useState)(null),[L,D]=(0,m.useState)(null),[F,v]=(0,m.useState)(null),[f,y]=(0,m.useState)(null),_=(0,m.useCallback)(async()=>{B("align");try{let x=await fetch(ee+"/align").then(Q=>Q.json());x&&x.findings?y(x):notify(e("alignFail"),!1)}catch{notify(e("alignFail"),!1)}finally{B("")}},[e]),I=async()=>{if(window.confirm(e("alignFixConfirm"))){B("alignfix");try{let x=await fetch(ee+"/setup-run",{method:"POST",headers:{"Content-Type":"application/json"},body:"{}"}).then(Q=>Q.json());x&&x.ok?(notify(e("alignFixed")),await _()):notify(e("alignFail"),!1)}catch{notify(e("alignFail"),!1)}finally{B("")}}},[R,P]=(0,m.useState)([]),[A,B]=(0,m.useState)(""),[W,le]=(0,m.useState)(!1),ye=(0,m.useCallback)(async()=>{if(!(!c||!c.merge||!c.merge.length)&&window.confirm(e("mergeAllConfirm"))){B("merge");try{let x={},Q=ke=>x[ke]===void 0?ke:x[ke]=Q(x[ke]),$=(ke,U)=>{x[Q(ke)]=Q(U)},we=new Set;for(let ke of c.merge)we.add(ke.a.path),we.add(ke.b.path),$(ke.a.path,ke.b.path);let De={};for(let ke of we){let U=Q(ke);(De[U]=De[U]||[]).push(ke)}let xe=0;for(let ke of Object.values(De)){if(ke.length<2)continue;(await fetch(`${ee}/merge?paths=${encodeURIComponent(ke.join(","))}`).then(ue=>ue.json())).ok&&xe++}await se(),n&&n()}catch{}B("")}},[c,se,n,e]);async function se(){try{let x=await Promise.all([fetch(`${ee}/stats`),fetch(`${ee}/budget`),fetch(`${ee}/capture-log`),fetch(`${ee}/cards?status=all&limit=30&agent=${Fo}`),fetch(`${ee}/overview`),fetch(`${ee}/ledger?days=7`)]),[Q,$,we,De,xe,ke]=await Promise.all(x.map(U=>U.json()));Q&&Q.ok&&i(Q),$&&$.ok&&h($),we&&we.ok&&k(we),De&&De.ok&&P(De.cards||[]),xe&&xe.ok&&D({db:xe.db,backups:xe.backups,total:xe.total,version:xe.version,degraded:xe.degraded===!0}),v(ke&&ke.ok?ke:{ok:!1,error:ke&&ke.error||""}),s(!Q||!Q.ok?e("adminLoadFail"):"")}catch{s(e("adminLoadFail"))}}let Ge=(0,m.useCallback)(async()=>{B("scan");try{let x=await fetch(`${ee}/optimize`).then(Q=>Q.json());x.ok&&p(x)}catch{s(e("adminLoadFail"))}finally{B("")}},[e]),[V,_e]=(0,m.useState)(null),T=(0,m.useCallback)(async()=>{B("refine");try{let x=await fetch(`${ee}/refine-scan`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({limit:8})}).then(Q=>Q.json());x&&x.ok?_e(x):notify(x&&x.error||e("refineFail"),!1)}catch{notify(e("refineFail"),!1)}finally{B("")}},[e]),Le=async(x,Q)=>{if(!(Q==="merge"&&!window.confirm(e("mergeConfirm")))){B("refineapply");try{let $=await fetch(`${ee}/refine-apply`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({a:x.a.path,b:x.b.path,action:Q,relation:x.relation})}).then(we=>we.json());$&&$.ok?(notify(e("refineApplied")),_e(we=>we&&{...we,findings:(we.findings||[]).filter(De=>!(De.a.path===x.a.path&&De.b.path===x.b.path))}),await se(),n&&n()):notify($&&$.error||e("refineFail"),!1)}catch{notify(e("refineFail"),!1)}finally{B("")}}},[ne,te]=(0,m.useState)(null),$e=(0,m.useCallback)(async()=>{B("junk");try{let x=await fetch(`${ee}/refine-junk`).then(Q=>Q.json());x&&x.ok?te(x.items||[]):notify(e("junkFail"),!1)}catch{notify(e("junkFail"),!1)}finally{B("")}},[e]),Ie=async x=>{if(x.length&&window.confirm(e("junkRecycleAllConfirm"))){B("junkpurge");try{let Q=await fetch(`${ee}/refine-junk-purge`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({paths:x})}).then($=>$.json());Q&&Q.removed?(notify(e("junkDone")+"\uFF1A"+Q.removed.length+(Q.failed?.length?"\uFF08\u5931\u8D25 "+Q.failed.length+"\uFF09":"")),te($=>$&&$.filter(we=>!Q.removed.includes(we.path))),await se(),n&&n()):notify(e("junkFail"),!1)}catch{notify(e("junkFail"),!1)}finally{B("")}}},[ie,j]=(0,m.useState)(null),H=(0,m.useCallback)(async()=>{B("goals");try{let x=await fetch(ee+"/refine-goals",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({limit:30})}).then(Q=>Q.json());x&&x.ok?j(x):notify(x&&x.error||e("goalFail"),!1)}catch{notify(e("goalFail"),!1)}finally{B("")}},[e]),M=async x=>{B("goalskeep");try{let Q=await fetch(ee+"/refine-goals-keep",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({paths:x.members.map($=>$.path)})}).then($=>$.json());Q&&Q.ok?(notify(e("goalDone")),j($=>$&&{...$,clusters:($.clusters||[]).filter(we=>we.goal!==x.goal)})):notify(e("goalFail"),!1)}catch{notify(e("goalFail"),!1)}finally{B("")}},J=async x=>{if(window.confirm(e("mergeConfirm"))){B("goalsmerge");try{let Q=await fetch(ee+"/merge?paths="+encodeURIComponent(x.members.map($=>$.path).join(","))).then($=>$.json());Q&&Q.ok?(notify(e("goalMerged")),j($=>$&&{...$,clusters:($.clusters||[]).filter(we=>we.goal!==x.goal)}),await se(),n&&n()):notify(e("mergeFail"),!1)}catch{notify(e("mergeFail"),!1)}finally{B("")}}};(0,m.useEffect)(()=>{se()},[a]);let de=async(x,Q)=>{if(window.confirm(e("mergeConfirm")))try{(await fetch(`${ee}/merge?paths=${encodeURIComponent(x+","+Q)}`).then(we=>we.json())).ok&&(await se(),n&&n())}catch{}},Be=async x=>{if(window.confirm(e("deleteConfirm")))try{(await fetch(`${ee}/delete?path=${encodeURIComponent(x)}`).then($=>$.json())).ok&&(await se(),n&&n())}catch{}},je=Hf,pe=({title:x,kind:Q,updated:$,path:we})=>(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:Vn.colors[Q]||"#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:ar($)}),(0,r.jsxs)("button",{type:"button",className:"mc-btn",style:{padding:"2px 8px"},onClick:()=>Be(we),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:se,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:()=>se(),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?ar(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:()=>se(),children:["\u21BB ",e("refresh")]})]}),L?(()=>{let x=L.db||{},Q=x.writable!==!1&&!x.corrupt,$=L.backups||{count:0,newestAt:0},we=$.newestAt?Math.floor((Date.now()-Number($.newestAt))/864e5):-1,De=$.count?we>7?"warn":"ok":"bad",xe=g&&g.available?g.health:null,ke=xe?xe.ok?"ok":"warn":"none",U=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"]},Ne=[{label:e("healthDb"),level:Q?"ok":"bad",text:Q?"journal="+(x.journalMode||"?")+(x.checkedAt?" \xB7 "+new Date(x.checkedAt).toLocaleString():""):(x.error||e("healthDbBad"))+" \u2192 dsh-memory doctor"},{label:e("healthBackups"),level:De,text:$.count?(we<=0?e("healthBackupToday").replace("{n}",String($.count)):e("healthBackupAge").replace("{n}",String($.count)).replace("{d}",String(we)))+($.files&&$.files.length?" \xB7 "+$.files[$.files.length-1]:""):e("healthNoBackups")},{label:e("healthCapture"),level:ke,text:xe?xe.ok?e("healthCapOk"):e("healthCapFail")+"\uFF1A"+(xe.reason||""):e("healthNoRecords")},{label:e("healthVersion"),level:U,text:U==="none"?e("healthRunAlign"):e("vcOnDisk")+" v"+(f.onDisk||"?")+" \xB7 "+e("vcResident")+" v"+(f.residentServed||"?")+" \xB7 "+e("vcLoaded")+" v"+(f.hostVersion||"?"),action:U==="none"?{label:e("alignRun"),run:_}:null}];return(0,r.jsx)("div",{style:{marginTop:6},children:Ne.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:()=>se(),children:["\u21BB ",e("refresh")]})]}),F?F.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(F.error||""))?e("ledgerNeedRestart"):F.error||e("adminLoadFail")]}):F.totals.recalls+F.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(F.totals.recalls),s:e("ledgerInjected")+" "+Number(F.totals.injectedChars||0).toLocaleString()+" "+e("ledgerChars")},{k:e("ledgerCaptures"),v:String(F.totals.captures),s:e("ledgerLlmCalls")+" "+F.totals.llmCalls+(F.totals.captureFail?" \xB7 \u2717 "+F.totals.captureFail:"")},{k:e("ledgerEstimate"),v:"\u2248 "+Number(F.totals.estTokens||0).toLocaleString(),s:e("ledgerEstimateHint")},{k:e("ledgerUseful"),v:F.feedback.rate==null?"\u2014":Math.round(F.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:!!A,onClick:_,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:I,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((x,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: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]},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:()=>se(),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,Q)=>{let $=Qy[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:ar(x.time?new Date(x.time).toISOString():"")}),(0,r.jsxs)("td",{style:{padding:"4px 6px",whiteSpace:"nowrap",color:$[1],fontWeight:600},children:[$[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||""})]},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",R.length,"\uFF09"]}),R.length?(0,r.jsx)("ul",{style:{margin:0,padding:0,listStyle:"none"},children:R.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:Gt[x.kind]||Gt.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:ar(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,Q=Math.max(...x.map(xe=>xe.count),1),$=260,we=50,De=$/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:$,height:we,style:{display:"block",width:"100%",height:50},children:x.map((xe,ke)=>{let U=Math.round(xe.count/Q*(we-4));return(0,r.jsx)("rect",{x:ke*De+1,y:we-U,width:Math.max(De-2,2),height:U,rx:1.5,fill:xe.count>0?"var(--dsw-alias-accent, #3b82f6)":"var(--dsw-alias-border-l1, #e5e7eb)",opacity:xe.count>0?.85:.35},xe.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:je.map(x=>(0,r.jsxs)("span",{style:{fontSize:12},children:[(0,r.jsx)("span",{className:"mc-kind",style:{background:Vn.colors[x]||"#666"}}),e(Lt[x]),": ",o.byKind?.[x]||0]},x))})]}),u&&(u.budgetChars||u.recallLimit||u.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:u.budgetChars||8e4})," \xB7 ",e("recallLimitLabel")," ",(0,r.jsx)("b",{children:u.recallLimit||5})," \xB7 ",e("embeddingLabel")," ",u.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)(pe,{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:!!A,onClick:Ge,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"))){B("oneclick");try{let x=JSON.stringify({cleanupStale:W}),$=await(await fetch(`${ee}/optimize-execute`,{method:"POST",headers:{"Content-Type":"application/json"},body:x})).json();$&&$.ok?(notify(`${e("oneClickOptimizeDone")}\uFF1A${$.plan.merged} ${e("optimizedMerged")}${W?` \xB7 ${$.plan.staleDeleted} ${e("optimizedStaleDeleted")}`:""}`),await se(),n&&n(),p(null)):notify(e("mergeFail"),!1)}catch{notify(e("mergeFail"),!1)}finally{B("")}}},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:W,onChange:x=>le(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:!!A,onClick:ye,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((x,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:[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")})]},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;B("clean");let x=0;for(let Q of c.stale)try{await fetch(`${ee}/delete?path=${encodeURIComponent(Q.path)}`),x++}catch{}B(""),notify(`${x} ${e("deletedStale")}`),await se(),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)(pe,{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:!!A,onClick:T,children:e(A==="refine"?"exporting":"refineScan")}),(0,r.jsx)("span",{style:{opacity:.6,fontSize:11},children:e("refineHint")})]}),V?.findings?.length?V.findings.map((x,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: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:!!A,onClick:()=>Le(x,"keepA"),children:e("refineKeepA")}),(0,r.jsx)("button",{type:"button",className:"mc-btn",style:{padding:"2px 8px"},disabled:!!A,onClick:()=>Le(x,"keepB"),children:e("refineKeepB")}),(0,r.jsx)("button",{type:"button",className:"mc-btn",style:{padding:"2px 8px"},disabled:!!A,onClick:()=>Le(x,"keepBoth"),children:e("refineKeepBoth")}),(0,r.jsx)("button",{type:"button",className:"mc-btn",style:{padding:"2px 8px"},disabled:!!A,onClick:()=>Le(x,"merge"),children:e("refineMerge")})]})]},Q)):(0,r.jsx)("div",{style:{opacity:.6,fontSize:12},children:e(V?"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:$e,children:e(A==="junk"?"exporting":"junkScan")}),ne?.length?(0,r.jsx)("button",{type:"button",className:"mc-btn",disabled:!!A,onClick:()=>Ie(ne.map(x=>x.path)),children:e(A==="junkpurge"?"exporting":"junkRecycleAll")}):null,(0,r.jsx)("span",{style:{opacity:.6,fontSize:11},children:e("junkHint")})]}),ne?.length?(0,r.jsx)("ul",{style:{margin:0,padding:0,listStyle:"none"},children:ne.map((x,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: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:!!A,onClick:()=>Ie([x.path]),children:e("junkRecycle")})]},Q))}):(0,r.jsx)("div",{style:{opacity:.6,fontSize:12},children:e(ne?"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:H,children:e(A==="goals"?"exporting":"goalScan")}),ie?(0,r.jsxs)("span",{style:{opacity:.6,fontSize:11},children:[e("goalStats"),"\uFF1A",ie.cached," / ",ie.calls]}):null,(0,r.jsx)("span",{style:{opacity:.6,fontSize:11},children:e("goalHint")})]}),ie?.clusters?.length?ie.clusters.map((x,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: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(($,we)=>(0,r.jsx)("li",{children:$.title},we))}),(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:()=>M(x),children:e("goalKeep")}),(0,r.jsx)("button",{type:"button",className:"mc-btn",style:{padding:"2px 8px"},disabled:!!A,onClick:()=>J(x),children:e("goalMerge")})]})]},Q)):(0,r.jsx)("div",{style:{opacity:.6,fontSize:12},children:e(ie?"goalNone":"goalIdle")})]})]})]})]})}var nd=[{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 wv({t:e,newCard:t,setNewCard:n,onCreated:a}){if(!t)return null;let o=nd.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,p=h=>{let g=nd.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}))},u=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: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:[nd.map(h=>(0,r.jsx)("button",{type:"button",className:`mc-btn${t.template===h.key?" me-on":""}`,onClick:()=>p(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:Hf.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(Lt[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:u,children:e(c?"exporting":"createCard")})})]})]})]})}async function cd(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 xv({t:e,onClose:t}){let[n,a]=(0,m.useState)(""),[o,i]=(0,m.useState)(""),[l,s]=(0,m.useState)(""),[c,p]=(0,m.useState)(!0),[u,h]=(0,m.useState)(!1),[g,k]=(0,m.useState)(""),[L,D]=(0,m.useState)(""),F=(0,m.useRef)(null),v=(0,m.useRef)(null),f=()=>{let W=F.current;if(W)try{W.focus(),W.select()}catch{}},y=W=>{k(W),v.current&&clearTimeout(v.current),v.current=setTimeout(()=>k(""),2400)};(0,m.useEffect)(()=>{let W=!0;return fetch(ee+"/diagnostics").then(le=>le.json()).then(le=>{W&&(le&&le.ok?(i(String(le.diagnostics||"")),s(String(le.version||""))):h(!0))}).catch(()=>{W&&h(!0)}).finally(()=>{W&&p(!1)}),()=>{W=!1}},[]),(0,m.useEffect)(()=>{let W=le=>{le.key==="Escape"&&t()};return window.addEventListener("keydown",W),()=>{window.removeEventListener("keydown",W),v.current&&clearTimeout(v.current)}},[t]);let _=(()=>{try{return String(navigator.language||"").toLowerCase().startsWith("en")?"en":"zh"}catch{return"zh"}})(),I=()=>{let W=n.trim().split(`
|
|
1037
|
+
`)[0]||"",le=pf({title:"[Bug] "+(W.slice(0,60)||"memory-eternal \u95EE\u9898"),body:mf({description:n,diagnostics:o,version:l})});try{window.open(le,"_blank","noopener")}catch{y(e("fbCopyFail"))}},R=async()=>{await cd(o)?(D(""),y(e("fbCopiedDiag"))):(D(o),y(e("fbCopyManual")))},P=async()=>{let W=ff({lang:_,description:n,diagnostics:o});await cd(W)?(D(""),y(e("fbCopiedPrompt"))):(D(W),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},B={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:W=>W.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:W=>a(W.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:R,disabled:!o,children:e("fbCopyDiag")})]}),(0,r.jsx)("pre",{style:B,children:c?e("fbLoading"):u?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}I()},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}),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:F,readOnly:!0,value:L,rows:7,style:A})]})]})]})]})}function kv({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")}],p="https://github.com/EternalNight996/memory-eternal/blob/main/README.md",u=(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: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:[u("support/group-qr.jpg",e("supportGroupQQ")),u("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:p,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:[u("support/wechat-pay.jpg","\u5FAE\u4FE1\u6536\u6B3E\u7801"),u("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:p,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 Sv({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: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:()=>ad(o),children:["\u2605 ",e("onboardStar")]}),(0,r.jsxs)("button",{type:"button",className:"mc-btn",onClick:()=>ad(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 Cv({t:e,card:t,query:n,onClose:a,onDelete:o,onFeedback:i,onNavigate:l,onTagClick:s,allCards:c,onOpenRelated:p,onKindChange:u,onSaved:h}){let[g,k]=(0,m.useState)(0),[L,D]=(0,m.useState)(""),[F,v]=(0,m.useState)(()=>{try{let U=localStorage.getItem("me-read-width");return["narrow","mid","wide"].includes(U)?U:"mid"}catch{return"mid"}}),f={narrow:720,mid:900,wide:1180};(0,m.useEffect)(()=>{let U=ue=>{if(ue.key==="Escape"){a();return}let Ne=String(ue.target&&ue.target.tagName||"").toLowerCase();Ne==="input"||Ne==="textarea"||Ne==="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",U),()=>window.removeEventListener("keydown",U)},[a,l]);let y=async(U,ue)=>{let Ne=await cd(String(U||""));D(Ne?e("copied")+" \xB7 "+ue:e("copyFail")),setTimeout(()=>D(""),1500)},{meta:_,body:I}=(0,m.useMemo)(()=>ll(t.text||""),[t.text]),R=U=>{let ue=_.find(([Ne])=>String(Ne).toLowerCase()===U);return ue?ue[1]:""},P=of(R("tags")),A=t.kind||R("kind")||"knowledge",B=String(t.status||R("status")||"approved").toLowerCase(),W=Gt[A]||"#6B7280",le=(I||"").length>460,ye=(0,m.useMemo)(()=>md(I,t.title),[I,t.title]),se=(0,m.useMemo)(()=>{let U=fd(t);if(U)return U;let Ne=(ye.split(/\r?\n/).map(be=>be.trim()).find(be=>be&&!/^#{1,2}\s/.test(be))||"").replace(/[#>*_`]/g,"").replace(/\s+/g," ").trim();return Ne.length>150?Ne.slice(0,148)+"\u2026":Ne},[t,ye]),Ge=(0,m.useMemo)(()=>yv(ye),[ye]),V=(0,m.useMemo)(()=>{let U=new Set(P);return(c||[]).filter(ue=>ue.path!==t.path&&(ue.tags||[]).some(Ne=>U.has(Ne))).slice(0,3)},[c,t.path,P.join("|")]),_e=()=>{j(String(t.title||"")),M((Array.isArray(P)?P:[]).join(", ")),de(String(I||"")),x(""),Ie(!0)},T=()=>{Ie(!1),x("")},Le=async()=>{let U=String(ie||"").trim(),ue=String(J||"").trim();if(!U){x(e("editTitleEmpty"));return}if(!ue){x(e("editBodyEmpty"));return}let Ne=String(H||"").split(/[,,\n]+/).map(be=>be.trim()).filter(Boolean);je(!0),x("");try{let be=await fetch(`${ee}/card/update`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:t.path,title:U,tags:Ne,body:ue})}).then(ht=>ht.json());if(!be||!be.ok){x(be&&be.error||e("editFail"));return}Ie(!1),h&&await h({path:t.path,status:B,title:U})}catch(be){x(String(be&&be.message||be))}finally{je(!1)}},[ne,te]=(0,m.useState)(!0),[$e,Ie]=(0,m.useState)(!1),[ie,j]=(0,m.useState)(""),[H,M]=(0,m.useState)(""),[J,de]=(0,m.useState)(""),[Be,je]=(0,m.useState)(!1),[pe,x]=(0,m.useState)(""),Q=(0,m.useRef)(null),[$,we]=(0,m.useState)(""),De=U=>{let ue=Q.current;if(!ue)return;let Ne=document.getElementById(U);if(!Ne||!ue.contains(Ne))return;let be=Ne.getBoundingClientRect().top-ue.getBoundingClientRect().top+ue.scrollTop-12;ue.scrollTo({top:Math.max(0,be),behavior:"smooth"})},xe=U=>{if(!ne){te(!0),setTimeout(()=>De(U),80);return}De(U)},ke=U=>{let ue=U.currentTarget,Ne=ue.scrollHeight-ue.clientHeight;k(Ne<=0?100:Math.min(100,Math.max(0,ue.scrollTop/Ne*100)));let be=ue.querySelectorAll(".md-doc .md-h"),ht="",Jt=ue.getBoundingClientRect().top+28;for(let Ue of be)if(Ue.getBoundingClientRect().top<=Jt)ht=Ue.id;else break;we(ht)};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:U=>U.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:Lr[A]||"\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(I,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:$e?T:_e,children:$e?"\u2716 "+e("editCancel"):"\u270F\uFE0F "+e("editCard")}),(0,r.jsxs)("button",{type:"button",className:"mc-btn",title:e("readWidth"),onClick:()=>{let U=["narrow","mid","wide"],ue=U[(U.indexOf(F)+1)%U.length];v(ue);try{localStorage.setItem("me-read-width",ue)}catch{}},children:[e("readWidth")," \xB7 ",e(F==="narrow"?"widthNarrow":F==="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")]}),le&&(0,r.jsx)("button",{type:"button",className:"mc-btn","aria-expanded":ne,onClick:()=>te(U=>!U),children:e(ne?"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")}),u&&B==="approved"&&(A==="core"?(0,r.jsx)("button",{type:"button",className:"mc-btn",onClick:()=>u(t.path,"knowledge"),children:e("unsetCore")}):(0,r.jsxs)("button",{type:"button",className:"mc-btn",onClick:()=>u(t.path,"core"),children:["\u2B50 ",e("setCore")]})),(0,r.jsx)("button",{type:"button",className:"mc-btn",onClick:a,children:e("close")})]})]}),u&&(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")}),B==="approved"?(0,r.jsx)("button",{type:"button",className:"mc-btn me-core-btn",onClick:()=>u(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:W,borderColor:W+"59",background:W+"1a"},children:[Lr[A]||"\u{1F4CE}"," ",e(Lt[A]||"kindKnowledge")]}),(0,r.jsxs)("span",{className:"md-chip "+(B==="approved"?"md-chip-st-ok":B==="pending"?"md-chip-st-warn":"md-chip-st-bad"),children:[B==="approved"?"\u2705":B==="pending"?"\u23F3":"\u26D4"," ",e(B==="approved"?"statusApproved":B==="pending"?"statusPending":"statusRejected")]}),(Array.isArray(P)?P:[]).slice(0,8).map(U=>(0,r.jsxs)("button",{type:"button",className:"md-chip md-chip-tag mc-tag-click",title:U,onClick:()=>s&&s(U),children:["\u{1F3F7} ",U]},U)),!!R("updated")&&(0,r.jsxs)("span",{className:"md-chip md-date",children:["\u{1F552} ",e("updated")," ",ar(R("updated"))]}),!!R("source")&&(0,r.jsxs)("span",{className:"md-chip md-date",children:["\u{1F4E5} ",R("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[F],margin:"0 auto",width:"100%",boxSizing:"border-box",...ne?{}:{maxHeight:300,overflow:"hidden"}},ref:Q,onScroll:ke,onClick:ne?void 0:U=>{U.stopPropagation(),te(!0)},children:[!$e&&!!se&&(0,r.jsxs)("div",{className:"me-reader-callout",children:[(0,r.jsx)("span",{className:"me-reader-callout-k",children:e(Gf(t))}),(0,r.jsx)("p",{children:se})]}),$e?(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:ie,onChange:U=>j(U.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:H,onChange:U=>M(U.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:J,onChange:U=>de(U.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"}}),pe&&(0,r.jsx)("div",{style:{color:"#f87171",fontSize:12},children:pe}),(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:Be,children:e("editCancel")}),(0,r.jsx)("button",{type:"button",className:"mc-btn",onClick:Le,disabled:Be,style:{borderColor:"var(--dsw-alias-brand-primary, #3b82f6)",color:"var(--dsw-alias-brand-primary, #3b82f6)",fontWeight:600},children:e(Be?"editSaving":"editSave")})]})]}):(0,r.jsx)("div",{className:"md-doc",dangerouslySetInnerHTML:{__html:Ro(ye)}})]}),(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((U,ue)=>(0,r.jsxs)("button",{type:"button",className:`lv${U.level}${$===U.id?" active":""}`,onClick:()=>xe(U.id),children:[(0,r.jsx)("span",{children:String(ue+1).padStart(2,"0")}),U.text]},U.id))})]}),(0,r.jsx)("div",{className:"side-label",children:e("source")}),(0,r.jsx)("div",{className:"me-reader-side-val",children:R("source")||t.submittedBy||"\u2014"}),(0,r.jsx)("div",{className:"side-label",children:e("updated")}),(0,r.jsx)("div",{className:"me-reader-side-val",children:ar(R("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(U=>(0,r.jsxs)("button",{type:"button",className:"mc-chip",onClick:()=>s&&s(U),children:["#",U]},U))})]}),V.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:V.map(U=>(0,r.jsxs)("button",{type:"button",onClick:()=>p&&p(U),children:[(0,r.jsx)("span",{children:Lr[U.kind]||"\u{1F4CE}"}),(0,r.jsx)("b",{children:U.title})]},U.path))})]})]})]}),!ne&&(0,r.jsxs)("div",{className:"md-collapsed-hint",onClick:U=>{U.stopPropagation(),te(!0)},children:[e("expand")," \u2304"]})]})]})}function Nv({t:e,onOpen:t,all:n,onAllChange:a,onMutate:o,active:i,visible:l}){let[s,c]=(0,m.useState)([]),[p,u]=(0,m.useState)(null),[h,g]=(0,m.useState)(null),[k,L]=(0,m.useState)(!1),D=(0,m.useRef)(0),F=(0,m.useRef)(null);F.current||(F.current=Tf(96));let v=(0,m.useRef)(0),f=(0,m.useRef)(0),y=(0,m.useRef)(s);y.current=s;let _=(0,m.useRef)(n),I=(0,m.useRef)({requests:0,cacheHits:0,errors:0,timeouts:0,lastMs:0,lastBytes:0}),R=(0,m.useCallback)(async(T,Le={})=>{let ne=Array.isArray(T)?T.filter(Boolean):[],te=(n?"all|":"")+Yr(ne);if(!Le.force){let H=F.current.get(te);if(H)return I.current.cacheHits+=1,u(H),c(ne),g(null),L(!1),H}let $e=++v.current;L(!0),g(null);let Ie=new AbortController,ie=setTimeout(()=>{try{Ie.abort()}catch{}},1600),j=performance.now();I.current.requests+=1;try{let H=await fetch(xf(ee,ne,{all:n}),{signal:Ie.signal}),M=await H.json().catch(()=>null);if($e!==v.current)return null;if(!H.ok||!M||!M.ok)throw new Error(M&&M.error||"HTTP "+H.status);let J=Ef(M);if(!J.ok)try{console.warn("[memory-eternal] \u5206\u5C42\u54CD\u5E94\u8D8A\u754C\uFF1A"+J.problems.join("\uFF1B"))}catch{}return F.current.set(te,M),I.current.lastMs=Math.round(performance.now()-j),I.current.lastBytes=J.bytes,f.current||(f.current=Math.round(performance.now())),u(M),c(ne),g(null),M}catch(H){if($e!==v.current)return null;let M=Nf(H,{timeoutMs:1600,elapsedMs:performance.now()-j});M.timeout&&(I.current.timeouts+=1),I.current.errors+=1;try{console.warn("[memory-eternal] \u5C42\u7EA7\u52A0\u8F7D\u5931\u8D25 @ "+te+"\uFF1A"+M.message)}catch{}return g({...M,target:Yr(ne),segments:ne.slice()}),null}finally{clearTimeout(ie),$e===v.current&&L(!1)}},[n]);(0,m.useEffect)(()=>{_.current!==n&&(_.current=n,F.current.clear(),i&&R([],{force:!0}))},[n,i,R]),(0,m.useEffect)(()=>{!i||p||k||R([])},[i,p,k,R]),(0,m.useEffect)(()=>{l&&p&&D.current++},[l,p]);let P=(0,m.useCallback)(T=>{let Le=Array.isArray(T)?T:wf(T&&T.path!==void 0?T.path:T);Yr(Le)!==Yr(y.current)&&R(Le)},[R]),A=(0,m.useCallback)(T=>{T&&R(y.current.concat(String(T)))},[R]),B=(0,m.useCallback)(()=>{F.current.clear();let T=h&&Array.isArray(h.segments)?h.segments:y.current;R(T,{force:!0})},[R,h]),W=(0,m.useCallback)(async()=>(F.current.clear(),R(y.current,{force:!0})),[R]),le=(0,m.useCallback)(async T=>{try{let ne=await(await fetch(`${ee}/delete?path=${encodeURIComponent(T)}`)).json();return ne&&ne.ok?(await W(),o&&o(),!0):!1}catch{return!1}},[W,o]),ye=(0,m.useCallback)(async T=>{if(!T||T.length<2)return!1;try{let Le=await fetch(`${ee}/merge?paths=${encodeURIComponent(T.join(","))}`).then(ne=>ne.json());return Le&&Le.ok?(await W(),o&&o(),!0):!1}catch{return!1}},[W,o]);(0,m.useEffect)(()=>{let T=()=>{let Le=typeof globalThis.__meGraphRuntime=="function"?globalThis.__meGraphRuntime():null;return{path:Yr(y.current),crumbs:p&&Array.isArray(p.crumbs)?p.crumbs.map(ne=>({path:ne.path,label:ne.label,labelKey:ne.labelKey,count:ne.count})):[],level:p&&p.level?{mode:p.level.mode,total:p.level.total,items:p.level.items.length,edges:p.level.edges.length}:null,loading:!!k,error:h?{timeout:!!h.timeout,message:h.message,target:h.target||""}:null,requests:I.current.requests,cacheHits:I.current.cacheHits,errors:I.current.errors,timeouts:I.current.timeouts,lastMs:I.current.lastMs,lastBytes:I.current.lastBytes,firstLevelMs:f.current,cacheSize:F.current.size,timeoutMs:1600,runtime:Le}};return globalThis.__meGraphProbe=T,()=>{if(globalThis.__meGraphProbe===T)try{delete globalThis.__meGraphProbe}catch{globalThis.__meGraphProbe=void 0}}},[p,k,h]);let se=p&&p.level?p.level:null,Ge=se?se.items.length:0,V=se?se.total:0,_e=se?se.edges.length:0;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.jsx)("span",{className:"mc-v5-pagecount",children:p?`${Ge} ${e("graphItems")} \xB7 ${V} ${e("graphCardsUnit")} \xB7 ${_e} ${e("edges")}`:""})]}),!p&&!h&&(0,r.jsx)(Yf,{text:e("loadingGraph")}),!p&&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:B,children:e("graphRetry")})]}),p&&Ge===0&&(0,r.jsx)("div",{className:"mc-empty",children:e("graphEmptyLevel")}),p&&Ge>0&&(0,r.jsx)(Mv,{level:se,crumbs:p.crumbs||[],onOpen:t,onDelete:le,onMerge:ye,onDrill:A,onNavigate:P,onRetry:B,error:p?h:null,loading:k,t:e,all:n,onAllChange:a,fitTrigger:D.current})]})}var Vn={colors:{core:"#FF7A45",skill:"#8B5CF6",project:"#3B82F6",knowledge:"#10B981",content:"#F59E0B",prompt:"#A855F7",business:"#EC4899",tool:"#06B6D4",mistake:"#EF4444",other:"#6B7280"},shapes:{core:"diamond",skill:"hexagon",project:"circle",knowledge:"circle",content:"rect",prompt:"diamond",business:"hexagon",tool:"circle",mistake:"diamond",other:"circle"}};function zr(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 hl({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 Yf({text:e,value:t}){return(0,r.jsxs)("div",{className:"me-loading",role:"status","aria-live":"polite",children:[(0,r.jsx)(hl,{value:t}),(0,r.jsx)("span",{className:"me-loading-text",children:e})]})}var jf=[];function Tv({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",p=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":"")+(p?" current":""),"aria-current":p?"page":void 0,title:c,disabled:p||a,onClick:()=>{p||n(i)},children:c})]},i.path||"root")})})}function Mv({level:e,crumbs:t,onOpen:n,onDelete:a,onMerge:o,onDrill:i,onNavigate:l,onRetry:s,error:c,loading:p,t:u,all:h,onAllChange:g,fitTrigger:k}){let L=(0,m.useRef)(null),D=(0,m.useRef)(null),F=(0,m.useRef)(null),v=(0,m.useRef)(null),f=(0,m.useRef)(null),y=e&&Array.isArray(e.items)?e.items:jf,_=e&&Array.isArray(e.edges)?e.edges:jf,I=e&&e.id||"",R=(0,m.useMemo)(()=>y.map(N=>({id:N.id,title:N.label||N.id,name:N.label||N.id,kind:N.kind||"other",tags:Array.isArray(N.tags)?N.tags:[],updated:N.updated||"",count:Number(N.count)||0,type:N.type||"card"})),[y]),P=(0,m.useMemo)(()=>_.map(N=>({source:N.source,target:N.target,type:N.type||"tag",weight:Number(N.weight)||1})),[_]),A=(0,m.useRef)(u);A.current=u;let B=(0,m.useRef)(n);(0,m.useEffect)(()=>{B.current=n},[n]);let W=(0,m.useRef)(a);(0,m.useEffect)(()=>{W.current=a},[a]);let le=(0,m.useRef)(o);(0,m.useEffect)(()=>{le.current=o},[o]);let ye=(0,m.useRef)(i);(0,m.useEffect)(()=>{ye.current=i},[i]);let[se,Ge]=(0,m.useState)(""),[V,_e]=(0,m.useState)(null),[T,Le]=(0,m.useState)(null),ne=(0,m.useRef)("");(0,m.useEffect)(()=>{ne.current=se.trim().toLowerCase()},[se]),(0,m.useEffect)(()=>{let N=F.current;if(!N)return;let w=se.trim().toLowerCase();if(!w)return;let ce=N.nodes.find(We=>(We.name||"").toLowerCase().includes(w));if(ce){F.current.selectedId=ce.id,_e(ce.id),N.panX=N.w/2-ce.x*N.zoom,N.panY=N.h/2-ce.y*N.zoom;try{N.render&&N.render()}catch(We){zr(We,"search-center")}}},[se]);let[te,$e]=(0,m.useState)("all"),[Ie,ie]=(0,m.useState)(!1),j=(0,m.useRef)("all"),[H,M]=(0,m.useState)(""),J=(0,m.useRef)(""),[de,Be]=(0,m.useState)(!1),je=(0,m.useRef)(!1),[pe,x]=(0,m.useState)(null);(0,m.useEffect)(()=>{j.current=te},[te]),(0,m.useEffect)(()=>{J.current=H},[H]),(0,m.useEffect)(()=>{je.current=de},[de]);let Q=(0,m.useMemo)(()=>{let N=new Map;for(let w of R)for(let ce of w.tags||[]){let We=String(ce).trim();We&&N.set(We,(N.get(We)||0)+1)}return[...N.entries()].sort((w,ce)=>ce[1]-w[1]).slice(0,24).map(([w,ce])=>({tag:w,n:ce}))},[R]),$=(0,m.useMemo)(()=>{let N={};for(let w of R)N[w.kind||"other"]=(N[w.kind||"other"]||0)+(w.type==="planet"?Math.max(1,w.count||0):1);return N},[R]),we=(()=>{let N=se.trim().toLowerCase();return!!N&&!R.some(w=>(w.title||w.name||"").toLowerCase().includes(N)||String(w.kind||"").toLowerCase().includes(N)||String(Lt[w.kind]||"").toLowerCase().includes(N))})();(0,m.useEffect)(()=>{let N=F.current;N&&N.requestRender&&N.requestRender()},[se]),(0,m.useEffect)(()=>{let N=F.current;if(!(!N||!N.render))try{N.render()}catch(w){zr(w,"filter/timeDim")}},[te,H,de]);let De=(0,m.useRef)(null),[xe,ke]=(0,m.useState)([]),[U,ue]=(0,m.useState)(null),[Ne,be]=(0,m.useState)(!1),[ht,Jt]=(0,m.useState)(null),[Ue,Ot]=(0,m.useState)(""),ft=(0,m.useRef)(null),He=(0,m.useRef)(null),Ze=(N,w=!0)=>{ft.current&&clearTimeout(ft.current),Jt({msg:N,ok:w}),ft.current=setTimeout(()=>Jt(null),1900)},cn=N=>{Ot(N),He.current&&clearTimeout(He.current),He.current=setTimeout(()=>Ot(""),1600)};(0,m.useEffect)(()=>()=>{ft.current&&clearTimeout(ft.current),He.current&&clearTimeout(He.current)},[]);let rt=(0,m.useMemo)(()=>R.reduce((N,w)=>(N[w.id]=w,N),{}),[R]);return(0,m.useEffect)(()=>{let N=L.current;if(!N||R.length===0)return;let w=N.getContext("2d");if(!w)return;let ce=Math.min(1.5,Math.max(1,window.devicePixelRatio||1)),We=()=>{let E=document.documentElement.getAttribute("data-theme");if(E)return E==="dark";try{return typeof window<"u"&&!!window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches}catch{return!1}},S={};P.forEach(E=>{S[E.source]=(S[E.source]||0)+1,S[E.target]=(S[E.target]||0)+1});let O=Math.max(1,...Object.values(S)),me=Mf(),Ve=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=>Sf(E,{degree:S[E.id]||0,maxDegree:O})),edges:P.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:ce,ctx:w,multi:[],marquee:null,planetLayer:Ve,levelId:I};d.domain=R,d.domainById=R.reduce((E,q)=>(E[q.id]=q,E),{}),d.nodeById=new Map(d.nodes.map(E=>[E.id,E])),d.edgePairs=(()=>{let E=new Map(d.nodes.map((G,Z)=>[G.id,Z])),q=new Int32Array(d.edges.length*2),Y=0;for(let G of d.edges){let Z=E.get(G.sourceNodeId),he=E.get(G.targetNodeId);Z===void 0||he===void 0||(q[Y]=Z,q[Y+1]=he,Y+=2)}return q.subarray(0,Y)})(),d.alpha=1,d.forceParams=Ve?Cf(pl(d.nodes.length)):pl(d.nodes.length),d.lastTickMs=0,d.lastRenderMs=0,d.nodes.forEach((E,q)=>{let Y=q*2.399963229728653,G=12*Math.sqrt(q);E.x=Math.cos(Y)*G,E.y=Math.sin(Y)*G});let Zt=[...new Set(d.nodes.map(E=>E.type))];d.clustered=!Ve&&Zt.length>1,d.typeCenters=d.typeCenters||{};let un=Ve?0:160;Zt.forEach((E,q)=>{if(d.typeCenters[E])return;let Y=q/Zt.length*Math.PI*2-Math.PI/2;d.typeCenters[E]={x:Math.cos(Y)*un,y:Math.sin(Y)*un}}),F.current=d;let pn=0,Dr=0,Dt=null,yt="",b=()=>{let E=N.clientWidth,q=N.clientHeight;d.w=E,d.h=q,N.width=E*ce,N.height=q*ce,w.setTransform(ce,0,0,ce,0,0),(pn===0||Dr===0)&&E>0&&q>0&&d.tickCount>0&&me.raf(()=>Cn()),pn=E,Dr=q};b();let ae=new ResizeObserver(b);ae.observe(N.parentElement);let fe=(E,q)=>E&&E.length>q?E.slice(0,q)+"\u2026":E,ze=(E,q,Y,G)=>{if(w.beginPath(),G==="rect")w.rect(E-Y,q-Y*.75,Y*2,Y*1.5);else if(G==="diamond")w.moveTo(E,q-Y),w.lineTo(E+Y,q),w.lineTo(E,q+Y),w.lineTo(E-Y,q),w.closePath();else if(G==="hexagon"){for(let Z=0;Z<6;Z++){let he=Math.PI/3*Z-Math.PI/2,Me=E+Y*Math.cos(he),Qe=q+Y*Math.sin(he);Z===0?w.moveTo(Me,Qe):w.lineTo(Me,Qe)}w.closePath()}else w.arc(E,q,Y,0,Math.PI*2)},Re=new Map,Te=(E,q)=>{let Y=E+"|"+Math.round(q),G=Re.get(Y);if(!G){let Z=parseInt(E.slice(1,3),16),he=parseInt(E.slice(3,5),16),Me=parseInt(E.slice(5,7),16);G=w.createRadialGradient(-q*.3,-q*.3,0,0,0,q*1.2),G.addColorStop(0,"rgba("+Math.min(255,Z+70)+","+Math.min(255,he+70)+","+Math.min(255,Me+70)+",0.95)"),G.addColorStop(1,E),Re.set(Y,G)}return G},Fe=(E,q)=>{let Y=parseInt(E.slice(1,3),16),G=parseInt(E.slice(3,5),16),Z=parseInt(E.slice(5,7),16);return"rgba("+Y+","+G+","+Z+","+q+")"},en=(E,q,Y)=>{let G=Qe=>[parseInt(Qe.slice(1,3),16),parseInt(Qe.slice(3,5),16),parseInt(Qe.slice(5,7),16)],Z=G(E),he=G(q),Me=Math.max(0,Math.min(1,Number(Y)||0));return"rgb("+Z.map((Qe,Ye)=>Math.round(Qe+(he[Ye]-Qe)*Me)).join(",")+")"},Sn=1.1,vt=3,Cn=()=>{if(!d.nodes.length)return;let E=1/0,q=-1/0,Y=1/0,G=-1/0;d.nodes.forEach(st=>{let fn=Number(st.r)||0,pt=st.planet?fn*1.75:fn;st.x-pt<E&&(E=st.x-pt),st.x+pt>q&&(q=st.x+pt),st.y-pt<Y&&(Y=st.y-pt),st.y+pt>G&&(G=st.y+pt)});let Z=20,he=q-E+Z*2,Me=G-Y+Z*2,Qe=Math.min(d.w/he,d.h/Me),Ye=Math.pow(1/Sn,vt);if(d.zoom=Math.max(.35,Math.min(1.8,Qe*Ye)),d.planetLayer){let st=Qe*Math.pow(1/Sn,vt);st<d.zoom&&(d.zoom=Math.max(.12,st))}d.panX=d.w/2-(E+q)/2*d.zoom,d.panY=d.h/2-(Y+G)/2*d.zoom};v.current=Cn;let An=()=>{w.clearRect(0,0,d.w,d.h),d.searchTerm=ne.current,d.kindFilter=j.current,d.timeMode=je.current,d.tagFilter=J.current;let E=d.tagFilter,q=d.kindFilter,Y=C=>String(C||"").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">");w.save();let G=d.w+"x"+d.h;if(!Dt||yt!==G){Dt=new Path2D;for(let C=0;C<d.w;C+=24)Dt.moveTo(C,0),Dt.lineTo(C,d.h);for(let C=0;C<d.h;C+=24)Dt.moveTo(0,C),Dt.lineTo(d.w,C);yt=G}w.strokeStyle=We()?"rgba(255,255,255,0.04)":"rgba(0,0,0,0.04)",w.lineWidth=.5,w.stroke(Dt),w.restore(),w.save(),w.translate(d.panX,d.panY),w.scale(d.zoom,d.zoom);let Z={};d.nodes.forEach(C=>Z[C.id]=C);let he=performance.now()<(d.motionUntil||0),Me=d.nodes.length>40,Qe=Me?1.5:.55,Ye=d.selectedId||d.hoverId,st=gf({panX:d.panX,panY:d.panY,zoom:d.zoom,w:d.w,h:d.h,margin:80}),fn=(()=>{let C=(d.searchTerm||"").toLowerCase();if(!C)return null;let ge=[];for(let Pe of d.nodes){let qe=(d.domainById[Pe.id]||{}).kind||"other";if(((Pe.name||"").toLowerCase().includes(C)||String(Lt[qe]||"").toLowerCase().includes(C)||String(qe).toLowerCase().includes(C))&&ge.push(Pe.id),ge.length>200)break}return ge})(),pt=yf(d.nodes,{limit:hf(d.nodes.length),focusId:Ye,hoverId:d.hoverId,searchHits:fn,degree:S}),ir=new Map,Ao=(C,ge)=>{let Pe=C+"|"+ge,Ae=ir.get(Pe);return Ae===void 0&&(w.font=C,Ae=w.measureText(ge).width,ir.set(Pe,Ae)),Ae},Sl=d.nodes.length<=250,Cl=new Map,tg=d.nodes.length>1200&&d.zoom<.3;d.edges.forEach(C=>{if(tg)return;let ge=Z[C.sourceNodeId],Pe=Z[C.targetNodeId];if(!ge||!Pe||!ul(ge.x,ge.y,10,st)&&!ul(Pe.x,Pe.y,10,st))return;if(q!=="all"){let Nl=d.domainById[C.sourceNodeId]&&d.domainById[C.sourceNodeId].kind,Tl=d.domainById[C.targetNodeId]&&d.domainById[C.targetNodeId].kind;if(Nl!==q&&Tl!==q)return}if(E){let Nl=d.domainById[C.sourceNodeId]&&(d.domainById[C.sourceNodeId].tags||[]).includes(E),Tl=d.domainById[C.targetNodeId]&&(d.domainById[C.targetNodeId].tags||[]).includes(E);if(!Nl&&!Tl)return}let Ae=Pe.x-ge.x,qe=Pe.y-ge.y,Tt=Math.sqrt(Ae*Ae+qe*qe)||1,ct=he?0:Me?12:18,kt=-qe/Tt*ct,Pt=Ae/Tt*ct,tn=(ge.x+Pe.x)/2+kt,Mt=(ge.y+Pe.y)/2+Pt,Mn=Vn.colors[d.domainById[ge.id]&&d.domainById[ge.id].kind||"other"]||Vn.colors.other,Ia=Ye&&(C.sourceNodeId===Ye||C.targetNodeId===Ye),vd=Ye?Ia?.62:.09:d.planetLayer?.32:Me?.18:.26,bd=parseInt(Mn.slice(1,3),16),wd=parseInt(Mn.slice(3,5),16),xd=parseInt(Mn.slice(5,7),16),kd=Math.max(1,Number(C.weight)||1),Sd=Ia?1.8+Math.min(4,kd):.9+Math.min(3,kd-1)*.45,Cd=bd+","+wd+","+xd+","+vd+","+Sd,Fa=Cl.get(Cd);Fa||(Fa={path:new Path2D,stroke:"rgba("+bd+","+wd+","+xd+","+vd+")",width:Sd},Cl.set(Cd,Fa)),Fa.path.moveTo(ge.x,ge.y),Fa.path.quadraticCurveTo(tn,Mt,Pe.x,Pe.y)}),Cl.forEach(C=>{w.strokeStyle=C.stroke,w.lineWidth=C.width,w.stroke(C.path)});let Pa=null;Ye&&(Pa=new Set,d.edges.forEach(C=>{C.sourceNodeId===Ye?Pa.add(C.targetNodeId):C.targetNodeId===Ye&&Pa.add(C.sourceNodeId)}));let _o=(C,ge={})=>{let Pe=fe(C.name,ge.maxChars||16),Ae=1/d.zoom,qe="500 "+(12*Ae).toFixed(1)+"px -apple-system,Segoe UI,sans-serif";w.font=qe;let ct=Ao(qe,Pe)+16*Ae,kt=18*Ae,Pt=C.y+C.r+(ge.gap===void 0?8:ge.gap)*Ae,tn=!0;for(let Mt of hd)if(C.x-ct/2<Mt.x+Mt.w&&C.x+ct/2>Mt.x&&Pt<Mt.y+Mt.h&&Pt+kt>Mt.y){tn=!1;break}return!tn&&!ge.force?!1:(hd.push({x:C.x-ct/2,y:Pt,w:ct,h:kt}),w.fillStyle=We()?"rgba(30,30,35,0.92)":"rgba(255,255,255,0.92)",w.beginPath(),w.roundRect?w.roundRect(C.x-ct/2,Pt,ct,kt,4*Ae):w.rect(C.x-ct/2,Pt,ct,kt),w.fill(),w.strokeStyle=We()?"rgba(255,255,255,0.08)":"rgba(0,0,0,0.08)",w.lineWidth=1*Ae,w.stroke(),w.fillStyle=We()?ge.strong?"#eee":"#bbb":ge.strong?"#111":"#444",w.textAlign="center",w.fillText(Pe,C.x,Pt+13*Ae),!0)},ng=(C,ge,Pe)=>{let Ae=1/d.zoom,{isSel:qe,isHov:Tt,dimmed:ct}=Pe;w.save(),w.globalAlpha=ct?.12:1;let kt=w.createRadialGradient(C.x,C.y,C.r*.7,C.x,C.y,C.r*1.9);kt.addColorStop(0,Fe(ge,.34)),kt.addColorStop(.5,Fe(ge,.12)),kt.addColorStop(1,Fe(ge,0)),w.fillStyle=kt,w.beginPath(),w.arc(C.x,C.y,C.r*1.9,0,Math.PI*2),w.fill(),w.save(),w.translate(C.x,C.y),w.rotate(-.34),w.strokeStyle=Fe(ge,qe||Tt?.8:.32),w.lineWidth=Math.max(.8,1.1*Ae),w.beginPath(),w.ellipse(0,0,C.r*1.5,C.r*.3,0,0,Math.PI*2),w.stroke(),w.restore(),w.save(),w.translate(C.x,C.y),w.save(),w.beginPath(),w.arc(0,0,C.r,0,Math.PI*2),w.clip();let Pt=w.createRadialGradient(-C.r*.34,-C.r*.38,C.r*.08,0,0,C.r*1.08);Pt.addColorStop(0,en(ge,"#ffffff",.46)),Pt.addColorStop(.52,ge),Pt.addColorStop(1,en(ge,"#000000",.44)),Sl&&(w.shadowColor=Fe(ge,.45),w.shadowBlur=qe?26:14),w.fillStyle=Pt,w.beginPath(),w.arc(0,0,C.r,0,Math.PI*2),w.fill(),w.shadowBlur=0;let tn=w.createLinearGradient(-C.r,-C.r,C.r,C.r);tn.addColorStop(0,"rgba(255,255,255,0.10)"),tn.addColorStop(.52,"rgba(0,0,0,0)"),tn.addColorStop(1,"rgba(0,0,0,0.30)"),w.fillStyle=tn,w.fillRect(-C.r,-C.r,C.r*2,C.r*2),w.beginPath(),w.arc(-C.r*.36,-C.r*.4,C.r*.3,0,Math.PI*2),w.fillStyle="rgba(255,255,255,0.14)",w.fill(),w.restore(),w.beginPath(),w.arc(0,0,C.r-Math.max(.5,1*Ae)*.5,Math.PI*1.05,Math.PI*1.95),w.strokeStyle="rgba(255,255,255,0.34)",w.lineWidth=Math.max(.8,1.4*Ae),w.stroke(),w.restore(),(qe||Tt)&&(w.save(),w.beginPath(),w.arc(C.x,C.y,C.r+5,0,Math.PI*2),w.strokeStyle=qe?"#ffffff":Fe(ge,.9),w.lineWidth=qe?2.4:1.6,Sl&&(w.shadowColor=ge,w.shadowBlur=12),w.stroke(),w.restore()),w.restore();let Mt=C.r*d.zoom;if(qe||Tt||Mt>=11){let Mn=Math.max(8,Math.min(22,Mt*.46))*Ae;if(w.save(),w.textAlign="center",w.textBaseline="middle",w.font="800 "+Mn.toFixed(1)+"px -apple-system,Segoe UI,sans-serif",w.fillStyle="rgba(255,255,255,0.97)",w.fillText(kf(C.count,{unit:A.current("graphCountWan"),locale:A.current("graphCountLocale")}),C.x,C.y-(Mt>=24?Mn*.28:0)),Mt>=24){let Ia=A.current("graphCardsUnit");w.font="600 "+(Mn*.46).toFixed(1)+"px -apple-system,Segoe UI,sans-serif",w.fillStyle="rgba(255,255,255,0.72)",w.fillText(Ia,C.x,C.y+Mn*.82)}w.restore()}},hd=[],Xr=[];d.nodes.forEach(C=>{if(!ul(C.x,C.y,C.r+2,st))return;let ge=d.domainById[C.id]||{},Pe=ge.kind||"other",Ae=d.timeMode?Ev(ge.updated):Vn.colors[Pe]||Vn.colors.other,qe=Vn.shapes[Pe]||"circle",Tt=d.selectedId===C.id,ct=d.hoverId===C.id,kt=d.searchTerm||"",Pt=!kt||(C.name||"").toLowerCase().includes(kt)||String(Lt[Pe]||"").toLowerCase().includes(kt)||String(Pe).toLowerCase().includes(kt),tn=q==="all"||Pe===q,Mt=!E||(ge.tags||[]).includes(E),Mn=Ye&&C.id!==Ye&&!(Pa&&Pa.has(C.id))||kt&&!Pt||!tn||!Mt;if(C.planet){Xr.push({n:C,color:Ae,isSel:Tt,isHov:ct,dimmed:Mn,ok:tn&&Mt});return}w.save(),w.globalAlpha=Mn?.08:1,(Tt||ct)&&Sl&&(w.shadowColor=Ae,w.shadowBlur=Tt?20:14),w.translate(C.x,C.y),ze(0,0,C.r,qe),w.fillStyle=Te(Ae,C.r),w.fill(),Pe==="core"&&(w.fillStyle="#1b120e",w.font="700 "+Math.max(10,Math.round(C.r*.95))+"px sans-serif",w.textAlign="center",w.textBaseline="middle",w.fillText("\u2605",0,0)),w.restore(),Tt?(w.save(),ze(C.x,C.y,C.r+3,qe),w.strokeStyle=Ae,w.lineWidth=3,w.shadowColor=Ae,w.shadowBlur=12,w.stroke(),w.restore()):ct?(w.save(),ze(C.x,C.y,C.r+2,qe),w.strokeStyle=Ae,w.lineWidth=2,w.stroke(),w.restore()):kt&&Pt?(w.save(),ze(C.x,C.y,C.r+2,qe),w.strokeStyle="#e11d48",w.lineWidth=2,w.stroke(),w.restore()):d.multi.indexOf(C.id)>=0&&(w.save(),ze(C.x,C.y,C.r+2,qe),w.strokeStyle="#60a5fa",w.lineWidth=2,w.shadowColor="#60a5fa",w.shadowBlur=8,w.stroke(),w.restore()),(Tt||ct||!he&&(pt.has(C.id)&&d.zoom>Qe||!Me&&d.zoom>.6))&&tn&&Mt&&_o(C,{force:Tt||ct})}),Xr.forEach(C=>ng(C.n,C.color,C));let yd=Xr.length<=12?1/0:8,jo=new Set;if(Number.isFinite(yd)?(Xr.filter(C=>(C.isSel||C.isHov)&&C.ok).forEach(C=>{jo.add(C.n.id),_o(C.n,{gap:8,force:!0,maxChars:20})}),Xr.filter(C=>C.ok&&!jo.has(C.n.id)).sort((C,ge)=>(ge.n.count||0)-(C.n.count||0)).slice(0,yd).forEach(C=>{jo.has(C.n.id)||(jo.add(C.n.id),_o(C.n,{gap:8,maxChars:20}))})):Xr.forEach(C=>{C.ok&&_o(C.n,{gap:8,force:C.isSel||C.isHov,maxChars:20})}),w.restore(),d.marquee){let C=d.marquee,ge=Math.min(C.sx,C.ex),Pe=Math.min(C.sy,C.ey),Ae=Math.abs(C.ex-C.sx),qe=Math.abs(C.ey-C.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(ge,Pe,Ae,qe),w.strokeRect(ge,Pe,Ae,qe),w.restore()}if(d.hoverId&&De.current){let C=d.domainById[d.hoverId],ge=d.nodes.find(function(Pe){return Pe.id===d.hoverId});if(C&&ge){let Pe=d.edges.filter(function(ct){return ct.sourceNodeId===C.id||ct.targetNodeId===C.id}).length,Ae=ge.x*d.zoom+d.panX,qe=ge.y*d.zoom+d.panY;De.current.style.display="block",De.current.style.left=Ae+14+"px",De.current.style.top=qe-6+"px";let Tt=ge.planet?A.current("graphPlanetCards").replace("{n}",String(ge.count))+" \xB7 "+A.current("graphEnter"):A.current("connCount").replace("{n}",Pe);De.current.innerHTML="<b>"+Y(C.title||C.name||"")+'</b><br/><span style="opacity:.8">'+Y(C.kind||"")+" \xB7 "+Y(Tt)+"</span>"}}else De.current&&(De.current.style.display="none")},Bt=0,La=0,bt=0,or=()=>{d.motionUntil=performance.now()+140,bt&&me.clearTimeout(bt),bt=me.setTimeout(()=>{bt=0,Nt()},160)},Nt=()=>{La||(La=me.raf(()=>{La=0;let E=performance.now();try{An()}catch(q){zr(q,"render")}d.lastRenderMs=performance.now()-E}))};d.requestRender=Nt;let Qr=()=>{Bt>0||(d.alpha=Math.max(d.alpha||0,.35),d.running=!0,d.raf||(d.raf=me.raf(re)))};d.wake=Qr,d.render=An;let z=()=>{if(!Ve)return;let E=d.nodes.filter(Y=>Y.planet);if(!E.length)return;let q=12;for(let Y=0;Y<E.length;Y++)for(let G=Y+1;G<E.length;G++){let Z=E[Y],he=E[G],Me=he.x-Z.x,Qe=he.y-Z.y,Ye=Math.sqrt(Me*Me+Qe*Qe)||1,st=Z.r+he.r+q;if(Ye>=st)continue;let fn=(st-Ye)*.5,pt=Me/Ye,ir=Qe/Ye;Z.x-=pt*fn,Z.y-=ir*fn,he.x+=pt*fn,he.y+=ir*fn,Z.vx*=.4,Z.vy*=.4,he.vx*=.4,he.vy*=.4}for(let Y of E)for(let G of d.nodes){if(G.planet)continue;let Z=G.x-Y.x,he=G.y-Y.y,Me=Math.sqrt(Z*Z+he*he)||1,Qe=Y.r+G.r+8;if(Me>=Qe)continue;let Ye=Qe-Me;G.x+=Z/Me*Ye,G.y+=he/Me*Ye,G.vx*=.5,G.vy*=.5}},X=()=>{let E=performance.now(),q=bf(d,{params:d.forceParams,alphaFloor:d.drift?1:0,damping:d.drift?.8:void 0});z(),d.lastTickMs=performance.now()-E,d.lastRms=q.rms,d.autoFitPending&&d.tickCount>45&&(d.autoFitPending=!1,Cn())},re=()=>{if(d.running){if(d.quietTicks>Zc&&(d.quietTicks=0,d.drift||(d.drift=!0,d.alpha=Math.max(d.alpha||0,1),d.motionUntil=0,d.userTouched||Cn())),d.drift&&!d.dragNode&&(d.driftFrame=(d.driftFrame|0)+1,d.driftFrame%2)){d.raf=me.raf(re);return}try{let E=performance.now(),q=d.dragNode||d.drift?1:6,Y=0;do X(),Y+=1;while(!d.dragNode&&!d.drift&&Y<q&&performance.now()-E<18&&d.quietTicks<=Zc);d.drift||(d.motionUntil=performance.now()+60);let G=performance.now();An(),d.lastRenderMs=performance.now()-G}catch(E){zr(E,"step")}d.raf=me.raf(re)}},Se=()=>({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});d.stats=Se,globalThis.__meGraphStats=Se;let Ce=()=>{let E=N.getBoundingClientRect(),q=E.width?N.clientWidth/E.width:1,Y=E.height?N.clientHeight/E.height:1;return{level:d.levelId||"",planetLayer:!!d.planetLayer,nodes:d.nodes.length,planets:d.nodes.filter(G=>G.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,resources:me.snapshot(),screen:d.nodes.map(G=>({id:G.id,label:G.name,planet:!!G.planet,count:G.count||0,x:E.left+(G.x*d.zoom+d.panX)/q,y:E.top+(G.y*d.zoom+d.panY)/Y,r:Math.max(4,G.r*d.zoom/q)}))}};d.runtime=Ce,globalThis.__meGraphRuntime=Ce;let ve=(E,q)=>{let Y=N.getBoundingClientRect(),G=Y.width?N.clientWidth/Y.width:1,Z=Y.height?N.clientHeight/Y.height:1;return{x:(E-Y.left)*G,y:(q-Y.top)*Z}},ut=(E,q)=>{let Y=ve(E,q);return{x:(Y.x-d.panX)/d.zoom,y:(Y.y-d.panY)/d.zoom}},mn=E=>{let q=d.domainById[E];return!(!q||j.current!=="all"&&q.kind!==j.current||J.current&&!(q.tags||[]).includes(J.current))},Nn=(E,q,Y)=>Math.max(q,Math.min(Y,E)),_n=E=>{d.mouseX=E.clientX,d.mouseY=E.clientY;let q=ut(E.clientX,E.clientY),Y=null;for(let G=d.nodes.length-1;G>=0;G--){let Z=d.nodes[G];if(!mn(Z.id))continue;let he=Z.x-q.x,Me=Z.y-q.y;if(he*he+Me*Me<Z.r*Z.r+36){Y=Z.id;break}}Y!==d.hoverId&&(d.hoverId=Y,d.motionUntil=performance.now()+140,Nt())},Tn=E=>{if(E.button!==0)return;let q=ut(E.clientX,E.clientY),Y=null;for(let G=d.nodes.length-1;G>=0;G--){let Z=d.nodes[G];if(!mn(Z.id))continue;let he=Z.x-q.x,Me=Z.y-q.y;if(he*he+Me*Me<Z.r*Z.r+25){Y=Z;break}}if(E.shiftKey){if(Y){d.shiftClick=Y.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=Y||null,Y&&(d.dragOffset={dx:Y.x-q.x,dy:Y.y-q.y})},bl=E=>{if(d.marquee){d.marquee.ex=E.clientX,d.marquee.ey=E.clientY,or(),Nt();return}if(!d.dragStart)return;let q=E.clientX-d.dragStart.x,Y=E.clientY-d.dragStart.y;if(Math.abs(q)+Math.abs(Y)>3&&!d.dragging&&(d.dragging=!0,d.dragNode&&(d.alpha=Math.max(d.alpha||0,.35))),d.dragNode){let G=ut(E.clientX,E.clientY);d.dragNode.x=G.x+d.dragOffset.dx,d.dragNode.y=G.y+d.dragOffset.dy,or(),Qr()}else d.dragging&&(d.panX=Nn(d.dragStart.px+q,-1e5,1e5),d.panY=Nn(d.dragStart.py+Y,-1e5,1e5),or(),Nt())},wl=E=>{if(d.marquee){let G=d.marquee;d.marquee=null;let Z=ve(G.sx,G.sy),he=ve(G.ex,G.ey),Me=Math.min(Z.x,he.x),Qe=Math.max(Z.x,he.x),Ye=Math.min(Z.y,he.y),st=Math.max(Z.y,he.y),fn=d.nodes.filter(pt=>!pt.planet&&mn(pt.id)).filter(pt=>{let ir=pt.x*d.zoom+d.panX,Ao=pt.y*d.zoom+d.panY;return ir>=Me&&ir<=Qe&&Ao>=Ye&&Ao<=st}).map(pt=>pt.id);d.multi=fn,ke(fn),or(),Nt();return}let q=d.dragStart&&!d.dragging,Y=!!d.dragNode&&!!d.dragging;if(d.shiftClick){let G=d.shiftClick;d.shiftClick=null;let Z=d.nodeById.get(G);if(Z&&Z.planet){d.selectedId=G,_e(G),Nt();return}let he=Array.isArray(d.multi)?d.multi.slice():[];he.includes(G)||he.push(G),d.multi=he,ke(he),Nt();return}if(q){let G=ut(E.clientX,E.clientY),Z=null;for(let he=d.nodes.length-1;he>=0;he--){let Me=d.nodes[he];if(!mn(Me.id))continue;let Qe=Me.x-G.x,Ye=Me.y-G.y;if(Qe*Qe+Ye*Ye<Me.r*Me.r+20){Z=Me;break}}if(Z&&Z.planet){d.selectedId=null,_e(null),Nt(),d.dragStart=null,d.dragging=!1,d.dragNode=null,ye.current&&ye.current(Z.id);return}Z?d.selectedId===Z.id?(d.selectedId=null,_e(null),Nt()):(d.selectedId=Z.id,_e(Z.id),Nt()):(d.selectedId=null,d.hoverId=null,E.shiftKey||(d.multi=[],ke([])),_e(null),Nt())}d.dragStart=null,d.dragging=!1,d.dragNode=null,Y&&Qr()},Xf=E=>{E.preventDefault();let q=ut(E.clientX,E.clientY),Y=null;for(let G=d.nodes.length-1;G>=0;G--){let Z=d.nodes[G];if(!mn(Z.id))continue;let he=Z.x-q.x,Me=Z.y-q.y;if(he*he+Me*Me<Z.r*Z.r+25){Y=Z;break}}if(Y){let G=d.domainById[Y.id];G&&x({x:E.clientX,y:E.clientY,id:Y.id,path:G.id,title:G.title,planet:!!Y.planet,count:Y.count||0})}else x(null)},Jf=E=>{E.preventDefault();let q=ve(E.clientX,E.clientY),Y=(q.x-d.panX)/d.zoom,G=(q.y-d.panY)/d.zoom,Z=Math.max(.3,Math.min(3,d.zoom*(E.deltaY<0?Sn:1/Sn)));d.panX=Nn(d.panX+Y*(d.zoom-Z),-1e5,1e5),d.panY=Nn(d.panY+G*(d.zoom-Z),-1e5,1e5),d.zoom=Z,d.userTouched=!0,or(),Nt()};me.listen(N,"mousemove",_n),me.listen(N,"mousedown",Tn),me.listen(window,"mousemove",bl),me.listen(window,"mouseup",wl),me.listen(N,"wheel",Jf,{passive:!1}),me.listen(N,"contextmenu",Xf),f.current=()=>{d.selectedId=null,d.hoverId=null,d.multi=[],ke([]),d.userTouched=!1,Cn(),or(),Nt()},Bt=vf(d.nodes.length);let Da=Bt,Zf=()=>Da>0?Math.round((Da-Bt)/Da*100):100;Bt>0&&Le(0);let xl=Da>0?[.75,.5,.25].map(E=>Math.round(Da*E)):[],kl=()=>{if(!d.running)return;let E=performance.now();for(;Bt>0&&performance.now()-E<12;)X(),Bt--;if(Le(Bt>0?Math.min(99,Zf()):100),xl.length&&Bt<=xl[0]){xl.shift(),d.userTouched||Cn();try{An()}catch(q){zr(q,"warm-frame")}}if(Bt>0){d.userTouched||Cn(),d.warmRaf=me.raf(kl);return}d.warmRaf=0,d.userTouched||Cn();try{An()}catch(q){zr(q,"warm-final")}Le(null),Qr()};d.warmStep=kl,Cn();try{An()}catch(E){zr(E,"first-frame")}Bt>0?d.warmRaf=me.raf(kl):(Le(0),Qr());let eg=()=>ie(!1);return me.listen(window,"mousedown",eg),()=>{if(d.running=!1,me.releaseAll(),globalThis.__meGraphStats===Se)try{delete globalThis.__meGraphStats}catch{globalThis.__meGraphStats=void 0}if(globalThis.__meGraphRuntime===Ce)try{delete globalThis.__meGraphRuntime}catch{globalThis.__meGraphRuntime=void 0}try{ae.disconnect()}catch{}}},[y,P,I]),(0,m.useEffect)(()=>{_e(null),ke([]),x(null);let N=F.current;N&&(N.selectedId=null,N.multi=[])},[I]),(0,m.useEffect)(()=>{k!==void 0&&v.current&&requestAnimationFrame(()=>{try{v.current()}catch(N){zr(N,"fit")}})},[k]),(0,r.jsxs)("div",{className:"me-graph",ref:D,children:[(0,r.jsxs)("div",{className:"me-graph-toolbar",children:[(0,r.jsxs)("span",{className:"me-graph-count",children:[R.length," ",u("graphItems")," \xB7 ",e&&e.total," ",u("graphCardsUnit")," \xB7 ",P.length," ",u("edges")]}),(0,r.jsx)("span",{className:"spacer",style:{flex:1}}),(0,r.jsx)("input",{type:"text",placeholder:u("search"),value:se,onChange:N=>Ge(N.target.value)}),(0,r.jsxs)("span",{style:{position:"relative",display:"inline-flex"},children:[(0,r.jsxs)("button",{type:"button",className:"mc-btn",onClick:()=>ie(N=>!N),"aria-expanded":Ie,title:u("filterLabel"),style:{borderRadius:8},children:["\u{1F50D} ",u("filterLabel")," ",te!=="all"||de||H?"\u25CF":"\u25BE"]}),Ie&&(0,r.jsx)("div",{className:"me-graph-legend-pop",onMouseDown:N=>N.stopPropagation(),style:{position:"absolute",top:"calc(100% + 6px)",left:0,zIndex:50,background:"rgba(28,28,32,0.92)",backdropFilter:"blur(10px)",WebkitBackdropFilter:"blur(10px)",color:"#eee",border:"1px solid rgba(255,255,255,0.1)",borderRadius:10,padding:8,minWidth:240,boxShadow:"0 12px 34px rgba(0,0,0,.35)"},children:(0,r.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:4},children:[(0,r.jsx)("button",{type:"button",className:`lg${te==="all"&&!de?" active":""}`,style:{justifyContent:"flex-start"},onClick:()=>{$e("all"),Be(!1)},children:u("all")}),Object.keys(Gt).map(N=>(0,r.jsxs)("button",{type:"button",className:`lg${te===N?" active":""}`,style:{justifyContent:"flex-start"},onClick:()=>$e(w=>w===N?"all":N),children:[(0,r.jsx)("span",{className:"mc-kind",style:{background:Vn.colors[N]||Gt[N]}}),u(Lt[N])]},N)),(0,r.jsx)("div",{style:{height:1,background:"rgba(255,255,255,0.1)",margin:"4px 0"}}),(0,r.jsxs)("button",{type:"button",className:`lg${de?" active":""}`,style:{justifyContent:"flex-start"},onClick:()=>Be(N=>!N),children:["\u23F1 ",u("timeDim")]}),Q.length>0&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{style:{height:1,background:"rgba(255,255,255,0.1)",margin:"4px 0"}}),(0,r.jsx)("div",{style:{maxHeight:130,overflow:"auto",display:"flex",flexWrap:"wrap",gap:4},children:Q.map(N=>(0,r.jsxs)("button",{type:"button",className:`lg${H===N.tag?" active":""}`,style:{color:"#ddd",padding:"2px 7px",fontSize:11},onClick:()=>M(w=>w===N.tag?"":N.tag),title:N.tag,children:["#",N.tag," ",(0,r.jsx)("span",{style:{opacity:.55},children:N.n})]},N.tag))})]}),(te!=="all"||de||H)&&(0,r.jsxs)("button",{type:"button",className:"lg lg-clear",style:{justifyContent:"flex-start",color:"#f87171"},onClick:()=>{$e("all"),Be(!1),M("")},children:[u("clearFilter")," \u2715"]})]})})]}),(0,r.jsxs)("label",{className:"mc-btn",style:{display:"inline-flex",alignItems:"center",gap:5,cursor:"pointer"},title:u("crossVault"),children:[(0,r.jsx)("input",{type:"checkbox",checked:!!h,onChange:N=>g&&g(N.target.checked)}),u("crossVault")]}),(0,r.jsx)("button",{type:"button",className:`mc-btn${de?" me-on":""}`,onClick:()=>Be(N=>!N),children:u("timeDim")}),(0,r.jsx)("button",{type:"button",className:"mc-btn",onClick:()=>{let N=L.current;if(N)try{N.toBlob(w=>{w&&ue({url:URL.createObjectURL(w),blob:w})},"image/png")}catch{}},children:u("exportGraph")}),(0,r.jsx)("button",{type:"button",className:"mc-btn",onClick:()=>v.current&&v.current(),children:u("fit")}),(0,r.jsx)("button",{type:"button",className:"mc-btn",onClick:()=>{_e(null),$e("all"),f.current&&f.current()},children:u("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)(Tv,{crumbs:t,t:u,onPick:l,busy:p}),(0,r.jsxs)("div",{className:"me-graph-levelchip",children:[(0,r.jsxs)("span",{children:[(0,r.jsx)("b",{children:R.length})," ",u("graphItems")]}),(0,r.jsxs)("span",{children:[(0,r.jsx)("b",{children:e&&e.total})," ",u("graphCardsUnit")]}),(0,r.jsxs)("span",{children:[(0,r.jsx)("b",{children:P.length})," ",u("edges")]})]}),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?u("graphLevelTimeout").replace("{ms}",String(1600)):u("graphLevelError"))+"\uFF1A"+c.message}),(0,r.jsx)("button",{type:"button",onClick:()=>s&&s(),children:u("graphRetry")})]}),!c&&p&&(0,r.jsxs)("div",{className:"me-graph-levelbusy",role:"status","aria-live":"polite",children:[(0,r.jsx)(hl,{small:!0}),u("graphLevelLoading")]}),T!==null&&(0,r.jsxs)("div",{role:"status","aria-live":"polite",style:{position:"absolute",left:"50%",top:10,transform:"translateX(-50%)",zIndex:3,display:"flex",alignItems:"center",gap:9,padding:"6px 12px",borderRadius:999,background:"rgba(28,28,32,0.86)",backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)",color:"#eee",fontSize:11.5,fontWeight:600,letterSpacing:".02em",pointerEvents:"none",boxShadow:"0 6px 18px rgba(0,0,0,.22)"},children:[(0,r.jsx)(hl,{value:T,small:!0}),(0,r.jsxs)("span",{children:[u("graphWarming").replace("{n}",R.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:"\u8FDE\u63A5\u7C07"}),Object.keys(Vn.colors).filter(N=>$[N]).map(N=>(0,r.jsxs)("div",{className:"mc-v5-graph-legend-row",children:[(0,r.jsx)("i",{style:{background:Vn.colors[N]}}),(0,r.jsx)("span",{children:u(Lt[N]||"kindKnowledge")}),(0,r.jsx)("b",{children:$[N]})]},N))]}),(0,r.jsx)("div",{className:"me-graph-tooltip",ref:De,style:{display:"none",position:"absolute",zIndex:4,pointerEvents:"none",background:"rgba(28,28,32,0.88)",backdropFilter:"blur(10px)",WebkitBackdropFilter:"blur(10px)",color:"#eee",borderRadius:8,padding:"7px 10px",fontSize:12,maxWidth:220,boxShadow:"0 8px 24px rgba(0,0,0,.2)"}}),we&&(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:u("noMatch")}),pe&&(0,r.jsx)("div",{className:"me-graph-ctx-back",style:{position:"fixed",inset:0,zIndex:30},onMouseDown:()=>x(null)}),pe&&(0,r.jsxs)("div",{className:"me-graph-ctxmenu",style:{position:"fixed",left:pe.x,top:pe.y,zIndex:31},onMouseDown:N=>N.stopPropagation(),children:[pe.planet&&(0,r.jsxs)("button",{type:"button",onClick:()=>{let N=pe.id;x(null),ye.current&&ye.current(N)},children:[u("graphEnter")," \u203A"]}),pe.planet&&(0,r.jsx)("div",{style:{padding:"4px 10px 6px",fontSize:11,opacity:.7},children:u("graphPlanetCards").replace("{n}",String(pe.count||0))}),!pe.planet&&(0,r.jsx)("button",{type:"button",onClick:()=>{B.current({path:pe.path,title:pe.title}),x(null)},children:u("openCard")}),!pe.planet&&(0,r.jsx)("button",{type:"button",onClick:()=>{pe.id&&(F.current.selectedId=pe.id,_e(pe.id)),x(null);let N=F.current;N&&N.requestRender&&N.requestRender()},children:u("focusNeighbors")}),(0,r.jsx)("button",{type:"button",onClick:()=>{try{navigator.clipboard&&navigator.clipboard.writeText(pe.title||"")}catch{}x(null),Ze(u("copied"))},children:u("copyName")}),!pe.planet&&(0,r.jsx)("button",{type:"button",onClick:()=>{let N=F.current,w=N&&Array.isArray(N.multi)?N.multi.slice():[],ce=pe.id;if(ce&&!w.includes(ce)&&w.push(ce),x(null),w.length<2){Ze(u("mergeNeed"),!1);return}if(!window.confirm(u("mergeConfirm")))return;let We=le.current&&le.current(w);We&&We.then?We.then(S=>S?Ze(u("merged")):Ze(u("mergeFail"),!1)).catch(()=>Ze(u("mergeFail"),!1)):We&&Ze(u("merged"))},children:u("merge")}),!pe.planet&&(0,r.jsx)("button",{type:"button",style:{color:"#f87171"},onClick:()=>{let N=pe.path;x(null),window.confirm(u("deleteConfirm"))&&(async()=>{try{(W.current?await W.current(N):!1)?Ze(u("deleted")):Ze(u("deleteFail"),!1)}catch{Ze(u("deleteFail"),!1)}})()},children:u("delete")})]}),xe.length>0&&(0,r.jsxs)("div",{style:{position:"absolute",left:10,top:10,zIndex:3,display:"flex",gap:8,alignItems:"center",background:"rgba(28,28,32,0.92)",backdropFilter:"blur(10px)",WebkitBackdropFilter:"blur(10px)",color:"#eee",borderRadius:10,padding:"6px 10px",fontSize:12,boxShadow:"0 10px 30px rgba(0,0,0,.25)"},children:[(0,r.jsxs)("span",{style:{fontWeight:700},children:[xe.length," ",u("nodes")]}),(0,r.jsx)("button",{type:"button",className:"mc-btn",onClick:()=>{let w=xe.map(O=>rt[O]).filter(Boolean).map(O=>O.title||O.name).join(`
|
|
1038
|
+
`),ce=new Blob([w],{type:"text/plain;charset=utf-8"}),We=URL.createObjectURL(ce),S=document.createElement("a");S.href=We,S.download="memory-selected.txt",document.body.appendChild(S),S.click(),document.body.removeChild(S),setTimeout(()=>URL.revokeObjectURL(We),1e3),Ze(xe.length+u("exportedSel"))},children:u("exportSel")}),(0,r.jsx)("button",{type:"button",className:"mc-btn",onClick:()=>{if(xe.length<2){Ze(u("mergeNeed"),!1);return}let N=xe.map(ce=>rt[ce]?rt[ce].id:ce);if(!window.confirm(u("mergeConfirm")))return;ke([]);let w=F.current;w&&(w.multi=[]),fetch(`${ee}/merge?paths=${encodeURIComponent(N.join(","))}`).then(ce=>ce.json()).then(ce=>{ce&&ce.ok?Ze(u("merged")):Ze(u("mergeFail"),!1)}).catch(()=>Ze(u("mergeFail"),!1))},children:u("merge")}),(0,r.jsx)("button",{type:"button",className:"mc-btn",style:{color:"#f87171"},onClick:()=>{if(!window.confirm(u("deleteConfirm")))return;let N=xe.map(ce=>rt[ce]?rt[ce].id:ce);ke([]);let w=F.current;w&&(w.multi=[]),(async()=>{let ce=0;for(let We of N)try{(W.current?await W.current(We):!1)&&ce++}catch{}Ze(ce+u("deletedSelected"),ce>0)})()},children:u("deleteSelected")}),(0,r.jsx)("button",{type:"button",className:"mc-btn",onClick:()=>{let N=F.current;N&&(N.multi=[]),ke([]);let w=F.current;w&&w.render&&w.render()},children:u("clearSelection")})]}),V&&rt[V]&&(0,r.jsxs)("div",{className:"me-graph-sidebar",style:{position:"absolute",right:10,top:10,zIndex:3,maxWidth:240,background:"rgba(28,28,32,0.92)",backdropFilter:"blur(10px)",WebkitBackdropFilter:"blur(10px)",color:"#eee",borderRadius:10,padding:12,fontSize:12,boxShadow:"0 10px 30px rgba(0,0,0,.25)"},children:[(0,r.jsx)("div",{style:{fontWeight:700,fontSize:13,marginBottom:4},children:rt[V]?rt[V].title||rt[V].name:V}),(0,r.jsxs)("div",{style:{opacity:.8,marginBottom:8},children:[rt[V]?u(Lt[rt[V].kind]||"kindKnowledge"):"\u2014",rt[V]&&rt[V].type==="planet"?" \xB7 "+u("graphPlanetCards").replace("{n}",String(rt[V].count||0)):""]}),rt[V]&&rt[V].type==="planet"&&(0,r.jsxs)("button",{type:"button",className:"mc-btn",style:{width:"100%",marginBottom:8},onClick:()=>{let N=V;_e(null),ye.current&&ye.current(N)},children:[u("graphEnter")," \u203A"]}),(0,r.jsx)("div",{style:{fontSize:11,opacity:.65,letterSpacing:".04em",marginBottom:6},children:u("graphLevelHint")}),(P.filter(N=>N.source===V||N.target===V)||[]).slice(0,8).map((N,w)=>{let ce=N.source===V?N.target:N.source,We=rt[ce];return(0,r.jsx)("div",{style:{padding:"4px 6px",cursor:"pointer",borderRadius:6},onMouseDown:S=>{S.preventDefault();let O=F.current;O&&(O.selectedId=ce,O.hoverId=ce,O.requestRender&&O.requestRender()),_e(ce)},children:We?(We.title||We.name).slice(0,28):ce},w)})]})]}),(0,r.jsx)("div",{className:"me-graph-tip",children:u("graphTip")}),ht&&(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 "+(ht.ok?"#22c55e":"#ef4444"),maxWidth:"90vw"},children:[(0,r.jsx)("span",{style:{color:ht.ok?"#34d399":"#f87171",fontWeight:800,fontSize:15},children:ht.ok?"\u2713":"\u2715"}),(0,r.jsx)("span",{style:{wordBreak:"break-all"},children:ht.msg})]}),U&&(0,r.jsxs)("div",{className:"me-overlay",onClick:()=>{U.url&&URL.revokeObjectURL(U.url),ue(null),be(!1)},children:[(0,r.jsx)("style",{children:kn}),(0,r.jsxs)("div",{className:"me-dialog",style:{maxWidth:Ne?"100vw":900,width:Ne?"100vw":"92vw",maxHeight:Ne?"100%":"90vh",height:Ne?"100%":void 0,borderRadius:Ne?0:14},onClick:N=>N.stopPropagation(),children:[(0,r.jsxs)("div",{className:"me-dialog-head",children:[(0,r.jsx)("h3",{children:u("exportGraph")}),(0,r.jsxs)("div",{className:"me-head-actions",children:[(0,r.jsx)("a",{className:"mc-btn",href:U.url,download:"memory-graph.png",onClick:()=>{cn("download"),Ze(u("downloaded")+" \xB7 "+u("defaultDownloads"))},style:{textDecoration:"none",display:"inline-flex",alignItems:"center"},children:u(Ue==="download"?"done":"download")}),(0,r.jsx)("button",{type:"button",className:"mc-btn",onClick:()=>{cn("full"),be(N=>!N),Ze(u("fullscreen"))},children:u(Ue==="full"?"done":Ne?"exitFull":"fullscreen")}),(0,r.jsx)("button",{type:"button",className:"mc-btn",onClick:()=>{let N=U.blob;N&&window.ClipboardItem&&navigator.clipboard?navigator.clipboard.write([new window.ClipboardItem({"image/png":N})]).then(()=>{cn("copy"),Ze(u("copied"))}).catch(()=>{Ze(u("copyFail"),!1)}):Ze(u("copyFail"),!1)},children:u(Ue==="copy"?"done":"copyImage")}),(0,r.jsx)("button",{type:"button",className:"mc-btn",onClick:()=>{U.url&&URL.revokeObjectURL(U.url),ue(null),be(!1)},children:u("close")})]})]}),(0,r.jsx)("div",{className:"me-dialog-body",style:{display:"flex",justifyContent:"center",background:Ne?"var(--dsw-alias-bg-base, #0b0d10)":"var(--dsw-alias-bg-base, #f3f4f6)"},children:(0,r.jsx)("img",{src:U.url,alt:u("exportGraph"),style:{maxWidth:"100%",maxHeight:Ne?"calc(100% - 64px)":"70vh",borderRadius:Ne?0:8,cursor:"zoom-in"},onClick:()=>be(N=>!N)})})]})]})]})}function Ev(e){let t=new Date(e||0).getTime();if(!t)return"#94a3b8";let n=(Date.now()-t)/864e5;return n<3?"#10b981":n<14?"#f59e0b":n<30?"#f97316":"#94a3b8"}function Of({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 D=F=>{c.current&&!c.current.contains(F.target)&&s(!1)};return document.addEventListener("mousedown",D),()=>document.removeEventListener("mousedown",D)},[l]);let p=Array.isArray(t)?t:[],u=p.includes("__all__"),h=u?n.find(D=>D.value==="__all__")?.label||"":p.length?p.map(D=>n.find(F=>F.value===D)?.label||D).join("\u3001"):"",g=(D,F)=>{if(D.value==="__all__"){a(F?["__all__"]:[]);return}let v=new Set(p);v.has("__all__")&&v.delete("__all__"),F?v.add(D.value):v.delete(D.value),a([...v])},k=n.find(D=>D.value==="__all__"),L=n.filter(D=>D.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(D=>!D),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:D=>D.stopPropagation(),className:"mc-dd-opt",style:{borderBottom:"1px solid rgba(127,127,127,0.12)"},children:[(0,r.jsx)("input",{type:"checkbox",checked:u,onChange:D=>g(k,D.target.checked)}),(0,r.jsx)("span",{children:k.label})]}),L.map(D=>(0,r.jsxs)("label",{onClick:F=>F.stopPropagation(),className:"mc-dd-opt",children:[(0,r.jsx)("input",{type:"checkbox",checked:p.includes(D.value),onChange:F=>g(D,F.target.checked)}),(0,r.jsx)("span",{children:D.label})]},D.value))]})]})]})}function zv(e){let t=new Date(e||0).getTime();return!!t&&(Date.now()-t)/864e5<3}async function Rv(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 rd(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 ar(e){let t=Lo(e);if(!t)return"";let n=t.toDateString()===new Date().toDateString(),a=uf(t);return n?a:`${t.getMonth()+1}-${t.getDate()} ${a}`}var gd=lr(Do(),1);function Lv(){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 Dv(){let[e,t]=(0,Ra.useState)(Lv);(0,Ra.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,Ra.useMemo)(()=>a=>(e==="zh"?dd:Bf)[a]??dd[a]??a,[e]);return document.documentElement.lang=e==="zh"?"zh-CN":"en",(0,gd.jsx)(Uf,{t:n,inModal:!1})}var Pv=(0,qf.createRoot)(document.getElementById("root"));Pv.render((0,gd.jsx)(Dv,{}));var Iv=0,Qf=()=>{let e=document.getElementById("root");if(e&&e.childElementCount>0){let t=document.getElementById("boot");t&&t.remove();return}++Iv<900&&requestAnimationFrame(Qf)};requestAnimationFrame(Qf);})();
|
|
969
1039
|
/*! Bundled license information:
|
|
970
1040
|
|
|
971
1041
|
react/cjs/react.production.min.js:
|