@intent-hq/web 2.332.1 → 2.333.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (142) hide show
  1. package/package.json +1 -1
  2. package/web/app/immutable/chunks/{Cqn-1YSM.js → -Iq9nlAE.js} +1 -1
  3. package/web/app/immutable/chunks/{quL6pHxK.js → 31GDMDj9.js} +2 -2
  4. package/web/app/immutable/chunks/{BA5tpMka.js → 5BpiFfqe.js} +2 -2
  5. package/web/app/immutable/chunks/{D7VyNuwA.js → 60bkkSrP.js} +1 -1
  6. package/web/app/immutable/chunks/{C0mowKhJ.js → 9Hyeqhzq.js} +1 -1
  7. package/web/app/immutable/chunks/{DKDrWyIv.js → B3iZfhYu.js} +1 -1
  8. package/web/app/immutable/chunks/{Dr8wriKt.js → B4EyOcMP.js} +1 -1
  9. package/web/app/immutable/chunks/{CKDHxXsq.js → B56Mq91W.js} +1 -1
  10. package/web/app/immutable/chunks/{Dsnfh8nl.js → B7UFQMCa.js} +1 -1
  11. package/web/app/immutable/chunks/{DCmZzs_t.js → BB28H67K.js} +1 -1
  12. package/web/app/immutable/chunks/{CYgZakZC.js → BFjtbKU5.js} +1 -1
  13. package/web/app/immutable/chunks/{Dz_Si7JX.js → BIAzHfjL.js} +1 -1
  14. package/web/app/immutable/chunks/{BqzIXvAg.js → BJ8NXEMJ.js} +1 -1
  15. package/web/app/immutable/chunks/{BwHfUkOf.js → BKzrjZp1.js} +2 -2
  16. package/web/app/immutable/chunks/{NrjxMz2i.js → BP23sDOE.js} +1 -1
  17. package/web/app/immutable/chunks/{BL5Rh4Sz.js → BRzkxjZ7.js} +1 -1
  18. package/web/app/immutable/chunks/{CNf_ONa3.js → BSHExHmB.js} +1 -1
  19. package/web/app/immutable/chunks/{CHqSpAhM.js → BVV0KdYJ.js} +1 -1
  20. package/web/app/immutable/chunks/{jyWTS4lZ.js → BVlLHHIh.js} +2 -2
  21. package/web/app/immutable/chunks/{BaUPC41p.js → BWr9U17b.js} +1 -1
  22. package/web/app/immutable/chunks/{g2VxMEGm.js → BY6hRbJf.js} +1 -1
  23. package/web/app/immutable/chunks/{ZiiwkTV-.js → BZ3Ae-4U.js} +1 -1
  24. package/web/app/immutable/chunks/{DmihuZfS.js → BZCXNg5s.js} +1 -1
  25. package/web/app/immutable/chunks/{7usnYPNF.js → BaoulGHD.js} +1 -1
  26. package/web/app/immutable/chunks/{INGceerY.js → BcU-Zn0b.js} +3 -3
  27. package/web/app/immutable/chunks/{CFF4_0hC.js → BcgRdy5h.js} +1 -1
  28. package/web/app/immutable/chunks/{D10X859N.js → Bcxw4jL3.js} +1 -1
  29. package/web/app/immutable/chunks/{C0Tvtwp-.js → BfQcXH7l.js} +1 -1
  30. package/web/app/immutable/chunks/{BCJxSao_.js → Bfc3D5MS.js} +1 -1
  31. package/web/app/immutable/chunks/{CI8cTsXC.js → BfzrGa3A.js} +1 -1
  32. package/web/app/immutable/chunks/{IlWp1nGl.js → BirwNQi3.js} +4 -4
  33. package/web/app/immutable/chunks/{CdgAiqh6.js → Bk0QUQDW.js} +1 -1
  34. package/web/app/immutable/chunks/{BKjGGpm1.js → BkUS-e35.js} +4 -4
  35. package/web/app/immutable/chunks/{EnAyz2Ek.js → BlMN_W9c.js} +1 -1
  36. package/web/app/immutable/chunks/{BRc8KqQS.js → BqgLlXte.js} +1 -1
  37. package/web/app/immutable/chunks/{hgJz-lxL.js → BrgKUa-G.js} +1 -1
  38. package/web/app/immutable/chunks/{BwEg66U_.js → BsXH6ASx.js} +1 -1
  39. package/web/app/immutable/chunks/{Qj93naoS.js → BtQGF6MG.js} +1 -1
  40. package/web/app/immutable/chunks/{ClRyDWdo.js → C-hzwobp.js} +1 -1
  41. package/web/app/immutable/chunks/{Dl-ybQ3z.js → C0l2XLvP.js} +1 -1
  42. package/web/app/immutable/chunks/{-vn0_Dx_.js → C2q2h8LC.js} +1 -1
  43. package/web/app/immutable/chunks/{phDOGC4e.js → C4YSpHI_.js} +1 -1
  44. package/web/app/immutable/chunks/{Jr_-MnLx.js → C66LITAl.js} +1 -1
  45. package/web/app/immutable/chunks/C7ZRfZC1.js +2 -0
  46. package/web/app/immutable/chunks/{CY6Ad305.js → C7r-OuIg.js} +1 -1
  47. package/web/app/immutable/chunks/{CpxAEr5T.js → C8Ewc55B.js} +1 -1
  48. package/web/app/immutable/chunks/{ShdiMoFn.js → C8XfwzHP.js} +1 -1
  49. package/web/app/immutable/chunks/{BB1bdkKj.js → C92p6Xk1.js} +1 -1
  50. package/web/app/immutable/chunks/{CqCOQpit.js → CE3cTmuW.js} +1 -1
  51. package/web/app/immutable/chunks/{La4DuXBq.js → CFp19SMm.js} +1 -1
  52. package/web/app/immutable/chunks/{B4CT3ZnO.js → CH58YVSk.js} +1 -1
  53. package/web/app/immutable/chunks/{GLVkpxmO.js → CHjnK8eD.js} +1 -1
  54. package/web/app/immutable/chunks/{B9Yp_9YB.js → CJqmLHCx.js} +1 -1
  55. package/web/app/immutable/chunks/{eO-TU1Uq.js → CNKDyXfa.js} +2 -2
  56. package/web/app/immutable/chunks/{CYBP2kAe.js → COKOIhyC.js} +1 -1
  57. package/web/app/immutable/chunks/{zVHvgElF.js → COZF9anf.js} +1 -1
  58. package/web/app/immutable/chunks/{D-0JsOoD.js → CPYy7Bl8.js} +1 -1
  59. package/web/app/immutable/chunks/{BL_9_s5D.js → CVuCQwR4.js} +1 -1
  60. package/web/app/immutable/chunks/{BWcK5t6w.js → C_1dnC1X.js} +1 -1
  61. package/web/app/immutable/chunks/{CCXE6oHN.js → Cd6dNiWt.js} +1 -1
  62. package/web/app/immutable/chunks/{DEL8D3D_.js → CdxfWnwV.js} +1 -1
  63. package/web/app/immutable/chunks/{IqoI0Sop.js → Ce-iGpTr.js} +1 -1
  64. package/web/app/immutable/chunks/{rExovR4J.js → Ce6vcV0f.js} +1 -1
  65. package/web/app/immutable/chunks/{BLMF5IFF.js → Cf8id2rO.js} +1 -1
  66. package/web/app/immutable/chunks/{uc0NJTBD.js → CkyjResP.js} +1 -1
  67. package/web/app/immutable/chunks/{C7eDW7UL.js → ClAv9h9H.js} +1 -1
  68. package/web/app/immutable/chunks/{CA4-dLAB.js → ClouAezj.js} +3 -3
  69. package/web/app/immutable/chunks/{u6FKwXpA.js → CnivRSyI.js} +1 -1
  70. package/web/app/immutable/chunks/{VIhYvpCH.js → Coc7Z84W.js} +1 -1
  71. package/web/app/immutable/chunks/{wF4KE5sw.js → Coh-8FDf.js} +1 -1
  72. package/web/app/immutable/chunks/{CLMPxb4p.js → Cpr9mNUv.js} +1 -1
  73. package/web/app/immutable/chunks/{DO_AuT0X.js → Cr3SSyqj.js} +2 -2
  74. package/web/app/immutable/chunks/{DxhV3A5f.js → CwOQgsIB.js} +1 -1
  75. package/web/app/immutable/chunks/{DTmn8xTR.js → D0BCTOi7.js} +3 -3
  76. package/web/app/immutable/chunks/{o1Ob2Zjf.js → D6H9qMAI.js} +1 -1
  77. package/web/app/immutable/chunks/{XP2gV3S1.js → D9iOEcKX.js} +1 -1
  78. package/web/app/immutable/chunks/{dpdLxO6f.js → DBPvj7yj.js} +3 -3
  79. package/web/app/immutable/chunks/{D3hH9rNi.js → DFIsXmE_.js} +1 -1
  80. package/web/app/immutable/chunks/{C0y0G1dd.js → DJhmhU0F.js} +3 -3
  81. package/web/app/immutable/chunks/{RnZH5q_1.js → DJvRJQDF.js} +1 -1
  82. package/web/app/immutable/chunks/{DsAgoq4e.js → DKShYaIJ.js} +1 -1
  83. package/web/app/immutable/chunks/{DgyZN5lH.js → DM0_7KAa.js} +2 -2
  84. package/web/app/immutable/chunks/{Zi02dDqY.js → DNnl-ruw.js} +1 -1
  85. package/web/app/immutable/chunks/{Df2kEBtG.js → DOW78mrl.js} +1 -1
  86. package/web/app/immutable/chunks/{C9KtSy8M.js → DPgkHx8Z.js} +1 -1
  87. package/web/app/immutable/chunks/{DbZHCFkf.js → DR0muAaQ.js} +1 -1
  88. package/web/app/immutable/chunks/{Cc05Arx_.js → DVUO3Tx5.js} +1 -1
  89. package/web/app/immutable/chunks/{DJ54sSxs.js → DX3DcnUQ.js} +1 -1
  90. package/web/app/immutable/chunks/{Pd9lmiP5.js → DXKRxRra.js} +1 -1
  91. package/web/app/immutable/chunks/{C2aaRYxm.js → DYod7WBg.js} +1 -1
  92. package/web/app/immutable/chunks/{C1dnD04C.js → DZQgWgP1.js} +12 -12
  93. package/web/app/immutable/chunks/{DdkKMLjv.js → DeLyGL9g.js} +1 -1
  94. package/web/app/immutable/chunks/{D0WfEFI8.js → DhuL_LWc.js} +1 -1
  95. package/web/app/immutable/chunks/{Rni3zXxR.js → DlLRbNZR.js} +1 -1
  96. package/web/app/immutable/chunks/{DegFSSpo.js → DlMw3wRu.js} +1 -1
  97. package/web/app/immutable/chunks/{CS_bXQRj.js → Dnnm-5K1.js} +1 -1
  98. package/web/app/immutable/chunks/{BSQNx4Vk.js → Dogvt2Uo.js} +1 -1
  99. package/web/app/immutable/chunks/{DytZzUZT.js → DsuM61wf.js} +1 -1
  100. package/web/app/immutable/chunks/{9yLYut_f.js → DxnpD-Cb.js} +1 -1
  101. package/web/app/immutable/chunks/{AMuVbvNH.js → DyC0TlBU.js} +1 -1
  102. package/web/app/immutable/chunks/{BlieKkQ9.js → Dyx0lQpx.js} +1 -1
  103. package/web/app/immutable/chunks/{MbWbx059.js → Dzei16j2.js} +1 -1
  104. package/web/app/immutable/chunks/{CH1kO0eh.js → E1eRJOvk.js} +1 -1
  105. package/web/app/immutable/chunks/{a_UT53Db.js → F7DwQcta.js} +1 -1
  106. package/web/app/immutable/chunks/{BaodgUOU.js → K9qmyacm.js} +1 -1
  107. package/web/app/immutable/chunks/{Ci37X5fE.js → LD1u5ntr.js} +2 -2
  108. package/web/app/immutable/chunks/{L4diC29H.js → LTdieHUf.js} +4 -4
  109. package/web/app/immutable/chunks/{CInI0Sus.js → LU9o-VsR.js} +1 -1
  110. package/web/app/immutable/chunks/{DDNd0tnm.js → NmEpUrvw.js} +1 -1
  111. package/web/app/immutable/chunks/{BeZwt05v.js → QBrdUuj3.js} +1 -1
  112. package/web/app/immutable/chunks/{BdorRWAe.js → S8lIecOL.js} +1 -1
  113. package/web/app/immutable/chunks/{DsX0vSiK.js → So805CPS.js} +1 -1
  114. package/web/app/immutable/chunks/{vEgCNzPn.js → VzU2yQD-.js} +4 -4
  115. package/web/app/immutable/chunks/{CmtNfm_M.js → WOtBW7MG.js} +1 -1
  116. package/web/app/immutable/chunks/{FgsGgOBB.js → eE1Ik_Y8.js} +1 -1
  117. package/web/app/immutable/chunks/{D6dlkp5M.js → m9iBAChf.js} +1 -1
  118. package/web/app/immutable/chunks/{B6SFcGZ4.js → n9Al_b1R.js} +1 -1
  119. package/web/app/immutable/chunks/{B2Iig513.js → nISUgxKe.js} +1 -1
  120. package/web/app/immutable/chunks/{BzOYno2y.js → nfg7gMK0.js} +1 -1
  121. package/web/app/immutable/chunks/{DB6X5Jmb.js → rKfhSL2S.js} +1 -1
  122. package/web/app/immutable/chunks/{7ts4wsuO.js → uTT4_LLP.js} +1 -1
  123. package/web/app/immutable/chunks/{CdKj5L2M.js → yjIqqlQ2.js} +1 -1
  124. package/web/app/immutable/entry/{app.Btk0VZWt.js → app.BvRxV6R1.js} +2 -2
  125. package/web/app/immutable/entry/start.BrbYIb0p.js +1 -0
  126. package/web/app/immutable/nodes/{0.0HFA2uVE.js → 0.DlMK7EKt.js} +1 -1
  127. package/web/app/immutable/nodes/{1.CZQtUsls.js → 1.Bc43OCNt.js} +1 -1
  128. package/web/app/immutable/nodes/{10.MP2WoiSH.js → 10.CRW4MxVn.js} +1 -1
  129. package/web/app/immutable/nodes/{14.C9nz_rbo.js → 14.fcMbdu6Z.js} +1 -1
  130. package/web/app/immutable/nodes/{17.BIcZRnyp.js → 17.B3dCuKkH.js} +2 -2
  131. package/web/app/immutable/nodes/{2.B3TiYssM.js → 2.XomcwXea.js} +4 -4
  132. package/web/app/immutable/nodes/{3.Bi5S8K8Z.js → 3.tV7qLGeC.js} +1 -1
  133. package/web/app/immutable/nodes/{4.CtEWydTh.js → 4.CLfVtjCR.js} +1 -1
  134. package/web/app/immutable/nodes/{5.dqwJX5_j.js → 5.DcQbRELp.js} +1 -1
  135. package/web/app/immutable/nodes/{6.D2iLOyko.js → 6.CS7SDYA7.js} +1 -1
  136. package/web/app/immutable/nodes/{7.Ca_BtpTz.js → 7.D7iSydzH.js} +1 -1
  137. package/web/app/immutable/nodes/{8.BhbuK5L7.js → 8.C7yThhga.js} +4 -4
  138. package/web/app/immutable/nodes/{9.Db1dzGjG.js → 9.Daikd_tE.js} +4 -4
  139. package/web/app/version.json +1 -1
  140. package/web/index.html +9 -9
  141. package/web/app/immutable/chunks/D6WWKWsa.js +0 -2
  142. package/web/app/immutable/entry/start.atGTcU00.js +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@intent-hq/web",
