@intent-hq/web 2.346.7 → 2.347.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 (143) hide show
  1. package/package.json +1 -1
  2. package/web/app/immutable/chunks/{FLqL4ipM.js → -63ap9eC.js} +1 -1
  3. package/web/app/immutable/chunks/{BsK6wYXS.js → 3vPW6DPL.js} +1 -1
  4. package/web/app/immutable/chunks/{D9JU74lv.js → 7UJfw_Ip.js} +1 -1
  5. package/web/app/immutable/chunks/{l0ISWt9F.js → 8AI-DblB.js} +2 -2
  6. package/web/app/immutable/chunks/{Deeg9Eu-.js → 8Rg35Sr_.js} +1 -1
  7. package/web/app/immutable/chunks/{BeQgENlX.js → 8y_Q4Ch2.js} +2 -2
  8. package/web/app/immutable/chunks/{B71JNHWD.js → A0qxWlj8.js} +1 -1
  9. package/web/app/immutable/chunks/{DDd0mrO_.js → B-XyTu04.js} +1 -1
  10. package/web/app/immutable/chunks/{B_keSK2s.js → B06d_ovS.js} +1 -1
  11. package/web/app/immutable/chunks/{DsfybZhj.js → B3ZEXIGJ.js} +1 -1
  12. package/web/app/immutable/chunks/{cuI1HNig.js → B5H40CZc.js} +1 -1
  13. package/web/app/immutable/chunks/{CHoHyRl1.js → B6FGKpI6.js} +1 -1
  14. package/web/app/immutable/chunks/{CQdlmcpA.js → B9kWU728.js} +1 -1
  15. package/web/app/immutable/chunks/{nhXrKuzk.js → BCToJgkv.js} +2 -2
  16. package/web/app/immutable/chunks/{BZXx4oAF.js → BCodcgR6.js} +1 -1
  17. package/web/app/immutable/chunks/{DGPt1Rmr.js → BDzSu1xv.js} +1 -1
  18. package/web/app/immutable/chunks/{CQGCQvNO.js → BFLrA-xP.js} +1 -1
  19. package/web/app/immutable/chunks/{BS2rXad-.js → BHnGBW7K.js} +1 -1
  20. package/web/app/immutable/chunks/{CqX9OYLx.js → BJaSJQAK.js} +1 -1
  21. package/web/app/immutable/chunks/{CzTOJ-RC.js → BRXAI9iX.js} +1 -1
  22. package/web/app/immutable/chunks/{Bps4iLJn.js → BSXAflgO.js} +4 -4
  23. package/web/app/immutable/chunks/{Cj2RYqvI.js → BTmwOa4k.js} +1 -1
  24. package/web/app/immutable/chunks/{CvOEFHIi.js → Bexsu_yM.js} +1 -1
  25. package/web/app/immutable/chunks/{Dys6C3u0.js → BfU4NYB1.js} +1 -1
  26. package/web/app/immutable/chunks/{CsdYTvLa.js → BgXA9zqk.js} +1 -1
  27. package/web/app/immutable/chunks/{B-VSh3wf.js → Bome2C7z.js} +1 -1
  28. package/web/app/immutable/chunks/{DPWE7gCc.js → BpC_WiOJ.js} +1 -1
  29. package/web/app/immutable/chunks/{BXe1baKr.js → BqGhBQEL.js} +1 -1
  30. package/web/app/immutable/chunks/{CNe7onyb.js → BvsXY70Q.js} +1 -1
  31. package/web/app/immutable/chunks/{BTLLp91d.js → C-ASrdVS.js} +1 -1
  32. package/web/app/immutable/chunks/{Hd61r63s.js → C1ovolmS.js} +1 -1
  33. package/web/app/immutable/chunks/{BMAqdXv7.js → C23fQRUj.js} +1 -1
  34. package/web/app/immutable/chunks/{DBLNxGLo.js → C3lXYtZ6.js} +2 -2
  35. package/web/app/immutable/chunks/{CKLDoMvu.js → C5YJxA2w.js} +1 -1
  36. package/web/app/immutable/chunks/{DdHWhFZW.js → C7pBHnW1.js} +1 -1
  37. package/web/app/immutable/chunks/{Chj4eExC.js → CAHBbuXF.js} +1 -1
  38. package/web/app/immutable/chunks/{Bz3o8mDx.js → CBMERMqL.js} +1 -1
  39. package/web/app/immutable/chunks/{B4rPFvYB.js → CFd9O0Cg.js} +1 -1
  40. package/web/app/immutable/chunks/{CqPWbhqQ.js → CFxMokfO.js} +1 -1
  41. package/web/app/immutable/chunks/{B9W8KfsY.js → CHNDdZ2o.js} +1 -1
  42. package/web/app/immutable/chunks/{C_8_aIYH.js → CKshi8sc.js} +1 -1
  43. package/web/app/immutable/chunks/{DkrbZVri.js → CNjH60oE.js} +3 -3
  44. package/web/app/immutable/chunks/{wZy9ojGD.js → COCWaEg3.js} +1 -1
  45. package/web/app/immutable/chunks/{CUs0opCC.js → CYJlmWJC.js} +1 -1
  46. package/web/app/immutable/chunks/{BFM5w46H.js → CZ8GilqG.js} +2 -2
  47. package/web/app/immutable/chunks/{DpR5pCWV.js → Ce1Plj-G.js} +1 -1
  48. package/web/app/immutable/chunks/{BvsWgdDN.js → CeFXvq0X.js} +1 -1
  49. package/web/app/immutable/chunks/{BlT4teVV.js → Cea00daJ.js} +4 -4
  50. package/web/app/immutable/chunks/{DgI1Tl0-.js → CfuIL6RH.js} +1 -1
  51. package/web/app/immutable/chunks/{Bzwi2DK9.js → Cgjivn5r.js} +1 -1
  52. package/web/app/immutable/chunks/{DAdnLTte.js → CiY6-UV7.js} +1 -1
  53. package/web/app/immutable/chunks/{QCacuydi.js → Cibh_Bcr.js} +1 -1
  54. package/web/app/immutable/chunks/{CbVy_SFp.js → Cj9I09fo.js} +1 -1
  55. package/web/app/immutable/chunks/{uNdiTdeS.js → Cnl1t07b.js} +1 -1
  56. package/web/app/immutable/chunks/{BlFd81-v.js → Co26Bq_J.js} +1 -1
  57. package/web/app/immutable/chunks/{DqbmScxl.js → CoP_yJak.js} +1 -1
  58. package/web/app/immutable/chunks/{Birl2IVg.js → CpdNExym.js} +1 -1
  59. package/web/app/immutable/chunks/{CuMYCRBc.js → CrGAq4H_.js} +1 -1
  60. package/web/app/immutable/chunks/{COluFRpM.js → CshQ__z9.js} +1 -1
  61. package/web/app/immutable/chunks/{HxiDYrBi.js → CvS-4PUY.js} +2 -2
  62. package/web/app/immutable/chunks/{m-YSnsRn.js → CwD0lr-2.js} +1 -1
  63. package/web/app/immutable/chunks/{Bdc65NEQ.js → CyWS2Glk.js} +1 -1
  64. package/web/app/immutable/chunks/{CyIRNhfo.js → D-EOSNnU.js} +1 -1
  65. package/web/app/immutable/chunks/{Dj3yCQKZ.js → D0d_9jrh.js} +1 -1
  66. package/web/app/immutable/chunks/{BwRzklL-.js → D1Iyf4wS.js} +1 -1
  67. package/web/app/immutable/chunks/{87nhMNcH.js → D2zXfcJK.js} +4 -4
  68. package/web/app/immutable/chunks/{CCm4GqAl.js → D5CQPZ-K.js} +1 -1
  69. package/web/app/immutable/chunks/{CYgkTCkB.js → D5Rbr5zM.js} +1 -1
  70. package/web/app/immutable/chunks/{D39kn1Kj.js → D5ZuOKHT.js} +1 -1
  71. package/web/app/immutable/chunks/{CrDXkRmL.js → D6A9_vDu.js} +3 -3
  72. package/web/app/immutable/chunks/{B7WyDdGX.js → D7zfTd5t.js} +1 -1
  73. package/web/app/immutable/chunks/{CZlx42aK.js → D8V7XhXe.js} +1 -1
  74. package/web/app/immutable/chunks/{BNVmW1uZ.js → D8XBViJY.js} +1 -1
  75. package/web/app/immutable/chunks/{Bqoh360O.js → DHT7J7Js.js} +1 -1
  76. package/web/app/immutable/chunks/{D5XNO0iw.js → DJrrELVL.js} +12 -12
  77. package/web/app/immutable/chunks/{DIo6dt4D.js → DLzQUqNo.js} +1 -1
  78. package/web/app/immutable/chunks/{CT1ksaco.js → DNw7QdU7.js} +1 -1
  79. package/web/app/immutable/chunks/{vYw2RcgV.js → DTEaseZz.js} +1 -1
  80. package/web/app/immutable/chunks/{OzS1Lc27.js → DUWkXLOd.js} +1 -1
  81. package/web/app/immutable/chunks/{K8bSaOgl.js → DUa1p4uN.js} +1 -1
  82. package/web/app/immutable/chunks/{BDPOc7V6.js → DVA1GZLk.js} +2 -2
  83. package/web/app/immutable/chunks/{B4kTYcAj.js → DVwNgKgZ.js} +1 -1
  84. package/web/app/immutable/chunks/{i_NTivOk.js → DW8UorQb.js} +1 -1
  85. package/web/app/immutable/chunks/{ZbRk-UkQ.js → DWRqOTrW.js} +1 -1
  86. package/web/app/immutable/chunks/{DIzQd2Pc.js → DY63MDXt.js} +1 -1
  87. package/web/app/immutable/chunks/{7uDreJHE.js → DZMUAvgZ.js} +1 -1
  88. package/web/app/immutable/chunks/{CoxfoefW.js → DZOdNy1D.js} +1 -1
  89. package/web/app/immutable/chunks/{izSb4qrH.js → Dcxk2HXV.js} +1 -1
  90. package/web/app/immutable/chunks/{BFCqCX6w.js → DmPUdZ3Q.js} +3 -3
  91. package/web/app/immutable/chunks/{DBtReqdq.js → Dm_IQuLE.js} +1 -1
  92. package/web/app/immutable/chunks/{Ca-HFDl4.js → Do5uNKTH.js} +1 -1
  93. package/web/app/immutable/chunks/{DaGPt6aR.js → Dv4iYk9h.js} +1 -1
  94. package/web/app/immutable/chunks/{CvfICP_e.js → DwZLkU8c.js} +3 -3
  95. package/web/app/immutable/chunks/{D26xAGUV.js → DwvuAG4t.js} +2 -2
  96. package/web/app/immutable/chunks/{DJtfG0d7.js → GsRDe2p3.js} +1 -1
  97. package/web/app/immutable/chunks/{aKDMgeHa.js → HWvfoiK6.js} +1 -1
  98. package/web/app/immutable/chunks/{B_zHVi1K.js → I6o8TiNz.js} +1 -1
  99. package/web/app/immutable/chunks/{COnjfEGr.js → IExBSK_M.js} +1 -1
  100. package/web/app/immutable/chunks/{C-ed1TQP.js → IcPxPcX-.js} +1 -1
  101. package/web/app/immutable/chunks/{D8rDmkBS.js → KGMkdJBG.js} +1 -1
  102. package/web/app/immutable/chunks/{Dijipve3.js → LCPglP62.js} +1 -1
  103. package/web/app/immutable/chunks/{CiOVJ92X.js → NyoYNSfo.js} +1 -1
  104. package/web/app/immutable/chunks/{DzaZjwWE.js → OqhgDTXY.js} +4 -4
  105. package/web/app/immutable/chunks/{DRfFNuAv.js → R-CMYrkV.js} +1 -1
  106. package/web/app/immutable/chunks/{CsP3_IiP.js → ShYFbWtr.js} +1 -1
  107. package/web/app/immutable/chunks/{-e8CXeVs.js → Swl7IApi.js} +1 -1
  108. package/web/app/immutable/chunks/{CZh3YXGa.js → UZJ0dJRK.js} +1 -1
  109. package/web/app/immutable/chunks/{CZZEgzPG.js → brB_NIwC.js} +1 -1
  110. package/web/app/immutable/chunks/{C77WGAqb.js → f7r6le4G.js} +1 -1
  111. package/web/app/immutable/chunks/{CTznmnCI.js → fYhwAE93.js} +1 -1
  112. package/web/app/immutable/chunks/{CpAH86bK.js → hX-OZN0i.js} +1 -1
  113. package/web/app/immutable/chunks/{BvJvc00D.js → j03gUU4X.js} +1 -1
  114. package/web/app/immutable/chunks/{AXGmKfvU.js → jAHMhnMc.js} +1 -1
  115. package/web/app/immutable/chunks/{Exl2b2cW.js → kyMTJNuw.js} +3 -3
  116. package/web/app/immutable/chunks/{CruURYIo.js → o3jOtuia.js} +1 -1
  117. package/web/app/immutable/chunks/{zapl_pAB.js → pxtIOzW5.js} +1 -1
  118. package/web/app/immutable/chunks/{DbwBDRhB.js → rs-RYNIi.js} +1 -1
  119. package/web/app/immutable/chunks/{CW7SMyin.js → uFoHkMz6.js} +1 -1
  120. package/web/app/immutable/chunks/{Cc2zTL0w.js → wEFvEgas.js} +1 -1
  121. package/web/app/immutable/chunks/{BkihpvKL.js → ygGiV4X4.js} +1 -1
  122. package/web/app/immutable/chunks/{DYR-Lw2g.js → yn0j-qtB.js} +2 -2
  123. package/web/app/immutable/chunks/{CoyCN9J6.js → ypvyHpvy.js} +1 -1
  124. package/web/app/immutable/chunks/{DQOXI0aG.js → z0THiDZt.js} +1 -1
  125. package/web/app/immutable/chunks/{hoB_B0gc.js → z6m7Hf_8.js} +1 -1
  126. package/web/app/immutable/entry/{app.DvMxHwjm.js → app.Cd11uBIX.js} +2 -2
  127. package/web/app/immutable/entry/start.ChZJ_zaA.js +1 -0
  128. package/web/app/immutable/nodes/{0.CSBCH_h-.js → 0.CxALuoZA.js} +1 -1
  129. package/web/app/immutable/nodes/{1.BJSseA5f.js → 1.CdmURYms.js} +1 -1
  130. package/web/app/immutable/nodes/{10.BdrqBgeF.js → 10.LnnE_0Us.js} +1 -1
  131. package/web/app/immutable/nodes/{14.DMwnrSCT.js → 14.BqJxIbCU.js} +1 -1
  132. package/web/app/immutable/nodes/{18.-WSN77ch.js → 18.Cwxosn8e.js} +2 -2
  133. package/web/app/immutable/nodes/{2.guxMA4od.js → 2.CGw4EX8e.js} +4 -4
  134. package/web/app/immutable/nodes/{3.0mLDvvZX.js → 3.PVWbg47Y.js} +1 -1
  135. package/web/app/immutable/nodes/{4.C3jl9cd0.js → 4.3KSZXrBw.js} +1 -1
  136. package/web/app/immutable/nodes/{5.DNZ2mydt.js → 5.tK-f5DYn.js} +1 -1
  137. package/web/app/immutable/nodes/{6.BhCpj7WE.js → 6.YpPJYb1f.js} +1 -1
  138. package/web/app/immutable/nodes/{7.Btgbvayk.js → 7.Bj8WDtcU.js} +1 -1
  139. package/web/app/immutable/nodes/{8.BEZLI5FY.js → 8.DKXPxMI3.js} +4 -4
  140. package/web/app/immutable/nodes/{9.DOOOdUl6.js → 9.CX93LTMc.js} +4 -4
  141. package/web/app/version.json +1 -1
  142. package/web/index.html +9 -9
  143. package/web/app/immutable/entry/start.CdInQEt-.js +0 -1
