@intent-hq/web 2.365.0 → 2.365.2

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 (143) hide show
  1. package/package.json +1 -1
  2. package/web/app/immutable/chunks/{CjiwXj-g.js → -FvGxaYP.js} +1 -1
  3. package/web/app/immutable/chunks/{BMEAT0TF.js → 0B7Q8v9n.js} +1 -1
  4. package/web/app/immutable/chunks/{CWCmwtaT.js → 0xS-75mY.js} +1 -1
  5. package/web/app/immutable/chunks/{3iolIAwd.js → 4AWS92de.js} +3 -3
  6. package/web/app/immutable/chunks/{gJi9ouj3.js → 4b6Kq3tJ.js} +3 -3
  7. package/web/app/immutable/chunks/{BgHKj8Lf.js → 5udn86t0.js} +1 -1
  8. package/web/app/immutable/chunks/{CgA5s6JR.js → 6RNYeQft.js} +1 -1
  9. package/web/app/immutable/chunks/{CIC9r-Zq.js → A75uzxLd.js} +3 -3
  10. package/web/app/immutable/chunks/{BFkQvJyF.js → A8wPsq0F.js} +53 -53
  11. package/web/app/immutable/chunks/{BUy9CatA.js → APmstwP5.js} +1 -1
  12. package/web/app/immutable/chunks/{DDNqIPXh.js → B02VOKO8.js} +2 -2
  13. package/web/app/immutable/chunks/{dKRsJqbo.js → B1T1jKgP.js} +6 -6
  14. package/web/app/immutable/chunks/{DHAPKUqz.js → B3jO_63a.js} +1 -1
  15. package/web/app/immutable/chunks/{yMXDdQ7F.js → BD3MwpxF.js} +1 -1
  16. package/web/app/immutable/chunks/{dBMqs1mm.js → BKHIBTx4.js} +1 -1
  17. package/web/app/immutable/chunks/{QYEePElC.js → BKqUtwx6.js} +1 -1
  18. package/web/app/immutable/chunks/{B1l2h1VV.js → BLCoN16l.js} +1 -1
  19. package/web/app/immutable/chunks/{gUJFvDs2.js → BM1emzRr.js} +1 -1
  20. package/web/app/immutable/chunks/{CeRV_3CI.js → BOrmWowX.js} +1 -1
  21. package/web/app/immutable/chunks/{CD3cbtxN.js → BPIybOms.js} +1 -1
  22. package/web/app/immutable/chunks/{AmpZgI9R.js → BPN-Likg.js} +3 -3
  23. package/web/app/immutable/chunks/{uF8K2sx6.js → BUEceROh.js} +2 -2
  24. package/web/app/immutable/chunks/{BMF25BiQ.js → BUIAIc_O.js} +1 -1
  25. package/web/app/immutable/chunks/{DKStgIlw.js → BVA6rkcP.js} +4 -4
  26. package/web/app/immutable/chunks/{C28RWNJE.js → BWAoi_nX.js} +1 -1
  27. package/web/app/immutable/chunks/{m1-2SLgl.js → BYi1LHpB.js} +1 -1
  28. package/web/app/immutable/chunks/{hixmrZA0.js → B_Uo3LjB.js} +1 -1
  29. package/web/app/immutable/chunks/{DjTyBeFU.js → BaxK9vhI.js} +2 -2
  30. package/web/app/immutable/chunks/{CEYa9Irz.js → Be1tqvyn.js} +1 -1
  31. package/web/app/immutable/chunks/{CwXJrsy1.js → BfHLmKhD.js} +1 -1
  32. package/web/app/immutable/chunks/{BxXmN8C1.js → Bg-aqKXt.js} +1 -1
  33. package/web/app/immutable/chunks/{QCPAD84f.js → BhHzQHSV.js} +1 -1
  34. package/web/app/immutable/chunks/{D-Hopyp-.js → BmU3aeP8.js} +2 -2
  35. package/web/app/immutable/chunks/{Cpusesk4.js → Bmz09DkI.js} +1 -1
  36. package/web/app/immutable/chunks/{CaKEpkEv.js → BnS7ei63.js} +1 -1
  37. package/web/app/immutable/chunks/{D7fo-Wvo.js → BpKci5Ku.js} +1 -1
  38. package/web/app/immutable/chunks/{BlabsmnJ.js → BrX0TI9y.js} +1 -1
  39. package/web/app/immutable/chunks/{BbYFq4aB.js → BsgHSD6W.js} +1 -1
  40. package/web/app/immutable/chunks/{CV1py53p.js → BtaMiCr5.js} +1 -1
  41. package/web/app/immutable/chunks/{8MGpSl9b.js → BzM8Has0.js} +1 -1
  42. package/web/app/immutable/chunks/{DsYmD-ep.js → C-EEgOSK.js} +1 -1
  43. package/web/app/immutable/chunks/{CPGFEajT.js → C0F_kzVt.js} +1 -1
  44. package/web/app/immutable/chunks/{CljA4gfU.js → C1ECYssJ.js} +2 -2
  45. package/web/app/immutable/chunks/{PaT7b0Ds.js → C8-U6LK9.js} +1 -1
  46. package/web/app/immutable/chunks/{CaTC3kvL.js → CDPobNmb.js} +3 -3
  47. package/web/app/immutable/chunks/{fOYvCKuw.js → CERdQBT2.js} +1 -1
  48. package/web/app/immutable/chunks/{73PNfJCO.js → CFijJviB.js} +1 -1
  49. package/web/app/immutable/chunks/{CQu1wzu3.js → CGPgsggz.js} +1 -1
  50. package/web/app/immutable/chunks/{dQbwSHlB.js → CPKJQkDY.js} +2 -2
  51. package/web/app/immutable/chunks/{BAsugYkE.js → CUYd8b-6.js} +1 -1
  52. package/web/app/immutable/chunks/{vYueGi3n.js → CXE0KbZs.js} +1 -1
  53. package/web/app/immutable/chunks/{BLDqdw1F.js → C_tq5OHb.js} +1 -1
  54. package/web/app/immutable/chunks/{Dg4cj9vl.js → Ca7II05m.js} +1 -1
  55. package/web/app/immutable/chunks/{D_gzP-ys.js → Cdbgk8ir.js} +1 -1
  56. package/web/app/immutable/chunks/{BihkJsqe.js → CeYui3s1.js} +1 -1
  57. package/web/app/immutable/chunks/{DAY_WHtU.js → CeZwJHvf.js} +1 -1
  58. package/web/app/immutable/chunks/{OZbo8xoU.js → Ceoti51u.js} +1 -1
  59. package/web/app/immutable/chunks/{BEIa0MMb.js → CfPrltta.js} +1 -1
  60. package/web/app/immutable/chunks/{XwaoL8Lm.js → Ci48jbGC.js} +1 -1
  61. package/web/app/immutable/chunks/{C282LNKB.js → ClE0toNS.js} +1 -1
  62. package/web/app/immutable/chunks/{KB4bFLwz.js → ClMmMgCD.js} +1 -1
  63. package/web/app/immutable/chunks/{GsEct_hW.js → Cr0fLwOu.js} +1 -1
  64. package/web/app/immutable/chunks/{CIOP6AMl.js → CrB6tgeT.js} +3 -3
  65. package/web/app/immutable/chunks/{pURqtRkT.js → Csa04qXu.js} +1 -1
  66. package/web/app/immutable/chunks/{DCCz1NNc.js → Cz8U_BhG.js} +1 -1
  67. package/web/app/immutable/chunks/{CKMgAIkO.js → D-sc8KNL.js} +1 -1
  68. package/web/app/immutable/chunks/{C1LaBjf2.js → D0FyWJCg.js} +1 -1
  69. package/web/app/immutable/chunks/{DGAOkf5G.js → D0j9kjWE.js} +1 -1
  70. package/web/app/immutable/chunks/{CBsdGtQV.js → D3c3sLpX.js} +1 -1
  71. package/web/app/immutable/chunks/{Q0b4mMUd.js → D6_50bPj.js} +1 -1
  72. package/web/app/immutable/chunks/{-ugFrjBP.js → D8-xFBX8.js} +1 -1
  73. package/web/app/immutable/chunks/{DU5U6sZ4.js → DE35PYUh.js} +1 -1
  74. package/web/app/immutable/chunks/{DbH_6hIt.js → DFrOZp-X.js} +1 -1
  75. package/web/app/immutable/chunks/{J5tyH4KI.js → DJUIc5At.js} +1 -1
  76. package/web/app/immutable/chunks/{BHUUHkBu.js → DKe2FlOB.js} +1 -1
  77. package/web/app/immutable/chunks/{D03heroa.js → DMhvq8HB.js} +1 -1
  78. package/web/app/immutable/chunks/{CC3KUVRg.js → DN-C1UIq.js} +2 -2
  79. package/web/app/immutable/chunks/{BnCNqKRU.js → DNv_RGW3.js} +1 -1
  80. package/web/app/immutable/chunks/{DFWsNv-9.js → DPCNtTZq.js} +1 -1
  81. package/web/app/immutable/chunks/{DXBo-ieH.js → DPUp3KYX.js} +1 -1
  82. package/web/app/immutable/chunks/{CXZX0Jyy.js → DQDmfNyd.js} +1 -1
  83. package/web/app/immutable/chunks/{D5YE7F3s.js → DQWu85Mb.js} +2 -2
  84. package/web/app/immutable/chunks/{2t2LgMaE.js → DR3YuSFV.js} +1 -1
  85. package/web/app/immutable/chunks/{D6tHef4X.js → DRUI_xnx.js} +1 -1
  86. package/web/app/immutable/chunks/{CgL7BKGj.js → DT9dG-TY.js} +1 -1
  87. package/web/app/immutable/chunks/{B4hoYjE1.js → DUrytYjS.js} +1 -1
  88. package/web/app/immutable/chunks/{D51stRIp.js → D_AmMnb5.js} +1 -1
  89. package/web/app/immutable/chunks/{CKLHmnzS.js → DaUgBLNw.js} +1 -1
  90. package/web/app/immutable/chunks/{DD4D50zt.js → DcT7aUbr.js} +3 -3
  91. package/web/app/immutable/chunks/{FdmBXH7-.js → DdFkN_Uh.js} +3 -3
  92. package/web/app/immutable/chunks/{DUwMZIs5.js → DdUNQfBj.js} +1 -1
  93. package/web/app/immutable/chunks/{-ogTTEVR.js → DeOcwvAg.js} +1 -1
  94. package/web/app/immutable/chunks/{DUhz2O6j.js → DgQR8hwI.js} +2 -2
  95. package/web/app/immutable/chunks/{CVOMPYj7.js → DjZBBD78.js} +1 -1
  96. package/web/app/immutable/chunks/{C7gK0hjH.js → DoUhQNMs.js} +1 -1
  97. package/web/app/immutable/chunks/{DyIdFHWg.js → Dq9wWY8h.js} +4 -4
  98. package/web/app/immutable/chunks/{BN40Pz7Q.js → DqXlwkEw.js} +1 -1
  99. package/web/app/immutable/chunks/{BosDWqqJ.js → DqYxGkQL.js} +1 -1
  100. package/web/app/immutable/chunks/{chQKQ42P.js → Ds2frkR2.js} +1 -1
  101. package/web/app/immutable/chunks/{uYiY7g1G.js → DsYzG-3M.js} +1 -1
  102. package/web/app/immutable/chunks/{Cm1ymPOr.js → Du3d0ZG1.js} +1 -1
  103. package/web/app/immutable/chunks/{DMwhpJPa.js → DuGiQV5V.js} +1 -1
  104. package/web/app/immutable/chunks/{CIuVMN6u.js → Dv8Emx47.js} +1 -1
  105. package/web/app/immutable/chunks/{COopnGAi.js → Dwj6kdDc.js} +1 -1
  106. package/web/app/immutable/chunks/{C4vS05Jk.js → Dyv3Jj2a.js} +1 -1
  107. package/web/app/immutable/chunks/{VmEbWn47.js → DzJIX3GL.js} +1 -1
  108. package/web/app/immutable/chunks/{DgHGLFU5.js → DzNGKDWB.js} +3 -3
  109. package/web/app/immutable/chunks/{C_mcjZaG.js → Dzx9X-9k.js} +1 -1
  110. package/web/app/immutable/chunks/{Daw9x1so.js → HmoNvWUs.js} +1 -1
  111. package/web/app/immutable/chunks/{Doch7eZJ.js → OUquJguY.js} +1 -1
  112. package/web/app/immutable/chunks/{BuiibPQ0.js → Pn_zpYMA.js} +2 -2
  113. package/web/app/immutable/chunks/{BUGywCIT.js → Rm2Ltxr1.js} +1 -1
  114. package/web/app/immutable/chunks/{D8O2ptyi.js → RpqMTdHp.js} +1 -1
  115. package/web/app/immutable/chunks/{B4Gw4u41.js → UMoQbEGi.js} +1 -1
  116. package/web/app/immutable/chunks/{CrjrDD4B.js → Uc65kQcs.js} +1 -1
  117. package/web/app/immutable/chunks/{D-HlUjN8.js → WHU-VgW2.js} +1 -1
  118. package/web/app/immutable/chunks/{DcF7bBOi.js → bpjEJ3Vs.js} +1 -1
  119. package/web/app/immutable/chunks/{IOZQYi_N.js → cEbJGV0n.js} +1 -1
  120. package/web/app/immutable/chunks/{CRAXdXhx.js → fMSSCdyW.js} +1 -1
  121. package/web/app/immutable/chunks/{BACGkWpW.js → pW4P-CQP.js} +1 -1
  122. package/web/app/immutable/chunks/{BBV9e85e.js → qz4jsx2y.js} +1 -1
  123. package/web/app/immutable/chunks/{SfwE5ZCh.js → tZdyA4Cc.js} +1 -1
  124. package/web/app/immutable/chunks/{B_bCRHRO.js → tg0ajfyX.js} +1 -1
  125. package/web/app/immutable/entry/{app.jyFRb7mj.js → app.B_j4c4ni.js} +2 -2
  126. package/web/app/immutable/entry/start.CShKopZ1.js +1 -0
  127. package/web/app/immutable/nodes/{0.CMRnckcg.js → 0.pKLAp1FZ.js} +1 -1
  128. package/web/app/immutable/nodes/{1.DA5kZHG8.js → 1.V5hFULBJ.js} +1 -1
  129. package/web/app/immutable/nodes/{10.CMlavsC2.js → 10.DTk6oKYi.js} +4 -4
  130. package/web/app/immutable/nodes/{11.HWYVN_5u.js → 11.BuHoaGEB.js} +1 -1
  131. package/web/app/immutable/nodes/{15.gWMczKN8.js → 15.CdCP66mF.js} +1 -1
  132. package/web/app/immutable/nodes/{19.tLEj2iwM.js → 19.BgOZ-pEt.js} +2 -2
  133. package/web/app/immutable/nodes/{2.B0ukOd9w.js → 2.DW28_r0R.js} +4 -4
  134. package/web/app/immutable/nodes/{3.DjzGGcqZ.js → 3.Dk7zPLK1.js} +1 -1
  135. package/web/app/immutable/nodes/{4.BU55NPd2.js → 4.Bz5UF4_5.js} +1 -1
  136. package/web/app/immutable/nodes/{5.DwlV2hhR.js → 5.B1xW3m_S.js} +1 -1
  137. package/web/app/immutable/nodes/{6.Cu59QBVh.js → 6.DSxB0Tsx.js} +1 -1
  138. package/web/app/immutable/nodes/{7.CxjNtSrB.js → 7.DLMT-3--.js} +1 -1
  139. package/web/app/immutable/nodes/{8.CxVOKV5c.js → 8.I5kk_EaM.js} +1 -1
  140. package/web/app/immutable/nodes/{9.BBKdDnSL.js → 9.B05AownH.js} +4 -4
  141. package/web/app/version.json +1 -1
  142. package/web/index.html +9 -9
  143. package/web/app/immutable/entry/start.CzSqdTuj.js +0 -1