3
- "version": "2.332.1",
3
+ "version": "2.333.0",
4
4
  "description": "Intent in the browser: a standalone web server for Intent machines.",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
@@ -1,4 +1,4 @@
1
- import{g as fe}from"./BWcK5t6w.js";import{b as o,ay as te,X as U,aX as ye,ad as be,ah as me,aL as ke,b3 as Ee,O as K,aV as F,ax as _e,J as Se,an as Ne,au as ce,H as le}from"./BKjGGpm1.js";var $=(function(){var e=o(function(O,s,n,r){for(n=n||{},r=O.length;r--;n[O[r]]=s);return n},"o"),h=[1,4],p=[1,13],i=[1,12],d=[1,15],k=[1,16],m=[1,20],l=[1,19],D=[6,7,8],I=[1,26],g=[1,24],w=[1,25],E=[6,7,11],G=[1,31],N=[6,7,11,24],V=[1,6,13,16,17,20,23],f=[1,35],A=[1,36],L=[1,6,7,11,13,16,17,20,23],H=[1,38],T={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,KANBAN:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,shapeData:15,ICON:16,CLASS:17,nodeWithId:18,nodeWithoutId:19,NODE_DSTART:20,NODE_DESCR:21,NODE_DEND:22,NODE_ID:23,SHAPE_DATA:24,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"KANBAN",11:"EOF",13:"SPACELIST",16:"ICON",17:"CLASS",20:"NODE_DSTART",21:"NODE_DESCR",22:"NODE_DEND",23:"NODE_ID",24:"SHAPE_DATA"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,3],[12,2],[12,2],[12,2],[12,1],[12,2],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[19,3],[18,1],[18,4],[15,2],[15,1]],performAction:o(function(s,n,r,a,u,t,M){var c=t.length-1;switch(u){case 6:case 7:return a;case 8:a.getLogger().trace("Stop NL ");break;case 9:a.getLogger().trace("Stop EOF ");break;case 11:a.getLogger().trace("Stop NL2 ");break;case 12:a.getLogger().trace("Stop EOF2 ");break;case 15:a.getLogger().info("Node: ",t[c-1].id),a.addNode(t[c-2].length,t[c-1].id,t[c-1].descr,t[c-1].type,t[c]);break;case 16:a.getLogger().info("Node: ",t[c].id),a.addNode(t[c-1].length,t[c].id,t[c].descr,t[c].type);break;case 17:a.getLogger().trace("Icon: ",t[c]),a.decorateNode({icon:t[c]});break;case 18:case 23:a.decorateNode({class:t[c]});break;case 19:a.getLogger().trace("SPACELIST");break;case 20:a.getLogger().trace("Node: ",t[c-1].id),a.addNode(0,t[c-1].id,t[c-1].descr,t[c-1].type,t[c]);break;case 21:a.getLogger().trace("Node: ",t[c].id),a.addNode(0,t[c].id,t[c].descr,t[c].type);break;case 22:a.decorateNode({icon:t[c]});break;case 27:a.getLogger().trace("node found ..",t[c-2]),this.$={id:t[c-1],descr:t[c-1],type:a.getType(t[c-2],t[c])};break;case 28:this.$={id:t[c],descr:t[c],type:0};break;case 29:a.getLogger().trace("node found ..",t[c-3]),this.$={id:t[c-3],descr:t[c-1],type:a.getType(t[c-2],t[c])};break;case 30:this.$=t[c-1]+t[c];break;case 31:this.$=t[c];break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:h},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:h},{6:p,7:[1,10],9:9,12:11,13:i,14:14,16:d,17:k,18:17,19:18,20:m,23:l},e(D,[2,3]),{1:[2,2]},e(D,[2,4]),e(D,[2,5]),{1:[2,6],6:p,12:21,13:i,14:14,16:d,17:k,18:17,19:18,20:m,23:l},{6:p,9:22,12:11,13:i,14:14,16:d,17:k,18:17,19:18,20:m,23:l},{6:I,7:g,10:23,11:w},e(E,[2,24],{18:17,19:18,14:27,16:[1,28],17:[1,29],20:m,23:l}),e(E,[2,19]),e(E,[2,21],{15:30,24:G}),e(E,[2,22]),e(E,[2,23]),e(N,[2,25]),e(N,[2,26]),e(N,[2,28],{20:[1,32]}),{21:[1,33]},{6:I,7:g,10:34,11:w},{1:[2,7],6:p,12:21,13:i,14:14,16:d,17:k,18:17,19:18,20:m,23:l},e(V,[2,14],{7:f,11:A}),e(L,[2,8]),e(L,[2,9]),e(L,[2,10]),e(E,[2,16],{15:37,24:G}),e(E,[2,17]),e(E,[2,18]),e(E,[2,20],{24:H}),e(N,[2,31]),{21:[1,39]},{22:[1,40]},e(V,[2,13],{7:f,11:A}),e(L,[2,11]),e(L,[2,12]),e(E,[2,15],{24:H}),e(N,[2,30]),{22:[1,41]},e(N,[2,27]),e(N,[2,29])],defaultActions:{2:[2,1],6:[2,2]},parseError:o(function(s,n){if(n.recoverable)this.trace(s);else{var r=new Error(s);throw r.hash=n,r}},"parseError"),parse:o(function(s){var n=this,r=[0],a=[],u=[null],t=[],M=this.table,c="",W=0,ie=0,ue=2,re=1,ge=t.slice.call(arguments,1),b=Object.create(this.lexer),R={yy:{}};for(var J in this.yy)Object.prototype.hasOwnProperty.call(this.yy,J)&&(R.yy[J]=this.yy[J]);b.setInput(s,R.yy),R.yy.lexer=b,R.yy.parser=this,typeof b.yylloc>"u"&&(b.yylloc={});var q=b.yylloc;t.push(q);var de=b.options&&b.options.ranges;typeof R.yy.parseError=="function"?this.parseError=R.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function pe(S){r.length=r.length-2*S,u.length=u.length-S,t.length=t.length-S}o(pe,"popStack");function ae(){var S;return S=a.pop()||b.lex()||re,typeof S!="number"&&(S instanceof Array&&(a=S,S=a.pop()),S=n.symbols_[S]||S),S}o(ae,"lex");for(var _,P,x,Q,j={},z,C,oe,X;;){if(P=r[r.length-1],this.defaultActions[P]?x=this.defaultActions[P]:((_===null||typeof _>"u")&&(_=ae()),x=M[P]&&M[P][_]),typeof x>"u"||!x.length||!x[0]){var Z="";X=[];for(z in M[P])this.terminals_[z]&&z>ue&&X.push("'"+this.terminals_[z]+"'");b.showPosition?Z="Parse error on line "+(W+1)+`:
1
+ import{g as fe}from"./C_1dnC1X.js";import{b as o,ay as te,X as U,aX as ye,ad as be,ah as me,aL as ke,b3 as Ee,O as K,aV as F,ax as _e,J as Se,an as Ne,au as ce,H as le}from"./BkUS-e35.js";var $=(function(){var e=o(function(O,s,n,r){for(n=n||{},r=O.length;r--;n[O[r]]=s);return n},"o"),h=[1,4],p=[1,13],i=[1,12],d=[1,15],k=[1,16],m=[1,20],l=[1,19],D=[6,7,8],I=[1,26],g=[1,24],w=[1,25],E=[6,7,11],G=[1,31],N=[6,7,11,24],V=[1,6,13,16,17,20,23],f=[1,35],A=[1,36],L=[1,6,7,11,13,16,17,20,23],H=[1,38],T={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,KANBAN:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,shapeData:15,ICON:16,CLASS:17,nodeWithId:18,nodeWithoutId:19,NODE_DSTART:20,NODE_DESCR:21,NODE_DEND:22,NODE_ID:23,SHAPE_DATA:24,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"KANBAN",11:"EOF",13:"SPACELIST",16:"ICON",17:"CLASS",20:"NODE_DSTART",21:"NODE_DESCR",22:"NODE_DEND",23:"NODE_ID",24:"SHAPE_DATA"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,3],[12,2],[12,2],[12,2],[12,1],[12,2],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[19,3],[18,1],[18,4],[15,2],[15,1]],performAction:o(function(s,n,r,a,u,t,M){var c=t.length-1;switch(u){case 6:case 7:return a;case 8:a.getLogger().trace("Stop NL ");break;case 9:a.getLogger().trace("Stop EOF ");break;case 11:a.getLogger().trace("Stop NL2 ");break;case 12:a.getLogger().trace("Stop EOF2 ");break;case 15:a.getLogger().info("Node: ",t[c-1].id),a.addNode(t[c-2].length,t[c-1].id,t[c-1].descr,t[c-1].type,t[c]);break;case 16:a.getLogger().info("Node: ",t[c].id),a.addNode(t[c-1].length,t[c].id,t[c].descr,t[c].type);break;case 17:a.getLogger().trace("Icon: ",t[c]),a.decorateNode({icon:t[c]});break;case 18:case 23:a.decorateNode({class:t[c]});break;case 19:a.getLogger().trace("SPACELIST");break;case 20:a.getLogger().trace("Node: ",t[c-1].id),a.addNode(0,t[c-1].id,t[c-1].descr,t[c-1].type,t[c]);break;case 21:a.getLogger().trace("Node: ",t[c].id),a.addNode(0,t[c].id,t[c].descr,t[c].type);break;case 22:a.decorateNode({icon:t[c]});break;case 27:a.getLogger().trace("node found ..",t[c-2]),this.$={id:t[c-1],descr:t[c-1],type:a.getType(t[c-2],t[c])};break;case 28:this.$={id:t[c],descr:t[c],type:0};break;case 29:a.getLogger().trace("node found ..",t[c-3]),this.$={id:t[c-3],descr:t[c-1],type:a.getType(t[c-2],t[c])};break;case 30:this.$=t[c-1]+t[c];break;case 31:this.$=t[c];break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:h},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:h},{6:p,7:[1,10],9:9,12:11,13:i,14:14,16:d,17:k,18:17,19:18,20:m,23:l},e(D,[2,3]),{1:[2,2]},e(D,[2,4]),e(D,[2,5]),{1:[2,6],6:p,12:21,13:i,14:14,16:d,17:k,18:17,19:18,20:m,23:l},{6:p,9:22,12:11,13:i,14:14,16:d,17:k,18:17,19:18,20:m,23:l},{6:I,7:g,10:23,11:w},e(E,[2,24],{18:17,19:18,14:27,16:[1,28],17:[1,29],20:m,23:l}),e(E,[2,19]),e(E,[2,21],{15:30,24:G}),e(E,[2,22]),e(E,[2,23]),e(N,[2,25]),e(N,[2,26]),e(N,[2,28],{20:[1,32]}),{21:[1,33]},{6:I,7:g,10:34,11:w},{1:[2,7],6:p,12:21,13:i,14:14,16:d,17:k,18:17,19:18,20:m,23:l},e(V,[2,14],{7:f,11:A}),e(L,[2,8]),e(L,[2,9]),e(L,[2,10]),e(E,[2,16],{15:37,24:G}),e(E,[2,17]),e(E,[2,18]),e(E,[2,20],{24:H}),e(N,[2,31]),{21:[1,39]},{22:[1,40]},e(V,[2,13],{7:f,11:A}),e(L,[2,11]),e(L,[2,12]),e(E,[2,15],{24:H}),e(N,[2,30]),{22:[1,41]},e(N,[2,27]),e(N,[2,29])],defaultActions:{2:[2,1],6:[2,2]},parseError:o(function(s,n){if(n.recoverable)this.trace(s);else{var r=new Error(s);throw r.hash=n,r}},"parseError"),parse:o(function(s){var n=this,r=[0],a=[],u=[null],t=[],M=this.table,c="",W=0,ie=0,ue=2,re=1,ge=t.slice.call(arguments,1),b=Object.create(this.lexer),R={yy:{}};for(var J in this.yy)Object.prototype.hasOwnProperty.call(this.yy,J)&&(R.yy[J]=this.yy[J]);b.setInput(s,R.yy),R.yy.lexer=b,R.yy.parser=this,typeof b.yylloc>"u"&&(b.yylloc={});var q=b.yylloc;t.push(q);var de=b.options&&b.options.ranges;typeof R.yy.parseError=="function"?this.parseError=R.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function pe(S){r.length=r.length-2*S,u.length=u.length-S,t.length=t.length-S}o(pe,"popStack");function ae(){var S;return S=a.pop()||b.lex()||re,typeof S!="number"&&(S instanceof Array&&(a=S,S=a.pop()),S=n.symbols_[S]||S),S}o(ae,"lex");for(var _,P,x,Q,j={},z,C,oe,X;;){if(P=r[r.length-1],this.defaultActions[P]?x=this.defaultActions[P]:((_===null||typeof _>"u")&&(_=ae()),x=M[P]&&M[P][_]),typeof x>"u"||!x.length||!x[0]){var Z="";X=[];for(z in M[P])this.terminals_[z]&&z>ue&&X.push("'"+this.terminals_[z]+"'");b.showPosition?Z="Parse error on line "+(W+1)+`:
2
2
  `+b.showPosition()+`
3
3
  Expecting `+X.join(", ")+", got '"+(this.terminals_[_]||_)+"'":Z="Parse error on line "+(W+1)+": Unexpected "+(_==re?"end of input":"'"+(this.terminals_[_]||_)+"'"),this.parseError(Z,{text:b.match,token:this.terminals_[_]||_,line:b.yylineno,loc:q,expected:X})}if(x[0]instanceof Array&&x.length>1)throw new Error("Parse Error: multiple actions possible at state: "+P+", token: "+_);switch(x[0]){case 1:r.push(_),u.push(b.yytext),t.push(b.yylloc),r.push(x[1]),_=null,ie=b.yyleng,c=b.yytext,W=b.yylineno,q=b.yylloc;break;case 2:if(C=this.productions_[x[1]][1],j.$=u[u.length-C],j._$={first_line:t[t.length-(C||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(C||1)].first_column,last_column:t[t.length-1].last_column},de&&(j._$.range=[t[t.length-(C||1)].range[0],t[t.length-1].range[1]]),Q=this.performAction.apply(j,[c,ie,W,R.yy,x[1],u,t].concat(ge)),typeof Q<"u")return Q;C&&(r=r.slice(0,-1*C*2),u=u.slice(0,-1*C),t=t.slice(0,-1*C)),r.push(this.productions_[x[1]][0]),u.push(j.$),t.push(j._$),oe=M[r[r.length-2]][r[r.length-1]],r.push(oe);break;case 3:return!0}}return!0},"parse")},Y=(function(){var O={EOF:1,parseError:o(function(n,r){if(this.yy.parser)this.yy.parser.parseError(n,r);else throw new Error(n)},"parseError"),setInput:o(function(s,n){return this.yy=n||this.yy||{},this._input=s,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:o(function(){var s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var n=s.match(/(?:\r\n?|\n).*/g);return n?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),s},"input"),unput:o(function(s){var n=s.length,r=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var a=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),r.length-1&&(this.yylineno-=r.length-1);var u=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:r?(r.length===a.length?this.yylloc.first_column:0)+a[a.length-r.length].length-r[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[u[0],u[0]+this.yyleng-n]),this.yyleng=this.yytext.length,this},"unput"),more:o(function(){return this._more=!0,this},"more"),reject:o(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
4
  `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:o(function(s){this.unput(this.match.slice(s))},"less"),pastInput:o(function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var s=this.match;return s.length<20&&(s+=this._input.substr(0,20-s.length)),(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var s=this.pastInput(),n=new Array(s.length+1).join("-");return s+this.upcomingInput()+`
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/BUxvwYCZ.js","/app/immutable/chunks/5BjH__qw.js","/app/immutable/chunks/Brb5mMFP.js","/app/immutable/chunks/DYhIMPy1.js","/app/immutable/chunks/CXgKrD4b.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/chunks/BEdXc2Cn.js","/app/immutable/chunks/CHyKyUzM.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/-svebp9s.js","/app/immutable/chunks/BaIAhI85.js","/app/immutable/chunks/7vJjNlp5.js","/app/immutable/chunks/BFLeHPtB.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/NpJ_H_lL.js","/app/immutable/chunks/CpMi3Pqw.js","/app/immutable/chunks/DenVKqrV.js","/app/immutable/chunks/WFvSJ9zU.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/DY2uGuix.js","/app/immutable/chunks/DxwfiAWm.js","/app/immutable/chunks/DfxQWSVU.js","/app/immutable/chunks/D-Mv0NgR.js","/app/immutable/chunks/BWYr8u9e.js","/app/immutable/chunks/XJv96NUg.js","/app/immutable/assets/notify.BeL_JB6L.css","/app/immutable/chunks/Dz_Si7JX.js","/app/immutable/chunks/BvFAWM27.js","/app/immutable/chunks/BdWqymET.js","/app/immutable/chunks/R4bwBwT_.js","/app/immutable/chunks/01VYey36.js","/app/immutable/chunks/C9Vu0azd.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/DLI1aSNH.js","/app/immutable/chunks/HcYBxKPc.js","/app/immutable/chunks/BPe3vmZW.js","/app/immutable/chunks/B0Z-1lwJ.js","/app/immutable/chunks/DgyZN5lH.js","/app/immutable/chunks/CLMPxb4p.js"])))=>i.map(i=>d[i]);
2
- import{bo as b,_ as C}from"./CXgKrD4b.js";import{g as f,Ik as a,db as P,GI as S,yn as q,EU as N,v2 as R,qv as W,uC as H,Kn as U}from"./DenVKqrV.js";import{d as I}from"./R4bwBwT_.js";import{bb as V}from"./-svebp9s.js";import{parseIntentLink as j}from"./jyWTS4lZ.js";import{k as y}from"./5BjH__qw.js";import"./DYhIMPy1.js";import"./BEdXc2Cn.js";import"./CHyKyUzM.js";import"./ChTqQfQN.js";import"./CpMi3Pqw.js";import{I as B,q as x,H as L}from"./ChNKlZtm.js";import{dr as D}from"./HcYBxKPc.js";import{p as E,o as K,h as $}from"./BKpbFIyR.js";const p="assistant-content",z=a.createSelector(t=>{const r=E.select(t),s=K.select(t),e=$.select(t).find(i=>i.agentId===s)??r.find(i=>i.isActive)??r.find(i=>i.messageCount>0)??r[0];return P(e?.agentId??null)}),O=new Map;function G(t,r=!1){const s=O.get(t)??{explicit:0,background:0},e={explicit:s.explicit+(r?0:1),background:s.background+(r?1:0)};return O.set(t,e),r?e:{explicit:e.explicit}}function m(t,r){const s=O.get(t);return s!==void 0&&r.explicit===s.explicit&&(r.background===void 0||r.background===s.background)}async function J(t){a.dispatch(R(t)),L.select(a.state,t).restoreStatus==="pending"&&await new Promise(r=>{const s=L.withStore(a)(t).subscribe(e=>{e.restoreStatus!=="pending"&&(r(),queueMicrotask(()=>s()))})})}function _(t,r,s){const e=L.select(a.state,s);if(!e.panels[p]||Object.keys(e.panels).some(i=>i!==p)){const i=e.panels[p],d=Object.values(e.panels).flatMap(n=>n.tabs.filter(o=>o.type!=="agent"||o.workspaceId!==f)),c=d.some(n=>n.id===i?.activeTabId)?i?.activeTabId??null:d.at(-1)?.id??null;a.dispatch(W(s,{root:{type:"panel",panelId:p},panels:{[p]:{id:p,tabs:d,activeTabId:c}},focusedPanelId:e.focusedPanelId===p?p:null,hiddenTabs:x.select(a.state,s)}))}a.dispatch(H(s,t,p,void 0,!0,void 0,!1,r.background||r.preserveFocus,void 0,r.background))}async function de(t,r={}){try{return await Q(t,r)}catch(s){return y.error(b.ui_linkHandler_notFound_title(),{description:s instanceof Error?s.message:String(s)}),!0}}async function Q(t,r){const s=/^intent:\/\/local\/([^/?#]+)\/agent\/([^/?#]+)$/.exec(t),e=t.startsWith("intent://")?j(t):null,i=e?.valid&&e.type==="workspace"?[t,e.resourceId]:/^\/workspace\/([^/?#]+)\/?$/.exec(t),d=/^https?:\/\//.test(t)&&!V(t);if(!i&&!s&&!d&&!(e?.valid&&["file","message","note","task"].includes(e.type))||i&&[f,"new"].includes(i[1]))return!1;const c=E.select(a.state),n=r.agentId?P(r.agentId):r.background?c.length===1?P(c[0].agentId):null:r.layoutId??z.select(a.state);if(!n)return!0;const o=G(n,r.background);if(await J(n),!m(n,o))return!0;if(i){const u=i[1],g=await I.workspaces.get(u);return m(n,o)?g?(a.dispatch(S(g)),_({type:"workspace",title:g.title,workspaceId:u,closable:!0},r,n),!0):(y.error(b.workspace_loader_notFound_title()),!0):!0}if(s)return T(s[1],s[2],r,n,o);if(d){const{resolveBrowserLinkForOpen:u}=await C(async()=>{const{resolveBrowserLinkForOpen:v}=await import("./BUxvwYCZ.js").then(w=>w.b);return{resolveBrowserLinkForOpen:v}},__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]),import.meta.url),g=await u(t);return m(n,o)&&_({type:"browser",title:new URL(t).hostname,browserUrl:g.url,browserRequestedUrl:g.requestedUrl,workspaceId:f,closable:!0},r,n),!0}if(!e?.valid)return!1;const h=e.workspaceId??f;if(e.type==="file"){const u=await I.workspaces.get(h);return m(n,o)?u?(a.dispatch(S(u)),_({type:"file",title:e.resourceId.split("/").at(-1)??e.resourceId,filePath:e.resourceId,workspaceId:h,closable:!0,data:{line:e.line,filePathIsLiteral:!0}},r,n),!0):(y.error(b.workspace_loader_notFound_title()),!0):!0}if(e.type==="message"&&e.agentId)return T(h,e.agentId,r,n,o,e.resourceId);if(e.type!=="note"&&e.type!=="task")return!1;const l=e.workspaceId??f,[k,A]=await Promise.all([a.dispatch(q(l,e.resourceId)),Promise.resolve(D.select(a.state,l)??I.workspaces.get(l)).catch(()=>null)]);if(!m(n,o))return!0;if(!k||String(k.workspaceId)!==l)return y.error(b.ui_linkHandler_notFound_title(),{description:b.ui_linkHandler_noteNotFound_error({noteId:e.resourceId,workspaceId:l})}),!0;A&&String(A.id)===l&&a.dispatch(S(A));const M=Object.entries(B.select(a.state)).some(([u,g])=>{const v=w=>w.type==="note"&&w.noteId===String(k.id)&&(w.workspaceId??u)===l;return Object.values(g.panels).some(w=>w.tabs.some(v))||x.select(a.state,u).some(v)}),F=a.state.transientUi.byWorkspaceId[l]?.noteViewModeByNoteId[String(k.id)];return!M&&(!r.background||F===void 0)&&a.dispatch(N(l,String(k.id),"editor")),_({type:"note",title:k.title,noteId:String(k.id),workspaceId:l,closable:!0},r,n),!0}async function T(t,r,s,e,i,d){const c=await I.agents.get(r,t===f?void 0:t);t===f&&c&&(t=String(c.workspaceId));const n=t===f?null:await I.workspaces.get(t);if(!m(e,i))return!0;if(!n&&t!==f||!c||String(c.workspaceId)!==t)return y.error(b.ui_linkHandler_notFound_title()),!0;if(n&&a.dispatch(S(n)),a.dispatch(U(c)),_({type:"agent",title:c.name??r,agentId:r,workspaceId:t,closable:!0},s,e),d&&!s.background){const{openMessage:o}=await C(async()=>{const{openMessage:h}=await import("./Dz_Si7JX.js");return{openMessage:h}},__vite__mapDeps([27,28,29,30,4,3,17,18,19,20,5,7,21,13,2,9,6,8,10,11,12,14,31,32,33,34,35,23,36,15,37,38,39]),import.meta.url);o({workspaceId:t,agentId:r,messageId:d,contentAlreadyOpen:!0})}return!0}export{p as ASSISTANT_CONTENT_PANEL_ID,z as selectAssistantPanelLayoutId,de as showAssistantContent};
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/BUxvwYCZ.js","/app/immutable/chunks/5BjH__qw.js","/app/immutable/chunks/Brb5mMFP.js","/app/immutable/chunks/DYhIMPy1.js","/app/immutable/chunks/CXgKrD4b.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/chunks/BEdXc2Cn.js","/app/immutable/chunks/CHyKyUzM.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/-svebp9s.js","/app/immutable/chunks/BaIAhI85.js","/app/immutable/chunks/7vJjNlp5.js","/app/immutable/chunks/BFLeHPtB.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/NpJ_H_lL.js","/app/immutable/chunks/CpMi3Pqw.js","/app/immutable/chunks/DenVKqrV.js","/app/immutable/chunks/WFvSJ9zU.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/DY2uGuix.js","/app/immutable/chunks/DxwfiAWm.js","/app/immutable/chunks/DfxQWSVU.js","/app/immutable/chunks/D-Mv0NgR.js","/app/immutable/chunks/BWYr8u9e.js","/app/immutable/chunks/XJv96NUg.js","/app/immutable/assets/notify.BeL_JB6L.css","/app/immutable/chunks/BIAzHfjL.js","/app/immutable/chunks/BvFAWM27.js","/app/immutable/chunks/BdWqymET.js","/app/immutable/chunks/R4bwBwT_.js","/app/immutable/chunks/01VYey36.js","/app/immutable/chunks/C9Vu0azd.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/DLI1aSNH.js","/app/immutable/chunks/HcYBxKPc.js","/app/immutable/chunks/BPe3vmZW.js","/app/immutable/chunks/B0Z-1lwJ.js","/app/immutable/chunks/DM0_7KAa.js","/app/immutable/chunks/Cpr9mNUv.js"])))=>i.map(i=>d[i]);
2
+ import{bo as b,_ as C}from"./CXgKrD4b.js";import{g as f,Ik as a,db as P,GI as S,yn as q,EU as N,v2 as R,qv as W,uC as H,Kn as U}from"./DenVKqrV.js";import{d as I}from"./R4bwBwT_.js";import{bb as V}from"./-svebp9s.js";import{parseIntentLink as j}from"./BVlLHHIh.js";import{k as y}from"./5BjH__qw.js";import"./DYhIMPy1.js";import"./BEdXc2Cn.js";import"./CHyKyUzM.js";import"./ChTqQfQN.js";import"./CpMi3Pqw.js";import{I as B,q as x,H as L}from"./ChNKlZtm.js";import{dr as D}from"./HcYBxKPc.js";import{p as E,o as K,h as $}from"./BKpbFIyR.js";const p="assistant-content",z=a.createSelector(t=>{const r=E.select(t),s=K.select(t),e=$.select(t).find(i=>i.agentId===s)??r.find(i=>i.isActive)??r.find(i=>i.messageCount>0)??r[0];return P(e?.agentId??null)}),O=new Map;function G(t,r=!1){const s=O.get(t)??{explicit:0,background:0},e={explicit:s.explicit+(r?0:1),background:s.background+(r?1:0)};return O.set(t,e),r?e:{explicit:e.explicit}}function m(t,r){const s=O.get(t);return s!==void 0&&r.explicit===s.explicit&&(r.background===void 0||r.background===s.background)}async function J(t){a.dispatch(R(t)),L.select(a.state,t).restoreStatus==="pending"&&await new Promise(r=>{const s=L.withStore(a)(t).subscribe(e=>{e.restoreStatus!=="pending"&&(r(),queueMicrotask(()=>s()))})})}function _(t,r,s){const e=L.select(a.state,s);if(!e.panels[p]||Object.keys(e.panels).some(i=>i!==p)){const i=e.panels[p],d=Object.values(e.panels).flatMap(n=>n.tabs.filter(o=>o.type!=="agent"||o.workspaceId!==f)),c=d.some(n=>n.id===i?.activeTabId)?i?.activeTabId??null:d.at(-1)?.id??null;a.dispatch(W(s,{root:{type:"panel",panelId:p},panels:{[p]:{id:p,tabs:d,activeTabId:c}},focusedPanelId:e.focusedPanelId===p?p:null,hiddenTabs:x.select(a.state,s)}))}a.dispatch(H(s,t,p,void 0,!0,void 0,!1,r.background||r.preserveFocus,void 0,r.background))}async function de(t,r={}){try{return await Q(t,r)}catch(s){return y.error(b.ui_linkHandler_notFound_title(),{description:s instanceof Error?s.message:String(s)}),!0}}async function Q(t,r){const s=/^intent:\/\/local\/([^/?#]+)\/agent\/([^/?#]+)$/.exec(t),e=t.startsWith("intent://")?j(t):null,i=e?.valid&&e.type==="workspace"?[t,e.resourceId]:/^\/workspace\/([^/?#]+)\/?$/.exec(t),d=/^https?:\/\//.test(t)&&!V(t);if(!i&&!s&&!d&&!(e?.valid&&["file","message","note","task"].includes(e.type))||i&&[f,"new"].includes(i[1]))return!1;const c=E.select(a.state),n=r.agentId?P(r.agentId):r.background?c.length===1?P(c[0].agentId):null:r.layoutId??z.select(a.state);if(!n)return!0;const o=G(n,r.background);if(await J(n),!m(n,o))return!0;if(i){const u=i[1],g=await I.workspaces.get(u);return m(n,o)?g?(a.dispatch(S(g)),_({type:"workspace",title:g.title,workspaceId:u,closable:!0},r,n),!0):(y.error(b.workspace_loader_notFound_title()),!0):!0}if(s)return T(s[1],s[2],r,n,o);if(d){const{resolveBrowserLinkForOpen:u}=await C(async()=>{const{resolveBrowserLinkForOpen:v}=await import("./BUxvwYCZ.js").then(w=>w.b);return{resolveBrowserLinkForOpen:v}},__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]),import.meta.url),g=await u(t);return m(n,o)&&_({type:"browser",title:new URL(t).hostname,browserUrl:g.url,browserRequestedUrl:g.requestedUrl,workspaceId:f,closable:!0},r,n),!0}if(!e?.valid)return!1;const h=e.workspaceId??f;if(e.type==="file"){const u=await I.workspaces.get(h);return m(n,o)?u?(a.dispatch(S(u)),_({type:"file",title:e.resourceId.split("/").at(-1)??e.resourceId,filePath:e.resourceId,workspaceId:h,closable:!0,data:{line:e.line,filePathIsLiteral:!0}},r,n),!0):(y.error(b.workspace_loader_notFound_title()),!0):!0}if(e.type==="message"&&e.agentId)return T(h,e.agentId,r,n,o,e.resourceId);if(e.type!=="note"&&e.type!=="task")return!1;const l=e.workspaceId??f,[k,A]=await Promise.all([a.dispatch(q(l,e.resourceId)),Promise.resolve(D.select(a.state,l)??I.workspaces.get(l)).catch(()=>null)]);if(!m(n,o))return!0;if(!k||String(k.workspaceId)!==l)return y.error(b.ui_linkHandler_notFound_title(),{description:b.ui_linkHandler_noteNotFound_error({noteId:e.resourceId,workspaceId:l})}),!0;A&&String(A.id)===l&&a.dispatch(S(A));const M=Object.entries(B.select(a.state)).some(([u,g])=>{const v=w=>w.type==="note"&&w.noteId===String(k.id)&&(w.workspaceId??u)===l;return Object.values(g.panels).some(w=>w.tabs.some(v))||x.select(a.state,u).some(v)}),F=a.state.transientUi.byWorkspaceId[l]?.noteViewModeByNoteId[String(k.id)];return!M&&(!r.background||F===void 0)&&a.dispatch(N(l,String(k.id),"editor")),_({type:"note",title:k.title,noteId:String(k.id),workspaceId:l,closable:!0},r,n),!0}async function T(t,r,s,e,i,d){const c=await I.agents.get(r,t===f?void 0:t);t===f&&c&&(t=String(c.workspaceId));const n=t===f?null:await I.workspaces.get(t);if(!m(e,i))return!0;if(!n&&t!==f||!c||String(c.workspaceId)!==t)return y.error(b.ui_linkHandler_notFound_title()),!0;if(n&&a.dispatch(S(n)),a.dispatch(U(c)),_({type:"agent",title:c.name??r,agentId:r,workspaceId:t,closable:!0},s,e),d&&!s.background){const{openMessage:o}=await C(async()=>{const{openMessage:h}=await import("./BIAzHfjL.js");return{openMessage:h}},__vite__mapDeps([27,28,29,30,4,3,17,18,19,20,5,7,21,13,2,9,6,8,10,11,12,14,31,32,33,34,35,23,36,15,37,38,39]),import.meta.url);o({workspaceId:t,agentId:r,messageId:d,contentAlreadyOpen:!0})}return!0}export{p as ASSISTANT_CONTENT_PANEL_ID,z as selectAssistantPanelLayoutId,de as showAssistantContent};