hippo-memory 1.52.6 → 1.52.8

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.
Files changed (55) hide show
  1. package/README.md +57 -34
  2. package/dist/api.d.ts +1 -0
  3. package/dist/api.js +36 -11
  4. package/dist/autolearn.d.ts +1 -4
  5. package/dist/autolearn.js +6 -7
  6. package/dist/capture.d.ts +3 -0
  7. package/dist/capture.js +51 -56
  8. package/dist/churn-git.js +2 -2
  9. package/dist/cli.d.ts +1 -4
  10. package/dist/cli.js +240 -150
  11. package/dist/config.js +8 -1
  12. package/dist/consolidate.d.ts +2 -0
  13. package/dist/consolidate.js +13 -6
  14. package/dist/customer-notes.js +3 -2
  15. package/dist/dag.js +5 -0
  16. package/dist/dashboard.js +4 -0
  17. package/dist/decisions.d.ts +1 -1
  18. package/dist/decisions.js +4 -3
  19. package/dist/extensions/openclaw-plugin/index.js +1 -0
  20. package/dist/extract.js +3 -0
  21. package/dist/graph-recall.js +8 -7
  22. package/dist/half-life-migration.d.ts +14 -5
  23. package/dist/half-life-migration.js +89 -21
  24. package/dist/handoff.d.ts +2 -0
  25. package/dist/hooks.d.ts +4 -4
  26. package/dist/hooks.js +10 -4
  27. package/dist/importers.d.ts +2 -1
  28. package/dist/importers.js +19 -7
  29. package/dist/incidents.d.ts +1 -1
  30. package/dist/incidents.js +4 -3
  31. package/dist/index.d.ts +4 -1
  32. package/dist/index.js +6 -1
  33. package/dist/mcp/server.js +3 -3
  34. package/dist/memory.d.ts +6 -13
  35. package/dist/memory.js +0 -10
  36. package/dist/policies.js +3 -2
  37. package/dist/predictions.js +2 -0
  38. package/dist/processes.js +3 -2
  39. package/dist/project-briefs.js +3 -2
  40. package/dist/secret-detect.js +3 -3
  41. package/dist/shared.d.ts +1 -1
  42. package/dist/shared.js +6 -1
  43. package/dist/skills.js +3 -2
  44. package/dist/store.d.ts +5 -5
  45. package/dist/store.js +25 -13
  46. package/dist/version.d.ts +1 -1
  47. package/dist/version.js +1 -1
  48. package/dist-ui/assets/index-BhT8RvO6.js +61 -0
  49. package/dist-ui/index.html +1 -1
  50. package/extensions/openclaw-plugin/index.ts +1 -0
  51. package/extensions/openclaw-plugin/openclaw.plugin.json +1 -1
  52. package/extensions/openclaw-plugin/package.json +1 -1
  53. package/openclaw.plugin.json +1 -1
  54. package/package.json +1 -1
  55. package/dist-ui/assets/index-BgmA7Hwe.js +0 -61
@@ -1,61 +0,0 @@
1
- import{r as Rh,a as d0}from"./react-CEUiQZj-.js";import{C as h0,V as Wt,M as Va,T as Qa,Q as Pd,S as th,a as Pt,R as m0,P as y0,b as p0,c as hs,O as g0,B as Za,F as eh,d as lh,U as v0,W as b0,H as S0,N as x0,e as _0,f as Ko,g as z0,h as T0,i as E0,j as M0,k as j0,l as A0,A as D0,m as C0,n as O0,G as R0,L as Bo,o as qn,p as ah,q as U0,r as nh,s as B0,t as N0,D as H0,u as ih,v as w0}from"./three-BDgTxR1l.js";import{s as L0,l as Y0,m as q0,c as G0,a as X0,x as Z0,y as Q0}from"./d3-BiWEKnn4.js";(function(){const s=document.createElement("link").relList;if(s&&s.supports&&s.supports("modulepreload"))return;for(const h of document.querySelectorAll('link[rel="modulepreload"]'))o(h);new MutationObserver(h=>{for(const m of h)if(m.type==="childList")for(const v of m.addedNodes)v.tagName==="LINK"&&v.rel==="modulepreload"&&o(v)}).observe(document,{childList:!0,subtree:!0});function r(h){const m={};return h.integrity&&(m.integrity=h.integrity),h.referrerPolicy&&(m.referrerPolicy=h.referrerPolicy),h.crossOrigin==="use-credentials"?m.credentials="include":h.crossOrigin==="anonymous"?m.credentials="omit":m.credentials="same-origin",m}function o(h){if(h.ep)return;h.ep=!0;const m=r(h);fetch(h.href,m)}})();var No={exports:{}},Gn={};/**
2
- * @license React
3
- * react-jsx-runtime.production.js
4
- *
5
- * Copyright (c) Meta Platforms, Inc. and affiliates.
6
- *
7
- * This source code is licensed under the MIT license found in the
8
- * LICENSE file in the root directory of this source tree.
9
- */var sh;function V0(){if(sh)return Gn;sh=1;var c=Symbol.for("react.transitional.element"),s=Symbol.for("react.fragment");function r(o,h,m){var v=null;if(m!==void 0&&(v=""+m),h.key!==void 0&&(v=""+h.key),"key"in h){m={};for(var _ in h)_!=="key"&&(m[_]=h[_])}else m=h;return h=m.ref,{$$typeof:c,type:o,key:v,ref:h!==void 0?h:null,props:m}}return Gn.Fragment=s,Gn.jsx=r,Gn.jsxs=r,Gn}var uh;function K0(){return uh||(uh=1,No.exports=V0()),No.exports}var d=K0(),Ho={exports:{}},Xn={},wo={exports:{}},Lo={};/**
10
- * @license React
11
- * scheduler.production.js
12
- *
13
- * Copyright (c) Meta Platforms, Inc. and affiliates.
14
- *
15
- * This source code is licensed under the MIT license found in the
16
- * LICENSE file in the root directory of this source tree.
17
- */var oh;function k0(){return oh||(oh=1,(function(c){function s(A,q){var $=A.length;A.push(q);t:for(;0<$;){var Q=$-1>>>1,J=A[Q];if(0<h(J,q))A[Q]=q,A[$]=J,$=Q;else break t}}function r(A){return A.length===0?null:A[0]}function o(A){if(A.length===0)return null;var q=A[0],$=A.pop();if($!==q){A[0]=$;t:for(var Q=0,J=A.length,qt=J>>>1;Q<qt;){var zt=2*(Q+1)-1,dt=A[zt],Nt=zt+1,$t=A[Nt];if(0>h(dt,$))Nt<J&&0>h($t,dt)?(A[Q]=$t,A[Nt]=$,Q=Nt):(A[Q]=dt,A[zt]=$,Q=zt);else if(Nt<J&&0>h($t,$))A[Q]=$t,A[Nt]=$,Q=Nt;else break t}}return q}function h(A,q){var $=A.sortIndex-q.sortIndex;return $!==0?$:A.id-q.id}if(c.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var m=performance;c.unstable_now=function(){return m.now()}}else{var v=Date,_=v.now();c.unstable_now=function(){return v.now()-_}}var U=[],O=[],R=1,M=null,z=3,E=!1,N=!1,H=!1,L=!1,P=typeof setTimeout=="function"?setTimeout:null,Y=typeof clearTimeout=="function"?clearTimeout:null,G=typeof setImmediate<"u"?setImmediate:null;function V(A){for(var q=r(O);q!==null;){if(q.callback===null)o(O);else if(q.startTime<=A)o(O),q.sortIndex=q.expirationTime,s(U,q);else break;q=r(O)}}function W(A){if(H=!1,V(A),!N)if(r(U)!==null)N=!0,K||(K=!0,I());else{var q=r(O);q!==null&&Bt(W,q.startTime-A)}}var K=!1,w=-1,nt=5,X=-1;function it(){return L?!0:!(c.unstable_now()-X<nt)}function at(){if(L=!1,K){var A=c.unstable_now();X=A;var q=!0;try{t:{N=!1,H&&(H=!1,Y(w),w=-1),E=!0;var $=z;try{e:{for(V(A),M=r(U);M!==null&&!(M.expirationTime>A&&it());){var Q=M.callback;if(typeof Q=="function"){M.callback=null,z=M.priorityLevel;var J=Q(M.expirationTime<=A);if(A=c.unstable_now(),typeof J=="function"){M.callback=J,V(A),q=!0;break e}M===r(U)&&o(U),V(A)}else o(U);M=r(U)}if(M!==null)q=!0;else{var qt=r(O);qt!==null&&Bt(W,qt.startTime-A),q=!1}}break t}finally{M=null,z=$,E=!1}q=void 0}}finally{q?I():K=!1}}}var I;if(typeof G=="function")I=function(){G(at)};else if(typeof MessageChannel<"u"){var rt=new MessageChannel,pt=rt.port2;rt.port1.onmessage=at,I=function(){pt.postMessage(null)}}else I=function(){P(at,0)};function Bt(A,q){w=P(function(){A(c.unstable_now())},q)}c.unstable_IdlePriority=5,c.unstable_ImmediatePriority=1,c.unstable_LowPriority=4,c.unstable_NormalPriority=3,c.unstable_Profiling=null,c.unstable_UserBlockingPriority=2,c.unstable_cancelCallback=function(A){A.callback=null},c.unstable_forceFrameRate=function(A){0>A||125<A?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):nt=0<A?Math.floor(1e3/A):5},c.unstable_getCurrentPriorityLevel=function(){return z},c.unstable_next=function(A){switch(z){case 1:case 2:case 3:var q=3;break;default:q=z}var $=z;z=q;try{return A()}finally{z=$}},c.unstable_requestPaint=function(){L=!0},c.unstable_runWithPriority=function(A,q){switch(A){case 1:case 2:case 3:case 4:case 5:break;default:A=3}var $=z;z=A;try{return q()}finally{z=$}},c.unstable_scheduleCallback=function(A,q,$){var Q=c.unstable_now();switch(typeof $=="object"&&$!==null?($=$.delay,$=typeof $=="number"&&0<$?Q+$:Q):$=Q,A){case 1:var J=-1;break;case 2:J=250;break;case 5:J=1073741823;break;case 4:J=1e4;break;default:J=5e3}return J=$+J,A={id:R++,callback:q,priorityLevel:A,startTime:$,expirationTime:J,sortIndex:-1},$>Q?(A.sortIndex=$,s(O,A),r(U)===null&&A===r(O)&&(H?(Y(w),w=-1):H=!0,Bt(W,$-Q))):(A.sortIndex=J,s(U,A),N||E||(N=!0,K||(K=!0,I()))),A},c.unstable_shouldYield=it,c.unstable_wrapCallback=function(A){var q=z;return function(){var $=z;z=q;try{return A.apply(this,arguments)}finally{z=$}}}})(Lo)),Lo}var ch;function J0(){return ch||(ch=1,wo.exports=k0()),wo.exports}/**
18
- * @license React
19
- * react-dom-client.production.js
20
- *
21
- * Copyright (c) Meta Platforms, Inc. and affiliates.
22
- *
23
- * This source code is licensed under the MIT license found in the
24
- * LICENSE file in the root directory of this source tree.
25
- */var fh;function F0(){if(fh)return Xn;fh=1;var c=J0(),s=Rh(),r=d0();function o(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)e+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function h(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function m(t){var e=t,l=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,(e.flags&4098)!==0&&(l=e.return),t=e.return;while(t)}return e.tag===3?l:null}function v(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function _(t){if(t.tag===31){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function U(t){if(m(t)!==t)throw Error(o(188))}function O(t){var e=t.alternate;if(!e){if(e=m(t),e===null)throw Error(o(188));return e!==t?null:t}for(var l=t,a=e;;){var n=l.return;if(n===null)break;var i=n.alternate;if(i===null){if(a=n.return,a!==null){l=a;continue}break}if(n.child===i.child){for(i=n.child;i;){if(i===l)return U(n),t;if(i===a)return U(n),e;i=i.sibling}throw Error(o(188))}if(l.return!==a.return)l=n,a=i;else{for(var u=!1,f=n.child;f;){if(f===l){u=!0,l=n,a=i;break}if(f===a){u=!0,a=n,l=i;break}f=f.sibling}if(!u){for(f=i.child;f;){if(f===l){u=!0,l=i,a=n;break}if(f===a){u=!0,a=i,l=n;break}f=f.sibling}if(!u)throw Error(o(189))}}if(l.alternate!==a)throw Error(o(190))}if(l.tag!==3)throw Error(o(188));return l.stateNode.current===l?t:e}function R(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=R(t),e!==null)return e;t=t.sibling}return null}var M=Object.assign,z=Symbol.for("react.element"),E=Symbol.for("react.transitional.element"),N=Symbol.for("react.portal"),H=Symbol.for("react.fragment"),L=Symbol.for("react.strict_mode"),P=Symbol.for("react.profiler"),Y=Symbol.for("react.consumer"),G=Symbol.for("react.context"),V=Symbol.for("react.forward_ref"),W=Symbol.for("react.suspense"),K=Symbol.for("react.suspense_list"),w=Symbol.for("react.memo"),nt=Symbol.for("react.lazy"),X=Symbol.for("react.activity"),it=Symbol.for("react.memo_cache_sentinel"),at=Symbol.iterator;function I(t){return t===null||typeof t!="object"?null:(t=at&&t[at]||t["@@iterator"],typeof t=="function"?t:null)}var rt=Symbol.for("react.client.reference");function pt(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===rt?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case H:return"Fragment";case P:return"Profiler";case L:return"StrictMode";case W:return"Suspense";case K:return"SuspenseList";case X:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case N:return"Portal";case G:return t.displayName||"Context";case Y:return(t._context.displayName||"Context")+".Consumer";case V:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case w:return e=t.displayName||null,e!==null?e:pt(t.type)||"Memo";case nt:e=t._payload,t=t._init;try{return pt(t(e))}catch{}}return null}var Bt=Array.isArray,A=s.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,q=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,$={pending:!1,data:null,method:null,action:null},Q=[],J=-1;function qt(t){return{current:t}}function zt(t){0>J||(t.current=Q[J],Q[J]=null,J--)}function dt(t,e){J++,Q[J]=t.current,t.current=e}var Nt=qt(null),$t=qt(null),Ue=qt(null),Wl=qt(null);function Al(t,e){switch(dt(Ue,e),dt($t,t),dt(Nt,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?_d(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=_d(e),t=zd(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}zt(Nt),dt(Nt,t)}function ll(){zt(Nt),zt($t),zt(Ue)}function Tt(t){t.memoizedState!==null&&dt(Wl,t);var e=Nt.current,l=zd(e,t.type);e!==l&&(dt($t,t),dt(Nt,l))}function Dt(t){$t.current===t&&(zt(Nt),zt($t)),Wl.current===t&&(zt(Wl),Hn._currentValue=$)}var oe,$l;function Dl(t){if(oe===void 0)try{throw Error()}catch(l){var e=l.stack.trim().match(/\n( *(at )?)/);oe=e&&e[1]||"",$l=-1<l.stack.indexOf(`
26
- at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
27
- `+oe+t+$l}var ps=!1;function gs(t,e){if(!t||ps)return"";ps=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(e){var C=function(){throw Error()};if(Object.defineProperty(C.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(C,[])}catch(T){var x=T}Reflect.construct(t,[],C)}else{try{C.call()}catch(T){x=T}t.call(C.prototype)}}else{try{throw Error()}catch(T){x=T}(C=t())&&typeof C.catch=="function"&&C.catch(function(){})}}catch(T){if(T&&x&&typeof T.stack=="string")return[T.stack,x.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var n=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");n&&n.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var i=a.DetermineComponentFrameRoot(),u=i[0],f=i[1];if(u&&f){var y=u.split(`
28
- `),S=f.split(`
29
- `);for(n=a=0;a<y.length&&!y[a].includes("DetermineComponentFrameRoot");)a++;for(;n<S.length&&!S[n].includes("DetermineComponentFrameRoot");)n++;if(a===y.length||n===S.length)for(a=y.length-1,n=S.length-1;1<=a&&0<=n&&y[a]!==S[n];)n--;for(;1<=a&&0<=n;a--,n--)if(y[a]!==S[n]){if(a!==1||n!==1)do if(a--,n--,0>n||y[a]!==S[n]){var j=`
30
- `+y[a].replace(" at new "," at ");return t.displayName&&j.includes("<anonymous>")&&(j=j.replace("<anonymous>",t.displayName)),j}while(1<=a&&0<=n);break}}}finally{ps=!1,Error.prepareStackTrace=l}return(l=t?t.displayName||t.name:"")?Dl(l):""}function Zh(t,e){switch(t.tag){case 26:case 27:case 5:return Dl(t.type);case 16:return Dl("Lazy");case 13:return t.child!==e&&e!==null?Dl("Suspense Fallback"):Dl("Suspense");case 19:return Dl("SuspenseList");case 0:case 15:return gs(t.type,!1);case 11:return gs(t.type.render,!1);case 1:return gs(t.type,!0);case 31:return Dl("Activity");default:return""}}function Io(t){try{var e="",l=null;do e+=Zh(t,l),l=t,t=t.return;while(t);return e}catch(a){return`
31
- Error generating stack: `+a.message+`
32
- `+a.stack}}var vs=Object.prototype.hasOwnProperty,bs=c.unstable_scheduleCallback,Ss=c.unstable_cancelCallback,Qh=c.unstable_shouldYield,Vh=c.unstable_requestPaint,ce=c.unstable_now,Kh=c.unstable_getCurrentPriorityLevel,Po=c.unstable_ImmediatePriority,tc=c.unstable_UserBlockingPriority,Qn=c.unstable_NormalPriority,kh=c.unstable_LowPriority,ec=c.unstable_IdlePriority,Jh=c.log,Fh=c.unstable_setDisableYieldValue,ka=null,fe=null;function al(t){if(typeof Jh=="function"&&Fh(t),fe&&typeof fe.setStrictMode=="function")try{fe.setStrictMode(ka,t)}catch{}}var re=Math.clz32?Math.clz32:Ih,Wh=Math.log,$h=Math.LN2;function Ih(t){return t>>>=0,t===0?32:31-(Wh(t)/$h|0)|0}var Vn=256,Kn=262144,kn=4194304;function Cl(t){var e=t&42;if(e!==0)return e;switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function Jn(t,e,l){var a=t.pendingLanes;if(a===0)return 0;var n=0,i=t.suspendedLanes,u=t.pingedLanes;t=t.warmLanes;var f=a&134217727;return f!==0?(a=f&~i,a!==0?n=Cl(a):(u&=f,u!==0?n=Cl(u):l||(l=f&~t,l!==0&&(n=Cl(l))))):(f=a&~i,f!==0?n=Cl(f):u!==0?n=Cl(u):l||(l=a&~t,l!==0&&(n=Cl(l)))),n===0?0:e!==0&&e!==n&&(e&i)===0&&(i=n&-n,l=e&-e,i>=l||i===32&&(l&4194048)!==0)?e:n}function Ja(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function Ph(t,e){switch(t){case 1:case 2:case 4:case 8:case 64:return e+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function lc(){var t=kn;return kn<<=1,(kn&62914560)===0&&(kn=4194304),t}function xs(t){for(var e=[],l=0;31>l;l++)e.push(t);return e}function Fa(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function tm(t,e,l,a,n,i){var u=t.pendingLanes;t.pendingLanes=l,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=l,t.entangledLanes&=l,t.errorRecoveryDisabledLanes&=l,t.shellSuspendCounter=0;var f=t.entanglements,y=t.expirationTimes,S=t.hiddenUpdates;for(l=u&~l;0<l;){var j=31-re(l),C=1<<j;f[j]=0,y[j]=-1;var x=S[j];if(x!==null)for(S[j]=null,j=0;j<x.length;j++){var T=x[j];T!==null&&(T.lane&=-536870913)}l&=~C}a!==0&&ac(t,a,0),i!==0&&n===0&&t.tag!==0&&(t.suspendedLanes|=i&~(u&~e))}function ac(t,e,l){t.pendingLanes|=e,t.suspendedLanes&=~e;var a=31-re(e);t.entangledLanes|=e,t.entanglements[a]=t.entanglements[a]|1073741824|l&261930}function nc(t,e){var l=t.entangledLanes|=e;for(t=t.entanglements;l;){var a=31-re(l),n=1<<a;n&e|t[a]&e&&(t[a]|=e),l&=~n}}function ic(t,e){var l=e&-e;return l=(l&42)!==0?1:_s(l),(l&(t.suspendedLanes|e))!==0?0:l}function _s(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function zs(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function sc(){var t=q.p;return t!==0?t:(t=window.event,t===void 0?32:Kd(t.type))}function uc(t,e){var l=q.p;try{return q.p=t,e()}finally{q.p=l}}var nl=Math.random().toString(36).slice(2),Vt="__reactFiber$"+nl,te="__reactProps$"+nl,Il="__reactContainer$"+nl,Ts="__reactEvents$"+nl,em="__reactListeners$"+nl,lm="__reactHandles$"+nl,oc="__reactResources$"+nl,Wa="__reactMarker$"+nl;function Es(t){delete t[Vt],delete t[te],delete t[Ts],delete t[em],delete t[lm]}function Pl(t){var e=t[Vt];if(e)return e;for(var l=t.parentNode;l;){if(e=l[Il]||l[Vt]){if(l=e.alternate,e.child!==null||l!==null&&l.child!==null)for(t=Cd(t);t!==null;){if(l=t[Vt])return l;t=Cd(t)}return e}t=l,l=t.parentNode}return null}function ta(t){if(t=t[Vt]||t[Il]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function $a(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(o(33))}function ea(t){var e=t[oc];return e||(e=t[oc]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function Zt(t){t[Wa]=!0}var cc=new Set,fc={};function Ol(t,e){la(t,e),la(t+"Capture",e)}function la(t,e){for(fc[t]=e,t=0;t<e.length;t++)cc.add(e[t])}var am=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),rc={},dc={};function nm(t){return vs.call(dc,t)?!0:vs.call(rc,t)?!1:am.test(t)?dc[t]=!0:(rc[t]=!0,!1)}function Fn(t,e,l){if(nm(e))if(l===null)t.removeAttribute(e);else{switch(typeof l){case"undefined":case"function":case"symbol":t.removeAttribute(e);return;case"boolean":var a=e.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){t.removeAttribute(e);return}}t.setAttribute(e,""+l)}}function Wn(t,e,l){if(l===null)t.removeAttribute(e);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(e);return}t.setAttribute(e,""+l)}}function Le(t,e,l,a){if(a===null)t.removeAttribute(l);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(l);return}t.setAttributeNS(e,l,""+a)}}function be(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function hc(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function im(t,e,l){var a=Object.getOwnPropertyDescriptor(t.constructor.prototype,e);if(!t.hasOwnProperty(e)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var n=a.get,i=a.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return n.call(this)},set:function(u){l=""+u,i.call(this,u)}}),Object.defineProperty(t,e,{enumerable:a.enumerable}),{getValue:function(){return l},setValue:function(u){l=""+u},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function Ms(t){if(!t._valueTracker){var e=hc(t)?"checked":"value";t._valueTracker=im(t,e,""+t[e])}}function mc(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var l=e.getValue(),a="";return t&&(a=hc(t)?t.checked?"true":"false":t.value),t=a,t!==l?(e.setValue(t),!0):!1}function $n(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var sm=/[\n"\\]/g;function Se(t){return t.replace(sm,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function js(t,e,l,a,n,i,u,f){t.name="",u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"?t.type=u:t.removeAttribute("type"),e!=null?u==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+be(e)):t.value!==""+be(e)&&(t.value=""+be(e)):u!=="submit"&&u!=="reset"||t.removeAttribute("value"),e!=null?As(t,u,be(e)):l!=null?As(t,u,be(l)):a!=null&&t.removeAttribute("value"),n==null&&i!=null&&(t.defaultChecked=!!i),n!=null&&(t.checked=n&&typeof n!="function"&&typeof n!="symbol"),f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"?t.name=""+be(f):t.removeAttribute("name")}function yc(t,e,l,a,n,i,u,f){if(i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(t.type=i),e!=null||l!=null){if(!(i!=="submit"&&i!=="reset"||e!=null)){Ms(t);return}l=l!=null?""+be(l):"",e=e!=null?""+be(e):l,f||e===t.value||(t.value=e),t.defaultValue=e}a=a??n,a=typeof a!="function"&&typeof a!="symbol"&&!!a,t.checked=f?t.checked:!!a,t.defaultChecked=!!a,u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(t.name=u),Ms(t)}function As(t,e,l){e==="number"&&$n(t.ownerDocument)===t||t.defaultValue===""+l||(t.defaultValue=""+l)}function aa(t,e,l,a){if(t=t.options,e){e={};for(var n=0;n<l.length;n++)e["$"+l[n]]=!0;for(l=0;l<t.length;l++)n=e.hasOwnProperty("$"+t[l].value),t[l].selected!==n&&(t[l].selected=n),n&&a&&(t[l].defaultSelected=!0)}else{for(l=""+be(l),e=null,n=0;n<t.length;n++){if(t[n].value===l){t[n].selected=!0,a&&(t[n].defaultSelected=!0);return}e!==null||t[n].disabled||(e=t[n])}e!==null&&(e.selected=!0)}}function pc(t,e,l){if(e!=null&&(e=""+be(e),e!==t.value&&(t.value=e),l==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=l!=null?""+be(l):""}function gc(t,e,l,a){if(e==null){if(a!=null){if(l!=null)throw Error(o(92));if(Bt(a)){if(1<a.length)throw Error(o(93));a=a[0]}l=a}l==null&&(l=""),e=l}l=be(e),t.defaultValue=l,a=t.textContent,a===l&&a!==""&&a!==null&&(t.value=a),Ms(t)}function na(t,e){if(e){var l=t.firstChild;if(l&&l===t.lastChild&&l.nodeType===3){l.nodeValue=e;return}}t.textContent=e}var um=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function vc(t,e,l){var a=e.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?a?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="":a?t.setProperty(e,l):typeof l!="number"||l===0||um.has(e)?e==="float"?t.cssFloat=l:t[e]=(""+l).trim():t[e]=l+"px"}function bc(t,e,l){if(e!=null&&typeof e!="object")throw Error(o(62));if(t=t.style,l!=null){for(var a in l)!l.hasOwnProperty(a)||e!=null&&e.hasOwnProperty(a)||(a.indexOf("--")===0?t.setProperty(a,""):a==="float"?t.cssFloat="":t[a]="");for(var n in e)a=e[n],e.hasOwnProperty(n)&&l[n]!==a&&vc(t,n,a)}else for(var i in e)e.hasOwnProperty(i)&&vc(t,i,e[i])}function Ds(t){if(t.indexOf("-")===-1)return!1;switch(t){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 om=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),cm=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function In(t){return cm.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function Ye(){}var Cs=null;function Os(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var ia=null,sa=null;function Sc(t){var e=ta(t);if(e&&(t=e.stateNode)){var l=t[te]||null;t:switch(t=e.stateNode,e.type){case"input":if(js(t,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),e=l.name,l.type==="radio"&&e!=null){for(l=t;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+Se(""+e)+'"][type="radio"]'),e=0;e<l.length;e++){var a=l[e];if(a!==t&&a.form===t.form){var n=a[te]||null;if(!n)throw Error(o(90));js(a,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name)}}for(e=0;e<l.length;e++)a=l[e],a.form===t.form&&mc(a)}break t;case"textarea":pc(t,l.value,l.defaultValue);break t;case"select":e=l.value,e!=null&&aa(t,!!l.multiple,e,!1)}}}var Rs=!1;function xc(t,e,l){if(Rs)return t(e,l);Rs=!0;try{var a=t(e);return a}finally{if(Rs=!1,(ia!==null||sa!==null)&&(Yi(),ia&&(e=ia,t=sa,sa=ia=null,Sc(e),t)))for(e=0;e<t.length;e++)Sc(t[e])}}function Ia(t,e){var l=t.stateNode;if(l===null)return null;var a=l[te]||null;if(a===null)return null;l=a[e];t:switch(e){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)||(t=t.type,a=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!a;break t;default:t=!1}if(t)return null;if(l&&typeof l!="function")throw Error(o(231,e,typeof l));return l}var qe=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Us=!1;if(qe)try{var Pa={};Object.defineProperty(Pa,"passive",{get:function(){Us=!0}}),window.addEventListener("test",Pa,Pa),window.removeEventListener("test",Pa,Pa)}catch{Us=!1}var il=null,Bs=null,Pn=null;function _c(){if(Pn)return Pn;var t,e=Bs,l=e.length,a,n="value"in il?il.value:il.textContent,i=n.length;for(t=0;t<l&&e[t]===n[t];t++);var u=l-t;for(a=1;a<=u&&e[l-a]===n[i-a];a++);return Pn=n.slice(t,1<a?1-a:void 0)}function ti(t){var e=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function ei(){return!0}function zc(){return!1}function ee(t){function e(l,a,n,i,u){this._reactName=l,this._targetInst=n,this.type=a,this.nativeEvent=i,this.target=u,this.currentTarget=null;for(var f in t)t.hasOwnProperty(f)&&(l=t[f],this[f]=l?l(i):i[f]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?ei:zc,this.isPropagationStopped=zc,this}return M(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=ei)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=ei)},persist:function(){},isPersistent:ei}),e}var Rl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},li=ee(Rl),tn=M({},Rl,{view:0,detail:0}),fm=ee(tn),Ns,Hs,en,ai=M({},tn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ls,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==en&&(en&&t.type==="mousemove"?(Ns=t.screenX-en.screenX,Hs=t.screenY-en.screenY):Hs=Ns=0,en=t),Ns)},movementY:function(t){return"movementY"in t?t.movementY:Hs}}),Tc=ee(ai),rm=M({},ai,{dataTransfer:0}),dm=ee(rm),hm=M({},tn,{relatedTarget:0}),ws=ee(hm),mm=M({},Rl,{animationName:0,elapsedTime:0,pseudoElement:0}),ym=ee(mm),pm=M({},Rl,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),gm=ee(pm),vm=M({},Rl,{data:0}),Ec=ee(vm),bm={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Sm={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"},xm={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function _m(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=xm[t])?!!e[t]:!1}function Ls(){return _m}var zm=M({},tn,{key:function(t){if(t.key){var e=bm[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=ti(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?Sm[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ls,charCode:function(t){return t.type==="keypress"?ti(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?ti(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),Tm=ee(zm),Em=M({},ai,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Mc=ee(Em),Mm=M({},tn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ls}),jm=ee(Mm),Am=M({},Rl,{propertyName:0,elapsedTime:0,pseudoElement:0}),Dm=ee(Am),Cm=M({},ai,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),Om=ee(Cm),Rm=M({},Rl,{newState:0,oldState:0}),Um=ee(Rm),Bm=[9,13,27,32],Ys=qe&&"CompositionEvent"in window,ln=null;qe&&"documentMode"in document&&(ln=document.documentMode);var Nm=qe&&"TextEvent"in window&&!ln,jc=qe&&(!Ys||ln&&8<ln&&11>=ln),Ac=" ",Dc=!1;function Cc(t,e){switch(t){case"keyup":return Bm.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Oc(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var ua=!1;function Hm(t,e){switch(t){case"compositionend":return Oc(e);case"keypress":return e.which!==32?null:(Dc=!0,Ac);case"textInput":return t=e.data,t===Ac&&Dc?null:t;default:return null}}function wm(t,e){if(ua)return t==="compositionend"||!Ys&&Cc(t,e)?(t=_c(),Pn=Bs=il=null,ua=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return jc&&e.locale!=="ko"?null:e.data;default:return null}}var Lm={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 Rc(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!Lm[t.type]:e==="textarea"}function Uc(t,e,l,a){ia?sa?sa.push(a):sa=[a]:ia=a,e=Ki(e,"onChange"),0<e.length&&(l=new li("onChange","change",null,l,a),t.push({event:l,listeners:e}))}var an=null,nn=null;function Ym(t){pd(t,0)}function ni(t){var e=$a(t);if(mc(e))return t}function Bc(t,e){if(t==="change")return e}var Nc=!1;if(qe){var qs;if(qe){var Gs="oninput"in document;if(!Gs){var Hc=document.createElement("div");Hc.setAttribute("oninput","return;"),Gs=typeof Hc.oninput=="function"}qs=Gs}else qs=!1;Nc=qs&&(!document.documentMode||9<document.documentMode)}function wc(){an&&(an.detachEvent("onpropertychange",Lc),nn=an=null)}function Lc(t){if(t.propertyName==="value"&&ni(nn)){var e=[];Uc(e,nn,t,Os(t)),xc(Ym,e)}}function qm(t,e,l){t==="focusin"?(wc(),an=e,nn=l,an.attachEvent("onpropertychange",Lc)):t==="focusout"&&wc()}function Gm(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return ni(nn)}function Xm(t,e){if(t==="click")return ni(e)}function Zm(t,e){if(t==="input"||t==="change")return ni(e)}function Qm(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var de=typeof Object.is=="function"?Object.is:Qm;function sn(t,e){if(de(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var l=Object.keys(t),a=Object.keys(e);if(l.length!==a.length)return!1;for(a=0;a<l.length;a++){var n=l[a];if(!vs.call(e,n)||!de(t[n],e[n]))return!1}return!0}function Yc(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function qc(t,e){var l=Yc(t);t=0;for(var a;l;){if(l.nodeType===3){if(a=t+l.textContent.length,t<=e&&a>=e)return{node:l,offset:e-t};t=a}t:{for(;l;){if(l.nextSibling){l=l.nextSibling;break t}l=l.parentNode}l=void 0}l=Yc(l)}}function Gc(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?Gc(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function Xc(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=$n(t.document);e instanceof t.HTMLIFrameElement;){try{var l=typeof e.contentWindow.location.href=="string"}catch{l=!1}if(l)t=e.contentWindow;else break;e=$n(t.document)}return e}function Xs(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}var Vm=qe&&"documentMode"in document&&11>=document.documentMode,oa=null,Zs=null,un=null,Qs=!1;function Zc(t,e,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Qs||oa==null||oa!==$n(a)||(a=oa,"selectionStart"in a&&Xs(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}),un&&sn(un,a)||(un=a,a=Ki(Zs,"onSelect"),0<a.length&&(e=new li("onSelect","select",null,e,l),t.push({event:e,listeners:a}),e.target=oa)))}function Ul(t,e){var l={};return l[t.toLowerCase()]=e.toLowerCase(),l["Webkit"+t]="webkit"+e,l["Moz"+t]="moz"+e,l}var ca={animationend:Ul("Animation","AnimationEnd"),animationiteration:Ul("Animation","AnimationIteration"),animationstart:Ul("Animation","AnimationStart"),transitionrun:Ul("Transition","TransitionRun"),transitionstart:Ul("Transition","TransitionStart"),transitioncancel:Ul("Transition","TransitionCancel"),transitionend:Ul("Transition","TransitionEnd")},Vs={},Qc={};qe&&(Qc=document.createElement("div").style,"AnimationEvent"in window||(delete ca.animationend.animation,delete ca.animationiteration.animation,delete ca.animationstart.animation),"TransitionEvent"in window||delete ca.transitionend.transition);function Bl(t){if(Vs[t])return Vs[t];if(!ca[t])return t;var e=ca[t],l;for(l in e)if(e.hasOwnProperty(l)&&l in Qc)return Vs[t]=e[l];return t}var Vc=Bl("animationend"),Kc=Bl("animationiteration"),kc=Bl("animationstart"),Km=Bl("transitionrun"),km=Bl("transitionstart"),Jm=Bl("transitioncancel"),Jc=Bl("transitionend"),Fc=new Map,Ks="abort auxClick beforeToggle 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(" ");Ks.push("scrollEnd");function De(t,e){Fc.set(t,e),Ol(e,[t])}var ii=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},xe=[],fa=0,ks=0;function si(){for(var t=fa,e=ks=fa=0;e<t;){var l=xe[e];xe[e++]=null;var a=xe[e];xe[e++]=null;var n=xe[e];xe[e++]=null;var i=xe[e];if(xe[e++]=null,a!==null&&n!==null){var u=a.pending;u===null?n.next=n:(n.next=u.next,u.next=n),a.pending=n}i!==0&&Wc(l,n,i)}}function ui(t,e,l,a){xe[fa++]=t,xe[fa++]=e,xe[fa++]=l,xe[fa++]=a,ks|=a,t.lanes|=a,t=t.alternate,t!==null&&(t.lanes|=a)}function Js(t,e,l,a){return ui(t,e,l,a),oi(t)}function Nl(t,e){return ui(t,null,null,e),oi(t)}function Wc(t,e,l){t.lanes|=l;var a=t.alternate;a!==null&&(a.lanes|=l);for(var n=!1,i=t.return;i!==null;)i.childLanes|=l,a=i.alternate,a!==null&&(a.childLanes|=l),i.tag===22&&(t=i.stateNode,t===null||t._visibility&1||(n=!0)),t=i,i=i.return;return t.tag===3?(i=t.stateNode,n&&e!==null&&(n=31-re(l),t=i.hiddenUpdates,a=t[n],a===null?t[n]=[e]:a.push(e),e.lane=l|536870912),i):null}function oi(t){if(50<Dn)throw Dn=0,ao=null,Error(o(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var ra={};function Fm(t,e,l,a){this.tag=t,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=e,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 he(t,e,l,a){return new Fm(t,e,l,a)}function Fs(t){return t=t.prototype,!(!t||!t.isReactComponent)}function Ge(t,e){var l=t.alternate;return l===null?(l=he(t.tag,e,t.key,t.mode),l.elementType=t.elementType,l.type=t.type,l.stateNode=t.stateNode,l.alternate=t,t.alternate=l):(l.pendingProps=e,l.type=t.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=t.flags&65011712,l.childLanes=t.childLanes,l.lanes=t.lanes,l.child=t.child,l.memoizedProps=t.memoizedProps,l.memoizedState=t.memoizedState,l.updateQueue=t.updateQueue,e=t.dependencies,l.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},l.sibling=t.sibling,l.index=t.index,l.ref=t.ref,l.refCleanup=t.refCleanup,l}function $c(t,e){t.flags&=65011714;var l=t.alternate;return l===null?(t.childLanes=0,t.lanes=e,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=l.childLanes,t.lanes=l.lanes,t.child=l.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=l.memoizedProps,t.memoizedState=l.memoizedState,t.updateQueue=l.updateQueue,t.type=l.type,e=l.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),t}function ci(t,e,l,a,n,i){var u=0;if(a=t,typeof t=="function")Fs(t)&&(u=1);else if(typeof t=="string")u=t0(t,l,Nt.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case X:return t=he(31,l,e,n),t.elementType=X,t.lanes=i,t;case H:return Hl(l.children,n,i,e);case L:u=8,n|=24;break;case P:return t=he(12,l,e,n|2),t.elementType=P,t.lanes=i,t;case W:return t=he(13,l,e,n),t.elementType=W,t.lanes=i,t;case K:return t=he(19,l,e,n),t.elementType=K,t.lanes=i,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case G:u=10;break t;case Y:u=9;break t;case V:u=11;break t;case w:u=14;break t;case nt:u=16,a=null;break t}u=29,l=Error(o(130,t===null?"null":typeof t,"")),a=null}return e=he(u,l,e,n),e.elementType=t,e.type=a,e.lanes=i,e}function Hl(t,e,l,a){return t=he(7,t,a,e),t.lanes=l,t}function Ws(t,e,l){return t=he(6,t,null,e),t.lanes=l,t}function Ic(t){var e=he(18,null,null,0);return e.stateNode=t,e}function $s(t,e,l){return e=he(4,t.children!==null?t.children:[],t.key,e),e.lanes=l,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var Pc=new WeakMap;function _e(t,e){if(typeof t=="object"&&t!==null){var l=Pc.get(t);return l!==void 0?l:(e={value:t,source:e,stack:Io(e)},Pc.set(t,e),e)}return{value:t,source:e,stack:Io(e)}}var da=[],ha=0,fi=null,on=0,ze=[],Te=0,sl=null,Be=1,Ne="";function Xe(t,e){da[ha++]=on,da[ha++]=fi,fi=t,on=e}function tf(t,e,l){ze[Te++]=Be,ze[Te++]=Ne,ze[Te++]=sl,sl=t;var a=Be;t=Ne;var n=32-re(a)-1;a&=~(1<<n),l+=1;var i=32-re(e)+n;if(30<i){var u=n-n%5;i=(a&(1<<u)-1).toString(32),a>>=u,n-=u,Be=1<<32-re(e)+n|l<<n|a,Ne=i+t}else Be=1<<i|l<<n|a,Ne=t}function Is(t){t.return!==null&&(Xe(t,1),tf(t,1,0))}function Ps(t){for(;t===fi;)fi=da[--ha],da[ha]=null,on=da[--ha],da[ha]=null;for(;t===sl;)sl=ze[--Te],ze[Te]=null,Ne=ze[--Te],ze[Te]=null,Be=ze[--Te],ze[Te]=null}function ef(t,e){ze[Te++]=Be,ze[Te++]=Ne,ze[Te++]=sl,Be=e.id,Ne=e.overflow,sl=t}var Kt=null,Mt=null,ft=!1,ul=null,Ee=!1,tu=Error(o(519));function ol(t){var e=Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw cn(_e(e,t)),tu}function lf(t){var e=t.stateNode,l=t.type,a=t.memoizedProps;switch(e[Vt]=t,e[te]=a,l){case"dialog":ut("cancel",e),ut("close",e);break;case"iframe":case"object":case"embed":ut("load",e);break;case"video":case"audio":for(l=0;l<On.length;l++)ut(On[l],e);break;case"source":ut("error",e);break;case"img":case"image":case"link":ut("error",e),ut("load",e);break;case"details":ut("toggle",e);break;case"input":ut("invalid",e),yc(e,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":ut("invalid",e);break;case"textarea":ut("invalid",e),gc(e,a.value,a.defaultValue,a.children)}l=a.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||e.textContent===""+l||a.suppressHydrationWarning===!0||Sd(e.textContent,l)?(a.popover!=null&&(ut("beforetoggle",e),ut("toggle",e)),a.onScroll!=null&&ut("scroll",e),a.onScrollEnd!=null&&ut("scrollend",e),a.onClick!=null&&(e.onclick=Ye),e=!0):e=!1,e||ol(t,!0)}function af(t){for(Kt=t.return;Kt;)switch(Kt.tag){case 5:case 31:case 13:Ee=!1;return;case 27:case 3:Ee=!0;return;default:Kt=Kt.return}}function ma(t){if(t!==Kt)return!1;if(!ft)return af(t),ft=!0,!1;var e=t.tag,l;if((l=e!==3&&e!==27)&&((l=e===5)&&(l=t.type,l=!(l!=="form"&&l!=="button")||bo(t.type,t.memoizedProps)),l=!l),l&&Mt&&ol(t),af(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(317));Mt=Dd(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(317));Mt=Dd(t)}else e===27?(e=Mt,_l(t.type)?(t=To,To=null,Mt=t):Mt=e):Mt=Kt?je(t.stateNode.nextSibling):null;return!0}function wl(){Mt=Kt=null,ft=!1}function eu(){var t=ul;return t!==null&&(ie===null?ie=t:ie.push.apply(ie,t),ul=null),t}function cn(t){ul===null?ul=[t]:ul.push(t)}var lu=qt(null),Ll=null,Ze=null;function cl(t,e,l){dt(lu,e._currentValue),e._currentValue=l}function Qe(t){t._currentValue=lu.current,zt(lu)}function au(t,e,l){for(;t!==null;){var a=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,a!==null&&(a.childLanes|=e)):a!==null&&(a.childLanes&e)!==e&&(a.childLanes|=e),t===l)break;t=t.return}}function nu(t,e,l,a){var n=t.child;for(n!==null&&(n.return=t);n!==null;){var i=n.dependencies;if(i!==null){var u=n.child;i=i.firstContext;t:for(;i!==null;){var f=i;i=n;for(var y=0;y<e.length;y++)if(f.context===e[y]){i.lanes|=l,f=i.alternate,f!==null&&(f.lanes|=l),au(i.return,l,t),a||(u=null);break t}i=f.next}}else if(n.tag===18){if(u=n.return,u===null)throw Error(o(341));u.lanes|=l,i=u.alternate,i!==null&&(i.lanes|=l),au(u,l,t),u=null}else u=n.child;if(u!==null)u.return=n;else for(u=n;u!==null;){if(u===t){u=null;break}if(n=u.sibling,n!==null){n.return=u.return,u=n;break}u=u.return}n=u}}function ya(t,e,l,a){t=null;for(var n=e,i=!1;n!==null;){if(!i){if((n.flags&524288)!==0)i=!0;else if((n.flags&262144)!==0)break}if(n.tag===10){var u=n.alternate;if(u===null)throw Error(o(387));if(u=u.memoizedProps,u!==null){var f=n.type;de(n.pendingProps.value,u.value)||(t!==null?t.push(f):t=[f])}}else if(n===Wl.current){if(u=n.alternate,u===null)throw Error(o(387));u.memoizedState.memoizedState!==n.memoizedState.memoizedState&&(t!==null?t.push(Hn):t=[Hn])}n=n.return}t!==null&&nu(e,t,l,a),e.flags|=262144}function ri(t){for(t=t.firstContext;t!==null;){if(!de(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function Yl(t){Ll=t,Ze=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function kt(t){return nf(Ll,t)}function di(t,e){return Ll===null&&Yl(t),nf(t,e)}function nf(t,e){var l=e._currentValue;if(e={context:e,memoizedValue:l,next:null},Ze===null){if(t===null)throw Error(o(308));Ze=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else Ze=Ze.next=e;return l}var Wm=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(l,a){t.push(a)}};this.abort=function(){e.aborted=!0,t.forEach(function(l){return l()})}},$m=c.unstable_scheduleCallback,Im=c.unstable_NormalPriority,Ht={$$typeof:G,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function iu(){return{controller:new Wm,data:new Map,refCount:0}}function fn(t){t.refCount--,t.refCount===0&&$m(Im,function(){t.controller.abort()})}var rn=null,su=0,pa=0,ga=null;function Pm(t,e){if(rn===null){var l=rn=[];su=0,pa=co(),ga={status:"pending",value:void 0,then:function(a){l.push(a)}}}return su++,e.then(sf,sf),e}function sf(){if(--su===0&&rn!==null){ga!==null&&(ga.status="fulfilled");var t=rn;rn=null,pa=0,ga=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function ty(t,e){var l=[],a={status:"pending",value:null,reason:null,then:function(n){l.push(n)}};return t.then(function(){a.status="fulfilled",a.value=e;for(var n=0;n<l.length;n++)(0,l[n])(e)},function(n){for(a.status="rejected",a.reason=n,n=0;n<l.length;n++)(0,l[n])(void 0)}),a}var uf=A.S;A.S=function(t,e){Qr=ce(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&Pm(t,e),uf!==null&&uf(t,e)};var ql=qt(null);function uu(){var t=ql.current;return t!==null?t:Et.pooledCache}function hi(t,e){e===null?dt(ql,ql.current):dt(ql,e.pool)}function of(){var t=uu();return t===null?null:{parent:Ht._currentValue,pool:t}}var va=Error(o(460)),ou=Error(o(474)),mi=Error(o(542)),yi={then:function(){}};function cf(t){return t=t.status,t==="fulfilled"||t==="rejected"}function ff(t,e,l){switch(l=t[l],l===void 0?t.push(e):l!==e&&(e.then(Ye,Ye),e=l),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,df(t),t;default:if(typeof e.status=="string")e.then(Ye,Ye);else{if(t=Et,t!==null&&100<t.shellSuspendCounter)throw Error(o(482));t=e,t.status="pending",t.then(function(a){if(e.status==="pending"){var n=e;n.status="fulfilled",n.value=a}},function(a){if(e.status==="pending"){var n=e;n.status="rejected",n.reason=a}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,df(t),t}throw Xl=e,va}}function Gl(t){try{var e=t._init;return e(t._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(Xl=l,va):l}}var Xl=null;function rf(){if(Xl===null)throw Error(o(459));var t=Xl;return Xl=null,t}function df(t){if(t===va||t===mi)throw Error(o(483))}var ba=null,dn=0;function pi(t){var e=dn;return dn+=1,ba===null&&(ba=[]),ff(ba,t,e)}function hn(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function gi(t,e){throw e.$$typeof===z?Error(o(525)):(t=Object.prototype.toString.call(e),Error(o(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function hf(t){function e(g,p){if(t){var b=g.deletions;b===null?(g.deletions=[p],g.flags|=16):b.push(p)}}function l(g,p){if(!t)return null;for(;p!==null;)e(g,p),p=p.sibling;return null}function a(g){for(var p=new Map;g!==null;)g.key!==null?p.set(g.key,g):p.set(g.index,g),g=g.sibling;return p}function n(g,p){return g=Ge(g,p),g.index=0,g.sibling=null,g}function i(g,p,b){return g.index=b,t?(b=g.alternate,b!==null?(b=b.index,b<p?(g.flags|=67108866,p):b):(g.flags|=67108866,p)):(g.flags|=1048576,p)}function u(g){return t&&g.alternate===null&&(g.flags|=67108866),g}function f(g,p,b,D){return p===null||p.tag!==6?(p=Ws(b,g.mode,D),p.return=g,p):(p=n(p,b),p.return=g,p)}function y(g,p,b,D){var F=b.type;return F===H?j(g,p,b.props.children,D,b.key):p!==null&&(p.elementType===F||typeof F=="object"&&F!==null&&F.$$typeof===nt&&Gl(F)===p.type)?(p=n(p,b.props),hn(p,b),p.return=g,p):(p=ci(b.type,b.key,b.props,null,g.mode,D),hn(p,b),p.return=g,p)}function S(g,p,b,D){return p===null||p.tag!==4||p.stateNode.containerInfo!==b.containerInfo||p.stateNode.implementation!==b.implementation?(p=$s(b,g.mode,D),p.return=g,p):(p=n(p,b.children||[]),p.return=g,p)}function j(g,p,b,D,F){return p===null||p.tag!==7?(p=Hl(b,g.mode,D,F),p.return=g,p):(p=n(p,b),p.return=g,p)}function C(g,p,b){if(typeof p=="string"&&p!==""||typeof p=="number"||typeof p=="bigint")return p=Ws(""+p,g.mode,b),p.return=g,p;if(typeof p=="object"&&p!==null){switch(p.$$typeof){case E:return b=ci(p.type,p.key,p.props,null,g.mode,b),hn(b,p),b.return=g,b;case N:return p=$s(p,g.mode,b),p.return=g,p;case nt:return p=Gl(p),C(g,p,b)}if(Bt(p)||I(p))return p=Hl(p,g.mode,b,null),p.return=g,p;if(typeof p.then=="function")return C(g,pi(p),b);if(p.$$typeof===G)return C(g,di(g,p),b);gi(g,p)}return null}function x(g,p,b,D){var F=p!==null?p.key:null;if(typeof b=="string"&&b!==""||typeof b=="number"||typeof b=="bigint")return F!==null?null:f(g,p,""+b,D);if(typeof b=="object"&&b!==null){switch(b.$$typeof){case E:return b.key===F?y(g,p,b,D):null;case N:return b.key===F?S(g,p,b,D):null;case nt:return b=Gl(b),x(g,p,b,D)}if(Bt(b)||I(b))return F!==null?null:j(g,p,b,D,null);if(typeof b.then=="function")return x(g,p,pi(b),D);if(b.$$typeof===G)return x(g,p,di(g,b),D);gi(g,b)}return null}function T(g,p,b,D,F){if(typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint")return g=g.get(b)||null,f(p,g,""+D,F);if(typeof D=="object"&&D!==null){switch(D.$$typeof){case E:return g=g.get(D.key===null?b:D.key)||null,y(p,g,D,F);case N:return g=g.get(D.key===null?b:D.key)||null,S(p,g,D,F);case nt:return D=Gl(D),T(g,p,b,D,F)}if(Bt(D)||I(D))return g=g.get(b)||null,j(p,g,D,F,null);if(typeof D.then=="function")return T(g,p,b,pi(D),F);if(D.$$typeof===G)return T(g,p,b,di(p,D),F);gi(p,D)}return null}function Z(g,p,b,D){for(var F=null,ht=null,k=p,lt=p=0,ct=null;k!==null&&lt<b.length;lt++){k.index>lt?(ct=k,k=null):ct=k.sibling;var mt=x(g,k,b[lt],D);if(mt===null){k===null&&(k=ct);break}t&&k&&mt.alternate===null&&e(g,k),p=i(mt,p,lt),ht===null?F=mt:ht.sibling=mt,ht=mt,k=ct}if(lt===b.length)return l(g,k),ft&&Xe(g,lt),F;if(k===null){for(;lt<b.length;lt++)k=C(g,b[lt],D),k!==null&&(p=i(k,p,lt),ht===null?F=k:ht.sibling=k,ht=k);return ft&&Xe(g,lt),F}for(k=a(k);lt<b.length;lt++)ct=T(k,g,lt,b[lt],D),ct!==null&&(t&&ct.alternate!==null&&k.delete(ct.key===null?lt:ct.key),p=i(ct,p,lt),ht===null?F=ct:ht.sibling=ct,ht=ct);return t&&k.forEach(function(jl){return e(g,jl)}),ft&&Xe(g,lt),F}function tt(g,p,b,D){if(b==null)throw Error(o(151));for(var F=null,ht=null,k=p,lt=p=0,ct=null,mt=b.next();k!==null&&!mt.done;lt++,mt=b.next()){k.index>lt?(ct=k,k=null):ct=k.sibling;var jl=x(g,k,mt.value,D);if(jl===null){k===null&&(k=ct);break}t&&k&&jl.alternate===null&&e(g,k),p=i(jl,p,lt),ht===null?F=jl:ht.sibling=jl,ht=jl,k=ct}if(mt.done)return l(g,k),ft&&Xe(g,lt),F;if(k===null){for(;!mt.done;lt++,mt=b.next())mt=C(g,mt.value,D),mt!==null&&(p=i(mt,p,lt),ht===null?F=mt:ht.sibling=mt,ht=mt);return ft&&Xe(g,lt),F}for(k=a(k);!mt.done;lt++,mt=b.next())mt=T(k,g,lt,mt.value,D),mt!==null&&(t&&mt.alternate!==null&&k.delete(mt.key===null?lt:mt.key),p=i(mt,p,lt),ht===null?F=mt:ht.sibling=mt,ht=mt);return t&&k.forEach(function(r0){return e(g,r0)}),ft&&Xe(g,lt),F}function xt(g,p,b,D){if(typeof b=="object"&&b!==null&&b.type===H&&b.key===null&&(b=b.props.children),typeof b=="object"&&b!==null){switch(b.$$typeof){case E:t:{for(var F=b.key;p!==null;){if(p.key===F){if(F=b.type,F===H){if(p.tag===7){l(g,p.sibling),D=n(p,b.props.children),D.return=g,g=D;break t}}else if(p.elementType===F||typeof F=="object"&&F!==null&&F.$$typeof===nt&&Gl(F)===p.type){l(g,p.sibling),D=n(p,b.props),hn(D,b),D.return=g,g=D;break t}l(g,p);break}else e(g,p);p=p.sibling}b.type===H?(D=Hl(b.props.children,g.mode,D,b.key),D.return=g,g=D):(D=ci(b.type,b.key,b.props,null,g.mode,D),hn(D,b),D.return=g,g=D)}return u(g);case N:t:{for(F=b.key;p!==null;){if(p.key===F)if(p.tag===4&&p.stateNode.containerInfo===b.containerInfo&&p.stateNode.implementation===b.implementation){l(g,p.sibling),D=n(p,b.children||[]),D.return=g,g=D;break t}else{l(g,p);break}else e(g,p);p=p.sibling}D=$s(b,g.mode,D),D.return=g,g=D}return u(g);case nt:return b=Gl(b),xt(g,p,b,D)}if(Bt(b))return Z(g,p,b,D);if(I(b)){if(F=I(b),typeof F!="function")throw Error(o(150));return b=F.call(b),tt(g,p,b,D)}if(typeof b.then=="function")return xt(g,p,pi(b),D);if(b.$$typeof===G)return xt(g,p,di(g,b),D);gi(g,b)}return typeof b=="string"&&b!==""||typeof b=="number"||typeof b=="bigint"?(b=""+b,p!==null&&p.tag===6?(l(g,p.sibling),D=n(p,b),D.return=g,g=D):(l(g,p),D=Ws(b,g.mode,D),D.return=g,g=D),u(g)):l(g,p)}return function(g,p,b,D){try{dn=0;var F=xt(g,p,b,D);return ba=null,F}catch(k){if(k===va||k===mi)throw k;var ht=he(29,k,null,g.mode);return ht.lanes=D,ht.return=g,ht}finally{}}}var Zl=hf(!0),mf=hf(!1),fl=!1;function cu(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function fu(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function rl(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function dl(t,e,l){var a=t.updateQueue;if(a===null)return null;if(a=a.shared,(yt&2)!==0){var n=a.pending;return n===null?e.next=e:(e.next=n.next,n.next=e),a.pending=e,e=oi(t),Wc(t,null,l),e}return ui(t,a,e,l),oi(t)}function mn(t,e,l){if(e=e.updateQueue,e!==null&&(e=e.shared,(l&4194048)!==0)){var a=e.lanes;a&=t.pendingLanes,l|=a,e.lanes=l,nc(t,l)}}function ru(t,e){var l=t.updateQueue,a=t.alternate;if(a!==null&&(a=a.updateQueue,l===a)){var n=null,i=null;if(l=l.firstBaseUpdate,l!==null){do{var u={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};i===null?n=i=u:i=i.next=u,l=l.next}while(l!==null);i===null?n=i=e:i=i.next=e}else n=i=e;l={baseState:a.baseState,firstBaseUpdate:n,lastBaseUpdate:i,shared:a.shared,callbacks:a.callbacks},t.updateQueue=l;return}t=l.lastBaseUpdate,t===null?l.firstBaseUpdate=e:t.next=e,l.lastBaseUpdate=e}var du=!1;function yn(){if(du){var t=ga;if(t!==null)throw t}}function pn(t,e,l,a){du=!1;var n=t.updateQueue;fl=!1;var i=n.firstBaseUpdate,u=n.lastBaseUpdate,f=n.shared.pending;if(f!==null){n.shared.pending=null;var y=f,S=y.next;y.next=null,u===null?i=S:u.next=S,u=y;var j=t.alternate;j!==null&&(j=j.updateQueue,f=j.lastBaseUpdate,f!==u&&(f===null?j.firstBaseUpdate=S:f.next=S,j.lastBaseUpdate=y))}if(i!==null){var C=n.baseState;u=0,j=S=y=null,f=i;do{var x=f.lane&-536870913,T=x!==f.lane;if(T?(ot&x)===x:(a&x)===x){x!==0&&x===pa&&(du=!0),j!==null&&(j=j.next={lane:0,tag:f.tag,payload:f.payload,callback:null,next:null});t:{var Z=t,tt=f;x=e;var xt=l;switch(tt.tag){case 1:if(Z=tt.payload,typeof Z=="function"){C=Z.call(xt,C,x);break t}C=Z;break t;case 3:Z.flags=Z.flags&-65537|128;case 0:if(Z=tt.payload,x=typeof Z=="function"?Z.call(xt,C,x):Z,x==null)break t;C=M({},C,x);break t;case 2:fl=!0}}x=f.callback,x!==null&&(t.flags|=64,T&&(t.flags|=8192),T=n.callbacks,T===null?n.callbacks=[x]:T.push(x))}else T={lane:x,tag:f.tag,payload:f.payload,callback:f.callback,next:null},j===null?(S=j=T,y=C):j=j.next=T,u|=x;if(f=f.next,f===null){if(f=n.shared.pending,f===null)break;T=f,f=T.next,T.next=null,n.lastBaseUpdate=T,n.shared.pending=null}}while(!0);j===null&&(y=C),n.baseState=y,n.firstBaseUpdate=S,n.lastBaseUpdate=j,i===null&&(n.shared.lanes=0),gl|=u,t.lanes=u,t.memoizedState=C}}function yf(t,e){if(typeof t!="function")throw Error(o(191,t));t.call(e)}function pf(t,e){var l=t.callbacks;if(l!==null)for(t.callbacks=null,t=0;t<l.length;t++)yf(l[t],e)}var Sa=qt(null),vi=qt(0);function gf(t,e){t=Pe,dt(vi,t),dt(Sa,e),Pe=t|e.baseLanes}function hu(){dt(vi,Pe),dt(Sa,Sa.current)}function mu(){Pe=vi.current,zt(Sa),zt(vi)}var me=qt(null),Me=null;function hl(t){var e=t.alternate;dt(Rt,Rt.current&1),dt(me,t),Me===null&&(e===null||Sa.current!==null||e.memoizedState!==null)&&(Me=t)}function yu(t){dt(Rt,Rt.current),dt(me,t),Me===null&&(Me=t)}function vf(t){t.tag===22?(dt(Rt,Rt.current),dt(me,t),Me===null&&(Me=t)):ml()}function ml(){dt(Rt,Rt.current),dt(me,me.current)}function ye(t){zt(me),Me===t&&(Me=null),zt(Rt)}var Rt=qt(0);function bi(t){for(var e=t;e!==null;){if(e.tag===13){var l=e.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||_o(l)||zo(l)))return e}else if(e.tag===19&&(e.memoizedProps.revealOrder==="forwards"||e.memoizedProps.revealOrder==="backwards"||e.memoizedProps.revealOrder==="unstable_legacy-backwards"||e.memoizedProps.revealOrder==="together")){if((e.flags&128)!==0)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var Ve=0,et=null,bt=null,wt=null,Si=!1,xa=!1,Ql=!1,xi=0,gn=0,_a=null,ey=0;function Ct(){throw Error(o(321))}function pu(t,e){if(e===null)return!1;for(var l=0;l<e.length&&l<t.length;l++)if(!de(t[l],e[l]))return!1;return!0}function gu(t,e,l,a,n,i){return Ve=i,et=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,A.H=t===null||t.memoizedState===null?er:Ru,Ql=!1,i=l(a,n),Ql=!1,xa&&(i=Sf(e,l,a,n)),bf(t),i}function bf(t){A.H=Sn;var e=bt!==null&&bt.next!==null;if(Ve=0,wt=bt=et=null,Si=!1,gn=0,_a=null,e)throw Error(o(300));t===null||Lt||(t=t.dependencies,t!==null&&ri(t)&&(Lt=!0))}function Sf(t,e,l,a){et=t;var n=0;do{if(xa&&(_a=null),gn=0,xa=!1,25<=n)throw Error(o(301));if(n+=1,wt=bt=null,t.updateQueue!=null){var i=t.updateQueue;i.lastEffect=null,i.events=null,i.stores=null,i.memoCache!=null&&(i.memoCache.index=0)}A.H=lr,i=e(l,a)}while(xa);return i}function ly(){var t=A.H,e=t.useState()[0];return e=typeof e.then=="function"?vn(e):e,t=t.useState()[0],(bt!==null?bt.memoizedState:null)!==t&&(et.flags|=1024),e}function vu(){var t=xi!==0;return xi=0,t}function bu(t,e,l){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~l}function Su(t){if(Si){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}Si=!1}Ve=0,wt=bt=et=null,xa=!1,gn=xi=0,_a=null}function It(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return wt===null?et.memoizedState=wt=t:wt=wt.next=t,wt}function Ut(){if(bt===null){var t=et.alternate;t=t!==null?t.memoizedState:null}else t=bt.next;var e=wt===null?et.memoizedState:wt.next;if(e!==null)wt=e,bt=t;else{if(t===null)throw et.alternate===null?Error(o(467)):Error(o(310));bt=t,t={memoizedState:bt.memoizedState,baseState:bt.baseState,baseQueue:bt.baseQueue,queue:bt.queue,next:null},wt===null?et.memoizedState=wt=t:wt=wt.next=t}return wt}function _i(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function vn(t){var e=gn;return gn+=1,_a===null&&(_a=[]),t=ff(_a,t,e),e=et,(wt===null?e.memoizedState:wt.next)===null&&(e=e.alternate,A.H=e===null||e.memoizedState===null?er:Ru),t}function zi(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return vn(t);if(t.$$typeof===G)return kt(t)}throw Error(o(438,String(t)))}function xu(t){var e=null,l=et.updateQueue;if(l!==null&&(e=l.memoCache),e==null){var a=et.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(e={data:a.data.map(function(n){return n.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),l===null&&(l=_i(),et.updateQueue=l),l.memoCache=e,l=e.data[e.index],l===void 0)for(l=e.data[e.index]=Array(t),a=0;a<t;a++)l[a]=it;return e.index++,l}function Ke(t,e){return typeof e=="function"?e(t):e}function Ti(t){var e=Ut();return _u(e,bt,t)}function _u(t,e,l){var a=t.queue;if(a===null)throw Error(o(311));a.lastRenderedReducer=l;var n=t.baseQueue,i=a.pending;if(i!==null){if(n!==null){var u=n.next;n.next=i.next,i.next=u}e.baseQueue=n=i,a.pending=null}if(i=t.baseState,n===null)t.memoizedState=i;else{e=n.next;var f=u=null,y=null,S=e,j=!1;do{var C=S.lane&-536870913;if(C!==S.lane?(ot&C)===C:(Ve&C)===C){var x=S.revertLane;if(x===0)y!==null&&(y=y.next={lane:0,revertLane:0,gesture:null,action:S.action,hasEagerState:S.hasEagerState,eagerState:S.eagerState,next:null}),C===pa&&(j=!0);else if((Ve&x)===x){S=S.next,x===pa&&(j=!0);continue}else C={lane:0,revertLane:S.revertLane,gesture:null,action:S.action,hasEagerState:S.hasEagerState,eagerState:S.eagerState,next:null},y===null?(f=y=C,u=i):y=y.next=C,et.lanes|=x,gl|=x;C=S.action,Ql&&l(i,C),i=S.hasEagerState?S.eagerState:l(i,C)}else x={lane:C,revertLane:S.revertLane,gesture:S.gesture,action:S.action,hasEagerState:S.hasEagerState,eagerState:S.eagerState,next:null},y===null?(f=y=x,u=i):y=y.next=x,et.lanes|=C,gl|=C;S=S.next}while(S!==null&&S!==e);if(y===null?u=i:y.next=f,!de(i,t.memoizedState)&&(Lt=!0,j&&(l=ga,l!==null)))throw l;t.memoizedState=i,t.baseState=u,t.baseQueue=y,a.lastRenderedState=i}return n===null&&(a.lanes=0),[t.memoizedState,a.dispatch]}function zu(t){var e=Ut(),l=e.queue;if(l===null)throw Error(o(311));l.lastRenderedReducer=t;var a=l.dispatch,n=l.pending,i=e.memoizedState;if(n!==null){l.pending=null;var u=n=n.next;do i=t(i,u.action),u=u.next;while(u!==n);de(i,e.memoizedState)||(Lt=!0),e.memoizedState=i,e.baseQueue===null&&(e.baseState=i),l.lastRenderedState=i}return[i,a]}function xf(t,e,l){var a=et,n=Ut(),i=ft;if(i){if(l===void 0)throw Error(o(407));l=l()}else l=e();var u=!de((bt||n).memoizedState,l);if(u&&(n.memoizedState=l,Lt=!0),n=n.queue,Mu(Tf.bind(null,a,n,t),[t]),n.getSnapshot!==e||u||wt!==null&&wt.memoizedState.tag&1){if(a.flags|=2048,za(9,{destroy:void 0},zf.bind(null,a,n,l,e),null),Et===null)throw Error(o(349));i||(Ve&127)!==0||_f(a,e,l)}return l}function _f(t,e,l){t.flags|=16384,t={getSnapshot:e,value:l},e=et.updateQueue,e===null?(e=_i(),et.updateQueue=e,e.stores=[t]):(l=e.stores,l===null?e.stores=[t]:l.push(t))}function zf(t,e,l,a){e.value=l,e.getSnapshot=a,Ef(e)&&Mf(t)}function Tf(t,e,l){return l(function(){Ef(e)&&Mf(t)})}function Ef(t){var e=t.getSnapshot;t=t.value;try{var l=e();return!de(t,l)}catch{return!0}}function Mf(t){var e=Nl(t,2);e!==null&&se(e,t,2)}function Tu(t){var e=It();if(typeof t=="function"){var l=t;if(t=l(),Ql){al(!0);try{l()}finally{al(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ke,lastRenderedState:t},e}function jf(t,e,l,a){return t.baseState=l,_u(t,bt,typeof a=="function"?a:Ke)}function ay(t,e,l,a,n){if(ji(t))throw Error(o(485));if(t=e.action,t!==null){var i={payload:n,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(u){i.listeners.push(u)}};A.T!==null?l(!0):i.isTransition=!1,a(i),l=e.pending,l===null?(i.next=e.pending=i,Af(e,i)):(i.next=l.next,e.pending=l.next=i)}}function Af(t,e){var l=e.action,a=e.payload,n=t.state;if(e.isTransition){var i=A.T,u={};A.T=u;try{var f=l(n,a),y=A.S;y!==null&&y(u,f),Df(t,e,f)}catch(S){Eu(t,e,S)}finally{i!==null&&u.types!==null&&(i.types=u.types),A.T=i}}else try{i=l(n,a),Df(t,e,i)}catch(S){Eu(t,e,S)}}function Df(t,e,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(a){Cf(t,e,a)},function(a){return Eu(t,e,a)}):Cf(t,e,l)}function Cf(t,e,l){e.status="fulfilled",e.value=l,Of(e),t.state=l,e=t.pending,e!==null&&(l=e.next,l===e?t.pending=null:(l=l.next,e.next=l,Af(t,l)))}function Eu(t,e,l){var a=t.pending;if(t.pending=null,a!==null){a=a.next;do e.status="rejected",e.reason=l,Of(e),e=e.next;while(e!==a)}t.action=null}function Of(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function Rf(t,e){return e}function Uf(t,e){if(ft){var l=Et.formState;if(l!==null){t:{var a=et;if(ft){if(Mt){e:{for(var n=Mt,i=Ee;n.nodeType!==8;){if(!i){n=null;break e}if(n=je(n.nextSibling),n===null){n=null;break e}}i=n.data,n=i==="F!"||i==="F"?n:null}if(n){Mt=je(n.nextSibling),a=n.data==="F!";break t}}ol(a)}a=!1}a&&(e=l[0])}}return l=It(),l.memoizedState=l.baseState=e,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Rf,lastRenderedState:e},l.queue=a,l=If.bind(null,et,a),a.dispatch=l,a=Tu(!1),i=Ou.bind(null,et,!1,a.queue),a=It(),n={state:e,dispatch:null,action:t,pending:null},a.queue=n,l=ay.bind(null,et,n,i,l),n.dispatch=l,a.memoizedState=t,[e,l,!1]}function Bf(t){var e=Ut();return Nf(e,bt,t)}function Nf(t,e,l){if(e=_u(t,e,Rf)[0],t=Ti(Ke)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var a=vn(e)}catch(u){throw u===va?mi:u}else a=e;e=Ut();var n=e.queue,i=n.dispatch;return l!==e.memoizedState&&(et.flags|=2048,za(9,{destroy:void 0},ny.bind(null,n,l),null)),[a,i,t]}function ny(t,e){t.action=e}function Hf(t){var e=Ut(),l=bt;if(l!==null)return Nf(e,l,t);Ut(),e=e.memoizedState,l=Ut();var a=l.queue.dispatch;return l.memoizedState=t,[e,a,!1]}function za(t,e,l,a){return t={tag:t,create:l,deps:a,inst:e,next:null},e=et.updateQueue,e===null&&(e=_i(),et.updateQueue=e),l=e.lastEffect,l===null?e.lastEffect=t.next=t:(a=l.next,l.next=t,t.next=a,e.lastEffect=t),t}function wf(){return Ut().memoizedState}function Ei(t,e,l,a){var n=It();et.flags|=t,n.memoizedState=za(1|e,{destroy:void 0},l,a===void 0?null:a)}function Mi(t,e,l,a){var n=Ut();a=a===void 0?null:a;var i=n.memoizedState.inst;bt!==null&&a!==null&&pu(a,bt.memoizedState.deps)?n.memoizedState=za(e,i,l,a):(et.flags|=t,n.memoizedState=za(1|e,i,l,a))}function Lf(t,e){Ei(8390656,8,t,e)}function Mu(t,e){Mi(2048,8,t,e)}function iy(t){et.flags|=4;var e=et.updateQueue;if(e===null)e=_i(),et.updateQueue=e,e.events=[t];else{var l=e.events;l===null?e.events=[t]:l.push(t)}}function Yf(t){var e=Ut().memoizedState;return iy({ref:e,nextImpl:t}),function(){if((yt&2)!==0)throw Error(o(440));return e.impl.apply(void 0,arguments)}}function qf(t,e){return Mi(4,2,t,e)}function Gf(t,e){return Mi(4,4,t,e)}function Xf(t,e){if(typeof e=="function"){t=t();var l=e(t);return function(){typeof l=="function"?l():e(null)}}if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function Zf(t,e,l){l=l!=null?l.concat([t]):null,Mi(4,4,Xf.bind(null,e,t),l)}function ju(){}function Qf(t,e){var l=Ut();e=e===void 0?null:e;var a=l.memoizedState;return e!==null&&pu(e,a[1])?a[0]:(l.memoizedState=[t,e],t)}function Vf(t,e){var l=Ut();e=e===void 0?null:e;var a=l.memoizedState;if(e!==null&&pu(e,a[1]))return a[0];if(a=t(),Ql){al(!0);try{t()}finally{al(!1)}}return l.memoizedState=[a,e],a}function Au(t,e,l){return l===void 0||(Ve&1073741824)!==0&&(ot&261930)===0?t.memoizedState=e:(t.memoizedState=l,t=Kr(),et.lanes|=t,gl|=t,l)}function Kf(t,e,l,a){return de(l,e)?l:Sa.current!==null?(t=Au(t,l,a),de(t,e)||(Lt=!0),t):(Ve&42)===0||(Ve&1073741824)!==0&&(ot&261930)===0?(Lt=!0,t.memoizedState=l):(t=Kr(),et.lanes|=t,gl|=t,e)}function kf(t,e,l,a,n){var i=q.p;q.p=i!==0&&8>i?i:8;var u=A.T,f={};A.T=f,Ou(t,!1,e,l);try{var y=n(),S=A.S;if(S!==null&&S(f,y),y!==null&&typeof y=="object"&&typeof y.then=="function"){var j=ty(y,a);bn(t,e,j,ve(t))}else bn(t,e,a,ve(t))}catch(C){bn(t,e,{then:function(){},status:"rejected",reason:C},ve())}finally{q.p=i,u!==null&&f.types!==null&&(u.types=f.types),A.T=u}}function sy(){}function Du(t,e,l,a){if(t.tag!==5)throw Error(o(476));var n=Jf(t).queue;kf(t,n,e,$,l===null?sy:function(){return Ff(t),l(a)})}function Jf(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:$,baseState:$,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ke,lastRenderedState:$},next:null};var l={};return e.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ke,lastRenderedState:l},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function Ff(t){var e=Jf(t);e.next===null&&(e=t.alternate.memoizedState),bn(t,e.next.queue,{},ve())}function Cu(){return kt(Hn)}function Wf(){return Ut().memoizedState}function $f(){return Ut().memoizedState}function uy(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var l=ve();t=rl(l);var a=dl(e,t,l);a!==null&&(se(a,e,l),mn(a,e,l)),e={cache:iu()},t.payload=e;return}e=e.return}}function oy(t,e,l){var a=ve();l={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},ji(t)?Pf(e,l):(l=Js(t,e,l,a),l!==null&&(se(l,t,a),tr(l,e,a)))}function If(t,e,l){var a=ve();bn(t,e,l,a)}function bn(t,e,l,a){var n={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(ji(t))Pf(e,n);else{var i=t.alternate;if(t.lanes===0&&(i===null||i.lanes===0)&&(i=e.lastRenderedReducer,i!==null))try{var u=e.lastRenderedState,f=i(u,l);if(n.hasEagerState=!0,n.eagerState=f,de(f,u))return ui(t,e,n,0),Et===null&&si(),!1}catch{}finally{}if(l=Js(t,e,n,a),l!==null)return se(l,t,a),tr(l,e,a),!0}return!1}function Ou(t,e,l,a){if(a={lane:2,revertLane:co(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},ji(t)){if(e)throw Error(o(479))}else e=Js(t,l,a,2),e!==null&&se(e,t,2)}function ji(t){var e=t.alternate;return t===et||e!==null&&e===et}function Pf(t,e){xa=Si=!0;var l=t.pending;l===null?e.next=e:(e.next=l.next,l.next=e),t.pending=e}function tr(t,e,l){if((l&4194048)!==0){var a=e.lanes;a&=t.pendingLanes,l|=a,e.lanes=l,nc(t,l)}}var Sn={readContext:kt,use:zi,useCallback:Ct,useContext:Ct,useEffect:Ct,useImperativeHandle:Ct,useLayoutEffect:Ct,useInsertionEffect:Ct,useMemo:Ct,useReducer:Ct,useRef:Ct,useState:Ct,useDebugValue:Ct,useDeferredValue:Ct,useTransition:Ct,useSyncExternalStore:Ct,useId:Ct,useHostTransitionStatus:Ct,useFormState:Ct,useActionState:Ct,useOptimistic:Ct,useMemoCache:Ct,useCacheRefresh:Ct};Sn.useEffectEvent=Ct;var er={readContext:kt,use:zi,useCallback:function(t,e){return It().memoizedState=[t,e===void 0?null:e],t},useContext:kt,useEffect:Lf,useImperativeHandle:function(t,e,l){l=l!=null?l.concat([t]):null,Ei(4194308,4,Xf.bind(null,e,t),l)},useLayoutEffect:function(t,e){return Ei(4194308,4,t,e)},useInsertionEffect:function(t,e){Ei(4,2,t,e)},useMemo:function(t,e){var l=It();e=e===void 0?null:e;var a=t();if(Ql){al(!0);try{t()}finally{al(!1)}}return l.memoizedState=[a,e],a},useReducer:function(t,e,l){var a=It();if(l!==void 0){var n=l(e);if(Ql){al(!0);try{l(e)}finally{al(!1)}}}else n=e;return a.memoizedState=a.baseState=n,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:n},a.queue=t,t=t.dispatch=oy.bind(null,et,t),[a.memoizedState,t]},useRef:function(t){var e=It();return t={current:t},e.memoizedState=t},useState:function(t){t=Tu(t);var e=t.queue,l=If.bind(null,et,e);return e.dispatch=l,[t.memoizedState,l]},useDebugValue:ju,useDeferredValue:function(t,e){var l=It();return Au(l,t,e)},useTransition:function(){var t=Tu(!1);return t=kf.bind(null,et,t.queue,!0,!1),It().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,l){var a=et,n=It();if(ft){if(l===void 0)throw Error(o(407));l=l()}else{if(l=e(),Et===null)throw Error(o(349));(ot&127)!==0||_f(a,e,l)}n.memoizedState=l;var i={value:l,getSnapshot:e};return n.queue=i,Lf(Tf.bind(null,a,i,t),[t]),a.flags|=2048,za(9,{destroy:void 0},zf.bind(null,a,i,l,e),null),l},useId:function(){var t=It(),e=Et.identifierPrefix;if(ft){var l=Ne,a=Be;l=(a&~(1<<32-re(a)-1)).toString(32)+l,e="_"+e+"R_"+l,l=xi++,0<l&&(e+="H"+l.toString(32)),e+="_"}else l=ey++,e="_"+e+"r_"+l.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:Cu,useFormState:Uf,useActionState:Uf,useOptimistic:function(t){var e=It();e.memoizedState=e.baseState=t;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=l,e=Ou.bind(null,et,!0,l),l.dispatch=e,[t,e]},useMemoCache:xu,useCacheRefresh:function(){return It().memoizedState=uy.bind(null,et)},useEffectEvent:function(t){var e=It(),l={impl:t};return e.memoizedState=l,function(){if((yt&2)!==0)throw Error(o(440));return l.impl.apply(void 0,arguments)}}},Ru={readContext:kt,use:zi,useCallback:Qf,useContext:kt,useEffect:Mu,useImperativeHandle:Zf,useInsertionEffect:qf,useLayoutEffect:Gf,useMemo:Vf,useReducer:Ti,useRef:wf,useState:function(){return Ti(Ke)},useDebugValue:ju,useDeferredValue:function(t,e){var l=Ut();return Kf(l,bt.memoizedState,t,e)},useTransition:function(){var t=Ti(Ke)[0],e=Ut().memoizedState;return[typeof t=="boolean"?t:vn(t),e]},useSyncExternalStore:xf,useId:Wf,useHostTransitionStatus:Cu,useFormState:Bf,useActionState:Bf,useOptimistic:function(t,e){var l=Ut();return jf(l,bt,t,e)},useMemoCache:xu,useCacheRefresh:$f};Ru.useEffectEvent=Yf;var lr={readContext:kt,use:zi,useCallback:Qf,useContext:kt,useEffect:Mu,useImperativeHandle:Zf,useInsertionEffect:qf,useLayoutEffect:Gf,useMemo:Vf,useReducer:zu,useRef:wf,useState:function(){return zu(Ke)},useDebugValue:ju,useDeferredValue:function(t,e){var l=Ut();return bt===null?Au(l,t,e):Kf(l,bt.memoizedState,t,e)},useTransition:function(){var t=zu(Ke)[0],e=Ut().memoizedState;return[typeof t=="boolean"?t:vn(t),e]},useSyncExternalStore:xf,useId:Wf,useHostTransitionStatus:Cu,useFormState:Hf,useActionState:Hf,useOptimistic:function(t,e){var l=Ut();return bt!==null?jf(l,bt,t,e):(l.baseState=t,[t,l.queue.dispatch])},useMemoCache:xu,useCacheRefresh:$f};lr.useEffectEvent=Yf;function Uu(t,e,l,a){e=t.memoizedState,l=l(a,e),l=l==null?e:M({},e,l),t.memoizedState=l,t.lanes===0&&(t.updateQueue.baseState=l)}var Bu={enqueueSetState:function(t,e,l){t=t._reactInternals;var a=ve(),n=rl(a);n.payload=e,l!=null&&(n.callback=l),e=dl(t,n,a),e!==null&&(se(e,t,a),mn(e,t,a))},enqueueReplaceState:function(t,e,l){t=t._reactInternals;var a=ve(),n=rl(a);n.tag=1,n.payload=e,l!=null&&(n.callback=l),e=dl(t,n,a),e!==null&&(se(e,t,a),mn(e,t,a))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var l=ve(),a=rl(l);a.tag=2,e!=null&&(a.callback=e),e=dl(t,a,l),e!==null&&(se(e,t,l),mn(e,t,l))}};function ar(t,e,l,a,n,i,u){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(a,i,u):e.prototype&&e.prototype.isPureReactComponent?!sn(l,a)||!sn(n,i):!0}function nr(t,e,l,a){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(l,a),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(l,a),e.state!==t&&Bu.enqueueReplaceState(e,e.state,null)}function Vl(t,e){var l=e;if("ref"in e){l={};for(var a in e)a!=="ref"&&(l[a]=e[a])}if(t=t.defaultProps){l===e&&(l=M({},l));for(var n in t)l[n]===void 0&&(l[n]=t[n])}return l}function ir(t){ii(t)}function sr(t){console.error(t)}function ur(t){ii(t)}function Ai(t,e){try{var l=t.onUncaughtError;l(e.value,{componentStack:e.stack})}catch(a){setTimeout(function(){throw a})}}function or(t,e,l){try{var a=t.onCaughtError;a(l.value,{componentStack:l.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(n){setTimeout(function(){throw n})}}function Nu(t,e,l){return l=rl(l),l.tag=3,l.payload={element:null},l.callback=function(){Ai(t,e)},l}function cr(t){return t=rl(t),t.tag=3,t}function fr(t,e,l,a){var n=l.type.getDerivedStateFromError;if(typeof n=="function"){var i=a.value;t.payload=function(){return n(i)},t.callback=function(){or(e,l,a)}}var u=l.stateNode;u!==null&&typeof u.componentDidCatch=="function"&&(t.callback=function(){or(e,l,a),typeof n!="function"&&(vl===null?vl=new Set([this]):vl.add(this));var f=a.stack;this.componentDidCatch(a.value,{componentStack:f!==null?f:""})})}function cy(t,e,l,a,n){if(l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(e=l.alternate,e!==null&&ya(e,l,n,!0),l=me.current,l!==null){switch(l.tag){case 31:case 13:return Me===null?qi():l.alternate===null&&Ot===0&&(Ot=3),l.flags&=-257,l.flags|=65536,l.lanes=n,a===yi?l.flags|=16384:(e=l.updateQueue,e===null?l.updateQueue=new Set([a]):e.add(a),so(t,a,n)),!1;case 22:return l.flags|=65536,a===yi?l.flags|=16384:(e=l.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([a])},l.updateQueue=e):(l=e.retryQueue,l===null?e.retryQueue=new Set([a]):l.add(a)),so(t,a,n)),!1}throw Error(o(435,l.tag))}return so(t,a,n),qi(),!1}if(ft)return e=me.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=n,a!==tu&&(t=Error(o(422),{cause:a}),cn(_e(t,l)))):(a!==tu&&(e=Error(o(423),{cause:a}),cn(_e(e,l))),t=t.current.alternate,t.flags|=65536,n&=-n,t.lanes|=n,a=_e(a,l),n=Nu(t.stateNode,a,n),ru(t,n),Ot!==4&&(Ot=2)),!1;var i=Error(o(520),{cause:a});if(i=_e(i,l),An===null?An=[i]:An.push(i),Ot!==4&&(Ot=2),e===null)return!0;a=_e(a,l),l=e;do{switch(l.tag){case 3:return l.flags|=65536,t=n&-n,l.lanes|=t,t=Nu(l.stateNode,a,t),ru(l,t),!1;case 1:if(e=l.type,i=l.stateNode,(l.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||i!==null&&typeof i.componentDidCatch=="function"&&(vl===null||!vl.has(i))))return l.flags|=65536,n&=-n,l.lanes|=n,n=cr(n),fr(n,t,l,a),ru(l,n),!1}l=l.return}while(l!==null);return!1}var Hu=Error(o(461)),Lt=!1;function Jt(t,e,l,a){e.child=t===null?mf(e,null,l,a):Zl(e,t.child,l,a)}function rr(t,e,l,a,n){l=l.render;var i=e.ref;if("ref"in a){var u={};for(var f in a)f!=="ref"&&(u[f]=a[f])}else u=a;return Yl(e),a=gu(t,e,l,u,i,n),f=vu(),t!==null&&!Lt?(bu(t,e,n),ke(t,e,n)):(ft&&f&&Is(e),e.flags|=1,Jt(t,e,a,n),e.child)}function dr(t,e,l,a,n){if(t===null){var i=l.type;return typeof i=="function"&&!Fs(i)&&i.defaultProps===void 0&&l.compare===null?(e.tag=15,e.type=i,hr(t,e,i,a,n)):(t=ci(l.type,null,a,e,e.mode,n),t.ref=e.ref,t.return=e,e.child=t)}if(i=t.child,!Qu(t,n)){var u=i.memoizedProps;if(l=l.compare,l=l!==null?l:sn,l(u,a)&&t.ref===e.ref)return ke(t,e,n)}return e.flags|=1,t=Ge(i,a),t.ref=e.ref,t.return=e,e.child=t}function hr(t,e,l,a,n){if(t!==null){var i=t.memoizedProps;if(sn(i,a)&&t.ref===e.ref)if(Lt=!1,e.pendingProps=a=i,Qu(t,n))(t.flags&131072)!==0&&(Lt=!0);else return e.lanes=t.lanes,ke(t,e,n)}return wu(t,e,l,a,n)}function mr(t,e,l,a){var n=a.children,i=t!==null?t.memoizedState:null;if(t===null&&e.stateNode===null&&(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((e.flags&128)!==0){if(i=i!==null?i.baseLanes|l:l,t!==null){for(a=e.child=t.child,n=0;a!==null;)n=n|a.lanes|a.childLanes,a=a.sibling;a=n&~i}else a=0,e.child=null;return yr(t,e,i,l,a)}if((l&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&hi(e,i!==null?i.cachePool:null),i!==null?gf(e,i):hu(),vf(e);else return a=e.lanes=536870912,yr(t,e,i!==null?i.baseLanes|l:l,l,a)}else i!==null?(hi(e,i.cachePool),gf(e,i),ml(),e.memoizedState=null):(t!==null&&hi(e,null),hu(),ml());return Jt(t,e,n,l),e.child}function xn(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function yr(t,e,l,a,n){var i=uu();return i=i===null?null:{parent:Ht._currentValue,pool:i},e.memoizedState={baseLanes:l,cachePool:i},t!==null&&hi(e,null),hu(),vf(e),t!==null&&ya(t,e,a,!0),e.childLanes=n,null}function Di(t,e){return e=Oi({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function pr(t,e,l){return Zl(e,t.child,null,l),t=Di(e,e.pendingProps),t.flags|=2,ye(e),e.memoizedState=null,t}function fy(t,e,l){var a=e.pendingProps,n=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(ft){if(a.mode==="hidden")return t=Di(e,a),e.lanes=536870912,xn(null,t);if(yu(e),(t=Mt)?(t=Ad(t,Ee),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:sl!==null?{id:Be,overflow:Ne}:null,retryLane:536870912,hydrationErrors:null},l=Ic(t),l.return=e,e.child=l,Kt=e,Mt=null)):t=null,t===null)throw ol(e);return e.lanes=536870912,null}return Di(e,a)}var i=t.memoizedState;if(i!==null){var u=i.dehydrated;if(yu(e),n)if(e.flags&256)e.flags&=-257,e=pr(t,e,l);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(o(558));else if(Lt||ya(t,e,l,!1),n=(l&t.childLanes)!==0,Lt||n){if(a=Et,a!==null&&(u=ic(a,l),u!==0&&u!==i.retryLane))throw i.retryLane=u,Nl(t,u),se(a,t,u),Hu;qi(),e=pr(t,e,l)}else t=i.treeContext,Mt=je(u.nextSibling),Kt=e,ft=!0,ul=null,Ee=!1,t!==null&&ef(e,t),e=Di(e,a),e.flags|=4096;return e}return t=Ge(t.child,{mode:a.mode,children:a.children}),t.ref=e.ref,e.child=t,t.return=e,t}function Ci(t,e){var l=e.ref;if(l===null)t!==null&&t.ref!==null&&(e.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(o(284));(t===null||t.ref!==l)&&(e.flags|=4194816)}}function wu(t,e,l,a,n){return Yl(e),l=gu(t,e,l,a,void 0,n),a=vu(),t!==null&&!Lt?(bu(t,e,n),ke(t,e,n)):(ft&&a&&Is(e),e.flags|=1,Jt(t,e,l,n),e.child)}function gr(t,e,l,a,n,i){return Yl(e),e.updateQueue=null,l=Sf(e,a,l,n),bf(t),a=vu(),t!==null&&!Lt?(bu(t,e,i),ke(t,e,i)):(ft&&a&&Is(e),e.flags|=1,Jt(t,e,l,i),e.child)}function vr(t,e,l,a,n){if(Yl(e),e.stateNode===null){var i=ra,u=l.contextType;typeof u=="object"&&u!==null&&(i=kt(u)),i=new l(a,i),e.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=Bu,e.stateNode=i,i._reactInternals=e,i=e.stateNode,i.props=a,i.state=e.memoizedState,i.refs={},cu(e),u=l.contextType,i.context=typeof u=="object"&&u!==null?kt(u):ra,i.state=e.memoizedState,u=l.getDerivedStateFromProps,typeof u=="function"&&(Uu(e,l,u,a),i.state=e.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(u=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),u!==i.state&&Bu.enqueueReplaceState(i,i.state,null),pn(e,a,i,n),yn(),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308),a=!0}else if(t===null){i=e.stateNode;var f=e.memoizedProps,y=Vl(l,f);i.props=y;var S=i.context,j=l.contextType;u=ra,typeof j=="object"&&j!==null&&(u=kt(j));var C=l.getDerivedStateFromProps;j=typeof C=="function"||typeof i.getSnapshotBeforeUpdate=="function",f=e.pendingProps!==f,j||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(f||S!==u)&&nr(e,i,a,u),fl=!1;var x=e.memoizedState;i.state=x,pn(e,a,i,n),yn(),S=e.memoizedState,f||x!==S||fl?(typeof C=="function"&&(Uu(e,l,C,a),S=e.memoizedState),(y=fl||ar(e,l,y,a,x,S,u))?(j||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(e.flags|=4194308)):(typeof i.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=a,e.memoizedState=S),i.props=a,i.state=S,i.context=u,a=y):(typeof i.componentDidMount=="function"&&(e.flags|=4194308),a=!1)}else{i=e.stateNode,fu(t,e),u=e.memoizedProps,j=Vl(l,u),i.props=j,C=e.pendingProps,x=i.context,S=l.contextType,y=ra,typeof S=="object"&&S!==null&&(y=kt(S)),f=l.getDerivedStateFromProps,(S=typeof f=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(u!==C||x!==y)&&nr(e,i,a,y),fl=!1,x=e.memoizedState,i.state=x,pn(e,a,i,n),yn();var T=e.memoizedState;u!==C||x!==T||fl||t!==null&&t.dependencies!==null&&ri(t.dependencies)?(typeof f=="function"&&(Uu(e,l,f,a),T=e.memoizedState),(j=fl||ar(e,l,j,a,x,T,y)||t!==null&&t.dependencies!==null&&ri(t.dependencies))?(S||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(a,T,y),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(a,T,y)),typeof i.componentDidUpdate=="function"&&(e.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof i.componentDidUpdate!="function"||u===t.memoizedProps&&x===t.memoizedState||(e.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||u===t.memoizedProps&&x===t.memoizedState||(e.flags|=1024),e.memoizedProps=a,e.memoizedState=T),i.props=a,i.state=T,i.context=y,a=j):(typeof i.componentDidUpdate!="function"||u===t.memoizedProps&&x===t.memoizedState||(e.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||u===t.memoizedProps&&x===t.memoizedState||(e.flags|=1024),a=!1)}return i=a,Ci(t,e),a=(e.flags&128)!==0,i||a?(i=e.stateNode,l=a&&typeof l.getDerivedStateFromError!="function"?null:i.render(),e.flags|=1,t!==null&&a?(e.child=Zl(e,t.child,null,n),e.child=Zl(e,null,l,n)):Jt(t,e,l,n),e.memoizedState=i.state,t=e.child):t=ke(t,e,n),t}function br(t,e,l,a){return wl(),e.flags|=256,Jt(t,e,l,a),e.child}var Lu={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Yu(t){return{baseLanes:t,cachePool:of()}}function qu(t,e,l){return t=t!==null?t.childLanes&~l:0,e&&(t|=ge),t}function Sr(t,e,l){var a=e.pendingProps,n=!1,i=(e.flags&128)!==0,u;if((u=i)||(u=t!==null&&t.memoizedState===null?!1:(Rt.current&2)!==0),u&&(n=!0,e.flags&=-129),u=(e.flags&32)!==0,e.flags&=-33,t===null){if(ft){if(n?hl(e):ml(),(t=Mt)?(t=Ad(t,Ee),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:sl!==null?{id:Be,overflow:Ne}:null,retryLane:536870912,hydrationErrors:null},l=Ic(t),l.return=e,e.child=l,Kt=e,Mt=null)):t=null,t===null)throw ol(e);return zo(t)?e.lanes=32:e.lanes=536870912,null}var f=a.children;return a=a.fallback,n?(ml(),n=e.mode,f=Oi({mode:"hidden",children:f},n),a=Hl(a,n,l,null),f.return=e,a.return=e,f.sibling=a,e.child=f,a=e.child,a.memoizedState=Yu(l),a.childLanes=qu(t,u,l),e.memoizedState=Lu,xn(null,a)):(hl(e),Gu(e,f))}var y=t.memoizedState;if(y!==null&&(f=y.dehydrated,f!==null)){if(i)e.flags&256?(hl(e),e.flags&=-257,e=Xu(t,e,l)):e.memoizedState!==null?(ml(),e.child=t.child,e.flags|=128,e=null):(ml(),f=a.fallback,n=e.mode,a=Oi({mode:"visible",children:a.children},n),f=Hl(f,n,l,null),f.flags|=2,a.return=e,f.return=e,a.sibling=f,e.child=a,Zl(e,t.child,null,l),a=e.child,a.memoizedState=Yu(l),a.childLanes=qu(t,u,l),e.memoizedState=Lu,e=xn(null,a));else if(hl(e),zo(f)){if(u=f.nextSibling&&f.nextSibling.dataset,u)var S=u.dgst;u=S,a=Error(o(419)),a.stack="",a.digest=u,cn({value:a,source:null,stack:null}),e=Xu(t,e,l)}else if(Lt||ya(t,e,l,!1),u=(l&t.childLanes)!==0,Lt||u){if(u=Et,u!==null&&(a=ic(u,l),a!==0&&a!==y.retryLane))throw y.retryLane=a,Nl(t,a),se(u,t,a),Hu;_o(f)||qi(),e=Xu(t,e,l)}else _o(f)?(e.flags|=192,e.child=t.child,e=null):(t=y.treeContext,Mt=je(f.nextSibling),Kt=e,ft=!0,ul=null,Ee=!1,t!==null&&ef(e,t),e=Gu(e,a.children),e.flags|=4096);return e}return n?(ml(),f=a.fallback,n=e.mode,y=t.child,S=y.sibling,a=Ge(y,{mode:"hidden",children:a.children}),a.subtreeFlags=y.subtreeFlags&65011712,S!==null?f=Ge(S,f):(f=Hl(f,n,l,null),f.flags|=2),f.return=e,a.return=e,a.sibling=f,e.child=a,xn(null,a),a=e.child,f=t.child.memoizedState,f===null?f=Yu(l):(n=f.cachePool,n!==null?(y=Ht._currentValue,n=n.parent!==y?{parent:y,pool:y}:n):n=of(),f={baseLanes:f.baseLanes|l,cachePool:n}),a.memoizedState=f,a.childLanes=qu(t,u,l),e.memoizedState=Lu,xn(t.child,a)):(hl(e),l=t.child,t=l.sibling,l=Ge(l,{mode:"visible",children:a.children}),l.return=e,l.sibling=null,t!==null&&(u=e.deletions,u===null?(e.deletions=[t],e.flags|=16):u.push(t)),e.child=l,e.memoizedState=null,l)}function Gu(t,e){return e=Oi({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function Oi(t,e){return t=he(22,t,null,e),t.lanes=0,t}function Xu(t,e,l){return Zl(e,t.child,null,l),t=Gu(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function xr(t,e,l){t.lanes|=e;var a=t.alternate;a!==null&&(a.lanes|=e),au(t.return,e,l)}function Zu(t,e,l,a,n,i){var u=t.memoizedState;u===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:a,tail:l,tailMode:n,treeForkCount:i}:(u.isBackwards=e,u.rendering=null,u.renderingStartTime=0,u.last=a,u.tail=l,u.tailMode=n,u.treeForkCount=i)}function _r(t,e,l){var a=e.pendingProps,n=a.revealOrder,i=a.tail;a=a.children;var u=Rt.current,f=(u&2)!==0;if(f?(u=u&1|2,e.flags|=128):u&=1,dt(Rt,u),Jt(t,e,a,l),a=ft?on:0,!f&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&xr(t,l,e);else if(t.tag===19)xr(t,l,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break t;for(;t.sibling===null;){if(t.return===null||t.return===e)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(n){case"forwards":for(l=e.child,n=null;l!==null;)t=l.alternate,t!==null&&bi(t)===null&&(n=l),l=l.sibling;l=n,l===null?(n=e.child,e.child=null):(n=l.sibling,l.sibling=null),Zu(e,!1,n,l,i,a);break;case"backwards":case"unstable_legacy-backwards":for(l=null,n=e.child,e.child=null;n!==null;){if(t=n.alternate,t!==null&&bi(t)===null){e.child=n;break}t=n.sibling,n.sibling=l,l=n,n=t}Zu(e,!0,l,null,i,a);break;case"together":Zu(e,!1,null,null,void 0,a);break;default:e.memoizedState=null}return e.child}function ke(t,e,l){if(t!==null&&(e.dependencies=t.dependencies),gl|=e.lanes,(l&e.childLanes)===0)if(t!==null){if(ya(t,e,l,!1),(l&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(o(153));if(e.child!==null){for(t=e.child,l=Ge(t,t.pendingProps),e.child=l,l.return=e;t.sibling!==null;)t=t.sibling,l=l.sibling=Ge(t,t.pendingProps),l.return=e;l.sibling=null}return e.child}function Qu(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&ri(t)))}function ry(t,e,l){switch(e.tag){case 3:Al(e,e.stateNode.containerInfo),cl(e,Ht,t.memoizedState.cache),wl();break;case 27:case 5:Tt(e);break;case 4:Al(e,e.stateNode.containerInfo);break;case 10:cl(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,yu(e),null;break;case 13:var a=e.memoizedState;if(a!==null)return a.dehydrated!==null?(hl(e),e.flags|=128,null):(l&e.child.childLanes)!==0?Sr(t,e,l):(hl(e),t=ke(t,e,l),t!==null?t.sibling:null);hl(e);break;case 19:var n=(t.flags&128)!==0;if(a=(l&e.childLanes)!==0,a||(ya(t,e,l,!1),a=(l&e.childLanes)!==0),n){if(a)return _r(t,e,l);e.flags|=128}if(n=e.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),dt(Rt,Rt.current),a)break;return null;case 22:return e.lanes=0,mr(t,e,l,e.pendingProps);case 24:cl(e,Ht,t.memoizedState.cache)}return ke(t,e,l)}function zr(t,e,l){if(t!==null)if(t.memoizedProps!==e.pendingProps)Lt=!0;else{if(!Qu(t,l)&&(e.flags&128)===0)return Lt=!1,ry(t,e,l);Lt=(t.flags&131072)!==0}else Lt=!1,ft&&(e.flags&1048576)!==0&&tf(e,on,e.index);switch(e.lanes=0,e.tag){case 16:t:{var a=e.pendingProps;if(t=Gl(e.elementType),e.type=t,typeof t=="function")Fs(t)?(a=Vl(t,a),e.tag=1,e=vr(null,e,t,a,l)):(e.tag=0,e=wu(null,e,t,a,l));else{if(t!=null){var n=t.$$typeof;if(n===V){e.tag=11,e=rr(null,e,t,a,l);break t}else if(n===w){e.tag=14,e=dr(null,e,t,a,l);break t}}throw e=pt(t)||t,Error(o(306,e,""))}}return e;case 0:return wu(t,e,e.type,e.pendingProps,l);case 1:return a=e.type,n=Vl(a,e.pendingProps),vr(t,e,a,n,l);case 3:t:{if(Al(e,e.stateNode.containerInfo),t===null)throw Error(o(387));a=e.pendingProps;var i=e.memoizedState;n=i.element,fu(t,e),pn(e,a,null,l);var u=e.memoizedState;if(a=u.cache,cl(e,Ht,a),a!==i.cache&&nu(e,[Ht],l,!0),yn(),a=u.element,i.isDehydrated)if(i={element:a,isDehydrated:!1,cache:u.cache},e.updateQueue.baseState=i,e.memoizedState=i,e.flags&256){e=br(t,e,a,l);break t}else if(a!==n){n=_e(Error(o(424)),e),cn(n),e=br(t,e,a,l);break t}else{switch(t=e.stateNode.containerInfo,t.nodeType){case 9:t=t.body;break;default:t=t.nodeName==="HTML"?t.ownerDocument.body:t}for(Mt=je(t.firstChild),Kt=e,ft=!0,ul=null,Ee=!0,l=mf(e,null,a,l),e.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(wl(),a===n){e=ke(t,e,l);break t}Jt(t,e,a,l)}e=e.child}return e;case 26:return Ci(t,e),t===null?(l=Bd(e.type,null,e.pendingProps,null))?e.memoizedState=l:ft||(l=e.type,t=e.pendingProps,a=ki(Ue.current).createElement(l),a[Vt]=e,a[te]=t,Ft(a,l,t),Zt(a),e.stateNode=a):e.memoizedState=Bd(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return Tt(e),t===null&&ft&&(a=e.stateNode=Od(e.type,e.pendingProps,Ue.current),Kt=e,Ee=!0,n=Mt,_l(e.type)?(To=n,Mt=je(a.firstChild)):Mt=n),Jt(t,e,e.pendingProps.children,l),Ci(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&ft&&((n=a=Mt)&&(a=Gy(a,e.type,e.pendingProps,Ee),a!==null?(e.stateNode=a,Kt=e,Mt=je(a.firstChild),Ee=!1,n=!0):n=!1),n||ol(e)),Tt(e),n=e.type,i=e.pendingProps,u=t!==null?t.memoizedProps:null,a=i.children,bo(n,i)?a=null:u!==null&&bo(n,u)&&(e.flags|=32),e.memoizedState!==null&&(n=gu(t,e,ly,null,null,l),Hn._currentValue=n),Ci(t,e),Jt(t,e,a,l),e.child;case 6:return t===null&&ft&&((t=l=Mt)&&(l=Xy(l,e.pendingProps,Ee),l!==null?(e.stateNode=l,Kt=e,Mt=null,t=!0):t=!1),t||ol(e)),null;case 13:return Sr(t,e,l);case 4:return Al(e,e.stateNode.containerInfo),a=e.pendingProps,t===null?e.child=Zl(e,null,a,l):Jt(t,e,a,l),e.child;case 11:return rr(t,e,e.type,e.pendingProps,l);case 7:return Jt(t,e,e.pendingProps,l),e.child;case 8:return Jt(t,e,e.pendingProps.children,l),e.child;case 12:return Jt(t,e,e.pendingProps.children,l),e.child;case 10:return a=e.pendingProps,cl(e,e.type,a.value),Jt(t,e,a.children,l),e.child;case 9:return n=e.type._context,a=e.pendingProps.children,Yl(e),n=kt(n),a=a(n),e.flags|=1,Jt(t,e,a,l),e.child;case 14:return dr(t,e,e.type,e.pendingProps,l);case 15:return hr(t,e,e.type,e.pendingProps,l);case 19:return _r(t,e,l);case 31:return fy(t,e,l);case 22:return mr(t,e,l,e.pendingProps);case 24:return Yl(e),a=kt(Ht),t===null?(n=uu(),n===null&&(n=Et,i=iu(),n.pooledCache=i,i.refCount++,i!==null&&(n.pooledCacheLanes|=l),n=i),e.memoizedState={parent:a,cache:n},cu(e),cl(e,Ht,n)):((t.lanes&l)!==0&&(fu(t,e),pn(e,null,null,l),yn()),n=t.memoizedState,i=e.memoizedState,n.parent!==a?(n={parent:a,cache:a},e.memoizedState=n,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=n),cl(e,Ht,a)):(a=i.cache,cl(e,Ht,a),a!==n.cache&&nu(e,[Ht],l,!0))),Jt(t,e,e.pendingProps.children,l),e.child;case 29:throw e.pendingProps}throw Error(o(156,e.tag))}function Je(t){t.flags|=4}function Vu(t,e,l,a,n){if((e=(t.mode&32)!==0)&&(e=!1),e){if(t.flags|=16777216,(n&335544128)===n)if(t.stateNode.complete)t.flags|=8192;else if(Wr())t.flags|=8192;else throw Xl=yi,ou}else t.flags&=-16777217}function Tr(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!Yd(e))if(Wr())t.flags|=8192;else throw Xl=yi,ou}function Ri(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?lc():536870912,t.lanes|=e,ja|=e)}function _n(t,e){if(!ft)switch(t.tailMode){case"hidden":e=t.tail;for(var l=null;e!==null;)e.alternate!==null&&(l=e),e=e.sibling;l===null?t.tail=null:l.sibling=null;break;case"collapsed":l=t.tail;for(var a=null;l!==null;)l.alternate!==null&&(a=l),l=l.sibling;a===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:a.sibling=null}}function jt(t){var e=t.alternate!==null&&t.alternate.child===t.child,l=0,a=0;if(e)for(var n=t.child;n!==null;)l|=n.lanes|n.childLanes,a|=n.subtreeFlags&65011712,a|=n.flags&65011712,n.return=t,n=n.sibling;else for(n=t.child;n!==null;)l|=n.lanes|n.childLanes,a|=n.subtreeFlags,a|=n.flags,n.return=t,n=n.sibling;return t.subtreeFlags|=a,t.childLanes=l,e}function dy(t,e,l){var a=e.pendingProps;switch(Ps(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return jt(e),null;case 1:return jt(e),null;case 3:return l=e.stateNode,a=null,t!==null&&(a=t.memoizedState.cache),e.memoizedState.cache!==a&&(e.flags|=2048),Qe(Ht),ll(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(t===null||t.child===null)&&(ma(e)?Je(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,eu())),jt(e),null;case 26:var n=e.type,i=e.memoizedState;return t===null?(Je(e),i!==null?(jt(e),Tr(e,i)):(jt(e),Vu(e,n,null,a,l))):i?i!==t.memoizedState?(Je(e),jt(e),Tr(e,i)):(jt(e),e.flags&=-16777217):(t=t.memoizedProps,t!==a&&Je(e),jt(e),Vu(e,n,t,a,l)),null;case 27:if(Dt(e),l=Ue.current,n=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==a&&Je(e);else{if(!a){if(e.stateNode===null)throw Error(o(166));return jt(e),null}t=Nt.current,ma(e)?lf(e):(t=Od(n,a,l),e.stateNode=t,Je(e))}return jt(e),null;case 5:if(Dt(e),n=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==a&&Je(e);else{if(!a){if(e.stateNode===null)throw Error(o(166));return jt(e),null}if(i=Nt.current,ma(e))lf(e);else{var u=ki(Ue.current);switch(i){case 1:i=u.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:i=u.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":i=u.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":i=u.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":i=u.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild);break;case"select":i=typeof a.is=="string"?u.createElement("select",{is:a.is}):u.createElement("select"),a.multiple?i.multiple=!0:a.size&&(i.size=a.size);break;default:i=typeof a.is=="string"?u.createElement(n,{is:a.is}):u.createElement(n)}}i[Vt]=e,i[te]=a;t:for(u=e.child;u!==null;){if(u.tag===5||u.tag===6)i.appendChild(u.stateNode);else if(u.tag!==4&&u.tag!==27&&u.child!==null){u.child.return=u,u=u.child;continue}if(u===e)break t;for(;u.sibling===null;){if(u.return===null||u.return===e)break t;u=u.return}u.sibling.return=u.return,u=u.sibling}e.stateNode=i;t:switch(Ft(i,n,a),n){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break t;case"img":a=!0;break t;default:a=!1}a&&Je(e)}}return jt(e),Vu(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,l),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==a&&Je(e);else{if(typeof a!="string"&&e.stateNode===null)throw Error(o(166));if(t=Ue.current,ma(e)){if(t=e.stateNode,l=e.memoizedProps,a=null,n=Kt,n!==null)switch(n.tag){case 27:case 5:a=n.memoizedProps}t[Vt]=e,t=!!(t.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||Sd(t.nodeValue,l)),t||ol(e,!0)}else t=ki(t).createTextNode(a),t[Vt]=e,e.stateNode=t}return jt(e),null;case 31:if(l=e.memoizedState,t===null||t.memoizedState!==null){if(a=ma(e),l!==null){if(t===null){if(!a)throw Error(o(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(557));t[Vt]=e}else wl(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;jt(e),t=!1}else l=eu(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=l),t=!0;if(!t)return e.flags&256?(ye(e),e):(ye(e),null);if((e.flags&128)!==0)throw Error(o(558))}return jt(e),null;case 13:if(a=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(n=ma(e),a!==null&&a.dehydrated!==null){if(t===null){if(!n)throw Error(o(318));if(n=e.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(o(317));n[Vt]=e}else wl(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;jt(e),n=!1}else n=eu(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=n),n=!0;if(!n)return e.flags&256?(ye(e),e):(ye(e),null)}return ye(e),(e.flags&128)!==0?(e.lanes=l,e):(l=a!==null,t=t!==null&&t.memoizedState!==null,l&&(a=e.child,n=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(n=a.alternate.memoizedState.cachePool.pool),i=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(i=a.memoizedState.cachePool.pool),i!==n&&(a.flags|=2048)),l!==t&&l&&(e.child.flags|=8192),Ri(e,e.updateQueue),jt(e),null);case 4:return ll(),t===null&&mo(e.stateNode.containerInfo),jt(e),null;case 10:return Qe(e.type),jt(e),null;case 19:if(zt(Rt),a=e.memoizedState,a===null)return jt(e),null;if(n=(e.flags&128)!==0,i=a.rendering,i===null)if(n)_n(a,!1);else{if(Ot!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(i=bi(t),i!==null){for(e.flags|=128,_n(a,!1),t=i.updateQueue,e.updateQueue=t,Ri(e,t),e.subtreeFlags=0,t=l,l=e.child;l!==null;)$c(l,t),l=l.sibling;return dt(Rt,Rt.current&1|2),ft&&Xe(e,a.treeForkCount),e.child}t=t.sibling}a.tail!==null&&ce()>wi&&(e.flags|=128,n=!0,_n(a,!1),e.lanes=4194304)}else{if(!n)if(t=bi(i),t!==null){if(e.flags|=128,n=!0,t=t.updateQueue,e.updateQueue=t,Ri(e,t),_n(a,!0),a.tail===null&&a.tailMode==="hidden"&&!i.alternate&&!ft)return jt(e),null}else 2*ce()-a.renderingStartTime>wi&&l!==536870912&&(e.flags|=128,n=!0,_n(a,!1),e.lanes=4194304);a.isBackwards?(i.sibling=e.child,e.child=i):(t=a.last,t!==null?t.sibling=i:e.child=i,a.last=i)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=ce(),t.sibling=null,l=Rt.current,dt(Rt,n?l&1|2:l&1),ft&&Xe(e,a.treeForkCount),t):(jt(e),null);case 22:case 23:return ye(e),mu(),a=e.memoizedState!==null,t!==null?t.memoizedState!==null!==a&&(e.flags|=8192):a&&(e.flags|=8192),a?(l&536870912)!==0&&(e.flags&128)===0&&(jt(e),e.subtreeFlags&6&&(e.flags|=8192)):jt(e),l=e.updateQueue,l!==null&&Ri(e,l.retryQueue),l=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),a=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),a!==l&&(e.flags|=2048),t!==null&&zt(ql),null;case 24:return l=null,t!==null&&(l=t.memoizedState.cache),e.memoizedState.cache!==l&&(e.flags|=2048),Qe(Ht),jt(e),null;case 25:return null;case 30:return null}throw Error(o(156,e.tag))}function hy(t,e){switch(Ps(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return Qe(Ht),ll(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return Dt(e),null;case 31:if(e.memoizedState!==null){if(ye(e),e.alternate===null)throw Error(o(340));wl()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(ye(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(o(340));wl()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return zt(Rt),null;case 4:return ll(),null;case 10:return Qe(e.type),null;case 22:case 23:return ye(e),mu(),t!==null&&zt(ql),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return Qe(Ht),null;case 25:return null;default:return null}}function Er(t,e){switch(Ps(e),e.tag){case 3:Qe(Ht),ll();break;case 26:case 27:case 5:Dt(e);break;case 4:ll();break;case 31:e.memoizedState!==null&&ye(e);break;case 13:ye(e);break;case 19:zt(Rt);break;case 10:Qe(e.type);break;case 22:case 23:ye(e),mu(),t!==null&&zt(ql);break;case 24:Qe(Ht)}}function zn(t,e){try{var l=e.updateQueue,a=l!==null?l.lastEffect:null;if(a!==null){var n=a.next;l=n;do{if((l.tag&t)===t){a=void 0;var i=l.create,u=l.inst;a=i(),u.destroy=a}l=l.next}while(l!==n)}}catch(f){vt(e,e.return,f)}}function yl(t,e,l){try{var a=e.updateQueue,n=a!==null?a.lastEffect:null;if(n!==null){var i=n.next;a=i;do{if((a.tag&t)===t){var u=a.inst,f=u.destroy;if(f!==void 0){u.destroy=void 0,n=e;var y=l,S=f;try{S()}catch(j){vt(n,y,j)}}}a=a.next}while(a!==i)}}catch(j){vt(e,e.return,j)}}function Mr(t){var e=t.updateQueue;if(e!==null){var l=t.stateNode;try{pf(e,l)}catch(a){vt(t,t.return,a)}}}function jr(t,e,l){l.props=Vl(t.type,t.memoizedProps),l.state=t.memoizedState;try{l.componentWillUnmount()}catch(a){vt(t,e,a)}}function Tn(t,e){try{var l=t.ref;if(l!==null){switch(t.tag){case 26:case 27:case 5:var a=t.stateNode;break;case 30:a=t.stateNode;break;default:a=t.stateNode}typeof l=="function"?t.refCleanup=l(a):l.current=a}}catch(n){vt(t,e,n)}}function He(t,e){var l=t.ref,a=t.refCleanup;if(l!==null)if(typeof a=="function")try{a()}catch(n){vt(t,e,n)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(n){vt(t,e,n)}else l.current=null}function Ar(t){var e=t.type,l=t.memoizedProps,a=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":l.autoFocus&&a.focus();break t;case"img":l.src?a.src=l.src:l.srcSet&&(a.srcset=l.srcSet)}}catch(n){vt(t,t.return,n)}}function Ku(t,e,l){try{var a=t.stateNode;Ny(a,t.type,l,e),a[te]=e}catch(n){vt(t,t.return,n)}}function Dr(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&_l(t.type)||t.tag===4}function ku(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||Dr(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&_l(t.type)||t.flags&2||t.child===null||t.tag===4)continue t;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function Ju(t,e,l){var a=t.tag;if(a===5||a===6)t=t.stateNode,e?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(t,e):(e=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,e.appendChild(t),l=l._reactRootContainer,l!=null||e.onclick!==null||(e.onclick=Ye));else if(a!==4&&(a===27&&_l(t.type)&&(l=t.stateNode,e=null),t=t.child,t!==null))for(Ju(t,e,l),t=t.sibling;t!==null;)Ju(t,e,l),t=t.sibling}function Ui(t,e,l){var a=t.tag;if(a===5||a===6)t=t.stateNode,e?l.insertBefore(t,e):l.appendChild(t);else if(a!==4&&(a===27&&_l(t.type)&&(l=t.stateNode),t=t.child,t!==null))for(Ui(t,e,l),t=t.sibling;t!==null;)Ui(t,e,l),t=t.sibling}function Cr(t){var e=t.stateNode,l=t.memoizedProps;try{for(var a=t.type,n=e.attributes;n.length;)e.removeAttributeNode(n[0]);Ft(e,a,l),e[Vt]=t,e[te]=l}catch(i){vt(t,t.return,i)}}var Fe=!1,Yt=!1,Fu=!1,Or=typeof WeakSet=="function"?WeakSet:Set,Qt=null;function my(t,e){if(t=t.containerInfo,go=ts,t=Xc(t),Xs(t)){if("selectionStart"in t)var l={start:t.selectionStart,end:t.selectionEnd};else t:{l=(l=t.ownerDocument)&&l.defaultView||window;var a=l.getSelection&&l.getSelection();if(a&&a.rangeCount!==0){l=a.anchorNode;var n=a.anchorOffset,i=a.focusNode;a=a.focusOffset;try{l.nodeType,i.nodeType}catch{l=null;break t}var u=0,f=-1,y=-1,S=0,j=0,C=t,x=null;e:for(;;){for(var T;C!==l||n!==0&&C.nodeType!==3||(f=u+n),C!==i||a!==0&&C.nodeType!==3||(y=u+a),C.nodeType===3&&(u+=C.nodeValue.length),(T=C.firstChild)!==null;)x=C,C=T;for(;;){if(C===t)break e;if(x===l&&++S===n&&(f=u),x===i&&++j===a&&(y=u),(T=C.nextSibling)!==null)break;C=x,x=C.parentNode}C=T}l=f===-1||y===-1?null:{start:f,end:y}}else l=null}l=l||{start:0,end:0}}else l=null;for(vo={focusedElem:t,selectionRange:l},ts=!1,Qt=e;Qt!==null;)if(e=Qt,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,Qt=t;else for(;Qt!==null;){switch(e=Qt,i=e.alternate,t=e.flags,e.tag){case 0:if((t&4)!==0&&(t=e.updateQueue,t=t!==null?t.events:null,t!==null))for(l=0;l<t.length;l++)n=t[l],n.ref.impl=n.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&i!==null){t=void 0,l=e,n=i.memoizedProps,i=i.memoizedState,a=l.stateNode;try{var Z=Vl(l.type,n);t=a.getSnapshotBeforeUpdate(Z,i),a.__reactInternalSnapshotBeforeUpdate=t}catch(tt){vt(l,l.return,tt)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,l=t.nodeType,l===9)xo(t);else if(l===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":xo(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(o(163))}if(t=e.sibling,t!==null){t.return=e.return,Qt=t;break}Qt=e.return}}function Rr(t,e,l){var a=l.flags;switch(l.tag){case 0:case 11:case 15:$e(t,l),a&4&&zn(5,l);break;case 1:if($e(t,l),a&4)if(t=l.stateNode,e===null)try{t.componentDidMount()}catch(u){vt(l,l.return,u)}else{var n=Vl(l.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(n,e,t.__reactInternalSnapshotBeforeUpdate)}catch(u){vt(l,l.return,u)}}a&64&&Mr(l),a&512&&Tn(l,l.return);break;case 3:if($e(t,l),a&64&&(t=l.updateQueue,t!==null)){if(e=null,l.child!==null)switch(l.child.tag){case 27:case 5:e=l.child.stateNode;break;case 1:e=l.child.stateNode}try{pf(t,e)}catch(u){vt(l,l.return,u)}}break;case 27:e===null&&a&4&&Cr(l);case 26:case 5:$e(t,l),e===null&&a&4&&Ar(l),a&512&&Tn(l,l.return);break;case 12:$e(t,l);break;case 31:$e(t,l),a&4&&Nr(t,l);break;case 13:$e(t,l),a&4&&Hr(t,l),a&64&&(t=l.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(l=zy.bind(null,l),Zy(t,l))));break;case 22:if(a=l.memoizedState!==null||Fe,!a){e=e!==null&&e.memoizedState!==null||Yt,n=Fe;var i=Yt;Fe=a,(Yt=e)&&!i?Ie(t,l,(l.subtreeFlags&8772)!==0):$e(t,l),Fe=n,Yt=i}break;case 30:break;default:$e(t,l)}}function Ur(t){var e=t.alternate;e!==null&&(t.alternate=null,Ur(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&Es(e)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var At=null,le=!1;function We(t,e,l){for(l=l.child;l!==null;)Br(t,e,l),l=l.sibling}function Br(t,e,l){if(fe&&typeof fe.onCommitFiberUnmount=="function")try{fe.onCommitFiberUnmount(ka,l)}catch{}switch(l.tag){case 26:Yt||He(l,e),We(t,e,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:Yt||He(l,e);var a=At,n=le;_l(l.type)&&(At=l.stateNode,le=!1),We(t,e,l),Un(l.stateNode),At=a,le=n;break;case 5:Yt||He(l,e);case 6:if(a=At,n=le,At=null,We(t,e,l),At=a,le=n,At!==null)if(le)try{(At.nodeType===9?At.body:At.nodeName==="HTML"?At.ownerDocument.body:At).removeChild(l.stateNode)}catch(i){vt(l,e,i)}else try{At.removeChild(l.stateNode)}catch(i){vt(l,e,i)}break;case 18:At!==null&&(le?(t=At,Md(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,l.stateNode),Na(t)):Md(At,l.stateNode));break;case 4:a=At,n=le,At=l.stateNode.containerInfo,le=!0,We(t,e,l),At=a,le=n;break;case 0:case 11:case 14:case 15:yl(2,l,e),Yt||yl(4,l,e),We(t,e,l);break;case 1:Yt||(He(l,e),a=l.stateNode,typeof a.componentWillUnmount=="function"&&jr(l,e,a)),We(t,e,l);break;case 21:We(t,e,l);break;case 22:Yt=(a=Yt)||l.memoizedState!==null,We(t,e,l),Yt=a;break;default:We(t,e,l)}}function Nr(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{Na(t)}catch(l){vt(e,e.return,l)}}}function Hr(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{Na(t)}catch(l){vt(e,e.return,l)}}function yy(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new Or),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new Or),e;default:throw Error(o(435,t.tag))}}function Bi(t,e){var l=yy(t);e.forEach(function(a){if(!l.has(a)){l.add(a);var n=Ty.bind(null,t,a);a.then(n,n)}})}function ae(t,e){var l=e.deletions;if(l!==null)for(var a=0;a<l.length;a++){var n=l[a],i=t,u=e,f=u;t:for(;f!==null;){switch(f.tag){case 27:if(_l(f.type)){At=f.stateNode,le=!1;break t}break;case 5:At=f.stateNode,le=!1;break t;case 3:case 4:At=f.stateNode.containerInfo,le=!0;break t}f=f.return}if(At===null)throw Error(o(160));Br(i,u,n),At=null,le=!1,i=n.alternate,i!==null&&(i.return=null),n.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)wr(e,t),e=e.sibling}var Ce=null;function wr(t,e){var l=t.alternate,a=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:ae(e,t),ne(t),a&4&&(yl(3,t,t.return),zn(3,t),yl(5,t,t.return));break;case 1:ae(e,t),ne(t),a&512&&(Yt||l===null||He(l,l.return)),a&64&&Fe&&(t=t.updateQueue,t!==null&&(a=t.callbacks,a!==null&&(l=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=l===null?a:l.concat(a))));break;case 26:var n=Ce;if(ae(e,t),ne(t),a&512&&(Yt||l===null||He(l,l.return)),a&4){var i=l!==null?l.memoizedState:null;if(a=t.memoizedState,l===null)if(a===null)if(t.stateNode===null){t:{a=t.type,l=t.memoizedProps,n=n.ownerDocument||n;e:switch(a){case"title":i=n.getElementsByTagName("title")[0],(!i||i[Wa]||i[Vt]||i.namespaceURI==="http://www.w3.org/2000/svg"||i.hasAttribute("itemprop"))&&(i=n.createElement(a),n.head.insertBefore(i,n.querySelector("head > title"))),Ft(i,a,l),i[Vt]=t,Zt(i),a=i;break t;case"link":var u=wd("link","href",n).get(a+(l.href||""));if(u){for(var f=0;f<u.length;f++)if(i=u[f],i.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&i.getAttribute("rel")===(l.rel==null?null:l.rel)&&i.getAttribute("title")===(l.title==null?null:l.title)&&i.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){u.splice(f,1);break e}}i=n.createElement(a),Ft(i,a,l),n.head.appendChild(i);break;case"meta":if(u=wd("meta","content",n).get(a+(l.content||""))){for(f=0;f<u.length;f++)if(i=u[f],i.getAttribute("content")===(l.content==null?null:""+l.content)&&i.getAttribute("name")===(l.name==null?null:l.name)&&i.getAttribute("property")===(l.property==null?null:l.property)&&i.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&i.getAttribute("charset")===(l.charSet==null?null:l.charSet)){u.splice(f,1);break e}}i=n.createElement(a),Ft(i,a,l),n.head.appendChild(i);break;default:throw Error(o(468,a))}i[Vt]=t,Zt(i),a=i}t.stateNode=a}else Ld(n,t.type,t.stateNode);else t.stateNode=Hd(n,a,t.memoizedProps);else i!==a?(i===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):i.count--,a===null?Ld(n,t.type,t.stateNode):Hd(n,a,t.memoizedProps)):a===null&&t.stateNode!==null&&Ku(t,t.memoizedProps,l.memoizedProps)}break;case 27:ae(e,t),ne(t),a&512&&(Yt||l===null||He(l,l.return)),l!==null&&a&4&&Ku(t,t.memoizedProps,l.memoizedProps);break;case 5:if(ae(e,t),ne(t),a&512&&(Yt||l===null||He(l,l.return)),t.flags&32){n=t.stateNode;try{na(n,"")}catch(Z){vt(t,t.return,Z)}}a&4&&t.stateNode!=null&&(n=t.memoizedProps,Ku(t,n,l!==null?l.memoizedProps:n)),a&1024&&(Fu=!0);break;case 6:if(ae(e,t),ne(t),a&4){if(t.stateNode===null)throw Error(o(162));a=t.memoizedProps,l=t.stateNode;try{l.nodeValue=a}catch(Z){vt(t,t.return,Z)}}break;case 3:if(Wi=null,n=Ce,Ce=Ji(e.containerInfo),ae(e,t),Ce=n,ne(t),a&4&&l!==null&&l.memoizedState.isDehydrated)try{Na(e.containerInfo)}catch(Z){vt(t,t.return,Z)}Fu&&(Fu=!1,Lr(t));break;case 4:a=Ce,Ce=Ji(t.stateNode.containerInfo),ae(e,t),ne(t),Ce=a;break;case 12:ae(e,t),ne(t);break;case 31:ae(e,t),ne(t),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,Bi(t,a)));break;case 13:ae(e,t),ne(t),t.child.flags&8192&&t.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Hi=ce()),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,Bi(t,a)));break;case 22:n=t.memoizedState!==null;var y=l!==null&&l.memoizedState!==null,S=Fe,j=Yt;if(Fe=S||n,Yt=j||y,ae(e,t),Yt=j,Fe=S,ne(t),a&8192)t:for(e=t.stateNode,e._visibility=n?e._visibility&-2:e._visibility|1,n&&(l===null||y||Fe||Yt||Kl(t)),l=null,e=t;;){if(e.tag===5||e.tag===26){if(l===null){y=l=e;try{if(i=y.stateNode,n)u=i.style,typeof u.setProperty=="function"?u.setProperty("display","none","important"):u.display="none";else{f=y.stateNode;var C=y.memoizedProps.style,x=C!=null&&C.hasOwnProperty("display")?C.display:null;f.style.display=x==null||typeof x=="boolean"?"":(""+x).trim()}}catch(Z){vt(y,y.return,Z)}}}else if(e.tag===6){if(l===null){y=e;try{y.stateNode.nodeValue=n?"":y.memoizedProps}catch(Z){vt(y,y.return,Z)}}}else if(e.tag===18){if(l===null){y=e;try{var T=y.stateNode;n?jd(T,!0):jd(y.stateNode,!1)}catch(Z){vt(y,y.return,Z)}}}else if((e.tag!==22&&e.tag!==23||e.memoizedState===null||e===t)&&e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break t;for(;e.sibling===null;){if(e.return===null||e.return===t)break t;l===e&&(l=null),e=e.return}l===e&&(l=null),e.sibling.return=e.return,e=e.sibling}a&4&&(a=t.updateQueue,a!==null&&(l=a.retryQueue,l!==null&&(a.retryQueue=null,Bi(t,l))));break;case 19:ae(e,t),ne(t),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,Bi(t,a)));break;case 30:break;case 21:break;default:ae(e,t),ne(t)}}function ne(t){var e=t.flags;if(e&2){try{for(var l,a=t.return;a!==null;){if(Dr(a)){l=a;break}a=a.return}if(l==null)throw Error(o(160));switch(l.tag){case 27:var n=l.stateNode,i=ku(t);Ui(t,i,n);break;case 5:var u=l.stateNode;l.flags&32&&(na(u,""),l.flags&=-33);var f=ku(t);Ui(t,f,u);break;case 3:case 4:var y=l.stateNode.containerInfo,S=ku(t);Ju(t,S,y);break;default:throw Error(o(161))}}catch(j){vt(t,t.return,j)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function Lr(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;Lr(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function $e(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)Rr(t,e.alternate,e),e=e.sibling}function Kl(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:yl(4,e,e.return),Kl(e);break;case 1:He(e,e.return);var l=e.stateNode;typeof l.componentWillUnmount=="function"&&jr(e,e.return,l),Kl(e);break;case 27:Un(e.stateNode);case 26:case 5:He(e,e.return),Kl(e);break;case 22:e.memoizedState===null&&Kl(e);break;case 30:Kl(e);break;default:Kl(e)}t=t.sibling}}function Ie(t,e,l){for(l=l&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var a=e.alternate,n=t,i=e,u=i.flags;switch(i.tag){case 0:case 11:case 15:Ie(n,i,l),zn(4,i);break;case 1:if(Ie(n,i,l),a=i,n=a.stateNode,typeof n.componentDidMount=="function")try{n.componentDidMount()}catch(S){vt(a,a.return,S)}if(a=i,n=a.updateQueue,n!==null){var f=a.stateNode;try{var y=n.shared.hiddenCallbacks;if(y!==null)for(n.shared.hiddenCallbacks=null,n=0;n<y.length;n++)yf(y[n],f)}catch(S){vt(a,a.return,S)}}l&&u&64&&Mr(i),Tn(i,i.return);break;case 27:Cr(i);case 26:case 5:Ie(n,i,l),l&&a===null&&u&4&&Ar(i),Tn(i,i.return);break;case 12:Ie(n,i,l);break;case 31:Ie(n,i,l),l&&u&4&&Nr(n,i);break;case 13:Ie(n,i,l),l&&u&4&&Hr(n,i);break;case 22:i.memoizedState===null&&Ie(n,i,l),Tn(i,i.return);break;case 30:break;default:Ie(n,i,l)}e=e.sibling}}function Wu(t,e){var l=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),t=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(t=e.memoizedState.cachePool.pool),t!==l&&(t!=null&&t.refCount++,l!=null&&fn(l))}function $u(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&fn(t))}function Oe(t,e,l,a){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Yr(t,e,l,a),e=e.sibling}function Yr(t,e,l,a){var n=e.flags;switch(e.tag){case 0:case 11:case 15:Oe(t,e,l,a),n&2048&&zn(9,e);break;case 1:Oe(t,e,l,a);break;case 3:Oe(t,e,l,a),n&2048&&(t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&fn(t)));break;case 12:if(n&2048){Oe(t,e,l,a),t=e.stateNode;try{var i=e.memoizedProps,u=i.id,f=i.onPostCommit;typeof f=="function"&&f(u,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(y){vt(e,e.return,y)}}else Oe(t,e,l,a);break;case 31:Oe(t,e,l,a);break;case 13:Oe(t,e,l,a);break;case 23:break;case 22:i=e.stateNode,u=e.alternate,e.memoizedState!==null?i._visibility&2?Oe(t,e,l,a):En(t,e):i._visibility&2?Oe(t,e,l,a):(i._visibility|=2,Ta(t,e,l,a,(e.subtreeFlags&10256)!==0||!1)),n&2048&&Wu(u,e);break;case 24:Oe(t,e,l,a),n&2048&&$u(e.alternate,e);break;default:Oe(t,e,l,a)}}function Ta(t,e,l,a,n){for(n=n&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var i=t,u=e,f=l,y=a,S=u.flags;switch(u.tag){case 0:case 11:case 15:Ta(i,u,f,y,n),zn(8,u);break;case 23:break;case 22:var j=u.stateNode;u.memoizedState!==null?j._visibility&2?Ta(i,u,f,y,n):En(i,u):(j._visibility|=2,Ta(i,u,f,y,n)),n&&S&2048&&Wu(u.alternate,u);break;case 24:Ta(i,u,f,y,n),n&&S&2048&&$u(u.alternate,u);break;default:Ta(i,u,f,y,n)}e=e.sibling}}function En(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var l=t,a=e,n=a.flags;switch(a.tag){case 22:En(l,a),n&2048&&Wu(a.alternate,a);break;case 24:En(l,a),n&2048&&$u(a.alternate,a);break;default:En(l,a)}e=e.sibling}}var Mn=8192;function Ea(t,e,l){if(t.subtreeFlags&Mn)for(t=t.child;t!==null;)qr(t,e,l),t=t.sibling}function qr(t,e,l){switch(t.tag){case 26:Ea(t,e,l),t.flags&Mn&&t.memoizedState!==null&&e0(l,Ce,t.memoizedState,t.memoizedProps);break;case 5:Ea(t,e,l);break;case 3:case 4:var a=Ce;Ce=Ji(t.stateNode.containerInfo),Ea(t,e,l),Ce=a;break;case 22:t.memoizedState===null&&(a=t.alternate,a!==null&&a.memoizedState!==null?(a=Mn,Mn=16777216,Ea(t,e,l),Mn=a):Ea(t,e,l));break;default:Ea(t,e,l)}}function Gr(t){var e=t.alternate;if(e!==null&&(t=e.child,t!==null)){e.child=null;do e=t.sibling,t.sibling=null,t=e;while(t!==null)}}function jn(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var l=0;l<e.length;l++){var a=e[l];Qt=a,Zr(a,t)}Gr(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Xr(t),t=t.sibling}function Xr(t){switch(t.tag){case 0:case 11:case 15:jn(t),t.flags&2048&&yl(9,t,t.return);break;case 3:jn(t);break;case 12:jn(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,Ni(t)):jn(t);break;default:jn(t)}}function Ni(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var l=0;l<e.length;l++){var a=e[l];Qt=a,Zr(a,t)}Gr(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:yl(8,e,e.return),Ni(e);break;case 22:l=e.stateNode,l._visibility&2&&(l._visibility&=-3,Ni(e));break;default:Ni(e)}t=t.sibling}}function Zr(t,e){for(;Qt!==null;){var l=Qt;switch(l.tag){case 0:case 11:case 15:yl(8,l,e);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var a=l.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:fn(l.memoizedState.cache)}if(a=l.child,a!==null)a.return=l,Qt=a;else t:for(l=t;Qt!==null;){a=Qt;var n=a.sibling,i=a.return;if(Ur(a),a===l){Qt=null;break t}if(n!==null){n.return=i,Qt=n;break t}Qt=i}}}var py={getCacheForType:function(t){var e=kt(Ht),l=e.data.get(t);return l===void 0&&(l=t(),e.data.set(t,l)),l},cacheSignal:function(){return kt(Ht).controller.signal}},gy=typeof WeakMap=="function"?WeakMap:Map,yt=0,Et=null,st=null,ot=0,gt=0,pe=null,pl=!1,Ma=!1,Iu=!1,Pe=0,Ot=0,gl=0,kl=0,Pu=0,ge=0,ja=0,An=null,ie=null,to=!1,Hi=0,Qr=0,wi=1/0,Li=null,vl=null,Gt=0,bl=null,Aa=null,tl=0,eo=0,lo=null,Vr=null,Dn=0,ao=null;function ve(){return(yt&2)!==0&&ot!==0?ot&-ot:A.T!==null?co():sc()}function Kr(){if(ge===0)if((ot&536870912)===0||ft){var t=Kn;Kn<<=1,(Kn&3932160)===0&&(Kn=262144),ge=t}else ge=536870912;return t=me.current,t!==null&&(t.flags|=32),ge}function se(t,e,l){(t===Et&&(gt===2||gt===9)||t.cancelPendingCommit!==null)&&(Da(t,0),Sl(t,ot,ge,!1)),Fa(t,l),((yt&2)===0||t!==Et)&&(t===Et&&((yt&2)===0&&(kl|=l),Ot===4&&Sl(t,ot,ge,!1)),we(t))}function kr(t,e,l){if((yt&6)!==0)throw Error(o(327));var a=!l&&(e&127)===0&&(e&t.expiredLanes)===0||Ja(t,e),n=a?Sy(t,e):io(t,e,!0),i=a;do{if(n===0){Ma&&!a&&Sl(t,e,0,!1);break}else{if(l=t.current.alternate,i&&!vy(l)){n=io(t,e,!1),i=!1;continue}if(n===2){if(i=e,t.errorRecoveryDisabledLanes&i)var u=0;else u=t.pendingLanes&-536870913,u=u!==0?u:u&536870912?536870912:0;if(u!==0){e=u;t:{var f=t;n=An;var y=f.current.memoizedState.isDehydrated;if(y&&(Da(f,u).flags|=256),u=io(f,u,!1),u!==2){if(Iu&&!y){f.errorRecoveryDisabledLanes|=i,kl|=i,n=4;break t}i=ie,ie=n,i!==null&&(ie===null?ie=i:ie.push.apply(ie,i))}n=u}if(i=!1,n!==2)continue}}if(n===1){Da(t,0),Sl(t,e,0,!0);break}t:{switch(a=t,i=n,i){case 0:case 1:throw Error(o(345));case 4:if((e&4194048)!==e)break;case 6:Sl(a,e,ge,!pl);break t;case 2:ie=null;break;case 3:case 5:break;default:throw Error(o(329))}if((e&62914560)===e&&(n=Hi+300-ce(),10<n)){if(Sl(a,e,ge,!pl),Jn(a,0,!0)!==0)break t;tl=e,a.timeoutHandle=Td(Jr.bind(null,a,l,ie,Li,to,e,ge,kl,ja,pl,i,"Throttled",-0,0),n);break t}Jr(a,l,ie,Li,to,e,ge,kl,ja,pl,i,null,-0,0)}}break}while(!0);we(t)}function Jr(t,e,l,a,n,i,u,f,y,S,j,C,x,T){if(t.timeoutHandle=-1,C=e.subtreeFlags,C&8192||(C&16785408)===16785408){C={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Ye},qr(e,i,C);var Z=(i&62914560)===i?Hi-ce():(i&4194048)===i?Qr-ce():0;if(Z=l0(C,Z),Z!==null){tl=i,t.cancelPendingCommit=Z(ld.bind(null,t,e,i,l,a,n,u,f,y,j,C,null,x,T)),Sl(t,i,u,!S);return}}ld(t,e,i,l,a,n,u,f,y)}function vy(t){for(var e=t;;){var l=e.tag;if((l===0||l===11||l===15)&&e.flags&16384&&(l=e.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var a=0;a<l.length;a++){var n=l[a],i=n.getSnapshot;n=n.value;try{if(!de(i(),n))return!1}catch{return!1}}if(l=e.child,e.subtreeFlags&16384&&l!==null)l.return=e,e=l;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function Sl(t,e,l,a){e&=~Pu,e&=~kl,t.suspendedLanes|=e,t.pingedLanes&=~e,a&&(t.warmLanes|=e),a=t.expirationTimes;for(var n=e;0<n;){var i=31-re(n),u=1<<i;a[i]=-1,n&=~u}l!==0&&ac(t,l,e)}function Yi(){return(yt&6)===0?(Cn(0),!1):!0}function no(){if(st!==null){if(gt===0)var t=st.return;else t=st,Ze=Ll=null,Su(t),ba=null,dn=0,t=st;for(;t!==null;)Er(t.alternate,t),t=t.return;st=null}}function Da(t,e){var l=t.timeoutHandle;l!==-1&&(t.timeoutHandle=-1,Ly(l)),l=t.cancelPendingCommit,l!==null&&(t.cancelPendingCommit=null,l()),tl=0,no(),Et=t,st=l=Ge(t.current,null),ot=e,gt=0,pe=null,pl=!1,Ma=Ja(t,e),Iu=!1,ja=ge=Pu=kl=gl=Ot=0,ie=An=null,to=!1,(e&8)!==0&&(e|=e&32);var a=t.entangledLanes;if(a!==0)for(t=t.entanglements,a&=e;0<a;){var n=31-re(a),i=1<<n;e|=t[n],a&=~i}return Pe=e,si(),l}function Fr(t,e){et=null,A.H=Sn,e===va||e===mi?(e=rf(),gt=3):e===ou?(e=rf(),gt=4):gt=e===Hu?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,pe=e,st===null&&(Ot=1,Ai(t,_e(e,t.current)))}function Wr(){var t=me.current;return t===null?!0:(ot&4194048)===ot?Me===null:(ot&62914560)===ot||(ot&536870912)!==0?t===Me:!1}function $r(){var t=A.H;return A.H=Sn,t===null?Sn:t}function Ir(){var t=A.A;return A.A=py,t}function qi(){Ot=4,pl||(ot&4194048)!==ot&&me.current!==null||(Ma=!0),(gl&134217727)===0&&(kl&134217727)===0||Et===null||Sl(Et,ot,ge,!1)}function io(t,e,l){var a=yt;yt|=2;var n=$r(),i=Ir();(Et!==t||ot!==e)&&(Li=null,Da(t,e)),e=!1;var u=Ot;t:do try{if(gt!==0&&st!==null){var f=st,y=pe;switch(gt){case 8:no(),u=6;break t;case 3:case 2:case 9:case 6:me.current===null&&(e=!0);var S=gt;if(gt=0,pe=null,Ca(t,f,y,S),l&&Ma){u=0;break t}break;default:S=gt,gt=0,pe=null,Ca(t,f,y,S)}}by(),u=Ot;break}catch(j){Fr(t,j)}while(!0);return e&&t.shellSuspendCounter++,Ze=Ll=null,yt=a,A.H=n,A.A=i,st===null&&(Et=null,ot=0,si()),u}function by(){for(;st!==null;)Pr(st)}function Sy(t,e){var l=yt;yt|=2;var a=$r(),n=Ir();Et!==t||ot!==e?(Li=null,wi=ce()+500,Da(t,e)):Ma=Ja(t,e);t:do try{if(gt!==0&&st!==null){e=st;var i=pe;e:switch(gt){case 1:gt=0,pe=null,Ca(t,e,i,1);break;case 2:case 9:if(cf(i)){gt=0,pe=null,td(e);break}e=function(){gt!==2&&gt!==9||Et!==t||(gt=7),we(t)},i.then(e,e);break t;case 3:gt=7;break t;case 4:gt=5;break t;case 7:cf(i)?(gt=0,pe=null,td(e)):(gt=0,pe=null,Ca(t,e,i,7));break;case 5:var u=null;switch(st.tag){case 26:u=st.memoizedState;case 5:case 27:var f=st;if(u?Yd(u):f.stateNode.complete){gt=0,pe=null;var y=f.sibling;if(y!==null)st=y;else{var S=f.return;S!==null?(st=S,Gi(S)):st=null}break e}}gt=0,pe=null,Ca(t,e,i,5);break;case 6:gt=0,pe=null,Ca(t,e,i,6);break;case 8:no(),Ot=6;break t;default:throw Error(o(462))}}xy();break}catch(j){Fr(t,j)}while(!0);return Ze=Ll=null,A.H=a,A.A=n,yt=l,st!==null?0:(Et=null,ot=0,si(),Ot)}function xy(){for(;st!==null&&!Qh();)Pr(st)}function Pr(t){var e=zr(t.alternate,t,Pe);t.memoizedProps=t.pendingProps,e===null?Gi(t):st=e}function td(t){var e=t,l=e.alternate;switch(e.tag){case 15:case 0:e=gr(l,e,e.pendingProps,e.type,void 0,ot);break;case 11:e=gr(l,e,e.pendingProps,e.type.render,e.ref,ot);break;case 5:Su(e);default:Er(l,e),e=st=$c(e,Pe),e=zr(l,e,Pe)}t.memoizedProps=t.pendingProps,e===null?Gi(t):st=e}function Ca(t,e,l,a){Ze=Ll=null,Su(e),ba=null,dn=0;var n=e.return;try{if(cy(t,n,e,l,ot)){Ot=1,Ai(t,_e(l,t.current)),st=null;return}}catch(i){if(n!==null)throw st=n,i;Ot=1,Ai(t,_e(l,t.current)),st=null;return}e.flags&32768?(ft||a===1?t=!0:Ma||(ot&536870912)!==0?t=!1:(pl=t=!0,(a===2||a===9||a===3||a===6)&&(a=me.current,a!==null&&a.tag===13&&(a.flags|=16384))),ed(e,t)):Gi(e)}function Gi(t){var e=t;do{if((e.flags&32768)!==0){ed(e,pl);return}t=e.return;var l=dy(e.alternate,e,Pe);if(l!==null){st=l;return}if(e=e.sibling,e!==null){st=e;return}st=e=t}while(e!==null);Ot===0&&(Ot=5)}function ed(t,e){do{var l=hy(t.alternate,t);if(l!==null){l.flags&=32767,st=l;return}if(l=t.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!e&&(t=t.sibling,t!==null)){st=t;return}st=t=l}while(t!==null);Ot=6,st=null}function ld(t,e,l,a,n,i,u,f,y){t.cancelPendingCommit=null;do Xi();while(Gt!==0);if((yt&6)!==0)throw Error(o(327));if(e!==null){if(e===t.current)throw Error(o(177));if(i=e.lanes|e.childLanes,i|=ks,tm(t,l,i,u,f,y),t===Et&&(st=Et=null,ot=0),Aa=e,bl=t,tl=l,eo=i,lo=n,Vr=a,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,Ey(Qn,function(){return ud(),null})):(t.callbackNode=null,t.callbackPriority=0),a=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||a){a=A.T,A.T=null,n=q.p,q.p=2,u=yt,yt|=4;try{my(t,e,l)}finally{yt=u,q.p=n,A.T=a}}Gt=1,ad(),nd(),id()}}function ad(){if(Gt===1){Gt=0;var t=bl,e=Aa,l=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||l){l=A.T,A.T=null;var a=q.p;q.p=2;var n=yt;yt|=4;try{wr(e,t);var i=vo,u=Xc(t.containerInfo),f=i.focusedElem,y=i.selectionRange;if(u!==f&&f&&f.ownerDocument&&Gc(f.ownerDocument.documentElement,f)){if(y!==null&&Xs(f)){var S=y.start,j=y.end;if(j===void 0&&(j=S),"selectionStart"in f)f.selectionStart=S,f.selectionEnd=Math.min(j,f.value.length);else{var C=f.ownerDocument||document,x=C&&C.defaultView||window;if(x.getSelection){var T=x.getSelection(),Z=f.textContent.length,tt=Math.min(y.start,Z),xt=y.end===void 0?tt:Math.min(y.end,Z);!T.extend&&tt>xt&&(u=xt,xt=tt,tt=u);var g=qc(f,tt),p=qc(f,xt);if(g&&p&&(T.rangeCount!==1||T.anchorNode!==g.node||T.anchorOffset!==g.offset||T.focusNode!==p.node||T.focusOffset!==p.offset)){var b=C.createRange();b.setStart(g.node,g.offset),T.removeAllRanges(),tt>xt?(T.addRange(b),T.extend(p.node,p.offset)):(b.setEnd(p.node,p.offset),T.addRange(b))}}}}for(C=[],T=f;T=T.parentNode;)T.nodeType===1&&C.push({element:T,left:T.scrollLeft,top:T.scrollTop});for(typeof f.focus=="function"&&f.focus(),f=0;f<C.length;f++){var D=C[f];D.element.scrollLeft=D.left,D.element.scrollTop=D.top}}ts=!!go,vo=go=null}finally{yt=n,q.p=a,A.T=l}}t.current=e,Gt=2}}function nd(){if(Gt===2){Gt=0;var t=bl,e=Aa,l=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||l){l=A.T,A.T=null;var a=q.p;q.p=2;var n=yt;yt|=4;try{Rr(t,e.alternate,e)}finally{yt=n,q.p=a,A.T=l}}Gt=3}}function id(){if(Gt===4||Gt===3){Gt=0,Vh();var t=bl,e=Aa,l=tl,a=Vr;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?Gt=5:(Gt=0,Aa=bl=null,sd(t,t.pendingLanes));var n=t.pendingLanes;if(n===0&&(vl=null),zs(l),e=e.stateNode,fe&&typeof fe.onCommitFiberRoot=="function")try{fe.onCommitFiberRoot(ka,e,void 0,(e.current.flags&128)===128)}catch{}if(a!==null){e=A.T,n=q.p,q.p=2,A.T=null;try{for(var i=t.onRecoverableError,u=0;u<a.length;u++){var f=a[u];i(f.value,{componentStack:f.stack})}}finally{A.T=e,q.p=n}}(tl&3)!==0&&Xi(),we(t),n=t.pendingLanes,(l&261930)!==0&&(n&42)!==0?t===ao?Dn++:(Dn=0,ao=t):Dn=0,Cn(0)}}function sd(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,fn(e)))}function Xi(){return ad(),nd(),id(),ud()}function ud(){if(Gt!==5)return!1;var t=bl,e=eo;eo=0;var l=zs(tl),a=A.T,n=q.p;try{q.p=32>l?32:l,A.T=null,l=lo,lo=null;var i=bl,u=tl;if(Gt=0,Aa=bl=null,tl=0,(yt&6)!==0)throw Error(o(331));var f=yt;if(yt|=4,Xr(i.current),Yr(i,i.current,u,l),yt=f,Cn(0,!1),fe&&typeof fe.onPostCommitFiberRoot=="function")try{fe.onPostCommitFiberRoot(ka,i)}catch{}return!0}finally{q.p=n,A.T=a,sd(t,e)}}function od(t,e,l){e=_e(l,e),e=Nu(t.stateNode,e,2),t=dl(t,e,2),t!==null&&(Fa(t,2),we(t))}function vt(t,e,l){if(t.tag===3)od(t,t,l);else for(;e!==null;){if(e.tag===3){od(e,t,l);break}else if(e.tag===1){var a=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(vl===null||!vl.has(a))){t=_e(l,t),l=cr(2),a=dl(e,l,2),a!==null&&(fr(l,a,e,t),Fa(a,2),we(a));break}}e=e.return}}function so(t,e,l){var a=t.pingCache;if(a===null){a=t.pingCache=new gy;var n=new Set;a.set(e,n)}else n=a.get(e),n===void 0&&(n=new Set,a.set(e,n));n.has(l)||(Iu=!0,n.add(l),t=_y.bind(null,t,e,l),e.then(t,t))}function _y(t,e,l){var a=t.pingCache;a!==null&&a.delete(e),t.pingedLanes|=t.suspendedLanes&l,t.warmLanes&=~l,Et===t&&(ot&l)===l&&(Ot===4||Ot===3&&(ot&62914560)===ot&&300>ce()-Hi?(yt&2)===0&&Da(t,0):Pu|=l,ja===ot&&(ja=0)),we(t)}function cd(t,e){e===0&&(e=lc()),t=Nl(t,e),t!==null&&(Fa(t,e),we(t))}function zy(t){var e=t.memoizedState,l=0;e!==null&&(l=e.retryLane),cd(t,l)}function Ty(t,e){var l=0;switch(t.tag){case 31:case 13:var a=t.stateNode,n=t.memoizedState;n!==null&&(l=n.retryLane);break;case 19:a=t.stateNode;break;case 22:a=t.stateNode._retryCache;break;default:throw Error(o(314))}a!==null&&a.delete(e),cd(t,l)}function Ey(t,e){return bs(t,e)}var Zi=null,Oa=null,uo=!1,Qi=!1,oo=!1,xl=0;function we(t){t!==Oa&&t.next===null&&(Oa===null?Zi=Oa=t:Oa=Oa.next=t),Qi=!0,uo||(uo=!0,jy())}function Cn(t,e){if(!oo&&Qi){oo=!0;do for(var l=!1,a=Zi;a!==null;){if(t!==0){var n=a.pendingLanes;if(n===0)var i=0;else{var u=a.suspendedLanes,f=a.pingedLanes;i=(1<<31-re(42|t)+1)-1,i&=n&~(u&~f),i=i&201326741?i&201326741|1:i?i|2:0}i!==0&&(l=!0,hd(a,i))}else i=ot,i=Jn(a,a===Et?i:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(i&3)===0||Ja(a,i)||(l=!0,hd(a,i));a=a.next}while(l);oo=!1}}function My(){fd()}function fd(){Qi=uo=!1;var t=0;xl!==0&&wy()&&(t=xl);for(var e=ce(),l=null,a=Zi;a!==null;){var n=a.next,i=rd(a,e);i===0?(a.next=null,l===null?Zi=n:l.next=n,n===null&&(Oa=l)):(l=a,(t!==0||(i&3)!==0)&&(Qi=!0)),a=n}Gt!==0&&Gt!==5||Cn(t),xl!==0&&(xl=0)}function rd(t,e){for(var l=t.suspendedLanes,a=t.pingedLanes,n=t.expirationTimes,i=t.pendingLanes&-62914561;0<i;){var u=31-re(i),f=1<<u,y=n[u];y===-1?((f&l)===0||(f&a)!==0)&&(n[u]=Ph(f,e)):y<=e&&(t.expiredLanes|=f),i&=~f}if(e=Et,l=ot,l=Jn(t,t===e?l:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),a=t.callbackNode,l===0||t===e&&(gt===2||gt===9)||t.cancelPendingCommit!==null)return a!==null&&a!==null&&Ss(a),t.callbackNode=null,t.callbackPriority=0;if((l&3)===0||Ja(t,l)){if(e=l&-l,e===t.callbackPriority)return e;switch(a!==null&&Ss(a),zs(l)){case 2:case 8:l=tc;break;case 32:l=Qn;break;case 268435456:l=ec;break;default:l=Qn}return a=dd.bind(null,t),l=bs(l,a),t.callbackPriority=e,t.callbackNode=l,e}return a!==null&&a!==null&&Ss(a),t.callbackPriority=2,t.callbackNode=null,2}function dd(t,e){if(Gt!==0&&Gt!==5)return t.callbackNode=null,t.callbackPriority=0,null;var l=t.callbackNode;if(Xi()&&t.callbackNode!==l)return null;var a=ot;return a=Jn(t,t===Et?a:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),a===0?null:(kr(t,a,e),rd(t,ce()),t.callbackNode!=null&&t.callbackNode===l?dd.bind(null,t):null)}function hd(t,e){if(Xi())return null;kr(t,e,!0)}function jy(){Yy(function(){(yt&6)!==0?bs(Po,My):fd()})}function co(){if(xl===0){var t=pa;t===0&&(t=Vn,Vn<<=1,(Vn&261888)===0&&(Vn=256)),xl=t}return xl}function md(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:In(""+t)}function yd(t,e){var l=e.ownerDocument.createElement("input");return l.name=e.name,l.value=e.value,t.id&&l.setAttribute("form",t.id),e.parentNode.insertBefore(l,e),t=new FormData(t),l.parentNode.removeChild(l),t}function Ay(t,e,l,a,n){if(e==="submit"&&l&&l.stateNode===n){var i=md((n[te]||null).action),u=a.submitter;u&&(e=(e=u[te]||null)?md(e.formAction):u.getAttribute("formAction"),e!==null&&(i=e,u=null));var f=new li("action","action",null,a,n);t.push({event:f,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(xl!==0){var y=u?yd(n,u):new FormData(n);Du(l,{pending:!0,data:y,method:n.method,action:i},null,y)}}else typeof i=="function"&&(f.preventDefault(),y=u?yd(n,u):new FormData(n),Du(l,{pending:!0,data:y,method:n.method,action:i},i,y))},currentTarget:n}]})}}for(var fo=0;fo<Ks.length;fo++){var ro=Ks[fo],Dy=ro.toLowerCase(),Cy=ro[0].toUpperCase()+ro.slice(1);De(Dy,"on"+Cy)}De(Vc,"onAnimationEnd"),De(Kc,"onAnimationIteration"),De(kc,"onAnimationStart"),De("dblclick","onDoubleClick"),De("focusin","onFocus"),De("focusout","onBlur"),De(Km,"onTransitionRun"),De(km,"onTransitionStart"),De(Jm,"onTransitionCancel"),De(Jc,"onTransitionEnd"),la("onMouseEnter",["mouseout","mouseover"]),la("onMouseLeave",["mouseout","mouseover"]),la("onPointerEnter",["pointerout","pointerover"]),la("onPointerLeave",["pointerout","pointerover"]),Ol("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ol("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ol("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ol("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ol("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ol("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var On="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(" "),Oy=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(On));function pd(t,e){e=(e&4)!==0;for(var l=0;l<t.length;l++){var a=t[l],n=a.event;a=a.listeners;t:{var i=void 0;if(e)for(var u=a.length-1;0<=u;u--){var f=a[u],y=f.instance,S=f.currentTarget;if(f=f.listener,y!==i&&n.isPropagationStopped())break t;i=f,n.currentTarget=S;try{i(n)}catch(j){ii(j)}n.currentTarget=null,i=y}else for(u=0;u<a.length;u++){if(f=a[u],y=f.instance,S=f.currentTarget,f=f.listener,y!==i&&n.isPropagationStopped())break t;i=f,n.currentTarget=S;try{i(n)}catch(j){ii(j)}n.currentTarget=null,i=y}}}}function ut(t,e){var l=e[Ts];l===void 0&&(l=e[Ts]=new Set);var a=t+"__bubble";l.has(a)||(gd(e,t,2,!1),l.add(a))}function ho(t,e,l){var a=0;e&&(a|=4),gd(l,t,a,e)}var Vi="_reactListening"+Math.random().toString(36).slice(2);function mo(t){if(!t[Vi]){t[Vi]=!0,cc.forEach(function(l){l!=="selectionchange"&&(Oy.has(l)||ho(l,!1,t),ho(l,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[Vi]||(e[Vi]=!0,ho("selectionchange",!1,e))}}function gd(t,e,l,a){switch(Kd(e)){case 2:var n=i0;break;case 8:n=s0;break;default:n=Do}l=n.bind(null,e,l,t),n=void 0,!Us||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(n=!0),a?n!==void 0?t.addEventListener(e,l,{capture:!0,passive:n}):t.addEventListener(e,l,!0):n!==void 0?t.addEventListener(e,l,{passive:n}):t.addEventListener(e,l,!1)}function yo(t,e,l,a,n){var i=a;if((e&1)===0&&(e&2)===0&&a!==null)t:for(;;){if(a===null)return;var u=a.tag;if(u===3||u===4){var f=a.stateNode.containerInfo;if(f===n)break;if(u===4)for(u=a.return;u!==null;){var y=u.tag;if((y===3||y===4)&&u.stateNode.containerInfo===n)return;u=u.return}for(;f!==null;){if(u=Pl(f),u===null)return;if(y=u.tag,y===5||y===6||y===26||y===27){a=i=u;continue t}f=f.parentNode}}a=a.return}xc(function(){var S=i,j=Os(l),C=[];t:{var x=Fc.get(t);if(x!==void 0){var T=li,Z=t;switch(t){case"keypress":if(ti(l)===0)break t;case"keydown":case"keyup":T=Tm;break;case"focusin":Z="focus",T=ws;break;case"focusout":Z="blur",T=ws;break;case"beforeblur":case"afterblur":T=ws;break;case"click":if(l.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":T=Tc;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":T=dm;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":T=jm;break;case Vc:case Kc:case kc:T=ym;break;case Jc:T=Dm;break;case"scroll":case"scrollend":T=fm;break;case"wheel":T=Om;break;case"copy":case"cut":case"paste":T=gm;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":T=Mc;break;case"toggle":case"beforetoggle":T=Um}var tt=(e&4)!==0,xt=!tt&&(t==="scroll"||t==="scrollend"),g=tt?x!==null?x+"Capture":null:x;tt=[];for(var p=S,b;p!==null;){var D=p;if(b=D.stateNode,D=D.tag,D!==5&&D!==26&&D!==27||b===null||g===null||(D=Ia(p,g),D!=null&&tt.push(Rn(p,D,b))),xt)break;p=p.return}0<tt.length&&(x=new T(x,Z,null,l,j),C.push({event:x,listeners:tt}))}}if((e&7)===0){t:{if(x=t==="mouseover"||t==="pointerover",T=t==="mouseout"||t==="pointerout",x&&l!==Cs&&(Z=l.relatedTarget||l.fromElement)&&(Pl(Z)||Z[Il]))break t;if((T||x)&&(x=j.window===j?j:(x=j.ownerDocument)?x.defaultView||x.parentWindow:window,T?(Z=l.relatedTarget||l.toElement,T=S,Z=Z?Pl(Z):null,Z!==null&&(xt=m(Z),tt=Z.tag,Z!==xt||tt!==5&&tt!==27&&tt!==6)&&(Z=null)):(T=null,Z=S),T!==Z)){if(tt=Tc,D="onMouseLeave",g="onMouseEnter",p="mouse",(t==="pointerout"||t==="pointerover")&&(tt=Mc,D="onPointerLeave",g="onPointerEnter",p="pointer"),xt=T==null?x:$a(T),b=Z==null?x:$a(Z),x=new tt(D,p+"leave",T,l,j),x.target=xt,x.relatedTarget=b,D=null,Pl(j)===S&&(tt=new tt(g,p+"enter",Z,l,j),tt.target=b,tt.relatedTarget=xt,D=tt),xt=D,T&&Z)e:{for(tt=Ry,g=T,p=Z,b=0,D=g;D;D=tt(D))b++;D=0;for(var F=p;F;F=tt(F))D++;for(;0<b-D;)g=tt(g),b--;for(;0<D-b;)p=tt(p),D--;for(;b--;){if(g===p||p!==null&&g===p.alternate){tt=g;break e}g=tt(g),p=tt(p)}tt=null}else tt=null;T!==null&&vd(C,x,T,tt,!1),Z!==null&&xt!==null&&vd(C,xt,Z,tt,!0)}}t:{if(x=S?$a(S):window,T=x.nodeName&&x.nodeName.toLowerCase(),T==="select"||T==="input"&&x.type==="file")var ht=Bc;else if(Rc(x))if(Nc)ht=Zm;else{ht=Gm;var k=qm}else T=x.nodeName,!T||T.toLowerCase()!=="input"||x.type!=="checkbox"&&x.type!=="radio"?S&&Ds(S.elementType)&&(ht=Bc):ht=Xm;if(ht&&(ht=ht(t,S))){Uc(C,ht,l,j);break t}k&&k(t,x,S),t==="focusout"&&S&&x.type==="number"&&S.memoizedProps.value!=null&&As(x,"number",x.value)}switch(k=S?$a(S):window,t){case"focusin":(Rc(k)||k.contentEditable==="true")&&(oa=k,Zs=S,un=null);break;case"focusout":un=Zs=oa=null;break;case"mousedown":Qs=!0;break;case"contextmenu":case"mouseup":case"dragend":Qs=!1,Zc(C,l,j);break;case"selectionchange":if(Vm)break;case"keydown":case"keyup":Zc(C,l,j)}var lt;if(Ys)t:{switch(t){case"compositionstart":var ct="onCompositionStart";break t;case"compositionend":ct="onCompositionEnd";break t;case"compositionupdate":ct="onCompositionUpdate";break t}ct=void 0}else ua?Cc(t,l)&&(ct="onCompositionEnd"):t==="keydown"&&l.keyCode===229&&(ct="onCompositionStart");ct&&(jc&&l.locale!=="ko"&&(ua||ct!=="onCompositionStart"?ct==="onCompositionEnd"&&ua&&(lt=_c()):(il=j,Bs="value"in il?il.value:il.textContent,ua=!0)),k=Ki(S,ct),0<k.length&&(ct=new Ec(ct,t,null,l,j),C.push({event:ct,listeners:k}),lt?ct.data=lt:(lt=Oc(l),lt!==null&&(ct.data=lt)))),(lt=Nm?Hm(t,l):wm(t,l))&&(ct=Ki(S,"onBeforeInput"),0<ct.length&&(k=new Ec("onBeforeInput","beforeinput",null,l,j),C.push({event:k,listeners:ct}),k.data=lt)),Ay(C,t,S,l,j)}pd(C,e)})}function Rn(t,e,l){return{instance:t,listener:e,currentTarget:l}}function Ki(t,e){for(var l=e+"Capture",a=[];t!==null;){var n=t,i=n.stateNode;if(n=n.tag,n!==5&&n!==26&&n!==27||i===null||(n=Ia(t,l),n!=null&&a.unshift(Rn(t,n,i)),n=Ia(t,e),n!=null&&a.push(Rn(t,n,i))),t.tag===3)return a;t=t.return}return[]}function Ry(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function vd(t,e,l,a,n){for(var i=e._reactName,u=[];l!==null&&l!==a;){var f=l,y=f.alternate,S=f.stateNode;if(f=f.tag,y!==null&&y===a)break;f!==5&&f!==26&&f!==27||S===null||(y=S,n?(S=Ia(l,i),S!=null&&u.unshift(Rn(l,S,y))):n||(S=Ia(l,i),S!=null&&u.push(Rn(l,S,y)))),l=l.return}u.length!==0&&t.push({event:e,listeners:u})}var Uy=/\r\n?/g,By=/\u0000|\uFFFD/g;function bd(t){return(typeof t=="string"?t:""+t).replace(Uy,`
33
- `).replace(By,"")}function Sd(t,e){return e=bd(e),bd(t)===e}function St(t,e,l,a,n,i){switch(l){case"children":typeof a=="string"?e==="body"||e==="textarea"&&a===""||na(t,a):(typeof a=="number"||typeof a=="bigint")&&e!=="body"&&na(t,""+a);break;case"className":Wn(t,"class",a);break;case"tabIndex":Wn(t,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":Wn(t,l,a);break;case"style":bc(t,a,i);break;case"data":if(e!=="object"){Wn(t,"data",a);break}case"src":case"href":if(a===""&&(e!=="a"||l!=="href")){t.removeAttribute(l);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){t.removeAttribute(l);break}a=In(""+a),t.setAttribute(l,a);break;case"action":case"formAction":if(typeof a=="function"){t.setAttribute(l,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof i=="function"&&(l==="formAction"?(e!=="input"&&St(t,e,"name",n.name,n,null),St(t,e,"formEncType",n.formEncType,n,null),St(t,e,"formMethod",n.formMethod,n,null),St(t,e,"formTarget",n.formTarget,n,null)):(St(t,e,"encType",n.encType,n,null),St(t,e,"method",n.method,n,null),St(t,e,"target",n.target,n,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){t.removeAttribute(l);break}a=In(""+a),t.setAttribute(l,a);break;case"onClick":a!=null&&(t.onclick=Ye);break;case"onScroll":a!=null&&ut("scroll",t);break;case"onScrollEnd":a!=null&&ut("scrollend",t);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(o(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(o(60));t.innerHTML=l}}break;case"multiple":t.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":t.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){t.removeAttribute("xlink:href");break}l=In(""+a),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?t.setAttribute(l,""+a):t.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":a&&typeof a!="function"&&typeof a!="symbol"?t.setAttribute(l,""):t.removeAttribute(l);break;case"capture":case"download":a===!0?t.setAttribute(l,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?t.setAttribute(l,a):t.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?t.setAttribute(l,a):t.removeAttribute(l);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?t.removeAttribute(l):t.setAttribute(l,a);break;case"popover":ut("beforetoggle",t),ut("toggle",t),Fn(t,"popover",a);break;case"xlinkActuate":Le(t,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":Le(t,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":Le(t,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":Le(t,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":Le(t,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":Le(t,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":Le(t,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":Le(t,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":Le(t,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":Fn(t,"is",a);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=om.get(l)||l,Fn(t,l,a))}}function po(t,e,l,a,n,i){switch(l){case"style":bc(t,a,i);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(o(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(o(60));t.innerHTML=l}}break;case"children":typeof a=="string"?na(t,a):(typeof a=="number"||typeof a=="bigint")&&na(t,""+a);break;case"onScroll":a!=null&&ut("scroll",t);break;case"onScrollEnd":a!=null&&ut("scrollend",t);break;case"onClick":a!=null&&(t.onclick=Ye);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!fc.hasOwnProperty(l))t:{if(l[0]==="o"&&l[1]==="n"&&(n=l.endsWith("Capture"),e=l.slice(2,n?l.length-7:void 0),i=t[te]||null,i=i!=null?i[l]:null,typeof i=="function"&&t.removeEventListener(e,i,n),typeof a=="function")){typeof i!="function"&&i!==null&&(l in t?t[l]=null:t.hasAttribute(l)&&t.removeAttribute(l)),t.addEventListener(e,a,n);break t}l in t?t[l]=a:a===!0?t.setAttribute(l,""):Fn(t,l,a)}}}function Ft(t,e,l){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ut("error",t),ut("load",t);var a=!1,n=!1,i;for(i in l)if(l.hasOwnProperty(i)){var u=l[i];if(u!=null)switch(i){case"src":a=!0;break;case"srcSet":n=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,e));default:St(t,e,i,u,l,null)}}n&&St(t,e,"srcSet",l.srcSet,l,null),a&&St(t,e,"src",l.src,l,null);return;case"input":ut("invalid",t);var f=i=u=n=null,y=null,S=null;for(a in l)if(l.hasOwnProperty(a)){var j=l[a];if(j!=null)switch(a){case"name":n=j;break;case"type":u=j;break;case"checked":y=j;break;case"defaultChecked":S=j;break;case"value":i=j;break;case"defaultValue":f=j;break;case"children":case"dangerouslySetInnerHTML":if(j!=null)throw Error(o(137,e));break;default:St(t,e,a,j,l,null)}}yc(t,i,f,y,S,u,n,!1);return;case"select":ut("invalid",t),a=u=i=null;for(n in l)if(l.hasOwnProperty(n)&&(f=l[n],f!=null))switch(n){case"value":i=f;break;case"defaultValue":u=f;break;case"multiple":a=f;default:St(t,e,n,f,l,null)}e=i,l=u,t.multiple=!!a,e!=null?aa(t,!!a,e,!1):l!=null&&aa(t,!!a,l,!0);return;case"textarea":ut("invalid",t),i=n=a=null;for(u in l)if(l.hasOwnProperty(u)&&(f=l[u],f!=null))switch(u){case"value":a=f;break;case"defaultValue":n=f;break;case"children":i=f;break;case"dangerouslySetInnerHTML":if(f!=null)throw Error(o(91));break;default:St(t,e,u,f,l,null)}gc(t,a,n,i);return;case"option":for(y in l)if(l.hasOwnProperty(y)&&(a=l[y],a!=null))switch(y){case"selected":t.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:St(t,e,y,a,l,null)}return;case"dialog":ut("beforetoggle",t),ut("toggle",t),ut("cancel",t),ut("close",t);break;case"iframe":case"object":ut("load",t);break;case"video":case"audio":for(a=0;a<On.length;a++)ut(On[a],t);break;case"image":ut("error",t),ut("load",t);break;case"details":ut("toggle",t);break;case"embed":case"source":case"link":ut("error",t),ut("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(S in l)if(l.hasOwnProperty(S)&&(a=l[S],a!=null))switch(S){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,e));default:St(t,e,S,a,l,null)}return;default:if(Ds(e)){for(j in l)l.hasOwnProperty(j)&&(a=l[j],a!==void 0&&po(t,e,j,a,l,void 0));return}}for(f in l)l.hasOwnProperty(f)&&(a=l[f],a!=null&&St(t,e,f,a,l,null))}function Ny(t,e,l,a){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var n=null,i=null,u=null,f=null,y=null,S=null,j=null;for(T in l){var C=l[T];if(l.hasOwnProperty(T)&&C!=null)switch(T){case"checked":break;case"value":break;case"defaultValue":y=C;default:a.hasOwnProperty(T)||St(t,e,T,null,a,C)}}for(var x in a){var T=a[x];if(C=l[x],a.hasOwnProperty(x)&&(T!=null||C!=null))switch(x){case"type":i=T;break;case"name":n=T;break;case"checked":S=T;break;case"defaultChecked":j=T;break;case"value":u=T;break;case"defaultValue":f=T;break;case"children":case"dangerouslySetInnerHTML":if(T!=null)throw Error(o(137,e));break;default:T!==C&&St(t,e,x,T,a,C)}}js(t,u,f,y,S,j,i,n);return;case"select":T=u=f=x=null;for(i in l)if(y=l[i],l.hasOwnProperty(i)&&y!=null)switch(i){case"value":break;case"multiple":T=y;default:a.hasOwnProperty(i)||St(t,e,i,null,a,y)}for(n in a)if(i=a[n],y=l[n],a.hasOwnProperty(n)&&(i!=null||y!=null))switch(n){case"value":x=i;break;case"defaultValue":f=i;break;case"multiple":u=i;default:i!==y&&St(t,e,n,i,a,y)}e=f,l=u,a=T,x!=null?aa(t,!!l,x,!1):!!a!=!!l&&(e!=null?aa(t,!!l,e,!0):aa(t,!!l,l?[]:"",!1));return;case"textarea":T=x=null;for(f in l)if(n=l[f],l.hasOwnProperty(f)&&n!=null&&!a.hasOwnProperty(f))switch(f){case"value":break;case"children":break;default:St(t,e,f,null,a,n)}for(u in a)if(n=a[u],i=l[u],a.hasOwnProperty(u)&&(n!=null||i!=null))switch(u){case"value":x=n;break;case"defaultValue":T=n;break;case"children":break;case"dangerouslySetInnerHTML":if(n!=null)throw Error(o(91));break;default:n!==i&&St(t,e,u,n,a,i)}pc(t,x,T);return;case"option":for(var Z in l)if(x=l[Z],l.hasOwnProperty(Z)&&x!=null&&!a.hasOwnProperty(Z))switch(Z){case"selected":t.selected=!1;break;default:St(t,e,Z,null,a,x)}for(y in a)if(x=a[y],T=l[y],a.hasOwnProperty(y)&&x!==T&&(x!=null||T!=null))switch(y){case"selected":t.selected=x&&typeof x!="function"&&typeof x!="symbol";break;default:St(t,e,y,x,a,T)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var tt in l)x=l[tt],l.hasOwnProperty(tt)&&x!=null&&!a.hasOwnProperty(tt)&&St(t,e,tt,null,a,x);for(S in a)if(x=a[S],T=l[S],a.hasOwnProperty(S)&&x!==T&&(x!=null||T!=null))switch(S){case"children":case"dangerouslySetInnerHTML":if(x!=null)throw Error(o(137,e));break;default:St(t,e,S,x,a,T)}return;default:if(Ds(e)){for(var xt in l)x=l[xt],l.hasOwnProperty(xt)&&x!==void 0&&!a.hasOwnProperty(xt)&&po(t,e,xt,void 0,a,x);for(j in a)x=a[j],T=l[j],!a.hasOwnProperty(j)||x===T||x===void 0&&T===void 0||po(t,e,j,x,a,T);return}}for(var g in l)x=l[g],l.hasOwnProperty(g)&&x!=null&&!a.hasOwnProperty(g)&&St(t,e,g,null,a,x);for(C in a)x=a[C],T=l[C],!a.hasOwnProperty(C)||x===T||x==null&&T==null||St(t,e,C,x,a,T)}function xd(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Hy(){if(typeof performance.getEntriesByType=="function"){for(var t=0,e=0,l=performance.getEntriesByType("resource"),a=0;a<l.length;a++){var n=l[a],i=n.transferSize,u=n.initiatorType,f=n.duration;if(i&&f&&xd(u)){for(u=0,f=n.responseEnd,a+=1;a<l.length;a++){var y=l[a],S=y.startTime;if(S>f)break;var j=y.transferSize,C=y.initiatorType;j&&xd(C)&&(y=y.responseEnd,u+=j*(y<f?1:(f-S)/(y-S)))}if(--a,e+=8*(i+u)/(n.duration/1e3),t++,10<t)break}}if(0<t)return e/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var go=null,vo=null;function ki(t){return t.nodeType===9?t:t.ownerDocument}function _d(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function zd(t,e){if(t===0)switch(e){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&e==="foreignObject"?0:t}function bo(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.children=="bigint"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var So=null;function wy(){var t=window.event;return t&&t.type==="popstate"?t===So?!1:(So=t,!0):(So=null,!1)}var Td=typeof setTimeout=="function"?setTimeout:void 0,Ly=typeof clearTimeout=="function"?clearTimeout:void 0,Ed=typeof Promise=="function"?Promise:void 0,Yy=typeof queueMicrotask=="function"?queueMicrotask:typeof Ed<"u"?function(t){return Ed.resolve(null).then(t).catch(qy)}:Td;function qy(t){setTimeout(function(){throw t})}function _l(t){return t==="head"}function Md(t,e){var l=e,a=0;do{var n=l.nextSibling;if(t.removeChild(l),n&&n.nodeType===8)if(l=n.data,l==="/$"||l==="/&"){if(a===0){t.removeChild(n),Na(e);return}a--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")a++;else if(l==="html")Un(t.ownerDocument.documentElement);else if(l==="head"){l=t.ownerDocument.head,Un(l);for(var i=l.firstChild;i;){var u=i.nextSibling,f=i.nodeName;i[Wa]||f==="SCRIPT"||f==="STYLE"||f==="LINK"&&i.rel.toLowerCase()==="stylesheet"||l.removeChild(i),i=u}}else l==="body"&&Un(t.ownerDocument.body);l=n}while(l);Na(e)}function jd(t,e){var l=t;t=0;do{var a=l.nextSibling;if(l.nodeType===1?e?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(e?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),a&&a.nodeType===8)if(l=a.data,l==="/$"){if(t===0)break;t--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||t++;l=a}while(l)}function xo(t){var e=t.firstChild;for(e&&e.nodeType===10&&(e=e.nextSibling);e;){var l=e;switch(e=e.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":xo(l),Es(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}t.removeChild(l)}}function Gy(t,e,l,a){for(;t.nodeType===1;){var n=l;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!a&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(a){if(!t[Wa])switch(e){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(i=t.getAttribute("rel"),i==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(i!==n.rel||t.getAttribute("href")!==(n.href==null||n.href===""?null:n.href)||t.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin)||t.getAttribute("title")!==(n.title==null?null:n.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(i=t.getAttribute("src"),(i!==(n.src==null?null:n.src)||t.getAttribute("type")!==(n.type==null?null:n.type)||t.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin))&&i&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var i=n.name==null?null:""+n.name;if(n.type==="hidden"&&t.getAttribute("name")===i)return t}else return t;if(t=je(t.nextSibling),t===null)break}return null}function Xy(t,e,l){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!l||(t=je(t.nextSibling),t===null))return null;return t}function Ad(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=je(t.nextSibling),t===null))return null;return t}function _o(t){return t.data==="$?"||t.data==="$~"}function zo(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function Zy(t,e){var l=t.ownerDocument;if(t.data==="$~")t._reactRetry=e;else if(t.data!=="$?"||l.readyState!=="loading")e();else{var a=function(){e(),l.removeEventListener("DOMContentLoaded",a)};l.addEventListener("DOMContentLoaded",a),t._reactRetry=a}}function je(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?"||e==="$~"||e==="&"||e==="F!"||e==="F")break;if(e==="/$"||e==="/&")return null}}return t}var To=null;function Dd(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var l=t.data;if(l==="/$"||l==="/&"){if(e===0)return je(t.nextSibling);e--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||e++}t=t.nextSibling}return null}function Cd(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var l=t.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(e===0)return t;e--}else l!=="/$"&&l!=="/&"||e++}t=t.previousSibling}return null}function Od(t,e,l){switch(e=ki(l),t){case"html":if(t=e.documentElement,!t)throw Error(o(452));return t;case"head":if(t=e.head,!t)throw Error(o(453));return t;case"body":if(t=e.body,!t)throw Error(o(454));return t;default:throw Error(o(451))}}function Un(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);Es(t)}var Ae=new Map,Rd=new Set;function Ji(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var el=q.d;q.d={f:Qy,r:Vy,D:Ky,C:ky,L:Jy,m:Fy,X:$y,S:Wy,M:Iy};function Qy(){var t=el.f(),e=Yi();return t||e}function Vy(t){var e=ta(t);e!==null&&e.tag===5&&e.type==="form"?Ff(e):el.r(t)}var Ra=typeof document>"u"?null:document;function Ud(t,e,l){var a=Ra;if(a&&typeof e=="string"&&e){var n=Se(e);n='link[rel="'+t+'"][href="'+n+'"]',typeof l=="string"&&(n+='[crossorigin="'+l+'"]'),Rd.has(n)||(Rd.add(n),t={rel:t,crossOrigin:l,href:e},a.querySelector(n)===null&&(e=a.createElement("link"),Ft(e,"link",t),Zt(e),a.head.appendChild(e)))}}function Ky(t){el.D(t),Ud("dns-prefetch",t,null)}function ky(t,e){el.C(t,e),Ud("preconnect",t,e)}function Jy(t,e,l){el.L(t,e,l);var a=Ra;if(a&&t&&e){var n='link[rel="preload"][as="'+Se(e)+'"]';e==="image"&&l&&l.imageSrcSet?(n+='[imagesrcset="'+Se(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(n+='[imagesizes="'+Se(l.imageSizes)+'"]')):n+='[href="'+Se(t)+'"]';var i=n;switch(e){case"style":i=Ua(t);break;case"script":i=Ba(t)}Ae.has(i)||(t=M({rel:"preload",href:e==="image"&&l&&l.imageSrcSet?void 0:t,as:e},l),Ae.set(i,t),a.querySelector(n)!==null||e==="style"&&a.querySelector(Bn(i))||e==="script"&&a.querySelector(Nn(i))||(e=a.createElement("link"),Ft(e,"link",t),Zt(e),a.head.appendChild(e)))}}function Fy(t,e){el.m(t,e);var l=Ra;if(l&&t){var a=e&&typeof e.as=="string"?e.as:"script",n='link[rel="modulepreload"][as="'+Se(a)+'"][href="'+Se(t)+'"]',i=n;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=Ba(t)}if(!Ae.has(i)&&(t=M({rel:"modulepreload",href:t},e),Ae.set(i,t),l.querySelector(n)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Nn(i)))return}a=l.createElement("link"),Ft(a,"link",t),Zt(a),l.head.appendChild(a)}}}function Wy(t,e,l){el.S(t,e,l);var a=Ra;if(a&&t){var n=ea(a).hoistableStyles,i=Ua(t);e=e||"default";var u=n.get(i);if(!u){var f={loading:0,preload:null};if(u=a.querySelector(Bn(i)))f.loading=5;else{t=M({rel:"stylesheet",href:t,"data-precedence":e},l),(l=Ae.get(i))&&Eo(t,l);var y=u=a.createElement("link");Zt(y),Ft(y,"link",t),y._p=new Promise(function(S,j){y.onload=S,y.onerror=j}),y.addEventListener("load",function(){f.loading|=1}),y.addEventListener("error",function(){f.loading|=2}),f.loading|=4,Fi(u,e,a)}u={type:"stylesheet",instance:u,count:1,state:f},n.set(i,u)}}}function $y(t,e){el.X(t,e);var l=Ra;if(l&&t){var a=ea(l).hoistableScripts,n=Ba(t),i=a.get(n);i||(i=l.querySelector(Nn(n)),i||(t=M({src:t,async:!0},e),(e=Ae.get(n))&&Mo(t,e),i=l.createElement("script"),Zt(i),Ft(i,"link",t),l.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},a.set(n,i))}}function Iy(t,e){el.M(t,e);var l=Ra;if(l&&t){var a=ea(l).hoistableScripts,n=Ba(t),i=a.get(n);i||(i=l.querySelector(Nn(n)),i||(t=M({src:t,async:!0,type:"module"},e),(e=Ae.get(n))&&Mo(t,e),i=l.createElement("script"),Zt(i),Ft(i,"link",t),l.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},a.set(n,i))}}function Bd(t,e,l,a){var n=(n=Ue.current)?Ji(n):null;if(!n)throw Error(o(446));switch(t){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(e=Ua(l.href),l=ea(n).hoistableStyles,a=l.get(e),a||(a={type:"style",instance:null,count:0,state:null},l.set(e,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){t=Ua(l.href);var i=ea(n).hoistableStyles,u=i.get(t);if(u||(n=n.ownerDocument||n,u={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},i.set(t,u),(i=n.querySelector(Bn(t)))&&!i._p&&(u.instance=i,u.state.loading=5),Ae.has(t)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},Ae.set(t,l),i||Py(n,t,l,u.state))),e&&a===null)throw Error(o(528,""));return u}if(e&&a!==null)throw Error(o(529,""));return null;case"script":return e=l.async,l=l.src,typeof l=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=Ba(l),l=ea(n).hoistableScripts,a=l.get(e),a||(a={type:"script",instance:null,count:0,state:null},l.set(e,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,t))}}function Ua(t){return'href="'+Se(t)+'"'}function Bn(t){return'link[rel="stylesheet"]['+t+"]"}function Nd(t){return M({},t,{"data-precedence":t.precedence,precedence:null})}function Py(t,e,l,a){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?a.loading=1:(e=t.createElement("link"),a.preload=e,e.addEventListener("load",function(){return a.loading|=1}),e.addEventListener("error",function(){return a.loading|=2}),Ft(e,"link",l),Zt(e),t.head.appendChild(e))}function Ba(t){return'[src="'+Se(t)+'"]'}function Nn(t){return"script[async]"+t}function Hd(t,e,l){if(e.count++,e.instance===null)switch(e.type){case"style":var a=t.querySelector('style[data-href~="'+Se(l.href)+'"]');if(a)return e.instance=a,Zt(a),a;var n=M({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(t.ownerDocument||t).createElement("style"),Zt(a),Ft(a,"style",n),Fi(a,l.precedence,t),e.instance=a;case"stylesheet":n=Ua(l.href);var i=t.querySelector(Bn(n));if(i)return e.state.loading|=4,e.instance=i,Zt(i),i;a=Nd(l),(n=Ae.get(n))&&Eo(a,n),i=(t.ownerDocument||t).createElement("link"),Zt(i);var u=i;return u._p=new Promise(function(f,y){u.onload=f,u.onerror=y}),Ft(i,"link",a),e.state.loading|=4,Fi(i,l.precedence,t),e.instance=i;case"script":return i=Ba(l.src),(n=t.querySelector(Nn(i)))?(e.instance=n,Zt(n),n):(a=l,(n=Ae.get(i))&&(a=M({},l),Mo(a,n)),t=t.ownerDocument||t,n=t.createElement("script"),Zt(n),Ft(n,"link",a),t.head.appendChild(n),e.instance=n);case"void":return null;default:throw Error(o(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(a=e.instance,e.state.loading|=4,Fi(a,l.precedence,t));return e.instance}function Fi(t,e,l){for(var a=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),n=a.length?a[a.length-1]:null,i=n,u=0;u<a.length;u++){var f=a[u];if(f.dataset.precedence===e)i=f;else if(i!==n)break}i?i.parentNode.insertBefore(t,i.nextSibling):(e=l.nodeType===9?l.head:l,e.insertBefore(t,e.firstChild))}function Eo(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function Mo(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var Wi=null;function wd(t,e,l){if(Wi===null){var a=new Map,n=Wi=new Map;n.set(l,a)}else n=Wi,a=n.get(l),a||(a=new Map,n.set(l,a));if(a.has(t))return a;for(a.set(t,null),l=l.getElementsByTagName(t),n=0;n<l.length;n++){var i=l[n];if(!(i[Wa]||i[Vt]||t==="link"&&i.getAttribute("rel")==="stylesheet")&&i.namespaceURI!=="http://www.w3.org/2000/svg"){var u=i.getAttribute(e)||"";u=t+u;var f=a.get(u);f?f.push(i):a.set(u,[i])}}return a}function Ld(t,e,l){t=t.ownerDocument||t,t.head.insertBefore(l,e==="title"?t.querySelector("head > title"):null)}function t0(t,e,l){if(l===1||e.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof e.precedence!="string"||typeof e.href!="string"||e.href==="")break;return!0;case"link":if(typeof e.rel!="string"||typeof e.href!="string"||e.href===""||e.onLoad||e.onError)break;switch(e.rel){case"stylesheet":return t=e.disabled,typeof e.precedence=="string"&&t==null;default:return!0}case"script":if(e.async&&typeof e.async!="function"&&typeof e.async!="symbol"&&!e.onLoad&&!e.onError&&e.src&&typeof e.src=="string")return!0}return!1}function Yd(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function e0(t,e,l,a){if(l.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var n=Ua(a.href),i=e.querySelector(Bn(n));if(i){e=i._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=$i.bind(t),e.then(t,t)),l.state.loading|=4,l.instance=i,Zt(i);return}i=e.ownerDocument||e,a=Nd(a),(n=Ae.get(n))&&Eo(a,n),i=i.createElement("link"),Zt(i);var u=i;u._p=new Promise(function(f,y){u.onload=f,u.onerror=y}),Ft(i,"link",a),l.instance=i}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(l,e),(e=l.state.preload)&&(l.state.loading&3)===0&&(t.count++,l=$i.bind(t),e.addEventListener("load",l),e.addEventListener("error",l))}}var jo=0;function l0(t,e){return t.stylesheets&&t.count===0&&Pi(t,t.stylesheets),0<t.count||0<t.imgCount?function(l){var a=setTimeout(function(){if(t.stylesheets&&Pi(t,t.stylesheets),t.unsuspend){var i=t.unsuspend;t.unsuspend=null,i()}},6e4+e);0<t.imgBytes&&jo===0&&(jo=62500*Hy());var n=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&Pi(t,t.stylesheets),t.unsuspend)){var i=t.unsuspend;t.unsuspend=null,i()}},(t.imgBytes>jo?50:800)+e);return t.unsuspend=l,function(){t.unsuspend=null,clearTimeout(a),clearTimeout(n)}}:null}function $i(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Pi(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var Ii=null;function Pi(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Ii=new Map,e.forEach(a0,t),Ii=null,$i.call(t))}function a0(t,e){if(!(e.state.loading&4)){var l=Ii.get(t);if(l)var a=l.get(null);else{l=new Map,Ii.set(t,l);for(var n=t.querySelectorAll("link[data-precedence],style[data-precedence]"),i=0;i<n.length;i++){var u=n[i];(u.nodeName==="LINK"||u.getAttribute("media")!=="not all")&&(l.set(u.dataset.precedence,u),a=u)}a&&l.set(null,a)}n=e.instance,u=n.getAttribute("data-precedence"),i=l.get(u)||a,i===a&&l.set(null,n),l.set(u,n),this.count++,a=$i.bind(this),n.addEventListener("load",a),n.addEventListener("error",a),i?i.parentNode.insertBefore(n,i.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(n,t.firstChild)),e.state.loading|=4}}var Hn={$$typeof:G,Provider:null,Consumer:null,_currentValue:$,_currentValue2:$,_threadCount:0};function n0(t,e,l,a,n,i,u,f,y){this.tag=1,this.containerInfo=t,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=xs(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=xs(0),this.hiddenUpdates=xs(null),this.identifierPrefix=a,this.onUncaughtError=n,this.onCaughtError=i,this.onRecoverableError=u,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=y,this.incompleteTransitions=new Map}function qd(t,e,l,a,n,i,u,f,y,S,j,C){return t=new n0(t,e,l,u,y,S,j,C,f),e=1,i===!0&&(e|=24),i=he(3,null,null,e),t.current=i,i.stateNode=t,e=iu(),e.refCount++,t.pooledCache=e,e.refCount++,i.memoizedState={element:a,isDehydrated:l,cache:e},cu(i),t}function Gd(t){return t?(t=ra,t):ra}function Xd(t,e,l,a,n,i){n=Gd(n),a.context===null?a.context=n:a.pendingContext=n,a=rl(e),a.payload={element:l},i=i===void 0?null:i,i!==null&&(a.callback=i),l=dl(t,a,e),l!==null&&(se(l,t,e),mn(l,t,e))}function Zd(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var l=t.retryLane;t.retryLane=l!==0&&l<e?l:e}}function Ao(t,e){Zd(t,e),(t=t.alternate)&&Zd(t,e)}function Qd(t){if(t.tag===13||t.tag===31){var e=Nl(t,67108864);e!==null&&se(e,t,67108864),Ao(t,67108864)}}function Vd(t){if(t.tag===13||t.tag===31){var e=ve();e=_s(e);var l=Nl(t,e);l!==null&&se(l,t,e),Ao(t,e)}}var ts=!0;function i0(t,e,l,a){var n=A.T;A.T=null;var i=q.p;try{q.p=2,Do(t,e,l,a)}finally{q.p=i,A.T=n}}function s0(t,e,l,a){var n=A.T;A.T=null;var i=q.p;try{q.p=8,Do(t,e,l,a)}finally{q.p=i,A.T=n}}function Do(t,e,l,a){if(ts){var n=Co(a);if(n===null)yo(t,e,a,es,l),kd(t,a);else if(o0(n,t,e,l,a))a.stopPropagation();else if(kd(t,a),e&4&&-1<u0.indexOf(t)){for(;n!==null;){var i=ta(n);if(i!==null)switch(i.tag){case 3:if(i=i.stateNode,i.current.memoizedState.isDehydrated){var u=Cl(i.pendingLanes);if(u!==0){var f=i;for(f.pendingLanes|=2,f.entangledLanes|=2;u;){var y=1<<31-re(u);f.entanglements[1]|=y,u&=~y}we(i),(yt&6)===0&&(wi=ce()+500,Cn(0))}}break;case 31:case 13:f=Nl(i,2),f!==null&&se(f,i,2),Yi(),Ao(i,2)}if(i=Co(a),i===null&&yo(t,e,a,es,l),i===n)break;n=i}n!==null&&a.stopPropagation()}else yo(t,e,a,null,l)}}function Co(t){return t=Os(t),Oo(t)}var es=null;function Oo(t){if(es=null,t=Pl(t),t!==null){var e=m(t);if(e===null)t=null;else{var l=e.tag;if(l===13){if(t=v(e),t!==null)return t;t=null}else if(l===31){if(t=_(e),t!==null)return t;t=null}else if(l===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null)}}return es=t,null}function Kd(t){switch(t){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Kh()){case Po:return 2;case tc:return 8;case Qn:case kh:return 32;case ec:return 268435456;default:return 32}default:return 32}}var Ro=!1,zl=null,Tl=null,El=null,wn=new Map,Ln=new Map,Ml=[],u0="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function kd(t,e){switch(t){case"focusin":case"focusout":zl=null;break;case"dragenter":case"dragleave":Tl=null;break;case"mouseover":case"mouseout":El=null;break;case"pointerover":case"pointerout":wn.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ln.delete(e.pointerId)}}function Yn(t,e,l,a,n,i){return t===null||t.nativeEvent!==i?(t={blockedOn:e,domEventName:l,eventSystemFlags:a,nativeEvent:i,targetContainers:[n]},e!==null&&(e=ta(e),e!==null&&Qd(e)),t):(t.eventSystemFlags|=a,e=t.targetContainers,n!==null&&e.indexOf(n)===-1&&e.push(n),t)}function o0(t,e,l,a,n){switch(e){case"focusin":return zl=Yn(zl,t,e,l,a,n),!0;case"dragenter":return Tl=Yn(Tl,t,e,l,a,n),!0;case"mouseover":return El=Yn(El,t,e,l,a,n),!0;case"pointerover":var i=n.pointerId;return wn.set(i,Yn(wn.get(i)||null,t,e,l,a,n)),!0;case"gotpointercapture":return i=n.pointerId,Ln.set(i,Yn(Ln.get(i)||null,t,e,l,a,n)),!0}return!1}function Jd(t){var e=Pl(t.target);if(e!==null){var l=m(e);if(l!==null){if(e=l.tag,e===13){if(e=v(l),e!==null){t.blockedOn=e,uc(t.priority,function(){Vd(l)});return}}else if(e===31){if(e=_(l),e!==null){t.blockedOn=e,uc(t.priority,function(){Vd(l)});return}}else if(e===3&&l.stateNode.current.memoizedState.isDehydrated){t.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}t.blockedOn=null}function ls(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var l=Co(t.nativeEvent);if(l===null){l=t.nativeEvent;var a=new l.constructor(l.type,l);Cs=a,l.target.dispatchEvent(a),Cs=null}else return e=ta(l),e!==null&&Qd(e),t.blockedOn=l,!1;e.shift()}return!0}function Fd(t,e,l){ls(t)&&l.delete(e)}function c0(){Ro=!1,zl!==null&&ls(zl)&&(zl=null),Tl!==null&&ls(Tl)&&(Tl=null),El!==null&&ls(El)&&(El=null),wn.forEach(Fd),Ln.forEach(Fd)}function as(t,e){t.blockedOn===e&&(t.blockedOn=null,Ro||(Ro=!0,c.unstable_scheduleCallback(c.unstable_NormalPriority,c0)))}var ns=null;function Wd(t){ns!==t&&(ns=t,c.unstable_scheduleCallback(c.unstable_NormalPriority,function(){ns===t&&(ns=null);for(var e=0;e<t.length;e+=3){var l=t[e],a=t[e+1],n=t[e+2];if(typeof a!="function"){if(Oo(a||l)===null)continue;break}var i=ta(l);i!==null&&(t.splice(e,3),e-=3,Du(i,{pending:!0,data:n,method:l.method,action:a},a,n))}}))}function Na(t){function e(y){return as(y,t)}zl!==null&&as(zl,t),Tl!==null&&as(Tl,t),El!==null&&as(El,t),wn.forEach(e),Ln.forEach(e);for(var l=0;l<Ml.length;l++){var a=Ml[l];a.blockedOn===t&&(a.blockedOn=null)}for(;0<Ml.length&&(l=Ml[0],l.blockedOn===null);)Jd(l),l.blockedOn===null&&Ml.shift();if(l=(t.ownerDocument||t).$$reactFormReplay,l!=null)for(a=0;a<l.length;a+=3){var n=l[a],i=l[a+1],u=n[te]||null;if(typeof i=="function")u||Wd(l);else if(u){var f=null;if(i&&i.hasAttribute("formAction")){if(n=i,u=i[te]||null)f=u.formAction;else if(Oo(n)!==null)continue}else f=u.action;typeof f=="function"?l[a+1]=f:(l.splice(a,3),a-=3),Wd(l)}}}function $d(){function t(i){i.canIntercept&&i.info==="react-transition"&&i.intercept({handler:function(){return new Promise(function(u){return n=u})},focusReset:"manual",scroll:"manual"})}function e(){n!==null&&(n(),n=null),a||setTimeout(l,20)}function l(){if(!a&&!navigation.transition){var i=navigation.currentEntry;i&&i.url!=null&&navigation.navigate(i.url,{state:i.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,n=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",e),navigation.addEventListener("navigateerror",e),setTimeout(l,100),function(){a=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",e),navigation.removeEventListener("navigateerror",e),n!==null&&(n(),n=null)}}}function Uo(t){this._internalRoot=t}is.prototype.render=Uo.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(o(409));var l=e.current,a=ve();Xd(l,a,t,e,null,null)},is.prototype.unmount=Uo.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;Xd(t.current,2,null,t,null,null),Yi(),e[Il]=null}};function is(t){this._internalRoot=t}is.prototype.unstable_scheduleHydration=function(t){if(t){var e=sc();t={blockedOn:null,target:t,priority:e};for(var l=0;l<Ml.length&&e!==0&&e<Ml[l].priority;l++);Ml.splice(l,0,t),l===0&&Jd(t)}};var Id=s.version;if(Id!=="19.2.7")throw Error(o(527,Id,"19.2.7"));q.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(o(188)):(t=Object.keys(t).join(","),Error(o(268,t)));return t=O(e),t=t!==null?R(t):null,t=t===null?null:t.stateNode,t};var f0={bundleType:0,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:A,reconcilerVersion:"19.2.7"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ss=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ss.isDisabled&&ss.supportsFiber)try{ka=ss.inject(f0),fe=ss}catch{}}return Xn.createRoot=function(t,e){if(!h(t))throw Error(o(299));var l=!1,a="",n=ir,i=sr,u=ur;return e!=null&&(e.unstable_strictMode===!0&&(l=!0),e.identifierPrefix!==void 0&&(a=e.identifierPrefix),e.onUncaughtError!==void 0&&(n=e.onUncaughtError),e.onCaughtError!==void 0&&(i=e.onCaughtError),e.onRecoverableError!==void 0&&(u=e.onRecoverableError)),e=qd(t,1,!1,null,null,l,a,null,n,i,u,$d),t[Il]=e.current,mo(t),new Uo(e)},Xn.hydrateRoot=function(t,e,l){if(!h(t))throw Error(o(299));var a=!1,n="",i=ir,u=sr,f=ur,y=null;return l!=null&&(l.unstable_strictMode===!0&&(a=!0),l.identifierPrefix!==void 0&&(n=l.identifierPrefix),l.onUncaughtError!==void 0&&(i=l.onUncaughtError),l.onCaughtError!==void 0&&(u=l.onCaughtError),l.onRecoverableError!==void 0&&(f=l.onRecoverableError),l.formState!==void 0&&(y=l.formState)),e=qd(t,1,!0,e,l??null,a,n,y,i,u,f,$d),e.context=Gd(null),l=e.current,a=ve(),a=_s(a),n=rl(a),n.callback=null,dl(l,n,a),l=a,e.current.lanes=l,Fa(e,l),we(e),t[Il]=e.current,mo(t),new is(e)},Xn.version="19.2.7",Xn}var rh;function W0(){if(rh)return Ho.exports;rh=1;function c(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(c)}catch(s){console.error(s)}}return c(),Ho.exports=F0(),Ho.exports}var $0=W0(),B=Rh();const I0="";async function Ka(c){const s=await fetch(`${I0}${c}`);if(!s.ok)throw new Error(`${s.status} ${s.statusText}: ${c}`);return s.json()}function ko(c){return c instanceof Error?c.message:String(c)}function P0(){return Ka("/api/memories")}function tp(){return Ka("/api/stats")}function ep(){return Ka("/api/conflicts")}function lp(){return Ka("/api/embeddings")}function ap(){return Ka("/api/cards")}function np(c){return Ka(`/api/cards/${encodeURIComponent(c)}`)}const dh={type:"change"},Jo={type:"start"},Uh={type:"end"},us=new m0,hh=new y0,ip=Math.cos(70*p0.DEG2RAD),Xt=new Wt,ue=2*Math.PI,_t={NONE:-1,ROTATE:0,DOLLY:1,PAN:2,TOUCH_ROTATE:3,TOUCH_PAN:4,TOUCH_DOLLY_PAN:5,TOUCH_DOLLY_ROTATE:6},Yo=1e-6;class sp extends h0{constructor(s,r=null){super(s,r),this.state=_t.NONE,this.target=new Wt,this.cursor=new Wt,this.minDistance=0,this.maxDistance=1/0,this.minZoom=0,this.maxZoom=1/0,this.minTargetRadius=0,this.maxTargetRadius=1/0,this.minPolarAngle=0,this.maxPolarAngle=Math.PI,this.minAzimuthAngle=-1/0,this.maxAzimuthAngle=1/0,this.enableDamping=!1,this.dampingFactor=.05,this.enableZoom=!0,this.zoomSpeed=1,this.enableRotate=!0,this.rotateSpeed=1,this.keyRotateSpeed=1,this.enablePan=!0,this.panSpeed=1,this.screenSpacePanning=!0,this.keyPanSpeed=7,this.zoomToCursor=!1,this.autoRotate=!1,this.autoRotateSpeed=2,this.keys={LEFT:"ArrowLeft",UP:"ArrowUp",RIGHT:"ArrowRight",BOTTOM:"ArrowDown"},this.mouseButtons={LEFT:Va.ROTATE,MIDDLE:Va.DOLLY,RIGHT:Va.PAN},this.touches={ONE:Qa.ROTATE,TWO:Qa.DOLLY_PAN},this.target0=this.target.clone(),this.position0=this.object.position.clone(),this.zoom0=this.object.zoom,this._cursorStyle="auto",this._domElementKeyEvents=null,this._lastPosition=new Wt,this._lastQuaternion=new Pd,this._lastTargetPosition=new Wt,this._quat=new Pd().setFromUnitVectors(s.up,new Wt(0,1,0)),this._quatInverse=this._quat.clone().invert(),this._spherical=new th,this._sphericalDelta=new th,this._scale=1,this._panOffset=new Wt,this._rotateStart=new Pt,this._rotateEnd=new Pt,this._rotateDelta=new Pt,this._panStart=new Pt,this._panEnd=new Pt,this._panDelta=new Pt,this._dollyStart=new Pt,this._dollyEnd=new Pt,this._dollyDelta=new Pt,this._dollyDirection=new Wt,this._mouse=new Pt,this._performCursorZoom=!1,this._pointers=[],this._pointerPositions={},this._controlActive=!1,this._onPointerMove=op.bind(this),this._onPointerDown=up.bind(this),this._onPointerUp=cp.bind(this),this._onContextMenu=pp.bind(this),this._onMouseWheel=dp.bind(this),this._onKeyDown=hp.bind(this),this._onTouchStart=mp.bind(this),this._onTouchMove=yp.bind(this),this._onMouseDown=fp.bind(this),this._onMouseMove=rp.bind(this),this._interceptControlDown=gp.bind(this),this._interceptControlUp=vp.bind(this),this.domElement!==null&&this.connect(this.domElement),this.update()}set cursorStyle(s){this._cursorStyle=s,s==="grab"?this.domElement.style.cursor="grab":this.domElement.style.cursor="auto"}get cursorStyle(){return this._cursorStyle}connect(s){super.connect(s),this.domElement.addEventListener("pointerdown",this._onPointerDown),this.domElement.addEventListener("pointercancel",this._onPointerUp),this.domElement.addEventListener("contextmenu",this._onContextMenu),this.domElement.addEventListener("wheel",this._onMouseWheel,{passive:!1}),this.domElement.getRootNode().addEventListener("keydown",this._interceptControlDown,{passive:!0,capture:!0}),this.domElement.style.touchAction="none"}disconnect(){this.domElement.removeEventListener("pointerdown",this._onPointerDown),this.domElement.ownerDocument.removeEventListener("pointermove",this._onPointerMove),this.domElement.ownerDocument.removeEventListener("pointerup",this._onPointerUp),this.domElement.removeEventListener("pointercancel",this._onPointerUp),this.domElement.removeEventListener("wheel",this._onMouseWheel),this.domElement.removeEventListener("contextmenu",this._onContextMenu),this.stopListenToKeyEvents(),this.domElement.getRootNode().removeEventListener("keydown",this._interceptControlDown,{capture:!0}),this.domElement.style.touchAction=""}dispose(){this.disconnect()}getPolarAngle(){return this._spherical.phi}getAzimuthalAngle(){return this._spherical.theta}getDistance(){return this.object.position.distanceTo(this.target)}listenToKeyEvents(s){s.addEventListener("keydown",this._onKeyDown),this._domElementKeyEvents=s}stopListenToKeyEvents(){this._domElementKeyEvents!==null&&(this._domElementKeyEvents.removeEventListener("keydown",this._onKeyDown),this._domElementKeyEvents=null)}saveState(){this.target0.copy(this.target),this.position0.copy(this.object.position),this.zoom0=this.object.zoom}reset(){this.target.copy(this.target0),this.object.position.copy(this.position0),this.object.zoom=this.zoom0,this.object.updateProjectionMatrix(),this.dispatchEvent(dh),this.update(),this.state=_t.NONE}pan(s,r){this._pan(s,r),this.update()}dollyIn(s){this._dollyIn(s),this.update()}dollyOut(s){this._dollyOut(s),this.update()}rotateLeft(s){this._rotateLeft(s),this.update()}rotateUp(s){this._rotateUp(s),this.update()}update(s=null){const r=this.object.position;Xt.copy(r).sub(this.target),Xt.applyQuaternion(this._quat),this._spherical.setFromVector3(Xt),this.autoRotate&&this.state===_t.NONE&&this._rotateLeft(this._getAutoRotationAngle(s)),this.enableDamping?(this._spherical.theta+=this._sphericalDelta.theta*this.dampingFactor,this._spherical.phi+=this._sphericalDelta.phi*this.dampingFactor):(this._spherical.theta+=this._sphericalDelta.theta,this._spherical.phi+=this._sphericalDelta.phi);let o=this.minAzimuthAngle,h=this.maxAzimuthAngle;isFinite(o)&&isFinite(h)&&(o<-Math.PI?o+=ue:o>Math.PI&&(o-=ue),h<-Math.PI?h+=ue:h>Math.PI&&(h-=ue),o<=h?this._spherical.theta=Math.max(o,Math.min(h,this._spherical.theta)):this._spherical.theta=this._spherical.theta>(o+h)/2?Math.max(o,this._spherical.theta):Math.min(h,this._spherical.theta)),this._spherical.phi=Math.max(this.minPolarAngle,Math.min(this.maxPolarAngle,this._spherical.phi)),this._spherical.makeSafe(),this.enableDamping===!0?this.target.addScaledVector(this._panOffset,this.dampingFactor):this.target.add(this._panOffset),this.target.sub(this.cursor),this.target.clampLength(this.minTargetRadius,this.maxTargetRadius),this.target.add(this.cursor);let m=!1;if(this.zoomToCursor&&this._performCursorZoom||this.object.isOrthographicCamera)this._spherical.radius=this._clampDistance(this._spherical.radius);else{const v=this._spherical.radius;this._spherical.radius=this._clampDistance(this._spherical.radius*this._scale),m=v!=this._spherical.radius}if(Xt.setFromSpherical(this._spherical),Xt.applyQuaternion(this._quatInverse),r.copy(this.target).add(Xt),this.object.lookAt(this.target),this.enableDamping===!0?(this._sphericalDelta.theta*=1-this.dampingFactor,this._sphericalDelta.phi*=1-this.dampingFactor,this._panOffset.multiplyScalar(1-this.dampingFactor)):(this._sphericalDelta.set(0,0,0),this._panOffset.set(0,0,0)),this.zoomToCursor&&this._performCursorZoom){let v=null;if(this.object.isPerspectiveCamera){const _=Xt.length();v=this._clampDistance(_*this._scale);const U=_-v;this.object.position.addScaledVector(this._dollyDirection,U),this.object.updateMatrixWorld(),m=!!U}else if(this.object.isOrthographicCamera){const _=new Wt(this._mouse.x,this._mouse.y,0);_.unproject(this.object);const U=this.object.zoom;this.object.zoom=Math.max(this.minZoom,Math.min(this.maxZoom,this.object.zoom/this._scale)),this.object.updateProjectionMatrix(),m=U!==this.object.zoom;const O=new Wt(this._mouse.x,this._mouse.y,0);O.unproject(this.object),this.object.position.sub(O).add(_),this.object.updateMatrixWorld(),v=Xt.length()}else console.warn("WARNING: OrbitControls.js encountered an unknown camera type - zoom to cursor disabled."),this.zoomToCursor=!1;v!==null&&(this.screenSpacePanning?this.target.set(0,0,-1).transformDirection(this.object.matrix).multiplyScalar(v).add(this.object.position):(us.origin.copy(this.object.position),us.direction.set(0,0,-1).transformDirection(this.object.matrix),Math.abs(this.object.up.dot(us.direction))<ip?this.object.lookAt(this.target):(hh.setFromNormalAndCoplanarPoint(this.object.up,this.target),us.intersectPlane(hh,this.target))))}else if(this.object.isOrthographicCamera){const v=this.object.zoom;this.object.zoom=Math.max(this.minZoom,Math.min(this.maxZoom,this.object.zoom/this._scale)),v!==this.object.zoom&&(this.object.updateProjectionMatrix(),m=!0)}return this._scale=1,this._performCursorZoom=!1,m||this._lastPosition.distanceToSquared(this.object.position)>Yo||8*(1-this._lastQuaternion.dot(this.object.quaternion))>Yo||this._lastTargetPosition.distanceToSquared(this.target)>Yo?(this.dispatchEvent(dh),this._lastPosition.copy(this.object.position),this._lastQuaternion.copy(this.object.quaternion),this._lastTargetPosition.copy(this.target),!0):!1}_getAutoRotationAngle(s){return s!==null?ue/60*this.autoRotateSpeed*s:ue/60/60*this.autoRotateSpeed}_getZoomScale(s){const r=Math.abs(s*.01);return Math.pow(.95,this.zoomSpeed*r)}_rotateLeft(s){this._sphericalDelta.theta-=s}_rotateUp(s){this._sphericalDelta.phi-=s}_panLeft(s,r){Xt.setFromMatrixColumn(r,0),Xt.multiplyScalar(-s),this._panOffset.add(Xt)}_panUp(s,r){this.screenSpacePanning===!0?Xt.setFromMatrixColumn(r,1):(Xt.setFromMatrixColumn(r,0),Xt.crossVectors(this.object.up,Xt)),Xt.multiplyScalar(s),this._panOffset.add(Xt)}_pan(s,r){const o=this.domElement;if(this.object.isPerspectiveCamera){const h=this.object.position;Xt.copy(h).sub(this.target);let m=Xt.length();m*=Math.tan(this.object.fov/2*Math.PI/180),this._panLeft(2*s*m/o.clientHeight,this.object.matrix),this._panUp(2*r*m/o.clientHeight,this.object.matrix)}else this.object.isOrthographicCamera?(this._panLeft(s*(this.object.right-this.object.left)/this.object.zoom/o.clientWidth,this.object.matrix),this._panUp(r*(this.object.top-this.object.bottom)/this.object.zoom/o.clientHeight,this.object.matrix)):(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - pan disabled."),this.enablePan=!1)}_dollyOut(s){this.object.isPerspectiveCamera||this.object.isOrthographicCamera?this._scale/=s:(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),this.enableZoom=!1)}_dollyIn(s){this.object.isPerspectiveCamera||this.object.isOrthographicCamera?this._scale*=s:(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),this.enableZoom=!1)}_updateZoomParameters(s,r){if(!this.zoomToCursor)return;this._performCursorZoom=!0;const o=this.domElement.getBoundingClientRect(),h=s-o.left,m=r-o.top,v=o.width,_=o.height;this._mouse.x=h/v*2-1,this._mouse.y=-(m/_)*2+1,this._dollyDirection.set(this._mouse.x,this._mouse.y,1).unproject(this.object).sub(this.object.position).normalize()}_clampDistance(s){return Math.max(this.minDistance,Math.min(this.maxDistance,s))}_handleMouseDownRotate(s){this._rotateStart.set(s.clientX,s.clientY)}_handleMouseDownDolly(s){this._updateZoomParameters(s.clientX,s.clientX),this._dollyStart.set(s.clientX,s.clientY)}_handleMouseDownPan(s){this._panStart.set(s.clientX,s.clientY)}_handleMouseMoveRotate(s){this._rotateEnd.set(s.clientX,s.clientY),this._rotateDelta.subVectors(this._rotateEnd,this._rotateStart).multiplyScalar(this.rotateSpeed);const r=this.domElement;this._rotateLeft(ue*this._rotateDelta.x/r.clientHeight),this._rotateUp(ue*this._rotateDelta.y/r.clientHeight),this._rotateStart.copy(this._rotateEnd),this.update()}_handleMouseMoveDolly(s){this._dollyEnd.set(s.clientX,s.clientY),this._dollyDelta.subVectors(this._dollyEnd,this._dollyStart),this._dollyDelta.y>0?this._dollyOut(this._getZoomScale(this._dollyDelta.y)):this._dollyDelta.y<0&&this._dollyIn(this._getZoomScale(this._dollyDelta.y)),this._dollyStart.copy(this._dollyEnd),this.update()}_handleMouseMovePan(s){this._panEnd.set(s.clientX,s.clientY),this._panDelta.subVectors(this._panEnd,this._panStart).multiplyScalar(this.panSpeed),this._pan(this._panDelta.x,this._panDelta.y),this._panStart.copy(this._panEnd),this.update()}_handleMouseWheel(s){this._updateZoomParameters(s.clientX,s.clientY),s.deltaY<0?this._dollyIn(this._getZoomScale(s.deltaY)):s.deltaY>0&&this._dollyOut(this._getZoomScale(s.deltaY)),this.update()}_handleKeyDown(s){let r=!1;switch(s.code){case this.keys.UP:s.ctrlKey||s.metaKey||s.shiftKey?this.enableRotate&&this._rotateUp(ue*this.keyRotateSpeed/this.domElement.clientHeight):this.enablePan&&this._pan(0,this.keyPanSpeed),r=!0;break;case this.keys.BOTTOM:s.ctrlKey||s.metaKey||s.shiftKey?this.enableRotate&&this._rotateUp(-ue*this.keyRotateSpeed/this.domElement.clientHeight):this.enablePan&&this._pan(0,-this.keyPanSpeed),r=!0;break;case this.keys.LEFT:s.ctrlKey||s.metaKey||s.shiftKey?this.enableRotate&&this._rotateLeft(ue*this.keyRotateSpeed/this.domElement.clientHeight):this.enablePan&&this._pan(this.keyPanSpeed,0),r=!0;break;case this.keys.RIGHT:s.ctrlKey||s.metaKey||s.shiftKey?this.enableRotate&&this._rotateLeft(-ue*this.keyRotateSpeed/this.domElement.clientHeight):this.enablePan&&this._pan(-this.keyPanSpeed,0),r=!0;break}r&&(s.preventDefault(),this.update())}_handleTouchStartRotate(s){if(this._pointers.length===1)this._rotateStart.set(s.pageX,s.pageY);else{const r=this._getSecondPointerPosition(s),o=.5*(s.pageX+r.x),h=.5*(s.pageY+r.y);this._rotateStart.set(o,h)}}_handleTouchStartPan(s){if(this._pointers.length===1)this._panStart.set(s.pageX,s.pageY);else{const r=this._getSecondPointerPosition(s),o=.5*(s.pageX+r.x),h=.5*(s.pageY+r.y);this._panStart.set(o,h)}}_handleTouchStartDolly(s){const r=this._getSecondPointerPosition(s),o=s.pageX-r.x,h=s.pageY-r.y,m=Math.sqrt(o*o+h*h);this._dollyStart.set(0,m)}_handleTouchStartDollyPan(s){this.enableZoom&&this._handleTouchStartDolly(s),this.enablePan&&this._handleTouchStartPan(s)}_handleTouchStartDollyRotate(s){this.enableZoom&&this._handleTouchStartDolly(s),this.enableRotate&&this._handleTouchStartRotate(s)}_handleTouchMoveRotate(s){if(this._pointers.length==1)this._rotateEnd.set(s.pageX,s.pageY);else{const o=this._getSecondPointerPosition(s),h=.5*(s.pageX+o.x),m=.5*(s.pageY+o.y);this._rotateEnd.set(h,m)}this._rotateDelta.subVectors(this._rotateEnd,this._rotateStart).multiplyScalar(this.rotateSpeed);const r=this.domElement;this._rotateLeft(ue*this._rotateDelta.x/r.clientHeight),this._rotateUp(ue*this._rotateDelta.y/r.clientHeight),this._rotateStart.copy(this._rotateEnd)}_handleTouchMovePan(s){if(this._pointers.length===1)this._panEnd.set(s.pageX,s.pageY);else{const r=this._getSecondPointerPosition(s),o=.5*(s.pageX+r.x),h=.5*(s.pageY+r.y);this._panEnd.set(o,h)}this._panDelta.subVectors(this._panEnd,this._panStart).multiplyScalar(this.panSpeed),this._pan(this._panDelta.x,this._panDelta.y),this._panStart.copy(this._panEnd)}_handleTouchMoveDolly(s){const r=this._getSecondPointerPosition(s),o=s.pageX-r.x,h=s.pageY-r.y,m=Math.sqrt(o*o+h*h);this._dollyEnd.set(0,m),this._dollyDelta.set(0,Math.pow(this._dollyEnd.y/this._dollyStart.y,this.zoomSpeed)),this._dollyOut(this._dollyDelta.y),this._dollyStart.copy(this._dollyEnd);const v=(s.pageX+r.x)*.5,_=(s.pageY+r.y)*.5;this._updateZoomParameters(v,_)}_handleTouchMoveDollyPan(s){this.enableZoom&&this._handleTouchMoveDolly(s),this.enablePan&&this._handleTouchMovePan(s)}_handleTouchMoveDollyRotate(s){this.enableZoom&&this._handleTouchMoveDolly(s),this.enableRotate&&this._handleTouchMoveRotate(s)}_addPointer(s){this._pointers.push(s.pointerId)}_removePointer(s){delete this._pointerPositions[s.pointerId];for(let r=0;r<this._pointers.length;r++)if(this._pointers[r]==s.pointerId){this._pointers.splice(r,1);return}}_isTrackingPointer(s){for(let r=0;r<this._pointers.length;r++)if(this._pointers[r]==s.pointerId)return!0;return!1}_trackPointer(s){let r=this._pointerPositions[s.pointerId];r===void 0&&(r=new Pt,this._pointerPositions[s.pointerId]=r),r.set(s.pageX,s.pageY)}_getSecondPointerPosition(s){const r=s.pointerId===this._pointers[0]?this._pointers[1]:this._pointers[0];return this._pointerPositions[r]}_customWheelEvent(s){const r=s.deltaMode,o={clientX:s.clientX,clientY:s.clientY,deltaY:s.deltaY};switch(r){case 1:o.deltaY*=16;break;case 2:o.deltaY*=100;break}return s.ctrlKey&&!this._controlActive&&(o.deltaY*=10),o}}function up(c){this.enabled!==!1&&(this._pointers.length===0&&(this.domElement.setPointerCapture(c.pointerId),this.domElement.ownerDocument.addEventListener("pointermove",this._onPointerMove),this.domElement.ownerDocument.addEventListener("pointerup",this._onPointerUp)),!this._isTrackingPointer(c)&&(this._addPointer(c),c.pointerType==="touch"?this._onTouchStart(c):this._onMouseDown(c),this._cursorStyle==="grab"&&(this.domElement.style.cursor="grabbing")))}function op(c){this.enabled!==!1&&(c.pointerType==="touch"?this._onTouchMove(c):this._onMouseMove(c))}function cp(c){switch(this._removePointer(c),this._pointers.length){case 0:this.domElement.releasePointerCapture(c.pointerId),this.domElement.ownerDocument.removeEventListener("pointermove",this._onPointerMove),this.domElement.ownerDocument.removeEventListener("pointerup",this._onPointerUp),this.dispatchEvent(Uh),this.state=_t.NONE,this._cursorStyle==="grab"&&(this.domElement.style.cursor="grab");break;case 1:const s=this._pointers[0],r=this._pointerPositions[s];this._onTouchStart({pointerId:s,pageX:r.x,pageY:r.y});break}}function fp(c){let s;switch(c.button){case 0:s=this.mouseButtons.LEFT;break;case 1:s=this.mouseButtons.MIDDLE;break;case 2:s=this.mouseButtons.RIGHT;break;default:s=-1}switch(s){case Va.DOLLY:if(this.enableZoom===!1)return;this._handleMouseDownDolly(c),this.state=_t.DOLLY;break;case Va.ROTATE:if(c.ctrlKey||c.metaKey||c.shiftKey){if(this.enablePan===!1)return;this._handleMouseDownPan(c),this.state=_t.PAN}else{if(this.enableRotate===!1)return;this._handleMouseDownRotate(c),this.state=_t.ROTATE}break;case Va.PAN:if(c.ctrlKey||c.metaKey||c.shiftKey){if(this.enableRotate===!1)return;this._handleMouseDownRotate(c),this.state=_t.ROTATE}else{if(this.enablePan===!1)return;this._handleMouseDownPan(c),this.state=_t.PAN}break;default:this.state=_t.NONE}this.state!==_t.NONE&&this.dispatchEvent(Jo)}function rp(c){switch(this.state){case _t.ROTATE:if(this.enableRotate===!1)return;this._handleMouseMoveRotate(c);break;case _t.DOLLY:if(this.enableZoom===!1)return;this._handleMouseMoveDolly(c);break;case _t.PAN:if(this.enablePan===!1)return;this._handleMouseMovePan(c);break}}function dp(c){this.enabled===!1||this.enableZoom===!1||this.state!==_t.NONE||(c.preventDefault(),this.dispatchEvent(Jo),this._handleMouseWheel(this._customWheelEvent(c)),this.dispatchEvent(Uh))}function hp(c){this.enabled!==!1&&this._handleKeyDown(c)}function mp(c){switch(this._trackPointer(c),this._pointers.length){case 1:switch(this.touches.ONE){case Qa.ROTATE:if(this.enableRotate===!1)return;this._handleTouchStartRotate(c),this.state=_t.TOUCH_ROTATE;break;case Qa.PAN:if(this.enablePan===!1)return;this._handleTouchStartPan(c),this.state=_t.TOUCH_PAN;break;default:this.state=_t.NONE}break;case 2:switch(this.touches.TWO){case Qa.DOLLY_PAN:if(this.enableZoom===!1&&this.enablePan===!1)return;this._handleTouchStartDollyPan(c),this.state=_t.TOUCH_DOLLY_PAN;break;case Qa.DOLLY_ROTATE:if(this.enableZoom===!1&&this.enableRotate===!1)return;this._handleTouchStartDollyRotate(c),this.state=_t.TOUCH_DOLLY_ROTATE;break;default:this.state=_t.NONE}break;default:this.state=_t.NONE}this.state!==_t.NONE&&this.dispatchEvent(Jo)}function yp(c){switch(this._trackPointer(c),this.state){case _t.TOUCH_ROTATE:if(this.enableRotate===!1)return;this._handleTouchMoveRotate(c),this.update();break;case _t.TOUCH_PAN:if(this.enablePan===!1)return;this._handleTouchMovePan(c),this.update();break;case _t.TOUCH_DOLLY_PAN:if(this.enableZoom===!1&&this.enablePan===!1)return;this._handleTouchMoveDollyPan(c),this.update();break;case _t.TOUCH_DOLLY_ROTATE:if(this.enableZoom===!1&&this.enableRotate===!1)return;this._handleTouchMoveDollyRotate(c),this.update();break;default:this.state=_t.NONE}}function pp(c){this.enabled!==!1&&c.preventDefault()}function gp(c){c.key==="Control"&&(this._controlActive=!0,this.domElement.getRootNode().addEventListener("keyup",this._interceptControlUp,{passive:!0,capture:!0}))}function vp(c){c.key==="Control"&&(this._controlActive=!1,this.domElement.getRootNode().removeEventListener("keyup",this._interceptControlUp,{passive:!0,capture:!0}))}const bp={name:"CopyShader",uniforms:{tDiffuse:{value:null},opacity:{value:1}},vertexShader:`
34
-
35
- varying vec2 vUv;
36
-
37
- void main() {
38
-
39
- vUv = uv;
40
- gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );
41
-
42
- }`,fragmentShader:`
43
-
44
- uniform float opacity;
45
-
46
- uniform sampler2D tDiffuse;
47
-
48
- varying vec2 vUv;
49
-
50
- void main() {
51
-
52
- vec4 texel = texture2D( tDiffuse, vUv );
53
- gl_FragColor = opacity * texel;
54
-
55
-
56
- }`};class ys{constructor(){this.isPass=!0,this.enabled=!0,this.needsSwap=!0,this.clear=!1,this.renderToScreen=!1}setSize(){}render(){console.error("THREE.Pass: .render() must be implemented in derived pass.")}dispose(){}}const Sp=new g0(-1,1,1,-1,0,1);class xp extends Za{constructor(){super(),this.setAttribute("position",new eh([-1,3,0,-1,-1,0,3,-1,0],3)),this.setAttribute("uv",new eh([0,2,0,0,2,0],2))}}const _p=new xp;class zp{constructor(s){this._mesh=new hs(_p,s)}dispose(){this._mesh.geometry.dispose()}render(s){s.render(this._mesh,Sp)}get material(){return this._mesh.material}set material(s){this._mesh.material=s}}class Tp extends ys{constructor(s,r="tDiffuse"){super(),this.textureID=r,this.uniforms=null,this.material=null,s instanceof lh?(this.uniforms=s.uniforms,this.material=s):s&&(this.uniforms=v0.clone(s.uniforms),this.material=new lh({name:s.name!==void 0?s.name:"unspecified",defines:Object.assign({},s.defines),uniforms:this.uniforms,vertexShader:s.vertexShader,fragmentShader:s.fragmentShader})),this._fsQuad=new zp(this.material)}render(s,r,o){this.uniforms[this.textureID]&&(this.uniforms[this.textureID].value=o.texture),this._fsQuad.material=this.material,this.renderToScreen?(s.setRenderTarget(null),this._fsQuad.render(s)):(s.setRenderTarget(r),this.clear&&s.clear(s.autoClearColor,s.autoClearDepth,s.autoClearStencil),this._fsQuad.render(s))}dispose(){this.material.dispose(),this._fsQuad.dispose()}}class mh extends ys{constructor(s,r){super(),this.scene=s,this.camera=r,this.clear=!0,this.needsSwap=!1,this.inverse=!1}render(s,r,o){const h=s.getContext(),m=s.state;m.buffers.color.setMask(!1),m.buffers.depth.setMask(!1),m.buffers.color.setLocked(!0),m.buffers.depth.setLocked(!0);let v,_;this.inverse?(v=0,_=1):(v=1,_=0),m.buffers.stencil.setTest(!0),m.buffers.stencil.setOp(h.REPLACE,h.REPLACE,h.REPLACE),m.buffers.stencil.setFunc(h.ALWAYS,v,4294967295),m.buffers.stencil.setClear(_),m.buffers.stencil.setLocked(!0),s.setRenderTarget(o),this.clear&&s.clear(),s.render(this.scene,this.camera),s.setRenderTarget(r),this.clear&&s.clear(),s.render(this.scene,this.camera),m.buffers.color.setLocked(!1),m.buffers.depth.setLocked(!1),m.buffers.color.setMask(!0),m.buffers.depth.setMask(!0),m.buffers.stencil.setLocked(!1),m.buffers.stencil.setFunc(h.EQUAL,1,4294967295),m.buffers.stencil.setOp(h.KEEP,h.KEEP,h.KEEP),m.buffers.stencil.setLocked(!0)}}class Ep extends ys{constructor(){super(),this.needsSwap=!1}render(s){s.state.buffers.stencil.setLocked(!1),s.state.buffers.stencil.setTest(!1)}}class Mp{constructor(s,r){if(this.renderer=s,this._pixelRatio=s.getPixelRatio(),r===void 0){const o=s.getSize(new Pt);this._width=o.width,this._height=o.height,r=new b0(this._width*this._pixelRatio,this._height*this._pixelRatio,{type:S0}),r.texture.name="EffectComposer.rt1"}else this._width=r.width,this._height=r.height;this.renderTarget1=r,this.renderTarget2=r.clone(),this.renderTarget2.texture.name="EffectComposer.rt2",this.writeBuffer=this.renderTarget1,this.readBuffer=this.renderTarget2,this.renderToScreen=!0,this.passes=[],this.copyPass=new Tp(bp),this.copyPass.material.blending=x0,this.timer=new _0}swapBuffers(){const s=this.readBuffer;this.readBuffer=this.writeBuffer,this.writeBuffer=s}addPass(s){this.passes.push(s),s.setSize(this._width*this._pixelRatio,this._height*this._pixelRatio)}insertPass(s,r){this.passes.splice(r,0,s),s.setSize(this._width*this._pixelRatio,this._height*this._pixelRatio)}removePass(s){const r=this.passes.indexOf(s);r!==-1&&this.passes.splice(r,1)}isLastEnabledPass(s){for(let r=s+1;r<this.passes.length;r++)if(this.passes[r].enabled)return!1;return!0}render(s){this.timer.update(),s===void 0&&(s=this.timer.getDelta());const r=this.renderer.getRenderTarget();let o=!1;for(let h=0,m=this.passes.length;h<m;h++){const v=this.passes[h];if(v.enabled!==!1){if(v.renderToScreen=this.renderToScreen&&this.isLastEnabledPass(h),v.render(this.renderer,this.writeBuffer,this.readBuffer,s,o),v.needsSwap){if(o){const _=this.renderer.getContext(),U=this.renderer.state.buffers.stencil;U.setFunc(_.NOTEQUAL,1,4294967295),this.copyPass.render(this.renderer,this.writeBuffer,this.readBuffer,s),U.setFunc(_.EQUAL,1,4294967295)}this.swapBuffers()}mh!==void 0&&(v instanceof mh?o=!0:v instanceof Ep&&(o=!1))}}this.renderer.setRenderTarget(r)}reset(s){if(s===void 0){const r=this.renderer.getSize(new Pt);this._pixelRatio=this.renderer.getPixelRatio(),this._width=r.width,this._height=r.height,s=this.renderTarget1.clone(),s.setSize(this._width*this._pixelRatio,this._height*this._pixelRatio)}this.renderTarget1.dispose(),this.renderTarget2.dispose(),this.renderTarget1=s,this.renderTarget2=s.clone(),this.writeBuffer=this.renderTarget1,this.readBuffer=this.renderTarget2}setSize(s,r){this._width=s,this._height=r;const o=this._width*this._pixelRatio,h=this._height*this._pixelRatio;this.renderTarget1.setSize(o,h),this.renderTarget2.setSize(o,h);for(let m=0;m<this.passes.length;m++)this.passes[m].setSize(o,h)}setPixelRatio(s){this._pixelRatio=s,this.setSize(this._width,this._height)}dispose(){this.renderTarget1.dispose(),this.renderTarget2.dispose(),this.copyPass.dispose()}}class jp extends ys{constructor(s,r,o=null,h=null,m=null){super(),this.scene=s,this.camera=r,this.overrideMaterial=o,this.clearColor=h,this.clearAlpha=m,this.clear=!0,this.clearDepth=!1,this.needsSwap=!1,this.isRenderPass=!0,this._oldClearColor=new Ko}render(s,r,o){const h=s.autoClear;s.autoClear=!1;let m,v;this.overrideMaterial!==null&&(v=this.scene.overrideMaterial,this.scene.overrideMaterial=this.overrideMaterial),this.clearColor!==null&&(s.getClearColor(this._oldClearColor),s.setClearColor(this.clearColor,s.getClearAlpha())),this.clearAlpha!==null&&(m=s.getClearAlpha(),s.setClearAlpha(this.clearAlpha)),this.clearDepth==!0&&s.clearDepth(),s.setRenderTarget(this.renderToScreen?null:o),this.clear===!0&&s.clear(s.autoClearColor,s.autoClearDepth,s.autoClearStencil),s.render(this.scene,this.camera),this.clearColor!==null&&s.setClearColor(this._oldClearColor),this.clearAlpha!==null&&s.setClearAlpha(m),this.overrideMaterial!==null&&(this.scene.overrideMaterial=v),s.autoClear=h}}const yh="#f4efe6",Ap="#7c6caf",Dp="#4a8ca3",Cp="#5a8f6b",Op=16052198,Rp=12868668,ph=10504242,Up=8023907,Bp=12892584,Np=16776438,Re={buffer:Ap,episodic:Dp,semantic:Cp},gh={query:"",layers:new Set,strengthRange:[0,1],confidences:new Set,ageMaxDays:null,frozen:!1,fadingOnly:!1,agedOutOnly:!1,colorMode:"layer",localView:null},Hp=.1;function Fo(c){return c.strength<Hp&&!c.pinned}function wp(c){return!!(c.query.trim().length>0||c.layers.size>0||c.confidences.size>0||c.strengthRange[0]>0||c.strengthRange[1]<1||c.ageMaxDays!==null||c.fadingOnly||c.agedOutOnly||c.localView!==null)}function Bh(c,s){const r=s.trim().toLowerCase();return!r||c.content.toLowerCase().includes(r)?!0:c.tags.some(o=>o.toLowerCase().includes(r))}function Lp(c,s,r){const o=new Set,h=s.layers.size>0,m=s.confidences.size>0,[v,_]=s.strengthRange,U=v>0||_<1,O=s.ageMaxDays!==null;for(const R of c)Bh(R,s.query)&&(h&&!s.layers.has(R.layer)||m&&!s.confidences.has(R.confidence)||U&&(R.strength<v||R.strength>_)||O&&s.ageMaxDays!==null&&R.age_days>s.ageMaxDays||s.fadingOnly&&!Fo(R)||s.agedOutOnly&&!R.aged_out||s.localView!==null&&r!==void 0&&!r.has(R.id)||o.add(R.id));return o}const Yp=["#1e5a7d","#2d5e2b","#6b2876","#155a5a","#8a4d2e","#6f4f1f","#2d4d6b","#4d762a","#7f4848","#4a4a72"],qp=["#1e5a7d","#155a5a","#2d4d6b","#4a4a72","#6b2876","#2d5e2b","#4d762a","#7f4848"],qo="#6a6a6a",Nh="path:";function Gp(c){let s=2166136261;for(let r=0;r<c.length;r++)s^=c.charCodeAt(r),s=s+((s<<1)+(s<<4)+(s<<7)+(s<<8)+(s<<24))>>>0;return s>>>0}function vh(c,s){const{includePrefix:r,excludePrefix:o,topN:h,palette:m}=s,v=Math.min(h,m.length),_=new Map;for(const M of c)for(const z of M.tags)r!==void 0&&!z.startsWith(r)||o!==void 0&&z.startsWith(o)||_.set(z,(_.get(z)??0)+1);const U=[..._.entries()].sort((M,z)=>z[1]-M[1]||M[0].localeCompare(z[0])).slice(0,v).map(([M])=>M),O=new Map,R=new Set;for(const M of U){const z=Gp(M)%m.length;let E=z;for(;R.has(E)&&(E=(E+1)%m.length,E!==z););R.add(E),O.set(M,m[E])}return O}function Hh(c,s){const r=c.filter(o=>o.startsWith(Nh)&&!(s?.has(o)??!1));return r.length===0?null:(r.sort((o,h)=>o.length-h.length||o.localeCompare(h)),r[0]??null)}function Wo(c,s){if(s==="path")return Hh(c.tags);const r=c.tags.filter(o=>!o.startsWith(Nh));return r.length===0?null:(r.sort((o,h)=>o.length-h.length||o.localeCompare(h)),r[0]??null)}function Xp(c,s,r,o){if(s==="layer")return Re[c.layer]??qo;const h=Wo(c,s);return h===null?qo:(s==="path"?o:r).get(h)??qo}const os={softCap:50,hardCap:300,perTagTopK:15,minShared:2};function bh(c,s){return c<s?`${c}|${s}`:`${s}|${c}`}function wh(c,s={}){const r=s.softCap??os.softCap,o=s.hardCap??os.hardCap,h=s.perTagTopK??os.perTagTopK,m=s.minShared??os.minShared,v=s.excludePrefix,_=new Map;for(const M of c)for(const z of M.tags){if(v!==void 0&&z.startsWith(v))continue;let E=_.get(z);E===void 0&&(E=[],_.set(z,E)),E.push(M.id)}const U=[..._.entries()].sort((M,z)=>M[1].length-z[1].length),O=new Map;for(const[,M]of U)if(!(M.length<2)&&!(M.length>=o))if(M.length<r)for(let z=0;z<M.length;z++)for(let E=z+1;E<M.length;E++){const N=bh(M[z],M[E]);O.set(N,(O.get(N)??0)+1)}else{const z=[];for(let N=0;N<M.length;N++)for(let H=N+1;H<M.length;H++){const L=bh(M[N],M[H]);z.push({key:L,current:O.get(L)??0})}z.sort((N,H)=>H.current-N.current||N.key.localeCompare(H.key));const E=z.slice(0,h);for(const{key:N}of E)O.set(N,(O.get(N)??0)+1)}const R=[];for(const[M,z]of O){if(z<m)continue;const E=M.indexOf("|"),N=M.slice(0,E),H=M.slice(E+1);R.push({a:N,b:H,count:z})}return R.sort((M,z)=>z.count-M.count||M.a.localeCompare(z.a)||M.b.localeCompare(z.b)),R}const ms=30,Jl={alphaMin:.01,maxTicks:300,linkStrength:.4,chargeStrength:-30,centerStrength:.05,collideRadius:.6,bound:ms};function Ha(c,s,r){return c<s?s:c>r?r:c}function Zp(c,s,r,o={}){const h=o.alphaMin??Jl.alphaMin,m=o.maxTicks??Jl.maxTicks,v=o.linkStrength??Jl.linkStrength,_=o.chargeStrength??Jl.chargeStrength,U=o.centerStrength??Jl.centerStrength,O=o.collideRadius??Jl.collideRadius,R=o.bound??Jl.bound,M=o.alphaDecay??1-Math.pow(h,1/m),z=[],E=new Map;for(const X of c){const it=r?.get(X.id),at=it?{id:X.id,x:Ha(it.x,-R,R),y:Ha(it.z,-R,R)}:{id:X.id,x:0,y:0};z.push(at),E.set(X.id,at)}const N=[],H=new Set;for(const[X,it]of s)if(E.has(X))for(const at of it){if(!E.has(at))continue;const I=X<at?X:at,rt=X<at?at:X,pt=`${I}|${rt}`;H.has(pt)||(H.add(pt),N.push({source:I,target:rt}))}const L=L0(z).force("link",Y0(N).id(X=>X.id).strength(v).distance(2.5)).force("charge",q0().strength(_)).force("center",G0(0,0).strength(U)).force("collide",X0(O)).alphaMin(h).alphaDecay(M).stop(),P=o.projectAnchors;P&&P.size>0&&L.force("project-x",Z0(X=>P.get(X.id)?.x??0).strength(X=>P.get(X.id)?.strength??0)).force("project-y",Q0(X=>P.get(X.id)?.y??0).strength(X=>P.get(X.id)?.strength??0)),o.randomSource&&L.randomSource(o.randomSource);let Y=0,G=!1,V=!1;const W=new Set,K=()=>Y>=m||L.alpha()<=h,w=(X,it)=>{V=X;for(const at of W)at(X,it)};return{tick(){if(K()){G===!1&&(G=!0,V&&w(!1,"tick"));return}V||w(!0,"tick"),L.tick(),Y++;for(const X of z)X.x=Ha(X.x,-R,R),X.y=Ha(X.y,-R,R);K()&&G===!1&&(G=!0,w(!1,"tick"))},runToCompletion(X){const it=Y,at=X??1/0;for(!K()&&!V&&w(!0,"reduced-motion");!K()&&Y-it<at;){L.tick(),Y++;for(const I of z)I.x=Ha(I.x,-R,R),I.y=Ha(I.y,-R,R)}K()&&G===!1&&(G=!0,V&&w(!1,"reduced-motion"))},done(){return K()},position(X){const it=E.get(X);if(it)return{x:it.x,z:it.y}},ticksRun(){return Y},settledPositions(){const X=new Map;for(const it of z)X.set(it.id,{x:it.x,z:it.y});return X},onSettleStateChange(X){return W.add(X),V&&X(!0,"tick"),()=>{W.delete(X)}},isSettling(){return V}}}const Sh=new Set(["path:skf_s"]),Qp=Math.PI*(3-Math.sqrt(5)),Vp=.08;function Kp(c,s,r,o=Vp){const h=r*.6,m=2*Math.PI,v=new Map;for(const[R,M]of s.indexByTag){if(Sh.has(R))continue;const z=M*Qp%m;v.set(R,{x:Math.cos(z)*h,y:Math.sin(z)*h,strength:o})}const _=new Map,U=new Set;for(const R of c){const M=Hh(R.tags,Sh);if(M===null)continue;const z=v.get(M);z&&(_.set(R.id,z),U.add(M))}const O=[...s.indexByTag.entries()].filter(([R])=>U.has(R)).sort((R,M)=>R[1]-M[1]).map(([R])=>R);return{byTag:v,byMemoryId:_,orderedTags:O}}const Lh="hippo:projectAnchorOrder:v1",cs={indexByTag:new Map,nextIndex:0};function Yh(){return"window"in globalThis}function kp(c){return typeof c=="string"}function qh(c){return typeof c!="number"?!1:Number.isFinite(c)}function Jp(c){return Array.isArray(c)&&c.length===2&&kp(c[0])&&qh(c[1])}function Fp(c){if(!c)return null;const s=c,{tags:r,nextIndex:o}=s;return!Array.isArray(r)||!qh(o)||!r.every(Jp)?null:{tags:r,nextIndex:o}}function Wp(){if(!Yh())return cs;try{const c=window.localStorage.getItem(Lh);if(!c)return cs;const s=JSON.parse(c),r=Fp(s);return r===null?cs:{indexByTag:new Map(r.tags),nextIndex:r.nextIndex}}catch{return cs}}function $p(c){if(Yh())try{const s=JSON.stringify({tags:[...c.indexByTag.entries()],nextIndex:c.nextIndex});window.localStorage.setItem(Lh,s)}catch{}}function Ip(c,s){const r=[...c].sort(),o=new Map(s.indexByTag);let h=s.nextIndex,m=!1;for(const v of r)o.has(v)||(o.set(v,h),h++,m=!0);return m?{indexByTag:o,nextIndex:h}:s}const Pp=2e3,xh=20,tg={buffer:6,episodic:0,semantic:-6};function fs(c){return new Ko(c)}class eg{constructor(s){this.container=s,this.initRenderer(),this.initScene(),this.initCamera(),this.initControls(),this.initPostProcessing(),this.initGrid(),this.animate()}renderer;scene;camera;controls;composer;nodes=[];tendrils=[];conflictLines=[];raycaster=new z0;mouse=new Pt;hoveredNode=null;selectedNode=null;highlightedIds=new Set;searchDimmed=!1;clock=new T0;gridHelper;onHoverCb=null;onClickCb=null;disposed=!1;rafId=0;paused=!1;onRenderCbs=[];currentColorMode="layer";tagPalette=new Map;pathPalette=new Map;sharedTagEdges=[];sharedTagBailed=!1;forceLayout=null;lastSettledPositions=null;settleSubscribers=new Set;currentForceUnsubscribe=null;projectAnchorLayout=null;initRenderer(){this.renderer=new E0({antialias:!0,alpha:!1}),this.renderer.setPixelRatio(Math.min(window.devicePixelRatio,2)),this.renderer.setSize(this.container.clientWidth,this.container.clientHeight),this.renderer.toneMapping=M0,this.renderer.toneMappingExposure=1,this.renderer.setClearColor(Op,1),this.container.appendChild(this.renderer.domElement),this.renderer.domElement.style.display="block"}initScene(){this.scene=new j0,this.scene.background=new Ko(yh),this.scene.fog=new A0(yh,.008);const s=new D0(Np,.65);this.scene.add(s);const r=new C0(Rp,.4,100);r.position.set(0,15,10),this.scene.add(r)}initCamera(){const s=this.container.clientWidth,r=this.container.clientHeight;this.camera=new O0(60,s/r,.1,200),this.camera.position.set(0,8,28),this.camera.lookAt(0,0,0)}initControls(){this.controls=new sp(this.camera,this.renderer.domElement),this.controls.enableDamping=!0,this.controls.dampingFactor=.05,this.controls.minDistance=5,this.controls.maxDistance=80,this.controls.maxPolarAngle=Math.PI*.85,this.controls.autoRotate=!0,this.controls.autoRotateSpeed=.3}initPostProcessing(){this.container.clientWidth,this.container.clientHeight,this.composer=new Mp(this.renderer),this.composer.addPass(new jp(this.scene,this.camera))}initGrid(){this.gridHelper=new R0;const s=new Bo({color:Bp,transparent:!0,opacity:.06}),r=40,h=r/20;for(let m=-r/2;m<=r/2;m+=h){const v=new Za().setFromPoints([new Wt(m,-10,-r/2),new Wt(m,-10,r/2)]);this.gridHelper.add(new qn(v,s));const _=new Za().setFromPoints([new Wt(-r/2,-10,m),new Wt(r/2,-10,m)]);this.gridHelper.add(new qn(_,s))}this.scene.add(this.gridHelper)}setCallbacks(s,r){this.onHoverCb=s,this.onClickCb=r}populate(s,r,o,h){for(const z of this.nodes)this.scene.remove(z.mesh),this.scene.remove(z.halo),z.mesh.geometry.dispose(),z.halo.geometry.dispose(),z.fadingRing&&(this.scene.remove(z.fadingRing),z.fadingRing.geometry.dispose(),z.fadingRing.material.dispose());for(const z of this.tendrils)this.scene.remove(z),z.geometry.dispose();for(const z of this.conflictLines)this.scene.remove(z),z.geometry.dispose();for(const z of this.sharedTagEdges)this.scene.remove(z),z.geometry.dispose(),z.material.dispose();this.nodes=[],this.tendrils=[],this.conflictLines=[],this.sharedTagEdges=[];const m=s.reduce((z,E)=>Math.max(z,E.retrieval_count),1);for(const z of s){const E=r[z.id]??[Math.random()*2-1,Math.random()*2-1,Math.random()*2-1],N=tg[z.layer]??0,H=E[0]*xh+(Math.random()-.5)*3,L=N+(Math.random()-.5)*2,P=E[2]*xh+(Math.random()-.5)*3,Y=fs(Re[z.layer]),V=.15+Math.log2(z.retrieval_count+1)/Math.log2(m+1)*.35,W=new ah(V,24,24),K=new U0({color:Y,emissiveIntensity:0,roughness:.55,metalness:.05,transparent:!0,opacity:.78+z.strength*.22}),w=new hs(W,K);w.position.set(H,L,P),w.userData={memoryId:z.id},this.scene.add(w);const nt=new ah(V*2.2,16,16),X=new nh({color:Y,transparent:!0,opacity:.015+z.strength*.025,side:B0,depthWrite:!1}),it=new hs(nt,X);it.position.copy(w.position),this.scene.add(it);let at;if(Fo(z)){const I=new N0(V*1.4,V*1.7,32),rt=new nh({color:ph,side:H0,transparent:!0,opacity:.6,depthWrite:!1});at=new hs(I,rt),at.position.copy(w.position),at.lookAt(this.camera.position),this.scene.add(at)}this.nodes.push({id:z.id,memory:z,mesh:w,halo:it,basePosition:w.position.clone(),phase:Math.random()*Math.PI*2,driftSpeed:.2+Math.random()*.3,fadingRing:at})}this.buildTendrils(),this.buildConflictLines(o),this.buildSharedTagEdges(s),this.currentForceUnsubscribe&&(this.currentForceUnsubscribe(),this.currentForceUnsubscribe=null);const v=new Set(s.map(z=>z.id));if(this.lastSettledPositions)for(const z of[...this.lastSettledPositions.keys()])v.has(z)||this.lastSettledPositions.delete(z);const _=new Map;for(const z of this.nodes){const E=this.lastSettledPositions?.get(z.id);_.set(z.id,E??{x:z.basePosition.x,z:z.basePosition.z})}const U=Wp(),O=new Set;for(const z of s)for(const E of z.tags)E.startsWith("path:")&&O.add(E);const R=Ip([...O],U);R!==U&&$p(R);const M=Kp(s,R,ms);this.projectAnchorLayout=M,this.forceLayout=Zp(s,h,_,{projectAnchors:M.byMemoryId}),this.currentForceUnsubscribe=this.forceLayout.onSettleStateChange((z,E)=>{for(const N of this.settleSubscribers)N(z,E)}),this.setColorMode(this.currentColorMode,s)}buildSharedTagEdges(s){if(this.nodes.length>500){this.sharedTagBailed=!0;return}this.sharedTagBailed=!1;const o=wh(s,{excludePrefix:"path:",softCap:50,hardCap:300,perTagTopK:15,minShared:2}),h=new Map;for(const m of this.nodes)h.set(m.id,m);for(const m of o){if(this.sharedTagEdges.length>=Pp)break;const v=h.get(m.a),_=h.get(m.b);if(!v||!_)continue;const U=new Za().setFromPoints([v.basePosition,_.basePosition]),O=new Bo({color:Up,transparent:!0,opacity:.18+m.count*.04,depthWrite:!1}),R=new qn(U,O);R.userData={aId:m.a,bId:m.b},this.scene.add(R),this.sharedTagEdges.push(R)}}getProjectAnchorLayout(){return this.projectAnchorLayout}getEdgeCounts(){let s=0,r=0;for(const o of this.conflictLines){const h=o.userData.status;h==="open"?s++:h==="resolved"&&r++}return{openConflicts:s,resolvedConflicts:r,sharedTag:this.sharedTagEdges.length,sharedTagBailed:this.sharedTagBailed}}setColorMode(s,r){s==="tag"&&(this.tagPalette=vh(r,{excludePrefix:"path:",topN:10,palette:Yp})),s==="path"&&(this.pathPalette=vh(r,{includePrefix:"path:",topN:8,palette:qp})),this.currentColorMode=s;for(const o of this.nodes){const h=Xp(o.memory,s,this.tagPalette,this.pathPalette),m=fs(h);o.mesh.material.color.copy(m),o.halo.material.color.copy(m)}}buildTendrils(){const s=this.nodes.length;if(s>500)return;const r=6,o=r*r;for(let h=0;h<s;h++){const m=this.nodes[h];for(let v=h+1;v<s;v++){const _=this.nodes[v],U=m.basePosition.x-_.basePosition.x,O=m.basePosition.y-_.basePosition.y,R=m.basePosition.z-_.basePosition.z,M=U*U+O*O+R*R;if(M>o)continue;const E=1-Math.sqrt(M)/r,N=new Wt().lerpVectors(m.basePosition,_.basePosition,.5);N.y+=(Math.random()-.5)*1.5;const L=new ih(m.basePosition,N,_.basePosition).getPoints(12),P=new Za().setFromPoints(L),Y=fs(m.mesh.userData.color??Re[m.memory.layer]),G=fs(_.mesh.userData.color??Re[_.memory.layer]),V=Y.clone().lerp(G,.5),W=new Bo({color:V,transparent:!0,opacity:E*E*.15,depthWrite:!1}),K=new qn(P,W);this.scene.add(K),this.tendrils.push(K)}}}buildConflictLines(s){const r=new Map;for(const o of this.nodes)r.set(o.id,o);for(const o of s){const h=r.get(o.memory_a_id),m=r.get(o.memory_b_id);if(!h||!m)continue;const v=new Wt().lerpVectors(h.basePosition,m.basePosition,.5);v.y+=1;const U=new ih(h.basePosition,v,m.basePosition).getPoints(16),O=new Za().setFromPoints(U),R=o.status==="resolved",M=new w0({color:ph,transparent:!0,opacity:.3+o.score*.4,dashSize:R?.05:.3,gapSize:R?.15:.2,depthWrite:!1}),z=new qn(O,M);z.computeLineDistances(),z.userData={status:o.status,aId:o.memory_a_id,bId:o.memory_b_id},this.scene.add(z),this.conflictLines.push(z)}}setHighlighted(s){this.highlightedIds=s,this.searchDimmed=s.size>0,this.applyDimming()}clearHighlight(){this.highlightedIds.clear(),this.searchDimmed=!1,this.applyDimming()}applyDimming(){for(const s of this.nodes){const r=s.mesh.material,o=s.halo.material;this.searchDimmed&&!this.highlightedIds.has(s.id)?(r.opacity=.05,r.emissiveIntensity=.1,o.opacity=.01):(r.opacity=.3+s.memory.strength*.7,r.emissiveIntensity=.6+s.memory.strength*.8,o.opacity=.06+s.memory.strength*.08)}}handleMouseMove(s){const r=this.renderer.domElement.getBoundingClientRect();this.mouse.x=(s.clientX-r.left)/r.width*2-1,this.mouse.y=-((s.clientY-r.top)/r.height)*2+1,this.raycaster.setFromCamera(this.mouse,this.camera);const o=this.nodes.map(v=>v.mesh),h=this.raycaster.intersectObjects(o),m=this.hoveredNode;if(h.length>0){const _=h[0].object.userData.memoryId;this.hoveredNode=this.nodes.find(U=>U.id===_)??null,this.renderer.domElement.style.cursor="pointer",this.hoveredNode&&this.onHoverCb&&this.onHoverCb(this.hoveredNode.memory,s.clientX,s.clientY)}else this.hoveredNode=null,this.renderer.domElement.style.cursor="grab",m&&this.onHoverCb&&this.onHoverCb(null,0,0);if(m&&m!==this.hoveredNode){const v=m.mesh.material;v.emissiveIntensity=.6+m.memory.strength*.8,m.mesh.scale.setScalar(1),m.halo.material.opacity=.06+m.memory.strength*.08}if(this.hoveredNode){const v=this.hoveredNode.mesh.material;v.emissiveIntensity=2,this.hoveredNode.mesh.scale.setScalar(1.4),this.hoveredNode.halo.material.opacity=.2}}handleClick(){this.hoveredNode?(this.selectedNode&&this.selectedNode!==this.hoveredNode&&this.selectedNode.mesh.scale.setScalar(1),this.selectedNode=this.hoveredNode,this.onClickCb&&this.onClickCb(this.hoveredNode.memory)):(this.selectedNode&&this.selectedNode.mesh.scale.setScalar(1),this.selectedNode=null,this.onClickCb&&this.onClickCb(null))}deselect(){this.selectedNode&&this.selectedNode.mesh.scale.setScalar(1),this.selectedNode=null,this.onClickCb&&this.onClickCb(null)}resize(s,r){s===0||r===0||(this.camera.aspect=s/r,this.camera.updateProjectionMatrix(),this.renderer.setSize(s,r),this.composer.setSize(s,r))}animate=()=>{if(this.disposed||this.paused)return;this.rafId=requestAnimationFrame(this.animate);const s=this.clock.getElapsedTime();this.controls.update();const r=this.forceLayout!==null&&!this.forceLayout.done();if(r){this.forceLayout.tick();for(const o of this.nodes){const h=this.forceLayout.position(o.id);h&&(o.basePosition.x=h.x,o.basePosition.z=h.z)}this.forceLayout.done()&&(this.lastSettledPositions=this.forceLayout.settledPositions())}for(const o of this.nodes){if(r)o.mesh.position.copy(o.basePosition);else{const h=Math.sin(s*o.driftSpeed+o.phase),m=Math.cos(s*o.driftSpeed*.7+o.phase*1.3);o.mesh.position.x=o.basePosition.x+h*.15,o.mesh.position.y=o.basePosition.y+m*.1,o.mesh.position.z=o.basePosition.z+Math.sin(s*o.driftSpeed*.5+o.phase*.7)*.12}if(o.halo.position.copy(o.mesh.position),o===this.selectedNode){const h=1.3+.1*Math.sin(s*3+o.phase);o.mesh.scale.setScalar(h)}o.fadingRing&&(o.fadingRing.position.copy(o.mesh.position),o.fadingRing.lookAt(this.camera.position))}if(this.onRenderCbs.length>0)for(const o of this.onRenderCbs)o(this.camera,this.scene);this.composer.render()};onSettleStateChange(s){return this.settleSubscribers.add(s),this.forceLayout?.isSettling()&&s(!0,"tick"),()=>{this.settleSubscribers.delete(s)}}setReducedMotion(s){if(this.paused=s,s){if(this.rafId&&(cancelAnimationFrame(this.rafId),this.rafId=0),this.forceLayout&&!this.forceLayout.done()){this.forceLayout.runToCompletion(80);for(const r of this.nodes){const o=this.forceLayout.position(r.id);o&&(r.basePosition.x=o.x,r.basePosition.z=o.z)}this.forceLayout.done()&&(this.lastSettledPositions=this.forceLayout.settledPositions())}this.snapParticlesToFinal()}else this.rafId||this.animate()}getNodePosition(s){for(const r of this.nodes)if(r.id===s)return r.basePosition;return null}getRenderer(){return this.renderer}setFiltered(s,r){for(const o of this.nodes){const h=!r||s.has(o.id);o.mesh.visible=h,o.halo.visible=h}for(const o of[...this.conflictLines,...this.sharedTagEdges,...this.tendrils]){if(!r){o.visible=!0;continue}const h=o.userData;!h.aId||!h.bId||(o.visible=s.has(h.aId)&&s.has(h.bId))}}onRender(s){return this.onRenderCbs.push(s),()=>{const r=this.onRenderCbs.indexOf(s);r>=0&&this.onRenderCbs.splice(r,1)}}getCamera(){return this.camera}snapParticlesToFinal(){for(const s of this.nodes)s.mesh.position.copy(s.basePosition),s.halo.position.copy(s.basePosition);this.composer.render()}dispose(){this.disposed=!0,cancelAnimationFrame(this.rafId),this.controls.dispose();for(const s of this.nodes)s.mesh.geometry.dispose(),s.mesh.material.dispose(),s.halo.geometry.dispose(),s.halo.material.dispose(),s.fadingRing&&(s.fadingRing.geometry.dispose(),s.fadingRing.material.dispose());for(const s of[...this.tendrils,...this.conflictLines,...this.sharedTagEdges])s.geometry.dispose(),s.material.dispose();this.renderer.dispose(),this.renderer.domElement.parentElement&&this.renderer.domElement.parentElement.removeChild(this.renderer.domElement)}}function lg(c){const s=Object.keys(c);if(s.length===0)return{};if(s.length===1)return Object.fromEntries([[s[0],[0,0,0]]]);const r=c[s[0]].length,o=s.length,h=new Float64Array(r);for(const Y of s){const G=c[Y];for(let V=0;V<r;V++)h[V]+=G[V]}for(let Y=0;Y<r;Y++)h[Y]/=o;const m=new Array(o);for(let Y=0;Y<o;Y++){const G=new Float64Array(r),V=c[s[Y]];for(let W=0;W<r;W++)G[W]=V[W]-h[W];m[Y]=G}const v=Y=>{const G=new Float64Array(r);for(let V=0;V<r;V++)G[V]=Math.random()-.5;for(let V=0;V<100;V++){const W=new Float64Array(r);for(let w=0;w<o;w++){let nt=0;for(let X=0;X<r;X++)nt+=Y[w][X]*G[X];for(let X=0;X<r;X++)W[X]+=Y[w][X]*nt}let K=0;for(let w=0;w<r;w++)K+=W[w]*W[w];if(K=Math.sqrt(K),K<1e-12)return new Float64Array(r);for(let w=0;w<r;w++)G[w]=W[w]/K}return G},_=(Y,G)=>Y.map(V=>{let W=0;for(let w=0;w<r;w++)W+=V[w]*G[w];const K=new Float64Array(r);for(let w=0;w<r;w++)K[w]=V[w]-W*G[w];return K}),U=(Y,G)=>{const V=new Float64Array(Y);for(const K of G){let w=0;for(let nt=0;nt<r;nt++)w+=V[nt]*K[nt];for(let nt=0;nt<r;nt++)V[nt]-=w*K[nt]}let W=0;for(let K=0;K<r;K++)W+=V[K]*V[K];if(W=Math.sqrt(W),W>1e-12)for(let K=0;K<r;K++)V[K]/=W;return V},O=v(m),R=_(m,O),M=U(v(R),[O]),z=_(R,M),E=U(v(z),[O,M]),N=[O,M,E],H=new Array(o);for(let Y=0;Y<o;Y++){const G=m[Y],V=[0,0,0];for(let W=0;W<3;W++){let K=0;for(let w=0;w<r;w++)K+=G[w]*N[W][w];V[W]=K}H[Y]=V}let L=0;for(let Y=0;Y<o;Y++)for(let G=0;G<3;G++){const V=Math.abs(H[Y][G]);V>L&&(L=V)}return Object.fromEntries(s.map((Y,G)=>L<1e-12?[Y,[0,0,0]]:[Y,[H[G][0]/L,H[G][1]/L,H[G][2]/L]]))}const ag={openConflicts:0,resolvedConflicts:0,sharedTag:0,sharedTagBailed:!1};function ng({memories:c,embeddings:s,conflicts:r,width:o,height:h,onHover:m,onClick:v,searchQuery:_,frozen:U,visibleIds:O,filterActive:R,colorMode:M,adjacency:z,onSceneReady:E}){const N=B.useRef(null),H=B.useRef(null),L=B.useRef(m),P=B.useRef(v);L.current=m,P.current=v;const[Y,G]=B.useState(ag),[V,W]=B.useState(null),[K,w]=B.useState(void 0),nt=B.useRef("initial");B.useEffect(()=>{const I=N.current;if(!I)return;const rt=new eg(I);return rt.setCallbacks((pt,Bt,A)=>L.current(pt,Bt,A),pt=>P.current(pt)),H.current=rt,E?.(rt),()=>{E?.(null),rt.dispose(),H.current=null}},[]),B.useEffect(()=>{const I=H.current;if(!I||c.length===0)return;const rt=lg(s);I.populate(c,rt,r,z),G(I.getEdgeCounts()),W(I.getProjectAnchorLayout())},[c,s,r,z]),B.useEffect(()=>{const I=H.current;if(I)return I.onSettleStateChange((rt,pt)=>{if(pt==="reduced-motion"){w(void 0);return}rt?w(nt.current):(w(void 0),nt.current="refresh")})},[]),B.useEffect(()=>{const I=N.current;if(!I)return;const rt=()=>{const Bt=Math.floor(I.clientWidth),A=Math.floor(I.clientHeight);Bt>0&&A>0&&H.current?.resize(Bt,A)};rt();const pt=new ResizeObserver(rt);return pt.observe(I),()=>pt.disconnect()},[]),B.useEffect(()=>{if(!_.trim()){H.current?.clearHighlight();return}const I=_.toLowerCase(),rt=new Set;for(const pt of c)(pt.content.toLowerCase().includes(I)||pt.tags.some(Bt=>Bt.toLowerCase().includes(I)))&&rt.add(pt.id);H.current?.setHighlighted(rt)},[_,c]),B.useEffect(()=>{H.current?.setReducedMotion(U)},[U]),B.useEffect(()=>{H.current?.setFiltered(O,R)},[O,R]),B.useEffect(()=>{H.current?.setColorMode(M,c)},[M]);const X=B.useCallback(I=>{H.current?.handleMouseMove(I.nativeEvent)},[]),it=B.useCallback(()=>{H.current?.handleClick()},[]),at=B.useCallback(I=>{I.key==="Escape"&&H.current?.deselect()},[]);return{containerRef:N,handleMouseMove:X,handleClick:it,handleKeyDown:at,edgeCounts:Y,forceSettling:K,projectAnchorLayout:V}}function ig({memory:c,x:s,y:r,colorMode:o="layer",colorTag:h=null}){const m=c.content.length>100?c.content.slice(0,100)+"…":c.content,v=Re[c.layer],_=h!==null&&(o==="tag"||o==="path");return d.jsxs("div",{style:{position:"fixed",left:s+16,top:r-12,background:"var(--glass-bg-strong)",backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",border:"1px solid var(--glass-border)",borderRadius:12,padding:"12px 14px",maxWidth:280,pointerEvents:"none",zIndex:100,boxShadow:"0 4px 24px var(--ink-shadow), 0 0 0 1px var(--glass-border)"},children:[d.jsxs("div",{style:{display:"flex",alignItems:"center",gap:6,marginBottom:8},children:[d.jsx("div",{style:{width:5,height:5,borderRadius:"50%",background:v,boxShadow:`0 0 6px ${v}60`}}),d.jsx("span",{style:{color:"var(--dim)",fontSize:9,fontFamily:"var(--font-mono)",textTransform:"uppercase",letterSpacing:"0.5px"},children:c.layer}),d.jsx("span",{style:{color:"var(--text-faint)",fontSize:9},children:"·"}),d.jsxs("span",{style:{color:"var(--dim)",fontSize:9,fontFamily:"var(--font-mono)"},children:[c.strength.toFixed(2)," str"]})]}),_&&d.jsxs("div",{style:{marginBottom:6,color:"var(--dim)",fontSize:9,fontFamily:"var(--font-mono)",letterSpacing:"0.4px"},children:["color: ",h]}),d.jsx("div",{style:{color:"var(--text)",fontSize:12,lineHeight:1.5,fontFamily:"var(--font-body)"},children:m}),d.jsxs("div",{style:{marginTop:8,display:"flex",gap:8,color:"var(--text-faint)",fontSize:9,fontFamily:"var(--font-mono)"},children:[d.jsxs("span",{children:[c.retrieval_count," retrievals"]}),d.jsxs("span",{children:[c.half_life_days,"d half-life"]}),d.jsxs("span",{children:[c.age_days,"d old"]})]})]})}function sg(c,s){const[r,o]=B.useState(c);return B.useEffect(()=>{const h=setTimeout(()=>o(c),s);return()=>clearTimeout(h)},[c,s]),r}function ug({memoryCount:c,matchCount:s,stats:r,filterState:o,frozenOrigin:h,setQuery:m,setFrozen:v,setFadingOnly:_,viewSwitch:U}){const[O,R]=B.useState(o.query),M=sg(O,150),[z,E]=B.useState(!1),N=B.useRef(null);return B.useEffect(()=>{M!==o.query&&m(M)},[M]),B.useEffect(()=>{o.query!==M&&R(o.query)},[o.query]),B.useEffect(()=>{function H(L){const P=L.target,Y=P instanceof HTMLInputElement||P instanceof HTMLTextAreaElement;L.key==="/"&&!Y?(L.preventDefault(),N.current?.focus()):L.key==="Escape"&&document.activeElement===N.current&&(R(""),m(""),N.current?.blur())}return window.addEventListener("keydown",H),()=>window.removeEventListener("keydown",H)},[m]),d.jsxs("div",{className:"dashboard-bar",style:{position:"absolute",top:0,left:0,right:0,height:48,zIndex:20,background:"var(--glass-bg)",backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",borderBottom:"1px solid var(--glass-border)",display:"flex",alignItems:"center",pointerEvents:"auto"},children:[d.jsxs("div",{style:{flex:"0 0 auto",display:"flex",alignItems:"baseline",gap:12},children:[d.jsx("span",{style:{color:"var(--text)",fontSize:16,fontWeight:700,fontFamily:"var(--font-serif)",letterSpacing:"0.3px"},children:"hippo"}),d.jsx("span",{className:"bar-decorative",style:{color:"var(--accent)",fontSize:11,fontFamily:"var(--font-serif)",fontStyle:"italic"},children:"brain observatory"}),U,d.jsxs("span",{className:"bar-decorative",style:{color:"var(--dim)",fontSize:10,fontFamily:"var(--font-mono)"},children:[c," memories"]}),(r?.at_risk??0)>0&&d.jsxs("button",{type:"button",onClick:()=>_(!o.fadingOnly),"aria-pressed":o.fadingOnly,"aria-label":`${r?.at_risk} fading, ${o.fadingOnly?"click to show all memories":"click to filter to fading memories only"}`,title:o.fadingOnly?"Showing only fading memories: click to clear":"Show only fading memories",style:{fontSize:10,fontFamily:"var(--font-mono)",padding:"2px 8px",borderRadius:3,cursor:"pointer",transition:"color 150ms ease, border-color 150ms ease, background 150ms ease",background:o.fadingOnly?"rgba(196, 92, 60, 0.10)":"transparent",border:o.fadingOnly?"1px solid var(--accent)":"1px solid transparent",color:o.fadingOnly?"var(--accent)":"var(--yellow)"},children:[r?.at_risk," fading"]})]}),d.jsx("div",{style:{flex:1}}),d.jsxs("div",{role:"search",style:{position:"relative",flex:"0 1 240px",minWidth:0},children:[d.jsx("input",{ref:N,type:"text",value:O,onChange:H=>R(H.target.value),onFocus:()=>E(!0),onBlur:()=>E(!1),"aria-label":"Search memories",placeholder:"search memories and tags (/)",style:{width:"100%",padding:"5px 10px",paddingRight:s!==null?48:10,background:z?"var(--ink-faint)":"var(--glass-bg)",border:z?"1px solid var(--accent-focus)":"1px solid var(--glass-border)",borderRadius:4,color:"var(--text)",fontSize:12,fontFamily:"var(--font-serif)",outline:"none",boxSizing:"border-box",transition:"border-color 200ms ease, background 200ms ease",letterSpacing:"0.2px"}}),O.length>0&&d.jsx("button",{type:"button",onClick:()=>{R(""),m(""),N.current?.focus()},"aria-label":"Clear search",title:"Clear search (Esc)",style:{position:"absolute",right:s!==null?44:4,top:"50%",transform:"translateY(-50%)",background:"transparent",border:"none",color:"var(--dim)",cursor:"pointer",fontSize:14,lineHeight:1,padding:"2px 6px",fontFamily:"var(--font-mono)"},children:"×"}),s!==null&&d.jsxs("span",{style:{position:"absolute",right:8,top:"50%",transform:"translateY(-50%)",color:"var(--text-faint)",fontSize:9,fontFamily:"var(--font-mono)",pointerEvents:"none"},children:[s,"/",c]})]}),d.jsx("button",{type:"button",onClick:()=>v(!o.frozen),"aria-pressed":o.frozen,"aria-label":o.frozen?"Resume animation":"Freeze animation",title:o.frozen&&h==="os"?"Frozen because your system requests reduced motion. Click to override.":o.frozen?"Click to resume animation (or press F)":"Click to freeze animation (or press F)",style:{fontFamily:"var(--font-mono)",fontSize:10,letterSpacing:"0.8px",textTransform:"uppercase",background:o.frozen?"rgba(196,92,60,0.10)":"transparent",border:`1px solid ${o.frozen?"var(--accent)":"var(--glass-border)"}`,color:o.frozen?"var(--accent)":"var(--dim)",padding:"5px 12px",borderRadius:4,cursor:"pointer",transition:"color 150ms ease, border-color 150ms ease, background 150ms ease"},children:o.frozen?"frozen":"freeze"}),o.frozen&&h==="os"&&d.jsx("span",{className:"sr-only",children:"Animation paused: prefers-reduced-motion enabled in OS settings. Activate the freeze button to override."})]})}function og({stats:c,totalVisible:s,fadingOnly:r}){if(!c)return null;const o=[["buffer","Buffer"],["episodic","Episodic"],["semantic","Semantic"]],h=Math.max(...Object.values(c.by_layer),1);return d.jsxs("div",{style:{marginBottom:20},children:[d.jsx("h3",{style:cg,children:"Memory layers"}),d.jsxs("div",{style:{display:"flex",alignItems:"baseline",gap:8,marginBottom:12},children:[d.jsx("span",{style:{fontFamily:"var(--font-mono)",fontSize:24,color:"var(--text)"},children:s}),d.jsxs("span",{style:{fontSize:10,fontVariant:"small-caps",letterSpacing:"0.6px",color:"var(--dim)"},children:["visible of ",c.total]})]}),d.jsx("div",{style:{display:"flex",flexDirection:"column",gap:6,marginBottom:10},children:o.map(([m,v])=>{const _=c.by_layer[m]??0,U=Re[m],O=_/h*100;return d.jsxs("div",{style:{display:"grid",gridTemplateColumns:"78px 1fr 32px",alignItems:"center",gap:10,fontSize:11},children:[d.jsx("span",{style:{fontVariant:"small-caps",letterSpacing:"0.5px",color:"var(--text)"},children:v}),d.jsx("div",{style:{height:6,background:"var(--ink-faint)",borderRadius:2,overflow:"hidden"},children:d.jsx("div",{style:{height:"100%",width:`${O}%`,background:U,borderRadius:2,transition:"width 200ms ease"}})}),d.jsx("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--dim)",textAlign:"right"},children:_})]},m)})}),d.jsxs("div",{style:{display:"flex",justifyContent:"space-between",fontFamily:"var(--font-mono)",fontSize:10,color:"var(--dim)",padding:r?"4px 8px":"0",border:r?"1px solid var(--accent)":"1px solid transparent",borderRadius:3,background:r?"rgba(196, 92, 60, 0.06)":"transparent",transition:"background 150ms ease, border-color 150ms ease, padding 150ms ease"},children:[d.jsxs("span",{children:[c.pinned," pinned"]}),c.at_risk>0&&d.jsxs("span",{style:{color:"var(--accent)",fontWeight:600},children:[c.at_risk," at risk"]}),c.aged_out>0&&d.jsxs("span",{children:[c.aged_out," aged out"]}),d.jsxs("span",{children:["avg ",c.avg_strength.toFixed(2)]})]})]})}const cg={fontSize:11,fontVariant:"small-caps",letterSpacing:"1px",fontWeight:400,color:"var(--dim)",marginBottom:10,paddingBottom:6,borderBottom:"1px solid var(--glass-border)"},_h=[{key:"buffer",label:"buffer"},{key:"episodic",label:"episodic"},{key:"semantic",label:"semantic"}],zh=[{key:"verified",label:"verified"},{key:"observed",label:"observed"},{key:"inferred",label:"inferred"},{key:"stale",label:"stale"}];function Th(c,s){const r=new Set(c);return r.has(s)?r.delete(s):r.add(s),r}function fg({filterState:c,stats:s,setLayers:r,setStrengthRange:o,setConfidences:h,setAgeMaxDays:m,setFadingOnly:v,setAgedOutOnly:_}){const[U,O]=c.strengthRange,R=s?.at_risk??0,M=s?.aged_out??0,z=s?.total??0;return d.jsxs("div",{style:{marginBottom:20},children:[d.jsxs("div",{style:wa,children:[d.jsxs("div",{style:La,children:[d.jsx("span",{children:"Layer"}),d.jsx("span",{style:Ya,children:c.layers.size===0?"all":`${c.layers.size}/3`})]}),d.jsx("div",{style:{display:"flex",flexWrap:"wrap",gap:"8px 14px"},children:_h.map(({key:E,label:N})=>{const H=c.layers.size===0||c.layers.has(E);return d.jsxs("label",{style:rs,children:[d.jsx("input",{type:"checkbox",checked:H,onChange:()=>{if(c.layers.size===0){const L=_h.filter(P=>P.key!==E).map(P=>P.key);r(new Set(L))}else{const L=Th(c.layers,E);r(L.size===0?new Set:L)}},"aria-label":`Filter ${N}`,style:{accentColor:"var(--accent)",cursor:"pointer"}}),d.jsx("span",{style:{width:8,height:8,borderRadius:"50%",background:Re[E],display:"inline-block"}}),d.jsx("span",{style:{fontFamily:"var(--font-mono)",fontSize:11},children:N})]},E)})})]}),d.jsxs("div",{style:wa,children:[d.jsxs("div",{style:La,children:[d.jsx("span",{children:"Strength"}),d.jsxs("span",{style:Ya,children:[U.toFixed(2)," – ",O.toFixed(2)]})]}),d.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:4},children:[d.jsx("input",{type:"range",min:0,max:1,step:.01,value:U,"aria-label":"Strength minimum",onChange:E=>{const N=parseFloat(E.target.value);o(N>O?[O,N]:[N,O])},style:Go}),d.jsx("input",{type:"range",min:0,max:1,step:.01,value:O,"aria-label":"Strength maximum",onChange:E=>{const N=parseFloat(E.target.value);o(N<U?[N,U]:[U,N])},style:Go})]})]}),d.jsxs("div",{style:wa,children:[d.jsxs("div",{style:La,children:[d.jsx("span",{children:"Fading only"}),d.jsx("span",{style:Ya,children:R===0?"(none)":`${R} of ${z}`})]}),d.jsxs("label",{style:{...rs,opacity:R===0?.5:1,cursor:R===0?"not-allowed":"pointer"},children:[d.jsx("input",{type:"checkbox",checked:c.fadingOnly,disabled:R===0,onChange:E=>v(E.target.checked),"aria-label":"Show only fading memories",style:{accentColor:"var(--accent)",cursor:"inherit"}}),d.jsx("span",{style:{fontFamily:"var(--font-mono)",fontSize:11},children:"fading"}),d.jsx("span",{style:{fontFamily:"var(--font-mono)",fontSize:9,color:"var(--text-faint)",marginLeft:6},children:"< 0.1 strength, unpinned"})]})]}),d.jsxs("div",{style:wa,children:[d.jsxs("div",{style:La,children:[d.jsx("span",{children:"Aged out only"}),d.jsx("span",{style:Ya,children:M===0?"(none)":`${M} of ${z}`})]}),d.jsxs("label",{style:{...rs,opacity:M===0?.5:1,cursor:M===0?"not-allowed":"pointer"},children:[d.jsx("input",{type:"checkbox",checked:c.agedOutOnly,disabled:M===0,onChange:E=>_(E.target.checked),"aria-label":"Show only memories aged out of trust",style:{accentColor:"var(--accent)",cursor:"inherit"}}),d.jsx("span",{style:{fontFamily:"var(--font-mono)",fontSize:11},children:"aged out"}),d.jsx("span",{style:{fontFamily:"var(--font-mono)",fontSize:9,color:"var(--text-faint)",marginLeft:6},children:"not retrieved in 30d, unpinned"})]})]}),d.jsxs("div",{style:wa,children:[d.jsxs("div",{style:La,children:[d.jsx("span",{children:"Confidence"}),d.jsx("span",{style:Ya,children:c.confidences.size===0?"all":`${c.confidences.size}/4`})]}),d.jsx("div",{style:{display:"flex",flexWrap:"wrap",gap:"8px 14px"},children:zh.map(({key:E,label:N})=>{const H=c.confidences.size===0||c.confidences.has(E);return d.jsxs("label",{style:rs,children:[d.jsx("input",{type:"checkbox",checked:H,onChange:()=>{if(c.confidences.size===0){const L=zh.filter(P=>P.key!==E).map(P=>P.key);h(new Set(L))}else{const L=Th(c.confidences,E);h(L.size===0?new Set:L)}},"aria-label":`Filter ${N}`,style:{accentColor:"var(--accent)",cursor:"pointer"}}),d.jsx("span",{style:{fontFamily:"var(--font-mono)",fontSize:11},children:N})]},E)})})]}),d.jsxs("div",{style:wa,children:[d.jsxs("div",{style:La,children:[d.jsx("span",{children:"Max age"}),d.jsx("span",{style:Ya,children:c.ageMaxDays===null?"any":`≤ ${c.ageMaxDays}d`})]}),d.jsx("input",{type:"range",min:0,max:365,step:1,value:c.ageMaxDays??365,"aria-label":"Max age in days",onChange:E=>{const N=parseInt(E.target.value,10);m(N>=365?null:N)},style:Go})]})]})}const wa={marginBottom:14},La={display:"flex",justifyContent:"space-between",alignItems:"baseline",fontSize:11,fontVariant:"small-caps",letterSpacing:"0.5px",color:"var(--dim)",marginBottom:5},Ya={fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text)",letterSpacing:0},rs={display:"inline-flex",alignItems:"center",gap:5,fontSize:12,cursor:"pointer",userSelect:"none"},Go={width:"100%",accentColor:"var(--accent)"};function rg(c,s){const r=new Map;for(const o of c)if(!(s.size>0&&!s.has(o.id)))for(const h of o.tags)r.set(h,(r.get(h)??0)+1);return Array.from(r.entries()).sort((o,h)=>h[1]!==o[1]?h[1]-o[1]:o[0].localeCompare(h[0]))}function dg({memories:c,visibleIds:s,onTagClick:r,topN:o=30}){const h=rg(c,s),m=h.slice(0,o);if(m.length===0)return d.jsxs("div",{style:{marginBottom:20},children:[d.jsx("h3",{style:Eh,children:"Tags"}),d.jsx("div",{style:{fontSize:11,color:"var(--text-faint)",fontStyle:"italic",fontFamily:"var(--font-serif)"},children:"no tags in the current view"})]});const v=m[0][1];return d.jsxs("div",{style:{marginBottom:20},children:[d.jsxs("h3",{style:Eh,children:["Tags ",d.jsxs("span",{style:{fontVariant:"normal",fontFamily:"var(--font-mono)",letterSpacing:0,color:"var(--text-faint)",fontSize:10},children:["(",h.length,")"]})]}),d.jsx("div",{style:{display:"flex",flexWrap:"wrap",gap:4},children:m.map(([_,U])=>{const O=Math.log2(U+1)/Math.log2(v+1),R=9+O*5,M=.55+O*.45,z=_.startsWith("path:");return d.jsxs("button",{type:"button",onClick:()=>r(_),"aria-label":`Filter to tag ${_} (${U} memories)`,title:`${U} memories with tag "${_}"`,style:{background:"var(--ink-faint)",color:"var(--text)",border:"1px solid var(--glass-border)",padding:"2px 8px",borderRadius:3,fontSize:R,fontFamily:"var(--font-mono)",letterSpacing:"0.2px",cursor:"pointer",transition:"background 150ms ease, border-color 150ms ease, opacity 150ms ease",opacity:z?M*.6:M,fontStyle:z?"italic":"normal"},children:[_,d.jsx("span",{style:{marginLeft:4,color:"var(--text-faint)",fontSize:Math.max(R-3,8)},children:U})]},_)})})]})}const Eh={fontSize:11,fontVariant:"small-caps",letterSpacing:"1px",fontWeight:400,color:"var(--dim)",marginBottom:10,paddingBottom:6,borderBottom:"1px solid var(--glass-border)"},hg=[{key:"layer",label:"layer",aria:"Color nodes by memory layer (buffer, episodic, semantic)"},{key:"tag",label:"tag",aria:"Color nodes by their top topic tag"},{key:"path",label:"path",aria:"Color nodes by project path"}];function mg({filterState:c,setColorMode:s}){return d.jsxs("div",{role:"group","aria-label":"View settings",style:{marginBottom:20},children:[d.jsx("h3",{style:yg,children:"View"}),d.jsxs("div",{style:pg,children:[d.jsx("span",{children:"Color by"}),d.jsx("span",{style:gg,children:c.colorMode})]}),d.jsx("div",{role:"radiogroup","aria-label":"Color mode",style:vg,children:hg.map(({key:r,label:o,aria:h})=>{const m=c.colorMode===r;return d.jsx("button",{type:"button",role:"radio","aria-checked":m,"aria-label":h,onClick:()=>s(r),style:{...bg,background:m?"rgba(196, 92, 60, 0.10)":"transparent",color:m?"var(--accent)":"var(--dim)",borderColor:m?"var(--accent)":"var(--glass-border)",fontWeight:m?500:400},children:o},r)})})]})}const yg={fontSize:11,fontVariant:"small-caps",letterSpacing:"1px",fontWeight:400,color:"var(--dim)",marginBottom:10,paddingBottom:6,borderBottom:"1px solid var(--glass-border)"},pg={display:"flex",justifyContent:"space-between",alignItems:"baseline",fontSize:11,fontVariant:"small-caps",letterSpacing:"0.5px",color:"var(--dim)",marginBottom:5},gg={fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text)",letterSpacing:"0.5px"},vg={display:"flex",gap:4},bg={flex:1,fontFamily:"var(--font-mono)",fontSize:11,padding:"5px 8px",borderRadius:3,cursor:"pointer",transition:"color 150ms ease, border-color 150ms ease, background 150ms ease",border:"1px solid"},Mh=10,Qo=20,ds=Qo/2,Vo=5,Sg=Vo+2;function xg({projects:c,onSelectProject:s}){if(c.length===0)return null;const r=c.slice(0,Mh),o=Math.max(0,c.length-Mh);return d.jsxs("div",{style:{marginBottom:20},children:[d.jsx("h3",{style:_g,children:"Projects"}),d.jsx("div",{style:zg,children:"(ordered by first-seen)"}),d.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:4},children:[r.map(({tag:h,count:m,anchor:v})=>{const _=ds+v.x/ms*Vo,U=ds+v.y/ms*Vo,O=h.replace("path:","");return d.jsxs("button",{type:"button",onClick:()=>s(h),"aria-label":`Filter to project ${O}, ${m} ${m===1?"memory":"memories"}`,className:"project-row",style:Tg,children:[d.jsxs("svg",{width:Qo,height:Qo,"aria-hidden":!0,style:{flexShrink:0},children:[d.jsx("circle",{cx:ds,cy:ds,r:Sg,fill:"none",stroke:"var(--border)",strokeWidth:1}),d.jsx("circle",{cx:_,cy:U,r:2,fill:"var(--accent)"})]}),d.jsx("span",{style:Eg,children:O}),d.jsx("span",{style:Mg,children:m})]},h)}),o>0&&d.jsxs("div",{style:jg,children:["+",o," more"]})]})]})}const _g={fontSize:11,fontVariant:"small-caps",letterSpacing:"1px",fontWeight:400,color:"var(--dim)",marginBottom:4,paddingBottom:6,borderBottom:"1px solid var(--glass-border)"},zg={fontSize:9,color:"var(--dim)",marginBottom:8,fontStyle:"italic"},Tg={display:"flex",alignItems:"center",gap:8,padding:"4px 6px",background:"transparent",border:"1px solid transparent",borderRadius:3,cursor:"pointer",transition:"background 150ms ease",width:"100%",textAlign:"left"},Eg={flex:1,fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text)"},Mg={fontFamily:"var(--font-mono)",fontSize:10,color:"var(--dim)"},jg={fontSize:9,color:"var(--dim)",textAlign:"center",marginTop:4,fontStyle:"italic",opacity:.7};function Ag({memories:c,stats:s,visibleIds:r,filterActive:o,selectedMemory:h,filterState:m,setQuery:v,setLayers:_,setStrengthRange:U,setConfidences:O,setAgeMaxDays:R,setFadingOnly:M,setAgedOutOnly:z,setColorMode:E,resetFilters:N,projects:H}){const L=o?r.size:c.length;return d.jsxs("aside",{"aria-label":"Filters and stats",style:{position:"absolute",top:48,right:0,width:340,height:"calc(100% - 48px)",background:"var(--glass-bg)",backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",borderLeft:"1px solid var(--glass-border)",padding:"20px",overflowY:"auto",zIndex:10,boxSizing:"border-box"},children:[d.jsx(og,{stats:s,totalVisible:L,fadingOnly:m.fadingOnly}),d.jsxs("div",{style:{marginBottom:20},children:[d.jsx("h3",{style:jh,children:"Selected memory"}),h?d.jsxs("div",{style:{fontSize:11,color:"var(--text)",fontFamily:"var(--font-serif)"},children:[d.jsx("div",{style:{marginBottom:4,color:"var(--dim)",fontFamily:"var(--font-mono)",fontSize:9},children:h.id}),d.jsx("div",{style:{lineHeight:1.5},children:h.content.length>140?h.content.slice(0,137)+"…":h.content}),d.jsxs("div",{style:{marginTop:6,color:"var(--dim)",fontFamily:"var(--font-mono)",fontSize:9},children:["click again or press ",d.jsx("em",{children:"esc"})," to deselect"]})]}):d.jsx("div",{style:{fontSize:11,color:"var(--text-faint)",fontStyle:"italic",fontFamily:"var(--font-serif)"},children:"click a memory to see details"})]}),d.jsx(mg,{filterState:m,setColorMode:E}),d.jsx(xg,{projects:H,onSelectProject:v}),d.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:10,paddingBottom:6,borderBottom:"1px solid var(--glass-border)"},children:[d.jsx("h3",{style:{...jh,margin:0,padding:0,border:0},children:"Filters"}),o&&d.jsx("button",{type:"button",onClick:N,"aria-label":"Reset all filters",style:{background:"transparent",border:"none",color:"var(--accent)",cursor:"pointer",fontSize:10,fontFamily:"var(--font-mono)",textTransform:"uppercase",letterSpacing:"0.8px",padding:"2px 4px"},children:"reset"})]}),d.jsx(fg,{filterState:m,stats:s,setLayers:_,setStrengthRange:U,setConfidences:O,setAgeMaxDays:R,setFadingOnly:M,setAgedOutOnly:z}),o&&r.size===0&&d.jsx("div",{style:{fontSize:11,color:"var(--accent)",fontStyle:"italic",fontFamily:"var(--font-serif)",padding:"8px 10px",background:"var(--ink-faint)",borderRadius:3,marginBottom:16},children:"no memories match these filters"}),d.jsx(dg,{memories:c,visibleIds:o?r:new Set,onTagClick:P=>v(P)})]})}const jh={fontSize:11,fontVariant:"small-caps",letterSpacing:"1px",fontWeight:400,color:"var(--dim)",marginBottom:10,paddingBottom:6,borderBottom:"1px solid var(--glass-border)"};function Dg(c,s,r,o){const h=["size = retrievals","opacity = strength"],m=[];if(s&&(s.openConflicts>0&&m.push("conflicts (open)"),s.resolvedConflicts>0&&m.push("conflicts (resolved)"),s.sharedTag>0&&m.push("shared tags")),m.length>0&&h.push(`lines = ${m.join(" / ")}`),c!=="layer"&&h.push(`color = ${c}`),r){const _=r.cappedFrom!==void 0?`view = local (${r.size}, capped from ${r.cappedFrom})`:`view = local (${r.size})`;h.push(_)}o&&h.push(`layout: settling (${o})`);let v=h.join(" · ");return s?.sharedTagBailed&&s.sharedTag===0&&(v+=" · filter to <500 for tag edges"),v}function Zn({children:c}){return d.jsx("span",{style:{display:"inline-block",fontFamily:"var(--font-mono)",fontSize:9,padding:"1px 5px",background:"var(--ink-faint)",border:"1px solid var(--glass-border)",borderRadius:3,color:"var(--text)",lineHeight:1.3,marginRight:3},children:c})}const Cg=[{key:"buffer",label:"buffer"},{key:"episodic",label:"episodic"},{key:"semantic",label:"semantic"}];function Og({drawerOpen:c,onToggleDrawer:s,visibleCount:r,colorMode:o="layer",edgeCounts:h,localView:m,forceSettling:v}){const _=Dg(o,h,m,v);return d.jsxs("div",{style:{position:"absolute",bottom:0,left:0,right:0,height:36,background:"var(--glass-bg)",backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",borderTop:"1px solid var(--glass-border)",display:"flex",alignItems:"center",padding:"0 24px",gap:24,fontSize:10,fontFamily:"var(--font-mono)",color:"var(--dim)",zIndex:25,pointerEvents:"auto"},children:[d.jsx("div",{style:{display:"flex",alignItems:"center",gap:14},children:Cg.map(({key:U,label:O})=>d.jsxs("div",{style:{display:"flex",alignItems:"center",gap:5},children:[d.jsx("span",{style:{width:6,height:6,borderRadius:"50%",background:Re[U],display:"inline-block"}}),d.jsx("span",{children:O})]},U))}),d.jsx("div",{style:{flex:1}}),d.jsxs("div",{style:{display:"flex",alignItems:"center",gap:14},children:[d.jsxs("span",{children:[d.jsx(Zn,{children:"/"})," search"]}),d.jsxs("span",{children:[d.jsx(Zn,{children:"esc"})," clear"]}),d.jsxs("span",{children:[d.jsx(Zn,{children:"f"})," freeze"]}),d.jsxs("span",{children:[d.jsx(Zn,{children:"click"})," open"]}),d.jsxs("span",{role:"button",tabIndex:0,onClick:s,onKeyDown:U=>{(U.key==="Enter"||U.key===" ")&&(U.preventDefault(),s())},"aria-controls":"memory-drawer","aria-expanded":c,"aria-label":c?"L map, close memory list view":`L list (${r}), open memory list view`,style:{cursor:"pointer",color:c?"var(--accent)":"var(--dim)",transition:"color 150ms ease",userSelect:"none",padding:"6px 4px",display:"inline-flex",alignItems:"center",gap:3},children:[d.jsx(Zn,{children:"L"})," ",c?"map":`list (${r})`]})]}),d.jsx("div",{style:{flex:1}}),d.jsx("div",{style:{fontStyle:"italic",fontFamily:"var(--font-serif)",fontSize:11,color:"var(--dim)",letterSpacing:"0.2px",maxWidth:"50%",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:_})]})}function Rg(c,s,r,o){const m=(r?c.filter(v=>s.has(v.id)):c).filter(v=>!(v.content.split(/\n/)[0]?.trim()??"").startsWith("[")).map(v=>({m:v,score:v.strength*Math.log2(v.retrieval_count+2)}));return m.sort((v,_)=>_.score-v.score),m.slice(0,o).map(v=>v.m)}function Ug(c){let s=c.content.split(/\n/)[0]?.trim()??"";return s=s.replace(/^\[[^\]]*\]\s*/,""),s.length===0?"":s.length<=28?s:s.slice(0,27).trimEnd()+"…"}function Bg({memories:c,visibleIds:s,filterActive:r,scene:o,topN:h=10}){const m=B.useMemo(()=>Rg(c,s,r,h),[c,s,r,h]),v=B.useRef(new Map);return B.useEffect(()=>{const _=new Set(m.map(U=>U.id));for(const U of v.current.keys())_.has(U)||v.current.delete(U)},[m]),B.useEffect(()=>{if(!o)return;const _=new Wt,U=o.getRenderer(),O=new Pt,R=[],M=E=>{const N=U.getSize(O),H=N.x,L=N.y;R.length=0;for(const P of m){const Y=o.getNodePosition(P.id),G=v.current.get(P.id);if(!Y||!G)continue;if(_.set(Y.x,Y.y,Y.z),_.project(E),Math.abs(_.x)>1||Math.abs(_.y)>1||_.z<-1||_.z>1){G.style.opacity="0";continue}const V=(_.x*.5+.5)*H,W=(-_.y*.5+.5)*L,K=V+12,w=W-8,nt=G.offsetWidth||160,X=G.offsetHeight||18;let it=!1;for(const at of R)if(K<at.x+at.w&&K+nt>at.x&&w<at.y+at.h&&w+X>at.y){it=!0;break}if(it){G.style.opacity="0";continue}R.push({x:K,y:w,w:nt,h:X}),G.style.transform=`translate(${Math.round(K)}px, ${Math.round(w)}px)`,G.style.opacity="1"}};return o.onRender(M)},[o,m]),d.jsx("div",{"aria-hidden":"true",style:{position:"absolute",top:72,left:24,right:364,bottom:60,pointerEvents:"none",zIndex:5,overflow:"hidden"},children:m.map(_=>d.jsxs("div",{ref:U=>{v.current.set(_.id,U)},style:{position:"absolute",top:0,left:0,transform:"translate(-9999px, -9999px)",opacity:0,transition:"opacity 200ms ease",fontFamily:"var(--font-serif)",fontWeight:600,fontSize:11,color:"var(--text)",background:"var(--glass-bg-strong)",padding:"2px 8px",borderRadius:3,border:"1px solid var(--glass-border)",boxShadow:"0 1px 3px var(--ink-shadow)",letterSpacing:"0.2px",whiteSpace:"nowrap",pointerEvents:"none"},children:[d.jsx("span",{style:{display:"inline-block",width:5,height:5,borderRadius:"50%",background:Re[_.layer],marginRight:5,verticalAlign:"middle"}}),Ug(_)]},_.id))})}function Ng(c){return c==="tag"||c==="path"}const Ah=280;function Hg(c,s){const r=c.split(/\n/)[0]?.trim()??"";return r.length<=s?r:r.slice(0,s-1).trimEnd()+"…"}function wg({memories:c,visibleIds:s,filterActive:r,colorMode:o="layer",open:h,onClose:m,onMemorySelect:v,selectedMemoryId:_,resetFilters:U}){const O=o==="tag"||o==="path",R=B.useMemo(()=>r?c.filter(E=>s.has(E.id)):c,[c,s,r]),M=B.useRef(null);B.useEffect(()=>{if(!h)return;const E=M.current;if(!E)return;(_?E.querySelector(`tr[data-memory-id="${_}"]`):E.querySelector("tr[data-memory-id]"))?.focus()},[h,_]);function z(E){const N=M.current;if(!N)return;const H=Array.from(N.querySelectorAll("tr[data-memory-id]")),L=H.findIndex(P=>P===document.activeElement);if(E.key==="ArrowDown"&&L<H.length-1)E.preventDefault(),H[L+1]?.focus();else if(E.key==="ArrowUp"&&L>0)E.preventDefault(),H[L-1]?.focus();else if(E.key==="Escape")E.preventDefault(),m();else if((E.key==="Enter"||E.key===" ")&&L>=0){E.preventDefault();const Y=H[L]?.dataset.memoryId,G=Y?c.find(V=>V.id===Y):void 0;G&&v(G)}}return d.jsxs("div",{id:"memory-drawer",role:"region","aria-label":`Memory list view, ${R.length} ${R.length===1?"memory":"memories"}${r?" (filtered)":""}`,"data-drawer":"memory-list",style:{position:"absolute",bottom:36,left:0,right:0,height:Ah,background:"var(--glass-bg-strong)",backdropFilter:"blur(24px)",WebkitBackdropFilter:"blur(24px)",borderTop:"1px solid var(--glass-border)",boxShadow:"0 -4px 24px var(--ink-shadow)",transform:h?"translateY(0)":`translateY(${Ah}px)`,transition:"transform 250ms cubic-bezier(0.16, 1, 0.3, 1)",overflow:"hidden",zIndex:22,display:"flex",flexDirection:"column"},children:[d.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"8px 20px",borderBottom:"1px solid var(--glass-border)"},children:[d.jsxs("h2",{style:{margin:0,fontSize:11,fontVariant:"small-caps",letterSpacing:"1px",color:"var(--dim)",fontWeight:400},children:["Memory list",d.jsxs("span",{style:{marginLeft:8,fontFamily:"var(--font-mono)",fontSize:10,color:"var(--text-faint)",letterSpacing:0,fontVariant:"normal"},children:[R.length,r?" of "+c.length+" (filtered)":""]})]}),d.jsx("button",{type:"button",onClick:m,"aria-label":"Close memory list",style:{background:"var(--ink-faint)",border:"none",borderRadius:3,color:"var(--dim)",cursor:"pointer",padding:"4px 10px",fontSize:10,fontFamily:"var(--font-mono)",textTransform:"uppercase",letterSpacing:"0.6px"},children:"close (esc)"})]}),R.length===0?d.jsxs("div",{style:{padding:"32px 20px",textAlign:"center",color:"var(--text-faint)",fontFamily:"var(--font-serif)",fontStyle:"italic",fontSize:13},children:["no memories match these filters",d.jsx("div",{style:{marginTop:12},children:d.jsx("button",{type:"button",onClick:U,style:{background:"transparent",border:"1px solid var(--accent)",color:"var(--accent)",padding:"4px 12px",borderRadius:3,fontFamily:"var(--font-mono)",fontSize:10,textTransform:"uppercase",letterSpacing:"0.6px",cursor:"pointer",fontStyle:"normal"},children:"reset filters"})})]}):d.jsx("div",{style:{overflow:"auto",flex:1},children:d.jsxs("table",{onKeyDown:z,style:{width:"100%",borderCollapse:"collapse",tableLayout:"fixed"},children:[d.jsx("thead",{children:d.jsxs("tr",{children:[d.jsx("th",{style:qa,scope:"col",children:"id"}),d.jsx("th",{style:qa,scope:"col",children:"content"}),d.jsx("th",{style:{...qa,width:60},scope:"col",children:"layer"}),O&&d.jsx("th",{style:{...qa,width:80},scope:"col",children:"tag"}),d.jsx("th",{style:{...qa,width:70},scope:"col",children:"strength"}),d.jsx("th",{style:{...qa,width:60},scope:"col",children:"age"})]})}),d.jsx("tbody",{ref:M,children:R.map(E=>{const N=E.id===_;return d.jsxs("tr",{"data-memory-id":E.id,tabIndex:0,role:"row","aria-selected":N,onClick:()=>v(E),onFocus:H=>{H.currentTarget.scrollIntoView({block:"nearest"})},style:{cursor:"pointer",borderLeft:N?"2px solid var(--accent)":"2px solid transparent",background:N?"rgba(196, 92, 60, 0.06)":"transparent",outline:"none"},onMouseEnter:H=>{N||(H.currentTarget.style.background="rgba(196, 185, 168, 0.12)")},onMouseLeave:H=>{N||(H.currentTarget.style.background="transparent")},children:[d.jsx("td",{style:{...Ga,fontFamily:"var(--font-mono)",color:"var(--dim)",fontSize:10},children:E.id.slice(0,10)}),d.jsx("td",{style:{...Ga,color:"var(--text)",fontSize:12,fontFamily:"var(--font-serif)"},children:Hg(E.content,55)}),d.jsxs("td",{style:{...Ga,textAlign:"center"},children:[d.jsx("span",{title:E.layer,style:{display:"inline-block",width:7,height:7,borderRadius:"50%",background:Re[E.layer],verticalAlign:"middle"}}),Fo(E)&&d.jsx("span",{title:"fading (strength < 0.1, unpinned)",style:{display:"inline-block",width:5,height:5,borderRadius:"50%",background:"var(--accent)",verticalAlign:"middle",marginLeft:4}})]}),O&&Ng(o)&&(()=>{const H=Wo(E,o)??"";return d.jsx("td",{style:{...Ga,fontFamily:"var(--font-mono)",fontSize:10,color:"var(--dim)",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},title:H,children:H})})(),d.jsx("td",{style:{...Ga,fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text)"},children:E.strength.toFixed(2)}),d.jsxs("td",{style:{...Ga,fontFamily:"var(--font-mono)",fontSize:11,color:"var(--dim)"},children:[E.age_days,"d"]})]},E.id)})})]})})]})}const qa={textAlign:"left",padding:"7px 20px",fontFamily:"var(--font-serif)",fontSize:10,fontVariant:"small-caps",letterSpacing:"0.6px",color:"var(--dim)",fontWeight:400,background:"var(--map-bg)",position:"sticky",top:0},Ga={padding:"7px 20px",height:28,verticalAlign:"middle",borderBottom:"1px solid var(--glass-border)"};function Lg({onActivate:c}){return d.jsx("a",{href:"#memory-drawer",onClick:s=>{s.preventDefault(),c()},onKeyDown:s=>{(s.key==="Enter"||s.key===" ")&&(s.preventDefault(),c())},style:{position:"absolute",left:-9999,top:8,zIndex:1e3,background:"var(--bg)",border:"1px solid var(--accent)",color:"var(--accent)",padding:"8px 16px",borderRadius:3,fontFamily:"var(--font-serif)",fontSize:13,textDecoration:"none"},onFocus:s=>{s.currentTarget.style.left="8px"},onBlur:s=>{s.currentTarget.style.left="-9999px"},children:"Skip to memory list"})}const Yg=5,qg=60;function Gg(c,s){const r=new Map,o=(m,v)=>{if(m===v)return;let _=r.get(m);_===void 0&&(_=new Set,r.set(m,_)),_.add(v)};for(const m of s)o(m.memory_a_id,m.memory_b_id),o(m.memory_b_id,m.memory_a_id);const h=wh(c,{excludePrefix:"path:",softCap:50,hardCap:300,perTagTopK:15,minShared:2});for(const m of h)o(m.a,m.b),o(m.b,m.a);return r}function Xg(c,s,r){const o=Math.min(Math.max(0,r),Yg),h=Dh(c,s,o);return h.size>qg&&o>1?{memoryIds:Dh(c,s,1),depthUsed:1,cappedFrom:{requestedDepth:o,wouldHaveBeen:h.size}}:{memoryIds:h,depthUsed:o}}function Dh(c,s,r){const o=new Set([s]);if(r<=0)return o;let h=[s];for(let m=0;m<r;m++){const v=[];for(const _ of h){const U=c.get(_);if(U)for(const O of U)o.has(O)||(o.add(O),v.push(O))}if(v.length===0)break;h=v}return o}function Zg({value:c}){return d.jsx("div",{style:{width:"100%",height:3,background:"var(--glass-border)",borderRadius:2,overflow:"hidden"},children:d.jsx("div",{style:{width:`${c*100}%`,height:"100%",borderRadius:2,background:`linear-gradient(90deg, var(--accent), ${c>.5?"var(--green)":"var(--yellow)"})`}})})}function Qg({memory:c,localView:s,setLocalView:r}){const o=s?.centerId===c.id,h=s!==null;let m,v,_;return o?(m="focused",v={...Vg,cursor:"default"},_="This memory is the focused center"):h?(m="recenter here",v=Kg,_="Recenter the focused view on this memory"):(m="focus",v=$o,_="Focus the graph on this memory's neighborhood (depth 2)"),d.jsx("button",{type:"button","aria-label":_,title:_,onClick:()=>{o||r({centerId:c.id,depth:2})},style:v,children:m})}const $o={background:"var(--ink-faint)",border:"1px solid var(--glass-border)",color:"var(--dim)",borderRadius:4,padding:"4px 12px",fontFamily:"var(--font-mono)",fontSize:11,cursor:"pointer"},Vg={...$o,background:"rgba(196, 92, 60, 0.18)",border:"1px solid var(--accent)",color:"var(--accent)"},Kg={...$o,background:"transparent",border:"1px solid transparent",color:"var(--accent)"};function kg({memory:c,onClose:s,open:r,localView:o,setLocalView:h}){if(!c&&!r)return null;const m=c?Re[c.layer]:"var(--accent)";return d.jsx("div",{role:"dialog","aria-label":"Memory details",style:{position:"absolute",top:0,right:0,width:"min(360px, 48vw)",height:"100%",background:"var(--glass-bg-strong)",backdropFilter:"blur(24px)",WebkitBackdropFilter:"blur(24px)",borderLeft:"1px solid var(--glass-border)",overflowY:"auto",zIndex:50,transform:r?"translateX(0)":"translateX(100%)",transition:"transform 250ms cubic-bezier(0.16, 1, 0.3, 1)"},children:c&&d.jsxs(d.Fragment,{children:[d.jsxs("div",{style:{padding:"20px 24px 16px",borderBottom:"1px solid var(--glass-border)",display:"flex",justifyContent:"space-between",alignItems:"flex-start"},children:[d.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[d.jsx("div",{style:{width:8,height:8,borderRadius:"50%",background:m,boxShadow:`0 0 8px ${m}40`}}),d.jsx("span",{style:{color:"var(--dim)",fontSize:10,fontFamily:"var(--font-mono)",letterSpacing:"0.5px",textTransform:"uppercase"},children:c.layer}),d.jsx(Qg,{memory:c,localView:o,setLocalView:h})]}),d.jsx("button",{onClick:s,style:{background:"var(--ink-faint)",border:"none",borderRadius:4,color:"var(--dim)",cursor:"pointer",padding:"4px 10px",fontSize:11,fontFamily:"var(--font-mono)"},children:"esc"})]}),d.jsxs("div",{style:{padding:"20px 24px"},children:[d.jsx("div",{style:{color:"var(--text)",fontSize:13,lineHeight:1.7,whiteSpace:"pre-wrap",wordBreak:"break-word",fontFamily:"var(--font-body)",marginBottom:20},children:c.content}),d.jsxs("div",{style:{marginBottom:16},children:[d.jsxs("div",{style:{display:"flex",justifyContent:"space-between",marginBottom:6},children:[d.jsx("span",{style:{color:"var(--dim)",fontSize:10,fontFamily:"var(--font-mono)"},children:"STRENGTH"}),d.jsx("span",{style:{color:"var(--text)",fontSize:11,fontFamily:"var(--font-mono)"},children:c.strength.toFixed(3)})]}),d.jsx(Zg,{value:c.strength})]}),d.jsx("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:"12px 20px",fontSize:11,marginBottom:20},children:[["Half-life",`${c.half_life_days}d`],["Retrievals",String(c.retrieval_count)],["Age",`${c.age_days}d`],["Schema fit",c.schema_fit.toFixed(2)],["Valence",c.emotional_valence],["Confidence",c.aged_out?`${c.confidence} (aged out)`:c.confidence],["+7d",c.projected_strength_7d.toFixed(3)],["+30d",c.projected_strength_30d.toFixed(3)]].map(([v,_])=>d.jsxs("div",{children:[d.jsx("div",{style:{color:"var(--dim)",fontSize:9,fontFamily:"var(--font-mono)",textTransform:"uppercase",letterSpacing:"0.5px",marginBottom:2},children:v}),d.jsx("div",{style:{color:"var(--text)",fontFamily:"var(--font-mono)"},children:_})]},v))}),c.tags.length>0&&d.jsx("div",{style:{display:"flex",gap:5,flexWrap:"wrap",marginBottom:16},children:c.tags.map(v=>d.jsx("span",{style:{background:"var(--ink-faint)",color:"var(--dim)",padding:"3px 10px",borderRadius:12,fontSize:10,fontFamily:"var(--font-mono)"},children:v},v))}),d.jsxs("div",{style:{fontSize:10,color:"var(--text-faint)",fontFamily:"var(--font-mono)",borderTop:"1px solid var(--glass-border)",paddingTop:12},children:[d.jsx("div",{children:c.id}),d.jsxs("div",{style:{marginTop:4},children:[new Date(c.created).toLocaleDateString()," → ",new Date(c.last_retrieved).toLocaleDateString()]})]})]})]})})}function Jg({memories:c,embeddings:s,stats:r,conflicts:o,filterState:h,frozenOrigin:m,setQuery:v,setFrozen:_,setLayers:U,setStrengthRange:O,setConfidences:R,setAgeMaxDays:M,setFadingOnly:z,setAgedOutOnly:E,setColorMode:N,setLocalView:H,resetFilters:L,viewSwitch:P}){const Y=B.useRef(null),[G,V]=B.useState({width:0,height:0}),[W,K]=B.useState(null),[w,nt]=B.useState(null),[X,it]=B.useState(!1),at=B.useMemo(()=>Gg(c,o),[c,o]),I=B.useMemo(()=>{if(h.localView)return Xg(at,h.localView.centerId,h.localView.depth)},[at,h.localView]);B.useEffect(()=>{h.localView&&!c.some(Tt=>Tt.id===h.localView.centerId)&&H(null)},[c,h.localView]);const rt=B.useMemo(()=>Lp(c,h,I?.memoryIds),[c,h,I]),pt=B.useMemo(()=>wp(h),[h]),[Bt,A]=B.useState(null);B.useEffect(()=>{function Tt(Dt){Dt.target instanceof HTMLInputElement||Dt.target instanceof HTMLTextAreaElement||Dt.target instanceof HTMLElement&&Dt.target.closest('[data-drawer="memory-list"]')||(Dt.key==="l"||Dt.key==="L")&&(Dt.preventDefault(),it(oe=>!oe))}return window.addEventListener("keydown",Tt),()=>window.removeEventListener("keydown",Tt)},[]),B.useEffect(()=>{const Tt=Y.current;if(!Tt)return;const Dt=new ResizeObserver(oe=>{const $l=oe[0];$l&&V({width:Math.floor($l.contentRect.width),height:Math.floor($l.contentRect.height)})});return Dt.observe(Tt),()=>Dt.disconnect()},[]);const q=B.useCallback((Tt,Dt,oe)=>{w||K(Tt?{memory:Tt,x:Dt,y:oe}:null)},[w]),$=B.useCallback(Tt=>{nt(Tt),K(null),Tt===null&&H(null)},[H]),{containerRef:Q,handleMouseMove:J,handleClick:qt,handleKeyDown:zt,edgeCounts:dt,forceSettling:Nt,projectAnchorLayout:$t}=ng({memories:c,embeddings:s,conflicts:o,width:G.width,height:G.height,onHover:q,onClick:$,searchQuery:h.query,frozen:h.frozen,visibleIds:rt,filterActive:pt,colorMode:h.colorMode,adjacency:at,onSceneReady:A}),Ue=B.useMemo(()=>{if(!$t)return[];const Tt=new Map;for(const Dt of c)for(const oe of Dt.tags)$t.byTag.has(oe)&&Tt.set(oe,(Tt.get(oe)??0)+1);return $t.orderedTags.map(Dt=>({tag:Dt,count:Tt.get(Dt)??0,anchor:$t.byTag.get(Dt)}))},[c,$t]),Wl=B.useMemo(()=>!W||h.colorMode==="layer"?null:Wo(W.memory,h.colorMode),[W,h.colorMode]),Al=h.query.trim().length>0?c.filter(Tt=>Bh(Tt,h.query)).length:null,ll=w!==null;return d.jsxs("div",{ref:Y,style:{width:"100%",height:"100%",position:"relative",overflow:"hidden"},onKeyDown:zt,tabIndex:0,children:[d.jsx(Lg,{onActivate:()=>it(!0)}),d.jsxs("div",{role:"region","aria-label":"Memory graph (visual representation)",style:{position:"absolute",top:72,left:24,right:364,bottom:60,border:"1px solid var(--border)",borderRadius:2,background:"var(--map-bg)",overflow:"hidden",zIndex:0},children:[d.jsx("div",{"aria-hidden":"true",style:{position:"absolute",inset:0},children:d.jsx("div",{ref:Q,onMouseMove:J,onClick:qt,style:{position:"absolute",inset:0}})}),d.jsxs("button",{type:"button",className:"sr-only",onClick:()=>it(!0),children:["For a tabular alternative, view the memory list (",c.length," memories)"]})]}),d.jsx(ug,{memoryCount:c.length,matchCount:Al,stats:r,filterState:h,frozenOrigin:m,setQuery:v,setFrozen:_,setFadingOnly:z,viewSwitch:P}),d.jsx(Bg,{memories:c,visibleIds:rt,filterActive:pt,scene:Bt}),d.jsx(Ag,{memories:c,stats:r,visibleIds:rt,filterActive:pt,selectedMemory:w,filterState:h,setQuery:v,setLayers:U,setStrengthRange:O,setConfidences:R,setAgeMaxDays:M,setFadingOnly:z,setAgedOutOnly:E,setColorMode:N,resetFilters:L,projects:Ue}),Al===0&&h.query.trim().length>0&&d.jsx("div",{style:{position:"absolute",top:56,right:24,zIndex:21,background:"var(--ink-faint)",padding:"4px 12px",borderRadius:12,fontFamily:"var(--font-mono)",fontSize:10,color:"var(--dim)"},children:"no matches"}),W&&!w&&d.jsx(ig,{memory:W.memory,x:W.x,y:W.y,colorMode:h.colorMode,colorTag:Wl}),d.jsx(kg,{memory:w,onClose:()=>{nt(null),H(null)},open:ll,localView:h.localView,setLocalView:H}),d.jsx(wg,{memories:c,visibleIds:rt,filterActive:pt,colorMode:h.colorMode,open:X,onClose:()=>it(!1),onMemorySelect:Tt=>{nt(Tt),K(null)},selectedMemoryId:w?.id??null,resetFilters:L}),d.jsx(Og,{drawerOpen:X,onToggleDrawer:()=>it(Tt=>!Tt),visibleCount:pt?rt.size:c.length,colorMode:h.colorMode,edgeCounts:dt,localView:I?{size:I.memoryIds.size,cappedFrom:I.cappedFrom?.wouldHaveBeen}:void 0,forceSettling:Nt})]})}const Fg=[{key:"map",label:"map",aria:"Memory map"},{key:"board",label:"board",aria:"Card board"}];function Wg({view:c,onChange:s,autoFocus:r}){function o(h){h.key!=="ArrowLeft"&&h.key!=="ArrowRight"&&h.key!=="ArrowUp"&&h.key!=="ArrowDown"||(h.preventDefault(),s(c==="map"?"board":"map"))}return d.jsx("div",{role:"radiogroup","aria-label":"Dashboard view",onKeyDown:o,style:$g,children:Fg.map(({key:h,label:m,aria:v})=>{const _=c===h;return d.jsx("button",{type:"button",role:"radio","aria-checked":_,"aria-label":v,tabIndex:_?0:-1,autoFocus:r&&_,onClick:()=>{_||s(h)},style:{...Ig,background:_?"rgba(196, 92, 60, 0.10)":"transparent",color:_?"var(--accent)":"var(--dim)",borderColor:_?"var(--accent)":"var(--glass-border)",fontWeight:_?500:400},children:m},h)})})}const $g={display:"flex",gap:4},Ig={fontSize:10,fontFamily:"var(--font-mono)",padding:"2px 8px",borderRadius:3,cursor:"pointer",transition:"color 150ms ease, border-color 150ms ease, background 150ms ease",border:"1px solid"};function Gh(c,s){return c.leaseUntil===null||Date.parse(c.leaseUntil)<s}function Pg(c,s){return Gh(c,s)?d.jsxs(d.Fragment,{children:[d.jsx("span",{style:dv})," expired"]}):c.leaseUntil!==null?`until ${new Date(c.leaseUntil).toLocaleString()}`:null}function Fl({label:c,value:s}){return d.jsxs("div",{children:[d.jsx("div",{style:Xh,children:c}),d.jsx("div",{style:ov,children:s})]})}function Xa({label:c,children:s}){return d.jsxs("div",{style:{marginBottom:16},children:[d.jsx("div",{style:Xh,children:c}),d.jsx("div",{style:cv,children:s})]})}function tv({cardId:c,refreshKey:s,onClose:r}){const[o,h]=B.useState(null),[m,v]=B.useState(null),_=B.useRef(null);B.useEffect(()=>{let O=!1;return v(null),np(c).then(R=>{O||h(R)}).catch(R=>{O||v(ko(R))}),()=>{O=!0}},[c,s]),B.useEffect(()=>{_.current?.focus()},[]),B.useEffect(()=>{function O(R){R.key==="Escape"&&r()}return window.addEventListener("keydown",O),()=>window.removeEventListener("keydown",O)},[r]);const U=Date.now();return d.jsxs("div",{role:"dialog","aria-label":"Card details",style:ev,children:[d.jsxs("div",{style:lv,children:[d.jsx("span",{style:av,children:o?.card.status??""}),d.jsx("button",{ref:_,type:"button","aria-label":"esc, close card details",onClick:r,style:nv,children:"esc"})]}),d.jsx("div",{style:iv,children:o?d.jsxs(d.Fragment,{children:[m!==null&&d.jsx("div",{role:"alert",style:Ch,children:m}),d.jsx("div",{style:sv,children:o.card.title}),d.jsxs("div",{style:uv,children:[d.jsx(Fl,{label:"Status",value:o.card.status}),o.card.assigneeRuntime!==null&&d.jsx(Fl,{label:"Assignee",value:o.card.assigneeRuntime}),o.card.status==="running"&&d.jsx(Fl,{label:"Lease",value:Pg(o.card,U)}),o.card.heartbeatAt!==null&&d.jsx(Fl,{label:"Heartbeat",value:new Date(o.card.heartbeatAt).toLocaleString()}),o.card.repo!==null&&d.jsx(Fl,{label:"Repo",value:o.card.repo}),o.card.budget!==null&&d.jsx(Fl,{label:"Budget",value:String(o.card.budget)}),d.jsx(Fl,{label:"Updated",value:new Date(o.card.updatedAt).toLocaleString()})]}),o.card.contract!==null&&d.jsx(Xa,{label:"Contract",children:d.jsx("div",{style:{whiteSpace:"pre-wrap"},children:o.card.contract})}),o.deps.parents.length>0&&d.jsx(Xa,{label:"Parents",children:o.deps.parents.join(", ")}),o.deps.children.length>0&&d.jsx(Xa,{label:"Children",children:o.deps.children.join(", ")}),o.runs.length>0&&d.jsx(Xa,{label:"Runs",children:o.runs.map(O=>d.jsxs("div",{children:["run ",O.id,": ",O.runtime," started ",new Date(O.started).toLocaleString(),O.ended!==null?d.jsxs(d.Fragment,{children:[" ended ",new Date(O.ended).toLocaleString()," (",O.outcome,")"]}):" (open)"]},O.id))}),o.comments.length>0&&d.jsx(Xa,{label:"Comments",children:o.comments.map(O=>d.jsxs("div",{children:["[",new Date(O.createdAt).toLocaleString(),"] ",O.author,": ",O.body]},O.id))}),o.handoff!==null&&d.jsxs(Xa,{label:"Latest handoff",children:[d.jsxs("div",{children:["Session: ",o.handoff.sessionId,", updated ",new Date(o.handoff.updatedAt).toLocaleString()]}),d.jsx("div",{children:o.handoff.summary})]}),d.jsx("div",{style:fv,children:o.card.id})]}):m?d.jsx("div",{role:"alert",style:Ch,children:m}):d.jsx("div",{role:"status",style:rv,children:"loading card"})})]})}const ev={position:"absolute",top:48,right:0,width:"min(360px, 48vw)",height:"calc(100% - 48px)",background:"var(--glass-bg-strong)",backdropFilter:"blur(24px)",WebkitBackdropFilter:"blur(24px)",borderLeft:"1px solid var(--glass-border)",overflowY:"auto",zIndex:50},lv={padding:"20px 24px 16px",borderBottom:"1px solid var(--glass-border)",display:"flex",justifyContent:"space-between",alignItems:"flex-start"},av={color:"var(--dim)",fontSize:10,fontFamily:"var(--font-mono)",letterSpacing:"0.5px",textTransform:"uppercase"},nv={background:"var(--ink-faint)",border:"none",borderRadius:4,color:"var(--dim)",cursor:"pointer",padding:"4px 10px",fontSize:11,fontFamily:"var(--font-mono)"},iv={padding:"20px 24px"},sv={color:"var(--text)",fontSize:13,lineHeight:1.7,whiteSpace:"pre-wrap",wordBreak:"break-word",fontFamily:"var(--font-body)",marginBottom:20},uv={display:"grid",gridTemplateColumns:"1fr 1fr",gap:"12px 20px",fontSize:11,marginBottom:20},Xh={color:"var(--dim)",fontSize:9,fontFamily:"var(--font-mono)",textTransform:"uppercase",letterSpacing:"0.5px",marginBottom:2},ov={color:"var(--text)",fontFamily:"var(--font-mono)",wordBreak:"break-word"},cv={color:"var(--text)",fontFamily:"var(--font-mono)",fontSize:11,wordBreak:"break-word"},fv={fontSize:10,color:"var(--text-faint)",fontFamily:"var(--font-mono)",borderTop:"1px solid var(--glass-border)",paddingTop:12,wordBreak:"break-word"},Ch={color:"var(--red)",fontFamily:"var(--font-mono)",fontSize:11},rv={color:"var(--dim)",fontFamily:"var(--font-mono)",fontSize:11,letterSpacing:"2px"},dv={display:"inline-block",width:8,height:8,borderRadius:"50%",background:"var(--accent)",boxShadow:"0 0 8px var(--accent-focus)",verticalAlign:"middle"},hv=["backlog","ready","running","blocked","review","done","shelved"];function mv(c){return new Date(c).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})}function yv(c,s){if(c.status==="running"){if(Gh(c,s))return d.jsxs(d.Fragment,{children:[c.assigneeRuntime," ",d.jsx("span",{style:Rv}),d.jsx("span",{style:{color:"var(--text)"},children:" lease expired"})]});if(c.leaseUntil!==null)return d.jsxs(d.Fragment,{children:[c.assigneeRuntime," lease until ",mv(c.leaseUntil)]})}return c.assigneeRuntime||null}function pv({viewSwitch:c}){const[s,r]=B.useState(null),[o,h]=B.useState(null),[m,v]=B.useState(!0),[_,U]=B.useState(0),[O,R]=B.useState(null),M=B.useRef(null);B.useEffect(()=>{let L=!1;return ap().then(P=>{L||(r(P.cards),h(null),v(!1))}).catch(P=>{L||(h(ko(P)),v(!1))}),()=>{L=!0}},[_]);function z(){v(!0),U(L=>L+1)}function E(){R(null),O!==null&&M.current?.querySelector(`[data-card-id="${O}"]`)?.focus()}const N=Date.now(),H=s?.length??0;return d.jsxs("div",{style:{width:"100%",height:"100%",position:"relative"},children:[d.jsxs("div",{className:"dashboard-bar",style:gv,children:[d.jsxs("div",{style:{flex:"0 0 auto",display:"flex",alignItems:"baseline",gap:12},children:[d.jsx("span",{style:{color:"var(--text)",fontSize:16,fontWeight:700,fontFamily:"var(--font-serif)",letterSpacing:"0.3px"},children:"hippo"}),d.jsx("span",{className:"bar-decorative",style:{color:"var(--accent)",fontSize:11,fontFamily:"var(--font-serif)",fontStyle:"italic"},children:"brain observatory"})]}),c,d.jsx("span",{"aria-live":"polite",className:"bar-live",style:{color:"var(--dim)",fontSize:10,fontFamily:"var(--font-mono)"},children:s!==null?`${H} ${H===1?"card":"cards"}`:""}),d.jsx("div",{style:{flex:1}}),s!==null&&o!==null&&d.jsx("span",{role:"alert",style:{color:"var(--red)",fontSize:10,fontFamily:"var(--font-mono)"},children:o}),d.jsx("button",{type:"button",onClick:z,style:bv,children:m?"refreshing":"refresh"})]}),d.jsxs("div",{ref:M,style:vv,children:[s===null&&o===null&&d.jsx("div",{style:Xo,children:d.jsx("div",{role:"status",style:Sv,children:"loading cards"})}),s===null&&o!==null&&d.jsxs("div",{style:Xo,children:[d.jsx("div",{role:"alert",style:xv,children:o}),d.jsx("div",{style:Oh,children:"is hippo dashboard running?"})]}),s!==null&&s.length===0&&d.jsxs("div",{style:Xo,children:[d.jsx("div",{style:_v,children:"no cards yet"}),d.jsxs("div",{style:Oh,children:["run ",d.jsx("span",{style:{color:"var(--accent)"},children:"hippo card create"})," to begin"]})]}),s!==null&&s.length>0&&hv.map(L=>{const P=s.filter(Y=>Y.status===L);return d.jsxs("section",{"aria-labelledby":`board-col-${L}`,style:zv,children:[d.jsxs("h3",{id:`board-col-${L}`,style:Tv,children:[L," ",d.jsx("span",{style:Ev,children:P.length})]}),d.jsx("ul",{style:Mv,children:P.length===0?d.jsx("li",{style:jv,children:"none"}):P.map(Y=>{const G=yv(Y,N);return d.jsx("li",{children:d.jsxs("button",{type:"button","data-card-id":Y.id,onClick:()=>R(Y.id),style:{...Av,background:Y.id===O?"rgba(196, 92, 60, 0.10)":"transparent",borderColor:Y.id===O?"var(--accent)":"var(--glass-border)"},children:[d.jsx("div",{style:Dv,children:Y.title}),d.jsx("div",{style:Cv,children:Y.id}),G&&d.jsx("div",{style:Ov,children:G})]})},Y.id)})})]},L)})]}),O&&d.jsx(tv,{cardId:O,refreshKey:_,onClose:E},O)]})}const gv={position:"absolute",top:0,left:0,right:0,height:48,zIndex:20,background:"var(--glass-bg)",backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",borderBottom:"1px solid var(--glass-border)",display:"flex",alignItems:"center",pointerEvents:"auto"},vv={position:"absolute",top:72,left:24,right:24,bottom:24,border:"1px solid var(--border)",borderRadius:2,background:"var(--map-bg)",display:"flex",gap:12,padding:16,overflowX:"auto"},bv={fontFamily:"var(--font-mono)",fontSize:10,letterSpacing:"0.8px",textTransform:"uppercase",background:"transparent",border:"1px solid var(--glass-border)",color:"var(--dim)",padding:"5px 12px",borderRadius:4,cursor:"pointer",transition:"color 150ms ease, border-color 150ms ease, background 150ms ease"},Xo={flex:1,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",textAlign:"center"},Sv={color:"var(--dim)",fontFamily:"var(--font-mono)",fontSize:11,letterSpacing:"2px"},xv={color:"var(--red)",fontFamily:"var(--font-mono)",fontSize:11,marginBottom:8},_v={color:"var(--dim)",fontSize:12,fontFamily:"var(--font-mono)",marginBottom:8},Oh={color:"var(--text-faint)",fontSize:10,fontFamily:"var(--font-mono)"},zv={flex:"1 0 160px",minWidth:0,display:"flex",flexDirection:"column"},Tv={fontSize:11,fontVariant:"small-caps",letterSpacing:"1px",fontWeight:400,color:"var(--text)",marginBottom:4,paddingBottom:6,borderBottom:"1px solid var(--glass-border)"},Ev={fontFamily:"var(--font-mono)",fontSize:10,color:"var(--dim)"},Mv={listStyle:"none",margin:0,padding:0,overflowY:"auto",display:"flex",flexDirection:"column",gap:6},jv={fontSize:11,color:"var(--text-faint)",fontStyle:"italic",fontFamily:"var(--font-serif)"},Av={display:"block",padding:"8px 10px",background:"transparent",border:"1px solid var(--glass-border)",borderRadius:3,cursor:"pointer",transition:"background 150ms ease",width:"100%",textAlign:"left"},Dv={fontSize:11,lineHeight:1.5,color:"var(--text)",fontFamily:"var(--font-serif)",marginBottom:4},Cv={marginBottom:4,color:"var(--dim)",fontFamily:"var(--font-mono)",fontSize:9,wordBreak:"break-word"},Ov={fontFamily:"var(--font-mono)",fontSize:9,color:"var(--dim)"},Rv={display:"inline-block",width:8,height:8,borderRadius:"50%",background:"var(--accent)",boxShadow:"0 0 8px var(--accent-focus)",verticalAlign:"middle"},Uv=`
57
- @keyframes hippo-float {
58
- 0%, 100% { transform: translateY(0px); opacity: 0.4; }
59
- 50% { transform: translateY(-6px); opacity: 1; }
60
- }
61
- `;function Bv(){const[c,s]=B.useState([]),[r,o]=B.useState(null),[h,m]=B.useState([]),[v,_]=B.useState({}),[U,O]=B.useState("loading"),[R,M]=B.useState(""),[z,E]=B.useState(gh),[N,H]=B.useState(null),[L,P]=B.useState("map"),[Y,G]=B.useState(!1),V=B.useCallback(Q=>{P(Q),G(!0)},[]),W=B.useCallback(Q=>{E(J=>({...J,query:Q}))},[]),K=B.useCallback(Q=>{E(J=>({...J,frozen:Q})),H("user")},[]);B.useEffect(()=>{if(!("window"in globalThis)||!(window.matchMedia instanceof Function))return;window.matchMedia("(prefers-reduced-motion: reduce)").matches&&(E(J=>({...J,frozen:!0})),H("os"))},[]);const w=B.useCallback(Q=>{E(J=>({...J,layers:Q}))},[]),nt=B.useCallback(Q=>{E(J=>({...J,strengthRange:Q}))},[]),X=B.useCallback(Q=>{E(J=>({...J,confidences:Q}))},[]),it=B.useCallback(Q=>{E(J=>({...J,ageMaxDays:Q}))},[]),at=B.useCallback(()=>{E(Q=>({...gh,frozen:Q.frozen,colorMode:Q.colorMode}))},[]),I=B.useCallback(Q=>{E(J=>({...J,agedOutOnly:Q}))},[]),rt=B.useCallback(Q=>{E(J=>({...J,fadingOnly:Q}))},[]),pt=B.useCallback(Q=>{E(J=>({...J,colorMode:Q}))},[]),Bt=B.useCallback(Q=>{Q!==null&&!c.some(J=>J.id===Q.centerId)||E(J=>({...J,localView:Q}))},[c]),[A,q]=B.useState("");B.useEffect(()=>{z.fadingOnly&&r&&r.at_risk===0&&(E(Q=>({...Q,fadingOnly:!1})),q("No more fading memories — fading filter cleared."))},[z.fadingOnly,r?.at_risk]),B.useEffect(()=>{function Q(J){L==="map"&&(J.target instanceof HTMLInputElement||J.target instanceof HTMLTextAreaElement||J.target instanceof HTMLElement&&J.target.closest('[data-drawer="memory-list"]')||(J.key==="f"||J.key==="F")&&K(!z.frozen))}return window.addEventListener("keydown",Q),()=>window.removeEventListener("keydown",Q)},[z.frozen,K,L]),B.useEffect(()=>{Promise.all([P0(),tp(),ep(),lp()]).then(([Q,J,qt,zt])=>{s(Q),o(J),m(qt),_(zt),O("ready")}).catch(Q=>{M(ko(Q)),O("error")})},[]);const $=d.jsx(Wg,{view:L,onChange:V,autoFocus:Y});return L==="board"?d.jsx("main",{style:{width:"100%",height:"100%"},children:d.jsx(pv,{viewSwitch:$})}):U==="loading"?d.jsxs("div",{style:Zo,children:[d.jsx("style",{children:Uv}),d.jsxs("div",{style:{textAlign:"center"},children:[d.jsx("div",{style:{fontSize:32,animation:"hippo-float 2.5s ease-in-out infinite",marginBottom:16,filter:"saturate(0.7)"},children:"🧠"}),d.jsx("div",{role:"status","aria-live":"polite",style:{color:"var(--dim)",fontFamily:"var(--font-mono)",fontSize:11,letterSpacing:"2px"},children:"loading memories"}),d.jsx("div",{style:{marginTop:16},children:$})]})]}):U==="error"?d.jsx("div",{style:Zo,children:d.jsxs("div",{style:{textAlign:"center",maxWidth:320},children:[d.jsx("div",{style:{color:"var(--red)",fontFamily:"var(--font-mono)",fontSize:11,marginBottom:8},children:R}),d.jsx("div",{style:{color:"var(--text-faint)",fontSize:10,fontFamily:"var(--font-mono)"},children:"is hippo dashboard running?"}),d.jsx("div",{style:{marginTop:16},children:$})]})}):c.length===0?d.jsx("div",{style:Zo,children:d.jsxs("div",{style:{textAlign:"center"},children:[d.jsx("div",{style:{fontSize:32,marginBottom:16,opacity:.5},children:"🧠"}),d.jsx("div",{style:{color:"var(--dim)",fontSize:12,fontFamily:"var(--font-mono)",marginBottom:8},children:"no memories yet"}),d.jsxs("div",{style:{color:"var(--text-faint)",fontSize:10,fontFamily:"var(--font-mono)"},children:["run"," ",d.jsx("span",{style:{color:"var(--accent)"},children:"hippo remember"})," ","to begin"]}),d.jsx("div",{style:{marginTop:16},children:$})]})}):d.jsxs("main",{style:{width:"100%",height:"100%"},children:[d.jsx(Jg,{memories:c,embeddings:v,stats:r,conflicts:h,filterState:z,frozenOrigin:N,setQuery:W,setFrozen:K,setLayers:w,setStrengthRange:nt,setConfidences:X,setAgeMaxDays:it,setFadingOnly:rt,setAgedOutOnly:I,setColorMode:pt,setLocalView:Bt,resetFilters:at,viewSwitch:$}),d.jsx("div",{role:"status","aria-live":"polite",className:"sr-only",children:A})]})}const Zo={width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center"};$0.createRoot(document.getElementById("root")).render(d.jsx(Bv,{}));