@@ -1,5 +1,5 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/CC3KUVRg.js","/app/immutable/chunks/DUPdECze.js","/app/immutable/chunks/CJxGDkBm.js","/app/immutable/chunks/BdWqymET.js","/app/immutable/chunks/Dou_hoaA.js","/app/immutable/chunks/PVXvIyE8.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/CxNkcb8W.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/chunks/NvPqoUzX.js","/app/immutable/chunks/DxwfiAWm.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/chunks/gsFx6FSh.js","/app/immutable/chunks/DCCz1NNc.js","/app/immutable/chunks/BDjmUG9E.js","/app/immutable/chunks/BxPVGrtc.js","/app/immutable/chunks/DYGZj8tM.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/CdO4czEi.js","/app/immutable/chunks/NtFyWdpR.js","/app/immutable/chunks/CDDY7bU6.js","/app/immutable/chunks/DeOvWG_V.js","/app/immutable/chunks/BophAjr8.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/DKOGfBeL.js","/app/immutable/chunks/Db6vgmuJ.js","/app/immutable/chunks/CzTFPES1.js","/app/immutable/chunks/CtnMBSuA.js","/app/immutable/chunks/DJfJ5NWH.js","/app/immutable/chunks/DWlZtz5u.js","/app/immutable/chunks/tAo3FW4C.js","/app/immutable/chunks/BoIfXiRv.js","/app/immutable/chunks/XJv96NUg.js","/app/immutable/assets/notify.B1j5oT2y.css","/app/immutable/chunks/R5qsERXh.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/Dc_PiRux.js","/app/immutable/chunks/1d4tWxyl.js","/app/immutable/chunks/Cu2deF-X.js","/app/immutable/chunks/DDNqIPXh.js","/app/immutable/chunks/DKwAaLwd.js","/app/immutable/chunks/CflYgBql.js","/app/immutable/chunks/Bu_2dHSO.js","/app/immutable/chunks/B2F1R5gp.js","/app/immutable/chunks/Ddv73vDp.js","/app/immutable/chunks/BJNB3KvG.js","/app/immutable/chunks/B5aYN90J.js"])))=>i.map(i=>d[i]);
2
- import{t as Dt,bo as h,bw as Bt,b as Ft,bm as g,bp as Df,bs as yt,bq as ma,br as zs,b6 as ql,bj as Bf,b9 as Ff,bi as zf,ba as Hf,bf as jf,a$ as Wf,b3 as Uf,bh as qf,bk as Vf,a_ as Kf,b8 as Gf,b7 as Jf,b1 as Yf,be as Xf,bl as Zf,bu as Vl,bd as Qf,b5 as $f,b4 as eg,b2 as tg,bc as rg,bb as ng,bg as ag,b0 as og,_ as sg}from"./DUPdECze.js";import{bI as ig,bj as bo,aG as lg,bs as zt,ca as _t,c0 as Un,aD as e,a7 as ht,ay as De,bS as m,be as rr,b$ as jt,b_ as S,bO as x,W as u,bH as T,c9 as d,a5 as E,bl as N,bA as w,bn as Ht,bV as ve,aA as b,aB as k,c5 as vn,aC as Ua,bo as zo,br as Yr,bk as os,ai as so,cd as Ro,aw as Mn,a as cg,aj as Mr,c7 as dg,c6 as Kl,bf as Es,bz as Bd}from"./CJxGDkBm.js";import{i as F}from"./BxPVGrtc.js";import{k as oo}from"./Db6vgmuJ.js";import{g as Lt,h as ug,e as qn,I as ss,i as Rr,o as pg,p as fg,f as gg,s as vg}from"./CDDY7bU6.js";import{s as gn}from"./NvPqoUzX.js";import{c as Ir}from"./DKOGfBeL.js";import{n as Ti}from"./tAo3FW4C.js";import{b as mg,s as oe,g as Ln,e as Sn,c as lr,f as pt}from"./DYGZj8tM.js";import{b as vr}from"./NtFyWdpR.js";import{p as Fd,bG as zd,cX as Hd,dS as hg,dE as bg,aI as yg,cG as _g,ac as xg,d1 as wg,dD as Zo,aN as Hs,ce as kg,R as Sg,b as Ig,a9 as Gl,d7 as Cg,c2 as Eg,X as Pg,dz as Ag,a3 as Tg,dJ as Rg,aq as Mg,c_ as Lg,aE as Ng,n as Og,H as Dg}from"./R5qsERXh.js";import{c as Bg}from"./D-62MVd3.js";import{m as Wn,w as Fg,C as jd,c as zg,R as Hg}from"./BDjmUG9E.js";import{aa as Wd,f as St,ah as Ao,ae as Ri}from"./CdO4czEi.js";import{w as jg,F as Wg}from"./DeOvWG_V.js";import{T as Ug}from"./BOlG4HwD.js";import{F as Rt,bj as Mi,bO as qg,aq as Vg,aS as Kg,cQ as Gg,bn as sl,bE as Jg,aI as Ud,aN as il,d3 as Ps,ad as Li,cs as Yg,ch as Xg,cn as ll,cK as cl,bv as Zg,e as Qg,c3 as Jl,cd as $g,cq as ev,c$ as qd,bY as tv,ba as ci,bg as Go,aH as rv,aB as Ni,aw as Vd,be as Kd,bF as nv,B as av,by as ov,a2 as Gd,b5 as sv,a8 as Jd,cl as iv,an as Yd,cS as Xd,cO as Yl,au as Zd,aM as Xl,cA as lv,cZ as cv,cT as dv,aL as uv,b1 as pv,bR as Qd,bp as fv,ap as dl,c9 as Zl,aA as gv,ab as vv,a9 as mv}from"./DWlZtz5u.js";import{c as $d}from"./ChTqQfQN.js";import{g as hv}from"./CtnMBSuA.js";import{I$ as Ot,bT as bv,si as Ql,sT as yv,JR as _v,JX as xv,i as eu,IE as tu,nK as ru,n_ as nu,nZ as au,nD as js,qm as ul,yq as wv,vs as xs,uL as Oi,vu as kv,nr as ou,J4 as Sv,tz as Iv,oO as su,rC as pl,m8 as $l,a5 as ec,r6 as Cv,r2 as Ev,r7 as Pv,q_ as Av,r4 as Tv,vi as Rv,B3 as iu,B7 as lu,n$ as tc,bl as Di,Hn as Mv,IA as Lv,hg as rc,hf as Nv,nV as Ov,wt as Dv,wu as Bv,ws as nc,C2 as oa,cy as cu,cm as Fv,xr as zv,d7 as Hv,de as jv,Bd as Wv}from"./Dou_hoaA.js";import{z as du,I as uu}from"./gsFx6FSh.js";import{e as ac,i as pu}from"./1d4tWxyl.js";import{e as oc,d as fu,b as Uv,a as qv,f as Vv,I as Kv}from"./B_bCRHRO.js";import{b as gu}from"./PBL2-Yli.js";/* empty css */import{d as vu,G as mu,R as hu,g as bu,f as Gv,M as yu,C as Jv,q as fl,l as Yv,h as Xv,e as Zv,a as _u,o as Qv,S as Eo,K as $v}from"./B5sCzlWo.js";import{D as em,e as tm}from"./CxNkcb8W.js";import"./O8wCypGr.js";import"./Cez5l2e8.js";import"./LvmqpfcL.js";import{b as rm}from"./DtUqlXbM.js";import{r as nm}from"./DVdY8Cc0.js";import{a6 as am,ck as om,cm as sm,cl as im,b3 as lm,b1 as cm,b2 as dm,a4 as um,am as ms,al as pm,cV as fm,aB as sc,aJ as gm,ak as vm,C as mm,i as hm,E as ws,cW as bm,aY as ic,c$ as ym,ah as _m,a9 as xm,r as wm,p as km,aG as Sm,d2 as Im,cM as Cm,cF as Em,R as Pm,cw as Am,bU as Tm}from"./J5tyH4KI.js";import{v as Rm,k as Mm,E as Lm,l as Nm,V as Om,q as Dm,n as Bm,A as lc,s as Fm,I as zm,R as Hm,m as jm,W as Wm,o as xu,S as wu,i as Um,g as cc,f as qm,e as Vm,j as Km,h as Gm,c as dc,r as Jm}from"./DD4D50zt.js";import{a as Ym}from"./Cm1ymPOr.js";import{aA as Xm,aH as Zm,g as Qm,n as $m,aK as eh,K as th,M as rh,O as nh,at as ah,aD as oh,av as sh}from"./CflYgBql.js";import{f as ih,e as lh,m as Bi,bF as ch,B as dh,bE as uh,bB as ph,ai as uc,bD as fh,be as Fi,ar as gh,k as vh,b4 as mh,q as pc,A as hh,L as fc}from"./DCCz1NNc.js";import{i as bh,I as Mo,c as gc}from"./Dlc9o8A3.js";import{A as yh,s as _h}from"./3iolIAwd.js";import{e as vc,l as mc,M as ku,m as zi,w as vo}from"./C4vS05Jk.js";import{b as Su}from"./D0Mixsx9.js";import{H as xh}from"./uaMLzsQ7.js";import{t as Qo}from"./DAsc1V4f.js";import{a as wh}from"./BlNY__m5.js";import{P as kh}from"./BIfeWxYG.js";import{C as Hi}from"./CmU8A6S6.js";import"./uF8K2sx6.js";import{d as Sh,c as Ih}from"./CXs9CJFc.js";import{O as Ch,M as Eh}from"./DR6lkAOz.js";import{aQ as Ph,aY as Ah,aB as Th,b0 as Rh,aO as Mh,aU as Lh,a7 as No,b3 as hc,aK as Nh,aR as Oh,aX as gl,aS as vl,W as di,aq as Dh,X as Bh,a_ as Fh,aJ as zh,aT as Hh,aW as jh,b6 as Wh,b4 as Uh,ay as Iu,p as qh,n as Vh,aV as Kh,_ as Gh,ao as Jh,aD as Yh,z as Xh,aC as Zh,a8 as Qh}from"./DgHGLFU5.js";import{s as ji}from"./CQu1wzu3.js";import{e as bc}from"./BP_Uw__C.js";import{M as $h}from"./D2QYaH-I.js";import{s as eb,a as tb}from"./BsieX9dN.js";import{u as ml,w as rb,v as Ws,I as nb,A as yc,e as Oo,d as Fa,J as _c,c as ab,f as ob,g as xc,i as sb,b as ib,o as Cu,j as lb,q as Wi,r as cb,O as db,x as ub,k as Eu,S as pb,N as fb,p as gb,n as wc,z as vb,s as mb}from"./B1l2h1VV.js";import{o as kc,T as ui,a as hb}from"./D5YE7F3s.js";import{O as bb,x as yb,i as _b,g as xb,T as wb,d as kb}from"./BeAfjfr4.js";import{D as $o}from"./C28RWNJE.js";import{l as or,e as Sb,f as Sc,m as Ic}from"./CzTFPES1.js";import{A as es}from"./CfruS_oL.js";import"./CuOzd6CB.js";import{h as Pu}from"./BigcqNWS.js";import{C as fa}from"./sCRZaCJk.js";import{M as Ib}from"./DKStgIlw.js";/* empty css */import{g as hl}from"./rvnDEnqx.js";import{h as Ui}from"./CC3KUVRg.js";import{f as Cc,d as Cb}from"./DbH_6hIt.js";import{c as ks}from"./DIcAJPWy.js";import{handleIntentLink as Eb}from"./DjTyBeFU.js";import{a as Ec}from"./D0H3cACA.js";import{t as qi}from"./D2MmXC4A.js";import{s as Pb,a as Ab,M as Au}from"./gJi9ouj3.js";import{b as Tb,k as Rb}from"./Ddv73vDp.js";import{m as Mb}from"./PVXvIyE8.js";import{showAssistantContent as Lb}from"./D-Hopyp-.js";import{o as As,c as Nb,n as Ob}from"./BosDWqqJ.js";import{p as Db}from"./KB4bFLwz.js";import{H as Bb}from"./B8dlSoA0.js";import{d as Fb,c as zb,r as Hb,g as jb,w as Jo,e as Wb,W as Ub,b as qb}from"./CIOP6AMl.js";import{A as Pc}from"./BD1NrJz7.js";import{m as Vb}from"./BOXv-Vsz.js";import{h as hs}from"./1KlOAsvK.js";import{g as Kb,e as Gb,f as Jb,h as Yb}from"./B5aYN90J.js";import{T as pi}from"./8FzUlqXC.js";import"./Cp7HmDFx.js";import{S as Wa}from"./BcGvQa_4.js";import{M as Xb,L as Zb,W as Qb,I as $b}from"./BJNB3KvG.js";import{S as ts,a as Vi,T as Tu,U as Ki,K as ey,A as ty,P as ry,N as ny,j as ay,R as Ac,V as oy}from"./BBBowEhf.js";import{D as sy}from"./BP0mUOHP.js";import{a as iy}from"./BOhDcNg3.js";import{a as ly}from"./BdWqymET.js";import{p as cy}from"./IOZQYi_N.js";const dy="intent:inline-visual-draft";function pP(r,t){const n=t.title.replace(/\s+/g," ").trim(),a=JSON.stringify({inputs:t.inputs,results:t.results},null,2),o=(a.match(/`+/g)??[]).reduce((c,l)=>Math.max(c,l.length),0),s="`".repeat(Math.max(3,o+1));return`${r}${r?`
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/DN-C1UIq.js","/app/immutable/chunks/DUPdECze.js","/app/immutable/chunks/CJxGDkBm.js","/app/immutable/chunks/BdWqymET.js","/app/immutable/chunks/Dou_hoaA.js","/app/immutable/chunks/PVXvIyE8.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/CxNkcb8W.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/chunks/NvPqoUzX.js","/app/immutable/chunks/DxwfiAWm.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/chunks/gsFx6FSh.js","/app/immutable/chunks/Cz8U_BhG.js","/app/immutable/chunks/BDjmUG9E.js","/app/immutable/chunks/BxPVGrtc.js","/app/immutable/chunks/DYGZj8tM.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/CdO4czEi.js","/app/immutable/chunks/NtFyWdpR.js","/app/immutable/chunks/CDDY7bU6.js","/app/immutable/chunks/DeOvWG_V.js","/app/immutable/chunks/BophAjr8.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/DKOGfBeL.js","/app/immutable/chunks/Db6vgmuJ.js","/app/immutable/chunks/CzTFPES1.js","/app/immutable/chunks/CtnMBSuA.js","/app/immutable/chunks/DJfJ5NWH.js","/app/immutable/chunks/DWlZtz5u.js","/app/immutable/chunks/tAo3FW4C.js","/app/immutable/chunks/BoIfXiRv.js","/app/immutable/chunks/XJv96NUg.js","/app/immutable/assets/notify.B1j5oT2y.css","/app/immutable/chunks/R5qsERXh.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/Dc_PiRux.js","/app/immutable/chunks/1d4tWxyl.js","/app/immutable/chunks/Cu2deF-X.js","/app/immutable/chunks/B02VOKO8.js","/app/immutable/chunks/DKwAaLwd.js","/app/immutable/chunks/CflYgBql.js","/app/immutable/chunks/Bu_2dHSO.js","/app/immutable/chunks/B2F1R5gp.js","/app/immutable/chunks/Ddv73vDp.js","/app/immutable/chunks/BJNB3KvG.js","/app/immutable/chunks/B5aYN90J.js"])))=>i.map(i=>d[i]);
2
+ import{t as Dt,bo as h,bw as Bt,b as Ft,bm as g,bp as Df,bs as yt,bq as ma,br as zs,b6 as ql,bj as Bf,b9 as Ff,bi as zf,ba as Hf,bf as jf,a$ as Wf,b3 as Uf,bh as qf,bk as Vf,a_ as Kf,b8 as Gf,b7 as Jf,b1 as Yf,be as Xf,bl as Zf,bu as Vl,bd as Qf,b5 as $f,b4 as eg,b2 as tg,bc as rg,bb as ng,bg as ag,b0 as og,_ as sg}from"./DUPdECze.js";import{bI as ig,bj as bo,aG as lg,bs as zt,ca as _t,c0 as Un,aD as e,a7 as ht,ay as De,bS as m,be as rr,b$ as jt,b_ as S,bO as x,W as u,bH as T,c9 as d,a5 as E,bl as N,bA as w,bn as Ht,bV as ve,aA as b,aB as k,c5 as vn,aC as Ua,bo as zo,br as Yr,bk as os,ai as so,cd as Ro,aw as Mn,a as cg,aj as Mr,c7 as dg,c6 as Kl,bf as Es,bz as Bd}from"./CJxGDkBm.js";import{i as F}from"./BxPVGrtc.js";import{k as oo}from"./Db6vgmuJ.js";import{g as Lt,h as ug,e as qn,I as ss,i as Rr,o as pg,p as fg,f as gg,s as vg}from"./CDDY7bU6.js";import{s as gn}from"./NvPqoUzX.js";import{c as Ir}from"./DKOGfBeL.js";import{n as Ti}from"./tAo3FW4C.js";import{b as mg,s as oe,g as Ln,e as Sn,c as lr,f as pt}from"./DYGZj8tM.js";import{b as vr}from"./NtFyWdpR.js";import{p as Fd,bG as zd,cX as Hd,dS as hg,dE as bg,aI as yg,cG as _g,ac as xg,d1 as wg,dD as Zo,aN as Hs,ce as kg,R as Sg,b as Ig,a9 as Gl,d7 as Cg,c2 as Eg,X as Pg,dz as Ag,a3 as Tg,dJ as Rg,aq as Mg,c_ as Lg,aE as Ng,n as Og,H as Dg}from"./R5qsERXh.js";import{c as Bg}from"./D-62MVd3.js";import{m as Wn,w as Fg,C as jd,c as zg,R as Hg}from"./BDjmUG9E.js";import{aa as Wd,f as St,ah as Ao,ae as Ri}from"./CdO4czEi.js";import{w as jg,F as Wg}from"./DeOvWG_V.js";import{T as Ug}from"./BOlG4HwD.js";import{F as Rt,bj as Mi,bO as qg,aq as Vg,aS as Kg,cQ as Gg,bn as sl,bE as Jg,aI as Ud,aN as il,d3 as Ps,ad as Li,cs as Yg,ch as Xg,cn as ll,cK as cl,bv as Zg,e as Qg,c3 as Jl,cd as $g,cq as ev,c$ as qd,bY as tv,ba as ci,bg as Go,aH as rv,aB as Ni,aw as Vd,be as Kd,bF as nv,B as av,by as ov,a2 as Gd,b5 as sv,a8 as Jd,cl as iv,an as Yd,cS as Xd,cO as Yl,au as Zd,aM as Xl,cA as lv,cZ as cv,cT as dv,aL as uv,b1 as pv,bR as Qd,bp as fv,ap as dl,c9 as Zl,aA as gv,ab as vv,a9 as mv}from"./DWlZtz5u.js";import{c as $d}from"./ChTqQfQN.js";import{g as hv}from"./CtnMBSuA.js";import{I$ as Ot,bT as bv,si as Ql,sT as yv,JR as _v,JX as xv,i as eu,IE as tu,nK as ru,n_ as nu,nZ as au,nD as js,qm as ul,yq as wv,vs as xs,uL as Oi,vu as kv,nr as ou,J4 as Sv,tz as Iv,oO as su,rC as pl,m8 as $l,a5 as ec,r6 as Cv,r2 as Ev,r7 as Pv,q_ as Av,r4 as Tv,vi as Rv,B3 as iu,B7 as lu,n$ as tc,bl as Di,Hn as Mv,IA as Lv,hg as rc,hf as Nv,nV as Ov,wt as Dv,wu as Bv,ws as nc,C2 as oa,cy as cu,cm as Fv,xr as zv,d7 as Hv,de as jv,Bd as Wv}from"./Dou_hoaA.js";import{z as du,I as uu}from"./gsFx6FSh.js";import{e as ac,i as pu}from"./1d4tWxyl.js";import{e as oc,d as fu,b as Uv,a as qv,f as Vv,I as Kv}from"./tg0ajfyX.js";import{b as gu}from"./PBL2-Yli.js";/* empty css */import{d as vu,G as mu,R as hu,g as bu,f as Gv,M as yu,C as Jv,q as fl,l as Yv,h as Xv,e as Zv,a as _u,o as Qv,S as Eo,K as $v}from"./B5sCzlWo.js";import{D as em,e as tm}from"./CxNkcb8W.js";import"./O8wCypGr.js";import"./Cez5l2e8.js";import"./LvmqpfcL.js";import{b as rm}from"./DtUqlXbM.js";import{r as nm}from"./DVdY8Cc0.js";import{a6 as am,ck as om,cm as sm,cl as im,b3 as lm,b1 as cm,b2 as dm,a4 as um,am as ms,al as pm,cV as fm,aB as sc,aJ as gm,ak as vm,C as mm,i as hm,E as ws,cW as bm,aY as ic,c$ as ym,ah as _m,a9 as xm,r as wm,p as km,aG as Sm,d2 as Im,cM as Cm,cF as Em,R as Pm,cw as Am,bU as Tm}from"./DJUIc5At.js";import{v as Rm,k as Mm,E as Lm,l as Nm,V as Om,q as Dm,n as Bm,A as lc,s as Fm,I as zm,R as Hm,m as jm,W as Wm,o as xu,S as wu,i as Um,g as cc,f as qm,e as Vm,j as Km,h as Gm,c as dc,r as Jm}from"./DcT7aUbr.js";import{a as Ym}from"./Du3d0ZG1.js";import{aA as Xm,aH as Zm,g as Qm,n as $m,aK as eh,K as th,M as rh,O as nh,at as ah,aD as oh,av as sh}from"./CflYgBql.js";import{f as ih,e as lh,m as Bi,bF as ch,B as dh,bE as uh,bB as ph,ai as uc,bD as fh,be as Fi,ar as gh,k as vh,b4 as mh,q as pc,A as hh,L as fc}from"./Cz8U_BhG.js";import{i as bh,I as Mo,c as gc}from"./Dlc9o8A3.js";import{A as yh,s as _h}from"./4AWS92de.js";import{e as vc,l as mc,M as ku,m as zi,w as vo}from"./Dyv3Jj2a.js";import{b as Su}from"./D0Mixsx9.js";import{H as xh}from"./uaMLzsQ7.js";import{t as Qo}from"./DAsc1V4f.js";import{a as wh}from"./BlNY__m5.js";import{P as kh}from"./BIfeWxYG.js";import{C as Hi}from"./CmU8A6S6.js";import"./BUEceROh.js";import{d as Sh,c as Ih}from"./CXs9CJFc.js";import{O as Ch,M as Eh}from"./DR6lkAOz.js";import{aQ as Ph,aY as Ah,aB as Th,b0 as Rh,aO as Mh,aU as Lh,a7 as No,b3 as hc,aK as Nh,aR as Oh,aX as gl,aS as vl,W as di,aq as Dh,X as Bh,a_ as Fh,aJ as zh,aT as Hh,aW as jh,b6 as Wh,b4 as Uh,ay as Iu,p as qh,n as Vh,aV as Kh,_ as Gh,ao as Jh,aD as Yh,z as Xh,aC as Zh,a8 as Qh}from"./DzNGKDWB.js";import{s as ji}from"./CGPgsggz.js";import{e as bc}from"./BP_Uw__C.js";import{M as $h}from"./D2QYaH-I.js";import{s as eb,a as tb}from"./BsieX9dN.js";import{u as ml,w as rb,v as Ws,I as nb,A as yc,e as Oo,d as Fa,J as _c,c as ab,f as ob,g as xc,i as sb,b as ib,o as Cu,j as lb,q as Wi,r as cb,O as db,x as ub,k as Eu,S as pb,N as fb,p as gb,n as wc,z as vb,s as mb}from"./BLCoN16l.js";import{o as kc,T as ui,a as hb}from"./DQWu85Mb.js";import{O as bb,x as yb,i as _b,g as xb,T as wb,d as kb}from"./BeAfjfr4.js";import{D as $o}from"./BWAoi_nX.js";import{l as or,e as Sb,f as Sc,m as Ic}from"./CzTFPES1.js";import{A as es}from"./CfruS_oL.js";import"./CuOzd6CB.js";import{h as Pu}from"./BigcqNWS.js";import{C as fa}from"./sCRZaCJk.js";import{M as Ib}from"./BVA6rkcP.js";/* empty css */import{g as hl}from"./rvnDEnqx.js";import{h as Ui}from"./DN-C1UIq.js";import{f as Cc,d as Cb}from"./DFrOZp-X.js";import{c as ks}from"./DIcAJPWy.js";import{handleIntentLink as Eb}from"./BaxK9vhI.js";import{a as Ec}from"./D0H3cACA.js";import{t as qi}from"./D2MmXC4A.js";import{s as Pb,a as Ab,M as Au}from"./4b6Kq3tJ.js";import{b as Tb,k as Rb}from"./Ddv73vDp.js";import{m as Mb}from"./PVXvIyE8.js";import{showAssistantContent as Lb}from"./BmU3aeP8.js";import{o as As,c as Nb,n as Ob}from"./DqYxGkQL.js";import{p as Db}from"./ClMmMgCD.js";import{H as Bb}from"./B8dlSoA0.js";import{d as Fb,c as zb,r as Hb,g as jb,w as Jo,e as Wb,W as Ub,b as qb}from"./CrB6tgeT.js";import{A as Pc}from"./BD1NrJz7.js";import{m as Vb}from"./BOXv-Vsz.js";import{h as hs}from"./1KlOAsvK.js";import{g as Kb,e as Gb,f as Jb,h as Yb}from"./B5aYN90J.js";import{T as pi}from"./8FzUlqXC.js";import"./Cp7HmDFx.js";import{S as Wa}from"./BcGvQa_4.js";import{M as Xb,L as Zb,W as Qb,I as $b}from"./BJNB3KvG.js";import{S as ts,a as Vi,T as Tu,U as Ki,K as ey,A as ty,P as ry,N as ny,j as ay,R as Ac,V as oy}from"./BBBowEhf.js";import{D as sy}from"./BP0mUOHP.js";import{a as iy}from"./BOhDcNg3.js";import{a as ly}from"./BdWqymET.js";import{p as cy}from"./cEbJGV0n.js";const dy="intent:inline-visual-draft";function pP(r,t){const n=t.title.replace(/\s+/g," ").trim(),a=JSON.stringify({inputs:t.inputs,results:t.results},null,2),o=(a.match(/`+/g)??[]).reduce((c,l)=>Math.max(c,l.length),0),s="`".repeat(Math.max(3,o+1));return`${r}${r?`
3
3
 
4
4
  `:""}${n}
5
5
 
@@ -294,7 +294,7 @@ ${r.content}`:a.content=r.content,a):r.old_text!==void 0&&r.new_text!==void 0?(a
294
294
  `,Pk=["background","foreground","card","card-foreground","primary","primary-ink","primary-foreground","secondary","secondary-foreground","muted","muted-foreground","border","input","ring","danger","danger-background","info","info-foreground","success","success-foreground","warning","warning-foreground","font-ui","font-code","text-body-size","text-body-line-height","text-body-weight","text-body-tracking","radius-small","radius-medium","radius-large","app-background","sidebar","sidebar-accent","agent-avatar-surface-active","agent-avatar-foreground","diagram-host-surface","diagram-canvas","diagram-label-surface","diagram-node-surface","diagram-node-hover-surface","diagram-node-outline","diagram-node-title","diagram-metadata","diagram-group-outline","diagram-connector","diagram-connector-hover","diagram-connector-muted","diagram-connector-inactive","diagram-connector-danger","diagram-connector-success","diagram-connector-warning","diagram-connector-active","diagram-accent","diagram-accent-foreground","diagram-node-radius","diagram-group-radius","diagram-connector-width","text-caption-size","text-caption-line-height","text-caption-weight","text-caption-tracking","text-body-strong-size","text-body-strong-line-height","text-body-strong-weight","text-body-strong-tracking","space-1","space-2","space-3","space-4","space-5","space-6","space-7","control-height-compact","control-height-small","control-height-medium","control-height-large","radius-full","spring-fast","spring-fast-exit","spring-fast-ease","spring-moderate","spring-moderate-exit","spring-moderate-ease","spring-slow","spring-slow-exit","spring-slow-ease","spring-exit-ease","motion-fast","motion-standard","motion-slow","ease-standard","ease-emphasized-out","motion-reduced"],Ii=96,bd=2e4,Ak=480,jp=512,Tk=["default-src 'none'","script-src 'unsafe-inline'","style-src 'unsafe-inline'","img-src data:","connect-src 'none'","font-src data:","media-src 'none'","object-src 'none'","frame-src 'none'","child-src 'none'","worker-src 'none'","manifest-src 'none'","base-uri 'none'","form-action 'none'"].join("; ");function Rk(r,t,n,a,o,s){const c=new MessageChannel,l=MessagePort.prototype.postMessage.bind(c.port1);window.parent.postMessage({channel:r,type:"scroll-port"},"*",[c.port2]);const p=(C,D={})=>{window.parent.postMessage({channel:r,type:C,...D},"*")};let i=o?.state??null,f=null,v=!1;Object.defineProperty(window,"intentVisual",{configurable:!1,writable:!1,value:Object.freeze({get state(){return i},publish(C){try{if(!s(C))return!1;const D=JSON.parse(JSON.stringify(C));return i=D.state,f=D,v||(v=!0,requestAnimationFrame(()=>{v=!1,f&&p("snapshot",{snapshot:f}),f=null})),!0}catch{return!1}}})});let L=!1,y=-1,_=innerHeight,R=Number.NaN,M=0,B=0;const z=()=>{if(L=!1,!document.body)return;let C=Math.ceil(Math.max(document.body.scrollHeight,document.body.getBoundingClientRect().height));const D=innerHeight,V=C-D;if(D>_+1&&V>1&&Math.abs(V-R)<=1?M+=1:(D!==_||V<=1)&&(M=0),_=D,R=V,!B&&M>=3){B=Math.max(a,D);const J="Page height follows the frame (vh units or height: 100%); frame height held.";console.warn(J),p("layout",{message:J})}B&&(C=Math.min(C,B)),C!==y&&(y=C,p("resize",{height:C}))},I=()=>{L||(L=!0,requestAnimationFrame(z))},P=C=>{if(!C||typeof C.dark!="boolean"||!C.variables)return;const D=document.documentElement;D.classList.toggle("dark",C.dark),D.style.colorScheme=C.dark?"dark":"light";const V=C.variables["--inline-html-root-font-size"];"--inline-html-root-font-size"in t.variables&&typeof V=="string"&&V.length<512&&D.style.setProperty("--inline-html-root-font-size",V);for(const J of Object.keys(t.variables)){if(J==="--inline-html-root-font-size")continue;const Y=C.variables[J];typeof Y=="string"&&Y.length<512&&D.style.setProperty(J,Y)}I()};window.addEventListener("message",C=>{C.source!==window.parent||!C.data||C.data.channel!==r||C.data.type==="theme"&&P(C.data.theme)});const H=C=>{if(C.defaultPrevented||!C.isTrusted||C.ctrlKey||C.metaKey||C.shiftKey||!C.deltaY||Math.abs(C.deltaX)>Math.abs(C.deltaY))return;const D=Y=>{const xe=getComputedStyle(Y);if(Y!==document.scrollingElement&&!/^(auto|scroll|overlay)$/.test(xe.overflowY)||/^(hidden|clip)$/.test(xe.overflowY))return!1;const $=Y.scrollHeight-Y.clientHeight;return $>1&&(C.deltaY<0?Y.scrollTop>1:Y.scrollTop<$-1)};if(C.composedPath().some(Y=>Y instanceof Element&&D(Y))||document.scrollingElement&&D(document.scrollingElement))return;const V=C.deltaMode===WheelEvent.DOM_DELTA_LINE?parseFloat(getComputedStyle(document.body).lineHeight)||16:C.deltaMode===WheelEvent.DOM_DELTA_PAGE?innerHeight:1,J=Math.max(-n,Math.min(n,C.deltaY*V));Number.isFinite(J)&&(C.preventDefault(),l({deltaY:J}))};window.addEventListener("wheel",()=>{window.removeEventListener("wheel",H),window.addEventListener("wheel",H,{passive:!1})},{capture:!0,passive:!1}),window.addEventListener("error",C=>{C.message&&p("error",{message:C.message.slice(0,300)})}),window.addEventListener("unhandledrejection",C=>{const D=C.reason;p("error",{message:String(D instanceof Error?D.message:D).slice(0,300)})}),window.addEventListener("click",C=>{const D=C.target instanceof Element?C.target.closest("a, area"):null;if(!D)return;(D.getAttribute("href")??D.getAttribute("xlink:href"))?.startsWith("#")||C.preventDefault()},!0),window.addEventListener("submit",C=>C.preventDefault(),!0),P(t),window.addEventListener("DOMContentLoaded",()=>{new ResizeObserver(I).observe(document.body),new MutationObserver(I).observe(document.body,{childList:!0,subtree:!0,attributes:!0,characterData:!0}),window.addEventListener("resize",I),document.addEventListener("load",I,!0),document.fonts.ready.then(I),p("ready"),I()},{once:!0})}function Mk(r,t,n,a,o){const s=document.createElement("iframe");s.setAttribute("sandbox","allow-scripts"),s.setAttribute("referrerpolicy","no-referrer"),s.title=n,s.style.cssText="display:block;width:100%;height:100%;border:0;";let c;const l=p=>{const i=p.data?.deltaY;typeof i=="number"&&Number.isFinite(i)&&i!==0&&Math.abs(i)<=a&&window.parent.postMessage({channel:r,type:"wheel",deltaY:i},"*")};window.addEventListener("message",p=>{const i=p.data;if(!(!i||typeof i!="object"||i.channel!==r)){if(p.source===window.parent&&i.type==="theme"){s.contentWindow?.postMessage({channel:r,type:"theme",theme:i.theme},"*");return}if(!(p.source!==s.contentWindow||p.origin!=="null")){if(i.type==="scroll-port"&&!c&&p.ports.length===1){c=p.ports[0],c.onmessage=l;return}i.type==="resize"&&typeof i.height=="number"&&Number.isFinite(i.height)&&i.height>=0?window.parent.postMessage({channel:r,type:"resize",height:i.height},"*"):i.type==="ready"?window.parent.postMessage({channel:r,type:"ready"},"*"):(i.type==="error"||i.type==="layout")&&typeof i.message=="string"?window.parent.postMessage({channel:r,type:i.type,message:i.message.slice(0,300)},"*"):i.type==="snapshot"&&o(i.snapshot)&&window.parent.postMessage({channel:r,type:"snapshot",snapshot:i.snapshot},"*")}}}),window.addEventListener("DOMContentLoaded",()=>{s.srcdoc=t,document.body.append(s)},{once:!0})}function Lk(r,t,n,a,o,s,c,l){const p=document.implementation.createHTMLDocument(""),i=p.createElement("template");i.innerHTML=n,p.body.append(i.content);const f=J=>{J.querySelectorAll("meta, base, link, iframe, frame, frameset, object, embed").forEach(Y=>Y.remove()),J.querySelectorAll("template").forEach(Y=>f(Y.content)),J.querySelectorAll("a, area").forEach(Y=>{for(const xe of["href","xlink:href"])Y.getAttribute(xe)?.startsWith("#")||Y.removeAttribute(xe);Y.removeAttribute("target"),Y.removeAttribute("ping"),Y.removeAttribute("download")})};f(p);const v=J=>JSON.stringify(J).replace(/</g,"\\u003c"),L=p.createElement("meta");L.httpEquiv="Content-Security-Policy",L.content=r.csp;const y=p.createElement("meta");y.setAttribute("charset","utf-8");const _=p.createElement("style"),R=/^data:[\w.+/-]+;base64,[A-Za-z0-9+/=]+$/.test(l)?`@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900;
295
295
  font-display: swap; src: url('${l}') format('woff2'); }`:"";_.textContent=`${R}${r.styles}`;const M=p.createElement("script"),B=v([a,o,r.maxScrollDelta,r.lockHeight,t(c)?c:null]);M.textContent=`(${r.bridge})(...${B}, (${r.validate}));`,p.head.prepend(L,y,_,M);const z=`<!doctype html>${p.documentElement.outerHTML}`,I=document.implementation.createHTMLDocument(""),P=I.createElement("meta");P.httpEquiv="Content-Security-Policy",P.content=r.csp.replace("frame-src 'none'","frame-src about:");const H=I.createElement("meta");H.setAttribute("charset","utf-8");const C=I.createElement("style");C.textContent="html, body { margin: 0; width: 100%; height: 100%; overflow: hidden; }";const D=I.createElement("script"),V=v([a,z,s,r.maxScrollDelta]);return D.textContent=`(${r.shell})(...${V}, (${r.validate}));`,I.head.prepend(P,H,C,D),`<!doctype html>${I.documentElement.outerHTML}`}const Nk=()=>({csp:Tk,styles:Ek,maxScrollDelta:jp,lockHeight:Ak,bridge:Rk.toString(),shell:Mk.toString(),validate:pl.toString()});function Ok(r,t,n,a,o=null,s=""){return Lk(Nk(),pl,r,t,n,a,o,s)}function yd(r){const t=getComputedStyle(r);return{dark:document.documentElement.classList.contains("dark"),variables:{...Object.fromEntries(Pk.map(n=>[`--${n}`,t.getPropertyValue(`--${n}`).trim()])),"--inline-html-root-font-size":getComputedStyle(document.documentElement).fontSize}}}function Dk(r,t,n,a,o=null){return Ok(r,t,n,a,o,Ck)}var Bk=k('<p class="type-caption m-0 break-words px-4 pb-2 text-muted-foreground"> </p>'),Fk=k('<div class="type-body flex items-center justify-between gap-3 px-4 py-2" role="status"><span class="text-danger"> </span> <!></div> <!>',1),zk=k('<p class="sr-only" role="status"> </p>'),Hk=k('<p class="type-body m-0 px-4 py-3 text-muted-foreground" role="status"> </p>'),jk=k('<div class="type-body px-4 py-2 text-danger" role="status"><p class="m-0"> </p> <p class="type-code m-0 break-words"> </p></div>'),Wk=k('<iframe sandbox="allow-scripts" referrerpolicy="no-referrer"></iframe>'),Uk=k('<div class="space-y-4 p-4" aria-hidden="true"><div class="space-y-2"><!> <!></div> <!> <div class="flex items-center gap-4"><!> <!> <!></div></div>'),qk=k('<span aria-hidden="true"><!></span> <span class="min-w-0 flex-1 whitespace-normal text-pretty"> </span>',1),Vk=k('<p class="type-caption m-0 break-words px-4 pb-2 text-muted-foreground" role="status"> <!></p>'),Kk=k('<th class="min-w-40 px-2 pb-3 align-top font-normal"><!> <div class="mt-1 flex gap-1"><!> <!></div></th>'),Gk=k('<td class="max-w-56 px-2 py-2 align-top break-words tabular-nums"> </td>'),Jk=k('<tr><th class="max-w-48 py-2 pr-4 align-top font-normal break-words text-muted-foreground"> </th><!></tr>'),Yk=k('<div class="overflow-x-auto px-4 pb-4" data-inline-visual-comparison=""><table class="type-body w-full border-separate border-spacing-0 text-left"><thead><tr><th class="min-w-28 pr-4 pb-3 font-normal text-muted-foreground"> </th><th class="min-w-32 px-2 pb-3 align-top font-medium"> </th><!></tr></thead><tbody></tbody></table></div>'),Xk=k("<!> <!>",1),Zk=k('<div data-inline-html="" class="my-3 min-w-0 overflow-hidden rounded-lg bg-background text-foreground"><!> <!> <div class="relative min-w-0"><!> <!></div> <div class="flex min-w-0 items-center justify-between gap-2 px-4 pt-1 pb-3" data-inline-visual-actions=""><!> <!></div> <!></div>');function Wp(r,t){if(new.target)return Dt({component:Wp,...r});zt(t,!0);const n=720,a=1e4;let o=h(t,"source",7),s=h(t,"isStreaming",7,!1),c=h(t,"isComplete",7,!0),l=h(t,"record",7),p=h(t,"storageStatus",7,"ready"),i=h(t,"onRecordChange",7),f=h(t,"onUseConfiguration",7),v=h(t,"onExport",7),L=h(t,"onRetry",7),y=h(t,"storageError",7),_=h(t,"exportStatus",7),R=h(t,"exportPath",7),M=h(t,"exportError",7),B,z=ve(void 0),I=ve(!1),P=ve(!1),H=ve(0),C=ve(""),D=ve(""),V=ve(!1),J=ve(""),Y=ve(Yr(Ii)),xe=ve(n),$=ve(""),we=ve($l()),de=ve(void 0),Te=ve(void 0),ie,Re=ve(void 0),se=ve(!1);const ee=d(()=>l()??e(we)),ke=d(()=>e(Te)!==void 0&&e(de)!==void 0&&!Mb(e(Te),e(de).inputs)),te=d(()=>p()!=="loading"&&(p()!=="error"||!!e(ee).current)),ge=d(()=>!s()&&c()&&!!o().trim()&&e(te)),He=d(()=>Math.min(bd,Math.max(Ii,e(Y)))),Xe=d(()=>s()||p()==="loading"?"loading":c()?o().trim()?e(J)?"error":e(V)?"ready":"loading":"empty":"incomplete"),X=d(()=>s()||p()==="loading"||e(ge)&&!e(V)&&!e(J)),Z=d(()=>Qv([{id:"source",label:e(P)?Ff():zf()},{id:"reload",label:Hf(),disabled:!e(ge)},{id:"save",label:jf(),when:!!(e(de)&&e(ge)),disabled:!e(V)||!!e(J)||e(ee).scenarios.length>=ec,group:"configuration"},{id:"compare",label:Wf(),when:!!(e(de)&&e(ge)&&e(ee).scenarios.length),group:"configuration"},{id:"export",label:Uf(),when:!!(e(de)&&e(ge)&&v()),disabled:!e(V)||_()==="saving",group:"configuration"}]));function Ye(ce){ce==="source"?T(P,!e(P)):ce==="reload"?T(H,e(H)+1):ce==="save"?G():ce==="compare"?T(se,!e(se)):ce==="export"&&v()?.({...e(ee),current:e(de)??null})}function W(ce){const Pe={...ce,current:e(de)??ce.current};T(we,Pe),i()?.(Pe)}function G(){const ce=e(de);!ce||e(ee).scenarios.length>=ec||(W({...e(ee),scenarios:[...e(ee).scenarios,{id:crypto.randomUUID(),name:qf({number:Ic(e(ee).scenarios.length+1)}),snapshot:structuredClone(ce)}]}),T(se,!0))}function q(ce,Pe){const rt=Pe.trim().slice(0,120);rt&&W({...e(ee),scenarios:e(ee).scenarios.map(st=>st.id===ce?{...st,name:rt}:st)})}function re(ce){const Pe=structuredClone(ce);T(de,Pe),T(Re,Pe),W({...e(ee),current:Pe}),T(H,e(H)+1)}function ye(ce){return typeof ce=="number"?Ic(ce):typeof ce=="string"?ce:JSON.stringify(ce)}function Oe(){!e(z)?.contentWindow||!e(D)||e(z).contentWindow.postMessage({channel:e(D),type:"theme",theme:yd(B)},"*")}function Q(ce){let Pe=B.parentElement;for(;Pe;){const rt=getComputedStyle(Pe),st=Pe.scrollHeight-Pe.clientHeight;if(/^(auto|scroll|overlay)$/.test(rt.overflowY)&&st>1){if(ce<0?Pe.scrollTop>0:Pe.scrollTop<st){Pe.dispatchEvent(new WheelEvent("wheel",{deltaY:ce,bubbles:!0})),Pe.scrollTop+=ce;return}if(/^(contain|none)$/.test(rt.overscrollBehaviorY))return}Pe=Pe.parentElement}window.scrollBy({top:ce,behavior:"instant"})}_t(()=>{if(!e(I))return;const ce=o(),Pe=e(ge);e(H),vn(()=>{ie!==ce&&(T(we,$l()),T(de,void 0),T(Te,void 0),T(se,!1),T(Re,void 0),ie=ce),T(V,!1),T(J,""),T($,""),T(Y,Ii,!0),T(D,crypto.randomUUID(),!0),T(C,Pe?Dk(ce,e(D),yd(B),ql(),e(Re)??e(de)??e(ee).current):"",!0),T(Re,void 0)})}),_t(()=>{if(!e(C)||e(V)||e(J))return;const ce=setTimeout(()=>{T(J,Bf(),!0)},a);return()=>clearTimeout(ce)}),os(()=>{T(I,!0);const ce=wt=>{if(wt.source!==e(z)?.contentWindow||wt.origin!=="null")return;const nt=wt.data;if(!(!nt||typeof nt!="object"||nt.channel!==e(D))){if(nt.type==="bootstrap"){e(z)?.contentWindow?.postMessage({channel:e(D),type:"initialize",documentHtml:e(C)},"*");return}if(nt.type==="resize"&&typeof nt.height=="number"&&Number.isFinite(nt.height)&&nt.height>=0)T(Y,Math.min(bd,Math.ceil(nt.height)),!0);else if(nt.type==="ready")T(V,!0),Oe();else if(nt.type==="error"&&typeof nt.message=="string")T(J,nt.message.slice(0,300),!0);else if(nt.type==="layout"&&typeof nt.message=="string")T($,nt.message.slice(0,300),!0);else if(nt.type==="snapshot"&&e(ge)&&pl(nt.snapshot)){const Pt=nt.snapshot;T(Te,e(Te)??structuredClone(Pt.inputs)),T(de,Pt),W({...e(ee),current:Pt})}else nt.type==="wheel"&&e(V)&&e(ge)&&!e(P)&&!e(X)&&typeof nt.deltaY=="number"&&Number.isFinite(nt.deltaY)&&nt.deltaY!==0&&Math.abs(nt.deltaY)<=jp&&Q(nt.deltaY)}},Pe=()=>{T(xe,Math.min(n,Math.max(160,Math.floor(window.innerHeight*.8))),!0)},rt=new MutationObserver(Oe);rt.observe(document.documentElement,{attributes:!0,attributeFilter:["class","style","data-theme"]});const st=window.matchMedia("(prefers-color-scheme: dark)");return st.addEventListener("change",Oe),window.addEventListener("message",ce),window.addEventListener("resize",Pe),Pe(),()=>{rt.disconnect(),st.removeEventListener("change",Oe),window.removeEventListener("message",ce),window.removeEventListener("resize",Pe)}});var le={get source(){return o()},set source(ce){o(ce),b()},get isStreaming(){return s()},set isStreaming(ce=!1){s(ce),b()},get isComplete(){return c()},set isComplete(ce=!0){c(ce),b()},get record(){return l()},set record(ce){l(ce),b()},get storageStatus(){return p()},set storageStatus(ce="ready"){p(ce),b()},get onRecordChange(){return i()},set onRecordChange(ce){i(ce),b()},get onUseConfiguration(){return f()},set onUseConfiguration(ce){f(ce),b()},get onExport(){return v()},set onExport(ce){v(ce),b()},get onRetry(){return L()},set onRetry(ce){L(ce),b()},get storageError(){return y()},set storageError(ce){y(ce),b()},get exportStatus(){return _()},set exportStatus(ce){_(ce),b()},get exportPath(){return R()},set exportPath(ce){R(ce),b()},get exportError(){return M()},set exportError(ce){M(ce),b()},$set:Bt,$on:(ce,Pe)=>Ft(t,ce,Pe)},Ee=Zk(),et=E(Ee);{var _e=ce=>{var Pe=Fk(),rt=De(Pe),st=E(rt),wt=N(st,!0),nt=m(st,2);{var Pt=Mt=>{St(Mt,{variant:"ghost",size:"sm",get onclick(){return L()},children:(Jt,tr)=>{rr();var Kt=jt();S(Me=>x(Kt,Me),[()=>Qf()]),u(Jt,Kt)},$$slots:{default:!0}})};F(nt,Mt=>{L()&&Mt(Pt)})}w(rt);var bt=m(rt,2);{var kt=Mt=>{var Jt=Bk(),tr=N(Jt,!0);S(()=>x(tr,y())),u(Mt,Jt)};F(bt,Mt=>{y()&&Mt(kt)})}S(Mt=>x(wt,Mt),[()=>Vf()]),u(ce,Pe)};F(et,ce=>{p()==="error"&&ce(_e)})}var Ae=m(et,2);{var K=ce=>{var Pe=zk(),rt=N(Pe,!0);S(st=>x(rt,st),[()=>s()?Kf():Gf()]),u(ce,Pe)},Se=ce=>{var Pe=Hk(),rt=N(Pe,!0);S(st=>x(rt,st),[()=>c()?Yf():Jf()]),u(ce,Pe)},ue=ce=>{var Pe=jk(),rt=E(Pe),st=N(rt,!0),wt=m(rt,2),nt=N(wt,!0);w(Pe),S(Pt=>{x(st,Pt),x(nt,e(J))},[()=>Xf()]),u(ce,Pe)};F(Ae,ce=>{e(X)?ce(K):e(ge)?e(J)&&ce(ue,2):ce(Se,1)})}var O=m(Ae,2),U=E(O);{var me=ce=>{var Pe=ht(),rt=De(Pe);oo(rt,()=>e(D),st=>{var wt=Wk();let nt,Pt;vr(wt,bt=>T(z,bt),()=>e(z)),S(bt=>{oe(wt,"title",bt),oe(wt,"src",`/inline-html-sandbox.html#${e(D)}`),nt=pt(wt,1,"block w-full border-0 svelte-1kkow1d",null,nt,{"preview-hidden":e(P)||!e(V)}),oe(wt,"aria-hidden",e(P)||!e(V)),Pt=Ln(wt,"",Pt,{height:`${e(He)}px`})},[()=>ql()]),u(st,wt)}),u(ce,Pe)};F(U,ce=>{e(ge)&&e(C)&&ce(me)})}var Ke=m(U,2);{var Ne=ce=>{fa(ce,{get code(){return o()},language:"html",noBorder:!0,noMargin:!0,get maxHeight(){return e(xe)}})},Ve=ce=>{var Pe=Uk(),rt=E(Pe),st=E(rt);Eo(st,{class:"h-4 w-32 max-w-1/2"});var wt=m(st,2);Eo(wt,{class:"h-3 w-2/3"}),w(rt);var nt=m(rt,2);Eo(nt,{class:"aspect-video max-h-60 w-full rounded-lg"});var Pt=m(nt,2),bt=E(Pt);Eo(bt,{class:"h-3 w-16"});var kt=m(bt,2);Eo(kt,{class:"h-2 min-w-0 flex-1"});var Mt=m(kt,2);Eo(Mt,{class:"h-3 w-10"}),w(Pt),w(Pe),u(ce,Pe)};F(Ke,ce=>{e(P)?ce(Ne):e(X)&&ce(Ve,1)})}w(O);var Ge=m(O,2),lt=E(Ge);{var gt=ce=>{{let Pe=d(()=>!e(V)||!!e(J));St(ce,{variant:"plain",size:"sm",wrapContent:!1,get class(){return`${Wi} ${cb} h-auto min-w-0 shrink justify-start rounded-sm border border-transparent px-1.5 py-0.5 text-left hover:text-foreground`},style:"gap: var(--operational-leading-gap)","data-typography-role":"body",get disabled(){return e(Pe)},onclick:()=>e(de)&&f()(e(de)),children:(rt,st)=>{var wt=qk(),nt=De(wt),Pt=E(nt);Rt(Pt,{get icon(){return Gd},size:16,get class(){return Fa}}),w(nt);var bt=m(nt,2),kt=N(bt,!0);S(Mt=>{pt(nt,1,`${Oo??""} mt-px self-start`,"svelte-1kkow1d"),x(kt,Mt)},[()=>Zf()]),u(rt,wt)},$$slots:{default:!0}})}};F(lt,ce=>{e(de)&&e(ke)&&e(ge)&&f()&&!e(P)&&ce(gt)})}var Ct=m(lt,2);{const ce=(rt,st)=>{let wt=()=>(st?.()).props;{let nt=d(()=>Vl());St(rt,zs(wt,{variant:"ghost",size:"icon-sm",class:"ml-auto text-muted-foreground",get"aria-label"(){return e(nt)},children:(Pt,bt)=>{Rt(Pt,{get icon(){return sv},size:16})},$$slots:{default:!0}}))}};let Pe=d(()=>Vl());_u(Ct,{get actions(){return e(Z)},get ariaLabel(){return e(Pe)},align:"end",side:"top",onAction:Ye,trigger:ce,$$slots:{trigger:!0}})}w(Ge);var qt=m(Ge,2);{var It=ce=>{var Pe=Xk(),rt=De(Pe);{var st=Pt=>{var bt=Vk(),kt=E(bt),Mt=m(kt);{var Jt=tr=>{var Kt=jt();S(()=>x(Kt,M())),u(tr,Kt)};F(Mt,tr=>{_()==="error"&&M()&&tr(Jt)})}w(bt),S(tr=>x(kt,`${tr??""} `),[()=>_()==="saving"?$f():_()==="saved"?eg({path:R()??""}):tg()]),u(Pt,bt)};F(rt,Pt=>{_()&&Pt(st)})}var wt=m(rt,2);{var nt=Pt=>{var bt=Yk(),kt=E(bt),Mt=E(kt),Jt=E(Mt),tr=E(Jt),Kt=N(tr,!0),Me=m(tr),pe=N(Me,!0),Ze=m(Me);Lt(Ze,17,()=>e(ee).scenarios,tt=>tt.id,(tt,Be)=>{var ae=Kk(),be=E(ae);{let Fe=d(()=>ag());Mo(be,{get value(){return e(Be).name},get"aria-label"(){return e(Fe)},maxlength:120,onblur:ze=>{ze.currentTarget.value.trim()||(ze.currentTarget.value=e(Be).name),q(e(Be).id,ze.currentTarget.value)},onkeydown:ze=>{ze.key==="Enter"&&ze.currentTarget.blur(),ze.key==="Escape"&&(ze.currentTarget.value=e(Be).name,ze.currentTarget.blur())}})}var he=m(be,2),Ce=E(he);St(Ce,{variant:"ghost",size:"sm",onclick:()=>re(e(Be).snapshot),children:(Fe,ze)=>{rr();var Qe=jt();S(Je=>x(Qe,Je),[()=>rg()]),u(Fe,Qe)},$$slots:{default:!0}});var Ie=m(Ce,2);St(Ie,{variant:"ghost",size:"sm",onclick:()=>W({...e(ee),scenarios:e(ee).scenarios.filter(Fe=>Fe.id!==e(Be).id)}),children:(Fe,ze)=>{rr();var Qe=jt();S(Je=>x(Qe,Je),[()=>ng()]),u(Fe,Qe)},$$slots:{default:!0}}),w(he),w(ae),u(tt,ae)}),w(Jt),w(Mt);var ot=m(Mt);Lt(ot,20,()=>["inputs","results"],Rr,(tt,Be)=>{const ae=d(()=>Be),be=d(()=>Array.from(new Set([...Object.keys(e(de)[e(ae)]),...e(ee).scenarios.flatMap(Ie=>Object.keys(Ie.snapshot[e(ae)]))])));var he=ht(),Ce=De(he);Lt(Ce,16,()=>e(be),Ie=>Ie,(Ie,Fe)=>{var ze=Jk(),Qe=E(ze),Je=N(Qe,!0),We=m(Qe);Lt(We,17,()=>[e(de),...e(ee).scenarios.map($e=>$e.snapshot)],Rr,($e,Ue)=>{var qe=Gk(),dt=N(qe,!0);S(it=>x(dt,it),[()=>Object.hasOwn(e(Ue)[e(ae)],Fe)?ye(e(Ue)[e(ae)][Fe]):"—"]),u($e,qe)}),w(ze),S(()=>x(Je,Fe)),u(Ie,ze)}),u(tt,he)}),w(ot),w(kt),w(bt),S(tt=>{x(Kt,e(de).title),x(pe,tt)},[()=>og()]),u(Pt,bt)};F(wt,Pt=>{e(se)&&e(ee).scenarios.length&&Pt(nt)})}u(ce,Pe)};F(qt,ce=>{e(de)&&e(ge)&&ce(It)})}return w(Ee),vr(Ee,ce=>B=ce,()=>B),S(()=>{oe(Ee,"data-inline-html-status",e(Xe)),oe(Ee,"data-inline-html-layout",e($)?"viewport-locked":void 0),oe(Ee,"aria-busy",e(X))}),u(r,Ee),Ht(le)}var Qk=k('<div class="w-full min-w-0"><!></div>');function $k(r,t){if(new.target)return Dt({component:$k,...r});zt(t,!0);const n=()=>yt(e(y),"$agent$",o),a=()=>yt(e(B),"$entry$",o),[o,s]=ma();let c=h(t,"block",7),l=h(t,"role",7),p=h(t,"workspaceId",7),i=h(t,"agentId",7),f=h(t,"messageId",7),v=h(t,"contentBlockKey",7,""),L=ve(void 0);const y=d(()=>Hs(i()??"")),_=d(()=>l()==="assistant"&&p()&&i()&&f()&&c().metadata?.fenceClosed&&!c().metadata?.isStreaming&&n()&&!su(n())?{workspaceId:p(),agentId:i(),messageId:f(),blockKey:JSON.stringify([v(),c().metadata?.fenceStart??0]),source:c().content}:void 0),R=d(()=>!!(p()&&i()&&f()&&c().metadata?.fenceClosed&&!n())),M=d(()=>e(_)?Tv(e(_)):""),B=d(()=>Mh(e(M)));_t(()=>{e(_)&&Ot.dispatch(Cv(e(_)))});function z(J){!p()||!i()||n()?.retiredAt||e(L)?.dispatchEvent(new CustomEvent(dy,{bubbles:!0,detail:{workspaceId:p(),agentId:i(),snapshot:J}}))}var I={get block(){return c()},set block(J){c(J),b()},get role(){return l()},set role(J){l(J),b()},get workspaceId(){return p()},set workspaceId(J){p(J),b()},get agentId(){return i()},set agentId(J){i(J),b()},get messageId(){return f()},set messageId(J){f(J),b()},get contentBlockKey(){return v()},set contentBlockKey(J=""){v(J),b()},$set:Bt,$on:(J,Y)=>Ft(t,J,Y)},P=ht(),H=De(P);{var C=J=>{var Y=Qk(),xe=E(Y);{let $=d(()=>c().metadata?.isStreaming??!1),we=d(()=>c().metadata?.fenceClosed??!1),de=d(()=>a()?.record),Te=d(()=>e(_)?a()?.status??"loading":e(R)?"loading":"ready"),ie=d(()=>a()?.error),Re=d(()=>e(_)?Xe=>Ot.dispatch(Av(e(M),Xe)):void 0),se=d(()=>p()&&i()&&n()&&!n().retiredAt?z:void 0),ee=d(()=>e(_)?()=>Ot.dispatch(Pv(e(M))):void 0),ke=d(()=>e(_)?Xe=>Ot.dispatch(Ev(e(M),crypto.randomUUID(),Xe)):void 0),te=d(()=>a()?.export?.status),ge=d(()=>a()?.export?.path),He=d(()=>a()?.export?.error);Wp(xe,{get source(){return c().content},get isStreaming(){return e($)},get isComplete(){return e(we)},get record(){return e(de)},get storageStatus(){return e(Te)},get storageError(){return e(ie)},get onRecordChange(){return e(Re)},get onUseConfiguration(){return e(se)},get onRetry(){return e(ee)},get onExport(){return e(ke)},get exportStatus(){return e(te)},get exportPath(){return e(ge)},get exportError(){return e(He)}})}w(Y),vr(Y,$=>T(L,$),()=>e(L)),u(J,Y)},D=J=>{fa(J,{get code(){return c().content},language:"html"})};F(H,J=>{l()==="assistant"?J(C):J(D,-1)})}u(r,P);var V=Ht(I);return s(),V}var e2=k('<div class="digest-card flex items-start gap-2.5 py-5 px-6 my-4 shadow-xs text-base leading-normal border border-border"> </div>');function t2(r,t){if(new.target)return Dt({component:t2,...r});zt(t,!0);let n=h(t,"digest",7);var a={get digest(){return n()},set digest(c){n(c),b()},$set:Bt,$on:(c,l)=>Ft(t,c,l)},o=e2(),s=N(o,!0);return S(()=>x(s,n())),u(r,o),Ht(a)}var r2=k('<span class="inline-flex items-center px-1.5 py-0.5 rounded text-xs font-medium bg-blue-500/15 text-blue-600 dark:text-blue-400"> </span>'),n2=k('<span class="inline-flex items-center px-1.5 py-0.5 rounded text-xs font-medium bg-muted text-muted-foreground"> </span>'),a2=k('<span class="inline-flex items-center px-1.5 py-0.5 rounded text-xs font-medium bg-primary/10 text-primary/80"> </span>'),o2=k('<div class="flex items-start gap-3 px-4 py-2.5"><div class="flex-1 min-w-0"><div class="flex items-center gap-2 flex-wrap"><span class="text-sm font-semibold text-foreground"> </span> <!> <!></div> <div class="mt-0.5 text-xs font-mono text-muted-foreground truncate"> </div></div></div>'),s2=k('<div class="detected-scripts-card my-3 rounded-lg border border-border bg-muted/30 overflow-hidden"><div class="flex items-center gap-2 px-4 py-2.5 border-b border-border bg-muted/40"><!> <span class="text-sm font-semibold text-foreground"> </span></div> <div class="divide-y divide-border"></div> <div class="px-4 py-2 border-t border-border bg-muted/20"><span class="text-xs text-muted-foreground"> </span></div></div>');function i2(r,t){if(new.target)return Dt({component:i2,...r});zt(t,!0);let n=h(t,"scripts",7);var a={get scripts(){return n()},set scripts(y){n(y),b()},$set:Bt,$on:(y,_)=>Ft(t,y,_)},o=s2(),s=E(o),c=E(s);Rt(c,{get icon(){return qd},size:"sm",class:"text-primary-ink/70"});var l=m(c,2),p=N(l,!0);w(s);var i=m(s,2);Lt(i,21,n,y=>y.name+y.command,(y,_)=>{var R=o2(),M=E(R),B=E(M),z=E(B),I=N(z,!0),P=m(z,2);{var H=xe=>{var $=r2(),we=N($,!0);S(de=>x(we,de),[()=>g.chat_detectedScripts_service_badge()]),u(xe,$)},C=xe=>{var $=n2(),we=N($,!0);S(de=>x(we,de),[()=>g.chat_detectedScripts_command_badge()]),u(xe,$)};F(P,xe=>{e(_).mode==="service"?xe(H):xe(C,-1)})}var D=m(P,2);{var V=xe=>{var $=a2(),we=N($,!0);S(()=>x(we,e(_).category)),u(xe,$)};F(D,xe=>{e(_).category&&e(_).category!=="other"&&xe(V)})}w(B);var J=m(B,2),Y=N(J,!0);w(M),w(R),S(()=>{x(I,e(_).name),x(Y,e(_).command)}),u(y,R)}),w(i);var f=m(i,2),v=E(f),L=N(v,!0);return w(f),w(o),S((y,_)=>{x(p,y),x(L,_)},[()=>g.chat_detectedScripts_title(),()=>n().length===1?g.chat_detectedScripts_count_one({count:or(n().length)}):g.chat_detectedScripts_count_many({count:or(n().length)})]),u(r,o),Ht(a)}function l2(r,t){if(new.target)return Dt({component:l2,...r});zt(t,!0);let n=h(t,"diff",7),a=h(t,"filePath",7),o=h(t,"language",7),s=h(t,"onApply",7),c=h(t,"onReject",7);function l(){s()?.(),Wn.success(g.chat_diffViewer_applied_toast())}function p(){c()?.(),Wn.info(g.chat_diffViewer_rejected_toast())}const i=d(()=>{const v=[];return s()&&v.push({label:g.chat_diffViewer_apply_label(),variant:"success",onClick:l}),c()&&v.push({label:g.chat_diffViewer_reject_label(),variant:"danger",onClick:p}),v});var f={get diff(){return n()},set diff(v){n(v),b()},get filePath(){return a()},set filePath(v){a(v),b()},get language(){return o()},set language(v){o(v),b()},get onApply(){return s()},set onApply(v){s(v),b()},get onReject(){return c()},set onReject(v){c(v),b()},$set:Bt,$on:(v,L)=>Ft(t,v,L)};{let v=d(()=>a()||g.chat_diffViewer_suggestedChanges_fallback());$o(r,{get patch(){return n()},get fileName(){return e(v)},get language(){return o()},get actions(){return e(i)},collapsible:!0,initialCollapsed:!1,maxHeight:"500px"})}return Ht(f)}var c2=Ua('<circle fill="none" style="transition: stroke-dasharray 0.3s ease-out"></circle>'),_d=Ua("<circle></circle>"),d2=Ua('<svg class="absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 fill-background" viewBox="0 0 8 6"><path fill-rule="evenodd" clip-rule="evenodd" d="M7.69471 1.69471C7.87687 1.50611 7.97766 1.25351 7.97539 0.991311C7.97311 0.729114 7.86794 0.478302 7.68253 0.292894C7.49712 0.107485 7.24631 0.00231622 6.98411 3.78025e-05C6.72192 -0.00224062 6.46931 0.0985542 6.28071 0.280712L2.98771 3.57371L1.69471 2.28071C1.50611 2.09855 1.25351 1.99776 0.991311 2.00004C0.729114 2.00232 0.478302 2.10749 0.292894 2.29289C0.107485 2.4783 0.00231622 2.72911 3.78025e-05 2.99131C-0.00224062 3.25351 0.0985542 3.50611 0.280712 3.69471L2.28071 5.69471C2.46824 5.88218 2.72255 5.9875 2.98771 5.9875C3.25288 5.9875 3.50718 5.88218 3.69471 5.69471L7.69471 1.69471Z"></path></svg>'),u2=k('<div class="relative"><svg fill="none" xmlns="http://www.w3.org/2000/svg"><circle fill="none"></circle><!></svg> <!></div>');function Cs(r,t){if(new.target)return Dt({component:Cs,...r});zt(t,!0);let n=h(t,"phase",7),a=h(t,"progress",7,0),o=h(t,"size",7,16),s=h(t,"class",7,""),c=d(()=>o()/2),l=d(()=>e(c)),p=d(()=>e(c)),i=d(()=>o()*.12),f=d(()=>e(c)-e(i)/2),v=d(()=>e(c)*.35),L=d(()=>2*Math.PI*e(v)),y=d(()=>Math.max(0,Math.min(1,a()))*e(L));const _={planning:"#99999999",building:"#54B1F3",reviewing:"#6D7FF5",shipped:"var(--color-foreground)"};let R=d(()=>_[n()]||"currentColor");var M={get phase(){return n()},set phase($){n($),b()},get progress(){return a()},set progress($=0){a($),b()},get size(){return o()},set size($=16){o($),b()},get class(){return s()},set class($=""){s($),b()},$set:Bt,$on:($,we)=>Ft(t,$,we)},B=u2(),z=E(B),I=E(z),P=m(I);{var H=$=>{},C=$=>{var we=c2();S(()=>{oe(we,"cx",e(l)),oe(we,"cy",e(p)),oe(we,"r",e(v)*.8),oe(we,"stroke",e(R)),oe(we,"stroke-width",e(v)*1.5),oe(we,"stroke-dasharray",`${e(y)??""} ${e(L)??""}`),oe(we,"stroke-dashoffset",e(L)*.25),oe(we,"transform",`rotate(-90 ${e(l)??""} ${e(p)??""})`)}),u($,we)},D=$=>{var we=_d();S(()=>{oe(we,"cx",e(l)),oe(we,"cy",e(p)),oe(we,"r",e(f)*.6),oe(we,"fill",e(R))}),u($,we)},V=$=>{var we=_d();S(()=>{oe(we,"cx",e(l)),oe(we,"cy",e(p)),oe(we,"r",e(f)),oe(we,"fill",e(R))}),u($,we)};F(P,$=>{n()==="planning"?$(H):n()==="building"?$(C,1):n()==="reviewing"?$(D,2):n()==="shipped"&&$(V,3)})}w(z);var J=m(z,2);{var Y=$=>{},xe=$=>{var we=d2();S(()=>oe(we,"width",o()*.5)),u($,we)};F(J,$=>{n()==="reviewing"?$(Y):n()==="shipped"&&$(xe,1)})}return w(B),S(()=>{oe(z,"width",o()),oe(z,"height",o()),oe(z,"viewBox",`0 0 ${o()??""} ${o()??""}`),pt(z,0,lr(s())),oe(I,"cx",e(l)),oe(I,"cy",e(p)),oe(I,"r",e(f)),oe(I,"stroke",e(R)),oe(I,"stroke-width",e(i))}),u(r,B),Ht(M)}var xd=k('<span class="flex items-center gap-1"><span class="size-1.5 rounded-full"></span> </span>'),p2=k('<span class="flex items-center gap-1"><span class="size-1.5 rounded-full bg-border"></span> </span>'),wd=k('<span class="text-ui text-subtle truncate"> </span>'),kd=k('<div class="flex items-center gap-1 mt-0.5"><!> <!></div>'),Sd=k('<div class="flex items-start gap-2"><div class="shrink-0 mt-0.5"><!></div> <div class="flex-1 min-w-0"><div class="text-xs leading-snug truncate"> </div> <!></div></div>'),f2=k('<div class="flex items-center gap-2"><div class="shrink-0"><!></div> <span class="text-ui text-subtle truncate line-through"> </span></div>'),g2=k('<span class="text-ui text-subtle pl-4"> </span>'),v2=k('<div class="flex flex-col gap-0.5 pt-1 border-t border-border"><!> <!></div>'),m2=k('<div class="text-ui text-subtle"> </div>'),h2=k("<!> <!> <!> <!>",1),b2=k('<div class="flex flex-col py-2 px-3 gap-2 max-h-80 overflow-y-auto"><div class="flex items-center justify-between gap-3"><span class="text-xs font-semibold text-foreground"> </span> <div class="flex items-center gap-3 text-ui text-subtle"><!> <!> <!></div></div> <!></div>'),y2=k('<div class="rounded-[0.5px]"></div>');function Up(r,t){if(new.target)return Dt({component:Up,...r});zt(t,!0);let n=h(t,"stats",7),a=h(t,"tasks",23,()=>[]),o=h(t,"maxBars",7,20),s=h(t,"barWidth",7,"1px"),c=h(t,"barHeight",7,"16px"),l=h(t,"gap",7,"1px"),p=h(t,"class",7);const i={completed:"#22c55e",inProgress:"#4F7BF7",notStarted:"var(--border)"};let f=d(()=>{const{completed:P,inProgress:H,notStarted:C,total:D}=n();if(D===0)return[];const V=[...Array(P).fill("completed"),...Array(H).fill("inProgress"),...Array(Math.max(0,C)).fill("notStarted")];return V.length<=o()?V:V.slice(V.length-o())}),v=d(()=>a().filter(P=>P.status==="complete")),L=d(()=>a().filter(P=>P.status==="in_progress"||P.status==="review_required")),y=d(()=>a().filter(P=>P.status!=="complete"&&P.status!=="in_progress"&&P.status!=="review_required"&&P.status!=="cancelled")),_=d(()=>a().filter(P=>P.status==="cancelled")),R=d(()=>a().length>0);var M={get stats(){return n()},set stats(P){n(P),b()},get tasks(){return a()},set tasks(P=[]){a(P),b()},get maxBars(){return o()},set maxBars(P=20){o(P),b()},get barWidth(){return s()},set barWidth(P="1px"){s(P),b()},get barHeight(){return c()},set barHeight(P="16px"){c(P),b()},get gap(){return l()},set gap(P="1px"){l(P),b()},get class(){return p()},set class(P){p(P),b()},$set:Bt,$on:(P,H)=>Ft(t,P,H)},B=ht(),z=De(B);{var I=P=>{Ri(P,{side:"top",align:"start",sideOffset:6,contentClass:"max-w-xs p-0",delayDuration:200,disableHoverableContent:!1,content:C=>{var D=b2(),V=E(D),J=E(V),Y=N(J,!0),xe=m(J,2),$=E(xe);{var we=ke=>{var te=xd(),ge=E(te);Ln(ge,"",{},{"background-color":"#22c55e"});var He=m(ge);w(te),S(()=>x(He,` ${n().completed??""}`)),u(ke,te)};F($,ke=>{n().completed>0&&ke(we)})}var de=m($,2);{var Te=ke=>{var te=xd(),ge=E(te);Ln(ge,"",{},{"background-color":"#4F7BF7"});var He=m(ge);w(te),S(()=>x(He,` ${n().inProgress??""}`)),u(ke,te)};F(de,ke=>{n().inProgress>0&&ke(Te)})}var ie=m(de,2);{var Re=ke=>{var te=p2(),ge=m(E(te));w(te),S(()=>x(ge,` ${n().notStarted??""}`)),u(ke,te)};F(ie,ke=>{n().notStarted>0&&ke(Re)})}w(xe),w(V);var se=m(V,2);{var ee=ke=>{var te=h2(),ge=De(te);Lt(ge,17,()=>e(L),Rr,(W,G)=>{var q=Sd(),re=E(q),ye=E(re);ui(ye,{get status(){return e(G).status},size:14}),w(re);var Oe=m(re,2),Q=E(Oe),le=N(Q,!0),Ee=m(Q,2);{var et=_e=>{var Ae=kd(),K=E(Ae);{let O=d(()=>e(G).agentState||"idle");Pc(K,{get agentId(){return e(G).agentId},get state(){return e(O)},size:12,get specialist(){return e(G).agentSpecialist}})}var Se=m(K,2);{var ue=O=>{var U=wd(),me=N(U,!0);S(()=>x(me,e(G).agentName)),u(O,U)};F(Se,O=>{e(G).agentName&&O(ue)})}w(Ae),u(_e,Ae)};F(Ee,_e=>{e(G).agentId&&_e(et)})}w(Oe),w(q),S(()=>x(le,e(G).title)),u(W,q)});var He=m(ge,2);Lt(He,17,()=>e(y),Rr,(W,G)=>{var q=Sd(),re=E(q),ye=E(re);ui(ye,{get status(){return e(G).status},size:14}),w(re);var Oe=m(re,2),Q=E(Oe),le=N(Q,!0),Ee=m(Q,2);{var et=_e=>{var Ae=kd(),K=E(Ae);{let O=d(()=>e(G).agentState||"idle");Pc(K,{get agentId(){return e(G).agentId},get state(){return e(O)},size:12,get specialist(){return e(G).agentSpecialist}})}var Se=m(K,2);{var ue=O=>{var U=wd(),me=N(U,!0);S(()=>x(me,e(G).agentName)),u(O,U)};F(Se,O=>{e(G).agentName&&O(ue)})}w(Ae),u(_e,Ae)};F(Ee,_e=>{e(G).agentId&&_e(et)})}w(Oe),w(q),S(()=>x(le,e(G).title)),u(W,q)});var Xe=m(He,2);{var X=W=>{var G=v2(),q=E(G);Lt(q,17,()=>e(v).slice(0,3),Rr,(Oe,Q)=>{var le=f2(),Ee=E(le),et=E(Ee);ui(et,{status:"complete",size:12}),w(Ee);var _e=m(Ee,2),Ae=N(_e,!0);w(le),S(()=>x(Ae,e(Q).title)),u(Oe,le)});var re=m(q,2);{var ye=Oe=>{var Q=g2(),le=N(Q,!0);S(Ee=>x(le,Ee),[()=>g.workspace_taskProgressBar_moreCompleted_label({count:or(e(v).length-3)})]),u(Oe,Q)};F(re,Oe=>{e(v).length>3&&Oe(ye)})}w(G),u(W,G)};F(Xe,W=>{e(v).length>0&&W(X)})}var Z=m(Xe,2);{var Ye=W=>{var G=m2(),q=N(G,!0);S(re=>x(q,re),[()=>g.workspace_taskProgressBar_cancelled_label({count:or(e(_).length)})]),u(W,G)};F(Z,W=>{e(_).length>0&&W(Ye)})}u(ke,te)};F(se,ke=>{e(R)&&ke(ee)})}w(D),S(ke=>x(Y,ke),[()=>g.workspace_taskProgressBar_tasksRatio_label({completed:or(n().completed),total:or(n().total)})]),u(C,D)},children:(C,D)=>{{let V=d(()=>Sn("flex h-auto min-w-0 shrink items-end justify-start cursor-default rounded-none border-0",p())),J=d(()=>`gap: ${l()}`),Y=d(()=>g.workspace_taskProgressBar_tasksRatio_label({completed:or(n().completed),total:or(n().total)}));St(C,{variant:"plain",type:"button",wrapContent:!1,get class(){return e(V)},get style(){return e(J)},get"aria-label"(){return e(Y)},"data-task-progress-trigger":!0,children:(xe,$)=>{var we=ht(),de=De(we);Lt(de,17,()=>e(f),Rr,(Te,ie)=>{var Re=y2();let se;S(()=>se=Ln(Re,"",se,{width:s(),height:c(),"background-color":i[e(ie)]})),u(Te,Re)}),u(xe,we)},$$slots:{default:!0}})}},$$slots:{content:!0,default:!0}})};F(z,P=>{n().total>0&&P(I)})}return u(r,B),Ht(M)}function Tl(r,t){if(new.target)return Dt({component:Tl,...r});zt(t,!0);let n=h(t,"items",7),a=h(t,"ariaLabel",7),o=h(t,"open",15,!1),s=h(t,"orientation",7,"vertical"),c=h(t,"selection",7),l=h(t,"class",7,"");const p=d(()=>Wm(n(),c(),a()));var i={get items(){return n()},set items(f){n(f),b()},get ariaLabel(){return a()},set ariaLabel(f){a(f),b()},get open(){return o()},set open(f=!1){o(f),b()},get orientation(){return s()},set orientation(f="vertical"){s(f),b()},get selection(){return c()},set selection(f){c(f),b()},get class(){return l()},set class(f=""){l(f),b()},$set:Bt,$on:(f,v)=>Ft(t,f,v)};return _u(r,{get actions(){return e(p)},align:"end",get ariaLabel(){return a()},onAction:v=>jm(n(),v)?.onClick(),get open(){return o()},set open(v){o(v)},trigger:(v,L)=>{let y=()=>(L?.()).props;St(v,zs(y,{variant:"plain",size:"icon-compact",iconOnly:!0,type:"button",get class(){return l()},get"aria-label"(){return a()},onclick:_=>{_.stopPropagation(),y().onclick?.(_)},oncontextmenu:_=>{_.preventDefault(),_.stopPropagation()},children:(_,R)=>{$v(_,{get orientation(){return s()},class:"size-3.5"})},$$slots:{default:!0}}))},$$slots:{trigger:!0}}),Ht(i)}var _2=k('<span class="contents"><!></span>'),x2=k("<!> <!>",1);function qp(r,t){if(new.target)return Dt({component:qp,...r});zt(t,!0);let n=h(t,"workspaceId",7),a=h(t,"slot",7);const o=d(()=>hv(a()));let s=ve(null);_t(()=>{e(s)&&e(s).workspaceId!==n()&&T(s,null)});function c(_){const R=xu(_);R&&T(s,{...R,workspaceId:n()},!0)}function l(_){_.preventDefault(),_.stopPropagation();const R=_.currentTarget.getBoundingClientRect();T(s,{x:R.left,y:R.bottom+2,returnFocus:_.currentTarget,workspaceId:n()},!0)}function p(){T(s,null)}var i={get workspaceId(){return n()},set workspaceId(_){n(_),b()},get slot(){return a()},set slot(_){a(_),b()},$set:Bt,$on:(_,R)=>Ft(t,_,R)},f=x2(),v=De(f);{let _=d(()=>g.workspace_microKeyBadge_ariaLabel({number:or(a()+1)})),R=d(()=>g.workspace_microKeyBadge_tooltip({number:or(a()+1)})),M=d(()=>e(s)!==null);St(v,{variant:"ghost",size:"icon",type:"button",class:"micro-key-slot-badge size-4 min-w-0 shrink-0 cursor-pointer rounded-[3px] p-0 a11y-ignore",get"aria-label"(){return e(_)},get title(){return e(R)},onclick:l,oncontextmenu:c,onkeydown:c,"aria-haspopup":"menu",get"aria-expanded"(){return e(M)},children:(B,z)=>{var I=_2(),P=E(I);zg(P,{get slot(){return a()},get class(){return`transition-colors ${e(o)??""}`}}),w(I),u(B,I)},$$slots:{default:!0}})}var L=m(v,2);{var y=_=>{{let R=d(()=>e(s)?.x??0),M=d(()=>e(s)?.y??0),B=d(()=>e(s)?.returnFocus),z=d(()=>g.workspace_card_assignMicroKey_label()),I=d(()=>Fb(n(),p));wu(_,{get x(){return e(R)},get y(){return e(M)},get returnFocus(){return e(B)},selection:"single",get ariaLabel(){return e(z)},get items(){return e(I)},onClickOutside:p})}};F(L,_=>{e(s)&&_(y)})}return u(r,f),Ht(i)}var w2=k('<span class="flex size-4 shrink-0 items-center justify-center"><!></span>'),k2=k('<span data-workspace-card-pin-indicator="" aria-hidden="true"><!></span> <span class="sr-only"> </span>',1),S2=k('<span class="type-caption shrink-0 rounded-sm bg-muted-foreground/10 px-1.5 font-normal text-muted-foreground" data-workspace-card-trailing-label=""> </span>'),I2=k('<span data-workspace-card-pr-item=""><!></span>'),C2=k('<span class="flex shrink-0 items-center" data-workspace-card-pr-list=""><!></span>'),E2=k('<span data-workspace-card-time=""><!></span>'),P2=k('<span aria-hidden="true"><!></span>'),A2=k("<div><!> <!> <!> <!></div>"),T2=k('<div data-workspace-card-hover-surface=""><!></div>'),R2=k('<div role="group" data-workspace-card-row=""><!> <div class="relative z-10 flex shrink-0 items-center gap-1.5"><!> <!> <span class="sr-only"> </span></div> <div class="relative z-10 flex min-w-0 flex-1 items-center gap-2"><span class="flex min-w-0 flex-1 items-center gap-1" data-workspace-card-title-group=""><span dir="ltr" data-workspace-card-title=""><span class="wc-title-text svelte-1ct56pd"> </span></span> <!></span> <!> <!> <!></div> <!></div> <!> <!>',1),M2=k('<div class="relative z-10 flex shrink-0 items-center"><!></div>'),L2=k('<div><!> <!> <span class="font-medium truncate"> </span> <span class="shrink-0 text-muted-foreground">·</span> <span class="truncate text-xs text-muted-foreground"> </span> <!></div>'),N2=k('<div class="text-sm font-semibold truncate"> </div>'),Id=k('<span class="truncate"> </span>'),O2=k('<span class="text-muted-foreground">·</span>'),D2=k('<div class="flex items-center gap-1 truncate text-xs text-muted-foreground"><!> <!> <!></div>'),B2=k('<div><!> <!> <div class="flex items-center gap-2 text-xs"><!> <span class="truncate text-muted-foreground"> </span> <span> </span></div> <!></div>'),F2=k('<div class="flex items-center gap-2"><!> <span class="text-ui shrink-0 tabular-nums text-muted-foreground"> </span></div>'),z2=k('<div class="flex items-center justify-between text-ui"><span class="text-muted-foreground"> </span> <span class="tabular-nums"><span class="text-success"> </span> <span class="ml-1 text-danger"> </span></span></div>'),H2=k('<div class="flex items-center justify-between text-ui"><span class="text-muted-foreground"> </span></div>'),j2=k('<div class="flex items-center text-ui"><span> </span></div>'),W2=k('<div class="flex flex-col gap-1 px-3 pb-2.5"><!> <!> <!> <!></div>'),U2=k('<div class="relative z-10 flex items-center gap-1.5 px-2 pb-2"><!></div>'),q2=k('<div class="relative z-10 flex items-center gap-1.5 px-2 pb-2"><!> <!></div>'),V2=k('<div role="group"><!> <div class="flex items-start gap-2.5 px-3 pt-3 pb-2"><!> <div class="flex-1 min-w-0"><div class="text-sm font-medium"> </div> <div class="mt-0.5 line-clamp-2 text-xs leading-snug text-muted-foreground"> </div></div></div> <!> <!></div>');function Vp(r,t){if(new.target)return Dt({component:Vp,...r});zt(t,!0);const n=()=>yt(He,"$prMonitors$",c),a=()=>yt(Xe,"$microConnected$",c),o=()=>yt(Z,"$hidesOwnerActions$",c),s=()=>yt(X,"$workspaceKeySlot$",c),[c,l]=ma();let p=h(t,"workspace",7),i=h(t,"phase",7),f=h(t,"stats",7),v=h(t,"variant",7,"compact"),L=h(t,"showTime",7,!0),y=h(t,"isRunning",7,!1),_=h(t,"isUnread",7,!1),R=h(t,"isWaiting",7),M=h(t,"isPinned",7,!1),B=h(t,"streamingAgentIds",23,()=>[]),z=h(t,"hasSpec",7,!1),I=h(t,"isAgentRunning",7,!1),P=h(t,"agentDigest",7),H=h(t,"trailingLabel",7),C=h(t,"title",7),D=h(t,"repoName",7),V=h(t,"branch",7),J=h(t,"onClick",7),Y=h(t,"onAction",7),xe=h(t,"onTogglePin",7),$=h(t,"onMarkAsRead",7),we=h(t,"onOpenInNewWindow",7),de=h(t,"onHover",7),Te=h(t,"highlighted",7,!1),ie=h(t,"selected",7,!1),Re=h(t,"highlightId",7),se=h(t,"suppressHover",7,!1),ee=h(t,"isolateHoverReveal",7,!1),ke=h(t,"class",7),te=h(t,"actions",7);const ge=Ro("");_t(()=>{ge.set(p()?.id??"")});const He=Cg(ge),Xe=Vb(),X=eh(ge),Z=Eg(ge),Ye=d(()=>Hb(p()??{})),W=d(()=>jb(e(Ye)));let G=d(()=>p()?Db.url.pathname===`/workspace/${p().id}`:!1),q=d(()=>p()?`workspace-hover-card-${p().id}`:void 0),re=ve(!1),ye=ve(null),Oe=ve(null);_t(()=>{if(!e(Oe))return;const ne=hs(e(Oe),{id:Re()});return()=>ne.destroy()});let Q=ve(null),le=ve(null),Ee=ve(null),et=ve(0),_e=ve(0),Ae=d(()=>e(et)+(e(_e)>0?e(_e)+4:0));function K(){const ne=e(Q),ft=e(Ee);T(et,ne?Math.max(0,ne.scrollWidth-ne.clientWidth):0,!0),T(_e,ne&&ft&&ft.getClientRects().length>0?Math.max(0,ne.getBoundingClientRect().right-ft.getBoundingClientRect().left):0,!0)}_t(()=>{const ne=e(Q),ft=e(le),Gt=e(Ee);if(!ne||!ft||(K(),typeof ResizeObserver>"u"))return;const Xt=new ResizeObserver(K);return Xt.observe(ne),Xt.observe(ft),Gt&&Xt.observe(Gt),()=>Xt.disconnect()});let Se=null,ue=null,O=!1,U=!1,me=!1,Ke=!1,Ne=!1,Ve=!1,Ge=ve(!1),lt=!1,gt=null,Ct=ve(null),qt=null,It;function ce(){Se!==null&&(clearTimeout(Se),Se=null)}function Pe(){ue!==null&&(clearTimeout(ue),ue=null),qt?.(),qt=null}function rt(){Pe(),T(Ge,!0),T(re,!0),!Ne&&(Ne=!0,Jo.notifyOpened())}function st(){Pe(),clearTimeout(It),T(Ge,!1),T(re,!1),U=!1,Ke=!1,Ne&&(Ne=!1,Jo.notifyClosed())}function wt(){return O||U||me||Ke}function nt(){if(!e(re)){st();return}Pe(),ue=setTimeout(()=>{ue=null,wt()||st()},Ub),qt=Jo.deferClose(st)}function Pt(){U=!0,Pe()}function bt(){U=!1,!me&&!Ke&&nt()}function kt(){Ke=!0,clearTimeout(It),Pe()}function Mt(ne){const ft=ne.relatedTarget instanceof Node?ne.relatedTarget:null;if(ft&&be()?.contains(ft)||(Ke=!1,ft&&e(ye)?.contains(ft)))return;if(ft){!O&&!U&&st();return}const Gt=ne.target;clearTimeout(It),It=setTimeout(()=>{const Xt=document.activeElement,mr=be()?.contains(Xt)||e(ye)?.contains(Xt);Xt&&Xt!==Gt&&mr||!O&&!U&&st()},0)}function Jt(){gt!==null&&clearTimeout(gt),lt=!0,gt=setTimeout(()=>{lt=!1,gt=null},0)}function tr(ne){const ft=ne.target,Gt=be();ft instanceof Node&&Gt?.contains(ft)||ne.type==="scroll"&&e(ye)&&ft instanceof Node&&!ft.contains(e(ye))||(ne.type==="pointerdown"&&Jt(),ce(),st())}_t(()=>{if(e(Ge))return window.addEventListener("pointerdown",tr,!0),window.addEventListener("scroll",tr,!0),()=>{window.removeEventListener("pointerdown",tr,!0),window.removeEventListener("scroll",tr,!0)}});function Kt(ne){if(ne.key!=="Escape")return;const ft=ne.target;ft instanceof Node&&be()?.contains(ft)||(ne.preventDefault(),ne.stopPropagation(),Ve=me,ce(),st())}_t(()=>{if(e(re))return window.addEventListener("keydown",Kt,!0),()=>window.removeEventListener("keydown",Kt,!0)});const Me=d(()=>p()?Ag.select(Ot.state,p().id):null),pe=d(()=>e(Me)?e(Me):p()?.activePullRequest?p().activePullRequest:!p()?.prStatus||p().prNumber==null?null:{id:`legacy-pr-${p().prNumber}`,number:p().prNumber,url:p().prUrl??"",title:g.workspace_hoverCard_pullRequest_label(),status:p().prStatus,createdAt:p().updatedAt,updatedAt:p().updatedAt}),Ze=d(()=>Pg(p())),ot=d(()=>{if(!p()||e(Ze))return[];const ne=p(),ft=ne.repositoryOwner&&ne.repositoryName?`${ne.repositoryOwner}/${ne.repositoryName}`:void 0;return Um({workspacePRs:ne.pullRequests,activePR:e(pe),monitors:n(),workspaceRepo:ft,buildPrUrl:(Gt,Xt)=>km(Gt,ne.repositoryOwner,ne.repositoryName,Xt),getDisplayTitle:Gt=>Gt.title})}),tt=d(()=>e(ot)[0]);function Be(ne){const ft=ne.resource?.repository.provider==="gitlab"?`${ne.repo} !${ne.number}`:ne.repo?g.workspace_card_prBadge_repoLine_tooltip({repo:ne.repo,number:ne.number}):g.workspace_card_prBadge_label({number:` #${ne.number}`});return[Tg(ft,ne),ne.title,ne.details].filter(Boolean).join(`
296
296
  `)}function ae(ne){ne.key==="Enter"&&J()?.(ne)}function be(){return e(q)?document.getElementById(e(q)):null}function he(){return Array.from(be()?.querySelectorAll("button:not(:disabled), a[href]")??[])}function Ce(){const ne=e(ye)?.querySelector("[data-workspace-card-trigger]"),ft=be();if(!ne||!ft)return null;const Gt=Array.from(document.querySelectorAll('button:not(:disabled), a[href], input:not(:disabled), select:not(:disabled), textarea:not(:disabled), [tabindex]:not([tabindex="-1"])')).filter(mr=>mr.tabIndex>=0&&!ft.contains(mr)),Xt=Gt.indexOf(ne);return Xt>=0?Gt[Xt+1]:null}function Ie(ne){Ve=!!e(ye)?.contains(ne),st(),ne.focus({preventScroll:!0})}function Fe(){const ne=e(ye)?.querySelector("[data-workspace-card-trigger]");ne&&Ie(ne)}async function ze(ne){if(ne.key==="Escape"&&e(re)){ne.preventDefault(),ne.stopPropagation(),st();return}ne.key!=="ArrowDown"||se()||!p()||(ne.preventDefault(),ne.stopPropagation(),T(Ge,!0),T(re,!0),await Un(),he()[0]?.focus({preventScroll:!0}))}function Qe(ne){const ft=he(),Gt=ne.key==="Tab"&&ne.shiftKey&&ne.currentTarget===ft[0],mr=ne.key==="Tab"&&!ne.shiftKey&&ne.currentTarget===ft.at(-1)?Ce():null;ne.key!=="Escape"&&!Gt&&!mr||(ne.preventDefault(),ne.stopPropagation(),mr?Ie(mr):Fe())}function Je(){O=!0,Pe(),Jo.settleDeferredCloses(),K(),de()?.(),p()&&!se()&&!me&&(ce(),T(Ge,!0),Se=setTimeout(()=>{Se=null,rt()},Jo.currentOpenDelay))}function We(){O=!1,ce(),!me&&!Ke&&nt()}function $e(){me=!0,ce(),Pe(),!Ve&&(lt||p()&&!se()&&(T(Ge,!0),T(re,!0)))}function Ue(ne){const ft=ne.relatedTarget instanceof Node?ne.relatedTarget:null;ft&&e(ye)?.contains(ft)||(Ve=!1,me=!1,!(ft&&be()?.contains(ft))&&!O&&!U&&st())}_t(()=>{se()&&(ce(),Pe(),st())});let qe=ve(null),dt=ve(!1),it;_t(()=>{const ne=p()?.id;it!==ne&&(it=ne,T(dt,!1)),e(qe)&&e(qe).workspaceId!==p()?.id&&Et()});function ut(ne){if(!p())return;const ft=xu(ne);if(ft){if(T(dt,!1),vt().length===0){T(qe,null);return}T(qe,{...ft,returnFocus:ne.target instanceof HTMLElement?ne.target.closest("button")??e(ye)?.querySelector("button")??null:null,workspaceId:p().id},!0)}}function Et(){T(qe,null),T(dt,!1)}_t(()=>{e(dt)&&T(qe,null)}),bo(()=>{ce(),Pe(),gt!==null&&(clearTimeout(gt),gt=null),st()});function vt(){if(!p())return[];const ne=[];return we()&&ne.push({id:"open-new-window",label:g.workspace_card_openNewWindow_label(),icon:Jd,onClick:()=>{we()?.(),Et()}}),ne.push(...Wb(p().id,{connected:a(),onClose:Et})),o()||(e(Ze)||ne.push({id:"transfer",label:g.workspace_card_transfer_label(),icon:iv,onClick:()=>{Ot.dispatch(Rv({workspaceId:p().id,workspaceTitle:p().title})),Et()}}),ne.push({id:"archive",label:g.workspace_card_archive_label(),icon:Yd,onClick:()=>{Ot.dispatch(iu(p().id)),Et()}}),ne.push({id:"delete",label:g.workspace_card_deleteSpace_label(),icon:Xd,destructive:!0,onClick:()=>{Ot.dispatch(lu(p().id)),Et()}})),ne}let Wt=d(()=>I()&&P()?P():i()?.subtitle??""),Yt=d(()=>f()&&f().tasks.total>0?f().tasks.completed/f().tasks.total:0),Qt=d(()=>!!f()&&(f().tasks.total>0||f().files.changed>0||f().commits.total>0||f().pr.hasOpen||f().pr.hasMerged)),dr=d(()=>e(Ze)?void 0:V()),Br=d(()=>!f()||e(Ze)?"":f().pr.hasMerged?g.workspace_card_prMerged_label({number:f().pr.number??""}):f().pr.hasOpen?g.workspace_card_prOpen_label({number:f().pr.number?`#${f().pr.number}`:""}):""),on=d(()=>i()?.phase==="planning"?I()?{primary:{label:g.workspace_card_showCoordinator_label(),action:"show-coordinator"},secondary:{label:g.workspace_card_pause_label(),action:"pause"}}:z()||(f()?.tasks.total??0)>0?{primary:{label:g.workspace_card_approveStart_label(),action:"approve"},secondary:{label:g.workspace_card_viewSpec_label(),action:"view-spec"}}:{primary:{label:g.workspace_card_showCoordinator_label(),action:"show-coordinator"},secondary:{label:g.workspace_card_viewSpec_label(),action:"view-spec"}}:i()?.phase==="building"?{primary:{label:g.workspace_card_showCoordinator_label(),action:"show-coordinator"},secondary:{label:g.workspace_card_pause_label(),action:"pause"}}:i()?.phase==="reviewing"?{primary:{label:g.workspace_card_createPr_label(),action:"create-pr"},secondary:{label:g.workspace_card_showChanges_label(),action:"show-changes"}}:{primary:{label:g.workspace_card_archive_label(),action:"archive"},secondary:{label:g.workspace_card_showChanges_label(),action:"show-changes"}});const sn={planning:"bg-muted/20 text-muted-foreground",building:"bg-info/15 text-info",reviewing:"bg-primary/15 text-primary",shipped:"bg-foreground/10 text-foreground"};var ur={get workspace(){return p()},set workspace(ne){p(ne),b()},get phase(){return i()},set phase(ne){i(ne),b()},get stats(){return f()},set stats(ne){f(ne),b()},get variant(){return v()},set variant(ne="compact"){v(ne),b()},get showTime(){return L()},set showTime(ne=!0){L(ne),b()},get isRunning(){return y()},set isRunning(ne=!1){y(ne),b()},get isUnread(){return _()},set isUnread(ne=!1){_(ne),b()},get isWaiting(){return R()},set isWaiting(ne){R(ne),b()},get isPinned(){return M()},set isPinned(ne=!1){M(ne),b()},get streamingAgentIds(){return B()},set streamingAgentIds(ne=[]){B(ne),b()},get hasSpec(){return z()},set hasSpec(ne=!1){z(ne),b()},get isAgentRunning(){return I()},set isAgentRunning(ne=!1){I(ne),b()},get agentDigest(){return P()},set agentDigest(ne){P(ne),b()},get trailingLabel(){return H()},set trailingLabel(ne){H(ne),b()},get title(){return C()},set title(ne){C(ne),b()},get repoName(){return D()},set repoName(ne){D(ne),b()},get branch(){return V()},set branch(ne){V(ne),b()},get onClick(){return J()},set onClick(ne){J(ne),b()},get onAction(){return Y()},set onAction(ne){Y(ne),b()},get onTogglePin(){return xe()},set onTogglePin(ne){xe(ne),b()},get onMarkAsRead(){return $()},set onMarkAsRead(ne){$(ne),b()},get onOpenInNewWindow(){return we()},set onOpenInNewWindow(ne){we(ne),b()},get onHover(){return de()},set onHover(ne){de(ne),b()},get highlighted(){return Te()},set highlighted(ne=!1){Te(ne),b()},get selected(){return ie()},set selected(ne=!1){ie(ne),b()},get highlightId(){return Re()},set highlightId(ne){Re(ne),b()},get suppressHover(){return se()},set suppressHover(ne=!1){se(ne),b()},get isolateHoverReveal(){return ee()},set isolateHoverReveal(ne=!1){ee(ne),b()},get class(){return ke()},set class(ne){ke(ne),b()},get actions(){return te()},set actions(ne){te(ne),b()},$set:Bt,$on:(ne,ft)=>Ft(t,ne,ft)},Vn=ht(),$n=De(Vn);{var ha=ne=>{var ft=R2(),Gt=De(ft);let Xt;var mr=E(Gt);{let xt=d(()=>p().title||g.workspace_links_untitled_label()),Tt=d(()=>`workspace-status-state-${p().id}${M()?` workspace-pinned-state-${p().id}`:""}${e(re)?` ${e(q)}`:""}`),sr=d(()=>e(G)?"page":void 0);St(mr,{variant:"plain",class:"absolute inset-0 z-0 h-auto w-auto rounded-md focus-visible:border-transparent focus-visible:bg-background/50 focus-visible:ring-0",get"aria-label"(){return e(xt)},get"aria-describedby"(){return e(Tt)},get"aria-current"(){return e(sr)},"data-workspace-card-trigger":!0,onkeydown:ze,onclick:wr=>{wr.stopPropagation(),J()?.(wr)}})}var Kn=m(mr,2),Xr=E(Kn);{var ea=xt=>{var Tt=w2(),sr=E(Tt);{var wr=Cr=>{qp(Cr,{get workspaceId(){return p().id},get slot(){return s()}})};F(sr,Cr=>{s()!==null&&Cr(wr)})}w(Tt),u(xt,Tt)};F(Xr,xt=>{a()&&xt(ea)})}var Cn=m(Xr,2);Ri(Cn,{get content(){return e(W).tooltip},side:"bottom",sideOffset:4,children:(xt,Tt)=>{zb(xt,{get status(){return e(Ye)},size:14,decorative:!0,class:"justify-start"})},$$slots:{default:!0}});var En=m(Cn,2),ia=N(En,!0);w(Kn);var Lr=m(Kn,2),en=E(Lr),er=E(en),hr=E(er),yr=N(hr,!0);vr(hr,xt=>T(le,xt),()=>e(le)),w(er),vr(er,xt=>T(Q,xt),()=>e(Q));var Ar=m(er,2);{var kr=xt=>{var Tt=k2(),sr=De(Tt),wr=E(sr);Rt(wr,{get icon(){return Yl},size:"xs"}),w(sr);var Cr=m(sr,2),Kr=N(Cr,!0);S(Pn=>{pt(sr,1,`wc-pin-indicator inline-flex shrink-0 items-center text-muted-foreground transition-opacity
297
- ${xe()?Te()?"opacity-0":se()?"":ee()?"group-hover/wc:opacity-0 group-focus-within/wc:opacity-0":"group-hover:opacity-0 group-focus-within:opacity-0":""}`,"svelte-1ct56pd"),oe(Cr,"id",`workspace-pinned-state-${p().id??""}`),x(Kr,Pn)},[()=>g.layout_activeCard_pinned_header()]),u(xt,Tt)};F(Ar,xt=>{M()&&xt(kr)})}w(en);var cn=m(en,2);{var ba=xt=>{var Tt=S2(),sr=N(Tt,!0);S(()=>x(sr,H())),u(xt,Tt)};F(cn,xt=>{H()&&xt(ba)})}var hn=m(cn,2);{var Fr=xt=>{const Tt=d(()=>e(tt));var sr=C2(),wr=E(sr);{let Cr=d(()=>Be(e(Tt)));Ri(wr,{get content(){return e(Cr)},side:"bottom",sideOffset:4,children:(Kr,Pn)=>{var za=ht(),_a=De(za);{var Nr=Nn=>{{let zr=d(()=>Be(e(Tt)));St(Nn,{variant:"plain",size:"icon-compact",iconOnly:!0,get class(){return`size-5 shrink-0 rounded-sm ${e(Tt).foregroundClass??""}`},get"aria-label"(){return e(zr)},"data-workspace-card-pr-item":!0,get"data-pr-identity"(){return e(Tt).identity},get"data-pr-status"(){return e(Tt).status},onclick:dn=>{dn.stopPropagation();const Ha=p().id;sg(async()=>{const{handleLink:xa}=await import("./CC3KUVRg.js").then(Ta=>Ta.l);return{handleLink:xa}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46]),import.meta.url).then(({handleLink:xa})=>xa(e(Tt).url,{workspaceId:Ha,event:dn}))},children:(dn,Ha)=>{Rt(dn,{get icon(){return e(Tt).statusIcon},size:14})},$$slots:{default:!0}})}},Gn=Nn=>{var zr=I2(),dn=E(zr);Rt(dn,{get icon(){return e(Tt).statusIcon},size:14}),w(zr),S(Ha=>{pt(zr,1,`inline-flex size-5 shrink-0 items-center justify-center rounded-sm ${e(Tt).foregroundClass??""}`,"svelte-1ct56pd"),oe(zr,"aria-label",Ha),oe(zr,"data-pr-identity",e(Tt).identity),oe(zr,"data-pr-status",e(Tt).status)},[()=>Be(e(Tt))]),u(Nn,zr)};F(_a,Nn=>{e(Tt).url?Nn(Nr):Nn(Gn,-1)})}u(Kr,za)},$$slots:{default:!0}})}w(sr),S(Cr=>oe(sr,"aria-label",Cr),[()=>e(Tt).resource?.repository.provider==="gitlab"?g.workspace_hoverCard_mergeRequest_label():g.workspace_hoverCard_pullRequest_label()]),u(xt,sr)};F(hn,xt=>{e(tt)&&xt(Fr)})}var Vr=m(hn,2);{var ya=xt=>{var Tt=E2(),sr=E(Tt);{var wr=Kr=>{{let Pn=d(()=>tc(p()));Hg(Kr,{get date(){return e(Pn)},class:"type-caption whitespace-nowrap tabular-nums text-muted-foreground",compact:!0})}},Cr=d(()=>tc(p())>0);F(sr,Kr=>{e(Cr)&&Kr(wr)})}w(Tt),S(()=>pt(Tt,1,`wc-secondary shrink-0 ${te()||xe()||_()&&$()?Te()?"opacity-0":se()?"":ee()?"group-hover/wc:opacity-0 group-hover/message:opacity-0":"group-hover:opacity-0 group-hover/message:opacity-0":""}`,"svelte-1ct56pd")),u(xt,Tt)};F(Vr,xt=>{L()&&xt(ya)})}w(Lr);var Za=m(Lr,2);{var qa=xt=>{var Tt=A2(),sr=E(Tt);{var wr=Nr=>{{let Gn=d(()=>M()?"text-primary-ink":"text-muted-foreground"),Nn=d(()=>M()?g.workspace_card_unpin_ariaLabel():g.workspace_card_pin_ariaLabel()),zr=d(()=>M()?g.workspace_card_unpin_tooltip():g.workspace_card_pin_tooltip());St(Nr,{variant:"plain",size:"icon-xs",iconOnly:!0,get class(){return`transition-all hover:bg-muted/50 hover:text-foreground focus-visible:border-transparent focus-visible:bg-muted/50 focus-visible:text-foreground focus-visible:ring-0
297
+ ${xe()?Te()?"opacity-0":se()?"":ee()?"group-hover/wc:opacity-0 group-focus-within/wc:opacity-0":"group-hover:opacity-0 group-focus-within:opacity-0":""}`,"svelte-1ct56pd"),oe(Cr,"id",`workspace-pinned-state-${p().id??""}`),x(Kr,Pn)},[()=>g.layout_activeCard_pinned_header()]),u(xt,Tt)};F(Ar,xt=>{M()&&xt(kr)})}w(en);var cn=m(en,2);{var ba=xt=>{var Tt=S2(),sr=N(Tt,!0);S(()=>x(sr,H())),u(xt,Tt)};F(cn,xt=>{H()&&xt(ba)})}var hn=m(cn,2);{var Fr=xt=>{const Tt=d(()=>e(tt));var sr=C2(),wr=E(sr);{let Cr=d(()=>Be(e(Tt)));Ri(wr,{get content(){return e(Cr)},side:"bottom",sideOffset:4,children:(Kr,Pn)=>{var za=ht(),_a=De(za);{var Nr=Nn=>{{let zr=d(()=>Be(e(Tt)));St(Nn,{variant:"plain",size:"icon-compact",iconOnly:!0,get class(){return`size-5 shrink-0 rounded-sm ${e(Tt).foregroundClass??""}`},get"aria-label"(){return e(zr)},"data-workspace-card-pr-item":!0,get"data-pr-identity"(){return e(Tt).identity},get"data-pr-status"(){return e(Tt).status},onclick:dn=>{dn.stopPropagation();const Ha=p().id;sg(async()=>{const{handleLink:xa}=await import("./DN-C1UIq.js").then(Ta=>Ta.l);return{handleLink:xa}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46]),import.meta.url).then(({handleLink:xa})=>xa(e(Tt).url,{workspaceId:Ha,event:dn}))},children:(dn,Ha)=>{Rt(dn,{get icon(){return e(Tt).statusIcon},size:14})},$$slots:{default:!0}})}},Gn=Nn=>{var zr=I2(),dn=E(zr);Rt(dn,{get icon(){return e(Tt).statusIcon},size:14}),w(zr),S(Ha=>{pt(zr,1,`inline-flex size-5 shrink-0 items-center justify-center rounded-sm ${e(Tt).foregroundClass??""}`,"svelte-1ct56pd"),oe(zr,"aria-label",Ha),oe(zr,"data-pr-identity",e(Tt).identity),oe(zr,"data-pr-status",e(Tt).status)},[()=>Be(e(Tt))]),u(Nn,zr)};F(_a,Nn=>{e(Tt).url?Nn(Nr):Nn(Gn,-1)})}u(Kr,za)},$$slots:{default:!0}})}w(sr),S(Cr=>oe(sr,"aria-label",Cr),[()=>e(Tt).resource?.repository.provider==="gitlab"?g.workspace_hoverCard_mergeRequest_label():g.workspace_hoverCard_pullRequest_label()]),u(xt,sr)};F(hn,xt=>{e(tt)&&xt(Fr)})}var Vr=m(hn,2);{var ya=xt=>{var Tt=E2(),sr=E(Tt);{var wr=Kr=>{{let Pn=d(()=>tc(p()));Hg(Kr,{get date(){return e(Pn)},class:"type-caption whitespace-nowrap tabular-nums text-muted-foreground",compact:!0})}},Cr=d(()=>tc(p())>0);F(sr,Kr=>{e(Cr)&&Kr(wr)})}w(Tt),S(()=>pt(Tt,1,`wc-secondary shrink-0 ${te()||xe()||_()&&$()?Te()?"opacity-0":se()?"":ee()?"group-hover/wc:opacity-0 group-hover/message:opacity-0":"group-hover:opacity-0 group-hover/message:opacity-0":""}`,"svelte-1ct56pd")),u(xt,Tt)};F(Vr,xt=>{L()&&xt(ya)})}w(Lr);var Za=m(Lr,2);{var qa=xt=>{var Tt=A2(),sr=E(Tt);{var wr=Nr=>{{let Gn=d(()=>M()?"text-primary-ink":"text-muted-foreground"),Nn=d(()=>M()?g.workspace_card_unpin_ariaLabel():g.workspace_card_pin_ariaLabel()),zr=d(()=>M()?g.workspace_card_unpin_tooltip():g.workspace_card_pin_tooltip());St(Nr,{variant:"plain",size:"icon-xs",iconOnly:!0,get class(){return`transition-all hover:bg-muted/50 hover:text-foreground focus-visible:border-transparent focus-visible:bg-muted/50 focus-visible:text-foreground focus-visible:ring-0
298
298
  ${e(Gn)??""}`},onclick:dn=>{dn.stopPropagation(),xe()?.(dn)},get"aria-label"(){return e(Nn)},get title(){return e(zr)},children:(dn,Ha)=>{var xa=P2(),Ta=E(xa);Rt(Ta,{get icon(){return Yl},size:"xs"}),w(xa),u(dn,xa)},$$slots:{default:!0}})}};F(sr,Nr=>{xe()&&Nr(wr)})}var Cr=m(sr,2);{var Kr=Nr=>{{let Gn=d(()=>g.workspace_card_markAsRead_label()),Nn=d(()=>g.workspace_card_markAsRead_label());St(Nr,{variant:"plain",size:"icon-xs",iconOnly:!0,class:"text-muted-foreground hover:bg-muted/50 hover:text-foreground focus-visible:border-transparent focus-visible:bg-muted/50 focus-visible:text-foreground focus-visible:ring-0",onclick:zr=>{zr.stopPropagation(),$()?.(zr)},get"aria-label"(){return e(Gn)},get title(){return e(Nn)},children:(zr,dn)=>{Rt(zr,{get icon(){return Zd},size:"xs"})},$$slots:{default:!0}})}};F(Cr,Nr=>{_()&&$()&&Nr(Kr)})}var Pn=m(Cr,2);gn(Pn,()=>te()??Es);var za=m(Pn,2);{var _a=Nr=>{{let Gn=d(vt),Nn=d(()=>g.workspace_progressCard_actions_ariaLabel());Tl(Nr,{get items(){return e(Gn)},get ariaLabel(){return e(Nn)},class:"flex size-5 cursor-pointer items-center justify-center rounded text-muted-foreground transition-colors hover:bg-muted/50 hover:text-foreground focus-visible:bg-muted/50 focus-visible:text-foreground focus-visible:outline-none",get open(){return e(dt)},set open(zr){T(dt,zr,!0)}})}};F(za,Nr=>{we()&&Nr(_a)})}w(Tt),vr(Tt,Nr=>T(Ee,Nr),()=>e(Ee)),S(()=>pt(Tt,1,`wc-actions absolute right-1 top-1/2 z-20 flex -translate-y-1/2 items-center gap-0.5 rounded-md bg-accent/95 px-0.5 focus-within:opacity-100
299
299
  ${ee()?"group-focus-within/wc:opacity-100":"group-focus-within:opacity-100"}
300
300
  ${Te()?"opacity-100":se()?"opacity-0":ee()?"opacity-0 group-hover/wc:opacity-100":"opacity-0 group-hover:opacity-100"}`,"svelte-1ct56pd")),u(xt,Tt)};F(Za,xt=>{(te()||we()||xe()||_()&&$())&&xt(qa)})}w(Gt),vr(Gt,xt=>T(ye,xt),()=>e(ye)),qn(Gt,(xt,Tt)=>hs?.(xt,Tt),()=>({id:Re()}));var Zr=m(Gt,2);{var tn=xt=>{Bb(xt,{get id(){return e(q)},get anchor(){return`--workspace-list-${p().id??""}`},position:"right",get anchorElement(){return e(ye)},class:"w-auto overflow-visible! rounded-lg border-0! bg-background! shadow-none!",onmouseenter:Pt,onmouseleave:bt,onfocusin:kt,onfocusout:Mt,children:(Tt,sr)=>{var wr=T2(),Cr=E(wr);qb(Cr,{get workspace(){return p()},get activeAgentIds(){return B()},onkeydown:Qe}),w(wr),vr(wr,Kr=>T(Ct,Kr),()=>e(Ct)),Mn("pointerenter",wr,Pt),Mn("pointerleave",wr,bt),Mr("focusin",wr,kt),Mr("focusout",wr,Mt),u(Tt,wr)},$$slots:{default:!0}})};F(Zr,xt=>{e(re)&&!se()&&xt(tn)})}var bn=m(Zr,2);{var xr=xt=>{const Tt=d(vt);var sr=ht(),wr=De(sr);{var Cr=Kr=>{{let Pn=d(()=>e(qe)?.x??0),za=d(()=>e(qe)?.y??0),_a=d(()=>e(qe)?.returnFocus),Nr=d(()=>g.workspace_progressCard_actions_ariaLabel());wu(Kr,{get x(){return e(Pn)},get y(){return e(za)},get returnFocus(){return e(_a)},get ariaLabel(){return e(Nr)},get items(){return e(Tt)},onClickOutside:Et})}};F(wr,Kr=>{e(Tt).length>0&&Kr(Cr)})}u(xt,sr)};F(bn,xt=>{e(qe)&&xt(xr)})}S((xt,Tt,sr)=>{pt(Gt,1,xt,"svelte-1ct56pd"),oe(Gt,"data-pinned",M()),oe(Gt,"data-highlight-id",Re()),Xt=Ln(Gt,"",Xt,{"anchor-name":`--workspace-list-${p().id??""}`}),oe(En,"id",`workspace-status-state-${p().id??""}`),x(ia,e(W).accessibleName),pt(er,1,`wc-title type-body min-w-0 truncate font-normal!
@@ -1,4 +1,4 @@
1
- import{g as fe}from"./BN40Pz7Q.js";import{b as o,ay as te,X as U,aX as ye,ad as be,ah as me,aL as ke,b3 as Ee,O as K,aV as F,ax as _e,J as Se,an as Ne,au as ce,H as le}from"./DKStgIlw.js";var $=(function(){var e=o(function(O,s,n,r){for(n=n||{},r=O.length;r--;n[O[r]]=s);return n},"o"),h=[1,4],p=[1,13],i=[1,12],d=[1,15],k=[1,16],m=[1,20],l=[1,19],D=[6,7,8],I=[1,26],g=[1,24],w=[1,25],E=[6,7,11],G=[1,31],N=[6,7,11,24],V=[1,6,13,16,17,20,23],f=[1,35],A=[1,36],L=[1,6,7,11,13,16,17,20,23],H=[1,38],T={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,KANBAN:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,shapeData:15,ICON:16,CLASS:17,nodeWithId:18,nodeWithoutId:19,NODE_DSTART:20,NODE_DESCR:21,NODE_DEND:22,NODE_ID:23,SHAPE_DATA:24,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"KANBAN",11:"EOF",13:"SPACELIST",16:"ICON",17:"CLASS",20:"NODE_DSTART",21:"NODE_DESCR",22:"NODE_DEND",23:"NODE_ID",24:"SHAPE_DATA"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,3],[12,2],[12,2],[12,2],[12,1],[12,2],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[19,3],[18,1],[18,4],[15,2],[15,1]],performAction:o(function(s,n,r,a,u,t,M){var c=t.length-1;switch(u){case 6:case 7:return a;case 8:a.getLogger().trace("Stop NL ");break;case 9:a.getLogger().trace("Stop EOF ");break;case 11:a.getLogger().trace("Stop NL2 ");break;case 12:a.getLogger().trace("Stop EOF2 ");break;case 15:a.getLogger().info("Node: ",t[c-1].id),a.addNode(t[c-2].length,t[c-1].id,t[c-1].descr,t[c-1].type,t[c]);break;case 16:a.getLogger().info("Node: ",t[c].id),a.addNode(t[c-1].length,t[c].id,t[c].descr,t[c].type);break;case 17:a.getLogger().trace("Icon: ",t[c]),a.decorateNode({icon:t[c]});break;case 18:case 23:a.decorateNode({class:t[c]});break;case 19:a.getLogger().trace("SPACELIST");break;case 20:a.getLogger().trace("Node: ",t[c-1].id),a.addNode(0,t[c-1].id,t[c-1].descr,t[c-1].type,t[c]);break;case 21:a.getLogger().trace("Node: ",t[c].id),a.addNode(0,t[c].id,t[c].descr,t[c].type);break;case 22:a.decorateNode({icon:t[c]});break;case 27:a.getLogger().trace("node found ..",t[c-2]),this.$={id:t[c-1],descr:t[c-1],type:a.getType(t[c-2],t[c])};break;case 28:this.$={id:t[c],descr:t[c],type:0};break;case 29:a.getLogger().trace("node found ..",t[c-3]),this.$={id:t[c-3],descr:t[c-1],type:a.getType(t[c-2],t[c])};break;case 30:this.$=t[c-1]+t[c];break;case 31:this.$=t[c];break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:h},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:h},{6:p,7:[1,10],9:9,12:11,13:i,14:14,16:d,17:k,18:17,19:18,20:m,23:l},e(D,[2,3]),{1:[2,2]},e(D,[2,4]),e(D,[2,5]),{1:[2,6],6:p,12:21,13:i,14:14,16:d,17:k,18:17,19:18,20:m,23:l},{6:p,9:22,12:11,13:i,14:14,16:d,17:k,18:17,19:18,20:m,23:l},{6:I,7:g,10:23,11:w},e(E,[2,24],{18:17,19:18,14:27,16:[1,28],17:[1,29],20:m,23:l}),e(E,[2,19]),e(E,[2,21],{15:30,24:G}),e(E,[2,22]),e(E,[2,23]),e(N,[2,25]),e(N,[2,26]),e(N,[2,28],{20:[1,32]}),{21:[1,33]},{6:I,7:g,10:34,11:w},{1:[2,7],6:p,12:21,13:i,14:14,16:d,17:k,18:17,19:18,20:m,23:l},e(V,[2,14],{7:f,11:A}),e(L,[2,8]),e(L,[2,9]),e(L,[2,10]),e(E,[2,16],{15:37,24:G}),e(E,[2,17]),e(E,[2,18]),e(E,[2,20],{24:H}),e(N,[2,31]),{21:[1,39]},{22:[1,40]},e(V,[2,13],{7:f,11:A}),e(L,[2,11]),e(L,[2,12]),e(E,[2,15],{24:H}),e(N,[2,30]),{22:[1,41]},e(N,[2,27]),e(N,[2,29])],defaultActions:{2:[2,1],6:[2,2]},parseError:o(function(s,n){if(n.recoverable)this.trace(s);else{var r=new Error(s);throw r.hash=n,r}},"parseError"),parse:o(function(s){var n=this,r=[0],a=[],u=[null],t=[],M=this.table,c="",W=0,ie=0,ue=2,re=1,ge=t.slice.call(arguments,1),b=Object.create(this.lexer),R={yy:{}};for(var J in this.yy)Object.prototype.hasOwnProperty.call(this.yy,J)&&(R.yy[J]=this.yy[J]);b.setInput(s,R.yy),R.yy.lexer=b,R.yy.parser=this,typeof b.yylloc>"u"&&(b.yylloc={});var q=b.yylloc;t.push(q);var de=b.options&&b.options.ranges;typeof R.yy.parseError=="function"?this.parseError=R.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function pe(S){r.length=r.length-2*S,u.length=u.length-S,t.length=t.length-S}o(pe,"popStack");function ae(){var S;return S=a.pop()||b.lex()||re,typeof S!="number"&&(S instanceof Array&&(a=S,S=a.pop()),S=n.symbols_[S]||S),S}o(ae,"lex");for(var _,P,x,Q,j={},z,C,oe,X;;){if(P=r[r.length-1],this.defaultActions[P]?x=this.defaultActions[P]:((_===null||typeof _>"u")&&(_=ae()),x=M[P]&&M[P][_]),typeof x>"u"||!x.length||!x[0]){var Z="";X=[];for(z in M[P])this.terminals_[z]&&z>ue&&X.push("'"+this.terminals_[z]+"'");b.showPosition?Z="Parse error on line "+(W+1)+`:
1
+ import{g as fe}from"./DqXlwkEw.js";import{b as o,ay as te,X as U,aX as ye,ad as be,ah as me,aL as ke,b3 as Ee,O as K,aV as F,ax as _e,J as Se,an as Ne,au as ce,H as le}from"./BVA6rkcP.js";var $=(function(){var e=o(function(O,s,n,r){for(n=n||{},r=O.length;r--;n[O[r]]=s);return n},"o"),h=[1,4],p=[1,13],i=[1,12],d=[1,15],k=[1,16],m=[1,20],l=[1,19],D=[6,7,8],I=[1,26],g=[1,24],w=[1,25],E=[6,7,11],G=[1,31],N=[6,7,11,24],V=[1,6,13,16,17,20,23],f=[1,35],A=[1,36],L=[1,6,7,11,13,16,17,20,23],H=[1,38],T={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,KANBAN:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,shapeData:15,ICON:16,CLASS:17,nodeWithId:18,nodeWithoutId:19,NODE_DSTART:20,NODE_DESCR:21,NODE_DEND:22,NODE_ID:23,SHAPE_DATA:24,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"KANBAN",11:"EOF",13:"SPACELIST",16:"ICON",17:"CLASS",20:"NODE_DSTART",21:"NODE_DESCR",22:"NODE_DEND",23:"NODE_ID",24:"SHAPE_DATA"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,3],[12,2],[12,2],[12,2],[12,1],[12,2],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[19,3],[18,1],[18,4],[15,2],[15,1]],performAction:o(function(s,n,r,a,u,t,M){var c=t.length-1;switch(u){case 6:case 7:return a;case 8:a.getLogger().trace("Stop NL ");break;case 9:a.getLogger().trace("Stop EOF ");break;case 11:a.getLogger().trace("Stop NL2 ");break;case 12:a.getLogger().trace("Stop EOF2 ");break;case 15:a.getLogger().info("Node: ",t[c-1].id),a.addNode(t[c-2].length,t[c-1].id,t[c-1].descr,t[c-1].type,t[c]);break;case 16:a.getLogger().info("Node: ",t[c].id),a.addNode(t[c-1].length,t[c].id,t[c].descr,t[c].type);break;case 17:a.getLogger().trace("Icon: ",t[c]),a.decorateNode({icon:t[c]});break;case 18:case 23:a.decorateNode({class:t[c]});break;case 19:a.getLogger().trace("SPACELIST");break;case 20:a.getLogger().trace("Node: ",t[c-1].id),a.addNode(0,t[c-1].id,t[c-1].descr,t[c-1].type,t[c]);break;case 21:a.getLogger().trace("Node: ",t[c].id),a.addNode(0,t[c].id,t[c].descr,t[c].type);break;case 22:a.decorateNode({icon:t[c]});break;case 27:a.getLogger().trace("node found ..",t[c-2]),this.$={id:t[c-1],descr:t[c-1],type:a.getType(t[c-2],t[c])};break;case 28:this.$={id:t[c],descr:t[c],type:0};break;case 29:a.getLogger().trace("node found ..",t[c-3]),this.$={id:t[c-3],descr:t[c-1],type:a.getType(t[c-2],t[c])};break;case 30:this.$=t[c-1]+t[c];break;case 31:this.$=t[c];break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:h},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:h},{6:p,7:[1,10],9:9,12:11,13:i,14:14,16:d,17:k,18:17,19:18,20:m,23:l},e(D,[2,3]),{1:[2,2]},e(D,[2,4]),e(D,[2,5]),{1:[2,6],6:p,12:21,13:i,14:14,16:d,17:k,18:17,19:18,20:m,23:l},{6:p,9:22,12:11,13:i,14:14,16:d,17:k,18:17,19:18,20:m,23:l},{6:I,7:g,10:23,11:w},e(E,[2,24],{18:17,19:18,14:27,16:[1,28],17:[1,29],20:m,23:l}),e(E,[2,19]),e(E,[2,21],{15:30,24:G}),e(E,[2,22]),e(E,[2,23]),e(N,[2,25]),e(N,[2,26]),e(N,[2,28],{20:[1,32]}),{21:[1,33]},{6:I,7:g,10:34,11:w},{1:[2,7],6:p,12:21,13:i,14:14,16:d,17:k,18:17,19:18,20:m,23:l},e(V,[2,14],{7:f,11:A}),e(L,[2,8]),e(L,[2,9]),e(L,[2,10]),e(E,[2,16],{15:37,24:G}),e(E,[2,17]),e(E,[2,18]),e(E,[2,20],{24:H}),e(N,[2,31]),{21:[1,39]},{22:[1,40]},e(V,[2,13],{7:f,11:A}),e(L,[2,11]),e(L,[2,12]),e(E,[2,15],{24:H}),e(N,[2,30]),{22:[1,41]},e(N,[2,27]),e(N,[2,29])],defaultActions:{2:[2,1],6:[2,2]},parseError:o(function(s,n){if(n.recoverable)this.trace(s);else{var r=new Error(s);throw r.hash=n,r}},"parseError"),parse:o(function(s){var n=this,r=[0],a=[],u=[null],t=[],M=this.table,c="",W=0,ie=0,ue=2,re=1,ge=t.slice.call(arguments,1),b=Object.create(this.lexer),R={yy:{}};for(var J in this.yy)Object.prototype.hasOwnProperty.call(this.yy,J)&&(R.yy[J]=this.yy[J]);b.setInput(s,R.yy),R.yy.lexer=b,R.yy.parser=this,typeof b.yylloc>"u"&&(b.yylloc={});var q=b.yylloc;t.push(q);var de=b.options&&b.options.ranges;typeof R.yy.parseError=="function"?this.parseError=R.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function pe(S){r.length=r.length-2*S,u.length=u.length-S,t.length=t.length-S}o(pe,"popStack");function ae(){var S;return S=a.pop()||b.lex()||re,typeof S!="number"&&(S instanceof Array&&(a=S,S=a.pop()),S=n.symbols_[S]||S),S}o(ae,"lex");for(var _,P,x,Q,j={},z,C,oe,X;;){if(P=r[r.length-1],this.defaultActions[P]?x=this.defaultActions[P]:((_===null||typeof _>"u")&&(_=ae()),x=M[P]&&M[P][_]),typeof x>"u"||!x.length||!x[0]){var Z="";X=[];for(z in M[P])this.terminals_[z]&&z>ue&&X.push("'"+this.terminals_[z]+"'");b.showPosition?Z="Parse error on line "+(W+1)+`:
2
2
  `+b.showPosition()+`
3
3
  Expecting `+X.join(", ")+", got '"+(this.terminals_[_]||_)+"'":Z="Parse error on line "+(W+1)+": Unexpected "+(_==re?"end of input":"'"+(this.terminals_[_]||_)+"'"),this.parseError(Z,{text:b.match,token:this.terminals_[_]||_,line:b.yylineno,loc:q,expected:X})}if(x[0]instanceof Array&&x.length>1)throw new Error("Parse Error: multiple actions possible at state: "+P+", token: "+_);switch(x[0]){case 1:r.push(_),u.push(b.yytext),t.push(b.yylloc),r.push(x[1]),_=null,ie=b.yyleng,c=b.yytext,W=b.yylineno,q=b.yylloc;break;case 2:if(C=this.productions_[x[1]][1],j.$=u[u.length-C],j._$={first_line:t[t.length-(C||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(C||1)].first_column,last_column:t[t.length-1].last_column},de&&(j._$.range=[t[t.length-(C||1)].range[0],t[t.length-1].range[1]]),Q=this.performAction.apply(j,[c,ie,W,R.yy,x[1],u,t].concat(ge)),typeof Q<"u")return Q;C&&(r=r.slice(0,-1*C*2),u=u.slice(0,-1*C),t=t.slice(0,-1*C)),r.push(this.productions_[x[1]][0]),u.push(j.$),t.push(j._$),oe=M[r[r.length-2]][r[r.length-1]],r.push(oe);break;case 3:return!0}}return!0},"parse")},Y=(function(){var O={EOF:1,parseError:o(function(n,r){if(this.yy.parser)this.yy.parser.parseError(n,r);else throw new Error(n)},"parseError"),setInput:o(function(s,n){return this.yy=n||this.yy||{},this._input=s,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:o(function(){var s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var n=s.match(/(?:\r\n?|\n).*/g);return n?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),s},"input"),unput:o(function(s){var n=s.length,r=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var a=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),r.length-1&&(this.yylineno-=r.length-1);var u=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:r?(r.length===a.length?this.yylloc.first_column:0)+a[a.length-r.length].length-r[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[u[0],u[0]+this.yyleng-n]),this.yyleng=this.yytext.length,this},"unput"),more:o(function(){return this._more=!0,this},"more"),reject:o(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
4
  `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:o(function(s){this.unput(this.match.slice(s))},"less"),pastInput:o(function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var s=this.match;return s.length<20&&(s+=this._input.substr(0,20-s.length)),(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var s=this.pastInput(),n=new Array(s.length+1).join("-");return s+this.upcomingInput()+`
@@ -1 +1 @@
1
- import{I$ as s,i7 as a,ma as S,nL as f,mn as m}from"./Dou_hoaA.js";import{v as O}from"./DCCz1NNc.js";import{dK as d,b4 as b,dS as k}from"./R5qsERXh.js";const v=s.createSelector((t,e)=>{if(b.select(t,e)&&k.select(t,e))return!1;const r=t.principal?.snapshot;return r?.capabilities.workspaceGuestRoles===!0&&(r.capabilities.hostMembership?r.principal.hostRole==="guest":!r.principal.isAdministrator)}),h=s.createSelector(t=>t.principal?.snapshot?.capabilities.remoteScripts===1),l=s.createSelector((t,e,r)=>!v.select(t,e)||!!d.select(t,e)&&r?.purpose==="saved");function o(t,e,r){return!!e&&!!r&&l.select(t,e,r)}function i(t,e){return e?t.scripts.byWorkspaceId[e]??m:m}const j=s.createSelector((t,e)=>i(t,e).initialized),W=s.createSelector((t,e)=>{const r=i(t,e);return r.activeScriptIds?r.activeScriptIds.flatMap(c=>o(t,e,r.scripts[c])?[r.scripts[c]]:[]):Object.values(r.scripts).filter(c=>!c.archivedAt&&o(t,e,c))}),C=s.createSelector((t,e)=>W.select(t,e).filter(r=>O((r.runtime??a()).status))),u=s.createSelector((t,e,r)=>{const c=i(t,e);return o(t,e,c.scripts[r])?c.scripts[r]:null}),x=s.createSelector((t,e,r)=>u.select(t,e,r)?.runtime??a()),E=s.createSelector((t,e,r)=>{const c=i(t,e);return l.select(t,e??"",c.scripts[r])?c.outputBuffers[r]??S:S}),M=s.createSelector((t,e,r,c)=>{const n=i(t,e).retainedOutputs?.[c];return n?.scriptId===r&&l.select(t,e,i(t,e).scripts[r])?n:void 0}),z=s.createSelector(t=>Object.entries(t.scripts?.byWorkspaceId??{}).filter(([,e])=>Object.keys(e.retainedOutputs??{}).length>0).map(([e])=>e).sort()),A=s.createSelector((t,e)=>!!t.scripts?.byWorkspaceId[e]?.outputStreamReady),D=s.createSelector((t,e)=>i(t,e).initialized),B=s.createSelector((t,e)=>{const r=i(t,e);return r.activeScriptIds?r.activeScriptIds.flatMap(c=>o(t,e,r.scripts[c])?[r.scripts[c]]:[]):Object.values(r.scripts).filter(c=>!c.archivedAt&&o(t,e,c))}),G=s.createSelector((t,e)=>{const r=i(t,e);return r.detectionOperation?.pending?{...r.operations,...Object.fromEntries(Object.keys(r.scripts).map(c=>[c,r.detectionOperation]))}:r.operations}),L=s.createSelector((t,e)=>i(t,e).detectionOperation),P=s.createSelector((t,e,r,c)=>{const n=i(t,r).workflowOutcomes,p=n?f(n,e):void 0;return p?.workspaceId===r&&p.resourceId===c?p:void 0}),J=s.createSelector((t,e,r)=>u.select(t,e,r)?.runtime??a()),K=s.createSelector((t,e)=>Object.values(i(t,e).scripts).filter(r=>o(t,e,r))),U=s.createSelector((t,e,r)=>i(t,e).pendingReads?.[r]),V=s.createSelector((t,e,r)=>!!u.select(t,e,r)&&!i(t,e).detectionOperation?.pending&&!i(t,e).operations[r]?.pending),$=s.createSelector((t,e)=>({nextCursor:i(t,e).nextCursor,loading:i(t,e).loading,error:i(t,e).loadError}));export{K as selectAllWorkspaceScriptEntries,V as selectCanDeleteScript,l as selectCanReadScriptDefinition,h as selectRemoteScriptsSupported,C as selectRunningScripts,u as selectScriptById,L as selectScriptDetectionOperation,W as selectScriptEntries,$ as selectScriptListPageState,E as selectScriptOutput,A as selectScriptOutputStreamReady,z as selectScriptOutputViewerWorkspaceIds,U as selectScriptReadJournal,M as selectScriptRetainedOutput,x as selectScriptRuntime,P as selectScriptWorkflowOutcome,j as selectScriptsInitialized,v as selectUsesGuestScriptScope,B as selectWorkspaceScriptEntries,G as selectWorkspaceScriptOperations,J as selectWorkspaceScriptRuntime,D as selectWorkspaceScriptsInitialized};
1
+ import{I$ as s,i7 as a,ma as S,nL as f,mn as m}from"./Dou_hoaA.js";import{v as O}from"./Cz8U_BhG.js";import{dK as d,b4 as b,dS as k}from"./R5qsERXh.js";const v=s.createSelector((t,e)=>{if(b.select(t,e)&&k.select(t,e))return!1;const r=t.principal?.snapshot;return r?.capabilities.workspaceGuestRoles===!0&&(r.capabilities.hostMembership?r.principal.hostRole==="guest":!r.principal.isAdministrator)}),h=s.createSelector(t=>t.principal?.snapshot?.capabilities.remoteScripts===1),l=s.createSelector((t,e,r)=>!v.select(t,e)||!!d.select(t,e)&&r?.purpose==="saved");function o(t,e,r){return!!e&&!!r&&l.select(t,e,r)}function i(t,e){return e?t.scripts.byWorkspaceId[e]??m:m}const j=s.createSelector((t,e)=>i(t,e).initialized),W=s.createSelector((t,e)=>{const r=i(t,e);return r.activeScriptIds?r.activeScriptIds.flatMap(c=>o(t,e,r.scripts[c])?[r.scripts[c]]:[]):Object.values(r.scripts).filter(c=>!c.archivedAt&&o(t,e,c))}),C=s.createSelector((t,e)=>W.select(t,e).filter(r=>O((r.runtime??a()).status))),u=s.createSelector((t,e,r)=>{const c=i(t,e);return o(t,e,c.scripts[r])?c.scripts[r]:null}),x=s.createSelector((t,e,r)=>u.select(t,e,r)?.runtime??a()),E=s.createSelector((t,e,r)=>{const c=i(t,e);return l.select(t,e??"",c.scripts[r])?c.outputBuffers[r]??S:S}),M=s.createSelector((t,e,r,c)=>{const n=i(t,e).retainedOutputs?.[c];return n?.scriptId===r&&l.select(t,e,i(t,e).scripts[r])?n:void 0}),z=s.createSelector(t=>Object.entries(t.scripts?.byWorkspaceId??{}).filter(([,e])=>Object.keys(e.retainedOutputs??{}).length>0).map(([e])=>e).sort()),A=s.createSelector((t,e)=>!!t.scripts?.byWorkspaceId[e]?.outputStreamReady),D=s.createSelector((t,e)=>i(t,e).initialized),B=s.createSelector((t,e)=>{const r=i(t,e);return r.activeScriptIds?r.activeScriptIds.flatMap(c=>o(t,e,r.scripts[c])?[r.scripts[c]]:[]):Object.values(r.scripts).filter(c=>!c.archivedAt&&o(t,e,c))}),G=s.createSelector((t,e)=>{const r=i(t,e);return r.detectionOperation?.pending?{...r.operations,...Object.fromEntries(Object.keys(r.scripts).map(c=>[c,r.detectionOperation]))}:r.operations}),L=s.createSelector((t,e)=>i(t,e).detectionOperation),P=s.createSelector((t,e,r,c)=>{const n=i(t,r).workflowOutcomes,p=n?f(n,e):void 0;return p?.workspaceId===r&&p.resourceId===c?p:void 0}),J=s.createSelector((t,e,r)=>u.select(t,e,r)?.runtime??a()),K=s.createSelector((t,e)=>Object.values(i(t,e).scripts).filter(r=>o(t,e,r))),U=s.createSelector((t,e,r)=>i(t,e).pendingReads?.[r]),V=s.createSelector((t,e,r)=>!!u.select(t,e,r)&&!i(t,e).detectionOperation?.pending&&!i(t,e).operations[r]?.pending),$=s.createSelector((t,e)=>({nextCursor:i(t,e).nextCursor,loading:i(t,e).loading,error:i(t,e).loadError}));export{K as selectAllWorkspaceScriptEntries,V as selectCanDeleteScript,l as selectCanReadScriptDefinition,h as selectRemoteScriptsSupported,C as selectRunningScripts,u as selectScriptById,L as selectScriptDetectionOperation,W as selectScriptEntries,$ as selectScriptListPageState,E as selectScriptOutput,A as selectScriptOutputStreamReady,z as selectScriptOutputViewerWorkspaceIds,U as selectScriptReadJournal,M as selectScriptRetainedOutput,x as selectScriptRuntime,P as selectScriptWorkflowOutcome,j as selectScriptsInitialized,v as selectUsesGuestScriptScope,B as selectWorkspaceScriptEntries,G as selectWorkspaceScriptOperations,J as selectWorkspaceScriptRuntime,D as selectWorkspaceScriptsInitialized};
@@ -1 +1 @@
1
- import"./CJxGDkBm.js";import{p as De}from"./CDDY7bU6.js";import"./DYGZj8tM.js";import{j as Oe,k as we,c as We,l as ke}from"./tAo3FW4C.js";import{s as qe}from"./J5tyH4KI.js";import{i as _e}from"./B3SWkAyi.js";function Ze(t,i={}){const l=(i.axis??"y")==="y"?"height":"width",o=parseFloat(getComputedStyle(t)[l]);if(!Number.isFinite(o))return{duration:0};const v=i.duration??160,y=v<=80?"fast":v<=160?"moderate":"slow";return Oe(t,{axis:i.axis,tier:y},{direction:"in"})}function $e(){return qe.get("enableComponentTransitions")}const Ae={request(){},settle(){}},O=new WeakMap,He=2,ze=2e3,re=2,Pe=1e3,Ve=3e3;function et(t,i){let l=i.enabled??!0,o=i.follow,v=i.onFollowChange,y=i.onScrollStateChange,T=i.threshold??100,w=!1,h=null,u=null,m=null,x=null,d=null,b=null,M=null,F=null,S=0,R=null,g=!1,$=null;const L=new Set,W=new Map,P=new WeakSet,k=new Map,A=document.createElement("div");A.dataset.followBottomAnchor="",A.setAttribute("aria-hidden","true"),A.style.cssText=`height:1px;${i.layoutNeutralBottomAnchor?"margin-top:-1px;":""}overflow-anchor:auto;pointer-events:none;flex:0 0 auto;`;function G(e){e===A||k.has(e)||(k.set(e,e.style.overflowAnchor),e.style.overflowAnchor="none")}function V(e){const n=k.get(e);n!==void 0&&(e.style.overflowAnchor=n,k.delete(e))}function I(e){if(e)for(const r of t.children)r instanceof HTMLElement&&G(r);else for(const r of k.keys())V(r);const n=e?"auto":"none";A.style.overflowAnchor!==n&&(A.style.overflowAnchor=n),e?(A.parentElement!==t||A.nextSibling)&&t.append(A):A.remove()}function H(){I(o)}function C(){A.remove();for(const e of k.keys())V(e)}function Y(e){P.add(e),x?.observe(e)}function j(){d!==null&&cancelAnimationFrame(d),F!==null&&cancelAnimationFrame(F),d=null,F=null,S=0,R=null}function c(){return Math.max(0,t.scrollHeight-t.clientHeight)}function D(){return $??=getComputedStyle(t).overflowAnchor!=="none",$}function q(){const e=c(),n=t.scrollTop,r=h??void 0;h={maximum:e,scrollTop:n};const f={maximum:e,scrollTop:n,previous:r};return p.observe(f),f}function U(e=q()){return e.scrollTop!==e.maximum&&(t.scrollTop=e.maximum),h={maximum:e.maximum,scrollTop:e.maximum},{maximum:e.maximum,scrollTop:e.maximum}}function N(e=q()){const n=Math.max(0,e.maximum-e.scrollTop),r=n<=T;u?.distanceFromBottom===n&&u.isAtBottom===r&&u.isFollowing===o||(u={distanceFromBottom:n,isAtBottom:r,isFollowing:o},y?.({distanceFromBottom:n,isAtBottom:r,isFollowing:o}))}function _(e,n=!0){if(p.cancel(),!l){o=e;return}const r=o!==e;r&&(o=e,I(e)),r&&n&&v?.(e),e||j(),N()}function ee(e,n=!0){if(!L.delete(e))return;const r=(W.get(e.element)??1)-1;r>0?W.set(e.element,r):(W.delete(e.element),P.has(e.element)||x?.unobserve?.(e.element)),S=0,n&&X()}function te(e=!0){if(L.size===0)return;const n=performance.now();for(const r of L)(!t.contains(r.element)||n>=r.expiresAt)&&ee(r,e)}function oe(){if(d=null,g||!l||!o)return;if(te(!1),L.size>0){d=requestAnimationFrame(oe);return}const e=U(),{maximum:n}=e;N(e),n===R?S+=1:(S=0,R=n),S<He&&(d=requestAnimationFrame(oe))}function X(){g||!l||!o||d!==null||(d=requestAnimationFrame(oe))}function z(e=!0){if(g||!l||!o)return;const n=U(),{maximum:r}=n;N(n),S=0,R=r,e&&X()}function ne(){M===null&&(M=requestAnimationFrame(()=>{M=null,!(g||!l)&&N()}))}function Te(){if(F=null,g||!l)return;let e=q();const n=e.scrollTop!==e.maximum;e=U(e),(n||e.maximum!==R||L.size>0)&&(S=0,R=e.maximum,X()),N(e)}function Fe(){if(!(g||!l)){if(o){if(d!==null||F!==null)return;F=requestAnimationFrame(Te);return}ne()}}function Se(){if(!(g||!l)){if(o){z(F===null);return}ne()}}const K={followAndScroll(){_(!0),z()},isFollowing:()=>o,isNativeScrollAnchoringActive:()=>!o&&getComputedStyle(t).overflowAnchor!=="none",hasActiveMutation:()=>o?(te(),L.size>0):!1,beforeMutation(e,n){if(g||!l||!o)return Ae;const r={element:e,expiresAt:performance.now()+(n.maxHoldMs??ze)};L.add(r);const f=W.get(e)??0;return W.set(e,f+1),f===0&&!P.has(e)&&x?.observe(e),S=0,X(),{request(){!L.has(r)||g||(D()?X():z())},settle(){if(!(g||!L.has(r))){if(D()){ee(r);return}ee(r,!1),z()}}}}};function Le(){let e=null,n=null,r=null,f;function Q(s){return!e||s&&e.wheel!==s?!1:!e.wheel?.defaultPrevented&&performance.now()<e.expiresAt}function Me(s,a){if(s.maximum-s.scrollTop<=re)return!0;const B=s.previous;return a&&B!==void 0&&B.maximum<s.maximum&&B.maximum-s.scrollTop<=re}function Z(s,a){return Me(s,a)?(K.followAndScroll(),!0):!1}function ge(s){const a=q();return Q(s)&&Z(a,!0)}function Re(s){f=s,r===null&&(r=requestAnimationFrame(()=>{r=null;const a=f;f=void 0,!(g||!l||!Q(a))&&(ge(a)||N())}))}function Ne(s,a){const B=Math.max(0,a.maximum-a.scrollTop);if(a.maximum!==s.maximum)return s.maximum=a.maximum,s.distance=B,s.movedTowardBottom=!1,!1;const ve=B-s.distance;return s.distance=B,ve>0?(s.movedTowardBottom=!1,_(!1),!0):ve===0?!1:(s.movedTowardBottom=!0,Z(a,!1))}function Ce(s){if(o||!e)return!1;const a=s.previous;return a&&s.scrollTop<a.scrollTop?(e=null,!1):(!a||s.scrollTop>a.scrollTop)&&Q()&&Z(s,!0)}return{isDragging:()=>n!==null,start(s,a){const B=s==="touch"?Ve:Pe;e={wheel:a,expiresAt:performance.now()+B}},grab(s){if(e=null,!s){n=null;return}const a=c();n={maximum:a,distance:Math.max(0,a-t.scrollTop),movedTowardBottom:!1}},move(s){return n?Ne(n,s):Ce(s)},land(s,a){if(s==="frame"){Re(a);return}if(s==="scrollend"){Q()&&ge(),e=null;return}if(!n)return;const{movedTowardBottom:B}=n;n=null,B&&Z(q(),!1)||N()},observe(s){const a=s.previous;e&&a!==void 0&&s.maximum<a.maximum&&s.maximum-s.scrollTop<=re&&(e=null)},cancel(){e=null},requestBottom(){K.followAndScroll()},reset(){e=null,n=null,f=void 0,r!==null&&cancelAnimationFrame(r),r=null}}}const p=Le();function ie(e){e.deltaY<0?_(!1):e.deltaY>0&&(p.start("wheel",e),p.land("frame",e))}function le(e){e.target===t?p.land("scrollend"):p.cancel()}let se=0;function ae(e){p.cancel(),w=!1,se=e.touches[0]?.clientY??0}function ue(e){const n=e.touches[0]?.clientY??0,r=se-n;w=r>0,r<0&&_(!1)}function ce(){w&&p.start("touch"),p.land("frame")}function fe(e){if(p.cancel(),["ArrowUp","PageUp","Home"].includes(e.key))_(!1);else if(["ArrowDown","PageDown","End"].includes(e.key)){if(e.target instanceof Element&&_e(e.target))return;if(e.key==="End"){p.requestBottom();return}p.start("keyboard"),p.land("frame")}}function Be(e){if(e.button!==0||e.target!==t)return!1;const n=Math.max(0,t.offsetWidth-t.clientWidth);if(n===0)return!1;const r=t.getBoundingClientRect(),f=t.offsetWidth>0?n*(r.width/t.offsetWidth):n;return getComputedStyle(t).direction==="rtl"?e.clientX<=r.left+f:e.clientX>=r.right-f}function me(){const e=p.isDragging();if(!e&&o&&d!==null)return;let n=q();p.move(n)||(o&&!e&&(n=U(n)),N(n))}function de(e){p.grab(Be(e))}function J(){p.land("release")}function Ee(){if(!m){m=new MutationObserver(e=>{let n=!1;for(const r of e)if(r.type==="childList"){for(const f of r.removedNodes)n=!0,f instanceof HTMLElement&&V(f);for(const f of r.addedNodes)f instanceof HTMLElement&&f!==A&&x&&(Y(f),o&&f.parentElement===t&&G(f))}n&&te(),I(o),Fe()}),m.observe(t,{attributes:!0,childList:!0,subtree:!0,characterData:!0}),x=new ResizeObserver(Se),Y(t);for(const e of t.children)e instanceof HTMLElement&&e!==A&&Y(e)}}function be(){m?.disconnect(),m=null,x?.disconnect(),x=null}function pe(e=!1){if(!l||g)return;if(O.set(t,K),t.addEventListener("scroll",me,{passive:!0}),t.addEventListener("scrollend",le,{passive:!0,capture:!0}),t.addEventListener("wheel",ie,{passive:!0}),t.addEventListener("touchstart",ae,{passive:!0}),t.addEventListener("touchmove",ue,{passive:!0}),t.addEventListener("touchend",ce,{passive:!0}),t.addEventListener("keydown",fe),t.addEventListener("pointerdown",de,{passive:!0}),window.addEventListener("pointerup",J,{passive:!0}),window.addEventListener("pointercancel",J,{passive:!0}),H(),Ee(),e){b=requestAnimationFrame(()=>{b=null,!(g||!l)&&(D(),o?z():N())});return}D();let n=q();o&&(n=U(n),R=n.maximum),N(n)}function he(){p.reset(),w=!1,h=null,L.clear(),W.clear(),j(),b!==null&&cancelAnimationFrame(b),b=null,M!==null&&cancelAnimationFrame(M),M=null,u=null,$=null,O.get(t)===K&&O.delete(t),be(),C(),t.removeEventListener("scroll",me),t.removeEventListener("scrollend",le,!0),t.removeEventListener("wheel",ie),t.removeEventListener("touchstart",ae),t.removeEventListener("touchmove",ue),t.removeEventListener("touchend",ce),t.removeEventListener("keydown",fe),t.removeEventListener("pointerdown",de),window.removeEventListener("pointerup",J),window.removeEventListener("pointercancel",J)}return pe(!0),{update(e){v=e.onFollowChange,y=e.onScrollStateChange,T=e.threshold??100;const n=e.enabled??!0;if(l!==n&&(n||he(),l=n,l)){o=e.follow,pe(!0);return}l?e.follow&&!o?(_(!0,!1),z()):!e.follow&&o?_(!1,!1):b===null&&ne():o=e.follow},destroy(){g=!0,he()}}}function tt(t){return O.get(t)?.isFollowing()??!1}function ot(t){return O.get(t)?.isNativeScrollAnchoringActive()??!1}function nt(t){return O.get(t)?.hasActiveMutation()??!1}function xe(t,i={}){let l=t;for(;l;){const o=O.get(l);if(o)return o.beforeMutation(t,i);l=l.parentElement}return Ae}function Ie(t){const{scrollTop:i,scrollHeight:l,clientHeight:o}=t;return l-i-o}function Ye(t,i=100){return Ie(t)<=i}function Ue(t,i=!1){t.scrollTo({top:t.scrollHeight,behavior:i?"smooth":"auto"})}function rt(t){const i=O.get(t);if(i){i.followAndScroll();return}Ue(t)}function it(t,i,l=150,o){const v=t();if(!v)return;const y=v.scrollTop,T=performance.now();function w(u){return 1-Math.pow(1-u,3)}function h(u){const m=t();if(!m)return;const x=u-T,d=Math.min(x/l,1),b=typeof i=="function"?i(m):i;m.scrollTop=y+(b-y)*w(d),d<1?requestAnimationFrame(h):o?.(m)}requestAnimationFrame(h)}function lt(t,i="[data-message-id], [data-lazy-turn-key]"){const l=t.scrollTop,o=t.getBoundingClientRect(),v=Ye(t,100);if(v&&O.get(t)?.isFollowing()!==!1)return{element:null,offsetFromViewport:0,scrollTop:l,isNearBottom:v};const y=t.querySelectorAll(i);let T=null,w=0,h;for(const u of y){const m=u.getBoundingClientRect();if(m.top>=o.bottom)break;if(m.top>=o.top){T||(T=u,w=m.top-o.top);const x=u.getAttribute("data-message-id");if(x){h={id:x,offsetFromViewport:m.top-o.top};break}}}return{element:T,offsetFromViewport:w,scrollTop:l,isNearBottom:v,...h?{message:h}:{}}}function ye(t,i){if(i.message){const l=t.querySelector(`[data-message-id="${CSS.escape(i.message.id)}"]`);if(l)return{element:l,offsetFromViewport:i.message.offsetFromViewport}}return i.element?.isConnected?{element:i.element,offsetFromViewport:i.offsetFromViewport}:null}function st(t,i){return ye(t,i)!==null}function at(t,i){const l=ye(t,i);if(l){const{element:o,offsetFromViewport:v}=l,y=t.getBoundingClientRect(),h=o.getBoundingClientRect().top-y.top-v;Math.abs(h)>5&&(t.scrollTop+=h)}}function E(t,i){const l=Number.parseFloat(String(t[i]));return Number.isFinite(l)?l:0}function ut(t,i={},l={}){const o=t,y={maxHoldMs:we[i.tier??"moderate"].settleMs*2+500};let T=xe(o,y);const w=()=>{T?.settle(),T=null},h=()=>{T??=xe(o,y)};if(!$e()||De())return w(),{duration:0};const u=getComputedStyle(o),m=i.axis??"y",x=o.getBoundingClientRect(),d=m==="y"?E(u,"height")||x.height:E(u,"width")||x.width;if(!Number.isFinite(d)||d<=0)return w(),{duration:0};const b=E(u,"opacity")||1,M=i.tier??"moderate",F=we[M],S=l.direction==="out",R=typeof u.getPropertyValue=="function"?S?We(o,{tier:M}):ke(o,{tier:M}):{duration:S?F.exit.duration:F.settleMs,easing:F.exit.easing},g=R.duration??(S?F.exit.duration:F.settleMs),$=i.y??-4,L=E(u,"paddingTop"),W=E(u,"paddingBottom"),P=E(u,"marginTop"),k=E(u,"marginBottom"),A=E(u,"paddingLeft"),G=E(u,"paddingRight"),V=E(u,"marginLeft"),I=E(u,"marginRight");let H=null,C=l.direction==="out"?"outro":l.direction==="in"?"intro":"idle";const Y=(c,D)=>{o.style.overflow="hidden",m==="y"?(o.style.height=`${c*d}px`,o.style.paddingTop=`${c*L}px`,o.style.paddingBottom=`${c*W}px`,o.style.marginTop=`${c*P}px`,o.style.marginBottom=`${c*k}px`):(o.style.width=`${c*d}px`,o.style.paddingLeft=`${c*A}px`,o.style.paddingRight=`${c*G}px`,o.style.marginLeft=`${c*V}px`,o.style.marginRight=`${c*I}px`),o.style.opacity=`${c*b}`,o.style.transform=m==="y"?`translateY(${$*D}px)`:`translateX(${$*D}px)`},j=()=>{o.style.overflow="",o.style.height="",o.style.width="",o.style.paddingTop="",o.style.paddingBottom="",o.style.marginTop="",o.style.marginBottom="",o.style.paddingLeft="",o.style.paddingRight="",o.style.marginLeft="",o.style.marginRight="",o.style.opacity="",o.style.transform=""};return{duration:g,easing:R.easing,tick:(c,D)=>{if(l.direction==="both"&&(H===null?c<1&&(C="outro"):c<H?(h(),C="outro"):c>H&&(h(),C="intro")),H=c,c===1&&C!=="outro"){j(),w(),C="idle";return}Y(c,D),T?.request(),c===0&&C==="outro"&&(w(),C="idle")}}}export{it as a,$e as b,xe as c,st as d,lt as e,et as f,rt as g,nt as h,tt as i,ot as j,Ze as k,Ue as l,at as r,ut as s};
1
+ import"./CJxGDkBm.js";import{p as De}from"./CDDY7bU6.js";import"./DYGZj8tM.js";import{j as Oe,k as we,c as We,l as ke}from"./tAo3FW4C.js";import{s as qe}from"./DJUIc5At.js";import{i as _e}from"./B3SWkAyi.js";function Ze(t,i={}){const l=(i.axis??"y")==="y"?"height":"width",o=parseFloat(getComputedStyle(t)[l]);if(!Number.isFinite(o))return{duration:0};const v=i.duration??160,y=v<=80?"fast":v<=160?"moderate":"slow";return Oe(t,{axis:i.axis,tier:y},{direction:"in"})}function $e(){return qe.get("enableComponentTransitions")}const Ae={request(){},settle(){}},O=new WeakMap,He=2,ze=2e3,re=2,Pe=1e3,Ve=3e3;function et(t,i){let l=i.enabled??!0,o=i.follow,v=i.onFollowChange,y=i.onScrollStateChange,T=i.threshold??100,w=!1,h=null,u=null,m=null,x=null,d=null,b=null,M=null,F=null,S=0,R=null,g=!1,$=null;const L=new Set,W=new Map,P=new WeakSet,k=new Map,A=document.createElement("div");A.dataset.followBottomAnchor="",A.setAttribute("aria-hidden","true"),A.style.cssText=`height:1px;${i.layoutNeutralBottomAnchor?"margin-top:-1px;":""}overflow-anchor:auto;pointer-events:none;flex:0 0 auto;`;function G(e){e===A||k.has(e)||(k.set(e,e.style.overflowAnchor),e.style.overflowAnchor="none")}function V(e){const n=k.get(e);n!==void 0&&(e.style.overflowAnchor=n,k.delete(e))}function I(e){if(e)for(const r of t.children)r instanceof HTMLElement&&G(r);else for(const r of k.keys())V(r);const n=e?"auto":"none";A.style.overflowAnchor!==n&&(A.style.overflowAnchor=n),e?(A.parentElement!==t||A.nextSibling)&&t.append(A):A.remove()}function H(){I(o)}function C(){A.remove();for(const e of k.keys())V(e)}function Y(e){P.add(e),x?.observe(e)}function j(){d!==null&&cancelAnimationFrame(d),F!==null&&cancelAnimationFrame(F),d=null,F=null,S=0,R=null}function c(){return Math.max(0,t.scrollHeight-t.clientHeight)}function D(){return $??=getComputedStyle(t).overflowAnchor!=="none",$}function q(){const e=c(),n=t.scrollTop,r=h??void 0;h={maximum:e,scrollTop:n};const f={maximum:e,scrollTop:n,previous:r};return p.observe(f),f}function U(e=q()){return e.scrollTop!==e.maximum&&(t.scrollTop=e.maximum),h={maximum:e.maximum,scrollTop:e.maximum},{maximum:e.maximum,scrollTop:e.maximum}}function N(e=q()){const n=Math.max(0,e.maximum-e.scrollTop),r=n<=T;u?.distanceFromBottom===n&&u.isAtBottom===r&&u.isFollowing===o||(u={distanceFromBottom:n,isAtBottom:r,isFollowing:o},y?.({distanceFromBottom:n,isAtBottom:r,isFollowing:o}))}function _(e,n=!0){if(p.cancel(),!l){o=e;return}const r=o!==e;r&&(o=e,I(e)),r&&n&&v?.(e),e||j(),N()}function ee(e,n=!0){if(!L.delete(e))return;const r=(W.get(e.element)??1)-1;r>0?W.set(e.element,r):(W.delete(e.element),P.has(e.element)||x?.unobserve?.(e.element)),S=0,n&&X()}function te(e=!0){if(L.size===0)return;const n=performance.now();for(const r of L)(!t.contains(r.element)||n>=r.expiresAt)&&ee(r,e)}function oe(){if(d=null,g||!l||!o)return;if(te(!1),L.size>0){d=requestAnimationFrame(oe);return}const e=U(),{maximum:n}=e;N(e),n===R?S+=1:(S=0,R=n),S<He&&(d=requestAnimationFrame(oe))}function X(){g||!l||!o||d!==null||(d=requestAnimationFrame(oe))}function z(e=!0){if(g||!l||!o)return;const n=U(),{maximum:r}=n;N(n),S=0,R=r,e&&X()}function ne(){M===null&&(M=requestAnimationFrame(()=>{M=null,!(g||!l)&&N()}))}function Te(){if(F=null,g||!l)return;let e=q();const n=e.scrollTop!==e.maximum;e=U(e),(n||e.maximum!==R||L.size>0)&&(S=0,R=e.maximum,X()),N(e)}function Fe(){if(!(g||!l)){if(o){if(d!==null||F!==null)return;F=requestAnimationFrame(Te);return}ne()}}function Se(){if(!(g||!l)){if(o){z(F===null);return}ne()}}const K={followAndScroll(){_(!0),z()},isFollowing:()=>o,isNativeScrollAnchoringActive:()=>!o&&getComputedStyle(t).overflowAnchor!=="none",hasActiveMutation:()=>o?(te(),L.size>0):!1,beforeMutation(e,n){if(g||!l||!o)return Ae;const r={element:e,expiresAt:performance.now()+(n.maxHoldMs??ze)};L.add(r);const f=W.get(e)??0;return W.set(e,f+1),f===0&&!P.has(e)&&x?.observe(e),S=0,X(),{request(){!L.has(r)||g||(D()?X():z())},settle(){if(!(g||!L.has(r))){if(D()){ee(r);return}ee(r,!1),z()}}}}};function Le(){let e=null,n=null,r=null,f;function Q(s){return!e||s&&e.wheel!==s?!1:!e.wheel?.defaultPrevented&&performance.now()<e.expiresAt}function Me(s,a){if(s.maximum-s.scrollTop<=re)return!0;const B=s.previous;return a&&B!==void 0&&B.maximum<s.maximum&&B.maximum-s.scrollTop<=re}function Z(s,a){return Me(s,a)?(K.followAndScroll(),!0):!1}function ge(s){const a=q();return Q(s)&&Z(a,!0)}function Re(s){f=s,r===null&&(r=requestAnimationFrame(()=>{r=null;const a=f;f=void 0,!(g||!l||!Q(a))&&(ge(a)||N())}))}function Ne(s,a){const B=Math.max(0,a.maximum-a.scrollTop);if(a.maximum!==s.maximum)return s.maximum=a.maximum,s.distance=B,s.movedTowardBottom=!1,!1;const ve=B-s.distance;return s.distance=B,ve>0?(s.movedTowardBottom=!1,_(!1),!0):ve===0?!1:(s.movedTowardBottom=!0,Z(a,!1))}function Ce(s){if(o||!e)return!1;const a=s.previous;return a&&s.scrollTop<a.scrollTop?(e=null,!1):(!a||s.scrollTop>a.scrollTop)&&Q()&&Z(s,!0)}return{isDragging:()=>n!==null,start(s,a){const B=s==="touch"?Ve:Pe;e={wheel:a,expiresAt:performance.now()+B}},grab(s){if(e=null,!s){n=null;return}const a=c();n={maximum:a,distance:Math.max(0,a-t.scrollTop),movedTowardBottom:!1}},move(s){return n?Ne(n,s):Ce(s)},land(s,a){if(s==="frame"){Re(a);return}if(s==="scrollend"){Q()&&ge(),e=null;return}if(!n)return;const{movedTowardBottom:B}=n;n=null,B&&Z(q(),!1)||N()},observe(s){const a=s.previous;e&&a!==void 0&&s.maximum<a.maximum&&s.maximum-s.scrollTop<=re&&(e=null)},cancel(){e=null},requestBottom(){K.followAndScroll()},reset(){e=null,n=null,f=void 0,r!==null&&cancelAnimationFrame(r),r=null}}}const p=Le();function ie(e){e.deltaY<0?_(!1):e.deltaY>0&&(p.start("wheel",e),p.land("frame",e))}function le(e){e.target===t?p.land("scrollend"):p.cancel()}let se=0;function ae(e){p.cancel(),w=!1,se=e.touches[0]?.clientY??0}function ue(e){const n=e.touches[0]?.clientY??0,r=se-n;w=r>0,r<0&&_(!1)}function ce(){w&&p.start("touch"),p.land("frame")}function fe(e){if(p.cancel(),["ArrowUp","PageUp","Home"].includes(e.key))_(!1);else if(["ArrowDown","PageDown","End"].includes(e.key)){if(e.target instanceof Element&&_e(e.target))return;if(e.key==="End"){p.requestBottom();return}p.start("keyboard"),p.land("frame")}}function Be(e){if(e.button!==0||e.target!==t)return!1;const n=Math.max(0,t.offsetWidth-t.clientWidth);if(n===0)return!1;const r=t.getBoundingClientRect(),f=t.offsetWidth>0?n*(r.width/t.offsetWidth):n;return getComputedStyle(t).direction==="rtl"?e.clientX<=r.left+f:e.clientX>=r.right-f}function me(){const e=p.isDragging();if(!e&&o&&d!==null)return;let n=q();p.move(n)||(o&&!e&&(n=U(n)),N(n))}function de(e){p.grab(Be(e))}function J(){p.land("release")}function Ee(){if(!m){m=new MutationObserver(e=>{let n=!1;for(const r of e)if(r.type==="childList"){for(const f of r.removedNodes)n=!0,f instanceof HTMLElement&&V(f);for(const f of r.addedNodes)f instanceof HTMLElement&&f!==A&&x&&(Y(f),o&&f.parentElement===t&&G(f))}n&&te(),I(o),Fe()}),m.observe(t,{attributes:!0,childList:!0,subtree:!0,characterData:!0}),x=new ResizeObserver(Se),Y(t);for(const e of t.children)e instanceof HTMLElement&&e!==A&&Y(e)}}function be(){m?.disconnect(),m=null,x?.disconnect(),x=null}function pe(e=!1){if(!l||g)return;if(O.set(t,K),t.addEventListener("scroll",me,{passive:!0}),t.addEventListener("scrollend",le,{passive:!0,capture:!0}),t.addEventListener("wheel",ie,{passive:!0}),t.addEventListener("touchstart",ae,{passive:!0}),t.addEventListener("touchmove",ue,{passive:!0}),t.addEventListener("touchend",ce,{passive:!0}),t.addEventListener("keydown",fe),t.addEventListener("pointerdown",de,{passive:!0}),window.addEventListener("pointerup",J,{passive:!0}),window.addEventListener("pointercancel",J,{passive:!0}),H(),Ee(),e){b=requestAnimationFrame(()=>{b=null,!(g||!l)&&(D(),o?z():N())});return}D();let n=q();o&&(n=U(n),R=n.maximum),N(n)}function he(){p.reset(),w=!1,h=null,L.clear(),W.clear(),j(),b!==null&&cancelAnimationFrame(b),b=null,M!==null&&cancelAnimationFrame(M),M=null,u=null,$=null,O.get(t)===K&&O.delete(t),be(),C(),t.removeEventListener("scroll",me),t.removeEventListener("scrollend",le,!0),t.removeEventListener("wheel",ie),t.removeEventListener("touchstart",ae),t.removeEventListener("touchmove",ue),t.removeEventListener("touchend",ce),t.removeEventListener("keydown",fe),t.removeEventListener("pointerdown",de),window.removeEventListener("pointerup",J),window.removeEventListener("pointercancel",J)}return pe(!0),{update(e){v=e.onFollowChange,y=e.onScrollStateChange,T=e.threshold??100;const n=e.enabled??!0;if(l!==n&&(n||he(),l=n,l)){o=e.follow,pe(!0);return}l?e.follow&&!o?(_(!0,!1),z()):!e.follow&&o?_(!1,!1):b===null&&ne():o=e.follow},destroy(){g=!0,he()}}}function tt(t){return O.get(t)?.isFollowing()??!1}function ot(t){return O.get(t)?.isNativeScrollAnchoringActive()??!1}function nt(t){return O.get(t)?.hasActiveMutation()??!1}function xe(t,i={}){let l=t;for(;l;){const o=O.get(l);if(o)return o.beforeMutation(t,i);l=l.parentElement}return Ae}function Ie(t){const{scrollTop:i,scrollHeight:l,clientHeight:o}=t;return l-i-o}function Ye(t,i=100){return Ie(t)<=i}function Ue(t,i=!1){t.scrollTo({top:t.scrollHeight,behavior:i?"smooth":"auto"})}function rt(t){const i=O.get(t);if(i){i.followAndScroll();return}Ue(t)}function it(t,i,l=150,o){const v=t();if(!v)return;const y=v.scrollTop,T=performance.now();function w(u){return 1-Math.pow(1-u,3)}function h(u){const m=t();if(!m)return;const x=u-T,d=Math.min(x/l,1),b=typeof i=="function"?i(m):i;m.scrollTop=y+(b-y)*w(d),d<1?requestAnimationFrame(h):o?.(m)}requestAnimationFrame(h)}function lt(t,i="[data-message-id], [data-lazy-turn-key]"){const l=t.scrollTop,o=t.getBoundingClientRect(),v=Ye(t,100);if(v&&O.get(t)?.isFollowing()!==!1)return{element:null,offsetFromViewport:0,scrollTop:l,isNearBottom:v};const y=t.querySelectorAll(i);let T=null,w=0,h;for(const u of y){const m=u.getBoundingClientRect();if(m.top>=o.bottom)break;if(m.top>=o.top){T||(T=u,w=m.top-o.top);const x=u.getAttribute("data-message-id");if(x){h={id:x,offsetFromViewport:m.top-o.top};break}}}return{element:T,offsetFromViewport:w,scrollTop:l,isNearBottom:v,...h?{message:h}:{}}}function ye(t,i){if(i.message){const l=t.querySelector(`[data-message-id="${CSS.escape(i.message.id)}"]`);if(l)return{element:l,offsetFromViewport:i.message.offsetFromViewport}}return i.element?.isConnected?{element:i.element,offsetFromViewport:i.offsetFromViewport}:null}function st(t,i){return ye(t,i)!==null}function at(t,i){const l=ye(t,i);if(l){const{element:o,offsetFromViewport:v}=l,y=t.getBoundingClientRect(),h=o.getBoundingClientRect().top-y.top-v;Math.abs(h)>5&&(t.scrollTop+=h)}}function E(t,i){const l=Number.parseFloat(String(t[i]));return Number.isFinite(l)?l:0}function ut(t,i={},l={}){const o=t,y={maxHoldMs:we[i.tier??"moderate"].settleMs*2+500};let T=xe(o,y);const w=()=>{T?.settle(),T=null},h=()=>{T??=xe(o,y)};if(!$e()||De())return w(),{duration:0};const u=getComputedStyle(o),m=i.axis??"y",x=o.getBoundingClientRect(),d=m==="y"?E(u,"height")||x.height:E(u,"width")||x.width;if(!Number.isFinite(d)||d<=0)return w(),{duration:0};const b=E(u,"opacity")||1,M=i.tier??"moderate",F=we[M],S=l.direction==="out",R=typeof u.getPropertyValue=="function"?S?We(o,{tier:M}):ke(o,{tier:M}):{duration:S?F.exit.duration:F.settleMs,easing:F.exit.easing},g=R.duration??(S?F.exit.duration:F.settleMs),$=i.y??-4,L=E(u,"paddingTop"),W=E(u,"paddingBottom"),P=E(u,"marginTop"),k=E(u,"marginBottom"),A=E(u,"paddingLeft"),G=E(u,"paddingRight"),V=E(u,"marginLeft"),I=E(u,"marginRight");let H=null,C=l.direction==="out"?"outro":l.direction==="in"?"intro":"idle";const Y=(c,D)=>{o.style.overflow="hidden",m==="y"?(o.style.height=`${c*d}px`,o.style.paddingTop=`${c*L}px`,o.style.paddingBottom=`${c*W}px`,o.style.marginTop=`${c*P}px`,o.style.marginBottom=`${c*k}px`):(o.style.width=`${c*d}px`,o.style.paddingLeft=`${c*A}px`,o.style.paddingRight=`${c*G}px`,o.style.marginLeft=`${c*V}px`,o.style.marginRight=`${c*I}px`),o.style.opacity=`${c*b}`,o.style.transform=m==="y"?`translateY(${$*D}px)`:`translateX(${$*D}px)`},j=()=>{o.style.overflow="",o.style.height="",o.style.width="",o.style.paddingTop="",o.style.paddingBottom="",o.style.marginTop="",o.style.marginBottom="",o.style.paddingLeft="",o.style.paddingRight="",o.style.marginLeft="",o.style.marginRight="",o.style.opacity="",o.style.transform=""};return{duration:g,easing:R.easing,tick:(c,D)=>{if(l.direction==="both"&&(H===null?c<1&&(C="outro"):c<H?(h(),C="outro"):c>H&&(h(),C="intro")),H=c,c===1&&C!=="outro"){j(),w(),C="idle";return}Y(c,D),T?.request(),c===0&&C==="outro"&&(w(),C="idle")}}}export{it as a,$e as b,xe as c,st as d,lt as e,et as f,rt as g,nt as h,tt as i,ot as j,Ze as k,Ue as l,at as r,ut as s};
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/Q0b4mMUd.js","/app/immutable/chunks/DKStgIlw.js","/app/immutable/chunks/DUPdECze.js","/app/immutable/chunks/CJxGDkBm.js","/app/immutable/chunks/BdWqymET.js","/app/immutable/chunks/J5tyH4KI.js","/app/immutable/chunks/R5qsERXh.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/chunks/Dou_hoaA.js","/app/immutable/chunks/PVXvIyE8.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/CxNkcb8W.js","/app/immutable/chunks/NvPqoUzX.js","/app/immutable/chunks/DxwfiAWm.js","/app/immutable/chunks/gsFx6FSh.js","/app/immutable/chunks/DWlZtz5u.js","/app/immutable/chunks/DKOGfBeL.js","/app/immutable/chunks/BxPVGrtc.js","/app/immutable/chunks/DYGZj8tM.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/CDDY7bU6.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/DeOvWG_V.js","/app/immutable/chunks/BophAjr8.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/Dc_PiRux.js","/app/immutable/chunks/CzTFPES1.js","/app/immutable/chunks/DCCz1NNc.js","/app/immutable/chunks/BDjmUG9E.js","/app/immutable/chunks/CdO4czEi.js","/app/immutable/chunks/NtFyWdpR.js","/app/immutable/chunks/Db6vgmuJ.js","/app/immutable/chunks/CtnMBSuA.js","/app/immutable/chunks/DJfJ5NWH.js","/app/immutable/chunks/tAo3FW4C.js","/app/immutable/chunks/BoIfXiRv.js","/app/immutable/chunks/XJv96NUg.js","/app/immutable/assets/notify.B1j5oT2y.css","/app/immutable/chunks/1d4tWxyl.js","/app/immutable/chunks/Cu2deF-X.js","/app/immutable/chunks/DDNqIPXh.js","/app/immutable/chunks/DKwAaLwd.js","/app/immutable/chunks/CflYgBql.js","/app/immutable/chunks/Bu_2dHSO.js","/app/immutable/chunks/B2F1R5gp.js","/app/immutable/chunks/Ddv73vDp.js","/app/immutable/chunks/BJNB3KvG.js","/app/immutable/chunks/B5aYN90J.js","/app/immutable/chunks/BeAfjfr4.js","/app/immutable/chunks/CQpwPlmg.js","/app/immutable/chunks/BigcqNWS.js","/app/immutable/chunks/B_bCRHRO.js","/app/immutable/chunks/CMiilI_P.js","/app/immutable/chunks/B5sCzlWo.js","/app/immutable/chunks/Cl3UEeu0.js","/app/immutable/chunks/Dlc9o8A3.js","/app/immutable/chunks/O8wCypGr.js","/app/immutable/chunks/B6s-8E-H.js","/app/immutable/chunks/BlNY__m5.js","/app/immutable/assets/menu-footer.Ck5GCpgU.css","/app/immutable/chunks/LvmqpfcL.js","/app/immutable/assets/dialog.BtQTVchw.css","/app/immutable/chunks/Cez5l2e8.js","/app/immutable/assets/confirm.UE5obH5A.css","/app/immutable/chunks/CMryofjF.js","/app/immutable/chunks/BA-RDf27.js","/app/immutable/chunks/DR6lkAOz.js","/app/immutable/chunks/CC7to1B5.js","/app/immutable/chunks/Dypu47ja.js","/app/immutable/assets/slider.kL-wkHnx.css","/app/immutable/chunks/BIfeWxYG.js","/app/immutable/chunks/CC3KUVRg.js","/app/immutable/chunks/DAsc1V4f.js","/app/immutable/chunks/BsieX9dN.js","/app/immutable/chunks/BbIcudMY.js","/app/immutable/chunks/B8trXsZY.js","/app/immutable/chunks/B8dlSoA0.js","/app/immutable/assets/DiagramPresentation.C2GLYoBN.css"])))=>i.map(i=>d[i]);
2
- import{_ as Z}from"./DUPdECze.js";import{b as u,ay as o,aD as I,ah as ee,s as te,t as ne,u as se,aL as L,ad as re,ae as ie,a9 as D,Q as S,af as R,X as ae,W as oe,a4 as ce,aR as le,ba as ue,at as de,bh as fe}from"./DKStgIlw.js";import{G as k}from"./-xK_vQQs.js";function P(e,{edgePathsClass:n="edges edgePaths"}={}){const t=e.insert("g").attr("class","root"),r=t.insert("g").attr("class","clusters"),s=t.insert("g").attr("class",n),i=t.insert("g").attr("class","edgeLabels"),c=t.insert("g").attr("class","nodes");return{clusters:r,edgePaths:s,edgeLabels:i,nodes:c,rootGroups:t}}u(P,"createLayoutElementGroups");async function T(e,n,t){if(n.label){const{shapeSvg:r,bbox:s}=await de(e,t===void 0?n:{...n,width:t});n.labelBBox={width:s.width,height:s.height},r.remove()}else n.labelBBox={width:0,height:0}}u(T,"measureGroupLabel");async function _(e,n,t){const r=await ee(e,n,t),s=r.node()?.getBBox()??{width:0,height:0};return n.width=s.width,n.height=s.height,r}u(_,"insertMeasuredNode");function B(e,n,t){let r=e;const s=new Set;for(;r;){if(r.dir)return r.dir;if(!r.parentId||s.has(r.parentId))break;s.add(r.parentId),r=n.get(r.parentId)}return t}u(B,"resolveNodeDir");async function M(e,n,t={}){const r=new k({multigraph:!0,compound:!0}),s=[...n.edges],i=ae(),c=P(e),{edgeLabels:f,nodes:a}=c,g=new Map,m=new Map(n.nodes.map(d=>[d.id,d])),C=n.direction,w=e.node()!=null;await Promise.all(n.nodes.map(async d=>{if(d.isGroup){if(w){const b=t.unwrapGroupLabels&&d.labelType!=="markdown";await T(a,d,b?Number.POSITIVE_INFINITY:void 0)}r.setNode(d.id,{...d})}else{if(w){const b=await _(a,d,{config:i,dir:B(d,m,C)});g.set(d.id,b)}r.setNode(d.id,{...d})}}));for(const d of s)w&&D(d)&&await R(f,d),r.setEdge(d.start,d.end,{...d},d.id),n.edges.some(E=>E.id===d.id)||n.edges.push(d);if(globalThis.mermaidCaptureSizes){const{captureNodeSizes:d}=await Z(async()=>{const{captureNodeSizes:b}=await import("./Q0b4mMUd.js");return{captureNodeSizes:b}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78]),import.meta.url);d(e,n)}return{graph:r,groups:c,nodeElements:g}}u(M,"createGraphWithElements");var l=new Map,h=new Map,A=new Map,ge=u(()=>{h.clear(),A.clear(),l.clear()},"clear"),v=u((e,n)=>{const t=h.get(n)||[];return o.trace("In isDescendant",n," ",e," = ",t.includes(e)),t.includes(e)},"isDescendant"),be=u((e,n)=>{const t=h.get(n)||[];return o.info("Descendants of ",n," is ",t),o.info("Edge is ",e),e.v===n||e.w===n?!1:t?t.includes(e.v)||v(e.v,n)||v(e.w,n)||t.includes(e.w):(o.debug("Tilt, ",n,",not in descendants"),!1)},"edgeInCluster"),X=u((e,n,t,r)=>{o.debug("Copying children of ",e,"root",r,"data",n.node(e),r);const s=n.children(e)||[];e!==r&&s.push(e),o.debug("Copying (nodes) clusterId",e,"nodes",s),s.forEach(i=>{if(n.children(i).length>0)X(i,n,t,r);else{const c=n.node(i);o.info("cp ",i," to ",r," with parent ",e),t.setNode(i,c),r!==n.parent(i)&&(o.debug("Setting parent",i,n.parent(i)),t.setParent(i,n.parent(i))),e!==r&&i!==e?(o.debug("Setting parent",i,e),t.setParent(i,e)):(o.info("In copy ",e,"root",r,"data",n.node(e),r),o.debug("Not Setting parent for node=",i,"cluster!==rootId",e!==r,"node!==clusterId",i!==e));const f=n.edges(i);o.debug("Copying Edges",f),f.forEach(a=>{o.info("Edge",a);const g=n.edge(a.v,a.w,a.name);o.info("Edge data",g,r);try{be(a,r)?(o.info("Copying as ",a.v,a.w,g,a.name),t.setEdge(a.v,a.w,g,a.name),o.info("newGraph edges ",t.edges(),t.edge(t.edges()[0]))):o.info("Skipping copy of edge ",a.v,"-->",a.w," rootId: ",r," clusterId:",e)}catch(m){o.error(m)}})}o.debug("Removing node",i),n.removeNode(i)})},"copy"),G=u((e,n)=>{const t=n.children(e);let r=[...t];for(const s of t)A.set(s,e),r=[...r,...G(s,n)];return r},"extractDescendants"),he=u((e,n,t)=>{const r=e.edges().filter(a=>a.v===n||a.w===n),s=e.edges().filter(a=>a.v===t||a.w===t),i=r.map(a=>({v:a.v===n?t:a.v,w:a.w===n?n:a.w})),c=s.map(a=>({v:a.v,w:a.w}));return i.filter(a=>c.some(g=>a.v===g.v&&a.w===g.w))},"findCommonEdges"),p=u((e,n,t)=>{const r=n.children(e);if(o.trace("Searching children of id ",e,r),r.length<1)return e;let s;for(const i of r){const c=p(i,n,t),f=he(n,t,c);if(c)if(f.length>0)s=c;else return c}return s},"findNonClusterChild"),x=u(e=>!l.has(e)||!l.get(e).externalConnections?e:l.has(e)?l.get(e).id:e,"getAnchorId"),Ne=u((e,n)=>{if(!e||n>10){o.debug("Opting out, no graph ");return}else o.debug("Opting in, graph ");e.nodes().forEach(function(t){e.children(t).length>0&&(o.debug("Cluster identified",t," Replacement id in edges: ",p(t,e,t)),h.set(t,G(t,e)),l.set(t,{id:p(t,e,t),clusterData:e.node(t)}))}),e.nodes().forEach(function(t){const r=e.children(t),s=e.edges();r.length>0?(o.debug("Cluster identified",t,h),s.forEach(i=>{const c=v(i.v,t),f=v(i.w,t);c^f&&(o.debug("Edge: ",i," leaves cluster ",t),o.debug("Descendants of XXX ",t,": ",h.get(t)),l.get(t).externalConnections=!0)})):o.debug("Not a cluster ",t,h)});for(let t of l.keys()){const r=l.get(t).id,s=e.parent(r);s!==t&&l.has(s)&&!l.get(s).externalConnections&&(l.get(t).id=s);const i=e.edges().some(c=>c.v===t);if(r&&l.get(t)?.externalConnections&&i&&$(e,r,t)){const c=me(e,t,e.parent(r));c&&(l.get(t).id=c)}}e.edges().forEach(function(t){const r=e.edge(t);o.debug("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(t)),o.debug("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(e.edge(t)));let s=t.v,i=t.w;if(o.debug("Fix XXX",l,"ids:",t.v,t.w,"Translating: ",l.get(t.v)," --- ",l.get(t.w)),l.get(t.v)||l.get(t.w)){if(o.debug("Fixing and trying - removing XXX",t.v,t.w,t.name),s=x(t.v),i=x(t.w),e.removeEdge(t.v,t.w,t.name),s!==t.v){const c=e.parent(s);l.get(c).externalConnections=!0,r.fromCluster=t.v}if(i!==t.w){const c=e.parent(i);l.get(c).externalConnections=!0,r.toCluster=t.w}o.debug("Fix Replacing with XXX",s,i,t.name),e.setEdge(s,i,r,t.name)}}),O(e,0),o.trace(l)},"adjustClustersAndEdges"),O=u((e,n)=>{if(n>10){o.error("Bailing out");return}let t=e.nodes(),r=!1;for(const s of t){const i=e.children(s);r=r||i.length>0}if(!r){o.debug("Done, no node has children",e.nodes());return}o.debug("Nodes = ",t,n);for(const s of t)if(o.debug("Extracting node",s,l,l.has(s)&&!l.get(s).externalConnections,!e.parent(s),e.node(s),e.children("D")," Depth ",n),!l.has(s))o.debug("Not a cluster",s,n);else if(!l.get(s).externalConnections&&e.children(s)&&e.children(s).length>0){o.debug("Cluster without external connections, without a parent and with children",s,n);let c=e.graph().rankdir==="TB"?"LR":"TB";l.get(s)?.clusterData?.dir&&(c=l.get(s).clusterData.dir,o.debug("Fixing dir",l.get(s).clusterData.dir,c));const f=new k({multigraph:!0,compound:!0}).setGraph({rankdir:c,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});X(s,e,f,s),e.setNode(s,{clusterNode:!0,id:s,clusterData:l.get(s).clusterData,label:l.get(s).label,graph:f})}else o.debug("Cluster ** ",s," **not meeting the criteria !externalConnections:",!l.get(s).externalConnections," no parent: ",!e.parent(s)," children ",e.children(s)&&e.children(s).length>0,e.children("D"),n),o.debug(l);t=e.nodes(),o.debug("New list of nodes",t);for(const s of t){const i=e.node(s);o.debug(" Now next level",s,i),i?.clusterNode&&O(i.graph,n+1)}},"extractor"),F=u((e,n)=>{if(n.length===0)return[];let t=Object.assign([],n);return n.forEach(r=>{const s=e.children(r),i=F(e,s);t=[...t,...i]}),t},"sorter"),ye=u(e=>F(e,e.children()),"sortNodesByHierarchy"),$=u((e,n,t)=>{let r=e.parent(n);for(;r&&r!==t;){const s=l.get(r);if(s&&!s.externalConnections)return!0;r=e.parent(r)}return!1},"isNodeInExtractableCluster"),me=u((e,n,t)=>{const r=e.children(n)??[];for(const s of r){if(s===t||v(s,t))continue;const i=p(s,e,n);if(i&&!$(e,i,n))return i}return null},"findSafeAnchorNode");function we({prepareLayout:e,measureLayout:n,runLayoutCore:t,paintLayout:r,afterPaint:s,paintOptions:i}){const c=n??z;return u(async function(a,g,m,C){const w=g.select("g");(m?.insertMarkers??I)(w,a.markers,a.type,a.diagramId),j();const d={element:w,helpers:m,options:C};d.preparedLayout=await e?.(a,d);const b=await c(a,d),E=await t(a,d),N={...d,measure:b};r?await r(a,N,E):await H(a,N,i),await s?.(a,N,E)},"render")}u(we,"createCommonLayoutRenderer");function j(){te(),ne(),se(),ge()}u(j,"clearLayoutRenderState");async function z(e,{element:n},t){return await M(n,e,t)}u(z,"defaultMeasureLayout");async function H(e,n,t={}){const{measure:r}=n,{groups:s}=r;for(const c of t.getNodes?.(e,n)??e.nodes)t.skipNode?.(c,n)||await W(s,c,n,t);const i=V(e.nodes);for(const c of e.edges)Q(c,t)||await Y(s,c,i,e,t,n)}u(H,"paintLayoutData");async function W(e,n,t,r){n.clusterNode?L(n):J(n,t,r)?await re(e.clusters,n):L(n)}u(W,"paintLayoutNode");function J(e,n,t){return e.isGroup===!0&&(t.isCluster?.(e,n)??!0)}u(J,"shouldPaintAsCluster");function V(e){const n=new Map;for(const t of e)t?.id&&n.set(t.id,t);return n}u(V,"buildNodeLookup");function Q(e,n){return e.isLayoutOnly||!!n.skipEdge?.(e)}u(Q,"shouldSkipPaintEdge");async function Y(e,n,t,r,s,i){const c=ie(e.edgePaths,{...n},s.clusterDb??new Map,r.type,y(n.start,n,t,i,s),y(n.end,n,t,i,s),r.diagramId,q(n,s),r.layoutAlgorithm);D(n)&&(S.has(n.id)||await R(e.edgeLabels,n),K(n,c))}u(Y,"paintLayoutEdge");function y(e,n,t,r,s){return s.getEdgeNode?.(e,n,r)??(e?t.get(e)??{}:{})}u(y,"getRenderedNode");function q(e,n){return typeof n.skipIntersect=="function"?n.skipIntersect(e):n.skipIntersect??!1}u(q,"shouldSkipIntersect");function K(e,n){const t=n?.updatedPath??n?.originalPath,r=oe(),{subGraphTitleTotalMargin:s}=ce({flowchart:r.flowchart??{}});if(e.label){const i=S.get(e.id),{x:c,y:f}=le(e,n);i.attr("transform",`translate(${c}, ${f+s/2})`)}for(const[i,c]of[["startLeft",e.startLabelLeft],["startRight",e.startLabelRight],["endLeft",e.endLabelLeft],["endRight",e.endLabelRight]])if(c){const{x:f,y:a}=U(e,i,t);ue.get(e.id)[i].attr("transform",`translate(${f}, ${a})`)}}u(K,"positionRenderedEdgeLabel");var ve={startLeft:"start_left",startRight:"start_right",endLeft:"end_left",endRight:"end_right"};function U(e,n,t){const r=e.terminalLabelCenters?.[n];if(r)return{...r};if(!t)return{x:e.x,y:e.y};const s=n.startsWith("start")?e.arrowTypeStart:e.arrowTypeEnd;return fe.calcTerminalLabelPosition(s?10:0,ve[n],t)}u(U,"terminalLabelTranslate");export{Ne as a,we as b,l as c,P as d,z as e,p as f,_ as i,ye as s};
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/D6_50bPj.js","/app/immutable/chunks/BVA6rkcP.js","/app/immutable/chunks/DUPdECze.js","/app/immutable/chunks/CJxGDkBm.js","/app/immutable/chunks/BdWqymET.js","/app/immutable/chunks/DJUIc5At.js","/app/immutable/chunks/R5qsERXh.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/chunks/Dou_hoaA.js","/app/immutable/chunks/PVXvIyE8.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/CxNkcb8W.js","/app/immutable/chunks/NvPqoUzX.js","/app/immutable/chunks/DxwfiAWm.js","/app/immutable/chunks/gsFx6FSh.js","/app/immutable/chunks/DWlZtz5u.js","/app/immutable/chunks/DKOGfBeL.js","/app/immutable/chunks/BxPVGrtc.js","/app/immutable/chunks/DYGZj8tM.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/CDDY7bU6.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/DeOvWG_V.js","/app/immutable/chunks/BophAjr8.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/Dc_PiRux.js","/app/immutable/chunks/CzTFPES1.js","/app/immutable/chunks/Cz8U_BhG.js","/app/immutable/chunks/BDjmUG9E.js","/app/immutable/chunks/CdO4czEi.js","/app/immutable/chunks/NtFyWdpR.js","/app/immutable/chunks/Db6vgmuJ.js","/app/immutable/chunks/CtnMBSuA.js","/app/immutable/chunks/DJfJ5NWH.js","/app/immutable/chunks/tAo3FW4C.js","/app/immutable/chunks/BoIfXiRv.js","/app/immutable/chunks/XJv96NUg.js","/app/immutable/assets/notify.B1j5oT2y.css","/app/immutable/chunks/1d4tWxyl.js","/app/immutable/chunks/Cu2deF-X.js","/app/immutable/chunks/B02VOKO8.js","/app/immutable/chunks/DKwAaLwd.js","/app/immutable/chunks/CflYgBql.js","/app/immutable/chunks/Bu_2dHSO.js","/app/immutable/chunks/B2F1R5gp.js","/app/immutable/chunks/Ddv73vDp.js","/app/immutable/chunks/BJNB3KvG.js","/app/immutable/chunks/B5aYN90J.js","/app/immutable/chunks/BeAfjfr4.js","/app/immutable/chunks/CQpwPlmg.js","/app/immutable/chunks/BigcqNWS.js","/app/immutable/chunks/tg0ajfyX.js","/app/immutable/chunks/CMiilI_P.js","/app/immutable/chunks/B5sCzlWo.js","/app/immutable/chunks/Cl3UEeu0.js","/app/immutable/chunks/Dlc9o8A3.js","/app/immutable/chunks/O8wCypGr.js","/app/immutable/chunks/B6s-8E-H.js","/app/immutable/chunks/BlNY__m5.js","/app/immutable/assets/menu-footer.Ck5GCpgU.css","/app/immutable/chunks/LvmqpfcL.js","/app/immutable/assets/dialog.BtQTVchw.css","/app/immutable/chunks/Cez5l2e8.js","/app/immutable/assets/confirm.UE5obH5A.css","/app/immutable/chunks/CMryofjF.js","/app/immutable/chunks/BA-RDf27.js","/app/immutable/chunks/DR6lkAOz.js","/app/immutable/chunks/CC7to1B5.js","/app/immutable/chunks/Dypu47ja.js","/app/immutable/assets/slider.kL-wkHnx.css","/app/immutable/chunks/BIfeWxYG.js","/app/immutable/chunks/DN-C1UIq.js","/app/immutable/chunks/DAsc1V4f.js","/app/immutable/chunks/BsieX9dN.js","/app/immutable/chunks/BbIcudMY.js","/app/immutable/chunks/B8trXsZY.js","/app/immutable/chunks/B8dlSoA0.js","/app/immutable/assets/DiagramPresentation.C2GLYoBN.css"])))=>i.map(i=>d[i]);
2
+ import{_ as Z}from"./DUPdECze.js";import{b as u,ay as o,aD as I,ah as ee,s as te,t as ne,u as se,aL as L,ad as re,ae as ie,a9 as D,Q as S,af as R,X as ae,W as oe,a4 as ce,aR as le,ba as ue,at as de,bh as fe}from"./BVA6rkcP.js";import{G as k}from"./-xK_vQQs.js";function P(e,{edgePathsClass:n="edges edgePaths"}={}){const t=e.insert("g").attr("class","root"),r=t.insert("g").attr("class","clusters"),s=t.insert("g").attr("class",n),i=t.insert("g").attr("class","edgeLabels"),c=t.insert("g").attr("class","nodes");return{clusters:r,edgePaths:s,edgeLabels:i,nodes:c,rootGroups:t}}u(P,"createLayoutElementGroups");async function T(e,n,t){if(n.label){const{shapeSvg:r,bbox:s}=await de(e,t===void 0?n:{...n,width:t});n.labelBBox={width:s.width,height:s.height},r.remove()}else n.labelBBox={width:0,height:0}}u(T,"measureGroupLabel");async function _(e,n,t){const r=await ee(e,n,t),s=r.node()?.getBBox()??{width:0,height:0};return n.width=s.width,n.height=s.height,r}u(_,"insertMeasuredNode");function B(e,n,t){let r=e;const s=new Set;for(;r;){if(r.dir)return r.dir;if(!r.parentId||s.has(r.parentId))break;s.add(r.parentId),r=n.get(r.parentId)}return t}u(B,"resolveNodeDir");async function M(e,n,t={}){const r=new k({multigraph:!0,compound:!0}),s=[...n.edges],i=ae(),c=P(e),{edgeLabels:f,nodes:a}=c,g=new Map,m=new Map(n.nodes.map(d=>[d.id,d])),C=n.direction,w=e.node()!=null;await Promise.all(n.nodes.map(async d=>{if(d.isGroup){if(w){const b=t.unwrapGroupLabels&&d.labelType!=="markdown";await T(a,d,b?Number.POSITIVE_INFINITY:void 0)}r.setNode(d.id,{...d})}else{if(w){const b=await _(a,d,{config:i,dir:B(d,m,C)});g.set(d.id,b)}r.setNode(d.id,{...d})}}));for(const d of s)w&&D(d)&&await R(f,d),r.setEdge(d.start,d.end,{...d},d.id),n.edges.some(E=>E.id===d.id)||n.edges.push(d);if(globalThis.mermaidCaptureSizes){const{captureNodeSizes:d}=await Z(async()=>{const{captureNodeSizes:b}=await import("./D6_50bPj.js");return{captureNodeSizes:b}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78]),import.meta.url);d(e,n)}return{graph:r,groups:c,nodeElements:g}}u(M,"createGraphWithElements");var l=new Map,h=new Map,A=new Map,ge=u(()=>{h.clear(),A.clear(),l.clear()},"clear"),v=u((e,n)=>{const t=h.get(n)||[];return o.trace("In isDescendant",n," ",e," = ",t.includes(e)),t.includes(e)},"isDescendant"),be=u((e,n)=>{const t=h.get(n)||[];return o.info("Descendants of ",n," is ",t),o.info("Edge is ",e),e.v===n||e.w===n?!1:t?t.includes(e.v)||v(e.v,n)||v(e.w,n)||t.includes(e.w):(o.debug("Tilt, ",n,",not in descendants"),!1)},"edgeInCluster"),X=u((e,n,t,r)=>{o.debug("Copying children of ",e,"root",r,"data",n.node(e),r);const s=n.children(e)||[];e!==r&&s.push(e),o.debug("Copying (nodes) clusterId",e,"nodes",s),s.forEach(i=>{if(n.children(i).length>0)X(i,n,t,r);else{const c=n.node(i);o.info("cp ",i," to ",r," with parent ",e),t.setNode(i,c),r!==n.parent(i)&&(o.debug("Setting parent",i,n.parent(i)),t.setParent(i,n.parent(i))),e!==r&&i!==e?(o.debug("Setting parent",i,e),t.setParent(i,e)):(o.info("In copy ",e,"root",r,"data",n.node(e),r),o.debug("Not Setting parent for node=",i,"cluster!==rootId",e!==r,"node!==clusterId",i!==e));const f=n.edges(i);o.debug("Copying Edges",f),f.forEach(a=>{o.info("Edge",a);const g=n.edge(a.v,a.w,a.name);o.info("Edge data",g,r);try{be(a,r)?(o.info("Copying as ",a.v,a.w,g,a.name),t.setEdge(a.v,a.w,g,a.name),o.info("newGraph edges ",t.edges(),t.edge(t.edges()[0]))):o.info("Skipping copy of edge ",a.v,"-->",a.w," rootId: ",r," clusterId:",e)}catch(m){o.error(m)}})}o.debug("Removing node",i),n.removeNode(i)})},"copy"),G=u((e,n)=>{const t=n.children(e);let r=[...t];for(const s of t)A.set(s,e),r=[...r,...G(s,n)];return r},"extractDescendants"),he=u((e,n,t)=>{const r=e.edges().filter(a=>a.v===n||a.w===n),s=e.edges().filter(a=>a.v===t||a.w===t),i=r.map(a=>({v:a.v===n?t:a.v,w:a.w===n?n:a.w})),c=s.map(a=>({v:a.v,w:a.w}));return i.filter(a=>c.some(g=>a.v===g.v&&a.w===g.w))},"findCommonEdges"),p=u((e,n,t)=>{const r=n.children(e);if(o.trace("Searching children of id ",e,r),r.length<1)return e;let s;for(const i of r){const c=p(i,n,t),f=he(n,t,c);if(c)if(f.length>0)s=c;else return c}return s},"findNonClusterChild"),x=u(e=>!l.has(e)||!l.get(e).externalConnections?e:l.has(e)?l.get(e).id:e,"getAnchorId"),Ne=u((e,n)=>{if(!e||n>10){o.debug("Opting out, no graph ");return}else o.debug("Opting in, graph ");e.nodes().forEach(function(t){e.children(t).length>0&&(o.debug("Cluster identified",t," Replacement id in edges: ",p(t,e,t)),h.set(t,G(t,e)),l.set(t,{id:p(t,e,t),clusterData:e.node(t)}))}),e.nodes().forEach(function(t){const r=e.children(t),s=e.edges();r.length>0?(o.debug("Cluster identified",t,h),s.forEach(i=>{const c=v(i.v,t),f=v(i.w,t);c^f&&(o.debug("Edge: ",i," leaves cluster ",t),o.debug("Descendants of XXX ",t,": ",h.get(t)),l.get(t).externalConnections=!0)})):o.debug("Not a cluster ",t,h)});for(let t of l.keys()){const r=l.get(t).id,s=e.parent(r);s!==t&&l.has(s)&&!l.get(s).externalConnections&&(l.get(t).id=s);const i=e.edges().some(c=>c.v===t);if(r&&l.get(t)?.externalConnections&&i&&$(e,r,t)){const c=me(e,t,e.parent(r));c&&(l.get(t).id=c)}}e.edges().forEach(function(t){const r=e.edge(t);o.debug("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(t)),o.debug("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(e.edge(t)));let s=t.v,i=t.w;if(o.debug("Fix XXX",l,"ids:",t.v,t.w,"Translating: ",l.get(t.v)," --- ",l.get(t.w)),l.get(t.v)||l.get(t.w)){if(o.debug("Fixing and trying - removing XXX",t.v,t.w,t.name),s=x(t.v),i=x(t.w),e.removeEdge(t.v,t.w,t.name),s!==t.v){const c=e.parent(s);l.get(c).externalConnections=!0,r.fromCluster=t.v}if(i!==t.w){const c=e.parent(i);l.get(c).externalConnections=!0,r.toCluster=t.w}o.debug("Fix Replacing with XXX",s,i,t.name),e.setEdge(s,i,r,t.name)}}),O(e,0),o.trace(l)},"adjustClustersAndEdges"),O=u((e,n)=>{if(n>10){o.error("Bailing out");return}let t=e.nodes(),r=!1;for(const s of t){const i=e.children(s);r=r||i.length>0}if(!r){o.debug("Done, no node has children",e.nodes());return}o.debug("Nodes = ",t,n);for(const s of t)if(o.debug("Extracting node",s,l,l.has(s)&&!l.get(s).externalConnections,!e.parent(s),e.node(s),e.children("D")," Depth ",n),!l.has(s))o.debug("Not a cluster",s,n);else if(!l.get(s).externalConnections&&e.children(s)&&e.children(s).length>0){o.debug("Cluster without external connections, without a parent and with children",s,n);let c=e.graph().rankdir==="TB"?"LR":"TB";l.get(s)?.clusterData?.dir&&(c=l.get(s).clusterData.dir,o.debug("Fixing dir",l.get(s).clusterData.dir,c));const f=new k({multigraph:!0,compound:!0}).setGraph({rankdir:c,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});X(s,e,f,s),e.setNode(s,{clusterNode:!0,id:s,clusterData:l.get(s).clusterData,label:l.get(s).label,graph:f})}else o.debug("Cluster ** ",s," **not meeting the criteria !externalConnections:",!l.get(s).externalConnections," no parent: ",!e.parent(s)," children ",e.children(s)&&e.children(s).length>0,e.children("D"),n),o.debug(l);t=e.nodes(),o.debug("New list of nodes",t);for(const s of t){const i=e.node(s);o.debug(" Now next level",s,i),i?.clusterNode&&O(i.graph,n+1)}},"extractor"),F=u((e,n)=>{if(n.length===0)return[];let t=Object.assign([],n);return n.forEach(r=>{const s=e.children(r),i=F(e,s);t=[...t,...i]}),t},"sorter"),ye=u(e=>F(e,e.children()),"sortNodesByHierarchy"),$=u((e,n,t)=>{let r=e.parent(n);for(;r&&r!==t;){const s=l.get(r);if(s&&!s.externalConnections)return!0;r=e.parent(r)}return!1},"isNodeInExtractableCluster"),me=u((e,n,t)=>{const r=e.children(n)??[];for(const s of r){if(s===t||v(s,t))continue;const i=p(s,e,n);if(i&&!$(e,i,n))return i}return null},"findSafeAnchorNode");function we({prepareLayout:e,measureLayout:n,runLayoutCore:t,paintLayout:r,afterPaint:s,paintOptions:i}){const c=n??z;return u(async function(a,g,m,C){const w=g.select("g");(m?.insertMarkers??I)(w,a.markers,a.type,a.diagramId),j();const d={element:w,helpers:m,options:C};d.preparedLayout=await e?.(a,d);const b=await c(a,d),E=await t(a,d),N={...d,measure:b};r?await r(a,N,E):await H(a,N,i),await s?.(a,N,E)},"render")}u(we,"createCommonLayoutRenderer");function j(){te(),ne(),se(),ge()}u(j,"clearLayoutRenderState");async function z(e,{element:n},t){return await M(n,e,t)}u(z,"defaultMeasureLayout");async function H(e,n,t={}){const{measure:r}=n,{groups:s}=r;for(const c of t.getNodes?.(e,n)??e.nodes)t.skipNode?.(c,n)||await W(s,c,n,t);const i=V(e.nodes);for(const c of e.edges)Q(c,t)||await Y(s,c,i,e,t,n)}u(H,"paintLayoutData");async function W(e,n,t,r){n.clusterNode?L(n):J(n,t,r)?await re(e.clusters,n):L(n)}u(W,"paintLayoutNode");function J(e,n,t){return e.isGroup===!0&&(t.isCluster?.(e,n)??!0)}u(J,"shouldPaintAsCluster");function V(e){const n=new Map;for(const t of e)t?.id&&n.set(t.id,t);return n}u(V,"buildNodeLookup");function Q(e,n){return e.isLayoutOnly||!!n.skipEdge?.(e)}u(Q,"shouldSkipPaintEdge");async function Y(e,n,t,r,s,i){const c=ie(e.edgePaths,{...n},s.clusterDb??new Map,r.type,y(n.start,n,t,i,s),y(n.end,n,t,i,s),r.diagramId,q(n,s),r.layoutAlgorithm);D(n)&&(S.has(n.id)||await R(e.edgeLabels,n),K(n,c))}u(Y,"paintLayoutEdge");function y(e,n,t,r,s){return s.getEdgeNode?.(e,n,r)??(e?t.get(e)??{}:{})}u(y,"getRenderedNode");function q(e,n){return typeof n.skipIntersect=="function"?n.skipIntersect(e):n.skipIntersect??!1}u(q,"shouldSkipIntersect");function K(e,n){const t=n?.updatedPath??n?.originalPath,r=oe(),{subGraphTitleTotalMargin:s}=ce({flowchart:r.flowchart??{}});if(e.label){const i=S.get(e.id),{x:c,y:f}=le(e,n);i.attr("transform",`translate(${c}, ${f+s/2})`)}for(const[i,c]of[["startLeft",e.startLabelLeft],["startRight",e.startLabelRight],["endLeft",e.endLabelLeft],["endRight",e.endLabelRight]])if(c){const{x:f,y:a}=U(e,i,t);ue.get(e.id)[i].attr("transform",`translate(${f}, ${a})`)}}u(K,"positionRenderedEdgeLabel");var ve={startLeft:"start_left",startRight:"start_right",endLeft:"end_left",endRight:"end_right"};function U(e,n,t){const r=e.terminalLabelCenters?.[n];if(r)return{...r};if(!t)return{x:e.x,y:e.y};const s=n.startsWith("start")?e.arrowTypeStart:e.arrowTypeEnd;return fe.calcTerminalLabelPosition(s?10:0,ve[n],t)}u(U,"terminalLabelTranslate");export{Ne as a,we as b,l as c,P as d,z as e,p as f,_ as i,ye as s};
@@ -1 +1 @@
1
- import{C as M}from"./B5aYN90J.js";import{a as v}from"./BdWqymET.js";import{d as E}from"./BeAfjfr4.js";import{I$ as o,DX as C,Dp as _,i as A,v9 as D,uL as O,g1 as H,CH as L,CZ as P,EX as R,CL as x}from"./Dou_hoaA.js";import{b8 as p}from"./R5qsERXh.js";import{d as B}from"./B0Z-1lwJ.js";import{n as F}from"./DDNqIPXh.js";import{o as W,e as q}from"./BosDWqqJ.js";const u=new v("OpenMessage"),S=150,y=15e3,N=2,G=[150,400,800,1500,3e3],Y=M;let g;function k(e){return new Promise(t=>setTimeout(t,e))}function m(e,t){const s=o.state,n=s.agentSessions?.byAgentId[e]?.messages,a=s.agentSessions?.historySegmentsByAgentId?.[e]?.messages;return!!(n?.some(r=>r.id===t)||a?.some(r=>r.id===t))}function T(e,t){const s=o.state,n=s.agentSessions?.historySegmentsByAgentId?.[e];n?.detachedFromTail!==!0||n.messages.some(r=>r.id===t)||!s.agentSessions?.byAgentId[e]?.messages?.some(r=>r.id===t)||o.dispatch(H(e))}function $(e){return o.state.chatState?.byAgentId[e]?.transcriptHydration}async function I(e,t,s){const n=Date.now()+y;let a=0;for(;Date.now()<n;){if(s.aborted)return!1;if(m(e,t))return!0;if(a>=N&&$(e)==="settled"&&!p.select(o.state,e).initialHistoryPending)return!1;a++,await k(S)}return!s.aborted&&m(e,t)}async function K(e,t,s,n){const a=Date.now()+y;for(;p.select(o.state,e).initialHistoryPending;){if(n?.aborted||Date.now()>=a)return!1;await k(S)}const r=o.state.agentSessions?.byAgentId[e];if(!r||n?.aborted)return!1;if(m(e,t))return T(e,t),!0;s??=r.workspaceId;const l=p.select(o.state,e);let c={nextToken:l.scrollbackOlderToken,prevToken:l.scrollbackGapToken,olderAnchorId:l.scrollbackOlderTokenAnchorId};o.dispatch(L(e,"seek"));const d=p.select(o.state,e).scrollbackDiscardEpoch,f=()=>!!o.state.agentSessions?.byAgentId[e]&&p.select(o.state,e).scrollbackDiscardEpoch===d;try{const i=await E.agents.getConversation(e,Y,void 0,t,void 0,s);return n?.aborted||!f()||!i.messages.some(h=>h.id===t)?!1:(o.dispatch(P(e,i.messages,i.messages[0]?.seq)),i.nextToken===null&&o.dispatch(R(e)),c={nextToken:i.nextToken,prevToken:i.prevToken,olderAnchorId:i.messages[0]?.id??null},m(e,t))}catch(i){return u.warn("[seekConversationToMessage] Seek fetch failed (message may no longer exist)",{agentId:e,messageId:t,error:i}),!1}finally{f()&&o.dispatch(x(e,c))}}async function ee(e){if(e.signal?.aborted)return;g?.abort(),g=new AbortController;const t=e.signal?AbortSignal.any([g.signal,e.signal]):g.signal,{workspaceId:s,agentId:n,messageId:a,query:r,targetTabId:l}=e;u.info("[openMessage] Deep-opening conversation at message",{workspaceId:s,agentId:n,messageId:a});const c=s===A;c&&!e.contentAlreadyOpen&&(o.dispatch(C(n)),o.dispatch(_(A,n)),o.dispatch(D("chief")));const d=c?"/":q(s);if(!e.contentAlreadyOpen&&typeof window<"u"&&window.location.pathname!==d){try{c?await F(d):await W(s)}catch(w){u.warn("[openMessage] Workspace navigation failed",{workspaceId:s,error:w});return}if(t.aborted)return;if(window.location.pathname!==d){u.warn("[openMessage] Workspace navigation was not confirmed",{workspaceId:s});return}}!e.contentAlreadyOpen&&!c&&o.dispatch(O(s,{agentId:n}));const f=await I(n,a,t);f&&T(n,a);const i=f||await K(n,a,s,t);if(t.aborted)return;if(!i){u.warn("[openMessage] Message not found; conversation opened at tail",{agentId:n,messageId:a});return}const h=`open-message-${Date.now()}-${Math.random().toString(36).slice(2)}`,b={agentId:n,messageId:a,query:r,targetTabId:l,requestId:h,signal:t};for(const w of G)setTimeout(()=>{t.aborted||B("chat:open-message",b)},w)}export{ee as openMessage,K as seekConversationToMessage};
1
+ import{C as M}from"./B5aYN90J.js";import{a as v}from"./BdWqymET.js";import{d as E}from"./BeAfjfr4.js";import{I$ as o,DX as C,Dp as _,i as A,v9 as D,uL as O,g1 as H,CH as L,CZ as P,EX as R,CL as x}from"./Dou_hoaA.js";import{b8 as p}from"./R5qsERXh.js";import{d as B}from"./B0Z-1lwJ.js";import{n as F}from"./B02VOKO8.js";import{o as W,e as q}from"./DqYxGkQL.js";const u=new v("OpenMessage"),S=150,y=15e3,N=2,G=[150,400,800,1500,3e3],Y=M;let g;function k(e){return new Promise(t=>setTimeout(t,e))}function m(e,t){const s=o.state,n=s.agentSessions?.byAgentId[e]?.messages,a=s.agentSessions?.historySegmentsByAgentId?.[e]?.messages;return!!(n?.some(r=>r.id===t)||a?.some(r=>r.id===t))}function T(e,t){const s=o.state,n=s.agentSessions?.historySegmentsByAgentId?.[e];n?.detachedFromTail!==!0||n.messages.some(r=>r.id===t)||!s.agentSessions?.byAgentId[e]?.messages?.some(r=>r.id===t)||o.dispatch(H(e))}function $(e){return o.state.chatState?.byAgentId[e]?.transcriptHydration}async function I(e,t,s){const n=Date.now()+y;let a=0;for(;Date.now()<n;){if(s.aborted)return!1;if(m(e,t))return!0;if(a>=N&&$(e)==="settled"&&!p.select(o.state,e).initialHistoryPending)return!1;a++,await k(S)}return!s.aborted&&m(e,t)}async function K(e,t,s,n){const a=Date.now()+y;for(;p.select(o.state,e).initialHistoryPending;){if(n?.aborted||Date.now()>=a)return!1;await k(S)}const r=o.state.agentSessions?.byAgentId[e];if(!r||n?.aborted)return!1;if(m(e,t))return T(e,t),!0;s??=r.workspaceId;const l=p.select(o.state,e);let c={nextToken:l.scrollbackOlderToken,prevToken:l.scrollbackGapToken,olderAnchorId:l.scrollbackOlderTokenAnchorId};o.dispatch(L(e,"seek"));const d=p.select(o.state,e).scrollbackDiscardEpoch,f=()=>!!o.state.agentSessions?.byAgentId[e]&&p.select(o.state,e).scrollbackDiscardEpoch===d;try{const i=await E.agents.getConversation(e,Y,void 0,t,void 0,s);return n?.aborted||!f()||!i.messages.some(h=>h.id===t)?!1:(o.dispatch(P(e,i.messages,i.messages[0]?.seq)),i.nextToken===null&&o.dispatch(R(e)),c={nextToken:i.nextToken,prevToken:i.prevToken,olderAnchorId:i.messages[0]?.id??null},m(e,t))}catch(i){return u.warn("[seekConversationToMessage] Seek fetch failed (message may no longer exist)",{agentId:e,messageId:t,error:i}),!1}finally{f()&&o.dispatch(x(e,c))}}async function ee(e){if(e.signal?.aborted)return;g?.abort(),g=new AbortController;const t=e.signal?AbortSignal.any([g.signal,e.signal]):g.signal,{workspaceId:s,agentId:n,messageId:a,query:r,targetTabId:l}=e;u.info("[openMessage] Deep-opening conversation at message",{workspaceId:s,agentId:n,messageId:a});const c=s===A;c&&!e.contentAlreadyOpen&&(o.dispatch(C(n)),o.dispatch(_(A,n)),o.dispatch(D("chief")));const d=c?"/":q(s);if(!e.contentAlreadyOpen&&typeof window<"u"&&window.location.pathname!==d){try{c?await F(d):await W(s)}catch(w){u.warn("[openMessage] Workspace navigation failed",{workspaceId:s,error:w});return}if(t.aborted)return;if(window.location.pathname!==d){u.warn("[openMessage] Workspace navigation was not confirmed",{workspaceId:s});return}}!e.contentAlreadyOpen&&!c&&o.dispatch(O(s,{agentId:n}));const f=await I(n,a,t);f&&T(n,a);const i=f||await K(n,a,s,t);if(t.aborted)return;if(!i){u.warn("[openMessage] Message not found; conversation opened at tail",{agentId:n,messageId:a});return}const h=`open-message-${Date.now()}-${Math.random().toString(36).slice(2)}`,b={agentId:n,messageId:a,query:r,targetTabId:l,requestId:h,signal:t};for(const w of G)setTimeout(()=>{t.aborted||B("chat:open-message",b)},w)}export{ee as openMessage,K as seekConversationToMessage};
@@ -1 +1 @@
1
- import{b as a,B as w,ay as x}from"./DKStgIlw.js";var g=a((e,t,i,r)=>{e.attr("class",i);const{width:o,height:h,x:n,y:c}=u(e,t);w(e,h,o,r);const s=B(n,c,o,h,t);e.attr("viewBox",s),x.debug(`viewBox configured: ${s} with padding: ${t}`)},"setupViewPortForSVG"),u=a((e,t)=>{const i=e.node()?.getBBox()||{width:0,height:0,x:0,y:0};return{width:i.width+t*2,height:i.height+t*2,x:i.x,y:i.y}},"calculateDimensionsWithPadding"),B=a((e,t,i,r,o)=>`${e-o} ${t-o} ${i} ${r}`,"createViewBox");export{g as s};
1
+ import{b as a,B as w,ay as x}from"./BVA6rkcP.js";var g=a((e,t,i,r)=>{e.attr("class",i);const{width:o,height:h,x:n,y:c}=u(e,t);w(e,h,o,r);const s=B(n,c,o,h,t);e.attr("viewBox",s),x.debug(`viewBox configured: ${s} with padding: ${t}`)},"setupViewPortForSVG"),u=a((e,t)=>{const i=e.node()?.getBBox()||{width:0,height:0,x:0,y:0};return{width:i.width+t*2,height:i.height+t*2,x:i.x,y:i.y}},"calculateDimensionsWithPadding"),B=a((e,t,i,r,o)=>`${e-o} ${t-o} ${i} ${r}`,"createViewBox");export{g as s};
@@ -1 +1 @@
1
- import{g as p,r as u,d as n}from"./BBV9e85e.js";import{p as f}from"./m1-2SLgl.js";import{b as a,ay as o}from"./DKStgIlw.js";import{M as c,c as d}from"./B6Lw5fq5.js";var v=d().RailroadAbnf.parser.LangiumParser,i=a(e=>{const r=e.alternatives.map(g);return r.length===1?r[0]:{type:"choice",alternatives:r}},"transformAlternation"),g=a(e=>{const r=e.elements.map(y);return r.length===1?r[0]:{type:"sequence",elements:r}},"transformConcatenation"),b=a(e=>{if(e.includes("*")){const[t,s]=e.split("*"),l=t?parseInt(t,10):0,m=s?parseInt(s,10):1/0;return{min:l,max:m}}const r=parseInt(e,10);return{min:r,max:r}},"parseRepeat"),y=a(e=>{const r=A(e.primary);if(!e.repeat)return r;const{min:t,max:s}=b(e.repeat);return t===0&&s===1?{type:"optional",element:r}:{type:"repetition",element:r,min:t,max:s}},"transformElement"),A=a(e=>{switch(e.$type){case"AbnfStringLiteral":return{type:"terminal",value:e.value};case"AbnfNumVal":return{type:"terminal",value:e.value};case"AbnfRuleName":return{type:"nonterminal",name:e.name};case"AbnfGroup":return i(e.element);case"AbnfOptionalGroup":return{type:"optional",element:i(e.element)};default:throw new Error(`Unsupported ABNF primary node: ${e.$type}`)}},"transformPrimary"),P=a(e=>({name:e.name,definition:i(e.definition)}),"transformRule"),h=a(e=>{f(e,n),e.title&&n.setTitle(e.title),e.rules.map(r=>n.addRule(P(r)))},"populateDb"),R={parse:a(e=>{n.clear(),o.debug("[ABNF Parser] Starting Langium parse");const r=v.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new c(r);const t=r.value;o.debug("[ABNF Parser] Parsed rules:",t.rules.length),h(t),o.debug("[ABNF Parser] Parse complete")},"parse"),parser:{yy:n}},w={parser:R,db:n,renderer:u,styles:p};export{w as diagram};
1
+ import{g as p,r as u,d as n}from"./qz4jsx2y.js";import{p as f}from"./BYi1LHpB.js";import{b as a,ay as o}from"./BVA6rkcP.js";import{M as c,c as d}from"./B6Lw5fq5.js";var v=d().RailroadAbnf.parser.LangiumParser,i=a(e=>{const r=e.alternatives.map(g);return r.length===1?r[0]:{type:"choice",alternatives:r}},"transformAlternation"),g=a(e=>{const r=e.elements.map(y);return r.length===1?r[0]:{type:"sequence",elements:r}},"transformConcatenation"),b=a(e=>{if(e.includes("*")){const[t,s]=e.split("*"),l=t?parseInt(t,10):0,m=s?parseInt(s,10):1/0;return{min:l,max:m}}const r=parseInt(e,10);return{min:r,max:r}},"parseRepeat"),y=a(e=>{const r=A(e.primary);if(!e.repeat)return r;const{min:t,max:s}=b(e.repeat);return t===0&&s===1?{type:"optional",element:r}:{type:"repetition",element:r,min:t,max:s}},"transformElement"),A=a(e=>{switch(e.$type){case"AbnfStringLiteral":return{type:"terminal",value:e.value};case"AbnfNumVal":return{type:"terminal",value:e.value};case"AbnfRuleName":return{type:"nonterminal",name:e.name};case"AbnfGroup":return i(e.element);case"AbnfOptionalGroup":return{type:"optional",element:i(e.element)};default:throw new Error(`Unsupported ABNF primary node: ${e.$type}`)}},"transformPrimary"),P=a(e=>({name:e.name,definition:i(e.definition)}),"transformRule"),h=a(e=>{f(e,n),e.title&&n.setTitle(e.title),e.rules.map(r=>n.addRule(P(r)))},"populateDb"),R={parse:a(e=>{n.clear(),o.debug("[ABNF Parser] Starting Langium parse");const r=v.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new c(r);const t=r.value;o.debug("[ABNF Parser] Parsed rules:",t.rules.length),h(t),o.debug("[ABNF Parser] Parse complete")},"parse"),parser:{yy:n}},w={parser:R,db:n,renderer:u,styles:p};export{w as diagram};