@@ -1,4 +1,4 @@
1
- import{g as st}from"./BZXx4oAF.js";import{g as it}from"./CQGCQvNO.js";import{s as at}from"./BkihpvKL.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"./BlT4teVV.js";import{c as kt}from"./CQdlmcpA.js";import{aP as Et}from"./Cj2RYqvI.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"./BCodcgR6.js";import{g as it}from"./BFLrA-xP.js";import{s as at}from"./ygGiV4X4.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"./Cea00daJ.js";import{c as kt}from"./B9kWU728.js";import{aP as Et}from"./BTmwOa4k.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{i as r}from"./DNWBkvFP.js";import{w as a,I as e}from"./CEsW1euQ.js";import{Iz as s}from"./tU_ZJtMw.js";import{c as t}from"./Cc2zTL0w.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"./DNWBkvFP.js";import{w as a,I as e}from"./CEsW1euQ.js";import{Iz as s}from"./tU_ZJtMw.js";import{c as t}from"./wEFvEgas.js";function C(o,i){return t(s,o,{navigate:i,...a("windowChrome")?{closeWindow:()=>r(e.WINDOW.CLOSE)}:{}})}export{C as closeActiveTab};
@@ -1,4 +1,4 @@
1
- var $l=Object.defineProperty;var Ol=(r,t,n)=>t in r?$l(r,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):r[t]=n;var kn=(r,t,n)=>Ol(r,typeof t!="symbol"?t+"":t,n);import{t as It,bq as g,by as St,b as Tt,bo as f,bs as Kn,bu as dr,bt as ql,br as ha}from"./Y9-4hTF9.js";import{ai as aa,bs as Ct,ca as sr,aD as e,bH as j,ay as xe,bS as T,a7 as Rt,W as u,a5 as z,bA as R,bn as At,c9 as s,bV as we,aA as m,b_ as $,aj as Sr,aB as I,be as gr,b$ as Or,bO as J,bf as or,c0 as Cn,bl as oe,bj as jn,c6 as Dl,bo as za,br as Yr,am as Dn,ax as Bn,bk as as,aw as va,bz as ss,cb as ms,c5 as Ha,aC as xr,cd as _o,bv as Bl}from"./DYhIMPy1.js";import{i as B}from"./BL2lJmRT.js";import{g as Tr,e as _n,p as ps,i as Yn,I as Fl,h as eo,X as _i,o as zl}from"./BZQDFgmp.js";import{I as Kt,F as qa,c as ea,j as Wl,s as yi,p as to,y as Hl,u as Ul,t as $r,g as oa,B as ws,E as os,S as jl}from"./BLgIfeYS.js";import{s as te,f as ze,g as _a,c as kt,e as ar,b as ya,p as Vl,S as Kl,C as Gl}from"./cFbB-5Cu.js";import{b as cn}from"./BaIAhI85.js";import{f as Xe,ae as ro,a_ as Ql}from"./q6hitSEG.js";import{J as Zl,O as Jl,Q as xs}from"./DOH10_LL.js";import"./-FMYDRBF.js";import"./NDjLJa7E.js";import"./Dj3ZrCzO.js";import{s as Ln}from"./CrWhihJ_.js";import{F as jt,a0 as zs,bc as Tn,cF as no,aq as bi,aV as wi,aG as Xl,c4 as Yl,a2 as is,aJ as ed,cI as td,cH as rd,$ as vs,as as ao,I as yo,af as nd,bq as ad,aO as sd,aT as od,bF as id,ak as ld,cx as dd,ay as bo,aL as wo,bX as ks,aE as Ua,cR as cd,c6 as ud,bj as fd,b as gd,ck as md,ac as pd,b6 as Is,cm as xa,cA as vd,a as hd}from"./Mc93eSxl.js";import{c as xi,A as _d,x as yd}from"./BS8Oxiwq.js";import{b as Ss,V as xo}from"./BtFbwSdu.js";import{a as ki,b7 as Pr,A as Ga,ao as Ii,s as bd,n as Si,d as wd,I as xd,R as kd,ax as Id,a0 as Sd}from"./DzaZjwWE.js";import{bX as Ti,j as Qa,a6 as Ws,al as ls,F as Td,au as Za,aN as Cd,aQ as ko}from"./Cj2RYqvI.js";import{t as ia,o as Ad}from"./DqcBqbDI.js";import{c3 as Ja,aC as Da,cQ as Ci,cS as Vn,bU as hs,j as Md,cJ as Ai,cP as _s,cO as Mi,cM as Pi,g as Nn,aa as Pd,ab as Rd,ax as Ed,s as Nd,K as Ld,W as Io,v as Ri,dO as $d,at as Od,k as qd,u as Ts,a6 as Dd,n as Bd,O as Fd,o as zd,S as Wd,R as Hd,a0 as Ud,q as Ei,r as Ni,l as jd,cT as Vd,a4 as Kd,D as Gd,x as Qd,V as So}from"./ClH0Gega.js";import{Iz as yt,oz as Zd,t9 as Xa,no as To,v1 as Li,v3 as $i,rn as Jd,x$ as ds,uk as Oi,nj as qi,bd as Ya,y0 as Xd,q1 as Yd,sG as ec,uW as Di,ni as tc,mp as rc,g as nc,ys as ac,yp as sc,yr as oc}from"./tU_ZJtMw.js";import{a2 as ic,x as Cs,a0 as lc,O as As,V as dc,_ as cc,j as uc,o as ka,M as fa,p as fc,F as gc,u as mc,s as pc,L as Ms,J as vc,y as hc,K as _c,Z as Ma,Q as ja,N as Co,m as Ao,E as yc,c as Ps,B as Mo,z as bc,v as Po,H as Pa,P as wc,G as xc,i as kc,R as Ic,T as Sc,A as Tc,g as Cc,b as Ac,D as Mc,f as Pc,e as Rc,a as Ec,C as Nc,h as Lc,U as Bi,a3 as $c,t as Oc,k as qc,d as Ro}from"./BFCqCX6w.js";import{i as Dc,e as Bc}from"./5GYSXevc.js";import{g as Rs}from"./BvFAWM27.js";import{M as Ia,C as Ra}from"./Bps4iLJn.js";import{C as Eo}from"./Birl2IVg.js";import"./DJtfG0d7.js";import{P as Fc}from"./Hd61r63s.js";import"./Dr9VLQ7a.js";import{c as Fi}from"./ChTqQfQN.js";import{S as zc}from"./Bqoh360O.js";import{D as No,M as Wc}from"./BlT4teVV.js";import{b as Hc,s as na,c as cs}from"./C-ed1TQP.js";import{O as es,y as Es,E as Ns,B as Ls,N as Uc,m as jc,l as Vc,d as us,C as Lo,f as Kc,e as Gc,g as Qc}from"./zapl_pAB.js";import{a as zi,s as $o}from"./BsieX9dN.js";import{f as Zc}from"./BdWqymET.js";import{c as dn}from"./BgsoTwBt.js";import{P as Jc}from"./BMOaW1oW.js";import{v as $s,t as Os,K as Oo,h as Xc}from"./DPWE7gCc.js";import{R as Hs,C as ys,k as Yc,h as eu,g as tu,i as qo,P as ru}from"./Bv2KudWv.js";import"./DU9Ky5os.js";import{R as Do,x as Na,o as Wi}from"./BeQgENlX.js";import{B as nu}from"./B1Bex3N_.js";import{o as Hi,r as au,e as su}from"./CvOEFHIi.js";import{o as Ui}from"./HxiDYrBi.js";import{g as so}from"./C_Lje1cd.js";import{a as ou,M as iu}from"./CIpI7Qrh.js";import{c as Sa}from"./CPKMQWOs.js";import{A as lu}from"./CKLDoMvu.js";import{f as du,d as cu}from"./DpR5pCWV.js";import{a8 as uu,N as fu,Y as gu,K as Bo,X as mu,v as pu}from"./CrDXkRmL.js";import{a as vu}from"./CC7to1B5.js";import{k as hu}from"./C6vwP-ay.js";import{S as _u}from"./rt8UAcU5.js";import{u as yu,a as bu,c as Fo,S as wu}from"./DfxQWSVU.js";import{T as Us}from"./Bii5NwwM.js";import"./BJwkYtAi.js";import{g as xu}from"./DYxNs3ex.js";import{a as ku}from"./CXOFOhS1.js";import{b as Iu}from"./C-P--5-o.js";import{b as zo}from"./p7znhYIU.js";import{g as Su,i as Tu,a as Cu}from"./CO4a0yRH.js";import{n as Wo,o as Ho,b as ma,s as Ta,_ as qs,e as Au}from"./CIyUrgF0.js";import{aX as Un,B as Mu}from"./aos1n-nT.js";import{x as Pu}from"./DLIkH-mx.js";import{c as Ru}from"./l0ISWt9F.js";function Eu(r){if(!r||typeof r!="object")return null;const t=r;if(t.type!=="script_monitor_wake"||t.source!=="system")return null;const{scriptName:n,scriptId:a,runId:o,monitorId:i,workspaceId:d,reason:c}=t;if(typeof n!="string"||typeof a!="string"||!a||typeof o!="string"||!o||typeof i!="string"||!i||typeof d!="string"||!d||c!=="finished"&&c!=="ttl-expired"&&c!=="output-match"&&c!=="line-count")return null;const h=t.trigger;return{scriptName:n,scriptId:a,runId:o,monitorId:i,workspaceId:d,reason:c,...c==="output-match"&&typeof h?.matchedLine=="string"?{matchedLine:h.matchedLine}:{}}}function Nu(r){return r?.type==="script_monitor_wake"&&!("remoteAgentId"in r)}function Lu(r,t,n,a=!1){if(!r||!t)return{edit:!1,remove:!1,sendNow:!1};const o=r.messageMetadata?.fromPrincipalId??r.author?.principalId,i=uu(r)&&r.author?.principalId!==null&&o===t;return{edit:i,remove:i||t===n||a,sendNow:(i||a)&&!ji(r)}}function Ca(r,t){if(t)return r.find(n=>n.editing&&n.editingMessageId?n.editingMessageId===t:n.id===t)}function ji(r){return Nu(r.messageMetadata)&&typeof r.messageMetadata?.monitorId=="string"}function Uo(r,t=Date.now()){const n=r.messageMetadata,a=n?.fromPrincipalId,o=n&&Object.hasOwn(n,"humanAuthor")&&!(typeof a=="string"&&a.length>0),i=r.holdKind!==void 0&&Date.parse(r.holdUntil??"")>t;return!r.editing&&!i&&!o&&!ji(r)}const G_="pl-3.5! pr-2!";var $u=I('<span class="tile-remove-slot svelte-d8pwpf"><!></span>'),jo=I('<span class="attachment-status svelte-d8pwpf"> </span>'),Ou=I('<div class="file-image tile svelte-d8pwpf" data-kind="file"><!> <!> <div class="tile-actions svelte-d8pwpf"><!> <!></div></div>'),qu=I("<!><span> </span>",1),Du=I('<img alt="" draggable="false"/>'),Bu=I('<span class="summary svelte-d8pwpf" data-clip-summary=""> </span>'),Fu=I('<span class="clip svelte-d8pwpf"><span class="record-dot svelte-d8pwpf" aria-hidden="true"></span><span class="duration svelte-d8pwpf"> </span><!></span>'),zu=I('<div class="tile svelte-d8pwpf"><!> <!> <div class="tile-actions svelte-d8pwpf"><!> <!></div></div>'),Wu=I('<div class="attachment-row svelte-d8pwpf" role="group" data-dock-media-attachments=""></div>'),Hu=I("<!> <!> <!>",1),Uu=I('<img draggable="false" class="svelte-d8pwpf"/>'),ju=I('<video controls="" playsinline="" class="svelte-d8pwpf"></video>',2),Vu=I('<div class="media-viewer svelte-d8pwpf"><!></div>'),Ku=I("<!> <!>",1);function Gu(r,t){if(new.target)return It({component:Gu,...r});Ct(t,!0);const n=(O,ye=or,pe=or)=>{var A=$u(),ge=z(A);Xe(ge,{variant:"secondary",size:"icon-sm",class:"tile-action tile-remove",get disabled(){return i()},get"aria-label"(){return pe()},tooltipContentClass:"dock-chrome-tooltip",get tooltip(){return pe()},onclick:()=>q(ye()),children:(Te,Be)=>{Ss(Te,{glyph:"x"})},$$slots:{default:!0}}),R(A),u(O,A)};let a=g(t,"items",7),o=g(t,"labels",7),i=g(t,"disabled",7,!1),d=g(t,"onMarkUp",7),c=g(t,"onEdit",7),h=g(t,"onRemove",7),v=g(t,"onRetry",7),b=g(t,"onCopy",7),k=g(t,"onMenu",7);const N=O=>O.owner==="attachment"?2:{image:0,clip:1,file:2}[O.kind],Y=s(()=>[...a()].sort((O,ye)=>N(O)-N(ye)));let S=we(null),D=we(!1),ie=we(null),X=null;const M=s(()=>a().find(O=>O.id===e(ie)));sr(()=>{(!e(M)||e(M).kind==="image"&&!W(e(M)))&&j(D,!1)});function W(O){return O.kind==="image"&&O.status!=="placing"&&O.status!=="failed"&&O.url.trim().length>0}function E(O){return O.kind==="image"?o().image(O.markCount):O.kind==="clip"?O.summary?`${o().clip(O.duration)} ${O.summary}`:o().clip(O.duration):O.name}function ne(O,ye){if(!(i()||O.kind==="file"||O.kind==="image"&&!W(O)||O.kind==="clip"&&(!O.url||O.recording))){if((O.kind==="clip"||O.kind==="image")&&c()){c()(O.id);return}X=ye,j(ie,O.id,!0),j(D,!0)}}async function q(O){i()||(e(ie)===O&&j(D,!1),h()(O),await Cn(),(!document.activeElement||document.activeElement===document.body)&&e(S)?.querySelector("button:not(:disabled)")?.focus())}function F(O){const ye=a().find(pe=>pe.id===O);i()||!ye||!W(ye)||(j(D,!1),c()?c()(O):d()(O))}function ae(O,ye){O.key!=="Delete"||i()||(O.preventDefault(),O.stopPropagation(),q(ye))}function C(O){return O.status==="placing"||O.status==="failed"?!1:O.kind==="image"?!!O.file||W(O):O.kind==="clip"&&!O.recording&&!!O.url}function ee(O,ye){const pe=Zl()?O.metaKey:O.ctrlKey,A=O.key.toLowerCase();if(pe&&!O.shiftKey&&!O.altKey&&(A==="c"||A==="x")){if(!b()||!C(ye)||(O.preventDefault(),O.stopPropagation(),A==="x"&&i()))return;b()(ye.id,A==="x");return}ae(O,ye.id)}function le(O,ye){!k()||!C(ye)||(O.preventDefault(),k()(ye.id))}var me={get items(){return a()},set items(O){a(O),m()},get labels(){return o()},set labels(O){o(O),m()},get disabled(){return i()},set disabled(O=!1){i(O),m()},get onMarkUp(){return d()},set onMarkUp(O){d(O),m()},get onEdit(){return c()},set onEdit(O){c(O),m()},get onRemove(){return h()},set onRemove(O){h(O),m()},get onRetry(){return v()},set onRetry(O){v(O),m()},get onCopy(){return b()},set onCopy(O){b(O),m()},get onMenu(){return k()},set onMenu(O){k(O),m()},$set:St,$on:(O,ye)=>Tt(t,O,ye)},_e=Ku(),Re=xe(_e);{var Le=O=>{var ye=Wu();Tr(ye,21,()=>e(Y),pe=>pe.id,(pe,A)=>{var ge=Rt(),Te=xe(ge);{var Be=P=>{var Q=Ou(),re=z(Q);{let G=s(()=>i()||e(A).status==="placing");ki(re,{get id(){return e(A).id},get name(){return e(A).file.name},get type(){return e(A).file.imageMimeType},get imageData(){return e(A).file.imageData},get imageMimeType(){return e(A).file.imageMimeType},variant:"thumbnail",thumbnailClass:"size-full",class:"size-full",get disabled(){return e(G)},get placementStatus(){return e(A).status},get placementError(){return e(A).error}})}var se=T(re,2);{var ce=G=>{var Ee=jo(),De=oe(Ee,!0);$(()=>{te(Ee,"data-failed",e(A).status==="failed"||void 0),te(Ee,"role",e(A).status==="failed"?"alert":"status"),te(Ee,"title",e(A).error),J(De,e(A).status==="failed"?e(A).error??o().attachmentFailed:o().attachmentPending)}),u(G,Ee)};B(se,G=>{e(A).status&&G(ce)})}var w=T(se,2),Se=z(w);{var Ae=G=>{Xe(G,{variant:"primary",size:"icon-sm",class:"tile-action",get disabled(){return i()},get"aria-label"(){return o().retry},tooltipContentClass:"dock-chrome-tooltip",get tooltip(){return o().retry},onclick:()=>v()?.(e(A).id),children:(Ee,De)=>{jt(Ee,{get icon(){return zs},size:16})},$$slots:{default:!0}})};B(Se,G=>{e(A).status==="failed"&&v()&&G(Ae)})}var L=T(Se,2);{let G=s(()=>f.chat_attachmentPreview_remove_ariaLabel({name:e(A).file.name}));n(L,()=>e(A).id,()=>e(G))}R(w),R(Q),$(()=>te(Q,"data-attachment-id",e(A).id)),Sr("keydown",Q,G=>ee(G,e(A))),Sr("contextmenu",Q,G=>le(G,e(A))),Kt(1,Q,()=>qa,()=>({tier:"fast",y:3,scale:.98})),Kt(2,Q,()=>ea,()=>({tier:"fast"})),u(P,Q)},Ce=P=>{const Q=s(()=>e(A).kind==="image"&&!W(e(A))&&e(A).status!=="failed");var re=zu(),se=z(re);{var ce=ve=>{Xe(ve,{type:"button",variant:"ghost",wrapContent:!1,class:"open-tile file",get"aria-label"(){return e(A).name},get disabled(){return i()},onkeydown:Oe=>ae(Oe,e(A).id),children:(Oe,U)=>{var ue=qu(),ot=xe(ue);jt(ot,{get icon(){return Tn},size:20});var xt=T(ot),mt=oe(xt,!0);$(()=>J(mt,e(A).name)),u(Oe,ue)},$$slots:{default:!0}})},w=ve=>{{let Oe=s(()=>E(e(A))),U=s(()=>i()||e(A).kind==="clip"&&(e(A).recording||!e(A).url));Xe(ve,{type:"button",variant:"ghost",wrapContent:!1,class:"open-tile",get"aria-label"(){return e(Oe)},get disabled(){return e(U)},onkeydown:ue=>ee(ue,e(A)),onclick:ue=>{ue.currentTarget instanceof HTMLElement&&ne(e(A),ue.currentTarget)},children:(ue,ot)=>{var xt=Rt(),mt=xe(xt);{var Ft=je=>{var bt=Du();$(()=>te(bt,"src",e(A).url)),u(je,bt)},pt=je=>{var bt=Fu(),at=T(z(bt)),dt=oe(at,!0),$e=T(at);{var ft=K=>{var _=Bu(),he=oe(_,!0);$(()=>J(he,e(A).summary)),u(K,_)};B($e,K=>{e(A).summary&&K(ft)})}R(bt),$(()=>J(dt,e(A).duration)),u(je,bt)};B(mt,je=>{e(A).kind==="image"?je(Ft):je(pt,-1)})}u(ue,xt)},$$slots:{default:!0}})}},Se=s(()=>e(A).kind!=="image"||W(e(A)));B(se,ve=>{e(A).kind==="file"?ve(ce):e(Se)&&ve(w,1)})}var Ae=T(se,2);{var L=ve=>{var Oe=jo(),U=oe(Oe,!0);$(()=>{te(Oe,"data-failed",e(A).status==="failed"||void 0),te(Oe,"role",e(A).status==="failed"?"alert":"status"),te(Oe,"title",e(A).error),J(U,e(A).status==="failed"?e(A).error??o().attachmentFailed:o().attachmentPending)}),u(ve,Oe)};B(Ae,ve=>{(e(A).status||e(Q))&&ve(L)})}var G=T(Ae,2),Ee=z(G);{var De=ve=>{Xe(ve,{variant:"primary",size:"icon-sm",class:"tile-action",get disabled(){return i()},get"aria-label"(){return o().retry},tooltipContentClass:"dock-chrome-tooltip",get tooltip(){return o().retry},onclick:()=>v()?.(e(A).id),children:(Oe,U)=>{jt(Oe,{get icon(){return zs},size:16})},$$slots:{default:!0}})},Je=ve=>{{let Oe=s(()=>c()?o().edit:o().markUp),U=s(()=>c()?o().edit:o().markUp);Xe(ve,{variant:"primary",size:"icon-sm",class:"tile-action",get disabled(){return i()},get"aria-label"(){return e(Oe)},tooltipContentClass:"dock-chrome-tooltip",get tooltip(){return e(U)},onclick:()=>F(e(A).id),children:(ue,ot)=>{Ss(ue,{glyph:"pencil"})},$$slots:{default:!0}})}},Ge=s(()=>W(e(A))),Bt=ve=>{{let Oe=s(()=>c()?o().edit:o().play),U=s(()=>c()?o().edit:o().play);Xe(ve,{variant:"primary",size:"icon-sm",class:"tile-action",get disabled(){return i()},get"aria-label"(){return e(Oe)},tooltipContentClass:"dock-chrome-tooltip",get tooltip(){return e(U)},onclick:ue=>{ue.currentTarget instanceof HTMLElement&&ne(e(A),ue.currentTarget)},children:(ue,ot)=>{{let xt=s(()=>c()?"pencil":"play");Ss(ue,{get glyph(){return e(xt)}})}},$$slots:{default:!0}})}};B(Ee,ve=>{e(A).status==="failed"&&v()?ve(De):e(Ge)?ve(Je,1):e(A).kind==="clip"&&!e(A).recording&&e(A).url&&ve(Bt,2)})}var ke=T(Ee,2);n(ke,()=>e(A).id,()=>o().remove),R(G),R(re),$(()=>{te(re,"data-kind",e(A).kind),te(re,"data-attachment-id",e(A).id),te(re,"aria-busy",e(Q)||void 0)}),Sr("contextmenu",re,ve=>le(ve,e(A))),Kt(1,re,()=>qa,()=>({tier:"fast",y:3,scale:.98})),Kt(2,re,()=>ea,()=>({tier:"fast"})),u(P,re)};B(Te,P=>{e(A).kind==="image"&&e(A).file?P(Be):P(Ce,-1)})}u(pe,ge)}),R(ye),cn(ye,pe=>j(S,pe),()=>e(S)),$(()=>te(ye,"aria-label",o().attachments)),u(O,ye)};B(Re,O=>{e(Y).length&&O(Le)})}var Ke=T(Re,2);{const O=pe=>{var A=Rt(),ge=xe(A);{var Te=Be=>{var Ce=Hu(),P=xe(Ce);{var Q=w=>{Xe(w,{variant:"primary",get disabled(){return i()},onclick:()=>e(M)&&F(e(M).id),children:(Se,Ae)=>{gr();var L=Or();$(()=>J(L,o().markUp)),u(Se,L)},$$slots:{default:!0}})},re=s(()=>W(e(M)));B(P,w=>{e(re)&&w(Q)})}var se=T(P,2);Xe(se,{variant:"secondary",get disabled(){return i()},onclick:()=>e(M)&&q(e(M).id),children:(w,Se)=>{gr();var Ae=Or();$(()=>J(Ae,o().remove)),u(w,Ae)},$$slots:{default:!0}});var ce=T(se,2);Xe(ce,{variant:"ghost-light",onclick:()=>{j(D,!1)},children:(w,Se)=>{gr();var Ae=Or();$(()=>J(Ae,o().done)),u(w,Ae)},$$slots:{default:!0}}),u(Be,Ce)};B(ge,Be=>{e(M)&&e(M).kind!=="file"&&Be(Te)})}u(pe,A)};let ye=s(()=>e(M)?E(e(M)):o().attachments);xi(Ke,{get title(){return e(ye)},size:"wide",showCloseButton:!1,onCloseAutoFocus:pe=>{pe.preventDefault(),X?.isConnected?X.focus():e(S)?.querySelector("button:not(:disabled)")?.focus()},get open(){return e(D)},set open(pe){j(D,pe,!0)},footer:O,children:(pe,A)=>{var ge=Rt(),Te=xe(ge);{var Be=Ce=>{var P=Vu(),Q=z(P);{var re=w=>{var Se=Uu();$(Ae=>{te(Se,"src",e(M).url),te(Se,"alt",Ae)},[()=>E(e(M))]),u(w,Se)},se=s(()=>e(M).kind==="image"&&W(e(M))),ce=w=>{var Se=ju();$(Ae=>{te(Se,"src",e(M).url),te(Se,"aria-label",Ae)},[()=>E(e(M))]),u(w,Se)};B(Q,w=>{e(se)?w(re):e(M).kind==="clip"&&e(M).url&&w(ce,1)})}R(P),u(Ce,P)};B(Te,Ce=>{e(M)&&e(M).kind!=="file"&&Ce(Be)})}u(pe,ge)},$$slots:{footer:!0,default:!0}})}return u(r,_e),At(me)}aa(["keydown","contextmenu"]);var Qu=I("<!> ",1),Zu=I('<div class="flex flex-col gap-2 px-4 py-3 bg-muted/30 border border-border rounded-lg my-4"><div class="flex items-center justify-between gap-2"><div class="flex items-center gap-2"><div class="shrink-0 text-subtle"><!></div> <div class="font-medium text-sm"> </div></div> <div class="flex items-center gap-1"><!> <!></div></div> <div class="text-xs text-subtle"> </div> <pre class="text-xs bg-background/50 rounded p-2 overflow-x-auto max-h-40 overflow-y-auto font-mono"> </pre></div>');function Vi(r,t){if(new.target)return It({component:Vi,...r});Ct(t,!0);let n=g(t,"name",7),a=g(t,"description",7),o=g(t,"content",7),i=g(t,"onUseScript",7),d=we(!1);function c(){navigator.clipboard.writeText(o()),j(d,!0),setTimeout(()=>{j(d,!1)},2e3)}function h(){i()?.({name:n(),description:a(),content:o()})}var v={get name(){return n()},set name(C){n(C),m()},get description(){return a()},set description(C){a(C),m()},get content(){return o()},set content(C){o(C),m()},get onUseScript(){return i()},set onUseScript(C){i(C),m()},$set:St,$on:(C,ee)=>Tt(t,C,ee)},b=Zu(),k=z(b),N=z(k),Y=z(N),S=z(Y);jt(S,{get icon(){return no},size:"sm"}),R(Y);var D=T(Y,2),ie=oe(D,!0);R(N);var X=T(N,2),M=z(X);Xe(M,{variant:"ghost-light",size:"sm",onclick:c,class:"h-7 px-2",children:(C,ee)=>{var le=Qu(),me=xe(le);{let Re=s(()=>e(d)?bi:wi);jt(me,{get icon(){return e(Re)},class:"mr-1"})}var _e=T(me);$(Re=>J(_e,` ${Re??""}`),[()=>e(d)?f.chat_shared_copied_label():f.chat_shared_copy_label()]),u(C,le)},$$slots:{default:!0}});var W=T(M,2);{var E=C=>{Xe(C,{variant:"ghost-light",size:"sm",onclick:h,class:"h-7 px-2",children:(ee,le)=>{gr();var me=Or();$(_e=>J(me,_e),[()=>f.chat_setupScriptCard_useScript_label()]),u(ee,me)},$$slots:{default:!0}})};B(W,C=>{i()&&C(E)})}R(X),R(k);var ne=T(k,2),q=oe(ne,!0),F=T(ne,2),ae=oe(F,!0);return R(b),$(()=>{J(ie,n()),J(q,a()),J(ae,o())}),u(r,b),At(v)}const wr={toolStart:/(?:\x1B\[\d+m)?🔧\s+(?:Tool call:\s+)?(.+?)(?:\x1B\[0m)?$/,toolDetail:/(?:[└├]─\s+(.+)$|^\s{3,}(.+)$)/,toolResult:/(?:\x1B\[\d+m)?📋\s+Tool result:\s+(.+?)(?:\x1B\[0m)?$/,toolSuccess:/[✓✔✅]\s+(.+)$/,toolError:/[❌✗❎]\s+(.+)$/,sessionInfo:/[Ss]ession:\s*([a-f0-9-]+)/,resumedSession:/📂?\s*Resumed session/i,assistantMarker:/🤖/,systemMarker:/💻/,userMarker:/👤/,thinkingMarker:/🤔\s*Thinking/i,waitingMarker:/^⏳\s+Running/i,indexingProgress:/^Indexing:\s*\[.*\]\s*\d+%/,agentDigest:/<agent_digest>([\s\S]*?)<\/agent_digest>/,setupScript:/<setup_script\s+name="([^"]+)"\s+description="([^"]+)">([\s\S]*?)<\/setup_script>/};class Ju{constructor(){kn(this,"buffer","");kn(this,"currentToolName",null);kn(this,"currentToolId",null);kn(this,"lastToolId",null);kn(this,"currentToolParams",[]);kn(this,"currentToolResultContent",[]);kn(this,"inToolResult",!1);kn(this,"inCodeBlock",!1);kn(this,"codeBlockLanguage","");kn(this,"codeBlockContent","");kn(this,"characterBuffer","");kn(this,"inCharacterMode",!1);kn(this,"emittedToolIds",new Set)}parseChunk(t){if(this.isMarkerLine(t.trim())){const o=[];if(this.inToolResult&&this.currentToolResultContent.length>0){const c=this.currentToolResultContent.some(v=>v.startsWith("❌")||v.startsWith("Error:")),h=this.currentToolResultContent.map(v=>v.replace(/^❌\s*/,"").replace(/^Error:\s*/,"")).join(`
1
+ var $l=Object.defineProperty;var Ol=(r,t,n)=>t in r?$l(r,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):r[t]=n;var kn=(r,t,n)=>Ol(r,typeof t!="symbol"?t+"":t,n);import{t as It,bq as g,by as St,b as Tt,bo as f,bs as Kn,bu as dr,bt as ql,br as ha}from"./Y9-4hTF9.js";import{ai as aa,bs as Ct,ca as sr,aD as e,bH as j,ay as xe,bS as T,a7 as Rt,W as u,a5 as z,bA as R,bn as At,c9 as s,bV as we,aA as m,b_ as $,aj as Sr,aB as I,be as gr,b$ as Or,bO as J,bf as or,c0 as Cn,bl as oe,bj as jn,c6 as Dl,bo as za,br as Yr,am as Dn,ax as Bn,bk as as,aw as va,bz as ss,cb as ms,c5 as Ha,aC as xr,cd as _o,bv as Bl}from"./DYhIMPy1.js";import{i as B}from"./BL2lJmRT.js";import{g as Tr,e as _n,p as ps,i as Yn,I as Fl,h as eo,X as _i,o as zl}from"./BZQDFgmp.js";import{I as Kt,F as qa,c as ea,j as Wl,s as yi,p as to,y as Hl,u as Ul,t as $r,g as oa,B as ws,E as os,S as jl}from"./BLgIfeYS.js";import{s as te,f as ze,g as _a,c as kt,e as ar,b as ya,p as Vl,S as Kl,C as Gl}from"./cFbB-5Cu.js";import{b as cn}from"./BaIAhI85.js";import{f as Xe,ae as ro,a_ as Ql}from"./q6hitSEG.js";import{J as Zl,O as Jl,Q as xs}from"./DOH10_LL.js";import"./-FMYDRBF.js";import"./NDjLJa7E.js";import"./Dj3ZrCzO.js";import{s as Ln}from"./CrWhihJ_.js";import{F as jt,a0 as zs,bc as Tn,cF as no,aq as bi,aV as wi,aG as Xl,c4 as Yl,a2 as is,aJ as ed,cI as td,cH as rd,$ as vs,as as ao,I as yo,af as nd,bq as ad,aO as sd,aT as od,bF as id,ak as ld,cx as dd,ay as bo,aL as wo,bX as ks,aE as Ua,cR as cd,c6 as ud,bj as fd,b as gd,ck as md,ac as pd,b6 as Is,cm as xa,cA as vd,a as hd}from"./Mc93eSxl.js";import{c as xi,A as _d,x as yd}from"./BS8Oxiwq.js";import{b as Ss,V as xo}from"./BtFbwSdu.js";import{a as ki,b7 as Pr,A as Ga,ao as Ii,s as bd,n as Si,d as wd,I as xd,R as kd,ax as Id,a0 as Sd}from"./OqhgDTXY.js";import{bX as Ti,j as Qa,a6 as Ws,al as ls,F as Td,au as Za,aN as Cd,aQ as ko}from"./BTmwOa4k.js";import{t as ia,o as Ad}from"./DqcBqbDI.js";import{c3 as Ja,aC as Da,cQ as Ci,cS as Vn,bU as hs,j as Md,cJ as Ai,cP as _s,cO as Mi,cM as Pi,g as Nn,aa as Pd,ab as Rd,ax as Ed,s as Nd,K as Ld,W as Io,v as Ri,dO as $d,at as Od,k as qd,u as Ts,a6 as Dd,n as Bd,O as Fd,o as zd,S as Wd,R as Hd,a0 as Ud,q as Ei,r as Ni,l as jd,cT as Vd,a4 as Kd,D as Gd,x as Qd,V as So}from"./ClH0Gega.js";import{Iz as yt,oz as Zd,t9 as Xa,no as To,v1 as Li,v3 as $i,rn as Jd,x$ as ds,uk as Oi,nj as qi,bd as Ya,y0 as Xd,q1 as Yd,sG as ec,uW as Di,ni as tc,mp as rc,g as nc,ys as ac,yp as sc,yr as oc}from"./tU_ZJtMw.js";import{a2 as ic,x as Cs,a0 as lc,O as As,V as dc,_ as cc,j as uc,o as ka,M as fa,p as fc,F as gc,u as mc,s as pc,L as Ms,J as vc,y as hc,K as _c,Z as Ma,Q as ja,N as Co,m as Ao,E as yc,c as Ps,B as Mo,z as bc,v as Po,H as Pa,P as wc,G as xc,i as kc,R as Ic,T as Sc,A as Tc,g as Cc,b as Ac,D as Mc,f as Pc,e as Rc,a as Ec,C as Nc,h as Lc,U as Bi,a3 as $c,t as Oc,k as qc,d as Ro}from"./DmPUdZ3Q.js";import{i as Dc,e as Bc}from"./5GYSXevc.js";import{g as Rs}from"./BvFAWM27.js";import{M as Ia,C as Ra}from"./BSXAflgO.js";import{C as Eo}from"./CpdNExym.js";import"./GsRDe2p3.js";import{P as Fc}from"./C1ovolmS.js";import"./Dr9VLQ7a.js";import{c as Fi}from"./ChTqQfQN.js";import{S as zc}from"./DHT7J7Js.js";import{D as No,M as Wc}from"./Cea00daJ.js";import{b as Hc,s as na,c as cs}from"./IcPxPcX-.js";import{O as es,y as Es,E as Ns,B as Ls,N as Uc,m as jc,l as Vc,d as us,C as Lo,f as Kc,e as Gc,g as Qc}from"./pxtIOzW5.js";import{a as zi,s as $o}from"./BsieX9dN.js";import{f as Zc}from"./BdWqymET.js";import{c as dn}from"./BgsoTwBt.js";import{P as Jc}from"./BMOaW1oW.js";import{v as $s,t as Os,K as Oo,h as Xc}from"./BpC_WiOJ.js";import{R as Hs,C as ys,k as Yc,h as eu,g as tu,i as qo,P as ru}from"./Bv2KudWv.js";import"./DU9Ky5os.js";import{R as Do,x as Na,o as Wi}from"./8y_Q4Ch2.js";import{B as nu}from"./B1Bex3N_.js";import{o as Hi,r as au,e as su}from"./Bexsu_yM.js";import{o as Ui}from"./CvS-4PUY.js";import{g as so}from"./C_Lje1cd.js";import{a as ou,M as iu}from"./CIpI7Qrh.js";import{c as Sa}from"./CPKMQWOs.js";import{A as lu}from"./C5YJxA2w.js";import{f as du,d as cu}from"./Ce1Plj-G.js";import{a8 as uu,N as fu,Y as gu,K as Bo,X as mu,v as pu}from"./D6A9_vDu.js";import{a as vu}from"./CC7to1B5.js";import{k as hu}from"./C6vwP-ay.js";import{S as _u}from"./rt8UAcU5.js";import{u as yu,a as bu,c as Fo,S as wu}from"./DfxQWSVU.js";import{T as Us}from"./Bii5NwwM.js";import"./BJwkYtAi.js";import{g as xu}from"./DYxNs3ex.js";import{a as ku}from"./CXOFOhS1.js";import{b as Iu}from"./C-P--5-o.js";import{b as zo}from"./p7znhYIU.js";import{g as Su,i as Tu,a as Cu}from"./CO4a0yRH.js";import{n as Wo,o as Ho,b as ma,s as Ta,_ as qs,e as Au}from"./CIyUrgF0.js";import{aX as Un,B as Mu}from"./aos1n-nT.js";import{x as Pu}from"./DLIkH-mx.js";import{c as Ru}from"./8AI-DblB.js";function Eu(r){if(!r||typeof r!="object")return null;const t=r;if(t.type!=="script_monitor_wake"||t.source!=="system")return null;const{scriptName:n,scriptId:a,runId:o,monitorId:i,workspaceId:d,reason:c}=t;if(typeof n!="string"||typeof a!="string"||!a||typeof o!="string"||!o||typeof i!="string"||!i||typeof d!="string"||!d||c!=="finished"&&c!=="ttl-expired"&&c!=="output-match"&&c!=="line-count")return null;const h=t.trigger;return{scriptName:n,scriptId:a,runId:o,monitorId:i,workspaceId:d,reason:c,...c==="output-match"&&typeof h?.matchedLine=="string"?{matchedLine:h.matchedLine}:{}}}function Nu(r){return r?.type==="script_monitor_wake"&&!("remoteAgentId"in r)}function Lu(r,t,n,a=!1){if(!r||!t)return{edit:!1,remove:!1,sendNow:!1};const o=r.messageMetadata?.fromPrincipalId??r.author?.principalId,i=uu(r)&&r.author?.principalId!==null&&o===t;return{edit:i,remove:i||t===n||a,sendNow:(i||a)&&!ji(r)}}function Ca(r,t){if(t)return r.find(n=>n.editing&&n.editingMessageId?n.editingMessageId===t:n.id===t)}function ji(r){return Nu(r.messageMetadata)&&typeof r.messageMetadata?.monitorId=="string"}function Uo(r,t=Date.now()){const n=r.messageMetadata,a=n?.fromPrincipalId,o=n&&Object.hasOwn(n,"humanAuthor")&&!(typeof a=="string"&&a.length>0),i=r.holdKind!==void 0&&Date.parse(r.holdUntil??"")>t;return!r.editing&&!i&&!o&&!ji(r)}const G_="pl-3.5! pr-2!";var $u=I('<span class="tile-remove-slot svelte-d8pwpf"><!></span>'),jo=I('<span class="attachment-status svelte-d8pwpf"> </span>'),Ou=I('<div class="file-image tile svelte-d8pwpf" data-kind="file"><!> <!> <div class="tile-actions svelte-d8pwpf"><!> <!></div></div>'),qu=I("<!><span> </span>",1),Du=I('<img alt="" draggable="false"/>'),Bu=I('<span class="summary svelte-d8pwpf" data-clip-summary=""> </span>'),Fu=I('<span class="clip svelte-d8pwpf"><span class="record-dot svelte-d8pwpf" aria-hidden="true"></span><span class="duration svelte-d8pwpf"> </span><!></span>'),zu=I('<div class="tile svelte-d8pwpf"><!> <!> <div class="tile-actions svelte-d8pwpf"><!> <!></div></div>'),Wu=I('<div class="attachment-row svelte-d8pwpf" role="group" data-dock-media-attachments=""></div>'),Hu=I("<!> <!> <!>",1),Uu=I('<img draggable="false" class="svelte-d8pwpf"/>'),ju=I('<video controls="" playsinline="" class="svelte-d8pwpf"></video>',2),Vu=I('<div class="media-viewer svelte-d8pwpf"><!></div>'),Ku=I("<!> <!>",1);function Gu(r,t){if(new.target)return It({component:Gu,...r});Ct(t,!0);const n=(O,ye=or,pe=or)=>{var A=$u(),ge=z(A);Xe(ge,{variant:"secondary",size:"icon-sm",class:"tile-action tile-remove",get disabled(){return i()},get"aria-label"(){return pe()},tooltipContentClass:"dock-chrome-tooltip",get tooltip(){return pe()},onclick:()=>q(ye()),children:(Te,Be)=>{Ss(Te,{glyph:"x"})},$$slots:{default:!0}}),R(A),u(O,A)};let a=g(t,"items",7),o=g(t,"labels",7),i=g(t,"disabled",7,!1),d=g(t,"onMarkUp",7),c=g(t,"onEdit",7),h=g(t,"onRemove",7),v=g(t,"onRetry",7),b=g(t,"onCopy",7),k=g(t,"onMenu",7);const N=O=>O.owner==="attachment"?2:{image:0,clip:1,file:2}[O.kind],Y=s(()=>[...a()].sort((O,ye)=>N(O)-N(ye)));let S=we(null),D=we(!1),ie=we(null),X=null;const M=s(()=>a().find(O=>O.id===e(ie)));sr(()=>{(!e(M)||e(M).kind==="image"&&!W(e(M)))&&j(D,!1)});function W(O){return O.kind==="image"&&O.status!=="placing"&&O.status!=="failed"&&O.url.trim().length>0}function E(O){return O.kind==="image"?o().image(O.markCount):O.kind==="clip"?O.summary?`${o().clip(O.duration)} ${O.summary}`:o().clip(O.duration):O.name}function ne(O,ye){if(!(i()||O.kind==="file"||O.kind==="image"&&!W(O)||O.kind==="clip"&&(!O.url||O.recording))){if((O.kind==="clip"||O.kind==="image")&&c()){c()(O.id);return}X=ye,j(ie,O.id,!0),j(D,!0)}}async function q(O){i()||(e(ie)===O&&j(D,!1),h()(O),await Cn(),(!document.activeElement||document.activeElement===document.body)&&e(S)?.querySelector("button:not(:disabled)")?.focus())}function F(O){const ye=a().find(pe=>pe.id===O);i()||!ye||!W(ye)||(j(D,!1),c()?c()(O):d()(O))}function ae(O,ye){O.key!=="Delete"||i()||(O.preventDefault(),O.stopPropagation(),q(ye))}function C(O){return O.status==="placing"||O.status==="failed"?!1:O.kind==="image"?!!O.file||W(O):O.kind==="clip"&&!O.recording&&!!O.url}function ee(O,ye){const pe=Zl()?O.metaKey:O.ctrlKey,A=O.key.toLowerCase();if(pe&&!O.shiftKey&&!O.altKey&&(A==="c"||A==="x")){if(!b()||!C(ye)||(O.preventDefault(),O.stopPropagation(),A==="x"&&i()))return;b()(ye.id,A==="x");return}ae(O,ye.id)}function le(O,ye){!k()||!C(ye)||(O.preventDefault(),k()(ye.id))}var me={get items(){return a()},set items(O){a(O),m()},get labels(){return o()},set labels(O){o(O),m()},get disabled(){return i()},set disabled(O=!1){i(O),m()},get onMarkUp(){return d()},set onMarkUp(O){d(O),m()},get onEdit(){return c()},set onEdit(O){c(O),m()},get onRemove(){return h()},set onRemove(O){h(O),m()},get onRetry(){return v()},set onRetry(O){v(O),m()},get onCopy(){return b()},set onCopy(O){b(O),m()},get onMenu(){return k()},set onMenu(O){k(O),m()},$set:St,$on:(O,ye)=>Tt(t,O,ye)},_e=Ku(),Re=xe(_e);{var Le=O=>{var ye=Wu();Tr(ye,21,()=>e(Y),pe=>pe.id,(pe,A)=>{var ge=Rt(),Te=xe(ge);{var Be=P=>{var Q=Ou(),re=z(Q);{let G=s(()=>i()||e(A).status==="placing");ki(re,{get id(){return e(A).id},get name(){return e(A).file.name},get type(){return e(A).file.imageMimeType},get imageData(){return e(A).file.imageData},get imageMimeType(){return e(A).file.imageMimeType},variant:"thumbnail",thumbnailClass:"size-full",class:"size-full",get disabled(){return e(G)},get placementStatus(){return e(A).status},get placementError(){return e(A).error}})}var se=T(re,2);{var ce=G=>{var Ee=jo(),De=oe(Ee,!0);$(()=>{te(Ee,"data-failed",e(A).status==="failed"||void 0),te(Ee,"role",e(A).status==="failed"?"alert":"status"),te(Ee,"title",e(A).error),J(De,e(A).status==="failed"?e(A).error??o().attachmentFailed:o().attachmentPending)}),u(G,Ee)};B(se,G=>{e(A).status&&G(ce)})}var w=T(se,2),Se=z(w);{var Ae=G=>{Xe(G,{variant:"primary",size:"icon-sm",class:"tile-action",get disabled(){return i()},get"aria-label"(){return o().retry},tooltipContentClass:"dock-chrome-tooltip",get tooltip(){return o().retry},onclick:()=>v()?.(e(A).id),children:(Ee,De)=>{jt(Ee,{get icon(){return zs},size:16})},$$slots:{default:!0}})};B(Se,G=>{e(A).status==="failed"&&v()&&G(Ae)})}var L=T(Se,2);{let G=s(()=>f.chat_attachmentPreview_remove_ariaLabel({name:e(A).file.name}));n(L,()=>e(A).id,()=>e(G))}R(w),R(Q),$(()=>te(Q,"data-attachment-id",e(A).id)),Sr("keydown",Q,G=>ee(G,e(A))),Sr("contextmenu",Q,G=>le(G,e(A))),Kt(1,Q,()=>qa,()=>({tier:"fast",y:3,scale:.98})),Kt(2,Q,()=>ea,()=>({tier:"fast"})),u(P,Q)},Ce=P=>{const Q=s(()=>e(A).kind==="image"&&!W(e(A))&&e(A).status!=="failed");var re=zu(),se=z(re);{var ce=ve=>{Xe(ve,{type:"button",variant:"ghost",wrapContent:!1,class:"open-tile file",get"aria-label"(){return e(A).name},get disabled(){return i()},onkeydown:Oe=>ae(Oe,e(A).id),children:(Oe,U)=>{var ue=qu(),ot=xe(ue);jt(ot,{get icon(){return Tn},size:20});var xt=T(ot),mt=oe(xt,!0);$(()=>J(mt,e(A).name)),u(Oe,ue)},$$slots:{default:!0}})},w=ve=>{{let Oe=s(()=>E(e(A))),U=s(()=>i()||e(A).kind==="clip"&&(e(A).recording||!e(A).url));Xe(ve,{type:"button",variant:"ghost",wrapContent:!1,class:"open-tile",get"aria-label"(){return e(Oe)},get disabled(){return e(U)},onkeydown:ue=>ee(ue,e(A)),onclick:ue=>{ue.currentTarget instanceof HTMLElement&&ne(e(A),ue.currentTarget)},children:(ue,ot)=>{var xt=Rt(),mt=xe(xt);{var Ft=je=>{var bt=Du();$(()=>te(bt,"src",e(A).url)),u(je,bt)},pt=je=>{var bt=Fu(),at=T(z(bt)),dt=oe(at,!0),$e=T(at);{var ft=K=>{var _=Bu(),he=oe(_,!0);$(()=>J(he,e(A).summary)),u(K,_)};B($e,K=>{e(A).summary&&K(ft)})}R(bt),$(()=>J(dt,e(A).duration)),u(je,bt)};B(mt,je=>{e(A).kind==="image"?je(Ft):je(pt,-1)})}u(ue,xt)},$$slots:{default:!0}})}},Se=s(()=>e(A).kind!=="image"||W(e(A)));B(se,ve=>{e(A).kind==="file"?ve(ce):e(Se)&&ve(w,1)})}var Ae=T(se,2);{var L=ve=>{var Oe=jo(),U=oe(Oe,!0);$(()=>{te(Oe,"data-failed",e(A).status==="failed"||void 0),te(Oe,"role",e(A).status==="failed"?"alert":"status"),te(Oe,"title",e(A).error),J(U,e(A).status==="failed"?e(A).error??o().attachmentFailed:o().attachmentPending)}),u(ve,Oe)};B(Ae,ve=>{(e(A).status||e(Q))&&ve(L)})}var G=T(Ae,2),Ee=z(G);{var De=ve=>{Xe(ve,{variant:"primary",size:"icon-sm",class:"tile-action",get disabled(){return i()},get"aria-label"(){return o().retry},tooltipContentClass:"dock-chrome-tooltip",get tooltip(){return o().retry},onclick:()=>v()?.(e(A).id),children:(Oe,U)=>{jt(Oe,{get icon(){return zs},size:16})},$$slots:{default:!0}})},Je=ve=>{{let Oe=s(()=>c()?o().edit:o().markUp),U=s(()=>c()?o().edit:o().markUp);Xe(ve,{variant:"primary",size:"icon-sm",class:"tile-action",get disabled(){return i()},get"aria-label"(){return e(Oe)},tooltipContentClass:"dock-chrome-tooltip",get tooltip(){return e(U)},onclick:()=>F(e(A).id),children:(ue,ot)=>{Ss(ue,{glyph:"pencil"})},$$slots:{default:!0}})}},Ge=s(()=>W(e(A))),Bt=ve=>{{let Oe=s(()=>c()?o().edit:o().play),U=s(()=>c()?o().edit:o().play);Xe(ve,{variant:"primary",size:"icon-sm",class:"tile-action",get disabled(){return i()},get"aria-label"(){return e(Oe)},tooltipContentClass:"dock-chrome-tooltip",get tooltip(){return e(U)},onclick:ue=>{ue.currentTarget instanceof HTMLElement&&ne(e(A),ue.currentTarget)},children:(ue,ot)=>{{let xt=s(()=>c()?"pencil":"play");Ss(ue,{get glyph(){return e(xt)}})}},$$slots:{default:!0}})}};B(Ee,ve=>{e(A).status==="failed"&&v()?ve(De):e(Ge)?ve(Je,1):e(A).kind==="clip"&&!e(A).recording&&e(A).url&&ve(Bt,2)})}var ke=T(Ee,2);n(ke,()=>e(A).id,()=>o().remove),R(G),R(re),$(()=>{te(re,"data-kind",e(A).kind),te(re,"data-attachment-id",e(A).id),te(re,"aria-busy",e(Q)||void 0)}),Sr("contextmenu",re,ve=>le(ve,e(A))),Kt(1,re,()=>qa,()=>({tier:"fast",y:3,scale:.98})),Kt(2,re,()=>ea,()=>({tier:"fast"})),u(P,re)};B(Te,P=>{e(A).kind==="image"&&e(A).file?P(Be):P(Ce,-1)})}u(pe,ge)}),R(ye),cn(ye,pe=>j(S,pe),()=>e(S)),$(()=>te(ye,"aria-label",o().attachments)),u(O,ye)};B(Re,O=>{e(Y).length&&O(Le)})}var Ke=T(Re,2);{const O=pe=>{var A=Rt(),ge=xe(A);{var Te=Be=>{var Ce=Hu(),P=xe(Ce);{var Q=w=>{Xe(w,{variant:"primary",get disabled(){return i()},onclick:()=>e(M)&&F(e(M).id),children:(Se,Ae)=>{gr();var L=Or();$(()=>J(L,o().markUp)),u(Se,L)},$$slots:{default:!0}})},re=s(()=>W(e(M)));B(P,w=>{e(re)&&w(Q)})}var se=T(P,2);Xe(se,{variant:"secondary",get disabled(){return i()},onclick:()=>e(M)&&q(e(M).id),children:(w,Se)=>{gr();var Ae=Or();$(()=>J(Ae,o().remove)),u(w,Ae)},$$slots:{default:!0}});var ce=T(se,2);Xe(ce,{variant:"ghost-light",onclick:()=>{j(D,!1)},children:(w,Se)=>{gr();var Ae=Or();$(()=>J(Ae,o().done)),u(w,Ae)},$$slots:{default:!0}}),u(Be,Ce)};B(ge,Be=>{e(M)&&e(M).kind!=="file"&&Be(Te)})}u(pe,A)};let ye=s(()=>e(M)?E(e(M)):o().attachments);xi(Ke,{get title(){return e(ye)},size:"wide",showCloseButton:!1,onCloseAutoFocus:pe=>{pe.preventDefault(),X?.isConnected?X.focus():e(S)?.querySelector("button:not(:disabled)")?.focus()},get open(){return e(D)},set open(pe){j(D,pe,!0)},footer:O,children:(pe,A)=>{var ge=Rt(),Te=xe(ge);{var Be=Ce=>{var P=Vu(),Q=z(P);{var re=w=>{var Se=Uu();$(Ae=>{te(Se,"src",e(M).url),te(Se,"alt",Ae)},[()=>E(e(M))]),u(w,Se)},se=s(()=>e(M).kind==="image"&&W(e(M))),ce=w=>{var Se=ju();$(Ae=>{te(Se,"src",e(M).url),te(Se,"aria-label",Ae)},[()=>E(e(M))]),u(w,Se)};B(Q,w=>{e(se)?w(re):e(M).kind==="clip"&&e(M).url&&w(ce,1)})}R(P),u(Ce,P)};B(Te,Ce=>{e(M)&&e(M).kind!=="file"&&Ce(Be)})}u(pe,ge)},$$slots:{footer:!0,default:!0}})}return u(r,_e),At(me)}aa(["keydown","contextmenu"]);var Qu=I("<!> ",1),Zu=I('<div class="flex flex-col gap-2 px-4 py-3 bg-muted/30 border border-border rounded-lg my-4"><div class="flex items-center justify-between gap-2"><div class="flex items-center gap-2"><div class="shrink-0 text-subtle"><!></div> <div class="font-medium text-sm"> </div></div> <div class="flex items-center gap-1"><!> <!></div></div> <div class="text-xs text-subtle"> </div> <pre class="text-xs bg-background/50 rounded p-2 overflow-x-auto max-h-40 overflow-y-auto font-mono"> </pre></div>');function Vi(r,t){if(new.target)return It({component:Vi,...r});Ct(t,!0);let n=g(t,"name",7),a=g(t,"description",7),o=g(t,"content",7),i=g(t,"onUseScript",7),d=we(!1);function c(){navigator.clipboard.writeText(o()),j(d,!0),setTimeout(()=>{j(d,!1)},2e3)}function h(){i()?.({name:n(),description:a(),content:o()})}var v={get name(){return n()},set name(C){n(C),m()},get description(){return a()},set description(C){a(C),m()},get content(){return o()},set content(C){o(C),m()},get onUseScript(){return i()},set onUseScript(C){i(C),m()},$set:St,$on:(C,ee)=>Tt(t,C,ee)},b=Zu(),k=z(b),N=z(k),Y=z(N),S=z(Y);jt(S,{get icon(){return no},size:"sm"}),R(Y);var D=T(Y,2),ie=oe(D,!0);R(N);var X=T(N,2),M=z(X);Xe(M,{variant:"ghost-light",size:"sm",onclick:c,class:"h-7 px-2",children:(C,ee)=>{var le=Qu(),me=xe(le);{let Re=s(()=>e(d)?bi:wi);jt(me,{get icon(){return e(Re)},class:"mr-1"})}var _e=T(me);$(Re=>J(_e,` ${Re??""}`),[()=>e(d)?f.chat_shared_copied_label():f.chat_shared_copy_label()]),u(C,le)},$$slots:{default:!0}});var W=T(M,2);{var E=C=>{Xe(C,{variant:"ghost-light",size:"sm",onclick:h,class:"h-7 px-2",children:(ee,le)=>{gr();var me=Or();$(_e=>J(me,_e),[()=>f.chat_setupScriptCard_useScript_label()]),u(ee,me)},$$slots:{default:!0}})};B(W,C=>{i()&&C(E)})}R(X),R(k);var ne=T(k,2),q=oe(ne,!0),F=T(ne,2),ae=oe(F,!0);return R(b),$(()=>{J(ie,n()),J(q,a()),J(ae,o())}),u(r,b),At(v)}const wr={toolStart:/(?:\x1B\[\d+m)?🔧\s+(?:Tool call:\s+)?(.+?)(?:\x1B\[0m)?$/,toolDetail:/(?:[└├]─\s+(.+)$|^\s{3,}(.+)$)/,toolResult:/(?:\x1B\[\d+m)?📋\s+Tool result:\s+(.+?)(?:\x1B\[0m)?$/,toolSuccess:/[✓✔✅]\s+(.+)$/,toolError:/[❌✗❎]\s+(.+)$/,sessionInfo:/[Ss]ession:\s*([a-f0-9-]+)/,resumedSession:/📂?\s*Resumed session/i,assistantMarker:/🤖/,systemMarker:/💻/,userMarker:/👤/,thinkingMarker:/🤔\s*Thinking/i,waitingMarker:/^⏳\s+Running/i,indexingProgress:/^Indexing:\s*\[.*\]\s*\d+%/,agentDigest:/<agent_digest>([\s\S]*?)<\/agent_digest>/,setupScript:/<setup_script\s+name="([^"]+)"\s+description="([^"]+)">([\s\S]*?)<\/setup_script>/};class Ju{constructor(){kn(this,"buffer","");kn(this,"currentToolName",null);kn(this,"currentToolId",null);kn(this,"lastToolId",null);kn(this,"currentToolParams",[]);kn(this,"currentToolResultContent",[]);kn(this,"inToolResult",!1);kn(this,"inCodeBlock",!1);kn(this,"codeBlockLanguage","");kn(this,"codeBlockContent","");kn(this,"characterBuffer","");kn(this,"inCharacterMode",!1);kn(this,"emittedToolIds",new Set)}parseChunk(t){if(this.isMarkerLine(t.trim())){const o=[];if(this.inToolResult&&this.currentToolResultContent.length>0){const c=this.currentToolResultContent.some(v=>v.startsWith("❌")||v.startsWith("Error:")),h=this.currentToolResultContent.map(v=>v.replace(/^❌\s*/,"").replace(/^Error:\s*/,"")).join(`
2
2
  `);o.push({type:"tool_result",content:h,metadata:{toolId:this.currentToolId,isError:c}}),this.lastToolId=this.currentToolId,this.currentToolId=null,this.inToolResult=!1,this.currentToolResultContent=[]}const i=t.indexOf("🤖"),d=t.substring(i+2);if(this.inCharacterMode=!0,this.characterBuffer="",d&&d.trim()&&d!==`
3
3
  `){const c=d.replace(/^\n/,"");c&&(this.characterBuffer=c)}return o}if(this.inCharacterMode){if(t.trim()===""&&this.characterBuffer==="")return[];if(t.includes(`
4
4
  `)&&this.characterBuffer.length>0){const o=t.substring(0,t.indexOf(`
@@ -1,4 +1,4 @@
1
- import{c as t,s as r}from"./CpAH86bK.js";import{b as a}from"./BlT4teVV.js";var s=a(e=>`${r(e)}
1
+ import{c as t,s as r}from"./hX-OZN0i.js";import{b as a}from"./Cea00daJ.js";var s=a(e=>`${r(e)}
2
2
  .swimlane.cluster:not([data-color-id]) rect {
3
3
  stroke: ${e.clusterBorder} !important;
4
4
  }
@@ -1 +1 @@
1
- import{g as p,r as u,d as n}from"./CYgkTCkB.js";import{p as f}from"./-e8CXeVs.js";import{b as a,ay as o}from"./BlT4teVV.js";import{M as c,c as d}from"./CUxXMHrG.js";var v=d().RailroadAbnf.parser.LangiumParser,i=a(e=>{const r=e.alternatives.map(g);return r.length===1?r[0]:{type:"choice",alternatives:r}},"transformAlternation"),g=a(e=>{const r=e.elements.map(y);return r.length===1?r[0]:{type:"sequence",elements:r}},"transformConcatenation"),b=a(e=>{if(e.includes("*")){const[t,s]=e.split("*"),l=t?parseInt(t,10):0,m=s?parseInt(s,10):1/0;return{min:l,max:m}}const r=parseInt(e,10);return{min:r,max:r}},"parseRepeat"),y=a(e=>{const r=A(e.primary);if(!e.repeat)return r;const{min:t,max:s}=b(e.repeat);return t===0&&s===1?{type:"optional",element:r}:{type:"repetition",element:r,min:t,max:s}},"transformElement"),A=a(e=>{switch(e.$type){case"AbnfStringLiteral":return{type:"terminal",value:e.value};case"AbnfNumVal":return{type:"terminal",value:e.value};case"AbnfRuleName":return{type:"nonterminal",name:e.name};case"AbnfGroup":return i(e.element);case"AbnfOptionalGroup":return{type:"optional",element:i(e.element)};default:throw new Error(`Unsupported ABNF primary node: ${e.$type}`)}},"transformPrimary"),P=a(e=>({name:e.name,definition:i(e.definition)}),"transformRule"),h=a(e=>{f(e,n),e.title&&n.setTitle(e.title),e.rules.map(r=>n.addRule(P(r)))},"populateDb"),R={parse:a(e=>{n.clear(),o.debug("[ABNF Parser] Starting Langium parse");const r=v.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new c(r);const t=r.value;o.debug("[ABNF Parser] Parsed rules:",t.rules.length),h(t),o.debug("[ABNF Parser] Parse complete")},"parse"),parser:{yy:n}},w={parser:R,db:n,renderer:u,styles:p};export{w as diagram};
1
+ import{g as p,r as u,d as n}from"./D5Rbr5zM.js";import{p as f}from"./Swl7IApi.js";import{b as a,ay as o}from"./Cea00daJ.js";import{M as c,c as d}from"./CUxXMHrG.js";var v=d().RailroadAbnf.parser.LangiumParser,i=a(e=>{const r=e.alternatives.map(g);return r.length===1?r[0]:{type:"choice",alternatives:r}},"transformAlternation"),g=a(e=>{const r=e.elements.map(y);return r.length===1?r[0]:{type:"sequence",elements:r}},"transformConcatenation"),b=a(e=>{if(e.includes("*")){const[t,s]=e.split("*"),l=t?parseInt(t,10):0,m=s?parseInt(s,10):1/0;return{min:l,max:m}}const r=parseInt(e,10);return{min:r,max:r}},"parseRepeat"),y=a(e=>{const r=A(e.primary);if(!e.repeat)return r;const{min:t,max:s}=b(e.repeat);return t===0&&s===1?{type:"optional",element:r}:{type:"repetition",element:r,min:t,max:s}},"transformElement"),A=a(e=>{switch(e.$type){case"AbnfStringLiteral":return{type:"terminal",value:e.value};case"AbnfNumVal":return{type:"terminal",value:e.value};case"AbnfRuleName":return{type:"nonterminal",name:e.name};case"AbnfGroup":return i(e.element);case"AbnfOptionalGroup":return{type:"optional",element:i(e.element)};default:throw new Error(`Unsupported ABNF primary node: ${e.$type}`)}},"transformPrimary"),P=a(e=>({name:e.name,definition:i(e.definition)}),"transformRule"),h=a(e=>{f(e,n),e.title&&n.setTitle(e.title),e.rules.map(r=>n.addRule(P(r)))},"populateDb"),R={parse:a(e=>{n.clear(),o.debug("[ABNF Parser] Starting Langium parse");const r=v.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new c(r);const t=r.value;o.debug("[ABNF Parser] Parsed rules:",t.rules.length),h(t),o.debug("[ABNF Parser] Parse complete")},"parse"),parser:{yy:n}},w={parser:R,db:n,renderer:u,styles:p};export{w as diagram};
@@ -1,4 +1,4 @@
1
- import{g as ae}from"./CQGCQvNO.js";import{s as ce}from"./BkihpvKL.js";import{b as l,ay as C,a1 as le,aP as he,W as de,O as G,X as B,aV as F,a8 as ge,an as ue,au as pe,H as fe}from"./BlT4teVV.js";var Y=(function(){var n=l(function(x,s,i,o){for(i=i||{},o=x.length;o--;i[x[o]]=s);return i},"o"),e=[1,4],a=[1,13],d=[1,12],t=[1,15],h=[1,16],u=[1,20],m=[1,19],E=[6,7,8],_=[1,26],D=[1,24],w=[1,25],g=[6,7,11],R=[1,6,13,15,16,19,22],q=[1,33],J=[1,34],A=[1,6,7,11,13,15,16,19,22],j={trace:l(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,MINDMAP:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,ICON:15,CLASS:16,nodeWithId:17,nodeWithoutId:18,NODE_DSTART:19,NODE_DESCR:20,NODE_DEND:21,NODE_ID:22,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"MINDMAP",11:"EOF",13:"SPACELIST",15:"ICON",16:"CLASS",19:"NODE_DSTART",20:"NODE_DESCR",21:"NODE_DEND",22:"NODE_ID"},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,2],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[18,3],[17,1],[17,4]],performAction:l(function(s,i,o,c,f,r,$){var p=r.length-1;switch(f){case 6:case 7:return c;case 8:c.getLogger().trace("Stop NL ");break;case 9:c.getLogger().trace("Stop EOF ");break;case 11:c.getLogger().trace("Stop NL2 ");break;case 12:c.getLogger().trace("Stop EOF2 ");break;case 15:c.getLogger().info("Node: ",r[p].id),c.addNode(r[p-1].length,r[p].id,r[p].descr,r[p].type);break;case 16:c.getLogger().trace("Icon: ",r[p]),c.decorateNode({icon:r[p]});break;case 17:case 21:c.decorateNode({class:r[p]});break;case 18:c.getLogger().trace("SPACELIST");break;case 19:c.getLogger().trace("Node: ",r[p].id),c.addNode(0,r[p].id,r[p].descr,r[p].type);break;case 20:c.decorateNode({icon:r[p]});break;case 25:c.getLogger().trace("node found ..",r[p-2]),this.$={id:r[p-1],descr:r[p-1],type:c.getType(r[p-2],r[p])};break;case 26:this.$={id:r[p],descr:r[p],type:c.nodeType.DEFAULT};break;case 27:c.getLogger().trace("node found ..",r[p-3]),this.$={id:r[p-3],descr:r[p-1],type:c.getType(r[p-2],r[p])};break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:e},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:e},{6:a,7:[1,10],9:9,12:11,13:d,14:14,15:t,16:h,17:17,18:18,19:u,22:m},n(E,[2,3]),{1:[2,2]},n(E,[2,4]),n(E,[2,5]),{1:[2,6],6:a,12:21,13:d,14:14,15:t,16:h,17:17,18:18,19:u,22:m},{6:a,9:22,12:11,13:d,14:14,15:t,16:h,17:17,18:18,19:u,22:m},{6:_,7:D,10:23,11:w},n(g,[2,22],{17:17,18:18,14:27,15:[1,28],16:[1,29],19:u,22:m}),n(g,[2,18]),n(g,[2,19]),n(g,[2,20]),n(g,[2,21]),n(g,[2,23]),n(g,[2,24]),n(g,[2,26],{19:[1,30]}),{20:[1,31]},{6:_,7:D,10:32,11:w},{1:[2,7],6:a,12:21,13:d,14:14,15:t,16:h,17:17,18:18,19:u,22:m},n(R,[2,14],{7:q,11:J}),n(A,[2,8]),n(A,[2,9]),n(A,[2,10]),n(g,[2,15]),n(g,[2,16]),n(g,[2,17]),{20:[1,35]},{21:[1,36]},n(R,[2,13],{7:q,11:J}),n(A,[2,11]),n(A,[2,12]),{21:[1,37]},n(g,[2,25]),n(g,[2,27])],defaultActions:{2:[2,1],6:[2,2]},parseError:l(function(s,i){if(i.recoverable)this.trace(s);else{var o=new Error(s);throw o.hash=i,o}},"parseError"),parse:l(function(s){var i=this,o=[0],c=[],f=[null],r=[],$=this.table,p="",M=0,K=0,ie=2,Q=1,se=r.slice.call(arguments,1),y=Object.create(this.lexer),v={yy:{}};for(var H in this.yy)Object.prototype.hasOwnProperty.call(this.yy,H)&&(v.yy[H]=this.yy[H]);y.setInput(s,v.yy),v.yy.lexer=y,v.yy.parser=this,typeof y.yylloc>"u"&&(y.yylloc={});var W=y.yylloc;r.push(W);var re=y.options&&y.options.ranges;typeof v.yy.parseError=="function"?this.parseError=v.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function oe(b){o.length=o.length-2*b,f.length=f.length-b,r.length=r.length-b}l(oe,"popStack");function Z(){var b;return b=c.pop()||y.lex()||Q,typeof b!="number"&&(b instanceof Array&&(c=b,b=c.pop()),b=i.symbols_[b]||b),b}l(Z,"lex");for(var k,T,S,X,O={},U,N,ee,V;;){if(T=o[o.length-1],this.defaultActions[T]?S=this.defaultActions[T]:((k===null||typeof k>"u")&&(k=Z()),S=$[T]&&$[T][k]),typeof S>"u"||!S.length||!S[0]){var z="";V=[];for(U in $[T])this.terminals_[U]&&U>ie&&V.push("'"+this.terminals_[U]+"'");y.showPosition?z="Parse error on line "+(M+1)+`:
1
+ import{g as ae}from"./BFLrA-xP.js";import{s as ce}from"./ygGiV4X4.js";import{b as l,ay as C,a1 as le,aP as he,W as de,O as G,X as B,aV as F,a8 as ge,an as ue,au as pe,H as fe}from"./Cea00daJ.js";var Y=(function(){var n=l(function(x,s,i,o){for(i=i||{},o=x.length;o--;i[x[o]]=s);return i},"o"),e=[1,4],a=[1,13],d=[1,12],t=[1,15],h=[1,16],u=[1,20],m=[1,19],E=[6,7,8],_=[1,26],D=[1,24],w=[1,25],g=[6,7,11],R=[1,6,13,15,16,19,22],q=[1,33],J=[1,34],A=[1,6,7,11,13,15,16,19,22],j={trace:l(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,MINDMAP:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,ICON:15,CLASS:16,nodeWithId:17,nodeWithoutId:18,NODE_DSTART:19,NODE_DESCR:20,NODE_DEND:21,NODE_ID:22,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"MINDMAP",11:"EOF",13:"SPACELIST",15:"ICON",16:"CLASS",19:"NODE_DSTART",20:"NODE_DESCR",21:"NODE_DEND",22:"NODE_ID"},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,2],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[18,3],[17,1],[17,4]],performAction:l(function(s,i,o,c,f,r,$){var p=r.length-1;switch(f){case 6:case 7:return c;case 8:c.getLogger().trace("Stop NL ");break;case 9:c.getLogger().trace("Stop EOF ");break;case 11:c.getLogger().trace("Stop NL2 ");break;case 12:c.getLogger().trace("Stop EOF2 ");break;case 15:c.getLogger().info("Node: ",r[p].id),c.addNode(r[p-1].length,r[p].id,r[p].descr,r[p].type);break;case 16:c.getLogger().trace("Icon: ",r[p]),c.decorateNode({icon:r[p]});break;case 17:case 21:c.decorateNode({class:r[p]});break;case 18:c.getLogger().trace("SPACELIST");break;case 19:c.getLogger().trace("Node: ",r[p].id),c.addNode(0,r[p].id,r[p].descr,r[p].type);break;case 20:c.decorateNode({icon:r[p]});break;case 25:c.getLogger().trace("node found ..",r[p-2]),this.$={id:r[p-1],descr:r[p-1],type:c.getType(r[p-2],r[p])};break;case 26:this.$={id:r[p],descr:r[p],type:c.nodeType.DEFAULT};break;case 27:c.getLogger().trace("node found ..",r[p-3]),this.$={id:r[p-3],descr:r[p-1],type:c.getType(r[p-2],r[p])};break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:e},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:e},{6:a,7:[1,10],9:9,12:11,13:d,14:14,15:t,16:h,17:17,18:18,19:u,22:m},n(E,[2,3]),{1:[2,2]},n(E,[2,4]),n(E,[2,5]),{1:[2,6],6:a,12:21,13:d,14:14,15:t,16:h,17:17,18:18,19:u,22:m},{6:a,9:22,12:11,13:d,14:14,15:t,16:h,17:17,18:18,19:u,22:m},{6:_,7:D,10:23,11:w},n(g,[2,22],{17:17,18:18,14:27,15:[1,28],16:[1,29],19:u,22:m}),n(g,[2,18]),n(g,[2,19]),n(g,[2,20]),n(g,[2,21]),n(g,[2,23]),n(g,[2,24]),n(g,[2,26],{19:[1,30]}),{20:[1,31]},{6:_,7:D,10:32,11:w},{1:[2,7],6:a,12:21,13:d,14:14,15:t,16:h,17:17,18:18,19:u,22:m},n(R,[2,14],{7:q,11:J}),n(A,[2,8]),n(A,[2,9]),n(A,[2,10]),n(g,[2,15]),n(g,[2,16]),n(g,[2,17]),{20:[1,35]},{21:[1,36]},n(R,[2,13],{7:q,11:J}),n(A,[2,11]),n(A,[2,12]),{21:[1,37]},n(g,[2,25]),n(g,[2,27])],defaultActions:{2:[2,1],6:[2,2]},parseError:l(function(s,i){if(i.recoverable)this.trace(s);else{var o=new Error(s);throw o.hash=i,o}},"parseError"),parse:l(function(s){var i=this,o=[0],c=[],f=[null],r=[],$=this.table,p="",M=0,K=0,ie=2,Q=1,se=r.slice.call(arguments,1),y=Object.create(this.lexer),v={yy:{}};for(var H in this.yy)Object.prototype.hasOwnProperty.call(this.yy,H)&&(v.yy[H]=this.yy[H]);y.setInput(s,v.yy),v.yy.lexer=y,v.yy.parser=this,typeof y.yylloc>"u"&&(y.yylloc={});var W=y.yylloc;r.push(W);var re=y.options&&y.options.ranges;typeof v.yy.parseError=="function"?this.parseError=v.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function oe(b){o.length=o.length-2*b,f.length=f.length-b,r.length=r.length-b}l(oe,"popStack");function Z(){var b;return b=c.pop()||y.lex()||Q,typeof b!="number"&&(b instanceof Array&&(c=b,b=c.pop()),b=i.symbols_[b]||b),b}l(Z,"lex");for(var k,T,S,X,O={},U,N,ee,V;;){if(T=o[o.length-1],this.defaultActions[T]?S=this.defaultActions[T]:((k===null||typeof k>"u")&&(k=Z()),S=$[T]&&$[T][k]),typeof S>"u"||!S.length||!S[0]){var z="";V=[];for(U in $[T])this.terminals_[U]&&U>ie&&V.push("'"+this.terminals_[U]+"'");y.showPosition?z="Parse error on line "+(M+1)+`:
2
2
  `+y.showPosition()+`
3
3
  Expecting `+V.join(", ")+", got '"+(this.terminals_[k]||k)+"'":z="Parse error on line "+(M+1)+": Unexpected "+(k==Q?"end of input":"'"+(this.terminals_[k]||k)+"'"),this.parseError(z,{text:y.match,token:this.terminals_[k]||k,line:y.yylineno,loc:W,expected:V})}if(S[0]instanceof Array&&S.length>1)throw new Error("Parse Error: multiple actions possible at state: "+T+", token: "+k);switch(S[0]){case 1:o.push(k),f.push(y.yytext),r.push(y.yylloc),o.push(S[1]),k=null,K=y.yyleng,p=y.yytext,M=y.yylineno,W=y.yylloc;break;case 2:if(N=this.productions_[S[1]][1],O.$=f[f.length-N],O._$={first_line:r[r.length-(N||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(N||1)].first_column,last_column:r[r.length-1].last_column},re&&(O._$.range=[r[r.length-(N||1)].range[0],r[r.length-1].range[1]]),X=this.performAction.apply(O,[p,K,M,v.yy,S[1],f,r].concat(se)),typeof X<"u")return X;N&&(o=o.slice(0,-1*N*2),f=f.slice(0,-1*N),r=r.slice(0,-1*N)),o.push(this.productions_[S[1]][0]),f.push(O.$),r.push(O._$),ee=$[o[o.length-2]][o[o.length-1]],o.push(ee);break;case 3:return!0}}return!0},"parse")},ne=(function(){var x={EOF:1,parseError:l(function(i,o){if(this.yy.parser)this.yy.parser.parseError(i,o);else throw new Error(i)},"parseError"),setInput:l(function(s,i){return this.yy=i||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:l(function(){var s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var i=s.match(/(?:\r\n?|\n).*/g);return i?(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:l(function(s){var i=s.length,o=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-i),this.offset-=i;var c=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),o.length-1&&(this.yylineno-=o.length-1);var f=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:o?(o.length===c.length?this.yylloc.first_column:0)+c[c.length-o.length].length-o[0].length:this.yylloc.first_column-i},this.options.ranges&&(this.yylloc.range=[f[0],f[0]+this.yyleng-i]),this.yyleng=this.yytext.length,this},"unput"),more:l(function(){return this._more=!0,this},"more"),reject:l(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:l(function(s){this.unput(this.match.slice(s))},"less"),pastInput:l(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:l(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:l(function(){var s=this.pastInput(),i=new Array(s.length+1).join("-");return s+this.upcomingInput()+`
@@ -1 +1 @@
1
- import{aB as v,b as y}from"./BlT4teVV.js";var w=5,O=1e-5,X=2,Y=.6,R=1e-6;function N(t){const e=[];for(let s=0;s<t.length-1;s++)e.push({a:t[s],b:t[s+1]});return e}y(N,"buildSegmentList");function T(t,e,s,a){const r=e.x-t.x,o=e.y-t.y,i=a.x-s.x,d=a.y-s.y,u=r*d-o*i;if(u===0)return null;const n=s.x-t.x,c=s.y-t.y,p=(n*d-c*i)/u,f=(n*o-c*r)/u;return p<=R||p>=1-R||f<=R||f>=1-R?null:{point:{x:t.x+p*r,y:t.y+p*o},tA:p,tB:f}}y(T,"segmentIntersection");function P(t){return Math.abs(t.b.x-t.a.x)>=Math.abs(t.b.y-t.a.y)}y(P,"isHorizontalSeg");function B(t,e,s){if(t.curve!=="rounded")return!1;const a=t.points,r=a[e],o=a[e+1];if(!r||!o)return!1;const i=Math.hypot(o.x-r.x,o.y-r.y),d=s*i,u=e>0?L(a[e-1],r,o,w):null;if(u&&d<u.cutLen)return!0;const n=e+2<a.length?L(r,o,a[e+2],w):null;return n!==null&&i-d<n.cutLen}y(B,"crossingSitsInRoundedCorner");function C(t){const e=[];for(let s=0;s<t.length;s++){const a=t[s],r=N(a.points);for(let o=s+1;o<t.length;o++){const i=t[o],d=N(i.points);for(const[u,n]of r.entries())for(const[c,p]of d.entries()){const f=T(n.a,n.b,p.a,p.b);if(!f||B(a,u,f.tA)||B(i,c,f.tB))continue;const g=P(n),S=P(p);(g!==S?g:!1)?e.push({jumpEdgeId:a.id,otherEdgeId:i.id,segIndex:u,t:f.tA,point:f.point}):e.push({jumpEdgeId:i.id,otherEdgeId:a.id,segIndex:c,t:f.tB,point:f.point})}}}return e}y(C,"findEdgeIntersections");function M(t){const e=Math.round(t*1e3)/1e3;return Number.isInteger(e)?`${e}`:`${e}`}y(M,"fmt");function A(t){return`${M(t.x)},${M(t.y)}`}y(A,"pointToString");function D(t){const e=t.b.x-t.a.x,s=t.b.y-t.a.y;return Math.abs(e)>=Math.abs(s)?e>=0?1:0:s>=0?1:0}y(D,"getArcSweepFlag");function _(t,e){if(t.length<2)return t.map(o=>({...o}));const s=t.map(o=>({...o})),a=e.arrowTypeStart&&v[e.arrowTypeStart];if(a){const o=t[0],i=t[1],d=Math.atan2(i.y-o.y,i.x-o.x);s[0].x=o.x+a*Math.cos(d),s[0].y=o.y+a*Math.sin(d)}const r=e.arrowTypeEnd&&v[e.arrowTypeEnd];if(r){const o=t.length,i=t[o-2],d=t[o-1],u=Math.atan2(d.y-i.y,d.x-i.x);s[o-1].x=d.x-r*Math.cos(u),s[o-1].y=d.y-r*Math.sin(u)}return s}y(_,"applyMarkerOffsets");function k(t,e,s,a,r){const o=t.point.x,i=t.point.y,d={x:o-e*t.r,y:i-s*t.r},u={x:o+e*t.r,y:i+s*t.r},n=[`L${A(d)}`];return r==="arc"?n.push(`A${M(t.r)},${M(t.r)} 0 0 ${a} ${A(u)}`):n.push(`M${A(u)}`),n}y(k,"emitJump");function L(t,e,s,a){const r=e.x-t.x,o=e.y-t.y,i=s.x-e.x,d=s.y-e.y,u=Math.hypot(r,o),n=Math.hypot(i,d);if(u<O||n<O)return null;const c=r/u,p=o/u,f=i/n,g=d/n,S=c*f+p*g,b=Math.max(-1,Math.min(1,S)),m=Math.acos(b);if(m<O||Math.abs(Math.PI-m)<O)return null;const h=Math.min(a/Math.sin(m/2),u/2,n/2);return{startX:e.x-c*h,startY:e.y-p*h,endX:e.x+f*h,endY:e.y+g*h,ctrlX:e.x,ctrlY:e.y,cutLen:h}}y(L,"computeRoundedCorner");function H(t,e,s){const a=t.points;if(a.length<2)return"";const r=_(a,t),o=t.curve==="rounded",i=N(r),d=new Map;for(const n of e){const c=i[n.segIndex];if(!c)continue;const p=Math.hypot(c.b.x-c.a.x,c.b.y-c.a.y),f=d.get(n.segIndex)??[];f.push({t:n.t,point:n.point,d:n.t*p,r:s.jumpRadius}),d.set(n.segIndex,f)}const u=[`M${A(r[0])}`];for(let n=0;n<i.length;n++){const c=i[n],p=Math.hypot(c.b.x-c.a.x,c.b.y-c.a.y),f=p===0?0:(c.b.x-c.a.x)/p,g=p===0?0:(c.b.y-c.a.y)/p,S=D(c);let b=0;if(o&&n>0){const l=L(r[n-1],r[n],r[n+1]??r[n],w);l&&(b=l.cutLen)}let m=p,h=null;o&&n<i.length-1&&(h=L(r[n],r[n+1],r[n+2]??r[n+1],w),h&&(m=p-h.cutLen));const $=s.jumpRadius*Y,x=[...d.get(n)??[]].sort((l,E)=>l.t-E.t).filter(l=>{const E=Math.min(l.d-b,m-l.d)-X;return l.r=Math.min(l.r,E),l.r>=$});for(let l=0;l<x.length-1;l++){const E=x[l+1].d-x[l].d;if(x[l].r+x[l+1].r>E){const I=E/2;x[l].r=Math.min(x[l].r,I),x[l+1].r=Math.min(x[l+1].r,I)}}for(const l of x)l.r<$||u.push(...k(l,f,g,S,s.jumpStyle));o&&h?(u.push(`L${M(h.startX)},${M(h.startY)}`),u.push(`Q${M(h.ctrlX)},${M(h.ctrlY)} ${M(h.endX)},${M(h.endY)}`)):u.push(`L${A(c.b)}`)}return u.join(" ")}y(H,"rewriteEdgePath");function J(t){return/^[\d\s+,.LMelm-]*$/.test(t)}y(J,"isStraightPath");function U(t){return t?t==="linear"||t==="rounded"||t==="step"||t==="stepBefore"||t==="stepAfter":!0}y(U,"curveSupportsLineHops");function j(t){if(!t)return null;try{const e=typeof atob=="function"?atob(t):Buffer.from(t,"base64").toString(),s=JSON.parse(e);if(!Array.isArray(s))return null;const a=[];for(const r of s)r&&typeof r.x=="number"&&typeof r.y=="number"&&a.push({x:r.x,y:r.y});return a.length>=2?a:null}catch{return null}}y(j,"decodeDataPoints");function F(t,e,s){if(!s.enabled)return;const a=t.node();if(!a)return;const r=new Map;for(const n of e)r.set(n.id,n);const o=new Map;for(const n of a.querySelectorAll("path[data-id]")){const c=n.getAttribute("data-id");c!==null&&!o.has(c)&&o.set(c,n)}const i=[];for(const n of e){const c=o.get(n.id);if(!c)continue;const f=j(c.getAttribute("data-points"))??n.points;i.push({...n,points:f})}const d=C(i);if(d.length===0)return;const u=new Map;for(const n of d){const c=u.get(n.jumpEdgeId)??[];c.push(n),u.set(n.jumpEdgeId,c)}for(const n of i){const c=u.get(n.id);if(!c||c.length===0)continue;const f=r.get(n.id)?.curve;if(f!==void 0&&!U(f))continue;const g=o.get(n.id);if(!g)continue;if(f===void 0){const x=g.getAttribute("d")??"";if(!J(x))continue}const S=g.getAttribute("style")??"",b=/stroke-dasharray\s*:\s*0\s+([\d.]+)\s+[\d.]+\s+([\d.]+)/.exec(S),m=b?Number.parseFloat(b[1]):null,h=b?Number.parseFloat(b[2]):null,$=H(n,c,s);if(g.setAttribute("d",$),m!==null&&h!==null&&typeof g.getTotalLength=="function"){const x=g.getTotalLength(),l=Math.max(0,x-m-h),E=`0 ${m} ${l} ${h}`,I=S.replace(/stroke-dasharray\s*:[^;]*;?/g,`stroke-dasharray: ${E};`).replace(/;\s*;+/g,";");g.setAttribute("style",I)}}}y(F,"applyLineJumpsToSvg");export{F as a};
1
+ import{aB as v,b as y}from"./Cea00daJ.js";var w=5,O=1e-5,X=2,Y=.6,R=1e-6;function N(t){const e=[];for(let s=0;s<t.length-1;s++)e.push({a:t[s],b:t[s+1]});return e}y(N,"buildSegmentList");function T(t,e,s,a){const r=e.x-t.x,o=e.y-t.y,i=a.x-s.x,d=a.y-s.y,u=r*d-o*i;if(u===0)return null;const n=s.x-t.x,c=s.y-t.y,p=(n*d-c*i)/u,f=(n*o-c*r)/u;return p<=R||p>=1-R||f<=R||f>=1-R?null:{point:{x:t.x+p*r,y:t.y+p*o},tA:p,tB:f}}y(T,"segmentIntersection");function P(t){return Math.abs(t.b.x-t.a.x)>=Math.abs(t.b.y-t.a.y)}y(P,"isHorizontalSeg");function B(t,e,s){if(t.curve!=="rounded")return!1;const a=t.points,r=a[e],o=a[e+1];if(!r||!o)return!1;const i=Math.hypot(o.x-r.x,o.y-r.y),d=s*i,u=e>0?L(a[e-1],r,o,w):null;if(u&&d<u.cutLen)return!0;const n=e+2<a.length?L(r,o,a[e+2],w):null;return n!==null&&i-d<n.cutLen}y(B,"crossingSitsInRoundedCorner");function C(t){const e=[];for(let s=0;s<t.length;s++){const a=t[s],r=N(a.points);for(let o=s+1;o<t.length;o++){const i=t[o],d=N(i.points);for(const[u,n]of r.entries())for(const[c,p]of d.entries()){const f=T(n.a,n.b,p.a,p.b);if(!f||B(a,u,f.tA)||B(i,c,f.tB))continue;const g=P(n),S=P(p);(g!==S?g:!1)?e.push({jumpEdgeId:a.id,otherEdgeId:i.id,segIndex:u,t:f.tA,point:f.point}):e.push({jumpEdgeId:i.id,otherEdgeId:a.id,segIndex:c,t:f.tB,point:f.point})}}}return e}y(C,"findEdgeIntersections");function M(t){const e=Math.round(t*1e3)/1e3;return Number.isInteger(e)?`${e}`:`${e}`}y(M,"fmt");function A(t){return`${M(t.x)},${M(t.y)}`}y(A,"pointToString");function D(t){const e=t.b.x-t.a.x,s=t.b.y-t.a.y;return Math.abs(e)>=Math.abs(s)?e>=0?1:0:s>=0?1:0}y(D,"getArcSweepFlag");function _(t,e){if(t.length<2)return t.map(o=>({...o}));const s=t.map(o=>({...o})),a=e.arrowTypeStart&&v[e.arrowTypeStart];if(a){const o=t[0],i=t[1],d=Math.atan2(i.y-o.y,i.x-o.x);s[0].x=o.x+a*Math.cos(d),s[0].y=o.y+a*Math.sin(d)}const r=e.arrowTypeEnd&&v[e.arrowTypeEnd];if(r){const o=t.length,i=t[o-2],d=t[o-1],u=Math.atan2(d.y-i.y,d.x-i.x);s[o-1].x=d.x-r*Math.cos(u),s[o-1].y=d.y-r*Math.sin(u)}return s}y(_,"applyMarkerOffsets");function k(t,e,s,a,r){const o=t.point.x,i=t.point.y,d={x:o-e*t.r,y:i-s*t.r},u={x:o+e*t.r,y:i+s*t.r},n=[`L${A(d)}`];return r==="arc"?n.push(`A${M(t.r)},${M(t.r)} 0 0 ${a} ${A(u)}`):n.push(`M${A(u)}`),n}y(k,"emitJump");function L(t,e,s,a){const r=e.x-t.x,o=e.y-t.y,i=s.x-e.x,d=s.y-e.y,u=Math.hypot(r,o),n=Math.hypot(i,d);if(u<O||n<O)return null;const c=r/u,p=o/u,f=i/n,g=d/n,S=c*f+p*g,b=Math.max(-1,Math.min(1,S)),m=Math.acos(b);if(m<O||Math.abs(Math.PI-m)<O)return null;const h=Math.min(a/Math.sin(m/2),u/2,n/2);return{startX:e.x-c*h,startY:e.y-p*h,endX:e.x+f*h,endY:e.y+g*h,ctrlX:e.x,ctrlY:e.y,cutLen:h}}y(L,"computeRoundedCorner");function H(t,e,s){const a=t.points;if(a.length<2)return"";const r=_(a,t),o=t.curve==="rounded",i=N(r),d=new Map;for(const n of e){const c=i[n.segIndex];if(!c)continue;const p=Math.hypot(c.b.x-c.a.x,c.b.y-c.a.y),f=d.get(n.segIndex)??[];f.push({t:n.t,point:n.point,d:n.t*p,r:s.jumpRadius}),d.set(n.segIndex,f)}const u=[`M${A(r[0])}`];for(let n=0;n<i.length;n++){const c=i[n],p=Math.hypot(c.b.x-c.a.x,c.b.y-c.a.y),f=p===0?0:(c.b.x-c.a.x)/p,g=p===0?0:(c.b.y-c.a.y)/p,S=D(c);let b=0;if(o&&n>0){const l=L(r[n-1],r[n],r[n+1]??r[n],w);l&&(b=l.cutLen)}let m=p,h=null;o&&n<i.length-1&&(h=L(r[n],r[n+1],r[n+2]??r[n+1],w),h&&(m=p-h.cutLen));const $=s.jumpRadius*Y,x=[...d.get(n)??[]].sort((l,E)=>l.t-E.t).filter(l=>{const E=Math.min(l.d-b,m-l.d)-X;return l.r=Math.min(l.r,E),l.r>=$});for(let l=0;l<x.length-1;l++){const E=x[l+1].d-x[l].d;if(x[l].r+x[l+1].r>E){const I=E/2;x[l].r=Math.min(x[l].r,I),x[l+1].r=Math.min(x[l+1].r,I)}}for(const l of x)l.r<$||u.push(...k(l,f,g,S,s.jumpStyle));o&&h?(u.push(`L${M(h.startX)},${M(h.startY)}`),u.push(`Q${M(h.ctrlX)},${M(h.ctrlY)} ${M(h.endX)},${M(h.endY)}`)):u.push(`L${A(c.b)}`)}return u.join(" ")}y(H,"rewriteEdgePath");function J(t){return/^[\d\s+,.LMelm-]*$/.test(t)}y(J,"isStraightPath");function U(t){return t?t==="linear"||t==="rounded"||t==="step"||t==="stepBefore"||t==="stepAfter":!0}y(U,"curveSupportsLineHops");function j(t){if(!t)return null;try{const e=typeof atob=="function"?atob(t):Buffer.from(t,"base64").toString(),s=JSON.parse(e);if(!Array.isArray(s))return null;const a=[];for(const r of s)r&&typeof r.x=="number"&&typeof r.y=="number"&&a.push({x:r.x,y:r.y});return a.length>=2?a:null}catch{return null}}y(j,"decodeDataPoints");function F(t,e,s){if(!s.enabled)return;const a=t.node();if(!a)return;const r=new Map;for(const n of e)r.set(n.id,n);const o=new Map;for(const n of a.querySelectorAll("path[data-id]")){const c=n.getAttribute("data-id");c!==null&&!o.has(c)&&o.set(c,n)}const i=[];for(const n of e){const c=o.get(n.id);if(!c)continue;const f=j(c.getAttribute("data-points"))??n.points;i.push({...n,points:f})}const d=C(i);if(d.length===0)return;const u=new Map;for(const n of d){const c=u.get(n.jumpEdgeId)??[];c.push(n),u.set(n.jumpEdgeId,c)}for(const n of i){const c=u.get(n.id);if(!c||c.length===0)continue;const f=r.get(n.id)?.curve;if(f!==void 0&&!U(f))continue;const g=o.get(n.id);if(!g)continue;if(f===void 0){const x=g.getAttribute("d")??"";if(!J(x))continue}const S=g.getAttribute("style")??"",b=/stroke-dasharray\s*:\s*0\s+([\d.]+)\s+[\d.]+\s+([\d.]+)/.exec(S),m=b?Number.parseFloat(b[1]):null,h=b?Number.parseFloat(b[2]):null,$=H(n,c,s);if(g.setAttribute("d",$),m!==null&&h!==null&&typeof g.getTotalLength=="function"){const x=g.getTotalLength(),l=Math.max(0,x-m-h),E=`0 ${m} ${l} ${h}`,I=S.replace(/stroke-dasharray\s*:[^;]*;?/g,`stroke-dasharray: ${E};`).replace(/;\s*;+/g,";");g.setAttribute("style",I)}}}y(F,"applyLineJumpsToSvg");export{F as a};
@@ -1,5 +1,5 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/BeQgENlX.js","/app/immutable/chunks/DYhIMPy1.js","/app/immutable/chunks/Y9-4hTF9.js","/app/immutable/chunks/BL2lJmRT.js","/app/immutable/chunks/CrWhihJ_.js","/app/immutable/chunks/C_Lje1cd.js","/app/immutable/chunks/BLgIfeYS.js","/app/immutable/chunks/BZQDFgmp.js","/app/immutable/chunks/cFbB-5Cu.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/tU_ZJtMw.js","/app/immutable/chunks/WFvSJ9zU.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/CO4a0yRH.js","/app/immutable/chunks/DxwfiAWm.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/chunks/CEsW1euQ.js","/app/immutable/chunks/BaIAhI85.js","/app/immutable/chunks/q6hitSEG.js","/app/immutable/chunks/DOH10_LL.js","/app/immutable/chunks/CIpI7Qrh.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/CPKMQWOs.js","/app/immutable/chunks/C6vwP-ay.js","/app/immutable/chunks/DYxNs3ex.js","/app/immutable/chunks/-FMYDRBF.js","/app/immutable/chunks/BS8Oxiwq.js","/app/immutable/chunks/DqcBqbDI.js","/app/immutable/chunks/Mc93eSxl.js","/app/immutable/chunks/BMOaW1oW.js","/app/immutable/assets/menu-footer.Ck5GCpgU.css","/app/immutable/chunks/DfxQWSVU.js","/app/immutable/chunks/Dj3ZrCzO.js","/app/immutable/assets/dialog.BtQTVchw.css","/app/immutable/chunks/BsieX9dN.js","/app/immutable/assets/observe-overflow.CbDLK6fN.css","/app/immutable/chunks/CwDNa5HL.js","/app/immutable/chunks/BJwkYtAi.js","/app/immutable/chunks/NDjLJa7E.js","/app/immutable/chunks/XJv96NUg.js","/app/immutable/assets/confirm.UE5obH5A.css","/app/immutable/chunks/BWYr8u9e.js","/app/immutable/chunks/BeP4UORy.js","/app/immutable/chunks/-CHLoCv2.js","/app/immutable/chunks/DU9Ky5os.js","/app/immutable/assets/SettingsPage.D8u26cHZ.css","/app/immutable/chunks/CXOFOhS1.js","/app/immutable/chunks/C-P--5-o.js","/app/immutable/chunks/CC7to1B5.js","/app/immutable/chunks/Bv2KudWv.js","/app/immutable/assets/notify.BeL_JB6L.css","/app/immutable/chunks/BdWqymET.js","/app/immutable/chunks/DAdnLTte.js","/app/immutable/chunks/ClH0Gega.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/5GYSXevc.js","/app/immutable/chunks/DNWBkvFP.js","/app/immutable/chunks/CpHzYkzi.js","/app/immutable/chunks/aos1n-nT.js","/app/immutable/chunks/ddhULx4L.js","/app/immutable/chunks/D-l6NLYy.js","/app/immutable/chunks/BvFAWM27.js","/app/immutable/chunks/DYR-Lw2g.js","/app/immutable/chunks/DpR5pCWV.js","/app/immutable/chunks/l0ISWt9F.js","/app/immutable/chunks/CW7SMyin.js","/app/immutable/chunks/B0Z-1lwJ.js","/app/immutable/chunks/B_zHVi1K.js","/app/immutable/assets/directory-picker-service.CzNEA6Ot.css"])))=>i.map(i=>d[i]);
2
- import{bo as v,t as Bt,bq as y,by as Ft,b as zt,br as Qf,bu as bt,bs as ga,bt as el,b6 as Nl,bl as $f,b9 as ep,bk as tp,ba as rp,bm as np,a_ as ap,b8 as sp,b7 as op,b1 as ip,be as lp,bf as cp,bj as dp,bd as up,bn as fp,a$ as pp,b3 as gp,bh as vp,bg as mp,b5 as hp,b4 as bp,b2 as yp,bc as _p,bb as xp,bi as wp,b0 as kp,_ as Ip}from"./Y9-4hTF9.js";import{bI as Sp,bj as eo,aG as Cp,bs as Ht,aD as e,a5 as S,bS as m,bA as w,W as u,bn as jt,c9 as d,aA as _,a7 as kt,ay as je,be as tr,b$ as Tt,aC as Ha,bl as M,b_ as k,bO as x,aB as I,bo as Rs,ca as wt,bH as A,bV as ye,br as Gr,bk as to,c0 as ca,ai as es,cd as Is,aw as Rn,a as Ep,aj as Rr,c7 as Pp,c6 as Ll,c5 as Mn,bf as So,bz as Id}from"./DYhIMPy1.js";import{i as D}from"./BL2lJmRT.js";import{k as Es}from"./C6vwP-ay.js";import{h as Ap,e as Un,I as ro,g as Rt,i as Tr,o as Tp,p as Rp,f as Mp,s as Np}from"./BZQDFgmp.js";import{s as un}from"./CrWhihJ_.js";import{c as Qr}from"./CPKMQWOs.js";import{I as Si,t as nr,n as Lp,i as Ol,u as Dl}from"./BLgIfeYS.js";import{b as Op,s as re,g as Nn,e as In,c as ir,f as gt}from"./cFbB-5Cu.js";import{b as pr}from"./BaIAhI85.js";import{i as Sd,bv as Cd,cM as Ed,dG as Dp,ds as Bp,ax as Fp,cv as zp,a2 as Hp,cS as jp,dr as qs,aC as Bo,c3 as Wp,I as Up,a as qp,a0 as Bl,cY as Vp,bT as Kp,M as Gp,dm as Jp,W as Yp,dx as Xp,af as Zp,cP as Qp,at as $p,g as eg,u as tg}from"./ClH0Gega.js";import{c as rg}from"./D-62MVd3.js";import{k as da,w as ng,C as Pd,c as ag,R as sg}from"./Bv2KudWv.js";import{f as yt,ah as ws,aa as og,ae as Ci}from"./q6hitSEG.js";import{F as ig}from"./DOH10_LL.js";import{ar as lg,ae as Fl,a0 as cg,aI as dg,af as ug,h as fg,ag as pg,a$ as gg,I as vg,R as mg,ax as hg,ak as bg,a1 as yg,a as zl,az as _g,s as xg,n as wg,b5 as kg,m as Ig,b7 as Ei,A as Hl,aj as Sg,b6 as Cg,at as Ad,T as Td,a9 as Eg,a7 as jl,W as Pg,V as Ag,ad as Tg,a8 as Rg,L as Wl,ay as Mg}from"./DzaZjwWE.js";import{F as At,bf as Pi,bK as Ng,am as Lg,aO as Og,cL as Dg,bj as tl,bA as Bg,aE as Rd,aJ as rl,c_ as Co,a9 as Ai,cn as Fg,cc as zg,ci as nl,cF as Md,br as Hg,e as jg,b_ as Ul,c8 as Wg,cl as Ug,cW as Nd,bU as ql,b6 as ai,bc as Hs,aD as qg,ax as Ti,as as Ld,ba as Od,bB as Vg,B as Kg,bu as Gg,a4 as Dd,cg as Jg,aj as Bd,cN as Fd,cJ as Vl,aq as zd,aI as Kl,_ as Yg,cv as Xg,cU as Zg,cO as Qg,aH as $g,aZ as ev,bN as Hd,bl as tv,al,c4 as Gl,aw as rv,a7 as nv,a5 as av}from"./Mc93eSxl.js";import{c as jd}from"./ChTqQfQN.js";import{g as sv}from"./DU9Ky5os.js";import{Iz as Nt,bL as ov,rU as Jl,su as iv,Jo as lv,Ju as cv,g as Wd,Ic as Ud,nv as qd,nL as Vd,nK as Kd,no as Fo,q1 as sl,x$ as dv,v1 as yo,uk as Ri,v3 as uv,nd as Gd,IE as fv,t9 as pv,oz as Jd,re as ol,lW as Yl,a2 as Xl,qK as gv,qG as vv,qL as mv,qC as hv,qI as bv,uT as yv,Ay as Yd,AC as Xd,nM as Zl,bd as Mi,GX as _v,I8 as xv,h8 as wv,h7 as kv,nG as Iv,w2 as Sv,w3 as Cv,w1 as Ql,By as ia,cq as Ev,ce as Pv,c$ as Av,d6 as Tv,AI as Rv}from"./tU_ZJtMw.js";import{bI as Mv,bR as Nv,i as Lv,B as Ov,bU as Dv,ai as Bv,ak as Fv,am as zv,a6 as Hv,a5 as jv,ao as Wv,W as Uv,bl as qv,bN as Vv,bn as Kv}from"./aos1n-nT.js";import{n as Gv,m as Jv,v as Ni,co as Yv,O as Xv,cm as Zv,cf as Qv,aG as $l,ch as $v,bQ as Li,aQ as em,s as tm,c as Vs,d as Oi,cj as Zd,ck as Di,bF as rm,b9 as nm,bU as am,bS as sm,H as om,ci as ec,by as im,z as tc,cl as lm,N as cm,a4 as rc}from"./DAdnLTte.js";import{ci as dm,ck as um,cj as fm,b1 as pm,a$ as gm,b0 as vm,a4 as mm,al as go,ak as hm,aA as nc,aI as bm,aj as ym,C as _m,i as xm,E as _o,cT as wm,aW as ac,cY as km,ag as Im,a8 as Sm,r as Cm,p as Em,aF as Pm,c$ as Am,cK as Tm,cD as Rm,R as Mm,cu as Nm,bS as Lm}from"./Cj2RYqvI.js";import{i as Om,I as Ss,c as sc}from"./DYxNs3ex.js";import"./-FMYDRBF.js";import{f as oc,y as ic,M as Qd,n as Dm,m as Bm,z as $d,x as Bi,e as Ks,E as Fi,W as us,h as Fm}from"./BeQgENlX.js";import"./NDjLJa7E.js";import{b as eu}from"./C-P--5-o.js";import"./Dj3ZrCzO.js";import{z as il,P as zm,p as Hm,h as jm,G as Wm,l as Um,i as qm,M as Vm,H as Km,t as _s,a as Gm,K as Jm,k as Ym,R as Xm}from"./BS8Oxiwq.js";import{t as Gs,O as Zm,M as Qm,S as Fa}from"./DqcBqbDI.js";import{a as $m}from"./BMOaW1oW.js";import{C as zi}from"./BTrGu4V2.js";import{aQ as eh,aY as th,aB as rh,b0 as nh,aO as ah,aU as sh,a7 as Ps,b3 as lc,aK as oh,aR as ih,aX as ll,aS as cl,W as si,aq as lh,X as ch,a_ as dh,aJ as uh,aT as fh,aW as ph,b6 as gh,b4 as vh,ay as tu,p as mh,n as hh,aV as bh,_ as yh,ao as _h,aD as xh,z as wh,aC as kh,a8 as Ih}from"./CvfICP_e.js";import{s as Hi}from"./C-ed1TQP.js";import{M as Sh}from"./CzPYlOCC.js";import{s as Ch,a as Eh}from"./BsieX9dN.js";import{u as dl,w as Ph,v as zo,I as Ah,A as cc,e as Js,d as za,J as dc,c as Th,f as Rh,g as uc,i as Mh,b as Nh,o as ru,j as Lh,O as Oh,x as Dh,k as nu,S as Bh,N as Fh,q as fc,p as zh,n as pc,z as Hh,s as jh}from"./zapl_pAB.js";import{o as gc,a as vc,T as oi,b as Wh}from"./HxiDYrBi.js";import{O as Uh,x as qh,i as Vh,g as Kh,T as Gh}from"./DLIkH-mx.js";import{D as Ys}from"./DJtfG0d7.js";import"./Dr9VLQ7a.js";import{C as ua}from"./Birl2IVg.js";import{M as Jh}from"./BlT4teVV.js";import{g as ul}from"./C_Lje1cd.js";import{f as mc,d as Yh}from"./DpR5pCWV.js";import{c as xo}from"./BgsoTwBt.js";import{handleIntentLink as Xh}from"./BFM5w46H.js";import{s as Zh,a as Qh,f as $h,d as eb,r as tb,h as rb,w as js,g as nb,W as ab,H as sb,c as ob,M as au}from"./Bps4iLJn.js";import{e as ib,q as lb}from"./ddhULx4L.js";import{showAssistantContent as cb}from"./DBLNxGLo.js";import{o as Eo,c as db,n as ub}from"./B_zHVi1K.js";import{p as fb}from"./CZlx42aK.js";import{m as pb}from"./-DqWFMjY.js";import{h as vo}from"./ZKiqJWPE.js";import{i as su}from"./DNWBkvFP.js";import{I as gb,z as vb}from"./CEsW1euQ.js";import{g as mb,e as hb,f as bb,h as yb}from"./BvFAWM27.js";import{T as ii}from"./Bii5NwwM.js";import"./BJwkYtAi.js";import{a as _b}from"./CXOFOhS1.js";import{a as xb}from"./BdWqymET.js";import{p as wb}from"./Bqoh360O.js";const kb="intent:inline-visual-draft";function OC(r,t){const n=t.title.replace(/\s+/g," ").trim(),a=JSON.stringify({inputs:t.inputs,results:t.results},null,2),s=(a.match(/`+/g)??[]).reduce((c,l)=>Math.max(c,l.length),0),o="`".repeat(Math.max(3,s+1));return`${r}${r?`
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/8y_Q4Ch2.js","/app/immutable/chunks/DYhIMPy1.js","/app/immutable/chunks/Y9-4hTF9.js","/app/immutable/chunks/BL2lJmRT.js","/app/immutable/chunks/CrWhihJ_.js","/app/immutable/chunks/C_Lje1cd.js","/app/immutable/chunks/BLgIfeYS.js","/app/immutable/chunks/BZQDFgmp.js","/app/immutable/chunks/cFbB-5Cu.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/tU_ZJtMw.js","/app/immutable/chunks/WFvSJ9zU.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/CO4a0yRH.js","/app/immutable/chunks/DxwfiAWm.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/chunks/CEsW1euQ.js","/app/immutable/chunks/BaIAhI85.js","/app/immutable/chunks/q6hitSEG.js","/app/immutable/chunks/DOH10_LL.js","/app/immutable/chunks/CIpI7Qrh.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/CPKMQWOs.js","/app/immutable/chunks/C6vwP-ay.js","/app/immutable/chunks/DYxNs3ex.js","/app/immutable/chunks/-FMYDRBF.js","/app/immutable/chunks/BS8Oxiwq.js","/app/immutable/chunks/DqcBqbDI.js","/app/immutable/chunks/Mc93eSxl.js","/app/immutable/chunks/BMOaW1oW.js","/app/immutable/assets/menu-footer.Ck5GCpgU.css","/app/immutable/chunks/DfxQWSVU.js","/app/immutable/chunks/Dj3ZrCzO.js","/app/immutable/assets/dialog.BtQTVchw.css","/app/immutable/chunks/BsieX9dN.js","/app/immutable/assets/observe-overflow.CbDLK6fN.css","/app/immutable/chunks/CwDNa5HL.js","/app/immutable/chunks/BJwkYtAi.js","/app/immutable/chunks/NDjLJa7E.js","/app/immutable/chunks/XJv96NUg.js","/app/immutable/assets/confirm.UE5obH5A.css","/app/immutable/chunks/BWYr8u9e.js","/app/immutable/chunks/BeP4UORy.js","/app/immutable/chunks/-CHLoCv2.js","/app/immutable/chunks/DU9Ky5os.js","/app/immutable/assets/SettingsPage.D8u26cHZ.css","/app/immutable/chunks/CXOFOhS1.js","/app/immutable/chunks/C-P--5-o.js","/app/immutable/chunks/CC7to1B5.js","/app/immutable/chunks/Bv2KudWv.js","/app/immutable/assets/notify.BeL_JB6L.css","/app/immutable/chunks/BdWqymET.js","/app/immutable/chunks/CiY6-UV7.js","/app/immutable/chunks/ClH0Gega.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/5GYSXevc.js","/app/immutable/chunks/DNWBkvFP.js","/app/immutable/chunks/CpHzYkzi.js","/app/immutable/chunks/aos1n-nT.js","/app/immutable/chunks/ddhULx4L.js","/app/immutable/chunks/D-l6NLYy.js","/app/immutable/chunks/BvFAWM27.js","/app/immutable/chunks/yn0j-qtB.js","/app/immutable/chunks/Ce1Plj-G.js","/app/immutable/chunks/8AI-DblB.js","/app/immutable/chunks/uFoHkMz6.js","/app/immutable/chunks/B0Z-1lwJ.js","/app/immutable/chunks/I6o8TiNz.js","/app/immutable/assets/directory-picker-service.CzNEA6Ot.css"])))=>i.map(i=>d[i]);
2
+ import{bo as v,t as Bt,bq as y,by as Ft,b as zt,br as Qf,bu as bt,bs as ga,bt as el,b6 as Nl,bl as $f,b9 as ep,bk as tp,ba as rp,bm as np,a_ as ap,b8 as sp,b7 as op,b1 as ip,be as lp,bf as cp,bj as dp,bd as up,bn as fp,a$ as pp,b3 as gp,bh as vp,bg as mp,b5 as hp,b4 as bp,b2 as yp,bc as _p,bb as xp,bi as wp,b0 as kp,_ as Ip}from"./Y9-4hTF9.js";import{bI as Sp,bj as eo,aG as Cp,bs as Ht,aD as e,a5 as S,bS as m,bA as w,W as u,bn as jt,c9 as d,aA as _,a7 as kt,ay as je,be as tr,b$ as Tt,aC as Ha,bl as M,b_ as k,bO as x,aB as I,bo as Rs,ca as wt,bH as A,bV as ye,br as Gr,bk as to,c0 as ca,ai as es,cd as Is,aw as Rn,a as Ep,aj as Rr,c7 as Pp,c6 as Ll,c5 as Mn,bf as So,bz as Id}from"./DYhIMPy1.js";import{i as D}from"./BL2lJmRT.js";import{k as Es}from"./C6vwP-ay.js";import{h as Ap,e as Un,I as ro,g as Rt,i as Tr,o as Tp,p as Rp,f as Mp,s as Np}from"./BZQDFgmp.js";import{s as un}from"./CrWhihJ_.js";import{c as Qr}from"./CPKMQWOs.js";import{I as Si,t as nr,n as Lp,i as Ol,u as Dl}from"./BLgIfeYS.js";import{b as Op,s as re,g as Nn,e as In,c as ir,f as gt}from"./cFbB-5Cu.js";import{b as pr}from"./BaIAhI85.js";import{i as Sd,bv as Cd,cM as Ed,dG as Dp,ds as Bp,ax as Fp,cv as zp,a2 as Hp,cS as jp,dr as qs,aC as Bo,c3 as Wp,I as Up,a as qp,a0 as Bl,cY as Vp,bT as Kp,M as Gp,dm as Jp,W as Yp,dx as Xp,af as Zp,cP as Qp,at as $p,g as eg,u as tg}from"./ClH0Gega.js";import{c as rg}from"./D-62MVd3.js";import{k as da,w as ng,C as Pd,c as ag,R as sg}from"./Bv2KudWv.js";import{f as yt,ah as ws,aa as og,ae as Ci}from"./q6hitSEG.js";import{F as ig}from"./DOH10_LL.js";import{ar as lg,ae as Fl,a0 as cg,aI as dg,af as ug,h as fg,ag as pg,a$ as gg,I as vg,R as mg,ax as hg,ak as bg,a1 as yg,a as zl,az as _g,s as xg,n as wg,b5 as kg,m as Ig,b7 as Ei,A as Hl,aj as Sg,b6 as Cg,at as Ad,T as Td,a9 as Eg,a7 as jl,W as Pg,V as Ag,ad as Tg,a8 as Rg,L as Wl,ay as Mg}from"./OqhgDTXY.js";import{F as At,bf as Pi,bK as Ng,am as Lg,aO as Og,cL as Dg,bj as tl,bA as Bg,aE as Rd,aJ as rl,c_ as Co,a9 as Ai,cn as Fg,cc as zg,ci as nl,cF as Md,br as Hg,e as jg,b_ as Ul,c8 as Wg,cl as Ug,cW as Nd,bU as ql,b6 as ai,bc as Hs,aD as qg,ax as Ti,as as Ld,ba as Od,bB as Vg,B as Kg,bu as Gg,a4 as Dd,cg as Jg,aj as Bd,cN as Fd,cJ as Vl,aq as zd,aI as Kl,_ as Yg,cv as Xg,cU as Zg,cO as Qg,aH as $g,aZ as ev,bN as Hd,bl as tv,al,c4 as Gl,aw as rv,a7 as nv,a5 as av}from"./Mc93eSxl.js";import{c as jd}from"./ChTqQfQN.js";import{g as sv}from"./DU9Ky5os.js";import{Iz as Nt,bL as ov,rU as Jl,su as iv,Jo as lv,Ju as cv,g as Wd,Ic as Ud,nv as qd,nL as Vd,nK as Kd,no as Fo,q1 as sl,x$ as dv,v1 as yo,uk as Ri,v3 as uv,nd as Gd,IE as fv,t9 as pv,oz as Jd,re as ol,lW as Yl,a2 as Xl,qK as gv,qG as vv,qL as mv,qC as hv,qI as bv,uT as yv,Ay as Yd,AC as Xd,nM as Zl,bd as Mi,GX as _v,I8 as xv,h8 as wv,h7 as kv,nG as Iv,w2 as Sv,w3 as Cv,w1 as Ql,By as ia,cq as Ev,ce as Pv,c$ as Av,d6 as Tv,AI as Rv}from"./tU_ZJtMw.js";import{bI as Mv,bR as Nv,i as Lv,B as Ov,bU as Dv,ai as Bv,ak as Fv,am as zv,a6 as Hv,a5 as jv,ao as Wv,W as Uv,bl as qv,bN as Vv,bn as Kv}from"./aos1n-nT.js";import{n as Gv,m as Jv,v as Ni,co as Yv,O as Xv,cm as Zv,cf as Qv,aG as $l,ch as $v,bQ as Li,aQ as em,s as tm,c as Vs,d as Oi,cj as Zd,ck as Di,bF as rm,b9 as nm,bU as am,bS as sm,H as om,ci as ec,by as im,z as tc,cl as lm,N as cm,a4 as rc}from"./CiY6-UV7.js";import{ci as dm,ck as um,cj as fm,b1 as pm,a$ as gm,b0 as vm,a4 as mm,al as go,ak as hm,aA as nc,aI as bm,aj as ym,C as _m,i as xm,E as _o,cT as wm,aW as ac,cY as km,ag as Im,a8 as Sm,r as Cm,p as Em,aF as Pm,c$ as Am,cK as Tm,cD as Rm,R as Mm,cu as Nm,bS as Lm}from"./BTmwOa4k.js";import{i as Om,I as Ss,c as sc}from"./DYxNs3ex.js";import"./-FMYDRBF.js";import{f as oc,y as ic,M as Qd,n as Dm,m as Bm,z as $d,x as Bi,e as Ks,E as Fi,W as us,h as Fm}from"./8y_Q4Ch2.js";import"./NDjLJa7E.js";import{b as eu}from"./C-P--5-o.js";import"./Dj3ZrCzO.js";import{z as il,P as zm,p as Hm,h as jm,G as Wm,l as Um,i as qm,M as Vm,H as Km,t as _s,a as Gm,K as Jm,k as Ym,R as Xm}from"./BS8Oxiwq.js";import{t as Gs,O as Zm,M as Qm,S as Fa}from"./DqcBqbDI.js";import{a as $m}from"./BMOaW1oW.js";import{C as zi}from"./BTrGu4V2.js";import{aQ as eh,aY as th,aB as rh,b0 as nh,aO as ah,aU as sh,a7 as Ps,b3 as lc,aK as oh,aR as ih,aX as ll,aS as cl,W as si,aq as lh,X as ch,a_ as dh,aJ as uh,aT as fh,aW as ph,b6 as gh,b4 as vh,ay as tu,p as mh,n as hh,aV as bh,_ as yh,ao as _h,aD as xh,z as wh,aC as kh,a8 as Ih}from"./DwZLkU8c.js";import{s as Hi}from"./IcPxPcX-.js";import{M as Sh}from"./CzPYlOCC.js";import{s as Ch,a as Eh}from"./BsieX9dN.js";import{u as dl,w as Ph,v as zo,I as Ah,A as cc,e as Js,d as za,J as dc,c as Th,f as Rh,g as uc,i as Mh,b as Nh,o as ru,j as Lh,O as Oh,x as Dh,k as nu,S as Bh,N as Fh,q as fc,p as zh,n as pc,z as Hh,s as jh}from"./pxtIOzW5.js";import{o as gc,a as vc,T as oi,b as Wh}from"./CvS-4PUY.js";import{O as Uh,x as qh,i as Vh,g as Kh,T as Gh}from"./DLIkH-mx.js";import{D as Ys}from"./GsRDe2p3.js";import"./Dr9VLQ7a.js";import{C as ua}from"./CpdNExym.js";import{M as Jh}from"./Cea00daJ.js";import{g as ul}from"./C_Lje1cd.js";import{f as mc,d as Yh}from"./Ce1Plj-G.js";import{c as xo}from"./BgsoTwBt.js";import{handleIntentLink as Xh}from"./CZ8GilqG.js";import{s as Zh,a as Qh,f as $h,d as eb,r as tb,h as rb,w as js,g as nb,W as ab,H as sb,c as ob,M as au}from"./BSXAflgO.js";import{e as ib,q as lb}from"./ddhULx4L.js";import{showAssistantContent as cb}from"./C3lXYtZ6.js";import{o as Eo,c as db,n as ub}from"./I6o8TiNz.js";import{p as fb}from"./D8V7XhXe.js";import{m as pb}from"./-DqWFMjY.js";import{h as vo}from"./ZKiqJWPE.js";import{i as su}from"./DNWBkvFP.js";import{I as gb,z as vb}from"./CEsW1euQ.js";import{g as mb,e as hb,f as bb,h as yb}from"./BvFAWM27.js";import{T as ii}from"./Bii5NwwM.js";import"./BJwkYtAi.js";import{a as _b}from"./CXOFOhS1.js";import{a as xb}from"./BdWqymET.js";import{p as wb}from"./DHT7J7Js.js";const kb="intent:inline-visual-draft";function OC(r,t){const n=t.title.replace(/\s+/g," ").trim(),a=JSON.stringify({inputs:t.inputs,results:t.results},null,2),s=(a.match(/`+/g)??[]).reduce((c,l)=>Math.max(c,l.length),0),o="`".repeat(Math.max(3,s+1));return`${r}${r?`
3
3
 
4
4
  `:""}${n}
5
5
 
@@ -260,7 +260,7 @@ ${r.content}`:a.content=r.content,a):r.old_text!==void 0&&r.new_text!==void 0?(a
260
260
  `,L0=["background","foreground","card","card-foreground","primary","primary-ink","primary-foreground","secondary","secondary-foreground","muted","muted-foreground","border","input","ring","danger","danger-background","info","info-foreground","success","success-foreground","warning","warning-foreground","font-ui","font-code","text-body-size","text-body-line-height","text-body-weight","text-body-tracking","radius-small","radius-medium","radius-large","app-background","sidebar","sidebar-accent","agent-avatar-surface-active","agent-avatar-foreground","diagram-host-surface","diagram-canvas","diagram-label-surface","diagram-node-surface","diagram-node-hover-surface","diagram-node-outline","diagram-node-title","diagram-metadata","diagram-group-outline","diagram-connector","diagram-connector-hover","diagram-connector-muted","diagram-connector-inactive","diagram-connector-danger","diagram-connector-success","diagram-connector-warning","diagram-connector-active","diagram-accent","diagram-accent-foreground","diagram-node-radius","diagram-group-radius","diagram-connector-width","text-caption-size","text-caption-line-height","text-caption-weight","text-caption-tracking","text-body-strong-size","text-body-strong-line-height","text-body-strong-weight","text-body-strong-tracking","space-1","space-2","space-3","space-4","space-5","space-6","space-7","control-height-compact","control-height-small","control-height-medium","control-height-large","radius-full","spring-fast","spring-fast-exit","spring-fast-ease","spring-moderate","spring-moderate-exit","spring-moderate-ease","spring-slow","spring-slow-exit","spring-slow-ease","spring-exit-ease","motion-fast","motion-standard","motion-slow","ease-standard","ease-emphasized-out","motion-reduced"],_i=96,sd=2e4,O0=480,pf=512,D0=["default-src 'none'","script-src 'unsafe-inline'","style-src 'unsafe-inline'","img-src data:","connect-src 'none'","font-src data:","media-src 'none'","object-src 'none'","frame-src 'none'","child-src 'none'","worker-src 'none'","manifest-src 'none'","base-uri 'none'","form-action 'none'"].join("; ");function B0(r,t,n,a,s,o){const c=new MessageChannel,l=MessagePort.prototype.postMessage.bind(c.port1);window.parent.postMessage({channel:r,type:"scroll-port"},"*",[c.port2]);const f=(E,z={})=>{window.parent.postMessage({channel:r,type:E,...z},"*")};let i=s?.state??null,p=null,g=!1;Object.defineProperty(window,"intentVisual",{configurable:!1,writable:!1,value:Object.freeze({get state(){return i},publish(E){try{if(!o(E))return!1;const z=JSON.parse(JSON.stringify(E));return i=z.state,p=z,g||(g=!0,requestAnimationFrame(()=>{g=!1,p&&f("snapshot",{snapshot:p}),p=null})),!0}catch{return!1}}})});let O=!1,b=-1,h=innerHeight,P=Number.NaN,R=0,B=0;const F=()=>{if(O=!1,!document.body)return;let E=Math.ceil(Math.max(document.body.scrollHeight,document.body.getBoundingClientRect().height));const z=innerHeight,J=E-z;if(z>h+1&&J>1&&Math.abs(J-P)<=1?R+=1:(z!==h||J<=1)&&(R=0),h=z,P=J,!B&&R>=3){B=Math.max(a,z);const Y="Page height follows the frame (vh units or height: 100%); frame height held.";console.warn(Y),f("layout",{message:Y})}B&&(E=Math.min(E,B)),E!==b&&(b=E,f("resize",{height:E}))},T=()=>{O||(O=!0,requestAnimationFrame(F))},L=E=>{if(!E||typeof E.dark!="boolean"||!E.variables)return;const z=document.documentElement;z.classList.toggle("dark",E.dark),z.style.colorScheme=E.dark?"dark":"light";const J=E.variables["--inline-html-root-font-size"];"--inline-html-root-font-size"in t.variables&&typeof J=="string"&&J.length<512&&z.style.setProperty("--inline-html-root-font-size",J);for(const Y of Object.keys(t.variables)){if(Y==="--inline-html-root-font-size")continue;const Q=E.variables[Y];typeof Q=="string"&&Q.length<512&&z.style.setProperty(Y,Q)}T()};window.addEventListener("message",E=>{E.source!==window.parent||!E.data||E.data.channel!==r||E.data.type==="theme"&&L(E.data.theme)});const U=E=>{if(E.defaultPrevented||!E.isTrusted||E.ctrlKey||E.metaKey||E.shiftKey||!E.deltaY||Math.abs(E.deltaX)>Math.abs(E.deltaY))return;const z=Q=>{const Ie=getComputedStyle(Q);if(Q!==document.scrollingElement&&!/^(auto|scroll|overlay)$/.test(Ie.overflowY)||/^(hidden|clip)$/.test(Ie.overflowY))return!1;const le=Q.scrollHeight-Q.clientHeight;return le>1&&(E.deltaY<0?Q.scrollTop>1:Q.scrollTop<le-1)};if(E.composedPath().some(Q=>Q instanceof Element&&z(Q))||document.scrollingElement&&z(document.scrollingElement))return;const J=E.deltaMode===WheelEvent.DOM_DELTA_LINE?parseFloat(getComputedStyle(document.body).lineHeight)||16:E.deltaMode===WheelEvent.DOM_DELTA_PAGE?innerHeight:1,Y=Math.max(-n,Math.min(n,E.deltaY*J));Number.isFinite(Y)&&(E.preventDefault(),l({deltaY:Y}))};window.addEventListener("wheel",()=>{window.removeEventListener("wheel",U),window.addEventListener("wheel",U,{passive:!1})},{capture:!0,passive:!1}),window.addEventListener("error",E=>{E.message&&f("error",{message:E.message.slice(0,300)})}),window.addEventListener("unhandledrejection",E=>{const z=E.reason;f("error",{message:String(z instanceof Error?z.message:z).slice(0,300)})}),window.addEventListener("click",E=>{const z=E.target instanceof Element?E.target.closest("a, area"):null;if(!z)return;(z.getAttribute("href")??z.getAttribute("xlink:href"))?.startsWith("#")||E.preventDefault()},!0),window.addEventListener("submit",E=>E.preventDefault(),!0),L(t),window.addEventListener("DOMContentLoaded",()=>{new ResizeObserver(T).observe(document.body),new MutationObserver(T).observe(document.body,{childList:!0,subtree:!0,attributes:!0,characterData:!0}),window.addEventListener("resize",T),document.addEventListener("load",T,!0),document.fonts.ready.then(T),f("ready"),T()},{once:!0})}function F0(r,t,n,a,s){const o=document.createElement("iframe");o.setAttribute("sandbox","allow-scripts"),o.setAttribute("referrerpolicy","no-referrer"),o.title=n,o.style.cssText="display:block;width:100%;height:100%;border:0;";let c;const l=f=>{const i=f.data?.deltaY;typeof i=="number"&&Number.isFinite(i)&&i!==0&&Math.abs(i)<=a&&window.parent.postMessage({channel:r,type:"wheel",deltaY:i},"*")};window.addEventListener("message",f=>{const i=f.data;if(!(!i||typeof i!="object"||i.channel!==r)){if(f.source===window.parent&&i.type==="theme"){o.contentWindow?.postMessage({channel:r,type:"theme",theme:i.theme},"*");return}if(!(f.source!==o.contentWindow||f.origin!=="null")){if(i.type==="scroll-port"&&!c&&f.ports.length===1){c=f.ports[0],c.onmessage=l;return}i.type==="resize"&&typeof i.height=="number"&&Number.isFinite(i.height)&&i.height>=0?window.parent.postMessage({channel:r,type:"resize",height:i.height},"*"):i.type==="ready"?window.parent.postMessage({channel:r,type:"ready"},"*"):(i.type==="error"||i.type==="layout")&&typeof i.message=="string"?window.parent.postMessage({channel:r,type:i.type,message:i.message.slice(0,300)},"*"):i.type==="snapshot"&&s(i.snapshot)&&window.parent.postMessage({channel:r,type:"snapshot",snapshot:i.snapshot},"*")}}}),window.addEventListener("DOMContentLoaded",()=>{o.srcdoc=t,document.body.append(o)},{once:!0})}function z0(r,t,n,a,s,o,c,l){const f=document.implementation.createHTMLDocument(""),i=f.createElement("template");i.innerHTML=n,f.body.append(i.content);const p=Y=>{Y.querySelectorAll("meta, base, link, iframe, frame, frameset, object, embed").forEach(Q=>Q.remove()),Y.querySelectorAll("template").forEach(Q=>p(Q.content)),Y.querySelectorAll("a, area").forEach(Q=>{for(const Ie of["href","xlink:href"])Q.getAttribute(Ie)?.startsWith("#")||Q.removeAttribute(Ie);Q.removeAttribute("target"),Q.removeAttribute("ping"),Q.removeAttribute("download")})};p(f);const g=Y=>JSON.stringify(Y).replace(/</g,"\\u003c"),O=f.createElement("meta");O.httpEquiv="Content-Security-Policy",O.content=r.csp;const b=f.createElement("meta");b.setAttribute("charset","utf-8");const h=f.createElement("style"),P=/^data:[\w.+/-]+;base64,[A-Za-z0-9+/=]+$/.test(l)?`@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900;
261
261
  font-display: swap; src: url('${l}') format('woff2'); }`:"";h.textContent=`${P}${r.styles}`;const R=f.createElement("script"),B=g([a,s,r.maxScrollDelta,r.lockHeight,t(c)?c:null]);R.textContent=`(${r.bridge})(...${B}, (${r.validate}));`,f.head.prepend(O,b,h,R);const F=`<!doctype html>${f.documentElement.outerHTML}`,T=document.implementation.createHTMLDocument(""),L=T.createElement("meta");L.httpEquiv="Content-Security-Policy",L.content=r.csp.replace("frame-src 'none'","frame-src about:");const U=T.createElement("meta");U.setAttribute("charset","utf-8");const E=T.createElement("style");E.textContent="html, body { margin: 0; width: 100%; height: 100%; overflow: hidden; }";const z=T.createElement("script"),J=g([a,F,o,r.maxScrollDelta]);return z.textContent=`(${r.shell})(...${J}, (${r.validate}));`,T.head.prepend(L,U,E,z),`<!doctype html>${T.documentElement.outerHTML}`}const H0=()=>({csp:D0,styles:N0,maxScrollDelta:pf,lockHeight:O0,bridge:B0.toString(),shell:F0.toString(),validate:ol.toString()});function j0(r,t,n,a,s=null,o=""){return z0(H0(),ol,r,t,n,a,s,o)}function od(r){const t=getComputedStyle(r);return{dark:document.documentElement.classList.contains("dark"),variables:{...Object.fromEntries(L0.map(n=>[`--${n}`,t.getPropertyValue(`--${n}`).trim()])),"--inline-html-root-font-size":getComputedStyle(document.documentElement).fontSize}}}function W0(r,t,n,a,s=null){return j0(r,t,n,a,s,M0)}var U0=I('<p class="type-caption m-0 break-words px-4 pb-2 text-muted-foreground"> </p>'),q0=I('<div class="type-body flex items-center justify-between gap-3 px-4 py-2" role="status"><span class="text-danger"> </span> <!></div> <!>',1),V0=I('<p class="sr-only" role="status"> </p>'),K0=I('<p class="type-body m-0 px-4 py-3 text-muted-foreground" role="status"> </p>'),G0=I('<div class="type-body px-4 py-2 text-danger" role="status"><p class="m-0"> </p> <p class="type-code m-0 break-words"> </p></div>'),J0=I('<iframe sandbox="allow-scripts" referrerpolicy="no-referrer"></iframe>'),Y0=I('<div class="space-y-4 p-4" aria-hidden="true"><div class="space-y-2"><!> <!></div> <!> <div class="flex items-center gap-4"><!> <!> <!></div></div>'),X0=I('<span class="type-caption ml-auto text-muted-foreground" role="status"> </span>'),Z0=I('<p class="type-caption m-0 break-words px-4 pb-2 text-muted-foreground" role="status"> <!></p>'),Q0=I('<th class="min-w-40 px-2 pb-3 align-top font-normal"><!> <div class="mt-1 flex gap-1"><!> <!></div></th>'),$0=I('<td class="max-w-56 px-2 py-2 align-top break-words tabular-nums"> </td>'),ek=I('<tr><th class="max-w-48 py-2 pr-4 align-top font-normal break-words text-muted-foreground"> </th><!></tr>'),tk=I('<div class="overflow-x-auto px-4 pb-4" data-inline-visual-comparison=""><table class="type-body w-full border-separate border-spacing-0 text-left"><thead><tr><th class="min-w-28 pr-4 pb-3 font-normal text-muted-foreground"> </th><th class="min-w-32 px-2 pb-3 align-top font-medium"> </th><!></tr></thead><tbody></tbody></table></div>'),rk=I('<div class="flex flex-wrap items-center gap-1 px-4 py-2" data-inline-visual-actions=""><!> <!> <!> <!> <!></div> <!> <!>',1),nk=I('<div data-inline-html="" class="my-3 min-w-0 overflow-hidden rounded-lg bg-background text-foreground"><div class="flex min-w-0 items-center justify-end gap-1 p-1"><!> <!></div> <!> <!> <div class="relative min-w-0"><!> <!></div> <!></div>');function gf(r,t){if(new.target)return Bt({component:gf,...r});Ht(t,!0);const n=720,a=1e4;let s=y(t,"source",7),o=y(t,"isStreaming",7,!1),c=y(t,"isComplete",7,!0),l=y(t,"record",7),f=y(t,"storageStatus",7,"ready"),i=y(t,"onRecordChange",7),p=y(t,"onUseConfiguration",7),g=y(t,"onExport",7),O=y(t,"onRetry",7),b=y(t,"storageError",7),h=y(t,"exportStatus",7),P=y(t,"exportPath",7),R=y(t,"exportError",7),B,F=ye(void 0),T=ye(!1),L=ye(!1),U=ye(0),E=ye(""),z=ye(""),J=ye(!1),Y=ye(""),Q=ye(Gr(_i)),Ie=ye(n),le=ye(""),fe=ye(Yl()),ce=ye(void 0),Le,G=ye(void 0),we=ye(!1);const $=d(()=>l()??e(fe)),We=d(()=>f()!=="loading"&&(f()!=="error"||!!e($).current)),Ee=d(()=>!o()&&c()&&!!s().trim()&&e(We)),Se=d(()=>Math.min(sd,Math.max(_i,e(Q)))),ke=d(()=>o()||f()==="loading"?"loading":c()?s().trim()?e(Y)?"error":e(J)?"ready":"loading":"empty":"incomplete"),Be=d(()=>o()||f()==="loading"||e(Ee)&&!e(J)&&!e(Y));function Xe(se){const ze={...se,current:e(ce)??se.current};A(fe,ze),i()?.(ze)}function ae(){const se=e(ce);!se||e($).scenarios.length>=Xl||(Xe({...e($),scenarios:[...e($).scenarios,{id:crypto.randomUUID(),name:dp({number:Dl(e($).scenarios.length+1)}),snapshot:structuredClone(se)}]}),A(we,!0))}function Z(se,ze){const nt=ze.trim().slice(0,120);nt&&Xe({...e($),scenarios:e($).scenarios.map(dt=>dt.id===se?{...dt,name:nt}:dt)})}function Je(se){const ze=structuredClone(se);A(ce,ze),A(G,ze),Xe({...e($),current:ze}),A(U,e(U)+1)}function K(se){return typeof se=="number"?Dl(se):typeof se=="string"?se:JSON.stringify(se)}function V(){!e(F)?.contentWindow||!e(z)||e(F).contentWindow.postMessage({channel:e(z),type:"theme",theme:od(B)},"*")}function W(se){let ze=B.parentElement;for(;ze;){const nt=getComputedStyle(ze),dt=ze.scrollHeight-ze.clientHeight;if(/^(auto|scroll|overlay)$/.test(nt.overflowY)&&dt>1){if(se<0?ze.scrollTop>0:ze.scrollTop<dt){ze.dispatchEvent(new WheelEvent("wheel",{deltaY:se,bubbles:!0})),ze.scrollTop+=se;return}if(/^(contain|none)$/.test(nt.overscrollBehaviorY))return}ze=ze.parentElement}window.scrollBy({top:se,behavior:"instant"})}wt(()=>{if(!e(T))return;const se=s(),ze=e(Ee);e(U),Mn(()=>{Le!==se&&(A(fe,Yl()),A(ce,void 0),A(we,!1),A(G,void 0),Le=se),A(J,!1),A(Y,""),A(le,""),A(Q,_i,!0),A(z,crypto.randomUUID(),!0),A(E,ze?W0(se,e(z),od(B),Nl(),e(G)??e(ce)??e($).current):"",!0),A(G,void 0)})}),wt(()=>{if(!e(E)||e(J)||e(Y))return;const se=setTimeout(()=>{A(Y,$f(),!0)},a);return()=>clearTimeout(se)}),to(()=>{A(T,!0);const se=Ke=>{if(Ke.source!==e(F)?.contentWindow||Ke.origin!=="null")return;const tt=Ke.data;if(!(!tt||typeof tt!="object"||tt.channel!==e(z))){if(tt.type==="bootstrap"){e(F)?.contentWindow?.postMessage({channel:e(z),type:"initialize",documentHtml:e(E)},"*");return}if(tt.type==="resize"&&typeof tt.height=="number"&&Number.isFinite(tt.height)&&tt.height>=0)A(Q,Math.min(sd,Math.ceil(tt.height)),!0);else if(tt.type==="ready")A(J,!0),V();else if(tt.type==="error"&&typeof tt.message=="string")A(Y,tt.message.slice(0,300),!0);else if(tt.type==="layout"&&typeof tt.message=="string")A(le,tt.message.slice(0,300),!0);else if(tt.type==="snapshot"&&e(Ee)&&ol(tt.snapshot)){const st=tt.snapshot;A(ce,st),Xe({...e($),current:st})}else tt.type==="wheel"&&e(J)&&e(Ee)&&!e(L)&&!e(Be)&&typeof tt.deltaY=="number"&&Number.isFinite(tt.deltaY)&&tt.deltaY!==0&&Math.abs(tt.deltaY)<=pf&&W(tt.deltaY)}},ze=()=>{A(Ie,Math.min(n,Math.max(160,Math.floor(window.innerHeight*.8))),!0)},nt=new MutationObserver(V);nt.observe(document.documentElement,{attributes:!0,attributeFilter:["class","style","data-theme"]});const dt=window.matchMedia("(prefers-color-scheme: dark)");return dt.addEventListener("change",V),window.addEventListener("message",se),window.addEventListener("resize",ze),ze(),()=>{nt.disconnect(),dt.removeEventListener("change",V),window.removeEventListener("message",se),window.removeEventListener("resize",ze)}});var ie={get source(){return s()},set source(se){s(se),_()},get isStreaming(){return o()},set isStreaming(se=!1){o(se),_()},get isComplete(){return c()},set isComplete(se=!0){c(se),_()},get record(){return l()},set record(se){l(se),_()},get storageStatus(){return f()},set storageStatus(se="ready"){f(se),_()},get onRecordChange(){return i()},set onRecordChange(se){i(se),_()},get onUseConfiguration(){return p()},set onUseConfiguration(se){p(se),_()},get onExport(){return g()},set onExport(se){g(se),_()},get onRetry(){return O()},set onRetry(se){O(se),_()},get storageError(){return b()},set storageError(se){b(se),_()},get exportStatus(){return h()},set exportStatus(se){h(se),_()},get exportPath(){return P()},set exportPath(se){P(se),_()},get exportError(){return R()},set exportError(se){R(se),_()},$set:Ft,$on:(se,ze)=>zt(t,se,ze)},ge=nk(),X=S(ge),de=S(X);yt(de,{variant:"ghost",size:"sm",get active(){return e(L)},get"aria-pressed"(){return e(L)},onclick:()=>{A(L,!e(L))},children:(se,ze)=>{tr();var nt=Tt();k(dt=>x(nt,dt),[()=>e(L)?ep():tp()]),u(se,nt)},$$slots:{default:!0}});var Ne=m(de,2);{let se=d(()=>!e(Ee));yt(Ne,{variant:"ghost",size:"sm",get disabled(){return e(se)},onclick:()=>{A(U,e(U)+1)},children:(ze,nt)=>{tr();var dt=Tt();k(Ke=>x(dt,Ke),[()=>rp()]),u(ze,dt)},$$slots:{default:!0}})}w(X);var Ce=m(X,2);{var rt=se=>{var ze=q0(),nt=je(ze),dt=S(nt),Ke=M(dt,!0),tt=m(dt,2);{var st=Ot=>{yt(Ot,{variant:"ghost",size:"sm",get onclick(){return O()},children:(Dt,Yt)=>{tr();var Et=Tt();k(Wt=>x(Et,Wt),[()=>up()]),u(Dt,Et)},$$slots:{default:!0}})};D(tt,Ot=>{O()&&Ot(st)})}w(nt);var vt=m(nt,2);{var _t=Ot=>{var Dt=U0(),Yt=M(Dt,!0);k(()=>x(Yt,b())),u(Ot,Dt)};D(vt,Ot=>{b()&&Ot(_t)})}k(Ot=>x(Ke,Ot),[()=>np()]),u(se,ze)};D(Ce,se=>{f()==="error"&&se(rt)})}var me=m(Ce,2);{var Re=se=>{var ze=V0(),nt=M(ze,!0);k(dt=>x(nt,dt),[()=>o()?ap():sp()]),u(se,ze)},q=se=>{var ze=K0(),nt=M(ze,!0);k(dt=>x(nt,dt),[()=>c()?ip():op()]),u(se,ze)},Pe=se=>{var ze=G0(),nt=S(ze),dt=M(nt,!0),Ke=m(nt,2),tt=M(Ke,!0);w(ze),k(st=>{x(dt,st),x(tt,e(Y))},[()=>lp()]),u(se,ze)};D(me,se=>{e(Be)?se(Re):e(Ee)?e(Y)&&se(Pe,2):se(q,1)})}var ue=m(me,2),N=S(ue);{var H=se=>{var ze=kt(),nt=je(ze);Es(nt,()=>e(z),dt=>{var Ke=J0();let tt,st;pr(Ke,vt=>A(F,vt),()=>e(F)),k(vt=>{re(Ke,"title",vt),re(Ke,"src",`/inline-html-sandbox.html#${e(z)}`),tt=gt(Ke,1,"block w-full border-0 svelte-1kkow1d",null,tt,{"preview-hidden":e(L)||!e(J)}),re(Ke,"aria-hidden",e(L)||!e(J)),st=Nn(Ke,"",st,{height:`${e(Se)}px`})},[()=>Nl()]),u(dt,Ke)}),u(se,ze)};D(N,se=>{e(Ee)&&e(E)&&se(H)})}var pe=m(N,2);{var Qe=se=>{ua(se,{get code(){return s()},language:"html",noBorder:!0,noMargin:!0,get maxHeight(){return e(Ie)}})},Te=se=>{var ze=Y0(),nt=S(ze),dt=S(nt);_s(dt,{class:"h-4 w-32 max-w-1/2"});var Ke=m(dt,2);_s(Ke,{class:"h-3 w-2/3"}),w(nt);var tt=m(nt,2);_s(tt,{class:"aspect-video max-h-60 w-full rounded-lg"});var st=m(tt,2),vt=S(st);_s(vt,{class:"h-3 w-16"});var _t=m(vt,2);_s(_t,{class:"h-2 min-w-0 flex-1"});var Ot=m(_t,2);_s(Ot,{class:"h-3 w-10"}),w(st),w(ze),u(se,ze)};D(pe,se=>{e(L)?se(Qe):e(Be)&&se(Te,1)})}w(ue);var Fe=m(ue,2);{var et=se=>{var ze=rk(),nt=je(ze),dt=S(nt);{var Ke=Mt=>{{let St=d(()=>!e(J)||!!e(Y));yt(Mt,{size:"sm",get disabled(){return e(St)},onclick:()=>e(ce)&&p()(e(ce)),children:(_e,ee)=>{tr();var Ue=Tt();k(at=>x(Ue,at),[()=>fp()]),u(_e,Ue)},$$slots:{default:!0}})}};D(dt,Mt=>{p()&&Mt(Ke)})}var tt=m(dt,2);{let Mt=d(()=>!e(J)||!!e(Y)||e($).scenarios.length>=Xl);yt(tt,{variant:"ghost",size:"sm",get disabled(){return e(Mt)},onclick:ae,children:(St,_e)=>{tr();var ee=Tt();k(Ue=>x(ee,Ue),[()=>cp()]),u(St,ee)},$$slots:{default:!0}})}var st=m(tt,2);{var vt=Mt=>{yt(Mt,{variant:"ghost",size:"sm",get active(){return e(we)},get"aria-expanded"(){return e(we)},onclick:()=>A(we,!e(we)),children:(St,_e)=>{tr();var ee=Tt();k(Ue=>x(ee,Ue),[()=>pp()]),u(St,ee)},$$slots:{default:!0}})};D(st,Mt=>{e($).scenarios.length&&Mt(vt)})}var _t=m(st,2);{var Ot=Mt=>{{let St=d(()=>!e(J)||h()==="saving");yt(Mt,{variant:"ghost",size:"sm",get disabled(){return e(St)},onclick:()=>g()({...e($),current:e(ce)??null}),children:(_e,ee)=>{tr();var Ue=Tt();k(at=>x(Ue,at),[()=>gp()]),u(_e,Ue)},$$slots:{default:!0}})}};D(_t,Mt=>{g()&&Mt(Ot)})}var Dt=m(_t,2);{var Yt=Mt=>{var St=X0(),_e=M(St,!0);k(ee=>x(_e,ee),[()=>f()==="saving"?vp():f()==="ready"?mp():""]),u(Mt,St)};D(Dt,Mt=>{i()&&Mt(Yt)})}w(nt);var Et=m(nt,2);{var Wt=Mt=>{var St=Z0(),_e=S(St),ee=m(_e);{var Ue=at=>{var ot=Tt();k(()=>x(ot,R())),u(at,ot)};D(ee,at=>{h()==="error"&&R()&&at(Ue)})}w(St),k(at=>x(_e,`${at??""} `),[()=>h()==="saving"?hp():h()==="saved"?bp({path:P()??""}):yp()]),u(Mt,St)};D(Et,Mt=>{h()&&Mt(Wt)})}var Qt=m(Et,2);{var lr=Mt=>{var St=tk(),_e=S(St),ee=S(_e),Ue=S(ee),at=S(Ue),ot=M(at,!0),De=m(at),oe=M(De,!0),ve=m(De);Rt(ve,17,()=>e($).scenarios,Me=>Me.id,(Me,he)=>{var He=Q0(),Ve=S(He);{let Ye=d(()=>wp());Ss(Ve,{get value(){return e(he).name},get"aria-label"(){return e(Ye)},maxlength:120,onblur:xe=>{xe.currentTarget.value.trim()||(xe.currentTarget.value=e(he).name),Z(e(he).id,xe.currentTarget.value)},onkeydown:xe=>{xe.key==="Enter"&&xe.currentTarget.blur(),xe.key==="Escape"&&(xe.currentTarget.value=e(he).name,xe.currentTarget.blur())}})}var qe=m(Ve,2),$e=S(qe);yt($e,{variant:"ghost",size:"sm",onclick:()=>Je(e(he).snapshot),children:(Ye,xe)=>{tr();var Ze=Tt();k(ft=>x(Ze,ft),[()=>_p()]),u(Ye,Ze)},$$slots:{default:!0}});var Oe=m($e,2);yt(Oe,{variant:"ghost",size:"sm",onclick:()=>Xe({...e($),scenarios:e($).scenarios.filter(Ye=>Ye.id!==e(he).id)}),children:(Ye,xe)=>{tr();var Ze=Tt();k(ft=>x(Ze,ft),[()=>xp()]),u(Ye,Ze)},$$slots:{default:!0}}),w(qe),w(He),u(Me,He)}),w(Ue),w(ee);var ne=m(ee);Rt(ne,20,()=>["inputs","results"],Tr,(Me,he)=>{const He=d(()=>he),Ve=d(()=>Array.from(new Set([...Object.keys(e(ce)[e(He)]),...e($).scenarios.flatMap(Oe=>Object.keys(Oe.snapshot[e(He)]))])));var qe=kt(),$e=je(qe);Rt($e,16,()=>e(Ve),Oe=>Oe,(Oe,Ye)=>{var xe=ek(),Ze=S(xe),ft=M(Ze,!0),ct=m(Ze);Rt(ct,17,()=>[e(ce),...e($).scenarios.map(it=>it.snapshot)],Tr,(it,Ct)=>{var mt=$0(),Lt=M(mt,!0);k(Kt=>x(Lt,Kt),[()=>Object.hasOwn(e(Ct)[e(He)],Ye)?K(e(Ct)[e(He)][Ye]):"—"]),u(it,mt)}),w(xe),k(()=>x(ft,Ye)),u(Oe,xe)}),u(Me,qe)}),w(ne),w(_e),w(St),k(Me=>{x(ot,e(ce).title),x(oe,Me)},[()=>kp()]),u(Mt,St)};D(Qt,Mt=>{e(we)&&e($).scenarios.length&&Mt(lr)})}u(se,ze)};D(Fe,se=>{e(ce)&&e(Ee)&&se(et)})}return w(ge),pr(ge,se=>B=se,()=>B),k(()=>{re(ge,"data-inline-html-status",e(ke)),re(ge,"data-inline-html-layout",e(le)?"viewport-locked":void 0),re(ge,"aria-busy",e(Be))}),u(r,ge),jt(ie)}var ak=I('<div class="w-full min-w-0"><!></div>');function sk(r,t){if(new.target)return Bt({component:sk,...r});Ht(t,!0);const n=()=>bt(e(b),"$agent$",s),a=()=>bt(e(B),"$entry$",s),[s,o]=ga();let c=y(t,"block",7),l=y(t,"role",7),f=y(t,"workspaceId",7),i=y(t,"agentId",7),p=y(t,"messageId",7),g=y(t,"contentBlockKey",7,""),O=ye(void 0);const b=d(()=>Bo(i()??"")),h=d(()=>l()==="assistant"&&f()&&i()&&p()&&c().metadata?.fenceClosed&&!c().metadata?.isStreaming&&n()&&!Jd(n())?{workspaceId:f(),agentId:i(),messageId:p(),blockKey:JSON.stringify([g(),c().metadata?.fenceStart??0]),source:c().content}:void 0),P=d(()=>!!(f()&&i()&&p()&&c().metadata?.fenceClosed&&!n())),R=d(()=>e(h)?bv(e(h)):""),B=d(()=>ah(e(R)));wt(()=>{e(h)&&Nt.dispatch(gv(e(h)))});function F(Y){!f()||!i()||n()?.retiredAt||e(O)?.dispatchEvent(new CustomEvent(kb,{bubbles:!0,detail:{workspaceId:f(),agentId:i(),snapshot:Y}}))}var T={get block(){return c()},set block(Y){c(Y),_()},get role(){return l()},set role(Y){l(Y),_()},get workspaceId(){return f()},set workspaceId(Y){f(Y),_()},get agentId(){return i()},set agentId(Y){i(Y),_()},get messageId(){return p()},set messageId(Y){p(Y),_()},get contentBlockKey(){return g()},set contentBlockKey(Y=""){g(Y),_()},$set:Ft,$on:(Y,Q)=>zt(t,Y,Q)},L=kt(),U=je(L);{var E=Y=>{var Q=ak(),Ie=S(Q);{let le=d(()=>c().metadata?.isStreaming??!1),fe=d(()=>c().metadata?.fenceClosed??!1),ce=d(()=>a()?.record),Le=d(()=>e(h)?a()?.status??"loading":e(P)?"loading":"ready"),G=d(()=>a()?.error),we=d(()=>e(h)?Xe=>Nt.dispatch(hv(e(R),Xe)):void 0),$=d(()=>f()&&i()&&n()&&!n().retiredAt?F:void 0),We=d(()=>e(h)?()=>Nt.dispatch(mv(e(R))):void 0),Ee=d(()=>e(h)?Xe=>Nt.dispatch(vv(e(R),crypto.randomUUID(),Xe)):void 0),Se=d(()=>a()?.export?.status),ke=d(()=>a()?.export?.path),Be=d(()=>a()?.export?.error);gf(Ie,{get source(){return c().content},get isStreaming(){return e(le)},get isComplete(){return e(fe)},get record(){return e(ce)},get storageStatus(){return e(Le)},get storageError(){return e(G)},get onRecordChange(){return e(we)},get onUseConfiguration(){return e($)},get onRetry(){return e(We)},get onExport(){return e(Ee)},get exportStatus(){return e(Se)},get exportPath(){return e(ke)},get exportError(){return e(Be)}})}w(Q),pr(Q,le=>A(O,le),()=>e(O)),u(Y,Q)},z=Y=>{ua(Y,{get code(){return c().content},language:"html"})};D(U,Y=>{l()==="assistant"?Y(E):Y(z,-1)})}u(r,L);var J=jt(T);return o(),J}var ok=I('<div class="digest-card flex items-start gap-2.5 py-5 px-6 my-4 shadow-xs text-base leading-normal border border-border"> </div>');function ik(r,t){if(new.target)return Bt({component:ik,...r});Ht(t,!0);let n=y(t,"digest",7);var a={get digest(){return n()},set digest(c){n(c),_()},$set:Ft,$on:(c,l)=>zt(t,c,l)},s=ok(),o=M(s,!0);return k(()=>x(o,n())),u(r,s),jt(a)}var lk=I('<span class="inline-flex items-center px-1.5 py-0.5 rounded text-xs font-medium bg-blue-500/15 text-blue-600 dark:text-blue-400"> </span>'),ck=I('<span class="inline-flex items-center px-1.5 py-0.5 rounded text-xs font-medium bg-muted text-muted-foreground"> </span>'),dk=I('<span class="inline-flex items-center px-1.5 py-0.5 rounded text-xs font-medium bg-primary/10 text-primary/80"> </span>'),uk=I('<div class="flex items-start gap-3 px-4 py-2.5"><div class="flex-1 min-w-0"><div class="flex items-center gap-2 flex-wrap"><span class="text-sm font-semibold text-foreground"> </span> <!> <!></div> <div class="mt-0.5 text-xs font-mono text-muted-foreground truncate"> </div></div></div>'),fk=I('<div class="detected-scripts-card my-3 rounded-lg border border-border bg-muted/30 overflow-hidden"><div class="flex items-center gap-2 px-4 py-2.5 border-b border-border bg-muted/40"><!> <span class="text-sm font-semibold text-foreground"> </span></div> <div class="divide-y divide-border"></div> <div class="px-4 py-2 border-t border-border bg-muted/20"><span class="text-xs text-muted-foreground"> </span></div></div>');function pk(r,t){if(new.target)return Bt({component:pk,...r});Ht(t,!0);let n=y(t,"scripts",7);var a={get scripts(){return n()},set scripts(b){n(b),_()},$set:Ft,$on:(b,h)=>zt(t,b,h)},s=fk(),o=S(s),c=S(o);At(c,{get icon(){return Nd},size:"sm",class:"text-primary-ink/70"});var l=m(c,2),f=M(l,!0);w(o);var i=m(o,2);Rt(i,21,n,b=>b.name+b.command,(b,h)=>{var P=uk(),R=S(P),B=S(R),F=S(B),T=M(F,!0),L=m(F,2);{var U=Ie=>{var le=lk(),fe=M(le,!0);k(ce=>x(fe,ce),[()=>v.chat_detectedScripts_service_badge()]),u(Ie,le)},E=Ie=>{var le=ck(),fe=M(le,!0);k(ce=>x(fe,ce),[()=>v.chat_detectedScripts_command_badge()]),u(Ie,le)};D(L,Ie=>{e(h).mode==="service"?Ie(U):Ie(E,-1)})}var z=m(L,2);{var J=Ie=>{var le=dk(),fe=M(le,!0);k(()=>x(fe,e(h).category)),u(Ie,le)};D(z,Ie=>{e(h).category&&e(h).category!=="other"&&Ie(J)})}w(B);var Y=m(B,2),Q=M(Y,!0);w(R),w(P),k(()=>{x(T,e(h).name),x(Q,e(h).command)}),u(b,P)}),w(i);var p=m(i,2),g=S(p),O=M(g,!0);return w(p),w(s),k((b,h)=>{x(f,b),x(O,h)},[()=>v.chat_detectedScripts_title(),()=>n().length===1?v.chat_detectedScripts_count_one({count:nr(n().length)}):v.chat_detectedScripts_count_many({count:nr(n().length)})]),u(r,s),jt(a)}function gk(r,t){if(new.target)return Bt({component:gk,...r});Ht(t,!0);let n=y(t,"diff",7),a=y(t,"filePath",7),s=y(t,"language",7),o=y(t,"onApply",7),c=y(t,"onReject",7);function l(){o()?.(),da.success(v.chat_diffViewer_applied_toast())}function f(){c()?.(),da.info(v.chat_diffViewer_rejected_toast())}const i=d(()=>{const g=[];return o()&&g.push({label:v.chat_diffViewer_apply_label(),variant:"success",onClick:l}),c()&&g.push({label:v.chat_diffViewer_reject_label(),variant:"danger",onClick:f}),g});var p={get diff(){return n()},set diff(g){n(g),_()},get filePath(){return a()},set filePath(g){a(g),_()},get language(){return s()},set language(g){s(g),_()},get onApply(){return o()},set onApply(g){o(g),_()},get onReject(){return c()},set onReject(g){c(g),_()},$set:Ft,$on:(g,O)=>zt(t,g,O)};{let g=d(()=>a()||v.chat_diffViewer_suggestedChanges_fallback());Ys(r,{get patch(){return n()},get fileName(){return e(g)},get language(){return s()},get actions(){return e(i)},collapsible:!0,initialCollapsed:!1,maxHeight:"500px"})}return jt(p)}var vk=Ha('<circle fill="none" style="transition: stroke-dasharray 0.3s ease-out"></circle>'),id=Ha("<circle></circle>"),mk=Ha('<svg class="absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 fill-background" viewBox="0 0 8 6"><path fill-rule="evenodd" clip-rule="evenodd" d="M7.69471 1.69471C7.87687 1.50611 7.97766 1.25351 7.97539 0.991311C7.97311 0.729114 7.86794 0.478302 7.68253 0.292894C7.49712 0.107485 7.24631 0.00231622 6.98411 3.78025e-05C6.72192 -0.00224062 6.46931 0.0985542 6.28071 0.280712L2.98771 3.57371L1.69471 2.28071C1.50611 2.09855 1.25351 1.99776 0.991311 2.00004C0.729114 2.00232 0.478302 2.10749 0.292894 2.29289C0.107485 2.4783 0.00231622 2.72911 3.78025e-05 2.99131C-0.00224062 3.25351 0.0985542 3.50611 0.280712 3.69471L2.28071 5.69471C2.46824 5.88218 2.72255 5.9875 2.98771 5.9875C3.25288 5.9875 3.50718 5.88218 3.69471 5.69471L7.69471 1.69471Z"></path></svg>'),hk=I('<div class="relative"><svg fill="none" xmlns="http://www.w3.org/2000/svg"><circle fill="none"></circle><!></svg> <!></div>');function Io(r,t){if(new.target)return Bt({component:Io,...r});Ht(t,!0);let n=y(t,"phase",7),a=y(t,"progress",7,0),s=y(t,"size",7,16),o=y(t,"class",7,""),c=d(()=>s()/2),l=d(()=>e(c)),f=d(()=>e(c)),i=d(()=>s()*.12),p=d(()=>e(c)-e(i)/2),g=d(()=>e(c)*.35),O=d(()=>2*Math.PI*e(g)),b=d(()=>Math.max(0,Math.min(1,a()))*e(O));const h={planning:"#99999999",building:"#54B1F3",reviewing:"#6D7FF5",shipped:"var(--color-foreground)"};let P=d(()=>h[n()]||"currentColor");var R={get phase(){return n()},set phase(le){n(le),_()},get progress(){return a()},set progress(le=0){a(le),_()},get size(){return s()},set size(le=16){s(le),_()},get class(){return o()},set class(le=""){o(le),_()},$set:Ft,$on:(le,fe)=>zt(t,le,fe)},B=hk(),F=S(B),T=S(F),L=m(T);{var U=le=>{},E=le=>{var fe=vk();k(()=>{re(fe,"cx",e(l)),re(fe,"cy",e(f)),re(fe,"r",e(g)*.8),re(fe,"stroke",e(P)),re(fe,"stroke-width",e(g)*1.5),re(fe,"stroke-dasharray",`${e(b)??""} ${e(O)??""}`),re(fe,"stroke-dashoffset",e(O)*.25),re(fe,"transform",`rotate(-90 ${e(l)??""} ${e(f)??""})`)}),u(le,fe)},z=le=>{var fe=id();k(()=>{re(fe,"cx",e(l)),re(fe,"cy",e(f)),re(fe,"r",e(p)*.6),re(fe,"fill",e(P))}),u(le,fe)},J=le=>{var fe=id();k(()=>{re(fe,"cx",e(l)),re(fe,"cy",e(f)),re(fe,"r",e(p)),re(fe,"fill",e(P))}),u(le,fe)};D(L,le=>{n()==="planning"?le(U):n()==="building"?le(E,1):n()==="reviewing"?le(z,2):n()==="shipped"&&le(J,3)})}w(F);var Y=m(F,2);{var Q=le=>{},Ie=le=>{var fe=mk();k(()=>re(fe,"width",s()*.5)),u(le,fe)};D(Y,le=>{n()==="reviewing"?le(Q):n()==="shipped"&&le(Ie,1)})}return w(B),k(()=>{re(F,"width",s()),re(F,"height",s()),re(F,"viewBox",`0 0 ${s()??""} ${s()??""}`),gt(F,0,ir(o())),re(T,"cx",e(l)),re(T,"cy",e(f)),re(T,"r",e(p)),re(T,"stroke",e(P)),re(T,"stroke-width",e(i))}),u(r,B),jt(R)}var ld=I('<span class="flex items-center gap-1"><span class="size-1.5 rounded-full"></span> </span>'),bk=I('<span class="flex items-center gap-1"><span class="size-1.5 rounded-full bg-border"></span> </span>'),cd=I('<span class="text-ui text-subtle truncate"> </span>'),dd=I('<div class="flex items-center gap-1 mt-0.5"><!> <!></div>'),ud=I('<div class="flex items-start gap-2"><div class="shrink-0 mt-0.5"><!></div> <div class="flex-1 min-w-0"><div class="text-xs leading-snug truncate"> </div> <!></div></div>'),yk=I('<div class="flex items-center gap-2"><div class="shrink-0"><!></div> <span class="text-ui text-subtle truncate line-through"> </span></div>'),_k=I('<span class="text-ui text-subtle pl-4"> </span>'),xk=I('<div class="flex flex-col gap-0.5 pt-1 border-t border-border"><!> <!></div>'),wk=I('<div class="text-ui text-subtle"> </div>'),kk=I("<!> <!> <!> <!>",1),Ik=I('<div class="flex flex-col py-2 px-3 gap-2 max-h-80 overflow-y-auto"><div class="flex items-center justify-between gap-3"><span class="text-xs font-semibold text-foreground"> </span> <div class="flex items-center gap-3 text-ui text-subtle"><!> <!> <!></div></div> <!></div>'),Sk=I('<div class="rounded-[0.5px]"></div>');function vf(r,t){if(new.target)return Bt({component:vf,...r});Ht(t,!0);let n=y(t,"stats",7),a=y(t,"tasks",23,()=>[]),s=y(t,"maxBars",7,20),o=y(t,"barWidth",7,"1px"),c=y(t,"barHeight",7,"16px"),l=y(t,"gap",7,"1px"),f=y(t,"class",7);const i={completed:"#22c55e",inProgress:"#4F7BF7",notStarted:"var(--border)"};let p=d(()=>{const{completed:L,inProgress:U,notStarted:E,total:z}=n();if(z===0)return[];const J=[...Array(L).fill("completed"),...Array(U).fill("inProgress"),...Array(Math.max(0,E)).fill("notStarted")];return J.length<=s()?J:J.slice(J.length-s())}),g=d(()=>a().filter(L=>L.status==="complete")),O=d(()=>a().filter(L=>L.status==="in_progress"||L.status==="review_required")),b=d(()=>a().filter(L=>L.status!=="complete"&&L.status!=="in_progress"&&L.status!=="review_required"&&L.status!=="cancelled")),h=d(()=>a().filter(L=>L.status==="cancelled")),P=d(()=>a().length>0);var R={get stats(){return n()},set stats(L){n(L),_()},get tasks(){return a()},set tasks(L=[]){a(L),_()},get maxBars(){return s()},set maxBars(L=20){s(L),_()},get barWidth(){return o()},set barWidth(L="1px"){o(L),_()},get barHeight(){return c()},set barHeight(L="16px"){c(L),_()},get gap(){return l()},set gap(L="1px"){l(L),_()},get class(){return f()},set class(L){f(L),_()},$set:Ft,$on:(L,U)=>zt(t,L,U)},B=kt(),F=je(B);{var T=L=>{Ci(L,{side:"top",align:"start",sideOffset:6,contentClass:"max-w-xs p-0",delayDuration:200,disableHoverableContent:!1,content:E=>{var z=Ik(),J=S(z),Y=S(J),Q=M(Y,!0),Ie=m(Y,2),le=S(Ie);{var fe=Ee=>{var Se=ld(),ke=S(Se);Nn(ke,"",{},{"background-color":"#22c55e"});var Be=m(ke);w(Se),k(()=>x(Be,` ${n().completed??""}`)),u(Ee,Se)};D(le,Ee=>{n().completed>0&&Ee(fe)})}var ce=m(le,2);{var Le=Ee=>{var Se=ld(),ke=S(Se);Nn(ke,"",{},{"background-color":"#4F7BF7"});var Be=m(ke);w(Se),k(()=>x(Be,` ${n().inProgress??""}`)),u(Ee,Se)};D(ce,Ee=>{n().inProgress>0&&Ee(Le)})}var G=m(ce,2);{var we=Ee=>{var Se=bk(),ke=m(S(Se));w(Se),k(()=>x(ke,` ${n().notStarted??""}`)),u(Ee,Se)};D(G,Ee=>{n().notStarted>0&&Ee(we)})}w(Ie),w(J);var $=m(J,2);{var We=Ee=>{var Se=kk(),ke=je(Se);Rt(ke,17,()=>e(O),Tr,(K,V)=>{var W=ud(),ie=S(W),ge=S(ie);oi(ge,{get status(){return e(V).status},size:14}),w(ie);var X=m(ie,2),de=S(X),Ne=M(de,!0),Ce=m(de,2);{var rt=me=>{var Re=dd(),q=S(Re);{let N=d(()=>e(V).agentState||"idle");Hl(q,{get agentId(){return e(V).agentId},get state(){return e(N)},size:12,get specialist(){return e(V).agentSpecialist}})}var Pe=m(q,2);{var ue=N=>{var H=cd(),pe=M(H,!0);k(()=>x(pe,e(V).agentName)),u(N,H)};D(Pe,N=>{e(V).agentName&&N(ue)})}w(Re),u(me,Re)};D(Ce,me=>{e(V).agentId&&me(rt)})}w(X),w(W),k(()=>x(Ne,e(V).title)),u(K,W)});var Be=m(ke,2);Rt(Be,17,()=>e(b),Tr,(K,V)=>{var W=ud(),ie=S(W),ge=S(ie);oi(ge,{get status(){return e(V).status},size:14}),w(ie);var X=m(ie,2),de=S(X),Ne=M(de,!0),Ce=m(de,2);{var rt=me=>{var Re=dd(),q=S(Re);{let N=d(()=>e(V).agentState||"idle");Hl(q,{get agentId(){return e(V).agentId},get state(){return e(N)},size:12,get specialist(){return e(V).agentSpecialist}})}var Pe=m(q,2);{var ue=N=>{var H=cd(),pe=M(H,!0);k(()=>x(pe,e(V).agentName)),u(N,H)};D(Pe,N=>{e(V).agentName&&N(ue)})}w(Re),u(me,Re)};D(Ce,me=>{e(V).agentId&&me(rt)})}w(X),w(W),k(()=>x(Ne,e(V).title)),u(K,W)});var Xe=m(Be,2);{var ae=K=>{var V=xk(),W=S(V);Rt(W,17,()=>e(g).slice(0,3),Tr,(X,de)=>{var Ne=yk(),Ce=S(Ne),rt=S(Ce);oi(rt,{status:"complete",size:12}),w(Ce);var me=m(Ce,2),Re=M(me,!0);w(Ne),k(()=>x(Re,e(de).title)),u(X,Ne)});var ie=m(W,2);{var ge=X=>{var de=_k(),Ne=M(de,!0);k(Ce=>x(Ne,Ce),[()=>v.workspace_taskProgressBar_moreCompleted_label({count:nr(e(g).length-3)})]),u(X,de)};D(ie,X=>{e(g).length>3&&X(ge)})}w(V),u(K,V)};D(Xe,K=>{e(g).length>0&&K(ae)})}var Z=m(Xe,2);{var Je=K=>{var V=wk(),W=M(V,!0);k(ie=>x(W,ie),[()=>v.workspace_taskProgressBar_cancelled_label({count:nr(e(h).length)})]),u(K,V)};D(Z,K=>{e(h).length>0&&K(Je)})}u(Ee,Se)};D($,Ee=>{e(P)&&Ee(We)})}w(z),k(Ee=>x(Q,Ee),[()=>v.workspace_taskProgressBar_tasksRatio_label({completed:nr(n().completed),total:nr(n().total)})]),u(E,z)},children:(E,z)=>{{let J=d(()=>In("flex h-auto min-w-0 shrink items-end justify-start cursor-default rounded-none border-0",f())),Y=d(()=>`gap: ${l()}`),Q=d(()=>v.workspace_taskProgressBar_tasksRatio_label({completed:nr(n().completed),total:nr(n().total)}));yt(E,{variant:"plain",type:"button",wrapContent:!1,get class(){return e(J)},get style(){return e(Y)},get"aria-label"(){return e(Q)},"data-task-progress-trigger":!0,children:(Ie,le)=>{var fe=kt(),ce=je(fe);Rt(ce,17,()=>e(p),Tr,(Le,G)=>{var we=Sk();let $;k(()=>$=Nn(we,"",$,{width:o(),height:c(),"background-color":i[e(G)]})),u(Le,we)}),u(Ie,fe)},$$slots:{default:!0}})}},$$slots:{content:!0,default:!0}})};D(F,L=>{n().total>0&&L(T)})}return u(r,B),jt(R)}function Il(r,t){if(new.target)return Bt({component:Il,...r});Ht(t,!0);let n=y(t,"items",7),a=y(t,"ariaLabel",7),s=y(t,"open",15,!1),o=y(t,"orientation",7,"vertical"),c=y(t,"selection",7),l=y(t,"class",7,"");const f=d(()=>Cg(n(),c(),a()));var i={get items(){return n()},set items(p){n(p),_()},get ariaLabel(){return a()},set ariaLabel(p){a(p),_()},get open(){return s()},set open(p=!1){s(p),_()},get orientation(){return o()},set orientation(p="vertical"){o(p),_()},get selection(){return c()},set selection(p){c(p),_()},get class(){return l()},set class(p=""){l(p),_()},$set:Ft,$on:(p,g)=>zt(t,p,g)};return Gm(r,{get actions(){return e(f)},align:"end",get ariaLabel(){return a()},onAction:g=>Sg(n(),g)?.onClick(),get open(){return s()},set open(g){s(g)},trigger:(g,O)=>{let b=()=>(O?.()).props;yt(g,el(b,{variant:"plain",size:"icon-compact",iconOnly:!0,type:"button",get class(){return l()},get"aria-label"(){return a()},onclick:h=>{h.stopPropagation(),b().onclick?.(h)},oncontextmenu:h=>{h.preventDefault(),h.stopPropagation()},children:(h,P)=>{Jm(h,{get orientation(){return o()},class:"size-3.5"})},$$slots:{default:!0}}))},$$slots:{trigger:!0}}),jt(i)}var Ck=I('<span class="contents"><!></span>'),Ek=I("<!> <!>",1);function mf(r,t){if(new.target)return Bt({component:mf,...r});Ht(t,!0);let n=y(t,"workspaceId",7),a=y(t,"slot",7);const s=d(()=>sv(a()));let o=ye(null);wt(()=>{e(o)&&e(o).workspaceId!==n()&&A(o,null)});function c(h){const P=Ad(h);P&&A(o,{...P,workspaceId:n()},!0)}function l(h){h.preventDefault(),h.stopPropagation();const P=h.currentTarget.getBoundingClientRect();A(o,{x:P.left,y:P.bottom+2,returnFocus:h.currentTarget,workspaceId:n()},!0)}function f(){A(o,null)}var i={get workspaceId(){return n()},set workspaceId(h){n(h),_()},get slot(){return a()},set slot(h){a(h),_()},$set:Ft,$on:(h,P)=>zt(t,h,P)},p=Ek(),g=je(p);{let h=d(()=>v.workspace_microKeyBadge_ariaLabel({number:nr(a()+1)})),P=d(()=>v.workspace_microKeyBadge_tooltip({number:nr(a()+1)})),R=d(()=>e(o)!==null);yt(g,{variant:"ghost",size:"icon",type:"button",class:"micro-key-slot-badge size-4 min-w-0 shrink-0 cursor-pointer rounded-[3px] p-0 a11y-ignore",get"aria-label"(){return e(h)},get title(){return e(P)},onclick:l,oncontextmenu:c,onkeydown:c,"aria-haspopup":"menu",get"aria-expanded"(){return e(R)},children:(B,F)=>{var T=Ck(),L=S(T);ag(L,{get slot(){return a()},get class(){return`transition-colors ${e(s)??""}`}}),w(T),u(B,T)},$$slots:{default:!0}})}var O=m(g,2);{var b=h=>{{let P=d(()=>e(o)?.x??0),R=d(()=>e(o)?.y??0),B=d(()=>e(o)?.returnFocus),F=d(()=>v.workspace_card_assignMicroKey_label()),T=d(()=>$h(n(),f));Td(h,{get x(){return e(P)},get y(){return e(R)},get returnFocus(){return e(B)},selection:"single",get ariaLabel(){return e(F)},get items(){return e(T)},onClickOutside:f})}};D(O,h=>{e(o)&&h(b)})}return u(r,p),jt(i)}var Pk=I('<span class="flex size-4 shrink-0 items-center justify-center"><!></span>'),Ak=I('<span data-workspace-card-pin-indicator="" aria-hidden="true"><!></span> <span class="sr-only"> </span>',1),Tk=I('<span class="type-caption shrink-0 rounded-sm bg-muted-foreground/10 px-1.5 font-normal text-muted-foreground" data-workspace-card-trailing-label=""> </span>'),Rk=I('<span data-workspace-card-pr-item=""><!></span>'),Mk=I('<span class="flex shrink-0 items-center" data-workspace-card-pr-list=""><!></span>'),Nk=I('<span data-workspace-card-time=""><!></span>'),Lk=I('<span aria-hidden="true"><!></span>'),Ok=I("<div><!> <!> <!> <!></div>"),Dk=I('<div data-workspace-card-hover-surface=""><!></div>'),Bk=I('<div role="group" data-workspace-card-row=""><!> <div class="relative z-10 flex shrink-0 items-center gap-1.5"><!> <!> <span class="sr-only"> </span></div> <div class="relative z-10 flex min-w-0 flex-1 items-center gap-2"><span class="flex min-w-0 flex-1 items-center gap-1" data-workspace-card-title-group=""><span dir="ltr" data-workspace-card-title=""><span class="wc-title-text svelte-1ct56pd"> </span></span> <!></span> <!> <!> <!></div> <!></div> <!> <!>',1),Fk=I('<div class="relative z-10 flex shrink-0 items-center"><!></div>'),zk=I('<div><!> <!> <span class="font-medium truncate"> </span> <span class="shrink-0 text-muted-foreground">·</span> <span class="truncate text-xs text-muted-foreground"> </span> <!></div>'),Hk=I('<div class="text-sm font-semibold truncate"> </div>'),fd=I('<span class="truncate"> </span>'),jk=I('<span class="text-muted-foreground">·</span>'),Wk=I('<div class="flex items-center gap-1 truncate text-xs text-muted-foreground"><!> <!> <!></div>'),Uk=I('<div><!> <!> <div class="flex items-center gap-2 text-xs"><!> <span class="truncate text-muted-foreground"> </span> <span> </span></div> <!></div>'),qk=I('<div class="flex items-center gap-2"><!> <span class="text-ui shrink-0 tabular-nums text-muted-foreground"> </span></div>'),Vk=I('<div class="flex items-center justify-between text-ui"><span class="text-muted-foreground"> </span> <span class="tabular-nums"><span class="text-success"> </span> <span class="ml-1 text-danger"> </span></span></div>'),Kk=I('<div class="flex items-center justify-between text-ui"><span class="text-muted-foreground"> </span></div>'),Gk=I('<div class="flex items-center text-ui"><span> </span></div>'),Jk=I('<div class="flex flex-col gap-1 px-3 pb-2.5"><!> <!> <!> <!></div>'),Yk=I('<div class="relative z-10 flex items-center gap-1.5 px-2 pb-2"><!></div>'),Xk=I('<div class="relative z-10 flex items-center gap-1.5 px-2 pb-2"><!> <!></div>'),Zk=I('<div role="group"><!> <div class="flex items-start gap-2.5 px-3 pt-3 pb-2"><!> <div class="flex-1 min-w-0"><div class="text-sm font-medium"> </div> <div class="mt-0.5 line-clamp-2 text-xs leading-snug text-muted-foreground"> </div></div></div> <!> <!></div>');function hf(r,t){if(new.target)return Bt({component:hf,...r});Ht(t,!0);const n=()=>bt(Be,"$prMonitors$",c),a=()=>bt(Xe,"$microConnected$",c),s=()=>bt(Z,"$hidesOwnerActions$",c),o=()=>bt(ae,"$workspaceKeySlot$",c),[c,l]=ga();let f=y(t,"workspace",7),i=y(t,"phase",7),p=y(t,"stats",7),g=y(t,"variant",7,"compact"),O=y(t,"showTime",7,!0),b=y(t,"isRunning",7,!1),h=y(t,"isUnread",7,!1),P=y(t,"isWaiting",7),R=y(t,"isPinned",7,!1),B=y(t,"streamingAgentIds",23,()=>[]),F=y(t,"hasSpec",7,!1),T=y(t,"isAgentRunning",7,!1),L=y(t,"agentDigest",7),U=y(t,"trailingLabel",7),E=y(t,"title",7),z=y(t,"repoName",7),J=y(t,"branch",7),Y=y(t,"onClick",7),Q=y(t,"onAction",7),Ie=y(t,"onTogglePin",7),le=y(t,"onMarkAsRead",7),fe=y(t,"onOpenInNewWindow",7),ce=y(t,"onHover",7),Le=y(t,"highlighted",7,!1),G=y(t,"selected",7,!1),we=y(t,"highlightId",7),$=y(t,"suppressHover",7,!1),We=y(t,"isolateHoverReveal",7,!1),Ee=y(t,"class",7),Se=y(t,"actions",7);const ke=Is("");wt(()=>{ke.set(f()?.id??"")});const Be=Vp(ke),Xe=pb(),ae=Dv(ke),Z=Kp(ke),Je=d(()=>tb(f()??{})),K=d(()=>rb(e(Je)));let V=d(()=>f()?fb.url.pathname===`/workspace/${f().id}`:!1),W=d(()=>f()?`workspace-hover-card-${f().id}`:void 0),ie=ye(!1),ge=ye(null),X=ye(null);wt(()=>{if(!e(X))return;const te=vo(e(X),{id:we()});return()=>te.destroy()});let de=ye(null),Ne=ye(null),Ce=ye(null),rt=ye(0),me=ye(0),Re=d(()=>e(rt)+(e(me)>0?e(me)+4:0));function q(){const te=e(de),pt=e(Ce);A(rt,te?Math.max(0,te.scrollWidth-te.clientWidth):0,!0),A(me,te&&pt&&pt.getClientRects().length>0?Math.max(0,te.getBoundingClientRect().right-pt.getBoundingClientRect().left):0,!0)}wt(()=>{const te=e(de),pt=e(Ne),qt=e(Ce);if(!te||!pt||(q(),typeof ResizeObserver>"u"))return;const Jt=new ResizeObserver(q);return Jt.observe(te),Jt.observe(pt),qt&&Jt.observe(qt),()=>Jt.disconnect()});let Pe=null,ue=null,N=!1,H=!1,pe=!1,Qe=!1,Te=!1,Fe=!1,et=ye(!1),se=!1,ze=null,nt=ye(null),dt=null,Ke;function tt(){Pe!==null&&(clearTimeout(Pe),Pe=null)}function st(){ue!==null&&(clearTimeout(ue),ue=null),dt?.(),dt=null}function vt(){st(),A(et,!0),A(ie,!0),!Te&&(Te=!0,js.notifyOpened())}function _t(){st(),clearTimeout(Ke),A(et,!1),A(ie,!1),H=!1,Qe=!1,Te&&(Te=!1,js.notifyClosed())}function Ot(){return N||H||pe||Qe}function Dt(){if(!e(ie)){_t();return}st(),ue=setTimeout(()=>{ue=null,Ot()||_t()},ab),dt=js.deferClose(_t)}function Yt(){H=!0,st()}function Et(){H=!1,!pe&&!Qe&&Dt()}function Wt(){Qe=!0,clearTimeout(Ke),st()}function Qt(te){const pt=te.relatedTarget instanceof Node?te.relatedTarget:null;if(pt&&ve()?.contains(pt)||(Qe=!1,pt&&e(ge)?.contains(pt)))return;if(pt){!N&&!H&&_t();return}const qt=te.target;clearTimeout(Ke),Ke=setTimeout(()=>{const Jt=document.activeElement,_r=ve()?.contains(Jt)||e(ge)?.contains(Jt);Jt&&Jt!==qt&&_r||!N&&!H&&_t()},0)}function lr(){ze!==null&&clearTimeout(ze),se=!0,ze=setTimeout(()=>{se=!1,ze=null},0)}function Mt(te){const pt=te.target,qt=ve();pt instanceof Node&&qt?.contains(pt)||te.type==="scroll"&&e(ge)&&pt instanceof Node&&!pt.contains(e(ge))||(te.type==="pointerdown"&&lr(),tt(),_t())}wt(()=>{if(e(et))return window.addEventListener("pointerdown",Mt,!0),window.addEventListener("scroll",Mt,!0),()=>{window.removeEventListener("pointerdown",Mt,!0),window.removeEventListener("scroll",Mt,!0)}});function St(te){if(te.key!=="Escape")return;const pt=te.target;pt instanceof Node&&ve()?.contains(pt)||(te.preventDefault(),te.stopPropagation(),Fe=pe,tt(),_t())}wt(()=>{if(e(ie))return window.addEventListener("keydown",St,!0),()=>window.removeEventListener("keydown",St,!0)});const _e=d(()=>f()?Jp.select(Nt.state,f().id):null),ee=d(()=>e(_e)?e(_e):f()?.activePullRequest?f().activePullRequest:!f()?.prStatus||f().prNumber==null?null:{id:`legacy-pr-${f().prNumber}`,number:f().prNumber,url:f().prUrl??"",title:v.workspace_hoverCard_pullRequest_label(),status:f().prStatus,createdAt:f().updatedAt,updatedAt:f().updatedAt}),Ue=d(()=>Gp(f())),at=d(()=>{if(!f()||e(Ue))return[];const te=f(),pt=te.repositoryOwner&&te.repositoryName?`${te.repositoryOwner}/${te.repositoryName}`:void 0;return Eg({workspacePRs:te.pullRequests,activePR:e(ee),monitors:n(),workspaceRepo:pt,buildPrUrl:(qt,Jt)=>Em(qt,te.repositoryOwner,te.repositoryName,Jt),getDisplayTitle:qt=>qt.title})}),ot=d(()=>e(at)[0]);function De(te){const pt=te.resource?.repository.provider==="gitlab"?`${te.repo} !${te.number}`:te.repo?v.workspace_card_prBadge_repoLine_tooltip({repo:te.repo,number:te.number}):v.workspace_card_prBadge_label({number:` #${te.number}`});return[Yp(pt,te),te.title,te.details].filter(Boolean).join(`
262
262
  `)}function oe(te){te.key==="Enter"&&Y()?.(te)}function ve(){return e(W)?document.getElementById(e(W)):null}function ne(){return Array.from(ve()?.querySelectorAll("button:not(:disabled), a[href]")??[])}function Me(){const te=e(ge)?.querySelector("[data-workspace-card-trigger]"),pt=ve();if(!te||!pt)return null;const qt=Array.from(document.querySelectorAll('button:not(:disabled), a[href], input:not(:disabled), select:not(:disabled), textarea:not(:disabled), [tabindex]:not([tabindex="-1"])')).filter(_r=>_r.tabIndex>=0&&!pt.contains(_r)),Jt=qt.indexOf(te);return Jt>=0?qt[Jt+1]:null}function he(te){Fe=!!e(ge)?.contains(te),_t(),te.focus({preventScroll:!0})}function He(){const te=e(ge)?.querySelector("[data-workspace-card-trigger]");te&&he(te)}async function Ve(te){if(te.key==="Escape"&&e(ie)){te.preventDefault(),te.stopPropagation(),_t();return}te.key!=="ArrowDown"||$()||!f()||(te.preventDefault(),te.stopPropagation(),A(et,!0),A(ie,!0),await ca(),ne()[0]?.focus({preventScroll:!0}))}function qe(te){const pt=ne(),qt=te.key==="Tab"&&te.shiftKey&&te.currentTarget===pt[0],_r=te.key==="Tab"&&!te.shiftKey&&te.currentTarget===pt.at(-1)?Me():null;te.key!=="Escape"&&!qt&&!_r||(te.preventDefault(),te.stopPropagation(),_r?he(_r):He())}function $e(){N=!0,st(),js.settleDeferredCloses(),q(),ce()?.(),f()&&!$()&&!pe&&(tt(),A(et,!0),Pe=setTimeout(()=>{Pe=null,vt()},js.currentOpenDelay))}function Oe(){N=!1,tt(),!pe&&!Qe&&Dt()}function Ye(){pe=!0,tt(),st(),!Fe&&(se||f()&&!$()&&(A(et,!0),A(ie,!0)))}function xe(te){const pt=te.relatedTarget instanceof Node?te.relatedTarget:null;pt&&e(ge)?.contains(pt)||(Fe=!1,pe=!1,!(pt&&ve()?.contains(pt))&&!N&&!H&&_t())}wt(()=>{$()&&(tt(),st(),_t())});let Ze=ye(null),ft=ye(!1),ct;wt(()=>{const te=f()?.id;ct!==te&&(ct=te,A(ft,!1)),e(Ze)&&e(Ze).workspaceId!==f()?.id&&Ct()});function it(te){if(!f())return;const pt=Ad(te);if(pt){if(A(ft,!1),mt().length===0){A(Ze,null);return}A(Ze,{...pt,returnFocus:te.target instanceof HTMLElement?te.target.closest("button")??e(ge)?.querySelector("button")??null:null,workspaceId:f().id},!0)}}function Ct(){A(Ze,null),A(ft,!1)}wt(()=>{e(ft)&&A(Ze,null)}),eo(()=>{tt(),st(),ze!==null&&(clearTimeout(ze),ze=null),_t()});function mt(){if(!f())return[];const te=[];return fe()&&te.push({id:"open-new-window",label:v.workspace_card_openNewWindow_label(),icon:Dd,onClick:()=>{fe()?.(),Ct()}}),te.push(...nb(f().id,{connected:a(),onClose:Ct})),s()||(e(Ue)||te.push({id:"transfer",label:v.workspace_card_transfer_label(),icon:Jg,onClick:()=>{Nt.dispatch(yv({workspaceId:f().id,workspaceTitle:f().title})),Ct()}}),te.push({id:"archive",label:v.workspace_card_archive_label(),icon:Bd,onClick:()=>{Nt.dispatch(Yd(f().id)),Ct()}}),te.push({id:"delete",label:v.workspace_card_deleteSpace_label(),icon:Fd,destructive:!0,onClick:()=>{Nt.dispatch(Xd(f().id)),Ct()}})),te}let Lt=d(()=>T()&&L()?L():i()?.subtitle??""),Kt=d(()=>p()&&p().tasks.total>0?p().tasks.completed/p().tasks.total:0),Zt=d(()=>!!p()&&(p().tasks.total>0||p().files.changed>0||p().commits.total>0||p().pr.hasOpen||p().pr.hasMerged)),cr=d(()=>e(Ue)?void 0:J()),Hr=d(()=>!p()||e(Ue)?"":p().pr.hasMerged?v.workspace_card_prMerged_label({number:p().pr.number??""}):p().pr.hasOpen?v.workspace_card_prOpen_label({number:p().pr.number?`#${p().pr.number}`:""}):""),ln=d(()=>i()?.phase==="planning"?T()?{primary:{label:v.workspace_card_showCoordinator_label(),action:"show-coordinator"},secondary:{label:v.workspace_card_pause_label(),action:"pause"}}:F()||(p()?.tasks.total??0)>0?{primary:{label:v.workspace_card_approveStart_label(),action:"approve"},secondary:{label:v.workspace_card_viewSpec_label(),action:"view-spec"}}:{primary:{label:v.workspace_card_showCoordinator_label(),action:"show-coordinator"},secondary:{label:v.workspace_card_viewSpec_label(),action:"view-spec"}}:i()?.phase==="building"?{primary:{label:v.workspace_card_showCoordinator_label(),action:"show-coordinator"},secondary:{label:v.workspace_card_pause_label(),action:"pause"}}:i()?.phase==="reviewing"?{primary:{label:v.workspace_card_createPr_label(),action:"create-pr"},secondary:{label:v.workspace_card_showChanges_label(),action:"show-changes"}}:{primary:{label:v.workspace_card_archive_label(),action:"archive"},secondary:{label:v.workspace_card_showChanges_label(),action:"show-changes"}});const $r={planning:"bg-muted/20 text-muted-foreground",building:"bg-info/15 text-info",reviewing:"bg-primary/15 text-primary",shipped:"bg-foreground/10 text-foreground"};var mr={get workspace(){return f()},set workspace(te){f(te),_()},get phase(){return i()},set phase(te){i(te),_()},get stats(){return p()},set stats(te){p(te),_()},get variant(){return g()},set variant(te="compact"){g(te),_()},get showTime(){return O()},set showTime(te=!0){O(te),_()},get isRunning(){return b()},set isRunning(te=!1){b(te),_()},get isUnread(){return h()},set isUnread(te=!1){h(te),_()},get isWaiting(){return P()},set isWaiting(te){P(te),_()},get isPinned(){return R()},set isPinned(te=!1){R(te),_()},get streamingAgentIds(){return B()},set streamingAgentIds(te=[]){B(te),_()},get hasSpec(){return F()},set hasSpec(te=!1){F(te),_()},get isAgentRunning(){return T()},set isAgentRunning(te=!1){T(te),_()},get agentDigest(){return L()},set agentDigest(te){L(te),_()},get trailingLabel(){return U()},set trailingLabel(te){U(te),_()},get title(){return E()},set title(te){E(te),_()},get repoName(){return z()},set repoName(te){z(te),_()},get branch(){return J()},set branch(te){J(te),_()},get onClick(){return Y()},set onClick(te){Y(te),_()},get onAction(){return Q()},set onAction(te){Q(te),_()},get onTogglePin(){return Ie()},set onTogglePin(te){Ie(te),_()},get onMarkAsRead(){return le()},set onMarkAsRead(te){le(te),_()},get onOpenInNewWindow(){return fe()},set onOpenInNewWindow(te){fe(te),_()},get onHover(){return ce()},set onHover(te){ce(te),_()},get highlighted(){return Le()},set highlighted(te=!1){Le(te),_()},get selected(){return G()},set selected(te=!1){G(te),_()},get highlightId(){return we()},set highlightId(te){we(te),_()},get suppressHover(){return $()},set suppressHover(te=!1){$(te),_()},get isolateHoverReveal(){return We()},set isolateHoverReveal(te=!1){We(te),_()},get class(){return Ee()},set class(te){Ee(te),_()},get actions(){return Se()},set actions(te){Se(te),_()},$set:Ft,$on:(te,pt)=>zt(t,te,pt)},qn=kt(),ea=je(qn);{var Vn=te=>{var pt=Bk(),qt=je(pt);let Jt;var _r=S(qt);{let ht=d(()=>f().title||v.workspace_links_untitled_label()),Pt=d(()=>`workspace-status-state-${f().id}${R()?` workspace-pinned-state-${f().id}`:""}${e(ie)?` ${e(W)}`:""}`),ar=d(()=>e(V)?"page":void 0);yt(_r,{variant:"plain",class:"absolute inset-0 z-0 h-auto w-auto rounded-md focus-visible:border-transparent focus-visible:bg-background/50 focus-visible:ring-0",get"aria-label"(){return e(ht)},get"aria-describedby"(){return e(Pt)},get"aria-current"(){return e(ar)},"data-workspace-card-trigger":!0,onkeydown:Ve,onclick:hr=>{hr.stopPropagation(),Y()?.(hr)}})}var Kn=m(_r,2),Jr=S(Kn);{var Gn=ht=>{var Pt=Pk(),ar=S(Pt);{var hr=wr=>{mf(wr,{get workspaceId(){return f().id},get slot(){return o()}})};D(ar,wr=>{o()!==null&&wr(hr)})}w(Pt),u(ht,Pt)};D(Jr,ht=>{a()&&ht(Gn)})}var fn=m(Jr,2);Ci(fn,{get content(){return e(K).tooltip},side:"bottom",sideOffset:4,children:(ht,Pt)=>{eb(ht,{get status(){return e(Je)},size:14,decorative:!0,class:"justify-start"})},$$slots:{default:!0}});var Jn=m(fn,2),ta=M(Jn,!0);w(Kn);var jr=m(Kn,2),en=S(jr),rr=S(en),Wr=S(rr),pn=M(Wr,!0);pr(Wr,ht=>A(Ne,ht),()=>e(Ne)),w(rr),pr(rr,ht=>A(de,ht),()=>e(de));var xr=m(rr,2);{var Or=ht=>{var Pt=Ak(),ar=je(Pt),hr=S(ar);At(hr,{get icon(){return Vl},size:"xs"}),w(ar);var wr=m(ar,2),Dr=M(wr,!0);k(yn=>{gt(ar,1,`wc-pin-indicator inline-flex shrink-0 items-center text-muted-foreground transition-opacity
263
- ${Ie()?Le()?"opacity-0":$()?"":We()?"group-hover/wc:opacity-0 group-focus-within/wc:opacity-0":"group-hover:opacity-0 group-focus-within:opacity-0":""}`,"svelte-1ct56pd"),re(wr,"id",`workspace-pinned-state-${f().id??""}`),x(Dr,yn)},[()=>v.layout_activeCard_pinned_header()]),u(ht,Pt)};D(xr,ht=>{R()&&ht(Or)})}w(en);var gn=m(en,2);{var va=ht=>{var Pt=Tk(),ar=M(Pt,!0);k(()=>x(ar,U())),u(ht,Pt)};D(gn,ht=>{U()&&ht(va)})}var tn=m(gn,2);{var Yr=ht=>{const Pt=d(()=>e(ot));var ar=Mk(),hr=S(ar);{let wr=d(()=>De(e(Pt)));Ci(hr,{get content(){return e(wr)},side:"bottom",sideOffset:4,children:(Dr,yn)=>{var ra=kt(),Dn=je(ra);{var Cr=cn=>{{let Er=d(()=>De(e(Pt)));yt(cn,{variant:"plain",size:"icon-compact",iconOnly:!0,get class(){return`size-5 shrink-0 rounded-sm ${e(Pt).foregroundClass??""}`},get"aria-label"(){return e(Er)},"data-workspace-card-pr-item":!0,get"data-pr-identity"(){return e(Pt).identity},get"data-pr-status"(){return e(Pt).status},onclick:nn=>{nn.stopPropagation();const Ta=f().id;Ip(async()=>{const{handleLink:Yn}=await import("./BeQgENlX.js").then(vn=>vn.H);return{handleLink:Yn}},__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]),import.meta.url).then(({handleLink:Yn})=>Yn(e(Pt).url,{workspaceId:Ta,event:nn}))},children:(nn,Ta)=>{At(nn,{get icon(){return e(Pt).statusIcon},size:14})},$$slots:{default:!0}})}},Cn=cn=>{var Er=Rk(),nn=S(Er);At(nn,{get icon(){return e(Pt).statusIcon},size:14}),w(Er),k(Ta=>{gt(Er,1,`inline-flex size-5 shrink-0 items-center justify-center rounded-sm ${e(Pt).foregroundClass??""}`,"svelte-1ct56pd"),re(Er,"aria-label",Ta),re(Er,"data-pr-identity",e(Pt).identity),re(Er,"data-pr-status",e(Pt).status)},[()=>De(e(Pt))]),u(cn,Er)};D(Dn,cn=>{e(Pt).url?cn(Cr):cn(Cn,-1)})}u(Dr,ra)},$$slots:{default:!0}})}w(ar),k(wr=>re(ar,"aria-label",wr),[()=>e(Pt).resource?.repository.provider==="gitlab"?v.workspace_hoverCard_mergeRequest_label():v.workspace_hoverCard_pullRequest_label()]),u(ht,ar)};D(tn,ht=>{e(ot)&&ht(Yr)})}var Mr=m(tn,2);{var xa=ht=>{var Pt=Nk(),ar=S(Pt);{var hr=Dr=>{{let yn=d(()=>Zl(f()));sg(Dr,{get date(){return e(yn)},class:"type-caption whitespace-nowrap tabular-nums text-muted-foreground",compact:!0})}},wr=d(()=>Zl(f())>0);D(ar,Dr=>{e(wr)&&Dr(hr)})}w(Pt),k(()=>gt(Pt,1,`wc-secondary shrink-0 ${Se()||Ie()||h()&&le()?Le()?"opacity-0":$()?"":We()?"group-hover/wc:opacity-0 group-hover/message:opacity-0":"group-hover:opacity-0 group-hover/message:opacity-0":""}`,"svelte-1ct56pd")),u(ht,Pt)};D(Mr,ht=>{O()&&ht(xa)})}w(jr);var rs=m(jr,2);{var ns=ht=>{var Pt=Ok(),ar=S(Pt);{var hr=Cr=>{{let Cn=d(()=>R()?"text-primary-ink":"text-muted-foreground"),cn=d(()=>R()?v.workspace_card_unpin_ariaLabel():v.workspace_card_pin_ariaLabel()),Er=d(()=>R()?v.workspace_card_unpin_tooltip():v.workspace_card_pin_tooltip());yt(Cr,{variant:"plain",size:"icon-xs",iconOnly:!0,get class(){return`transition-all hover:bg-muted/50 hover:text-foreground focus-visible:border-transparent focus-visible:bg-muted/50 focus-visible:text-foreground focus-visible:ring-0
263
+ ${Ie()?Le()?"opacity-0":$()?"":We()?"group-hover/wc:opacity-0 group-focus-within/wc:opacity-0":"group-hover:opacity-0 group-focus-within:opacity-0":""}`,"svelte-1ct56pd"),re(wr,"id",`workspace-pinned-state-${f().id??""}`),x(Dr,yn)},[()=>v.layout_activeCard_pinned_header()]),u(ht,Pt)};D(xr,ht=>{R()&&ht(Or)})}w(en);var gn=m(en,2);{var va=ht=>{var Pt=Tk(),ar=M(Pt,!0);k(()=>x(ar,U())),u(ht,Pt)};D(gn,ht=>{U()&&ht(va)})}var tn=m(gn,2);{var Yr=ht=>{const Pt=d(()=>e(ot));var ar=Mk(),hr=S(ar);{let wr=d(()=>De(e(Pt)));Ci(hr,{get content(){return e(wr)},side:"bottom",sideOffset:4,children:(Dr,yn)=>{var ra=kt(),Dn=je(ra);{var Cr=cn=>{{let Er=d(()=>De(e(Pt)));yt(cn,{variant:"plain",size:"icon-compact",iconOnly:!0,get class(){return`size-5 shrink-0 rounded-sm ${e(Pt).foregroundClass??""}`},get"aria-label"(){return e(Er)},"data-workspace-card-pr-item":!0,get"data-pr-identity"(){return e(Pt).identity},get"data-pr-status"(){return e(Pt).status},onclick:nn=>{nn.stopPropagation();const Ta=f().id;Ip(async()=>{const{handleLink:Yn}=await import("./8y_Q4Ch2.js").then(vn=>vn.H);return{handleLink:Yn}},__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]),import.meta.url).then(({handleLink:Yn})=>Yn(e(Pt).url,{workspaceId:Ta,event:nn}))},children:(nn,Ta)=>{At(nn,{get icon(){return e(Pt).statusIcon},size:14})},$$slots:{default:!0}})}},Cn=cn=>{var Er=Rk(),nn=S(Er);At(nn,{get icon(){return e(Pt).statusIcon},size:14}),w(Er),k(Ta=>{gt(Er,1,`inline-flex size-5 shrink-0 items-center justify-center rounded-sm ${e(Pt).foregroundClass??""}`,"svelte-1ct56pd"),re(Er,"aria-label",Ta),re(Er,"data-pr-identity",e(Pt).identity),re(Er,"data-pr-status",e(Pt).status)},[()=>De(e(Pt))]),u(cn,Er)};D(Dn,cn=>{e(Pt).url?cn(Cr):cn(Cn,-1)})}u(Dr,ra)},$$slots:{default:!0}})}w(ar),k(wr=>re(ar,"aria-label",wr),[()=>e(Pt).resource?.repository.provider==="gitlab"?v.workspace_hoverCard_mergeRequest_label():v.workspace_hoverCard_pullRequest_label()]),u(ht,ar)};D(tn,ht=>{e(ot)&&ht(Yr)})}var Mr=m(tn,2);{var xa=ht=>{var Pt=Nk(),ar=S(Pt);{var hr=Dr=>{{let yn=d(()=>Zl(f()));sg(Dr,{get date(){return e(yn)},class:"type-caption whitespace-nowrap tabular-nums text-muted-foreground",compact:!0})}},wr=d(()=>Zl(f())>0);D(ar,Dr=>{e(wr)&&Dr(hr)})}w(Pt),k(()=>gt(Pt,1,`wc-secondary shrink-0 ${Se()||Ie()||h()&&le()?Le()?"opacity-0":$()?"":We()?"group-hover/wc:opacity-0 group-hover/message:opacity-0":"group-hover:opacity-0 group-hover/message:opacity-0":""}`,"svelte-1ct56pd")),u(ht,Pt)};D(Mr,ht=>{O()&&ht(xa)})}w(jr);var rs=m(jr,2);{var ns=ht=>{var Pt=Ok(),ar=S(Pt);{var hr=Cr=>{{let Cn=d(()=>R()?"text-primary-ink":"text-muted-foreground"),cn=d(()=>R()?v.workspace_card_unpin_ariaLabel():v.workspace_card_pin_ariaLabel()),Er=d(()=>R()?v.workspace_card_unpin_tooltip():v.workspace_card_pin_tooltip());yt(Cr,{variant:"plain",size:"icon-xs",iconOnly:!0,get class(){return`transition-all hover:bg-muted/50 hover:text-foreground focus-visible:border-transparent focus-visible:bg-muted/50 focus-visible:text-foreground focus-visible:ring-0
264
264
  ${e(Cn)??""}`},onclick:nn=>{nn.stopPropagation(),Ie()?.(nn)},get"aria-label"(){return e(cn)},get title(){return e(Er)},children:(nn,Ta)=>{var Yn=Lk(),vn=S(Yn);At(vn,{get icon(){return Vl},size:"xs"}),w(Yn),u(nn,Yn)},$$slots:{default:!0}})}};D(ar,Cr=>{Ie()&&Cr(hr)})}var wr=m(ar,2);{var Dr=Cr=>{{let Cn=d(()=>v.workspace_card_markAsRead_label()),cn=d(()=>v.workspace_card_markAsRead_label());yt(Cr,{variant:"plain",size:"icon-xs",iconOnly:!0,class:"text-muted-foreground hover:bg-muted/50 hover:text-foreground focus-visible:border-transparent focus-visible:bg-muted/50 focus-visible:text-foreground focus-visible:ring-0",onclick:Er=>{Er.stopPropagation(),le()?.(Er)},get"aria-label"(){return e(Cn)},get title(){return e(cn)},children:(Er,nn)=>{At(Er,{get icon(){return zd},size:"xs"})},$$slots:{default:!0}})}};D(wr,Cr=>{h()&&le()&&Cr(Dr)})}var yn=m(wr,2);un(yn,()=>Se()??So);var ra=m(yn,2);{var Dn=Cr=>{{let Cn=d(mt),cn=d(()=>v.workspace_progressCard_actions_ariaLabel());Il(Cr,{get items(){return e(Cn)},get ariaLabel(){return e(cn)},class:"flex size-5 cursor-pointer items-center justify-center rounded text-muted-foreground transition-colors hover:bg-muted/50 hover:text-foreground focus-visible:bg-muted/50 focus-visible:text-foreground focus-visible:outline-none",get open(){return e(ft)},set open(Er){A(ft,Er,!0)}})}};D(ra,Cr=>{fe()&&Cr(Dn)})}w(Pt),pr(Pt,Cr=>A(Ce,Cr),()=>e(Ce)),k(()=>gt(Pt,1,`wc-actions absolute right-1 top-1/2 z-20 flex -translate-y-1/2 items-center gap-0.5 rounded-md bg-accent/95 px-0.5 focus-within:opacity-100
265
265
  ${We()?"group-focus-within/wc:opacity-100":"group-focus-within:opacity-100"}
266
266
  ${Le()?"opacity-100":$()?"opacity-0":We()?"opacity-0 group-hover/wc:opacity-100":"opacity-0 group-hover:opacity-100"}`,"svelte-1ct56pd")),u(ht,Pt)};D(rs,ht=>{(Se()||fe()||Ie()||h()&&le())&&ht(ns)})}w(qt),pr(qt,ht=>A(ge,ht),()=>e(ge)),Un(qt,(ht,Pt)=>vo?.(ht,Pt),()=>({id:we()}));var Xr=m(qt,2);{var rn=ht=>{sb(ht,{get id(){return e(W)},get anchor(){return`--workspace-list-${f().id??""}`},position:"right",get anchorElement(){return e(ge)},class:"w-auto overflow-visible! rounded-lg border-0! bg-background! shadow-none!",onmouseenter:Yt,onmouseleave:Et,onfocusin:Wt,onfocusout:Qt,children:(Pt,ar)=>{var hr=Dk(),wr=S(hr);ob(wr,{get workspace(){return f()},get activeAgentIds(){return B()},onkeydown:qe}),w(hr),pr(hr,Dr=>A(nt,Dr),()=>e(nt)),Rn("pointerenter",hr,Yt),Rn("pointerleave",hr,Et),Rr("focusin",hr,Wt),Rr("focusout",hr,Qt),u(Pt,hr)},$$slots:{default:!0}})};D(Xr,ht=>{e(ie)&&!$()&&ht(rn)})}var On=m(Xr,2);{var kr=ht=>{const Pt=d(mt);var ar=kt(),hr=je(ar);{var wr=Dr=>{{let yn=d(()=>e(Ze)?.x??0),ra=d(()=>e(Ze)?.y??0),Dn=d(()=>e(Ze)?.returnFocus),Cr=d(()=>v.workspace_progressCard_actions_ariaLabel());Td(Dr,{get x(){return e(yn)},get y(){return e(ra)},get returnFocus(){return e(Dn)},get ariaLabel(){return e(Cr)},get items(){return e(Pt)},onClickOutside:Ct})}};D(hr,Dr=>{e(Pt).length>0&&Dr(wr)})}u(ht,ar)};D(On,ht=>{e(Ze)&&ht(kr)})}k((ht,Pt,ar)=>{gt(qt,1,ht,"svelte-1ct56pd"),re(qt,"data-pinned",R()),re(qt,"data-highlight-id",we()),Jt=Nn(qt,"",Jt,{"anchor-name":`--workspace-list-${f().id??""}`}),re(Jn,"id",`workspace-status-state-${f().id??""}`),x(ta,e(K).accessibleName),gt(rr,1,`wc-title type-body min-w-0 truncate font-normal!
@@ -1,4 +1,4 @@
1
- import{g as k1}from"./BZXx4oAF.js";import{g as E1}from"./CQGCQvNO.js";import{s as C1}from"./BkihpvKL.js";import{b as k,a$ as t1,ay as oe,X as Ce,a1 as S1,aP as x1,bh as Gt,a_ as T1,aZ as D1,b0 as _1,V as v1,U as F1,Y as V1,z as I1,ax as s1,J as i1,as as L1,$ as Rt,aW as Ot,r as B1,N as M1,am as y1,aU as w1,ab as N1,x as R1,aT as O1,p as P1}from"./BlT4teVV.js";import{c as G1}from"./CQdlmcpA.js";import{aP as U1}from"./Cj2RYqvI.js";var tt={SHAPE_UNSUPPORTED:"SHAPE_UNSUPPORTED",SHAPE_REMOVED:"SHAPE_REMOVED",EDGE_OPERATOR_UNSUPPORTED:"EDGE_OPERATOR_UNSUPPORTED",REFERENCE_EDGE_LABEL_REJECTED:"REFERENCE_EDGE_LABEL_REJECTED",CONNECTOR_REF_UNRESOLVED:"CONNECTOR_REF_UNRESOLVED",CONNECTOR_REF_NOT_A_CONNECTOR:"CONNECTOR_REF_NOT_A_CONNECTOR",METADATA_KEY_MISAPPLIED:"METADATA_KEY_MISAPPLIED",DUPLICATE_ID_NODE:"DUPLICATE_ID_NODE",RESERVED_SYNTHETIC_ID:"RESERVED_SYNTHETIC_ID",CONTAINMENT_VIOLATION:"CONTAINMENT_VIOLATION",EDGE_SEMANTIC_CONTRADICTION:"EDGE_SEMANTIC_CONTRADICTION",FLOW_NO_INPUT:"FLOW_NO_INPUT"},j1=new Set([tt.SHAPE_UNSUPPORTED,tt.SHAPE_REMOVED,tt.CONTAINMENT_VIOLATION]);new Set(Object.values(tt).filter(s=>!j1.has(s)));var z1=new Map([["task","roundedRect"],["tool","subroutine"],["input","lean-right"],["lean_right","lean-right"],["decision","diamond"],["refdoc","lin-doc"],["action","hexagon"],["round","rect"]]),W1=new Set(["doc","stadium","terminal","circle","trapezoid","inv_trapezoid","inv-trapezoid","doublecircle","double-circle","typeDeclaration","procs","lean_left","lean-left","in-out","cylinder","ellipse","odd","tag-rect","tagged-rectangle","delay","half-rounded-rectangle","lin-rect","lined-rectangle","win-pane","window-pane","curv-trap","curved-trapezoid"]),K1=new Set(["roundedRect","subroutine","subprocess","subproc","framed-rectangle","lean-right","diamond","lin-doc","lined-document","hexagon","hex","connector","collapsedGroup"]),$e="roundedRect";function et(s){return s&&(z1.get(s)??s)}k(et,"resolveShapeAlias");function r1(s,i){for(const n of s)if(!n.isGroup){if((!n.shape||n.shape==="squareRect"||n.shape==="rect")&&(n.shape=$e),W1.has(n.shape)){const r=`shape "${n.shape}" was removed in v0.8.1, using "${$e}"`;i?.emitError?i.emitError("SHAPE_REMOVED",r,{nodeId:n.id}):oe.warn(`agentflow: ${r}`),n.shape=$e;continue}if(!K1.has(n.shape)){const r=`shape "${n.shape}" is not supported, using "${$e}"`;i?.emitWarning?i.emitWarning("SHAPE_UNSUPPORTED",r,{nodeId:n.id}):oe.warn(`agentflow: ${r}`),n.shape=$e}}}k(r1,"normaliseNodeShapes");var Lt=new Map([["tool",0],["task",1],["decision",2],["input",3],["refdoc",4],["connector",5],["action",6]]),a1=Lt.size,o1=k(s=>`af-kind-${s}`,"kindClass"),H1=[...Lt.keys()],u1=k(s=>Math.max(1,s-a1),"containerSlotCount"),l1=k((s,i)=>{const n=a1+s%u1(i);return i>0?n%i:n},"containerSlot");function c1(s,i,n){const r=Ce().themeVariables?.borderColorArray,u=Array.isArray(r)?r.length:0;let l=n.size;for(const c of s??[]){if(c.isGroup||c.shape==="collapsedGroup"){const h=n.get(String(c.id))??l++;c.colorIndex=l1(h,u);continue}const a=i(String(c.id));a&&Lt.has(a)&&(c.cssClasses=`${c.cssClasses??""} ${o1(a)}`.replace(/\s+/g," ").trim())}}k(c1,"assignColorSlots");var n1="agentflow-",Pt=new Set(["shape","view","icon","img","form","pos","w","h","class","style","labelType"]),Y1=new Set(["subroutine","subprocess","subproc","framed-rectangle","tool"]),q1={flow:"flowGroup"};function It(s){if(Array.isArray(s))return s.map(n=>It(n));if(s===null||typeof s!="object")return s;const i={};for(const n of Object.keys(s))n==="__proto__"||n==="constructor"||n==="prototype"||(i[n]=It(s[n]));return i}k(It,"stripPrototypeKeys");function d1(s){let i=!1,n=!1,r=0,u;const l=[];for(const c of s.split(`
1
+ import{g as k1}from"./BCodcgR6.js";import{g as E1}from"./BFLrA-xP.js";import{s as C1}from"./ygGiV4X4.js";import{b as k,a$ as t1,ay as oe,X as Ce,a1 as S1,aP as x1,bh as Gt,a_ as T1,aZ as D1,b0 as _1,V as v1,U as F1,Y as V1,z as I1,ax as s1,J as i1,as as L1,$ as Rt,aW as Ot,r as B1,N as M1,am as y1,aU as w1,ab as N1,x as R1,aT as O1,p as P1}from"./Cea00daJ.js";import{c as G1}from"./B9kWU728.js";import{aP as U1}from"./BTmwOa4k.js";var tt={SHAPE_UNSUPPORTED:"SHAPE_UNSUPPORTED",SHAPE_REMOVED:"SHAPE_REMOVED",EDGE_OPERATOR_UNSUPPORTED:"EDGE_OPERATOR_UNSUPPORTED",REFERENCE_EDGE_LABEL_REJECTED:"REFERENCE_EDGE_LABEL_REJECTED",CONNECTOR_REF_UNRESOLVED:"CONNECTOR_REF_UNRESOLVED",CONNECTOR_REF_NOT_A_CONNECTOR:"CONNECTOR_REF_NOT_A_CONNECTOR",METADATA_KEY_MISAPPLIED:"METADATA_KEY_MISAPPLIED",DUPLICATE_ID_NODE:"DUPLICATE_ID_NODE",RESERVED_SYNTHETIC_ID:"RESERVED_SYNTHETIC_ID",CONTAINMENT_VIOLATION:"CONTAINMENT_VIOLATION",EDGE_SEMANTIC_CONTRADICTION:"EDGE_SEMANTIC_CONTRADICTION",FLOW_NO_INPUT:"FLOW_NO_INPUT"},j1=new Set([tt.SHAPE_UNSUPPORTED,tt.SHAPE_REMOVED,tt.CONTAINMENT_VIOLATION]);new Set(Object.values(tt).filter(s=>!j1.has(s)));var z1=new Map([["task","roundedRect"],["tool","subroutine"],["input","lean-right"],["lean_right","lean-right"],["decision","diamond"],["refdoc","lin-doc"],["action","hexagon"],["round","rect"]]),W1=new Set(["doc","stadium","terminal","circle","trapezoid","inv_trapezoid","inv-trapezoid","doublecircle","double-circle","typeDeclaration","procs","lean_left","lean-left","in-out","cylinder","ellipse","odd","tag-rect","tagged-rectangle","delay","half-rounded-rectangle","lin-rect","lined-rectangle","win-pane","window-pane","curv-trap","curved-trapezoid"]),K1=new Set(["roundedRect","subroutine","subprocess","subproc","framed-rectangle","lean-right","diamond","lin-doc","lined-document","hexagon","hex","connector","collapsedGroup"]),$e="roundedRect";function et(s){return s&&(z1.get(s)??s)}k(et,"resolveShapeAlias");function r1(s,i){for(const n of s)if(!n.isGroup){if((!n.shape||n.shape==="squareRect"||n.shape==="rect")&&(n.shape=$e),W1.has(n.shape)){const r=`shape "${n.shape}" was removed in v0.8.1, using "${$e}"`;i?.emitError?i.emitError("SHAPE_REMOVED",r,{nodeId:n.id}):oe.warn(`agentflow: ${r}`),n.shape=$e;continue}if(!K1.has(n.shape)){const r=`shape "${n.shape}" is not supported, using "${$e}"`;i?.emitWarning?i.emitWarning("SHAPE_UNSUPPORTED",r,{nodeId:n.id}):oe.warn(`agentflow: ${r}`),n.shape=$e}}}k(r1,"normaliseNodeShapes");var Lt=new Map([["tool",0],["task",1],["decision",2],["input",3],["refdoc",4],["connector",5],["action",6]]),a1=Lt.size,o1=k(s=>`af-kind-${s}`,"kindClass"),H1=[...Lt.keys()],u1=k(s=>Math.max(1,s-a1),"containerSlotCount"),l1=k((s,i)=>{const n=a1+s%u1(i);return i>0?n%i:n},"containerSlot");function c1(s,i,n){const r=Ce().themeVariables?.borderColorArray,u=Array.isArray(r)?r.length:0;let l=n.size;for(const c of s??[]){if(c.isGroup||c.shape==="collapsedGroup"){const h=n.get(String(c.id))??l++;c.colorIndex=l1(h,u);continue}const a=i(String(c.id));a&&Lt.has(a)&&(c.cssClasses=`${c.cssClasses??""} ${o1(a)}`.replace(/\s+/g," ").trim())}}k(c1,"assignColorSlots");var n1="agentflow-",Pt=new Set(["shape","view","icon","img","form","pos","w","h","class","style","labelType"]),Y1=new Set(["subroutine","subprocess","subproc","framed-rectangle","tool"]),q1={flow:"flowGroup"};function It(s){if(Array.isArray(s))return s.map(n=>It(n));if(s===null||typeof s!="object")return s;const i={};for(const n of Object.keys(s))n==="__proto__"||n==="constructor"||n==="prototype"||(i[n]=It(s[n]));return i}k(It,"stripPrototypeKeys");function d1(s){let i=!1,n=!1,r=0,u;const l=[];for(const c of s.split(`
2
2
  `)){if(u!==void 0){const p=c.length-c.trimStart().length;if(c.trim()===""||p>u){l.push(c);continue}u=void 0}let a=-1;for(let p=0;p<c.length;p++){const A=c[p];if(n)A==="\\"?p++:A==='"'&&(n=!1);else if(i)A==="'"&&(i=!1);else if(A==='"')n=!0;else if(A==="'")i=!0;else if(A==="#"&&(p===0||c[p-1]===" "||c[p-1]===" ")){a=p;break}else A==="["||A==="{"?r++:(A==="]"||A==="}")&&(r=Math.max(0,r-1))}if(i||n||r>0){l.push(c);continue}const h=a>=0?c.slice(0,a):c,g=a>=0?c.slice(a):"";if(/:\s*[>|][\d+-]*\s*$/.test(h)){u=c.length-c.trimStart().length,l.push(c);continue}l.push(h.replace(/,([\t ]*)$/,"$1")+g)}return l.join(`
3
3
  `)}k(d1,"stripLineTrailingCommas");var Ze,X1=(Ze=class{constructor(){this.vertexCounter=0,this.config=Ce(),this.vertices=new Map,this.edges=[],this.classes=new Map,this.subGraphs=[],this.subGraphLookup=new Map,this.globalNodes=new Set,this.connectors=new Map,this.tooltips=new Map,this.subCount=0,this.firstGraphFlag=!0,this.secCount=-1,this.posCrossRef=[],this.diagramId="",this.preserveCommentsWhenParsing=!0,this.frontmatterLineOffset=0,this.elementMappings=[],this.bareVertexMappings=new WeakSet,this.diagnostics=[],this.postParseValidationRun=!1,this.funs=[],this.setAccTitle=T1,this.setAccDescription=D1,this.setDiagramTitle=_1,this.getAccTitle=v1,this.getAccDescription=F1,this.getDiagramTitle=V1,this.funs.push(this.setupToolTips.bind(this)),this.addVertex=this.addVertex.bind(this),this.firstGraph=this.firstGraph.bind(this),this.setDirection=this.setDirection.bind(this),this.addSubGraph=this.addSubGraph.bind(this),this.addGlobal=this.addGlobal.bind(this),this.addConnector=this.addConnector.bind(this),this.addConnectorMapping=this.addConnectorMapping.bind(this),this.addLink=this.addLink.bind(this),this.setLink=this.setLink.bind(this),this.updateLink=this.updateLink.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.destructLink=this.destructLink.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setTooltip=this.setTooltip.bind(this),this.updateLinkInterpolate=this.updateLinkInterpolate.bind(this),this.setClickFun=this.setClickFun.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.setFrontmatterLineOffset=this.setFrontmatterLineOffset.bind(this),this.addVertexMapping=this.addVertexMapping.bind(this),this.extendVertexMapping=this.extendVertexMapping.bind(this),this.addEdgeMapping=this.addEdgeMapping.bind(this),this.addSubgraphMapping=this.addSubgraphMapping.bind(this),this.emitWarning=this.emitWarning.bind(this),this.emitError=this.emitError.bind(this),this.getDiagnostics=this.getDiagnostics.bind(this),this.lex={firstGraph:this.firstGraph.bind(this)},this.clear(),this.setGen("gen-2")}sanitizeText(i){return I1.sanitizeText(i,this.config)}sanitizeNodeLabelType(i){switch(i){case"markdown":case"string":case"text":return i;default:return"markdown"}}setDiagramId(i){this.diagramId=i}lookUpDomId(i){for(const n of this.vertices.values())if(n.id===i)return this.diagramId?`${this.diagramId}-${n.domId}`:n.domId;return this.diagramId?`${this.diagramId}-${i}`:i}addVertex(i,n,r,u,l,c,a={},h,g){if(!i||i.trim().length===0)return;let p;if(h!==void 0){let m;h.includes(`
4
4
  `)?m=h+`