@co0ontty/wand 4.93.0 → 4.94.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (172) hide show
  1. package/README.md +25 -30
  2. package/dist/ai-text-runner.d.ts +2 -10
  3. package/dist/ai-text-runner.js +13 -74
  4. package/dist/build-info.json +3 -3
  5. package/dist/cli.js +47 -9
  6. package/dist/config.d.ts +2 -3
  7. package/dist/config.js +26 -5
  8. package/dist/core-status-cli.d.ts +1 -1
  9. package/dist/core-status-cli.js +3 -1
  10. package/dist/daemon-connection.d.ts +10 -0
  11. package/dist/daemon-connection.js +28 -0
  12. package/dist/diagnostic-logs.d.ts +10 -0
  13. package/dist/diagnostic-logs.js +121 -0
  14. package/dist/employee-text.js +1 -3
  15. package/dist/git-quick-commit.d.ts +1 -1
  16. package/dist/git-quick-commit.js +2 -9
  17. package/dist/layout-tree.d.ts +3 -1
  18. package/dist/layout-tree.js +8 -0
  19. package/dist/local-model-process.js +20 -0
  20. package/dist/local-model-setup.js +5 -3
  21. package/dist/managed-temp.d.ts +32 -0
  22. package/dist/managed-temp.js +176 -0
  23. package/dist/middleware/api-scope.js +1 -0
  24. package/dist/models/shared.d.ts +0 -6
  25. package/dist/models/shared.js +0 -12
  26. package/dist/models/thinking.d.ts +0 -2
  27. package/dist/models/thinking.js +0 -2
  28. package/dist/models.d.ts +0 -1
  29. package/dist/models.js +3 -11
  30. package/dist/native-session-title.d.ts +1 -1
  31. package/dist/native-session-title.js +1 -1
  32. package/dist/pi-model-discovery.js +5 -17
  33. package/dist/pi-resource-recommendation.d.ts +1 -1
  34. package/dist/pi-resource-recommendation.js +129 -42
  35. package/dist/process-manager-native-history.js +1 -6
  36. package/dist/process-manager.d.ts +0 -1
  37. package/dist/process-manager.js +5 -18
  38. package/dist/provider-catalog.d.ts +1 -2
  39. package/dist/provider-catalog.js +1 -6
  40. package/dist/provider-cli-updater.js +1 -9
  41. package/dist/provider-history-scanner.d.ts +0 -3
  42. package/dist/provider-history-scanner.js +0 -26
  43. package/dist/render-daemon-client.js +6 -29
  44. package/dist/render-structured-client.js +2 -7
  45. package/dist/retention.js +1 -6
  46. package/dist/run-command.d.ts +5 -0
  47. package/dist/run-command.js +14 -1
  48. package/dist/server-session-lifecycle-routes.js +1 -1
  49. package/dist/server-storage-cleanup-routes.d.ts +3 -0
  50. package/dist/server-storage-cleanup-routes.js +19 -0
  51. package/dist/server-workspace-routes.d.ts +4 -1
  52. package/dist/server-workspace-routes.js +75 -9
  53. package/dist/server.js +21 -16
  54. package/dist/service-command-privilege.d.ts +17 -0
  55. package/dist/service-command-privilege.js +55 -0
  56. package/dist/service-manager/index.d.ts +3 -0
  57. package/dist/service-manager/index.js +3 -0
  58. package/dist/service-manager/launchd.d.ts +1 -0
  59. package/dist/service-manager/launchd.js +15 -0
  60. package/dist/service-manager/systemd.d.ts +1 -0
  61. package/dist/service-manager/systemd.js +11 -0
  62. package/dist/session-ai-context.js +17 -6
  63. package/dist/session-completion-state.d.ts +2 -0
  64. package/dist/session-completion-state.js +6 -2
  65. package/dist/session-logger.js +7 -1
  66. package/dist/session-model.d.ts +4 -0
  67. package/dist/session-model.js +13 -4
  68. package/dist/session-registry.d.ts +1 -1
  69. package/dist/session-registry.js +0 -3
  70. package/dist/silicon-employee-draft.js +0 -1
  71. package/dist/speech-service.js +18 -8
  72. package/dist/storage/mappers.js +6 -10
  73. package/dist/storage/migrations.js +14 -0
  74. package/dist/storage/uploads-repository.d.ts +36 -0
  75. package/dist/storage/uploads-repository.js +98 -0
  76. package/dist/storage-cleanup.d.ts +50 -0
  77. package/dist/storage-cleanup.js +344 -0
  78. package/dist/storage.d.ts +3 -1
  79. package/dist/storage.js +4 -0
  80. package/dist/structured-failure.d.ts +2 -0
  81. package/dist/structured-failure.js +9 -0
  82. package/dist/structured-grok-adapter.js +4 -4
  83. package/dist/structured-opencode-adapter.js +4 -9
  84. package/dist/structured-provider-common.d.ts +1 -2
  85. package/dist/structured-provider-common.js +3 -6
  86. package/dist/structured-session-manager-replay.js +2 -6
  87. package/dist/structured-session-manager.d.ts +1 -2
  88. package/dist/structured-session-manager.js +32 -25
  89. package/dist/task-organize-contract.d.ts +41 -0
  90. package/dist/task-organize-contract.js +4 -0
  91. package/dist/task-title-organize-service.d.ts +21 -0
  92. package/dist/task-title-organize-service.js +168 -0
  93. package/dist/task-title-organize.d.ts +77 -0
  94. package/dist/task-title-organize.js +346 -0
  95. package/dist/terminal-daemon-client.js +10 -48
  96. package/dist/time-utils.d.ts +2 -0
  97. package/dist/time-utils.js +7 -0
  98. package/dist/tui/attach.js +6 -5
  99. package/dist/tui/commands.d.ts +4 -1
  100. package/dist/tui/commands.js +36 -25
  101. package/dist/tui/index.js +2 -2
  102. package/dist/tui/service-actions.js +5 -4
  103. package/dist/tui/service-command.d.ts +6 -0
  104. package/dist/tui/service-command.js +40 -0
  105. package/dist/tui/service-panel.js +9 -8
  106. package/dist/types.d.ts +4 -4
  107. package/dist/upload-reference-guard.d.ts +4 -0
  108. package/dist/upload-reference-guard.js +29 -0
  109. package/dist/upload-routes.d.ts +4 -0
  110. package/dist/upload-routes.js +121 -21
  111. package/dist/user-profile.d.ts +1 -1
  112. package/dist/user-profile.js +8 -3
  113. package/dist/web-ui/content/ai-teams.js +9 -9
  114. package/dist/web-ui/content/module-manifest.json +1 -1
  115. package/dist/web-ui/content/modules/{2548dbe0d0783577/chat-render-EODYMQF6.js → 0051bd3d55f10ab7/chat-render-RY2I2CF3.js} +1 -1
  116. package/dist/web-ui/content/modules/{2548dbe0d0783577/chunk-ZTEQSXPA.js → 0051bd3d55f10ab7/chunk-2F6J2MKX.js} +1 -1
  117. package/dist/web-ui/content/modules/{2548dbe0d0783577/chunk-A33YPCY6.js → 0051bd3d55f10ab7/chunk-7AFM245W.js} +1 -1
  118. package/dist/web-ui/content/modules/{2548dbe0d0783577/chunk-QNUWUMKW.js → 0051bd3d55f10ab7/chunk-MHX2QXIS.js} +1 -1
  119. package/dist/web-ui/content/modules/{2548dbe0d0783577/chunk-WGADUEIT.js → 0051bd3d55f10ab7/chunk-RAAPETNH.js} +1 -1
  120. package/dist/web-ui/content/modules/{2548dbe0d0783577/chunk-I3UYDQLS.js → 0051bd3d55f10ab7/chunk-RXKBHYUR.js} +2 -2
  121. package/dist/web-ui/content/modules/{2548dbe0d0783577/chunk-3TCUG766.js → 0051bd3d55f10ab7/chunk-U4EDP4TI.js} +1 -1
  122. package/dist/web-ui/content/modules/{2548dbe0d0783577/chunk-HK7RBU3M.js → 0051bd3d55f10ab7/chunk-WHXQR7JT.js} +1 -1
  123. package/dist/web-ui/content/modules/0051bd3d55f10ab7/employee-card-NV34TZIH.js +1 -0
  124. package/dist/web-ui/content/modules/{2548dbe0d0783577/host-2PU6TV2I.js → 0051bd3d55f10ab7/host-2IVIZ2YC.js} +1 -1
  125. package/dist/web-ui/content/modules/{2548dbe0d0783577/host-BPYNMKFC.js → 0051bd3d55f10ab7/host-AZXNFCRW.js} +1 -1
  126. package/dist/web-ui/content/modules/{2548dbe0d0783577/host-HZIKPWYY.js → 0051bd3d55f10ab7/host-EPEQX22R.js} +1 -1
  127. package/dist/web-ui/content/modules/{2548dbe0d0783577/host-YELXZID4.js → 0051bd3d55f10ab7/host-FZYIMOLC.js} +1 -1
  128. package/dist/web-ui/content/modules/{2548dbe0d0783577/host-OGD6AWHL.js → 0051bd3d55f10ab7/host-G6GL4SNL.js} +1 -1
  129. package/dist/web-ui/content/modules/{2548dbe0d0783577/host-E3SCPOIU.js → 0051bd3d55f10ab7/host-PEILC5NU.js} +1 -1
  130. package/dist/web-ui/content/modules/{2548dbe0d0783577/host-OWD32FZ3.js → 0051bd3d55f10ab7/host-PHHNGVNL.js} +2 -2
  131. package/dist/web-ui/content/modules/{2548dbe0d0783577/host-CXDAFMXX.js → 0051bd3d55f10ab7/host-Q524TMSR.js} +1 -1
  132. package/dist/web-ui/content/modules/0051bd3d55f10ab7/host-RO5MB6RB.js +69 -0
  133. package/dist/web-ui/content/modules/{2548dbe0d0783577/host-J5XRAQFP.js → 0051bd3d55f10ab7/host-WOQRK6NG.js} +1 -1
  134. package/dist/web-ui/content/modules/{2548dbe0d0783577/host-HKXE2DOT.js → 0051bd3d55f10ab7/host-XNIR3NTJ.js} +1 -1
  135. package/dist/web-ui/content/modules/{2548dbe0d0783577/host-4E4H4JZJ.js → 0051bd3d55f10ab7/host-XRVOIEP6.js} +1 -1
  136. package/dist/web-ui/content/modules/0051bd3d55f10ab7/host-ZDKOQEMS.js +1 -0
  137. package/dist/web-ui/content/modules/0051bd3d55f10ab7/host-bridge-PMQZRG5G.js +1 -0
  138. package/dist/web-ui/content/modules/{2548dbe0d0783577/library-bridge-Y3Y24CPQ.js → 0051bd3d55f10ab7/library-bridge-DTMQIHVJ.js} +1 -1
  139. package/dist/web-ui/content/modules/{2548dbe0d0783577/page-GQBUU7T7.js → 0051bd3d55f10ab7/page-PY4JUL4W.js} +1 -1
  140. package/dist/web-ui/content/modules/{2548dbe0d0783577/panel-PG662OC5.js → 0051bd3d55f10ab7/panel-BBQFC55Q.js} +1 -1
  141. package/dist/web-ui/content/modules/0051bd3d55f10ab7/runtime.js +974 -0
  142. package/dist/web-ui/content/modules/0051bd3d55f10ab7/task-board-host-PXZSWBBG.js +2 -0
  143. package/dist/web-ui/content/modules/0051bd3d55f10ab7/workspace-agent-picker-DJSECSY6.js +1 -0
  144. package/dist/web-ui/content/modules/{2548dbe0d0783577/workspace-window-HV4T3WKR.js → 0051bd3d55f10ab7/workspace-window-MNMKSOBG.js} +1 -1
  145. package/dist/web-ui/content/styles.css +1 -1
  146. package/dist/web-ui/embedded-assets.d.ts +27 -27
  147. package/dist/web-ui/embedded-assets.js +4 -4
  148. package/dist/web-ui/provider-identity.d.ts +4 -5
  149. package/dist/web-ui/provider-identity.js +4 -10
  150. package/dist/web-ui/react/workspaces/sidebar-manage.d.ts +39 -0
  151. package/dist/web-ui/react/workspaces/sidebar-manage.js +149 -0
  152. package/dist/web-ui/react/workspaces/types.d.ts +408 -0
  153. package/dist/web-ui/react/workspaces/types.js +16 -0
  154. package/dist/web-ui/session-activity.js +1 -1
  155. package/package.json +2 -2
  156. package/dist/structured-gemini-adapter.d.ts +0 -40
  157. package/dist/structured-gemini-adapter.js +0 -208
  158. package/dist/web-ui/content/modules/2548dbe0d0783577/chunk-XGVT4ZWT.js +0 -1
  159. package/dist/web-ui/content/modules/2548dbe0d0783577/employee-card-LJ3TX72B.js +0 -1
  160. package/dist/web-ui/content/modules/2548dbe0d0783577/host-ITV2QZ4A.js +0 -1
  161. package/dist/web-ui/content/modules/2548dbe0d0783577/host-XNWC7KPR.js +0 -69
  162. package/dist/web-ui/content/modules/2548dbe0d0783577/host-bridge-G5HEVADT.js +0 -1
  163. package/dist/web-ui/content/modules/2548dbe0d0783577/runtime.js +0 -946
  164. package/dist/web-ui/content/modules/2548dbe0d0783577/task-board-host-RAN2Z2KR.js +0 -2
  165. package/dist/web-ui/content/modules/2548dbe0d0783577/workspace-agent-picker-FXLH6N5K.js +0 -1
  166. /package/dist/web-ui/content/modules/{2548dbe0d0783577/chunk-YX475LXO.js → 0051bd3d55f10ab7/chunk-6C6A2RHG.js} +0 -0
  167. /package/dist/web-ui/content/modules/{2548dbe0d0783577/chunk-NP35GDQ3.js → 0051bd3d55f10ab7/chunk-ECWYA3U5.js} +0 -0
  168. /package/dist/web-ui/content/modules/{2548dbe0d0783577/chunk-47EVOSJS.js → 0051bd3d55f10ab7/chunk-T35D57FW.js} +0 -0
  169. /package/dist/web-ui/content/modules/{2548dbe0d0783577 → 0051bd3d55f10ab7}/chunk-YOXXNXOX.js +0 -0
  170. /package/dist/web-ui/content/modules/{2548dbe0d0783577/chunk-C3K34WJD.js → 0051bd3d55f10ab7/chunk-YQJ6XYV7.js} +0 -0
  171. /package/dist/web-ui/content/modules/{2548dbe0d0783577/host-J6HBDK4A.js → 0051bd3d55f10ab7/host-2AQAIUNO.js} +0 -0
  172. /package/dist/web-ui/content/modules/{2548dbe0d0783577 → 0051bd3d55f10ab7}/sha256-ANXV72UC.js +0 -0
