groove-dev 0.27.8 → 0.27.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/node_modules/@groove-dev/daemon/src/api.js +460 -25
- package/node_modules/@groove-dev/daemon/src/index.js +7 -0
- package/node_modules/@groove-dev/daemon/src/introducer.js +72 -4
- package/node_modules/@groove-dev/daemon/src/journalist.js +66 -11
- package/node_modules/@groove-dev/daemon/src/process.js +67 -7
- package/node_modules/@groove-dev/daemon/src/registry.js +1 -1
- package/node_modules/@groove-dev/daemon/src/repo-import.js +541 -0
- package/node_modules/@groove-dev/daemon/src/rotator.js +28 -1
- package/node_modules/@groove-dev/daemon/src/supervisor.js +2 -1
- package/node_modules/@groove-dev/daemon/src/tunnel-manager.js +504 -0
- package/node_modules/@groove-dev/daemon/src/validate.js +13 -0
- package/node_modules/@groove-dev/daemon/test/journalist.test.js +5 -4
- package/node_modules/@groove-dev/daemon/test/rotator.test.js +4 -1
- package/node_modules/@groove-dev/gui/dist/assets/index-BE6lYcd7.css +1 -0
- package/node_modules/@groove-dev/gui/dist/assets/index-zdzOLAZM.js +677 -0
- package/node_modules/@groove-dev/gui/dist/index.html +2 -2
- package/node_modules/@groove-dev/gui/src/app.css +14 -0
- package/node_modules/@groove-dev/gui/src/app.jsx +13 -0
- package/node_modules/@groove-dev/gui/src/components/agents/agent-config.jsx +130 -1
- package/node_modules/@groove-dev/gui/src/components/agents/agent-feed.jsx +2 -2
- package/node_modules/@groove-dev/gui/src/components/agents/agent-mdfiles.jsx +43 -1
- package/node_modules/@groove-dev/gui/src/components/agents/spawn-wizard.jsx +141 -1
- package/node_modules/@groove-dev/gui/src/components/dashboard/fleet-panel.jsx +3 -3
- package/node_modules/@groove-dev/gui/src/components/dashboard/intel-panel.jsx +4 -4
- package/node_modules/@groove-dev/gui/src/components/dashboard/routing-chart.jsx +3 -3
- package/node_modules/@groove-dev/gui/src/components/dashboard/team-burn-panel.jsx +1 -1
- package/node_modules/@groove-dev/gui/src/components/layout/activity-bar.jsx +4 -4
- package/node_modules/@groove-dev/gui/src/components/layout/app-shell.jsx +7 -1
- package/node_modules/@groove-dev/gui/src/components/layout/breadcrumb-bar.jsx +26 -8
- package/node_modules/@groove-dev/gui/src/components/layout/command-palette.jsx +14 -4
- package/node_modules/@groove-dev/gui/src/components/layout/status-bar.jsx +46 -11
- package/node_modules/@groove-dev/gui/src/components/marketplace/repo-card.jsx +64 -0
- package/node_modules/@groove-dev/gui/src/components/marketplace/repo-import.jsx +363 -0
- package/node_modules/@groove-dev/gui/src/components/marketplace/repo-nuke-dialog.jsx +68 -0
- package/node_modules/@groove-dev/gui/src/components/pro/pro-gate.jsx +22 -0
- package/node_modules/@groove-dev/gui/src/components/pro/upgrade-card.jsx +48 -0
- package/node_modules/@groove-dev/gui/src/components/settings/quick-connect.jsx +129 -0
- package/node_modules/@groove-dev/gui/src/components/settings/remote-server-card.jsx +243 -0
- package/node_modules/@groove-dev/gui/src/components/settings/server-dialog.jsx +192 -0
- package/node_modules/@groove-dev/gui/src/components/ui/approval-modal.jsx +63 -0
- package/node_modules/@groove-dev/gui/src/components/ui/toast.jsx +1 -1
- package/node_modules/@groove-dev/gui/src/lib/edition.js +4 -0
- package/node_modules/@groove-dev/gui/src/lib/electron.js +17 -0
- package/node_modules/@groove-dev/gui/src/lib/status.js +1 -0
- package/node_modules/@groove-dev/gui/src/stores/groove.js +139 -6
- package/node_modules/@groove-dev/gui/src/views/dashboard.jsx +38 -39
- package/node_modules/@groove-dev/gui/src/views/marketplace.jsx +82 -0
- package/node_modules/@groove-dev/gui/src/views/settings.jsx +66 -0
- package/node_modules/@groove-dev/gui/vite.config.js +3 -0
- package/package.json +7 -2
- package/packages/daemon/src/api.js +460 -25
- package/packages/daemon/src/index.js +7 -0
- package/packages/daemon/src/introducer.js +72 -4
- package/packages/daemon/src/journalist.js +66 -11
- package/packages/daemon/src/process.js +67 -7
- package/packages/daemon/src/registry.js +1 -1
- package/packages/daemon/src/repo-import.js +541 -0
- package/packages/daemon/src/rotator.js +28 -1
- package/packages/daemon/src/supervisor.js +2 -1
- package/packages/daemon/src/tunnel-manager.js +504 -0
- package/packages/daemon/src/validate.js +13 -0
- package/packages/gui/dist/assets/index-BE6lYcd7.css +1 -0
- package/packages/gui/dist/assets/index-zdzOLAZM.js +677 -0
- package/packages/gui/dist/index.html +2 -2
- package/packages/gui/node_modules/.vite/deps/@codemirror_lang-html.js +3 -3
- package/packages/gui/node_modules/.vite/deps/@codemirror_lang-javascript.js +2 -2
- package/packages/gui/node_modules/.vite/deps/@codemirror_lang-markdown.js +3 -3
- package/packages/gui/node_modules/.vite/deps/@codemirror_lang-python.js +5 -5
- package/packages/gui/node_modules/.vite/deps/@radix-ui_react-dialog.js +3 -3
- package/packages/gui/node_modules/.vite/deps/@radix-ui_react-scroll-area.js +1 -1
- package/packages/gui/node_modules/.vite/deps/@radix-ui_react-tabs.js +5 -5
- package/packages/gui/node_modules/.vite/deps/@radix-ui_react-tooltip.js +3 -3
- package/packages/gui/node_modules/.vite/deps/_metadata.json +53 -53
- package/packages/gui/node_modules/.vite/deps/{chunk-WYSQD5ZG.js → chunk-DH7AESXW.js} +2 -2
- package/packages/gui/node_modules/.vite/deps/{chunk-KXLIKZFX.js → chunk-GFE3G4IN.js} +133 -133
- package/packages/gui/node_modules/.vite/deps/chunk-GFE3G4IN.js.map +7 -0
- package/packages/gui/node_modules/.vite/deps/{chunk-3LBP22MX.js → chunk-LKZVMLRH.js} +6 -6
- package/packages/gui/node_modules/.vite/deps/{chunk-J6DMOQWP.js → chunk-MCVDVNE5.js} +2 -2
- package/packages/gui/node_modules/.vite/deps/{chunk-3Q7HT7ZF.js → chunk-SPKVQGZX.js} +6 -6
- package/packages/gui/src/app.css +14 -0
- package/packages/gui/src/app.jsx +13 -0
- package/packages/gui/src/components/agents/agent-config.jsx +130 -1
- package/packages/gui/src/components/agents/agent-feed.jsx +2 -2
- package/packages/gui/src/components/agents/agent-mdfiles.jsx +43 -1
- package/packages/gui/src/components/agents/spawn-wizard.jsx +141 -1
- package/packages/gui/src/components/dashboard/fleet-panel.jsx +3 -3
- package/packages/gui/src/components/dashboard/intel-panel.jsx +4 -4
- package/packages/gui/src/components/dashboard/routing-chart.jsx +3 -3
- package/packages/gui/src/components/dashboard/team-burn-panel.jsx +1 -1
- package/packages/gui/src/components/layout/activity-bar.jsx +4 -4
- package/packages/gui/src/components/layout/app-shell.jsx +7 -1
- package/packages/gui/src/components/layout/breadcrumb-bar.jsx +26 -8
- package/packages/gui/src/components/layout/command-palette.jsx +14 -4
- package/packages/gui/src/components/layout/status-bar.jsx +46 -11
- package/packages/gui/src/components/marketplace/repo-card.jsx +64 -0
- package/packages/gui/src/components/marketplace/repo-import.jsx +363 -0
- package/packages/gui/src/components/marketplace/repo-nuke-dialog.jsx +68 -0
- package/packages/gui/src/components/pro/pro-gate.jsx +22 -0
- package/packages/gui/src/components/pro/upgrade-card.jsx +48 -0
- package/packages/gui/src/components/settings/quick-connect.jsx +129 -0
- package/packages/gui/src/components/settings/remote-server-card.jsx +243 -0
- package/packages/gui/src/components/settings/server-dialog.jsx +192 -0
- package/packages/gui/src/components/ui/approval-modal.jsx +63 -0
- package/packages/gui/src/components/ui/toast.jsx +1 -1
- package/packages/gui/src/lib/edition.js +4 -0
- package/packages/gui/src/lib/electron.js +17 -0
- package/packages/gui/src/lib/status.js +1 -0
- package/packages/gui/src/stores/groove.js +139 -6
- package/packages/gui/src/views/dashboard.jsx +38 -39
- package/packages/gui/src/views/marketplace.jsx +82 -0
- package/packages/gui/src/views/settings.jsx +66 -0
- package/packages/gui/vite.config.js +3 -0
- package/integrations/FEDERATION_PLAN.md +0 -583
- package/integrations/VOICE_PLAN.md +0 -232
- package/node_modules/@groove-dev/gui/dist/assets/index-CwmR3-HY.css +0 -1
- package/node_modules/@groove-dev/gui/dist/assets/index-DiCjVtQL.js +0 -652
- package/packages/gui/dist/assets/index-CwmR3-HY.css +0 -1
- package/packages/gui/dist/assets/index-DiCjVtQL.js +0 -652
- package/packages/gui/node_modules/.vite/deps/chunk-KXLIKZFX.js.map +0 -7
- package/test-slack.mjs +0 -28
- /package/packages/gui/node_modules/.vite/deps/{chunk-WYSQD5ZG.js.map → chunk-DH7AESXW.js.map} +0 -0
- /package/packages/gui/node_modules/.vite/deps/{chunk-3LBP22MX.js.map → chunk-LKZVMLRH.js.map} +0 -0
- /package/packages/gui/node_modules/.vite/deps/{chunk-J6DMOQWP.js.map → chunk-MCVDVNE5.js.map} +0 -0
- /package/packages/gui/node_modules/.vite/deps/{chunk-3Q7HT7ZF.js.map → chunk-SPKVQGZX.js.map} +0 -0
|
@@ -1,652 +0,0 @@
|
|
|
1
|
-
import{r as Zj,c as Ej,a as v,j as s,b as V0,A as LO,m as WO,R as Ha}from"./vendor-C0HXlhrU.js";import{r as qj,a as G0,R as Mj,H as Ka,P as Ja,b as Yj,u as Uj,c as Vj,d as Gj,i as Dj,B as Lj}from"./reactflow-BQPfi37R.js";import{P as D0,N as BO,a as yi,D as Wj,b as Oa,T as gn,I as Hc,s as Gs,t as E,L as Zs,i as L0,c as W0,d as B0,e as Si,f as nr,g as Bj,h as Ml,j as mc,k as Ds,l as Ic,m as tt,E as Ll,n as yn,o as ts,p as H0,q as HO,r as I0,u as Hj,v as Ij,w as Fj,x as yO,y as Kj,z as oi,A as Jj,B as ew,C as tw,F as F0,G as nw,H as Dg,J as aw,K as sw,M as lw,O as rw,Q as iw,R as ow,S as cw,U as dw,V as uw,W as fw,X as Ow,Y as hw,Z as mw}from"./codemirror-BBL3i_JW.js";import{D as pw,o as xw,L as gw}from"./xterm--7_ns2zW.js";(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const d of o)if(d.type==="childList")for(const u of d.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&r(u)}).observe(document,{childList:!0,subtree:!0});function l(o){const d={};return o.integrity&&(d.integrity=o.integrity),o.referrerPolicy&&(d.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?d.credentials="include":o.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function r(o){if(o.ep)return;o.ep=!0;const d=l(o);fetch(o.href,d)}})();var Pf={exports:{}},Jr={},zf={exports:{}},Cf={};/**
|
|
2
|
-
* @license React
|
|
3
|
-
* scheduler.production.js
|
|
4
|
-
*
|
|
5
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
-
*
|
|
7
|
-
* This source code is licensed under the MIT license found in the
|
|
8
|
-
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var Lg;function bw(){return Lg||(Lg=1,(function(e){function n(N,U){var ee=N.length;N.push(U);e:for(;0<ee;){var de=ee-1>>>1,se=N[de];if(0<o(se,U))N[de]=U,N[ee]=se,ee=de;else break e}}function l(N){return N.length===0?null:N[0]}function r(N){if(N.length===0)return null;var U=N[0],ee=N.pop();if(ee!==U){N[0]=ee;e:for(var de=0,se=N.length,we=se>>>1;de<we;){var Qe=2*(de+1)-1,me=N[Qe],be=Qe+1,ze=N[be];if(0>o(me,ee))be<se&&0>o(ze,me)?(N[de]=ze,N[be]=ee,de=be):(N[de]=me,N[Qe]=ee,de=Qe);else if(be<se&&0>o(ze,ee))N[de]=ze,N[be]=ee,de=be;else break e}}return U}function o(N,U){var ee=N.sortIndex-U.sortIndex;return ee!==0?ee:N.id-U.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;e.unstable_now=function(){return d.now()}}else{var u=Date,f=u.now();e.unstable_now=function(){return u.now()-f}}var h=[],p=[],g=1,x=null,b=3,y=!1,Q=!1,w=!1,k=!1,j=typeof setTimeout=="function"?setTimeout:null,P=typeof clearTimeout=="function"?clearTimeout:null,z=typeof setImmediate<"u"?setImmediate:null;function R(N){for(var U=l(p);U!==null;){if(U.callback===null)r(p);else if(U.startTime<=N)r(p),U.sortIndex=U.expirationTime,n(h,U);else break;U=l(p)}}function Y(N){if(w=!1,R(N),!Q)if(l(h)!==null)Q=!0,X||(X=!0,F());else{var U=l(p);U!==null&&M(Y,U.startTime-N)}}var X=!1,C=-1,T=5,I=-1;function Z(){return k?!0:!(e.unstable_now()-I<T)}function K(){if(k=!1,X){var N=e.unstable_now();I=N;var U=!0;try{e:{Q=!1,w&&(w=!1,P(C),C=-1),y=!0;var ee=b;try{t:{for(R(N),x=l(h);x!==null&&!(x.expirationTime>N&&Z());){var de=x.callback;if(typeof de=="function"){x.callback=null,b=x.priorityLevel;var se=de(x.expirationTime<=N);if(N=e.unstable_now(),typeof se=="function"){x.callback=se,R(N),U=!0;break t}x===l(h)&&r(h),R(N)}else r(h);x=l(h)}if(x!==null)U=!0;else{var we=l(p);we!==null&&M(Y,we.startTime-N),U=!1}}break e}finally{x=null,b=ee,y=!1}U=void 0}}finally{U?F():X=!1}}}var F;if(typeof z=="function")F=function(){z(K)};else if(typeof MessageChannel<"u"){var G=new MessageChannel,V=G.port2;G.port1.onmessage=K,F=function(){V.postMessage(null)}}else F=function(){j(K,0)};function M(N,U){C=j(function(){N(e.unstable_now())},U)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(N){N.callback=null},e.unstable_forceFrameRate=function(N){0>N||125<N?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):T=0<N?Math.floor(1e3/N):5},e.unstable_getCurrentPriorityLevel=function(){return b},e.unstable_next=function(N){switch(b){case 1:case 2:case 3:var U=3;break;default:U=b}var ee=b;b=U;try{return N()}finally{b=ee}},e.unstable_requestPaint=function(){k=!0},e.unstable_runWithPriority=function(N,U){switch(N){case 1:case 2:case 3:case 4:case 5:break;default:N=3}var ee=b;b=N;try{return U()}finally{b=ee}},e.unstable_scheduleCallback=function(N,U,ee){var de=e.unstable_now();switch(typeof ee=="object"&&ee!==null?(ee=ee.delay,ee=typeof ee=="number"&&0<ee?de+ee:de):ee=de,N){case 1:var se=-1;break;case 2:se=250;break;case 5:se=1073741823;break;case 4:se=1e4;break;default:se=5e3}return se=ee+se,N={id:g++,callback:U,priorityLevel:N,startTime:ee,expirationTime:se,sortIndex:-1},ee>de?(N.sortIndex=ee,n(p,N),l(h)===null&&N===l(p)&&(w?(P(C),C=-1):w=!0,M(Y,ee-de))):(N.sortIndex=se,n(h,N),Q||y||(Q=!0,X||(X=!0,F()))),N},e.unstable_shouldYield=Z,e.unstable_wrapCallback=function(N){var U=b;return function(){var ee=b;b=U;try{return N.apply(this,arguments)}finally{b=ee}}}})(Cf)),Cf}var Wg;function vw(){return Wg||(Wg=1,zf.exports=bw()),zf.exports}/**
|
|
10
|
-
* @license React
|
|
11
|
-
* react-dom-client.production.js
|
|
12
|
-
*
|
|
13
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
14
|
-
*
|
|
15
|
-
* This source code is licensed under the MIT license found in the
|
|
16
|
-
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var Bg;function yw(){if(Bg)return Jr;Bg=1;var e=vw(),n=Zj(),l=qj();function r(t){var a="https://react.dev/errors/"+t;if(1<arguments.length){a+="?args[]="+encodeURIComponent(arguments[1]);for(var i=2;i<arguments.length;i++)a+="&args[]="+encodeURIComponent(arguments[i])}return"Minified React error #"+t+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function d(t){var a=t,i=t;if(t.alternate)for(;a.return;)a=a.return;else{t=a;do a=t,(a.flags&4098)!==0&&(i=a.return),t=a.return;while(t)}return a.tag===3?i:null}function u(t){if(t.tag===13){var a=t.memoizedState;if(a===null&&(t=t.alternate,t!==null&&(a=t.memoizedState)),a!==null)return a.dehydrated}return null}function f(t){if(t.tag===31){var a=t.memoizedState;if(a===null&&(t=t.alternate,t!==null&&(a=t.memoizedState)),a!==null)return a.dehydrated}return null}function h(t){if(d(t)!==t)throw Error(r(188))}function p(t){var a=t.alternate;if(!a){if(a=d(t),a===null)throw Error(r(188));return a!==t?null:t}for(var i=t,c=a;;){var O=i.return;if(O===null)break;var m=O.alternate;if(m===null){if(c=O.return,c!==null){i=c;continue}break}if(O.child===m.child){for(m=O.child;m;){if(m===i)return h(O),t;if(m===c)return h(O),a;m=m.sibling}throw Error(r(188))}if(i.return!==c.return)i=O,c=m;else{for(var S=!1,$=O.child;$;){if($===i){S=!0,i=O,c=m;break}if($===c){S=!0,c=O,i=m;break}$=$.sibling}if(!S){for($=m.child;$;){if($===i){S=!0,i=m,c=O;break}if($===c){S=!0,c=m,i=O;break}$=$.sibling}if(!S)throw Error(r(189))}}if(i.alternate!==c)throw Error(r(190))}if(i.tag!==3)throw Error(r(188));return i.stateNode.current===i?t:a}function g(t){var a=t.tag;if(a===5||a===26||a===27||a===6)return t;for(t=t.child;t!==null;){if(a=g(t),a!==null)return a;t=t.sibling}return null}var x=Object.assign,b=Symbol.for("react.element"),y=Symbol.for("react.transitional.element"),Q=Symbol.for("react.portal"),w=Symbol.for("react.fragment"),k=Symbol.for("react.strict_mode"),j=Symbol.for("react.profiler"),P=Symbol.for("react.consumer"),z=Symbol.for("react.context"),R=Symbol.for("react.forward_ref"),Y=Symbol.for("react.suspense"),X=Symbol.for("react.suspense_list"),C=Symbol.for("react.memo"),T=Symbol.for("react.lazy"),I=Symbol.for("react.activity"),Z=Symbol.for("react.memo_cache_sentinel"),K=Symbol.iterator;function F(t){return t===null||typeof t!="object"?null:(t=K&&t[K]||t["@@iterator"],typeof t=="function"?t:null)}var G=Symbol.for("react.client.reference");function V(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===G?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case w:return"Fragment";case j:return"Profiler";case k:return"StrictMode";case Y:return"Suspense";case X:return"SuspenseList";case I:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case Q:return"Portal";case z:return t.displayName||"Context";case P:return(t._context.displayName||"Context")+".Consumer";case R:var a=t.render;return t=t.displayName,t||(t=a.displayName||a.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case C:return a=t.displayName||null,a!==null?a:V(t.type)||"Memo";case T:a=t._payload,t=t._init;try{return V(t(a))}catch{}}return null}var M=Array.isArray,N=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,U=l.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ee={pending:!1,data:null,method:null,action:null},de=[],se=-1;function we(t){return{current:t}}function Qe(t){0>se||(t.current=de[se],de[se]=null,se--)}function me(t,a){se++,de[se]=t.current,t.current=a}var be=we(null),ze=we(null),W=we(null),Se=we(null);function ne(t,a){switch(me(W,a),me(ze,t),me(be,null),a.nodeType){case 9:case 11:t=(t=a.documentElement)&&(t=t.namespaceURI)?hg(t):0;break;default:if(t=a.tagName,a=a.namespaceURI)a=hg(a),t=mg(a,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}Qe(be),me(be,t)}function fe(){Qe(be),Qe(ze),Qe(W)}function Ne(t){t.memoizedState!==null&&me(Se,t);var a=be.current,i=mg(a,t.type);a!==i&&(me(ze,t),me(be,i))}function ke(t){ze.current===t&&(Qe(be),Qe(ze)),Se.current===t&&(Qe(Se),Hr._currentValue=ee)}var De,xt;function ut(t){if(De===void 0)try{throw Error()}catch(i){var a=i.stack.trim().match(/\n( *(at )?)/);De=a&&a[1]||"",xt=-1<i.stack.indexOf(`
|
|
18
|
-
at`)?" (<anonymous>)":-1<i.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
19
|
-
`+De+t+xt}var lr=!1;function rr(t,a){if(!t||lr)return"";lr=!0;var i=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var c={DetermineComponentFrameRoot:function(){try{if(a){var re=function(){throw Error()};if(Object.defineProperty(re.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(re,[])}catch(te){var H=te}Reflect.construct(t,[],re)}else{try{re.call()}catch(te){H=te}t.call(re.prototype)}}else{try{throw Error()}catch(te){H=te}(re=t())&&typeof re.catch=="function"&&re.catch(function(){})}}catch(te){if(te&&H&&typeof te.stack=="string")return[te.stack,H.stack]}return[null,null]}};c.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var O=Object.getOwnPropertyDescriptor(c.DetermineComponentFrameRoot,"name");O&&O.configurable&&Object.defineProperty(c.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var m=c.DetermineComponentFrameRoot(),S=m[0],$=m[1];if(S&&$){var _=S.split(`
|
|
20
|
-
`),L=$.split(`
|
|
21
|
-
`);for(O=c=0;c<_.length&&!_[c].includes("DetermineComponentFrameRoot");)c++;for(;O<L.length&&!L[O].includes("DetermineComponentFrameRoot");)O++;if(c===_.length||O===L.length)for(c=_.length-1,O=L.length-1;1<=c&&0<=O&&_[c]!==L[O];)O--;for(;1<=c&&0<=O;c--,O--)if(_[c]!==L[O]){if(c!==1||O!==1)do if(c--,O--,0>O||_[c]!==L[O]){var ae=`
|
|
22
|
-
`+_[c].replace(" at new "," at ");return t.displayName&&ae.includes("<anonymous>")&&(ae=ae.replace("<anonymous>",t.displayName)),ae}while(1<=c&&0<=O);break}}}finally{lr=!1,Error.prepareStackTrace=i}return(i=t?t.displayName||t.name:"")?ut(i):""}function hd(t,a){switch(t.tag){case 26:case 27:case 5:return ut(t.type);case 16:return ut("Lazy");case 13:return t.child!==a&&a!==null?ut("Suspense Fallback"):ut("Suspense");case 19:return ut("SuspenseList");case 0:case 15:return rr(t.type,!1);case 11:return rr(t.type.render,!1);case 1:return rr(t.type,!0);case 31:return ut("Activity");default:return""}}function Ci(t){try{var a="",i=null;do a+=hd(t,i),i=t,t=t.return;while(t);return a}catch(c){return`
|
|
23
|
-
Error generating stack: `+c.message+`
|
|
24
|
-
`+c.stack}}var ba=Object.prototype.hasOwnProperty,md=e.unstable_scheduleCallback,pd=e.unstable_cancelCallback,m2=e.unstable_shouldYield,p2=e.unstable_requestPaint,Xt=e.unstable_now,x2=e.unstable_getCurrentPriorityLevel,Lh=e.unstable_ImmediatePriority,Wh=e.unstable_UserBlockingPriority,Ri=e.unstable_NormalPriority,g2=e.unstable_LowPriority,Bh=e.unstable_IdlePriority,b2=e.log,v2=e.unstable_setDisableYieldValue,ir=null,Zt=null;function va(t){if(typeof b2=="function"&&v2(t),Zt&&typeof Zt.setStrictMode=="function")try{Zt.setStrictMode(ir,t)}catch{}}var Et=Math.clz32?Math.clz32:Q2,y2=Math.log,S2=Math.LN2;function Q2(t){return t>>>=0,t===0?32:31-(y2(t)/S2|0)|0}var _i=256,Ai=262144,Xi=4194304;function fs(t){var a=t&42;if(a!==0)return a;switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function Zi(t,a,i){var c=t.pendingLanes;if(c===0)return 0;var O=0,m=t.suspendedLanes,S=t.pingedLanes;t=t.warmLanes;var $=c&134217727;return $!==0?(c=$&~m,c!==0?O=fs(c):(S&=$,S!==0?O=fs(S):i||(i=$&~t,i!==0&&(O=fs(i))))):($=c&~m,$!==0?O=fs($):S!==0?O=fs(S):i||(i=c&~t,i!==0&&(O=fs(i)))),O===0?0:a!==0&&a!==O&&(a&m)===0&&(m=O&-O,i=a&-a,m>=i||m===32&&(i&4194048)!==0)?a:O}function or(t,a){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&a)===0}function j2(t,a){switch(t){case 1:case 2:case 4:case 8:case 64:return a+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 a+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Hh(){var t=Xi;return Xi<<=1,(Xi&62914560)===0&&(Xi=4194304),t}function xd(t){for(var a=[],i=0;31>i;i++)a.push(t);return a}function cr(t,a){t.pendingLanes|=a,a!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function w2(t,a,i,c,O,m){var S=t.pendingLanes;t.pendingLanes=i,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=i,t.entangledLanes&=i,t.errorRecoveryDisabledLanes&=i,t.shellSuspendCounter=0;var $=t.entanglements,_=t.expirationTimes,L=t.hiddenUpdates;for(i=S&~i;0<i;){var ae=31-Et(i),re=1<<ae;$[ae]=0,_[ae]=-1;var H=L[ae];if(H!==null)for(L[ae]=null,ae=0;ae<H.length;ae++){var te=H[ae];te!==null&&(te.lane&=-536870913)}i&=~re}c!==0&&Ih(t,c,0),m!==0&&O===0&&t.tag!==0&&(t.suspendedLanes|=m&~(S&~a))}function Ih(t,a,i){t.pendingLanes|=a,t.suspendedLanes&=~a;var c=31-Et(a);t.entangledLanes|=a,t.entanglements[c]=t.entanglements[c]|1073741824|i&261930}function Fh(t,a){var i=t.entangledLanes|=a;for(t=t.entanglements;i;){var c=31-Et(i),O=1<<c;O&a|t[c]&a&&(t[c]|=a),i&=~O}}function Kh(t,a){var i=a&-a;return i=(i&42)!==0?1:gd(i),(i&(t.suspendedLanes|a))!==0?0:i}function gd(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function bd(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function Jh(){var t=U.p;return t!==0?t:(t=window.event,t===void 0?32:Eg(t.type))}function em(t,a){var i=U.p;try{return U.p=t,a()}finally{U.p=i}}var ya=Math.random().toString(36).slice(2),gt="__reactFiber$"+ya,Tt="__reactProps$"+ya,Hs="__reactContainer$"+ya,vd="__reactEvents$"+ya,k2="__reactListeners$"+ya,$2="__reactHandles$"+ya,tm="__reactResources$"+ya,dr="__reactMarker$"+ya;function yd(t){delete t[gt],delete t[Tt],delete t[vd],delete t[k2],delete t[$2]}function Is(t){var a=t[gt];if(a)return a;for(var i=t.parentNode;i;){if(a=i[Hs]||i[gt]){if(i=a.alternate,a.child!==null||i!==null&&i.child!==null)for(t=Sg(t);t!==null;){if(i=t[gt])return i;t=Sg(t)}return a}t=i,i=t.parentNode}return null}function Fs(t){if(t=t[gt]||t[Hs]){var a=t.tag;if(a===5||a===6||a===13||a===31||a===26||a===27||a===3)return t}return null}function ur(t){var a=t.tag;if(a===5||a===26||a===27||a===6)return t.stateNode;throw Error(r(33))}function Ks(t){var a=t[tm];return a||(a=t[tm]={hoistableStyles:new Map,hoistableScripts:new Map}),a}function mt(t){t[dr]=!0}var nm=new Set,am={};function Os(t,a){Js(t,a),Js(t+"Capture",a)}function Js(t,a){for(am[t]=a,t=0;t<a.length;t++)nm.add(a[t])}var T2=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]*$"),sm={},lm={};function N2(t){return ba.call(lm,t)?!0:ba.call(sm,t)?!1:T2.test(t)?lm[t]=!0:(sm[t]=!0,!1)}function Ei(t,a,i){if(N2(a))if(i===null)t.removeAttribute(a);else{switch(typeof i){case"undefined":case"function":case"symbol":t.removeAttribute(a);return;case"boolean":var c=a.toLowerCase().slice(0,5);if(c!=="data-"&&c!=="aria-"){t.removeAttribute(a);return}}t.setAttribute(a,""+i)}}function qi(t,a,i){if(i===null)t.removeAttribute(a);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(a);return}t.setAttribute(a,""+i)}}function Un(t,a,i,c){if(c===null)t.removeAttribute(i);else{switch(typeof c){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(i);return}t.setAttributeNS(a,i,""+c)}}function Kt(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function rm(t){var a=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function P2(t,a,i){var c=Object.getOwnPropertyDescriptor(t.constructor.prototype,a);if(!t.hasOwnProperty(a)&&typeof c<"u"&&typeof c.get=="function"&&typeof c.set=="function"){var O=c.get,m=c.set;return Object.defineProperty(t,a,{configurable:!0,get:function(){return O.call(this)},set:function(S){i=""+S,m.call(this,S)}}),Object.defineProperty(t,a,{enumerable:c.enumerable}),{getValue:function(){return i},setValue:function(S){i=""+S},stopTracking:function(){t._valueTracker=null,delete t[a]}}}}function Sd(t){if(!t._valueTracker){var a=rm(t)?"checked":"value";t._valueTracker=P2(t,a,""+t[a])}}function im(t){if(!t)return!1;var a=t._valueTracker;if(!a)return!0;var i=a.getValue(),c="";return t&&(c=rm(t)?t.checked?"true":"false":t.value),t=c,t!==i?(a.setValue(t),!0):!1}function Mi(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var z2=/[\n"\\]/g;function Jt(t){return t.replace(z2,function(a){return"\\"+a.charCodeAt(0).toString(16)+" "})}function Qd(t,a,i,c,O,m,S,$){t.name="",S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"?t.type=S:t.removeAttribute("type"),a!=null?S==="number"?(a===0&&t.value===""||t.value!=a)&&(t.value=""+Kt(a)):t.value!==""+Kt(a)&&(t.value=""+Kt(a)):S!=="submit"&&S!=="reset"||t.removeAttribute("value"),a!=null?jd(t,S,Kt(a)):i!=null?jd(t,S,Kt(i)):c!=null&&t.removeAttribute("value"),O==null&&m!=null&&(t.defaultChecked=!!m),O!=null&&(t.checked=O&&typeof O!="function"&&typeof O!="symbol"),$!=null&&typeof $!="function"&&typeof $!="symbol"&&typeof $!="boolean"?t.name=""+Kt($):t.removeAttribute("name")}function om(t,a,i,c,O,m,S,$){if(m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"&&(t.type=m),a!=null||i!=null){if(!(m!=="submit"&&m!=="reset"||a!=null)){Sd(t);return}i=i!=null?""+Kt(i):"",a=a!=null?""+Kt(a):i,$||a===t.value||(t.value=a),t.defaultValue=a}c=c??O,c=typeof c!="function"&&typeof c!="symbol"&&!!c,t.checked=$?t.checked:!!c,t.defaultChecked=!!c,S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"&&(t.name=S),Sd(t)}function jd(t,a,i){a==="number"&&Mi(t.ownerDocument)===t||t.defaultValue===""+i||(t.defaultValue=""+i)}function el(t,a,i,c){if(t=t.options,a){a={};for(var O=0;O<i.length;O++)a["$"+i[O]]=!0;for(i=0;i<t.length;i++)O=a.hasOwnProperty("$"+t[i].value),t[i].selected!==O&&(t[i].selected=O),O&&c&&(t[i].defaultSelected=!0)}else{for(i=""+Kt(i),a=null,O=0;O<t.length;O++){if(t[O].value===i){t[O].selected=!0,c&&(t[O].defaultSelected=!0);return}a!==null||t[O].disabled||(a=t[O])}a!==null&&(a.selected=!0)}}function cm(t,a,i){if(a!=null&&(a=""+Kt(a),a!==t.value&&(t.value=a),i==null)){t.defaultValue!==a&&(t.defaultValue=a);return}t.defaultValue=i!=null?""+Kt(i):""}function dm(t,a,i,c){if(a==null){if(c!=null){if(i!=null)throw Error(r(92));if(M(c)){if(1<c.length)throw Error(r(93));c=c[0]}i=c}i==null&&(i=""),a=i}i=Kt(a),t.defaultValue=i,c=t.textContent,c===i&&c!==""&&c!==null&&(t.value=c),Sd(t)}function tl(t,a){if(a){var i=t.firstChild;if(i&&i===t.lastChild&&i.nodeType===3){i.nodeValue=a;return}}t.textContent=a}var C2=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function um(t,a,i){var c=a.indexOf("--")===0;i==null||typeof i=="boolean"||i===""?c?t.setProperty(a,""):a==="float"?t.cssFloat="":t[a]="":c?t.setProperty(a,i):typeof i!="number"||i===0||C2.has(a)?a==="float"?t.cssFloat=i:t[a]=(""+i).trim():t[a]=i+"px"}function fm(t,a,i){if(a!=null&&typeof a!="object")throw Error(r(62));if(t=t.style,i!=null){for(var c in i)!i.hasOwnProperty(c)||a!=null&&a.hasOwnProperty(c)||(c.indexOf("--")===0?t.setProperty(c,""):c==="float"?t.cssFloat="":t[c]="");for(var O in a)c=a[O],a.hasOwnProperty(O)&&i[O]!==c&&um(t,O,c)}else for(var m in a)a.hasOwnProperty(m)&&um(t,m,a[m])}function wd(t){if(t.indexOf("-")===-1)return!1;switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var R2=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"]]),_2=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Yi(t){return _2.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function Vn(){}var kd=null;function $d(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var nl=null,al=null;function Om(t){var a=Fs(t);if(a&&(t=a.stateNode)){var i=t[Tt]||null;e:switch(t=a.stateNode,a.type){case"input":if(Qd(t,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name),a=i.name,i.type==="radio"&&a!=null){for(i=t;i.parentNode;)i=i.parentNode;for(i=i.querySelectorAll('input[name="'+Jt(""+a)+'"][type="radio"]'),a=0;a<i.length;a++){var c=i[a];if(c!==t&&c.form===t.form){var O=c[Tt]||null;if(!O)throw Error(r(90));Qd(c,O.value,O.defaultValue,O.defaultValue,O.checked,O.defaultChecked,O.type,O.name)}}for(a=0;a<i.length;a++)c=i[a],c.form===t.form&&im(c)}break e;case"textarea":cm(t,i.value,i.defaultValue);break e;case"select":a=i.value,a!=null&&el(t,!!i.multiple,a,!1)}}}var Td=!1;function hm(t,a,i){if(Td)return t(a,i);Td=!0;try{var c=t(a);return c}finally{if(Td=!1,(nl!==null||al!==null)&&(No(),nl&&(a=nl,t=al,al=nl=null,Om(a),t)))for(a=0;a<t.length;a++)Om(t[a])}}function fr(t,a){var i=t.stateNode;if(i===null)return null;var c=i[Tt]||null;if(c===null)return null;i=c[a];e:switch(a){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(c=!c.disabled)||(t=t.type,c=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!c;break e;default:t=!1}if(t)return null;if(i&&typeof i!="function")throw Error(r(231,a,typeof i));return i}var Gn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Nd=!1;if(Gn)try{var Or={};Object.defineProperty(Or,"passive",{get:function(){Nd=!0}}),window.addEventListener("test",Or,Or),window.removeEventListener("test",Or,Or)}catch{Nd=!1}var Sa=null,Pd=null,Ui=null;function mm(){if(Ui)return Ui;var t,a=Pd,i=a.length,c,O="value"in Sa?Sa.value:Sa.textContent,m=O.length;for(t=0;t<i&&a[t]===O[t];t++);var S=i-t;for(c=1;c<=S&&a[i-c]===O[m-c];c++);return Ui=O.slice(t,1<c?1-c:void 0)}function Vi(t){var a=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&a===13&&(t=13)):t=a,t===10&&(t=13),32<=t||t===13?t:0}function Gi(){return!0}function pm(){return!1}function Nt(t){function a(i,c,O,m,S){this._reactName=i,this._targetInst=O,this.type=c,this.nativeEvent=m,this.target=S,this.currentTarget=null;for(var $ in t)t.hasOwnProperty($)&&(i=t[$],this[$]=i?i(m):m[$]);return this.isDefaultPrevented=(m.defaultPrevented!=null?m.defaultPrevented:m.returnValue===!1)?Gi:pm,this.isPropagationStopped=pm,this}return x(a.prototype,{preventDefault:function(){this.defaultPrevented=!0;var i=this.nativeEvent;i&&(i.preventDefault?i.preventDefault():typeof i.returnValue!="unknown"&&(i.returnValue=!1),this.isDefaultPrevented=Gi)},stopPropagation:function(){var i=this.nativeEvent;i&&(i.stopPropagation?i.stopPropagation():typeof i.cancelBubble!="unknown"&&(i.cancelBubble=!0),this.isPropagationStopped=Gi)},persist:function(){},isPersistent:Gi}),a}var hs={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Di=Nt(hs),hr=x({},hs,{view:0,detail:0}),A2=Nt(hr),zd,Cd,mr,Li=x({},hr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:_d,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==mr&&(mr&&t.type==="mousemove"?(zd=t.screenX-mr.screenX,Cd=t.screenY-mr.screenY):Cd=zd=0,mr=t),zd)},movementY:function(t){return"movementY"in t?t.movementY:Cd}}),xm=Nt(Li),X2=x({},Li,{dataTransfer:0}),Z2=Nt(X2),E2=x({},hr,{relatedTarget:0}),Rd=Nt(E2),q2=x({},hs,{animationName:0,elapsedTime:0,pseudoElement:0}),M2=Nt(q2),Y2=x({},hs,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),U2=Nt(Y2),V2=x({},hs,{data:0}),gm=Nt(V2),G2={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},D2={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"},L2={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function W2(t){var a=this.nativeEvent;return a.getModifierState?a.getModifierState(t):(t=L2[t])?!!a[t]:!1}function _d(){return W2}var B2=x({},hr,{key:function(t){if(t.key){var a=G2[t.key]||t.key;if(a!=="Unidentified")return a}return t.type==="keypress"?(t=Vi(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?D2[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:_d,charCode:function(t){return t.type==="keypress"?Vi(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Vi(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),H2=Nt(B2),I2=x({},Li,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),bm=Nt(I2),F2=x({},hr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:_d}),K2=Nt(F2),J2=x({},hs,{propertyName:0,elapsedTime:0,pseudoElement:0}),eQ=Nt(J2),tQ=x({},Li,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),nQ=Nt(tQ),aQ=x({},hs,{newState:0,oldState:0}),sQ=Nt(aQ),lQ=[9,13,27,32],Ad=Gn&&"CompositionEvent"in window,pr=null;Gn&&"documentMode"in document&&(pr=document.documentMode);var rQ=Gn&&"TextEvent"in window&&!pr,vm=Gn&&(!Ad||pr&&8<pr&&11>=pr),ym=" ",Sm=!1;function Qm(t,a){switch(t){case"keyup":return lQ.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function jm(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var sl=!1;function iQ(t,a){switch(t){case"compositionend":return jm(a);case"keypress":return a.which!==32?null:(Sm=!0,ym);case"textInput":return t=a.data,t===ym&&Sm?null:t;default:return null}}function oQ(t,a){if(sl)return t==="compositionend"||!Ad&&Qm(t,a)?(t=mm(),Ui=Pd=Sa=null,sl=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(a.ctrlKey||a.altKey||a.metaKey)||a.ctrlKey&&a.altKey){if(a.char&&1<a.char.length)return a.char;if(a.which)return String.fromCharCode(a.which)}return null;case"compositionend":return vm&&a.locale!=="ko"?null:a.data;default:return null}}var cQ={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function wm(t){var a=t&&t.nodeName&&t.nodeName.toLowerCase();return a==="input"?!!cQ[t.type]:a==="textarea"}function km(t,a,i,c){nl?al?al.push(c):al=[c]:nl=c,a=Xo(a,"onChange"),0<a.length&&(i=new Di("onChange","change",null,i,c),t.push({event:i,listeners:a}))}var xr=null,gr=null;function dQ(t){og(t,0)}function Wi(t){var a=ur(t);if(im(a))return t}function $m(t,a){if(t==="change")return a}var Tm=!1;if(Gn){var Xd;if(Gn){var Zd="oninput"in document;if(!Zd){var Nm=document.createElement("div");Nm.setAttribute("oninput","return;"),Zd=typeof Nm.oninput=="function"}Xd=Zd}else Xd=!1;Tm=Xd&&(!document.documentMode||9<document.documentMode)}function Pm(){xr&&(xr.detachEvent("onpropertychange",zm),gr=xr=null)}function zm(t){if(t.propertyName==="value"&&Wi(gr)){var a=[];km(a,gr,t,$d(t)),hm(dQ,a)}}function uQ(t,a,i){t==="focusin"?(Pm(),xr=a,gr=i,xr.attachEvent("onpropertychange",zm)):t==="focusout"&&Pm()}function fQ(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Wi(gr)}function OQ(t,a){if(t==="click")return Wi(a)}function hQ(t,a){if(t==="input"||t==="change")return Wi(a)}function mQ(t,a){return t===a&&(t!==0||1/t===1/a)||t!==t&&a!==a}var qt=typeof Object.is=="function"?Object.is:mQ;function br(t,a){if(qt(t,a))return!0;if(typeof t!="object"||t===null||typeof a!="object"||a===null)return!1;var i=Object.keys(t),c=Object.keys(a);if(i.length!==c.length)return!1;for(c=0;c<i.length;c++){var O=i[c];if(!ba.call(a,O)||!qt(t[O],a[O]))return!1}return!0}function Cm(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Rm(t,a){var i=Cm(t);t=0;for(var c;i;){if(i.nodeType===3){if(c=t+i.textContent.length,t<=a&&c>=a)return{node:i,offset:a-t};t=c}e:{for(;i;){if(i.nextSibling){i=i.nextSibling;break e}i=i.parentNode}i=void 0}i=Cm(i)}}function _m(t,a){return t&&a?t===a?!0:t&&t.nodeType===3?!1:a&&a.nodeType===3?_m(t,a.parentNode):"contains"in t?t.contains(a):t.compareDocumentPosition?!!(t.compareDocumentPosition(a)&16):!1:!1}function Am(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var a=Mi(t.document);a instanceof t.HTMLIFrameElement;){try{var i=typeof a.contentWindow.location.href=="string"}catch{i=!1}if(i)t=a.contentWindow;else break;a=Mi(t.document)}return a}function Ed(t){var a=t&&t.nodeName&&t.nodeName.toLowerCase();return a&&(a==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||a==="textarea"||t.contentEditable==="true")}var pQ=Gn&&"documentMode"in document&&11>=document.documentMode,ll=null,qd=null,vr=null,Md=!1;function Xm(t,a,i){var c=i.window===i?i.document:i.nodeType===9?i:i.ownerDocument;Md||ll==null||ll!==Mi(c)||(c=ll,"selectionStart"in c&&Ed(c)?c={start:c.selectionStart,end:c.selectionEnd}:(c=(c.ownerDocument&&c.ownerDocument.defaultView||window).getSelection(),c={anchorNode:c.anchorNode,anchorOffset:c.anchorOffset,focusNode:c.focusNode,focusOffset:c.focusOffset}),vr&&br(vr,c)||(vr=c,c=Xo(qd,"onSelect"),0<c.length&&(a=new Di("onSelect","select",null,a,i),t.push({event:a,listeners:c}),a.target=ll)))}function ms(t,a){var i={};return i[t.toLowerCase()]=a.toLowerCase(),i["Webkit"+t]="webkit"+a,i["Moz"+t]="moz"+a,i}var rl={animationend:ms("Animation","AnimationEnd"),animationiteration:ms("Animation","AnimationIteration"),animationstart:ms("Animation","AnimationStart"),transitionrun:ms("Transition","TransitionRun"),transitionstart:ms("Transition","TransitionStart"),transitioncancel:ms("Transition","TransitionCancel"),transitionend:ms("Transition","TransitionEnd")},Yd={},Zm={};Gn&&(Zm=document.createElement("div").style,"AnimationEvent"in window||(delete rl.animationend.animation,delete rl.animationiteration.animation,delete rl.animationstart.animation),"TransitionEvent"in window||delete rl.transitionend.transition);function ps(t){if(Yd[t])return Yd[t];if(!rl[t])return t;var a=rl[t],i;for(i in a)if(a.hasOwnProperty(i)&&i in Zm)return Yd[t]=a[i];return t}var Em=ps("animationend"),qm=ps("animationiteration"),Mm=ps("animationstart"),xQ=ps("transitionrun"),gQ=ps("transitionstart"),bQ=ps("transitioncancel"),Ym=ps("transitionend"),Um=new Map,Ud="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(" ");Ud.push("scrollEnd");function On(t,a){Um.set(t,a),Os(a,[t])}var Bi=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var a=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(a))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},en=[],il=0,Vd=0;function Hi(){for(var t=il,a=Vd=il=0;a<t;){var i=en[a];en[a++]=null;var c=en[a];en[a++]=null;var O=en[a];en[a++]=null;var m=en[a];if(en[a++]=null,c!==null&&O!==null){var S=c.pending;S===null?O.next=O:(O.next=S.next,S.next=O),c.pending=O}m!==0&&Vm(i,O,m)}}function Ii(t,a,i,c){en[il++]=t,en[il++]=a,en[il++]=i,en[il++]=c,Vd|=c,t.lanes|=c,t=t.alternate,t!==null&&(t.lanes|=c)}function Gd(t,a,i,c){return Ii(t,a,i,c),Fi(t)}function xs(t,a){return Ii(t,null,null,a),Fi(t)}function Vm(t,a,i){t.lanes|=i;var c=t.alternate;c!==null&&(c.lanes|=i);for(var O=!1,m=t.return;m!==null;)m.childLanes|=i,c=m.alternate,c!==null&&(c.childLanes|=i),m.tag===22&&(t=m.stateNode,t===null||t._visibility&1||(O=!0)),t=m,m=m.return;return t.tag===3?(m=t.stateNode,O&&a!==null&&(O=31-Et(i),t=m.hiddenUpdates,c=t[O],c===null?t[O]=[a]:c.push(a),a.lane=i|536870912),m):null}function Fi(t){if(50<Ur)throw Ur=0,Ju=null,Error(r(185));for(var a=t.return;a!==null;)t=a,a=t.return;return t.tag===3?t.stateNode:null}var ol={};function vQ(t,a,i,c){this.tag=t,this.key=i,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=a,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=c,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Mt(t,a,i,c){return new vQ(t,a,i,c)}function Dd(t){return t=t.prototype,!(!t||!t.isReactComponent)}function Dn(t,a){var i=t.alternate;return i===null?(i=Mt(t.tag,a,t.key,t.mode),i.elementType=t.elementType,i.type=t.type,i.stateNode=t.stateNode,i.alternate=t,t.alternate=i):(i.pendingProps=a,i.type=t.type,i.flags=0,i.subtreeFlags=0,i.deletions=null),i.flags=t.flags&65011712,i.childLanes=t.childLanes,i.lanes=t.lanes,i.child=t.child,i.memoizedProps=t.memoizedProps,i.memoizedState=t.memoizedState,i.updateQueue=t.updateQueue,a=t.dependencies,i.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},i.sibling=t.sibling,i.index=t.index,i.ref=t.ref,i.refCleanup=t.refCleanup,i}function Gm(t,a){t.flags&=65011714;var i=t.alternate;return i===null?(t.childLanes=0,t.lanes=a,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=i.childLanes,t.lanes=i.lanes,t.child=i.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=i.memoizedProps,t.memoizedState=i.memoizedState,t.updateQueue=i.updateQueue,t.type=i.type,a=i.dependencies,t.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext}),t}function Ki(t,a,i,c,O,m){var S=0;if(c=t,typeof t=="function")Dd(t)&&(S=1);else if(typeof t=="string")S=wj(t,i,be.current)?26:t==="html"||t==="head"||t==="body"?27:5;else e:switch(t){case I:return t=Mt(31,i,a,O),t.elementType=I,t.lanes=m,t;case w:return gs(i.children,O,m,a);case k:S=8,O|=24;break;case j:return t=Mt(12,i,a,O|2),t.elementType=j,t.lanes=m,t;case Y:return t=Mt(13,i,a,O),t.elementType=Y,t.lanes=m,t;case X:return t=Mt(19,i,a,O),t.elementType=X,t.lanes=m,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case z:S=10;break e;case P:S=9;break e;case R:S=11;break e;case C:S=14;break e;case T:S=16,c=null;break e}S=29,i=Error(r(130,t===null?"null":typeof t,"")),c=null}return a=Mt(S,i,a,O),a.elementType=t,a.type=c,a.lanes=m,a}function gs(t,a,i,c){return t=Mt(7,t,c,a),t.lanes=i,t}function Ld(t,a,i){return t=Mt(6,t,null,a),t.lanes=i,t}function Dm(t){var a=Mt(18,null,null,0);return a.stateNode=t,a}function Wd(t,a,i){return a=Mt(4,t.children!==null?t.children:[],t.key,a),a.lanes=i,a.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},a}var Lm=new WeakMap;function tn(t,a){if(typeof t=="object"&&t!==null){var i=Lm.get(t);return i!==void 0?i:(a={value:t,source:a,stack:Ci(a)},Lm.set(t,a),a)}return{value:t,source:a,stack:Ci(a)}}var cl=[],dl=0,Ji=null,yr=0,nn=[],an=0,Qa=null,wn=1,kn="";function Ln(t,a){cl[dl++]=yr,cl[dl++]=Ji,Ji=t,yr=a}function Wm(t,a,i){nn[an++]=wn,nn[an++]=kn,nn[an++]=Qa,Qa=t;var c=wn;t=kn;var O=32-Et(c)-1;c&=~(1<<O),i+=1;var m=32-Et(a)+O;if(30<m){var S=O-O%5;m=(c&(1<<S)-1).toString(32),c>>=S,O-=S,wn=1<<32-Et(a)+O|i<<O|c,kn=m+t}else wn=1<<m|i<<O|c,kn=t}function Bd(t){t.return!==null&&(Ln(t,1),Wm(t,1,0))}function Hd(t){for(;t===Ji;)Ji=cl[--dl],cl[dl]=null,yr=cl[--dl],cl[dl]=null;for(;t===Qa;)Qa=nn[--an],nn[an]=null,kn=nn[--an],nn[an]=null,wn=nn[--an],nn[an]=null}function Bm(t,a){nn[an++]=wn,nn[an++]=kn,nn[an++]=Qa,wn=a.id,kn=a.overflow,Qa=t}var bt=null,Fe=null,Ze=!1,ja=null,sn=!1,Id=Error(r(519));function wa(t){var a=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Sr(tn(a,t)),Id}function Hm(t){var a=t.stateNode,i=t.type,c=t.memoizedProps;switch(a[gt]=t,a[Tt]=c,i){case"dialog":_e("cancel",a),_e("close",a);break;case"iframe":case"object":case"embed":_e("load",a);break;case"video":case"audio":for(i=0;i<Gr.length;i++)_e(Gr[i],a);break;case"source":_e("error",a);break;case"img":case"image":case"link":_e("error",a),_e("load",a);break;case"details":_e("toggle",a);break;case"input":_e("invalid",a),om(a,c.value,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name,!0);break;case"select":_e("invalid",a);break;case"textarea":_e("invalid",a),dm(a,c.value,c.defaultValue,c.children)}i=c.children,typeof i!="string"&&typeof i!="number"&&typeof i!="bigint"||a.textContent===""+i||c.suppressHydrationWarning===!0||fg(a.textContent,i)?(c.popover!=null&&(_e("beforetoggle",a),_e("toggle",a)),c.onScroll!=null&&_e("scroll",a),c.onScrollEnd!=null&&_e("scrollend",a),c.onClick!=null&&(a.onclick=Vn),a=!0):a=!1,a||wa(t,!0)}function Im(t){for(bt=t.return;bt;)switch(bt.tag){case 5:case 31:case 13:sn=!1;return;case 27:case 3:sn=!0;return;default:bt=bt.return}}function ul(t){if(t!==bt)return!1;if(!Ze)return Im(t),Ze=!0,!1;var a=t.tag,i;if((i=a!==3&&a!==27)&&((i=a===5)&&(i=t.type,i=!(i!=="form"&&i!=="button")||mf(t.type,t.memoizedProps)),i=!i),i&&Fe&&wa(t),Im(t),a===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(317));Fe=yg(t)}else if(a===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(317));Fe=yg(t)}else a===27?(a=Fe,qa(t.type)?(t=vf,vf=null,Fe=t):Fe=a):Fe=bt?rn(t.stateNode.nextSibling):null;return!0}function bs(){Fe=bt=null,Ze=!1}function Fd(){var t=ja;return t!==null&&(Rt===null?Rt=t:Rt.push.apply(Rt,t),ja=null),t}function Sr(t){ja===null?ja=[t]:ja.push(t)}var Kd=we(null),vs=null,Wn=null;function ka(t,a,i){me(Kd,a._currentValue),a._currentValue=i}function Bn(t){t._currentValue=Kd.current,Qe(Kd)}function Jd(t,a,i){for(;t!==null;){var c=t.alternate;if((t.childLanes&a)!==a?(t.childLanes|=a,c!==null&&(c.childLanes|=a)):c!==null&&(c.childLanes&a)!==a&&(c.childLanes|=a),t===i)break;t=t.return}}function eu(t,a,i,c){var O=t.child;for(O!==null&&(O.return=t);O!==null;){var m=O.dependencies;if(m!==null){var S=O.child;m=m.firstContext;e:for(;m!==null;){var $=m;m=O;for(var _=0;_<a.length;_++)if($.context===a[_]){m.lanes|=i,$=m.alternate,$!==null&&($.lanes|=i),Jd(m.return,i,t),c||(S=null);break e}m=$.next}}else if(O.tag===18){if(S=O.return,S===null)throw Error(r(341));S.lanes|=i,m=S.alternate,m!==null&&(m.lanes|=i),Jd(S,i,t),S=null}else S=O.child;if(S!==null)S.return=O;else for(S=O;S!==null;){if(S===t){S=null;break}if(O=S.sibling,O!==null){O.return=S.return,S=O;break}S=S.return}O=S}}function fl(t,a,i,c){t=null;for(var O=a,m=!1;O!==null;){if(!m){if((O.flags&524288)!==0)m=!0;else if((O.flags&262144)!==0)break}if(O.tag===10){var S=O.alternate;if(S===null)throw Error(r(387));if(S=S.memoizedProps,S!==null){var $=O.type;qt(O.pendingProps.value,S.value)||(t!==null?t.push($):t=[$])}}else if(O===Se.current){if(S=O.alternate,S===null)throw Error(r(387));S.memoizedState.memoizedState!==O.memoizedState.memoizedState&&(t!==null?t.push(Hr):t=[Hr])}O=O.return}t!==null&&eu(a,t,i,c),a.flags|=262144}function eo(t){for(t=t.firstContext;t!==null;){if(!qt(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function ys(t){vs=t,Wn=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function vt(t){return Fm(vs,t)}function to(t,a){return vs===null&&ys(t),Fm(t,a)}function Fm(t,a){var i=a._currentValue;if(a={context:a,memoizedValue:i,next:null},Wn===null){if(t===null)throw Error(r(308));Wn=a,t.dependencies={lanes:0,firstContext:a},t.flags|=524288}else Wn=Wn.next=a;return i}var yQ=typeof AbortController<"u"?AbortController:function(){var t=[],a=this.signal={aborted:!1,addEventListener:function(i,c){t.push(c)}};this.abort=function(){a.aborted=!0,t.forEach(function(i){return i()})}},SQ=e.unstable_scheduleCallback,QQ=e.unstable_NormalPriority,rt={$$typeof:z,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function tu(){return{controller:new yQ,data:new Map,refCount:0}}function Qr(t){t.refCount--,t.refCount===0&&SQ(QQ,function(){t.controller.abort()})}var jr=null,nu=0,Ol=0,hl=null;function jQ(t,a){if(jr===null){var i=jr=[];nu=0,Ol=lf(),hl={status:"pending",value:void 0,then:function(c){i.push(c)}}}return nu++,a.then(Km,Km),a}function Km(){if(--nu===0&&jr!==null){hl!==null&&(hl.status="fulfilled");var t=jr;jr=null,Ol=0,hl=null;for(var a=0;a<t.length;a++)(0,t[a])()}}function wQ(t,a){var i=[],c={status:"pending",value:null,reason:null,then:function(O){i.push(O)}};return t.then(function(){c.status="fulfilled",c.value=a;for(var O=0;O<i.length;O++)(0,i[O])(a)},function(O){for(c.status="rejected",c.reason=O,O=0;O<i.length;O++)(0,i[O])(void 0)}),c}var Jm=N.S;N.S=function(t,a){Xx=Xt(),typeof a=="object"&&a!==null&&typeof a.then=="function"&&jQ(t,a),Jm!==null&&Jm(t,a)};var Ss=we(null);function au(){var t=Ss.current;return t!==null?t:He.pooledCache}function no(t,a){a===null?me(Ss,Ss.current):me(Ss,a.pool)}function ep(){var t=au();return t===null?null:{parent:rt._currentValue,pool:t}}var ml=Error(r(460)),su=Error(r(474)),ao=Error(r(542)),so={then:function(){}};function tp(t){return t=t.status,t==="fulfilled"||t==="rejected"}function np(t,a,i){switch(i=t[i],i===void 0?t.push(a):i!==a&&(a.then(Vn,Vn),a=i),a.status){case"fulfilled":return a.value;case"rejected":throw t=a.reason,sp(t),t;default:if(typeof a.status=="string")a.then(Vn,Vn);else{if(t=He,t!==null&&100<t.shellSuspendCounter)throw Error(r(482));t=a,t.status="pending",t.then(function(c){if(a.status==="pending"){var O=a;O.status="fulfilled",O.value=c}},function(c){if(a.status==="pending"){var O=a;O.status="rejected",O.reason=c}})}switch(a.status){case"fulfilled":return a.value;case"rejected":throw t=a.reason,sp(t),t}throw js=a,ml}}function Qs(t){try{var a=t._init;return a(t._payload)}catch(i){throw i!==null&&typeof i=="object"&&typeof i.then=="function"?(js=i,ml):i}}var js=null;function ap(){if(js===null)throw Error(r(459));var t=js;return js=null,t}function sp(t){if(t===ml||t===ao)throw Error(r(483))}var pl=null,wr=0;function lo(t){var a=wr;return wr+=1,pl===null&&(pl=[]),np(pl,t,a)}function kr(t,a){a=a.props.ref,t.ref=a!==void 0?a:null}function ro(t,a){throw a.$$typeof===b?Error(r(525)):(t=Object.prototype.toString.call(a),Error(r(31,t==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":t)))}function lp(t){function a(q,A){if(t){var D=q.deletions;D===null?(q.deletions=[A],q.flags|=16):D.push(A)}}function i(q,A){if(!t)return null;for(;A!==null;)a(q,A),A=A.sibling;return null}function c(q){for(var A=new Map;q!==null;)q.key!==null?A.set(q.key,q):A.set(q.index,q),q=q.sibling;return A}function O(q,A){return q=Dn(q,A),q.index=0,q.sibling=null,q}function m(q,A,D){return q.index=D,t?(D=q.alternate,D!==null?(D=D.index,D<A?(q.flags|=67108866,A):D):(q.flags|=67108866,A)):(q.flags|=1048576,A)}function S(q){return t&&q.alternate===null&&(q.flags|=67108866),q}function $(q,A,D,le){return A===null||A.tag!==6?(A=Ld(D,q.mode,le),A.return=q,A):(A=O(A,D),A.return=q,A)}function _(q,A,D,le){var ye=D.type;return ye===w?ae(q,A,D.props.children,le,D.key):A!==null&&(A.elementType===ye||typeof ye=="object"&&ye!==null&&ye.$$typeof===T&&Qs(ye)===A.type)?(A=O(A,D.props),kr(A,D),A.return=q,A):(A=Ki(D.type,D.key,D.props,null,q.mode,le),kr(A,D),A.return=q,A)}function L(q,A,D,le){return A===null||A.tag!==4||A.stateNode.containerInfo!==D.containerInfo||A.stateNode.implementation!==D.implementation?(A=Wd(D,q.mode,le),A.return=q,A):(A=O(A,D.children||[]),A.return=q,A)}function ae(q,A,D,le,ye){return A===null||A.tag!==7?(A=gs(D,q.mode,le,ye),A.return=q,A):(A=O(A,D),A.return=q,A)}function re(q,A,D){if(typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint")return A=Ld(""+A,q.mode,D),A.return=q,A;if(typeof A=="object"&&A!==null){switch(A.$$typeof){case y:return D=Ki(A.type,A.key,A.props,null,q.mode,D),kr(D,A),D.return=q,D;case Q:return A=Wd(A,q.mode,D),A.return=q,A;case T:return A=Qs(A),re(q,A,D)}if(M(A)||F(A))return A=gs(A,q.mode,D,null),A.return=q,A;if(typeof A.then=="function")return re(q,lo(A),D);if(A.$$typeof===z)return re(q,to(q,A),D);ro(q,A)}return null}function H(q,A,D,le){var ye=A!==null?A.key:null;if(typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint")return ye!==null?null:$(q,A,""+D,le);if(typeof D=="object"&&D!==null){switch(D.$$typeof){case y:return D.key===ye?_(q,A,D,le):null;case Q:return D.key===ye?L(q,A,D,le):null;case T:return D=Qs(D),H(q,A,D,le)}if(M(D)||F(D))return ye!==null?null:ae(q,A,D,le,null);if(typeof D.then=="function")return H(q,A,lo(D),le);if(D.$$typeof===z)return H(q,A,to(q,D),le);ro(q,D)}return null}function te(q,A,D,le,ye){if(typeof le=="string"&&le!==""||typeof le=="number"||typeof le=="bigint")return q=q.get(D)||null,$(A,q,""+le,ye);if(typeof le=="object"&&le!==null){switch(le.$$typeof){case y:return q=q.get(le.key===null?D:le.key)||null,_(A,q,le,ye);case Q:return q=q.get(le.key===null?D:le.key)||null,L(A,q,le,ye);case T:return le=Qs(le),te(q,A,D,le,ye)}if(M(le)||F(le))return q=q.get(D)||null,ae(A,q,le,ye,null);if(typeof le.then=="function")return te(q,A,D,lo(le),ye);if(le.$$typeof===z)return te(q,A,D,to(A,le),ye);ro(A,le)}return null}function Oe(q,A,D,le){for(var ye=null,qe=null,xe=A,Te=A=0,Xe=null;xe!==null&&Te<D.length;Te++){xe.index>Te?(Xe=xe,xe=null):Xe=xe.sibling;var Me=H(q,xe,D[Te],le);if(Me===null){xe===null&&(xe=Xe);break}t&&xe&&Me.alternate===null&&a(q,xe),A=m(Me,A,Te),qe===null?ye=Me:qe.sibling=Me,qe=Me,xe=Xe}if(Te===D.length)return i(q,xe),Ze&&Ln(q,Te),ye;if(xe===null){for(;Te<D.length;Te++)xe=re(q,D[Te],le),xe!==null&&(A=m(xe,A,Te),qe===null?ye=xe:qe.sibling=xe,qe=xe);return Ze&&Ln(q,Te),ye}for(xe=c(xe);Te<D.length;Te++)Xe=te(xe,q,Te,D[Te],le),Xe!==null&&(t&&Xe.alternate!==null&&xe.delete(Xe.key===null?Te:Xe.key),A=m(Xe,A,Te),qe===null?ye=Xe:qe.sibling=Xe,qe=Xe);return t&&xe.forEach(function(Ga){return a(q,Ga)}),Ze&&Ln(q,Te),ye}function je(q,A,D,le){if(D==null)throw Error(r(151));for(var ye=null,qe=null,xe=A,Te=A=0,Xe=null,Me=D.next();xe!==null&&!Me.done;Te++,Me=D.next()){xe.index>Te?(Xe=xe,xe=null):Xe=xe.sibling;var Ga=H(q,xe,Me.value,le);if(Ga===null){xe===null&&(xe=Xe);break}t&&xe&&Ga.alternate===null&&a(q,xe),A=m(Ga,A,Te),qe===null?ye=Ga:qe.sibling=Ga,qe=Ga,xe=Xe}if(Me.done)return i(q,xe),Ze&&Ln(q,Te),ye;if(xe===null){for(;!Me.done;Te++,Me=D.next())Me=re(q,Me.value,le),Me!==null&&(A=m(Me,A,Te),qe===null?ye=Me:qe.sibling=Me,qe=Me);return Ze&&Ln(q,Te),ye}for(xe=c(xe);!Me.done;Te++,Me=D.next())Me=te(xe,q,Te,Me.value,le),Me!==null&&(t&&Me.alternate!==null&&xe.delete(Me.key===null?Te:Me.key),A=m(Me,A,Te),qe===null?ye=Me:qe.sibling=Me,qe=Me);return t&&xe.forEach(function(Xj){return a(q,Xj)}),Ze&&Ln(q,Te),ye}function Be(q,A,D,le){if(typeof D=="object"&&D!==null&&D.type===w&&D.key===null&&(D=D.props.children),typeof D=="object"&&D!==null){switch(D.$$typeof){case y:e:{for(var ye=D.key;A!==null;){if(A.key===ye){if(ye=D.type,ye===w){if(A.tag===7){i(q,A.sibling),le=O(A,D.props.children),le.return=q,q=le;break e}}else if(A.elementType===ye||typeof ye=="object"&&ye!==null&&ye.$$typeof===T&&Qs(ye)===A.type){i(q,A.sibling),le=O(A,D.props),kr(le,D),le.return=q,q=le;break e}i(q,A);break}else a(q,A);A=A.sibling}D.type===w?(le=gs(D.props.children,q.mode,le,D.key),le.return=q,q=le):(le=Ki(D.type,D.key,D.props,null,q.mode,le),kr(le,D),le.return=q,q=le)}return S(q);case Q:e:{for(ye=D.key;A!==null;){if(A.key===ye)if(A.tag===4&&A.stateNode.containerInfo===D.containerInfo&&A.stateNode.implementation===D.implementation){i(q,A.sibling),le=O(A,D.children||[]),le.return=q,q=le;break e}else{i(q,A);break}else a(q,A);A=A.sibling}le=Wd(D,q.mode,le),le.return=q,q=le}return S(q);case T:return D=Qs(D),Be(q,A,D,le)}if(M(D))return Oe(q,A,D,le);if(F(D)){if(ye=F(D),typeof ye!="function")throw Error(r(150));return D=ye.call(D),je(q,A,D,le)}if(typeof D.then=="function")return Be(q,A,lo(D),le);if(D.$$typeof===z)return Be(q,A,to(q,D),le);ro(q,D)}return typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint"?(D=""+D,A!==null&&A.tag===6?(i(q,A.sibling),le=O(A,D),le.return=q,q=le):(i(q,A),le=Ld(D,q.mode,le),le.return=q,q=le),S(q)):i(q,A)}return function(q,A,D,le){try{wr=0;var ye=Be(q,A,D,le);return pl=null,ye}catch(xe){if(xe===ml||xe===ao)throw xe;var qe=Mt(29,xe,null,q.mode);return qe.lanes=le,qe.return=q,qe}finally{}}}var ws=lp(!0),rp=lp(!1),$a=!1;function lu(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function ru(t,a){t=t.updateQueue,a.updateQueue===t&&(a.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function Ta(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function Na(t,a,i){var c=t.updateQueue;if(c===null)return null;if(c=c.shared,(Ye&2)!==0){var O=c.pending;return O===null?a.next=a:(a.next=O.next,O.next=a),c.pending=a,a=Fi(t),Vm(t,null,i),a}return Ii(t,c,a,i),Fi(t)}function $r(t,a,i){if(a=a.updateQueue,a!==null&&(a=a.shared,(i&4194048)!==0)){var c=a.lanes;c&=t.pendingLanes,i|=c,a.lanes=i,Fh(t,i)}}function iu(t,a){var i=t.updateQueue,c=t.alternate;if(c!==null&&(c=c.updateQueue,i===c)){var O=null,m=null;if(i=i.firstBaseUpdate,i!==null){do{var S={lane:i.lane,tag:i.tag,payload:i.payload,callback:null,next:null};m===null?O=m=S:m=m.next=S,i=i.next}while(i!==null);m===null?O=m=a:m=m.next=a}else O=m=a;i={baseState:c.baseState,firstBaseUpdate:O,lastBaseUpdate:m,shared:c.shared,callbacks:c.callbacks},t.updateQueue=i;return}t=i.lastBaseUpdate,t===null?i.firstBaseUpdate=a:t.next=a,i.lastBaseUpdate=a}var ou=!1;function Tr(){if(ou){var t=hl;if(t!==null)throw t}}function Nr(t,a,i,c){ou=!1;var O=t.updateQueue;$a=!1;var m=O.firstBaseUpdate,S=O.lastBaseUpdate,$=O.shared.pending;if($!==null){O.shared.pending=null;var _=$,L=_.next;_.next=null,S===null?m=L:S.next=L,S=_;var ae=t.alternate;ae!==null&&(ae=ae.updateQueue,$=ae.lastBaseUpdate,$!==S&&($===null?ae.firstBaseUpdate=L:$.next=L,ae.lastBaseUpdate=_))}if(m!==null){var re=O.baseState;S=0,ae=L=_=null,$=m;do{var H=$.lane&-536870913,te=H!==$.lane;if(te?(Ae&H)===H:(c&H)===H){H!==0&&H===Ol&&(ou=!0),ae!==null&&(ae=ae.next={lane:0,tag:$.tag,payload:$.payload,callback:null,next:null});e:{var Oe=t,je=$;H=a;var Be=i;switch(je.tag){case 1:if(Oe=je.payload,typeof Oe=="function"){re=Oe.call(Be,re,H);break e}re=Oe;break e;case 3:Oe.flags=Oe.flags&-65537|128;case 0:if(Oe=je.payload,H=typeof Oe=="function"?Oe.call(Be,re,H):Oe,H==null)break e;re=x({},re,H);break e;case 2:$a=!0}}H=$.callback,H!==null&&(t.flags|=64,te&&(t.flags|=8192),te=O.callbacks,te===null?O.callbacks=[H]:te.push(H))}else te={lane:H,tag:$.tag,payload:$.payload,callback:$.callback,next:null},ae===null?(L=ae=te,_=re):ae=ae.next=te,S|=H;if($=$.next,$===null){if($=O.shared.pending,$===null)break;te=$,$=te.next,te.next=null,O.lastBaseUpdate=te,O.shared.pending=null}}while(!0);ae===null&&(_=re),O.baseState=_,O.firstBaseUpdate=L,O.lastBaseUpdate=ae,m===null&&(O.shared.lanes=0),_a|=S,t.lanes=S,t.memoizedState=re}}function ip(t,a){if(typeof t!="function")throw Error(r(191,t));t.call(a)}function op(t,a){var i=t.callbacks;if(i!==null)for(t.callbacks=null,t=0;t<i.length;t++)ip(i[t],a)}var xl=we(null),io=we(0);function cp(t,a){t=aa,me(io,t),me(xl,a),aa=t|a.baseLanes}function cu(){me(io,aa),me(xl,xl.current)}function du(){aa=io.current,Qe(xl),Qe(io)}var Yt=we(null),ln=null;function Pa(t){var a=t.alternate;me(st,st.current&1),me(Yt,t),ln===null&&(a===null||xl.current!==null||a.memoizedState!==null)&&(ln=t)}function uu(t){me(st,st.current),me(Yt,t),ln===null&&(ln=t)}function dp(t){t.tag===22?(me(st,st.current),me(Yt,t),ln===null&&(ln=t)):za()}function za(){me(st,st.current),me(Yt,Yt.current)}function Ut(t){Qe(Yt),ln===t&&(ln=null),Qe(st)}var st=we(0);function oo(t){for(var a=t;a!==null;){if(a.tag===13){var i=a.memoizedState;if(i!==null&&(i=i.dehydrated,i===null||gf(i)||bf(i)))return a}else if(a.tag===19&&(a.memoizedProps.revealOrder==="forwards"||a.memoizedProps.revealOrder==="backwards"||a.memoizedProps.revealOrder==="unstable_legacy-backwards"||a.memoizedProps.revealOrder==="together")){if((a.flags&128)!==0)return a}else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===t)break;for(;a.sibling===null;){if(a.return===null||a.return===t)return null;a=a.return}a.sibling.return=a.return,a=a.sibling}return null}var Hn=0,$e=null,Le=null,it=null,co=!1,gl=!1,ks=!1,uo=0,Pr=0,bl=null,kQ=0;function nt(){throw Error(r(321))}function fu(t,a){if(a===null)return!1;for(var i=0;i<a.length&&i<t.length;i++)if(!qt(t[i],a[i]))return!1;return!0}function Ou(t,a,i,c,O,m){return Hn=m,$e=a,a.memoizedState=null,a.updateQueue=null,a.lanes=0,N.H=t===null||t.memoizedState===null?Wp:Tu,ks=!1,m=i(c,O),ks=!1,gl&&(m=fp(a,i,c,O)),up(t),m}function up(t){N.H=Rr;var a=Le!==null&&Le.next!==null;if(Hn=0,it=Le=$e=null,co=!1,Pr=0,bl=null,a)throw Error(r(300));t===null||ot||(t=t.dependencies,t!==null&&eo(t)&&(ot=!0))}function fp(t,a,i,c){$e=t;var O=0;do{if(gl&&(bl=null),Pr=0,gl=!1,25<=O)throw Error(r(301));if(O+=1,it=Le=null,t.updateQueue!=null){var m=t.updateQueue;m.lastEffect=null,m.events=null,m.stores=null,m.memoCache!=null&&(m.memoCache.index=0)}N.H=Bp,m=a(i,c)}while(gl);return m}function $Q(){var t=N.H,a=t.useState()[0];return a=typeof a.then=="function"?zr(a):a,t=t.useState()[0],(Le!==null?Le.memoizedState:null)!==t&&($e.flags|=1024),a}function hu(){var t=uo!==0;return uo=0,t}function mu(t,a,i){a.updateQueue=t.updateQueue,a.flags&=-2053,t.lanes&=~i}function pu(t){if(co){for(t=t.memoizedState;t!==null;){var a=t.queue;a!==null&&(a.pending=null),t=t.next}co=!1}Hn=0,it=Le=$e=null,gl=!1,Pr=uo=0,bl=null}function $t(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return it===null?$e.memoizedState=it=t:it=it.next=t,it}function lt(){if(Le===null){var t=$e.alternate;t=t!==null?t.memoizedState:null}else t=Le.next;var a=it===null?$e.memoizedState:it.next;if(a!==null)it=a,Le=t;else{if(t===null)throw $e.alternate===null?Error(r(467)):Error(r(310));Le=t,t={memoizedState:Le.memoizedState,baseState:Le.baseState,baseQueue:Le.baseQueue,queue:Le.queue,next:null},it===null?$e.memoizedState=it=t:it=it.next=t}return it}function fo(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function zr(t){var a=Pr;return Pr+=1,bl===null&&(bl=[]),t=np(bl,t,a),a=$e,(it===null?a.memoizedState:it.next)===null&&(a=a.alternate,N.H=a===null||a.memoizedState===null?Wp:Tu),t}function Oo(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return zr(t);if(t.$$typeof===z)return vt(t)}throw Error(r(438,String(t)))}function xu(t){var a=null,i=$e.updateQueue;if(i!==null&&(a=i.memoCache),a==null){var c=$e.alternate;c!==null&&(c=c.updateQueue,c!==null&&(c=c.memoCache,c!=null&&(a={data:c.data.map(function(O){return O.slice()}),index:0})))}if(a==null&&(a={data:[],index:0}),i===null&&(i=fo(),$e.updateQueue=i),i.memoCache=a,i=a.data[a.index],i===void 0)for(i=a.data[a.index]=Array(t),c=0;c<t;c++)i[c]=Z;return a.index++,i}function In(t,a){return typeof a=="function"?a(t):a}function ho(t){var a=lt();return gu(a,Le,t)}function gu(t,a,i){var c=t.queue;if(c===null)throw Error(r(311));c.lastRenderedReducer=i;var O=t.baseQueue,m=c.pending;if(m!==null){if(O!==null){var S=O.next;O.next=m.next,m.next=S}a.baseQueue=O=m,c.pending=null}if(m=t.baseState,O===null)t.memoizedState=m;else{a=O.next;var $=S=null,_=null,L=a,ae=!1;do{var re=L.lane&-536870913;if(re!==L.lane?(Ae&re)===re:(Hn&re)===re){var H=L.revertLane;if(H===0)_!==null&&(_=_.next={lane:0,revertLane:0,gesture:null,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null}),re===Ol&&(ae=!0);else if((Hn&H)===H){L=L.next,H===Ol&&(ae=!0);continue}else re={lane:0,revertLane:L.revertLane,gesture:null,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null},_===null?($=_=re,S=m):_=_.next=re,$e.lanes|=H,_a|=H;re=L.action,ks&&i(m,re),m=L.hasEagerState?L.eagerState:i(m,re)}else H={lane:re,revertLane:L.revertLane,gesture:L.gesture,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null},_===null?($=_=H,S=m):_=_.next=H,$e.lanes|=re,_a|=re;L=L.next}while(L!==null&&L!==a);if(_===null?S=m:_.next=$,!qt(m,t.memoizedState)&&(ot=!0,ae&&(i=hl,i!==null)))throw i;t.memoizedState=m,t.baseState=S,t.baseQueue=_,c.lastRenderedState=m}return O===null&&(c.lanes=0),[t.memoizedState,c.dispatch]}function bu(t){var a=lt(),i=a.queue;if(i===null)throw Error(r(311));i.lastRenderedReducer=t;var c=i.dispatch,O=i.pending,m=a.memoizedState;if(O!==null){i.pending=null;var S=O=O.next;do m=t(m,S.action),S=S.next;while(S!==O);qt(m,a.memoizedState)||(ot=!0),a.memoizedState=m,a.baseQueue===null&&(a.baseState=m),i.lastRenderedState=m}return[m,c]}function Op(t,a,i){var c=$e,O=lt(),m=Ze;if(m){if(i===void 0)throw Error(r(407));i=i()}else i=a();var S=!qt((Le||O).memoizedState,i);if(S&&(O.memoizedState=i,ot=!0),O=O.queue,Su(pp.bind(null,c,O,t),[t]),O.getSnapshot!==a||S||it!==null&&it.memoizedState.tag&1){if(c.flags|=2048,vl(9,{destroy:void 0},mp.bind(null,c,O,i,a),null),He===null)throw Error(r(349));m||(Hn&127)!==0||hp(c,a,i)}return i}function hp(t,a,i){t.flags|=16384,t={getSnapshot:a,value:i},a=$e.updateQueue,a===null?(a=fo(),$e.updateQueue=a,a.stores=[t]):(i=a.stores,i===null?a.stores=[t]:i.push(t))}function mp(t,a,i,c){a.value=i,a.getSnapshot=c,xp(a)&&gp(t)}function pp(t,a,i){return i(function(){xp(a)&&gp(t)})}function xp(t){var a=t.getSnapshot;t=t.value;try{var i=a();return!qt(t,i)}catch{return!0}}function gp(t){var a=xs(t,2);a!==null&&_t(a,t,2)}function vu(t){var a=$t();if(typeof t=="function"){var i=t;if(t=i(),ks){va(!0);try{i()}finally{va(!1)}}}return a.memoizedState=a.baseState=t,a.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:In,lastRenderedState:t},a}function bp(t,a,i,c){return t.baseState=i,gu(t,Le,typeof c=="function"?c:In)}function TQ(t,a,i,c,O){if(xo(t))throw Error(r(485));if(t=a.action,t!==null){var m={payload:O,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(S){m.listeners.push(S)}};N.T!==null?i(!0):m.isTransition=!1,c(m),i=a.pending,i===null?(m.next=a.pending=m,vp(a,m)):(m.next=i.next,a.pending=i.next=m)}}function vp(t,a){var i=a.action,c=a.payload,O=t.state;if(a.isTransition){var m=N.T,S={};N.T=S;try{var $=i(O,c),_=N.S;_!==null&&_(S,$),yp(t,a,$)}catch(L){yu(t,a,L)}finally{m!==null&&S.types!==null&&(m.types=S.types),N.T=m}}else try{m=i(O,c),yp(t,a,m)}catch(L){yu(t,a,L)}}function yp(t,a,i){i!==null&&typeof i=="object"&&typeof i.then=="function"?i.then(function(c){Sp(t,a,c)},function(c){return yu(t,a,c)}):Sp(t,a,i)}function Sp(t,a,i){a.status="fulfilled",a.value=i,Qp(a),t.state=i,a=t.pending,a!==null&&(i=a.next,i===a?t.pending=null:(i=i.next,a.next=i,vp(t,i)))}function yu(t,a,i){var c=t.pending;if(t.pending=null,c!==null){c=c.next;do a.status="rejected",a.reason=i,Qp(a),a=a.next;while(a!==c)}t.action=null}function Qp(t){t=t.listeners;for(var a=0;a<t.length;a++)(0,t[a])()}function jp(t,a){return a}function wp(t,a){if(Ze){var i=He.formState;if(i!==null){e:{var c=$e;if(Ze){if(Fe){t:{for(var O=Fe,m=sn;O.nodeType!==8;){if(!m){O=null;break t}if(O=rn(O.nextSibling),O===null){O=null;break t}}m=O.data,O=m==="F!"||m==="F"?O:null}if(O){Fe=rn(O.nextSibling),c=O.data==="F!";break e}}wa(c)}c=!1}c&&(a=i[0])}}return i=$t(),i.memoizedState=i.baseState=a,c={pending:null,lanes:0,dispatch:null,lastRenderedReducer:jp,lastRenderedState:a},i.queue=c,i=Gp.bind(null,$e,c),c.dispatch=i,c=vu(!1),m=$u.bind(null,$e,!1,c.queue),c=$t(),O={state:a,dispatch:null,action:t,pending:null},c.queue=O,i=TQ.bind(null,$e,O,m,i),O.dispatch=i,c.memoizedState=t,[a,i,!1]}function kp(t){var a=lt();return $p(a,Le,t)}function $p(t,a,i){if(a=gu(t,a,jp)[0],t=ho(In)[0],typeof a=="object"&&a!==null&&typeof a.then=="function")try{var c=zr(a)}catch(S){throw S===ml?ao:S}else c=a;a=lt();var O=a.queue,m=O.dispatch;return i!==a.memoizedState&&($e.flags|=2048,vl(9,{destroy:void 0},NQ.bind(null,O,i),null)),[c,m,t]}function NQ(t,a){t.action=a}function Tp(t){var a=lt(),i=Le;if(i!==null)return $p(a,i,t);lt(),a=a.memoizedState,i=lt();var c=i.queue.dispatch;return i.memoizedState=t,[a,c,!1]}function vl(t,a,i,c){return t={tag:t,create:i,deps:c,inst:a,next:null},a=$e.updateQueue,a===null&&(a=fo(),$e.updateQueue=a),i=a.lastEffect,i===null?a.lastEffect=t.next=t:(c=i.next,i.next=t,t.next=c,a.lastEffect=t),t}function Np(){return lt().memoizedState}function mo(t,a,i,c){var O=$t();$e.flags|=t,O.memoizedState=vl(1|a,{destroy:void 0},i,c===void 0?null:c)}function po(t,a,i,c){var O=lt();c=c===void 0?null:c;var m=O.memoizedState.inst;Le!==null&&c!==null&&fu(c,Le.memoizedState.deps)?O.memoizedState=vl(a,m,i,c):($e.flags|=t,O.memoizedState=vl(1|a,m,i,c))}function Pp(t,a){mo(8390656,8,t,a)}function Su(t,a){po(2048,8,t,a)}function PQ(t){$e.flags|=4;var a=$e.updateQueue;if(a===null)a=fo(),$e.updateQueue=a,a.events=[t];else{var i=a.events;i===null?a.events=[t]:i.push(t)}}function zp(t){var a=lt().memoizedState;return PQ({ref:a,nextImpl:t}),function(){if((Ye&2)!==0)throw Error(r(440));return a.impl.apply(void 0,arguments)}}function Cp(t,a){return po(4,2,t,a)}function Rp(t,a){return po(4,4,t,a)}function _p(t,a){if(typeof a=="function"){t=t();var i=a(t);return function(){typeof i=="function"?i():a(null)}}if(a!=null)return t=t(),a.current=t,function(){a.current=null}}function Ap(t,a,i){i=i!=null?i.concat([t]):null,po(4,4,_p.bind(null,a,t),i)}function Qu(){}function Xp(t,a){var i=lt();a=a===void 0?null:a;var c=i.memoizedState;return a!==null&&fu(a,c[1])?c[0]:(i.memoizedState=[t,a],t)}function Zp(t,a){var i=lt();a=a===void 0?null:a;var c=i.memoizedState;if(a!==null&&fu(a,c[1]))return c[0];if(c=t(),ks){va(!0);try{t()}finally{va(!1)}}return i.memoizedState=[c,a],c}function ju(t,a,i){return i===void 0||(Hn&1073741824)!==0&&(Ae&261930)===0?t.memoizedState=a:(t.memoizedState=i,t=Ex(),$e.lanes|=t,_a|=t,i)}function Ep(t,a,i,c){return qt(i,a)?i:xl.current!==null?(t=ju(t,i,c),qt(t,a)||(ot=!0),t):(Hn&42)===0||(Hn&1073741824)!==0&&(Ae&261930)===0?(ot=!0,t.memoizedState=i):(t=Ex(),$e.lanes|=t,_a|=t,a)}function qp(t,a,i,c,O){var m=U.p;U.p=m!==0&&8>m?m:8;var S=N.T,$={};N.T=$,$u(t,!1,a,i);try{var _=O(),L=N.S;if(L!==null&&L($,_),_!==null&&typeof _=="object"&&typeof _.then=="function"){var ae=wQ(_,c);Cr(t,a,ae,Dt(t))}else Cr(t,a,c,Dt(t))}catch(re){Cr(t,a,{then:function(){},status:"rejected",reason:re},Dt())}finally{U.p=m,S!==null&&$.types!==null&&(S.types=$.types),N.T=S}}function zQ(){}function wu(t,a,i,c){if(t.tag!==5)throw Error(r(476));var O=Mp(t).queue;qp(t,O,a,ee,i===null?zQ:function(){return Yp(t),i(c)})}function Mp(t){var a=t.memoizedState;if(a!==null)return a;a={memoizedState:ee,baseState:ee,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:In,lastRenderedState:ee},next:null};var i={};return a.next={memoizedState:i,baseState:i,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:In,lastRenderedState:i},next:null},t.memoizedState=a,t=t.alternate,t!==null&&(t.memoizedState=a),a}function Yp(t){var a=Mp(t);a.next===null&&(a=t.alternate.memoizedState),Cr(t,a.next.queue,{},Dt())}function ku(){return vt(Hr)}function Up(){return lt().memoizedState}function Vp(){return lt().memoizedState}function CQ(t){for(var a=t.return;a!==null;){switch(a.tag){case 24:case 3:var i=Dt();t=Ta(i);var c=Na(a,t,i);c!==null&&(_t(c,a,i),$r(c,a,i)),a={cache:tu()},t.payload=a;return}a=a.return}}function RQ(t,a,i){var c=Dt();i={lane:c,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},xo(t)?Dp(a,i):(i=Gd(t,a,i,c),i!==null&&(_t(i,t,c),Lp(i,a,c)))}function Gp(t,a,i){var c=Dt();Cr(t,a,i,c)}function Cr(t,a,i,c){var O={lane:c,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null};if(xo(t))Dp(a,O);else{var m=t.alternate;if(t.lanes===0&&(m===null||m.lanes===0)&&(m=a.lastRenderedReducer,m!==null))try{var S=a.lastRenderedState,$=m(S,i);if(O.hasEagerState=!0,O.eagerState=$,qt($,S))return Ii(t,a,O,0),He===null&&Hi(),!1}catch{}finally{}if(i=Gd(t,a,O,c),i!==null)return _t(i,t,c),Lp(i,a,c),!0}return!1}function $u(t,a,i,c){if(c={lane:2,revertLane:lf(),gesture:null,action:c,hasEagerState:!1,eagerState:null,next:null},xo(t)){if(a)throw Error(r(479))}else a=Gd(t,i,c,2),a!==null&&_t(a,t,2)}function xo(t){var a=t.alternate;return t===$e||a!==null&&a===$e}function Dp(t,a){gl=co=!0;var i=t.pending;i===null?a.next=a:(a.next=i.next,i.next=a),t.pending=a}function Lp(t,a,i){if((i&4194048)!==0){var c=a.lanes;c&=t.pendingLanes,i|=c,a.lanes=i,Fh(t,i)}}var Rr={readContext:vt,use:Oo,useCallback:nt,useContext:nt,useEffect:nt,useImperativeHandle:nt,useLayoutEffect:nt,useInsertionEffect:nt,useMemo:nt,useReducer:nt,useRef:nt,useState:nt,useDebugValue:nt,useDeferredValue:nt,useTransition:nt,useSyncExternalStore:nt,useId:nt,useHostTransitionStatus:nt,useFormState:nt,useActionState:nt,useOptimistic:nt,useMemoCache:nt,useCacheRefresh:nt};Rr.useEffectEvent=nt;var Wp={readContext:vt,use:Oo,useCallback:function(t,a){return $t().memoizedState=[t,a===void 0?null:a],t},useContext:vt,useEffect:Pp,useImperativeHandle:function(t,a,i){i=i!=null?i.concat([t]):null,mo(4194308,4,_p.bind(null,a,t),i)},useLayoutEffect:function(t,a){return mo(4194308,4,t,a)},useInsertionEffect:function(t,a){mo(4,2,t,a)},useMemo:function(t,a){var i=$t();a=a===void 0?null:a;var c=t();if(ks){va(!0);try{t()}finally{va(!1)}}return i.memoizedState=[c,a],c},useReducer:function(t,a,i){var c=$t();if(i!==void 0){var O=i(a);if(ks){va(!0);try{i(a)}finally{va(!1)}}}else O=a;return c.memoizedState=c.baseState=O,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:O},c.queue=t,t=t.dispatch=RQ.bind(null,$e,t),[c.memoizedState,t]},useRef:function(t){var a=$t();return t={current:t},a.memoizedState=t},useState:function(t){t=vu(t);var a=t.queue,i=Gp.bind(null,$e,a);return a.dispatch=i,[t.memoizedState,i]},useDebugValue:Qu,useDeferredValue:function(t,a){var i=$t();return ju(i,t,a)},useTransition:function(){var t=vu(!1);return t=qp.bind(null,$e,t.queue,!0,!1),$t().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,a,i){var c=$e,O=$t();if(Ze){if(i===void 0)throw Error(r(407));i=i()}else{if(i=a(),He===null)throw Error(r(349));(Ae&127)!==0||hp(c,a,i)}O.memoizedState=i;var m={value:i,getSnapshot:a};return O.queue=m,Pp(pp.bind(null,c,m,t),[t]),c.flags|=2048,vl(9,{destroy:void 0},mp.bind(null,c,m,i,a),null),i},useId:function(){var t=$t(),a=He.identifierPrefix;if(Ze){var i=kn,c=wn;i=(c&~(1<<32-Et(c)-1)).toString(32)+i,a="_"+a+"R_"+i,i=uo++,0<i&&(a+="H"+i.toString(32)),a+="_"}else i=kQ++,a="_"+a+"r_"+i.toString(32)+"_";return t.memoizedState=a},useHostTransitionStatus:ku,useFormState:wp,useActionState:wp,useOptimistic:function(t){var a=$t();a.memoizedState=a.baseState=t;var i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return a.queue=i,a=$u.bind(null,$e,!0,i),i.dispatch=a,[t,a]},useMemoCache:xu,useCacheRefresh:function(){return $t().memoizedState=CQ.bind(null,$e)},useEffectEvent:function(t){var a=$t(),i={impl:t};return a.memoizedState=i,function(){if((Ye&2)!==0)throw Error(r(440));return i.impl.apply(void 0,arguments)}}},Tu={readContext:vt,use:Oo,useCallback:Xp,useContext:vt,useEffect:Su,useImperativeHandle:Ap,useInsertionEffect:Cp,useLayoutEffect:Rp,useMemo:Zp,useReducer:ho,useRef:Np,useState:function(){return ho(In)},useDebugValue:Qu,useDeferredValue:function(t,a){var i=lt();return Ep(i,Le.memoizedState,t,a)},useTransition:function(){var t=ho(In)[0],a=lt().memoizedState;return[typeof t=="boolean"?t:zr(t),a]},useSyncExternalStore:Op,useId:Up,useHostTransitionStatus:ku,useFormState:kp,useActionState:kp,useOptimistic:function(t,a){var i=lt();return bp(i,Le,t,a)},useMemoCache:xu,useCacheRefresh:Vp};Tu.useEffectEvent=zp;var Bp={readContext:vt,use:Oo,useCallback:Xp,useContext:vt,useEffect:Su,useImperativeHandle:Ap,useInsertionEffect:Cp,useLayoutEffect:Rp,useMemo:Zp,useReducer:bu,useRef:Np,useState:function(){return bu(In)},useDebugValue:Qu,useDeferredValue:function(t,a){var i=lt();return Le===null?ju(i,t,a):Ep(i,Le.memoizedState,t,a)},useTransition:function(){var t=bu(In)[0],a=lt().memoizedState;return[typeof t=="boolean"?t:zr(t),a]},useSyncExternalStore:Op,useId:Up,useHostTransitionStatus:ku,useFormState:Tp,useActionState:Tp,useOptimistic:function(t,a){var i=lt();return Le!==null?bp(i,Le,t,a):(i.baseState=t,[t,i.queue.dispatch])},useMemoCache:xu,useCacheRefresh:Vp};Bp.useEffectEvent=zp;function Nu(t,a,i,c){a=t.memoizedState,i=i(c,a),i=i==null?a:x({},a,i),t.memoizedState=i,t.lanes===0&&(t.updateQueue.baseState=i)}var Pu={enqueueSetState:function(t,a,i){t=t._reactInternals;var c=Dt(),O=Ta(c);O.payload=a,i!=null&&(O.callback=i),a=Na(t,O,c),a!==null&&(_t(a,t,c),$r(a,t,c))},enqueueReplaceState:function(t,a,i){t=t._reactInternals;var c=Dt(),O=Ta(c);O.tag=1,O.payload=a,i!=null&&(O.callback=i),a=Na(t,O,c),a!==null&&(_t(a,t,c),$r(a,t,c))},enqueueForceUpdate:function(t,a){t=t._reactInternals;var i=Dt(),c=Ta(i);c.tag=2,a!=null&&(c.callback=a),a=Na(t,c,i),a!==null&&(_t(a,t,i),$r(a,t,i))}};function Hp(t,a,i,c,O,m,S){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(c,m,S):a.prototype&&a.prototype.isPureReactComponent?!br(i,c)||!br(O,m):!0}function Ip(t,a,i,c){t=a.state,typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps(i,c),typeof a.UNSAFE_componentWillReceiveProps=="function"&&a.UNSAFE_componentWillReceiveProps(i,c),a.state!==t&&Pu.enqueueReplaceState(a,a.state,null)}function $s(t,a){var i=a;if("ref"in a){i={};for(var c in a)c!=="ref"&&(i[c]=a[c])}if(t=t.defaultProps){i===a&&(i=x({},i));for(var O in t)i[O]===void 0&&(i[O]=t[O])}return i}function Fp(t){Bi(t)}function Kp(t){console.error(t)}function Jp(t){Bi(t)}function go(t,a){try{var i=t.onUncaughtError;i(a.value,{componentStack:a.stack})}catch(c){setTimeout(function(){throw c})}}function ex(t,a,i){try{var c=t.onCaughtError;c(i.value,{componentStack:i.stack,errorBoundary:a.tag===1?a.stateNode:null})}catch(O){setTimeout(function(){throw O})}}function zu(t,a,i){return i=Ta(i),i.tag=3,i.payload={element:null},i.callback=function(){go(t,a)},i}function tx(t){return t=Ta(t),t.tag=3,t}function nx(t,a,i,c){var O=i.type.getDerivedStateFromError;if(typeof O=="function"){var m=c.value;t.payload=function(){return O(m)},t.callback=function(){ex(a,i,c)}}var S=i.stateNode;S!==null&&typeof S.componentDidCatch=="function"&&(t.callback=function(){ex(a,i,c),typeof O!="function"&&(Aa===null?Aa=new Set([this]):Aa.add(this));var $=c.stack;this.componentDidCatch(c.value,{componentStack:$!==null?$:""})})}function _Q(t,a,i,c,O){if(i.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){if(a=i.alternate,a!==null&&fl(a,i,O,!0),i=Yt.current,i!==null){switch(i.tag){case 31:case 13:return ln===null?Po():i.alternate===null&&at===0&&(at=3),i.flags&=-257,i.flags|=65536,i.lanes=O,c===so?i.flags|=16384:(a=i.updateQueue,a===null?i.updateQueue=new Set([c]):a.add(c),nf(t,c,O)),!1;case 22:return i.flags|=65536,c===so?i.flags|=16384:(a=i.updateQueue,a===null?(a={transitions:null,markerInstances:null,retryQueue:new Set([c])},i.updateQueue=a):(i=a.retryQueue,i===null?a.retryQueue=new Set([c]):i.add(c)),nf(t,c,O)),!1}throw Error(r(435,i.tag))}return nf(t,c,O),Po(),!1}if(Ze)return a=Yt.current,a!==null?((a.flags&65536)===0&&(a.flags|=256),a.flags|=65536,a.lanes=O,c!==Id&&(t=Error(r(422),{cause:c}),Sr(tn(t,i)))):(c!==Id&&(a=Error(r(423),{cause:c}),Sr(tn(a,i))),t=t.current.alternate,t.flags|=65536,O&=-O,t.lanes|=O,c=tn(c,i),O=zu(t.stateNode,c,O),iu(t,O),at!==4&&(at=2)),!1;var m=Error(r(520),{cause:c});if(m=tn(m,i),Yr===null?Yr=[m]:Yr.push(m),at!==4&&(at=2),a===null)return!0;c=tn(c,i),i=a;do{switch(i.tag){case 3:return i.flags|=65536,t=O&-O,i.lanes|=t,t=zu(i.stateNode,c,t),iu(i,t),!1;case 1:if(a=i.type,m=i.stateNode,(i.flags&128)===0&&(typeof a.getDerivedStateFromError=="function"||m!==null&&typeof m.componentDidCatch=="function"&&(Aa===null||!Aa.has(m))))return i.flags|=65536,O&=-O,i.lanes|=O,O=tx(O),nx(O,t,i,c),iu(i,O),!1}i=i.return}while(i!==null);return!1}var Cu=Error(r(461)),ot=!1;function yt(t,a,i,c){a.child=t===null?rp(a,null,i,c):ws(a,t.child,i,c)}function ax(t,a,i,c,O){i=i.render;var m=a.ref;if("ref"in c){var S={};for(var $ in c)$!=="ref"&&(S[$]=c[$])}else S=c;return ys(a),c=Ou(t,a,i,S,m,O),$=hu(),t!==null&&!ot?(mu(t,a,O),Fn(t,a,O)):(Ze&&$&&Bd(a),a.flags|=1,yt(t,a,c,O),a.child)}function sx(t,a,i,c,O){if(t===null){var m=i.type;return typeof m=="function"&&!Dd(m)&&m.defaultProps===void 0&&i.compare===null?(a.tag=15,a.type=m,lx(t,a,m,c,O)):(t=Ki(i.type,null,c,a,a.mode,O),t.ref=a.ref,t.return=a,a.child=t)}if(m=t.child,!Mu(t,O)){var S=m.memoizedProps;if(i=i.compare,i=i!==null?i:br,i(S,c)&&t.ref===a.ref)return Fn(t,a,O)}return a.flags|=1,t=Dn(m,c),t.ref=a.ref,t.return=a,a.child=t}function lx(t,a,i,c,O){if(t!==null){var m=t.memoizedProps;if(br(m,c)&&t.ref===a.ref)if(ot=!1,a.pendingProps=c=m,Mu(t,O))(t.flags&131072)!==0&&(ot=!0);else return a.lanes=t.lanes,Fn(t,a,O)}return Ru(t,a,i,c,O)}function rx(t,a,i,c){var O=c.children,m=t!==null?t.memoizedState:null;if(t===null&&a.stateNode===null&&(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),c.mode==="hidden"){if((a.flags&128)!==0){if(m=m!==null?m.baseLanes|i:i,t!==null){for(c=a.child=t.child,O=0;c!==null;)O=O|c.lanes|c.childLanes,c=c.sibling;c=O&~m}else c=0,a.child=null;return ix(t,a,m,i,c)}if((i&536870912)!==0)a.memoizedState={baseLanes:0,cachePool:null},t!==null&&no(a,m!==null?m.cachePool:null),m!==null?cp(a,m):cu(),dp(a);else return c=a.lanes=536870912,ix(t,a,m!==null?m.baseLanes|i:i,i,c)}else m!==null?(no(a,m.cachePool),cp(a,m),za(),a.memoizedState=null):(t!==null&&no(a,null),cu(),za());return yt(t,a,O,i),a.child}function _r(t,a){return t!==null&&t.tag===22||a.stateNode!==null||(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.sibling}function ix(t,a,i,c,O){var m=au();return m=m===null?null:{parent:rt._currentValue,pool:m},a.memoizedState={baseLanes:i,cachePool:m},t!==null&&no(a,null),cu(),dp(a),t!==null&&fl(t,a,c,!0),a.childLanes=O,null}function bo(t,a){return a=yo({mode:a.mode,children:a.children},t.mode),a.ref=t.ref,t.child=a,a.return=t,a}function ox(t,a,i){return ws(a,t.child,null,i),t=bo(a,a.pendingProps),t.flags|=2,Ut(a),a.memoizedState=null,t}function AQ(t,a,i){var c=a.pendingProps,O=(a.flags&128)!==0;if(a.flags&=-129,t===null){if(Ze){if(c.mode==="hidden")return t=bo(a,c),a.lanes=536870912,_r(null,t);if(uu(a),(t=Fe)?(t=vg(t,sn),t=t!==null&&t.data==="&"?t:null,t!==null&&(a.memoizedState={dehydrated:t,treeContext:Qa!==null?{id:wn,overflow:kn}:null,retryLane:536870912,hydrationErrors:null},i=Dm(t),i.return=a,a.child=i,bt=a,Fe=null)):t=null,t===null)throw wa(a);return a.lanes=536870912,null}return bo(a,c)}var m=t.memoizedState;if(m!==null){var S=m.dehydrated;if(uu(a),O)if(a.flags&256)a.flags&=-257,a=ox(t,a,i);else if(a.memoizedState!==null)a.child=t.child,a.flags|=128,a=null;else throw Error(r(558));else if(ot||fl(t,a,i,!1),O=(i&t.childLanes)!==0,ot||O){if(c=He,c!==null&&(S=Kh(c,i),S!==0&&S!==m.retryLane))throw m.retryLane=S,xs(t,S),_t(c,t,S),Cu;Po(),a=ox(t,a,i)}else t=m.treeContext,Fe=rn(S.nextSibling),bt=a,Ze=!0,ja=null,sn=!1,t!==null&&Bm(a,t),a=bo(a,c),a.flags|=4096;return a}return t=Dn(t.child,{mode:c.mode,children:c.children}),t.ref=a.ref,a.child=t,t.return=a,t}function vo(t,a){var i=a.ref;if(i===null)t!==null&&t.ref!==null&&(a.flags|=4194816);else{if(typeof i!="function"&&typeof i!="object")throw Error(r(284));(t===null||t.ref!==i)&&(a.flags|=4194816)}}function Ru(t,a,i,c,O){return ys(a),i=Ou(t,a,i,c,void 0,O),c=hu(),t!==null&&!ot?(mu(t,a,O),Fn(t,a,O)):(Ze&&c&&Bd(a),a.flags|=1,yt(t,a,i,O),a.child)}function cx(t,a,i,c,O,m){return ys(a),a.updateQueue=null,i=fp(a,c,i,O),up(t),c=hu(),t!==null&&!ot?(mu(t,a,m),Fn(t,a,m)):(Ze&&c&&Bd(a),a.flags|=1,yt(t,a,i,m),a.child)}function dx(t,a,i,c,O){if(ys(a),a.stateNode===null){var m=ol,S=i.contextType;typeof S=="object"&&S!==null&&(m=vt(S)),m=new i(c,m),a.memoizedState=m.state!==null&&m.state!==void 0?m.state:null,m.updater=Pu,a.stateNode=m,m._reactInternals=a,m=a.stateNode,m.props=c,m.state=a.memoizedState,m.refs={},lu(a),S=i.contextType,m.context=typeof S=="object"&&S!==null?vt(S):ol,m.state=a.memoizedState,S=i.getDerivedStateFromProps,typeof S=="function"&&(Nu(a,i,S,c),m.state=a.memoizedState),typeof i.getDerivedStateFromProps=="function"||typeof m.getSnapshotBeforeUpdate=="function"||typeof m.UNSAFE_componentWillMount!="function"&&typeof m.componentWillMount!="function"||(S=m.state,typeof m.componentWillMount=="function"&&m.componentWillMount(),typeof m.UNSAFE_componentWillMount=="function"&&m.UNSAFE_componentWillMount(),S!==m.state&&Pu.enqueueReplaceState(m,m.state,null),Nr(a,c,m,O),Tr(),m.state=a.memoizedState),typeof m.componentDidMount=="function"&&(a.flags|=4194308),c=!0}else if(t===null){m=a.stateNode;var $=a.memoizedProps,_=$s(i,$);m.props=_;var L=m.context,ae=i.contextType;S=ol,typeof ae=="object"&&ae!==null&&(S=vt(ae));var re=i.getDerivedStateFromProps;ae=typeof re=="function"||typeof m.getSnapshotBeforeUpdate=="function",$=a.pendingProps!==$,ae||typeof m.UNSAFE_componentWillReceiveProps!="function"&&typeof m.componentWillReceiveProps!="function"||($||L!==S)&&Ip(a,m,c,S),$a=!1;var H=a.memoizedState;m.state=H,Nr(a,c,m,O),Tr(),L=a.memoizedState,$||H!==L||$a?(typeof re=="function"&&(Nu(a,i,re,c),L=a.memoizedState),(_=$a||Hp(a,i,_,c,H,L,S))?(ae||typeof m.UNSAFE_componentWillMount!="function"&&typeof m.componentWillMount!="function"||(typeof m.componentWillMount=="function"&&m.componentWillMount(),typeof m.UNSAFE_componentWillMount=="function"&&m.UNSAFE_componentWillMount()),typeof m.componentDidMount=="function"&&(a.flags|=4194308)):(typeof m.componentDidMount=="function"&&(a.flags|=4194308),a.memoizedProps=c,a.memoizedState=L),m.props=c,m.state=L,m.context=S,c=_):(typeof m.componentDidMount=="function"&&(a.flags|=4194308),c=!1)}else{m=a.stateNode,ru(t,a),S=a.memoizedProps,ae=$s(i,S),m.props=ae,re=a.pendingProps,H=m.context,L=i.contextType,_=ol,typeof L=="object"&&L!==null&&(_=vt(L)),$=i.getDerivedStateFromProps,(L=typeof $=="function"||typeof m.getSnapshotBeforeUpdate=="function")||typeof m.UNSAFE_componentWillReceiveProps!="function"&&typeof m.componentWillReceiveProps!="function"||(S!==re||H!==_)&&Ip(a,m,c,_),$a=!1,H=a.memoizedState,m.state=H,Nr(a,c,m,O),Tr();var te=a.memoizedState;S!==re||H!==te||$a||t!==null&&t.dependencies!==null&&eo(t.dependencies)?(typeof $=="function"&&(Nu(a,i,$,c),te=a.memoizedState),(ae=$a||Hp(a,i,ae,c,H,te,_)||t!==null&&t.dependencies!==null&&eo(t.dependencies))?(L||typeof m.UNSAFE_componentWillUpdate!="function"&&typeof m.componentWillUpdate!="function"||(typeof m.componentWillUpdate=="function"&&m.componentWillUpdate(c,te,_),typeof m.UNSAFE_componentWillUpdate=="function"&&m.UNSAFE_componentWillUpdate(c,te,_)),typeof m.componentDidUpdate=="function"&&(a.flags|=4),typeof m.getSnapshotBeforeUpdate=="function"&&(a.flags|=1024)):(typeof m.componentDidUpdate!="function"||S===t.memoizedProps&&H===t.memoizedState||(a.flags|=4),typeof m.getSnapshotBeforeUpdate!="function"||S===t.memoizedProps&&H===t.memoizedState||(a.flags|=1024),a.memoizedProps=c,a.memoizedState=te),m.props=c,m.state=te,m.context=_,c=ae):(typeof m.componentDidUpdate!="function"||S===t.memoizedProps&&H===t.memoizedState||(a.flags|=4),typeof m.getSnapshotBeforeUpdate!="function"||S===t.memoizedProps&&H===t.memoizedState||(a.flags|=1024),c=!1)}return m=c,vo(t,a),c=(a.flags&128)!==0,m||c?(m=a.stateNode,i=c&&typeof i.getDerivedStateFromError!="function"?null:m.render(),a.flags|=1,t!==null&&c?(a.child=ws(a,t.child,null,O),a.child=ws(a,null,i,O)):yt(t,a,i,O),a.memoizedState=m.state,t=a.child):t=Fn(t,a,O),t}function ux(t,a,i,c){return bs(),a.flags|=256,yt(t,a,i,c),a.child}var _u={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Au(t){return{baseLanes:t,cachePool:ep()}}function Xu(t,a,i){return t=t!==null?t.childLanes&~i:0,a&&(t|=Gt),t}function fx(t,a,i){var c=a.pendingProps,O=!1,m=(a.flags&128)!==0,S;if((S=m)||(S=t!==null&&t.memoizedState===null?!1:(st.current&2)!==0),S&&(O=!0,a.flags&=-129),S=(a.flags&32)!==0,a.flags&=-33,t===null){if(Ze){if(O?Pa(a):za(),(t=Fe)?(t=vg(t,sn),t=t!==null&&t.data!=="&"?t:null,t!==null&&(a.memoizedState={dehydrated:t,treeContext:Qa!==null?{id:wn,overflow:kn}:null,retryLane:536870912,hydrationErrors:null},i=Dm(t),i.return=a,a.child=i,bt=a,Fe=null)):t=null,t===null)throw wa(a);return bf(t)?a.lanes=32:a.lanes=536870912,null}var $=c.children;return c=c.fallback,O?(za(),O=a.mode,$=yo({mode:"hidden",children:$},O),c=gs(c,O,i,null),$.return=a,c.return=a,$.sibling=c,a.child=$,c=a.child,c.memoizedState=Au(i),c.childLanes=Xu(t,S,i),a.memoizedState=_u,_r(null,c)):(Pa(a),Zu(a,$))}var _=t.memoizedState;if(_!==null&&($=_.dehydrated,$!==null)){if(m)a.flags&256?(Pa(a),a.flags&=-257,a=Eu(t,a,i)):a.memoizedState!==null?(za(),a.child=t.child,a.flags|=128,a=null):(za(),$=c.fallback,O=a.mode,c=yo({mode:"visible",children:c.children},O),$=gs($,O,i,null),$.flags|=2,c.return=a,$.return=a,c.sibling=$,a.child=c,ws(a,t.child,null,i),c=a.child,c.memoizedState=Au(i),c.childLanes=Xu(t,S,i),a.memoizedState=_u,a=_r(null,c));else if(Pa(a),bf($)){if(S=$.nextSibling&&$.nextSibling.dataset,S)var L=S.dgst;S=L,c=Error(r(419)),c.stack="",c.digest=S,Sr({value:c,source:null,stack:null}),a=Eu(t,a,i)}else if(ot||fl(t,a,i,!1),S=(i&t.childLanes)!==0,ot||S){if(S=He,S!==null&&(c=Kh(S,i),c!==0&&c!==_.retryLane))throw _.retryLane=c,xs(t,c),_t(S,t,c),Cu;gf($)||Po(),a=Eu(t,a,i)}else gf($)?(a.flags|=192,a.child=t.child,a=null):(t=_.treeContext,Fe=rn($.nextSibling),bt=a,Ze=!0,ja=null,sn=!1,t!==null&&Bm(a,t),a=Zu(a,c.children),a.flags|=4096);return a}return O?(za(),$=c.fallback,O=a.mode,_=t.child,L=_.sibling,c=Dn(_,{mode:"hidden",children:c.children}),c.subtreeFlags=_.subtreeFlags&65011712,L!==null?$=Dn(L,$):($=gs($,O,i,null),$.flags|=2),$.return=a,c.return=a,c.sibling=$,a.child=c,_r(null,c),c=a.child,$=t.child.memoizedState,$===null?$=Au(i):(O=$.cachePool,O!==null?(_=rt._currentValue,O=O.parent!==_?{parent:_,pool:_}:O):O=ep(),$={baseLanes:$.baseLanes|i,cachePool:O}),c.memoizedState=$,c.childLanes=Xu(t,S,i),a.memoizedState=_u,_r(t.child,c)):(Pa(a),i=t.child,t=i.sibling,i=Dn(i,{mode:"visible",children:c.children}),i.return=a,i.sibling=null,t!==null&&(S=a.deletions,S===null?(a.deletions=[t],a.flags|=16):S.push(t)),a.child=i,a.memoizedState=null,i)}function Zu(t,a){return a=yo({mode:"visible",children:a},t.mode),a.return=t,t.child=a}function yo(t,a){return t=Mt(22,t,null,a),t.lanes=0,t}function Eu(t,a,i){return ws(a,t.child,null,i),t=Zu(a,a.pendingProps.children),t.flags|=2,a.memoizedState=null,t}function Ox(t,a,i){t.lanes|=a;var c=t.alternate;c!==null&&(c.lanes|=a),Jd(t.return,a,i)}function qu(t,a,i,c,O,m){var S=t.memoizedState;S===null?t.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:c,tail:i,tailMode:O,treeForkCount:m}:(S.isBackwards=a,S.rendering=null,S.renderingStartTime=0,S.last=c,S.tail=i,S.tailMode=O,S.treeForkCount=m)}function hx(t,a,i){var c=a.pendingProps,O=c.revealOrder,m=c.tail;c=c.children;var S=st.current,$=(S&2)!==0;if($?(S=S&1|2,a.flags|=128):S&=1,me(st,S),yt(t,a,c,i),c=Ze?yr:0,!$&&t!==null&&(t.flags&128)!==0)e:for(t=a.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&Ox(t,i,a);else if(t.tag===19)Ox(t,i,a);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===a)break e;for(;t.sibling===null;){if(t.return===null||t.return===a)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(O){case"forwards":for(i=a.child,O=null;i!==null;)t=i.alternate,t!==null&&oo(t)===null&&(O=i),i=i.sibling;i=O,i===null?(O=a.child,a.child=null):(O=i.sibling,i.sibling=null),qu(a,!1,O,i,m,c);break;case"backwards":case"unstable_legacy-backwards":for(i=null,O=a.child,a.child=null;O!==null;){if(t=O.alternate,t!==null&&oo(t)===null){a.child=O;break}t=O.sibling,O.sibling=i,i=O,O=t}qu(a,!0,i,null,m,c);break;case"together":qu(a,!1,null,null,void 0,c);break;default:a.memoizedState=null}return a.child}function Fn(t,a,i){if(t!==null&&(a.dependencies=t.dependencies),_a|=a.lanes,(i&a.childLanes)===0)if(t!==null){if(fl(t,a,i,!1),(i&a.childLanes)===0)return null}else return null;if(t!==null&&a.child!==t.child)throw Error(r(153));if(a.child!==null){for(t=a.child,i=Dn(t,t.pendingProps),a.child=i,i.return=a;t.sibling!==null;)t=t.sibling,i=i.sibling=Dn(t,t.pendingProps),i.return=a;i.sibling=null}return a.child}function Mu(t,a){return(t.lanes&a)!==0?!0:(t=t.dependencies,!!(t!==null&&eo(t)))}function XQ(t,a,i){switch(a.tag){case 3:ne(a,a.stateNode.containerInfo),ka(a,rt,t.memoizedState.cache),bs();break;case 27:case 5:Ne(a);break;case 4:ne(a,a.stateNode.containerInfo);break;case 10:ka(a,a.type,a.memoizedProps.value);break;case 31:if(a.memoizedState!==null)return a.flags|=128,uu(a),null;break;case 13:var c=a.memoizedState;if(c!==null)return c.dehydrated!==null?(Pa(a),a.flags|=128,null):(i&a.child.childLanes)!==0?fx(t,a,i):(Pa(a),t=Fn(t,a,i),t!==null?t.sibling:null);Pa(a);break;case 19:var O=(t.flags&128)!==0;if(c=(i&a.childLanes)!==0,c||(fl(t,a,i,!1),c=(i&a.childLanes)!==0),O){if(c)return hx(t,a,i);a.flags|=128}if(O=a.memoizedState,O!==null&&(O.rendering=null,O.tail=null,O.lastEffect=null),me(st,st.current),c)break;return null;case 22:return a.lanes=0,rx(t,a,i,a.pendingProps);case 24:ka(a,rt,t.memoizedState.cache)}return Fn(t,a,i)}function mx(t,a,i){if(t!==null)if(t.memoizedProps!==a.pendingProps)ot=!0;else{if(!Mu(t,i)&&(a.flags&128)===0)return ot=!1,XQ(t,a,i);ot=(t.flags&131072)!==0}else ot=!1,Ze&&(a.flags&1048576)!==0&&Wm(a,yr,a.index);switch(a.lanes=0,a.tag){case 16:e:{var c=a.pendingProps;if(t=Qs(a.elementType),a.type=t,typeof t=="function")Dd(t)?(c=$s(t,c),a.tag=1,a=dx(null,a,t,c,i)):(a.tag=0,a=Ru(null,a,t,c,i));else{if(t!=null){var O=t.$$typeof;if(O===R){a.tag=11,a=ax(null,a,t,c,i);break e}else if(O===C){a.tag=14,a=sx(null,a,t,c,i);break e}}throw a=V(t)||t,Error(r(306,a,""))}}return a;case 0:return Ru(t,a,a.type,a.pendingProps,i);case 1:return c=a.type,O=$s(c,a.pendingProps),dx(t,a,c,O,i);case 3:e:{if(ne(a,a.stateNode.containerInfo),t===null)throw Error(r(387));c=a.pendingProps;var m=a.memoizedState;O=m.element,ru(t,a),Nr(a,c,null,i);var S=a.memoizedState;if(c=S.cache,ka(a,rt,c),c!==m.cache&&eu(a,[rt],i,!0),Tr(),c=S.element,m.isDehydrated)if(m={element:c,isDehydrated:!1,cache:S.cache},a.updateQueue.baseState=m,a.memoizedState=m,a.flags&256){a=ux(t,a,c,i);break e}else if(c!==O){O=tn(Error(r(424)),a),Sr(O),a=ux(t,a,c,i);break e}else{switch(t=a.stateNode.containerInfo,t.nodeType){case 9:t=t.body;break;default:t=t.nodeName==="HTML"?t.ownerDocument.body:t}for(Fe=rn(t.firstChild),bt=a,Ze=!0,ja=null,sn=!0,i=rp(a,null,c,i),a.child=i;i;)i.flags=i.flags&-3|4096,i=i.sibling}else{if(bs(),c===O){a=Fn(t,a,i);break e}yt(t,a,c,i)}a=a.child}return a;case 26:return vo(t,a),t===null?(i=kg(a.type,null,a.pendingProps,null))?a.memoizedState=i:Ze||(i=a.type,t=a.pendingProps,c=Zo(W.current).createElement(i),c[gt]=a,c[Tt]=t,St(c,i,t),mt(c),a.stateNode=c):a.memoizedState=kg(a.type,t.memoizedProps,a.pendingProps,t.memoizedState),null;case 27:return Ne(a),t===null&&Ze&&(c=a.stateNode=Qg(a.type,a.pendingProps,W.current),bt=a,sn=!0,O=Fe,qa(a.type)?(vf=O,Fe=rn(c.firstChild)):Fe=O),yt(t,a,a.pendingProps.children,i),vo(t,a),t===null&&(a.flags|=4194304),a.child;case 5:return t===null&&Ze&&((O=c=Fe)&&(c=fj(c,a.type,a.pendingProps,sn),c!==null?(a.stateNode=c,bt=a,Fe=rn(c.firstChild),sn=!1,O=!0):O=!1),O||wa(a)),Ne(a),O=a.type,m=a.pendingProps,S=t!==null?t.memoizedProps:null,c=m.children,mf(O,m)?c=null:S!==null&&mf(O,S)&&(a.flags|=32),a.memoizedState!==null&&(O=Ou(t,a,$Q,null,null,i),Hr._currentValue=O),vo(t,a),yt(t,a,c,i),a.child;case 6:return t===null&&Ze&&((t=i=Fe)&&(i=Oj(i,a.pendingProps,sn),i!==null?(a.stateNode=i,bt=a,Fe=null,t=!0):t=!1),t||wa(a)),null;case 13:return fx(t,a,i);case 4:return ne(a,a.stateNode.containerInfo),c=a.pendingProps,t===null?a.child=ws(a,null,c,i):yt(t,a,c,i),a.child;case 11:return ax(t,a,a.type,a.pendingProps,i);case 7:return yt(t,a,a.pendingProps,i),a.child;case 8:return yt(t,a,a.pendingProps.children,i),a.child;case 12:return yt(t,a,a.pendingProps.children,i),a.child;case 10:return c=a.pendingProps,ka(a,a.type,c.value),yt(t,a,c.children,i),a.child;case 9:return O=a.type._context,c=a.pendingProps.children,ys(a),O=vt(O),c=c(O),a.flags|=1,yt(t,a,c,i),a.child;case 14:return sx(t,a,a.type,a.pendingProps,i);case 15:return lx(t,a,a.type,a.pendingProps,i);case 19:return hx(t,a,i);case 31:return AQ(t,a,i);case 22:return rx(t,a,i,a.pendingProps);case 24:return ys(a),c=vt(rt),t===null?(O=au(),O===null&&(O=He,m=tu(),O.pooledCache=m,m.refCount++,m!==null&&(O.pooledCacheLanes|=i),O=m),a.memoizedState={parent:c,cache:O},lu(a),ka(a,rt,O)):((t.lanes&i)!==0&&(ru(t,a),Nr(a,null,null,i),Tr()),O=t.memoizedState,m=a.memoizedState,O.parent!==c?(O={parent:c,cache:c},a.memoizedState=O,a.lanes===0&&(a.memoizedState=a.updateQueue.baseState=O),ka(a,rt,c)):(c=m.cache,ka(a,rt,c),c!==O.cache&&eu(a,[rt],i,!0))),yt(t,a,a.pendingProps.children,i),a.child;case 29:throw a.pendingProps}throw Error(r(156,a.tag))}function Kn(t){t.flags|=4}function Yu(t,a,i,c,O){if((a=(t.mode&32)!==0)&&(a=!1),a){if(t.flags|=16777216,(O&335544128)===O)if(t.stateNode.complete)t.flags|=8192;else if(Ux())t.flags|=8192;else throw js=so,su}else t.flags&=-16777217}function px(t,a){if(a.type!=="stylesheet"||(a.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!zg(a))if(Ux())t.flags|=8192;else throw js=so,su}function So(t,a){a!==null&&(t.flags|=4),t.flags&16384&&(a=t.tag!==22?Hh():536870912,t.lanes|=a,jl|=a)}function Ar(t,a){if(!Ze)switch(t.tailMode){case"hidden":a=t.tail;for(var i=null;a!==null;)a.alternate!==null&&(i=a),a=a.sibling;i===null?t.tail=null:i.sibling=null;break;case"collapsed":i=t.tail;for(var c=null;i!==null;)i.alternate!==null&&(c=i),i=i.sibling;c===null?a||t.tail===null?t.tail=null:t.tail.sibling=null:c.sibling=null}}function Ke(t){var a=t.alternate!==null&&t.alternate.child===t.child,i=0,c=0;if(a)for(var O=t.child;O!==null;)i|=O.lanes|O.childLanes,c|=O.subtreeFlags&65011712,c|=O.flags&65011712,O.return=t,O=O.sibling;else for(O=t.child;O!==null;)i|=O.lanes|O.childLanes,c|=O.subtreeFlags,c|=O.flags,O.return=t,O=O.sibling;return t.subtreeFlags|=c,t.childLanes=i,a}function ZQ(t,a,i){var c=a.pendingProps;switch(Hd(a),a.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ke(a),null;case 1:return Ke(a),null;case 3:return i=a.stateNode,c=null,t!==null&&(c=t.memoizedState.cache),a.memoizedState.cache!==c&&(a.flags|=2048),Bn(rt),fe(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(t===null||t.child===null)&&(ul(a)?Kn(a):t===null||t.memoizedState.isDehydrated&&(a.flags&256)===0||(a.flags|=1024,Fd())),Ke(a),null;case 26:var O=a.type,m=a.memoizedState;return t===null?(Kn(a),m!==null?(Ke(a),px(a,m)):(Ke(a),Yu(a,O,null,c,i))):m?m!==t.memoizedState?(Kn(a),Ke(a),px(a,m)):(Ke(a),a.flags&=-16777217):(t=t.memoizedProps,t!==c&&Kn(a),Ke(a),Yu(a,O,t,c,i)),null;case 27:if(ke(a),i=W.current,O=a.type,t!==null&&a.stateNode!=null)t.memoizedProps!==c&&Kn(a);else{if(!c){if(a.stateNode===null)throw Error(r(166));return Ke(a),null}t=be.current,ul(a)?Hm(a):(t=Qg(O,c,i),a.stateNode=t,Kn(a))}return Ke(a),null;case 5:if(ke(a),O=a.type,t!==null&&a.stateNode!=null)t.memoizedProps!==c&&Kn(a);else{if(!c){if(a.stateNode===null)throw Error(r(166));return Ke(a),null}if(m=be.current,ul(a))Hm(a);else{var S=Zo(W.current);switch(m){case 1:m=S.createElementNS("http://www.w3.org/2000/svg",O);break;case 2:m=S.createElementNS("http://www.w3.org/1998/Math/MathML",O);break;default:switch(O){case"svg":m=S.createElementNS("http://www.w3.org/2000/svg",O);break;case"math":m=S.createElementNS("http://www.w3.org/1998/Math/MathML",O);break;case"script":m=S.createElement("div"),m.innerHTML="<script><\/script>",m=m.removeChild(m.firstChild);break;case"select":m=typeof c.is=="string"?S.createElement("select",{is:c.is}):S.createElement("select"),c.multiple?m.multiple=!0:c.size&&(m.size=c.size);break;default:m=typeof c.is=="string"?S.createElement(O,{is:c.is}):S.createElement(O)}}m[gt]=a,m[Tt]=c;e:for(S=a.child;S!==null;){if(S.tag===5||S.tag===6)m.appendChild(S.stateNode);else if(S.tag!==4&&S.tag!==27&&S.child!==null){S.child.return=S,S=S.child;continue}if(S===a)break e;for(;S.sibling===null;){if(S.return===null||S.return===a)break e;S=S.return}S.sibling.return=S.return,S=S.sibling}a.stateNode=m;e:switch(St(m,O,c),O){case"button":case"input":case"select":case"textarea":c=!!c.autoFocus;break e;case"img":c=!0;break e;default:c=!1}c&&Kn(a)}}return Ke(a),Yu(a,a.type,t===null?null:t.memoizedProps,a.pendingProps,i),null;case 6:if(t&&a.stateNode!=null)t.memoizedProps!==c&&Kn(a);else{if(typeof c!="string"&&a.stateNode===null)throw Error(r(166));if(t=W.current,ul(a)){if(t=a.stateNode,i=a.memoizedProps,c=null,O=bt,O!==null)switch(O.tag){case 27:case 5:c=O.memoizedProps}t[gt]=a,t=!!(t.nodeValue===i||c!==null&&c.suppressHydrationWarning===!0||fg(t.nodeValue,i)),t||wa(a,!0)}else t=Zo(t).createTextNode(c),t[gt]=a,a.stateNode=t}return Ke(a),null;case 31:if(i=a.memoizedState,t===null||t.memoizedState!==null){if(c=ul(a),i!==null){if(t===null){if(!c)throw Error(r(318));if(t=a.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(557));t[gt]=a}else bs(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;Ke(a),t=!1}else i=Fd(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=i),t=!0;if(!t)return a.flags&256?(Ut(a),a):(Ut(a),null);if((a.flags&128)!==0)throw Error(r(558))}return Ke(a),null;case 13:if(c=a.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(O=ul(a),c!==null&&c.dehydrated!==null){if(t===null){if(!O)throw Error(r(318));if(O=a.memoizedState,O=O!==null?O.dehydrated:null,!O)throw Error(r(317));O[gt]=a}else bs(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;Ke(a),O=!1}else O=Fd(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=O),O=!0;if(!O)return a.flags&256?(Ut(a),a):(Ut(a),null)}return Ut(a),(a.flags&128)!==0?(a.lanes=i,a):(i=c!==null,t=t!==null&&t.memoizedState!==null,i&&(c=a.child,O=null,c.alternate!==null&&c.alternate.memoizedState!==null&&c.alternate.memoizedState.cachePool!==null&&(O=c.alternate.memoizedState.cachePool.pool),m=null,c.memoizedState!==null&&c.memoizedState.cachePool!==null&&(m=c.memoizedState.cachePool.pool),m!==O&&(c.flags|=2048)),i!==t&&i&&(a.child.flags|=8192),So(a,a.updateQueue),Ke(a),null);case 4:return fe(),t===null&&df(a.stateNode.containerInfo),Ke(a),null;case 10:return Bn(a.type),Ke(a),null;case 19:if(Qe(st),c=a.memoizedState,c===null)return Ke(a),null;if(O=(a.flags&128)!==0,m=c.rendering,m===null)if(O)Ar(c,!1);else{if(at!==0||t!==null&&(t.flags&128)!==0)for(t=a.child;t!==null;){if(m=oo(t),m!==null){for(a.flags|=128,Ar(c,!1),t=m.updateQueue,a.updateQueue=t,So(a,t),a.subtreeFlags=0,t=i,i=a.child;i!==null;)Gm(i,t),i=i.sibling;return me(st,st.current&1|2),Ze&&Ln(a,c.treeForkCount),a.child}t=t.sibling}c.tail!==null&&Xt()>$o&&(a.flags|=128,O=!0,Ar(c,!1),a.lanes=4194304)}else{if(!O)if(t=oo(m),t!==null){if(a.flags|=128,O=!0,t=t.updateQueue,a.updateQueue=t,So(a,t),Ar(c,!0),c.tail===null&&c.tailMode==="hidden"&&!m.alternate&&!Ze)return Ke(a),null}else 2*Xt()-c.renderingStartTime>$o&&i!==536870912&&(a.flags|=128,O=!0,Ar(c,!1),a.lanes=4194304);c.isBackwards?(m.sibling=a.child,a.child=m):(t=c.last,t!==null?t.sibling=m:a.child=m,c.last=m)}return c.tail!==null?(t=c.tail,c.rendering=t,c.tail=t.sibling,c.renderingStartTime=Xt(),t.sibling=null,i=st.current,me(st,O?i&1|2:i&1),Ze&&Ln(a,c.treeForkCount),t):(Ke(a),null);case 22:case 23:return Ut(a),du(),c=a.memoizedState!==null,t!==null?t.memoizedState!==null!==c&&(a.flags|=8192):c&&(a.flags|=8192),c?(i&536870912)!==0&&(a.flags&128)===0&&(Ke(a),a.subtreeFlags&6&&(a.flags|=8192)):Ke(a),i=a.updateQueue,i!==null&&So(a,i.retryQueue),i=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),c=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(c=a.memoizedState.cachePool.pool),c!==i&&(a.flags|=2048),t!==null&&Qe(Ss),null;case 24:return i=null,t!==null&&(i=t.memoizedState.cache),a.memoizedState.cache!==i&&(a.flags|=2048),Bn(rt),Ke(a),null;case 25:return null;case 30:return null}throw Error(r(156,a.tag))}function EQ(t,a){switch(Hd(a),a.tag){case 1:return t=a.flags,t&65536?(a.flags=t&-65537|128,a):null;case 3:return Bn(rt),fe(),t=a.flags,(t&65536)!==0&&(t&128)===0?(a.flags=t&-65537|128,a):null;case 26:case 27:case 5:return ke(a),null;case 31:if(a.memoizedState!==null){if(Ut(a),a.alternate===null)throw Error(r(340));bs()}return t=a.flags,t&65536?(a.flags=t&-65537|128,a):null;case 13:if(Ut(a),t=a.memoizedState,t!==null&&t.dehydrated!==null){if(a.alternate===null)throw Error(r(340));bs()}return t=a.flags,t&65536?(a.flags=t&-65537|128,a):null;case 19:return Qe(st),null;case 4:return fe(),null;case 10:return Bn(a.type),null;case 22:case 23:return Ut(a),du(),t!==null&&Qe(Ss),t=a.flags,t&65536?(a.flags=t&-65537|128,a):null;case 24:return Bn(rt),null;case 25:return null;default:return null}}function xx(t,a){switch(Hd(a),a.tag){case 3:Bn(rt),fe();break;case 26:case 27:case 5:ke(a);break;case 4:fe();break;case 31:a.memoizedState!==null&&Ut(a);break;case 13:Ut(a);break;case 19:Qe(st);break;case 10:Bn(a.type);break;case 22:case 23:Ut(a),du(),t!==null&&Qe(Ss);break;case 24:Bn(rt)}}function Xr(t,a){try{var i=a.updateQueue,c=i!==null?i.lastEffect:null;if(c!==null){var O=c.next;i=O;do{if((i.tag&t)===t){c=void 0;var m=i.create,S=i.inst;c=m(),S.destroy=c}i=i.next}while(i!==O)}}catch($){Ge(a,a.return,$)}}function Ca(t,a,i){try{var c=a.updateQueue,O=c!==null?c.lastEffect:null;if(O!==null){var m=O.next;c=m;do{if((c.tag&t)===t){var S=c.inst,$=S.destroy;if($!==void 0){S.destroy=void 0,O=a;var _=i,L=$;try{L()}catch(ae){Ge(O,_,ae)}}}c=c.next}while(c!==m)}}catch(ae){Ge(a,a.return,ae)}}function gx(t){var a=t.updateQueue;if(a!==null){var i=t.stateNode;try{op(a,i)}catch(c){Ge(t,t.return,c)}}}function bx(t,a,i){i.props=$s(t.type,t.memoizedProps),i.state=t.memoizedState;try{i.componentWillUnmount()}catch(c){Ge(t,a,c)}}function Zr(t,a){try{var i=t.ref;if(i!==null){switch(t.tag){case 26:case 27:case 5:var c=t.stateNode;break;case 30:c=t.stateNode;break;default:c=t.stateNode}typeof i=="function"?t.refCleanup=i(c):i.current=c}}catch(O){Ge(t,a,O)}}function $n(t,a){var i=t.ref,c=t.refCleanup;if(i!==null)if(typeof c=="function")try{c()}catch(O){Ge(t,a,O)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof i=="function")try{i(null)}catch(O){Ge(t,a,O)}else i.current=null}function vx(t){var a=t.type,i=t.memoizedProps,c=t.stateNode;try{e:switch(a){case"button":case"input":case"select":case"textarea":i.autoFocus&&c.focus();break e;case"img":i.src?c.src=i.src:i.srcSet&&(c.srcset=i.srcSet)}}catch(O){Ge(t,t.return,O)}}function Uu(t,a,i){try{var c=t.stateNode;rj(c,t.type,i,a),c[Tt]=a}catch(O){Ge(t,t.return,O)}}function yx(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&qa(t.type)||t.tag===4}function Vu(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||yx(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&qa(t.type)||t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function Gu(t,a,i){var c=t.tag;if(c===5||c===6)t=t.stateNode,a?(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i).insertBefore(t,a):(a=i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,a.appendChild(t),i=i._reactRootContainer,i!=null||a.onclick!==null||(a.onclick=Vn));else if(c!==4&&(c===27&&qa(t.type)&&(i=t.stateNode,a=null),t=t.child,t!==null))for(Gu(t,a,i),t=t.sibling;t!==null;)Gu(t,a,i),t=t.sibling}function Qo(t,a,i){var c=t.tag;if(c===5||c===6)t=t.stateNode,a?i.insertBefore(t,a):i.appendChild(t);else if(c!==4&&(c===27&&qa(t.type)&&(i=t.stateNode),t=t.child,t!==null))for(Qo(t,a,i),t=t.sibling;t!==null;)Qo(t,a,i),t=t.sibling}function Sx(t){var a=t.stateNode,i=t.memoizedProps;try{for(var c=t.type,O=a.attributes;O.length;)a.removeAttributeNode(O[0]);St(a,c,i),a[gt]=t,a[Tt]=i}catch(m){Ge(t,t.return,m)}}var Jn=!1,ct=!1,Du=!1,Qx=typeof WeakSet=="function"?WeakSet:Set,pt=null;function qQ(t,a){if(t=t.containerInfo,Of=Go,t=Am(t),Ed(t)){if("selectionStart"in t)var i={start:t.selectionStart,end:t.selectionEnd};else e:{i=(i=t.ownerDocument)&&i.defaultView||window;var c=i.getSelection&&i.getSelection();if(c&&c.rangeCount!==0){i=c.anchorNode;var O=c.anchorOffset,m=c.focusNode;c=c.focusOffset;try{i.nodeType,m.nodeType}catch{i=null;break e}var S=0,$=-1,_=-1,L=0,ae=0,re=t,H=null;t:for(;;){for(var te;re!==i||O!==0&&re.nodeType!==3||($=S+O),re!==m||c!==0&&re.nodeType!==3||(_=S+c),re.nodeType===3&&(S+=re.nodeValue.length),(te=re.firstChild)!==null;)H=re,re=te;for(;;){if(re===t)break t;if(H===i&&++L===O&&($=S),H===m&&++ae===c&&(_=S),(te=re.nextSibling)!==null)break;re=H,H=re.parentNode}re=te}i=$===-1||_===-1?null:{start:$,end:_}}else i=null}i=i||{start:0,end:0}}else i=null;for(hf={focusedElem:t,selectionRange:i},Go=!1,pt=a;pt!==null;)if(a=pt,t=a.child,(a.subtreeFlags&1028)!==0&&t!==null)t.return=a,pt=t;else for(;pt!==null;){switch(a=pt,m=a.alternate,t=a.flags,a.tag){case 0:if((t&4)!==0&&(t=a.updateQueue,t=t!==null?t.events:null,t!==null))for(i=0;i<t.length;i++)O=t[i],O.ref.impl=O.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&m!==null){t=void 0,i=a,O=m.memoizedProps,m=m.memoizedState,c=i.stateNode;try{var Oe=$s(i.type,O);t=c.getSnapshotBeforeUpdate(Oe,m),c.__reactInternalSnapshotBeforeUpdate=t}catch(je){Ge(i,i.return,je)}}break;case 3:if((t&1024)!==0){if(t=a.stateNode.containerInfo,i=t.nodeType,i===9)xf(t);else if(i===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":xf(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(r(163))}if(t=a.sibling,t!==null){t.return=a.return,pt=t;break}pt=a.return}}function jx(t,a,i){var c=i.flags;switch(i.tag){case 0:case 11:case 15:ta(t,i),c&4&&Xr(5,i);break;case 1:if(ta(t,i),c&4)if(t=i.stateNode,a===null)try{t.componentDidMount()}catch(S){Ge(i,i.return,S)}else{var O=$s(i.type,a.memoizedProps);a=a.memoizedState;try{t.componentDidUpdate(O,a,t.__reactInternalSnapshotBeforeUpdate)}catch(S){Ge(i,i.return,S)}}c&64&&gx(i),c&512&&Zr(i,i.return);break;case 3:if(ta(t,i),c&64&&(t=i.updateQueue,t!==null)){if(a=null,i.child!==null)switch(i.child.tag){case 27:case 5:a=i.child.stateNode;break;case 1:a=i.child.stateNode}try{op(t,a)}catch(S){Ge(i,i.return,S)}}break;case 27:a===null&&c&4&&Sx(i);case 26:case 5:ta(t,i),a===null&&c&4&&vx(i),c&512&&Zr(i,i.return);break;case 12:ta(t,i);break;case 31:ta(t,i),c&4&&$x(t,i);break;case 13:ta(t,i),c&4&&Tx(t,i),c&64&&(t=i.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(i=BQ.bind(null,i),hj(t,i))));break;case 22:if(c=i.memoizedState!==null||Jn,!c){a=a!==null&&a.memoizedState!==null||ct,O=Jn;var m=ct;Jn=c,(ct=a)&&!m?na(t,i,(i.subtreeFlags&8772)!==0):ta(t,i),Jn=O,ct=m}break;case 30:break;default:ta(t,i)}}function wx(t){var a=t.alternate;a!==null&&(t.alternate=null,wx(a)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(a=t.stateNode,a!==null&&yd(a)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var et=null,Pt=!1;function ea(t,a,i){for(i=i.child;i!==null;)kx(t,a,i),i=i.sibling}function kx(t,a,i){if(Zt&&typeof Zt.onCommitFiberUnmount=="function")try{Zt.onCommitFiberUnmount(ir,i)}catch{}switch(i.tag){case 26:ct||$n(i,a),ea(t,a,i),i.memoizedState?i.memoizedState.count--:i.stateNode&&(i=i.stateNode,i.parentNode.removeChild(i));break;case 27:ct||$n(i,a);var c=et,O=Pt;qa(i.type)&&(et=i.stateNode,Pt=!1),ea(t,a,i),Lr(i.stateNode),et=c,Pt=O;break;case 5:ct||$n(i,a);case 6:if(c=et,O=Pt,et=null,ea(t,a,i),et=c,Pt=O,et!==null)if(Pt)try{(et.nodeType===9?et.body:et.nodeName==="HTML"?et.ownerDocument.body:et).removeChild(i.stateNode)}catch(m){Ge(i,a,m)}else try{et.removeChild(i.stateNode)}catch(m){Ge(i,a,m)}break;case 18:et!==null&&(Pt?(t=et,gg(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,i.stateNode),Cl(t)):gg(et,i.stateNode));break;case 4:c=et,O=Pt,et=i.stateNode.containerInfo,Pt=!0,ea(t,a,i),et=c,Pt=O;break;case 0:case 11:case 14:case 15:Ca(2,i,a),ct||Ca(4,i,a),ea(t,a,i);break;case 1:ct||($n(i,a),c=i.stateNode,typeof c.componentWillUnmount=="function"&&bx(i,a,c)),ea(t,a,i);break;case 21:ea(t,a,i);break;case 22:ct=(c=ct)||i.memoizedState!==null,ea(t,a,i),ct=c;break;default:ea(t,a,i)}}function $x(t,a){if(a.memoizedState===null&&(t=a.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{Cl(t)}catch(i){Ge(a,a.return,i)}}}function Tx(t,a){if(a.memoizedState===null&&(t=a.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{Cl(t)}catch(i){Ge(a,a.return,i)}}function MQ(t){switch(t.tag){case 31:case 13:case 19:var a=t.stateNode;return a===null&&(a=t.stateNode=new Qx),a;case 22:return t=t.stateNode,a=t._retryCache,a===null&&(a=t._retryCache=new Qx),a;default:throw Error(r(435,t.tag))}}function jo(t,a){var i=MQ(t);a.forEach(function(c){if(!i.has(c)){i.add(c);var O=HQ.bind(null,t,c);c.then(O,O)}})}function zt(t,a){var i=a.deletions;if(i!==null)for(var c=0;c<i.length;c++){var O=i[c],m=t,S=a,$=S;e:for(;$!==null;){switch($.tag){case 27:if(qa($.type)){et=$.stateNode,Pt=!1;break e}break;case 5:et=$.stateNode,Pt=!1;break e;case 3:case 4:et=$.stateNode.containerInfo,Pt=!0;break e}$=$.return}if(et===null)throw Error(r(160));kx(m,S,O),et=null,Pt=!1,m=O.alternate,m!==null&&(m.return=null),O.return=null}if(a.subtreeFlags&13886)for(a=a.child;a!==null;)Nx(a,t),a=a.sibling}var hn=null;function Nx(t,a){var i=t.alternate,c=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:zt(a,t),Ct(t),c&4&&(Ca(3,t,t.return),Xr(3,t),Ca(5,t,t.return));break;case 1:zt(a,t),Ct(t),c&512&&(ct||i===null||$n(i,i.return)),c&64&&Jn&&(t=t.updateQueue,t!==null&&(c=t.callbacks,c!==null&&(i=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=i===null?c:i.concat(c))));break;case 26:var O=hn;if(zt(a,t),Ct(t),c&512&&(ct||i===null||$n(i,i.return)),c&4){var m=i!==null?i.memoizedState:null;if(c=t.memoizedState,i===null)if(c===null)if(t.stateNode===null){e:{c=t.type,i=t.memoizedProps,O=O.ownerDocument||O;t:switch(c){case"title":m=O.getElementsByTagName("title")[0],(!m||m[dr]||m[gt]||m.namespaceURI==="http://www.w3.org/2000/svg"||m.hasAttribute("itemprop"))&&(m=O.createElement(c),O.head.insertBefore(m,O.querySelector("head > title"))),St(m,c,i),m[gt]=t,mt(m),c=m;break e;case"link":var S=Ng("link","href",O).get(c+(i.href||""));if(S){for(var $=0;$<S.length;$++)if(m=S[$],m.getAttribute("href")===(i.href==null||i.href===""?null:i.href)&&m.getAttribute("rel")===(i.rel==null?null:i.rel)&&m.getAttribute("title")===(i.title==null?null:i.title)&&m.getAttribute("crossorigin")===(i.crossOrigin==null?null:i.crossOrigin)){S.splice($,1);break t}}m=O.createElement(c),St(m,c,i),O.head.appendChild(m);break;case"meta":if(S=Ng("meta","content",O).get(c+(i.content||""))){for($=0;$<S.length;$++)if(m=S[$],m.getAttribute("content")===(i.content==null?null:""+i.content)&&m.getAttribute("name")===(i.name==null?null:i.name)&&m.getAttribute("property")===(i.property==null?null:i.property)&&m.getAttribute("http-equiv")===(i.httpEquiv==null?null:i.httpEquiv)&&m.getAttribute("charset")===(i.charSet==null?null:i.charSet)){S.splice($,1);break t}}m=O.createElement(c),St(m,c,i),O.head.appendChild(m);break;default:throw Error(r(468,c))}m[gt]=t,mt(m),c=m}t.stateNode=c}else Pg(O,t.type,t.stateNode);else t.stateNode=Tg(O,c,t.memoizedProps);else m!==c?(m===null?i.stateNode!==null&&(i=i.stateNode,i.parentNode.removeChild(i)):m.count--,c===null?Pg(O,t.type,t.stateNode):Tg(O,c,t.memoizedProps)):c===null&&t.stateNode!==null&&Uu(t,t.memoizedProps,i.memoizedProps)}break;case 27:zt(a,t),Ct(t),c&512&&(ct||i===null||$n(i,i.return)),i!==null&&c&4&&Uu(t,t.memoizedProps,i.memoizedProps);break;case 5:if(zt(a,t),Ct(t),c&512&&(ct||i===null||$n(i,i.return)),t.flags&32){O=t.stateNode;try{tl(O,"")}catch(Oe){Ge(t,t.return,Oe)}}c&4&&t.stateNode!=null&&(O=t.memoizedProps,Uu(t,O,i!==null?i.memoizedProps:O)),c&1024&&(Du=!0);break;case 6:if(zt(a,t),Ct(t),c&4){if(t.stateNode===null)throw Error(r(162));c=t.memoizedProps,i=t.stateNode;try{i.nodeValue=c}catch(Oe){Ge(t,t.return,Oe)}}break;case 3:if(Mo=null,O=hn,hn=Eo(a.containerInfo),zt(a,t),hn=O,Ct(t),c&4&&i!==null&&i.memoizedState.isDehydrated)try{Cl(a.containerInfo)}catch(Oe){Ge(t,t.return,Oe)}Du&&(Du=!1,Px(t));break;case 4:c=hn,hn=Eo(t.stateNode.containerInfo),zt(a,t),Ct(t),hn=c;break;case 12:zt(a,t),Ct(t);break;case 31:zt(a,t),Ct(t),c&4&&(c=t.updateQueue,c!==null&&(t.updateQueue=null,jo(t,c)));break;case 13:zt(a,t),Ct(t),t.child.flags&8192&&t.memoizedState!==null!=(i!==null&&i.memoizedState!==null)&&(ko=Xt()),c&4&&(c=t.updateQueue,c!==null&&(t.updateQueue=null,jo(t,c)));break;case 22:O=t.memoizedState!==null;var _=i!==null&&i.memoizedState!==null,L=Jn,ae=ct;if(Jn=L||O,ct=ae||_,zt(a,t),ct=ae,Jn=L,Ct(t),c&8192)e:for(a=t.stateNode,a._visibility=O?a._visibility&-2:a._visibility|1,O&&(i===null||_||Jn||ct||Ts(t)),i=null,a=t;;){if(a.tag===5||a.tag===26){if(i===null){_=i=a;try{if(m=_.stateNode,O)S=m.style,typeof S.setProperty=="function"?S.setProperty("display","none","important"):S.display="none";else{$=_.stateNode;var re=_.memoizedProps.style,H=re!=null&&re.hasOwnProperty("display")?re.display:null;$.style.display=H==null||typeof H=="boolean"?"":(""+H).trim()}}catch(Oe){Ge(_,_.return,Oe)}}}else if(a.tag===6){if(i===null){_=a;try{_.stateNode.nodeValue=O?"":_.memoizedProps}catch(Oe){Ge(_,_.return,Oe)}}}else if(a.tag===18){if(i===null){_=a;try{var te=_.stateNode;O?bg(te,!0):bg(_.stateNode,!1)}catch(Oe){Ge(_,_.return,Oe)}}}else if((a.tag!==22&&a.tag!==23||a.memoizedState===null||a===t)&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===t)break e;for(;a.sibling===null;){if(a.return===null||a.return===t)break e;i===a&&(i=null),a=a.return}i===a&&(i=null),a.sibling.return=a.return,a=a.sibling}c&4&&(c=t.updateQueue,c!==null&&(i=c.retryQueue,i!==null&&(c.retryQueue=null,jo(t,i))));break;case 19:zt(a,t),Ct(t),c&4&&(c=t.updateQueue,c!==null&&(t.updateQueue=null,jo(t,c)));break;case 30:break;case 21:break;default:zt(a,t),Ct(t)}}function Ct(t){var a=t.flags;if(a&2){try{for(var i,c=t.return;c!==null;){if(yx(c)){i=c;break}c=c.return}if(i==null)throw Error(r(160));switch(i.tag){case 27:var O=i.stateNode,m=Vu(t);Qo(t,m,O);break;case 5:var S=i.stateNode;i.flags&32&&(tl(S,""),i.flags&=-33);var $=Vu(t);Qo(t,$,S);break;case 3:case 4:var _=i.stateNode.containerInfo,L=Vu(t);Gu(t,L,_);break;default:throw Error(r(161))}}catch(ae){Ge(t,t.return,ae)}t.flags&=-3}a&4096&&(t.flags&=-4097)}function Px(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var a=t;Px(a),a.tag===5&&a.flags&1024&&a.stateNode.reset(),t=t.sibling}}function ta(t,a){if(a.subtreeFlags&8772)for(a=a.child;a!==null;)jx(t,a.alternate,a),a=a.sibling}function Ts(t){for(t=t.child;t!==null;){var a=t;switch(a.tag){case 0:case 11:case 14:case 15:Ca(4,a,a.return),Ts(a);break;case 1:$n(a,a.return);var i=a.stateNode;typeof i.componentWillUnmount=="function"&&bx(a,a.return,i),Ts(a);break;case 27:Lr(a.stateNode);case 26:case 5:$n(a,a.return),Ts(a);break;case 22:a.memoizedState===null&&Ts(a);break;case 30:Ts(a);break;default:Ts(a)}t=t.sibling}}function na(t,a,i){for(i=i&&(a.subtreeFlags&8772)!==0,a=a.child;a!==null;){var c=a.alternate,O=t,m=a,S=m.flags;switch(m.tag){case 0:case 11:case 15:na(O,m,i),Xr(4,m);break;case 1:if(na(O,m,i),c=m,O=c.stateNode,typeof O.componentDidMount=="function")try{O.componentDidMount()}catch(L){Ge(c,c.return,L)}if(c=m,O=c.updateQueue,O!==null){var $=c.stateNode;try{var _=O.shared.hiddenCallbacks;if(_!==null)for(O.shared.hiddenCallbacks=null,O=0;O<_.length;O++)ip(_[O],$)}catch(L){Ge(c,c.return,L)}}i&&S&64&&gx(m),Zr(m,m.return);break;case 27:Sx(m);case 26:case 5:na(O,m,i),i&&c===null&&S&4&&vx(m),Zr(m,m.return);break;case 12:na(O,m,i);break;case 31:na(O,m,i),i&&S&4&&$x(O,m);break;case 13:na(O,m,i),i&&S&4&&Tx(O,m);break;case 22:m.memoizedState===null&&na(O,m,i),Zr(m,m.return);break;case 30:break;default:na(O,m,i)}a=a.sibling}}function Lu(t,a){var i=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),t=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(t=a.memoizedState.cachePool.pool),t!==i&&(t!=null&&t.refCount++,i!=null&&Qr(i))}function Wu(t,a){t=null,a.alternate!==null&&(t=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==t&&(a.refCount++,t!=null&&Qr(t))}function mn(t,a,i,c){if(a.subtreeFlags&10256)for(a=a.child;a!==null;)zx(t,a,i,c),a=a.sibling}function zx(t,a,i,c){var O=a.flags;switch(a.tag){case 0:case 11:case 15:mn(t,a,i,c),O&2048&&Xr(9,a);break;case 1:mn(t,a,i,c);break;case 3:mn(t,a,i,c),O&2048&&(t=null,a.alternate!==null&&(t=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==t&&(a.refCount++,t!=null&&Qr(t)));break;case 12:if(O&2048){mn(t,a,i,c),t=a.stateNode;try{var m=a.memoizedProps,S=m.id,$=m.onPostCommit;typeof $=="function"&&$(S,a.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(_){Ge(a,a.return,_)}}else mn(t,a,i,c);break;case 31:mn(t,a,i,c);break;case 13:mn(t,a,i,c);break;case 23:break;case 22:m=a.stateNode,S=a.alternate,a.memoizedState!==null?m._visibility&2?mn(t,a,i,c):Er(t,a):m._visibility&2?mn(t,a,i,c):(m._visibility|=2,yl(t,a,i,c,(a.subtreeFlags&10256)!==0||!1)),O&2048&&Lu(S,a);break;case 24:mn(t,a,i,c),O&2048&&Wu(a.alternate,a);break;default:mn(t,a,i,c)}}function yl(t,a,i,c,O){for(O=O&&((a.subtreeFlags&10256)!==0||!1),a=a.child;a!==null;){var m=t,S=a,$=i,_=c,L=S.flags;switch(S.tag){case 0:case 11:case 15:yl(m,S,$,_,O),Xr(8,S);break;case 23:break;case 22:var ae=S.stateNode;S.memoizedState!==null?ae._visibility&2?yl(m,S,$,_,O):Er(m,S):(ae._visibility|=2,yl(m,S,$,_,O)),O&&L&2048&&Lu(S.alternate,S);break;case 24:yl(m,S,$,_,O),O&&L&2048&&Wu(S.alternate,S);break;default:yl(m,S,$,_,O)}a=a.sibling}}function Er(t,a){if(a.subtreeFlags&10256)for(a=a.child;a!==null;){var i=t,c=a,O=c.flags;switch(c.tag){case 22:Er(i,c),O&2048&&Lu(c.alternate,c);break;case 24:Er(i,c),O&2048&&Wu(c.alternate,c);break;default:Er(i,c)}a=a.sibling}}var qr=8192;function Sl(t,a,i){if(t.subtreeFlags&qr)for(t=t.child;t!==null;)Cx(t,a,i),t=t.sibling}function Cx(t,a,i){switch(t.tag){case 26:Sl(t,a,i),t.flags&qr&&t.memoizedState!==null&&kj(i,hn,t.memoizedState,t.memoizedProps);break;case 5:Sl(t,a,i);break;case 3:case 4:var c=hn;hn=Eo(t.stateNode.containerInfo),Sl(t,a,i),hn=c;break;case 22:t.memoizedState===null&&(c=t.alternate,c!==null&&c.memoizedState!==null?(c=qr,qr=16777216,Sl(t,a,i),qr=c):Sl(t,a,i));break;default:Sl(t,a,i)}}function Rx(t){var a=t.alternate;if(a!==null&&(t=a.child,t!==null)){a.child=null;do a=t.sibling,t.sibling=null,t=a;while(t!==null)}}function Mr(t){var a=t.deletions;if((t.flags&16)!==0){if(a!==null)for(var i=0;i<a.length;i++){var c=a[i];pt=c,Ax(c,t)}Rx(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)_x(t),t=t.sibling}function _x(t){switch(t.tag){case 0:case 11:case 15:Mr(t),t.flags&2048&&Ca(9,t,t.return);break;case 3:Mr(t);break;case 12:Mr(t);break;case 22:var a=t.stateNode;t.memoizedState!==null&&a._visibility&2&&(t.return===null||t.return.tag!==13)?(a._visibility&=-3,wo(t)):Mr(t);break;default:Mr(t)}}function wo(t){var a=t.deletions;if((t.flags&16)!==0){if(a!==null)for(var i=0;i<a.length;i++){var c=a[i];pt=c,Ax(c,t)}Rx(t)}for(t=t.child;t!==null;){switch(a=t,a.tag){case 0:case 11:case 15:Ca(8,a,a.return),wo(a);break;case 22:i=a.stateNode,i._visibility&2&&(i._visibility&=-3,wo(a));break;default:wo(a)}t=t.sibling}}function Ax(t,a){for(;pt!==null;){var i=pt;switch(i.tag){case 0:case 11:case 15:Ca(8,i,a);break;case 23:case 22:if(i.memoizedState!==null&&i.memoizedState.cachePool!==null){var c=i.memoizedState.cachePool.pool;c!=null&&c.refCount++}break;case 24:Qr(i.memoizedState.cache)}if(c=i.child,c!==null)c.return=i,pt=c;else e:for(i=t;pt!==null;){c=pt;var O=c.sibling,m=c.return;if(wx(c),c===i){pt=null;break e}if(O!==null){O.return=m,pt=O;break e}pt=m}}}var YQ={getCacheForType:function(t){var a=vt(rt),i=a.data.get(t);return i===void 0&&(i=t(),a.data.set(t,i)),i},cacheSignal:function(){return vt(rt).controller.signal}},UQ=typeof WeakMap=="function"?WeakMap:Map,Ye=0,He=null,Re=null,Ae=0,Ve=0,Vt=null,Ra=!1,Ql=!1,Bu=!1,aa=0,at=0,_a=0,Ns=0,Hu=0,Gt=0,jl=0,Yr=null,Rt=null,Iu=!1,ko=0,Xx=0,$o=1/0,To=null,Aa=null,ft=0,Xa=null,wl=null,sa=0,Fu=0,Ku=null,Zx=null,Ur=0,Ju=null;function Dt(){return(Ye&2)!==0&&Ae!==0?Ae&-Ae:N.T!==null?lf():Jh()}function Ex(){if(Gt===0)if((Ae&536870912)===0||Ze){var t=Ai;Ai<<=1,(Ai&3932160)===0&&(Ai=262144),Gt=t}else Gt=536870912;return t=Yt.current,t!==null&&(t.flags|=32),Gt}function _t(t,a,i){(t===He&&(Ve===2||Ve===9)||t.cancelPendingCommit!==null)&&(kl(t,0),Za(t,Ae,Gt,!1)),cr(t,i),((Ye&2)===0||t!==He)&&(t===He&&((Ye&2)===0&&(Ns|=i),at===4&&Za(t,Ae,Gt,!1)),Tn(t))}function qx(t,a,i){if((Ye&6)!==0)throw Error(r(327));var c=!i&&(a&127)===0&&(a&t.expiredLanes)===0||or(t,a),O=c?DQ(t,a):tf(t,a,!0),m=c;do{if(O===0){Ql&&!c&&Za(t,a,0,!1);break}else{if(i=t.current.alternate,m&&!VQ(i)){O=tf(t,a,!1),m=!1;continue}if(O===2){if(m=a,t.errorRecoveryDisabledLanes&m)var S=0;else S=t.pendingLanes&-536870913,S=S!==0?S:S&536870912?536870912:0;if(S!==0){a=S;e:{var $=t;O=Yr;var _=$.current.memoizedState.isDehydrated;if(_&&(kl($,S).flags|=256),S=tf($,S,!1),S!==2){if(Bu&&!_){$.errorRecoveryDisabledLanes|=m,Ns|=m,O=4;break e}m=Rt,Rt=O,m!==null&&(Rt===null?Rt=m:Rt.push.apply(Rt,m))}O=S}if(m=!1,O!==2)continue}}if(O===1){kl(t,0),Za(t,a,0,!0);break}e:{switch(c=t,m=O,m){case 0:case 1:throw Error(r(345));case 4:if((a&4194048)!==a)break;case 6:Za(c,a,Gt,!Ra);break e;case 2:Rt=null;break;case 3:case 5:break;default:throw Error(r(329))}if((a&62914560)===a&&(O=ko+300-Xt(),10<O)){if(Za(c,a,Gt,!Ra),Zi(c,0,!0)!==0)break e;sa=a,c.timeoutHandle=pg(Mx.bind(null,c,i,Rt,To,Iu,a,Gt,Ns,jl,Ra,m,"Throttled",-0,0),O);break e}Mx(c,i,Rt,To,Iu,a,Gt,Ns,jl,Ra,m,null,-0,0)}}break}while(!0);Tn(t)}function Mx(t,a,i,c,O,m,S,$,_,L,ae,re,H,te){if(t.timeoutHandle=-1,re=a.subtreeFlags,re&8192||(re&16785408)===16785408){re={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Vn},Cx(a,m,re);var Oe=(m&62914560)===m?ko-Xt():(m&4194048)===m?Xx-Xt():0;if(Oe=$j(re,Oe),Oe!==null){sa=m,t.cancelPendingCommit=Oe(Bx.bind(null,t,a,m,i,c,O,S,$,_,ae,re,null,H,te)),Za(t,m,S,!L);return}}Bx(t,a,m,i,c,O,S,$,_)}function VQ(t){for(var a=t;;){var i=a.tag;if((i===0||i===11||i===15)&&a.flags&16384&&(i=a.updateQueue,i!==null&&(i=i.stores,i!==null)))for(var c=0;c<i.length;c++){var O=i[c],m=O.getSnapshot;O=O.value;try{if(!qt(m(),O))return!1}catch{return!1}}if(i=a.child,a.subtreeFlags&16384&&i!==null)i.return=a,a=i;else{if(a===t)break;for(;a.sibling===null;){if(a.return===null||a.return===t)return!0;a=a.return}a.sibling.return=a.return,a=a.sibling}}return!0}function Za(t,a,i,c){a&=~Hu,a&=~Ns,t.suspendedLanes|=a,t.pingedLanes&=~a,c&&(t.warmLanes|=a),c=t.expirationTimes;for(var O=a;0<O;){var m=31-Et(O),S=1<<m;c[m]=-1,O&=~S}i!==0&&Ih(t,i,a)}function No(){return(Ye&6)===0?(Vr(0),!1):!0}function ef(){if(Re!==null){if(Ve===0)var t=Re.return;else t=Re,Wn=vs=null,pu(t),pl=null,wr=0,t=Re;for(;t!==null;)xx(t.alternate,t),t=t.return;Re=null}}function kl(t,a){var i=t.timeoutHandle;i!==-1&&(t.timeoutHandle=-1,cj(i)),i=t.cancelPendingCommit,i!==null&&(t.cancelPendingCommit=null,i()),sa=0,ef(),He=t,Re=i=Dn(t.current,null),Ae=a,Ve=0,Vt=null,Ra=!1,Ql=or(t,a),Bu=!1,jl=Gt=Hu=Ns=_a=at=0,Rt=Yr=null,Iu=!1,(a&8)!==0&&(a|=a&32);var c=t.entangledLanes;if(c!==0)for(t=t.entanglements,c&=a;0<c;){var O=31-Et(c),m=1<<O;a|=t[O],c&=~m}return aa=a,Hi(),i}function Yx(t,a){$e=null,N.H=Rr,a===ml||a===ao?(a=ap(),Ve=3):a===su?(a=ap(),Ve=4):Ve=a===Cu?8:a!==null&&typeof a=="object"&&typeof a.then=="function"?6:1,Vt=a,Re===null&&(at=1,go(t,tn(a,t.current)))}function Ux(){var t=Yt.current;return t===null?!0:(Ae&4194048)===Ae?ln===null:(Ae&62914560)===Ae||(Ae&536870912)!==0?t===ln:!1}function Vx(){var t=N.H;return N.H=Rr,t===null?Rr:t}function Gx(){var t=N.A;return N.A=YQ,t}function Po(){at=4,Ra||(Ae&4194048)!==Ae&&Yt.current!==null||(Ql=!0),(_a&134217727)===0&&(Ns&134217727)===0||He===null||Za(He,Ae,Gt,!1)}function tf(t,a,i){var c=Ye;Ye|=2;var O=Vx(),m=Gx();(He!==t||Ae!==a)&&(To=null,kl(t,a)),a=!1;var S=at;e:do try{if(Ve!==0&&Re!==null){var $=Re,_=Vt;switch(Ve){case 8:ef(),S=6;break e;case 3:case 2:case 9:case 6:Yt.current===null&&(a=!0);var L=Ve;if(Ve=0,Vt=null,$l(t,$,_,L),i&&Ql){S=0;break e}break;default:L=Ve,Ve=0,Vt=null,$l(t,$,_,L)}}GQ(),S=at;break}catch(ae){Yx(t,ae)}while(!0);return a&&t.shellSuspendCounter++,Wn=vs=null,Ye=c,N.H=O,N.A=m,Re===null&&(He=null,Ae=0,Hi()),S}function GQ(){for(;Re!==null;)Dx(Re)}function DQ(t,a){var i=Ye;Ye|=2;var c=Vx(),O=Gx();He!==t||Ae!==a?(To=null,$o=Xt()+500,kl(t,a)):Ql=or(t,a);e:do try{if(Ve!==0&&Re!==null){a=Re;var m=Vt;t:switch(Ve){case 1:Ve=0,Vt=null,$l(t,a,m,1);break;case 2:case 9:if(tp(m)){Ve=0,Vt=null,Lx(a);break}a=function(){Ve!==2&&Ve!==9||He!==t||(Ve=7),Tn(t)},m.then(a,a);break e;case 3:Ve=7;break e;case 4:Ve=5;break e;case 7:tp(m)?(Ve=0,Vt=null,Lx(a)):(Ve=0,Vt=null,$l(t,a,m,7));break;case 5:var S=null;switch(Re.tag){case 26:S=Re.memoizedState;case 5:case 27:var $=Re;if(S?zg(S):$.stateNode.complete){Ve=0,Vt=null;var _=$.sibling;if(_!==null)Re=_;else{var L=$.return;L!==null?(Re=L,zo(L)):Re=null}break t}}Ve=0,Vt=null,$l(t,a,m,5);break;case 6:Ve=0,Vt=null,$l(t,a,m,6);break;case 8:ef(),at=6;break e;default:throw Error(r(462))}}LQ();break}catch(ae){Yx(t,ae)}while(!0);return Wn=vs=null,N.H=c,N.A=O,Ye=i,Re!==null?0:(He=null,Ae=0,Hi(),at)}function LQ(){for(;Re!==null&&!m2();)Dx(Re)}function Dx(t){var a=mx(t.alternate,t,aa);t.memoizedProps=t.pendingProps,a===null?zo(t):Re=a}function Lx(t){var a=t,i=a.alternate;switch(a.tag){case 15:case 0:a=cx(i,a,a.pendingProps,a.type,void 0,Ae);break;case 11:a=cx(i,a,a.pendingProps,a.type.render,a.ref,Ae);break;case 5:pu(a);default:xx(i,a),a=Re=Gm(a,aa),a=mx(i,a,aa)}t.memoizedProps=t.pendingProps,a===null?zo(t):Re=a}function $l(t,a,i,c){Wn=vs=null,pu(a),pl=null,wr=0;var O=a.return;try{if(_Q(t,O,a,i,Ae)){at=1,go(t,tn(i,t.current)),Re=null;return}}catch(m){if(O!==null)throw Re=O,m;at=1,go(t,tn(i,t.current)),Re=null;return}a.flags&32768?(Ze||c===1?t=!0:Ql||(Ae&536870912)!==0?t=!1:(Ra=t=!0,(c===2||c===9||c===3||c===6)&&(c=Yt.current,c!==null&&c.tag===13&&(c.flags|=16384))),Wx(a,t)):zo(a)}function zo(t){var a=t;do{if((a.flags&32768)!==0){Wx(a,Ra);return}t=a.return;var i=ZQ(a.alternate,a,aa);if(i!==null){Re=i;return}if(a=a.sibling,a!==null){Re=a;return}Re=a=t}while(a!==null);at===0&&(at=5)}function Wx(t,a){do{var i=EQ(t.alternate,t);if(i!==null){i.flags&=32767,Re=i;return}if(i=t.return,i!==null&&(i.flags|=32768,i.subtreeFlags=0,i.deletions=null),!a&&(t=t.sibling,t!==null)){Re=t;return}Re=t=i}while(t!==null);at=6,Re=null}function Bx(t,a,i,c,O,m,S,$,_){t.cancelPendingCommit=null;do Co();while(ft!==0);if((Ye&6)!==0)throw Error(r(327));if(a!==null){if(a===t.current)throw Error(r(177));if(m=a.lanes|a.childLanes,m|=Vd,w2(t,i,m,S,$,_),t===He&&(Re=He=null,Ae=0),wl=a,Xa=t,sa=i,Fu=m,Ku=O,Zx=c,(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,IQ(Ri,function(){return Jx(),null})):(t.callbackNode=null,t.callbackPriority=0),c=(a.flags&13878)!==0,(a.subtreeFlags&13878)!==0||c){c=N.T,N.T=null,O=U.p,U.p=2,S=Ye,Ye|=4;try{qQ(t,a,i)}finally{Ye=S,U.p=O,N.T=c}}ft=1,Hx(),Ix(),Fx()}}function Hx(){if(ft===1){ft=0;var t=Xa,a=wl,i=(a.flags&13878)!==0;if((a.subtreeFlags&13878)!==0||i){i=N.T,N.T=null;var c=U.p;U.p=2;var O=Ye;Ye|=4;try{Nx(a,t);var m=hf,S=Am(t.containerInfo),$=m.focusedElem,_=m.selectionRange;if(S!==$&&$&&$.ownerDocument&&_m($.ownerDocument.documentElement,$)){if(_!==null&&Ed($)){var L=_.start,ae=_.end;if(ae===void 0&&(ae=L),"selectionStart"in $)$.selectionStart=L,$.selectionEnd=Math.min(ae,$.value.length);else{var re=$.ownerDocument||document,H=re&&re.defaultView||window;if(H.getSelection){var te=H.getSelection(),Oe=$.textContent.length,je=Math.min(_.start,Oe),Be=_.end===void 0?je:Math.min(_.end,Oe);!te.extend&&je>Be&&(S=Be,Be=je,je=S);var q=Rm($,je),A=Rm($,Be);if(q&&A&&(te.rangeCount!==1||te.anchorNode!==q.node||te.anchorOffset!==q.offset||te.focusNode!==A.node||te.focusOffset!==A.offset)){var D=re.createRange();D.setStart(q.node,q.offset),te.removeAllRanges(),je>Be?(te.addRange(D),te.extend(A.node,A.offset)):(D.setEnd(A.node,A.offset),te.addRange(D))}}}}for(re=[],te=$;te=te.parentNode;)te.nodeType===1&&re.push({element:te,left:te.scrollLeft,top:te.scrollTop});for(typeof $.focus=="function"&&$.focus(),$=0;$<re.length;$++){var le=re[$];le.element.scrollLeft=le.left,le.element.scrollTop=le.top}}Go=!!Of,hf=Of=null}finally{Ye=O,U.p=c,N.T=i}}t.current=a,ft=2}}function Ix(){if(ft===2){ft=0;var t=Xa,a=wl,i=(a.flags&8772)!==0;if((a.subtreeFlags&8772)!==0||i){i=N.T,N.T=null;var c=U.p;U.p=2;var O=Ye;Ye|=4;try{jx(t,a.alternate,a)}finally{Ye=O,U.p=c,N.T=i}}ft=3}}function Fx(){if(ft===4||ft===3){ft=0,p2();var t=Xa,a=wl,i=sa,c=Zx;(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?ft=5:(ft=0,wl=Xa=null,Kx(t,t.pendingLanes));var O=t.pendingLanes;if(O===0&&(Aa=null),bd(i),a=a.stateNode,Zt&&typeof Zt.onCommitFiberRoot=="function")try{Zt.onCommitFiberRoot(ir,a,void 0,(a.current.flags&128)===128)}catch{}if(c!==null){a=N.T,O=U.p,U.p=2,N.T=null;try{for(var m=t.onRecoverableError,S=0;S<c.length;S++){var $=c[S];m($.value,{componentStack:$.stack})}}finally{N.T=a,U.p=O}}(sa&3)!==0&&Co(),Tn(t),O=t.pendingLanes,(i&261930)!==0&&(O&42)!==0?t===Ju?Ur++:(Ur=0,Ju=t):Ur=0,Vr(0)}}function Kx(t,a){(t.pooledCacheLanes&=a)===0&&(a=t.pooledCache,a!=null&&(t.pooledCache=null,Qr(a)))}function Co(){return Hx(),Ix(),Fx(),Jx()}function Jx(){if(ft!==5)return!1;var t=Xa,a=Fu;Fu=0;var i=bd(sa),c=N.T,O=U.p;try{U.p=32>i?32:i,N.T=null,i=Ku,Ku=null;var m=Xa,S=sa;if(ft=0,wl=Xa=null,sa=0,(Ye&6)!==0)throw Error(r(331));var $=Ye;if(Ye|=4,_x(m.current),zx(m,m.current,S,i),Ye=$,Vr(0,!1),Zt&&typeof Zt.onPostCommitFiberRoot=="function")try{Zt.onPostCommitFiberRoot(ir,m)}catch{}return!0}finally{U.p=O,N.T=c,Kx(t,a)}}function eg(t,a,i){a=tn(i,a),a=zu(t.stateNode,a,2),t=Na(t,a,2),t!==null&&(cr(t,2),Tn(t))}function Ge(t,a,i){if(t.tag===3)eg(t,t,i);else for(;a!==null;){if(a.tag===3){eg(a,t,i);break}else if(a.tag===1){var c=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof c.componentDidCatch=="function"&&(Aa===null||!Aa.has(c))){t=tn(i,t),i=tx(2),c=Na(a,i,2),c!==null&&(nx(i,c,a,t),cr(c,2),Tn(c));break}}a=a.return}}function nf(t,a,i){var c=t.pingCache;if(c===null){c=t.pingCache=new UQ;var O=new Set;c.set(a,O)}else O=c.get(a),O===void 0&&(O=new Set,c.set(a,O));O.has(i)||(Bu=!0,O.add(i),t=WQ.bind(null,t,a,i),a.then(t,t))}function WQ(t,a,i){var c=t.pingCache;c!==null&&c.delete(a),t.pingedLanes|=t.suspendedLanes&i,t.warmLanes&=~i,He===t&&(Ae&i)===i&&(at===4||at===3&&(Ae&62914560)===Ae&&300>Xt()-ko?(Ye&2)===0&&kl(t,0):Hu|=i,jl===Ae&&(jl=0)),Tn(t)}function tg(t,a){a===0&&(a=Hh()),t=xs(t,a),t!==null&&(cr(t,a),Tn(t))}function BQ(t){var a=t.memoizedState,i=0;a!==null&&(i=a.retryLane),tg(t,i)}function HQ(t,a){var i=0;switch(t.tag){case 31:case 13:var c=t.stateNode,O=t.memoizedState;O!==null&&(i=O.retryLane);break;case 19:c=t.stateNode;break;case 22:c=t.stateNode._retryCache;break;default:throw Error(r(314))}c!==null&&c.delete(a),tg(t,i)}function IQ(t,a){return md(t,a)}var Ro=null,Tl=null,af=!1,_o=!1,sf=!1,Ea=0;function Tn(t){t!==Tl&&t.next===null&&(Tl===null?Ro=Tl=t:Tl=Tl.next=t),_o=!0,af||(af=!0,KQ())}function Vr(t,a){if(!sf&&_o){sf=!0;do for(var i=!1,c=Ro;c!==null;){if(t!==0){var O=c.pendingLanes;if(O===0)var m=0;else{var S=c.suspendedLanes,$=c.pingedLanes;m=(1<<31-Et(42|t)+1)-1,m&=O&~(S&~$),m=m&201326741?m&201326741|1:m?m|2:0}m!==0&&(i=!0,lg(c,m))}else m=Ae,m=Zi(c,c===He?m:0,c.cancelPendingCommit!==null||c.timeoutHandle!==-1),(m&3)===0||or(c,m)||(i=!0,lg(c,m));c=c.next}while(i);sf=!1}}function FQ(){ng()}function ng(){_o=af=!1;var t=0;Ea!==0&&oj()&&(t=Ea);for(var a=Xt(),i=null,c=Ro;c!==null;){var O=c.next,m=ag(c,a);m===0?(c.next=null,i===null?Ro=O:i.next=O,O===null&&(Tl=i)):(i=c,(t!==0||(m&3)!==0)&&(_o=!0)),c=O}ft!==0&&ft!==5||Vr(t),Ea!==0&&(Ea=0)}function ag(t,a){for(var i=t.suspendedLanes,c=t.pingedLanes,O=t.expirationTimes,m=t.pendingLanes&-62914561;0<m;){var S=31-Et(m),$=1<<S,_=O[S];_===-1?(($&i)===0||($&c)!==0)&&(O[S]=j2($,a)):_<=a&&(t.expiredLanes|=$),m&=~$}if(a=He,i=Ae,i=Zi(t,t===a?i:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),c=t.callbackNode,i===0||t===a&&(Ve===2||Ve===9)||t.cancelPendingCommit!==null)return c!==null&&c!==null&&pd(c),t.callbackNode=null,t.callbackPriority=0;if((i&3)===0||or(t,i)){if(a=i&-i,a===t.callbackPriority)return a;switch(c!==null&&pd(c),bd(i)){case 2:case 8:i=Wh;break;case 32:i=Ri;break;case 268435456:i=Bh;break;default:i=Ri}return c=sg.bind(null,t),i=md(i,c),t.callbackPriority=a,t.callbackNode=i,a}return c!==null&&c!==null&&pd(c),t.callbackPriority=2,t.callbackNode=null,2}function sg(t,a){if(ft!==0&&ft!==5)return t.callbackNode=null,t.callbackPriority=0,null;var i=t.callbackNode;if(Co()&&t.callbackNode!==i)return null;var c=Ae;return c=Zi(t,t===He?c:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),c===0?null:(qx(t,c,a),ag(t,Xt()),t.callbackNode!=null&&t.callbackNode===i?sg.bind(null,t):null)}function lg(t,a){if(Co())return null;qx(t,a,!0)}function KQ(){dj(function(){(Ye&6)!==0?md(Lh,FQ):ng()})}function lf(){if(Ea===0){var t=Ol;t===0&&(t=_i,_i<<=1,(_i&261888)===0&&(_i=256)),Ea=t}return Ea}function rg(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:Yi(""+t)}function ig(t,a){var i=a.ownerDocument.createElement("input");return i.name=a.name,i.value=a.value,t.id&&i.setAttribute("form",t.id),a.parentNode.insertBefore(i,a),t=new FormData(t),i.parentNode.removeChild(i),t}function JQ(t,a,i,c,O){if(a==="submit"&&i&&i.stateNode===O){var m=rg((O[Tt]||null).action),S=c.submitter;S&&(a=(a=S[Tt]||null)?rg(a.formAction):S.getAttribute("formAction"),a!==null&&(m=a,S=null));var $=new Di("action","action",null,c,O);t.push({event:$,listeners:[{instance:null,listener:function(){if(c.defaultPrevented){if(Ea!==0){var _=S?ig(O,S):new FormData(O);wu(i,{pending:!0,data:_,method:O.method,action:m},null,_)}}else typeof m=="function"&&($.preventDefault(),_=S?ig(O,S):new FormData(O),wu(i,{pending:!0,data:_,method:O.method,action:m},m,_))},currentTarget:O}]})}}for(var rf=0;rf<Ud.length;rf++){var of=Ud[rf],ej=of.toLowerCase(),tj=of[0].toUpperCase()+of.slice(1);On(ej,"on"+tj)}On(Em,"onAnimationEnd"),On(qm,"onAnimationIteration"),On(Mm,"onAnimationStart"),On("dblclick","onDoubleClick"),On("focusin","onFocus"),On("focusout","onBlur"),On(xQ,"onTransitionRun"),On(gQ,"onTransitionStart"),On(bQ,"onTransitionCancel"),On(Ym,"onTransitionEnd"),Js("onMouseEnter",["mouseout","mouseover"]),Js("onMouseLeave",["mouseout","mouseover"]),Js("onPointerEnter",["pointerout","pointerover"]),Js("onPointerLeave",["pointerout","pointerover"]),Os("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Os("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Os("onBeforeInput",["compositionend","keypress","textInput","paste"]),Os("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Os("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Os("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Gr="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(" "),nj=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Gr));function og(t,a){a=(a&4)!==0;for(var i=0;i<t.length;i++){var c=t[i],O=c.event;c=c.listeners;e:{var m=void 0;if(a)for(var S=c.length-1;0<=S;S--){var $=c[S],_=$.instance,L=$.currentTarget;if($=$.listener,_!==m&&O.isPropagationStopped())break e;m=$,O.currentTarget=L;try{m(O)}catch(ae){Bi(ae)}O.currentTarget=null,m=_}else for(S=0;S<c.length;S++){if($=c[S],_=$.instance,L=$.currentTarget,$=$.listener,_!==m&&O.isPropagationStopped())break e;m=$,O.currentTarget=L;try{m(O)}catch(ae){Bi(ae)}O.currentTarget=null,m=_}}}}function _e(t,a){var i=a[vd];i===void 0&&(i=a[vd]=new Set);var c=t+"__bubble";i.has(c)||(cg(a,t,2,!1),i.add(c))}function cf(t,a,i){var c=0;a&&(c|=4),cg(i,t,c,a)}var Ao="_reactListening"+Math.random().toString(36).slice(2);function df(t){if(!t[Ao]){t[Ao]=!0,nm.forEach(function(i){i!=="selectionchange"&&(nj.has(i)||cf(i,!1,t),cf(i,!0,t))});var a=t.nodeType===9?t:t.ownerDocument;a===null||a[Ao]||(a[Ao]=!0,cf("selectionchange",!1,a))}}function cg(t,a,i,c){switch(Eg(a)){case 2:var O=Pj;break;case 8:O=zj;break;default:O=wf}i=O.bind(null,a,i,t),O=void 0,!Nd||a!=="touchstart"&&a!=="touchmove"&&a!=="wheel"||(O=!0),c?O!==void 0?t.addEventListener(a,i,{capture:!0,passive:O}):t.addEventListener(a,i,!0):O!==void 0?t.addEventListener(a,i,{passive:O}):t.addEventListener(a,i,!1)}function uf(t,a,i,c,O){var m=c;if((a&1)===0&&(a&2)===0&&c!==null)e:for(;;){if(c===null)return;var S=c.tag;if(S===3||S===4){var $=c.stateNode.containerInfo;if($===O)break;if(S===4)for(S=c.return;S!==null;){var _=S.tag;if((_===3||_===4)&&S.stateNode.containerInfo===O)return;S=S.return}for(;$!==null;){if(S=Is($),S===null)return;if(_=S.tag,_===5||_===6||_===26||_===27){c=m=S;continue e}$=$.parentNode}}c=c.return}hm(function(){var L=m,ae=$d(i),re=[];e:{var H=Um.get(t);if(H!==void 0){var te=Di,Oe=t;switch(t){case"keypress":if(Vi(i)===0)break e;case"keydown":case"keyup":te=H2;break;case"focusin":Oe="focus",te=Rd;break;case"focusout":Oe="blur",te=Rd;break;case"beforeblur":case"afterblur":te=Rd;break;case"click":if(i.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":te=xm;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":te=Z2;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":te=K2;break;case Em:case qm:case Mm:te=M2;break;case Ym:te=eQ;break;case"scroll":case"scrollend":te=A2;break;case"wheel":te=nQ;break;case"copy":case"cut":case"paste":te=U2;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":te=bm;break;case"toggle":case"beforetoggle":te=sQ}var je=(a&4)!==0,Be=!je&&(t==="scroll"||t==="scrollend"),q=je?H!==null?H+"Capture":null:H;je=[];for(var A=L,D;A!==null;){var le=A;if(D=le.stateNode,le=le.tag,le!==5&&le!==26&&le!==27||D===null||q===null||(le=fr(A,q),le!=null&&je.push(Dr(A,le,D))),Be)break;A=A.return}0<je.length&&(H=new te(H,Oe,null,i,ae),re.push({event:H,listeners:je}))}}if((a&7)===0){e:{if(H=t==="mouseover"||t==="pointerover",te=t==="mouseout"||t==="pointerout",H&&i!==kd&&(Oe=i.relatedTarget||i.fromElement)&&(Is(Oe)||Oe[Hs]))break e;if((te||H)&&(H=ae.window===ae?ae:(H=ae.ownerDocument)?H.defaultView||H.parentWindow:window,te?(Oe=i.relatedTarget||i.toElement,te=L,Oe=Oe?Is(Oe):null,Oe!==null&&(Be=d(Oe),je=Oe.tag,Oe!==Be||je!==5&&je!==27&&je!==6)&&(Oe=null)):(te=null,Oe=L),te!==Oe)){if(je=xm,le="onMouseLeave",q="onMouseEnter",A="mouse",(t==="pointerout"||t==="pointerover")&&(je=bm,le="onPointerLeave",q="onPointerEnter",A="pointer"),Be=te==null?H:ur(te),D=Oe==null?H:ur(Oe),H=new je(le,A+"leave",te,i,ae),H.target=Be,H.relatedTarget=D,le=null,Is(ae)===L&&(je=new je(q,A+"enter",Oe,i,ae),je.target=D,je.relatedTarget=Be,le=je),Be=le,te&&Oe)t:{for(je=aj,q=te,A=Oe,D=0,le=q;le;le=je(le))D++;le=0;for(var ye=A;ye;ye=je(ye))le++;for(;0<D-le;)q=je(q),D--;for(;0<le-D;)A=je(A),le--;for(;D--;){if(q===A||A!==null&&q===A.alternate){je=q;break t}q=je(q),A=je(A)}je=null}else je=null;te!==null&&dg(re,H,te,je,!1),Oe!==null&&Be!==null&&dg(re,Be,Oe,je,!0)}}e:{if(H=L?ur(L):window,te=H.nodeName&&H.nodeName.toLowerCase(),te==="select"||te==="input"&&H.type==="file")var qe=$m;else if(wm(H))if(Tm)qe=hQ;else{qe=fQ;var xe=uQ}else te=H.nodeName,!te||te.toLowerCase()!=="input"||H.type!=="checkbox"&&H.type!=="radio"?L&&wd(L.elementType)&&(qe=$m):qe=OQ;if(qe&&(qe=qe(t,L))){km(re,qe,i,ae);break e}xe&&xe(t,H,L),t==="focusout"&&L&&H.type==="number"&&L.memoizedProps.value!=null&&jd(H,"number",H.value)}switch(xe=L?ur(L):window,t){case"focusin":(wm(xe)||xe.contentEditable==="true")&&(ll=xe,qd=L,vr=null);break;case"focusout":vr=qd=ll=null;break;case"mousedown":Md=!0;break;case"contextmenu":case"mouseup":case"dragend":Md=!1,Xm(re,i,ae);break;case"selectionchange":if(pQ)break;case"keydown":case"keyup":Xm(re,i,ae)}var Te;if(Ad)e:{switch(t){case"compositionstart":var Xe="onCompositionStart";break e;case"compositionend":Xe="onCompositionEnd";break e;case"compositionupdate":Xe="onCompositionUpdate";break e}Xe=void 0}else sl?Qm(t,i)&&(Xe="onCompositionEnd"):t==="keydown"&&i.keyCode===229&&(Xe="onCompositionStart");Xe&&(vm&&i.locale!=="ko"&&(sl||Xe!=="onCompositionStart"?Xe==="onCompositionEnd"&&sl&&(Te=mm()):(Sa=ae,Pd="value"in Sa?Sa.value:Sa.textContent,sl=!0)),xe=Xo(L,Xe),0<xe.length&&(Xe=new gm(Xe,t,null,i,ae),re.push({event:Xe,listeners:xe}),Te?Xe.data=Te:(Te=jm(i),Te!==null&&(Xe.data=Te)))),(Te=rQ?iQ(t,i):oQ(t,i))&&(Xe=Xo(L,"onBeforeInput"),0<Xe.length&&(xe=new gm("onBeforeInput","beforeinput",null,i,ae),re.push({event:xe,listeners:Xe}),xe.data=Te)),JQ(re,t,L,i,ae)}og(re,a)})}function Dr(t,a,i){return{instance:t,listener:a,currentTarget:i}}function Xo(t,a){for(var i=a+"Capture",c=[];t!==null;){var O=t,m=O.stateNode;if(O=O.tag,O!==5&&O!==26&&O!==27||m===null||(O=fr(t,i),O!=null&&c.unshift(Dr(t,O,m)),O=fr(t,a),O!=null&&c.push(Dr(t,O,m))),t.tag===3)return c;t=t.return}return[]}function aj(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function dg(t,a,i,c,O){for(var m=a._reactName,S=[];i!==null&&i!==c;){var $=i,_=$.alternate,L=$.stateNode;if($=$.tag,_!==null&&_===c)break;$!==5&&$!==26&&$!==27||L===null||(_=L,O?(L=fr(i,m),L!=null&&S.unshift(Dr(i,L,_))):O||(L=fr(i,m),L!=null&&S.push(Dr(i,L,_)))),i=i.return}S.length!==0&&t.push({event:a,listeners:S})}var sj=/\r\n?/g,lj=/\u0000|\uFFFD/g;function ug(t){return(typeof t=="string"?t:""+t).replace(sj,`
|
|
25
|
-
`).replace(lj,"")}function fg(t,a){return a=ug(a),ug(t)===a}function We(t,a,i,c,O,m){switch(i){case"children":typeof c=="string"?a==="body"||a==="textarea"&&c===""||tl(t,c):(typeof c=="number"||typeof c=="bigint")&&a!=="body"&&tl(t,""+c);break;case"className":qi(t,"class",c);break;case"tabIndex":qi(t,"tabindex",c);break;case"dir":case"role":case"viewBox":case"width":case"height":qi(t,i,c);break;case"style":fm(t,c,m);break;case"data":if(a!=="object"){qi(t,"data",c);break}case"src":case"href":if(c===""&&(a!=="a"||i!=="href")){t.removeAttribute(i);break}if(c==null||typeof c=="function"||typeof c=="symbol"||typeof c=="boolean"){t.removeAttribute(i);break}c=Yi(""+c),t.setAttribute(i,c);break;case"action":case"formAction":if(typeof c=="function"){t.setAttribute(i,"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 m=="function"&&(i==="formAction"?(a!=="input"&&We(t,a,"name",O.name,O,null),We(t,a,"formEncType",O.formEncType,O,null),We(t,a,"formMethod",O.formMethod,O,null),We(t,a,"formTarget",O.formTarget,O,null)):(We(t,a,"encType",O.encType,O,null),We(t,a,"method",O.method,O,null),We(t,a,"target",O.target,O,null)));if(c==null||typeof c=="symbol"||typeof c=="boolean"){t.removeAttribute(i);break}c=Yi(""+c),t.setAttribute(i,c);break;case"onClick":c!=null&&(t.onclick=Vn);break;case"onScroll":c!=null&&_e("scroll",t);break;case"onScrollEnd":c!=null&&_e("scrollend",t);break;case"dangerouslySetInnerHTML":if(c!=null){if(typeof c!="object"||!("__html"in c))throw Error(r(61));if(i=c.__html,i!=null){if(O.children!=null)throw Error(r(60));t.innerHTML=i}}break;case"multiple":t.multiple=c&&typeof c!="function"&&typeof c!="symbol";break;case"muted":t.muted=c&&typeof c!="function"&&typeof c!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(c==null||typeof c=="function"||typeof c=="boolean"||typeof c=="symbol"){t.removeAttribute("xlink:href");break}i=Yi(""+c),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",i);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":c!=null&&typeof c!="function"&&typeof c!="symbol"?t.setAttribute(i,""+c):t.removeAttribute(i);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":c&&typeof c!="function"&&typeof c!="symbol"?t.setAttribute(i,""):t.removeAttribute(i);break;case"capture":case"download":c===!0?t.setAttribute(i,""):c!==!1&&c!=null&&typeof c!="function"&&typeof c!="symbol"?t.setAttribute(i,c):t.removeAttribute(i);break;case"cols":case"rows":case"size":case"span":c!=null&&typeof c!="function"&&typeof c!="symbol"&&!isNaN(c)&&1<=c?t.setAttribute(i,c):t.removeAttribute(i);break;case"rowSpan":case"start":c==null||typeof c=="function"||typeof c=="symbol"||isNaN(c)?t.removeAttribute(i):t.setAttribute(i,c);break;case"popover":_e("beforetoggle",t),_e("toggle",t),Ei(t,"popover",c);break;case"xlinkActuate":Un(t,"http://www.w3.org/1999/xlink","xlink:actuate",c);break;case"xlinkArcrole":Un(t,"http://www.w3.org/1999/xlink","xlink:arcrole",c);break;case"xlinkRole":Un(t,"http://www.w3.org/1999/xlink","xlink:role",c);break;case"xlinkShow":Un(t,"http://www.w3.org/1999/xlink","xlink:show",c);break;case"xlinkTitle":Un(t,"http://www.w3.org/1999/xlink","xlink:title",c);break;case"xlinkType":Un(t,"http://www.w3.org/1999/xlink","xlink:type",c);break;case"xmlBase":Un(t,"http://www.w3.org/XML/1998/namespace","xml:base",c);break;case"xmlLang":Un(t,"http://www.w3.org/XML/1998/namespace","xml:lang",c);break;case"xmlSpace":Un(t,"http://www.w3.org/XML/1998/namespace","xml:space",c);break;case"is":Ei(t,"is",c);break;case"innerText":case"textContent":break;default:(!(2<i.length)||i[0]!=="o"&&i[0]!=="O"||i[1]!=="n"&&i[1]!=="N")&&(i=R2.get(i)||i,Ei(t,i,c))}}function ff(t,a,i,c,O,m){switch(i){case"style":fm(t,c,m);break;case"dangerouslySetInnerHTML":if(c!=null){if(typeof c!="object"||!("__html"in c))throw Error(r(61));if(i=c.__html,i!=null){if(O.children!=null)throw Error(r(60));t.innerHTML=i}}break;case"children":typeof c=="string"?tl(t,c):(typeof c=="number"||typeof c=="bigint")&&tl(t,""+c);break;case"onScroll":c!=null&&_e("scroll",t);break;case"onScrollEnd":c!=null&&_e("scrollend",t);break;case"onClick":c!=null&&(t.onclick=Vn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!am.hasOwnProperty(i))e:{if(i[0]==="o"&&i[1]==="n"&&(O=i.endsWith("Capture"),a=i.slice(2,O?i.length-7:void 0),m=t[Tt]||null,m=m!=null?m[i]:null,typeof m=="function"&&t.removeEventListener(a,m,O),typeof c=="function")){typeof m!="function"&&m!==null&&(i in t?t[i]=null:t.hasAttribute(i)&&t.removeAttribute(i)),t.addEventListener(a,c,O);break e}i in t?t[i]=c:c===!0?t.setAttribute(i,""):Ei(t,i,c)}}}function St(t,a,i){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":_e("error",t),_e("load",t);var c=!1,O=!1,m;for(m in i)if(i.hasOwnProperty(m)){var S=i[m];if(S!=null)switch(m){case"src":c=!0;break;case"srcSet":O=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,a));default:We(t,a,m,S,i,null)}}O&&We(t,a,"srcSet",i.srcSet,i,null),c&&We(t,a,"src",i.src,i,null);return;case"input":_e("invalid",t);var $=m=S=O=null,_=null,L=null;for(c in i)if(i.hasOwnProperty(c)){var ae=i[c];if(ae!=null)switch(c){case"name":O=ae;break;case"type":S=ae;break;case"checked":_=ae;break;case"defaultChecked":L=ae;break;case"value":m=ae;break;case"defaultValue":$=ae;break;case"children":case"dangerouslySetInnerHTML":if(ae!=null)throw Error(r(137,a));break;default:We(t,a,c,ae,i,null)}}om(t,m,$,_,L,S,O,!1);return;case"select":_e("invalid",t),c=S=m=null;for(O in i)if(i.hasOwnProperty(O)&&($=i[O],$!=null))switch(O){case"value":m=$;break;case"defaultValue":S=$;break;case"multiple":c=$;default:We(t,a,O,$,i,null)}a=m,i=S,t.multiple=!!c,a!=null?el(t,!!c,a,!1):i!=null&&el(t,!!c,i,!0);return;case"textarea":_e("invalid",t),m=O=c=null;for(S in i)if(i.hasOwnProperty(S)&&($=i[S],$!=null))switch(S){case"value":c=$;break;case"defaultValue":O=$;break;case"children":m=$;break;case"dangerouslySetInnerHTML":if($!=null)throw Error(r(91));break;default:We(t,a,S,$,i,null)}dm(t,c,O,m);return;case"option":for(_ in i)if(i.hasOwnProperty(_)&&(c=i[_],c!=null))switch(_){case"selected":t.selected=c&&typeof c!="function"&&typeof c!="symbol";break;default:We(t,a,_,c,i,null)}return;case"dialog":_e("beforetoggle",t),_e("toggle",t),_e("cancel",t),_e("close",t);break;case"iframe":case"object":_e("load",t);break;case"video":case"audio":for(c=0;c<Gr.length;c++)_e(Gr[c],t);break;case"image":_e("error",t),_e("load",t);break;case"details":_e("toggle",t);break;case"embed":case"source":case"link":_e("error",t),_e("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(L in i)if(i.hasOwnProperty(L)&&(c=i[L],c!=null))switch(L){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,a));default:We(t,a,L,c,i,null)}return;default:if(wd(a)){for(ae in i)i.hasOwnProperty(ae)&&(c=i[ae],c!==void 0&&ff(t,a,ae,c,i,void 0));return}}for($ in i)i.hasOwnProperty($)&&(c=i[$],c!=null&&We(t,a,$,c,i,null))}function rj(t,a,i,c){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var O=null,m=null,S=null,$=null,_=null,L=null,ae=null;for(te in i){var re=i[te];if(i.hasOwnProperty(te)&&re!=null)switch(te){case"checked":break;case"value":break;case"defaultValue":_=re;default:c.hasOwnProperty(te)||We(t,a,te,null,c,re)}}for(var H in c){var te=c[H];if(re=i[H],c.hasOwnProperty(H)&&(te!=null||re!=null))switch(H){case"type":m=te;break;case"name":O=te;break;case"checked":L=te;break;case"defaultChecked":ae=te;break;case"value":S=te;break;case"defaultValue":$=te;break;case"children":case"dangerouslySetInnerHTML":if(te!=null)throw Error(r(137,a));break;default:te!==re&&We(t,a,H,te,c,re)}}Qd(t,S,$,_,L,ae,m,O);return;case"select":te=S=$=H=null;for(m in i)if(_=i[m],i.hasOwnProperty(m)&&_!=null)switch(m){case"value":break;case"multiple":te=_;default:c.hasOwnProperty(m)||We(t,a,m,null,c,_)}for(O in c)if(m=c[O],_=i[O],c.hasOwnProperty(O)&&(m!=null||_!=null))switch(O){case"value":H=m;break;case"defaultValue":$=m;break;case"multiple":S=m;default:m!==_&&We(t,a,O,m,c,_)}a=$,i=S,c=te,H!=null?el(t,!!i,H,!1):!!c!=!!i&&(a!=null?el(t,!!i,a,!0):el(t,!!i,i?[]:"",!1));return;case"textarea":te=H=null;for($ in i)if(O=i[$],i.hasOwnProperty($)&&O!=null&&!c.hasOwnProperty($))switch($){case"value":break;case"children":break;default:We(t,a,$,null,c,O)}for(S in c)if(O=c[S],m=i[S],c.hasOwnProperty(S)&&(O!=null||m!=null))switch(S){case"value":H=O;break;case"defaultValue":te=O;break;case"children":break;case"dangerouslySetInnerHTML":if(O!=null)throw Error(r(91));break;default:O!==m&&We(t,a,S,O,c,m)}cm(t,H,te);return;case"option":for(var Oe in i)if(H=i[Oe],i.hasOwnProperty(Oe)&&H!=null&&!c.hasOwnProperty(Oe))switch(Oe){case"selected":t.selected=!1;break;default:We(t,a,Oe,null,c,H)}for(_ in c)if(H=c[_],te=i[_],c.hasOwnProperty(_)&&H!==te&&(H!=null||te!=null))switch(_){case"selected":t.selected=H&&typeof H!="function"&&typeof H!="symbol";break;default:We(t,a,_,H,c,te)}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 je in i)H=i[je],i.hasOwnProperty(je)&&H!=null&&!c.hasOwnProperty(je)&&We(t,a,je,null,c,H);for(L in c)if(H=c[L],te=i[L],c.hasOwnProperty(L)&&H!==te&&(H!=null||te!=null))switch(L){case"children":case"dangerouslySetInnerHTML":if(H!=null)throw Error(r(137,a));break;default:We(t,a,L,H,c,te)}return;default:if(wd(a)){for(var Be in i)H=i[Be],i.hasOwnProperty(Be)&&H!==void 0&&!c.hasOwnProperty(Be)&&ff(t,a,Be,void 0,c,H);for(ae in c)H=c[ae],te=i[ae],!c.hasOwnProperty(ae)||H===te||H===void 0&&te===void 0||ff(t,a,ae,H,c,te);return}}for(var q in i)H=i[q],i.hasOwnProperty(q)&&H!=null&&!c.hasOwnProperty(q)&&We(t,a,q,null,c,H);for(re in c)H=c[re],te=i[re],!c.hasOwnProperty(re)||H===te||H==null&&te==null||We(t,a,re,H,c,te)}function Og(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function ij(){if(typeof performance.getEntriesByType=="function"){for(var t=0,a=0,i=performance.getEntriesByType("resource"),c=0;c<i.length;c++){var O=i[c],m=O.transferSize,S=O.initiatorType,$=O.duration;if(m&&$&&Og(S)){for(S=0,$=O.responseEnd,c+=1;c<i.length;c++){var _=i[c],L=_.startTime;if(L>$)break;var ae=_.transferSize,re=_.initiatorType;ae&&Og(re)&&(_=_.responseEnd,S+=ae*(_<$?1:($-L)/(_-L)))}if(--c,a+=8*(m+S)/(O.duration/1e3),t++,10<t)break}}if(0<t)return a/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var Of=null,hf=null;function Zo(t){return t.nodeType===9?t:t.ownerDocument}function hg(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function mg(t,a){if(t===0)switch(a){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&a==="foreignObject"?0:t}function mf(t,a){return t==="textarea"||t==="noscript"||typeof a.children=="string"||typeof a.children=="number"||typeof a.children=="bigint"||typeof a.dangerouslySetInnerHTML=="object"&&a.dangerouslySetInnerHTML!==null&&a.dangerouslySetInnerHTML.__html!=null}var pf=null;function oj(){var t=window.event;return t&&t.type==="popstate"?t===pf?!1:(pf=t,!0):(pf=null,!1)}var pg=typeof setTimeout=="function"?setTimeout:void 0,cj=typeof clearTimeout=="function"?clearTimeout:void 0,xg=typeof Promise=="function"?Promise:void 0,dj=typeof queueMicrotask=="function"?queueMicrotask:typeof xg<"u"?function(t){return xg.resolve(null).then(t).catch(uj)}:pg;function uj(t){setTimeout(function(){throw t})}function qa(t){return t==="head"}function gg(t,a){var i=a,c=0;do{var O=i.nextSibling;if(t.removeChild(i),O&&O.nodeType===8)if(i=O.data,i==="/$"||i==="/&"){if(c===0){t.removeChild(O),Cl(a);return}c--}else if(i==="$"||i==="$?"||i==="$~"||i==="$!"||i==="&")c++;else if(i==="html")Lr(t.ownerDocument.documentElement);else if(i==="head"){i=t.ownerDocument.head,Lr(i);for(var m=i.firstChild;m;){var S=m.nextSibling,$=m.nodeName;m[dr]||$==="SCRIPT"||$==="STYLE"||$==="LINK"&&m.rel.toLowerCase()==="stylesheet"||i.removeChild(m),m=S}}else i==="body"&&Lr(t.ownerDocument.body);i=O}while(i);Cl(a)}function bg(t,a){var i=t;t=0;do{var c=i.nextSibling;if(i.nodeType===1?a?(i._stashedDisplay=i.style.display,i.style.display="none"):(i.style.display=i._stashedDisplay||"",i.getAttribute("style")===""&&i.removeAttribute("style")):i.nodeType===3&&(a?(i._stashedText=i.nodeValue,i.nodeValue=""):i.nodeValue=i._stashedText||""),c&&c.nodeType===8)if(i=c.data,i==="/$"){if(t===0)break;t--}else i!=="$"&&i!=="$?"&&i!=="$~"&&i!=="$!"||t++;i=c}while(i)}function xf(t){var a=t.firstChild;for(a&&a.nodeType===10&&(a=a.nextSibling);a;){var i=a;switch(a=a.nextSibling,i.nodeName){case"HTML":case"HEAD":case"BODY":xf(i),yd(i);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(i.rel.toLowerCase()==="stylesheet")continue}t.removeChild(i)}}function fj(t,a,i,c){for(;t.nodeType===1;){var O=i;if(t.nodeName.toLowerCase()!==a.toLowerCase()){if(!c&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(c){if(!t[dr])switch(a){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(m=t.getAttribute("rel"),m==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(m!==O.rel||t.getAttribute("href")!==(O.href==null||O.href===""?null:O.href)||t.getAttribute("crossorigin")!==(O.crossOrigin==null?null:O.crossOrigin)||t.getAttribute("title")!==(O.title==null?null:O.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(m=t.getAttribute("src"),(m!==(O.src==null?null:O.src)||t.getAttribute("type")!==(O.type==null?null:O.type)||t.getAttribute("crossorigin")!==(O.crossOrigin==null?null:O.crossOrigin))&&m&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(a==="input"&&t.type==="hidden"){var m=O.name==null?null:""+O.name;if(O.type==="hidden"&&t.getAttribute("name")===m)return t}else return t;if(t=rn(t.nextSibling),t===null)break}return null}function Oj(t,a,i){if(a==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!i||(t=rn(t.nextSibling),t===null))return null;return t}function vg(t,a){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!a||(t=rn(t.nextSibling),t===null))return null;return t}function gf(t){return t.data==="$?"||t.data==="$~"}function bf(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function hj(t,a){var i=t.ownerDocument;if(t.data==="$~")t._reactRetry=a;else if(t.data!=="$?"||i.readyState!=="loading")a();else{var c=function(){a(),i.removeEventListener("DOMContentLoaded",c)};i.addEventListener("DOMContentLoaded",c),t._reactRetry=c}}function rn(t){for(;t!=null;t=t.nextSibling){var a=t.nodeType;if(a===1||a===3)break;if(a===8){if(a=t.data,a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"||a==="F!"||a==="F")break;if(a==="/$"||a==="/&")return null}}return t}var vf=null;function yg(t){t=t.nextSibling;for(var a=0;t;){if(t.nodeType===8){var i=t.data;if(i==="/$"||i==="/&"){if(a===0)return rn(t.nextSibling);a--}else i!=="$"&&i!=="$!"&&i!=="$?"&&i!=="$~"&&i!=="&"||a++}t=t.nextSibling}return null}function Sg(t){t=t.previousSibling;for(var a=0;t;){if(t.nodeType===8){var i=t.data;if(i==="$"||i==="$!"||i==="$?"||i==="$~"||i==="&"){if(a===0)return t;a--}else i!=="/$"&&i!=="/&"||a++}t=t.previousSibling}return null}function Qg(t,a,i){switch(a=Zo(i),t){case"html":if(t=a.documentElement,!t)throw Error(r(452));return t;case"head":if(t=a.head,!t)throw Error(r(453));return t;case"body":if(t=a.body,!t)throw Error(r(454));return t;default:throw Error(r(451))}}function Lr(t){for(var a=t.attributes;a.length;)t.removeAttributeNode(a[0]);yd(t)}var on=new Map,jg=new Set;function Eo(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var la=U.d;U.d={f:mj,r:pj,D:xj,C:gj,L:bj,m:vj,X:Sj,S:yj,M:Qj};function mj(){var t=la.f(),a=No();return t||a}function pj(t){var a=Fs(t);a!==null&&a.tag===5&&a.type==="form"?Yp(a):la.r(t)}var Nl=typeof document>"u"?null:document;function wg(t,a,i){var c=Nl;if(c&&typeof a=="string"&&a){var O=Jt(a);O='link[rel="'+t+'"][href="'+O+'"]',typeof i=="string"&&(O+='[crossorigin="'+i+'"]'),jg.has(O)||(jg.add(O),t={rel:t,crossOrigin:i,href:a},c.querySelector(O)===null&&(a=c.createElement("link"),St(a,"link",t),mt(a),c.head.appendChild(a)))}}function xj(t){la.D(t),wg("dns-prefetch",t,null)}function gj(t,a){la.C(t,a),wg("preconnect",t,a)}function bj(t,a,i){la.L(t,a,i);var c=Nl;if(c&&t&&a){var O='link[rel="preload"][as="'+Jt(a)+'"]';a==="image"&&i&&i.imageSrcSet?(O+='[imagesrcset="'+Jt(i.imageSrcSet)+'"]',typeof i.imageSizes=="string"&&(O+='[imagesizes="'+Jt(i.imageSizes)+'"]')):O+='[href="'+Jt(t)+'"]';var m=O;switch(a){case"style":m=Pl(t);break;case"script":m=zl(t)}on.has(m)||(t=x({rel:"preload",href:a==="image"&&i&&i.imageSrcSet?void 0:t,as:a},i),on.set(m,t),c.querySelector(O)!==null||a==="style"&&c.querySelector(Wr(m))||a==="script"&&c.querySelector(Br(m))||(a=c.createElement("link"),St(a,"link",t),mt(a),c.head.appendChild(a)))}}function vj(t,a){la.m(t,a);var i=Nl;if(i&&t){var c=a&&typeof a.as=="string"?a.as:"script",O='link[rel="modulepreload"][as="'+Jt(c)+'"][href="'+Jt(t)+'"]',m=O;switch(c){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":m=zl(t)}if(!on.has(m)&&(t=x({rel:"modulepreload",href:t},a),on.set(m,t),i.querySelector(O)===null)){switch(c){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(i.querySelector(Br(m)))return}c=i.createElement("link"),St(c,"link",t),mt(c),i.head.appendChild(c)}}}function yj(t,a,i){la.S(t,a,i);var c=Nl;if(c&&t){var O=Ks(c).hoistableStyles,m=Pl(t);a=a||"default";var S=O.get(m);if(!S){var $={loading:0,preload:null};if(S=c.querySelector(Wr(m)))$.loading=5;else{t=x({rel:"stylesheet",href:t,"data-precedence":a},i),(i=on.get(m))&&yf(t,i);var _=S=c.createElement("link");mt(_),St(_,"link",t),_._p=new Promise(function(L,ae){_.onload=L,_.onerror=ae}),_.addEventListener("load",function(){$.loading|=1}),_.addEventListener("error",function(){$.loading|=2}),$.loading|=4,qo(S,a,c)}S={type:"stylesheet",instance:S,count:1,state:$},O.set(m,S)}}}function Sj(t,a){la.X(t,a);var i=Nl;if(i&&t){var c=Ks(i).hoistableScripts,O=zl(t),m=c.get(O);m||(m=i.querySelector(Br(O)),m||(t=x({src:t,async:!0},a),(a=on.get(O))&&Sf(t,a),m=i.createElement("script"),mt(m),St(m,"link",t),i.head.appendChild(m)),m={type:"script",instance:m,count:1,state:null},c.set(O,m))}}function Qj(t,a){la.M(t,a);var i=Nl;if(i&&t){var c=Ks(i).hoistableScripts,O=zl(t),m=c.get(O);m||(m=i.querySelector(Br(O)),m||(t=x({src:t,async:!0,type:"module"},a),(a=on.get(O))&&Sf(t,a),m=i.createElement("script"),mt(m),St(m,"link",t),i.head.appendChild(m)),m={type:"script",instance:m,count:1,state:null},c.set(O,m))}}function kg(t,a,i,c){var O=(O=W.current)?Eo(O):null;if(!O)throw Error(r(446));switch(t){case"meta":case"title":return null;case"style":return typeof i.precedence=="string"&&typeof i.href=="string"?(a=Pl(i.href),i=Ks(O).hoistableStyles,c=i.get(a),c||(c={type:"style",instance:null,count:0,state:null},i.set(a,c)),c):{type:"void",instance:null,count:0,state:null};case"link":if(i.rel==="stylesheet"&&typeof i.href=="string"&&typeof i.precedence=="string"){t=Pl(i.href);var m=Ks(O).hoistableStyles,S=m.get(t);if(S||(O=O.ownerDocument||O,S={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},m.set(t,S),(m=O.querySelector(Wr(t)))&&!m._p&&(S.instance=m,S.state.loading=5),on.has(t)||(i={rel:"preload",as:"style",href:i.href,crossOrigin:i.crossOrigin,integrity:i.integrity,media:i.media,hrefLang:i.hrefLang,referrerPolicy:i.referrerPolicy},on.set(t,i),m||jj(O,t,i,S.state))),a&&c===null)throw Error(r(528,""));return S}if(a&&c!==null)throw Error(r(529,""));return null;case"script":return a=i.async,i=i.src,typeof i=="string"&&a&&typeof a!="function"&&typeof a!="symbol"?(a=zl(i),i=Ks(O).hoistableScripts,c=i.get(a),c||(c={type:"script",instance:null,count:0,state:null},i.set(a,c)),c):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,t))}}function Pl(t){return'href="'+Jt(t)+'"'}function Wr(t){return'link[rel="stylesheet"]['+t+"]"}function $g(t){return x({},t,{"data-precedence":t.precedence,precedence:null})}function jj(t,a,i,c){t.querySelector('link[rel="preload"][as="style"]['+a+"]")?c.loading=1:(a=t.createElement("link"),c.preload=a,a.addEventListener("load",function(){return c.loading|=1}),a.addEventListener("error",function(){return c.loading|=2}),St(a,"link",i),mt(a),t.head.appendChild(a))}function zl(t){return'[src="'+Jt(t)+'"]'}function Br(t){return"script[async]"+t}function Tg(t,a,i){if(a.count++,a.instance===null)switch(a.type){case"style":var c=t.querySelector('style[data-href~="'+Jt(i.href)+'"]');if(c)return a.instance=c,mt(c),c;var O=x({},i,{"data-href":i.href,"data-precedence":i.precedence,href:null,precedence:null});return c=(t.ownerDocument||t).createElement("style"),mt(c),St(c,"style",O),qo(c,i.precedence,t),a.instance=c;case"stylesheet":O=Pl(i.href);var m=t.querySelector(Wr(O));if(m)return a.state.loading|=4,a.instance=m,mt(m),m;c=$g(i),(O=on.get(O))&&yf(c,O),m=(t.ownerDocument||t).createElement("link"),mt(m);var S=m;return S._p=new Promise(function($,_){S.onload=$,S.onerror=_}),St(m,"link",c),a.state.loading|=4,qo(m,i.precedence,t),a.instance=m;case"script":return m=zl(i.src),(O=t.querySelector(Br(m)))?(a.instance=O,mt(O),O):(c=i,(O=on.get(m))&&(c=x({},i),Sf(c,O)),t=t.ownerDocument||t,O=t.createElement("script"),mt(O),St(O,"link",c),t.head.appendChild(O),a.instance=O);case"void":return null;default:throw Error(r(443,a.type))}else a.type==="stylesheet"&&(a.state.loading&4)===0&&(c=a.instance,a.state.loading|=4,qo(c,i.precedence,t));return a.instance}function qo(t,a,i){for(var c=i.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),O=c.length?c[c.length-1]:null,m=O,S=0;S<c.length;S++){var $=c[S];if($.dataset.precedence===a)m=$;else if(m!==O)break}m?m.parentNode.insertBefore(t,m.nextSibling):(a=i.nodeType===9?i.head:i,a.insertBefore(t,a.firstChild))}function yf(t,a){t.crossOrigin==null&&(t.crossOrigin=a.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=a.referrerPolicy),t.title==null&&(t.title=a.title)}function Sf(t,a){t.crossOrigin==null&&(t.crossOrigin=a.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=a.referrerPolicy),t.integrity==null&&(t.integrity=a.integrity)}var Mo=null;function Ng(t,a,i){if(Mo===null){var c=new Map,O=Mo=new Map;O.set(i,c)}else O=Mo,c=O.get(i),c||(c=new Map,O.set(i,c));if(c.has(t))return c;for(c.set(t,null),i=i.getElementsByTagName(t),O=0;O<i.length;O++){var m=i[O];if(!(m[dr]||m[gt]||t==="link"&&m.getAttribute("rel")==="stylesheet")&&m.namespaceURI!=="http://www.w3.org/2000/svg"){var S=m.getAttribute(a)||"";S=t+S;var $=c.get(S);$?$.push(m):c.set(S,[m])}}return c}function Pg(t,a,i){t=t.ownerDocument||t,t.head.insertBefore(i,a==="title"?t.querySelector("head > title"):null)}function wj(t,a,i){if(i===1||a.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof a.precedence!="string"||typeof a.href!="string"||a.href==="")break;return!0;case"link":if(typeof a.rel!="string"||typeof a.href!="string"||a.href===""||a.onLoad||a.onError)break;switch(a.rel){case"stylesheet":return t=a.disabled,typeof a.precedence=="string"&&t==null;default:return!0}case"script":if(a.async&&typeof a.async!="function"&&typeof a.async!="symbol"&&!a.onLoad&&!a.onError&&a.src&&typeof a.src=="string")return!0}return!1}function zg(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function kj(t,a,i,c){if(i.type==="stylesheet"&&(typeof c.media!="string"||matchMedia(c.media).matches!==!1)&&(i.state.loading&4)===0){if(i.instance===null){var O=Pl(c.href),m=a.querySelector(Wr(O));if(m){a=m._p,a!==null&&typeof a=="object"&&typeof a.then=="function"&&(t.count++,t=Yo.bind(t),a.then(t,t)),i.state.loading|=4,i.instance=m,mt(m);return}m=a.ownerDocument||a,c=$g(c),(O=on.get(O))&&yf(c,O),m=m.createElement("link"),mt(m);var S=m;S._p=new Promise(function($,_){S.onload=$,S.onerror=_}),St(m,"link",c),i.instance=m}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(i,a),(a=i.state.preload)&&(i.state.loading&3)===0&&(t.count++,i=Yo.bind(t),a.addEventListener("load",i),a.addEventListener("error",i))}}var Qf=0;function $j(t,a){return t.stylesheets&&t.count===0&&Vo(t,t.stylesheets),0<t.count||0<t.imgCount?function(i){var c=setTimeout(function(){if(t.stylesheets&&Vo(t,t.stylesheets),t.unsuspend){var m=t.unsuspend;t.unsuspend=null,m()}},6e4+a);0<t.imgBytes&&Qf===0&&(Qf=62500*ij());var O=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&Vo(t,t.stylesheets),t.unsuspend)){var m=t.unsuspend;t.unsuspend=null,m()}},(t.imgBytes>Qf?50:800)+a);return t.unsuspend=i,function(){t.unsuspend=null,clearTimeout(c),clearTimeout(O)}}:null}function Yo(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Vo(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var Uo=null;function Vo(t,a){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Uo=new Map,a.forEach(Tj,t),Uo=null,Yo.call(t))}function Tj(t,a){if(!(a.state.loading&4)){var i=Uo.get(t);if(i)var c=i.get(null);else{i=new Map,Uo.set(t,i);for(var O=t.querySelectorAll("link[data-precedence],style[data-precedence]"),m=0;m<O.length;m++){var S=O[m];(S.nodeName==="LINK"||S.getAttribute("media")!=="not all")&&(i.set(S.dataset.precedence,S),c=S)}c&&i.set(null,c)}O=a.instance,S=O.getAttribute("data-precedence"),m=i.get(S)||c,m===c&&i.set(null,O),i.set(S,O),this.count++,c=Yo.bind(this),O.addEventListener("load",c),O.addEventListener("error",c),m?m.parentNode.insertBefore(O,m.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(O,t.firstChild)),a.state.loading|=4}}var Hr={$$typeof:z,Provider:null,Consumer:null,_currentValue:ee,_currentValue2:ee,_threadCount:0};function Nj(t,a,i,c,O,m,S,$,_){this.tag=1,this.containerInfo=t,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=xd(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=xd(0),this.hiddenUpdates=xd(null),this.identifierPrefix=c,this.onUncaughtError=O,this.onCaughtError=m,this.onRecoverableError=S,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=_,this.incompleteTransitions=new Map}function Cg(t,a,i,c,O,m,S,$,_,L,ae,re){return t=new Nj(t,a,i,S,_,L,ae,re,$),a=1,m===!0&&(a|=24),m=Mt(3,null,null,a),t.current=m,m.stateNode=t,a=tu(),a.refCount++,t.pooledCache=a,a.refCount++,m.memoizedState={element:c,isDehydrated:i,cache:a},lu(m),t}function Rg(t){return t?(t=ol,t):ol}function _g(t,a,i,c,O,m){O=Rg(O),c.context===null?c.context=O:c.pendingContext=O,c=Ta(a),c.payload={element:i},m=m===void 0?null:m,m!==null&&(c.callback=m),i=Na(t,c,a),i!==null&&(_t(i,t,a),$r(i,t,a))}function Ag(t,a){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var i=t.retryLane;t.retryLane=i!==0&&i<a?i:a}}function jf(t,a){Ag(t,a),(t=t.alternate)&&Ag(t,a)}function Xg(t){if(t.tag===13||t.tag===31){var a=xs(t,67108864);a!==null&&_t(a,t,67108864),jf(t,67108864)}}function Zg(t){if(t.tag===13||t.tag===31){var a=Dt();a=gd(a);var i=xs(t,a);i!==null&&_t(i,t,a),jf(t,a)}}var Go=!0;function Pj(t,a,i,c){var O=N.T;N.T=null;var m=U.p;try{U.p=2,wf(t,a,i,c)}finally{U.p=m,N.T=O}}function zj(t,a,i,c){var O=N.T;N.T=null;var m=U.p;try{U.p=8,wf(t,a,i,c)}finally{U.p=m,N.T=O}}function wf(t,a,i,c){if(Go){var O=kf(c);if(O===null)uf(t,a,c,Do,i),qg(t,c);else if(Rj(O,t,a,i,c))c.stopPropagation();else if(qg(t,c),a&4&&-1<Cj.indexOf(t)){for(;O!==null;){var m=Fs(O);if(m!==null)switch(m.tag){case 3:if(m=m.stateNode,m.current.memoizedState.isDehydrated){var S=fs(m.pendingLanes);if(S!==0){var $=m;for($.pendingLanes|=2,$.entangledLanes|=2;S;){var _=1<<31-Et(S);$.entanglements[1]|=_,S&=~_}Tn(m),(Ye&6)===0&&($o=Xt()+500,Vr(0))}}break;case 31:case 13:$=xs(m,2),$!==null&&_t($,m,2),No(),jf(m,2)}if(m=kf(c),m===null&&uf(t,a,c,Do,i),m===O)break;O=m}O!==null&&c.stopPropagation()}else uf(t,a,c,null,i)}}function kf(t){return t=$d(t),$f(t)}var Do=null;function $f(t){if(Do=null,t=Is(t),t!==null){var a=d(t);if(a===null)t=null;else{var i=a.tag;if(i===13){if(t=u(a),t!==null)return t;t=null}else if(i===31){if(t=f(a),t!==null)return t;t=null}else if(i===3){if(a.stateNode.current.memoizedState.isDehydrated)return a.tag===3?a.stateNode.containerInfo:null;t=null}else a!==t&&(t=null)}}return Do=t,null}function Eg(t){switch(t){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(x2()){case Lh:return 2;case Wh:return 8;case Ri:case g2:return 32;case Bh:return 268435456;default:return 32}default:return 32}}var Tf=!1,Ma=null,Ya=null,Ua=null,Ir=new Map,Fr=new Map,Va=[],Cj="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function qg(t,a){switch(t){case"focusin":case"focusout":Ma=null;break;case"dragenter":case"dragleave":Ya=null;break;case"mouseover":case"mouseout":Ua=null;break;case"pointerover":case"pointerout":Ir.delete(a.pointerId);break;case"gotpointercapture":case"lostpointercapture":Fr.delete(a.pointerId)}}function Kr(t,a,i,c,O,m){return t===null||t.nativeEvent!==m?(t={blockedOn:a,domEventName:i,eventSystemFlags:c,nativeEvent:m,targetContainers:[O]},a!==null&&(a=Fs(a),a!==null&&Xg(a)),t):(t.eventSystemFlags|=c,a=t.targetContainers,O!==null&&a.indexOf(O)===-1&&a.push(O),t)}function Rj(t,a,i,c,O){switch(a){case"focusin":return Ma=Kr(Ma,t,a,i,c,O),!0;case"dragenter":return Ya=Kr(Ya,t,a,i,c,O),!0;case"mouseover":return Ua=Kr(Ua,t,a,i,c,O),!0;case"pointerover":var m=O.pointerId;return Ir.set(m,Kr(Ir.get(m)||null,t,a,i,c,O)),!0;case"gotpointercapture":return m=O.pointerId,Fr.set(m,Kr(Fr.get(m)||null,t,a,i,c,O)),!0}return!1}function Mg(t){var a=Is(t.target);if(a!==null){var i=d(a);if(i!==null){if(a=i.tag,a===13){if(a=u(i),a!==null){t.blockedOn=a,em(t.priority,function(){Zg(i)});return}}else if(a===31){if(a=f(i),a!==null){t.blockedOn=a,em(t.priority,function(){Zg(i)});return}}else if(a===3&&i.stateNode.current.memoizedState.isDehydrated){t.blockedOn=i.tag===3?i.stateNode.containerInfo:null;return}}}t.blockedOn=null}function Lo(t){if(t.blockedOn!==null)return!1;for(var a=t.targetContainers;0<a.length;){var i=kf(t.nativeEvent);if(i===null){i=t.nativeEvent;var c=new i.constructor(i.type,i);kd=c,i.target.dispatchEvent(c),kd=null}else return a=Fs(i),a!==null&&Xg(a),t.blockedOn=i,!1;a.shift()}return!0}function Yg(t,a,i){Lo(t)&&i.delete(a)}function _j(){Tf=!1,Ma!==null&&Lo(Ma)&&(Ma=null),Ya!==null&&Lo(Ya)&&(Ya=null),Ua!==null&&Lo(Ua)&&(Ua=null),Ir.forEach(Yg),Fr.forEach(Yg)}function Wo(t,a){t.blockedOn===a&&(t.blockedOn=null,Tf||(Tf=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,_j)))}var Bo=null;function Ug(t){Bo!==t&&(Bo=t,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Bo===t&&(Bo=null);for(var a=0;a<t.length;a+=3){var i=t[a],c=t[a+1],O=t[a+2];if(typeof c!="function"){if($f(c||i)===null)continue;break}var m=Fs(i);m!==null&&(t.splice(a,3),a-=3,wu(m,{pending:!0,data:O,method:i.method,action:c},c,O))}}))}function Cl(t){function a(_){return Wo(_,t)}Ma!==null&&Wo(Ma,t),Ya!==null&&Wo(Ya,t),Ua!==null&&Wo(Ua,t),Ir.forEach(a),Fr.forEach(a);for(var i=0;i<Va.length;i++){var c=Va[i];c.blockedOn===t&&(c.blockedOn=null)}for(;0<Va.length&&(i=Va[0],i.blockedOn===null);)Mg(i),i.blockedOn===null&&Va.shift();if(i=(t.ownerDocument||t).$$reactFormReplay,i!=null)for(c=0;c<i.length;c+=3){var O=i[c],m=i[c+1],S=O[Tt]||null;if(typeof m=="function")S||Ug(i);else if(S){var $=null;if(m&&m.hasAttribute("formAction")){if(O=m,S=m[Tt]||null)$=S.formAction;else if($f(O)!==null)continue}else $=S.action;typeof $=="function"?i[c+1]=$:(i.splice(c,3),c-=3),Ug(i)}}}function Vg(){function t(m){m.canIntercept&&m.info==="react-transition"&&m.intercept({handler:function(){return new Promise(function(S){return O=S})},focusReset:"manual",scroll:"manual"})}function a(){O!==null&&(O(),O=null),c||setTimeout(i,20)}function i(){if(!c&&!navigation.transition){var m=navigation.currentEntry;m&&m.url!=null&&navigation.navigate(m.url,{state:m.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var c=!1,O=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",a),navigation.addEventListener("navigateerror",a),setTimeout(i,100),function(){c=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",a),navigation.removeEventListener("navigateerror",a),O!==null&&(O(),O=null)}}}function Nf(t){this._internalRoot=t}Ho.prototype.render=Nf.prototype.render=function(t){var a=this._internalRoot;if(a===null)throw Error(r(409));var i=a.current,c=Dt();_g(i,c,t,a,null,null)},Ho.prototype.unmount=Nf.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var a=t.containerInfo;_g(t.current,2,null,t,null,null),No(),a[Hs]=null}};function Ho(t){this._internalRoot=t}Ho.prototype.unstable_scheduleHydration=function(t){if(t){var a=Jh();t={blockedOn:null,target:t,priority:a};for(var i=0;i<Va.length&&a!==0&&a<Va[i].priority;i++);Va.splice(i,0,t),i===0&&Mg(t)}};var Gg=n.version;if(Gg!=="19.2.4")throw Error(r(527,Gg,"19.2.4"));U.findDOMNode=function(t){var a=t._reactInternals;if(a===void 0)throw typeof t.render=="function"?Error(r(188)):(t=Object.keys(t).join(","),Error(r(268,t)));return t=p(a),t=t!==null?g(t):null,t=t===null?null:t.stateNode,t};var Aj={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:N,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Io=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Io.isDisabled&&Io.supportsFiber)try{ir=Io.inject(Aj),Zt=Io}catch{}}return Jr.createRoot=function(t,a){if(!o(t))throw Error(r(299));var i=!1,c="",O=Fp,m=Kp,S=Jp;return a!=null&&(a.unstable_strictMode===!0&&(i=!0),a.identifierPrefix!==void 0&&(c=a.identifierPrefix),a.onUncaughtError!==void 0&&(O=a.onUncaughtError),a.onCaughtError!==void 0&&(m=a.onCaughtError),a.onRecoverableError!==void 0&&(S=a.onRecoverableError)),a=Cg(t,1,!1,null,null,i,c,null,O,m,S,Vg),t[Hs]=a.current,df(t),new Nf(a)},Jr.hydrateRoot=function(t,a,i){if(!o(t))throw Error(r(299));var c=!1,O="",m=Fp,S=Kp,$=Jp,_=null;return i!=null&&(i.unstable_strictMode===!0&&(c=!0),i.identifierPrefix!==void 0&&(O=i.identifierPrefix),i.onUncaughtError!==void 0&&(m=i.onUncaughtError),i.onCaughtError!==void 0&&(S=i.onCaughtError),i.onRecoverableError!==void 0&&($=i.onRecoverableError),i.formState!==void 0&&(_=i.formState)),a=Cg(t,1,!0,a,i??null,c,O,_,m,S,$,Vg),a.context=Rg(null),i=a.current,c=Dt(),c=gd(c),O=Ta(c),O.callback=null,Na(i,O,c),i=c,a.current.lanes=i,cr(a,i),Tn(a),t[Hs]=a.current,df(t),new Ho(a)},Jr.version="19.2.4",Jr}var Hg;function Sw(){if(Hg)return Pf.exports;Hg=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(n){console.error(n)}}return e(),Pf.exports=yw(),Pf.exports}var Qw=Sw();const jw="/api";class ww extends Error{constructor(n,l,r){super(n),this.name="ApiError",this.status=l,this.body=r}}async function ei(e,n,l){const r=`${jw}${n}`,o={method:e,headers:{}};l!==void 0&&(o.headers["Content-Type"]="application/json",o.body=JSON.stringify(l));const d=await fetch(r,o),u=await d.text();let f;try{f=JSON.parse(u)}catch{f=u}if(!d.ok)throw new ww((f==null?void 0:f.error)||(f==null?void 0:f.message)||`Request failed: ${d.status}`,d.status,f);return f}const J={get:e=>ei("GET",e),post:(e,n)=>ei("POST",e,n),put:(e,n)=>ei("PUT",e,n),patch:(e,n)=>ei("PATCH",e,n),delete:(e,n)=>ei("DELETE",e,n)},kw=`ws://${window.location.hostname}:${window.location.port||31415}`;let $w=0;function pc(e,n={}){try{return JSON.parse(localStorage.getItem(e)||JSON.stringify(n))}catch{return n}}function Cs(e,n){try{localStorage.setItem(e,JSON.stringify(n))}catch{}}const Ig="0.22.27";pc("groove:storeVersion")!==Ig&&(localStorage.removeItem("groove:chatHistory"),localStorage.removeItem("groove:activityLog"),Cs("groove:storeVersion",Ig));const B=Ej((e,n)=>({agents:[],connected:!1,hydrated:!1,ws:null,daemonHost:null,tunneled:!1,teams:[],activeTeamId:localStorage.getItem("groove:activeTeamId")||null,gateways:[],activeView:"agents",detailPanel:null,teamDetailPanels:{},commandPaletteOpen:!1,expandedNodes:pc("groove:expandedNodes"),detailPanelWidth:Number(localStorage.getItem("groove:detailWidth"))||480,terminalVisible:localStorage.getItem("groove:terminalVisible")==="true",terminalHeight:Number(localStorage.getItem("groove:terminalHeight"))||260,terminalFullHeight:!1,activityLog:pc("groove:activityLog"),chatHistory:pc("groove:chatHistory"),chatInputs:{},tokenTimeline:{},pendingApprovals:[],resolvedApprovals:[],recommendedTeam:null,journalistStatus:null,marketplaceUser:null,marketplaceAuthenticated:!1,toasts:[],editorFiles:{},editorActiveFile:null,editorOpenTabs:[],editorTreeCache:{},editorChangedFiles:{},editorRecentSaves:{},connect(){if(n().ws)return;const l=new WebSocket(kw);e({ws:l}),l.onopen=()=>{e({connected:!0}),J.get("/status").then(r=>{const o={};r.host&&r.host!=="127.0.0.1"&&(o.daemonHost=r.host);const d=window.location.port||"80";String(r.port)!==d&&(o.tunneled=!0),Object.keys(o).length>0&&e(o)}).catch(()=>{}),n().fetchTeams(),n().fetchApprovals(),n().checkMarketplaceAuth()},l.onmessage=r=>{var d,u,f;const o=JSON.parse(r.data);switch(o.type){case"state":{const h={...n().tokenTimeline},p=Date.now();for(const b of o.data){h[b.id]||(h[b.id]=[]);const y=h[b.id],Q=y[y.length-1];(!Q||b.tokensUsed!==Q.v||p-Q.t>5e3)&&(y.push({t:p,v:b.tokensUsed||0}),y.length>200&&(h[b.id]=y.slice(-200)))}const g=n().agents,x=o.data.length!==g.length||o.data.some((b,y)=>{const Q=g[y];return!Q||Q.id!==b.id||Q.status!==b.status||Q.tokensUsed!==b.tokensUsed||Q.contextUsage!==b.contextUsage||Q.name!==b.name||Q.model!==b.model});e({agents:x?o.data:g,tokenTimeline:h,hydrated:!0});break}case"agent:output":{const{agentId:h,data:p}=o;let g="",x="";if(typeof p.data=="string"?g=p.data:Array.isArray(p.data)&&(g=p.data.filter(Q=>Q.type==="text").map(Q=>Q.text).join(`
|
|
26
|
-
`),x=p.data.filter(Q=>Q.type==="tool_use").map(Q=>{var w,k,j;return`${Q.name}: ${typeof Q.input=="string"?Q.input.slice(0,80):((w=Q.input)==null?void 0:w.command)||((k=Q.input)==null?void 0:k.path)||((j=Q.input)==null?void 0:j.pattern)||JSON.stringify(Q.input||"").slice(0,80)}`}).join(`
|
|
27
|
-
`)),p.contextUsage!==void 0||p.tokensUsed!==void 0){const Q=n().agents.map(w=>{if(w.id!==h)return w;const k={};return p.contextUsage!==void 0&&(k.contextUsage=p.contextUsage),p.tokensUsed!==void 0&&(k.tokensUsed=p.tokensUsed),{...w,...k}});e({agents:Q})}const b=p.subtype==="stream";if(g&&g.trim()&&!b&&(p.subtype==="assistant"||p.subtype==="text"||p.type==="result"||p.type==="activity"&&typeof p.data=="string")){n().thinkingAgents.has(h)&&e(R=>{const Y=new Set(R.thinkingAgents);return Y.delete(h),{thinkingAgents:Y}});const Q=g.trim(),w={...n().chatHistory};w[h]||(w[h]=[]);const k=[...w[h]],j=k[k.length-1],P=j&&j.from==="agent"&&Date.now()-j.timestamp<8e3;if(!(P&&(j.text===Q||j.text.endsWith(Q)))){if(P){const R=p.subtype==="assistant"?`
|
|
28
|
-
|
|
29
|
-
`:" ";k[k.length-1]={...j,text:j.text+R+Q,timestamp:Date.now()}}else k.push({from:"agent",text:Q,timestamp:Date.now()});w[h]=k.slice(-100),e({chatHistory:w}),Cs("groove:chatHistory",w)}}if(x&&x.trim()){const Q={...n().activityLog};Q[h]||(Q[h]=[]),Q[h]=[...Q[h].slice(-200),{timestamp:Date.now(),text:x.trim(),type:p.type,subtype:"tool"}],e({activityLog:Q}),Cs("groove:activityLog",Q)}break}case"agent:exit":{const h=n().agents.find(y=>y.id===o.agentId),p=(h==null?void 0:h.name)||o.agentId,g=o.status==="killed"||o.code===143||o.code===137,x=o.status==="completed"?`${p} completed`:g?`${p} stopped`:`${p} crashed (exit ${o.code})`,b=o.status==="completed"?"success":g?"info":"warning";n().addToast(b,x,o.error?o.error.slice(0,200):void 0),o.error&&o.agentId&&n().addChatMessage(o.agentId,"system",`Crashed: ${o.error}`),(h==null?void 0:h.role)==="planner"&&o.status==="completed"&&setTimeout(()=>n().checkRecommendedTeam(),1e3);break}case"phase2:spawned":n().addToast("info",`QC agent ${o.name} auto-spawned`,"Auditing phase 1 work");break;case"phase2:failed":n().addToast("error","QC agent failed to spawn",o.error||"Unknown error");break;case"rotation:start":break;case"rotation:complete":{if(!o.newAgentId||!o.oldAgentId)break;e(h=>{var k,j,P;const p={...h.chatHistory},g={...h.tokenTimeline},x={...h.activityLog},b={...h.chatInputs};(k=p[o.oldAgentId])!=null&&k.length&&(p[o.newAgentId]=[...p[o.oldAgentId]],delete p[o.oldAgentId]),(j=g[o.oldAgentId])!=null&&j.length&&(g[o.newAgentId]=[...g[o.oldAgentId]],delete g[o.oldAgentId]),(P=x[o.oldAgentId])!=null&&P.length&&(x[o.newAgentId]=[...x[o.oldAgentId]],delete x[o.oldAgentId]),b[o.oldAgentId]&&(b[o.newAgentId]=b[o.oldAgentId],delete b[o.oldAgentId]);const y=h.detailPanel;let Q=y,w=h.teamDetailPanels;if((y==null?void 0:y.type)==="agent"&&y.agentId===o.oldAgentId){const z={type:"agent",agentId:o.newAgentId};Q=z;const R=n().activeTeamId;w={...h.teamDetailPanels,[R]:z}}try{localStorage.setItem("groove:chatHistory",JSON.stringify(p))}catch{}return{chatHistory:p,tokenTimeline:g,activityLog:x,chatInputs:b,detailPanel:Q,teamDetailPanels:w}});break}case"rotation:failed":n().addToast("error","Rotation failed",o.error);break;case"file:changed":{const h=n().editorRecentSaves[o.path];if(h&&Date.now()-h<2e3)break;e(p=>({editorChangedFiles:{...p.editorChangedFiles,[o.path]:o.timestamp}}));break}case"team:created":case"team:deleted":case"team:updated":n().fetchTeams();break;case"approval:request":e(h=>({pendingApprovals:[...h.pendingApprovals,o.data]})),n().addToast("warning",`Approval needed: ${((d=o.data)==null?void 0:d.agentName)||"agent"}`,(f=(u=o.data)==null?void 0:u.action)==null?void 0:f.description);break;case"approval:resolved":{const h=o.data;e(p=>({pendingApprovals:p.pendingApprovals.filter(g=>g.id!==h.id),resolvedApprovals:[h,...p.resolvedApprovals].slice(0,200)}));break}case"conflict:detected":n().addToast("error",`Scope conflict: ${o.agentName||"agent"}`,o.filePath?`File: ${o.filePath}`:void 0);break;case"qc:activated":n().addToast("info","QC agent activated",`${o.agentCount||"4+"} agents running`);break;case"journalist:cycle":e({journalistStatus:o.data||null});break;case"schedule:execute":n().addToast("info",`Scheduled agent spawned: ${o.name||o.role||"agent"}`);break;case"gateway:status":e({gateways:o.data||[]});break}},l.onclose=()=>{e({connected:!1,hydrated:!1,ws:null,daemonHost:null,tunneled:!1}),setTimeout(()=>n().connect(),2e3)},l.onerror=()=>l.close()},setActiveView(l){e({activeView:l})},async fetchTeams(){try{const l=await J.get("/teams");let r=l.teams||[];const o=l.defaultTeamId;try{const h=JSON.parse(localStorage.getItem("groove:teamOrder")||"[]");if(h.length){const p=Object.fromEntries(r.map(b=>[b.id,b])),g=h.filter(b=>p[b]).map(b=>p[b]),x=r.filter(b=>!h.includes(b.id));r=[...g,...x]}}catch{}const{activeTeamId:d}=n(),f=r.map(h=>h.id).includes(d)?d:o;e({teams:r,activeTeamId:f}),f&&localStorage.setItem("groove:activeTeamId",f)}catch{}},switchTeam(l){const{activeTeamId:r,detailPanel:o,teamDetailPanels:d}=n(),u={...d};r&&(u[r]=o);const f=u[l]||null;e({activeTeamId:l,detailPanel:f,teamDetailPanels:u}),localStorage.setItem("groove:activeTeamId",l)},async createTeam(l,r){try{const o={name:l};r&&(o.workingDir=r);const d=await J.post("/teams",o);return e({activeTeamId:d.id}),localStorage.setItem("groove:activeTeamId",d.id),n().addToast("success",`Team "${l}" created`),d}catch(o){throw n().addToast("error","Failed to create team",o.message),o}},async deleteTeam(l){const r=n().teams.find(o=>o.id===l);if(r!=null&&r.isDefault){n().addToast("warning","Cannot delete the default team");return}try{await J.delete(`/teams/${l}`),n().addToast("info",`Team "${r==null?void 0:r.name}" deleted`)}catch(o){n().addToast("error","Failed to delete team",o.message)}},reorderTeams(l,r){const o=[...n().teams],[d]=o.splice(l,1);o.splice(r,0,d),e({teams:o});try{localStorage.setItem("groove:teamOrder",JSON.stringify(o.map(u=>u.id)))}catch{}},async renameTeam(l,r){try{const o=await J.patch(`/teams/${l}`,{name:r});return e(d=>({teams:d.teams.map(u=>u.id===l?o:u)})),o}catch(o){throw n().addToast("error","Failed to rename team",o.message),o}},openDetail(l){const r=n().activeTeamId;e(o=>({detailPanel:l,teamDetailPanels:{...o.teamDetailPanels,[r]:l}}))},closeDetail(){const l=n().activeTeamId;e(r=>({detailPanel:null,teamDetailPanels:{...r.teamDetailPanels,[l]:null}}))},selectAgent(l){const r=n().activeTeamId,o={type:"agent",agentId:l};e(d=>({detailPanel:o,teamDetailPanels:{...d.teamDetailPanels,[r]:o}}))},clearSelection(){const l=n().activeTeamId;e(r=>({detailPanel:null,teamDetailPanels:{...r.teamDetailPanels,[l]:null}}))},toggleCommandPalette(){e(l=>({commandPaletteOpen:!l.commandPaletteOpen}))},setDetailPanelWidth(l){e({detailPanelWidth:l}),localStorage.setItem("groove:detailWidth",String(l))},setTerminalVisible(l){e({terminalVisible:l}),localStorage.setItem("groove:terminalVisible",String(l))},setTerminalHeight(l){e({terminalHeight:l}),localStorage.setItem("groove:terminalHeight",String(l))},setTerminalFullHeight(l){e({terminalFullHeight:l})},toggleNodeExpanded(l){const r={...n().expandedNodes};r[l]=!r[l],r[l]||delete r[l],e({expandedNodes:r}),Cs("groove:expandedNodes",r)},addToast(l,r,o){const d=++$w;e(u=>({toasts:[...u.toasts,{id:d,type:l,message:r,detail:o}]}))},removeToast(l){e(r=>({toasts:r.toasts.filter(o=>o.id!==l)}))},async checkMarketplaceAuth(){try{const l=await J.get("/auth/status");e({marketplaceAuthenticated:l.authenticated||!1,marketplaceUser:l.user||null})}catch{e({marketplaceAuthenticated:!1,marketplaceUser:null})}},async marketplaceLogin(){try{const l=await J.get("/auth/login-url");l.url&&window.open(l.url,"_blank");const r=setInterval(async()=>{var o,d;try{const u=await J.get("/auth/status");u.authenticated&&(clearInterval(r),e({marketplaceAuthenticated:!0,marketplaceUser:u.user}),n().addToast("success",`Signed in as ${((o=u.user)==null?void 0:o.displayName)||((d=u.user)==null?void 0:d.id)||"user"}`))}catch{}},2e3);setTimeout(()=>clearInterval(r),3e5)}catch(l){n().addToast("error","Login failed",l.message)}},async marketplaceLogout(){try{await J.post("/auth/logout"),e({marketplaceAuthenticated:!1,marketplaceUser:null}),n().addToast("info","Signed out of marketplace")}catch(l){n().addToast("error","Logout failed",l.message)}},async marketplaceCheckout(l){try{const r=await J.post("/auth/checkout",{skillId:l});return r.url&&window.open(r.url,"_blank"),r}catch(r){throw n().addToast("error","Checkout failed",r.message),r}},async fetchApprovals(){try{const l=await J.get("/approvals");e({pendingApprovals:l.pending||[],resolvedApprovals:l.resolved||[]})}catch{}},async approveRequest(l){try{await J.post(`/approvals/${l}/approve`),e(r=>({pendingApprovals:r.pendingApprovals.filter(o=>o.id!==l)})),n().addToast("success","Approved")}catch(r){n().addToast("error","Approve failed",r.message)}},async rejectRequest(l,r=""){try{await J.post(`/approvals/${l}/reject`,{reason:r}),e(o=>({pendingApprovals:o.pendingApprovals.filter(d=>d.id!==l)})),n().addToast("info","Rejected")}catch(o){n().addToast("error","Reject failed",o.message)}},async checkRecommendedTeam(){var l;try{const r=await J.get("/recommended-team");if(!r||!((l=r.agents)!=null&&l.length)){e({recommendedTeam:null});return}const d=n().agents.filter(f=>f.role==="planner").sort((f,h)=>(h.lastActivity||"").localeCompare(f.lastActivity||""))[0],u=d==null?void 0:d.teamId;if(u){const f=n().agents.filter(g=>g.teamId===u&&g.role!=="planner"),h=r.agents.filter(g=>!g.phase||g.phase===1).map(g=>g.role);if(h.every(g=>f.some(x=>x.role===g))&&h.length>0){e({recommendedTeam:null});const x=(await J.post("/recommended-team/launch")).agents||[],b=x.map(y=>y.name).join(", ")||"";n().addToast("success","Planner delegated work",b?`→ ${b}`:void 0),x.length>0&&e(y=>({thinkingAgents:new Set([...y.thinkingAgents,...x.map(Q=>Q.id)])})),J.post("/cleanup").catch(()=>{});return}}e({recommendedTeam:r})}catch{e({recommendedTeam:null})}},async launchRecommendedTeam(l){try{e({recommendedTeam:null}),n().addToast("info","Launching team...");const r=l?{agents:l}:void 0,o=await J.post("/recommended-team/launch",r),d=[o.phase2Pending?`${o.phase2Pending} QC queued`:"",o.projectDir?`→ ${o.projectDir}/`:""].filter(Boolean).join(" · ");n().addToast("success",`Launched ${(o.launched||0)+(o.reused||0)} agents`,d||void 0);const u=o.agents||[];return u.length>0&&e(f=>({thinkingAgents:new Set([...f.thinkingAgents,...u.map(h=>h.id)])})),J.post("/cleanup").catch(()=>{}),o}catch(r){throw n().addToast("error","Launch failed",r.message),r}},async fetchJournalist(){try{const l=await J.get("/journalist");return e({journalistStatus:l}),l}catch{return null}},async triggerJournalistCycle(){try{const l=await J.post("/journalist/cycle");return n().addToast("success","Synthesis cycle triggered"),e({journalistStatus:l}),l}catch(l){throw n().addToast("error","Synthesis failed",l.message),l}},async spawnAgent(l){try{const r=n().activeTeamId,o=await J.post("/agents",{...l,teamId:r});return n().addToast("success",`Spawned ${o.name}`),o}catch(r){throw n().addToast("error","Spawn failed",r.message),r}},async killAgent(l,r=!1){try{await J.delete(`/agents/${l}?purge=${r}`)}catch(o){n().addToast("error","Kill failed",o.message)}},async rotateAgent(l){try{return await J.post(`/agents/${l}/rotate`)}catch(r){throw n().addToast("error","Rotation failed",r.message),r}},async fetchProviders(){return J.get("/providers")},addChatMessage(l,r,o,d=!1){e(u=>{const f={...u.chatHistory};return f[l]||(f[l]=[]),f[l]=[...f[l].slice(-100),{from:r,text:o,timestamp:Date.now(),isQuery:d}],Cs("groove:chatHistory",f),{chatHistory:f}})},thinkingAgents:new Set,async stopAgent(l){try{await J.post(`/agents/${l}/stop`),e(r=>{const o=new Set(r.thinkingAgents);return o.delete(l),{thinkingAgents:o}}),n().addToast("info","Stopped agent")}catch(r){n().addToast("error","Stop failed",r.message)}},async instructAgent(l,r){var u,f;const o=n().agents.find(h=>h.id===l);if(o&&(o.status==="running"||o.status==="starting")){n().addChatMessage(l,"user",r,!1);try{const h=await J.post(`/agents/${l}/query`,{message:r});return h.status==="pending"||h.response==="Message sent to agent"?(e(p=>({thinkingAgents:new Set([...p.thinkingAgents,l])})),h):(n().addChatMessage(l,"agent",h.response),h)}catch(h){throw n().addChatMessage(l,"system",`failed: ${h.message}`),h}}n().addChatMessage(l,"user",r,!1),e(h=>({thinkingAgents:new Set([...h.thinkingAgents,l])}));try{const h=await J.post(`/agents/${l}/instruct`,{message:r});for(const p of["chatHistory","activityLog","tokenTimeline"]){const g=n()[p][l];g!=null&&g.length&&e(x=>({[p]:{...x[p],[h.id]:[...g]}}))}return e(p=>{const g=new Set(p.thinkingAgents);return g.delete(l),g.add(h.id),{thinkingAgents:g}}),(u=n().chatHistory[l])!=null&&u.length&&Cs("groove:chatHistory",n().chatHistory),(f=n().activityLog[l])!=null&&f.length&&Cs("groove:activityLog",n().activityLog),n().selectAgent(h.id),h}catch(h){throw e(p=>{const g=new Set(p.thinkingAgents);return g.delete(l),{thinkingAgents:g}}),n().addChatMessage(l,"system",`failed: ${h.message}`),h}},async queryAgent(l,r){n().addChatMessage(l,"user",r,!0);try{const o=await J.post(`/agents/${l}/query`,{message:r});return n().addChatMessage(l,"agent",o.response),o}catch(o){throw n().addChatMessage(l,"system",`query failed: ${o.message}`),o}},async openFile(l){var d;if(n().editorFiles[l]||n().editorOpenTabs.includes(l)){e(u=>({editorActiveFile:l,editorOpenTabs:u.editorOpenTabs.includes(l)?u.editorOpenTabs:[...u.editorOpenTabs,l]}));return}const r=(d=l.split(".").pop())==null?void 0:d.toLowerCase();if(["png","jpg","jpeg","gif","svg","webp","ico","bmp","avif","mp4","webm","mov","avi","mkv","ogv"].includes(r)){e(u=>({editorActiveFile:l,editorOpenTabs:[...u.editorOpenTabs,l]}));return}try{const u=await J.get(`/files/read?path=${encodeURIComponent(l)}`);if(u.binary){n().addToast("warning","Binary file — cannot open");return}e(h=>({editorFiles:{...h.editorFiles,[l]:{content:u.content,originalContent:u.content,language:u.language,loadedAt:Date.now()}},editorActiveFile:l,editorOpenTabs:h.editorOpenTabs.includes(l)?h.editorOpenTabs:[...h.editorOpenTabs,l]}));const f=n().ws;(f==null?void 0:f.readyState)===1&&f.send(JSON.stringify({type:"editor:watch",path:l}))}catch(u){n().addToast("error","Failed to open file",u.message)}},closeFile(l){e(o=>{const d=o.editorOpenTabs.filter(p=>p!==l),u={...o.editorFiles};delete u[l];const f={...o.editorChangedFiles};delete f[l];let h=o.editorActiveFile;if(h===l){const p=o.editorOpenTabs.indexOf(l);h=d[Math.min(p,d.length-1)]||null}return{editorOpenTabs:d,editorFiles:u,editorChangedFiles:f,editorActiveFile:h}});const r=n().ws;(r==null?void 0:r.readyState)===1&&r.send(JSON.stringify({type:"editor:unwatch",path:l}))},setActiveFile(l){e({editorActiveFile:l})},updateFileContent(l,r){e(o=>({editorFiles:{...o.editorFiles,[l]:{...o.editorFiles[l],content:r}}}))},async saveFile(l){const r=n().editorFiles[l];if(r)try{await J.post("/files/write",{path:l,content:r.content}),e(o=>({editorFiles:{...o.editorFiles,[l]:{...o.editorFiles[l],originalContent:r.content}},editorChangedFiles:(()=>{const d={...o.editorChangedFiles};return delete d[l],d})(),editorRecentSaves:{...o.editorRecentSaves,[l]:Date.now()}})),n().addToast("success","File saved")}catch(o){n().addToast("error","Save failed",o.message)}},async reloadFile(l){try{const r=await J.get(`/files/read?path=${encodeURIComponent(l)}`);if(r.binary)return;e(o=>({editorFiles:{...o.editorFiles,[l]:{content:r.content,originalContent:r.content,language:r.language,loadedAt:Date.now()}},editorChangedFiles:(()=>{const d={...o.editorChangedFiles};return delete d[l],d})()}))}catch{}},dismissFileChange(l){e(r=>{const o={...r.editorChangedFiles};return delete o[l],{editorChangedFiles:o}})},async fetchTreeDir(l){try{const r=await J.get(`/files/tree?path=${encodeURIComponent(l)}`);e(o=>({editorTreeCache:{...o.editorTreeCache,[l]:r.entries}}))}catch{}},async createFile(l){try{await J.post("/files/create",{path:l});const r=l.includes("/")?l.split("/").slice(0,-1).join("/"):"";return await n().fetchTreeDir(r),n().addToast("success","File created"),!0}catch(r){return n().addToast("error","Create failed",r.message),!1}},async createDir(l){try{await J.post("/files/mkdir",{path:l});const r=l.includes("/")?l.split("/").slice(0,-1).join("/"):"";return await n().fetchTreeDir(r),n().addToast("success","Folder created"),!0}catch(r){return n().addToast("error","Create failed",r.message),!1}},async deleteFile(l){try{await J.delete(`/files/delete?path=${encodeURIComponent(l)}`),n().editorOpenTabs.includes(l)&&n().closeFile(l);const r=l.includes("/")?l.split("/").slice(0,-1).join("/"):"";return await n().fetchTreeDir(r),e(o=>{const d={...o.editorTreeCache};return delete d[l],{editorTreeCache:d}}),n().addToast("success","Deleted"),!0}catch(r){return n().addToast("error","Delete failed",r.message),!1}},async renameFile(l,r){try{await J.post("/files/rename",{oldPath:l,newPath:r}),e(u=>{const f=u.editorOpenTabs.map(g=>g===l?r:g),h={...u.editorFiles};h[l]&&(h[r]=h[l],delete h[l]);const p=u.editorActiveFile===l?r:u.editorActiveFile;return{editorOpenTabs:f,editorFiles:h,editorActiveFile:p}});const o=l.includes("/")?l.split("/").slice(0,-1).join("/"):"",d=r.includes("/")?r.split("/").slice(0,-1).join("/"):"";return await n().fetchTreeDir(o),d!==o&&await n().fetchTreeDir(d),n().addToast("success","Renamed"),!0}catch(o){return n().addToast("error","Rename failed",o.message),!1}}}));function Tw(e){v.useEffect(()=>{function n(l){for(const r of e){const o=r.meta?l.metaKey||l.ctrlKey:!0,d=r.shift?l.shiftKey:!l.shiftKey;if(l.key.toLowerCase()===r.key.toLowerCase()&&o&&d){l.preventDefault(),r.handler();return}}}return document.addEventListener("keydown",n),()=>document.removeEventListener("keydown",n)},[e])}function Ue(e,n,{checkForDefaultPrevented:l=!0}={}){return function(o){if(e==null||e(o),l===!1||!o.defaultPrevented)return n==null?void 0:n(o)}}function Fg(e,n){if(typeof e=="function")return e(n);e!=null&&(e.current=n)}function K0(...e){return n=>{let l=!1;const r=e.map(o=>{const d=Fg(o,n);return!l&&typeof d=="function"&&(l=!0),d});if(l)return()=>{for(let o=0;o<r.length;o++){const d=r[o];typeof d=="function"?d():Fg(e[o],null)}}}}function dt(...e){return v.useCallback(K0(...e),e)}function Nw(e,n){const l=v.createContext(n),r=d=>{const{children:u,...f}=d,h=v.useMemo(()=>f,Object.values(f));return s.jsx(l.Provider,{value:h,children:u})};r.displayName=e+"Provider";function o(d){const u=v.useContext(l);if(u)return u;if(n!==void 0)return n;throw new Error(`\`${d}\` must be used within \`${e}\``)}return[r,o]}function Ls(e,n=[]){let l=[];function r(d,u){const f=v.createContext(u),h=l.length;l=[...l,u];const p=x=>{var j;const{scope:b,children:y,...Q}=x,w=((j=b==null?void 0:b[e])==null?void 0:j[h])||f,k=v.useMemo(()=>Q,Object.values(Q));return s.jsx(w.Provider,{value:k,children:y})};p.displayName=d+"Provider";function g(x,b){var w;const y=((w=b==null?void 0:b[e])==null?void 0:w[h])||f,Q=v.useContext(y);if(Q)return Q;if(u!==void 0)return u;throw new Error(`\`${x}\` must be used within \`${d}\``)}return[p,g]}const o=()=>{const d=l.map(u=>v.createContext(u));return function(f){const h=(f==null?void 0:f[e])||d;return v.useMemo(()=>({[`__scope${e}`]:{...f,[e]:h}}),[f,h])}};return o.scopeName=e,[r,Pw(o,...n)]}function Pw(...e){const n=e[0];if(e.length===1)return n;const l=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(d){const u=r.reduce((f,{useScope:h,scopeName:p})=>{const x=h(d)[`__scope${p}`];return{...f,...x}},{});return v.useMemo(()=>({[`__scope${n.scopeName}`]:u}),[u])}};return l.scopeName=n.scopeName,l}function wc(e){const n=zw(e),l=v.forwardRef((r,o)=>{const{children:d,...u}=r,f=v.Children.toArray(d),h=f.find(Rw);if(h){const p=h.props.children,g=f.map(x=>x===h?v.Children.count(p)>1?v.Children.only(null):v.isValidElement(p)?p.props.children:null:x);return s.jsx(n,{...u,ref:o,children:v.isValidElement(p)?v.cloneElement(p,void 0,g):null})}return s.jsx(n,{...u,ref:o,children:d})});return l.displayName=`${e}.Slot`,l}function zw(e){const n=v.forwardRef((l,r)=>{const{children:o,...d}=l;if(v.isValidElement(o)){const u=Aw(o),f=_w(d,o.props);return o.type!==v.Fragment&&(f.ref=r?K0(r,u):u),v.cloneElement(o,f)}return v.Children.count(o)>1?v.Children.only(null):null});return n.displayName=`${e}.SlotClone`,n}var J0=Symbol("radix.slottable");function Cw(e){const n=({children:l})=>s.jsx(s.Fragment,{children:l});return n.displayName=`${e}.Slottable`,n.__radixId=J0,n}function Rw(e){return v.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===J0}function _w(e,n){const l={...n};for(const r in n){const o=e[r],d=n[r];/^on[A-Z]/.test(r)?o&&d?l[r]=(...f)=>{const h=d(...f);return o(...f),h}:o&&(l[r]=o):r==="style"?l[r]={...o,...d}:r==="className"&&(l[r]=[o,d].filter(Boolean).join(" "))}return{...e,...l}}function Aw(e){var r,o;let n=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,l=n&&"isReactWarning"in n&&n.isReactWarning;return l?e.ref:(n=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,l=n&&"isReactWarning"in n&&n.isReactWarning,l?e.props.ref:e.props.ref||e.ref)}var Xw=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Je=Xw.reduce((e,n)=>{const l=wc(`Primitive.${n}`),r=v.forwardRef((o,d)=>{const{asChild:u,...f}=o,h=u?l:n;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),s.jsx(h,{...f,ref:d})});return r.displayName=`Primitive.${n}`,{...e,[n]:r}},{});function Zw(e,n){e&&G0.flushSync(()=>e.dispatchEvent(n))}function At(e){const n=v.useRef(e);return v.useEffect(()=>{n.current=e}),v.useMemo(()=>(...l)=>{var r;return(r=n.current)==null?void 0:r.call(n,...l)},[])}function Ew(e,n=globalThis==null?void 0:globalThis.document){const l=At(e);v.useEffect(()=>{const r=o=>{o.key==="Escape"&&l(o)};return n.addEventListener("keydown",r,{capture:!0}),()=>n.removeEventListener("keydown",r,{capture:!0})},[l,n])}var qw="DismissableLayer",SO="dismissableLayer.update",Mw="dismissableLayer.pointerDownOutside",Yw="dismissableLayer.focusOutside",Kg,eb=v.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),IO=v.forwardRef((e,n)=>{const{disableOutsidePointerEvents:l=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:d,onInteractOutside:u,onDismiss:f,...h}=e,p=v.useContext(eb),[g,x]=v.useState(null),b=(g==null?void 0:g.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,y]=v.useState({}),Q=dt(n,C=>x(C)),w=Array.from(p.layers),[k]=[...p.layersWithOutsidePointerEventsDisabled].slice(-1),j=w.indexOf(k),P=g?w.indexOf(g):-1,z=p.layersWithOutsidePointerEventsDisabled.size>0,R=P>=j,Y=Gw(C=>{const T=C.target,I=[...p.branches].some(Z=>Z.contains(T));!R||I||(o==null||o(C),u==null||u(C),C.defaultPrevented||f==null||f())},b),X=Dw(C=>{const T=C.target;[...p.branches].some(Z=>Z.contains(T))||(d==null||d(C),u==null||u(C),C.defaultPrevented||f==null||f())},b);return Ew(C=>{P===p.layers.size-1&&(r==null||r(C),!C.defaultPrevented&&f&&(C.preventDefault(),f()))},b),v.useEffect(()=>{if(g)return l&&(p.layersWithOutsidePointerEventsDisabled.size===0&&(Kg=b.body.style.pointerEvents,b.body.style.pointerEvents="none"),p.layersWithOutsidePointerEventsDisabled.add(g)),p.layers.add(g),Jg(),()=>{l&&p.layersWithOutsidePointerEventsDisabled.size===1&&(b.body.style.pointerEvents=Kg)}},[g,b,l,p]),v.useEffect(()=>()=>{g&&(p.layers.delete(g),p.layersWithOutsidePointerEventsDisabled.delete(g),Jg())},[g,p]),v.useEffect(()=>{const C=()=>y({});return document.addEventListener(SO,C),()=>document.removeEventListener(SO,C)},[]),s.jsx(Je.div,{...h,ref:Q,style:{pointerEvents:z?R?"auto":"none":void 0,...e.style},onFocusCapture:Ue(e.onFocusCapture,X.onFocusCapture),onBlurCapture:Ue(e.onBlurCapture,X.onBlurCapture),onPointerDownCapture:Ue(e.onPointerDownCapture,Y.onPointerDownCapture)})});IO.displayName=qw;var Uw="DismissableLayerBranch",Vw=v.forwardRef((e,n)=>{const l=v.useContext(eb),r=v.useRef(null),o=dt(n,r);return v.useEffect(()=>{const d=r.current;if(d)return l.branches.add(d),()=>{l.branches.delete(d)}},[l.branches]),s.jsx(Je.div,{...e,ref:o})});Vw.displayName=Uw;function Gw(e,n=globalThis==null?void 0:globalThis.document){const l=At(e),r=v.useRef(!1),o=v.useRef(()=>{});return v.useEffect(()=>{const d=f=>{if(f.target&&!r.current){let h=function(){tb(Mw,l,p,{discrete:!0})};const p={originalEvent:f};f.pointerType==="touch"?(n.removeEventListener("click",o.current),o.current=h,n.addEventListener("click",o.current,{once:!0})):h()}else n.removeEventListener("click",o.current);r.current=!1},u=window.setTimeout(()=>{n.addEventListener("pointerdown",d)},0);return()=>{window.clearTimeout(u),n.removeEventListener("pointerdown",d),n.removeEventListener("click",o.current)}},[n,l]),{onPointerDownCapture:()=>r.current=!0}}function Dw(e,n=globalThis==null?void 0:globalThis.document){const l=At(e),r=v.useRef(!1);return v.useEffect(()=>{const o=d=>{d.target&&!r.current&&tb(Yw,l,{originalEvent:d},{discrete:!1})};return n.addEventListener("focusin",o),()=>n.removeEventListener("focusin",o)},[n,l]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Jg(){const e=new CustomEvent(SO);document.dispatchEvent(e)}function tb(e,n,l,{discrete:r}){const o=l.originalEvent.target,d=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:l});n&&o.addEventListener(e,n,{once:!0}),r?Zw(o,d):o.dispatchEvent(d)}var ha=globalThis!=null&&globalThis.document?v.useLayoutEffect:()=>{},Lw=V0[" useId ".trim().toString()]||(()=>{}),Ww=0;function Yl(e){const[n,l]=v.useState(Lw());return ha(()=>{l(r=>r??String(Ww++))},[e]),n?`radix-${n}`:""}const Bw=["top","right","bottom","left"],as=Math.min,It=Math.max,kc=Math.round,Fo=Math.floor,Cn=e=>({x:e,y:e}),Hw={left:"right",right:"left",bottom:"top",top:"bottom"};function QO(e,n,l){return It(e,as(n,l))}function ma(e,n){return typeof e=="function"?e(n):e}function pa(e){return e.split("-")[0]}function ar(e){return e.split("-")[1]}function FO(e){return e==="x"?"y":"x"}function KO(e){return e==="y"?"height":"width"}function zn(e){const n=e[0];return n==="t"||n==="b"?"y":"x"}function JO(e){return FO(zn(e))}function Iw(e,n,l){l===void 0&&(l=!1);const r=ar(e),o=JO(e),d=KO(o);let u=o==="x"?r===(l?"end":"start")?"right":"left":r==="start"?"bottom":"top";return n.reference[d]>n.floating[d]&&(u=$c(u)),[u,$c(u)]}function Fw(e){const n=$c(e);return[jO(e),n,jO(n)]}function jO(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const e1=["left","right"],t1=["right","left"],Kw=["top","bottom"],Jw=["bottom","top"];function ek(e,n,l){switch(e){case"top":case"bottom":return l?n?t1:e1:n?e1:t1;case"left":case"right":return n?Kw:Jw;default:return[]}}function tk(e,n,l,r){const o=ar(e);let d=ek(pa(e),l==="start",r);return o&&(d=d.map(u=>u+"-"+o),n&&(d=d.concat(d.map(jO)))),d}function $c(e){const n=pa(e);return Hw[n]+e.slice(n.length)}function nk(e){return{top:0,right:0,bottom:0,left:0,...e}}function nb(e){return typeof e!="number"?nk(e):{top:e,right:e,bottom:e,left:e}}function Tc(e){const{x:n,y:l,width:r,height:o}=e;return{width:r,height:o,top:l,left:n,right:n+r,bottom:l+o,x:n,y:l}}function n1(e,n,l){let{reference:r,floating:o}=e;const d=zn(n),u=JO(n),f=KO(u),h=pa(n),p=d==="y",g=r.x+r.width/2-o.width/2,x=r.y+r.height/2-o.height/2,b=r[f]/2-o[f]/2;let y;switch(h){case"top":y={x:g,y:r.y-o.height};break;case"bottom":y={x:g,y:r.y+r.height};break;case"right":y={x:r.x+r.width,y:x};break;case"left":y={x:r.x-o.width,y:x};break;default:y={x:r.x,y:r.y}}switch(ar(n)){case"start":y[u]-=b*(l&&p?-1:1);break;case"end":y[u]+=b*(l&&p?-1:1);break}return y}async function ak(e,n){var l;n===void 0&&(n={});const{x:r,y:o,platform:d,rects:u,elements:f,strategy:h}=e,{boundary:p="clippingAncestors",rootBoundary:g="viewport",elementContext:x="floating",altBoundary:b=!1,padding:y=0}=ma(n,e),Q=nb(y),k=f[b?x==="floating"?"reference":"floating":x],j=Tc(await d.getClippingRect({element:(l=await(d.isElement==null?void 0:d.isElement(k)))==null||l?k:k.contextElement||await(d.getDocumentElement==null?void 0:d.getDocumentElement(f.floating)),boundary:p,rootBoundary:g,strategy:h})),P=x==="floating"?{x:r,y:o,width:u.floating.width,height:u.floating.height}:u.reference,z=await(d.getOffsetParent==null?void 0:d.getOffsetParent(f.floating)),R=await(d.isElement==null?void 0:d.isElement(z))?await(d.getScale==null?void 0:d.getScale(z))||{x:1,y:1}:{x:1,y:1},Y=Tc(d.convertOffsetParentRelativeRectToViewportRelativeRect?await d.convertOffsetParentRelativeRectToViewportRelativeRect({elements:f,rect:P,offsetParent:z,strategy:h}):P);return{top:(j.top-Y.top+Q.top)/R.y,bottom:(Y.bottom-j.bottom+Q.bottom)/R.y,left:(j.left-Y.left+Q.left)/R.x,right:(Y.right-j.right+Q.right)/R.x}}const sk=50,lk=async(e,n,l)=>{const{placement:r="bottom",strategy:o="absolute",middleware:d=[],platform:u}=l,f=u.detectOverflow?u:{...u,detectOverflow:ak},h=await(u.isRTL==null?void 0:u.isRTL(n));let p=await u.getElementRects({reference:e,floating:n,strategy:o}),{x:g,y:x}=n1(p,r,h),b=r,y=0;const Q={};for(let w=0;w<d.length;w++){const k=d[w];if(!k)continue;const{name:j,fn:P}=k,{x:z,y:R,data:Y,reset:X}=await P({x:g,y:x,initialPlacement:r,placement:b,strategy:o,middlewareData:Q,rects:p,platform:f,elements:{reference:e,floating:n}});g=z??g,x=R??x,Q[j]={...Q[j],...Y},X&&y<sk&&(y++,typeof X=="object"&&(X.placement&&(b=X.placement),X.rects&&(p=X.rects===!0?await u.getElementRects({reference:e,floating:n,strategy:o}):X.rects),{x:g,y:x}=n1(p,b,h)),w=-1)}return{x:g,y:x,placement:b,strategy:o,middlewareData:Q}},rk=e=>({name:"arrow",options:e,async fn(n){const{x:l,y:r,placement:o,rects:d,platform:u,elements:f,middlewareData:h}=n,{element:p,padding:g=0}=ma(e,n)||{};if(p==null)return{};const x=nb(g),b={x:l,y:r},y=JO(o),Q=KO(y),w=await u.getDimensions(p),k=y==="y",j=k?"top":"left",P=k?"bottom":"right",z=k?"clientHeight":"clientWidth",R=d.reference[Q]+d.reference[y]-b[y]-d.floating[Q],Y=b[y]-d.reference[y],X=await(u.getOffsetParent==null?void 0:u.getOffsetParent(p));let C=X?X[z]:0;(!C||!await(u.isElement==null?void 0:u.isElement(X)))&&(C=f.floating[z]||d.floating[Q]);const T=R/2-Y/2,I=C/2-w[Q]/2-1,Z=as(x[j],I),K=as(x[P],I),F=Z,G=C-w[Q]-K,V=C/2-w[Q]/2+T,M=QO(F,V,G),N=!h.arrow&&ar(o)!=null&&V!==M&&d.reference[Q]/2-(V<F?Z:K)-w[Q]/2<0,U=N?V<F?V-F:V-G:0;return{[y]:b[y]+U,data:{[y]:M,centerOffset:V-M-U,...N&&{alignmentOffset:U}},reset:N}}}),ik=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(n){var l,r;const{placement:o,middlewareData:d,rects:u,initialPlacement:f,platform:h,elements:p}=n,{mainAxis:g=!0,crossAxis:x=!0,fallbackPlacements:b,fallbackStrategy:y="bestFit",fallbackAxisSideDirection:Q="none",flipAlignment:w=!0,...k}=ma(e,n);if((l=d.arrow)!=null&&l.alignmentOffset)return{};const j=pa(o),P=zn(f),z=pa(f)===f,R=await(h.isRTL==null?void 0:h.isRTL(p.floating)),Y=b||(z||!w?[$c(f)]:Fw(f)),X=Q!=="none";!b&&X&&Y.push(...tk(f,w,Q,R));const C=[f,...Y],T=await h.detectOverflow(n,k),I=[];let Z=((r=d.flip)==null?void 0:r.overflows)||[];if(g&&I.push(T[j]),x){const V=Iw(o,u,R);I.push(T[V[0]],T[V[1]])}if(Z=[...Z,{placement:o,overflows:I}],!I.every(V=>V<=0)){var K,F;const V=(((K=d.flip)==null?void 0:K.index)||0)+1,M=C[V];if(M&&(!(x==="alignment"?P!==zn(M):!1)||Z.every(ee=>zn(ee.placement)===P?ee.overflows[0]>0:!0)))return{data:{index:V,overflows:Z},reset:{placement:M}};let N=(F=Z.filter(U=>U.overflows[0]<=0).sort((U,ee)=>U.overflows[1]-ee.overflows[1])[0])==null?void 0:F.placement;if(!N)switch(y){case"bestFit":{var G;const U=(G=Z.filter(ee=>{if(X){const de=zn(ee.placement);return de===P||de==="y"}return!0}).map(ee=>[ee.placement,ee.overflows.filter(de=>de>0).reduce((de,se)=>de+se,0)]).sort((ee,de)=>ee[1]-de[1])[0])==null?void 0:G[0];U&&(N=U);break}case"initialPlacement":N=f;break}if(o!==N)return{reset:{placement:N}}}return{}}}};function a1(e,n){return{top:e.top-n.height,right:e.right-n.width,bottom:e.bottom-n.height,left:e.left-n.width}}function s1(e){return Bw.some(n=>e[n]>=0)}const ok=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(n){const{rects:l,platform:r}=n,{strategy:o="referenceHidden",...d}=ma(e,n);switch(o){case"referenceHidden":{const u=await r.detectOverflow(n,{...d,elementContext:"reference"}),f=a1(u,l.reference);return{data:{referenceHiddenOffsets:f,referenceHidden:s1(f)}}}case"escaped":{const u=await r.detectOverflow(n,{...d,altBoundary:!0}),f=a1(u,l.floating);return{data:{escapedOffsets:f,escaped:s1(f)}}}default:return{}}}}},ab=new Set(["left","top"]);async function ck(e,n){const{placement:l,platform:r,elements:o}=e,d=await(r.isRTL==null?void 0:r.isRTL(o.floating)),u=pa(l),f=ar(l),h=zn(l)==="y",p=ab.has(u)?-1:1,g=d&&h?-1:1,x=ma(n,e);let{mainAxis:b,crossAxis:y,alignmentAxis:Q}=typeof x=="number"?{mainAxis:x,crossAxis:0,alignmentAxis:null}:{mainAxis:x.mainAxis||0,crossAxis:x.crossAxis||0,alignmentAxis:x.alignmentAxis};return f&&typeof Q=="number"&&(y=f==="end"?Q*-1:Q),h?{x:y*g,y:b*p}:{x:b*p,y:y*g}}const dk=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(n){var l,r;const{x:o,y:d,placement:u,middlewareData:f}=n,h=await ck(n,e);return u===((l=f.offset)==null?void 0:l.placement)&&(r=f.arrow)!=null&&r.alignmentOffset?{}:{x:o+h.x,y:d+h.y,data:{...h,placement:u}}}}},uk=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(n){const{x:l,y:r,placement:o,platform:d}=n,{mainAxis:u=!0,crossAxis:f=!1,limiter:h={fn:j=>{let{x:P,y:z}=j;return{x:P,y:z}}},...p}=ma(e,n),g={x:l,y:r},x=await d.detectOverflow(n,p),b=zn(pa(o)),y=FO(b);let Q=g[y],w=g[b];if(u){const j=y==="y"?"top":"left",P=y==="y"?"bottom":"right",z=Q+x[j],R=Q-x[P];Q=QO(z,Q,R)}if(f){const j=b==="y"?"top":"left",P=b==="y"?"bottom":"right",z=w+x[j],R=w-x[P];w=QO(z,w,R)}const k=h.fn({...n,[y]:Q,[b]:w});return{...k,data:{x:k.x-l,y:k.y-r,enabled:{[y]:u,[b]:f}}}}}},fk=function(e){return e===void 0&&(e={}),{options:e,fn(n){const{x:l,y:r,placement:o,rects:d,middlewareData:u}=n,{offset:f=0,mainAxis:h=!0,crossAxis:p=!0}=ma(e,n),g={x:l,y:r},x=zn(o),b=FO(x);let y=g[b],Q=g[x];const w=ma(f,n),k=typeof w=="number"?{mainAxis:w,crossAxis:0}:{mainAxis:0,crossAxis:0,...w};if(h){const z=b==="y"?"height":"width",R=d.reference[b]-d.floating[z]+k.mainAxis,Y=d.reference[b]+d.reference[z]-k.mainAxis;y<R?y=R:y>Y&&(y=Y)}if(p){var j,P;const z=b==="y"?"width":"height",R=ab.has(pa(o)),Y=d.reference[x]-d.floating[z]+(R&&((j=u.offset)==null?void 0:j[x])||0)+(R?0:k.crossAxis),X=d.reference[x]+d.reference[z]+(R?0:((P=u.offset)==null?void 0:P[x])||0)-(R?k.crossAxis:0);Q<Y?Q=Y:Q>X&&(Q=X)}return{[b]:y,[x]:Q}}}},Ok=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(n){var l,r;const{placement:o,rects:d,platform:u,elements:f}=n,{apply:h=()=>{},...p}=ma(e,n),g=await u.detectOverflow(n,p),x=pa(o),b=ar(o),y=zn(o)==="y",{width:Q,height:w}=d.floating;let k,j;x==="top"||x==="bottom"?(k=x,j=b===(await(u.isRTL==null?void 0:u.isRTL(f.floating))?"start":"end")?"left":"right"):(j=x,k=b==="end"?"top":"bottom");const P=w-g.top-g.bottom,z=Q-g.left-g.right,R=as(w-g[k],P),Y=as(Q-g[j],z),X=!n.middlewareData.shift;let C=R,T=Y;if((l=n.middlewareData.shift)!=null&&l.enabled.x&&(T=z),(r=n.middlewareData.shift)!=null&&r.enabled.y&&(C=P),X&&!b){const Z=It(g.left,0),K=It(g.right,0),F=It(g.top,0),G=It(g.bottom,0);y?T=Q-2*(Z!==0||K!==0?Z+K:It(g.left,g.right)):C=w-2*(F!==0||G!==0?F+G:It(g.top,g.bottom))}await h({...n,availableWidth:T,availableHeight:C});const I=await u.getDimensions(f.floating);return Q!==I.width||w!==I.height?{reset:{rects:!0}}:{}}}};function Fc(){return typeof window<"u"}function sr(e){return sb(e)?(e.nodeName||"").toLowerCase():"#document"}function Ft(e){var n;return(e==null||(n=e.ownerDocument)==null?void 0:n.defaultView)||window}function Xn(e){var n;return(n=(sb(e)?e.ownerDocument:e.document)||window.document)==null?void 0:n.documentElement}function sb(e){return Fc()?e instanceof Node||e instanceof Ft(e).Node:!1}function bn(e){return Fc()?e instanceof Element||e instanceof Ft(e).Element:!1}function ga(e){return Fc()?e instanceof HTMLElement||e instanceof Ft(e).HTMLElement:!1}function l1(e){return!Fc()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Ft(e).ShadowRoot}function Qi(e){const{overflow:n,overflowX:l,overflowY:r,display:o}=vn(e);return/auto|scroll|overlay|hidden|clip/.test(n+r+l)&&o!=="inline"&&o!=="contents"}function hk(e){return/^(table|td|th)$/.test(sr(e))}function Kc(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const mk=/transform|translate|scale|rotate|perspective|filter/,pk=/paint|layout|strict|content/,Ps=e=>!!e&&e!=="none";let Rf;function eh(e){const n=bn(e)?vn(e):e;return Ps(n.transform)||Ps(n.translate)||Ps(n.scale)||Ps(n.rotate)||Ps(n.perspective)||!th()&&(Ps(n.backdropFilter)||Ps(n.filter))||mk.test(n.willChange||"")||pk.test(n.contain||"")}function xk(e){let n=ss(e);for(;ga(n)&&!Wl(n);){if(eh(n))return n;if(Kc(n))return null;n=ss(n)}return null}function th(){return Rf==null&&(Rf=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Rf}function Wl(e){return/^(html|body|#document)$/.test(sr(e))}function vn(e){return Ft(e).getComputedStyle(e)}function Jc(e){return bn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ss(e){if(sr(e)==="html")return e;const n=e.assignedSlot||e.parentNode||l1(e)&&e.host||Xn(e);return l1(n)?n.host:n}function lb(e){const n=ss(e);return Wl(n)?e.ownerDocument?e.ownerDocument.body:e.body:ga(n)&&Qi(n)?n:lb(n)}function ci(e,n,l){var r;n===void 0&&(n=[]),l===void 0&&(l=!0);const o=lb(e),d=o===((r=e.ownerDocument)==null?void 0:r.body),u=Ft(o);if(d){const f=wO(u);return n.concat(u,u.visualViewport||[],Qi(o)?o:[],f&&l?ci(f):[])}else return n.concat(o,ci(o,[],l))}function wO(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function rb(e){const n=vn(e);let l=parseFloat(n.width)||0,r=parseFloat(n.height)||0;const o=ga(e),d=o?e.offsetWidth:l,u=o?e.offsetHeight:r,f=kc(l)!==d||kc(r)!==u;return f&&(l=d,r=u),{width:l,height:r,$:f}}function nh(e){return bn(e)?e:e.contextElement}function Ul(e){const n=nh(e);if(!ga(n))return Cn(1);const l=n.getBoundingClientRect(),{width:r,height:o,$:d}=rb(n);let u=(d?kc(l.width):l.width)/r,f=(d?kc(l.height):l.height)/o;return(!u||!Number.isFinite(u))&&(u=1),(!f||!Number.isFinite(f))&&(f=1),{x:u,y:f}}const gk=Cn(0);function ib(e){const n=Ft(e);return!th()||!n.visualViewport?gk:{x:n.visualViewport.offsetLeft,y:n.visualViewport.offsetTop}}function bk(e,n,l){return n===void 0&&(n=!1),!l||n&&l!==Ft(e)?!1:n}function Es(e,n,l,r){n===void 0&&(n=!1),l===void 0&&(l=!1);const o=e.getBoundingClientRect(),d=nh(e);let u=Cn(1);n&&(r?bn(r)&&(u=Ul(r)):u=Ul(e));const f=bk(d,l,r)?ib(d):Cn(0);let h=(o.left+f.x)/u.x,p=(o.top+f.y)/u.y,g=o.width/u.x,x=o.height/u.y;if(d){const b=Ft(d),y=r&&bn(r)?Ft(r):r;let Q=b,w=wO(Q);for(;w&&r&&y!==Q;){const k=Ul(w),j=w.getBoundingClientRect(),P=vn(w),z=j.left+(w.clientLeft+parseFloat(P.paddingLeft))*k.x,R=j.top+(w.clientTop+parseFloat(P.paddingTop))*k.y;h*=k.x,p*=k.y,g*=k.x,x*=k.y,h+=z,p+=R,Q=Ft(w),w=wO(Q)}}return Tc({width:g,height:x,x:h,y:p})}function ed(e,n){const l=Jc(e).scrollLeft;return n?n.left+l:Es(Xn(e)).left+l}function ob(e,n){const l=e.getBoundingClientRect(),r=l.left+n.scrollLeft-ed(e,l),o=l.top+n.scrollTop;return{x:r,y:o}}function vk(e){let{elements:n,rect:l,offsetParent:r,strategy:o}=e;const d=o==="fixed",u=Xn(r),f=n?Kc(n.floating):!1;if(r===u||f&&d)return l;let h={scrollLeft:0,scrollTop:0},p=Cn(1);const g=Cn(0),x=ga(r);if((x||!x&&!d)&&((sr(r)!=="body"||Qi(u))&&(h=Jc(r)),x)){const y=Es(r);p=Ul(r),g.x=y.x+r.clientLeft,g.y=y.y+r.clientTop}const b=u&&!x&&!d?ob(u,h):Cn(0);return{width:l.width*p.x,height:l.height*p.y,x:l.x*p.x-h.scrollLeft*p.x+g.x+b.x,y:l.y*p.y-h.scrollTop*p.y+g.y+b.y}}function yk(e){return Array.from(e.getClientRects())}function Sk(e){const n=Xn(e),l=Jc(e),r=e.ownerDocument.body,o=It(n.scrollWidth,n.clientWidth,r.scrollWidth,r.clientWidth),d=It(n.scrollHeight,n.clientHeight,r.scrollHeight,r.clientHeight);let u=-l.scrollLeft+ed(e);const f=-l.scrollTop;return vn(r).direction==="rtl"&&(u+=It(n.clientWidth,r.clientWidth)-o),{width:o,height:d,x:u,y:f}}const r1=25;function Qk(e,n){const l=Ft(e),r=Xn(e),o=l.visualViewport;let d=r.clientWidth,u=r.clientHeight,f=0,h=0;if(o){d=o.width,u=o.height;const g=th();(!g||g&&n==="fixed")&&(f=o.offsetLeft,h=o.offsetTop)}const p=ed(r);if(p<=0){const g=r.ownerDocument,x=g.body,b=getComputedStyle(x),y=g.compatMode==="CSS1Compat"&&parseFloat(b.marginLeft)+parseFloat(b.marginRight)||0,Q=Math.abs(r.clientWidth-x.clientWidth-y);Q<=r1&&(d-=Q)}else p<=r1&&(d+=p);return{width:d,height:u,x:f,y:h}}function jk(e,n){const l=Es(e,!0,n==="fixed"),r=l.top+e.clientTop,o=l.left+e.clientLeft,d=ga(e)?Ul(e):Cn(1),u=e.clientWidth*d.x,f=e.clientHeight*d.y,h=o*d.x,p=r*d.y;return{width:u,height:f,x:h,y:p}}function i1(e,n,l){let r;if(n==="viewport")r=Qk(e,l);else if(n==="document")r=Sk(Xn(e));else if(bn(n))r=jk(n,l);else{const o=ib(e);r={x:n.x-o.x,y:n.y-o.y,width:n.width,height:n.height}}return Tc(r)}function cb(e,n){const l=ss(e);return l===n||!bn(l)||Wl(l)?!1:vn(l).position==="fixed"||cb(l,n)}function wk(e,n){const l=n.get(e);if(l)return l;let r=ci(e,[],!1).filter(f=>bn(f)&&sr(f)!=="body"),o=null;const d=vn(e).position==="fixed";let u=d?ss(e):e;for(;bn(u)&&!Wl(u);){const f=vn(u),h=eh(u);!h&&f.position==="fixed"&&(o=null),(d?!h&&!o:!h&&f.position==="static"&&!!o&&(o.position==="absolute"||o.position==="fixed")||Qi(u)&&!h&&cb(e,u))?r=r.filter(g=>g!==u):o=f,u=ss(u)}return n.set(e,r),r}function kk(e){let{element:n,boundary:l,rootBoundary:r,strategy:o}=e;const u=[...l==="clippingAncestors"?Kc(n)?[]:wk(n,this._c):[].concat(l),r],f=i1(n,u[0],o);let h=f.top,p=f.right,g=f.bottom,x=f.left;for(let b=1;b<u.length;b++){const y=i1(n,u[b],o);h=It(y.top,h),p=as(y.right,p),g=as(y.bottom,g),x=It(y.left,x)}return{width:p-x,height:g-h,x,y:h}}function $k(e){const{width:n,height:l}=rb(e);return{width:n,height:l}}function Tk(e,n,l){const r=ga(n),o=Xn(n),d=l==="fixed",u=Es(e,!0,d,n);let f={scrollLeft:0,scrollTop:0};const h=Cn(0);function p(){h.x=ed(o)}if(r||!r&&!d)if((sr(n)!=="body"||Qi(o))&&(f=Jc(n)),r){const y=Es(n,!0,d,n);h.x=y.x+n.clientLeft,h.y=y.y+n.clientTop}else o&&p();d&&!r&&o&&p();const g=o&&!r&&!d?ob(o,f):Cn(0),x=u.left+f.scrollLeft-h.x-g.x,b=u.top+f.scrollTop-h.y-g.y;return{x,y:b,width:u.width,height:u.height}}function _f(e){return vn(e).position==="static"}function o1(e,n){if(!ga(e)||vn(e).position==="fixed")return null;if(n)return n(e);let l=e.offsetParent;return Xn(e)===l&&(l=l.ownerDocument.body),l}function db(e,n){const l=Ft(e);if(Kc(e))return l;if(!ga(e)){let o=ss(e);for(;o&&!Wl(o);){if(bn(o)&&!_f(o))return o;o=ss(o)}return l}let r=o1(e,n);for(;r&&hk(r)&&_f(r);)r=o1(r,n);return r&&Wl(r)&&_f(r)&&!eh(r)?l:r||xk(e)||l}const Nk=async function(e){const n=this.getOffsetParent||db,l=this.getDimensions,r=await l(e.floating);return{reference:Tk(e.reference,await n(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Pk(e){return vn(e).direction==="rtl"}const zk={convertOffsetParentRelativeRectToViewportRelativeRect:vk,getDocumentElement:Xn,getClippingRect:kk,getOffsetParent:db,getElementRects:Nk,getClientRects:yk,getDimensions:$k,getScale:Ul,isElement:bn,isRTL:Pk};function ub(e,n){return e.x===n.x&&e.y===n.y&&e.width===n.width&&e.height===n.height}function Ck(e,n){let l=null,r;const o=Xn(e);function d(){var f;clearTimeout(r),(f=l)==null||f.disconnect(),l=null}function u(f,h){f===void 0&&(f=!1),h===void 0&&(h=1),d();const p=e.getBoundingClientRect(),{left:g,top:x,width:b,height:y}=p;if(f||n(),!b||!y)return;const Q=Fo(x),w=Fo(o.clientWidth-(g+b)),k=Fo(o.clientHeight-(x+y)),j=Fo(g),z={rootMargin:-Q+"px "+-w+"px "+-k+"px "+-j+"px",threshold:It(0,as(1,h))||1};let R=!0;function Y(X){const C=X[0].intersectionRatio;if(C!==h){if(!R)return u();C?u(!1,C):r=setTimeout(()=>{u(!1,1e-7)},1e3)}C===1&&!ub(p,e.getBoundingClientRect())&&u(),R=!1}try{l=new IntersectionObserver(Y,{...z,root:o.ownerDocument})}catch{l=new IntersectionObserver(Y,z)}l.observe(e)}return u(!0),d}function Rk(e,n,l,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:d=!0,elementResize:u=typeof ResizeObserver=="function",layoutShift:f=typeof IntersectionObserver=="function",animationFrame:h=!1}=r,p=nh(e),g=o||d?[...p?ci(p):[],...n?ci(n):[]]:[];g.forEach(j=>{o&&j.addEventListener("scroll",l,{passive:!0}),d&&j.addEventListener("resize",l)});const x=p&&f?Ck(p,l):null;let b=-1,y=null;u&&(y=new ResizeObserver(j=>{let[P]=j;P&&P.target===p&&y&&n&&(y.unobserve(n),cancelAnimationFrame(b),b=requestAnimationFrame(()=>{var z;(z=y)==null||z.observe(n)})),l()}),p&&!h&&y.observe(p),n&&y.observe(n));let Q,w=h?Es(e):null;h&&k();function k(){const j=Es(e);w&&!ub(w,j)&&l(),w=j,Q=requestAnimationFrame(k)}return l(),()=>{var j;g.forEach(P=>{o&&P.removeEventListener("scroll",l),d&&P.removeEventListener("resize",l)}),x==null||x(),(j=y)==null||j.disconnect(),y=null,h&&cancelAnimationFrame(Q)}}const _k=dk,Ak=uk,Xk=ik,Zk=Ok,Ek=ok,c1=rk,qk=fk,Mk=(e,n,l)=>{const r=new Map,o={platform:zk,...l},d={...o.platform,_c:r};return lk(e,n,{...o,platform:d})};var Yk=typeof document<"u",Uk=function(){},xc=Yk?v.useLayoutEffect:Uk;function Nc(e,n){if(e===n)return!0;if(typeof e!=typeof n)return!1;if(typeof e=="function"&&e.toString()===n.toString())return!0;let l,r,o;if(e&&n&&typeof e=="object"){if(Array.isArray(e)){if(l=e.length,l!==n.length)return!1;for(r=l;r--!==0;)if(!Nc(e[r],n[r]))return!1;return!0}if(o=Object.keys(e),l=o.length,l!==Object.keys(n).length)return!1;for(r=l;r--!==0;)if(!{}.hasOwnProperty.call(n,o[r]))return!1;for(r=l;r--!==0;){const d=o[r];if(!(d==="_owner"&&e.$$typeof)&&!Nc(e[d],n[d]))return!1}return!0}return e!==e&&n!==n}function fb(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function d1(e,n){const l=fb(e);return Math.round(n*l)/l}function Af(e){const n=v.useRef(e);return xc(()=>{n.current=e}),n}function Vk(e){e===void 0&&(e={});const{placement:n="bottom",strategy:l="absolute",middleware:r=[],platform:o,elements:{reference:d,floating:u}={},transform:f=!0,whileElementsMounted:h,open:p}=e,[g,x]=v.useState({x:0,y:0,strategy:l,placement:n,middlewareData:{},isPositioned:!1}),[b,y]=v.useState(r);Nc(b,r)||y(r);const[Q,w]=v.useState(null),[k,j]=v.useState(null),P=v.useCallback(ee=>{ee!==X.current&&(X.current=ee,w(ee))},[]),z=v.useCallback(ee=>{ee!==C.current&&(C.current=ee,j(ee))},[]),R=d||Q,Y=u||k,X=v.useRef(null),C=v.useRef(null),T=v.useRef(g),I=h!=null,Z=Af(h),K=Af(o),F=Af(p),G=v.useCallback(()=>{if(!X.current||!C.current)return;const ee={placement:n,strategy:l,middleware:b};K.current&&(ee.platform=K.current),Mk(X.current,C.current,ee).then(de=>{const se={...de,isPositioned:F.current!==!1};V.current&&!Nc(T.current,se)&&(T.current=se,G0.flushSync(()=>{x(se)}))})},[b,n,l,K,F]);xc(()=>{p===!1&&T.current.isPositioned&&(T.current.isPositioned=!1,x(ee=>({...ee,isPositioned:!1})))},[p]);const V=v.useRef(!1);xc(()=>(V.current=!0,()=>{V.current=!1}),[]),xc(()=>{if(R&&(X.current=R),Y&&(C.current=Y),R&&Y){if(Z.current)return Z.current(R,Y,G);G()}},[R,Y,G,Z,I]);const M=v.useMemo(()=>({reference:X,floating:C,setReference:P,setFloating:z}),[P,z]),N=v.useMemo(()=>({reference:R,floating:Y}),[R,Y]),U=v.useMemo(()=>{const ee={position:l,left:0,top:0};if(!N.floating)return ee;const de=d1(N.floating,g.x),se=d1(N.floating,g.y);return f?{...ee,transform:"translate("+de+"px, "+se+"px)",...fb(N.floating)>=1.5&&{willChange:"transform"}}:{position:l,left:de,top:se}},[l,f,N.floating,g.x,g.y]);return v.useMemo(()=>({...g,update:G,refs:M,elements:N,floatingStyles:U}),[g,G,M,N,U])}const Gk=e=>{function n(l){return{}.hasOwnProperty.call(l,"current")}return{name:"arrow",options:e,fn(l){const{element:r,padding:o}=typeof e=="function"?e(l):e;return r&&n(r)?r.current!=null?c1({element:r.current,padding:o}).fn(l):{}:r?c1({element:r,padding:o}).fn(l):{}}}},Dk=(e,n)=>{const l=_k(e);return{name:l.name,fn:l.fn,options:[e,n]}},Lk=(e,n)=>{const l=Ak(e);return{name:l.name,fn:l.fn,options:[e,n]}},Wk=(e,n)=>({fn:qk(e).fn,options:[e,n]}),Bk=(e,n)=>{const l=Xk(e);return{name:l.name,fn:l.fn,options:[e,n]}},Hk=(e,n)=>{const l=Zk(e);return{name:l.name,fn:l.fn,options:[e,n]}},Ik=(e,n)=>{const l=Ek(e);return{name:l.name,fn:l.fn,options:[e,n]}},Fk=(e,n)=>{const l=Gk(e);return{name:l.name,fn:l.fn,options:[e,n]}};var Kk="Arrow",Ob=v.forwardRef((e,n)=>{const{children:l,width:r=10,height:o=5,...d}=e;return s.jsx(Je.svg,{...d,ref:n,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?l:s.jsx("polygon",{points:"0,0 30,0 15,10"})})});Ob.displayName=Kk;var Jk=Ob;function e5(e){const[n,l]=v.useState(void 0);return ha(()=>{if(e){l({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const d=o[0];let u,f;if("borderBoxSize"in d){const h=d.borderBoxSize,p=Array.isArray(h)?h[0]:h;u=p.inlineSize,f=p.blockSize}else u=e.offsetWidth,f=e.offsetHeight;l({width:u,height:f})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else l(void 0)},[e]),n}var ah="Popper",[hb,mb]=Ls(ah),[t5,pb]=hb(ah),xb=e=>{const{__scopePopper:n,children:l}=e,[r,o]=v.useState(null);return s.jsx(t5,{scope:n,anchor:r,onAnchorChange:o,children:l})};xb.displayName=ah;var gb="PopperAnchor",bb=v.forwardRef((e,n)=>{const{__scopePopper:l,virtualRef:r,...o}=e,d=pb(gb,l),u=v.useRef(null),f=dt(n,u),h=v.useRef(null);return v.useEffect(()=>{const p=h.current;h.current=(r==null?void 0:r.current)||u.current,p!==h.current&&d.onAnchorChange(h.current)}),r?null:s.jsx(Je.div,{...o,ref:f})});bb.displayName=gb;var sh="PopperContent",[n5,a5]=hb(sh),vb=v.forwardRef((e,n)=>{var Se,ne,fe,Ne,ke,De;const{__scopePopper:l,side:r="bottom",sideOffset:o=0,align:d="center",alignOffset:u=0,arrowPadding:f=0,avoidCollisions:h=!0,collisionBoundary:p=[],collisionPadding:g=0,sticky:x="partial",hideWhenDetached:b=!1,updatePositionStrategy:y="optimized",onPlaced:Q,...w}=e,k=pb(sh,l),[j,P]=v.useState(null),z=dt(n,xt=>P(xt)),[R,Y]=v.useState(null),X=e5(R),C=(X==null?void 0:X.width)??0,T=(X==null?void 0:X.height)??0,I=r+(d!=="center"?"-"+d:""),Z=typeof g=="number"?g:{top:0,right:0,bottom:0,left:0,...g},K=Array.isArray(p)?p:[p],F=K.length>0,G={padding:Z,boundary:K.filter(l5),altBoundary:F},{refs:V,floatingStyles:M,placement:N,isPositioned:U,middlewareData:ee}=Vk({strategy:"fixed",placement:I,whileElementsMounted:(...xt)=>Rk(...xt,{animationFrame:y==="always"}),elements:{reference:k.anchor},middleware:[Dk({mainAxis:o+T,alignmentAxis:u}),h&&Lk({mainAxis:!0,crossAxis:!1,limiter:x==="partial"?Wk():void 0,...G}),h&&Bk({...G}),Hk({...G,apply:({elements:xt,rects:ut,availableWidth:lr,availableHeight:rr})=>{const{width:hd,height:Ci}=ut.reference,ba=xt.floating.style;ba.setProperty("--radix-popper-available-width",`${lr}px`),ba.setProperty("--radix-popper-available-height",`${rr}px`),ba.setProperty("--radix-popper-anchor-width",`${hd}px`),ba.setProperty("--radix-popper-anchor-height",`${Ci}px`)}}),R&&Fk({element:R,padding:f}),r5({arrowWidth:C,arrowHeight:T}),b&&Ik({strategy:"referenceHidden",...G})]}),[de,se]=Qb(N),we=At(Q);ha(()=>{U&&(we==null||we())},[U,we]);const Qe=(Se=ee.arrow)==null?void 0:Se.x,me=(ne=ee.arrow)==null?void 0:ne.y,be=((fe=ee.arrow)==null?void 0:fe.centerOffset)!==0,[ze,W]=v.useState();return ha(()=>{j&&W(window.getComputedStyle(j).zIndex)},[j]),s.jsx("div",{ref:V.setFloating,"data-radix-popper-content-wrapper":"",style:{...M,transform:U?M.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ze,"--radix-popper-transform-origin":[(Ne=ee.transformOrigin)==null?void 0:Ne.x,(ke=ee.transformOrigin)==null?void 0:ke.y].join(" "),...((De=ee.hide)==null?void 0:De.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:s.jsx(n5,{scope:l,placedSide:de,onArrowChange:Y,arrowX:Qe,arrowY:me,shouldHideArrow:be,children:s.jsx(Je.div,{"data-side":de,"data-align":se,...w,ref:z,style:{...w.style,animation:U?void 0:"none"}})})})});vb.displayName=sh;var yb="PopperArrow",s5={top:"bottom",right:"left",bottom:"top",left:"right"},Sb=v.forwardRef(function(n,l){const{__scopePopper:r,...o}=n,d=a5(yb,r),u=s5[d.placedSide];return s.jsx("span",{ref:d.onArrowChange,style:{position:"absolute",left:d.arrowX,top:d.arrowY,[u]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[d.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[d.placedSide],visibility:d.shouldHideArrow?"hidden":void 0},children:s.jsx(Jk,{...o,ref:l,style:{...o.style,display:"block"}})})});Sb.displayName=yb;function l5(e){return e!==null}var r5=e=>({name:"transformOrigin",options:e,fn(n){var k,j,P;const{placement:l,rects:r,middlewareData:o}=n,u=((k=o.arrow)==null?void 0:k.centerOffset)!==0,f=u?0:e.arrowWidth,h=u?0:e.arrowHeight,[p,g]=Qb(l),x={start:"0%",center:"50%",end:"100%"}[g],b=(((j=o.arrow)==null?void 0:j.x)??0)+f/2,y=(((P=o.arrow)==null?void 0:P.y)??0)+h/2;let Q="",w="";return p==="bottom"?(Q=u?x:`${b}px`,w=`${-h}px`):p==="top"?(Q=u?x:`${b}px`,w=`${r.floating.height+h}px`):p==="right"?(Q=`${-h}px`,w=u?x:`${y}px`):p==="left"&&(Q=`${r.floating.width+h}px`,w=u?x:`${y}px`),{data:{x:Q,y:w}}}});function Qb(e){const[n,l="center"]=e.split("-");return[n,l]}var i5=xb,o5=bb,c5=vb,d5=Sb,u5="Portal",lh=v.forwardRef((e,n)=>{var f;const{container:l,...r}=e,[o,d]=v.useState(!1);ha(()=>d(!0),[]);const u=l||o&&((f=globalThis==null?void 0:globalThis.document)==null?void 0:f.body);return u?Mj.createPortal(s.jsx(Je.div,{...r,ref:n}),u):null});lh.displayName=u5;function f5(e,n){return v.useReducer((l,r)=>n[l][r]??l,e)}var Sn=e=>{const{present:n,children:l}=e,r=O5(n),o=typeof l=="function"?l({present:r.isPresent}):v.Children.only(l),d=dt(r.ref,h5(o));return typeof l=="function"||r.isPresent?v.cloneElement(o,{ref:d}):null};Sn.displayName="Presence";function O5(e){const[n,l]=v.useState(),r=v.useRef(null),o=v.useRef(e),d=v.useRef("none"),u=e?"mounted":"unmounted",[f,h]=f5(u,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return v.useEffect(()=>{const p=Ko(r.current);d.current=f==="mounted"?p:"none"},[f]),ha(()=>{const p=r.current,g=o.current;if(g!==e){const b=d.current,y=Ko(p);e?h("MOUNT"):y==="none"||(p==null?void 0:p.display)==="none"?h("UNMOUNT"):h(g&&b!==y?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,h]),ha(()=>{if(n){let p;const g=n.ownerDocument.defaultView??window,x=y=>{const w=Ko(r.current).includes(CSS.escape(y.animationName));if(y.target===n&&w&&(h("ANIMATION_END"),!o.current)){const k=n.style.animationFillMode;n.style.animationFillMode="forwards",p=g.setTimeout(()=>{n.style.animationFillMode==="forwards"&&(n.style.animationFillMode=k)})}},b=y=>{y.target===n&&(d.current=Ko(r.current))};return n.addEventListener("animationstart",b),n.addEventListener("animationcancel",x),n.addEventListener("animationend",x),()=>{g.clearTimeout(p),n.removeEventListener("animationstart",b),n.removeEventListener("animationcancel",x),n.removeEventListener("animationend",x)}}else h("ANIMATION_END")},[n,h]),{isPresent:["mounted","unmountSuspended"].includes(f),ref:v.useCallback(p=>{r.current=p?getComputedStyle(p):null,l(p)},[])}}function Ko(e){return(e==null?void 0:e.animationName)||"none"}function h5(e){var r,o;let n=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,l=n&&"isReactWarning"in n&&n.isReactWarning;return l?e.ref:(n=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,l=n&&"isReactWarning"in n&&n.isReactWarning,l?e.props.ref:e.props.ref||e.ref)}var m5=V0[" useInsertionEffect ".trim().toString()]||ha;function td({prop:e,defaultProp:n,onChange:l=()=>{},caller:r}){const[o,d,u]=p5({defaultProp:n,onChange:l}),f=e!==void 0,h=f?e:o;{const g=v.useRef(e!==void 0);v.useEffect(()=>{const x=g.current;x!==f&&console.warn(`${r} is changing from ${x?"controlled":"uncontrolled"} to ${f?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),g.current=f},[f,r])}const p=v.useCallback(g=>{var x;if(f){const b=x5(g)?g(e):g;b!==e&&((x=u.current)==null||x.call(u,b))}else d(g)},[f,e,d,u]);return[h,p]}function p5({defaultProp:e,onChange:n}){const[l,r]=v.useState(e),o=v.useRef(l),d=v.useRef(n);return m5(()=>{d.current=n},[n]),v.useEffect(()=>{var u;o.current!==l&&((u=d.current)==null||u.call(d,l),o.current=l)},[l,o]),[l,r,d]}function x5(e){return typeof e=="function"}var g5=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),b5="VisuallyHidden",jb=v.forwardRef((e,n)=>s.jsx(Je.span,{...e,ref:n,style:{...g5,...e.style}}));jb.displayName=b5;var v5=jb,[nd]=Ls("Tooltip",[mb]),ad=mb(),wb="TooltipProvider",y5=700,kO="tooltip.open",[S5,rh]=nd(wb),kb=e=>{const{__scopeTooltip:n,delayDuration:l=y5,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:d}=e,u=v.useRef(!0),f=v.useRef(!1),h=v.useRef(0);return v.useEffect(()=>{const p=h.current;return()=>window.clearTimeout(p)},[]),s.jsx(S5,{scope:n,isOpenDelayedRef:u,delayDuration:l,onOpen:v.useCallback(()=>{window.clearTimeout(h.current),u.current=!1},[]),onClose:v.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>u.current=!0,r)},[r]),isPointerInTransitRef:f,onPointerInTransitChange:v.useCallback(p=>{f.current=p},[]),disableHoverableContent:o,children:d})};kb.displayName=wb;var di="Tooltip",[Q5,ji]=nd(di),$b=e=>{const{__scopeTooltip:n,children:l,open:r,defaultOpen:o,onOpenChange:d,disableHoverableContent:u,delayDuration:f}=e,h=rh(di,e.__scopeTooltip),p=ad(n),[g,x]=v.useState(null),b=Yl(),y=v.useRef(0),Q=u??h.disableHoverableContent,w=f??h.delayDuration,k=v.useRef(!1),[j,P]=td({prop:r,defaultProp:o??!1,onChange:C=>{C?(h.onOpen(),document.dispatchEvent(new CustomEvent(kO))):h.onClose(),d==null||d(C)},caller:di}),z=v.useMemo(()=>j?k.current?"delayed-open":"instant-open":"closed",[j]),R=v.useCallback(()=>{window.clearTimeout(y.current),y.current=0,k.current=!1,P(!0)},[P]),Y=v.useCallback(()=>{window.clearTimeout(y.current),y.current=0,P(!1)},[P]),X=v.useCallback(()=>{window.clearTimeout(y.current),y.current=window.setTimeout(()=>{k.current=!0,P(!0),y.current=0},w)},[w,P]);return v.useEffect(()=>()=>{y.current&&(window.clearTimeout(y.current),y.current=0)},[]),s.jsx(i5,{...p,children:s.jsx(Q5,{scope:n,contentId:b,open:j,stateAttribute:z,trigger:g,onTriggerChange:x,onTriggerEnter:v.useCallback(()=>{h.isOpenDelayedRef.current?X():R()},[h.isOpenDelayedRef,X,R]),onTriggerLeave:v.useCallback(()=>{Q?Y():(window.clearTimeout(y.current),y.current=0)},[Y,Q]),onOpen:R,onClose:Y,disableHoverableContent:Q,children:l})})};$b.displayName=di;var $O="TooltipTrigger",Tb=v.forwardRef((e,n)=>{const{__scopeTooltip:l,...r}=e,o=ji($O,l),d=rh($O,l),u=ad(l),f=v.useRef(null),h=dt(n,f,o.onTriggerChange),p=v.useRef(!1),g=v.useRef(!1),x=v.useCallback(()=>p.current=!1,[]);return v.useEffect(()=>()=>document.removeEventListener("pointerup",x),[x]),s.jsx(o5,{asChild:!0,...u,children:s.jsx(Je.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:h,onPointerMove:Ue(e.onPointerMove,b=>{b.pointerType!=="touch"&&!g.current&&!d.isPointerInTransitRef.current&&(o.onTriggerEnter(),g.current=!0)}),onPointerLeave:Ue(e.onPointerLeave,()=>{o.onTriggerLeave(),g.current=!1}),onPointerDown:Ue(e.onPointerDown,()=>{o.open&&o.onClose(),p.current=!0,document.addEventListener("pointerup",x,{once:!0})}),onFocus:Ue(e.onFocus,()=>{p.current||o.onOpen()}),onBlur:Ue(e.onBlur,o.onClose),onClick:Ue(e.onClick,o.onClose)})})});Tb.displayName=$O;var ih="TooltipPortal",[j5,w5]=nd(ih,{forceMount:void 0}),Nb=e=>{const{__scopeTooltip:n,forceMount:l,children:r,container:o}=e,d=ji(ih,n);return s.jsx(j5,{scope:n,forceMount:l,children:s.jsx(Sn,{present:l||d.open,children:s.jsx(lh,{asChild:!0,container:o,children:r})})})};Nb.displayName=ih;var Bl="TooltipContent",Pb=v.forwardRef((e,n)=>{const l=w5(Bl,e.__scopeTooltip),{forceMount:r=l.forceMount,side:o="top",...d}=e,u=ji(Bl,e.__scopeTooltip);return s.jsx(Sn,{present:r||u.open,children:u.disableHoverableContent?s.jsx(zb,{side:o,...d,ref:n}):s.jsx(k5,{side:o,...d,ref:n})})}),k5=v.forwardRef((e,n)=>{const l=ji(Bl,e.__scopeTooltip),r=rh(Bl,e.__scopeTooltip),o=v.useRef(null),d=dt(n,o),[u,f]=v.useState(null),{trigger:h,onClose:p}=l,g=o.current,{onPointerInTransitChange:x}=r,b=v.useCallback(()=>{f(null),x(!1)},[x]),y=v.useCallback((Q,w)=>{const k=Q.currentTarget,j={x:Q.clientX,y:Q.clientY},P=P5(j,k.getBoundingClientRect()),z=z5(j,P),R=C5(w.getBoundingClientRect()),Y=_5([...z,...R]);f(Y),x(!0)},[x]);return v.useEffect(()=>()=>b(),[b]),v.useEffect(()=>{if(h&&g){const Q=k=>y(k,g),w=k=>y(k,h);return h.addEventListener("pointerleave",Q),g.addEventListener("pointerleave",w),()=>{h.removeEventListener("pointerleave",Q),g.removeEventListener("pointerleave",w)}}},[h,g,y,b]),v.useEffect(()=>{if(u){const Q=w=>{const k=w.target,j={x:w.clientX,y:w.clientY},P=(h==null?void 0:h.contains(k))||(g==null?void 0:g.contains(k)),z=!R5(j,u);P?b():z&&(b(),p())};return document.addEventListener("pointermove",Q),()=>document.removeEventListener("pointermove",Q)}},[h,g,u,p,b]),s.jsx(zb,{...e,ref:d})}),[$5,T5]=nd(di,{isInside:!1}),N5=Cw("TooltipContent"),zb=v.forwardRef((e,n)=>{const{__scopeTooltip:l,children:r,"aria-label":o,onEscapeKeyDown:d,onPointerDownOutside:u,...f}=e,h=ji(Bl,l),p=ad(l),{onClose:g}=h;return v.useEffect(()=>(document.addEventListener(kO,g),()=>document.removeEventListener(kO,g)),[g]),v.useEffect(()=>{if(h.trigger){const x=b=>{const y=b.target;y!=null&&y.contains(h.trigger)&&g()};return window.addEventListener("scroll",x,{capture:!0}),()=>window.removeEventListener("scroll",x,{capture:!0})}},[h.trigger,g]),s.jsx(IO,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:d,onPointerDownOutside:u,onFocusOutside:x=>x.preventDefault(),onDismiss:g,children:s.jsxs(c5,{"data-state":h.stateAttribute,...p,...f,ref:n,style:{...f.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[s.jsx(N5,{children:r}),s.jsx($5,{scope:l,isInside:!0,children:s.jsx(v5,{id:h.contentId,role:"tooltip",children:o||r})})]})})});Pb.displayName=Bl;var Cb="TooltipArrow",Rb=v.forwardRef((e,n)=>{const{__scopeTooltip:l,...r}=e,o=ad(l);return T5(Cb,l).isInside?null:s.jsx(d5,{...o,...r,ref:n})});Rb.displayName=Cb;function P5(e,n){const l=Math.abs(n.top-e.y),r=Math.abs(n.bottom-e.y),o=Math.abs(n.right-e.x),d=Math.abs(n.left-e.x);switch(Math.min(l,r,o,d)){case d:return"left";case o:return"right";case l:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function z5(e,n,l=5){const r=[];switch(n){case"top":r.push({x:e.x-l,y:e.y+l},{x:e.x+l,y:e.y+l});break;case"bottom":r.push({x:e.x-l,y:e.y-l},{x:e.x+l,y:e.y-l});break;case"left":r.push({x:e.x+l,y:e.y-l},{x:e.x+l,y:e.y+l});break;case"right":r.push({x:e.x-l,y:e.y-l},{x:e.x-l,y:e.y+l});break}return r}function C5(e){const{top:n,right:l,bottom:r,left:o}=e;return[{x:o,y:n},{x:l,y:n},{x:l,y:r},{x:o,y:r}]}function R5(e,n){const{x:l,y:r}=e;let o=!1;for(let d=0,u=n.length-1;d<n.length;u=d++){const f=n[d],h=n[u],p=f.x,g=f.y,x=h.x,b=h.y;g>r!=b>r&&l<(x-p)*(r-g)/(b-g)+p&&(o=!o)}return o}function _5(e){const n=e.slice();return n.sort((l,r)=>l.x<r.x?-1:l.x>r.x?1:l.y<r.y?-1:l.y>r.y?1:0),A5(n)}function A5(e){if(e.length<=1)return e.slice();const n=[];for(let r=0;r<e.length;r++){const o=e[r];for(;n.length>=2;){const d=n[n.length-1],u=n[n.length-2];if((d.x-u.x)*(o.y-u.y)>=(d.y-u.y)*(o.x-u.x))n.pop();else break}n.push(o)}n.pop();const l=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;l.length>=2;){const d=l[l.length-1],u=l[l.length-2];if((d.x-u.x)*(o.y-u.y)>=(d.y-u.y)*(o.x-u.x))l.pop();else break}l.push(o)}return l.pop(),n.length===1&&l.length===1&&n[0].x===l[0].x&&n[0].y===l[0].y?n:n.concat(l)}var X5=kb,Z5=$b,E5=Tb,q5=Nb,M5=Pb,Y5=Rb;function _b(e){var n,l,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(n=0;n<o;n++)e[n]&&(l=_b(e[n]))&&(r&&(r+=" "),r+=l)}else for(l in e)e[l]&&(r&&(r+=" "),r+=l);return r}function U5(){for(var e,n,l=0,r="",o=arguments.length;l<o;l++)(e=arguments[l])&&(n=_b(e))&&(r&&(r+=" "),r+=n);return r}const V5=(e,n)=>{const l=new Array(e.length+n.length);for(let r=0;r<e.length;r++)l[r]=e[r];for(let r=0;r<n.length;r++)l[e.length+r]=n[r];return l},G5=(e,n)=>({classGroupId:e,validator:n}),Ab=(e=new Map,n=null,l)=>({nextPart:e,validators:n,classGroupId:l}),Pc="-",u1=[],D5="arbitrary..",L5=e=>{const n=B5(e),{conflictingClassGroups:l,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:u=>{if(u.startsWith("[")&&u.endsWith("]"))return W5(u);const f=u.split(Pc),h=f[0]===""&&f.length>1?1:0;return Xb(f,h,n)},getConflictingClassGroupIds:(u,f)=>{if(f){const h=r[u],p=l[u];return h?p?V5(p,h):h:p||u1}return l[u]||u1}}},Xb=(e,n,l)=>{if(e.length-n===0)return l.classGroupId;const o=e[n],d=l.nextPart.get(o);if(d){const p=Xb(e,n+1,d);if(p)return p}const u=l.validators;if(u===null)return;const f=n===0?e.join(Pc):e.slice(n).join(Pc),h=u.length;for(let p=0;p<h;p++){const g=u[p];if(g.validator(f))return g.classGroupId}},W5=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const n=e.slice(1,-1),l=n.indexOf(":"),r=n.slice(0,l);return r?D5+r:void 0})(),B5=e=>{const{theme:n,classGroups:l}=e;return H5(l,n)},H5=(e,n)=>{const l=Ab();for(const r in e){const o=e[r];oh(o,l,r,n)}return l},oh=(e,n,l,r)=>{const o=e.length;for(let d=0;d<o;d++){const u=e[d];I5(u,n,l,r)}},I5=(e,n,l,r)=>{if(typeof e=="string"){F5(e,n,l);return}if(typeof e=="function"){K5(e,n,l,r);return}J5(e,n,l,r)},F5=(e,n,l)=>{const r=e===""?n:Zb(n,e);r.classGroupId=l},K5=(e,n,l,r)=>{if(e$(e)){oh(e(r),n,l,r);return}n.validators===null&&(n.validators=[]),n.validators.push(G5(l,e))},J5=(e,n,l,r)=>{const o=Object.entries(e),d=o.length;for(let u=0;u<d;u++){const[f,h]=o[u];oh(h,Zb(n,f),l,r)}},Zb=(e,n)=>{let l=e;const r=n.split(Pc),o=r.length;for(let d=0;d<o;d++){const u=r[d];let f=l.nextPart.get(u);f||(f=Ab(),l.nextPart.set(u,f)),l=f}return l},e$=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,t$=e=>{if(e<1)return{get:()=>{},set:()=>{}};let n=0,l=Object.create(null),r=Object.create(null);const o=(d,u)=>{l[d]=u,n++,n>e&&(n=0,r=l,l=Object.create(null))};return{get(d){let u=l[d];if(u!==void 0)return u;if((u=r[d])!==void 0)return o(d,u),u},set(d,u){d in l?l[d]=u:o(d,u)}}},TO="!",f1=":",n$=[],O1=(e,n,l,r,o)=>({modifiers:e,hasImportantModifier:n,baseClassName:l,maybePostfixModifierPosition:r,isExternal:o}),a$=e=>{const{prefix:n,experimentalParseClassName:l}=e;let r=o=>{const d=[];let u=0,f=0,h=0,p;const g=o.length;for(let w=0;w<g;w++){const k=o[w];if(u===0&&f===0){if(k===f1){d.push(o.slice(h,w)),h=w+1;continue}if(k==="/"){p=w;continue}}k==="["?u++:k==="]"?u--:k==="("?f++:k===")"&&f--}const x=d.length===0?o:o.slice(h);let b=x,y=!1;x.endsWith(TO)?(b=x.slice(0,-1),y=!0):x.startsWith(TO)&&(b=x.slice(1),y=!0);const Q=p&&p>h?p-h:void 0;return O1(d,y,b,Q)};if(n){const o=n+f1,d=r;r=u=>u.startsWith(o)?d(u.slice(o.length)):O1(n$,!1,u,void 0,!0)}if(l){const o=r;r=d=>l({className:d,parseClassName:o})}return r},s$=e=>{const n=new Map;return e.orderSensitiveModifiers.forEach((l,r)=>{n.set(l,1e6+r)}),l=>{const r=[];let o=[];for(let d=0;d<l.length;d++){const u=l[d],f=u[0]==="[",h=n.has(u);f||h?(o.length>0&&(o.sort(),r.push(...o),o=[]),r.push(u)):o.push(u)}return o.length>0&&(o.sort(),r.push(...o)),r}},l$=e=>({cache:t$(e.cacheSize),parseClassName:a$(e),sortModifiers:s$(e),...L5(e)}),r$=/\s+/,i$=(e,n)=>{const{parseClassName:l,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:d}=n,u=[],f=e.trim().split(r$);let h="";for(let p=f.length-1;p>=0;p-=1){const g=f[p],{isExternal:x,modifiers:b,hasImportantModifier:y,baseClassName:Q,maybePostfixModifierPosition:w}=l(g);if(x){h=g+(h.length>0?" "+h:h);continue}let k=!!w,j=r(k?Q.substring(0,w):Q);if(!j){if(!k){h=g+(h.length>0?" "+h:h);continue}if(j=r(Q),!j){h=g+(h.length>0?" "+h:h);continue}k=!1}const P=b.length===0?"":b.length===1?b[0]:d(b).join(":"),z=y?P+TO:P,R=z+j;if(u.indexOf(R)>-1)continue;u.push(R);const Y=o(j,k);for(let X=0;X<Y.length;++X){const C=Y[X];u.push(z+C)}h=g+(h.length>0?" "+h:h)}return h},o$=(...e)=>{let n=0,l,r,o="";for(;n<e.length;)(l=e[n++])&&(r=Eb(l))&&(o&&(o+=" "),o+=r);return o},Eb=e=>{if(typeof e=="string")return e;let n,l="";for(let r=0;r<e.length;r++)e[r]&&(n=Eb(e[r]))&&(l&&(l+=" "),l+=n);return l},c$=(e,...n)=>{let l,r,o,d;const u=h=>{const p=n.reduce((g,x)=>x(g),e());return l=l$(p),r=l.cache.get,o=l.cache.set,d=f,f(h)},f=h=>{const p=r(h);if(p)return p;const g=i$(h,l);return o(h,g),g};return d=u,(...h)=>d(o$(...h))},d$=[],Ot=e=>{const n=l=>l[e]||d$;return n.isThemeGetter=!0,n},qb=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Mb=/^\((?:(\w[\w-]*):)?(.+)\)$/i,u$=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,f$=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,O$=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,h$=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,m$=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,p$=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Da=e=>u$.test(e),Pe=e=>!!e&&!Number.isNaN(Number(e)),La=e=>!!e&&Number.isInteger(Number(e)),Xf=e=>e.endsWith("%")&&Pe(e.slice(0,-1)),ra=e=>f$.test(e),Yb=()=>!0,x$=e=>O$.test(e)&&!h$.test(e),ch=()=>!1,g$=e=>m$.test(e),b$=e=>p$.test(e),v$=e=>!he(e)&&!pe(e),y$=e=>os(e,Gb,ch),he=e=>qb.test(e),zs=e=>os(e,Db,x$),h1=e=>os(e,N$,Pe),S$=e=>os(e,Wb,Yb),Q$=e=>os(e,Lb,ch),m1=e=>os(e,Ub,ch),j$=e=>os(e,Vb,b$),Jo=e=>os(e,Bb,g$),pe=e=>Mb.test(e),ti=e=>Ws(e,Db),w$=e=>Ws(e,Lb),p1=e=>Ws(e,Ub),k$=e=>Ws(e,Gb),$$=e=>Ws(e,Vb),ec=e=>Ws(e,Bb,!0),T$=e=>Ws(e,Wb,!0),os=(e,n,l)=>{const r=qb.exec(e);return r?r[1]?n(r[1]):l(r[2]):!1},Ws=(e,n,l=!1)=>{const r=Mb.exec(e);return r?r[1]?n(r[1]):l:!1},Ub=e=>e==="position"||e==="percentage",Vb=e=>e==="image"||e==="url",Gb=e=>e==="length"||e==="size"||e==="bg-size",Db=e=>e==="length",N$=e=>e==="number",Lb=e=>e==="family-name",Wb=e=>e==="number"||e==="weight",Bb=e=>e==="shadow",P$=()=>{const e=Ot("color"),n=Ot("font"),l=Ot("text"),r=Ot("font-weight"),o=Ot("tracking"),d=Ot("leading"),u=Ot("breakpoint"),f=Ot("container"),h=Ot("spacing"),p=Ot("radius"),g=Ot("shadow"),x=Ot("inset-shadow"),b=Ot("text-shadow"),y=Ot("drop-shadow"),Q=Ot("blur"),w=Ot("perspective"),k=Ot("aspect"),j=Ot("ease"),P=Ot("animate"),z=()=>["auto","avoid","all","avoid-page","page","left","right","column"],R=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],Y=()=>[...R(),pe,he],X=()=>["auto","hidden","clip","visible","scroll"],C=()=>["auto","contain","none"],T=()=>[pe,he,h],I=()=>[Da,"full","auto",...T()],Z=()=>[La,"none","subgrid",pe,he],K=()=>["auto",{span:["full",La,pe,he]},La,pe,he],F=()=>[La,"auto",pe,he],G=()=>["auto","min","max","fr",pe,he],V=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],M=()=>["start","end","center","stretch","center-safe","end-safe"],N=()=>["auto",...T()],U=()=>[Da,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...T()],ee=()=>[Da,"screen","full","dvw","lvw","svw","min","max","fit",...T()],de=()=>[Da,"screen","full","lh","dvh","lvh","svh","min","max","fit",...T()],se=()=>[e,pe,he],we=()=>[...R(),p1,m1,{position:[pe,he]}],Qe=()=>["no-repeat",{repeat:["","x","y","space","round"]}],me=()=>["auto","cover","contain",k$,y$,{size:[pe,he]}],be=()=>[Xf,ti,zs],ze=()=>["","none","full",p,pe,he],W=()=>["",Pe,ti,zs],Se=()=>["solid","dashed","dotted","double"],ne=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],fe=()=>[Pe,Xf,p1,m1],Ne=()=>["","none",Q,pe,he],ke=()=>["none",Pe,pe,he],De=()=>["none",Pe,pe,he],xt=()=>[Pe,pe,he],ut=()=>[Da,"full",...T()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[ra],breakpoint:[ra],color:[Yb],container:[ra],"drop-shadow":[ra],ease:["in","out","in-out"],font:[v$],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[ra],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[ra],shadow:[ra],spacing:["px",Pe],text:[ra],"text-shadow":[ra],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Da,he,pe,k]}],container:["container"],columns:[{columns:[Pe,he,pe,f]}],"break-after":[{"break-after":z()}],"break-before":[{"break-before":z()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:Y()}],overflow:[{overflow:X()}],"overflow-x":[{"overflow-x":X()}],"overflow-y":[{"overflow-y":X()}],overscroll:[{overscroll:C()}],"overscroll-x":[{"overscroll-x":C()}],"overscroll-y":[{"overscroll-y":C()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:I()}],"inset-x":[{"inset-x":I()}],"inset-y":[{"inset-y":I()}],start:[{"inset-s":I(),start:I()}],end:[{"inset-e":I(),end:I()}],"inset-bs":[{"inset-bs":I()}],"inset-be":[{"inset-be":I()}],top:[{top:I()}],right:[{right:I()}],bottom:[{bottom:I()}],left:[{left:I()}],visibility:["visible","invisible","collapse"],z:[{z:[La,"auto",pe,he]}],basis:[{basis:[Da,"full","auto",f,...T()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Pe,Da,"auto","initial","none",he]}],grow:[{grow:["",Pe,pe,he]}],shrink:[{shrink:["",Pe,pe,he]}],order:[{order:[La,"first","last","none",pe,he]}],"grid-cols":[{"grid-cols":Z()}],"col-start-end":[{col:K()}],"col-start":[{"col-start":F()}],"col-end":[{"col-end":F()}],"grid-rows":[{"grid-rows":Z()}],"row-start-end":[{row:K()}],"row-start":[{"row-start":F()}],"row-end":[{"row-end":F()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":G()}],"auto-rows":[{"auto-rows":G()}],gap:[{gap:T()}],"gap-x":[{"gap-x":T()}],"gap-y":[{"gap-y":T()}],"justify-content":[{justify:[...V(),"normal"]}],"justify-items":[{"justify-items":[...M(),"normal"]}],"justify-self":[{"justify-self":["auto",...M()]}],"align-content":[{content:["normal",...V()]}],"align-items":[{items:[...M(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...M(),{baseline:["","last"]}]}],"place-content":[{"place-content":V()}],"place-items":[{"place-items":[...M(),"baseline"]}],"place-self":[{"place-self":["auto",...M()]}],p:[{p:T()}],px:[{px:T()}],py:[{py:T()}],ps:[{ps:T()}],pe:[{pe:T()}],pbs:[{pbs:T()}],pbe:[{pbe:T()}],pt:[{pt:T()}],pr:[{pr:T()}],pb:[{pb:T()}],pl:[{pl:T()}],m:[{m:N()}],mx:[{mx:N()}],my:[{my:N()}],ms:[{ms:N()}],me:[{me:N()}],mbs:[{mbs:N()}],mbe:[{mbe:N()}],mt:[{mt:N()}],mr:[{mr:N()}],mb:[{mb:N()}],ml:[{ml:N()}],"space-x":[{"space-x":T()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":T()}],"space-y-reverse":["space-y-reverse"],size:[{size:U()}],"inline-size":[{inline:["auto",...ee()]}],"min-inline-size":[{"min-inline":["auto",...ee()]}],"max-inline-size":[{"max-inline":["none",...ee()]}],"block-size":[{block:["auto",...de()]}],"min-block-size":[{"min-block":["auto",...de()]}],"max-block-size":[{"max-block":["none",...de()]}],w:[{w:[f,"screen",...U()]}],"min-w":[{"min-w":[f,"screen","none",...U()]}],"max-w":[{"max-w":[f,"screen","none","prose",{screen:[u]},...U()]}],h:[{h:["screen","lh",...U()]}],"min-h":[{"min-h":["screen","lh","none",...U()]}],"max-h":[{"max-h":["screen","lh",...U()]}],"font-size":[{text:["base",l,ti,zs]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,T$,S$]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Xf,he]}],"font-family":[{font:[w$,Q$,n]}],"font-features":[{"font-features":[he]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,pe,he]}],"line-clamp":[{"line-clamp":[Pe,"none",pe,h1]}],leading:[{leading:[d,...T()]}],"list-image":[{"list-image":["none",pe,he]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",pe,he]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:se()}],"text-color":[{text:se()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Se(),"wavy"]}],"text-decoration-thickness":[{decoration:[Pe,"from-font","auto",pe,zs]}],"text-decoration-color":[{decoration:se()}],"underline-offset":[{"underline-offset":[Pe,"auto",pe,he]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:T()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",pe,he]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",pe,he]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:we()}],"bg-repeat":[{bg:Qe()}],"bg-size":[{bg:me()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},La,pe,he],radial:["",pe,he],conic:[La,pe,he]},$$,j$]}],"bg-color":[{bg:se()}],"gradient-from-pos":[{from:be()}],"gradient-via-pos":[{via:be()}],"gradient-to-pos":[{to:be()}],"gradient-from":[{from:se()}],"gradient-via":[{via:se()}],"gradient-to":[{to:se()}],rounded:[{rounded:ze()}],"rounded-s":[{"rounded-s":ze()}],"rounded-e":[{"rounded-e":ze()}],"rounded-t":[{"rounded-t":ze()}],"rounded-r":[{"rounded-r":ze()}],"rounded-b":[{"rounded-b":ze()}],"rounded-l":[{"rounded-l":ze()}],"rounded-ss":[{"rounded-ss":ze()}],"rounded-se":[{"rounded-se":ze()}],"rounded-ee":[{"rounded-ee":ze()}],"rounded-es":[{"rounded-es":ze()}],"rounded-tl":[{"rounded-tl":ze()}],"rounded-tr":[{"rounded-tr":ze()}],"rounded-br":[{"rounded-br":ze()}],"rounded-bl":[{"rounded-bl":ze()}],"border-w":[{border:W()}],"border-w-x":[{"border-x":W()}],"border-w-y":[{"border-y":W()}],"border-w-s":[{"border-s":W()}],"border-w-e":[{"border-e":W()}],"border-w-bs":[{"border-bs":W()}],"border-w-be":[{"border-be":W()}],"border-w-t":[{"border-t":W()}],"border-w-r":[{"border-r":W()}],"border-w-b":[{"border-b":W()}],"border-w-l":[{"border-l":W()}],"divide-x":[{"divide-x":W()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":W()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Se(),"hidden","none"]}],"divide-style":[{divide:[...Se(),"hidden","none"]}],"border-color":[{border:se()}],"border-color-x":[{"border-x":se()}],"border-color-y":[{"border-y":se()}],"border-color-s":[{"border-s":se()}],"border-color-e":[{"border-e":se()}],"border-color-bs":[{"border-bs":se()}],"border-color-be":[{"border-be":se()}],"border-color-t":[{"border-t":se()}],"border-color-r":[{"border-r":se()}],"border-color-b":[{"border-b":se()}],"border-color-l":[{"border-l":se()}],"divide-color":[{divide:se()}],"outline-style":[{outline:[...Se(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Pe,pe,he]}],"outline-w":[{outline:["",Pe,ti,zs]}],"outline-color":[{outline:se()}],shadow:[{shadow:["","none",g,ec,Jo]}],"shadow-color":[{shadow:se()}],"inset-shadow":[{"inset-shadow":["none",x,ec,Jo]}],"inset-shadow-color":[{"inset-shadow":se()}],"ring-w":[{ring:W()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:se()}],"ring-offset-w":[{"ring-offset":[Pe,zs]}],"ring-offset-color":[{"ring-offset":se()}],"inset-ring-w":[{"inset-ring":W()}],"inset-ring-color":[{"inset-ring":se()}],"text-shadow":[{"text-shadow":["none",b,ec,Jo]}],"text-shadow-color":[{"text-shadow":se()}],opacity:[{opacity:[Pe,pe,he]}],"mix-blend":[{"mix-blend":[...ne(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ne()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Pe]}],"mask-image-linear-from-pos":[{"mask-linear-from":fe()}],"mask-image-linear-to-pos":[{"mask-linear-to":fe()}],"mask-image-linear-from-color":[{"mask-linear-from":se()}],"mask-image-linear-to-color":[{"mask-linear-to":se()}],"mask-image-t-from-pos":[{"mask-t-from":fe()}],"mask-image-t-to-pos":[{"mask-t-to":fe()}],"mask-image-t-from-color":[{"mask-t-from":se()}],"mask-image-t-to-color":[{"mask-t-to":se()}],"mask-image-r-from-pos":[{"mask-r-from":fe()}],"mask-image-r-to-pos":[{"mask-r-to":fe()}],"mask-image-r-from-color":[{"mask-r-from":se()}],"mask-image-r-to-color":[{"mask-r-to":se()}],"mask-image-b-from-pos":[{"mask-b-from":fe()}],"mask-image-b-to-pos":[{"mask-b-to":fe()}],"mask-image-b-from-color":[{"mask-b-from":se()}],"mask-image-b-to-color":[{"mask-b-to":se()}],"mask-image-l-from-pos":[{"mask-l-from":fe()}],"mask-image-l-to-pos":[{"mask-l-to":fe()}],"mask-image-l-from-color":[{"mask-l-from":se()}],"mask-image-l-to-color":[{"mask-l-to":se()}],"mask-image-x-from-pos":[{"mask-x-from":fe()}],"mask-image-x-to-pos":[{"mask-x-to":fe()}],"mask-image-x-from-color":[{"mask-x-from":se()}],"mask-image-x-to-color":[{"mask-x-to":se()}],"mask-image-y-from-pos":[{"mask-y-from":fe()}],"mask-image-y-to-pos":[{"mask-y-to":fe()}],"mask-image-y-from-color":[{"mask-y-from":se()}],"mask-image-y-to-color":[{"mask-y-to":se()}],"mask-image-radial":[{"mask-radial":[pe,he]}],"mask-image-radial-from-pos":[{"mask-radial-from":fe()}],"mask-image-radial-to-pos":[{"mask-radial-to":fe()}],"mask-image-radial-from-color":[{"mask-radial-from":se()}],"mask-image-radial-to-color":[{"mask-radial-to":se()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":R()}],"mask-image-conic-pos":[{"mask-conic":[Pe]}],"mask-image-conic-from-pos":[{"mask-conic-from":fe()}],"mask-image-conic-to-pos":[{"mask-conic-to":fe()}],"mask-image-conic-from-color":[{"mask-conic-from":se()}],"mask-image-conic-to-color":[{"mask-conic-to":se()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:we()}],"mask-repeat":[{mask:Qe()}],"mask-size":[{mask:me()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",pe,he]}],filter:[{filter:["","none",pe,he]}],blur:[{blur:Ne()}],brightness:[{brightness:[Pe,pe,he]}],contrast:[{contrast:[Pe,pe,he]}],"drop-shadow":[{"drop-shadow":["","none",y,ec,Jo]}],"drop-shadow-color":[{"drop-shadow":se()}],grayscale:[{grayscale:["",Pe,pe,he]}],"hue-rotate":[{"hue-rotate":[Pe,pe,he]}],invert:[{invert:["",Pe,pe,he]}],saturate:[{saturate:[Pe,pe,he]}],sepia:[{sepia:["",Pe,pe,he]}],"backdrop-filter":[{"backdrop-filter":["","none",pe,he]}],"backdrop-blur":[{"backdrop-blur":Ne()}],"backdrop-brightness":[{"backdrop-brightness":[Pe,pe,he]}],"backdrop-contrast":[{"backdrop-contrast":[Pe,pe,he]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Pe,pe,he]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Pe,pe,he]}],"backdrop-invert":[{"backdrop-invert":["",Pe,pe,he]}],"backdrop-opacity":[{"backdrop-opacity":[Pe,pe,he]}],"backdrop-saturate":[{"backdrop-saturate":[Pe,pe,he]}],"backdrop-sepia":[{"backdrop-sepia":["",Pe,pe,he]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":T()}],"border-spacing-x":[{"border-spacing-x":T()}],"border-spacing-y":[{"border-spacing-y":T()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",pe,he]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Pe,"initial",pe,he]}],ease:[{ease:["linear","initial",j,pe,he]}],delay:[{delay:[Pe,pe,he]}],animate:[{animate:["none",P,pe,he]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[w,pe,he]}],"perspective-origin":[{"perspective-origin":Y()}],rotate:[{rotate:ke()}],"rotate-x":[{"rotate-x":ke()}],"rotate-y":[{"rotate-y":ke()}],"rotate-z":[{"rotate-z":ke()}],scale:[{scale:De()}],"scale-x":[{"scale-x":De()}],"scale-y":[{"scale-y":De()}],"scale-z":[{"scale-z":De()}],"scale-3d":["scale-3d"],skew:[{skew:xt()}],"skew-x":[{"skew-x":xt()}],"skew-y":[{"skew-y":xt()}],transform:[{transform:[pe,he,"","none","gpu","cpu"]}],"transform-origin":[{origin:Y()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ut()}],"translate-x":[{"translate-x":ut()}],"translate-y":[{"translate-y":ut()}],"translate-z":[{"translate-z":ut()}],"translate-none":["translate-none"],accent:[{accent:se()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:se()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",pe,he]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":T()}],"scroll-mx":[{"scroll-mx":T()}],"scroll-my":[{"scroll-my":T()}],"scroll-ms":[{"scroll-ms":T()}],"scroll-me":[{"scroll-me":T()}],"scroll-mbs":[{"scroll-mbs":T()}],"scroll-mbe":[{"scroll-mbe":T()}],"scroll-mt":[{"scroll-mt":T()}],"scroll-mr":[{"scroll-mr":T()}],"scroll-mb":[{"scroll-mb":T()}],"scroll-ml":[{"scroll-ml":T()}],"scroll-p":[{"scroll-p":T()}],"scroll-px":[{"scroll-px":T()}],"scroll-py":[{"scroll-py":T()}],"scroll-ps":[{"scroll-ps":T()}],"scroll-pe":[{"scroll-pe":T()}],"scroll-pbs":[{"scroll-pbs":T()}],"scroll-pbe":[{"scroll-pbe":T()}],"scroll-pt":[{"scroll-pt":T()}],"scroll-pr":[{"scroll-pr":T()}],"scroll-pb":[{"scroll-pb":T()}],"scroll-pl":[{"scroll-pl":T()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",pe,he]}],fill:[{fill:["none",...se()]}],"stroke-w":[{stroke:[Pe,ti,zs,h1]}],stroke:[{stroke:["none",...se()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},z$=c$(P$);function oe(...e){return z$(U5(e))}function C$({children:e}){return s.jsx(X5,{delayDuration:300,children:e})}function zc({children:e,content:n,side:l="top",className:r}){return n?s.jsxs(Z5,{children:[s.jsx(E5,{asChild:!0,children:e}),s.jsx(q5,{children:s.jsxs(M5,{side:l,sideOffset:6,className:oe("z-50 px-2.5 py-1.5 text-xs font-sans","bg-surface-4 text-text-0 border border-border rounded-md shadow-lg","animate-in fade-in-0 zoom-in-95",r),children:[n,s.jsx(Y5,{className:"fill-surface-4"})]})})]}):e}/**
|
|
30
|
-
* @license lucide-react v1.7.0 - ISC
|
|
31
|
-
*
|
|
32
|
-
* This source code is licensed under the ISC license.
|
|
33
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
34
|
-
*/const Hb=(...e)=>e.filter((n,l,r)=>!!n&&n.trim()!==""&&r.indexOf(n)===l).join(" ").trim();/**
|
|
35
|
-
* @license lucide-react v1.7.0 - ISC
|
|
36
|
-
*
|
|
37
|
-
* This source code is licensed under the ISC license.
|
|
38
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
39
|
-
*/const R$=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
|
|
40
|
-
* @license lucide-react v1.7.0 - ISC
|
|
41
|
-
*
|
|
42
|
-
* This source code is licensed under the ISC license.
|
|
43
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
44
|
-
*/const _$=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(n,l,r)=>r?r.toUpperCase():l.toLowerCase());/**
|
|
45
|
-
* @license lucide-react v1.7.0 - ISC
|
|
46
|
-
*
|
|
47
|
-
* This source code is licensed under the ISC license.
|
|
48
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
49
|
-
*/const x1=e=>{const n=_$(e);return n.charAt(0).toUpperCase()+n.slice(1)};/**
|
|
50
|
-
* @license lucide-react v1.7.0 - ISC
|
|
51
|
-
*
|
|
52
|
-
* This source code is licensed under the ISC license.
|
|
53
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
54
|
-
*/var Zf={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
|
55
|
-
* @license lucide-react v1.7.0 - ISC
|
|
56
|
-
*
|
|
57
|
-
* This source code is licensed under the ISC license.
|
|
58
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
59
|
-
*/const A$=e=>{for(const n in e)if(n.startsWith("aria-")||n==="role"||n==="title")return!0;return!1},X$=v.createContext({}),Z$=()=>v.useContext(X$),E$=v.forwardRef(({color:e,size:n,strokeWidth:l,absoluteStrokeWidth:r,className:o="",children:d,iconNode:u,...f},h)=>{const{size:p=24,strokeWidth:g=2,absoluteStrokeWidth:x=!1,color:b="currentColor",className:y=""}=Z$()??{},Q=r??x?Number(l??g)*24/Number(n??p):l??g;return v.createElement("svg",{ref:h,...Zf,width:n??p??Zf.width,height:n??p??Zf.height,stroke:e??b,strokeWidth:Q,className:Hb("lucide",y,o),...!d&&!A$(f)&&{"aria-hidden":"true"},...f},[...u.map(([w,k])=>v.createElement(w,k)),...Array.isArray(d)?d:[d]])});/**
|
|
60
|
-
* @license lucide-react v1.7.0 - ISC
|
|
61
|
-
*
|
|
62
|
-
* This source code is licensed under the ISC license.
|
|
63
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
64
|
-
*/const ie=(e,n)=>{const l=v.forwardRef(({className:r,...o},d)=>v.createElement(E$,{ref:d,iconNode:n,className:Hb(`lucide-${R$(x1(e))}`,`lucide-${e}`,r),...o}));return l.displayName=x1(e),l};/**
|
|
65
|
-
* @license lucide-react v1.7.0 - ISC
|
|
66
|
-
*
|
|
67
|
-
* This source code is licensed under the ISC license.
|
|
68
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
69
|
-
*/const q$=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]],ui=ie("activity",q$);/**
|
|
70
|
-
* @license lucide-react v1.7.0 - ISC
|
|
71
|
-
*
|
|
72
|
-
* This source code is licensed under the ISC license.
|
|
73
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
74
|
-
*/const M$=[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]],Y$=ie("arrow-up",M$);/**
|
|
75
|
-
* @license lucide-react v1.7.0 - ISC
|
|
76
|
-
*
|
|
77
|
-
* This source code is licensed under the ISC license.
|
|
78
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
79
|
-
*/const U$=[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]],dh=ie("book-open",U$);/**
|
|
80
|
-
* @license lucide-react v1.7.0 - ISC
|
|
81
|
-
*
|
|
82
|
-
* This source code is licensed under the ISC license.
|
|
83
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
84
|
-
*/const V$=[["path",{d:"M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z",key:"hh9hay"}],["path",{d:"m3.3 7 8.7 5 8.7-5",key:"g66t2b"}],["path",{d:"M12 22V12",key:"d0xqtd"}]],uh=ie("box",V$);/**
|
|
85
|
-
* @license lucide-react v1.7.0 - ISC
|
|
86
|
-
*
|
|
87
|
-
* This source code is licensed under the ISC license.
|
|
88
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
89
|
-
*/const G$=[["path",{d:"M12 18V5",key:"adv99a"}],["path",{d:"M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4",key:"1e3is1"}],["path",{d:"M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5",key:"1gqd8o"}],["path",{d:"M17.997 5.125a4 4 0 0 1 2.526 5.77",key:"iwvgf7"}],["path",{d:"M18 18a4 4 0 0 0 2-7.464",key:"efp6ie"}],["path",{d:"M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517",key:"1gq6am"}],["path",{d:"M6 18a4 4 0 0 1-2-7.464",key:"k1g0md"}],["path",{d:"M6.003 5.125a4 4 0 0 0-2.526 5.77",key:"q97ue3"}]],D$=ie("brain",G$);/**
|
|
90
|
-
* @license lucide-react v1.7.0 - ISC
|
|
91
|
-
*
|
|
92
|
-
* This source code is licensed under the ISC license.
|
|
93
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
94
|
-
*/const L$=[["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",key:"1nb95v"}],["line",{x1:"8",x2:"16",y1:"6",y2:"6",key:"x4nwl0"}],["line",{x1:"16",x2:"16",y1:"14",y2:"18",key:"wjye3r"}],["path",{d:"M16 10h.01",key:"1m94wz"}],["path",{d:"M12 10h.01",key:"1nrarc"}],["path",{d:"M8 10h.01",key:"19clt8"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M8 18h.01",key:"lrp35t"}]],W$=ie("calculator",L$);/**
|
|
95
|
-
* @license lucide-react v1.7.0 - ISC
|
|
96
|
-
*
|
|
97
|
-
* This source code is licensed under the ISC license.
|
|
98
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
99
|
-
*/const B$=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]],Cc=ie("calendar",B$);/**
|
|
100
|
-
* @license lucide-react v1.7.0 - ISC
|
|
101
|
-
*
|
|
102
|
-
* This source code is licensed under the ISC license.
|
|
103
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
104
|
-
*/const H$=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]],Ib=ie("chart-column",H$);/**
|
|
105
|
-
* @license lucide-react v1.7.0 - ISC
|
|
106
|
-
*
|
|
107
|
-
* This source code is licensed under the ISC license.
|
|
108
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
109
|
-
*/const I$=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M7 16c.5-2 1.5-7 4-7 2 0 2 3 4 3 2.5 0 4.5-5 5-7",key:"lw07rv"}]],Fb=ie("chart-spline",I$);/**
|
|
110
|
-
* @license lucide-react v1.7.0 - ISC
|
|
111
|
-
*
|
|
112
|
-
* This source code is licensed under the ISC license.
|
|
113
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
114
|
-
*/const F$=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],kt=ie("check",F$);/**
|
|
115
|
-
* @license lucide-react v1.7.0 - ISC
|
|
116
|
-
*
|
|
117
|
-
* This source code is licensed under the ISC license.
|
|
118
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
119
|
-
*/const K$=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],_n=ie("chevron-down",K$);/**
|
|
120
|
-
* @license lucide-react v1.7.0 - ISC
|
|
121
|
-
*
|
|
122
|
-
* This source code is licensed under the ISC license.
|
|
123
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
124
|
-
*/const J$=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],Kb=ie("chevron-left",J$);/**
|
|
125
|
-
* @license lucide-react v1.7.0 - ISC
|
|
126
|
-
*
|
|
127
|
-
* This source code is licensed under the ISC license.
|
|
128
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
129
|
-
*/const eT=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],cs=ie("chevron-right",eT);/**
|
|
130
|
-
* @license lucide-react v1.7.0 - ISC
|
|
131
|
-
*
|
|
132
|
-
* This source code is licensed under the ISC license.
|
|
133
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
134
|
-
*/const tT=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],xa=ie("circle-alert",tT);/**
|
|
135
|
-
* @license lucide-react v1.7.0 - ISC
|
|
136
|
-
*
|
|
137
|
-
* This source code is licensed under the ISC license.
|
|
138
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
139
|
-
*/const nT=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],ls=ie("circle-check-big",nT);/**
|
|
140
|
-
* @license lucide-react v1.7.0 - ISC
|
|
141
|
-
*
|
|
142
|
-
* This source code is licensed under the ISC license.
|
|
143
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
144
|
-
*/const aT=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],NO=ie("circle-check",aT);/**
|
|
145
|
-
* @license lucide-react v1.7.0 - ISC
|
|
146
|
-
*
|
|
147
|
-
* This source code is licensed under the ISC license.
|
|
148
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
149
|
-
*/const sT=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]],Hl=ie("circle-question-mark",sT);/**
|
|
150
|
-
* @license lucide-react v1.7.0 - ISC
|
|
151
|
-
*
|
|
152
|
-
* This source code is licensed under the ISC license.
|
|
153
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
154
|
-
*/const lT=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],Jb=ie("circle-x",lT);/**
|
|
155
|
-
* @license lucide-react v1.7.0 - ISC
|
|
156
|
-
*
|
|
157
|
-
* This source code is licensed under the ISC license.
|
|
158
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
159
|
-
*/const rT=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]],PO=ie("clock",rT);/**
|
|
160
|
-
* @license lucide-react v1.7.0 - ISC
|
|
161
|
-
*
|
|
162
|
-
* This source code is licensed under the ISC license.
|
|
163
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
164
|
-
*/const iT=[["path",{d:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"p7xjir"}]],oT=ie("cloud",iT);/**
|
|
165
|
-
* @license lucide-react v1.7.0 - ISC
|
|
166
|
-
*
|
|
167
|
-
* This source code is licensed under the ISC license.
|
|
168
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
169
|
-
*/const cT=[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]],ds=ie("code-xml",cT);/**
|
|
170
|
-
* @license lucide-react v1.7.0 - ISC
|
|
171
|
-
*
|
|
172
|
-
* This source code is licensed under the ISC license.
|
|
173
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
174
|
-
*/const dT=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],Rc=ie("copy",dT);/**
|
|
175
|
-
* @license lucide-react v1.7.0 - ISC
|
|
176
|
-
*
|
|
177
|
-
* This source code is licensed under the ISC license.
|
|
178
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
179
|
-
*/const uT=[["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M17 20v2",key:"1rnc9c"}],["path",{d:"M17 2v2",key:"11trls"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M2 17h2",key:"7oei6x"}],["path",{d:"M2 7h2",key:"asdhe0"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"M20 17h2",key:"1fpfkl"}],["path",{d:"M20 7h2",key:"1o8tra"}],["path",{d:"M7 20v2",key:"4gnj0m"}],["path",{d:"M7 2v2",key:"1i4yhu"}],["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"8",y:"8",width:"8",height:"8",rx:"1",key:"z9xiuo"}]],Il=ie("cpu",uT);/**
|
|
180
|
-
* @license lucide-react v1.7.0 - ISC
|
|
181
|
-
*
|
|
182
|
-
* This source code is licensed under the ISC license.
|
|
183
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
184
|
-
*/const fT=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]],OT=ie("database",fT);/**
|
|
185
|
-
* @license lucide-react v1.7.0 - ISC
|
|
186
|
-
*
|
|
187
|
-
* This source code is licensed under the ISC license.
|
|
188
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
189
|
-
*/const hT=[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]],mT=ie("dollar-sign",hT);/**
|
|
190
|
-
* @license lucide-react v1.7.0 - ISC
|
|
191
|
-
*
|
|
192
|
-
* This source code is licensed under the ISC license.
|
|
193
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
194
|
-
*/const pT=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],sd=ie("download",pT);/**
|
|
195
|
-
* @license lucide-react v1.7.0 - ISC
|
|
196
|
-
*
|
|
197
|
-
* This source code is licensed under the ISC license.
|
|
198
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
199
|
-
*/const xT=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],Fl=ie("external-link",xT);/**
|
|
200
|
-
* @license lucide-react v1.7.0 - ISC
|
|
201
|
-
*
|
|
202
|
-
* This source code is licensed under the ISC license.
|
|
203
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
204
|
-
*/const gT=[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],ld=ie("eye-off",gT);/**
|
|
205
|
-
* @license lucide-react v1.7.0 - ISC
|
|
206
|
-
*
|
|
207
|
-
* This source code is licensed under the ISC license.
|
|
208
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
209
|
-
*/const bT=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],Bs=ie("eye",bT);/**
|
|
210
|
-
* @license lucide-react v1.7.0 - ISC
|
|
211
|
-
*
|
|
212
|
-
* This source code is licensed under the ISC license.
|
|
213
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
214
|
-
*/const vT=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 12.5 8 15l2 2.5",key:"1tg20x"}],["path",{d:"m14 12.5 2 2.5-2 2.5",key:"yinavb"}]],yT=ie("file-code",vT);/**
|
|
215
|
-
* @license lucide-react v1.7.0 - ISC
|
|
216
|
-
*
|
|
217
|
-
* This source code is licensed under the ISC license.
|
|
218
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
219
|
-
*/const ST=[["path",{d:"M12.659 22H18a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v9.34",key:"o6klzx"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10.378 12.622a1 1 0 0 1 3 3.003L8.36 20.637a2 2 0 0 1-.854.506l-2.867.837a.5.5 0 0 1-.62-.62l.836-2.869a2 2 0 0 1 .506-.853z",key:"zhnas1"}]],ev=ie("file-pen",ST);/**
|
|
220
|
-
* @license lucide-react v1.7.0 - ISC
|
|
221
|
-
*
|
|
222
|
-
* This source code is licensed under the ISC license.
|
|
223
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
224
|
-
*/const QT=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M9 15h6",key:"cctwl0"}],["path",{d:"M12 18v-6",key:"17g6i2"}]],Ef=ie("file-plus",QT);/**
|
|
225
|
-
* @license lucide-react v1.7.0 - ISC
|
|
226
|
-
*
|
|
227
|
-
* This source code is licensed under the ISC license.
|
|
228
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
229
|
-
*/const jT=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],es=ie("file-text",jT);/**
|
|
230
|
-
* @license lucide-react v1.7.0 - ISC
|
|
231
|
-
*
|
|
232
|
-
* This source code is licensed under the ISC license.
|
|
233
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
234
|
-
*/const wT=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}]],kT=ie("file",wT);/**
|
|
235
|
-
* @license lucide-react v1.7.0 - ISC
|
|
236
|
-
*
|
|
237
|
-
* This source code is licensed under the ISC license.
|
|
238
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
239
|
-
*/const $T=[["path",{d:"M12 3q1 4 4 6.5t3 5.5a1 1 0 0 1-14 0 5 5 0 0 1 1-3 1 1 0 0 0 5 0c0-2-1.5-3-1.5-5q0-2 2.5-4",key:"1slcih"}]],TT=ie("flame",$T);/**
|
|
240
|
-
* @license lucide-react v1.7.0 - ISC
|
|
241
|
-
*
|
|
242
|
-
* This source code is licensed under the ISC license.
|
|
243
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
244
|
-
*/const NT=[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}],["path",{d:"M2 10h20",key:"1ir3d8"}]],PT=ie("folder-closed",NT);/**
|
|
245
|
-
* @license lucide-react v1.7.0 - ISC
|
|
246
|
-
*
|
|
247
|
-
* This source code is licensed under the ISC license.
|
|
248
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
249
|
-
*/const zT=[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]],fi=ie("folder-open",zT);/**
|
|
250
|
-
* @license lucide-react v1.7.0 - ISC
|
|
251
|
-
*
|
|
252
|
-
* This source code is licensed under the ISC license.
|
|
253
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
254
|
-
*/const CT=[["path",{d:"M12 10v6",key:"1bos4e"}],["path",{d:"M9 13h6",key:"1uhe8q"}],["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],qf=ie("folder-plus",CT);/**
|
|
255
|
-
* @license lucide-react v1.7.0 - ISC
|
|
256
|
-
*
|
|
257
|
-
* This source code is licensed under the ISC license.
|
|
258
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
259
|
-
*/const RT=[["path",{d:"M10.7 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v4.1",key:"1bw5m7"}],["path",{d:"m21 21-1.9-1.9",key:"1g2n9r"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}]],tv=ie("folder-search",RT);/**
|
|
260
|
-
* @license lucide-react v1.7.0 - ISC
|
|
261
|
-
*
|
|
262
|
-
* This source code is licensed under the ISC license.
|
|
263
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
264
|
-
*/const _T=[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],nv=ie("folder",_T);/**
|
|
265
|
-
* @license lucide-react v1.7.0 - ISC
|
|
266
|
-
*
|
|
267
|
-
* This source code is licensed under the ISC license.
|
|
268
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
269
|
-
*/const AT=[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]],av=ie("gauge",AT);/**
|
|
270
|
-
* @license lucide-react v1.7.0 - ISC
|
|
271
|
-
*
|
|
272
|
-
* This source code is licensed under the ISC license.
|
|
273
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
274
|
-
*/const XT=[["circle",{cx:"12",cy:"9",r:"1",key:"124mty"}],["circle",{cx:"19",cy:"9",r:"1",key:"1ruzo2"}],["circle",{cx:"5",cy:"9",r:"1",key:"1a8b28"}],["circle",{cx:"12",cy:"15",r:"1",key:"1e56xg"}],["circle",{cx:"19",cy:"15",r:"1",key:"1a92ep"}],["circle",{cx:"5",cy:"15",r:"1",key:"5r1jwy"}]],ZT=ie("grip-horizontal",XT);/**
|
|
275
|
-
* @license lucide-react v1.7.0 - ISC
|
|
276
|
-
*
|
|
277
|
-
* This source code is licensed under the ISC license.
|
|
278
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
279
|
-
*/const ET=[["path",{d:"M10 16h.01",key:"1bzywj"}],["path",{d:"M2.212 11.577a2 2 0 0 0-.212.896V18a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-5.527a2 2 0 0 0-.212-.896L18.55 5.11A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"18tbho"}],["path",{d:"M21.946 12.013H2.054",key:"zqlbp7"}],["path",{d:"M6 16h.01",key:"1pmjb7"}]],fh=ie("hard-drive",ET);/**
|
|
280
|
-
* @license lucide-react v1.7.0 - ISC
|
|
281
|
-
*
|
|
282
|
-
* This source code is licensed under the ISC license.
|
|
283
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
284
|
-
*/const qT=[["path",{d:"M3 14h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-7a9 9 0 0 1 18 0v7a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3",key:"1xhozi"}]],MT=ie("headphones",qT);/**
|
|
285
|
-
* @license lucide-react v1.7.0 - ISC
|
|
286
|
-
*
|
|
287
|
-
* This source code is licensed under the ISC license.
|
|
288
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
289
|
-
*/const YT=[["path",{d:"M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5",key:"mvr1a0"}]],UT=ie("heart",YT);/**
|
|
290
|
-
* @license lucide-react v1.7.0 - ISC
|
|
291
|
-
*
|
|
292
|
-
* This source code is licensed under the ISC license.
|
|
293
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
294
|
-
*/const VT=[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"r6nss1"}]],GT=ie("house",VT);/**
|
|
295
|
-
* @license lucide-react v1.7.0 - ISC
|
|
296
|
-
*
|
|
297
|
-
* This source code is licensed under the ISC license.
|
|
298
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
299
|
-
*/const DT=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],sv=ie("info",DT);/**
|
|
300
|
-
* @license lucide-react v1.7.0 - ISC
|
|
301
|
-
*
|
|
302
|
-
* This source code is licensed under the ISC license.
|
|
303
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
304
|
-
*/const LT=[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]],qs=ie("key",LT);/**
|
|
305
|
-
* @license lucide-react v1.7.0 - ISC
|
|
306
|
-
*
|
|
307
|
-
* This source code is licensed under the ISC license.
|
|
308
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
309
|
-
*/const WT=[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],g1=ie("layers",WT);/**
|
|
310
|
-
* @license lucide-react v1.7.0 - ISC
|
|
311
|
-
*
|
|
312
|
-
* This source code is licensed under the ISC license.
|
|
313
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
314
|
-
*/const BT=[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]],HT=ie("layout-dashboard",BT);/**
|
|
315
|
-
* @license lucide-react v1.7.0 - ISC
|
|
316
|
-
*
|
|
317
|
-
* This source code is licensed under the ISC license.
|
|
318
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
319
|
-
*/const IT=[["path",{d:"M13 5h8",key:"a7qcls"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 19h8",key:"c3s6r1"}],["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["path",{d:"m3 7 2 2 4-4",key:"1obspn"}]],FT=ie("list-checks",IT);/**
|
|
320
|
-
* @license lucide-react v1.7.0 - ISC
|
|
321
|
-
*
|
|
322
|
-
* This source code is licensed under the ISC license.
|
|
323
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
324
|
-
*/const KT=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],ht=ie("loader-circle",KT);/**
|
|
325
|
-
* @license lucide-react v1.7.0 - ISC
|
|
326
|
-
*
|
|
327
|
-
* This source code is licensed under the ISC license.
|
|
328
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
329
|
-
*/const JT=[["path",{d:"m10 17 5-5-5-5",key:"1bsop3"}],["path",{d:"M15 12H3",key:"6jk70r"}],["path",{d:"M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4",key:"u53s6r"}]],Oh=ie("log-in",JT);/**
|
|
330
|
-
* @license lucide-react v1.7.0 - ISC
|
|
331
|
-
*
|
|
332
|
-
* This source code is licensed under the ISC license.
|
|
333
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
334
|
-
*/const eN=[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]],lv=ie("log-out",eN);/**
|
|
335
|
-
* @license lucide-react v1.7.0 - ISC
|
|
336
|
-
*
|
|
337
|
-
* This source code is licensed under the ISC license.
|
|
338
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
339
|
-
*/const tN=[["path",{d:"M14.106 5.553a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619v12.764a1 1 0 0 1-.553.894l-4.553 2.277a2 2 0 0 1-1.788 0l-4.212-2.106a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0z",key:"169xi5"}],["path",{d:"M15 5.764v15",key:"1pn4in"}],["path",{d:"M9 3.236v15",key:"1uimfh"}]],nN=ie("map",tN);/**
|
|
340
|
-
* @license lucide-react v1.7.0 - ISC
|
|
341
|
-
*
|
|
342
|
-
* This source code is licensed under the ISC license.
|
|
343
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
344
|
-
*/const aN=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"m21 3-7 7",key:"1l2asr"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M9 21H3v-6",key:"wtvkvv"}]],rv=ie("maximize-2",aN);/**
|
|
345
|
-
* @license lucide-react v1.7.0 - ISC
|
|
346
|
-
*
|
|
347
|
-
* This source code is licensed under the ISC license.
|
|
348
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
349
|
-
*/const sN=[["path",{d:"M12 12v-2",key:"fwoke6"}],["path",{d:"M12 18v-2",key:"qj6yno"}],["path",{d:"M16 12v-2",key:"heuere"}],["path",{d:"M16 18v-2",key:"s1ct0w"}],["path",{d:"M2 11h1.5",key:"15p63e"}],["path",{d:"M20 18v-2",key:"12ehxp"}],["path",{d:"M20.5 11H22",key:"khsy7a"}],["path",{d:"M4 18v-2",key:"1c3oqr"}],["path",{d:"M8 12v-2",key:"1mwtfd"}],["path",{d:"M8 18v-2",key:"qcmpov"}],["rect",{x:"2",y:"6",width:"20",height:"10",rx:"2",key:"1qcswk"}]],lN=ie("memory-stick",sN);/**
|
|
350
|
-
* @license lucide-react v1.7.0 - ISC
|
|
351
|
-
*
|
|
352
|
-
* This source code is licensed under the ISC license.
|
|
353
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
354
|
-
*/const rN=[["path",{d:"M11 6a13 13 0 0 0 8.4-2.8A1 1 0 0 1 21 4v12a1 1 0 0 1-1.6.8A13 13 0 0 0 11 14H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2z",key:"q8bfy3"}],["path",{d:"M6 14a12 12 0 0 0 2.4 7.2 2 2 0 0 0 3.2-2.4A8 8 0 0 1 10 14",key:"1853fq"}],["path",{d:"M8 6v8",key:"15ugcq"}]],iN=ie("megaphone",rN);/**
|
|
355
|
-
* @license lucide-react v1.7.0 - ISC
|
|
356
|
-
*
|
|
357
|
-
* This source code is licensed under the ISC license.
|
|
358
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
359
|
-
*/const oN=[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}]],iv=ie("message-circle",oN);/**
|
|
360
|
-
* @license lucide-react v1.7.0 - ISC
|
|
361
|
-
*
|
|
362
|
-
* This source code is licensed under the ISC license.
|
|
363
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
364
|
-
*/const cN=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]],wi=ie("message-square",cN);/**
|
|
365
|
-
* @license lucide-react v1.7.0 - ISC
|
|
366
|
-
*
|
|
367
|
-
* This source code is licensed under the ISC license.
|
|
368
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
369
|
-
*/const dN=[["path",{d:"m14 10 7-7",key:"oa77jy"}],["path",{d:"M20 10h-6V4",key:"mjg0md"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M4 14h6v6",key:"rmj7iw"}]],uN=ie("minimize-2",dN);/**
|
|
370
|
-
* @license lucide-react v1.7.0 - ISC
|
|
371
|
-
*
|
|
372
|
-
* This source code is licensed under the ISC license.
|
|
373
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
374
|
-
*/const fN=[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]],hh=ie("monitor",fN);/**
|
|
375
|
-
* @license lucide-react v1.7.0 - ISC
|
|
376
|
-
*
|
|
377
|
-
* This source code is licensed under the ISC license.
|
|
378
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
379
|
-
*/const ON=[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]],ov=ie("network",ON);/**
|
|
380
|
-
* @license lucide-react v1.7.0 - ISC
|
|
381
|
-
*
|
|
382
|
-
* This source code is licensed under the ISC license.
|
|
383
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
384
|
-
*/const hN=[["path",{d:"M15 18h-5",key:"95g1m2"}],["path",{d:"M18 14h-8",key:"sponae"}],["path",{d:"M4 22h16a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v16a2 2 0 0 1-4 0v-9a2 2 0 0 1 2-2h2",key:"39pd36"}],["rect",{width:"8",height:"4",x:"10",y:"6",rx:"1",key:"aywv1n"}]],Oi=ie("newspaper",hN);/**
|
|
385
|
-
* @license lucide-react v1.7.0 - ISC
|
|
386
|
-
*
|
|
387
|
-
* This source code is licensed under the ISC license.
|
|
388
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
389
|
-
*/const mN=[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]],pN=ie("package",mN);/**
|
|
390
|
-
* @license lucide-react v1.7.0 - ISC
|
|
391
|
-
*
|
|
392
|
-
* This source code is licensed under the ISC license.
|
|
393
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
394
|
-
*/const xN=[["path",{d:"m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551",key:"1miecu"}]],gN=ie("paperclip",xN);/**
|
|
395
|
-
* @license lucide-react v1.7.0 - ISC
|
|
396
|
-
*
|
|
397
|
-
* This source code is licensed under the ISC license.
|
|
398
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
399
|
-
*/const bN=[["rect",{x:"14",y:"3",width:"5",height:"18",rx:"1",key:"kaeet6"}],["rect",{x:"5",y:"3",width:"5",height:"18",rx:"1",key:"1wsw3u"}]],vN=ie("pause",bN);/**
|
|
400
|
-
* @license lucide-react v1.7.0 - ISC
|
|
401
|
-
*
|
|
402
|
-
* This source code is licensed under the ISC license.
|
|
403
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
404
|
-
*/const yN=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]],SN=ie("pen",yN);/**
|
|
405
|
-
* @license lucide-react v1.7.0 - ISC
|
|
406
|
-
*
|
|
407
|
-
* This source code is licensed under the ISC license.
|
|
408
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
409
|
-
*/const QN=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]],rd=ie("pencil",QN);/**
|
|
410
|
-
* @license lucide-react v1.7.0 - ISC
|
|
411
|
-
*
|
|
412
|
-
* This source code is licensed under the ISC license.
|
|
413
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
414
|
-
*/const jN=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],wN=ie("play",jN);/**
|
|
415
|
-
* @license lucide-react v1.7.0 - ISC
|
|
416
|
-
*
|
|
417
|
-
* This source code is licensed under the ISC license.
|
|
418
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
419
|
-
*/const kN=[["path",{d:"M6.3 20.3a2.4 2.4 0 0 0 3.4 0L12 18l-6-6-2.3 2.3a2.4 2.4 0 0 0 0 3.4Z",key:"goz73y"}],["path",{d:"m2 22 3-3",key:"19mgm9"}],["path",{d:"M7.5 13.5 10 11",key:"7xgeeb"}],["path",{d:"M10.5 16.5 13 14",key:"10btkg"}],["path",{d:"m18 3-4 4h6l-4 4",key:"16psg9"}]],b1=ie("plug-zap",kN);/**
|
|
420
|
-
* @license lucide-react v1.7.0 - ISC
|
|
421
|
-
*
|
|
422
|
-
* This source code is licensed under the ISC license.
|
|
423
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
424
|
-
*/const $N=[["path",{d:"M12 22v-5",key:"1ega77"}],["path",{d:"M15 8V2",key:"18g5xt"}],["path",{d:"M17 8a1 1 0 0 1 1 1v4a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1z",key:"1xoxul"}],["path",{d:"M9 8V2",key:"14iosj"}]],Vl=ie("plug",$N);/**
|
|
425
|
-
* @license lucide-react v1.7.0 - ISC
|
|
426
|
-
*
|
|
427
|
-
* This source code is licensed under the ISC license.
|
|
428
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
429
|
-
*/const TN=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],rs=ie("plus",TN);/**
|
|
430
|
-
* @license lucide-react v1.7.0 - ISC
|
|
431
|
-
*
|
|
432
|
-
* This source code is licensed under the ISC license.
|
|
433
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
434
|
-
*/const NN=[["path",{d:"M2 3h20",key:"91anmk"}],["path",{d:"M21 3v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V3",key:"2k9sn8"}],["path",{d:"m7 21 5-5 5 5",key:"bip4we"}]],PN=ie("presentation",NN);/**
|
|
435
|
-
* @license lucide-react v1.7.0 - ISC
|
|
436
|
-
*
|
|
437
|
-
* This source code is licensed under the ISC license.
|
|
438
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
439
|
-
*/const zN=[["path",{d:"M15.39 4.39a1 1 0 0 0 1.68-.474 2.5 2.5 0 1 1 3.014 3.015 1 1 0 0 0-.474 1.68l1.683 1.682a2.414 2.414 0 0 1 0 3.414L19.61 15.39a1 1 0 0 1-1.68-.474 2.5 2.5 0 1 0-3.014 3.015 1 1 0 0 1 .474 1.68l-1.683 1.682a2.414 2.414 0 0 1-3.414 0L8.61 19.61a1 1 0 0 0-1.68.474 2.5 2.5 0 1 1-3.014-3.015 1 1 0 0 0 .474-1.68l-1.683-1.682a2.414 2.414 0 0 1 0-3.414L4.39 8.61a1 1 0 0 1 1.68.474 2.5 2.5 0 1 0 3.014-3.015 1 1 0 0 1-.474-1.68l1.683-1.682a2.414 2.414 0 0 1 3.414 0z",key:"w46dr5"}]],cv=ie("puzzle",zN);/**
|
|
440
|
-
* @license lucide-react v1.7.0 - ISC
|
|
441
|
-
*
|
|
442
|
-
* This source code is licensed under the ISC license.
|
|
443
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
444
|
-
*/const CN=[["path",{d:"M16.247 7.761a6 6 0 0 1 0 8.478",key:"1fwjs5"}],["path",{d:"M19.075 4.933a10 10 0 0 1 0 14.134",key:"ehdyv1"}],["path",{d:"M4.925 19.067a10 10 0 0 1 0-14.134",key:"1q22gi"}],["path",{d:"M7.753 16.239a6 6 0 0 1 0-8.478",key:"r2q7qm"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]],mh=ie("radio",CN);/**
|
|
445
|
-
* @license lucide-react v1.7.0 - ISC
|
|
446
|
-
*
|
|
447
|
-
* This source code is licensed under the ISC license.
|
|
448
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
449
|
-
*/const RN=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],Qn=ie("refresh-cw",RN);/**
|
|
450
|
-
* @license lucide-react v1.7.0 - ISC
|
|
451
|
-
*
|
|
452
|
-
* This source code is licensed under the ISC license.
|
|
453
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
454
|
-
*/const _N=[["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}],["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09",key:"u4xsad"}],["path",{d:"M9 12a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.4 22.4 0 0 1-4 2z",key:"676m9"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 .05 5 .05",key:"92ym6u"}]],dv=ie("rocket",_N);/**
|
|
455
|
-
* @license lucide-react v1.7.0 - ISC
|
|
456
|
-
*
|
|
457
|
-
* This source code is licensed under the ISC license.
|
|
458
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
459
|
-
*/const AN=[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]],ki=ie("rotate-cw",AN);/**
|
|
460
|
-
* @license lucide-react v1.7.0 - ISC
|
|
461
|
-
*
|
|
462
|
-
* This source code is licensed under the ISC license.
|
|
463
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
464
|
-
*/const XN=[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]],ZN=ie("save",XN);/**
|
|
465
|
-
* @license lucide-react v1.7.0 - ISC
|
|
466
|
-
*
|
|
467
|
-
* This source code is licensed under the ISC license.
|
|
468
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
469
|
-
*/const EN=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],An=ie("search",EN);/**
|
|
470
|
-
* @license lucide-react v1.7.0 - ISC
|
|
471
|
-
*
|
|
472
|
-
* This source code is licensed under the ISC license.
|
|
473
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
474
|
-
*/const qN=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],ph=ie("send",qN);/**
|
|
475
|
-
* @license lucide-react v1.7.0 - ISC
|
|
476
|
-
*
|
|
477
|
-
* This source code is licensed under the ISC license.
|
|
478
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
479
|
-
*/const MN=[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]],uv=ie("server",MN);/**
|
|
480
|
-
* @license lucide-react v1.7.0 - ISC
|
|
481
|
-
*
|
|
482
|
-
* This source code is licensed under the ISC license.
|
|
483
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
484
|
-
*/const YN=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],fv=ie("settings",YN);/**
|
|
485
|
-
* @license lucide-react v1.7.0 - ISC
|
|
486
|
-
*
|
|
487
|
-
* This source code is licensed under the ISC license.
|
|
488
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
489
|
-
*/const UN=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Ov=ie("shield-check",UN);/**
|
|
490
|
-
* @license lucide-react v1.7.0 - ISC
|
|
491
|
-
*
|
|
492
|
-
* This source code is licensed under the ISC license.
|
|
493
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
494
|
-
*/const VN=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m14.5 9.5-5 5",key:"17q4r4"}],["path",{d:"m9.5 9.5 5 5",key:"18nt4w"}]],GN=ie("shield-x",VN);/**
|
|
495
|
-
* @license lucide-react v1.7.0 - ISC
|
|
496
|
-
*
|
|
497
|
-
* This source code is licensed under the ISC license.
|
|
498
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
499
|
-
*/const DN=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]],Ms=ie("shield",DN);/**
|
|
500
|
-
* @license lucide-react v1.7.0 - ISC
|
|
501
|
-
*
|
|
502
|
-
* This source code is licensed under the ISC license.
|
|
503
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
504
|
-
*/const LN=[["path",{d:"M16 10a4 4 0 0 1-8 0",key:"1ltviw"}],["path",{d:"M3.103 6.034h17.794",key:"awc11p"}],["path",{d:"M3.4 5.467a2 2 0 0 0-.4 1.2V20a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6.667a2 2 0 0 0-.4-1.2l-2-2.667A2 2 0 0 0 17 2H7a2 2 0 0 0-1.6.8z",key:"o988cm"}]],Mf=ie("shopping-bag",LN);/**
|
|
505
|
-
* @license lucide-react v1.7.0 - ISC
|
|
506
|
-
*
|
|
507
|
-
* This source code is licensed under the ISC license.
|
|
508
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
509
|
-
*/const WN=[["path",{d:"m12.5 17-.5-1-.5 1h1z",key:"3me087"}],["path",{d:"M15 22a1 1 0 0 0 1-1v-1a2 2 0 0 0 1.56-3.25 8 8 0 1 0-11.12 0A2 2 0 0 0 8 20v1a1 1 0 0 0 1 1z",key:"1o5pge"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}]],xh=ie("skull",WN);/**
|
|
510
|
-
* @license lucide-react v1.7.0 - ISC
|
|
511
|
-
*
|
|
512
|
-
* This source code is licensed under the ISC license.
|
|
513
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
514
|
-
*/const BN=[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],ql=ie("sparkles",BN);/**
|
|
515
|
-
* @license lucide-react v1.7.0 - ISC
|
|
516
|
-
*
|
|
517
|
-
* This source code is licensed under the ISC license.
|
|
518
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
519
|
-
*/const HN=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],IN=ie("square",HN);/**
|
|
520
|
-
* @license lucide-react v1.7.0 - ISC
|
|
521
|
-
*
|
|
522
|
-
* This source code is licensed under the ISC license.
|
|
523
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
524
|
-
*/const FN=[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]],hv=ie("star",FN);/**
|
|
525
|
-
* @license lucide-react v1.7.0 - ISC
|
|
526
|
-
*
|
|
527
|
-
* This source code is licensed under the ISC license.
|
|
528
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
529
|
-
*/const KN=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],$i=ie("terminal",KN);/**
|
|
530
|
-
* @license lucide-react v1.7.0 - ISC
|
|
531
|
-
*
|
|
532
|
-
* This source code is licensed under the ISC license.
|
|
533
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
534
|
-
*/const JN=[["path",{d:"M14.5 2v17.5c0 1.4-1.1 2.5-2.5 2.5c-1.4 0-2.5-1.1-2.5-2.5V2",key:"125lnx"}],["path",{d:"M8.5 2h7",key:"csnxdl"}],["path",{d:"M14.5 16h-5",key:"1ox875"}]],gh=ie("test-tube",JN);/**
|
|
535
|
-
* @license lucide-react v1.7.0 - ISC
|
|
536
|
-
*
|
|
537
|
-
* This source code is licensed under the ISC license.
|
|
538
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
539
|
-
*/const eP=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],Zn=ie("trash-2",eP);/**
|
|
540
|
-
* @license lucide-react v1.7.0 - ISC
|
|
541
|
-
*
|
|
542
|
-
* This source code is licensed under the ISC license.
|
|
543
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
544
|
-
*/const tP=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],Ti=ie("triangle-alert",tP);/**
|
|
545
|
-
* @license lucide-react v1.7.0 - ISC
|
|
546
|
-
*
|
|
547
|
-
* This source code is licensed under the ISC license.
|
|
548
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
549
|
-
*/const nP=[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]],aP=ie("upload",nP);/**
|
|
550
|
-
* @license lucide-react v1.7.0 - ISC
|
|
551
|
-
*
|
|
552
|
-
* This source code is licensed under the ISC license.
|
|
553
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
554
|
-
*/const sP=[["path",{d:"m16 11 2 2 4-4",key:"9rsbq5"}],["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],lP=ie("user-check",sP);/**
|
|
555
|
-
* @license lucide-react v1.7.0 - ISC
|
|
556
|
-
*
|
|
557
|
-
* This source code is licensed under the ISC license.
|
|
558
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
559
|
-
*/const rP=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["line",{x1:"19",x2:"19",y1:"8",y2:"14",key:"1bvyxn"}],["line",{x1:"22",x2:"16",y1:"11",y2:"11",key:"1shjgl"}]],iP=ie("user-plus",rP);/**
|
|
560
|
-
* @license lucide-react v1.7.0 - ISC
|
|
561
|
-
*
|
|
562
|
-
* This source code is licensed under the ISC license.
|
|
563
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
564
|
-
*/const oP=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],mv=ie("user",oP);/**
|
|
565
|
-
* @license lucide-react v1.7.0 - ISC
|
|
566
|
-
*
|
|
567
|
-
* This source code is licensed under the ISC license.
|
|
568
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
569
|
-
*/const cP=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],Ni=ie("users",cP);/**
|
|
570
|
-
* @license lucide-react v1.7.0 - ISC
|
|
571
|
-
*
|
|
572
|
-
* This source code is licensed under the ISC license.
|
|
573
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
574
|
-
*/const dP=[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]],uP=ie("wrench",dP);/**
|
|
575
|
-
* @license lucide-react v1.7.0 - ISC
|
|
576
|
-
*
|
|
577
|
-
* This source code is licensed under the ISC license.
|
|
578
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
579
|
-
*/const fP=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Qt=ie("x",fP);/**
|
|
580
|
-
* @license lucide-react v1.7.0 - ISC
|
|
581
|
-
*
|
|
582
|
-
* This source code is licensed under the ISC license.
|
|
583
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
584
|
-
*/const OP=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],En=ie("zap",OP),hP={success:ls,error:xa,info:sv,warning:Ti},mP={success:"border-l-success",error:"border-l-danger",info:"border-l-accent",warning:"border-l-warning"},pP={success:"text-success",error:"text-danger",info:"text-accent",warning:"text-warning"},xP={success:3e3,error:0,info:5e3,warning:5e3};function gP({toast:e}){const n=B(o=>o.removeToast),l=hP[e.type]||sv,r=xP[e.type];return v.useEffect(()=>{if(!r)return;const o=setTimeout(()=>n(e.id),r);return()=>clearTimeout(o)},[e.id,r,n]),s.jsxs(WO.div,{layout:!0,initial:{opacity:0,x:80,scale:.95},animate:{opacity:1,x:0,scale:1},exit:{opacity:0,x:80,scale:.95},transition:{duration:.2},className:oe("w-80 rounded-md border border-border bg-surface-1 shadow-xl","border-l-4 flex items-center gap-3 px-4 py-3",mP[e.type]),children:[s.jsx(l,{size:16,className:oe("flex-shrink-0",pP[e.type])}),s.jsxs("div",{className:"flex-1 min-w-0",children:[s.jsx("p",{className:"text-sm text-text-0 font-sans",children:e.message}),e.detail&&s.jsx("p",{className:"text-xs text-text-3 font-sans mt-0.5",children:e.detail})]}),s.jsx("button",{onClick:o=>{o.stopPropagation(),n(e.id)},className:"p-1.5 text-text-4 hover:text-text-1 hover:bg-surface-5 rounded transition-colors cursor-pointer flex-shrink-0 z-10",children:s.jsx(Qt,{size:14})})]})}function bP(){const e=B(n=>n.toasts);return s.jsx("div",{className:"fixed bottom-4 right-4 z-[100] flex flex-col-reverse gap-2",children:s.jsx(LO,{mode:"popLayout",children:e.slice(-3).map(n=>s.jsx(gP,{toast:n},n.id))})})}const vP=[{id:"agents",icon:ov,label:"Agents"},{id:"editor",icon:ds,label:"Editor"},{id:"dashboard",icon:Fb,label:"Dashboard"},{id:"marketplace",icon:cv,label:"Marketplace"},{id:"models",icon:uh,label:"Models"},{id:"teams",icon:Ni,label:"Teams"}],yP=[{id:"journalist",icon:Oi,label:"Journalist",panel:!0},{id:"settings",icon:fv,label:"Settings",nav:!0}];function SP({activeView:e,detailPanel:n,onNavigate:l,onTogglePanel:r}){return s.jsxs("nav",{className:"w-12 flex-shrink-0 flex flex-col bg-surface-3 border-r border-border",children:[s.jsx("div",{className:"flex flex-col items-center gap-0.5 pt-2",children:vP.map(o=>s.jsx(zc,{content:o.label,side:"right",children:s.jsx("button",{onClick:()=>l(o.id),className:oe("w-10 h-10 flex items-center justify-center rounded-md transition-colors cursor-pointer",e===o.id?"text-text-0 bg-surface-5":"text-text-3 hover:text-text-1 hover:bg-surface-4"),children:s.jsx(o.icon,{size:20,strokeWidth:e===o.id?2:1.5})})},o.id))}),s.jsx("div",{className:"flex-1"}),s.jsx("div",{className:"flex flex-col items-center gap-0.5 pb-2",children:yP.map(o=>{const d=o.panel?(n==null?void 0:n.type)===o.id:e===o.id;return s.jsx(zc,{content:o.label,side:"right",children:s.jsx("button",{onClick:()=>o.panel?r(o.id):l(o.id),className:oe("w-10 h-10 flex items-center justify-center rounded-md transition-colors cursor-pointer",d?"text-text-0 bg-surface-5":"text-text-3 hover:text-text-1 hover:bg-surface-4"),children:s.jsx(o.icon,{size:20,strokeWidth:d?2:1.5})})},o.id)})})]})}const QP={agents:"Agents",editor:"Editor",dashboard:"Dashboard",marketplace:"Marketplace",teams:"Teams"};function jP({activeView:e,connected:n,daemonHost:l,editorActiveFile:r,onOpenCommandPalette:o,onSpawn:d}){const u=["Groove",QP[e]||e];return e==="editor"&&r&&u.push(r.split("/").pop()),s.jsxs("header",{className:"h-11 flex-shrink-0 flex items-center gap-3 px-4 bg-surface-3 border-b border-border",children:[s.jsx("img",{src:"/favicon.png",alt:"Groove",className:"h-7 w-7 rounded-full flex-shrink-0"}),l&&s.jsx("span",{className:"text-2xs font-mono font-semibold text-text-3 bg-surface-5 px-1.5 py-0.5 rounded flex-shrink-0",children:l}),s.jsx("div",{className:"flex-1 min-w-4"}),s.jsxs("button",{onClick:o,className:oe("flex items-center gap-2.5 h-8 px-4 rounded-full w-full max-w-md","bg-surface-1 border border-border-subtle","text-sm text-text-4 font-sans","hover:border-border hover:text-text-3 transition-colors cursor-pointer"),children:[s.jsx(An,{size:14,className:"flex-shrink-0"}),s.jsx("span",{className:"flex-1 text-left",children:"Search commands..."}),s.jsx("kbd",{className:"text-2xs font-mono bg-surface-4 px-1.5 py-0.5 rounded-full text-text-4",children:"Cmd+K"})]}),s.jsx("div",{className:"flex-1 min-w-4"}),s.jsx("div",{className:"flex items-center gap-1 text-xs font-sans text-text-3 flex-shrink-0",children:u.map((f,h)=>s.jsxs("span",{className:"flex items-center gap-1",children:[h>0&&s.jsx(cs,{size:11,className:"text-text-4"}),s.jsx("span",{className:oe(h===u.length-1?"text-text-2":"text-text-4"),children:f})]},h))}),n&&s.jsxs("button",{onClick:d,className:"ml-1 flex items-center gap-1 h-7 px-3.5 rounded-full bg-accent/15 text-accent text-xs font-semibold font-sans hover:bg-accent/25 transition-colors cursor-pointer select-none flex-shrink-0",children:[s.jsx(rs,{size:14}),"Spawn"]})]})}const wP={running:"var(--color-success)",starting:"var(--color-warning)",stopped:"var(--color-text-3)",crashed:"var(--color-danger)",completed:"var(--color-accent)",killed:"var(--color-text-3)",rotating:"var(--color-purple)"};function bh(e){return wP[e]||"var(--color-text-3)"}const kP={planner:{bg:"rgba(74, 225, 104, 0.12)",text:"#4ae168",border:"#4ae168"},backend:{bg:"rgba(51, 175, 188, 0.12)",text:"#33afbc",border:"#33afbc"},frontend:{bg:"rgba(229, 192, 123, 0.12)",text:"#e5c07b",border:"#e5c07b"},fullstack:{bg:"rgba(74, 225, 104, 0.12)",text:"#4ae168",border:"#4ae168"},testing:{bg:"rgba(97, 175, 239, 0.12)",text:"#61afef",border:"#61afef"},devops:{bg:"rgba(209, 154, 102, 0.12)",text:"#d19a66",border:"#d19a66"},docs:{bg:"rgba(139, 146, 158, 0.12)",text:"#8b929e",border:"#8b929e"},security:{bg:"rgba(224, 108, 117, 0.12)",text:"#e06c75",border:"#e06c75"},database:{bg:"rgba(198, 120, 221, 0.12)",text:"#c678dd",border:"#c678dd"},cmo:{bg:"rgba(229, 192, 123, 0.12)",text:"#e5c07b",border:"#e5c07b"},cfo:{bg:"rgba(74, 225, 104, 0.12)",text:"#4ae168",border:"#4ae168"},ea:{bg:"rgba(97, 175, 239, 0.12)",text:"#61afef",border:"#61afef"},support:{bg:"rgba(51, 175, 188, 0.12)",text:"#33afbc",border:"#33afbc"},analyst:{bg:"rgba(198, 120, 221, 0.12)",text:"#c678dd",border:"#c678dd"},creative:{bg:"rgba(229, 192, 123, 0.12)",text:"#e5c07b",border:"#e5c07b"},slides:{bg:"rgba(209, 154, 102, 0.12)",text:"#d19a66",border:"#d19a66"}};function ns(e){const n=(e||"").toLowerCase();return kP[n]||{bg:"rgba(139, 146, 158, 0.12)",text:"#8b929e",border:"#8b929e"}}function Ys({status:e,size:n="md",className:l}){const r=e==="running"||e==="starting",o=n==="sm"?"w-1.5 h-1.5":n==="lg"?"w-3 h-3":"w-2 h-2";return s.jsx("span",{className:oe("rounded-full inline-block flex-shrink-0",r&&"animate-pulse",o,l),style:{background:bh(e)}})}function Ie(e){return e==null||isNaN(e)?"0":e>=1e6?(e/1e6).toFixed(1).replace(/\.0$/,"")+"M":e>=1e3?(e/1e3).toFixed(1).replace(/\.0$/,"")+"k":Math.round(e).toLocaleString()}function us(e){return e==null||isNaN(e)?"$0":e>=1e3?"$"+(e/1e3).toFixed(1).replace(/\.0$/,"")+"k":e>=1||e>=.01?"$"+e.toFixed(2):"$"+e.toFixed(3)}function xn(e){return e==null||isNaN(e)?"0%":Math.round(e)+"%"}function Pi(e){if(!e||e<0)return"0s";const n=Math.floor(e/86400),l=Math.floor(e%86400/3600),r=Math.floor(e%3600/60),o=Math.floor(e%60);return n>0?`${n}d ${l}h`:l>0?`${l}h ${r}m`:r>0?`${r}m ${o}s`:`${o}s`}function jt(e){if(!e)return"";const n=(Date.now()-new Date(e).getTime())/1e3;return n<5?"just now":n<60?`${Math.floor(n)}s ago`:n<3600?`${Math.floor(n/60)}m ago`:n<86400?`${Math.floor(n/3600)}h ago`:`${Math.floor(n/86400)}d ago`}function $P({connected:e,agentCount:n,runningCount:l,uptime:r,terminalVisible:o,onToggleTerminal:d}){return s.jsxs("footer",{className:"h-6 flex-shrink-0 flex items-center px-3 bg-surface-3 border-t border-border text-2xs font-sans select-none",children:[s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsxs("div",{className:"flex items-center gap-1.5",children:[s.jsx(Ys,{status:e?"running":"crashed",size:"sm"}),s.jsx("span",{className:e?"text-text-2":"text-danger",children:e?"Connected":"Offline"})]}),e&&r>0&&s.jsxs("span",{className:"text-text-4",children:["Up ",Pi(r)]}),e&&n>0&&s.jsxs("span",{className:"text-text-4",children:[l,"/",n," agents"]})]}),s.jsx("div",{className:"flex-1"}),s.jsxs("a",{href:"https://docs.groovedev.ai",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-1.5 px-2 h-full text-text-3 hover:text-text-1 hover:bg-surface-5 transition-colors no-underline",children:[s.jsx(dh,{size:12}),s.jsx("span",{children:"Docs"})]}),s.jsxs("button",{onClick:d,className:oe("flex items-center gap-1.5 px-2 h-full transition-colors cursor-pointer",o?"text-accent bg-accent/8 hover:bg-accent/12":"text-text-3 hover:text-text-1 hover:bg-surface-5"),children:[s.jsx($i,{size:12}),s.jsx("span",{children:"Terminal"}),s.jsx("kbd",{className:"font-mono text-text-4 ml-0.5",children:"Cmd+J"})]})]})}function TP({children:e,width:n,onWidthChange:l,onClose:r,className:o}){const d=v.useRef(!1),u=v.useRef(0),f=v.useRef(0),h=v.useCallback(p=>{p.preventDefault(),d.current=!0,u.current=p.clientX,f.current=n;function g(b){if(!d.current)return;const y=u.current-b.clientX,Q=Math.min(Math.max(f.current+y,380),window.innerWidth*.65);l(Q)}function x(){d.current=!1,document.removeEventListener("mousemove",g),document.removeEventListener("mouseup",x)}document.addEventListener("mousemove",g),document.addEventListener("mouseup",x)},[n,l]);return s.jsxs("aside",{className:oe("flex-shrink-0 flex bg-surface-1 border-l border-border relative",o),style:{width:n},children:[s.jsx("div",{className:"absolute left-0 top-0 bottom-0 w-1 cursor-col-resize hover:bg-accent/30 transition-colors z-10",onMouseDown:h}),s.jsx("button",{onClick:r,className:"absolute top-3 right-3 z-10 p-1 rounded-md text-text-3 hover:text-text-0 hover:bg-surface-5 transition-colors cursor-pointer",children:s.jsx(Qt,{size:14})}),s.jsx("div",{className:"flex-1 overflow-y-auto overflow-x-hidden",children:e})]})}const NP=[{id:"nav:agents",label:"Go to Agents",icon:ov,category:"Navigation",action:e=>{e.setActiveView("agents")}},{id:"nav:editor",label:"Go to Editor",icon:ds,category:"Navigation",action:e=>{e.setActiveView("editor")}},{id:"nav:dashboard",label:"Go to Dashboard",icon:Fb,category:"Navigation",action:e=>{e.setActiveView("dashboard")}},{id:"nav:marketplace",label:"Go to Marketplace",icon:cv,category:"Navigation",action:e=>{e.setActiveView("marketplace")}},{id:"nav:teams",label:"Go to Teams",icon:Ni,category:"Navigation",action:e=>{e.setActiveView("teams")}},{id:"action:spawn",label:"Spawn Agent",icon:rs,category:"Actions",action:e=>{e.openDetail({type:"spawn"})}},{id:"action:terminal",label:"Toggle Terminal",icon:$i,category:"Actions",action:e=>{e.setTerminalVisible(!e.terminalVisible)},shortcut:"Cmd+J"},{id:"action:journalist",label:"Toggle Journalist",icon:Oi,category:"Actions",action:e=>{var n;((n=e.detailPanel)==null?void 0:n.type)==="journalist"?e.closeDetail():e.openDetail({type:"journalist"})}}];function PP(){const e=B(y=>y.commandPaletteOpen),n=B(y=>y.toggleCommandPalette),l=B(y=>y.agents),r=B,[o,d]=v.useState(""),[u,f]=v.useState(0),h=v.useRef(null),p=v.useMemo(()=>{const y=l.flatMap(Q=>[{id:`chat:${Q.id}`,label:`Chat with ${Q.name}`,icon:wi,category:"Agents",action:w=>{w.selectAgent(Q.id)}},...Q.status==="running"?[{id:`rotate:${Q.id}`,label:`Rotate ${Q.name}`,icon:ki,category:"Agents",action:w=>{w.rotateAgent(Q.id)}},{id:`kill:${Q.id}`,label:`Kill ${Q.name}`,icon:xh,category:"Agents",action:w=>{w.killAgent(Q.id)}}]:[]]);return[...NP,...y]},[l]),g=v.useMemo(()=>{if(!o.trim())return p.slice(0,12);const y=o.toLowerCase();return p.filter(Q=>Q.label.toLowerCase().includes(y)||Q.category.toLowerCase().includes(y)).slice(0,12)},[p,o]);v.useEffect(()=>{e&&(d(""),f(0),setTimeout(()=>{var y;return(y=h.current)==null?void 0:y.focus()},50))},[e]),v.useEffect(()=>{u>=g.length&&f(Math.max(0,g.length-1))},[g.length,u]);function x(y){y.action(r.getState()),n()}function b(y){y.key==="ArrowDown"?(y.preventDefault(),f(Q=>Math.min(Q+1,g.length-1))):y.key==="ArrowUp"?(y.preventDefault(),f(Q=>Math.max(Q-1,0))):y.key==="Enter"&&g[u]?(y.preventDefault(),x(g[u])):y.key==="Escape"&&n()}return e?s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"fixed inset-0 z-50 bg-black/40 backdrop-blur-sm",onClick:n}),s.jsx(LO,{children:s.jsxs(WO.div,{initial:{opacity:0,y:-20,scale:.96},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:-10,scale:.98},transition:{duration:.15},className:"fixed top-[15%] left-1/2 -translate-x-1/2 z-50 w-[480px] max-h-[400px] bg-surface-1 border border-border rounded-lg shadow-2xl overflow-hidden",onKeyDown:b,children:[s.jsxs("div",{className:"flex items-center gap-2 px-4 py-3 border-b border-border-subtle",children:[s.jsx(An,{size:16,className:"text-text-3 flex-shrink-0"}),s.jsx("input",{ref:h,value:o,onChange:y=>{d(y.target.value),f(0)},placeholder:"Type a command...",className:"flex-1 bg-transparent text-sm text-text-0 font-sans placeholder:text-text-4 focus:outline-none"})]}),s.jsxs("div",{className:"overflow-y-auto max-h-[320px] py-1",children:[g.length===0&&s.jsx("div",{className:"px-4 py-6 text-sm text-text-3 text-center font-sans",children:"No results"}),g.map((y,Q)=>s.jsxs("button",{onClick:()=>x(y),onMouseEnter:()=>f(Q),className:oe("w-full flex items-center gap-3 px-4 py-2 text-sm font-sans cursor-pointer",Q===u?"bg-surface-5 text-text-0":"text-text-1 hover:bg-surface-4"),children:[s.jsx(y.icon,{size:16,className:"text-text-3 flex-shrink-0"}),s.jsx("span",{className:"flex-1 text-left",children:y.label}),s.jsx("span",{className:"text-2xs text-text-4",children:y.category}),y.shortcut&&s.jsx("kbd",{className:"text-2xs font-mono bg-surface-4 px-1 py-0.5 rounded text-text-3 ml-1",children:y.shortcut})]},y.id))]})]})})]}):null}const v1=[],zP=/error|crash|fail/i,tc="rgba(51, 175, 188, 0.15)",nc="h-[2px]";function CP(e){if(!e||e==="auto")return"auto";const n=e.match(/^claude-(opus|sonnet|haiku)-(\d+)-(\d+)(?:-\d+)?$/);return n?`${n[1][0].toUpperCase()+n[1].slice(1)} ${n[2]}.${n[3]}`:e.startsWith("gemini-")?e.replace("gemini-","Gemini ").replace("-preview","").replace("-flash-lite"," Flash Lite").replace("-flash"," Flash").replace("-pro"," Pro"):e.startsWith("gpt-")?e.toUpperCase().replace("GPT-","GPT-"):e}function RP(e){if(!e||e.length<2)return null;const n=e.slice(-10),l=(n[n.length-1].t-n[0].t)/6e4;return l<=0?null:(n[n.length-1].v-n[0].v)/l}function _P(e){return e>=70?"var(--color-success)":e>=40?"var(--color-warning)":"var(--color-danger)"}function AP(e){return e>=60?"var(--color-success)":e>=30?"var(--color-warning)":"var(--color-danger)"}const XP={running:"LIVE",starting:"INIT",stopped:"IDLE",crashed:"ERR",completed:"DONE",killed:"KILL",rotating:"ROT"},pv=v.memo(({data:e,selected:n})=>{const{agent:l}=e,r=l.status==="running"||l.status==="starting",o=Math.round((l.contextUsage||0)*100),d=bh(l.status),u=l.tokensUsed||0,f=v.useRef(null),h=B(R=>!!R.expandedNodes[l.id]),p=B(R=>R.toggleNodeExpanded);v.useEffect(()=>{var Y;const R=(Y=f.current)==null?void 0:Y.closest(".react-flow__node");R&&(R.style.zIndex=h?"1000":"")},[h]);const g=B(R=>R.activityLog[l.id])||v1,x=B(R=>R.tokenTimeline[l.id])||v1,b=RP(x),y=v.useMemo(()=>g.filter(R=>zP.test(R.text)).length,[g]),Q=o>75?"var(--color-danger)":o>50?"var(--color-warning)":"var(--color-success)",w=l.qualityScore!=null?Math.round(l.qualityScore):null,k=w!=null?_P(w):null,j=l.efficiency!=null?l.efficiency:null,P=j!=null?AP(j):null,z=l.durationMs?l.durationMs/1e3:l.spawnedAt?(Date.now()-new Date(l.spawnedAt).getTime())/1e3:l.createdAt?(Date.now()-new Date(l.createdAt).getTime())/1e3:0;return s.jsx("div",{ref:f,children:s.jsxs("div",{className:`w-[220px] overflow-hidden rounded-[4px] transition-all duration-200 ease-out bg-[#1c1f26] hover:bg-[#141720] border border-solid ${n?"border-[#2e323a]":"border-[#262a32]"} hover:border-[#2e3640]`,children:[s.jsx(Ka,{id:"top",type:"target",position:Ja.Top,className:"!w-1 !h-1 !bg-transparent !border-0"}),s.jsx(Ka,{id:"bottom",type:"target",position:Ja.Bottom,className:"!w-1 !h-1 !bg-transparent !border-0"}),s.jsx(Ka,{id:"left",type:"target",position:Ja.Left,className:"!w-1 !h-1 !bg-transparent !border-0"}),s.jsx(Ka,{id:"right",type:"target",position:Ja.Right,className:"!w-1 !h-1 !bg-transparent !border-0"}),r&&s.jsx("div",{className:"absolute inset-0 overflow-hidden pointer-events-none",style:{borderRadius:3},children:s.jsx("div",{className:"absolute left-0 right-0 h-px",style:{background:"linear-gradient(90deg, transparent 0%, rgba(97,175,239,0.25) 50%, transparent 100%)",animation:"node-scan 3s ease-in-out infinite"}})}),s.jsxs("div",{className:"px-3 pt-2.5 pb-1.5",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsxs("span",{className:"relative flex-shrink-0 w-[6px] h-[6px]",children:[s.jsx("span",{className:"absolute inset-0 rounded-sm",style:{background:d}}),r&&s.jsx("span",{className:"absolute inset-[-2px] rounded-sm",style:{background:d,opacity:.15,animation:"node-pulse-bar 2s ease-in-out infinite"}})]}),s.jsx("span",{className:"text-[12px] font-semibold text-[#e6e6e6] font-sans truncate flex-1 leading-none",children:l.name}),s.jsx("span",{className:"text-[7px] font-mono font-bold uppercase tracking-wider px-1 py-px rounded-sm",style:{color:d,background:d+"12"},children:XP[l.status]||l.status}),s.jsx("button",{className:"text-[#505862] hover:text-[#8b929e] cursor-pointer transition-colors flex-shrink-0",onClick:R=>{R.stopPropagation(),p(l.id)},children:h?s.jsx(Qt,{size:10}):s.jsx(rv,{size:10})})]}),s.jsxs("div",{className:"flex items-center gap-1.5 mt-1.5",children:[s.jsx("span",{className:"text-[9px] font-mono text-[#505862] uppercase tracking-[0.05em]",children:l.role}),s.jsx("span",{className:"text-[9px] text-[#2a2e36]",children:"/"}),s.jsx("span",{className:"text-[9px] font-mono text-[#505862]",children:CP(l.model)})]})]}),s.jsxs("div",{className:"px-3 pt-1 pb-2",children:[s.jsxs("div",{className:"flex items-baseline gap-1.5",children:[s.jsx("span",{className:"text-[14px] font-mono font-medium text-[#bcc2cd] leading-none",children:Ie(u)}),s.jsx("span",{className:"text-[8px] font-mono text-[#505862]",children:"tok"}),s.jsx("span",{className:"flex-1"}),s.jsxs("span",{className:"text-[9px] font-mono text-[#505862]",children:[o,"%"]})]}),s.jsx("div",{className:`mt-1.5 ${nc} rounded-sm overflow-hidden`,style:{background:tc},children:s.jsx("div",{className:"h-full rounded-sm transition-all duration-700",style:{width:`${Math.max(o,1)}%`,background:o>80?"var(--color-danger)":o>60?"var(--color-warning)":"var(--color-accent)"}})})]}),s.jsx("div",{className:"grid transition-[grid-template-rows] duration-200 ease-out",style:{gridTemplateRows:h?"1fr":"0fr"},children:s.jsxs("div",{className:"overflow-hidden",children:[s.jsx("div",{className:"mx-3 border-t border-white/[0.04]"}),s.jsxs("div",{className:"px-3 pt-1.5 pb-1",children:[s.jsxs("div",{className:"flex items-center justify-between mb-1",children:[s.jsx("span",{className:"text-[9px] font-mono text-[#505862] uppercase tracking-wider",children:"Context"}),(l.rotations||0)>0&&s.jsxs("span",{className:"text-[8px] font-mono text-[#606878] bg-white/[0.04] rounded px-1 py-px",children:[l.rotations,"x rot"]})]}),s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("div",{className:`flex-1 ${nc} rounded-sm overflow-hidden`,style:{background:tc},children:s.jsx("div",{className:"h-full rounded-sm transition-all duration-500",style:{width:`${Math.max(o,1)}%`,background:Q}})}),s.jsxs("span",{className:"text-[9px] font-mono font-medium",style:{color:Q},children:[o,"%"]})]})]}),s.jsxs("div",{className:"px-3 pt-1 pb-1",children:[s.jsx("span",{className:"text-[9px] font-mono text-[#505862] uppercase tracking-wider",children:"Quality"}),s.jsxs("div",{className:"flex items-center gap-2 mt-1",children:[s.jsx("div",{className:`flex-1 ${nc} rounded-sm overflow-hidden`,style:{background:tc},children:s.jsx("div",{className:"h-full rounded-sm transition-all duration-500",style:{width:`${w!=null?Math.max(w,1):0}%`,background:k||"#505862"}})}),s.jsx("span",{className:"text-[9px] font-mono font-medium",style:{color:k||"#505862"},children:w??"—"})]})]}),s.jsxs("div",{className:"px-3 pt-1 pb-1",children:[s.jsx("span",{className:"text-[9px] font-mono text-[#505862] uppercase tracking-wider",children:"Efficiency"}),s.jsxs("div",{className:"flex items-center gap-2 mt-1",children:[s.jsx("div",{className:`flex-1 ${nc} rounded-sm overflow-hidden`,style:{background:tc},children:s.jsx("div",{className:"h-full rounded-sm transition-all duration-500",style:{width:`${j!=null?Math.max(j,1):0}%`,background:P||"#505862"}})}),s.jsx("span",{className:"text-[9px] font-mono font-medium",style:{color:P||"#505862"},children:j!=null?`${j}%`:"—"})]})]}),s.jsx("div",{className:"px-3 pt-1 pb-1",children:s.jsxs("div",{className:"grid grid-cols-3 gap-1",children:[s.jsxs("div",{children:[s.jsx("div",{className:"text-[9px] font-mono font-medium text-[#bcc2cd]",children:us(l.costUsd||0)}),s.jsx("div",{className:"text-[7px] font-mono text-[#505862]",children:"cost"})]}),s.jsxs("div",{children:[s.jsx("div",{className:"text-[9px] font-mono font-medium text-[#bcc2cd]",children:b?Ie(Math.round(b)):"—"}),s.jsx("div",{className:"text-[7px] font-mono text-[#505862]",children:"tok/m"})]}),s.jsxs("div",{children:[s.jsx("div",{className:"text-[9px] font-mono font-medium text-[#bcc2cd]",children:l.turns||0}),s.jsx("div",{className:"text-[7px] font-mono text-[#505862]",children:"turns"})]})]})}),s.jsx("div",{className:"px-3 pt-1 pb-2",children:s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsxs("div",{className:"flex items-center gap-1",children:[s.jsx("span",{className:"text-[9px] font-mono text-[#8b929e]",children:Pi(Math.max(0,Math.floor(z)))}),s.jsx("span",{className:"text-[7px] font-mono text-[#505862]",children:"up"})]}),s.jsxs("div",{className:"flex items-center gap-1",children:[y>0?s.jsx("span",{className:"text-[9px] font-mono text-[var(--color-danger)]",children:y}):s.jsx("span",{className:"text-[9px] font-mono text-[#505862]",children:"0"}),s.jsx("span",{className:"text-[7px] font-mono text-[#505862]",children:"err"})]})]})})]})})]})})});pv.displayName="AgentNode";const xv=v.memo(({data:e})=>{const{agentCount:n,runningCount:l}=e,r=l>0,o={background:"transparent",border:0,width:2,height:2};return s.jsxs("div",{className:"relative flex items-center justify-center",style:{width:84,height:84},children:[s.jsx("div",{className:oe("absolute inset-0 rounded-full transition-all duration-500",r&&"animate-[spin-slow_30s_linear_infinite]"),style:{border:`1px dashed ${r?"rgba(97,175,239,0.5)":"rgba(97,175,239,0.25)"}`}}),s.jsx("div",{className:"absolute inset-[10px] rounded-full",style:{background:r?"radial-gradient(circle, rgba(97,175,239,0.15) 0%, transparent 70%)":"radial-gradient(circle, rgba(97,175,239,0.05) 0%, transparent 70%)",animation:r?"node-pulse-bar 2.5s ease-in-out infinite":"none"}}),s.jsx("div",{className:oe("w-14 h-14 rounded-full flex items-center justify-center relative z-10 transition-all duration-300",r?"bg-[#1c1f26] border-2 border-[#61afef]/35 shadow-[0_0_28px_rgba(97,175,239,0.15)]":"bg-[#1c1f26] border border-[#61afef]/20"),children:s.jsx("img",{src:"/favicon.png",alt:"G",className:oe("h-7 w-7 rounded-full transition-opacity",r?"opacity-90":"opacity-60")})}),n>0&&s.jsx("div",{className:oe("absolute z-20 min-w-[20px] h-[20px] rounded-sm flex items-center justify-center","text-[10px] font-mono font-bold px-1 transition-all duration-300",r?"bg-[#1c1f26] text-[#61afef] border border-[#61afef]/40":"bg-[#1c1f26] text-[#61afef]/60 border border-[#61afef]/20"),style:{bottom:2,right:2},children:n}),s.jsx(Ka,{id:"bottom",type:"source",position:Ja.Bottom,style:o}),s.jsx(Ka,{id:"right",type:"source",position:Ja.Right,style:o}),s.jsx(Ka,{id:"left",type:"source",position:Ja.Left,style:o}),s.jsx(Ka,{id:"top",type:"source",position:Ja.Top,style:o})]})});xv.displayName="RootNode";const ZP={primary:"bg-accent/20 text-accent border border-accent/25 hover:bg-accent/30 font-medium",secondary:"bg-surface-5/40 text-text-1 border border-border-subtle hover:bg-surface-5/70 hover:text-text-0",ghost:"bg-transparent text-text-2 border border-transparent hover:bg-surface-5/50 hover:text-text-0",danger:"bg-danger/12 text-danger border border-danger/15 hover:bg-danger/20",info:"bg-info/12 text-info border border-info/15 hover:bg-info/20",outline:"bg-transparent text-accent border border-accent/30 hover:bg-accent/10"},EP={sm:"h-7 px-2.5 text-xs gap-1.5 rounded",md:"h-8 px-3 text-sm gap-2 rounded",lg:"h-9 px-4 text-sm gap-2 rounded",icon:"h-8 w-8 rounded"},ve=v.forwardRef(({className:e,variant:n="secondary",size:l="md",children:r,...o},d)=>s.jsx("button",{ref:d,className:oe("inline-flex items-center justify-center font-sans transition-colors duration-100","focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-accent","disabled:opacity-40 disabled:pointer-events-none","cursor-pointer select-none",ZP[n],EP[l],e),...o,children:r}));ve.displayName="Button";const qP={default:"bg-surface-4 text-text-2",accent:"bg-accent/12 text-accent",success:"bg-success/12 text-success",warning:"bg-warning/12 text-warning",danger:"bg-danger/12 text-danger",info:"bg-info/12 text-info",purple:"bg-purple/12 text-purple",orange:"bg-orange/12 text-orange"};function Ce({children:e,variant:n="default",className:l,dot:r,...o}){return s.jsxs("span",{className:oe("inline-flex items-center gap-1 px-1.5 py-0.5","text-2xs font-semibold uppercase tracking-wider rounded","font-sans select-none whitespace-nowrap",qP[n],l),...o,children:[r&&s.jsx("span",{className:oe("w-1.5 h-1.5 rounded-full",r==="pulse"&&"animate-pulse"),style:{background:"currentColor"}}),e]})}const MP={agentNode:pv,rootNode:xv},Yf=220,Uf=82,ac=260,sc=130,Wa=4,pn="__groove_root__";function Vf(){try{return JSON.parse(localStorage.getItem("groove:nodePositions")||"{}")}catch{return{}}}function YP(e){try{localStorage.setItem("groove:nodePositions",JSON.stringify(e))}catch{}}function gv(){try{return JSON.parse(localStorage.getItem("groove:teamViewports")||"{}")}catch{return{}}}function UP(e,n){try{const l=gv();l[e]=n,localStorage.setItem("groove:teamViewports",JSON.stringify(l))}catch{}}function VP(e,n){const l=e.filter(u=>u.teamId===n);return l.length===0?"idle":l.some(u=>u.status==="running"||u.status==="starting")?"working":l.every(u=>u.status==="completed")?"completed":l.some(u=>u.status==="crashed")?"crashed":"idle"}function GP(){const e=B(T=>T.teams),n=B(T=>T.activeTeamId),l=B(T=>T.agents),r=B(T=>T.switchTeam),o=B(T=>T.createTeam),d=B(T=>T.deleteTeam),u=B(T=>T.renameTeam),f=B(T=>T.reorderTeams),[h,p]=v.useState(!1),[g,x]=v.useState(""),[b,y]=v.useState(null),[Q,w]=v.useState(""),k=v.useRef(!1),[j,P]=v.useState(null),[z,R]=v.useState(null);function Y(){const T=g.trim();!T||k.current||(k.current=!0,x(""),p(!1),o(T).finally(()=>{k.current=!1}))}function X(T){y(T.id),w(T.name)}function C(){const T=Q.trim();if(!T||!b){y(null);return}u(b,T),y(null)}return s.jsxs("div",{className:"flex items-end px-0 pt-0 pb-0 bg-surface-1 border-b border-border gap-0 flex-shrink-0",children:[e.map(T=>{const I=l.filter(G=>G.teamId===T.id).length,Z=T.id===n,K=b===T.id,F=l.filter(G=>G.teamId===T.id&&(G.status==="running"||G.status==="starting")).length;return s.jsxs("div",{draggable:!K,onDragStart:G=>{P(T.id),G.dataTransfer.effectAllowed="move",G.dataTransfer.setData("text/plain","")},onDragEnd:()=>{P(null),R(null)},onDragOver:G=>{G.preventDefault(),G.dataTransfer.dropEffect="move",j&&j!==T.id&&R(T.id)},onDragLeave:()=>{z===T.id&&R(null)},onDrop:G=>{if(G.preventDefault(),!j||j===T.id)return;const V=e.findIndex(N=>N.id===j),M=e.findIndex(N=>N.id===T.id);V!==-1&&M!==-1&&f(V,M),P(null),R(null)},onClick:()=>!K&&r(T.id),onDoubleClick:()=>X(T),className:oe("group relative flex items-center gap-2 px-4 h-9 text-xs font-sans cursor-pointer select-none transition-colors",Z?"text-text-0 font-semibold border-x border-x-border bg-[#242830]":"text-text-3 hover:text-text-1 hover:bg-surface-3/50",j===T.id&&"opacity-40",z===T.id&&j!==T.id&&"border-l-2 !border-l-accent"),children:[Z&&s.jsx("div",{className:"absolute top-0 left-0 right-0 h-px bg-accent",style:{height:"0.5px"}}),(()=>{const G=VP(l,T.id),V=G==="working"||G==="completed"?"text-green-400":G==="crashed"?"text-red-400":Z?"text-accent":"text-text-4";return s.jsxs("span",{className:"relative flex-shrink-0",children:[s.jsx(Ni,{size:13,className:oe(V,G==="working"&&"animate-pulse")}),G==="working"&&s.jsx("span",{className:"absolute -top-0.5 -right-0.5 w-1.5 h-1.5 rounded-full bg-green-400 animate-pulse"})]})})(),K?s.jsx("input",{value:Q,onChange:G=>w(G.target.value),onKeyDown:G=>{G.key==="Enter"&&C(),G.key==="Escape"&&y(null)},onBlur:C,className:"h-5 w-24 px-1.5 text-xs bg-surface-0 border border-accent rounded text-text-0 font-sans focus:outline-none",autoFocus:!0,onClick:G=>G.stopPropagation()}):s.jsx("span",{className:"truncate max-w-[120px]",children:T.name}),I>0&&!K&&s.jsx("span",{className:oe("flex items-center justify-center min-w-[18px] h-[18px] px-1 rounded-full text-2xs font-mono font-semibold",F>0?"bg-accent/15 text-accent":"bg-surface-4 text-text-3"),children:I}),!K&&s.jsxs("div",{className:"flex items-center gap-0.5 ml-0.5 opacity-0 group-hover:opacity-100 transition-opacity",children:[s.jsx("button",{onClick:G=>{G.stopPropagation(),X(T)},className:"p-0.5 rounded hover:bg-surface-5 text-text-4 hover:text-text-1 cursor-pointer",title:"Rename team",children:s.jsx(rd,{size:10})}),!T.isDefault&&s.jsx("button",{onClick:G=>{G.stopPropagation(),d(T.id)},className:"p-0.5 rounded hover:bg-surface-5 text-text-4 hover:text-danger cursor-pointer",title:"Delete team",children:s.jsx(Qt,{size:10})})]}),Z&&s.jsx("div",{className:"absolute bottom-[-1px] left-0 right-0 h-px bg-[#242830]"})]},T.id)}),h?s.jsxs("div",{className:"flex items-center gap-1.5 px-3 h-9 bg-surface-3/50",children:[s.jsx("input",{value:g,onChange:T=>x(T.target.value),onKeyDown:T=>{T.key==="Enter"&&Y(),T.key==="Escape"&&(p(!1),x(""))},placeholder:"Team name...",className:"h-5 w-28 px-1.5 text-xs bg-surface-0 border border-border-subtle rounded text-text-0 font-sans placeholder:text-text-4 focus:outline-none focus:ring-1 focus:ring-accent",autoFocus:!0}),s.jsx("button",{onClick:Y,disabled:!g.trim(),className:"p-1 rounded text-accent hover:bg-accent/10 cursor-pointer disabled:opacity-30 disabled:cursor-not-allowed",children:s.jsx(kt,{size:12})}),s.jsx("button",{onClick:()=>{p(!1),x("")},className:"p-1 rounded text-text-4 hover:text-text-1 cursor-pointer",children:s.jsx(Qt,{size:12})})]}):s.jsx("button",{onClick:()=>p(!0),className:"flex items-center justify-center w-9 h-9 text-text-4 hover:text-text-1 hover:bg-surface-3/50 cursor-pointer transition-colors",title:"New team",children:s.jsx(rs,{size:14})})]})}function DP(){const e=B(K=>K.agents),n=B(K=>K.activeTeamId),l=B(K=>K.tokenTimeline),r=B(K=>K.selectAgent),o=B(K=>K.closeDetail),d=v.useMemo(()=>e.filter(K=>K.teamId===n),[e,n]),{fitView:u,setViewport:f}=Uj(),[h,p]=v.useState(0),g=v.useRef(n),x=v.useMemo(()=>{const K=Vf(),F=d.filter(ee=>ee.status==="running").length,G=[{id:pn,type:"rootNode",position:K[pn]||{x:0,y:0},data:{agentCount:d.length,runningCount:F},draggable:!0,selectable:!1}],V=new Set,M=(ee,de)=>`${Math.round(ee/100)},${Math.round(de/100)}`,N=K[pn]||{x:0,y:0};V.add(M(N.x,N.y));const U=[];d.forEach((ee,de)=>{const se=ee.name||ee.id;if(K[se]){const we=K[se];V.add(M(we.x,we.y)),G.push({id:ee.id,type:"agentNode",position:we,data:{agent:ee,timeline:l[ee.id]||[]},draggable:!0,selectable:!0})}else U.push({agent:ee,index:de})});for(const{agent:ee,index:de}of U){const se=Math.floor(de/Wa),we=de%Wa;let be={x:-((Math.min(d.length-se*Wa,Wa)-1)*ac)/2+we*ac,y:sc+se*sc};for(;V.has(M(be.x,be.y));)be={x:be.x,y:be.y+sc};V.add(M(be.x,be.y)),G.push({id:ee.id,type:"agentNode",position:be,data:{agent:ee,timeline:l[ee.id]||[]},draggable:!0,selectable:!0})}return G},[d,l]),b=v.useMemo(()=>{const K=Vf(),F=K[pn]||{x:0,y:0};return d.map((G,V)=>{const M=G.name||G.id,N=Math.floor(V/Wa),U=V%Wa,de=-((Math.min(d.length-N*Wa,Wa)-1)*ac)/2,se=K[M]||{x:de+U*ac,y:140+N*sc},we=se.x+Yf/2-F.x,Qe=se.y+Uf/2-F.y;let me,be;return Math.abs(Qe)>Math.abs(we)?(me=Qe>0?"bottom":"top",be=Qe>0?"top":"bottom"):(me=we>0?"right":"left",be=we>0?"left":"right"),{id:`e-${pn}-${G.id}`,source:pn,target:G.id,sourceHandle:me,targetHandle:be,type:"default",animated:G.status==="running"}})},[d]),[y,Q,w]=Vj(x),[k,j,P]=Gj(b),z=v.useRef(new Set);v.useEffect(()=>{Q(K=>{const F=new Map(K.map(G=>[G.id,G]));return new Set(x.map(G=>G.id)),x.map(G=>{const V=F.get(G.id);return V?{...V,data:G.data}:G})})},[x,Q]),v.useEffect(()=>{j(()=>{const K=y.find(G=>G.id===pn);if(!K)return b;const F=K.position;return b.map(G=>{const V=y.find(de=>de.id===G.target);if(!V)return G;const M=V.position.x+Yf/2-F.x,N=V.position.y+Uf/2-F.y;let U,ee;return Math.abs(N)>Math.abs(M)?(U=N>0?"bottom":"top",ee=N>0?"top":"bottom"):(U=M>0?"right":"left",ee=M>0?"left":"right"),{...G,sourceHandle:U,targetHandle:ee}})})},[b,y,j]);const R=d.map(K=>K.id).join(","),Y=v.useRef(null);v.useEffect(()=>{if(g.current!==n){g.current=n,z.current=new Set(d.map(V=>V.id)),p(d.length);const G=gv()[n];G?f(G,{duration:200}):d.length>0&&u({padding:.3,maxZoom:1.2,duration:200});return}const K=new Set(d.map(G=>G.id)),F=d.length>0&&[...K].some(G=>!z.current.has(G));z.current=K,h===0&&d.length>0?u({padding:.3,maxZoom:1.2,duration:0}):F&&(clearTimeout(Y.current),Y.current=setTimeout(()=>u({padding:.3,maxZoom:1.2,duration:300}),500)),p(d.length)},[R,h,u,n,f]);const X=v.useCallback((K,F)=>{UP(n,F)},[n]),C=v.useCallback((K,F)=>{F.id!==pn&&r(F.id)},[r]),T=v.useCallback(()=>{o()},[o]),I=v.useCallback((K,F)=>{const G=y.find(M=>M.id===pn);if(!G)return;const V=G.position;j(M=>M.map(N=>{const U=N.source===F.id,ee=N.target===F.id;if(!U&&!ee)return N;const de=F.position,se=de.x+Yf/2-V.x,we=de.y+Uf/2-V.y;let Qe,me;return Math.abs(we)>Math.abs(se)?(Qe=we>0?"bottom":"top",me=we>0?"top":"bottom"):(Qe=se>0?"right":"left",me=se>0?"left":"right"),{...N,sourceHandle:Qe,targetHandle:me}}))},[y,j]),Z=v.useCallback((K,F)=>{const G=d.find(N=>N.id===F.id),V=F.id===pn?pn:(G==null?void 0:G.name)||F.id,M=Vf();M[V]=F.position,YP(M)},[d]);return s.jsx(Dj,{nodes:y,edges:k,nodeTypes:MP,onNodesChange:w,onEdgesChange:P,onNodeClick:C,onPaneClick:T,onNodeDrag:I,onNodeDragStop:Z,onMoveEnd:X,defaultViewport:{x:0,y:0,zoom:1.2},proOptions:{hideAttribution:!0},minZoom:.2,maxZoom:1.5,className:"bg-surface-2",children:s.jsx(Lj,{color:"rgba(97,175,239,0.03)",gap:24,size:1})})}function LP({onPlanner:e,onSpawn:n}){return s.jsx("div",{className:"w-full h-full flex items-center justify-center",children:s.jsxs("div",{className:"max-w-2xl w-full text-center space-y-10 px-8",children:[s.jsxs("div",{className:"relative mx-auto w-20 h-20",children:[s.jsx("div",{className:"absolute inset-0 rounded-full bg-accent/8 animate-pulse"}),s.jsx("div",{className:"absolute inset-1 rounded-full bg-surface-3 border border-border-subtle flex items-center justify-center shadow-lg shadow-accent/5",children:s.jsx("img",{src:"/favicon.png",alt:"Groove",className:"h-10 w-10 rounded-full"})})]}),s.jsxs("div",{className:"space-y-3",children:[s.jsx("h1",{className:"text-3xl font-bold text-text-0 font-sans tracking-tight",children:"Welcome to Groove"}),s.jsx("p",{className:"text-base text-text-2 font-sans max-w-md mx-auto leading-relaxed",children:"Your mission control for AI agents. Spawn, orchestrate, and ship faster than ever."})]}),s.jsxs("div",{className:"space-y-3 max-w-xl mx-auto",children:[s.jsxs("button",{onClick:e,className:"w-full flex items-center gap-4 p-5 rounded-lg border border-accent/25 bg-gradient-to-r from-accent/8 to-accent/3 hover:from-accent/14 hover:to-accent/6 hover:border-accent/40 transition-all cursor-pointer group text-left",children:[s.jsx("div",{className:"w-12 h-12 rounded-lg bg-accent/20 flex items-center justify-center group-hover:scale-110 transition-transform flex-shrink-0",children:s.jsx(En,{size:24,className:"text-accent"})}),s.jsxs("div",{className:"flex-1 min-w-0",children:[s.jsx("div",{className:"text-base font-semibold text-text-0 font-sans",children:"Start with a Planner"}),s.jsx("div",{className:"text-sm text-text-2 font-sans mt-0.5",children:"Describe what you want to build and let AI plan the perfect team"})]}),s.jsx("div",{className:"text-accent text-xs font-semibold font-sans flex-shrink-0 opacity-60 group-hover:opacity-100 transition-opacity",children:"Recommended"})]}),s.jsxs("button",{onClick:n,className:"w-full flex items-center gap-3 p-4 rounded-lg border border-border bg-surface-1 hover:bg-surface-2 hover:border-border transition-all cursor-pointer group text-left",children:[s.jsx("div",{className:"w-10 h-10 rounded-lg bg-surface-4 flex items-center justify-center group-hover:scale-110 transition-transform flex-shrink-0",children:s.jsx(rs,{size:20,className:"text-text-1"})}),s.jsxs("div",{className:"min-w-0",children:[s.jsx("div",{className:"text-sm font-semibold text-text-0 font-sans",children:"Spawn Agent"}),s.jsx("div",{className:"text-xs text-text-3 font-sans mt-0.5",children:"Choose a role and configure"})]})]})]}),s.jsxs("p",{className:"text-xs text-text-4 font-sans",children:[s.jsx("kbd",{className:"font-mono bg-surface-4 px-1.5 py-0.5 rounded text-text-3",children:"Cmd+K"}),s.jsx("span",{className:"mx-1.5",children:"command palette"}),s.jsx("span",{className:"text-text-4 mx-1",children:"·"}),s.jsx("kbd",{className:"font-mono bg-surface-4 px-1.5 py-0.5 rounded text-text-3",children:"Cmd+N"}),s.jsx("span",{className:"mx-1.5",children:"spawn"}),s.jsx("span",{className:"text-text-4 mx-1",children:"·"}),s.jsx("kbd",{className:"font-mono bg-surface-4 px-1.5 py-0.5 rounded text-text-3",children:"Cmd+J"}),s.jsx("span",{className:"mx-1.5",children:"terminal"})]})]})})}const WP={backend:uv,frontend:hh,fullstack:ds,testing:gh,security:Ms},BP=/^[a-zA-Z0-9_-]{1,64}$/;function HP(e){return e.replace(/\s+/g,"-").replace(/[^a-zA-Z0-9_-]/g,"").slice(0,64)}function IP(){var y;const e=B(Q=>Q.recommendedTeam),n=B(Q=>Q.launchRecommendedTeam),[l,r]=v.useState(!1),[o,d]=v.useState(null);if(!((y=e==null?void 0:e.agents)!=null&&y.length))return null;const u=e.agents,f=u.filter(Q=>!Q.phase||Q.phase===1),h=u.filter(Q=>Q.phase===2),p=o??f.map(Q=>({...Q,name:Q.name||""}));function g(Q,w){const k=p.map((j,P)=>P===Q?{...j,name:HP(w)}:j);d(k)}async function x(){r(!0);try{const Q=[...p,...h];await n(Q)}catch{}r(!1)}function b(){B.setState({recommendedTeam:null})}return s.jsx("div",{className:"absolute bottom-4 left-1/2 -translate-x-1/2 z-50 w-full max-w-lg",children:s.jsxs("div",{className:"mx-4 rounded-lg border border-accent/30 bg-surface-2/95 backdrop-blur-md shadow-xl shadow-accent/5 overflow-hidden",children:[s.jsxs("div",{className:"px-4 py-3 border-b border-border-subtle flex items-center gap-2",children:[s.jsx(dv,{size:16,className:"text-accent"}),s.jsx("span",{className:"text-sm font-semibold text-text-0 font-sans flex-1",children:"Planner Recommends a Team"}),s.jsx("button",{onClick:b,className:"text-text-4 hover:text-text-1 cursor-pointer",children:s.jsx(Qt,{size:14})})]}),s.jsxs("div",{className:"px-4 py-3 space-y-1.5",children:[p.map((Q,w)=>{var P;const k=WP[Q.role]||ds,j=!Q.name||BP.test(Q.name);return s.jsxs("div",{className:"flex items-center gap-2 px-2.5 py-1.5 rounded-md bg-surface-4 border border-border-subtle",children:[s.jsx(k,{size:12,className:"text-text-2 shrink-0"}),s.jsx("input",{type:"text",value:Q.name,onChange:z=>g(w,z.target.value),placeholder:Q.role,className:oe("flex-1 min-w-0 bg-transparent text-xs font-mono text-text-0 outline-none placeholder:text-text-4",!j&&"text-red-400"),maxLength:64,spellCheck:!1}),((P=Q.scope)==null?void 0:P.length)>0&&s.jsxs("span",{className:"text-2xs text-text-4 font-mono shrink-0 truncate max-w-[120px]",children:[Q.scope[0],Q.scope.length>1?` +${Q.scope.length-1}`:""]})]},w)}),e.projectDir&&s.jsxs("div",{className:"flex items-center gap-1.5 text-2xs text-text-2 font-mono pt-0.5",children:[s.jsx("span",{className:"text-text-4",children:"Project:"}),s.jsxs("span",{className:"text-accent",children:[e.projectDir,"/"]})]}),h.length>0&&s.jsxs("div",{className:"flex items-center gap-1.5 text-2xs text-text-3 font-sans",children:[s.jsx(Ms,{size:10}),s.jsxs("span",{children:[h.length," QC agent",h.length>1?"s":""," will auto-spawn after builders complete"]})]})]}),s.jsx("div",{className:"px-4 py-3 border-t border-border-subtle",children:s.jsxs(ve,{variant:"primary",size:"md",onClick:x,disabled:l,className:"w-full gap-2",children:[s.jsx(En,{size:14}),l?"Launching...":`Launch ${f.length} Agent${f.length>1?"s":""}`]})})]})})}function y1(){const e=B(b=>b.agents),n=B(b=>b.activeTeamId),l=B(b=>b.openDetail),r=B(b=>b.spawnAgent),o=B(b=>b.selectAgent);B(b=>b.recommendedTeam);const d=B(b=>b.checkRecommendedTeam);v.useEffect(()=>{if(!e.some(Q=>Q.role==="planner"&&(Q.status==="running"||Q.status==="starting")))return;const y=setInterval(()=>d(),5e3);return()=>clearInterval(y)},[e,d]);async function u(){try{const b=await r({role:"planner"});b!=null&&b.id&&o(b.id)}catch{}}const f=e.filter(b=>b.teamId===n),h=B(b=>b.hydrated),[p,g]=v.useState(!0);v.useEffect(()=>{const b=setTimeout(()=>g(!1),1200);return()=>clearTimeout(b)},[]);const x=p||!h;return s.jsxs("div",{className:"flex flex-col h-full relative",children:[s.jsx("div",{className:"flex-1 min-h-0",children:x?s.jsxs("div",{className:oe("flex flex-col items-center justify-center h-full transition-opacity duration-500",!p&&h?"opacity-0":"opacity-100"),children:[s.jsxs("div",{className:"relative w-12 h-12 mb-5",children:[s.jsx("span",{className:"absolute inset-0 rounded-full border-2 border-accent/20 animate-ping",style:{animationDuration:"2s"}}),s.jsx("span",{className:"absolute inset-0 rounded-full border-2 border-transparent border-t-accent animate-spin",style:{animationDuration:"1s"}}),s.jsx("span",{className:"absolute inset-[6px] rounded-full bg-accent/8 flex items-center justify-center",children:s.jsx(En,{size:16,className:"text-accent animate-pulse"})})]}),s.jsx("p",{className:"text-sm font-medium text-text-1 font-sans animate-pulse",children:"Connecting to agents"}),s.jsx("p",{className:"text-xs text-text-3 font-sans mt-1",children:"Syncing with daemon..."})]}):f.length===0?s.jsx(LP,{onPlanner:u,onSpawn:()=>l({type:"spawn"})}):s.jsx(Yj,{children:s.jsx(DP,{})})}),s.jsx(IP,{})]})}function FP({children:e,detailContent:n,terminalContent:l}){const r=B(X=>X.activeView),o=B(X=>X.detailPanel),d=B(X=>X.connected),u=B(X=>X.tunneled),f=B(X=>X.daemonHost),h=B(X=>X.agents),p=B(X=>X.editorActiveFile),g=B(X=>X.detailPanelWidth),x=B(X=>X.terminalVisible),b=B(X=>X.terminalFullHeight),y=B(X=>X.setActiveView),Q=B(X=>X.openDetail),w=B(X=>X.closeDetail),k=B(X=>X.setDetailPanelWidth),j=B(X=>X.setTerminalVisible),P=B(X=>X.toggleCommandPalette),z=v.useMemo(()=>h.filter(X=>X.status==="running").length,[h]),R=v.useMemo(()=>[{key:"k",meta:!0,handler:()=>B.getState().toggleCommandPalette()},{key:"p",meta:!0,shift:!0,handler:()=>B.getState().toggleCommandPalette()},{key:"j",meta:!0,handler:()=>{const X=B.getState();X.setTerminalVisible(!X.terminalVisible)}},{key:"n",meta:!0,handler:()=>B.getState().openDetail({type:"spawn"})},{key:"1",meta:!0,handler:()=>B.getState().setActiveView("agents")},{key:"2",meta:!0,handler:()=>B.getState().setActiveView("editor")},{key:"3",meta:!0,handler:()=>B.getState().setActiveView("dashboard")},{key:"4",meta:!0,handler:()=>B.getState().setActiveView("marketplace")},{key:"5",meta:!0,handler:()=>B.getState().setActiveView("teams")},{key:"Escape",handler:()=>{const X=B.getState();X.commandPaletteOpen?X.toggleCommandPalette():X.detailPanel&&X.closeDetail()}}],[]);Tw(R);const Y=o&&o.type!=="spawn";return s.jsx(C$,{children:s.jsxs("div",{className:"w-full h-full flex flex-col bg-surface-2 text-text-1 font-sans",children:[s.jsx(jP,{activeView:r,connected:d,tunneled:u,daemonHost:f,editorActiveFile:p,onOpenCommandPalette:P,onSpawn:()=>Q({type:"spawn"})}),s.jsxs("div",{className:"flex-1 flex min-h-0",children:[s.jsx(SP,{activeView:r,detailPanel:o,onNavigate:y,onTogglePanel:X=>{(o==null?void 0:o.type)===X?w():Q({type:X})}}),s.jsxs("div",{className:"flex-1 flex flex-col min-w-0 min-h-0",children:[r==="agents"&&s.jsx(GP,{}),s.jsxs("div",{className:"flex-1 flex min-h-0",children:[s.jsxs("div",{className:"flex-1 flex flex-col min-w-0 min-h-0",children:[!(x&&b)&&s.jsx("main",{className:"flex-1 min-h-0 overflow-hidden relative",children:e}),l]}),Y&&s.jsx(TP,{width:g,onWidthChange:k,onClose:w,children:n})]})]})]}),s.jsx($P,{connected:d,agentCount:h.length,runningCount:z,terminalVisible:x,onToggleTerminal:()=>j(!x)}),s.jsx(PP,{}),s.jsx(bP,{})]})})}var KP=v.createContext(void 0);function vh(e){const n=v.useContext(KP);return e||n||"ltr"}function JP(e,[n,l]){return Math.min(l,Math.max(n,e))}function e3(e,n){return v.useReducer((l,r)=>n[l][r]??l,e)}var yh="ScrollArea",[bv]=Ls(yh),[t3,un]=bv(yh),vv=v.forwardRef((e,n)=>{const{__scopeScrollArea:l,type:r="hover",dir:o,scrollHideDelay:d=600,...u}=e,[f,h]=v.useState(null),[p,g]=v.useState(null),[x,b]=v.useState(null),[y,Q]=v.useState(null),[w,k]=v.useState(null),[j,P]=v.useState(0),[z,R]=v.useState(0),[Y,X]=v.useState(!1),[C,T]=v.useState(!1),I=dt(n,K=>h(K)),Z=vh(o);return s.jsx(t3,{scope:l,type:r,dir:Z,scrollHideDelay:d,scrollArea:f,viewport:p,onViewportChange:g,content:x,onContentChange:b,scrollbarX:y,onScrollbarXChange:Q,scrollbarXEnabled:Y,onScrollbarXEnabledChange:X,scrollbarY:w,onScrollbarYChange:k,scrollbarYEnabled:C,onScrollbarYEnabledChange:T,onCornerWidthChange:P,onCornerHeightChange:R,children:s.jsx(Je.div,{dir:Z,...u,ref:I,style:{position:"relative","--radix-scroll-area-corner-width":j+"px","--radix-scroll-area-corner-height":z+"px",...e.style}})})});vv.displayName=yh;var yv="ScrollAreaViewport",Sv=v.forwardRef((e,n)=>{const{__scopeScrollArea:l,children:r,nonce:o,...d}=e,u=un(yv,l),f=v.useRef(null),h=dt(n,f,u.onViewportChange);return s.jsxs(s.Fragment,{children:[s.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:o}),s.jsx(Je.div,{"data-radix-scroll-area-viewport":"",...d,ref:h,style:{overflowX:u.scrollbarXEnabled?"scroll":"hidden",overflowY:u.scrollbarYEnabled?"scroll":"hidden",...e.style},children:s.jsx("div",{ref:u.onContentChange,style:{minWidth:"100%",display:"table"},children:r})})]})});Sv.displayName=yv;var qn="ScrollAreaScrollbar",Qv=v.forwardRef((e,n)=>{const{forceMount:l,...r}=e,o=un(qn,e.__scopeScrollArea),{onScrollbarXEnabledChange:d,onScrollbarYEnabledChange:u}=o,f=e.orientation==="horizontal";return v.useEffect(()=>(f?d(!0):u(!0),()=>{f?d(!1):u(!1)}),[f,d,u]),o.type==="hover"?s.jsx(n3,{...r,ref:n,forceMount:l}):o.type==="scroll"?s.jsx(a3,{...r,ref:n,forceMount:l}):o.type==="auto"?s.jsx(jv,{...r,ref:n,forceMount:l}):o.type==="always"?s.jsx(Sh,{...r,ref:n}):null});Qv.displayName=qn;var n3=v.forwardRef((e,n)=>{const{forceMount:l,...r}=e,o=un(qn,e.__scopeScrollArea),[d,u]=v.useState(!1);return v.useEffect(()=>{const f=o.scrollArea;let h=0;if(f){const p=()=>{window.clearTimeout(h),u(!0)},g=()=>{h=window.setTimeout(()=>u(!1),o.scrollHideDelay)};return f.addEventListener("pointerenter",p),f.addEventListener("pointerleave",g),()=>{window.clearTimeout(h),f.removeEventListener("pointerenter",p),f.removeEventListener("pointerleave",g)}}},[o.scrollArea,o.scrollHideDelay]),s.jsx(Sn,{present:l||d,children:s.jsx(jv,{"data-state":d?"visible":"hidden",...r,ref:n})})}),a3=v.forwardRef((e,n)=>{const{forceMount:l,...r}=e,o=un(qn,e.__scopeScrollArea),d=e.orientation==="horizontal",u=od(()=>h("SCROLL_END"),100),[f,h]=e3("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return v.useEffect(()=>{if(f==="idle"){const p=window.setTimeout(()=>h("HIDE"),o.scrollHideDelay);return()=>window.clearTimeout(p)}},[f,o.scrollHideDelay,h]),v.useEffect(()=>{const p=o.viewport,g=d?"scrollLeft":"scrollTop";if(p){let x=p[g];const b=()=>{const y=p[g];x!==y&&(h("SCROLL"),u()),x=y};return p.addEventListener("scroll",b),()=>p.removeEventListener("scroll",b)}},[o.viewport,d,h,u]),s.jsx(Sn,{present:l||f!=="hidden",children:s.jsx(Sh,{"data-state":f==="hidden"?"hidden":"visible",...r,ref:n,onPointerEnter:Ue(e.onPointerEnter,()=>h("POINTER_ENTER")),onPointerLeave:Ue(e.onPointerLeave,()=>h("POINTER_LEAVE"))})})}),jv=v.forwardRef((e,n)=>{const l=un(qn,e.__scopeScrollArea),{forceMount:r,...o}=e,[d,u]=v.useState(!1),f=e.orientation==="horizontal",h=od(()=>{if(l.viewport){const p=l.viewport.offsetWidth<l.viewport.scrollWidth,g=l.viewport.offsetHeight<l.viewport.scrollHeight;u(f?p:g)}},10);return Kl(l.viewport,h),Kl(l.content,h),s.jsx(Sn,{present:r||d,children:s.jsx(Sh,{"data-state":d?"visible":"hidden",...o,ref:n})})}),Sh=v.forwardRef((e,n)=>{const{orientation:l="vertical",...r}=e,o=un(qn,e.__scopeScrollArea),d=v.useRef(null),u=v.useRef(0),[f,h]=v.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),p=Nv(f.viewport,f.content),g={...r,sizes:f,onSizesChange:h,hasThumb:p>0&&p<1,onThumbChange:b=>d.current=b,onThumbPointerUp:()=>u.current=0,onThumbPointerDown:b=>u.current=b};function x(b,y){return c3(b,u.current,f,y)}return l==="horizontal"?s.jsx(s3,{...g,ref:n,onThumbPositionChange:()=>{if(o.viewport&&d.current){const b=o.viewport.scrollLeft,y=S1(b,f,o.dir);d.current.style.transform=`translate3d(${y}px, 0, 0)`}},onWheelScroll:b=>{o.viewport&&(o.viewport.scrollLeft=b)},onDragScroll:b=>{o.viewport&&(o.viewport.scrollLeft=x(b,o.dir))}}):l==="vertical"?s.jsx(l3,{...g,ref:n,onThumbPositionChange:()=>{if(o.viewport&&d.current){const b=o.viewport.scrollTop,y=S1(b,f);d.current.style.transform=`translate3d(0, ${y}px, 0)`}},onWheelScroll:b=>{o.viewport&&(o.viewport.scrollTop=b)},onDragScroll:b=>{o.viewport&&(o.viewport.scrollTop=x(b))}}):null}),s3=v.forwardRef((e,n)=>{const{sizes:l,onSizesChange:r,...o}=e,d=un(qn,e.__scopeScrollArea),[u,f]=v.useState(),h=v.useRef(null),p=dt(n,h,d.onScrollbarXChange);return v.useEffect(()=>{h.current&&f(getComputedStyle(h.current))},[h]),s.jsx(kv,{"data-orientation":"horizontal",...o,ref:p,sizes:l,style:{bottom:0,left:d.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:d.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":id(l)+"px",...e.style},onThumbPointerDown:g=>e.onThumbPointerDown(g.x),onDragScroll:g=>e.onDragScroll(g.x),onWheelScroll:(g,x)=>{if(d.viewport){const b=d.viewport.scrollLeft+g.deltaX;e.onWheelScroll(b),zv(b,x)&&g.preventDefault()}},onResize:()=>{h.current&&d.viewport&&u&&r({content:d.viewport.scrollWidth,viewport:d.viewport.offsetWidth,scrollbar:{size:h.current.clientWidth,paddingStart:Ac(u.paddingLeft),paddingEnd:Ac(u.paddingRight)}})}})}),l3=v.forwardRef((e,n)=>{const{sizes:l,onSizesChange:r,...o}=e,d=un(qn,e.__scopeScrollArea),[u,f]=v.useState(),h=v.useRef(null),p=dt(n,h,d.onScrollbarYChange);return v.useEffect(()=>{h.current&&f(getComputedStyle(h.current))},[h]),s.jsx(kv,{"data-orientation":"vertical",...o,ref:p,sizes:l,style:{top:0,right:d.dir==="ltr"?0:void 0,left:d.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":id(l)+"px",...e.style},onThumbPointerDown:g=>e.onThumbPointerDown(g.y),onDragScroll:g=>e.onDragScroll(g.y),onWheelScroll:(g,x)=>{if(d.viewport){const b=d.viewport.scrollTop+g.deltaY;e.onWheelScroll(b),zv(b,x)&&g.preventDefault()}},onResize:()=>{h.current&&d.viewport&&u&&r({content:d.viewport.scrollHeight,viewport:d.viewport.offsetHeight,scrollbar:{size:h.current.clientHeight,paddingStart:Ac(u.paddingTop),paddingEnd:Ac(u.paddingBottom)}})}})}),[r3,wv]=bv(qn),kv=v.forwardRef((e,n)=>{const{__scopeScrollArea:l,sizes:r,hasThumb:o,onThumbChange:d,onThumbPointerUp:u,onThumbPointerDown:f,onThumbPositionChange:h,onDragScroll:p,onWheelScroll:g,onResize:x,...b}=e,y=un(qn,l),[Q,w]=v.useState(null),k=dt(n,I=>w(I)),j=v.useRef(null),P=v.useRef(""),z=y.viewport,R=r.content-r.viewport,Y=At(g),X=At(h),C=od(x,10);function T(I){if(j.current){const Z=I.clientX-j.current.left,K=I.clientY-j.current.top;p({x:Z,y:K})}}return v.useEffect(()=>{const I=Z=>{const K=Z.target;(Q==null?void 0:Q.contains(K))&&Y(Z,R)};return document.addEventListener("wheel",I,{passive:!1}),()=>document.removeEventListener("wheel",I,{passive:!1})},[z,Q,R,Y]),v.useEffect(X,[r,X]),Kl(Q,C),Kl(y.content,C),s.jsx(r3,{scope:l,scrollbar:Q,hasThumb:o,onThumbChange:At(d),onThumbPointerUp:At(u),onThumbPositionChange:X,onThumbPointerDown:At(f),children:s.jsx(Je.div,{...b,ref:k,style:{position:"absolute",...b.style},onPointerDown:Ue(e.onPointerDown,I=>{I.button===0&&(I.target.setPointerCapture(I.pointerId),j.current=Q.getBoundingClientRect(),P.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",y.viewport&&(y.viewport.style.scrollBehavior="auto"),T(I))}),onPointerMove:Ue(e.onPointerMove,T),onPointerUp:Ue(e.onPointerUp,I=>{const Z=I.target;Z.hasPointerCapture(I.pointerId)&&Z.releasePointerCapture(I.pointerId),document.body.style.webkitUserSelect=P.current,y.viewport&&(y.viewport.style.scrollBehavior=""),j.current=null})})})}),_c="ScrollAreaThumb",$v=v.forwardRef((e,n)=>{const{forceMount:l,...r}=e,o=wv(_c,e.__scopeScrollArea);return s.jsx(Sn,{present:l||o.hasThumb,children:s.jsx(i3,{ref:n,...r})})}),i3=v.forwardRef((e,n)=>{const{__scopeScrollArea:l,style:r,...o}=e,d=un(_c,l),u=wv(_c,l),{onThumbPositionChange:f}=u,h=dt(n,x=>u.onThumbChange(x)),p=v.useRef(void 0),g=od(()=>{p.current&&(p.current(),p.current=void 0)},100);return v.useEffect(()=>{const x=d.viewport;if(x){const b=()=>{if(g(),!p.current){const y=d3(x,f);p.current=y,f()}};return f(),x.addEventListener("scroll",b),()=>x.removeEventListener("scroll",b)}},[d.viewport,g,f]),s.jsx(Je.div,{"data-state":u.hasThumb?"visible":"hidden",...o,ref:h,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...r},onPointerDownCapture:Ue(e.onPointerDownCapture,x=>{const y=x.target.getBoundingClientRect(),Q=x.clientX-y.left,w=x.clientY-y.top;u.onThumbPointerDown({x:Q,y:w})}),onPointerUp:Ue(e.onPointerUp,u.onThumbPointerUp)})});$v.displayName=_c;var Qh="ScrollAreaCorner",Tv=v.forwardRef((e,n)=>{const l=un(Qh,e.__scopeScrollArea),r=!!(l.scrollbarX&&l.scrollbarY);return l.type!=="scroll"&&r?s.jsx(o3,{...e,ref:n}):null});Tv.displayName=Qh;var o3=v.forwardRef((e,n)=>{const{__scopeScrollArea:l,...r}=e,o=un(Qh,l),[d,u]=v.useState(0),[f,h]=v.useState(0),p=!!(d&&f);return Kl(o.scrollbarX,()=>{var x;const g=((x=o.scrollbarX)==null?void 0:x.offsetHeight)||0;o.onCornerHeightChange(g),h(g)}),Kl(o.scrollbarY,()=>{var x;const g=((x=o.scrollbarY)==null?void 0:x.offsetWidth)||0;o.onCornerWidthChange(g),u(g)}),p?s.jsx(Je.div,{...r,ref:n,style:{width:d,height:f,position:"absolute",right:o.dir==="ltr"?0:void 0,left:o.dir==="rtl"?0:void 0,bottom:0,...e.style}}):null});function Ac(e){return e?parseInt(e,10):0}function Nv(e,n){const l=e/n;return isNaN(l)?0:l}function id(e){const n=Nv(e.viewport,e.content),l=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-l)*n;return Math.max(r,18)}function c3(e,n,l,r="ltr"){const o=id(l),d=o/2,u=n||d,f=o-u,h=l.scrollbar.paddingStart+u,p=l.scrollbar.size-l.scrollbar.paddingEnd-f,g=l.content-l.viewport,x=r==="ltr"?[0,g]:[g*-1,0];return Pv([h,p],x)(e)}function S1(e,n,l="ltr"){const r=id(n),o=n.scrollbar.paddingStart+n.scrollbar.paddingEnd,d=n.scrollbar.size-o,u=n.content-n.viewport,f=d-r,h=l==="ltr"?[0,u]:[u*-1,0],p=JP(e,h);return Pv([0,u],[0,f])(p)}function Pv(e,n){return l=>{if(e[0]===e[1]||n[0]===n[1])return n[0];const r=(n[1]-n[0])/(e[1]-e[0]);return n[0]+r*(l-e[0])}}function zv(e,n){return e>0&&e<n}var d3=(e,n=()=>{})=>{let l={left:e.scrollLeft,top:e.scrollTop},r=0;return(function o(){const d={left:e.scrollLeft,top:e.scrollTop},u=l.left!==d.left,f=l.top!==d.top;(u||f)&&n(),l=d,r=window.requestAnimationFrame(o)})(),()=>window.cancelAnimationFrame(r)};function od(e,n){const l=At(e),r=v.useRef(0);return v.useEffect(()=>()=>window.clearTimeout(r.current),[]),v.useCallback(()=>{window.clearTimeout(r.current),r.current=window.setTimeout(l,n)},[l,n])}function Kl(e,n){const l=At(n);ha(()=>{let r=0;if(e){const o=new ResizeObserver(()=>{cancelAnimationFrame(r),r=window.requestAnimationFrame(l)});return o.observe(e),()=>{window.cancelAnimationFrame(r),o.unobserve(e)}}},[e,l])}var u3=vv,f3=Sv,Q1=Qv,j1=$v,O3=Tv;function Mn({children:e,className:n,...l}){return s.jsxs(u3,{className:oe("overflow-hidden",n),...l,children:[s.jsx(f3,{className:"h-full w-full rounded-[inherit]",children:e}),s.jsx(Q1,{orientation:"vertical",className:"flex touch-none select-none p-0.5 transition-colors w-2",children:s.jsx(j1,{className:"relative flex-1 rounded-full bg-surface-5 hover:bg-surface-6"})}),s.jsx(Q1,{orientation:"horizontal",className:"flex touch-none select-none flex-col p-0.5 transition-colors h-2",children:s.jsx(j1,{className:"relative flex-1 rounded-full bg-surface-5 hover:bg-surface-6"})}),s.jsx(O3,{})]})}const h3={js:"text-warning",jsx:"text-warning",ts:"text-info",tsx:"text-info",css:"text-info",html:"text-orange",json:"text-warning",md:"text-text-2",py:"text-success",rs:"text-orange",go:"text-accent",sh:"text-success",yaml:"text-danger",yml:"text-danger",sql:"text-purple",xml:"text-orange",svg:"text-warning"};function m3(e){var l;const n=(l=e.split(".").pop())==null?void 0:l.toLowerCase();return h3[n]||"text-text-3"}function p3({x:e,y:n,items:l,onClose:r}){const o=v.useRef(null);return v.useEffect(()=>{function d(u){o.current&&!o.current.contains(u.target)&&r()}return document.addEventListener("mousedown",d),()=>document.removeEventListener("mousedown",d)},[r]),s.jsx("div",{ref:o,className:"fixed z-50 min-w-[160px] py-1 bg-surface-2 border border-border rounded-lg shadow-xl",style:{left:e,top:n},children:l.map((d,u)=>d.separator?s.jsx("div",{className:"h-px bg-border-subtle my-1"},u):s.jsxs("button",{onClick:()=>{d.action(),r()},className:oe("w-full flex items-center gap-2.5 px-3 py-1.5 text-xs font-sans text-left cursor-pointer transition-colors",d.danger?"text-danger hover:bg-danger/10":"text-text-1 hover:bg-surface-5"),children:[d.icon&&s.jsx(d.icon,{size:12,className:d.danger?"text-danger":"text-text-3"}),d.label]},u))})}function Xc({defaultValue:e="",placeholder:n,onSubmit:l,onCancel:r,depth:o=0}){const[d,u]=v.useState(e),f=v.useRef(null);v.useEffect(()=>{var p,g;(p=f.current)==null||p.focus(),e&&((g=f.current)==null||g.select())},[e]);function h(p){if(p.key==="Enter"){const g=d.trim();g&&l(g)}p.key==="Escape"&&r()}return s.jsx("div",{className:"flex items-center py-0.5",style:{paddingLeft:o*16+8},children:s.jsx("input",{ref:f,value:d,onChange:p=>u(p.target.value),onKeyDown:h,onBlur:r,placeholder:n,className:"w-full h-5 px-1.5 text-xs bg-surface-0 border border-accent rounded text-text-0 font-sans focus:outline-none"})})}function Cv({entry:e,depth:n=0,activePath:l,onFileClick:r,onDirToggle:o,expanded:d,onContextMenu:u}){const f=e.type==="dir",h=l===e.path,p=d.has(e.path),g=n*16+8;function x(b){b.preventDefault(),b.stopPropagation(),u(b,e)}return s.jsxs("button",{onClick:()=>f?o(e.path):r(e.path),onContextMenu:x,className:oe("w-full flex items-center gap-1.5 py-1 text-xs font-sans cursor-pointer","hover:bg-surface-5 transition-colors text-left select-none",h&&"bg-accent/10 text-text-0",!h&&"text-text-1"),style:{paddingLeft:g},children:[f?s.jsxs(s.Fragment,{children:[p?s.jsx(_n,{size:12,className:"text-text-4 flex-shrink-0"}):s.jsx(cs,{size:12,className:"text-text-4 flex-shrink-0"}),p?s.jsx(fi,{size:14,className:"text-accent flex-shrink-0"}):s.jsx(nv,{size:14,className:"text-text-3 flex-shrink-0"})]}):s.jsxs(s.Fragment,{children:[s.jsx("span",{className:"w-3"}),s.jsx(kT,{size:14,className:oe("flex-shrink-0",m3(e.name))})]}),s.jsx("span",{className:"truncate",children:e.name})]})}function Rv({dirPath:e,depth:n,activePath:l,onFileClick:r,expanded:o,onDirToggle:d,treeCache:u,fetchTreeDir:f,onContextMenu:h,inlineInput:p}){const g=u[e]||[];return v.useEffect(()=>{o.has(e)&&!u[e]&&f(e)},[o,e,u,f]),o.has(e)?s.jsxs(s.Fragment,{children:[(p==null?void 0:p.parentPath)===e&&s.jsx(Xc,{placeholder:p.type==="file"?"filename.ext":"folder-name",onSubmit:p.onSubmit,onCancel:p.onCancel,depth:n}),g.map(x=>s.jsxs("div",{children:[(p==null?void 0:p.renamePath)===x.path?s.jsx(Xc,{defaultValue:x.name,onSubmit:p.onSubmit,onCancel:p.onCancel,depth:n}):s.jsx(Cv,{entry:x,depth:n,activePath:l,onFileClick:r,onDirToggle:d,expanded:o,onContextMenu:h}),x.type==="dir"&&s.jsx(Rv,{dirPath:x.path,depth:n+1,activePath:l,onFileClick:r,expanded:o,onDirToggle:d,treeCache:u,fetchTreeDir:f,onContextMenu:h,inlineInput:p})]},x.path))]}):null}function x3({rootDir:e}){const n=B(T=>T.editorTreeCache),l=B(T=>T.editorActiveFile),r=B(T=>T.openFile),o=B(T=>T.fetchTreeDir),d=B(T=>T.addToast),[u,f]=v.useState(new Set([""])),[h,p]=v.useState(""),[g,x]=v.useState(null),[b,y]=v.useState(null);v.useEffect(()=>{o("")},[o,e]);function Q(T){f(I=>{const Z=new Set(I);return Z.has(T)?Z.delete(T):Z.add(T),Z})}function w(T,I){x({x:T.clientX,y:T.clientY,entry:I})}function k(T){T.preventDefault(),x({x:T.clientX,y:T.clientY,entry:{type:"dir",path:"",name:"root"}})}function j(T){const I=T.split("/");return I.pop(),I.join("/")}async function P(T){f(I=>new Set([...I,T])),y({type:"file",parentPath:T,onSubmit:async I=>{const Z=T?`${T}/${I}`:I;try{await J.post("/files/create",{path:Z,content:""}),o(T),r(Z),d("success",`Created ${I}`)}catch(K){d("error","Create failed",K.message)}y(null)},onCancel:()=>y(null)})}async function z(T){f(I=>new Set([...I,T])),y({type:"folder",parentPath:T,onSubmit:async I=>{const Z=T?`${T}/${I}`:I;try{await J.post("/files/mkdir",{path:Z}),o(T),f(K=>new Set([...K,Z])),d("success",`Created ${I}/`)}catch(K){d("error","Create folder failed",K.message)}y(null)},onCancel:()=>y(null)})}async function R(T){y({type:"rename",renamePath:T.path,onSubmit:async I=>{const Z=j(T.path),K=Z?`${Z}/${I}`:I;try{await J.post("/files/rename",{oldPath:T.path,newPath:K}),o(Z),d("success",`Renamed to ${I}`)}catch(F){d("error","Rename failed",F.message)}y(null)},onCancel:()=>y(null)})}async function Y(T){const I=T.type==="dir"?`folder "${T.name}" and all contents`:`"${T.name}"`;if(window.confirm(`Delete ${I}?`))try{await J.delete(`/files/delete?path=${encodeURIComponent(T.path)}`),o(j(T.path)),d("success",`Deleted ${T.name}`)}catch(Z){d("error","Delete failed",Z.message)}}function X(T){const I=T.type==="dir",Z=[];return I&&(Z.push({icon:Ef,label:"New File",action:()=>P(T.path)}),Z.push({icon:qf,label:"New Folder",action:()=>z(T.path)})),T.name!=="root"?(Z.length>0&&Z.push({separator:!0}),Z.push({icon:rd,label:"Rename",action:()=>R(T)}),Z.push({icon:Zn,label:"Delete",danger:!0,action:()=>Y(T)})):(Z.length=0,Z.push({icon:Ef,label:"New File",action:()=>P("")}),Z.push({icon:qf,label:"New Folder",action:()=>z("")})),Z}const C=n[""]||[];return s.jsxs("div",{className:"flex flex-col h-full bg-surface-1",onContextMenu:k,children:[s.jsxs("div",{className:"flex items-center gap-1 px-2 py-1.5 border-b border-border-subtle",children:[s.jsxs("div",{className:"flex-1 relative",children:[s.jsx(An,{size:12,className:"absolute left-2 top-1/2 -translate-y-1/2 text-text-4"}),s.jsx("input",{value:h,onChange:T=>p(T.target.value),placeholder:"Filter...",className:"w-full h-6 pl-6 pr-2 text-xs bg-surface-0 border border-border-subtle rounded text-text-1 placeholder:text-text-4 focus:outline-none focus:border-accent font-sans"})]}),s.jsx("button",{onClick:()=>P(""),className:"p-1 text-text-4 hover:text-text-1 transition-colors cursor-pointer",title:"New file",children:s.jsx(Ef,{size:12})}),s.jsx("button",{onClick:()=>z(""),className:"p-1 text-text-4 hover:text-text-1 transition-colors cursor-pointer",title:"New folder",children:s.jsx(qf,{size:12})}),s.jsx("button",{onClick:()=>o(""),className:"p-1 text-text-4 hover:text-text-1 transition-colors cursor-pointer",title:"Refresh",children:s.jsx(Qn,{size:12})})]}),s.jsx(Mn,{className:"flex-1",children:s.jsxs("div",{className:"py-1",children:[(b==null?void 0:b.parentPath)===""&&s.jsx(Xc,{placeholder:b.type==="file"?"filename.ext":"folder-name",onSubmit:b.onSubmit,onCancel:b.onCancel,depth:0}),C.filter(T=>!h||T.name.toLowerCase().includes(h.toLowerCase())).map(T=>s.jsxs("div",{children:[(b==null?void 0:b.renamePath)===T.path?s.jsx(Xc,{defaultValue:T.name,onSubmit:b.onSubmit,onCancel:b.onCancel,depth:0}):s.jsx(Cv,{entry:T,depth:0,activePath:l,onFileClick:r,onDirToggle:Q,expanded:u,onContextMenu:w}),T.type==="dir"&&s.jsx(Rv,{dirPath:T.path,depth:1,activePath:l,onFileClick:r,expanded:u,onDirToggle:Q,treeCache:n,fetchTreeDir:o,onContextMenu:w,inlineInput:b})]},T.path))]})}),g&&s.jsx(p3,{x:g.x,y:g.y,items:X(g.entry),onClose:()=>x(null)})]})}function g3(){const e=B(d=>d.editorOpenTabs),n=B(d=>d.editorActiveFile),l=B(d=>d.editorFiles),r=B(d=>d.setActiveFile),o=B(d=>d.closeFile);return e.length===0?null:s.jsx("div",{className:"flex items-center h-8 bg-surface-3 border-b border-border overflow-x-auto flex-shrink-0",children:e.map(d=>{const u=d===n,f=l[d],h=f&&f.content!==f.originalContent,p=d.split("/").pop();return s.jsxs("div",{className:oe("flex items-center gap-1.5 h-full px-3 text-xs font-sans cursor-pointer select-none","border-r border-border-subtle","transition-colors duration-75",u?"bg-surface-2 text-text-0 border-b-2 border-b-accent":"bg-surface-3 text-text-3 hover:text-text-1 hover:bg-surface-4"),onClick:()=>r(d),children:[s.jsx("span",{className:"truncate max-w-[120px]",children:p}),h&&s.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-warning flex-shrink-0"}),s.jsx("button",{onClick:g=>{g.stopPropagation(),o(d)},className:"p-0.5 rounded hover:bg-surface-5 text-text-4 hover:text-text-1 transition-colors cursor-pointer ml-0.5",children:s.jsx(Qt,{size:12})})]},d)})})}var w1={};class Zc{constructor(n,l,r,o,d,u,f,h,p,g=0,x){this.p=n,this.stack=l,this.state=r,this.reducePos=o,this.pos=d,this.score=u,this.buffer=f,this.bufferBase=h,this.curContext=p,this.lookAhead=g,this.parent=x}toString(){return`[${this.stack.filter((n,l)=>l%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(n,l,r=0){let o=n.parser.context;return new Zc(n,[],l,r,r,0,[],0,o?new k1(o,o.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(n,l){this.stack.push(this.state,l,this.bufferBase+this.buffer.length),this.state=n}reduce(n){var l;let r=n>>19,o=n&65535,{parser:d}=this.p,u=this.reducePos<this.pos-25&&this.setLookAhead(this.pos),f=d.dynamicPrecedence(o);if(f&&(this.score+=f),r==0){this.pushState(d.getGoto(this.state,o,!0),this.reducePos),o<d.minRepeatTerm&&this.storeNode(o,this.reducePos,this.reducePos,u?8:4,!0),this.reduceContext(o,this.reducePos);return}let h=this.stack.length-(r-1)*3-(n&262144?6:0),p=h?this.stack[h-2]:this.p.ranges[0].from,g=this.reducePos-p;g>=2e3&&!(!((l=this.p.parser.nodeSet.types[o])===null||l===void 0)&&l.isAnonymous)&&(p==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=g):this.p.lastBigReductionSize<g&&(this.p.bigReductionCount=1,this.p.lastBigReductionStart=p,this.p.lastBigReductionSize=g));let x=h?this.stack[h-1]:0,b=this.bufferBase+this.buffer.length-x;if(o<d.minRepeatTerm||n&131072){let y=d.stateFlag(this.state,1)?this.pos:this.reducePos;this.storeNode(o,p,y,b+4,!0)}if(n&262144)this.state=this.stack[h];else{let y=this.stack[h-3];this.state=d.getGoto(y,o,!0)}for(;this.stack.length>h;)this.stack.pop();this.reduceContext(o,p)}storeNode(n,l,r,o=4,d=!1){if(n==0&&(!this.stack.length||this.stack[this.stack.length-1]<this.buffer.length+this.bufferBase)){let u=this,f=this.buffer.length;if(f==0&&u.parent&&(f=u.bufferBase-u.parent.bufferBase,u=u.parent),f>0&&u.buffer[f-4]==0&&u.buffer[f-1]>-1){if(l==r)return;if(u.buffer[f-2]>=l){u.buffer[f-2]=r;return}}}if(!d||this.pos==r)this.buffer.push(n,l,r,o);else{let u=this.buffer.length;if(u>0&&(this.buffer[u-4]!=0||this.buffer[u-1]<0)){let f=!1;for(let h=u;h>0&&this.buffer[h-2]>r;h-=4)if(this.buffer[h-1]>=0){f=!0;break}if(f)for(;u>0&&this.buffer[u-2]>r;)this.buffer[u]=this.buffer[u-4],this.buffer[u+1]=this.buffer[u-3],this.buffer[u+2]=this.buffer[u-2],this.buffer[u+3]=this.buffer[u-1],u-=4,o>4&&(o-=4)}this.buffer[u]=n,this.buffer[u+1]=l,this.buffer[u+2]=r,this.buffer[u+3]=o}}shift(n,l,r,o){if(n&131072)this.pushState(n&65535,this.pos);else if((n&262144)==0){let d=n,{parser:u}=this.p;this.pos=o;let f=u.stateFlag(d,1);!f&&(o>r||l<=u.maxNode)&&(this.reducePos=o),this.pushState(d,f?r:Math.min(r,this.reducePos)),this.shiftContext(l,r),l<=u.maxNode&&this.buffer.push(l,r,o,4)}else this.pos=o,this.shiftContext(l,r),l<=this.p.parser.maxNode&&this.buffer.push(l,r,o,4)}apply(n,l,r,o){n&65536?this.reduce(n):this.shift(n,l,r,o)}useNode(n,l){let r=this.p.reused.length-1;(r<0||this.p.reused[r]!=n)&&(this.p.reused.push(n),r++);let o=this.pos;this.reducePos=this.pos=o+n.length,this.pushState(l,o),this.buffer.push(r,o,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,n,this,this.p.stream.reset(this.pos-n.length)))}split(){let n=this,l=n.buffer.length;for(;l>0&&n.buffer[l-2]>n.reducePos;)l-=4;let r=n.buffer.slice(l),o=n.bufferBase+l;for(;n&&o==n.bufferBase;)n=n.parent;return new Zc(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,r,o,this.curContext,this.lookAhead,n)}recoverByDelete(n,l){let r=n<=this.p.parser.maxNode;r&&this.storeNode(n,this.pos,l,4),this.storeNode(0,this.pos,l,r?8:4),this.pos=this.reducePos=l,this.score-=190}canShift(n){for(let l=new b3(this);;){let r=this.p.parser.stateSlot(l.state,4)||this.p.parser.hasAction(l.state,n);if(r==0)return!1;if((r&65536)==0)return!0;l.reduce(r)}}recoverByInsert(n){if(this.stack.length>=300)return[];let l=this.p.parser.nextStates(this.state);if(l.length>8||this.stack.length>=120){let o=[];for(let d=0,u;d<l.length;d+=2)(u=l[d+1])!=this.state&&this.p.parser.hasAction(u,n)&&o.push(l[d],u);if(this.stack.length<120)for(let d=0;o.length<8&&d<l.length;d+=2){let u=l[d+1];o.some((f,h)=>h&1&&f==u)||o.push(l[d],u)}l=o}let r=[];for(let o=0;o<l.length&&r.length<4;o+=2){let d=l[o+1];if(d==this.state)continue;let u=this.split();u.pushState(d,this.pos),u.storeNode(0,u.pos,u.pos,4,!0),u.shiftContext(l[o],this.pos),u.reducePos=this.pos,u.score-=200,r.push(u)}return r}forceReduce(){let{parser:n}=this.p,l=n.stateSlot(this.state,5);if((l&65536)==0)return!1;if(!n.validAction(this.state,l)){let r=l>>19,o=l&65535,d=this.stack.length-r*3;if(d<0||n.getGoto(this.stack[d],o,!1)<0){let u=this.findForcedReduction();if(u==null)return!1;l=u}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(l),!0}findForcedReduction(){let{parser:n}=this.p,l=[],r=(o,d)=>{if(!l.includes(o))return l.push(o),n.allActions(o,u=>{if(!(u&393216))if(u&65536){let f=(u>>19)-d;if(f>1){let h=u&65535,p=this.stack.length-f*3;if(p>=0&&n.getGoto(this.stack[p],h,!1)>=0)return f<<19|65536|h}}else{let f=r(u,d+1);if(f!=null)return f}})};return r(this.state,0)}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(this.stack.length!=3)return!1;let{parser:n}=this.p;return n.data[n.stateSlot(this.state,1)]==65535&&!n.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,!0),this.state=this.stack[0],this.stack.length=0}sameState(n){if(this.state!=n.state||this.stack.length!=n.stack.length)return!1;for(let l=0;l<this.stack.length;l+=3)if(this.stack[l]!=n.stack[l])return!1;return!0}get parser(){return this.p.parser}dialectEnabled(n){return this.p.parser.dialect.flags[n]}shiftContext(n,l){this.curContext&&this.updateContext(this.curContext.tracker.shift(this.curContext.context,n,this,this.p.stream.reset(l)))}reduceContext(n,l){this.curContext&&this.updateContext(this.curContext.tracker.reduce(this.curContext.context,n,this,this.p.stream.reset(l)))}emitContext(){let n=this.buffer.length-1;(n<0||this.buffer[n]!=-3)&&this.buffer.push(this.curContext.hash,this.pos,this.pos,-3)}emitLookAhead(){let n=this.buffer.length-1;(n<0||this.buffer[n]!=-4)&&this.buffer.push(this.lookAhead,this.pos,this.pos,-4)}updateContext(n){if(n!=this.curContext.context){let l=new k1(this.curContext.tracker,n);l.hash!=this.curContext.hash&&this.emitContext(),this.curContext=l}}setLookAhead(n){return n<=this.lookAhead?!1:(this.emitLookAhead(),this.lookAhead=n,!0)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}class k1{constructor(n,l){this.tracker=n,this.context=l,this.hash=n.strict?n.hash(l):0}}class b3{constructor(n){this.start=n,this.state=n.state,this.stack=n.stack,this.base=this.stack.length}reduce(n){let l=n&65535,r=n>>19;r==0?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=(r-1)*3;let o=this.start.p.parser.getGoto(this.stack[this.base-3],l,!0);this.state=o}}class Ec{constructor(n,l,r){this.stack=n,this.pos=l,this.index=r,this.buffer=n.buffer,this.index==0&&this.maybeNext()}static create(n,l=n.bufferBase+n.buffer.length){return new Ec(n,l,l-n.bufferBase)}maybeNext(){let n=this.stack.parent;n!=null&&(this.index=this.stack.bufferBase-n.bufferBase,this.stack=n,this.buffer=n.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,this.index==0&&this.maybeNext()}fork(){return new Ec(this.stack,this.pos,this.index)}}function li(e,n=Uint16Array){if(typeof e!="string")return e;let l=null;for(let r=0,o=0;r<e.length;){let d=0;for(;;){let u=e.charCodeAt(r++),f=!1;if(u==126){d=65535;break}u>=92&&u--,u>=34&&u--;let h=u-32;if(h>=46&&(h-=46,f=!0),d+=h,f)break;d*=46}l?l[o++]=d:l=new n(d)}return l}class gc{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const $1=new gc;class v3{constructor(n,l){this.input=n,this.ranges=l,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=$1,this.rangeIndex=0,this.pos=this.chunkPos=l[0].from,this.range=l[0],this.end=l[l.length-1].to,this.readNext()}resolveOffset(n,l){let r=this.range,o=this.rangeIndex,d=this.pos+n;for(;d<r.from;){if(!o)return null;let u=this.ranges[--o];d-=r.from-u.to,r=u}for(;l<0?d>r.to:d>=r.to;){if(o==this.ranges.length-1)return null;let u=this.ranges[++o];d+=u.from-r.to,r=u}return d}clipPos(n){if(n>=this.range.from&&n<this.range.to)return n;for(let l of this.ranges)if(l.to>n)return Math.max(n,l.from);return this.end}peek(n){let l=this.chunkOff+n,r,o;if(l>=0&&l<this.chunk.length)r=this.pos+n,o=this.chunk.charCodeAt(l);else{let d=this.resolveOffset(n,1);if(d==null)return-1;if(r=d,r>=this.chunk2Pos&&r<this.chunk2Pos+this.chunk2.length)o=this.chunk2.charCodeAt(r-this.chunk2Pos);else{let u=this.rangeIndex,f=this.range;for(;f.to<=r;)f=this.ranges[++u];this.chunk2=this.input.chunk(this.chunk2Pos=r),r+this.chunk2.length>f.to&&(this.chunk2=this.chunk2.slice(0,f.to-r)),o=this.chunk2.charCodeAt(0)}}return r>=this.token.lookAhead&&(this.token.lookAhead=r+1),o}acceptToken(n,l=0){let r=l?this.resolveOffset(l,-1):this.pos;if(r==null||r<this.token.start)throw new RangeError("Token end out of bounds");this.token.value=n,this.token.end=r}acceptTokenTo(n,l){this.token.value=n,this.token.end=l}getChunk(){if(this.pos>=this.chunk2Pos&&this.pos<this.chunk2Pos+this.chunk2.length){let{chunk:n,chunkPos:l}=this;this.chunk=this.chunk2,this.chunkPos=this.chunk2Pos,this.chunk2=n,this.chunk2Pos=l,this.chunkOff=this.pos-this.chunkPos}else{this.chunk2=this.chunk,this.chunk2Pos=this.chunkPos;let n=this.input.chunk(this.pos),l=this.pos+n.length;this.chunk=l>this.range.to?n.slice(0,this.range.to-this.pos):n,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(n=1){for(this.chunkOff+=n;this.pos+n>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();n-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=n,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(n,l){if(l?(this.token=l,l.start=n,l.lookAhead=n+1,l.value=l.extended=-1):this.token=$1,this.pos!=n){if(this.pos=n,n==this.end)return this.setDone(),this;for(;n<this.range.from;)this.range=this.ranges[--this.rangeIndex];for(;n>=this.range.to;)this.range=this.ranges[++this.rangeIndex];n>=this.chunkPos&&n<this.chunkPos+this.chunk.length?this.chunkOff=n-this.chunkPos:(this.chunk="",this.chunkOff=0),this.readNext()}return this}read(n,l){if(n>=this.chunkPos&&l<=this.chunkPos+this.chunk.length)return this.chunk.slice(n-this.chunkPos,l-this.chunkPos);if(n>=this.chunk2Pos&&l<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(n-this.chunk2Pos,l-this.chunk2Pos);if(n>=this.range.from&&l<=this.range.to)return this.input.read(n,l);let r="";for(let o of this.ranges){if(o.from>=l)break;o.to>n&&(r+=this.input.read(Math.max(o.from,n),Math.min(o.to,l)))}return r}}class Gl{constructor(n,l){this.data=n,this.id=l}token(n,l){let{parser:r}=l.p;_v(this.data,n,l,this.id,r.data,r.tokenPrecTable)}}Gl.prototype.contextual=Gl.prototype.fallback=Gl.prototype.extend=!1;class qc{constructor(n,l,r){this.precTable=l,this.elseToken=r,this.data=typeof n=="string"?li(n):n}token(n,l){let r=n.pos,o=0;for(;;){let d=n.next<0,u=n.resolveOffset(1,1);if(_v(this.data,n,l,0,this.data,this.precTable),n.token.value>-1)break;if(this.elseToken==null)return;if(d||o++,u==null)break;n.reset(u,n.token)}o&&(n.reset(r,n.token),n.acceptToken(this.elseToken,o))}}qc.prototype.contextual=Gl.prototype.fallback=Gl.prototype.extend=!1;class wt{constructor(n,l={}){this.token=n,this.contextual=!!l.contextual,this.fallback=!!l.fallback,this.extend=!!l.extend}}function _v(e,n,l,r,o,d){let u=0,f=1<<r,{dialect:h}=l.p.parser;e:for(;(f&e[u])!=0;){let p=e[u+1];for(let y=u+3;y<p;y+=2)if((e[y+1]&f)>0){let Q=e[y];if(h.allows(Q)&&(n.token.value==-1||n.token.value==Q||y3(Q,n.token.value,o,d))){n.acceptToken(Q);break}}let g=n.next,x=0,b=e[u+2];if(n.next<0&&b>x&&e[p+b*3-3]==65535){u=e[p+b*3-1];continue e}for(;x<b;){let y=x+b>>1,Q=p+y+(y<<1),w=e[Q],k=e[Q+1]||65536;if(g<w)b=y;else if(g>=k)x=y+1;else{u=e[Q+2],n.advance();continue e}}break}}function T1(e,n,l){for(let r=n,o;(o=e[r])!=65535;r++)if(o==l)return r-n;return-1}function y3(e,n,l,r){let o=T1(l,r,n);return o<0||T1(l,r,e)<o}const Lt=typeof process<"u"&&w1&&/\bparse\b/.test(w1.LOG);let Gf=null;function N1(e,n,l){let r=e.cursor(Hc.IncludeAnonymous);for(r.moveTo(n);;)if(!(l<0?r.childBefore(n):r.childAfter(n)))for(;;){if((l<0?r.to<n:r.from>n)&&!r.type.isError)return l<0?Math.max(0,Math.min(r.to-1,n-25)):Math.min(e.length,Math.max(r.from+1,n+25));if(l<0?r.prevSibling():r.nextSibling())break;if(!r.parent())return l<0?0:e.length}}let S3=class{constructor(n,l){this.fragments=n,this.nodeSet=l,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let n=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(n){for(this.safeFrom=n.openStart?N1(n.tree,n.from+n.offset,1)-n.offset:n.from,this.safeTo=n.openEnd?N1(n.tree,n.to+n.offset,-1)-n.offset:n.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(n.tree),this.start.push(-n.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(n){if(n<this.nextStart)return null;for(;this.fragment&&this.safeTo<=n;)this.nextFragment();if(!this.fragment)return null;for(;;){let l=this.trees.length-1;if(l<0)return this.nextFragment(),null;let r=this.trees[l],o=this.index[l];if(o==r.children.length){this.trees.pop(),this.start.pop(),this.index.pop();continue}let d=r.children[o],u=this.start[l]+r.positions[o];if(u>n)return this.nextStart=u,null;if(d instanceof gn){if(u==n){if(u<this.safeFrom)return null;let f=u+d.length;if(f<=this.safeTo){let h=d.prop(Oa.lookAhead);if(!h||f+h<this.fragment.to)return d}}this.index[l]++,u+d.length>=Math.max(this.safeFrom,n)&&(this.trees.push(d),this.start.push(u),this.index.push(0))}else this.index[l]++,this.nextStart=u+d.length}}};class Q3{constructor(n,l){this.stream=l,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=n.tokenizers.map(r=>new gc)}getActions(n){let l=0,r=null,{parser:o}=n.p,{tokenizers:d}=o,u=o.stateSlot(n.state,3),f=n.curContext?n.curContext.hash:0,h=0;for(let p=0;p<d.length;p++){if((1<<p&u)==0)continue;let g=d[p],x=this.tokens[p];if(!(r&&!g.fallback)&&((g.contextual||x.start!=n.pos||x.mask!=u||x.context!=f)&&(this.updateCachedToken(x,g,n),x.mask=u,x.context=f),x.lookAhead>x.end+25&&(h=Math.max(x.lookAhead,h)),x.value!=0)){let b=l;if(x.extended>-1&&(l=this.addActions(n,x.extended,x.end,l)),l=this.addActions(n,x.value,x.end,l),!g.extend&&(r=x,l>b))break}}for(;this.actions.length>l;)this.actions.pop();return h&&n.setLookAhead(h),!r&&n.pos==this.stream.end&&(r=new gc,r.value=n.p.parser.eofTerm,r.start=r.end=n.pos,l=this.addActions(n,r.value,r.end,l)),this.mainToken=r,this.actions}getMainToken(n){if(this.mainToken)return this.mainToken;let l=new gc,{pos:r,p:o}=n;return l.start=r,l.end=Math.min(r+1,o.stream.end),l.value=r==o.stream.end?o.parser.eofTerm:0,l}updateCachedToken(n,l,r){let o=this.stream.clipPos(r.pos);if(l.token(this.stream.reset(o,n),r),n.value>-1){let{parser:d}=r.p;for(let u=0;u<d.specialized.length;u++)if(d.specialized[u]==n.value){let f=d.specializers[u](this.stream.read(n.start,n.end),r);if(f>=0&&r.p.parser.dialect.allows(f>>1)){(f&1)==0?n.value=f>>1:n.extended=f>>1;break}}}else n.value=0,n.end=this.stream.clipPos(o+1)}putAction(n,l,r,o){for(let d=0;d<o;d+=3)if(this.actions[d]==n)return o;return this.actions[o++]=n,this.actions[o++]=l,this.actions[o++]=r,o}addActions(n,l,r,o){let{state:d}=n,{parser:u}=n.p,{data:f}=u;for(let h=0;h<2;h++)for(let p=u.stateSlot(d,h?2:1);;p+=3){if(f[p]==65535)if(f[p+1]==1)p=fa(f,p+2);else{o==0&&f[p+1]==2&&(o=this.putAction(fa(f,p+2),l,r,o));break}f[p]==l&&(o=this.putAction(fa(f,p+1),l,r,o))}return o}}class j3{constructor(n,l,r,o){this.parser=n,this.input=l,this.ranges=o,this.recovering=0,this.nextStackID=9812,this.minStackPos=0,this.reused=[],this.stoppedAt=null,this.lastBigReductionStart=-1,this.lastBigReductionSize=0,this.bigReductionCount=0,this.stream=new v3(l,o),this.tokens=new Q3(n,this.stream),this.topTerm=n.top[1];let{from:d}=o[0];this.stacks=[Zc.start(this,n.top[0],d)],this.fragments=r.length&&this.stream.end-d>n.bufferLength*4?new S3(r,n.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let n=this.stacks,l=this.minStackPos,r=this.stacks=[],o,d;if(this.bigReductionCount>300&&n.length==1){let[u]=n;for(;u.forceReduce()&&u.stack.length&&u.stack[u.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let u=0;u<n.length;u++){let f=n[u];for(;;){if(this.tokens.mainToken=null,f.pos>l)r.push(f);else{if(this.advanceStack(f,r,n))continue;{o||(o=[],d=[]),o.push(f);let h=this.tokens.getMainToken(f);d.push(h.value,h.end)}}break}}if(!r.length){let u=o&&k3(o);if(u)return Lt&&console.log("Finish with "+this.stackID(u)),this.stackToTree(u);if(this.parser.strict)throw Lt&&o&&console.log("Stuck with token "+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):"none")),new SyntaxError("No parse at "+l);this.recovering||(this.recovering=5)}if(this.recovering&&o){let u=this.stoppedAt!=null&&o[0].pos>this.stoppedAt?o[0]:this.runRecovery(o,d,r);if(u)return Lt&&console.log("Force-finish "+this.stackID(u)),this.stackToTree(u.forceAll())}if(this.recovering){let u=this.recovering==1?1:this.recovering*3;if(r.length>u)for(r.sort((f,h)=>h.score-f.score);r.length>u;)r.pop();r.some(f=>f.reducePos>l)&&this.recovering--}else if(r.length>1){e:for(let u=0;u<r.length-1;u++){let f=r[u];for(let h=u+1;h<r.length;h++){let p=r[h];if(f.sameState(p)||f.buffer.length>500&&p.buffer.length>500)if((f.score-p.score||f.buffer.length-p.buffer.length)>0)r.splice(h--,1);else{r.splice(u--,1);continue e}}}r.length>12&&(r.sort((u,f)=>f.score-u.score),r.splice(12,r.length-12))}this.minStackPos=r[0].pos;for(let u=1;u<r.length;u++)r[u].pos<this.minStackPos&&(this.minStackPos=r[u].pos);return null}stopAt(n){if(this.stoppedAt!=null&&this.stoppedAt<n)throw new RangeError("Can't move stoppedAt forward");this.stoppedAt=n}advanceStack(n,l,r){let o=n.pos,{parser:d}=this,u=Lt?this.stackID(n)+" -> ":"";if(this.stoppedAt!=null&&o>this.stoppedAt)return n.forceReduce()?n:null;if(this.fragments){let p=n.curContext&&n.curContext.tracker.strict,g=p?n.curContext.hash:0;for(let x=this.fragments.nodeAt(o);x;){let b=this.parser.nodeSet.types[x.type.id]==x.type?d.getGoto(n.state,x.type.id):-1;if(b>-1&&x.length&&(!p||(x.prop(Oa.contextHash)||0)==g))return n.useNode(x,b),Lt&&console.log(u+this.stackID(n)+` (via reuse of ${d.getName(x.type.id)})`),!0;if(!(x instanceof gn)||x.children.length==0||x.positions[0]>0)break;let y=x.children[0];if(y instanceof gn&&x.positions[0]==0)x=y;else break}}let f=d.stateSlot(n.state,4);if(f>0)return n.reduce(f),Lt&&console.log(u+this.stackID(n)+` (via always-reduce ${d.getName(f&65535)})`),!0;if(n.stack.length>=8400)for(;n.stack.length>6e3&&n.forceReduce(););let h=this.tokens.getActions(n);for(let p=0;p<h.length;){let g=h[p++],x=h[p++],b=h[p++],y=p==h.length||!r,Q=y?n:n.split(),w=this.tokens.mainToken;if(Q.apply(g,x,w?w.start:Q.pos,b),Lt&&console.log(u+this.stackID(Q)+` (via ${(g&65536)==0?"shift":`reduce of ${d.getName(g&65535)}`} for ${d.getName(x)} @ ${o}${Q==n?"":", split"})`),y)return!0;Q.pos>o?l.push(Q):r.push(Q)}return!1}advanceFully(n,l){let r=n.pos;for(;;){if(!this.advanceStack(n,null,null))return!1;if(n.pos>r)return P1(n,l),!0}}runRecovery(n,l,r){let o=null,d=!1;for(let u=0;u<n.length;u++){let f=n[u],h=l[u<<1],p=l[(u<<1)+1],g=Lt?this.stackID(f)+" -> ":"";if(f.deadEnd&&(d||(d=!0,f.restart(),Lt&&console.log(g+this.stackID(f)+" (restarted)"),this.advanceFully(f,r))))continue;let x=f.split(),b=g;for(let y=0;y<10&&x.forceReduce()&&(Lt&&console.log(b+this.stackID(x)+" (via force-reduce)"),!this.advanceFully(x,r));y++)Lt&&(b=this.stackID(x)+" -> ");for(let y of f.recoverByInsert(h))Lt&&console.log(g+this.stackID(y)+" (via recover-insert)"),this.advanceFully(y,r);this.stream.end>f.pos?(p==f.pos&&(p++,h=0),f.recoverByDelete(h,p),Lt&&console.log(g+this.stackID(f)+` (via recover-delete ${this.parser.getName(h)})`),P1(f,r)):(!o||o.score<x.score)&&(o=x)}return o}stackToTree(n){return n.close(),gn.build({buffer:Ec.create(n),nodeSet:this.parser.nodeSet,topID:this.topTerm,maxBufferLength:this.parser.bufferLength,reused:this.reused,start:this.ranges[0].from,length:n.pos-this.ranges[0].from,minRepeatType:this.parser.minRepeatTerm})}stackID(n){let l=(Gf||(Gf=new WeakMap)).get(n);return l||Gf.set(n,l=String.fromCodePoint(this.nextStackID++)),l+n}}function P1(e,n){for(let l=0;l<n.length;l++){let r=n[l];if(r.pos==e.pos&&r.sameState(e)){n[l].score<e.score&&(n[l]=e);return}}n.push(e)}class w3{constructor(n,l,r){this.source=n,this.flags=l,this.disabled=r}allows(n){return!this.disabled||this.disabled[n]==0}}const Df=e=>e;class jh{constructor(n){this.start=n.start,this.shift=n.shift||Df,this.reduce=n.reduce||Df,this.reuse=n.reuse||Df,this.hash=n.hash||(()=>0),this.strict=n.strict!==!1}}class is extends D0{constructor(n){if(super(),this.wrappers=[],n.version!=14)throw new RangeError(`Parser version (${n.version}) doesn't match runtime version (14)`);let l=n.nodeNames.split(" ");this.minRepeatTerm=l.length;for(let f=0;f<n.repeatNodeCount;f++)l.push("");let r=Object.keys(n.topRules).map(f=>n.topRules[f][1]),o=[];for(let f=0;f<l.length;f++)o.push([]);function d(f,h,p){o[f].push([h,h.deserialize(String(p))])}if(n.nodeProps)for(let f of n.nodeProps){let h=f[0];typeof h=="string"&&(h=Oa[h]);for(let p=1;p<f.length;){let g=f[p++];if(g>=0)d(g,h,f[p++]);else{let x=f[p+-g];for(let b=-g;b>0;b--)d(f[p++],h,x);p++}}}this.nodeSet=new BO(l.map((f,h)=>yi.define({name:h>=this.minRepeatTerm?void 0:f,id:h,props:o[h],top:r.indexOf(h)>-1,error:h==0,skipped:n.skippedNodes&&n.skippedNodes.indexOf(h)>-1}))),n.propSources&&(this.nodeSet=this.nodeSet.extend(...n.propSources)),this.strict=!1,this.bufferLength=Wj;let u=li(n.tokenData);this.context=n.context,this.specializerSpecs=n.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let f=0;f<this.specializerSpecs.length;f++)this.specialized[f]=this.specializerSpecs[f].term;this.specializers=this.specializerSpecs.map(z1),this.states=li(n.states,Uint32Array),this.data=li(n.stateData),this.goto=li(n.goto),this.maxTerm=n.maxTerm,this.tokenizers=n.tokenizers.map(f=>typeof f=="number"?new Gl(u,f):f),this.topRules=n.topRules,this.dialects=n.dialects||{},this.dynamicPrecedences=n.dynamicPrecedences||null,this.tokenPrecTable=n.tokenPrec,this.termNames=n.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(n,l,r){let o=new j3(this,n,l,r);for(let d of this.wrappers)o=d(o,n,l,r);return o}getGoto(n,l,r=!1){let o=this.goto;if(l>=o[0])return-1;for(let d=o[l+1];;){let u=o[d++],f=u&1,h=o[d++];if(f&&r)return h;for(let p=d+(u>>1);d<p;d++)if(o[d]==n)return h;if(f)return-1}}hasAction(n,l){let r=this.data;for(let o=0;o<2;o++)for(let d=this.stateSlot(n,o?2:1),u;;d+=3){if((u=r[d])==65535)if(r[d+1]==1)u=r[d=fa(r,d+2)];else{if(r[d+1]==2)return fa(r,d+2);break}if(u==l||u==0)return fa(r,d+1)}return 0}stateSlot(n,l){return this.states[n*6+l]}stateFlag(n,l){return(this.stateSlot(n,0)&l)>0}validAction(n,l){return!!this.allActions(n,r=>r==l?!0:null)}allActions(n,l){let r=this.stateSlot(n,4),o=r?l(r):void 0;for(let d=this.stateSlot(n,1);o==null;d+=3){if(this.data[d]==65535)if(this.data[d+1]==1)d=fa(this.data,d+2);else break;o=l(fa(this.data,d+1))}return o}nextStates(n){let l=[];for(let r=this.stateSlot(n,1);;r+=3){if(this.data[r]==65535)if(this.data[r+1]==1)r=fa(this.data,r+2);else break;if((this.data[r+2]&1)==0){let o=this.data[r+1];l.some((d,u)=>u&1&&d==o)||l.push(this.data[r],o)}}return l}configure(n){let l=Object.assign(Object.create(is.prototype),this);if(n.props&&(l.nodeSet=this.nodeSet.extend(...n.props)),n.top){let r=this.topRules[n.top];if(!r)throw new RangeError(`Invalid top rule name ${n.top}`);l.top=r}return n.tokenizers&&(l.tokenizers=this.tokenizers.map(r=>{let o=n.tokenizers.find(d=>d.from==r);return o?o.to:r})),n.specializers&&(l.specializers=this.specializers.slice(),l.specializerSpecs=this.specializerSpecs.map((r,o)=>{let d=n.specializers.find(f=>f.from==r.external);if(!d)return r;let u=Object.assign(Object.assign({},r),{external:d.to});return l.specializers[o]=z1(u),u})),n.contextTracker&&(l.context=n.contextTracker),n.dialect&&(l.dialect=this.parseDialect(n.dialect)),n.strict!=null&&(l.strict=n.strict),n.wrap&&(l.wrappers=l.wrappers.concat(n.wrap)),n.bufferLength!=null&&(l.bufferLength=n.bufferLength),l}hasWrappers(){return this.wrappers.length>0}getName(n){return this.termNames?this.termNames[n]:String(n<=this.maxNode&&this.nodeSet.types[n].name||n)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(n){let l=this.dynamicPrecedences;return l==null?0:l[n]||0}parseDialect(n){let l=Object.keys(this.dialects),r=l.map(()=>!1);if(n)for(let d of n.split(" ")){let u=l.indexOf(d);u>=0&&(r[u]=!0)}let o=null;for(let d=0;d<l.length;d++)if(!r[d])for(let u=this.dialects[l[d]],f;(f=this.data[u++])!=65535;)(o||(o=new Uint8Array(this.maxTerm+1)))[f]=1;return new w3(n,r,o)}static deserialize(n){return new is(n)}}function fa(e,n){return e[n]|e[n+1]<<16}function k3(e){let n=null;for(let l of e){let r=l.p.stoppedAt;(l.pos==l.p.stream.end||r!=null&&l.pos>r)&&l.p.parser.stateFlag(l.state,2)&&(!n||n.score<l.score)&&(n=l)}return n}function z1(e){if(e.external){let n=e.extend?1:0;return(l,r)=>e.external(l,r)<<1|n}return e.get}const $3=316,T3=317,C1=1,N3=2,P3=3,z3=4,C3=318,R3=320,_3=321,A3=5,X3=6,Z3=0,zO=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],Av=125,E3=59,CO=47,q3=42,M3=43,Y3=45,U3=60,V3=44,G3=63,D3=46,L3=91,W3=new jh({start:!1,shift(e,n){return n==A3||n==X3||n==R3?e:n==_3},strict:!1}),B3=new wt((e,n)=>{let{next:l}=e;(l==Av||l==-1||n.context)&&e.acceptToken(C3)},{contextual:!0,fallback:!0}),H3=new wt((e,n)=>{let{next:l}=e,r;zO.indexOf(l)>-1||l==CO&&((r=e.peek(1))==CO||r==q3)||l!=Av&&l!=E3&&l!=-1&&!n.context&&e.acceptToken($3)},{contextual:!0}),I3=new wt((e,n)=>{e.next==L3&&!n.context&&e.acceptToken(T3)},{contextual:!0}),F3=new wt((e,n)=>{let{next:l}=e;if(l==M3||l==Y3){if(e.advance(),l==e.next){e.advance();let r=!n.context&&n.canShift(C1);e.acceptToken(r?C1:N3)}}else l==G3&&e.peek(1)==D3&&(e.advance(),e.advance(),(e.next<48||e.next>57)&&e.acceptToken(P3))},{contextual:!0});function Lf(e,n){return e>=65&&e<=90||e>=97&&e<=122||e==95||e>=192||!n&&e>=48&&e<=57}const K3=new wt((e,n)=>{if(e.next!=U3||!n.dialectEnabled(Z3)||(e.advance(),e.next==CO))return;let l=0;for(;zO.indexOf(e.next)>-1;)e.advance(),l++;if(Lf(e.next,!0)){for(e.advance(),l++;Lf(e.next,!1);)e.advance(),l++;for(;zO.indexOf(e.next)>-1;)e.advance(),l++;if(e.next==V3)return;for(let r=0;;r++){if(r==7){if(!Lf(e.next,!0))return;break}if(e.next!="extends".charCodeAt(r))break;e.advance(),l++}}e.acceptToken(z3,-l)}),J3=Gs({"get set async static":E.modifier,"for while do if else switch try catch finally return throw break continue default case defer":E.controlKeyword,"in of await yield void typeof delete instanceof as satisfies":E.operatorKeyword,"let var const using function class extends":E.definitionKeyword,"import export from":E.moduleKeyword,"with debugger new":E.keyword,TemplateString:E.special(E.string),super:E.atom,BooleanLiteral:E.bool,this:E.self,null:E.null,Star:E.modifier,VariableName:E.variableName,"CallExpression/VariableName TaggedTemplateExpression/VariableName":E.function(E.variableName),VariableDefinition:E.definition(E.variableName),Label:E.labelName,PropertyName:E.propertyName,PrivatePropertyName:E.special(E.propertyName),"CallExpression/MemberExpression/PropertyName":E.function(E.propertyName),"FunctionDeclaration/VariableDefinition":E.function(E.definition(E.variableName)),"ClassDeclaration/VariableDefinition":E.definition(E.className),"NewExpression/VariableName":E.className,PropertyDefinition:E.definition(E.propertyName),PrivatePropertyDefinition:E.definition(E.special(E.propertyName)),UpdateOp:E.updateOperator,"LineComment Hashbang":E.lineComment,BlockComment:E.blockComment,Number:E.number,String:E.string,Escape:E.escape,ArithOp:E.arithmeticOperator,LogicOp:E.logicOperator,BitOp:E.bitwiseOperator,CompareOp:E.compareOperator,RegExp:E.regexp,Equals:E.definitionOperator,Arrow:E.function(E.punctuation),": Spread":E.punctuation,"( )":E.paren,"[ ]":E.squareBracket,"{ }":E.brace,"InterpolationStart InterpolationEnd":E.special(E.brace),".":E.derefOperator,", ;":E.separator,"@":E.meta,TypeName:E.typeName,TypeDefinition:E.definition(E.typeName),"type enum interface implements namespace module declare":E.definitionKeyword,"abstract global Privacy readonly override":E.modifier,"is keyof unique infer asserts":E.operatorKeyword,JSXAttributeValue:E.attributeValue,JSXText:E.content,"JSXStartTag JSXStartCloseTag JSXSelfCloseEndTag JSXEndTag":E.angleBracket,"JSXIdentifier JSXNameSpacedName":E.tagName,"JSXAttribute/JSXIdentifier JSXAttribute/JSXNameSpacedName":E.attributeName,"JSXBuiltin/JSXIdentifier":E.standard(E.tagName)}),e4={__proto__:null,export:20,as:25,from:33,default:36,async:41,function:42,in:52,out:55,const:56,extends:60,this:64,true:72,false:72,null:84,void:88,typeof:92,super:108,new:142,delete:154,yield:163,await:167,class:172,public:235,private:235,protected:235,readonly:237,instanceof:256,satisfies:259,import:292,keyof:349,unique:353,infer:359,asserts:395,is:397,abstract:417,implements:419,type:421,let:424,var:426,using:429,interface:435,enum:439,namespace:445,module:447,declare:451,global:455,defer:471,for:476,of:485,while:488,with:492,do:496,if:500,else:502,switch:506,case:512,try:518,catch:522,finally:526,return:530,throw:534,break:538,continue:542,debugger:546},t4={__proto__:null,async:129,get:131,set:133,declare:195,public:197,private:197,protected:197,static:199,abstract:201,override:203,readonly:209,accessor:211,new:401},n4={__proto__:null,"<":193},a4=is.deserialize({version:14,states:"$F|Q%TQlOOO%[QlOOO'_QpOOP(lO`OOO*zQ!0MxO'#CiO+RO#tO'#CjO+aO&jO'#CjO+oO#@ItO'#DaO.QQlO'#DgO.bQlO'#DrO%[QlO'#DzO0fQlO'#ESOOQ!0Lf'#E['#E[O1PQ`O'#EXOOQO'#Ep'#EpOOQO'#Il'#IlO1XQ`O'#GsO1dQ`O'#EoO1iQ`O'#EoO3hQ!0MxO'#JrO6[Q!0MxO'#JsO6uQ`O'#F]O6zQ,UO'#FtOOQ!0Lf'#Ff'#FfO7VO7dO'#FfO9XQMhO'#F|O9`Q`O'#F{OOQ!0Lf'#Js'#JsOOQ!0Lb'#Jr'#JrO9eQ`O'#GwOOQ['#K_'#K_O9pQ`O'#IYO9uQ!0LrO'#IZOOQ['#J`'#J`OOQ['#I_'#I_Q`QlOOQ`QlOOO9}Q!L^O'#DvO:UQlO'#EOO:]QlO'#EQO9kQ`O'#GsO:dQMhO'#CoO:rQ`O'#EnO:}Q`O'#EyO;hQMhO'#FeO;xQ`O'#GsOOQO'#K`'#K`O;}Q`O'#K`O<]Q`O'#G{O<]Q`O'#G|O<]Q`O'#HOO9kQ`O'#HRO=SQ`O'#HUO>kQ`O'#CeO>{Q`O'#HcO?TQ`O'#HiO?TQ`O'#HkO`QlO'#HmO?TQ`O'#HoO?TQ`O'#HrO?YQ`O'#HxO?_Q!0LsO'#IOO%[QlO'#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R4V/UT*_$x*bT*h${*YQ0w+fQ1g,VQ3_.fQ5t1iQ6P1qQ7X3cQ8r6SQ9c7WQ:^8qQ:p9bQ;Z:`Q;c:rQ;n;[R;q;dnqOXst!Z#d%m&r&t&u&w,s,x2[2_Q&l!VR,h&itmOXst!U!V!Z#d%m&i&r&t&u&w,s,x2[2_R,o&oT%lm,oR1k,XR,g&gQ&U|S+}&V&WR1^,OR+s&PT&p!W&sT&q!W&sT2^,x2_",nodeNames:"⚠ ArithOp ArithOp ?. JSXStartTag LineComment BlockComment Script Hashbang ExportDeclaration export Star as VariableName String Escape from ; default FunctionDeclaration async function VariableDefinition > < TypeParamList in out const TypeDefinition extends ThisType this LiteralType ArithOp Number BooleanLiteral TemplateType InterpolationEnd Interpolation InterpolationStart NullType null VoidType void TypeofType typeof MemberExpression . PropertyName [ TemplateString Escape Interpolation super RegExp ] ArrayExpression Spread , } { ObjectExpression Property async get set PropertyDefinition Block : NewTarget new NewExpression ) ( ArgList UnaryExpression delete LogicOp BitOp YieldExpression yield AwaitExpression await ParenthesizedExpression ClassExpression class ClassBody MethodDeclaration Decorator @ MemberExpression PrivatePropertyName CallExpression TypeArgList CompareOp < declare Privacy static abstract override PrivatePropertyDefinition PropertyDeclaration readonly accessor Optional TypeAnnotation Equals StaticBlock FunctionExpression ArrowFunction ParamList ParamList ArrayPattern ObjectPattern PatternProperty Privacy readonly Arrow MemberExpression BinaryExpression ArithOp ArithOp ArithOp ArithOp BitOp CompareOp instanceof satisfies CompareOp BitOp BitOp BitOp LogicOp LogicOp ConditionalExpression LogicOp LogicOp AssignmentExpression UpdateOp PostfixExpression CallExpression InstantiationExpression TaggedTemplateExpression DynamicImport import ImportMeta JSXElement JSXSelfCloseEndTag JSXSelfClosingTag JSXIdentifier JSXBuiltin JSXIdentifier JSXNamespacedName JSXMemberExpression JSXSpreadAttribute JSXAttribute JSXAttributeValue JSXEscape JSXEndTag JSXOpenTag JSXFragmentTag JSXText JSXEscape JSXStartCloseTag JSXCloseTag PrefixCast < ArrowFunction TypeParamList SequenceExpression InstantiationExpression KeyofType keyof UniqueType unique ImportType InferredType infer TypeName ParenthesizedType FunctionSignature ParamList NewSignature IndexedType TupleType Label ArrayType ReadonlyType ObjectType MethodType PropertyType IndexSignature PropertyDefinition CallSignature TypePredicate asserts is NewSignature new UnionType LogicOp IntersectionType LogicOp ConditionalType ParameterizedType ClassDeclaration abstract implements type VariableDeclaration let var using TypeAliasDeclaration InterfaceDeclaration interface EnumDeclaration enum EnumBody NamespaceDeclaration namespace module AmbientDeclaration declare GlobalDeclaration global ClassDeclaration ClassBody AmbientFunctionDeclaration ExportGroup VariableName VariableName ImportDeclaration defer ImportGroup ForStatement for ForSpec ForInSpec ForOfSpec of WhileStatement while WithStatement with DoStatement do IfStatement if else SwitchStatement switch SwitchBody CaseLabel case DefaultLabel TryStatement try CatchClause catch FinallyClause finally ReturnStatement return ThrowStatement throw BreakStatement break ContinueStatement continue DebuggerStatement debugger LabeledStatement ExpressionStatement SingleExpression SingleClassItem",maxTerm:380,context:W3,nodeProps:[["isolate",-8,5,6,14,37,39,51,53,55,""],["group",-26,9,17,19,68,207,211,215,216,218,221,224,234,237,243,245,247,249,252,258,264,266,268,270,272,274,275,"Statement",-34,13,14,32,35,36,42,51,54,55,57,62,70,72,76,80,82,84,85,110,111,120,121,136,139,141,142,143,144,145,147,148,167,169,171,"Expression",-23,31,33,37,41,43,45,173,175,177,178,180,181,182,184,185,186,188,189,190,201,203,205,206,"Type",-3,88,103,109,"ClassItem"],["openedBy",23,"<",38,"InterpolationStart",56,"[",60,"{",73,"(",160,"JSXStartCloseTag"],["closedBy",-2,24,168,">",40,"InterpolationEnd",50,"]",61,"}",74,")",165,"JSXEndTag"]],propSources:[J3],skippedNodes:[0,5,6,278],repeatNodeCount:37,tokenData:"$Fq07[R!bOX%ZXY+gYZ-yZ[+g[]%Z]^.c^p%Zpq+gqr/mrs3cst:_tuEruvJSvwLkwx! Yxy!'iyz!(sz{!)}{|!,q|}!.O}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[e]||-1},{term:343,get:e=>t4[e]||-1},{term:95,get:e=>n4[e]||-1}],tokenPrec:15201}),Xv=[tt("function ${name}(${params}) {\n ${}\n}",{label:"function",detail:"definition",type:"keyword"}),tt("for (let ${index} = 0; ${index} < ${bound}; ${index}++) {\n ${}\n}",{label:"for",detail:"loop",type:"keyword"}),tt("for (let ${name} of ${collection}) {\n ${}\n}",{label:"for",detail:"of loop",type:"keyword"}),tt("do {\n ${}\n} while (${})",{label:"do",detail:"loop",type:"keyword"}),tt("while (${}) {\n ${}\n}",{label:"while",detail:"loop",type:"keyword"}),tt(`try {
|
|
585
|
-
\${}
|
|
586
|
-
} catch (\${error}) {
|
|
587
|
-
\${}
|
|
588
|
-
}`,{label:"try",detail:"/ catch block",type:"keyword"}),tt("if (${}) {\n ${}\n}",{label:"if",detail:"block",type:"keyword"}),tt(`if (\${}) {
|
|
589
|
-
\${}
|
|
590
|
-
} else {
|
|
591
|
-
\${}
|
|
592
|
-
}`,{label:"if",detail:"/ else block",type:"keyword"}),tt(`class \${name} {
|
|
593
|
-
constructor(\${params}) {
|
|
594
|
-
\${}
|
|
595
|
-
}
|
|
596
|
-
}`,{label:"class",detail:"definition",type:"keyword"}),tt('import {${names}} from "${module}"\n${}',{label:"import",detail:"named",type:"keyword"}),tt('import ${name} from "${module}"\n${}',{label:"import",detail:"default",type:"keyword"})],s4=Xv.concat([tt("interface ${name} {\n ${}\n}",{label:"interface",detail:"definition",type:"keyword"}),tt("type ${name} = ${type}",{label:"type",detail:"definition",type:"keyword"}),tt("enum ${name} {\n ${}\n}",{label:"enum",detail:"definition",type:"keyword"})]),R1=new HO,Zv=new Set(["Script","Block","FunctionExpression","FunctionDeclaration","ArrowFunction","MethodDeclaration","ForStatement"]);function ni(e){return(n,l)=>{let r=n.node.getChild("VariableDefinition");return r&&l(r,e),!0}}const l4=["FunctionDeclaration"],r4={FunctionDeclaration:ni("function"),ClassDeclaration:ni("class"),ClassExpression:()=>!0,EnumDeclaration:ni("constant"),TypeAliasDeclaration:ni("type"),NamespaceDeclaration:ni("namespace"),VariableDefinition(e,n){e.matchContext(l4)||n(e,"variable")},TypeDefinition(e,n){n(e,"type")},__proto__:null};function Ev(e,n){let l=R1.get(n);if(l)return l;let r=[],o=!0;function d(u,f){let h=e.sliceString(u.from,u.to);r.push({label:h,type:f})}return n.cursor(Hc.IncludeAnonymous).iterate(u=>{if(o)o=!1;else if(u.name){let f=r4[u.name];if(f&&f(u,d)||Zv.has(u.name))return!1}else if(u.to-u.from>8192){for(let f of Ev(e,u.node))r.push(f);return!1}}),R1.set(n,r),r}const _1=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,qv=["TemplateString","String","RegExp","LineComment","BlockComment","VariableDefinition","TypeDefinition","Label","PropertyDefinition","PropertyName","PrivatePropertyDefinition","PrivatePropertyName","JSXText","JSXAttributeValue","JSXOpenTag","JSXCloseTag","JSXSelfClosingTag",".","?."];function i4(e){let n=yn(e.state).resolveInner(e.pos,-1);if(qv.indexOf(n.name)>-1)return null;let l=n.name=="VariableName"||n.to-n.from<20&&_1.test(e.state.sliceDoc(n.from,n.to));if(!l&&!e.explicit)return null;let r=[];for(let o=n;o;o=o.parent)Zv.has(o.name)&&(r=r.concat(Ev(e.state.doc,o)));return{options:r,from:l?n.from:e.pos,validFor:_1}}const Rn=Si.define({name:"javascript",parser:a4.configure({props:[nr.add({IfStatement:Ml({except:/^\s*({|else\b)/}),TryStatement:Ml({except:/^\s*({|catch\b|finally\b)/}),LabeledStatement:Bj,SwitchBody:e=>{let n=e.textAfter,l=/^\s*\}/.test(n),r=/^\s*(case|default)\b/.test(n);return e.baseIndent+(l?0:r?1:2)*e.unit},Block:mc({closing:"}"}),ArrowFunction:e=>e.baseIndent+e.unit,"TemplateString BlockComment":()=>null,"Statement Property":Ml({except:/^\s*{/}),JSXElement(e){let n=/^\s*<\//.test(e.textAfter);return e.lineIndent(e.node.from)+(n?0:e.unit)},JSXEscape(e){let n=/\s*\}/.test(e.textAfter);return e.lineIndent(e.node.from)+(n?0:e.unit)},"JSXOpenTag JSXSelfClosingTag"(e){return e.column(e.node.from)+e.unit}}),Ds.add({"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression ObjectType":Ic,BlockComment(e){return{from:e.from+2,to:e.to-2}},JSXElement(e){let n=e.firstChild;if(!n||n.name=="JSXSelfClosingTag")return null;let l=e.lastChild;return{from:n.to,to:l.type.isError?e.to:l.from}},"JSXSelfClosingTag JSXOpenTag"(e){var n;let l=(n=e.firstChild)===null||n===void 0?void 0:n.nextSibling,r=e.lastChild;return!l||l.type.isError?null:{from:l.to,to:r.type.isError?e.to:r.from}}})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\}|<\/)$/,wordChars:"$"}}),Mv={test:e=>/^JSX/.test(e.name),facet:H0({commentTokens:{block:{open:"{/*",close:"*/}"}}})},Yv=Rn.configure({dialect:"ts"},"typescript"),Uv=Rn.configure({dialect:"jsx",props:[B0.add(e=>e.isTop?[Mv]:void 0)]}),Vv=Rn.configure({dialect:"jsx ts",props:[B0.add(e=>e.isTop?[Mv]:void 0)]},"typescript");let Gv=e=>({label:e,type:"keyword"});const Dv="break case const continue default delete export extends false finally in instanceof let new return static super switch this throw true typeof var yield".split(" ").map(Gv),o4=Dv.concat(["declare","implements","private","protected","public"].map(Gv));function RO(e={}){let n=e.jsx?e.typescript?Vv:Uv:e.typescript?Yv:Rn,l=e.typescript?s4.concat(o4):Xv.concat(Dv);return new Zs(n,[Rn.data.of({autocomplete:L0(qv,W0(l))}),Rn.data.of({autocomplete:i4}),e.jsx?u4:[]])}function c4(e){for(;;){if(e.name=="JSXOpenTag"||e.name=="JSXSelfClosingTag"||e.name=="JSXFragmentTag")return e;if(e.name=="JSXEscape"||!e.parent)return null;e=e.parent}}function A1(e,n,l=e.length){for(let r=n==null?void 0:n.firstChild;r;r=r.nextSibling)if(r.name=="JSXIdentifier"||r.name=="JSXBuiltin"||r.name=="JSXNamespacedName"||r.name=="JSXMemberExpression")return e.sliceString(r.from,Math.min(r.to,l));return""}const d4=typeof navigator=="object"&&/Android\b/.test(navigator.userAgent),u4=Ll.inputHandler.of((e,n,l,r,o)=>{if((d4?e.composing:e.compositionStarted)||e.state.readOnly||n!=l||r!=">"&&r!="/"||!Rn.isActiveAt(e.state,n,-1))return!1;let d=o(),{state:u}=d,f=u.changeByRange(h=>{var p;let{head:g}=h,x=yn(u).resolveInner(g-1,-1),b;if(x.name=="JSXStartTag"&&(x=x.parent),!(u.doc.sliceString(g-1,g)!=r||x.name=="JSXAttributeValue"&&x.to>g)){if(r==">"&&x.name=="JSXFragmentTag")return{range:h,changes:{from:g,insert:"</>"}};if(r=="/"&&x.name=="JSXStartCloseTag"){let y=x.parent,Q=y.parent;if(Q&&y.from==g-2&&((b=A1(u.doc,Q.firstChild,g))||((p=Q.firstChild)===null||p===void 0?void 0:p.name)=="JSXFragmentTag")){let w=`${b}>`;return{range:ts.cursor(g+w.length,-1),changes:{from:g,insert:w}}}}else if(r==">"){let y=c4(x);if(y&&y.name=="JSXOpenTag"&&!/^\/?>|^<\//.test(u.doc.sliceString(g,g+2))&&(b=A1(u.doc,y,g)))return{range:h,changes:{from:g,insert:`</${b}>`}}}}return{range:h}});return f.changes.empty?!1:(e.dispatch([d,u.update(f,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}),f4=135,X1=1,O4=136,h4=137,Lv=2,m4=138,p4=3,x4=4,Wv=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],g4=58,b4=40,Bv=95,v4=91,bc=45,y4=46,S4=35,Q4=37,j4=38,w4=92,k4=10,$4=42;function hi(e){return e>=65&&e<=90||e>=97&&e<=122||e>=161}function wh(e){return e>=48&&e<=57}function Z1(e){return wh(e)||e>=97&&e<=102||e>=65&&e<=70}const Hv=(e,n,l)=>(r,o)=>{for(let d=!1,u=0,f=0;;f++){let{next:h}=r;if(hi(h)||h==bc||h==Bv||d&&wh(h))!d&&(h!=bc||f>0)&&(d=!0),u===f&&h==bc&&u++,r.advance();else if(h==w4&&r.peek(1)!=k4){if(r.advance(),Z1(r.next)){do r.advance();while(Z1(r.next));r.next==32&&r.advance()}else r.next>-1&&r.advance();d=!0}else{d&&r.acceptToken(u==2&&o.canShift(Lv)?n:h==b4?l:e);break}}},T4=new wt(Hv(O4,Lv,h4),{contextual:!0}),N4=new wt(Hv(m4,p4,x4),{contextual:!0}),P4=new wt(e=>{if(Wv.includes(e.peek(-1))){let{next:n}=e;(hi(n)||n==Bv||n==S4||n==y4||n==$4||n==v4||n==g4&&hi(e.peek(1))||n==bc||n==j4)&&e.acceptToken(f4)}}),z4=new wt(e=>{if(!Wv.includes(e.peek(-1))){let{next:n}=e;if(n==Q4&&(e.advance(),e.acceptToken(X1)),hi(n)){do e.advance();while(hi(e.next)||wh(e.next));e.acceptToken(X1)}}}),C4=Gs({"AtKeyword import charset namespace keyframes media supports font-feature-values":E.definitionKeyword,"from to selector scope MatchFlag":E.keyword,NamespaceName:E.namespace,KeyframeName:E.labelName,KeyframeRangeName:E.operatorKeyword,TagName:E.tagName,ClassName:E.className,PseudoClassName:E.constant(E.className),IdName:E.labelName,"FeatureName PropertyName":E.propertyName,AttributeName:E.attributeName,NumberLiteral:E.number,KeywordQuery:E.keyword,UnaryQueryOp:E.operatorKeyword,"CallTag ValueName FontName":E.atom,VariableName:E.variableName,Callee:E.operatorKeyword,Unit:E.unit,"UniversalSelector NestingSelector":E.definitionOperator,"MatchOp CompareOp":E.compareOperator,"ChildOp SiblingOp, LogicOp":E.logicOperator,BinOp:E.arithmeticOperator,Important:E.modifier,Comment:E.blockComment,ColorLiteral:E.color,"ParenthesizedContent StringLiteral":E.string,":":E.punctuation,"PseudoOp #":E.derefOperator,"; , |":E.separator,"( )":E.paren,"[ ]":E.squareBracket,"{ }":E.brace}),R4={__proto__:null,lang:44,"nth-child":44,"nth-last-child":44,"nth-of-type":44,"nth-last-of-type":44,dir:44,"host-context":44,if:90,url:132,"url-prefix":132,domain:132,regexp:132},_4={__proto__:null,or:104,and:104,not:112,only:112,layer:186},A4={__proto__:null,selector:118,layer:182},X4={__proto__:null,"@import":178,"@media":190,"@charset":194,"@namespace":198,"@keyframes":204,"@supports":216,"@scope":220,"@font-feature-values":226},Z4={__proto__:null,to:223},E4=is.deserialize({version:14,states:"IpQYQdOOO#}QdOOP$UO`OOO%OQaO'#CfOOQP'#Ce'#CeO%VQdO'#CgO%[Q`O'#CgO%aQaO'#FdO&XQdO'#CkO&xQaO'#CcO'SQdO'#CnO'_QdO'#DtO'dQdO'#DvO'oQdO'#D}O'oQdO'#EQOOQP'#Fd'#FdO)OQhO'#EsOOQS'#Fc'#FcOOQS'#Ev'#EvQYQdOOO)VQdO'#EWO*cQhO'#E^O)VQdO'#E`O*jQdO'#EbO*uQdO'#EeO)zQhO'#EkO*}QdO'#EmO+YQdO'#EpO+_QaO'#CfO+fQ`O'#ETO+kQ`O'#FnO+vQdO'#FnQOQ`OOP,QO&jO'#CaPOOO)CAR)CAROOQP'#Ci'#CiOOQP,59R,59RO%VQdO,59ROOQP'#Cm'#CmOOQP,59V,59VO&XQdO,59VO,]QdO,59YO'_QdO,5:`O'dQdO,5:bO'oQdO,5:iO'oQdO,5:kO'oQdO,5:lO'oQdO'#E}O,hQ`O,58}O,pQdO'#ESOOQS,58},58}OOQP'#Cq'#CqOOQO'#Dr'#DrOOQP,59Y,59YO,wQ`O,59YO,|Q`O,59YOOQP'#Du'#DuOOQP,5:`,5:`O-RQpO'#DwO-^QdO'#DxO-cQ`O'#DxO-hQpO,5:bO.RQaO,5:iO.iQaO,5:lOOQW'#D^'#D^O/eQhO'#DgO/xQhO,5;_O)zQhO'#DeO0VQ`O'#DkO0[QhO'#DnOOQW'#Fj'#FjOOQS,5;_,5;_O0aQ`O'#DhOOQS-E8t-E8tOOQ['#Cv'#CvO0fQdO'#CwO0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%Y#p%Z%_&a&f&k'U'^'k'sQ%^#uQ%n$aS&U$y&WQ&[%UQ&}&VR'b&p]$X!m!n!o$Y$[$^Q!d`U!xe!q$eQ#QiQ#x!cS#{!d$OQ$Q!eQ%b#|Q%c#}Q%g$RS%r$g%tQ%w$jR'Z&iQ#z!cQ&h%`R'j'YR%i$RR%X#oQpPR#n!RQ!yeQ$d!qR%q$e",nodeNames:"⚠ Unit VariableName VariableName QueryCallee Comment StyleSheet RuleSet UniversalSelector TagSelector TagName NamespacedTagSelector NamespaceName TagName NestingSelector ClassSelector . ClassName PseudoClassSelector : :: PseudoClassName PseudoClassName ) ( ArgList ValueName ParenthesizedValue AtKeyword # ; ] [ BracketedValue } { BracedValue ColorLiteral NumberLiteral StringLiteral BinaryExpression BinOp CallExpression Callee IfExpression if ArgList IfBranch KeywordQuery FeatureQuery FeatureName BinaryQuery LogicOp ComparisonQuery CompareOp UnaryQuery UnaryQueryOp ParenthesizedQuery SelectorQuery selector ParenthesizedSelector CallQuery ArgList , PseudoQuery CallLiteral CallTag ParenthesizedContent PseudoClassName ArgList IdSelector IdName AttributeSelector AttributeName NamespacedAttribute NamespaceName AttributeName MatchOp MatchFlag ChildSelector ChildOp DescendantSelector SiblingSelector SiblingOp Block Declaration PropertyName Important ImportStatement import Layer layer LayerName layer MediaStatement media CharsetStatement charset NamespaceStatement namespace NamespaceName KeyframesStatement keyframes KeyframeName KeyframeList KeyframeSelector KeyframeRangeName SupportsStatement supports ScopeStatement scope to FontFeatureStatement font-feature-values FontName AtRule Styles",maxTerm:159,nodeProps:[["isolate",-2,5,39,""],["openedBy",23,"(",31,"[",34,"{"],["closedBy",24,")",32,"]",35,"}"]],propSources:[C4],skippedNodes:[0,5,117],repeatNodeCount:17,tokenData:"K`~R!bOX%ZX^&R^p%Zpq&Rqr)ers)vst+jtu2Xuv%Zvw3Rwx3dxy5Ryz5dz{5i{|6S|}:u}!O;W!O!P;u!P!Q<^!Q![=V![!]>Q!]!^>|!^!_?_!_!`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S%j;'S;=`%{<%lO%jjEWU!pWOy%jz#a%j#a#bEj#b;'S%j;'S;=`%{<%lO%jbEoU!e`Oy%jz#d%j#d#eFR#e;'S%j;'S;=`%{<%lO%jbFWU!e`Oy%jz#c%j#c#dFj#d;'S%j;'S;=`%{<%lO%jbFoU!e`Oy%jz#f%j#f#gGR#g;'S%j;'S;=`%{<%lO%jbGWU!e`Oy%jz#h%j#h#iGj#i;'S%j;'S;=`%{<%lO%jbGoU!e`Oy%jz#T%j#T#UHR#U;'S%j;'S;=`%{<%lO%jbHWU!e`Oy%jz#b%j#b#cHj#c;'S%j;'S;=`%{<%lO%jbHoU!e`Oy%jz#h%j#h#iIR#i;'S%j;'S;=`%{<%lO%jbIYS$cQ!e`Oy%jz;'S%j;'S;=`%{<%lO%jjIkSsYOy%jz;'S%j;'S;=`%{<%lO%jfI|U$XUOy%jz!_%j!_!`2n!`;'S%j;'S;=`%{<%lO%jjJeSrYOy%jz;'S%j;'S;=`%{<%lO%jfJvU!uQOy%jz!_%j!_!`2n!`;'S%j;'S;=`%{<%lO%j`K]P;=`<%l%Z",tokenizers:[P4,z4,T4,N4,1,2,3,4,new qc("m~RRYZ[z{a~~g~aO$T~~dP!P!Qg~lO$U~~",28,142)],topRules:{StyleSheet:[0,6],Styles:[1,116]},dynamicPrecedences:{84:1},specialized:[{term:137,get:e=>R4[e]||-1},{term:138,get:e=>_4[e]||-1},{term:4,get:e=>A4[e]||-1},{term:28,get:e=>X4[e]||-1},{term:136,get:e=>Z4[e]||-1}],tokenPrec:2256});let Wf=null;function Bf(){if(!Wf&&typeof document=="object"&&document.body){let{style:e}=document.body,n=[],l=new Set;for(let r in e)r!="cssText"&&r!="cssFloat"&&typeof e[r]=="string"&&(/[A-Z]/.test(r)&&(r=r.replace(/[A-Z]/g,o=>"-"+o.toLowerCase())),l.has(r)||(n.push(r),l.add(r)));Wf=n.sort().map(r=>({type:"property",label:r,apply:r+": "}))}return Wf||[]}const E1=["active","after","any-link","autofill","backdrop","before","checked","cue","default","defined","disabled","empty","enabled","file-selector-button","first","first-child","first-letter","first-line","first-of-type","focus","focus-visible","focus-within","fullscreen","has","host","host-context","hover","in-range","indeterminate","invalid","is","lang","last-child","last-of-type","left","link","marker","modal","not","nth-child","nth-last-child","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","part","placeholder","placeholder-shown","read-only","read-write","required","right","root","scope","selection","slotted","target","target-text","valid","visited","where"].map(e=>({type:"class",label:e})),q1=["above","absolute","activeborder","additive","activecaption","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","antialiased","appworkspace","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","blink","block","block-axis","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","bullets","button","button-bevel","buttonface","buttonhighlight","buttonshadow","buttontext","calc","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","contain","content","contents","content-box","context-menu","continuous","copy","counter","counters","cover","crop","cross","crosshair","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic-abegede-gez","ethiopic-halehame-aa-er","ethiopic-halehame-gez","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fill-box","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","graytext","grid","groove","hand","hard-light","help","hidden","hide","higher","highlight","highlighttext","horizontal","hsl","hsla","hue","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","justify","keep-all","landscape","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-hexadecimal","lower-latin","lower-norwegian","lowercase","ltr","luminosity","manipulation","match","matrix","matrix3d","medium","menu","menutext","message-box","middle","min-intrinsic","mix","monospace","move","multiple","multiple_mask_images","multiply","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","opacity","open-quote","optimizeLegibility","optimizeSpeed","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","perspective","pinch-zoom","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","self-start","self-end","semi-condensed","semi-expanded","separate","serif","show","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","start","static","status-bar","stretch","stroke","stroke-box","sub","subpixel-antialiased","svg_masks","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","text","text-bottom","text-top","textarea","textfield","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","to","top","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-latin","uppercase","url","var","vertical","vertical-text","view-box","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"].map(e=>({type:"keyword",label:e})).concat(["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"].map(e=>({type:"constant",label:e}))),q4=["a","abbr","address","article","aside","b","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","dd","del","details","dfn","dialog","div","dl","dt","em","figcaption","figure","footer","form","header","hgroup","h1","h2","h3","h4","h5","h6","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","main","meter","nav","ol","output","p","pre","ruby","section","select","small","source","span","strong","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","tr","u","ul"].map(e=>({type:"type",label:e})),M4=["@charset","@color-profile","@container","@counter-style","@font-face","@font-feature-values","@font-palette-values","@import","@keyframes","@layer","@media","@namespace","@page","@position-try","@property","@scope","@starting-style","@supports","@view-transition"].map(e=>({type:"keyword",label:e})),ia=/^(\w[\w-]*|-\w[\w-]*|)$/,Y4=/^-(-[\w-]*)?$/;function U4(e,n){var l;if((e.name=="("||e.type.isError)&&(e=e.parent||e),e.name!="ArgList")return!1;let r=(l=e.parent)===null||l===void 0?void 0:l.firstChild;return(r==null?void 0:r.name)!="Callee"?!1:n.sliceString(r.from,r.to)=="var"}const M1=new HO,V4=["Declaration"];function G4(e){for(let n=e;;){if(n.type.isTop)return n;if(!(n=n.parent))return e}}function Iv(e,n,l){if(n.to-n.from>4096){let r=M1.get(n);if(r)return r;let o=[],d=new Set,u=n.cursor(Hc.IncludeAnonymous);if(u.firstChild())do for(let f of Iv(e,u.node,l))d.has(f.label)||(d.add(f.label),o.push(f));while(u.nextSibling());return M1.set(n,o),o}else{let r=[],o=new Set;return n.cursor().iterate(d=>{var u;if(l(d)&&d.matchContext(V4)&&((u=d.node.nextSibling)===null||u===void 0?void 0:u.name)==":"){let f=e.sliceString(d.from,d.to);o.has(f)||(o.add(f),r.push({label:f,type:"variable"}))}}),r}}const D4=e=>n=>{let{state:l,pos:r}=n,o=yn(l).resolveInner(r,-1),d=o.type.isError&&o.from==o.to-1&&l.doc.sliceString(o.from,o.to)=="-";if(o.name=="PropertyName"||(d||o.name=="TagName")&&/^(Block|Styles)$/.test(o.resolve(o.to).name))return{from:o.from,options:Bf(),validFor:ia};if(o.name=="ValueName")return{from:o.from,options:q1,validFor:ia};if(o.name=="PseudoClassName")return{from:o.from,options:E1,validFor:ia};if(e(o)||(n.explicit||d)&&U4(o,l.doc))return{from:e(o)||d?o.from:r,options:Iv(l.doc,G4(o),e),validFor:Y4};if(o.name=="TagName"){for(let{parent:h}=o;h;h=h.parent)if(h.name=="Block")return{from:o.from,options:Bf(),validFor:ia};return{from:o.from,options:q4,validFor:ia}}if(o.name=="AtKeyword")return{from:o.from,options:M4,validFor:ia};if(!n.explicit)return null;let u=o.resolve(r),f=u.childBefore(r);return f&&f.name==":"&&u.name=="PseudoClassSelector"?{from:r,options:E1,validFor:ia}:f&&f.name==":"&&u.name=="Declaration"||u.name=="ArgList"?{from:r,options:q1,validFor:ia}:u.name=="Block"||u.name=="Styles"?{from:r,options:Bf(),validFor:ia}:null},L4=D4(e=>e.name=="VariableName"),Mc=Si.define({name:"css",parser:E4.configure({props:[nr.add({Declaration:Ml()}),Ds.add({"Block KeyframeList":Ic})]}),languageData:{commentTokens:{block:{open:"/*",close:"*/"}},indentOnInput:/^\s*\}$/,wordChars:"-"}});function Fv(){return new Zs(Mc,Mc.data.of({autocomplete:L4}))}const W4=55,B4=1,H4=56,I4=2,F4=57,K4=3,Y1=4,J4=5,kh=6,Kv=7,Jv=8,ey=9,ty=10,ez=11,tz=12,nz=13,Hf=58,az=14,sz=15,U1=59,ny=21,lz=23,ay=24,rz=25,_O=27,sy=28,iz=29,oz=32,cz=35,dz=37,uz=38,fz=0,Oz=1,hz={area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},mz={dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},V1={dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}};function pz(e){return e==45||e==46||e==58||e>=65&&e<=90||e==95||e>=97&&e<=122||e>=161}let G1=null,D1=null,L1=0;function AO(e,n){let l=e.pos+n;if(L1==l&&D1==e)return G1;let r=e.peek(n),o="";for(;pz(r);)o+=String.fromCharCode(r),r=e.peek(++n);return D1=e,L1=l,G1=o?o.toLowerCase():r==xz||r==gz?void 0:null}const ly=60,Yc=62,$h=47,xz=63,gz=33,bz=45;function W1(e,n){this.name=e,this.parent=n}const vz=[kh,ty,Kv,Jv,ey],yz=new jh({start:null,shift(e,n,l,r){return vz.indexOf(n)>-1?new W1(AO(r,1)||"",e):e},reduce(e,n){return n==ny&&e?e.parent:e},reuse(e,n,l,r){let o=n.type.id;return o==kh||o==dz?new W1(AO(r,1)||"",e):e},strict:!1}),Sz=new wt((e,n)=>{if(e.next!=ly){e.next<0&&n.context&&e.acceptToken(Hf);return}e.advance();let l=e.next==$h;l&&e.advance();let r=AO(e,0);if(r===void 0)return;if(!r)return e.acceptToken(l?sz:az);let o=n.context?n.context.name:null;if(l){if(r==o)return e.acceptToken(ez);if(o&&mz[o])return e.acceptToken(Hf,-2);if(n.dialectEnabled(fz))return e.acceptToken(tz);for(let d=n.context;d;d=d.parent)if(d.name==r)return;e.acceptToken(nz)}else{if(r=="script")return e.acceptToken(Kv);if(r=="style")return e.acceptToken(Jv);if(r=="textarea")return e.acceptToken(ey);if(hz.hasOwnProperty(r))return e.acceptToken(ty);o&&V1[o]&&V1[o][r]?e.acceptToken(Hf,-1):e.acceptToken(kh)}},{contextual:!0}),Qz=new wt(e=>{for(let n=0,l=0;;l++){if(e.next<0){l&&e.acceptToken(U1);break}if(e.next==bz)n++;else if(e.next==Yc&&n>=2){l>=3&&e.acceptToken(U1,-2);break}else n=0;e.advance()}});function jz(e){for(;e;e=e.parent)if(e.name=="svg"||e.name=="math")return!0;return!1}const wz=new wt((e,n)=>{if(e.next==$h&&e.peek(1)==Yc){let l=n.dialectEnabled(Oz)||jz(n.context);e.acceptToken(l?J4:Y1,2)}else e.next==Yc&&e.acceptToken(Y1,1)});function Th(e,n,l){let r=2+e.length;return new wt(o=>{for(let d=0,u=0,f=0;;f++){if(o.next<0){f&&o.acceptToken(n);break}if(d==0&&o.next==ly||d==1&&o.next==$h||d>=2&&d<r&&o.next==e.charCodeAt(d-2))d++,u++;else if(d==r&&o.next==Yc){f>u?o.acceptToken(n,-u):o.acceptToken(l,-(u-2));break}else if((o.next==10||o.next==13)&&f){o.acceptToken(n,1);break}else d=u=0;o.advance()}})}const kz=Th("script",W4,B4),$z=Th("style",H4,I4),Tz=Th("textarea",F4,K4),Nz=Gs({"Text RawText IncompleteTag IncompleteCloseTag":E.content,"StartTag StartCloseTag SelfClosingEndTag EndTag":E.angleBracket,TagName:E.tagName,"MismatchedCloseTag/TagName":[E.tagName,E.invalid],AttributeName:E.attributeName,"AttributeValue UnquotedAttributeValue":E.attributeValue,Is:E.definitionOperator,"EntityReference CharacterReference":E.character,Comment:E.blockComment,ProcessingInst:E.processingInstruction,DoctypeDecl:E.documentMeta}),Pz=is.deserialize({version:14,states:",xOVO!rOOO!ZQ#tO'#CrO!`Q#tO'#C{O!eQ#tO'#DOO!jQ#tO'#DRO!oQ#tO'#DTO!tOaO'#CqO#PObO'#CqO#[OdO'#CqO$kO!rO'#CqOOO`'#Cq'#CqO$rO$fO'#DUO$zQ#tO'#DWO%PQ#tO'#DXOOO`'#Dl'#DlOOO`'#DZ'#DZQVO!rOOO%UQ&rO,59^O%aQ&rO,59gO%lQ&rO,59jO%wQ&rO,59mO&SQ&rO,59oOOOa'#D_'#D_O&_OaO'#CyO&jOaO,59]OOOb'#D`'#D`O&rObO'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~OP!WO![!XO~O!YiOQpX![pX~OQ!ZO![!XO~O!ZlORsX![sX~OR!]O![!XO~O![!XO~P#gOg!_O~O!]sO!f!aO~OS!bO~OS!cO~Oj!dOShXThXihX~OS!fOT!gOiyO~OS!hOT!gOiyO~OS!iOT!gOiyO~OS!jOT!gOiyO~OS!gOT!gOiyO~Og!kO~Og!lO~Og!mO~OS!nO~Ol!qO!a!oO!c!pO~OS!rO~OS!sO~OS!tO~Ob!uOc!uOd!uO!a!wO!b!uO~Ob!xOc!xOd!xO!c!wO!d!xO~Ob!uOc!uOd!uO!a!{O!b!uO~Ob!xOc!xOd!xO!c!{O!d!xO~OT~cbd!ey|!e~",goto:"%q!aPPPPPPPPPPPPPPPPPPPPP!b!hP!nPP!zP!}#Q#T#Z#^#a#g#j#m#s#y!bP!b!bP$P$V$m$s$y%P%V%]%cPPPPPPPP%iX^OX`pXUOX`pezabcde{!O!Q!S!UR!q!dRhUR!XhXVOX`pRkVR!XkXWOX`pRnWR!XnXXOX`pQrXR!XpXYOX`pQ`ORx`Q{aQ!ObQ!QcQ!SdQ!UeZ!e{!O!Q!S!UQ!v!oR!z!vQ!y!pR!|!yQgUR!VgQjVR!YjQmWR![mQpXR!^pQtZR!`tS_O`ToXp",nodeNames:"⚠ StartCloseTag StartCloseTag StartCloseTag EndTag SelfClosingEndTag StartTag StartTag StartTag StartTag StartTag StartCloseTag StartCloseTag StartCloseTag IncompleteTag IncompleteCloseTag Document Text EntityReference CharacterReference InvalidEntity Element OpenTag TagName Attribute AttributeName Is AttributeValue UnquotedAttributeValue ScriptText CloseTag OpenTag StyleText CloseTag OpenTag TextareaText CloseTag OpenTag CloseTag SelfClosingTag Comment ProcessingInst MismatchedCloseTag CloseTag DoctypeDecl",maxTerm:68,context:yz,nodeProps:[["closedBy",-10,1,2,3,7,8,9,10,11,12,13,"EndTag",6,"EndTag SelfClosingEndTag",-4,22,31,34,37,"CloseTag"],["openedBy",4,"StartTag StartCloseTag",5,"StartTag",-4,30,33,36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q!7]V!dpOv!5kvx!6Vx!`!5k!`!a!7r!a;'S!5k;'S;=`!8V<%lO!5kq!7yS!dpyPOv(Vx;'S(V;'S;=`(h<%lO(Vq!8YP;=`<%l!5ka!8bX!b`Or!8]rs!6Vsv!8]vw!6Vw!a!8]!a!b!8}!b;'S!8];'S;=`!:V<%lO!8]a!9SX!b`Or!8]rs!6Vsv!8]vw!6Vw!`!8]!`!a!9o!a;'S!8];'S;=`!:V<%lO!8]a!9vT!b`yPOr)esv)ew;'S)e;'S;=`)y<%lO)ea!:YP;=`<%l!8]!R!:dY!b`!dpOr!4trs!5ksv!4tvw!6Vwx!8]x!`!4t!`!a!;S!a;'S!4t;'S;=`!;r<%lO!4t!R!;]V!b`!dpyPOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!;uP;=`<%l!4t!V!<TXjSaP!b`!dpOr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&X",tokenizers:[kz,$z,Tz,wz,Sz,Qz,0,1,2,3,4,5],topRules:{Document:[0,16]},dialects:{noMatch:0,selfClosing:515},tokenPrec:517});function ry(e,n){let l=Object.create(null);for(let r of e.getChildren(ay)){let o=r.getChild(rz),d=r.getChild(_O)||r.getChild(sy);o&&(l[n.read(o.from,o.to)]=d?d.type.id==_O?n.read(d.from+1,d.to-1):n.read(d.from,d.to):"")}return l}function B1(e,n){let l=e.getChild(lz);return l?n.read(l.from,l.to):" "}function If(e,n,l){let r;for(let o of l)if(!o.attrs||o.attrs(r||(r=ry(e.node.parent.firstChild,n))))return{parser:o.parser,bracketed:!0};return null}function iy(e=[],n=[]){let l=[],r=[],o=[],d=[];for(let f of e)(f.tag=="script"?l:f.tag=="style"?r:f.tag=="textarea"?o:d).push(f);let u=n.length?Object.create(null):null;for(let f of n)(u[f.name]||(u[f.name]=[])).push(f);return I0((f,h)=>{let p=f.type.id;if(p==iz)return If(f,h,l);if(p==oz)return If(f,h,r);if(p==cz)return If(f,h,o);if(p==ny&&d.length){let g=f.node,x=g.firstChild,b=x&&B1(x,h),y;if(b){for(let Q of d)if(Q.tag==b&&(!Q.attrs||Q.attrs(y||(y=ry(x,h))))){let w=g.lastChild,k=w.type.id==uz?w.from:g.to;if(k>x.to)return{parser:Q.parser,overlay:[{from:x.to,to:k}]}}}}if(u&&p==ay){let g=f.node,x;if(x=g.firstChild){let b=u[h.read(x.from,x.to)];if(b)for(let y of b){if(y.tagName&&y.tagName!=B1(g.parent,h))continue;let Q=g.lastChild;if(Q.type.id==_O){let w=Q.from+1,k=Q.lastChild,j=Q.to-(k&&k.isError?0:1);if(j>w)return{parser:y.parser,overlay:[{from:w,to:j}],bracketed:!0}}else if(Q.type.id==sy)return{parser:y.parser,overlay:[{from:Q.from,to:Q.to}]}}}}return null})}const ai=["_blank","_self","_top","_parent"],Ff=["ascii","utf-8","utf-16","latin1","latin1"],Kf=["get","post","put","delete"],Jf=["application/x-www-form-urlencoded","multipart/form-data","text/plain"],Wt=["true","false"],ge={},zz={a:{attrs:{href:null,ping:null,type:null,media:null,target:ai,hreflang:null}},abbr:ge,address:ge,area:{attrs:{alt:null,coords:null,href:null,target:null,ping:null,media:null,hreflang:null,type:null,shape:["default","rect","circle","poly"]}},article:ge,aside:ge,audio:{attrs:{src:null,mediagroup:null,crossorigin:["anonymous","use-credentials"],preload:["none","metadata","auto"],autoplay:["autoplay"],loop:["loop"],controls:["controls"]}},b:ge,base:{attrs:{href:null,target:ai}},bdi:ge,bdo:ge,blockquote:{attrs:{cite:null}},body:ge,br:ge,button:{attrs:{form:null,formaction:null,name:null,value:null,autofocus:["autofocus"],disabled:["autofocus"],formenctype:Jf,formmethod:Kf,formnovalidate:["novalidate"],formtarget:ai,type:["submit","reset","button"]}},canvas:{attrs:{width:null,height:null}},caption:ge,center:ge,cite:ge,code:ge,col:{attrs:{span:null}},colgroup:{attrs:{span:null}},command:{attrs:{type:["command","checkbox","radio"],label:null,icon:null,radiogroup:null,command:null,title:null,disabled:["disabled"],checked:["checked"]}},data:{attrs:{value:null}},datagrid:{attrs:{disabled:["disabled"],multiple:["multiple"]}},datalist:{attrs:{data:null}},dd:ge,del:{attrs:{cite:null,datetime:null}},details:{attrs:{open:["open"]}},dfn:ge,div:ge,dl:ge,dt:ge,em:ge,embed:{attrs:{src:null,type:null,width:null,height:null}},eventsource:{attrs:{src:null}},fieldset:{attrs:{disabled:["disabled"],form:null,name:null}},figcaption:ge,figure:ge,footer:ge,form:{attrs:{action:null,name:null,"accept-charset":Ff,autocomplete:["on","off"],enctype:Jf,method:Kf,novalidate:["novalidate"],target:ai}},h1:ge,h2:ge,h3:ge,h4:ge,h5:ge,h6:ge,head:{children:["title","base","link","style","meta","script","noscript","command"]},header:ge,hgroup:ge,hr:ge,html:{attrs:{manifest:null}},i:ge,iframe:{attrs:{src:null,srcdoc:null,name:null,width:null,height:null,sandbox:["allow-top-navigation","allow-same-origin","allow-forms","allow-scripts"],seamless:["seamless"]}},img:{attrs:{alt:null,src:null,ismap:null,usemap:null,width:null,height:null,crossorigin:["anonymous","use-credentials"]}},input:{attrs:{alt:null,dirname:null,form:null,formaction:null,height:null,list:null,max:null,maxlength:null,min:null,name:null,pattern:null,placeholder:null,size:null,src:null,step:null,value:null,width:null,accept:["audio/*","video/*","image/*"],autocomplete:["on","off"],autofocus:["autofocus"],checked:["checked"],disabled:["disabled"],formenctype:Jf,formmethod:Kf,formnovalidate:["novalidate"],formtarget:ai,multiple:["multiple"],readonly:["readonly"],required:["required"],type:["hidden","text","search","tel","url","email","password","datetime","date","month","week","time","datetime-local","number","range","color","checkbox","radio","file","submit","image","reset","button"]}},ins:{attrs:{cite:null,datetime:null}},kbd:ge,keygen:{attrs:{challenge:null,form:null,name:null,autofocus:["autofocus"],disabled:["disabled"],keytype:["RSA"]}},label:{attrs:{for:null,form:null}},legend:ge,li:{attrs:{value:null}},link:{attrs:{href:null,type:null,hreflang:null,media:null,sizes:["all","16x16","16x16 32x32","16x16 32x32 64x64"]}},map:{attrs:{name:null}},mark:ge,menu:{attrs:{label:null,type:["list","context","toolbar"]}},meta:{attrs:{content:null,charset:Ff,name:["viewport","application-name","author","description","generator","keywords"],"http-equiv":["content-language","content-type","default-style","refresh"]}},meter:{attrs:{value:null,min:null,low:null,high:null,max:null,optimum:null}},nav:ge,noscript:ge,object:{attrs:{data:null,type:null,name:null,usemap:null,form:null,width:null,height:null,typemustmatch:["typemustmatch"]}},ol:{attrs:{reversed:["reversed"],start:null,type:["1","a","A","i","I"]},children:["li","script","template","ul","ol"]},optgroup:{attrs:{disabled:["disabled"],label:null}},option:{attrs:{disabled:["disabled"],label:null,selected:["selected"],value:null}},output:{attrs:{for:null,form:null,name:null}},p:ge,param:{attrs:{name:null,value:null}},pre:ge,progress:{attrs:{value:null,max:null}},q:{attrs:{cite:null}},rp:ge,rt:ge,ruby:ge,samp:ge,script:{attrs:{type:["text/javascript"],src:null,async:["async"],defer:["defer"],charset:Ff}},section:ge,select:{attrs:{form:null,name:null,size:null,autofocus:["autofocus"],disabled:["disabled"],multiple:["multiple"]}},slot:{attrs:{name:null}},small:ge,source:{attrs:{src:null,type:null,media:null}},span:ge,strong:ge,style:{attrs:{type:["text/css"],media:null,scoped:null}},sub:ge,summary:ge,sup:ge,table:ge,tbody:ge,td:{attrs:{colspan:null,rowspan:null,headers:null}},template:ge,textarea:{attrs:{dirname:null,form:null,maxlength:null,name:null,placeholder:null,rows:null,cols:null,autofocus:["autofocus"],disabled:["disabled"],readonly:["readonly"],required:["required"],wrap:["soft","hard"]}},tfoot:ge,th:{attrs:{colspan:null,rowspan:null,headers:null,scope:["row","col","rowgroup","colgroup"]}},thead:ge,time:{attrs:{datetime:null}},title:ge,tr:ge,track:{attrs:{src:null,label:null,default:null,kind:["subtitles","captions","descriptions","chapters","metadata"],srclang:null}},ul:{children:["li","script","template","ul","ol"]},var:ge,video:{attrs:{src:null,poster:null,width:null,height:null,crossorigin:["anonymous","use-credentials"],preload:["auto","metadata","none"],autoplay:["autoplay"],mediagroup:["movie"],muted:["muted"],controls:["controls"]}},wbr:ge},oy={accesskey:null,class:null,contenteditable:Wt,contextmenu:null,dir:["ltr","rtl","auto"],draggable:["true","false","auto"],dropzone:["copy","move","link","string:","file:"],hidden:["hidden"],id:null,inert:["inert"],itemid:null,itemprop:null,itemref:null,itemscope:["itemscope"],itemtype:null,lang:["ar","bn","de","en-GB","en-US","es","fr","hi","id","ja","pa","pt","ru","tr","zh"],spellcheck:Wt,autocorrect:Wt,autocapitalize:Wt,style:null,tabindex:null,title:null,translate:["yes","no"],rel:["stylesheet","alternate","author","bookmark","help","license","next","nofollow","noreferrer","prefetch","prev","search","tag"],role:"alert application article banner button cell checkbox complementary contentinfo dialog document feed figure form grid gridcell heading img list listbox listitem main navigation region row rowgroup search switch tab table tabpanel textbox timer".split(" "),"aria-activedescendant":null,"aria-atomic":Wt,"aria-autocomplete":["inline","list","both","none"],"aria-busy":Wt,"aria-checked":["true","false","mixed","undefined"],"aria-controls":null,"aria-describedby":null,"aria-disabled":Wt,"aria-dropeffect":null,"aria-expanded":["true","false","undefined"],"aria-flowto":null,"aria-grabbed":["true","false","undefined"],"aria-haspopup":Wt,"aria-hidden":Wt,"aria-invalid":["true","false","grammar","spelling"],"aria-label":null,"aria-labelledby":null,"aria-level":null,"aria-live":["off","polite","assertive"],"aria-multiline":Wt,"aria-multiselectable":Wt,"aria-owns":null,"aria-posinset":null,"aria-pressed":["true","false","mixed","undefined"],"aria-readonly":Wt,"aria-relevant":null,"aria-required":Wt,"aria-selected":["true","false","undefined"],"aria-setsize":null,"aria-sort":["ascending","descending","none","other"],"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null},cy="beforeunload copy cut dragstart dragover dragleave dragenter dragend drag paste focus blur change click load mousedown mouseenter mouseleave mouseup keydown keyup resize scroll unload".split(" ").map(e=>"on"+e);for(let e of cy)oy[e]=null;class mi{constructor(n,l){this.tags={...zz,...n},this.globalAttrs={...oy,...l},this.allTags=Object.keys(this.tags),this.globalAttrNames=Object.keys(this.globalAttrs)}}mi.default=new mi;function Jl(e,n,l=e.length){if(!n)return"";let r=n.firstChild,o=r&&r.getChild("TagName");return o?e.sliceString(o.from,Math.min(o.to,l)):""}function er(e,n=!1){for(;e;e=e.parent)if(e.name=="Element")if(n)n=!1;else return e;return null}function dy(e,n,l){let r=l.tags[Jl(e,er(n))];return(r==null?void 0:r.children)||l.allTags}function Nh(e,n){let l=[];for(let r=er(n);r&&!r.type.isTop;r=er(r.parent)){let o=Jl(e,r);if(o&&r.lastChild.name=="CloseTag")break;o&&l.indexOf(o)<0&&(n.name=="EndTag"||n.from>=r.firstChild.to)&&l.push(o)}return l}const uy=/^[:\-\.\w\u00b7-\uffff]*$/;function H1(e,n,l,r,o){let d=/\s*>/.test(e.sliceDoc(o,o+5))?"":">",u=er(l,l.name=="StartTag"||l.name=="TagName");return{from:r,to:o,options:dy(e.doc,u,n).map(f=>({label:f,type:"type"})).concat(Nh(e.doc,l).map((f,h)=>({label:"/"+f,apply:"/"+f+d,type:"type",boost:99-h}))),validFor:/^\/?[:\-\.\w\u00b7-\uffff]*$/}}function I1(e,n,l,r){let o=/\s*>/.test(e.sliceDoc(r,r+5))?"":">";return{from:l,to:r,options:Nh(e.doc,n).map((d,u)=>({label:d,apply:d+o,type:"type",boost:99-u})),validFor:uy}}function Cz(e,n,l,r){let o=[],d=0;for(let u of dy(e.doc,l,n))o.push({label:"<"+u,type:"type"});for(let u of Nh(e.doc,l))o.push({label:"</"+u+">",type:"type",boost:99-d++});return{from:r,to:r,options:o,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}function Rz(e,n,l,r,o){let d=er(l),u=d?n.tags[Jl(e.doc,d)]:null,f=u&&u.attrs?Object.keys(u.attrs):[],h=u&&u.globalAttrs===!1?f:f.length?f.concat(n.globalAttrNames):n.globalAttrNames;return{from:r,to:o,options:h.map(p=>({label:p,type:"property"})),validFor:uy}}function _z(e,n,l,r,o){var d;let u=(d=l.parent)===null||d===void 0?void 0:d.getChild("AttributeName"),f=[],h;if(u){let p=e.sliceDoc(u.from,u.to),g=n.globalAttrs[p];if(!g){let x=er(l),b=x?n.tags[Jl(e.doc,x)]:null;g=(b==null?void 0:b.attrs)&&b.attrs[p]}if(g){let x=e.sliceDoc(r,o).toLowerCase(),b='"',y='"';/^['"]/.test(x)?(h=x[0]=='"'?/^[^"]*$/:/^[^']*$/,b="",y=e.sliceDoc(o,o+1)==x[0]?"":x[0],x=x.slice(1),r++):h=/^[^\s<>='"]*$/;for(let Q of g)f.push({label:Q,apply:b+Q+y,type:"constant"})}}return{from:r,to:o,options:f,validFor:h}}function fy(e,n){let{state:l,pos:r}=n,o=yn(l).resolveInner(r,-1),d=o.resolve(r);for(let u=r,f;d==o&&(f=o.childBefore(u));){let h=f.lastChild;if(!h||!h.type.isError||h.from<h.to)break;d=o=f,u=h.from}return o.name=="TagName"?o.parent&&/CloseTag$/.test(o.parent.name)?I1(l,o,o.from,r):H1(l,e,o,o.from,r):o.name=="StartTag"||o.name=="IncompleteTag"?H1(l,e,o,r,r):o.name=="StartCloseTag"||o.name=="IncompleteCloseTag"?I1(l,o,r,r):o.name=="OpenTag"||o.name=="SelfClosingTag"||o.name=="AttributeName"?Rz(l,e,o,o.name=="AttributeName"?o.from:r,r):o.name=="Is"||o.name=="AttributeValue"||o.name=="UnquotedAttributeValue"?_z(l,e,o,o.name=="Is"?r:o.from,r):n.explicit&&(d.name=="Element"||d.name=="Text"||d.name=="Document")?Cz(l,e,o,r):null}function Az(e){return fy(mi.default,e)}function Xz(e){let{extraTags:n,extraGlobalAttributes:l}=e,r=l||n?new mi(n,l):mi.default;return o=>fy(r,o)}const Zz=Rn.parser.configure({top:"SingleExpression"}),Oy=[{tag:"script",attrs:e=>e.type=="text/typescript"||e.lang=="ts",parser:Yv.parser},{tag:"script",attrs:e=>e.type=="text/babel"||e.type=="text/jsx",parser:Uv.parser},{tag:"script",attrs:e=>e.type=="text/typescript-jsx",parser:Vv.parser},{tag:"script",attrs(e){return/^(importmap|speculationrules|application\/(.+\+)?json)$/i.test(e.type)},parser:Zz},{tag:"script",attrs(e){return!e.type||/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i.test(e.type)},parser:Rn.parser},{tag:"style",attrs(e){return(!e.lang||e.lang=="css")&&(!e.type||/^(text\/)?(x-)?(stylesheet|css)$/i.test(e.type))},parser:Mc.parser}],hy=[{name:"style",parser:Mc.parser.configure({top:"Styles"})}].concat(cy.map(e=>({name:e,parser:Rn.parser}))),my=Si.define({name:"html",parser:Pz.configure({props:[nr.add({Element(e){let n=/^(\s*)(<\/)?/.exec(e.textAfter);return e.node.to<=e.pos+n[0].length?e.continue():e.lineIndent(e.node.from)+(n[2]?0:e.unit)},"OpenTag CloseTag SelfClosingTag"(e){return e.column(e.node.from)+e.unit},Document(e){if(e.pos+/\s*/.exec(e.textAfter)[0].length<e.node.to)return e.continue();let n=null,l;for(let r=e.node;;){let o=r.lastChild;if(!o||o.name!="Element"||o.to!=r.to)break;n=r=o}return n&&!((l=n.lastChild)&&(l.name=="CloseTag"||l.name=="SelfClosingTag"))?e.lineIndent(n.from)+e.unit:null}}),Ds.add({Element(e){let n=e.firstChild,l=e.lastChild;return!n||n.name!="OpenTag"?null:{from:n.to,to:l.name=="CloseTag"?l.from:e.to}}}),Hj.add({"OpenTag CloseTag":e=>e.getChild("TagName")})]}),languageData:{commentTokens:{block:{open:"<!--",close:"-->"}},indentOnInput:/^\s*<\/\w+\W$/,wordChars:"-_"}}),vc=my.configure({wrap:iy(Oy,hy)});function py(e={}){let n="",l;e.matchClosingTags===!1&&(n="noMatch"),e.selfClosingTags===!0&&(n=(n?n+" ":"")+"selfClosing"),(e.nestedLanguages&&e.nestedLanguages.length||e.nestedAttributes&&e.nestedAttributes.length)&&(l=iy((e.nestedLanguages||[]).concat(Oy),(e.nestedAttributes||[]).concat(hy)));let r=l?my.configure({wrap:l,dialect:n}):n?vc.configure({dialect:n}):vc;return new Zs(r,[vc.data.of({autocomplete:Xz(e)}),e.autoCloseTags!==!1?Ez:[],RO().support,Fv().support])}const F1=new Set("area base br col command embed frame hr img input keygen link meta param source track wbr menuitem".split(" ")),Ez=Ll.inputHandler.of((e,n,l,r,o)=>{if(e.composing||e.state.readOnly||n!=l||r!=">"&&r!="/"||!vc.isActiveAt(e.state,n,-1))return!1;let d=o(),{state:u}=d,f=u.changeByRange(h=>{var p,g,x;let b=u.doc.sliceString(h.from-1,h.to)==r,{head:y}=h,Q=yn(u).resolveInner(y,-1),w;if(b&&r==">"&&Q.name=="EndTag"){let k=Q.parent;if(((g=(p=k.parent)===null||p===void 0?void 0:p.lastChild)===null||g===void 0?void 0:g.name)!="CloseTag"&&(w=Jl(u.doc,k.parent,y))&&!F1.has(w)){let j=y+(u.doc.sliceString(y,y+1)===">"?1:0),P=`</${w}>`;return{range:h,changes:{from:y,to:j,insert:P}}}}else if(b&&r=="/"&&Q.name=="IncompleteCloseTag"){let k=Q.parent;if(Q.from==y-2&&((x=k.lastChild)===null||x===void 0?void 0:x.name)!="CloseTag"&&(w=Jl(u.doc,k,y))&&!F1.has(w)){let j=y+(u.doc.sliceString(y,y+1)===">"?1:0),P=`${w}>`;return{range:ts.cursor(y+P.length,-1),changes:{from:y,to:j,insert:P}}}}return{range:h}});return f.changes.empty?!1:(e.dispatch([d,u.update(f,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}),qz=Gs({String:E.string,Number:E.number,"True False":E.bool,PropertyName:E.propertyName,Null:E.null,", :":E.separator,"[ ]":E.squareBracket,"{ }":E.brace}),Mz=is.deserialize({version:14,states:"$bOVQPOOOOQO'#Cb'#CbOnQPO'#CeOvQPO'#ClOOQO'#Cr'#CrQOQPOOOOQO'#Cg'#CgO}QPO'#CfO!SQPO'#CtOOQO,59P,59PO![QPO,59PO!aQPO'#CuOOQO,59W,59WO!iQPO,59WOVQPO,59QOqQPO'#CmO!nQPO,59`OOQO1G.k1G.kOVQPO'#CnO!vQPO,59aOOQO1G.r1G.rOOQO1G.l1G.lOOQO,59X,59XOOQO-E6k-E6kOOQO,59Y,59YOOQO-E6l-E6l",stateData:"#O~OeOS~OQSORSOSSOTSOWQO_ROgPO~OVXOgUO~O^[O~PVO[^O~O]_OVhX~OVaO~O]bO^iX~O^dO~O]_OVha~O]bO^ia~O",goto:"!kjPPPPPPkPPkqwPPPPk{!RPPP!XP!e!hXSOR^bQWQRf_TVQ_Q`WRg`QcZRicQTOQZRQe^RhbRYQR]R",nodeNames:"⚠ JsonText True False Null Number String } { Object Property PropertyName : , ] [ Array",maxTerm:25,nodeProps:[["isolate",-2,6,11,""],["openedBy",7,"{",14,"["],["closedBy",8,"}",15,"]"]],propSources:[qz],skippedNodes:[0],repeatNodeCount:2,tokenData:"(|~RaXY!WYZ!W]^!Wpq!Wrs!]|}$u}!O$z!Q!R%T!R![&c![!]&t!}#O&y#P#Q'O#Y#Z'T#b#c'r#h#i(Z#o#p(r#q#r(w~!]Oe~~!`Wpq!]qr!]rs!xs#O!]#O#P!}#P;'S!];'S;=`$o<%lO!]~!}Og~~#QXrs!]!P!Q!]#O#P!]#U#V!]#Y#Z!]#b#c!]#f#g!]#h#i!]#i#j#m~#pR!Q![#y!c!i#y#T#Z#y~#|R!Q![$V!c!i$V#T#Z$V~$YR!Q![$c!c!i$c#T#Z$c~$fR!Q![!]!c!i!]#T#Z!]~$rP;=`<%l!]~$zO]~~$}Q!Q!R%T!R![&c~%YRT~!O!P%c!g!h%w#X#Y%w~%fP!Q![%i~%nRT~!Q![%i!g!h%w#X#Y%w~%zR{|&T}!O&T!Q![&Z~&WP!Q![&Z~&`PT~!Q![&Z~&hST~!O!P%c!Q![&c!g!h%w#X#Y%w~&yO[~~'OO_~~'TO^~~'WP#T#U'Z~'^P#`#a'a~'dP#g#h'g~'jP#X#Y'm~'rOR~~'uP#i#j'x~'{P#`#a(O~(RP#`#a(U~(ZOS~~(^P#f#g(a~(dP#i#j(g~(jP#X#Y(m~(rOQ~~(wOW~~(|OV~",tokenizers:[0],topRules:{JsonText:[0,1]},tokenPrec:0}),Yz=Si.define({name:"json",parser:Mz.configure({props:[nr.add({Object:Ml({except:/^\s*\}/}),Array:Ml({except:/^\s*\]/})}),Ds.add({"Object Array":Ic})]}),languageData:{closeBrackets:{brackets:["[","{",'"']},indentOnInput:/^\s*[\}\]]$/}});function Uz(){return new Zs(Yz)}class Uc{static create(n,l,r,o,d){let u=o+(o<<8)+n+(l<<4)|0;return new Uc(n,l,r,u,d,[],[])}constructor(n,l,r,o,d,u,f){this.type=n,this.value=l,this.from=r,this.hash=o,this.end=d,this.children=u,this.positions=f,this.hashProp=[[Oa.contextHash,o]]}addChild(n,l){n.prop(Oa.contextHash)!=this.hash&&(n=new gn(n.type,n.children,n.positions,n.length,this.hashProp)),this.children.push(n),this.positions.push(l)}toTree(n,l=this.end){let r=this.children.length-1;return r>=0&&(l=Math.max(l,this.positions[r]+this.children[r].length+this.from)),new gn(n.types[this.type],this.children,this.positions,l-this.from).balance({makeTree:(o,d,u)=>new gn(yi.none,o,d,u,this.hashProp)})}}var ce;(function(e){e[e.Document=1]="Document",e[e.CodeBlock=2]="CodeBlock",e[e.FencedCode=3]="FencedCode",e[e.Blockquote=4]="Blockquote",e[e.HorizontalRule=5]="HorizontalRule",e[e.BulletList=6]="BulletList",e[e.OrderedList=7]="OrderedList",e[e.ListItem=8]="ListItem",e[e.ATXHeading1=9]="ATXHeading1",e[e.ATXHeading2=10]="ATXHeading2",e[e.ATXHeading3=11]="ATXHeading3",e[e.ATXHeading4=12]="ATXHeading4",e[e.ATXHeading5=13]="ATXHeading5",e[e.ATXHeading6=14]="ATXHeading6",e[e.SetextHeading1=15]="SetextHeading1",e[e.SetextHeading2=16]="SetextHeading2",e[e.HTMLBlock=17]="HTMLBlock",e[e.LinkReference=18]="LinkReference",e[e.Paragraph=19]="Paragraph",e[e.CommentBlock=20]="CommentBlock",e[e.ProcessingInstructionBlock=21]="ProcessingInstructionBlock",e[e.Escape=22]="Escape",e[e.Entity=23]="Entity",e[e.HardBreak=24]="HardBreak",e[e.Emphasis=25]="Emphasis",e[e.StrongEmphasis=26]="StrongEmphasis",e[e.Link=27]="Link",e[e.Image=28]="Image",e[e.InlineCode=29]="InlineCode",e[e.HTMLTag=30]="HTMLTag",e[e.Comment=31]="Comment",e[e.ProcessingInstruction=32]="ProcessingInstruction",e[e.Autolink=33]="Autolink",e[e.HeaderMark=34]="HeaderMark",e[e.QuoteMark=35]="QuoteMark",e[e.ListMark=36]="ListMark",e[e.LinkMark=37]="LinkMark",e[e.EmphasisMark=38]="EmphasisMark",e[e.CodeMark=39]="CodeMark",e[e.CodeText=40]="CodeText",e[e.CodeInfo=41]="CodeInfo",e[e.LinkTitle=42]="LinkTitle",e[e.LinkLabel=43]="LinkLabel",e[e.URL=44]="URL"})(ce||(ce={}));class Vz{constructor(n,l){this.start=n,this.content=l,this.marks=[],this.parsers=[]}}class Gz{constructor(){this.text="",this.baseIndent=0,this.basePos=0,this.depth=0,this.markers=[],this.pos=0,this.indent=0,this.next=-1}forward(){this.basePos>this.pos&&this.forwardInner()}forwardInner(){let n=this.skipSpace(this.basePos);this.indent=this.countIndent(n,this.pos,this.indent),this.pos=n,this.next=n==this.text.length?-1:this.text.charCodeAt(n)}skipSpace(n){return ri(this.text,n)}reset(n){for(this.text=n,this.baseIndent=this.basePos=this.pos=this.indent=0,this.forwardInner(),this.depth=1;this.markers.length;)this.markers.pop()}moveBase(n){this.basePos=n,this.baseIndent=this.countIndent(n,this.pos,this.indent)}moveBaseColumn(n){this.baseIndent=n,this.basePos=this.findColumn(n)}addMarker(n){this.markers.push(n)}countIndent(n,l=0,r=0){for(let o=l;o<n;o++)r+=this.text.charCodeAt(o)==9?4-r%4:1;return r}findColumn(n){let l=0;for(let r=0;l<this.text.length&&r<n;l++)r+=this.text.charCodeAt(l)==9?4-r%4:1;return l}scrub(){if(!this.baseIndent)return this.text;let n="";for(let l=0;l<this.basePos;l++)n+=" ";return n+this.text.slice(this.basePos)}}function K1(e,n,l){if(l.pos==l.text.length||e!=n.block&&l.indent>=n.stack[l.depth+1].value+l.baseIndent)return!0;if(l.indent>=l.baseIndent+4)return!1;let r=(e.type==ce.OrderedList?Ch:zh)(l,n,!1);return r>0&&(e.type!=ce.BulletList||Ph(l,n,!1)<0)&&l.text.charCodeAt(l.pos+r-1)==e.value}const xy={[ce.Blockquote](e,n,l){return l.next!=62?!1:(l.markers.push(Ee(ce.QuoteMark,n.lineStart+l.pos,n.lineStart+l.pos+1)),l.moveBase(l.pos+(fn(l.text.charCodeAt(l.pos+1))?2:1)),e.end=n.lineStart+l.text.length,!0)},[ce.ListItem](e,n,l){return l.indent<l.baseIndent+e.value&&l.next>-1?!1:(l.moveBaseColumn(l.baseIndent+e.value),!0)},[ce.OrderedList]:K1,[ce.BulletList]:K1,[ce.Document](){return!0}};function fn(e){return e==32||e==9||e==10||e==13}function ri(e,n=0){for(;n<e.length&&fn(e.charCodeAt(n));)n++;return n}function J1(e,n,l){for(;n>l&&fn(e.charCodeAt(n-1));)n--;return n}function gy(e){if(e.next!=96&&e.next!=126)return-1;let n=e.pos+1;for(;n<e.text.length&&e.text.charCodeAt(n)==e.next;)n++;if(n<e.pos+3)return-1;if(e.next==96){for(let l=n;l<e.text.length;l++)if(e.text.charCodeAt(l)==96)return-1}return n}function by(e){return e.next!=62?-1:e.text.charCodeAt(e.pos+1)==32?2:1}function Ph(e,n,l){if(e.next!=42&&e.next!=45&&e.next!=95)return-1;let r=1;for(let o=e.pos+1;o<e.text.length;o++){let d=e.text.charCodeAt(o);if(d==e.next)r++;else if(!fn(d))return-1}return l&&e.next==45&&Sy(e)>-1&&e.depth==n.stack.length&&n.parser.leafBlockParsers.indexOf(ky.SetextHeading)>-1||r<3?-1:1}function vy(e,n){for(let l=e.stack.length-1;l>=0;l--)if(e.stack[l].type==n)return!0;return!1}function zh(e,n,l){return(e.next==45||e.next==43||e.next==42)&&(e.pos==e.text.length-1||fn(e.text.charCodeAt(e.pos+1)))&&(!l||vy(n,ce.BulletList)||e.skipSpace(e.pos+2)<e.text.length)?1:-1}function Ch(e,n,l){let r=e.pos,o=e.next;for(;o>=48&&o<=57;){r++;if(r==e.text.length)return-1;o=e.text.charCodeAt(r)}return r==e.pos||r>e.pos+9||o!=46&&o!=41||r<e.text.length-1&&!fn(e.text.charCodeAt(r+1))||l&&!vy(n,ce.OrderedList)&&(e.skipSpace(r+1)==e.text.length||r>e.pos+1||e.next!=49)?-1:r+1-e.pos}function yy(e){if(e.next!=35)return-1;let n=e.pos+1;for(;n<e.text.length&&e.text.charCodeAt(n)==35;)n++;if(n<e.text.length&&e.text.charCodeAt(n)!=32)return-1;let l=n-e.pos;return l>6?-1:l}function Sy(e){if(e.next!=45&&e.next!=61||e.indent>=e.baseIndent+4)return-1;let n=e.pos+1;for(;n<e.text.length&&e.text.charCodeAt(n)==e.next;)n++;let l=n;for(;n<e.text.length&&fn(e.text.charCodeAt(n));)n++;return n==e.text.length?l:-1}const XO=/^[ \t]*$/,Qy=/-->/,jy=/\?>/,ZO=[[/^<(?:script|pre|style)(?:\s|>|$)/i,/<\/(?:script|pre|style)>/i],[/^\s*<!--/,Qy],[/^\s*<\?/,jy],[/^\s*<![A-Z]/,/>/],[/^\s*<!\[CDATA\[/,/\]\]>/],[/^\s*<\/?(?:address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h1|h2|h3|h4|h5|h6|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul)(?:\s|\/?>|$)/i,XO],[/^\s*(?:<\/[a-z][\w-]*\s*>|<[a-z][\w-]*(\s+[a-z:_][\w-.]*(?:\s*=\s*(?:[^\s"'=<>`]+|'[^']*'|"[^"]*"))?)*\s*>)\s*$/i,XO]];function wy(e,n,l){if(e.next!=60)return-1;let r=e.text.slice(e.pos);for(let o=0,d=ZO.length-(l?1:0);o<d;o++)if(ZO[o][0].test(r))return o;return-1}function e0(e,n){let l=e.countIndent(n,e.pos,e.indent),r=e.countIndent(e.skipSpace(n),n,l);return r>=l+5?l+1:r}function Ba(e,n,l){let r=e.length-1;r>=0&&e[r].to==n&&e[r].type==ce.CodeText?e[r].to=l:e.push(Ee(ce.CodeText,n,l))}const lc={LinkReference:void 0,IndentedCode(e,n){let l=n.baseIndent+4;if(n.indent<l)return!1;let r=n.findColumn(l),o=e.lineStart+r,d=e.lineStart+n.text.length,u=[],f=[];for(Ba(u,o,d);e.nextLine()&&n.depth>=e.stack.length;)if(n.pos==n.text.length){Ba(f,e.lineStart-1,e.lineStart);for(let h of n.markers)f.push(h)}else{if(n.indent<l)break;{if(f.length){for(let p of f)p.type==ce.CodeText?Ba(u,p.from,p.to):u.push(p);f=[]}Ba(u,e.lineStart-1,e.lineStart);for(let p of n.markers)u.push(p);d=e.lineStart+n.text.length;let h=e.lineStart+n.findColumn(n.baseIndent+4);h<d&&Ba(u,h,d)}}return f.length&&(f=f.filter(h=>h.type!=ce.CodeText),f.length&&(n.markers=f.concat(n.markers))),e.addNode(e.buffer.writeElements(u,-o).finish(ce.CodeBlock,d-o),o),!0},FencedCode(e,n){let l=gy(n);if(l<0)return!1;let r=e.lineStart+n.pos,o=n.next,d=l-n.pos,u=n.skipSpace(l),f=J1(n.text,n.text.length,u),h=[Ee(ce.CodeMark,r,r+d)];u<f&&h.push(Ee(ce.CodeInfo,e.lineStart+u,e.lineStart+f));for(let p=!0,g=!0,x=!1;e.nextLine()&&n.depth>=e.stack.length;p=!1){let b=n.pos;if(n.indent-n.baseIndent<4)for(;b<n.text.length&&n.text.charCodeAt(b)==o;)b++;if(b-n.pos>=d&&n.skipSpace(b)==n.text.length){for(let y of n.markers)h.push(y);g&&x&&Ba(h,e.lineStart-1,e.lineStart),h.push(Ee(ce.CodeMark,e.lineStart+n.pos,e.lineStart+b)),e.nextLine();break}else{x=!0,p||(Ba(h,e.lineStart-1,e.lineStart),g=!1);for(let w of n.markers)h.push(w);let y=e.lineStart+n.basePos,Q=e.lineStart+n.text.length;y<Q&&(Ba(h,y,Q),g=!1)}}return e.addNode(e.buffer.writeElements(h,-r).finish(ce.FencedCode,e.prevLineEnd()-r),r),!0},Blockquote(e,n){let l=by(n);return l<0?!1:(e.startContext(ce.Blockquote,n.pos),e.addNode(ce.QuoteMark,e.lineStart+n.pos,e.lineStart+n.pos+1),n.moveBase(n.pos+l),null)},HorizontalRule(e,n){if(Ph(n,e,!1)<0)return!1;let l=e.lineStart+n.pos;return e.nextLine(),e.addNode(ce.HorizontalRule,l),!0},BulletList(e,n){let l=zh(n,e,!1);if(l<0)return!1;e.block.type!=ce.BulletList&&e.startContext(ce.BulletList,n.basePos,n.next);let r=e0(n,n.pos+1);return e.startContext(ce.ListItem,n.basePos,r-n.baseIndent),e.addNode(ce.ListMark,e.lineStart+n.pos,e.lineStart+n.pos+l),n.moveBaseColumn(r),null},OrderedList(e,n){let l=Ch(n,e,!1);if(l<0)return!1;e.block.type!=ce.OrderedList&&e.startContext(ce.OrderedList,n.basePos,n.text.charCodeAt(n.pos+l-1));let r=e0(n,n.pos+l);return e.startContext(ce.ListItem,n.basePos,r-n.baseIndent),e.addNode(ce.ListMark,e.lineStart+n.pos,e.lineStart+n.pos+l),n.moveBaseColumn(r),null},ATXHeading(e,n){let l=yy(n);if(l<0)return!1;let r=n.pos,o=e.lineStart+r,d=J1(n.text,n.text.length,r),u=d;for(;u>r&&n.text.charCodeAt(u-1)==n.next;)u--;(u==d||u==r||!fn(n.text.charCodeAt(u-1)))&&(u=n.text.length);let f=e.buffer.write(ce.HeaderMark,0,l).writeElements(e.parser.parseInline(n.text.slice(r+l+1,u),o+l+1),-o);u<n.text.length&&f.write(ce.HeaderMark,u-r,d-r);let h=f.finish(ce.ATXHeading1-1+l,n.text.length-r);return e.nextLine(),e.addNode(h,o),!0},HTMLBlock(e,n){let l=wy(n,e,!1);if(l<0)return!1;let r=e.lineStart+n.pos,o=ZO[l][1],d=[],u=o!=XO;for(;!o.test(n.text)&&e.nextLine();){if(n.depth<e.stack.length){u=!1;break}for(let p of n.markers)d.push(p)}u&&e.nextLine();let f=o==Qy?ce.CommentBlock:o==jy?ce.ProcessingInstructionBlock:ce.HTMLBlock,h=e.prevLineEnd();return e.addNode(e.buffer.writeElements(d,-r).finish(f,h-r),r),!0},SetextHeading:void 0};class Dz{constructor(n){this.stage=0,this.elts=[],this.pos=0,this.start=n.start,this.advance(n.content)}nextLine(n,l,r){if(this.stage==-1)return!1;let o=r.content+`
|
|
597
|
-
`+l.scrub(),d=this.advance(o);return d>-1&&d<o.length?this.complete(n,r,d):!1}finish(n,l){return(this.stage==2||this.stage==3)&&ri(l.content,this.pos)==l.content.length?this.complete(n,l,l.content.length):!1}complete(n,l,r){return n.addLeafElement(l,Ee(ce.LinkReference,this.start,this.start+r,this.elts)),!0}nextStage(n){return n?(this.pos=n.to-this.start,this.elts.push(n),this.stage++,!0):(n===!1&&(this.stage=-1),!1)}advance(n){for(;;){if(this.stage==-1)return-1;if(this.stage==0){if(!this.nextStage(Ay(n,this.pos,this.start,!0)))return-1;if(n.charCodeAt(this.pos)!=58)return this.stage=-1;this.elts.push(Ee(ce.LinkMark,this.pos+this.start,this.pos+this.start+1)),this.pos++}else if(this.stage==1){if(!this.nextStage(Ry(n,ri(n,this.pos),this.start)))return-1}else if(this.stage==2){let l=ri(n,this.pos),r=0;if(l>this.pos){let o=_y(n,l,this.start);if(o){let d=eO(n,o.to-this.start);d>0&&(this.nextStage(o),r=d)}}return r||(r=eO(n,this.pos)),r>0&&r<n.length?r:-1}else return eO(n,this.pos)}}}function eO(e,n){for(;n<e.length;n++){let l=e.charCodeAt(n);if(l==10)break;if(!fn(l))return-1}return n}class Lz{nextLine(n,l,r){let o=l.depth<n.stack.length?-1:Sy(l),d=l.next;if(o<0)return!1;let u=Ee(ce.HeaderMark,n.lineStart+l.pos,n.lineStart+o);return n.nextLine(),n.addLeafElement(r,Ee(d==61?ce.SetextHeading1:ce.SetextHeading2,r.start,n.prevLineEnd(),[...n.parser.parseInline(r.content,r.start),u])),!0}finish(){return!1}}const ky={LinkReference(e,n){return n.content.charCodeAt(0)==91?new Dz(n):null},SetextHeading(){return new Lz}},Wz=[(e,n)=>yy(n)>=0,(e,n)=>gy(n)>=0,(e,n)=>by(n)>=0,(e,n)=>zh(n,e,!0)>=0,(e,n)=>Ch(n,e,!0)>=0,(e,n)=>Ph(n,e,!0)>=0,(e,n)=>wy(n,e,!0)>=0],Bz={text:"",end:0};class Hz{constructor(n,l,r,o){this.parser=n,this.input=l,this.ranges=o,this.line=new Gz,this.atEnd=!1,this.reusePlaceholders=new Map,this.stoppedAt=null,this.rangeI=0,this.to=o[o.length-1].to,this.lineStart=this.absoluteLineStart=this.absoluteLineEnd=o[0].from,this.block=Uc.create(ce.Document,0,this.lineStart,0,0),this.stack=[this.block],this.fragments=r.length?new Kz(r,l):null,this.readLine()}get parsedPos(){return this.absoluteLineStart}advance(){if(this.stoppedAt!=null&&this.absoluteLineStart>this.stoppedAt)return this.finish();let{line:n}=this;for(;;){for(let r=0;;){let o=n.depth<this.stack.length?this.stack[this.stack.length-1]:null;for(;r<n.markers.length&&(!o||n.markers[r].from<o.end);){let d=n.markers[r++];this.addNode(d.type,d.from,d.to)}if(!o)break;this.finishContext()}if(n.pos<n.text.length)break;if(!this.nextLine())return this.finish()}if(this.fragments&&this.reuseFragment(n.basePos))return null;e:for(;;){for(let r of this.parser.blockParsers)if(r){let o=r(this,n);if(o!=!1){if(o==!0)return null;n.forward();continue e}}break}let l=new Vz(this.lineStart+n.pos,n.text.slice(n.pos));for(let r of this.parser.leafBlockParsers)if(r){let o=r(this,l);o&&l.parsers.push(o)}e:for(;this.nextLine()&&n.pos!=n.text.length;){if(n.indent<n.baseIndent+4){for(let r of this.parser.endLeafBlock)if(r(this,n,l))break e}for(let r of l.parsers)if(r.nextLine(this,n,l))return null;l.content+=`
|
|
598
|
-
`+n.scrub();for(let r of n.markers)l.marks.push(r)}return this.finishLeaf(l),null}stopAt(n){if(this.stoppedAt!=null&&this.stoppedAt<n)throw new RangeError("Can't move stoppedAt forward");this.stoppedAt=n}reuseFragment(n){if(!this.fragments.moveTo(this.absoluteLineStart+n,this.absoluteLineStart)||!this.fragments.matches(this.block.hash))return!1;let l=this.fragments.takeNodes(this);return l?(this.absoluteLineStart+=l,this.lineStart=Xy(this.absoluteLineStart,this.ranges),this.moveRangeI(),this.absoluteLineStart<this.to?(this.lineStart++,this.absoluteLineStart++,this.readLine()):(this.atEnd=!0,this.readLine()),!0):!1}get depth(){return this.stack.length}parentType(n=this.depth-1){return this.parser.nodeSet.types[this.stack[n].type]}nextLine(){return this.lineStart+=this.line.text.length,this.absoluteLineEnd>=this.to?(this.absoluteLineStart=this.absoluteLineEnd,this.atEnd=!0,this.readLine(),!1):(this.lineStart++,this.absoluteLineStart=this.absoluteLineEnd+1,this.moveRangeI(),this.readLine(),!0)}peekLine(){return this.scanLine(this.absoluteLineEnd+1).text}moveRangeI(){for(;this.rangeI<this.ranges.length-1&&this.absoluteLineStart>=this.ranges[this.rangeI].to;)this.rangeI++,this.absoluteLineStart=Math.max(this.absoluteLineStart,this.ranges[this.rangeI].from)}scanLine(n){let l=Bz;if(l.end=n,n>=this.to)l.text="";else if(l.text=this.lineChunkAt(n),l.end+=l.text.length,this.ranges.length>1){let r=this.absoluteLineStart,o=this.rangeI;for(;this.ranges[o].to<l.end;){o++;let d=this.ranges[o].from,u=this.lineChunkAt(d);l.end=d+u.length,l.text=l.text.slice(0,this.ranges[o-1].to-r)+u,r=l.end-l.text.length}}return l}readLine(){let{line:n}=this,{text:l,end:r}=this.scanLine(this.absoluteLineStart);for(this.absoluteLineEnd=r,n.reset(l);n.depth<this.stack.length;n.depth++){let o=this.stack[n.depth],d=this.parser.skipContextMarkup[o.type];if(!d)throw new Error("Unhandled block context "+ce[o.type]);let u=this.line.markers.length;if(!d(o,this,n)){this.line.markers.length>u&&(o.end=this.line.markers[this.line.markers.length-1].to),n.forward();break}n.forward()}}lineChunkAt(n){let l=this.input.chunk(n),r;if(this.input.lineChunks)r=l==`
|
|
599
|
-
`?"":l;else{let o=l.indexOf(`
|
|
600
|
-
`);r=o<0?l:l.slice(0,o)}return n+r.length>this.to?r.slice(0,this.to-n):r}prevLineEnd(){return this.atEnd?this.lineStart:this.lineStart-1}startContext(n,l,r=0){this.block=Uc.create(n,r,this.lineStart+l,this.block.hash,this.lineStart+this.line.text.length),this.stack.push(this.block)}startComposite(n,l,r=0){this.startContext(this.parser.getNodeType(n),l,r)}addNode(n,l,r){typeof n=="number"&&(n=new gn(this.parser.nodeSet.types[n],tr,tr,(r??this.prevLineEnd())-l)),this.block.addChild(n,l-this.block.from)}addElement(n){this.block.addChild(n.toTree(this.parser.nodeSet),n.from-this.block.from)}addLeafElement(n,l){this.addNode(this.buffer.writeElements(qO(l.children,n.marks),-l.from).finish(l.type,l.to-l.from),l.from)}finishContext(){let n=this.stack.pop(),l=this.stack[this.stack.length-1];l.addChild(n.toTree(this.parser.nodeSet),n.from-l.from),this.block=l}finish(){for(;this.stack.length>1;)this.finishContext();return this.addGaps(this.block.toTree(this.parser.nodeSet,this.lineStart))}addGaps(n){return this.ranges.length>1?$y(this.ranges,0,n.topNode,this.ranges[0].from,this.reusePlaceholders):n}finishLeaf(n){for(let r of n.parsers)if(r.finish(this,n))return;let l=qO(this.parser.parseInline(n.content,n.start),n.marks);this.addNode(this.buffer.writeElements(l,-n.start).finish(ce.Paragraph,n.content.length),n.start)}elt(n,l,r,o){return typeof n=="string"?Ee(this.parser.getNodeType(n),l,r,o):new Py(n,l)}get buffer(){return new Ny(this.parser.nodeSet)}}function $y(e,n,l,r,o){let d=e[n].to,u=[],f=[],h=l.from+r;function p(g,x){for(;x?g>=d:g>d;){let b=e[n+1].from-d;r+=b,g+=b,n++,d=e[n].to}}for(let g=l.firstChild;g;g=g.nextSibling){p(g.from+r,!0);let x=g.from+r,b,y=o.get(g.tree);y?b=y:g.to+r>d?(b=$y(e,n,g,r,o),p(g.to+r,!1)):b=g.toTree(),u.push(b),f.push(x-h)}return p(l.to+r,!1),new gn(l.type,u,f,l.to+r-h,l.tree?l.tree.propValues:void 0)}class cd extends D0{constructor(n,l,r,o,d,u,f,h,p){super(),this.nodeSet=n,this.blockParsers=l,this.leafBlockParsers=r,this.blockNames=o,this.endLeafBlock=d,this.skipContextMarkup=u,this.inlineParsers=f,this.inlineNames=h,this.wrappers=p,this.nodeTypes=Object.create(null);for(let g of n.types)this.nodeTypes[g.name]=g.id}createParse(n,l,r){let o=new Hz(this,n,l,r);for(let d of this.wrappers)o=d(o,n,l,r);return o}configure(n){let l=EO(n);if(!l)return this;let{nodeSet:r,skipContextMarkup:o}=this,d=this.blockParsers.slice(),u=this.leafBlockParsers.slice(),f=this.blockNames.slice(),h=this.inlineParsers.slice(),p=this.inlineNames.slice(),g=this.endLeafBlock.slice(),x=this.wrappers;if(si(l.defineNodes)){o=Object.assign({},o);let b=r.types.slice(),y;for(let Q of l.defineNodes){let{name:w,block:k,composite:j,style:P}=typeof Q=="string"?{name:Q}:Q;if(b.some(Y=>Y.name==w))continue;j&&(o[b.length]=(Y,X,C)=>j(X,C,Y.value));let z=b.length,R=j?["Block","BlockContext"]:k?z>=ce.ATXHeading1&&z<=ce.SetextHeading2?["Block","LeafBlock","Heading"]:["Block","LeafBlock"]:void 0;b.push(yi.define({id:z,name:w,props:R&&[[Oa.group,R]]})),P&&(y||(y={}),Array.isArray(P)||P instanceof Ij?y[w]=P:Object.assign(y,P))}r=new BO(b),y&&(r=r.extend(Gs(y)))}if(si(l.props)&&(r=r.extend(...l.props)),si(l.remove))for(let b of l.remove){let y=this.blockNames.indexOf(b),Q=this.inlineNames.indexOf(b);y>-1&&(d[y]=u[y]=void 0),Q>-1&&(h[Q]=void 0)}if(si(l.parseBlock))for(let b of l.parseBlock){let y=f.indexOf(b.name);if(y>-1)d[y]=b.parse,u[y]=b.leaf;else{let Q=b.before?rc(f,b.before):b.after?rc(f,b.after)+1:f.length-1;d.splice(Q,0,b.parse),u.splice(Q,0,b.leaf),f.splice(Q,0,b.name)}b.endLeaf&&g.push(b.endLeaf)}if(si(l.parseInline))for(let b of l.parseInline){let y=p.indexOf(b.name);if(y>-1)h[y]=b.parse;else{let Q=b.before?rc(p,b.before):b.after?rc(p,b.after)+1:p.length-1;h.splice(Q,0,b.parse),p.splice(Q,0,b.name)}}return l.wrap&&(x=x.concat(l.wrap)),new cd(r,d,u,f,g,o,h,p,x)}getNodeType(n){let l=this.nodeTypes[n];if(l==null)throw new RangeError(`Unknown node type '${n}'`);return l}parseInline(n,l){let r=new Rh(this,n,l);e:for(let o=l;o<r.end;){let d=r.char(o);for(let u of this.inlineParsers)if(u){let f=u(r,d,o);if(f>=0){o=f;continue e}}o++}return r.resolveMarkers(0)}}function si(e){return e!=null&&e.length>0}function EO(e){if(!Array.isArray(e))return e;if(e.length==0)return null;let n=EO(e[0]);if(e.length==1)return n;let l=EO(e.slice(1));if(!l||!n)return n||l;let r=(u,f)=>(u||tr).concat(f||tr),o=n.wrap,d=l.wrap;return{props:r(n.props,l.props),defineNodes:r(n.defineNodes,l.defineNodes),parseBlock:r(n.parseBlock,l.parseBlock),parseInline:r(n.parseInline,l.parseInline),remove:r(n.remove,l.remove),wrap:o?d?(u,f,h,p)=>o(d(u,f,h,p),f,h,p):o:d}}function rc(e,n){let l=e.indexOf(n);if(l<0)throw new RangeError(`Position specified relative to unknown parser ${n}`);return l}let Ty=[yi.none];for(let e=1,n;n=ce[e];e++)Ty[e]=yi.define({id:e,name:n,props:e>=ce.Escape?[]:[[Oa.group,e in xy?["Block","BlockContext"]:["Block","LeafBlock"]]],top:n=="Document"});const tr=[];class Ny{constructor(n){this.nodeSet=n,this.content=[],this.nodes=[]}write(n,l,r,o=0){return this.content.push(n,l,r,4+o*4),this}writeElements(n,l=0){for(let r of n)r.writeTo(this,l);return this}finish(n,l){return gn.build({buffer:this.content,nodeSet:this.nodeSet,reused:this.nodes,topID:n,length:l})}}let pi=class{constructor(n,l,r,o=tr){this.type=n,this.from=l,this.to=r,this.children=o}writeTo(n,l){let r=n.content.length;n.writeElements(this.children,l),n.content.push(this.type,this.from+l,this.to+l,n.content.length+4-r)}toTree(n){return new Ny(n).writeElements(this.children,-this.from).finish(this.type,this.to-this.from)}};class Py{constructor(n,l){this.tree=n,this.from=l}get to(){return this.from+this.tree.length}get type(){return this.tree.type.id}get children(){return tr}writeTo(n,l){n.nodes.push(this.tree),n.content.push(n.nodes.length-1,this.from+l,this.to+l,-1)}toTree(){return this.tree}}function Ee(e,n,l,r){return new pi(e,n,l,r)}const zy={resolve:"Emphasis",mark:"EmphasisMark"},Cy={resolve:"Emphasis",mark:"EmphasisMark"},Rs={},Vc={};class Ht{constructor(n,l,r,o){this.type=n,this.from=l,this.to=r,this.side=o}}const t0="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~";let xi=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\u2010-\u2027]/;try{xi=new RegExp("[\\p{S}|\\p{P}]","u")}catch{}const tO={Escape(e,n,l){if(n!=92||l==e.end-1)return-1;let r=e.char(l+1);for(let o=0;o<t0.length;o++)if(t0.charCodeAt(o)==r)return e.append(Ee(ce.Escape,l,l+2));return-1},Entity(e,n,l){if(n!=38)return-1;let r=/^(?:#\d+|#x[a-f\d]+|\w+);/i.exec(e.slice(l+1,l+31));return r?e.append(Ee(ce.Entity,l,l+1+r[0].length)):-1},InlineCode(e,n,l){if(n!=96||l&&e.char(l-1)==96)return-1;let r=l+1;for(;r<e.end&&e.char(r)==96;)r++;let o=r-l,d=0;for(;r<e.end;r++)if(e.char(r)==96){if(d++,d==o&&e.char(r+1)!=96)return e.append(Ee(ce.InlineCode,l,r+1,[Ee(ce.CodeMark,l,l+o),Ee(ce.CodeMark,r+1-o,r+1)]))}else d=0;return-1},HTMLTag(e,n,l){if(n!=60||l==e.end-1)return-1;let r=e.slice(l+1,e.end),o=/^(?:[a-z][-\w+.]+:[^\s>]+|[a-z\d.!#$%&'*+/=?^_`{|}~-]+@[a-z\d](?:[a-z\d-]{0,61}[a-z\d])?(?:\.[a-z\d](?:[a-z\d-]{0,61}[a-z\d])?)*)>/i.exec(r);if(o)return e.append(Ee(ce.Autolink,l,l+1+o[0].length,[Ee(ce.LinkMark,l,l+1),Ee(ce.URL,l+1,l+o[0].length),Ee(ce.LinkMark,l+o[0].length,l+1+o[0].length)]));let d=/^!--[^>](?:-[^-]|[^-])*?-->/i.exec(r);if(d)return e.append(Ee(ce.Comment,l,l+1+d[0].length));let u=/^\?[^]*?\?>/.exec(r);if(u)return e.append(Ee(ce.ProcessingInstruction,l,l+1+u[0].length));let f=/^(?:![A-Z][^]*?>|!\[CDATA\[[^]*?\]\]>|\/\s*[a-zA-Z][\w-]*\s*>|\s*[a-zA-Z][\w-]*(\s+[a-zA-Z:_][\w-.:]*(?:\s*=\s*(?:[^\s"'=<>`]+|'[^']*'|"[^"]*"))?)*\s*(\/\s*)?>)/.exec(r);return f?e.append(Ee(ce.HTMLTag,l,l+1+f[0].length)):-1},Emphasis(e,n,l){if(n!=95&&n!=42)return-1;let r=l+1;for(;e.char(r)==n;)r++;let o=e.slice(l-1,l),d=e.slice(r,r+1),u=xi.test(o),f=xi.test(d),h=/\s|^$/.test(o),p=/\s|^$/.test(d),g=!p&&(!f||h||u),x=!h&&(!u||p||f),b=g&&(n==42||!x||u),y=x&&(n==42||!g||f);return e.append(new Ht(n==95?zy:Cy,l,r,(b?1:0)|(y?2:0)))},HardBreak(e,n,l){if(n==92&&e.char(l+1)==10)return e.append(Ee(ce.HardBreak,l,l+2));if(n==32){let r=l+1;for(;e.char(r)==32;)r++;if(e.char(r)==10&&r>=l+2)return e.append(Ee(ce.HardBreak,l,r+1))}return-1},Link(e,n,l){return n==91?e.append(new Ht(Rs,l,l+1,1)):-1},Image(e,n,l){return n==33&&e.char(l+1)==91?e.append(new Ht(Vc,l,l+2,1)):-1},LinkEnd(e,n,l){if(n!=93)return-1;for(let r=e.parts.length-1;r>=0;r--){let o=e.parts[r];if(o instanceof Ht&&(o.type==Rs||o.type==Vc)){if(!o.side||e.skipSpace(o.to)==l&&!/[(\[]/.test(e.slice(l+1,l+2)))return e.parts[r]=null,-1;let d=e.takeContent(r),u=e.parts[r]=Iz(e,d,o.type==Rs?ce.Link:ce.Image,o.from,l+1);if(o.type==Rs)for(let f=0;f<r;f++){let h=e.parts[f];h instanceof Ht&&h.type==Rs&&(h.side=0)}return u.to}}return-1}};function Iz(e,n,l,r,o){let{text:d}=e,u=e.char(o),f=o;if(n.unshift(Ee(ce.LinkMark,r,r+(l==ce.Image?2:1))),n.push(Ee(ce.LinkMark,o-1,o)),u==40){let h=e.skipSpace(o+1),p=Ry(d,h-e.offset,e.offset),g;p&&(h=e.skipSpace(p.to),h!=p.to&&(g=_y(d,h-e.offset,e.offset),g&&(h=e.skipSpace(g.to)))),e.char(h)==41&&(n.push(Ee(ce.LinkMark,o,o+1)),f=h+1,p&&n.push(p),g&&n.push(g),n.push(Ee(ce.LinkMark,h,f)))}else if(u==91){let h=Ay(d,o-e.offset,e.offset,!1);h&&(n.push(h),f=h.to)}return Ee(l,r,f,n)}function Ry(e,n,l){if(e.charCodeAt(n)==60){for(let o=n+1;o<e.length;o++){let d=e.charCodeAt(o);if(d==62)return Ee(ce.URL,n+l,o+1+l);if(d==60||d==10)return!1}return null}else{let o=0,d=n;for(let u=!1;d<e.length;d++){let f=e.charCodeAt(d);if(fn(f))break;if(u)u=!1;else if(f==40)o++;else if(f==41){if(!o)break;o--}else f==92&&(u=!0)}return d>n?Ee(ce.URL,n+l,d+l):d==e.length?null:!1}}function _y(e,n,l){let r=e.charCodeAt(n);if(r!=39&&r!=34&&r!=40)return!1;let o=r==40?41:r;for(let d=n+1,u=!1;d<e.length;d++){let f=e.charCodeAt(d);if(u)u=!1;else{if(f==o)return Ee(ce.LinkTitle,n+l,d+1+l);f==92&&(u=!0)}}return null}function Ay(e,n,l,r){for(let o=!1,d=n+1,u=Math.min(e.length,d+999);d<u;d++){let f=e.charCodeAt(d);if(o)o=!1;else{if(f==93)return r?!1:Ee(ce.LinkLabel,n+l,d+1+l);if(r&&!fn(f)&&(r=!1),f==91)return!1;f==92&&(o=!0)}}return null}class Rh{constructor(n,l,r){this.parser=n,this.text=l,this.offset=r,this.parts=[]}char(n){return n>=this.end?-1:this.text.charCodeAt(n-this.offset)}get end(){return this.offset+this.text.length}slice(n,l){return this.text.slice(n-this.offset,l-this.offset)}append(n){return this.parts.push(n),n.to}addDelimiter(n,l,r,o,d){return this.append(new Ht(n,l,r,(o?1:0)|(d?2:0)))}get hasOpenLink(){for(let n=this.parts.length-1;n>=0;n--){let l=this.parts[n];if(l instanceof Ht&&(l.type==Rs||l.type==Vc))return!0}return!1}addElement(n){return this.append(n)}resolveMarkers(n){for(let r=n;r<this.parts.length;r++){let o=this.parts[r];if(!(o instanceof Ht&&o.type.resolve&&o.side&2))continue;let d=o.type==zy||o.type==Cy,u=o.to-o.from,f,h=r-1;for(;h>=n;h--){let w=this.parts[h];if(w instanceof Ht&&w.side&1&&w.type==o.type&&!(d&&(o.side&1||w.side&2)&&(w.to-w.from+u)%3==0&&((w.to-w.from)%3||u%3))){f=w;break}}if(!f)continue;let p=o.type.resolve,g=[],x=f.from,b=o.to;if(d){let w=Math.min(2,f.to-f.from,u);x=f.to-w,b=o.from+w,p=w==1?"Emphasis":"StrongEmphasis"}f.type.mark&&g.push(this.elt(f.type.mark,x,f.to));for(let w=h+1;w<r;w++)this.parts[w]instanceof pi&&g.push(this.parts[w]),this.parts[w]=null;o.type.mark&&g.push(this.elt(o.type.mark,o.from,b));let y=this.elt(p,x,b,g);this.parts[h]=d&&f.from!=x?new Ht(f.type,f.from,x,f.side):null,(this.parts[r]=d&&o.to!=b?new Ht(o.type,b,o.to,o.side):null)?this.parts.splice(r,0,y):this.parts[r]=y}let l=[];for(let r=n;r<this.parts.length;r++){let o=this.parts[r];o instanceof pi&&l.push(o)}return l}findOpeningDelimiter(n){for(let l=this.parts.length-1;l>=0;l--){let r=this.parts[l];if(r instanceof Ht&&r.type==n&&r.side&1)return l}return null}takeContent(n){let l=this.resolveMarkers(n);return this.parts.length=n,l}getDelimiterAt(n){let l=this.parts[n];return l instanceof Ht?l:null}skipSpace(n){return ri(this.text,n-this.offset)+this.offset}elt(n,l,r,o){return typeof n=="string"?Ee(this.parser.getNodeType(n),l,r,o):new Py(n,l)}}Rh.linkStart=Rs;Rh.imageStart=Vc;function qO(e,n){if(!n.length)return e;if(!e.length)return n;let l=e.slice(),r=0;for(let o of n){for(;r<l.length&&l[r].to<o.to;)r++;if(r<l.length&&l[r].from<o.from){let d=l[r];d instanceof pi&&(l[r]=new pi(d.type,d.from,d.to,qO(d.children,[o])))}else l.splice(r++,0,o)}return l}const Fz=[ce.CodeBlock,ce.ListItem,ce.OrderedList,ce.BulletList];class Kz{constructor(n,l){this.fragments=n,this.input=l,this.i=0,this.fragment=null,this.fragmentEnd=-1,this.cursor=null,n.length&&(this.fragment=n[this.i++])}nextFragment(){this.fragment=this.i<this.fragments.length?this.fragments[this.i++]:null,this.cursor=null,this.fragmentEnd=-1}moveTo(n,l){for(;this.fragment&&this.fragment.to<=n;)this.nextFragment();if(!this.fragment||this.fragment.from>(n?n-1:0))return!1;if(this.fragmentEnd<0){let d=this.fragment.to;for(;d>0&&this.input.read(d-1,d)!=`
|
|
601
|
-
`;)d--;this.fragmentEnd=d?d-1:0}let r=this.cursor;r||(r=this.cursor=this.fragment.tree.cursor(),r.firstChild());let o=n+this.fragment.offset;for(;r.to<=o;)if(!r.parent())return!1;for(;;){if(r.from>=o)return this.fragment.from<=l;if(!r.childAfter(o))return!1}}matches(n){let l=this.cursor.tree;return l&&l.prop(Oa.contextHash)==n}takeNodes(n){let l=this.cursor,r=this.fragment.offset,o=this.fragmentEnd-(this.fragment.openEnd?1:0),d=n.absoluteLineStart,u=d,f=n.block.children.length,h=u,p=f;for(;;){if(l.to-r>o){if(l.type.isAnonymous&&l.firstChild())continue;break}let g=Xy(l.from-r,n.ranges);if(l.to-r<=n.ranges[n.rangeI].to)n.addNode(l.tree,g);else{let x=new gn(n.parser.nodeSet.types[ce.Paragraph],[],[],0,n.block.hashProp);n.reusePlaceholders.set(x,l.tree),n.addNode(x,g)}if(l.type.is("Block")&&(Fz.indexOf(l.type.id)<0?(u=l.to-r,f=n.block.children.length):(u=h,f=p),h=l.to-r,p=n.block.children.length),!l.nextSibling())break}for(;n.block.children.length>f;)n.block.children.pop(),n.block.positions.pop();return u-d}}function Xy(e,n){let l=e;for(let r=1;r<n.length;r++){let o=n[r-1].to,d=n[r].from;o<e&&(l-=d-o)}return l}const Jz=Gs({"Blockquote/...":E.quote,HorizontalRule:E.contentSeparator,"ATXHeading1/... SetextHeading1/...":E.heading1,"ATXHeading2/... SetextHeading2/...":E.heading2,"ATXHeading3/...":E.heading3,"ATXHeading4/...":E.heading4,"ATXHeading5/...":E.heading5,"ATXHeading6/...":E.heading6,"Comment CommentBlock":E.comment,Escape:E.escape,Entity:E.character,"Emphasis/...":E.emphasis,"StrongEmphasis/...":E.strong,"Link/... Image/...":E.link,"OrderedList/... BulletList/...":E.list,"BlockQuote/...":E.quote,"InlineCode CodeText":E.monospace,"URL Autolink":E.url,"HeaderMark HardBreak QuoteMark ListMark LinkMark EmphasisMark CodeMark":E.processingInstruction,"CodeInfo LinkLabel":E.labelName,LinkTitle:E.string,Paragraph:E.content}),eC=new cd(new BO(Ty).extend(Jz),Object.keys(lc).map(e=>lc[e]),Object.keys(lc).map(e=>ky[e]),Object.keys(lc),Wz,xy,Object.keys(tO).map(e=>tO[e]),Object.keys(tO),[]);function tC(e,n,l){let r=[];for(let o=e.firstChild,d=n;;o=o.nextSibling){let u=o?o.from:l;if(u>d&&r.push({from:d,to:u}),!o)break;d=o.to}return r}function nC(e){let{codeParser:n,htmlParser:l}=e;return{wrap:I0((o,d)=>{let u=o.type.id;if(n&&(u==ce.CodeBlock||u==ce.FencedCode)){let f="";if(u==ce.FencedCode){let p=o.node.getChild(ce.CodeInfo);p&&(f=d.read(p.from,p.to))}let h=n(f);if(h)return{parser:h,overlay:p=>p.type.id==ce.CodeText,bracketed:u==ce.FencedCode}}else if(l&&(u==ce.HTMLBlock||u==ce.HTMLTag||u==ce.CommentBlock))return{parser:l,overlay:tC(o.node,o.from,o.to)};return null})}}const aC={resolve:"Strikethrough",mark:"StrikethroughMark"},sC={defineNodes:[{name:"Strikethrough",style:{"Strikethrough/...":E.strikethrough}},{name:"StrikethroughMark",style:E.processingInstruction}],parseInline:[{name:"Strikethrough",parse(e,n,l){if(n!=126||e.char(l+1)!=126||e.char(l+2)==126)return-1;let r=e.slice(l-1,l),o=e.slice(l+2,l+3),d=/\s|^$/.test(r),u=/\s|^$/.test(o),f=xi.test(r),h=xi.test(o);return e.addDelimiter(aC,l,l+2,!u&&(!h||d||f),!d&&(!f||u||h))},after:"Emphasis"}]};function ii(e,n,l=0,r,o=0){let d=0,u=!0,f=-1,h=-1,p=!1,g=()=>{r.push(e.elt("TableCell",o+f,o+h,e.parser.parseInline(n.slice(f,h),o+f)))};for(let x=l;x<n.length;x++){let b=n.charCodeAt(x);b==124&&!p?((!u||f>-1)&&d++,u=!1,r&&(f>-1&&g(),r.push(e.elt("TableDelimiter",x+o,x+o+1))),f=h=-1):(p||b!=32&&b!=9)&&(f<0&&(f=x),h=x+1),p=!p&&b==92}return f>-1&&(d++,r&&g()),d}function n0(e,n){for(let l=n;l<e.length;l++){let r=e.charCodeAt(l);if(r==124)return!0;r==92&&l++}return!1}const Zy=/^\|?(\s*:?-+:?\s*\|)+(\s*:?-+:?\s*)?$/;class a0{constructor(){this.rows=null}nextLine(n,l,r){if(this.rows==null){this.rows=!1;let o;if((l.next==45||l.next==58||l.next==124)&&Zy.test(o=l.text.slice(l.pos))){let d=[];ii(n,r.content,0,d,r.start)==ii(n,o,l.pos)&&(this.rows=[n.elt("TableHeader",r.start,r.start+r.content.length,d),n.elt("TableDelimiter",n.lineStart+l.pos,n.lineStart+l.text.length)])}}else if(this.rows){let o=[];ii(n,l.text,l.pos,o,n.lineStart),this.rows.push(n.elt("TableRow",n.lineStart+l.pos,n.lineStart+l.text.length,o))}return!1}finish(n,l){return this.rows?(n.addLeafElement(l,n.elt("Table",l.start,l.start+l.content.length,this.rows)),!0):!1}}const lC={defineNodes:[{name:"Table",block:!0},{name:"TableHeader",style:{"TableHeader/...":E.heading}},"TableRow",{name:"TableCell",style:E.content},{name:"TableDelimiter",style:E.processingInstruction}],parseBlock:[{name:"Table",leaf(e,n){return n0(n.content,0)?new a0:null},endLeaf(e,n,l){if(l.parsers.some(o=>o instanceof a0)||!n0(n.text,n.basePos))return!1;let r=e.peekLine();return Zy.test(r)&&ii(e,n.text,n.basePos)==ii(e,r,n.basePos)},before:"SetextHeading"}]};class rC{nextLine(){return!1}finish(n,l){return n.addLeafElement(l,n.elt("Task",l.start,l.start+l.content.length,[n.elt("TaskMarker",l.start,l.start+3),...n.parser.parseInline(l.content.slice(3),l.start+3)])),!0}}const iC={defineNodes:[{name:"Task",block:!0,style:E.list},{name:"TaskMarker",style:E.atom}],parseBlock:[{name:"TaskList",leaf(e,n){return/^\[[ xX]\][ \t]/.test(n.content)&&e.parentType().name=="ListItem"?new rC:null},after:"SetextHeading"}]},s0=/(www\.)|(https?:\/\/)|([\w.+-]{1,100}@)|(mailto:|xmpp:)/gy,l0=/[\w-]+(\.[\w-]+)+(\/[^\s<]*)?/gy,oC=/[\w-]+\.[\w-]+($|\/)/,r0=/[\w.+-]+@[\w-]+(\.[\w.-]+)+/gy,i0=/\/[a-zA-Z\d@.]+/gy;function o0(e,n,l,r){let o=0;for(let d=n;d<l;d++)e[d]==r&&o++;return o}function cC(e,n){l0.lastIndex=n;let l=l0.exec(e);if(!l||oC.exec(l[0])[0].indexOf("_")>-1)return-1;let r=n+l[0].length;for(;;){let o=e[r-1],d;if(/[?!.,:*_~]/.test(o)||o==")"&&o0(e,n,r,")")>o0(e,n,r,"("))r--;else if(o==";"&&(d=/&(?:#\d+|#x[a-f\d]+|\w+);$/.exec(e.slice(n,r))))r=n+d.index;else break}return r}function c0(e,n){r0.lastIndex=n;let l=r0.exec(e);if(!l)return-1;let r=l[0][l[0].length-1];return r=="_"||r=="-"?-1:n+l[0].length-(r=="."?1:0)}const dC={parseInline:[{name:"Autolink",parse(e,n,l){let r=l-e.offset;if(r&&/\w/.test(e.text[r-1]))return-1;s0.lastIndex=r;let o=s0.exec(e.text),d=-1;if(!o)return-1;if(o[1]||o[2]){if(d=cC(e.text,r+o[0].length),d>-1&&e.hasOpenLink){let u=/([^\[\]]|\[[^\]]*\])*/.exec(e.text.slice(r,d));d=r+u[0].length}}else o[3]?d=c0(e.text,r):(d=c0(e.text,r+o[0].length),d>-1&&o[0]=="xmpp:"&&(i0.lastIndex=d,o=i0.exec(e.text),o&&(d=o.index+o[0].length)));return d<0?-1:(e.addElement(e.elt("URL",l,d+e.offset)),d+e.offset)}}]},uC=[lC,iC,sC,dC];function Ey(e,n,l){return(r,o,d)=>{if(o!=e||r.char(d+1)==e)return-1;let u=[r.elt(l,d,d+1)];for(let f=d+1;f<r.end;f++){let h=r.char(f);if(h==e)return r.addElement(r.elt(n,d,f+1,u.concat(r.elt(l,f,f+1))));if(h==92&&u.push(r.elt("Escape",f,f+++2)),fn(h))break}return-1}}const fC={defineNodes:[{name:"Superscript",style:E.special(E.content)},{name:"SuperscriptMark",style:E.processingInstruction}],parseInline:[{name:"Superscript",parse:Ey(94,"Superscript","SuperscriptMark")}]},OC={defineNodes:[{name:"Subscript",style:E.special(E.content)},{name:"SubscriptMark",style:E.processingInstruction}],parseInline:[{name:"Subscript",parse:Ey(126,"Subscript","SubscriptMark")}]},hC={defineNodes:[{name:"Emoji",style:E.character}],parseInline:[{name:"Emoji",parse(e,n,l){let r;return n!=58||!(r=/^[a-zA-Z_0-9]+:/.exec(e.slice(l+1,e.end)))?-1:e.addElement(e.elt("Emoji",l,l+1+r[0].length))}}]},qy=H0({commentTokens:{block:{open:"<!--",close:"-->"}}}),My=new Oa,Yy=eC.configure({props:[Ds.add(e=>!e.is("Block")||e.is("Document")||MO(e)!=null||mC(e)?void 0:(n,l)=>({from:l.doc.lineAt(n.from).to,to:n.to})),My.add(MO),nr.add({Document:()=>null}),nw.add({Document:qy})]});function MO(e){let n=/^(?:ATX|Setext)Heading(\d)$/.exec(e.name);return n?+n[1]:void 0}function mC(e){return e.name=="OrderedList"||e.name=="BulletList"}function pC(e,n){let l=e;for(;;){let r=l.nextSibling,o;if(!r||(o=MO(r.type))!=null&&o<=n)break;l=r}return l.to}const xC=Kj.of((e,n,l)=>{for(let r=yn(e).resolveInner(l,-1);r&&!(r.from<n);r=r.parent){let o=r.type.prop(My);if(o==null)continue;let d=pC(r,o);if(d>l)return{from:l,to:d}}return null});function _h(e){return new Jj(qy,e,[],"markdown")}const gC=_h(Yy),bC=Yy.configure([uC,OC,fC,hC,{props:[Ds.add({Table:(e,n)=>({from:n.doc.lineAt(e.from).to,to:e.to})})]}]),Gc=_h(bC);function vC(e,n){return l=>{if(l&&e){let r=null;if(l=/\S*/.exec(l)[0],typeof e=="function"?r=e(l):r=Dg.matchLanguageName(e,l,!0),r instanceof Dg)return r.support?r.support.language.parser:aw.getSkippingParser(r.load());if(r)return r.parser}return n?n.parser:null}}let nO=class{constructor(n,l,r,o,d,u,f){this.node=n,this.from=l,this.to=r,this.spaceBefore=o,this.spaceAfter=d,this.type=u,this.item=f}blank(n,l=!0){let r=this.spaceBefore+(this.node.name=="Blockquote"?">":"");if(n!=null){for(;r.length<n;)r+=" ";return r}else{for(let o=this.to-this.from-r.length-this.spaceAfter.length;o>0;o--)r+=" ";return r+(l?this.spaceAfter:"")}}marker(n,l){let r=this.node.name=="OrderedList"?String(+Vy(this.item,n)[2]+l):"";return this.spaceBefore+r+this.type+this.spaceAfter}};function Uy(e,n){let l=[],r=[];for(let o=e;o;o=o.parent){if(o.name=="FencedCode")return r;(o.name=="ListItem"||o.name=="Blockquote")&&l.push(o)}for(let o=l.length-1;o>=0;o--){let d=l[o],u,f=n.lineAt(d.from),h=d.from-f.from;if(d.name=="Blockquote"&&(u=/^ *>( ?)/.exec(f.text.slice(h))))r.push(new nO(d,h,h+u[0].length,"",u[1],">",null));else if(d.name=="ListItem"&&d.parent.name=="OrderedList"&&(u=/^( *)\d+([.)])( *)/.exec(f.text.slice(h)))){let p=u[3],g=u[0].length;p.length>=4&&(p=p.slice(0,p.length-4),g-=4),r.push(new nO(d.parent,h,h+g,u[1],p,u[2],d))}else if(d.name=="ListItem"&&d.parent.name=="BulletList"&&(u=/^( *)([-+*])( {1,4}\[[ xX]\])?( +)/.exec(f.text.slice(h)))){let p=u[4],g=u[0].length;p.length>4&&(p=p.slice(0,p.length-4),g-=4);let x=u[2];u[3]&&(x+=u[3].replace(/[xX]/," ")),r.push(new nO(d.parent,h,h+g,u[1],p,x,d))}}return r}function Vy(e,n){return/^(\s*)(\d+)(?=[.)])/.exec(n.sliceString(e.from,e.from+10))}function aO(e,n,l,r=0){for(let o=-1,d=e;;){if(d.name=="ListItem"){let f=Vy(d,n),h=+f[2];if(o>=0){if(h!=o+1)return;l.push({from:d.from+f[1].length,to:d.from+f[0].length,insert:String(o+2+r)})}o=h}let u=d.nextSibling;if(!u)break;d=u}}function Ah(e,n){let l=/^[ \t]*/.exec(e)[0].length;if(!l||n.facet(ew)!=" ")return e;let r=oi(e,4,l),o="";for(let d=r;d>0;)d>=4?(o+=" ",d-=4):(o+=" ",d--);return o+e.slice(l)}const yC=(e={})=>({state:n,dispatch:l})=>{let r=yn(n),{doc:o}=n,d=null,u=n.changeByRange(f=>{if(!f.empty||!Gc.isActiveAt(n,f.from,-1)&&!Gc.isActiveAt(n,f.from,1))return d={range:f};let h=f.from,p=o.lineAt(h),g=Uy(r.resolveInner(h,-1),o);for(;g.length&&g[g.length-1].from>h-p.from;)g.pop();if(!g.length)return d={range:f};let x=g[g.length-1];if(x.to-x.spaceAfter.length>h-p.from)return d={range:f};let b=h>=x.to-x.spaceAfter.length&&!/\S/.test(p.text.slice(x.to));if(x.item&&b){let j=x.node.firstChild,P=x.node.getChild("ListItem","ListItem");if(j.to>=h||P&&P.to<h||p.from>0&&!/[^\s>]/.test(o.lineAt(p.from-1).text)||e.nonTightLists===!1){let z=g.length>1?g[g.length-2]:null,R,Y="";z&&z.item?(R=p.from+z.from,Y=z.marker(o,1)):R=p.from+(z?z.to:0);let X=[{from:R,to:h,insert:Y}];return x.node.name=="OrderedList"&&aO(x.item,o,X,-2),z&&z.node.name=="OrderedList"&&aO(z.item,o,X),{range:ts.cursor(R+Y.length),changes:X}}else{let z=u0(g,n,p);return{range:ts.cursor(h+z.length+1),changes:{from:p.from,insert:z+n.lineBreak}}}}if(x.node.name=="Blockquote"&&b&&p.from){let j=o.lineAt(p.from-1),P=/>\s*$/.exec(j.text);if(P&&P.index==x.from){let z=n.changes([{from:j.from+P.index,to:j.to},{from:p.from+x.from,to:p.to}]);return{range:f.map(z),changes:z}}}let y=[];x.node.name=="OrderedList"&&aO(x.item,o,y);let Q=x.item&&x.item.from<p.from,w="";if(!Q||/^[\s\d.)\-+*>]*/.exec(p.text)[0].length>=x.to)for(let j=0,P=g.length-1;j<=P;j++)w+=j==P&&!Q?g[j].marker(o,1):g[j].blank(j<P?oi(p.text,4,g[j+1].from)-w.length:null);let k=h;for(;k>p.from&&/\s/.test(p.text.charAt(k-p.from-1));)k--;return w=Ah(w,n),QC(x.node,n.doc)&&(w=u0(g,n,p)+n.lineBreak+w),y.push({from:k,to:h,insert:n.lineBreak+w}),{range:ts.cursor(k+w.length+1),changes:y}});return d?!1:(l(n.update(u,{scrollIntoView:!0,userEvent:"input"})),!0)},SC=yC();function d0(e){return e.name=="QuoteMark"||e.name=="ListMark"}function QC(e,n){if(e.name!="OrderedList"&&e.name!="BulletList")return!1;let l=e.firstChild,r=e.getChild("ListItem","ListItem");if(!r)return!1;let o=n.lineAt(l.to),d=n.lineAt(r.from),u=/^[\s>]*$/.test(o.text);return o.number+(u?0:1)<d.number}function u0(e,n,l){let r="";for(let o=0,d=e.length-2;o<=d;o++)r+=e[o].blank(o<d?oi(l.text,4,e[o+1].from)-r.length:null,o<d);return Ah(r,n)}function jC(e,n){let l=e.resolveInner(n,-1),r=n;d0(l)&&(r=l.from,l=l.parent);for(let o;o=l.childBefore(r);)if(d0(o))r=o.from;else if(o.name=="OrderedList"||o.name=="BulletList")l=o.lastChild,r=l.to;else break;return l}const wC=({state:e,dispatch:n})=>{let l=yn(e),r=null,o=e.changeByRange(d=>{let u=d.from,{doc:f}=e;if(d.empty&&Gc.isActiveAt(e,d.from)){let h=f.lineAt(u),p=Uy(jC(l,u),f);if(p.length){let g=p[p.length-1],x=g.to-g.spaceAfter.length+(g.spaceAfter?1:0);if(u-h.from>x&&!/\S/.test(h.text.slice(x,u-h.from)))return{range:ts.cursor(h.from+x),changes:{from:h.from+x,to:u}};if(u-h.from==x&&(!g.item||h.from<=g.item.from||!/\S/.test(h.text.slice(0,g.to)))){let b=h.from+g.from;if(g.item&&g.node.from<g.item.from&&/\S/.test(h.text.slice(g.from,g.to))){let y=g.blank(oi(h.text,4,g.to)-oi(h.text,4,g.from));return b==h.from&&(y=Ah(y,e)),{range:ts.cursor(b+y.length),changes:{from:b,to:h.from+g.to,insert:y}}}if(b<u)return{range:ts.cursor(b),changes:{from:b,to:u}}}}}return r={range:d}});return r?!1:(n(e.update(o,{scrollIntoView:!0,userEvent:"delete"})),!0)},kC=[{key:"Enter",run:SC},{key:"Backspace",run:wC}],Gy=py({matchClosingTags:!1});function $C(e={}){let{codeLanguages:n,defaultCodeLanguage:l,addKeymap:r=!0,base:{parser:o}=gC,completeHTMLTags:d=!0,pasteURLAsLink:u=!0,htmlTagLanguage:f=Gy}=e;if(!(o instanceof cd))throw new RangeError("Base parser provided to `markdown` should be a Markdown parser");let h=e.extensions?[e.extensions]:[],p=[f.support,xC],g;u&&p.push(zC),l instanceof Zs?(p.push(l.support),g=l.language):l&&(g=l);let x=n||g?vC(n,g):void 0;h.push(nC({codeParser:x,htmlParser:f.language.parser})),r&&p.push(Fj.high(yO.of(kC)));let b=_h(o.configure(h));return d&&p.push(b.data.of({autocomplete:TC})),new Zs(b,p)}function TC(e){let{state:n,pos:l}=e,r=/<[:\-\.\w\u00b7-\uffff]*$/.exec(n.sliceDoc(l-25,l));if(!r)return null;let o=yn(n).resolveInner(l,-1);for(;o&&!o.type.isTop;){if(o.name=="CodeBlock"||o.name=="FencedCode"||o.name=="ProcessingInstructionBlock"||o.name=="CommentBlock"||o.name=="Link"||o.name=="Image")return null;o=o.parent}return{from:l-r[0].length,to:l,options:NC(),validFor:/^<[:\-\.\w\u00b7-\uffff]*$/}}let sO=null;function NC(){if(sO)return sO;let e=Az(new tw(F0.create({extensions:Gy}),0,!0));return sO=e?e.options:[]}const PC=/code|horizontalrule|html|link|comment|processing|escape|entity|image|mark|url/i,zC=Ll.domEventHandlers({paste:(e,n)=>{var l;let{main:r}=n.state.selection;if(r.empty)return!1;let o=(l=e.clipboardData)===null||l===void 0?void 0:l.getData("text/plain");if(!o||!/^(https?:\/\/|mailto:|xmpp:|www\.)/.test(o)||(/^www\./.test(o)&&(o="https://"+o),!Gc.isActiveAt(n.state,r.from,1)))return!1;let d=yn(n.state),u=!1;return d.iterate({from:r.from,to:r.to,enter:f=>{(f.from>r.from||PC.test(f.name))&&(u=!0)},leave:f=>{f.to<r.to&&(u=!0)}}),u?!1:(n.dispatch({changes:[{from:r.from,insert:"["},{from:r.to,insert:`](${o})`}],userEvent:"input.paste",scrollIntoView:!0}),!0)}}),CC=1,Dy=194,Ly=195,RC=196,f0=197,_C=198,AC=199,XC=200,ZC=2,Wy=3,O0=201,EC=24,qC=25,MC=49,YC=50,UC=55,VC=56,GC=57,DC=59,LC=60,WC=61,BC=62,HC=63,IC=65,FC=238,KC=71,JC=241,eR=242,tR=243,nR=244,aR=245,sR=246,lR=247,rR=248,By=72,iR=249,oR=250,cR=251,dR=252,uR=253,fR=254,OR=255,hR=256,mR=73,pR=77,xR=263,gR=112,bR=130,vR=151,yR=152,SR=155,Us=10,gi=13,Xh=32,dd=9,Zh=35,QR=40,jR=46,YO=123,h0=125,Hy=39,Iy=34,m0=92,wR=111,kR=120,$R=78,TR=117,NR=85,PR=new Set([qC,MC,YC,xR,IC,bR,VC,GC,FC,BC,HC,By,mR,pR,LC,WC,vR,yR,SR,gR]);function lO(e){return e==Us||e==gi}function rO(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}const zR=new wt((e,n)=>{let l;if(e.next<0)e.acceptToken(AC);else if(n.context.flags&yc)lO(e.next)&&e.acceptToken(_C,1);else if(((l=e.peek(-1))<0||lO(l))&&n.canShift(f0)){let r=0;for(;e.next==Xh||e.next==dd;)e.advance(),r++;(e.next==Us||e.next==gi||e.next==Zh)&&e.acceptToken(f0,-r)}else lO(e.next)&&e.acceptToken(RC,1)},{contextual:!0}),CR=new wt((e,n)=>{let l=n.context;if(l.flags)return;let r=e.peek(-1);if(r==Us||r==gi){let o=0,d=0;for(;;){if(e.next==Xh)o++;else if(e.next==dd)o+=8-o%8;else break;e.advance(),d++}o!=l.indent&&e.next!=Us&&e.next!=gi&&e.next!=Zh&&(o<l.indent?e.acceptToken(Ly,-d):e.acceptToken(Dy))}}),yc=1,Fy=2,oa=4,ca=8,da=16,ua=32;function Sc(e,n,l){this.parent=e,this.indent=n,this.flags=l,this.hash=(e?e.hash+e.hash<<8:0)+n+(n<<4)+l+(l<<6)}const RR=new Sc(null,0,0);function _R(e){let n=0;for(let l=0;l<e.length;l++)n+=e.charCodeAt(l)==dd?8-n%8:1;return n}const p0=new Map([[JC,0],[eR,oa],[tR,ca],[nR,ca|oa],[aR,da],[sR,da|oa],[lR,da|ca],[rR,da|ca|oa],[iR,ua],[oR,ua|oa],[cR,ua|ca],[dR,ua|ca|oa],[uR,ua|da],[fR,ua|da|oa],[OR,ua|da|ca],[hR,ua|da|ca|oa]].map(([e,n])=>[e,n|Fy])),AR=new jh({start:RR,reduce(e,n,l,r){return e.flags&yc&&PR.has(n)||(n==KC||n==By)&&e.flags&Fy?e.parent:e},shift(e,n,l,r){return n==Dy?new Sc(e,_R(r.read(r.pos,l.pos)),0):n==Ly?e.parent:n==EC||n==UC||n==DC||n==Wy?new Sc(e,0,yc):p0.has(n)?new Sc(e,0,p0.get(n)|e.flags&yc):e},hash(e){return e.hash}}),XR=new wt(e=>{for(let n=0;n<5;n++){if(e.next!="print".charCodeAt(n))return;e.advance()}if(!/\w/.test(String.fromCharCode(e.next)))for(let n=0;;n++){let l=e.peek(n);if(!(l==Xh||l==dd)){l!=QR&&l!=jR&&l!=Us&&l!=gi&&l!=Zh&&e.acceptToken(CC);return}}}),ZR=new wt((e,n)=>{let{flags:l}=n.context,r=l&oa?Iy:Hy,o=(l&ca)>0,d=!(l&da),u=(l&ua)>0,f=e.pos;for(;!(e.next<0);)if(u&&e.next==YO)if(e.peek(1)==YO)e.advance(2);else{if(e.pos==f){e.acceptToken(Wy,1);return}break}else if(d&&e.next==m0){if(e.pos==f){e.advance();let h=e.next;h>=0&&(e.advance(),ER(e,h)),e.acceptToken(ZC);return}break}else if(e.next==m0&&!d&&e.peek(1)>-1)e.advance(2);else if(e.next==r&&(!o||e.peek(1)==r&&e.peek(2)==r)){if(e.pos==f){e.acceptToken(O0,o?3:1);return}break}else if(e.next==Us){if(o)e.advance();else if(e.pos==f){e.acceptToken(O0);return}break}else e.advance();e.pos>f&&e.acceptToken(XC)});function ER(e,n){if(n==wR)for(let l=0;l<2&&e.next>=48&&e.next<=55;l++)e.advance();else if(n==kR)for(let l=0;l<2&&rO(e.next);l++)e.advance();else if(n==TR)for(let l=0;l<4&&rO(e.next);l++)e.advance();else if(n==NR)for(let l=0;l<8&&rO(e.next);l++)e.advance();else if(n==$R&&e.next==YO){for(e.advance();e.next>=0&&e.next!=h0&&e.next!=Hy&&e.next!=Iy&&e.next!=Us;)e.advance();e.next==h0&&e.advance()}}const qR=Gs({'async "*" "**" FormatConversion FormatSpec':E.modifier,"for while if elif else try except finally return raise break continue with pass assert await yield match case":E.controlKeyword,"in not and or is del":E.operatorKeyword,"from def class global nonlocal lambda":E.definitionKeyword,import:E.moduleKeyword,"with as print":E.keyword,Boolean:E.bool,None:E.null,VariableName:E.variableName,"CallExpression/VariableName":E.function(E.variableName),"FunctionDefinition/VariableName":E.function(E.definition(E.variableName)),"ClassDefinition/VariableName":E.definition(E.className),PropertyName:E.propertyName,"CallExpression/MemberExpression/PropertyName":E.function(E.propertyName),Comment:E.lineComment,Number:E.number,String:E.string,FormatString:E.special(E.string),Escape:E.escape,UpdateOp:E.updateOperator,"ArithOp!":E.arithmeticOperator,BitOp:E.bitwiseOperator,CompareOp:E.compareOperator,AssignOp:E.definitionOperator,Ellipsis:E.punctuation,At:E.meta,"( )":E.paren,"[ ]":E.squareBracket,"{ }":E.brace,".":E.derefOperator,", ;":E.separator}),MR={__proto__:null,await:44,or:54,and:56,in:60,not:62,is:64,if:70,else:72,lambda:76,yield:94,from:96,async:102,for:104,None:162,True:164,False:164,del:178,pass:182,break:186,continue:190,return:194,raise:202,import:206,as:208,global:212,nonlocal:214,assert:218,type:223,elif:236,while:240,try:246,except:248,finally:250,with:254,def:258,class:268,match:279,case:285},YR=is.deserialize({version:14,states:"##jO`QeOOP$}OSOOO&WQtO'#HUOOQS'#Co'#CoOOQS'#Cp'#CpO'vQdO'#CnO*UQtO'#HTOOQS'#HU'#HUOOQS'#DU'#DUOOQS'#HT'#HTO*rQdO'#D_O+VQdO'#DfO+gQdO'#DjO+zOWO'#DuO,VOWO'#DvO.[QtO'#GuOOQS'#Gu'#GuO'vQdO'#GtO0ZQtO'#GtOOQS'#Eb'#EbO0rQdO'#EcOOQS'#Gs'#GsO0|QdO'#GrOOQV'#Gr'#GrO1XQdO'#FYOOQS'#G^'#G^O1^QdO'#FXOOQV'#IS'#ISOOQV'#Gq'#GqOOQV'#Fq'#FqQ`QeOOO'vQdO'#CqO1lQdO'#C}O1sQdO'#DRO2RQdO'#HYO2cQtO'#EVO'vQdO'#EWOOQS'#EY'#EYOOQS'#E['#E[OOQS'#E^'#E^O2wQdO'#E`O3_QdO'#E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R0p0rU#uq.k0qR(w&][cOn#g$j)t,PZ!xY#[#}$Q+YQ#W[Q#zrR$TxQ%b!yQ%i!}Q%o#RQ'j${Q(V%eQ(Z%jQ(c%pQ(f%qQ*|(`Q,f*bQ-t,pQ.m-uR/].lQ$StQ(R%cR*s(SQ.l-sR/}/sR#QZR#V[R%Q!iQ%O!iV*c'm*d,g!Z!lQ!n#c#p$R$d$p$u$v$w$x$y$z%e%j%p%q&`'O'g(q(|)j*o*x+w,v0gR%T!kT#]^#_Q%x#[R,{+YQ(m%xS+_(n(oQ,}+`Q-x,{S.n-y-zR/^.oT+Z(k+]Q$`}Q&g$QQ)o'PR+{)pQ$XzQ)W&qR+i)XQ$XzQ&o$WQ)W&qR+i)XQ#khW$Vz$W&q)XQ$[{Q&r$ZZ)R&l)S+f+g-RR$^|R)c&wXlOn)t,PQ$f!RR'Q$gQ$m!UR'R$hR*X'_Q*V'_V-g,`-h.TQ.d-lQ/P.^R/Q._U.]-l.^._Q/U.aQ/b.tQ/g.zU/i.|/j/yQ/n/RQ/|/oQ0O/tU0Q/u0S0[Q0]0UQ0a0ZR0b0^R/T.`R/d.t",nodeNames:"⚠ print Escape { Comment Script AssignStatement * BinaryExpression BitOp BitOp BitOp BitOp ArithOp ArithOp @ ArithOp ** UnaryExpression ArithOp BitOp AwaitExpression await ) ( ParenthesizedExpression BinaryExpression or and CompareOp in not is UnaryExpression ConditionalExpression if else LambdaExpression lambda ParamList VariableName AssignOp , : NamedExpression AssignOp YieldExpression yield from TupleExpression ComprehensionExpression async for LambdaExpression ] [ ArrayExpression ArrayComprehensionExpression } { DictionaryExpression DictionaryComprehensionExpression SetExpression SetComprehensionExpression CallExpression ArgList AssignOp MemberExpression . PropertyName Number String FormatString FormatReplacement FormatSelfDoc FormatConversion FormatSpec FormatReplacement FormatSelfDoc ContinuedString Ellipsis None Boolean TypeDef AssignOp UpdateStatement UpdateOp ExpressionStatement DeleteStatement del PassStatement pass BreakStatement break ContinueStatement continue ReturnStatement return YieldStatement PrintStatement RaiseStatement raise ImportStatement import as ScopeStatement global nonlocal AssertStatement assert TypeDefinition type TypeParamList TypeParam StatementGroup ; IfStatement Body elif WhileStatement while ForStatement TryStatement try except finally WithStatement with FunctionDefinition def ParamList AssignOp TypeDef ClassDefinition class DecoratedStatement Decorator At MatchStatement match MatchBody MatchClause case CapturePattern LiteralPattern ArithOp ArithOp AsPattern OrPattern LogicOp AttributePattern SequencePattern MappingPattern StarPattern ClassPattern PatternArgList KeywordPattern KeywordPattern Guard",maxTerm:277,context:AR,nodeProps:[["isolate",-5,4,71,72,73,77,""],["group",-15,6,85,87,88,90,92,94,96,98,99,100,102,105,108,110,"Statement Statement",-22,8,18,21,25,40,49,50,56,57,60,61,62,63,64,67,70,71,72,79,80,81,82,"Expression",-10,114,116,119,121,122,126,128,133,135,138,"Statement",-9,143,144,147,148,150,151,152,153,154,"Pattern"],["openedBy",23,"(",54,"[",58,"{"],["closedBy",24,")",55,"]",59,"}"]],propSources:[qR],skippedNodes:[0,4],repeatNodeCount:34,tokenData:"!2|~R!`OX%TXY%oY[%T[]%o]p%Tpq%oqr'ars)Yst*xtu%Tuv,dvw-hwx.Uxy/tyz0[z{0r{|2S|}2p}!O3W!O!P4_!P!Q:Z!Q!R;k!R![>_![!]Do!]!^Es!^!_FZ!_!`Gk!`!aHX!a!b%T!b!cIf!c!dJU!d!eK^!e!hJU!h!i!#f!i!tJU!t!u!,|!u!wJU!w!x!.t!x!}JU!}#O!0S#O#P&o#P#Q!0j#Q#R!1Q#R#SJU#S#T%T#T#UJU#U#VK^#V#YJU#Y#Z!#f#Z#fJU#f#g!,|#g#iJU#i#j!.t#j#oJU#o#p!1n#p#q!1s#q#r!2a#r#s!2f#s$g%T$g;'SJU;'S;=`KW<%lOJU`%YT&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%T`%lP;=`<%l%To%v]&n`%c_OX%TXY%oY[%T[]%o]p%Tpq%oq#O%T#O#P&o#P#o%T#p#q%T#r;'S%T;'S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%jR&n`O!_%T!_!`-Q!`#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%T~!2fO![~i!2mT%tX&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%T",tokenizers:[XR,CR,zR,ZR,0,1,2,3,4],topRules:{Script:[0,5]},specialized:[{term:221,get:e=>MR[e]||-1}],tokenPrec:7668}),x0=new HO,Ky=new Set(["Script","Body","FunctionDefinition","ClassDefinition","LambdaExpression","ForStatement","MatchClause"]);function ic(e){return(n,l,r)=>{if(r)return!1;let o=n.node.getChild("VariableName");return o&&l(o,e),!0}}const UR={FunctionDefinition:ic("function"),ClassDefinition:ic("class"),ForStatement(e,n,l){if(l){for(let r=e.node.firstChild;r;r=r.nextSibling)if(r.name=="VariableName")n(r,"variable");else if(r.name=="in")break}},ImportStatement(e,n){var l,r;let{node:o}=e,d=((l=o.firstChild)===null||l===void 0?void 0:l.name)=="from";for(let u=o.getChild("import");u;u=u.nextSibling)u.name=="VariableName"&&((r=u.nextSibling)===null||r===void 0?void 0:r.name)!="as"&&n(u,d?"variable":"namespace")},AssignStatement(e,n){for(let l=e.node.firstChild;l;l=l.nextSibling)if(l.name=="VariableName")n(l,"variable");else if(l.name==":"||l.name=="AssignOp")break},ParamList(e,n){for(let l=null,r=e.node.firstChild;r;r=r.nextSibling)r.name=="VariableName"&&(!l||!/\*|AssignOp/.test(l.name))&&n(r,"variable"),l=r},CapturePattern:ic("variable"),AsPattern:ic("variable"),__proto__:null};function Jy(e,n){let l=x0.get(n);if(l)return l;let r=[],o=!0;function d(u,f){let h=e.sliceString(u.from,u.to);r.push({label:h,type:f})}return n.cursor(Hc.IncludeAnonymous).iterate(u=>{if(u.name){let f=UR[u.name];if(f&&f(u,d,o)||!o&&Ky.has(u.name))return!1;o=!1}else if(u.to-u.from>8192){for(let f of Jy(e,u.node))r.push(f);return!1}}),x0.set(n,r),r}const g0=/^[\w\xa1-\uffff][\w\d\xa1-\uffff]*$/,eS=["String","FormatString","Comment","PropertyName"];function VR(e){let n=yn(e.state).resolveInner(e.pos,-1);if(eS.indexOf(n.name)>-1)return null;let l=n.name=="VariableName"||n.to-n.from<20&&g0.test(e.state.sliceDoc(n.from,n.to));if(!l&&!e.explicit)return null;let r=[];for(let o=n;o;o=o.parent)Ky.has(o.name)&&(r=r.concat(Jy(e.state.doc,o)));return{options:r,from:l?n.from:e.pos,validFor:g0}}const GR=["__annotations__","__builtins__","__debug__","__doc__","__import__","__name__","__loader__","__package__","__spec__","False","None","True"].map(e=>({label:e,type:"constant"})).concat(["ArithmeticError","AssertionError","AttributeError","BaseException","BlockingIOError","BrokenPipeError","BufferError","BytesWarning","ChildProcessError","ConnectionAbortedError","ConnectionError","ConnectionRefusedError","ConnectionResetError","DeprecationWarning","EOFError","Ellipsis","EncodingWarning","EnvironmentError","Exception","FileExistsError","FileNotFoundError","FloatingPointError","FutureWarning","GeneratorExit","IOError","ImportError","ImportWarning","IndentationError","IndexError","InterruptedError","IsADirectoryError","KeyError","KeyboardInterrupt","LookupError","MemoryError","ModuleNotFoundError","NameError","NotADirectoryError","NotImplemented","NotImplementedError","OSError","OverflowError","PendingDeprecationWarning","PermissionError","ProcessLookupError","RecursionError","ReferenceError","ResourceWarning","RuntimeError","RuntimeWarning","StopAsyncIteration","StopIteration","SyntaxError","SyntaxWarning","SystemError","SystemExit","TabError","TimeoutError","TypeError","UnboundLocalError","UnicodeDecodeError","UnicodeEncodeError","UnicodeError","UnicodeTranslateError","UnicodeWarning","UserWarning","ValueError","Warning","ZeroDivisionError"].map(e=>({label:e,type:"type"}))).concat(["bool","bytearray","bytes","classmethod","complex","float","frozenset","int","list","map","memoryview","object","range","set","staticmethod","str","super","tuple","type"].map(e=>({label:e,type:"class"}))).concat(["abs","aiter","all","anext","any","ascii","bin","breakpoint","callable","chr","compile","delattr","dict","dir","divmod","enumerate","eval","exec","exit","filter","format","getattr","globals","hasattr","hash","help","hex","id","input","isinstance","issubclass","iter","len","license","locals","max","min","next","oct","open","ord","pow","print","property","quit","repr","reversed","round","setattr","slice","sorted","sum","vars","zip"].map(e=>({label:e,type:"function"}))),DR=[tt("def ${name}(${params}):\n ${}",{label:"def",detail:"function",type:"keyword"}),tt("for ${name} in ${collection}:\n ${}",{label:"for",detail:"loop",type:"keyword"}),tt("while ${}:\n ${}",{label:"while",detail:"loop",type:"keyword"}),tt("try:\n ${}\nexcept ${error}:\n ${}",{label:"try",detail:"/ except block",type:"keyword"}),tt(`if \${}:
|
|
602
|
-
|
|
603
|
-
`,{label:"if",detail:"block",type:"keyword"}),tt("if ${}:\n ${}\nelse:\n ${}",{label:"if",detail:"/ else block",type:"keyword"}),tt("class ${name}:\n def __init__(self, ${params}):\n ${}",{label:"class",detail:"definition",type:"keyword"}),tt("import ${module}",{label:"import",detail:"statement",type:"keyword"}),tt("from ${module} import ${names}",{label:"from",detail:"import",type:"keyword"})],LR=L0(eS,W0(GR.concat(DR)));function iO(e){let{node:n,pos:l}=e,r=e.lineIndent(l,-1),o=null;for(;;){let d=n.childBefore(l);if(d)if(d.name=="Comment")l=d.from;else if(d.name=="Body"||d.name=="MatchBody")e.baseIndentFor(d)+e.unit<=r&&(o=d),n=d;else if(d.name=="MatchClause")n=d;else if(d.type.is("Statement"))n=d;else break;else break}return o}function oO(e,n){let l=e.baseIndentFor(n),r=e.lineAt(e.pos,-1),o=r.from+r.text.length;return/^\s*($|#)/.test(r.text)&&e.node.to<o+100&&!/\S/.test(e.state.sliceDoc(o,e.node.to))&&e.lineIndent(e.pos,-1)<=l||/^\s*(else:|elif |except |finally:|case\s+[^=:]+:)/.test(e.textAfter)&&e.lineIndent(e.pos,-1)>l?null:l+e.unit}const cO=Si.define({name:"python",parser:YR.configure({props:[nr.add({Body:e=>{var n;let l=/^\s*(#|$)/.test(e.textAfter)&&iO(e)||e.node;return(n=oO(e,l))!==null&&n!==void 0?n:e.continue()},MatchBody:e=>{var n;let l=iO(e);return(n=oO(e,l||e.node))!==null&&n!==void 0?n:e.continue()},IfStatement:e=>/^\s*(else:|elif )/.test(e.textAfter)?e.baseIndent:e.continue(),"ForStatement WhileStatement":e=>/^\s*else:/.test(e.textAfter)?e.baseIndent:e.continue(),TryStatement:e=>/^\s*(except[ :]|finally:|else:)/.test(e.textAfter)?e.baseIndent:e.continue(),MatchStatement:e=>/^\s*case /.test(e.textAfter)?e.baseIndent+e.unit:e.continue(),"TupleExpression ComprehensionExpression ParamList ArgList ParenthesizedExpression":mc({closing:")"}),"DictionaryExpression DictionaryComprehensionExpression SetExpression SetComprehensionExpression":mc({closing:"}"}),"ArrayExpression ArrayComprehensionExpression":mc({closing:"]"}),MemberExpression:e=>e.baseIndent+e.unit,"String FormatString":()=>null,Script:e=>{var n;let l=iO(e);return(n=l&&oO(e,l))!==null&&n!==void 0?n:e.continue()}}),Ds.add({"ArrayExpression DictionaryExpression SetExpression TupleExpression":Ic,Body:(e,n)=>({from:e.from+1,to:e.to-(e.to==n.doc.length?0:1)}),"String FormatString":(e,n)=>({from:n.doc.lineAt(e.from).to,to:e.to})})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"'''",'"""'],stringPrefixes:["f","fr","rf","r","u","b","br","rb","F","FR","RF","R","U","B","BR","RB"]},commentTokens:{line:"#"},indentOnInput:/^\s*([\}\]\)]|else:|elif |except |finally:|case\s+[^:]*:?)$/}});function WR(){return new Zs(cO,[cO.data.of({autocomplete:VR}),cO.data.of({autocomplete:LR})])}const oc={javascript:()=>RO({jsx:!0,typescript:!1}),typescript:()=>RO({jsx:!0,typescript:!0}),css:()=>Fv(),html:()=>py(),json:()=>Uz(),markdown:()=>$C(),python:()=>WR()},BR=Ll.theme({"&":{backgroundColor:"#24282f",color:"#bcc2cd",fontFamily:"var(--font-mono)",fontSize:"13px",height:"100%"},".cm-scroller":{overflow:"auto"},".cm-content":{caretColor:"#33afbc"},".cm-cursor":{borderLeftColor:"#33afbc"},".cm-gutters":{backgroundColor:"#24282f",borderRight:"1px solid #2c313a",color:"#505862"},".cm-activeLineGutter":{backgroundColor:"#2c313a"},".cm-activeLine":{backgroundColor:"rgba(44, 49, 58, 0.5)"},"&.cm-focused .cm-selectionBackground, .cm-selectionBackground":{backgroundColor:"rgba(51, 175, 188, 0.15)"}},{dark:!0});function b0({content:e,language:n,onChange:l,onSave:r}){const o=v.useRef(null),d=v.useRef(null),u=v.useRef(new sw),f=v.useRef(l),h=v.useRef(r);return f.current=l,h.current=r,v.useEffect(()=>{if(!o.current)return;const p=oc[n]||oc.javascript,g=yO.of([{key:"Mod-s",run:()=>{var y;return(y=h.current)==null||y.call(h),!0}}]),x=F0.create({doc:e||"",extensions:[rw(),iw(),ow(),cw(),dw(),uw(),fw(),yO.of([...Ow,...hw,...mw]),g,lw,BR,u.current.of(p()),Ll.updateListener.of(y=>{var Q;y.docChanged&&((Q=f.current)==null||Q.call(f,y.state.doc.toString()))})]}),b=new Ll({state:x,parent:o.current});return d.current=b,()=>{b.destroy(),d.current=null}},[]),v.useEffect(()=>{const p=d.current;if(!p)return;const g=p.state.doc.toString();e!==g&&p.dispatch({changes:{from:0,to:g.length,insert:e||""}})},[e]),v.useEffect(()=>{const p=d.current;if(!p)return;const g=oc[n]||oc.javascript;p.dispatch({effects:u.current.reconfigure(g())})},[n]),s.jsx("div",{ref:o,className:"w-full h-full overflow-hidden"})}const HR=["png","jpg","jpeg","gif","svg","webp","ico","bmp","avif"],tS=["mp4","webm","mov","avi","mkv","ogv"];function IR(e){var l;const n=(l=e.split(".").pop())==null?void 0:l.toLowerCase();return HR.includes(n)||tS.includes(n)}function FR({path:e}){var d;const n=(d=e.split(".").pop())==null?void 0:d.toLowerCase(),l=`/api/files/raw?path=${encodeURIComponent(e)}`,r=e.split("/").pop(),o=tS.includes(n);return s.jsxs("div",{className:"w-full h-full flex flex-col items-center justify-center bg-surface-0 p-8 gap-4",children:[s.jsxs("div",{className:"flex items-center gap-2 text-xs text-text-3 font-sans",children:[s.jsx(Ce,{children:n==null?void 0:n.toUpperCase()}),s.jsx("span",{className:"font-mono",children:r}),s.jsx("a",{href:l,target:"_blank",rel:"noopener",className:"text-accent hover:text-accent/80 transition-colors",children:s.jsx(Fl,{size:12})})]}),o?s.jsx("video",{src:l,controls:!0,className:"max-w-full max-h-[70vh] rounded-md border border-border"}):s.jsx("img",{src:l,alt:r,className:"max-w-full max-h-[70vh] rounded-md border border-border object-contain"})]})}function KR(e){var l;const n=(l=e==null?void 0:e.split(".").pop())==null?void 0:l.toLowerCase();return n==="html"||n==="htm"}function JR(){const e=B(j=>j.editorActiveFile),n=B(j=>j.editorFiles),l=B(j=>j.editorChangedFiles),r=B(j=>j.updateFileContent),o=B(j=>j.saveFile),d=B(j=>j.reloadFile),u=B(j=>j.dismissFileChange),[f,h]=v.useState(""),[p,g]=v.useState(!1),[x,b]=v.useState(0);v.useEffect(()=>{J.get("/files/root").then(j=>h(j.root||"")).catch(()=>{})},[]),v.useEffect(()=>{g(!1)},[e]);const y=e?n[e]:null,Q=e&&IR(e),w=e&&KR(e),k=e&&l[e];return s.jsxs("div",{className:"flex h-full",children:[s.jsx("div",{className:"w-60 flex-shrink-0 border-r border-border",children:s.jsx(x3,{rootDir:f})}),s.jsxs("div",{className:"flex-1 flex flex-col min-w-0",children:[s.jsx(g3,{}),s.jsxs("div",{className:"flex-1 relative min-h-0",children:[k&&s.jsxs("div",{className:"absolute top-0 left-0 right-0 z-10 flex items-center gap-2 px-4 py-2 bg-warning/10 border-b border-warning/20",children:[s.jsx(Ti,{size:14,className:"text-warning"}),s.jsx("span",{className:"text-xs text-warning font-sans flex-1",children:"File modified externally"}),s.jsxs(ve,{variant:"ghost",size:"sm",onClick:()=>d(e),children:[s.jsx(Qn,{size:12})," Reload"]}),s.jsxs(ve,{variant:"ghost",size:"sm",onClick:()=>u(e),children:[s.jsx(Qt,{size:12})," Dismiss"]})]}),!e&&s.jsx("div",{className:"w-full h-full flex items-center justify-center text-text-4 font-sans",children:s.jsxs("div",{className:"text-center space-y-2",children:[s.jsx(ds,{size:32,className:"mx-auto"}),s.jsx("p",{className:"text-sm",children:"Open a file from the tree"})]})}),e&&Q&&s.jsx(FR,{path:e}),e&&!Q&&w&&s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"absolute top-0 right-4 z-10 flex items-center gap-0.5 mt-2 bg-surface-2 border border-border-subtle rounded-md p-0.5",children:[s.jsxs("button",{onClick:()=>g(!1),className:oe("flex items-center gap-1.5 px-2.5 py-1 text-xs font-sans rounded cursor-pointer transition-colors",p?"text-text-3 hover:text-text-1":"bg-surface-4 text-text-0 font-medium"),children:[s.jsx(yT,{size:12})," Code"]}),s.jsxs("button",{onClick:()=>{g(!0),b(j=>j+1)},className:oe("flex items-center gap-1.5 px-2.5 py-1 text-xs font-sans rounded cursor-pointer transition-colors",p?"bg-surface-4 text-text-0 font-medium":"text-text-3 hover:text-text-1"),children:[s.jsx(Bs,{size:12})," Preview"]})]}),p?s.jsx("iframe",{src:`/api/files/raw?path=${encodeURIComponent(e)}`,className:"w-full h-full border-0",sandbox:"allow-scripts allow-same-origin",title:"HTML Preview"},x):y&&s.jsx(b0,{content:y.content,language:y.language,onChange:j=>r(e,j),onSave:()=>o(e)})]}),e&&!Q&&!w&&y&&s.jsx(b0,{content:y.content,language:y.language,onChange:j=>r(e,j),onSave:()=>o(e)})]})]})]})}function e_(){var z;const e=B(R=>R.connected),n=B(R=>R.agents),[l,r]=v.useState(null),[o,d]=v.useState([]),[u,f]=v.useState({constraints:[],discoveries:[],roles:[],specializations:null}),[h,p]=v.useState(!0),[g,x]=v.useState({tokens:[],cost:[],saved:[],efficiency:[],cache:[],inputOutput:[],agents:[],turns:[]}),b=v.useRef(0);v.useEffect(()=>{if(!e)return;let R=!0;async function Y(){try{const[C,T,I,Z,K,F]=await Promise.all([J.get("/dashboard"),J.get("/tokens/by-team").catch(()=>({teams:[]})),J.get("/memory/constraints").catch(()=>({constraints:[]})),J.get("/memory/discoveries?limit=20").catch(()=>({discoveries:[]})),J.get("/memory/handoff-chain").catch(()=>({roles:[]})),J.get("/memory/specializations").catch(()=>({perAgent:{},perProjectRole:{}}))]);if(!R)return;r(C),d((T==null?void 0:T.teams)||[]),f({constraints:(I==null?void 0:I.constraints)||[],discoveries:(Z==null?void 0:Z.discoveries)||[],roles:(K==null?void 0:K.roles)||[],specializations:F||{perAgent:{},perProjectRole:{}}}),p(!1),b.current=Date.now(),x(G=>{var Qe,me,be,ze,W,Se,ne,fe,Ne;const V=Date.now(),M=(ke,De)=>[...ke.slice(-59),{t:V,v:De||0}],N=((Qe=C.tokens)==null?void 0:Qe.totalTokens)||0,U=((me=C.tokens)==null?void 0:me.totalInputTokens)||0,ee=((be=C.tokens)==null?void 0:be.totalOutputTokens)||0,se=(((ze=C.agents)==null?void 0:ze.breakdown)||[]).filter(ke=>{var De;return((De=ke.quality)==null?void 0:De.score)!=null}),we=se.length>0?se.reduce((ke,De)=>ke+De.quality.score,0)/se.length:0;return{tokens:M(G.tokens,N),cost:M(G.cost,(W=C.tokens)==null?void 0:W.totalCostUsd),saved:M(G.saved,we),efficiency:M(G.efficiency,((Se=C.rotation)==null?void 0:Se.totalRotations)||0),cache:M(G.cache,(ne=C.tokens)==null?void 0:ne.cacheHitRate),inputOutput:M(G.inputOutput,ee>0?U/ee:0),agents:M(G.agents,((fe=C.agents)==null?void 0:fe.running)||0),turns:M(G.turns,(Ne=C.tokens)==null?void 0:Ne.totalTurns)}})}catch{R&&p(!1)}}Y();const X=setInterval(Y,4e3);return()=>{R=!1,clearInterval(X)}},[e]);const y=((z=l==null?void 0:l.agents)==null?void 0:z.breakdown)||[],Q=(l==null?void 0:l.routing)||null,w=(l==null?void 0:l.rotation)||null,k=(l==null?void 0:l.adaptive)||[],j=(l==null?void 0:l.journalist)||null,P=(w==null?void 0:w.rotating)||[];return{data:l,loading:h,agents:n,connected:e,kpiHistory:g,lastFetch:b.current,agentBreakdown:y,routing:Q,rotation:w,adaptive:k,journalist:j,rotating:P,teamBurn:o,memory:u}}const v0=v.memo(function({connected:n,runningCount:l,totalCount:r,uptime:o,lastFetch:d,activeTeam:u}){return s.jsxs("div",{className:"flex items-center gap-4 px-4 py-2 bg-surface-1 border-b border-border",children:[s.jsx("h2",{className:"text-xs font-semibold text-text-0 font-sans tracking-wide uppercase",children:"Command Center"}),u&&s.jsxs(s.Fragment,{children:[s.jsx("span",{className:"text-text-4",children:"/"}),s.jsx("span",{className:"text-xs font-mono text-text-2",children:u.name})]}),s.jsx("div",{className:"flex-1"}),n&&s.jsxs("div",{className:"flex items-center gap-3.5 text-xs font-mono text-text-2",children:[s.jsxs("span",{children:[s.jsx("span",{className:"text-text-1",children:l}),s.jsxs("span",{className:"text-text-3",children:["/",r]}),s.jsx("span",{className:"ml-1 text-text-3",children:"agents"})]}),o>0&&s.jsxs("span",{className:"text-text-3",children:["Up ",Pi(o)]}),d>0&&s.jsxs("span",{className:"flex items-center gap-1 text-text-4",children:[s.jsx(Qn,{size:9}),s.jsx("span",{children:jt(d)})]})]}),s.jsx(Ys,{status:n?"running":"crashed",size:"sm"})]})});function Bt(e,n){const l=parseInt(e.slice(1,3),16),r=parseInt(e.slice(3,5),16),o=parseInt(e.slice(5,7),16);return`rgba(${l},${r},${o},${n})`}const ue={surface0:"#1a1e25",surface4:"#2c313a",surface5:"#333842",text0:"#e6e6e6",text1:"#bcc2cd",text2:"#8b929e",text3:"#6e7681",text4:"#505862",accent:"#33afbc",success:"#4ae168",warning:"#e5c07b",danger:"#e06c75",info:"#61afef",purple:"#c678dd",orange:"#d19a66"};function t_({data:e,color:n=ue.accent,width:l=72,height:r=22}){if(!e||e.length<2)return s.jsx("div",{style:{width:l,height:r}});const o=e.map(g=>g.v),d=Math.min(...o),f=Math.max(...o)-d||1,h=e.map((g,x)=>{const b=x/(e.length-1)*l,y=r-(g.v-d)/f*(r-2)-1;return`${b},${y}`}).join(" "),p=`kpi-${n.replace("#","")}`;return s.jsxs("svg",{width:l,height:r,className:"flex-shrink-0",children:[s.jsx("defs",{children:s.jsxs("linearGradient",{id:p,x1:"0",y1:"0",x2:"0",y2:"1",children:[s.jsx("stop",{offset:"0%",stopColor:n,stopOpacity:"0.2"}),s.jsx("stop",{offset:"100%",stopColor:n,stopOpacity:"0"})]})}),s.jsx("polygon",{points:`0,${r} ${h} ${l},${r}`,fill:`url(#${p})`}),s.jsx("polyline",{points:h,fill:"none",stroke:n,strokeWidth:"1.5",strokeLinejoin:"round",strokeOpacity:"0.8"})]})}const n_=v.memo(function({label:n,value:l,sparkData:r,color:o=ue.accent,hint:d,className:u}){return s.jsxs("div",{className:oe("flex items-center gap-2.5 px-3 py-2.5 min-w-0","bg-surface-1",u),children:[s.jsxs("div",{className:"flex-1 min-w-0",children:[s.jsxs("div",{className:"text-2xs font-mono text-text-3 uppercase tracking-wider mb-0.5 truncate flex items-center gap-1",children:[n,d&&s.jsx(zc,{content:s.jsx("span",{className:"max-w-[220px] block leading-relaxed",children:d}),side:"bottom",children:s.jsx(Hl,{size:10,className:"text-text-4 hover:text-text-2 cursor-help flex-shrink-0 transition-colors"})})]}),s.jsx("div",{className:"text-base font-semibold font-mono text-text-0 tabular-nums leading-none",children:l})]}),s.jsx(t_,{data:r,color:o})]})});function a_({kpis:e}){return s.jsx("div",{className:"flex flex-wrap border-b border-border",style:{background:"var(--color-surface-0)"},children:e.map(n=>s.jsx(n_,{label:n.label,value:n.value,sparkData:n.sparkData,color:n.color,hint:n.hint,className:oe("flex-1 basis-[12.5%] min-w-[140px]","border-b border-r border-border")},n.label))})}const s_={actual:"ACT",estimated:"EST",local:"LOC"};function l_(e){if(!e||e==="auto"||e==="default")return"default";const n=e.match(/^claude-(opus|sonnet|haiku)-(\d+)-(\d+)/);return n?`${n[1][0].toUpperCase()}${n[1].slice(1)} ${n[2]}.${n[3]}`:e.startsWith("gemini-")?e.replace("gemini-","Gem ").replace("-preview",""):e.length>12?e.slice(0,12)+"...":e}const r_=v.memo(function({agent:n,isRotating:l}){const r=n.status==="running"||n.status==="starting",o=Math.round((n.contextUsage||0)*100),d=l?"#c678dd":bh(n.status),u=n.quality,f=(u==null?void 0:u.toolSuccessRate)!=null?Math.round(u.toolSuccessRate*100):null,h=n.rotationThreshold?Math.round(n.rotationThreshold*100):null,p=ns(n.role),g=o>80?ue.danger:o>60?ue.warning:ue.accent;return s.jsxs("div",{className:"px-3 pl-6 py-2 hover:bg-[rgba(51,175,188,0.06)] transition-colors space-y-1.5",children:[s.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[s.jsxs("span",{className:"relative flex-shrink-0 w-[6px] h-[6px]",children:[s.jsx("span",{className:"absolute inset-0 rounded-sm",style:{background:d}}),r&&s.jsx("span",{className:"absolute inset-[-2px] rounded-sm",style:{background:d,opacity:.15,animation:"node-pulse-bar 2s ease-in-out infinite"}})]}),s.jsx("div",{className:"text-xs font-semibold text-text-0 font-sans truncate leading-none flex-shrink-0 max-w-[80px]",children:n.name}),s.jsx("span",{className:"text-2xs font-mono font-semibold px-1.5 py-px rounded-sm flex-shrink-0 capitalize",style:{background:p.bg,color:p.text},children:(n.role||"").toLowerCase()}),s.jsx("span",{className:"text-2xs font-mono text-text-4 bg-surface-4 px-1 py-px rounded-sm flex-shrink-0 truncate max-w-[72px]",children:l_(n.model)}),s.jsx("div",{className:"flex-1"}),f!=null&&s.jsxs("span",{className:"text-2xs font-mono font-bold px-1 py-px rounded-sm flex-shrink-0",style:{color:f>=90?"#4ae168":f>=70?"#e5c07b":"#e06c75",background:f>=90?"rgba(74,225,104,0.1)":f>=70?"rgba(229,192,123,0.1)":"rgba(224,108,117,0.1)"},children:[f,"%"]}),n.costSource&&n.costSource!=="actual"&&s.jsx("span",{className:"text-2xs font-mono text-text-4 uppercase tracking-wider flex-shrink-0",children:s_[n.costSource]||""}),s.jsxs("div",{className:"text-right flex-shrink-0",children:[s.jsx("div",{className:"text-xs font-mono text-text-1 tabular-nums leading-none",children:Ie(n.tokens||0)}),(n.costUsd||0)>0&&s.jsx("div",{className:"text-2xs font-mono text-text-3 mt-0.5",children:us(n.costUsd)})]})]}),s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsxs("div",{className:"relative flex-1 h-[4px] rounded-full overflow-visible",style:{background:Bt(ue.accent,.12)},children:[s.jsx("div",{className:"absolute inset-y-0 left-0 rounded-full transition-all duration-700",style:{width:`${Math.max(o,1)}%`,background:g}}),h&&s.jsx("div",{className:"absolute top-[-2px] w-px h-[8px]",style:{left:`${h}%`,background:ue.purple},title:`Rotation at ${h}%`})]}),s.jsxs("span",{className:"text-2xs font-mono text-text-2 tabular-nums flex-shrink-0 w-7 text-right",children:[o,"%"]})]})]})});function i_({team:e,members:n,rotatingSet:l}){const[r,o]=v.useState(!0),d=n.filter(p=>p.status==="running"||p.status==="starting").length,u=d>0,f=n.reduce((p,g)=>p+(g.tokens||0),0),h=n.reduce((p,g)=>p+(g.costUsd||0),0);return s.jsxs("div",{children:[s.jsxs("button",{onClick:()=>o(p=>!p),className:"w-full flex items-center gap-2 px-3 py-1.5 text-left transition-colors hover:bg-[rgba(51,175,188,0.08)] bg-[rgba(51,175,188,0.05)]",style:{borderLeft:u?`2px solid ${ue.accent}`:"2px solid transparent"},children:[r?s.jsx(_n,{size:10,className:"text-text-4 flex-shrink-0"}):s.jsx(cs,{size:10,className:"text-text-4 flex-shrink-0"}),s.jsx("span",{className:"text-2xs font-mono font-semibold text-text-2 uppercase tracking-widest flex-1 truncate",children:e}),s.jsx("span",{className:"text-2xs font-mono text-text-3 tabular-nums",children:Ie(f)}),h>0&&s.jsx("span",{className:"text-2xs font-mono text-text-4 tabular-nums ml-1",children:us(h)}),s.jsxs("span",{className:"text-2xs font-mono tabular-nums flex-shrink-0 ml-1.5",style:{color:u?ue.accent:void 0},children:[d,"/",n.length]})]}),r&&n.map(p=>s.jsx(r_,{agent:p,isRotating:l.has(p.id)},p.id))]})}const o_=v.memo(function({agentBreakdown:n,rotating:l=[],teams:r=[]}){if(!(n!=null&&n.length))return s.jsx("div",{className:"flex-1 flex items-center justify-center text-xs text-text-3 font-mono p-4",children:"No agents"});const o={};for(const f of r)o[f.id]=f.name;const d={};for(const f of n){const h=f.teamId||"ungrouped";d[h]||(d[h]=[]),d[h].push(f)}const u=new Set(l);return s.jsx(Mn,{className:"flex-1",children:s.jsx("div",{className:"py-1",children:Object.entries(d).map(([f,h])=>s.jsx(i_,{team:o[f]||(f==="ungrouped"?"Ungrouped":f),members:h,rotatingSet:u},f))})})}),c_=v.memo(function({data:n}){const l=v.useRef(null),r=v.useRef(null),[o,d]=v.useState({width:0,height:0}),[u,f]=v.useState(null),{width:h,height:p}=o,g={top:28,right:12,bottom:8,left:12},x=Math.max(h-g.left-g.right,0),b=Math.max(p-g.top-g.bottom,0),y=v.useMemo(()=>!n||n.length<2?[]:n.slice(1).map((k,j)=>{const P=n[j],z=(k.t-P.t)/6e4,R=Math.max((k.tokens||0)-(P.tokens||0),0);return{burnRate:z>0?Math.round(R/z):0,cacheHitRate:k.cacheHitRate||0,running:k.running||0,agents:k.agents||0,t:k.t}}),[n]);v.useEffect(()=>{const k=l.current;if(!k)return;const j=new ResizeObserver(P=>{const{width:z,height:R}=P[0].contentRect;z>0&&R>0&&d({width:Math.floor(z),height:Math.floor(R)})});return j.observe(k),()=>j.disconnect()},[]);const Q=v.useCallback(k=>{const j=r.current;if(!j||!y.length||x<=0)return;const P=j.getBoundingClientRect(),z=k.clientX-P.left-g.left;if(z<0||z>x){f(null);return}const R=Math.round(z/x*(y.length-1));f({x:g.left+R/Math.max(y.length-1,1)*x,index:R})},[y,x,g.left]),w=v.useCallback(()=>f(null),[]);return v.useEffect(()=>{const k=r.current;if(!k||!y.length||h<=0||p<=0||x<=0||b<=0)return;const j=k.getContext("2d"),P=window.devicePixelRatio||1;k.width=h*P,k.height=p*P,j.scale(P,P),j.clearRect(0,0,h,p);const z=y.map(N=>N.burnRate),R=y.map(N=>N.cacheHitRate),Y=y.map(N=>N.running),X=Math.max(...z,100),C=Math.max(...Y,1),T=N=>g.left+N/Math.max(y.length-1,1)*x,I=N=>g.top+b-N/X*b,Z=N=>g.top+b-N*b,K=Math.max(x/y.length-1,2);for(let N=0;N<y.length;N++){const U=Y[N];if(U<=0)continue;const ee=U/C*b*.3,de=T(N)-K/2,se=g.top+b-ee;j.fillStyle=Bt(ue.surface5,.5),j.fillRect(de,se,K,ee)}j.setLineDash([2,4]),j.strokeStyle=Bt(ue.text4,.2),j.lineWidth=1;for(let N=1;N<=3;N++){const U=g.top+b/4*N;j.beginPath(),j.moveTo(g.left,U),j.lineTo(g.left+x,U),j.stroke()}j.setLineDash([]),j.font="9px 'JetBrains Mono Variable', monospace",j.textAlign="left",j.fillStyle=Bt(ue.text3,.5),j.fillText(`${Ie(X)}/m`,g.left+4,g.top+10),j.fillText(`${Ie(Math.round(X/2))}/m`,g.left+4,g.top+b/2+4),j.beginPath(),j.moveTo(g.left,g.top+b);for(let N=0;N<y.length;N++)j.lineTo(T(N),I(z[N]));j.lineTo(T(y.length-1),g.top+b),j.closePath();const F=j.createLinearGradient(0,g.top,0,g.top+b);F.addColorStop(0,Bt(ue.accent,.2)),F.addColorStop(.7,Bt(ue.accent,.04)),F.addColorStop(1,Bt(ue.accent,0)),j.fillStyle=F,j.fill(),j.beginPath(),j.strokeStyle=ue.accent,j.lineWidth=1.5,j.lineJoin="round";for(let N=0;N<y.length;N++){const U=T(N),ee=I(z[N]);N===0?j.moveTo(U,ee):j.lineTo(U,ee)}j.stroke();const G=R.some(N=>N>0);if(G){j.beginPath(),j.strokeStyle=Bt(ue.info,.45),j.lineWidth=1,j.lineJoin="round",j.setLineDash([2,3]);for(let N=0;N<y.length;N++){const U=T(N),ee=Z(R[N]);N===0?j.moveTo(U,ee):j.lineTo(U,ee)}j.stroke(),j.setLineDash([])}j.font="9px 'Inter Variable', sans-serif",j.textAlign="right";let V=h-g.right-4;const M=14;if(G&&(j.fillStyle=Bt(ue.info,.5),j.fillText("Cache %",V,M),V-=j.measureText("Cache %").width+4,j.beginPath(),j.arc(V,M-3,2.5,0,Math.PI*2),j.fill(),V-=14),j.fillStyle=Bt(ue.surface5,.7),j.fillText("Agents",V,M),V-=j.measureText("Agents").width+4,j.beginPath(),j.arc(V,M-3,2.5,0,Math.PI*2),j.fill(),V-=14,j.fillStyle=ue.accent,j.fillText("Burn Rate",V,M),V-=j.measureText("Burn Rate").width+4,j.beginPath(),j.arc(V,M-3,2.5,0,Math.PI*2),j.fill(),u&&u.index>=0&&u.index<y.length){const N=u.x,U=y[u.index];j.beginPath(),j.moveTo(N,g.top),j.lineTo(N,g.top+b),j.strokeStyle=Bt(ue.text1,.15),j.lineWidth=1,j.stroke();const ee=I(U.burnRate);j.beginPath(),j.arc(N,ee,3,0,Math.PI*2),j.fillStyle=ue.accent,j.fill();const de=[{label:"Burn",value:`${Ie(U.burnRate)}/m`,color:ue.accent},{label:"Cache",value:xn(U.cacheHitRate*100),color:ue.info},{label:"Agents",value:`${U.running}/${U.agents}`,color:ue.text2}],se=104,we=de.length*16+12;let Qe=N+12;Qe+se>h-8&&(Qe=N-se-12);const me=Math.max(g.top,ee-we/2);j.fillStyle=Bt(ue.surface0,.92),j.beginPath(),j.roundRect(Qe,me,se,we,4),j.fill(),j.strokeStyle=Bt(ue.text4,.2),j.lineWidth=1,j.stroke(),j.textAlign="left",de.forEach((be,ze)=>{const W=me+14+ze*16;j.beginPath(),j.arc(Qe+8,W-3,2,0,Math.PI*2),j.fillStyle=be.color,j.fill(),j.font="8px 'Inter Variable', sans-serif",j.fillStyle=ue.text3,j.fillText(be.label,Qe+14,W),j.font="9px 'JetBrains Mono Variable', monospace",j.fillStyle=ue.text0,j.textAlign="right",j.fillText(be.value,Qe+se-8,W),j.textAlign="left"})}},[y,h,p,u,x,b,g]),s.jsx("div",{ref:l,className:"absolute inset-0",children:h>0&&p>0&&s.jsx("canvas",{ref:r,style:{width:h,height:p},className:"block cursor-crosshair",onMouseMove:Q,onMouseLeave:w})})}),d_=v.memo(function({cacheRead:n=0,cacheCreation:l=0,totalInput:r=0,size:o=140}){const d=v.useRef(null),u=n+l,f=u,h=u>0?n/u*100:0;return v.useEffect(()=>{const p=d.current;if(!p)return;const g=window.devicePixelRatio||1;p.width=o*g,p.height=o*g;const x=p.getContext("2d");x.scale(g,g),x.clearRect(0,0,o,o);const b=o/2,y=o/2,Q=(o-12)/2,w=5,k=135*Math.PI/180,j=405*Math.PI/180,P=j-k;if(x.beginPath(),x.arc(b,y,Q,k,j),x.strokeStyle=ue.surface4,x.lineWidth=w,x.lineCap="round",x.stroke(),f>0){const z=n/f,R=l/f;if(z>0){const Y=k+P*z;x.beginPath(),x.arc(b,y,Q,k,Y),x.strokeStyle=ue.accent,x.lineWidth=w,x.lineCap="round",x.stroke()}if(R>0){const Y=k+P*z,X=Y+P*R;x.beginPath(),x.arc(b,y,Q,Y,X),x.strokeStyle=ue.purple,x.lineWidth=w,x.lineCap="butt",x.stroke()}}x.textAlign="center",x.textBaseline="middle",x.font=`600 ${o*.2}px 'JetBrains Mono Variable', monospace`,x.fillStyle=ue.text0,x.fillText(`${Math.round(h)}%`,b,y-3),x.font=`500 ${o*.08}px 'JetBrains Mono Variable', monospace`,x.fillStyle=ue.text3,x.fillText("CACHE",b,y+o*.13)},[n,l,r,o,f,h]),s.jsxs("div",{className:"flex flex-col items-center justify-center h-full px-3 py-3",children:[s.jsx("canvas",{ref:d,className:"flex-shrink-0",style:{width:o,height:o}}),s.jsxs("div",{className:"w-full mt-3 space-y-1.5 max-w-[160px]",children:[s.jsx(dO,{color:ue.accent,label:"Read",value:Ie(n)}),s.jsx(dO,{color:ue.purple,label:"Create",value:Ie(l)}),s.jsx(dO,{color:ue.surface5,label:"Miss",value:Ie(Math.max(r-n-l,0))})]})]})});function dO({color:e,label:n,value:l}){return s.jsxs("div",{className:"flex items-center gap-2 text-xs font-mono",children:[s.jsx("span",{className:"w-1.5 h-1.5 rounded-full flex-shrink-0",style:{background:e}}),s.jsx("span",{className:"text-text-3 uppercase tracking-wider flex-1",children:n}),s.jsx("span",{className:"text-text-1 tabular-nums",children:l})]})}const y0={heavy:ue.danger,medium:ue.warning,light:ue.success},S0={heavy:"Heavy",medium:"Medium",light:"Light"},u_=v.memo(function({routing:n,agentBreakdown:l}){if(!n)return null;const{byTier:r={},totalDecisions:o=0,autoRoutedCount:d=0}=n,u=["heavy","medium","light"],f=u.reduce((x,b)=>x+(r[b]||0),0),h={};for(const x of l||[]){const b=x.model||"default";h[b]||(h[b]={tokens:0,agents:0}),h[b].tokens+=x.tokens||0,h[b].agents+=1}const p=Object.entries(h).sort((x,b)=>b[1].tokens-x[1].tokens),g=p.length>0?p[0][1].tokens:0;return s.jsxs("div",{className:"flex flex-col h-full px-3 py-3 overflow-y-auto",children:[f>0&&s.jsxs("div",{className:"space-y-1.5 mb-3",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("span",{className:"text-2xs font-mono text-text-3 uppercase tracking-wider",children:"Tier Distribution"}),s.jsxs("span",{className:"text-2xs font-mono text-text-4 ml-auto tabular-nums",children:[Ie(f)," decisions"]})]}),s.jsx("div",{className:"h-[6px] bg-surface-4 rounded-full overflow-hidden flex",children:u.map(x=>{const b=r[x]||0;if(b===0)return null;const y=b/f*100;return s.jsx("div",{className:"h-full transition-all duration-500",style:{width:`${y}%`,background:y0[x]},title:`${S0[x]}: ${b} (${Math.round(y)}%)`},x)})}),s.jsx("div",{className:"flex items-center gap-3",children:u.map(x=>{const b=r[x]||0;if(b===0)return null;const y=f>0?b/f*100:0;return s.jsxs("div",{className:"flex items-center gap-1.5",children:[s.jsx("span",{className:"w-1.5 h-1.5 rounded-full flex-shrink-0",style:{background:y0[x]}}),s.jsx("span",{className:"text-2xs font-mono text-text-2",children:S0[x]}),s.jsx("span",{className:"text-2xs font-mono text-text-4 tabular-nums",children:xn(y)})]},x)})})]}),p.length>0&&s.jsxs("div",{className:"space-y-1.5 flex-1",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("span",{className:"text-2xs font-mono text-text-3 uppercase tracking-wider",children:"Models in Use"}),d>0&&s.jsxs("span",{className:"text-2xs font-mono text-text-4 ml-auto",children:[d," auto"]})]}),s.jsx("div",{className:"space-y-1.5",children:p.map(([x,b])=>{const y=g>0?b.tokens/g*100:0;return s.jsxs("div",{className:"space-y-0.5",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("span",{className:"text-xs font-mono text-text-1 flex-1 truncate",children:f_(x)}),s.jsxs("span",{className:"text-2xs font-mono text-text-3 tabular-nums",children:[b.agents," agent",b.agents!==1?"s":""]}),s.jsx("span",{className:"text-xs font-mono text-text-1 tabular-nums",children:Ie(b.tokens)})]}),s.jsx("div",{className:"h-[3px] bg-surface-4 rounded-full overflow-hidden",children:s.jsx("div",{className:"h-full rounded-full transition-all duration-500",style:{width:`${Math.max(y,2)}%`,background:ue.accent}})})]},x)})})]}),f===0&&p.length===0&&s.jsx("div",{className:"flex-1 flex items-center justify-center text-xs text-text-3 font-mono",children:"No routing data"})]})});function f_(e){if(!e||e==="auto"||e==="default")return"Default";const n=e.match(/^claude-(opus|sonnet|haiku)-(\d+)-(\d+)/);return n?`${n[1][0].toUpperCase()}${n[1].slice(1)} ${n[2]}.${n[3]}`:e.startsWith("gemini-")?e.replace("gemini-","Gemini ").replace("-preview",""):e}function O_(e){const n=e+"CollectionProvider",[l,r]=Ls(n),[o,d]=l(n,{collectionRef:{current:null},itemMap:new Map}),u=w=>{const{scope:k,children:j}=w,P=Ha.useRef(null),z=Ha.useRef(new Map).current;return s.jsx(o,{scope:k,itemMap:z,collectionRef:P,children:j})};u.displayName=n;const f=e+"CollectionSlot",h=wc(f),p=Ha.forwardRef((w,k)=>{const{scope:j,children:P}=w,z=d(f,j),R=dt(k,z.collectionRef);return s.jsx(h,{ref:R,children:P})});p.displayName=f;const g=e+"CollectionItemSlot",x="data-radix-collection-item",b=wc(g),y=Ha.forwardRef((w,k)=>{const{scope:j,children:P,...z}=w,R=Ha.useRef(null),Y=dt(k,R),X=d(g,j);return Ha.useEffect(()=>(X.itemMap.set(R,{ref:R,...z}),()=>void X.itemMap.delete(R))),s.jsx(b,{[x]:"",ref:Y,children:P})});y.displayName=g;function Q(w){const k=d(e+"CollectionConsumer",w);return Ha.useCallback(()=>{const P=k.collectionRef.current;if(!P)return[];const z=Array.from(P.querySelectorAll(`[${x}]`));return Array.from(k.itemMap.values()).sort((X,C)=>z.indexOf(X.ref.current)-z.indexOf(C.ref.current))},[k.collectionRef,k.itemMap])}return[{Provider:u,Slot:p,ItemSlot:y},Q,r]}var uO="rovingFocusGroup.onEntryFocus",h_={bubbles:!1,cancelable:!0},zi="RovingFocusGroup",[UO,nS,m_]=O_(zi),[p_,aS]=Ls(zi,[m_]),[x_,g_]=p_(zi),sS=v.forwardRef((e,n)=>s.jsx(UO.Provider,{scope:e.__scopeRovingFocusGroup,children:s.jsx(UO.Slot,{scope:e.__scopeRovingFocusGroup,children:s.jsx(b_,{...e,ref:n})})}));sS.displayName=zi;var b_=v.forwardRef((e,n)=>{const{__scopeRovingFocusGroup:l,orientation:r,loop:o=!1,dir:d,currentTabStopId:u,defaultCurrentTabStopId:f,onCurrentTabStopIdChange:h,onEntryFocus:p,preventScrollOnEntryFocus:g=!1,...x}=e,b=v.useRef(null),y=dt(n,b),Q=vh(d),[w,k]=td({prop:u,defaultProp:f??null,onChange:h,caller:zi}),[j,P]=v.useState(!1),z=At(p),R=nS(l),Y=v.useRef(!1),[X,C]=v.useState(0);return v.useEffect(()=>{const T=b.current;if(T)return T.addEventListener(uO,z),()=>T.removeEventListener(uO,z)},[z]),s.jsx(x_,{scope:l,orientation:r,dir:Q,loop:o,currentTabStopId:w,onItemFocus:v.useCallback(T=>k(T),[k]),onItemShiftTab:v.useCallback(()=>P(!0),[]),onFocusableItemAdd:v.useCallback(()=>C(T=>T+1),[]),onFocusableItemRemove:v.useCallback(()=>C(T=>T-1),[]),children:s.jsx(Je.div,{tabIndex:j||X===0?-1:0,"data-orientation":r,...x,ref:y,style:{outline:"none",...e.style},onMouseDown:Ue(e.onMouseDown,()=>{Y.current=!0}),onFocus:Ue(e.onFocus,T=>{const I=!Y.current;if(T.target===T.currentTarget&&I&&!j){const Z=new CustomEvent(uO,h_);if(T.currentTarget.dispatchEvent(Z),!Z.defaultPrevented){const K=R().filter(N=>N.focusable),F=K.find(N=>N.active),G=K.find(N=>N.id===w),M=[F,G,...K].filter(Boolean).map(N=>N.ref.current);iS(M,g)}}Y.current=!1}),onBlur:Ue(e.onBlur,()=>P(!1))})})}),lS="RovingFocusGroupItem",rS=v.forwardRef((e,n)=>{const{__scopeRovingFocusGroup:l,focusable:r=!0,active:o=!1,tabStopId:d,children:u,...f}=e,h=Yl(),p=d||h,g=g_(lS,l),x=g.currentTabStopId===p,b=nS(l),{onFocusableItemAdd:y,onFocusableItemRemove:Q,currentTabStopId:w}=g;return v.useEffect(()=>{if(r)return y(),()=>Q()},[r,y,Q]),s.jsx(UO.ItemSlot,{scope:l,id:p,focusable:r,active:o,children:s.jsx(Je.span,{tabIndex:x?0:-1,"data-orientation":g.orientation,...f,ref:n,onMouseDown:Ue(e.onMouseDown,k=>{r?g.onItemFocus(p):k.preventDefault()}),onFocus:Ue(e.onFocus,()=>g.onItemFocus(p)),onKeyDown:Ue(e.onKeyDown,k=>{if(k.key==="Tab"&&k.shiftKey){g.onItemShiftTab();return}if(k.target!==k.currentTarget)return;const j=S_(k,g.orientation,g.dir);if(j!==void 0){if(k.metaKey||k.ctrlKey||k.altKey||k.shiftKey)return;k.preventDefault();let z=b().filter(R=>R.focusable).map(R=>R.ref.current);if(j==="last")z.reverse();else if(j==="prev"||j==="next"){j==="prev"&&z.reverse();const R=z.indexOf(k.currentTarget);z=g.loop?Q_(z,R+1):z.slice(R+1)}setTimeout(()=>iS(z))}}),children:typeof u=="function"?u({isCurrentTabStop:x,hasTabStop:w!=null}):u})})});rS.displayName=lS;var v_={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function y_(e,n){return n!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function S_(e,n,l){const r=y_(e.key,l);if(!(n==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(n==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return v_[r]}function iS(e,n=!1){const l=document.activeElement;for(const r of e)if(r===l||(r.focus({preventScroll:n}),document.activeElement!==l))return}function Q_(e,n){return e.map((l,r)=>e[(n+r)%e.length])}var j_=sS,w_=rS,ud="Tabs",[k_]=Ls(ud,[aS]),oS=aS(),[$_,Eh]=k_(ud),cS=v.forwardRef((e,n)=>{const{__scopeTabs:l,value:r,onValueChange:o,defaultValue:d,orientation:u="horizontal",dir:f,activationMode:h="automatic",...p}=e,g=vh(f),[x,b]=td({prop:r,onChange:o,defaultProp:d??"",caller:ud});return s.jsx($_,{scope:l,baseId:Yl(),value:x,onValueChange:b,orientation:u,dir:g,activationMode:h,children:s.jsx(Je.div,{dir:g,"data-orientation":u,...p,ref:n})})});cS.displayName=ud;var dS="TabsList",uS=v.forwardRef((e,n)=>{const{__scopeTabs:l,loop:r=!0,...o}=e,d=Eh(dS,l),u=oS(l);return s.jsx(j_,{asChild:!0,...u,orientation:d.orientation,dir:d.dir,loop:r,children:s.jsx(Je.div,{role:"tablist","aria-orientation":d.orientation,...o,ref:n})})});uS.displayName=dS;var fS="TabsTrigger",OS=v.forwardRef((e,n)=>{const{__scopeTabs:l,value:r,disabled:o=!1,...d}=e,u=Eh(fS,l),f=oS(l),h=pS(u.baseId,r),p=xS(u.baseId,r),g=r===u.value;return s.jsx(w_,{asChild:!0,...f,focusable:!o,active:g,children:s.jsx(Je.button,{type:"button",role:"tab","aria-selected":g,"aria-controls":p,"data-state":g?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:h,...d,ref:n,onMouseDown:Ue(e.onMouseDown,x=>{!o&&x.button===0&&x.ctrlKey===!1?u.onValueChange(r):x.preventDefault()}),onKeyDown:Ue(e.onKeyDown,x=>{[" ","Enter"].includes(x.key)&&u.onValueChange(r)}),onFocus:Ue(e.onFocus,()=>{const x=u.activationMode!=="manual";!g&&!o&&x&&u.onValueChange(r)})})})});OS.displayName=fS;var hS="TabsContent",mS=v.forwardRef((e,n)=>{const{__scopeTabs:l,value:r,forceMount:o,children:d,...u}=e,f=Eh(hS,l),h=pS(f.baseId,r),p=xS(f.baseId,r),g=r===f.value,x=v.useRef(g);return v.useEffect(()=>{const b=requestAnimationFrame(()=>x.current=!1);return()=>cancelAnimationFrame(b)},[]),s.jsx(Sn,{present:o||g,children:({present:b})=>s.jsx(Je.div,{"data-state":g?"active":"inactive","data-orientation":f.orientation,role:"tabpanel","aria-labelledby":h,hidden:!b,id:p,tabIndex:0,...u,ref:n,style:{...e.style,animationDuration:x.current?"0s":void 0},children:b&&d})})});mS.displayName=hS;function pS(e,n){return`${e}-trigger-${n}`}function xS(e,n){return`${e}-content-${n}`}var T_=cS,N_=uS,P_=OS,z_=mS;function gS({children:e,...n}){return s.jsx(T_,{...n,children:e})}function bS({children:e,className:n,...l}){return s.jsx(N_,{className:oe("flex items-center gap-0 border-b border-border-subtle",n),...l,children:e})}function As({children:e,className:n,...l}){return s.jsx(P_,{className:oe("px-3 py-2 text-sm font-medium font-sans text-text-2","border-b-2 border-transparent","hover:text-text-0 hover:bg-surface-5/50","data-[state=active]:text-text-0 data-[state=active]:border-accent","transition-colors duration-100 cursor-pointer select-none","focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-accent",n),...l,children:e})}function Xs({children:e,className:n,...l}){return s.jsx(z_,{className:oe("flex-1 min-h-0",n),...l,children:e})}function Q0({data:e,color:n=ue.accent,width:l=60,height:r=16}){if(!e||e.length<2)return s.jsx("div",{style:{width:l,height:r}});const o=Array.isArray(e[0])?e:e.map(p=>typeof p=="number"?p:p.v),d=Math.min(...o),f=Math.max(...o)-d||1,h=o.map((p,g)=>{const x=g/(o.length-1)*l,b=r-(p-d)/f*(r-2)-1;return`${x},${b}`}).join(" ");return s.jsx("svg",{width:l,height:r,className:"flex-shrink-0",children:s.jsx("polyline",{points:h,fill:"none",stroke:n,strokeWidth:"1",strokeLinejoin:"round",strokeOpacity:"0.7"})})}function Nn({text:e,side:n="bottom"}){return s.jsx(zc,{content:s.jsx("span",{className:"max-w-[220px] block leading-relaxed",children:e}),side:n,children:s.jsx(Hl,{size:10,className:"text-text-4 hover:text-text-2 cursor-help flex-shrink-0 transition-colors inline-block ml-1"})})}function qh(e){return e==null?ue.text3:e>=70?"#4ae168":e>=40?"#e5c07b":"#e06c75"}function Fa({label:e,value:n,danger:l}){return n==null||n===0?null:s.jsxs("span",{className:"text-2xs font-mono px-1.5 py-px rounded-sm bg-surface-4 text-text-3",children:[e,": ",s.jsx("span",{style:{color:l?"#e06c75":ue.text1},children:n})]})}function C_({score:e}){const n=Math.max(0,Math.min(100,e||0)),l=qh(e);return s.jsx("div",{className:"h-1 rounded-full overflow-hidden flex-1",style:{background:"rgba(51,175,188,0.08)"},children:s.jsx("div",{className:"h-full rounded-full transition-all duration-700",style:{width:`${n}%`,background:l}})})}function fO({label:e,value:n,total:l,color:r}){const o=l>0?n/l*100:0;return s.jsxs("div",{className:"space-y-1",children:[s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsx("span",{className:"text-xs font-mono text-text-2",children:e}),s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsxs("span",{className:"text-xs font-mono font-semibold tabular-nums",style:{color:r},children:[o>=1?Math.round(o):o>0?o.toFixed(1):0,"%"]}),s.jsx("span",{className:"text-2xs font-mono text-text-3 tabular-nums w-10 text-right",children:Ie(n)})]})]}),s.jsx("div",{className:"h-[7px] rounded-full overflow-hidden",style:{background:"rgba(51,175,188,0.08)"},children:s.jsx("div",{className:"h-full rounded-full transition-all duration-500",style:{width:`${Math.min(o,100)}%`,background:r}})})]})}function R_({tokens:e,rotation:n,agentBreakdown:l}){var b,y,Q;const r=((n==null?void 0:n.history)||[]).slice(-10).reverse(),o=(n==null?void 0:n.liveScores)||{},d=(l||[]).filter(w=>w.status==="running"),u=l||[],f=u.filter(w=>{var k;return((k=w.quality)==null?void 0:k.score)!=null}),h=f.length>0?Math.round(f.reduce((w,k)=>w+k.quality.score,0)/f.length):null,p=u.filter(w=>w.status==="completed"||w.status==="stopped").length,g=u.filter(w=>w.status==="crashed").length,x=p+g>0?Math.round(p/(p+g)*100):100;return s.jsxs("div",{className:"p-3 space-y-4",children:[s.jsxs("div",{className:"grid grid-cols-4 gap-2",children:[s.jsxs("div",{className:"bg-surface-0 rounded p-2.5",children:[s.jsxs("div",{className:"text-2xs font-mono text-text-3 uppercase tracking-wider mb-1 flex items-center",children:["Quality",s.jsx(Nn,{text:"Average session quality score (0-100). Based on error rate, tool failures, repetitions, and file churn. Below 40 triggers auto-rotation to prevent wasted tokens."})]}),s.jsx("div",{className:"text-base font-mono font-bold text-text-1 tabular-nums leading-none",children:h??"—"})]}),s.jsxs("div",{className:"bg-surface-0 rounded p-2.5",children:[s.jsxs("div",{className:"text-2xs font-mono text-text-3 uppercase tracking-wider mb-1 flex items-center",children:["Rotations",s.jsx(Nn,{text:"Context rotations: quality-based (q), context threshold (c), and natural compactions (n) from provider-managed context resets. Each rotation preserves progress via a journalist handoff brief."})]}),s.jsx("div",{className:"text-base font-mono font-bold text-text-1 tabular-nums leading-none",children:(n==null?void 0:n.totalRotations)||0}),((n==null?void 0:n.qualityRotations)>0||(n==null?void 0:n.contextRotations)>0||(n==null?void 0:n.naturalCompactions)>0)&&s.jsxs("div",{className:"text-2xs font-mono text-text-4 mt-0.5",children:[n.qualityRotations||0,"q / ",n.contextRotations||0,"c / ",n.naturalCompactions||0,"n"]})]}),s.jsxs("div",{className:"bg-surface-0 rounded p-2.5",children:[s.jsxs("div",{className:"text-2xs font-mono text-text-3 uppercase tracking-wider mb-1 flex items-center",children:["Cache",s.jsx(Nn,{text:"Prompt cache hit rate. Cache reads are ~90% cheaper than regular input tokens. Managed by your AI provider — GROOVE tracks it, doesn't control it."})]}),s.jsx("div",{className:"text-base font-mono font-bold text-text-1 tabular-nums leading-none",children:xn(((e==null?void 0:e.cacheHitRate)||0)*100)})]}),s.jsxs("div",{className:"bg-surface-0 rounded p-2.5",children:[s.jsxs("div",{className:"text-2xs font-mono text-text-3 uppercase tracking-wider mb-1 flex items-center",children:["Success",s.jsx(Nn,{text:"Agent completion rate. Completed agents vs. crashed agents. High success rate means agents are finishing tasks without errors."})]}),s.jsxs("div",{className:"text-base font-mono font-bold text-text-1 tabular-nums leading-none",children:[x,"%"]})]})]}),d.length>0&&s.jsxs("div",{children:[s.jsx("div",{className:"text-2xs font-mono text-text-3 uppercase tracking-wider mb-2",children:"Live Agent Quality"}),s.jsx("div",{className:"space-y-2",children:d.map(w=>{const k=w.quality||{},j=o[w.id],P=(j==null?void 0:j.score)??k.score,z=ns(w.role);return s.jsxs("div",{className:"bg-surface-0 rounded p-2.5",children:[s.jsxs("div",{className:"flex items-center gap-2 mb-1.5",children:[s.jsx("span",{className:"text-2xs font-mono font-semibold capitalize px-1.5 py-px rounded-sm",style:{background:z.bg,color:z.text},children:w.role}),s.jsx("span",{className:"text-xs font-mono text-text-1 truncate flex-1",children:w.name}),s.jsx("span",{className:"text-sm font-mono font-bold tabular-nums",style:{color:qh(P)},children:P??"—"})]}),s.jsx(C_,{score:P}),s.jsxs("div",{className:"flex flex-wrap gap-1.5 mt-1.5",children:[s.jsx(Fa,{label:"Errors",value:k.errorCount,danger:!0}),s.jsx(Fa,{label:"Reps",value:k.repetitions,danger:!0}),s.jsx(Fa,{label:"Churn",value:k.fileChurn,danger:!0}),s.jsx(Fa,{label:"Tools",value:k.toolCalls}),s.jsx(Fa,{label:"Files",value:k.filesWritten}),k.toolCalls>0&&s.jsxs("span",{className:"text-2xs font-mono px-1.5 py-px rounded-sm bg-surface-4 text-text-3",children:["Success: ",s.jsxs("span",{style:{color:k.toolSuccessRate>=.8?"#4ae168":"#e5c07b"},children:[Math.round(k.toolSuccessRate*100),"%"]})]}),k.eventCount>0&&s.jsxs("span",{className:"text-2xs font-mono px-1.5 py-px rounded-sm bg-surface-4 text-text-3",children:["Events: ",s.jsx("span",{className:"text-text-2",children:k.eventCount})]})]})]},w.id)})})]}),((b=e==null?void 0:e.internalOverhead)==null?void 0:b.tokens)>0&&s.jsxs("div",{children:[s.jsxs("div",{className:"flex items-center justify-between mb-2",children:[s.jsxs("span",{className:"text-2xs font-mono text-text-3 uppercase tracking-wider flex items-center",children:["GROOVE Overhead",s.jsx(Nn,{text:"Tokens consumed by GROOVE's own coordination: the Journalist (synthesis), PM (approval gates), Planner, Task Negotiator, Gateway, and user Q&A. Previously invisible — now tracked for honest ROI."})]}),s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsxs("span",{className:"text-2xs font-mono text-text-2 tabular-nums",children:[Ie(e.internalOverhead.tokens)," tokens"]}),s.jsx("span",{className:"text-2xs font-mono text-text-3 tabular-nums",children:us(e.internalOverhead.costUsd||0)}),e.totalTokens>0&&s.jsxs("span",{className:"text-2xs font-mono font-semibold tabular-nums",style:{color:ue.purple},children:[Math.round(e.internalOverhead.tokens/e.totalTokens*100),"%"]})]})]}),s.jsx("div",{className:"grid grid-cols-3 gap-1.5",children:Object.entries(e.internalOverhead.components||{}).sort((w,k)=>(k[1].tokens||0)-(w[1].tokens||0)).slice(0,6).map(([w,k])=>{const j=w.replace(/^__|__$/g,"").replace(/_/g," ");return s.jsxs("div",{className:"bg-surface-0 rounded px-2 py-1.5",children:[s.jsx("div",{className:"text-2xs font-mono text-text-3 uppercase tracking-wider truncate",children:j}),s.jsx("div",{className:"text-xs font-mono text-text-1 tabular-nums font-semibold",children:Ie(k.tokens||0)})]},w)})})]}),(((y=e==null?void 0:e.savings)==null?void 0:y.total)||0)>0&&s.jsxs("div",{children:[s.jsxs("div",{className:"flex items-center justify-between mb-2",children:[s.jsxs("span",{className:"text-2xs font-mono text-text-3 uppercase tracking-wider flex items-center",children:["Coordination Savings",s.jsx(Nn,{text:"Tokens saved vs. uncoordinated agents. Rotation savings are estimated from context degradation (pre/post velocity measurement underway). Conflict prevention and cold-start skip use fixed-overhead models. Compare against GROOVE Overhead above for honest ROI."})]}),s.jsxs("span",{className:"text-2xs font-mono text-text-2 tabular-nums",children:[Ie(e.savings.total)," tokens"]})]}),s.jsxs("div",{className:"space-y-2",children:[s.jsxs("div",{className:"space-y-1",children:[s.jsx(fO,{label:"Cold-start skip",value:e.savings.fromColdStartSkip||0,total:e.savings.total||1,color:ue.info}),s.jsxs("div",{className:"text-2xs font-mono text-text-4 pl-2",children:["estimated · ",(((Q=e==null?void 0:e.savings)==null?void 0:Q.fromColdStartSkip)||0)>0?"fixed overhead per skip":""]})]}),s.jsxs("div",{className:"space-y-1",children:[s.jsx(fO,{label:"Rotation",value:e.savings.fromRotation||0,total:e.savings.total||1,color:ue.accent}),s.jsx("div",{className:"text-2xs font-mono text-text-4 pl-2",children:"estimated · velocity measurement accumulating"})]}),s.jsxs("div",{className:"space-y-1",children:[s.jsx(fO,{label:"Conflict prevention",value:e.savings.fromConflictPrevention||0,total:e.savings.total||1,color:"#4ec9d4"}),s.jsx("div",{className:"text-2xs font-mono text-text-4 pl-2",children:"estimated · fixed overhead per conflict"})]})]})]}),r.length>0?s.jsxs("div",{children:[s.jsx("div",{className:"text-2xs font-mono text-text-3 uppercase tracking-wider mb-2.5",children:"Recent Rotations"}),s.jsx("div",{className:"space-y-0",children:r.map((w,k)=>{var X,C;const j=w.reason==="quality_degradation",P=w.reason==="natural_compaction",z=w.reason==="token_limit_exceeded",R=w.reason==="runaway_velocity",Y=z?"#e06c75":R?"#ff8c42":j?"#e5c07b":P?"#c678dd":"#33afbc";return s.jsxs("div",{className:"flex items-start gap-2.5",children:[s.jsxs("div",{className:"flex flex-col items-center flex-shrink-0",children:[s.jsx("div",{className:"h-1.5"}),s.jsx("div",{className:"w-2 h-2 rounded-full flex-shrink-0",style:{background:k===0?Y:`${Y}25`,border:`1px solid ${Y}80`,boxShadow:k===0?`0 0 6px ${Y}60`:"none"}}),k<r.length-1&&s.jsx("div",{className:"w-px flex-1 mt-1",style:{background:"rgba(51,175,188,0.15)",minHeight:"12px"}})]}),s.jsx("div",{className:oe("flex-1 bg-surface-0 rounded px-2 py-1.5",k<r.length-1&&"mb-2"),children:s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("span",{className:"text-xs font-mono text-text-1 font-medium capitalize truncate flex-1",children:w.agentName||w.role}),z?s.jsxs("span",{className:"text-2xs font-mono font-semibold tabular-nums flex-shrink-0",style:{color:"#e06c75"},title:`Auto-rotated: agent burned ${(X=w.instanceTokens)==null?void 0:X.toLocaleString()} tokens in one session`,children:["T:",xn((w.instanceTokens||0)/1e6*100).replace("%","M")]}):R?s.jsxs("span",{className:"flex items-center gap-1 flex-shrink-0",children:[s.jsxs("span",{className:"text-2xs font-mono font-semibold tabular-nums",style:{color:"#ff8c42"},title:`Auto-rotated: runaway velocity (${(C=w.velocity)==null?void 0:C.toLocaleString()} tokens in recent window)`,children:["V:",xn((w.velocity||0)/1e6*100).replace("%","M")]}),w.velocityDelta!=null&&w.velocityDelta>0&&s.jsxs("span",{className:"text-2xs font-mono tabular-nums",style:{color:"#4ae168"},title:`Post-rotation velocity dropped by ${w.velocityDelta.toLocaleString()} tokens — rotation worked`,children:["↓",xn(w.velocityDelta/1e6*100).replace("%","M")]})]}):j?s.jsxs("span",{className:"text-2xs font-mono font-semibold tabular-nums flex-shrink-0",style:{color:"#e5c07b"},children:["Q:",w.qualityScore]}):P?s.jsxs("span",{className:"text-2xs font-mono font-semibold tabular-nums flex-shrink-0",style:{color:"#c678dd"},children:[xn((w.contextUsage||0)*100)," → ",xn((w.contextAfter||0)*100)]}):s.jsx("span",{className:"text-2xs font-mono font-semibold tabular-nums flex-shrink-0",style:{color:(w.contextUsage||0)>.8?"#e06c75":"#33afbc"},children:xn((w.contextUsage||0)*100)}),s.jsx("span",{className:"text-2xs font-mono text-text-4 flex-shrink-0",children:jt(w.timestamp)})]})})]},k)})})]}):s.jsxs("div",{className:"bg-surface-0 rounded p-3 text-center space-y-1.5",children:[s.jsx("div",{className:"text-xs font-mono text-text-2 font-semibold",children:"Monitoring for degradation"}),s.jsx("div",{className:"text-2xs font-mono text-text-3 leading-relaxed",children:"Auto-rotation triggers when session quality drops below 40 (errors, repetitions, file churn) or context exceeds the adaptive threshold."})]})]})}function __({adaptive:e}){if(!(e!=null&&e.length))return s.jsx("div",{className:"p-3",children:s.jsxs("div",{className:"bg-surface-0 rounded p-4 text-center space-y-2",children:[s.jsx("div",{className:"text-xs font-mono text-text-2 font-semibold",children:"No adaptive profiles yet"}),s.jsx("div",{className:"text-2xs font-mono text-text-3 leading-relaxed",children:"Adaptive thresholds learn when each agent role benefits from rotation. GROOVE tracks quality scores and adjusts rotation triggers automatically — converging to the optimal threshold per role and provider."})]})});function n(l){const r=l.split(":");return{provider:r[0]||l,role:r[1]||""}}return s.jsx("div",{className:"p-3 space-y-3",children:e.map(l=>{var g,x;const{provider:r,role:o}=n(l.key),d=o||r,u=((g=l.thresholdHistory)==null?void 0:g.length)>1,f=((x=l.recentScores)==null?void 0:x.length)>1,h=ns(d),p=l.lastSignals;return s.jsxs("div",{className:"rounded overflow-hidden",style:{background:"rgba(51,175,188,0.04)",borderLeft:l.converged?"2px solid #33afbc":"2px solid rgba(229,192,123,0.35)"},children:[s.jsxs("div",{className:"flex items-center gap-2 px-3 pt-2.5 pb-1.5",children:[s.jsx("span",{className:"text-xs font-mono font-semibold capitalize px-1.5 py-px rounded-sm",style:{background:h.bg,color:h.text},children:d}),o&&s.jsx("span",{className:"text-2xs font-mono text-text-4 bg-surface-4 px-1.5 py-px rounded-sm",children:r}),s.jsx("div",{className:"flex-1"}),s.jsxs("span",{className:"flex items-center gap-1 text-2xs font-mono font-bold px-2 py-px rounded-full",style:{background:l.converged?"rgba(74,225,104,0.12)":"rgba(229,192,123,0.12)",color:l.converged?"#4ae168":"#e5c07b"},children:[!l.converged&&s.jsx("span",{className:"w-1.5 h-1.5 rounded-full flex-shrink-0",style:{background:"#e5c07b",animation:"node-pulse-bar 1.5s ease-in-out infinite"}}),l.converged?"Converged":"Learning"]})]}),s.jsxs("div",{className:"flex items-end gap-5 px-3 pb-2",children:[s.jsxs("div",{children:[s.jsx("div",{className:"text-2xs font-mono text-text-4 uppercase tracking-wider mb-0.5",children:"Threshold"}),s.jsx("div",{className:"text-3xl font-mono font-bold tabular-nums leading-none",style:{color:l.converged?"#33afbc":"#e5c07b"},children:xn(l.threshold*100)})]}),s.jsxs("div",{className:"pb-0.5",children:[s.jsx("div",{className:"text-2xs font-mono text-text-4 uppercase tracking-wider mb-0.5",children:"Adj."}),s.jsx("div",{className:"text-lg font-mono font-semibold text-text-1 tabular-nums",children:l.adjustments})]})]}),(u||f)&&s.jsxs("div",{className:"px-3 pb-2 space-y-2 overflow-hidden",children:[u&&s.jsxs("div",{children:[s.jsx("div",{className:"text-2xs font-mono text-text-4 mb-0.5",children:"Threshold history"}),s.jsx(Q0,{data:l.thresholdHistory.map(b=>b.v),color:l.converged?ue.accent:ue.warning,width:240,height:32})]}),f&&s.jsxs("div",{children:[s.jsx("div",{className:"text-2xs font-mono text-text-4 mb-0.5",children:"Quality score"}),s.jsx(Q0,{data:l.recentScores,color:ue.warning,width:240,height:24})]})]}),p&&s.jsxs("div",{className:"flex flex-wrap gap-1.5 px-3 pb-2.5",children:[s.jsx(Fa,{label:"Errors",value:p.errorCount,danger:!0}),s.jsx(Fa,{label:"Reps",value:p.repetitions,danger:!0}),s.jsx(Fa,{label:"Churn",value:p.fileChurn,danger:!0}),p.toolSuccessRate!=null&&s.jsxs("span",{className:"text-2xs font-mono px-1.5 py-px rounded-sm bg-surface-4 text-text-3",children:["Tools: ",s.jsxs("span",{className:"text-text-1",children:[Math.round(p.toolSuccessRate*100),"%"]})]})]})]},l.key)})})}function A_({journalist:e}){var n;return e?s.jsxs("div",{className:"p-3 space-y-3",children:[s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsxs("div",{children:[s.jsx("div",{className:"text-2xs font-mono text-text-3 uppercase tracking-wider mb-0.5",children:"Cycles"}),s.jsx("div",{className:"text-lg font-mono font-semibold text-text-0 tabular-nums leading-none",children:e.cycleCount||0})]}),e.lastCycleAt&&s.jsxs("div",{children:[s.jsx("div",{className:"text-2xs font-mono text-text-3 uppercase tracking-wider mb-0.5",children:"Last"}),s.jsx("div",{className:"text-xs font-mono text-text-2",children:jt(e.lastCycleAt)})]}),e.synthesizing&&s.jsx("span",{className:"text-2xs font-mono font-bold text-accent uppercase tracking-wider animate-pulse",children:"Synthesizing"})]}),e.lastSummary&&s.jsxs("div",{children:[s.jsx("div",{className:"text-2xs font-mono text-text-3 uppercase tracking-wider mb-1",children:"Summary"}),s.jsx("div",{className:"text-xs font-sans text-text-2 leading-relaxed",children:e.lastSummary})]}),e.projectMap&&s.jsxs("div",{children:[s.jsx("div",{className:"text-2xs font-mono text-text-3 uppercase tracking-wider mb-1",children:"Project Map"}),s.jsx("div",{className:"text-xs font-mono text-text-2 leading-relaxed whitespace-pre-wrap",children:e.projectMap})]}),e.decisions&&s.jsxs("div",{children:[s.jsx("div",{className:"text-2xs font-mono text-text-3 uppercase tracking-wider mb-1",children:"Decisions"}),s.jsx("div",{className:"text-xs font-mono text-text-2 leading-relaxed whitespace-pre-wrap",children:e.decisions})]}),((n=e.recentHistory)==null?void 0:n.length)>0&&s.jsxs("div",{children:[s.jsx("div",{className:"text-2xs font-mono text-text-3 uppercase tracking-wider mb-1.5",children:"History"}),s.jsx("div",{className:"space-y-1",children:e.recentHistory.slice().reverse().map((l,r)=>s.jsxs("div",{className:"flex items-center gap-2 text-xs font-mono px-2 py-1 bg-surface-0 rounded",children:[s.jsxs("span",{className:"text-text-3",children:["#",l.cycle]}),s.jsxs("span",{className:"text-text-2 flex-1 truncate",children:[l.agentCount," agents"]}),s.jsx("span",{className:"text-text-4",children:jt(l.timestamp)})]},r))})]})]}):s.jsx("div",{className:"flex-1 flex items-center justify-center text-xs text-text-3 font-mono p-4",children:"Journalist inactive"})}function X_({memory:e}){var p,g;const n=(e==null?void 0:e.constraints)||[],l=(e==null?void 0:e.discoveries)||[],r=(e==null?void 0:e.roles)||[],o=((p=e==null?void 0:e.specializations)==null?void 0:p.perAgent)||{},d=((g=e==null?void 0:e.specializations)==null?void 0:g.perProjectRole)||{},u=Object.keys(o).length,f=Object.keys(d).length;return n.length+l.length+r.length===0&&u===0?s.jsxs("div",{className:"p-6 text-center text-xs font-mono text-text-3",children:[s.jsx(dh,{size:24,className:"mx-auto mb-2 text-text-4"}),s.jsx("div",{children:"No memory accumulated yet"}),s.jsx("div",{className:"text-2xs text-text-4 mt-1",children:"Constraints, handoff chains, and discoveries populate as agents work"})]}):s.jsxs("div",{className:"p-3 space-y-4",children:[s.jsxs("div",{className:"grid grid-cols-4 gap-2",children:[s.jsxs("div",{className:"bg-surface-0 rounded p-2.5",children:[s.jsxs("div",{className:"text-2xs font-mono text-text-3 uppercase tracking-wider mb-1 flex items-center",children:["Constraints",s.jsx(Nn,{text:"Project rules discovered by agents or set by the user. Every new agent reads these on spawn to avoid rediscovering them."})]}),s.jsx("div",{className:"text-2xl font-mono font-bold tabular-nums leading-none",style:{color:ue.accent},children:n.length})]}),s.jsxs("div",{className:"bg-surface-0 rounded p-2.5",children:[s.jsxs("div",{className:"text-2xs font-mono text-text-3 uppercase tracking-wider mb-1 flex items-center",children:["Discoveries",s.jsx(Nn,{text:"Error→fix pairs successful agents have recorded. Injected into future agent context so they don't rediscover known solutions."})]}),s.jsx("div",{className:"text-2xl font-mono font-bold tabular-nums leading-none",style:{color:ue.success},children:l.length})]}),s.jsxs("div",{className:"bg-surface-0 rounded p-2.5",children:[s.jsxs("div",{className:"text-2xs font-mono text-text-3 uppercase tracking-wider mb-1 flex items-center",children:["Handoff Chains",s.jsx(Nn,{text:"Cumulative rotation briefs per role. Agent #50 knows what agent #1 struggled with. Each role keeps its last 10 rotation briefs."})]}),s.jsx("div",{className:"text-2xl font-mono font-bold tabular-nums leading-none",style:{color:ue.purple},children:r.length})]}),s.jsxs("div",{className:"bg-surface-0 rounded p-2.5",children:[s.jsxs("div",{className:"text-2xs font-mono text-text-3 uppercase tracking-wider mb-1 flex items-center",children:["Specializations",s.jsx(Nn,{text:"Per-agent quality profiles: session counts, average quality, file touches, preferred thresholds."})]}),s.jsx("div",{className:"text-2xl font-mono font-bold tabular-nums leading-none",style:{color:ue.info},children:u}),f>0&&s.jsxs("div",{className:"text-2xs font-mono text-text-4 mt-0.5",children:["across ",f," roles"]})]})]}),n.length>0&&s.jsxs("div",{children:[s.jsx("div",{className:"text-2xs font-mono text-text-3 uppercase tracking-wider mb-2",children:"Project Constraints"}),s.jsxs("div",{className:"space-y-1",children:[n.slice(0,10).map(x=>s.jsxs("div",{className:"flex items-start gap-2 bg-surface-0 rounded px-2 py-1.5",children:[s.jsx("span",{className:"text-2xs font-mono px-1.5 py-px rounded-sm bg-surface-4 text-text-3 uppercase tracking-wider flex-shrink-0 mt-0.5",children:x.category}),s.jsx("span",{className:"text-xs font-mono text-text-2 leading-relaxed flex-1",children:x.text})]},x.hash)),n.length>10&&s.jsxs("div",{className:"text-2xs font-mono text-text-4 px-2",children:["+",n.length-10," more"]})]})]}),l.length>0&&s.jsxs("div",{children:[s.jsx("div",{className:"text-2xs font-mono text-text-3 uppercase tracking-wider mb-2",children:"Recent Discoveries"}),s.jsx("div",{className:"space-y-1.5",children:l.slice(0,8).map((x,b)=>{const y=ns(x.role);return s.jsxs("div",{className:"bg-surface-0 rounded px-2 py-1.5 space-y-1",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("span",{className:"text-2xs font-mono font-semibold capitalize px-1.5 py-px rounded-sm",style:{background:y.bg,color:y.text},children:x.role}),s.jsx("span",{className:"text-2xs font-mono text-text-4 flex-1",children:jt(x.ts)})]}),s.jsxs("div",{className:"text-xs font-mono text-text-2 leading-relaxed",children:[s.jsx("span",{className:"text-text-4",children:"When:"})," ",s.jsx("span",{className:"text-text-1",children:x.trigger})]}),s.jsxs("div",{className:"text-xs font-mono text-text-2 leading-relaxed",children:[s.jsx("span",{className:"text-text-4",children:"Fix:"})," ",s.jsx("span",{style:{color:ue.success},children:x.fix})]})]},b)})})]}),r.length>0&&s.jsxs("div",{children:[s.jsx("div",{className:"text-2xs font-mono text-text-3 uppercase tracking-wider mb-2",children:"Active Role Chains"}),s.jsx("div",{className:"flex flex-wrap gap-1.5",children:r.map(x=>{const b=ns(x);return s.jsx("span",{className:"text-2xs font-mono font-semibold capitalize px-2 py-1 rounded",style:{background:b.bg,color:b.text},children:x},x)})})]}),f>0&&s.jsxs("div",{children:[s.jsx("div",{className:"text-2xs font-mono text-text-3 uppercase tracking-wider mb-2",children:"Role Quality Profiles"}),s.jsx("div",{className:"space-y-1",children:Object.entries(d).map(([x,b])=>{const y=ns(x);return s.jsxs("div",{className:"flex items-center gap-2 bg-surface-0 rounded px-2 py-1.5",children:[s.jsx("span",{className:"text-2xs font-mono font-semibold capitalize px-1.5 py-px rounded-sm",style:{background:y.bg,color:y.text},children:x}),s.jsxs("span",{className:"text-xs font-mono text-text-3 flex-1",children:[b.sessionCount," sessions"]}),s.jsxs("span",{className:"text-xs font-mono font-semibold tabular-nums",style:{color:qh(b.avgQualityScore)},children:["Q:",b.avgQualityScore]})]},x)})})]})]})}const Z_=v.memo(function({tokens:n,rotation:l,adaptive:r,journalist:o,agentBreakdown:d,memory:u}){return s.jsxs(gS,{defaultValue:"health",className:"flex flex-col h-full",children:[s.jsxs(bS,{className:"flex-shrink-0 px-1",children:[s.jsxs(As,{value:"health",className:"text-xs px-2.5 py-1.5 inline-flex items-center gap-1.5",children:[s.jsx(ui,{size:11}),"Health"]}),s.jsxs(As,{value:"memory",className:"text-xs px-2.5 py-1.5 inline-flex items-center gap-1.5",children:[s.jsx(dh,{size:11}),"Memory"]}),s.jsxs(As,{value:"adaptive",className:"text-xs px-2.5 py-1.5 inline-flex items-center gap-1.5",children:[s.jsx(D$,{size:11}),"Adaptive"]}),s.jsxs(As,{value:"journalist",className:"text-xs px-2.5 py-1.5 inline-flex items-center gap-1.5",children:[s.jsx(mh,{size:11}),"Journalist"]})]}),s.jsx(Xs,{value:"health",className:"flex-1 min-h-0 relative",children:s.jsx("div",{className:"absolute inset-0 overflow-y-auto",children:s.jsx(R_,{tokens:n,rotation:l,agentBreakdown:d})})}),s.jsx(Xs,{value:"memory",className:"flex-1 min-h-0 relative",children:s.jsx("div",{className:"absolute inset-0 overflow-y-auto",children:s.jsx(X_,{memory:u})})}),s.jsx(Xs,{value:"adaptive",className:"flex-1 min-h-0 relative",children:s.jsx("div",{className:"absolute inset-0 overflow-y-auto",children:s.jsx(__,{adaptive:r})})}),s.jsx(Xs,{value:"journalist",className:"flex-1 min-h-0 relative",children:s.jsx("div",{className:"absolute inset-0 overflow-y-auto",children:s.jsx(A_,{journalist:o})})})]})}),E_=v.memo(function({teams:n=[]}){const l=n.reduce((o,d)=>o+(d.totalTokens||0),0),r=n.reduce((o,d)=>Math.max(o,d.totalTokens||0),0);return s.jsxs("div",{className:"flex flex-col h-full",children:[s.jsxs("div",{className:"px-3 pt-2.5 pb-1 flex-shrink-0 flex items-center justify-between",children:[s.jsx("span",{className:"text-2xs font-mono text-text-3 uppercase tracking-widest",children:"Team Burn"}),s.jsxs("span",{className:"text-2xs font-mono text-text-3",children:[Ie(l)," total"]})]}),s.jsx(Mn,{className:"flex-1 min-h-0",children:n.length===0?s.jsx("div",{className:"px-3 py-6 text-center text-xs text-text-3 font-mono",children:"No team activity yet"}):s.jsx("div",{className:"px-3 pb-2 space-y-1.5",children:n.map(o=>{const d=r>0?o.totalTokens/r*100:0;return s.jsxs("div",{className:"space-y-1",children:[s.jsxs("div",{className:"flex items-center justify-between gap-2 min-w-0",children:[s.jsxs("div",{className:"flex items-center gap-1.5 min-w-0",children:[s.jsx("span",{className:"text-xs font-semibold text-text-0 font-sans truncate",children:o.teamName}),o.isDefault&&s.jsx("span",{className:"text-[9px] font-mono text-text-3 uppercase tracking-wider",children:"default"}),s.jsxs("span",{className:"text-2xs font-mono text-text-3 flex-shrink-0",children:[o.agentCount," ",o.agentCount===1?"agent":"agents"]})]}),s.jsxs("div",{className:"flex items-center gap-2 flex-shrink-0 font-mono text-2xs",children:[s.jsx("span",{className:"text-text-1",children:Ie(o.totalTokens)}),s.jsx("span",{className:"text-text-3",children:us(o.totalCostUsd)})]})]}),s.jsx("div",{className:"h-0.5 bg-surface-2 rounded-sm overflow-hidden",children:s.jsx("div",{className:"h-full rounded-sm transition-all",style:{width:`${d}%`,background:ue.accent}})})]},o.teamId)})})})]})}),q_={spawn:iP,complete:ls,crash:Ti,kill:Jb,rotate:ki,error:xh},M_={spawn:"text-accent",complete:"text-success",crash:"text-danger",kill:"text-text-3",rotate:"text-purple",error:"text-danger"};function Y_(e){const n=e.agentName||e.role||"";switch(e.type){case"spawn":return`${n} spawned`;case"complete":return`${n} completed`;case"crash":return`${n} crashed`;case"kill":return`${n} killed`;case"rotate":return`${n} rotated`;default:return e.text||e.type||"event"}}const U_=v.memo(function({events:n=[]}){return n.length?s.jsx("div",{className:"flex items-center gap-3 overflow-x-auto py-2 px-3",children:n.slice(-15).reverse().map((l,r)=>{const o=q_[l.type]||En,d=M_[l.type]||"text-text-3",u=Y_(l);return s.jsxs("div",{className:"flex items-center gap-1.5 flex-shrink-0",children:[s.jsx(o,{size:11,className:d}),s.jsx("span",{className:"text-xs font-sans text-text-2 whitespace-nowrap",children:u}),s.jsx("span",{className:"text-2xs font-mono text-text-4",children:jt(l.t||l.timestamp)})]},r)})}):s.jsx("div",{className:"text-xs text-text-3 font-mono py-2.5 text-center",children:"No recent activity"})});function dn({className:e,...n}){return s.jsx("div",{className:oe("rounded-md bg-surface-4","bg-gradient-to-r from-surface-4 via-surface-5 to-surface-4","bg-[length:200%_100%] animate-[shimmer_1.5s_ease-in-out_infinite]",e),...n})}function V_(){return s.jsxs("div",{className:"flex-1 grid gap-px p-0",style:{gridTemplateRows:"auto minmax(0, 1fr) minmax(0, 1fr)",gridTemplateColumns:"2fr 2.5fr 1.5fr",background:"#282c34"},children:[s.jsx("div",{className:"col-span-3",children:s.jsx(dn,{className:"h-[72px] rounded-none"})}),s.jsx(dn,{className:"rounded-none"}),s.jsx(dn,{className:"rounded-none"}),s.jsx(dn,{className:"rounded-none"}),s.jsx(dn,{className:"rounded-none"}),s.jsx("div",{className:"col-span-2",children:s.jsx(dn,{className:"h-full rounded-none"})})]})}function G_(){const{data:e,loading:n,agents:l,connected:r,kpiHistory:o,lastFetch:d,agentBreakdown:u,routing:f,rotation:h,adaptive:p,journalist:g,rotating:x,teamBurn:b,memory:y}=e_(),Q=B(Z=>Z.teams),w=l.filter(Z=>Z.status==="running").length;if(!r)return s.jsx("div",{className:"w-full h-full flex items-center justify-center",children:s.jsxs("div",{className:"text-center space-y-2 text-text-3 font-mono",children:[s.jsx(Ib,{size:28,className:"mx-auto"}),s.jsx("p",{className:"text-xs",children:"Connecting to daemon..."})]})});if(n||!e)return s.jsxs("div",{className:"flex flex-col h-full",children:[s.jsx(v0,{connected:r,runningCount:0,totalCount:0,uptime:0,lastFetch:0}),s.jsx(V_,{})]});const k=e.tokens||{},j={totalTokens:k.totalTokens||0,totalCostUsd:k.totalCostUsd||0,totalInputTokens:k.totalInputTokens||0,totalOutputTokens:k.totalOutputTokens||0,cacheReadTokens:k.cacheReadTokens||0,cacheCreationTokens:k.cacheCreationTokens||0,cacheHitRate:k.cacheHitRate||0,totalTurns:k.totalTurns||0,agentCount:k.agentCount||0,savings:k.savings||{},internalOverhead:k.internalOverhead||{tokens:0,costUsd:0,components:{}}},P=j.totalOutputTokens>0?(j.totalInputTokens/j.totalOutputTokens).toFixed(1):"—",z=(h==null?void 0:h.totalRotations)||0,R=(u||[]).filter(Z=>{var K;return((K=Z.quality)==null?void 0:K.score)!=null}),Y=R.length>0?Math.round(R.reduce((Z,K)=>Z+K.quality.score,0)/R.length):null,X=e.timeline||{},C=X.snapshots||[],T=X.events||e.events||[],I=[{label:"Tokens Used",value:Ie(j.totalTokens),sparkData:o.tokens,color:ue.accent,hint:"Total tokens consumed across all agents — input, output, and cache tokens combined."},{label:"Total Cost",value:us(j.totalCostUsd),sparkData:o.cost,color:ue.warning,hint:"Actual cost reported by providers. Claude Code reports real billing; other providers use estimated rates."},{label:"Quality",value:Y!=null?`${Y}`:"—",sparkData:o.saved,color:Y>=70?ue.success:Y>=40?ue.warning:ue.danger,hint:"Average session quality score (0-100) across running agents. Based on error rate, repetitions, file churn, and tool success. Below 40 triggers auto-rotation."},{label:"Cache Rate",value:xn(j.cacheHitRate*100),sparkData:o.cache,color:ue.info,hint:"Percentage of input tokens served from prompt cache. Higher = faster responses and lower cost. Managed by your AI provider."},{label:"Rotations",value:`${z}`,sparkData:o.efficiency,color:ue.purple,hint:"Total context rotations — includes quality-based (auto), context threshold, natural compaction (provider-managed), and manual rotations."},{label:"I/O Ratio",value:`${P}:1`,sparkData:o.inputOutput,color:ue.orange,hint:"Ratio of input to output tokens. High ratios mean agents are reading more than writing — common for analysis tasks."},{label:"Agents",value:`${w}/${l.length}`,sparkData:o.agents,color:ue.accent,hint:"Running agents out of total spawned this session (including completed and crashed)."},{label:"Turns",value:Ie(j.totalTurns),sparkData:o.turns,color:ue.text2,hint:"Total conversation turns across all agents. Each turn is one request-response cycle with the AI provider."}];return s.jsxs("div",{className:"flex flex-col h-full",children:[s.jsx(v0,{connected:r,runningCount:w,totalCount:l.length,uptime:e.uptime||0,lastFetch:d,activeTeam:e.activeTeam}),s.jsx(a_,{kpis:I}),s.jsxs("div",{className:"flex-1 min-h-0 grid",style:{gridTemplateRows:"minmax(0, 1fr) minmax(0, 1fr)",gridTemplateColumns:"2fr 2.5fr 1.5fr",background:"#282c34",gap:"1px"},children:[s.jsx("div",{className:"min-w-0 min-h-0 overflow-hidden bg-surface-1 relative",children:s.jsx(c_,{data:C})}),s.jsxs("div",{className:"min-w-0 min-h-0 overflow-hidden bg-surface-1 flex flex-col border-l border-border",children:[s.jsx("div",{className:"px-3 pt-2.5 pb-1",children:s.jsx("span",{className:"text-2xs font-mono text-text-3 uppercase tracking-widest",children:"Cache Performance"})}),s.jsx(d_,{cacheRead:j.cacheReadTokens,cacheCreation:j.cacheCreationTokens,totalInput:j.totalInputTokens})]}),s.jsxs("div",{className:"min-w-0 min-h-0 overflow-hidden bg-surface-1 flex flex-col border-l border-border",children:[s.jsx("div",{className:"px-3 pt-2.5 pb-1",children:s.jsx("span",{className:"text-2xs font-mono text-text-3 uppercase tracking-widest",children:"Model Routing"})}),s.jsx(u_,{routing:f,agentBreakdown:u})]}),s.jsxs("div",{className:"min-w-0 min-h-0 overflow-hidden bg-surface-1 flex flex-col border-t border-border",children:[s.jsx("div",{className:"px-3 pt-2.5 pb-1 flex-shrink-0",children:s.jsx("span",{className:"text-2xs font-mono text-text-3 uppercase tracking-widest",children:"Agent Fleet"})}),s.jsx(o_,{agentBreakdown:u,rotating:x,teams:Q})]}),s.jsx("div",{className:"min-w-0 min-h-0 overflow-hidden bg-surface-1 flex flex-col border-t border-l border-border",children:s.jsx(Z_,{tokens:j,rotation:h,adaptive:p,journalist:g,agentBreakdown:u,memory:y})}),s.jsx("div",{className:"min-w-0 min-h-0 overflow-hidden bg-surface-1 flex flex-col border-t border-l border-border",children:s.jsx(E_,{teams:b})})]}),s.jsx("div",{className:"flex-shrink-0 bg-surface-1 border-t border-border",children:s.jsx(U_,{events:T})})]})}const j0={sm:12,md:16,lg:20};function D_({fill:e="full",size:n,color:l="#fbbf24",emptyColor:r="rgba(255,255,255,0.4)"}){const o=`star-${Math.random().toString(36).slice(2,8)}`;return s.jsxs("svg",{width:n,height:n,viewBox:"0 0 20 20",fill:"none",children:[e==="half"&&s.jsx("defs",{children:s.jsxs("linearGradient",{id:o,children:[s.jsx("stop",{offset:"50%",stopColor:l}),s.jsx("stop",{offset:"50%",stopColor:r})]})}),s.jsx("path",{d:"M10 1.5l2.47 5.01 5.53.8-4 3.9.94 5.49L10 14.27 5.06 16.7 6 11.21l-4-3.9 5.53-.8L10 1.5z",fill:e==="full"?l:e==="half"?`url(#${o})`:r})]})}function vS({rating:e=0,count:n,size:l="sm"}){const r=j0[l]||j0.sm,o=[];for(let d=1;d<=5;d++)e>=d?o.push("full"):e>=d-.5?o.push("half"):o.push("empty");return s.jsxs("span",{className:"inline-flex items-center",style:{gap:1},children:[o.map((d,u)=>s.jsx(D_,{fill:d,size:r},u)),n!=null&&s.jsxs("span",{className:"ml-1 text-[11px] text-[var(--text-dim,#6b7f95)] font-sans",children:["(",n,")"]})]})}const w0={design:{color:"#c678dd",bg:"rgba(198,120,221,0.12)"},quality:{color:"#4ade80",bg:"rgba(74,222,128,0.12)"},devtools:{color:"#33afbc",bg:"rgba(51,175,188,0.14)"},workflow:{color:"#fbbf24",bg:"rgba(251,191,36,0.12)"},security:{color:"#f87171",bg:"rgba(248,113,113,0.12)"},specialized:{color:"#f59e0b",bg:"rgba(245,158,11,0.12)"},verified:{color:"#4ade80",bg:"rgba(74,222,128,0.12)"},anthropic:{color:"#f59e0b",bg:"rgba(245,158,11,0.12)"},published:{color:"#4ade80",bg:"rgba(74,222,128,0.12)"},draft:{color:"#6b7f95",bg:"rgba(255,255,255,0.06)"},review:{color:"#c678dd",bg:"rgba(198,120,221,0.12)"},rejected:{color:"#f87171",bg:"rgba(248,113,113,0.12)"},free:{color:"#4ade80",bg:"rgba(74,222,128,0.12)"}};function yS({label:e,variant:n,className:l}){const r=w0[n]||w0.draft;return s.jsx("span",{className:oe("inline-flex items-center whitespace-nowrap font-sans select-none",l),style:{padding:"3px 8px",borderRadius:4,fontSize:10,fontWeight:600,textTransform:"uppercase",letterSpacing:"0.5px",lineHeight:1.4,color:r.color,background:r.bg},children:e})}function SS({price:e=0,size:n="sm"}){const l=!e||e===0,r={sm:"text-2xs px-2 py-0.5",md:"text-xs px-2.5 py-0.5",lg:"text-xs px-3 py-1"};return s.jsx("span",{className:`inline-flex items-center font-mono font-semibold rounded whitespace-nowrap ${r[n]||r.sm} ${l?"bg-success/12 text-success":"bg-white/8 text-text-1"}`,children:l?"Free":`$${e.toFixed(2)}`})}function QS({type:e="verified",size:n=12}){const l=e==="claude-official"||e==="anthropic"?"#f59e0b":"#4ade80";return s.jsxs("svg",{width:n,height:n,viewBox:"0 0 20 20",fill:"none",className:"inline-block flex-shrink-0",children:[s.jsx("path",{d:"M10 0l2.36 3.15L16.18 2l.68 3.93L20.8 7.1l-1.87 3.52L20.8 14.14l-3.94 1.17-.68 3.93-3.82-1.15L10 21.24l-2.36-3.15-3.82 1.15-.68-3.93-3.94-1.17 1.87-3.52L-.8 7.1l3.94-1.17.68-3.93 3.82 1.15L10 0z",fill:l}),s.jsx("path",{d:"M7 10.5l2 2 4-4.5",fill:"none",stroke:"#24282f",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}const jS="groove_favorites";function Mh(){try{return JSON.parse(localStorage.getItem(jS)||"[]")}catch{return[]}}function L_(e){return Mh().includes(e)}function W_(e){const n=Mh(),l=n.indexOf(e);return l>=0?n.splice(l,1):n.push(e),localStorage.setItem(jS,JSON.stringify(n)),l<0}function B_(e){const n=new Set(Mh());return e.map(l=>({...l,favorited:n.has(l.id)}))}function H_({filled:e,size:n=16}){return s.jsx("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:e?"#f87171":"none",stroke:e?"#f87171":"rgba(255,255,255,0.3)",strokeWidth:"2",children:s.jsx("path",{d:"M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z"})})}function I_(){return s.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[s.jsx("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),s.jsx("polyline",{points:"7 10 12 15 17 10"}),s.jsx("line",{x1:"12",y1:"15",x2:"12",y2:"3"})]})}function F_({skill:e,onClick:n}){var d,u;const[l,r]=v.useState(()=>L_(e.id));function o(f){f.stopPropagation(),r(W_(e.id))}return s.jsxs("div",{onClick:()=>n==null?void 0:n(e),className:oe("flex flex-col cursor-pointer group","bg-surface-1 border border-border-subtle rounded-md","hover:border-accent/30 hover:bg-surface-2","transition-all duration-150"),style:{padding:20,minHeight:280},children:[s.jsxs("div",{className:"flex justify-between items-start",children:[s.jsx("div",{className:"w-10 h-10 rounded-full flex items-center justify-center flex-shrink-0 bg-accent/12 text-[20px]",children:e.icon||((u=(d=e.name)==null?void 0:d[0])==null?void 0:u.toUpperCase())||"?"}),s.jsx("button",{onClick:o,className:"opacity-40 group-hover:opacity-80 hover:!opacity-100 transition-opacity cursor-pointer bg-transparent border-0 p-0",children:s.jsx(H_,{filled:l})})]}),s.jsx("div",{className:"mt-3 text-[15px] font-semibold text-text-0 font-sans line-clamp-2 leading-snug",children:e.name}),s.jsxs("div",{className:"mt-1 flex items-center gap-1.5 text-xs text-text-3 font-sans",children:[s.jsxs("span",{children:["by ",e.author||"Community"]}),(e.source==="claude-official"||e.verified)&&s.jsx(QS,{type:e.source,size:12})]}),s.jsx("div",{className:"mt-2.5 text-xs text-text-2 font-sans line-clamp-3 flex-1 leading-relaxed",children:e.description}),s.jsx("div",{className:"mt-3",children:s.jsx(yS,{label:e.category||"general",variant:e.category||"draft"})}),s.jsx("div",{className:"h-px bg-border-subtle my-3"}),s.jsxs("div",{className:"flex items-center justify-between gap-2",children:[s.jsx(vS,{rating:e.rating||0,count:e.rating_count||e.ratingCount||0,size:"sm"}),s.jsxs("span",{className:"flex items-center gap-1 text-xs text-text-3 font-mono",children:[s.jsx(I_,{}),Ie(e.downloads||0)]}),s.jsx(SS,{price:e.price||0,size:"sm"})]})]})}function wS(){return s.jsxs("div",{className:"bg-surface-1 border border-border-subtle rounded-md animate-pulse",style:{padding:20,minHeight:280},children:[s.jsx("div",{className:"w-10 h-10 rounded-full bg-surface-4"}),s.jsx("div",{className:"mt-3 h-4 w-[70%] rounded bg-surface-4"}),s.jsx("div",{className:"mt-2 h-3 w-[40%] rounded bg-surface-4"}),s.jsx("div",{className:"mt-3.5 h-3 w-full rounded bg-surface-4"}),s.jsx("div",{className:"mt-1.5 h-3 w-[90%] rounded bg-surface-4"}),s.jsx("div",{className:"mt-1.5 h-3 w-[60%] rounded bg-surface-4"}),s.jsx("div",{className:"mt-3.5 h-5 w-[50px] rounded bg-surface-4"}),s.jsx("div",{className:"h-px bg-surface-4 my-3"}),s.jsxs("div",{className:"flex justify-between",children:[s.jsx("div",{className:"h-3 w-16 rounded bg-surface-4"}),s.jsx("div",{className:"h-3 w-12 rounded bg-surface-4"}),s.jsx("div",{className:"h-3 w-10 rounded bg-surface-4"})]})]})}const K_={"google-workspace":"https://cdn.simpleicons.org/google/white",github:"https://cdn.simpleicons.org/github/white",stripe:"https://cdn.simpleicons.org/stripe/635BFF",gmail:"https://cdn.simpleicons.org/gmail/EA4335","google-calendar":"https://cdn.simpleicons.org/googlecalendar/4285F4","google-drive":"https://cdn.simpleicons.org/googledrive/4285F4","google-docs":"https://cdn.simpleicons.org/googledocs/4285F4","google-sheets":"https://cdn.simpleicons.org/googlesheets/34A853","google-slides":"https://cdn.simpleicons.org/googleslides/FBBC04","google-maps":"https://cdn.simpleicons.org/googlemaps/4285F4",postgres:"https://cdn.simpleicons.org/postgresql/4169E1",notion:"https://cdn.simpleicons.org/notion/white",linear:"https://cdn.simpleicons.org/linear/5E6AD2","brave-search":"https://cdn.simpleicons.org/brave/FB542B","home-assistant":"https://cdn.simpleicons.org/homeassistant/18BCF2",sentry:"https://cdn.simpleicons.org/sentry/362D59",elevenlabs:"https://cdn.simpleicons.org/elevenlabs/white",hubspot:"https://cdn.simpleicons.org/hubspot/FF7A59",jira:"https://cdn.simpleicons.org/jira/0052CC",sendgrid:"https://cdn.simpleicons.org/sendgrid/1A82E2",resend:"https://cdn.simpleicons.org/resend/white",replicate:"https://cdn.simpleicons.org/replicate/white",vercel:"https://cdn.simpleicons.org/vercel/white",supabase:"https://cdn.simpleicons.org/supabase/3FCF8E",mixpanel:"https://cdn.simpleicons.org/mixpanel/7856FF",datadog:"https://cdn.simpleicons.org/datadog/632CA6",airtable:"https://cdn.simpleicons.org/airtable/18BFFF",zendesk:"https://cdn.simpleicons.org/zendesk/03363D",intercom:"https://cdn.simpleicons.org/intercom/6AFDEF",twilio:"https://cdn.simpleicons.org/twilio/F22F46",telnyx:"https://cdn.simpleicons.org/telnyx/00C08B",aws:"https://cdn.simpleicons.org/amazonaws/FF9900",plaid:"https://cdn.simpleicons.org/plaid/white"};function J_({item:e,size:n=40}){const l=K_[e.id];if(l)return s.jsxs("div",{className:"rounded-md bg-surface-4 flex items-center justify-center flex-shrink-0 overflow-hidden",style:{width:n,height:n},children:[s.jsx("img",{src:l,alt:e.name,className:"w-5 h-5",onError:d=>{d.target.style.display="none",d.target.nextSibling.style.display="flex"}}),s.jsx("div",{className:"hidden items-center justify-center w-full h-full text-lg font-bold font-sans text-text-1",children:(e.name||"?")[0]})]});const r=(e.name||"?")[0].toUpperCase(),o=e.name?e.name.charCodeAt(0)*37%360:200;return s.jsx("div",{className:"rounded-md flex items-center justify-center flex-shrink-0 text-lg font-bold font-sans",style:{width:n,height:n,background:`hsl(${o}, 40%, 18%)`,color:`hsl(${o}, 60%, 65%)`},children:r})}function Dc({item:e,onClick:n,className:l,statusBadge:r}){var d;const o=e.installed;return s.jsxs("button",{onClick:()=>n(e),className:oe("flex flex-col p-5 rounded-md border border-border-subtle bg-surface-1 text-left","hover:border-accent/30 hover:bg-surface-2","transition-all duration-150 cursor-pointer group",l),style:{minHeight:200},children:[s.jsxs("div",{className:"flex items-center gap-3 mb-3",children:[s.jsx(J_,{item:e,size:36}),s.jsxs("div",{className:"flex-1 min-w-0",children:[s.jsxs("div",{className:"flex items-center gap-1.5",children:[s.jsx("span",{className:"text-[14px] font-semibold text-text-0 font-sans truncate",children:e.name}),(e.verified||e.verified==="mcp-official")&&s.jsx(ls,{size:11,className:"text-accent flex-shrink-0"})]}),s.jsx("span",{className:"text-2xs text-text-3 font-sans",children:e.author||"Community"})]})]}),s.jsx("p",{className:"text-xs text-text-2 font-sans line-clamp-3 mb-3 flex-1 leading-relaxed",children:e.description}),s.jsx("div",{className:"h-px bg-border-subtle my-2"}),s.jsxs("div",{className:"flex items-center gap-3 text-2xs text-text-3 font-sans",children:[s.jsxs("span",{className:"flex items-center gap-1",children:[s.jsx(sd,{size:10}),Ie(e.downloads||0)]}),(e.rating||0)>0&&s.jsxs("span",{className:"flex items-center gap-1",children:[s.jsx(hv,{size:10,className:"text-warning",fill:"currentColor"}),(d=e.rating)==null?void 0:d.toFixed(1)]}),s.jsx("span",{className:"flex-1"}),r||o&&s.jsx(Ce,{variant:"accent",className:"text-2xs",children:e._installedCount?`${e._installedCount} active`:"Installed"})]})]})}function Yh({value:e,onChange:n,placeholder:l="Search skills, tags, authors...",large:r}){const[o,d]=v.useState(e||""),u=v.useRef(null);v.useEffect(()=>{d(e||"")},[e]);function f(h){const p=h.target.value;d(p),clearTimeout(u.current),u.current=setTimeout(()=>n(p),300)}return s.jsxs("div",{className:"relative w-full",children:[s.jsx(An,{size:16,className:"absolute left-3.5 top-1/2 -translate-y-1/2 text-text-4 pointer-events-none"}),s.jsx("input",{value:o,onChange:f,placeholder:l,className:oe("w-full font-sans outline-none","bg-surface-0 border border-border text-text-0 placeholder:text-text-4","focus:border-accent/40 transition-colors",r?"py-3 pl-11 pr-12 text-[15px] rounded-lg":"py-2.5 pl-10 pr-3 text-sm rounded-md")}),r&&s.jsx("kbd",{className:"absolute right-3.5 top-1/2 -translate-y-1/2 bg-surface-4 text-text-4 px-2 py-0.5 rounded text-xs font-mono",children:"/"})]})}const eA=[{id:"",label:"All"},{id:"design",label:"Design"},{id:"quality",label:"Quality"},{id:"devtools",label:"Dev Tools"},{id:"workflow",label:"Workflow"},{id:"security",label:"Security"},{id:"specialized",label:"Specialized"}];function tA({selected:e="",categories:n=eA,onSelect:l}){return s.jsx("div",{className:"flex gap-2 overflow-x-auto",style:{scrollbarWidth:"none"},children:n.map(r=>{const o=e===r.id;return s.jsx("button",{onClick:()=>l(r.id),className:oe("whitespace-nowrap font-sans cursor-pointer select-none transition-all text-[13px] rounded-full border",o?"bg-accent text-surface-0 border-accent font-semibold":"bg-surface-1 text-text-3 border-border-subtle hover:text-text-1 hover:border-border font-medium"),style:{padding:"7px 16px"},children:r.label},r.id)})})}function Yn(){const e=B(n=>n.addToast);return{success:(n,l)=>e("success",n,l),error:(n,l)=>e("error",n,l),info:(n,l)=>e("info",n,l),warning:(n,l)=>e("warning",n,l)}}var OO="focusScope.autoFocusOnMount",hO="focusScope.autoFocusOnUnmount",k0={bubbles:!1,cancelable:!0},nA="FocusScope",kS=v.forwardRef((e,n)=>{const{loop:l=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:d,...u}=e,[f,h]=v.useState(null),p=At(o),g=At(d),x=v.useRef(null),b=dt(n,w=>h(w)),y=v.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;v.useEffect(()=>{if(r){let w=function(z){if(y.paused||!f)return;const R=z.target;f.contains(R)?x.current=R:Ia(x.current,{select:!0})},k=function(z){if(y.paused||!f)return;const R=z.relatedTarget;R!==null&&(f.contains(R)||Ia(x.current,{select:!0}))},j=function(z){if(document.activeElement===document.body)for(const Y of z)Y.removedNodes.length>0&&Ia(f)};document.addEventListener("focusin",w),document.addEventListener("focusout",k);const P=new MutationObserver(j);return f&&P.observe(f,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",w),document.removeEventListener("focusout",k),P.disconnect()}}},[r,f,y.paused]),v.useEffect(()=>{if(f){T0.add(y);const w=document.activeElement;if(!f.contains(w)){const j=new CustomEvent(OO,k0);f.addEventListener(OO,p),f.dispatchEvent(j),j.defaultPrevented||(aA(oA($S(f)),{select:!0}),document.activeElement===w&&Ia(f))}return()=>{f.removeEventListener(OO,p),setTimeout(()=>{const j=new CustomEvent(hO,k0);f.addEventListener(hO,g),f.dispatchEvent(j),j.defaultPrevented||Ia(w??document.body,{select:!0}),f.removeEventListener(hO,g),T0.remove(y)},0)}}},[f,p,g,y]);const Q=v.useCallback(w=>{if(!l&&!r||y.paused)return;const k=w.key==="Tab"&&!w.altKey&&!w.ctrlKey&&!w.metaKey,j=document.activeElement;if(k&&j){const P=w.currentTarget,[z,R]=sA(P);z&&R?!w.shiftKey&&j===R?(w.preventDefault(),l&&Ia(z,{select:!0})):w.shiftKey&&j===z&&(w.preventDefault(),l&&Ia(R,{select:!0})):j===P&&w.preventDefault()}},[l,r,y.paused]);return s.jsx(Je.div,{tabIndex:-1,...u,ref:b,onKeyDown:Q})});kS.displayName=nA;function aA(e,{select:n=!1}={}){const l=document.activeElement;for(const r of e)if(Ia(r,{select:n}),document.activeElement!==l)return}function sA(e){const n=$S(e),l=$0(n,e),r=$0(n.reverse(),e);return[l,r]}function $S(e){const n=[],l=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;l.nextNode();)n.push(l.currentNode);return n}function $0(e,n){for(const l of e)if(!lA(l,{upTo:n}))return l}function lA(e,{upTo:n}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(n!==void 0&&e===n)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function rA(e){return e instanceof HTMLInputElement&&"select"in e}function Ia(e,{select:n=!1}={}){if(e&&e.focus){const l=document.activeElement;e.focus({preventScroll:!0}),e!==l&&rA(e)&&n&&e.select()}}var T0=iA();function iA(){let e=[];return{add(n){const l=e[0];n!==l&&(l==null||l.pause()),e=N0(e,n),e.unshift(n)},remove(n){var l;e=N0(e,n),(l=e[0])==null||l.resume()}}}function N0(e,n){const l=[...e],r=l.indexOf(n);return r!==-1&&l.splice(r,1),l}function oA(e){return e.filter(n=>n.tagName!=="A")}var mO=0;function cA(){v.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??P0()),document.body.insertAdjacentElement("beforeend",e[1]??P0()),mO++,()=>{mO===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(n=>n.remove()),mO--}},[])}function P0(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Pn=function(){return Pn=Object.assign||function(n){for(var l,r=1,o=arguments.length;r<o;r++){l=arguments[r];for(var d in l)Object.prototype.hasOwnProperty.call(l,d)&&(n[d]=l[d])}return n},Pn.apply(this,arguments)};function TS(e,n){var l={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(l[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)n.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(l[r[o]]=e[r[o]]);return l}function dA(e,n,l){if(l||arguments.length===2)for(var r=0,o=n.length,d;r<o;r++)(d||!(r in n))&&(d||(d=Array.prototype.slice.call(n,0,r)),d[r]=n[r]);return e.concat(d||Array.prototype.slice.call(n))}var Qc="right-scroll-bar-position",jc="width-before-scroll-bar",uA="with-scroll-bars-hidden",fA="--removed-body-scroll-bar-size";function pO(e,n){return typeof e=="function"?e(n):e&&(e.current=n),e}function OA(e,n){var l=v.useState(function(){return{value:e,callback:n,facade:{get current(){return l.value},set current(r){var o=l.value;o!==r&&(l.value=r,l.callback(r,o))}}}})[0];return l.callback=n,l.facade}var hA=typeof window<"u"?v.useLayoutEffect:v.useEffect,z0=new WeakMap;function mA(e,n){var l=OA(null,function(r){return e.forEach(function(o){return pO(o,r)})});return hA(function(){var r=z0.get(l);if(r){var o=new Set(r),d=new Set(e),u=l.current;o.forEach(function(f){d.has(f)||pO(f,null)}),d.forEach(function(f){o.has(f)||pO(f,u)})}z0.set(l,e)},[e]),l}function pA(e){return e}function xA(e,n){n===void 0&&(n=pA);var l=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return l.length?l[l.length-1]:e},useMedium:function(d){var u=n(d,r);return l.push(u),function(){l=l.filter(function(f){return f!==u})}},assignSyncMedium:function(d){for(r=!0;l.length;){var u=l;l=[],u.forEach(d)}l={push:function(f){return d(f)},filter:function(){return l}}},assignMedium:function(d){r=!0;var u=[];if(l.length){var f=l;l=[],f.forEach(d),u=l}var h=function(){var g=u;u=[],g.forEach(d)},p=function(){return Promise.resolve().then(h)};p(),l={push:function(g){u.push(g),p()},filter:function(g){return u=u.filter(g),l}}}};return o}function gA(e){e===void 0&&(e={});var n=xA(null);return n.options=Pn({async:!0,ssr:!1},e),n}var NS=function(e){var n=e.sideCar,l=TS(e,["sideCar"]);if(!n)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=n.read();if(!r)throw new Error("Sidecar medium not found");return v.createElement(r,Pn({},l))};NS.isSideCarExport=!0;function bA(e,n){return e.useMedium(n),NS}var PS=gA(),xO=function(){},fd=v.forwardRef(function(e,n){var l=v.useRef(null),r=v.useState({onScrollCapture:xO,onWheelCapture:xO,onTouchMoveCapture:xO}),o=r[0],d=r[1],u=e.forwardProps,f=e.children,h=e.className,p=e.removeScrollBar,g=e.enabled,x=e.shards,b=e.sideCar,y=e.noRelative,Q=e.noIsolation,w=e.inert,k=e.allowPinchZoom,j=e.as,P=j===void 0?"div":j,z=e.gapMode,R=TS(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),Y=b,X=mA([l,n]),C=Pn(Pn({},R),o);return v.createElement(v.Fragment,null,g&&v.createElement(Y,{sideCar:PS,removeScrollBar:p,shards:x,noRelative:y,noIsolation:Q,inert:w,setCallbacks:d,allowPinchZoom:!!k,lockRef:l,gapMode:z}),u?v.cloneElement(v.Children.only(f),Pn(Pn({},C),{ref:X})):v.createElement(P,Pn({},C,{className:h,ref:X}),f))});fd.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};fd.classNames={fullWidth:jc,zeroRight:Qc};var vA=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function yA(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var n=vA();return n&&e.setAttribute("nonce",n),e}function SA(e,n){e.styleSheet?e.styleSheet.cssText=n:e.appendChild(document.createTextNode(n))}function QA(e){var n=document.head||document.getElementsByTagName("head")[0];n.appendChild(e)}var jA=function(){var e=0,n=null;return{add:function(l){e==0&&(n=yA())&&(SA(n,l),QA(n)),e++},remove:function(){e--,!e&&n&&(n.parentNode&&n.parentNode.removeChild(n),n=null)}}},wA=function(){var e=jA();return function(n,l){v.useEffect(function(){return e.add(n),function(){e.remove()}},[n&&l])}},zS=function(){var e=wA(),n=function(l){var r=l.styles,o=l.dynamic;return e(r,o),null};return n},kA={left:0,top:0,right:0,gap:0},gO=function(e){return parseInt(e||"",10)||0},$A=function(e){var n=window.getComputedStyle(document.body),l=n[e==="padding"?"paddingLeft":"marginLeft"],r=n[e==="padding"?"paddingTop":"marginTop"],o=n[e==="padding"?"paddingRight":"marginRight"];return[gO(l),gO(r),gO(o)]},TA=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return kA;var n=$A(e),l=document.documentElement.clientWidth,r=window.innerWidth;return{left:n[0],top:n[1],right:n[2],gap:Math.max(0,r-l+n[2]-n[0])}},NA=zS(),Dl="data-scroll-locked",PA=function(e,n,l,r){var o=e.left,d=e.top,u=e.right,f=e.gap;return l===void 0&&(l="margin"),`
|
|
604
|
-
.`.concat(uA,` {
|
|
605
|
-
overflow: hidden `).concat(r,`;
|
|
606
|
-
padding-right: `).concat(f,"px ").concat(r,`;
|
|
607
|
-
}
|
|
608
|
-
body[`).concat(Dl,`] {
|
|
609
|
-
overflow: hidden `).concat(r,`;
|
|
610
|
-
overscroll-behavior: contain;
|
|
611
|
-
`).concat([n&&"position: relative ".concat(r,";"),l==="margin"&&`
|
|
612
|
-
padding-left: `.concat(o,`px;
|
|
613
|
-
padding-top: `).concat(d,`px;
|
|
614
|
-
padding-right: `).concat(u,`px;
|
|
615
|
-
margin-left:0;
|
|
616
|
-
margin-top:0;
|
|
617
|
-
margin-right: `).concat(f,"px ").concat(r,`;
|
|
618
|
-
`),l==="padding"&&"padding-right: ".concat(f,"px ").concat(r,";")].filter(Boolean).join(""),`
|
|
619
|
-
}
|
|
620
|
-
|
|
621
|
-
.`).concat(Qc,` {
|
|
622
|
-
right: `).concat(f,"px ").concat(r,`;
|
|
623
|
-
}
|
|
624
|
-
|
|
625
|
-
.`).concat(jc,` {
|
|
626
|
-
margin-right: `).concat(f,"px ").concat(r,`;
|
|
627
|
-
}
|
|
628
|
-
|
|
629
|
-
.`).concat(Qc," .").concat(Qc,` {
|
|
630
|
-
right: 0 `).concat(r,`;
|
|
631
|
-
}
|
|
632
|
-
|
|
633
|
-
.`).concat(jc," .").concat(jc,` {
|
|
634
|
-
margin-right: 0 `).concat(r,`;
|
|
635
|
-
}
|
|
636
|
-
|
|
637
|
-
body[`).concat(Dl,`] {
|
|
638
|
-
`).concat(fA,": ").concat(f,`px;
|
|
639
|
-
}
|
|
640
|
-
`)},C0=function(){var e=parseInt(document.body.getAttribute(Dl)||"0",10);return isFinite(e)?e:0},zA=function(){v.useEffect(function(){return document.body.setAttribute(Dl,(C0()+1).toString()),function(){var e=C0()-1;e<=0?document.body.removeAttribute(Dl):document.body.setAttribute(Dl,e.toString())}},[])},CA=function(e){var n=e.noRelative,l=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;zA();var d=v.useMemo(function(){return TA(o)},[o]);return v.createElement(NA,{styles:PA(d,!n,o,l?"":"!important")})},VO=!1;if(typeof window<"u")try{var cc=Object.defineProperty({},"passive",{get:function(){return VO=!0,!0}});window.addEventListener("test",cc,cc),window.removeEventListener("test",cc,cc)}catch{VO=!1}var Rl=VO?{passive:!1}:!1,RA=function(e){return e.tagName==="TEXTAREA"},CS=function(e,n){if(!(e instanceof Element))return!1;var l=window.getComputedStyle(e);return l[n]!=="hidden"&&!(l.overflowY===l.overflowX&&!RA(e)&&l[n]==="visible")},_A=function(e){return CS(e,"overflowY")},AA=function(e){return CS(e,"overflowX")},R0=function(e,n){var l=n.ownerDocument,r=n;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=RS(e,r);if(o){var d=_S(e,r),u=d[1],f=d[2];if(u>f)return!0}r=r.parentNode}while(r&&r!==l.body);return!1},XA=function(e){var n=e.scrollTop,l=e.scrollHeight,r=e.clientHeight;return[n,l,r]},ZA=function(e){var n=e.scrollLeft,l=e.scrollWidth,r=e.clientWidth;return[n,l,r]},RS=function(e,n){return e==="v"?_A(n):AA(n)},_S=function(e,n){return e==="v"?XA(n):ZA(n)},EA=function(e,n){return e==="h"&&n==="rtl"?-1:1},qA=function(e,n,l,r,o){var d=EA(e,window.getComputedStyle(n).direction),u=d*r,f=l.target,h=n.contains(f),p=!1,g=u>0,x=0,b=0;do{if(!f)break;var y=_S(e,f),Q=y[0],w=y[1],k=y[2],j=w-k-d*Q;(Q||j)&&RS(e,f)&&(x+=j,b+=Q);var P=f.parentNode;f=P&&P.nodeType===Node.DOCUMENT_FRAGMENT_NODE?P.host:P}while(!h&&f!==document.body||h&&(n.contains(f)||n===f));return(g&&Math.abs(x)<1||!g&&Math.abs(b)<1)&&(p=!0),p},dc=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},_0=function(e){return[e.deltaX,e.deltaY]},A0=function(e){return e&&"current"in e?e.current:e},MA=function(e,n){return e[0]===n[0]&&e[1]===n[1]},YA=function(e){return`
|
|
641
|
-
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
642
|
-
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
643
|
-
`)},UA=0,_l=[];function VA(e){var n=v.useRef([]),l=v.useRef([0,0]),r=v.useRef(),o=v.useState(UA++)[0],d=v.useState(zS)[0],u=v.useRef(e);v.useEffect(function(){u.current=e},[e]),v.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var w=dA([e.lockRef.current],(e.shards||[]).map(A0),!0).filter(Boolean);return w.forEach(function(k){return k.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),w.forEach(function(k){return k.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var f=v.useCallback(function(w,k){if("touches"in w&&w.touches.length===2||w.type==="wheel"&&w.ctrlKey)return!u.current.allowPinchZoom;var j=dc(w),P=l.current,z="deltaX"in w?w.deltaX:P[0]-j[0],R="deltaY"in w?w.deltaY:P[1]-j[1],Y,X=w.target,C=Math.abs(z)>Math.abs(R)?"h":"v";if("touches"in w&&C==="h"&&X.type==="range")return!1;var T=window.getSelection(),I=T&&T.anchorNode,Z=I?I===X||I.contains(X):!1;if(Z)return!1;var K=R0(C,X);if(!K)return!0;if(K?Y=C:(Y=C==="v"?"h":"v",K=R0(C,X)),!K)return!1;if(!r.current&&"changedTouches"in w&&(z||R)&&(r.current=Y),!Y)return!0;var F=r.current||Y;return qA(F,k,w,F==="h"?z:R)},[]),h=v.useCallback(function(w){var k=w;if(!(!_l.length||_l[_l.length-1]!==d)){var j="deltaY"in k?_0(k):dc(k),P=n.current.filter(function(Y){return Y.name===k.type&&(Y.target===k.target||k.target===Y.shadowParent)&&MA(Y.delta,j)})[0];if(P&&P.should){k.cancelable&&k.preventDefault();return}if(!P){var z=(u.current.shards||[]).map(A0).filter(Boolean).filter(function(Y){return Y.contains(k.target)}),R=z.length>0?f(k,z[0]):!u.current.noIsolation;R&&k.cancelable&&k.preventDefault()}}},[]),p=v.useCallback(function(w,k,j,P){var z={name:w,delta:k,target:j,should:P,shadowParent:GA(j)};n.current.push(z),setTimeout(function(){n.current=n.current.filter(function(R){return R!==z})},1)},[]),g=v.useCallback(function(w){l.current=dc(w),r.current=void 0},[]),x=v.useCallback(function(w){p(w.type,_0(w),w.target,f(w,e.lockRef.current))},[]),b=v.useCallback(function(w){p(w.type,dc(w),w.target,f(w,e.lockRef.current))},[]);v.useEffect(function(){return _l.push(d),e.setCallbacks({onScrollCapture:x,onWheelCapture:x,onTouchMoveCapture:b}),document.addEventListener("wheel",h,Rl),document.addEventListener("touchmove",h,Rl),document.addEventListener("touchstart",g,Rl),function(){_l=_l.filter(function(w){return w!==d}),document.removeEventListener("wheel",h,Rl),document.removeEventListener("touchmove",h,Rl),document.removeEventListener("touchstart",g,Rl)}},[]);var y=e.removeScrollBar,Q=e.inert;return v.createElement(v.Fragment,null,Q?v.createElement(d,{styles:YA(o)}):null,y?v.createElement(CA,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function GA(e){for(var n=null;e!==null;)e instanceof ShadowRoot&&(n=e.host,e=e.host),e=e.parentNode;return n}const DA=bA(PS,VA);var AS=v.forwardRef(function(e,n){return v.createElement(fd,Pn({},e,{ref:n,sideCar:DA}))});AS.classNames=fd.classNames;var LA=function(e){if(typeof document>"u")return null;var n=Array.isArray(e)?e[0]:e;return n.ownerDocument.body},Al=new WeakMap,uc=new WeakMap,fc={},bO=0,XS=function(e){return e&&(e.host||XS(e.parentNode))},WA=function(e,n){return n.map(function(l){if(e.contains(l))return l;var r=XS(l);return r&&e.contains(r)?r:(console.error("aria-hidden",l,"in not contained inside",e,". Doing nothing"),null)}).filter(function(l){return!!l})},BA=function(e,n,l,r){var o=WA(n,Array.isArray(e)?e:[e]);fc[l]||(fc[l]=new WeakMap);var d=fc[l],u=[],f=new Set,h=new Set(o),p=function(x){!x||f.has(x)||(f.add(x),p(x.parentNode))};o.forEach(p);var g=function(x){!x||h.has(x)||Array.prototype.forEach.call(x.children,function(b){if(f.has(b))g(b);else try{var y=b.getAttribute(r),Q=y!==null&&y!=="false",w=(Al.get(b)||0)+1,k=(d.get(b)||0)+1;Al.set(b,w),d.set(b,k),u.push(b),w===1&&Q&&uc.set(b,!0),k===1&&b.setAttribute(l,"true"),Q||b.setAttribute(r,"true")}catch(j){console.error("aria-hidden: cannot operate on ",b,j)}})};return g(n),f.clear(),bO++,function(){u.forEach(function(x){var b=Al.get(x)-1,y=d.get(x)-1;Al.set(x,b),d.set(x,y),b||(uc.has(x)||x.removeAttribute(r),uc.delete(x)),y||x.removeAttribute(l)}),bO--,bO||(Al=new WeakMap,Al=new WeakMap,uc=new WeakMap,fc={})}},HA=function(e,n,l){l===void 0&&(l="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=LA(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),BA(r,o,l,"aria-hidden")):function(){return null}},Od="Dialog",[ZS]=Ls(Od),[IA,jn]=ZS(Od),ES=e=>{const{__scopeDialog:n,children:l,open:r,defaultOpen:o,onOpenChange:d,modal:u=!0}=e,f=v.useRef(null),h=v.useRef(null),[p,g]=td({prop:r,defaultProp:o??!1,onChange:d,caller:Od});return s.jsx(IA,{scope:n,triggerRef:f,contentRef:h,contentId:Yl(),titleId:Yl(),descriptionId:Yl(),open:p,onOpenChange:g,onOpenToggle:v.useCallback(()=>g(x=>!x),[g]),modal:u,children:l})};ES.displayName=Od;var qS="DialogTrigger",FA=v.forwardRef((e,n)=>{const{__scopeDialog:l,...r}=e,o=jn(qS,l),d=dt(n,o.triggerRef);return s.jsx(Je.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Gh(o.open),...r,ref:d,onClick:Ue(e.onClick,o.onOpenToggle)})});FA.displayName=qS;var Uh="DialogPortal",[KA,MS]=ZS(Uh,{forceMount:void 0}),YS=e=>{const{__scopeDialog:n,forceMount:l,children:r,container:o}=e,d=jn(Uh,n);return s.jsx(KA,{scope:n,forceMount:l,children:v.Children.map(r,u=>s.jsx(Sn,{present:l||d.open,children:s.jsx(lh,{asChild:!0,container:o,children:u})}))})};YS.displayName=Uh;var Lc="DialogOverlay",US=v.forwardRef((e,n)=>{const l=MS(Lc,e.__scopeDialog),{forceMount:r=l.forceMount,...o}=e,d=jn(Lc,e.__scopeDialog);return d.modal?s.jsx(Sn,{present:r||d.open,children:s.jsx(eX,{...o,ref:n})}):null});US.displayName=Lc;var JA=wc("DialogOverlay.RemoveScroll"),eX=v.forwardRef((e,n)=>{const{__scopeDialog:l,...r}=e,o=jn(Lc,l);return s.jsx(AS,{as:JA,allowPinchZoom:!0,shards:[o.contentRef],children:s.jsx(Je.div,{"data-state":Gh(o.open),...r,ref:n,style:{pointerEvents:"auto",...r.style}})})}),Vs="DialogContent",VS=v.forwardRef((e,n)=>{const l=MS(Vs,e.__scopeDialog),{forceMount:r=l.forceMount,...o}=e,d=jn(Vs,e.__scopeDialog);return s.jsx(Sn,{present:r||d.open,children:d.modal?s.jsx(tX,{...o,ref:n}):s.jsx(nX,{...o,ref:n})})});VS.displayName=Vs;var tX=v.forwardRef((e,n)=>{const l=jn(Vs,e.__scopeDialog),r=v.useRef(null),o=dt(n,l.contentRef,r);return v.useEffect(()=>{const d=r.current;if(d)return HA(d)},[]),s.jsx(GS,{...e,ref:o,trapFocus:l.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Ue(e.onCloseAutoFocus,d=>{var u;d.preventDefault(),(u=l.triggerRef.current)==null||u.focus()}),onPointerDownOutside:Ue(e.onPointerDownOutside,d=>{const u=d.detail.originalEvent,f=u.button===0&&u.ctrlKey===!0;(u.button===2||f)&&d.preventDefault()}),onFocusOutside:Ue(e.onFocusOutside,d=>d.preventDefault())})}),nX=v.forwardRef((e,n)=>{const l=jn(Vs,e.__scopeDialog),r=v.useRef(!1),o=v.useRef(!1);return s.jsx(GS,{...e,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:d=>{var u,f;(u=e.onCloseAutoFocus)==null||u.call(e,d),d.defaultPrevented||(r.current||(f=l.triggerRef.current)==null||f.focus(),d.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:d=>{var h,p;(h=e.onInteractOutside)==null||h.call(e,d),d.defaultPrevented||(r.current=!0,d.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const u=d.target;((p=l.triggerRef.current)==null?void 0:p.contains(u))&&d.preventDefault(),d.detail.originalEvent.type==="focusin"&&o.current&&d.preventDefault()}})}),GS=v.forwardRef((e,n)=>{const{__scopeDialog:l,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:d,...u}=e,f=jn(Vs,l),h=v.useRef(null),p=dt(n,h);return cA(),s.jsxs(s.Fragment,{children:[s.jsx(kS,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:d,children:s.jsx(IO,{role:"dialog",id:f.contentId,"aria-describedby":f.descriptionId,"aria-labelledby":f.titleId,"data-state":Gh(f.open),...u,ref:p,onDismiss:()=>f.onOpenChange(!1)})}),s.jsxs(s.Fragment,{children:[s.jsx(aX,{titleId:f.titleId}),s.jsx(lX,{contentRef:h,descriptionId:f.descriptionId})]})]})}),Vh="DialogTitle",DS=v.forwardRef((e,n)=>{const{__scopeDialog:l,...r}=e,o=jn(Vh,l);return s.jsx(Je.h2,{id:o.titleId,...r,ref:n})});DS.displayName=Vh;var LS="DialogDescription",WS=v.forwardRef((e,n)=>{const{__scopeDialog:l,...r}=e,o=jn(LS,l);return s.jsx(Je.p,{id:o.descriptionId,...r,ref:n})});WS.displayName=LS;var BS="DialogClose",HS=v.forwardRef((e,n)=>{const{__scopeDialog:l,...r}=e,o=jn(BS,l);return s.jsx(Je.button,{type:"button",...r,ref:n,onClick:Ue(e.onClick,()=>o.onOpenChange(!1))})});HS.displayName=BS;function Gh(e){return e?"open":"closed"}var IS="DialogTitleWarning",[EZ,FS]=Nw(IS,{contentName:Vs,titleName:Vh,docsSlug:"dialog"}),aX=({titleId:e})=>{const n=FS(IS),l=`\`${n.contentName}\` requires a \`${n.titleName}\` for the component to be accessible for screen reader users.
|
|
644
|
-
|
|
645
|
-
If you want to hide the \`${n.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
646
|
-
|
|
647
|
-
For more information, see https://radix-ui.com/primitives/docs/components/${n.docsSlug}`;return v.useEffect(()=>{e&&(document.getElementById(e)||console.error(l))},[l,e]),null},sX="DialogDescriptionWarning",lX=({contentRef:e,descriptionId:n})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${FS(sX).contentName}}.`;return v.useEffect(()=>{var d;const o=(d=e.current)==null?void 0:d.getAttribute("aria-describedby");n&&o&&(document.getElementById(n)||console.warn(r))},[r,e,n]),null},KS=ES,JS=YS,e2=US,t2=VS,n2=DS,a2=WS,s2=HS;function bi({children:e,...n}){return s.jsx(KS,{...n,children:e})}function vi({children:e,className:n,title:l,description:r,...o}){return s.jsxs(JS,{children:[s.jsx(e2,{className:"fixed inset-0 z-50 bg-black/50 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0"}),s.jsxs(t2,{className:oe("fixed left-1/2 top-1/2 z-50 -translate-x-1/2 -translate-y-1/2","w-full max-w-lg max-h-[85vh] overflow-y-auto","bg-surface-1 border border-border rounded-lg shadow-2xl","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0","data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95",n),...o,children:[l&&s.jsxs("div",{className:"flex items-center justify-between px-5 py-4 border-b border-border-subtle",children:[s.jsx(n2,{className:"text-base font-semibold text-text-0 font-sans",children:l}),s.jsx(s2,{className:"p-1 rounded-md text-text-3 hover:text-text-0 hover:bg-surface-5 transition-colors",children:s.jsx(Qt,{size:16})})]}),r&&s.jsx(a2,{className:"sr-only",children:r}),e]})]})}const Wc=v.forwardRef(({className:e,label:n,error:l,mono:r,...o},d)=>s.jsxs("div",{className:"flex flex-col gap-1",children:[n&&s.jsx("label",{className:"text-xs font-medium text-text-2 font-sans",children:n}),s.jsx("input",{ref:d,className:oe("h-8 w-full rounded-md px-3 text-sm","bg-surface-1 border border-border text-text-0","placeholder:text-text-4","focus:outline-none focus:ring-1 focus:ring-accent focus:border-accent","disabled:opacity-40 disabled:cursor-not-allowed","transition-colors duration-100",r?"font-mono":"font-sans",l&&"border-danger focus:ring-danger",e),...o}),l&&s.jsx("span",{className:"text-2xs text-danger font-sans",children:l})]}));Wc.displayName="Input";const rX=v.forwardRef(({className:e,label:n,error:l,mono:r,...o},d)=>s.jsxs("div",{className:"flex flex-col gap-1",children:[n&&s.jsx("label",{className:"text-xs font-medium text-text-2 font-sans",children:n}),s.jsx("textarea",{ref:d,className:oe("w-full rounded-md px-3 py-2 text-sm resize-none","bg-surface-1 border border-border text-text-0","placeholder:text-text-4","focus:outline-none focus:ring-1 focus:ring-accent focus:border-accent","disabled:opacity-40 disabled:cursor-not-allowed","transition-colors duration-100",r?"font-mono":"font-sans",l&&"border-danger focus:ring-danger",e),...o}),l&&s.jsx("span",{className:"text-2xs text-danger font-sans",children:l})]}));rX.displayName="Textarea";const iX={slack:"https://cdn.simpleicons.org/slack/E01E5A",github:"https://cdn.simpleicons.org/github/white",stripe:"https://cdn.simpleicons.org/stripe/635BFF",gmail:"https://cdn.simpleicons.org/gmail/EA4335","google-calendar":"https://cdn.simpleicons.org/googlecalendar/4285F4","google-drive":"https://cdn.simpleicons.org/googledrive/4285F4","google-docs":"https://cdn.simpleicons.org/googledocs/4285F4","google-sheets":"https://cdn.simpleicons.org/googlesheets/34A853","google-slides":"https://cdn.simpleicons.org/googleslides/FBBC04","google-maps":"https://cdn.simpleicons.org/googlemaps/4285F4",postgres:"https://cdn.simpleicons.org/postgresql/4169E1",notion:"https://cdn.simpleicons.org/notion/white",discord:"https://cdn.simpleicons.org/discord/5865F2",linear:"https://cdn.simpleicons.org/linear/5E6AD2","brave-search":"https://cdn.simpleicons.org/brave/FB542B","home-assistant":"https://cdn.simpleicons.org/homeassistant/18BCF2"};function Dh({item:e,size:n=48}){const l=iX[e.id];if(l)return s.jsx("div",{className:"rounded-lg bg-surface-4 flex items-center justify-center flex-shrink-0 overflow-hidden",style:{width:n,height:n},children:s.jsx("img",{src:l,alt:e.name,className:"w-6 h-6",onError:d=>{d.target.style.display="none"}})});const r=(e.name||"?")[0].toUpperCase(),o=e.name?e.name.charCodeAt(0)*37%360:200;return s.jsx("div",{className:"rounded-lg flex items-center justify-center flex-shrink-0 text-xl font-bold font-sans",style:{width:n,height:n,background:`hsl(${o}, 40%, 18%)`,color:`hsl(${o}, 60%, 65%)`},children:r})}function GO({value:e,onChange:n,placeholder:l,disabled:r}){const[o,d]=v.useState(!1);return s.jsxs("div",{className:"relative",children:[s.jsx(Wc,{type:o?"text":"password",value:e,onChange:u=>n(u.target.value),placeholder:l,disabled:r,mono:!0,className:"pr-9"}),s.jsx("button",{type:"button",onClick:()=>d(u=>!u),className:"absolute right-2 top-1/2 -translate-y-1/2 p-1 rounded text-text-4 hover:text-text-1 transition-colors cursor-pointer",tabIndex:-1,children:o?s.jsx(ld,{size:14}):s.jsx(Bs,{size:14})})]})}function oX({integrationId:e,envKey:n,onSaved:l}){const r=Yn(),[o,d]=v.useState(""),[u,f]=v.useState(!1),[h,p]=v.useState(n.set),[g,x]=v.useState(!1);async function b(){if(o.trim()){f(!0);try{await J.post(`/integrations/${e}/credentials`,{key:n.key,value:o.trim()}),p(!0),d(""),r.success(`${n.label} saved`),l==null||l()}catch(Q){r.error("Failed to save",Q.message)}f(!1)}}async function y(){x(!0);try{await J.delete(`/integrations/${e}/credentials/${n.key}`),p(!1),r.success(`${n.label} removed`),l==null||l()}catch(Q){r.error("Failed to remove",Q.message)}x(!1)}return s.jsxs("div",{className:"space-y-1.5",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsxs("label",{className:"text-xs font-medium text-text-2 font-sans flex items-center gap-1.5",children:[s.jsx(qs,{size:11,className:"text-text-4"}),n.label,n.required&&s.jsx("span",{className:"text-danger",children:"*"})]}),h&&s.jsxs("span",{className:"flex items-center gap-1 text-2xs text-success font-sans",children:[s.jsx(kt,{size:10})," Set"]})]}),h?s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("div",{className:"flex-1 h-8 rounded-md px-3 bg-surface-2 border border-border-subtle flex items-center",children:s.jsx("span",{className:"text-xs text-text-4 font-mono tracking-widest",children:"*".repeat(16)})}),s.jsx(ve,{variant:"ghost",size:"sm",onClick:y,disabled:g,className:"text-text-3 hover:text-danger",children:g?s.jsx(ht,{size:12,className:"animate-spin"}):s.jsx(Zn,{size:12})})]}):s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("div",{className:"flex-1",children:s.jsx(GO,{value:o,onChange:d,placeholder:n.placeholder||`Enter ${n.label.toLowerCase()}...`,disabled:u})}),s.jsx(ve,{variant:"primary",size:"sm",onClick:b,disabled:u||!o.trim(),children:u?s.jsx(ht,{size:12,className:"animate-spin"}):"Save"})]})]})}function cX({item:e,status:n,installing:l,onInstall:r,onUninstall:o,onNext:d}){var f;const u=n==null?void 0:n.installed;return s.jsxs("div",{className:"px-5 py-5 space-y-5",children:[s.jsxs("div",{className:"flex items-start gap-4",children:[s.jsx(Dh,{item:e,size:52}),s.jsxs("div",{className:"flex-1 min-w-0",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("h2",{className:"text-base font-bold text-text-0 font-sans",children:e.name}),(e.verified==="mcp-official"||e.verified==="verified")&&s.jsxs(Ce,{variant:"accent",className:"text-2xs gap-1",children:[s.jsx(Ms,{size:9})," Verified"]})]}),s.jsx("p",{className:"text-xs text-text-3 font-sans mt-0.5",children:e.author||"Community"}),e.category&&s.jsx(Ce,{variant:"default",className:"text-2xs mt-2",children:e.category})]})]}),s.jsx("p",{className:"text-sm text-text-2 font-sans leading-relaxed",children:e.description}),((f=e.tags)==null?void 0:f.length)>0&&s.jsx("div",{className:"flex flex-wrap gap-1.5",children:e.tags.map(h=>s.jsx("span",{className:"text-2xs text-text-3 font-sans px-2 py-0.5 rounded bg-surface-4",children:h},h))}),s.jsx("div",{className:"h-px bg-border-subtle"}),u?s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsxs("div",{className:"flex-1 flex items-center gap-2",children:[s.jsx(ls,{size:16,className:"text-success"}),s.jsx("span",{className:"text-sm font-medium text-success font-sans",children:"Installed"})]}),s.jsxs(ve,{variant:"ghost",size:"sm",onClick:o,className:"text-text-3 hover:text-danger gap-1.5",children:[s.jsx(Zn,{size:12})," Uninstall"]}),s.jsxs(ve,{variant:"primary",size:"sm",onClick:d,className:"gap-1",children:["Configure ",s.jsx(cs,{size:12})]})]}):s.jsx(ve,{variant:"primary",size:"lg",onClick:r,disabled:l,className:"w-full gap-2",children:l?s.jsxs(s.Fragment,{children:[s.jsx(ht,{size:14,className:"animate-spin"}),"Installing..."]}):"Install"}),l&&s.jsx("p",{className:"text-2xs text-text-4 font-sans text-center",children:"This may take up to 30 seconds..."})]})}const dX={gmail:"Gmail API","google-calendar":"Google Calendar API","google-drive":"Google Drive API","google-docs":"Google Docs API","google-sheets":"Google Sheets API","google-slides":"Google Slides API"};function l2({integrationId:e,onConfigured:n}){const l=Yn(),[r,o]=v.useState(""),[d,u]=v.useState(""),[f,h]=v.useState(!1),p=dX[e]||"the relevant Google API";async function g(){if(!(!r.trim()||!d.trim())){h(!0);try{await J.post("/integrations/google-oauth/setup",{clientId:r.trim(),clientSecret:d.trim()}),l.success("Google OAuth credentials saved"),n()}catch(y){l.error("Failed to save",y.message)}h(!1)}}const b=[{text:"Go to the Google Cloud Console and sign in with your Google account",link:{url:"https://console.cloud.google.com",label:"Open Google Cloud Console"}},{text:"Create a new project (or select an existing one). Any name is fine — this is just a container for your credentials."},{text:s.jsxs(s.Fragment,{children:["Enable the ",s.jsx("strong",{children:p})," — search for it in the API Library and click ",s.jsx("strong",{children:"Enable"})]}),link:{url:"https://console.cloud.google.com/apis/library",label:"Open API Library"}},{text:s.jsxs(s.Fragment,{children:["Go to ",s.jsx("strong",{children:"Credentials"})," and click ",s.jsx("strong",{children:"Create Credentials"})," → ",s.jsx("strong",{children:"OAuth client ID"})]}),link:{url:"https://console.cloud.google.com/apis/credentials",label:"Open Credentials page"}},{text:s.jsxs(s.Fragment,{children:["If prompted to configure the consent screen, choose ",s.jsx("strong",{children:"External"}),', fill in an app name (e.g. "Groove"), your email, and save. You can skip optional fields.']})},{text:s.jsxs(s.Fragment,{children:["For Application type, choose ",s.jsx("strong",{children:"Web application"}),". Give it any name."]})},{text:s.jsxs(s.Fragment,{children:["Under ",s.jsx("strong",{children:"Authorized redirect URIs"}),", click ",s.jsx("strong",{children:"Add URI"})," and paste this exact URL:"]}),copyable:"http://localhost:31415/api/integrations/oauth/callback"},{text:s.jsxs(s.Fragment,{children:["Click ",s.jsx("strong",{children:"Create"}),", then copy the ",s.jsx("strong",{children:"Client ID"})," and ",s.jsx("strong",{children:"Client Secret"})," and paste them below."]})}];return s.jsxs("div",{className:"space-y-4",children:[s.jsxs("div",{className:"bg-surface-2 rounded-md px-4 py-3 space-y-3",children:[s.jsx("span",{className:"text-xs font-semibold text-text-1 font-sans",children:"How to get your Google credentials"}),s.jsx("ol",{className:"space-y-2.5",children:b.map((y,Q)=>s.jsxs("li",{className:"flex gap-2.5 text-xs text-text-2 font-sans leading-relaxed",children:[s.jsxs("span",{className:"text-accent font-mono font-bold flex-shrink-0 w-4 text-right",children:[Q+1,"."]}),s.jsxs("div",{className:"min-w-0",children:[s.jsx("span",{children:y.text}),y.link&&s.jsxs("a",{href:y.link.url,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-1 text-2xs text-accent font-sans hover:underline mt-0.5",children:[s.jsx(Fl,{size:9}),y.link.label]}),y.copyable&&s.jsxs("div",{className:"mt-1.5 flex items-center gap-1.5",children:[s.jsx("code",{className:"flex-1 min-w-0 text-2xs font-mono text-accent bg-surface-4 px-2.5 py-1.5 rounded select-all break-all",children:y.copyable}),s.jsx("button",{type:"button",onClick:()=>{navigator.clipboard.writeText(y.copyable)},className:"flex-shrink-0 p-1.5 rounded text-text-3 hover:text-accent hover:bg-accent/10 transition-colors cursor-pointer",title:"Copy to clipboard",children:s.jsx(Rc,{size:12})})]})]})]},Q))})]}),s.jsx("div",{className:"bg-accent/8 border border-accent/15 rounded-md px-4 py-2.5",children:s.jsxs("p",{className:"text-2xs text-text-2 font-sans leading-relaxed",children:[s.jsx("strong",{className:"text-text-1",children:"One-time setup"})," — these same credentials work for Gmail, Calendar, Drive, Docs, Sheets, and Slides. You only need to do this once. For each integration, just enable the matching API in your Google Cloud project."]})}),s.jsx("div",{className:"h-px bg-border-subtle"}),s.jsxs("div",{className:"space-y-3",children:[s.jsxs("div",{className:"space-y-1.5",children:[s.jsxs("label",{className:"text-xs font-medium text-text-2 font-sans flex items-center gap-1.5",children:[s.jsx(qs,{size:11,className:"text-text-4"}),"Client ID ",s.jsx("span",{className:"text-danger",children:"*"})]}),s.jsx(GO,{value:r,onChange:o,placeholder:"123456789.apps.googleusercontent.com",disabled:f})]}),s.jsxs("div",{className:"space-y-1.5",children:[s.jsxs("label",{className:"text-xs font-medium text-text-2 font-sans flex items-center gap-1.5",children:[s.jsx(qs,{size:11,className:"text-text-4"}),"Client Secret ",s.jsx("span",{className:"text-danger",children:"*"})]}),s.jsx(GO,{value:d,onChange:u,placeholder:"GOCSPX-...",disabled:f})]})]}),s.jsx(ve,{variant:"primary",size:"lg",onClick:g,disabled:f||!r.trim()||!d.trim(),className:"w-full gap-2",children:f?s.jsxs(s.Fragment,{children:[s.jsx(ht,{size:14,className:"animate-spin"})," Saving..."]}):"Save Credentials"})]})}function uX({item:e,status:n,onDone:l,onRefreshStatus:r}){var w;const o=Yn(),[d,u]=v.useState(!1),[f,h]=v.useState(null),p=e.authType,g=p==="google-autoauth"||p==="oauth-google";v.useEffect(()=>{g&&J.get("/integrations/google-oauth/status").then(k=>h(k.configured)).catch(()=>h(!1))},[g]);async function x(){u(!0);try{const k=await J.post(`/integrations/${e.id}/oauth/start`);k.url&&(window.open(k.url,"_blank","noopener"),o.success("Browser opened — complete sign-in there"))}catch(k){o.error("Sign-in failed",k.message)}u(!1)}const b=(n==null?void 0:n.envKeys)||[],y=b.filter(k=>k.required&&!k.hidden),Q=y.length===0||y.every(k=>k.set);return s.jsxs("div",{className:"px-5 py-5 space-y-5",children:[s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx(Dh,{item:e,size:36}),s.jsxs("div",{children:[s.jsxs("h2",{className:"text-sm font-bold text-text-0 font-sans",children:["Configure ",e.name]}),s.jsx("p",{className:"text-2xs text-text-3 font-sans",children:"Set up credentials to connect"})]})]}),((w=e.setupSteps)==null?void 0:w.length)>0&&!(g&&f===!1)&&s.jsxs("div",{className:"bg-surface-2 rounded-md px-4 py-3 space-y-2",children:[s.jsx("span",{className:"text-xs font-semibold text-text-1 font-sans",children:"Setup guide"}),s.jsx("ol",{className:"space-y-1.5",children:e.setupSteps.map((k,j)=>s.jsxs("li",{className:"flex gap-2 text-xs text-text-2 font-sans leading-relaxed",children:[s.jsxs("span",{className:"text-text-4 font-mono flex-shrink-0 w-4 text-right",children:[j+1,"."]}),s.jsx("span",{children:k})]},j))}),e.setupUrl&&s.jsxs("a",{href:e.setupUrl,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1 text-xs text-accent font-sans hover:underline mt-1",children:[s.jsx(Fl,{size:11}),new URL(e.setupUrl).hostname]})]}),!(g&&f===!1)&&s.jsx("div",{className:"h-px bg-border-subtle"}),p==="api-key"&&s.jsx("div",{className:"space-y-4",children:b.filter(k=>!k.hidden).map(k=>s.jsx(oX,{integrationId:e.id,envKey:k,onSaved:r},k.key))}),g&&f===!1&&s.jsx(l2,{integrationId:e.id,onConfigured:()=>h(!0)}),g&&f&&s.jsxs("div",{className:"space-y-3",children:[s.jsx(ve,{variant:"primary",size:"lg",onClick:x,disabled:d,className:"w-full gap-2",children:d?s.jsxs(s.Fragment,{children:[s.jsx(ht,{size:14,className:"animate-spin"}),"Opening browser..."]}):s.jsxs(s.Fragment,{children:[s.jsx("img",{src:"https://cdn.simpleicons.org/google/white",alt:"",className:"w-4 h-4"}),"Sign in with Google"]})}),s.jsxs("p",{className:"text-2xs text-text-4 font-sans text-center",children:["A browser window will open — sign in and allow access to your ",e.name]}),s.jsx("button",{type:"button",onClick:()=>h(!1),className:"w-full text-2xs text-text-4 font-sans hover:text-text-2 transition-colors cursor-pointer py-1",children:"Reconfigure Google OAuth credentials"})]}),g&&f===null&&s.jsx("div",{className:"flex justify-center py-3",children:s.jsx(ht,{size:16,className:"animate-spin text-text-4"})}),s.jsx(ve,{variant:Q?"primary":"secondary",size:"lg",onClick:l,className:"w-full gap-1.5",children:Q?s.jsxs(s.Fragment,{children:[s.jsx(kt,{size:14}),"Done"]}):"Skip for now"})]})}function fX({item:e,onClose:n}){return s.jsxs("div",{className:"px-5 py-10 flex flex-col items-center text-center space-y-4",children:[s.jsx("div",{className:"w-14 h-14 rounded-full bg-success/15 flex items-center justify-center",children:s.jsx(ls,{size:28,className:"text-success"})}),s.jsxs("div",{children:[s.jsx("h2",{className:"text-base font-bold text-text-0 font-sans",children:"Integration ready"}),s.jsxs("p",{className:"text-sm text-text-3 font-sans mt-1",children:[e.name," is installed and configured. Agents can now use it."]})]}),s.jsx(ve,{variant:"primary",size:"lg",onClick:n,className:"mt-2",children:"Close"})]})}function r2({integration:e,open:n,onClose:l}){const r=Yn(),[o,d]=v.useState("overview"),[u,f]=v.useState(null),[h,p]=v.useState(!1),[g,x]=v.useState(!0),b=e==null?void 0:e.id,y=v.useCallback(async()=>{if(b){try{const P=await J.get(`/integrations/${b}/status`);f(P)}catch{f(null)}x(!1)}},[b]);v.useEffect(()=>{n&&e&&(d("overview"),x(!0),y())},[n,e,y]);async function Q(){p(!0);try{await J.post(`/integrations/${e.id}/install`),r.success(`${e.name} installed`),await y(),d("configure")}catch(P){r.error("Install failed",P.message)}p(!1)}async function w(){try{await J.delete(`/integrations/${e.id}`),r.success(`${e.name} uninstalled`),await y()}catch(P){r.error("Uninstall failed",P.message)}}function k(){d("configure")}function j(){d("done")}return e?s.jsx(bi,{open:n,onOpenChange:P=>{P||l()},children:s.jsx(vi,{title:o==="overview"?e.name:o==="configure"?"Configure":"Complete",description:`Setup wizard for ${e.name}`,className:"max-w-md",children:g?s.jsx("div",{className:"px-5 py-10 flex items-center justify-center",children:s.jsx(ht,{size:20,className:"animate-spin text-text-4"})}):o==="overview"?s.jsx(cX,{item:e,status:u,installing:h,onInstall:Q,onUninstall:w,onNext:k}):o==="configure"?s.jsx(uX,{item:e,status:u,onDone:j,onRefreshStatus:y}):s.jsx(fX,{item:e,onClose:l})})}):null}const OX=["gmail","google-calendar","google-drive","google-docs","google-sheets","google-slides"];function hX({item:e,status:n,onInstall:l,onUninstall:r,busy:o}){const d=n==null?void 0:n.installed,u=n==null?void 0:n.authenticated;return s.jsxs("div",{className:"flex items-center gap-3 px-3 py-2.5 rounded-md bg-surface-2 border border-border-subtle",children:[s.jsx(Dh,{item:e,size:32}),s.jsxs("div",{className:"flex-1 min-w-0",children:[s.jsx("div",{className:"text-xs font-semibold text-text-0 font-sans",children:e.name}),s.jsx("div",{className:"text-2xs text-text-3 font-sans truncate",children:e.description})]}),d&&u&&!(n!=null&&n.needsReauth)&&s.jsxs(Ce,{variant:"success",className:"text-2xs flex-shrink-0 gap-1",children:[s.jsx(kt,{size:8})," Ready"]}),d&&u&&(n==null?void 0:n.needsReauth)&&s.jsxs(Ce,{variant:"warning",className:"text-2xs flex-shrink-0 gap-1",children:[s.jsx(Qn,{size:8})," Update"]}),d&&!u&&s.jsx(Ce,{variant:"warning",className:"text-2xs flex-shrink-0",children:"Needs sign-in"}),s.jsx(ve,{variant:d?"ghost":"primary",size:"sm",onClick:()=>d?r(e.id):l(e.id),disabled:o===e.id,className:d?"text-text-3 hover:text-danger":"",children:o===e.id?s.jsx(ht,{size:12,className:"animate-spin"}):d?s.jsx(Zn,{size:12}):"Install"})]})}function mX({integrations:e,open:n,onClose:l}){const r=Yn(),[o,d]=v.useState(null),[u,f]=v.useState({}),[h,p]=v.useState(null),[g,x]=v.useState(!1),[b,y]=v.useState(!0),Q=v.useRef(null),w=e.filter(C=>OX.includes(C.id)),k=v.useCallback(async()=>{const C={};await Promise.all(w.map(async T=>{try{C[T.id]=await J.get(`/integrations/${T.id}/status`)}catch{C[T.id]=null}})),f(C),y(!1)},[w.map(C=>C.id).join(",")]);v.useEffect(()=>(n&&(y(!0),J.get("/integrations/google-oauth/status").then(C=>d(C.configured)).catch(()=>d(!1)),k()),()=>{Q.current&&clearInterval(Q.current)}),[n]);const j=Object.entries(u).filter(([,C])=>C==null?void 0:C.installed).map(([C])=>C),P=j.length>0&&j.every(C=>{var T;return(T=u[C])==null?void 0:T.authenticated});j.some(C=>{var T;return!((T=u[C])!=null&&T.authenticated)});const z=P&&j.some(C=>{var T;return(T=u[C])==null?void 0:T.needsReauth});async function R(C){var T;p(C);try{await J.post(`/integrations/${C}/install`),r.success(`${(T=w.find(I=>I.id===C))==null?void 0:T.name} installed`),await k()}catch(I){r.error("Install failed",I.message)}p(null)}async function Y(C){var T;p(C);try{await J.delete(`/integrations/${C}`),r.success(`${(T=w.find(I=>I.id===C))==null?void 0:T.name} removed`),await k()}catch(I){r.error("Uninstall failed",I.message)}p(null)}async function X(){if(!j.length){r.error("Install at least one service first");return}x(!0);try{const C=await J.post("/integrations/google-workspace/oauth/start",{integrationIds:j});C.url&&(window.open(C.url,"_blank","noopener"),r.success("Browser opened — complete sign-in there"),Q.current&&clearInterval(Q.current),Q.current=setInterval(async()=>{await k()},3e3),setTimeout(()=>{Q.current&&clearInterval(Q.current)},18e4))}catch(C){r.error("Sign-in failed",C.message)}x(!1)}return v.useEffect(()=>{P&&Q.current&&(clearInterval(Q.current),Q.current=null)},[P]),n?s.jsx(bi,{open:n,onOpenChange:C=>{C||l()},children:s.jsx(vi,{title:"Google Workspace",description:"Connect your Google services",className:"max-w-md",children:s.jsxs("div",{className:"px-5 py-5 space-y-5",children:[s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx("div",{className:"w-11 h-11 rounded-lg bg-surface-4 flex items-center justify-center flex-shrink-0",children:s.jsx("img",{src:"https://cdn.simpleicons.org/google/white",alt:"Google",className:"w-6 h-6"})}),s.jsxs("div",{children:[s.jsx("h2",{className:"text-sm font-bold text-text-0 font-sans",children:"Google Workspace"}),s.jsx("p",{className:"text-2xs text-text-3 font-sans",children:"One set of credentials for all Google services"})]})]}),o===!1&&s.jsx(l2,{integrationId:"gmail",onConfigured:()=>d(!0)}),o===null&&s.jsx("div",{className:"flex justify-center py-3",children:s.jsx(ht,{size:16,className:"animate-spin text-text-4"})}),o&&s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"space-y-1.5",children:[s.jsx("span",{className:"text-xs font-semibold text-text-2 font-sans",children:"Services"}),s.jsx("div",{className:"space-y-1.5",children:b?Array.from({length:4}).map((C,T)=>s.jsx("div",{className:"h-14 rounded-md bg-surface-2 animate-pulse"},T)):w.map(C=>s.jsx(hX,{item:C,status:u[C.id],onInstall:R,onUninstall:Y,busy:h},C.id))})]}),s.jsx("div",{className:"h-px bg-border-subtle"}),j.length>0&&!P&&s.jsxs("div",{className:"space-y-3",children:[s.jsx(ve,{variant:"primary",size:"lg",onClick:X,disabled:g,className:"w-full gap-2",children:g?s.jsxs(s.Fragment,{children:[s.jsx(ht,{size:14,className:"animate-spin"})," Opening browser..."]}):s.jsxs(s.Fragment,{children:[s.jsx("img",{src:"https://cdn.simpleicons.org/google/white",alt:"",className:"w-4 h-4"}),"Sign in with Google"]})}),s.jsxs("p",{className:"text-2xs text-text-4 font-sans text-center",children:["Connects ",j.length," service",j.length!==1?"s":""," with one sign-in"]})]}),P&&j.length>0&&s.jsxs("div",{className:"flex flex-col items-center text-center gap-2 py-2",children:[s.jsx("div",{className:"w-10 h-10 rounded-full bg-success/15 flex items-center justify-center",children:s.jsx(ls,{size:20,className:"text-success"})}),s.jsx("p",{className:"text-sm font-medium text-success font-sans",children:"All services connected"}),s.jsx("p",{className:"text-2xs text-text-3 font-sans",children:"Your agents can now use these Google integrations."}),z?s.jsxs("div",{className:"w-full space-y-2 pt-2",children:[s.jsx("p",{className:"text-2xs text-warning font-sans",children:"New permissions available — re-authenticate to enable all features."}),s.jsx(ve,{variant:"secondary",size:"sm",onClick:X,disabled:g,className:"w-full gap-2",children:g?s.jsxs(s.Fragment,{children:[s.jsx(ht,{size:12,className:"animate-spin"})," Opening browser..."]}):s.jsxs(s.Fragment,{children:[s.jsx(Qn,{size:12})," Re-authenticate"]})})]}):s.jsx("button",{onClick:X,disabled:g,className:"text-2xs text-text-4 hover:text-text-2 font-sans underline underline-offset-2 transition-colors mt-1",children:g?"Opening browser...":"Re-authenticate"})]}),j.length===0&&!b&&s.jsx("p",{className:"text-xs text-text-4 font-sans text-center py-2",children:"Install at least one service above, then connect with Google."})]}),s.jsx(ve,{variant:"secondary",size:"lg",onClick:l,className:"w-full",children:P&&j.length>0?"Done":"Close"})]})})}):null}function i2({skill:e,onBack:n}){var Y,X,C;const l=Yn(),[r,o]=v.useState(""),[d,u]=v.useState(!1),[f,h]=v.useState(!1),[p,g]=v.useState(!1),[x,b]=v.useState(!1),[y,Q]=v.useState(e.installed),[w,k]=v.useState(!0);v.useEffect(()=>{k(!0),J.get(`/skills/${e.id}/content`).then(T=>{o(T.content||""),u(T.requiresPurchase||!1)}).catch(()=>{}).finally(()=>k(!1))},[e.id]);async function j(){h(!0);try{await J.post(`/skills/${e.id}/install`),Q(!0),l.success(`${e.name} installed`)}catch(T){l.error("Install failed",T.message)}h(!1)}async function P(){g(!0);try{await J.post(`/skills/${e.id}/update`),l.success(`${e.name} updated to latest`);const T=await J.get(`/skills/${e.id}/content`);T.content&&o(T.content)}catch(T){l.error("Update failed",T.message)}g(!1)}async function z(){b(!0);try{await J.delete(`/skills/${e.id}`),Q(!1),l.success(`${e.name} uninstalled`)}catch(T){l.error("Uninstall failed",T.message)}b(!1)}async function R(){const{marketplaceAuthenticated:T,marketplaceLogin:I,marketplaceCheckout:Z}=B.getState();if(!T){I();return}try{await Z(e.id)}catch{}}return s.jsx(Mn,{className:"h-full",children:s.jsxs("div",{className:"px-6 py-5",children:[s.jsxs("button",{onClick:n,className:"flex items-center gap-1 text-xs text-text-3 font-sans hover:text-text-0 cursor-pointer bg-transparent border-0 mb-4",children:[s.jsx(Kb,{size:14})," Back"]}),s.jsxs("div",{className:"flex gap-8",children:[s.jsxs("div",{className:"flex-1 min-w-0",children:[s.jsxs("div",{className:"flex items-start gap-3",children:[s.jsx("div",{className:"w-11 h-11 rounded-lg flex items-center justify-center flex-shrink-0 bg-accent/10 border border-accent/20 text-[22px]",children:e.icon||((X=(Y=e.name)==null?void 0:Y[0])==null?void 0:X.toUpperCase())}),s.jsxs("div",{className:"flex-1 min-w-0",children:[s.jsx("h1",{className:"text-lg font-bold text-text-0 font-sans",children:e.name}),s.jsxs("div",{className:"flex items-center gap-2 mt-0.5 text-xs text-text-3 font-sans",children:[s.jsx("span",{children:e.author||"Community"}),(e.source==="claude-official"||e.verified)&&s.jsx(QS,{type:e.source,size:13})]})]})]}),s.jsx("p",{className:"mt-3 text-sm text-text-2 font-sans leading-relaxed",children:e.description}),((C=e.tags)==null?void 0:C.length)>0&&s.jsx("div",{className:"flex flex-wrap gap-1.5 mt-3",children:e.tags.map(T=>s.jsx("span",{className:"text-2xs text-text-3 font-sans px-2 py-0.5 rounded bg-surface-4",children:T},T))}),s.jsx("div",{className:"h-px bg-border-subtle my-5"}),w?s.jsxs("div",{className:"space-y-2",children:[s.jsx("div",{className:"h-3 w-48 bg-surface-4 rounded animate-pulse"}),s.jsx("div",{className:"h-3 w-full bg-surface-4 rounded animate-pulse"}),s.jsx("div",{className:"h-3 w-3/4 bg-surface-4 rounded animate-pulse"})]}):r?s.jsxs("div",{className:"text-sm text-text-2 font-sans leading-relaxed",children:[s.jsx("h2",{className:"text-sm font-semibold text-text-0 mb-2",children:"About"}),s.jsx("pre",{className:"whitespace-pre-wrap font-sans",children:r})]}):d?s.jsxs("div",{className:"bg-warning/5 border border-warning/15 rounded-lg px-4 py-3",children:[s.jsx("p",{className:"text-sm text-text-1 font-sans font-medium",children:"Paid skill — purchase to view content"}),s.jsx("p",{className:"text-xs text-text-3 font-sans mt-1",children:"Sign in and purchase this skill to access its full instructions."})]}):s.jsx("p",{className:"text-xs text-text-4 font-sans",children:"Content loading failed — check your connection."})]}),s.jsx("div",{className:"w-[240px] flex-shrink-0",children:s.jsxs("div",{className:"bg-surface-1 border border-border-subtle rounded-lg p-4 sticky top-4",children:[s.jsx(SS,{price:e.price||0,size:"md"}),d&&!y?s.jsxs("button",{onClick:R,className:"w-full mt-3 py-2 px-3 text-xs font-sans font-semibold rounded cursor-pointer transition-all hover:opacity-85 flex items-center justify-center gap-2 border bg-warning/15 text-warning border-warning/20 hover:bg-warning/25",children:["Buy $",(e.price||0).toFixed(2)]}):y?s.jsxs("div",{className:"mt-3 flex flex-col gap-1.5",children:[s.jsxs("button",{onClick:P,disabled:p,className:"w-full py-2 px-3 text-xs font-sans font-semibold rounded cursor-pointer transition-all hover:opacity-85 disabled:opacity-60 disabled:cursor-not-allowed flex items-center justify-center gap-2 border bg-accent/15 text-accent border-accent/20 hover:bg-accent/25",children:[s.jsx(Qn,{size:12,className:p?"animate-spin":""}),p?"Updating...":"Pull Latest"]}),s.jsxs("button",{onClick:z,disabled:x,className:"w-full py-2 px-3 text-xs font-sans font-semibold rounded cursor-pointer transition-all hover:opacity-85 disabled:opacity-60 disabled:cursor-not-allowed flex items-center justify-center gap-2 border bg-error/10 text-error border-error/20 hover:bg-error/15",children:[s.jsx(Zn,{size:12}),x?"Removing...":"Uninstall"]})]}):s.jsx("button",{onClick:j,disabled:f,className:"w-full mt-3 py-2 px-3 text-xs font-sans font-semibold rounded cursor-pointer transition-all hover:opacity-85 disabled:opacity-60 disabled:cursor-not-allowed flex items-center justify-center gap-2 border bg-accent/15 text-accent border-accent/20 hover:bg-accent/25",children:f?"Installing...":"Install"}),s.jsx("div",{className:"mt-4 flex flex-col gap-2.5",children:[["Downloads",s.jsx("span",{className:"font-mono text-text-0",children:Ie(e.downloads||0)},"d")],["Rating",s.jsx(vS,{rating:e.rating||0,count:e.rating_count||e.ratingCount,size:"sm"},"r")],["Version",s.jsx("span",{className:"font-mono text-text-0",children:e.version||"1.0.0"},"v")],["Category",s.jsx(yS,{label:e.category||"general",variant:e.category||"draft"},"c")],["Source",s.jsx("span",{className:"text-text-0",children:e.source==="claude-official"?"Anthropic":"Community"},"s")]].map(([T,I])=>s.jsxs("div",{className:"flex justify-between items-center text-xs font-sans",children:[s.jsx("span",{className:"text-text-3",children:T}),I]},T))})]})})]})]})})}function pX(){const[e,n]=v.useState([]),[l,r]=v.useState(!0),[o,d]=v.useState(""),[u,f]=v.useState(""),[h,p]=v.useState("popular"),[g,x]=v.useState(null);return v.useEffect(()=>{r(!0);const b=new URLSearchParams;o&&b.set("search",o),u&&b.set("category",u),h&&b.set("sort",h),J.get(`/skills/registry?${b}`).then(y=>n(B_(y.skills||y.items||(Array.isArray(y)?y:[])))).catch(()=>n([])).finally(()=>r(!1))},[o,u,h]),g?s.jsx(i2,{skill:g,onBack:()=>x(null)}):s.jsx(Mn,{className:"h-full",children:s.jsxs("div",{className:"px-5 py-4",children:[s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx("div",{className:"w-72",children:s.jsx(Yh,{value:o,onChange:d})}),s.jsx(tA,{selected:u,onSelect:f}),s.jsx("div",{className:"flex-1"}),s.jsxs("div",{className:"relative flex-shrink-0",children:[s.jsxs("select",{value:h,onChange:b=>p(b.target.value),className:"appearance-none font-sans cursor-pointer pr-7 py-2 pl-3 text-xs bg-surface-0 border border-border-subtle rounded text-text-1 focus:outline-none",children:[s.jsx("option",{value:"popular",children:"Popular"}),s.jsx("option",{value:"rating",children:"Top Rated"}),s.jsx("option",{value:"newest",children:"Newest"}),s.jsx("option",{value:"name",children:"A-Z"})]}),s.jsx(_n,{size:12,className:"absolute right-2 top-1/2 -translate-y-1/2 text-text-4 pointer-events-none"})]}),s.jsx("span",{className:"text-2xs text-text-4 font-mono flex-shrink-0",children:e.length})]}),s.jsx("div",{className:"mt-4 grid gap-3",style:{gridTemplateColumns:"repeat(auto-fill, minmax(240px, 1fr))"},children:l?Array.from({length:8}).map((b,y)=>s.jsx(wS,{},y)):e.map(b=>s.jsx(F_,{skill:b,onClick:x},b.id))}),!l&&e.length===0&&s.jsx("div",{className:"text-center py-16 text-text-4 font-sans text-sm",children:"No skills found."})]})})}const X0=new Set(["gmail","google-calendar","google-drive","google-docs","google-sheets","google-slides"]);function xX(){const[e,n]=v.useState([]),[l,r]=v.useState(!0),[o,d]=v.useState(""),[u,f]=v.useState(null),[h,p]=v.useState(!1),[g,x]=v.useState(!1),b=()=>{r(!0),J.get(`/integrations/registry?search=${encodeURIComponent(o)}`).then(z=>n(z.integrations||z.items||(Array.isArray(z)?z:[]))).catch(()=>n([])).finally(()=>r(!1))};v.useEffect(()=>{b()},[o]);const y=e.filter(z=>X0.has(z.id)),Q=e.filter(z=>!X0.has(z.id)),w=y.filter(z=>z.installed).length;function k(z){f(z),p(!0)}function j(){p(!1),f(null),b()}const P=!o||"google workspace gmail calendar drive docs sheets slides".includes(o.toLowerCase());return s.jsxs(Mn,{className:"h-full",children:[s.jsxs("div",{className:"px-5 py-4",children:[s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx("div",{className:"w-72",children:s.jsx(Yh,{value:o,onChange:d,placeholder:"Search integrations..."})}),s.jsx("div",{className:"flex-1"}),s.jsx("span",{className:"text-2xs text-text-4 font-mono flex-shrink-0",children:Q.length+(y.length>0?1:0)})]}),s.jsx("div",{className:"mt-4 grid gap-3",style:{gridTemplateColumns:"repeat(auto-fill, minmax(240px, 1fr))"},children:l?Array.from({length:6}).map((z,R)=>s.jsx(wS,{},R)):s.jsxs(s.Fragment,{children:[y.length>0&&P&&s.jsx(Dc,{item:{id:"google-workspace",name:"Google Workspace",description:"Gmail, Calendar, Drive, Docs, Sheets, Slides — one sign-in for all",category:"productivity",tags:["google","email","calendar","drive","docs"],verified:"mcp-official",installed:w>0,_installedCount:w},onClick:()=>x(!0)},"google-workspace"),Q.map(z=>s.jsx(Dc,{item:z,onClick:()=>k(z)},z.id))]})}),!l&&Q.length===0&&y.length===0&&s.jsx("div",{className:"text-center py-16 text-text-4 font-sans text-sm",children:"No integrations found."})]}),s.jsx(r2,{integration:u,open:h,onClose:j}),s.jsx(mX,{integrations:e,open:g,onClose:()=>{x(!1),b()}})]})}function gX(){const e=B(V=>V.marketplaceAuthenticated),n=B(V=>V.marketplaceLogin),[l,r]=v.useState([]),[o,d]=v.useState([]),[u,f]=v.useState([]),[h,p]=v.useState(!0),[g,x]=v.useState("all"),[b,y]=v.useState(""),[Q,w]=v.useState(null),[k,j]=v.useState(null),[P,z]=v.useState(!1),R=Yn(),Y=v.useRef(null),X=async()=>{const[V,M]=await Promise.all([J.get("/skills/installed").catch(()=>[]),J.get("/integrations/installed").catch(()=>[])]);d(Array.isArray(V)?V:V.skills||[]),f(Array.isArray(M)?M:M.integrations||[])};v.useEffect(()=>{p(!0),Promise.all([e?J.get("/auth/purchases").then(V=>V.purchases||[]).catch(()=>[]):Promise.resolve([]),J.get("/skills/installed").then(V=>Array.isArray(V)?V:V.skills||[]).catch(()=>[]),J.get("/integrations/installed").then(V=>Array.isArray(V)?V:V.integrations||[]).catch(()=>[])]).then(([V,M,N])=>{r(V),d(M),f(N)}).finally(()=>p(!1))},[e]);async function C(V){var N;const M=(N=V.target.files)==null?void 0:N[0];if(M){try{const U=await M.text(),ee=M.name.replace(/\.md$/i,"");await J.post("/skills/import",{name:ee,content:U}),R.success(`Imported "${ee}"`),await X()}catch(U){R.error("Import failed",U.message)}V.target.value=""}}if(Q)return s.jsx(i2,{skill:Q,onBack:()=>w(null)});const T=b.toLowerCase(),I=g==="all"||g==="skills"?o.filter(V=>!T||(V.name||V.id||"").toLowerCase().includes(T)||(V.description||"").toLowerCase().includes(T)):[],Z=g==="all"||g==="integrations"?u.filter(V=>!T||(V.name||V.id||"").toLowerCase().includes(T)||(V.description||"").toLowerCase().includes(T)):[],K=[...I.map(V=>({...V,_type:"skill"})),...Z.map(V=>({...V,_type:"integration"}))],F=[{id:"all",label:"All"},{id:"skills",label:"Skills"},{id:"integrations",label:"Integrations"}],G={all:"No skills or integrations installed yet. Visit the Marketplace to get started.",skills:"No skills installed.",integrations:"No integrations installed."};return h?s.jsx("div",{className:"p-5 space-y-3",children:[...Array(4)].map((V,M)=>s.jsx(dn,{className:"h-14 rounded-md"},M))}):s.jsxs(Mn,{className:"h-full",children:[s.jsxs("div",{className:"px-5 py-4 space-y-5",children:[s.jsxs("div",{className:"flex items-center gap-3 flex-wrap",children:[s.jsx("div",{className:"w-72",children:s.jsx(Yh,{value:b,onChange:y,placeholder:"Search library..."})}),s.jsx("div",{className:"flex items-center gap-1",children:F.map(V=>s.jsx("button",{onClick:()=>x(V.id),className:`px-3 py-1.5 text-xs font-semibold font-sans rounded-full cursor-pointer select-none transition-colors ${g===V.id?"bg-accent/15 text-accent border border-accent/25":"text-text-3 hover:text-text-1 border border-transparent hover:border-border-subtle"}`,children:V.label},V.id))}),s.jsx("div",{className:"flex-1"}),s.jsx("input",{ref:Y,type:"file",accept:".md",onChange:C,className:"hidden"}),s.jsxs(ve,{variant:"secondary",size:"md",onClick:()=>{var V;return(V=Y.current)==null?void 0:V.click()},className:"gap-1.5",children:[s.jsx(aP,{size:13}),"Import .md"]}),s.jsx("span",{className:"text-2xs text-text-4 font-mono flex-shrink-0",children:K.length})]}),e&&l.length>0&&s.jsxs("div",{children:[s.jsxs("h3",{className:"text-xs font-semibold text-text-2 font-sans uppercase tracking-wider mb-3 flex items-center gap-1.5",children:[s.jsx(Mf,{size:12}),"Purchases (",l.length,")"]}),s.jsx("div",{className:"space-y-1.5",children:l.map(V=>{var M,N;return s.jsxs("div",{className:"flex items-center gap-3 px-3 py-2.5 rounded-md bg-surface-1 border border-border-subtle",children:[s.jsx("div",{className:"w-8 h-8 rounded-md bg-accent/10 flex items-center justify-center text-sm flex-shrink-0",children:V.skill_icon||((N=(M=V.skill_name)==null?void 0:M[0])==null?void 0:N.toUpperCase())||"?"}),s.jsxs("div",{className:"flex-1 min-w-0",children:[s.jsx("div",{className:"text-xs font-semibold text-text-0 font-sans truncate",children:V.skill_name||V.skill_id}),s.jsxs("div",{className:"text-2xs text-text-4 font-sans",children:["$",(V.amount||0).toFixed(2)," · ",jt(V.created_at)]})]}),s.jsx(Ce,{variant:"success",className:"text-2xs flex-shrink-0",children:"Owned"})]},V.id||V.skill_id)})})]}),e&&l.length===0&&s.jsxs("div",{className:"bg-surface-1 border border-border-subtle rounded-md px-4 py-6 text-center",children:[s.jsx(Mf,{size:20,className:"mx-auto text-text-4 mb-2"}),s.jsx("p",{className:"text-xs text-text-3 font-sans",children:"No purchases yet"})]}),!e&&s.jsxs("div",{className:"bg-surface-1 border border-border-subtle rounded-md px-4 py-6 text-center",children:[s.jsx(Mf,{size:20,className:"mx-auto text-text-4 mb-2"}),s.jsx("p",{className:"text-xs text-text-2 font-sans mb-3",children:"Sign in to see your purchases"}),s.jsxs(ve,{variant:"primary",size:"sm",onClick:n,className:"gap-1.5 mx-auto",children:[s.jsx(Oh,{size:12})," Sign in"]})]}),K.length>0?s.jsx("div",{className:"grid gap-3",style:{gridTemplateColumns:"repeat(auto-fill, minmax(240px, 1fr))"},children:K.map(V=>V._type==="skill"?s.jsx(Dc,{item:{...V,installed:!0},onClick:()=>w(V)},`skill-${V.id}`):s.jsx(Dc,{item:{...V,installed:!0},onClick:()=>{j(V),z(!0)},statusBadge:s.jsx(Ce,{variant:V.configured?"success":"warning",className:"text-2xs",children:V.configured?"Active":"Not configured"})},`int-${V.id}`))}):s.jsx("div",{className:"text-center py-16 text-text-4 font-sans text-sm",children:G[g]})]}),s.jsx(r2,{integration:k,open:P,onClose:()=>{z(!1),j(null),X()}})]})}function bX(){const e=B(o=>o.marketplaceAuthenticated),n=B(o=>o.marketplaceUser),l=B(o=>o.marketplaceLogin),r=B(o=>o.marketplaceLogout);return e?s.jsxs("div",{className:"flex items-center gap-1",children:[s.jsxs("div",{className:"flex items-center gap-1.5 px-2.5 py-1.5 rounded bg-surface-3 border border-border-subtle",children:[s.jsx("div",{className:"w-4 h-4 rounded-full bg-accent/20 flex items-center justify-center",children:s.jsx(mv,{size:9,className:"text-accent"})}),s.jsx("span",{className:"text-xs text-text-0 font-sans font-medium max-w-[120px] truncate",children:(n==null?void 0:n.displayName)||(n==null?void 0:n.id)||"Account"})]}),s.jsx("button",{onClick:r,className:"flex items-center gap-1 px-2 py-1.5 rounded text-xs text-text-3 hover:text-text-0 hover:bg-surface-3 font-sans cursor-pointer transition-colors",children:s.jsx(lv,{size:11})})]}):s.jsxs("button",{onClick:l,className:"flex items-center gap-1.5 px-3 py-1.5 text-xs font-semibold font-sans text-text-0 bg-accent/15 border border-accent/25 rounded hover:bg-accent/25 cursor-pointer transition-colors",children:[s.jsx(Oh,{size:12}),"Sign in"]})}function vX(){const[e,n]=v.useState("skills"),l=[{id:"skills",label:"Skills",icon:ql},{id:"integrations",label:"Integrations",icon:Vl},{id:"library",label:"My Library",icon:pN}];return s.jsxs("div",{className:"flex flex-col h-full",children:[s.jsx("div",{className:"flex-shrink-0 bg-surface-1 border-b border-border-subtle",children:s.jsxs("div",{className:"flex items-center px-5 h-11",children:[s.jsx("div",{className:"flex items-center",children:l.map(r=>{const o=r.icon;return s.jsxs("button",{onClick:()=>n(r.id),className:`flex items-center gap-1.5 px-3 py-2.5 text-xs font-semibold font-sans cursor-pointer select-none border-b-2 -mb-px transition-colors ${e===r.id?"border-accent text-text-0":"border-transparent text-text-3 hover:text-text-1"}`,children:[s.jsx(o,{size:12}),r.label]},r.id)})}),s.jsx("div",{className:"flex-1"}),s.jsx(bX,{})]})}),s.jsxs("div",{className:"flex-1 min-h-0",children:[e==="skills"&&s.jsx(pX,{}),e==="integrations"&&s.jsx(xX,{}),e==="library"&&s.jsx(gX,{})]})]})}function yX(){const e=B(d=>d.teams),n=B(d=>d.agents),l=B(d=>d.activeTeamId),r=B(d=>d.deleteTeam),o=B(d=>d.addToast);return e.length===0?s.jsx("div",{className:"flex-1 flex items-center justify-center",children:s.jsxs("div",{className:"text-center space-y-2",children:[s.jsx(Ni,{size:28,className:"mx-auto text-text-4"}),s.jsx("p",{className:"text-xs font-sans text-text-3",children:"No teams yet"}),s.jsx("p",{className:"text-2xs font-sans text-text-4",children:"Teams are created when you spawn agents or launch a planner"})]})}):s.jsx("div",{className:"flex-1 overflow-y-auto",children:s.jsx("div",{className:"p-4 space-y-3",children:e.map(d=>{const u=n.filter(y=>y.teamId===d.id),f=u.filter(y=>y.status==="running"||y.status==="starting"),h=u.filter(y=>y.status==="completed"),p=u.filter(y=>y.status==="crashed"),g=u.reduce((y,Q)=>y+(Q.tokensUsed||0),0),x=u.reduce((y,Q)=>y+(Q.costUsd||0),0),b=d.id===l;return s.jsxs("div",{className:oe("rounded-md border bg-surface-1 overflow-hidden transition-colors",b?"border-accent/30":"border-border-subtle"),children:[s.jsxs("div",{className:"px-4 py-3 flex items-center gap-3",children:[s.jsxs("div",{className:"flex-1 min-w-0",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("span",{className:"text-sm font-semibold text-text-0 font-sans",children:d.name}),b&&s.jsx(Ce,{variant:"accent",className:"text-2xs",children:"Active"})]}),d.workingDir&&s.jsxs("div",{className:"flex items-center gap-1 mt-0.5",children:[s.jsx(nv,{size:10,className:"text-text-4"}),s.jsx("span",{className:"text-2xs font-mono text-text-3 truncate",children:d.workingDir})]})]}),s.jsx("button",{onClick:()=>{if(u.some(y=>y.status==="running")){o("error","Stop running agents first");return}r(d.id)},className:"p-1.5 text-text-4 hover:text-danger rounded transition-colors cursor-pointer",title:"Delete team",children:s.jsx(Zn,{size:13})})]}),s.jsxs("div",{className:"px-4 py-2.5 border-t border-border-subtle bg-surface-0 flex items-center gap-4",children:[s.jsx(Xl,{label:"Agents",value:u.length}),s.jsx(Xl,{label:"Running",value:f.length,color:f.length>0?"text-success":void 0}),s.jsx(Xl,{label:"Done",value:h.length}),s.jsx(Xl,{label:"Crashed",value:p.length,color:p.length>0?"text-danger":void 0}),s.jsx("div",{className:"flex-1"}),s.jsx(Xl,{label:"Tokens",value:Ie(g)}),x>0&&s.jsx(Xl,{label:"Cost",value:us(x)})]}),u.length>0&&s.jsx("div",{className:"border-t border-border-subtle",children:u.map(y=>s.jsxs("div",{className:"flex items-center gap-2 px-4 py-1.5 border-b border-border-subtle last:border-b-0",children:[s.jsx(Ys,{status:y.status,size:"sm"}),s.jsx("span",{className:"text-xs font-semibold text-text-0 font-sans truncate",children:y.name}),s.jsx("span",{className:"text-2xs font-mono text-text-3 uppercase",children:y.role}),s.jsx("div",{className:"flex-1"}),s.jsx("span",{className:"text-2xs font-mono text-text-2 tabular-nums",children:Ie(y.tokensUsed||0)})]},y.id))})]},d.id)})})})}function Xl({label:e,value:n,color:l}){return s.jsxs("div",{className:"text-center",children:[s.jsx("div",{className:oe("text-xs font-mono tabular-nums",l||"text-text-1"),children:n}),s.jsx("div",{className:"text-2xs font-mono text-text-4 uppercase tracking-wider",children:e})]})}function SX(){const e=B(r=>r.pendingApprovals),n=B(r=>r.approveRequest),l=B(r=>r.rejectRequest);return e.length===0?null:s.jsxs("div",{className:"px-4 pt-4 space-y-2",children:[s.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[s.jsx(Ti,{size:12,className:"text-warning"}),s.jsxs("span",{className:"text-2xs font-mono text-warning uppercase tracking-wider",children:["Pending (",e.length,")"]})]}),e.map(r=>{var o,d,u;return s.jsxs("div",{className:"flex items-center gap-3 px-3 py-2 rounded-md bg-warning/5 border border-warning/20",children:[s.jsxs("div",{className:"flex-1 min-w-0",children:[s.jsxs("div",{className:"text-xs text-text-0 font-sans font-medium truncate",children:[r.agentName,": ",((o=r.action)==null?void 0:o.description)||((d=r.action)==null?void 0:d.type)||"action"]}),((u=r.action)==null?void 0:u.filePath)&&s.jsx("div",{className:"text-2xs font-mono text-text-3 truncate mt-0.5",children:r.action.filePath}),s.jsx("div",{className:"text-2xs text-text-4 font-mono mt-0.5",children:jt(r.requestedAt)})]}),s.jsxs("div",{className:"flex gap-1.5 flex-shrink-0",children:[s.jsxs(ve,{variant:"primary",size:"sm",onClick:()=>n(r.id),className:"h-7 px-2.5 gap-1 text-2xs",children:[s.jsx(Ov,{size:10})," Approve"]}),s.jsxs(ve,{variant:"danger",size:"sm",onClick:()=>l(r.id),className:"h-7 px-2.5 gap-1 text-2xs",children:[s.jsx(GN,{size:10})," Reject"]})]})]},r.id)})]})}function QX(){const e=B(h=>h.resolvedApprovals),[n,l]=v.useState([]),[r,o]=v.useState(!0);v.useEffect(()=>{const h=setInterval(d,4e3);return d(),()=>clearInterval(h)},[]);async function d(){try{const h=await J.get("/pm/history");l(h.history||h||[])}catch{}o(!1)}const u=new Set,f=[...e,...n].filter(h=>{const p=h.id||`${h.agentName}-${h.timestamp}`;return u.has(p)?!1:(u.add(p),!0)});return s.jsxs("div",{className:"flex-1 overflow-y-auto",children:[s.jsx(SX,{}),s.jsxs("div",{className:"p-4 space-y-1.5",children:[r&&f.length===0&&s.jsx("div",{className:"text-center py-12 text-text-4 font-mono text-xs",children:"Loading..."}),!r&&f.length===0&&s.jsxs("div",{className:"text-center py-12",children:[s.jsx(ls,{size:24,className:"mx-auto mb-2 text-text-4"}),s.jsx("p",{className:"text-xs font-sans text-text-3",children:"No approval history"}),s.jsx("p",{className:"text-2xs text-text-4 font-sans mt-1",children:"Approvals appear when agents use Auto permission mode"})]}),f.map((h,p)=>{var x;const g=h.status==="approved"||h.verdict==="approved";return s.jsxs("div",{className:"flex items-center gap-2.5 px-3 py-2 rounded-md bg-surface-0 border border-border-subtle",children:[g?s.jsx(ls,{size:12,className:"text-success flex-shrink-0"}):s.jsx(Jb,{size:12,className:"text-danger flex-shrink-0"}),s.jsxs("div",{className:"flex-1 min-w-0",children:[s.jsxs("div",{className:"text-xs text-text-1 font-sans truncate",children:[s.jsx("span",{className:"font-medium text-text-0",children:h.agentName}),s.jsx("span",{className:"text-text-3 mx-1",children:"·"}),s.jsx("span",{children:((x=h.action)==null?void 0:x.description)||h.action||"action"})]}),h.reason&&s.jsx("div",{className:"text-2xs text-text-3 font-sans truncate mt-0.5",children:h.reason})]}),s.jsx("span",{className:"text-2xs font-mono text-text-4 flex-shrink-0",children:jt(h.resolvedAt||h.timestamp)})]},h.id||p)})]})]})}function jX(){const[e,n]=v.useState([]),[l,r]=v.useState(!0),o=Yn();v.useEffect(()=>{const f=setInterval(d,1e4);return d(),()=>clearInterval(f)},[]);async function d(){try{const f=await J.get("/schedules");n(f.schedules||f||[])}catch{}r(!1)}async function u(f,h){try{await J.post(`/schedules/${f}/${h?"disable":"enable"}`),d()}catch(p){o.error("Failed to toggle schedule",p.message)}}return s.jsx("div",{className:"flex-1 overflow-y-auto",children:s.jsxs("div",{className:"p-4 space-y-2",children:[l&&e.length===0&&s.jsx("div",{className:"text-center py-12 text-text-4 font-mono text-xs",children:"Loading..."}),!l&&e.length===0&&s.jsxs("div",{className:"text-center py-12",children:[s.jsx(Cc,{size:24,className:"mx-auto mb-2 text-text-4"}),s.jsx("p",{className:"text-xs font-sans text-text-3",children:"No schedules configured"}),s.jsx("p",{className:"text-2xs text-text-4 font-sans mt-1",children:"Use the CLI to create agent schedules"})]}),e.map(f=>s.jsxs("div",{className:"rounded-md border border-border-subtle bg-surface-0 overflow-hidden",children:[s.jsxs("div",{className:"flex items-center gap-3 px-4 py-3",children:[s.jsxs("div",{className:"flex-1 min-w-0",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("span",{className:"text-xs font-semibold text-text-0 font-sans",children:f.name}),s.jsx(Ce,{variant:f.enabled?"success":"default",className:"text-2xs",children:f.enabled?"Active":"Paused"})]}),s.jsxs("div",{className:"flex items-center gap-2 mt-1",children:[s.jsx("span",{className:"text-2xs font-mono text-text-2",children:f.cron}),s.jsx("span",{className:"text-2xs text-text-4",children:"·"}),s.jsx("span",{className:"text-2xs font-mono text-text-3 uppercase",children:f.role}),f.teamId&&s.jsxs(s.Fragment,{children:[s.jsx("span",{className:"text-2xs text-text-4",children:"·"}),s.jsx("span",{className:"text-2xs font-sans text-text-3",children:f.teamName||f.teamId})]})]}),f.prompt&&s.jsx("div",{className:"text-2xs font-sans text-text-4 mt-1 truncate",children:f.prompt})]}),s.jsx(ve,{variant:"secondary",size:"sm",onClick:()=>u(f.id,f.enabled),className:"h-7 px-2.5 gap-1 text-2xs",children:f.enabled?s.jsxs(s.Fragment,{children:[s.jsx(vN,{size:10})," Pause"]}):s.jsxs(s.Fragment,{children:[s.jsx(wN,{size:10})," Enable"]})})]}),f.lastRunAt&&s.jsxs("div",{className:"px-4 py-1.5 border-t border-border-subtle bg-surface-1 text-2xs font-mono text-text-4",children:["Last run: ",jt(f.lastRunAt),f.nextRunAt&&s.jsxs("span",{className:"ml-3",children:["Next: ",jt(f.nextRunAt)]})]})]},f.id))]})})}function wX(){return s.jsxs(gS,{defaultValue:"dashboard",className:"flex flex-col h-full",children:[s.jsxs("div",{className:"px-4 pt-3 bg-surface-1 border-b border-border",children:[s.jsx("div",{className:"flex items-center gap-4 mb-0",children:s.jsx("h2",{className:"text-xs font-semibold text-text-0 font-sans tracking-wide uppercase",children:"Management"})}),s.jsxs(bS,{className:"border-b-0",children:[s.jsxs(As,{value:"dashboard",className:"inline-flex items-center gap-1.5",children:[s.jsx(HT,{size:12}),"Teams"]}),s.jsxs(As,{value:"approvals",className:"inline-flex items-center gap-1.5",children:[s.jsx(FT,{size:12}),"Approvals"]}),s.jsxs(As,{value:"schedules",className:"inline-flex items-center gap-1.5",children:[s.jsx(Cc,{size:12}),"Schedules"]})]})]}),s.jsx(Xs,{value:"dashboard",className:"flex-1 min-h-0",children:s.jsx(yX,{})}),s.jsx(Xs,{value:"approvals",className:"flex-1 min-h-0",children:s.jsx(QX,{})}),s.jsx(Xs,{value:"schedules",className:"flex-1 min-h-0",children:s.jsx(jX,{})})]})}const kX={code:"Code",general:"General"},$X={light:"text-success",medium:"text-accent",heavy:"text-warning"};function TX(e){return e<1?`${Math.round(e*1024)} MB`:`${e} GB`}function o2({hardware:e}){if(!e)return null;const{totalRamGb:n,gpu:l,isAppleSilicon:r}=e;return s.jsxs("div",{className:"flex items-center gap-3 bg-surface-0 rounded-lg border border-border-subtle px-3 py-2.5",children:[s.jsx(hh,{size:14,className:"text-text-3 flex-shrink-0"}),s.jsx("div",{className:"flex-1 min-w-0",children:s.jsxs("div",{className:"flex items-center gap-2 text-xs font-sans",children:[s.jsxs("span",{className:"text-text-0 font-semibold",children:[n," GB RAM"]}),l&&s.jsxs(s.Fragment,{children:[s.jsx("span",{className:"text-text-4",children:"·"}),s.jsx("span",{className:"text-text-2",children:l.name})]}),r&&s.jsx(Ce,{variant:"accent",className:"text-2xs",children:"Unified Memory"})]})})]})}function NX({onRecheck:e}){const[n,l]=v.useState(null),[r,o]=v.useState(!1),[d,u]=v.useState(!1),[f,h]=v.useState(!1),p=B(R=>R.addToast);v.useEffect(()=>{J.post("/providers/ollama/check").then(l).catch(()=>{})},[]);async function g(){o(!0);try{const R=await J.post("/providers/ollama/check");l(R),R.installed&&R.serverRunning?(p("success","Ollama is ready!"),e()):R.installed?p("info","Ollama installed — server needs to start"):p("info","Ollama not found — install and try again")}catch{}o(!1)}async function x(){u(!0);try{if((await J.post("/providers/ollama/serve")).ok){p("success","Ollama server started!");let Y=!1;for(let X=0;X<5;X++){await new Promise(T=>setTimeout(T,2e3));const C=await J.post("/providers/ollama/check");if(l(C),C.serverRunning){Y=!0;break}}Y&&e()}}catch(R){p("error","Could not start server",R.message)}u(!1)}function b(R){navigator.clipboard.writeText(R),h(!0),setTimeout(()=>h(!1),2e3)}if(!n)return s.jsx("div",{className:"py-4 text-center text-xs text-text-4 font-sans",children:"Loading..."});const{hardware:y,install:Q,requirements:w,installed:k,serverRunning:j}=n,P=y.totalRamGb>=w.minRAM,z=y.recommended;return s.jsxs("div",{className:"space-y-3 p-3",children:[s.jsx(o2,{hardware:y}),P?s.jsxs("div",{className:"flex items-start gap-2 bg-success/8 border border-success/20 rounded-lg px-3 py-2.5",children:[s.jsx(kt,{size:14,className:"text-success flex-shrink-0 mt-0.5"}),s.jsxs("div",{className:"text-xs font-sans",children:[s.jsx("span",{className:"text-success font-semibold",children:"Your system is ready."}),s.jsx("span",{className:"text-text-2 ml-1",children:z.code?`Recommended: ${z.code}`:`${y.totalRamGb} GB RAM available`})]})]}):s.jsxs("div",{className:"flex items-start gap-2 bg-warning/8 border border-warning/20 rounded-lg px-3 py-2.5",children:[s.jsx(xa,{size:14,className:"text-warning flex-shrink-0 mt-0.5"}),s.jsxs("div",{className:"text-xs font-sans text-text-2",children:[s.jsxs("span",{className:"text-warning font-semibold",children:[y.totalRamGb," GB RAM detected."]})," ","Minimum ",w.minRAM," GB needed. Smallest models may still work."]})]}),k&&!j&&s.jsxs("div",{className:"space-y-2",children:[s.jsxs("div",{className:"flex items-start gap-2 bg-warning/8 border border-warning/20 rounded-lg px-3 py-2.5",children:[s.jsx(xa,{size:14,className:"text-warning flex-shrink-0 mt-0.5"}),s.jsxs("div",{className:"text-xs font-sans text-text-2",children:[s.jsx("span",{className:"text-warning font-semibold",children:"Ollama installed but server not running."})," ","The server needs to be running to pull and use models."]})]}),s.jsxs(ve,{variant:"primary",size:"md",onClick:x,disabled:d,className:"w-full gap-1.5",children:[s.jsx(En,{size:12}),d?"Starting...":"Start Ollama Server"]})]}),!k&&s.jsxs("div",{className:"space-y-1.5",children:[s.jsx("p",{className:"text-xs font-semibold text-text-1 font-sans",children:"Install Ollama"}),s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("code",{className:"flex-1 bg-surface-0 border border-border-subtle rounded-md px-3 py-2 text-xs font-mono text-text-1 truncate",children:Q.command}),s.jsxs(ve,{variant:"secondary",size:"sm",onClick:()=>b(Q.command),className:"h-8 px-2.5 gap-1 flex-shrink-0",children:[f?s.jsx(kt,{size:12}):s.jsx(Rc,{size:12}),f?"Copied":"Copy"]})]}),Q.alt&&s.jsx("p",{className:"text-2xs text-text-4 font-sans",children:Q.alt})]}),s.jsxs(ve,{variant:"secondary",size:"md",onClick:g,disabled:r,className:"w-full gap-1.5",children:[s.jsx(Qn,{size:12,className:r?"animate-spin":""}),r?"Checking...":k?"Check again":"I installed it — check again"]})]})}function PX({model:e,isInstalled:n,isRecommended:l,canRun:r,onPull:o,onDelete:d,pulling:u}){const f=u===e.id;return s.jsxs("div",{className:oe("flex items-center gap-2 px-3 py-2 border-t border-border-subtle transition-colors",!r&&"opacity-40"),children:[n?s.jsx(kt,{size:12,className:"text-success flex-shrink-0"}):s.jsx("div",{className:"w-3"}),s.jsxs("div",{className:"flex-1 min-w-0",children:[s.jsxs("div",{className:"flex items-center gap-1.5",children:[s.jsx("span",{className:"text-xs font-mono text-text-1 truncate",children:e.name}),l&&s.jsx(hv,{size:10,className:"text-warning flex-shrink-0"})]}),s.jsxs("div",{className:"flex items-center gap-2 mt-0.5",children:[s.jsx("span",{className:oe("text-2xs font-semibold font-sans",$X[e.tier]),children:e.tier}),s.jsx("span",{className:"text-2xs text-text-4 font-sans",children:TX(e.sizeGb)}),s.jsxs("span",{className:"text-2xs text-text-4 font-sans",children:["· ",e.ramGb," GB RAM"]})]})]}),n?s.jsx("button",{onClick:()=>d(e.id),className:"p-1.5 text-text-4 hover:text-danger rounded transition-colors cursor-pointer",title:"Remove model",children:s.jsx(Zn,{size:12})}):r?s.jsx(ve,{variant:"secondary",size:"sm",onClick:()=>o(e.id),disabled:!!u,className:"h-7 px-2 text-2xs gap-1",children:f?s.jsxs(s.Fragment,{children:[s.jsx(Qn,{size:10,className:"animate-spin"})," Pulling..."]}):s.jsxs(s.Fragment,{children:[s.jsx(sd,{size:10})," Pull"]})}):s.jsxs("span",{className:"text-2xs text-text-4 font-sans",children:["Needs ",e.ramGb," GB"]})]})}function zX({onStopped:e}){const[n,l]=v.useState(null),r=B(u=>u.addToast);async function o(){l("stopping");try{(await J.post("/providers/ollama/stop")).ok?(r("info","Ollama server stopped"),e&&e()):r("error","Could not stop server")}catch(u){r("error","Stop failed",u.message)}l(null)}async function d(){l("restarting");try{(await J.post("/providers/ollama/restart")).ok?r("success","Ollama server restarted"):r("error","Restart failed")}catch(u){r("error","Restart failed",u.message)}l(null)}return s.jsxs("div",{className:"flex items-center gap-2 bg-success/8 border border-success/20 rounded-lg px-3 py-2",children:[s.jsxs("span",{className:"relative flex-shrink-0 w-[6px] h-[6px]",children:[s.jsx("span",{className:"absolute inset-0 rounded-full bg-success"}),s.jsx("span",{className:"absolute inset-[-2px] rounded-full bg-success opacity-20 animate-pulse"})]}),s.jsx("span",{className:"text-xs font-sans text-success font-semibold",children:"Server Running"}),s.jsx("span",{className:"text-2xs font-mono text-text-4",children:":11434"}),s.jsx("div",{className:"flex-1"}),s.jsxs("button",{onClick:d,disabled:!!n,className:"flex items-center gap-1 text-2xs font-sans text-text-3 hover:text-accent cursor-pointer transition-colors disabled:opacity-40",children:[s.jsx(Qn,{size:10,className:n==="restarting"?"animate-spin":""}),n==="restarting"?"Restarting...":"Restart"]}),s.jsxs("button",{onClick:o,disabled:!!n,className:"flex items-center gap-1 text-2xs font-sans text-text-3 hover:text-danger cursor-pointer transition-colors disabled:opacity-40",children:[s.jsx(xa,{size:10}),n==="stopping"?"Stopping...":"Stop"]})]})}function CX({onModelChange:e}){var T,I;const[n,l]=v.useState(null),[r,o]=v.useState(null),[d,u]=v.useState("code"),[f,h]=v.useState(!1),[p,g]=v.useState(!1),x=B(Z=>Z.addToast),b=v.useRef(!1);function y(){J.get("/providers/ollama/models").then(Z=>{var K;l(Z),!b.current&&((K=Z.installed)==null?void 0:K.length)===0&&(b.current=!0,setTimeout(y,2e3))}).catch(()=>{})}v.useEffect(()=>{y()},[]);async function Q(Z){o(Z);try{await J.post("/providers/ollama/pull",{model:Z}),x("success",`Pulled ${Z}`),y(),e&&e()}catch(K){x("error",`Pull failed: ${K.message}`)}o(null)}async function w(Z){try{await J.delete(`/providers/ollama/models/${encodeURIComponent(Z)}`),x("info",`Removed ${Z}`),y(),e&&e()}catch(K){x("error",`Delete failed: ${K.message}`)}}if(!n)return s.jsx("div",{className:"py-4 text-center text-xs text-text-4 font-sans",children:"Loading..."});const{installed:k,catalog:j,hardware:P}=n,z=new Set(k.map(Z=>Z.id)),R=P.totalRamGb,Y=[(T=P.recommended)==null?void 0:T.code,(I=P.recommended)==null?void 0:I.general].filter(Boolean),X=j.filter(Z=>Z.category===d),C=f?X:X.filter(Z=>Z.ramGb<=R);return p?s.jsxs("div",{className:"space-y-3 p-3",children:[s.jsxs("div",{className:"flex items-center gap-2 bg-warning/8 border border-warning/20 rounded-lg px-3 py-2.5",children:[s.jsx(xa,{size:14,className:"text-warning flex-shrink-0"}),s.jsxs("span",{className:"text-xs font-sans text-text-2",children:[s.jsx("span",{className:"text-warning font-semibold",children:"Ollama server stopped."})," ","Start it again to pull and use models."]})]}),s.jsxs(ve,{variant:"primary",size:"md",onClick:async()=>{try{(await J.post("/providers/ollama/serve")).ok&&(x("success","Ollama server started!"),g(!1),b.current=!1,setTimeout(y,2e3))}catch(Z){x("error","Could not start server",Z.message)}},className:"w-full gap-1.5",children:[s.jsx(En,{size:12}),"Start Ollama Server"]})]}):s.jsxs("div",{className:"space-y-2 p-3",children:[s.jsx(zX,{onStopped:()=>g(!0)}),s.jsx(o2,{hardware:P}),k.length>0&&s.jsxs("div",{className:"flex items-center gap-1.5 text-xs font-sans text-text-2",children:[s.jsx(fh,{size:12,className:"text-text-3"}),s.jsx("span",{className:"font-semibold",children:k.length})," model",k.length!==1?"s":""," installed"]}),s.jsx("div",{className:"flex bg-surface-0 rounded-lg p-0.5 border border-border-subtle",children:Object.entries(kX).map(([Z,K])=>s.jsx("button",{onClick:()=>u(Z),className:oe("flex-1 px-3 py-1.5 text-2xs font-semibold font-sans rounded-md transition-all cursor-pointer",d===Z?"bg-accent/15 text-accent shadow-sm":"text-text-3 hover:text-text-1"),children:K},Z))}),s.jsxs("div",{className:"rounded-lg border border-border-subtle bg-surface-0 overflow-hidden",children:[C.map(Z=>s.jsx(PX,{model:Z,isInstalled:z.has(Z.id),isRecommended:Y.includes(Z.id),canRun:Z.ramGb<=R,onPull:Q,onDelete:w,pulling:r},Z.id)),C.length===0&&s.jsxs("div",{className:"px-3 py-4 text-center text-xs text-text-4 font-sans",children:["No ",d," models available for your hardware"]})]}),!f&&X.length>C.length&&s.jsxs("button",{onClick:()=>h(!0),className:"flex items-center gap-1 text-2xs text-text-3 hover:text-accent font-sans cursor-pointer transition-colors",children:[s.jsx(_n,{size:10}),"Show ",X.length-C.length," more (exceed your RAM)"]})]})}function c2({isInstalled:e,onModelChange:n}){const[l,r]=v.useState(!1),[o,d]=v.useState(!1);return v.useEffect(()=>{e?J.post("/providers/ollama/check").then(u=>{r(u.installed&&u.serverRunning),d(!0)}).catch(()=>d(!0)):d(!0)},[e]),o?l?s.jsx(CX,{onModelChange:n}):s.jsx(NX,{onRecheck:()=>{r(!0),n&&n()}}):s.jsx("div",{className:"py-4 text-center text-xs text-text-4 font-sans",children:"Checking Ollama..."})}var Z0={};function RX({path:e,onNavigate:n}){const l=e.split("/").filter(Boolean);return s.jsxs("div",{className:"flex items-center gap-0.5 min-w-0 overflow-x-auto py-1.5 scrollbar-none",children:[s.jsx("button",{onClick:()=>n("/"),className:"flex-shrink-0 p-1 rounded hover:bg-surface-5 cursor-pointer text-text-3 hover:text-text-0 transition-colors",children:s.jsx(fh,{size:13})}),l.map((r,o)=>{const d="/"+l.slice(0,o+1).join("/"),u=o===l.length-1;return s.jsxs("div",{className:"flex items-center gap-0.5 flex-shrink-0",children:[s.jsx(cs,{size:11,className:"text-text-4"}),s.jsx("button",{onClick:()=>n(d),className:oe("px-1.5 py-0.5 rounded text-xs font-mono cursor-pointer transition-colors",u?"text-text-0 bg-surface-4 font-medium":"text-text-3 hover:text-text-0 hover:bg-surface-5"),children:r})]},o)})]})}function d2({open:e,onOpenChange:n,currentPath:l,onSelect:r}){const[o,d]=v.useState(l||Z0.HOME||"/"),[u,f]=v.useState([]),[h,p]=v.useState(!1),[g,x]=v.useState(null);v.useEffect(()=>{e&&b(l||"/")},[e]);async function b(k){p(!0),x(null);try{const j=await J.get(`/browse-system?path=${encodeURIComponent(k)}`);d(j.current||k),f(j.dirs||[])}catch(j){x(j.message),f([])}p(!1)}function y(){const k=o==="/"?"/":o.split("/").slice(0,-1).join("/")||"/";b(k)}function Q(){b(Z0.HOME||"/Users")}function w(){r(o),n(!1)}return s.jsx(bi,{open:e,onOpenChange:n,children:s.jsx(vi,{title:"Select Working Directory",description:"Choose a directory for this agent to work in",className:"max-w-[520px]",children:s.jsxs("div",{className:"px-5 py-4 space-y-3",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("button",{onClick:y,disabled:o==="/",className:"p-1.5 rounded-md bg-surface-4 border border-border text-text-2 hover:text-text-0 hover:bg-surface-5 transition-colors cursor-pointer disabled:opacity-30 disabled:cursor-not-allowed",children:s.jsx(Y$,{size:14})}),s.jsx("button",{onClick:Q,className:"p-1.5 rounded-md bg-surface-4 border border-border text-text-2 hover:text-text-0 hover:bg-surface-5 transition-colors cursor-pointer",children:s.jsx(GT,{size:14})}),s.jsx("div",{className:"flex-1 min-w-0 bg-surface-0 rounded-md border border-border-subtle px-2",children:s.jsx(RX,{path:o,onNavigate:b})})]}),s.jsx("div",{className:"bg-surface-0 rounded-lg border border-border-subtle overflow-hidden",children:s.jsxs("div",{className:"max-h-[340px] overflow-y-auto",children:[h&&s.jsx("div",{className:"flex items-center justify-center py-8",children:s.jsx(ht,{size:18,className:"text-text-3 animate-spin"})}),g&&s.jsx("div",{className:"px-4 py-6 text-center",children:s.jsx("p",{className:"text-xs text-danger font-sans",children:g})}),!h&&!g&&u.length===0&&s.jsx("div",{className:"px-4 py-6 text-center",children:s.jsx("p",{className:"text-xs text-text-3 font-sans",children:"No subdirectories"})}),!h&&!g&&u.map(k=>s.jsxs("button",{onClick:()=>b(k.path),className:oe("w-full flex items-center gap-2.5 px-3.5 py-2 text-left cursor-pointer","hover:bg-surface-4 transition-colors border-b border-border-subtle last:border-0"),children:[k.hasChildren?s.jsx(PT,{size:15,className:"text-warning flex-shrink-0"}):s.jsx(fi,{size:15,className:"text-text-3 flex-shrink-0"}),s.jsx("span",{className:"text-sm text-text-0 font-sans truncate flex-1",children:k.name}),k.hasChildren&&s.jsx(cs,{size:12,className:"text-text-4 flex-shrink-0"})]},k.path))]})}),s.jsxs("div",{className:"flex items-center gap-3 bg-surface-4/50 rounded-lg px-3.5 py-2.5 border border-border-subtle",children:[s.jsx(fi,{size:16,className:"text-accent flex-shrink-0"}),s.jsx("span",{className:"text-xs font-mono text-text-1 truncate flex-1",children:o})]}),s.jsxs("div",{className:"flex justify-end gap-2",children:[s.jsx(ve,{variant:"ghost",size:"md",onClick:()=>n(!1),children:"Cancel"}),s.jsxs(ve,{variant:"primary",size:"md",onClick:w,className:"gap-1.5",children:[s.jsx(kt,{size:14})," Select Folder"]})]})]})})})}function u2({children:e,...n}){return s.jsx(KS,{...n,children:e})}function f2({children:e,className:n,title:l,side:r="right",width:o=400,...d}){return s.jsxs(JS,{children:[s.jsx(e2,{className:"fixed inset-0 z-40 bg-black/30"}),s.jsxs(t2,{className:oe("fixed top-0 z-50 h-full overflow-y-auto","bg-surface-1 border-l border-border shadow-2xl","data-[state=open]:animate-in data-[state=closed]:animate-out",r==="right"&&"right-0 data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right",r==="left"&&"left-0 data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left",n),style:{width:o},...d,children:[l&&s.jsxs("div",{className:"flex items-center justify-between px-5 py-4 border-b border-border-subtle sticky top-0 bg-surface-1 z-10",children:[s.jsx(n2,{className:"text-base font-semibold text-text-0 font-sans",children:l}),s.jsx(s2,{className:"p-1 rounded-md text-text-3 hover:text-text-0 hover:bg-surface-5 transition-colors cursor-pointer",children:s.jsx(Qt,{size:16})})]}),s.jsx(a2,{className:"sr-only",children:"Panel"}),e]})]})}function _X({value:e,onChange:n}){return s.jsx("button",{onClick:()=>n(!e),className:oe("w-9 h-5 rounded-full p-0.5 transition-colors cursor-pointer",e?"bg-accent":"bg-surface-5"),children:s.jsx("div",{className:oe("w-4 h-4 rounded-full bg-white shadow-sm transition-transform",e?"translate-x-4":"translate-x-0")})})}function AX({user:e}){const[n,l]=v.useState(!1),r=(e==null?void 0:e.avatar)||(e==null?void 0:e.picture)||(e==null?void 0:e.photoURL)||(e==null?void 0:e.photo);return r&&!n?s.jsx("img",{src:r,alt:"",className:"w-6 h-6 rounded-full",referrerPolicy:"no-referrer",crossOrigin:"anonymous",onError:()=>l(!0)}):s.jsx("div",{className:"w-6 h-6 rounded-full bg-accent/10 flex items-center justify-center",children:s.jsx(mv,{size:12,className:"text-accent"})})}function XX({provider:e,onKeyChange:n}){var k,j,P;const[l,r]=v.useState(!1),[o,d]=v.useState(""),[u,f]=v.useState(!1),[h,p]=v.useState(!1),g=B(z=>z.addToast),x=e.authType==="local",b=e.authType==="subscription",y=x||b?e.installed:e.hasKey;async function Q(){if(o.trim())try{await J.post(`/credentials/${e.id}`,{key:o.trim()}),g("success",`API key set for ${e.name}`),d(""),r(!1),n&&n()}catch(z){g("error","Failed to set key",z.message)}}async function w(){try{await J.delete(`/credentials/${e.id}`),g("info",`Removed ${e.name} key`),n&&n()}catch(z){g("error","Remove failed",z.message)}}if(x){const z=((j=(k=e.models)==null?void 0:k.filter(Y=>!Y.disabled))==null?void 0:j.length)||0,R=()=>B.getState().setActiveView("models");return s.jsxs("div",{className:"flex flex-col rounded-lg border border-border-subtle bg-surface-1 overflow-hidden min-w-[220px]",children:[s.jsxs("div",{className:"flex items-center gap-2.5 px-4 py-3 border-b border-border-subtle",children:[s.jsx(Ys,{status:y&&z>0?"running":"crashed",size:"sm"}),s.jsx("span",{className:"text-[13px] font-semibold text-text-0 font-sans",children:e.name}),s.jsx("div",{className:"flex-1"}),y&&z>0?s.jsxs(Ce,{variant:"success",className:"text-2xs gap-1",children:[s.jsx(kt,{size:8})," ",z," models"]}):y?s.jsx(Ce,{variant:"warning",className:"text-2xs",children:"No models pulled"}):s.jsx(Ce,{variant:"default",className:"text-2xs",children:"Not set up"})]}),s.jsx("div",{className:"flex-1",children:h?s.jsxs(s.Fragment,{children:[s.jsx(c2,{isInstalled:y,onModelChange:n}),s.jsxs("div",{className:"px-4 py-2 border-t border-border-subtle flex gap-2",children:[s.jsx(ve,{variant:"ghost",size:"sm",onClick:()=>p(!1),className:"flex-1 h-7 text-2xs",children:"Back"}),s.jsx(ve,{variant:"secondary",size:"sm",onClick:()=>{p(!1),R()},className:"flex-1 h-7 text-2xs gap-1",children:"Models Tab"})]})]}):s.jsxs("div",{className:"px-4 py-3 flex flex-col h-full",children:[s.jsx("div",{className:"text-xs text-text-3 font-sans flex-1",children:y&&z>0?"Full agentic runtime — tool calling, context rotation, zero cloud cost":y?"Ollama is running. Pull a model to start using local agents.":"Run any open-source model locally — free, private, fully offline. Requires Ollama."}),s.jsxs("div",{className:"flex gap-2 mt-3",children:[y?s.jsxs(ve,{variant:"primary",size:"sm",onClick:()=>p(!0),className:"flex-1 h-7 text-2xs gap-1.5",children:[s.jsx(Il,{size:11})," ",z>0?"Manage":"Pull Models"]}):s.jsxs(ve,{variant:"primary",size:"sm",onClick:()=>p(!0),className:"flex-1 h-7 text-2xs gap-1.5",children:[s.jsx(Il,{size:11})," Set Up Ollama"]}),s.jsx(ve,{variant:"secondary",size:"sm",onClick:R,className:"flex-1 h-7 text-2xs gap-1.5",children:"Models Tab"})]})]})})]})}return s.jsxs("div",{className:"flex flex-col rounded-lg border border-border-subtle bg-surface-1 overflow-hidden min-w-[220px]",children:[s.jsxs("div",{className:"flex items-center gap-2.5 px-4 py-3 border-b border-border-subtle",children:[s.jsx(Ys,{status:y?"running":"crashed",size:"sm"}),s.jsx("span",{className:"text-[13px] font-semibold text-text-0 font-sans",children:e.name}),s.jsx("div",{className:"flex-1"}),y?s.jsxs(Ce,{variant:"success",className:"text-2xs gap-1",children:[s.jsx(kt,{size:8})," Ready"]}):s.jsx(Ce,{variant:"default",className:"text-2xs",children:b?"Not installed":"No key"})]}),s.jsxs("div",{className:"flex-1 flex flex-col px-4 py-3 min-h-[120px]",children:[((P=e.models)==null?void 0:P.length)>0&&s.jsx("div",{className:"flex flex-wrap gap-1 mb-3",children:e.models.map(z=>s.jsx("span",{className:"px-1.5 py-0.5 rounded bg-surface-4 text-2xs font-mono text-text-3",children:z.name||z.id},z.id))}),b&&y&&!e.hasKey&&!l&&s.jsxs("div",{className:"flex items-center gap-1.5 h-8 px-2.5 bg-accent/8 border border-accent/20 rounded-md text-2xs font-sans text-accent mb-3",children:[s.jsx(kt,{size:10})," Subscription active"]}),e.hasKey&&!l&&s.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[s.jsxs("div",{className:"flex-1 flex items-center gap-1.5 h-8 px-2.5 bg-success/8 border border-success/20 rounded-md text-2xs font-sans text-success",children:[s.jsx(kt,{size:10})," API Connected"]}),s.jsx("button",{onClick:()=>{r(!0),f(!1),d("")},className:"text-2xs text-text-4 hover:text-accent cursor-pointer font-sans",children:"Edit"}),s.jsx("button",{onClick:w,className:"text-2xs text-text-4 hover:text-danger cursor-pointer font-sans",children:"Remove"})]}),s.jsx("div",{className:"flex-1"}),l&&s.jsxs("div",{className:"space-y-2.5 pt-1",children:[s.jsxs("div",{children:[s.jsx("label",{className:"text-2xs font-semibold text-text-2 font-sans mb-1.5 block",children:e.hasKey?"Update API Key":`${e.name} API Key`}),s.jsxs("div",{className:"relative",children:[s.jsx("input",{value:o,onChange:z=>d(z.target.value),onKeyDown:z=>z.key==="Enter"&&Q(),type:u?"text":"password",placeholder:"sk-...",className:"w-full h-9 px-3 pr-9 text-xs bg-surface-0 border border-border rounded-md text-text-0 font-mono placeholder:text-text-4 focus:outline-none focus:ring-1 focus:ring-accent",autoFocus:!0}),s.jsx("button",{onClick:()=>f(!u),className:"absolute right-2.5 top-1/2 -translate-y-1/2 text-text-4 hover:text-text-2 cursor-pointer",children:u?s.jsx(ld,{size:12}):s.jsx(Bs,{size:12})})]})]}),s.jsxs("div",{className:"flex gap-2",children:[s.jsx(ve,{variant:"primary",size:"sm",onClick:Q,disabled:!o.trim(),className:"flex-1 h-8 text-xs",children:"Save Key"}),s.jsx(ve,{variant:"ghost",size:"sm",onClick:()=>{r(!1),d("")},className:"h-8 text-xs px-3",children:"Cancel"})]})]}),!l&&!e.hasKey&&s.jsxs(ve,{variant:b?"secondary":"primary",size:"sm",onClick:()=>{r(!0),f(!1),d("")},className:"w-full h-8 text-2xs gap-1.5 mt-2",children:[s.jsx(qs,{size:11}),b?"Add API key for headless mode":"Add API Key"]})]})]})}function Zl({icon:e,label:n,description:l,children:r}){return s.jsxs("div",{className:"rounded-lg border border-border-subtle bg-surface-1 px-4 py-3.5 flex flex-col gap-2",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("div",{className:"w-6 h-6 rounded bg-accent/8 flex items-center justify-center flex-shrink-0",children:s.jsx(e,{size:12,className:"text-accent"})}),s.jsx("div",{className:"text-[13px] font-medium text-text-0 font-sans leading-tight",children:n})]}),s.jsx("div",{className:"text-2xs text-text-4 font-sans leading-relaxed",children:l}),s.jsx("div",{className:"mt-auto pt-1",children:r})]})}const O2={telegram:ph,discord:wi,slack:iv},_s={telegram:"Telegram",discord:"Discord",slack:"Slack"},ZX={telegram:"Bot token from @BotFather",discord:"Bot token from Developer Portal",slack:"Bot token (xoxb-...)"},EX=["critical","lifecycle","all"];function qX({type:e,open:n,onOpenChange:l}){if(!e)return null;const o={telegram:{title:"Set Up Telegram",icon:ph,intro:"Create a Telegram bot and connect it to Groove in under 2 minutes. No dependencies required.",sections:[{title:"Create Your Bot",steps:[{text:"Open Telegram on any device and search for",link:"https://t.me/BotFather",linkText:"@BotFather"},{text:"Send /newbot to start the setup"},{text:"Choose a display name — we suggest GroovePilot"},{text:'Choose a username (must end in "bot") — e.g. GroovePilot_bot'},{text:"BotFather will reply with your bot token — copy it"}]},{title:"Connect to Groove",steps:[{text:"In Groove Settings > Gateways, click Set Token on the Telegram card"},{text:"Paste your bot token and click Save"},{text:"The gateway will connect automatically"}]},{title:"Link a Chat",steps:[{text:"Open a chat with your new bot in Telegram"},{text:'Send any message (e.g. "hello") — Groove captures the chat ID automatically'},{text:"Click Test in the gateway card to verify"}]},{title:"Commands",note:"All commands use / prefix in Telegram:",commands:["/instruct <team> <msg>","/query <team> <question>","/plan <description>","/log <team>","/brief","/tokens","/status","/agents","/help"]}]},discord:{title:"Set Up Discord",icon:wi,intro:"Create a Discord bot and add it to your server. Requires discord.js (installed automatically with Groove).",sections:[{title:"Create the Application",steps:[{text:"Go to the",link:"https://discord.com/developers/applications",linkText:"Discord Developer Portal"},{text:"Click New Application and name it GroovePilot"},{text:"Go to the Bot tab in the left sidebar"},{text:"Click Reset Token and copy the bot token"}]},{title:"Set Permissions & Invite",steps:[{text:"Go to OAuth2 > URL Generator"},{text:"Under Scopes, check bot"},{text:"Under Bot Permissions, check:"}],scopes:["Send Messages","Read Message History","Embed Links","Use External Emojis"],after:[{text:"Copy the generated URL at the bottom and open it in your browser"},{text:"Select your server and click Authorize"}]},{title:"Enable Message Content Intent",steps:[{text:"Go back to the Bot tab in the Developer Portal"},{text:"Scroll to Privileged Gateway Intents"},{text:"Enable Message Content Intent — required for the bot to read commands"},{text:"Click Save Changes"}]},{title:"Connect to Groove",steps:[{text:"In Groove Settings > Gateways, click Set Token on the Discord card"},{text:"Paste your bot token and click Save"},{text:"Send a message in any channel where the bot is — Groove captures the channel automatically"}]},{title:"Commands",note:"All commands use / prefix in Discord:",commands:["/instruct <team> <msg>","/query <team> <question>","/plan <description>","/log <team>","/brief","/tokens","/status","/agents","/help"]}]},slack:{title:"Set Up Slack",icon:iv,intro:"Create a Slack app with Socket Mode — no public URL needed. Requires @slack/bolt (installed automatically with Groove).",sections:[{title:"Create the App",steps:[{text:"Go to",link:"https://api.slack.com/apps",linkText:"api.slack.com/apps"},{text:"Click Create New App > From scratch"},{text:"Name it GroovePilot and select your workspace"}]},{title:"Enable Socket Mode",steps:[{text:"In the left sidebar, go to Settings > Socket Mode"},{text:"Toggle Enable Socket Mode to on"},{text:"It will ask you to create an App-Level Token"},{text:'Name it "groove", add the connections:write scope'},{text:"Click Generate — copy the xapp-... token (this is your App Token)"}],important:"Save this token now — you can't view it again after closing the dialog."},{title:"Set Bot Token Scopes",steps:[{text:"Go to Features > OAuth & Permissions"},{text:"Scroll to Bot Token Scopes and add all of these:"}],scopes:["chat:write","channels:read","channels:history","groups:read","groups:history","im:history","app_mentions:read"],after:[{text:"Scroll up and click Install to Workspace"},{text:"Click Allow to grant permissions"},{text:"Copy the Bot User OAuth Token (xoxb-...) — this is your Bot Token"}]},{title:"Enable Events",steps:[{text:"Go to Features > Event Subscriptions"},{text:"Toggle Enable Events to on"},{text:"Under Subscribe to bot events, add:"}],scopes:["message.channels","message.im","app_mention"],after:[{text:"Click Save Changes at the bottom"}]},{title:"Connect to Groove",steps:[{text:"In Groove Settings > Gateways, click Set Token on the Slack card"},{text:"Paste your Bot Token (xoxb-...) in the first field"},{text:"Paste your App Token (xapp-...) in the second field"},{text:"Click Save — Groove will auto-connect"}]},{title:"Link a Channel",steps:[{text:"Invite the bot to a channel: /invite @GroovePilot"},{text:"Select the channel from the dropdown in the gateway card"},{text:"Or @mention the bot — it will auto-capture the channel"},{text:"Click Test to verify"}],important:"For private channels, make sure you added the groups:read scope."},{title:"Commands",note:"In Slack, use plain text commands (no / prefix) or @mention the bot:",commands:["instruct <team> <msg>","query <team> <question>","plan <description>","log <team>","brief","tokens","status","agents","help","@GroovePilot status"]}]}}[e];if(!o)return null;const d=o.icon;return s.jsx(u2,{open:n,onOpenChange:l,children:s.jsx(f2,{title:o.title,width:480,children:s.jsxs("div",{className:"px-5 py-4 space-y-5",children:[s.jsxs("div",{className:"flex items-start gap-3 p-3 bg-accent/5 border border-accent/15 rounded-lg",children:[s.jsx("div",{className:"w-8 h-8 rounded-lg bg-accent/10 flex items-center justify-center flex-shrink-0 mt-0.5",children:s.jsx(d,{size:16,className:"text-accent"})}),s.jsx("p",{className:"text-xs text-text-2 font-sans leading-relaxed",children:o.intro})]}),o.sections.map((u,f)=>{var h;return s.jsxs("div",{children:[s.jsxs("h3",{className:"text-xs font-semibold text-text-0 font-sans mb-2.5 flex items-center gap-2",children:[s.jsx("span",{className:"w-5 h-5 rounded-full bg-accent/10 flex items-center justify-center text-2xs font-bold text-accent",children:f+1}),u.title]}),u.note&&s.jsx("p",{className:"text-2xs text-text-3 font-sans mb-2",children:u.note}),u.steps&&s.jsx("ol",{className:"space-y-2 mb-2",children:u.steps.map((p,g)=>s.jsxs("li",{className:"flex gap-2 text-2xs text-text-2 font-sans leading-relaxed",children:[s.jsxs("span",{className:"text-text-4 font-mono w-4 flex-shrink-0 pt-px",children:[g+1,"."]}),s.jsxs("span",{children:[p.text,p.link&&s.jsxs(s.Fragment,{children:[" ",s.jsxs("a",{href:p.link,target:"_blank",rel:"noopener noreferrer",className:"text-accent hover:underline inline-flex items-center gap-0.5 font-medium",children:[p.linkText,s.jsx(Fl,{size:9})]})]})]})]},g))}),u.scopes&&s.jsx("div",{className:"flex flex-wrap gap-1.5 mb-2 ml-6",children:u.scopes.map(p=>s.jsx("code",{className:"px-2 py-0.5 rounded bg-surface-4 text-2xs font-mono text-accent",children:p},p))}),u.after&&s.jsx("ol",{className:"space-y-2 mb-2",start:(((h=u.steps)==null?void 0:h.length)||0)+1,children:u.after.map((p,g)=>{var x;return s.jsxs("li",{className:"flex gap-2 text-2xs text-text-2 font-sans leading-relaxed",children:[s.jsxs("span",{className:"text-text-4 font-mono w-4 flex-shrink-0 pt-px",children:[(((x=u.steps)==null?void 0:x.length)||0)+g+1,"."]}),s.jsx("span",{children:p.text})]},g)})}),u.important&&s.jsx("div",{className:"ml-6 p-2 bg-warning/8 border border-warning/20 rounded-md text-2xs text-warning font-sans",children:u.important}),u.commands&&s.jsx("div",{className:"ml-6 p-2.5 bg-surface-0 border border-border-subtle rounded-md space-y-1",children:u.commands.map(p=>s.jsx("code",{className:"block text-2xs font-mono text-text-1",children:p},p))})]},f)}),s.jsxs("a",{href:"https://docs.groovedev.ai/guide/gateways",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-1.5 text-2xs text-accent hover:text-accent/80 font-sans font-medium mt-2",children:[s.jsx(Fl,{size:10}),"Full documentation at docs.groovedev.ai"]})]})})})}function MX({gateway:e,onRefresh:n}){var G,V;const[l,r]=v.useState(!1),[o,d]=v.useState(""),[u,f]=v.useState(""),[h,p]=v.useState(!1),[g,x]=v.useState(!1),[b,y]=v.useState(!1),[Q,w]=v.useState([]),[k,j]=v.useState(!1),P=B(M=>M.addToast);v.useEffect(()=>{e.connected&&!e.chatId&&e.type==="slack"&&J.get(`/gateways/${e.id}/channels`).then(M=>w(Array.isArray(M)?M:[])).catch(()=>{})},[e.connected,e.chatId,e.id,e.type]);const z=O2[e.type]||mh,R=e.type==="slack";async function Y(){if(o.trim())try{await J.post(`/gateways/${e.id}/credentials`,{key:"bot_token",value:o.trim()}),R&&u.trim()&&await J.post(`/gateways/${e.id}/credentials`,{key:"app_token",value:u.trim()}),P("success","Token saved — connecting..."),d(""),f(""),r(!1);try{await J.post(`/gateways/${e.id}/connect`),P("success",`${_s[e.type]} connected!`)}catch(M){P("error","Token saved but connect failed",M.message)}n()}catch(M){P("error","Failed to save token",M.message)}}async function X(){x(!0);try{await J.post(`/gateways/${e.id}/test`),P("success","Test message sent!")}catch(M){P("error","Test failed",M.message)}x(!1)}async function C(){y(!0);try{e.connected?(await J.post(`/gateways/${e.id}/disconnect`),P("info",`${_s[e.type]} disconnected`)):(await J.post(`/gateways/${e.id}/connect`),P("success",`${_s[e.type]} connected!`)),n()}catch(M){P("error",e.connected?"Disconnect failed":"Connect failed",M.message)}y(!1)}async function T(M){try{await J.patch(`/gateways/${e.id}`,{enabled:M}),n()}catch(N){P("error","Update failed",N.message)}}async function I(M){try{await J.patch(`/gateways/${e.id}`,{notifications:{preset:M}}),n()}catch(N){P("error","Update failed",N.message)}}async function Z(M){try{await J.patch(`/gateways/${e.id}`,{commandPermission:M}),n()}catch(N){P("error","Update failed",N.message)}}async function K(){try{await J.delete(`/gateways/${e.id}`),P("info",`${_s[e.type]} gateway removed`),n()}catch(M){P("error","Delete failed",M.message)}}const F=((G=e.notifications)==null?void 0:G.preset)||"critical";return s.jsxs("div",{className:"flex flex-col rounded-lg border border-border-subtle bg-surface-1 overflow-hidden min-w-[220px]",children:[s.jsxs("div",{className:"flex items-center gap-2.5 px-4 py-3 border-b border-border-subtle",children:[s.jsx(Ys,{status:e.connected?"running":"crashed",size:"sm"}),s.jsx(z,{size:13,className:"text-text-2"}),s.jsx("span",{className:"text-[13px] font-semibold text-text-0 font-sans",children:_s[e.type]}),s.jsx("div",{className:"flex-1"}),e.connected?s.jsxs(Ce,{variant:"success",className:"text-2xs gap-1",children:[s.jsx(b1,{size:8})," Connected"]}):e.enabled?s.jsx(Ce,{variant:"warning",className:"text-2xs",children:"Disconnected"}):s.jsx(Ce,{variant:"default",className:"text-2xs",children:"Disabled"})]}),s.jsxs("div",{className:"flex-1 flex flex-col px-4 py-3 min-h-[140px]",children:[e.connected&&!l&&s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"flex items-center gap-1.5 h-8 px-2.5 bg-success/8 border border-success/20 rounded-md text-2xs font-sans text-success mb-3",children:[s.jsx(kt,{size:10})," Gateway active",e.botUsername&&s.jsxs("span",{className:"text-text-4 ml-1",children:["@",e.botUsername]}),e.botTag&&s.jsx("span",{className:"text-text-4 ml-1",children:e.botTag})]}),s.jsxs("div",{className:"mb-3",children:[s.jsx("label",{className:"text-2xs font-semibold text-text-3 font-sans mb-1.5 block",children:e.type==="slack"?"Channel":"Chat ID"}),e.chatId?s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("code",{className:"flex-1 flex items-center h-7 px-2 bg-surface-0 border border-border-subtle rounded-md text-2xs font-mono text-text-2",children:e.type==="slack"&&Q.length>0?`#${((V=Q.find(M=>M.id===e.chatId))==null?void 0:V.name)||e.chatId}`:e.chatId}),s.jsx("button",{onClick:async()=>{try{await J.patch(`/gateways/${e.id}`,{chatId:null}),n()}catch(M){P("error","Failed",M.message)}},className:"text-2xs text-text-4 hover:text-text-1 cursor-pointer font-sans",children:"Change"})]}):e.type==="slack"&&Q.length>0?s.jsxs("select",{onChange:async M=>{if(M.target.value)try{await J.patch(`/gateways/${e.id}`,{chatId:M.target.value}),n()}catch(N){P("error","Failed to set channel",N.message)}},className:"w-full h-7 px-2 text-2xs bg-surface-0 border border-border-subtle rounded-md text-text-0 font-sans focus:outline-none focus:ring-1 focus:ring-accent cursor-pointer",defaultValue:"",children:[s.jsx("option",{value:"",disabled:!0,children:"Select a channel..."}),Q.map(M=>s.jsxs("option",{value:M.id,children:["#",M.name]},M.id))]}):s.jsxs("div",{className:"text-2xs text-warning font-sans",children:[e.type==="slack"?"No channels found — invite the bot to a channel first.":"Send a message to the bot to auto-capture, or enter manually:",s.jsx("input",{placeholder:e.type==="slack"?"C0123456789":"Chat ID",className:"mt-1 w-full h-7 px-2 text-2xs bg-surface-0 border border-border rounded-md text-text-0 font-mono placeholder:text-text-4 focus:outline-none focus:ring-1 focus:ring-accent",onKeyDown:async M=>{if(M.key==="Enter"&&M.target.value.trim())try{await J.patch(`/gateways/${e.id}`,{chatId:M.target.value.trim()}),n()}catch(N){P("error","Failed to set channel",N.message)}}})]})]}),s.jsxs("div",{className:"mb-3",children:[s.jsx("label",{className:"text-2xs font-semibold text-text-3 font-sans mb-1.5 block",children:"Notifications"}),s.jsx("div",{className:"flex bg-surface-0 rounded-md p-0.5 border border-border-subtle",children:EX.map(M=>s.jsx("button",{onClick:()=>I(M),className:oe("flex-1 px-2 py-1.5 text-2xs font-semibold font-sans rounded transition-all cursor-pointer capitalize",F===M?"bg-accent/15 text-accent shadow-sm":"text-text-3 hover:text-text-1"),children:M},M))})]}),s.jsxs("div",{className:"mb-3",children:[s.jsx("label",{className:"text-2xs font-semibold text-text-3 font-sans mb-1.5 block",children:"Commands"}),s.jsx("div",{className:"flex bg-surface-0 rounded-md p-0.5 border border-border-subtle",children:["full","read-only"].map(M=>s.jsx("button",{onClick:()=>Z(M),className:oe("flex-1 px-2 py-1.5 text-2xs font-semibold font-sans rounded transition-all cursor-pointer capitalize",(e.commandPermission||"full")===M?"bg-accent/15 text-accent shadow-sm":"text-text-3 hover:text-text-1"),children:M==="full"?"Full Access":"Read Only"},M))})]})]}),!e.connected&&!l&&s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"text-xs text-text-3 font-sans mb-2",children:e.enabled?e.hasCredentials?"Tokens saved — click Connect.":"Configure bot token to connect.":"Gateway is disabled."}),!e.hasCredentials&&s.jsxs("button",{onClick:()=>j(!0),className:"flex items-center gap-1.5 text-2xs text-accent hover:text-accent/80 font-sans font-medium cursor-pointer mb-2",children:[s.jsx(Hl,{size:11}),"How to set up",s.jsx(Fl,{size:9})]})]}),s.jsx(qX,{type:e.type,open:k,onOpenChange:j}),s.jsx("div",{className:"flex-1"}),l&&s.jsxs("div",{className:"space-y-2.5 pt-1",children:[s.jsxs("button",{onClick:()=>j(!0),className:"flex items-center gap-1.5 text-2xs text-accent hover:text-accent/80 font-sans font-medium cursor-pointer",children:[s.jsx(Hl,{size:11}),"Where do I get these?"]}),s.jsxs("div",{children:[s.jsx("label",{className:"text-2xs font-semibold text-text-2 font-sans mb-1.5 block",children:"Bot Token"}),s.jsxs("div",{className:"relative",children:[s.jsx("input",{value:o,onChange:M=>d(M.target.value),onKeyDown:M=>M.key==="Enter"&&!R&&Y(),type:h?"text":"password",placeholder:ZX[e.type],className:"w-full h-9 px-3 pr-9 text-xs bg-surface-0 border border-border rounded-md text-text-0 font-mono placeholder:text-text-4 focus:outline-none focus:ring-1 focus:ring-accent",autoFocus:!0}),s.jsx("button",{onClick:()=>p(!h),className:"absolute right-2.5 top-1/2 -translate-y-1/2 text-text-4 hover:text-text-2 cursor-pointer",children:h?s.jsx(ld,{size:12}):s.jsx(Bs,{size:12})})]})]}),R&&s.jsxs("div",{children:[s.jsx("label",{className:"text-2xs font-semibold text-text-2 font-sans mb-1.5 block",children:"App Token (Socket Mode)"}),s.jsx("input",{value:u,onChange:M=>f(M.target.value),onKeyDown:M=>M.key==="Enter"&&Y(),type:h?"text":"password",placeholder:"xapp-...",className:"w-full h-9 px-3 text-xs bg-surface-0 border border-border rounded-md text-text-0 font-mono placeholder:text-text-4 focus:outline-none focus:ring-1 focus:ring-accent"})]}),s.jsxs("div",{className:"flex gap-2",children:[s.jsx(ve,{variant:"primary",size:"sm",onClick:Y,disabled:!o.trim(),className:"flex-1 h-8 text-xs",children:"Save Token"}),s.jsx(ve,{variant:"ghost",size:"sm",onClick:()=>{r(!1),d(""),f("")},className:"h-8 text-xs px-3",children:"Cancel"})]})]}),!l&&s.jsxs("div",{className:"flex gap-2 mt-2",children:[!e.connected&&s.jsxs(ve,{variant:"primary",size:"sm",onClick:()=>r(!0),className:"flex-1 h-7 text-2xs gap-1.5",children:[s.jsx(qs,{size:11}),e.enabled?"Set Token":"Configure"]}),e.connected&&s.jsxs(s.Fragment,{children:[s.jsxs(ve,{variant:"secondary",size:"sm",onClick:X,disabled:g,className:"flex-1 h-7 text-2xs gap-1.5",children:[s.jsx(gh,{size:11}),g?"Sending...":"Test"]}),s.jsx(ve,{variant:"secondary",size:"sm",onClick:()=>r(!0),className:"h-7 text-2xs px-2.5",children:s.jsx(qs,{size:11})})]}),s.jsx(ve,{variant:"ghost",size:"sm",onClick:C,disabled:b,className:"h-7 text-2xs px-2.5",title:e.connected?"Disconnect":"Connect",children:e.connected?s.jsx(Vl,{size:11}):s.jsx(b1,{size:11})}),s.jsx(_X,{value:e.enabled,onChange:T}),s.jsx("button",{onClick:K,className:"text-text-4 hover:text-danger cursor-pointer p-1",title:"Remove gateway",children:s.jsx(Zn,{size:11})})]})]})]})}function YX({existingTypes:e,onAdd:n}){const[l,r]=v.useState(!1),o=["telegram","discord","slack"].filter(d=>!e.includes(d));return o.length===0?null:l?s.jsxs("div",{className:"flex flex-col rounded-lg border border-accent/30 bg-surface-1 overflow-hidden min-w-[220px]",children:[s.jsxs("div",{className:"flex items-center gap-2.5 px-4 py-3 border-b border-border-subtle",children:[s.jsx(mh,{size:13,className:"text-accent"}),s.jsx("span",{className:"text-[13px] font-semibold text-text-0 font-sans",children:"Add Gateway"}),s.jsx("div",{className:"flex-1"}),s.jsx("button",{onClick:()=>r(!1),className:"text-text-4 hover:text-text-1 cursor-pointer",children:s.jsx(Qt,{size:12})})]}),s.jsx("div",{className:"p-3 space-y-2",children:o.map(d=>{const u=O2[d];return s.jsxs("button",{onClick:()=>{n(d),r(!1)},className:"w-full flex items-center gap-3 px-3 py-2.5 rounded-md bg-surface-0 hover:bg-accent/8 border border-border-subtle hover:border-accent/20 cursor-pointer transition-all group",children:[s.jsx(u,{size:14,className:"text-text-3 group-hover:text-accent"}),s.jsx("span",{className:"text-xs font-medium text-text-1 group-hover:text-accent font-sans",children:_s[d]})]},d)})})]}):s.jsxs("button",{onClick:()=>r(!0),className:"flex flex-col items-center justify-center rounded-lg border border-dashed border-border-subtle bg-surface-1/50 hover:bg-surface-1 hover:border-accent/30 min-h-[140px] min-w-[220px] cursor-pointer transition-all group",children:[s.jsx("div",{className:"w-8 h-8 rounded-full bg-accent/8 group-hover:bg-accent/15 flex items-center justify-center mb-2 transition-colors",children:s.jsx(rs,{size:14,className:"text-accent"})}),s.jsx("span",{className:"text-2xs font-semibold text-text-3 group-hover:text-text-1 font-sans transition-colors",children:"Add Gateway"})]})}function UX(){const[e,n]=v.useState([]),[l,r]=v.useState(null),[o,d]=v.useState(null),[u,f]=v.useState([]),[h,p]=v.useState(!0),[g,x]=v.useState(!1),b=B(C=>C.addToast),y=B(C=>C.marketplaceUser),Q=B(C=>C.marketplaceAuthenticated),w=B(C=>C.marketplaceLogin),k=B(C=>C.marketplaceLogout);function j(){J.get("/providers").then(C=>n(Array.isArray(C)?C:[])).catch(()=>{})}function P(){J.get("/gateways").then(C=>f(Array.isArray(C)?C:[])).catch(()=>{})}v.useEffect(()=>{Promise.all([J.get("/providers"),J.get("/config"),J.get("/status"),J.get("/gateways")]).then(([C,T,I,Z])=>{n(Array.isArray(C)?C:[]),r(T),d(I),f(Array.isArray(Z)?Z:[]),p(!1)}).catch(()=>p(!1))},[]);async function z(C){try{await J.post("/gateways",{type:C}),b("success",`${_s[C]} gateway added`),P()}catch(T){b("error","Failed to add gateway",T.message)}}async function R(C,T){try{const I=await J.patch("/config",{[C]:T});r(I)}catch(I){b("error","Update failed",I.message)}}if(h)return s.jsxs("div",{className:"flex flex-col h-full",children:[s.jsx("div",{className:"h-12 bg-surface-1 border-b border-border"}),s.jsxs("div",{className:"flex-1 p-4 space-y-4",children:[s.jsx("div",{className:"grid grid-cols-4 gap-3",children:[...Array(4)].map((C,T)=>s.jsx(dn,{className:"h-40 rounded-lg"},T))}),s.jsx("div",{className:"grid grid-cols-3 gap-3",children:[...Array(6)].map((C,T)=>s.jsx(dn,{className:"h-28 rounded-lg"},T))})]})]});const Y=e.filter(C=>C.authType==="local"||C.authType==="subscription"?C.installed:C.hasKey).length,X=(l==null?void 0:l.rotationThreshold)||0;return s.jsxs("div",{className:"flex flex-col h-full",children:[s.jsxs("div",{className:"flex items-center gap-4 px-4 py-2.5 bg-surface-1 border-b border-border flex-shrink-0",children:[s.jsx("h2",{className:"text-sm font-semibold text-text-0 font-sans",children:"Settings"}),s.jsx("div",{className:"flex-1"}),s.jsxs("div",{className:"flex items-center gap-4 text-2xs text-text-3 font-sans",children:[(o==null?void 0:o.version)&&s.jsxs("span",{children:["v",o.version]}),(o==null?void 0:o.port)&&s.jsxs("span",{children:[":",o.port]}),(o==null?void 0:o.uptime)>0&&s.jsxs("span",{children:["Up ",Pi(o.uptime)]})]}),s.jsx("div",{className:"w-px h-4 bg-border-subtle"}),Q?s.jsxs("div",{className:"flex items-center gap-2.5",children:[s.jsx(AX,{user:y}),s.jsx("span",{className:"text-xs font-medium text-text-0 font-sans",children:(y==null?void 0:y.displayName)||"User"}),s.jsxs("button",{onClick:k,className:"text-2xs text-text-4 hover:text-text-1 cursor-pointer font-sans flex items-center gap-1",children:[s.jsx(lv,{size:10})," Sign out"]})]}):s.jsxs(ve,{variant:"ghost",size:"sm",onClick:w,className:"h-7 text-2xs gap-1.5 text-text-3",children:[s.jsx(Oh,{size:11})," Sign in"]}),s.jsx(Ys,{status:"running",size:"sm"})]}),s.jsx(Mn,{className:"flex-1",children:s.jsxs("div",{className:"p-4 space-y-4",children:[s.jsxs("div",{children:[s.jsxs("div",{className:"flex items-center gap-2 mb-2.5 px-0.5",children:[s.jsx("span",{className:"text-2xs font-semibold text-text-3 font-sans uppercase tracking-wider",children:"Providers"}),s.jsx("div",{className:"flex-1 h-px bg-border-subtle"}),s.jsxs("span",{className:"text-2xs text-text-4 font-sans",children:[Y,"/",e.length," connected"]})]}),s.jsx("div",{className:"grid grid-cols-4 gap-3",children:e.map(C=>s.jsx(XX,{provider:C,onKeyChange:j},C.id))})]}),s.jsxs("div",{children:[s.jsxs("div",{className:"flex items-center gap-2 mb-2.5 px-0.5",children:[s.jsx("span",{className:"text-2xs font-semibold text-text-3 font-sans uppercase tracking-wider",children:"Gateways"}),s.jsx("div",{className:"flex-1 h-px bg-border-subtle"}),s.jsxs("span",{className:"text-2xs text-text-4 font-sans",children:[u.filter(C=>C.connected).length,"/",u.length," connected"]})]}),s.jsxs("div",{className:"grid grid-cols-4 gap-3",children:[u.map(C=>s.jsx(MX,{gateway:C,onRefresh:P},C.id)),s.jsx(YX,{existingTypes:u.map(C=>C.type),onAdd:z})]})]}),l&&s.jsxs("div",{children:[s.jsxs("div",{className:"flex items-center gap-2 mb-2.5 px-0.5",children:[s.jsx("span",{className:"text-2xs font-semibold text-text-3 font-sans uppercase tracking-wider",children:"Configuration"}),s.jsx("div",{className:"flex-1 h-px bg-border-subtle"}),s.jsx("span",{className:"text-2xs text-text-4 font-sans",children:"Auto-saves"})]}),s.jsxs("div",{className:"grid grid-cols-3 gap-3",children:[s.jsx(Zl,{icon:Il,label:"Default Provider",description:"Provider used when spawning new agents.",children:s.jsx("select",{value:l.defaultProvider||"claude-code",onChange:C=>R("defaultProvider",C.target.value),className:"w-full h-8 px-2.5 text-xs bg-surface-0 border border-border-subtle rounded-md text-text-0 font-mono focus:outline-none focus:ring-1 focus:ring-accent cursor-pointer",children:e.filter(C=>C.installed||C.hasKey).map(C=>s.jsx("option",{value:C.id,children:C.name},C.id))})}),s.jsx(Zl,{icon:fi,label:"Working Directory",description:"Default root directory for new agents.",children:s.jsxs("div",{className:"flex items-center gap-1.5",children:[s.jsx("code",{className:"flex-1 h-8 px-2 flex items-center bg-surface-0 border border-border-subtle rounded-md text-2xs font-mono text-text-2 truncate min-w-0",children:l.defaultWorkingDir||"Project root"}),s.jsx(ve,{variant:"secondary",size:"sm",onClick:()=>x(!0),className:"h-8 px-2 flex-shrink-0",children:s.jsx(tv,{size:12})})]})}),s.jsx(Zl,{icon:av,label:"Rotation Threshold",description:"Context usage that triggers auto-rotation.",children:s.jsx("div",{className:"flex bg-surface-0 rounded-md p-0.5 border border-border-subtle",children:["auto","50%","65%","75%","85%"].map(C=>{const T=C==="auto"?0:parseInt(C,10)/100,I=X===T;return s.jsx("button",{onClick:()=>R("rotationThreshold",T),className:oe("flex-1 px-2 py-1.5 text-2xs font-semibold font-sans rounded transition-all cursor-pointer",I?"bg-accent/15 text-accent shadow-sm":"text-text-3 hover:text-text-1"),children:C==="auto"?"Auto":C},C)})})}),s.jsx(Zl,{icon:Ov,label:"QC Threshold",description:"Running agents count that triggers auto-QC.",children:s.jsx("div",{className:"flex bg-surface-0 rounded-md p-0.5 border border-border-subtle",children:[2,3,4,6,8].map(C=>{const T=(l.qcThreshold||2)===C;return s.jsx("button",{onClick:()=>R("qcThreshold",C),className:oe("flex-1 px-2 py-1.5 text-2xs font-semibold font-sans rounded transition-all cursor-pointer",T?"bg-accent/15 text-accent shadow-sm":"text-text-3 hover:text-text-1"),children:C},C)})})}),s.jsx(Zl,{icon:Ni,label:"Max Agents",description:"Concurrent agent limit. 0 = unlimited.",children:s.jsx("div",{className:"flex bg-surface-0 rounded-md p-0.5 border border-border-subtle",children:[0,4,8,12,20].map(C=>{const T=(l.maxAgents||0)===C;return s.jsx("button",{onClick:()=>R("maxAgents",C),className:oe("flex-1 px-2 py-1.5 text-2xs font-semibold font-sans rounded transition-all cursor-pointer",T?"bg-accent/15 text-accent shadow-sm":"text-text-3 hover:text-text-1"),children:C===0?"∞":C},C)})})}),s.jsx(Zl,{icon:Oi,label:"Journalist Interval",description:"Seconds between synthesis cycles.",children:s.jsx("div",{className:"flex bg-surface-0 rounded-md p-0.5 border border-border-subtle",children:[60,120,300,600].map(C=>{const T=(l.journalistInterval||120)===C,I=C<60?`${C}s`:`${C/60}m`;return s.jsx("button",{onClick:()=>R("journalistInterval",C),className:oe("flex-1 px-2 py-1.5 text-2xs font-semibold font-sans rounded transition-all cursor-pointer",T?"bg-accent/15 text-accent shadow-sm":"text-text-3 hover:text-text-1"),children:I},C)})})})]})]})]})}),s.jsx(d2,{open:g,onOpenChange:x,currentPath:(l==null?void 0:l.defaultWorkingDir)||"/",onSelect:C=>R("defaultWorkingDir",C)})]})}function Bc(e){return e?e<1024*1024?`${(e/1024).toFixed(0)} KB`:e<1024*1024*1024?`${(e/(1024*1024)).toFixed(1)} MB`:`${(e/(1024*1024*1024)).toFixed(2)} GB`:"—"}function VX(e){return e?e<1024*1024?`${(e/1024).toFixed(0)} KB/s`:`${(e/(1024*1024)).toFixed(1)} MB/s`:""}function GX({hardware:e}){var n;return e?s.jsxs("div",{className:"flex items-center gap-4 px-4 py-2.5 bg-surface-1 border border-border-subtle rounded-lg text-xs font-sans text-text-2",children:[s.jsxs("div",{className:"flex items-center gap-1.5",children:[s.jsx(lN,{size:14,className:"text-text-3"}),s.jsxs("span",{children:[e.totalRamGb," GB RAM"]})]}),s.jsxs("div",{className:"flex items-center gap-1.5",children:[s.jsx(Il,{size:14,className:"text-text-3"}),s.jsxs("span",{children:[e.cores," cores"]})]}),e.gpu&&s.jsxs("div",{className:"flex items-center gap-1.5",children:[s.jsx(fh,{size:14,className:"text-text-3"}),s.jsxs("span",{children:[e.gpu.name,e.gpu.vram?` (${e.gpu.vram} GB)`:""]})]}),((n=e.recommended)==null?void 0:n.code)&&s.jsxs("div",{className:"ml-auto text-accent",children:["Recommended: ",e.recommended.code]})]}):null}function DX({download:e}){const n=Math.round((e.percent||0)*100);return s.jsxs("div",{className:"space-y-1",children:[s.jsxs("div",{className:"flex items-center justify-between text-2xs font-sans text-text-3",children:[s.jsx("span",{children:e.filename}),s.jsxs("span",{children:[n,"% ",VX(e.speed)]})]}),s.jsx("div",{className:"h-1.5 bg-surface-3 rounded-full overflow-hidden",children:s.jsx("div",{className:"h-full bg-accent rounded-full transition-all",style:{width:`${n}%`}})}),s.jsxs("div",{className:"text-2xs text-text-4",children:[Bc(e.downloaded)," / ",Bc(e.totalBytes)]})]})}function LX({model:e,onDelete:n}){const[l,r]=v.useState(!1),o={light:"text-green-400",medium:"text-blue-400",heavy:"text-orange-400"};return s.jsxs("div",{className:"flex items-center gap-3 px-4 py-3 bg-surface-1 border border-border-subtle rounded-lg",children:[s.jsx(uh,{size:18,className:"text-accent flex-shrink-0"}),s.jsxs("div",{className:"flex-1 min-w-0",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("span",{className:"text-sm font-mono font-bold text-text-0 truncate",children:e.id}),e.quantization&&s.jsx(Ce,{variant:"subtle",className:"text-2xs",children:e.quantization}),e.parameters&&s.jsx(Ce,{variant:"subtle",className:"text-2xs",children:e.parameters}),s.jsx("span",{className:oe("text-2xs font-medium capitalize",o[e.tier]||"text-text-3"),children:e.tier})]}),s.jsxs("div",{className:"text-2xs text-text-3 font-sans mt-0.5",children:[Bc(e.sizeBytes)," · ctx ",(e.contextWindow||0).toLocaleString()," · ",e.category,e.repoId&&s.jsxs("span",{className:"text-text-4",children:[" · ",e.repoId]})]})]}),s.jsx("button",{onClick:async()=>{r(!0),await n(e.id),r(!1)},disabled:l,className:"p-1.5 rounded-md text-text-4 hover:text-red-400 hover:bg-red-400/10 transition-colors",children:l?s.jsx(ht,{size:14,className:"animate-spin"}):s.jsx(Zn,{size:14})})]})}function WX({result:e,onExpand:n,expanded:l}){var r;return s.jsxs("button",{onClick:()=>n(l?null:e.id),className:"w-full text-left px-4 py-3 bg-surface-1 border border-border-subtle rounded-lg hover:border-accent/30 transition-colors cursor-pointer",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("span",{className:"text-sm font-mono font-bold text-text-0 truncate flex-1",children:e.name}),s.jsx("span",{className:"text-2xs text-text-4 font-sans",children:e.author}),l?s.jsx(_n,{size:14,className:"text-text-3"}):s.jsx(cs,{size:14,className:"text-text-3"})]}),s.jsxs("div",{className:"text-2xs text-text-3 font-sans mt-0.5 flex gap-3",children:[s.jsxs("span",{children:[(r=e.downloads)==null?void 0:r.toLocaleString()," downloads"]}),s.jsxs("span",{children:[e.likes," likes"]})]})]})}function BX({repoId:e,onDownload:n,systemRamGb:l}){const[r,o]=v.useState(null),[d,u]=v.useState(!0),[f,h]=v.useState(null),p=Yn();v.useEffect(()=>{u(!0),J.get(`/models/${e}/files`).then(x=>o(x.files||[])).catch(()=>p.error("Failed to load model files")).finally(()=>u(!1))},[e]);async function g(x){h(x.filename);try{await J.post("/models/download",{repoId:e,filename:x.filename}),p.success(`Downloading ${x.filename}`),n==null||n(x.filename)}catch(b){p.error(b.message)}h(null)}return d?s.jsx("div",{className:"py-3 px-4 text-2xs text-text-4 font-sans",children:"Loading quantization variants..."}):r!=null&&r.length?s.jsx("div",{className:"pl-6 pr-4 pb-2 space-y-1.5",children:r.map(x=>{const b=!x.estimatedRamGb||!l||x.estimatedRamGb<=l,y=x.estimatedRamGb&&l&&x.estimatedRamGb>l*.8&&b;return s.jsxs("div",{className:oe("flex items-center gap-2 py-1.5 px-3 rounded-md text-xs font-sans",b?"bg-surface-2":"bg-red-500/5 border border-red-500/15"),children:[s.jsx("span",{className:"font-mono text-text-1 truncate flex-1",children:x.filename}),x.quantization&&s.jsx(Ce,{variant:"subtle",className:"text-2xs",children:x.quantization}),s.jsx("span",{className:"text-text-2 text-2xs w-16 text-right",children:Bc(x.size)}),x.estimatedRamGb&&s.jsxs("span",{className:oe("text-2xs w-20 text-right font-medium",b?y?"text-yellow-400":"text-green-400":"text-red-400"),children:["~",x.estimatedRamGb," GB RAM"]}),!b&&s.jsx("span",{className:"text-2xs text-red-400 font-medium",children:"too large"}),s.jsx("button",{onClick:()=>g(x),disabled:f===x.filename||!b,className:oe("p-1 rounded transition-colors",b?"text-accent hover:bg-accent/10":"text-text-4 cursor-not-allowed","disabled:opacity-40"),children:f===x.filename?s.jsx(ht,{size:13,className:"animate-spin"}):s.jsx(sd,{size:13})})]},x.filename)})}):s.jsx("div",{className:"py-3 px-4 text-2xs text-text-4 font-sans",children:"No GGUF files found in this repo."})}function HX({model:e,systemRamGb:n,onPull:l,pulling:r,isInstalled:o}){const d={light:"text-green-400",medium:"text-blue-400",heavy:"text-orange-400"},u={code:"{}",general:"AI"},f=n?Math.round((1-e.ramGb/n)*100):null;return s.jsxs("div",{className:oe("flex items-center gap-3 px-4 py-3 border rounded-lg transition-colors",o?"bg-success/5 border-success/20":"bg-surface-1 border-border-subtle hover:border-accent/20"),children:[s.jsx("div",{className:"w-9 h-9 rounded-lg bg-surface-3 flex items-center justify-center text-xs font-mono text-text-2 flex-shrink-0",children:u[e.category]||"AI"}),s.jsxs("div",{className:"flex-1 min-w-0",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("span",{className:"text-sm font-mono font-bold text-text-0 truncate",children:e.name}),s.jsx("span",{className:oe("text-2xs font-semibold capitalize",d[e.tier]),children:e.tier}),o&&s.jsxs(Ce,{variant:"success",className:"text-2xs gap-1",children:[s.jsx(kt,{size:8})," Installed"]})]}),s.jsx("div",{className:"text-2xs text-text-3 font-sans mt-0.5",children:e.description}),s.jsxs("div",{className:"flex items-center gap-3 mt-1 text-2xs font-sans",children:[s.jsxs("span",{className:"text-text-2",children:[e.sizeGb," GB download"]}),s.jsxs("span",{className:"text-green-400 font-medium",children:[e.ramGb," GB RAM"]}),f!==null&&s.jsxs("span",{className:"text-text-4",children:[f,"% headroom"]})]})]}),o?s.jsx("span",{className:"text-xs text-success font-sans font-medium px-3 py-1.5",children:"Ready"}):s.jsxs("button",{onClick:()=>l(e.id),disabled:r===e.id,className:"flex items-center gap-1.5 px-3 py-1.5 rounded-md text-xs font-sans font-medium bg-accent/10 text-accent hover:bg-accent/20 transition-colors cursor-pointer disabled:opacity-40",children:[r===e.id?s.jsx(ht,{size:12,className:"animate-spin"}):s.jsx(sd,{size:12}),"Pull"]})]})}function IX(){const[e,n]=v.useState("recommended"),[l,r]=v.useState(""),[o,d]=v.useState([]),[u,f]=v.useState(!1),[h,p]=v.useState([]),[g,x]=v.useState([]),[b,y]=v.useState([]),[Q,w]=v.useState(null),[k,j]=v.useState(null),[P,z]=v.useState(null),[R,Y]=v.useState([]),X=Yn(),C=v.useCallback(()=>{J.get("/models/installed").then(F=>{p(F.models||[])}).catch(()=>{})},[]),T=v.useCallback(()=>{J.get("/providers/ollama/models").then(F=>{Y((F.installed||[]).map(G=>G.id))}).catch(()=>{})},[]);v.useEffect(()=>{J.get("/providers/ollama/hardware").then(w).catch(()=>{}),J.get("/models/recommended").then(F=>{x(F.models||[]),!Q&&F.hardware&&w(F.hardware)}).catch(()=>{}),C(),T()},[C,T]);async function I(F){z(F);try{await J.post("/providers/ollama/pull",{model:F}),X.success(`${F} ready to use`),C(),T(),Y(G=>[...G,F])}catch(G){X.error(`Pull failed: ${G.message}`)}z(null)}v.useEffect(()=>{const F=B.subscribe((V,M)=>{}),G=setInterval(()=>{J.get("/models/downloads").then(y).catch(()=>{})},2e3);return()=>{F(),clearInterval(G)}},[]),v.useEffect(()=>{function F(V){try{const M=JSON.parse(V.data);M.type==="model:download:progress"&&y(N=>{const U=N.findIndex(ee=>ee.filename===M.data.filename);if(U>=0){const ee=[...N];return ee[U]=M.data,ee}return[...N,M.data]}),M.type==="model:download:complete"&&(y(N=>N.filter(U=>U.filename!==M.data.filename)),C(),X.success(`${M.data.filename} downloaded`)),M.type==="model:download:error"&&(y(N=>N.filter(U=>U.filename!==M.data.filename)),X.error(`Download failed: ${M.data.error}`))}catch{}}const G=B.getState()._ws;return G&&G.addEventListener("message",F),()=>{G&&G.removeEventListener("message",F)}},[C,X]);async function Z(){if(l.trim()){f(!0),n("search");try{const F=await J.get(`/models/search?q=${encodeURIComponent(l.trim())}`);d(F)}catch(F){X.error(F.message)}f(!1)}}async function K(F){try{await J.delete(`/models/${F}`),p(G=>G.filter(V=>V.id!==F)),X.success("Model deleted")}catch(G){X.error(G.message)}}return s.jsxs("div",{className:"h-full flex flex-col bg-surface-0",children:[s.jsxs("div",{className:"flex-shrink-0 px-5 pt-4 pb-3 border-b border-border space-y-3",children:[s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsx("h1",{className:"text-base font-bold font-sans text-text-0",children:"Local Models"}),s.jsxs(Ce,{variant:"subtle",className:"text-2xs",children:[h.length," installed"]})]}),s.jsx(GX,{hardware:Q}),s.jsxs("div",{className:"flex gap-2",children:[s.jsxs("div",{className:"relative flex-1",children:[s.jsx(An,{size:14,className:"absolute left-3 top-1/2 -translate-y-1/2 text-text-4"}),s.jsx("input",{value:l,onChange:F=>r(F.target.value),onKeyDown:F=>F.key==="Enter"&&Z(),placeholder:"Search HuggingFace for GGUF models...",className:"w-full h-8 pl-9 pr-3 text-sm rounded-md bg-surface-1 border border-border text-text-0 font-sans placeholder:text-text-4 focus:outline-none focus:ring-1 focus:ring-accent"})]}),s.jsx(ve,{onClick:Z,disabled:u,size:"sm",variant:"accent",children:u?s.jsx(ht,{size:14,className:"animate-spin"}):"Search"})]}),s.jsx("div",{className:"flex gap-1",children:[{id:"recommended",label:`Recommended (${g.length})`},{id:"installed",label:`Installed (${h.length})`},{id:"search",label:`Search (${o.length})`}].map(F=>s.jsx("button",{onClick:()=>n(F.id),className:oe("px-3 py-1 rounded-md text-xs font-sans font-medium transition-colors cursor-pointer",e===F.id?"bg-accent/12 text-accent":"text-text-3 hover:text-text-1 hover:bg-surface-3"),children:F.label},F.id))})]}),b.length>0&&s.jsxs("div",{className:"px-5 py-3 border-b border-border space-y-2",children:[s.jsx("div",{className:"text-xs font-sans font-semibold text-text-2",children:"Downloading"}),b.map(F=>s.jsx(DX,{download:F},F.filename))]}),s.jsx(Mn,{className:"flex-1",children:s.jsxs("div",{className:"px-5 py-4 space-y-2",children:[e==="recommended"&&s.jsx(s.Fragment,{children:g.length===0?s.jsxs("div",{className:"text-center py-12",children:[s.jsx(Il,{size:40,className:"mx-auto text-text-4 mb-3"}),s.jsx("p",{className:"text-sm text-text-2 font-sans font-medium",children:"Detecting hardware..."}),s.jsx("p",{className:"text-xs text-text-3 font-sans mt-1",children:"Make sure Ollama is installed so we can check your system."})]}):s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"text-xs text-text-3 font-sans mb-2",children:["Top models for your system (",(Q==null?void 0:Q.totalRamGb)||"?"," GB RAM). Click Pull to download via Ollama."]}),g.map(F=>{const G=F.id.split(":")[0],V=R.some(M=>M===F.id||M.startsWith(G+":")||M===G);return s.jsx(HX,{model:F,systemRamGb:Q==null?void 0:Q.totalRamGb,onPull:I,pulling:P,isInstalled:V},F.id)})]})}),e==="installed"&&s.jsx(s.Fragment,{children:h.length===0?s.jsxs("div",{className:"text-center py-12",children:[s.jsx(uh,{size:40,className:"mx-auto text-text-4 mb-3"}),s.jsx("p",{className:"text-sm text-text-2 font-sans font-medium",children:"No local models yet"}),s.jsx("p",{className:"text-xs text-text-3 font-sans mt-1",children:"Search HuggingFace to download GGUF models, or pull models via Ollama."})]}):h.map(F=>s.jsx(LX,{model:F,onDelete:K},F.id))}),e==="search"&&s.jsx(s.Fragment,{children:u?s.jsxs("div",{className:"text-center py-12",children:[s.jsx(ht,{size:24,className:"mx-auto text-accent animate-spin mb-3"}),s.jsx("p",{className:"text-sm text-text-3 font-sans",children:"Searching HuggingFace..."})]}):o.length===0?s.jsxs("div",{className:"text-center py-12",children:[s.jsx(An,{size:40,className:"mx-auto text-text-4 mb-3"}),s.jsx("p",{className:"text-sm text-text-2 font-sans font-medium",children:"Search for GGUF models"}),s.jsx("p",{className:"text-xs text-text-3 font-sans mt-1",children:'Try "qwen coder", "deepseek", "codestral", "llama"'})]}):o.map(F=>s.jsxs("div",{className:"space-y-1",children:[s.jsx(WX,{result:F,expanded:k===F.id,onExpand:j}),k===F.id&&s.jsx(BX,{repoId:F.id,onDownload:()=>C(),systemRamGb:Q==null?void 0:Q.totalRamGb})]},F.id))})]})})]})}const E0=["Reading through the codebase...","Thinking through your request...","Planning the approach...","Running tool calls...","Working through the problem...","Reasoning step by step...","Reviewing context...","Considering options...","Analyzing the code...","Making progress..."];function FX({agent:e,className:n}){const[l,r]=v.useState(0),[o,d]=v.useState(!0);return v.useEffect(()=>{const u=setInterval(()=>{d(!1),setTimeout(()=>{r(f=>(f+1)%E0.length),d(!0)},250)},2800);return()=>clearInterval(u)},[]),s.jsxs("div",{className:`${n||""}`,children:[s.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[s.jsx("span",{className:"text-2xs font-semibold text-text-1 font-sans",children:(e==null?void 0:e.name)||"Agent"}),s.jsx("span",{className:"text-2xs text-accent font-mono",children:"thinking"})]}),s.jsxs("div",{className:"border-l border-accent/40 pl-3.5 py-1 flex items-center gap-2.5",children:[s.jsx("div",{className:"relative w-3.5 h-3.5 flex-shrink-0",children:s.jsx("span",{className:"absolute inset-0 rounded-full border border-transparent border-t-accent animate-spin",style:{animationDuration:"0.9s"}})}),s.jsx("span",{className:"text-[12px] font-sans text-text-3 transition-opacity duration-[250ms]",style:{opacity:o?1:0},children:E0[l]})]})]})}const DO=[];function h2(e){const n=(e||"").toLowerCase();return n.includes("reading")||n.includes("read ")?{icon:Bs,color:"text-info",label:"Reading"}:n.includes("editing")||n.includes("wrote")||n.includes("writing")||n.includes("edit ")?{icon:ev,color:"text-warning",label:"Editing"}:n.includes("searching")||n.includes("search")||n.includes("grep")||n.includes("glob")?{icon:An,color:"text-purple",label:"Searching"}:n.includes("running")||n.includes("bash")||n.includes("command")||n.includes("exec")?{icon:$i,color:"text-orange",label:"Running"}:n.includes("test")||n.includes("pass")?{icon:NO,color:"text-success",label:"Testing"}:n.includes("error")||n.includes("fail")||n.includes("crash")?{icon:xa,color:"text-danger",label:"Error"}:n.includes("rotat")?{icon:ki,color:"text-accent",label:"Rotating"}:n.includes("spawn")||n.includes("start")?{icon:En,color:"text-success",label:"Spawned"}:n.includes("tool")||n.includes("function")?{icon:uP,color:"text-text-2",label:"Tool"}:n.includes("complet")||n.includes("done")||n.includes("finish")?{icon:NO,color:"text-success",label:"Done"}:{icon:ds,color:"text-text-3",label:"Activity"}}function El({text:e}){return e?e.split(/(\*\*[^*]+\*\*|`[^`]+`)/g).map((n,l)=>n.startsWith("**")&&n.endsWith("**")?s.jsx("strong",{className:"font-semibold text-text-0",children:n.slice(2,-2)},l):n.startsWith("`")&&n.endsWith("`")?s.jsx("code",{className:"px-1 py-px rounded bg-accent/8 text-[11px] font-mono text-accent",children:n.slice(1,-1)},l):s.jsx("span",{children:n},l)):null}function KX({text:e}){if(!e)return null;const n=[],l=e.split(`
|
|
648
|
-
`);let r=0;for(;r<l.length;){const o=l[r];if(o.trimStart().startsWith("```")){const u=[],f=o.trim().slice(3);for(r++;r<l.length&&!l[r].trimStart().startsWith("```");)u.push(l[r]),r++;r++,n.push({type:"code",content:u.join(`
|
|
649
|
-
`),lang:f});continue}if(/^#{1,3}\s/.test(o)||/^\*\*[^*]+:\*\*\s*$/.test(o.trim())){const u=o.replace(/^#+\s*/,"").replace(/^\*\*/,"").replace(/:\*\*\s*$/,":").trim();n.push({type:"heading",content:u}),r++;continue}if(/^\s*[-*]\s/.test(o)){const u=[];for(;r<l.length&&/^\s*[-*]\s/.test(l[r]);)u.push(l[r].replace(/^\s*[-*]\s+/,"").trim()),r++;n.push({type:"list",items:u});continue}if(/^\s*\d+[\.)]\s/.test(o)){const u=[];for(;r<l.length&&/^\s*\d+[\.)]\s/.test(l[r]);)u.push(l[r].replace(/^\s*\d+[\.)]\s+/,"").trim()),r++;n.push({type:"numbered",items:u});continue}if(!o.trim()){r++;continue}if(/^(Note|Warning|Important|IMPORTANT|TODO):/i.test(o.trim())){n.push({type:"note",content:o.trim()}),r++;continue}const d=[];for(;r<l.length&&l[r].trim()&&!/^#{1,3}\s/.test(l[r])&&!/^\s*[-*]\s/.test(l[r])&&!/^\s*\d+[\.)]\s/.test(l[r])&&!l[r].trimStart().startsWith("```");)d.push(l[r].trim()),r++;d.length>0&&n.push({type:"para",content:d.join(" ")})}return s.jsx("div",{className:"space-y-2",children:n.map((o,d)=>{switch(o.type){case"heading":return s.jsxs("div",{className:"flex items-center gap-1.5 pt-1.5 first:pt-0",children:[s.jsx("div",{className:"w-1 h-3.5 rounded-full bg-accent/40 flex-shrink-0"}),s.jsx("span",{className:"text-[12px] font-semibold text-text-0 font-sans",children:s.jsx(El,{text:o.content})})]},d);case"list":return s.jsx("div",{className:"space-y-1 pl-2",children:o.items.map((u,f)=>s.jsxs("div",{className:"flex gap-2 text-[12px] text-text-0 font-sans leading-relaxed",children:[s.jsx("span",{className:"text-accent/50 mt-0.5 flex-shrink-0",children:"-"}),s.jsx("span",{className:"min-w-0",children:s.jsx(El,{text:u})})]},f))},d);case"numbered":return s.jsx("div",{className:"space-y-1 pl-2",children:o.items.map((u,f)=>s.jsxs("div",{className:"flex gap-2 text-[12px] text-text-0 font-sans leading-relaxed",children:[s.jsxs("span",{className:"text-text-4 font-mono w-4 text-right flex-shrink-0",children:[f+1,"."]}),s.jsx("span",{className:"min-w-0",children:s.jsx(El,{text:u})})]},f))},d);case"code":return s.jsx("pre",{className:"p-2.5 rounded-md bg-[#0d1117] text-[11px] font-mono text-[#c9d1d9] overflow-x-auto whitespace-pre-wrap border border-white/[0.06] leading-relaxed",children:o.content},d);case"note":return s.jsxs("div",{className:"flex items-start gap-1.5 px-2.5 py-1.5 rounded-md bg-warning/6 border border-warning/12",children:[s.jsx(xa,{size:10,className:"text-warning mt-0.5 flex-shrink-0"}),s.jsx("span",{className:"text-[11px] text-warning/80 font-sans",children:s.jsx(El,{text:o.content})})]},d);case"para":default:return s.jsx("p",{className:"text-[12px] text-text-0 font-sans leading-relaxed",children:s.jsx(El,{text:o.content})},d)}})})}function JX({text:e}){if(!e)return null;const n=e.split(/(```[\s\S]*?```)/g);return s.jsx("span",{children:n.map((l,r)=>{if(l.startsWith("```")&&l.endsWith("```")){const o=l.slice(3,-3).replace(/^\w+\n/,"");return s.jsx("pre",{className:"my-1.5 p-2 rounded-md bg-[#0d1117] text-[11px] font-mono text-[#c9d1d9] overflow-x-auto whitespace-pre-wrap border border-white/[0.06]",children:o},r)}return s.jsx("span",{children:s.jsx(El,{text:l})},r)})})}function eZ({msg:e}){const n=e.isQuery;return s.jsx("div",{className:"flex justify-end pl-8",children:s.jsxs("div",{className:"max-w-[90%]",children:[n&&s.jsxs("div",{className:"flex items-center justify-end gap-1 mb-1",children:[s.jsx(Hl,{size:9,className:"text-info"}),s.jsx("span",{className:"text-2xs text-info font-sans font-medium",children:"Query"})]}),s.jsx("div",{className:oe("px-3.5 py-2.5 rounded-lg border","bg-info/10 border-info/25"),children:s.jsx("div",{className:"text-[12px] font-sans whitespace-pre-wrap break-words leading-relaxed text-text-0",children:s.jsx(JX,{text:e.text})})}),s.jsx("div",{className:"text-[10px] text-text-4 font-sans mt-1 text-right",children:jt(e.timestamp)})]})})}function tZ({msg:e,agent:n}){var d,u;const[l,r]=v.useState(((d=e.text)==null?void 0:d.length)>600),o=((u=e.text)==null?void 0:u.length)>600;return s.jsxs("div",{children:[s.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[s.jsx("span",{className:"text-2xs font-semibold text-text-1 font-sans",children:(n==null?void 0:n.name)||"Agent"}),s.jsx("span",{className:"text-2xs text-text-4 font-sans",children:n==null?void 0:n.role}),s.jsx("span",{className:"text-[10px] text-text-4 font-sans ml-auto",children:jt(e.timestamp)})]}),s.jsx("div",{className:"border-l border-accent pl-3.5 py-1",children:s.jsx(KX,{text:l?e.text.slice(0,600)+"...":e.text})}),l&&s.jsxs("button",{onClick:()=>r(!1),className:"ml-3.5 mt-1.5 flex items-center gap-1.5 text-[11px] text-accent/70 hover:text-accent font-sans font-medium cursor-pointer transition-colors",children:[s.jsx(_n,{size:11}),"Show full response"]}),o&&!l&&s.jsxs("button",{onClick:()=>r(!0),className:"ml-3.5 mt-1.5 flex items-center gap-1.5 text-[11px] text-accent/70 hover:text-accent font-sans font-medium cursor-pointer transition-colors",children:[s.jsx(_n,{size:11,className:"rotate-180"}),"Collapse"]})]})}function nZ({msg:e}){return s.jsxs("div",{className:"flex items-center gap-3 py-2",children:[s.jsx("div",{className:"flex-1 h-px bg-border-subtle"}),s.jsx("span",{className:"text-[10px] text-text-4 font-sans flex-shrink-0 uppercase tracking-wide",children:e.text}),s.jsx("div",{className:"flex-1 h-px bg-border-subtle"})]})}function aZ({entries:e,isLive:n}){var u;const[l,r]=v.useState(0);if(v.useEffect(()=>{if(!n||e.length<=1)return;const f=setInterval(()=>r(h=>(h+1)%e.length),1500);return()=>clearInterval(f)},[e.length,n]),!n){const f=e[e.length-1],p=h2(f.text).icon;return s.jsxs("div",{className:"inline-flex items-center gap-2 px-3 py-1 text-[10px] text-text-4 font-mono",children:[s.jsx(p,{size:10,className:"opacity-50"}),s.jsxs("span",{children:[e.length," tool call",e.length!==1?"s":""]})]})}const o=e[Math.min(l,e.length-1)],d=((u=o.text)==null?void 0:u.length)>60?o.text.slice(0,60)+"...":o.text;return s.jsxs("div",{className:"inline-flex items-center gap-2 px-3 py-2 max-w-[280px] rounded-md bg-surface-3/50 border border-border-subtle/30",children:[s.jsx(ht,{size:11,className:"text-accent animate-spin flex-shrink-0"}),s.jsx("span",{className:"text-[11px] text-text-2 font-mono truncate transition-opacity duration-300",children:d}),e.length>1&&s.jsx("span",{className:"text-[10px] text-text-4 font-mono flex-shrink-0",children:e.length})]})}function sZ({agent:e}){const n=B(h=>h.activityLog[e.id])||DO,l=n[n.length-1],r=l?h2(l.text):null,o=(r==null?void 0:r.icon)||ds,d=l&&Date.now()-l.timestamp<1e4,u=d&&l.text?l.text.length>60?l.text.slice(0,60)+"...":l.text:null,f=Math.round((e.contextUsage||0)*100);return s.jsxs("div",{className:"flex items-center gap-3 px-4 h-8 border-b border-border-subtle bg-surface-1/80 flex-shrink-0",children:[s.jsxs("div",{className:"flex items-center gap-2 flex-1 min-w-0",children:[s.jsxs("div",{className:"relative flex items-center justify-center w-4 h-4",children:[s.jsx("span",{className:"absolute inset-0 rounded-full bg-accent/15 animate-ping",style:{animationDuration:"2s"}}),s.jsx("span",{className:"relative w-1.5 h-1.5 rounded-full bg-accent"})]}),d?s.jsxs(s.Fragment,{children:[s.jsx(o,{size:10,className:oe(r.color,"flex-shrink-0")}),s.jsx("span",{className:"text-[11px] text-text-2 font-sans truncate",children:u})]}):s.jsx("span",{className:"text-[11px] text-text-3 font-sans",children:"Working..."})]}),s.jsxs("div",{className:"flex items-center gap-3 flex-shrink-0",children:[s.jsx("span",{className:"text-[10px] text-text-4 font-mono",children:lZ(e.tokensUsed)}),s.jsxs("div",{className:"flex items-center gap-1.5",children:[s.jsx("div",{className:"w-14 h-1 rounded-full bg-surface-4 overflow-hidden",children:s.jsx("div",{className:"h-full rounded-full transition-all duration-500",style:{width:`${f}%`,background:f>=75?"var(--color-danger)":f>=50?"var(--color-warning)":"var(--color-accent)"}})}),s.jsxs("span",{className:"text-[10px] text-text-4 font-mono w-7 text-right",children:[f,"%"]})]})]})]})}function lZ(e){return e?e>=1e6?(e/1e6).toFixed(1)+"M":e>=1e3?(e/1e3).toFixed(1)+"K":String(e):"0"}function rZ({agent:e}){const[n,l]=v.useState([]),r=[{text:`Initializing ${e.name}`,delay:0},{text:`Role: ${e.role}`,delay:400},{text:`Provider: ${e.provider||"claude-code"}`,delay:700},{text:"Loading workspace context",delay:1e3},{text:"Scanning project structure",delay:1400},{text:"Session active",delay:1900}];return v.useEffect(()=>{const o=r.map((d,u)=>setTimeout(()=>l(f=>[...f,u]),d.delay));return()=>o.forEach(clearTimeout)},[]),s.jsxs("div",{className:"flex flex-col px-4 pt-6",children:[s.jsxs("div",{className:"flex items-center gap-3 mb-5",children:[s.jsxs("div",{className:"relative w-9 h-9",children:[s.jsx("span",{className:"absolute inset-0 rounded-full border-2 border-accent/20 animate-ping",style:{animationDuration:"2s"}}),s.jsx("span",{className:"absolute inset-0 rounded-full border-2 border-transparent border-t-accent animate-spin",style:{animationDuration:"1s"}}),s.jsx("span",{className:"absolute inset-[5px] rounded-full bg-accent/8"})]}),s.jsxs("div",{children:[s.jsx("p",{className:"text-sm font-bold text-text-0 font-sans",children:e.name}),s.jsx("p",{className:"text-2xs text-accent font-mono",children:"starting up"})]})]}),s.jsx("div",{className:"space-y-2 pl-3 border-l border-accent/15",children:r.map((o,d)=>{const u=n.includes(d),f=d===r.length-1;return s.jsxs("div",{className:oe("flex items-center gap-2.5 transition-all duration-300",u?"opacity-100 translate-x-0":"opacity-0 -translate-x-2"),children:[s.jsx("span",{className:oe("w-1 h-1 rounded-full flex-shrink-0",f&&u?"bg-accent":u?"bg-text-3":"bg-transparent")}),s.jsx("span",{className:oe("text-[11px] font-mono",f&&u?"text-accent":"text-text-3"),children:o.text}),f&&u&&s.jsxs("span",{className:"flex gap-0.5 ml-1",children:[s.jsx("span",{className:"w-1 h-1 rounded-full bg-accent animate-pulse",style:{animationDelay:"0ms"}}),s.jsx("span",{className:"w-1 h-1 rounded-full bg-accent animate-pulse",style:{animationDelay:"200ms"}}),s.jsx("span",{className:"w-1 h-1 rounded-full bg-accent animate-pulse",style:{animationDelay:"400ms"}})]})]},d)})})]})}function iZ({agent:e}){const n=B(Z=>Z.chatHistory[e.id])||DO,l=B(Z=>Z.activityLog[e.id])||DO,r=B(Z=>Z.instructAgent),o=B(Z=>Z.queryAgent),d=B(Z=>{var K;return(K=Z.thinkingAgents)==null?void 0:K.has(e.id)}),u=B(Z=>Z.chatInputs[e.id]||""),f=Z=>B.setState(K=>({chatInputs:{...K.chatInputs,[e.id]:Z}})),h=u,p=f,[g,x]=v.useState("instruct"),[b,y]=v.useState(!1),[Q,w]=v.useState(36),k=v.useRef(null),j=v.useRef(null),P=v.useRef(null),z=v.useRef(null),R=v.useCallback(Z=>{Z.preventDefault();const K=Z.clientY,F=Q,G=M=>w(Math.min(Math.max(36,F-(M.clientY-K)),280)),V=()=>{window.removeEventListener("mousemove",G),window.removeEventListener("mouseup",V)};window.addEventListener("mousemove",G),window.addEventListener("mouseup",V)},[Q]),Y=v.useMemo(()=>{var N;const Z=[],K=new Set;for(const U of n){const ee=`${U.from}:${(N=U.text)==null?void 0:N.slice(0,100)}`;Z.find(se=>{var we;return se.kind==="chat"&&`${se.from}:${(we=se.text)==null?void 0:we.slice(0,100)}`===ee&&Math.abs(se.ts-U.timestamp)<5e3})||(Z.push({...U,kind:"chat",ts:U.timestamp}),K.add(U.text))}const F=K,G=l.slice(-30);for(const U of G)(U.text||"").trim()&&!F.has(U.text)&&Z.push({...U,kind:"activity",ts:U.timestamp});Z.sort((U,ee)=>U.ts-ee.ts);const V=[];let M=[];for(const U of Z)U.kind==="activity"?M.push(U):(M.length>0&&(V.push({kind:"activity-group",entries:M}),M=[]),V.push(U));return M.length>0&&V.push({kind:"activity-group",entries:M}),V},[n,l]);v.useEffect(()=>{j.current&&requestAnimationFrame(()=>{j.current&&(j.current.scrollTop=j.current.scrollHeight)})},[Y.length]);async function X(Z){var V;const K=Array.from(Z.target.files||[]);if(K.length===0)return;const F=B.getState().addToast,G=[];for(const M of K)try{const N=await new Promise((U,ee)=>{const de=new FileReader;de.onload=()=>U(de.result.split(",")[1]),de.onerror=ee,de.readAsDataURL(M)});await J.post(`/agents/${e.id}/upload`,{filename:M.name,content:N}),G.push(M.name)}catch(N){F("error",`Upload failed: ${M.name}`,N.message)}if(G.length>0){const M=G.join(", ");p(N=>(N?N+`
|
|
650
|
-
`:"")+`[Uploaded: ${M}] — I've uploaded these files to your working directory. Read them and use their content.`),F("success",`Uploaded ${G.length} file${G.length>1?"s":""}`)}Z.target.value="",(V=P.current)==null||V.focus()}async function C(){var K;const Z=h.trim();if(!(!Z||b)){if(Z==="/rotate"){const F=B.getState().rotateAgent;p("");try{await F(e.id)}catch{}return}p(""),y(!0);try{g==="query"?await o(e.id,Z):await r(e.id,Z)}catch{}y(!1),(K=P.current)==null||K.focus()}}function T(Z){Z.key==="Enter"&&!Z.shiftKey&&(Z.preventDefault(),C())}const I=e.status==="running"||e.status==="starting";return s.jsxs("div",{className:"flex flex-col h-full min-h-0",children:[I&&s.jsx(sZ,{agent:e}),s.jsxs("div",{ref:j,className:"flex-1 overflow-y-auto px-4 py-4 space-y-4",children:[!Y.some(Z=>Z.from==="agent"||Z.kind==="activity-group")&&(I?s.jsx(rZ,{agent:e}):s.jsxs("div",{className:"flex flex-col items-center justify-center h-full text-center py-8",children:[s.jsx("div",{className:"w-10 h-10 rounded-xl bg-surface-3 flex items-center justify-center mb-3",children:s.jsx(wi,{size:18,className:"text-text-4"})}),s.jsx("p",{className:"text-sm font-semibold text-text-0 font-sans",children:e.name}),s.jsx("p",{className:"text-xs text-text-3 font-sans mt-1",children:"Session complete — send a message to continue"})]})),Y.map((Z,K)=>{if(Z.kind==="activity-group"){const F=!Y.slice(K+1).some(G=>G.kind==="activity-group"||G.from==="agent");return s.jsx("div",{children:s.jsx(aZ,{entries:Z.entries,isLive:I&&F})},`grp-${K}`)}return Z.from==="user"?s.jsx(eZ,{msg:Z},`msg-${K}`):Z.from==="system"?s.jsx(nZ,{msg:Z},`msg-${K}`):s.jsx(tZ,{msg:Z,agent:e},`msg-${K}`)}),s.jsx(LO,{children:(b||d)&&s.jsx(WO.div,{initial:{opacity:0,y:6},animate:{opacity:1,y:0},exit:{opacity:0,y:-4},transition:{duration:.25,ease:"easeOut"},children:s.jsx(FX,{agent:e})},"thinking")})]}),s.jsxs("div",{className:"bg-surface-1/50 flex-shrink-0",children:[s.jsx("div",{ref:k,onMouseDown:R,className:"flex items-center justify-center h-5 cursor-row-resize border-t border-border hover:bg-surface-3/50 transition-colors group",children:s.jsx(ZT,{size:12,className:"text-text-4 group-hover:text-text-2 transition-colors"})}),s.jsxs("div",{className:"px-4 pb-3",children:[s.jsxs("div",{className:"flex items-center gap-1 mb-2",children:[s.jsxs("button",{onClick:()=>x("instruct"),className:oe("flex items-center gap-1.5 px-2.5 py-1 rounded-md text-[11px] font-sans font-medium transition-colors cursor-pointer",g==="instruct"?"bg-accent/12 text-accent border border-accent/20":"text-text-3 hover:text-text-1 hover:bg-surface-3"),children:[s.jsx(rd,{size:10}),"Instruct"]}),s.jsxs("button",{onClick:()=>x("query"),className:oe("flex items-center gap-1.5 px-2.5 py-1 rounded-md text-[11px] font-sans font-medium transition-colors cursor-pointer",g==="query"?"bg-info/12 text-info border border-info/20":"text-text-3 hover:text-text-1 hover:bg-surface-3"),children:[s.jsx(Hl,{size:10}),"Query"]}),s.jsx("span",{className:"text-[10px] text-text-4 font-sans ml-auto",children:g==="query"?"Read-only — agent keeps working":I?"Directs the agent":"Continues the session"})]}),s.jsxs("div",{className:oe("flex items-end gap-1 rounded-xl border bg-surface-0 p-1 transition-colors",g==="query"?"border-info/20 focus-within:border-info/40":"border-border-subtle focus-within:border-accent/30"),children:[s.jsx("input",{ref:z,type:"file",multiple:!0,accept:".pdf,.png,.jpg,.jpeg,.gif,.svg,.csv,.txt,.md,.json,.yaml,.yml,.docx,.pptx,.xlsx",onChange:X,className:"hidden"}),s.jsx("button",{onClick:()=>{var Z;return(Z=z.current)==null?void 0:Z.click()},className:"w-9 h-9 flex items-center justify-center rounded-lg text-text-4 hover:text-text-1 hover:bg-surface-3 transition-colors cursor-pointer flex-shrink-0 mb-px",title:"Attach file",children:s.jsx(gN,{size:14})}),s.jsx("textarea",{ref:P,value:h,onChange:Z=>p(Z.target.value),onKeyDown:T,placeholder:g==="query"?"Ask about this agent's work...":I?"Send an instruction...":"Continue this session...",rows:1,className:oe("flex-1 resize-none px-3 py-2 text-[13px]","bg-transparent text-text-0 font-sans","placeholder:text-text-4","focus:outline-none"),style:{height:Q}}),d?s.jsx("button",{onClick:()=>B.getState().stopAgent(e.id),title:"Stop agent",className:"w-9 h-9 flex items-center justify-center rounded-lg border border-danger/30 bg-danger/12 text-danger hover:bg-danger/20 transition-all cursor-pointer flex-shrink-0 mb-px",children:s.jsx(IN,{size:13,fill:"currentColor"})}):s.jsx("button",{onClick:C,disabled:!h.trim()||b,className:oe("w-9 h-9 flex items-center justify-center rounded-lg transition-all cursor-pointer flex-shrink-0 mb-px","disabled:opacity-15 disabled:cursor-not-allowed",h.trim()?g==="query"?"bg-info text-white hover:bg-info/85":"bg-accent text-white hover:bg-accent/85":"bg-transparent text-text-4"),children:b?s.jsx(ht,{size:15,className:"animate-spin"}):s.jsx(ph,{size:15})})]})]})]})]})}function Oc({options:e,value:n,onChange:l}){return s.jsx("div",{className:"flex bg-surface-0 rounded-lg p-0.5 border border-border-subtle",children:e.map(r=>s.jsx("button",{onClick:()=>l(r.value),className:oe("flex-1 px-3 py-1.5 text-2xs font-semibold font-sans rounded-md transition-all cursor-pointer",n===r.value?"bg-accent/15 text-accent shadow-sm":"text-text-3 hover:text-text-1"),children:r.label},r.value))})}function cn({label:e,icon:n,children:l,description:r}){return s.jsxs("div",{className:"space-y-2",children:[s.jsxs("div",{children:[s.jsxs("label",{className:"flex items-center gap-1.5 text-xs font-semibold text-text-1 font-sans",children:[n&&s.jsx(n,{size:13,className:"text-text-3"}),e]}),r&&s.jsx("p",{className:"text-2xs text-text-4 font-sans mt-0.5",children:r})]}),l]})}function oZ({agent:e}){const n=B(Q=>Q.killAgent),l=B(Q=>Q.rotateAgent),r=B(Q=>Q.spawnAgent),o=B(Q=>Q.closeDetail),d=B(Q=>Q.addToast),[u,f]=v.useState(null),[h,p]=v.useState(!1),g=e.status==="running"||e.status==="starting";async function x(){f("rotate");try{await l(e.id)}catch{}f(null)}async function b(){if(!h){p(!0),setTimeout(()=>p(!1),3e3);return}f("kill");try{await n(e.id),o()}catch{}f(null),p(!1)}async function y(){f("clone");try{await r({role:e.role,provider:e.provider,model:e.model,name:`${e.name}-clone`,scope:e.scope,workingDir:e.workingDir}),d("success",`Cloned ${e.name}`)}catch{}f(null)}return g?s.jsx("div",{className:"space-y-2",children:s.jsxs("div",{className:"grid grid-cols-3 gap-2",children:[s.jsxs(ve,{variant:"primary",size:"md",onClick:x,disabled:u==="rotate",className:"gap-1.5",children:[s.jsx(ki,{size:12,className:u==="rotate"?"animate-spin":""}),"Rotate"]}),s.jsxs(ve,{variant:"info",size:"md",onClick:y,disabled:!!u,className:"gap-1.5",children:[s.jsx(Rc,{size:12})," Clone"]}),s.jsxs(ve,{variant:"danger",size:"md",onClick:b,disabled:u==="kill",className:"gap-1.5",children:[s.jsx(xh,{size:12}),h?"Confirm":"Kill"]})]})}):s.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[s.jsxs(ve,{variant:"info",size:"md",onClick:y,disabled:!!u,className:"gap-1.5",children:[s.jsx(Rc,{size:12})," Clone"]}),s.jsxs(ve,{variant:"danger",size:"md",onClick:b,disabled:u==="kill",className:"gap-1.5",children:[s.jsx(Zn,{size:12}),h?"Confirm":"Remove"]})]})}function cZ({agent:e}){var be,ze;const n=B(W=>W.addToast),[l,r]=v.useState([]),[o,d]=v.useState(e.model||""),[u,f]=v.useState(""),[h,p]=v.useState(e.effort||"default"),[g,x]=v.useState(!1),[b,y]=v.useState(""),[Q,w]=v.useState(null),[k,j]=v.useState(!1),[P,z]=v.useState(null),[R,Y]=v.useState(e.routingMode||"auto"),[X,C]=v.useState([]),[T,I]=v.useState("hr"),[Z,K]=v.useState("1"),[F,G]=v.useState(!1),V=e.status==="running"||e.status==="starting";v.useEffect(()=>{M(),J.get("/skills/installed").then(Se=>C(Array.isArray(Se)?Se:Se.skills||[])).catch(()=>{});function W(){M()}return window.addEventListener("groove:providers-changed",W),()=>window.removeEventListener("groove:providers-changed",W)},[]);function M(){J.get("/providers").then(W=>r(Array.isArray(W)?W:[])).catch(()=>{})}v.useEffect(()=>{d(e.model||""),J.get(`/agents/${e.id}/routing/recommend`).then(W=>{Y((W==null?void 0:W.mode)||"fixed")}).catch(()=>{})},[e.id,e.model]);const N=l.find(W=>W.id===e.provider);async function U(W,Se){d(Se);try{const ne={model:Se};W&&W!==e.provider&&(ne.provider=W),await J.patch(`/agents/${e.id}`,ne),n("success",`Model → ${Se}${ne.provider?` (${W})`:""}`)}catch(ne){n("error","Model swap failed",ne.message)}}async function ee(W){try{await J.patch(`/agents/${e.id}`,{workingDir:W}),n("success",`Working dir → ${W.split("/").pop()||W}`)}catch(Se){n("error","Update failed",Se.message)}}async function de(W){p(W);try{await J.patch(`/agents/${e.id}`,{effort:W}),n("success",`Effort → ${W}`)}catch(Se){n("error","Update failed",Se.message)}}async function se(W){if(!W.trim())return;const Se=[...e.scope||[],W.trim()];try{await J.patch(`/agents/${e.id}`,{scope:Se}),f("")}catch(ne){n("error","Scope update failed",ne.message)}}async function we(W){const Se=(e.scope||[]).filter((ne,fe)=>fe!==W);try{await J.patch(`/agents/${e.id}`,{scope:Se})}catch(ne){n("error","Scope update failed",ne.message)}}async function Qe(W){if(b.trim())try{await J.post(`/credentials/${W}`,{key:b.trim()}),n("success",`API key set for ${W}`),y(""),w(null),M(),window.dispatchEvent(new CustomEvent("groove:providers-changed"))}catch(Se){n("error","Failed to set key",Se.message)}}const me=e.spawnedAt||e.createdAt;return s.jsxs("div",{className:"px-5 py-5 space-y-6 overflow-y-auto h-full",children:[s.jsx(cn,{label:"Active Model",icon:Il,children:s.jsxs("div",{className:"bg-surface-0 rounded-lg border border-border-subtle px-3.5 py-3",children:[s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsxs("div",{children:[s.jsx("div",{className:"text-sm font-bold font-mono text-text-0",children:e.model||"auto"}),s.jsx("div",{className:"text-2xs text-text-3 font-sans mt-0.5",children:(N==null?void 0:N.name)||e.provider})]}),(N==null?void 0:N.canHotSwap)&&V&&s.jsxs(Ce,{variant:"accent",className:"text-2xs gap-1",children:[s.jsx(En,{size:8})," Hot-swap"]})]}),((be=N==null?void 0:N.models)==null?void 0:be.length)>1&&s.jsx("div",{className:"flex flex-wrap gap-1.5 mt-3 pt-3 border-t border-border-subtle",children:N.models.filter(W=>!W.disabled).map(W=>{const Se=W.id===e.model;return s.jsx("button",{onClick:()=>U(e.provider,W.id),disabled:!1,className:oe("px-2.5 py-1 rounded-md text-xs font-mono transition-all","cursor-pointer",Se?"bg-accent/15 text-accent font-semibold":"bg-surface-4 text-text-2 hover:bg-surface-5 hover:text-text-0"),children:W.name||W.id},W.id)})})]})}),s.jsx(oZ,{agent:e}),s.jsxs(cn,{label:"Providers",icon:g1,description:"Click a provider to see its models and connection status.",children:[s.jsx("div",{className:"space-y-1.5",children:l.map(W=>{const Se=W.id===e.provider,ne=W.installed||W.hasKey,fe=P===W.id,Ne=W.models||[];return s.jsxs("div",{className:"rounded-lg border border-border-subtle bg-surface-0 overflow-hidden",children:[s.jsxs("button",{onClick:()=>z(fe?null:W.id),className:"w-full flex items-center gap-2.5 px-3 py-2 cursor-pointer hover:bg-surface-4/50 transition-colors",children:[s.jsx("div",{className:oe("w-2 h-2 rounded-full flex-shrink-0",ne?"bg-success":"bg-text-4")}),s.jsx("span",{className:oe("text-xs font-semibold font-sans flex-1 text-left",ne?"text-text-0":"text-text-3"),children:W.name||W.id}),Se&&s.jsx(Ce,{variant:"accent",className:"text-2xs",children:"Active"}),!ne&&s.jsx("span",{className:"text-2xs text-text-4 font-sans",children:W.authType==="local"?"Not installed":"No key"}),s.jsx(_n,{size:12,className:oe("text-text-4 transition-transform",fe&&"rotate-180")})]}),fe&&W.authType==="local"&&s.jsx("div",{className:"border-t border-border-subtle",children:s.jsx(c2,{isInstalled:ne,onModelChange:M})}),fe&&W.authType!=="local"&&s.jsxs("div",{className:"border-t border-border-subtle",children:[(!ne||W.hasKey)&&s.jsx("div",{className:"px-3 py-2 bg-surface-1/50",children:Q===W.id?s.jsxs("div",{className:"flex gap-1.5",children:[s.jsxs("div",{className:"flex-1 relative",children:[s.jsx("input",{value:b,onChange:ke=>y(ke.target.value),onKeyDown:ke=>ke.key==="Enter"&&Qe(W.id),type:k?"text":"password",placeholder:`${W.name||W.id} API key...`,className:"w-full h-7 px-2.5 pr-7 text-2xs bg-surface-0 border border-border rounded-md text-text-0 font-mono placeholder:text-text-4 focus:outline-none focus:ring-1 focus:ring-accent",autoFocus:!0}),s.jsx("button",{onClick:()=>j(!k),className:"absolute right-2 top-1/2 -translate-y-1/2 text-text-4 hover:text-text-2 cursor-pointer",children:k?s.jsx(ld,{size:10}):s.jsx(Bs,{size:10})})]}),s.jsx(ve,{variant:"primary",size:"sm",onClick:()=>Qe(W.id),disabled:!b.trim(),className:"h-7 px-2 text-2xs",children:"Save"}),s.jsx(ve,{variant:"ghost",size:"sm",onClick:()=>{w(null),y("")},className:"h-7 px-2 text-2xs",children:"Cancel"})]}):s.jsxs("button",{onClick:()=>{w(W.id),y(""),j(!1)},className:"flex items-center gap-1.5 text-2xs text-text-3 hover:text-accent font-sans cursor-pointer transition-colors",children:[s.jsx(qs,{size:10}),ne?"Update API key":"Add API key to enable"]})}),ne&&Ne.filter(ke=>!ke.disabled).length>0&&Ne.filter(ke=>!ke.disabled).map(ke=>{const De=W.id===e.provider&&ke.id===e.model;return s.jsxs("button",{onClick:()=>U(W.id,ke.id),disabled:!1,className:oe("w-full flex items-center gap-2 px-3 py-2 text-left text-xs font-sans transition-colors","border-t border-border-subtle","cursor-pointer hover:bg-surface-4/50",De?"text-accent":"text-text-2"),children:[De?s.jsx(kt,{size:11,className:"text-accent flex-shrink-0"}):s.jsx("div",{className:"w-[11px]"}),s.jsx("span",{className:"font-mono flex-1 truncate",children:ke.name||ke.id}),s.jsx(Ce,{variant:De?"accent":"default",className:"text-2xs",children:ke.tier})]},ke.id)})]})]},W.id)})}),V&&s.jsxs("div",{className:"flex items-center gap-1.5 text-2xs text-text-3 font-sans mt-1.5",children:[s.jsx(xa,{size:10}),s.jsx("span",{children:"Model changes apply on next rotation or respawn."})]})]}),s.jsx(cn,{label:"Working Directory",icon:fi,description:"The root directory this agent operates in.",children:s.jsxs("div",{className:"flex gap-2",children:[s.jsx("div",{className:"flex-1 bg-surface-0 rounded-lg px-3 py-2.5 text-sm font-mono text-text-1 border border-border-subtle truncate min-w-0",children:e.workingDir||"Project root"}),s.jsxs(ve,{variant:"secondary",size:"md",onClick:()=>x(!0),className:"gap-1.5 flex-shrink-0",children:[s.jsx(tv,{size:14})," Browse"]})]})}),s.jsx(cn,{label:"Permission Mode",icon:Ms,description:"Full Send = no approvals. Agent Approve = Fullstack Manager reviews risky operations.",children:s.jsx(Oc,{options:[{value:"full",label:"Full Send"},{value:"auto",label:"Agent Approve"}],value:e.permission||"full",onChange:async W=>{try{await J.patch(`/agents/${e.id}`,{permission:W}),n("success",`Permission → ${W==="full"?"Full Send":"Agent Approve"}`)}catch(Se){n("error","Update failed",Se.message)}}})}),((ze=e.integrations)==null?void 0:ze.length)>0&&s.jsx(cn,{label:"Integration Approvals",icon:Vl,description:"Manual = you approve dangerous actions. Auto = agent acts freely.",children:s.jsx(Oc,{options:[{value:"manual",label:"Manual"},{value:"auto",label:"Auto"}],value:e.integrationApproval||"manual",onChange:async W=>{try{await J.patch(`/agents/${e.id}`,{integrationApproval:W}),n("success",`Integration approvals → ${W==="auto"?"Auto":"Manual"}`)}catch(Se){n("error","Update failed",Se.message)}}})}),s.jsxs(cn,{label:"Model Routing",icon:ui,description:"How Groove selects models for this agent's tasks.",children:[s.jsx(Oc,{options:[{value:"fixed",label:"Fixed"},{value:"auto",label:"Auto"},{value:"auto-floor",label:"Auto + Floor"}],value:R,onChange:async W=>{Y(W);try{await J.post(`/agents/${e.id}/routing`,{mode:W}),n("success",`Routing → ${W}`)}catch(Se){n("error","Update failed",Se.message)}}}),s.jsxs("div",{className:"text-2xs text-text-4 font-sans mt-1",children:[R==="fixed"&&"Uses the selected model for all tasks.",R==="auto"&&"Groove picks Opus/Sonnet/Haiku based on task complexity.",R==="auto-floor"&&"Auto-routes but never drops below Sonnet."]})]}),s.jsx(cn,{label:"File Scope",icon:Ms,description:"Restrict which files this agent can access. Empty = unrestricted.",children:s.jsxs("div",{className:"flex flex-wrap gap-2",children:[(e.scope||[]).map((W,Se)=>s.jsxs(Ce,{variant:"default",className:"font-mono text-xs gap-1.5 px-2.5 py-1",children:[W,s.jsx("button",{onClick:()=>we(Se),className:"hover:text-danger cursor-pointer",children:s.jsx(Qt,{size:10})})]},Se)),s.jsxs("div",{className:"flex items-center gap-1.5",children:[s.jsx("input",{value:u,onChange:W=>f(W.target.value),onKeyDown:W=>W.key==="Enter"&&se(u),placeholder:"e.g. src/**",className:"w-28 h-7 px-2.5 text-xs bg-surface-0 border border-border-subtle rounded-md text-text-0 font-mono placeholder:text-text-4 focus:outline-none focus:ring-1 focus:ring-accent"}),s.jsx("button",{onClick:()=>se(u),disabled:!u.trim(),className:"w-7 h-7 flex items-center justify-center rounded-md bg-surface-4 border border-border-subtle text-text-3 hover:text-accent cursor-pointer disabled:opacity-30 disabled:cursor-not-allowed transition-colors",children:s.jsx(rs,{size:12})})]})]})}),s.jsx(cn,{label:"Effort Level",icon:av,description:"Controls how deep the agent reasons. Higher = more tokens but better results.",children:s.jsx(Oc,{options:[{value:"min",label:"Min"},{value:"low",label:"Low"},{value:"default",label:"Default"},{value:"high",label:"High"},{value:"max",label:"Max"}],value:h,onChange:de})}),s.jsx(cn,{label:"Agent Details",icon:g1,children:s.jsxs("div",{className:"bg-surface-0 rounded-lg border border-border-subtle divide-y divide-border-subtle",children:[s.jsxs("div",{className:"flex items-center justify-between px-3 py-2",children:[s.jsx("span",{className:"text-xs text-text-3 font-sans",children:"ID"}),s.jsx("span",{className:"text-xs text-text-1 font-mono",children:e.id})]}),s.jsxs("div",{className:"flex items-center justify-between px-3 py-2",children:[s.jsx("span",{className:"text-xs text-text-3 font-sans",children:"Role"}),s.jsx("span",{className:"text-xs text-text-1 font-sans capitalize",children:e.role})]}),s.jsxs("div",{className:"flex items-center justify-between px-3 py-2",children:[s.jsx("span",{className:"text-xs text-text-3 font-sans",children:"Provider"}),s.jsx("span",{className:"text-xs text-text-1 font-mono",children:e.provider})]}),s.jsxs("div",{className:"flex items-center justify-between px-3 py-2",children:[s.jsx("span",{className:"text-xs text-text-3 font-sans",children:"Model"}),s.jsx("span",{className:"text-xs text-text-1 font-mono",children:e.model||"auto"})]}),s.jsxs("div",{className:"flex items-center justify-between px-3 py-2",children:[s.jsx("span",{className:"text-xs text-text-3 font-sans",children:"Status"}),s.jsx("span",{className:"text-xs text-text-1 font-sans capitalize",children:e.status})]}),s.jsxs("div",{className:"flex items-center justify-between px-3 py-2",children:[s.jsx("span",{className:"text-xs text-text-3 font-sans",children:"Spawned"}),s.jsx("span",{className:"text-xs text-text-1 font-sans",children:me?jt(me):"—"})]}),e.sessionId&&s.jsxs("div",{className:"flex items-center justify-between px-3 py-2",children:[s.jsx("span",{className:"text-xs text-text-3 font-sans",children:"Session"}),s.jsxs("span",{className:"text-xs text-text-1 font-mono",children:[e.sessionId.slice(0,16),"..."]})]})]})}),s.jsx(cn,{label:"Skills",icon:ql,description:"Attach installed skills to this agent's context.",children:s.jsxs("div",{className:"flex flex-wrap gap-1.5",children:[(e.skills||[]).map(W=>s.jsxs(Ce,{variant:"accent",className:"font-mono text-xs gap-1.5 px-2.5 py-1",children:[W,s.jsx("button",{onClick:async()=>{try{await J.delete(`/agents/${e.id}/skills/${W}`),n("success",`Detached ${W}`)}catch(Se){n("error","Detach failed",Se.message)}},className:"hover:text-danger cursor-pointer",children:s.jsx(Qt,{size:10})})]},W)),X.filter(W=>!(e.skills||[]).includes(W.id)).length>0&&s.jsxs("div",{className:"relative group",children:[s.jsx("button",{className:"w-7 h-7 flex items-center justify-center rounded-md bg-surface-4 border border-border-subtle text-text-3 hover:text-accent cursor-pointer transition-colors",children:s.jsx(rs,{size:12})}),s.jsx("div",{className:"absolute top-full left-0 mt-1 z-20 hidden group-hover:block bg-surface-2 border border-border-subtle rounded-lg shadow-xl py-1 min-w-[160px]",children:X.filter(W=>!(e.skills||[]).includes(W.id)).map(W=>s.jsx("button",{onClick:async()=>{try{await J.post(`/agents/${e.id}/skills/${W.id}`),n("success",`Attached ${W.name||W.id}`)}catch(Se){n("error","Attach failed",Se.message)}},className:"w-full text-left px-3 py-1.5 text-xs font-sans text-text-1 hover:bg-surface-4 cursor-pointer transition-colors",children:W.name||W.id},W.id))})]}),(e.skills||[]).length===0&&X.length===0&&s.jsx("span",{className:"text-2xs text-text-4 font-sans",children:"No skills installed — browse the Marketplace"})]})}),s.jsx(cn,{label:"Schedule",icon:Cc,description:"Run this agent on a recurring schedule.",children:s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("span",{className:"text-xs text-text-2 font-sans",children:"Every"}),s.jsx("input",{value:Z,onChange:W=>K(W.target.value.replace(/\D/g,"").slice(0,3)),className:"w-12 h-7 px-2 text-xs text-center bg-surface-0 border border-border-subtle rounded-md text-text-0 font-mono focus:outline-none focus:ring-1 focus:ring-accent",placeholder:"1"}),s.jsx("div",{className:"flex bg-surface-0 rounded-lg p-0.5 border border-border-subtle",children:[{value:"min",label:"Min"},{value:"hr",label:"Hr"},{value:"day",label:"Day"},{value:"wk",label:"Wk"},{value:"mo",label:"Mo"}].map(W=>s.jsx("button",{onClick:()=>I(W.value),className:oe("px-2 py-1 text-2xs font-semibold font-sans rounded-md transition-all cursor-pointer",T===W.value?"bg-accent/15 text-accent shadow-sm":"text-text-3 hover:text-text-1"),children:W.label},W.value))}),s.jsxs(ve,{variant:"primary",size:"sm",disabled:F||!Z||parseInt(Z,10)<1,onClick:async()=>{const W=parseInt(Z,10);if(!W||W<1)return;const Se={min:W===1?"* * * * *":`*/${W} * * * *`,hr:W===1?"0 * * * *":`0 */${W} * * *`,day:W===1?"0 0 * * *":`0 0 */${W} * *`,wk:`0 0 * * ${W===1?"1":"*"}`,mo:`0 0 ${W===1?"1":W} * *`};G(!0);try{await J.post("/schedules",{name:`${e.name} schedule`,cron:Se[T],agentConfig:{role:e.role,provider:e.provider,model:e.model,scope:e.scope,workingDir:e.workingDir,prompt:e.prompt}}),n("success",`Scheduled every ${W} ${T}`)}catch(ne){n("error","Schedule failed",ne.message)}G(!1)},className:"h-7 px-3 text-2xs gap-1",children:[s.jsx(Cc,{size:10}),F?"...":"Set"]})]})}),e.prompt&&s.jsx(cn,{label:"Original Prompt",icon:ui,children:s.jsx("div",{className:"bg-surface-0 rounded-lg border border-border-subtle px-3 py-3 text-xs text-text-2 font-sans leading-relaxed max-h-40 overflow-y-auto",children:e.prompt})}),s.jsx(d2,{open:g,onOpenChange:x,currentPath:e.workingDir||"/",onSelect:ee})]})}const q0=[];function dZ({data:e,isAlive:n,height:l=48}){const r=v.useRef(null);return v.useEffect(()=>{const o=r.current;if(!o||!e.length)return;const d=o.getContext("2d"),u=window.devicePixelRatio||1,f=o.clientWidth,h=o.clientHeight;o.width=f*u,o.height=h*u,d.scale(u,u),d.clearRect(0,0,f,h);const p=e.map(Q=>Q.v),g=Math.min(...p),b=Math.max(...p,1)-g||1;d.beginPath(),d.moveTo(0,h),e.forEach((Q,w)=>{const k=w/(e.length-1)*f,j=h-(Q.v-g)/b*(h-4)-2;d.lineTo(k,j)}),d.lineTo(f,h),d.closePath();const y=d.createLinearGradient(0,0,0,h);if(y.addColorStop(0,n?"rgba(51,175,188,0.15)":"rgba(110,118,129,0.08)"),y.addColorStop(1,"rgba(0,0,0,0)"),d.fillStyle=y,d.fill(),d.beginPath(),d.strokeStyle=n?ue.accent:ue.text3,d.lineWidth=1.5,e.forEach((Q,w)=>{const k=w/(e.length-1)*f,j=h-(Q.v-g)/b*(h-4)-2;w===0?d.moveTo(k,j):d.lineTo(k,j)}),d.stroke(),e.length>1&&n){const Q=e[e.length-1],w=f-1,k=h-(Q.v-g)/b*(h-4)-2;d.beginPath(),d.arc(w,k,5,0,Math.PI*2),d.fillStyle="rgba(51,175,188,0.3)",d.fill(),d.beginPath(),d.arc(w,k,2.5,0,Math.PI*2),d.fillStyle=ue.accent,d.fill()}},[e,n]),s.jsx("div",{className:"w-full rounded-lg bg-surface-0 overflow-hidden border border-border-subtle",style:{height:l},children:s.jsx("canvas",{ref:r,className:"w-full h-full"})})}function hc({icon:e,label:n,value:l,color:r,sub:o}){return s.jsxs("div",{className:"bg-surface-0 rounded-lg px-3 py-2.5 border border-border-subtle",children:[s.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[s.jsx(e,{size:12,className:r||"text-text-3"}),s.jsx("span",{className:"text-2xs text-text-4 font-sans uppercase tracking-wider",children:n})]}),s.jsx("div",{className:oe("text-lg font-bold font-mono tabular-nums",r||"text-text-0"),children:l}),o&&s.jsx("div",{className:"text-2xs text-text-4 font-sans mt-0.5",children:o})]})}function uZ({score:e}){const n=Math.min(Math.max(e,0),100);let l=ue.success,r="Healthy";return n<40?(l=ue.danger,r="Degraded"):n<70&&(l=ue.warning,r="Fair"),s.jsxs("div",{children:[s.jsxs("div",{className:"flex items-center justify-between mb-1.5",children:[s.jsxs("span",{className:"text-2xs text-text-3 font-sans flex items-center gap-1.5",children:[s.jsx(UT,{size:11}),"Session Health"]}),s.jsxs("span",{className:"text-xs font-bold font-mono",style:{color:l},children:[n,"/100"]})]}),s.jsx("div",{className:"h-2 bg-surface-0 rounded-full overflow-hidden border border-border-subtle",children:s.jsx("div",{className:"h-full rounded-full transition-all duration-700",style:{width:`${n}%`,background:l}})}),s.jsx("span",{className:"text-2xs font-sans mt-1 block",style:{color:l},children:r})]})}function fZ(e){const n=(e||"").toLowerCase();return n.includes("edit")||n.includes("writ")?{icon:ev,color:"text-warning"}:n.includes("read")||n.includes("view")?{icon:Bs,color:"text-info"}:n.includes("search")||n.includes("grep")||n.includes("glob")?{icon:An,color:"text-purple"}:n.includes("bash")||n.includes("command")||n.includes("terminal")?{icon:$i,color:"text-orange"}:n.includes("error")||n.includes("fail")?{icon:xa,color:"text-danger"}:n.includes("spawn")||n.includes("start")?{icon:En,color:"text-success"}:n.includes("complet")||n.includes("done")?{icon:NO,color:"text-success"}:{icon:PO,color:"text-text-4"}}function OZ({agent:e}){const n=B(u=>u.tokenTimeline[e.id])||q0,l=B(u=>u.activityLog[e.id])||q0,r=e.status==="running"||e.status==="starting",o=v.useMemo(()=>{if(n.length<2)return 0;const u=n.slice(-10),f=(u[u.length-1].t-u[0].t)/6e4,h=u[u.length-1].v-u[0].v;return f>0?Math.round(h/f):0},[n]),d=v.useMemo(()=>{const u=e.contextUsage||0;let f=100;return u>90?f-=50:u>70?f-=25:u>50&&(f-=10),o>5e3?f-=15:o>3e3&&(f-=8),e.status==="crashed"&&(f=10),e.status==="completed"&&(f=95),Math.max(0,Math.min(100,f))},[e.contextUsage,e.status,o]);return s.jsxs("div",{className:"px-5 py-5 space-y-5 overflow-y-auto h-full",children:[s.jsxs("div",{children:[s.jsxs("div",{className:"flex items-center justify-between mb-2",children:[s.jsx("span",{className:"text-2xs font-semibold text-text-3 font-sans uppercase tracking-wider",children:"Token Burn"}),r&&s.jsx("span",{className:"text-2xs text-accent font-mono animate-pulse",children:"LIVE"})]}),s.jsx(dZ,{data:n,isAlive:r,height:56})]}),s.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[s.jsx(hc,{icon:TT,label:"Burn Rate",value:o>0?`${Ie(o)}/m`:"—",color:o>5e3?"text-danger":o>2e3?"text-warning":"text-text-0"}),s.jsx(hc,{icon:mT,label:"Cost",value:us(e.costUsd||0),color:"text-text-0"}),s.jsx(hc,{icon:ki,label:"Rotations",value:e.rotations||"0",color:"text-text-0"}),s.jsx(hc,{icon:En,label:"Turns",value:e.turns||"0",color:"text-text-0"})]}),s.jsx(uZ,{score:d}),e.prompt&&s.jsxs("div",{children:[s.jsx("span",{className:"text-2xs font-semibold text-text-3 font-sans uppercase tracking-wider block mb-1.5",children:"Task"}),s.jsx("div",{className:"bg-surface-0 rounded-lg px-3 py-2.5 text-xs text-text-2 font-sans leading-relaxed max-h-28 overflow-y-auto border border-border-subtle",children:e.prompt})]}),l.length>0&&s.jsxs("div",{children:[s.jsx("span",{className:"text-2xs font-semibold text-text-3 font-sans uppercase tracking-wider block mb-2",children:"Activity"}),s.jsxs("div",{className:"space-y-0 relative",children:[s.jsx("div",{className:"absolute left-[9px] top-2 bottom-2 w-px bg-border-subtle"}),l.slice(-12).reverse().map((u,f)=>{const h=fZ(u.text),p=h.icon;return s.jsxs("div",{className:"flex items-start gap-3 py-1.5 relative",children:[s.jsx("div",{className:oe("w-[18px] h-[18px] rounded-full flex items-center justify-center flex-shrink-0 z-10","bg-surface-1 border border-border-subtle"),children:s.jsx(p,{size:9,className:h.color})}),s.jsx("span",{className:"text-2xs text-text-2 font-sans flex-1 line-clamp-1 pt-0.5",children:u.text}),s.jsx("span",{className:"text-2xs text-text-4 font-mono flex-shrink-0 pt-0.5",children:jt(u.timestamp)})]},f)})]})]})]})}function hZ({agent:e}){const n=B(P=>P.addToast),[l,r]=v.useState([]),[o,d]=v.useState(""),[u,f]=v.useState(null),[h,p]=v.useState(""),[g,x]=v.useState(""),[b,y]=v.useState(!1);async function Q(){try{const P=await J.get(`/agents/${e.id}/mdfiles`);r(P.files||[]),d(P.workingDir||"")}catch{}}v.useEffect(()=>{Q()},[e.id]);async function w(P){try{const z=await J.get(`/agents/${e.id}/mdfiles/read?path=${encodeURIComponent(P)}`);p(z.content||""),x(z.content||""),f(P)}catch(z){n("error","Failed to read file",z.message)}}async function k(){if(u){y(!0);try{await J.put(`/agents/${e.id}/mdfiles/write`,{path:u,content:h}),x(h),n("success",`Saved ${u}`)}catch(P){n("error","Save failed",P.message)}y(!1)}}const j=h!==g;return u?s.jsxs("div",{className:"flex flex-col h-full",children:[s.jsxs("div",{className:"flex items-center gap-2 px-3 py-2 border-b border-border-subtle",children:[s.jsx("button",{onClick:()=>{f(null),p(""),x("")},className:"p-1 text-text-3 hover:text-text-0 cursor-pointer",children:s.jsx(Kb,{size:14})}),s.jsx(es,{size:12,className:"text-accent"}),s.jsx("span",{className:"text-xs text-text-0 font-sans font-medium flex-1 truncate",children:u}),j&&s.jsx("span",{className:"text-[10px] text-warning font-sans",children:"unsaved"}),s.jsxs("button",{onClick:k,disabled:!j||b,className:oe("flex items-center gap-1 px-2.5 py-1 rounded text-2xs font-sans font-medium cursor-pointer transition-colors",j?"bg-accent/15 text-accent hover:bg-accent/25":"text-text-4 opacity-50 cursor-not-allowed"),children:[s.jsx(ZN,{size:10}),b?"Saving...":"Save"]})]}),s.jsx("textarea",{value:h,onChange:P=>p(P.target.value),className:"flex-1 w-full px-4 py-3 bg-surface-0 text-[12px] font-mono text-text-1 leading-relaxed resize-none focus:outline-none",spellCheck:!1})]}):s.jsxs("div",{className:"flex flex-col h-full",children:[s.jsxs("div",{className:"flex items-center gap-2 px-4 py-2.5 border-b border-border-subtle",children:[s.jsx(es,{size:12,className:"text-text-3"}),s.jsx("span",{className:"text-2xs font-semibold text-text-2 font-sans uppercase tracking-wider flex-1",children:"Markdown Files"}),s.jsx("button",{onClick:Q,className:"p-1 text-text-4 hover:text-text-1 cursor-pointer",children:s.jsx(Qn,{size:11})})]}),o&&s.jsx("div",{className:"px-4 py-1.5 text-[10px] text-text-4 font-mono truncate border-b border-border-subtle/50",children:o}),s.jsx("div",{className:"flex-1 overflow-y-auto",children:l.length===0?s.jsxs("div",{className:"flex flex-col items-center justify-center h-full text-center px-4",children:[s.jsx(es,{size:20,className:"text-text-4 mb-2"}),s.jsx("p",{className:"text-xs text-text-3 font-sans",children:"No markdown files found"}),s.jsx("p",{className:"text-[10px] text-text-4 font-sans mt-1",children:"MD files in the agent's working directory will appear here"})]}):s.jsx("div",{className:"py-1",children:l.map(P=>s.jsxs("button",{onClick:()=>w(P.path),className:"w-full flex items-center gap-2.5 px-4 py-2 text-left hover:bg-surface-5 transition-colors cursor-pointer",children:[s.jsx(es,{size:13,className:"text-accent flex-shrink-0"}),s.jsxs("div",{className:"flex-1 min-w-0",children:[s.jsx("span",{className:"text-xs text-text-0 font-sans block truncate",children:P.name}),s.jsx("span",{className:"text-[10px] text-text-4 font-mono",children:P.path})]}),s.jsx("span",{className:"text-[10px] text-text-4 font-mono flex-shrink-0",children:P.size>1024?`${(P.size/1024).toFixed(1)}K`:`${P.size}B`})]},P.path))})})]})}const mZ={running:"success",starting:"warning",stopped:"default",crashed:"danger",completed:"accent",killed:"default",rotating:"purple"},pZ={running:"Running",starting:"Starting",stopped:"Stopped",crashed:"Crashed",completed:"Done",killed:"Killed",rotating:"Rotating"},xZ=[{id:"command",label:"Chat",icon:wi},{id:"config",label:"Config",icon:fv},{id:"telemetry",label:"Monitor",icon:ui},{id:"mdfiles",label:"Files",icon:es}];function gZ({agent:e}){const n=B(h=>h.addToast),[l,r]=v.useState(!1),[o,d]=v.useState(e.name),u=v.useRef(null);async function f(){const h=o.trim();if(!h||h===e.name){r(!1);return}try{await J.patch(`/agents/${e.id}`,{name:h.replace(/\s+/g,"-")}),n("success",`Renamed → ${h}`)}catch(p){n("error","Rename failed",p.message),d(e.name)}r(!1)}return l?s.jsxs("div",{className:"flex items-center gap-1 flex-1 min-w-0",children:[s.jsx("input",{ref:u,value:o,onChange:h=>d(h.target.value),onKeyDown:h=>{h.key==="Enter"&&f(),h.key==="Escape"&&(d(e.name),r(!1))},className:"flex-1 min-w-0 h-6 px-1.5 text-sm font-bold bg-surface-0 border border-accent/30 rounded text-text-0 font-sans focus:outline-none focus:ring-1 focus:ring-accent/40",autoFocus:!0}),s.jsx("button",{onClick:f,className:"p-0.5 text-accent hover:text-accent/80 cursor-pointer",children:s.jsx(kt,{size:12})}),s.jsx("button",{onClick:()=>{d(e.name),r(!1)},className:"p-0.5 text-text-4 hover:text-text-1 cursor-pointer",children:s.jsx(Qt,{size:12})})]}):s.jsxs("div",{className:"flex items-center gap-1.5 flex-1 min-w-0 group",children:[s.jsx("h2",{className:"text-sm font-bold text-text-0 font-sans truncate",children:e.name}),s.jsx("button",{onClick:()=>{d(e.name),r(!0)},className:"p-0.5 text-text-4 opacity-0 group-hover:opacity-100 hover:text-text-1 cursor-pointer transition-opacity",children:s.jsx(rd,{size:10})})]})}function bZ(){const e=B(p=>p.detailPanel),n=B(p=>p.agents),[l,r]=v.useState("command");if((e==null?void 0:e.type)!=="agent")return null;const o=n.find(p=>p.id===e.agentId);if(!o)return null;const d=o.status==="running"||o.status==="starting",u=Math.round((o.contextUsage||0)*100),f=o.spawnedAt||o.createdAt,h=f?Math.floor((Date.now()-new Date(f).getTime())/1e3):0;return ns(o.role),s.jsxs("div",{className:"flex flex-col h-full",children:[s.jsxs("div",{className:"flex-shrink-0",children:[s.jsxs("div",{className:"pl-4 pr-10 pt-3 pb-2",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(gZ,{agent:o}),s.jsx(Ce,{variant:mZ[o.status]||"default",dot:d?"pulse":void 0,className:"text-2xs flex-shrink-0",children:pZ[o.status]||o.status})]}),s.jsxs("div",{className:"flex items-center gap-2 mt-1 text-2xs text-text-3 font-mono",children:[s.jsx("span",{className:"capitalize",children:o.role}),s.jsx("span",{className:"text-text-4",children:"·"}),s.jsxs("span",{children:[o.provider,":",o.model||"auto"]}),s.jsx("span",{className:"text-text-4",children:"·"}),s.jsxs("span",{children:[Ie(o.tokensUsed||0)," tok"]}),u>0&&s.jsxs(s.Fragment,{children:[s.jsx("span",{className:"text-text-4",children:"·"}),s.jsxs("span",{className:oe(u>80?"text-danger":u>60?"text-warning":"text-text-3"),children:[u,"% ctx"]})]}),s.jsx("span",{className:"text-text-4",children:"·"}),s.jsx("span",{children:Pi(h)})]})]}),s.jsx("div",{className:"flex items-center px-4 border-b border-border-subtle",children:xZ.map(p=>{const g=p.icon,x=l===p.id;return s.jsxs("button",{onClick:()=>r(p.id),className:oe("flex items-center gap-1.5 px-3 py-2 text-2xs font-semibold font-sans transition-all cursor-pointer select-none border-b-2 -mb-px",x?"border-accent text-text-0":"border-transparent text-text-3 hover:text-text-1"),children:[s.jsx(g,{size:11}),p.label]},p.id)})})]}),s.jsxs("div",{className:"flex-1 min-h-0 flex flex-col overflow-hidden",children:[l==="command"&&s.jsx(iZ,{agent:o}),l==="config"&&s.jsx(cZ,{agent:o}),l==="telemetry"&&s.jsx(OZ,{agent:o}),l==="mdfiles"&&s.jsx(hZ,{agent:o})]})]})}const M0={"google-workspace":"https://cdn.simpleicons.org/google/white",github:"https://cdn.simpleicons.org/github/white",stripe:"https://cdn.simpleicons.org/stripe/635BFF",gmail:"https://cdn.simpleicons.org/gmail/EA4335","google-calendar":"https://cdn.simpleicons.org/googlecalendar/4285F4","google-drive":"https://cdn.simpleicons.org/googledrive/4285F4","google-docs":"https://cdn.simpleicons.org/googledocs/4285F4","google-sheets":"https://cdn.simpleicons.org/googlesheets/34A853","google-slides":"https://cdn.simpleicons.org/googleslides/FBBC04","google-maps":"https://cdn.simpleicons.org/googlemaps/4285F4",postgres:"https://cdn.simpleicons.org/postgresql/4169E1",notion:"https://cdn.simpleicons.org/notion/white",linear:"https://cdn.simpleicons.org/linear/5E6AD2","brave-search":"https://cdn.simpleicons.org/brave/FB542B","home-assistant":"https://cdn.simpleicons.org/homeassistant/18BCF2",sentry:"https://cdn.simpleicons.org/sentry/362D59",elevenlabs:"https://cdn.simpleicons.org/elevenlabs/white",hubspot:"https://cdn.simpleicons.org/hubspot/FF7A59",jira:"https://cdn.simpleicons.org/jira/0052CC",sendgrid:"https://cdn.simpleicons.org/sendgrid/1A82E2",resend:"https://cdn.simpleicons.org/resend/white",replicate:"https://cdn.simpleicons.org/replicate/white",vercel:"https://cdn.simpleicons.org/vercel/white",supabase:"https://cdn.simpleicons.org/supabase/3FCF8E",mixpanel:"https://cdn.simpleicons.org/mixpanel/7856FF",datadog:"https://cdn.simpleicons.org/datadog/632CA6",airtable:"https://cdn.simpleicons.org/airtable/18BFFF",zendesk:"https://cdn.simpleicons.org/zendesk/03363D",intercom:"https://cdn.simpleicons.org/intercom/6AFDEF",twilio:"https://cdn.simpleicons.org/twilio/F22F46",telnyx:"https://cdn.simpleicons.org/telnyx/00C08B",aws:"https://cdn.simpleicons.org/amazonaws/FF9900",plaid:"https://cdn.simpleicons.org/plaid/white"},vZ=[{id:"planner",label:"Planner",desc:"Plans the team and tasks",icon:dv,tier:"Heavy"},{id:"backend",label:"Backend",desc:"APIs, services, databases",icon:uv,tier:"Medium"},{id:"frontend",label:"Frontend",desc:"UI, components, styling",icon:hh,tier:"Medium"},{id:"fullstack",label:"Fullstack",desc:"End-to-end implementation",icon:ds,tier:"Heavy"},{id:"testing",label:"Testing",desc:"Tests, coverage, QA",icon:gh,tier:"Medium"},{id:"devops",label:"DevOps",desc:"CI/CD, infra, deployment",icon:oT,tier:"Medium"},{id:"docs",label:"Docs",desc:"Documentation, guides",icon:es,tier:"Light"},{id:"security",label:"Security",desc:"Audits, vulnerabilities",icon:Ms,tier:"Medium"},{id:"database",label:"Database",desc:"Schema, migrations, queries",icon:OT,tier:"Medium"},{id:"cmo",label:"CMO",desc:"Marketing, content, growth",icon:iN,tier:"Medium"},{id:"cfo",label:"CFO",desc:"Finance, metrics, forecasting",icon:W$,tier:"Medium"},{id:"ea",label:"EA",desc:"Executive assistant, scheduling",icon:lP,tier:"Light"},{id:"support",label:"Support",desc:"Customer support, FAQs",icon:MT,tier:"Medium"},{id:"analyst",label:"Analyst",desc:"Data analysis, insights",icon:Ib,tier:"Medium"},{id:"creative",label:"Writer",desc:"Copy, articles, proposals",icon:SN,tier:"Heavy",skillHint:!0},{id:"slides",label:"Slides",desc:"Pitch decks, presentations",icon:PN,tier:"Heavy",skillHint:!0}];function Y0(){return s.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 14 14",className:"text-accent flex-shrink-0",children:[s.jsx("circle",{cx:"7",cy:"7",r:"6",fill:"currentColor",fillOpacity:"0.15",stroke:"currentColor",strokeWidth:"1"}),s.jsx("path",{d:"M4.5 7 L6.5 9 L9.5 5.5",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})}function yZ(){const e=B(ne=>ne.detailPanel),n=B(ne=>ne.closeDetail),l=B(ne=>ne.spawnAgent),r=B(ne=>ne.fetchProviders),o=(e==null?void 0:e.type)==="spawn",[d,u]=v.useState(""),[f,h]=v.useState(""),[p,g]=v.useState(""),[x,b]=v.useState(""),[y,Q]=v.useState(""),[w,k]=v.useState(""),[j,P]=v.useState([]),[z,R]=v.useState([]),[Y,X]=v.useState([]),[C,T]=v.useState(!1),[I,Z]=v.useState(""),[K,F]=v.useState([]),[G,V]=v.useState([]),[M,N]=v.useState(!1),[U,ee]=v.useState(""),[de,se]=v.useState("manual"),[we,Qe]=v.useState(!1);v.useEffect(()=>{o&&(r().then(ne=>{const fe=Array.isArray(ne)?ne:ne.providers||[];P(fe);const Ne=fe.filter(ke=>ke.installed);if(Ne.length>0&&!x){const De=["claude-code","gemini","codex","ollama"].find(xt=>Ne.some(ut=>ut.id===xt))||Ne[0].id;b(De)}}).catch(()=>{}),J.get("/skills/installed").then(ne=>{R(Array.isArray(ne)?ne:[])}).catch(()=>{}),J.get("/integrations/installed").then(ne=>{F(Array.isArray(ne)?ne:[])}).catch(()=>{}),u(""),h(""),g(""),b(""),Q(""),k(""),X([]),V([]),se("manual"))},[o,r]);const me=d||f,be=j.find(ne=>ne.id===x),ze=(be==null?void 0:be.models)||[],W=j.filter(ne=>ne.installed);async function Se(){if(me){Qe(!0);try{const ne={role:me,...p&&{name:p.replace(/\s+/g,"-")},...x&&{provider:x},...y&&{model:y},...w&&{prompt:w},...Y.length>0&&{skills:Y},...G.length>0&&{integrations:G},...G.length>0&&{integrationApproval:de}};await l(ne),n()}catch{}Qe(!1)}}return s.jsx(u2,{open:o,onOpenChange:ne=>{ne||n()},children:s.jsx(f2,{title:"Spawn Agent",width:480,children:s.jsxs("div",{className:"flex flex-col h-[calc(100%-57px)]",children:[s.jsxs("div",{className:"flex-1 overflow-y-auto px-5 py-4 space-y-6",children:[s.jsxs("div",{children:[s.jsx("label",{className:"text-xs font-semibold text-text-2 font-sans uppercase tracking-wider block mb-3",children:"Choose Role"}),s.jsx("div",{className:"grid grid-cols-2 gap-2",children:vZ.map(ne=>{const fe=ns(ne.id),Ne=d===ne.id;return s.jsxs("button",{onClick:()=>{u(ne.id),h("")},className:oe("flex items-center gap-2.5 p-3 rounded-md border text-left transition-all cursor-pointer",Ne?"border-accent bg-accent/5":"border-border-subtle bg-surface-1 hover:border-border hover:bg-surface-2"),children:[s.jsx("div",{className:"w-8 h-8 rounded-md flex items-center justify-center flex-shrink-0",style:{background:fe.bg},children:s.jsx(ne.icon,{size:16,style:{color:fe.text}})}),s.jsxs("div",{className:"min-w-0",children:[s.jsxs("div",{className:"flex items-center gap-1.5",children:[s.jsx("span",{className:"text-xs font-semibold text-text-0 font-sans",children:ne.label}),ne.skillHint&&s.jsx("span",{className:"text-2xs font-mono text-warning/70 bg-warning/8 px-1 py-px rounded",children:"skill"})]}),s.jsx("div",{className:"text-2xs text-text-3 font-sans truncate",children:ne.desc})]})]},ne.id)})}),s.jsx("div",{className:"mt-3",children:s.jsx(Wc,{placeholder:"or type a custom role (e.g. chat-agent)...",value:f,onChange:ne=>{h(ne.target.value.replace(/\s+/g,"-").replace(/[^a-zA-Z0-9_-]/g,"").slice(0,50)),u("")},className:"text-xs"})})]}),me&&s.jsxs("div",{className:"space-y-4",children:[s.jsx("label",{className:"text-xs font-semibold text-text-2 font-sans uppercase tracking-wider block",children:"Configuration"}),s.jsx(Wc,{label:"Name (optional)",value:p,onChange:ne=>g(ne.target.value),placeholder:`${me}-1`}),s.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[s.jsxs("div",{className:"space-y-1",children:[s.jsx("label",{className:"text-xs font-medium text-text-2 font-sans",children:"Provider"}),s.jsxs("div",{className:"relative",children:[s.jsxs("select",{value:x,onChange:ne=>{b(ne.target.value),Q("")},className:"w-full h-8 px-3 pr-8 text-sm rounded-md bg-surface-1 border border-border text-text-0 font-sans appearance-none cursor-pointer focus:outline-none focus:ring-1 focus:ring-accent",children:[s.jsx("option",{value:"",children:"Auto"}),j.map(ne=>s.jsxs("option",{value:ne.id,disabled:!ne.installed,children:[ne.name,ne.installed?"":" (not installed)"]},ne.id))]}),s.jsx(_n,{size:14,className:"absolute right-2 top-1/2 -translate-y-1/2 text-text-3 pointer-events-none"})]})]}),s.jsxs("div",{className:"space-y-1",children:[s.jsx("label",{className:"text-xs font-medium text-text-2 font-sans",children:"Model"}),s.jsxs("div",{className:"relative",children:[s.jsxs("select",{value:y,onChange:ne=>Q(ne.target.value),disabled:!x,className:"w-full h-8 px-3 pr-8 text-sm rounded-md bg-surface-1 border border-border text-text-0 font-sans appearance-none cursor-pointer focus:outline-none focus:ring-1 focus:ring-accent disabled:opacity-40",children:[s.jsx("option",{value:"",children:"Auto"}),ze.map(ne=>s.jsx("option",{value:ne.id,children:ne.name},ne.id))]}),s.jsx(_n,{size:14,className:"absolute right-2 top-1/2 -translate-y-1/2 text-text-3 pointer-events-none"})]})]})]}),x&&be&&s.jsx("div",{className:"text-2xs text-text-3 font-sans flex items-center gap-2",children:be.authType==="local"?s.jsx(Ce,{variant:"success",children:"Local"}):be.authType==="subscription"?s.jsx(Ce,{variant:"accent",children:"Subscription"}):be.hasKey?s.jsx(Ce,{variant:"success",children:"API key set"}):s.jsxs(Ce,{variant:"warning",children:["No API key — set with: groove set-key ",x," YOUR_KEY"]})}),s.jsxs("div",{className:"space-y-1.5",children:[s.jsx("label",{className:"text-xs font-medium text-text-2 font-sans",children:"Skills"}),s.jsxs("div",{className:"flex flex-wrap items-center gap-1.5",children:[Y.map(ne=>{const fe=z.find(Ne=>Ne.id===ne);return s.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-1 rounded bg-accent/12 text-accent border border-accent/25 text-2xs font-sans",children:[s.jsx(ql,{size:9}),(fe==null?void 0:fe.name)||ne,s.jsx("button",{onClick:()=>X(Ne=>Ne.filter(ke=>ke!==ne)),className:"ml-0.5 hover:text-text-0 cursor-pointer",children:s.jsx(Qt,{size:9})})]},ne)}),s.jsxs("button",{onClick:()=>{T(!0),Z("")},className:oe("inline-flex items-center gap-1.5 px-2.5 py-1 rounded text-2xs font-sans transition-colors cursor-pointer","bg-surface-0 text-text-2 border border-border-subtle hover:border-border hover:text-text-0"),children:[s.jsx(ql,{size:10}),Y.length>0?"Add skill":"Attach skill"]})]})]}),s.jsx(bi,{open:C,onOpenChange:T,children:s.jsx(vi,{title:"Select Skill",className:"max-w-sm",children:s.jsxs("div",{className:"space-y-3 p-4",children:[s.jsxs("div",{className:"relative",children:[s.jsx(An,{size:14,className:"absolute left-2.5 top-1/2 -translate-y-1/2 text-text-4"}),s.jsx("input",{value:I,onChange:ne=>Z(ne.target.value),placeholder:"Search skills...",autoFocus:!0,className:"w-full h-8 pl-8 pr-3 text-xs rounded-md bg-surface-0 border border-border text-text-0 font-sans focus:outline-none focus:ring-1 focus:ring-accent"})]}),s.jsxs("div",{className:"max-h-64 overflow-y-auto space-y-1",children:[z.filter(ne=>{if(!I)return!0;const fe=I.toLowerCase();return(ne.name||ne.id).toLowerCase().includes(fe)||(ne.description||"").toLowerCase().includes(fe)}).map(ne=>{const fe=Y.includes(ne.id);return s.jsxs("button",{onClick:()=>{X(Ne=>fe?Ne.filter(ke=>ke!==ne.id):[...Ne,ne.id])},className:oe("w-full flex items-center gap-2.5 px-3 py-2 rounded-md text-left transition-colors cursor-pointer",fe?"bg-accent/10 border border-accent/25":"hover:bg-surface-3 border border-transparent"),children:[s.jsx(ql,{size:12,className:fe?"text-accent":"text-text-3"}),s.jsxs("div",{className:"flex-1 min-w-0",children:[s.jsx("div",{className:"text-xs font-semibold text-text-0 font-sans truncate",children:ne.name||ne.id}),ne.description&&s.jsx("div",{className:"text-2xs text-text-3 font-sans truncate",children:ne.description})]}),fe&&s.jsx(Y0,{})]},ne.id)}),z.length===0&&s.jsx("div",{className:"text-center py-6 text-xs text-text-3 font-sans",children:"No skills installed. Visit the Marketplace to install skills."})]})]})})}),s.jsxs("div",{className:"space-y-1.5",children:[s.jsx("label",{className:"text-xs font-medium text-text-2 font-sans",children:"Integrations"}),s.jsxs("div",{className:"flex flex-wrap items-center gap-1.5",children:[G.map(ne=>{const fe=K.find(ke=>ke.id===ne),Ne=M0[ne];return s.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-1 rounded bg-accent/12 text-accent border border-accent/25 text-2xs font-sans",children:[Ne?s.jsx("img",{src:Ne,alt:"",className:"w-2.5 h-2.5"}):s.jsx(Vl,{size:9}),(fe==null?void 0:fe.name)||ne,s.jsx("button",{onClick:()=>V(ke=>ke.filter(De=>De!==ne)),className:"ml-0.5 hover:text-text-0 cursor-pointer",children:s.jsx(Qt,{size:9})})]},ne)}),s.jsxs("button",{onClick:()=>{N(!0),ee("")},className:oe("inline-flex items-center gap-1.5 px-2.5 py-1 rounded text-2xs font-sans transition-colors cursor-pointer","bg-surface-0 text-text-2 border border-border-subtle hover:border-border hover:text-text-0"),children:[s.jsx(Vl,{size:10}),G.length>0?"Add integration":"Attach integration"]})]})]}),s.jsx(bi,{open:M,onOpenChange:N,children:s.jsx(vi,{title:"Select Integration",className:"max-w-sm",children:s.jsxs("div",{className:"space-y-3 p-4",children:[s.jsxs("div",{className:"relative",children:[s.jsx(An,{size:14,className:"absolute left-2.5 top-1/2 -translate-y-1/2 text-text-4"}),s.jsx("input",{value:U,onChange:ne=>ee(ne.target.value),placeholder:"Search integrations...",autoFocus:!0,className:"w-full h-8 pl-8 pr-3 text-xs rounded-md bg-surface-0 border border-border text-text-0 font-sans focus:outline-none focus:ring-1 focus:ring-accent"})]}),s.jsxs("div",{className:"max-h-64 overflow-y-auto space-y-1",children:[K.filter(ne=>{if(!U)return!0;const fe=U.toLowerCase();return(ne.name||ne.id).toLowerCase().includes(fe)||(ne.description||"").toLowerCase().includes(fe)}).map(ne=>{const fe=G.includes(ne.id),Ne=ne.configured!==!1,ke=M0[ne.id],De=me&&Array.isArray(ne.roles)&&ne.roles.includes(me);return s.jsxs("button",{onClick:()=>{Ne&&V(xt=>fe?xt.filter(ut=>ut!==ne.id):[...xt,ne.id])},disabled:!Ne,className:oe("w-full flex items-center gap-2.5 px-3 py-2 rounded-md text-left transition-colors",Ne?"cursor-pointer":"opacity-40 cursor-not-allowed",fe?"bg-accent/10 border border-accent/25":Ne?"hover:bg-surface-3 border border-transparent":"border border-transparent"),children:[ke?s.jsx("img",{src:ke,alt:"",className:"w-4 h-4 flex-shrink-0"}):s.jsx(Vl,{size:12,className:fe?"text-accent":"text-text-3"}),s.jsxs("div",{className:"flex-1 min-w-0",children:[s.jsxs("div",{className:"flex items-center gap-1.5",children:[s.jsx("span",{className:"text-xs font-semibold text-text-0 font-sans truncate",children:ne.name||ne.id}),!Ne&&s.jsx("span",{className:"text-2xs text-text-4 font-sans",children:"(not configured)"}),Ne&&De&&s.jsx("span",{className:"text-2xs font-mono text-accent/70 bg-accent/8 px-1 py-px rounded",children:"rec"})]}),ne.description&&s.jsx("div",{className:"text-2xs text-text-3 font-sans truncate",children:ne.description}),!Ne&&s.jsx("div",{className:"text-2xs text-text-4 font-sans",children:"Configure in Marketplace"})]}),fe&&s.jsx(Y0,{})]},ne.id)}),K.length===0&&s.jsx("div",{className:"text-center py-6 text-xs text-text-3 font-sans",children:"No integrations installed. Visit the Marketplace to install integrations."})]})]})})}),G.length>0&&s.jsxs("div",{className:"space-y-1.5",children:[s.jsx("label",{className:"text-xs font-medium text-text-2 font-sans",children:"Integration Approvals"}),s.jsxs("div",{className:"flex gap-1.5",children:[s.jsxs("button",{onClick:()=>se("manual"),className:oe("flex-1 flex items-center gap-2 px-3 py-2 rounded-md border text-left transition-all cursor-pointer",de==="manual"?"border-accent bg-accent/5":"border-border-subtle bg-surface-1 hover:border-border"),children:[s.jsx(Ms,{size:13,className:de==="manual"?"text-accent":"text-text-3"}),s.jsxs("div",{children:[s.jsx("div",{className:"text-2xs font-semibold text-text-0 font-sans",children:"Manual"}),s.jsx("div",{className:"text-2xs text-text-3 font-sans",children:"You approve each action"})]})]}),s.jsxs("button",{onClick:()=>se("auto"),className:oe("flex-1 flex items-center gap-2 px-3 py-2 rounded-md border text-left transition-all cursor-pointer",de==="auto"?"border-warning bg-warning/5":"border-border-subtle bg-surface-1 hover:border-border"),children:[s.jsx(ql,{size:13,className:de==="auto"?"text-warning":"text-text-3"}),s.jsxs("div",{children:[s.jsx("div",{className:"text-2xs font-semibold text-text-0 font-sans",children:"Auto"}),s.jsx("div",{className:"text-2xs text-text-3 font-sans",children:"Agent acts without asking"})]})]})]})]})]})]}),s.jsxs("div",{className:"border-t border-border-subtle px-5 py-4 bg-surface-1",children:[W.length===0&&j.length>0&&s.jsxs("div",{className:"flex items-center gap-2 mb-3 px-3 py-2 rounded-md bg-warning/8 border border-warning/20",children:[s.jsx(Ti,{size:13,className:"text-warning flex-shrink-0"}),s.jsx("span",{className:"text-2xs font-sans text-text-2",children:"No AI providers installed. Install Claude Code, Gemini CLI, Codex, or Ollama to spawn agents."})]}),me&&W.length>0&&s.jsxs("div",{className:"flex items-center gap-2 mb-3 text-xs text-text-3 font-sans",children:[s.jsx("span",{children:"Spawning"}),s.jsx(Ce,{variant:"accent",children:me}),x&&s.jsxs("span",{children:["on ",(be==null?void 0:be.name)||x]}),p&&s.jsxs("span",{children:["as ",p.replace(/\s+/g,"-")]})]}),s.jsx(ve,{variant:"primary",size:"lg",onClick:Se,disabled:!me||we||W.length===0,className:"w-full",children:we?"Spawning...":"Spawn Agent"})]})]})})})}function U0({title:e,icon:n,defaultOpen:l=!1,badge:r,children:o,className:d}){const[u,f]=v.useState(l);return s.jsxs("div",{className:oe("border-t border-border-subtle",d),children:[s.jsxs("button",{onClick:()=>f(!u),className:"w-full flex items-center gap-2 px-5 py-3 text-left cursor-pointer hover:bg-surface-5/30 transition-colors group",children:[s.jsx(cs,{size:12,className:oe("text-text-4 transition-transform duration-200 flex-shrink-0",u&&"rotate-90")}),n&&s.jsx(n,{size:13,className:"text-text-3 flex-shrink-0"}),s.jsx("span",{className:"text-xs font-semibold text-text-2 font-sans uppercase tracking-wider flex-1",children:e}),r&&s.jsx("span",{className:"text-2xs font-mono text-text-4 bg-surface-4 px-1.5 py-0.5 rounded",children:r})]}),u&&s.jsx("div",{className:"px-5 pb-4",children:o})]})}function SZ(){const e=B(x=>x.journalistStatus),n=B(x=>x.fetchJournalist),l=B(x=>x.triggerJournalistCycle),[r,o]=v.useState(!0),[d,u]=v.useState(!1);v.useEffect(()=>{n().then(()=>o(!1));const x=setInterval(n,1e4);return()=>clearInterval(x)},[n]);async function f(){u(!0);try{await l()}catch{}u(!1)}if(r)return s.jsxs("div",{className:"p-5 space-y-4",children:[s.jsx(dn,{className:"h-6 w-32 rounded"}),s.jsx(dn,{className:"h-20 rounded-md"}),s.jsx(dn,{className:"h-20 rounded-md"})]});const h=e||{},p=h.lastSynthesis,g=h.history||[];return s.jsxs("div",{className:"flex flex-col h-full",children:[s.jsxs("div",{className:"px-5 py-4 border-b border-border-subtle flex items-center gap-2",children:[s.jsx(Oi,{size:16,className:"text-accent"}),s.jsx("h3",{className:"text-sm font-semibold text-text-0 font-sans flex-1",children:"Journalist"}),s.jsxs(ve,{variant:"secondary",size:"sm",onClick:f,disabled:d,className:"gap-1.5 text-2xs",children:[s.jsx(Qn,{size:11,className:d?"animate-spin":""}),d?"Running...":"Run Synthesis"]})]}),s.jsx(Mn,{className:"flex-1",children:s.jsxs("div",{className:"px-5 py-4 space-y-5",children:[s.jsxs("div",{className:"flex items-center gap-3 text-2xs text-text-3 font-sans",children:[s.jsxs("div",{className:"flex items-center gap-1",children:[s.jsx(ui,{size:10}),s.jsxs("span",{children:[h.cycleCount||0," cycles"]})]}),h.lastCycleTime&&s.jsxs("div",{className:"flex items-center gap-1",children:[s.jsx(PO,{size:10}),s.jsxs("span",{children:["Last: ",jt(h.lastCycleTime)]})]}),s.jsx(Ce,{variant:h.cycleCount>0?"success":"default",className:"text-2xs",children:h.cycleCount>0?"Active":"Idle"})]}),(p==null?void 0:p.summary)&&s.jsxs("div",{className:"space-y-2",children:[s.jsxs("label",{className:"text-xs font-semibold text-text-1 font-sans flex items-center gap-1.5",children:[s.jsx(es,{size:12,className:"text-text-3"}),"Latest Summary"]}),s.jsx("div",{className:"bg-surface-0 rounded-lg border border-border-subtle px-3.5 py-3 text-xs text-text-2 font-sans leading-relaxed",children:p.summary})]}),(p==null?void 0:p.projectMap)&&s.jsx(U0,{title:"Project Map",icon:nN,children:s.jsx("div",{className:"bg-surface-0 rounded-lg border border-border-subtle px-3.5 py-3 text-xs text-text-2 font-mono leading-relaxed max-h-64 overflow-y-auto whitespace-pre-wrap",children:p.projectMap})}),(p==null?void 0:p.decisions)&&s.jsx(U0,{title:"Decisions Log",icon:es,children:s.jsx("div",{className:"bg-surface-0 rounded-lg border border-border-subtle px-3.5 py-3 text-xs text-text-2 font-mono leading-relaxed max-h-64 overflow-y-auto whitespace-pre-wrap",children:p.decisions})}),g.length>0&&s.jsxs("div",{className:"space-y-2",children:[s.jsxs("label",{className:"text-xs font-semibold text-text-1 font-sans flex items-center gap-1.5",children:[s.jsx(PO,{size:12,className:"text-text-3"}),"History (",g.length,")"]}),s.jsx("div",{className:"space-y-1.5",children:g.slice().reverse().slice(0,20).map((x,b)=>s.jsxs("div",{className:"bg-surface-0 rounded-md border border-border-subtle px-3 py-2",children:[s.jsxs("div",{className:"flex items-center gap-2 text-2xs",children:[s.jsxs(Ce,{variant:"default",className:"text-2xs",children:["Cycle ",x.cycle]}),s.jsxs("span",{className:"text-text-4 font-sans",children:[x.agentCount," agent",x.agentCount!==1?"s":""]}),s.jsx("span",{className:"text-text-4 font-sans ml-auto",children:jt(x.timestamp)})]}),x.summary&&s.jsx("p",{className:"text-xs text-text-2 font-sans mt-1 leading-relaxed",children:x.summary})]},b))})]}),!p&&g.length===0&&s.jsxs("div",{className:"text-center py-8 text-text-4 font-sans",children:[s.jsx(Oi,{size:28,className:"mx-auto mb-2"}),s.jsx("p",{className:"text-sm",children:"No synthesis data yet"}),s.jsx("p",{className:"text-2xs mt-1",children:"The journalist runs automatically when agents are active, or trigger manually above"})]})]})})]})}function QZ({children:e,height:n,onHeightChange:l,visible:r,fullHeight:o,tabs:d,activeTab:u,onSelectTab:f,onAddTab:h,onCloseTab:p,onToggleFullHeight:g,onMinimize:x}){const b=v.useRef(!1),y=v.useRef(0),Q=v.useRef(0),w=v.useCallback(j=>{if(o)return;j.preventDefault(),b.current=!0,y.current=j.clientY,Q.current=n;function P(R){if(!b.current)return;const Y=y.current-R.clientY,X=Math.min(Math.max(Q.current+Y,120),600);l(X)}function z(){b.current=!1,document.removeEventListener("mousemove",P),document.removeEventListener("mouseup",z)}document.addEventListener("mousemove",P),document.addEventListener("mouseup",z)},[n,l,o]);if(!r)return null;const k=d||[{id:"default",label:"Terminal"}];return s.jsxs("div",{className:"flex flex-col border-t border-border bg-surface-0 relative",style:o?{flex:1,minHeight:0}:{height:n,flexShrink:0},children:[!o&&s.jsx("div",{className:"absolute top-0 left-0 right-0 h-1 cursor-row-resize hover:bg-accent/30 transition-colors z-10",onMouseDown:w}),s.jsxs("div",{className:"flex items-center h-9 bg-surface-1 border-b border-border-subtle flex-shrink-0 pl-3 pr-1.5",children:[s.jsxs("div",{className:"flex items-center gap-0 flex-1 min-w-0 overflow-x-auto scrollbar-none",children:[k.map(j=>s.jsxs("button",{onClick:()=>f==null?void 0:f(j.id),className:oe("flex items-center gap-1.5 pl-2.5 pr-1 h-7 text-2xs font-sans cursor-pointer select-none transition-colors flex-shrink-0 rounded-t",j.id===u?"text-text-0 bg-surface-0":"text-text-3 hover:text-text-1 hover:bg-surface-0/50"),children:[s.jsx($i,{size:10}),s.jsx("span",{className:"truncate max-w-[80px]",children:j.label}),k.length>1&&s.jsx("button",{onClick:P=>{P.stopPropagation(),p==null||p(j.id)},className:"ml-0.5 p-0.5 rounded hover:bg-surface-5 text-text-4 hover:text-text-1 cursor-pointer",children:s.jsx(Qt,{size:9})})]},j.id)),s.jsx("button",{onClick:h,className:"flex items-center justify-center w-6 h-6 text-text-4 hover:text-text-1 hover:bg-surface-0/50 rounded cursor-pointer transition-colors flex-shrink-0 ml-0.5",title:"New terminal",children:s.jsx(rs,{size:11})})]}),s.jsx("div",{className:"flex items-center gap-0.5 flex-shrink-0 ml-2",children:o?s.jsx("button",{onClick:x,className:"p-1.5 rounded text-text-3 hover:text-text-0 hover:bg-surface-5 cursor-pointer transition-colors",title:"Restore",children:s.jsx(uN,{size:12})}):s.jsx("button",{onClick:g,className:"p-1.5 rounded text-text-3 hover:text-text-0 hover:bg-surface-5 cursor-pointer transition-colors",title:"Maximize",children:s.jsx(rv,{size:12})})})]}),s.jsx("div",{className:"flex-1 min-h-0 p-2",children:e})]})}const jZ={background:"#1a1e25",foreground:"#bcc2cd",cursor:"#33afbc",cursorAccent:"#1a1e25",selectionBackground:"rgba(51, 175, 188, 0.25)",black:"#1a1e25",red:"#e06c75",green:"#4ae168",yellow:"#e5c07b",blue:"#61afef",magenta:"#c678dd",cyan:"#33afbc",white:"#bcc2cd",brightBlack:"#505862",brightRed:"#e06c75",brightGreen:"#4ae168",brightYellow:"#e5c07b",brightBlue:"#61afef",brightMagenta:"#c678dd",brightCyan:"#33afbc",brightWhite:"#e6e6e6"};let vO=0;function wZ({tabId:e,visible:n}){const l=v.useRef(null),r=v.useRef(null),o=v.useRef(null),d=v.useRef(null),u=v.useRef(!1);return v.useEffect(()=>{if(!l.current||u.current)return;u.current=!0;const f=new pw({theme:jZ,fontFamily:"'JetBrains Mono Variable', 'SF Mono', monospace",fontSize:13,lineHeight:1.4,cursorBlink:!0,cursorStyle:"bar",scrollback:5e3,allowProposedApi:!0}),h=new xw;f.loadAddon(h),f.loadAddon(new gw),f.open(l.current),r.current=f,requestAnimationFrame(()=>h.fit());function p(){const x=B.getState().ws;if(!x||x.readyState!==WebSocket.OPEN){setTimeout(p,500);return}x.send(JSON.stringify({type:"terminal:spawn",cols:f.cols,rows:f.rows}));function b(y){let Q;try{Q=JSON.parse(y.data)}catch{return}Q.type==="terminal:spawned"&&!o.current?o.current=Q.id:Q.type==="terminal:output"&&Q.id===o.current?f.write(Q.data):Q.type==="terminal:exit"&&Q.id===o.current&&(f.write(`\r
|
|
651
|
-
\x1B[90m[session ended]\x1B[0m\r
|
|
652
|
-
`),o.current=null)}x.addEventListener("message",b),d.current={ws:x,handler:b},f.onData(y=>{const Q=B.getState().ws;(Q==null?void 0:Q.readyState)===WebSocket.OPEN&&o.current&&Q.send(JSON.stringify({type:"terminal:input",id:o.current,data:y}))}),f.onResize(({cols:y,rows:Q})=>{const w=B.getState().ws;(w==null?void 0:w.readyState)===WebSocket.OPEN&&o.current&&w.send(JSON.stringify({type:"terminal:resize",id:o.current,rows:Q,cols:y}))})}p();const g=new ResizeObserver(()=>{requestAnimationFrame(()=>{try{h.fit()}catch{}})});return g.observe(l.current),()=>{g.disconnect();const x=B.getState().ws;(x==null?void 0:x.readyState)===WebSocket.OPEN&&o.current&&x.send(JSON.stringify({type:"terminal:kill",id:o.current})),d.current&&d.current.ws.removeEventListener("message",d.current.handler),f.dispose(),u.current=!1}},[]),v.useEffect(()=>{n&&r.current&&requestAnimationFrame(()=>{var f,h,p,g,x;try{(x=(g=(p=(h=(f=r.current._addonManager)==null?void 0:f._addons)==null?void 0:h[0])==null?void 0:p.instance)==null?void 0:g.fit)==null||x.call(g)}catch{}})},[n]),s.jsx("div",{ref:l,className:"w-full h-full",style:{display:n?"block":"none"}})}function kZ(){const e=B(b=>b.terminalVisible),n=B(b=>b.terminalHeight),l=B(b=>b.setTerminalVisible),r=B(b=>b.setTerminalHeight),o=B(b=>b.terminalFullHeight),d=B(b=>b.setTerminalFullHeight),[u,f]=v.useState([{id:"term-0",label:"Terminal"}]),[h,p]=v.useState("term-0"),g=v.useCallback(()=>{vO++;const b=`term-${vO}`;f(y=>[...y,{id:b,label:`Terminal ${vO+1}`}]),p(b)},[]),x=v.useCallback(b=>{f(y=>{const Q=y.filter(w=>w.id!==b);if(Q.length===0)return l(!1),y;if(h===b){const w=y.findIndex(j=>j.id===b),k=Q[Math.min(w,Q.length-1)];p(k.id)}return Q})},[h,l]);return s.jsx(QZ,{visible:e,height:n,onHeightChange:r,fullHeight:o,tabs:u,activeTab:h,onSelectTab:p,onAddTab:g,onCloseTab:x,onToggleFullHeight:()=>d(!0),onMinimize:()=>d(!1),children:u.map(b=>s.jsx(wZ,{tabId:b.id,visible:b.id===h},b.id))})}class $Z extends Ha.Component{constructor(n){super(n),this.state={error:null}}static getDerivedStateFromError(n){return{error:n}}render(){return this.state.error?s.jsxs("div",{className:"h-screen bg-surface-0 p-10 font-sans",children:[s.jsx("h2",{className:"text-lg font-semibold text-text-0 mb-4",children:"Groove — Render Error"}),s.jsx("pre",{className:"text-sm text-danger whitespace-pre-wrap mb-4",children:this.state.error.message}),s.jsx("pre",{className:"text-xs text-text-3 whitespace-pre-wrap",children:this.state.error.stack}),s.jsx("button",{onClick:()=>this.setState({error:null}),className:"mt-6 px-4 py-2 bg-accent text-surface-0 rounded-md font-medium text-sm cursor-pointer",children:"Try Again"})]}):this.props.children}}function TZ(){const e=B(o=>o.activeView),n=B(o=>o.detailPanel);let l;switch(e){case"agents":l=s.jsx(y1,{});break;case"editor":l=s.jsx(JR,{});break;case"dashboard":l=s.jsx(G_,{});break;case"marketplace":l=s.jsx(vX,{});break;case"teams":l=s.jsx(wX,{});break;case"models":l=s.jsx(IX,{});break;case"settings":l=s.jsx(UX,{});break;default:l=s.jsx(y1,{})}let r=null;if(n)switch(n.type){case"agent":r=s.jsx(bZ,{});break;case"journalist":r=s.jsx(SZ,{});break;case"spawn":r=null;break}return s.jsxs(FP,{detailContent:r,terminalContent:s.jsx(kZ,{}),children:[l,s.jsx(yZ,{})]})}function NZ(){return s.jsxs("div",{className:"h-screen bg-surface-0 flex flex-col items-center justify-center gap-4",children:[s.jsx("img",{src:"/favicon.png",alt:"",className:"w-10 h-10 opacity-60 animate-pulse"}),s.jsx("p",{className:"text-sm text-text-3 font-sans",children:"Connecting..."})]})}function PZ(){const e=B(l=>l.connect),n=B(l=>l.hydrated);return v.useEffect(()=>{e()},[e]),n?s.jsx($Z,{children:s.jsx(TZ,{})}):s.jsx(NZ,{})}Qw.createRoot(document.getElementById("root")).render(s.jsx(v.StrictMode,{children:s.jsx(PZ,{})}));
|