@intent-hq/web 2.342.2 → 2.342.3

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 (144) hide show
  1. package/package.json +1 -1
  2. package/web/app/immutable/chunks/{Ck-MVCeg.js → 0x6dqQIa.js} +1 -1
  3. package/web/app/immutable/chunks/{DO6bRkht.js → 1i6_ayQa.js} +1 -1
  4. package/web/app/immutable/chunks/{CCyHGsx1.js → 8u8SxllG.js} +1 -1
  5. package/web/app/immutable/chunks/{DuXQgVrN.js → ARTboVs8.js} +1 -1
  6. package/web/app/immutable/chunks/{UYZesgqg.js → B-sO71tc.js} +1 -1
  7. package/web/app/immutable/chunks/{DeKwn_F7.js → B03x8aVM.js} +1 -1
  8. package/web/app/immutable/chunks/{D_Pty9qy.js → B1arNP2P.js} +1 -1
  9. package/web/app/immutable/chunks/{uyuKNxsR.js → B1cHX7Xk.js} +1 -1
  10. package/web/app/immutable/chunks/{BmpDuIkF.js → BAKjdnbI.js} +1 -1
  11. package/web/app/immutable/chunks/{BgDzDopc.js → BCFyx55K.js} +1 -1
  12. package/web/app/immutable/chunks/{Bm4gN2Zb.js → BCQuOTkB.js} +1 -1
  13. package/web/app/immutable/chunks/{DDe9tE4g.js → BEaoRHTk.js} +1 -1
  14. package/web/app/immutable/chunks/{DmExokFD.js → BG2VczVu.js} +3 -3
  15. package/web/app/immutable/chunks/{CqfhsexB.js → BGfE1mTB.js} +1 -1
  16. package/web/app/immutable/chunks/{16ZnmKwk.js → BHJLFedJ.js} +4 -4
  17. package/web/app/immutable/chunks/{BADTNT-R.js → BHUnRRNH.js} +1 -1
  18. package/web/app/immutable/chunks/{CCeWyMrz.js → BIqvZNBF.js} +1 -1
  19. package/web/app/immutable/chunks/{aokpM5AB.js → BMCPlkQb.js} +1 -1
  20. package/web/app/immutable/chunks/{DJtPzYvk.js → BNWVLlL9.js} +1 -1
  21. package/web/app/immutable/chunks/{CfzS8Gfm.js → BSOl3D1L.js} +3 -3
  22. package/web/app/immutable/chunks/{13n0hWYJ.js → BU0CN-Mi.js} +1 -1
  23. package/web/app/immutable/chunks/{VaiKGhlm.js → BV0CWJbU.js} +1 -1
  24. package/web/app/immutable/chunks/{BoHY5gYD.js → BV3VSi1D.js} +2 -2
  25. package/web/app/immutable/chunks/{iB_Ug3Tj.js → BW_B7BlJ.js} +1 -1
  26. package/web/app/immutable/chunks/{BkLgWHWF.js → BYD1cpfb.js} +1 -1
  27. package/web/app/immutable/chunks/{DXtdosGC.js → B_D1XvND.js} +1 -1
  28. package/web/app/immutable/chunks/{D7KFkzTo.js → BawM1GKD.js} +1 -1
  29. package/web/app/immutable/chunks/{C0U5HDdc.js → Bf8tb4wz.js} +1 -1
  30. package/web/app/immutable/chunks/{CypdcPp3.js → BiPV5llL.js} +2 -2
  31. package/web/app/immutable/chunks/{BR_savCB.js → Bj7GSp-O.js} +1 -1
  32. package/web/app/immutable/chunks/{ppFDuElZ.js → BllPddzf.js} +1 -1
  33. package/web/app/immutable/chunks/{CJgNYK9V.js → Bo0nUuSe.js} +1 -1
  34. package/web/app/immutable/chunks/{DKpqZZ5J.js → Bpcv_J4e.js} +1 -1
  35. package/web/app/immutable/chunks/{lk5ctrEi.js → BquLFLry.js} +2 -2
  36. package/web/app/immutable/chunks/{CtLD2qbA.js → BrPW9js0.js} +1 -1
  37. package/web/app/immutable/chunks/{L_xQfaig.js → Bv_1j8Lx.js} +1 -1
  38. package/web/app/immutable/chunks/{BBLI7gZr.js → BwFLOTNQ.js} +1 -1
  39. package/web/app/immutable/chunks/{_tCsFuOP.js → BzjYW7xk.js} +1 -1
  40. package/web/app/immutable/chunks/{CxtY9PAo.js → C4GpMBeP.js} +1 -1
  41. package/web/app/immutable/chunks/{DRAHBqQm.js → C4UdVbF_.js} +1 -1
  42. package/web/app/immutable/chunks/{qTbFtTyZ.js → C8ljN5z8.js} +1 -1
  43. package/web/app/immutable/chunks/{C0g7Eqbd.js → CBGE1E0g.js} +1 -1
  44. package/web/app/immutable/chunks/{Df-fNNqU.js → CD9jD52C.js} +1 -1
  45. package/web/app/immutable/chunks/{B469zf_w.js → CE0Qbu3w.js} +1 -1
  46. package/web/app/immutable/chunks/{B8qGzL8i.js → CGtv3cos.js} +1 -1
  47. package/web/app/immutable/chunks/{DEAJosBQ.js → CIwBzQHU.js} +1 -1
  48. package/web/app/immutable/chunks/{Uyyxw4bl.js → CIzDk_zI.js} +1 -1
  49. package/web/app/immutable/chunks/{Cn042LtA.js → CJdFZ1LA.js} +2 -2
  50. package/web/app/immutable/chunks/{SgKRyWMJ.js → CL9t4ZAe.js} +1 -1
  51. package/web/app/immutable/chunks/{ag0-9R2l.js → CMzyDAl1.js} +2 -2
  52. package/web/app/immutable/chunks/{Bq6eGKPr.js → CNuU1B-f.js} +1 -1
  53. package/web/app/immutable/chunks/{z1z8GC2-.js → CO7_izcq.js} +1 -1
  54. package/web/app/immutable/chunks/{CJODFnM7.js → CR0wuNAQ.js} +1 -1
  55. package/web/app/immutable/chunks/{DvDeEn1B.js → CSLJ-jez.js} +1 -1
  56. package/web/app/immutable/chunks/{BehoboVr.js → CSQ_fnji.js} +1 -1
  57. package/web/app/immutable/chunks/{C451wdH8.js → CTg5aOyU.js} +1 -1
  58. package/web/app/immutable/chunks/{DgYqkFYk.js → CU4q4tsx.js} +1 -1
  59. package/web/app/immutable/chunks/{Dn6TxX1b.js → CUftuAIh.js} +1 -1
  60. package/web/app/immutable/chunks/{UgJ8KjVC.js → CVw1BeiY.js} +1 -1
  61. package/web/app/immutable/chunks/{CXryJZjo.js → CWZ7mpOj.js} +1 -1
  62. package/web/app/immutable/chunks/{QyIGonlC.js → CXtWfXOk.js} +1 -1
  63. package/web/app/immutable/chunks/{CVNMYGFF.js → C_IbqdcR.js} +1 -1
  64. package/web/app/immutable/chunks/{B0LTdoMZ.js → CaxQfH_l.js} +1 -1
  65. package/web/app/immutable/chunks/{DyYoVm9l.js → CckCknq8.js} +1 -1
  66. package/web/app/immutable/chunks/{ChM8LZU3.js → CdbkOJyf.js} +1 -1
  67. package/web/app/immutable/chunks/{DSaN60B-.js → Cf1W9csW.js} +1 -1
  68. package/web/app/immutable/chunks/{DZBAmic_.js → Cl-TOt-H.js} +1 -1
  69. package/web/app/immutable/chunks/{BdvKyyQ7.js → CmOwZBIE.js} +1 -1
  70. package/web/app/immutable/chunks/{CI524qsg.js → CmPCJSSG.js} +1 -1
  71. package/web/app/immutable/chunks/{BmjPIH38.js → CnnuzDl4.js} +1 -1
  72. package/web/app/immutable/chunks/{Bbozl6mM.js → CnysHsqM.js} +3 -3
  73. package/web/app/immutable/chunks/Coblm6PA.js +175 -0
  74. package/web/app/immutable/chunks/{DL6GFQWd.js → Cu9fTXDM.js} +1 -1
  75. package/web/app/immutable/chunks/{ly44q7lS.js → CvpN2ntt.js} +1 -1
  76. package/web/app/immutable/chunks/{8JbYrP_-.js → Cy0flNZe.js} +1 -1
  77. package/web/app/immutable/chunks/{DkITK-2z.js → D-rFVAfw.js} +1 -1
  78. package/web/app/immutable/chunks/{CM6ofsmm.js → D16XyjdQ.js} +1 -1
  79. package/web/app/immutable/chunks/{CCA-a5JP.js → D3dEuJnw.js} +1 -1
  80. package/web/app/immutable/chunks/{tZn51uqd.js → D7hU4nML.js} +1 -1
  81. package/web/app/immutable/chunks/{DxpMmzym.js → D9l0jrxc.js} +1 -1
  82. package/web/app/immutable/chunks/{B4qrSEpy.js → DAHG8VFe.js} +1 -1
  83. package/web/app/immutable/chunks/{DfSU1zsS.js → DBAiCEuC.js} +1 -1
  84. package/web/app/immutable/chunks/{CxHAlRVQ.js → DF2UsCIw.js} +1 -1
  85. package/web/app/immutable/chunks/{-ccfrtH7.js → DJXGgEUK.js} +2 -2
  86. package/web/app/immutable/chunks/{Ciy5ndAt.js → DKru45dM.js} +2 -2
  87. package/web/app/immutable/chunks/{pqyPptbZ.js → DNjSjUPQ.js} +1 -1
  88. package/web/app/immutable/chunks/{BFkh8x47.js → DOBhNX3p.js} +2 -2
  89. package/web/app/immutable/chunks/{C9Tn2aWq.js → DQQdA4K3.js} +1 -1
  90. package/web/app/immutable/chunks/{BuRfMW9U.js → DRVWOSo1.js} +1 -1
  91. package/web/app/immutable/chunks/{DXFhywqj.js → DRs35PDf.js} +1 -1
  92. package/web/app/immutable/chunks/{qHzkHUJa.js → DVIMjmZu.js} +1 -1
  93. package/web/app/immutable/chunks/{mqDhqc1z.js → DXSPB--o.js} +1 -1
  94. package/web/app/immutable/chunks/{BPHUIiiV.js → DXuzXMqh.js} +1 -1
  95. package/web/app/immutable/chunks/{D7Li4Mli.js → DcBQoqUj.js} +4 -4
  96. package/web/app/immutable/chunks/{A3j68Jpj.js → DeG9fDv0.js} +1 -1
  97. package/web/app/immutable/chunks/{C2vLXngQ.js → DefhHE22.js} +1 -1
  98. package/web/app/immutable/chunks/{CXL6aPFd.js → DfB0B1KO.js} +3 -3
  99. package/web/app/immutable/chunks/{B2_9lYPy.js → DfTEJbwY.js} +2 -2
  100. package/web/app/immutable/chunks/{DdzkwSDy.js → DfpuTCWq.js} +1 -1
  101. package/web/app/immutable/chunks/{BugMDWpY.js → DjNKFaGs.js} +1 -1
  102. package/web/app/immutable/chunks/{DSNzRZ8C.js → DjXa_Id4.js} +1 -1
  103. package/web/app/immutable/chunks/{B984L3ei.js → Dl2hKdK8.js} +1 -1
  104. package/web/app/immutable/chunks/{UVG37ujP.js → DlTU3Vab.js} +1 -1
  105. package/web/app/immutable/chunks/{CZI58O7j.js → DpcFZgpL.js} +1 -1
  106. package/web/app/immutable/chunks/{D_yjck8l.js → DrW1ovmd.js} +1 -1
  107. package/web/app/immutable/chunks/{DYQYcTNY.js → DtIYVb7q.js} +1 -1
  108. package/web/app/immutable/chunks/{1qEFdFvy.js → Du8MDRKf.js} +12 -12
  109. package/web/app/immutable/chunks/{CnyHVjhu.js → DuberDif.js} +1 -1
  110. package/web/app/immutable/chunks/{Cg2YKAtv.js → DuqPG5hn.js} +3 -3
  111. package/web/app/immutable/chunks/{B3Vpc0UD.js → Dw7vCIPg.js} +1 -1
  112. package/web/app/immutable/chunks/{Bsu5oWdj.js → DyYampZL.js} +4 -4
  113. package/web/app/immutable/chunks/{BFu7QfPc.js → LdScknGk.js} +1 -1
  114. package/web/app/immutable/chunks/{DKDl5IPw.js → NjlV1WJd.js} +1 -1
  115. package/web/app/immutable/chunks/{B-YLcmrj.js → OvxzalpE.js} +1 -1
  116. package/web/app/immutable/chunks/{CVZTt6Li.js → Poqpz709.js} +1 -1
  117. package/web/app/immutable/chunks/{D8dEtl5c.js → SCDnOgXN.js} +1 -1
  118. package/web/app/immutable/chunks/{Dgc550NC.js → WWdulpT-.js} +1 -1
  119. package/web/app/immutable/chunks/{CSmqi2h5.js → _pQ-TiLj.js} +1 -1
  120. package/web/app/immutable/chunks/{DZx5PyYP.js → cdv6-ttx.js} +1 -1
  121. package/web/app/immutable/chunks/{BNReA8Eg.js → cw-D0WSV.js} +1 -1
  122. package/web/app/immutable/chunks/{CKqX6wgb.js → fPSk9nMW.js} +1 -1
  123. package/web/app/immutable/chunks/{Du2Gj6UM.js → lApOuXc7.js} +1 -1
  124. package/web/app/immutable/chunks/{BeYtcsu8.js → wLlGz-Fv.js} +1 -1
  125. package/web/app/immutable/chunks/{CNmewsOv.js → zCJVgQ0H.js} +1 -1
  126. package/web/app/immutable/entry/{app.CfkKS3_B.js → app.C_tZYG_a.js} +2 -2
  127. package/web/app/immutable/entry/start.Cq4TY_yo.js +1 -0
  128. package/web/app/immutable/nodes/{0.lcvHyY-0.js → 0.CyLJTlGn.js} +1 -1
  129. package/web/app/immutable/nodes/{1.BhBvaoaE.js → 1.C3ky_JLm.js} +1 -1
  130. package/web/app/immutable/nodes/{10.Dl3iInnZ.js → 10.CiQpynoE.js} +1 -1
  131. package/web/app/immutable/nodes/{14.CWZgoDsu.js → 14.CHWSdLUD.js} +1 -1
  132. package/web/app/immutable/nodes/{17.DNzsiTvY.js → 17.Bt_3PCle.js} +2 -2
  133. package/web/app/immutable/nodes/{2.DTYQ5-L1.js → 2.uiZCQd8c.js} +4 -4
  134. package/web/app/immutable/nodes/{3.Bw9eze1v.js → 3.L51ZJZBh.js} +1 -1
  135. package/web/app/immutable/nodes/{4.QtvgFa_a.js → 4.DHO0h1Bf.js} +1 -1
  136. package/web/app/immutable/nodes/{5.TW71fA8G.js → 5.CXlGhIbG.js} +1 -1
  137. package/web/app/immutable/nodes/{6.u50ySvFG.js → 6.D3CgeUJf.js} +1 -1
  138. package/web/app/immutable/nodes/{7.CRu43av9.js → 7.bpZwTl2d.js} +1 -1
  139. package/web/app/immutable/nodes/{8.B52SAcoZ.js → 8.DP5s58EM.js} +4 -4
  140. package/web/app/immutable/nodes/{9.Ci2jUFUn.js → 9.DWXaoBWu.js} +4 -4
  141. package/web/app/version.json +1 -1
  142. package/web/index.html +9 -9
  143. package/web/app/immutable/chunks/D8Y4PJzg.js +0 -175
  144. package/web/app/immutable/entry/start.D8twmA7m.js +0 -1
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/QyIGonlC.js","/app/immutable/chunks/Bsu5oWdj.js","/app/immutable/chunks/DXyyWeag.js","/app/immutable/chunks/DYhIMPy1.js","/app/immutable/chunks/BdWqymET.js","/app/immutable/chunks/z1z8GC2-.js","/app/immutable/chunks/Cg2SHWhQ.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/chunks/D5ej8a-y.js","/app/immutable/chunks/WFvSJ9zU.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/ppRpwazH.js","/app/immutable/chunks/Cuqq8bL5.js","/app/immutable/chunks/DxwfiAWm.js","/app/immutable/chunks/DyvrH0mm.js","/app/immutable/chunks/BTdkHPOB.js","/app/immutable/chunks/CnVt0JNG.js","/app/immutable/chunks/CjaOLL1c.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/Bfr1QjPr.js","/app/immutable/chunks/BaIAhI85.js","/app/immutable/chunks/BybfkKTj.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/DEYvT_CO.js","/app/immutable/chunks/BboIV5H5.js","/app/immutable/chunks/DYQYcTNY.js","/app/immutable/chunks/DT4bpJWb.js","/app/immutable/chunks/DJkHth-B.js","/app/immutable/chunks/DfxQWSVU.js","/app/immutable/chunks/BWYr8u9e.js","/app/immutable/chunks/XJv96NUg.js","/app/immutable/assets/notify.BeL_JB6L.css","/app/immutable/chunks/RD9QY1Yc.js","/app/immutable/chunks/DogedYC1.js","/app/immutable/chunks/BAKm0uzb.js","/app/immutable/chunks/DHQOuksI.js","/app/immutable/chunks/DNBv5HWD.js","/app/immutable/chunks/BvFAWM27.js","/app/immutable/chunks/-ccfrtH7.js","/app/immutable/chunks/ChkzKl5W.js","/app/immutable/chunks/pKvpKpo4.js","/app/immutable/chunks/ag0-9R2l.js","/app/immutable/chunks/B5m4HK_m.js","/app/immutable/chunks/ChOlbK8y.js","/app/immutable/chunks/Co9PgWQA.js","/app/immutable/chunks/CX_KiszT.js","/app/immutable/chunks/4NMrKcis.js","/app/immutable/chunks/D6bHtnlF.js","/app/immutable/assets/menu-footer.Ck5GCpgU.css","/app/immutable/chunks/Dwmx7Nbz.js","/app/immutable/assets/dialog.BtQTVchw.css","/app/immutable/chunks/BsieX9dN.js","/app/immutable/assets/observe-overflow.CbDLK6fN.css","/app/immutable/chunks/BtId34lw.js","/app/immutable/chunks/C5oPUaEZ.js","/app/immutable/chunks/BKnW-cqy.js","/app/immutable/assets/confirm.UE5obH5A.css","/app/immutable/chunks/BeP4UORy.js","/app/immutable/chunks/B0gQeWRk.js","/app/immutable/assets/SettingsPage.D8u26cHZ.css","/app/immutable/chunks/D-hrwg9Y.js","/app/immutable/chunks/2YGlULfT.js","/app/immutable/chunks/CC7to1B5.js","/app/immutable/chunks/DyYoVm9l.js","/app/immutable/chunks/CypdcPp3.js","/app/immutable/chunks/DRAHBqQm.js","/app/immutable/chunks/B0Z-1lwJ.js","/app/immutable/chunks/DdzkwSDy.js","/app/immutable/assets/directory-picker-service.CzNEA6Ot.css","/app/immutable/chunks/D8Y4PJzg.js","/app/immutable/chunks/CMiilI_P.js","/app/immutable/chunks/lkH5RFQO.js","/app/immutable/chunks/CshdgsKR.js","/app/immutable/assets/AttachmentPreview.BCSCCZGm.css","/app/immutable/chunks/D7Li4Mli.js","/app/immutable/chunks/CXL6aPFd.js","/app/immutable/chunks/Df-fNNqU.js","/app/immutable/assets/accessibility.CP-rioAF.css","/app/immutable/assets/DiagramPresentation.Bfi3xHm0.css"])))=>i.map(i=>d[i]);
2
- import{_ as Z}from"./DXyyWeag.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"./Bsu5oWdj.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("./QyIGonlC.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,79,80]),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/CXtWfXOk.js","/app/immutable/chunks/DyYampZL.js","/app/immutable/chunks/DXyyWeag.js","/app/immutable/chunks/DYhIMPy1.js","/app/immutable/chunks/BdWqymET.js","/app/immutable/chunks/CO7_izcq.js","/app/immutable/chunks/Cg2SHWhQ.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/chunks/D5ej8a-y.js","/app/immutable/chunks/WFvSJ9zU.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/ppRpwazH.js","/app/immutable/chunks/Cuqq8bL5.js","/app/immutable/chunks/DxwfiAWm.js","/app/immutable/chunks/DyvrH0mm.js","/app/immutable/chunks/BTdkHPOB.js","/app/immutable/chunks/CnVt0JNG.js","/app/immutable/chunks/CjaOLL1c.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/Bfr1QjPr.js","/app/immutable/chunks/BaIAhI85.js","/app/immutable/chunks/BybfkKTj.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/DEYvT_CO.js","/app/immutable/chunks/BboIV5H5.js","/app/immutable/chunks/DtIYVb7q.js","/app/immutable/chunks/DT4bpJWb.js","/app/immutable/chunks/DJkHth-B.js","/app/immutable/chunks/DfxQWSVU.js","/app/immutable/chunks/BWYr8u9e.js","/app/immutable/chunks/XJv96NUg.js","/app/immutable/assets/notify.BeL_JB6L.css","/app/immutable/chunks/RD9QY1Yc.js","/app/immutable/chunks/DogedYC1.js","/app/immutable/chunks/BAKm0uzb.js","/app/immutable/chunks/DHQOuksI.js","/app/immutable/chunks/DNBv5HWD.js","/app/immutable/chunks/BvFAWM27.js","/app/immutable/chunks/DJXGgEUK.js","/app/immutable/chunks/ChkzKl5W.js","/app/immutable/chunks/pKvpKpo4.js","/app/immutable/chunks/CMzyDAl1.js","/app/immutable/chunks/B5m4HK_m.js","/app/immutable/chunks/ChOlbK8y.js","/app/immutable/chunks/Co9PgWQA.js","/app/immutable/chunks/CX_KiszT.js","/app/immutable/chunks/4NMrKcis.js","/app/immutable/chunks/D6bHtnlF.js","/app/immutable/assets/menu-footer.Ck5GCpgU.css","/app/immutable/chunks/Dwmx7Nbz.js","/app/immutable/assets/dialog.BtQTVchw.css","/app/immutable/chunks/BsieX9dN.js","/app/immutable/assets/observe-overflow.CbDLK6fN.css","/app/immutable/chunks/BtId34lw.js","/app/immutable/chunks/C5oPUaEZ.js","/app/immutable/chunks/BKnW-cqy.js","/app/immutable/assets/confirm.UE5obH5A.css","/app/immutable/chunks/BeP4UORy.js","/app/immutable/chunks/B0gQeWRk.js","/app/immutable/assets/SettingsPage.D8u26cHZ.css","/app/immutable/chunks/D-hrwg9Y.js","/app/immutable/chunks/2YGlULfT.js","/app/immutable/chunks/CC7to1B5.js","/app/immutable/chunks/CckCknq8.js","/app/immutable/chunks/BiPV5llL.js","/app/immutable/chunks/C4UdVbF_.js","/app/immutable/chunks/B0Z-1lwJ.js","/app/immutable/chunks/DfpuTCWq.js","/app/immutable/assets/directory-picker-service.CzNEA6Ot.css","/app/immutable/chunks/Coblm6PA.js","/app/immutable/chunks/CMiilI_P.js","/app/immutable/chunks/lkH5RFQO.js","/app/immutable/chunks/CshdgsKR.js","/app/immutable/assets/AttachmentPreview.BCSCCZGm.css","/app/immutable/chunks/DcBQoqUj.js","/app/immutable/chunks/DfB0B1KO.js","/app/immutable/chunks/CD9jD52C.js","/app/immutable/assets/accessibility.CP-rioAF.css","/app/immutable/assets/DiagramPresentation.Bfi3xHm0.css"])))=>i.map(i=>d[i]);
2
+ import{_ as Z}from"./DXyyWeag.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"./DyYampZL.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("./CXtWfXOk.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,79,80]),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,4 +1,4 @@
1
- import{s as xe}from"./DZx5PyYP.js";import{p as be}from"./DKpqZZ5J.js";import{b as C,a6 as Ce,W as ae,q as ee,aX as we,B as Te,ay as te,b8 as B,aW as Z,a_ as Le,V as $e,b0 as Ae,Y as Fe,U as _e,aZ as Ne,O as Me,ao as ke,r as Ve}from"./Bsu5oWdj.js";import{p as ze}from"./2gme4FSl.js";import{f as O,o as Q}from"./uyuKNxsR.js";function De(t){var a=0,l=t.children,n=l&&l.length;if(!n)a=1;else for(;--n>=0;)a+=l[n].value;t.value=a}function Pe(){return this.eachAfter(De)}function Be(t,a){let l=-1;for(const n of this)t.call(a,n,++l,this);return this}function We(t,a){for(var l=this,n=[l],s,r,h=-1;l=n.pop();)if(t.call(a,l,++h,this),s=l.children)for(r=s.length-1;r>=0;--r)n.push(s[r]);return this}function Ee(t,a){for(var l=this,n=[l],s=[],r,h,d,f=-1;l=n.pop();)if(s.push(l),r=l.children)for(h=0,d=r.length;h<d;++h)n.push(r[h]);for(;l=s.pop();)t.call(a,l,++f,this);return this}function Re(t,a){let l=-1;for(const n of this)if(t.call(a,n,++l,this))return n}function He(t){return this.eachAfter(function(a){for(var l=+t(a.data)||0,n=a.children,s=n&&n.length;--s>=0;)l+=n[s].value;a.value=l})}function Ie(t){return this.eachBefore(function(a){a.children&&a.children.sort(t)})}function Oe(t){for(var a=this,l=qe(a,t),n=[a];a!==l;)a=a.parent,n.push(a);for(var s=n.length;t!==l;)n.splice(s,0,t),t=t.parent;return n}function qe(t,a){if(t===a)return t;var l=t.ancestors(),n=a.ancestors(),s=null;for(t=l.pop(),a=n.pop();t===a;)s=t,t=l.pop(),a=n.pop();return s}function Ge(){for(var t=this,a=[t];t=t.parent;)a.push(t);return a}function Xe(){return Array.from(this)}function Ye(){var t=[];return this.eachBefore(function(a){a.children||t.push(a)}),t}function je(){var t=this,a=[];return t.each(function(l){l!==t&&a.push({source:l.parent,target:l})}),a}function*Ue(){var t=this,a,l=[t],n,s,r;do for(a=l.reverse(),l=[];t=a.pop();)if(yield t,n=t.children)for(s=0,r=n.length;s<r;++s)l.push(n[s]);while(l.length)}function ne(t,a){t instanceof Map?(t=[void 0,t],a===void 0&&(a=Ke)):a===void 0&&(a=Je);for(var l=new Y(t),n,s=[l],r,h,d,f;n=s.pop();)if((h=a(n.data))&&(f=(h=Array.from(h)).length))for(n.children=h,d=f-1;d>=0;--d)s.push(r=h[d]=new Y(h[d])),r.parent=n,r.depth=n.depth+1;return l.eachBefore(et)}function Ze(){return ne(this).eachBefore(Qe)}function Je(t){return t.children}function Ke(t){return Array.isArray(t)?t[1]:null}function Qe(t){t.data.value!==void 0&&(t.value=t.data.value),t.data=t.data.data}function et(t){var a=0;do t.height=a;while((t=t.parent)&&t.height<++a)}function Y(t){this.data=t,this.depth=this.height=0,this.parent=null}Y.prototype=ne.prototype={constructor:Y,count:Pe,each:Be,eachAfter:Ee,eachBefore:We,find:Re,sum:He,sort:Ie,path:Oe,ancestors:Ge,descendants:Xe,leaves:Ye,links:je,copy:Ze,[Symbol.iterator]:Ue};function tt(t){if(typeof t!="function")throw new Error;return t}function q(){return 0}function G(t){return function(){return t}}function at(t){t.x0=Math.round(t.x0),t.y0=Math.round(t.y0),t.x1=Math.round(t.x1),t.y1=Math.round(t.y1)}function oe(t,a,l,n,s){for(var r=t.children,h,d=-1,f=r.length,o=t.value&&(n-a)/t.value;++d<f;)h=r[d],h.y0=l,h.y1=s,h.x0=a,h.x1=a+=h.value*o}Object.create(Y.prototype);function ce(t,a,l,n,s){for(var r=t.children,h,d=-1,f=r.length,o=t.value&&(s-l)/t.value;++d<f;)h=r[d],h.x0=a,h.x1=n,h.y0=l,h.y1=l+=h.value*o}var he=(1+Math.sqrt(5))/2;function de(t,a,l,n,s,r){for(var h=[],d=a.children,f,o,u=0,S=0,i=d.length,v,x,g=a.value,p,b,_,$,z,R,N;u<i;){v=s-l,x=r-n;do p=d[S++].value;while(!p&&S<i);for(b=_=p,R=Math.max(x/v,v/x)/(g*t),N=p*p*R,z=Math.max(_/N,N/b);S<i;++S){if(p+=o=d[S].value,o<b&&(b=o),o>_&&(_=o),N=p*p*R,$=Math.max(_/N,N/b),$>z){p-=o;break}z=$}h.push(f={value:p,dice:v<x,children:d.slice(u,S)}),f.dice?oe(f,l,n,s,g?n+=x*p/g:r):ce(f,l,n,g?l+=v*p/g:s,r),g-=p,u=S}return h}var nt=(function t(a){function l(n,s,r,h,d){de(a,n,s,r,h,d)}return l.ratio=function(n){return t((n=+n)>1?n:1)},l})(he);function lt(){var t=nt,a=!1,l=1,n=1,s=[0],r=q,h=q,d=q,f=q,o=q;function u(i){return i.x0=i.y0=0,i.x1=l,i.y1=n,i.eachBefore(S),s=[0],a&&i.eachBefore(at),i}function S(i){var v=s[i.depth],x=i.x0+v,g=i.y0+v,p=i.x1-v,b=i.y1-v;p<x&&(x=p=(x+p)/2),b<g&&(g=b=(g+b)/2),i.x0=x,i.y0=g,i.x1=p,i.y1=b,i.children&&(v=s[i.depth+1]=r(i)/2,x+=o(i)-v,g+=h(i)-v,p-=d(i)-v,b-=f(i)-v,p<x&&(x=p=(x+p)/2),b<g&&(g=b=(g+b)/2),t(i,x,g,p,b))}return u.round=function(i){return arguments.length?(a=!!i,u):a},u.size=function(i){return arguments.length?(l=+i[0],n=+i[1],u):[l,n]},u.tile=function(i){return arguments.length?(t=tt(i),u):t},u.padding=function(i){return arguments.length?u.paddingInner(i).paddingOuter(i):u.paddingInner()},u.paddingInner=function(i){return arguments.length?(r=typeof i=="function"?i:G(+i),u):r},u.paddingOuter=function(i){return arguments.length?u.paddingTop(i).paddingRight(i).paddingBottom(i).paddingLeft(i):u.paddingTop()},u.paddingTop=function(i){return arguments.length?(h=typeof i=="function"?i:G(+i),u):h},u.paddingRight=function(i){return arguments.length?(d=typeof i=="function"?i:G(+i),u):d},u.paddingBottom=function(i){return arguments.length?(f=typeof i=="function"?i:G(+i),u):f},u.paddingLeft=function(i){return arguments.length?(o=typeof i=="function"?i:G(+i),u):o},u}(function t(a){function l(n,s,r,h,d){if((f=n._squarify)&&f.ratio===a)for(var f,o,u,S,i=-1,v,x=f.length,g=n.value;++i<x;){for(o=f[i],u=o.children,S=o.value=0,v=u.length;S<v;++S)o.value+=u[S].value;o.dice?oe(o,s,r,h,g?r+=(d-r)*o.value/g:d):ce(o,s,r,g?s+=(h-s)*o.value/g:h,d),g-=o.value}else n._squarify=f=de(a,n,s,r,h,d),f.ratio=a}return l.ratio=function(n){return t((n=+n)>1?n:1)},l})(he);var E,ue=(E=class{constructor(){this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.setAccTitle=Le,this.getAccTitle=$e,this.setDiagramTitle=Ae,this.getDiagramTitle=Fe,this.getAccDescription=_e,this.setAccDescription=Ne}getNodes(){return this.nodes}getConfig(){const a=Me,l=ae();return ee({...a.treemap,...l.treemap??{}})}addNode(a,l){this.nodes.push(a),this.levels.set(a,l),l===0&&(this.outerNodes.push(a),this.root??=a)}getRoot(){return{name:"",children:this.outerNodes}}addClass(a,l){const n=this.classes.get(a)??{id:a,styles:[],textStyles:[]},s=l.replace(/\\,/g,"§§§").replace(/,/g,";").replace(/§§§/g,",").split(";");s&&s.forEach(r=>{ke(r)&&(n?.textStyles?n.textStyles.push(r):n.textStyles=[r]),n?.styles?n.styles.push(r):n.styles=[r]}),this.classes.set(a,n)}getClasses(){return this.classes}getStylesForClass(a){return this.classes.get(a)?.styles??[]}clear(){Ve(),this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.root=void 0}},C(E,"TreeMapDB"),E);function pe(t){if(!t.length)return[];const a=[],l=[];return t.forEach(n=>{const s={name:n.name,children:n.type==="Leaf"?void 0:[]};for(s.classSelector=n?.classSelector,n?.cssCompiledStyles&&(s.cssCompiledStyles=n.cssCompiledStyles),n.type==="Leaf"&&n.value!==void 0&&(s.value=n.value);l.length>0&&l[l.length-1].level>=n.level;)l.pop();if(l.length===0)a.push(s);else{const r=l[l.length-1].node;r.children?r.children.push(s):r.children=[s]}n.type!=="Leaf"&&l.push({node:s,level:n.level})}),a}C(pe,"buildHierarchy");var st=C((t,a)=>{be(t,a);const l=[];for(const r of t.TreemapRows??[])r.$type==="ClassDefStatement"&&a.addClass(r.className??"",r.styleText??"");for(const r of t.TreemapRows??[]){const h=r.item;if(!h)continue;const d=r.indent?parseInt(r.indent):0,f=rt(h),o=h.classSelector?a.getStylesForClass(h.classSelector):[],u=o.length>0?o:void 0,S={level:d,name:f,type:h.$type,value:h.value,classSelector:h.classSelector,cssCompiledStyles:u};l.push(S)}const n=pe(l),s=C((r,h)=>{for(const d of r)a.addNode(d,h),d.children&&d.children.length>0&&s(d.children,h+1)},"addNodesRecursively");s(n,0)},"populate"),rt=C(t=>t.name?String(t.name):"","getItemName"),fe={parser:{yy:void 0},parse:C(async t=>{try{const l=await ze("treemap",t);te.debug("Treemap AST:",l);const n=fe.parser?.yy;if(!(n instanceof ue))throw new Error("parser.parser?.yy was not a TreemapDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");st(l,n)}catch(a){throw te.error("Error parsing treemap:",a),a}},"parse")},it=10,W=10,X=25,ot=C((t,a,l,n)=>{const s=n.db,r=s.getConfig(),h=r.padding??it,d=s.getDiagramTitle(),f=s.getRoot(),{themeVariables:o}=ae();if(!f)return;const u=d?30:0,S=we(a),i=r.nodeWidth?r.nodeWidth*W:960,v=r.nodeHeight?r.nodeHeight*W:500,x=i,g=v+u;S.attr("viewBox",`0 0 ${x} ${g}`),Te(S,g,x,r.useMaxWidth);let p;try{const e=r.valueFormat||",";if(e==="$0,0")p=C(c=>"$"+O(",")(c),"valueFormat");else if(e.startsWith("$")&&e.includes(",")){const c=/\.\d+/.exec(e),m=c?c[0]:"";p=C(w=>"$"+O(","+m)(w),"valueFormat")}else if(e.startsWith("$")){const c=e.substring(1);p=C(m=>"$"+O(c||"")(m),"valueFormat")}else p=O(e)}catch(e){te.error("Error creating format function:",e),p=O(",")}const b=Q().range(["transparent",o.cScale0,o.cScale1,o.cScale2,o.cScale3,o.cScale4,o.cScale5,o.cScale6,o.cScale7,o.cScale8,o.cScale9,o.cScale10,o.cScale11]),_=Q().range(["transparent",o.cScalePeer0,o.cScalePeer1,o.cScalePeer2,o.cScalePeer3,o.cScalePeer4,o.cScalePeer5,o.cScalePeer6,o.cScalePeer7,o.cScalePeer8,o.cScalePeer9,o.cScalePeer10,o.cScalePeer11]),$=Q().range([o.cScaleLabel0,o.cScaleLabel1,o.cScaleLabel2,o.cScaleLabel3,o.cScaleLabel4,o.cScaleLabel5,o.cScaleLabel6,o.cScaleLabel7,o.cScaleLabel8,o.cScaleLabel9,o.cScaleLabel10,o.cScaleLabel11]);d&&S.append("text").attr("x",x/2).attr("y",u/2).attr("class","treemapTitle").attr("text-anchor","middle").attr("dominant-baseline","middle").text(d);const z=S.append("g").attr("transform",`translate(0, ${u})`).attr("class","treemapContainer"),R=ne(f).sum(e=>e.value??0).sort((e,c)=>(c.value??0)-(e.value??0)),le=lt().size([i,v]).paddingTop(e=>e.children&&e.children.length>0?X+W:0).paddingInner(h).paddingLeft(e=>e.children&&e.children.length>0?W:0).paddingRight(e=>e.children&&e.children.length>0?W:0).paddingBottom(e=>e.children&&e.children.length>0?W:0).round(!0)(R),me=le.descendants().filter(e=>e.children&&e.children.length>0),H=z.selectAll(".treemapSection").data(me).enter().append("g").attr("class","treemapSection").attr("transform",e=>`translate(${e.x0},${e.y0})`);H.append("rect").attr("width",e=>e.x1-e.x0).attr("height",X).attr("class","treemapSectionHeader").attr("fill","none").attr("fill-opacity",.6).attr("stroke-width",.6).attr("style",e=>e.depth===0?"display: none;":""),H.append("clipPath").attr("id",(e,c)=>`clip-section-${a}-${c}`).append("rect").attr("width",e=>Math.max(0,e.x1-e.x0-12)).attr("height",X),H.append("rect").attr("width",e=>e.x1-e.x0).attr("height",e=>e.y1-e.y0).attr("class",(e,c)=>`treemapSection section${c}`).attr("fill",e=>b(e.data.name)).attr("fill-opacity",.6).attr("stroke",e=>_(e.data.name)).attr("stroke-width",2).attr("stroke-opacity",.4).attr("style",e=>{if(e.depth===0)return"display: none;";const c=B({cssCompiledStyles:e.data.cssCompiledStyles});return c.nodeStyles+";"+c.borderStyles.join(";")}),H.append("text").attr("class","treemapSectionLabel").attr("x",6).attr("y",X/2).attr("dominant-baseline","middle").text(e=>e.depth===0?"":e.data.name).attr("font-weight","bold").attr("clip-path",(e,c)=>`url(#clip-section-${a}-${c})`).attr("style",e=>{if(e.depth===0)return"display: none;";const c="dominant-baseline: middle; font-size: 12px; fill:"+$(e.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",m=B({cssCompiledStyles:e.data.cssCompiledStyles});return c+m.labelStyles.replace("color:","fill:")}).each(function(e){if(e.depth===0)return;const c=Z(this),m=e.data.name;c.text(m);const w=e.x1-e.x0,L=6;let T;r.showValues!==!1&&e.value?T=w-10-30-10-L:T=w-L-6;const y=Math.max(15,T),M=c.node();if(M.getComputedTextLength()>y){let V=m;for(;V.length>0;){if(V=m.substring(0,V.length-1),V.length===0){c.text("..."),M.getComputedTextLength()>y&&c.text("");break}if(c.text(V+"..."),M.getComputedTextLength()<=y)break}}}),r.showValues!==!1&&H.append("text").attr("class","treemapSectionValue").attr("x",e=>e.x1-e.x0-10).attr("y",X/2).attr("text-anchor","end").attr("dominant-baseline","middle").text(e=>e.value?p(e.value):"").attr("font-style","italic").attr("style",e=>{if(e.depth===0)return"display: none;";const c="text-anchor: end; dominant-baseline: middle; font-size: 10px; fill:"+$(e.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",m=B({cssCompiledStyles:e.data.cssCompiledStyles});return c+m.labelStyles.replace("color:","fill:")});const se=le.leaves(),A=se.length>20,ge=A?16:38,j=A?14:28,D=A?4:8,I=A?4:6,J=A?2:4,re=A?8:10,K=A?1:2,U=z.selectAll(".treemapLeafGroup").data(se).enter().append("g").attr("class",(e,c)=>`treemapNode treemapLeafGroup leaf${c}${e.data.classSelector?` ${e.data.classSelector}`:""}x`).attr("transform",e=>`translate(${e.x0},${e.y0})`);U.append("rect").attr("width",e=>e.x1-e.x0).attr("height",e=>e.y1-e.y0).attr("class","treemapLeaf").attr("fill",e=>e.parent?b(e.parent.data.name):b(e.data.name)).attr("style",e=>B({cssCompiledStyles:e.data.cssCompiledStyles}).nodeStyles).attr("fill-opacity",.3).attr("stroke",e=>e.parent?b(e.parent.data.name):b(e.data.name)).attr("stroke-width",3),U.append("clipPath").attr("id",(e,c)=>`clip-${a}-${c}`).append("rect").attr("width",e=>Math.max(0,e.x1-e.x0-4)).attr("height",e=>Math.max(0,e.y1-e.y0-4)),U.append("text").attr("class","treemapLabel").attr("x",e=>(e.x1-e.x0)/2).attr("y",e=>(e.y1-e.y0)/2).attr("style",e=>{const c=`text-anchor: middle; dominant-baseline: middle; font-size: ${ge}px;fill:`+$(e.data.name)+";",m=B({cssCompiledStyles:e.data.cssCompiledStyles});return c+m.labelStyles.replace("color:","fill:")}).attr("clip-path",(e,c)=>`url(#clip-${a}-${c})`).text(e=>e.data.name).each(function(e){const c=Z(this),m=e.x1-e.x0,w=e.y1-e.y0,L=c.node(),T=m-2*J,P=w-2*J;if(T<re||P<re){c.style("display","none");return}let y=parseInt(c.style("font-size"),10);const M=.6;for(;L.getComputedTextLength()>T&&y>D;)y--,c.style("font-size",`${y}px`);let F=Math.max(I,Math.min(j,Math.round(y*M))),k=y+K+F;for(;k>P&&y>D&&(y--,F=Math.max(I,Math.min(j,Math.round(y*M))),!(F<I&&y===D));)c.style("font-size",`${y}px`),k=y+K+F;c.style("font-size",`${y}px`),A?(y<D||P<D)&&c.style("display","none"):(L.getComputedTextLength()>T||y<D||P<y)&&c.style("display","none")}),r.showValues!==!1&&U.append("text").attr("class","treemapValue").attr("x",c=>(c.x1-c.x0)/2).attr("y",function(c){return(c.y1-c.y0)/2}).attr("style",c=>{const m=`text-anchor: middle; dominant-baseline: hanging; font-size: ${j}px;fill:`+$(c.data.name)+";",w=B({cssCompiledStyles:c.data.cssCompiledStyles});return m+w.labelStyles.replace("color:","fill:")}).attr("clip-path",(c,m)=>`url(#clip-${a}-${m})`).text(c=>c.value?p(c.value):"").each(function(c){const m=Z(this),w=this.parentNode;if(!w){m.style("display","none");return}const L=Z(w).select(".treemapLabel");if(L.empty()||L.style("display")==="none"){m.style("display","none");return}const T=parseFloat(L.style("font-size")),y=Math.max(I,Math.min(j,Math.round(T*.6)));m.style("font-size",`${y}px`);const F=(c.y1-c.y0)/2+T/2+K;m.attr("y",F);const k=c.x1-c.x0,ie=c.y1-c.y0-4,ve=k-2*J;m.node().getComputedTextLength()>ve||F+y>ie||y<I?m.style("display","none"):m.style("display",null)});const ye=r.diagramPadding??8;xe(S,ye,"flowchart",r?.useMaxWidth||!1)},"draw"),ct=C(function(t,a){return a.db.getClasses()},"getClasses"),ht={draw:ot,getClasses:ct},dt={sectionStrokeColor:"black",sectionStrokeWidth:"1",sectionFillColor:"#efefef",leafStrokeColor:"black",leafStrokeWidth:"1",leafFillColor:"#efefef",labelFontSize:"12px",valueFontSize:"10px",titleFontSize:"14px"},ut=C(({treemap:t}={})=>{const a=Ce(),l=ae(),n=ee(a,l.themeVariables),s=ee(dt,t),r=s.titleColor??n.titleColor,h=s.labelColor??n.textColor,d=s.valueColor??n.textColor;return`
1
+ import{s as xe}from"./cdv6-ttx.js";import{p as be}from"./Bpcv_J4e.js";import{b as C,a6 as Ce,W as ae,q as ee,aX as we,B as Te,ay as te,b8 as B,aW as Z,a_ as Le,V as $e,b0 as Ae,Y as Fe,U as _e,aZ as Ne,O as Me,ao as ke,r as Ve}from"./DyYampZL.js";import{p as ze}from"./2gme4FSl.js";import{f as O,o as Q}from"./B1cHX7Xk.js";function De(t){var a=0,l=t.children,n=l&&l.length;if(!n)a=1;else for(;--n>=0;)a+=l[n].value;t.value=a}function Pe(){return this.eachAfter(De)}function Be(t,a){let l=-1;for(const n of this)t.call(a,n,++l,this);return this}function We(t,a){for(var l=this,n=[l],s,r,h=-1;l=n.pop();)if(t.call(a,l,++h,this),s=l.children)for(r=s.length-1;r>=0;--r)n.push(s[r]);return this}function Ee(t,a){for(var l=this,n=[l],s=[],r,h,d,f=-1;l=n.pop();)if(s.push(l),r=l.children)for(h=0,d=r.length;h<d;++h)n.push(r[h]);for(;l=s.pop();)t.call(a,l,++f,this);return this}function Re(t,a){let l=-1;for(const n of this)if(t.call(a,n,++l,this))return n}function He(t){return this.eachAfter(function(a){for(var l=+t(a.data)||0,n=a.children,s=n&&n.length;--s>=0;)l+=n[s].value;a.value=l})}function Ie(t){return this.eachBefore(function(a){a.children&&a.children.sort(t)})}function Oe(t){for(var a=this,l=qe(a,t),n=[a];a!==l;)a=a.parent,n.push(a);for(var s=n.length;t!==l;)n.splice(s,0,t),t=t.parent;return n}function qe(t,a){if(t===a)return t;var l=t.ancestors(),n=a.ancestors(),s=null;for(t=l.pop(),a=n.pop();t===a;)s=t,t=l.pop(),a=n.pop();return s}function Ge(){for(var t=this,a=[t];t=t.parent;)a.push(t);return a}function Xe(){return Array.from(this)}function Ye(){var t=[];return this.eachBefore(function(a){a.children||t.push(a)}),t}function je(){var t=this,a=[];return t.each(function(l){l!==t&&a.push({source:l.parent,target:l})}),a}function*Ue(){var t=this,a,l=[t],n,s,r;do for(a=l.reverse(),l=[];t=a.pop();)if(yield t,n=t.children)for(s=0,r=n.length;s<r;++s)l.push(n[s]);while(l.length)}function ne(t,a){t instanceof Map?(t=[void 0,t],a===void 0&&(a=Ke)):a===void 0&&(a=Je);for(var l=new Y(t),n,s=[l],r,h,d,f;n=s.pop();)if((h=a(n.data))&&(f=(h=Array.from(h)).length))for(n.children=h,d=f-1;d>=0;--d)s.push(r=h[d]=new Y(h[d])),r.parent=n,r.depth=n.depth+1;return l.eachBefore(et)}function Ze(){return ne(this).eachBefore(Qe)}function Je(t){return t.children}function Ke(t){return Array.isArray(t)?t[1]:null}function Qe(t){t.data.value!==void 0&&(t.value=t.data.value),t.data=t.data.data}function et(t){var a=0;do t.height=a;while((t=t.parent)&&t.height<++a)}function Y(t){this.data=t,this.depth=this.height=0,this.parent=null}Y.prototype=ne.prototype={constructor:Y,count:Pe,each:Be,eachAfter:Ee,eachBefore:We,find:Re,sum:He,sort:Ie,path:Oe,ancestors:Ge,descendants:Xe,leaves:Ye,links:je,copy:Ze,[Symbol.iterator]:Ue};function tt(t){if(typeof t!="function")throw new Error;return t}function q(){return 0}function G(t){return function(){return t}}function at(t){t.x0=Math.round(t.x0),t.y0=Math.round(t.y0),t.x1=Math.round(t.x1),t.y1=Math.round(t.y1)}function oe(t,a,l,n,s){for(var r=t.children,h,d=-1,f=r.length,o=t.value&&(n-a)/t.value;++d<f;)h=r[d],h.y0=l,h.y1=s,h.x0=a,h.x1=a+=h.value*o}Object.create(Y.prototype);function ce(t,a,l,n,s){for(var r=t.children,h,d=-1,f=r.length,o=t.value&&(s-l)/t.value;++d<f;)h=r[d],h.x0=a,h.x1=n,h.y0=l,h.y1=l+=h.value*o}var he=(1+Math.sqrt(5))/2;function de(t,a,l,n,s,r){for(var h=[],d=a.children,f,o,u=0,S=0,i=d.length,v,x,g=a.value,p,b,_,$,z,R,N;u<i;){v=s-l,x=r-n;do p=d[S++].value;while(!p&&S<i);for(b=_=p,R=Math.max(x/v,v/x)/(g*t),N=p*p*R,z=Math.max(_/N,N/b);S<i;++S){if(p+=o=d[S].value,o<b&&(b=o),o>_&&(_=o),N=p*p*R,$=Math.max(_/N,N/b),$>z){p-=o;break}z=$}h.push(f={value:p,dice:v<x,children:d.slice(u,S)}),f.dice?oe(f,l,n,s,g?n+=x*p/g:r):ce(f,l,n,g?l+=v*p/g:s,r),g-=p,u=S}return h}var nt=(function t(a){function l(n,s,r,h,d){de(a,n,s,r,h,d)}return l.ratio=function(n){return t((n=+n)>1?n:1)},l})(he);function lt(){var t=nt,a=!1,l=1,n=1,s=[0],r=q,h=q,d=q,f=q,o=q;function u(i){return i.x0=i.y0=0,i.x1=l,i.y1=n,i.eachBefore(S),s=[0],a&&i.eachBefore(at),i}function S(i){var v=s[i.depth],x=i.x0+v,g=i.y0+v,p=i.x1-v,b=i.y1-v;p<x&&(x=p=(x+p)/2),b<g&&(g=b=(g+b)/2),i.x0=x,i.y0=g,i.x1=p,i.y1=b,i.children&&(v=s[i.depth+1]=r(i)/2,x+=o(i)-v,g+=h(i)-v,p-=d(i)-v,b-=f(i)-v,p<x&&(x=p=(x+p)/2),b<g&&(g=b=(g+b)/2),t(i,x,g,p,b))}return u.round=function(i){return arguments.length?(a=!!i,u):a},u.size=function(i){return arguments.length?(l=+i[0],n=+i[1],u):[l,n]},u.tile=function(i){return arguments.length?(t=tt(i),u):t},u.padding=function(i){return arguments.length?u.paddingInner(i).paddingOuter(i):u.paddingInner()},u.paddingInner=function(i){return arguments.length?(r=typeof i=="function"?i:G(+i),u):r},u.paddingOuter=function(i){return arguments.length?u.paddingTop(i).paddingRight(i).paddingBottom(i).paddingLeft(i):u.paddingTop()},u.paddingTop=function(i){return arguments.length?(h=typeof i=="function"?i:G(+i),u):h},u.paddingRight=function(i){return arguments.length?(d=typeof i=="function"?i:G(+i),u):d},u.paddingBottom=function(i){return arguments.length?(f=typeof i=="function"?i:G(+i),u):f},u.paddingLeft=function(i){return arguments.length?(o=typeof i=="function"?i:G(+i),u):o},u}(function t(a){function l(n,s,r,h,d){if((f=n._squarify)&&f.ratio===a)for(var f,o,u,S,i=-1,v,x=f.length,g=n.value;++i<x;){for(o=f[i],u=o.children,S=o.value=0,v=u.length;S<v;++S)o.value+=u[S].value;o.dice?oe(o,s,r,h,g?r+=(d-r)*o.value/g:d):ce(o,s,r,g?s+=(h-s)*o.value/g:h,d),g-=o.value}else n._squarify=f=de(a,n,s,r,h,d),f.ratio=a}return l.ratio=function(n){return t((n=+n)>1?n:1)},l})(he);var E,ue=(E=class{constructor(){this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.setAccTitle=Le,this.getAccTitle=$e,this.setDiagramTitle=Ae,this.getDiagramTitle=Fe,this.getAccDescription=_e,this.setAccDescription=Ne}getNodes(){return this.nodes}getConfig(){const a=Me,l=ae();return ee({...a.treemap,...l.treemap??{}})}addNode(a,l){this.nodes.push(a),this.levels.set(a,l),l===0&&(this.outerNodes.push(a),this.root??=a)}getRoot(){return{name:"",children:this.outerNodes}}addClass(a,l){const n=this.classes.get(a)??{id:a,styles:[],textStyles:[]},s=l.replace(/\\,/g,"§§§").replace(/,/g,";").replace(/§§§/g,",").split(";");s&&s.forEach(r=>{ke(r)&&(n?.textStyles?n.textStyles.push(r):n.textStyles=[r]),n?.styles?n.styles.push(r):n.styles=[r]}),this.classes.set(a,n)}getClasses(){return this.classes}getStylesForClass(a){return this.classes.get(a)?.styles??[]}clear(){Ve(),this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.root=void 0}},C(E,"TreeMapDB"),E);function pe(t){if(!t.length)return[];const a=[],l=[];return t.forEach(n=>{const s={name:n.name,children:n.type==="Leaf"?void 0:[]};for(s.classSelector=n?.classSelector,n?.cssCompiledStyles&&(s.cssCompiledStyles=n.cssCompiledStyles),n.type==="Leaf"&&n.value!==void 0&&(s.value=n.value);l.length>0&&l[l.length-1].level>=n.level;)l.pop();if(l.length===0)a.push(s);else{const r=l[l.length-1].node;r.children?r.children.push(s):r.children=[s]}n.type!=="Leaf"&&l.push({node:s,level:n.level})}),a}C(pe,"buildHierarchy");var st=C((t,a)=>{be(t,a);const l=[];for(const r of t.TreemapRows??[])r.$type==="ClassDefStatement"&&a.addClass(r.className??"",r.styleText??"");for(const r of t.TreemapRows??[]){const h=r.item;if(!h)continue;const d=r.indent?parseInt(r.indent):0,f=rt(h),o=h.classSelector?a.getStylesForClass(h.classSelector):[],u=o.length>0?o:void 0,S={level:d,name:f,type:h.$type,value:h.value,classSelector:h.classSelector,cssCompiledStyles:u};l.push(S)}const n=pe(l),s=C((r,h)=>{for(const d of r)a.addNode(d,h),d.children&&d.children.length>0&&s(d.children,h+1)},"addNodesRecursively");s(n,0)},"populate"),rt=C(t=>t.name?String(t.name):"","getItemName"),fe={parser:{yy:void 0},parse:C(async t=>{try{const l=await ze("treemap",t);te.debug("Treemap AST:",l);const n=fe.parser?.yy;if(!(n instanceof ue))throw new Error("parser.parser?.yy was not a TreemapDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");st(l,n)}catch(a){throw te.error("Error parsing treemap:",a),a}},"parse")},it=10,W=10,X=25,ot=C((t,a,l,n)=>{const s=n.db,r=s.getConfig(),h=r.padding??it,d=s.getDiagramTitle(),f=s.getRoot(),{themeVariables:o}=ae();if(!f)return;const u=d?30:0,S=we(a),i=r.nodeWidth?r.nodeWidth*W:960,v=r.nodeHeight?r.nodeHeight*W:500,x=i,g=v+u;S.attr("viewBox",`0 0 ${x} ${g}`),Te(S,g,x,r.useMaxWidth);let p;try{const e=r.valueFormat||",";if(e==="$0,0")p=C(c=>"$"+O(",")(c),"valueFormat");else if(e.startsWith("$")&&e.includes(",")){const c=/\.\d+/.exec(e),m=c?c[0]:"";p=C(w=>"$"+O(","+m)(w),"valueFormat")}else if(e.startsWith("$")){const c=e.substring(1);p=C(m=>"$"+O(c||"")(m),"valueFormat")}else p=O(e)}catch(e){te.error("Error creating format function:",e),p=O(",")}const b=Q().range(["transparent",o.cScale0,o.cScale1,o.cScale2,o.cScale3,o.cScale4,o.cScale5,o.cScale6,o.cScale7,o.cScale8,o.cScale9,o.cScale10,o.cScale11]),_=Q().range(["transparent",o.cScalePeer0,o.cScalePeer1,o.cScalePeer2,o.cScalePeer3,o.cScalePeer4,o.cScalePeer5,o.cScalePeer6,o.cScalePeer7,o.cScalePeer8,o.cScalePeer9,o.cScalePeer10,o.cScalePeer11]),$=Q().range([o.cScaleLabel0,o.cScaleLabel1,o.cScaleLabel2,o.cScaleLabel3,o.cScaleLabel4,o.cScaleLabel5,o.cScaleLabel6,o.cScaleLabel7,o.cScaleLabel8,o.cScaleLabel9,o.cScaleLabel10,o.cScaleLabel11]);d&&S.append("text").attr("x",x/2).attr("y",u/2).attr("class","treemapTitle").attr("text-anchor","middle").attr("dominant-baseline","middle").text(d);const z=S.append("g").attr("transform",`translate(0, ${u})`).attr("class","treemapContainer"),R=ne(f).sum(e=>e.value??0).sort((e,c)=>(c.value??0)-(e.value??0)),le=lt().size([i,v]).paddingTop(e=>e.children&&e.children.length>0?X+W:0).paddingInner(h).paddingLeft(e=>e.children&&e.children.length>0?W:0).paddingRight(e=>e.children&&e.children.length>0?W:0).paddingBottom(e=>e.children&&e.children.length>0?W:0).round(!0)(R),me=le.descendants().filter(e=>e.children&&e.children.length>0),H=z.selectAll(".treemapSection").data(me).enter().append("g").attr("class","treemapSection").attr("transform",e=>`translate(${e.x0},${e.y0})`);H.append("rect").attr("width",e=>e.x1-e.x0).attr("height",X).attr("class","treemapSectionHeader").attr("fill","none").attr("fill-opacity",.6).attr("stroke-width",.6).attr("style",e=>e.depth===0?"display: none;":""),H.append("clipPath").attr("id",(e,c)=>`clip-section-${a}-${c}`).append("rect").attr("width",e=>Math.max(0,e.x1-e.x0-12)).attr("height",X),H.append("rect").attr("width",e=>e.x1-e.x0).attr("height",e=>e.y1-e.y0).attr("class",(e,c)=>`treemapSection section${c}`).attr("fill",e=>b(e.data.name)).attr("fill-opacity",.6).attr("stroke",e=>_(e.data.name)).attr("stroke-width",2).attr("stroke-opacity",.4).attr("style",e=>{if(e.depth===0)return"display: none;";const c=B({cssCompiledStyles:e.data.cssCompiledStyles});return c.nodeStyles+";"+c.borderStyles.join(";")}),H.append("text").attr("class","treemapSectionLabel").attr("x",6).attr("y",X/2).attr("dominant-baseline","middle").text(e=>e.depth===0?"":e.data.name).attr("font-weight","bold").attr("clip-path",(e,c)=>`url(#clip-section-${a}-${c})`).attr("style",e=>{if(e.depth===0)return"display: none;";const c="dominant-baseline: middle; font-size: 12px; fill:"+$(e.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",m=B({cssCompiledStyles:e.data.cssCompiledStyles});return c+m.labelStyles.replace("color:","fill:")}).each(function(e){if(e.depth===0)return;const c=Z(this),m=e.data.name;c.text(m);const w=e.x1-e.x0,L=6;let T;r.showValues!==!1&&e.value?T=w-10-30-10-L:T=w-L-6;const y=Math.max(15,T),M=c.node();if(M.getComputedTextLength()>y){let V=m;for(;V.length>0;){if(V=m.substring(0,V.length-1),V.length===0){c.text("..."),M.getComputedTextLength()>y&&c.text("");break}if(c.text(V+"..."),M.getComputedTextLength()<=y)break}}}),r.showValues!==!1&&H.append("text").attr("class","treemapSectionValue").attr("x",e=>e.x1-e.x0-10).attr("y",X/2).attr("text-anchor","end").attr("dominant-baseline","middle").text(e=>e.value?p(e.value):"").attr("font-style","italic").attr("style",e=>{if(e.depth===0)return"display: none;";const c="text-anchor: end; dominant-baseline: middle; font-size: 10px; fill:"+$(e.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",m=B({cssCompiledStyles:e.data.cssCompiledStyles});return c+m.labelStyles.replace("color:","fill:")});const se=le.leaves(),A=se.length>20,ge=A?16:38,j=A?14:28,D=A?4:8,I=A?4:6,J=A?2:4,re=A?8:10,K=A?1:2,U=z.selectAll(".treemapLeafGroup").data(se).enter().append("g").attr("class",(e,c)=>`treemapNode treemapLeafGroup leaf${c}${e.data.classSelector?` ${e.data.classSelector}`:""}x`).attr("transform",e=>`translate(${e.x0},${e.y0})`);U.append("rect").attr("width",e=>e.x1-e.x0).attr("height",e=>e.y1-e.y0).attr("class","treemapLeaf").attr("fill",e=>e.parent?b(e.parent.data.name):b(e.data.name)).attr("style",e=>B({cssCompiledStyles:e.data.cssCompiledStyles}).nodeStyles).attr("fill-opacity",.3).attr("stroke",e=>e.parent?b(e.parent.data.name):b(e.data.name)).attr("stroke-width",3),U.append("clipPath").attr("id",(e,c)=>`clip-${a}-${c}`).append("rect").attr("width",e=>Math.max(0,e.x1-e.x0-4)).attr("height",e=>Math.max(0,e.y1-e.y0-4)),U.append("text").attr("class","treemapLabel").attr("x",e=>(e.x1-e.x0)/2).attr("y",e=>(e.y1-e.y0)/2).attr("style",e=>{const c=`text-anchor: middle; dominant-baseline: middle; font-size: ${ge}px;fill:`+$(e.data.name)+";",m=B({cssCompiledStyles:e.data.cssCompiledStyles});return c+m.labelStyles.replace("color:","fill:")}).attr("clip-path",(e,c)=>`url(#clip-${a}-${c})`).text(e=>e.data.name).each(function(e){const c=Z(this),m=e.x1-e.x0,w=e.y1-e.y0,L=c.node(),T=m-2*J,P=w-2*J;if(T<re||P<re){c.style("display","none");return}let y=parseInt(c.style("font-size"),10);const M=.6;for(;L.getComputedTextLength()>T&&y>D;)y--,c.style("font-size",`${y}px`);let F=Math.max(I,Math.min(j,Math.round(y*M))),k=y+K+F;for(;k>P&&y>D&&(y--,F=Math.max(I,Math.min(j,Math.round(y*M))),!(F<I&&y===D));)c.style("font-size",`${y}px`),k=y+K+F;c.style("font-size",`${y}px`),A?(y<D||P<D)&&c.style("display","none"):(L.getComputedTextLength()>T||y<D||P<y)&&c.style("display","none")}),r.showValues!==!1&&U.append("text").attr("class","treemapValue").attr("x",c=>(c.x1-c.x0)/2).attr("y",function(c){return(c.y1-c.y0)/2}).attr("style",c=>{const m=`text-anchor: middle; dominant-baseline: hanging; font-size: ${j}px;fill:`+$(c.data.name)+";",w=B({cssCompiledStyles:c.data.cssCompiledStyles});return m+w.labelStyles.replace("color:","fill:")}).attr("clip-path",(c,m)=>`url(#clip-${a}-${m})`).text(c=>c.value?p(c.value):"").each(function(c){const m=Z(this),w=this.parentNode;if(!w){m.style("display","none");return}const L=Z(w).select(".treemapLabel");if(L.empty()||L.style("display")==="none"){m.style("display","none");return}const T=parseFloat(L.style("font-size")),y=Math.max(I,Math.min(j,Math.round(T*.6)));m.style("font-size",`${y}px`);const F=(c.y1-c.y0)/2+T/2+K;m.attr("y",F);const k=c.x1-c.x0,ie=c.y1-c.y0-4,ve=k-2*J;m.node().getComputedTextLength()>ve||F+y>ie||y<I?m.style("display","none"):m.style("display",null)});const ye=r.diagramPadding??8;xe(S,ye,"flowchart",r?.useMaxWidth||!1)},"draw"),ct=C(function(t,a){return a.db.getClasses()},"getClasses"),ht={draw:ot,getClasses:ct},dt={sectionStrokeColor:"black",sectionStrokeWidth:"1",sectionFillColor:"#efefef",leafStrokeColor:"black",leafStrokeWidth:"1",leafFillColor:"#efefef",labelFontSize:"12px",valueFontSize:"10px",titleFontSize:"14px"},ut=C(({treemap:t}={})=>{const a=Ce(),l=ae(),n=ee(a,l.themeVariables),s=ee(dt,t),r=s.titleColor??n.titleColor,h=s.labelColor??n.textColor,d=s.valueColor??n.textColor;return`
2
2
  .treemapNode.section {
3
3
  stroke: ${s.sectionStrokeColor};
4
4
  stroke-width: ${s.sectionStrokeWidth};
@@ -1 +1 @@
1
- import{t as O,br as m,a_ as y,bz as R,b as T,bp as C}from"./DXyyWeag.js";import{bs as U,a7 as Y,ay as q,W as s,bn as J,aA as v,be as p,b$ as f,b_ as u,bO as d,a5 as z,bA as L,bS as Q,aD as V,aB as A,c9 as X,aG as Z,bI as tt}from"./DYhIMPy1.js";import{E as P}from"./CX_KiszT.js";import{I as et}from"./CjaOLL1c.js";import"./B0gQeWRk.js";import{f as S}from"./Bfr1QjPr.js";import{F as at,$ as ot,bL as st}from"./BTdkHPOB.js";import"./Cuqq8bL5.js";import{e as nt,b as rt}from"./DJtPzYvk.js";var it=A('<span aria-hidden="true"><!></span>'),lt=A('<div class="flex flex-wrap justify-center gap-2"><!> <!></div>');function ct(g,n){if(new.target)return O({component:ct,...g});U(n,!0);let o=m(n,"view",7),b=m(n,"canMove",7,!1),w=m(n,"waiting",7,!1),h=m(n,"onWait",7),x=m(n,"onMove",7);var E={get view(){return o()},set view(t){o(t),v()},get canMove(){return b()},set canMove(t=!1){b(t),v()},get waiting(){return w()},set waiting(t=!1){w(t),v()},get onWait(){return h()},set onWait(t){h(t),v()},get onMove(){return x()},set onMove(t){x(t),v()},$set:R,$on:(t,k)=>T(n,t,k)},H=Y(),I=q(H);{var B=t=>{P(t,{class:"h-full min-h-0",density:"compact","data-workspace-home-panel-notice":"starting",icon:_=>{var r=it(),e=z(r);et(e,{size:16}),L(r),s(_,r)},title:_=>{p();var r=f();u(e=>d(r,e),[()=>C.workspaceHome_starting_label()]),s(_,r)},$$slots:{icon:!0,title:!0}})},F=t=>{P(t,{class:"h-full",get"data-workspace-home-panel-notice"(){return o().state},icon:e=>{{let a=X(()=>o().state==="moving"?ot:st);at(e,{get icon(){return V(a)},class:"size-5"})}},title:e=>{p();var a=f();u(l=>d(a,l),[()=>rt(o().state==="moving"?"moving":"detached")]),s(e,a)},description:e=>{p();var a=f();u(l=>d(a,l),[()=>nt(o())]),s(e,a)},actions:e=>{var a=lt(),l=z(a);{var D=i=>{S(i,{variant:"outline",size:"sm",get disabled(){return w()},onclick:()=>h()?.(),children:(M,N)=>{p();var c=f();u(W=>d(c,W),[()=>C.workspaceHome_wait_label()]),s(M,c)},$$slots:{default:!0}})};y(l,i=>{o().canWait&&i(D)})}var G=Q(l,2);{var K=i=>{S(i,{variant:"outline",size:"sm",onclick:()=>x()?.(),children:(M,N)=>{p();var c=f();u(W=>d(c,W),[()=>C.workspaceHome_move_label()]),s(M,c)},$$slots:{default:!0}})};y(G,i=>{b()&&i(K)})}L(a),s(e,a)},$$slots:{icon:!0,title:!0,description:!0,actions:!0}})};y(I,t=>{o().starting?t(B):t(F,-1)})}return s(g,H),J(E)}const $=Symbol("workspace-home-panel");function wt(g){tt($,g)}function ht(){return Z($)}export{ct as W,ht as g,wt as s};
1
+ import{t as O,br as m,a_ as y,bz as R,b as T,bp as C}from"./DXyyWeag.js";import{bs as U,a7 as Y,ay as q,W as s,bn as J,aA as v,be as p,b$ as f,b_ as u,bO as d,a5 as z,bA as L,bS as Q,aD as V,aB as A,c9 as X,aG as Z,bI as tt}from"./DYhIMPy1.js";import{E as P}from"./CX_KiszT.js";import{I as et}from"./CjaOLL1c.js";import"./B0gQeWRk.js";import{f as S}from"./Bfr1QjPr.js";import{F as at,$ as ot,bL as st}from"./BTdkHPOB.js";import"./Cuqq8bL5.js";import{e as nt,b as rt}from"./BNWVLlL9.js";var it=A('<span aria-hidden="true"><!></span>'),lt=A('<div class="flex flex-wrap justify-center gap-2"><!> <!></div>');function ct(g,n){if(new.target)return O({component:ct,...g});U(n,!0);let o=m(n,"view",7),b=m(n,"canMove",7,!1),w=m(n,"waiting",7,!1),h=m(n,"onWait",7),x=m(n,"onMove",7);var E={get view(){return o()},set view(t){o(t),v()},get canMove(){return b()},set canMove(t=!1){b(t),v()},get waiting(){return w()},set waiting(t=!1){w(t),v()},get onWait(){return h()},set onWait(t){h(t),v()},get onMove(){return x()},set onMove(t){x(t),v()},$set:R,$on:(t,k)=>T(n,t,k)},H=Y(),I=q(H);{var B=t=>{P(t,{class:"h-full min-h-0",density:"compact","data-workspace-home-panel-notice":"starting",icon:_=>{var r=it(),e=z(r);et(e,{size:16}),L(r),s(_,r)},title:_=>{p();var r=f();u(e=>d(r,e),[()=>C.workspaceHome_starting_label()]),s(_,r)},$$slots:{icon:!0,title:!0}})},F=t=>{P(t,{class:"h-full",get"data-workspace-home-panel-notice"(){return o().state},icon:e=>{{let a=X(()=>o().state==="moving"?ot:st);at(e,{get icon(){return V(a)},class:"size-5"})}},title:e=>{p();var a=f();u(l=>d(a,l),[()=>rt(o().state==="moving"?"moving":"detached")]),s(e,a)},description:e=>{p();var a=f();u(l=>d(a,l),[()=>nt(o())]),s(e,a)},actions:e=>{var a=lt(),l=z(a);{var D=i=>{S(i,{variant:"outline",size:"sm",get disabled(){return w()},onclick:()=>h()?.(),children:(M,N)=>{p();var c=f();u(W=>d(c,W),[()=>C.workspaceHome_wait_label()]),s(M,c)},$$slots:{default:!0}})};y(l,i=>{o().canWait&&i(D)})}var G=Q(l,2);{var K=i=>{S(i,{variant:"outline",size:"sm",onclick:()=>x()?.(),children:(M,N)=>{p();var c=f();u(W=>d(c,W),[()=>C.workspaceHome_move_label()]),s(M,c)},$$slots:{default:!0}})};y(G,i=>{b()&&i(K)})}L(a),s(e,a)},$$slots:{icon:!0,title:!0,description:!0,actions:!0}})};y(I,t=>{o().starting?t(B):t(F,-1)})}return s(g,H),J(E)}const $=Symbol("workspace-home-panel");function wt(g){tt($,g)}function ht(){return Z($)}export{ct as W,ht as g,wt as s};
@@ -1,4 +1,4 @@
1
- import{g as Ni}from"./DXtdosGC.js";import{s as Ci}from"./DZx5PyYP.js";import{U as Zs,aZ as jt,V as Qs,a_ as Gt,Y as bi,b0 as vi,b as h,aU as je,ay as _i,X as en,a1 as xi,aP as Mi,bh as wi,aV as Ui,r as Pi,O as Di,am as Fi,W as Bi,ab as $i,aG as ji,aA as Gi,aW as Wi}from"./Bsu5oWdj.js";function Wt(s){console&&console.error&&console.error(`Error: ${s}`)}function tn(s){console&&console.warn&&console.warn(`Warning: ${s}`)}function sn(s){const e=new Date().getTime(),t=s();return{time:new Date().getTime()-e,value:t}}function nn(s){function e(){}e.prototype=s;const t=new e;function n(){return typeof t.bar}return n(),n(),s}function Ki(s){return Vi(s)?s.LABEL:s.name}function Vi(s){return typeof s.LABEL=="string"&&s.LABEL!==""}class te{get definition(){return this._definition}set definition(e){this._definition=e}constructor(e){this._definition=e}accept(e){e.visit(this),this.definition.forEach(t=>{t.accept(e)})}}class K extends te{constructor(e){super([]),this.idx=1,Object.assign(this,ie(e))}set definition(e){}get definition(){return this.referencedRule!==void 0?this.referencedRule.definition:[]}accept(e){e.visit(this)}}class _e extends te{constructor(e){super(e.definition),this.orgText="",Object.assign(this,ie(e))}}class W extends te{constructor(e){super(e.definition),this.ignoreAmbiguities=!1,Object.assign(this,ie(e))}}class G extends te{constructor(e){super(e.definition),this.idx=1,Object.assign(this,ie(e))}}class se extends te{constructor(e){super(e.definition),this.idx=1,Object.assign(this,ie(e))}}class ne extends te{constructor(e){super(e.definition),this.idx=1,Object.assign(this,ie(e))}}class M extends te{constructor(e){super(e.definition),this.idx=1,Object.assign(this,ie(e))}}class q extends te{constructor(e){super(e.definition),this.idx=1,Object.assign(this,ie(e))}}class Z extends te{get definition(){return this._definition}set definition(e){this._definition=e}constructor(e){super(e.definition),this.idx=1,this.ignoreAmbiguities=!1,this.hasPredicates=!1,Object.assign(this,ie(e))}}class k{constructor(e){this.idx=1,Object.assign(this,ie(e))}accept(e){e.visit(this)}}function zi(s){return s.map(at)}function at(s){function e(t){return t.map(at)}if(s instanceof K){const t={type:"NonTerminal",name:s.nonTerminalName,idx:s.idx};return typeof s.label=="string"&&(t.label=s.label),t}else{if(s instanceof W)return{type:"Alternative",definition:e(s.definition)};if(s instanceof G)return{type:"Option",idx:s.idx,definition:e(s.definition)};if(s instanceof se)return{type:"RepetitionMandatory",idx:s.idx,definition:e(s.definition)};if(s instanceof ne)return{type:"RepetitionMandatoryWithSeparator",idx:s.idx,separator:at(new k({terminalType:s.separator})),definition:e(s.definition)};if(s instanceof q)return{type:"RepetitionWithSeparator",idx:s.idx,separator:at(new k({terminalType:s.separator})),definition:e(s.definition)};if(s instanceof M)return{type:"Repetition",idx:s.idx,definition:e(s.definition)};if(s instanceof Z)return{type:"Alternation",idx:s.idx,definition:e(s.definition)};if(s instanceof k){const t={type:"Terminal",name:s.terminalType.name,label:Ki(s.terminalType),idx:s.idx};typeof s.label=="string"&&(t.terminalLabel=s.label);const n=s.terminalType.PATTERN;return s.terminalType.PATTERN&&(t.pattern=n instanceof RegExp?n.source:n),t}else{if(s instanceof _e)return{type:"Rule",name:s.name,orgText:s.orgText,definition:e(s.definition)};throw Error("non exhaustive match")}}}function ie(s){return Object.fromEntries(Object.entries(s).filter(([,e])=>e!==void 0))}class xe{visit(e){const t=e;switch(t.constructor){case K:return this.visitNonTerminal(t);case W:return this.visitAlternative(t);case G:return this.visitOption(t);case se:return this.visitRepetitionMandatory(t);case ne:return this.visitRepetitionMandatoryWithSeparator(t);case q:return this.visitRepetitionWithSeparator(t);case M:return this.visitRepetition(t);case Z:return this.visitAlternation(t);case k:return this.visitTerminal(t);case _e:return this.visitRule(t);default:throw Error("non exhaustive match")}}visitNonTerminal(e){}visitAlternative(e){}visitOption(e){}visitRepetition(e){}visitRepetitionMandatory(e){}visitRepetitionMandatoryWithSeparator(e){}visitRepetitionWithSeparator(e){}visitAlternation(e){}visitTerminal(e){}visitRule(e){}}function Hi(s){return s instanceof W||s instanceof G||s instanceof M||s instanceof se||s instanceof ne||s instanceof q||s instanceof k||s instanceof _e}function Tt(s,e=[]){return s instanceof G||s instanceof M||s instanceof q?!0:s instanceof Z?s.definition.some(n=>Tt(n,e)):s instanceof K&&e.includes(s)?!1:s instanceof te?(s instanceof K&&e.push(s),s.definition.every(n=>Tt(n,e))):!1}function Xi(s){return s instanceof Z}function ee(s){if(s instanceof K)return"SUBRULE";if(s instanceof G)return"OPTION";if(s instanceof Z)return"OR";if(s instanceof se)return"AT_LEAST_ONE";if(s instanceof ne)return"AT_LEAST_ONE_SEP";if(s instanceof q)return"MANY_SEP";if(s instanceof M)return"MANY";if(s instanceof k)return"CONSUME";throw Error("non exhaustive match")}class kt{walk(e,t=[]){e.definition.forEach((n,i)=>{const a=e.definition.slice(i+1);if(n instanceof K)this.walkProdRef(n,a,t);else if(n instanceof k)this.walkTerminal(n,a,t);else if(n instanceof W)this.walkFlat(n,a,t);else if(n instanceof G)this.walkOption(n,a,t);else if(n instanceof se)this.walkAtLeastOne(n,a,t);else if(n instanceof ne)this.walkAtLeastOneSep(n,a,t);else if(n instanceof q)this.walkManySep(n,a,t);else if(n instanceof M)this.walkMany(n,a,t);else if(n instanceof Z)this.walkOr(n,a,t);else throw Error("non exhaustive match")})}walkTerminal(e,t,n){}walkProdRef(e,t,n){}walkFlat(e,t,n){const i=t.concat(n);this.walk(e,i)}walkOption(e,t,n){const i=t.concat(n);this.walk(e,i)}walkAtLeastOne(e,t,n){const i=[new G({definition:e.definition})].concat(t,n);this.walk(e,i)}walkAtLeastOneSep(e,t,n){const i=ys(e,t,n);this.walk(e,i)}walkMany(e,t,n){const i=[new G({definition:e.definition})].concat(t,n);this.walk(e,i)}walkManySep(e,t,n){const i=ys(e,t,n);this.walk(e,i)}walkOr(e,t,n){const i=t.concat(n);e.definition.forEach(a=>{const r=new W({definition:[a]});this.walk(r,i)})}}function ys(s,e,t){return[new G({definition:[new k({terminalType:s.separator})].concat(s.definition)})].concat(e,t)}function Je(s){if(s instanceof K)return Je(s.referencedRule);if(s instanceof k)return qi(s);if(Hi(s))return Yi(s);if(Xi(s))return Ji(s);throw Error("non exhaustive match")}function Yi(s){let e=[];const t=s.definition;let n=0,i=t.length>n,a,r=!0;for(;i&&r;)a=t[n],r=Tt(a),e=e.concat(Je(a)),n=n+1,i=t.length>n;return[...new Set(e)]}function Ji(s){const e=s.definition.map(t=>Je(t));return[...new Set(e.flat())]}function qi(s){return[s.terminalType]}const an="_~IN~_";class Zi extends kt{constructor(e){super(),this.topProd=e,this.follows={}}startWalking(){return this.walk(this.topProd),this.follows}walkTerminal(e,t,n){}walkProdRef(e,t,n){const i=ea(e.referencedRule,e.idx)+this.topProd.name,a=t.concat(n),r=new W({definition:a}),l=Je(r);this.follows[i]=l}}function Qi(s){const e={};return s.forEach(t=>{const n=new Zi(t).startWalking();Object.assign(e,n)}),e}function ea(s,e){return s.name+e+an}function S(s){return s.charCodeAt(0)}function Pt(s,e){Array.isArray(s)?s.forEach(function(t){e.push(t)}):e.push(s)}function Fe(s,e){if(s[e]===!0)throw"duplicate flag "+e;s[e],s[e]=!0}function Se(s){if(s===void 0)throw Error("Internal Error - Should never get here!");return!0}function ta(){throw Error("Internal Error - Should never get here!")}function Rs(s){return s.type==="Character"}const gt=[];for(let s=S("0");s<=S("9");s++)gt.push(s);const At=[S("_")].concat(gt);for(let s=S("a");s<=S("z");s++)At.push(s);for(let s=S("A");s<=S("Z");s++)At.push(s);const Os=[S(" "),S("\f"),S(`
1
+ import{g as Ni}from"./B_D1XvND.js";import{s as Ci}from"./cdv6-ttx.js";import{U as Zs,aZ as jt,V as Qs,a_ as Gt,Y as bi,b0 as vi,b as h,aU as je,ay as _i,X as en,a1 as xi,aP as Mi,bh as wi,aV as Ui,r as Pi,O as Di,am as Fi,W as Bi,ab as $i,aG as ji,aA as Gi,aW as Wi}from"./DyYampZL.js";function Wt(s){console&&console.error&&console.error(`Error: ${s}`)}function tn(s){console&&console.warn&&console.warn(`Warning: ${s}`)}function sn(s){const e=new Date().getTime(),t=s();return{time:new Date().getTime()-e,value:t}}function nn(s){function e(){}e.prototype=s;const t=new e;function n(){return typeof t.bar}return n(),n(),s}function Ki(s){return Vi(s)?s.LABEL:s.name}function Vi(s){return typeof s.LABEL=="string"&&s.LABEL!==""}class te{get definition(){return this._definition}set definition(e){this._definition=e}constructor(e){this._definition=e}accept(e){e.visit(this),this.definition.forEach(t=>{t.accept(e)})}}class K extends te{constructor(e){super([]),this.idx=1,Object.assign(this,ie(e))}set definition(e){}get definition(){return this.referencedRule!==void 0?this.referencedRule.definition:[]}accept(e){e.visit(this)}}class _e extends te{constructor(e){super(e.definition),this.orgText="",Object.assign(this,ie(e))}}class W extends te{constructor(e){super(e.definition),this.ignoreAmbiguities=!1,Object.assign(this,ie(e))}}class G extends te{constructor(e){super(e.definition),this.idx=1,Object.assign(this,ie(e))}}class se extends te{constructor(e){super(e.definition),this.idx=1,Object.assign(this,ie(e))}}class ne extends te{constructor(e){super(e.definition),this.idx=1,Object.assign(this,ie(e))}}class M extends te{constructor(e){super(e.definition),this.idx=1,Object.assign(this,ie(e))}}class q extends te{constructor(e){super(e.definition),this.idx=1,Object.assign(this,ie(e))}}class Z extends te{get definition(){return this._definition}set definition(e){this._definition=e}constructor(e){super(e.definition),this.idx=1,this.ignoreAmbiguities=!1,this.hasPredicates=!1,Object.assign(this,ie(e))}}class k{constructor(e){this.idx=1,Object.assign(this,ie(e))}accept(e){e.visit(this)}}function zi(s){return s.map(at)}function at(s){function e(t){return t.map(at)}if(s instanceof K){const t={type:"NonTerminal",name:s.nonTerminalName,idx:s.idx};return typeof s.label=="string"&&(t.label=s.label),t}else{if(s instanceof W)return{type:"Alternative",definition:e(s.definition)};if(s instanceof G)return{type:"Option",idx:s.idx,definition:e(s.definition)};if(s instanceof se)return{type:"RepetitionMandatory",idx:s.idx,definition:e(s.definition)};if(s instanceof ne)return{type:"RepetitionMandatoryWithSeparator",idx:s.idx,separator:at(new k({terminalType:s.separator})),definition:e(s.definition)};if(s instanceof q)return{type:"RepetitionWithSeparator",idx:s.idx,separator:at(new k({terminalType:s.separator})),definition:e(s.definition)};if(s instanceof M)return{type:"Repetition",idx:s.idx,definition:e(s.definition)};if(s instanceof Z)return{type:"Alternation",idx:s.idx,definition:e(s.definition)};if(s instanceof k){const t={type:"Terminal",name:s.terminalType.name,label:Ki(s.terminalType),idx:s.idx};typeof s.label=="string"&&(t.terminalLabel=s.label);const n=s.terminalType.PATTERN;return s.terminalType.PATTERN&&(t.pattern=n instanceof RegExp?n.source:n),t}else{if(s instanceof _e)return{type:"Rule",name:s.name,orgText:s.orgText,definition:e(s.definition)};throw Error("non exhaustive match")}}}function ie(s){return Object.fromEntries(Object.entries(s).filter(([,e])=>e!==void 0))}class xe{visit(e){const t=e;switch(t.constructor){case K:return this.visitNonTerminal(t);case W:return this.visitAlternative(t);case G:return this.visitOption(t);case se:return this.visitRepetitionMandatory(t);case ne:return this.visitRepetitionMandatoryWithSeparator(t);case q:return this.visitRepetitionWithSeparator(t);case M:return this.visitRepetition(t);case Z:return this.visitAlternation(t);case k:return this.visitTerminal(t);case _e:return this.visitRule(t);default:throw Error("non exhaustive match")}}visitNonTerminal(e){}visitAlternative(e){}visitOption(e){}visitRepetition(e){}visitRepetitionMandatory(e){}visitRepetitionMandatoryWithSeparator(e){}visitRepetitionWithSeparator(e){}visitAlternation(e){}visitTerminal(e){}visitRule(e){}}function Hi(s){return s instanceof W||s instanceof G||s instanceof M||s instanceof se||s instanceof ne||s instanceof q||s instanceof k||s instanceof _e}function Tt(s,e=[]){return s instanceof G||s instanceof M||s instanceof q?!0:s instanceof Z?s.definition.some(n=>Tt(n,e)):s instanceof K&&e.includes(s)?!1:s instanceof te?(s instanceof K&&e.push(s),s.definition.every(n=>Tt(n,e))):!1}function Xi(s){return s instanceof Z}function ee(s){if(s instanceof K)return"SUBRULE";if(s instanceof G)return"OPTION";if(s instanceof Z)return"OR";if(s instanceof se)return"AT_LEAST_ONE";if(s instanceof ne)return"AT_LEAST_ONE_SEP";if(s instanceof q)return"MANY_SEP";if(s instanceof M)return"MANY";if(s instanceof k)return"CONSUME";throw Error("non exhaustive match")}class kt{walk(e,t=[]){e.definition.forEach((n,i)=>{const a=e.definition.slice(i+1);if(n instanceof K)this.walkProdRef(n,a,t);else if(n instanceof k)this.walkTerminal(n,a,t);else if(n instanceof W)this.walkFlat(n,a,t);else if(n instanceof G)this.walkOption(n,a,t);else if(n instanceof se)this.walkAtLeastOne(n,a,t);else if(n instanceof ne)this.walkAtLeastOneSep(n,a,t);else if(n instanceof q)this.walkManySep(n,a,t);else if(n instanceof M)this.walkMany(n,a,t);else if(n instanceof Z)this.walkOr(n,a,t);else throw Error("non exhaustive match")})}walkTerminal(e,t,n){}walkProdRef(e,t,n){}walkFlat(e,t,n){const i=t.concat(n);this.walk(e,i)}walkOption(e,t,n){const i=t.concat(n);this.walk(e,i)}walkAtLeastOne(e,t,n){const i=[new G({definition:e.definition})].concat(t,n);this.walk(e,i)}walkAtLeastOneSep(e,t,n){const i=ys(e,t,n);this.walk(e,i)}walkMany(e,t,n){const i=[new G({definition:e.definition})].concat(t,n);this.walk(e,i)}walkManySep(e,t,n){const i=ys(e,t,n);this.walk(e,i)}walkOr(e,t,n){const i=t.concat(n);e.definition.forEach(a=>{const r=new W({definition:[a]});this.walk(r,i)})}}function ys(s,e,t){return[new G({definition:[new k({terminalType:s.separator})].concat(s.definition)})].concat(e,t)}function Je(s){if(s instanceof K)return Je(s.referencedRule);if(s instanceof k)return qi(s);if(Hi(s))return Yi(s);if(Xi(s))return Ji(s);throw Error("non exhaustive match")}function Yi(s){let e=[];const t=s.definition;let n=0,i=t.length>n,a,r=!0;for(;i&&r;)a=t[n],r=Tt(a),e=e.concat(Je(a)),n=n+1,i=t.length>n;return[...new Set(e)]}function Ji(s){const e=s.definition.map(t=>Je(t));return[...new Set(e.flat())]}function qi(s){return[s.terminalType]}const an="_~IN~_";class Zi extends kt{constructor(e){super(),this.topProd=e,this.follows={}}startWalking(){return this.walk(this.topProd),this.follows}walkTerminal(e,t,n){}walkProdRef(e,t,n){const i=ea(e.referencedRule,e.idx)+this.topProd.name,a=t.concat(n),r=new W({definition:a}),l=Je(r);this.follows[i]=l}}function Qi(s){const e={};return s.forEach(t=>{const n=new Zi(t).startWalking();Object.assign(e,n)}),e}function ea(s,e){return s.name+e+an}function S(s){return s.charCodeAt(0)}function Pt(s,e){Array.isArray(s)?s.forEach(function(t){e.push(t)}):e.push(s)}function Fe(s,e){if(s[e]===!0)throw"duplicate flag "+e;s[e],s[e]=!0}function Se(s){if(s===void 0)throw Error("Internal Error - Should never get here!");return!0}function ta(){throw Error("Internal Error - Should never get here!")}function Rs(s){return s.type==="Character"}const gt=[];for(let s=S("0");s<=S("9");s++)gt.push(s);const At=[S("_")].concat(gt);for(let s=S("a");s<=S("z");s++)At.push(s);for(let s=S("A");s<=S("Z");s++)At.push(s);const Os=[S(" "),S("\f"),S(`
2
2
  `),S("\r"),S(" "),S("\v"),S(" "),S(" "),S(" "),S(" "),S(" "),S(" "),S(" "),S(" "),S(" "),S(" "),S(" "),S(" "),S(" "),S(" "),S("\u2028"),S("\u2029"),S(" "),S(" "),S(" "),S("\uFEFF")],sa=/[0-9a-fA-F]/,tt=/[0-9]/,na=/[1-9]/;class ia{constructor(){this.idx=0,this.input="",this.groupIdx=0}saveState(){return{idx:this.idx,input:this.input,groupIdx:this.groupIdx}}restoreState(e){this.idx=e.idx,this.input=e.input,this.groupIdx=e.groupIdx}pattern(e){this.idx=0,this.input=e,this.groupIdx=0,this.consumeChar("/");const t=this.disjunction();this.consumeChar("/");const n={type:"Flags",loc:{begin:this.idx,end:e.length},global:!1,ignoreCase:!1,multiLine:!1,unicode:!1,sticky:!1};for(;this.isRegExpFlag();)switch(this.popChar()){case"g":Fe(n,"global");break;case"i":Fe(n,"ignoreCase");break;case"m":Fe(n,"multiLine");break;case"u":Fe(n,"unicode");break;case"y":Fe(n,"sticky");break}if(this.idx!==this.input.length)throw Error("Redundant input: "+this.input.substring(this.idx));return{type:"Pattern",flags:n,value:t,loc:this.loc(0)}}disjunction(){const e=[],t=this.idx;for(e.push(this.alternative());this.peekChar()==="|";)this.consumeChar("|"),e.push(this.alternative());return{type:"Disjunction",value:e,loc:this.loc(t)}}alternative(){const e=[],t=this.idx;for(;this.isTerm();)e.push(this.term());return{type:"Alternative",value:e,loc:this.loc(t)}}term(){return this.isAssertion()?this.assertion():this.atom()}assertion(){const e=this.idx;switch(this.popChar()){case"^":return{type:"StartAnchor",loc:this.loc(e)};case"$":return{type:"EndAnchor",loc:this.loc(e)};case"\\":switch(this.popChar()){case"b":return{type:"WordBoundary",loc:this.loc(e)};case"B":return{type:"NonWordBoundary",loc:this.loc(e)}}throw Error("Invalid Assertion Escape");case"(":this.consumeChar("?");let t;switch(this.popChar()){case"=":t="Lookahead";break;case"!":t="NegativeLookahead";break;case"<":{switch(this.popChar()){case"=":t="Lookbehind";break;case"!":t="NegativeLookbehind"}break}}Se(t);const n=this.disjunction();return this.consumeChar(")"),{type:t,value:n,loc:this.loc(e)}}return ta()}quantifier(e=!1){let t;const n=this.idx;switch(this.popChar()){case"*":t={atLeast:0,atMost:1/0};break;case"+":t={atLeast:1,atMost:1/0};break;case"?":t={atLeast:0,atMost:1};break;case"{":const i=this.integerIncludingZero();switch(this.popChar()){case"}":t={atLeast:i,atMost:i};break;case",":let a;this.isDigit()?(a=this.integerIncludingZero(),t={atLeast:i,atMost:a}):t={atLeast:i,atMost:1/0},this.consumeChar("}");break}if(e===!0&&t===void 0)return;Se(t);break}if(!(e===!0&&t===void 0)&&Se(t))return this.peekChar(0)==="?"?(this.consumeChar("?"),t.greedy=!1):t.greedy=!0,t.type="Quantifier",t.loc=this.loc(n),t}atom(){let e;const t=this.idx;switch(this.peekChar()){case".":e=this.dotAll();break;case"\\":e=this.atomEscape();break;case"[":e=this.characterClass();break;case"(":e=this.group();break}if(e===void 0&&this.isPatternCharacter()&&(e=this.patternCharacter()),Se(e))return e.loc=this.loc(t),this.isQuantifier()&&(e.quantifier=this.quantifier()),e}dotAll(){return this.consumeChar("."),{type:"Set",complement:!0,value:[S(`
3
3
  `),S("\r"),S("\u2028"),S("\u2029")]}}atomEscape(){switch(this.consumeChar("\\"),this.peekChar()){case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":return this.decimalEscapeAtom();case"d":case"D":case"s":case"S":case"w":case"W":return this.characterClassEscape();case"f":case"n":case"r":case"t":case"v":return this.controlEscapeAtom();case"c":return this.controlLetterEscapeAtom();case"0":return this.nulCharacterAtom();case"x":return this.hexEscapeSequenceAtom();case"u":return this.regExpUnicodeEscapeSequenceAtom();default:return this.identityEscapeAtom()}}decimalEscapeAtom(){return{type:"GroupBackReference",value:this.positiveInteger()}}characterClassEscape(){let e,t=!1;switch(this.popChar()){case"d":e=gt;break;case"D":e=gt,t=!0;break;case"s":e=Os;break;case"S":e=Os,t=!0;break;case"w":e=At;break;case"W":e=At,t=!0;break}if(Se(e))return{type:"Set",value:e,complement:t}}controlEscapeAtom(){let e;switch(this.popChar()){case"f":e=S("\f");break;case"n":e=S(`
4
4
  `);break;case"r":e=S("\r");break;case"t":e=S(" ");break;case"v":e=S("\v");break}if(Se(e))return{type:"Character",value:e}}controlLetterEscapeAtom(){this.consumeChar("c");const e=this.popChar();if(/[a-zA-Z]/.test(e)===!1)throw Error("Invalid ");return{type:"Character",value:e.toUpperCase().charCodeAt(0)-64}}nulCharacterAtom(){return this.consumeChar("0"),{type:"Character",value:S("\0")}}hexEscapeSequenceAtom(){return this.consumeChar("x"),this.parseHexDigits(2)}regExpUnicodeEscapeSequenceAtom(){return this.consumeChar("u"),this.parseHexDigits(4)}identityEscapeAtom(){const e=this.popChar();return{type:"Character",value:S(e)}}classPatternCharacterAtom(){switch(this.peekChar()){case`
@@ -1,4 +1,4 @@
1
- import{g as st}from"./SgKRyWMJ.js";import{g as it}from"./DXtdosGC.js";import{s as at}from"./DZx5PyYP.js";import{b as f,ay as we,X as F,a1 as rt,aP as nt,bh as Ve,aW as fe,a_ as lt,V as ut,aZ as ot,U as ct,b0 as ht,Y as dt,z as I,r as pt,$ as At,am as ft,aU as gt,ab as mt,x as Ct,aV as bt,aI as U}from"./Bsu5oWdj.js";import{c as kt}from"./C451wdH8.js";import{aP as Et}from"./z1z8GC2-.js";var Pe=(function(){var t=f(function(O,c,d,p){for(d=d||{},p=O.length;p--;d[O[p]]=c);return d},"o"),i=[1,18],a=[1,19],r=[1,20],n=[1,41],u=[1,26],h=[1,42],o=[1,24],g=[1,25],m=[1,32],_=[1,33],Y=[1,34],b=[1,45],me=[1,35],Ce=[1,36],be=[1,37],ke=[1,38],Ee=[1,27],Te=[1,28],ye=[1,29],De=[1,30],Fe=[1,31],k=[1,44],E=[1,46],T=[1,43],y=[1,47],Be=[1,9],A=[1,8,9],te=[1,58],se=[1,59],ie=[1,60],ae=[1,61],re=[1,62],_e=[1,63],Se=[1,64],S=[1,8,9,41],Me=[1,77],R=[1,8,9,12,13,22,39,41,44,46,68,69,70,71,72,73,74,79,81],ne=[1,8,9,12,13,18,20,22,39,41,44,46,47,60,68,69,70,71,72,73,74,79,81,86,100,102,103],le=[13,60,86,100,102,103],K=[13,60,73,74,86,100,102,103],Re=[13,60,68,69,70,71,72,86,100,102,103],ue=[1,103],W=[1,121],Q=[1,117],X=[1,113],j=[1,119],H=[1,114],q=[1,115],J=[1,116],Z=[1,118],$=[1,120],Ge=[22,50,60,61,82,86,87,88,89,90],Ue=[1,128],oe=[12,39],Ne=[1,8,9,39,41,44,46],ce=[1,8,9,22],ze=[1,153],Ye=[1,8,9,61],x=[1,8,9,22,50,60,61,82,86,87,88,89,90],Le={trace:f(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statements:5,graphConfig:6,CLASS_DIAGRAM:7,NEWLINE:8,EOF:9,statement:10,classLabel:11,SQS:12,STR:13,SQE:14,namespaceName:15,alphaNumToken:16,classLiteralName:17,DOT:18,className:19,GENERICTYPE:20,relationStatement:21,LABEL:22,namespaceStatement:23,classStatement:24,memberStatement:25,annotationStatement:26,clickStatement:27,styleStatement:28,cssClassStatement:29,noteStatement:30,classDefStatement:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,namespaceIdentifier:38,STRUCT_START:39,classStatements:40,STRUCT_STOP:41,NAMESPACE:42,classIdentifier:43,STYLE_SEPARATOR:44,members:45,ANNOTATION_START:46,ANNOTATION_END:47,CLASS:48,emptyBody:49,SPACE:50,MEMBER:51,SEPARATOR:52,relation:53,NOTE_FOR:54,noteText:55,NOTE:56,CLASSDEF:57,classList:58,stylesOpt:59,ALPHA:60,COMMA:61,direction_tb:62,direction_bt:63,direction_rl:64,direction_lr:65,relationType:66,lineType:67,AGGREGATION:68,EXTENSION:69,COMPOSITION:70,DEPENDENCY:71,LOLLIPOP:72,LINE:73,DOTTED_LINE:74,CALLBACK:75,LINK:76,LINK_TARGET:77,CLICK:78,CALLBACK_NAME:79,CALLBACK_ARGS:80,HREF:81,STYLE:82,CSSCLASS:83,style:84,styleComponent:85,NUM:86,COLON:87,UNIT:88,BRKT:89,PCT:90,commentToken:91,textToken:92,graphCodeTokens:93,textNoTagsToken:94,TAGSTART:95,TAGEND:96,"==":97,"--":98,DEFAULT:99,MINUS:100,keywords:101,UNICODE_TEXT:102,BQUOTE_STR:103,$accept:0,$end:1},terminals_:{2:"error",7:"CLASS_DIAGRAM",8:"NEWLINE",9:"EOF",12:"SQS",13:"STR",14:"SQE",18:"DOT",20:"GENERICTYPE",22:"LABEL",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",39:"STRUCT_START",41:"STRUCT_STOP",42:"NAMESPACE",44:"STYLE_SEPARATOR",46:"ANNOTATION_START",47:"ANNOTATION_END",48:"CLASS",50:"SPACE",51:"MEMBER",52:"SEPARATOR",54:"NOTE_FOR",56:"NOTE",57:"CLASSDEF",60:"ALPHA",61:"COMMA",62:"direction_tb",63:"direction_bt",64:"direction_rl",65:"direction_lr",68:"AGGREGATION",69:"EXTENSION",70:"COMPOSITION",71:"DEPENDENCY",72:"LOLLIPOP",73:"LINE",74:"DOTTED_LINE",75:"CALLBACK",76:"LINK",77:"LINK_TARGET",78:"CLICK",79:"CALLBACK_NAME",80:"CALLBACK_ARGS",81:"HREF",82:"STYLE",83:"CSSCLASS",86:"NUM",87:"COLON",88:"UNIT",89:"BRKT",90:"PCT",93:"graphCodeTokens",95:"TAGSTART",96:"TAGEND",97:"==",98:"--",99:"DEFAULT",100:"MINUS",101:"keywords",102:"UNICODE_TEXT",103:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,1],[15,3],[15,2],[19,1],[19,3],[19,1],[19,2],[19,2],[19,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[23,4],[23,5],[38,2],[38,3],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[24,1],[24,3],[24,4],[24,3],[24,6],[24,4],[24,7],[24,6],[43,2],[43,3],[49,0],[49,2],[49,2],[26,4],[45,1],[45,2],[25,1],[25,2],[25,1],[25,1],[21,3],[21,4],[21,4],[21,5],[30,3],[30,2],[31,3],[58,1],[58,3],[32,1],[32,1],[32,1],[32,1],[53,3],[53,2],[53,2],[53,1],[66,1],[66,1],[66,1],[66,1],[66,1],[67,1],[67,1],[27,3],[27,4],[27,3],[27,4],[27,4],[27,5],[27,3],[27,4],[27,4],[27,5],[27,4],[27,5],[27,5],[27,6],[28,3],[29,3],[59,1],[59,3],[84,1],[84,2],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[91,1],[91,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[94,1],[94,1],[94,1],[94,1],[16,1],[16,1],[16,1],[16,1],[17,1],[55,1]],performAction:f(function(c,d,p,l,C,e,ee){var s=e.length-1;switch(C){case 8:this.$=e[s-1];break;case 9:case 10:case 13:case 15:this.$=e[s];break;case 11:case 14:this.$=e[s-2]+"."+e[s];break;case 12:case 16:this.$=e[s-1]+e[s];break;case 17:case 18:this.$=e[s-1]+"~"+e[s]+"~";break;case 19:l.addRelation(e[s]);break;case 20:e[s-1].title=l.cleanupLabel(e[s]),l.addRelation(e[s-1]);break;case 31:this.$=e[s].trim(),l.setAccTitle(this.$);break;case 32:case 33:this.$=e[s].trim(),l.setAccDescription(this.$);break;case 34:l.addClassesToNamespace(e[s-3],e[s-1][0],e[s-1][1]),l.popNamespace();break;case 35:l.addClassesToNamespace(e[s-4],e[s-1][0],e[s-1][1]),l.popNamespace();break;case 36:this.$=l.addNamespace(e[s]);break;case 37:this.$=l.addNamespace(e[s-1],e[s]);break;case 38:this.$=[[e[s]],[]];break;case 39:this.$=[[e[s-1]],[]];break;case 40:e[s][0].unshift(e[s-2]),this.$=e[s];break;case 41:this.$=[[],[e[s]]];break;case 42:this.$=[[],[e[s-1]]];break;case 43:e[s][1].unshift(e[s-2]),this.$=e[s];break;case 44:case 45:this.$=[[],[]];break;case 46:this.$=e[s];break;case 48:l.setCssClass(e[s-2],e[s]);break;case 49:l.addMembers(e[s-3],e[s-1]);break;case 51:l.setCssClass(e[s-5],e[s-3]),l.addMembers(e[s-5],e[s-1]);break;case 52:l.addAnnotation(e[s-3],e[s-1]);break;case 53:l.addAnnotation(e[s-6],e[s-4]),l.addMembers(e[s-6],e[s-1]);break;case 54:l.addAnnotation(e[s-5],e[s-3]);break;case 55:this.$=e[s],l.addClass(e[s]);break;case 56:this.$=e[s-1],l.addClass(e[s-1]),l.setClassLabel(e[s-1],e[s]);break;case 60:l.addAnnotation(e[s],e[s-2]);break;case 61:case 74:this.$=[e[s]];break;case 62:e[s].push(e[s-1]),this.$=e[s];break;case 63:break;case 64:l.addMember(e[s-1],l.cleanupLabel(e[s]));break;case 65:break;case 66:break;case 67:this.$={id1:e[s-2],id2:e[s],relation:e[s-1],relationTitle1:"none",relationTitle2:"none"};break;case 68:this.$={id1:e[s-3],id2:e[s],relation:e[s-1],relationTitle1:e[s-2],relationTitle2:"none"};break;case 69:this.$={id1:e[s-3],id2:e[s],relation:e[s-2],relationTitle1:"none",relationTitle2:e[s-1]};break;case 70:this.$={id1:e[s-4],id2:e[s],relation:e[s-2],relationTitle1:e[s-3],relationTitle2:e[s-1]};break;case 71:this.$=l.addNote(e[s],e[s-1]);break;case 72:this.$=l.addNote(e[s]);break;case 73:this.$=e[s-2],l.defineClass(e[s-1],e[s]);break;case 75:this.$=e[s-2].concat([e[s]]);break;case 76:l.setDirection("TB");break;case 77:l.setDirection("BT");break;case 78:l.setDirection("RL");break;case 79:l.setDirection("LR");break;case 80:this.$={type1:e[s-2],type2:e[s],lineType:e[s-1]};break;case 81:this.$={type1:"none",type2:e[s],lineType:e[s-1]};break;case 82:this.$={type1:e[s-1],type2:"none",lineType:e[s]};break;case 83:this.$={type1:"none",type2:"none",lineType:e[s]};break;case 84:this.$=l.relationType.AGGREGATION;break;case 85:this.$=l.relationType.EXTENSION;break;case 86:this.$=l.relationType.COMPOSITION;break;case 87:this.$=l.relationType.DEPENDENCY;break;case 88:this.$=l.relationType.LOLLIPOP;break;case 89:this.$=l.lineType.LINE;break;case 90:this.$=l.lineType.DOTTED_LINE;break;case 91:case 97:this.$=e[s-2],l.setClickEvent(e[s-1],e[s]);break;case 92:case 98:this.$=e[s-3],l.setClickEvent(e[s-2],e[s-1]),l.setTooltip(e[s-2],e[s]);break;case 93:this.$=e[s-2],l.setLink(e[s-1],e[s]);break;case 94:this.$=e[s-3],l.setLink(e[s-2],e[s-1],e[s]);break;case 95:this.$=e[s-3],l.setLink(e[s-2],e[s-1]),l.setTooltip(e[s-2],e[s]);break;case 96:this.$=e[s-4],l.setLink(e[s-3],e[s-2],e[s]),l.setTooltip(e[s-3],e[s-1]);break;case 99:this.$=e[s-3],l.setClickEvent(e[s-2],e[s-1],e[s]);break;case 100:this.$=e[s-4],l.setClickEvent(e[s-3],e[s-2],e[s-1]),l.setTooltip(e[s-3],e[s]);break;case 101:this.$=e[s-3],l.setLink(e[s-2],e[s]);break;case 102:this.$=e[s-4],l.setLink(e[s-3],e[s-1],e[s]);break;case 103:this.$=e[s-4],l.setLink(e[s-3],e[s-1]),l.setTooltip(e[s-3],e[s]);break;case 104:this.$=e[s-5],l.setLink(e[s-4],e[s-2],e[s]),l.setTooltip(e[s-4],e[s-1]);break;case 105:this.$=e[s-2],l.setCssStyle(e[s-1],e[s]);break;case 106:l.setCssClass(e[s-1],e[s]);break;case 107:this.$=[e[s]];break;case 108:e[s-2].push(e[s]),this.$=e[s-2];break;case 110:this.$=e[s-1]+e[s];break}},"anonymous"),table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:i,35:a,37:r,38:22,42:n,43:23,46:u,48:h,51:o,52:g,54:m,56:_,57:Y,60:b,62:me,63:Ce,64:be,65:ke,75:Ee,76:Te,78:ye,82:De,83:Fe,86:k,100:E,102:T,103:y},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},t(Be,[2,5],{8:[1,48]}),{8:[1,49]},t(A,[2,19],{22:[1,50]}),t(A,[2,21]),t(A,[2,22]),t(A,[2,23]),t(A,[2,24]),t(A,[2,25]),t(A,[2,26]),t(A,[2,27]),t(A,[2,28]),t(A,[2,29]),t(A,[2,30]),{34:[1,51]},{36:[1,52]},t(A,[2,33]),t(A,[2,63],{53:53,66:56,67:57,13:[1,54],22:[1,55],68:te,69:se,70:ie,71:ae,72:re,73:_e,74:Se}),{39:[1,65]},t(S,[2,47],{39:[1,67],44:[1,66],46:[1,68]}),t(A,[2,65]),t(A,[2,66]),{16:69,60:b,86:k,100:E,102:T},{16:39,17:40,19:70,60:b,86:k,100:E,102:T,103:y},{16:39,17:40,19:71,60:b,86:k,100:E,102:T,103:y},{16:39,17:40,19:72,60:b,86:k,100:E,102:T,103:y},{60:[1,73]},{13:[1,74]},{16:39,17:40,19:75,60:b,86:k,100:E,102:T,103:y},{13:Me,55:76},{58:78,60:[1,79]},t(A,[2,76]),t(A,[2,77]),t(A,[2,78]),t(A,[2,79]),t(R,[2,13],{16:39,17:40,19:81,18:[1,80],20:[1,82],60:b,86:k,100:E,102:T,103:y}),t(R,[2,15],{20:[1,83]}),{15:84,16:85,17:86,60:b,86:k,100:E,102:T,103:y},{16:39,17:40,19:87,60:b,86:k,100:E,102:T,103:y},t(ne,[2,133]),t(ne,[2,134]),t(ne,[2,135]),t(ne,[2,136]),t([1,8,9,12,13,20,22,39,41,44,46,68,69,70,71,72,73,74,79,81],[2,137]),t(Be,[2,6],{10:5,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,19:21,38:22,43:23,16:39,17:40,5:88,33:i,35:a,37:r,42:n,46:u,48:h,51:o,52:g,54:m,56:_,57:Y,60:b,62:me,63:Ce,64:be,65:ke,75:Ee,76:Te,78:ye,82:De,83:Fe,86:k,100:E,102:T,103:y}),{5:89,10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:i,35:a,37:r,38:22,42:n,43:23,46:u,48:h,51:o,52:g,54:m,56:_,57:Y,60:b,62:me,63:Ce,64:be,65:ke,75:Ee,76:Te,78:ye,82:De,83:Fe,86:k,100:E,102:T,103:y},t(A,[2,20]),t(A,[2,31]),t(A,[2,32]),{13:[1,91],16:39,17:40,19:90,60:b,86:k,100:E,102:T,103:y},{53:92,66:56,67:57,68:te,69:se,70:ie,71:ae,72:re,73:_e,74:Se},t(A,[2,64]),{67:93,73:_e,74:Se},t(le,[2,83],{66:94,68:te,69:se,70:ie,71:ae,72:re}),t(K,[2,84]),t(K,[2,85]),t(K,[2,86]),t(K,[2,87]),t(K,[2,88]),t(Re,[2,89]),t(Re,[2,90]),{8:[1,96],23:99,24:97,30:98,38:22,40:95,42:n,43:23,48:h,54:m,56:_},{16:100,60:b,86:k,100:E,102:T},{41:[1,102],45:101,51:ue},{16:104,60:b,86:k,100:E,102:T},{47:[1,105]},{13:[1,106]},{13:[1,107]},{79:[1,108],81:[1,109]},{22:W,50:Q,59:110,60:X,82:j,84:111,85:112,86:H,87:q,88:J,89:Z,90:$},{60:[1,122]},{13:Me,55:123},t(S,[2,72]),t(S,[2,138]),{22:W,50:Q,59:124,60:X,61:[1,125],82:j,84:111,85:112,86:H,87:q,88:J,89:Z,90:$},t(Ge,[2,74]),{16:39,17:40,19:126,60:b,86:k,100:E,102:T,103:y},t(R,[2,16]),t(R,[2,17]),t(R,[2,18]),{11:127,12:Ue,39:[2,36]},t(oe,[2,9],{16:85,17:86,15:130,18:[1,129],60:b,86:k,100:E,102:T,103:y}),t(oe,[2,10]),t(Ne,[2,55],{11:131,12:Ue}),t(Be,[2,7]),{9:[1,132]},t(ce,[2,67]),{16:39,17:40,19:133,60:b,86:k,100:E,102:T,103:y},{13:[1,135],16:39,17:40,19:134,60:b,86:k,100:E,102:T,103:y},t(le,[2,82],{66:136,68:te,69:se,70:ie,71:ae,72:re}),t(le,[2,81]),{41:[1,137]},{23:99,24:97,30:98,38:22,40:138,42:n,43:23,48:h,54:m,56:_},{8:[1,139],41:[2,38]},{8:[1,140],41:[2,41]},{8:[1,141],41:[2,44]},t(S,[2,48],{39:[1,142]}),{41:[1,143]},t(S,[2,50]),{41:[2,61],45:144,51:ue},{47:[1,145]},{16:39,17:40,19:146,60:b,86:k,100:E,102:T,103:y},t(A,[2,91],{13:[1,147]}),t(A,[2,93],{13:[1,149],77:[1,148]}),t(A,[2,97],{13:[1,150],80:[1,151]}),{13:[1,152]},t(A,[2,105],{61:ze}),t(Ye,[2,107],{85:154,22:W,50:Q,60:X,82:j,86:H,87:q,88:J,89:Z,90:$}),t(x,[2,109]),t(x,[2,111]),t(x,[2,112]),t(x,[2,113]),t(x,[2,114]),t(x,[2,115]),t(x,[2,116]),t(x,[2,117]),t(x,[2,118]),t(x,[2,119]),t(A,[2,106]),t(S,[2,71]),t(A,[2,73],{61:ze}),{60:[1,155]},t(R,[2,14]),{39:[2,37]},{13:[1,156]},{15:157,16:85,17:86,60:b,86:k,100:E,102:T,103:y},t(oe,[2,12]),t(Ne,[2,56]),{1:[2,4]},t(ce,[2,69]),t(ce,[2,68]),{16:39,17:40,19:158,60:b,86:k,100:E,102:T,103:y},t(le,[2,80]),t(S,[2,34]),{41:[1,159]},{23:99,24:97,30:98,38:22,40:160,41:[2,39],42:n,43:23,48:h,54:m,56:_},{23:99,24:97,30:98,38:22,40:161,41:[2,42],42:n,43:23,48:h,54:m,56:_},{23:99,24:97,30:98,38:22,40:162,41:[2,45],42:n,43:23,48:h,54:m,56:_},{45:163,51:ue},t(S,[2,49]),{41:[2,62]},t(S,[2,52],{39:[1,164]}),t(A,[2,60]),t(A,[2,92]),t(A,[2,94]),t(A,[2,95],{77:[1,165]}),t(A,[2,98]),t(A,[2,99],{13:[1,166]}),t(A,[2,101],{13:[1,168],77:[1,167]}),{22:W,50:Q,60:X,82:j,84:169,85:112,86:H,87:q,88:J,89:Z,90:$},t(x,[2,110]),t(Ge,[2,75]),{14:[1,170]},t(oe,[2,11]),t(ce,[2,70]),t(S,[2,35]),{41:[2,40]},{41:[2,43]},{41:[2,46]},{41:[1,171]},{41:[1,173],45:172,51:ue},t(A,[2,96]),t(A,[2,100]),t(A,[2,102]),t(A,[2,103],{77:[1,174]}),t(Ye,[2,108],{85:154,22:W,50:Q,60:X,82:j,86:H,87:q,88:J,89:Z,90:$}),t(Ne,[2,8]),t(S,[2,51]),{41:[1,175]},t(S,[2,54]),t(A,[2,104]),t(S,[2,53])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],127:[2,37],132:[2,4],144:[2,62],160:[2,40],161:[2,43],162:[2,46]},parseError:f(function(c,d){if(d.recoverable)this.trace(c);else{var p=new Error(c);throw p.hash=d,p}},"parseError"),parse:f(function(c){var d=this,p=[0],l=[],C=[null],e=[],ee=this.table,s="",de=0,Ke=0,Ze=2,We=1,$e=e.slice.call(arguments,1),D=Object.create(this.lexer),V={yy:{}};for(var xe in this.yy)Object.prototype.hasOwnProperty.call(this.yy,xe)&&(V.yy[xe]=this.yy[xe]);D.setInput(c,V.yy),V.yy.lexer=D,V.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var ve=D.yylloc;e.push(ve);var et=D.options&&D.options.ranges;typeof V.yy.parseError=="function"?this.parseError=V.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function tt(N){p.length=p.length-2*N,C.length=C.length-N,e.length=e.length-N}f(tt,"popStack");function Qe(){var N;return N=l.pop()||D.lex()||We,typeof N!="number"&&(N instanceof Array&&(l=N,N=l.pop()),N=d.symbols_[N]||N),N}f(Qe,"lex");for(var B,P,L,Ie,G={},pe,v,Xe,Ae;;){if(P=p[p.length-1],this.defaultActions[P]?L=this.defaultActions[P]:((B===null||typeof B>"u")&&(B=Qe()),L=ee[P]&&ee[P][B]),typeof L>"u"||!L.length||!L[0]){var Oe="";Ae=[];for(pe in ee[P])this.terminals_[pe]&&pe>Ze&&Ae.push("'"+this.terminals_[pe]+"'");D.showPosition?Oe="Parse error on line "+(de+1)+`:
1
+ import{g as st}from"./CL9t4ZAe.js";import{g as it}from"./B_D1XvND.js";import{s as at}from"./cdv6-ttx.js";import{b as f,ay as we,X as F,a1 as rt,aP as nt,bh as Ve,aW as fe,a_ as lt,V as ut,aZ as ot,U as ct,b0 as ht,Y as dt,z as I,r as pt,$ as At,am as ft,aU as gt,ab as mt,x as Ct,aV as bt,aI as U}from"./DyYampZL.js";import{c as kt}from"./CTg5aOyU.js";import{aP as Et}from"./CO7_izcq.js";var Pe=(function(){var t=f(function(O,c,d,p){for(d=d||{},p=O.length;p--;d[O[p]]=c);return d},"o"),i=[1,18],a=[1,19],r=[1,20],n=[1,41],u=[1,26],h=[1,42],o=[1,24],g=[1,25],m=[1,32],_=[1,33],Y=[1,34],b=[1,45],me=[1,35],Ce=[1,36],be=[1,37],ke=[1,38],Ee=[1,27],Te=[1,28],ye=[1,29],De=[1,30],Fe=[1,31],k=[1,44],E=[1,46],T=[1,43],y=[1,47],Be=[1,9],A=[1,8,9],te=[1,58],se=[1,59],ie=[1,60],ae=[1,61],re=[1,62],_e=[1,63],Se=[1,64],S=[1,8,9,41],Me=[1,77],R=[1,8,9,12,13,22,39,41,44,46,68,69,70,71,72,73,74,79,81],ne=[1,8,9,12,13,18,20,22,39,41,44,46,47,60,68,69,70,71,72,73,74,79,81,86,100,102,103],le=[13,60,86,100,102,103],K=[13,60,73,74,86,100,102,103],Re=[13,60,68,69,70,71,72,86,100,102,103],ue=[1,103],W=[1,121],Q=[1,117],X=[1,113],j=[1,119],H=[1,114],q=[1,115],J=[1,116],Z=[1,118],$=[1,120],Ge=[22,50,60,61,82,86,87,88,89,90],Ue=[1,128],oe=[12,39],Ne=[1,8,9,39,41,44,46],ce=[1,8,9,22],ze=[1,153],Ye=[1,8,9,61],x=[1,8,9,22,50,60,61,82,86,87,88,89,90],Le={trace:f(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statements:5,graphConfig:6,CLASS_DIAGRAM:7,NEWLINE:8,EOF:9,statement:10,classLabel:11,SQS:12,STR:13,SQE:14,namespaceName:15,alphaNumToken:16,classLiteralName:17,DOT:18,className:19,GENERICTYPE:20,relationStatement:21,LABEL:22,namespaceStatement:23,classStatement:24,memberStatement:25,annotationStatement:26,clickStatement:27,styleStatement:28,cssClassStatement:29,noteStatement:30,classDefStatement:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,namespaceIdentifier:38,STRUCT_START:39,classStatements:40,STRUCT_STOP:41,NAMESPACE:42,classIdentifier:43,STYLE_SEPARATOR:44,members:45,ANNOTATION_START:46,ANNOTATION_END:47,CLASS:48,emptyBody:49,SPACE:50,MEMBER:51,SEPARATOR:52,relation:53,NOTE_FOR:54,noteText:55,NOTE:56,CLASSDEF:57,classList:58,stylesOpt:59,ALPHA:60,COMMA:61,direction_tb:62,direction_bt:63,direction_rl:64,direction_lr:65,relationType:66,lineType:67,AGGREGATION:68,EXTENSION:69,COMPOSITION:70,DEPENDENCY:71,LOLLIPOP:72,LINE:73,DOTTED_LINE:74,CALLBACK:75,LINK:76,LINK_TARGET:77,CLICK:78,CALLBACK_NAME:79,CALLBACK_ARGS:80,HREF:81,STYLE:82,CSSCLASS:83,style:84,styleComponent:85,NUM:86,COLON:87,UNIT:88,BRKT:89,PCT:90,commentToken:91,textToken:92,graphCodeTokens:93,textNoTagsToken:94,TAGSTART:95,TAGEND:96,"==":97,"--":98,DEFAULT:99,MINUS:100,keywords:101,UNICODE_TEXT:102,BQUOTE_STR:103,$accept:0,$end:1},terminals_:{2:"error",7:"CLASS_DIAGRAM",8:"NEWLINE",9:"EOF",12:"SQS",13:"STR",14:"SQE",18:"DOT",20:"GENERICTYPE",22:"LABEL",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",39:"STRUCT_START",41:"STRUCT_STOP",42:"NAMESPACE",44:"STYLE_SEPARATOR",46:"ANNOTATION_START",47:"ANNOTATION_END",48:"CLASS",50:"SPACE",51:"MEMBER",52:"SEPARATOR",54:"NOTE_FOR",56:"NOTE",57:"CLASSDEF",60:"ALPHA",61:"COMMA",62:"direction_tb",63:"direction_bt",64:"direction_rl",65:"direction_lr",68:"AGGREGATION",69:"EXTENSION",70:"COMPOSITION",71:"DEPENDENCY",72:"LOLLIPOP",73:"LINE",74:"DOTTED_LINE",75:"CALLBACK",76:"LINK",77:"LINK_TARGET",78:"CLICK",79:"CALLBACK_NAME",80:"CALLBACK_ARGS",81:"HREF",82:"STYLE",83:"CSSCLASS",86:"NUM",87:"COLON",88:"UNIT",89:"BRKT",90:"PCT",93:"graphCodeTokens",95:"TAGSTART",96:"TAGEND",97:"==",98:"--",99:"DEFAULT",100:"MINUS",101:"keywords",102:"UNICODE_TEXT",103:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,1],[15,3],[15,2],[19,1],[19,3],[19,1],[19,2],[19,2],[19,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[23,4],[23,5],[38,2],[38,3],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[24,1],[24,3],[24,4],[24,3],[24,6],[24,4],[24,7],[24,6],[43,2],[43,3],[49,0],[49,2],[49,2],[26,4],[45,1],[45,2],[25,1],[25,2],[25,1],[25,1],[21,3],[21,4],[21,4],[21,5],[30,3],[30,2],[31,3],[58,1],[58,3],[32,1],[32,1],[32,1],[32,1],[53,3],[53,2],[53,2],[53,1],[66,1],[66,1],[66,1],[66,1],[66,1],[67,1],[67,1],[27,3],[27,4],[27,3],[27,4],[27,4],[27,5],[27,3],[27,4],[27,4],[27,5],[27,4],[27,5],[27,5],[27,6],[28,3],[29,3],[59,1],[59,3],[84,1],[84,2],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[91,1],[91,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[94,1],[94,1],[94,1],[94,1],[16,1],[16,1],[16,1],[16,1],[17,1],[55,1]],performAction:f(function(c,d,p,l,C,e,ee){var s=e.length-1;switch(C){case 8:this.$=e[s-1];break;case 9:case 10:case 13:case 15:this.$=e[s];break;case 11:case 14:this.$=e[s-2]+"."+e[s];break;case 12:case 16:this.$=e[s-1]+e[s];break;case 17:case 18:this.$=e[s-1]+"~"+e[s]+"~";break;case 19:l.addRelation(e[s]);break;case 20:e[s-1].title=l.cleanupLabel(e[s]),l.addRelation(e[s-1]);break;case 31:this.$=e[s].trim(),l.setAccTitle(this.$);break;case 32:case 33:this.$=e[s].trim(),l.setAccDescription(this.$);break;case 34:l.addClassesToNamespace(e[s-3],e[s-1][0],e[s-1][1]),l.popNamespace();break;case 35:l.addClassesToNamespace(e[s-4],e[s-1][0],e[s-1][1]),l.popNamespace();break;case 36:this.$=l.addNamespace(e[s]);break;case 37:this.$=l.addNamespace(e[s-1],e[s]);break;case 38:this.$=[[e[s]],[]];break;case 39:this.$=[[e[s-1]],[]];break;case 40:e[s][0].unshift(e[s-2]),this.$=e[s];break;case 41:this.$=[[],[e[s]]];break;case 42:this.$=[[],[e[s-1]]];break;case 43:e[s][1].unshift(e[s-2]),this.$=e[s];break;case 44:case 45:this.$=[[],[]];break;case 46:this.$=e[s];break;case 48:l.setCssClass(e[s-2],e[s]);break;case 49:l.addMembers(e[s-3],e[s-1]);break;case 51:l.setCssClass(e[s-5],e[s-3]),l.addMembers(e[s-5],e[s-1]);break;case 52:l.addAnnotation(e[s-3],e[s-1]);break;case 53:l.addAnnotation(e[s-6],e[s-4]),l.addMembers(e[s-6],e[s-1]);break;case 54:l.addAnnotation(e[s-5],e[s-3]);break;case 55:this.$=e[s],l.addClass(e[s]);break;case 56:this.$=e[s-1],l.addClass(e[s-1]),l.setClassLabel(e[s-1],e[s]);break;case 60:l.addAnnotation(e[s],e[s-2]);break;case 61:case 74:this.$=[e[s]];break;case 62:e[s].push(e[s-1]),this.$=e[s];break;case 63:break;case 64:l.addMember(e[s-1],l.cleanupLabel(e[s]));break;case 65:break;case 66:break;case 67:this.$={id1:e[s-2],id2:e[s],relation:e[s-1],relationTitle1:"none",relationTitle2:"none"};break;case 68:this.$={id1:e[s-3],id2:e[s],relation:e[s-1],relationTitle1:e[s-2],relationTitle2:"none"};break;case 69:this.$={id1:e[s-3],id2:e[s],relation:e[s-2],relationTitle1:"none",relationTitle2:e[s-1]};break;case 70:this.$={id1:e[s-4],id2:e[s],relation:e[s-2],relationTitle1:e[s-3],relationTitle2:e[s-1]};break;case 71:this.$=l.addNote(e[s],e[s-1]);break;case 72:this.$=l.addNote(e[s]);break;case 73:this.$=e[s-2],l.defineClass(e[s-1],e[s]);break;case 75:this.$=e[s-2].concat([e[s]]);break;case 76:l.setDirection("TB");break;case 77:l.setDirection("BT");break;case 78:l.setDirection("RL");break;case 79:l.setDirection("LR");break;case 80:this.$={type1:e[s-2],type2:e[s],lineType:e[s-1]};break;case 81:this.$={type1:"none",type2:e[s],lineType:e[s-1]};break;case 82:this.$={type1:e[s-1],type2:"none",lineType:e[s]};break;case 83:this.$={type1:"none",type2:"none",lineType:e[s]};break;case 84:this.$=l.relationType.AGGREGATION;break;case 85:this.$=l.relationType.EXTENSION;break;case 86:this.$=l.relationType.COMPOSITION;break;case 87:this.$=l.relationType.DEPENDENCY;break;case 88:this.$=l.relationType.LOLLIPOP;break;case 89:this.$=l.lineType.LINE;break;case 90:this.$=l.lineType.DOTTED_LINE;break;case 91:case 97:this.$=e[s-2],l.setClickEvent(e[s-1],e[s]);break;case 92:case 98:this.$=e[s-3],l.setClickEvent(e[s-2],e[s-1]),l.setTooltip(e[s-2],e[s]);break;case 93:this.$=e[s-2],l.setLink(e[s-1],e[s]);break;case 94:this.$=e[s-3],l.setLink(e[s-2],e[s-1],e[s]);break;case 95:this.$=e[s-3],l.setLink(e[s-2],e[s-1]),l.setTooltip(e[s-2],e[s]);break;case 96:this.$=e[s-4],l.setLink(e[s-3],e[s-2],e[s]),l.setTooltip(e[s-3],e[s-1]);break;case 99:this.$=e[s-3],l.setClickEvent(e[s-2],e[s-1],e[s]);break;case 100:this.$=e[s-4],l.setClickEvent(e[s-3],e[s-2],e[s-1]),l.setTooltip(e[s-3],e[s]);break;case 101:this.$=e[s-3],l.setLink(e[s-2],e[s]);break;case 102:this.$=e[s-4],l.setLink(e[s-3],e[s-1],e[s]);break;case 103:this.$=e[s-4],l.setLink(e[s-3],e[s-1]),l.setTooltip(e[s-3],e[s]);break;case 104:this.$=e[s-5],l.setLink(e[s-4],e[s-2],e[s]),l.setTooltip(e[s-4],e[s-1]);break;case 105:this.$=e[s-2],l.setCssStyle(e[s-1],e[s]);break;case 106:l.setCssClass(e[s-1],e[s]);break;case 107:this.$=[e[s]];break;case 108:e[s-2].push(e[s]),this.$=e[s-2];break;case 110:this.$=e[s-1]+e[s];break}},"anonymous"),table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:i,35:a,37:r,38:22,42:n,43:23,46:u,48:h,51:o,52:g,54:m,56:_,57:Y,60:b,62:me,63:Ce,64:be,65:ke,75:Ee,76:Te,78:ye,82:De,83:Fe,86:k,100:E,102:T,103:y},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},t(Be,[2,5],{8:[1,48]}),{8:[1,49]},t(A,[2,19],{22:[1,50]}),t(A,[2,21]),t(A,[2,22]),t(A,[2,23]),t(A,[2,24]),t(A,[2,25]),t(A,[2,26]),t(A,[2,27]),t(A,[2,28]),t(A,[2,29]),t(A,[2,30]),{34:[1,51]},{36:[1,52]},t(A,[2,33]),t(A,[2,63],{53:53,66:56,67:57,13:[1,54],22:[1,55],68:te,69:se,70:ie,71:ae,72:re,73:_e,74:Se}),{39:[1,65]},t(S,[2,47],{39:[1,67],44:[1,66],46:[1,68]}),t(A,[2,65]),t(A,[2,66]),{16:69,60:b,86:k,100:E,102:T},{16:39,17:40,19:70,60:b,86:k,100:E,102:T,103:y},{16:39,17:40,19:71,60:b,86:k,100:E,102:T,103:y},{16:39,17:40,19:72,60:b,86:k,100:E,102:T,103:y},{60:[1,73]},{13:[1,74]},{16:39,17:40,19:75,60:b,86:k,100:E,102:T,103:y},{13:Me,55:76},{58:78,60:[1,79]},t(A,[2,76]),t(A,[2,77]),t(A,[2,78]),t(A,[2,79]),t(R,[2,13],{16:39,17:40,19:81,18:[1,80],20:[1,82],60:b,86:k,100:E,102:T,103:y}),t(R,[2,15],{20:[1,83]}),{15:84,16:85,17:86,60:b,86:k,100:E,102:T,103:y},{16:39,17:40,19:87,60:b,86:k,100:E,102:T,103:y},t(ne,[2,133]),t(ne,[2,134]),t(ne,[2,135]),t(ne,[2,136]),t([1,8,9,12,13,20,22,39,41,44,46,68,69,70,71,72,73,74,79,81],[2,137]),t(Be,[2,6],{10:5,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,19:21,38:22,43:23,16:39,17:40,5:88,33:i,35:a,37:r,42:n,46:u,48:h,51:o,52:g,54:m,56:_,57:Y,60:b,62:me,63:Ce,64:be,65:ke,75:Ee,76:Te,78:ye,82:De,83:Fe,86:k,100:E,102:T,103:y}),{5:89,10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:i,35:a,37:r,38:22,42:n,43:23,46:u,48:h,51:o,52:g,54:m,56:_,57:Y,60:b,62:me,63:Ce,64:be,65:ke,75:Ee,76:Te,78:ye,82:De,83:Fe,86:k,100:E,102:T,103:y},t(A,[2,20]),t(A,[2,31]),t(A,[2,32]),{13:[1,91],16:39,17:40,19:90,60:b,86:k,100:E,102:T,103:y},{53:92,66:56,67:57,68:te,69:se,70:ie,71:ae,72:re,73:_e,74:Se},t(A,[2,64]),{67:93,73:_e,74:Se},t(le,[2,83],{66:94,68:te,69:se,70:ie,71:ae,72:re}),t(K,[2,84]),t(K,[2,85]),t(K,[2,86]),t(K,[2,87]),t(K,[2,88]),t(Re,[2,89]),t(Re,[2,90]),{8:[1,96],23:99,24:97,30:98,38:22,40:95,42:n,43:23,48:h,54:m,56:_},{16:100,60:b,86:k,100:E,102:T},{41:[1,102],45:101,51:ue},{16:104,60:b,86:k,100:E,102:T},{47:[1,105]},{13:[1,106]},{13:[1,107]},{79:[1,108],81:[1,109]},{22:W,50:Q,59:110,60:X,82:j,84:111,85:112,86:H,87:q,88:J,89:Z,90:$},{60:[1,122]},{13:Me,55:123},t(S,[2,72]),t(S,[2,138]),{22:W,50:Q,59:124,60:X,61:[1,125],82:j,84:111,85:112,86:H,87:q,88:J,89:Z,90:$},t(Ge,[2,74]),{16:39,17:40,19:126,60:b,86:k,100:E,102:T,103:y},t(R,[2,16]),t(R,[2,17]),t(R,[2,18]),{11:127,12:Ue,39:[2,36]},t(oe,[2,9],{16:85,17:86,15:130,18:[1,129],60:b,86:k,100:E,102:T,103:y}),t(oe,[2,10]),t(Ne,[2,55],{11:131,12:Ue}),t(Be,[2,7]),{9:[1,132]},t(ce,[2,67]),{16:39,17:40,19:133,60:b,86:k,100:E,102:T,103:y},{13:[1,135],16:39,17:40,19:134,60:b,86:k,100:E,102:T,103:y},t(le,[2,82],{66:136,68:te,69:se,70:ie,71:ae,72:re}),t(le,[2,81]),{41:[1,137]},{23:99,24:97,30:98,38:22,40:138,42:n,43:23,48:h,54:m,56:_},{8:[1,139],41:[2,38]},{8:[1,140],41:[2,41]},{8:[1,141],41:[2,44]},t(S,[2,48],{39:[1,142]}),{41:[1,143]},t(S,[2,50]),{41:[2,61],45:144,51:ue},{47:[1,145]},{16:39,17:40,19:146,60:b,86:k,100:E,102:T,103:y},t(A,[2,91],{13:[1,147]}),t(A,[2,93],{13:[1,149],77:[1,148]}),t(A,[2,97],{13:[1,150],80:[1,151]}),{13:[1,152]},t(A,[2,105],{61:ze}),t(Ye,[2,107],{85:154,22:W,50:Q,60:X,82:j,86:H,87:q,88:J,89:Z,90:$}),t(x,[2,109]),t(x,[2,111]),t(x,[2,112]),t(x,[2,113]),t(x,[2,114]),t(x,[2,115]),t(x,[2,116]),t(x,[2,117]),t(x,[2,118]),t(x,[2,119]),t(A,[2,106]),t(S,[2,71]),t(A,[2,73],{61:ze}),{60:[1,155]},t(R,[2,14]),{39:[2,37]},{13:[1,156]},{15:157,16:85,17:86,60:b,86:k,100:E,102:T,103:y},t(oe,[2,12]),t(Ne,[2,56]),{1:[2,4]},t(ce,[2,69]),t(ce,[2,68]),{16:39,17:40,19:158,60:b,86:k,100:E,102:T,103:y},t(le,[2,80]),t(S,[2,34]),{41:[1,159]},{23:99,24:97,30:98,38:22,40:160,41:[2,39],42:n,43:23,48:h,54:m,56:_},{23:99,24:97,30:98,38:22,40:161,41:[2,42],42:n,43:23,48:h,54:m,56:_},{23:99,24:97,30:98,38:22,40:162,41:[2,45],42:n,43:23,48:h,54:m,56:_},{45:163,51:ue},t(S,[2,49]),{41:[2,62]},t(S,[2,52],{39:[1,164]}),t(A,[2,60]),t(A,[2,92]),t(A,[2,94]),t(A,[2,95],{77:[1,165]}),t(A,[2,98]),t(A,[2,99],{13:[1,166]}),t(A,[2,101],{13:[1,168],77:[1,167]}),{22:W,50:Q,60:X,82:j,84:169,85:112,86:H,87:q,88:J,89:Z,90:$},t(x,[2,110]),t(Ge,[2,75]),{14:[1,170]},t(oe,[2,11]),t(ce,[2,70]),t(S,[2,35]),{41:[2,40]},{41:[2,43]},{41:[2,46]},{41:[1,171]},{41:[1,173],45:172,51:ue},t(A,[2,96]),t(A,[2,100]),t(A,[2,102]),t(A,[2,103],{77:[1,174]}),t(Ye,[2,108],{85:154,22:W,50:Q,60:X,82:j,86:H,87:q,88:J,89:Z,90:$}),t(Ne,[2,8]),t(S,[2,51]),{41:[1,175]},t(S,[2,54]),t(A,[2,104]),t(S,[2,53])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],127:[2,37],132:[2,4],144:[2,62],160:[2,40],161:[2,43],162:[2,46]},parseError:f(function(c,d){if(d.recoverable)this.trace(c);else{var p=new Error(c);throw p.hash=d,p}},"parseError"),parse:f(function(c){var d=this,p=[0],l=[],C=[null],e=[],ee=this.table,s="",de=0,Ke=0,Ze=2,We=1,$e=e.slice.call(arguments,1),D=Object.create(this.lexer),V={yy:{}};for(var xe in this.yy)Object.prototype.hasOwnProperty.call(this.yy,xe)&&(V.yy[xe]=this.yy[xe]);D.setInput(c,V.yy),V.yy.lexer=D,V.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var ve=D.yylloc;e.push(ve);var et=D.options&&D.options.ranges;typeof V.yy.parseError=="function"?this.parseError=V.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function tt(N){p.length=p.length-2*N,C.length=C.length-N,e.length=e.length-N}f(tt,"popStack");function Qe(){var N;return N=l.pop()||D.lex()||We,typeof N!="number"&&(N instanceof Array&&(l=N,N=l.pop()),N=d.symbols_[N]||N),N}f(Qe,"lex");for(var B,P,L,Ie,G={},pe,v,Xe,Ae;;){if(P=p[p.length-1],this.defaultActions[P]?L=this.defaultActions[P]:((B===null||typeof B>"u")&&(B=Qe()),L=ee[P]&&ee[P][B]),typeof L>"u"||!L.length||!L[0]){var Oe="";Ae=[];for(pe in ee[P])this.terminals_[pe]&&pe>Ze&&Ae.push("'"+this.terminals_[pe]+"'");D.showPosition?Oe="Parse error on line "+(de+1)+`:
2
2
  `+D.showPosition()+`
3
3
  Expecting `+Ae.join(", ")+", got '"+(this.terminals_[B]||B)+"'":Oe="Parse error on line "+(de+1)+": Unexpected "+(B==We?"end of input":"'"+(this.terminals_[B]||B)+"'"),this.parseError(Oe,{text:D.match,token:this.terminals_[B]||B,line:D.yylineno,loc:ve,expected:Ae})}if(L[0]instanceof Array&&L.length>1)throw new Error("Parse Error: multiple actions possible at state: "+P+", token: "+B);switch(L[0]){case 1:p.push(B),C.push(D.yytext),e.push(D.yylloc),p.push(L[1]),B=null,Ke=D.yyleng,s=D.yytext,de=D.yylineno,ve=D.yylloc;break;case 2:if(v=this.productions_[L[1]][1],G.$=C[C.length-v],G._$={first_line:e[e.length-(v||1)].first_line,last_line:e[e.length-1].last_line,first_column:e[e.length-(v||1)].first_column,last_column:e[e.length-1].last_column},et&&(G._$.range=[e[e.length-(v||1)].range[0],e[e.length-1].range[1]]),Ie=this.performAction.apply(G,[s,Ke,de,V.yy,L[1],C,e].concat($e)),typeof Ie<"u")return Ie;v&&(p=p.slice(0,-1*v*2),C=C.slice(0,-1*v),e=e.slice(0,-1*v)),p.push(this.productions_[L[1]][0]),C.push(G.$),e.push(G._$),Xe=ee[p[p.length-2]][p[p.length-1]],p.push(Xe);break;case 3:return!0}}return!0},"parse")},Je=(function(){var O={EOF:1,parseError:f(function(d,p){if(this.yy.parser)this.yy.parser.parseError(d,p);else throw new Error(d)},"parseError"),setInput:f(function(c,d){return this.yy=d||this.yy||{},this._input=c,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:f(function(){var c=this._input[0];this.yytext+=c,this.yyleng++,this.offset++,this.match+=c,this.matched+=c;var d=c.match(/(?:\r\n?|\n).*/g);return d?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),c},"input"),unput:f(function(c){var d=c.length,p=c.split(/(?:\r\n?|\n)/g);this._input=c+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-d),this.offset-=d;var l=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),p.length-1&&(this.yylineno-=p.length-1);var C=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:p?(p.length===l.length?this.yylloc.first_column:0)+l[l.length-p.length].length-p[0].length:this.yylloc.first_column-d},this.options.ranges&&(this.yylloc.range=[C[0],C[0]+this.yyleng-d]),this.yyleng=this.yytext.length,this},"unput"),more:f(function(){return this._more=!0,this},"more"),reject:f(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:f(function(c){this.unput(this.match.slice(c))},"less"),pastInput:f(function(){var c=this.matched.substr(0,this.matched.length-this.match.length);return(c.length>20?"...":"")+c.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:f(function(){var c=this.match;return c.length<20&&(c+=this._input.substr(0,20-c.length)),(c.substr(0,20)+(c.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:f(function(){var c=this.pastInput(),d=new Array(c.length+1).join("-");return c+this.upcomingInput()+`
@@ -1 +1 @@
1
- import{a$ as Ft,aA as Rt,a1 as Je}from"./D8Y4PJzg.js";import{bI as At,aD as _,aG as Et,bH as Le,bV as it,bs as Bt,ca as Wt,a5 as W,bA as L,W as o,bS as c,b_ as u,bn as Lt,c9 as S,aA as O,bl as E,bO as l,b$ as A,aB as N,bf as H,a7 as G,ay as x,be as Pe,am as Re,ax as Ae}from"./DYhIMPy1.js";import{t as Ut,br as F,a_ as D,bz as jt,bv as Ve,bt as Mt,b as zt,bp as d}from"./DXyyWeag.js";import{G as Xe}from"./DyvrH0mm.js";import{s as Qe}from"./Cuqq8bL5.js";import{I as V,b as Ze,D as le}from"./BboIV5H5.js";import{w as Ee,v as et,u as tt}from"./CjaOLL1c.js";import{F as $t,bk as Gt,aJ as Kt,cF as Yt,ci as qt}from"./BTdkHPOB.js";import{k as Ht}from"./DT4bpJWb.js";import{f as Be}from"./Bfr1QjPr.js";import"./ChTqQfQN.js";import"./DJkHth-B.js";import"./D5ej8a-y.js";import{q as Jt,h as Vt,S as Xt}from"./DSNzRZ8C.js";import{O as We}from"./CJODFnM7.js";import{bM as Qt,D as Zt,y as ea}from"./DYQYcTNY.js";import{d as ta}from"./DyYoVm9l.js";import{s as aa,f as ra,c as at}from"./BViGldWr.js";function ja(z){let C=0,$=!1;function _e(I){$!==I&&($=I,z.onDragChange(I))}function pe(){C=0,_e(!1)}function ae(I){return z.isEnabled&&!z.isEnabled()?!1:Rt(I)}return{handleDragEnter(I){ae(I)&&(I.preventDefault(),C++,_e(!0))},handleDragLeave(I){ae(I)&&(I.preventDefault(),C=Math.max(0,C-1),C===0&&_e(!1))},handleDragOver(I){ae(I)&&I.preventDefault()},handleDrop(I){if(!ae(I))return;I.preventDefault(),pe();const Y=Ft(I.dataTransfer);(Y.files.length>0||Y.folderFiles.length>0)&&z.onDrop(Y)},reset:pe}}const lt=Symbol("panel-file-drop-context");function Ma(){let z=it(null);const C={register($){Le(z,$)},unregister($){_(z)===$&&Le(z,null)}};return At(lt,C),{context:C,handler:{get current(){return _(z)}}}}function za(){return Et(lt)??null}var na=N('<span class="inline-flex items-center gap-1.5 svelte-enden2"> </span>'),sa=N('<h3 class="text-lg font-semibold tracking-[-0.016em] transition-colors duration-spring-slow ease-spring-slow motion-reduce:transition-none svelte-enden2"><!></h3>'),oa=N('<span class="inline-block col-span-1 row-span-1 svelte-enden2"> </span>'),ia=N('<span class="text-sm font-mono text-muted-foreground tabular-nums svelte-enden2"><span class="inline-grid *:[grid-area:1/1] svelte-enden2"><!></span> </span>'),la=N('<div class="absolute inset-0 left-5 svelte-enden2"><!></div>'),rt=N('<div class="svelte-enden2"><!></div>'),da=N('<div class="relative flex items-start overflow-hidden rounded-md py-0.75 text-base leading-relaxed svelte-enden2"><!> <span data-testid="workspace-setup-step-icon"><!></span> <div class="setup-step-content min-w-0 text-muted-foreground font-normal leading-snug relative z-10 svelte-enden2" data-testid="workspace-setup-step-content"><!></div></div>'),_a=N('<span data-testid="setup-card-progress-label" class="svelte-enden2"> </span> <div class="mt-1 h-[2px] w-full max-w-64 rounded-full bg-secondary overflow-hidden svelte-enden2"><div class="h-full bg-foreground/60 transition-[width] duration-spring-slow ease-spring-slow motion-reduce:transition-none svelte-enden2" role="progressbar" aria-valuemin="0" aria-valuemax="100" data-testid="setup-card-progress-bar"></div></div>',1),de=N(" <!>",1),pa=N('<span data-testid="setup-card-plain-folder" class="svelte-enden2"> <!> </span>'),va=N(' <code class="text-sm bg-secondary py-1 px-1.5 svelte-enden2"> </code> <!>',1),nt=N(" <!> <!>",1),ca=N(' <span class="svelte-enden2"> </span> ',1),ua=N(' <span class="svelte-enden2"> </span> <!>',1),ga=N('<span class="underline underline-offset-2 svelte-enden2"> </span><span class="whitespace-nowrap svelte-enden2"><span class="underline underline-offset-2 svelte-enden2"> </span><span class="setup-reference-punctuation svelte-enden2" aria-hidden="true"> </span></span>',1),fa=N("<!> ",1),st=N('<span class="svelte-enden2"> </span>'),te=N(" <!> ",1),ma=N('<pre class="text-xs text-muted-foreground font-mono leading-snug line-clamp-2 whitespace-pre-wrap svelte-enden2"> </pre>'),ot=N('<span class="text-xs text-muted-foreground opacity-50 svelte-enden2"> </span>'),ba=N(" <!> <!> ",1),xa=N('<p class="text-xs text-muted-foreground leading-snug svelte-enden2"> </p>'),ha=N('<div><div class="flex items-baseline gap-2.5 pt-3 pb-2 svelte-enden2"><div class="inline-grid *:[grid-area:1/1] svelte-enden2"><!></div> <!></div> <div class="space-y-0.5 pb-4 svelte-enden2"><!> <!> <!> <!></div></div>');function Ca(z,C){if(new.target)return Ut({component:Ca,...z});Bt(C,!0);const $=()=>Ve(dt,"$progressEntry$",pe),_e=()=>Ve(_t,"$specialists$",pe),[pe,ae]=Mt();let I=F(C,"repoName",7),Y=F(C,"repoPath",7),q=F(C,"worktreePath",7),ve=F(C,"workspaceId",7),K=F(C,"branch",7),ce=F(C,"baseRef",7,"origin/main"),re=F(C,"projectType",7),X=F(C,"setupScriptStatus",7),Ce=F(C,"setupScriptContent",7),we=F(C,"onFocusSetupTerminal",7),De=F(C,"specialistName",7),U=F(C,"specialistId",7),ne=F(C,"hasPrompt",7,!0),se=F(C,"repoStatus",7,"pending"),ue=F(C,"branchStatus",7,"pending"),ge=F(C,"agentStatus",7,"pending"),Q=F(C,"skipIsolation",7,!1),oe=F(C,"plainFolder",7,!1),Ie=F(C,"progressId",7);const dt=aa(Ie()??""),_t=Qt();let fe=it(0);Wt(()=>{const i=Math.min($()?.percent??0,100);i>_(fe)&&Le(fe,i,!0)});const pt=S(()=>$()?.sawFrame===!0),vt=S(()=>ce().replace(/^[^/]+\//,"")),Ne=S(()=>U()?ea(U()):void 0),ct=S(()=>U()?_e().find(i=>i.id===U()):void 0),ut=S(()=>_(ct)?.name||_(Ne)?.name||De()),Ue=S(()=>U()==="spec-writer"||U()===Zt),je=S(()=>{const i=oe()?[se()]:[se(),ue()];return X()&&i.push(X()),i.push(ge()),i}),Te=S(()=>_(je).length),Me=S(()=>_(je).filter(i=>i==="done").length),ze=S(()=>Math.min(_(Me)+1,_(Te))),Se=S(()=>_(Me)===_(Te)),$e=S(()=>_(Se)?d.onboarding_setupCard_ready_title():d.onboarding_setupCard_settingUp_title());function gt(i,R){navigator.clipboard.writeText(i),Ht.success(d.onboarding_setupCard_copied_label({label:R}))}function Oe(i){return i.replace(/^\/Users\/[^/]+/,"~")}function ft(){U()&&ta({specialist:U(),hash:"specialists"})}var mt={get repoName(){return I()},set repoName(i){I(i),O()},get repoPath(){return Y()},set repoPath(i){Y(i),O()},get worktreePath(){return q()},set worktreePath(i){q(i),O()},get workspaceId(){return ve()},set workspaceId(i){ve(i),O()},get branch(){return K()},set branch(i){K(i),O()},get baseRef(){return ce()},set baseRef(i="origin/main"){ce(i),O()},get projectType(){return re()},set projectType(i){re(i),O()},get setupScriptStatus(){return X()},set setupScriptStatus(i){X(i),O()},get setupScriptContent(){return Ce()},set setupScriptContent(i){Ce(i),O()},get onFocusSetupTerminal(){return we()},set onFocusSetupTerminal(i){we(i),O()},get specialistName(){return De()},set specialistName(i){De(i),O()},get specialistId(){return U()},set specialistId(i){U(i),O()},get hasPrompt(){return ne()},set hasPrompt(i=!0){ne(i),O()},get repoStatus(){return se()},set repoStatus(i="pending"){se(i),O()},get branchStatus(){return ue()},set branchStatus(i="pending"){ue(i),O()},get agentStatus(){return ge()},set agentStatus(i="pending"){ge(i),O()},get skipIsolation(){return Q()},set skipIsolation(i=!1){Q(i),O()},get plainFolder(){return oe()},set plainFolder(i=!1){oe(i),O()},get progressId(){return Ie()},set progressId(i){Ie(i),O()},$set:jt,$on:(i,R)=>zt(C,i,R)},ye=ha(),ke=W(ye);Ee(ke,"",{},{"padding-inline":"var(--operational-row-inline-padding)"});var Fe=W(ke),bt=W(Fe);Xe(bt,()=>_(Se),i=>{var R=sa(),Z=W(R);{var me=M=>{var B=na(),xe=E(B,!0);u(()=>l(xe,_($e))),o(M,B)},be=M=>{var B=A();u(()=>l(B,_($e))),o(M,B)};D(Z,M=>{_(Se)?M(me):M(be,-1)})}L(R),V(1,R,()=>Ze,()=>({tier:"slow",distance:3})),V(2,R,()=>Ze,()=>({tier:"slow",distance:3})),o(i,R)}),L(Fe);var xt=c(Fe,2);{var ht=i=>{var R=ia(),Z=W(R),me=W(Z);Xe(me,()=>_(ze),M=>{var B=oa(),xe=E(B,!0);u(()=>l(xe,_(ze))),V(1,B,()=>le,()=>({axis:"y",tier:"slow"})),o(M,B)}),L(Z);var be=c(Z);L(R),u(()=>l(be,`/${_(Te)??""}`)),o(i,R)};D(xt,i=>{_(Se)||i(ht)})}L(ke);var Ge=c(ke,2);{const i=(f,m=H,y=H,k=H,w=H,b=H)=>{var n=da();Ee(n,"",{},{gap:"0.25rem","padding-inline":"var(--operational-row-inline-padding)"});var t=W(n);{var e=h=>{var P=la(),T=W(P);Xt(T,{}),L(P),o(h,P)};D(t,h=>{m()==="active"&&h(e)})}var a=c(t,2),r=W(a);$t(r,{get icon(){return y()},size:14,get class(){return k()}}),L(a);var s=c(a,2),p=W(s);{var g=h=>{var P=rt(),T=W(P);Qe(T,w),L(P),V(1,P,()=>le,()=>({axis:"y",tier:"moderate"})),V(2,P,()=>le,()=>({axis:"y",tier:"moderate"})),o(h,P)},v=h=>{var P=rt(),T=W(P);Qe(T,b),L(P),V(1,P,()=>le,()=>({axis:"y",tier:"moderate"})),V(2,P,()=>le,()=>({axis:"y",tier:"moderate"})),o(h,P)};D(p,h=>{m()==="active"?h(g):h(v,-1)})}L(s),L(n),u(()=>et(a,1,`${Vt} relative z-10 mt-1 flex size-4 shrink-0 items-center justify-start`,"svelte-enden2")),V(3,n,()=>le,()=>({tier:"slow"})),o(f,n)},R=(f,m)=>{let y=Re(()=>Ae(m?.(),""));var k=G(),w=x(k);{var b=t=>{{let e=S(()=>d.onboarding_setupCard_originalFolder_label());B(t,I,()=>_(e),Y,()=>_(y))}},n=t=>{var e=A();u(()=>l(e,`${I()??""}${_(y)??""}`)),o(t,e)};D(w,t=>{Y()?t(b):t(n,-1)})}o(f,k)},Z=f=>{var m=G(),y=x(m);{var k=n=>{var t=_a(),e=x(t),a=E(e,!0),r=c(e,2),s=E(r);u((p,g)=>{l(a,p),Ee(s,`width: ${_(fe)??""}%`),tt(s,"aria-label",g),tt(s,"aria-valuenow",_(fe))},[()=>d.workspace_compactInitializer_progressWithPercent_label({label:at($()),percent:ra(_(fe))}),()=>at($())]),o(n,t)},w=n=>{var t=de(),e=x(t),a=c(e);{let r=S(()=>d.onboarding_setupCard_opening_after());R(a,()=>_(r))}u(r=>l(e,`${r??""} `),[()=>d.onboarding_setupCard_opening_before()]),o(n,t)},b=n=>{var t=de(),e=x(t),a=c(e);R(a),u(r=>l(e,`${r??""} `),[()=>d.onboarding_setupCard_creatingIsolatedCopy_before()]),o(n,t)};D(y,n=>{_(pt)&&$()?n(k):Q()||oe()?n(w,1):n(b,-1)})}o(f,m)},me=f=>{var m=G(),y=x(m);{var k=n=>{const t=S(()=>q()||Y());var e=pa(),a=W(e),r=c(a);{var s=v=>{We(v,{get filePath(){return _(t)},get workspaceId(){return ve()},isDirectory:!0,variant:"sidebar",compact:!0,inline:!0,class:"setup-path",children:(h,P)=>{{let T=S(()=>Oe(_(t)));M(h,()=>_(T),()=>".")}},$$slots:{default:!0}})},p=v=>{var h=A();u(()=>l(h,`${I()??""}.`)),o(v,h)};D(r,v=>{_(t)?v(s):v(p,-1)})}var g=c(r);L(e),u((v,h)=>{l(a,`${v??""} `),l(g,` ${h??""}`)},[()=>d.onboarding_setupCard_workingInFolder_before(),()=>d.onboarding_setupCard_plainFolderInPlace_label()]),o(n,e)},w=n=>{var t=va(),e=x(t),a=c(e),r=E(a,!0),s=c(a,2);{var p=v=>{var h=de(),P=x(h),T=c(P);We(T,{get filePath(){return q()},get workspaceId(){return ve()},isDirectory:!0,variant:"sidebar",compact:!0,inline:!0,class:"setup-path",children:(j,ee)=>{{let J=S(()=>Oe(q()));M(j,()=>_(J),()=>".")}},$$slots:{default:!0}}),u(j=>l(P,` ${j??""} `),[()=>d.onboarding_setupCard_at_label()]),o(v,h)},g=v=>{var h=A(".");o(v,h)};D(s,v=>{q()?v(p):v(g,-1)})}u(v=>{l(e,`${v??""} `),l(r,_(vt))},[()=>d.onboarding_setupCard_workingDirectlyOn_before()]),o(n,t)},b=n=>{var t=nt(),e=x(t),a=c(e);R(a);var r=c(a,2);{var s=g=>{var v=de(),h=x(v),P=c(h);We(P,{get filePath(){return q()},get workspaceId(){return ve()},isDirectory:!0,variant:"sidebar",compact:!0,inline:!0,class:"setup-path",children:(T,j)=>{{let ee=S(()=>Oe(q()));M(T,()=>_(ee),()=>".")}},$$slots:{default:!0}}),u(T=>l(h,` ${T??""} `),[()=>d.onboarding_setupCard_at_label()]),o(g,v)},p=g=>{var v=A(".");o(g,v)};D(r,g=>{q()?g(s):g(p,-1)})}u(g=>l(e,`${g??""} `),[()=>d.onboarding_setupCard_createdIsolatedCopy_before()]),o(n,t)};D(y,n=>{oe()?n(k):Q()?n(w,1):n(b,-1)})}o(f,m)},be=f=>{var m=G(),y=x(m);{var k=n=>{var t=G(),e=x(t);{var a=s=>{var p=ca(),g=x(p),v=c(g),h=E(v,!0),P=c(v,1,!0);u((T,j)=>{l(g,`${T??""} `),l(h,K()),l(P,j)},[()=>d.onboarding_setupCard_workingOnBranchNamed_before(),()=>d.onboarding_setupCard_workingOnBranchActive_after()]),o(s,p)},r=s=>{var p=A();u(g=>l(p,g),[()=>d.onboarding_setupCard_workingOnBranch_label()]),o(s,p)};D(e,s=>{K()?s(a):s(r,-1)})}o(n,t)},w=n=>{var t=ua(),e=x(t),a=c(e),r=E(a,!0),s=c(a),p=c(s);{let g=S(()=>d.onboarding_setupCard_baseRef_label()),v=S(()=>d.onboarding_setupCard_creatingBranch_after());B(p,ce,()=>_(g),()=>{},()=>_(v))}u((g,v)=>{l(e,`${g??""} `),l(r,K()),l(s,` ${v??""} `)},[()=>d.onboarding_setupCard_creatingBranch_before(),()=>d.onboarding_setupCard_creatingBranch_middle()]),o(n,t)},b=n=>{var t=A();u(e=>l(t,e),[()=>d.onboarding_setupCard_creatingBranchNoName_label()]),o(n,t)};D(y,n=>{Q()?n(k):K()?n(w,1):n(b,-1)})}o(f,m)},M=(f,m=H,y)=>{let k=Re(()=>Ae(y?.(),""));const w=S(()=>Array.from(m()));var b=ga(),n=x(b),t=E(n,!0),e=c(n),a=W(e),r=E(a,!0),s=c(a),p=E(s,!0);L(e),u((g,v)=>{l(t,g),l(r,v),l(p,_(k))},[()=>_(w).slice(0,-1).join(""),()=>_(w).at(-1)??""]),o(f,b)},B=(f,m=H,y=H,k=H,w)=>{let b=Re(()=>Ae(w?.(),""));const n=S(()=>_(b).match(/^\p{P}+/u)?.[0]??"");var t=fa(),e=x(t);Be(e,{variant:"plain",wrapContent:!1,class:"setup-inline-link cursor-pointer hover:text-foreground transition-colors",onclick:()=>gt(k()??m(),y()),children:(r,s)=>{M(r,m,()=>_(n))},$$slots:{default:!0}});var a=c(e,1,!0);u(r=>l(a,r),[()=>_(b).slice(_(n).length)]),o(f,t)},xe=f=>{var m=G(),y=x(m);{var k=n=>{var t=G(),e=x(t);{var a=s=>{var p=de(),g=x(p),v=c(g);{let h=S(()=>d.onboarding_setupCard_branchName_label()),P=S(()=>d.onboarding_setupCard_workingOnBranchDone_after());B(v,K,()=>_(h),()=>{},()=>_(P))}u(h=>l(g,`${h??""} `),[()=>d.onboarding_setupCard_workingOnBranchNamed_before()]),o(s,p)},r=s=>{var p=A();u(g=>l(p,g),[()=>d.onboarding_setupCard_workingDirectlyOnBranch_label()]),o(s,p)};D(e,s=>{K()?s(a):s(r,-1)})}o(n,t)},w=n=>{var t=nt(),e=x(t),a=c(e);{let s=S(()=>d.onboarding_setupCard_branchName_label()),p=S(()=>d.onboarding_setupCard_workingInNewBranch_middle());B(a,K,()=>_(s),()=>{},()=>_(p))}var r=c(a,2);{let s=S(()=>d.onboarding_setupCard_baseRef_label()),p=S(()=>d.onboarding_setupCard_workingInNewBranch_after());B(r,ce,()=>_(s),()=>{},()=>_(p))}u(s=>l(e,`${s??""} `),[()=>d.onboarding_setupCard_workingInNewBranch_before()]),o(n,t)},b=n=>{var t=A();u(e=>l(t,e),[()=>d.onboarding_setupCard_branchCreated_label()]),o(n,t)};D(y,n=>{Q()?n(k):K()?n(w,1):n(b,-1)})}o(f,m)},Dt=f=>{Pe();var m=te(),y=x(m),k=c(y);{var w=t=>{var e=st(),a=E(e,!0);u(()=>l(a,re())),o(t,e)},b=t=>{var e=A();u(a=>l(e,a),[()=>d.onboarding_setupCard_project_label()]),o(t,e)};D(k,t=>{re()?t(w):t(b,-1)})}var n=c(k);u((t,e)=>{l(y,`${t??""} `),l(n,` ${e??""}`)},[()=>d.onboarding_setupCard_runningSetup_before(),()=>d.onboarding_setupCard_runningSetup_after()]),o(f,m)},It=f=>{Pe();var m=ba(),y=x(m),k=c(y);{var w=r=>{var s=st(),p=E(s,!0);u(()=>l(p,re())),o(r,s)},b=r=>{var s=A();u(p=>l(s,p),[()=>d.onboarding_setupCard_project_label()]),o(r,s)};D(k,r=>{re()?r(w):r(b,-1)})}var n=c(k),t=c(n);{var e=r=>{var s=de(),p=x(s),g=c(p);Je(g,{class:"inline",side:"bottom",align:"start",interactive:!0,maxWidth:"22rem",delayDuration:300,trigger:T=>{Be(T,{variant:"plain",wrapContent:!1,class:"setup-inline-link underline underline-offset-2 cursor-pointer hover:text-foreground transition-colors",get onclick(){return we()},children:(j,ee)=>{Pe();var J=A();u(he=>l(J,he),[()=>d.onboarding_setupCard_terminalTab_label()]),o(j,J)},$$slots:{default:!0}})},content:T=>{var j=G(),ee=x(j);{var J=he=>{var He=ma(),Ot=E(He,!0);u(()=>l(Ot,Ce())),o(he,He)};D(ee,he=>{Ce()&&he(J)})}o(T,j)},footer:T=>{var j=ot(),ee=E(j,!0);u(J=>l(ee,J),[()=>d.onboarding_setupCard_openTerminal_footer()]),o(T,j)},$$slots:{trigger:!0,content:!0,footer:!0}}),u(v=>l(p,` ${v??""} `),[()=>d.onboarding_setupCard_ranSetupIn_middle()]),o(r,s)};D(t,r=>{we()&&r(e)})}var a=c(t,1,!0);u((r,s,p)=>{l(y,`${r??""} `),l(n,` ${s??""}`),l(a,p)},[()=>d.onboarding_setupCard_ranSetup_before(),()=>d.onboarding_setupCard_ranSetup_middle(),()=>d.onboarding_setupCard_ranSetup_after()]),o(f,m)},ie=f=>{Je(f,{class:"inline",side:"bottom",align:"start",interactive:!0,maxWidth:"22rem",delayDuration:300,trigger:w=>{Be(w,{variant:"plain",wrapContent:!1,class:"setup-inline-link underline underline-offset-2 cursor-pointer hover:text-foreground transition-colors",onclick:ft,children:(b,n)=>{Pe();var t=A();u(()=>l(t,_(ut))),o(b,t)},$$slots:{default:!0}})},content:w=>{var b=G(),n=x(b);{var t=e=>{var a=xa(),r=E(a,!0);u(()=>l(r,_(Ne).description)),o(e,a)};D(n,e=>{_(Ne)&&e(t)})}o(w,b)},footer:w=>{var b=ot(),n=E(b,!0);u(t=>l(n,t),[()=>d.onboarding_setupCard_editInSettings_footer()]),o(w,b)},$$slots:{trigger:!0,content:!0,footer:!0}})},Nt=f=>{var m=G(),y=x(m);{var k=e=>{var a=te(),r=x(a),s=c(r);ie(s);var p=c(s);u((g,v)=>{l(r,`${g??""} `),l(p,` ${v??""}`)},[()=>d.onboarding_setupCard_agentReadyNamed_before(),()=>d.onboarding_setupCard_agentReadyNamed_after()]),o(e,a)},w=e=>{var a=A();u(r=>l(a,r),[()=>d.onboarding_setupCard_agentReady_label()]),o(e,a)},b=e=>{var a=te(),r=x(a),s=c(r);ie(s);var p=c(s);u((g,v)=>{l(r,`${g??""} `),l(p,` ${v??""}`)},[()=>d.onboarding_setupCard_specStartingUp_before(),()=>d.onboarding_setupCard_specStartingUp_after()]),o(e,a)},n=e=>{var a=te(),r=x(a),s=c(r);ie(s);var p=c(s);u((g,v)=>{l(r,`${g??""} `),l(p,` ${v??""}`)},[()=>d.onboarding_setupCard_startingUpNamed_before(),()=>d.onboarding_setupCard_startingUpNamed_after()]),o(e,a)},t=e=>{var a=A();u(r=>l(a,r),[()=>d.onboarding_setupCard_startingUp_label()]),o(e,a)};D(y,e=>{!ne()&&U()?e(k):ne()?_(Ue)?e(b,2):U()?e(n,3):e(t,-1):e(w,1)})}o(f,m)},Tt=f=>{var m=G(),y=x(m);{var k=e=>{var a=te(),r=x(a),s=c(r);ie(s);var p=c(s);u((g,v)=>{l(r,`${g??""} `),l(p,` ${v??""}`)},[()=>d.onboarding_setupCard_agentReadyNamed_before(),()=>d.onboarding_setupCard_agentReadyNamed_after()]),o(e,a)},w=e=>{var a=A();u(r=>l(a,r),[()=>d.onboarding_setupCard_agentReady_label()]),o(e,a)},b=e=>{var a=te(),r=x(a),s=c(r);ie(s);var p=c(s);u((g,v)=>{l(r,`${g??""} `),l(p,` ${v??""}`)},[()=>d.onboarding_setupCard_specDone_before(),()=>d.onboarding_setupCard_specDone_after()]),o(e,a)},n=e=>{var a=te(),r=x(a),s=c(r);ie(s);var p=c(s);u((g,v)=>{l(r,`${g??""} `),l(p,` ${v??""}`)},[()=>d.onboarding_setupCard_agentDoneNamed_before(),()=>d.onboarding_setupCard_agentDoneNamed_after()]),o(e,a)},t=e=>{var a=A();u(r=>l(a,r),[()=>d.onboarding_setupCard_agentOrienting_label()]),o(e,a)};D(y,e=>{!ne()&&U()?e(k):ne()?_(Ue)?e(b,2):U()?e(n,3):e(t,-1):e(w,1)})}o(f,m)};var Ke=W(Ge);{var Ct=f=>{i(f,se,()=>Gt,()=>"-ml-px transform scale-[0.98]",()=>Z,()=>me)};D(Ke,f=>{se()!=="pending"&&f(Ct)})}var Ye=c(Ke,2);{var wt=f=>{i(f,ue,()=>Kt,()=>"",()=>be,()=>xe)};D(Ye,f=>{ue()!=="pending"&&!Q()&&!oe()&&f(wt)})}var qe=c(Ye,2);{var St=f=>{i(f,X,()=>Yt,()=>"ml-[0.5px]",()=>Dt,()=>It)};D(qe,f=>{X()&&X()!=="pending"&&f(St)})}var yt=c(qe,2);{var kt=f=>{i(f,ge,()=>qt,()=>"ml-[-0.5px]",()=>Nt,()=>Tt)};D(yt,f=>{ge()!=="pending"&&f(kt)})}L(Ge)}L(ye),u(()=>et(ye,1,`${Jt} w-full overflow-hidden transition-all duration-spring-slow ease-spring-slow motion-reduce:transition-none`,"svelte-enden2")),o(z,ye);var Pt=Lt(mt);return ae(),Pt}export{Ca as W,Ma as a,ja as c,za as g};
1
+ import{a$ as Ft,aA as Rt,a1 as Je}from"./Coblm6PA.js";import{bI as At,aD as _,aG as Et,bH as Le,bV as it,bs as Bt,ca as Wt,a5 as W,bA as L,W as o,bS as c,b_ as u,bn as Lt,c9 as S,aA as O,bl as E,bO as l,b$ as A,aB as N,bf as H,a7 as G,ay as x,be as Pe,am as Re,ax as Ae}from"./DYhIMPy1.js";import{t as Ut,br as F,a_ as D,bz as jt,bv as Ve,bt as Mt,b as zt,bp as d}from"./DXyyWeag.js";import{G as Xe}from"./DyvrH0mm.js";import{s as Qe}from"./Cuqq8bL5.js";import{I as V,b as Ze,D as le}from"./BboIV5H5.js";import{w as Ee,v as et,u as tt}from"./CjaOLL1c.js";import{F as $t,bk as Gt,aJ as Kt,cF as Yt,ci as qt}from"./BTdkHPOB.js";import{k as Ht}from"./DT4bpJWb.js";import{f as Be}from"./Bfr1QjPr.js";import"./ChTqQfQN.js";import"./DJkHth-B.js";import"./D5ej8a-y.js";import{q as Jt,h as Vt,S as Xt}from"./DjXa_Id4.js";import{O as We}from"./CR0wuNAQ.js";import{bM as Qt,D as Zt,y as ea}from"./DtIYVb7q.js";import{d as ta}from"./CckCknq8.js";import{s as aa,f as ra,c as at}from"./BViGldWr.js";function ja(z){let C=0,$=!1;function _e(I){$!==I&&($=I,z.onDragChange(I))}function pe(){C=0,_e(!1)}function ae(I){return z.isEnabled&&!z.isEnabled()?!1:Rt(I)}return{handleDragEnter(I){ae(I)&&(I.preventDefault(),C++,_e(!0))},handleDragLeave(I){ae(I)&&(I.preventDefault(),C=Math.max(0,C-1),C===0&&_e(!1))},handleDragOver(I){ae(I)&&I.preventDefault()},handleDrop(I){if(!ae(I))return;I.preventDefault(),pe();const Y=Ft(I.dataTransfer);(Y.files.length>0||Y.folderFiles.length>0)&&z.onDrop(Y)},reset:pe}}const lt=Symbol("panel-file-drop-context");function Ma(){let z=it(null);const C={register($){Le(z,$)},unregister($){_(z)===$&&Le(z,null)}};return At(lt,C),{context:C,handler:{get current(){return _(z)}}}}function za(){return Et(lt)??null}var na=N('<span class="inline-flex items-center gap-1.5 svelte-enden2"> </span>'),sa=N('<h3 class="text-lg font-semibold tracking-[-0.016em] transition-colors duration-spring-slow ease-spring-slow motion-reduce:transition-none svelte-enden2"><!></h3>'),oa=N('<span class="inline-block col-span-1 row-span-1 svelte-enden2"> </span>'),ia=N('<span class="text-sm font-mono text-muted-foreground tabular-nums svelte-enden2"><span class="inline-grid *:[grid-area:1/1] svelte-enden2"><!></span> </span>'),la=N('<div class="absolute inset-0 left-5 svelte-enden2"><!></div>'),rt=N('<div class="svelte-enden2"><!></div>'),da=N('<div class="relative flex items-start overflow-hidden rounded-md py-0.75 text-base leading-relaxed svelte-enden2"><!> <span data-testid="workspace-setup-step-icon"><!></span> <div class="setup-step-content min-w-0 text-muted-foreground font-normal leading-snug relative z-10 svelte-enden2" data-testid="workspace-setup-step-content"><!></div></div>'),_a=N('<span data-testid="setup-card-progress-label" class="svelte-enden2"> </span> <div class="mt-1 h-[2px] w-full max-w-64 rounded-full bg-secondary overflow-hidden svelte-enden2"><div class="h-full bg-foreground/60 transition-[width] duration-spring-slow ease-spring-slow motion-reduce:transition-none svelte-enden2" role="progressbar" aria-valuemin="0" aria-valuemax="100" data-testid="setup-card-progress-bar"></div></div>',1),de=N(" <!>",1),pa=N('<span data-testid="setup-card-plain-folder" class="svelte-enden2"> <!> </span>'),va=N(' <code class="text-sm bg-secondary py-1 px-1.5 svelte-enden2"> </code> <!>',1),nt=N(" <!> <!>",1),ca=N(' <span class="svelte-enden2"> </span> ',1),ua=N(' <span class="svelte-enden2"> </span> <!>',1),ga=N('<span class="underline underline-offset-2 svelte-enden2"> </span><span class="whitespace-nowrap svelte-enden2"><span class="underline underline-offset-2 svelte-enden2"> </span><span class="setup-reference-punctuation svelte-enden2" aria-hidden="true"> </span></span>',1),fa=N("<!> ",1),st=N('<span class="svelte-enden2"> </span>'),te=N(" <!> ",1),ma=N('<pre class="text-xs text-muted-foreground font-mono leading-snug line-clamp-2 whitespace-pre-wrap svelte-enden2"> </pre>'),ot=N('<span class="text-xs text-muted-foreground opacity-50 svelte-enden2"> </span>'),ba=N(" <!> <!> ",1),xa=N('<p class="text-xs text-muted-foreground leading-snug svelte-enden2"> </p>'),ha=N('<div><div class="flex items-baseline gap-2.5 pt-3 pb-2 svelte-enden2"><div class="inline-grid *:[grid-area:1/1] svelte-enden2"><!></div> <!></div> <div class="space-y-0.5 pb-4 svelte-enden2"><!> <!> <!> <!></div></div>');function Ca(z,C){if(new.target)return Ut({component:Ca,...z});Bt(C,!0);const $=()=>Ve(dt,"$progressEntry$",pe),_e=()=>Ve(_t,"$specialists$",pe),[pe,ae]=Mt();let I=F(C,"repoName",7),Y=F(C,"repoPath",7),q=F(C,"worktreePath",7),ve=F(C,"workspaceId",7),K=F(C,"branch",7),ce=F(C,"baseRef",7,"origin/main"),re=F(C,"projectType",7),X=F(C,"setupScriptStatus",7),Ce=F(C,"setupScriptContent",7),we=F(C,"onFocusSetupTerminal",7),De=F(C,"specialistName",7),U=F(C,"specialistId",7),ne=F(C,"hasPrompt",7,!0),se=F(C,"repoStatus",7,"pending"),ue=F(C,"branchStatus",7,"pending"),ge=F(C,"agentStatus",7,"pending"),Q=F(C,"skipIsolation",7,!1),oe=F(C,"plainFolder",7,!1),Ie=F(C,"progressId",7);const dt=aa(Ie()??""),_t=Qt();let fe=it(0);Wt(()=>{const i=Math.min($()?.percent??0,100);i>_(fe)&&Le(fe,i,!0)});const pt=S(()=>$()?.sawFrame===!0),vt=S(()=>ce().replace(/^[^/]+\//,"")),Ne=S(()=>U()?ea(U()):void 0),ct=S(()=>U()?_e().find(i=>i.id===U()):void 0),ut=S(()=>_(ct)?.name||_(Ne)?.name||De()),Ue=S(()=>U()==="spec-writer"||U()===Zt),je=S(()=>{const i=oe()?[se()]:[se(),ue()];return X()&&i.push(X()),i.push(ge()),i}),Te=S(()=>_(je).length),Me=S(()=>_(je).filter(i=>i==="done").length),ze=S(()=>Math.min(_(Me)+1,_(Te))),Se=S(()=>_(Me)===_(Te)),$e=S(()=>_(Se)?d.onboarding_setupCard_ready_title():d.onboarding_setupCard_settingUp_title());function gt(i,R){navigator.clipboard.writeText(i),Ht.success(d.onboarding_setupCard_copied_label({label:R}))}function Oe(i){return i.replace(/^\/Users\/[^/]+/,"~")}function ft(){U()&&ta({specialist:U(),hash:"specialists"})}var mt={get repoName(){return I()},set repoName(i){I(i),O()},get repoPath(){return Y()},set repoPath(i){Y(i),O()},get worktreePath(){return q()},set worktreePath(i){q(i),O()},get workspaceId(){return ve()},set workspaceId(i){ve(i),O()},get branch(){return K()},set branch(i){K(i),O()},get baseRef(){return ce()},set baseRef(i="origin/main"){ce(i),O()},get projectType(){return re()},set projectType(i){re(i),O()},get setupScriptStatus(){return X()},set setupScriptStatus(i){X(i),O()},get setupScriptContent(){return Ce()},set setupScriptContent(i){Ce(i),O()},get onFocusSetupTerminal(){return we()},set onFocusSetupTerminal(i){we(i),O()},get specialistName(){return De()},set specialistName(i){De(i),O()},get specialistId(){return U()},set specialistId(i){U(i),O()},get hasPrompt(){return ne()},set hasPrompt(i=!0){ne(i),O()},get repoStatus(){return se()},set repoStatus(i="pending"){se(i),O()},get branchStatus(){return ue()},set branchStatus(i="pending"){ue(i),O()},get agentStatus(){return ge()},set agentStatus(i="pending"){ge(i),O()},get skipIsolation(){return Q()},set skipIsolation(i=!1){Q(i),O()},get plainFolder(){return oe()},set plainFolder(i=!1){oe(i),O()},get progressId(){return Ie()},set progressId(i){Ie(i),O()},$set:jt,$on:(i,R)=>zt(C,i,R)},ye=ha(),ke=W(ye);Ee(ke,"",{},{"padding-inline":"var(--operational-row-inline-padding)"});var Fe=W(ke),bt=W(Fe);Xe(bt,()=>_(Se),i=>{var R=sa(),Z=W(R);{var me=M=>{var B=na(),xe=E(B,!0);u(()=>l(xe,_($e))),o(M,B)},be=M=>{var B=A();u(()=>l(B,_($e))),o(M,B)};D(Z,M=>{_(Se)?M(me):M(be,-1)})}L(R),V(1,R,()=>Ze,()=>({tier:"slow",distance:3})),V(2,R,()=>Ze,()=>({tier:"slow",distance:3})),o(i,R)}),L(Fe);var xt=c(Fe,2);{var ht=i=>{var R=ia(),Z=W(R),me=W(Z);Xe(me,()=>_(ze),M=>{var B=oa(),xe=E(B,!0);u(()=>l(xe,_(ze))),V(1,B,()=>le,()=>({axis:"y",tier:"slow"})),o(M,B)}),L(Z);var be=c(Z);L(R),u(()=>l(be,`/${_(Te)??""}`)),o(i,R)};D(xt,i=>{_(Se)||i(ht)})}L(ke);var Ge=c(ke,2);{const i=(f,m=H,y=H,k=H,w=H,b=H)=>{var n=da();Ee(n,"",{},{gap:"0.25rem","padding-inline":"var(--operational-row-inline-padding)"});var t=W(n);{var e=h=>{var P=la(),T=W(P);Xt(T,{}),L(P),o(h,P)};D(t,h=>{m()==="active"&&h(e)})}var a=c(t,2),r=W(a);$t(r,{get icon(){return y()},size:14,get class(){return k()}}),L(a);var s=c(a,2),p=W(s);{var g=h=>{var P=rt(),T=W(P);Qe(T,w),L(P),V(1,P,()=>le,()=>({axis:"y",tier:"moderate"})),V(2,P,()=>le,()=>({axis:"y",tier:"moderate"})),o(h,P)},v=h=>{var P=rt(),T=W(P);Qe(T,b),L(P),V(1,P,()=>le,()=>({axis:"y",tier:"moderate"})),V(2,P,()=>le,()=>({axis:"y",tier:"moderate"})),o(h,P)};D(p,h=>{m()==="active"?h(g):h(v,-1)})}L(s),L(n),u(()=>et(a,1,`${Vt} relative z-10 mt-1 flex size-4 shrink-0 items-center justify-start`,"svelte-enden2")),V(3,n,()=>le,()=>({tier:"slow"})),o(f,n)},R=(f,m)=>{let y=Re(()=>Ae(m?.(),""));var k=G(),w=x(k);{var b=t=>{{let e=S(()=>d.onboarding_setupCard_originalFolder_label());B(t,I,()=>_(e),Y,()=>_(y))}},n=t=>{var e=A();u(()=>l(e,`${I()??""}${_(y)??""}`)),o(t,e)};D(w,t=>{Y()?t(b):t(n,-1)})}o(f,k)},Z=f=>{var m=G(),y=x(m);{var k=n=>{var t=_a(),e=x(t),a=E(e,!0),r=c(e,2),s=E(r);u((p,g)=>{l(a,p),Ee(s,`width: ${_(fe)??""}%`),tt(s,"aria-label",g),tt(s,"aria-valuenow",_(fe))},[()=>d.workspace_compactInitializer_progressWithPercent_label({label:at($()),percent:ra(_(fe))}),()=>at($())]),o(n,t)},w=n=>{var t=de(),e=x(t),a=c(e);{let r=S(()=>d.onboarding_setupCard_opening_after());R(a,()=>_(r))}u(r=>l(e,`${r??""} `),[()=>d.onboarding_setupCard_opening_before()]),o(n,t)},b=n=>{var t=de(),e=x(t),a=c(e);R(a),u(r=>l(e,`${r??""} `),[()=>d.onboarding_setupCard_creatingIsolatedCopy_before()]),o(n,t)};D(y,n=>{_(pt)&&$()?n(k):Q()||oe()?n(w,1):n(b,-1)})}o(f,m)},me=f=>{var m=G(),y=x(m);{var k=n=>{const t=S(()=>q()||Y());var e=pa(),a=W(e),r=c(a);{var s=v=>{We(v,{get filePath(){return _(t)},get workspaceId(){return ve()},isDirectory:!0,variant:"sidebar",compact:!0,inline:!0,class:"setup-path",children:(h,P)=>{{let T=S(()=>Oe(_(t)));M(h,()=>_(T),()=>".")}},$$slots:{default:!0}})},p=v=>{var h=A();u(()=>l(h,`${I()??""}.`)),o(v,h)};D(r,v=>{_(t)?v(s):v(p,-1)})}var g=c(r);L(e),u((v,h)=>{l(a,`${v??""} `),l(g,` ${h??""}`)},[()=>d.onboarding_setupCard_workingInFolder_before(),()=>d.onboarding_setupCard_plainFolderInPlace_label()]),o(n,e)},w=n=>{var t=va(),e=x(t),a=c(e),r=E(a,!0),s=c(a,2);{var p=v=>{var h=de(),P=x(h),T=c(P);We(T,{get filePath(){return q()},get workspaceId(){return ve()},isDirectory:!0,variant:"sidebar",compact:!0,inline:!0,class:"setup-path",children:(j,ee)=>{{let J=S(()=>Oe(q()));M(j,()=>_(J),()=>".")}},$$slots:{default:!0}}),u(j=>l(P,` ${j??""} `),[()=>d.onboarding_setupCard_at_label()]),o(v,h)},g=v=>{var h=A(".");o(v,h)};D(s,v=>{q()?v(p):v(g,-1)})}u(v=>{l(e,`${v??""} `),l(r,_(vt))},[()=>d.onboarding_setupCard_workingDirectlyOn_before()]),o(n,t)},b=n=>{var t=nt(),e=x(t),a=c(e);R(a);var r=c(a,2);{var s=g=>{var v=de(),h=x(v),P=c(h);We(P,{get filePath(){return q()},get workspaceId(){return ve()},isDirectory:!0,variant:"sidebar",compact:!0,inline:!0,class:"setup-path",children:(T,j)=>{{let ee=S(()=>Oe(q()));M(T,()=>_(ee),()=>".")}},$$slots:{default:!0}}),u(T=>l(h,` ${T??""} `),[()=>d.onboarding_setupCard_at_label()]),o(g,v)},p=g=>{var v=A(".");o(g,v)};D(r,g=>{q()?g(s):g(p,-1)})}u(g=>l(e,`${g??""} `),[()=>d.onboarding_setupCard_createdIsolatedCopy_before()]),o(n,t)};D(y,n=>{oe()?n(k):Q()?n(w,1):n(b,-1)})}o(f,m)},be=f=>{var m=G(),y=x(m);{var k=n=>{var t=G(),e=x(t);{var a=s=>{var p=ca(),g=x(p),v=c(g),h=E(v,!0),P=c(v,1,!0);u((T,j)=>{l(g,`${T??""} `),l(h,K()),l(P,j)},[()=>d.onboarding_setupCard_workingOnBranchNamed_before(),()=>d.onboarding_setupCard_workingOnBranchActive_after()]),o(s,p)},r=s=>{var p=A();u(g=>l(p,g),[()=>d.onboarding_setupCard_workingOnBranch_label()]),o(s,p)};D(e,s=>{K()?s(a):s(r,-1)})}o(n,t)},w=n=>{var t=ua(),e=x(t),a=c(e),r=E(a,!0),s=c(a),p=c(s);{let g=S(()=>d.onboarding_setupCard_baseRef_label()),v=S(()=>d.onboarding_setupCard_creatingBranch_after());B(p,ce,()=>_(g),()=>{},()=>_(v))}u((g,v)=>{l(e,`${g??""} `),l(r,K()),l(s,` ${v??""} `)},[()=>d.onboarding_setupCard_creatingBranch_before(),()=>d.onboarding_setupCard_creatingBranch_middle()]),o(n,t)},b=n=>{var t=A();u(e=>l(t,e),[()=>d.onboarding_setupCard_creatingBranchNoName_label()]),o(n,t)};D(y,n=>{Q()?n(k):K()?n(w,1):n(b,-1)})}o(f,m)},M=(f,m=H,y)=>{let k=Re(()=>Ae(y?.(),""));const w=S(()=>Array.from(m()));var b=ga(),n=x(b),t=E(n,!0),e=c(n),a=W(e),r=E(a,!0),s=c(a),p=E(s,!0);L(e),u((g,v)=>{l(t,g),l(r,v),l(p,_(k))},[()=>_(w).slice(0,-1).join(""),()=>_(w).at(-1)??""]),o(f,b)},B=(f,m=H,y=H,k=H,w)=>{let b=Re(()=>Ae(w?.(),""));const n=S(()=>_(b).match(/^\p{P}+/u)?.[0]??"");var t=fa(),e=x(t);Be(e,{variant:"plain",wrapContent:!1,class:"setup-inline-link cursor-pointer hover:text-foreground transition-colors",onclick:()=>gt(k()??m(),y()),children:(r,s)=>{M(r,m,()=>_(n))},$$slots:{default:!0}});var a=c(e,1,!0);u(r=>l(a,r),[()=>_(b).slice(_(n).length)]),o(f,t)},xe=f=>{var m=G(),y=x(m);{var k=n=>{var t=G(),e=x(t);{var a=s=>{var p=de(),g=x(p),v=c(g);{let h=S(()=>d.onboarding_setupCard_branchName_label()),P=S(()=>d.onboarding_setupCard_workingOnBranchDone_after());B(v,K,()=>_(h),()=>{},()=>_(P))}u(h=>l(g,`${h??""} `),[()=>d.onboarding_setupCard_workingOnBranchNamed_before()]),o(s,p)},r=s=>{var p=A();u(g=>l(p,g),[()=>d.onboarding_setupCard_workingDirectlyOnBranch_label()]),o(s,p)};D(e,s=>{K()?s(a):s(r,-1)})}o(n,t)},w=n=>{var t=nt(),e=x(t),a=c(e);{let s=S(()=>d.onboarding_setupCard_branchName_label()),p=S(()=>d.onboarding_setupCard_workingInNewBranch_middle());B(a,K,()=>_(s),()=>{},()=>_(p))}var r=c(a,2);{let s=S(()=>d.onboarding_setupCard_baseRef_label()),p=S(()=>d.onboarding_setupCard_workingInNewBranch_after());B(r,ce,()=>_(s),()=>{},()=>_(p))}u(s=>l(e,`${s??""} `),[()=>d.onboarding_setupCard_workingInNewBranch_before()]),o(n,t)},b=n=>{var t=A();u(e=>l(t,e),[()=>d.onboarding_setupCard_branchCreated_label()]),o(n,t)};D(y,n=>{Q()?n(k):K()?n(w,1):n(b,-1)})}o(f,m)},Dt=f=>{Pe();var m=te(),y=x(m),k=c(y);{var w=t=>{var e=st(),a=E(e,!0);u(()=>l(a,re())),o(t,e)},b=t=>{var e=A();u(a=>l(e,a),[()=>d.onboarding_setupCard_project_label()]),o(t,e)};D(k,t=>{re()?t(w):t(b,-1)})}var n=c(k);u((t,e)=>{l(y,`${t??""} `),l(n,` ${e??""}`)},[()=>d.onboarding_setupCard_runningSetup_before(),()=>d.onboarding_setupCard_runningSetup_after()]),o(f,m)},It=f=>{Pe();var m=ba(),y=x(m),k=c(y);{var w=r=>{var s=st(),p=E(s,!0);u(()=>l(p,re())),o(r,s)},b=r=>{var s=A();u(p=>l(s,p),[()=>d.onboarding_setupCard_project_label()]),o(r,s)};D(k,r=>{re()?r(w):r(b,-1)})}var n=c(k),t=c(n);{var e=r=>{var s=de(),p=x(s),g=c(p);Je(g,{class:"inline",side:"bottom",align:"start",interactive:!0,maxWidth:"22rem",delayDuration:300,trigger:T=>{Be(T,{variant:"plain",wrapContent:!1,class:"setup-inline-link underline underline-offset-2 cursor-pointer hover:text-foreground transition-colors",get onclick(){return we()},children:(j,ee)=>{Pe();var J=A();u(he=>l(J,he),[()=>d.onboarding_setupCard_terminalTab_label()]),o(j,J)},$$slots:{default:!0}})},content:T=>{var j=G(),ee=x(j);{var J=he=>{var He=ma(),Ot=E(He,!0);u(()=>l(Ot,Ce())),o(he,He)};D(ee,he=>{Ce()&&he(J)})}o(T,j)},footer:T=>{var j=ot(),ee=E(j,!0);u(J=>l(ee,J),[()=>d.onboarding_setupCard_openTerminal_footer()]),o(T,j)},$$slots:{trigger:!0,content:!0,footer:!0}}),u(v=>l(p,` ${v??""} `),[()=>d.onboarding_setupCard_ranSetupIn_middle()]),o(r,s)};D(t,r=>{we()&&r(e)})}var a=c(t,1,!0);u((r,s,p)=>{l(y,`${r??""} `),l(n,` ${s??""}`),l(a,p)},[()=>d.onboarding_setupCard_ranSetup_before(),()=>d.onboarding_setupCard_ranSetup_middle(),()=>d.onboarding_setupCard_ranSetup_after()]),o(f,m)},ie=f=>{Je(f,{class:"inline",side:"bottom",align:"start",interactive:!0,maxWidth:"22rem",delayDuration:300,trigger:w=>{Be(w,{variant:"plain",wrapContent:!1,class:"setup-inline-link underline underline-offset-2 cursor-pointer hover:text-foreground transition-colors",onclick:ft,children:(b,n)=>{Pe();var t=A();u(()=>l(t,_(ut))),o(b,t)},$$slots:{default:!0}})},content:w=>{var b=G(),n=x(b);{var t=e=>{var a=xa(),r=E(a,!0);u(()=>l(r,_(Ne).description)),o(e,a)};D(n,e=>{_(Ne)&&e(t)})}o(w,b)},footer:w=>{var b=ot(),n=E(b,!0);u(t=>l(n,t),[()=>d.onboarding_setupCard_editInSettings_footer()]),o(w,b)},$$slots:{trigger:!0,content:!0,footer:!0}})},Nt=f=>{var m=G(),y=x(m);{var k=e=>{var a=te(),r=x(a),s=c(r);ie(s);var p=c(s);u((g,v)=>{l(r,`${g??""} `),l(p,` ${v??""}`)},[()=>d.onboarding_setupCard_agentReadyNamed_before(),()=>d.onboarding_setupCard_agentReadyNamed_after()]),o(e,a)},w=e=>{var a=A();u(r=>l(a,r),[()=>d.onboarding_setupCard_agentReady_label()]),o(e,a)},b=e=>{var a=te(),r=x(a),s=c(r);ie(s);var p=c(s);u((g,v)=>{l(r,`${g??""} `),l(p,` ${v??""}`)},[()=>d.onboarding_setupCard_specStartingUp_before(),()=>d.onboarding_setupCard_specStartingUp_after()]),o(e,a)},n=e=>{var a=te(),r=x(a),s=c(r);ie(s);var p=c(s);u((g,v)=>{l(r,`${g??""} `),l(p,` ${v??""}`)},[()=>d.onboarding_setupCard_startingUpNamed_before(),()=>d.onboarding_setupCard_startingUpNamed_after()]),o(e,a)},t=e=>{var a=A();u(r=>l(a,r),[()=>d.onboarding_setupCard_startingUp_label()]),o(e,a)};D(y,e=>{!ne()&&U()?e(k):ne()?_(Ue)?e(b,2):U()?e(n,3):e(t,-1):e(w,1)})}o(f,m)},Tt=f=>{var m=G(),y=x(m);{var k=e=>{var a=te(),r=x(a),s=c(r);ie(s);var p=c(s);u((g,v)=>{l(r,`${g??""} `),l(p,` ${v??""}`)},[()=>d.onboarding_setupCard_agentReadyNamed_before(),()=>d.onboarding_setupCard_agentReadyNamed_after()]),o(e,a)},w=e=>{var a=A();u(r=>l(a,r),[()=>d.onboarding_setupCard_agentReady_label()]),o(e,a)},b=e=>{var a=te(),r=x(a),s=c(r);ie(s);var p=c(s);u((g,v)=>{l(r,`${g??""} `),l(p,` ${v??""}`)},[()=>d.onboarding_setupCard_specDone_before(),()=>d.onboarding_setupCard_specDone_after()]),o(e,a)},n=e=>{var a=te(),r=x(a),s=c(r);ie(s);var p=c(s);u((g,v)=>{l(r,`${g??""} `),l(p,` ${v??""}`)},[()=>d.onboarding_setupCard_agentDoneNamed_before(),()=>d.onboarding_setupCard_agentDoneNamed_after()]),o(e,a)},t=e=>{var a=A();u(r=>l(a,r),[()=>d.onboarding_setupCard_agentOrienting_label()]),o(e,a)};D(y,e=>{!ne()&&U()?e(k):ne()?_(Ue)?e(b,2):U()?e(n,3):e(t,-1):e(w,1)})}o(f,m)};var Ke=W(Ge);{var Ct=f=>{i(f,se,()=>Gt,()=>"-ml-px transform scale-[0.98]",()=>Z,()=>me)};D(Ke,f=>{se()!=="pending"&&f(Ct)})}var Ye=c(Ke,2);{var wt=f=>{i(f,ue,()=>Kt,()=>"",()=>be,()=>xe)};D(Ye,f=>{ue()!=="pending"&&!Q()&&!oe()&&f(wt)})}var qe=c(Ye,2);{var St=f=>{i(f,X,()=>Yt,()=>"ml-[0.5px]",()=>Dt,()=>It)};D(qe,f=>{X()&&X()!=="pending"&&f(St)})}var yt=c(qe,2);{var kt=f=>{i(f,ge,()=>qt,()=>"ml-[-0.5px]",()=>Nt,()=>Tt)};D(yt,f=>{ge()!=="pending"&&f(kt)})}L(Ge)}L(ye),u(()=>et(ye,1,`${Jt} w-full overflow-hidden transition-all duration-spring-slow ease-spring-slow motion-reduce:transition-none`,"svelte-enden2")),o(z,ye);var Pt=Lt(mt);return ae(),Pt}export{Ca as W,Ma as a,ja as c,za as g};
@@ -1 +1 @@
1
- import{i as r}from"./RD9QY1Yc.js";import{w as a,I as e}from"./DyvrH0mm.js";import{Iy as s}from"./D5ej8a-y.js";import{c as t}from"./CSmqi2h5.js";function C(o,i){return t(s,o,{navigate:i,...a("windowChrome")?{closeWindow:()=>r(e.WINDOW.CLOSE)}:{}})}export{C as closeActiveTab};
1
+ import{i as r}from"./RD9QY1Yc.js";import{w as a,I as e}from"./DyvrH0mm.js";import{Iy as s}from"./D5ej8a-y.js";import{c as t}from"./_pQ-TiLj.js";function C(o,i){return t(s,o,{navigate:i,...a("windowChrome")?{closeWindow:()=>r(e.WINDOW.CLOSE)}:{}})}export{C as closeActiveTab};