apteva 0.4.56 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (142) hide show
  1. package/README.md +216 -54
  2. package/cli.js +35 -0
  3. package/install.js +92 -0
  4. package/package.json +12 -79
  5. package/LICENSE +0 -63
  6. package/bin/apteva.js +0 -196
  7. package/dist/ActivityPage.kxzzb4yc.js +0 -3
  8. package/dist/ApiDocsPage.zq998hbm.js +0 -4
  9. package/dist/App.55rea8mn.js +0 -61
  10. package/dist/App.5ywb23z4.js +0 -53
  11. package/dist/App.6thds120.js +0 -4
  12. package/dist/App.9tctxzqm.js +0 -8
  13. package/dist/App.a8r8ttaz.js +0 -4
  14. package/dist/App.agsv5bje.js +0 -4
  15. package/dist/App.cepapqmx.js +0 -4
  16. package/dist/App.dp041gb3.js +0 -221
  17. package/dist/App.fds72zb5.js +0 -4
  18. package/dist/App.fg9qj2dq.js +0 -4
  19. package/dist/App.ndfejbm9.js +0 -4
  20. package/dist/App.nxmfmq1h.js +0 -13
  21. package/dist/App.qdfyt8ba.js +0 -4
  22. package/dist/App.x2d0ygt6.js +0 -4
  23. package/dist/App.yt9p4nr3.js +0 -20
  24. package/dist/App.zn4mw16t.js +0 -1
  25. package/dist/ConnectionsPage.8r96ryw7.js +0 -3
  26. package/dist/McpPage.3cwh0gnd.js +0 -3
  27. package/dist/SettingsPage.ykgdh5ev.js +0 -3
  28. package/dist/SkillsPage.4np1s65b.js +0 -3
  29. package/dist/TasksPage.4g08t7p6.js +0 -3
  30. package/dist/TelemetryPage.72w9pwcp.js +0 -3
  31. package/dist/TestsPage.z4fk3r7r.js +0 -3
  32. package/dist/ThreadsPage.63tcajeh.js +0 -3
  33. package/dist/apteva-kit.css +0 -1
  34. package/dist/icon.png +0 -0
  35. package/dist/index.html +0 -16
  36. package/dist/styles.css +0 -1
  37. package/scripts/postinstall.mjs +0 -102
  38. package/src/auth/index.ts +0 -394
  39. package/src/auth/middleware.ts +0 -213
  40. package/src/binary.ts +0 -536
  41. package/src/channels/index.ts +0 -40
  42. package/src/channels/telegram.ts +0 -311
  43. package/src/crypto.ts +0 -301
  44. package/src/db-tests.ts +0 -174
  45. package/src/db.ts +0 -3133
  46. package/src/integrations/agentdojo.ts +0 -559
  47. package/src/integrations/composio.ts +0 -437
  48. package/src/integrations/index.ts +0 -87
  49. package/src/integrations/skillsmp.ts +0 -318
  50. package/src/mcp-client.ts +0 -605
  51. package/src/mcp-handler.ts +0 -394
  52. package/src/mcp-platform.ts +0 -2370
  53. package/src/openapi.ts +0 -2410
  54. package/src/providers.ts +0 -597
  55. package/src/routes/api/agent-utils.ts +0 -890
  56. package/src/routes/api/agents.ts +0 -916
  57. package/src/routes/api/api-keys.ts +0 -95
  58. package/src/routes/api/channels.ts +0 -182
  59. package/src/routes/api/helpers.ts +0 -12
  60. package/src/routes/api/integrations.ts +0 -639
  61. package/src/routes/api/mcp.ts +0 -574
  62. package/src/routes/api/meta-agent.ts +0 -195
  63. package/src/routes/api/projects.ts +0 -112
  64. package/src/routes/api/providers.ts +0 -424
  65. package/src/routes/api/skills.ts +0 -537
  66. package/src/routes/api/system.ts +0 -333
  67. package/src/routes/api/telemetry.ts +0 -203
  68. package/src/routes/api/tests.ts +0 -148
  69. package/src/routes/api/triggers.ts +0 -518
  70. package/src/routes/api/users.ts +0 -148
  71. package/src/routes/api/webhooks.ts +0 -171
  72. package/src/routes/api.ts +0 -53
  73. package/src/routes/auth.ts +0 -251
  74. package/src/routes/share.ts +0 -86
  75. package/src/routes/static.ts +0 -131
  76. package/src/server.ts +0 -642
  77. package/src/test-runner.ts +0 -598
  78. package/src/triggers/agentdojo.ts +0 -253
  79. package/src/triggers/composio.ts +0 -264
  80. package/src/triggers/index.ts +0 -71
  81. package/src/tui/AgentList.tsx +0 -145
  82. package/src/tui/App.tsx +0 -102
  83. package/src/tui/Login.tsx +0 -104
  84. package/src/tui/api.ts +0 -72
  85. package/src/tui/index.tsx +0 -7
  86. package/src/web/App.tsx +0 -455
  87. package/src/web/components/activity/ActivityPage.tsx +0 -314
  88. package/src/web/components/activity/index.ts +0 -1
  89. package/src/web/components/agents/AgentCard.tsx +0 -189
  90. package/src/web/components/agents/AgentPanel.tsx +0 -2244
  91. package/src/web/components/agents/AgentsView.tsx +0 -180
  92. package/src/web/components/agents/CreateAgentModal.tsx +0 -475
  93. package/src/web/components/agents/index.ts +0 -4
  94. package/src/web/components/api/ApiDocsPage.tsx +0 -842
  95. package/src/web/components/auth/CreateAccountStep.tsx +0 -176
  96. package/src/web/components/auth/LoginPage.tsx +0 -91
  97. package/src/web/components/auth/index.ts +0 -2
  98. package/src/web/components/common/Icons.tsx +0 -250
  99. package/src/web/components/common/LoadingSpinner.tsx +0 -44
  100. package/src/web/components/common/Modal.tsx +0 -199
  101. package/src/web/components/common/Select.tsx +0 -97
  102. package/src/web/components/common/index.ts +0 -20
  103. package/src/web/components/connections/ConnectionsPage.tsx +0 -54
  104. package/src/web/components/connections/IntegrationsTab.tsx +0 -170
  105. package/src/web/components/connections/OverviewTab.tsx +0 -137
  106. package/src/web/components/connections/TriggersTab.tsx +0 -1346
  107. package/src/web/components/dashboard/Dashboard.tsx +0 -572
  108. package/src/web/components/dashboard/index.ts +0 -1
  109. package/src/web/components/index.ts +0 -21
  110. package/src/web/components/layout/ErrorBanner.tsx +0 -18
  111. package/src/web/components/layout/Header.tsx +0 -332
  112. package/src/web/components/layout/Sidebar.tsx +0 -231
  113. package/src/web/components/layout/index.ts +0 -3
  114. package/src/web/components/mcp/IntegrationsPanel.tsx +0 -857
  115. package/src/web/components/mcp/McpPage.tsx +0 -2515
  116. package/src/web/components/mcp/index.ts +0 -1
  117. package/src/web/components/meta-agent/MetaAgent.tsx +0 -245
  118. package/src/web/components/onboarding/OnboardingWizard.tsx +0 -404
  119. package/src/web/components/onboarding/index.ts +0 -1
  120. package/src/web/components/settings/SettingsPage.tsx +0 -2776
  121. package/src/web/components/settings/index.ts +0 -1
  122. package/src/web/components/skills/SkillsPage.tsx +0 -1200
  123. package/src/web/components/tasks/TasksPage.tsx +0 -1116
  124. package/src/web/components/tasks/index.ts +0 -1
  125. package/src/web/components/telemetry/TelemetryPage.tsx +0 -1129
  126. package/src/web/components/tests/TestsPage.tsx +0 -594
  127. package/src/web/components/threads/ThreadsPage.tsx +0 -315
  128. package/src/web/context/AuthContext.tsx +0 -242
  129. package/src/web/context/ProjectContext.tsx +0 -214
  130. package/src/web/context/TelemetryContext.tsx +0 -299
  131. package/src/web/context/ThemeContext.tsx +0 -90
  132. package/src/web/context/UIModeContext.tsx +0 -49
  133. package/src/web/context/index.ts +0 -12
  134. package/src/web/hooks/index.ts +0 -3
  135. package/src/web/hooks/useAgents.ts +0 -115
  136. package/src/web/hooks/useOnboarding.ts +0 -20
  137. package/src/web/hooks/useProviders.ts +0 -75
  138. package/src/web/icon.png +0 -0
  139. package/src/web/index.html +0 -16
  140. package/src/web/styles.css +0 -118
  141. package/src/web/themes.ts +0 -162
  142. package/src/web/types.ts +0 -298
@@ -1,221 +0,0 @@
1
- import{a as ov}from"./App.6thds120.js";import"./App.agsv5bje.js";import{f as tz,g as O3,h as r5}from"./App.ndfejbm9.js";import"./App.cepapqmx.js";import"./App.a8r8ttaz.js";import{A as A9,B as T9,C as V9,D as j9,E as Hb,G as az,H as oz,I as pz,J as D9,K as S9,k as kb,l as Gm,m as k3,n as n3,o as L3,p as w0,q as Tt,r as z0,s as $0,t as qm,u as Kb,v as J0,w as u9,x as x9,y as Y0,z as X0}from"./App.x2d0ygt6.js";import"./App.nxmfmq1h.js";import"./App.qdfyt8ba.js";import{N as N3,O as v5}from"./App.fds72zb5.js";import{Q as e9,R as er,S as bz}from"./App.55rea8mn.js";import"./App.5ywb23z4.js";import{V as _o}from"./App.fg9qj2dq.js";import{W as sY}from"./App.9tctxzqm.js";import{$ as St,Y as _a,Z as K3,aa as so,ba as bo,ca as cz,da as a5,ea as Ob,fa as nb,ga as _b,ha as lz,ia as C9,ja as O9,ka as wo,la as fz,ma as I9,na as cp,oa as wz,pa as av,qa as M3,ra as Mp,sa as zz}from"./App.yt9p4nr3.js";var y9=K3((EY)=>{(function(){function f(){if(va=!1,V){var F=EY.unstable_now();aa=F;var oa=!0;try{a:{ra=!1,$a&&($a=!1,da(Fa),Fa=-1),ca=!0;var ta=s;try{o:{n(F);for(R=Q(O);R!==null&&!(R.expirationTime>F&&G());){var la=R.callback;if(typeof la==="function"){R.callback=null,s=R.priorityLevel;var Ta=la(R.expirationTime<=F);if(F=EY.unstable_now(),typeof Ta==="function"){R.callback=Ta,n(F),oa=!0;break o}R===Q(O)&&W(O),n(F)}else W(O);R=Q(O)}if(R!==null)oa=!0;else{var Vo=Q(T);Vo!==null&&N(H,Vo.startTime-F),oa=!1}}break a}finally{R=null,s=ta,ca=!1}oa=void 0}}finally{oa?ia():V=!1}}}function Z(F,oa){var ta=F.length;F.push(oa);a:for(;0<ta;){var la=ta-1>>>1,Ta=F[la];if(0<L(Ta,oa))F[la]=oa,F[ta]=Ta,ta=la;else break a}}function Q(F){return F.length===0?null:F[0]}function W(F){if(F.length===0)return null;var oa=F[0],ta=F.pop();if(ta!==oa){F[0]=ta;a:for(var la=0,Ta=F.length,Vo=Ta>>>1;la<Vo;){var Gp=2*(la+1)-1,x=F[Gp],Ba=Gp+1,oo=F[Ba];if(0>L(x,ta))Ba<Ta&&0>L(oo,x)?(F[la]=oo,F[Ba]=ta,la=Ba):(F[la]=x,F[Gp]=ta,la=Gp);else if(Ba<Ta&&0>L(oo,ta))F[la]=oo,F[Ba]=ta,la=Ba;else break a}}return oa}function L(F,oa){var ta=F.sortIndex-oa.sortIndex;return ta!==0?ta:F.id-oa.id}function n(F){for(var oa=Q(T);oa!==null;){if(oa.callback===null)W(T);else if(oa.startTime<=F)W(T),oa.sortIndex=oa.expirationTime,Z(O,oa);else break;oa=Q(T)}}function H(F){if($a=!1,n(F),!ra)if(Q(O)!==null)ra=!0,V||(V=!0,ia());else{var oa=Q(T);oa!==null&&N(H,oa.startTime-F)}}function G(){return va?!0:EY.unstable_now()-aa<U?!1:!0}function N(F,oa){Fa=S(function(){F(EY.unstable_now())},oa)}if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),EY.unstable_now=void 0,typeof performance==="object"&&typeof performance.now==="function"){var C=performance;EY.unstable_now=function(){return C.now()}}else{var h=Date,P=h.now();EY.unstable_now=function(){return h.now()-P}}var O=[],T=[],I=1,R=null,s=3,ca=!1,ra=!1,$a=!1,va=!1,S=typeof setTimeout==="function"?setTimeout:null,da=typeof clearTimeout==="function"?clearTimeout:null,ga=typeof setImmediate<"u"?setImmediate:null,V=!1,Fa=-1,U=5,aa=-1;if(typeof ga==="function")var ia=function(){ga(f)};else if(typeof MessageChannel<"u"){var k=new MessageChannel,q=k.port2;k.port1.onmessage=f,ia=function(){q.postMessage(null)}}else ia=function(){S(f,0)};EY.unstable_IdlePriority=5,EY.unstable_ImmediatePriority=1,EY.unstable_LowPriority=4,EY.unstable_NormalPriority=3,EY.unstable_Profiling=null,EY.unstable_UserBlockingPriority=2,EY.unstable_cancelCallback=function(F){F.callback=null},EY.unstable_forceFrameRate=function(F){0>F||125<F?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):U=0<F?Math.floor(1000/F):5},EY.unstable_getCurrentPriorityLevel=function(){return s},EY.unstable_next=function(F){switch(s){case 1:case 2:case 3:var oa=3;break;default:oa=s}var ta=s;s=oa;try{return F()}finally{s=ta}},EY.unstable_requestPaint=function(){va=!0},EY.unstable_runWithPriority=function(F,oa){switch(F){case 1:case 2:case 3:case 4:case 5:break;default:F=3}var ta=s;s=F;try{return oa()}finally{s=ta}},EY.unstable_scheduleCallback=function(F,oa,ta){var la=EY.unstable_now();switch(typeof ta==="object"&&ta!==null?(ta=ta.delay,ta=typeof ta==="number"&&0<ta?la+ta:la):ta=la,F){case 1:var Ta=-1;break;case 2:Ta=250;break;case 5:Ta=1073741823;break;case 4:Ta=1e4;break;default:Ta=5000}return Ta=ta+Ta,F={id:I++,callback:oa,priorityLevel:F,startTime:ta,expirationTime:Ta,sortIndex:-1},ta>la?(F.sortIndex=ta,Z(T,F),Q(O)===null&&F===Q(T)&&($a?(da(Fa),Fa=-1):$a=!0,N(H,ta-la))):(F.sortIndex=Ta,Z(O,F),ra||ca||(ra=!0,V||(V=!0,ia()))),F},EY.unstable_shouldYield=G,EY.unstable_wrapCallback=function(F){var oa=s;return function(){var ta=s;s=oa;try{return F.apply(this,arguments)}finally{s=ta}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var k9=K3((eY)=>{var Ca=_a(y9()),l0=_a(so()),H3=_a(sY());(function(){function f(a,o){for(a=a.memoizedState;a!==null&&0<o;)a=a.next,o--;return a}function Z(a,o,p,t){if(p>=o.length)return t;var m=o[p],r=Lo(a)?a.slice():ka({},a);return r[m]=Z(a[m],o,p+1,t),r}function Q(a,o,p){if(o.length!==p.length)console.warn("copyWithRename() expects paths of the same length");else{for(var t=0;t<p.length-1;t++)if(o[t]!==p[t]){console.warn("copyWithRename() expects paths to be the same except for the deepest key");return}return W(a,o,p,0)}}function W(a,o,p,t){var m=o[t],r=Lo(a)?a.slice():ka({},a);return t+1===o.length?(r[p[t]]=r[m],Lo(r)?r.splice(m,1):delete r[m]):r[m]=W(a[m],o,p,t+1),r}function L(a,o,p){var t=o[p],m=Lo(a)?a.slice():ka({},a);if(p+1===o.length)return Lo(m)?m.splice(t,1):delete m[t],m;return m[t]=L(a[t],o,p+1),m}function n(){return!1}function H(){return null}function G(){console.error("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://react.dev/link/rules-of-hooks")}function N(){console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().")}function C(){}function h(){}function P(a){var o=[];return a.forEach(function(p){o.push(p)}),o.sort().join(", ")}function O(a,o,p,t){return new Pz(a,o,p,t)}function T(a,o){a.context===Cm&&(Sc(a.current,2,o,a,null,null),Qv())}function I(a,o){if(Ap!==null){var p=o.staleFamilies;o=o.updatedFamilies,V0(),Ol(a.current,o,p),Qv()}}function R(a){Ap=a}function s(a){return!(!a||a.nodeType!==1&&a.nodeType!==9&&a.nodeType!==11)}function ca(a){var o=a,p=a;if(a.alternate)for(;o.return;)o=o.return;else{a=o;do o=a,(o.flags&4098)!==0&&(p=o.return),a=o.return;while(a)}return o.tag===3?p:null}function ra(a){if(a.tag===13){var o=a.memoizedState;if(o===null&&(a=a.alternate,a!==null&&(o=a.memoizedState)),o!==null)return o.dehydrated}return null}function $a(a){if(a.tag===31){var o=a.memoizedState;if(o===null&&(a=a.alternate,a!==null&&(o=a.memoizedState)),o!==null)return o.dehydrated}return null}function va(a){if(ca(a)!==a)throw Error("Unable to find node on an unmounted component.")}function S(a){var o=a.alternate;if(!o){if(o=ca(a),o===null)throw Error("Unable to find node on an unmounted component.");return o!==a?null:a}for(var p=a,t=o;;){var m=p.return;if(m===null)break;var r=m.alternate;if(r===null){if(t=m.return,t!==null){p=t;continue}break}if(m.child===r.child){for(r=m.child;r;){if(r===p)return va(m),a;if(r===t)return va(m),o;r=r.sibling}throw Error("Unable to find node on an unmounted component.")}if(p.return!==t.return)p=m,t=r;else{for(var v=!1,i=m.child;i;){if(i===p){v=!0,p=m,t=r;break}if(i===t){v=!0,t=m,p=r;break}i=i.sibling}if(!v){for(i=r.child;i;){if(i===p){v=!0,p=r,t=m;break}if(i===t){v=!0,t=r,p=m;break}i=i.sibling}if(!v)throw Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(p.alternate!==t)throw Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(p.tag!==3)throw Error("Unable to find node on an unmounted component.");return p.stateNode.current===p?a:o}function da(a){var o=a.tag;if(o===5||o===26||o===27||o===6)return a;for(a=a.child;a!==null;){if(o=da(a),o!==null)return o;a=a.sibling}return null}function ga(a){if(a===null||typeof a!=="object")return null;return a=Aw&&a[Aw]||a["@@iterator"],typeof a==="function"?a:null}function V(a){if(a==null)return null;if(typeof a==="function")return a.$$typeof===iJ?null:a.displayName||a.name||null;if(typeof a==="string")return a;switch(a){case Uv:return"Fragment";case Ec:return"Profiler";case Y2:return"StrictMode";case ec:return"Suspense";case a4:return"SuspenseList";case o4:return"Activity"}if(typeof a==="object")switch(typeof a.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),a.$$typeof){case Wv:return"Portal";case Lt:return a.displayName||"Context";case sc:return(a._context.displayName||"Context")+".Consumer";case mi:var o=a.render;return a=a.displayName,a||(a=o.displayName||o.name||"",a=a!==""?"ForwardRef("+a+")":"ForwardRef"),a;case X2:return o=a.displayName||null,o!==null?o:V(a.type)||"Memo";case Up:o=a._payload,a=a._init;try{return V(a(o))}catch(p){}}return null}function Fa(a){return typeof a.tag==="number"?U(a):typeof a.name==="string"?a.name:null}function U(a){var o=a.type;switch(a.tag){case 31:return"Activity";case 24:return"Cache";case 9:return(o._context.displayName||"Context")+".Consumer";case 10:return o.displayName||"Context";case 18:return"DehydratedFragment";case 11:return a=o.render,a=a.displayName||a.name||"",o.displayName||(a!==""?"ForwardRef("+a+")":"ForwardRef");case 7:return"Fragment";case 26:case 27:case 5:return o;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return V(o);case 8:return o===Y2?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 14:case 15:if(typeof o==="function")return o.displayName||o.name||null;if(typeof o==="string")return o;break;case 29:if(o=a._debugInfo,o!=null){for(var p=o.length-1;0<=p;p--)if(typeof o[p].name==="string")return o[p].name}if(a.return!==null)return U(a.return)}return null}function aa(a){return{current:a}}function ia(a,o){0>om?console.error("Unexpected pop."):(o!==t4[om]&&console.error("Unexpected Fiber popped."),a.current=p4[om],p4[om]=null,t4[om]=null,om--)}function k(a,o,p){om++,p4[om]=a.current,t4[om]=p,a.current=o}function q(a){return a===null&&console.error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue."),a}function F(a,o){k(Om,o,a),k(ri,a,a),k(Nm,null,a);var p=o.nodeType;switch(p){case 9:case 11:p=p===9?"#document":"#fragment",o=(o=o.documentElement)?(o=o.namespaceURI)?zw(o):Jm:Jm;break;default:if(p=o.tagName,o=o.namespaceURI)o=zw(o),o=$w(o,p);else switch(p){case"svg":o=b0;break;case"math":o=Jb;break;default:o=Jm}}p=p.toLowerCase(),p=vl(null,p),p={context:o,ancestorInfo:p},ia(Nm,a),k(Nm,p,a)}function oa(a){ia(Nm,a),ia(ri,a),ia(Om,a)}function ta(){return q(Nm.current)}function la(a){a.memoizedState!==null&&k(Z2,a,a);var o=q(Nm.current),p=a.type,t=$w(o.context,p);p=vl(o.ancestorInfo,p),t={context:t,ancestorInfo:p},o!==t&&(k(ri,a,a),k(Nm,t,a))}function Ta(a){ri.current===a&&(ia(Nm,a),ia(ri,a)),Z2.current===a&&(ia(Z2,a),Di._currentValue=Dr)}function Vo(){}function Gp(){if(vi===0){Tw=console.log,Sw=console.info,uw=console.warn,xw=console.error,Vw=console.group,jw=console.groupCollapsed,Dw=console.groupEnd;var a={configurable:!0,enumerable:!0,value:Vo,writable:!0};Object.defineProperties(console,{info:a,log:a,warn:a,error:a,group:a,groupCollapsed:a,groupEnd:a})}vi++}function x(){if(vi--,vi===0){var a={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:ka({},a,{value:Tw}),info:ka({},a,{value:Sw}),warn:ka({},a,{value:uw}),error:ka({},a,{value:xw}),group:ka({},a,{value:Vw}),groupCollapsed:ka({},a,{value:jw}),groupEnd:ka({},a,{value:Dw})})}0>vi&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function Ba(a){var o=Error.prepareStackTrace;if(Error.prepareStackTrace=void 0,a=a.stack,Error.prepareStackTrace=o,a.startsWith(`Error: react-stack-top-frame
2
- `)&&(a=a.slice(29)),o=a.indexOf(`
3
- `),o!==-1&&(a=a.slice(o+1)),o=a.indexOf("react_stack_bottom_frame"),o!==-1&&(o=a.lastIndexOf(`
4
- `,o)),o!==-1)a=a.slice(0,o);else return"";return a}function oo(a){if(m4===void 0)try{throw Error()}catch(p){var o=p.stack.trim().match(/\n( *(at )?)/);m4=o&&o[1]||"",Ew=-1<p.stack.indexOf(`
5
- at`)?" (<anonymous>)":-1<p.stack.indexOf("@")?"@unknown:0:0":""}return`
6
- `+m4+a+Ew}function lr(a,o){if(!a||r4)return"";var p=v4.get(a);if(p!==void 0)return p;r4=!0,p=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var t=null;t=K.H,K.H=null,Gp();try{var m={DetermineComponentFrameRoot:function(){try{if(o){var z=function(){throw Error()};if(Object.defineProperty(z.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==="object"&&Reflect.construct){try{Reflect.construct(z,[])}catch(u){var _=u}Reflect.construct(a,[],z)}else{try{z.call()}catch(u){_=u}a.call(z.prototype)}}else{try{throw Error()}catch(u){_=u}(z=a())&&typeof z.catch==="function"&&z.catch(function(){})}}catch(u){if(u&&_&&typeof u.stack==="string")return[u.stack,_.stack]}return[null,null]}};m.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var r=Object.getOwnPropertyDescriptor(m.DetermineComponentFrameRoot,"name");r&&r.configurable&&Object.defineProperty(m.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var v=m.DetermineComponentFrameRoot(),i=v[0],b=v[1];if(i&&b){var l=i.split(`
7
- `),Y=b.split(`
8
- `);for(v=r=0;r<l.length&&!l[r].includes("DetermineComponentFrameRoot");)r++;for(;v<Y.length&&!Y[v].includes("DetermineComponentFrameRoot");)v++;if(r===l.length||v===Y.length)for(r=l.length-1,v=Y.length-1;1<=r&&0<=v&&l[r]!==Y[v];)v--;for(;1<=r&&0<=v;r--,v--)if(l[r]!==Y[v]){if(r!==1||v!==1)do if(r--,v--,0>v||l[r]!==Y[v]){var X=`
9
- `+l[r].replace(" at new "," at ");return a.displayName&&X.includes("<anonymous>")&&(X=X.replace("<anonymous>",a.displayName)),typeof a==="function"&&v4.set(a,X),X}while(1<=r&&0<=v);break}}}finally{r4=!1,K.H=t,x(),Error.prepareStackTrace=p}return l=(l=a?a.displayName||a.name:"")?oo(l):"",typeof a==="function"&&v4.set(a,l),l}function pv(a,o){switch(a.tag){case 26:case 27:case 5:return oo(a.type);case 16:return oo("Lazy");case 13:return a.child!==o&&o!==null?oo("Suspense Fallback"):oo("Suspense");case 19:return oo("SuspenseList");case 0:case 15:return lr(a.type,!1);case 11:return lr(a.type.render,!1);case 1:return lr(a.type,!0);case 31:return oo("Activity");default:return""}}function tv(a){try{var o="",p=null;do{o+=pv(a,p);var t=a._debugInfo;if(t)for(var m=t.length-1;0<=m;m--){var r=t[m];if(typeof r.name==="string"){var v=o;a:{var{name:i,env:b,debugLocation:l}=r;if(l!=null){var Y=Ba(l),X=Y.lastIndexOf(`
10
- `),z=X===-1?Y:Y.slice(X+1);if(z.indexOf(i)!==-1){var _=`
11
- `+z;break a}}_=oo(i+(b?" ["+b+"]":""))}o=v+_}}p=a,a=a.return}while(a);return o}catch(u){return`
12
- Error generating stack: `+u.message+`
13
- `+u.stack}}function fr(a){return(a=a?a.displayName||a.name:"")?oo(a):""}function $t(){if(hp===null)return null;var a=hp._debugOwner;return a!=null?Fa(a):null}function mv(){if(hp===null)return"";var a=hp;try{var o="";switch(a.tag===6&&(a=a.return),a.tag){case 26:case 27:case 5:o+=oo(a.type);break;case 13:o+=oo("Suspense");break;case 19:o+=oo("SuspenseList");break;case 31:o+=oo("Activity");break;case 30:case 0:case 15:case 1:a._debugOwner||o!==""||(o+=fr(a.type));break;case 11:a._debugOwner||o!==""||(o+=fr(a.type.render))}for(;a;)if(typeof a.tag==="number"){var p=a;a=p._debugOwner;var t=p._debugStack;if(a&&t){var m=Ba(t);m!==""&&(o+=`
14
- `+m)}}else if(a.debugStack!=null){var r=a.debugStack;(a=a.owner)&&r&&(o+=`
15
- `+Ba(r))}else break;var v=o}catch(i){v=`
16
- Error generating stack: `+i.message+`
17
- `+i.stack}return v}function g(a,o,p,t,m,r,v){var i=hp;B(a);try{return a!==null&&a._debugTask?a._debugTask.run(o.bind(null,p,t,m,r,v)):o(p,t,m,r,v)}finally{B(i)}throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.")}function B(a){K.getCurrentStack=a===null?null:mv,Nt=!1,hp=a}function A(a){return typeof Symbol==="function"&&Symbol.toStringTag&&a[Symbol.toStringTag]||a.constructor.name||"Object"}function La(a){try{return no(a),!1}catch(o){return!0}}function no(a){return""+a}function Ia(a,o){if(La(a))return console.error("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.",o,A(a)),no(a)}function Jt(a,o){if(La(a))return console.error("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before using it here.",o,A(a)),no(a)}function lp(a){if(La(a))return console.error("Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before using it here.",A(a)),no(a)}function G0(a){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var o=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(o.isDisabled)return!0;if(!o.supportsFiber)return console.error("The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://react.dev/link/react-devtools"),!0;try{yv=o.inject(a),Do=o}catch(p){console.error("React instrumentation encountered an error: %o.",p)}return o.checkDCE?!0:!1}function Ea(a){if(typeof $J==="function"&&JJ(a),Do&&typeof Do.setStrictMode==="function")try{Do.setStrictMode(yv,a)}catch(o){Ot||(Ot=!0,console.error("React instrumentation encountered an error: %o",o))}}function za(a){return a>>>=0,a===0?32:31-(YJ(a)/XJ|0)|0}function pt(a){var o=a&42;if(o!==0)return o;switch(a&-a){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 a&261888;case 262144:case 524288:case 1048576:case 2097152:return a&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return a&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return console.error("Should have found matching lanes. This is a bug in React."),a}}function i5(a,o,p){var t=a.pendingLanes;if(t===0)return 0;var m=0,r=a.suspendedLanes,v=a.pingedLanes;a=a.warmLanes;var i=t&134217727;return i!==0?(t=i&~r,t!==0?m=pt(t):(v&=i,v!==0?m=pt(v):p||(p=i&~a,p!==0&&(m=pt(p))))):(i=t&~r,i!==0?m=pt(i):v!==0?m=pt(v):p||(p=t&~a,p!==0&&(m=pt(p)))),m===0?0:o!==0&&o!==m&&(o&r)===0&&(r=m&-m,p=o&-o,r>=p||r===32&&(p&4194048)!==0)?o:m}function q0(a,o){return(a.pendingLanes&~(a.suspendedLanes&~a.pingedLanes)&o)===0}function Jz(a,o){switch(a){case 1:case 2:case 4:case 8:case 64:return o+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 o+5000;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return console.error("Should have found matching lanes. This is a bug in React."),-1}}function Pb(){var a=Q2;return Q2<<=1,(Q2&62914560)===0&&(Q2=4194304),a}function Cb(a){for(var o=[],p=0;31>p;p++)o.push(a);return o}function Q0(a,o){a.pendingLanes|=o,o!==268435456&&(a.suspendedLanes=0,a.pingedLanes=0,a.warmLanes=0)}function Yz(a,o,p,t,m,r){var v=a.pendingLanes;a.pendingLanes=p,a.suspendedLanes=0,a.pingedLanes=0,a.warmLanes=0,a.expiredLanes&=p,a.entangledLanes&=p,a.errorRecoveryDisabledLanes&=p,a.shellSuspendCounter=0;var{entanglements:i,expirationTimes:b,hiddenUpdates:l}=a;for(p=v&~p;0<p;){var Y=31-op(p),X=1<<Y;i[Y]=0,b[Y]=-1;var z=l[Y];if(z!==null)for(l[Y]=null,Y=0;Y<z.length;Y++){var _=z[Y];_!==null&&(_.lane&=-536870913)}p&=~X}t!==0&&g3(a,t,0),r!==0&&m===0&&a.tag!==0&&(a.suspendedLanes|=r&~(v&~o))}function g3(a,o,p){a.pendingLanes|=o,a.suspendedLanes&=~o;var t=31-op(o);a.entangledLanes|=o,a.entanglements[t]=a.entanglements[t]|1073741824|p&261930}function F3(a,o){var p=a.entangledLanes|=o;for(a=a.entanglements;p;){var t=31-op(p),m=1<<t;m&o|a[t]&o&&(a[t]|=o),p&=~m}}function P3(a,o){var p=o&-o;return p=(p&42)!==0?1:Ib(p),(p&(a.suspendedLanes|o))!==0?0:p}function Ib(a){switch(a){case 2:a=1;break;case 8:a=4;break;case 32:a=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:a=128;break;case 268435456:a=134217728;break;default:a=0}return a}function C3(a,o,p){if(Rt)for(a=a.pendingUpdatersLaneMap;0<p;){var t=31-op(p),m=1<<t;a[t].add(o),p&=~m}}function I3(a,o){if(Rt)for(var{pendingUpdatersLaneMap:p,memoizedUpdaters:t}=a;0<o;){var m=31-op(o);a=1<<m,m=p[m],0<m.size&&(m.forEach(function(r){var v=r.alternate;v!==null&&t.has(v)||t.add(r)}),m.clear()),o&=~a}}function Ab(a){return a&=-a,yp!==0&&yp<a?it!==0&&it<a?(a&134217727)!==0?Mt:_2:it:yp}function A3(){var a=ua.p;if(a!==0)return a;return a=window.event,a===void 0?Mt:Rw(a.type)}function T3(a,o){var p=ua.p;try{return ua.p=a,o()}finally{ua.p=p}}function Tb(a){delete a[So],delete a[pp],delete a[f4],delete a[ZJ],delete a[GJ]}function rv(a){var o=a[So];if(o)return o;for(var p=a.parentNode;p;){if(o=p[Mm]||p[So]){if(p=o.alternate,o.child!==null||p!==null&&p.child!==null)for(a=_w(a);a!==null;){if(p=a[So])return p;a=_w(a)}return o}a=p,p=a.parentNode}return null}function Qm(a){if(a=a[So]||a[Mm]){var o=a.tag;if(o===5||o===6||o===13||o===31||o===26||o===27||o===3)return a}return null}function _0(a){var o=a.tag;if(o===5||o===26||o===27||o===6)return a.stateNode;throw Error("getNodeFromInstance: Invalid argument.")}function vv(a){var o=a[sw];return o||(o=a[sw]={hoistableStyles:new Map,hoistableScripts:new Map}),o}function Ro(a){a[ii]=!0}function wr(a,o){iv(a,o),iv(a+"Capture",o)}function iv(a,o){Ur[a]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",a),Ur[a]=o;var p=a.toLowerCase();w4[p]=a,a==="onDoubleClick"&&(w4.ondblclick=a);for(a=0;a<o.length;a++)ew.add(o[a])}function bv(a,o){qJ[o.type]||o.onChange||o.onInput||o.readOnly||o.disabled||o.value==null||(a==="select"?console.error("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set `onChange`."):console.error("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`.")),o.onChange||o.readOnly||o.disabled||o.checked==null||console.error("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function Sb(a){if(vt.call(o7,a))return!0;if(vt.call(a7,a))return!1;if(QJ.test(a))return o7[a]=!0;return a7[a]=!0,console.error("Invalid attribute name: `%s`",a),!1}function S3(a,o,p){if(Sb(o)){if(!a.hasAttribute(o)){switch(typeof p){case"symbol":case"object":return p;case"function":return p;case"boolean":if(p===!1)return p}return p===void 0?void 0:null}if(a=a.getAttribute(o),a===""&&p===!0)return!0;return Ia(p,o),a===""+p?p:a}}function b5(a,o,p){if(Sb(o))if(p===null)a.removeAttribute(o);else{switch(typeof p){case"undefined":case"function":case"symbol":a.removeAttribute(o);return;case"boolean":var t=o.toLowerCase().slice(0,5);if(t!=="data-"&&t!=="aria-"){a.removeAttribute(o);return}}Ia(p,o),a.setAttribute(o,""+p)}}function c5(a,o,p){if(p===null)a.removeAttribute(o);else{switch(typeof p){case"undefined":case"function":case"symbol":case"boolean":a.removeAttribute(o);return}Ia(p,o),a.setAttribute(o,""+p)}}function ut(a,o,p,t){if(t===null)a.removeAttribute(p);else{switch(typeof t){case"undefined":case"function":case"symbol":case"boolean":a.removeAttribute(p);return}Ia(t,p),a.setAttributeNS(o,p,""+t)}}function gp(a){switch(typeof a){case"bigint":case"boolean":case"number":case"string":case"undefined":return a;case"object":return lp(a),a;default:return""}}function u3(a){var o=a.type;return(a=a.nodeName)&&a.toLowerCase()==="input"&&(o==="checkbox"||o==="radio")}function Xz(a,o,p){var t=Object.getOwnPropertyDescriptor(a.constructor.prototype,o);if(!a.hasOwnProperty(o)&&typeof t<"u"&&typeof t.get==="function"&&typeof t.set==="function"){var{get:m,set:r}=t;return Object.defineProperty(a,o,{configurable:!0,get:function(){return m.call(this)},set:function(v){lp(v),p=""+v,r.call(this,v)}}),Object.defineProperty(a,o,{enumerable:t.enumerable}),{getValue:function(){return p},setValue:function(v){lp(v),p=""+v},stopTracking:function(){a._valueTracker=null,delete a[o]}}}}function ub(a){if(!a._valueTracker){var o=u3(a)?"checked":"value";a._valueTracker=Xz(a,o,""+a[o])}}function x3(a){if(!a)return!1;var o=a._valueTracker;if(!o)return!0;var p=o.getValue(),t="";return a&&(t=u3(a)?a.checked?"true":"false":a.value),a=t,a!==p?(o.setValue(a),!0):!1}function l5(a){if(a=a||(typeof document<"u"?document:void 0),typeof a>"u")return null;try{return a.activeElement||a.body}catch(o){return a.body}}function Fp(a){return a.replace(_J,function(o){return"\\"+o.charCodeAt(0).toString(16)+" "})}function V3(a,o){o.checked===void 0||o.defaultChecked===void 0||t7||(console.error("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",$t()||"A component",o.type),t7=!0),o.value===void 0||o.defaultValue===void 0||p7||(console.error("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",$t()||"A component",o.type),p7=!0)}function xb(a,o,p,t,m,r,v,i){if(a.name="",v!=null&&typeof v!=="function"&&typeof v!=="symbol"&&typeof v!=="boolean"?(Ia(v,"type"),a.type=v):a.removeAttribute("type"),o!=null)if(v==="number"){if(o===0&&a.value===""||a.value!=o)a.value=""+gp(o)}else a.value!==""+gp(o)&&(a.value=""+gp(o));else v!=="submit"&&v!=="reset"||a.removeAttribute("value");o!=null?Vb(a,v,gp(o)):p!=null?Vb(a,v,gp(p)):t!=null&&a.removeAttribute("value"),m==null&&r!=null&&(a.defaultChecked=!!r),m!=null&&(a.checked=m&&typeof m!=="function"&&typeof m!=="symbol"),i!=null&&typeof i!=="function"&&typeof i!=="symbol"&&typeof i!=="boolean"?(Ia(i,"name"),a.name=""+gp(i)):a.removeAttribute("name")}function j3(a,o,p,t,m,r,v,i){if(r!=null&&typeof r!=="function"&&typeof r!=="symbol"&&typeof r!=="boolean"&&(Ia(r,"type"),a.type=r),o!=null||p!=null){if(!(r!=="submit"&&r!=="reset"||o!==void 0&&o!==null)){ub(a);return}p=p!=null?""+gp(p):"",o=o!=null?""+gp(o):p,i||o===a.value||(a.value=o),a.defaultValue=o}t=t!=null?t:m,t=typeof t!=="function"&&typeof t!=="symbol"&&!!t,a.checked=i?a.checked:!!t,a.defaultChecked=!!t,v!=null&&typeof v!=="function"&&typeof v!=="symbol"&&typeof v!=="boolean"&&(Ia(v,"name"),a.name=v),ub(a)}function Vb(a,o,p){o==="number"&&l5(a.ownerDocument)===a||a.defaultValue===""+p||(a.defaultValue=""+p)}function D3(a,o){o.value==null&&(typeof o.children==="object"&&o.children!==null?l0.Children.forEach(o.children,function(p){p==null||typeof p==="string"||typeof p==="number"||typeof p==="bigint"||r7||(r7=!0,console.error("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>."))}):o.dangerouslySetInnerHTML==null||v7||(v7=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),o.selected==null||m7||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),m7=!0)}function E3(){var a=$t();return a?`
18
-
19
- Check the render method of \``+a+"`.":""}function cv(a,o,p,t){if(a=a.options,o){o={};for(var m=0;m<p.length;m++)o["$"+p[m]]=!0;for(p=0;p<a.length;p++)m=o.hasOwnProperty("$"+a[p].value),a[p].selected!==m&&(a[p].selected=m),m&&t&&(a[p].defaultSelected=!0)}else{p=""+gp(p),o=null;for(m=0;m<a.length;m++){if(a[m].value===p){a[m].selected=!0,t&&(a[m].defaultSelected=!0);return}o!==null||a[m].disabled||(o=a[m])}o!==null&&(o.selected=!0)}}function s3(a,o){for(a=0;a<b7.length;a++){var p=b7[a];if(o[p]!=null){var t=Lo(o[p]);o.multiple&&!t?console.error("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",p,E3()):!o.multiple&&t&&console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",p,E3())}}o.value===void 0||o.defaultValue===void 0||i7||(console.error("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://react.dev/link/controlled-components"),i7=!0)}function e3(a,o){o.value===void 0||o.defaultValue===void 0||c7||(console.error("%s contains a textarea with both value and defaultValue props. Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://react.dev/link/controlled-components",$t()||"A component"),c7=!0),o.children!=null&&o.value==null&&console.error("Use the `defaultValue` or `value` props instead of setting children on <textarea>.")}function al(a,o,p){if(o!=null&&(o=""+gp(o),o!==a.value&&(a.value=o),p==null)){a.defaultValue!==o&&(a.defaultValue=o);return}a.defaultValue=p!=null?""+gp(p):""}function ol(a,o,p,t){if(o==null){if(t!=null){if(p!=null)throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(Lo(t)){if(1<t.length)throw Error("<textarea> can only have at most one child.");t=t[0]}p=t}p==null&&(p=""),o=p}p=gp(o),a.defaultValue=p,t=a.textContent,t===p&&t!==""&&t!==null&&(a.value=t),ub(a)}function pl(a,o){return a.serverProps===void 0&&a.serverTail.length===0&&a.children.length===1&&3<a.distanceFromLeaf&&a.distanceFromLeaf>15-o?pl(a.children[0],o):a}function qp(a){return" "+" ".repeat(a)}function lv(a){return"+ "+" ".repeat(a)}function zr(a){return"- "+" ".repeat(a)}function tl(a){switch(a.tag){case 26:case 27:case 5:return a.type;case 16:return"Lazy";case 31:return"Activity";case 13:return"Suspense";case 19:return"SuspenseList";case 0:case 15:return a=a.type,a.displayName||a.name||null;case 11:return a=a.type.render,a.displayName||a.name||null;case 1:return a=a.type,a.displayName||a.name||null;default:return null}}function B0(a,o){return l7.test(a)?(a=JSON.stringify(a),a.length>o-2?8>o?'{"..."}':"{"+a.slice(0,o-7)+'..."}':"{"+a+"}"):a.length>o?5>o?'{"..."}':a.slice(0,o-3)+"...":a}function f5(a,o,p){var t=120-2*p;if(o===null)return lv(p)+B0(a,t)+`
20
- `;if(typeof o==="string"){for(var m=0;m<o.length&&m<a.length&&o.charCodeAt(m)===a.charCodeAt(m);m++);return m>t-8&&10<m&&(a="..."+a.slice(m-8),o="..."+o.slice(m-8)),lv(p)+B0(a,t)+`
21
- `+zr(p)+B0(o,t)+`
22
- `}return qp(p)+B0(a,t)+`
23
- `}function jb(a){return Object.prototype.toString.call(a).replace(/^\[object (.*)\]$/,function(o,p){return p})}function d0(a,o){switch(typeof a){case"string":return a=JSON.stringify(a),a.length>o?5>o?'"..."':a.slice(0,o-4)+'..."':a;case"object":if(a===null)return"null";if(Lo(a))return"[...]";if(a.$$typeof===nt)return(o=V(a.type))?"<"+o+">":"<...>";var p=jb(a);if(p==="Object"){p="",o-=2;for(var t in a)if(a.hasOwnProperty(t)){var m=JSON.stringify(t);if(m!=='"'+t+'"'&&(t=m),o-=t.length-2,m=d0(a[t],15>o?o:15),o-=m.length,0>o){p+=p===""?"...":", ...";break}p+=(p===""?"":",")+t+":"+m}return"{"+p+"}"}return p;case"function":return(o=a.displayName||a.name)?"function "+o:"function";default:return String(a)}}function fv(a,o){return typeof a!=="string"||l7.test(a)?"{"+d0(a,o-2)+"}":a.length>o-2?5>o?'"..."':'"'+a.slice(0,o-5)+'..."':'"'+a+'"'}function Db(a,o,p){var t=120-p.length-a.length,m=[],r;for(r in o)if(o.hasOwnProperty(r)&&r!=="children"){var v=fv(o[r],120-p.length-r.length-1);t-=r.length+v.length+2,m.push(r+"="+v)}return m.length===0?p+"<"+a+`>
24
- `:0<t?p+"<"+a+" "+m.join(" ")+`>
25
- `:p+"<"+a+`
26
- `+p+" "+m.join(`
27
- `+p+" ")+`
28
- `+p+`>
29
- `}function Zz(a,o,p){var t="",m=ka({},o),r;for(r in a)if(a.hasOwnProperty(r)){delete m[r];var v=120-2*p-r.length-2,i=d0(a[r],v);o.hasOwnProperty(r)?(v=d0(o[r],v),t+=lv(p)+r+": "+i+`
30
- `,t+=zr(p)+r+": "+v+`
31
- `):t+=lv(p)+r+": "+i+`
32
- `}for(var b in m)m.hasOwnProperty(b)&&(a=d0(m[b],120-2*p-b.length-2),t+=zr(p)+b+": "+a+`
33
- `);return t}function Gz(a,o,p,t){var m="",r=new Map;for(l in p)p.hasOwnProperty(l)&&r.set(l.toLowerCase(),l);if(r.size===1&&r.has("children"))m+=Db(a,o,qp(t));else{for(var v in o)if(o.hasOwnProperty(v)&&v!=="children"){var i=120-2*(t+1)-v.length-1,b=r.get(v.toLowerCase());if(b!==void 0){r.delete(v.toLowerCase());var l=o[v];b=p[b];var Y=fv(l,i);i=fv(b,i),typeof l==="object"&&l!==null&&typeof b==="object"&&b!==null&&jb(l)==="Object"&&jb(b)==="Object"&&(2<Object.keys(l).length||2<Object.keys(b).length||-1<Y.indexOf("...")||-1<i.indexOf("..."))?m+=qp(t+1)+v+`={{
34
- `+Zz(l,b,t+2)+qp(t+1)+`}}
35
- `:(m+=lv(t+1)+v+"="+Y+`
36
- `,m+=zr(t+1)+v+"="+i+`
37
- `)}else m+=qp(t+1)+v+"="+fv(o[v],i)+`
38
- `}r.forEach(function(X){if(X!=="children"){var z=120-2*(t+1)-X.length-1;m+=zr(t+1)+X+"="+fv(p[X],z)+`
39
- `}}),m=m===""?qp(t)+"<"+a+`>
40
- `:qp(t)+"<"+a+`
41
- `+m+qp(t)+`>
42
- `}if(a=p.children,o=o.children,typeof a==="string"||typeof a==="number"||typeof a==="bigint"){if(r="",typeof o==="string"||typeof o==="number"||typeof o==="bigint")r=""+o;m+=f5(r,""+a,t+1)}else if(typeof o==="string"||typeof o==="number"||typeof o==="bigint")m=a==null?m+f5(""+o,null,t+1):m+f5(""+o,void 0,t+1);return m}function ml(a,o){var p=tl(a);if(p===null){p="";for(a=a.child;a;)p+=ml(a,o),a=a.sibling;return p}return qp(o)+"<"+p+`>
43
- `}function Eb(a,o){var p=pl(a,o);if(p!==a&&(a.children.length!==1||a.children[0]!==p))return qp(o)+`...
44
- `+Eb(p,o+1);p="";var t=a.fiber._debugInfo;if(t)for(var m=0;m<t.length;m++){var r=t[m].name;typeof r==="string"&&(p+=qp(o)+"<"+r+`>
45
- `,o++)}if(t="",m=a.fiber.pendingProps,a.fiber.tag===6)t=f5(m,a.serverProps,o),o++;else if(r=tl(a.fiber),r!==null)if(a.serverProps===void 0){t=o;var v=120-2*t-r.length-2,i="";for(l in m)if(m.hasOwnProperty(l)&&l!=="children"){var b=fv(m[l],15);if(v-=l.length+b.length+2,0>v){i+=" ...";break}i+=" "+l+"="+b}t=qp(t)+"<"+r+i+`>
46
- `,o++}else a.serverProps===null?(t=Db(r,m,lv(o)),o++):typeof a.serverProps==="string"?console.error("Should not have matched a non HostText fiber to a Text node. This is a bug in React."):(t=Gz(r,m,a.serverProps,o),o++);var l="";m=a.fiber.child;for(r=0;m&&r<a.children.length;)v=a.children[r],v.fiber===m?(l+=Eb(v,o),r++):l+=ml(m,o),m=m.sibling;m&&0<a.children.length&&(l+=qp(o)+`...
47
- `),m=a.serverTail,a.serverProps===null&&o--;for(a=0;a<m.length;a++)r=m[a],l=typeof r==="string"?l+(zr(o)+B0(r,120-2*o)+`
48
- `):l+Db(r.type,r.props,zr(o));return p+t+l}function sb(a){try{return`
49
-
50
- `+Eb(a,0)}catch(o){return""}}function rl(a,o,p){for(var t=o,m=null,r=0;t;)t===a&&(r=0),m={fiber:t,children:m!==null?[m]:[],serverProps:t===o?p:t===a?null:void 0,serverTail:[],distanceFromLeaf:r},r++,t=t.return;return m!==null?sb(m).replaceAll(/^[+-]/gm,">"):""}function vl(a,o){var p=ka({},a||w7),t={tag:o};if(f7.indexOf(o)!==-1&&(p.aTagInScope=null,p.buttonTagInScope=null,p.nobrTagInScope=null),dJ.indexOf(o)!==-1&&(p.pTagInButtonScope=null),BJ.indexOf(o)!==-1&&o!=="address"&&o!=="div"&&o!=="p"&&(p.listItemTagAutoclosing=null,p.dlItemTagAutoclosing=null),p.current=t,o==="form"&&(p.formTag=t),o==="a"&&(p.aTagInScope=t),o==="button"&&(p.buttonTagInScope=t),o==="nobr"&&(p.nobrTagInScope=t),o==="p"&&(p.pTagInButtonScope=t),o==="li"&&(p.listItemTagAutoclosing=t),o==="dd"||o==="dt")p.dlItemTagAutoclosing=t;return o==="#document"||o==="html"?p.containerTagInScope=null:p.containerTagInScope||(p.containerTagInScope=t),a!==null||o!=="#document"&&o!=="html"&&o!=="body"?p.implicitRootScope===!0&&(p.implicitRootScope=!1):p.implicitRootScope=!0,p}function il(a,o,p){switch(o){case"select":return a==="hr"||a==="option"||a==="optgroup"||a==="script"||a==="template"||a==="#text";case"optgroup":return a==="option"||a==="#text";case"option":return a==="#text";case"tr":return a==="th"||a==="td"||a==="style"||a==="script"||a==="template";case"tbody":case"thead":case"tfoot":return a==="tr"||a==="style"||a==="script"||a==="template";case"colgroup":return a==="col"||a==="template";case"table":return a==="caption"||a==="colgroup"||a==="tbody"||a==="tfoot"||a==="thead"||a==="style"||a==="script"||a==="template";case"head":return a==="base"||a==="basefont"||a==="bgsound"||a==="link"||a==="meta"||a==="title"||a==="noscript"||a==="noframes"||a==="style"||a==="script"||a==="template";case"html":if(p)break;return a==="head"||a==="body"||a==="frameset";case"frameset":return a==="frame";case"#document":if(!p)return a==="html"}switch(a){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return o!=="h1"&&o!=="h2"&&o!=="h3"&&o!=="h4"&&o!=="h5"&&o!=="h6";case"rp":case"rt":return KJ.indexOf(o)===-1;case"caption":case"col":case"colgroup":case"frameset":case"frame":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return o==null;case"head":return p||o===null;case"html":return p&&o==="#document"||o===null;case"body":return p&&(o==="#document"||o==="html")||o===null}return!0}function qz(a,o){switch(a){case"address":case"article":case"aside":case"blockquote":case"center":case"details":case"dialog":case"dir":case"div":case"dl":case"fieldset":case"figcaption":case"figure":case"footer":case"header":case"hgroup":case"main":case"menu":case"nav":case"ol":case"p":case"section":case"summary":case"ul":case"pre":case"listing":case"table":case"hr":case"xmp":case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return o.pTagInButtonScope;case"form":return o.formTag||o.pTagInButtonScope;case"li":return o.listItemTagAutoclosing;case"dd":case"dt":return o.dlItemTagAutoclosing;case"button":return o.buttonTagInScope;case"a":return o.aTagInScope;case"nobr":return o.nobrTagInScope}return null}function bl(a,o){for(;a;){switch(a.tag){case 5:case 26:case 27:if(a.type===o)return a}a=a.return}return null}function eb(a,o){o=o||w7;var p=o.current;if(o=(p=il(a,p&&p.tag,o.implicitRootScope)?null:p)?null:qz(a,o),o=p||o,!o)return!0;var t=o.tag;if(o=String(!!p)+"|"+a+"|"+t,B2[o])return!1;B2[o]=!0;var m=(o=hp)?bl(o.return,t):null,r=o!==null&&m!==null?rl(m,o,null):"",v="<"+a+">";return p?(p="",t==="table"&&a==="tr"&&(p+=" Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser."),console.error(`In HTML, %s cannot be a child of <%s>.%s
51
- This will cause a hydration error.%s`,v,t,p,r)):console.error(`In HTML, %s cannot be a descendant of <%s>.
52
- This will cause a hydration error.%s`,v,t,r),o&&(a=o.return,m===null||a===null||m===a&&a._debugOwner===o._debugOwner||g(m,function(){console.error(`<%s> cannot contain a nested %s.
53
- See this log for the ancestor stack trace.`,t,v)})),!1}function w5(a,o,p){if(p||il("#text",o,!1))return!0;if(p="#text|"+o,B2[p])return!1;B2[p]=!0;var t=(p=hp)?bl(p,o):null;return p=p!==null&&t!==null?rl(t,p,p.tag!==6?{children:null}:null):"",/\S/.test(a)?console.error(`In HTML, text nodes cannot be a child of <%s>.
54
- This will cause a hydration error.%s`,o,p):console.error(`In HTML, whitespace text nodes cannot be a child of <%s>. Make sure you don't have any extra whitespace between tags on each line of your source code.
55
- This will cause a hydration error.%s`,o,p),!1}function K0(a,o){if(o){var p=a.firstChild;if(p&&p===a.lastChild&&p.nodeType===3){p.nodeValue=o;return}}a.textContent=o}function Qz(a){return a.replace(UJ,function(o,p){return p.toUpperCase()})}function cl(a,o,p){var t=o.indexOf("--")===0;t||(-1<o.indexOf("-")?kv.hasOwnProperty(o)&&kv[o]||(kv[o]=!0,console.error("Unsupported style property %s. Did you mean %s?",o,Qz(o.replace(WJ,"ms-")))):HJ.test(o)?kv.hasOwnProperty(o)&&kv[o]||(kv[o]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",o,o.charAt(0).toUpperCase()+o.slice(1))):!J7.test(p)||$4.hasOwnProperty(p)&&$4[p]||($4[p]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,o,p.replace(J7,""))),typeof p==="number"&&(isNaN(p)?Y7||(Y7=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",o)):isFinite(p)||X7||(X7=!0,console.error("`Infinity` is an invalid value for the `%s` css style property.",o)))),p==null||typeof p==="boolean"||p===""?t?a.setProperty(o,""):o==="float"?a.cssFloat="":a[o]="":t?a.setProperty(o,p):typeof p!=="number"||p===0||Z7.has(o)?o==="float"?a.cssFloat=p:(Jt(p,o),a[o]=(""+p).trim()):a[o]=p+"px"}function ll(a,o,p){if(o!=null&&typeof o!=="object")throw Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");if(o&&Object.freeze(o),a=a.style,p!=null){if(o){var t={};if(p){for(var m in p)if(p.hasOwnProperty(m)&&!o.hasOwnProperty(m))for(var r=z4[m]||[m],v=0;v<r.length;v++)t[r[v]]=m}for(var i in o)if(o.hasOwnProperty(i)&&(!p||p[i]!==o[i]))for(m=z4[i]||[i],r=0;r<m.length;r++)t[m[r]]=i;i={};for(var b in o)for(m=z4[b]||[b],r=0;r<m.length;r++)i[m[r]]=b;b={};for(var l in t)if(m=t[l],(r=i[l])&&m!==r&&(v=m+","+r,!b[v])){b[v]=!0,v=console;var Y=o[m];v.error.call(v,"%s a style property during rerender (%s) when a conflicting property is set (%s) can lead to styling bugs. To avoid this, don't mix shorthand and non-shorthand properties for the same value; instead, replace the shorthand with separate values.",Y==null||typeof Y==="boolean"||Y===""?"Removing":"Updating",m,r)}}for(var X in p)!p.hasOwnProperty(X)||o!=null&&o.hasOwnProperty(X)||(X.indexOf("--")===0?a.setProperty(X,""):X==="float"?a.cssFloat="":a[X]="");for(var z in o)l=o[z],o.hasOwnProperty(z)&&p[z]!==l&&cl(a,z,l)}else for(t in o)o.hasOwnProperty(t)&&cl(a,t,o[t])}function H0(a){if(a.indexOf("-")===-1)return!1;switch(a){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}}function fl(a){return hJ.get(a)||a}function _z(a,o){if(vt.call(Lv,o)&&Lv[o])return!0;if(kJ.test(o)){if(a="aria-"+o.slice(4).toLowerCase(),a=G7.hasOwnProperty(a)?a:null,a==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",o),Lv[o]=!0;if(o!==a)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",o,a),Lv[o]=!0}if(yJ.test(o)){if(a=o.toLowerCase(),a=G7.hasOwnProperty(a)?a:null,a==null)return Lv[o]=!0,!1;o!==a&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",o,a),Lv[o]=!0)}return!0}function Bz(a,o){var p=[],t;for(t in o)_z(a,t)||p.push(t);o=p.map(function(m){return"`"+m+"`"}).join(", "),p.length===1?console.error("Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",o,a):1<p.length&&console.error("Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",o,a)}function dz(a,o,p,t){if(vt.call(tp,o)&&tp[o])return!0;var m=o.toLowerCase();if(m==="onfocusin"||m==="onfocusout")return console.error("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),tp[o]=!0;if(typeof p==="function"&&(a==="form"&&o==="action"||a==="input"&&o==="formAction"||a==="button"&&o==="formAction"))return!0;if(t!=null){if(a=t.possibleRegistrationNames,t.registrationNameDependencies.hasOwnProperty(o))return!0;if(t=a.hasOwnProperty(m)?a[m]:null,t!=null)return console.error("Invalid event handler property `%s`. Did you mean `%s`?",o,t),tp[o]=!0;if(Q7.test(o))return console.error("Unknown event handler property `%s`. It will be ignored.",o),tp[o]=!0}else if(Q7.test(o))return nJ.test(o)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",o),tp[o]=!0;if(LJ.test(o)||NJ.test(o))return!0;if(m==="innerhtml")return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),tp[o]=!0;if(m==="aria")return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),tp[o]=!0;if(m==="is"&&p!==null&&p!==void 0&&typeof p!=="string")return console.error("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof p),tp[o]=!0;if(typeof p==="number"&&isNaN(p))return console.error("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",o),tp[o]=!0;if(K2.hasOwnProperty(m)){if(m=K2[m],m!==o)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",o,m),tp[o]=!0}else if(o!==m)return console.error("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",o,m),tp[o]=!0;switch(o){case"dangerouslySetInnerHTML":case"children":case"style":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":return!0;case"innerText":case"textContent":return!0}switch(typeof p){case"boolean":switch(o){case"autoFocus":case"checked":case"multiple":case"muted":case"selected":case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":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":case"capture":case"download":case"inert":return!0;default:if(m=o.toLowerCase().slice(0,5),m==="data-"||m==="aria-")return!0;return p?console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',p,o,o,p,o):console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',p,o,o,p,o,o,o),tp[o]=!0}case"function":case"symbol":return tp[o]=!0,!1;case"string":if(p==="false"||p==="true"){switch(o){case"checked":case"selected":case"multiple":case"muted":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":case"inert":break;default:return!0}console.error("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",p,o,p==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',o,p),tp[o]=!0}}return!0}function Kz(a,o,p){var t=[],m;for(m in o)dz(a,m,o[m],p)||t.push(m);o=t.map(function(r){return"`"+r+"`"}).join(", "),t.length===1?console.error("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://react.dev/link/attribute-behavior ",o,a):1<t.length&&console.error("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://react.dev/link/attribute-behavior ",o,a)}function W0(a){return OJ.test(""+a)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":a}function xt(){}function a1(a){return a=a.target||a.srcElement||window,a.correspondingUseElement&&(a=a.correspondingUseElement),a.nodeType===3?a.parentNode:a}function wl(a){var o=Qm(a);if(o&&(a=o.stateNode)){var p=a[pp]||null;a:switch(a=o.stateNode,o.type){case"input":if(xb(a,p.value,p.defaultValue,p.defaultValue,p.checked,p.defaultChecked,p.type,p.name),o=p.name,p.type==="radio"&&o!=null){for(p=a;p.parentNode;)p=p.parentNode;Ia(o,"name"),p=p.querySelectorAll('input[name="'+Fp(""+o)+'"][type="radio"]');for(o=0;o<p.length;o++){var t=p[o];if(t!==a&&t.form===a.form){var m=t[pp]||null;if(!m)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");xb(t,m.value,m.defaultValue,m.defaultValue,m.checked,m.defaultChecked,m.type,m.name)}}for(o=0;o<p.length;o++)t=p[o],t.form===a.form&&x3(t)}break a;case"textarea":al(a,p.value,p.defaultValue);break a;case"select":o=p.value,o!=null&&cv(a,!!p.multiple,o,!1)}}}function zl(a,o,p){if(J4)return a(o,p);J4=!0;try{var t=a(o);return t}finally{if(J4=!1,Nv!==null||Ov!==null){if(Qv(),Nv&&(o=Nv,a=Ov,Ov=Nv=null,wl(o),a))for(o=0;o<a.length;o++)wl(a[o])}}}function U0(a,o){var p=a.stateNode;if(p===null)return null;var t=p[pp]||null;if(t===null)return null;p=t[o];a:switch(o){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(t=!t.disabled)||(a=a.type,t=!(a==="button"||a==="input"||a==="select"||a==="textarea")),a=!t;break a;default:a=!1}if(a)return null;if(p&&typeof p!=="function")throw Error("Expected `"+o+"` listener to be a function, instead got a value of `"+typeof p+"` type.");return p}function $l(){if(H2)return H2;var a,o=X4,p=o.length,t,m="value"in gm?gm.value:gm.textContent,r=m.length;for(a=0;a<p&&o[a]===m[a];a++);var v=p-a;for(t=1;t<=v&&o[p-t]===m[r-t];t++);return H2=m.slice(a,1<t?1-t:void 0)}function z5(a){var o=a.keyCode;return"charCode"in a?(a=a.charCode,a===0&&o===13&&(a=13)):a=o,a===10&&(a=13),32<=a||a===13?a:0}function $5(){return!0}function Jl(){return!1}function fp(a){function o(p,t,m,r,v){this._reactName=p,this._targetInst=m,this.type=t,this.nativeEvent=r,this.target=v,this.currentTarget=null;for(var i in a)a.hasOwnProperty(i)&&(p=a[i],this[i]=p?p(r):r[i]);return this.isDefaultPrevented=(r.defaultPrevented!=null?r.defaultPrevented:r.returnValue===!1)?$5:Jl,this.isPropagationStopped=Jl,this}return ka(o.prototype,{preventDefault:function(){this.defaultPrevented=!0;var p=this.nativeEvent;p&&(p.preventDefault?p.preventDefault():typeof p.returnValue!=="unknown"&&(p.returnValue=!1),this.isDefaultPrevented=$5)},stopPropagation:function(){var p=this.nativeEvent;p&&(p.stopPropagation?p.stopPropagation():typeof p.cancelBubble!=="unknown"&&(p.cancelBubble=!0),this.isPropagationStopped=$5)},persist:function(){},isPersistent:$5}),o}function Hz(a){var o=this.nativeEvent;return o.getModifierState?o.getModifierState(a):(a=VJ[a])?!!o[a]:!1}function o1(){return Hz}function Yl(a,o){switch(a){case"keyup":return vY.indexOf(o.keyCode)!==-1;case"keydown":return o.keyCode!==K7;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Xl(a){return a=a.detail,typeof a==="object"&&"data"in a?a.data:null}function Wz(a,o){switch(a){case"compositionend":return Xl(o);case"keypress":if(o.which!==W7)return null;return h7=!0,U7;case"textInput":return a=o.data,a===U7&&h7?null:a;default:return null}}function Uz(a,o){if(Rv)return a==="compositionend"||!Q4&&Yl(a,o)?(a=$l(),H2=X4=gm=null,Rv=!1,a):null;switch(a){case"paste":return null;case"keypress":if(!(o.ctrlKey||o.altKey||o.metaKey)||o.ctrlKey&&o.altKey){if(o.char&&1<o.char.length)return o.char;if(o.which)return String.fromCharCode(o.which)}return null;case"compositionend":return H7&&o.locale!=="ko"?null:o.data;default:return null}}function Zl(a){var o=a&&a.nodeName&&a.nodeName.toLowerCase();return o==="input"?!!bY[a.type]:o==="textarea"?!0:!1}function hz(a){if(!gt)return!1;a="on"+a;var o=a in document;return o||(o=document.createElement("div"),o.setAttribute(a,"return;"),o=typeof o[a]==="function"),o}function Gl(a,o,p,t){Nv?Ov?Ov.push(t):Ov=[t]:Nv=t,o=v2(o,"onChange"),0<o.length&&(p=new W2("onChange","change",null,p,t),a.push({event:p,listeners:o}))}function yz(a){pw(a,0)}function J5(a){var o=_0(a);if(x3(o))return a}function ql(a,o){if(a==="change")return o}function Ql(){zi&&(zi.detachEvent("onpropertychange",_l),$i=zi=null)}function _l(a){if(a.propertyName==="value"&&J5($i)){var o=[];Gl(o,$i,a,a1(a)),zl(yz,o)}}function kz(a,o,p){a==="focusin"?(Ql(),zi=o,$i=p,zi.attachEvent("onpropertychange",_l)):a==="focusout"&&Ql()}function nz(a){if(a==="selectionchange"||a==="keyup"||a==="keydown")return J5($i)}function Lz(a,o){if(a==="click")return J5(o)}function Nz(a,o){if(a==="input"||a==="change")return J5(o)}function Oz(a,o){return a===o&&(a!==0||1/a===1/o)||a!==a&&o!==o}function h0(a,o){if(mp(a,o))return!0;if(typeof a!=="object"||a===null||typeof o!=="object"||o===null)return!1;var p=Object.keys(a),t=Object.keys(o);if(p.length!==t.length)return!1;for(t=0;t<p.length;t++){var m=p[t];if(!vt.call(o,m)||!mp(a[m],o[m]))return!1}return!0}function Bl(a){for(;a&&a.firstChild;)a=a.firstChild;return a}function dl(a,o){var p=Bl(a);a=0;for(var t;p;){if(p.nodeType===3){if(t=a+p.textContent.length,a<=o&&t>=o)return{node:p,offset:o-a};a=t}a:{for(;p;){if(p.nextSibling){p=p.nextSibling;break a}p=p.parentNode}p=void 0}p=Bl(p)}}function Kl(a,o){return a&&o?a===o?!0:a&&a.nodeType===3?!1:o&&o.nodeType===3?Kl(a,o.parentNode):("contains"in a)?a.contains(o):a.compareDocumentPosition?!!(a.compareDocumentPosition(o)&16):!1:!1}function Hl(a){a=a!=null&&a.ownerDocument!=null&&a.ownerDocument.defaultView!=null?a.ownerDocument.defaultView:window;for(var o=l5(a.document);o instanceof a.HTMLIFrameElement;){try{var p=typeof o.contentWindow.location.href==="string"}catch(t){p=!1}if(p)a=o.contentWindow;else break;o=l5(a.document)}return o}function p1(a){var o=a&&a.nodeName&&a.nodeName.toLowerCase();return o&&(o==="input"&&(a.type==="text"||a.type==="search"||a.type==="tel"||a.type==="url"||a.type==="password")||o==="textarea"||a.contentEditable==="true")}function Wl(a,o,p){var t=p.window===p?p.document:p.nodeType===9?p:p.ownerDocument;B4||Mv==null||Mv!==l5(t)||(t=Mv,("selectionStart"in t)&&p1(t)?t={start:t.selectionStart,end:t.selectionEnd}:(t=(t.ownerDocument&&t.ownerDocument.defaultView||window).getSelection(),t={anchorNode:t.anchorNode,anchorOffset:t.anchorOffset,focusNode:t.focusNode,focusOffset:t.focusOffset}),Ji&&h0(Ji,t)||(Ji=t,t=v2(_4,"onSelect"),0<t.length&&(o=new W2("onSelect","select",null,o,p),a.push({event:o,listeners:t}),o.target=Mv)))}function $r(a,o){var p={};return p[a.toLowerCase()]=o.toLowerCase(),p["Webkit"+a]="webkit"+o,p["Moz"+a]="moz"+o,p}function Jr(a){if(d4[a])return d4[a];if(!gv[a])return a;var o=gv[a],p;for(p in o)if(o.hasOwnProperty(p)&&p in k7)return d4[a]=o[p];return a}function tt(a,o){R7.set(a,o),wr(o,[a])}function Rz(a){for(var o=h2,p=0;p<a.length;p++){var t=a[p];if(typeof t==="object"&&t!==null)if(Lo(t)&&t.length===2&&typeof t[0]==="string"){if(o!==h2&&o!==h4)return W4;o=h4}else return W4;else{if(typeof t==="function"||typeof t==="string"&&50<t.length||o!==h2&&o!==U4)return W4;o=U4}}return o}function t1(a,o,p,t){for(var m in a)vt.call(a,m)&&m[0]!=="_"&&Yt(m,a[m],o,p,t)}function Yt(a,o,p,t,m){switch(typeof o){case"object":if(o===null){o="null";break}else{if(o.$$typeof===nt){var r=V(o.type)||"…",v=o.key;o=o.props;var i=Object.keys(o),b=i.length;if(v==null&&b===0){o="<"+r+" />";break}if(3>t||b===1&&i[0]==="children"&&v==null){o="<"+r+" … />";break}p.push([m+"  ".repeat(t)+a,"<"+r]),v!==null&&Yt("key",v,p,t+1,m),a=!1;for(var l in o)l==="children"?o.children!=null&&(!Lo(o.children)||0<o.children.length)&&(a=!0):vt.call(o,l)&&l[0]!=="_"&&Yt(l,o[l],p,t+1,m);p.push(["",a?">…</"+r+">":"/>"]);return}if(r=Object.prototype.toString.call(o),r=r.slice(8,r.length-1),r==="Array"){if(l=Rz(o),l===U4||l===h2){o=JSON.stringify(o);break}else if(l===h4){p.push([m+"  ".repeat(t)+a,""]);for(a=0;a<o.length;a++)r=o[a],Yt(r[0],r[1],p,t+1,m);return}}if(r==="Promise"){if(o.status==="fulfilled"){if(r=p.length,Yt(a,o.value,p,t,m),p.length>r){p=p[r],p[1]="Promise<"+(p[1]||"Object")+">";return}}else if(o.status==="rejected"&&(r=p.length,Yt(a,o.reason,p,t,m),p.length>r)){p=p[r],p[1]="Rejected Promise<"+p[1]+">";return}p.push(["  ".repeat(t)+a,"Promise"]);return}r==="Object"&&(l=Object.getPrototypeOf(o))&&typeof l.constructor==="function"&&(r=l.constructor.name),p.push([m+"  ".repeat(t)+a,r==="Object"?3>t?"":"…":r]),3>t&&t1(o,p,t+1,m);return}case"function":o=o.name===""?"() => {}":o.name+"() {}";break;case"string":o=o===JY?"…":JSON.stringify(o);break;case"undefined":o="undefined";break;case"boolean":o=o?"true":"false";break;default:o=String(o)}p.push([m+"  ".repeat(t)+a,o])}function Ul(a,o,p,t){var m=!0;for(v in a)v in o||(p.push([y2+"  ".repeat(t)+v,"…"]),m=!1);for(var r in o)if(r in a){var v=a[r],i=o[r];if(v!==i){if(t===0&&r==="children")m="  ".repeat(t)+r,p.push([y2+m,"…"],[k2+m,"…"]);else{if(!(3<=t)){if(typeof v==="object"&&typeof i==="object"&&v!==null&&i!==null&&v.$$typeof===i.$$typeof)if(i.$$typeof===nt){if(v.type===i.type&&v.key===i.key){v=V(i.type)||"…",m="  ".repeat(t)+r,v="<"+v+" … />",p.push([y2+m,v],[k2+m,v]),m=!1;continue}}else{var b=Object.prototype.toString.call(v),l=Object.prototype.toString.call(i);if(b===l&&(l==="[object Object]"||l==="[object Array]")){b=[F7+"  ".repeat(t)+r,l==="[object Array]"?"Array":""],p.push(b),l=p.length,Ul(v,i,p,t+1)?l===p.length&&(b[1]="Referentially unequal but deeply equal objects. Consider memoization."):m=!1;continue}}else if(typeof v==="function"&&typeof i==="function"&&v.name===i.name&&v.length===i.length&&(b=Function.prototype.toString.call(v),l=Function.prototype.toString.call(i),b===l)){v=i.name===""?"() => {}":i.name+"() {}",p.push([F7+"  ".repeat(t)+r,v+" Referentially unequal function closure. Consider memoization."]);continue}}Yt(r,v,p,t,y2),Yt(r,i,p,t,k2)}m=!1}}else p.push([k2+"  ".repeat(t)+r,"…"]),m=!1;return m}function Qp(a){Na=a&63?"Blocking":a&64?"Gesture":a&4194176?"Transition":a&62914560?"Suspense":a&2080374784?"Idle":"Other"}function Xt(a,o,p,t){ro&&(Pm.start=o,Pm.end=p,pm.color="warning",pm.tooltipText=t,pm.properties=null,(a=a._debugTask)?a.run(performance.measure.bind(performance,t,Pm)):performance.measure(t,Pm))}function Y5(a,o,p){Xt(a,o,p,"Reconnect")}function X5(a,o,p,t,m){var r=U(a);if(r!==null&&ro){var{alternate:v,actualDuration:i}=a;if(v===null||v.child!==a.child)for(var b=a.child;b!==null;b=b.sibling)i-=b.actualDuration;t=0.5>i?t?"tertiary-light":"primary-light":10>i?t?"tertiary":"primary":100>i?t?"tertiary-dark":"primary-dark":"error";var l=a.memoizedProps;i=a._debugTask,l!==null&&v!==null&&v.memoizedProps!==l?(b=[YY],l=Ul(v.memoizedProps,l,b,0),1<b.length&&(l&&!Fm&&(v.lanes&m)===0&&100<a.actualDuration?(Fm=!0,b[0]=XY,pm.color="warning",pm.tooltipText=P7):(pm.color=t,pm.tooltipText=r),pm.properties=b,Pm.start=o,Pm.end=p,i!=null?i.run(performance.measure.bind(performance,"​"+r,Pm)):performance.measure("​"+r,Pm))):i!=null?i.run(console.timeStamp.bind(console,r,o,p,Cp,void 0,t)):console.timeStamp(r,o,p,Cp,void 0,t)}}function m1(a,o,p,t){if(ro){var m=U(a);if(m!==null){for(var r=null,v=[],i=0;i<t.length;i++){var b=t[i];r==null&&b.source!==null&&(r=b.source._debugTask),b=b.value,v.push(["Error",typeof b==="object"&&b!==null&&typeof b.message==="string"?String(b.message):String(b)])}a.key!==null&&Yt("key",a.key,v,0,""),a.memoizedProps!==null&&t1(a.memoizedProps,v,0,""),r==null&&(r=a._debugTask),a={start:o,end:p,detail:{devtools:{color:"error",track:Cp,tooltipText:a.tag===13?"Hydration failed":"Error boundary caught an error",properties:v}}},r?r.run(performance.measure.bind(performance,"​"+m,a)):performance.measure("​"+m,a)}}}function Zt(a,o,p,t,m){if(m!==null){if(ro){var r=U(a);if(r!==null){t=[];for(var v=0;v<m.length;v++){var i=m[v].value;t.push(["Error",typeof i==="object"&&i!==null&&typeof i.message==="string"?String(i.message):String(i)])}a.key!==null&&Yt("key",a.key,t,0,""),a.memoizedProps!==null&&t1(a.memoizedProps,t,0,""),o={start:o,end:p,detail:{devtools:{color:"error",track:Cp,tooltipText:"A lifecycle or effect errored",properties:t}}},(a=a._debugTask)?a.run(performance.measure.bind(performance,"​"+r,o)):performance.measure("​"+r,o)}}}else r=U(a),r!==null&&ro&&(m=1>t?"secondary-light":100>t?"secondary":500>t?"secondary-dark":"error",(a=a._debugTask)?a.run(console.timeStamp.bind(console,r,o,p,Cp,void 0,m)):console.timeStamp(r,o,p,Cp,void 0,m))}function Mz(a,o,p,t){if(ro&&!(o<=a)){var m=(p&738197653)===p?"tertiary-dark":"primary-dark";p=(p&536870912)===p?"Prepared":(p&201326741)===p?"Hydrated":"Render",t?t.run(console.timeStamp.bind(console,p,a,o,Na,na,m)):console.timeStamp(p,a,o,Na,na,m)}}function hl(a,o,p,t){!ro||o<=a||(p=(p&738197653)===p?"tertiary-dark":"primary-dark",t?t.run(console.timeStamp.bind(console,"Prewarm",a,o,Na,na,p)):console.timeStamp("Prewarm",a,o,Na,na,p))}function yl(a,o,p,t){!ro||o<=a||(p=(p&738197653)===p?"tertiary-dark":"primary-dark",t?t.run(console.timeStamp.bind(console,"Suspended",a,o,Na,na,p)):console.timeStamp("Suspended",a,o,Na,na,p))}function gz(a,o,p,t,m,r){if(ro&&!(o<=a)){p=[];for(var v=0;v<t.length;v++){var i=t[v].value;p.push(["Recoverable Error",typeof i==="object"&&i!==null&&typeof i.message==="string"?String(i.message):String(i)])}a={start:a,end:o,detail:{devtools:{color:"primary-dark",track:Na,trackGroup:na,tooltipText:m?"Hydration Failed":"Recovered after Error",properties:p}}},r?r.run(performance.measure.bind(performance,"Recovered",a)):performance.measure("Recovered",a)}}function r1(a,o,p,t){!ro||o<=a||(t?t.run(console.timeStamp.bind(console,"Errored",a,o,Na,na,"error")):console.timeStamp("Errored",a,o,Na,na,"error"))}function Fz(a,o,p,t){!ro||o<=a||(t?t.run(console.timeStamp.bind(console,p,a,o,Na,na,"secondary-light")):console.timeStamp(p,a,o,Na,na,"secondary-light"))}function kl(a,o,p,t,m){if(ro&&!(o<=a)){for(var r=[],v=0;v<p.length;v++){var i=p[v].value;r.push(["Error",typeof i==="object"&&i!==null&&typeof i.message==="string"?String(i.message):String(i)])}a={start:a,end:o,detail:{devtools:{color:"error",track:Na,trackGroup:na,tooltipText:t?"Remaining Effects Errored":"Commit Errored",properties:r}}},m?m.run(performance.measure.bind(performance,"Errored",a)):performance.measure("Errored",a)}}function y0(a,o,p){!ro||o<=a||(p?p.run(console.timeStamp.bind(console,"Animating",a,o,Na,na,"secondary-dark")):console.timeStamp("Animating",a,o,Na,na,"secondary-dark"))}function Z5(){for(var a=Fv,o=y4=Fv=0;o<a;){var p=Ip[o];Ip[o++]=null;var t=Ip[o];Ip[o++]=null;var m=Ip[o];Ip[o++]=null;var r=Ip[o];if(Ip[o++]=null,t!==null&&m!==null){var v=t.pending;v===null?m.next=m:(m.next=v.next,v.next=m),t.pending=m}r!==0&&nl(p,m,r)}}function G5(a,o,p,t){Ip[Fv++]=a,Ip[Fv++]=o,Ip[Fv++]=p,Ip[Fv++]=t,y4|=t,a.lanes|=t,a=a.alternate,a!==null&&(a.lanes|=t)}function v1(a,o,p,t){return G5(a,o,p,t),q5(a)}function jo(a,o){return G5(a,null,null,o),q5(a)}function nl(a,o,p){a.lanes|=p;var t=a.alternate;t!==null&&(t.lanes|=p);for(var m=!1,r=a.return;r!==null;)r.childLanes|=p,t=r.alternate,t!==null&&(t.childLanes|=p),r.tag===22&&(a=r.stateNode,a===null||a._visibility&Yi||(m=!0)),a=r,r=r.return;return a.tag===3?(r=a.stateNode,m&&o!==null&&(m=31-op(p),a=r.hiddenUpdates,t=a[m],t===null?a[m]=[o]:t.push(o),o.lane=p|536870912),r):null}function q5(a){if(Ai>nY)throw Tr=Ai=0,Ti=c3=null,Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.");Tr>LY&&(Tr=0,Ti=null,console.error("Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render.")),a.alternate===null&&(a.flags&4098)!==0&&j6(a);for(var o=a,p=o.return;p!==null;)o.alternate===null&&(o.flags&4098)!==0&&j6(a),o=p,p=o.return;return o.tag===3?o.stateNode:null}function Yr(a){if(Ap===null)return a;var o=Ap(a);return o===void 0?a:o.current}function i1(a){if(Ap===null)return a;var o=Ap(a);return o===void 0?a!==null&&a!==void 0&&typeof a.render==="function"&&(o=Yr(a.render),a.render!==o)?(o={$$typeof:mi,render:o},a.displayName!==void 0&&(o.displayName=a.displayName),o):a:o.current}function Ll(a,o){if(Ap===null)return!1;var p=a.elementType;o=o.type;var t=!1,m=typeof o==="object"&&o!==null?o.$$typeof:null;switch(a.tag){case 1:typeof o==="function"&&(t=!0);break;case 0:typeof o==="function"?t=!0:m===Up&&(t=!0);break;case 11:m===mi?t=!0:m===Up&&(t=!0);break;case 14:case 15:m===X2?t=!0:m===Up&&(t=!0);break;default:return!1}return t&&(a=Ap(p),a!==void 0&&a===Ap(o))?!0:!1}function Nl(a){Ap!==null&&typeof WeakSet==="function"&&(Pv===null&&(Pv=new WeakSet),Pv.add(a))}function Ol(a,o,p){do{var t=a,m=t.alternate,r=t.child,v=t.sibling,i=t.tag;t=t.type;var b=null;switch(i){case 0:case 15:case 1:b=t;break;case 11:b=t.render}if(Ap===null)throw Error("Expected resolveFamily to be set during hot reload.");var l=!1;if(t=!1,b!==null&&(b=Ap(b),b!==void 0&&(p.has(b)?t=!0:o.has(b)&&(i===1?t=!0:l=!0))),Pv!==null&&(Pv.has(a)||m!==null&&Pv.has(m))&&(t=!0),t&&(a._debugNeedsRemount=!0),t||l)m=jo(a,2),m!==null&&Yo(m,a,2);if(r===null||t||Ol(r,o,p),v===null)break;a=v}while(1)}function Pz(a,o,p,t){this.tag=a,this.key=p,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=o,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=t,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null,this.actualDuration=-0,this.actualStartTime=-1.1,this.treeBaseDuration=this.selfBaseDuration=-0,this._debugTask=this._debugStack=this._debugOwner=this._debugInfo=null,this._debugNeedsRemount=!1,this._debugHookTypes=null,C7||typeof Object.preventExtensions!=="function"||Object.preventExtensions(this)}function b1(a){return a=a.prototype,!(!a||!a.isReactComponent)}function Vt(a,o){var p=a.alternate;switch(p===null?(p=O(a.tag,o,a.key,a.mode),p.elementType=a.elementType,p.type=a.type,p.stateNode=a.stateNode,p._debugOwner=a._debugOwner,p._debugStack=a._debugStack,p._debugTask=a._debugTask,p._debugHookTypes=a._debugHookTypes,p.alternate=a,a.alternate=p):(p.pendingProps=o,p.type=a.type,p.flags=0,p.subtreeFlags=0,p.deletions=null,p.actualDuration=-0,p.actualStartTime=-1.1),p.flags=a.flags&65011712,p.childLanes=a.childLanes,p.lanes=a.lanes,p.child=a.child,p.memoizedProps=a.memoizedProps,p.memoizedState=a.memoizedState,p.updateQueue=a.updateQueue,o=a.dependencies,p.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext,_debugThenableState:o._debugThenableState},p.sibling=a.sibling,p.index=a.index,p.ref=a.ref,p.refCleanup=a.refCleanup,p.selfBaseDuration=a.selfBaseDuration,p.treeBaseDuration=a.treeBaseDuration,p._debugInfo=a._debugInfo,p._debugNeedsRemount=a._debugNeedsRemount,p.tag){case 0:case 15:p.type=Yr(a.type);break;case 1:p.type=Yr(a.type);break;case 11:p.type=i1(a.type)}return p}function Rl(a,o){a.flags&=65011714;var p=a.alternate;return p===null?(a.childLanes=0,a.lanes=o,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null,a.selfBaseDuration=0,a.treeBaseDuration=0):(a.childLanes=p.childLanes,a.lanes=p.lanes,a.child=p.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=p.memoizedProps,a.memoizedState=p.memoizedState,a.updateQueue=p.updateQueue,a.type=p.type,o=p.dependencies,a.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext,_debugThenableState:o._debugThenableState},a.selfBaseDuration=p.selfBaseDuration,a.treeBaseDuration=p.treeBaseDuration),a}function c1(a,o,p,t,m,r){var v=0,i=a;if(typeof a==="function")b1(a)&&(v=1),i=Yr(i);else if(typeof a==="string")v=ta(),v=j$(a,p,v)?26:a==="html"||a==="head"||a==="body"?27:5;else a:switch(a){case o4:return o=O(31,p,o,m),o.elementType=o4,o.lanes=r,o;case Uv:return Xr(p.children,m,r,o);case Y2:v=8,m|=Eo,m|=bt;break;case Ec:return a=p,t=m,typeof a.id!=="string"&&console.error('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof a.id),o=O(12,a,o,t|Ha),o.elementType=Ec,o.lanes=r,o.stateNode={effectDuration:0,passiveEffectDuration:0},o;case ec:return o=O(13,p,o,m),o.elementType=ec,o.lanes=r,o;case a4:return o=O(19,p,o,m),o.elementType=a4,o.lanes=r,o;default:if(typeof a==="object"&&a!==null)switch(a.$$typeof){case Lt:v=10;break a;case sc:v=9;break a;case mi:v=11,i=i1(i);break a;case X2:v=14;break a;case Up:v=16,i=null;break a}if(i="",a===void 0||typeof a==="object"&&a!==null&&Object.keys(a).length===0)i+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.";a===null?p="null":Lo(a)?p="array":a!==void 0&&a.$$typeof===nt?(p="<"+(V(a.type)||"Unknown")+" />",i=" Did you accidentally export a JSX literal instead of a component?"):p=typeof a,(v=t?Fa(t):null)&&(i+=`
56
-
57
- Check the render method of \``+v+"`."),v=29,p=Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+(p+"."+i)),i=null}return o=O(v,p,o,m),o.elementType=a,o.type=i,o.lanes=r,o._debugOwner=t,o}function Q5(a,o,p){return o=c1(a.type,a.key,a.props,a._owner,o,p),o._debugOwner=a._owner,o._debugStack=a._debugStack,o._debugTask=a._debugTask,o}function Xr(a,o,p,t){return a=O(7,a,t,o),a.lanes=p,a}function l1(a,o,p){return a=O(6,a,null,o),a.lanes=p,a}function Ml(a){var o=O(18,null,null,Xa);return o.stateNode=a,o}function f1(a,o,p){return o=O(4,a.children!==null?a.children:[],a.key,o),o.lanes=p,o.stateNode={containerInfo:a.containerInfo,pendingChildren:null,implementation:a.implementation},o}function _p(a,o){if(typeof a==="object"&&a!==null){var p=k4.get(a);if(p!==void 0)return p;return o={value:a,source:o,stack:tv(o)},k4.set(a,o),o}return{value:a,source:o,stack:tv(o)}}function jt(a,o){_m(),Cv[Iv++]=Xi,Cv[Iv++]=n2,n2=a,Xi=o}function gl(a,o,p){_m(),Tp[Sp++]=mm,Tp[Sp++]=rm,Tp[Sp++]=yr,yr=a;var t=mm;a=rm;var m=32-op(t)-1;t&=~(1<<m),p+=1;var r=32-op(o)+m;if(30<r){var v=m-m%5;r=(t&(1<<v)-1).toString(32),t>>=v,m-=v,mm=1<<32-op(o)+m|p<<m|t,rm=r+a}else mm=1<<r|p<<m|t,rm=a}function w1(a){_m(),a.return!==null&&(jt(a,1),gl(a,1,0))}function z1(a){for(;a===n2;)n2=Cv[--Iv],Cv[Iv]=null,Xi=Cv[--Iv],Cv[Iv]=null;for(;a===yr;)yr=Tp[--Sp],Tp[Sp]=null,rm=Tp[--Sp],Tp[Sp]=null,mm=Tp[--Sp],Tp[Sp]=null}function Fl(){return _m(),yr!==null?{id:mm,overflow:rm}:null}function Pl(a,o){_m(),Tp[Sp++]=mm,Tp[Sp++]=rm,Tp[Sp++]=yr,mm=o.id,rm=o.overflow,yr=a}function _m(){Oa||console.error("Expected to be hydrating. This is a bug in React. Please file an issue.")}function Zr(a,o){if(a.return===null){if(kp===null)kp={fiber:a,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:o};else{if(kp.fiber!==a)throw Error("Saw multiple hydration diff roots in a pass. This is a bug in React.");kp.distanceFromLeaf>o&&(kp.distanceFromLeaf=o)}return kp}var p=Zr(a.return,o+1).children;if(0<p.length&&p[p.length-1].fiber===a)return p=p[p.length-1],p.distanceFromLeaf>o&&(p.distanceFromLeaf=o),p;return o={fiber:a,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:o},p.push(o),o}function Cl(){Oa&&console.error("We should not be hydrating here. This is a bug in React. Please file a bug.")}function _5(a,o){Ft||(a=Zr(a,0),a.serverProps=null,o!==null&&(o=qw(o),a.serverTail.push(o)))}function Bm(a){var o=1<arguments.length&&arguments[1]!==void 0?arguments[1]:!1,p="",t=kp;throw t!==null&&(kp=null,p=sb(t)),k0(_p(Error("Hydration failed because the server rendered "+(o?"text":"HTML")+` didn't match the client. As a result this tree will be regenerated on the client. This can happen if a SSR-ed Client Component used:
58
-
59
- - A server/client branch \`if (typeof window !== 'undefined')\`.
60
- - Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
61
- - Date formatting in a user's locale which doesn't match the server.
62
- - External changing data without sending a snapshot of it along with the HTML.
63
- - Invalid HTML tag nesting.
64
-
65
- It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
66
-
67
- https://react.dev/link/hydration-mismatch`+p),a)),n4}function Il(a){var{stateNode:o,type:p,memoizedProps:t}=a;switch(o[So]=a,o[pp]=t,Lc(p,t),p){case"dialog":Ra("cancel",o),Ra("close",o);break;case"iframe":case"object":case"embed":Ra("load",o);break;case"video":case"audio":for(p=0;p<Si.length;p++)Ra(Si[p],o);break;case"source":Ra("error",o);break;case"img":case"image":case"link":Ra("error",o),Ra("load",o);break;case"details":Ra("toggle",o);break;case"input":bv("input",t),Ra("invalid",o),V3(o,t),j3(o,t.value,t.defaultValue,t.checked,t.defaultChecked,t.type,t.name,!0);break;case"option":D3(o,t);break;case"select":bv("select",t),Ra("invalid",o),s3(o,t);break;case"textarea":bv("textarea",t),Ra("invalid",o),e3(o,t),ol(o,t.value,t.defaultValue,t.children)}p=t.children,typeof p!=="string"&&typeof p!=="number"&&typeof p!=="bigint"||o.textContent===""+p||t.suppressHydrationWarning===!0||vw(o.textContent,p)?(t.popover!=null&&(Ra("beforetoggle",o),Ra("toggle",o)),t.onScroll!=null&&Ra("scroll",o),t.onScrollEnd!=null&&Ra("scrollend",o),t.onClick!=null&&(o.onclick=xt),o=!0):o=!1,o||Bm(a,!0)}function Al(a){for(uo=a.return;uo;)switch(uo.tag){case 5:case 31:case 13:up=!1;return;case 27:case 3:up=!0;return;default:uo=uo.return}}function wv(a){if(a!==uo)return!1;if(!Oa)return Al(a),Oa=!0,!1;var o=a.tag,p;if(p=o!==3&&o!==27){if(p=o===5)p=a.type,p=!(p!=="form"&&p!=="button")||gc(a.type,a.memoizedProps);p=!p}if(p&&vo){for(p=vo;p;){var t=Zr(a,0),m=qw(p);t.serverTail.push(m),p=m.type==="Suspense"?Ic(p):Wp(p.nextSibling)}Bm(a)}if(Al(a),o===13){if(a=a.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");vo=Ic(a)}else if(o===31){if(a=a.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");vo=Ic(a)}else o===27?(o=vo,Lm(a.type)?(a=Q3,Q3=null,vo=a):vo=o):vo=uo?Wp(a.stateNode.nextSibling):null;return!0}function Gr(){vo=uo=null,Ft=Oa=!1}function $1(){var a=Im;return a!==null&&(bp===null?bp=a:bp.push.apply(bp,a),Im=null),a}function k0(a){Im===null?Im=[a]:Im.push(a)}function J1(){var a=kp;if(a!==null){kp=null;for(var o=sb(a);0<a.children.length;)a=a.children[0];g(a.fiber,function(){console.error(`A tree hydrated but some attributes of the server rendered HTML didn't match the client properties. This won't be patched up. This can happen if a SSR-ed Client Component used:
68
-
69
- - A server/client branch \`if (typeof window !== 'undefined')\`.
70
- - Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
71
- - Date formatting in a user's locale which doesn't match the server.
72
- - External changing data without sending a snapshot of it along with the HTML.
73
- - Invalid HTML tag nesting.
74
-
75
- It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
76
-
77
- %s%s`,"https://react.dev/link/hydration-mismatch",o)})}}function B5(){Av=L2=null,Tv=!1}function dm(a,o,p){k(L4,o._currentValue,a),o._currentValue=p,k(N4,o._currentRenderer,a),o._currentRenderer!==void 0&&o._currentRenderer!==null&&o._currentRenderer!==A7&&console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),o._currentRenderer=A7}function Dt(a,o){a._currentValue=L4.current;var p=N4.current;ia(N4,o),a._currentRenderer=p,ia(L4,o)}function Y1(a,o,p){for(;a!==null;){var t=a.alternate;if((a.childLanes&o)!==o?(a.childLanes|=o,t!==null&&(t.childLanes|=o)):t!==null&&(t.childLanes&o)!==o&&(t.childLanes|=o),a===p)break;a=a.return}a!==p&&console.error("Expected to find the propagation root when scheduling context work. This error is likely caused by a bug in React. Please file an issue.")}function X1(a,o,p,t){var m=a.child;m!==null&&(m.return=a);for(;m!==null;){var r=m.dependencies;if(r!==null){var v=m.child;r=r.firstContext;a:for(;r!==null;){var i=r;r=m;for(var b=0;b<o.length;b++)if(i.context===o[b]){r.lanes|=p,i=r.alternate,i!==null&&(i.lanes|=p),Y1(r.return,p,a),t||(v=null);break a}r=i.next}}else if(m.tag===18){if(v=m.return,v===null)throw Error("We just came from a parent so we must have had a parent. This is a bug in React.");v.lanes|=p,r=v.alternate,r!==null&&(r.lanes|=p),Y1(v,p,a),v=null}else v=m.child;if(v!==null)v.return=m;else for(v=m;v!==null;){if(v===a){v=null;break}if(m=v.sibling,m!==null){m.return=v.return,v=m;break}v=v.return}m=v}}function zv(a,o,p,t){a=null;for(var m=o,r=!1;m!==null;){if(!r){if((m.flags&524288)!==0)r=!0;else if((m.flags&262144)!==0)break}if(m.tag===10){var v=m.alternate;if(v===null)throw Error("Should have a current fiber. This is a bug in React.");if(v=v.memoizedProps,v!==null){var i=m.type;mp(m.pendingProps.value,v.value)||(a!==null?a.push(i):a=[i])}}else if(m===Z2.current){if(v=m.alternate,v===null)throw Error("Should have a current fiber. This is a bug in React.");v.memoizedState.memoizedState!==m.memoizedState.memoizedState&&(a!==null?a.push(Di):a=[Di])}m=m.return}a!==null&&X1(o,a,p,t),o.flags|=262144}function d5(a){for(a=a.firstContext;a!==null;){if(!mp(a.context._currentValue,a.memoizedValue))return!0;a=a.next}return!1}function qr(a){L2=a,Av=null,a=a.dependencies,a!==null&&(a.firstContext=null)}function lo(a){return Tv&&console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()."),Tl(L2,a)}function K5(a,o){return L2===null&&qr(a),Tl(a,o)}function Tl(a,o){var p=o._currentValue;if(o={context:o,memoizedValue:p,next:null},Av===null){if(a===null)throw Error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");Av=o,a.dependencies={lanes:0,firstContext:o,_debugThenableState:null},a.flags|=524288}else Av=Av.next=o;return p}function Z1(){return{controller:new qY,data:new Map,refCount:0}}function Qr(a){a.controller.signal.aborted&&console.warn("A cache instance was retained after it was already freed. This likely indicates a bug in React."),a.refCount++}function n0(a){a.refCount--,0>a.refCount&&console.warn("A cache instance was released after it was already freed. This likely indicates a bug in React."),a.refCount===0&&QY(_Y,function(){a.controller.abort()})}function Gt(a,o,p){if((a&127)!==0)0>Pt&&(Pt=Ko(),Gi=N2(o),O4=o,p!=null&&(R4=U(p)),(Pa&(Oo|Np))!==Co&&(Xo=!0,Sm=Zi),a=e0(),o=s0(),a!==Sv||o!==qi?Sv=-1.1:o!==null&&(Sm=Zi),nr=a,qi=o);else if((a&4194048)!==0&&0>xp&&(xp=Ko(),Qi=N2(o),T7=o,p!=null&&(S7=U(p)),0>bm)){if(a=e0(),o=s0(),a!==xm||o!==Lr)xm=-1.1;um=a,Lr=o}}function Cz(a){if(0>Pt){Pt=Ko(),Gi=a._debugTask!=null?a._debugTask:null,(Pa&(Oo|Np))!==Co&&(Sm=Zi);var o=e0(),p=s0();o!==Sv||p!==qi?Sv=-1.1:p!==null&&(Sm=Zi),nr=o,qi=p}if(0>xp&&(xp=Ko(),Qi=a._debugTask!=null?a._debugTask:null,0>bm)){if(a=e0(),o=s0(),a!==xm||o!==Lr)xm=-1.1;um=a,Lr=o}}function Et(){var a=kr;return kr=0,a}function H5(a){var o=kr;return kr=a,o}function L0(a){var o=kr;return kr+=a,o}function W5(){Ja=wa=-1.1}function Bp(){var a=wa;return wa=-1.1,a}function dp(a){0<=a&&(wa=a)}function qt(){var a=$o;return $o=-0,a}function Qt(a){0<=a&&($o=a)}function _t(){var a=fo;return fo=null,a}function Bt(){var a=Xo;return Xo=!1,a}function G1(a){rp=Ko(),0>a.actualStartTime&&(a.actualStartTime=rp)}function q1(a){if(0<=rp){var o=Ko()-rp;a.actualDuration+=o,a.selfBaseDuration=o,rp=-1}}function Sl(a){if(0<=rp){var o=Ko()-rp;a.actualDuration+=o,rp=-1}}function dt(){if(0<=rp){var a=Ko(),o=a-rp;rp=-1,kr+=o,$o+=o,Ja=a}}function ul(a){fo===null&&(fo=[]),fo.push(a),im===null&&(im=[]),im.push(a)}function Kt(){rp=Ko(),0>wa&&(wa=rp)}function N0(a){for(var o=a.child;o;)a.actualDuration+=o.actualDuration,o=o.sibling}function Iz(a,o){if(Bi===null){var p=Bi=[];g4=0,Nr=hc(),uv={status:"pending",value:void 0,then:function(t){p.push(t)}}}return g4++,o.then(xl,xl),o}function xl(){if(--g4===0&&(-1<xp||(bm=-1.1),Bi!==null)){uv!==null&&(uv.status="fulfilled");var a=Bi;Bi=null,Nr=0,uv=null;for(var o=0;o<a.length;o++)(0,a[o])()}}function Az(a,o){var p=[],t={status:"pending",value:null,reason:null,then:function(m){p.push(m)}};return a.then(function(){t.status="fulfilled",t.value=o;for(var m=0;m<p.length;m++)(0,p[m])(o)},function(m){t.status="rejected",t.reason=m;for(m=0;m<p.length;m++)(0,p[m])(void 0)}),t}function Q1(){var a=Or.current;return a!==null?a:ao.pooledCache}function U5(a,o){o===null?k(Or,Or.current,a):k(Or,o.pool,a)}function Vl(){var a=Q1();return a===null?null:{parent:Bo._currentValue,pool:a}}function jl(){return{didWarnAboutUncachedPromise:!1,thenables:[]}}function Dl(a){return a=a.status,a==="fulfilled"||a==="rejected"}function El(a,o,p){K.actQueue!==null&&(K.didUsePromise=!0);var t=a.thenables;if(p=t[p],p===void 0?t.push(o):p!==o&&(a.didWarnAboutUncachedPromise||(a.didWarnAboutUncachedPromise=!0,console.error("A component was suspended by an uncached promise. Creating promises inside a Client Component or hook is not yet supported, except via a Suspense-compatible library or framework.")),o.then(xt,xt),o=p),o._debugInfo===void 0){a=performance.now(),t=o.displayName;var m={name:typeof t==="string"?t:"Promise",start:a,end:a,value:o};o._debugInfo=[{awaited:m}],o.status!=="fulfilled"&&o.status!=="rejected"&&(a=function(){m.end=performance.now()},o.then(a,a))}switch(o.status){case"fulfilled":return o.value;case"rejected":throw a=o.reason,el(a),a;default:if(typeof o.status==="string")o.then(xt,xt);else{if(a=ao,a!==null&&100<a.shellSuspendCounter)throw Error("An unknown Component is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.");a=o,a.status="pending",a.then(function(r){if(o.status==="pending"){var v=o;v.status="fulfilled",v.value=r}},function(r){if(o.status==="pending"){var v=o;v.status="rejected",v.reason=r}})}switch(o.status){case"fulfilled":return o.value;case"rejected":throw a=o.reason,el(a),a}throw Mr=o,yi=!0,xv}}function Km(a){try{return HY(a)}catch(o){if(o!==null&&typeof o==="object"&&typeof o.then==="function")throw Mr=o,yi=!0,xv;throw o}}function sl(){if(Mr===null)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var a=Mr;return Mr=null,yi=!1,a}function el(a){if(a===xv||a===I2)throw Error("Hooks are not supported inside an async component. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.")}function Io(a){var o=Wa;return a!=null&&(Wa=o===null?a:o.concat(a)),o}function _1(){var a=Wa;if(a!=null){for(var o=a.length-1;0<=o;o--)if(a[o].name!=null){var p=a[o].debugTask;if(p!=null)return p}}return null}function h5(a,o,p){for(var t=Object.keys(a.props),m=0;m<t.length;m++){var r=t[m];if(r!=="children"&&r!=="key"){o===null&&(o=Q5(a,p.mode,0),o._debugInfo=Wa,o.return=p),g(o,function(v){console.error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",v)},r);break}}}function y5(a){var o=ki;return ki+=1,Vv===null&&(Vv=jl()),El(Vv,a,o)}function O0(a,o){o=o.props.ref,a.ref=o!==void 0?o:null}function af(a,o){if(o.$$typeof===rJ)throw Error(`A React Element from an older version of React was rendered. This is not supported. It can happen if:
78
- - Multiple copies of the "react" package is used.
79
- - A library pre-bundled an old copy of "react" or "react/jsx-runtime".
80
- - A compiler tries to "inline" JSX instead of using the runtime.`);throw a=Object.prototype.toString.call(o),Error("Objects are not valid as a React child (found: "+(a==="[object Object]"?"object with keys {"+Object.keys(o).join(", ")+"}":a)+"). If you meant to render a collection of children, use an array instead.")}function k5(a,o){var p=_1();p!==null?p.run(af.bind(null,a,o)):af(a,o)}function of(a,o){var p=U(a)||"Component";f8[p]||(f8[p]=!0,o=o.displayName||o.name||"Component",a.tag===3?console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
81
- root.render(%s)`,o,o,o):console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
82
- <%s>{%s}</%s>`,o,o,p,o,p))}function n5(a,o){var p=_1();p!==null?p.run(of.bind(null,a,o)):of(a,o)}function pf(a,o){var p=U(a)||"Component";w8[p]||(w8[p]=!0,o=String(o),a.tag===3?console.error(`Symbols are not valid as a React child.
83
- root.render(%s)`,o):console.error(`Symbols are not valid as a React child.
84
- <%s>%s</%s>`,p,o,p))}function L5(a,o){var p=_1();p!==null?p.run(pf.bind(null,a,o)):pf(a,o)}function tf(a){function o(w,$){if(a){var J=w.deletions;J===null?(w.deletions=[$],w.flags|=16):J.push($)}}function p(w,$){if(!a)return null;for(;$!==null;)o(w,$),$=$.sibling;return null}function t(w){for(var $=new Map;w!==null;)w.key!==null?$.set(w.key,w):$.set(w.index,w),w=w.sibling;return $}function m(w,$){return w=Vt(w,$),w.index=0,w.sibling=null,w}function r(w,$,J){if(w.index=J,!a)return w.flags|=1048576,$;if(J=w.alternate,J!==null)return J=J.index,J<$?(w.flags|=67108866,$):J;return w.flags|=67108866,$}function v(w){return a&&w.alternate===null&&(w.flags|=67108866),w}function i(w,$,J,y){if($===null||$.tag!==6)return $=l1(J,w.mode,y),$.return=w,$._debugOwner=w,$._debugTask=w._debugTask,$._debugInfo=Wa,$;return $=m($,J),$.return=w,$._debugInfo=Wa,$}function b(w,$,J,y){var D=J.type;if(D===Uv)return $=Y(w,$,J.props.children,y,J.key),h5(J,$,w),$;if($!==null&&($.elementType===D||Ll($,J)||typeof D==="object"&&D!==null&&D.$$typeof===Up&&Km(D)===$.type))return $=m($,J.props),O0($,J),$.return=w,$._debugOwner=J._owner,$._debugInfo=Wa,$;return $=Q5(J,w.mode,y),O0($,J),$.return=w,$._debugInfo=Wa,$}function l(w,$,J,y){if($===null||$.tag!==4||$.stateNode.containerInfo!==J.containerInfo||$.stateNode.implementation!==J.implementation)return $=f1(J,w.mode,y),$.return=w,$._debugInfo=Wa,$;return $=m($,J.children||[]),$.return=w,$._debugInfo=Wa,$}function Y(w,$,J,y,D){if($===null||$.tag!==7)return $=Xr(J,w.mode,y,D),$.return=w,$._debugOwner=w,$._debugTask=w._debugTask,$._debugInfo=Wa,$;return $=m($,J),$.return=w,$._debugInfo=Wa,$}function X(w,$,J){if(typeof $==="string"&&$!==""||typeof $==="number"||typeof $==="bigint")return $=l1(""+$,w.mode,J),$.return=w,$._debugOwner=w,$._debugTask=w._debugTask,$._debugInfo=Wa,$;if(typeof $==="object"&&$!==null){switch($.$$typeof){case nt:return J=Q5($,w.mode,J),O0(J,$),J.return=w,w=Io($._debugInfo),J._debugInfo=Wa,Wa=w,J;case Wv:return $=f1($,w.mode,J),$.return=w,$._debugInfo=Wa,$;case Up:var y=Io($._debugInfo);return $=Km($),w=X(w,$,J),Wa=y,w}if(Lo($)||ga($))return J=Xr($,w.mode,J,null),J.return=w,J._debugOwner=w,J._debugTask=w._debugTask,w=Io($._debugInfo),J._debugInfo=Wa,Wa=w,J;if(typeof $.then==="function")return y=Io($._debugInfo),w=X(w,y5($),J),Wa=y,w;if($.$$typeof===Lt)return X(w,K5(w,$),J);k5(w,$)}return typeof $==="function"&&n5(w,$),typeof $==="symbol"&&L5(w,$),null}function z(w,$,J,y){var D=$!==null?$.key:null;if(typeof J==="string"&&J!==""||typeof J==="number"||typeof J==="bigint")return D!==null?null:i(w,$,""+J,y);if(typeof J==="object"&&J!==null){switch(J.$$typeof){case nt:return J.key===D?(D=Io(J._debugInfo),w=b(w,$,J,y),Wa=D,w):null;case Wv:return J.key===D?l(w,$,J,y):null;case Up:return D=Io(J._debugInfo),J=Km(J),w=z(w,$,J,y),Wa=D,w}if(Lo(J)||ga(J)){if(D!==null)return null;return D=Io(J._debugInfo),w=Y(w,$,J,y,null),Wa=D,w}if(typeof J.then==="function")return D=Io(J._debugInfo),w=z(w,$,y5(J),y),Wa=D,w;if(J.$$typeof===Lt)return z(w,$,K5(w,J),y);k5(w,J)}return typeof J==="function"&&n5(w,J),typeof J==="symbol"&&L5(w,J),null}function _(w,$,J,y,D){if(typeof y==="string"&&y!==""||typeof y==="number"||typeof y==="bigint")return w=w.get(J)||null,i($,w,""+y,D);if(typeof y==="object"&&y!==null){switch(y.$$typeof){case nt:return J=w.get(y.key===null?J:y.key)||null,w=Io(y._debugInfo),$=b($,J,y,D),Wa=w,$;case Wv:return w=w.get(y.key===null?J:y.key)||null,l($,w,y,D);case Up:var Qa=Io(y._debugInfo);return y=Km(y),$=_(w,$,J,y,D),Wa=Qa,$}if(Lo(y)||ga(y))return J=w.get(J)||null,w=Io(y._debugInfo),$=Y($,J,y,D,null),Wa=w,$;if(typeof y.then==="function")return Qa=Io(y._debugInfo),$=_(w,$,J,y5(y),D),Wa=Qa,$;if(y.$$typeof===Lt)return _(w,$,J,K5($,y),D);k5($,y)}return typeof y==="function"&&n5($,y),typeof y==="symbol"&&L5($,y),null}function u(w,$,J,y){if(typeof J!=="object"||J===null)return y;switch(J.$$typeof){case nt:case Wv:h(w,$,J);var D=J.key;if(typeof D!=="string")break;if(y===null){y=new Set,y.add(D);break}if(!y.has(D)){y.add(D);break}g($,function(){console.error("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.",D)});break;case Up:J=Km(J),u(w,$,J,y)}return y}function e(w,$,J,y){for(var D=null,Qa=null,fa=null,ba=$,Ka=$=0,io=null;ba!==null&&Ka<J.length;Ka++){ba.index>Ka?(io=ba,ba=null):io=ba.sibling;var Qo=z(w,ba,J[Ka],y);if(Qo===null){ba===null&&(ba=io);break}D=u(w,Qo,J[Ka],D),a&&ba&&Qo.alternate===null&&o(w,ba),$=r(Qo,$,Ka),fa===null?Qa=Qo:fa.sibling=Qo,fa=Qo,ba=io}if(Ka===J.length)return p(w,ba),Oa&&jt(w,Ka),Qa;if(ba===null){for(;Ka<J.length;Ka++)ba=X(w,J[Ka],y),ba!==null&&(D=u(w,ba,J[Ka],D),$=r(ba,$,Ka),fa===null?Qa=ba:fa.sibling=ba,fa=ba);return Oa&&jt(w,Ka),Qa}for(ba=t(ba);Ka<J.length;Ka++)io=_(ba,w,Ka,J[Ka],y),io!==null&&(D=u(w,io,J[Ka],D),a&&io.alternate!==null&&ba.delete(io.key===null?Ka:io.key),$=r(io,$,Ka),fa===null?Qa=io:fa.sibling=io,fa=io);return a&&ba.forEach(function(Xm){return o(w,Xm)}),Oa&&jt(w,Ka),Qa}function to(w,$,J,y){if(J==null)throw Error("An iterable object provided no iterator.");for(var D=null,Qa=null,fa=$,ba=$=0,Ka=null,io=null,Qo=J.next();fa!==null&&!Qo.done;ba++,Qo=J.next()){fa.index>ba?(Ka=fa,fa=null):Ka=fa.sibling;var Xm=z(w,fa,Qo.value,y);if(Xm===null){fa===null&&(fa=Ka);break}io=u(w,Xm,Qo.value,io),a&&fa&&Xm.alternate===null&&o(w,fa),$=r(Xm,$,ba),Qa===null?D=Xm:Qa.sibling=Xm,Qa=Xm,fa=Ka}if(Qo.done)return p(w,fa),Oa&&jt(w,ba),D;if(fa===null){for(;!Qo.done;ba++,Qo=J.next())fa=X(w,Qo.value,y),fa!==null&&(io=u(w,fa,Qo.value,io),$=r(fa,$,ba),Qa===null?D=fa:Qa.sibling=fa,Qa=fa);return Oa&&jt(w,ba),D}for(fa=t(fa);!Qo.done;ba++,Qo=J.next())Ka=_(fa,w,ba,Qo.value,y),Ka!==null&&(io=u(w,Ka,Qo.value,io),a&&Ka.alternate!==null&&fa.delete(Ka.key===null?ba:Ka.key),$=r(Ka,$,ba),Qa===null?D=Ka:Qa.sibling=Ka,Qa=Ka);return a&&fa.forEach(function(DY){return o(w,DY)}),Oa&&jt(w,ba),D}function Ma(w,$,J,y){if(typeof J==="object"&&J!==null&&J.type===Uv&&J.key===null&&(h5(J,null,w),J=J.props.children),typeof J==="object"&&J!==null){switch(J.$$typeof){case nt:var D=Io(J._debugInfo);a:{for(var Qa=J.key;$!==null;){if($.key===Qa){if(Qa=J.type,Qa===Uv){if($.tag===7){p(w,$.sibling),y=m($,J.props.children),y.return=w,y._debugOwner=J._owner,y._debugInfo=Wa,h5(J,y,w),w=y;break a}}else if($.elementType===Qa||Ll($,J)||typeof Qa==="object"&&Qa!==null&&Qa.$$typeof===Up&&Km(Qa)===$.type){p(w,$.sibling),y=m($,J.props),O0(y,J),y.return=w,y._debugOwner=J._owner,y._debugInfo=Wa,w=y;break a}p(w,$);break}else o(w,$);$=$.sibling}J.type===Uv?(y=Xr(J.props.children,w.mode,y,J.key),y.return=w,y._debugOwner=w,y._debugTask=w._debugTask,y._debugInfo=Wa,h5(J,y,w),w=y):(y=Q5(J,w.mode,y),O0(y,J),y.return=w,y._debugInfo=Wa,w=y)}return w=v(w),Wa=D,w;case Wv:a:{D=J;for(J=D.key;$!==null;){if($.key===J)if($.tag===4&&$.stateNode.containerInfo===D.containerInfo&&$.stateNode.implementation===D.implementation){p(w,$.sibling),y=m($,D.children||[]),y.return=w,w=y;break a}else{p(w,$);break}else o(w,$);$=$.sibling}y=f1(D,w.mode,y),y.return=w,w=y}return v(w);case Up:return D=Io(J._debugInfo),J=Km(J),w=Ma(w,$,J,y),Wa=D,w}if(Lo(J))return D=Io(J._debugInfo),w=e(w,$,J,y),Wa=D,w;if(ga(J)){if(D=Io(J._debugInfo),Qa=ga(J),typeof Qa!=="function")throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");var fa=Qa.call(J);if(fa===J){if(w.tag!==0||Object.prototype.toString.call(w.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(fa)!=="[object Generator]")c8||console.error("Using Iterators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. You can also use an Iterable that can iterate multiple times over the same items."),c8=!0}else J.entries!==Qa||I4||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),I4=!0);return w=to(w,$,fa,y),Wa=D,w}if(typeof J.then==="function")return D=Io(J._debugInfo),w=Ma(w,$,y5(J),y),Wa=D,w;if(J.$$typeof===Lt)return Ma(w,$,K5(w,J),y);k5(w,J)}if(typeof J==="string"&&J!==""||typeof J==="number"||typeof J==="bigint")return D=""+J,$!==null&&$.tag===6?(p(w,$.sibling),y=m($,D),y.return=w,w=y):(p(w,$),y=l1(D,w.mode,y),y.return=w,y._debugOwner=w,y._debugTask=w._debugTask,y._debugInfo=Wa,w=y),v(w);return typeof J==="function"&&n5(w,J),typeof J==="symbol"&&L5(w,J),p(w,$)}return function(w,$,J,y){var D=Wa;Wa=null;try{ki=0;var Qa=Ma(w,$,J,y);return Vv=null,Qa}catch(io){if(io===xv||io===I2)throw io;var fa=O(29,io,null,w.mode);fa.lanes=y,fa.return=w;var ba=fa._debugInfo=Wa;if(fa._debugOwner=w._debugOwner,fa._debugTask=w._debugTask,ba!=null){for(var Ka=ba.length-1;0<=Ka;Ka--)if(typeof ba[Ka].stack==="string"){fa._debugOwner=ba[Ka],fa._debugTask=ba[Ka].debugTask;break}}return fa}finally{Wa=D}}}function mf(a,o){var p=Lo(a);return a=!p&&typeof ga(a)==="function",p||a?(p=p?"array":"iterable",console.error("A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>",p,o,p),!1):!0}function B1(a){a.updateQueue={baseState:a.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function d1(a,o){a=a.updateQueue,o.updateQueue===a&&(o.updateQueue={baseState:a.baseState,firstBaseUpdate:a.firstBaseUpdate,lastBaseUpdate:a.lastBaseUpdate,shared:a.shared,callbacks:null})}function Hm(a){return{lane:a,tag:$8,payload:null,callback:null,next:null}}function Wm(a,o,p){var t=a.updateQueue;if(t===null)return null;if(t=t.shared,T4===t&&!X8){var m=U(a);console.error(`An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback.
85
-
86
- Please update the following component: %s`,m),X8=!0}if((Pa&Oo)!==Co)return m=t.pending,m===null?o.next=o:(o.next=m.next,m.next=o),t.pending=o,o=q5(a),nl(a,null,p),o;return G5(a,t,o,p),q5(a)}function R0(a,o,p){if(o=o.updateQueue,o!==null&&(o=o.shared,(p&4194048)!==0)){var t=o.lanes;t&=a.pendingLanes,p|=t,o.lanes=p,F3(a,p)}}function N5(a,o){var{updateQueue:p,alternate:t}=a;if(t!==null&&(t=t.updateQueue,p===t)){var m=null,r=null;if(p=p.firstBaseUpdate,p!==null){do{var v={lane:p.lane,tag:p.tag,payload:p.payload,callback:null,next:null};r===null?m=r=v:r=r.next=v,p=p.next}while(p!==null);r===null?m=r=o:r=r.next=o}else m=r=o;p={baseState:t.baseState,firstBaseUpdate:m,lastBaseUpdate:r,shared:t.shared,callbacks:t.callbacks},a.updateQueue=p;return}a=p.lastBaseUpdate,a===null?p.firstBaseUpdate=o:a.next=o,p.lastBaseUpdate=o}function M0(){if(S4){var a=uv;if(a!==null)throw a}}function g0(a,o,p,t){S4=!1;var m=a.updateQueue;Vm=!1,T4=m.shared;var{firstBaseUpdate:r,lastBaseUpdate:v}=m,i=m.shared.pending;if(i!==null){m.shared.pending=null;var b=i,l=b.next;b.next=null,v===null?r=l:v.next=l,v=b;var Y=a.alternate;Y!==null&&(Y=Y.updateQueue,i=Y.lastBaseUpdate,i!==v&&(i===null?Y.firstBaseUpdate=l:i.next=l,Y.lastBaseUpdate=b))}if(r!==null){var X=m.baseState;v=0,Y=l=b=null,i=r;do{var z=i.lane&-536870913,_=z!==i.lane;if(_?(Ua&z)===z:(t&z)===z){z!==0&&z===Nr&&(S4=!0),Y!==null&&(Y=Y.next={lane:0,tag:i.tag,payload:i.payload,callback:null,next:null});a:{z=a;var u=i,e=o,to=p;switch(u.tag){case J8:if(u=u.payload,typeof u==="function"){Tv=!0;var Ma=u.call(to,X,e);if(z.mode&Eo){Ea(!0);try{u.call(to,X,e)}finally{Ea(!1)}}Tv=!1,X=Ma;break a}X=u;break a;case A4:z.flags=z.flags&-65537|128;case $8:if(Ma=u.payload,typeof Ma==="function"){if(Tv=!0,u=Ma.call(to,X,e),z.mode&Eo){Ea(!0);try{Ma.call(to,X,e)}finally{Ea(!1)}}Tv=!1}else u=Ma;if(u===null||u===void 0)break a;X=ka({},X,u);break a;case Y8:Vm=!0}}z=i.callback,z!==null&&(a.flags|=64,_&&(a.flags|=8192),_=m.callbacks,_===null?m.callbacks=[z]:_.push(z))}else _={lane:z,tag:i.tag,payload:i.payload,callback:i.callback,next:null},Y===null?(l=Y=_,b=X):Y=Y.next=_,v|=z;if(i=i.next,i===null)if(i=m.shared.pending,i===null)break;else _=i,i=_.next,_.next=null,m.lastBaseUpdate=_,m.shared.pending=null}while(1);Y===null&&(b=X),m.baseState=b,m.firstBaseUpdate=l,m.lastBaseUpdate=Y,r===null&&(m.shared.lanes=0),Em|=v,a.lanes=v,a.memoizedState=X}T4=null}function rf(a,o){if(typeof a!=="function")throw Error("Invalid argument passed as callback. Expected a function. Instead received: "+a);a.call(o)}function Tz(a,o){var p=a.shared.hiddenCallbacks;if(p!==null)for(a.shared.hiddenCallbacks=null,a=0;a<p.length;a++)rf(p[a],o)}function vf(a,o){var p=a.callbacks;if(p!==null)for(a.callbacks=null,a=0;a<p.length;a++)rf(p[a],o)}function bf(a,o){var p=At;k(T2,p,a),k(jv,o,a),At=p|o.baseLanes}function K1(a){k(T2,At,a),k(jv,jv.current,a)}function H1(a){At=T2.current,ia(jv,a),ia(T2,a)}function Um(a){var o=a.alternate;k(qo,qo.current&Dv,a),k(np,a,a),Vp===null&&(o===null||jv.current!==null?Vp=a:o.memoizedState!==null&&(Vp=a))}function W1(a){k(qo,qo.current,a),k(np,a,a),Vp===null&&(Vp=a)}function cf(a){a.tag===22?(k(qo,qo.current,a),k(np,a,a),Vp===null&&(Vp=a)):hm(a)}function hm(a){k(qo,qo.current,a),k(np,np.current,a)}function Kp(a){ia(np,a),Vp===a&&(Vp=null),ia(qo,a)}function O5(a){for(var o=a;o!==null;){if(o.tag===13){var p=o.memoizedState;if(p!==null&&(p=p.dehydrated,p===null||Pc(p)||Cc(p)))return o}else if(o.tag===19&&(o.memoizedProps.revealOrder==="forwards"||o.memoizedProps.revealOrder==="backwards"||o.memoizedProps.revealOrder==="unstable_legacy-backwards"||o.memoizedProps.revealOrder==="together")){if((o.flags&128)!==0)return o}else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===a)break;for(;o.sibling===null;){if(o.return===null||o.return===a)return null;o=o.return}o.sibling.return=o.return,o=o.sibling}return null}function ya(){var a=d;Dp===null?Dp=[a]:Dp.push(a)}function M(){var a=d;if(Dp!==null&&(wm++,Dp[wm]!==a)){var o=U(qa);if(!Z8.has(o)&&(Z8.add(o),Dp!==null)){for(var p="",t=0;t<=wm;t++){var m=Dp[t],r=t===wm?a:m;for(m=t+1+". "+m;30>m.length;)m+=" ";m+=r+`
87
- `,p+=m}console.error(`React has detected a change in the order of Hooks called by %s. This will lead to bugs and errors if not fixed. For more information, read the Rules of Hooks: https://react.dev/link/rules-of-hooks
88
-
89
- Previous render Next render
90
- ------------------------------------------------------
91
- %s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
92
- `,o,p)}}}function $v(a){a===void 0||a===null||Lo(a)||console.error("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",d,typeof a)}function R5(){var a=U(qa);q8.has(a)||(q8.add(a),console.error("ReactDOM.useFormState has been renamed to React.useActionState. Please update %s to use React.useActionState.",a))}function Zo(){throw Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
93
- 1. You might have mismatching versions of React and the renderer (such as React DOM)
94
- 2. You might be breaking the Rules of Hooks
95
- 3. You might have more than one copy of React in the same app
96
- See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function U1(a,o){if(Ni)return!1;if(o===null)return console.error("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",d),!1;a.length!==o.length&&console.error(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
97
-
98
- Previous: %s
99
- Incoming: %s`,d,"["+o.join(", ")+"]","["+a.join(", ")+"]");for(var p=0;p<o.length&&p<a.length;p++)if(!mp(a[p],o[p]))return!1;return!0}function h1(a,o,p,t,m,r){if(lm=r,qa=o,Dp=a!==null?a._debugHookTypes:null,wm=-1,Ni=a!==null&&a.type!==o.type,Object.prototype.toString.call(p)==="[object AsyncFunction]"||Object.prototype.toString.call(p)==="[object AsyncGeneratorFunction]")r=U(qa),u4.has(r)||(u4.add(r),console.error("%s is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.",r===null?"An unknown Component":"<"+r+">"));o.memoizedState=null,o.updateQueue=null,o.lanes=0,K.H=a!==null&&a.memoizedState!==null?V4:Dp!==null?Q8:x4,Fr=r=(o.mode&Eo)!==Xa;var v=F4(p,t,m);if(Fr=!1,sv&&(v=y1(o,p,t,m)),r){Ea(!0);try{v=y1(o,p,t,m)}finally{Ea(!1)}}return lf(a,o),v}function lf(a,o){o._debugHookTypes=Dp,o.dependencies===null?fm!==null&&(o.dependencies={lanes:0,firstContext:null,_debugThenableState:fm}):o.dependencies._debugThenableState=fm,K.H=Oi;var p=ea!==null&&ea.next!==null;if(lm=0,Dp=d=Ho=ea=qa=null,wm=-1,a!==null&&(a.flags&65011712)!==(o.flags&65011712)&&console.error("Internal React error: Expected static flag was missing. Please notify the React team."),u2=!1,Li=0,fm=null,p)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");a===null||Wo||(a=a.dependencies,a!==null&&d5(a)&&(Wo=!0)),yi?(yi=!1,a=!0):a=!1,a&&(o=U(o)||"Unknown",G8.has(o)||u4.has(o)||(G8.add(o),console.error("`use` was called from inside a try/catch block. This is not allowed and can lead to unexpected behavior. To handle errors triggered by `use`, wrap your component in a error boundary.")))}function y1(a,o,p,t){qa=a;var m=0;do{if(sv&&(fm=null),Li=0,sv=!1,m>=UY)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(m+=1,Ni=!1,Ho=ea=null,a.updateQueue!=null){var r=a.updateQueue;r.lastEffect=null,r.events=null,r.stores=null,r.memoCache!=null&&(r.memoCache.index=0)}wm=-1,K.H=_8,r=F4(o,p,t)}while(sv);return r}function Sz(){var a=K.H,o=a.useState()[0];return o=typeof o.then==="function"?F0(o):o,a=a.useState()[0],(ea!==null?ea.memoizedState:null)!==a&&(qa.flags|=1024),o}function k1(){var a=x2!==0;return x2=0,a}function n1(a,o,p){o.updateQueue=a.updateQueue,o.flags=(o.mode&bt)!==Xa?o.flags&-402655237:o.flags&-2053,a.lanes&=~p}function L1(a){if(u2){for(a=a.memoizedState;a!==null;){var o=a.queue;o!==null&&(o.pending=null),a=a.next}u2=!1}lm=0,Dp=Ho=ea=qa=null,wm=-1,d=null,sv=!1,Li=x2=0,fm=null}function ap(){var a={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ho===null?qa.memoizedState=Ho=a:Ho=Ho.next=a,Ho}function Va(){if(ea===null){var a=qa.alternate;a=a!==null?a.memoizedState:null}else a=ea.next;var o=Ho===null?qa.memoizedState:Ho.next;if(o!==null)Ho=o,ea=a;else{if(a===null){if(qa.alternate===null)throw Error("Update hook called on initial render. This is likely a bug in React. Please file an issue.");throw Error("Rendered more hooks than during the previous render.")}ea=a,a={memoizedState:ea.memoizedState,baseState:ea.baseState,baseQueue:ea.baseQueue,queue:ea.queue,next:null},Ho===null?qa.memoizedState=Ho=a:Ho=Ho.next=a}return Ho}function M5(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function F0(a){var o=Li;return Li+=1,fm===null&&(fm=jl()),a=El(fm,a,o),o=qa,(Ho===null?o.memoizedState:Ho.next)===null&&(o=o.alternate,K.H=o!==null&&o.memoizedState!==null?V4:x4),a}function ym(a){if(a!==null&&typeof a==="object"){if(typeof a.then==="function")return F0(a);if(a.$$typeof===Lt)return lo(a)}throw Error("An unsupported type was passed to use(): "+String(a))}function _r(a){var o=null,p=qa.updateQueue;if(p!==null&&(o=p.memoCache),o==null){var t=qa.alternate;t!==null&&(t=t.updateQueue,t!==null&&(t=t.memoCache,t!=null&&(o={data:t.data.map(function(m){return m.slice()}),index:0})))}if(o==null&&(o={data:[],index:0}),p===null&&(p=M5(),qa.updateQueue=p),p.memoCache=o,p=o.data[o.index],p===void 0||Ni)for(p=o.data[o.index]=Array(a),t=0;t<a;t++)p[t]=vJ;else p.length!==a&&console.error("Expected a constant size argument for each invocation of useMemoCache. The previous cache was allocated with size %s but size %s was requested.",p.length,a);return o.index++,p}function mt(a,o){return typeof o==="function"?o(a):o}function N1(a,o,p){var t=ap();if(p!==void 0){var m=p(o);if(Fr){Ea(!0);try{p(o)}finally{Ea(!1)}}}else m=o;return t.memoizedState=t.baseState=m,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:a,lastRenderedState:m},t.queue=a,a=a.dispatch=Dz.bind(null,qa,a),[t.memoizedState,a]}function Jv(a){var o=Va();return O1(o,ea,a)}function O1(a,o,p){var t=a.queue;if(t===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");t.lastRenderedReducer=p;var m=a.baseQueue,r=t.pending;if(r!==null){if(m!==null){var v=m.next;m.next=r.next,r.next=v}o.baseQueue!==m&&console.error("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),o.baseQueue=m=r,t.pending=null}if(r=a.baseState,m===null)a.memoizedState=r;else{o=m.next;var i=v=null,b=null,l=o,Y=!1;do{var X=l.lane&-536870913;if(X!==l.lane?(Ua&X)===X:(lm&X)===X){var z=l.revertLane;if(z===0)b!==null&&(b=b.next={lane:0,revertLane:0,gesture:null,action:l.action,hasEagerState:l.hasEagerState,eagerState:l.eagerState,next:null}),X===Nr&&(Y=!0);else if((lm&z)===z){l=l.next,z===Nr&&(Y=!0);continue}else X={lane:0,revertLane:l.revertLane,gesture:null,action:l.action,hasEagerState:l.hasEagerState,eagerState:l.eagerState,next:null},b===null?(i=b=X,v=r):b=b.next=X,qa.lanes|=z,Em|=z;X=l.action,Fr&&p(r,X),r=l.hasEagerState?l.eagerState:p(r,X)}else z={lane:X,revertLane:l.revertLane,gesture:l.gesture,action:l.action,hasEagerState:l.hasEagerState,eagerState:l.eagerState,next:null},b===null?(i=b=z,v=r):b=b.next=z,qa.lanes|=X,Em|=X;l=l.next}while(l!==null&&l!==o);if(b===null?v=r:b.next=i,!mp(r,a.memoizedState)&&(Wo=!0,Y&&(p=uv,p!==null)))throw p;a.memoizedState=r,a.baseState=v,a.baseQueue=b,t.lastRenderedState=r}return m===null&&(t.lanes=0),[a.memoizedState,t.dispatch]}function P0(a){var o=Va(),p=o.queue;if(p===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");p.lastRenderedReducer=a;var{dispatch:t,pending:m}=p,r=o.memoizedState;if(m!==null){p.pending=null;var v=m=m.next;do r=a(r,v.action),v=v.next;while(v!==m);mp(r,o.memoizedState)||(Wo=!0),o.memoizedState=r,o.baseQueue===null&&(o.baseState=r),p.lastRenderedState=r}return[r,t]}function R1(a,o,p){var t=qa,m=ap();if(Oa){if(p===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");var r=p();Ev||r===p()||(console.error("The result of getServerSnapshot should be cached to avoid an infinite loop"),Ev=!0)}else{if(r=o(),Ev||(p=o(),mp(r,p)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),Ev=!0)),ao===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");(Ua&127)!==0||ff(t,o,r)}return m.memoizedState=r,p={value:r,getSnapshot:o},m.queue=p,C5(zf.bind(null,t,p,a),[a]),t.flags|=2048,Xv(jp|ip,{destroy:void 0},wf.bind(null,t,p,r,o),null),r}function g5(a,o,p){var t=qa,m=Va(),r=Oa;if(r){if(p===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");p=p()}else if(p=o(),!Ev){var v=o();mp(p,v)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),Ev=!0)}if(v=!mp((ea||m).memoizedState,p))m.memoizedState=p,Wo=!0;m=m.queue;var i=zf.bind(null,t,m,a);if(wp(2048,ip,i,[a]),m.getSnapshot!==o||v||Ho!==null&&Ho.memoizedState.tag&jp){if(t.flags|=2048,Xv(jp|ip,{destroy:void 0},wf.bind(null,t,m,p,o),null),ao===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");r||(lm&127)!==0||ff(t,o,p)}return p}function ff(a,o,p){a.flags|=16384,a={getSnapshot:o,value:p},o=qa.updateQueue,o===null?(o=M5(),qa.updateQueue=o,o.stores=[a]):(p=o.stores,p===null?o.stores=[a]:p.push(a))}function wf(a,o,p,t){o.value=p,o.getSnapshot=t,$f(o)&&Jf(a)}function zf(a,o,p){return p(function(){$f(o)&&(Gt(2,"updateSyncExternalStore()",a),Jf(a))})}function $f(a){var o=a.getSnapshot;a=a.value;try{var p=o();return!mp(a,p)}catch(t){return!0}}function Jf(a){var o=jo(a,2);o!==null&&Yo(o,a,2)}function M1(a){var o=ap();if(typeof a==="function"){var p=a;if(a=p(),Fr){Ea(!0);try{p()}finally{Ea(!1)}}}return o.memoizedState=o.baseState=a,o.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:mt,lastRenderedState:a},o}function g1(a){a=M1(a);var o=a.queue,p=Nf.bind(null,qa,o);return o.dispatch=p,[a.memoizedState,p]}function F1(a){var o=ap();o.memoizedState=o.baseState=a;var p={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return o.queue=p,o=e1.bind(null,qa,!0,p),p.dispatch=o,[a,o]}function Yf(a,o){var p=Va();return Xf(p,ea,a,o)}function Xf(a,o,p,t){return a.baseState=p,O1(a,ea,typeof t==="function"?t:mt)}function Zf(a,o){var p=Va();if(ea!==null)return Xf(p,ea,a,o);return p.baseState=a,[a,p.queue.dispatch]}function uz(a,o,p,t,m){if(x5(a))throw Error("Cannot update form state while rendering.");if(a=o.action,a!==null){var r={payload:m,action:a,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(v){r.listeners.push(v)}};K.T!==null?p(!0):r.isTransition=!1,t(r),p=o.pending,p===null?(r.next=o.pending=r,Gf(o,r)):(r.next=p.next,o.pending=p.next=r)}}function Gf(a,o){var{action:p,payload:t}=o,m=a.state;if(o.isTransition){var r=K.T,v={};v._updatedFibers=new Set,K.T=v;try{var i=p(m,t),b=K.S;b!==null&&b(v,i),qf(a,o,i)}catch(l){P1(a,o,l)}finally{r!==null&&v.types!==null&&(r.types!==null&&r.types!==v.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),r.types=v.types),K.T=r,r===null&&v._updatedFibers&&(a=v._updatedFibers.size,v._updatedFibers.clear(),10<a&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}else try{v=p(m,t),qf(a,o,v)}catch(l){P1(a,o,l)}}function qf(a,o,p){p!==null&&typeof p==="object"&&typeof p.then==="function"?(K.asyncTransitions++,p.then(u5,u5),p.then(function(t){Qf(a,o,t)},function(t){return P1(a,o,t)}),o.isTransition||console.error("An async function with useActionState was called outside of a transition. This is likely not what you intended (for example, isPending will not update correctly). Either call the returned function inside startTransition, or pass it to an `action` or `formAction` prop.")):Qf(a,o,p)}function Qf(a,o,p){o.status="fulfilled",o.value=p,_f(o),a.state=p,o=a.pending,o!==null&&(p=o.next,p===o?a.pending=null:(p=p.next,o.next=p,Gf(a,p)))}function P1(a,o,p){var t=a.pending;if(a.pending=null,t!==null){t=t.next;do o.status="rejected",o.reason=p,_f(o),o=o.next;while(o!==t)}a.action=null}function _f(a){a=a.listeners;for(var o=0;o<a.length;o++)(0,a[o])()}function Bf(a,o){return o}function Yv(a,o){if(Oa){var p=ao.formState;if(p!==null){a:{var t=qa;if(Oa){if(vo){o:{var m=vo;for(var r=up;m.nodeType!==8;){if(!r){m=null;break o}if(m=Wp(m.nextSibling),m===null){m=null;break o}}r=m.data,m=r===X3||r===i9?m:null}if(m){vo=Wp(m.nextSibling),t=m.data===X3;break a}}Bm(t)}t=!1}t&&(o=p[0])}}return p=ap(),p.memoizedState=p.baseState=o,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Bf,lastRenderedState:o},p.queue=t,p=Nf.bind(null,qa,t),t.dispatch=p,t=M1(!1),r=e1.bind(null,qa,!1,t.queue),t=ap(),m={state:o,dispatch:null,action:a,pending:null},t.queue=m,p=uz.bind(null,qa,m,r,p),m.dispatch=p,t.memoizedState=a,[o,p,!1]}function F5(a){var o=Va();return df(o,ea,a)}function df(a,o,p){if(o=O1(a,o,Bf)[0],a=Jv(mt)[0],typeof o==="object"&&o!==null&&typeof o.then==="function")try{var t=F0(o)}catch(v){if(v===xv)throw I2;throw v}else t=o;o=Va();var m=o.queue,r=m.dispatch;return p!==o.memoizedState&&(qa.flags|=2048,Xv(jp|ip,{destroy:void 0},xz.bind(null,m,p),null)),[t,r,a]}function xz(a,o){a.action=o}function P5(a){var o=Va(),p=ea;if(p!==null)return df(o,p,a);Va(),o=o.memoizedState,p=Va();var t=p.queue.dispatch;return p.memoizedState=a,[o,t,!1]}function Xv(a,o,p,t){return a={tag:a,create:p,deps:t,inst:o,next:null},o=qa.updateQueue,o===null&&(o=M5(),qa.updateQueue=o),p=o.lastEffect,p===null?o.lastEffect=a.next=a:(t=p.next,p.next=a,a.next=t,o.lastEffect=a),a}function C1(a){var o=ap();return a={current:a},o.memoizedState=a}function Br(a,o,p,t){var m=ap();qa.flags|=a,m.memoizedState=Xv(jp|o,{destroy:void 0},p,t===void 0?null:t)}function wp(a,o,p,t){var m=Va();t=t===void 0?null:t;var r=m.memoizedState.inst;ea!==null&&t!==null&&U1(t,ea.memoizedState.deps)?m.memoizedState=Xv(o,r,p,t):(qa.flags|=a,m.memoizedState=Xv(jp|o,r,p,t))}function C5(a,o){(qa.mode&bt)!==Xa?Br(276826112,ip,a,o):Br(8390656,ip,a,o)}function Vz(a){qa.flags|=4;var o=qa.updateQueue;if(o===null)o=M5(),qa.updateQueue=o,o.events=[a];else{var p=o.events;p===null?o.events=[a]:p.push(a)}}function I1(a){var o=ap(),p={impl:a};return o.memoizedState=p,function(){if((Pa&Oo)!==Co)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return p.impl.apply(void 0,arguments)}}function I5(a){var o=Va().memoizedState;return Vz({ref:o,nextImpl:a}),function(){if((Pa&Oo)!==Co)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return o.impl.apply(void 0,arguments)}}function A1(a,o){var p=4194308;return(qa.mode&bt)!==Xa&&(p|=134217728),Br(p,Lp,a,o)}function Kf(a,o){if(typeof o==="function"){a=a();var p=o(a);return function(){typeof p==="function"?p():o(null)}}if(o!==null&&o!==void 0)return o.hasOwnProperty("current")||console.error("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.","an object with keys {"+Object.keys(o).join(", ")+"}"),a=a(),o.current=a,function(){o.current=null}}function T1(a,o,p){typeof o!=="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",o!==null?typeof o:"null"),p=p!==null&&p!==void 0?p.concat([a]):null;var t=4194308;(qa.mode&bt)!==Xa&&(t|=134217728),Br(t,Lp,Kf.bind(null,o,a),p)}function A5(a,o,p){typeof o!=="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",o!==null?typeof o:"null"),p=p!==null&&p!==void 0?p.concat([a]):null,wp(4,Lp,Kf.bind(null,o,a),p)}function S1(a,o){return ap().memoizedState=[a,o===void 0?null:o],a}function T5(a,o){var p=Va();o=o===void 0?null:o;var t=p.memoizedState;if(o!==null&&U1(o,t[1]))return t[0];return p.memoizedState=[a,o],a}function u1(a,o){var p=ap();o=o===void 0?null:o;var t=a();if(Fr){Ea(!0);try{a()}finally{Ea(!1)}}return p.memoizedState=[t,o],t}function S5(a,o){var p=Va();o=o===void 0?null:o;var t=p.memoizedState;if(o!==null&&U1(o,t[1]))return t[0];if(t=a(),Fr){Ea(!0);try{a()}finally{Ea(!1)}}return p.memoizedState=[t,o],t}function x1(a,o){var p=ap();return V1(p,a,o)}function Hf(a,o){var p=Va();return Uf(p,ea.memoizedState,a,o)}function Wf(a,o){var p=Va();return ea===null?V1(p,a,o):Uf(p,ea.memoizedState,a,o)}function V1(a,o,p){if(p===void 0||(lm&1073741824)!==0&&(Ua&261930)===0)return a.memoizedState=o;return a.memoizedState=p,a=h6(),qa.lanes|=a,Em|=a,p}function Uf(a,o,p,t){if(mp(p,o))return p;if(jv.current!==null)return a=V1(a,p,t),mp(a,o)||(Wo=!0),a;if((lm&42)===0||(lm&1073741824)!==0&&(Ua&261930)===0)return Wo=!0,a.memoizedState=p;return a=h6(),qa.lanes|=a,Em|=a,o}function u5(){K.asyncTransitions--}function hf(a,o,p,t,m){var r=ua.p;ua.p=r!==0&&r<it?r:it;var v=K.T,i={};i._updatedFibers=new Set,K.T=i,e1(a,!1,o,p);try{var b=m(),l=K.S;if(l!==null&&l(i,b),b!==null&&typeof b==="object"&&typeof b.then==="function"){K.asyncTransitions++,b.then(u5,u5);var Y=Az(b,t);C0(a,o,Y,Hp(a))}else C0(a,o,t,Hp(a))}catch(X){C0(a,o,{then:function(){},status:"rejected",reason:X},Hp(a))}finally{ua.p=r,v!==null&&i.types!==null&&(v.types!==null&&v.types!==i.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),v.types=i.types),K.T=v,v===null&&i._updatedFibers&&(a=i._updatedFibers.size,i._updatedFibers.clear(),10<a&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}function j1(a,o,p,t){if(a.tag!==5)throw Error("Expected the form instance to be a HostComponent. This is a bug in React.");var m=yf(a).queue;Cz(a),hf(a,m,o,Dr,p===null?C:function(){return kf(a),p(t)})}function yf(a){var o=a.memoizedState;if(o!==null)return o;o={memoizedState:Dr,baseState:Dr,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:mt,lastRenderedState:Dr},next:null};var p={};return o.next={memoizedState:p,baseState:p,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:mt,lastRenderedState:p},next:null},a.memoizedState=o,a=a.alternate,a!==null&&(a.memoizedState=o),o}function kf(a){K.T===null&&console.error("requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition.");var o=yf(a);o.next===null&&(o=a.alternate.memoizedState),C0(a,o.next.queue,{},Hp(a))}function D1(){var a=M1(!1);return a=hf.bind(null,qa,a.queue,!0,!1),ap().memoizedState=a,[!1,a]}function nf(){var a=Jv(mt)[0],o=Va().memoizedState;return[typeof a==="boolean"?a:F0(a),o]}function Lf(){var a=P0(mt)[0],o=Va().memoizedState;return[typeof a==="boolean"?a:F0(a),o]}function dr(){return lo(Di)}function E1(){var a=ap(),o=ao.identifierPrefix;if(Oa){var p=rm,t=mm;p=(t&~(1<<32-op(t)-1)).toString(32)+p,o="_"+o+"R_"+p,p=x2++,0<p&&(o+="H"+p.toString(32)),o+="_"}else p=WY++,o="_"+o+"r_"+p.toString(32)+"_";return a.memoizedState=o}function s1(){return ap().memoizedState=jz.bind(null,qa)}function jz(a,o){for(var p=a.return;p!==null;){switch(p.tag){case 24:case 3:var t=Hp(p),m=Hm(t),r=Wm(p,m,t);r!==null&&(Gt(t,"refresh()",a),Yo(r,p,t),R0(r,p,t)),a=Z1(),o!==null&&o!==void 0&&r!==null&&console.error("The seed argument is not enabled outside experimental channels."),m.payload={cache:a};return}p=p.return}}function Dz(a,o,p){var t=arguments;typeof t[3]==="function"&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."),t=Hp(a);var m={lane:t,revertLane:0,gesture:null,action:p,hasEagerState:!1,eagerState:null,next:null};x5(a)?Of(o,m):(m=v1(a,o,m,t),m!==null&&(Gt(t,"dispatch()",a),Yo(m,a,t),Rf(m,o,t)))}function Nf(a,o,p){var t=arguments;typeof t[3]==="function"&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."),t=Hp(a),C0(a,o,p,t)&&Gt(t,"setState()",a)}function C0(a,o,p,t){var m={lane:t,revertLane:0,gesture:null,action:p,hasEagerState:!1,eagerState:null,next:null};if(x5(a))Of(o,m);else{var r=a.alternate;if(a.lanes===0&&(r===null||r.lanes===0)&&(r=o.lastRenderedReducer,r!==null)){var v=K.H;K.H=lt;try{var i=o.lastRenderedState,b=r(i,p);if(m.hasEagerState=!0,m.eagerState=b,mp(b,i))return G5(a,o,m,0),ao===null&&Z5(),!1}catch(l){}finally{K.H=v}}if(p=v1(a,o,m,t),p!==null)return Yo(p,a,t),Rf(p,o,t),!0}return!1}function e1(a,o,p,t){if(K.T===null&&Nr===0&&console.error("An optimistic state update occurred outside a transition or action. To fix, move the update to an action, or wrap with startTransition."),t={lane:2,revertLane:hc(),gesture:null,action:t,hasEagerState:!1,eagerState:null,next:null},x5(a)){if(o)throw Error("Cannot update optimistic state while rendering.");console.error("Cannot call startTransition while rendering.")}else o=v1(a,p,t,2),o!==null&&(Gt(2,"setOptimistic()",a),Yo(o,a,2))}function x5(a){var o=a.alternate;return a===qa||o!==null&&o===qa}function Of(a,o){sv=u2=!0;var p=a.pending;p===null?o.next=o:(o.next=p.next,p.next=o),a.pending=o}function Rf(a,o,p){if((p&4194048)!==0){var t=o.lanes;t&=a.pendingLanes,p|=t,o.lanes=p,F3(a,p)}}function ac(a){if(a!==null&&typeof a!=="function"){var o=String(a);L8.has(o)||(L8.add(o),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",a))}}function oc(a,o,p,t){var m=a.memoizedState,r=p(t,m);if(a.mode&Eo){Ea(!0);try{r=p(t,m)}finally{Ea(!1)}}r===void 0&&(o=V(o)||"Component",h8.has(o)||(h8.add(o),console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",o))),m=r===null||r===void 0?m:ka({},m,r),a.memoizedState=m,a.lanes===0&&(a.updateQueue.baseState=m)}function Mf(a,o,p,t,m,r,v){var i=a.stateNode;if(typeof i.shouldComponentUpdate==="function"){if(p=i.shouldComponentUpdate(t,r,v),a.mode&Eo){Ea(!0);try{p=i.shouldComponentUpdate(t,r,v)}finally{Ea(!1)}}return p===void 0&&console.error("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",V(o)||"Component"),p}return o.prototype&&o.prototype.isPureReactComponent?!h0(p,t)||!h0(m,r):!0}function gf(a,o,p,t){var m=o.state;typeof o.componentWillReceiveProps==="function"&&o.componentWillReceiveProps(p,t),typeof o.UNSAFE_componentWillReceiveProps==="function"&&o.UNSAFE_componentWillReceiveProps(p,t),o.state!==m&&(a=U(a)||"Component",d8.has(a)||(d8.add(a),console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",a)),j4.enqueueReplaceState(o,o.state,null))}function Kr(a,o){var p=o;if("ref"in o){p={};for(var t in o)t!=="ref"&&(p[t]=o[t])}if(a=a.defaultProps){p===o&&(p=ka({},p));for(var m in a)p[m]===void 0&&(p[m]=a[m])}return p}function Ff(a){H4(a),console.warn(`%s
100
-
101
- %s
102
- `,ev?"An error occurred in the <"+ev+"> component.":"An error occurred in one of your React components.",`Consider adding an error boundary to your tree to customize error handling behavior.
103
- Visit https://react.dev/link/error-boundaries to learn more about error boundaries.`)}function Pf(a){var o=ev?"The above error occurred in the <"+ev+"> component.":"The above error occurred in one of your React components.",p="React will try to recreate this component tree from scratch using the error boundary you provided, "+((D4||"Anonymous")+".");if(typeof a==="object"&&a!==null&&typeof a.environmentName==="string"){var t=a.environmentName;a=[`%o
104
-
105
- %s
106
-
107
- %s
108
- `,a,o,p].slice(0),typeof a[0]==="string"?a.splice(0,1,J9+" "+a[0],Y9,Zb+t+Zb,X9):a.splice(0,0,J9,Y9,Zb+t+Zb,X9),a.unshift(console),t=VY.apply(console.error,a),t()}else console.error(`%o
109
-
110
- %s
111
-
112
- %s
113
- `,a,o,p)}function Cf(a){H4(a)}function V5(a,o){try{ev=o.source?U(o.source):null,D4=null;var p=o.value;if(K.actQueue!==null)K.thrownErrors.push(p);else{var t=a.onUncaughtError;t(p,{componentStack:o.stack})}}catch(m){setTimeout(function(){throw m})}}function If(a,o,p){try{ev=p.source?U(p.source):null,D4=U(o);var t=a.onCaughtError;t(p.value,{componentStack:p.stack,errorBoundary:o.tag===1?o.stateNode:null})}catch(m){setTimeout(function(){throw m})}}function pc(a,o,p){return p=Hm(p),p.tag=A4,p.payload={element:null},p.callback=function(){g(o.source,V5,a,o)},p}function tc(a){return a=Hm(a),a.tag=A4,a}function mc(a,o,p,t){var m=p.type.getDerivedStateFromError;if(typeof m==="function"){var r=t.value;a.payload=function(){return m(r)},a.callback=function(){Nl(p),g(t.source,If,o,p,t)}}var v=p.stateNode;v!==null&&typeof v.componentDidCatch==="function"&&(a.callback=function(){Nl(p),g(t.source,If,o,p,t),typeof m!=="function"&&(em===null?em=new Set([this]):em.add(this)),BY(this,t),typeof m==="function"||(p.lanes&2)===0&&console.error("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",U(p)||"Unknown")})}function Ez(a,o,p,t,m){if(p.flags|=32768,Rt&&j0(a,m),t!==null&&typeof t==="object"&&typeof t.then==="function"){if(o=p.alternate,o!==null&&zv(o,p,m,!0),Oa&&(Ft=!0),p=np.current,p!==null){switch(p.tag){case 31:case 13:return Vp===null?t2():p.alternate===null&&Jo===$m&&(Jo=D2),p.flags&=-257,p.flags|=65536,p.lanes=m,t===A2?p.flags|=16384:(o=p.updateQueue,o===null?p.updateQueue=new Set([t]):o.add(t),Kc(a,t,m)),!1;case 22:return p.flags|=65536,t===A2?p.flags|=16384:(o=p.updateQueue,o===null?(o={transitions:null,markerInstances:null,retryQueue:new Set([t])},p.updateQueue=o):(p=o.retryQueue,p===null?o.retryQueue=new Set([t]):p.add(t)),Kc(a,t,m)),!1}throw Error("Unexpected Suspense handler tag ("+p.tag+"). This is a bug in React.")}return Kc(a,t,m),t2(),!1}if(Oa)return Ft=!0,o=np.current,o!==null?((o.flags&65536)===0&&(o.flags|=256),o.flags|=65536,o.lanes=m,t!==n4&&k0(_p(Error("There was an error while hydrating but React was able to recover by instead client rendering from the nearest Suspense boundary.",{cause:t}),p))):(t!==n4&&k0(_p(Error("There was an error while hydrating but React was able to recover by instead client rendering the entire root.",{cause:t}),p)),a=a.current.alternate,a.flags|=65536,m&=-m,a.lanes|=m,t=_p(t,p),m=pc(a.stateNode,t,m),N5(a,m),Jo!==jm&&(Jo=Pr)),!1;var r=_p(Error("There was an error during concurrent rendering but React was able to recover by instead synchronously rendering the entire root.",{cause:t}),p);if(Ci===null?Ci=[r]:Ci.push(r),Jo!==jm&&(Jo=Pr),o===null)return!0;t=_p(t,p),p=o;do{switch(p.tag){case 3:return p.flags|=65536,a=m&-m,p.lanes|=a,a=pc(p.stateNode,t,a),N5(p,a),!1;case 1:if(o=p.type,r=p.stateNode,(p.flags&128)===0&&(typeof o.getDerivedStateFromError==="function"||r!==null&&typeof r.componentDidCatch==="function"&&(em===null||!em.has(r))))return p.flags|=65536,m&=-m,p.lanes|=m,m=tc(m),mc(m,a,p,t),N5(p,m),!1}p=p.return}while(p!==null);return!1}function Ao(a,o,p,t){o.child=a===null?z8(o,null,p,t):gr(o,a.child,p,t)}function Af(a,o,p,t,m){p=p.render;var r=o.ref;if("ref"in t){var v={};for(var i in t)i!=="ref"&&(v[i]=t[i])}else v=t;if(qr(o),t=h1(a,o,p,v,r,m),i=k1(),a!==null&&!Wo)return n1(a,o,m),st(a,o,m);return Oa&&i&&w1(o),o.flags|=1,Ao(a,o,t,m),o.child}function Tf(a,o,p,t,m){if(a===null){var r=p.type;if(typeof r==="function"&&!b1(r)&&r.defaultProps===void 0&&p.compare===null)return p=Yr(r),o.tag=15,o.type=p,vc(o,r),Sf(a,o,p,t,m);return a=c1(p.type,null,t,o,o.mode,m),a.ref=o.ref,a.return=o,o.child=a}if(r=a.child,!wc(a,m)){var v=r.memoizedProps;if(p=p.compare,p=p!==null?p:h0,p(v,t)&&a.ref===o.ref)return st(a,o,m)}return o.flags|=1,a=Vt(r,t),a.ref=o.ref,a.return=o,o.child=a}function Sf(a,o,p,t,m){if(a!==null){var r=a.memoizedProps;if(h0(r,t)&&a.ref===o.ref&&o.type===a.type)if(Wo=!1,o.pendingProps=t=r,wc(a,m))(a.flags&131072)!==0&&(Wo=!0);else return o.lanes=a.lanes,st(a,o,m)}return rc(a,o,p,t,m)}function uf(a,o,p,t){var m=t.children,r=a!==null?a.memoizedState:null;if(a===null&&o.stateNode===null&&(o.stateNode={_visibility:Yi,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.mode==="hidden"){if((o.flags&128)!==0){if(r=r!==null?r.baseLanes|p:p,a!==null){t=o.child=a.child;for(m=0;t!==null;)m=m|t.lanes|t.childLanes,t=t.sibling;t=m&~r}else t=0,o.child=null;return xf(a,o,r,p,t)}if((p&536870912)!==0)o.memoizedState={baseLanes:0,cachePool:null},a!==null&&U5(o,r!==null?r.cachePool:null),r!==null?bf(o,r):K1(o),cf(o);else return t=o.lanes=536870912,xf(a,o,r!==null?r.baseLanes|p:p,p,t)}else r!==null?(U5(o,r.cachePool),bf(o,r),hm(o),o.memoizedState=null):(a!==null&&U5(o,null),K1(o),hm(o));return Ao(a,o,m,p),o.child}function I0(a,o){return a!==null&&a.tag===22||o.stateNode!==null||(o.stateNode={_visibility:Yi,_pendingMarkers:null,_retryCache:null,_transitions:null}),o.sibling}function xf(a,o,p,t,m){var r=Q1();return r=r===null?null:{parent:Bo._currentValue,pool:r},o.memoizedState={baseLanes:p,cachePool:r},a!==null&&U5(o,null),K1(o),cf(o),a!==null&&zv(a,o,t,!0),o.childLanes=m,null}function j5(a,o){var p=o.hidden;return p!==void 0&&console.error(`<Activity> doesn't accept a hidden prop. Use mode="hidden" instead.
114
- - <Activity %s>
115
- + <Activity %s>`,p===!0?"hidden":p===!1?"hidden={false}":"hidden={...}",p?'mode="hidden"':'mode="visible"'),o=E5({mode:o.mode,children:o.children},a.mode),o.ref=a.ref,a.child=o,o.return=a,o}function Vf(a,o,p){return gr(o,a.child,null,p),a=j5(o,o.pendingProps),a.flags|=2,Kp(o),o.memoizedState=null,a}function sz(a,o,p){var t=o.pendingProps,m=(o.flags&128)!==0;if(o.flags&=-129,a===null){if(Oa){if(t.mode==="hidden")return a=j5(o,t),o.lanes=536870912,I0(null,a);if(W1(o),(a=vo)?(p=Gw(a,up),p=p!==null&&p.data===ur?p:null,p!==null&&(t={dehydrated:p,treeContext:Fl(),retryLane:536870912,hydrationErrors:null},o.memoizedState=t,t=Ml(p),t.return=o,o.child=t,uo=o,vo=null)):p=null,p===null)throw _5(o,a),Bm(o);return o.lanes=536870912,null}return j5(o,t)}var r=a.memoizedState;if(r!==null){var v=r.dehydrated;if(W1(o),m)if(o.flags&256)o.flags&=-257,o=Vf(a,o,p);else if(o.memoizedState!==null)o.child=a.child,o.flags|=128,o=null;else throw Error("Client rendering an Activity suspended it again. This is a bug in React.");else if(Cl(),(p&536870912)!==0&&p2(o),Wo||zv(a,o,p,!1),m=(p&a.childLanes)!==0,Wo||m){if(t=ao,t!==null&&(v=P3(t,p),v!==0&&v!==r.retryLane))throw r.retryLane=v,jo(a,v),Yo(t,a,v),E4;t2(),o=Vf(a,o,p)}else a=r.treeContext,vo=Wp(v.nextSibling),uo=o,Oa=!0,Im=null,Ft=!1,kp=null,up=!1,a!==null&&Pl(o,a),o=j5(o,t),o.flags|=4096;return o}return r=a.child,t={mode:t.mode,children:t.children},(p&536870912)!==0&&(p&a.lanes)!==0&&p2(o),a=Vt(r,t),a.ref=o.ref,o.child=a,a.return=o,a}function D5(a,o){var p=o.ref;if(p===null)a!==null&&a.ref!==null&&(o.flags|=4194816);else{if(typeof p!=="function"&&typeof p!=="object")throw Error("Expected ref to be a function, an object returned by React.createRef(), or undefined/null.");if(a===null||a.ref!==p)o.flags|=4194816}}function rc(a,o,p,t,m){if(p.prototype&&typeof p.prototype.render==="function"){var r=V(p)||"Unknown";N8[r]||(console.error("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",r,r),N8[r]=!0)}if(o.mode&Eo&&ct.recordLegacyContextWarning(o,null),a===null&&(vc(o,o.type),p.contextTypes&&(r=V(p)||"Unknown",R8[r]||(R8[r]=!0,console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with React.useContext() instead. (https://react.dev/link/legacy-context)",r)))),qr(o),p=h1(a,o,p,t,void 0,m),t=k1(),a!==null&&!Wo)return n1(a,o,m),st(a,o,m);return Oa&&t&&w1(o),o.flags|=1,Ao(a,o,p,m),o.child}function jf(a,o,p,t,m,r){if(qr(o),wm=-1,Ni=a!==null&&a.type!==o.type,o.updateQueue=null,p=y1(o,t,p,m),lf(a,o),t=k1(),a!==null&&!Wo)return n1(a,o,r),st(a,o,r);return Oa&&t&&w1(o),o.flags|=1,Ao(a,o,p,r),o.child}function Df(a,o,p,t,m){switch(H(o)){case!1:var r=o.stateNode,v=new o.type(o.memoizedProps,r.context).state;r.updater.enqueueSetState(r,v,null);break;case!0:o.flags|=128,o.flags|=65536,r=Error("Simulated error coming from DevTools");var i=m&-m;if(o.lanes|=i,v=ao,v===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");i=tc(i),mc(i,v,o,_p(r,o)),N5(o,i)}if(qr(o),o.stateNode===null){if(v=Cm,r=p.contextType,"contextType"in p&&r!==null&&(r===void 0||r.$$typeof!==Lt)&&!n8.has(p)&&(n8.add(p),i=r===void 0?" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":typeof r!=="object"?" However, it is set to a "+typeof r+".":r.$$typeof===sc?" Did you accidentally pass the Context.Consumer instead?":" However, it is set to an object with keys {"+Object.keys(r).join(", ")+"}.",console.error("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",V(p)||"Component",i)),typeof r==="object"&&r!==null&&(v=lo(r)),r=new p(t,v),o.mode&Eo){Ea(!0);try{r=new p(t,v)}finally{Ea(!1)}}if(v=o.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,r.updater=j4,o.stateNode=r,r._reactInternals=o,r._reactInternalInstance=B8,typeof p.getDerivedStateFromProps==="function"&&v===null&&(v=V(p)||"Component",K8.has(v)||(K8.add(v),console.error("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",v,r.state===null?"null":"undefined",v))),typeof p.getDerivedStateFromProps==="function"||typeof r.getSnapshotBeforeUpdate==="function"){var b=i=v=null;if(typeof r.componentWillMount==="function"&&r.componentWillMount.__suppressDeprecationWarning!==!0?v="componentWillMount":typeof r.UNSAFE_componentWillMount==="function"&&(v="UNSAFE_componentWillMount"),typeof r.componentWillReceiveProps==="function"&&r.componentWillReceiveProps.__suppressDeprecationWarning!==!0?i="componentWillReceiveProps":typeof r.UNSAFE_componentWillReceiveProps==="function"&&(i="UNSAFE_componentWillReceiveProps"),typeof r.componentWillUpdate==="function"&&r.componentWillUpdate.__suppressDeprecationWarning!==!0?b="componentWillUpdate":typeof r.UNSAFE_componentWillUpdate==="function"&&(b="UNSAFE_componentWillUpdate"),v!==null||i!==null||b!==null){r=V(p)||"Component";var l=typeof p.getDerivedStateFromProps==="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";W8.has(r)||(W8.add(r),console.error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
116
-
117
- %s uses %s but also contains the following legacy lifecycles:%s%s%s
118
-
119
- The above lifecycles should be removed. Learn more about this warning here:
120
- https://react.dev/link/unsafe-component-lifecycles`,r,l,v!==null?`
121
- `+v:"",i!==null?`
122
- `+i:"",b!==null?`
123
- `+b:""))}}r=o.stateNode,v=V(p)||"Component",r.render||(p.prototype&&typeof p.prototype.render==="function"?console.error("No `render` method found on the %s instance: did you accidentally return an object from the constructor?",v):console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.",v)),!r.getInitialState||r.getInitialState.isReactClassApproved||r.state||console.error("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",v),r.getDefaultProps&&!r.getDefaultProps.isReactClassApproved&&console.error("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",v),r.contextType&&console.error("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",v),p.childContextTypes&&!k8.has(p)&&(k8.add(p),console.error("%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)",v)),p.contextTypes&&!y8.has(p)&&(y8.add(p),console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with static contextType instead. (https://react.dev/link/legacy-context)",v)),typeof r.componentShouldUpdate==="function"&&console.error("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",v),p.prototype&&p.prototype.isPureReactComponent&&typeof r.shouldComponentUpdate<"u"&&console.error("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",V(p)||"A pure component"),typeof r.componentDidUnmount==="function"&&console.error("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",v),typeof r.componentDidReceiveProps==="function"&&console.error("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",v),typeof r.componentWillRecieveProps==="function"&&console.error("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",v),typeof r.UNSAFE_componentWillRecieveProps==="function"&&console.error("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",v),i=r.props!==t,r.props!==void 0&&i&&console.error("When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",v),r.defaultProps&&console.error("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",v,v),typeof r.getSnapshotBeforeUpdate!=="function"||typeof r.componentDidUpdate==="function"||H8.has(p)||(H8.add(p),console.error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",V(p))),typeof r.getDerivedStateFromProps==="function"&&console.error("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",v),typeof r.getDerivedStateFromError==="function"&&console.error("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",v),typeof p.getSnapshotBeforeUpdate==="function"&&console.error("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",v),(i=r.state)&&(typeof i!=="object"||Lo(i))&&console.error("%s.state: must be set to an object or null",v),typeof r.getChildContext==="function"&&typeof p.childContextTypes!=="object"&&console.error("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",v),r=o.stateNode,r.props=t,r.state=o.memoizedState,r.refs={},B1(o),v=p.contextType,r.context=typeof v==="object"&&v!==null?lo(v):Cm,r.state===t&&(v=V(p)||"Component",U8.has(v)||(U8.add(v),console.error("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",v))),o.mode&Eo&&ct.recordLegacyContextWarning(o,r),ct.recordUnsafeLifecycleWarnings(o,r),r.state=o.memoizedState,v=p.getDerivedStateFromProps,typeof v==="function"&&(oc(o,p,v,t),r.state=o.memoizedState),typeof p.getDerivedStateFromProps==="function"||typeof r.getSnapshotBeforeUpdate==="function"||typeof r.UNSAFE_componentWillMount!=="function"&&typeof r.componentWillMount!=="function"||(v=r.state,typeof r.componentWillMount==="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount==="function"&&r.UNSAFE_componentWillMount(),v!==r.state&&(console.error("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",U(o)||"Component"),j4.enqueueReplaceState(r,r.state,null)),g0(o,t,r,m),M0(),r.state=o.memoizedState),typeof r.componentDidMount==="function"&&(o.flags|=4194308),(o.mode&bt)!==Xa&&(o.flags|=134217728),r=!0}else if(a===null){r=o.stateNode;var Y=o.memoizedProps;i=Kr(p,Y),r.props=i;var X=r.context;b=p.contextType,v=Cm,typeof b==="object"&&b!==null&&(v=lo(b)),l=p.getDerivedStateFromProps,b=typeof l==="function"||typeof r.getSnapshotBeforeUpdate==="function",Y=o.pendingProps!==Y,b||typeof r.UNSAFE_componentWillReceiveProps!=="function"&&typeof r.componentWillReceiveProps!=="function"||(Y||X!==v)&&gf(o,r,t,v),Vm=!1;var z=o.memoizedState;r.state=z,g0(o,t,r,m),M0(),X=o.memoizedState,Y||z!==X||Vm?(typeof l==="function"&&(oc(o,p,l,t),X=o.memoizedState),(i=Vm||Mf(o,p,i,t,z,X,v))?(b||typeof r.UNSAFE_componentWillMount!=="function"&&typeof r.componentWillMount!=="function"||(typeof r.componentWillMount==="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount==="function"&&r.UNSAFE_componentWillMount()),typeof r.componentDidMount==="function"&&(o.flags|=4194308),(o.mode&bt)!==Xa&&(o.flags|=134217728)):(typeof r.componentDidMount==="function"&&(o.flags|=4194308),(o.mode&bt)!==Xa&&(o.flags|=134217728),o.memoizedProps=t,o.memoizedState=X),r.props=t,r.state=X,r.context=v,r=i):(typeof r.componentDidMount==="function"&&(o.flags|=4194308),(o.mode&bt)!==Xa&&(o.flags|=134217728),r=!1)}else{r=o.stateNode,d1(a,o),v=o.memoizedProps,b=Kr(p,v),r.props=b,l=o.pendingProps,z=r.context,X=p.contextType,i=Cm,typeof X==="object"&&X!==null&&(i=lo(X)),Y=p.getDerivedStateFromProps,(X=typeof Y==="function"||typeof r.getSnapshotBeforeUpdate==="function")||typeof r.UNSAFE_componentWillReceiveProps!=="function"&&typeof r.componentWillReceiveProps!=="function"||(v!==l||z!==i)&&gf(o,r,t,i),Vm=!1,z=o.memoizedState,r.state=z,g0(o,t,r,m),M0();var _=o.memoizedState;v!==l||z!==_||Vm||a!==null&&a.dependencies!==null&&d5(a.dependencies)?(typeof Y==="function"&&(oc(o,p,Y,t),_=o.memoizedState),(b=Vm||Mf(o,p,b,t,z,_,i)||a!==null&&a.dependencies!==null&&d5(a.dependencies))?(X||typeof r.UNSAFE_componentWillUpdate!=="function"&&typeof r.componentWillUpdate!=="function"||(typeof r.componentWillUpdate==="function"&&r.componentWillUpdate(t,_,i),typeof r.UNSAFE_componentWillUpdate==="function"&&r.UNSAFE_componentWillUpdate(t,_,i)),typeof r.componentDidUpdate==="function"&&(o.flags|=4),typeof r.getSnapshotBeforeUpdate==="function"&&(o.flags|=1024)):(typeof r.componentDidUpdate!=="function"||v===a.memoizedProps&&z===a.memoizedState||(o.flags|=4),typeof r.getSnapshotBeforeUpdate!=="function"||v===a.memoizedProps&&z===a.memoizedState||(o.flags|=1024),o.memoizedProps=t,o.memoizedState=_),r.props=t,r.state=_,r.context=i,r=b):(typeof r.componentDidUpdate!=="function"||v===a.memoizedProps&&z===a.memoizedState||(o.flags|=4),typeof r.getSnapshotBeforeUpdate!=="function"||v===a.memoizedProps&&z===a.memoizedState||(o.flags|=1024),r=!1)}if(i=r,D5(a,o),v=(o.flags&128)!==0,i||v){if(i=o.stateNode,B(o),v&&typeof p.getDerivedStateFromError!=="function")p=null,rp=-1;else if(p=e7(i),o.mode&Eo){Ea(!0);try{e7(i)}finally{Ea(!1)}}o.flags|=1,a!==null&&v?(o.child=gr(o,a.child,null,m),o.child=gr(o,null,p,m)):Ao(a,o,p,m),o.memoizedState=i.state,a=o.child}else a=st(a,o,m);return m=o.stateNode,r&&m.props!==t&&(a0||console.error("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",U(o)||"a component"),a0=!0),a}function Ef(a,o,p,t){return Gr(),o.flags|=256,Ao(a,o,p,t),o.child}function vc(a,o){o&&o.childContextTypes&&console.error(`childContextTypes cannot be defined on a function component.
124
- %s.childContextTypes = ...`,o.displayName||o.name||"Component"),typeof o.getDerivedStateFromProps==="function"&&(a=V(o)||"Unknown",M8[a]||(console.error("%s: Function components do not support getDerivedStateFromProps.",a),M8[a]=!0)),typeof o.contextType==="object"&&o.contextType!==null&&(o=V(o)||"Unknown",O8[o]||(console.error("%s: Function components do not support contextType.",o),O8[o]=!0))}function ic(a){return{baseLanes:a,cachePool:Vl()}}function bc(a,o,p){return a=a!==null?a.childLanes&~p:0,o&&(a|=Xp),a}function sf(a,o,p){var t,m=o.pendingProps;n(o)&&(o.flags|=128);var r=!1,v=(o.flags&128)!==0;if((t=v)||(t=a!==null&&a.memoizedState===null?!1:(qo.current&ni)!==0),t&&(r=!0,o.flags&=-129),t=(o.flags&32)!==0,o.flags&=-33,a===null){if(Oa){if(r?Um(o):hm(o),(a=vo)?(p=Gw(a,up),p=p!==null&&p.data!==ur?p:null,p!==null&&(t={dehydrated:p,treeContext:Fl(),retryLane:536870912,hydrationErrors:null},o.memoizedState=t,t=Ml(p),t.return=o,o.child=t,uo=o,vo=null)):p=null,p===null)throw _5(o,a),Bm(o);return Cc(p)?o.lanes=32:o.lanes=536870912,null}var i=m.children;if(m=m.fallback,r){hm(o);var b=o.mode;return i=E5({mode:"hidden",children:i},b),m=Xr(m,b,p,null),i.return=o,m.return=o,i.sibling=m,o.child=i,m=o.child,m.memoizedState=ic(p),m.childLanes=bc(a,t,p),o.memoizedState=s4,I0(null,m)}return Um(o),cc(o,i)}var l=a.memoizedState;if(l!==null){var Y=l.dehydrated;if(Y!==null){if(v)o.flags&256?(Um(o),o.flags&=-257,o=lc(a,o,p)):o.memoizedState!==null?(hm(o),o.child=a.child,o.flags|=128,o=null):(hm(o),i=m.fallback,b=o.mode,m=E5({mode:"visible",children:m.children},b),i=Xr(i,b,p,null),i.flags|=2,m.return=o,i.return=o,m.sibling=i,o.child=m,gr(o,a.child,null,p),m=o.child,m.memoizedState=ic(p),m.childLanes=bc(a,t,p),o.memoizedState=s4,o=I0(null,m));else if(Um(o),Cl(),(p&536870912)!==0&&p2(o),Cc(Y)){if(t=Y.nextSibling&&Y.nextSibling.dataset,t){i=t.dgst;var X=t.msg;b=t.stck;var z=t.cstck}r=X,t=i,m=b,Y=z,i=r,b=Y,i=i?Error(i):Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."),i.stack=m||"",i.digest=t,t=b===void 0?null:b,m={value:i,source:null,stack:t},typeof t==="string"&&k4.set(i,m),k0(m),o=lc(a,o,p)}else if(Wo||zv(a,o,p,!1),t=(p&a.childLanes)!==0,Wo||t){if(t=ao,t!==null&&(m=P3(t,p),m!==0&&m!==l.retryLane))throw l.retryLane=m,jo(a,m),Yo(t,a,m),E4;Pc(Y)||t2(),o=lc(a,o,p)}else Pc(Y)?(o.flags|=192,o.child=a.child,o=null):(a=l.treeContext,vo=Wp(Y.nextSibling),uo=o,Oa=!0,Im=null,Ft=!1,kp=null,up=!1,a!==null&&Pl(o,a),o=cc(o,m.children),o.flags|=4096);return o}}if(r)return hm(o),i=m.fallback,b=o.mode,z=a.child,Y=z.sibling,m=Vt(z,{mode:"hidden",children:m.children}),m.subtreeFlags=z.subtreeFlags&65011712,Y!==null?i=Vt(Y,i):(i=Xr(i,b,p,null),i.flags|=2),i.return=o,m.return=o,m.sibling=i,o.child=m,I0(null,m),m=o.child,i=a.child.memoizedState,i===null?i=ic(p):(b=i.cachePool,b!==null?(z=Bo._currentValue,b=b.parent!==z?{parent:z,pool:z}:b):b=Vl(),i={baseLanes:i.baseLanes|p,cachePool:b}),m.memoizedState=i,m.childLanes=bc(a,t,p),o.memoizedState=s4,I0(a.child,m);return l!==null&&(p&62914560)===p&&(p&a.lanes)!==0&&p2(o),Um(o),p=a.child,a=p.sibling,p=Vt(p,{mode:"visible",children:m.children}),p.return=o,p.sibling=null,a!==null&&(t=o.deletions,t===null?(o.deletions=[a],o.flags|=16):t.push(a)),o.child=p,o.memoizedState=null,p}function cc(a,o){return o=E5({mode:"visible",children:o},a.mode),o.return=a,a.child=o}function E5(a,o){return a=O(22,a,null,o),a.lanes=0,a}function lc(a,o,p){return gr(o,a.child,null,p),a=cc(o,o.pendingProps.children),a.flags|=2,o.memoizedState=null,a}function ef(a,o,p){a.lanes|=o;var t=a.alternate;t!==null&&(t.lanes|=o),Y1(a.return,o,p)}function fc(a,o,p,t,m,r){var v=a.memoizedState;v===null?a.memoizedState={isBackwards:o,rendering:null,renderingStartTime:0,last:t,tail:p,tailMode:m,treeForkCount:r}:(v.isBackwards=o,v.rendering=null,v.renderingStartTime=0,v.last=t,v.tail=p,v.tailMode=m,v.treeForkCount=r)}function a6(a,o,p){var t=o.pendingProps,m=t.revealOrder,r=t.tail,v=t.children,i=qo.current;if((t=(i&ni)!==0)?(i=i&Dv|ni,o.flags|=128):i&=Dv,k(qo,i,o),i=m==null?"null":m,m!=="forwards"&&m!=="unstable_legacy-backwards"&&m!=="together"&&m!=="independent"&&!g8[i])if(g8[i]=!0,m==null)console.error('The default for the <SuspenseList revealOrder="..."> prop is changing. To be future compatible you must explictly specify either "independent" (the current default), "together", "forwards" or "legacy_unstable-backwards".');else if(m==="backwards")console.error('The rendering order of <SuspenseList revealOrder="backwards"> is changing. To be future compatible you must specify revealOrder="legacy_unstable-backwards" instead.');else if(typeof m==="string")switch(m.toLowerCase()){case"together":case"forwards":case"backwards":case"independent":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',m,m.toLowerCase());break;case"forward":case"backward":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',m,m.toLowerCase());break;default:console.error('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',m)}else console.error('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',m);if(i=r==null?"null":r,!j2[i])if(r==null){if(m==="forwards"||m==="backwards"||m==="unstable_legacy-backwards")j2[i]=!0,console.error('The default for the <SuspenseList tail="..."> prop is changing. To be future compatible you must explictly specify either "visible" (the current default), "collapsed" or "hidden".')}else r!=="visible"&&r!=="collapsed"&&r!=="hidden"?(j2[i]=!0,console.error('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "visible", "collapsed" or "hidden"?',r)):m!=="forwards"&&m!=="backwards"&&m!=="unstable_legacy-backwards"&&(j2[i]=!0,console.error('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',r));a:if((m==="forwards"||m==="backwards"||m==="unstable_legacy-backwards")&&v!==void 0&&v!==null&&v!==!1)if(Lo(v)){for(i=0;i<v.length;i++)if(!mf(v[i],i))break a}else if(i=ga(v),typeof i==="function"){if(i=i.call(v))for(var b=i.next(),l=0;!b.done;b=i.next()){if(!mf(b.value,l))break a;l++}}else console.error('A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?',m);if(Ao(a,o,v,p),Oa?(_m(),v=Xi):v=0,!t&&a!==null&&(a.flags&128)!==0)a:for(a=o.child;a!==null;){if(a.tag===13)a.memoizedState!==null&&ef(a,p,o);else if(a.tag===19)ef(a,p,o);else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===o)break a;for(;a.sibling===null;){if(a.return===null||a.return===o)break a;a=a.return}a.sibling.return=a.return,a=a.sibling}switch(m){case"forwards":p=o.child;for(m=null;p!==null;)a=p.alternate,a!==null&&O5(a)===null&&(m=p),p=p.sibling;p=m,p===null?(m=o.child,o.child=null):(m=p.sibling,p.sibling=null),fc(o,!1,m,p,r,v);break;case"backwards":case"unstable_legacy-backwards":p=null,m=o.child;for(o.child=null;m!==null;){if(a=m.alternate,a!==null&&O5(a)===null){o.child=m;break}a=m.sibling,m.sibling=p,p=m,m=a}fc(o,!0,p,null,r,v);break;case"together":fc(o,!1,null,null,void 0,v);break;default:o.memoizedState=null}return o.child}function st(a,o,p){if(a!==null&&(o.dependencies=a.dependencies),rp=-1,Em|=o.lanes,(p&o.childLanes)===0)if(a!==null){if(zv(a,o,p,!1),(p&o.childLanes)===0)return null}else return null;if(a!==null&&o.child!==a.child)throw Error("Resuming work not yet implemented.");if(o.child!==null){a=o.child,p=Vt(a,a.pendingProps),o.child=p;for(p.return=o;a.sibling!==null;)a=a.sibling,p=p.sibling=Vt(a,a.pendingProps),p.return=o;p.sibling=null}return o.child}function wc(a,o){if((a.lanes&o)!==0)return!0;return a=a.dependencies,a!==null&&d5(a)?!0:!1}function ez(a,o,p){switch(o.tag){case 3:F(o,o.stateNode.containerInfo),dm(o,Bo,a.memoizedState.cache),Gr();break;case 27:case 5:la(o);break;case 4:F(o,o.stateNode.containerInfo);break;case 10:dm(o,o.type,o.memoizedProps.value);break;case 12:(p&o.childLanes)!==0&&(o.flags|=4),o.flags|=2048;var t=o.stateNode;t.effectDuration=-0,t.passiveEffectDuration=-0;break;case 31:if(o.memoizedState!==null)return o.flags|=128,W1(o),null;break;case 13:if(t=o.memoizedState,t!==null){if(t.dehydrated!==null)return Um(o),o.flags|=128,null;if((p&o.child.childLanes)!==0)return sf(a,o,p);return Um(o),a=st(a,o,p),a!==null?a.sibling:null}Um(o);break;case 19:var m=(a.flags&128)!==0;if(t=(p&o.childLanes)!==0,t||(zv(a,o,p,!1),t=(p&o.childLanes)!==0),m){if(t)return a6(a,o,p);o.flags|=128}if(m=o.memoizedState,m!==null&&(m.rendering=null,m.tail=null,m.lastEffect=null),k(qo,qo.current,o),t)break;else return null;case 22:return o.lanes=0,uf(a,o,p,o.pendingProps);case 24:dm(o,Bo,a.memoizedState.cache)}return st(a,o,p)}function zc(a,o,p){if(o._debugNeedsRemount&&a!==null){p=c1(o.type,o.key,o.pendingProps,o._debugOwner||null,o.mode,o.lanes),p._debugStack=o._debugStack,p._debugTask=o._debugTask;var t=o.return;if(t===null)throw Error("Cannot swap the root fiber.");if(a.alternate=null,o.alternate=null,p.index=o.index,p.sibling=o.sibling,p.return=o.return,p.ref=o.ref,p._debugInfo=o._debugInfo,o===t.child)t.child=p;else{var m=t.child;if(m===null)throw Error("Expected parent to have a child.");for(;m.sibling!==o;)if(m=m.sibling,m===null)throw Error("Expected to find the previous sibling.");m.sibling=p}return o=t.deletions,o===null?(t.deletions=[a],t.flags|=16):o.push(a),p.flags|=2,p}if(a!==null)if(a.memoizedProps!==o.pendingProps||o.type!==a.type)Wo=!0;else{if(!wc(a,p)&&(o.flags&128)===0)return Wo=!1,ez(a,o,p);Wo=(a.flags&131072)!==0?!0:!1}else{if(Wo=!1,t=Oa)_m(),t=(o.flags&1048576)!==0;t&&(t=o.index,_m(),gl(o,Xi,t))}switch(o.lanes=0,o.tag){case 16:a:if(t=o.pendingProps,a=Km(o.elementType),o.type=a,typeof a==="function")b1(a)?(t=Kr(a,t),o.tag=1,o.type=a=Yr(a),o=Df(null,o,a,t,p)):(o.tag=0,vc(o,a),o.type=a=Yr(a),o=rc(null,o,a,t,p));else{if(a!==void 0&&a!==null){if(m=a.$$typeof,m===mi){o.tag=11,o.type=a=i1(a),o=Af(null,o,a,t,p);break a}else if(m===X2){o.tag=14,o=Tf(null,o,a,t,p);break a}}throw o="",a!==null&&typeof a==="object"&&a.$$typeof===Up&&(o=" Did you wrap a component in React.lazy() more than once?"),p=V(a)||a,Error("Element type is invalid. Received a promise that resolves to: "+p+". Lazy element type must resolve to a class or function."+o)}return o;case 0:return rc(a,o,o.type,o.pendingProps,p);case 1:return t=o.type,m=Kr(t,o.pendingProps),Df(a,o,t,m,p);case 3:a:{if(F(o,o.stateNode.containerInfo),a===null)throw Error("Should have a current fiber. This is a bug in React.");t=o.pendingProps;var r=o.memoizedState;m=r.element,d1(a,o),g0(o,t,null,p);var v=o.memoizedState;if(t=v.cache,dm(o,Bo,t),t!==r.cache&&X1(o,[Bo],p,!0),M0(),t=v.element,r.isDehydrated)if(r={element:t,isDehydrated:!1,cache:v.cache},o.updateQueue.baseState=r,o.memoizedState=r,o.flags&256){o=Ef(a,o,t,p);break a}else if(t!==m){m=_p(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),o),k0(m),o=Ef(a,o,t,p);break a}else{switch(a=o.stateNode.containerInfo,a.nodeType){case 9:a=a.body;break;default:a=a.nodeName==="HTML"?a.ownerDocument.body:a}vo=Wp(a.firstChild),uo=o,Oa=!0,Im=null,Ft=!1,kp=null,up=!0,p=z8(o,null,t,p);for(o.child=p;p;)p.flags=p.flags&-3|4096,p=p.sibling}else{if(Gr(),t===m){o=st(a,o,p);break a}Ao(a,o,t,p)}o=o.child}return o;case 26:return D5(a,o),a===null?(p=Kw(o.type,null,o.pendingProps,null))?o.memoizedState=p:Oa||(p=o.type,a=o.pendingProps,t=q(Om.current),t=i2(t).createElement(p),t[So]=o,t[pp]=a,To(t,p,a),Ro(t),o.stateNode=t):o.memoizedState=Kw(o.type,a.memoizedProps,o.pendingProps,a.memoizedState),null;case 27:return la(o),a===null&&Oa&&(t=q(Om.current),m=ta(),t=o.stateNode=Bw(o.type,o.pendingProps,t,m,!1),Ft||(m=fw(t,o.type,o.pendingProps,m),m!==null&&(Zr(o,0).serverProps=m)),uo=o,up=!0,m=vo,Lm(o.type)?(Q3=m,vo=Wp(t.firstChild)):vo=m),Ao(a,o,o.pendingProps.children,p),D5(a,o),a===null&&(o.flags|=4194304),o.child;case 5:return a===null&&Oa&&(r=ta(),t=eb(o.type,r.ancestorInfo),m=vo,(v=!m)||(v=C$(m,o.type,o.pendingProps,up),v!==null?(o.stateNode=v,Ft||(r=fw(v,o.type,o.pendingProps,r),r!==null&&(Zr(o,0).serverProps=r)),uo=o,vo=Wp(v.firstChild),up=!1,r=!0):r=!1,v=!r),v&&(t&&_5(o,m),Bm(o))),la(o),m=o.type,r=o.pendingProps,v=a!==null?a.memoizedProps:null,t=r.children,gc(m,r)?t=null:v!==null&&gc(m,v)&&(o.flags|=32),o.memoizedState!==null&&(m=h1(a,o,Sz,null,null,p),Di._currentValue=m),D5(a,o),Ao(a,o,t,p),o.child;case 6:return a===null&&Oa&&(p=o.pendingProps,a=ta(),t=a.ancestorInfo.current,p=t!=null?w5(p,t.tag,a.ancestorInfo.implicitRootScope):!0,a=vo,(t=!a)||(t=I$(a,o.pendingProps,up),t!==null?(o.stateNode=t,uo=o,vo=null,t=!0):t=!1,t=!t),t&&(p&&_5(o,a),Bm(o))),null;case 13:return sf(a,o,p);case 4:return F(o,o.stateNode.containerInfo),t=o.pendingProps,a===null?o.child=gr(o,null,t,p):Ao(a,o,t,p),o.child;case 11:return Af(a,o,o.type,o.pendingProps,p);case 7:return Ao(a,o,o.pendingProps,p),o.child;case 8:return Ao(a,o,o.pendingProps.children,p),o.child;case 12:return o.flags|=4,o.flags|=2048,t=o.stateNode,t.effectDuration=-0,t.passiveEffectDuration=-0,Ao(a,o,o.pendingProps.children,p),o.child;case 10:return t=o.type,m=o.pendingProps,r=m.value,"value"in m||F8||(F8=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),dm(o,t,r),Ao(a,o,m.children,p),o.child;case 9:return m=o.type._context,t=o.pendingProps.children,typeof t!=="function"&&console.error("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."),qr(o),m=lo(m),t=F4(t,m,void 0),o.flags|=1,Ao(a,o,t,p),o.child;case 14:return Tf(a,o,o.type,o.pendingProps,p);case 15:return Sf(a,o,o.type,o.pendingProps,p);case 19:return a6(a,o,p);case 31:return sz(a,o,p);case 22:return uf(a,o,p,o.pendingProps);case 24:return qr(o),t=lo(Bo),a===null?(m=Q1(),m===null&&(m=ao,r=Z1(),m.pooledCache=r,Qr(r),r!==null&&(m.pooledCacheLanes|=p),m=r),o.memoizedState={parent:t,cache:m},B1(o),dm(o,Bo,m)):((a.lanes&p)!==0&&(d1(a,o),g0(o,null,null,p),M0()),m=a.memoizedState,r=o.memoizedState,m.parent!==t?(m={parent:t,cache:t},o.memoizedState=m,o.lanes===0&&(o.memoizedState=o.updateQueue.baseState=m),dm(o,Bo,t)):(t=r.cache,dm(o,Bo,t),t!==m.cache&&X1(o,[Bo],p,!0))),Ao(a,o,o.pendingProps.children,p),o.child;case 29:throw o.pendingProps}throw Error("Unknown unit of work tag ("+o.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function et(a){a.flags|=4}function $c(a,o,p,t,m){if(o=(a.mode&GY)!==Xa)o=!1;if(o){if(a.flags|=16777216,(m&335544128)===m)if(a.stateNode.complete)a.flags|=8192;else if(L6())a.flags|=8192;else throw Mr=A2,C4}else a.flags&=-16777217}function o6(a,o){if(o.type!=="stylesheet"||(o.state.loading&Ep)!==jr)a.flags&=-16777217;else if(a.flags|=16777216,!yw(o))if(L6())a.flags|=8192;else throw Mr=A2,C4}function s5(a,o){o!==null&&(a.flags|=4),a.flags&16384&&(o=a.tag!==22?Pb():536870912,a.lanes|=o,Ar|=o)}function A0(a,o){if(!Oa)switch(a.tailMode){case"hidden":o=a.tail;for(var p=null;o!==null;)o.alternate!==null&&(p=o),o=o.sibling;p===null?a.tail=null:p.sibling=null;break;case"collapsed":p=a.tail;for(var t=null;p!==null;)p.alternate!==null&&(t=p),p=p.sibling;t===null?o||a.tail===null?a.tail=null:a.tail.sibling=null:t.sibling=null}}function po(a){var o=a.alternate!==null&&a.alternate.child===a.child,p=0,t=0;if(o)if((a.mode&Ha)!==Xa){for(var{selfBaseDuration:m,child:r}=a;r!==null;)p|=r.lanes|r.childLanes,t|=r.subtreeFlags&65011712,t|=r.flags&65011712,m+=r.treeBaseDuration,r=r.sibling;a.treeBaseDuration=m}else for(m=a.child;m!==null;)p|=m.lanes|m.childLanes,t|=m.subtreeFlags&65011712,t|=m.flags&65011712,m.return=a,m=m.sibling;else if((a.mode&Ha)!==Xa){m=a.actualDuration,r=a.selfBaseDuration;for(var v=a.child;v!==null;)p|=v.lanes|v.childLanes,t|=v.subtreeFlags,t|=v.flags,m+=v.actualDuration,r+=v.treeBaseDuration,v=v.sibling;a.actualDuration=m,a.treeBaseDuration=r}else for(m=a.child;m!==null;)p|=m.lanes|m.childLanes,t|=m.subtreeFlags,t|=m.flags,m.return=a,m=m.sibling;return a.subtreeFlags|=t,a.childLanes=p,o}function a$(a,o,p){var t=o.pendingProps;switch(z1(o),o.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return po(o),null;case 1:return po(o),null;case 3:if(p=o.stateNode,t=null,a!==null&&(t=a.memoizedState.cache),o.memoizedState.cache!==t&&(o.flags|=2048),Dt(Bo,o),oa(o),p.pendingContext&&(p.context=p.pendingContext,p.pendingContext=null),a===null||a.child===null)wv(o)?(J1(),et(o)):a===null||a.memoizedState.isDehydrated&&(o.flags&256)===0||(o.flags|=1024,$1());return po(o),null;case 26:var{type:m,memoizedState:r}=o;return a===null?(et(o),r!==null?(po(o),o6(o,r)):(po(o),$c(o,m,null,t,p))):r?r!==a.memoizedState?(et(o),po(o),o6(o,r)):(po(o),o.flags&=-16777217):(a=a.memoizedProps,a!==t&&et(o),po(o),$c(o,m,a,t,p)),null;case 27:if(Ta(o),p=q(Om.current),m=o.type,a!==null&&o.stateNode!=null)a.memoizedProps!==t&&et(o);else{if(!t){if(o.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return po(o),null}a=ta(),wv(o)?Il(o,a):(a=Bw(m,t,p,a,!0),o.stateNode=a,et(o))}return po(o),null;case 5:if(Ta(o),m=o.type,a!==null&&o.stateNode!=null)a.memoizedProps!==t&&et(o);else{if(!t){if(o.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return po(o),null}var v=ta();if(wv(o))Il(o,v);else{switch(r=q(Om.current),eb(m,v.ancestorInfo),v=v.context,r=i2(r),v){case b0:r=r.createElementNS(nv,m);break;case Jb:r=r.createElementNS(d2,m);break;default:switch(m){case"svg":r=r.createElementNS(nv,m);break;case"math":r=r.createElementNS(d2,m);break;case"script":r=r.createElement("div"),r.innerHTML="<script></script>",r=r.removeChild(r.firstChild);break;case"select":r=typeof t.is==="string"?r.createElement("select",{is:t.is}):r.createElement("select"),t.multiple?r.multiple=!0:t.size&&(r.size=t.size);break;default:r=typeof t.is==="string"?r.createElement(m,{is:t.is}):r.createElement(m),m.indexOf("-")===-1&&(m!==m.toLowerCase()&&console.error("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",m),Object.prototype.toString.call(r)!=="[object HTMLUnknownElement]"||vt.call(c9,m)||(c9[m]=!0,console.error("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.",m)))}}r[So]=o,r[pp]=t;a:for(v=o.child;v!==null;){if(v.tag===5||v.tag===6)r.appendChild(v.stateNode);else if(v.tag!==4&&v.tag!==27&&v.child!==null){v.child.return=v,v=v.child;continue}if(v===o)break a;for(;v.sibling===null;){if(v.return===null||v.return===o)break a;v=v.return}v.sibling.return=v.return,v=v.sibling}o.stateNode=r;a:switch(To(r,m,t),m){case"button":case"input":case"select":case"textarea":t=!!t.autoFocus;break a;case"img":t=!0;break a;default:t=!1}t&&et(o)}}return po(o),$c(o,o.type,a===null?null:a.memoizedProps,o.pendingProps,p),null;case 6:if(a&&o.stateNode!=null)a.memoizedProps!==t&&et(o);else{if(typeof t!=="string"&&o.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");if(a=q(Om.current),p=ta(),wv(o)){if(a=o.stateNode,p=o.memoizedProps,m=!Ft,t=null,r=uo,r!==null)switch(r.tag){case 3:m&&(m=Qw(a,p,t),m!==null&&(Zr(o,0).serverProps=m));break;case 27:case 5:t=r.memoizedProps,m&&(m=Qw(a,p,t),m!==null&&(Zr(o,0).serverProps=m))}a[So]=o,a=a.nodeValue===p||t!==null&&t.suppressHydrationWarning===!0||vw(a.nodeValue,p)?!0:!1,a||Bm(o,!0)}else m=p.ancestorInfo.current,m!=null&&w5(t,m.tag,p.ancestorInfo.implicitRootScope),a=i2(a).createTextNode(t),a[So]=o,o.stateNode=a}return po(o),null;case 31:if(p=o.memoizedState,a===null||a.memoizedState!==null){if(t=wv(o),p!==null){if(a===null){if(!t)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(a=o.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error("Expected to have a hydrated activity instance. This error is likely caused by a bug in React. Please file an issue.");a[So]=o,po(o),(o.mode&Ha)!==Xa&&p!==null&&(a=o.child,a!==null&&(o.treeBaseDuration-=a.treeBaseDuration))}else J1(),Gr(),(o.flags&128)===0&&(p=o.memoizedState=null),o.flags|=4,po(o),(o.mode&Ha)!==Xa&&p!==null&&(a=o.child,a!==null&&(o.treeBaseDuration-=a.treeBaseDuration));a=!1}else p=$1(),a!==null&&a.memoizedState!==null&&(a.memoizedState.hydrationErrors=p),a=!0;if(!a){if(o.flags&256)return Kp(o),o;return Kp(o),null}if((o.flags&128)!==0)throw Error("Client rendering an Activity suspended it again. This is a bug in React.")}return po(o),null;case 13:if(t=o.memoizedState,a===null||a.memoizedState!==null&&a.memoizedState.dehydrated!==null){if(m=t,r=wv(o),m!==null&&m.dehydrated!==null){if(a===null){if(!r)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(r=o.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");r[So]=o,po(o),(o.mode&Ha)!==Xa&&m!==null&&(m=o.child,m!==null&&(o.treeBaseDuration-=m.treeBaseDuration))}else J1(),Gr(),(o.flags&128)===0&&(m=o.memoizedState=null),o.flags|=4,po(o),(o.mode&Ha)!==Xa&&m!==null&&(m=o.child,m!==null&&(o.treeBaseDuration-=m.treeBaseDuration));m=!1}else m=$1(),a!==null&&a.memoizedState!==null&&(a.memoizedState.hydrationErrors=m),m=!0;if(!m){if(o.flags&256)return Kp(o),o;return Kp(o),null}}if(Kp(o),(o.flags&128)!==0)return o.lanes=p,(o.mode&Ha)!==Xa&&N0(o),o;return p=t!==null,a=a!==null&&a.memoizedState!==null,p&&(t=o.child,m=null,t.alternate!==null&&t.alternate.memoizedState!==null&&t.alternate.memoizedState.cachePool!==null&&(m=t.alternate.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==m&&(t.flags|=2048)),p!==a&&p&&(o.child.flags|=8192),s5(o,o.updateQueue),po(o),(o.mode&Ha)!==Xa&&p&&(a=o.child,a!==null&&(o.treeBaseDuration-=a.treeBaseDuration)),null;case 4:return oa(o),a===null&&kc(o.stateNode.containerInfo),po(o),null;case 10:return Dt(o.type,o),po(o),null;case 19:if(ia(qo,o),t=o.memoizedState,t===null)return po(o),null;if(m=(o.flags&128)!==0,r=t.rendering,r===null)if(m)A0(t,!1);else{if(Jo!==$m||a!==null&&(a.flags&128)!==0)for(a=o.child;a!==null;){if(r=O5(a),r!==null){o.flags|=128,A0(t,!1),a=r.updateQueue,o.updateQueue=a,s5(o,a),o.subtreeFlags=0,a=p;for(p=o.child;p!==null;)Rl(p,a),p=p.sibling;return k(qo,qo.current&Dv|ni,o),Oa&&jt(o,t.treeForkCount),o.child}a=a.sibling}t.tail!==null&&go()>pb&&(o.flags|=128,m=!0,A0(t,!1),o.lanes=4194304)}else{if(!m)if(a=O5(r),a!==null){if(o.flags|=128,m=!0,a=a.updateQueue,o.updateQueue=a,s5(o,a),A0(t,!0),t.tail===null&&t.tailMode==="hidden"&&!r.alternate&&!Oa)return po(o),null}else 2*go()-t.renderingStartTime>pb&&p!==536870912&&(o.flags|=128,m=!0,A0(t,!1),o.lanes=4194304);t.isBackwards?(r.sibling=o.child,o.child=r):(a=t.last,a!==null?a.sibling=r:o.child=r,t.last=r)}if(t.tail!==null)return a=t.tail,t.rendering=a,t.tail=a.sibling,t.renderingStartTime=go(),a.sibling=null,p=qo.current,p=m?p&Dv|ni:p&Dv,k(qo,p,o),Oa&&jt(o,t.treeForkCount),a;return po(o),null;case 22:case 23:return Kp(o),H1(o),t=o.memoizedState!==null,a!==null?a.memoizedState!==null!==t&&(o.flags|=8192):t&&(o.flags|=8192),t?(p&536870912)!==0&&(o.flags&128)===0&&(po(o),o.subtreeFlags&6&&(o.flags|=8192)):po(o),p=o.updateQueue,p!==null&&s5(o,p.retryQueue),p=null,a!==null&&a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(p=a.memoizedState.cachePool.pool),t=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(t=o.memoizedState.cachePool.pool),t!==p&&(o.flags|=2048),a!==null&&ia(Or,o),null;case 24:return p=null,a!==null&&(p=a.memoizedState.cache),o.memoizedState.cache!==p&&(o.flags|=2048),Dt(Bo,o),po(o),null;case 25:return null;case 30:return null}throw Error("Unknown unit of work tag ("+o.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function o$(a,o){switch(z1(o),o.tag){case 1:return a=o.flags,a&65536?(o.flags=a&-65537|128,(o.mode&Ha)!==Xa&&N0(o),o):null;case 3:return Dt(Bo,o),oa(o),a=o.flags,(a&65536)!==0&&(a&128)===0?(o.flags=a&-65537|128,o):null;case 26:case 27:case 5:return Ta(o),null;case 31:if(o.memoizedState!==null){if(Kp(o),o.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");Gr()}return a=o.flags,a&65536?(o.flags=a&-65537|128,(o.mode&Ha)!==Xa&&N0(o),o):null;case 13:if(Kp(o),a=o.memoizedState,a!==null&&a.dehydrated!==null){if(o.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");Gr()}return a=o.flags,a&65536?(o.flags=a&-65537|128,(o.mode&Ha)!==Xa&&N0(o),o):null;case 19:return ia(qo,o),null;case 4:return oa(o),null;case 10:return Dt(o.type,o),null;case 22:case 23:return Kp(o),H1(o),a!==null&&ia(Or,o),a=o.flags,a&65536?(o.flags=a&-65537|128,(o.mode&Ha)!==Xa&&N0(o),o):null;case 24:return Dt(Bo,o),null;case 25:return null;default:return null}}function p6(a,o){switch(z1(o),o.tag){case 3:Dt(Bo,o),oa(o);break;case 26:case 27:case 5:Ta(o);break;case 4:oa(o);break;case 31:o.memoizedState!==null&&Kp(o);break;case 13:Kp(o);break;case 19:ia(qo,o);break;case 10:Dt(o.type,o);break;case 22:case 23:Kp(o),H1(o),a!==null&&ia(Or,o);break;case 24:Dt(Bo,o)}}function Ht(a){return(a.mode&Ha)!==Xa}function t6(a,o){Ht(a)?(Kt(),T0(o,a),dt()):T0(o,a)}function Jc(a,o,p){Ht(a)?(Kt(),Zv(p,a,o),dt()):Zv(p,a,o)}function T0(a,o){try{var p=o.updateQueue,t=p!==null?p.lastEffect:null;if(t!==null){var m=t.next;p=m;do{if((p.tag&a)===a&&(t=void 0,(a&vp)!==S2&&(r0=!0),t=g(o,dY,p),(a&vp)!==S2&&(r0=!1),t!==void 0&&typeof t!=="function")){var r=void 0;r=(p.tag&Lp)!==0?"useLayoutEffect":(p.tag&vp)!==0?"useInsertionEffect":"useEffect";var v=void 0;v=t===null?" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof t.then==="function"?`
125
-
126
- It looks like you wrote `+r+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
127
-
128
- `+r+`(() => {
129
- async function fetchData() {
130
- // You can await here
131
- const response = await MyAPI.getData(someId);
132
- // ...
133
- }
134
- fetchData();
135
- }, [someId]); // Or [] if effect doesn't need props or state
136
-
137
- Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching`:" You returned: "+t,g(o,function(i,b){console.error("%s must not return anything besides a function, which is used for clean-up.%s",i,b)},r,v)}p=p.next}while(p!==m)}}catch(i){Sa(o,o.return,i)}}function Zv(a,o,p){try{var t=o.updateQueue,m=t!==null?t.lastEffect:null;if(m!==null){var r=m.next;t=r;do{if((t.tag&a)===a){var v=t.inst,i=v.destroy;i!==void 0&&(v.destroy=void 0,(a&vp)!==S2&&(r0=!0),m=o,g(m,KY,m,p,i),(a&vp)!==S2&&(r0=!1))}t=t.next}while(t!==r)}}catch(b){Sa(o,o.return,b)}}function m6(a,o){Ht(a)?(Kt(),T0(o,a),dt()):T0(o,a)}function Yc(a,o,p){Ht(a)?(Kt(),Zv(p,a,o),dt()):Zv(p,a,o)}function r6(a){var o=a.updateQueue;if(o!==null){var p=a.stateNode;a.type.defaultProps||"ref"in a.memoizedProps||a0||(p.props!==a.memoizedProps&&console.error("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",U(a)||"instance"),p.state!==a.memoizedState&&console.error("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",U(a)||"instance"));try{g(a,vf,o,p)}catch(t){Sa(a,a.return,t)}}}function p$(a,o,p){return a.getSnapshotBeforeUpdate(o,p)}function t$(a,o){var{memoizedProps:p,memoizedState:t}=o;o=a.stateNode,a.type.defaultProps||"ref"in a.memoizedProps||a0||(o.props!==a.memoizedProps&&console.error("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",U(a)||"instance"),o.state!==a.memoizedState&&console.error("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",U(a)||"instance"));try{var m=Kr(a.type,p),r=g(a,p$,o,m,t);p=P8,r!==void 0||p.has(a.type)||(p.add(a.type),g(a,function(){console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",U(a))})),o.__reactInternalSnapshotBeforeUpdate=r}catch(v){Sa(a,a.return,v)}}function v6(a,o,p){p.props=Kr(a.type,a.memoizedProps),p.state=a.memoizedState,Ht(a)?(Kt(),g(a,r8,a,o,p),dt()):g(a,r8,a,o,p)}function m$(a){var o=a.ref;if(o!==null){switch(a.tag){case 26:case 27:case 5:var p=a.stateNode;break;case 30:p=a.stateNode;break;default:p=a.stateNode}if(typeof o==="function")if(Ht(a))try{Kt(),a.refCleanup=o(p)}finally{dt()}else a.refCleanup=o(p);else typeof o==="string"?console.error("String refs are no longer supported."):o.hasOwnProperty("current")||console.error("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",U(a)),o.current=p}}function S0(a,o){try{g(a,m$,a)}catch(p){Sa(a,o,p)}}function Wt(a,o){var{ref:p,refCleanup:t}=a;if(p!==null)if(typeof t==="function")try{if(Ht(a))try{Kt(),g(a,t)}finally{dt(a)}else g(a,t)}catch(m){Sa(a,o,m)}finally{a.refCleanup=null,a=a.alternate,a!=null&&(a.refCleanup=null)}else if(typeof p==="function")try{if(Ht(a))try{Kt(),g(a,p,null)}finally{dt(a)}else g(a,p,null)}catch(m){Sa(a,o,m)}else p.current=null}function i6(a,o,p,t){var m=a.memoizedProps,r=m.id,v=m.onCommit;m=m.onRender,o=o===null?"mount":"update",F2&&(o="nested-update"),typeof m==="function"&&m(r,o,a.actualDuration,a.treeBaseDuration,a.actualStartTime,p),typeof v==="function"&&v(r,o,t,p)}function r$(a,o,p,t){var m=a.memoizedProps;a=m.id,m=m.onPostCommit,o=o===null?"mount":"update",F2&&(o="nested-update"),typeof m==="function"&&m(a,o,t,p)}function b6(a){var{type:o,memoizedProps:p,stateNode:t}=a;try{g(a,h$,t,o,p,a)}catch(m){Sa(a,a.return,m)}}function Xc(a,o,p){try{g(a,k$,a.stateNode,a.type,p,o,a)}catch(t){Sa(a,a.return,t)}}function c6(a){return a.tag===5||a.tag===3||a.tag===26||a.tag===27&&Lm(a.type)||a.tag===4}function Zc(a){a:for(;;){for(;a.sibling===null;){if(a.return===null||c6(a.return))return null;a=a.return}a.sibling.return=a.return;for(a=a.sibling;a.tag!==5&&a.tag!==6&&a.tag!==18;){if(a.tag===27&&Lm(a.type))continue a;if(a.flags&2)continue a;if(a.child===null||a.tag===4)continue a;else a.child.return=a,a=a.child}if(!(a.flags&2))return a.stateNode}}function Gc(a,o,p){var t=a.tag;if(t===5||t===6)a=a.stateNode,o?(Yw(p),(p.nodeType===9?p.body:p.nodeName==="HTML"?p.ownerDocument.body:p).insertBefore(a,o)):(Yw(p),o=p.nodeType===9?p.body:p.nodeName==="HTML"?p.ownerDocument.body:p,o.appendChild(a),p=p._reactRootContainer,p!==null&&p!==void 0||o.onclick!==null||(o.onclick=xt));else if(t!==4&&(t===27&&Lm(a.type)&&(p=a.stateNode,o=null),a=a.child,a!==null))for(Gc(a,o,p),a=a.sibling;a!==null;)Gc(a,o,p),a=a.sibling}function e5(a,o,p){var t=a.tag;if(t===5||t===6)a=a.stateNode,o?p.insertBefore(a,o):p.appendChild(a);else if(t!==4&&(t===27&&Lm(a.type)&&(p=a.stateNode),a=a.child,a!==null))for(e5(a,o,p),a=a.sibling;a!==null;)e5(a,o,p),a=a.sibling}function v$(a){for(var o,p=a.return;p!==null;){if(c6(p)){o=p;break}p=p.return}if(o==null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");switch(o.tag){case 27:o=o.stateNode,p=Zc(a),e5(a,p,o);break;case 5:p=o.stateNode,o.flags&32&&(Jw(p),o.flags&=-33),o=Zc(a),e5(a,o,p);break;case 3:case 4:o=o.stateNode.containerInfo,p=Zc(a),Gc(a,p,o);break;default:throw Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function l6(a){var{stateNode:o,memoizedProps:p}=a;try{g(a,x$,a.type,p,o,a)}catch(t){Sa(a,a.return,t)}}function f6(a,o){return o.tag===31?(o=o.memoizedState,a.memoizedState!==null&&o===null):o.tag===13?(a=a.memoizedState,o=o.memoizedState,a!==null&&a.dehydrated!==null&&(o===null||o.dehydrated===null)):o.tag===3?a.memoizedState.isDehydrated&&(o.flags&256)===0:!1}function i$(a,o){if(a=a.containerInfo,Z3=Gb,a=Hl(a),p1(a)){if("selectionStart"in a)var p={start:a.selectionStart,end:a.selectionEnd};else a:{p=(p=a.ownerDocument)&&p.defaultView||window;var t=p.getSelection&&p.getSelection();if(t&&t.rangeCount!==0){p=t.anchorNode;var{anchorOffset:m,focusNode:r}=t;t=t.focusOffset;try{p.nodeType,r.nodeType}catch(u){p=null;break a}var v=0,i=-1,b=-1,l=0,Y=0,X=a,z=null;o:for(;;){for(var _;;){if(X!==p||m!==0&&X.nodeType!==3||(i=v+m),X!==r||t!==0&&X.nodeType!==3||(b=v+t),X.nodeType===3&&(v+=X.nodeValue.length),(_=X.firstChild)===null)break;z=X,X=_}for(;;){if(X===a)break o;if(z===p&&++l===m&&(i=v),z===r&&++Y===t&&(b=v),(_=X.nextSibling)!==null)break;X=z,z=X.parentNode}X=_}p=i===-1||b===-1?null:{start:i,end:b}}else p=null}p=p||{start:0,end:0}}else p=null;G3={focusedElem:a,selectionRange:p},Gb=!1;for(Po=o;Po!==null;)if(o=Po,a=o.child,(o.subtreeFlags&1028)!==0&&a!==null)a.return=o,Po=a;else for(;Po!==null;){switch(a=o=Po,p=a.alternate,m=a.flags,a.tag){case 0:if((m&4)!==0&&(a=a.updateQueue,a=a!==null?a.events:null,a!==null))for(p=0;p<a.length;p++)m=a[p],m.ref.impl=m.nextImpl;break;case 11:case 15:break;case 1:(m&1024)!==0&&p!==null&&t$(a,p);break;case 3:if((m&1024)!==0){if(a=a.stateNode.containerInfo,p=a.nodeType,p===9)Fc(a);else if(p===1)switch(a.nodeName){case"HEAD":case"HTML":case"BODY":Fc(a);break;default:a.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((m&1024)!==0)throw Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}if(a=o.sibling,a!==null){a.return=o.return,Po=a;break}Po=o.return}}function w6(a,o,p){var t=Bp(),m=qt(),r=_t(),v=Bt(),i=p.flags;switch(p.tag){case 0:case 11:case 15:Ut(a,p),i&4&&t6(p,Lp|jp);break;case 1:if(Ut(a,p),i&4)if(a=p.stateNode,o===null)p.type.defaultProps||"ref"in p.memoizedProps||a0||(a.props!==p.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",U(p)||"instance"),a.state!==p.memoizedState&&console.error("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",U(p)||"instance")),Ht(p)?(Kt(),g(p,P4,p,a),dt()):g(p,P4,p,a);else{var b=Kr(p.type,o.memoizedProps);o=o.memoizedState,p.type.defaultProps||"ref"in p.memoizedProps||a0||(a.props!==p.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",U(p)||"instance"),a.state!==p.memoizedState&&console.error("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",U(p)||"instance")),Ht(p)?(Kt(),g(p,p8,p,a,b,o,a.__reactInternalSnapshotBeforeUpdate),dt()):g(p,p8,p,a,b,o,a.__reactInternalSnapshotBeforeUpdate)}i&64&&r6(p),i&512&&S0(p,p.return);break;case 3:if(o=Et(),Ut(a,p),i&64&&(i=p.updateQueue,i!==null)){if(b=null,p.child!==null)switch(p.child.tag){case 27:case 5:b=p.child.stateNode;break;case 1:b=p.child.stateNode}try{g(p,vf,i,b)}catch(Y){Sa(p,p.return,Y)}}a.effectDuration+=H5(o);break;case 27:o===null&&i&4&&l6(p);case 26:case 5:if(Ut(a,p),o===null){if(i&4)b6(p);else if(i&64){a=p.type,o=p.memoizedProps,b=p.stateNode;try{g(p,y$,b,a,o,p)}catch(Y){Sa(p,p.return,Y)}}}i&512&&S0(p,p.return);break;case 12:if(i&4){i=Et(),Ut(a,p),a=p.stateNode,a.effectDuration+=L0(i);try{g(p,i6,p,o,Am,a.effectDuration)}catch(Y){Sa(p,p.return,Y)}}else Ut(a,p);break;case 31:Ut(a,p),i&4&&J6(a,p);break;case 13:Ut(a,p),i&4&&Y6(a,p),i&64&&(a=p.memoizedState,a!==null&&(a=a.dehydrated,a!==null&&(i=Y$.bind(null,p),A$(a,i))));break;case 22:if(i=p.memoizedState!==null||zm,!i){o=o!==null&&o.memoizedState!==null||Uo,b=zm;var l=Uo;zm=i,(Uo=o)&&!l?(ht(a,p,(p.subtreeFlags&8772)!==0),(p.mode&Ha)!==Xa&&0<=wa&&0<=Ja&&0.05<Ja-wa&&Y5(p,wa,Ja)):Ut(a,p),zm=b,Uo=l}break;case 30:break;default:Ut(a,p)}(p.mode&Ha)!==Xa&&0<=wa&&0<=Ja&&((Xo||0.05<$o)&&Zt(p,wa,Ja,$o,fo),p.alternate===null&&p.return!==null&&p.return.alternate!==null&&0.05<Ja-wa&&(f6(p.return.alternate,p.return)||Xt(p,wa,Ja,"Mount"))),dp(t),Qt(m),fo=r,Xo=v}function z6(a){var o=a.alternate;o!==null&&(a.alternate=null,z6(o)),a.child=null,a.deletions=null,a.sibling=null,a.tag===5&&(o=a.stateNode,o!==null&&Tb(o)),a.stateNode=null,a._debugOwner=null,a.return=null,a.dependencies=null,a.memoizedProps=null,a.memoizedState=null,a.pendingProps=null,a.stateNode=null,a.updateQueue=null}function am(a,o,p){for(p=p.child;p!==null;)$6(a,o,p),p=p.sibling}function $6(a,o,p){if(Do&&typeof Do.onCommitFiberUnmount==="function")try{Do.onCommitFiberUnmount(yv,p)}catch(l){Ot||(Ot=!0,console.error("React instrumentation encountered an error: %o",l))}var t=Bp(),m=qt(),r=_t(),v=Bt();switch(p.tag){case 26:Uo||Wt(p,o),am(a,o,p),p.memoizedState?p.memoizedState.count--:p.stateNode&&(a=p.stateNode,a.parentNode.removeChild(a));break;case 27:Uo||Wt(p,o);var i=ho,b=Jp;Lm(p.type)&&(ho=p.stateNode,Jp=!1),am(a,o,p),g(p,ai,p.stateNode),ho=i,Jp=b;break;case 5:Uo||Wt(p,o);case 6:if(i=ho,b=Jp,ho=null,am(a,o,p),ho=i,Jp=b,ho!==null)if(Jp)try{g(p,N$,ho,p.stateNode)}catch(l){Sa(p,o,l)}else try{g(p,L$,ho,p.stateNode)}catch(l){Sa(p,o,l)}break;case 18:ho!==null&&(Jp?(a=ho,Xw(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,p.stateNode),Hv(a)):Xw(ho,p.stateNode));break;case 4:i=ho,b=Jp,ho=p.stateNode.containerInfo,Jp=!0,am(a,o,p),ho=i,Jp=b;break;case 0:case 11:case 14:case 15:Zv(vp,p,o),Uo||Jc(p,o,Lp),am(a,o,p);break;case 1:Uo||(Wt(p,o),i=p.stateNode,typeof i.componentWillUnmount==="function"&&v6(p,o,i)),am(a,o,p);break;case 21:am(a,o,p);break;case 22:Uo=(i=Uo)||p.memoizedState!==null,am(a,o,p),Uo=i;break;default:am(a,o,p)}(p.mode&Ha)!==Xa&&0<=wa&&0<=Ja&&(Xo||0.05<$o)&&Zt(p,wa,Ja,$o,fo),dp(t),Qt(m),fo=r,Xo=v}function J6(a,o){if(o.memoizedState===null&&(a=o.alternate,a!==null&&(a=a.memoizedState,a!==null))){a=a.dehydrated;try{g(o,S$,a)}catch(p){Sa(o,o.return,p)}}}function Y6(a,o){if(o.memoizedState===null&&(a=o.alternate,a!==null&&(a=a.memoizedState,a!==null&&(a=a.dehydrated,a!==null))))try{g(o,u$,a)}catch(p){Sa(o,o.return,p)}}function b$(a){switch(a.tag){case 31:case 13:case 19:var o=a.stateNode;return o===null&&(o=a.stateNode=new C8),o;case 22:return a=a.stateNode,o=a._retryCache,o===null&&(o=a._retryCache=new C8),o;default:throw Error("Unexpected Suspense handler tag ("+a.tag+"). This is a bug in React.")}}function a2(a,o){var p=b$(a);o.forEach(function(t){if(!p.has(t)){if(p.add(t),Rt)if(o0!==null&&p0!==null)j0(p0,o0);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");var m=X$.bind(null,a,t);t.then(m,m)}})}function zp(a,o){var p=o.deletions;if(p!==null)for(var t=0;t<p.length;t++){var m=a,r=o,v=p[t],i=Bp(),b=r;a:for(;b!==null;){switch(b.tag){case 27:if(Lm(b.type)){ho=b.stateNode,Jp=!1;break a}break;case 5:ho=b.stateNode,Jp=!1;break a;case 3:case 4:ho=b.stateNode.containerInfo,Jp=!0;break a}b=b.return}if(ho===null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");$6(m,r,v),ho=null,Jp=!1,(v.mode&Ha)!==Xa&&0<=wa&&0<=Ja&&0.05<Ja-wa&&Xt(v,wa,Ja,"Unmount"),dp(i),m=v,r=m.alternate,r!==null&&(r.return=null),m.return=null}if(o.subtreeFlags&13886)for(o=o.child;o!==null;)X6(o,a),o=o.sibling}function X6(a,o){var p=Bp(),t=qt(),m=_t(),r=Bt(),v=a.alternate,i=a.flags;switch(a.tag){case 0:case 11:case 14:case 15:zp(o,a),$p(a),i&4&&(Zv(vp|jp,a,a.return),T0(vp|jp,a),Jc(a,a.return,Lp|jp));break;case 1:if(zp(o,a),$p(a),i&512&&(Uo||v===null||Wt(v,v.return)),i&64&&zm&&(i=a.updateQueue,i!==null&&(v=i.callbacks,v!==null))){var b=i.shared.hiddenCallbacks;i.shared.hiddenCallbacks=b===null?v:b.concat(v)}break;case 26:if(b=ft,zp(o,a),$p(a),i&512&&(Uo||v===null||Wt(v,v.return)),i&4){var l=v!==null?v.memoizedState:null;if(i=a.memoizedState,v===null)if(i===null)if(a.stateNode===null){a:{i=a.type,v=a.memoizedProps,b=b.ownerDocument||b;o:switch(i){case"title":if(l=b.getElementsByTagName("title")[0],!l||l[ii]||l[So]||l.namespaceURI===nv||l.hasAttribute("itemprop"))l=b.createElement(i),b.head.insertBefore(l,b.querySelector("head > title"));To(l,i,v),l[So]=a,Ro(l),i=l;break a;case"link":var Y=Uw("link","href",b).get(i+(v.href||""));if(Y){for(var X=0;X<Y.length;X++)if(l=Y[X],l.getAttribute("href")===(v.href==null||v.href===""?null:v.href)&&l.getAttribute("rel")===(v.rel==null?null:v.rel)&&l.getAttribute("title")===(v.title==null?null:v.title)&&l.getAttribute("crossorigin")===(v.crossOrigin==null?null:v.crossOrigin)){Y.splice(X,1);break o}}l=b.createElement(i),To(l,i,v),b.head.appendChild(l);break;case"meta":if(Y=Uw("meta","content",b).get(i+(v.content||""))){for(X=0;X<Y.length;X++)if(l=Y[X],Ia(v.content,"content"),l.getAttribute("content")===(v.content==null?null:""+v.content)&&l.getAttribute("name")===(v.name==null?null:v.name)&&l.getAttribute("property")===(v.property==null?null:v.property)&&l.getAttribute("http-equiv")===(v.httpEquiv==null?null:v.httpEquiv)&&l.getAttribute("charset")===(v.charSet==null?null:v.charSet)){Y.splice(X,1);break o}}l=b.createElement(i),To(l,i,v),b.head.appendChild(l);break;default:throw Error('getNodesForType encountered a type it did not expect: "'+i+'". This is a bug in React.')}l[So]=a,Ro(l),i=l}a.stateNode=i}else hw(b,a.type,a.stateNode);else a.stateNode=Ww(b,i,a.memoizedProps);else l!==i?(l===null?v.stateNode!==null&&(v=v.stateNode,v.parentNode.removeChild(v)):l.count--,i===null?hw(b,a.type,a.stateNode):Ww(b,i,a.memoizedProps)):i===null&&a.stateNode!==null&&Xc(a,a.memoizedProps,v.memoizedProps)}break;case 27:zp(o,a),$p(a),i&512&&(Uo||v===null||Wt(v,v.return)),v!==null&&i&4&&Xc(a,a.memoizedProps,v.memoizedProps);break;case 5:if(zp(o,a),$p(a),i&512&&(Uo||v===null||Wt(v,v.return)),a.flags&32){b=a.stateNode;try{g(a,Jw,b)}catch(e){Sa(a,a.return,e)}}i&4&&a.stateNode!=null&&(b=a.memoizedProps,Xc(a,b,v!==null?v.memoizedProps:b)),i&1024&&(e4=!0,a.type!=="form"&&console.error("Unexpected host component type. Expected a form. This is a bug in React."));break;case 6:if(zp(o,a),$p(a),i&4){if(a.stateNode===null)throw Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");i=a.memoizedProps,v=v!==null?v.memoizedProps:i,b=a.stateNode;try{g(a,n$,b,v,i)}catch(e){Sa(a,a.return,e)}}break;case 3:if(b=Et(),Yb=null,l=ft,ft=b2(o.containerInfo),zp(o,a),ft=l,$p(a),i&4&&v!==null&&v.memoizedState.isDehydrated)try{g(a,T$,o.containerInfo)}catch(e){Sa(a,a.return,e)}e4&&(e4=!1,Z6(a)),o.effectDuration+=H5(b);break;case 4:i=ft,ft=b2(a.stateNode.containerInfo),zp(o,a),$p(a),ft=i;break;case 12:i=Et(),zp(o,a),$p(a),a.stateNode.effectDuration+=L0(i);break;case 31:zp(o,a),$p(a),i&4&&(i=a.updateQueue,i!==null&&(a.updateQueue=null,a2(a,i)));break;case 13:zp(o,a),$p(a),a.child.flags&8192&&a.memoizedState!==null!==(v!==null&&v.memoizedState!==null)&&(ob=go()),i&4&&(i=a.updateQueue,i!==null&&(a.updateQueue=null,a2(a,i)));break;case 22:b=a.memoizedState!==null;var z=v!==null&&v.memoizedState!==null,_=zm,u=Uo;if(zm=_||b,Uo=u||z,zp(o,a),Uo=u,zm=_,z&&!b&&!_&&!u&&(a.mode&Ha)!==Xa&&0<=wa&&0<=Ja&&0.05<Ja-wa&&Y5(a,wa,Ja),$p(a),i&8192)a:for(o=a.stateNode,o._visibility=b?o._visibility&~Yi:o._visibility|Yi,!b||v===null||z||zm||Uo||(Hr(a),(a.mode&Ha)!==Xa&&0<=wa&&0<=Ja&&0.05<Ja-wa&&Xt(a,wa,Ja,"Disconnect")),v=null,o=a;;){if(o.tag===5||o.tag===26){if(v===null){z=v=o;try{l=z.stateNode,b?g(z,R$,l):g(z,F$,z.stateNode,z.memoizedProps)}catch(e){Sa(z,z.return,e)}}}else if(o.tag===6){if(v===null){z=o;try{Y=z.stateNode,b?g(z,M$,Y):g(z,P$,Y,z.memoizedProps)}catch(e){Sa(z,z.return,e)}}}else if(o.tag===18){if(v===null){z=o;try{X=z.stateNode,b?g(z,O$,X):g(z,g$,z.stateNode)}catch(e){Sa(z,z.return,e)}}}else if((o.tag!==22&&o.tag!==23||o.memoizedState===null||o===a)&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===a)break a;for(;o.sibling===null;){if(o.return===null||o.return===a)break a;v===o&&(v=null),o=o.return}v===o&&(v=null),o.sibling.return=o.return,o=o.sibling}i&4&&(i=a.updateQueue,i!==null&&(v=i.retryQueue,v!==null&&(i.retryQueue=null,a2(a,v))));break;case 19:zp(o,a),$p(a),i&4&&(i=a.updateQueue,i!==null&&(a.updateQueue=null,a2(a,i)));break;case 30:break;case 21:break;default:zp(o,a),$p(a)}(a.mode&Ha)!==Xa&&0<=wa&&0<=Ja&&((Xo||0.05<$o)&&Zt(a,wa,Ja,$o,fo),a.alternate===null&&a.return!==null&&a.return.alternate!==null&&0.05<Ja-wa&&(f6(a.return.alternate,a.return)||Xt(a,wa,Ja,"Mount"))),dp(p),Qt(t),fo=m,Xo=r}function $p(a){var o=a.flags;if(o&2){try{g(a,v$,a)}catch(p){Sa(a,a.return,p)}a.flags&=-3}o&4096&&(a.flags&=-4097)}function Z6(a){if(a.subtreeFlags&1024)for(a=a.child;a!==null;){var o=a;Z6(o),o.tag===5&&o.flags&1024&&o.stateNode.reset(),a=a.sibling}}function Ut(a,o){if(o.subtreeFlags&8772)for(o=o.child;o!==null;)w6(a,o.alternate,o),o=o.sibling}function G6(a){var o=Bp(),p=qt(),t=_t(),m=Bt();switch(a.tag){case 0:case 11:case 14:case 15:Jc(a,a.return,Lp),Hr(a);break;case 1:Wt(a,a.return);var r=a.stateNode;typeof r.componentWillUnmount==="function"&&v6(a,a.return,r),Hr(a);break;case 27:g(a,ai,a.stateNode);case 26:case 5:Wt(a,a.return),Hr(a);break;case 22:a.memoizedState===null&&Hr(a);break;case 30:Hr(a);break;default:Hr(a)}(a.mode&Ha)!==Xa&&0<=wa&&0<=Ja&&(Xo||0.05<$o)&&Zt(a,wa,Ja,$o,fo),dp(o),Qt(p),fo=t,Xo=m}function Hr(a){for(a=a.child;a!==null;)G6(a),a=a.sibling}function q6(a,o,p,t){var m=Bp(),r=qt(),v=_t(),i=Bt(),b=p.flags;switch(p.tag){case 0:case 11:case 15:ht(a,p,t),t6(p,Lp);break;case 1:if(ht(a,p,t),o=p.stateNode,typeof o.componentDidMount==="function"&&g(p,P4,p,o),o=p.updateQueue,o!==null){a=p.stateNode;try{g(p,Tz,o,a)}catch(l){Sa(p,p.return,l)}}t&&b&64&&r6(p),S0(p,p.return);break;case 27:l6(p);case 26:case 5:ht(a,p,t),t&&o===null&&b&4&&b6(p),S0(p,p.return);break;case 12:if(t&&b&4){b=Et(),ht(a,p,t),t=p.stateNode,t.effectDuration+=L0(b);try{g(p,i6,p,o,Am,t.effectDuration)}catch(l){Sa(p,p.return,l)}}else ht(a,p,t);break;case 31:ht(a,p,t),t&&b&4&&J6(a,p);break;case 13:ht(a,p,t),t&&b&4&&Y6(a,p);break;case 22:p.memoizedState===null&&ht(a,p,t),S0(p,p.return);break;case 30:break;default:ht(a,p,t)}(p.mode&Ha)!==Xa&&0<=wa&&0<=Ja&&(Xo||0.05<$o)&&Zt(p,wa,Ja,$o,fo),dp(m),Qt(r),fo=v,Xo=i}function ht(a,o,p){p=p&&(o.subtreeFlags&8772)!==0;for(o=o.child;o!==null;)q6(a,o.alternate,o,p),o=o.sibling}function qc(a,o){var p=null;a!==null&&a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(p=a.memoizedState.cachePool.pool),a=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(a=o.memoizedState.cachePool.pool),a!==p&&(a!=null&&Qr(a),p!=null&&n0(p))}function Qc(a,o){a=null,o.alternate!==null&&(a=o.alternate.memoizedState.cache),o=o.memoizedState.cache,o!==a&&(Qr(o),a!=null&&n0(a))}function rt(a,o,p,t,m){if(o.subtreeFlags&10256||o.actualDuration!==0&&(o.alternate===null||o.alternate.child!==o.child))for(o=o.child;o!==null;){var r=o.sibling;Q6(a,o,p,t,r!==null?r.actualStartTime:m),o=r}}function Q6(a,o,p,t,m){var r=Bp(),v=qt(),i=_t(),b=Bt(),l=Fm,Y=o.flags;switch(o.tag){case 0:case 11:case 15:(o.mode&Ha)!==Xa&&0<o.actualStartTime&&(o.flags&1)!==0&&X5(o,o.actualStartTime,m,No,p),rt(a,o,p,t,m),Y&2048&&m6(o,ip|jp);break;case 1:(o.mode&Ha)!==Xa&&0<o.actualStartTime&&((o.flags&128)!==0?m1(o,o.actualStartTime,m,[]):(o.flags&1)!==0&&X5(o,o.actualStartTime,m,No,p)),rt(a,o,p,t,m);break;case 3:var X=Et(),z=No;No=o.alternate!==null&&o.alternate.memoizedState.isDehydrated&&(o.flags&256)===0,rt(a,o,p,t,m),No=z,Y&2048&&(p=null,o.alternate!==null&&(p=o.alternate.memoizedState.cache),t=o.memoizedState.cache,t!==p&&(Qr(t),p!=null&&n0(p))),a.passiveEffectDuration+=H5(X);break;case 12:if(Y&2048){Y=Et(),rt(a,o,p,t,m),a=o.stateNode,a.passiveEffectDuration+=L0(Y);try{g(o,r$,o,o.alternate,Am,a.passiveEffectDuration)}catch(_){Sa(o,o.return,_)}}else rt(a,o,p,t,m);break;case 31:Y=No,X=o.alternate!==null?o.alternate.memoizedState:null,z=o.memoizedState,X!==null&&z===null?(z=o.deletions,z!==null&&0<z.length&&z[0].tag===18?(No=!1,X=X.hydrationErrors,X!==null&&m1(o,o.actualStartTime,m,X)):No=!0):No=!1,rt(a,o,p,t,m),No=Y;break;case 13:Y=No,X=o.alternate!==null?o.alternate.memoizedState:null,z=o.memoizedState,X===null||X.dehydrated===null||z!==null&&z.dehydrated!==null?No=!1:(z=o.deletions,z!==null&&0<z.length&&z[0].tag===18?(No=!1,X=X.hydrationErrors,X!==null&&m1(o,o.actualStartTime,m,X)):No=!0),rt(a,o,p,t,m),No=Y;break;case 23:break;case 22:z=o.stateNode,X=o.alternate,o.memoizedState!==null?z._visibility&tm?rt(a,o,p,t,m):u0(a,o,p,t,m):z._visibility&tm?rt(a,o,p,t,m):(z._visibility|=tm,Gv(a,o,p,t,(o.subtreeFlags&10256)!==0||o.actualDuration!==0&&(o.alternate===null||o.alternate.child!==o.child),m),(o.mode&Ha)===Xa||No||(a=o.actualStartTime,0<=a&&0.05<m-a&&Y5(o,a,m),0<=wa&&0<=Ja&&0.05<Ja-wa&&Y5(o,wa,Ja))),Y&2048&&qc(X,o);break;case 24:rt(a,o,p,t,m),Y&2048&&Qc(o.alternate,o);break;default:rt(a,o,p,t,m)}if((o.mode&Ha)!==Xa){if(a=!No&&o.alternate===null&&o.return!==null&&o.return.alternate!==null)p=o.actualStartTime,0<=p&&0.05<m-p&&Xt(o,p,m,"Mount");0<=wa&&0<=Ja&&((Xo||0.05<$o)&&Zt(o,wa,Ja,$o,fo),a&&0.05<Ja-wa&&Xt(o,wa,Ja,"Mount"))}dp(r),Qt(v),fo=i,Xo=b,Fm=l}function Gv(a,o,p,t,m,r){m=m&&((o.subtreeFlags&10256)!==0||o.actualDuration!==0&&(o.alternate===null||o.alternate.child!==o.child));for(o=o.child;o!==null;){var v=o.sibling;_6(a,o,p,t,m,v!==null?v.actualStartTime:r),o=v}}function _6(a,o,p,t,m,r){var v=Bp(),i=qt(),b=_t(),l=Bt(),Y=Fm;m&&(o.mode&Ha)!==Xa&&0<o.actualStartTime&&(o.flags&1)!==0&&X5(o,o.actualStartTime,r,No,p);var X=o.flags;switch(o.tag){case 0:case 11:case 15:Gv(a,o,p,t,m,r),m6(o,ip);break;case 23:break;case 22:var z=o.stateNode;o.memoizedState!==null?z._visibility&tm?Gv(a,o,p,t,m,r):u0(a,o,p,t,r):(z._visibility|=tm,Gv(a,o,p,t,m,r)),m&&X&2048&&qc(o.alternate,o);break;case 24:Gv(a,o,p,t,m,r),m&&X&2048&&Qc(o.alternate,o);break;default:Gv(a,o,p,t,m,r)}(o.mode&Ha)!==Xa&&0<=wa&&0<=Ja&&(Xo||0.05<$o)&&Zt(o,wa,Ja,$o,fo),dp(v),Qt(i),fo=b,Xo=l,Fm=Y}function u0(a,o,p,t,m){if(o.subtreeFlags&10256||o.actualDuration!==0&&(o.alternate===null||o.alternate.child!==o.child))for(var r=o.child;r!==null;){o=r.sibling;var v=a,i=p,b=t,l=o!==null?o.actualStartTime:m,Y=Fm;(r.mode&Ha)!==Xa&&0<r.actualStartTime&&(r.flags&1)!==0&&X5(r,r.actualStartTime,l,No,i);var X=r.flags;switch(r.tag){case 22:u0(v,r,i,b,l),X&2048&&qc(r.alternate,r);break;case 24:u0(v,r,i,b,l),X&2048&&Qc(r.alternate,r);break;default:u0(v,r,i,b,l)}Fm=Y,r=o}}function qv(a,o,p){if(a.subtreeFlags&Ri)for(a=a.child;a!==null;)B6(a,o,p),a=a.sibling}function B6(a,o,p){switch(a.tag){case 26:qv(a,o,p),a.flags&Ri&&a.memoizedState!==null&&D$(p,ft,a.memoizedState,a.memoizedProps);break;case 5:qv(a,o,p);break;case 3:case 4:var t=ft;ft=b2(a.stateNode.containerInfo),qv(a,o,p),ft=t;break;case 22:a.memoizedState===null&&(t=a.alternate,t!==null&&t.memoizedState!==null?(t=Ri,Ri=16777216,qv(a,o,p),Ri=t):qv(a,o,p));break;default:qv(a,o,p)}}function d6(a){var o=a.alternate;if(o!==null&&(a=o.child,a!==null)){o.child=null;do o=a.sibling,a.sibling=null,a=o;while(a!==null)}}function x0(a){var o=a.deletions;if((a.flags&16)!==0){if(o!==null)for(var p=0;p<o.length;p++){var t=o[p],m=Bp();Po=t,W6(t,a),(t.mode&Ha)!==Xa&&0<=wa&&0<=Ja&&0.05<Ja-wa&&Xt(t,wa,Ja,"Unmount"),dp(m)}d6(a)}if(a.subtreeFlags&10256)for(a=a.child;a!==null;)K6(a),a=a.sibling}function K6(a){var o=Bp(),p=qt(),t=_t(),m=Bt();switch(a.tag){case 0:case 11:case 15:x0(a),a.flags&2048&&Yc(a,a.return,ip|jp);break;case 3:var r=Et();x0(a),a.stateNode.passiveEffectDuration+=H5(r);break;case 12:r=Et(),x0(a),a.stateNode.passiveEffectDuration+=L0(r);break;case 22:r=a.stateNode,a.memoizedState!==null&&r._visibility&tm&&(a.return===null||a.return.tag!==13)?(r._visibility&=~tm,o2(a),(a.mode&Ha)!==Xa&&0<=wa&&0<=Ja&&0.05<Ja-wa&&Xt(a,wa,Ja,"Disconnect")):x0(a);break;default:x0(a)}(a.mode&Ha)!==Xa&&0<=wa&&0<=Ja&&(Xo||0.05<$o)&&Zt(a,wa,Ja,$o,fo),dp(o),Qt(p),Xo=m,fo=t}function o2(a){var o=a.deletions;if((a.flags&16)!==0){if(o!==null)for(var p=0;p<o.length;p++){var t=o[p],m=Bp();Po=t,W6(t,a),(t.mode&Ha)!==Xa&&0<=wa&&0<=Ja&&0.05<Ja-wa&&Xt(t,wa,Ja,"Unmount"),dp(m)}d6(a)}for(a=a.child;a!==null;)H6(a),a=a.sibling}function H6(a){var o=Bp(),p=qt(),t=_t(),m=Bt();switch(a.tag){case 0:case 11:case 15:Yc(a,a.return,ip),o2(a);break;case 22:var r=a.stateNode;r._visibility&tm&&(r._visibility&=~tm,o2(a));break;default:o2(a)}(a.mode&Ha)!==Xa&&0<=wa&&0<=Ja&&(Xo||0.05<$o)&&Zt(a,wa,Ja,$o,fo),dp(o),Qt(p),Xo=m,fo=t}function W6(a,o){for(;Po!==null;){var p=Po,t=p,m=o,r=Bp(),v=qt(),i=_t(),b=Bt();switch(t.tag){case 0:case 11:case 15:Yc(t,m,ip);break;case 23:case 22:t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(m=t.memoizedState.cachePool.pool,m!=null&&Qr(m));break;case 24:n0(t.memoizedState.cache)}if((t.mode&Ha)!==Xa&&0<=wa&&0<=Ja&&(Xo||0.05<$o)&&Zt(t,wa,Ja,$o,fo),dp(r),Qt(v),Xo=b,fo=i,t=p.child,t!==null)t.return=p,Po=t;else a:for(p=a;Po!==null;){if(t=Po,r=t.sibling,v=t.return,z6(t),t===p){Po=null;break a}if(r!==null){r.return=v,Po=r;break a}Po=v}}}function c$(){yY.forEach(function(a){return a()})}function U6(){var a=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return a||K.actQueue===null||console.error("The current testing environment is not configured to support act(...)"),a}function Hp(a){if((Pa&Oo)!==Co&&Ua!==0)return Ua&-Ua;var o=K.T;return o!==null?(o._updatedFibers||(o._updatedFibers=new Set),o._updatedFibers.add(a),hc()):A3()}function h6(){if(Xp===0)if((Ua&536870912)===0||Oa){var a=q2;q2<<=1,(q2&3932160)===0&&(q2=262144),Xp=a}else Xp=536870912;return a=np.current,a!==null&&(a.flags|=32),Xp}function Yo(a,o,p){if(r0&&console.error("useInsertionEffect must not schedule updates."),l3&&(rb=!0),a===ao&&(ja===Cr||ja===Ir)||a.cancelPendingCommit!==null)_v(a,0),km(a,Ua,Xp,!1);if(Q0(a,p),(Pa&Oo)!==Co&&a===ao){if(Nt)switch(o.tag){case 0:case 11:case 15:a=ha&&U(ha)||"Unknown",p9.has(a)||(p9.add(a),o=U(o)||"Unknown",console.error("Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://react.dev/link/setstate-in-render",o,a,a));break;case 1:o9||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),o9=!0)}}else Rt&&C3(a,o,p),G$(o),a===ao&&((Pa&Oo)===Co&&(sm|=p),Jo===jm&&km(a,Ua,Xp,!1)),yt(a)}function y6(a,o,p){if((Pa&(Oo|Np))!==Co)throw Error("Should not already be working.");if(Ua!==0&&ha!==null){var t=ha,m=go();switch(V7){case Fi:case Cr:var r=_i;ro&&((t=t._debugTask)?t.run(console.timeStamp.bind(console,"Suspended",r,m,Cp,void 0,"primary-light")):console.timeStamp("Suspended",r,m,Cp,void 0,"primary-light"));break;case Ir:r=_i,ro&&((t=t._debugTask)?t.run(console.timeStamp.bind(console,"Action",r,m,Cp,void 0,"primary-light")):console.timeStamp("Action",r,m,Cp,void 0,"primary-light"));break;default:ro&&(t=m-_i,3>t||console.timeStamp("Blocked",_i,m,Cp,void 0,5>t?"primary-light":10>t?"primary":100>t?"primary-dark":"error"))}}r=(p=!p&&(o&127)===0&&(o&a.expiredLanes)===0||q0(a,o))?f$(a,o):Bc(a,o,!0);var v=p;do{if(r===$m){t0&&!p&&km(a,o,0,!1),o=ja,_i=Ko(),V7=o;break}else{if(t=go(),m=a.current.alternate,v&&!l$(m)){Qp(o),m=Fo,r=t,!ro||r<=m||(Go?Go.run(console.timeStamp.bind(console,"Teared Render",m,r,Na,na,"error")):console.timeStamp("Teared Render",m,r,Na,na,"error")),Wr(o,t),r=Bc(a,o,!1),v=!1;continue}if(r===Pr){if(v=o,a.errorRecoveryDisabledLanes&v)var i=0;else i=a.pendingLanes&-536870913,i=i!==0?i:i&536870912?536870912:0;if(i!==0){Qp(o),r1(Fo,t,o,Go),Wr(o,t),o=i;a:{t=a,r=v,v=Ci;var b=t.current.memoizedState.isDehydrated;if(b&&(_v(t,i).flags|=256),i=Bc(t,i,!1),i!==Pr){if(p3&&!b){t.errorRecoveryDisabledLanes|=r,sm|=r,r=jm;break a}t=bp,bp=v,t!==null&&(bp===null?bp=t:bp.push.apply(bp,t))}r=i}if(v=!1,r!==Pr)continue;else t=go()}}if(r===gi){Qp(o),r1(Fo,t,o,Go),Wr(o,t),_v(a,0),km(a,o,0,!0);break}a:{switch(p=a,r){case $m:case gi:throw Error("Root did not complete. This is a bug in React.");case jm:if((o&4194048)!==o)break;case E2:Qp(o),hl(Fo,t,o,Go),Wr(o,t),m=o,(m&127)!==0?R2=t:(m&4194048)!==0&&(M2=t),km(p,o,Xp,!Dm);break a;case Pr:bp=null;break;case D2:case I8:break;default:throw Error("Unknown root exit status.")}if(K.actQueue!==null)dc(p,m,o,bp,Ii,ab,Xp,sm,Ar,r,null,null,Fo,t);else{if((o&62914560)===o&&(v=ob+S8-go(),10<v)){if(km(p,o,Xp,!Dm),i5(p,0,!0)!==0)break a;wt=o,p.timeoutHandle=l9(k6.bind(null,p,m,bp,Ii,ab,o,Xp,sm,Ar,Dm,r,"Throttled",Fo,t),v);break a}k6(p,m,bp,Ii,ab,o,Xp,sm,Ar,Dm,r,null,Fo,t)}}}break}while(1);yt(a)}function k6(a,o,p,t,m,r,v,i,b,l,Y,X,z,_){a.timeoutHandle=Vr;var u=o.subtreeFlags,e=null;if(u&8192||(u&16785408)===16785408){if(e={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:xt},B6(o,r,e),u=(r&62914560)===r?ob-go():(r&4194048)===r?T8-go():0,u=E$(e,u),u!==null){wt=r,a.cancelPendingCommit=u(dc.bind(null,a,o,r,p,t,m,v,i,b,Y,e,e.waitingForViewTransition?"Waiting for the previous Animation":0<e.count?0<e.imgCount?"Suspended on CSS and Images":"Suspended on CSS":e.imgCount===1?"Suspended on an Image":0<e.imgCount?"Suspended on Images":null,z,_)),km(a,r,v,!l);return}}dc(a,o,r,p,t,m,v,i,b,Y,e,X,z,_)}function l$(a){for(var o=a;;){var p=o.tag;if((p===0||p===11||p===15)&&o.flags&16384&&(p=o.updateQueue,p!==null&&(p=p.stores,p!==null)))for(var t=0;t<p.length;t++){var m=p[t],r=m.getSnapshot;m=m.value;try{if(!mp(r(),m))return!1}catch(v){return!1}}if(p=o.child,o.subtreeFlags&16384&&p!==null)p.return=o,o=p;else{if(o===a)break;for(;o.sibling===null;){if(o.return===null||o.return===a)return!0;o=o.return}o.sibling.return=o.return,o=o.sibling}}return!0}function km(a,o,p,t){o&=~t3,o&=~sm,a.suspendedLanes|=o,a.pingedLanes&=~o,t&&(a.warmLanes|=o),t=a.expirationTimes;for(var m=o;0<m;){var r=31-op(m),v=1<<r;t[r]=-1,m&=~v}p!==0&&g3(a,p,o)}function Qv(){return(Pa&(Oo|Np))===Co?(D0(0,!1),!1):!0}function _c(){if(ha!==null){if(ja===Yp)var a=ha.return;else a=ha,B5(),L1(a),Vv=null,ki=0,a=ha;for(;a!==null;)p6(a.alternate,a),a=a.return;ha=null}}function Wr(a,o){(a&127)!==0&&(Tm=o),(a&4194048)!==0&&(Ct=o),(a&62914560)!==0&&(u7=o),(a&2080374784)!==0&&(x7=o)}function _v(a,o){ro&&(console.timeStamp("Blocking Track",0.003,0.003,"Blocking",na,"primary-light"),console.timeStamp("Transition Track",0.003,0.003,"Transition",na,"primary-light"),console.timeStamp("Suspense Track",0.003,0.003,"Suspense",na,"primary-light"),console.timeStamp("Idle Track",0.003,0.003,"Idle",na,"primary-light"));var p=Fo;if(Fo=Ko(),Ua!==0&&0<p){if(Qp(Ua),Jo===D2||Jo===jm)hl(p,Fo,o,Go);else{var t=Fo,m=Go;if(ro&&!(t<=p)){var r=(o&738197653)===o?"tertiary-dark":"primary-dark",v=(o&536870912)===o?"Prewarm":(o&201326741)===o?"Interrupted Hydration":"Interrupted Render";m?m.run(console.timeStamp.bind(console,v,p,t,Na,na,r)):console.timeStamp(v,p,t,Na,na,r)}}Wr(Ua,Fo)}if(p=Go,Go=null,(o&127)!==0){Go=Gi,m=0<=Pt&&Pt<Tm?Tm:Pt,t=0<=nr&&nr<Tm?Tm:nr,r=0<=t?t:0<=m?m:Fo,0<=R2?(Qp(2),yl(R2,r,o,p)):(g2&127)!==0&&(Qp(2),y0(Tm,r,cm)),p=m;var i=t,b=qi,l=0<Sv,Y=Sm===Zi,X=Sm===O2;if(m=Fo,t=Gi,r=O4,v=R4,ro){if(Na="Blocking",0<p?p>m&&(p=m):p=m,0<i?i>p&&(i=p):i=p,b!==null&&p>i){var z=l?"secondary-light":"warning";t?t.run(console.timeStamp.bind(console,l?"Consecutive":"Event: "+b,i,p,Na,na,z)):console.timeStamp(l?"Consecutive":"Event: "+b,i,p,Na,na,z)}m>p&&(i=Y?"error":(o&738197653)===o?"tertiary-light":"primary-light",Y=X?"Promise Resolved":Y?"Cascading Update":5<m-p?"Update Blocked":"Update",X=[],v!=null&&X.push(["Component name",v]),r!=null&&X.push(["Method name",r]),p={start:p,end:m,detail:{devtools:{properties:X,track:Na,trackGroup:na,color:i}}},t?t.run(performance.measure.bind(performance,Y,p)):performance.measure(Y,p))}Pt=-1.1,Sm=0,R4=O4=null,R2=-1.1,Sv=nr,nr=-1.1,Tm=Ko()}if((o&4194048)!==0&&(Go=Qi,m=0<=bm&&bm<Ct?Ct:bm,p=0<=xp&&xp<Ct?Ct:xp,t=0<=um&&um<Ct?Ct:um,r=0<=t?t:0<=p?p:Fo,0<=M2?(Qp(256),yl(M2,r,o,Go)):(g2&4194048)!==0&&(Qp(256),y0(Ct,r,cm)),X=t,i=Lr,b=0<xm,l=M4===O2,r=Fo,t=Qi,v=T7,Y=S7,ro&&(Na="Transition",0<p?p>r&&(p=r):p=r,0<m?m>p&&(m=p):m=p,0<X?X>m&&(X=m):X=m,m>X&&i!==null&&(z=b?"secondary-light":"warning",t?t.run(console.timeStamp.bind(console,b?"Consecutive":"Event: "+i,X,m,Na,na,z)):console.timeStamp(b?"Consecutive":"Event: "+i,X,m,Na,na,z)),p>m&&(t?t.run(console.timeStamp.bind(console,"Action",m,p,Na,na,"primary-dark")):console.timeStamp("Action",m,p,Na,na,"primary-dark")),r>p&&(m=l?"Promise Resolved":5<r-p?"Update Blocked":"Update",X=[],Y!=null&&X.push(["Component name",Y]),v!=null&&X.push(["Method name",v]),p={start:p,end:r,detail:{devtools:{properties:X,track:Na,trackGroup:na,color:"primary-light"}}},t?t.run(performance.measure.bind(performance,m,p)):performance.measure(m,p))),xp=bm=-1.1,M4=0,M2=-1.1,xm=um,um=-1.1,Ct=Ko()),(o&62914560)!==0&&(g2&62914560)!==0&&(Qp(4194304),y0(u7,Fo,cm)),(o&2080374784)!==0&&(g2&2080374784)!==0&&(Qp(268435456),y0(x7,Fo,cm)),p=a.timeoutHandle,p!==Vr&&(a.timeoutHandle=Vr,AY(p)),p=a.cancelPendingCommit,p!==null&&(a.cancelPendingCommit=null,p()),wt=0,_c(),ao=a,ha=p=Vt(a.current,null),Ua=o,ja=Yp,Op=null,Dm=!1,t0=q0(a,o),p3=!1,Jo=$m,Ar=Xp=t3=sm=Em=0,bp=Ci=null,ab=!1,(o&8)!==0&&(o|=o&32),t=a.entangledLanes,t!==0)for(a=a.entanglements,t&=o;0<t;)m=31-op(t),r=1<<m,o|=a[m],t&=~r;return At=o,Z5(),a=g7(),1000<a-M7&&(K.recentlyCreatedOwnerStacks=0,M7=a),ct.discardPendingWarnings(),p}function n6(a,o){qa=null,K.H=Oi,K.getCurrentStack=null,Nt=!1,hp=null,o===xv||o===I2?(o=sl(),ja=Fi):o===C4?(o=sl(),ja=A8):ja=o===E4?o3:o!==null&&typeof o==="object"&&typeof o.then==="function"?Pi:s2,Op=o;var p=ha;p===null?(Jo=gi,V5(a,_p(o,a.current))):p.mode&Ha&&q1(p)}function L6(){var a=np.current;return a===null?!0:(Ua&4194048)===Ua?Vp===null?!0:!1:(Ua&62914560)===Ua||(Ua&536870912)!==0?a===Vp:!1}function N6(){var a=K.H;return K.H=Oi,a===null?Oi:a}function O6(){var a=K.A;return K.A=hY,a}function p2(a){Go===null&&(Go=a._debugTask==null?null:a._debugTask)}function t2(){Jo=jm,Dm||(Ua&4194048)!==Ua&&np.current!==null||(t0=!0),(Em&134217727)===0&&(sm&134217727)===0||ao===null||km(ao,Ua,Xp,!1)}function Bc(a,o,p){var t=Pa;Pa|=Oo;var m=N6(),r=O6();if(ao!==a||Ua!==o){if(Rt){var v=a.memoizedUpdaters;0<v.size&&(j0(a,Ua),v.clear()),I3(a,o)}Ii=null,_v(a,o)}o=!1,v=Jo;a:do try{if(ja!==Yp&&ha!==null){var i=ha,b=Op;switch(ja){case o3:_c(),v=E2;break a;case Fi:case Cr:case Ir:case Pi:np.current===null&&(o=!0);var l=ja;if(ja=Yp,Op=null,Bv(a,i,b,l),p&&t0){v=$m;break a}break;default:l=ja,ja=Yp,Op=null,Bv(a,i,b,l)}}R6(),v=Jo;break}catch(Y){n6(a,Y)}while(1);return o&&a.shellSuspendCounter++,B5(),Pa=t,K.H=m,K.A=r,ha===null&&(ao=null,Ua=0,Z5()),v}function R6(){for(;ha!==null;)M6(ha)}function f$(a,o){var p=Pa;Pa|=Oo;var t=N6(),m=O6();if(ao!==a||Ua!==o){if(Rt){var r=a.memoizedUpdaters;0<r.size&&(j0(a,Ua),r.clear()),I3(a,o)}Ii=null,pb=go()+u8,_v(a,o)}else t0=q0(a,o);a:do try{if(ja!==Yp&&ha!==null)o:switch(o=ha,r=Op,ja){case s2:ja=Yp,Op=null,Bv(a,o,r,s2);break;case Cr:case Ir:if(Dl(r)){ja=Yp,Op=null,g6(o);break}o=function(){ja!==Cr&&ja!==Ir||ao!==a||(ja=e2),yt(a)},r.then(o,o);break a;case Fi:ja=e2;break a;case A8:ja=a3;break a;case e2:Dl(r)?(ja=Yp,Op=null,g6(o)):(ja=Yp,Op=null,Bv(a,o,r,e2));break;case a3:var v=null;switch(ha.tag){case 26:v=ha.memoizedState;case 5:case 27:var i=ha;if(v?yw(v):i.stateNode.complete){ja=Yp,Op=null;var b=i.sibling;if(b!==null)ha=b;else{var l=i.return;l!==null?(ha=l,m2(l)):ha=null}break o}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.")}ja=Yp,Op=null,Bv(a,o,r,a3);break;case Pi:ja=Yp,Op=null,Bv(a,o,r,Pi);break;case o3:_c(),Jo=E2;break a;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}K.actQueue!==null?R6():w$();break}catch(Y){n6(a,Y)}while(1);if(B5(),K.H=t,K.A=m,Pa=p,ha!==null)return $m;return ao=null,Ua=0,Z5(),Jo}function w$(){for(;ha!==null&&!lJ();)M6(ha)}function M6(a){var o=a.alternate;(a.mode&Ha)!==Xa?(G1(a),o=g(a,zc,o,a,At),q1(a)):o=g(a,zc,o,a,At),a.memoizedProps=a.pendingProps,o===null?m2(a):ha=o}function g6(a){var o=g(a,z$,a);a.memoizedProps=a.pendingProps,o===null?m2(a):ha=o}function z$(a){var o=a.alternate,p=(a.mode&Ha)!==Xa;switch(p&&G1(a),a.tag){case 15:case 0:o=jf(o,a,a.pendingProps,a.type,void 0,Ua);break;case 11:o=jf(o,a,a.pendingProps,a.type.render,a.ref,Ua);break;case 5:L1(a);default:p6(o,a),a=ha=Rl(a,At),o=zc(o,a,At)}return p&&q1(a),o}function Bv(a,o,p,t){B5(),L1(o),Vv=null,ki=0;var m=o.return;try{if(Ez(a,m,o,p,Ua)){Jo=gi,V5(a,_p(p,a.current)),ha=null;return}}catch(r){if(m!==null)throw ha=m,r;Jo=gi,V5(a,_p(p,a.current)),ha=null;return}if(o.flags&32768){if(Oa||t===s2)a=!0;else if(t0||(Ua&536870912)!==0)a=!1;else if(Dm=a=!0,t===Cr||t===Ir||t===Fi||t===Pi)t=np.current,t!==null&&t.tag===13&&(t.flags|=16384);F6(o,a)}else m2(o)}function m2(a){var o=a;do{if((o.flags&32768)!==0){F6(o,Dm);return}var p=o.alternate;if(a=o.return,G1(o),p=g(o,a$,p,o,At),(o.mode&Ha)!==Xa&&Sl(o),p!==null){ha=p;return}if(o=o.sibling,o!==null){ha=o;return}ha=o=a}while(o!==null);Jo===$m&&(Jo=I8)}function F6(a,o){do{var p=o$(a.alternate,a);if(p!==null){p.flags&=32767,ha=p;return}if((a.mode&Ha)!==Xa){Sl(a),p=a.actualDuration;for(var t=a.child;t!==null;)p+=t.actualDuration,t=t.sibling;a.actualDuration=p}if(p=a.return,p!==null&&(p.flags|=32768,p.subtreeFlags=0,p.deletions=null),!o&&(a=a.sibling,a!==null)){ha=a;return}ha=a=p}while(a!==null);Jo=E2,ha=null}function dc(a,o,p,t,m,r,v,i,b,l,Y,X,z,_){a.cancelPendingCommit=null;do V0();while(yo!==ar);if(ct.flushLegacyContextWarning(),ct.flushPendingUnsafeLifecycleWarnings(),(Pa&(Oo|Np))!==Co)throw Error("Should not already be working.");if(Qp(p),l===Pr?r1(z,_,p,Go):t!==null?gz(z,_,p,t,o!==null&&o.alternate!==null&&o.alternate.memoizedState.isDehydrated&&(o.flags&256)!==0,Go):Mz(z,_,p,Go),o!==null){if(p===0&&console.error("finishedLanes should not be empty during a commit. This is a bug in React."),o===a.current)throw Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");if(r=o.lanes|o.childLanes,r|=y4,Yz(a,p,r,v,i,b),a===ao&&(ha=ao=null,Ua=0),m0=o,or=a,wt=p,v3=r,b3=m,s8=t,i3=_,e8=X,zt=tb,a9=null,o.actualDuration!==0||(o.subtreeFlags&10256)!==0||(o.flags&10256)!==0?(a.callbackNode=null,a.callbackPriority=0,Z$(hv,function(){return Vi=window.event,zt===tb&&(zt=r3),T6(),null})):(a.callbackNode=null,a.callbackPriority=0),im=null,Am=Ko(),X!==null&&Fz(_,Am,X,Go),t=(o.flags&13878)!==0,(o.subtreeFlags&13878)!==0||t){t=K.T,K.T=null,m=ua.p,ua.p=yp,v=Pa,Pa|=Np;try{i$(a,o,p)}finally{Pa=v,ua.p=m,K.T=t}}yo=V8,P6(),C6(),I6()}}function P6(){if(yo===V8){yo=ar;var a=or,o=m0,p=wt,t=(o.flags&13878)!==0;if((o.subtreeFlags&13878)!==0||t){t=K.T,K.T=null;var m=ua.p;ua.p=yp;var r=Pa;Pa|=Np;try{o0=p,p0=a,W5(),X6(o,a),p0=o0=null,p=G3;var v=Hl(a.containerInfo),i=p.focusedElem,b=p.selectionRange;if(v!==i&&i&&i.ownerDocument&&Kl(i.ownerDocument.documentElement,i)){if(b!==null&&p1(i)){var{start:l,end:Y}=b;if(Y===void 0&&(Y=l),"selectionStart"in i)i.selectionStart=l,i.selectionEnd=Math.min(Y,i.value.length);else{var X=i.ownerDocument||document,z=X&&X.defaultView||window;if(z.getSelection){var _=z.getSelection(),u=i.textContent.length,e=Math.min(b.start,u),to=b.end===void 0?e:Math.min(b.end,u);!_.extend&&e>to&&(v=to,to=e,e=v);var Ma=dl(i,e),w=dl(i,to);if(Ma&&w&&(_.rangeCount!==1||_.anchorNode!==Ma.node||_.anchorOffset!==Ma.offset||_.focusNode!==w.node||_.focusOffset!==w.offset)){var $=X.createRange();$.setStart(Ma.node,Ma.offset),_.removeAllRanges(),e>to?(_.addRange($),_.extend(w.node,w.offset)):($.setEnd(w.node,w.offset),_.addRange($))}}}}X=[];for(_=i;_=_.parentNode;)_.nodeType===1&&X.push({element:_,left:_.scrollLeft,top:_.scrollTop});typeof i.focus==="function"&&i.focus();for(i=0;i<X.length;i++){var J=X[i];J.element.scrollLeft=J.left,J.element.scrollTop=J.top}}Gb=!!Z3,G3=Z3=null}finally{Pa=r,ua.p=m,K.T=t}}a.current=o,yo=j8}}function C6(){if(yo===j8){yo=ar;var a=a9;if(a!==null){Am=Ko();var o=vm,p=Am;!ro||p<=o||(cm?cm.run(console.timeStamp.bind(console,a,o,p,Na,na,"secondary-light")):console.timeStamp(a,o,p,Na,na,"secondary-light"))}a=or,o=m0,p=wt;var t=(o.flags&8772)!==0;if((o.subtreeFlags&8772)!==0||t){t=K.T,K.T=null;var m=ua.p;ua.p=yp;var r=Pa;Pa|=Np;try{o0=p,p0=a,W5(),w6(a,o.alternate,o),p0=o0=null}finally{Pa=r,ua.p=m,K.T=t}}a=i3,o=e8,vm=Ko(),a=o===null?a:Am,o=vm,p=zt===m3,t=Go,im!==null?kl(a,o,im,!1,t):!ro||o<=a||(t?t.run(console.timeStamp.bind(console,p?"Commit Interrupted View Transition":"Commit",a,o,Na,na,p?"error":"secondary-dark")):console.timeStamp(p?"Commit Interrupted View Transition":"Commit",a,o,Na,na,p?"error":"secondary-dark")),yo=D8}}function I6(){if(yo===E8||yo===D8){if(yo===E8){var a=vm;vm=Ko();var o=vm,p=zt===m3;!ro||o<=a||(cm?cm.run(console.timeStamp.bind(console,p?"Interrupted View Transition":"Starting Animation",a,o,Na,na,p?"error":"secondary-light")):console.timeStamp(p?"Interrupted View Transition":"Starting Animation",a,o,Na,na,p?" error":"secondary-light")),zt!==m3&&(zt=x8)}yo=ar,fJ(),a=or;var t=m0;o=wt,p=s8;var m=t.actualDuration!==0||(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0;m?yo=mb:(yo=ar,m0=or=null,A6(a,a.pendingLanes),Tr=0,Ti=null);var r=a.pendingLanes;if(r===0&&(em=null),m||V6(a),r=Ab(o),t=t.stateNode,Do&&typeof Do.onCommitFiberRoot==="function")try{var v=(t.current.flags&128)===128;switch(r){case yp:var i=b4;break;case it:i=c4;break;case Mt:i=hv;break;case _2:i=l4;break;default:i=hv}Do.onCommitFiberRoot(yv,t,i,v)}catch(X){Ot||(Ot=!0,console.error("React instrumentation encountered an error: %o",X))}if(Rt&&a.memoizedUpdaters.clear(),c$(),p!==null){v=K.T,i=ua.p,ua.p=yp,K.T=null;try{var b=a.onRecoverableError;for(t=0;t<p.length;t++){var l=p[t],Y=$$(l.stack);g(l.source,b,l.value,Y)}}finally{K.T=v,ua.p=i}}(wt&3)!==0&&V0(),yt(a),r=a.pendingLanes,(o&261930)!==0&&(r&42)!==0?(P2=!0,a===c3?Ai++:(Ai=0,c3=a)):Ai=0,m||Wr(o,vm),D0(0,!1)}}function $$(a){return a={componentStack:a},Object.defineProperty(a,"digest",{get:function(){console.error('You are accessing "digest" from the errorInfo object passed to onRecoverableError. This property is no longer provided as part of errorInfo but can be accessed as a property of the Error instance itself.')}}),a}function A6(a,o){(a.pooledCacheLanes&=o)===0&&(o=a.pooledCache,o!=null&&(a.pooledCache=null,n0(o)))}function V0(){return P6(),C6(),I6(),T6()}function T6(){if(yo!==mb)return!1;var a=or,o=v3;v3=0;var p=Ab(wt),t=Mt===0||Mt>p?Mt:p;p=K.T;var m=ua.p;try{ua.p=t,K.T=null;var r=b3;b3=null,t=or;var v=wt;if(yo=ar,m0=or=null,wt=0,(Pa&(Oo|Np))!==Co)throw Error("Cannot flush passive effects while already rendering.");Qp(v),l3=!0,rb=!1;var i=0;if(im=null,i=go(),zt===x8)y0(vm,i,cm);else{var b=vm,l=i,Y=zt===r3;!ro||l<=b||(Go?Go.run(console.timeStamp.bind(console,Y?"Waiting for Paint":"Waiting",b,l,Na,na,"secondary-light")):console.timeStamp(Y?"Waiting for Paint":"Waiting",b,l,Na,na,"secondary-light"))}b=Pa,Pa|=Np;var X=t.current;W5(),K6(X);var z=t.current;X=i3,W5(),Q6(t,z,v,r,X),V6(t),Pa=b;var _=go();if(z=i,X=Go,im!==null?kl(z,_,im,!0,X):!ro||_<=z||(X?X.run(console.timeStamp.bind(console,"Remaining Effects",z,_,Na,na,"secondary-dark")):console.timeStamp("Remaining Effects",z,_,Na,na,"secondary-dark")),Wr(v,_),D0(0,!1),rb?t===Ti?Tr++:(Tr=0,Ti=t):Tr=0,rb=l3=!1,Do&&typeof Do.onPostCommitFiberRoot==="function")try{Do.onPostCommitFiberRoot(yv,t)}catch(e){Ot||(Ot=!0,console.error("React instrumentation encountered an error: %o",e))}var u=t.current.stateNode;return u.effectDuration=0,u.passiveEffectDuration=0,!0}finally{ua.p=m,K.T=p,A6(a,o)}}function S6(a,o,p){o=_p(p,o),ul(o),o=pc(a.stateNode,o,2),a=Wm(a,o,2),a!==null&&(Q0(a,2),yt(a))}function Sa(a,o,p){if(r0=!1,a.tag===3)S6(a,a,p);else{for(;o!==null;){if(o.tag===3){S6(o,a,p);return}if(o.tag===1){var t=o.stateNode;if(typeof o.type.getDerivedStateFromError==="function"||typeof t.componentDidCatch==="function"&&(em===null||!em.has(t))){a=_p(p,a),ul(a),p=tc(2),t=Wm(o,p,2),t!==null&&(mc(p,t,o,a),Q0(t,2),yt(t));return}}o=o.return}console.error(`Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Potential causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.
138
-
139
- Error message:
140
-
141
- %s`,p)}}function Kc(a,o,p){var t=a.pingCache;if(t===null){t=a.pingCache=new kY;var m=new Set;t.set(o,m)}else m=t.get(o),m===void 0&&(m=new Set,t.set(o,m));m.has(p)||(p3=!0,m.add(p),t=J$.bind(null,a,o,p),Rt&&j0(a,p),o.then(t,t))}function J$(a,o,p){var t=a.pingCache;t!==null&&t.delete(o),a.pingedLanes|=a.suspendedLanes&p,a.warmLanes&=~p,(p&127)!==0?0>Pt&&(Tm=Pt=Ko(),Gi=N2("Promise Resolved"),Sm=O2):(p&4194048)!==0&&0>xp&&(Ct=xp=Ko(),Qi=N2("Promise Resolved"),M4=O2),U6()&&K.actQueue===null&&console.error(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).
142
-
143
- When testing, code that resolves suspended data should be wrapped into act(...):
144
-
145
- act(() => {
146
- /* finish loading suspended data */
147
- });
148
- /* assert on the output */
149
-
150
- This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`),ao===a&&(Ua&p)===p&&(Jo===jm||Jo===D2&&(Ua&62914560)===Ua&&go()-ob<S8?(Pa&Oo)===Co&&_v(a,0):t3|=p,Ar===Ua&&(Ar=0)),yt(a)}function u6(a,o){o===0&&(o=Pb()),a=jo(a,o),a!==null&&(Q0(a,o),yt(a))}function Y$(a){var o=a.memoizedState,p=0;o!==null&&(p=o.retryLane),u6(a,p)}function X$(a,o){var p=0;switch(a.tag){case 31:case 13:var{stateNode:t,memoizedState:m}=a;m!==null&&(p=m.retryLane);break;case 19:t=a.stateNode;break;case 22:t=a.stateNode._retryCache;break;default:throw Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}t!==null&&t.delete(o),u6(a,p)}function Hc(a,o,p){if((o.subtreeFlags&67117056)!==0)for(o=o.child;o!==null;){var t=a,m=o,r=m.type===Y2;r=p||r,m.tag!==22?m.flags&67108864?r&&g(m,x6,t,m):Hc(t,m,r):m.memoizedState===null&&(r&&m.flags&8192?g(m,x6,t,m):m.subtreeFlags&67108864&&g(m,Hc,t,m,r)),o=o.sibling}}function x6(a,o){Ea(!0);try{G6(o),H6(o),q6(a,o.alternate,o,!1),_6(a,o,0,null,!1,0)}finally{Ea(!1)}}function V6(a){var o=!0;a.current.mode&(Eo|bt)||(o=!1),Hc(a,a.current,o)}function j6(a){if((Pa&Oo)===Co){var o=a.tag;if(o===3||o===1||o===0||o===11||o===14||o===15){if(o=U(a)||"ReactComponent",vb!==null){if(vb.has(o))return;vb.add(o)}else vb=new Set([o]);g(a,function(){console.error("Can't perform a React state update on a component that hasn't mounted yet. This indicates that you have a side-effect in your render function that asynchronously tries to update the component. Move this work to useEffect instead.")})}}}function j0(a,o){Rt&&a.memoizedUpdaters.forEach(function(p){C3(a,p,o)})}function Z$(a,o){var p=K.actQueue;return p!==null?(p.push(o),NY):i4(a,o)}function G$(a){U6()&&K.actQueue===null&&g(a,function(){console.error(`An update to %s inside a test was not wrapped in act(...).
151
-
152
- When testing, code that causes React state updates should be wrapped into act(...):
153
-
154
- act(() => {
155
- /* fire events that update state */
156
- });
157
- /* assert on the output */
158
-
159
- This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`,U(a))})}function yt(a){a!==v0&&a.next===null&&(v0===null?ib=v0=a:v0=v0.next=a),bb=!0,K.actQueue!==null?w3||(w3=!0,e6()):f3||(f3=!0,e6())}function D0(a,o){if(!z3&&bb){z3=!0;do{var p=!1;for(var t=ib;t!==null;){if(!o)if(a!==0){var m=t.pendingLanes;if(m===0)var r=0;else{var{suspendedLanes:v,pingedLanes:i}=t;r=(1<<31-op(42|a)+1)-1,r&=m&~(v&~i),r=r&201326741?r&201326741|1:r?r|2:0}r!==0&&(p=!0,s6(t,r))}else r=Ua,r=i5(t,t===ao?r:0,t.cancelPendingCommit!==null||t.timeoutHandle!==Vr),(r&3)===0||q0(t,r)||(p=!0,s6(t,r));t=t.next}}while(p);z3=!1}}function q$(){Vi=window.event,Wc()}function Wc(){bb=w3=f3=!1;var a=0;pr!==0&&W$()&&(a=pr);for(var o=go(),p=null,t=ib;t!==null;){var m=t.next,r=D6(t,o);if(r===0)t.next=null,p===null?ib=m:p.next=m,m===null&&(v0=p);else if(p=t,a!==0||(r&3)!==0)bb=!0;t=m}yo!==ar&&yo!==mb||D0(a,!1),pr!==0&&(pr=0)}function D6(a,o){for(var{suspendedLanes:p,pingedLanes:t,expirationTimes:m}=a,r=a.pendingLanes&-62914561;0<r;){var v=31-op(r),i=1<<v,b=m[v];if(b===-1){if((i&p)===0||(i&t)!==0)m[v]=Jz(i,o)}else b<=o&&(a.expiredLanes|=i);r&=~i}if(o=ao,p=Ua,p=i5(a,a===o?p:0,a.cancelPendingCommit!==null||a.timeoutHandle!==Vr),t=a.callbackNode,p===0||a===o&&(ja===Cr||ja===Ir)||a.cancelPendingCommit!==null)return t!==null&&Uc(t),a.callbackNode=null,a.callbackPriority=0;if((p&3)===0||q0(a,p)){if(o=p&-p,o!==a.callbackPriority||K.actQueue!==null&&t!==$3)Uc(t);else return o;switch(Ab(p)){case yp:case it:p=c4;break;case Mt:p=hv;break;case _2:p=l4;break;default:p=hv}return t=E6.bind(null,a),K.actQueue!==null?(K.actQueue.push(t),p=$3):p=i4(p,t),a.callbackPriority=o,a.callbackNode=p,o}return t!==null&&Uc(t),a.callbackPriority=2,a.callbackNode=null,2}function E6(a,o){if(P2=F2=!1,Vi=window.event,yo!==ar&&yo!==mb)return a.callbackNode=null,a.callbackPriority=0,null;var p=a.callbackNode;if(zt===tb&&(zt=r3),V0()&&a.callbackNode!==p)return null;var t=Ua;if(t=i5(a,a===ao?t:0,a.cancelPendingCommit!==null||a.timeoutHandle!==Vr),t===0)return null;return y6(a,t,o),D6(a,go()),a.callbackNode!=null&&a.callbackNode===p?E6.bind(null,a):null}function s6(a,o){if(V0())return null;F2=P2,P2=!1,y6(a,o,!0)}function Uc(a){a!==$3&&a!==null&&cJ(a)}function e6(){K.actQueue!==null&&K.actQueue.push(function(){return Wc(),null}),TY(function(){(Pa&(Oo|Np))!==Co?i4(b4,q$):Wc()})}function hc(){if(pr===0){var a=Nr;a===0&&(a=G2,G2<<=1,(G2&261888)===0&&(G2=256)),pr=a}return pr}function aw(a){if(a==null||typeof a==="symbol"||typeof a==="boolean")return null;if(typeof a==="function")return a;return Ia(a,"action"),W0(""+a)}function ow(a,o){var p=o.ownerDocument.createElement("input");return p.name=o.name,p.value=o.value,a.id&&p.setAttribute("form",a.id),o.parentNode.insertBefore(p,o),a=new FormData(a),p.parentNode.removeChild(p),a}function Q$(a,o,p,t,m){if(o==="submit"&&p&&p.stateNode===m){var r=aw((m[pp]||null).action),v=t.submitter;v&&(o=(o=v[pp]||null)?aw(o.formAction):v.getAttribute("formAction"),o!==null&&(r=o,v=null));var i=new W2("action","action",null,t,m);a.push({event:i,listeners:[{instance:null,listener:function(){if(t.defaultPrevented){if(pr!==0){var b=v?ow(m,v):new FormData(m),l={pending:!0,data:b,method:m.method,action:r};Object.freeze(l),j1(p,l,null,b)}}else typeof r==="function"&&(i.preventDefault(),b=v?ow(m,v):new FormData(m),l={pending:!0,data:b,method:m.method,action:r},Object.freeze(l),j1(p,l,r,b))},currentTarget:m}]})}}function r2(a,o,p){a.currentTarget=p;try{o(a)}catch(t){H4(t)}a.currentTarget=null}function pw(a,o){o=(o&4)!==0;for(var p=0;p<a.length;p++){var t=a[p];a:{var m=void 0,r=t.event;if(t=t.listeners,o)for(var v=t.length-1;0<=v;v--){var i=t[v],b=i.instance,l=i.currentTarget;if(i=i.listener,b!==m&&r.isPropagationStopped())break a;b!==null?g(b,r2,r,i,l):r2(r,i,l),m=b}else for(v=0;v<t.length;v++){if(i=t[v],b=i.instance,l=i.currentTarget,i=i.listener,b!==m&&r.isPropagationStopped())break a;b!==null?g(b,r2,r,i,l):r2(r,i,l),m=b}}}}function Ra(a,o){J3.has(a)||console.error('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',a);var p=o[f4];p===void 0&&(p=o[f4]=new Set);var t=a+"__bubble";p.has(t)||(tw(o,a,2,!1),p.add(t))}function yc(a,o,p){J3.has(a)&&!o&&console.error('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',a);var t=0;o&&(t|=4),tw(p,a,t,o)}function kc(a){if(!a[cb]){a[cb]=!0,ew.forEach(function(p){p!=="selectionchange"&&(J3.has(p)||yc(p,!1,a),yc(p,!0,a))});var o=a.nodeType===9?a:a.ownerDocument;o===null||o[cb]||(o[cb]=!0,yc("selectionchange",!1,o))}}function tw(a,o,p,t){switch(Rw(o)){case yp:var m=oJ;break;case it:m=pJ;break;default:m=xc}p=m.bind(null,o,p,a),m=void 0,!Y4||o!=="touchstart"&&o!=="touchmove"&&o!=="wheel"||(m=!0),t?m!==void 0?a.addEventListener(o,p,{capture:!0,passive:m}):a.addEventListener(o,p,!0):m!==void 0?a.addEventListener(o,p,{passive:m}):a.addEventListener(o,p,!1)}function nc(a,o,p,t,m){var r=t;if((o&1)===0&&(o&2)===0&&t!==null)a:for(;;){if(t===null)return;var v=t.tag;if(v===3||v===4){var i=t.stateNode.containerInfo;if(i===m)break;if(v===4)for(v=t.return;v!==null;){var b=v.tag;if((b===3||b===4)&&v.stateNode.containerInfo===m)return;v=v.return}for(;i!==null;){if(v=rv(i),v===null)return;if(b=v.tag,b===5||b===6||b===26||b===27){t=r=v;continue a}i=i.parentNode}}t=t.return}zl(function(){var l=r,Y=a1(p),X=[];a:{var z=R7.get(a);if(z!==void 0){var _=W2,u=a;switch(a){case"keypress":if(z5(p)===0)break a;case"keydown":case"keyup":_=DJ;break;case"focusin":u="focus",_=q4;break;case"focusout":u="blur",_=q4;break;case"beforeblur":case"afterblur":_=q4;break;case"click":if(p.button===2)break a;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":_=_7;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":_=gJ;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":_=eJ;break;case n7:case L7:case N7:_=CJ;break;case O7:_=oY;break;case"scroll":case"scrollend":_=RJ;break;case"wheel":_=tY;break;case"copy":case"cut":case"paste":_=AJ;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":_=d7;break;case"toggle":case"beforetoggle":_=rY}var e=(o&4)!==0,to=!e&&(a==="scroll"||a==="scrollend"),Ma=e?z!==null?z+"Capture":null:z;e=[];for(var w=l,$;w!==null;){var J=w;if($=J.stateNode,J=J.tag,J!==5&&J!==26&&J!==27||$===null||Ma===null||(J=U0(w,Ma),J!=null&&e.push(E0(w,J,$))),to)break;w=w.return}0<e.length&&(z=new _(z,u,null,p,Y),X.push({event:z,listeners:e}))}}if((o&7)===0){a:{if(z=a==="mouseover"||a==="pointerover",_=a==="mouseout"||a==="pointerout",z&&p!==bi&&(u=p.relatedTarget||p.fromElement)&&(rv(u)||u[Mm]))break a;if(_||z){if(z=Y.window===Y?Y:(z=Y.ownerDocument)?z.defaultView||z.parentWindow:window,_){if(u=p.relatedTarget||p.toElement,_=l,u=u?rv(u):null,u!==null&&(to=ca(u),e=u.tag,u!==to||e!==5&&e!==27&&e!==6))u=null}else _=null,u=l;if(_!==u){if(e=_7,J="onMouseLeave",Ma="onMouseEnter",w="mouse",a==="pointerout"||a==="pointerover")e=d7,J="onPointerLeave",Ma="onPointerEnter",w="pointer";if(to=_==null?z:_0(_),$=u==null?z:_0(u),z=new e(J,w+"leave",_,p,Y),z.target=to,z.relatedTarget=$,J=null,rv(Y)===l&&(e=new e(Ma,w+"enter",u,p,Y),e.target=$,e.relatedTarget=to,J=e),to=J,_&&u)o:{e=_$,Ma=_,w=u,$=0;for(J=Ma;J;J=e(J))$++;J=0;for(var y=w;y;y=e(y))J++;for(;0<$-J;)Ma=e(Ma),$--;for(;0<J-$;)w=e(w),J--;for(;$--;){if(Ma===w||w!==null&&Ma===w.alternate){e=Ma;break o}Ma=e(Ma),w=e(w)}e=null}else e=null;_!==null&&mw(X,z,_,e,!1),u!==null&&to!==null&&mw(X,to,u,e,!0)}}}a:{if(z=l?_0(l):window,_=z.nodeName&&z.nodeName.toLowerCase(),_==="select"||_==="input"&&z.type==="file")var D=ql;else if(Zl(z))if(y7)D=Nz;else{D=nz;var Qa=kz}else _=z.nodeName,!_||_.toLowerCase()!=="input"||z.type!=="checkbox"&&z.type!=="radio"?l&&H0(l.elementType)&&(D=ql):D=Lz;if(D&&(D=D(a,l))){Gl(X,D,p,Y);break a}Qa&&Qa(a,z,l),a==="focusout"&&l&&z.type==="number"&&l.memoizedProps.value!=null&&Vb(z,"number",z.value)}switch(Qa=l?_0(l):window,a){case"focusin":if(Zl(Qa)||Qa.contentEditable==="true")Mv=Qa,_4=l,Ji=null;break;case"focusout":Ji=_4=Mv=null;break;case"mousedown":B4=!0;break;case"contextmenu":case"mouseup":case"dragend":B4=!1,Wl(X,p,Y);break;case"selectionchange":if(cY)break;case"keydown":case"keyup":Wl(X,p,Y)}var fa;if(Q4)a:{switch(a){case"compositionstart":var ba="onCompositionStart";break a;case"compositionend":ba="onCompositionEnd";break a;case"compositionupdate":ba="onCompositionUpdate";break a}ba=void 0}else Rv?Yl(a,p)&&(ba="onCompositionEnd"):a==="keydown"&&p.keyCode===K7&&(ba="onCompositionStart");if(ba&&(H7&&p.locale!=="ko"&&(Rv||ba!=="onCompositionStart"?ba==="onCompositionEnd"&&Rv&&(fa=$l()):(gm=Y,X4=("value"in gm)?gm.value:gm.textContent,Rv=!0)),Qa=v2(l,ba),0<Qa.length&&(ba=new B7(ba,a,null,p,Y),X.push({event:ba,listeners:Qa}),fa?ba.data=fa:(fa=Xl(p),fa!==null&&(ba.data=fa)))),fa=iY?Wz(a,p):Uz(a,p))ba=v2(l,"onBeforeInput"),0<ba.length&&(Qa=new SJ("onBeforeInput","beforeinput",null,p,Y),X.push({event:Qa,listeners:ba}),Qa.data=fa);Q$(X,a,l,p,Y)}pw(X,o)})}function E0(a,o,p){return{instance:a,listener:o,currentTarget:p}}function v2(a,o){for(var p=o+"Capture",t=[];a!==null;){var m=a,r=m.stateNode;if(m=m.tag,m!==5&&m!==26&&m!==27||r===null||(m=U0(a,p),m!=null&&t.unshift(E0(a,m,r)),m=U0(a,o),m!=null&&t.push(E0(a,m,r))),a.tag===3)return t;a=a.return}return[]}function _$(a){if(a===null)return null;do a=a.return;while(a&&a.tag!==5&&a.tag!==27);return a?a:null}function mw(a,o,p,t,m){for(var r=o._reactName,v=[];p!==null&&p!==t;){var i=p,b=i.alternate,l=i.stateNode;if(i=i.tag,b!==null&&b===t)break;i!==5&&i!==26&&i!==27||l===null||(b=l,m?(l=U0(p,r),l!=null&&v.unshift(E0(p,l,b))):m||(l=U0(p,r),l!=null&&v.push(E0(p,l,b)))),p=p.return}v.length!==0&&a.push({event:o,listeners:v})}function Lc(a,o){Bz(a,o),a!=="input"&&a!=="textarea"&&a!=="select"||o==null||o.value!==null||q7||(q7=!0,a==="select"&&o.multiple?console.error("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",a):console.error("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",a));var p={registrationNameDependencies:Ur,possibleRegistrationNames:w4};H0(a)||typeof o.is==="string"||Kz(a,o,p),o.contentEditable&&!o.suppressContentEditableWarning&&o.children!=null&&console.error("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional.")}function Mo(a,o,p,t){o!==p&&(p=nm(p),nm(o)!==p&&(t[a]=o))}function B$(a,o,p){o.forEach(function(t){p[iw(t)]=t==="style"?Oc(a):a.getAttribute(t)})}function kt(a,o){o===!1?console.error("Expected `%s` listener to be a function, instead got `false`.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.",a,a,a):console.error("Expected `%s` listener to be a function, instead got a value of `%s` type.",a,typeof o)}function rw(a,o){return a=a.namespaceURI===d2||a.namespaceURI===nv?a.ownerDocument.createElementNS(a.namespaceURI,a.tagName):a.ownerDocument.createElement(a.tagName),a.innerHTML=o,a.innerHTML}function nm(a){return La(a)&&(console.error("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before using it here.",A(a)),no(a)),(typeof a==="string"?a:""+a).replace(OY,`
160
- `).replace(RY,"")}function vw(a,o){return o=nm(o),nm(a)===o?!0:!1}function sa(a,o,p,t,m,r){switch(p){case"children":if(typeof t==="string")w5(t,o,!1),o==="body"||o==="textarea"&&t===""||K0(a,t);else if(typeof t==="number"||typeof t==="bigint")w5(""+t,o,!1),o!=="body"&&K0(a,""+t);break;case"className":c5(a,"class",t);break;case"tabIndex":c5(a,"tabindex",t);break;case"dir":case"role":case"viewBox":case"width":case"height":c5(a,p,t);break;case"style":ll(a,t,r);break;case"data":if(o!=="object"){c5(a,"data",t);break}case"src":case"href":if(t===""&&(o!=="a"||p!=="href")){p==="src"?console.error('An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',p,p):console.error('An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',p,p),a.removeAttribute(p);break}if(t==null||typeof t==="function"||typeof t==="symbol"||typeof t==="boolean"){a.removeAttribute(p);break}Ia(t,p),t=W0(""+t),a.setAttribute(p,t);break;case"action":case"formAction":if(t!=null&&(o==="form"?p==="formAction"?console.error("You can only pass the formAction prop to <input> or <button>. Use the action prop on <form>."):typeof t==="function"&&(m.encType==null&&m.method==null||wb||(wb=!0,console.error("Cannot specify a encType or method for a form that specifies a function as the action. React provides those automatically. They will get overridden.")),m.target==null||fb||(fb=!0,console.error("Cannot specify a target for a form that specifies a function as the action. The function will always be executed in the same window."))):o==="input"||o==="button"?p==="action"?console.error("You can only pass the action prop to <form>. Use the formAction prop on <input> or <button>."):o!=="input"||m.type==="submit"||m.type==="image"||lb?o!=="button"||m.type==null||m.type==="submit"||lb?typeof t==="function"&&(m.name==null||r9||(r9=!0,console.error('Cannot specify a "name" prop for a button that specifies a function as a formAction. React needs it to encode which action should be invoked. It will get overridden.')),m.formEncType==null&&m.formMethod==null||wb||(wb=!0,console.error("Cannot specify a formEncType or formMethod for a button that specifies a function as a formAction. React provides those automatically. They will get overridden.")),m.formTarget==null||fb||(fb=!0,console.error("Cannot specify a formTarget for a button that specifies a function as a formAction. The function will always be executed in the same window."))):(lb=!0,console.error('A button can only specify a formAction along with type="submit" or no type.')):(lb=!0,console.error('An input can only specify a formAction along with type="submit" or type="image".')):p==="action"?console.error("You can only pass the action prop to <form>."):console.error("You can only pass the formAction prop to <input> or <button>.")),typeof t==="function"){a.setAttribute(p,"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 r==="function"&&(p==="formAction"?(o!=="input"&&sa(a,o,"name",m.name,m,null),sa(a,o,"formEncType",m.formEncType,m,null),sa(a,o,"formMethod",m.formMethod,m,null),sa(a,o,"formTarget",m.formTarget,m,null)):(sa(a,o,"encType",m.encType,m,null),sa(a,o,"method",m.method,m,null),sa(a,o,"target",m.target,m,null)));if(t==null||typeof t==="symbol"||typeof t==="boolean"){a.removeAttribute(p);break}Ia(t,p),t=W0(""+t),a.setAttribute(p,t);break;case"onClick":t!=null&&(typeof t!=="function"&&kt(p,t),a.onclick=xt);break;case"onScroll":t!=null&&(typeof t!=="function"&&kt(p,t),Ra("scroll",a));break;case"onScrollEnd":t!=null&&(typeof t!=="function"&&kt(p,t),Ra("scrollend",a));break;case"dangerouslySetInnerHTML":if(t!=null){if(typeof t!=="object"||!("__html"in t))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(p=t.__html,p!=null){if(m.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");a.innerHTML=p}}break;case"multiple":a.multiple=t&&typeof t!=="function"&&typeof t!=="symbol";break;case"muted":a.muted=t&&typeof t!=="function"&&typeof t!=="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(t==null||typeof t==="function"||typeof t==="boolean"||typeof t==="symbol"){a.removeAttribute("xlink:href");break}Ia(t,p),p=W0(""+t),a.setAttributeNS(Sr,"xlink:href",p);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":t!=null&&typeof t!=="function"&&typeof t!=="symbol"?(Ia(t,p),a.setAttribute(p,""+t)):a.removeAttribute(p);break;case"inert":t!==""||zb[p]||(zb[p]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",p));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":t&&typeof t!=="function"&&typeof t!=="symbol"?a.setAttribute(p,""):a.removeAttribute(p);break;case"capture":case"download":t===!0?a.setAttribute(p,""):t!==!1&&t!=null&&typeof t!=="function"&&typeof t!=="symbol"?(Ia(t,p),a.setAttribute(p,t)):a.removeAttribute(p);break;case"cols":case"rows":case"size":case"span":t!=null&&typeof t!=="function"&&typeof t!=="symbol"&&!isNaN(t)&&1<=t?(Ia(t,p),a.setAttribute(p,t)):a.removeAttribute(p);break;case"rowSpan":case"start":t==null||typeof t==="function"||typeof t==="symbol"||isNaN(t)?a.removeAttribute(p):(Ia(t,p),a.setAttribute(p,t));break;case"popover":Ra("beforetoggle",a),Ra("toggle",a),b5(a,"popover",t);break;case"xlinkActuate":ut(a,Sr,"xlink:actuate",t);break;case"xlinkArcrole":ut(a,Sr,"xlink:arcrole",t);break;case"xlinkRole":ut(a,Sr,"xlink:role",t);break;case"xlinkShow":ut(a,Sr,"xlink:show",t);break;case"xlinkTitle":ut(a,Sr,"xlink:title",t);break;case"xlinkType":ut(a,Sr,"xlink:type",t);break;case"xmlBase":ut(a,Y3,"xml:base",t);break;case"xmlLang":ut(a,Y3,"xml:lang",t);break;case"xmlSpace":ut(a,Y3,"xml:space",t);break;case"is":r!=null&&console.error('Cannot update the "is" prop after it has been initialized.'),b5(a,"is",t);break;case"innerText":case"textContent":break;case"popoverTarget":v9||t==null||typeof t!=="object"||(v9=!0,console.error("The `popoverTarget` prop expects the ID of an Element as a string. Received %s instead.",t));default:!(2<p.length)||p[0]!=="o"&&p[0]!=="O"||p[1]!=="n"&&p[1]!=="N"?(p=fl(p),b5(a,p,t)):Ur.hasOwnProperty(p)&&t!=null&&typeof t!=="function"&&kt(p,t)}}function Nc(a,o,p,t,m,r){switch(p){case"style":ll(a,t,r);break;case"dangerouslySetInnerHTML":if(t!=null){if(typeof t!=="object"||!("__html"in t))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(p=t.__html,p!=null){if(m.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");a.innerHTML=p}}break;case"children":typeof t==="string"?K0(a,t):(typeof t==="number"||typeof t==="bigint")&&K0(a,""+t);break;case"onScroll":t!=null&&(typeof t!=="function"&&kt(p,t),Ra("scroll",a));break;case"onScrollEnd":t!=null&&(typeof t!=="function"&&kt(p,t),Ra("scrollend",a));break;case"onClick":t!=null&&(typeof t!=="function"&&kt(p,t),a.onclick=xt);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(Ur.hasOwnProperty(p))t!=null&&typeof t!=="function"&&kt(p,t);else a:{if(p[0]==="o"&&p[1]==="n"&&(m=p.endsWith("Capture"),o=p.slice(2,m?p.length-7:void 0),r=a[pp]||null,r=r!=null?r[p]:null,typeof r==="function"&&a.removeEventListener(o,r,m),typeof t==="function")){typeof r!=="function"&&r!==null&&(p in a?a[p]=null:a.hasAttribute(p)&&a.removeAttribute(p)),a.addEventListener(o,t,m);break a}p in a?a[p]=t:t===!0?a.setAttribute(p,""):b5(a,p,t)}}}function To(a,o,p){switch(Lc(o,p),o){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ra("error",a),Ra("load",a);var t=!1,m=!1,r;for(r in p)if(p.hasOwnProperty(r)){var v=p[r];if(v!=null)switch(r){case"src":t=!0;break;case"srcSet":m=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:sa(a,o,r,v,p,null)}}m&&sa(a,o,"srcSet",p.srcSet,p,null),t&&sa(a,o,"src",p.src,p,null);return;case"input":bv("input",p),Ra("invalid",a);var i=r=v=m=null,b=null,l=null;for(t in p)if(p.hasOwnProperty(t)){var Y=p[t];if(Y!=null)switch(t){case"name":m=Y;break;case"type":v=Y;break;case"checked":b=Y;break;case"defaultChecked":l=Y;break;case"value":r=Y;break;case"defaultValue":i=Y;break;case"children":case"dangerouslySetInnerHTML":if(Y!=null)throw Error(o+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:sa(a,o,t,Y,p,null)}}V3(a,p),j3(a,r,i,b,l,v,m,!1);return;case"select":bv("select",p),Ra("invalid",a),t=v=r=null;for(m in p)if(p.hasOwnProperty(m)&&(i=p[m],i!=null))switch(m){case"value":r=i;break;case"defaultValue":v=i;break;case"multiple":t=i;default:sa(a,o,m,i,p,null)}s3(a,p),o=r,p=v,a.multiple=!!t,o!=null?cv(a,!!t,o,!1):p!=null&&cv(a,!!t,p,!0);return;case"textarea":bv("textarea",p),Ra("invalid",a),r=m=t=null;for(v in p)if(p.hasOwnProperty(v)&&(i=p[v],i!=null))switch(v){case"value":t=i;break;case"defaultValue":m=i;break;case"children":r=i;break;case"dangerouslySetInnerHTML":if(i!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:sa(a,o,v,i,p,null)}e3(a,p),ol(a,t,m,r);return;case"option":D3(a,p);for(b in p)if(p.hasOwnProperty(b)&&(t=p[b],t!=null))switch(b){case"selected":a.selected=t&&typeof t!=="function"&&typeof t!=="symbol";break;default:sa(a,o,b,t,p,null)}return;case"dialog":Ra("beforetoggle",a),Ra("toggle",a),Ra("cancel",a),Ra("close",a);break;case"iframe":case"object":Ra("load",a);break;case"video":case"audio":for(t=0;t<Si.length;t++)Ra(Si[t],a);break;case"image":Ra("error",a),Ra("load",a);break;case"details":Ra("toggle",a);break;case"embed":case"source":case"link":Ra("error",a),Ra("load",a);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(l in p)if(p.hasOwnProperty(l)&&(t=p[l],t!=null))switch(l){case"children":case"dangerouslySetInnerHTML":throw Error(o+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:sa(a,o,l,t,p,null)}return;default:if(H0(o)){for(Y in p)p.hasOwnProperty(Y)&&(t=p[Y],t!==void 0&&Nc(a,o,Y,t,p,void 0));return}}for(i in p)p.hasOwnProperty(i)&&(t=p[i],t!=null&&sa(a,o,i,t,p,null))}function d$(a,o,p,t){switch(Lc(o,t),o){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var m=null,r=null,v=null,i=null,b=null,l=null,Y=null;for(_ in p){var X=p[_];if(p.hasOwnProperty(_)&&X!=null)switch(_){case"checked":break;case"value":break;case"defaultValue":b=X;default:t.hasOwnProperty(_)||sa(a,o,_,null,t,X)}}for(var z in t){var _=t[z];if(X=p[z],t.hasOwnProperty(z)&&(_!=null||X!=null))switch(z){case"type":r=_;break;case"name":m=_;break;case"checked":l=_;break;case"defaultChecked":Y=_;break;case"value":v=_;break;case"defaultValue":i=_;break;case"children":case"dangerouslySetInnerHTML":if(_!=null)throw Error(o+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:_!==X&&sa(a,o,z,_,t,X)}}o=p.type==="checkbox"||p.type==="radio"?p.checked!=null:p.value!=null,t=t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null,o||!t||m9||(console.error("A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),m9=!0),!o||t||t9||(console.error("A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),t9=!0),xb(a,v,i,b,l,Y,r,m);return;case"select":_=v=i=z=null;for(r in p)if(b=p[r],p.hasOwnProperty(r)&&b!=null)switch(r){case"value":break;case"multiple":_=b;default:t.hasOwnProperty(r)||sa(a,o,r,null,t,b)}for(m in t)if(r=t[m],b=p[m],t.hasOwnProperty(m)&&(r!=null||b!=null))switch(m){case"value":z=r;break;case"defaultValue":i=r;break;case"multiple":v=r;default:r!==b&&sa(a,o,m,r,t,b)}t=i,o=v,p=_,z!=null?cv(a,!!o,z,!1):!!p!==!!o&&(t!=null?cv(a,!!o,t,!0):cv(a,!!o,o?[]:"",!1));return;case"textarea":_=z=null;for(i in p)if(m=p[i],p.hasOwnProperty(i)&&m!=null&&!t.hasOwnProperty(i))switch(i){case"value":break;case"children":break;default:sa(a,o,i,null,t,m)}for(v in t)if(m=t[v],r=p[v],t.hasOwnProperty(v)&&(m!=null||r!=null))switch(v){case"value":z=m;break;case"defaultValue":_=m;break;case"children":break;case"dangerouslySetInnerHTML":if(m!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:m!==r&&sa(a,o,v,m,t,r)}al(a,z,_);return;case"option":for(var u in p)if(z=p[u],p.hasOwnProperty(u)&&z!=null&&!t.hasOwnProperty(u))switch(u){case"selected":a.selected=!1;break;default:sa(a,o,u,null,t,z)}for(b in t)if(z=t[b],_=p[b],t.hasOwnProperty(b)&&z!==_&&(z!=null||_!=null))switch(b){case"selected":a.selected=z&&typeof z!=="function"&&typeof z!=="symbol";break;default:sa(a,o,b,z,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 e in p)z=p[e],p.hasOwnProperty(e)&&z!=null&&!t.hasOwnProperty(e)&&sa(a,o,e,null,t,z);for(l in t)if(z=t[l],_=p[l],t.hasOwnProperty(l)&&z!==_&&(z!=null||_!=null))switch(l){case"children":case"dangerouslySetInnerHTML":if(z!=null)throw Error(o+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:sa(a,o,l,z,t,_)}return;default:if(H0(o)){for(var to in p)z=p[to],p.hasOwnProperty(to)&&z!==void 0&&!t.hasOwnProperty(to)&&Nc(a,o,to,void 0,t,z);for(Y in t)z=t[Y],_=p[Y],!t.hasOwnProperty(Y)||z===_||z===void 0&&_===void 0||Nc(a,o,Y,z,t,_);return}}for(var Ma in p)z=p[Ma],p.hasOwnProperty(Ma)&&z!=null&&!t.hasOwnProperty(Ma)&&sa(a,o,Ma,null,t,z);for(X in t)z=t[X],_=p[X],!t.hasOwnProperty(X)||z===_||z==null&&_==null||sa(a,o,X,z,t,_)}function iw(a){switch(a){case"class":return"className";case"for":return"htmlFor";default:return a}}function Oc(a){var o={};a=a.style;for(var p=0;p<a.length;p++){var t=a[p];o[t]=a.getPropertyValue(t)}return o}function bw(a,o,p){if(o!=null&&typeof o!=="object")console.error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");else{var t,m=t="",r;for(r in o)if(o.hasOwnProperty(r)){var v=o[r];v!=null&&typeof v!=="boolean"&&v!==""&&(r.indexOf("--")===0?(Jt(v,r),t+=m+r+":"+(""+v).trim()):typeof v!=="number"||v===0||Z7.has(r)?(Jt(v,r),t+=m+r.replace(z7,"-$1").toLowerCase().replace($7,"-ms-")+":"+(""+v).trim()):t+=m+r.replace(z7,"-$1").toLowerCase().replace($7,"-ms-")+":"+v+"px",m=";")}t=t||null,o=a.getAttribute("style"),o!==t&&(t=nm(t),nm(o)!==t&&(p.style=Oc(a)))}}function Pp(a,o,p,t,m,r){if(m.delete(p),a=a.getAttribute(p),a===null)switch(typeof t){case"undefined":case"function":case"symbol":case"boolean":return}else if(t!=null)switch(typeof t){case"function":case"symbol":case"boolean":break;default:if(Ia(t,o),a===""+t)return}Mo(o,a,t,r)}function cw(a,o,p,t,m,r){if(m.delete(p),a=a.getAttribute(p),a===null){switch(typeof t){case"function":case"symbol":return}if(!t)return}else switch(typeof t){case"function":case"symbol":break;default:if(t)return}Mo(o,a,t,r)}function Rc(a,o,p,t,m,r){if(m.delete(p),a=a.getAttribute(p),a===null)switch(typeof t){case"undefined":case"function":case"symbol":return}else if(t!=null)switch(typeof t){case"function":case"symbol":break;default:if(Ia(t,p),a===""+t)return}Mo(o,a,t,r)}function lw(a,o,p,t,m,r){if(m.delete(p),a=a.getAttribute(p),a===null)switch(typeof t){case"undefined":case"function":case"symbol":case"boolean":return;default:if(isNaN(t))return}else if(t!=null)switch(typeof t){case"function":case"symbol":case"boolean":break;default:if(!isNaN(t)&&(Ia(t,o),a===""+t))return}Mo(o,a,t,r)}function Mc(a,o,p,t,m,r){if(m.delete(p),a=a.getAttribute(p),a===null)switch(typeof t){case"undefined":case"function":case"symbol":case"boolean":return}else if(t!=null)switch(typeof t){case"function":case"symbol":case"boolean":break;default:if(Ia(t,o),p=W0(""+t),a===p)return}Mo(o,a,t,r)}function fw(a,o,p,t){for(var m={},r=new Set,v=a.attributes,i=0;i<v.length;i++)switch(v[i].name.toLowerCase()){case"value":break;case"checked":break;case"selected":break;default:r.add(v[i].name)}if(H0(o)){for(var b in p)if(p.hasOwnProperty(b)){var l=p[b];if(l!=null){if(Ur.hasOwnProperty(b))typeof l!=="function"&&kt(b,l);else if(p.suppressHydrationWarning!==!0)switch(b){case"children":typeof l!=="string"&&typeof l!=="number"||Mo("children",a.textContent,l,m);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":v=a.innerHTML,l=l?l.__html:void 0,l!=null&&(l=rw(a,l),Mo(b,v,l,m));continue;case"style":r.delete(b),bw(a,l,m);continue;case"offsetParent":case"offsetTop":case"offsetLeft":case"offsetWidth":case"offsetHeight":case"isContentEditable":case"outerText":case"outerHTML":r.delete(b.toLowerCase()),console.error("Assignment to read-only property will result in a no-op: `%s`",b);continue;case"className":r.delete("class"),v=S3(a,"class",l),Mo("className",v,l,m);continue;default:t.context===Jm&&o!=="svg"&&o!=="math"?r.delete(b.toLowerCase()):r.delete(b),v=S3(a,b,l),Mo(b,v,l,m)}}}}else for(l in p)if(p.hasOwnProperty(l)&&(b=p[l],b!=null)){if(Ur.hasOwnProperty(l))typeof b!=="function"&&kt(l,b);else if(p.suppressHydrationWarning!==!0)switch(l){case"children":typeof b!=="string"&&typeof b!=="number"||Mo("children",a.textContent,b,m);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"value":case"checked":case"selected":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":v=a.innerHTML,b=b?b.__html:void 0,b!=null&&(b=rw(a,b),v!==b&&(m[l]={__html:v}));continue;case"className":Pp(a,l,"class",b,r,m);continue;case"tabIndex":Pp(a,l,"tabindex",b,r,m);continue;case"style":r.delete(l),bw(a,b,m);continue;case"multiple":r.delete(l),Mo(l,a.multiple,b,m);continue;case"muted":r.delete(l),Mo(l,a.muted,b,m);continue;case"autoFocus":r.delete("autofocus"),Mo(l,a.autofocus,b,m);continue;case"data":if(o!=="object"){r.delete(l),v=a.getAttribute("data"),Mo(l,v,b,m);continue}case"src":case"href":if(!(b!==""||o==="a"&&l==="href"||o==="object"&&l==="data")){l==="src"?console.error('An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',l,l):console.error('An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',l,l);continue}Mc(a,l,l,b,r,m);continue;case"action":case"formAction":if(v=a.getAttribute(l),typeof b==="function"){r.delete(l.toLowerCase()),l==="formAction"?(r.delete("name"),r.delete("formenctype"),r.delete("formmethod"),r.delete("formtarget")):(r.delete("enctype"),r.delete("method"),r.delete("target"));continue}else if(v===MY){r.delete(l.toLowerCase()),Mo(l,"function",b,m);continue}Mc(a,l,l.toLowerCase(),b,r,m);continue;case"xlinkHref":Mc(a,l,"xlink:href",b,r,m);continue;case"contentEditable":Rc(a,l,"contenteditable",b,r,m);continue;case"spellCheck":Rc(a,l,"spellcheck",b,r,m);continue;case"draggable":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":Rc(a,l,l,b,r,m);continue;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":cw(a,l,l.toLowerCase(),b,r,m);continue;case"capture":case"download":a:{i=a;var Y=v=l,X=m;if(r.delete(Y),i=i.getAttribute(Y),i===null)switch(typeof b){case"undefined":case"function":case"symbol":break a;default:if(b===!1)break a}else if(b!=null)switch(typeof b){case"function":case"symbol":break;case"boolean":if(b===!0&&i==="")break a;break;default:if(Ia(b,v),i===""+b)break a}Mo(v,i,b,X)}continue;case"cols":case"rows":case"size":case"span":a:{if(i=a,Y=v=l,X=m,r.delete(Y),i=i.getAttribute(Y),i===null)switch(typeof b){case"undefined":case"function":case"symbol":case"boolean":break a;default:if(isNaN(b)||1>b)break a}else if(b!=null)switch(typeof b){case"function":case"symbol":case"boolean":break;default:if(!(isNaN(b)||1>b)&&(Ia(b,v),i===""+b))break a}Mo(v,i,b,X)}continue;case"rowSpan":lw(a,l,"rowspan",b,r,m);continue;case"start":lw(a,l,l,b,r,m);continue;case"xHeight":Pp(a,l,"x-height",b,r,m);continue;case"xlinkActuate":Pp(a,l,"xlink:actuate",b,r,m);continue;case"xlinkArcrole":Pp(a,l,"xlink:arcrole",b,r,m);continue;case"xlinkRole":Pp(a,l,"xlink:role",b,r,m);continue;case"xlinkShow":Pp(a,l,"xlink:show",b,r,m);continue;case"xlinkTitle":Pp(a,l,"xlink:title",b,r,m);continue;case"xlinkType":Pp(a,l,"xlink:type",b,r,m);continue;case"xmlBase":Pp(a,l,"xml:base",b,r,m);continue;case"xmlLang":Pp(a,l,"xml:lang",b,r,m);continue;case"xmlSpace":Pp(a,l,"xml:space",b,r,m);continue;case"inert":b!==""||zb[l]||(zb[l]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",l)),cw(a,l,l,b,r,m);continue;default:if(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N"){i=fl(l),v=!1,t.context===Jm&&o!=="svg"&&o!=="math"?r.delete(i.toLowerCase()):(Y=l.toLowerCase(),Y=K2.hasOwnProperty(Y)?K2[Y]||null:null,Y!==null&&Y!==l&&(v=!0,r.delete(Y)),r.delete(i));a:if(Y=a,X=i,i=b,Sb(X))if(Y.hasAttribute(X))Y=Y.getAttribute(X),Ia(i,X),i=Y===""+i?i:Y;else{switch(typeof i){case"function":case"symbol":break a;case"boolean":if(Y=X.toLowerCase().slice(0,5),Y!=="data-"&&Y!=="aria-")break a}i=i===void 0?void 0:null}else i=void 0;v||Mo(l,i,b,m)}}}return 0<r.size&&p.suppressHydrationWarning!==!0&&B$(a,r,m),Object.keys(m).length===0?null:m}function K$(a,o){switch(a.length){case 0:return"";case 1:return a[0];case 2:return a[0]+" "+o+" "+a[1];default:return a.slice(0,-1).join(", ")+", "+o+" "+a[a.length-1]}}function ww(a){switch(a){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function H$(){if(typeof performance.getEntriesByType==="function"){for(var a=0,o=0,p=performance.getEntriesByType("resource"),t=0;t<p.length;t++){var m=p[t],r=m.transferSize,v=m.initiatorType,i=m.duration;if(r&&i&&ww(v)){v=0,i=m.responseEnd;for(t+=1;t<p.length;t++){var b=p[t],l=b.startTime;if(l>i)break;var{transferSize:Y,initiatorType:X}=b;Y&&ww(X)&&(b=b.responseEnd,v+=Y*(b<i?1:(i-l)/(b-l)))}if(--t,o+=8*(r+v)/(m.duration/1000),a++,10<a)break}}if(0<a)return o/a/1e6}return navigator.connection&&(a=navigator.connection.downlink,typeof a==="number")?a:5}function i2(a){return a.nodeType===9?a:a.ownerDocument}function zw(a){switch(a){case nv:return b0;case d2:return Jb;default:return Jm}}function $w(a,o){if(a===Jm)switch(o){case"svg":return b0;case"math":return Jb;default:return Jm}return a===b0&&o==="foreignObject"?Jm:a}function gc(a,o){return a==="textarea"||a==="noscript"||typeof o.children==="string"||typeof o.children==="number"||typeof o.children==="bigint"||typeof o.dangerouslySetInnerHTML==="object"&&o.dangerouslySetInnerHTML!==null&&o.dangerouslySetInnerHTML.__html!=null}function W$(){var a=window.event;if(a&&a.type==="popstate"){if(a===q3)return!1;return q3=a,!0}return q3=null,!1}function s0(){var a=window.event;return a&&a!==Vi?a.type:null}function e0(){var a=window.event;return a&&a!==Vi?a.timeStamp:-1.1}function U$(a){setTimeout(function(){throw a})}function h$(a,o,p){switch(o){case"button":case"input":case"select":case"textarea":p.autoFocus&&a.focus();break;case"img":p.src?a.src=p.src:p.srcSet&&(a.srcset=p.srcSet)}}function y$(){}function k$(a,o,p,t){d$(a,o,p,t),a[pp]=t}function Jw(a){K0(a,"")}function n$(a,o,p){a.nodeValue=p}function Yw(a){if(!a.__reactWarnedAboutChildrenConflict){var o=a[pp]||null;if(o!==null){var p=Qm(a);p!==null&&(typeof o.children==="string"||typeof o.children==="number"?(a.__reactWarnedAboutChildrenConflict=!0,g(p,function(){console.error('Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets "children" text content using React. It should be a leaf with no children. Otherwise it\'s ambiguous which children should be used.')})):o.dangerouslySetInnerHTML!=null&&(a.__reactWarnedAboutChildrenConflict=!0,g(p,function(){console.error('Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets "dangerouslySetInnerHTML" using React. It should be a leaf with no children. Otherwise it\'s ambiguous which children should be used.')})))}}}function Lm(a){return a==="head"}function L$(a,o){a.removeChild(o)}function N$(a,o){(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).removeChild(o)}function Xw(a,o){var p=o,t=0;do{var m=p.nextSibling;if(a.removeChild(p),m&&m.nodeType===8)if(p=m.data,p===xi||p===$b){if(t===0){a.removeChild(m),Hv(o);return}t--}else if(p===ui||p===tr||p===xr||p===i0||p===ur)t++;else if(p===FY)ai(a.ownerDocument.documentElement);else if(p===CY){p=a.ownerDocument.head,ai(p);for(var r=p.firstChild;r;){var{nextSibling:v,nodeName:i}=r;r[ii]||i==="SCRIPT"||i==="STYLE"||i==="LINK"&&r.rel.toLowerCase()==="stylesheet"||p.removeChild(r),r=v}}else p===PY&&ai(a.ownerDocument.body);p=m}while(p);Hv(o)}function Zw(a,o){var p=a;a=0;do{var t=p.nextSibling;if(p.nodeType===1?o?(p._stashedDisplay=p.style.display,p.style.display="none"):(p.style.display=p._stashedDisplay||"",p.getAttribute("style")===""&&p.removeAttribute("style")):p.nodeType===3&&(o?(p._stashedText=p.nodeValue,p.nodeValue=""):p.nodeValue=p._stashedText||""),t&&t.nodeType===8)if(p=t.data,p===xi)if(a===0)break;else a--;else p!==ui&&p!==tr&&p!==xr&&p!==i0||a++;p=t}while(p)}function O$(a){Zw(a,!0)}function R$(a){a=a.style,typeof a.setProperty==="function"?a.setProperty("display","none","important"):a.display="none"}function M$(a){a.nodeValue=""}function g$(a){Zw(a,!1)}function F$(a,o){o=o[IY],o=o!==void 0&&o!==null&&o.hasOwnProperty("display")?o.display:null,a.style.display=o==null||typeof o==="boolean"?"":(""+o).trim()}function P$(a,o){a.nodeValue=o}function Fc(a){var o=a.firstChild;o&&o.nodeType===10&&(o=o.nextSibling);for(;o;){var p=o;switch(o=o.nextSibling,p.nodeName){case"HTML":case"HEAD":case"BODY":Fc(p),Tb(p);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(p.rel.toLowerCase()==="stylesheet")continue}a.removeChild(p)}}function C$(a,o,p,t){for(;a.nodeType===1;){var m=p;if(a.nodeName.toLowerCase()!==o.toLowerCase()){if(!t&&(a.nodeName!=="INPUT"||a.type!=="hidden"))break}else if(!t)if(o==="input"&&a.type==="hidden"){Ia(m.name,"name");var r=m.name==null?null:""+m.name;if(m.type==="hidden"&&a.getAttribute("name")===r)return a}else return a;else if(!a[ii])switch(o){case"meta":if(!a.hasAttribute("itemprop"))break;return a;case"link":if(r=a.getAttribute("rel"),r==="stylesheet"&&a.hasAttribute("data-precedence"))break;else if(r!==m.rel||a.getAttribute("href")!==(m.href==null||m.href===""?null:m.href)||a.getAttribute("crossorigin")!==(m.crossOrigin==null?null:m.crossOrigin)||a.getAttribute("title")!==(m.title==null?null:m.title))break;return a;case"style":if(a.hasAttribute("data-precedence"))break;return a;case"script":if(r=a.getAttribute("src"),(r!==(m.src==null?null:m.src)||a.getAttribute("type")!==(m.type==null?null:m.type)||a.getAttribute("crossorigin")!==(m.crossOrigin==null?null:m.crossOrigin))&&r&&a.hasAttribute("async")&&!a.hasAttribute("itemprop"))break;return a;default:return a}if(a=Wp(a.nextSibling),a===null)break}return null}function I$(a,o,p){if(o==="")return null;for(;a.nodeType!==3;){if((a.nodeType!==1||a.nodeName!=="INPUT"||a.type!=="hidden")&&!p)return null;if(a=Wp(a.nextSibling),a===null)return null}return a}function Gw(a,o){for(;a.nodeType!==8;){if((a.nodeType!==1||a.nodeName!=="INPUT"||a.type!=="hidden")&&!o)return null;if(a=Wp(a.nextSibling),a===null)return null}return a}function Pc(a){return a.data===tr||a.data===xr}function Cc(a){return a.data===i0||a.data===tr&&a.ownerDocument.readyState!==b9}function A$(a,o){var p=a.ownerDocument;if(a.data===xr)a._reactRetry=o;else if(a.data!==tr||p.readyState!==b9)o();else{var t=function(){o(),p.removeEventListener("DOMContentLoaded",t)};p.addEventListener("DOMContentLoaded",t),a._reactRetry=t}}function Wp(a){for(;a!=null;a=a.nextSibling){var o=a.nodeType;if(o===1||o===3)break;if(o===8){if(o=a.data,o===ui||o===i0||o===tr||o===xr||o===ur||o===X3||o===i9)break;if(o===xi||o===$b)return null}}return a}function qw(a){if(a.nodeType===1){for(var o=a.nodeName.toLowerCase(),p={},t=a.attributes,m=0;m<t.length;m++){var r=t[m];p[iw(r.name)]=r.name.toLowerCase()==="style"?Oc(a):r.value}return{type:o,props:p}}return a.nodeType===8?a.data===ur?{type:"Activity",props:{}}:{type:"Suspense",props:{}}:a.nodeValue}function Qw(a,o,p){return p===null||p[gY]!==!0?(a.nodeValue===o?a=null:(o=nm(o),a=nm(a.nodeValue)===o?null:a.nodeValue),a):null}function Ic(a){a=a.nextSibling;for(var o=0;a;){if(a.nodeType===8){var p=a.data;if(p===xi||p===$b){if(o===0)return Wp(a.nextSibling);o--}else p!==ui&&p!==i0&&p!==tr&&p!==xr&&p!==ur||o++}a=a.nextSibling}return null}function _w(a){a=a.previousSibling;for(var o=0;a;){if(a.nodeType===8){var p=a.data;if(p===ui||p===i0||p===tr||p===xr||p===ur){if(o===0)return a;o--}else p!==xi&&p!==$b||o++}a=a.previousSibling}return null}function T$(a){Hv(a)}function S$(a){Hv(a)}function u$(a){Hv(a)}function Bw(a,o,p,t,m){switch(m&&eb(a,t.ancestorInfo),o=i2(p),a){case"html":if(a=o.documentElement,!a)throw Error("React expected an <html> element (document.documentElement) to exist in the Document but one was not found. React never removes the documentElement for any Document it renders into so the cause is likely in some other script running on this page.");return a;case"head":if(a=o.head,!a)throw Error("React expected a <head> element (document.head) to exist in the Document but one was not found. React never removes the head for any Document it renders into so the cause is likely in some other script running on this page.");return a;case"body":if(a=o.body,!a)throw Error("React expected a <body> element (document.body) to exist in the Document but one was not found. React never removes the body for any Document it renders into so the cause is likely in some other script running on this page.");return a;default:throw Error("resolveSingletonInstance was called with an element type that is not supported. This is a bug in React.")}}function x$(a,o,p,t){if(!p[Mm]&&Qm(p)){var m=p.tagName.toLowerCase();console.error("You are mounting a new %s component when a previous one has not first unmounted. It is an error to render more than one %s component at a time and attributes and children of these components will likely fail in unpredictable ways. Please only render a single instance of <%s> and if you need to mount a new one, ensure any previous ones have unmounted first.",m,m,m)}switch(a){case"html":case"head":case"body":break;default:console.error("acquireSingletonInstance was called with an element type that is not supported. This is a bug in React.")}for(m=p.attributes;m.length;)p.removeAttributeNode(m[0]);To(p,a,o),p[So]=t,p[pp]=o}function ai(a){for(var o=a.attributes;o.length;)a.removeAttributeNode(o[0]);Tb(a)}function b2(a){return typeof a.getRootNode==="function"?a.getRootNode():a.nodeType===9?a:a.ownerDocument}function dw(a,o,p){var t=c0;if(t&&typeof o==="string"&&o){var m=Fp(o);m='link[rel="'+a+'"][href="'+m+'"]',typeof p==="string"&&(m+='[crossorigin="'+p+'"]'),$9.has(m)||($9.add(m),a={rel:a,crossOrigin:p,href:o},t.querySelector(m)===null&&(o=t.createElement("link"),To(o,"link",a),Ro(o),t.head.appendChild(o)))}}function Kw(a,o,p,t){var m=(m=Om.current)?b2(m):null;if(!m)throw Error('"resourceRoot" was expected to exist. This is a bug in React.');switch(a){case"meta":case"title":return null;case"style":return typeof p.precedence==="string"&&typeof p.href==="string"?(p=dv(p.href),o=vv(m).hoistableStyles,t=o.get(p),t||(t={type:"style",instance:null,count:0,state:null},o.set(p,t)),t):{type:"void",instance:null,count:0,state:null};case"link":if(p.rel==="stylesheet"&&typeof p.href==="string"&&typeof p.precedence==="string"){a=dv(p.href);var r=vv(m).hoistableStyles,v=r.get(a);if(!v&&(m=m.ownerDocument||m,v={type:"stylesheet",instance:null,count:0,state:{loading:jr,preload:null}},r.set(a,v),(r=m.querySelector(oi(a)))&&!r._p&&(v.instance=r,v.state.loading=ji|Ep),!sp.has(a))){var i={rel:"preload",as:"style",href:p.href,crossOrigin:p.crossOrigin,integrity:p.integrity,media:p.media,hrefLang:p.hrefLang,referrerPolicy:p.referrerPolicy};sp.set(a,i),r||V$(m,a,i,v.state)}if(o&&t===null)throw p=`
161
-
162
- - `+c2(o)+`
163
- + `+c2(p),Error("Expected <link> not to update to be updated to a stylesheet with precedence. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+p);return v}if(o&&t!==null)throw p=`
164
-
165
- - `+c2(o)+`
166
- + `+c2(p),Error("Expected stylesheet with precedence to not be updated to a different kind of <link>. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+p);return null;case"script":return o=p.async,p=p.src,typeof p==="string"&&o&&typeof o!=="function"&&typeof o!=="symbol"?(p=Kv(p),o=vv(m).hoistableScripts,t=o.get(p),t||(t={type:"script",instance:null,count:0,state:null},o.set(p,t)),t):{type:"void",instance:null,count:0,state:null};default:throw Error('getResource encountered a type it did not expect: "'+a+'". this is a bug in React.')}}function c2(a){var o=0,p="<link";return typeof a.rel==="string"?(o++,p+=' rel="'+a.rel+'"'):vt.call(a,"rel")&&(o++,p+=' rel="'+(a.rel===null?"null":"invalid type "+typeof a.rel)+'"'),typeof a.href==="string"?(o++,p+=' href="'+a.href+'"'):vt.call(a,"href")&&(o++,p+=' href="'+(a.href===null?"null":"invalid type "+typeof a.href)+'"'),typeof a.precedence==="string"?(o++,p+=' precedence="'+a.precedence+'"'):vt.call(a,"precedence")&&(o++,p+=" precedence={"+(a.precedence===null?"null":"invalid type "+typeof a.precedence)+"}"),Object.getOwnPropertyNames(a).length>o&&(p+=" ..."),p+" />"}function dv(a){return'href="'+Fp(a)+'"'}function oi(a){return'link[rel="stylesheet"]['+a+"]"}function Hw(a){return ka({},a,{"data-precedence":a.precedence,precedence:null})}function V$(a,o,p,t){a.querySelector('link[rel="preload"][as="style"]['+o+"]")?t.loading=ji:(o=a.createElement("link"),t.preload=o,o.addEventListener("load",function(){return t.loading|=ji}),o.addEventListener("error",function(){return t.loading|=w9}),To(o,"link",p),Ro(o),a.head.appendChild(o))}function Kv(a){return'[src="'+Fp(a)+'"]'}function pi(a){return"script[async]"+a}function Ww(a,o,p){if(o.count++,o.instance===null)switch(o.type){case"style":var t=a.querySelector('style[data-href~="'+Fp(p.href)+'"]');if(t)return o.instance=t,Ro(t),t;var m=ka({},p,{"data-href":p.href,"data-precedence":p.precedence,href:null,precedence:null});return t=(a.ownerDocument||a).createElement("style"),Ro(t),To(t,"style",m),l2(t,p.precedence,a),o.instance=t;case"stylesheet":m=dv(p.href);var r=a.querySelector(oi(m));if(r)return o.state.loading|=Ep,o.instance=r,Ro(r),r;t=Hw(p),(m=sp.get(m))&&Ac(t,m),r=(a.ownerDocument||a).createElement("link"),Ro(r);var v=r;return v._p=new Promise(function(i,b){v.onload=i,v.onerror=b}),To(r,"link",t),o.state.loading|=Ep,l2(r,p.precedence,a),o.instance=r;case"script":if(r=Kv(p.src),m=a.querySelector(pi(r)))return o.instance=m,Ro(m),m;if(t=p,m=sp.get(r))t=ka({},p),Tc(t,m);return a=a.ownerDocument||a,m=a.createElement("script"),Ro(m),To(m,"link",t),a.head.appendChild(m),o.instance=m;case"void":return null;default:throw Error('acquireResource encountered a resource type it did not expect: "'+o.type+'". this is a bug in React.')}else o.type==="stylesheet"&&(o.state.loading&Ep)===jr&&(t=o.instance,o.state.loading|=Ep,l2(t,p.precedence,a));return o.instance}function l2(a,o,p){for(var t=p.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),m=t.length?t[t.length-1]:null,r=m,v=0;v<t.length;v++){var i=t[v];if(i.dataset.precedence===o)r=i;else if(r!==m)break}r?r.parentNode.insertBefore(a,r.nextSibling):(o=p.nodeType===9?p.head:p,o.insertBefore(a,o.firstChild))}function Ac(a,o){a.crossOrigin==null&&(a.crossOrigin=o.crossOrigin),a.referrerPolicy==null&&(a.referrerPolicy=o.referrerPolicy),a.title==null&&(a.title=o.title)}function Tc(a,o){a.crossOrigin==null&&(a.crossOrigin=o.crossOrigin),a.referrerPolicy==null&&(a.referrerPolicy=o.referrerPolicy),a.integrity==null&&(a.integrity=o.integrity)}function Uw(a,o,p){if(Yb===null){var t=new Map,m=Yb=new Map;m.set(p,t)}else m=Yb,t=m.get(p),t||(t=new Map,m.set(p,t));if(t.has(a))return t;t.set(a,null),p=p.getElementsByTagName(a);for(m=0;m<p.length;m++){var r=p[m];if(!(r[ii]||r[So]||a==="link"&&r.getAttribute("rel")==="stylesheet")&&r.namespaceURI!==nv){var v=r.getAttribute(o)||"";v=a+v;var i=t.get(v);i?i.push(r):t.set(v,[r])}}return t}function hw(a,o,p){a=a.ownerDocument||a,a.head.insertBefore(p,o==="title"?a.querySelector("head > title"):null)}function j$(a,o,p){var t=!p.ancestorInfo.containerTagInScope;if(p.context===b0||o.itemProp!=null)return!t||o.itemProp==null||a!=="meta"&&a!=="title"&&a!=="style"&&a!=="link"&&a!=="script"||console.error("Cannot render a <%s> outside the main document if it has an `itemProp` prop. `itemProp` suggests the tag belongs to an `itemScope` which can appear anywhere in the DOM. If you were intending for React to hoist this <%s> remove the `itemProp` prop. Otherwise, try moving this tag into the <head> or <body> of the Document.",a,a),!1;switch(a){case"meta":case"title":return!0;case"style":if(typeof o.precedence!=="string"||typeof o.href!=="string"||o.href===""){t&&console.error('Cannot render a <style> outside the main document without knowing its precedence and a unique href key. React can hoist and deduplicate <style> tags if you provide a `precedence` prop along with an `href` prop that does not conflict with the `href` values used in any other hoisted <style> or <link rel="stylesheet" ...> tags. Note that hoisting <style> tags is considered an advanced feature that most will not use directly. Consider moving the <style> tag to the <head> or consider adding a `precedence="default"` and `href="some unique resource identifier"`.');break}return!0;case"link":if(typeof o.rel!=="string"||typeof o.href!=="string"||o.href===""||o.onLoad||o.onError){if(o.rel==="stylesheet"&&typeof o.precedence==="string"){a=o.href;var{onError:m,disabled:r}=o;p=[],o.onLoad&&p.push("`onLoad`"),m&&p.push("`onError`"),r!=null&&p.push("`disabled`"),m=K$(p,"and"),m+=p.length===1?" prop":" props",r=p.length===1?"an "+m:"the "+m,p.length&&console.error('React encountered a <link rel="stylesheet" href="%s" ... /> with a `precedence` prop that also included %s. The presence of loading and error handlers indicates an intent to manage the stylesheet loading state from your from your Component code and React will not hoist or deduplicate this stylesheet. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop remove the %s, otherwise remove the `precedence` prop.',a,r,m)}t&&(typeof o.rel!=="string"||typeof o.href!=="string"||o.href===""?console.error("Cannot render a <link> outside the main document without a `rel` and `href` prop. Try adding a `rel` and/or `href` prop to this <link> or moving the link into the <head> tag"):(o.onError||o.onLoad)&&console.error("Cannot render a <link> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."));break}switch(o.rel){case"stylesheet":return a=o.precedence,o=o.disabled,typeof a!=="string"&&t&&console.error('Cannot render a <link rel="stylesheet" /> outside the main document without knowing its precedence. Consider adding precedence="default" or moving it into the root <head> tag.'),typeof a==="string"&&o==null;default:return!0}case"script":if(a=o.async&&typeof o.async!=="function"&&typeof o.async!=="symbol",!a||o.onLoad||o.onError||!o.src||typeof o.src!=="string"){t&&(a?o.onLoad||o.onError?console.error("Cannot render a <script> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."):console.error("Cannot render a <script> outside the main document without `async={true}` and a non-empty `src` prop. Ensure there is a valid `src` and either make the script async or move it into the root <head> tag or somewhere in the <body>."):console.error('Cannot render a sync or defer <script> outside the main document without knowing its order. Try adding async="" or moving it into the root <head> tag.'));break}return!0;case"noscript":case"template":t&&console.error("Cannot render <%s> outside the main document. Try moving it into the root <head> tag.",a)}return!1}function yw(a){return a.type==="stylesheet"&&(a.state.loading&z9)===jr?!1:!0}function D$(a,o,p,t){if(p.type==="stylesheet"&&(typeof t.media!=="string"||matchMedia(t.media).matches!==!1)&&(p.state.loading&Ep)===jr){if(p.instance===null){var m=dv(t.href),r=o.querySelector(oi(m));if(r){o=r._p,o!==null&&typeof o==="object"&&typeof o.then==="function"&&(a.count++,a=f2.bind(a),o.then(a,a)),p.state.loading|=Ep,p.instance=r,Ro(r);return}r=o.ownerDocument||o,t=Hw(t),(m=sp.get(m))&&Ac(t,m),r=r.createElement("link"),Ro(r);var v=r;v._p=new Promise(function(i,b){v.onload=i,v.onerror=b}),To(r,"link",t),p.instance=r}a.stylesheets===null&&(a.stylesheets=new Map),a.stylesheets.set(p,o),(o=p.state.preload)&&(p.state.loading&z9)===jr&&(a.count++,p=f2.bind(a),o.addEventListener("load",p),o.addEventListener("error",p))}}function E$(a,o){return a.stylesheets&&a.count===0&&w2(a,a.stylesheets),0<a.count||0<a.imgCount?function(p){var t=setTimeout(function(){if(a.stylesheets&&w2(a,a.stylesheets),a.unsuspend){var r=a.unsuspend;a.unsuspend=null,r()}},SY+o);0<a.imgBytes&&_3===0&&(_3=125*H$()*xY);var m=setTimeout(function(){if(a.waitingForImages=!1,a.count===0&&(a.stylesheets&&w2(a,a.stylesheets),a.unsuspend)){var r=a.unsuspend;a.unsuspend=null,r()}},(a.imgBytes>_3?50:uY)+o);return a.unsuspend=p,function(){a.unsuspend=null,clearTimeout(t),clearTimeout(m)}}:null}function f2(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)w2(this,this.stylesheets);else if(this.unsuspend){var a=this.unsuspend;this.unsuspend=null,a()}}}function w2(a,o){a.stylesheets=null,a.unsuspend!==null&&(a.count++,Xb=new Map,o.forEach(s$,a),Xb=null,f2.call(a))}function s$(a,o){if(!(o.state.loading&Ep)){var p=Xb.get(a);if(p)var t=p.get(B3);else{p=new Map,Xb.set(a,p);for(var m=a.querySelectorAll("link[data-precedence],style[data-precedence]"),r=0;r<m.length;r++){var v=m[r];if(v.nodeName==="LINK"||v.getAttribute("media")!=="not all")p.set(v.dataset.precedence,v),t=v}t&&p.set(B3,t)}m=o.instance,v=m.getAttribute("data-precedence"),r=p.get(v)||t,r===t&&p.set(B3,m),p.set(v,m),this.count++,t=f2.bind(this),m.addEventListener("load",t),m.addEventListener("error",t),r?r.parentNode.insertBefore(m,r.nextSibling):(a=a.nodeType===9?a.head:a,a.insertBefore(m,a.firstChild)),o.state.loading|=Ep}}function e$(a,o,p,t,m,r,v,i,b){this.tag=1,this.containerInfo=a,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=Vr,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Cb(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Cb(0),this.hiddenUpdates=Cb(null),this.identifierPrefix=t,this.onUncaughtError=m,this.onCaughtError=r,this.onRecoverableError=v,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=b,this.incompleteTransitions=new Map,this.passiveEffectDuration=this.effectDuration=-0,this.memoizedUpdaters=new Set,a=this.pendingUpdatersLaneMap=[];for(o=0;31>o;o++)a.push(new Set);this._debugRootType=p?"hydrateRoot()":"createRoot()"}function kw(a,o,p,t,m,r,v,i,b,l,Y,X){return a=new e$(a,o,p,v,b,l,Y,X,i),o=ZY,r===!0&&(o|=Eo|bt),o|=Ha,r=O(3,null,null,o),a.current=r,r.stateNode=a,o=Z1(),Qr(o),a.pooledCache=o,Qr(o),r.memoizedState={element:t,isDehydrated:p,cache:o},B1(r),a}function nw(a){if(!a)return Cm;return a=Cm,a}function Sc(a,o,p,t,m,r){if(Do&&typeof Do.onScheduleFiberRoot==="function")try{Do.onScheduleFiberRoot(yv,t,p)}catch(v){Ot||(Ot=!0,console.error("React instrumentation encountered an error: %o",v))}m=nw(m),t.context===null?t.context=m:t.pendingContext=m,Nt&&hp!==null&&!Z9&&(Z9=!0,console.error(`Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.
167
-
168
- Check the render method of %s.`,U(hp)||"Unknown")),t=Hm(o),t.payload={element:p},r=r===void 0?null:r,r!==null&&(typeof r!=="function"&&console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",r),t.callback=r),p=Wm(a,t,o),p!==null&&(Gt(o,"root.render()",null),Yo(p,a,o),R0(p,a,o))}function Lw(a,o){if(a=a.memoizedState,a!==null&&a.dehydrated!==null){var p=a.retryLane;a.retryLane=p!==0&&p<o?p:o}}function uc(a,o){Lw(a,o),(a=a.alternate)&&Lw(a,o)}function Nw(a){if(a.tag===13||a.tag===31){var o=jo(a,67108864);o!==null&&Yo(o,a,67108864),uc(a,67108864)}}function Ow(a){if(a.tag===13||a.tag===31){var o=Hp(a);o=Ib(o);var p=jo(a,o);p!==null&&Yo(p,a,o),uc(a,o)}}function aJ(){return hp}function oJ(a,o,p,t){var m=K.T;K.T=null;var r=ua.p;try{ua.p=yp,xc(a,o,p,t)}finally{ua.p=r,K.T=m}}function pJ(a,o,p,t){var m=K.T;K.T=null;var r=ua.p;try{ua.p=it,xc(a,o,p,t)}finally{ua.p=r,K.T=m}}function xc(a,o,p,t){if(Gb){var m=Vc(t);if(m===null)nc(a,o,t,qb,p),Mw(a,t);else if(tJ(m,a,o,p,t))t.stopPropagation();else if(Mw(a,t),o&4&&-1<jY.indexOf(a)){for(;m!==null;){var r=Qm(m);if(r!==null)switch(r.tag){case 3:if(r=r.stateNode,r.current.memoizedState.isDehydrated){var v=pt(r.pendingLanes);if(v!==0){var i=r;i.pendingLanes|=2;for(i.entangledLanes|=2;v;){var b=1<<31-op(v);i.entanglements[1]|=b,v&=~b}yt(r),(Pa&(Oo|Np))===Co&&(pb=go()+u8,D0(0,!1))}}break;case 31:case 13:i=jo(r,2),i!==null&&Yo(i,r,2),Qv(),uc(r,2)}if(r=Vc(t),r===null&&nc(a,o,t,qb,p),r===m)break;m=r}m!==null&&t.stopPropagation()}else nc(a,o,t,null,p)}}function Vc(a){return a=a1(a),jc(a)}function jc(a){if(qb=null,a=rv(a),a!==null){var o=ca(a);if(o===null)a=null;else{var p=o.tag;if(p===13){if(a=ra(o),a!==null)return a;a=null}else if(p===31){if(a=$a(o),a!==null)return a;a=null}else if(p===3){if(o.stateNode.current.memoizedState.isDehydrated)return o.tag===3?o.stateNode.containerInfo:null;a=null}else o!==a&&(a=null)}}return qb=a,null}function Rw(a){switch(a){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 yp;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 it;case"message":switch(wJ()){case b4:return yp;case c4:return it;case hv:case zJ:return Mt;case l4:return _2;default:return Mt}default:return Mt}}function Mw(a,o){switch(a){case"focusin":case"focusout":mr=null;break;case"dragenter":case"dragleave":rr=null;break;case"mouseover":case"mouseout":vr=null;break;case"pointerover":case"pointerout":Ei.delete(o.pointerId);break;case"gotpointercapture":case"lostpointercapture":si.delete(o.pointerId)}}function ti(a,o,p,t,m,r){if(a===null||a.nativeEvent!==r)return a={blockedOn:o,domEventName:p,eventSystemFlags:t,nativeEvent:r,targetContainers:[m]},o!==null&&(o=Qm(o),o!==null&&Nw(o)),a;return a.eventSystemFlags|=t,o=a.targetContainers,m!==null&&o.indexOf(m)===-1&&o.push(m),a}function tJ(a,o,p,t,m){switch(o){case"focusin":return mr=ti(mr,a,o,p,t,m),!0;case"dragenter":return rr=ti(rr,a,o,p,t,m),!0;case"mouseover":return vr=ti(vr,a,o,p,t,m),!0;case"pointerover":var r=m.pointerId;return Ei.set(r,ti(Ei.get(r)||null,a,o,p,t,m)),!0;case"gotpointercapture":return r=m.pointerId,si.set(r,ti(si.get(r)||null,a,o,p,t,m)),!0}return!1}function gw(a){var o=rv(a.target);if(o!==null){var p=ca(o);if(p!==null){if(o=p.tag,o===13){if(o=ra(p),o!==null){a.blockedOn=o,T3(a.priority,function(){Ow(p)});return}}else if(o===31){if(o=$a(p),o!==null){a.blockedOn=o,T3(a.priority,function(){Ow(p)});return}}else if(o===3&&p.stateNode.current.memoizedState.isDehydrated){a.blockedOn=p.tag===3?p.stateNode.containerInfo:null;return}}}a.blockedOn=null}function z2(a){if(a.blockedOn!==null)return!1;for(var o=a.targetContainers;0<o.length;){var p=Vc(a.nativeEvent);if(p===null){p=a.nativeEvent;var t=new p.constructor(p.type,p),m=t;bi!==null&&console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),bi=m,p.target.dispatchEvent(t),bi===null&&console.error("Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue."),bi=null}else return o=Qm(p),o!==null&&Nw(o),a.blockedOn=p,!1;o.shift()}return!0}function Fw(a,o,p){z2(a)&&p.delete(o)}function mJ(){d3=!1,mr!==null&&z2(mr)&&(mr=null),rr!==null&&z2(rr)&&(rr=null),vr!==null&&z2(vr)&&(vr=null),Ei.forEach(Fw),si.forEach(Fw)}function $2(a,o){a.blockedOn===o&&(a.blockedOn=null,d3||(d3=!0,Ca.unstable_scheduleCallback(Ca.unstable_NormalPriority,mJ)))}function Pw(a){Qb!==a&&(Qb=a,Ca.unstable_scheduleCallback(Ca.unstable_NormalPriority,function(){Qb===a&&(Qb=null);for(var o=0;o<a.length;o+=3){var p=a[o],t=a[o+1],m=a[o+2];if(typeof t!=="function")if(jc(t||p)===null)continue;else break;var r=Qm(p);r!==null&&(a.splice(o,3),o-=3,p={pending:!0,data:m,method:p.method,action:t},Object.freeze(p),j1(r,p,t,m))}}))}function Hv(a){function o(b){return $2(b,a)}mr!==null&&$2(mr,a),rr!==null&&$2(rr,a),vr!==null&&$2(vr,a),Ei.forEach(o),si.forEach(o);for(var p=0;p<ir.length;p++){var t=ir[p];t.blockedOn===a&&(t.blockedOn=null)}for(;0<ir.length&&(p=ir[0],p.blockedOn===null);)gw(p),p.blockedOn===null&&ir.shift();if(p=(a.ownerDocument||a).$$reactFormReplay,p!=null)for(t=0;t<p.length;t+=3){var m=p[t],r=p[t+1],v=m[pp]||null;if(typeof r==="function")v||Pw(p);else if(v){var i=null;if(r&&r.hasAttribute("formAction")){if(m=r,v=r[pp]||null)i=v.formAction;else if(jc(m)!==null)continue}else i=v.action;typeof i==="function"?p[t+1]=i:(p.splice(t,3),t-=3),Pw(p)}}}function Cw(){function a(r){r.canIntercept&&r.info==="react-transition"&&r.intercept({handler:function(){return new Promise(function(v){return m=v})},focusReset:"manual",scroll:"manual"})}function o(){m!==null&&(m(),m=null),t||setTimeout(p,20)}function p(){if(!t&&!navigation.transition){var r=navigation.currentEntry;r&&r.url!=null&&navigation.navigate(r.url,{state:r.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation==="object"){var t=!1,m=null;return navigation.addEventListener("navigate",a),navigation.addEventListener("navigatesuccess",o),navigation.addEventListener("navigateerror",o),setTimeout(p,100),function(){t=!0,navigation.removeEventListener("navigate",a),navigation.removeEventListener("navigatesuccess",o),navigation.removeEventListener("navigateerror",o),m!==null&&(m(),m=null)}}}function Dc(a){this._internalRoot=a}function J2(a){this._internalRoot=a}function Iw(a){a[Mm]&&(a._reactRootContainer?console.error("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported."):console.error("You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it."))}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var ka=Object.assign,rJ=Symbol.for("react.element"),nt=Symbol.for("react.transitional.element"),Wv=Symbol.for("react.portal"),Uv=Symbol.for("react.fragment"),Y2=Symbol.for("react.strict_mode"),Ec=Symbol.for("react.profiler"),sc=Symbol.for("react.consumer"),Lt=Symbol.for("react.context"),mi=Symbol.for("react.forward_ref"),ec=Symbol.for("react.suspense"),a4=Symbol.for("react.suspense_list"),X2=Symbol.for("react.memo"),Up=Symbol.for("react.lazy"),o4=Symbol.for("react.activity"),vJ=Symbol.for("react.memo_cache_sentinel"),Aw=Symbol.iterator,iJ=Symbol.for("react.client.reference"),Lo=Array.isArray,K=l0.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ua=H3.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,bJ=Object.freeze({pending:!1,data:null,method:null,action:null}),p4=[],t4=[],om=-1,Nm=aa(null),ri=aa(null),Om=aa(null),Z2=aa(null),vi=0,Tw,Sw,uw,xw,Vw,jw,Dw;Vo.__reactDisabledLog=!0;var m4,Ew,r4=!1,v4=new(typeof WeakMap==="function"?WeakMap:Map),hp=null,Nt=!1,vt=Object.prototype.hasOwnProperty,i4=Ca.unstable_scheduleCallback,cJ=Ca.unstable_cancelCallback,lJ=Ca.unstable_shouldYield,fJ=Ca.unstable_requestPaint,go=Ca.unstable_now,wJ=Ca.unstable_getCurrentPriorityLevel,b4=Ca.unstable_ImmediatePriority,c4=Ca.unstable_UserBlockingPriority,hv=Ca.unstable_NormalPriority,zJ=Ca.unstable_LowPriority,l4=Ca.unstable_IdlePriority,$J=Ca.log,JJ=Ca.unstable_setDisableYieldValue,yv=null,Do=null,Ot=!1,Rt=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u",op=Math.clz32?Math.clz32:za,YJ=Math.log,XJ=Math.LN2,G2=256,q2=262144,Q2=4194304,yp=2,it=8,Mt=32,_2=268435456,Rm=Math.random().toString(36).slice(2),So="__reactFiber$"+Rm,pp="__reactProps$"+Rm,Mm="__reactContainer$"+Rm,f4="__reactEvents$"+Rm,ZJ="__reactListeners$"+Rm,GJ="__reactHandles$"+Rm,sw="__reactResources$"+Rm,ii="__reactMarker$"+Rm,ew=new Set,Ur={},w4={},qJ={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},QJ=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]*$"),a7={},o7={},_J=/[\n"\\]/g,p7=!1,t7=!1,m7=!1,r7=!1,v7=!1,i7=!1,b7=["value","defaultValue"],c7=!1,l7=/["'&<>\n\t]|^\s|\s$/,BJ="address applet area article aside base basefont bgsound blockquote body br button caption center col colgroup dd details dir div dl dt embed fieldset figcaption figure footer form frame frameset h1 h2 h3 h4 h5 h6 head header hgroup hr html iframe img input isindex li link listing main marquee menu menuitem meta nav noembed noframes noscript object ol p param plaintext pre script section select source style summary table tbody td template textarea tfoot th thead title tr track ul wbr xmp".split(" "),f7="applet caption html table td th marquee object template foreignObject desc title".split(" "),dJ=f7.concat(["button"]),KJ="dd dt li option optgroup p rp rt".split(" "),w7={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},B2={},z4={animation:"animationDelay animationDirection animationDuration animationFillMode animationIterationCount animationName animationPlayState animationTimingFunction".split(" "),background:"backgroundAttachment backgroundClip backgroundColor backgroundImage backgroundOrigin backgroundPositionX backgroundPositionY backgroundRepeat backgroundSize".split(" "),backgroundPosition:["backgroundPositionX","backgroundPositionY"],border:"borderBottomColor borderBottomStyle borderBottomWidth borderImageOutset borderImageRepeat borderImageSlice borderImageSource borderImageWidth borderLeftColor borderLeftStyle borderLeftWidth borderRightColor borderRightStyle borderRightWidth borderTopColor borderTopStyle borderTopWidth".split(" "),borderBlockEnd:["borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth"],borderBlockStart:["borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth"],borderBottom:["borderBottomColor","borderBottomStyle","borderBottomWidth"],borderColor:["borderBottomColor","borderLeftColor","borderRightColor","borderTopColor"],borderImage:["borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth"],borderInlineEnd:["borderInlineEndColor","borderInlineEndStyle","borderInlineEndWidth"],borderInlineStart:["borderInlineStartColor","borderInlineStartStyle","borderInlineStartWidth"],borderLeft:["borderLeftColor","borderLeftStyle","borderLeftWidth"],borderRadius:["borderBottomLeftRadius","borderBottomRightRadius","borderTopLeftRadius","borderTopRightRadius"],borderRight:["borderRightColor","borderRightStyle","borderRightWidth"],borderStyle:["borderBottomStyle","borderLeftStyle","borderRightStyle","borderTopStyle"],borderTop:["borderTopColor","borderTopStyle","borderTopWidth"],borderWidth:["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth"],columnRule:["columnRuleColor","columnRuleStyle","columnRuleWidth"],columns:["columnCount","columnWidth"],flex:["flexBasis","flexGrow","flexShrink"],flexFlow:["flexDirection","flexWrap"],font:"fontFamily fontFeatureSettings fontKerning fontLanguageOverride fontSize fontSizeAdjust fontStretch fontStyle fontVariant fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition fontWeight lineHeight".split(" "),fontVariant:"fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition".split(" "),gap:["columnGap","rowGap"],grid:"gridAutoColumns gridAutoFlow gridAutoRows gridTemplateAreas gridTemplateColumns gridTemplateRows".split(" "),gridArea:["gridColumnEnd","gridColumnStart","gridRowEnd","gridRowStart"],gridColumn:["gridColumnEnd","gridColumnStart"],gridColumnGap:["columnGap"],gridGap:["columnGap","rowGap"],gridRow:["gridRowEnd","gridRowStart"],gridRowGap:["rowGap"],gridTemplate:["gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],listStyle:["listStyleImage","listStylePosition","listStyleType"],margin:["marginBottom","marginLeft","marginRight","marginTop"],marker:["markerEnd","markerMid","markerStart"],mask:"maskClip maskComposite maskImage maskMode maskOrigin maskPositionX maskPositionY maskRepeat maskSize".split(" "),maskPosition:["maskPositionX","maskPositionY"],outline:["outlineColor","outlineStyle","outlineWidth"],overflow:["overflowX","overflowY"],padding:["paddingBottom","paddingLeft","paddingRight","paddingTop"],placeContent:["alignContent","justifyContent"],placeItems:["alignItems","justifyItems"],placeSelf:["alignSelf","justifySelf"],textDecoration:["textDecorationColor","textDecorationLine","textDecorationStyle"],textEmphasis:["textEmphasisColor","textEmphasisStyle"],transition:["transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction"],wordWrap:["overflowWrap"]},z7=/([A-Z])/g,$7=/^ms-/,HJ=/^(?:webkit|moz|o)[A-Z]/,WJ=/^-ms-/,UJ=/-(.)/g,J7=/;\s*$/,kv={},$4={},Y7=!1,X7=!1,Z7=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(" ")),d2="http://www.w3.org/1998/Math/MathML",nv="http://www.w3.org/2000/svg",hJ=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"]]),K2={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",fetchpriority:"fetchPriority",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",inert:"inert",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",popover:"popover",popovertarget:"popoverTarget",popovertargetaction:"popoverTargetAction",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",transformorigin:"transformOrigin","transform-origin":"transformOrigin",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},G7={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0,"aria-braillelabel":0,"aria-brailleroledescription":0,"aria-colindextext":0,"aria-rowindextext":0},Lv={},yJ=RegExp("^(aria)-[: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]*$"),kJ=RegExp("^(aria)[A-Z][: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]*$"),q7=!1,tp={},Q7=/^on./,nJ=/^on[^A-Z]/,LJ=RegExp("^(aria)-[: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]*$"),NJ=RegExp("^(aria)[A-Z][: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]*$"),OJ=/^[\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,bi=null,Nv=null,Ov=null,J4=!1,gt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Y4=!1;if(gt)try{var ci={};Object.defineProperty(ci,"passive",{get:function(){Y4=!0}}),window.addEventListener("test",ci,ci),window.removeEventListener("test",ci,ci)}catch(a){Y4=!1}var gm=null,X4=null,H2=null,hr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(a){return a.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},W2=fp(hr),li=ka({},hr,{view:0,detail:0}),RJ=fp(li),Z4,G4,fi,U2=ka({},li,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:o1,button:0,buttons:0,relatedTarget:function(a){return a.relatedTarget===void 0?a.fromElement===a.srcElement?a.toElement:a.fromElement:a.relatedTarget},movementX:function(a){if("movementX"in a)return a.movementX;return a!==fi&&(fi&&a.type==="mousemove"?(Z4=a.screenX-fi.screenX,G4=a.screenY-fi.screenY):G4=Z4=0,fi=a),Z4},movementY:function(a){return"movementY"in a?a.movementY:G4}}),_7=fp(U2),MJ=ka({},U2,{dataTransfer:0}),gJ=fp(MJ),FJ=ka({},li,{relatedTarget:0}),q4=fp(FJ),PJ=ka({},hr,{animationName:0,elapsedTime:0,pseudoElement:0}),CJ=fp(PJ),IJ=ka({},hr,{clipboardData:function(a){return"clipboardData"in a?a.clipboardData:window.clipboardData}}),AJ=fp(IJ),TJ=ka({},hr,{data:0}),B7=fp(TJ),SJ=B7,uJ={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},xJ={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"},VJ={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},jJ=ka({},li,{key:function(a){if(a.key){var o=uJ[a.key]||a.key;if(o!=="Unidentified")return o}return a.type==="keypress"?(a=z5(a),a===13?"Enter":String.fromCharCode(a)):a.type==="keydown"||a.type==="keyup"?xJ[a.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:o1,charCode:function(a){return a.type==="keypress"?z5(a):0},keyCode:function(a){return a.type==="keydown"||a.type==="keyup"?a.keyCode:0},which:function(a){return a.type==="keypress"?z5(a):a.type==="keydown"||a.type==="keyup"?a.keyCode:0}}),DJ=fp(jJ),EJ=ka({},U2,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),d7=fp(EJ),sJ=ka({},li,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:o1}),eJ=fp(sJ),aY=ka({},hr,{propertyName:0,elapsedTime:0,pseudoElement:0}),oY=fp(aY),pY=ka({},U2,{deltaX:function(a){return"deltaX"in a?a.deltaX:("wheelDeltaX"in a)?-a.wheelDeltaX:0},deltaY:function(a){return"deltaY"in a?a.deltaY:("wheelDeltaY"in a)?-a.wheelDeltaY:("wheelDelta"in a)?-a.wheelDelta:0},deltaZ:0,deltaMode:0}),tY=fp(pY),mY=ka({},hr,{newState:0,oldState:0}),rY=fp(mY),vY=[9,13,27,32],K7=229,Q4=gt&&"CompositionEvent"in window,wi=null;gt&&"documentMode"in document&&(wi=document.documentMode);var iY=gt&&"TextEvent"in window&&!wi,H7=gt&&(!Q4||wi&&8<wi&&11>=wi),W7=32,U7=String.fromCharCode(W7),h7=!1,Rv=!1,bY={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},zi=null,$i=null,y7=!1;gt&&(y7=hz("input")&&(!document.documentMode||9<document.documentMode));var mp=typeof Object.is==="function"?Object.is:Oz,cY=gt&&"documentMode"in document&&11>=document.documentMode,Mv=null,_4=null,Ji=null,B4=!1,gv={animationend:$r("Animation","AnimationEnd"),animationiteration:$r("Animation","AnimationIteration"),animationstart:$r("Animation","AnimationStart"),transitionrun:$r("Transition","TransitionRun"),transitionstart:$r("Transition","TransitionStart"),transitioncancel:$r("Transition","TransitionCancel"),transitionend:$r("Transition","TransitionEnd")},d4={},k7={};gt&&(k7=document.createElement("div").style,("AnimationEvent"in window)||(delete gv.animationend.animation,delete gv.animationiteration.animation,delete gv.animationstart.animation),("TransitionEvent"in window)||delete gv.transitionend.transition);var n7=Jr("animationend"),L7=Jr("animationiteration"),N7=Jr("animationstart"),lY=Jr("transitionrun"),fY=Jr("transitionstart"),wY=Jr("transitioncancel"),O7=Jr("transitionend"),R7=new Map,K4="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(" ");K4.push("scrollEnd");var M7=0;if(typeof performance==="object"&&typeof performance.now==="function")var zY=performance,g7=function(){return zY.now()};else{var $Y=Date;g7=function(){return $Y.now()}}var H4=typeof reportError==="function"?reportError:function(a){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var o=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof a==="object"&&a!==null&&typeof a.message==="string"?String(a.message):String(a),error:a});if(!window.dispatchEvent(o))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",a);return}console.error(a)},JY="This object has been omitted by React in the console log to avoid sending too much data from the server. Try logging smaller or more specific objects.",h2=0,W4=1,U4=2,h4=3,y2="– ",k2="+ ",F7="  ",ro=typeof console<"u"&&typeof console.timeStamp==="function"&&typeof performance<"u"&&typeof performance.measure==="function",Cp="Components ⚛",na="Scheduler ⚛",Na="Blocking",Fm=!1,pm={color:"primary",properties:null,tooltipText:"",track:Cp},Pm={start:-0,end:-0,detail:{devtools:pm}},YY=["Changed Props",""],P7="This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner.",XY=["Changed Props",P7],Yi=1,tm=2,Ip=[],Fv=0,y4=0,Cm={};Object.freeze(Cm);var Ap=null,Pv=null,Xa=0,ZY=1,Ha=2,Eo=8,bt=16,GY=32,C7=!1;try{var I7=Object.preventExtensions({})}catch(a){C7=!0}var k4=new WeakMap,Cv=[],Iv=0,n2=null,Xi=0,Tp=[],Sp=0,yr=null,mm=1,rm="",uo=null,vo=null,Oa=!1,Ft=!1,kp=null,Im=null,up=!1,n4=Error("Hydration Mismatch Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."),L4=aa(null),N4=aa(null),A7={},L2=null,Av=null,Tv=!1,qY=typeof AbortController<"u"?AbortController:function(){var a=[],o=this.signal={aborted:!1,addEventListener:function(p,t){a.push(t)}};this.abort=function(){o.aborted=!0,a.forEach(function(p){return p()})}},QY=Ca.unstable_scheduleCallback,_Y=Ca.unstable_NormalPriority,Bo={$$typeof:Lt,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},Ko=Ca.unstable_now,N2=console.createTask?console.createTask:function(){return null},Zi=1,O2=2,Fo=-0,Am=-0,vm=-0,im=null,rp=-1.1,kr=-0,$o=-0,wa=-1.1,Ja=-1.1,fo=null,Xo=!1,Tm=-0,Pt=-1.1,Gi=null,Sm=0,O4=null,R4=null,nr=-1.1,qi=null,Sv=-1.1,R2=-1.1,Ct=-0,bm=-1.1,xp=-1.1,M4=0,Qi=null,T7=null,S7=null,um=-1.1,Lr=null,xm=-1.1,M2=-1.1,u7=-0,x7=-0,g2=0,cm=null,V7=0,_i=-1.1,F2=!1,P2=!1,Bi=null,g4=0,Nr=0,uv=null,j7=K.S;K.S=function(a,o){if(T8=go(),typeof o==="object"&&o!==null&&typeof o.then==="function"){if(0>bm&&0>xp){bm=Ko();var p=e0(),t=s0();if(p!==xm||t!==Lr)xm=-1.1;um=p,Lr=t}Iz(a,o)}j7!==null&&j7(a,o)};var Or=aa(null),ct={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},di=[],Ki=[],Hi=[],Wi=[],Ui=[],hi=[],Rr=new Set;ct.recordUnsafeLifecycleWarnings=function(a,o){Rr.has(a.type)||(typeof o.componentWillMount==="function"&&o.componentWillMount.__suppressDeprecationWarning!==!0&&di.push(a),a.mode&Eo&&typeof o.UNSAFE_componentWillMount==="function"&&Ki.push(a),typeof o.componentWillReceiveProps==="function"&&o.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&Hi.push(a),a.mode&Eo&&typeof o.UNSAFE_componentWillReceiveProps==="function"&&Wi.push(a),typeof o.componentWillUpdate==="function"&&o.componentWillUpdate.__suppressDeprecationWarning!==!0&&Ui.push(a),a.mode&Eo&&typeof o.UNSAFE_componentWillUpdate==="function"&&hi.push(a))},ct.flushPendingUnsafeLifecycleWarnings=function(){var a=new Set;0<di.length&&(di.forEach(function(i){a.add(U(i)||"Component"),Rr.add(i.type)}),di=[]);var o=new Set;0<Ki.length&&(Ki.forEach(function(i){o.add(U(i)||"Component"),Rr.add(i.type)}),Ki=[]);var p=new Set;0<Hi.length&&(Hi.forEach(function(i){p.add(U(i)||"Component"),Rr.add(i.type)}),Hi=[]);var t=new Set;0<Wi.length&&(Wi.forEach(function(i){t.add(U(i)||"Component"),Rr.add(i.type)}),Wi=[]);var m=new Set;0<Ui.length&&(Ui.forEach(function(i){m.add(U(i)||"Component"),Rr.add(i.type)}),Ui=[]);var r=new Set;if(0<hi.length&&(hi.forEach(function(i){r.add(U(i)||"Component"),Rr.add(i.type)}),hi=[]),0<o.size){var v=P(o);console.error(`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
169
-
170
- * Move code with side effects to componentDidMount, and set initial state in the constructor.
171
-
172
- Please update the following components: %s`,v)}0<t.size&&(v=P(t),console.error(`Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
173
-
174
- * Move data fetching code or side effects to componentDidUpdate.
175
- * If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state
176
-
177
- Please update the following components: %s`,v)),0<r.size&&(v=P(r),console.error(`Using UNSAFE_componentWillUpdate in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
178
-
179
- * Move data fetching code or side effects to componentDidUpdate.
180
-
181
- Please update the following components: %s`,v)),0<a.size&&(v=P(a),console.warn(`componentWillMount has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
182
-
183
- * Move code with side effects to componentDidMount, and set initial state in the constructor.
184
- * Rename componentWillMount to UNSAFE_componentWillMount to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
185
-
186
- Please update the following components: %s`,v)),0<p.size&&(v=P(p),console.warn(`componentWillReceiveProps has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
187
-
188
- * Move data fetching code or side effects to componentDidUpdate.
189
- * If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state
190
- * Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
191
-
192
- Please update the following components: %s`,v)),0<m.size&&(v=P(m),console.warn(`componentWillUpdate has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
193
-
194
- * Move data fetching code or side effects to componentDidUpdate.
195
- * Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
196
-
197
- Please update the following components: %s`,v))};var C2=new Map,D7=new Set;ct.recordLegacyContextWarning=function(a,o){var p=null;for(var t=a;t!==null;)t.mode&Eo&&(p=t),t=t.return;p===null?console.error("Expected to find a StrictMode component in a strict mode tree. This error is likely caused by a bug in React. Please file an issue."):!D7.has(a.type)&&(t=C2.get(p),a.type.contextTypes!=null||a.type.childContextTypes!=null||o!==null&&typeof o.getChildContext==="function")&&(t===void 0&&(t=[],C2.set(p,t)),t.push(a))},ct.flushLegacyContextWarning=function(){C2.forEach(function(a){if(a.length!==0){var o=a[0],p=new Set;a.forEach(function(m){p.add(U(m)||"Component"),D7.add(m.type)});var t=P(p);g(o,function(){console.error(`Legacy context API has been detected within a strict-mode tree.
198
-
199
- The old API will be supported in all 16.x releases, but applications using it should migrate to the new version.
200
-
201
- Please update the following components: %s
202
-
203
- Learn more about this warning here: https://react.dev/link/legacy-context`,t)})}})},ct.discardPendingWarnings=function(){di=[],Ki=[],Hi=[],Wi=[],Ui=[],hi=[],C2=new Map};var E7={react_stack_bottom_frame:function(a,o,p){var t=Nt;Nt=!0;try{return a(o,p)}finally{Nt=t}}},F4=E7.react_stack_bottom_frame.bind(E7),s7={react_stack_bottom_frame:function(a){var o=Nt;Nt=!0;try{return a.render()}finally{Nt=o}}},e7=s7.react_stack_bottom_frame.bind(s7),a8={react_stack_bottom_frame:function(a,o){try{o.componentDidMount()}catch(p){Sa(a,a.return,p)}}},P4=a8.react_stack_bottom_frame.bind(a8),o8={react_stack_bottom_frame:function(a,o,p,t,m){try{o.componentDidUpdate(p,t,m)}catch(r){Sa(a,a.return,r)}}},p8=o8.react_stack_bottom_frame.bind(o8),t8={react_stack_bottom_frame:function(a,o){var p=o.stack;a.componentDidCatch(o.value,{componentStack:p!==null?p:""})}},BY=t8.react_stack_bottom_frame.bind(t8),m8={react_stack_bottom_frame:function(a,o,p){try{p.componentWillUnmount()}catch(t){Sa(a,o,t)}}},r8=m8.react_stack_bottom_frame.bind(m8),v8={react_stack_bottom_frame:function(a){var o=a.create;return a=a.inst,o=o(),a.destroy=o}},dY=v8.react_stack_bottom_frame.bind(v8),i8={react_stack_bottom_frame:function(a,o,p){try{p()}catch(t){Sa(a,o,t)}}},KY=i8.react_stack_bottom_frame.bind(i8),b8={react_stack_bottom_frame:function(a){var o=a._init;return o(a._payload)}},HY=b8.react_stack_bottom_frame.bind(b8),xv=Error("Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`."),C4=Error("Suspense Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."),I2=Error("Suspense Exception: This is not a real error! It's an implementation detail of `useActionState` to interrupt the current render. You must either rethrow it immediately, or move the `useActionState` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary."),A2={then:function(){console.error('Internal React error: A listener was unexpectedly attached to a "noop" thenable. This is a bug in React. Please file an issue.')}},Mr=null,yi=!1,Vv=null,ki=0,Wa=null,I4,c8=I4=!1,l8={},f8={},w8={};h=function(a,o,p){if(p!==null&&typeof p==="object"&&p._store&&(!p._store.validated&&p.key==null||p._store.validated===2)){if(typeof p._store!=="object")throw Error("React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.");p._store.validated=1;var t=U(a),m=t||"null";if(!l8[m]){l8[m]=!0,p=p._owner,a=a._debugOwner;var r="";a&&typeof a.tag==="number"&&(m=U(a))&&(r=`
204
-
205
- Check the render method of \``+m+"`."),r||t&&(r=`
206
-
207
- Check the top-level render call using <`+t+">.");var v="";p!=null&&a!==p&&(t=null,typeof p.tag==="number"?t=U(p):typeof p.name==="string"&&(t=p.name),t&&(v=" It was passed a child from "+t+".")),g(o,function(){console.error('Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',r,v)})}}};var gr=tf(!0),z8=tf(!1),$8=0,J8=1,Y8=2,A4=3,Vm=!1,X8=!1,T4=null,S4=!1,jv=aa(null),T2=aa(0),np=aa(null),Vp=null,Dv=1,ni=2,qo=aa(0),S2=0,jp=1,vp=2,Lp=4,ip=8,Ev,Z8=new Set,G8=new Set,u4=new Set,q8=new Set,lm=0,qa=null,ea=null,Ho=null,u2=!1,sv=!1,Fr=!1,x2=0,Li=0,fm=null,WY=0,UY=25,d=null,Dp=null,wm=-1,Ni=!1,Oi={readContext:lo,use:ym,useCallback:Zo,useContext:Zo,useEffect:Zo,useImperativeHandle:Zo,useLayoutEffect:Zo,useInsertionEffect:Zo,useMemo:Zo,useReducer:Zo,useRef:Zo,useState:Zo,useDebugValue:Zo,useDeferredValue:Zo,useTransition:Zo,useSyncExternalStore:Zo,useId:Zo,useHostTransitionStatus:Zo,useFormState:Zo,useActionState:Zo,useOptimistic:Zo,useMemoCache:Zo,useCacheRefresh:Zo};Oi.useEffectEvent=Zo;var x4=null,Q8=null,V4=null,_8=null,It=null,lt=null,V2=null;x4={readContext:function(a){return lo(a)},use:ym,useCallback:function(a,o){return d="useCallback",ya(),$v(o),S1(a,o)},useContext:function(a){return d="useContext",ya(),lo(a)},useEffect:function(a,o){return d="useEffect",ya(),$v(o),C5(a,o)},useImperativeHandle:function(a,o,p){return d="useImperativeHandle",ya(),$v(p),T1(a,o,p)},useInsertionEffect:function(a,o){d="useInsertionEffect",ya(),$v(o),Br(4,vp,a,o)},useLayoutEffect:function(a,o){return d="useLayoutEffect",ya(),$v(o),A1(a,o)},useMemo:function(a,o){d="useMemo",ya(),$v(o);var p=K.H;K.H=It;try{return u1(a,o)}finally{K.H=p}},useReducer:function(a,o,p){d="useReducer",ya();var t=K.H;K.H=It;try{return N1(a,o,p)}finally{K.H=t}},useRef:function(a){return d="useRef",ya(),C1(a)},useState:function(a){d="useState",ya();var o=K.H;K.H=It;try{return g1(a)}finally{K.H=o}},useDebugValue:function(){d="useDebugValue",ya()},useDeferredValue:function(a,o){return d="useDeferredValue",ya(),x1(a,o)},useTransition:function(){return d="useTransition",ya(),D1()},useSyncExternalStore:function(a,o,p){return d="useSyncExternalStore",ya(),R1(a,o,p)},useId:function(){return d="useId",ya(),E1()},useFormState:function(a,o){return d="useFormState",ya(),R5(),Yv(a,o)},useActionState:function(a,o){return d="useActionState",ya(),Yv(a,o)},useOptimistic:function(a){return d="useOptimistic",ya(),F1(a)},useHostTransitionStatus:dr,useMemoCache:_r,useCacheRefresh:function(){return d="useCacheRefresh",ya(),s1()},useEffectEvent:function(a){return d="useEffectEvent",ya(),I1(a)}},Q8={readContext:function(a){return lo(a)},use:ym,useCallback:function(a,o){return d="useCallback",M(),S1(a,o)},useContext:function(a){return d="useContext",M(),lo(a)},useEffect:function(a,o){return d="useEffect",M(),C5(a,o)},useImperativeHandle:function(a,o,p){return d="useImperativeHandle",M(),T1(a,o,p)},useInsertionEffect:function(a,o){d="useInsertionEffect",M(),Br(4,vp,a,o)},useLayoutEffect:function(a,o){return d="useLayoutEffect",M(),A1(a,o)},useMemo:function(a,o){d="useMemo",M();var p=K.H;K.H=It;try{return u1(a,o)}finally{K.H=p}},useReducer:function(a,o,p){d="useReducer",M();var t=K.H;K.H=It;try{return N1(a,o,p)}finally{K.H=t}},useRef:function(a){return d="useRef",M(),C1(a)},useState:function(a){d="useState",M();var o=K.H;K.H=It;try{return g1(a)}finally{K.H=o}},useDebugValue:function(){d="useDebugValue",M()},useDeferredValue:function(a,o){return d="useDeferredValue",M(),x1(a,o)},useTransition:function(){return d="useTransition",M(),D1()},useSyncExternalStore:function(a,o,p){return d="useSyncExternalStore",M(),R1(a,o,p)},useId:function(){return d="useId",M(),E1()},useActionState:function(a,o){return d="useActionState",M(),Yv(a,o)},useFormState:function(a,o){return d="useFormState",M(),R5(),Yv(a,o)},useOptimistic:function(a){return d="useOptimistic",M(),F1(a)},useHostTransitionStatus:dr,useMemoCache:_r,useCacheRefresh:function(){return d="useCacheRefresh",M(),s1()},useEffectEvent:function(a){return d="useEffectEvent",M(),I1(a)}},V4={readContext:function(a){return lo(a)},use:ym,useCallback:function(a,o){return d="useCallback",M(),T5(a,o)},useContext:function(a){return d="useContext",M(),lo(a)},useEffect:function(a,o){d="useEffect",M(),wp(2048,ip,a,o)},useImperativeHandle:function(a,o,p){return d="useImperativeHandle",M(),A5(a,o,p)},useInsertionEffect:function(a,o){return d="useInsertionEffect",M(),wp(4,vp,a,o)},useLayoutEffect:function(a,o){return d="useLayoutEffect",M(),wp(4,Lp,a,o)},useMemo:function(a,o){d="useMemo",M();var p=K.H;K.H=lt;try{return S5(a,o)}finally{K.H=p}},useReducer:function(a,o,p){d="useReducer",M();var t=K.H;K.H=lt;try{return Jv(a,o,p)}finally{K.H=t}},useRef:function(){return d="useRef",M(),Va().memoizedState},useState:function(){d="useState",M();var a=K.H;K.H=lt;try{return Jv(mt)}finally{K.H=a}},useDebugValue:function(){d="useDebugValue",M()},useDeferredValue:function(a,o){return d="useDeferredValue",M(),Hf(a,o)},useTransition:function(){return d="useTransition",M(),nf()},useSyncExternalStore:function(a,o,p){return d="useSyncExternalStore",M(),g5(a,o,p)},useId:function(){return d="useId",M(),Va().memoizedState},useFormState:function(a){return d="useFormState",M(),R5(),F5(a)},useActionState:function(a){return d="useActionState",M(),F5(a)},useOptimistic:function(a,o){return d="useOptimistic",M(),Yf(a,o)},useHostTransitionStatus:dr,useMemoCache:_r,useCacheRefresh:function(){return d="useCacheRefresh",M(),Va().memoizedState},useEffectEvent:function(a){return d="useEffectEvent",M(),I5(a)}},_8={readContext:function(a){return lo(a)},use:ym,useCallback:function(a,o){return d="useCallback",M(),T5(a,o)},useContext:function(a){return d="useContext",M(),lo(a)},useEffect:function(a,o){d="useEffect",M(),wp(2048,ip,a,o)},useImperativeHandle:function(a,o,p){return d="useImperativeHandle",M(),A5(a,o,p)},useInsertionEffect:function(a,o){return d="useInsertionEffect",M(),wp(4,vp,a,o)},useLayoutEffect:function(a,o){return d="useLayoutEffect",M(),wp(4,Lp,a,o)},useMemo:function(a,o){d="useMemo",M();var p=K.H;K.H=V2;try{return S5(a,o)}finally{K.H=p}},useReducer:function(a,o,p){d="useReducer",M();var t=K.H;K.H=V2;try{return P0(a,o,p)}finally{K.H=t}},useRef:function(){return d="useRef",M(),Va().memoizedState},useState:function(){d="useState",M();var a=K.H;K.H=V2;try{return P0(mt)}finally{K.H=a}},useDebugValue:function(){d="useDebugValue",M()},useDeferredValue:function(a,o){return d="useDeferredValue",M(),Wf(a,o)},useTransition:function(){return d="useTransition",M(),Lf()},useSyncExternalStore:function(a,o,p){return d="useSyncExternalStore",M(),g5(a,o,p)},useId:function(){return d="useId",M(),Va().memoizedState},useFormState:function(a){return d="useFormState",M(),R5(),P5(a)},useActionState:function(a){return d="useActionState",M(),P5(a)},useOptimistic:function(a,o){return d="useOptimistic",M(),Zf(a,o)},useHostTransitionStatus:dr,useMemoCache:_r,useCacheRefresh:function(){return d="useCacheRefresh",M(),Va().memoizedState},useEffectEvent:function(a){return d="useEffectEvent",M(),I5(a)}},It={readContext:function(a){return N(),lo(a)},use:function(a){return G(),ym(a)},useCallback:function(a,o){return d="useCallback",G(),ya(),S1(a,o)},useContext:function(a){return d="useContext",G(),ya(),lo(a)},useEffect:function(a,o){return d="useEffect",G(),ya(),C5(a,o)},useImperativeHandle:function(a,o,p){return d="useImperativeHandle",G(),ya(),T1(a,o,p)},useInsertionEffect:function(a,o){d="useInsertionEffect",G(),ya(),Br(4,vp,a,o)},useLayoutEffect:function(a,o){return d="useLayoutEffect",G(),ya(),A1(a,o)},useMemo:function(a,o){d="useMemo",G(),ya();var p=K.H;K.H=It;try{return u1(a,o)}finally{K.H=p}},useReducer:function(a,o,p){d="useReducer",G(),ya();var t=K.H;K.H=It;try{return N1(a,o,p)}finally{K.H=t}},useRef:function(a){return d="useRef",G(),ya(),C1(a)},useState:function(a){d="useState",G(),ya();var o=K.H;K.H=It;try{return g1(a)}finally{K.H=o}},useDebugValue:function(){d="useDebugValue",G(),ya()},useDeferredValue:function(a,o){return d="useDeferredValue",G(),ya(),x1(a,o)},useTransition:function(){return d="useTransition",G(),ya(),D1()},useSyncExternalStore:function(a,o,p){return d="useSyncExternalStore",G(),ya(),R1(a,o,p)},useId:function(){return d="useId",G(),ya(),E1()},useFormState:function(a,o){return d="useFormState",G(),ya(),Yv(a,o)},useActionState:function(a,o){return d="useActionState",G(),ya(),Yv(a,o)},useOptimistic:function(a){return d="useOptimistic",G(),ya(),F1(a)},useMemoCache:function(a){return G(),_r(a)},useHostTransitionStatus:dr,useCacheRefresh:function(){return d="useCacheRefresh",ya(),s1()},useEffectEvent:function(a){return d="useEffectEvent",G(),ya(),I1(a)}},lt={readContext:function(a){return N(),lo(a)},use:function(a){return G(),ym(a)},useCallback:function(a,o){return d="useCallback",G(),M(),T5(a,o)},useContext:function(a){return d="useContext",G(),M(),lo(a)},useEffect:function(a,o){d="useEffect",G(),M(),wp(2048,ip,a,o)},useImperativeHandle:function(a,o,p){return d="useImperativeHandle",G(),M(),A5(a,o,p)},useInsertionEffect:function(a,o){return d="useInsertionEffect",G(),M(),wp(4,vp,a,o)},useLayoutEffect:function(a,o){return d="useLayoutEffect",G(),M(),wp(4,Lp,a,o)},useMemo:function(a,o){d="useMemo",G(),M();var p=K.H;K.H=lt;try{return S5(a,o)}finally{K.H=p}},useReducer:function(a,o,p){d="useReducer",G(),M();var t=K.H;K.H=lt;try{return Jv(a,o,p)}finally{K.H=t}},useRef:function(){return d="useRef",G(),M(),Va().memoizedState},useState:function(){d="useState",G(),M();var a=K.H;K.H=lt;try{return Jv(mt)}finally{K.H=a}},useDebugValue:function(){d="useDebugValue",G(),M()},useDeferredValue:function(a,o){return d="useDeferredValue",G(),M(),Hf(a,o)},useTransition:function(){return d="useTransition",G(),M(),nf()},useSyncExternalStore:function(a,o,p){return d="useSyncExternalStore",G(),M(),g5(a,o,p)},useId:function(){return d="useId",G(),M(),Va().memoizedState},useFormState:function(a){return d="useFormState",G(),M(),F5(a)},useActionState:function(a){return d="useActionState",G(),M(),F5(a)},useOptimistic:function(a,o){return d="useOptimistic",G(),M(),Yf(a,o)},useMemoCache:function(a){return G(),_r(a)},useHostTransitionStatus:dr,useCacheRefresh:function(){return d="useCacheRefresh",M(),Va().memoizedState},useEffectEvent:function(a){return d="useEffectEvent",G(),M(),I5(a)}},V2={readContext:function(a){return N(),lo(a)},use:function(a){return G(),ym(a)},useCallback:function(a,o){return d="useCallback",G(),M(),T5(a,o)},useContext:function(a){return d="useContext",G(),M(),lo(a)},useEffect:function(a,o){d="useEffect",G(),M(),wp(2048,ip,a,o)},useImperativeHandle:function(a,o,p){return d="useImperativeHandle",G(),M(),A5(a,o,p)},useInsertionEffect:function(a,o){return d="useInsertionEffect",G(),M(),wp(4,vp,a,o)},useLayoutEffect:function(a,o){return d="useLayoutEffect",G(),M(),wp(4,Lp,a,o)},useMemo:function(a,o){d="useMemo",G(),M();var p=K.H;K.H=lt;try{return S5(a,o)}finally{K.H=p}},useReducer:function(a,o,p){d="useReducer",G(),M();var t=K.H;K.H=lt;try{return P0(a,o,p)}finally{K.H=t}},useRef:function(){return d="useRef",G(),M(),Va().memoizedState},useState:function(){d="useState",G(),M();var a=K.H;K.H=lt;try{return P0(mt)}finally{K.H=a}},useDebugValue:function(){d="useDebugValue",G(),M()},useDeferredValue:function(a,o){return d="useDeferredValue",G(),M(),Wf(a,o)},useTransition:function(){return d="useTransition",G(),M(),Lf()},useSyncExternalStore:function(a,o,p){return d="useSyncExternalStore",G(),M(),g5(a,o,p)},useId:function(){return d="useId",G(),M(),Va().memoizedState},useFormState:function(a){return d="useFormState",G(),M(),P5(a)},useActionState:function(a){return d="useActionState",G(),M(),P5(a)},useOptimistic:function(a,o){return d="useOptimistic",G(),M(),Zf(a,o)},useMemoCache:function(a){return G(),_r(a)},useHostTransitionStatus:dr,useCacheRefresh:function(){return d="useCacheRefresh",M(),Va().memoizedState},useEffectEvent:function(a){return d="useEffectEvent",G(),M(),I5(a)}};var B8={},d8=new Set,K8=new Set,H8=new Set,W8=new Set,U8=new Set,h8=new Set,y8=new Set,k8=new Set,n8=new Set,L8=new Set;Object.freeze(B8);var j4={enqueueSetState:function(a,o,p){a=a._reactInternals;var t=Hp(a),m=Hm(t);m.payload=o,p!==void 0&&p!==null&&(ac(p),m.callback=p),o=Wm(a,m,t),o!==null&&(Gt(t,"this.setState()",a),Yo(o,a,t),R0(o,a,t))},enqueueReplaceState:function(a,o,p){a=a._reactInternals;var t=Hp(a),m=Hm(t);m.tag=J8,m.payload=o,p!==void 0&&p!==null&&(ac(p),m.callback=p),o=Wm(a,m,t),o!==null&&(Gt(t,"this.replaceState()",a),Yo(o,a,t),R0(o,a,t))},enqueueForceUpdate:function(a,o){a=a._reactInternals;var p=Hp(a),t=Hm(p);t.tag=Y8,o!==void 0&&o!==null&&(ac(o),t.callback=o),o=Wm(a,t,p),o!==null&&(Gt(p,"this.forceUpdate()",a),Yo(o,a,p),R0(o,a,p))}},ev=null,D4=null,E4=Error("This is not a real error. It's an implementation detail of React's selective hydration feature. If this leaks into userspace, it's a bug in React. Please file an issue."),Wo=!1,N8={},O8={},R8={},M8={},a0=!1,g8={},j2={},s4={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},F8=!1,P8=null;P8=new Set;var zm=!1,Uo=!1,e4=!1,C8=typeof WeakSet==="function"?WeakSet:Set,Po=null,o0=null,p0=null,ho=null,Jp=!1,ft=null,No=!1,Ri=8192,hY={getCacheForType:function(a){var o=lo(Bo),p=o.data.get(a);return p===void 0&&(p=a(),o.data.set(a,p)),p},cacheSignal:function(){return lo(Bo).controller.signal},getOwner:function(){return hp}};if(typeof Symbol==="function"&&Symbol.for){var Mi=Symbol.for;Mi("selector.component"),Mi("selector.has_pseudo_class"),Mi("selector.role"),Mi("selector.test_id"),Mi("selector.text")}var yY=[],kY=typeof WeakMap==="function"?WeakMap:Map,Co=0,Oo=2,Np=4,$m=0,gi=1,Pr=2,D2=3,jm=4,E2=6,I8=5,Pa=Co,ao=null,ha=null,Ua=0,Yp=0,s2=1,Cr=2,Fi=3,A8=4,a3=5,Pi=6,e2=7,o3=8,Ir=9,ja=Yp,Op=null,Dm=!1,t0=!1,p3=!1,At=0,Jo=$m,Em=0,sm=0,t3=0,Xp=0,Ar=0,Ci=null,bp=null,ab=!1,ob=0,T8=0,S8=300,pb=1/0,u8=500,Ii=null,Go=null,em=null,tb=0,m3=1,r3=2,x8=3,ar=0,V8=1,j8=2,D8=3,E8=4,mb=5,yo=0,or=null,m0=null,wt=0,v3=0,i3=-0,b3=null,s8=null,e8=null,zt=tb,a9=null,nY=50,Ai=0,c3=null,l3=!1,rb=!1,LY=50,Tr=0,Ti=null,r0=!1,vb=null,o9=!1,p9=new Set,NY={},ib=null,v0=null,f3=!1,w3=!1,bb=!1,z3=!1,pr=0,$3={};(function(){for(var a=0;a<K4.length;a++){var o=K4[a],p=o.toLowerCase();o=o[0].toUpperCase()+o.slice(1),tt(p,"on"+o)}tt(n7,"onAnimationEnd"),tt(L7,"onAnimationIteration"),tt(N7,"onAnimationStart"),tt("dblclick","onDoubleClick"),tt("focusin","onFocus"),tt("focusout","onBlur"),tt(lY,"onTransitionRun"),tt(fY,"onTransitionStart"),tt(wY,"onTransitionCancel"),tt(O7,"onTransitionEnd")})(),iv("onMouseEnter",["mouseout","mouseover"]),iv("onMouseLeave",["mouseout","mouseover"]),iv("onPointerEnter",["pointerout","pointerover"]),iv("onPointerLeave",["pointerout","pointerover"]),wr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),wr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),wr("onBeforeInput",["compositionend","keypress","textInput","paste"]),wr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),wr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),wr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Si="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(" "),J3=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Si)),cb="_reactListening"+Math.random().toString(36).slice(2),t9=!1,m9=!1,lb=!1,r9=!1,fb=!1,wb=!1,v9=!1,zb={},OY=/\r\n?/g,RY=/\u0000|\uFFFD/g,Sr="http://www.w3.org/1999/xlink",Y3="http://www.w3.org/XML/1998/namespace",MY="javascript:throw new Error('React form unexpectedly submitted.')",gY="suppressHydrationWarning",ur="&",$b="/&",ui="$",xi="/$",tr="$?",xr="$~",i0="$!",FY="html",PY="body",CY="head",X3="F!",i9="F",b9="loading",IY="style",Jm=0,b0=1,Jb=2,Z3=null,G3=null,c9={dialog:!0,webview:!0},q3=null,Vi=void 0,l9=typeof setTimeout==="function"?setTimeout:void 0,AY=typeof clearTimeout==="function"?clearTimeout:void 0,Vr=-1,f9=typeof Promise==="function"?Promise:void 0,TY=typeof queueMicrotask==="function"?queueMicrotask:typeof f9<"u"?function(a){return f9.resolve(null).then(a).catch(U$)}:l9,Q3=null,jr=0,ji=1,w9=2,z9=3,Ep=4,sp=new Map,$9=new Set,Ym=ua.d;ua.d={f:function(){var a=Ym.f(),o=Qv();return a||o},r:function(a){var o=Qm(a);o!==null&&o.tag===5&&o.type==="form"?kf(o):Ym.r(a)},D:function(a){Ym.D(a),dw("dns-prefetch",a,null)},C:function(a,o){Ym.C(a,o),dw("preconnect",a,o)},L:function(a,o,p){Ym.L(a,o,p);var t=c0;if(t&&a&&o){var m='link[rel="preload"][as="'+Fp(o)+'"]';o==="image"?p&&p.imageSrcSet?(m+='[imagesrcset="'+Fp(p.imageSrcSet)+'"]',typeof p.imageSizes==="string"&&(m+='[imagesizes="'+Fp(p.imageSizes)+'"]')):m+='[href="'+Fp(a)+'"]':m+='[href="'+Fp(a)+'"]';var r=m;switch(o){case"style":r=dv(a);break;case"script":r=Kv(a)}sp.has(r)||(a=ka({rel:"preload",href:o==="image"&&p&&p.imageSrcSet?void 0:a,as:o},p),sp.set(r,a),t.querySelector(m)!==null||o==="style"&&t.querySelector(oi(r))||o==="script"&&t.querySelector(pi(r))||(o=t.createElement("link"),To(o,"link",a),Ro(o),t.head.appendChild(o)))}},m:function(a,o){Ym.m(a,o);var p=c0;if(p&&a){var t=o&&typeof o.as==="string"?o.as:"script",m='link[rel="modulepreload"][as="'+Fp(t)+'"][href="'+Fp(a)+'"]',r=m;switch(t){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":r=Kv(a)}if(!sp.has(r)&&(a=ka({rel:"modulepreload",href:a},o),sp.set(r,a),p.querySelector(m)===null)){switch(t){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(p.querySelector(pi(r)))return}t=p.createElement("link"),To(t,"link",a),Ro(t),p.head.appendChild(t)}}},X:function(a,o){Ym.X(a,o);var p=c0;if(p&&a){var t=vv(p).hoistableScripts,m=Kv(a),r=t.get(m);r||(r=p.querySelector(pi(m)),r||(a=ka({src:a,async:!0},o),(o=sp.get(m))&&Tc(a,o),r=p.createElement("script"),Ro(r),To(r,"link",a),p.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},t.set(m,r))}},S:function(a,o,p){Ym.S(a,o,p);var t=c0;if(t&&a){var m=vv(t).hoistableStyles,r=dv(a);o=o||"default";var v=m.get(r);if(!v){var i={loading:jr,preload:null};if(v=t.querySelector(oi(r)))i.loading=ji|Ep;else{a=ka({rel:"stylesheet",href:a,"data-precedence":o},p),(p=sp.get(r))&&Ac(a,p);var b=v=t.createElement("link");Ro(b),To(b,"link",a),b._p=new Promise(function(l,Y){b.onload=l,b.onerror=Y}),b.addEventListener("load",function(){i.loading|=ji}),b.addEventListener("error",function(){i.loading|=w9}),i.loading|=Ep,l2(v,o,t)}v={type:"stylesheet",instance:v,count:1,state:i},m.set(r,v)}}},M:function(a,o){Ym.M(a,o);var p=c0;if(p&&a){var t=vv(p).hoistableScripts,m=Kv(a),r=t.get(m);r||(r=p.querySelector(pi(m)),r||(a=ka({src:a,async:!0,type:"module"},o),(o=sp.get(m))&&Tc(a,o),r=p.createElement("script"),Ro(r),To(r,"link",a),p.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},t.set(m,r))}}};var c0=typeof document>"u"?null:document,Yb=null,SY=60000,uY=800,xY=500,_3=0,B3=null,Xb=null,Dr=bJ,Di={$$typeof:Lt,Provider:null,Consumer:null,_currentValue:Dr,_currentValue2:Dr,_threadCount:0},J9="%c%s%c",Y9="background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px",X9="",Zb=" ",VY=Function.prototype.bind,Z9=!1,G9=null,q9=null,Q9=null,_9=null,B9=null,d9=null,K9=null,H9=null,W9=null,U9=null;G9=function(a,o,p,t){o=f(a,o),o!==null&&(p=Z(o.memoizedState,p,0,t),o.memoizedState=p,o.baseState=p,a.memoizedProps=ka({},a.memoizedProps),p=jo(a,2),p!==null&&Yo(p,a,2))},q9=function(a,o,p){o=f(a,o),o!==null&&(p=L(o.memoizedState,p,0),o.memoizedState=p,o.baseState=p,a.memoizedProps=ka({},a.memoizedProps),p=jo(a,2),p!==null&&Yo(p,a,2))},Q9=function(a,o,p,t){o=f(a,o),o!==null&&(p=Q(o.memoizedState,p,t),o.memoizedState=p,o.baseState=p,a.memoizedProps=ka({},a.memoizedProps),p=jo(a,2),p!==null&&Yo(p,a,2))},_9=function(a,o,p){a.pendingProps=Z(a.memoizedProps,o,0,p),a.alternate&&(a.alternate.pendingProps=a.pendingProps),o=jo(a,2),o!==null&&Yo(o,a,2)},B9=function(a,o){a.pendingProps=L(a.memoizedProps,o,0),a.alternate&&(a.alternate.pendingProps=a.pendingProps),o=jo(a,2),o!==null&&Yo(o,a,2)},d9=function(a,o,p){a.pendingProps=Q(a.memoizedProps,o,p),a.alternate&&(a.alternate.pendingProps=a.pendingProps),o=jo(a,2),o!==null&&Yo(o,a,2)},K9=function(a){var o=jo(a,2);o!==null&&Yo(o,a,2)},H9=function(a){var o=Pb(),p=jo(a,o);p!==null&&Yo(p,a,o)},W9=function(a){H=a},U9=function(a){n=a};var Gb=!0,qb=null,d3=!1,mr=null,rr=null,vr=null,Ei=new Map,si=new Map,ir=[],jY="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(" "),Qb=null;if(J2.prototype.render=Dc.prototype.render=function(a){var o=this._internalRoot;if(o===null)throw Error("Cannot update an unmounted root.");var p=arguments;typeof p[1]==="function"?console.error("does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."):s(p[1])?console.error("You passed a container to the second argument of root.render(...). You don't need to pass it again since you already passed it to create the root."):typeof p[1]<"u"&&console.error("You passed a second argument to root.render(...) but it only accepts one argument."),p=a;var t=o.current,m=Hp(t);Sc(t,m,p,o,null,null)},J2.prototype.unmount=Dc.prototype.unmount=function(){var a=arguments;if(typeof a[0]==="function"&&console.error("does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."),a=this._internalRoot,a!==null){this._internalRoot=null;var o=a.containerInfo;(Pa&(Oo|Np))!==Co&&console.error("Attempted to synchronously unmount a root while React was already rendering. React cannot finish unmounting the root until the current render has completed, which may lead to a race condition."),Sc(a.current,2,null,a,null,null),Qv(),o[Mm]=null}},J2.prototype.unstable_scheduleHydration=function(a){if(a){var o=A3();a={blockedOn:null,target:a,priority:o};for(var p=0;p<ir.length&&o!==0&&o<ir[p].priority;p++);ir.splice(p,0,a),p===0&&gw(a)}},function(){var a=l0.version;if(a!=="19.2.4")throw Error(`Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:
208
- - react: `+(a+`
209
- - react-dom: 19.2.4
210
- Learn more: https://react.dev/warnings/version-mismatch`))}(),typeof Map==="function"&&Map.prototype!=null&&typeof Map.prototype.forEach==="function"&&typeof Set==="function"&&Set.prototype!=null&&typeof Set.prototype.clear==="function"&&typeof Set.prototype.forEach==="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://react.dev/link/react-polyfills"),ua.findDOMNode=function(a){var o=a._reactInternals;if(o===void 0){if(typeof a.render==="function")throw Error("Unable to find node on an unmounted component.");throw a=Object.keys(a).join(","),Error("Argument appears to not be a ReactComponent. Keys: "+a)}return a=S(o),a=a!==null?da(a):null,a=a===null?null:a.stateNode,a},!function(){var a={bundleType:1,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:K,reconcilerVersion:"19.2.4"};return a.overrideHookState=G9,a.overrideHookStateDeletePath=q9,a.overrideHookStateRenamePath=Q9,a.overrideProps=_9,a.overridePropsDeletePath=B9,a.overridePropsRenamePath=d9,a.scheduleUpdate=K9,a.scheduleRetry=H9,a.setErrorHandler=W9,a.setSuspenseHandler=U9,a.scheduleRefresh=I,a.scheduleRoot=T,a.setRefreshHandler=R,a.getCurrentFiber=aJ,G0(a)}()&&gt&&window.top===window.self&&(-1<navigator.userAgent.indexOf("Chrome")&&navigator.userAgent.indexOf("Edge")===-1||-1<navigator.userAgent.indexOf("Firefox"))){var h9=window.location.protocol;/^(https?|file):$/.test(h9)&&console.info("%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools"+(h9==="file:"?`
211
- You might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq`:""),"font-weight:bold")}eY.createRoot=function(a,o){if(!s(a))throw Error("Target container is not a DOM element.");Iw(a);var p=!1,t="",m=Ff,r=Pf,v=Cf;return o!==null&&o!==void 0&&(o.hydrate?console.warn("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."):typeof o==="object"&&o!==null&&o.$$typeof===nt&&console.error(`You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:
212
-
213
- let root = createRoot(domContainer);
214
- root.render(<App />);`),o.unstable_strictMode===!0&&(p=!0),o.identifierPrefix!==void 0&&(t=o.identifierPrefix),o.onUncaughtError!==void 0&&(m=o.onUncaughtError),o.onCaughtError!==void 0&&(r=o.onCaughtError),o.onRecoverableError!==void 0&&(v=o.onRecoverableError)),o=kw(a,1,!1,null,null,p,t,null,m,r,v,Cw),a[Mm]=o.current,kc(a),new Dc(o)},eY.hydrateRoot=function(a,o,p){if(!s(a))throw Error("Target container is not a DOM element.");Iw(a),o===void 0&&console.error("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var t=!1,m="",r=Ff,v=Pf,i=Cf,b=null;return p!==null&&p!==void 0&&(p.unstable_strictMode===!0&&(t=!0),p.identifierPrefix!==void 0&&(m=p.identifierPrefix),p.onUncaughtError!==void 0&&(r=p.onUncaughtError),p.onCaughtError!==void 0&&(v=p.onCaughtError),p.onRecoverableError!==void 0&&(i=p.onRecoverableError),p.formState!==void 0&&(b=p.formState)),o=kw(a,1,!0,o,p!=null?p:null,t,m,b,r,v,i,Cw),o.context=nw(null),p=o.current,t=Hp(p),t=Ib(t),m=Hm(t),m.callback=null,Wm(p,m,t),Gt(t,"hydrateRoot()",null),p=t,o.current.lanes=p,Q0(o,p),yt(o),a[Mm]=o.current,kc(a),new J2(o)},eY.version="19.2.4",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var L9=K3((zZ,n9)=>{var aX=_a(k9());n9.exports=aX});var xa=_a(so(),1),$z=_a(L9(),1);var ep={openai:{models:[{value:"gpt-realtime-1.5",label:"GPT Realtime 1.5 (Latest)",recommended:!0},{value:"gpt-realtime",label:"GPT Realtime"},{value:"gpt-4o-realtime-preview",label:"GPT-4o Realtime Preview"}],voices:[{value:"alloy",label:"Alloy"},{value:"ash",label:"Ash"},{value:"ballad",label:"Ballad"},{value:"coral",label:"Coral"},{value:"marin",label:"Marin",recommended:!0},{value:"sage",label:"Sage"},{value:"verse",label:"Verse"}]},gemini:{models:[{value:"models/gemini-2.5-flash-native-audio-preview-12-2025",label:"Gemini 2.5 Flash Audio",recommended:!0}],voices:[{value:"Kore",label:"Kore",recommended:!0},{value:"Puck",label:"Puck"},{value:"Charon",label:"Charon"},{value:"Aoede",label:"Aoede"},{value:"Fenrir",label:"Fenrir"}]}},W3={memory:!0,tasks:!1,vision:!0,operator:!1,mcp:!1,realtime:!1,files:!1,agents:!1,builtinTools:{webSearch:!1,webFetch:!1}};function ei(f){let Z=f.operator;if(typeof Z==="boolean")return{enabled:Z};return Z}function f0(f){let Z=f.realtime;if(typeof Z==="boolean")return{enabled:Z};return Z}function Zm(f){if(typeof f.realtime==="boolean")return f.realtime;return f.realtime.enabled}var br=_a(so(),1);function U3(f,Z){let{accessToken:Q}=wo(),[W,L]=br.useState([]),[n,H]=br.useState(!0),G=br.useCallback(()=>{let R={"Content-Type":"application/json"};if(Q)R.Authorization=`Bearer ${Q}`;return R},[Q]),N=br.useCallback(async()=>{let R="/api/agents";if(Z!==void 0&&Z!==null)R+=`?project_id=${encodeURIComponent(Z)}`;let ca=await(await fetch(R,{headers:G()})).json();L(ca.agents||[]),H(!1)},[G,Z]),C=_b();br.useEffect(()=>{if(f)N()},[f,C,N]);let h=async(R)=>{await fetch("/api/agents",{method:"POST",headers:G(),body:JSON.stringify(R)}),await N()},P=async(R)=>{await fetch(`/api/agents/${R}`,{method:"DELETE",headers:G()}),await N()},O=async(R,s)=>{let ca=await fetch(`/api/agents/${R}`,{method:"PUT",headers:G(),body:JSON.stringify(s)}),ra=await ca.json();if(await N(),!ca.ok&&ra.error)return{error:ra.error};return{}},T=async(R)=>{let s=R.status==="running"?"stop":"start";L((ra)=>ra.map(($a)=>$a.id===R.id?{...$a,status:s==="start"?"starting":"stopping"}:$a));let ca=await fetch(`/api/agents/${R.id}/${s}`,{method:"POST",headers:G()});if(!ca.ok){let ra=await ca.json();return L(($a)=>$a.map((va)=>va.id===R.id?{...va,status:R.status}:va)),{error:ra.error}}return{}},I=W.filter((R)=>R.status==="running").length;return{agents:W,loading:n,runningCount:I,fetchAgents:N,createAgent:h,updateAgent:O,deleteAgent:P,toggleAgent:T}}var sr=_a(so(),1);function h3(f){let{accessToken:Z}=wo(),[Q,W]=sr.useState([]),L=sr.useCallback(()=>{let C={"Content-Type":"application/json"};if(Z)C.Authorization=`Bearer ${Z}`;return C},[Z]),n=sr.useCallback(async()=>{let h=await(await fetch("/api/providers",{headers:L()})).json();W(h.providers||[])},[L]);sr.useEffect(()=>{if(f)n()},[f,n]);let H=Q.filter((C)=>C.hasKey);return{providers:Q,configuredProviders:H,fetchProviders:n,saveKey:async(C,h)=>{let O=await(await fetch(`/api/keys/${C}/test`,{method:"POST",headers:L(),body:JSON.stringify({key:h})})).json();if(!O.valid)return{success:!1,error:O.error||"API key is invalid"};let T=await fetch(`/api/keys/${C}`,{method:"POST",headers:L(),body:JSON.stringify({key:h})});if(!T.ok)return{success:!1,error:(await T.json()).error||"Failed to save key"};return await n(),{success:!0}},deleteKey:async(C)=>{await fetch(`/api/keys/${C}`,{method:"DELETE",headers:L()}),await n()}}}var N9=_a(so(),1);function y3(){let{authFetch:f,onboardingComplete:Z,setOnboardingComplete:Q}=wo(),W=N9.useCallback(async()=>{await f("/api/onboarding/complete",{method:"POST"}),Q(!0)},[f,Q]);return{isComplete:Z,setIsComplete:Q,complete:W}}var xo=_a(so(),1);var Rp=_a(so(),1);var Da=_a(bo(),1),R9=Rp.createContext(null);function Bb(){return Rp.useContext(R9)}function M9({children:f}){let{authFetch:Z,isAuthenticated:Q,isLoading:W}=wo(),[L,n]=Rp.useState(null),[H,G]=Rp.useState(!1),[N,C]=Rp.useState(!1),[h,P]=Rp.useState(null),O=async()=>{try{let $a=await(await Z("/api/meta-agent/status")).json();n($a)}catch(ra){console.error("[MetaAgent] Failed to fetch status:",ra)}};Rp.useEffect(()=>{if(!W&&Q)O()},[Z,Q,W]);let T=async()=>{C(!0),P(null);try{let ra=await Z("/api/meta-agent/start",{method:"POST"}),$a=await ra.json();if(!ra.ok)P($a.error||"Failed to start assistant");else await O()}catch(ra){P("Failed to start assistant")}C(!1)},I=!!(L?.enabled&&L?.available),R=L?.agent,s=!!(R?.status==="running"&&R?.port),ca={status:L,isOpen:H,isStarting:N,error:h,isAvailable:I,isRunning:s,agent:R,toggle:()=>G(!H),close:()=>G(!1),startAgent:T};return Da.jsxDEV(R9.Provider,{value:ca,children:f},void 0,!1,void 0,this)}function g9(){let f=Bb();if(!f?.isAvailable)return null;return Da.jsxDEV("button",{onClick:f.toggle,className:`hidden md:flex items-center gap-2 px-3 py-2 rounded transition ${f.isOpen?"bg-[var(--color-accent)] text-white":"bg-[var(--color-bg-secondary)] hover:bg-[var(--color-surface-raised)] text-[var(--color-text-secondary)] hover:text-white"}`,title:"Apteva Assistant",children:[Da.jsxDEV(P9,{className:"w-5 h-5"},void 0,!1,void 0,this),Da.jsxDEV("span",{className:"text-sm",children:"Assistant"},void 0,!1,void 0,this),f.isRunning&&Da.jsxDEV("span",{className:"w-2 h-2 rounded-full bg-green-400"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function F9(){let{theme:f}=av(),{t:Z}=Mp(),Q=Bb(),{currentProjectId:W,currentProject:L}=cp(),n=O9();if(!Q?.isAvailable||!Q.isOpen)return null;let{agent:H,isRunning:G,error:N,isStarting:C,startAgent:h,close:P}=Q,O=Rp.useMemo(()=>{let T=[];if(L)T.push(`Current project: "${L.name}" (id: ${L.id})`);else if(W==="unassigned")T.push("Viewing: unassigned agents (no project)");else T.push("Viewing: All Projects");return T.join(`
215
- `)},[W,L]);return Da.jsxDEV(Da.Fragment,{children:[Da.jsxDEV("div",{className:"hidden md:block fixed inset-0 bg-black/20 z-40",onClick:P},void 0,!1,void 0,this),Da.jsxDEV("div",{className:"hidden md:flex fixed top-0 right-0 h-full w-[480px] lg:w-[540px] bg-[var(--color-bg)] border-l border-[var(--color-border)] shadow-2xl z-50 flex-col",children:[Da.jsxDEV("div",{className:"flex items-center justify-between px-4 py-3 border-b border-[var(--color-border)] bg-[var(--color-surface)]",children:[Da.jsxDEV("div",{className:"flex items-center gap-2",children:[Da.jsxDEV("div",{className:`w-2 h-2 rounded-full ${G?"bg-green-400":"bg-[var(--color-scrollbar)]"}`},void 0,!1,void 0,this),Da.jsxDEV("span",{className:"font-medium text-sm",children:"Apteva Assistant"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Da.jsxDEV("button",{onClick:P,className:"text-[var(--color-text-muted)] hover:text-[var(--color-text-secondary)] transition",children:Da.jsxDEV(oX,{},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Da.jsxDEV("div",{className:"flex-1 min-h-0 flex flex-col",children:G?Da.jsxDEV(er,{agentId:"default",apiUrl:`/api/agents/${H.id}`,placeholder:"Ask me anything about Apteva...",variant:"terminal",theme:f.id,showHeader:!1,context:O,onToolResult:n},void 0,!1,void 0,this):Da.jsxDEV("div",{className:"flex-1 flex flex-col items-center justify-center p-6 text-center",children:[Da.jsxDEV(P9,{className:"w-12 h-12 text-[var(--color-border-light)] mb-4"},void 0,!1,void 0,this),Da.jsxDEV("h3",{className:"font-medium mb-2",children:"Apteva Assistant"},void 0,!1,void 0,this),Da.jsxDEV("p",{className:"text-sm text-[var(--color-text-muted)] mb-6",children:Z("I can help you navigate Apteva, create agents, set up MCP servers, and more.","I can help you hire employees, assign them work, and manage your team.")},void 0,!1,void 0,this),N&&Da.jsxDEV("p",{className:"text-sm text-red-400 mb-4",children:N},void 0,!1,void 0,this),Da.jsxDEV("button",{onClick:h,disabled:C,className:"bg-[var(--color-accent)] hover:bg-[var(--color-accent-hover)] disabled:opacity-50 text-white px-6 py-2 rounded font-medium transition",children:C?"Starting...":"Start Assistant"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function P9({className:f="w-6 h-6"}){return Da.jsxDEV("svg",{className:f,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:Da.jsxDEV("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 10h.01M12 10h.01M16 10h.01M9 16H5a2 2 0 01-2-2V6a2 2 0 012-2h14a2 2 0 012 2v8a2 2 0 01-2 2h-5l-5 5v-5z"},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function oX(){return Da.jsxDEV("svg",{className:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:Da.jsxDEV("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var Ya=_a(bo(),1);function db({onMenuClick:f,agents:Z=[]}){let{connected:Q}=a5(),W=I9(),{projects:L,currentProjectId:n,currentProject:H,setCurrentProjectId:G,unassignedCount:N,projectsEnabled:C}=cp(),[h,P]=xo.useState(!1),[O,T]=xo.useState(!1),[I,R]=xo.useState(0),[s,ca]=xo.useState([]),ra=C9(),{events:$a}=a5(),{accessToken:va}=wo(),S=xo.useRef(!1),da=xo.default.useMemo(()=>{let k={};for(let q of Z)k[q.id]=q.name;return k},[Z]),ga=xo.default.useMemo(()=>{if(!C||n===null)return null;if(n==="unassigned")return new Set(Z.filter((k)=>!k.projectId).map((k)=>k.id));return new Set(Z.filter((k)=>k.projectId===n).map((k)=>k.id))},[Z,n,C]);xo.useEffect(()=>{if(S.current||!va)return;S.current=!0,fetch("/api/notifications/count",{headers:{Authorization:`Bearer ${va}`}}).then((k)=>k.json()).then((k)=>R(k.count||0)).catch(()=>{})},[va]),xo.useEffect(()=>{if(ra===0)return;let k=$a.find((q)=>q.level==="error"||q.category==="ERROR"||q.category==="system"&&q.type==="agent_stopped");if(k&&(!ga||ga.has(k.agent_id)))R((q)=>q+1)},[ra]);let V=xo.useRef(n);xo.useEffect(()=>{if(V.current===n)return;if(V.current=n,!va)return;fetch("/api/notifications/count",{headers:{Authorization:`Bearer ${va}`}}).then((k)=>k.json()).then((k)=>{if(!ga)R(k.count||0);else fetch("/api/notifications?limit=200",{headers:{Authorization:`Bearer ${va}`}}).then((q)=>q.json()).then((q)=>{let F=(q.notifications||[]).filter((oa)=>!oa.seen&&ga.has(oa.agent_id));R(F.length)}).catch(()=>{})}).catch(()=>{})},[n,va,ga]);let Fa=xo.useCallback(async()=>{if(T((k)=>!k),!O)try{let k={"Content-Type":"application/json"};if(va)k.Authorization=`Bearer ${va}`;let oa=(await(await fetch("/api/notifications?limit=50",{headers:k})).json()).notifications||[];if(ga)oa=oa.filter((ta)=>ga.has(ta.agent_id));if(ca(oa),I>0)await fetch("/api/notifications/mark-seen",{method:"POST",headers:k,body:JSON.stringify({all:!0})}),R(0)}catch{}},[O,I,va,ga]),U=(k)=>{G(k),P(!1)},aa=()=>{if(n===null)return"All Projects";if(n==="unassigned")return"Unassigned";return H?.name||"Select Project"},ia=()=>{if(n===null)return"var(--color-text-muted)";if(n==="unassigned")return"var(--color-text-secondary)";return H?.color||"#6366f1"};return Ya.jsxDEV("header",{className:"px-4 md:px-6 py-4 flex-shrink-0",style:{borderBottom:"1px solid var(--color-border)"},children:Ya.jsxDEV("div",{className:"flex items-center justify-between",children:[Ya.jsxDEV("div",{className:"flex items-center gap-3",children:[Ya.jsxDEV("button",{onClick:f,className:"p-2 -ml-2 transition md:hidden",style:{color:"var(--color-text-muted)"},children:Ya.jsxDEV(A9,{},void 0,!1,void 0,this)},void 0,!1,void 0,this),Ya.jsxDEV("div",{className:"flex items-center gap-2",children:[Ya.jsxDEV("span",{style:{color:"var(--color-accent)"},children:">_"},void 0,!1,void 0,this),Ya.jsxDEV("span",{className:"text-xl tracking-wider",children:"apteva"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),C&&L.length>0&&Ya.jsxDEV("div",{className:"relative ml-2 md:ml-4",children:[Ya.jsxDEV("button",{onClick:()=>P(!h),className:"flex items-center gap-2 px-3 py-1.5 btn transition text-sm",style:{border:"1px solid var(--color-border-light)",backgroundColor:"var(--color-surface)"},children:[Ya.jsxDEV("span",{className:"w-2.5 h-2.5 rounded-full",style:{backgroundColor:ia()}},void 0,!1,void 0,this),Ya.jsxDEV("span",{className:"hidden sm:inline max-w-[120px] md:max-w-[180px] truncate",children:aa()},void 0,!1,void 0,this),Ya.jsxDEV(T9,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this),h&&Ya.jsxDEV("div",{className:"absolute left-0 top-full mt-1 w-56 card shadow-xl z-50",style:{backgroundColor:"var(--color-surface)"},children:Ya.jsxDEV("div",{className:"py-1 max-h-64 overflow-y-auto",children:[Ya.jsxDEV("button",{onClick:()=>U(null),className:"w-full px-4 py-2 text-left text-sm flex items-center gap-2 transition",style:{backgroundColor:n===null?"var(--color-surface-raised)":"transparent",color:n===null?"var(--color-accent)":"var(--color-text)"},children:[Ya.jsxDEV("span",{className:"w-2.5 h-2.5 rounded-full",style:{backgroundColor:"var(--color-text-muted)"}},void 0,!1,void 0,this),"All Projects"]},void 0,!0,void 0,this),L.map((k)=>Ya.jsxDEV("button",{onClick:()=>U(k.id),className:"w-full px-4 py-2 text-left text-sm flex items-center gap-2 transition",style:{backgroundColor:n===k.id?"var(--color-surface-raised)":"transparent",color:n===k.id?"var(--color-accent)":"var(--color-text)"},children:[Ya.jsxDEV("span",{className:"w-2.5 h-2.5 rounded-full flex-shrink-0",style:{backgroundColor:k.color}},void 0,!1,void 0,this),Ya.jsxDEV("span",{className:"truncate",children:k.name},void 0,!1,void 0,this),Ya.jsxDEV("span",{className:"ml-auto text-xs",style:{color:"var(--color-text-muted)"},children:k.agentCount},void 0,!1,void 0,this)]},k.id,!0,void 0,this)),N>0&&Ya.jsxDEV("button",{onClick:()=>U("unassigned"),className:"w-full px-4 py-2 text-left text-sm flex items-center gap-2 transition",style:{backgroundColor:n==="unassigned"?"var(--color-surface-raised)":"transparent",color:n==="unassigned"?"var(--color-accent)":"var(--color-text)"},children:[Ya.jsxDEV("span",{className:"w-2.5 h-2.5 rounded-full",style:{backgroundColor:"var(--color-text-secondary)"}},void 0,!1,void 0,this),Ya.jsxDEV("span",{className:"truncate",children:"Unassigned"},void 0,!1,void 0,this),Ya.jsxDEV("span",{className:"ml-auto text-xs",style:{color:"var(--color-text-muted)"},children:N},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),Ya.jsxDEV("div",{className:"flex items-center gap-3 md:gap-4",children:[Ya.jsxDEV("div",{className:"flex items-center gap-2",children:[Ya.jsxDEV("span",{className:`w-2 h-2 rounded-full ${Q?"bg-green-400":"bg-red-400"}`},void 0,!1,void 0,this),Ya.jsxDEV("span",{className:"text-xs hidden sm:inline",style:{color:"var(--color-text-muted)"},children:Q?"Live":"Offline"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ya.jsxDEV("div",{className:"relative",children:[Ya.jsxDEV("button",{onClick:Fa,className:"relative p-2 transition rounded",style:{color:"var(--color-text-muted)"},children:[Ya.jsxDEV(S9,{className:"w-5 h-5"},void 0,!1,void 0,this),I>0&&Ya.jsxDEV("span",{className:"absolute flex items-center justify-center bg-red-500 text-white font-bold rounded-full pointer-events-none",style:{top:2,right:2,fontSize:9,lineHeight:1,minWidth:16,height:16,padding:"0 4px"},children:I>99?"99+":I},void 0,!1,void 0,this)]},void 0,!0,void 0,this),O&&Ya.jsxDEV(Ya.Fragment,{children:[Ya.jsxDEV("div",{className:"fixed inset-0 z-40",onClick:()=>T(!1)},void 0,!1,void 0,this),Ya.jsxDEV("div",{className:"absolute right-0 top-full mt-1 w-80 card shadow-xl z-50 max-h-96 overflow-y-auto",style:{backgroundColor:"var(--color-surface)"},children:[Ya.jsxDEV("div",{className:"px-4 py-3 flex items-center justify-between",style:{borderBottom:"1px solid var(--color-border-light)"},children:[Ya.jsxDEV("span",{className:"text-sm font-medium",children:"Notifications"},void 0,!1,void 0,this),s.length>0&&Ya.jsxDEV("span",{className:"text-xs",style:{color:"var(--color-text-muted)"},children:[s.length," recent"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),s.length===0?Ya.jsxDEV("div",{className:"px-4 py-8 text-center text-sm",style:{color:"var(--color-text-muted)"},children:"No notifications"},void 0,!1,void 0,this):Ya.jsxDEV("div",{className:"py-1",children:s.map((k)=>Ya.jsxDEV("div",{className:"px-4 py-3 transition",style:{borderBottom:"1px solid var(--color-border)",backgroundColor:!k.seen?"var(--color-bg-secondary)":"transparent"},children:[Ya.jsxDEV("div",{className:"flex items-center gap-2 mb-1",children:[Ya.jsxDEV("span",{className:`w-2 h-2 rounded-full flex-shrink-0 ${!k.seen?k.level==="error"||k.category==="ERROR"?"bg-red-400":"":""}`,style:{backgroundColor:!k.seen?k.level==="error"||k.category==="ERROR"?void 0:"var(--color-accent)":"var(--color-surface-raised)"}},void 0,!1,void 0,this),Ya.jsxDEV("span",{className:"text-xs font-medium truncate",style:{color:!k.seen?"var(--color-text)":"var(--color-text-muted)"},children:k.category==="system"&&k.type==="agent_stopped"?"Agent Stopped":k.category==="ERROR"?"Error":`${k.category} / ${k.type}`},void 0,!1,void 0,this),Ya.jsxDEV("span",{className:"text-[10px] ml-auto flex-shrink-0",style:{color:"var(--color-text-faint)"},children:pX(k.timestamp)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ya.jsxDEV("div",{className:"text-xs truncate",style:{color:!k.seen?"var(--color-text-secondary)":"var(--color-text-muted)"},children:k.error||k.data?.message||k.data?.error||`${k.type} event`},void 0,!1,void 0,this),Ya.jsxDEV("div",{className:"text-[10px] mt-1",style:{color:"var(--color-text-faint)"},children:da[k.agent_id]||k.agent_id.slice(0,8)},void 0,!1,void 0,this)]},k.id,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),Ya.jsxDEV(g9,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}function pX(f){let Z=Date.now()-new Date(f).getTime(),Q=Math.floor(Z/60000);if(Q<1)return"just now";if(Q<60)return`${Q}m ago`;let W=Math.floor(Q/60);if(W<24)return`${W}h ago`;return`${Math.floor(W/24)}d ago`}var E9=_a(so(),1);var Za=_a(bo(),1);function Wb({route:f,agentCount:Z,taskCount:Q,onNavigate:W,isOpen:L,onClose:n}){let{user:H,logout:G}=wo(),{isDev:N,t:C}=Mp(),[h,P]=E9.useState(!1),O=(I)=>{W(I),n?.()},T=async()=>{await G(),P(!1)};return Za.jsxDEV(Za.Fragment,{children:[L&&Za.jsxDEV("div",{className:"fixed inset-0 bg-black/60 z-40 md:hidden",onClick:n},void 0,!1,void 0,this),Za.jsxDEV("aside",{className:`
216
- fixed inset-y-0 left-0 z-50 w-64 p-4 flex flex-col transform transition-transform duration-200 ease-in-out
217
- md:relative md:w-56 md:translate-x-0 md:z-auto
218
- ${L?"translate-x-0":"-translate-x-full"}
219
- `,style:{backgroundColor:"var(--color-bg)",borderRight:"1px solid var(--color-border)"},children:[Za.jsxDEV("div",{className:"flex items-center justify-between mb-4 md:hidden",children:[Za.jsxDEV("div",{className:"flex items-center gap-2",children:[Za.jsxDEV("span",{style:{color:"var(--color-accent)"},children:">_"},void 0,!1,void 0,this),Za.jsxDEV("span",{className:"text-lg tracking-wider",children:"apteva"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Za.jsxDEV("button",{onClick:n,className:"p-2 transition",style:{color:"var(--color-text-muted)"},children:Za.jsxDEV(Gm,{},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Za.jsxDEV("nav",{className:"space-y-1 flex-1",children:[Za.jsxDEV(at,{icon:Za.jsxDEV(k3,{},void 0,!1,void 0,this),label:"Dashboard",active:f==="dashboard",onClick:()=>O("dashboard")},void 0,!1,void 0,this),Za.jsxDEV(at,{icon:Za.jsxDEV(n3,{},void 0,!1,void 0,this),label:C("Agents","Employees"),active:f==="agents",onClick:()=>O("agents"),badge:Z>0?String(Z):void 0},void 0,!1,void 0,this),Za.jsxDEV(at,{icon:Za.jsxDEV(D9,{},void 0,!1,void 0,this),label:"Threads",active:f==="threads",onClick:()=>O("threads")},void 0,!1,void 0,this),Za.jsxDEV(at,{icon:Za.jsxDEV(Hb,{},void 0,!1,void 0,this),label:"Activity",active:f==="activity",onClick:()=>O("activity")},void 0,!1,void 0,this),Za.jsxDEV(at,{icon:Za.jsxDEV(Tt,{},void 0,!1,void 0,this),label:"Tasks",active:f==="tasks",onClick:()=>O("tasks"),badge:Q&&Q>0?String(Q):void 0},void 0,!1,void 0,this),N&&Za.jsxDEV(at,{icon:Za.jsxDEV(qm,{},void 0,!1,void 0,this),label:"MCP",active:f==="mcp",onClick:()=>O("mcp")},void 0,!1,void 0,this),N&&Za.jsxDEV(at,{icon:Za.jsxDEV(Kb,{},void 0,!1,void 0,this),label:"Skills",active:f==="skills",onClick:()=>O("skills")},void 0,!1,void 0,this),N&&Za.jsxDEV(at,{icon:Za.jsxDEV(j9,{},void 0,!1,void 0,this),label:"Connections",active:f==="connections",onClick:()=>O("connections")},void 0,!1,void 0,this),N&&Za.jsxDEV(at,{icon:Za.jsxDEV(V9,{},void 0,!1,void 0,this),label:"Tests",active:f==="tests",onClick:()=>O("tests")},void 0,!1,void 0,this),Za.jsxDEV(at,{icon:Za.jsxDEV(u9,{},void 0,!1,void 0,this),label:"Analytics",active:f==="analytics",onClick:()=>O("analytics")},void 0,!1,void 0,this),N&&Za.jsxDEV(at,{icon:Za.jsxDEV(x9,{},void 0,!1,void 0,this),label:"API",active:f==="api",onClick:()=>O("api")},void 0,!1,void 0,this),Za.jsxDEV(at,{icon:Za.jsxDEV(L3,{},void 0,!1,void 0,this),label:"Settings",active:f==="settings",onClick:()=>O("settings")},void 0,!1,void 0,this)]},void 0,!0,void 0,this),H&&Za.jsxDEV("div",{className:"relative pt-3 mt-3",style:{borderTop:"1px solid var(--color-border)"},children:[Za.jsxDEV("button",{onClick:()=>P(!h),className:"w-full flex items-center gap-3 px-3 py-2 rounded transition",style:{color:"var(--color-text)"},onMouseEnter:(I)=>I.currentTarget.style.backgroundColor="var(--color-surface)",onMouseLeave:(I)=>I.currentTarget.style.backgroundColor="transparent",children:[Za.jsxDEV("div",{className:"w-8 h-8 rounded-full flex items-center justify-center text-black font-medium text-sm flex-shrink-0",style:{backgroundColor:"var(--color-accent)"},children:H.username.charAt(0).toUpperCase()},void 0,!1,void 0,this),Za.jsxDEV("div",{className:"flex-1 min-w-0 text-left",children:[Za.jsxDEV("p",{className:"text-sm font-medium truncate",children:H.username},void 0,!1,void 0,this),Za.jsxDEV("p",{className:"text-xs",style:{color:"var(--color-text-faint)"},children:H.role},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),h&&Za.jsxDEV(Za.Fragment,{children:[Za.jsxDEV("div",{className:"fixed inset-0 z-40",onClick:()=>P(!1)},void 0,!1,void 0,this),Za.jsxDEV("div",{className:"absolute left-3 bottom-full mb-1 w-48 card shadow-xl z-50",style:{backgroundColor:"var(--color-surface)"},children:Za.jsxDEV("button",{onClick:T,className:"w-full px-4 py-2.5 text-left text-sm text-red-400 transition rounded-lg",onMouseEnter:(I)=>I.currentTarget.style.backgroundColor="var(--color-surface-raised)",onMouseLeave:(I)=>I.currentTarget.style.backgroundColor="transparent",children:"Sign out"},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function at({icon:f,label:Z,active:Q,onClick:W,badge:L}){return Za.jsxDEV("button",{onClick:W,className:"w-full flex items-center gap-3 px-3 py-2 font-medium transition",style:{borderRadius:"var(--radius-button)",backgroundColor:Q?"var(--color-surface)":"transparent",color:Q?"var(--color-text)":"var(--color-text-muted)"},onMouseEnter:(n)=>{if(!Q)n.currentTarget.style.backgroundColor="var(--color-surface)",n.currentTarget.style.color="var(--color-text-secondary)"},onMouseLeave:(n)=>{if(!Q)n.currentTarget.style.backgroundColor="transparent",n.currentTarget.style.color="var(--color-text-muted)"},children:[f,Z,L&&Za.jsxDEV("span",{className:"ml-auto text-xs px-2 py-0.5 rounded-full",style:{backgroundColor:"var(--color-surface-raised)",color:"var(--color-text-secondary)"},children:L},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var o5=_a(bo(),1);function Ub({message:f,onDismiss:Z}){return o5.jsxDEV("div",{className:"bg-red-500/10 border-b border-red-500/30 px-6 py-3 text-red-400 text-sm flex items-center justify-between",children:[o5.jsxDEV("span",{children:f},void 0,!1,void 0,this),o5.jsxDEV("button",{onClick:Z,className:"hover:text-red-300",children:o5.jsxDEV(Gm,{className:"w-4 h-4"},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var p5=_a(so(),1);var ko=_a(bo(),1);function hb(){let{login:f}=wo(),[Z,Q]=p5.useState(""),[W,L]=p5.useState(""),[n,H]=p5.useState(null),[G,N]=p5.useState(!1);return ko.jsxDEV("div",{className:"min-h-screen bg-[var(--color-bg)] text-[var(--color-text)] flex items-center justify-center p-8",children:ko.jsxDEV("div",{className:"w-full max-w-md",children:[ko.jsxDEV("div",{className:"text-center mb-8",children:[ko.jsxDEV("div",{className:"flex items-center justify-center gap-2 mb-2",children:[ko.jsxDEV("span",{className:"text-[var(--color-accent)] text-3xl",children:">_"},void 0,!1,void 0,this),ko.jsxDEV("span",{className:"text-3xl tracking-wider",children:"apteva"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ko.jsxDEV("p",{className:"text-[var(--color-text-muted)]",children:"Run AI agents locally"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ko.jsxDEV("div",{className:"bg-[var(--color-surface)] card p-8",children:[ko.jsxDEV("h2",{className:"text-2xl font-semibold mb-2",children:"Welcome back"},void 0,!1,void 0,this),ko.jsxDEV("p",{className:"text-[var(--color-text-muted)] mb-6",children:"Sign in to continue to apteva"},void 0,!1,void 0,this),ko.jsxDEV("form",{onSubmit:async(h)=>{h.preventDefault(),H(null),N(!0);let P=await f(Z,W);if(!P.success)H(P.error||"Login failed");N(!1)},className:"space-y-4",children:[ko.jsxDEV("div",{children:[ko.jsxDEV("label",{htmlFor:"username",className:"block text-sm text-[var(--color-text-secondary)] mb-1",children:"Username"},void 0,!1,void 0,this),ko.jsxDEV("input",{id:"username",type:"text",value:Z,onChange:(h)=>Q(h.target.value),placeholder:"Enter your username",autoFocus:!0,required:!0,className:"w-full bg-[var(--color-bg)] border border-[var(--color-border-light)] rounded px-4 py-3 focus:outline-none focus:border-[var(--color-accent)]"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ko.jsxDEV("div",{children:[ko.jsxDEV("label",{htmlFor:"password",className:"block text-sm text-[var(--color-text-secondary)] mb-1",children:"Password"},void 0,!1,void 0,this),ko.jsxDEV("input",{id:"password",type:"password",value:W,onChange:(h)=>L(h.target.value),placeholder:"Enter your password",required:!0,className:"w-full bg-[var(--color-bg)] border border-[var(--color-border-light)] rounded px-4 py-3 focus:outline-none focus:border-[var(--color-accent)]"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),n&&ko.jsxDEV("div",{className:"p-3 bg-red-500/10 border border-red-500/30 rounded text-red-400 text-sm",children:n},void 0,!1,void 0,this),ko.jsxDEV("button",{type:"submit",disabled:G||!Z||!W,className:"w-full bg-[var(--color-accent)] hover:bg-[var(--color-accent-hover)] disabled:opacity-50 disabled:cursor-not-allowed text-black px-4 py-3 rounded font-medium transition",children:G?"Signing in...":"Sign In"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}var cr=_a(so(),1),mo=_a(bo(),1);function yb({onComplete:f}){let[Z,Q]=cr.useState(""),[W,L]=cr.useState(""),[n,H]=cr.useState(""),[G,N]=cr.useState(""),[C,h]=cr.useState(!1),[P,O]=cr.useState(null),[T,I]=cr.useState(!1);return mo.jsxDEV(mo.Fragment,{children:[mo.jsxDEV("h2",{className:"text-2xl font-semibold mb-2",children:"Create your account"},void 0,!1,void 0,this),mo.jsxDEV("p",{className:"text-[var(--color-text-muted)] mb-6",children:"Set up your admin account to get started with apteva."},void 0,!1,void 0,this),mo.jsxDEV("form",{onSubmit:async(s)=>{if(s.preventDefault(),O(null),W!==n){O("Passwords do not match");return}I(!0);try{let ca=await fetch("/api/onboarding/user",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:Z,password:W,...G&&{email:G}})}),ra=await ca.json();if(!ca.ok){O(ra.error||"Failed to create account"),I(!1);return}let $a=await fetch("/api/auth/login",{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({username:Z,password:W})});if(!$a.ok){O("Account created but login failed. Please try logging in."),I(!1);return}let va=await $a.json();if(va.accessToken)sessionStorage.setItem("accessToken",va.accessToken);f({username:Z})}catch(ca){O("Failed to create account"),I(!1)}},className:"space-y-4",children:[mo.jsxDEV("div",{children:[mo.jsxDEV("label",{htmlFor:"username",className:"block text-sm text-[var(--color-text-secondary)] mb-1",children:"Username"},void 0,!1,void 0,this),mo.jsxDEV("input",{id:"username",type:"text",value:Z,onChange:(s)=>Q(s.target.value),placeholder:"Choose a username",autoFocus:!0,required:!0,className:"w-full bg-[var(--color-bg)] border border-[var(--color-border-light)] rounded px-4 py-3 focus:outline-none focus:border-[var(--color-accent)]"},void 0,!1,void 0,this),mo.jsxDEV("p",{className:"text-xs text-[var(--color-text-muted)] mt-1",children:"3-20 characters, letters, numbers, underscore"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),mo.jsxDEV("div",{children:[mo.jsxDEV("label",{htmlFor:"password",className:"block text-sm text-[var(--color-text-secondary)] mb-1",children:"Password"},void 0,!1,void 0,this),mo.jsxDEV("input",{id:"password",type:"password",value:W,onChange:(s)=>L(s.target.value),placeholder:"Enter a password",required:!0,className:"w-full bg-[var(--color-bg)] border border-[var(--color-border-light)] rounded px-4 py-3 focus:outline-none focus:border-[var(--color-accent)]"},void 0,!1,void 0,this),mo.jsxDEV("p",{className:"text-xs text-[var(--color-text-muted)] mt-1",children:"Min 8 characters, uppercase, lowercase, number"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),mo.jsxDEV("div",{children:[mo.jsxDEV("label",{htmlFor:"confirmPassword",className:"block text-sm text-[var(--color-text-secondary)] mb-1",children:"Confirm Password"},void 0,!1,void 0,this),mo.jsxDEV("input",{id:"confirmPassword",type:"password",value:n,onChange:(s)=>H(s.target.value),placeholder:"Confirm your password",required:!0,className:"w-full bg-[var(--color-bg)] border border-[var(--color-border-light)] rounded px-4 py-3 focus:outline-none focus:border-[var(--color-accent)]"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),!C?mo.jsxDEV("button",{type:"button",onClick:()=>h(!0),className:"text-sm text-[var(--color-text-muted)] hover:text-[var(--color-text-secondary)] transition",children:"+ Add email for password recovery (optional)"},void 0,!1,void 0,this):mo.jsxDEV("div",{children:[mo.jsxDEV("label",{htmlFor:"email",className:"block text-sm text-[var(--color-text-secondary)] mb-1",children:["Email ",mo.jsxDEV("span",{className:"text-[var(--color-text-muted)]",children:"(optional)"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),mo.jsxDEV("input",{id:"email",type:"email",value:G,onChange:(s)=>N(s.target.value),placeholder:"For password recovery only",className:"w-full bg-[var(--color-bg)] border border-[var(--color-border-light)] rounded px-4 py-3 focus:outline-none focus:border-[var(--color-accent)]"},void 0,!1,void 0,this),mo.jsxDEV("p",{className:"text-xs text-[var(--color-text-muted)] mt-1",children:"Only used for password recovery, never shared"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),P&&mo.jsxDEV("div",{className:"p-3 bg-red-500/10 border border-red-500/30 rounded text-red-400 text-sm",children:P},void 0,!1,void 0,this),mo.jsxDEV("button",{type:"submit",disabled:T||!Z||!W||!n,className:"w-full bg-[var(--color-accent)] hover:bg-[var(--color-accent-hover)] disabled:opacity-50 disabled:cursor-not-allowed text-black px-4 py-3 rounded font-medium transition",children:T?"Creating account...":"Create Account"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),mo.jsxDEV("p",{className:"text-xs text-[var(--color-text-muted)] mt-4 text-center",children:"This will be your admin account with full access to apteva."},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var ot=_a(so(),1);var ma=_a(bo(),1);function t5({onComplete:f,needsAccount:Z=!1}){let[Q,W]=ot.useState(Z?0:1),[L,n]=ot.useState([]),[H,G]=ot.useState(null),[N,C]=ot.useState(""),[h,P]=ot.useState(!1),[O,T]=ot.useState(!1),[I,R]=ot.useState(null),[s,ca]=ot.useState(null),[ra,$a]=ot.useState(!1),va=()=>{let aa=sessionStorage.getItem("accessToken");return aa?{Authorization:`Bearer ${aa}`}:{}};ot.useEffect(()=>{if(Z&&!ra&&Q===0)return;fetch("/api/providers",{headers:va()}).then((aa)=>aa.json()).then((aa)=>{let ia=(aa.providers||[]).filter((k)=>k.type==="llm");n(ia)})},[ra,Q,Z]);let S=L.filter((aa)=>aa.hasKey),da=async()=>{if(!H||!N)return;P(!0),R(null),ca(null);try{T(!0);let ia=await(await fetch(`/api/keys/${H}/test`,{method:"POST",headers:{"Content-Type":"application/json",...va()},body:JSON.stringify({key:N})})).json();if(T(!1),!ia.valid){R(ia.error||"API key is invalid"),P(!1);return}let k=await fetch(`/api/keys/${H}`,{method:"POST",headers:{"Content-Type":"application/json",...va()},body:JSON.stringify({key:N})}),q=await k.json();if(!k.ok)R(q.error||"Failed to save key");else{ca("API key saved successfully!"),C("");let oa=await(await fetch("/api/providers",{headers:va()})).json();n(oa.providers||[]),G(null)}}catch(aa){R("Failed to save key")}P(!1)},ga=async()=>{try{let aa=await fetch("/api/projects",{method:"POST",headers:{"Content-Type":"application/json",...va()},body:JSON.stringify({name:"My Project",description:"Default project for organizing agents",color:"#f97316"})});if(aa.ok){let ia=await aa.json();if(ia.project?.id)localStorage.setItem("apteva_current_project",ia.project.id)}}catch(aa){console.error("Failed to create default project:",aa)}await fetch("/api/onboarding/complete",{method:"POST",headers:va()}),f()},V=()=>{$a(!0),W(1)},Fa=Z?3:2,U=Z?Q:Q-1;return ma.jsxDEV("div",{className:"min-h-screen bg-[var(--color-bg)] text-[var(--color-text)] flex items-center justify-center p-8",children:ma.jsxDEV("div",{className:"w-full max-w-2xl",children:[ma.jsxDEV("div",{className:"text-center mb-8",children:[ma.jsxDEV("div",{className:"flex items-center justify-center gap-2 mb-2",children:[ma.jsxDEV("span",{className:"text-[var(--color-accent)] text-3xl",children:">_"},void 0,!1,void 0,this),ma.jsxDEV("span",{className:"text-3xl tracking-wider",children:"apteva"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ma.jsxDEV("p",{className:"text-[var(--color-text-muted)]",children:"Run AI agents locally"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ma.jsxDEV("div",{className:"flex items-center justify-center gap-2 mb-8",children:[Z&&ma.jsxDEV(ma.Fragment,{children:[ma.jsxDEV("div",{className:`w-3 h-3 rounded-full ${Q>=0?"bg-[var(--color-accent)]":"bg-[var(--color-surface-raised)]"}`},void 0,!1,void 0,this),ma.jsxDEV("div",{className:`w-16 h-0.5 ${Q>=1?"bg-[var(--color-accent)]":"bg-[var(--color-surface-raised)]"}`},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ma.jsxDEV("div",{className:`w-3 h-3 rounded-full ${Q>=1?"bg-[var(--color-accent)]":"bg-[var(--color-surface-raised)]"}`},void 0,!1,void 0,this),ma.jsxDEV("div",{className:`w-16 h-0.5 ${Q>=2?"bg-[var(--color-accent)]":"bg-[var(--color-surface-raised)]"}`},void 0,!1,void 0,this),ma.jsxDEV("div",{className:`w-3 h-3 rounded-full ${Q>=2?"bg-[var(--color-accent)]":"bg-[var(--color-surface-raised)]"}`},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ma.jsxDEV("div",{className:"bg-[var(--color-surface)] card p-8",children:[Q===0&&Z&&ma.jsxDEV(yb,{onComplete:V},void 0,!1,void 0,this),Q===1&&ma.jsxDEV(tX,{providers:L,configuredProviders:S,selectedProvider:H,apiKey:N,saving:h,testing:O,error:I,success:s,onSelectProvider:G,onApiKeyChange:C,onSaveKey:da,onContinue:()=>W(2)},void 0,!1,void 0,this),Q===2&&ma.jsxDEV(rX,{configuredProviders:S,onAddMore:()=>W(1),onComplete:ga},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}function tX({providers:f,configuredProviders:Z,selectedProvider:Q,apiKey:W,saving:L,testing:n,error:H,success:G,onSelectProvider:N,onApiKeyChange:C,onSaveKey:h,onContinue:P}){let O=f.find((T)=>T.id===Q);if(Q&&O)return ma.jsxDEV(ma.Fragment,{children:[ma.jsxDEV("h2",{className:"text-2xl font-semibold mb-2",children:["Add ",O.name," Key"]},void 0,!0,void 0,this),ma.jsxDEV("p",{className:"text-[var(--color-text-muted)] mb-6",children:"Enter your API key below. It will be encrypted and stored locally."},void 0,!1,void 0,this),ma.jsxDEV("div",{className:"mb-6",children:[ma.jsxDEV("div",{className:"p-4 rounded border border-[var(--color-accent)] bg-[var(--color-accent-5)] mb-4",children:ma.jsxDEV("div",{className:"flex items-center justify-between",children:[ma.jsxDEV("div",{children:[ma.jsxDEV("p",{className:"font-medium",children:O.name},void 0,!1,void 0,this),ma.jsxDEV("p",{className:"text-sm text-[var(--color-text-muted)]",children:[O.models.length," models available"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),ma.jsxDEV("a",{href:O.docsUrl,target:"_blank",rel:"noopener noreferrer",className:"text-sm text-[#3b82f6] hover:underline",children:"Get API Key"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),ma.jsxDEV("div",{className:"space-y-3",children:[ma.jsxDEV("input",{type:"password",value:W,onChange:(T)=>C(T.target.value),placeholder:"Enter your API key...",autoFocus:!0,className:"w-full bg-[var(--color-bg)] border border-[var(--color-border-light)] rounded px-4 py-3 focus:outline-none focus:border-[var(--color-accent)] text-lg"},void 0,!1,void 0,this),H&&ma.jsxDEV("p",{className:"text-red-400 text-sm",children:H},void 0,!1,void 0,this),G&&ma.jsxDEV("p",{className:"text-green-400 text-sm",children:G},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),ma.jsxDEV("div",{className:"flex gap-3",children:[ma.jsxDEV("button",{onClick:()=>{N(null),C("")},className:"flex-1 border border-[var(--color-border-light)] hover:border-[var(--color-text-muted)] px-4 py-3 rounded font-medium transition",children:"Back"},void 0,!1,void 0,this),ma.jsxDEV("button",{onClick:h,disabled:!W||L,className:"flex-1 bg-[var(--color-accent)] hover:bg-[var(--color-accent-hover)] disabled:opacity-50 disabled:cursor-not-allowed text-black px-4 py-3 rounded font-medium transition",children:n?"Testing...":L?"Saving...":"Save API Key"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this);return ma.jsxDEV(ma.Fragment,{children:[ma.jsxDEV("h2",{className:"text-2xl font-semibold mb-2",children:"Welcome to apteva"},void 0,!1,void 0,this),ma.jsxDEV("p",{className:"text-[var(--color-text-muted)] mb-6",children:"To get started, you'll need to add at least one AI provider API key. Your keys are encrypted and stored locally."},void 0,!1,void 0,this),ma.jsxDEV("div",{className:"space-y-3 mb-6",children:f.map((T)=>ma.jsxDEV(mX,{provider:T,selected:!1,onSelect:()=>!T.hasKey&&N(T.id)},T.id,!1,void 0,this))},void 0,!1,void 0,this),ma.jsxDEV("button",{onClick:P,disabled:Z.length===0,className:"w-full bg-[var(--color-surface-raised)] hover:bg-[var(--color-surface-raised)] disabled:opacity-50 disabled:cursor-not-allowed px-4 py-3 rounded font-medium transition",children:Z.length===0?"Add at least one API key to continue":`Continue with ${Z.length} provider${Z.length>1?"s":""}`},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function mX({provider:f,selected:Z,onSelect:Q}){return ma.jsxDEV("div",{onClick:Q,className:`p-4 rounded border transition cursor-pointer ${f.hasKey?"border-green-500/30 bg-green-500/5":Z?"border-[var(--color-accent)] bg-[var(--color-accent-5)]":"border-[var(--color-border-light)] hover:border-[var(--color-border-light)]"}`,children:ma.jsxDEV("div",{className:"flex items-center justify-between",children:[ma.jsxDEV("div",{children:[ma.jsxDEV("p",{className:"font-medium",children:f.name},void 0,!1,void 0,this),ma.jsxDEV("p",{className:"text-sm text-[var(--color-text-muted)]",children:[f.models.length," models available"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),f.hasKey?ma.jsxDEV("span",{className:"text-green-400 text-sm flex items-center gap-1",children:[ma.jsxDEV(kb,{},void 0,!1,void 0,this),"Configured (",f.keyHint,")"]},void 0,!0,void 0,this):ma.jsxDEV("a",{href:f.docsUrl,target:"_blank",rel:"noopener noreferrer",onClick:(W)=>W.stopPropagation(),className:"text-sm text-[#3b82f6] hover:underline",children:"Get API Key"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}function rX({configuredProviders:f,onAddMore:Z,onComplete:Q}){return ma.jsxDEV(ma.Fragment,{children:[ma.jsxDEV("h2",{className:"text-2xl font-semibold mb-2",children:"You're all set!"},void 0,!1,void 0,this),ma.jsxDEV("p",{className:"text-[var(--color-text-muted)] mb-6",children:["You've configured ",f.length," provider",f.length>1?"s":"",". You can add more providers later in Settings."]},void 0,!0,void 0,this),ma.jsxDEV("div",{className:"space-y-2 mb-6",children:f.map((W)=>ma.jsxDEV("div",{className:"flex items-center gap-3 p-3 bg-[var(--color-bg)] rounded",children:[ma.jsxDEV(kb,{className:"w-5 h-5 text-green-400"},void 0,!1,void 0,this),ma.jsxDEV("span",{children:W.name},void 0,!1,void 0,this),ma.jsxDEV("span",{className:"text-[var(--color-text-muted)] text-sm",children:["(",W.keyHint,")"]},void 0,!0,void 0,this)]},W.id,!0,void 0,this))},void 0,!1,void 0,this),ma.jsxDEV("div",{className:"flex gap-3",children:[ma.jsxDEV("button",{onClick:Z,className:"flex-1 border border-[var(--color-border-light)] hover:border-[var(--color-accent)] px-4 py-3 rounded font-medium transition",children:"Add More"},void 0,!1,void 0,this),ma.jsxDEV("button",{onClick:Q,className:"flex-1 bg-[var(--color-accent)] hover:bg-[var(--color-accent-hover)] text-black px-4 py-3 rounded font-medium transition",children:"Start Using apteva"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var s9=_a(so(),1);var co=_a(bo(),1),iX=[{key:"memory",icon:w0,label:"Memory"},{key:"tasks",icon:Tt,label:"Tasks"},{key:"files",icon:Y0,label:"Files"},{key:"vision",icon:z0,label:"Vision"},{key:"operator",icon:$0,label:"Operator"},{key:"mcp",icon:qm,label:"MCP"},{key:"realtime",icon:J0,label:"Realtime"},{key:"agents",icon:X0,label:"Multi-Agent"}],Lb=s9.default.memo(function({agent:Z,selected:Q,onSelect:W,onToggle:L,showProject:n}){let H=iX.filter((R)=>Z.features?.[R.key]),G=Z.mcpServerDetails||[],N=Z.skillDetails||[],{isActive:C,label:h}=nb(Z.id),{projects:P}=cp(),{isDev:O}=Mp(),T=Z.projectId?P.find((R)=>R.id===Z.projectId):null,I=Z.subscriptions||[];return co.jsxDEV("div",{onClick:W,className:`bg-[var(--color-surface)] card p-5 transition cursor-pointer flex flex-col h-full ${Q?"!border-[var(--color-accent)]":"hover:border-[var(--color-border-light)]"}`,children:[co.jsxDEV("div",{className:"flex items-start justify-between mb-3",children:[co.jsxDEV("div",{children:[co.jsxDEV("h3",{className:"font-semibold text-lg",children:Z.name},void 0,!1,void 0,this),O&&co.jsxDEV("p",{className:"text-sm text-[var(--color-text-muted)]",children:[Z.provider," / ",Z.model,Z.port&&co.jsxDEV("span",{className:"text-[var(--color-text-faint)]",children:[" · :",Z.port]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),n&&T&&co.jsxDEV("p",{className:"text-sm text-[var(--color-text-muted)] flex items-center gap-1.5 mt-1",children:[co.jsxDEV("span",{className:"w-2 h-2 rounded-full",style:{backgroundColor:T.color}},void 0,!1,void 0,this),T.name]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),co.jsxDEV(bX,{status:Z.status,isActive:C&&Z.status==="running",activityLabel:h},void 0,!1,void 0,this)]},void 0,!0,void 0,this),O&&H.length>0&&co.jsxDEV("div",{className:"flex flex-wrap gap-1.5 mb-3",children:H.map(({key:R,icon:s,label:ca})=>co.jsxDEV("span",{className:"inline-flex items-center gap-1 px-2 py-0.5 bg-[var(--color-accent-10)] text-[var(--color-accent-70)] text-xs",style:{borderRadius:"var(--radius-badge)"},title:ca,children:[co.jsxDEV(s,{className:"w-3 h-3"},void 0,!1,void 0,this),ca]},R,!0,void 0,this))},void 0,!1,void 0,this),O&&G.length>0&&co.jsxDEV("div",{className:"flex flex-wrap gap-1.5 mb-3",children:G.map((R)=>{let s=R.type==="http"&&R.url||R.status==="running";return co.jsxDEV("span",{className:`inline-flex items-center gap-1 px-2 py-0.5 rounded text-xs ${s?"bg-green-500/10 text-green-400":"bg-[var(--color-surface-raised)] text-[var(--color-text-muted)]"}`,title:`MCP: ${R.name} (${s?"available":R.status})`,children:[co.jsxDEV(qm,{className:"w-3 h-3"},void 0,!1,void 0,this),R.name]},R.id,!0,void 0,this)})},void 0,!1,void 0,this),O&&N.length>0&&co.jsxDEV("div",{className:"flex flex-wrap gap-1.5 mb-3",children:N.map((R)=>co.jsxDEV("span",{className:`inline-flex items-center gap-1 px-2 py-0.5 rounded text-xs ${R.enabled?"bg-purple-500/10 text-purple-400":"bg-[var(--color-surface-raised)] text-[var(--color-text-muted)]"}`,title:`Skill: ${R.name} v${R.version}`,children:[co.jsxDEV(Kb,{className:"w-3 h-3"},void 0,!1,void 0,this),R.name]},R.id,!0,void 0,this))},void 0,!1,void 0,this),O&&I.length>0&&co.jsxDEV("div",{className:"flex flex-wrap gap-1.5 mb-3",children:I.map((R)=>co.jsxDEV("span",{className:`inline-flex items-center gap-1 px-2 py-0.5 rounded text-xs ${R.enabled?"bg-cyan-500/10 text-cyan-400":"bg-[var(--color-surface-raised)] text-[var(--color-text-muted)]"}`,title:`Trigger: ${R.trigger_slug.replace(/_/g," ")}`,children:[co.jsxDEV(Hb,{className:"w-3 h-3"},void 0,!1,void 0,this),R.trigger_slug.replace(/_/g," ")]},R.id,!0,void 0,this))},void 0,!1,void 0,this),co.jsxDEV("p",{className:"text-sm text-[var(--color-text-muted)] line-clamp-2 mb-4 flex-1",children:Z.systemPrompt},void 0,!1,void 0,this),co.jsxDEV("button",{onClick:L,disabled:Z.status==="starting"||Z.status==="stopping",className:`w-full px-3 py-1.5 btn text-sm font-medium transition mt-auto ${Z.status==="starting"||Z.status==="stopping"?"bg-[var(--color-surface-raised)] text-[var(--color-text-muted)] cursor-wait":Z.status==="running"?"bg-red-500/15 text-red-500 hover:bg-red-500/25 border border-red-500/20":"bg-[#3b82f6]/20 text-[#3b82f6] hover:bg-[#3b82f6]/30"}`,children:Z.status==="starting"?"Starting...":Z.status==="stopping"?"Stopping...":Z.status==="running"?"Stop":"Start"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});function bX({status:f,isActive:Z,activityLabel:Q}){if(f==="running"&&Z&&Q)return co.jsxDEV("span",{className:"px-2 py-1 text-xs font-medium bg-green-500/20 text-green-400 animate-pulse",style:{borderRadius:"var(--radius-badge)"},children:Q},void 0,!1,void 0,this);return co.jsxDEV("span",{className:`px-2 py-1 text-xs font-medium ${f==="starting"||f==="stopping"?"bg-yellow-500/20 text-yellow-400 animate-pulse":f==="running"?"bg-[#3b82f6]/20 text-[#3b82f6]":"bg-[var(--color-surface-raised)] text-[var(--color-text-muted)]"}`,style:{borderRadius:"var(--radius-badge)"},children:f},void 0,!1,void 0,this)}var m5=_a(so(),1);var E=_a(bo(),1),cX=[{key:"memory",label:"Memory",description:"Persistent recall",icon:w0},{key:"tasks",label:"Tasks",description:"Schedule and execute tasks",icon:Tt},{key:"files",label:"Files",description:"File storage and management",icon:Y0},{key:"vision",label:"Vision",description:"Process images and PDFs",icon:z0},{key:"operator",label:"Operator",description:"Browser automation",icon:$0},{key:"mcp",label:"MCP",description:"External tools/services",icon:qm},{key:"realtime",label:"Realtime",description:"Voice conversations",icon:J0},{key:"agents",label:"Multi-Agent",description:"Communicate with peer agents",icon:X0}];function Nb({form:f,providers:Z,configuredProviders:Q,onFormChange:W,onProviderChange:L,onCreate:n,onClose:H,onGoToSettings:G}){let{projects:N,currentProjectId:C}=cp(),{authFetch:h}=wo(),P=Z.find((S)=>S.id===f.provider),[O,T]=m5.default.useState([]),[I,R]=m5.default.useState(!1);m5.default.useEffect(()=>{if(f.provider==="ollama")R(!0),h("/api/providers/ollama/models").then((S)=>S.json()).then((S)=>{if(S.models&&S.models.length>0){if(T(S.models.map((da)=>({value:da.value,label:da.label||da.value}))),!f.model&&S.models.length>0)W({...f,model:S.models[0].value})}}).catch(()=>T([])).finally(()=>R(!1))},[f.provider]);let s=Q.filter((S)=>S.type==="llm").map((S)=>({value:S.id,label:S.name})),ca=f.provider==="ollama"&&O.length>0?O:P?.models.map((S)=>({value:S.value,label:S.label,recommended:S.recommended}))||[],ra=N.map((S)=>({value:S.id,label:S.name}));m5.default.useEffect(()=>{if(f.projectId===void 0&&C&&C!=="unassigned")W({...f,projectId:C})},[C]);let $a=(S)=>{if(S==="agents")if(typeof f.features.agents==="boolean"?f.features.agents:f.features.agents?.enabled??!1)W({...f,features:{...f.features,agents:!1}});else W({...f,features:{...f.features,agents:{enabled:!0,group:f.projectId||void 0}}});else if(S==="realtime")if(Zm(f.features))W({...f,features:{...f.features,realtime:!1}});else W({...f,features:{...f.features,realtime:{enabled:!0}}});else W({...f,features:{...f.features,[S]:!f.features[S]}})},va=()=>{let S=f.features.agents;if(typeof S==="boolean")return S;return S?.enabled??!1};return E.jsxDEV(N3,{children:[E.jsxDEV("h2",{className:"text-xl font-semibold mb-4",children:"Create New Agent"},void 0,!1,void 0,this),s.length===0?E.jsxDEV(lX,{onGoToSettings:G},void 0,!1,void 0,this):E.jsxDEV(E.Fragment,{children:[E.jsxDEV("div",{className:"space-y-4",children:[E.jsxDEV(Zp,{label:"Name",children:E.jsxDEV("input",{type:"text",value:f.name,onChange:(S)=>W({...f,name:S.target.value}),className:"w-full bg-[var(--color-bg)] border border-[var(--color-border-light)] rounded px-3 py-2 focus:outline-none focus:border-[var(--color-accent)] text-[var(--color-text)]",placeholder:"My Agent"},void 0,!1,void 0,this)},void 0,!1,void 0,this),N.length>0&&E.jsxDEV(Zp,{label:"Project",children:E.jsxDEV(_o,{value:f.projectId||"",options:ra,onChange:(S)=>W({...f,projectId:S||null}),placeholder:"Select project..."},void 0,!1,void 0,this)},void 0,!1,void 0,this),E.jsxDEV(Zp,{label:"Provider",children:E.jsxDEV(_o,{value:f.provider,options:s,onChange:L,placeholder:"Select provider..."},void 0,!1,void 0,this)},void 0,!1,void 0,this),E.jsxDEV(Zp,{label:"Model",children:I?E.jsxDEV("div",{className:"text-sm text-[var(--color-text-muted)] py-2",children:"Loading Ollama models..."},void 0,!1,void 0,this):f.provider==="ollama"&&ca.length===0?E.jsxDEV("div",{className:"text-sm text-yellow-400/80 py-2",children:["No models found. Run ",E.jsxDEV("code",{className:"bg-[var(--color-surface-raised)] px-1 rounded",children:"ollama pull llama3.3"},void 0,!1,void 0,this)," to download a model."]},void 0,!0,void 0,this):E.jsxDEV(_o,{value:f.model,options:ca,onChange:(S)=>W({...f,model:S}),placeholder:"Select model..."},void 0,!1,void 0,this)},void 0,!1,void 0,this),E.jsxDEV(Zp,{label:"System Prompt",children:E.jsxDEV("textarea",{value:f.systemPrompt,onChange:(S)=>W({...f,systemPrompt:S.target.value}),className:"w-full bg-[var(--color-bg)] border border-[var(--color-border-light)] rounded px-3 py-2 h-24 resize-none focus:outline-none focus:border-[var(--color-accent)] text-[var(--color-text)]"},void 0,!1,void 0,this)},void 0,!1,void 0,this),E.jsxDEV(Zp,{label:"Features",children:E.jsxDEV("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-2",children:cX.map(({key:S,label:da,description:ga,icon:V})=>{let Fa=S==="agents"?va():S==="realtime"?Zm(f.features):!!f.features[S];return E.jsxDEV("button",{type:"button",onClick:()=>$a(S),className:`flex items-center gap-3 p-3 btn border text-left transition ${Fa?"border-[var(--color-accent)] bg-[var(--color-accent-10)]":"border-[var(--color-border-light)] hover:border-[var(--color-border-light)]"}`,children:[E.jsxDEV(V,{className:`w-5 h-5 flex-shrink-0 ${Fa?"text-[var(--color-accent)]":"text-[var(--color-text-muted)]"}`},void 0,!1,void 0,this),E.jsxDEV("div",{className:"flex-1 min-w-0",children:[E.jsxDEV("div",{className:`text-sm font-medium ${Fa?"text-[var(--color-accent)]":""}`,children:da},void 0,!1,void 0,this),E.jsxDEV("div",{className:"text-xs text-[var(--color-text-muted)]",children:ga},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},S,!0,void 0,this)})},void 0,!1,void 0,this)},void 0,!1,void 0,this),Zm(f.features)&&(()=>{let S=f0(f.features),da=Z.some((q)=>q.id==="openai"&&q.hasKey),ga=Z.some((q)=>q.id==="gemini"&&q.hasKey),V=Z.filter((q)=>q.type==="voice"&&q.hasKey),Fa=V.length>0,U=S.provider||"standard",aa=(q)=>{W({...f,features:{...f.features,realtime:{...S,...q}}})},ia=V.filter((q)=>!q.voiceSubtype||q.voiceSubtype==="stt"||q.voiceSubtype==="both").map((q)=>({value:q.id,label:q.name})),k=V.filter((q)=>!q.voiceSubtype||q.voiceSubtype==="tts"||q.voiceSubtype==="both").map((q)=>({value:q.id,label:q.name}));return E.jsxDEV("div",{className:"p-3 bg-[var(--color-surface)] rounded border border-[var(--color-border-light)] space-y-3",children:[E.jsxDEV("p",{className:"text-xs text-[var(--color-text-muted)] font-medium uppercase tracking-wider",children:"Voice Configuration"},void 0,!1,void 0,this),E.jsxDEV(Zp,{label:"Voice Mode",children:E.jsxDEV("div",{className:"flex gap-2 flex-wrap",children:[da&&E.jsxDEV("button",{type:"button",onClick:()=>aa({provider:"openai",model:"gpt-realtime",voice:"alloy"}),className:`px-3 py-1.5 text-sm btn border transition ${U==="openai"?"border-[var(--color-accent)] bg-[var(--color-accent-10)] text-[var(--color-accent)]":"border-[var(--color-border-light)]"}`,children:"OpenAI Realtime"},void 0,!1,void 0,this),ga&&E.jsxDEV("button",{type:"button",onClick:()=>aa({provider:"gemini",geminiVoice:"Kore"}),className:`px-3 py-1.5 text-sm btn border transition ${U==="gemini"?"border-[var(--color-accent)] bg-[var(--color-accent-10)] text-[var(--color-accent)]":"border-[var(--color-border-light)]"}`,children:"Gemini Live"},void 0,!1,void 0,this),Fa&&E.jsxDEV("button",{type:"button",onClick:()=>aa({provider:"standard"}),className:`px-3 py-1.5 text-sm btn border transition ${U==="standard"?"border-[var(--color-accent)] bg-[var(--color-accent-10)] text-[var(--color-accent)]":"border-[var(--color-border-light)]"}`,children:"Standard (STT+LLM+TTS)"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),U==="openai"&&E.jsxDEV(E.Fragment,{children:[E.jsxDEV(Zp,{label:"Realtime Model",children:E.jsxDEV(_o,{value:S.model||"gpt-realtime",options:ep.openai.models.map((q)=>({value:q.value,label:q.label,recommended:q.recommended})),onChange:(q)=>aa({model:q}),placeholder:"Select model..."},void 0,!1,void 0,this)},void 0,!1,void 0,this),E.jsxDEV(Zp,{label:"Voice",children:E.jsxDEV(_o,{value:S.voice||"alloy",options:ep.openai.voices.map((q)=>({value:q.value,label:q.label,recommended:q.recommended})),onChange:(q)=>aa({voice:q}),placeholder:"Select voice..."},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),U==="gemini"&&E.jsxDEV(E.Fragment,{children:[E.jsxDEV(Zp,{label:"Realtime Model",children:E.jsxDEV(_o,{value:S.geminiModel||ep.gemini.models[0].value,options:ep.gemini.models.map((q)=>({value:q.value,label:q.label,recommended:q.recommended})),onChange:(q)=>aa({geminiModel:q}),placeholder:"Select model..."},void 0,!1,void 0,this)},void 0,!1,void 0,this),E.jsxDEV(Zp,{label:"Voice",children:E.jsxDEV(_o,{value:S.geminiVoice||"Kore",options:ep.gemini.voices.map((q)=>({value:q.value,label:q.label,recommended:q.recommended})),onChange:(q)=>aa({geminiVoice:q}),placeholder:"Select voice..."},void 0,!1,void 0,this)},void 0,!1,void 0,this),E.jsxDEV("div",{className:"flex items-center gap-2",children:[E.jsxDEV("button",{type:"button",onClick:()=>aa({googleSearch:!S.googleSearch}),className:`flex items-center gap-2 px-3 py-1.5 text-sm btn border transition ${S.googleSearch?"border-[var(--color-accent)] bg-[var(--color-accent-10)] text-[var(--color-accent)]":"border-[var(--color-border-light)]"}`,children:[E.jsxDEV("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:E.jsxDEV("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"},void 0,!1,void 0,this)},void 0,!1,void 0,this),"Google Search"]},void 0,!0,void 0,this),E.jsxDEV("span",{className:"text-xs text-[var(--color-text-faint)]",children:"Enable search grounding"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),U==="standard"&&E.jsxDEV(E.Fragment,{children:[ia.length>0&&E.jsxDEV(Zp,{label:"STT Provider",children:E.jsxDEV(_o,{value:S.sttProvider||(ia[0]?.value??""),options:ia,onChange:(q)=>aa({sttProvider:q}),placeholder:"Select STT provider..."},void 0,!1,void 0,this)},void 0,!1,void 0,this),k.length>0&&E.jsxDEV(Zp,{label:"TTS Provider",children:E.jsxDEV(_o,{value:S.ttsProvider||(k[0]?.value??""),options:k,onChange:(q)=>aa({ttsProvider:q}),placeholder:"Select TTS provider..."},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)})(),f.provider==="anthropic"&&E.jsxDEV(Zp,{label:"Agent Built-in Tools",children:[E.jsxDEV("div",{className:"flex flex-wrap gap-2",children:[E.jsxDEV("button",{type:"button",onClick:()=>W({...f,features:{...f.features,builtinTools:{...f.features.builtinTools,webSearch:!f.features.builtinTools?.webSearch}}}),className:`flex items-center gap-2 px-3 py-2 btn border transition ${f.features.builtinTools?.webSearch?"border-[var(--color-accent)] bg-[var(--color-accent-10)] text-[var(--color-accent)]":"border-[var(--color-border-light)] hover:border-[var(--color-border-light)] text-[var(--color-text-secondary)]"}`,children:[E.jsxDEV("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:E.jsxDEV("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"},void 0,!1,void 0,this)},void 0,!1,void 0,this),E.jsxDEV("span",{className:"text-sm",children:"Web Search"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),E.jsxDEV("button",{type:"button",onClick:()=>W({...f,features:{...f.features,builtinTools:{...f.features.builtinTools,webFetch:!f.features.builtinTools?.webFetch}}}),className:`flex items-center gap-2 px-3 py-2 btn border transition ${f.features.builtinTools?.webFetch?"border-[var(--color-accent)] bg-[var(--color-accent-10)] text-[var(--color-accent)]":"border-[var(--color-border-light)] hover:border-[var(--color-border-light)] text-[var(--color-text-secondary)]"}`,children:[E.jsxDEV("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:E.jsxDEV("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 12a9 9 0 01-9 9m9-9a9 9 0 00-9-9m9 9H3m9 9a9 9 0 01-9-9m9 9c1.657 0 3-4.03 3-9s-1.343-9-3-9m0 18c-1.657 0-3-4.03-3-9s1.343-9 3-9m-9 9a9 9 0 019-9"},void 0,!1,void 0,this)},void 0,!1,void 0,this),E.jsxDEV("span",{className:"text-sm",children:"Web Fetch"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),E.jsxDEV("p",{className:"text-xs text-[var(--color-text-faint)] mt-2",children:"Provider-native tools for real-time web access"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),E.jsxDEV("div",{className:"flex gap-3 mt-6",children:[E.jsxDEV("button",{onClick:H,className:"flex-1 border border-[var(--color-border-light)] hover:border-[var(--color-accent)] hover:text-[var(--color-accent)] px-4 py-2 btn font-medium transition",children:"Cancel"},void 0,!1,void 0,this),E.jsxDEV("button",{onClick:n,disabled:!f.name,className:"flex-1 bg-[var(--color-accent)] hover:bg-[var(--color-accent-hover)] disabled:opacity-50 text-black px-4 py-2 btn font-medium transition",children:"Create"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function Zp({label:f,children:Z}){return E.jsxDEV("div",{children:[E.jsxDEV("label",{className:"block text-sm text-[var(--color-text-muted)] mb-1",children:f},void 0,!1,void 0,this),Z]},void 0,!0,void 0,this)}function lX({onGoToSettings:f}){return E.jsxDEV("div",{className:"text-center py-6",children:[E.jsxDEV("p",{className:"text-[var(--color-text-muted)] mb-4",children:"No API keys configured. Add a provider key first."},void 0,!1,void 0,this),E.jsxDEV("button",{onClick:f,className:"bg-[var(--color-accent)] hover:bg-[var(--color-accent-hover)] text-black px-4 py-2 rounded font-medium transition",children:"Go to Settings"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var pa=_a(so(),1);var c=_a(bo(),1),fX=[{key:"memory",label:"Memory",description:"Persistent recall",icon:w0},{key:"tasks",label:"Tasks",description:"Schedule and execute tasks",icon:Tt},{key:"files",label:"Files",description:"File storage and management",icon:Y0},{key:"vision",label:"Vision",description:"Process images and PDFs",icon:z0},{key:"operator",label:"Operator",description:"Browser automation",icon:$0},{key:"mcp",label:"MCP",description:"External tools/services",icon:qm},{key:"realtime",label:"Realtime",description:"Voice conversations",icon:J0},{key:"agents",label:"Multi-Agent",description:"Communicate with peer agents",icon:X0}];function Rb({agent:f,providers:Z,onClose:Q,onStartAgent:W,onUpdateAgent:L,onDeleteAgent:n}){let[H,G]=pa.useState("chat"),{isDev:N}=Mp();return c.jsxDEV("div",{className:"w-full h-full flex flex-col overflow-hidden bg-[var(--color-bg)] border-l border-[var(--color-border)]",children:[c.jsxDEV("div",{className:"border-b border-[var(--color-border)] flex items-center",children:[c.jsxDEV("div",{className:"flex-1 overflow-x-auto scrollbar-hide px-2 md:px-4",children:c.jsxDEV("div",{className:"flex gap-1",children:[c.jsxDEV(Z0,{active:H==="chat",onClick:()=>G("chat"),children:"Chat"},void 0,!1,void 0,this),c.jsxDEV(Z0,{active:H==="threads",onClick:()=>G("threads"),children:"Threads"},void 0,!1,void 0,this),c.jsxDEV(Z0,{active:H==="tasks",onClick:()=>G("tasks"),children:"Tasks"},void 0,!1,void 0,this),c.jsxDEV(Z0,{active:H==="memory",onClick:()=>G("memory"),children:"Memory"},void 0,!1,void 0,this),c.jsxDEV(Z0,{active:H==="files",onClick:()=>G("files"),children:"Files"},void 0,!1,void 0,this),N&&c.jsxDEV(Z0,{active:H==="settings",onClick:()=>G("settings"),children:"Settings"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),c.jsxDEV("button",{onClick:Q,className:"text-[var(--color-text-muted)] hover:text-[var(--color-text)] transition p-2 flex-shrink-0 mr-2",children:c.jsxDEV(Gm,{},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),c.jsxDEV("div",{className:"flex-1 min-h-0 flex flex-col overflow-hidden",children:[H==="chat"&&c.jsxDEV(wX,{agent:f,onStartAgent:W},void 0,!1,void 0,this),H==="threads"&&c.jsxDEV(zX,{agent:f},void 0,!1,void 0,this),H==="tasks"&&c.jsxDEV($X,{agent:f},void 0,!1,void 0,this),H==="memory"&&c.jsxDEV(YX,{agent:f},void 0,!1,void 0,this),H==="files"&&c.jsxDEV(XX,{agent:f},void 0,!1,void 0,this),H==="settings"&&c.jsxDEV(ZX,{agent:f,providers:Z,onUpdateAgent:L,onDeleteAgent:n},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function Z0({active:f,onClick:Z,children:Q}){return c.jsxDEV("button",{onClick:Z,className:`px-4 py-3 text-sm font-medium border-b-2 transition ${f?"border-[var(--color-accent)] text-[var(--color-text)]":"border-transparent text-[var(--color-text-muted)] hover:text-[var(--color-text-secondary)]"}`,children:Q},void 0,!1,void 0,this)}function wX({agent:f,onStartAgent:Z}){let{theme:Q}=av(),{accessToken:W}=wo();if(f.status==="running"&&f.port)return c.jsxDEV(er,{agentId:"default",apiUrl:`/api/agents/${f.id}`,apiKey:W||void 0,placeholder:"Message this agent...",context:f.systemPrompt,variant:"terminal",theme:Q.id,headerTitle:f.name,enableVoice:Zm(f.features),voiceProvider:f0(f.features).ttsProvider},void 0,!1,void 0,this);return c.jsxDEV("div",{className:"flex-1 flex items-center justify-center text-[var(--color-text-muted)]",children:c.jsxDEV("div",{className:"text-center",children:[c.jsxDEV("p",{className:"text-lg mb-2",children:"Agent is not running"},void 0,!1,void 0,this),c.jsxDEV("button",{onClick:Z,className:"bg-[#3b82f6]/20 text-[#3b82f6] hover:bg-[#3b82f6]/30 px-4 py-2 rounded font-medium transition",children:"Start Agent"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}function zX({agent:f}){let{theme:Z}=av(),[Q,W]=pa.useState([]),[L,n]=pa.useState(!0),[H,G]=pa.useState(null),[N,C]=pa.useState(null),[h,P]=pa.useState([]),[O,T]=pa.useState(!1),{confirm:I,ConfirmDialog:R}=v5();pa.useEffect(()=>{W([]),C(null),G(null),n(!0)},[f.id]),pa.useEffect(()=>{if(f.status!=="running"){n(!1);return}(async()=>{try{let $a=await fetch(`/api/agents/${f.id}/threads`);if(!$a.ok)throw Error("Failed to fetch threads");let va=await $a.json();W(va.threads||[]),G(null)}catch($a){G($a instanceof Error?$a.message:"Failed to load threads")}finally{n(!1)}})()},[f.id,f.status]);let s=async(ra)=>{T(!0),C(ra);try{let $a=await fetch(`/api/agents/${f.id}/threads/${ra}/messages`);if($a.ok){let va=await $a.json();P(e9(va.messages||[]))}else P([])}catch{P([])}T(!1)},ca=async(ra,$a)=>{if($a.stopPropagation(),!await I("Delete this thread?",{confirmText:"Delete",title:"Delete Thread"}))return;try{if(await fetch(`/api/agents/${f.id}/threads/${ra}`,{method:"DELETE"}),W((S)=>S.filter((da)=>da.id!==ra)),N===ra)C(null)}catch{}};if(f.status!=="running")return c.jsxDEV("div",{className:"flex-1 flex items-center justify-center text-[var(--color-text-muted)]",children:c.jsxDEV("p",{children:"Start the agent to view threads"},void 0,!1,void 0,this)},void 0,!1,void 0,this);if(L)return c.jsxDEV("div",{className:"flex-1 flex items-center justify-center text-[var(--color-text-muted)]",children:c.jsxDEV("p",{children:"Loading threads..."},void 0,!1,void 0,this)},void 0,!1,void 0,this);if(H)return c.jsxDEV("div",{className:"flex-1 flex items-center justify-center text-red-400",children:c.jsxDEV("p",{children:H},void 0,!1,void 0,this)},void 0,!1,void 0,this);if(N)return c.jsxDEV(c.Fragment,{children:[R,c.jsxDEV("div",{className:"flex-1 flex flex-col overflow-hidden",children:O?c.jsxDEV("div",{className:"flex-1 flex items-center justify-center text-[var(--color-text-muted)]",children:"Loading messages..."},void 0,!1,void 0,this):c.jsxDEV(er,{agentId:"default",apiUrl:`/api/agents/${f.id}`,threadId:N,initialMessages:h,placeholder:"Continue this conversation...",context:f.systemPrompt,variant:"terminal",theme:Z.id,showHeader:!0,onHeaderBack:()=>{C(null),P([])}},N,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this);return c.jsxDEV(c.Fragment,{children:[R,c.jsxDEV("div",{className:"flex-1 overflow-auto",children:Q.length===0?c.jsxDEV("div",{className:"flex items-center justify-center h-full text-[var(--color-text-muted)]",children:c.jsxDEV("p",{children:"No conversation threads yet"},void 0,!1,void 0,this)},void 0,!1,void 0,this):c.jsxDEV("div",{className:"divide-y divide-[var(--color-border)]",children:Q.map((ra)=>c.jsxDEV("div",{onClick:()=>s(ra.id),className:"p-4 cursor-pointer hover:bg-[var(--color-surface)] transition flex items-center justify-between",children:[c.jsxDEV("div",{className:"flex-1 min-w-0",children:[c.jsxDEV("p",{className:"text-sm font-medium truncate",children:ra.title||`Thread ${ra.id.slice(0,8)}`},void 0,!1,void 0,this),c.jsxDEV("p",{className:"text-xs text-[var(--color-text-muted)] mt-1",children:[new Date(ra.updated_at||ra.created_at).toLocaleString(),ra.message_count!==void 0&&` • ${ra.message_count} messages`]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),c.jsxDEV("button",{onClick:($a)=>ca(ra.id,$a),className:"text-[var(--color-text-muted)] hover:text-red-400 text-lg ml-4",children:"×"},void 0,!1,void 0,this)]},ra.id,!0,void 0,this))},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function $X({agent:f}){let{authFetch:Z}=wo(),[Q,W]=pa.useState([]),[L,n]=pa.useState(!0),[H,G]=pa.useState(null),[N,C]=pa.useState("all"),[h,P]=pa.useState(null),[O,T]=pa.useState(!1),[I,R]=pa.useState(!1),[s,ca]=pa.useState(!1),[ra,$a]=pa.useState(!1),[va,S]=pa.useState(!1),[da,ga]=pa.useState(!1),[V,Fa]=pa.useState({title:"",description:"",type:"once",priority:5,execute_at:"",recurrence:""}),{confirm:U,ConfirmDialog:aa}=v5(),{events:ia}=Ob({agent_id:f.id,category:"task"});pa.useEffect(()=>{W([]),G(null),n(!0),P(null)},[f.id]);let k=async()=>{if(f.status!=="running"){n(!1);return}try{let x=await fetch(`/api/agents/${f.id}/tasks?status=${N}`);if(!x.ok)throw Error("Failed to fetch tasks");let Ba=await x.json();W(Ba.tasks||[]),G(null)}catch(x){G(x instanceof Error?x.message:"Failed to load tasks")}finally{n(!1)}},q=async(x)=>{P(x),T(!0);try{let Ba=await Z(`/api/tasks/${x.agentId||f.id}/${x.id}`);if(Ba.ok){let oo=await Ba.json();if(oo.task)P({...oo.task,agentId:x.agentId||f.id,agentName:x.agentName||f.name})}}catch(Ba){console.error("Failed to fetch task details:",Ba)}finally{T(!1)}},F=async()=>{if(!h||s)return;ca(!0);try{await Z(`/api/tasks/${f.id}/${h.id}/execute`,{method:"POST"}),P(null),k()}catch(x){console.error("Failed to execute task:",x)}finally{ca(!1)}},oa=async()=>{if(!h||ra)return;if(!await U(`Are you sure you want to delete "${h.title}"?`,{title:"Delete Task",confirmText:"Delete",confirmVariant:"danger"}))return;$a(!0);try{await Z(`/api/tasks/${f.id}/${h.id}`,{method:"DELETE"}),P(null),k()}catch(Ba){console.error("Failed to delete task:",Ba)}finally{$a(!1)}},ta=async(x)=>{try{let Ba={...x};if(x.execute_at)Ba.execute_at=new Date(x.execute_at).toISOString();if((await Z(`/api/tasks/${f.id}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(Ba)})).ok)R(!1),k()}catch(Ba){console.error("Failed to create task:",Ba)}},la=(x)=>{Fa({title:x.title,description:x.description||"",type:x.type,priority:x.priority,execute_at:x.execute_at?new Date(x.execute_at).toISOString().slice(0,16):"",recurrence:x.recurrence||""}),S(!0)},Ta=async()=>{if(!h||da)return;ga(!0);try{let x={title:V.title.trim(),description:V.description.trim()||void 0,type:V.type,priority:V.priority};if(V.type==="once"&&V.execute_at)x.execute_at=new Date(V.execute_at).toISOString();if(V.type==="recurring"&&V.recurrence.trim())x.recurrence=V.recurrence.trim();if((await Z(`/api/tasks/${f.id}/${h.id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(x)})).ok)S(!1),P(null),k()}catch(x){console.error("Failed to update task:",x)}finally{ga(!1)}};pa.useEffect(()=>{n(!0),k()},[f.id,f.status,N,ia.length]);let Vo={pending:"bg-yellow-500/20 text-yellow-400",running:"bg-blue-500/20 text-blue-400",completed:"bg-green-500/20 text-green-400",failed:"bg-red-500/20 text-red-400",cancelled:"bg-gray-500/20 text-gray-400"};if(f.status!=="running")return c.jsxDEV("div",{className:"flex-1 flex items-center justify-center text-[var(--color-text-muted)]",children:c.jsxDEV("p",{children:"Start the agent to view tasks"},void 0,!1,void 0,this)},void 0,!1,void 0,this);if(!f.features?.tasks)return c.jsxDEV("div",{className:"flex-1 flex items-center justify-center text-[var(--color-text-muted)]",children:c.jsxDEV("div",{className:"text-center",children:[c.jsxDEV("p",{className:"mb-2",children:"Tasks feature is not enabled"},void 0,!1,void 0,this),c.jsxDEV("p",{className:"text-sm",children:"Enable it in Settings to schedule tasks"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this);if(L)return c.jsxDEV("div",{className:"flex-1 flex items-center justify-center text-[var(--color-text-muted)]",children:c.jsxDEV("p",{children:"Loading tasks..."},void 0,!1,void 0,this)},void 0,!1,void 0,this);if(H)return c.jsxDEV("div",{className:"flex-1 flex items-center justify-center text-red-400",children:c.jsxDEV("p",{children:H},void 0,!1,void 0,this)},void 0,!1,void 0,this);let Gp=[{value:"all",label:"All"},{value:"pending",label:"Pending"},{value:"running",label:"Running"},{value:"completed",label:"Completed"},{value:"failed",label:"Failed"}];if(h)return c.jsxDEV("div",{className:"flex-1 flex flex-col overflow-hidden",children:[aa,c.jsxDEV("div",{className:"px-4 pt-3 pb-2 border-b border-[var(--color-border)] shrink-0 flex items-center justify-between",children:[c.jsxDEV("button",{onClick:()=>{P(null),S(!1)},className:"text-sm text-[var(--color-text-muted)] hover:text-[var(--color-text)] transition flex items-center gap-1",children:[c.jsxDEV("span",{children:"←"},void 0,!1,void 0,this)," ",va?"Cancel":"Back to tasks"]},void 0,!0,void 0,this),c.jsxDEV("div",{className:"flex items-center gap-2",children:va?c.jsxDEV(c.Fragment,{children:[c.jsxDEV("button",{onClick:()=>S(!1),className:"text-[var(--color-text-muted)] hover:text-[var(--color-text)] text-sm transition",children:"Cancel"},void 0,!1,void 0,this),c.jsxDEV("button",{onClick:Ta,disabled:da||!V.title.trim(),className:"px-3 py-1 rounded text-sm bg-[var(--color-accent)] text-black hover:opacity-90 transition disabled:opacity-50",children:da?"Saving...":"Save"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):c.jsxDEV(c.Fragment,{children:[(h.status==="pending"||h.status==="completed"||h.status==="failed")&&c.jsxDEV("button",{onClick:()=>la(h),title:"Edit task",className:"text-[var(--color-text-muted)] hover:text-[var(--color-accent)] transition",children:c.jsxDEV("svg",{className:"w-4.5 h-4.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c.jsxDEV("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z"},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),(h.status==="pending"||h.status==="completed")&&c.jsxDEV("button",{onClick:F,disabled:s,title:"Execute now",className:"text-[var(--color-accent)] hover:opacity-80 transition disabled:opacity-50",children:c.jsxDEV("svg",{className:"w-4.5 h-4.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:[c.jsxDEV("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M14.752 11.168l-3.197-2.132A1 1 0 0010 9.87v4.263a1 1 0 001.555.832l3.197-2.132a1 1 0 000-1.664z"},void 0,!1,void 0,this),c.jsxDEV("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 12a9 9 0 11-18 0 9 9 0 0118 0z"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),c.jsxDEV("button",{onClick:oa,disabled:ra,title:"Delete task",className:"text-red-400 hover:text-red-300 transition disabled:opacity-50",children:c.jsxDEV("svg",{className:"w-4.5 h-4.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c.jsxDEV("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),c.jsxDEV("div",{className:"flex-1 overflow-auto p-4 space-y-4",children:(()=>{return c.jsxDEV(c.Fragment,{children:[c.jsxDEV("div",{children:c.jsxDEV("div",{className:"flex items-start justify-between gap-2 mb-1",children:[va?c.jsxDEV("input",{type:"text",value:V.title,onChange:(Ba)=>Fa({...V,title:Ba.target.value}),className:"w-full bg-[var(--color-bg)] border border-[var(--color-border-light)] rounded px-2 py-1.5 text-sm focus:outline-none focus:border-[var(--color-accent)] text-[var(--color-text)] text-lg font-medium",placeholder:"Task title"},void 0,!1,void 0,this):c.jsxDEV("h3",{className:"text-lg font-medium",children:h.title},void 0,!1,void 0,this),!va&&c.jsxDEV("span",{className:`px-2 py-1 rounded text-xs font-medium flex-shrink-0 ${Vo[h.status]}`,children:h.status},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),va?c.jsxDEV("div",{children:[c.jsxDEV("h4",{className:"text-xs text-[var(--color-text-muted)] uppercase tracking-wider mb-1",children:"Description"},void 0,!1,void 0,this),c.jsxDEV("textarea",{value:V.description,onChange:(Ba)=>Fa({...V,description:Ba.target.value}),className:"w-full bg-[var(--color-bg)] border border-[var(--color-border-light)] rounded px-2 py-1.5 text-sm focus:outline-none focus:border-[var(--color-accent)] text-[var(--color-text)] resize-none",rows:3,placeholder:"Task description..."},void 0,!1,void 0,this)]},void 0,!0,void 0,this):h.description?c.jsxDEV("div",{children:[c.jsxDEV("h4",{className:"text-xs text-[var(--color-text-muted)] uppercase tracking-wider mb-1",children:"Description"},void 0,!1,void 0,this),c.jsxDEV("p",{className:"text-sm text-[var(--color-text-secondary)] whitespace-pre-wrap",children:h.description},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,va?c.jsxDEV("div",{className:"grid grid-cols-2 gap-3",children:[c.jsxDEV("div",{children:[c.jsxDEV("label",{className:"text-xs text-[var(--color-text-muted)] uppercase tracking-wider mb-1 block",children:"Type"},void 0,!1,void 0,this),c.jsxDEV("select",{value:V.type,onChange:(Ba)=>Fa({...V,type:Ba.target.value}),className:"w-full bg-[var(--color-bg)] border border-[var(--color-border-light)] rounded px-2 py-1.5 text-sm focus:outline-none focus:border-[var(--color-accent)] text-[var(--color-text)]",children:[c.jsxDEV("option",{value:"once",children:"One-time"},void 0,!1,void 0,this),c.jsxDEV("option",{value:"recurring",children:"Recurring"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),c.jsxDEV("div",{children:[c.jsxDEV("label",{className:"text-xs text-[var(--color-text-muted)] uppercase tracking-wider mb-1 block",children:"Priority"},void 0,!1,void 0,this),c.jsxDEV("input",{type:"number",min:1,max:10,value:V.priority,onChange:(Ba)=>Fa({...V,priority:Number(Ba.target.value)}),className:"w-full bg-[var(--color-bg)] border border-[var(--color-border-light)] rounded px-2 py-1.5 text-sm focus:outline-none focus:border-[var(--color-accent)] text-[var(--color-text)]"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this):c.jsxDEV("div",{className:"grid grid-cols-2 gap-3 text-sm",children:[c.jsxDEV("div",{children:[c.jsxDEV("span",{className:"text-[var(--color-text-muted)]",children:"Type"},void 0,!1,void 0,this),c.jsxDEV("p",{className:"capitalize",children:h.type},void 0,!1,void 0,this)]},void 0,!0,void 0,this),c.jsxDEV("div",{children:[c.jsxDEV("span",{className:"text-[var(--color-text-muted)]",children:"Priority"},void 0,!1,void 0,this),c.jsxDEV("p",{children:h.priority},void 0,!1,void 0,this)]},void 0,!0,void 0,this),h.recurrence&&c.jsxDEV("div",{children:[c.jsxDEV("span",{className:"text-[var(--color-text-muted)]",children:"Recurrence"},void 0,!1,void 0,this),c.jsxDEV("p",{children:O3(h.recurrence)},void 0,!1,void 0,this),c.jsxDEV("p",{className:"text-xs text-[var(--color-text-faint)] mt-0.5 font-mono",children:h.recurrence},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),va&&V.type==="once"&&c.jsxDEV("div",{children:[c.jsxDEV("label",{className:"text-xs text-[var(--color-text-muted)] uppercase tracking-wider mb-1 block",children:"Schedule"},void 0,!1,void 0,this),c.jsxDEV("input",{type:"datetime-local",value:V.execute_at,onChange:(Ba)=>Fa({...V,execute_at:Ba.target.value}),className:"w-full bg-[var(--color-bg)] border border-[var(--color-border-light)] rounded px-2 py-1.5 text-sm focus:outline-none focus:border-[var(--color-accent)] text-[var(--color-text)]"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),va&&V.type==="recurring"&&c.jsxDEV("div",{children:[c.jsxDEV("label",{className:"text-xs text-[var(--color-text-muted)] uppercase tracking-wider mb-1 block",children:"Cron Schedule"},void 0,!1,void 0,this),c.jsxDEV("input",{type:"text",value:V.recurrence,onChange:(Ba)=>Fa({...V,recurrence:Ba.target.value}),className:"w-full bg-[var(--color-bg)] border border-[var(--color-border-light)] rounded px-2 py-1.5 text-sm focus:outline-none focus:border-[var(--color-accent)] text-[var(--color-text)] font-mono",placeholder:"*/30 * * * *"},void 0,!1,void 0,this),c.jsxDEV("p",{className:"text-xs text-[var(--color-text-faint)] mt-1",children:"e.g. */30 * * * * = every 30 min"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),!va&&c.jsxDEV("div",{className:"space-y-2 text-sm",children:[c.jsxDEV("div",{className:"flex justify-between",children:[c.jsxDEV("span",{className:"text-[var(--color-text-muted)]",children:"Created"},void 0,!1,void 0,this),c.jsxDEV("span",{children:new Date(h.created_at).toLocaleString()},void 0,!1,void 0,this)]},void 0,!0,void 0,this),h.execute_at&&c.jsxDEV("div",{className:"flex justify-between",children:[c.jsxDEV("span",{className:"text-[var(--color-text-muted)]",children:"Scheduled"},void 0,!1,void 0,this),c.jsxDEV("span",{className:"text-[var(--color-accent)]",children:r5(h.execute_at)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),h.executed_at&&c.jsxDEV("div",{className:"flex justify-between",children:[c.jsxDEV("span",{className:"text-[var(--color-text-muted)]",children:"Started"},void 0,!1,void 0,this),c.jsxDEV("span",{children:new Date(h.executed_at).toLocaleString()},void 0,!1,void 0,this)]},void 0,!0,void 0,this),h.completed_at&&c.jsxDEV("div",{className:"flex justify-between",children:[c.jsxDEV("span",{className:"text-[var(--color-text-muted)]",children:"Completed"},void 0,!1,void 0,this),c.jsxDEV("span",{children:new Date(h.completed_at).toLocaleString()},void 0,!1,void 0,this)]},void 0,!0,void 0,this),h.next_run&&c.jsxDEV("div",{className:"flex justify-between",children:[c.jsxDEV("span",{className:"text-[var(--color-text-muted)]",children:"Next Run"},void 0,!1,void 0,this),c.jsxDEV("span",{className:"text-[var(--color-accent)]",children:r5(h.next_run)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),!va&&h.status==="failed"&&h.error&&c.jsxDEV("div",{className:"min-w-0",children:[c.jsxDEV("h4",{className:"text-xs text-red-400 uppercase tracking-wider mb-1",children:"Error"},void 0,!1,void 0,this),c.jsxDEV("div",{className:"bg-red-500/10 border border-red-500/20 rounded p-3 overflow-x-auto",children:c.jsxDEV("pre",{className:"text-sm text-red-400 whitespace-pre-wrap break-words",children:h.error},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),!va&&h.status==="completed"&&h.result&&c.jsxDEV("div",{className:"min-w-0",children:[c.jsxDEV("h4",{className:"text-xs text-green-400 uppercase tracking-wider mb-1",children:"Result"},void 0,!1,void 0,this),c.jsxDEV("div",{className:"bg-green-500/10 border border-green-500/20 rounded p-3 overflow-x-auto",children:c.jsxDEV("pre",{className:"text-sm text-green-400 whitespace-pre-wrap break-words",children:typeof h.result==="string"?h.result:JSON.stringify(h.result,null,2)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),!va&&O&&!h.trajectory&&c.jsxDEV("div",{children:[c.jsxDEV("h4",{className:"text-xs text-[var(--color-text-muted)] uppercase tracking-wider mb-2",children:"Trajectory"},void 0,!1,void 0,this),c.jsxDEV("div",{className:"text-sm text-[var(--color-text-faint)]",children:"Loading trajectory..."},void 0,!1,void 0,this)]},void 0,!0,void 0,this),!va&&h.trajectory&&h.trajectory.length>0&&c.jsxDEV("div",{children:[c.jsxDEV("h4",{className:"text-xs text-[var(--color-text-muted)] uppercase tracking-wider mb-2",children:["Trajectory (",h.trajectory.length," steps)"]},void 0,!0,void 0,this),c.jsxDEV(tz,{trajectory:h.trajectory},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)})()},void 0,!1,void 0,this)]},void 0,!0,void 0,this);return c.jsxDEV("div",{className:"flex-1 overflow-auto p-4",children:[c.jsxDEV("div",{className:"flex items-center justify-between mb-4",children:[c.jsxDEV("div",{className:"flex gap-2",children:Gp.map((x)=>c.jsxDEV("button",{onClick:()=>C(x.value),className:`px-3 py-1.5 rounded text-sm transition ${N===x.value?"bg-[var(--color-accent)] text-black":"bg-[var(--color-surface-raised)] hover:bg-[var(--color-surface-raised)]"}`,children:x.label},x.value,!1,void 0,this))},void 0,!1,void 0,this),c.jsxDEV("button",{onClick:()=>R(!I),className:"px-3 py-1.5 rounded text-sm bg-[var(--color-accent)] text-black hover:opacity-90 transition flex items-center gap-1 flex-shrink-0",children:[c.jsxDEV("svg",{className:"w-3.5 h-3.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c.jsxDEV("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 4v16m8-8H4"},void 0,!1,void 0,this)},void 0,!1,void 0,this),"New"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),I&&c.jsxDEV(JX,{onSubmit:ta,onCancel:()=>R(!1)},void 0,!1,void 0,this),Q.length===0?c.jsxDEV("div",{className:"text-center py-10",children:[c.jsxDEV(Tt,{className:"w-10 h-10 mx-auto mb-3 text-[var(--color-border-light)]"},void 0,!1,void 0,this),c.jsxDEV("p",{className:"text-[var(--color-text-muted)]",children:["No ",N==="all"?"":N+" ","tasks"]},void 0,!0,void 0,this),c.jsxDEV("p",{className:"text-sm text-[var(--color-text-faint)] mt-1",children:"Tasks will appear here when created"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):c.jsxDEV("div",{className:"space-y-3",children:Q.map((x)=>c.jsxDEV("div",{onClick:()=>q(x),className:"bg-[var(--color-surface)] card p-4 cursor-pointer hover:border-[var(--color-border-light)] transition",children:[c.jsxDEV("div",{className:"flex items-start justify-between mb-2",children:[c.jsxDEV("div",{className:"flex-1 min-w-0",children:c.jsxDEV("h3",{className:"font-medium",children:x.title||x.name},void 0,!1,void 0,this)},void 0,!1,void 0,this),c.jsxDEV("span",{className:`px-2 py-1 rounded text-xs font-medium ml-2 ${Vo[x.status]||Vo.pending}`,children:x.status},void 0,!1,void 0,this)]},void 0,!0,void 0,this),x.description&&c.jsxDEV("p",{className:"text-sm text-[var(--color-text-secondary)] mb-2 line-clamp-2",children:x.description},void 0,!1,void 0,this),c.jsxDEV("div",{className:"flex flex-wrap items-center gap-x-4 gap-y-1 text-xs text-[var(--color-text-faint)]",children:[c.jsxDEV("span",{className:"flex items-center gap-1",children:[x.type==="recurring"?c.jsxDEV(az,{className:"w-3.5 h-3.5"},void 0,!1,void 0,this):x.execute_at?c.jsxDEV(oz,{className:"w-3.5 h-3.5"},void 0,!1,void 0,this):c.jsxDEV(pz,{className:"w-3.5 h-3.5"},void 0,!1,void 0,this),x.type==="recurring"&&x.recurrence?O3(x.recurrence):x.type||"once"]},void 0,!0,void 0,this),x.priority!==void 0&&c.jsxDEV("span",{children:["Priority: ",x.priority]},void 0,!0,void 0,this),x.next_run&&c.jsxDEV("span",{className:"text-[var(--color-accent)]",children:r5(x.next_run)},void 0,!1,void 0,this),!x.next_run&&x.execute_at&&c.jsxDEV("span",{className:"text-[var(--color-accent)]",children:r5(x.execute_at)},void 0,!1,void 0,this),c.jsxDEV("span",{children:["Created: ",new Date(x.created_at).toLocaleDateString()]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),x.status==="completed"&&x.result&&c.jsxDEV("div",{className:"mt-3 bg-green-500/10 border border-green-500/20 rounded p-3",children:[c.jsxDEV("h4",{className:"text-xs text-green-400 uppercase tracking-wider mb-1",children:"Result"},void 0,!1,void 0,this),c.jsxDEV("pre",{className:"text-sm text-green-400 whitespace-pre-wrap break-words",children:typeof x.result==="string"?x.result:JSON.stringify(x.result,null,2)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),x.status==="failed"&&x.error&&c.jsxDEV("div",{className:"mt-3 bg-red-500/10 border border-red-500/20 rounded p-3",children:[c.jsxDEV("h4",{className:"text-xs text-red-400 uppercase tracking-wider mb-1",children:"Error"},void 0,!1,void 0,this),c.jsxDEV("pre",{className:"text-sm text-red-400 whitespace-pre-wrap break-words",children:x.error},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},x.id,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function JX({onSubmit:f,onCancel:Z}){let[Q,W]=pa.useState(""),[L,n]=pa.useState(""),[H,G]=pa.useState("once"),[N,C]=pa.useState(5),[h,P]=pa.useState(""),[O,T]=pa.useState("");return c.jsxDEV("div",{className:"bg-[var(--color-surface)] border border-[var(--color-accent)]/30 rounded-lg p-3 mb-4 space-y-3",children:[c.jsxDEV("input",{type:"text",value:Q,onChange:(I)=>W(I.target.value),className:"w-full bg-[var(--color-bg)] border border-[var(--color-border)] rounded px-3 py-1.5 text-sm",placeholder:"Task title...",autoFocus:!0},void 0,!1,void 0,this),c.jsxDEV("textarea",{value:L,onChange:(I)=>n(I.target.value),className:"w-full bg-[var(--color-bg)] border border-[var(--color-border)] rounded px-3 py-1.5 text-sm resize-none",rows:2,placeholder:"Description (optional)..."},void 0,!1,void 0,this),c.jsxDEV("div",{className:"grid grid-cols-2 gap-2",children:[c.jsxDEV("select",{value:H,onChange:(I)=>G(I.target.value),className:"bg-[var(--color-bg)] border border-[var(--color-border)] rounded px-2 py-1.5 text-sm",children:[c.jsxDEV("option",{value:"once",children:"One-time"},void 0,!1,void 0,this),c.jsxDEV("option",{value:"recurring",children:"Recurring"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),c.jsxDEV("input",{type:"number",min:1,max:10,value:N,onChange:(I)=>C(Number(I.target.value)),className:"bg-[var(--color-bg)] border border-[var(--color-border)] rounded px-2 py-1.5 text-sm",placeholder:"Priority"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),H==="once"&&c.jsxDEV("input",{type:"datetime-local",value:h,onChange:(I)=>P(I.target.value),className:"w-full bg-[var(--color-bg)] border border-[var(--color-border)] rounded px-3 py-1.5 text-sm"},void 0,!1,void 0,this),H==="recurring"&&c.jsxDEV("input",{type:"text",value:O,onChange:(I)=>T(I.target.value),className:"w-full bg-[var(--color-bg)] border border-[var(--color-border)] rounded px-3 py-1.5 text-sm font-mono",placeholder:"*/30 * * * * (cron)"},void 0,!1,void 0,this),c.jsxDEV("div",{className:"flex justify-end gap-2",children:[c.jsxDEV("button",{onClick:Z,className:"px-3 py-1.5 rounded text-sm bg-[var(--color-surface-raised)] hover:bg-[var(--color-border)] transition",children:"Cancel"},void 0,!1,void 0,this),c.jsxDEV("button",{onClick:()=>Q.trim()&&f({title:Q.trim(),description:L.trim(),type:H,priority:N,execute_at:h||void 0,recurrence:O||void 0}),disabled:!Q.trim(),className:"px-3 py-1.5 rounded text-sm bg-[var(--color-accent)] text-black hover:opacity-90 transition disabled:opacity-50",children:"Create"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function YX({agent:f}){let[Z,Q]=pa.useState([]),[W,L]=pa.useState(!0),[n,H]=pa.useState(null),[G,N]=pa.useState(!1),{confirm:C,ConfirmDialog:h}=v5();pa.useEffect(()=>{Q([]),H(null),L(!0)},[f.id]);let P=async()=>{if(f.status!=="running"){L(!1);return}try{let I=await fetch(`/api/agents/${f.id}/memories`);if(!I.ok)throw Error("Failed to fetch memories");let R=await I.json();Q(R.memories||[]),N(R.enabled??!1),H(null)}catch(I){H(I instanceof Error?I.message:"Failed to load memories")}finally{L(!1)}};pa.useEffect(()=>{P()},[f.id,f.status]);let O=async(I)=>{try{await fetch(`/api/agents/${f.id}/memories/${I}`,{method:"DELETE"}),Q((R)=>R.filter((s)=>s.id!==I))}catch{}},T=async()=>{if(!await C("Clear all memories?",{confirmText:"Clear",title:"Clear Memories"}))return;try{await fetch(`/api/agents/${f.id}/memories`,{method:"DELETE"}),Q([])}catch{}};if(!f.features?.memory)return c.jsxDEV("div",{className:"flex-1 flex items-center justify-center text-[var(--color-text-muted)]",children:c.jsxDEV("div",{className:"text-center",children:[c.jsxDEV("p",{className:"mb-2",children:"Memory feature is not enabled"},void 0,!1,void 0,this),c.jsxDEV("p",{className:"text-sm",children:"Enable it in Settings to persist knowledge"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this);if(f.status!=="running")return c.jsxDEV("div",{className:"flex-1 flex items-center justify-center text-[var(--color-text-muted)]",children:c.jsxDEV("p",{children:"Start the agent to view memories"},void 0,!1,void 0,this)},void 0,!1,void 0,this);if(W)return c.jsxDEV("div",{className:"flex-1 flex items-center justify-center text-[var(--color-text-muted)]",children:c.jsxDEV("p",{children:"Loading memories..."},void 0,!1,void 0,this)},void 0,!1,void 0,this);if(n)return c.jsxDEV("div",{className:"flex-1 flex items-center justify-center text-red-400",children:c.jsxDEV("p",{children:n},void 0,!1,void 0,this)},void 0,!1,void 0,this);if(!G)return c.jsxDEV("div",{className:"flex-1 flex items-center justify-center text-[var(--color-text-muted)]",children:c.jsxDEV("div",{className:"text-center",children:[c.jsxDEV("p",{className:"mb-2",children:"Memory system not initialized"},void 0,!1,void 0,this),c.jsxDEV("p",{className:"text-sm",children:"Check OPENAI_API_KEY for embeddings"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this);return c.jsxDEV(c.Fragment,{children:[h,c.jsxDEV("div",{className:"flex-1 overflow-auto p-4",children:[c.jsxDEV("div",{className:"flex items-center justify-between mb-4",children:[c.jsxDEV("h3",{className:"text-sm font-medium text-[var(--color-text-secondary)]",children:["Stored Memories (",Z.length,")"]},void 0,!0,void 0,this),Z.length>0&&c.jsxDEV("button",{onClick:T,className:"text-xs text-red-400 hover:text-red-300",children:"Clear All"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Z.length===0?c.jsxDEV("div",{className:"text-center py-10 text-[var(--color-text-muted)]",children:[c.jsxDEV("p",{children:"No memories stored yet"},void 0,!1,void 0,this),c.jsxDEV("p",{className:"text-sm mt-1",children:"The agent will remember important information from conversations"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):c.jsxDEV("div",{className:"space-y-3",children:Z.map((I)=>c.jsxDEV("div",{className:"bg-[var(--color-surface)] border border-[var(--color-border)] rounded p-3",children:[c.jsxDEV("div",{className:"flex items-start justify-between gap-2",children:[c.jsxDEV("p",{className:"text-sm text-[var(--color-text)] flex-1",children:I.content},void 0,!1,void 0,this),c.jsxDEV("button",{onClick:()=>O(I.id),className:"text-[var(--color-text-muted)] hover:text-red-400 text-sm flex-shrink-0",children:"×"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),c.jsxDEV("div",{className:"flex items-center gap-3 mt-2",children:[c.jsxDEV("span",{className:`text-xs px-2 py-0.5 rounded ${I.type==="preference"?"bg-purple-500/20 text-purple-400":I.type==="fact"?"bg-green-500/20 text-green-400":"bg-blue-500/20 text-blue-400"}`,children:I.type},void 0,!1,void 0,this),c.jsxDEV("span",{className:"text-xs text-[var(--color-text-muted)]",children:new Date(I.created_at).toLocaleString()},void 0,!1,void 0,this),I.importance&&c.jsxDEV("span",{className:"text-xs text-[var(--color-text-faint)]",children:["importance: ",I.importance.toFixed(1)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},I.id,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function XX({agent:f}){let[Z,Q]=pa.useState([]),[W,L]=pa.useState(!0),[n,H]=pa.useState(null),[G,N]=pa.useState(!1),[C,h]=pa.useState(null),[P,O]=pa.useState(!1),T=pa.default.useRef(null),{confirm:I,ConfirmDialog:R}=v5();pa.useEffect(()=>{Q([]),H(null),L(!0)},[f.id]);let s=async()=>{if(f.status!=="running"){L(!1);return}try{let U=await fetch(`/api/agents/${f.id}/files`);if(!U.ok)throw Error("Failed to fetch files");let aa=await U.json();Q(aa.files||[]),H(null)}catch(U){H(U instanceof Error?U.message:"Failed to load files")}finally{L(!1)}};pa.useEffect(()=>{s()},[f.id,f.status]);let ca=async(U)=>{if(!await I("Delete this file?",{confirmText:"Delete",title:"Delete File"}))return;try{await fetch(`/api/agents/${f.id}/files/${U}`,{method:"DELETE"}),Q((ia)=>ia.filter((k)=>k.id!==U))}catch{}},ra=(U,aa)=>{let ia=document.createElement("a");ia.href=`/api/agents/${f.id}/files/${U}/download`,ia.download=aa,ia.click()},$a=(U)=>{if(U<1024)return`${U} B`;if(U<1048576)return`${(U/1024).toFixed(1)} KB`;return`${(U/1048576).toFixed(1)} MB`},va=async(U)=>{N(!0),h(null);try{let aa=new FormData;aa.append("file",U);let ia=await fetch(`/api/agents/${f.id}/files`,{method:"POST",body:aa});if(!ia.ok){let k=await ia.json();throw Error(k.error||"Upload failed")}await s()}catch(aa){h(aa instanceof Error?aa.message:"Upload failed")}finally{N(!1)}},S=(U)=>{let aa=U.target.files?.[0];if(aa)va(aa);U.target.value=""},da=(U)=>{U.preventDefault(),O(!1);let aa=U.dataTransfer.files?.[0];if(aa)va(aa)},ga=(U)=>{U.preventDefault(),O(!0)},V=(U)=>{U.preventDefault(),O(!1)},Fa=(U)=>{if(U.startsWith("image/"))return"\uD83D\uDDBC";if(U.includes("pdf"))return"\uD83D\uDCD5";if(U.includes("json"))return"{}";if(U.includes("javascript")||U.includes("typescript"))return"⚡";if(U.startsWith("text/"))return"\uD83D\uDCC4";if(U.startsWith("audio/"))return"\uD83C\uDFB5";if(U.startsWith("video/"))return"\uD83C\uDFAC";return"\uD83D\uDCC1"};if(!f.features?.files)return c.jsxDEV("div",{className:"flex-1 flex items-center justify-center text-[var(--color-text-muted)]",children:c.jsxDEV("div",{className:"text-center",children:[c.jsxDEV("p",{className:"mb-2",children:"Files feature is not enabled"},void 0,!1,void 0,this),c.jsxDEV("p",{className:"text-sm",children:"Enable it in Settings to manage files"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this);if(f.status!=="running")return c.jsxDEV("div",{className:"flex-1 flex items-center justify-center text-[var(--color-text-muted)]",children:c.jsxDEV("p",{children:"Start the agent to view files"},void 0,!1,void 0,this)},void 0,!1,void 0,this);if(W)return c.jsxDEV("div",{className:"flex-1 flex items-center justify-center text-[var(--color-text-muted)]",children:c.jsxDEV("p",{children:"Loading files..."},void 0,!1,void 0,this)},void 0,!1,void 0,this);if(n)return c.jsxDEV("div",{className:"flex-1 flex items-center justify-center text-red-400",children:c.jsxDEV("p",{children:n},void 0,!1,void 0,this)},void 0,!1,void 0,this);return c.jsxDEV(c.Fragment,{children:[R,c.jsxDEV("div",{className:`flex-1 overflow-auto p-4 transition ${P?"bg-[var(--color-accent-5)]":""}`,onDrop:da,onDragOver:ga,onDragLeave:V,children:[c.jsxDEV("input",{ref:T,type:"file",className:"hidden",onChange:S},void 0,!1,void 0,this),c.jsxDEV("div",{className:"flex items-center justify-between mb-4",children:[c.jsxDEV("h3",{className:"text-sm font-medium text-[var(--color-text-secondary)]",children:["Agent Files (",Z.length,")"]},void 0,!0,void 0,this),c.jsxDEV("div",{className:"flex items-center gap-2",children:[c.jsxDEV("button",{onClick:()=>T.current?.click(),disabled:G,className:"text-xs bg-[var(--color-accent)] hover:bg-[var(--color-accent-hover)] disabled:opacity-50 text-black px-3 py-1 rounded font-medium transition",children:G?"Uploading...":"Upload"},void 0,!1,void 0,this),c.jsxDEV("button",{onClick:s,className:"text-xs text-[var(--color-text-muted)] hover:text-[var(--color-text-secondary)]",children:"Refresh"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),C&&c.jsxDEV("div",{className:"mb-4 text-sm bg-red-500/10 text-red-400 px-3 py-2 rounded",children:C},void 0,!1,void 0,this),P&&c.jsxDEV("div",{className:"mb-4 border-2 border-dashed border-[var(--color-accent)] rounded-lg p-8 text-center",children:c.jsxDEV("p",{className:"text-[var(--color-accent)]",children:"Drop file to upload"},void 0,!1,void 0,this)},void 0,!1,void 0,this),Z.length===0&&!P&&c.jsxDEV("div",{className:"text-center py-10 text-[var(--color-text-muted)]",children:[c.jsxDEV("p",{children:"No files stored yet"},void 0,!1,void 0,this),c.jsxDEV("p",{className:"text-sm mt-1",children:"Drop files here, click Upload, or attach files in Chat"},void 0,!1,void 0,this),f.features?.memory&&c.jsxDEV("p",{className:"text-xs mt-2 text-[var(--color-text-faint)]",children:"Files will be auto-ingested into memory"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Z.length>0&&c.jsxDEV("div",{className:"space-y-2",children:Z.map((U)=>c.jsxDEV("div",{className:"bg-[var(--color-surface)] border border-[var(--color-border)] rounded p-3 flex items-center gap-3",children:[c.jsxDEV("div",{className:"w-10 h-10 bg-[var(--color-surface-raised)] rounded flex items-center justify-center text-[var(--color-text-muted)]",children:Fa(U.mime_type)},void 0,!1,void 0,this),c.jsxDEV("div",{className:"flex-1 min-w-0",children:[c.jsxDEV("p",{className:"text-sm text-[var(--color-text)] truncate",children:U.filename},void 0,!1,void 0,this),c.jsxDEV("p",{className:"text-xs text-[var(--color-text-muted)]",children:[$a(U.size_bytes)," • ",new Date(U.created_at).toLocaleString(),U.source&&U.source!=="upload"&&` • ${U.source}`]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),c.jsxDEV("div",{className:"flex items-center gap-2",children:[c.jsxDEV("button",{onClick:()=>ra(U.id,U.filename),className:"text-xs text-[var(--color-text-muted)] hover:text-[var(--color-accent)] px-2 py-1",children:"↓"},void 0,!1,void 0,this),c.jsxDEV("button",{onClick:()=>ca(U.id),className:"text-[var(--color-text-muted)] hover:text-red-400 text-sm",children:"×"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},U.id,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function ZX({agent:f,providers:Z,onUpdateAgent:Q,onDeleteAgent:W}){let{authFetch:L,isDev:n}=wo(),[H,G]=pa.useState({name:f.name,provider:f.provider,model:f.model,systemPrompt:f.systemPrompt,features:{...f.features,builtinTools:f.features.builtinTools||{webSearch:!1,webFetch:!1}},mcpServers:[...f.mcpServers||[]],skills:[...f.skills||[]]}),[N,C]=pa.useState(!1),[h,P]=pa.useState(!1),[O,T]=pa.useState(null),[I,R]=pa.useState([]),[s,ca]=pa.useState([]),[ra,$a]=pa.useState([]),[va,S]=pa.useState(!1),[da,ga]=pa.useState(null),[V,Fa]=pa.useState(null),[U,aa]=pa.useState(!1),[ia,k]=pa.useState([]),[q,F]=pa.useState(null),[oa,ta]=pa.useState(!1);pa.useEffect(()=>{L(`/api/subscriptions?agent_id=${f.id}`).then((B)=>B.ok?B.json():{subscriptions:[]}).then((B)=>k(B.subscriptions||[])).catch(()=>{})},[f.id,L]),pa.useEffect(()=>{(async()=>{try{let La=await(await L("/api/mcp/servers")).json();R(La.servers||[])}catch(A){console.error("Failed to fetch MCP servers:",A)}})()},[L]),pa.useEffect(()=>{(async()=>{try{let A=await L(`/api/agents/${f.id}/api-key`);if(A.ok){let La=await A.json();ga(La.apiKey),Fa(La.fullKey||null)}}catch(A){}})()},[f.id,L]),pa.useEffect(()=>{(async()=>{try{let A=await L(`/api/agents/${f.id}/share-token`);if(A.ok){let La=await A.json();F(La.token||null)}}catch{}})()},[f.id,L]),pa.useEffect(()=>{(async()=>{try{let La=await(await L("/api/skills")).json();ca(La.skills||[])}catch(A){console.error("Failed to fetch skills:",A)}})()},[L]),pa.useEffect(()=>{if(H.provider==="ollama")S(!0),L("/api/providers/ollama/models").then((B)=>B.json()).then((B)=>{if(B.models&&B.models.length>0)$a(B.models.map((A)=>({value:A.value,label:A.label||A.value})))}).catch(()=>$a([])).finally(()=>S(!1));else $a([])},[H.provider,L]),pa.useEffect(()=>{G({name:f.name,provider:f.provider,model:f.model,systemPrompt:f.systemPrompt,features:{...f.features,builtinTools:f.features.builtinTools||{webSearch:!1,webFetch:!1}},mcpServers:[...f.mcpServers||[]],skills:[...f.skills||[]]}),T(null)},[f.id]);let la=Z.find((B)=>B.id===H.provider),Ta=Z.filter((B)=>B.hasKey&&B.type==="llm").map((B)=>({value:B.id,label:B.name})),Vo=H.provider==="ollama"&&ra.length>0?ra:la?.models.map((B)=>({value:B.value,label:B.label,recommended:B.recommended}))||[],Gp=(B)=>{let A=Z.find((no)=>no.id===B),La=A?.models.find((no)=>no.recommended)?.value||A?.models[0]?.value||"";G((no)=>({...no,provider:B,model:La}))},x=(B)=>{if(B==="agents")G((A)=>{if(typeof A.features.agents==="boolean"?A.features.agents:A.features.agents?.enabled??!1)return{...A,features:{...A.features,agents:!1}};else return{...A,features:{...A.features,agents:{enabled:!0,group:f.projectId||void 0}}}});else if(B==="operator")G((A)=>{if(ei(A.features).enabled)return{...A,features:{...A.features,operator:!1}};else return{...A,features:{...A.features,operator:{enabled:!0}}}});else if(B==="realtime")G((A)=>{if(Zm(A.features))return{...A,features:{...A.features,realtime:!1}};else return{...A,features:{...A.features,realtime:{enabled:!0}}}});else G((A)=>({...A,features:{...A.features,[B]:!A.features[B]}}))},Ba=()=>{let B=H.features.agents;if(typeof B==="boolean")return B;return B?.enabled??!1},oo=()=>{return ei(H.features).enabled},lr=()=>{return ei(H.features)},pv=Z.filter((B)=>B.type==="browser"&&B.hasKey),tv=(B)=>{G((A)=>{let La=ei(A.features);return{...A,features:{...A.features,operator:{...La,enabled:!0,browser_provider:B}}}})},fr=(B)=>{G((A)=>({...A,mcpServers:A.mcpServers.includes(B)?A.mcpServers.filter((La)=>La!==B):[...A.mcpServers,B]}))},$t=(B)=>{G((A)=>({...A,skills:A.skills.includes(B)?A.skills.filter((La)=>La!==B):[...A.skills,B]}))},mv=async()=>{C(!0),T(null);let B=await Q(H);if(C(!1),B.error)T({type:"error",text:B.error});else T({type:"success",text:"Settings saved"}),setTimeout(()=>T(null),2000)},g=H.name!==f.name||H.provider!==f.provider||H.model!==f.model||H.systemPrompt!==f.systemPrompt||JSON.stringify(H.features)!==JSON.stringify(f.features)||JSON.stringify(H.mcpServers.sort())!==JSON.stringify((f.mcpServers||[]).sort())||JSON.stringify(H.skills.sort())!==JSON.stringify((f.skills||[]).sort());return c.jsxDEV("div",{className:"flex-1 overflow-auto p-4",children:c.jsxDEV("div",{className:"space-y-4",children:[c.jsxDEV(eo,{label:"Name",children:c.jsxDEV("input",{type:"text",value:H.name,onChange:(B)=>G((A)=>({...A,name:B.target.value})),className:"w-full bg-[var(--color-bg)] border border-[var(--color-border-light)] rounded px-3 py-2 focus:outline-none focus:border-[var(--color-accent)] text-[var(--color-text)]"},void 0,!1,void 0,this)},void 0,!1,void 0,this),c.jsxDEV(eo,{label:"Provider",children:c.jsxDEV(_o,{value:H.provider,options:Ta,onChange:Gp},void 0,!1,void 0,this)},void 0,!1,void 0,this),c.jsxDEV(eo,{label:"Model",children:va?c.jsxDEV("div",{className:"text-sm text-[var(--color-text-muted)] py-2",children:"Loading Ollama models..."},void 0,!1,void 0,this):H.provider==="ollama"&&Vo.length===0?c.jsxDEV("div",{className:"text-sm text-yellow-400/80 py-2",children:["No models found. Run ",c.jsxDEV("code",{className:"bg-[var(--color-surface-raised)] px-1 rounded",children:"ollama pull llama3.3"},void 0,!1,void 0,this)," to download a model."]},void 0,!0,void 0,this):c.jsxDEV(_o,{value:H.model,options:Vo,onChange:(B)=>G((A)=>({...A,model:B}))},void 0,!1,void 0,this)},void 0,!1,void 0,this),c.jsxDEV(eo,{label:"System Prompt",children:c.jsxDEV("textarea",{value:H.systemPrompt,onChange:(B)=>G((A)=>({...A,systemPrompt:B.target.value})),className:"w-full bg-[var(--color-bg)] border border-[var(--color-border-light)] rounded px-3 py-2 h-24 resize-none focus:outline-none focus:border-[var(--color-accent)] text-[var(--color-text)]"},void 0,!1,void 0,this)},void 0,!1,void 0,this),c.jsxDEV(eo,{label:"Features",children:c.jsxDEV("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-2",children:fX.map(({key:B,label:A,description:La,icon:no})=>{let Ia=B==="agents"?Ba():B==="operator"?oo():B==="realtime"?Zm(H.features):!!H.features[B];return c.jsxDEV("button",{type:"button",onClick:()=>x(B),className:`flex items-center gap-3 p-3 rounded border text-left transition ${Ia?"border-[var(--color-accent)] bg-[var(--color-accent-10)]":"border-[var(--color-border-light)] hover:border-[var(--color-border-light)]"}`,children:[c.jsxDEV(no,{className:`w-5 h-5 flex-shrink-0 ${Ia?"text-[var(--color-accent)]":"text-[var(--color-text-muted)]"}`},void 0,!1,void 0,this),c.jsxDEV("div",{className:"flex-1 min-w-0",children:[c.jsxDEV("div",{className:`text-sm font-medium ${Ia?"text-[var(--color-accent)]":""}`,children:A},void 0,!1,void 0,this),c.jsxDEV("div",{className:"text-xs text-[var(--color-text-muted)]",children:La},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},B,!0,void 0,this)})},void 0,!1,void 0,this)},void 0,!1,void 0,this),oo()&&c.jsxDEV(eo,{label:"Browser Provider",children:pv.length>0?c.jsxDEV(_o,{value:lr().browser_provider||"",options:[{value:"",label:"Auto (first available)"},...pv.map((B)=>({value:B.id,label:B.name}))],onChange:(B)=>tv(B)},void 0,!1,void 0,this):c.jsxDEV("p",{className:"text-sm text-[var(--color-text-muted)] p-3 border border-[var(--color-border-light)] rounded bg-[var(--color-bg)]",children:"No browser providers configured. Go to Settings → Providers to add one."},void 0,!1,void 0,this)},void 0,!1,void 0,this),Zm(H.features)&&(()=>{let B=f0(H.features),A=Z.some((za)=>za.id==="openai"&&za.hasKey),La=Z.some((za)=>za.id==="gemini"&&za.hasKey),no=Z.filter((za)=>za.type==="voice"&&za.hasKey),Ia=no.length>0,Jt=B.provider||"standard",lp=(za)=>{G((pt)=>({...pt,features:{...pt.features,realtime:{...f0(pt.features),...za}}}))},G0=no.filter((za)=>!za.voiceSubtype||za.voiceSubtype==="stt"||za.voiceSubtype==="both").map((za)=>({value:za.id,label:za.name})),Ea=no.filter((za)=>!za.voiceSubtype||za.voiceSubtype==="tts"||za.voiceSubtype==="both").map((za)=>({value:za.id,label:za.name}));return c.jsxDEV("div",{className:"p-3 bg-[var(--color-surface)] rounded border border-[var(--color-border-light)] space-y-3",children:[c.jsxDEV("p",{className:"text-xs text-[var(--color-text-muted)] font-medium uppercase tracking-wider",children:"Voice Configuration"},void 0,!1,void 0,this),c.jsxDEV(eo,{label:"Voice Mode",children:c.jsxDEV("div",{className:"flex gap-2 flex-wrap",children:[A&&c.jsxDEV("button",{type:"button",onClick:()=>lp({provider:"openai",model:"gpt-realtime",voice:"alloy"}),className:`px-3 py-1.5 text-sm rounded border transition ${Jt==="openai"?"border-[var(--color-accent)] bg-[var(--color-accent-10)] text-[var(--color-accent)]":"border-[var(--color-border-light)]"}`,children:"OpenAI Realtime"},void 0,!1,void 0,this),La&&c.jsxDEV("button",{type:"button",onClick:()=>lp({provider:"gemini",geminiVoice:"Kore"}),className:`px-3 py-1.5 text-sm rounded border transition ${Jt==="gemini"?"border-[var(--color-accent)] bg-[var(--color-accent-10)] text-[var(--color-accent)]":"border-[var(--color-border-light)]"}`,children:"Gemini Live"},void 0,!1,void 0,this),Ia&&c.jsxDEV("button",{type:"button",onClick:()=>lp({provider:"standard"}),className:`px-3 py-1.5 text-sm rounded border transition ${Jt==="standard"?"border-[var(--color-accent)] bg-[var(--color-accent-10)] text-[var(--color-accent)]":"border-[var(--color-border-light)]"}`,children:"Standard (STT+LLM+TTS)"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),Jt==="openai"&&c.jsxDEV(c.Fragment,{children:[c.jsxDEV(eo,{label:"Realtime Model",children:c.jsxDEV(_o,{value:B.model||"gpt-realtime",options:ep.openai.models.map((za)=>({value:za.value,label:za.label,recommended:za.recommended})),onChange:(za)=>lp({model:za}),placeholder:"Select model..."},void 0,!1,void 0,this)},void 0,!1,void 0,this),c.jsxDEV(eo,{label:"Voice",children:c.jsxDEV(_o,{value:B.voice||"alloy",options:ep.openai.voices.map((za)=>({value:za.value,label:za.label,recommended:za.recommended})),onChange:(za)=>lp({voice:za}),placeholder:"Select voice..."},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Jt==="gemini"&&c.jsxDEV(c.Fragment,{children:[c.jsxDEV(eo,{label:"Realtime Model",children:c.jsxDEV(_o,{value:B.geminiModel||ep.gemini.models[0].value,options:ep.gemini.models.map((za)=>({value:za.value,label:za.label,recommended:za.recommended})),onChange:(za)=>lp({geminiModel:za}),placeholder:"Select model..."},void 0,!1,void 0,this)},void 0,!1,void 0,this),c.jsxDEV(eo,{label:"Voice",children:c.jsxDEV(_o,{value:B.geminiVoice||"Kore",options:ep.gemini.voices.map((za)=>({value:za.value,label:za.label,recommended:za.recommended})),onChange:(za)=>lp({geminiVoice:za}),placeholder:"Select voice..."},void 0,!1,void 0,this)},void 0,!1,void 0,this),c.jsxDEV("div",{className:"flex items-center gap-2",children:[c.jsxDEV("button",{type:"button",onClick:()=>lp({googleSearch:!B.googleSearch}),className:`flex items-center gap-2 px-3 py-1.5 text-sm rounded border transition ${B.googleSearch?"border-[var(--color-accent)] bg-[var(--color-accent-10)] text-[var(--color-accent)]":"border-[var(--color-border-light)]"}`,children:[c.jsxDEV("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c.jsxDEV("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"},void 0,!1,void 0,this)},void 0,!1,void 0,this),"Google Search"]},void 0,!0,void 0,this),c.jsxDEV("span",{className:"text-xs text-[var(--color-text-faint)]",children:"Enable search grounding"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),Jt==="standard"&&c.jsxDEV(c.Fragment,{children:[G0.length>0&&c.jsxDEV(eo,{label:"STT Provider",children:c.jsxDEV(_o,{value:B.sttProvider||(G0[0]?.value??""),options:G0,onChange:(za)=>lp({sttProvider:za}),placeholder:"Select STT provider..."},void 0,!1,void 0,this)},void 0,!1,void 0,this),Ea.length>0&&c.jsxDEV(eo,{label:"TTS Provider",children:c.jsxDEV(_o,{value:B.ttsProvider||(Ea[0]?.value??""),options:Ea,onChange:(za)=>lp({ttsProvider:za}),placeholder:"Select TTS provider..."},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)})(),H.provider==="anthropic"&&c.jsxDEV(eo,{label:"Agent Built-in Tools",children:[c.jsxDEV("div",{className:"flex flex-wrap gap-2",children:[c.jsxDEV("button",{type:"button",onClick:()=>G((B)=>({...B,features:{...B.features,builtinTools:{...B.features.builtinTools,webSearch:!B.features.builtinTools?.webSearch}}})),className:`flex items-center gap-2 px-3 py-2 rounded border transition ${H.features.builtinTools?.webSearch?"border-[var(--color-accent)] bg-[var(--color-accent-10)] text-[var(--color-accent)]":"border-[var(--color-border-light)] hover:border-[var(--color-border-light)] text-[var(--color-text-secondary)]"}`,children:[c.jsxDEV("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c.jsxDEV("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"},void 0,!1,void 0,this)},void 0,!1,void 0,this),c.jsxDEV("span",{className:"text-sm",children:"Web Search"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),c.jsxDEV("button",{type:"button",onClick:()=>G((B)=>({...B,features:{...B.features,builtinTools:{...B.features.builtinTools,webFetch:!B.features.builtinTools?.webFetch}}})),className:`flex items-center gap-2 px-3 py-2 rounded border transition ${H.features.builtinTools?.webFetch?"border-[var(--color-accent)] bg-[var(--color-accent-10)] text-[var(--color-accent)]":"border-[var(--color-border-light)] hover:border-[var(--color-border-light)] text-[var(--color-text-secondary)]"}`,children:[c.jsxDEV("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c.jsxDEV("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 12a9 9 0 01-9 9m9-9a9 9 0 00-9-9m9 9H3m9 9a9 9 0 01-9-9m9 9c1.657 0 3-4.03 3-9s-1.343-9-3-9m0 18c-1.657 0-3-4.03-3-9s1.343-9 3-9m-9 9a9 9 0 019-9"},void 0,!1,void 0,this)},void 0,!1,void 0,this),c.jsxDEV("span",{className:"text-sm",children:"Web Fetch"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),c.jsxDEV("p",{className:"text-xs text-[var(--color-text-faint)] mt-2",children:"Provider-native tools for real-time web access"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),H.features.mcp&&c.jsxDEV(eo,{label:"MCP Servers",children:I.length===0?c.jsxDEV("p",{className:"text-sm text-[var(--color-text-muted)]",children:"No MCP servers configured. Add servers in the MCP page first."},void 0,!1,void 0,this):c.jsxDEV("div",{className:"space-y-2",children:[I.filter((B)=>B.project_id===null||B.project_id===f.projectId).map((B)=>{let A=B.type==="http"&&B.url,La=A||B.status==="running",no=A?`${B.source||"remote"} • http`:`${B.type} • ${B.package||B.command||"custom"}${B.status==="running"&&B.port?` • :${B.port}`:""}`;return c.jsxDEV("button",{type:"button",onClick:()=>fr(B.id),className:`w-full flex items-center gap-3 p-3 rounded border text-left transition ${H.mcpServers.includes(B.id)?"border-[var(--color-accent)] bg-[var(--color-accent-10)]":"border-[var(--color-border-light)] hover:border-[var(--color-border-light)]"}`,children:[c.jsxDEV("div",{className:`w-2 h-2 rounded-full flex-shrink-0 ${La?"bg-green-400":"bg-[var(--color-scrollbar)]"}`},void 0,!1,void 0,this),c.jsxDEV("div",{className:"flex-1 min-w-0",children:[c.jsxDEV("div",{className:"flex items-center gap-2",children:[c.jsxDEV("span",{className:`text-sm font-medium ${H.mcpServers.includes(B.id)?"text-[var(--color-accent)]":""}`,children:B.name},void 0,!1,void 0,this),B.project_id===null&&c.jsxDEV("span",{className:"text-[10px] text-[var(--color-text-muted)] bg-[var(--color-surface-raised)] px-1.5 py-0.5 rounded",children:"Global"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),c.jsxDEV("div",{className:"text-xs text-[var(--color-text-muted)]",children:no},void 0,!1,void 0,this)]},void 0,!0,void 0,this),c.jsxDEV("div",{className:`text-xs px-2 py-0.5 rounded ${La?"bg-green-500/20 text-green-400":"bg-[var(--color-surface-raised)] text-[var(--color-text-muted)]"}`,children:A?"remote":B.status},void 0,!1,void 0,this)]},B.id,!0,void 0,this)}),c.jsxDEV("p",{className:"text-xs text-[var(--color-text-muted)] mt-2",children:"Remote servers are always available. Local servers must be running."},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),c.jsxDEV(eo,{label:"Skills",children:s.length===0?c.jsxDEV("p",{className:"text-sm text-[var(--color-text-muted)]",children:"No skills configured. Add skills in the Skills page first."},void 0,!1,void 0,this):c.jsxDEV("div",{className:"space-y-2",children:[s.filter((B)=>B.enabled&&(B.project_id===null||B.project_id===f.projectId)).map((B)=>c.jsxDEV("button",{type:"button",onClick:()=>$t(B.id),className:`w-full flex items-center gap-3 p-3 rounded border text-left transition ${H.skills.includes(B.id)?"border-[var(--color-accent)] bg-[var(--color-accent-10)]":"border-[var(--color-border-light)] hover:border-[var(--color-border-light)]"}`,children:[c.jsxDEV("div",{className:"flex-1 min-w-0",children:[c.jsxDEV("div",{className:"flex items-center gap-2",children:[c.jsxDEV("span",{className:`text-sm font-medium ${H.skills.includes(B.id)?"text-[var(--color-accent)]":""}`,children:B.name},void 0,!1,void 0,this),B.project_id===null&&c.jsxDEV("span",{className:"text-[10px] text-[var(--color-text-muted)] bg-[var(--color-surface-raised)] px-1.5 py-0.5 rounded",children:"Global"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),c.jsxDEV("div",{className:"text-xs text-[var(--color-text-muted)]",children:B.description},void 0,!1,void 0,this)]},void 0,!0,void 0,this),c.jsxDEV("div",{className:"text-xs px-2 py-0.5 rounded bg-[var(--color-surface-raised)] text-[var(--color-text-muted)]",children:["v",B.version]},void 0,!0,void 0,this)]},B.id,!0,void 0,this)),c.jsxDEV("p",{className:"text-xs text-[var(--color-text-muted)] mt-2",children:"Skills provide reusable instructions for the agent."},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),O&&c.jsxDEV("div",{className:`text-sm px-3 py-2 rounded ${O.type==="success"?"bg-green-500/10 text-green-400":"bg-red-500/10 text-red-400"}`,children:O.text},void 0,!1,void 0,this),c.jsxDEV("button",{onClick:mv,disabled:!g||N||!H.name,className:"w-full bg-[var(--color-accent)] hover:bg-[var(--color-accent-hover)] disabled:opacity-50 disabled:cursor-not-allowed text-black px-4 py-2 rounded font-medium transition",children:N?"Saving...":"Save Changes"},void 0,!1,void 0,this),f.status==="running"&&g&&c.jsxDEV("p",{className:"text-xs text-[var(--color-text-muted)] text-center",children:"Changes will be applied to the running agent"},void 0,!1,void 0,this),c.jsxDEV("div",{className:"mt-8 pt-6 border-t border-[var(--color-border-light)]",children:[c.jsxDEV("p",{className:"text-sm text-[var(--color-text-muted)] mb-3",children:"Subscriptions"},void 0,!1,void 0,this),ia.length===0?c.jsxDEV("p",{className:"text-xs text-[var(--color-text-faint)]",children:"No subscriptions. Set up triggers in Connections to have this agent listen to external events."},void 0,!1,void 0,this):c.jsxDEV("div",{className:"space-y-2",children:ia.map((B)=>c.jsxDEV("div",{className:"flex items-center gap-2 px-3 py-2 bg-[var(--color-surface)] rounded border border-[var(--color-border)]",children:[c.jsxDEV("span",{className:`w-2 h-2 rounded-full shrink-0 ${B.enabled?"bg-cyan-400":"bg-[var(--color-scrollbar)]"}`},void 0,!1,void 0,this),c.jsxDEV("span",{className:`text-sm flex-1 ${B.enabled?"text-cyan-400":"text-[var(--color-text-muted)]"}`,children:B.trigger_slug.replace(/_/g," ")},void 0,!1,void 0,this),c.jsxDEV("span",{className:`text-[10px] px-1.5 py-0.5 rounded ${B.enabled?"bg-cyan-500/10 text-cyan-400":"bg-[var(--color-surface-raised)] text-[var(--color-text-faint)]"}`,children:B.enabled?"active":"disabled"},void 0,!1,void 0,this)]},B.id,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),da&&c.jsxDEV("div",{className:"mt-8 pt-6 border-t border-[var(--color-border-light)]",children:[c.jsxDEV("p",{className:"text-sm text-[var(--color-text-muted)] mb-3",children:"Developer Info"},void 0,!1,void 0,this),c.jsxDEV("div",{className:"space-y-2",children:[c.jsxDEV("div",{className:"flex items-center justify-between",children:[c.jsxDEV("span",{className:"text-xs text-[var(--color-text-muted)]",children:"Agent ID"},void 0,!1,void 0,this),c.jsxDEV("code",{className:"text-xs bg-[var(--color-surface-raised)] px-2 py-1 rounded text-[var(--color-text-secondary)]",children:f.id},void 0,!1,void 0,this)]},void 0,!0,void 0,this),c.jsxDEV("div",{className:"flex items-center justify-between",children:[c.jsxDEV("span",{className:"text-xs text-[var(--color-text-muted)]",children:"Port"},void 0,!1,void 0,this),c.jsxDEV("code",{className:"text-xs bg-[var(--color-surface-raised)] px-2 py-1 rounded text-[var(--color-text-secondary)]",children:f.port||"N/A"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),c.jsxDEV("div",{className:"flex flex-col gap-1",children:[c.jsxDEV("div",{className:"flex items-center justify-between",children:[c.jsxDEV("span",{className:"text-xs text-[var(--color-text-muted)]",children:"API Key"},void 0,!1,void 0,this),c.jsxDEV("button",{onClick:()=>aa(!U),className:"text-xs text-[var(--color-accent)] hover:text-[var(--color-accent-hover)]",children:U?"Hide":"Show"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),c.jsxDEV("code",{className:"text-xs bg-[var(--color-surface-raised)] px-2 py-1 rounded text-[var(--color-text-secondary)] break-all",children:U?V||da:da},void 0,!1,void 0,this)]},void 0,!0,void 0,this),f.status==="running"&&f.port&&c.jsxDEV("div",{className:"flex flex-col gap-1 mt-2",children:[c.jsxDEV("span",{className:"text-xs text-[var(--color-text-muted)]",children:"Test with curl"},void 0,!1,void 0,this),c.jsxDEV("code",{className:"text-xs bg-[var(--color-surface-raised)] px-2 py-1.5 rounded text-[var(--color-text-muted)] break-all",children:['curl -H "X-API-Key: ',U?V||da:"***",'" http://localhost:',f.port,"/config"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),q&&c.jsxDEV("div",{className:"mt-8 pt-6 border-t border-[var(--color-border-light)]",children:[c.jsxDEV("p",{className:"text-sm text-[var(--color-text-muted)] mb-3",children:"Share Link"},void 0,!1,void 0,this),c.jsxDEV("p",{className:"text-xs text-[var(--color-text-faint)] mb-3",children:"Anyone with this link can chat with this agent. No login required. Regenerate the API key to invalidate."},void 0,!1,void 0,this),c.jsxDEV("div",{className:"flex gap-2",children:[c.jsxDEV("code",{className:"flex-1 text-xs bg-[var(--color-surface-raised)] px-3 py-2 rounded text-[var(--color-text-secondary)] break-all border border-[var(--color-border-light)]",children:`${window.location.origin}/share/${q}`},void 0,!1,void 0,this),c.jsxDEV("button",{onClick:()=>{navigator.clipboard.writeText(`${window.location.origin}/share/${q}`),ta(!0),setTimeout(()=>ta(!1),2000)},className:"px-3 py-2 text-xs bg-[var(--color-surface-raised)] hover:bg-[var(--color-surface-raised)] border border-[var(--color-border-light)] rounded text-[var(--color-text-secondary)] hover:text-[var(--color-text)] transition flex-shrink-0",children:oa?"Copied!":"Copy"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),c.jsxDEV("div",{className:"mt-3",children:[c.jsxDEV("p",{className:"text-xs text-[var(--color-text-faint)] mb-1",children:"Embed"},void 0,!1,void 0,this),c.jsxDEV("code",{className:"block text-xs bg-[var(--color-surface-raised)] px-3 py-2 rounded text-[var(--color-text-muted)] break-all border border-[var(--color-border-light)]",children:`<iframe src="${window.location.origin}/share/${q}" width="400" height="600" style="border:none; border-radius:12px;" />`},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),c.jsxDEV("div",{className:"mt-8 pt-6 border-t border-[var(--color-border-light)]",children:[c.jsxDEV("p",{className:"text-sm text-[var(--color-text-muted)] mb-3",children:"Danger Zone"},void 0,!1,void 0,this),h?c.jsxDEV("div",{className:"flex gap-2",children:[c.jsxDEV("button",{onClick:()=>P(!1),className:"flex-1 border border-[var(--color-border-light)] hover:border-[var(--color-scrollbar)] px-4 py-2 rounded font-medium transition",children:"Cancel"},void 0,!1,void 0,this),c.jsxDEV("button",{onClick:W,className:"flex-1 bg-red-500/20 text-red-400 hover:bg-red-500/30 px-4 py-2 rounded font-medium transition",children:"Confirm Delete"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):c.jsxDEV("button",{onClick:()=>P(!0),className:"w-full border border-red-500/30 text-red-400/70 hover:border-red-500/50 hover:text-red-400 px-4 py-2 rounded font-medium transition",children:"Delete Agent"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}function eo({label:f,children:Z}){return c.jsxDEV("div",{children:[c.jsxDEV("label",{className:"block text-sm text-[var(--color-text-muted)] mb-1",children:f},void 0,!1,void 0,this),Z]},void 0,!0,void 0,this)}var mz=_a(so(),1);var Aa=_a(bo(),1);function Mb({agents:f,loading:Z,selectedAgent:Q,providers:W,onSelectAgent:L,onCloseAgent:n,onToggleAgent:H,onDeleteAgent:G,onUpdateAgent:N,onNewAgent:C,canCreateAgent:h=!0}){let{currentProjectId:P,currentProject:O}=cp(),{isBusiness:T,t:I}=Mp(),R=mz.useMemo(()=>{if(P===null)return f;if(P==="unassigned")return f.filter((ca)=>!ca.projectId);return f.filter((ca)=>ca.projectId===P)},[f,P]),s=P===null?I("Agents","Employees"):P==="unassigned"?I("Unassigned Agents","Unassigned Employees"):O?.name||I("Agents","Employees");return Aa.jsxDEV("div",{className:"flex-1 flex overflow-hidden relative",children:[Aa.jsxDEV("div",{className:"flex-1 overflow-auto p-6",children:[Aa.jsxDEV("div",{className:"flex items-center justify-between mb-6",children:[Aa.jsxDEV("div",{className:"flex items-center gap-3",children:[O&&Aa.jsxDEV("span",{className:"w-3 h-3 rounded-full",style:{backgroundColor:O.color}},void 0,!1,void 0,this),Aa.jsxDEV("h1",{className:"text-xl font-semibold",children:s},void 0,!1,void 0,this),P!==null&&Aa.jsxDEV("span",{className:"text-sm text-[var(--color-text-muted)]",children:["(",R.length," ",I("agent","employee"),R.length!==1?"s":"",")"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),!T&&C&&Aa.jsxDEV("button",{onClick:C,disabled:!h,className:"bg-[var(--color-accent)] hover:bg-[var(--color-accent-hover)] disabled:opacity-50 disabled:cursor-not-allowed text-black px-4 py-2 rounded font-medium transition",children:"+ New Agent"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Z?Aa.jsxDEV(ov,{message:I("Loading agents...","Loading employees...")},void 0,!1,void 0,this):R.length===0?T?Aa.jsxDEV(qX,{},void 0,!1,void 0,this):Aa.jsxDEV(GX,{onNewAgent:C,canCreateAgent:h,hasProjectFilter:P!==null},void 0,!1,void 0,this):Aa.jsxDEV("div",{className:"grid gap-4 md:grid-cols-2 xl:grid-cols-3 auto-rows-fr",children:R.map((ca)=>Aa.jsxDEV(Lb,{agent:ca,selected:Q?.id===ca.id,onSelect:()=>L(ca),onToggle:(ra)=>H(ca,ra),showProject:P===null},ca.id,!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Q&&Aa.jsxDEV("div",{className:"absolute inset-0 bg-black/40 backdrop-blur-[2px] z-10",onClick:n},void 0,!1,void 0,this),Q&&Aa.jsxDEV("div",{className:"absolute right-0 top-0 bottom-0 w-full sm:w-[500px] lg:w-[600px] xl:w-[700px] z-20",children:Aa.jsxDEV(Rb,{agent:Q,providers:W,onClose:n,onStartAgent:(ca)=>H(Q,ca),onUpdateAgent:(ca)=>N(Q.id,ca),onDeleteAgent:()=>G(Q.id)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function GX({onNewAgent:f,canCreateAgent:Z,hasProjectFilter:Q}){return Aa.jsxDEV("div",{className:"text-center py-20 text-[var(--color-text-muted)]",children:[Q?Aa.jsxDEV(Aa.Fragment,{children:[Aa.jsxDEV("p",{className:"text-lg",children:"No agents in this project"},void 0,!1,void 0,this),Aa.jsxDEV("p",{className:"text-sm mt-1",children:"Create an agent or assign existing agents to this project"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):Aa.jsxDEV(Aa.Fragment,{children:[Aa.jsxDEV("p",{className:"text-lg",children:"No agents yet"},void 0,!1,void 0,this),Aa.jsxDEV("p",{className:"text-sm mt-1",children:"Create your first agent to get started"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),f&&Aa.jsxDEV("button",{onClick:f,disabled:!Z,className:"mt-4 bg-[var(--color-accent)] hover:bg-[var(--color-accent-hover)] disabled:opacity-50 disabled:cursor-not-allowed text-black px-4 py-2 rounded font-medium transition",children:"+ New Agent"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function qX(){let{toggle:f}=Bb();return Aa.jsxDEV("div",{className:"text-center py-20 text-[var(--color-text-muted)]",children:[Aa.jsxDEV("p",{className:"text-lg",children:"No employees yet"},void 0,!1,void 0,this),Aa.jsxDEV("p",{className:"text-sm mt-1",children:"Ask the Assistant to create one for you"},void 0,!1,void 0,this),Aa.jsxDEV("button",{onClick:f,className:"mt-4 bg-[var(--color-accent)] hover:bg-[var(--color-accent-hover)] text-black px-4 py-2 rounded font-medium transition",children:"Open Assistant"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var zo=_a(so(),1);var j=_a(bo(),1);function Fb({agents:f,loading:Z,runningCount:Q,configuredProviders:W,onNavigate:L,onSelectAgent:n}){let{authFetch:H}=wo(),{currentProjectId:G}=cp(),{isDev:N,t:C}=Mp(),{events:h,statusChangeCounter:P}=a5(),{events:O}=Ob({category:"TASK"}),T=zo.useRef(null),[I,R]=zo.useState(null),[s,ca]=zo.useState([]),[ra,$a]=zo.useState([]),[va,S]=zo.useState(null),da=zo.useMemo(()=>{if(!G)return f;if(G==="unassigned")return f.filter((q)=>!q.projectId);return f.filter((q)=>q.projectId===G)},[f,G]),ga=zo.useMemo(()=>{return da.filter((q)=>q.status==="running").length},[da]),V=zo.useMemo(()=>{return new Set(da.map((q)=>q.id))},[da]),Fa=zo.useCallback(async()=>{try{let q=G?`project_id=${encodeURIComponent(G)}`:"",[F,oa,ta]=await Promise.all([H(`/api/dashboard${q?`?${q}`:""}`),H(`/api/tasks?status=all${q?`&${q}`:""}`),H(`/api/telemetry/events?type=thread_activity&limit=20${q?`&${q}`:""}`)]);if(F.ok){let la=await F.json();R(la)}if(oa.ok){let la=await oa.json();ca(la.tasks||[])}if(ta.ok){let la=await ta.json();$a(la.events||[])}}catch(q){console.error("Failed to fetch dashboard data:",q)}},[H,G]);zo.useEffect(()=>{Fa()},[Fa,P]),zo.useEffect(()=>{if(!O.length)return;let q=O[0];if(!q||q.id===T.current)return;if(q.type==="task_created"||q.type==="task_updated"||q.type==="task_deleted")T.current=q.id,Fa()},[O,Fa]);let U=zo.useMemo(()=>{let q=G?s.filter((F)=>V.has(F.agentId)):s;return HX(q)},[s,G,V]),aa=zo.useMemo(()=>{if(!G)return I?.tasks||{total:0,pending:0,running:0,completed:0};let q=U.length,F=U.filter((la)=>la.status==="pending").length,oa=U.filter((la)=>la.status==="running").length,ta=U.filter((la)=>la.status==="completed").length;return{total:q,pending:F,running:oa,completed:ta}},[I,G,U]),ia=zo.useMemo(()=>{let q=h.filter((la)=>la.type==="thread_activity"&&!la.data?.parent_id),F=new Set(q.map((la)=>la.id)),oa=[...q];for(let la of ra)if(!F.has(la.id)&&!la.data?.parent_id)oa.push(la),F.add(la.id);let ta=oa;if(G)ta=oa.filter((la)=>V.has(la.agent_id));return ta.sort((la,Ta)=>new Date(Ta.timestamp).getTime()-new Date(la.timestamp).getTime()),ta.slice(0,12)},[h,ra,G,V]),k=zo.useMemo(()=>{let q=new Map;for(let F of f)q.set(F.id,F.name);return q},[f]);return j.jsxDEV("div",{className:"flex-1 overflow-auto p-6",children:[j.jsxDEV("div",{className:`grid grid-cols-2 ${N?"sm:grid-cols-4":"sm:grid-cols-3"} gap-4 mb-6`,children:[j.jsxDEV(gb,{label:C("Agents","Employees"),value:da.length,subValue:`${ga} running`},void 0,!1,void 0,this),j.jsxDEV(gb,{label:"Tasks",value:aa.total,subValue:`${aa.pending} pending`},void 0,!1,void 0,this),j.jsxDEV(gb,{label:"Completed",value:aa.completed,color:"text-green-400"},void 0,!1,void 0,this),N&&j.jsxDEV(gb,{label:"Providers",value:W.length,color:"text-[var(--color-accent)]"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),j.jsxDEV("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6",children:[j.jsxDEV(R3,{title:C("Agents","Employees"),actionLabel:"View All",onAction:()=>L("agents"),children:Z?j.jsxDEV("div",{className:"p-4 text-center text-[var(--color-text-muted)]",children:"Loading..."},void 0,!1,void 0,this):da.length===0?j.jsxDEV("div",{className:"p-4 text-center text-[var(--color-text-muted)]",children:C("No agents yet","No employees yet")},void 0,!1,void 0,this):j.jsxDEV("div",{className:"divide-y divide-[var(--color-border)]",children:da.slice(0,5).map((q)=>j.jsxDEV(QX,{agent:q,onSelect:()=>n(q),onMessage:q.status==="running"?()=>S(q):void 0,showProject:!G},q.id,!1,void 0,this))},void 0,!1,void 0,this)},void 0,!1,void 0,this),j.jsxDEV(R3,{title:"Activity",actionLabel:"Analytics",onAction:()=>L("analytics"),children:ia.length===0?j.jsxDEV("div",{className:"p-4 text-center text-[var(--color-text-muted)]",children:[j.jsxDEV("p",{children:"No activity yet"},void 0,!1,void 0,this),j.jsxDEV("p",{className:"text-sm text-[var(--color-text-faint)] mt-1",children:"Agent activity will appear here in real-time"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):j.jsxDEV("div",{className:"divide-y divide-[var(--color-border)]",children:ia.map((q)=>j.jsxDEV(BX,{activity:q.data?.activity||"Working...",agentName:k.get(q.agent_id)||q.agent_id,timestamp:q.timestamp},q.id,!1,void 0,this))},void 0,!1,void 0,this)},void 0,!1,void 0,this),j.jsxDEV(R3,{title:"Tasks",actionLabel:"View All",onAction:()=>L("tasks"),children:U.length===0?j.jsxDEV("div",{className:"p-4 text-center text-[var(--color-text-muted)]",children:[j.jsxDEV("p",{children:"No tasks yet"},void 0,!1,void 0,this),j.jsxDEV("p",{className:"text-sm text-[var(--color-text-faint)] mt-1",children:"Tasks will appear when agents create them"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):j.jsxDEV("div",{className:"divide-y divide-[var(--color-border)]",children:U.slice(0,5).map((q)=>j.jsxDEV("div",{className:"px-4 py-3 flex items-center justify-between",children:[j.jsxDEV("div",{className:"flex-1 min-w-0",children:[j.jsxDEV("p",{className:"font-medium truncate",children:q.title},void 0,!1,void 0,this),j.jsxDEV("p",{className:"text-sm text-[var(--color-text-muted)]",children:[q.agentName,q.recurrence&&j.jsxDEV("span",{className:"ml-1 text-[var(--color-text-faint)]",children:["· ",WX(q.recurrence)]},void 0,!0,void 0,this),q.next_run&&j.jsxDEV("span",{className:"ml-1 text-[var(--color-accent)]",children:["· ",vz(q.next_run)]},void 0,!0,void 0,this),!q.next_run&&q.execute_at&&j.jsxDEV("span",{className:"ml-1 text-[var(--color-accent)]",children:["· ",vz(q.execute_at)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),j.jsxDEV(dX,{status:q.status},void 0,!1,void 0,this)]},`${q.agentId}-${q.id}`,!0,void 0,this))},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),va&&j.jsxDEV(KX,{agent:va,onClose:()=>S(null)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function gb({label:f,value:Z,subValue:Q,color:W}){return j.jsxDEV("div",{className:"bg-[var(--color-surface)] rounded p-4 border border-[var(--color-border)]",children:[j.jsxDEV("p",{className:"text-sm text-[var(--color-text-muted)] mb-1",children:f},void 0,!1,void 0,this),j.jsxDEV("p",{className:`text-2xl font-semibold ${W||""}`,children:Z},void 0,!1,void 0,this),Q&&j.jsxDEV("p",{className:"text-xs text-[var(--color-text-faint)] mt-1",children:Q},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function R3({title:f,actionLabel:Z,onAction:Q,children:W}){return j.jsxDEV("div",{className:"bg-[var(--color-surface)] rounded border border-[var(--color-border)] overflow-hidden",children:[j.jsxDEV("div",{className:"px-4 py-3 border-b border-[var(--color-border)] flex items-center justify-between",children:[j.jsxDEV("h3",{className:"font-semibold",children:f},void 0,!1,void 0,this),j.jsxDEV("button",{onClick:Q,className:"text-sm text-[#3b82f6] hover:text-[#60a5fa]",children:Z},void 0,!1,void 0,this)]},void 0,!0,void 0,this),W]},void 0,!0,void 0,this)}function QX({agent:f,onSelect:Z,onMessage:Q,showProject:W}){let{isActive:L,label:n}=nb(f.id),{projects:H}=cp(),{isDev:G}=Mp(),N=f.projectId?H.find((C)=>C.id===f.projectId):null;return j.jsxDEV("div",{onClick:Z,className:"px-4 py-3 hover:bg-[var(--color-surface-raised)] cursor-pointer flex items-center justify-between group",children:[j.jsxDEV("div",{className:"flex items-center gap-3 flex-1 min-w-0",children:[j.jsxDEV("span",{className:`w-2 h-2 rounded-full flex-shrink-0 ${f.status==="running"?L?"bg-green-400 animate-pulse":"bg-[#3b82f6]":"bg-[var(--color-scrollbar)]"}`},void 0,!1,void 0,this),j.jsxDEV("div",{className:"flex-1 min-w-0",children:[j.jsxDEV("p",{className:"font-medium truncate",children:f.name},void 0,!1,void 0,this),j.jsxDEV("div",{className:"flex items-center gap-2 text-sm text-[var(--color-text-muted)]",children:[L&&n?j.jsxDEV("span",{className:"text-green-400 truncate",children:n},void 0,!1,void 0,this):j.jsxDEV("span",{children:[G?`${f.provider} · `:"",f.status==="running"?"idle":"stopped"]},void 0,!0,void 0,this),W&&N&&j.jsxDEV(j.Fragment,{children:[j.jsxDEV("span",{className:"text-[var(--color-text-faint)]",children:"·"},void 0,!1,void 0,this),j.jsxDEV("span",{className:"flex items-center gap-1",children:[j.jsxDEV("span",{className:"w-2 h-2 rounded-full",style:{backgroundColor:N.color}},void 0,!1,void 0,this),N.name]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),Q&&j.jsxDEV("button",{onClick:(C)=>{C.stopPropagation(),Q()},className:"opacity-0 group-hover:opacity-100 transition px-2 py-1 text-xs text-[var(--color-accent)] hover:bg-[var(--color-accent-10)] rounded",title:"Send message",children:j.jsxDEV("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:j.jsxDEV("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 12h.01M12 12h.01M16 12h.01M21 12c0 4.418-4.03 8-9 8a9.863 9.863 0 01-4.255-.949L3 20l1.395-3.72C3.512 15.042 3 13.574 3 12c0-4.418 4.03-8 9-8s9 3.582 9 8z"},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function _X(f){let Z=Math.floor((Date.now()-new Date(f).getTime())/1000);if(Z<5)return"just now";if(Z<60)return`${Z}s ago`;let Q=Math.floor(Z/60);if(Q<60)return`${Q}m ago`;let W=Math.floor(Q/60);if(W<24)return`${W}h ago`;return`${Math.floor(W/24)}d ago`}function BX({activity:f,agentName:Z,timestamp:Q}){return j.jsxDEV("div",{className:"px-4 py-3",children:[j.jsxDEV("p",{className:"text-sm truncate",children:f},void 0,!1,void 0,this),j.jsxDEV("div",{className:"flex items-center gap-2 text-xs text-[var(--color-text-faint)] mt-1",children:[j.jsxDEV("span",{className:"text-[var(--color-text-muted)]",children:Z},void 0,!1,void 0,this),j.jsxDEV("span",{className:"text-[var(--color-text-faint)]",children:"·"},void 0,!1,void 0,this),j.jsxDEV("span",{children:_X(Q)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function dX({status:f}){let Z={pending:"bg-yellow-500/20 text-yellow-400",running:"bg-blue-500/20 text-blue-400",completed:"bg-green-500/20 text-green-400",failed:"bg-red-500/20 text-red-400",cancelled:"bg-gray-500/20 text-gray-400"};return j.jsxDEV("span",{className:`px-2 py-0.5 rounded text-xs font-medium ${Z[f]||Z.pending}`,children:f},void 0,!1,void 0,this)}function KX({agent:f,onClose:Z}){let{authFetch:Q}=wo(),[W,L]=zo.useState(""),[n,H]=zo.useState(!1),[G,N]=zo.useState(!1),C=zo.useRef(null);zo.useEffect(()=>{C.current?.focus()},[]);let h=async()=>{if(!W.trim()||n)return;H(!0);try{if((await Q(`/api/agents/${f.id}/chat`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({message:W.trim(),agent_id:f.id})})).ok)N(!0),setTimeout(Z,1200)}catch{}finally{H(!1)}};return j.jsxDEV("div",{className:"fixed inset-0 z-50 flex items-center justify-center",children:[j.jsxDEV("div",{className:"absolute inset-0 bg-black/60",onClick:Z},void 0,!1,void 0,this),j.jsxDEV("div",{className:"relative bg-[var(--color-surface)] border border-[var(--color-border-light)] rounded-xl shadow-2xl w-full max-w-md mx-4 p-5",children:[j.jsxDEV("div",{className:"flex items-center justify-between mb-4",children:[j.jsxDEV("div",{className:"flex items-center gap-3",children:[j.jsxDEV("span",{className:"w-2.5 h-2.5 rounded-full bg-green-400 animate-pulse"},void 0,!1,void 0,this),j.jsxDEV("h3",{className:"font-medium",children:f.name},void 0,!1,void 0,this)]},void 0,!0,void 0,this),j.jsxDEV("button",{onClick:Z,className:"text-[var(--color-text-muted)] hover:text-[var(--color-text)] transition",children:j.jsxDEV(Gm,{},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),G?j.jsxDEV("div",{className:"py-6 text-center",children:[j.jsxDEV("p",{className:"text-green-400 font-medium",children:"Message sent"},void 0,!1,void 0,this),j.jsxDEV("p",{className:"text-sm text-[var(--color-text-faint)] mt-1",children:"The agent will process your message"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):j.jsxDEV("div",{className:"flex gap-2",children:[j.jsxDEV("input",{ref:C,type:"text",value:W,onChange:(P)=>L(P.target.value),onKeyDown:(P)=>P.key==="Enter"&&h(),placeholder:`Message ${f.name}...`,disabled:n,className:"flex-1 bg-[var(--color-bg)] border border-[var(--color-border-light)] btn px-3 py-2.5 text-sm focus:outline-none focus:border-[var(--color-accent)] placeholder-[#444] disabled:opacity-50"},void 0,!1,void 0,this),j.jsxDEV("button",{onClick:h,disabled:n||!W.trim(),className:"px-4 py-2.5 bg-[var(--color-accent)] text-black btn text-sm font-medium hover:bg-[var(--color-accent-hover)] transition disabled:opacity-30",children:n?"...":"Send"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function rz(f){if(f.status==="running")return 0;if(f.status==="pending")return 1;if(f.status==="completed")return 2;if(f.status==="failed")return 3;return 4}function HX(f){return[...f].sort((Z,Q)=>{let W=rz(Z),L=rz(Q);if(W!==L)return W-L;if(W<=1){let G=Z.next_run||Z.execute_at||null,N=Q.next_run||Q.execute_at||null,C=G?new Date(G).getTime():1/0,h=N?new Date(N).getTime():1/0;return C-h}let n=Z.completed_at||Z.executed_at||Z.created_at,H=Q.completed_at||Q.executed_at||Q.created_at;return new Date(H).getTime()-new Date(n).getTime()})}var iz=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"];function WX(f){try{let Z=f.trim().split(/\s+/);if(Z.length!==5)return f;let[Q,W,L,n,H]=Z;if(Q.startsWith("*/")&&W==="*"&&L==="*"&&n==="*"&&H==="*"){let N=parseInt(Q.slice(2));return N===1?"Every min":`Every ${N}min`}if(Q!=="*"&&!Q.includes("/")&&W==="*"&&L==="*"&&n==="*"&&H==="*")return"Hourly";if(W.startsWith("*/")&&L==="*"&&n==="*"&&H==="*"){let N=parseInt(W.slice(2));return N===1?"Hourly":`Every ${N}h`}let G=(N,C)=>{let h=parseInt(N),P=parseInt(C);if(isNaN(h))return"";let O=h>=12?"PM":"AM";return`${h===0?12:h>12?h-12:h}:${P.toString().padStart(2,"0")} ${O}`};if(W!=="*"&&!W.includes("/")&&L==="*"&&n==="*"){let N=G(W,Q);if(H==="*")return`Daily ${N}`;let C=H.split(",").map((h)=>iz[parseInt(h.trim())]||h);if(C.length===1)return`${C[0]} ${N}`;return`${C.join(" & ")} ${N}`}return f}catch{return f}}function vz(f){let Z=new Date(f),Q=new Date,W=Z.getTime()-Q.getTime(),L=W>0,n=Math.abs(W),H=Math.floor(n/60000),G=Math.floor(n/3600000),N=Z.toLocaleTimeString([],{hour:"numeric",minute:"2-digit"}),C=Z.toDateString()===Q.toDateString(),h=new Date(Q);h.setDate(h.getDate()+1);let P=Z.toDateString()===h.toDateString();if(C){if(H<1)return"now";if(H<60)return L?`in ${H}m`:`${H}m ago`;return L?`in ${G}h`:`${G}h ago`}if(P)return`Tomorrow ${N}`;return`${iz[Z.getDay()]} ${N}`}var Ga=_a(bo(),1),yX=xa.lazy(()=>import("./SettingsPage.ykgdh5ev.js").then((f)=>({default:f.SettingsPage}))),kX=xa.lazy(()=>import("./TasksPage.4g08t7p6.js").then((f)=>({default:f.TasksPage}))),nX=xa.lazy(()=>import("./McpPage.3cwh0gnd.js").then((f)=>({default:f.McpPage}))),LX=xa.lazy(()=>import("./SkillsPage.4np1s65b.js").then((f)=>({default:f.SkillsPage}))),NX=xa.lazy(()=>import("./TestsPage.z4fk3r7r.js").then((f)=>({default:f.TestsPage}))),OX=xa.lazy(()=>import("./ThreadsPage.63tcajeh.js").then((f)=>({default:f.ThreadsPage}))),RX=xa.lazy(()=>import("./TelemetryPage.72w9pwcp.js").then((f)=>({default:f.TelemetryPage}))),MX=xa.lazy(()=>import("./ConnectionsPage.8r96ryw7.js").then((f)=>({default:f.ConnectionsPage}))),gX=xa.lazy(()=>import("./ActivityPage.kxzzb4yc.js").then((f)=>({default:f.ActivityPage}))),FX=xa.lazy(()=>import("./ApiDocsPage.zq998hbm.js").then((f)=>({default:f.ApiDocsPage})));function PX(){let{isAuthenticated:f,isLoading:Z,hasUsers:Q,accessToken:W,checkAuth:L}=wo(),{currentProjectId:n,refreshProjects:H}=cp(),G=_b(),N=lz(),{isComplete:C,setIsComplete:h}=y3(),P=()=>{return W?{Authorization:`Bearer ${W}`}:{}},O=f&&C===!0,{agents:T,loading:I,runningCount:R,fetchAgents:s,createAgent:ca,updateAgent:ra,deleteAgent:$a,toggleAgent:va}=U3(O,n),{providers:S,configuredProviders:da,fetchProviders:ga}=h3(O),V=da.filter((g)=>g.type==="llm"),Fa=xa.useMemo(()=>{if(n===null)return T.length;if(n==="unassigned")return T.filter((g)=>!g.projectId).length;return T.filter((g)=>g.projectId===n).length},[T,n]),[U,aa]=xa.useState(!1),[ia,k]=xa.useState(null),[q,F]=xa.useState("dashboard"),[oa,ta]=xa.useState(null),[la,Ta]=xa.useState(0),[Vo,Gp]=xa.useState(!1);xa.useEffect(()=>{if(!O)return;(async()=>{try{let B="/api/tasks?status=pending";if(n!==null)B+=`&project_id=${encodeURIComponent(n)}`;let A=await fetch(B,{headers:P()});if(A.ok){let La=await A.json();Ta(La.count??(La.tasks||[]).length)}}catch{}})()},[O,W,n,G,N]);let[x,Ba]=xa.useState({name:"",model:"",provider:"",systemPrompt:"You are a helpful assistant.",features:{...W3},mcpServers:[],skills:[]});xa.useEffect(()=>{if(V.length>0&&!x.provider){let g=V[0],B=g.models.find((A)=>A.recommended)?.value||g.models[0]?.value||"";Ba((A)=>({...A,provider:g.id,model:B}))}},[V,x.provider]),xa.useEffect(()=>{if(ia){let g=T.find((B)=>B.id===ia.id);if(g)k(g);else k(null)}},[T,ia]);let oo=(g)=>{let B=S.find((La)=>La.id===g),A=B?.models.find((La)=>La.recommended)?.value||B?.models[0]?.value||"";Ba((La)=>({...La,provider:g,model:A}))},lr=async()=>{if(!x.name)return;await ca(x),await H();let g=V[0],B=g?.models.find((A)=>A.recommended)?.value||g?.models[0]?.value||"";Ba({name:"",model:B,provider:g?.id||"",systemPrompt:"You are a helpful assistant.",features:{...W3},mcpServers:[],skills:[]}),aa(!1)},pv=async(g,B)=>{B?.stopPropagation(),ta(null);let A=await va(g);if(A.error)ta(A.error)},tv=async(g,B)=>{if(B?.stopPropagation(),ia?.id===g)k(null);await $a(g),await H()},fr=(g)=>{k(g),ta(null),F("agents")},$t=(g)=>{F(g),k(null)},mv=()=>{h(!0),ga(),L()};if(Z||Q===null)return Ga.jsxDEV(ov,{fullScreen:!0},void 0,!1,void 0,this);if(!Q)return Ga.jsxDEV(t5,{onComplete:mv,needsAccount:!0},void 0,!1,void 0,this);if(!f)return Ga.jsxDEV(hb,{},void 0,!1,void 0,this);if(C===null)return Ga.jsxDEV(ov,{fullScreen:!0},void 0,!1,void 0,this);if(!C)return Ga.jsxDEV(t5,{onComplete:mv,needsAccount:!1},void 0,!1,void 0,this);return Ga.jsxDEV("div",{className:"h-screen flex flex-col overflow-hidden",style:{backgroundColor:"var(--color-bg)",color:"var(--color-text)"},children:[Ga.jsxDEV(db,{onMenuClick:()=>Gp(!0),agents:T},void 0,!1,void 0,this),oa&&Ga.jsxDEV(Ub,{message:oa,onDismiss:()=>ta(null)},void 0,!1,void 0,this),Ga.jsxDEV("div",{className:"flex flex-1 overflow-hidden",children:[Ga.jsxDEV(Wb,{route:q,agentCount:Fa,taskCount:la,onNavigate:$t,isOpen:Vo,onClose:()=>Gp(!1)},void 0,!1,void 0,this),Ga.jsxDEV("main",{className:"flex-1 overflow-hidden flex",children:Ga.jsxDEV(xa.Suspense,{fallback:Ga.jsxDEV(ov,{},void 0,!1,void 0,this),children:[q==="settings"&&Ga.jsxDEV(yX,{},void 0,!1,void 0,this),q==="agents"&&Ga.jsxDEV(Mb,{agents:T,loading:I,selectedAgent:ia,providers:S,onSelectAgent:fr,onCloseAgent:()=>k(null),onToggleAgent:pv,onDeleteAgent:tv,onUpdateAgent:ra,onNewAgent:()=>aa(!0),canCreateAgent:V.length>0},void 0,!1,void 0,this),q==="dashboard"&&Ga.jsxDEV(Fb,{agents:T,loading:I,runningCount:R,configuredProviders:da,onNavigate:$t,onSelectAgent:fr},void 0,!1,void 0,this),q==="threads"&&Ga.jsxDEV(OX,{agents:T,onNavigate:F},void 0,!1,void 0,this),q==="activity"&&Ga.jsxDEV(gX,{agents:T,loading:I,onNavigate:$t},void 0,!1,void 0,this),q==="tasks"&&Ga.jsxDEV(kX,{},void 0,!1,void 0,this),q==="connections"&&Ga.jsxDEV(MX,{},void 0,!1,void 0,this),q==="mcp"&&Ga.jsxDEV(nX,{},void 0,!1,void 0,this),q==="skills"&&Ga.jsxDEV(LX,{},void 0,!1,void 0,this),q==="tests"&&Ga.jsxDEV(NX,{},void 0,!1,void 0,this),q==="analytics"&&Ga.jsxDEV(RX,{},void 0,!1,void 0,this),q==="api"&&Ga.jsxDEV(FX,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),U&&Ga.jsxDEV(Nb,{form:x,providers:S,configuredProviders:da,onFormChange:Ba,onProviderChange:oo,onCreate:lr,onClose:()=>aa(!1),onGoToSettings:()=>{aa(!1),F("settings")}},void 0,!1,void 0,this),Ga.jsxDEV(F9,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function CX({token:f}){let{theme:Z}=av(),[Q,W]=xa.useState("checking"),[L,n]=xa.useState("Agent"),[H,G]=xa.useState(!1);if(xa.useEffect(()=>{let N=async()=>{try{let h=await fetch(`/share/${f}/info`);if(h.ok){let P=await h.json();n(P.name||"Agent"),G(!!P.voiceEnabled),W(P.status==="running"?"online":"offline")}else W("offline")}catch{W("offline")}};N();let C=setInterval(N,15000);return()=>clearInterval(C)},[f]),Q==="checking")return Ga.jsxDEV("div",{className:"min-h-[100dvh] flex items-center justify-center",style:{backgroundColor:"var(--color-bg)"},children:Ga.jsxDEV("div",{className:"text-sm",style:{color:"var(--color-text-muted)"},children:"Connecting..."},void 0,!1,void 0,this)},void 0,!1,void 0,this);if(Q==="offline")return Ga.jsxDEV("div",{className:"min-h-[100dvh] flex items-center justify-center",style:{backgroundColor:"var(--color-bg)"},children:Ga.jsxDEV("div",{className:"text-center",children:[Ga.jsxDEV("div",{className:"w-2.5 h-2.5 rounded-full mx-auto mb-3",style:{backgroundColor:"var(--color-text-muted)"}},void 0,!1,void 0,this),Ga.jsxDEV("div",{className:"text-base font-semibold mb-1.5",style:{color:"var(--color-text)"},children:L},void 0,!1,void 0,this),Ga.jsxDEV("div",{className:"text-sm",style:{color:"var(--color-text-muted)"},children:"This agent is currently offline"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this);return Ga.jsxDEV("div",{className:"min-h-[100dvh] flex items-center justify-center p-0 md:p-4",style:{backgroundColor:"var(--color-bg)"},children:Ga.jsxDEV("div",{className:"w-full max-w-[640px] h-[100dvh] md:h-[calc(100dvh-32px)] md:max-h-[800px] md:rounded-xl overflow-hidden md:border flex flex-col",style:{backgroundColor:"var(--color-bg)",borderColor:"var(--color-border)"},children:H?Ga.jsxDEV(bz,{agentId:"default",agentName:L,apiUrl:`/share/${f}`,variant:"default",theme:Z.id,showTranscript:!1},void 0,!1,void 0,this):Ga.jsxDEV(er,{agentId:"default",apiUrl:`/share/${f}`,placeholder:"Type a message...",variant:"terminal",theme:Z.id,headerTitle:L,enableMarkdown:!0,enableWidgets:!0,availableWidgets:["form","kpi"]},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function IX(){let f=window.location.pathname.match(/^\/share\/([a-f0-9]{32})$/);if(f)return Ga.jsxDEV(M3,{children:Ga.jsxDEV(CX,{token:f[1]},void 0,!1,void 0,this)},void 0,!1,void 0,this);return Ga.jsxDEV(M3,{children:Ga.jsxDEV(zz,{children:Ga.jsxDEV(fz,{children:Ga.jsxDEV(wz,{children:Ga.jsxDEV(M9,{children:Ga.jsxDEV(cz,{children:Ga.jsxDEV(PX,{},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var AX=$z.createRoot(document.getElementById("root"));AX.render(Ga.jsxDEV(IX,{},void 0,!1,void 0,this));
220
-
221
- //# debugId=177C3528B378566F64756E2164756E21