@@ -1,2 +0,0 @@
1
- import{c as Lt,d as In,e as wn}from"./chunk-WGADUEIT.js";import{a as Rn}from"./chunk-C3K34WJD.js";import{a as Ia,b as bn}from"./chunk-NP35GDQ3.js";import{shared31_a as Ka,shared31_b as hn,shared31_c as kn,shared31_f as yn,shared31_g as vn,shared31_h as Tn}from"./runtime.js";import{shared32_e as rn}from"./runtime.js";import "./runtime.js";import "./runtime.js";import "./runtime.js";import "./runtime.js";import{b as on}from"./chunk-HK7RBU3M.js";import{shared47_a as vs}from"./runtime.js";import{a as Dt,b as pn,c as mn,d as gn}from"./chunk-A33YPCY6.js";import{a as Bt}from"./chunk-XGVT4ZWT.js";import{shared59_a as _,shared59_b as $e}from"./runtime.js";import{shared62_e as un}from"./runtime.js";import{shared49_g as ln}from"./runtime.js";import{shared63_b as Ha,shared63_c as Ua}from"./runtime.js";import{shared14_b as Js}from"./runtime.js";import "./runtime.js";import{a as Xs,b as Qs,c as en,d as an,e as tn,f as sn,g as nn}from"./chunk-3TCUG766.js";import{shared60_$ as At,shared60_B as Q,shared60_C as wt,shared60_D as Ps,shared60_E as Rt,shared60_F as Fs,shared60_G as $s,shared60_H as Xe,shared60_I as St,shared60_J as Ct,shared60_K as Ms,shared60_L as _s,shared60_M as ya,shared60_N as Pe,shared60_P as Os,shared60_Q as js,shared60_R as zs,shared60_S as xt,shared60_T as Nt,shared60_U as za,shared60_V as Vs,shared60_W as Fe,shared60_X as Va,shared60_Y as Gs,shared60_Z as Zs,shared60__ as Hs,shared60_a as Is,shared60_aa as va,shared60_ba as Et,shared60_c as yt,shared60_ca as Qe,shared60_da as Ga,shared60_ea as Us,shared60_fa as Ks,shared60_g as Rs,shared60_ga as Ys,shared60_h as Ss,shared60_ha as Za,shared60_i as Cs,shared60_ia as qs,shared60_j as xs,shared60_k as re,shared60_l as De,shared60_m as Ns,shared60_n as ha,shared60_o as Le,shared60_p as As,shared60_q as Es,shared60_r as ja,shared60_s as Tt,shared60_t as Ws,shared60_u as ve,shared60_v as It,shared60_w as Bs,shared60_x as Ds,shared60_y as Ls,shared60_z as ka}from"./runtime.js";import "./runtime.js";import{shared66_a as pe}from"./runtime.js";import{shared76_c as fn}from"./runtime.js";import{shared79_a as Wt}from"./runtime.js";import{shared80_a as ae}from"./runtime.js";import{a as dn,b as cn}from"./chunk-YX475LXO.js";import "./runtime.js";import "./runtime.js";import "./runtime.js";import{shared37_k as vt,shared37_n as ws}from"./runtime.js";import "./runtime.js";import{shared18_a as Be}from"./runtime.js";import{shared55_l as Ts}from"./runtime.js";import "./runtime.js";import "./runtime.js";import "./runtime.js";import "./runtime.js";import "./runtime.js";import "./runtime.js";import{shared56_b as ea}from"./runtime.js";import "./runtime.js";import "./runtime.js";import "./runtime.js";import "./runtime.js";import "./runtime.js";import "./runtime.js";import "./runtime.js";import "./runtime.js";import{shared53_b as gt}from"./runtime.js";import "./runtime.js";import "./runtime.js";import{shared6_a as Ta}from"./runtime.js";import "./runtime.js";import "./runtime.js";import{shared26_a as kt}from"./runtime.js";import{shared70_a as ue}from"./runtime.js";import "./runtime.js";import{shared58_a as We}from"./runtime.js";import{shared7_$d as Y,shared7_Ac as ce,shared7_Bc as K,shared7_Ed as L,shared7_Fd as D,shared7_Gd as bt,shared7_Ic as wr,shared7_Jd as bs,shared7_Ld as _a,shared7_Nd as hs,shared7_Oc as gs,shared7_Pd as ks,shared7_Sc as he,shared7_Wd as fa,shared7__d as Je,shared7_ae as ht,shared7_be as ys,shared7_ce as ba,shared7_ee as Oa,shared7_ld as x,shared7_md as ne,shared7_vc as ft,shared7_xd as fs,shared7_zd as T}from"./runtime.js";import{shared8_a as mt}from"./runtime.js";import{shared9_c as X}from"./runtime.js";var Ya=X(mt(),1);var Sn=X(wr(),1),Pt=X(he(),1);function Ft({value:a,onValueChange:r,ariaLabel:l,popupOwner:u,disabled:o,className:m}){let[g,R]=Ya.useState(!1),f=Ya.useRef(null);return _a(g,()=>{R(!1),f.current?.focus()}),(0,Pt.jsx)(on,{ref:f,open:g,onOpenChange:R,value:a?(0,Sn.default)(a):null,format:"YYYY-MM-DD","aria-label":l,disabled:o,className:m,onChange:h=>r(h?h.format("YYYY-MM-DD"):""),panelRender:h=>(0,Pt.jsx)("div",{"data-wand-popup-owner":u,children:h})})}var d=X(mt(),1);var aa="application/x-wand-task";function wa(a){return Array.from(a.types).includes(aa)}function Cn(a,r){a.effectAllowed="move",a.setData("text/plain",r),a.setData(aa,r)}function xn(a){return a.getData(aa).trim()||a.getData("text/plain").trim()}var te=X(he(),1);function Nn({sessionId:a,taskId:r,className:l,intoNewTask:u,menuItem:o=!1,onMoved:m}){let g=vn(),[R,f]=yn(),{targets:h,loading:E,busy:F,error:N,move:b,summarize:c,retry:V}=Tn({sessionId:a,taskId:r,intoNewTask:u,open:R,onMoved:()=>{f(!1),m?.()}});return(0,te.jsxs)(Je,{popupOwner:g,open:R,onOpenChange:f,align:"end",contentRole:"menu",ariaLabel:"\u79FB\u52A8\u4F1A\u8BDD\u5230\u4EFB\u52A1",className:"workspace-session-move-menu",trigger:o?(0,te.jsx)(fa,{label:"\u79FB\u52A8\u5230\u4EFB\u52A1\u2026",icon:"folder",disabled:F}):(0,te.jsx)(ne,{className:l,title:"\u79FB\u52A8\u5230\u5176\u4ED6\u4EFB\u52A1","aria-label":"\u79FB\u52A8\u5230\u5176\u4ED6\u4EFB\u52A1",disabled:F,children:(0,te.jsx)(D,{name:"folder",size:13})}),children:[(0,te.jsx)("p",{className:"workspace-session-move-hint",children:"\u79FB\u52A8\u5F52\u5C5E \xB7 \u4FDD\u7559\u8FD0\u884C\u76EE\u5F55"}),u?(0,te.jsx)(fa,{disabled:F,label:"\u5F52\u7EB3\u4E3A\u65B0\u4EFB\u52A1",icon:"plus",onClick:()=>{c()}}):null,N?(0,te.jsxs)("p",{role:"alert",children:[N,(0,te.jsx)(fa,{label:"\u91CD\u65B0\u52A0\u8F7D\u4EFB\u52A1",disabled:F||E,onClick:V})]}):null,E?(0,te.jsx)("p",{role:"status",children:"\u6B63\u5728\u52A0\u8F7D\u4EFB\u52A1\u2026"}):h.length===0?(0,te.jsx)("p",{children:"\u8BF7\u5148\u521B\u5EFA\u53E6\u4E00\u4E2A\u4EFB\u52A1\u3002"}):h.map(v=>(0,te.jsx)(fa,{disabled:F,label:v.label,icon:"folder",onClick:()=>{b(v.id)}},v.id))]})}var oe=X(mt(),1);var w=X(he(),1);function Me({size:a=16,color:r="currentColor",className:l,title:u}){return{width:a,height:a,viewBox:"0 0 16 16",fill:"none",className:l,"aria-hidden":u?void 0:!0,role:u?"img":void 0,color:r,style:{color:r,flex:"0 0 auto"}}}function qa({status:a,size:r=14,color:l="currentColor",className:u}){let o=Me({size:r,color:l,className:u});return a==="doing"?(0,w.jsxs)("svg",{...o,children:[(0,w.jsx)("path",{d:"M8 1.83C3.38 1.83 1.83 3.38 1.83 8s1.55 6.17 6.17 6.17S14.17 12.62 14.17 8",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,w.jsx)("path",{fillRule:"evenodd",d:"M13.02 2.87c-.66-.59-1.67-.53-2.26.14s-2.91 3.29-3.92 4.43c-1.01 1.14-.27 2.72-.27 2.72s1.67.53 2.67-.6 3.92-4.43 3.92-4.43c.59-.66.52-1.67-.14-2.26Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,w.jsx)("path",{d:"m10.01 3.87 2.4 2.12",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}):a==="done"?(0,w.jsxs)("svg",{...o,viewBox:"0 0 13.836 11.236",children:[(0,w.jsx)("path",{fillRule:"evenodd",d:"M9.026 5.618a2.108 2.108 0 1 1-4.216 0 2.108 2.108 0 0 1 4.216 0Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,w.jsx)("path",{fillRule:"evenodd",d:"M.75 5.618c0 2.187 2.761 4.868 6.168 4.868s6.168-2.679 6.168-4.868S10.324.75 6.918.75.75 3.431.75 5.618Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}):a==="archived"?(0,w.jsxs)("svg",{...o,children:[(0,w.jsx)("path",{d:"M2.5 4.25h11",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),(0,w.jsx)("path",{d:"M3.25 4.25v7.25A1.5 1.5 0 0 0 4.75 13h6.5a1.5 1.5 0 0 0 1.5-1.5V4.25",stroke:"currentColor",strokeWidth:"1.5",strokeLinejoin:"round"}),(0,w.jsx)("path",{d:"M2 3.25 3.2 1.75h9.6L14 3.25H2Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinejoin:"round"}),(0,w.jsx)("path",{d:"M6.5 7.25h3",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]}):(0,w.jsxs)("svg",{...o,children:[(0,w.jsx)("path",{d:"M13.16 11.5H8.84",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,w.jsx)("path",{fillRule:"evenodd",d:"M2.84 11.5c0 1.36.46 1.81 1.82 1.81s1.81-.45 1.81-1.81-.45-1.81-1.81-1.81-1.82.45-1.82 1.81Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,w.jsx)("path",{d:"M8.84 4.5h4.32",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,w.jsx)("path",{fillRule:"evenodd",d:"M6.47 4.5c0-1.36-.45-1.81-1.81-1.81S2.84 3.14 2.84 4.5s.46 1.81 1.82 1.81 1.81-.45 1.81-1.81Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})}function $t({priority:a,size:r=14,color:l="currentColor",className:u}){let o=Me({size:r,color:l,className:u});if(a==="urgent")return(0,w.jsx)("svg",{...o,children:(0,w.jsx)("path",{fill:"currentColor",d:"M8 1a7 7 0 1 0 .00 14A7 7 0 0 0 8 1Zm-1 3h2l-.25 5H7.25L7 4Zm2 7a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"})});let m=(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)("path",{fill:"currentColor",d:"M3.5 8h-1A.5.5 0 0 0 2 8.5v4a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-4A.5.5 0 0 0 3.5 8Z"}),(0,w.jsx)("path",{fill:"currentColor",fillOpacity:a==="low"||a==="none"?.4:1,d:"M8.5 5h-1A.5.5 0 0 0 7 5.5v7.5a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5V5.5A.5.5 0 0 0 8.5 5Z"}),(0,w.jsx)("path",{fill:"currentColor",fillOpacity:a==="high"?1:.4,d:"M13.5 2h-1a.5.5 0 0 0-.5.5v11a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-11a.5.5 0 0 0-.5-.5Z"})]});return a==="none"?(0,w.jsxs)("svg",{...o,children:[(0,w.jsx)("path",{fill:"currentColor",opacity:"0.9",d:"M4 7.25H2a.25.25 0 0 0-.25.25v.5c0 .14.11.25.25.25h2a.25.25 0 0 0 .25-.25v-.5a.25.25 0 0 0-.25-.25Z"}),(0,w.jsx)("path",{fill:"currentColor",opacity:"0.9",d:"M9 7.25H7a.25.25 0 0 0-.25.25v.5c0 .14.11.25.25.25h2a.25.25 0 0 0 .25-.25v-.5a.25.25 0 0 0-.25-.25Z"}),(0,w.jsx)("path",{fill:"currentColor",opacity:"0.9",d:"M14 7.25h-2a.25.25 0 0 0-.25.25v.5c0 .14.11.25.25.25h2a.25.25 0 0 0 .25-.25v-.5a.25.25 0 0 0-.25-.25Z"})]}):(0,w.jsx)("svg",{...o,children:m})}function An({size:a=14,color:r="currentColor",className:l}){return(0,w.jsx)("svg",{...Me({size:a,color:r,className:l}),viewBox:"0 0 14 14",children:(0,w.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M12.47 2.63a.66.66 0 0 1 .66.65.66.66 0 0 1-.66.66H1.53a.66.66 0 1 1 0-1.31h10.94ZM3.5 7c0-.17.07-.34.19-.46.12-.13.29-.2.47-.2h5.68c.17 0 .34.07.47.2.12.12.19.29.19.46s-.07.34-.19.46c-.13.13-.3.2-.47.2H4.16a.66.66 0 0 1-.66-.66Zm2.41 3.06a.66.66 0 0 0 0 1.31h2.18a.66.66 0 1 0 0-1.31H5.91Z"})})}function En({size:a=16,color:r="currentColor",className:l}){return(0,w.jsxs)("svg",{...Me({size:a,color:r,className:l}),children:[(0,w.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M4.25 2A3.25 3.25 0 0 0 1 5.25v5.5A3.25 3.25 0 0 0 4.25 14h7.5A3.25 3.25 0 0 0 15 10.75v-5.5A3.25 3.25 0 0 0 11.75 2H4.25ZM2.5 5.5A2 2 0 0 1 4.5 3.5h7a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-7a2 2 0 0 1-2-2v-5Z"}),(0,w.jsx)("path",{fill:"currentColor",d:"M11.5 5.75a.75.75 0 0 0-1.5 0v4.5a.75.75 0 0 0 1.5 0v-4.5Z"})]})}function Mt({size:a=16,color:r="currentColor",className:l}){return(0,w.jsx)("svg",{...Me({size:a,color:r,className:l}),children:(0,w.jsx)("path",{d:"M8 12.5c2.76 0 5-2.02 5-4.5S10.76 3.5 8 3.5 3 5.51 3 8c0 .9.29 1.73.79 2.43-.08.71-.29 1.39-.56 2.07A11.4 11.4 0 0 0 5.76 12c.67.3 1.43.5 2.24.5Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinejoin:"round"})})}function _t({size:a=12,color:r="currentColor",className:l}){return(0,w.jsx)("svg",{...Me({size:a,color:r,className:l}),children:(0,w.jsx)("path",{d:"M2 8v3.5A1.5 1.5 0 0 0 3.5 13h8a1.5 1.5 0 0 0 1.5-1.5V8M2 8V4.5A1.5 1.5 0 0 1 3.5 3h2c.63 0 1.22.3 1.6.8l.3.4c.38.5.97.8 1.6.8h2.5A1.5 1.5 0 0 1 14 6.5V8M2 8h12",stroke:"currentColor",strokeWidth:"1"})})}function Wn({size:a=12,color:r="currentColor",className:l}){return(0,w.jsx)("svg",{...Me({size:a,color:r,className:l}),children:(0,w.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M15 5a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v6a4 4 0 0 0 4 4h1.25a.75.75 0 0 0 0-1.5H5A2.5 2.5 0 0 1 2.5 11V6h11v.25a.75.75 0 0 0 1.5 0V5Zm-3.5 3a.75.75 0 0 1 .75.75v2h2a.75.75 0 0 1 0 1.5h-2v2a.75.75 0 0 1-1.5 0v-2h-2a.75.75 0 0 1 0-1.5h2v-2A.75.75 0 0 1 11.5 8Z"})})}function Bn({className:a}){return(0,w.jsx)("span",{className:a?`task-board-processing-glyph ${a}`:"task-board-processing-glyph","aria-hidden":"true",children:Array.from({length:16},(r,l)=>(0,w.jsx)("i",{style:{animationDelay:`${-gs*(l%7)}ms`}},l))})}var t=X(he(),1);function ta({status:a}){return(0,t.jsx)("span",{className:`task-board-status-glyph is-${a}`,"aria-hidden":"true",children:(0,t.jsx)(qa,{status:a,size:14})})}function Ot({priority:a,interactive:r}){return a==="none"&&!r?null:(0,t.jsxs)(ce,{className:`task-board-priority is-${a}`,children:[(0,t.jsx)($t,{priority:a,size:14}),It(a)]})}function Se({label:a}){let r=Bs(a);return(0,t.jsx)(ce,{className:K("task-board-label",r&&`is-${r}`),color:Ds(a),children:Ls(a)})}function Ja({sessions:a,onOpen:r}){let l=Bt();return a.length===0?null:a.length>1?(0,t.jsxs)(Je,{align:"end",side:"bottom",sideOffset:6,ariaLabel:"\u5173\u8054\u4F1A\u8BDD",className:"task-board-conversation-menu",trigger:(0,t.jsxs)(x,{kind:"ghost",type:"button",className:"task-board-conversation is-multiple","aria-label":`\u67E5\u770B ${a.length} \u4E2A\u4F1A\u8BDD`,onClick:o=>o.stopPropagation(),children:[(0,t.jsx)(Mt,{size:16}),(0,t.jsxs)("span",{children:["+",a.length]})]}),children:[(0,t.jsx)("div",{className:"task-board-conversation-menu-heading",children:"\u5173\u8054\u4F1A\u8BDD"}),a.map(o=>(0,t.jsxs)(x,{kind:"ghost",type:"button",role:"menuitem",onClick:()=>r?.(o.id),children:[(0,t.jsx)(Be,{provider:o.provider,className:"task-board-agent-logo"}),(0,t.jsxs)("span",{children:[(0,t.jsx)("strong",{children:o.title||Q(o.provider,o.engine)}),(0,t.jsx)("small",{children:wt(o,l)})]})]},o.id))]}):(0,t.jsx)(x,{kind:"ghost",type:"button",className:"task-board-conversation",title:a[0].title||a[0].id,onClick:o=>{o.preventDefault(),o.stopPropagation(),r?.(a[0].id)},children:(0,t.jsx)(Mt,{size:16})})}function Ln({task:a,onOpenSession:r}){if(a.status!=="doing")return null;let l=a.sessions.some(u=>ka(u.status));return(0,t.jsxs)(T,{align:"center",gap:"small",className:K("task-board-processing",l&&"is-running"),children:[l?(0,t.jsx)(Bn,{}):null,(0,t.jsx)("span",{className:"task-board-processing-label",children:l?"\u6B63\u5728\u5904\u7406...":a.sessions.length>0?"\u6682\u505C\u5904\u7406":"\u7B49\u5F85\u6D3E\u53D1"}),(0,t.jsx)("span",{style:{flex:1},"aria-hidden":"true"}),(0,t.jsx)(Ja,{sessions:a.sessions,onOpen:r})]})}function Pn({tasks:a,filters:r,onChange:l}){let u=va(a),o=Va(r),m=(g,R)=>R.includes(g)?R.filter(f=>f!==g):[...R,g];return(0,t.jsxs)(Je,{align:"end",side:"bottom",ariaLabel:"\u7B5B\u9009\u4EFB\u52A1",className:"task-board-filter-menu",trigger:(0,t.jsxs)(ne,{className:K("task-board-icon-button",o>0&&"is-active"),"aria-label":o>0?`\u7B5B\u9009\uFF08${o}\uFF09`:"\u7B5B\u9009",title:"\u7B5B\u9009",children:[(0,t.jsx)(An,{}),o>0?(0,t.jsx)("span",{className:"task-board-filter-badge",children:o}):null]}),children:[(0,t.jsx)("strong",{children:"\u7B5B\u9009"}),(0,t.jsx)("p",{children:"\u72B6\u6001"}),Ws.map(g=>(0,t.jsxs)(ea,{checked:r.statuses.includes(g.status),onChange:()=>l({...r,statuses:m(g.status,r.statuses)}),children:[(0,t.jsx)(qa,{status:g.status,size:14}),g.label]},g.status)),(0,t.jsx)("p",{children:"\u4F18\u5148\u7EA7"}),ve.map(g=>(0,t.jsxs)(ea,{checked:r.priorities.includes(g.value),onChange:()=>l({...r,priorities:m(g.value,r.priorities)}),children:[(0,t.jsx)($t,{priority:g.value,size:14}),g.label]},g.value)),u.length>0&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("p",{children:"\u6807\u7B7E"}),u.map(g=>(0,t.jsx)(ea,{checked:r.labels.includes(g),onChange:()=>l({...r,labels:m(g,r.labels)}),children:(0,t.jsx)(Se,{label:g})},g))]}),o>0&&(0,t.jsx)(x,{kind:"ghost",type:"button",className:"task-board-filter-clear",onClick:()=>l(Fe),children:"\u6E05\u9664\u7B5B\u9009"})]})}function Fn({display:a,onChange:r}){return(0,t.jsxs)(Je,{align:"end",side:"bottom",ariaLabel:"\u663E\u793A\u8BBE\u7F6E",className:"task-board-display-menu",trigger:(0,t.jsx)(ne,{className:"task-board-icon-button","aria-label":"\u663E\u793A\u8BBE\u7F6E",title:"\u663E\u793A\u8BBE\u7F6E",children:(0,t.jsx)(En,{})}),children:[(0,t.jsx)("strong",{children:"\u663E\u793A\u8BBE\u7F6E"}),(0,t.jsx)(ba,{checked:a.body,onCheckedChange:l=>r({...a,body:l}),ariaLabel:"\u663E\u793A\u6B63\u6587",label:"\u6B63\u6587"}),(0,t.jsx)("p",{children:"\u4E3B\u5217"}),re.map(l=>{let u=a.mainStatuses.includes(l.status);return(0,t.jsxs)(ea,{className:"task-board-display-status",checked:u,onChange:()=>{let o=u?a.mainStatuses.filter(m=>m!==l.status):[...a.mainStatuses,l.status];r({...a,mainStatuses:o.length>0?o:[l.status]})},children:[(0,t.jsx)(qa,{status:l.status,size:14}),l.label]},l.status)})]})}function jt({count:a,open:r,onToggle:l,onPurge:u,purging:o=!1,children:m}){return a===0?null:(0,t.jsxs)("div",{className:"task-board-archive-folder",children:[(0,t.jsxs)("div",{className:"task-board-archive-heading",style:{display:"flex",alignItems:"center",gap:4},children:[(0,t.jsxs)(x,{kind:"ghost",type:"button",className:"task-board-archive-header",style:{flex:1,minWidth:0,justifyContent:"flex-start"},"aria-expanded":r,onClick:l,children:[(0,t.jsx)(D,{name:r?"chevron":"chevronLeft",size:12}),(0,t.jsx)(_t,{size:13}),(0,t.jsx)("strong",{children:ha.label}),(0,t.jsx)("span",{children:a})]}),u?(0,t.jsx)(x,{kind:"ghost",size:"small",type:"button",className:"task-board-archive-purge",disabled:o,title:"\u6C38\u4E45\u5220\u9664\u5F52\u6863\u76EE\u5F55\u91CC\u7684\u5168\u90E8\u4EFB\u52A1\uFF0C\u65E0\u6CD5\u6062\u590D",onClick:u,children:o?"\u6E05\u7406\u4E2D\u2026":"\u6E05\u7A7A\u5F52\u6863"}):null]}),r?m:null]})}function zt(a){return a==="running"||a==="thinking"?"\u8FDB\u884C\u4E2D":a==="waiting-input"?"\u7B49\u5F85\u8F93\u5165":a==="idle"?"\u7A7A\u95F2":a==="exited"||a==="stopped"?"\u5DF2\u7ED3\u675F":a==="failed"?"\u5931\u8D25":a||"\u4F1A\u8BDD"}function $n(a){return ka(a)?"running":a==="thinking"?"thinking":a==="waiting-input"||a==="waiting_input"?"waiting-input":a==="failed"?"failed":"none"}function Vt(a){let r=oe.useRef(new Map),l=oe.useRef(""),u=oe.useCallback(o=>m=>{m?r.current.set(o,m):r.current.delete(o)},[]);return oe.useEffect(()=>{let o=l.current;if(l.current=a,!o||a)return;let m=r.current.get(o);if(!m?.isConnected)return;let g=document.activeElement;g&&g!==document.body&&g!==document.documentElement||m.focus()},[a]),u}function Dn({task:a,parentLabel:r,expanded:l,onToggle:u,onOpen:o,onOpenSession:m,bindTrigger:g}){let R=a.description.trim(),f=oe.useMemo(()=>g(a.id),[g,a.id]);return(0,t.jsxs)(ae,{className:K("task-board-list-row",l&&"is-open",a.status==="archived"&&"is-archived"),onClick:h=>{h.target.closest("button, a")||u()},children:[(0,t.jsxs)(x,{kind:"ghost",type:"button",ref:f,className:"task-board-list-title","aria-expanded":l,"aria-controls":`task-list-detail-${a.id}`,"aria-label":`${l?"\u6536\u8D77":"\u5C55\u5F00"} ${a.identifier}: ${a.title}`,onClick:u,children:[(0,t.jsx)(D,{name:"chevron",size:12,className:"task-board-list-chevron"}),(0,t.jsxs)("small",{children:[a.identifier,r?` \u21B3 ${r}`:""]}),(0,t.jsx)("strong",{children:a.title})]}),(0,t.jsxs)(T,{wrap:!0,align:"center",gap:4,className:"task-board-list-meta",children:[(0,t.jsx)(Ot,{priority:a.priority}),a.milestone?(0,t.jsx)(Gt,{name:a.milestone.name}):null,a.labels.slice(0,2).map(h=>(0,t.jsx)(Se,{label:h},h)),a.dueDate?(0,t.jsxs)("span",{className:"task-board-due",children:[(0,t.jsx)(Wn,{size:12}),Qe(a.dueDate)]}):null,(0,t.jsx)("span",{children:a.workspace?.name??"\u672A\u5F52\u5C5E\u5DE5\u4F5C\u533A"}),(0,t.jsx)(Ja,{sessions:a.sessions,onOpen:m}),(0,t.jsx)("time",{children:Za(a.updatedAt)})]}),(0,t.jsx)(ft,{bordered:!1,ghost:!0,activeKey:l?["details"]:[],styles:{header:{display:"none"},body:{padding:0}},items:[{key:"details",label:"\u4EFB\u52A1\u8BE6\u60C5",forceRender:!0,showArrow:!1,children:(0,t.jsx)("div",{className:"task-board-list-detail",id:`task-list-detail-${a.id}`,inert:!l,children:(0,t.jsxs)("div",{className:"task-board-list-detail-inner",children:[(0,t.jsxs)("p",{children:[(0,t.jsx)("span",{children:De(a.status)}),(0,t.jsxs)("span",{children:["\u66F4\u65B0\u4E8E ",Za(a.updatedAt)]})]}),R?(0,t.jsx)(L.Paragraph,{className:"task-board-list-description",ellipsis:{rows:4,expandable:"collapsible",symbol:h=>h?"\u6536\u8D77\u5168\u6587":"\u5C55\u5F00\u5168\u6587"},style:{whiteSpace:"pre-wrap",margin:"8px 0"},children:R}):null,(0,t.jsx)("div",{"aria-label":"\u5168\u90E8\u4EFB\u52A1\u6807\u7B7E",children:a.labels.map(h=>(0,t.jsx)(Se,{label:h},h))}),a.workspace?.cwd&&(0,t.jsx)("p",{children:(0,t.jsx)("code",{children:a.workspace.cwd})}),a.sessions.length>0?(0,t.jsx)("ul",{children:a.sessions.map(h=>{let E=$n(h.status);return(0,t.jsx)("li",{children:(0,t.jsxs)(x,{kind:"ghost",type:"button",onClick:()=>m?.(h.id),"data-session-glow":E,children:[(0,t.jsx)(Be,{provider:h.provider,className:K("task-board-agent-logo",E!=="none"&&`wand-logo-glow glow-${E}`)}),(0,t.jsx)("span",{children:h.title||Q(h.provider,h.engine)}),(0,t.jsx)("small",{children:zt(h.status)}),(0,t.jsx)("code",{children:h.cwd})]})},h.id)})}):(0,t.jsx)("p",{className:"task-board-list-description",children:"\u8FD8\u6CA1\u6709\u5173\u8054\u4F1A\u8BDD"}),(0,t.jsx)(x,{kind:"ghost",type:"button",className:"task-board-list-open",onClick:()=>o(a.id),children:"\u67E5\u770B\u8BE6\u60C5"})]})})}]})]})}function Mn({task:a,open:r,parentLabel:l,childCount:u,onOpen:o,onCollapse:m,onOpenSession:g}){let R=a.description.trim(),f=Bt(),h=a.agent,E=h?`${Q(h.provider,h.engine)} \xB7 ${St(h.mode)}`:"\u672A\u6307\u6D3E",F=[{key:"status",label:"\u72B6\u6001",children:De(a.status)},{key:"assignee",label:"\u8D1F\u8D23\u4EBA",children:E},{key:"priority",label:"\u4F18\u5148\u7EA7",children:It(a.priority)},{key:"workspace",label:"\u9879\u76EE",children:(0,t.jsxs)(T,{vertical:!0,children:[(0,t.jsx)("span",{children:a.workspace?.name??"\u672A\u5F52\u5C5E\u5DE5\u4F5C\u533A"}),a.workspace?.cwd&&(0,t.jsx)(L.Text,{code:!0,children:a.workspace.cwd})]})},...h?[{key:"model",label:"\u6A21\u578B",children:`${wt(h,f)} \xB7 ${Rt(h.thinkingEffort)}`}]:[],{key:"milestone",label:"\u8FED\u4EE3",children:a.milestone?.name??"\u9ED8\u8BA4\u8FED\u4EE3"},{key:"due",label:"\u622A\u6B62",children:a.dueDate?Qe(a.dueDate):"\u672A\u8BBE\u7F6E"},{key:"updated",label:"\u66F4\u65B0",children:Za(a.updatedAt)},...l?[{key:"parent",label:"\u7236\u4EFB\u52A1",children:l}]:[],...u>0?[{key:"children",label:"\u5B50\u4EFB\u52A1",children:`${u} \u4E2A`}]:[]];return(0,t.jsx)(ft,{bordered:!1,ghost:!0,activeKey:r?["details"]:[],styles:{header:{display:"none"},body:{padding:0}},items:[{key:"details",label:"\u4EFB\u52A1\u8BE6\u60C5",showArrow:!1,forceRender:!0,children:(0,t.jsx)("div",{className:"task-board-card-detail",id:`task-card-detail-${a.id}`,inert:!r,children:(0,t.jsxs)(T,{vertical:!0,gap:"middle",className:"task-board-card-detail-inner",children:[(0,t.jsx)(vs,{size:"small",column:1,items:F}),a.labels.length>0&&(0,t.jsx)(T,{wrap:!0,gap:4,"aria-label":"\u5168\u90E8\u4EFB\u52A1\u6807\u7B7E",children:a.labels.map(N=>(0,t.jsx)(Se,{label:N},N))}),(0,t.jsx)(L.Paragraph,{ellipsis:{rows:4,expandable:"collapsible",symbol:N=>N?"\u6536\u8D77\u5168\u6587":"\u5C55\u5F00\u5168\u6587"},style:{whiteSpace:"pre-wrap",margin:0},children:R||"\u8FD8\u6CA1\u6709\u586B\u5199\u4EFB\u52A1\u8BF4\u660E\u3002"}),a.sessions.length>0?(0,t.jsx)(pe,{size:"small",className:"task-board-card-detail-sessions",dataSource:a.sessions,renderItem:N=>{let b=$n(N.status);return(0,t.jsx)(pe.Item,{children:(0,t.jsxs)(x,{kind:"ghost",type:"button",onClick:()=>g?.(N.id),title:N.cwd,"data-session-glow":b,style:{height:"auto",width:"100%",justifyContent:"flex-start",textAlign:"left",whiteSpace:"normal"},children:[(0,t.jsx)(kt,{status:b==="failed"?"error":b==="none"?"default":"processing",children:(0,t.jsx)(Be,{provider:N.provider})}),(0,t.jsxs)(T,{vertical:!0,align:"flex-start",style:{minWidth:0},children:[(0,t.jsx)(L.Text,{children:N.title||Q(N.provider,N.engine)}),(0,t.jsx)(L.Text,{type:"secondary",children:zt(N.status)}),(0,t.jsx)(L.Text,{code:!0,style:{overflowWrap:"anywhere"},children:N.cwd})]})]})})}}):(0,t.jsx)(L.Text,{type:"secondary",children:"\u8FD8\u6CA1\u6709\u5173\u8054\u4F1A\u8BDD\u3002"}),(0,t.jsxs)(T,{wrap:!0,gap:"small",className:"task-board-card-detail-actions",children:[(0,t.jsx)(x,{kind:"ghost",type:"button",className:"task-board-card-detail-open",onClick:()=>o(a.id),children:"\u67E5\u770B\u5B8C\u6574\u8BE6\u60C5"}),(0,t.jsx)(x,{kind:"ghost",type:"button",className:"task-board-card-detail-collapse",onClick:()=>m(),children:"\u6536\u8D77"})]})]})})}]})}function _n({grouped:a,allTasks:r,collapsed:l,archiveOpen:u,archiveCount:o=a.archived.length,onToggle:m,onToggleArchive:g,onPurgeArchive:R,archivePurging:f=!1,onOpen:h,onOpenSession:E}){let[F,N]=oe.useState(null),b=Vt(F??""),c=v=>{N(G=>G===v?null:v)},V=a.archived;return(0,t.jsx)(T,{vertical:!0,gap:"middle",className:"task-board-list-view",children:re.map(v=>{let G=a[v.status],ie=v.status==="done"&&u&&V.length>0?!1:l[v.status];return(0,t.jsxs)("section",{className:`task-board-list-group is-${v.status}`,children:[(0,t.jsxs)(x,{kind:"ghost",type:"button",className:"task-board-list-header","aria-expanded":!ie,onClick:()=>m(v.status),children:[(0,t.jsxs)("span",{className:"task-board-list-heading",children:[(0,t.jsx)(D,{name:ie?"chevronLeft":"chevron",size:12}),(0,t.jsx)(ta,{status:v.status}),(0,t.jsx)("strong",{children:v.label})]}),(0,t.jsx)("b",{children:G.length})]}),!ie&&(0,t.jsxs)(T,{vertical:!0,gap:"small",className:"task-board-list-rows",children:[G.length===0&&v.status!=="done"&&(0,t.jsx)("p",{className:"task-board-column-empty",children:v.empty}),G.length===0&&v.status==="done"&&V.length===0&&(0,t.jsx)("p",{className:"task-board-column-empty",children:v.empty}),G.map(P=>(0,t.jsx)(Dn,{task:P,expanded:F===P.id,parentLabel:r.find(ee=>ee.id===P.parentTaskId)?.identifier,onToggle:()=>c(P.id),onOpen:h,onOpenSession:E,bindTrigger:b},P.id)),v.status==="done"?(0,t.jsx)(jt,{count:o,open:u,onToggle:g,onPurge:R,purging:f,children:(0,t.jsx)(T,{vertical:!0,gap:"small",className:"task-board-archive-rows",children:V.map(P=>(0,t.jsx)(Dn,{task:P,expanded:F===P.id,parentLabel:r.find(ee=>ee.id===P.parentTaskId)?.identifier,onToggle:()=>c(P.id),onOpen:h,onOpenSession:E,bindTrigger:b},P.id))})}):null]})]},v.status)})})}function On({projectName:a,tasks:r,onOpen:l,onOpenSession:u}){let o=Us(r),m=r.filter(b=>b.status!=="archived"),g=[...m].filter(b=>b.dueDate&&b.status!=="done").sort((b,c)=>(b.dueDate??"").localeCompare(c.dueDate??"")).slice(0,6),R=ve.map(b=>({...b,count:m.filter(c=>c.priority===b.value).length})).filter(b=>b.count>0),f=va(m).map(b=>({label:b,count:m.filter(c=>c.labels.includes(b)).length})),h=o.total===0?`${a} \u5F53\u524D\u6CA1\u6709\u4EFB\u52A1\u3002`:`\u5171 ${o.total} \u9879\u4EFB\u52A1\uFF0C${o.remaining} \u9879\u5F85\u5904\u7406\uFF0C${o.done} \u9879${De("done")}\u3002`,E=m.filter(b=>b.status!=="done"&&(b.priority==="high"||b.priority==="urgent")).length,F=(b,c,V,v=o.total)=>(0,t.jsxs)(ae,{size:"small",className:`task-board-metric tone-${V}`,style:{flex:"1 1 160px"},children:[(0,t.jsx)(L.Text,{type:"secondary",children:b}),(0,t.jsx)(L.Title,{level:3,style:{margin:"4px 0"},children:c}),(0,t.jsx)(Wt,{status:"normal",percent:Math.round(v?c/v*100:0),"aria-label":`${b}\u5360\u5F53\u524D\u4EFB\u52A1\u6BD4\u4F8B`})]}),N=(b,c)=>(0,t.jsx)(ae,{title:b,size:"small",className:"task-board-dashboard-panel",style:{flex:"1 1 260px",minWidth:0},children:c});return(0,t.jsxs)(T,{vertical:!0,gap:"middle",className:"task-board-dashboard",children:[(0,t.jsxs)(ae,{size:"small",children:[(0,t.jsx)(L.Title,{level:4,style:{margin:0},children:a}),(0,t.jsx)(L.Paragraph,{style:{margin:"8px 0 0"},children:h})]}),(0,t.jsxs)("section",{"aria-label":"\u4EFB\u52A1\u72B6\u6001",children:[(0,t.jsx)(L.Title,{level:5,style:{margin:"0 0 8px"},children:"\u4EFB\u52A1\u72B6\u6001"}),(0,t.jsxs)(T,{wrap:!0,gap:"small",className:"task-board-metrics",children:[F(De("todo"),o.todo,"todo"),F(De("doing"),o.doing,"doing"),F(De("done"),o.done,"done")]})]}),(0,t.jsxs)(ae,{size:"small",title:"\u9700\u8981\u5173\u6CE8",className:"task-board-risk-panel",children:[(0,t.jsxs)(T,{wrap:!0,gap:"small",children:[(0,t.jsxs)(ce,{color:o.overdue>0?"error":"default",children:["\u5DF2\u903E\u671F ",o.overdue]}),(0,t.jsxs)(ce,{color:E>0?"warning":"default",children:["\u9AD8\u4F18\u5148\u7EA7\u5F85\u5904\u7406 ",E]})]}),(0,t.jsx)(L.Paragraph,{type:"secondary",style:{margin:"8px 0 0"},children:o.overdue===0&&E===0?"\u5F53\u524D\u6CA1\u6709\u903E\u671F\u6216\u9AD8\u4F18\u5148\u7EA7\u5F85\u5904\u7406\u4EFB\u52A1\u3002":"\u540C\u4E00\u4EFB\u52A1\u53EF\u80FD\u540C\u65F6\u903E\u671F\u4E14\u5C5E\u4E8E\u9AD8\u4F18\u5148\u7EA7\u3002"})]}),(0,t.jsxs)(T,{wrap:!0,gap:"middle",className:"task-board-dashboard-grid",children:[N("\u5373\u5C06\u5230\u671F",g.length===0?(0,t.jsx)(ue,{image:ue.PRESENTED_IMAGE_SIMPLE,description:"\u6CA1\u6709\u8BBE\u7F6E\u622A\u6B62\u65E5\u671F\u7684\u4EFB\u52A1"}):(0,t.jsx)(pe,{size:"small",dataSource:g,renderItem:b=>(0,t.jsx)(pe.Item,{children:(0,t.jsxs)(x,{kind:"ghost",onClick:()=>l(b.id),style:{height:"auto",whiteSpace:"normal"},children:[(0,t.jsx)(ta,{status:b.status}),(0,t.jsx)("span",{children:b.title}),(0,t.jsx)(ce,{color:Ga(b.dueDate,b.status)?"error":"default",children:Qe(b.dueDate)})]})})})),N("\u4F18\u5148\u7EA7",R.length===0?(0,t.jsx)(ue,{image:ue.PRESENTED_IMAGE_SIMPLE,description:"\u8FD8\u6CA1\u6709\u4F18\u5148\u7EA7\u5206\u5E03"}):(0,t.jsx)(pe,{size:"small",dataSource:R,renderItem:b=>(0,t.jsx)(pe.Item,{children:(0,t.jsxs)(T,{vertical:!0,style:{width:"100%"},children:[(0,t.jsxs)(T,{justify:"space-between",children:[(0,t.jsx)("span",{children:b.label}),(0,t.jsx)("span",{children:b.count})]}),(0,t.jsx)(Wt,{status:"normal",percent:Math.round(b.count/Math.max(1,o.total)*100),size:"small",showInfo:!1})]})})})),N("\u6807\u7B7E",f.length===0?(0,t.jsx)(ue,{image:ue.PRESENTED_IMAGE_SIMPLE,description:"\u8FD8\u6CA1\u6709\u6807\u7B7E"}):(0,t.jsx)(pe,{size:"small",dataSource:f,renderItem:b=>(0,t.jsxs)(pe.Item,{children:[(0,t.jsx)(Se,{label:b.label}),(0,t.jsx)(ce,{children:b.count})]})})),N("\u6700\u8FD1\u4F1A\u8BDD",r.every(b=>b.sessions.length===0)?(0,t.jsx)(ue,{image:ue.PRESENTED_IMAGE_SIMPLE,description:"\u8FD8\u6CA1\u6709\u6D3E\u53D1\u4F1A\u8BDD"}):(0,t.jsx)(pe,{size:"small",dataSource:r.flatMap(b=>b.sessions.map(c=>({task:b,session:c}))).slice(0,6),renderItem:({task:b,session:c})=>(0,t.jsx)(pe.Item,{children:(0,t.jsxs)(x,{kind:"ghost",onClick:()=>u?.(c.id),style:{height:"auto",whiteSpace:"normal"},children:[(0,t.jsx)(Be,{provider:c.provider}),(0,t.jsx)("span",{children:b.title}),(0,t.jsx)("span",{children:Q(c.provider,c.engine)})]})})}))]})]})}function jn({grouped:a,zoom:r,hideCompleted:l,onZoom:u,onHideCompleted:o,onOpen:m}){let g=c=>c==="done"||c==="archived",R=[...re.flatMap(c=>a[c.status]),...a.archived].filter(c=>!(l&&g(c.status))),f=Ks(R,r),h=Et(new Date),E=f.columns.indexOf(h),F=[];f.columns.forEach((c,V)=>{let v=c.slice(0,7),G=F.at(-1);G?.key===v?G.days+=1:F.push({key:v,start:V,days:1})});let N=`repeat(${f.days}, minmax(0, 1fr))`,b=E>=0?(0,t.jsx)("span",{className:"task-board-gantt-today-line","aria-hidden":"true",style:{position:"absolute",top:0,bottom:0,left:`${(E+.5)/f.days*100}%`,borderLeft:"1px dashed var(--accent)",pointerEvents:"none"}}):null;return(0,t.jsxs)(ae,{size:"small",className:"task-board-gantt",styles:{body:{minWidth:0}},children:[(0,t.jsxs)(T,{wrap:!0,align:"center",justify:"space-between",gap:"small",className:"task-board-gantt-toolbar",children:[(0,t.jsx)(ea,{className:"task-board-gantt-hide",checked:l,onChange:c=>o(c.target.checked),children:Ns("done")}),(0,t.jsx)(Oa,{className:"task-board-gantt-zooms",ariaLabel:"\u7518\u7279\u56FE\u7F29\u653E",value:r,tabs:Vs.map(c=>({value:c.value,label:c.label})),onValueChange:c=>u(c)})]}),(0,t.jsxs)(L.Paragraph,{type:"secondary",style:{margin:"8px 0 0"},children:["\u4ECA\u5929 ",h," \xB7 \u65F6\u95F4\u6761\u8868\u793A\u521B\u5EFA\u81F3\u622A\u6B62\u65E5\u671F\uFF0C\u672A\u8BBE\u622A\u6B62\u65E5\u671F\u65F6\u4EC5\u6807\u8BB0\u521B\u5EFA\u65E5\u3002"]}),R.length===0?(0,t.jsx)(ue,{image:ue.PRESENTED_IMAGE_SIMPLE,description:"\u5F53\u524D\u6CA1\u6709\u53EF\u663E\u793A\u7684\u4EFB\u52A1"}):(0,t.jsx)("div",{className:"task-board-gantt-scroll",tabIndex:0,role:"region","aria-label":"\u4EFB\u52A1\u65F6\u95F4\u7EBF\uFF0C\u53EF\u6A2A\u5411\u6EDA\u52A8",style:{overflowX:"auto",marginTop:12},children:(0,t.jsxs)("div",{className:"task-board-gantt-grid",style:{minWidth:Math.max(680,180+f.days*(r==="day"?32:24))},children:[(0,t.jsxs)("div",{className:"task-board-gantt-head",style:{display:"grid",gridTemplateColumns:"180px minmax(0, 1fr)",borderBottom:"1px solid var(--border-subtle)"},children:[(0,t.jsx)(L.Text,{strong:!0,style:{alignSelf:"center",paddingInline:8},children:"\u4EFB\u52A1"}),(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"task-board-gantt-months",style:{display:"grid",gridTemplateColumns:N},children:F.map(c=>(0,t.jsx)(L.Text,{strong:!0,ellipsis:!0,title:`${c.key.slice(0,4)}\u5E74${Number(c.key.slice(5))}\u6708`,"aria-label":`${c.key.slice(0,4)}\u5E74${Number(c.key.slice(5))}\u6708`,style:{gridColumn:`${c.start+1} / span ${c.days}`,minWidth:0,borderLeft:"1px solid var(--border-subtle)",padding:"4px",whiteSpace:"nowrap"},children:c.days<4?`${Number(c.key.slice(5))}\u6708`:`${c.key.slice(0,4)}\u5E74${Number(c.key.slice(5))}\u6708`},c.key))}),(0,t.jsx)("div",{style:{display:"grid",gridTemplateColumns:N,textAlign:"center"},children:f.columns.map(c=>(0,t.jsx)("time",{dateTime:c,title:c,"aria-current":c===h?"date":void 0,style:{paddingBlock:6,color:c===h?"var(--accent)":"var(--text-secondary)",fontWeight:c===h?700:400,borderLeft:c.endsWith("-01")?"1px solid var(--border-subtle)":void 0},children:c===h?"\u4ECA":Number(c.slice(8,10))},c))})]})]}),[...re,...l?[]:[ha]].map(c=>{let V=a[c.status].filter(v=>!(l&&g(v.status)));return V.length===0?null:(0,t.jsxs)("section",{className:`task-board-gantt-group is-${c.status}`,children:[(0,t.jsxs)("div",{style:{display:"grid",gridTemplateColumns:"180px minmax(0, 1fr)",height:36},children:[(0,t.jsxs)(T,{component:"header",align:"center",gap:"small",style:{paddingInline:8},children:[(0,t.jsx)(ta,{status:c.status}),(0,t.jsx)(L.Text,{strong:!0,children:c.label}),(0,t.jsx)(ce,{children:V.length})]}),(0,t.jsx)("div",{style:{position:"relative"},children:b})]}),V.map(v=>{let G=Et(new Date(v.createdAt)),ie=v.dueDate||G,P=G<=f.columns.at(-1)&&ie>=f.start,ee=Ys({...v,dueDate:ie},f.start,f.days);return(0,t.jsxs)(x,{kind:"ghost",type:"button",className:"task-board-gantt-row",title:`${v.title} \xB7 ${G}${v.dueDate?` \u81F3 ${v.dueDate}`:" \xB7 \u672A\u8BBE\u7F6E\u622A\u6B62\u65E5\u671F"}`,style:{width:"100%",height:48,padding:0,display:"grid",gridTemplateColumns:"180px minmax(0, 1fr)",gap:0,textAlign:"left"},onClick:()=>m(v.id),children:[(0,t.jsxs)(T,{vertical:!0,style:{minWidth:0,paddingInline:8},children:[(0,t.jsx)(L.Text,{type:"secondary",children:v.identifier}),(0,t.jsx)(L.Text,{ellipsis:!0,children:v.title})]}),(0,t.jsxs)("div",{className:"task-board-gantt-track",style:{position:"relative",display:"grid",gridTemplateColumns:N,alignItems:"center",height:"100%",minWidth:0,backgroundImage:"linear-gradient(to right, var(--border-subtle) 1px, transparent 1px)",backgroundSize:`${100/f.days}% 100%`},children:[P?(0,t.jsx)("i",{className:`is-${v.status}`,"aria-hidden":"true",style:{gridColumn:`${ee.offset+1} / span ${ee.length}`,height:16,borderRadius:4,marginInline:2,background:v.status==="done"?"var(--success)":v.status==="archived"?"var(--text-tertiary)":"var(--accent)"}}):(0,t.jsx)(L.Text,{type:"secondary",style:{gridColumn:`1 / ${f.days+1}`,paddingInline:8},children:"\u65F6\u95F4\u4E0D\u5728\u5F53\u524D\u8303\u56F4"}),b]})]},v.id)})]},c.status)})]})})]})}function zn({x:a,y:r,task:l,onOpen:u,onCopy:o,onDispatch:m,onArchive:g,onRestore:R,onClose:f}){_a(!0,f),oe.useEffect(()=>{let E=F=>{bs(F.target,"task-board-context")||f()};return window.addEventListener("pointerdown",E),()=>window.removeEventListener("pointerdown",E)},[f]);let h=[{key:"open",label:"\u6253\u5F00",icon:(0,t.jsx)(D,{name:"folder"}),onClick:u},{key:"copy",label:"\u590D\u5236 ID",icon:(0,t.jsx)(D,{name:"copy"}),onClick:o},...l.status==="archived"?[{key:"restore",label:"\u6062\u590D\u5230\u7B49\u5F85\u8BA4\u9886",icon:(0,t.jsx)(D,{name:"resume"}),onClick:R}]:[{key:"dispatch",label:"\u6D3E\u53D1 Agent",icon:(0,t.jsx)(D,{name:"zap"}),onClick:m},...$e(l)?[{key:"archive",label:"\u5F52\u6863",icon:(0,t.jsx)(D,{name:"archive"}),onClick:g}]:[]]];return(0,t.jsx)(ks,{open:!0,autoFocus:!0,placement:"bottomLeft",trigger:[],onOpenChange:E=>{E||f()},menu:{items:h.map(E=>({...E,onClick:()=>{E.onClick(),f()}}))},popupRender:E=>(0,t.jsx)("div",{"data-wand-popup-owner":"task-board-context",children:E}),children:(0,t.jsx)("span",{style:{position:"fixed",left:a,top:r,width:1,height:1},"aria-hidden":"true"})})}function Rr({agent:a,running:r=!1}){return a?(0,t.jsxs)(ce,{className:K("task-board-chip is-agent",r&&"is-running"),children:[(0,t.jsx)(Be,{provider:a.provider,className:"task-board-agent-logo"}),Q(a.provider,a.engine),r?(0,t.jsx)(kt,{status:"processing"}):null]}):null}function Vn({sessions:a,assigned:r}){let l=_s(a,r);return l.length===0?null:(0,t.jsx)(t.Fragment,{children:l.map(u=>(0,t.jsx)(Rr,{agent:u,running:a.some(o=>o.provider===u.provider&&ka(o.status))},u.provider))})}function Gn({sessions:a,assigned:r,onOpenSession:l,catalog:u}){let o=Ms(a,r);return o.length===0?(0,t.jsx)("div",{className:"task-board-agent-list","aria-label":"\u6307\u6D3E\u8BB0\u5F55",children:(0,t.jsx)("p",{className:"task-board-agent-empty",children:"\u8FD8\u6CA1\u6709\u6307\u6D3E Agent\u3002"})}):(0,t.jsx)("div",{className:"task-board-agent-list","aria-label":"\u5DF2\u6307\u6D3E\u7684 Agent",children:o.map(m=>(0,t.jsxs)("section",{className:"task-board-agent-group",children:[(0,t.jsxs)("header",{className:"task-board-agent-group-head",children:[(0,t.jsx)(Be,{provider:m.agent?.provider??m.provider,className:"task-board-agent-logo"}),(0,t.jsx)("strong",{children:Q(m.agent?.provider??m.provider,m.engine??m.agent?.engine)}),m.agent?(0,t.jsx)("span",{children:[vt(u??null,m.agent.provider,m.agent.model),Rt(m.agent.thinkingEffort),St(m.agent.mode)].filter(Boolean).join(" \xB7 ")}):null,(0,t.jsx)("b",{children:m.sessions.length})]}),m.sessions.length===0?(0,t.jsx)("p",{className:"task-board-agent-empty",children:"\u5DF2\u6307\u6D3E\uFF0C\u7B49\u5F85\u6D3E\u53D1"}):m.sessions.map(g=>(0,t.jsxs)(x,{kind:"ghost",type:"button",className:"task-board-agent-session",onClick:()=>l?.(g.id),children:[(0,t.jsx)("span",{className:K("task-board-agent-session-status",ka(g.status)&&"is-running")}),(0,t.jsx)("strong",{children:g.title||Q(g.provider,g.engine)}),(0,t.jsx)("small",{children:[vt(u??null,g.provider,g.model),zt(g.status)].filter(Boolean).join(" \xB7 ")})]},g.id))]},`${m.provider}:${m.engine??"cli"}`))})}function Zn({name:a}){return(0,t.jsxs)(ce,{className:"task-board-chip",title:a,children:[(0,t.jsx)(_t,{size:12}),(0,t.jsx)("span",{children:a})]})}function Gt({name:a}){return(0,t.jsxs)(ce,{className:"task-board-chip is-milestone",title:`\u91CC\u7A0B\u7891\uFF1A${a}`,children:[(0,t.jsx)(D,{name:"milestone",size:12}),(0,t.jsx)("span",{children:a})]})}var Zt=[{value:"manual",label:"\u9ED8\u8BA4\u987A\u5E8F"},{value:"priority",label:"\u4F18\u5148\u7EA7\u4F18\u5148"},{value:"due",label:"\u622A\u6B62\u65E5\u671F\u4F18\u5148"},{value:"updated",label:"\u6700\u8FD1\u66F4\u65B0"}];function Hn(a,r){if(r==="manual")return a;let l={urgent:0,high:1,medium:2,low:3,none:4};return[...a].sort((u,o)=>r==="priority"?l[u.priority]-l[o.priority]:r==="due"?(u.dueDate||"9999").localeCompare(o.dueDate||"9999"):o.updatedAt.localeCompare(u.updatedAt))}var Un="wand.task-board.view-state";function Sr(a){let r=a&&typeof a=="object"?a:{},l=r.filters&&typeof r.filters=="object"?r.filters:{},u=o=>Array.isArray(o)?o.filter(m=>typeof m=="string"):[];return{view:za.some(o=>o.value===r.view)?r.view:"board",query:typeof r.query=="string"?r.query:"",workspaceId:typeof r.workspaceId=="string"?r.workspaceId:"",sort:Zt.some(o=>o.value===r.sort)?r.sort:"manual",filters:{statuses:u(l.statuses).filter(o=>["todo","doing","done","archived"].includes(o)),priorities:u(l.priorities).filter(o=>ve.some(m=>m.value===o)),labels:u(l.labels)}}}function Kn(){try{return Sr(JSON.parse(sessionStorage.getItem(Un)??"null"))}catch{return{view:"board",query:"",workspaceId:"",filters:Fe,sort:"manual"}}}function Yn(a){try{sessionStorage.setItem(Un,JSON.stringify(a))}catch{}}var Cr=[1200,2e3,3e3,5e3,8e3];function xr(a){return new Promise(r=>{setTimeout(r,a)})}function qn(a){let r=a.sleep??xr,l=a.delays??Cr,u=0;return{cancel(){u+=1},async start(o,m){let g=u+=1;for(let R of l){if(g!==u||(await r(R),g!==u)||(await a.reload(),g!==u))return;let f=await a.getTask(o).catch(()=>null);if(f&&f.title&&f.title!==m)return}}}}var Jn="wand.task-board.last-assignment";function Xa(a){if(!a||typeof a!="object"||Array.isArray(a))return null;let r=a;if(!Xe(r.agent)||!yt(r.subject))return null;let l=Pe(null,r.agent),u={type:r.subject.type,id:r.subject.id.trim()};return!u.id||u.type==="cli"&&u.id!==l.provider?null:{agent:l,subject:u}}function Xn(){try{return Xa(JSON.parse(window.localStorage.getItem(Jn)??"null"))}catch{return null}}function Qn(a){let r=Xa(a);if(r)try{window.localStorage.setItem(Jn,JSON.stringify(r))}catch{}}function Ht(a,r,l,u){let o=Xe(a.agent)?a.agent:null,m=yt(a.executionSubject)&&(a.executionSubject.type!=="cli"||Ct(a.executionSubject.id))?a.executionSubject:null,g=o?Pe(o):m?.type==="cli"&&Ct(m.id)?ya(m.id):Pe(null,r?.agent??l),R=m??(o?{type:"cli",id:g.provider}:r?.subject??{type:"cli",id:g.provider});if(R.type==="employee"?u.employees!==null&&!u.employees.some(h=>h.id===R.id&&!h.archivedAt):R.type==="team"&&u.teams!==null&&!u.teams.some(h=>h.id===R.id)){let h=Pe(o,l);return{agent:h,subject:{type:"cli",id:h.provider}}}return{agent:g,subject:R}}var s=X(he(),1);function Qa(a,r="todo",l=ya(),u=""){return{workspaceId:a,title:"",description:"",status:r,priority:Is,dueDate:"",labels:"",milestoneId:"",parentTaskId:u,agent:l}}function et(a,r){return Pe(a.agent,r)}function Ut(a){return re.find(r=>r.status===a)??re[0]}var z=sn;function Xo({onOpenSession:a,onBack:r,onOpenSidebar:l,sidebarOpen:u=!1}={}){let o=d.useSyncExternalStore(Ua.subscribe,Ua.getSnapshot,Ua.getSnapshot),m=dn(o.open),g=m===null?null:cn(Rs,m,e=>e.provider).map(e=>({value:e.value,label:e.label})),[R]=d.useState(Kn),[f,h]=d.useState([]),[E,F]=d.useState([]),[N,b]=d.useState(null),[c,V]=d.useState(!1),[v,G]=d.useState(""),[ie,P]=d.useState(""),[ee,le]=d.useState(""),[_e,Z]=d.useState(""),[H,Oe]=d.useState(R.query),[U,Ra]=d.useState(R.view),[Ce,at]=d.useState(R.sort),[ke,je]=d.useState(Gs),[$,Te]=d.useState(R.filters),[tt,st]=d.useState("week"),[Sa,I]=d.useState(!1),[W,sa]=d.useState(R.workspaceId),Ie=d.useRef(!1),[xe,Ca]=d.useState(!1),[na,Kt]=d.useState(!1),[nt,er]=d.useState(!1),[rt,Yt]=d.useState(!1),[p,O]=d.useState(()=>Qa("")),qt=d.useRef(p);qt.current=p;let[ze,de]=d.useState(""),[xa,Ve]=d.useState(""),ar=Vt(xa),[tr,ra]=d.useState(null),[q,Jt]=d.useState(null),{employees:J,loading:oa,error:ia}=Ts(),[Na,sr]=d.useState(Xn),la=d.useRef(Na);la.current=Na;let da=d.useRef(""),[ye,ca]=d.useState(""),[me,ua]=d.useState(""),[nr,rr]=d.useState(0),[Ge,Xt]=d.useState(()=>ya()),Ne=d.useRef(Ge);Ne.current=Ge;let[Qt,pa]=d.useState({todo:!1,doing:!1,done:!1,archived:!0}),[Ae,Aa]=d.useState(""),[es,Ze]=d.useState(""),[Ea,Wa]=d.useState(!1),[ma,ge]=d.useState(null),[or,ir]=d.useState(null),Ba=d.useRef(0),as=d.useRef(0),Da=d.useRef(null),La=d.useRef(null),ts=d.useRef({}),He=d.useRef(null);d.useLayoutEffect(()=>{for(let e of Object.values(ts.current))e&&(e.scrollTop=0)},[Ce]),d.useEffect(()=>{_e&&(Ta.toast(_e,{tone:"success"}),Z(""))},[_e]);let B=d.useCallback(async(e=!1)=>{let n=++Ba.current;e||(V(!0),le(""));try{let i=await _.list();if(n!==Ba.current)return;h(i)}catch(i){if(n!==Ba.current)return;le(i instanceof Error?i.message:"\u65E0\u6CD5\u52A0\u8F7D\u4EFB\u52A1\u3002")}finally{n===Ba.current&&V(!1)}},[]),ga=d.useCallback(async()=>{let e=++as.current;try{let n=await _.workspaces();e===as.current&&(F(n),sa(i=>n.some(y=>y.id===i)?i:""))}catch{}},[]);d.useEffect(()=>{o.open||He.current?.cancel()},[o.open]),d.useEffect(()=>()=>{He.current?.cancel()},[]),d.useEffect(()=>{if(!o.open)return;je(Zs()),B(),ga(),_.models().then(i=>b(Fs(i))).catch(()=>b(null)),ln.list().then(Jt).catch(()=>Jt([]));let e=!0;_.agentDefaults().then(i=>{e&&(Ne.current=i,Xt(i))}).catch(()=>{});let n=ws(b);return()=>{e=!1,n()}},[o.open,o.revision,ga,B]),d.useEffect(()=>{if(!o.open)return;let e=window.setInterval(()=>{ga(),B(!0)},xe?2e3:6e3),n=Js(()=>{B(!0),ga()});return()=>{window.clearInterval(e),n()}},[o.open,xe,ga,B]),d.useEffect(()=>{le(""),Z(""),de(""),ra(null),da.current="",Ca(!1),ge(null)},[o.revision,o.open]),d.useEffect(()=>{o.workspaceId&&(sa(e=>e||o.workspaceId),O(e=>e.workspaceId?e:{...e,workspaceId:o.workspaceId}))},[o.workspaceId,o.open]);let j=d.useCallback(async(e,n)=>{if(!Ie.current){Ie.current=!0,G(e),le("");try{await n()}catch(i){le(i instanceof Error?i.message:"\u64CD\u4F5C\u5931\u8D25\u3002")}finally{Ie.current=!1,G("")}}},[]),lr=d.useCallback(e=>{je(e),Hs(e)},[]),ss=d.useCallback(e=>{Xe(e)&&(Ne.current=e,Xt(e))},[]),fe=d.useCallback((e,n)=>{let i=Xa({agent:e,subject:n});i&&(la.current=i,sr(i),Qn(i))},[]),dr=In(p.workspaceId||W||null,xe);wn(xe,dr,e=>{O(n=>n.milestoneId?n:{...n,milestoneId:e})});let Ue=d.useCallback((e="todo",n)=>{let i=Ht({},Le(e)?la.current:null,Ne.current,{employees:oa||ia?null:J,teams:q});ca(i.subject.type==="team"?i.subject.id:""),ua(i.subject.type==="employee"?i.subject.id:""),O({...Qa(n?n.workspaceId??"":W||o.workspaceId,e,i.agent,n?.id),milestoneId:n?.milestoneId??""}),Yt(!1),Kt(!1),Ca(!0),requestAnimationFrame(()=>Da.current?.focus())},[o.workspaceId,J,ia,oa,W,q]),cr=d.useCallback(async()=>{let e=p.title.trim(),n=p.description.trim();!e&&!n||c||await j("__create__",async()=>{let i=ye&&Le(p.status)?{type:"team",id:ye}:me&&Le(p.status)?{type:"employee",id:me}:{type:"cli",id:p.agent.provider},y=await _.create({workspaceId:p.workspaceId||null,title:e,description:n,status:p.status,priority:p.priority,labels:p.labels.split(/[,,]/).map(C=>C.trim()).filter(Boolean),dueDate:p.dueDate||null,milestoneId:p.milestoneId||null,parentTaskId:p.parentTaskId||null,...i.type==="cli"?{agent:p.agent}:{},executionSubject:i,rememberAgentDefaults:i.type==="cli"&&na});i.type==="cli"&&na&&ss(p.agent);let A="",M=i.type==="team"?q?.find(C=>C.id===i.id):void 0,k=i.type==="employee"?J.find(C=>C.id===i.id):void 0;if(M&&n)try{await _.dispatch(y.id,null,{subject:i,prompt:n,workspaceId:p.workspaceId||null}),fe(p.agent,i),Z(`\u56E2\u961F\u300C${M.name}\u300D\u5DF2\u5F00\u59CB\u5904\u7406\u300C${y.title}\u300D`)}catch(C){A=C instanceof Error?C.message:"\u4EFB\u52A1\u5DF2\u521B\u5EFA\uFF0C\u4F46\u4EA4\u7ED9\u56E2\u961F\u5931\u8D25\u3002"}else if(Le(p.status)&&n&&(k||Xe(p.agent)))try{let C=await _.dispatch(y.id,i.type==="cli"?p.agent:null,{prompt:n,workspaceId:p.workspaceId||null,subject:i});fe(p.agent,i),Z(`${k?.name||Q(C.session?.provider||p.agent.provider,p.agent.engine)} \u5DF2\u5F00\u59CB\u5904\u7406\u300C${y.title}\u300D`)}catch(C){A=C instanceof Error?C.message:"\u4EFB\u52A1\u5DF2\u521B\u5EFA\uFF0C\u4F46\u7B2C\u4E00\u6B21\u6307\u6D3E\u5931\u8D25\u3002"}qt.current!==p?requestAnimationFrame(()=>Da.current?.focus()):nt?(O({...Qa(p.workspaceId,p.status,p.agent,p.parentTaskId),milestoneId:p.milestoneId}),requestAnimationFrame(()=>Da.current?.focus())):(Ca(!1),O(Qa(p.workspaceId,"todo",p.agent))),await B(),A?le(A):Z(`\u5DF2\u521B\u5EFA\u4EFB\u52A1\u300C${y.title}\u300D${Le(p.status)&&n?"\uFF0C\u5DE5\u5177\u5DF2\u542F\u52A8":"\uFF0C\u672A\u542F\u52A8\u6267\u884C"}${i.type==="cli"&&na?"\uFF1B\u4EE5\u540E\u65B0\u5EFA\u4EFB\u52A1\u5C06\u4F7F\u7528\u8FD9\u7EC4\u6267\u884C\u9ED8\u8BA4":""}\u3002`),!e&&y.titleSource==="auto"&&(He.current??(He.current=qn({getTask:C=>_.get(C),reload:B})),He.current.start(y.id,y.title))})},[nt,p,me,J,c,ss,fe,na,B,j,ye,q]),ur=d.useCallback(async(e,n)=>{await j(e,async()=>{await _.update(e,n),await B()})},[B,j]),ns=d.useCallback(async e=>{if(!$e(e))return;let n=await Ta.dialog({title:`\u5F52\u6863\u300C${e.title}\u300D\uFF1F`,description:"\u4EFB\u52A1\u4F1A\u79FB\u5165\u5F52\u6863\uFF0C\u5E76\u5C06\u5173\u8054\u7684\u5DE5\u4F5C\u4EFB\u52A1\u6807\u4E3A\u5B8C\u6210\u3002\u4F1A\u8BDD\u8BB0\u5F55\u4F1A\u4FDD\u7559\u3002",actions:[{label:"\u53D6\u6D88",value:!1,autoFocus:!0},{label:"\u5F52\u6863\u4EFB\u52A1",value:!0,kind:"primary"}]});n.dismissed===!0||!n.action||await j(e.id,async()=>{await _.remove(e.id),Z(`\u5DF2\u5F52\u6863\u300C${e.title}\u300D\uFF0C\u4F1A\u8BDD\u8BB0\u5F55\u5DF2\u4FDD\u7559\u3002`),ze===e.id&&(de(""),ra(null)),await B()})},[B,j,ze]),pr=d.useCallback(async(e,n,i)=>{await j(e.id,async()=>{await _.update(e.id,{agent:n,workspaceId:e.workspaceId});let y=await _.dispatch(e.id,n,{prompt:i.trim(),workspaceId:e.workspaceId,subject:{type:"cli",id:n.provider}});fe(n,{type:"cli",id:n.provider}),Z(`${Q(y.session?.provider||n.provider,n.engine)} \u5DF2\u5F00\u59CB\u5904\u7406\u300C${e.title}\u300D`),await B()})},[fe,B,j]),mr=d.useCallback(async(e,n,i)=>{await j(e.id,async()=>{let y=i.trim(),A=await _.dispatch(e.id,null,{prompt:y,workspaceId:e.workspaceId,subject:{type:"team",id:n.id}});fe(et(e,la.current?.agent??Ne.current),{type:"team",id:n.id}),Z(`\u56E2\u961F\u300C${n.name}\u300D\u5DF2\u5F00\u59CB\u5904\u7406\u300C${e.title}\u300D`),rr(M=>M+1),await B(),A.teamRun?.run.id?Ha.open("","","teamchat",A.teamRun.run.id):A.session?.id&&a?.(A.session.id)})},[a,fe,B,j]),gr=d.useCallback(async(e,n,i)=>{let y=J.find(A=>A.id===n);y&&await j(e.id,async()=>{let A=await _.dispatch(e.id,null,{prompt:i.trim(),workspaceId:e.workspaceId,subject:{type:"employee",id:n}});fe(et(e,la.current?.agent??Ne.current),{type:"employee",id:n}),Z(`${y.name} \u5DF2\u5F00\u59CB\u5904\u7406\u300C${e.title}\u300D`),await B(),A.session?.id&&a?.(A.session.id)})},[J,a,fe,B,j]),fr=d.useCallback(async(e,n)=>{let i=f.find(k=>k.id===n);if(!i||i.status===e)return;let y=As(e,i.sessions.length),A=y?et(i,Ne.current):null;if(Ie.current)return;let M="";if(y&&A){M=Es(i);let k=M.length>240?`${M.slice(0,240)}\u2026`:M,C=await Ta.dialog({title:`\u7528\u4EFB\u52A1\u8BF4\u660E\u542F\u52A8\u300C${i.title}\u300D\uFF1F`,description:`\u62D6\u8FDB\u300C\u5904\u7406\u4E2D\u300D\u4F1A\u6309\u4EFB\u52A1\u5361\u4E0A\u5DF2\u6709\u7684\u8FD9\u6BB5\u8BF4\u660E\u6D3E\u53D1\uFF0C\u4E0D\u662F\u6307\u6D3E\u6846\u91CC\u65B0\u5199\u7684\u63D0\u793A\u8BCD\uFF1A\u300C${k}\u300D`,actions:[{label:"\u53D6\u6D88",value:"cancel",autoFocus:!0},{label:"\u53EA\u79FB\u5165\u5904\u7406\u4E2D",value:"move"},{label:"\u6309\u8FD9\u6BB5\u8BF4\u660E\u6D3E\u53D1",value:"dispatch",kind:"primary"}]});if(C.dismissed===!0||C.action==="cancel")return;C.action==="move"&&(M="")}await j(n,async()=>{await _.update(n,{status:e});let k="";if(M&&A)try{let C=await _.dispatch(n,i.executionSubject&&i.executionSubject.type!=="cli"?null:A,{prompt:M,workspaceId:i.workspaceId,subject:i.executionSubject??{type:"cli",id:A.provider}}),ut=i.executionSubject?.type==="employee"?J.find(pt=>pt.id===i.executionSubject?.id)?.name:i.executionSubject?.type==="team"?q?.find(pt=>pt.id===i.executionSubject?.id)?.name:Q(C.session?.provider||A.provider,A.engine);Z(`${ut||Q(C.session?.provider||A.provider,A.engine)} \u5DF2\u5F00\u59CB\u5904\u7406\u300C${i.title}\u300D`)}catch(C){k=C instanceof Error?C.message:"\u4EFB\u52A1\u5DF2\u79FB\u5165\u300C\u5904\u7406\u4E2D\u300D\uFF0C\u4F46\u6D3E\u53D1 Agent \u5931\u8D25\u3002"}await B(),k&&le(k)})},[J,B,j,f,q]),br=d.useCallback(async e=>{let n=f.find(i=>i.id===e);!n||n.status==="archived"||!$e(n)||await j(e,async()=>{await _.update(e,{status:"archived"}),pa(i=>({...i,archived:!0})),Z(`\u5DF2\u5F52\u6863\u300C${n.title}\u300D\uFF0C\u62D6\u56DE\u4EFB\u610F\u5217\u6216\u53F3\u952E\u300C\u6062\u590D\u5230\u7B49\u5F85\u8BA4\u9886\u300D\u5373\u53EF\u6062\u590D\u3002`),await B()})},[B,j,f]),hr=d.useCallback(async e=>{let n=f.find(i=>i.id===e);!n||n.status!=="archived"||await j(e,async()=>{await _.update(e,{status:"todo"}),Z(`\u5DF2\u6062\u590D\u300C${n.title}\u300D\u5230\u300C\u7B49\u5F85\u8BA4\u9886\u300D\u3002`),await B()})},[B,j,f]),S=f.find(e=>e.id===ze)??null,kr=S?f.filter(e=>e.parentTaskId===S.id):[],Pa=js(Qt.archived,H,$),rs=Hn(At(f,H,W,$,Pa),Ce),Fa=Os(rs),ot=At(f,H,W,$,!0),$a=ot.filter(e=>e.status!=="archived").length,Ee=ot.length-$a,os=f.filter(e=>e.status==="archived"&&(!W||e.workspaceId===W)).length,[is,ls]=d.useState(!1),ds=d.useCallback(async()=>{let e=await Ta.dialog({title:`\u6C38\u4E45\u5220\u9664 ${os} \u4E2A\u5F52\u6863\u4EFB\u52A1\uFF1F`,description:"\u5F52\u6863\u5361\u7247\u4F1A\u88AB\u5F7B\u5E95\u5220\u9664\uFF0C\u65E0\u6CD5\u6062\u590D\uFF1B\u4ECD\u5728\u8FD0\u884C\u7684\u4F1A\u8BDD\u540D\u4E0B\u7684\u4EFB\u52A1\u4F1A\u88AB\u8DF3\u8FC7\u3002",actions:[{label:"\u53D6\u6D88",value:!1,autoFocus:!0},{label:"\u6C38\u4E45\u5220\u9664",value:!0,kind:"danger"}]});if(!(e.dismissed===!0||e.action!==!0)&&!Ie.current){Ie.current=!0,ls(!0),le("");try{let n=await _.purgeArchived(W||null);Z(n.skipped>0?`\u5DF2\u5220\u9664 ${n.deleted} \u4E2A\u5F52\u6863\u4EFB\u52A1\uFF0C${n.skipped} \u4E2A\u4ECD\u5728\u5904\u7406\u5DF2\u8DF3\u8FC7\u3002`:`\u5DF2\u5220\u9664 ${n.deleted} \u4E2A\u5F52\u6863\u4EFB\u52A1\u3002`),await B()}catch(n){le(n instanceof Error?n.message:"\u65E0\u6CD5\u6E05\u7A7A\u5F52\u6863\u4EFB\u52A1\u3002")}finally{Ie.current=!1,ls(!1)}}},[os,W,B]),cs=zs(E),yr=Tt(f,p.workspaceId||void 0,null,p.parentTaskId),vr=W?E.find(e=>e.id===W)?.name??"\u9879\u76EE":"\u6240\u6709\u9879\u76EE",it=re.filter(e=>ke.mainStatuses.includes(e.status)),lt=re.filter(e=>!ke.mainStatuses.includes(e.status)),Tr=S?v===S.id:!1,us=tr??(S?et(S,Ge):Ge),we=ma?f.find(e=>e.id===ma.taskId)??null:null,dt=Va($)>0,Ke=qs(f.length,$a,Ee,!!(H.trim()||dt)),[Re,ct]=d.useState(!1),se=pn(),be=Le(p.status),Ye=be?q?.find(e=>e.id===ye)??null:null,qe=be?J.find(e=>e.id===me)??null:null,Ir=JSON.stringify(S?.agent??null);d.useEffect(()=>{if(!S){da.current="",ra(null);return}if(da.current===S.id&&(!me||oa||ia||J.some(n=>n.id===me&&!n.archivedAt))&&(!ye||q===null||q.some(n=>n.id===ye)))return;da.current="";let e=Ht(S,Na,Ge,{employees:oa||ia?null:J,teams:q});ra(e.agent),ca(e.subject.type==="team"?e.subject.id:""),ua(e.subject.type==="employee"?e.subject.id:"")},[S?.id,Ir,S?.executionSubject?.type,S?.executionSubject?.id,Ge,Na,me,J,ia,oa,ye,q]),d.useEffect(()=>{Yn({view:U,query:H,workspaceId:W,filters:$,sort:Ce})},[U,H,W,$,Ce]),d.useEffect(()=>{Ve("")},[U,H,W,$,ze,o.open,o.revision]),d.useEffect(()=>{let e=document.title;return document.title=S?`${S.title} \xB7 Wand`:"\u4EFB\u52A1\u770B\u677F \xB7 Wand",()=>{document.title=e}},[S?.title]);let Ma=d.useCallback(async()=>{Ie.current||(p.title.trim()||p.description.trim())&&!await Rn()||Ca(!1)},[p.title,p.description]);if(d.useEffect(()=>{if(!o.open)return;let e=n=>{if(n.defaultPrevented||n.isComposing)return;let i=n.target;if(i instanceof Element&&i.closest('[role="dialog"], [role="alertdialog"], [role="listbox"], [role="menu"]'))return;let y=i instanceof HTMLElement&&(i.tagName==="INPUT"||i.tagName==="TEXTAREA"||i.isContentEditable);if(n.key==="/"&&!y){n.preventDefault(),La.current?.focus();return}if(n.key==="c"&&!y&&!n.metaKey&&!n.ctrlKey){n.preventDefault(),Ue("todo");return}if(!(n.key!=="Escape"||y)){if(xe){Ma();return}if(ze){de("");return}if(xa){Ve("");return}r?r():Ha.close()}};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[o.open,xe,Ma,xa,r,Ue,ze]),!o.open)return null;let ps=e=>{let n=e.agent,i=v===e.id,y=f.find(k=>k.id===e.parentTaskId),A=f.filter(k=>k.parentTaskId===e.id).length,M=xa===e.id;return(0,s.jsx)("article",{className:K("task-board-card",`is-${e.status}`,M&&"is-open",Ae===e.id&&"is-dragging",es===e.status&&Ae&&Ae!==e.id&&"is-shift",i&&"is-busy",ie===e.id&&"is-session-drop-target"),onDragOver:k=>{i||!Ka(k.dataTransfer)||(k.preventDefault(),k.stopPropagation(),k.dataTransfer.dropEffect="move",P(e.id))},onDragLeave:k=>{k.currentTarget.contains(k.relatedTarget)||P("")},onDrop:k=>{if(!Ka(k.dataTransfer))return;k.preventDefault(),k.stopPropagation(),P("");let C=kn(k.dataTransfer);!C||i||e.sessions.some(ut=>ut.id===C)||j(e.id,async()=>{await _.moveSession(e.id,C),Z(`\u5DF2\u79FB\u5165\u300C${e.title}\u300D\uFF0C\u8FD0\u884C\u76EE\u5F55\u4E0D\u53D8`),await B(),await rn.getRuntime()?.refreshSessions()})},"data-task-id":e.id,draggable:!i,onKeyDown:k=>{if(k.key!=="ContextMenu"&&!(k.shiftKey&&k.key==="F10"))return;k.preventDefault();let C=k.currentTarget.getBoundingClientRect();ge({taskId:e.id,x:C.left+16,y:C.top+32})},onDragStart:k=>{k.target===k.currentTarget&&(Ve(""),Cn(k.dataTransfer,e.id),Aa(e.id))},onDragEnd:()=>{Aa(""),Ze(""),Wa(!1)},onContextMenu:k=>{k.preventDefault(),ge({taskId:e.id,x:k.clientX,y:k.clientY})},children:(0,s.jsx)(ae,{size:"small",styles:{body:{padding:12}},loading:i,children:(0,s.jsxs)(T,{vertical:!0,gap:"small",children:[(0,s.jsxs)(T,{align:"flex-start",gap:4,className:"task-board-card-heading",children:[(0,s.jsx)(x,{kind:"ghost",type:"button",ref:ar(e.id),className:"task-board-card-open",style:{height:"auto",width:"100%",justifyContent:"flex-start",whiteSpace:"normal",textAlign:"left"},"aria-expanded":M,"aria-controls":`task-card-detail-${e.id}`,"aria-label":`${M?"\u6536\u8D77":"\u5C55\u5F00"} ${e.identifier}: ${e.title}`,title:e.title||"\u672A\u547D\u540D\u4EFB\u52A1",onClick:()=>Ve(k=>k===e.id?"":e.id),children:(0,s.jsx)(L.Text,{strong:!0,className:"task-board-card-title",id:`task-${e.id}-title`,children:e.title||"\u672A\u547D\u540D\u4EFB\u52A1"})}),(0,s.jsx)(ne,{className:"task-board-card-menu","aria-label":`\u4EFB\u52A1\u83DC\u5355 ${e.identifier}`,disabled:i,onClick:k=>{let C=k.currentTarget.getBoundingClientRect();ge({taskId:e.id,x:C.left,y:C.bottom})},children:(0,s.jsx)(D,{name:"more",size:16})})]}),ke.body&&e.description&&!M?(0,s.jsx)("p",{className:"task-board-card-body",children:e.description}):null,(0,s.jsxs)(T,{wrap:!0,gap:4,align:"center",className:"task-board-card-meta","aria-label":"\u4EFB\u52A1\u5C5E\u6027",children:[(0,s.jsx)("span",{className:"task-board-card-id",children:e.identifier}),y&&(0,s.jsxs)("span",{className:"task-board-chip is-parent",title:`\u5F52\u5C5E ${y.identifier} \xB7 ${y.title}`,children:["\u21B3 ",y.identifier]}),A>0&&(0,s.jsxs)("span",{className:"task-board-chip is-parent",title:`${A} \u4E2A\u5B50\u4EFB\u52A1`,children:[A," \u4E2A\u5B50\u4EFB\u52A1"]}),(0,s.jsx)(Zn,{name:e.workspace?e.workspace.name:"\u672A\u5F52\u5C5E\u5DE5\u4F5C\u533A"}),e.milestone?(0,s.jsx)(Gt,{name:e.milestone.name}):null,(0,s.jsx)(Ot,{priority:e.priority}),e.labels.slice(0,2).map(k=>(0,s.jsx)(Se,{label:k},k)),e.labels.length>2?(0,s.jsxs)("span",{className:"task-board-label-more",children:["+",e.labels.length-2]}):null,e.dueDate?(0,s.jsx)("span",{className:K("task-board-due",Ga(e.dueDate,e.status)&&"is-overdue"),children:Qe(e.dueDate)}):null,(0,s.jsx)(Vn,{sessions:e.sessions,assigned:n}),e.status!=="doing"?(0,s.jsx)(Ja,{sessions:e.sessions,onOpen:a}):null]}),ie===e.id&&(0,s.jsx)(We,{type:"info",showIcon:!0,title:"\u79FB\u5165\u6B64\u4EFB\u52A1 \xB7 \u8FD0\u884C\u76EE\u5F55\u4E0D\u53D8"}),e.sessions.length>0&&(0,s.jsxs)(T,{vertical:!0,gap:4,className:"task-board-session-list",style:{display:M?"none":void 0},"aria-label":`${e.title} \u7684\u4F1A\u8BDD`,children:[e.sessions.slice(0,2).map(k=>(0,s.jsxs)(T,{align:"center",justify:"space-between",gap:4,className:"task-board-session-row",style:{minWidth:0},"data-session-id":k.id,draggable:!i,onDragStart:C=>{C.stopPropagation(),hn(C.dataTransfer,k.id)},children:[(0,s.jsxs)(x,{kind:"ghost",type:"button",className:"task-board-session-open",style:{flex:1,minWidth:0,justifyContent:"flex-start"},title:`${k.title}
2
- ${k.cwd}`,onClick:()=>a?.(k.id),children:[(0,s.jsx)(D,{name:"terminal",size:13}),(0,s.jsx)(L.Text,{ellipsis:!0,style:{flex:1,minWidth:0,textAlign:"left"},children:k.title||k.provider||"CLI \u4F1A\u8BDD"})]}),(0,s.jsx)(Nn,{sessionId:k.id,taskId:e.workspaceTaskId??void 0})]},k.id)),e.sessions.length>2&&(0,s.jsxs)(x,{kind:"ghost",size:"small",className:"task-board-session-more",onClick:()=>Ve(e.id),children:["\u67E5\u770B\u5168\u90E8 ",e.sessions.length," \u4E2A\u4F1A\u8BDD"]})]}),e.status==="doing"?(0,s.jsx)(Ln,{task:e,onOpenSession:a}):null,(0,s.jsx)(Mn,{task:e,open:M,parentLabel:y?.title,childCount:A,onOpen:de,onCollapse:()=>Ve(""),onOpenSession:a})]})})},e.id)},ms=e=>{let n=Ut(e),i=Fa[e];return(0,s.jsxs)("section",{className:K("task-board-column",`is-${e}`,es===e&&"is-drop-target"),style:{flex:"1 0 280px",minWidth:0},"aria-labelledby":`column-${e}`,onDragEnter:y=>{wa(y.dataTransfer)&&Ze(e)},onDragOver:y=>{wa(y.dataTransfer)&&(y.preventDefault(),y.dataTransfer.dropEffect="move",Ze(e))},onDragLeave:y=>{y.currentTarget.contains(y.relatedTarget)||Ze(A=>A===e?"":A)},onDrop:y=>{if(Ka(y.dataTransfer))return;y.preventDefault();let A=xn(y.dataTransfer);Ze(""),Aa(""),A&&f.some(M=>M.id===A)&&fr(e,A)},children:[(0,s.jsxs)(T,{component:"header",align:"center",justify:"space-between",gap:"small",className:"task-board-column-head",children:[(0,s.jsxs)(T,{align:"center",gap:"small",className:"task-board-column-heading",children:[(0,s.jsx)(ta,{status:e}),(0,s.jsx)(L.Title,{level:5,id:`column-${e}`,style:{margin:0},children:n.label}),(0,s.jsx)("span",{className:"task-board-column-count",children:i.length})]}),(0,s.jsx)("div",{className:"task-board-column-actions",children:(0,s.jsx)(ne,{className:"task-board-icon-button","aria-label":`\u5728${n.label}\u4E2D\u65B0\u5EFA\u4EFB\u52A1`,title:`\u6DFB\u52A0\u5230${n.label}`,onClick:()=>Ue(e),children:(0,s.jsx)(D,{name:"plus"})})})]}),(0,s.jsxs)(T,{vertical:!0,gap:"small",className:"task-board-column-list",ref:y=>{ts.current[e]=y??void 0},children:[c&&f.length===0?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(ht,{className:"task-board-skeleton"}),(0,s.jsx)(ht,{className:"task-board-skeleton"})]}):null,!c&&i.length===0&&(0,s.jsx)("p",{className:"task-board-column-empty",children:n.empty}),i.map(ps)]})]},e)};return(0,s.jsxs)(T,{component:"section",vertical:!0,gap:"middle",className:"task-board-native-page","aria-label":"\u4EFB\u52A1\u7BA1\u7406","data-view":U,"data-detail":!!S,children:[(0,s.jsxs)(T,{component:"header",wrap:!0,align:"center",justify:"space-between",gap:"small",className:"task-board-workspace-header",children:[(0,s.jsxs)(T,{align:"center",gap:"small",className:"task-board-kicker",children:[l?(0,s.jsx)(ne,{className:"task-board-icon-button","aria-label":u?"\u5173\u95ED\u4EFB\u52A1\u5217\u8868":"\u6253\u5F00\u4EFB\u52A1",onClick:l,children:(0,s.jsx)(un,{open:u,size:16})}):null,S?null:(0,s.jsx)(ne,{className:"task-board-icon-button","aria-label":"\u8FD4\u56DE\u5DE5\u4F5C\u533A",title:"\u8FD4\u56DE\u5DE5\u4F5C\u533A",onClick:()=>r?r():Ha.close(),children:(0,s.jsx)(D,{name:"chevronLeft"})}),(0,s.jsx)("div",{className:"task-board-heading-copy",children:S?(0,s.jsx)(fs,{variant:"title",ariaLabel:"\u4EFB\u52A1\u770B\u677F\u5BFC\u822A",items:[{label:"\u4EFB\u52A1\u770B\u677F",onNavigate:()=>de("")},{label:S.identifier}]}):(0,s.jsx)(s.Fragment,{children:(0,s.jsx)("h1",{children:"\u4EFB\u52A1\u770B\u677F"})})})]}),(0,s.jsx)(T,{wrap:!0,gap:"small",className:"task-board-header-actions",children:!S&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(ne,{disabled:c,onClick:()=>{B()},"aria-label":"\u5237\u65B0\u4EFB\u52A1",title:"\u5237\u65B0\u4EFB\u52A1",children:(0,s.jsx)(D,{name:"refresh"})}),(0,s.jsxs)(x,{className:"task-board-create-button",kind:"primary",size:"medium","aria-label":"\u65B0\u5EFA\u4EFB\u52A1",title:"\u65B0\u5EFA\u4EFB\u52A1 (C)",onClick:()=>Ue("todo"),children:[(0,s.jsx)(D,{name:"plus",slot:"start"}),(0,s.jsx)("span",{children:"\u65B0\u5EFA\u4EFB\u52A1"})]})]})})]}),!S&&(0,s.jsxs)(T,{wrap:!0,align:"center",justify:"space-between",gap:"small",className:"task-board-toolbar",children:[!S&&(0,s.jsx)(Oa,{className:"task-board-view-tabs",ariaLabel:"\u770B\u677F\u89C6\u56FE",value:U,onValueChange:e=>Ra(e),tabs:za.map(e=>({value:e.value,label:e.label}))}),(0,s.jsxs)(T,{wrap:!0,align:"center",gap:"small",className:"task-board-toolbar-controls",children:[(0,s.jsx)(ys,{inputRef:La,className:"task-board-search",label:"\u641C\u7D22\u4EFB\u52A1",placeholder:"\u641C\u7D22\u6807\u9898\u3001\u7F16\u53F7\u6216\u6B63\u6587",value:H,onValueChange:Oe}),(0,s.jsx)(Y,{className:"task-board-workspace-filter",value:W||"__all__",options:[{value:"__all__",label:"\u6240\u6709\u76EE\u5F55"},...E.map(e=>({value:e.id,label:e.name}))],ariaLabel:"\u7B5B\u9009\u5DE5\u4F5C\u76EE\u5F55",searchable:!0,searchPlaceholder:"\u641C\u7D22\u76EE\u5F55",onValueChange:e=>sa(e==="__all__"?"":e)}),(0,s.jsx)(Y,{className:"task-board-sort",ariaLabel:"\u4EFB\u52A1\u6392\u5E8F",value:Ce,options:Zt,onValueChange:e=>at(e)}),(U==="board"||U==="list"||U==="gantt")&&(0,s.jsx)(Pn,{tasks:f,filters:$,onChange:Te}),U==="board"&&(0,s.jsx)(Fn,{display:ke,onChange:lr})]})]}),!S&&(0,s.jsxs)(T,{wrap:!0,align:"center",justify:"space-between",gap:"small",className:"task-board-result-summary",role:"status",children:[(0,s.jsxs)("span",{children:[c?"\u6B63\u5728\u540C\u6B65\u4EFB\u52A1\u2026":`\u6D3B\u52A8 ${$a} \xB7 \u5F52\u6863 ${Ee}`,H||dt||W?" \xB7 \u5DF2\u7B5B\u9009":""]}),(0,s.jsxs)(T,{wrap:!0,gap:4,className:"task-board-active-filters",children:[$.statuses.map(e=>(0,s.jsxs)(x,{kind:"ghost",size:"small","aria-label":`\u79FB\u9664\u72B6\u6001\u7B5B\u9009 ${Ut(e).label}`,onClick:()=>Te({...$,statuses:$.statuses.filter(n=>n!==e)}),children:[e==="archived"?"\u5F52\u6863\u4EFB\u52A1":Ut(e).label,(0,s.jsx)(D,{name:"close",size:12})]},e)),$.priorities.map(e=>(0,s.jsxs)(x,{kind:"ghost",size:"small","aria-label":`\u79FB\u9664\u4F18\u5148\u7EA7\u7B5B\u9009 ${e}`,onClick:()=>Te({...$,priorities:$.priorities.filter(n=>n!==e)}),children:[ve.find(n=>n.value===e)?.label,(0,s.jsx)(D,{name:"close",size:12})]},e)),$.labels.map(e=>(0,s.jsxs)(x,{kind:"ghost",size:"small","aria-label":`\u79FB\u9664\u6807\u7B7E\u7B5B\u9009 ${e}`,onClick:()=>Te({...$,labels:$.labels.filter(n=>n!==e)}),children:[e,(0,s.jsx)(D,{name:"close",size:12})]},e))]}),(H||dt||W)&&(0,s.jsx)(x,{kind:"ghost",size:"small",onClick:()=>{Oe(""),Te(Fe),sa(""),La.current?.focus()},children:"\u6E05\u9664\u7B5B\u9009"})]}),!S&&!c&&$a===0&&Ee>0&&!Pa&&(0,s.jsx)(We,{type:"info",showIcon:!0,title:"\u5F53\u524D\u6CA1\u6709\u6D3B\u52A8\u4EFB\u52A1",description:`\u6709 ${Ee} \u4E2A\u5F52\u6863\u4EFB\u52A1\u3002\u5C55\u5F00\u5F52\u6863\u53EF\u67E5\u770B\u5386\u53F2\uFF0C\u5F52\u6863\u4E0D\u4F1A\u542F\u52A8\u6216\u505C\u6B62\u6267\u884C\u3002`,action:(0,s.jsx)(x,{kind:"ghost",size:"small",onClick:()=>pa(e=>({...e,archived:!1})),children:"\u5C55\u5F00\u5F52\u6863"})}),ee&&(0,s.jsx)(We,{type:"error",role:"alert",showIcon:!0,title:ee,action:(0,s.jsx)(x,{kind:"ghost",size:"small",disabled:c,onClick:()=>{B()},children:"\u91CD\u65B0\u52A0\u8F7D"})}),S?(0,s.jsx)(Nr,{task:S,busy:Tr,catalog:N,agent:us,providerOptions:g,teams:q,teamId:ye,employees:J,employeeId:me,teamRunRefresh:nr,onTeamChange:ca,onEmployeeChange:ua,workspaceOptions:cs,parent:f.find(e=>e.id===S.parentTaskId)??null,children:kr,parentOptions:Tt(f,S.workspaceId,S.id,S.parentTaskId),onOpenTask:de,onCreateChild:()=>Ue("doing",S),onAgentChange:(e,n)=>{da.current=S.id,ra(e),fe(e,n??{type:"cli",id:e.provider})},onPatch:e=>{ur(S.id,e)},composeRequest:or,onDispatch:e=>{let n=q?.find(i=>i.id===ye);n?mr(S,n,e):me?gr(S,me,e):pr(S,us,e)},onRemove:()=>{ns(S)},onOpenSession:a}):!c&&ot.length===0?(0,s.jsxs)("div",{className:"task-board-no-results",role:"status",children:[(0,s.jsx)(D,{name:Ke.kind==="filtered"?"search":"board",size:24}),(0,s.jsx)("h2",{children:Ke.title}),(0,s.jsx)("p",{children:Ke.description}),(0,s.jsx)(x,{kind:Ke.kind==="filtered"?"secondary":"primary",onClick:()=>{Ke.kind==="filtered"?(Oe(""),Te(Fe),sa(""),La.current?.focus()):Ue("todo")},children:Ke.kind==="filtered"?"\u6E05\u9664\u7B5B\u9009":"\u65B0\u5EFA\u4EFB\u52A1"})]}):U==="dashboard"?(0,s.jsx)(On,{projectName:vr,tasks:rs,onOpen:de,onOpenSession:a}):U==="list"?(0,s.jsx)(_n,{grouped:Fa,allTasks:f,collapsed:Qt,archiveOpen:Pa,archiveCount:Ee,onToggle:e=>pa(n=>({...n,[e]:!n[e]})),onToggleArchive:()=>pa(e=>({...e,archived:!e.archived})),onPurgeArchive:()=>{ds()},archivePurging:is,onOpen:de,onOpenSession:a}):U==="gantt"?(0,s.jsx)(jn,{grouped:Fa,zoom:tt,hideCompleted:Sa,onZoom:st,onHideCompleted:I,onOpen:de}):(0,s.jsxs)(T,{vertical:!0,gap:"middle",className:K("task-board-layout",lt.length>0&&"has-other-tasks"),children:[(0,s.jsx)("div",{className:"task-board-scroll",tabIndex:0,"aria-label":"\u4EFB\u52A1\u72B6\u6001\u5217",children:(0,s.jsx)(T,{gap:"middle",align:"stretch",className:"task-board-board",style:{minWidth:Math.max(it.length,1)*280,"--task-board-columns":Math.max(it.length,1)},children:it.map(e=>ms(e.status))})}),lt.length>0&&(0,s.jsx)(T,{component:"aside",wrap:!0,gap:"middle",className:"task-board-other","aria-label":"\u5176\u4ED6\u4EFB\u52A1",children:lt.map(e=>ms(e.status))}),Ee>0||Ae?(0,s.jsxs)(ae,{size:"small",styles:{body:{padding:12}},style:{borderColor:Ea?"var(--accent)":void 0},className:K("task-board-archive-zone",Ae&&"is-dragging-task",Ea&&"is-over"),"aria-label":"\u5F52\u6863\u533A",onDragOver:e=>{if(!wa(e.dataTransfer))return;let n=f.find(i=>i.id===e.dataTransfer.getData(aa))??f.find(i=>i.id===Ae);!n||!$e(n)||(e.preventDefault(),e.stopPropagation(),e.dataTransfer.dropEffect="move",Wa(!0))},onDragLeave:e=>{e.currentTarget.contains(e.relatedTarget)||Wa(!1)},onDrop:e=>{if(!wa(e.dataTransfer))return;e.preventDefault(),e.stopPropagation(),Wa(!1),Aa(""),Ze("");let n=e.dataTransfer.getData(aa);n&&br(n)},children:[(0,s.jsx)(jt,{count:Ee,open:Pa,onPurge:()=>{ds()},purging:is,onToggle:()=>pa(e=>({...e,archived:!e.archived})),children:(0,s.jsx)("div",{className:"task-board-archive-cards",children:Fa.archived.map(ps)})}),Ae?(0,s.jsx)(We,{className:"task-board-archive-hint",type:Ea?"info":"warning",showIcon:!0,title:Ea?"\u677E\u5F00\u9F20\u6807\uFF0C\u5F52\u6863\u6B64\u4EFB\u52A1":"\u62D6\u5230\u8FD9\u91CC\u5F52\u6863\uFF1A\u4FA7\u680F\u9690\u85CF\uFF0C\u7EC8\u7AEF\u4E0E\u8BB0\u5F55\u4FDD\u7559"}):null]}):null]}),we&&ma&&(0,s.jsx)(zn,{x:ma.x,y:ma.y,task:we,onOpen:()=>{de(we.id),ge(null)},onCopy:()=>{navigator.clipboard?.writeText(we.identifier),ge(null)},onDispatch:()=>{de(we.id),ir({id:we.id,nonce:Date.now()}),ge(null)},onArchive:()=>{ns(we),ge(null)},onRestore:()=>{hr(we.id),ge(null)},onClose:()=>ge(null)}),(0,s.jsx)(hs,{open:xe,title:"\u65B0\u5EFA\u4EFB\u52A1",className:K("wand-ui-dialog-content","wand-task-library-dialog task-board-create-library-dialog",rt&&"is-expanded"),description:be?"\u63CF\u8FF0\u8981\u5B8C\u6210\u7684\u5DE5\u4F5C\uFF0C\u521B\u5EFA\u540E\u4EA4\u7ED9\u6240\u9009\u5DE5\u5177\u6267\u884C\u3002":"\u5148\u8BB0\u5F55\u8981\u505A\u7684\u4E8B\uFF0C\u51C6\u5907\u597D\u540E\u518D\u4ECE\u4EFB\u52A1\u8BE6\u60C5\u542F\u52A8\u6267\u884C\u3002",closeLabel:"\u5173\u95ED\u65B0\u5EFA\u4EFB\u52A1",dismissable:v!=="__create__",closeContent:(0,s.jsx)(D,{name:"close",size:14,strokeWidth:1.8}),onOpenChange:e=>{e||Ma()},children:(0,s.jsxs)(bn,{noValidate:!0,"aria-busy":v==="__create__",className:"task-board-create-form task-board-native-composer",onSubmit:e=>{if(e.preventDefault(),Re){se.hasPlan?se.startNow(p.workspaceId,p.description).then(n=>{if(n){ct(!1),se.resetResults(),Ma();let i=n.run?.chatSessionId;i?a?.(i):Z(`\u5DF2\u5F00\u5DE5\uFF08\u4EFB\u52A1 ${n.taskId}\uFF09\uFF0C\u53EF\u5728\u4EFB\u52A1\u8BE6\u60C5\u91CC\u67E5\u770B\u56E2\u961F\u8FD0\u884C\u3002`)}}):se.planNow(p.description);return}cr()},children:[(0,s.jsxs)(T,{vertical:!0,gap:"small",className:"task-board-create-writing task-board-form-section",children:[(0,s.jsx)("h3",{className:"task-board-form-section-title",children:"\u4EFB\u52A1\u5185\u5BB9"}),(0,s.jsx)(gt.Item,{label:(0,s.jsxs)("span",{id:"task-board-create-title-label",children:["\u4EFB\u52A1\u6807\u9898 ",(0,s.jsx)(L.Text,{type:"secondary",children:"\u53EF\u9009"})]}),className:"task-board-create-title-field",children:(0,s.jsx)(Ia,{ref:Da,className:"resize-none task-board-create-title-input",rows:1,value:p.title,placeholder:"\u4E0D\u586B\u5199\u5219\u6309\u63CF\u8FF0\u81EA\u52A8\u751F\u6210","aria-labelledby":"task-board-create-title-label",maxLength:240,"data-wand-autofocus":"",onChange:e=>{let n=e.currentTarget.value.replace(/\n/g,"");O(i=>({...i,title:n}))}})}),(0,s.jsx)(z,{label:"\u4EFB\u52A1\u63CF\u8FF0",children:(0,s.jsx)(Ia,{className:"resize-none task-board-create-body-input",rows:4,value:p.description,placeholder:be?"\u6DFB\u52A0\u63CF\u8FF0\u2026\uFF08\u5C06\u4F5C\u4E3A\u7B2C\u4E00\u4E2A Agent \u7684\u6307\u6D3E\u5185\u5BB9\uFF09":"\u6DFB\u52A0\u63CF\u8FF0\u2026\uFF08\u53EA\u521B\u5EFA\u4EFB\u52A1\uFF0C\u4E0D\u6307\u6D3E Agent\uFF09","aria-label":be?"\u4EFB\u52A1\u63CF\u8FF0\uFF08\u4F5C\u4E3A\u7B2C\u4E00\u6B21\u6307\u6D3E\uFF09":"\u4EFB\u52A1\u63CF\u8FF0",onChange:e=>{let n=e.currentTarget.value;O(i=>({...i,description:n}))}})})]}),(0,s.jsxs)(T,{vertical:!0,gap:"middle",className:"task-board-create-meta",children:[(0,s.jsxs)("section",{className:"task-board-form-section",children:[(0,s.jsx)("h3",{className:"task-board-form-section-title",children:"\u5F52\u5C5E\u4E0E\u6392\u671F"}),(0,s.jsxs)(T,{wrap:!0,gap:"small",className:"task-board-create-properties","aria-label":"\u4EFB\u52A1\u5C5E\u6027",children:[(0,s.jsx)(z,{label:"\u9879\u76EE\u76EE\u5F55",children:(0,s.jsx)(Y,{value:xt(p.workspaceId),options:cs,ariaLabel:"\u6307\u5B9A\u9879\u76EE\u76EE\u5F55",placeholder:"\u9009\u62E9\u9879\u76EE\u76EE\u5F55",searchable:!0,searchPlaceholder:"\u641C\u7D22\u9879\u76EE",className:"task-board-native-select",onValueChange:e=>{let n=Nt(e)??"";O(i=>({...i,workspaceId:n,parentTaskId:f.some(y=>y.id===i.parentTaskId&&y.workspaceId===(n||null))?i.parentTaskId:""}))}})}),(0,s.jsx)(z,{label:"\u7236\u4EFB\u52A1",children:(0,s.jsx)(Y,{value:p.parentTaskId||ja,options:yr,ariaLabel:"\u5F52\u5C5E\u7236\u4EFB\u52A1",placeholder:"\u5F52\u5C5E\u7236\u4EFB\u52A1",searchable:!0,searchPlaceholder:"\u641C\u7D22\u6B63\u5728\u5904\u7406\u7684\u4EFB\u52A1",className:"task-board-native-select task-board-parent-select",onValueChange:e=>{let n=f.find(i=>i.id===e);O(i=>({...i,parentTaskId:n?.id??"",workspaceId:n?n.workspaceId??"":i.workspaceId,milestoneId:n?.milestoneId??i.milestoneId}))}})}),(0,s.jsx)(z,{label:"\u4EFB\u52A1\u72B6\u6001",children:(0,s.jsx)(Y,{value:p.status,options:re.map(e=>({value:e.status,label:e.label})),ariaLabel:"\u72B6\u6001",className:"task-board-native-select",onValueChange:e=>O(n=>({...n,status:e}))})}),(0,s.jsx)(z,{label:"\u4F18\u5148\u7EA7",children:(0,s.jsx)(Y,{value:p.priority,options:ve.map(e=>({value:e.value,label:e.label})),ariaLabel:"\u4F18\u5148\u7EA7",className:"task-board-native-select",onValueChange:e=>O(n=>({...n,priority:e}))})}),(0,s.jsx)(z,{label:"\u622A\u6B62\u65E5\u671F",children:(0,s.jsx)(Ft,{ariaLabel:"\u622A\u6B62\u65E5\u671F",value:p.dueDate,popupOwner:"task-board-create",onValueChange:e=>O(n=>({...n,dueDate:e}))})}),(0,s.jsx)(z,{label:"\u8FED\u4EE3",children:(0,s.jsx)(Lt,{value:p.milestoneId||null,workspaceId:p.workspaceId||null,onChange:e=>O(n=>({...n,milestoneId:e??""}))})}),(0,s.jsx)(z,{label:"\u6807\u7B7E",children:(0,s.jsx)(bt,{type:"text",value:p.labels,placeholder:"\u7528\u9017\u53F7\u5206\u9694",onChange:e=>{let n=e.currentTarget.value;O(i=>({...i,labels:n}))}})})]})]}),(0,s.jsxs)(ae,{size:"small",className:"task-board-create-assign task-board-form-section","aria-label":be?"\u7B2C\u4E00\u6B21\u6307\u6D3E":"Agent \u4E0E\u8FD0\u884C\u6A21\u5F0F",children:[(0,s.jsxs)(T,{vertical:!0,gap:4,className:"task-board-create-assign-copy",style:{marginBottom:12},children:[(0,s.jsx)("strong",{children:be?"\u7B2C\u4E00\u6B21\u6307\u6D3E":"Agent \u4E0E\u8FD0\u884C\u6A21\u5F0F"}),(0,s.jsx)("span",{children:Re?"\u4E0D\u6307\u6D3E\u5458\u5DE5\uFF1A\u672C\u673A\u51B3\u7B56\u6A21\u578B\u7ED9\u5EFA\u8BAE\u540D\u5355\uFF0C\u786E\u8BA4\u540E\u624D\u5F00\u5DE5":Ye?"\u6709\u63CF\u8FF0\u65F6\u4F1A\u7ACB\u523B\u4EA4\u7ED9\u56E2\u961F\uFF0C\u7531\u8D1F\u8D23\u4EBA\u62C6\u89E3\u5206\u6D3E":qe?"\u6709\u63CF\u8FF0\u65F6\u4F1A\u7ACB\u523B\u4EA4\u7ED9\u5458\u5DE5":be?"\u6709\u63CF\u8FF0\u65F6\u4F1A\u7ACB\u5373\u4EA4\u7ED9\u6240\u9009\u5DE5\u5177\uFF1B\u914D\u7F6E\u4EC5\u7528\u4E8E\u672C\u4EFB\u52A1":"\u53EA\u521B\u5EFA\u4EFB\u52A1\uFF0C\u4E0D\u6307\u6D3E Agent\uFF1B\u6267\u884C\u914D\u7F6E\u4FDD\u5B58\u5728\u672C\u4EFB\u52A1\u4E2D"})]}),(0,s.jsxs)(T,{wrap:!0,gap:"small",className:"task-board-create-assign-controls",children:[g?(0,s.jsx)(z,{label:"\u6267\u884C\u5BF9\u8C61",children:(0,s.jsx)(Y,{value:Re?Xs:qe?`employee:${qe.id}`:Ye?`team:${Ye.id}`:Ss(p.agent),options:be?Qs(g,q,J,{includeDispatch:!0}):g,ariaLabel:"\u4EFB\u52A1\u6267\u884C\u5BF9\u8C61",className:"task-board-native-select",onValueChange:e=>{if(en(e)){ca(""),ua(""),se.resetResults(),ct(!0),O(y=>({...y,agent:{...y.agent,kind:"structured"}}));return}ct(!1),se.resetResults();let n=an(e),i=tn(e);if(ca(n),ua(i),n||i){O(y=>({...y,agent:{...y.agent,kind:"structured"}}));return}O(y=>({...y,agent:Cs(y.agent,e,N)}))}})}):(0,s.jsx)("span",{role:"status",children:"\u6B63\u5728\u52A0\u8F7D\u5DE5\u5177\u5217\u8868\u2026"}),Ye||qe||Re?null:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(z,{label:"\u6A21\u578B",children:(0,s.jsx)(Y,{value:p.agent.model,options:$s(N,p.agent.provider),ariaLabel:"\u4EFB\u52A1\u6267\u884C\u6A21\u578B",searchable:!0,searchPlaceholder:"\u641C\u7D22\u6A21\u578B",className:"task-board-native-select",onValueChange:e=>O(n=>({...n,agent:{...n.agent,model:e}}))})}),(0,s.jsx)(z,{label:"\u601D\u8003\u6DF1\u5EA6",children:(0,s.jsx)(Y,{value:p.agent.thinkingEffort,options:Ps(p.agent.provider,N,p.agent.model,p.agent.thinkingEffort),ariaLabel:"\u4EFB\u52A1\u601D\u8003\u6DF1\u5EA6",className:"task-board-native-select",onValueChange:e=>O(n=>({...n,agent:{...n.agent,thinkingEffort:e}}))})}),(0,s.jsx)(z,{label:"\u8FD0\u884C\u6A21\u5F0F",children:(0,s.jsx)(Y,{value:p.agent.mode,options:xs(p.agent.provider),ariaLabel:"\u8FD0\u884C\u6A21\u5F0F",className:"task-board-native-select",onValueChange:e=>{O(n=>({...n,agent:{...n.agent,mode:e}}))}})})]})]}),!Ye&&!qe&&!Re&&p.agent.mode==="full-access"&&(0,s.jsx)(We,{type:"warning",showIcon:!0,className:"task-board-create-permission-note",title:"\u5B8C\u5168\u8BBF\u95EE\uFF08Full access\uFF09",description:"\u5DE5\u5177\u4F1A\u81EA\u52A8\u786E\u8BA4\u6743\u9650\u8BF7\u6C42\u3002\u521B\u5EFA\u524D\u8BF7\u786E\u8BA4\u6267\u884C\u5BF9\u8C61\u548C\u9879\u76EE\u76EE\u5F55\u3002"}),!Ye&&!qe&&!Re&&(0,s.jsxs)("div",{className:"task-board-defaults-choice",children:[(0,s.jsx)(ba,{checked:na,onCheckedChange:Kt,ariaLabel:"\u540C\u65F6\u8BBE\u4E3A\u4EE5\u540E\u9ED8\u8BA4",label:"\u540C\u65F6\u8BBE\u4E3A\u4EE5\u540E\u9ED8\u8BA4",disabled:v==="__create__"}),(0,s.jsx)(L.Text,{type:"secondary",children:"\u521B\u5EFA\u6210\u529F\u540E\u751F\u6548\uFF1B\u4E0D\u6539\u53D8\u5DF2\u6709\u4EFB\u52A1\u6216\u4F1A\u8BDD\u3002"})]}),Re?(0,s.jsx)("div",{className:"task-board-create-dispatch",children:(0,s.jsx)(mn,{flow:se,blockedReason:Dt({selection:se.selection,workspaceId:p.workspaceId,note:p.description,busy:se.busy})})}):null]})]}),ee&&(0,s.jsx)(We,{type:"error",role:"alert",showIcon:!0,title:ee}),(0,s.jsxs)(T,{wrap:!0,gap:"small",align:"center",justify:"space-between",className:"task-board-create-footer",style:{marginTop:16},children:[(0,s.jsx)(ba,{checked:nt,onCheckedChange:er,ariaLabel:"\u521B\u5EFA\u66F4\u591A",label:"\u521B\u5EFA\u66F4\u591A"}),(0,s.jsx)(ne,{className:"task-board-icon-button","aria-label":rt?"\u6536\u8D77\u7F16\u8F91\u5668":"\u5C55\u5F00\u7F16\u8F91\u5668",onClick:()=>Yt(e=>!e),children:(0,s.jsx)(D,{name:rt?"chevron":"up"})}),Re?(0,s.jsx)("div",{className:"task-board-create-submit-slot",children:(0,s.jsx)(gn,{flow:se,canPlan:p.description.trim().length>0,blockedReason:Dt({selection:se.selection,workspaceId:p.workspaceId,note:p.description,busy:se.busy})})}):(0,s.jsx)(x,{kind:"primary",type:"submit",className:"task-board-create-submit",disabled:!p.title.trim()&&!p.description.trim()||v==="__create__",children:v==="__create__"?"\u6B63\u5728\u4FDD\u5B58\u2026":be&&p.description.trim()?"\u521B\u5EFA\u5E76\u6307\u6D3E":"\u521B\u5EFA\u4EFB\u52A1"})]})]})})]})}function Nr({task:a,busy:r,catalog:l,agent:u,providerOptions:o,teams:m,teamId:g,employees:R,employeeId:f,teamRunRefresh:h,onTeamChange:E,onEmployeeChange:F,workspaceOptions:N,parent:b,children:c,parentOptions:V,onOpenTask:v,onCreateChild:G,onAgentChange:ie,onPatch:P,onDispatch:ee,onRemove:le,onOpenSession:_e,composeRequest:Z}){let[H,Oe]=d.useState(a.title),[U,Ra]=d.useState(a.labels.join(", ")),Ce=a.sessions.length>0,[at,ke]=d.useState(!Ce),[je,$]=d.useState(""),Te=va([a]),tt=a.labels.join("\0"),st=d.useMemo(()=>{let I=[...N];return a.workspaceId&&a.workspace&&!I.some(W=>W.value===a.workspaceId)&&I.splice(1,0,{value:a.workspace.id,label:`${a.workspace.name} \xB7 ${a.workspace.cwd}`}),I},[a.workspace,a.workspaceId,N]);d.useEffect(()=>{Oe(a.title),Ra(a.labels.join(", "))},[a.id,a.title,tt]);let Sa=a.sessions.length;return d.useEffect(()=>{let I=Sa>0;ke(!I),$("")},[a.id,Sa]),d.useEffect(()=>{Z?.id===a.id&&(ke(!0),$(""))},[Z,a.id]),(0,s.jsx)(T,{vertical:!0,gap:"middle",className:"task-board-detail","aria-label":"\u4EFB\u52A1\u8BE6\u60C5",children:(0,s.jsx)("div",{className:"task-board-detail-scroll",children:(0,s.jsxs)(T,{wrap:!0,gap:"middle",className:"task-board-detail-layout",children:[(0,s.jsxs)(T,{vertical:!0,gap:"middle",className:"task-board-detail-main",style:{flex:"2 1 380px",minWidth:0},children:[b&&(0,s.jsxs)(x,{kind:"ghost",className:"task-board-parent-link",type:"button",onClick:()=>v(b.id),children:["\u21B3 \u5F52\u5C5E ",b.identifier," \xB7 ",b.title]}),(0,s.jsx)(Ia,{className:"resize-none task-board-detail-title",rows:1,value:H,"aria-label":"\u4EFB\u52A1\u6807\u9898",disabled:r,onChange:I=>{let W=I.currentTarget.value.replace(/\n/g,"");Oe(W)},onBlur:()=>{!H.trim()||H.trim()===a.title||P({title:H.trim()})}}),(0,s.jsx)(Gn,{sessions:a.sessions,assigned:a.agent,catalog:l,onOpenSession:_e}),(c.length>0||a.status==="doing")&&(0,s.jsxs)("section",{className:"task-board-children","aria-label":"\u5B50\u4EFB\u52A1",children:[(0,s.jsxs)("div",{className:"task-board-children-head",children:[(0,s.jsxs)("strong",{children:["\u5B50\u4EFB\u52A1 ",(0,s.jsx)("span",{children:c.length})]}),a.status==="doing"&&(0,s.jsxs)(x,{kind:"ghost",size:"small",onClick:G,children:[(0,s.jsx)(D,{name:"plus",size:14,slot:"start"}),"\u6D3E\u53D1\u5B50\u4EFB\u52A1"]})]}),c.map(I=>(0,s.jsxs)(x,{kind:"ghost",type:"button",className:"task-board-child-row",onClick:()=>v(I.id),children:[(0,s.jsx)(ta,{status:I.status}),(0,s.jsx)("span",{children:I.title}),(0,s.jsx)("small",{children:I.identifier})]},I.id))]}),at?(0,s.jsxs)(ae,{size:"small",className:"task-board-native-assign","aria-label":"\u6307\u6D3E Agent",children:[(0,s.jsxs)(T,{vertical:!0,gap:4,className:"task-board-native-assign-head",style:{marginBottom:12},children:[(0,s.jsx)("strong",{children:a.sessions.length>0?"\u518D\u6307\u6D3E\u4E00\u4E2A Agent":"\u6307\u6D3E Agent"}),(0,s.jsx)("small",{children:"\u5148\u8F93\u5165\u63D0\u793A\u8BCD\uFF0C\u518D\u9009\u5458\u5DE5\u3001\u56E2\u961F\u6216 CLI"})]}),(0,s.jsx)(Ia,{className:"resize-none task-board-detail-body",rows:5,value:je,placeholder:m?.some(I=>I.id===g)?"\u8F93\u5165\u8FD9\u6B21\u4EA4\u7ED9\u56E2\u961F\u7684\u63D0\u793A\u8BCD\u3002\u4EFB\u52A1\u5361\u91CC\u7684\u65E7\u63CF\u8FF0\u4E0D\u4F1A\u81EA\u52A8\u5E26\u4E0A\u3002":R.some(I=>I.id===f)?"\u8F93\u5165\u8FD9\u6B21\u4EA4\u7ED9\u5458\u5DE5\u7684\u4EFB\u52A1\u3002\u4EFB\u52A1\u5361\u91CC\u7684\u65E7\u63CF\u8FF0\u4E0D\u4F1A\u81EA\u52A8\u5E26\u4E0A\u3002":"\u8F93\u5165\u8FD9\u6B21\u6D3E\u7ED9 Agent \u7684\u63D0\u793A\u8BCD\u2026","aria-label":"\u6D3E\u53D1\u63D0\u793A\u8BCD",disabled:r,onChange:I=>{let W=I.currentTarget.value;$(W)}}),(0,s.jsx)(T,{wrap:!0,gap:"middle",className:"task-board-native-editor-grid is-assign",style:{marginTop:12},children:(0,s.jsx)(nn,{agent:u,catalog:l,providerOptions:o,disabled:r,ariaPrefix:"\u4EFB\u52A1",teams:m,teamId:g,employees:R,employeeId:f,onTeamChange:E,onEmployeeChange:F,onChange:ie})}),(0,s.jsxs)("div",{className:"task-board-native-editor-actions",children:[a.sessions.length>0?(0,s.jsx)(x,{kind:"ghost",size:"small",disabled:r,onClick:()=>ke(!1),children:"\u53D6\u6D88"}):null,(0,s.jsxs)(x,{kind:"primary",size:"small",className:"task-board-native-dispatch",disabled:r||!je.trim(),onClick:()=>ee(je),children:[(0,s.jsx)(D,{name:"spark",size:14}),r?"\u6B63\u5728\u6D3E\u53D1\u2026":m?.some(I=>I.id===g)?"\u4EA4\u7ED9\u56E2\u961F":f?"\u4EA4\u7ED9\u5458\u5DE5":"\u6D3E\u53D1 CLI"]})]})]}):(0,s.jsx)(x,{kind:"ghost",type:"button",className:"task-board-agent-add","aria-label":"\u518D\u6307\u6D3E\u4E00\u4E2A Agent",disabled:r,onClick:()=>{$(""),ke(!0)},children:(0,s.jsx)(D,{name:"plus",size:16})}),(0,s.jsx)(fn,{taskId:a.id,refreshKey:h,onOpenSession:_e})]}),(0,s.jsx)(ae,{size:"small",title:"\u5C5E\u6027",className:"task-board-detail-properties","aria-label":"\u5C5E\u6027",style:{flex:"1 1 260px",minWidth:0},children:(0,s.jsxs)(gt,{component:!1,layout:"vertical",children:[(0,s.jsx)(z,{label:"\u72B6\u6001",children:(0,s.jsx)(Y,{value:a.status,options:[...re,ha].map(I=>({value:I.status,label:I.label})),ariaLabel:"\u4EFB\u52A1\u72B6\u6001",className:"task-board-native-select",disabled:r,onValueChange:I=>P({status:I})})}),(0,s.jsx)(z,{label:"\u4F18\u5148\u7EA7",children:(0,s.jsx)(Y,{value:a.priority,options:ve.map(I=>({value:I.value,label:I.label})),ariaLabel:"\u4EFB\u52A1\u4F18\u5148\u7EA7",className:"task-board-native-select",disabled:r,onValueChange:I=>P({priority:I})})}),(0,s.jsx)(z,{label:"\u9879\u76EE\u76EE\u5F55",children:(0,s.jsx)(Y,{value:xt(a.workspaceId),options:st,ariaLabel:"\u4EFB\u52A1\u9879\u76EE",placeholder:"\u9009\u62E9\u9879\u76EE\u76EE\u5F55",searchable:!0,searchPlaceholder:"\u641C\u7D22\u9879\u76EE",className:"task-board-native-select",disabled:r,onValueChange:I=>{let W=Nt(I);P({workspaceId:W,...a.parentTaskId&&a.workspaceId!==W?{parentTaskId:null}:{}})}})}),(0,s.jsx)(z,{label:"\u5F52\u5C5E\u7236\u4EFB\u52A1",children:(0,s.jsx)(Y,{value:a.parentTaskId||ja,options:V,ariaLabel:"\u5F52\u5C5E\u7236\u4EFB\u52A1",placeholder:"\u5F52\u5C5E\u7236\u4EFB\u52A1",searchable:!0,searchPlaceholder:"\u641C\u7D22\u6B63\u5728\u5904\u7406\u7684\u4EFB\u52A1",className:"task-board-native-select task-board-parent-select",disabled:r,onValueChange:I=>P({parentTaskId:I===ja?null:I})})}),(0,s.jsx)(z,{label:"\u91CC\u7A0B\u7891",children:(0,s.jsx)(Lt,{value:a.milestoneId,workspaceId:a.workspaceId,disabled:r,onChange:I=>P({milestoneId:I})})}),(0,s.jsx)(z,{label:"\u622A\u6B62\u65E5\u671F",children:(0,s.jsx)(Ft,{ariaLabel:"\u4EFB\u52A1\u622A\u6B62\u65E5\u671F",className:"task-board-detail-date",value:a.dueDate??"",disabled:r,onValueChange:I=>P({dueDate:I||null})})}),(0,s.jsxs)(z,{label:"\u6807\u7B7E",children:[(0,s.jsx)(bt,{type:"text",className:"task-board-detail-date",value:U,placeholder:"\u7528\u9017\u53F7\u5206\u9694",disabled:r,onChange:I=>{let W=I.currentTarget.value;Ra(W)},onBlur:()=>{let I=U.split(/[,,]/).map(W=>W.trim()).filter(Boolean);I.join("\0")!==a.labels.join("\0")&&P({labels:I})}}),Te.length>0&&(0,s.jsx)("div",{className:"task-board-card-meta",children:a.labels.map(I=>(0,s.jsx)(Se,{label:I},I))})]}),(0,s.jsx)("div",{className:"task-board-native-editor-actions",children:$e(a)&&(0,s.jsx)(x,{size:"small",className:"task-board-native-remove",disabled:r,onClick:le,children:"\u5F52\u6863"})})]})})]})})})}export{Xo as TaskBoardHost};
@@ -1 +0,0 @@
1
- import{a as F1,e as O}from"./chunk-I3UYDQLS.js";import{b as R1}from"./chunk-NP35GDQ3.js";import{shared36_a as _,shared36_b as Q,shared36_c as Y,shared36_d as z1,shared36_e as Z,shared36_f as e1,shared36_g as N1,shared36_h as w}from"./runtime.js";import{shared32_e as k1}from"./runtime.js";import"./chunk-XGVT4ZWT.js";import "./runtime.js";import{shared85_a as f1}from"./runtime.js";import "./runtime.js";import"./chunk-YX475LXO.js";import "./runtime.js";import "./runtime.js";import{shared37_h as u1,shared37_i as J}from"./runtime.js";import "./runtime.js";import "./runtime.js";import "./runtime.js";import "./runtime.js";import "./runtime.js";import "./runtime.js";import "./runtime.js";import{shared19_j as U}from"./runtime.js";import "./runtime.js";import "./runtime.js";import "./runtime.js";import "./runtime.js";import "./runtime.js";import "./runtime.js";import "./runtime.js";import "./runtime.js";import "./runtime.js";import "./runtime.js";import{shared58_a as m1}from"./runtime.js";import{shared7_Ab as d1,shared7_B as N,shared7_D as a1,shared7_Ed as X,shared7_Fd as q,shared7_M as y,shared7_Qa as o1,shared7_Sc as p1,shared7_T as r1,shared7_V as c1,shared7_Za as s1,shared7_ld as h1,shared7_oa as x,shared7_sa as n1,shared7_ub as G,shared7_wb as l1,shared7_zb as i1,shared7_zd as E1}from"./runtime.js";import{shared8_a as z}from"./runtime.js";import{shared9_c as A}from"./runtime.js";var o=A(z());var t=A(z()),x1=()=>t.createElement("svg",{width:"252",height:"294"},t.createElement("title",null,"No Found"),t.createElement("g",{fill:"none",fillRule:"evenodd"},t.createElement("circle",{cx:"126.75",cy:"128.1",r:"126",fill:"#E4EBF7"}),t.createElement("circle",{cx:"31.55",cy:"130.8",r:"8.3",fill:"#FFF"}),t.createElement("path",{stroke:"#FFF",d:"m37 134.3 10.5 6m.9 6.2-12.7 10.8",strokeWidth:"2"}),t.createElement("path",{fill:"#FFF",d:"M39.9 159.4a5.7 5.7 0 1 1-11.3-1.2 5.7 5.7 0 0 1 11.3 1.2m17.7-16.2a5.7 5.7 0 1 1-11.4-1.1 5.7 5.7 0 0 1 11.4 1.1M99 27h29.8a4.6 4.6 0 1 0 0-9.2H99a4.6 4.6 0 1 0 0 9.2m11.4 18.3h29.8a4.6 4.6 0 0 0 0-9.2h-29.8a4.6 4.6 0 1 0 0 9.2"}),t.createElement("path",{fill:"#FFF",d:"M112.8 26.9h15.8a4.6 4.6 0 1 0 0 9.1h-15.8a4.6 4.6 0 0 0 0-9.1m71.7 108.8a10 10 0 1 1-19.8-2 10 10 0 0 1 19.8 2"}),t.createElement("path",{stroke:"#FFF",d:"m179.3 141.8 12.6 7.1m1.1 7.6-15.2 13",strokeWidth:"2"}),t.createElement("path",{fill:"#FFF",d:"M184.7 170a6.8 6.8 0 1 1-13.6-1.3 6.8 6.8 0 0 1 13.6 1.4m18.6-16.8a6.9 6.9 0 1 1-13.7-1.4 6.9 6.9 0 0 1 13.7 1.4"}),t.createElement("path",{stroke:"#FFF",d:"M152 192.3a2.2 2.2 0 1 1-4.5 0 2.2 2.2 0 0 1 4.4 0zm73.3-76.2a2.2 2.2 0 1 1-4.5 0 2.2 2.2 0 0 1 4.5 0zm-9 35a2.2 2.2 0 1 1-4.4 0 2.2 2.2 0 0 1 4.5 0zM177 107.6a2.2 2.2 0 1 1-4.4 0 2.2 2.2 0 0 1 4.4 0zm18.4-15.4a2.2 2.2 0 1 1-4.5 0 2.2 2.2 0 0 1 4.5 0zm6.8 88.5a2.2 2.2 0 1 1-4.5 0 2.2 2.2 0 0 1 4.5 0z",strokeWidth:"2"}),t.createElement("path",{stroke:"#FFF",d:"m214.4 153.3-2 20.2-10.8 6m-28-4.7-6.3 9.8H156l-4.5 6.5m23.5-66v-15.7m46 7.8-13 8-15.2-8V94.4",strokeWidth:"2"}),t.createElement("path",{fill:"#FFF",d:"M166.6 66h-4a4.8 4.8 0 0 1-4.7-4.8 4.8 4.8 0 0 1 4.7-4.7h4a4.8 4.8 0 0 1 4.7 4.7 4.8 4.8 0 0 1-4.7 4.7"}),t.createElement("circle",{cx:"204.3",cy:"30",r:"29.5",fill:"#1677ff"}),t.createElement("path",{fill:"#FFF",d:"M206 38.4c.5.5.7 1.1.7 2s-.2 1.4-.7 1.9a3 3 0 0 1-2 .7c-.8 0-1.5-.3-2-.8s-.8-1.1-.8-1.9.3-1.4.8-2c.5-.4 1.2-.7 2-.7.7 0 1.4.3 2 .8m4.2-19.5c1.5 1.3 2.2 3 2.2 5.2a7.2 7.2 0 0 1-1.5 4.5l-3 2.7a5 5 0 0 0-1.3 1.7 5.2 5.2 0 0 0-.6 2.4v.5h-4v-.5c0-1.4.1-2.5.6-3.5s1.9-2.5 4.2-4.5l.4-.5a4 4 0 0 0 1-2.6c0-1.2-.4-2-1-2.8-.7-.6-1.6-1-2.9-1-1.5 0-2.6.5-3.3 1.5-.4.5-.6 1-.8 1.9a2 2 0 0 1-2 1.6 2 2 0 0 1-2-2.4c.4-1.6 1-2.8 2.1-3.8a8.5 8.5 0 0 1 6.3-2.3c2.3 0 4.2.6 5.6 2"}),t.createElement("path",{fill:"#FFB594",d:"M52 76.1s21.8 5.4 27.3 16c5.6 10.7-6.3 9.2-15.7 5C52.8 92 39 85 52 76"}),t.createElement("path",{fill:"#FFC6A0",d:"m90.5 67.5-.5 2.9c-.7.5-4.7-2.7-4.7-2.7l-1.7.8-1.3-5.7s6.8-4.6 9-5c2.4-.5 9.8 1 10.6 2.3 0 0 1.3.4-2.2.6-3.6.3-5 .5-6.8 3.2l-2.4 3.6"}),t.createElement("path",{fill:"#FFF",d:"M128 111.4a36.7 36.7 0 0 0-8.9-15.5c-3.5-3-9.3-2.2-11.3-4.2-1.3-1.2-3.2-1.2-3.2-1.2L87.7 87c-2.3-.4-2.1-.7-6-1.4-1.6-1.9-3-1.1-3-1.1l-7-1.4c-1-1.5-2.5-1-2.5-1l-2.4-.9C65 91.2 59 95 59 95c1.8 1.1 15.7 8.3 15.7 8.3l5.1 37.1s-3.3 5.7 1.4 9.1c0 0 19.9-3.7 34.9-.3 0 0 3-2.6 1-8.8.5-3 1.4-8.3 1.7-11.6.4.7 2 1.9 3.1 3.4 0 0 9.4-7.3 11-14a17 17 0 0 1-2.2-2.4c-.5-.8-.3-2-.7-2.8-.7-1-1.8-1.3-2-1.6"}),t.createElement("path",{fill:"#CBD1D1",d:"M101 290s4.4 2 7.4 1c2.9-1 4.6.7 7.1 1.2 2.6.5 6.9 1.1 11.7-1.3 0-5.5-6.9-4-12-6.7-2.5-1.4-3.7-4.7-3.5-8.8h-9.5s-1.2 10.6-1 14.6"}),t.createElement("path",{fill:"#2B0849",d:"M101 289.8s2.5 1.3 6.8.7c3-.5 3.7.5 7.4 1 3.8.6 10.8 0 11.9-.9.4 1.1-.4 2-.4 2s-1.5.7-4.8.9c-2 .1-5.8.3-7.6-.5-1.8-1.4-5.2-1.9-5.7-.2-4 1-7.4-.3-7.4-.3l-.1-2.7z"}),t.createElement("path",{fill:"#A4AABA",d:"M108.3 276h3.1s0 6.7 4.6 8.6c-4.7.6-8.6-2.3-7.7-8.6"}),t.createElement("path",{fill:"#CBD1D1",d:"M57.5 272.4s-2 7.4-4.4 12.3c-1.8 3.7-4.3 7.5 5.4 7.5 6.7 0 9-.5 7.4-6.6-1.5-6.1.3-13.2.3-13.2h-8.7z"}),t.createElement("path",{fill:"#2B0849",d:"M51.5 289.8s2 1.2 6.6 1.2c6 0 8.3-1.7 8.3-1.7s.6 1.1-.7 2.2c-1 .8-3.6 1.6-7.4 1.5-4.1 0-5.8-.5-6.7-1.1-.8-.6-.7-1.6-.1-2.1"}),t.createElement("path",{fill:"#A4AABA",d:"M58.4 274.3s0 1.5-.3 3c-.3 1.4-1 3-1.1 4 0 1.2 4.5 1.7 5.1.1.6-1.5 1.3-6.4 2-7.2.6-.9-5-2.2-5.7.1"}),t.createElement("path",{fill:"#7BB2F9",d:"m99.7 278.5 13.3.1s1.3-54.5 1.9-64.4c.5-9.9 3.8-43.4 1-63.1l-12.6-.7-22.8.8-1.2 10c0 .5-.7.8-.7 1.4-.1.5.4 1.3.3 2-2.4 14-6.4 33-8.8 46.6 0 .7-1.2 1-1.4 2.7 0 .3.2 1.5 0 1.8-6.8 18.7-10.9 47.8-14.2 61.9h14.6s2.2-8.6 4-17c2.9-12.9 23.2-85 23.2-85l3-.5 1 46.3s-.2 1.2.4 2c.5.8-.6 1.1-.4 2.3l.4 1.8-1 11.8c-.4 4.8 0 39.2 0 39.2"}),t.createElement("path",{stroke:"#648BD8",d:"M76 221.6c1.2.1 4.1-2 7-5m23.4 8.5s2.7-1 6-3.8",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),t.createElement("path",{stroke:"#648BD8",d:"M107.3 222.1s2.7-1.1 6-3.9",strokeLinecap:"round",strokeLinejoin:"round"}),t.createElement("path",{stroke:"#648BD8",d:"M74.7 224.8s2.7-.6 6.5-3.4m4.8-69.8c-.2 3.1.3 8.6-4.3 9.2m22-11s0 14-1.4 15.1a15 15 0 0 1-3 2m.5-16.5s0 13-1.2 24.4m-5 1.1s7.3-1.7 9.5-1.7M74.3 206a212 212 0 0 1-1 4.5s-1.4 1.9-1 3.8c.5 2-1 2-5 15.4A353 353 0 0 0 61 257l-.2 1.2m14.9-60.5a321 321 0 0 1-.9 4.8m7.8-50.4-1.2 10.5s-1.1.1-.5 2.2c.1 1.4-2.7 15.8-5.2 30.5m-19.6 79h13.3",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),t.createElement("path",{fill:"#192064",d:"M116.2 148.2s-17-3-35.9.2c.2 2.5 0 4.2 0 4.2s14.7-2.8 35.7-.3c.3-2.4.2-4 .2-4"}),t.createElement("path",{fill:"#FFF",d:"M106.3 151.2v-5a.8.8 0 0 0-.8-.8h-7.8a.8.8 0 0 0-.8.8v5a.8.8 0 0 0 .8.8h7.8a.8.8 0 0 0 .8-.8"}),t.createElement("path",{fill:"#192064",d:"M105.2 150.2v-3a.6.6 0 0 0-.6-.7 94.3 94.3 0 0 0-5.9 0 .7.7 0 0 0-.6.6v3.1a.6.6 0 0 0 .6.7 121.1 121.1 0 0 1 5.8 0c.4 0 .7-.3.7-.7"}),t.createElement("path",{stroke:"#648BD8",d:"M100.3 275.4h12.3m-11.2-4.9.1 6.5m0-12.5a915.8 915.8 0 0 0 0 4.4m-.5-94 .9 44.7s.7 1.6-.2 2.7c-1 1.1 2.4.7.9 2.2-1.6 1.6.9 1.2 0 3.4-.6 1.5-1 21.1-1.1 35.2",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),t.createElement("path",{fill:"#FFC6A0",d:"M46.9 83.4s-.5 6 7.2 5.6c11.2-.7 9.2-9.4 31.5-21.7-.7-2.7-2.4-4.7-2.4-4.7s-11 3-22.6 8c-6.8 3-13.4 6.4-13.7 12.8m57.6 7.7.9-5.4-8.9-11.4-5 5.3-1.8 7.9a.3.3 0 0 0 .1.3c1 .8 6.5 5 14.4 3.5a.3.3 0 0 0 .3-.2"}),t.createElement("path",{fill:"#FFC6A0",d:"M94 79.4s-4.6-2.9-2.5-6.9c1.6-3 4.5 1.2 4.5 1.2s.5-3.7 3.1-3.7c.6-1 1.6-4.1 1.6-4.1l13.5 3c0 5.3-2.3 19.5-7.8 20-8.9.6-12.5-9.5-12.5-9.5"}),t.createElement("path",{fill:"#520038",d:"M113.9 73.4c2.6-2 3.4-9.7 3.4-9.7s-2.4-.5-6.6-2c-4.7-2.1-12.8-4.8-17.5 1-9.6 3.2-2 19.8-2 19.8l2.7-3s-4-3.3-2-6.3c2-3.5 3.8 1 3.8 1s.7-2.3 3.6-3.3c.4-.7 1-2.6 1.4-3.8a1 1 0 0 1 1.3-.7l11.4 2.6c.5.2.8.7.8 1.2l-.3 3.2z"}),t.createElement("path",{fill:"#552950",d:"M105 76c-.1.7-.6 1.1-1 1-.6 0-.9-.6-.8-1.2.1-.6.6-1 1-1 .6 0 .9.7.8 1.3m7.1 1.6c0 .6-.5 1-1 1-.5-.1-.8-.7-.7-1.3 0-.6.5-1 1-1 .5.1.8.7.7 1.3"}),t.createElement("path",{stroke:"#DB836E",d:"m110.1 74.8-.9 1.7-.3 4.3h-2.2",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),t.createElement("path",{stroke:"#5C2552",d:"M110.8 74.5s1.8-.7 2.6.5",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),t.createElement("path",{stroke:"#DB836E",d:"M92.4 74.3s.5-1.1 1.1-.7c.6.4 1.3 1.4.6 2-.8.5.1 1.6.1 1.6",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),t.createElement("path",{stroke:"#5C2552",d:"M103.3 73s1.8 1 4.1.9",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),t.createElement("path",{stroke:"#DB836E",d:"M103.7 81.8s2.2 1.2 4.4 1.2m-3.5 1.3s1 .4 1.6.3m-11.5-3.4s2.3 7.4 10.4 7.6",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),t.createElement("path",{stroke:"#E4EBF7",d:"M81.5 89.4s.4 5.6-5 12.8M69 82.7s-.7 9.2-8.2 14.2m68.6 26s-5.3 7.4-9.4 10.7m-.7-26.3s.5 4.4-2.1 32",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),t.createElement("path",{fill:"#F2D7AD",d:"M150 151.2h-49.8a1 1 0 0 1-1-1v-31.7c0-.5.4-1 1-1H150c.6 0 1 .5 1 1v31.7a1 1 0 0 1-1 1"}),t.createElement("path",{fill:"#F4D19D",d:"M150.3 151.2h-19.9v-33.7h20.8v32.8a1 1 0 0 1-1 1"}),t.createElement("path",{fill:"#F2D7AD",d:"M123.6 127.9H92.9a.5.5 0 0 1-.4-.8l6.4-9.1c.2-.3.5-.5.8-.5h31.1l-7.2 10.4z"}),t.createElement("path",{fill:"#CC9B6E",d:"M123.7 128.4H99.2v-.5h24.2l7.2-10.2.4.3z"}),t.createElement("path",{fill:"#F4D19D",d:"M158.3 127.9h-18.7a2 2 0 0 1-1.6-.8l-7.2-9.6h20c.5 0 1 .3 1.2.6l6.7 9a.5.5 0 0 1-.4.8"}),t.createElement("path",{fill:"#CC9B6E",d:"M157.8 128.5h-19.3l-7.9-10.5.4-.3 7.7 10.3h19.1zm-27.2 22.2v-8.2h.4v8.2zm-.1-10.9v-21.4h.4l.1 21.4zm-18.6 1.1-.5-.1 1.5-5.2.5.2zm-3.5.2-2.6-3 2.6-3.4.4.3-2.4 3.1 2.4 2.6zm8.2 0-.4-.4 2.4-2.6-2.4-3 .4-.4 2.7 3.4z"}),t.createElement("path",{fill:"#FFC6A0",d:"m154.3 131.9-3.1-2v3.5l-1 .1a85 85 0 0 1-4.8.3c-1.9 0-2.7 2.2 2.2 2.6l-2.6-.6s-2.2 1.3.5 2.3c0 0-1.6 1.2.6 2.6-.6 3.5 5.2 4 7 3.6a6.1 6.1 0 0 0 4.6-5.2 8 8 0 0 0-3.4-7.2"}),t.createElement("path",{stroke:"#DB836E",d:"M153.7 133.6s-6.5.4-8.4.3c-1.8 0-1.9 2.2 2.4 2.3 3.7.2 5.4 0 5.4 0",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),t.createElement("path",{stroke:"#DB836E",d:"M145.2 135.9c-1.9 1.3.5 2.3.5 2.3s3.5 1 6.8.6m-.6 2.9s-6.3.1-6.7-2.1c-.3-1.4.4-1.4.4-1.4m.5 2.7s-1 3.1 5.5 3.5m-.4-14.5v3.5M52.8 89.3a18 18 0 0 0 13.6-7.8",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),t.createElement("path",{fill:"#5BA02E",d:"M168.6 248.3a6.6 6.6 0 0 1-6.7-6.6v-66.5a6.6 6.6 0 1 1 13.3 0v66.5a6.6 6.6 0 0 1-6.6 6.6"}),t.createElement("path",{fill:"#92C110",d:"M176.5 247.7a6.6 6.6 0 0 1-6.6-6.7v-33.2a6.6 6.6 0 1 1 13.3 0V241a6.6 6.6 0 0 1-6.7 6.7"}),t.createElement("path",{fill:"#F2D7AD",d:"M186.4 293.6H159a3.2 3.2 0 0 1-3.2-3.2v-46.1a3.2 3.2 0 0 1 3.2-3.2h27.5a3.2 3.2 0 0 1 3.2 3.2v46.1a3.2 3.2 0 0 1-3.2 3.2"}),t.createElement("path",{stroke:"#E4EBF7",d:"M89 89.5s7.8 5.4 16.6 2.8",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}))),M1=x1;var e=A(z()),I1=()=>e.createElement("svg",{width:"254",height:"294"},e.createElement("title",null,"Server Error"),e.createElement("g",{fill:"none",fillRule:"evenodd"},e.createElement("path",{fill:"#E4EBF7",d:"M0 128.1v-2C0 56.5 56.3.2 125.7.2h2.1C197.2.3 253.5 56.6 253.5 126v2.1c0 69.5-56.3 125.7-125.7 125.7h-2.1A125.7 125.7 0 0 1 0 128.1"}),e.createElement("path",{fill:"#FFF",d:"M40 132.1a8.3 8.3 0 1 1-16.6-1.7 8.3 8.3 0 0 1 16.6 1.7"}),e.createElement("path",{stroke:"#FFF",d:"m37.2 135.6 10.5 6m1 6.3-12.8 10.8",strokeWidth:"2"}),e.createElement("path",{fill:"#FFF",d:"M40.1 160.8a5.7 5.7 0 1 1-11.3-1.1 5.7 5.7 0 0 1 11.3 1.1M58 144.6a5.7 5.7 0 1 1-11.4-1.2 5.7 5.7 0 0 1 11.4 1.2M99.7 27.4h30a4.6 4.6 0 1 0 0-9.2h-30a4.6 4.6 0 0 0 0 9.2M111 46h30a4.6 4.6 0 1 0 0-9.3h-30a4.6 4.6 0 1 0 0 9.3m2.5-18.6h16a4.6 4.6 0 1 0 0 9.3h-16a4.6 4.6 0 0 0 0-9.3m36.7 42.7h-4a4.8 4.8 0 0 1-4.8-4.8 4.8 4.8 0 0 1 4.8-4.8h4a4.8 4.8 0 0 1 4.7 4.8 4.8 4.8 0 0 1-4.7 4.8"}),e.createElement("circle",{cx:"201.35",cy:"30.2",r:"29.7",fill:"#FF603B"}),e.createElement("path",{fill:"#FFF",d:"m203.6 19.4-.7 15a1.5 1.5 0 0 1-3 0l-.7-15a2.2 2.2 0 1 1 4.4 0m-.3 19.4c.5.5.8 1.1.8 1.9s-.3 1.4-.8 1.9a3 3 0 0 1-2 .7 2.5 2.5 0 0 1-1.8-.7c-.6-.6-.8-1.2-.8-2 0-.7.2-1.3.8-1.8.5-.5 1.1-.7 1.8-.7.8 0 1.5.2 2 .7"}),e.createElement("path",{fill:"#FFB594",d:"M119.3 133.3c4.4-.6 3.6-1.2 4-4.8.8-5.2-3-17-8.2-25.1-1-10.7-12.6-11.3-12.6-11.3s4.3 5 4.2 16.2c1.4 5.3.8 14.5.8 14.5s5.3 11.4 11.8 10.5"}),e.createElement("path",{fill:"#FFF",d:"M101 91.6s1.4-.6 3.2.6c8 1.4 10.3 6.7 11.3 11.4 1.8 1.2 1.8 2.3 1.8 3.5l1.5 3s-7.2 1.7-11 6.7c-1.3-6.4-6.9-25.2-6.9-25.2"}),e.createElement("path",{fill:"#FFB594",d:"m94 90.5 1-5.8-9.2-11.9-5.2 5.6-2.6 9.9s8.4 5 16 2.2"}),e.createElement("path",{fill:"#FFC6A0",d:"M83 78.2s-4.6-2.9-2.5-6.9c1.6-3 4.5 1.2 4.5 1.2s.5-3.7 3.2-3.7c.5-1 1.5-4.2 1.5-4.2l13.6 3.2c0 5.2-2.3 19.5-7.9 20-8.9.6-12.5-9.6-12.5-9.6"}),e.createElement("path",{fill:"#520038",d:"M103 72.2c2.6-2 3.5-9.7 3.5-9.7s-2.5-.5-6.7-2c-4.7-2.2-12.9-4.9-17.6.9-9.5 4.4-2 20-2 20l2.7-3.1s-4-3.3-2.1-6.3c2.2-3.5 4 1 4 1s.6-2.3 3.5-3.3c.4-.7 1-2.7 1.5-3.8A1 1 0 0 1 91 65l11.5 2.7c.5.1.8.6.8 1.2l-.3 3.2z"}),e.createElement("path",{fill:"#552950",d:"M101.2 76.5c0 .6-.6 1-1 1-.5-.1-.9-.7-.8-1.3.1-.6.6-1 1.1-1 .5.1.8.7.7 1.3m-7-1.4c0 .6-.5 1-1 1-.5-.1-.8-.7-.7-1.3 0-.6.6-1 1-1 .5.1.9.7.8 1.3"}),e.createElement("path",{stroke:"#DB836E",d:"m99.2 73.6-.9 1.7-.3 4.3h-2.2",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),e.createElement("path",{stroke:"#5C2552",d:"M100 73.3s1.7-.7 2.4.5",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),e.createElement("path",{stroke:"#DB836E",d:"M81.4 73s.4-1 1-.6c.7.4 1.4 1.4.6 2s.2 1.6.2 1.6",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),e.createElement("path",{stroke:"#5C2552",d:"M92.3 71.7s1.9 1.1 4.2 1",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),e.createElement("path",{stroke:"#DB836E",d:"M92.7 80.6s2.3 1.2 4.4 1.2m-3.4 1.4s1 .4 1.5.3M83.7 80s1.8 6.6 9.2 8",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),e.createElement("path",{stroke:"#E4EBF7",d:"M95.5 91.7s-1 2.8-8.2 2c-7.3-.6-10.3-5-10.3-5",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),e.createElement("path",{fill:"#FFF",d:"M78.1 87.5s6.6 5 16.5 2.5c0 0 9.6 1 11.5 5.3 5.4 11.8.6 36.8 0 40 3.5 4-.4 8.4-.4 8.4-15.7-3.5-35.8-.6-35.8-.6-4.9-3.5-1.3-9-1.3-9l-6.2-23.8c-2.5-15.2.8-19.8 3.5-20.7 3-1 8-1.3 8-1.3.6 0 1.1 0 1.4-.2 2.4-1.3 2.8-.6 2.8-.6"}),e.createElement("path",{fill:"#FFC6A0",d:"M65.8 89.8s-6.8.5-7.6 8.2c-.4 8.8 3 11 3 11s6.1 22 16.9 22.9c8.4-2.2 4.7-6.7 4.6-11.4-.2-11.3-7-17-7-17s-4.3-13.7-9.9-13.7"}),e.createElement("path",{fill:"#FFC6A0",d:"M71.7 124.2s.9 11.3 9.8 6.5c4.8-2.5 7.6-13.8 9.8-22.6A201 201 0 0 0 94 96l-5-1.7s-2.4 5.6-7.7 12.3c-4.4 5.5-9.2 11.1-9.5 17.7"}),e.createElement("path",{stroke:"#E4EBF7",d:"M108.5 105.2s1.7 2.7-2.4 30.5c2.4 2.2 1 6-.2 7.5",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),e.createElement("path",{fill:"#FFC6A0",d:"M123.3 131.5s-.5 2.8-11.8 2c-15.2-1-25.3-3.2-25.3-3.2l.9-5.8s.7.2 9.7-.1c11.9-.4 18.7-6 25-1 4 3.2 1.5 8.1 1.5 8.1"}),e.createElement("path",{fill:"#FFF",d:"M70.2 91s-5.6-4.8-11 2.7c-3.3 7.2.5 15.2 2.6 19.5-.3 3.8 2.4 4.3 2.4 4.3s0 1 1.5 2.7c4-7 6.7-9.1 13.7-12.5-.3-.7-1.9-3.3-1.8-3.8.2-1.7-1.3-2.6-1.3-2.6s-.3-.2-1.2-2.8c-.8-2.3-2-5.1-4.9-7.5"}),e.createElement("path",{fill:"#CBD1D1",d:"M90.2 288s4.9 2.3 8.3 1.2c3.2-1 5.2.7 8 1.3a20 20 0 0 0 13.3-1.4c-.2-6.2-7.8-4.5-13.6-7.6-2.9-1.6-4.2-5.3-4-10H91.5s-1.5 12-1.3 16.5"}),e.createElement("path",{fill:"#2B0849",d:"M90.2 287.8s2.8 1.5 7.6.8c3.5-.5 3.3.6 7.5 1.3 4.2.6 13-.2 14.3-1.2.5 1.3-.4 2.4-.4 2.4s-1.7.6-5.4.9c-2.3.1-8.1.3-10.2-.6-2-1.6-4.9-1.5-6-.3-4.5 1.1-7.2-.3-7.2-.3l-.2-3z"}),e.createElement("path",{fill:"#A4AABA",d:"M98.4 272.3h3.5s0 7.5 5.2 9.6c-5.3.7-9.7-2.6-8.7-9.6"}),e.createElement("path",{fill:"#CBD1D1",d:"M44.4 272s-2.2 7.8-4.7 13c-1.9 3.8-4.4 7.8 5.8 7.8 7 0 9.3-.5 7.7-7-1.6-6.3.3-13.8.3-13.8h-9z"}),e.createElement("path",{fill:"#2B0849",d:"M38 290.3s2.3 1.2 7 1.2c6.4 0 8.7-1.7 8.7-1.7s.6 1.1-.7 2.2c-1 1-3.8 1.7-7.7 1.7-4.4 0-6.1-.6-7-1.3-1-.5-.8-1.6-.2-2.1"}),e.createElement("path",{fill:"#A4AABA",d:"M45.3 274s0 1.6-.3 3.1-1.1 3.3-1.2 4.4c0 1.2 4.8 1.6 5.4 0 .7-1.6 1.4-6.8 2-7.6.7-.9-5.1-2.2-5.9.1"}),e.createElement("path",{fill:"#7BB2F9",d:"M89.5 277.6h13.9s1.3-56.6 1.9-66.8c.6-10.3 4-45.1 1-65.6l-13-.7-23.7.8-1.3 10.4c0 .5-.7.9-.8 1.4 0 .6.5 1.4.4 2L59.6 206c-.1.7-1.3 1-1.5 2.8 0 .3.2 1.6.1 1.8-7.1 19.5-12.2 52.6-15.6 67.2h15.1L62 259c3-13.3 24-88.3 24-88.3l3.2-1-.2 48.6s-.2 1.3.4 2.1c.5.8-.6 1.2-.4 2.4l.4 1.8-1 12.4c-.4 4.9 1.2 40.7 1.2 40.7"}),e.createElement("path",{stroke:"#648BD8",d:"M64.6 218.9c1.2 0 4.2-2.1 7.2-5.1m24.2 8.7s3-1.1 6.4-4",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),e.createElement("path",{stroke:"#648BD8",d:"M97 219.4s2.9-1.2 6.3-4",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1"}),e.createElement("path",{stroke:"#648BD8",d:"M63.2 222.1s2.7-.6 6.7-3.5m5-72.4c-.3 3.2.3 8.8-4.5 9.4m22.8-11.3s.1 14.6-1.4 15.7c-2.3 1.7-3 2-3 2m.4-17s.3 13-1 25m-4.7.7s6.8-1 9.1-1M46 270l-.9 4.6m1.8-11.3-.8 4.1m16.6-64.9c-.3 1.6 0 2-.4 3.4 0 0-2.8 2-2.3 4s-.3 3.4-4.5 17.2c-1.8 5.8-4.3 19-6.2 28.3l-1.1 5.8m16-67-1 4.9m8.1-52.3-1.2 10.9s-1.2.1-.5 2.3c0 1.4-2.8 16.4-5.4 31.6m-20 82.1h13.9",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),e.createElement("path",{fill:"#192064",d:"M106.2 142.1c-3-.5-18.8-2.7-36.2.2a.6.6 0 0 0-.6.7v3a.6.6 0 0 0 .8.6c3.3-.5 17-2.4 35.6-.3.4 0 .7-.2.7-.5.2-1.4.2-2.5.2-3a.6.6 0 0 0-.5-.7"}),e.createElement("path",{fill:"#FFF",d:"M96.4 145.3v-5.1a.8.8 0 0 0-.8-.9 114.1 114.1 0 0 0-8.1 0 .8.8 0 0 0-.9.8v5.1c0 .5.4.9.9.9h8a.8.8 0 0 0 .9-.8"}),e.createElement("path",{fill:"#192064",d:"M95.2 144.3v-3.2a.7.7 0 0 0-.6-.7h-6.1a.7.7 0 0 0-.6.7v3.2c0 .4.3.7.6.7h6c.4 0 .7-.3.7-.7"}),e.createElement("path",{stroke:"#648BD8",d:"M90.1 273.5h12.8m-11.7-3.7v6.3m-.3-12.6v4.5m-.5-97.6 1 46.4s.7 1.6-.3 2.8c-.9 1.1 2.6.7 1 2.3-1.7 1.6.9 1.2 0 3.5-.6 1.6-1 22-1.2 36.5",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),e.createElement("path",{stroke:"#E4EBF7",d:"M73.7 98.7 76 103s2 .8 1.8 2.7l.8 2.2m-14.3 8.7c.2-1 2.2-7.1 12.6-10.5m.7-16s7.7 6 16.5 2.7",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),e.createElement("path",{fill:"#FFC6A0",d:"M92 87s5.5-.9 7.5-4.6c1.3-.3.8 2.2-.3 3.7l-1 1.5s.2.3.2.9c0 .6-.2.6-.3 1v1l-.4 1c-.1.2 0 .6-.2.9-.2.4-1.6 1.8-2.6 2.8-3.8 3.6-5 1.7-6-.4-1-1.8-.7-5.1-.9-6.9-.3-2.9-2.6-3-2-4.4.4-.7 3 .7 3.4 1.8.7 2 2.9 1.8 2.6 1.7"}),e.createElement("path",{stroke:"#DB836E",d:"M99.8 82.4c-.5.1-.3.3-1 1.3-.6 1-4.8 2.9-6.4 3.2-2.5.5-2.2-1.6-4.2-2.9-1.7-1-3.6-.6-1.4 1.4 1 1 1 1.1 1.4 3.2.3 1.5-.7 3.7.7 5.6",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:".8"}),e.createElement("path",{stroke:"#E59788",d:"M79.5 108.7c-2 2.9-4.2 6.1-5.5 8.7",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:".8"}),e.createElement("path",{fill:"#FFC6A0",d:"M87.7 124.8s-2-2-5.1-2.8c-3-.7-3.6-.1-5.5.1-2 .3-4-.9-3.7.7.3 1.7 5 1 5.2 2.1.2 1.1-6.3 2.8-8.3 2.2-.8.8.5 1.9 2 2.2.3 1.5 2.3 1.5 2.3 1.5s.7 1 2.6 1.1c2.5 1.3 9-.7 11-1.5 2-.9-.5-5.6-.5-5.6"}),e.createElement("path",{stroke:"#E59788",d:"M73.4 122.8s.7 1.2 3.2 1.4c2.3.3 2.6.6 2.6.6s-2.6 3-9.1 2.3m2.3 2.2s3.8 0 5-.7m-2.4 2.2s2 0 3.3-.6m-1 1.7s1.7 0 2.8-.5m-6.8-9s-.6-1.1 1.3-.5c1.7.5 2.8 0 5.1.1 1.4.1 3-.2 4 .2 1.6.8 3.6 2.2 3.6 2.2s10.6 1.2 19-1.1M79 108s-8.4 2.8-13.2 12.1",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:".8"}),e.createElement("path",{stroke:"#E4EBF7",d:"M109.3 112.5s3.4-3.6 7.6-4.6",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),e.createElement("path",{stroke:"#E59788",d:"M107.4 123s9.7-2.7 11.4-.9",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:".8"}),e.createElement("path",{stroke:"#BFCDDD",d:"m194.6 83.7 4-4M187.2 91l3.7-3.6m.9-3-4.5-4.7m11.2 11.5-4.2-4.3m-65 76.3 3.7-3.7M122.3 170l3.5-3.5m.8-2.9-4.3-4.2M133 170l-4-4",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2"}),e.createElement("path",{fill:"#A3B4C6",d:"M190.2 211.8h-1.6a4 4 0 0 1-4-4v-32.1a4 4 0 0 1 4-4h1.6a4 4 0 0 1 4 4v32a4 4 0 0 1-4 4"}),e.createElement("path",{fill:"#A3B4C6",d:"M237.8 213a4.8 4.8 0 0 1-4.8 4.8h-86.6a4.8 4.8 0 0 1 0-9.6H233a4.8 4.8 0 0 1 4.8 4.8"}),e.createElement("path",{fill:"#A3B4C6",d:"M154.1 190.1h70.5v-84.6h-70.5z"}),e.createElement("path",{fill:"#BFCDDD",d:"M225 190.1h-71.2a3.2 3.2 0 0 1-3.2-3.2v-19a3.2 3.2 0 0 1 3.2-3.2h71.1a3.2 3.2 0 0 1 3.2 3.2v19a3.2 3.2 0 0 1-3.2 3.2m0-59.3h-71.1a3.2 3.2 0 0 1-3.2-3.2v-19a3.2 3.2 0 0 1 3.2-3.2h71.1a3.2 3.2 0 0 1 3.2 3.3v19a3.2 3.2 0 0 1-3.2 3.1"}),e.createElement("path",{fill:"#FFF",d:"M159.6 120.5a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m7.4 0a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m7.4 0a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m48.1 0h-22.4a.8.8 0 0 1-.8-.8v-3.2c0-.4.3-.8.8-.8h22.4c.5 0 .8.4.8.8v3.2c0 .5-.3.8-.8.8"}),e.createElement("path",{fill:"#BFCDDD",d:"M225 160.5h-71.2a3.2 3.2 0 0 1-3.2-3.2v-19a3.2 3.2 0 0 1 3.2-3.2h71.1a3.2 3.2 0 0 1 3.2 3.2v19a3.2 3.2 0 0 1-3.2 3.2"}),e.createElement("path",{stroke:"#7C90A5",d:"M173.5 130.8h49.3m-57.8 0h6m-15 0h6.7m11.1 29.8h49.3m-57.7 0h6m-15.8 0h6.7",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),e.createElement("path",{fill:"#FFF",d:"M159.6 151a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m7.4 0a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m7.4 0a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m48.1 0h-22.4a.8.8 0 0 1-.8-.8V147c0-.4.3-.8.8-.8h22.4c.5 0 .8.4.8.8v3.2c0 .5-.3.8-.8.8m-63 29a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m7.5 0a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m7.4 0a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m48.1 0h-22.4a.8.8 0 0 1-.8-.8V176c0-.5.3-.8.8-.8h22.4c.5 0 .8.3.8.8v3.2c0 .4-.3.8-.8.8"}),e.createElement("path",{fill:"#BFCDDD",d:"M203 221.1h-27.3a2.4 2.4 0 0 1-2.4-2.4v-11.4a2.4 2.4 0 0 1 2.4-2.5H203a2.4 2.4 0 0 1 2.4 2.5v11.4a2.4 2.4 0 0 1-2.4 2.4"}),e.createElement("path",{stroke:"#A3B4C6",d:"M177.3 207.2v11.5m23.8-11.5v11.5",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),e.createElement("path",{fill:"#5BA02E",d:"M162.9 267.9a9.4 9.4 0 0 1-9.4-9.4v-14.8a9.4 9.4 0 0 1 18.8 0v14.8a9.4 9.4 0 0 1-9.4 9.4"}),e.createElement("path",{fill:"#92C110",d:"M171.2 267.8a9.4 9.4 0 0 1-9.4-9.4V255a9.4 9.4 0 0 1 18.8 0v3.4a9.4 9.4 0 0 1-9.4 9.4"}),e.createElement("path",{fill:"#F2D7AD",d:"M181.3 293.7h-27.7a3.2 3.2 0 0 1-3.2-3.2v-20.7a3.2 3.2 0 0 1 3.2-3.2h27.7a3.2 3.2 0 0 1 3.2 3.2v20.7a3.2 3.2 0 0 1-3.2 3.2"}))),g1=I1;var $1=r=>{let{componentCls:c,lineHeightHeading3:s,iconCls:i,padding:h,paddingXL:m,paddingXS:f,paddingLG:k,marginXS:R,lineHeight:d}=r;return{[c]:{padding:`${x(r.calc(k).mul(2).equal())} ${x(m)}`,"&-rtl":{direction:"rtl"}},[`${c} ${c}-image`]:{width:r.imageWidth,height:r.imageHeight,margin:"auto"},[`${c} ${c}-icon`]:{marginBottom:k,textAlign:"center",[`& > ${i}`]:{fontSize:r.iconFontSize}},[`${c} ${c}-title`]:{color:r.colorTextHeading,fontSize:r.titleFontSize,lineHeight:s,marginBlock:R,textAlign:"center"},[`${c} ${c}-subtitle`]:{color:r.colorTextDescription,fontSize:r.subtitleFontSize,lineHeight:d,textAlign:"center"},[`${c} ${c}-body`]:{marginTop:k,padding:`${x(k)} ${x(r.calc(h).mul(2.5).equal())}`,backgroundColor:r.colorFillAlter},[`${c} ${c}-extra`]:{margin:r.extraMargin,textAlign:"center","& > *":{marginInlineEnd:f,"&:last-child":{marginInlineEnd:0}}}}},P1=r=>{let{componentCls:c}=r;return{[`${c}-success ${c}-icon`]:{color:r.resultSuccessIconColor},[`${c}-error ${c}-icon`]:{color:r.resultErrorIconColor},[`${c}-info ${c}-icon`]:{color:r.resultInfoIconColor},[`${c}-warning ${c}-icon`]:{color:r.resultWarningIconColor}}},H1=r=>[$1(r),P1(r)],_1=r=>{let{fontSizeHeading3:c,fontSize:s,paddingLG:i}=r;return{titleFontSize:c,subtitleFontSize:s,iconFontSize:c1(c)?c*3:`calc(${c} * 3)`,extraMargin:`${i}px 0 0 0`}},v1=s1("Result",r=>{let c=r.colorInfo,s=r.colorError,i=r.colorSuccess,h=r.colorWarning,m=o1(r,{resultInfoIconColor:c,resultErrorIconColor:s,resultSuccessIconColor:i,resultWarningIconColor:h,imageWidth:250,imageHeight:295});return H1(m)},_1);var a=A(z()),w1=()=>a.createElement("svg",{width:"251",height:"294"},a.createElement("title",null,"Unauthorized"),a.createElement("g",{fill:"none",fillRule:"evenodd"},a.createElement("path",{fill:"#E4EBF7",d:"M0 129v-2C0 58.3 55.6 2.7 124.2 2.7h2c68.6 0 124.2 55.6 124.2 124.1v2.1c0 68.6-55.6 124.2-124.1 124.2h-2.1A124.2 124.2 0 0 1 0 129"}),a.createElement("path",{fill:"#FFF",d:"M41.4 133a8.2 8.2 0 1 1-16.4-1.7 8.2 8.2 0 0 1 16.4 1.6"}),a.createElement("path",{stroke:"#FFF",d:"m38.7 136.4 10.4 5.9m.9 6.2-12.6 10.7",strokeWidth:"2"}),a.createElement("path",{fill:"#FFF",d:"M41.5 161.3a5.6 5.6 0 1 1-11.2-1.2 5.6 5.6 0 0 1 11.2 1.2m17.7-16a5.7 5.7 0 1 1-11.3-1.2 5.7 5.7 0 0 1 11.3 1.2m41.2-115.8H130a4.6 4.6 0 1 0 0-9.1h-29.6a4.6 4.6 0 0 0 0 9.1m11.3 18.3h29.7a4.6 4.6 0 1 0 0-9.2h-29.7a4.6 4.6 0 1 0 0 9.2"}),a.createElement("path",{fill:"#FFF",d:"M114 29.5h15.8a4.6 4.6 0 1 0 0 9.1H114a4.6 4.6 0 0 0 0-9.1m71.3 108.2a10 10 0 1 1-19.8-2 10 10 0 0 1 19.8 2"}),a.createElement("path",{stroke:"#FFF",d:"m180.2 143.8 12.5 7.1m1.1 7.5-15.1 13",strokeWidth:"2"}),a.createElement("path",{fill:"#FFF",d:"M185.6 172a6.8 6.8 0 1 1-13.6-1.4 6.8 6.8 0 0 1 13.5 1.3m18.6-16.6a6.8 6.8 0 1 1-13.6-1.4 6.8 6.8 0 0 1 13.6 1.4"}),a.createElement("path",{stroke:"#FFF",d:"M153 194a2.2 2.2 0 1 1-4.4 0 2.2 2.2 0 0 1 4.4 0zm73-75.8a2.2 2.2 0 1 1-4.5 0 2.2 2.2 0 0 1 4.4 0zm-9 34.9a2.2 2.2 0 1 1-4.3 0 2.2 2.2 0 0 1 4.4 0zm-39.2-43.3a2.2 2.2 0 1 1-4.4 0 2.2 2.2 0 0 1 4.4 0zm18.3-15.3a2.2 2.2 0 1 1-4.4 0 2.2 2.2 0 0 1 4.4 0zm6.7 88a2.2 2.2 0 1 1-4.4 0 2.2 2.2 0 0 1 4.4 0z",strokeWidth:"2"}),a.createElement("path",{stroke:"#FFF",d:"m215.1 155.3-1.9 20-10.8 6m-27.8-4.7-6.3 9.8H157l-4.5 6.4m23.4-65.5v-15.7m45.6 7.8-12.8 7.9-15.2-7.9V96.7",strokeWidth:"2"}),a.createElement("path",{fill:"#A26EF4",d:"M180.7 29.3a29.3 29.3 0 1 1 58.6 0 29.3 29.3 0 0 1-58.6 0"}),a.createElement("path",{fill:"#FFF",d:"m221.4 41.7-21.5-.1a1.7 1.7 0 0 1-1.7-1.8V27.6a1.7 1.7 0 0 1 1.8-1.7h21.5c1 0 1.8.9 1.8 1.8l-.1 12.3a1.7 1.7 0 0 1-1.7 1.7"}),a.createElement("path",{fill:"#FFF",d:"M215.1 29.2c0 2.6-2 4.6-4.5 4.6a4.6 4.6 0 0 1-4.5-4.7v-6.9c0-2.6 2-4.6 4.6-4.6 2.5 0 4.5 2 4.4 4.7v6.9zm-4.5-14a6.9 6.9 0 0 0-7 6.8v7.3a6.9 6.9 0 0 0 13.8.1V22a6.9 6.9 0 0 0-6.8-6.9zm-43 53.2h-4a4.7 4.7 0 0 1-4.7-4.8 4.7 4.7 0 0 1 4.7-4.7h4a4.7 4.7 0 0 1 4.7 4.8 4.7 4.7 0 0 1-4.7 4.7"}),a.createElement("path",{fill:"#5BA02E",d:"M168.2 248.8a6.6 6.6 0 0 1-6.6-6.6v-66a6.6 6.6 0 0 1 13.2 0v66a6.6 6.6 0 0 1-6.6 6.6"}),a.createElement("path",{fill:"#92C110",d:"M176.1 248.2a6.6 6.6 0 0 1-6.6-6.6v-33a6.6 6.6 0 1 1 13.3 0v33a6.6 6.6 0 0 1-6.7 6.6"}),a.createElement("path",{fill:"#F2D7AD",d:"M186 293.9h-27.4a3.2 3.2 0 0 1-3.2-3.2v-45.9a3.2 3.2 0 0 1 3.2-3.1H186a3.2 3.2 0 0 1 3.2 3.1v46a3.2 3.2 0 0 1-3.2 3"}),a.createElement("path",{fill:"#FFF",d:"M82 147.7s6.3-1 17.5-1.3c11.8-.4 17.6 1 17.6 1s3.7-3.8 1-8.3c1.3-12.1 6-32.9.3-48.3-1.1-1.4-3.7-1.5-7.5-.6-1.4.3-7.2-.2-8-.1l-15.3-.4-8-.5c-1.6-.1-4.3-1.7-5.5-.3-.4.4-2.4 5.6-2 16l8.7 35.7s-3.2 3.6 1.2 7"}),a.createElement("path",{fill:"#FFC6A0",d:"m75.8 73.3-1-6.4 12-6.5s7.4-.1 8 1.2c.8 1.3-5.5 1-5.5 1s-1.9 1.4-2.6 2.5c-1.7 2.4-1 6.5-8.4 6-1.7.3-2.5 2.2-2.5 2.2"}),a.createElement("path",{fill:"#FFB594",d:"M52.4 77.7S66.7 87 77.4 92c1 .5-2 16.2-11.9 11.8-7.4-3.3-20.1-8.4-21.5-14.5-.7-3.2 2.6-7.6 8.4-11.7M142 80s-6.7 3-13.9 6.9c-3.9 2.1-10.1 4.7-12.3 8-6.2 9.3 3.5 11.2 13 7.5 6.6-2.7 29-12.1 13.2-22.4"}),a.createElement("path",{fill:"#FFC6A0",d:"m76.2 66.4 3 3.8S76.4 73 73 76c-7 6.2-12.8 14.3-16 16.4-4 2.7-9.7 3.3-12.2 0-3.5-5.1.5-14.7 31.5-26"}),a.createElement("path",{fill:"#FFF",d:"M64.7 85.1s-2.4 8.4-9 14.5c.7.5 18.6 10.5 22.2 10 5.2-.6 6.4-19 1.2-20.5-.8-.2-6-1.3-8.9-2.2-.9-.2-1.6-1.7-3.5-1l-2-.8zm63.7.7s5.3 2 7.3 13.8c-.6.2-17.6 12.3-21.8 7.8-6.6-7-.8-17.4 4.2-18.6 4.7-1.2 5-1.4 10.3-3"}),a.createElement("path",{stroke:"#E4EBF7",d:"M78.2 94.7s.9 7.4-5 13",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),a.createElement("path",{stroke:"#E4EBF7",d:"M87.4 94.7s3.1 2.6 10.3 2.6c7.1 0 9-3.5 9-3.5",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:".9"}),a.createElement("path",{fill:"#FFC6A0",d:"m117.2 68.6-6.8-6.1s-5.4-4.4-9.2-1c-3.9 3.5 4.4 2.2 5.6 4.2 1.2 2.1.9 1.2-2 .5-5.7-1.4-2.1.9 3 5.3 2 1.9 7 1 7 1l2.4-3.9z"}),a.createElement("path",{fill:"#FFB594",d:"m105.3 91.3-.3-11H89l-.5 10.5c0 .4.2.8.6 1 2 1.3 9.3 5 15.8.4.2-.2.4-.5.4-.9"}),a.createElement("path",{fill:"#5C2552",d:"M107.6 74.2c.8-1.1 1-9 1-11.9a1 1 0 0 0-1-1l-4.6-.4c-7.7-1-17 .6-18.3 6.3-5.4 5.9-.4 13.3-.4 13.3s2 3.5 4.3 6.8c.8 1 .4-3.8 3-6a47.9 47.9 0 0 1 16-7"}),a.createElement("path",{fill:"#FFC6A0",d:"M88.4 83.2s2.7 6.2 11.6 6.5c7.8.3 9-7 7.5-17.5l-1-5.5c-6-2.9-15.4.6-15.4.6s-.6 2-.2 5.5c-2.3 2-1.8 5.6-1.8 5.6s-1-2-2-2.3c-.9-.3-2 0-2.3 2-1 4.6 3.6 5.1 3.6 5.1"}),a.createElement("path",{stroke:"#DB836E",d:"m100.8 77.1 1.7-1-1-4.3.7-1.4",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),a.createElement("path",{fill:"#552950",d:"M105.5 74c0 .8-.4 1.4-1 1.4-.4 0-.8-.7-.8-1.4s.5-1.2 1-1.2.9.6.8 1.3m-8 .2c0 .8-.4 1.3-.9 1.3s-.9-.6-.9-1.3c0-.7.5-1.3 1-1.3s1 .6.9 1.3"}),a.createElement("path",{stroke:"#DB836E",d:"M91.1 86.8s5.3 5 12.7 2.3",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),a.createElement("path",{fill:"#DB836E",d:"M99.8 81.9s-3.6.2-1.5-2.8c1.6-1.5 5-.4 5-.4s1 3.9-3.5 3.2"}),a.createElement("path",{stroke:"#5C2552",d:"M102.9 70.6s2.5.8 3.4.7m-12.4.7s2.5-1.2 4.8-1.1",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"}),a.createElement("path",{stroke:"#DB836E",d:"M86.3 77.4s1 .9 1.5 2c-.4.6-1 1.2-.3 1.9m11.8 2.4s2 .2 2.5-.2",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),a.createElement("path",{stroke:"#E4EBF7",d:"m87.8 115.8 15.7-3m-3.3 3 10-2m-43.7-27s-1.6 8.8-6.7 14M128.3 88s3 4 4 11.7",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),a.createElement("path",{stroke:"#DB836E",d:"M64 84.8s-6 10-13.5 10",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:".8"}),a.createElement("path",{fill:"#FFC6A0",d:"m112.4 66-.2 5.2 12 9.2c4.5 3.6 8.9 7.5 11 8.7 4.8 2.8 8.9 3.3 11 1.8 4.1-2.9 4.4-9.9-8.1-15.3-4.3-1.8-16.1-6.3-25.7-9.7"}),a.createElement("path",{stroke:"#DB836E",d:"M130.5 85.5s4.6 5.7 11.7 6.2",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:".8"}),a.createElement("path",{stroke:"#E4EBF7",d:"M121.7 105.7s-.4 8.6-1.3 13.6",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),a.createElement("path",{stroke:"#648BD8",d:"M115.8 161.5s-3.6-1.5-2.7-7.1",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),a.createElement("path",{fill:"#CBD1D1",d:"M101.5 290.2s4.3 2.1 7.4 1c2.9-.9 4.6.7 7.2 1.3 2.5.5 6.9 1 11.7-1.3 0-5.6-7-4-12-6.8-2.6-1.4-3.8-4.7-3.6-8.8h-9.5s-1.4 10.6-1.2 14.6"}),a.createElement("path",{fill:"#2B0849",d:"M101.5 290s2.4 1.4 6.8.7c3-.4 3.7.5 7.5 1 3.7.6 10.8 0 11.9-.8.4 1-.4 2-.4 2s-1.5.7-4.8.9c-2 .1-5.8.3-7.7-.5-1.8-1.4-5.2-2-5.7-.3-4 1-7.4-.3-7.4-.3l-.2-2.6z"}),a.createElement("path",{fill:"#A4AABA",d:"M108.8 276.2h3.1s0 6.7 4.6 8.6c-4.7.6-8.6-2.3-7.7-8.6"}),a.createElement("path",{fill:"#CBD1D1",d:"M57.6 272.5s-2 7.5-4.5 12.4c-1.8 3.7-4.2 7.6 5.5 7.6 6.7 0 9-.5 7.5-6.7-1.5-6.1.3-13.3.3-13.3h-8.8z"}),a.createElement("path",{fill:"#2B0849",d:"M51.5 290s2.2 1.2 6.7 1.2c6.1 0 8.3-1.6 8.3-1.6s.6 1-.6 2.1c-1 .9-3.6 1.6-7.4 1.6-4.2 0-6-.6-6.8-1.2-.9-.5-.7-1.6-.2-2"}),a.createElement("path",{fill:"#A4AABA",d:"M58.5 274.4s0 1.6-.3 3-1 3.1-1.1 4.2c0 1.1 4.5 1.5 5.2 0 .6-1.6 1.3-6.5 1.9-7.3.6-.8-5-2.1-5.7.1"}),a.createElement("path",{fill:"#7BB2F9",d:"m100.9 277 13.3.1s1.3-54.2 1.8-64c.6-9.9 3.8-43.2 1-62.8l-12.4-.7-22.8.8-1.2 10c0 .4-.6.8-.7 1.3 0 .6.4 1.3.3 2-2.3 14-6.3 32.9-8.7 46.4-.1.6-1.2 1-1.4 2.6 0 .3.2 1.6 0 1.8-6.8 18.7-10.8 47.6-14.1 61.6h14.5s2.2-8.6 4-17a3984 3984 0 0 1 23-84.5l3-.5 1 46.1s-.2 1.2.4 2c.5.8-.6 1.1-.4 2.3l.4 1.7-1 11.9c-.4 4.6 0 39 0 39"}),a.createElement("path",{stroke:"#648BD8",d:"M77.4 220.4c1.2.1 4-2 7-4.9m23.1 8.4s2.8-1 6.1-3.8",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),a.createElement("path",{stroke:"#648BD8",d:"M108.5 221s2.7-1.2 6-4",strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("path",{stroke:"#648BD8",d:"M76.1 223.6s2.6-.6 6.5-3.4m4.7-69.4c-.2 3.1.3 8.5-4.3 9m21.8-10.7s.1 14-1.3 15c-2.2 1.6-3 1.9-3 1.9m.5-16.4s0 12.8-1.2 24.3m-4.9 1s7.2-1.6 9.4-1.6m-28.6 31.5-1 4.5s-1.5 1.8-1 3.7c.4 2-1 2-5 15.3-1.7 5.6-4.4 18.5-6.3 27.5l-4 18.4M77 196.7a313.3 313.3 0 0 1-.8 4.8m7.7-50-1.2 10.3s-1 .2-.5 2.3c.1 1.3-2.6 15.6-5.1 30.2M57.6 273h13.2",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),a.createElement("path",{fill:"#192064",d:"M117.4 147.4s-17-3-35.7.2v4.2s14.6-2.9 35.5-.4l.2-4"}),a.createElement("path",{fill:"#FFF",d:"M107.5 150.4v-5a.8.8 0 0 0-.8-.7H99a.8.8 0 0 0-.7.8v4.8c0 .5.3.9.8.8a140.8 140.8 0 0 1 7.7 0 .8.8 0 0 0 .8-.7"}),a.createElement("path",{fill:"#192064",d:"M106.4 149.4v-3a.6.6 0 0 0-.6-.7 94.1 94.1 0 0 0-5.8 0 .6.6 0 0 0-.7.7v3c0 .4.3.7.7.7h5.7c.4 0 .7-.3.7-.7"}),a.createElement("path",{stroke:"#648BD8",d:"M101.5 274h12.3m-11.1-5v6.5m0-12.4v4.3m-.5-93.4.9 44.4s.7 1.6-.2 2.7c-1 1.1 2.4.7.9 2.2-1.6 1.6.9 1.1 0 3.4-.6 1.5-1 21-1.1 35",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}))),L1=w1;var O1={success:i1,error:r1,info:d1,warning:f1},I={404:M1,500:g1,403:L1},C1=Object.keys(I),K1=({icon:r,status:c,className:s,style:i})=>{if(C1.includes(`${c}`)){let m=I[c];return o.createElement("div",{className:s,style:i},o.createElement(m,null))}let h=o.createElement(O1[c]);return r===null||r===!1?null:o.createElement("div",{className:s,style:i},N(r)?r:h)},V1=({className:r,extra:c,style:s})=>N(c)?o.createElement("div",{className:r,style:s},c):null,K=o.forwardRef((r,c)=>{let{prefixCls:s,className:i,rootClassName:h,subTitle:m,title:f,style:k,children:R,status:d="info",icon:B,extra:T,styles:g,classNames:v,...D}=r,{getPrefixCls:M,direction:l,className:p,style:j,classNames:S,styles:$}=n1("result"),P={...r,status:d},H=G(j),L=G(k),[C,W]=l1([S,v],[$,H,g,L],{props:P}),n=M("result",s),[E,b]=v1(n),V=y(n,`${n}-${d}`,i,p,h,{[`${n}-rtl`]:l==="rtl"},E,b,C.root),B1=y(`${n}-title`,C.title),D1=y(`${n}-subtitle`,C.subTitle),S1=y(`${n}-extra`,C.extra),y1=y(`${n}-body`,C.body),T1=y(`${n}-icon`,{[`${n}-image`]:C1.includes(`${d}`)},C.icon),j1={...W.root},b1=a1(D,{aria:!0,data:!0}),t1=o.useRef(null);return o.useImperativeHandle(c,()=>({nativeElement:t1.current})),o.createElement("div",{ref:t1,...b1,className:V,style:j1},o.createElement(K1,{className:T1,style:W.icon,status:d,icon:B}),N(f)&&o.createElement("div",{className:B1,style:W.title},f),N(m)&&o.createElement("div",{className:D1,style:W.subTitle},m),o.createElement(V1,{className:S1,extra:T,style:W.extra}),N(R)&&o.createElement("div",{className:y1,style:W.body},R))});K.PRESENTED_IMAGE_403=I[403];K.PRESENTED_IMAGE_404=I[404];K.PRESENTED_IMAGE_500=I[500];var W1=K;var F=A(z(),1),A1=A(z(),1);var u=A(p1(),1);function U1(r){let c=Q(r);return{type:"cli",id:_(r)||"shell",...c?{engine:c}:{}}}function G1({target:r,kind:c,model:s,disabled:i=!1,persistPreferences:h=!0,teams:m=null,teamWorkspaceId:f="",teamId:k="",employeeId:R="",onTargetChange:d,onKindChange:B,onModelChange:T,onTeamChange:g,onEmployeeChange:v}){let D=R?{type:"employee",id:R}:k?{type:"team",id:k}:U1(r);return(0,u.jsx)(F1,{selectedSubject:D,kind:r==="shell"?"pty":c,model:s,disabled:i,teams:m,teamWorkspaceId:f,onSubjectChange:l=>{if(l.type==="employee"){g?.(""),v?.(l.id);return}if(l.type==="team"){v?.(""),g?.(l.id);return}v?.(""),g?.("");let p=l.id==="shell"?"shell":l.engine==="sdk"?U:l.id;d(p),p==="shell"&&B("pty");let j=_(p);h&&j&&O.savePreferences({defaultProvider:j,defaultEngine:Q(p)??"cli"}).catch(()=>{})},onKindChange:l=>{B(l),h&&O.savePreferences({defaultSessionKind:l}).catch(()=>{})},onModelChange:l=>{T(l);let p=_(r);h&&p&&k1.getRuntime()?.rememberModelPreference(p,J(l))}})}function Be({eyebrow:r,title:c,subtitle:s,cwd:i,submitLabel:h="\u5F00\u59CB",teams:m=null,teamWorkspaceId:f="",onStart:k,onStartTeam:R}){let[d,B]=(0,F.useState)("claude"),[T,g]=(0,F.useState)("structured"),[v,D]=(0,F.useState)(u1),[M,l]=(0,F.useState)(""),[p,j]=(0,F.useState)(""),[S,$]=(0,F.useState)(!1),[P,H]=(0,F.useState)(""),L=A1.useRef(!1);(0,F.useEffect)(()=>{let n=!1;return O.loadConfig().then(E=>{if(n||L.current)return;let b=Z.some(V=>V.value===E.defaultProvider)?E.defaultProvider==="pi"&&E.defaultEngine==="sdk"?U:E.defaultProvider:null;b&&b!=="shell"&&(B(b),D(w(b))),(E.defaultSessionKind==="pty"||E.defaultSessionKind==="structured")&&g(E.defaultSessionKind)}).catch(()=>{}),()=>{n=!0}},[]);async function C(n){if(n.preventDefault(),!S){$(!0),H("");try{if(M){if(!R||!f)throw new Error(Y);await R(M,f);return}if(p){await k(d,"structured","",p);return}await k(d,d==="shell"?"pty":T,J(v))}catch(E){H(E instanceof Error&&E.message?E.message:"\u65E0\u6CD5\u542F\u52A8\u4F1A\u8BDD\u3002")}finally{$(!1)}}}let W=p?"\u7845\u57FA\u5458\u5DE5":M?m?.find(n=>n.id===M)?.name??"AI \u56E2\u961F":d==="shell"?"\u7A7A\u767D\u7EC8\u7AEF":e1(d);return(0,u.jsx)(W1,{icon:(0,u.jsx)(q,{name:"task",size:36,strokeWidth:1.8}),title:c,subTitle:s,extra:(0,u.jsx)(R1,{noValidate:!0,"aria-busy":S,onSubmit:n=>{C(n)},children:(0,u.jsxs)(E1,{vertical:!0,gap:16,style:{maxWidth:600,marginInline:"auto",textAlign:"start"},children:[r?(0,u.jsx)(X.Text,{type:"secondary",children:r}):null,(0,u.jsx)(G1,{target:d,kind:T,model:v,disabled:S,teams:m,teamWorkspaceId:f,teamId:M,employeeId:p,onTargetChange:n=>{L.current=!0,B(n),D(w(n))},onKindChange:n=>{L.current=!0,g(n)},onModelChange:n=>{L.current=!0,D(n)},onTeamChange:n=>{L.current=!0,l(n)},onEmployeeChange:n=>{L.current=!0,j(n)}}),P?(0,u.jsx)(m1,{type:"error",showIcon:!0,role:"alert",title:P}):null,(0,u.jsx)(h1,{kind:"primary",size:"large",type:"submit",disabled:S,children:S?M?"\u6B63\u5728\u5F00\u5DE5\u2026":"\u6B63\u5728\u542F\u52A8\u2026":`${h}${W}`}),i?(0,u.jsxs)(X.Text,{type:"secondary",ellipsis:!0,title:i,children:[(0,u.jsx)(q,{name:"folder",size:13,strokeWidth:1.8})," ",i]}):null]})})})}export{Y as TEAM_NEEDS_PROJECT_HINT,Z as WORKSPACE_AGENT_OPTIONS,N1 as WORKSPACE_KIND_OPTIONS,G1 as WorkspaceAgentPicker,Be as WorkspaceWelcomeChooser,z1 as usableTeamWorkspaceId,e1 as workspaceAgentLabel,w as workspaceModelDefault};