@intent-hq/web 2.392.1 → 2.392.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (169) hide show
  1. package/package.json +1 -1
  2. package/web/app/immutable/chunks/{DotCIVLI.js → -xPMI1SM.js} +1 -1
  3. package/web/app/immutable/chunks/{x9IQ_8UO.js → 2ZBNrUZy.js} +1 -1
  4. package/web/app/immutable/chunks/{ByvcSsIj.js → 2bueaerM.js} +1 -1
  5. package/web/app/immutable/chunks/{AlO3r9jV.js → 4Rh5tdzC.js} +1 -1
  6. package/web/app/immutable/chunks/{CLX81MHV.js → 6_Ki4zfU.js} +1 -1
  7. package/web/app/immutable/chunks/{D_YMc8vN.js → 7n-O-xn5.js} +1 -1
  8. package/web/app/immutable/chunks/{CccfsETL.js → 8ItTOum-.js} +2 -2
  9. package/web/app/immutable/chunks/{aoX2v33V.js → 9AeivJQm.js} +4 -4
  10. package/web/app/immutable/chunks/{CngTEvgU.js → A9FjQ4ig.js} +1 -1
  11. package/web/app/immutable/chunks/{DaTwSOqs.js → B0dqY8Yd.js} +1 -1
  12. package/web/app/immutable/chunks/{KPBWxwIA.js → B26epB4C.js} +1 -1
  13. package/web/app/immutable/chunks/B3ZeLze4.js +2 -0
  14. package/web/app/immutable/chunks/{BSpgPPjp.js → B3sgdO-M.js} +1 -1
  15. package/web/app/immutable/chunks/{3rqOYBi3.js → B5OK1c9R.js} +1 -1
  16. package/web/app/immutable/chunks/{OuI4JmWC.js → B5V_Igzh.js} +1 -1
  17. package/web/app/immutable/chunks/{D0DIeAXH.js → B87xP_ZF.js} +1 -1
  18. package/web/app/immutable/chunks/{Bwa2n5jC.js → BAbB1JR3.js} +1 -1
  19. package/web/app/immutable/chunks/{B2frqTj8.js → BC2ymm4x.js} +1 -1
  20. package/web/app/immutable/chunks/{CUmvnJK5.js → BC7-67A3.js} +1 -1
  21. package/web/app/immutable/chunks/{KRACSBb9.js → BFMw_Rsu.js} +1 -1
  22. package/web/app/immutable/chunks/{B97l6Xkk.js → BH56GSiy.js} +1 -1
  23. package/web/app/immutable/chunks/{CcMCIG6E.js → BHYEUr70.js} +2 -2
  24. package/web/app/immutable/chunks/{CorT7tdR.js → BLNxuTdw.js} +1 -1
  25. package/web/app/immutable/chunks/{DQe_5JbW.js → BOnAZ0Bh.js} +1 -1
  26. package/web/app/immutable/chunks/{CiNmS1jZ.js → BQLNg--d.js} +1 -1
  27. package/web/app/immutable/chunks/{CdLJ0-dH.js → BRtw-FGJ.js} +1 -1
  28. package/web/app/immutable/chunks/{BdlwjSpf.js → BSsSTp5c.js} +1 -1
  29. package/web/app/immutable/chunks/{9AKr1UyY.js → BV3fep4W.js} +1 -1
  30. package/web/app/immutable/chunks/{C6Af0QaF.js → BWtzEUuh.js} +1 -1
  31. package/web/app/immutable/chunks/{R3fZBk-k.js → BYanH6N9.js} +1 -1
  32. package/web/app/immutable/chunks/{vJJtTADX.js → BZNRCsEn.js} +1 -1
  33. package/web/app/immutable/chunks/{b7gnFN68.js → BafkB9h2.js} +1 -1
  34. package/web/app/immutable/chunks/BeZe2Rt-.js +4 -0
  35. package/web/app/immutable/chunks/{DFNKkiho.js → Bex9L_jH.js} +4 -4
  36. package/web/app/immutable/chunks/{Dp0kLnIL.js → BezBXtqG.js} +1 -1
  37. package/web/app/immutable/chunks/{DY9w61PC.js → BhD6TCSq.js} +6 -6
  38. package/web/app/immutable/chunks/{Dvzvnzzu.js → Bhk2u-_3.js} +1 -1
  39. package/web/app/immutable/chunks/{CGJ5yTzR.js → BipAYtG2.js} +3 -3
  40. package/web/app/immutable/chunks/{i2Q0D3-m.js → BptF1xOU.js} +1 -1
  41. package/web/app/immutable/chunks/{CUiYYsIq.js → BrCVQoPE.js} +1 -1
  42. package/web/app/immutable/chunks/{CJItvMq2.js → BrLVGrLO.js} +1 -1
  43. package/web/app/immutable/chunks/{50HYkjWD.js → Bsnum5pm.js} +3 -3
  44. package/web/app/immutable/chunks/{FS0kRzLP.js → BtOGFmaT.js} +1 -1
  45. package/web/app/immutable/chunks/{z2uEgbos.js → BtmdpA7S.js} +1 -1
  46. package/web/app/immutable/chunks/{CzK_7_Jd.js → By6WkvE9.js} +1 -1
  47. package/web/app/immutable/chunks/{DmtYsVlu.js → Bz-Q0sJs.js} +2 -2
  48. package/web/app/immutable/chunks/{vq6mxGLA.js → BzZzhsx0.js} +1 -1
  49. package/web/app/immutable/chunks/{DbB491_u.js → C1UoJPr2.js} +1 -1
  50. package/web/app/immutable/chunks/{oM2TfoNE.js → C2KrJl1V.js} +1 -1
  51. package/web/app/immutable/chunks/{DTbyG794.js → C3L7kk5u.js} +1 -1
  52. package/web/app/immutable/chunks/{BJEFEyAm.js → C6O8IM8T.js} +1 -1
  53. package/web/app/immutable/chunks/{BwFe8eI9.js → C8XfkHlI.js} +1 -1
  54. package/web/app/immutable/chunks/{KvfW-q1N.js → CCMvmg57.js} +1 -1
  55. package/web/app/immutable/chunks/CDCAMh6o.js +1 -0
  56. package/web/app/immutable/chunks/{D8MIwtpL.js → CDUwgFl9.js} +1 -1
  57. package/web/app/immutable/chunks/{D_R1vNH8.js → CE7ZckmT.js} +1 -1
  58. package/web/app/immutable/chunks/{gXHlCg5O.js → CKa70XGN.js} +1 -1
  59. package/web/app/immutable/chunks/{rmHQzJ1a.js → CKzjrq__.js} +1 -1
  60. package/web/app/immutable/chunks/{DDDvNwR-.js → CN7DE5jB.js} +1 -1
  61. package/web/app/immutable/chunks/{D-j7vD5Z.js → CNKJ8_Xr.js} +1 -1
  62. package/web/app/immutable/chunks/{CPNOsHfj.js → CO-JfYA5.js} +1 -1
  63. package/web/app/immutable/chunks/{CCyGGl6b.js → CPgSaaZt.js} +1 -1
  64. package/web/app/immutable/chunks/{BVBh582U.js → CQmOm-Tm.js} +1 -1
  65. package/web/app/immutable/chunks/{DvdITStP.js → CQzFriMx.js} +1 -1
  66. package/web/app/immutable/chunks/{BlVpCoL1.js → CTGxPVh7.js} +1 -1
  67. package/web/app/immutable/chunks/{BDRM-DVo.js → CVCwKAMk.js} +1 -1
  68. package/web/app/immutable/chunks/{DNup87JQ.js → CVG625sB.js} +1 -1
  69. package/web/app/immutable/chunks/{H8hIaDaV.js → CcUDp4zq.js} +1 -1
  70. package/web/app/immutable/chunks/{r4dmBxo_.js → Ce20e-vK.js} +1 -1
  71. package/web/app/immutable/chunks/Ce2Qo9vu.js +3 -0
  72. package/web/app/immutable/chunks/{PejVYY2W.js → Cf5NbMeL.js} +3 -3
  73. package/web/app/immutable/chunks/{CY56l_5k.js → CfOrhDjV.js} +1 -1
  74. package/web/app/immutable/chunks/{DTNrtzyx.js → Cim9mWY1.js} +1 -1
  75. package/web/app/immutable/chunks/{DIxibpTv.js → Cks1DUg1.js} +1 -1
  76. package/web/app/immutable/chunks/{CDcxODgf.js → CnDbx_Wj.js} +1 -1
  77. package/web/app/immutable/chunks/{DznISJQO.js → CnDy2OA4.js} +1 -1
  78. package/web/app/immutable/chunks/{Bp6DusVC.js → Cp9hDo50.js} +1 -1
  79. package/web/app/immutable/chunks/{ciQFmiC4.js → Cs3vMbTn.js} +1 -1
  80. package/web/app/immutable/chunks/{0TbppU-W.js → Ct1r6efw.js} +2 -2
  81. package/web/app/immutable/chunks/{CpT48V2z.js → Cy5LTcPz.js} +1 -1
  82. package/web/app/immutable/chunks/{RqSv1iWX.js → CyUokemm.js} +1 -1
  83. package/web/app/immutable/chunks/{gX9ZnDRD.js → D1Tekuc4.js} +1 -1
  84. package/web/app/immutable/chunks/{pQalwNsE.js → D2Jd8tc3.js} +1 -1
  85. package/web/app/immutable/chunks/{Cdw7QKyr.js → D80ng7VB.js} +3 -3
  86. package/web/app/immutable/chunks/{CWS5g6aA.js → D9OezaF9.js} +1 -1
  87. package/web/app/immutable/chunks/{BUPWY1pO.js → DDhuJH-4.js} +1 -1
  88. package/web/app/immutable/chunks/{WWq3hijy.js → DEOVFEjx.js} +1 -1
  89. package/web/app/immutable/chunks/{Bhul7r_Y.js → DEuuzjmM.js} +1 -1
  90. package/web/app/immutable/chunks/{DaTkisKB.js → DEykPUjl.js} +1 -1
  91. package/web/app/immutable/chunks/{DdYVblGk.js → DFh2QzKR.js} +1 -1
  92. package/web/app/immutable/chunks/{BB5TUToP.js → DGMKnMeG.js} +2 -2
  93. package/web/app/immutable/chunks/{DEsM7h8K.js → DIHHBzYi.js} +2 -2
  94. package/web/app/immutable/chunks/{CcBmcC9f.js → DIUdGij-.js} +2 -2
  95. package/web/app/immutable/chunks/{BTE0066U.js → DJDA_1H4.js} +1 -1
  96. package/web/app/immutable/chunks/{B0oQ37UY.js → DQxnu3QZ.js} +1 -1
  97. package/web/app/immutable/chunks/{CEqrck_t.js → DRpk7IAR.js} +1 -1
  98. package/web/app/immutable/chunks/{a3O-Ns1M.js → DUbqvr_K.js} +1 -1
  99. package/web/app/immutable/chunks/{BPFSAjsd.js → DVSwhvvP.js} +7 -7
  100. package/web/app/immutable/chunks/{QKQvZF-2.js → DVqhJMup.js} +2 -2
  101. package/web/app/immutable/chunks/{CeHL-3WK.js → DWOcsYbU.js} +1 -1
  102. package/web/app/immutable/chunks/{DuFY1gwd.js → DWurigib.js} +4 -4
  103. package/web/app/immutable/chunks/{DTco_120.js → D__LL1n8.js} +1 -1
  104. package/web/app/immutable/chunks/{BS9LmSp_.js → DccCxKmZ.js} +1 -1
  105. package/web/app/immutable/chunks/{CSzXeH2S.js → DdpYiyRs.js} +1 -1
  106. package/web/app/immutable/chunks/{7zxUzaYz.js → DeJMgdsa.js} +1 -1
  107. package/web/app/immutable/chunks/{B9NjB9vD.js → DgzWQmDb.js} +1 -1
  108. package/web/app/immutable/chunks/{DIME5LWK.js → DimbKbDZ.js} +2 -2
  109. package/web/app/immutable/chunks/{BvByaKKp.js → DjyYYXwz.js} +1 -1
  110. package/web/app/immutable/chunks/{CRFyRwf-.js → DlbHdfKY.js} +1 -1
  111. package/web/app/immutable/chunks/{C7MFACZg.js → DqQqeuqi.js} +1 -1
  112. package/web/app/immutable/chunks/{BSMi55yC.js → DthJR85Z.js} +1 -1
  113. package/web/app/immutable/chunks/{BUF0WvAS.js → DtqJUfJC.js} +1 -1
  114. package/web/app/immutable/chunks/{DYzxLuOL.js → DvXSJM4q.js} +1 -1
  115. package/web/app/immutable/chunks/{B6wkNYPs.js → DxZIPHU6.js} +1 -1
  116. package/web/app/immutable/chunks/{Ct0fN4Lt.js → DyrDaCZi.js} +1 -1
  117. package/web/app/immutable/chunks/{D6EyZ2rd.js → Dz-57yVz.js} +1 -1
  118. package/web/app/immutable/chunks/{DL__HI6l.js → DzR2lw_C.js} +1 -1
  119. package/web/app/immutable/chunks/{DUcJILSg.js → ERz1iYnn.js} +1 -1
  120. package/web/app/immutable/chunks/{C9iwh4F-.js → Egi6fNpS.js} +1 -1
  121. package/web/app/immutable/chunks/{DdU2snxg.js → FTRClsUK.js} +1 -1
  122. package/web/app/immutable/chunks/{CBQrOO2t.js → L9YD-wcw.js} +1 -1
  123. package/web/app/immutable/chunks/{CQClkuxa.js → O8yKLCWC.js} +1 -1
  124. package/web/app/immutable/chunks/{B9ZgGXDm.js → PAEJNClQ.js} +1 -1
  125. package/web/app/immutable/chunks/{DA3tGWzX.js → PZ5MSUIU.js} +1 -1
  126. package/web/app/immutable/chunks/{DqCgFTqN.js → QnRBGtVu.js} +1 -1
  127. package/web/app/immutable/chunks/{f0WUpIfB.js → RGi81mvu.js} +1 -1
  128. package/web/app/immutable/chunks/{CA5vNvRD.js → VeOG7xIg.js} +3 -3
  129. package/web/app/immutable/chunks/XAL8NtHj.js +1 -0
  130. package/web/app/immutable/chunks/{CPav-V5t.js → YClu3XTz.js} +2 -2
  131. package/web/app/immutable/chunks/{CtzbB_EQ.js → ZspDMNEv.js} +1 -1
  132. package/web/app/immutable/chunks/{Cp4SiU7R.js → _aw8AL2s.js} +1 -1
  133. package/web/app/immutable/chunks/{CRIoGx5T.js → edaGtK2z.js} +1 -1
  134. package/web/app/immutable/chunks/{Dgvdn_ax.js → g2j4hm88.js} +1 -1
  135. package/web/app/immutable/chunks/{ZIePA90q.js → gdhW58MB.js} +3 -3
  136. package/web/app/immutable/chunks/{CPmXQBUf.js → n1INJGMs.js} +1 -1
  137. package/web/app/immutable/chunks/{BvvIG-FE.js → nUY7GyaZ.js} +1 -1
  138. package/web/app/immutable/chunks/{C9DStJW1.js → q9gf_Sso.js} +1 -1
  139. package/web/app/immutable/chunks/{CewZlXwy.js → u-Z99Ptk.js} +1 -1
  140. package/web/app/immutable/chunks/{BE3g5vcj.js → uQRHnH1Z.js} +1 -1
  141. package/web/app/immutable/chunks/{Dhs7RSq9.js → wsIl6ydR.js} +1 -1
  142. package/web/app/immutable/chunks/{C13CRqsS.js → yus24-dF.js} +1 -1
  143. package/web/app/immutable/chunks/zdzlwKoA.js +1 -0
  144. package/web/app/immutable/entry/{app.Dh0FLLBd.js → app.DBKLYfDG.js} +2 -2
  145. package/web/app/immutable/entry/start.DyzI50m5.js +1 -0
  146. package/web/app/immutable/nodes/{0.BlcS-Hyh.js → 0.Dr_KMFP9.js} +1 -1
  147. package/web/app/immutable/nodes/{1.BMTchPFq.js → 1.B4UC5y6C.js} +1 -1
  148. package/web/app/immutable/nodes/{10.CfDNhRgU.js → 10.D-SXaVii.js} +1 -1
  149. package/web/app/immutable/nodes/{11.CxSRkGHD.js → 11.CD0ZMPB_.js} +1 -1
  150. package/web/app/immutable/nodes/{15.DCpm4k7K.js → 15.CWhAy0IL.js} +1 -1
  151. package/web/app/immutable/nodes/{19.C2T81__z.js → 19.Cl4NIDR3.js} +2 -2
  152. package/web/app/immutable/nodes/{2.1iJIAnw5.js → 2.DgYKd6eT.js} +1 -1
  153. package/web/app/immutable/nodes/{20.BHRuLw4-.js → 20.gu-VpWFh.js} +1 -1
  154. package/web/app/immutable/nodes/{3.BDDby9Gq.js → 3.Cz3D2Kq7.js} +1 -1
  155. package/web/app/immutable/nodes/{4.utfN0vdd.js → 4.CjaUjxEb.js} +1 -1
  156. package/web/app/immutable/nodes/{5.Z6w8za6J.js → 5.COJH7IAv.js} +1 -1
  157. package/web/app/immutable/nodes/{6.w_k_ibWb.js → 6.Da5DOHiE.js} +1 -1
  158. package/web/app/immutable/nodes/{7.I-q-I1bs.js → 7.dcDATK47.js} +1 -1
  159. package/web/app/immutable/nodes/{8.BgjULPKU.js → 8.C2qio8n9.js} +1 -1
  160. package/web/app/immutable/nodes/{9.DOkmR0cl.js → 9.CjfzK0IK.js} +2 -2
  161. package/web/app/version.json +1 -1
  162. package/web/index.html +9 -9
  163. package/web/app/immutable/chunks/BuM8LV7z.js +0 -4
  164. package/web/app/immutable/chunks/DejjV5ft.js +0 -1
  165. package/web/app/immutable/chunks/DivmpPFQ.js +0 -1
  166. package/web/app/immutable/chunks/DlnCrS3y.js +0 -2
  167. package/web/app/immutable/chunks/MFTfhUYi.js +0 -1
  168. package/web/app/immutable/chunks/Xr-aTNRN.js +0 -3
  169. package/web/app/immutable/entry/start.IMZH36aM.js +0 -1
@@ -1,4 +1,4 @@
1
- import{s as xe}from"./CRIoGx5T.js";import{p as be}from"./CSzXeH2S.js";import{b as C,a6 as Ce,W as ae,q as ee,aX as we,B as Te,ay as te,b8 as B,aW as Z,a_ as Le,V as $e,b0 as Ae,Y as Fe,U as _e,aZ as Ne,O as Me,ao as ke,r as Ve}from"./DFNKkiho.js";import{p as ze}from"./BBfR26V0.js";import{f as O,o as Q}from"./DYzxLuOL.js";function De(t){var a=0,l=t.children,n=l&&l.length;if(!n)a=1;else for(;--n>=0;)a+=l[n].value;t.value=a}function Pe(){return this.eachAfter(De)}function Be(t,a){let l=-1;for(const n of this)t.call(a,n,++l,this);return this}function We(t,a){for(var l=this,n=[l],s,r,h=-1;l=n.pop();)if(t.call(a,l,++h,this),s=l.children)for(r=s.length-1;r>=0;--r)n.push(s[r]);return this}function Ee(t,a){for(var l=this,n=[l],s=[],r,h,d,f=-1;l=n.pop();)if(s.push(l),r=l.children)for(h=0,d=r.length;h<d;++h)n.push(r[h]);for(;l=s.pop();)t.call(a,l,++f,this);return this}function Re(t,a){let l=-1;for(const n of this)if(t.call(a,n,++l,this))return n}function He(t){return this.eachAfter(function(a){for(var l=+t(a.data)||0,n=a.children,s=n&&n.length;--s>=0;)l+=n[s].value;a.value=l})}function Ie(t){return this.eachBefore(function(a){a.children&&a.children.sort(t)})}function Oe(t){for(var a=this,l=qe(a,t),n=[a];a!==l;)a=a.parent,n.push(a);for(var s=n.length;t!==l;)n.splice(s,0,t),t=t.parent;return n}function qe(t,a){if(t===a)return t;var l=t.ancestors(),n=a.ancestors(),s=null;for(t=l.pop(),a=n.pop();t===a;)s=t,t=l.pop(),a=n.pop();return s}function Ge(){for(var t=this,a=[t];t=t.parent;)a.push(t);return a}function Xe(){return Array.from(this)}function Ye(){var t=[];return this.eachBefore(function(a){a.children||t.push(a)}),t}function je(){var t=this,a=[];return t.each(function(l){l!==t&&a.push({source:l.parent,target:l})}),a}function*Ue(){var t=this,a,l=[t],n,s,r;do for(a=l.reverse(),l=[];t=a.pop();)if(yield t,n=t.children)for(s=0,r=n.length;s<r;++s)l.push(n[s]);while(l.length)}function ne(t,a){t instanceof Map?(t=[void 0,t],a===void 0&&(a=Ke)):a===void 0&&(a=Je);for(var l=new Y(t),n,s=[l],r,h,d,f;n=s.pop();)if((h=a(n.data))&&(f=(h=Array.from(h)).length))for(n.children=h,d=f-1;d>=0;--d)s.push(r=h[d]=new Y(h[d])),r.parent=n,r.depth=n.depth+1;return l.eachBefore(et)}function Ze(){return ne(this).eachBefore(Qe)}function Je(t){return t.children}function Ke(t){return Array.isArray(t)?t[1]:null}function Qe(t){t.data.value!==void 0&&(t.value=t.data.value),t.data=t.data.data}function et(t){var a=0;do t.height=a;while((t=t.parent)&&t.height<++a)}function Y(t){this.data=t,this.depth=this.height=0,this.parent=null}Y.prototype=ne.prototype={constructor:Y,count:Pe,each:Be,eachAfter:Ee,eachBefore:We,find:Re,sum:He,sort:Ie,path:Oe,ancestors:Ge,descendants:Xe,leaves:Ye,links:je,copy:Ze,[Symbol.iterator]:Ue};function tt(t){if(typeof t!="function")throw new Error;return t}function q(){return 0}function G(t){return function(){return t}}function at(t){t.x0=Math.round(t.x0),t.y0=Math.round(t.y0),t.x1=Math.round(t.x1),t.y1=Math.round(t.y1)}function oe(t,a,l,n,s){for(var r=t.children,h,d=-1,f=r.length,o=t.value&&(n-a)/t.value;++d<f;)h=r[d],h.y0=l,h.y1=s,h.x0=a,h.x1=a+=h.value*o}Object.create(Y.prototype);function ce(t,a,l,n,s){for(var r=t.children,h,d=-1,f=r.length,o=t.value&&(s-l)/t.value;++d<f;)h=r[d],h.x0=a,h.x1=n,h.y0=l,h.y1=l+=h.value*o}var he=(1+Math.sqrt(5))/2;function de(t,a,l,n,s,r){for(var h=[],d=a.children,f,o,u=0,S=0,i=d.length,v,x,g=a.value,p,b,_,$,z,R,N;u<i;){v=s-l,x=r-n;do p=d[S++].value;while(!p&&S<i);for(b=_=p,R=Math.max(x/v,v/x)/(g*t),N=p*p*R,z=Math.max(_/N,N/b);S<i;++S){if(p+=o=d[S].value,o<b&&(b=o),o>_&&(_=o),N=p*p*R,$=Math.max(_/N,N/b),$>z){p-=o;break}z=$}h.push(f={value:p,dice:v<x,children:d.slice(u,S)}),f.dice?oe(f,l,n,s,g?n+=x*p/g:r):ce(f,l,n,g?l+=v*p/g:s,r),g-=p,u=S}return h}var nt=(function t(a){function l(n,s,r,h,d){de(a,n,s,r,h,d)}return l.ratio=function(n){return t((n=+n)>1?n:1)},l})(he);function lt(){var t=nt,a=!1,l=1,n=1,s=[0],r=q,h=q,d=q,f=q,o=q;function u(i){return i.x0=i.y0=0,i.x1=l,i.y1=n,i.eachBefore(S),s=[0],a&&i.eachBefore(at),i}function S(i){var v=s[i.depth],x=i.x0+v,g=i.y0+v,p=i.x1-v,b=i.y1-v;p<x&&(x=p=(x+p)/2),b<g&&(g=b=(g+b)/2),i.x0=x,i.y0=g,i.x1=p,i.y1=b,i.children&&(v=s[i.depth+1]=r(i)/2,x+=o(i)-v,g+=h(i)-v,p-=d(i)-v,b-=f(i)-v,p<x&&(x=p=(x+p)/2),b<g&&(g=b=(g+b)/2),t(i,x,g,p,b))}return u.round=function(i){return arguments.length?(a=!!i,u):a},u.size=function(i){return arguments.length?(l=+i[0],n=+i[1],u):[l,n]},u.tile=function(i){return arguments.length?(t=tt(i),u):t},u.padding=function(i){return arguments.length?u.paddingInner(i).paddingOuter(i):u.paddingInner()},u.paddingInner=function(i){return arguments.length?(r=typeof i=="function"?i:G(+i),u):r},u.paddingOuter=function(i){return arguments.length?u.paddingTop(i).paddingRight(i).paddingBottom(i).paddingLeft(i):u.paddingTop()},u.paddingTop=function(i){return arguments.length?(h=typeof i=="function"?i:G(+i),u):h},u.paddingRight=function(i){return arguments.length?(d=typeof i=="function"?i:G(+i),u):d},u.paddingBottom=function(i){return arguments.length?(f=typeof i=="function"?i:G(+i),u):f},u.paddingLeft=function(i){return arguments.length?(o=typeof i=="function"?i:G(+i),u):o},u}(function t(a){function l(n,s,r,h,d){if((f=n._squarify)&&f.ratio===a)for(var f,o,u,S,i=-1,v,x=f.length,g=n.value;++i<x;){for(o=f[i],u=o.children,S=o.value=0,v=u.length;S<v;++S)o.value+=u[S].value;o.dice?oe(o,s,r,h,g?r+=(d-r)*o.value/g:d):ce(o,s,r,g?s+=(h-s)*o.value/g:h,d),g-=o.value}else n._squarify=f=de(a,n,s,r,h,d),f.ratio=a}return l.ratio=function(n){return t((n=+n)>1?n:1)},l})(he);var E,ue=(E=class{constructor(){this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.setAccTitle=Le,this.getAccTitle=$e,this.setDiagramTitle=Ae,this.getDiagramTitle=Fe,this.getAccDescription=_e,this.setAccDescription=Ne}getNodes(){return this.nodes}getConfig(){const a=Me,l=ae();return ee({...a.treemap,...l.treemap??{}})}addNode(a,l){this.nodes.push(a),this.levels.set(a,l),l===0&&(this.outerNodes.push(a),this.root??=a)}getRoot(){return{name:"",children:this.outerNodes}}addClass(a,l){const n=this.classes.get(a)??{id:a,styles:[],textStyles:[]},s=l.replace(/\\,/g,"§§§").replace(/,/g,";").replace(/§§§/g,",").split(";");s&&s.forEach(r=>{ke(r)&&(n?.textStyles?n.textStyles.push(r):n.textStyles=[r]),n?.styles?n.styles.push(r):n.styles=[r]}),this.classes.set(a,n)}getClasses(){return this.classes}getStylesForClass(a){return this.classes.get(a)?.styles??[]}clear(){Ve(),this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.root=void 0}},C(E,"TreeMapDB"),E);function pe(t){if(!t.length)return[];const a=[],l=[];return t.forEach(n=>{const s={name:n.name,children:n.type==="Leaf"?void 0:[]};for(s.classSelector=n?.classSelector,n?.cssCompiledStyles&&(s.cssCompiledStyles=n.cssCompiledStyles),n.type==="Leaf"&&n.value!==void 0&&(s.value=n.value);l.length>0&&l[l.length-1].level>=n.level;)l.pop();if(l.length===0)a.push(s);else{const r=l[l.length-1].node;r.children?r.children.push(s):r.children=[s]}n.type!=="Leaf"&&l.push({node:s,level:n.level})}),a}C(pe,"buildHierarchy");var st=C((t,a)=>{be(t,a);const l=[];for(const r of t.TreemapRows??[])r.$type==="ClassDefStatement"&&a.addClass(r.className??"",r.styleText??"");for(const r of t.TreemapRows??[]){const h=r.item;if(!h)continue;const d=r.indent?parseInt(r.indent):0,f=rt(h),o=h.classSelector?a.getStylesForClass(h.classSelector):[],u=o.length>0?o:void 0,S={level:d,name:f,type:h.$type,value:h.value,classSelector:h.classSelector,cssCompiledStyles:u};l.push(S)}const n=pe(l),s=C((r,h)=>{for(const d of r)a.addNode(d,h),d.children&&d.children.length>0&&s(d.children,h+1)},"addNodesRecursively");s(n,0)},"populate"),rt=C(t=>t.name?String(t.name):"","getItemName"),fe={parser:{yy:void 0},parse:C(async t=>{try{const l=await ze("treemap",t);te.debug("Treemap AST:",l);const n=fe.parser?.yy;if(!(n instanceof ue))throw new Error("parser.parser?.yy was not a TreemapDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");st(l,n)}catch(a){throw te.error("Error parsing treemap:",a),a}},"parse")},it=10,W=10,X=25,ot=C((t,a,l,n)=>{const s=n.db,r=s.getConfig(),h=r.padding??it,d=s.getDiagramTitle(),f=s.getRoot(),{themeVariables:o}=ae();if(!f)return;const u=d?30:0,S=we(a),i=r.nodeWidth?r.nodeWidth*W:960,v=r.nodeHeight?r.nodeHeight*W:500,x=i,g=v+u;S.attr("viewBox",`0 0 ${x} ${g}`),Te(S,g,x,r.useMaxWidth);let p;try{const e=r.valueFormat||",";if(e==="$0,0")p=C(c=>"$"+O(",")(c),"valueFormat");else if(e.startsWith("$")&&e.includes(",")){const c=/\.\d+/.exec(e),m=c?c[0]:"";p=C(w=>"$"+O(","+m)(w),"valueFormat")}else if(e.startsWith("$")){const c=e.substring(1);p=C(m=>"$"+O(c||"")(m),"valueFormat")}else p=O(e)}catch(e){te.error("Error creating format function:",e),p=O(",")}const b=Q().range(["transparent",o.cScale0,o.cScale1,o.cScale2,o.cScale3,o.cScale4,o.cScale5,o.cScale6,o.cScale7,o.cScale8,o.cScale9,o.cScale10,o.cScale11]),_=Q().range(["transparent",o.cScalePeer0,o.cScalePeer1,o.cScalePeer2,o.cScalePeer3,o.cScalePeer4,o.cScalePeer5,o.cScalePeer6,o.cScalePeer7,o.cScalePeer8,o.cScalePeer9,o.cScalePeer10,o.cScalePeer11]),$=Q().range([o.cScaleLabel0,o.cScaleLabel1,o.cScaleLabel2,o.cScaleLabel3,o.cScaleLabel4,o.cScaleLabel5,o.cScaleLabel6,o.cScaleLabel7,o.cScaleLabel8,o.cScaleLabel9,o.cScaleLabel10,o.cScaleLabel11]);d&&S.append("text").attr("x",x/2).attr("y",u/2).attr("class","treemapTitle").attr("text-anchor","middle").attr("dominant-baseline","middle").text(d);const z=S.append("g").attr("transform",`translate(0, ${u})`).attr("class","treemapContainer"),R=ne(f).sum(e=>e.value??0).sort((e,c)=>(c.value??0)-(e.value??0)),le=lt().size([i,v]).paddingTop(e=>e.children&&e.children.length>0?X+W:0).paddingInner(h).paddingLeft(e=>e.children&&e.children.length>0?W:0).paddingRight(e=>e.children&&e.children.length>0?W:0).paddingBottom(e=>e.children&&e.children.length>0?W:0).round(!0)(R),me=le.descendants().filter(e=>e.children&&e.children.length>0),H=z.selectAll(".treemapSection").data(me).enter().append("g").attr("class","treemapSection").attr("transform",e=>`translate(${e.x0},${e.y0})`);H.append("rect").attr("width",e=>e.x1-e.x0).attr("height",X).attr("class","treemapSectionHeader").attr("fill","none").attr("fill-opacity",.6).attr("stroke-width",.6).attr("style",e=>e.depth===0?"display: none;":""),H.append("clipPath").attr("id",(e,c)=>`clip-section-${a}-${c}`).append("rect").attr("width",e=>Math.max(0,e.x1-e.x0-12)).attr("height",X),H.append("rect").attr("width",e=>e.x1-e.x0).attr("height",e=>e.y1-e.y0).attr("class",(e,c)=>`treemapSection section${c}`).attr("fill",e=>b(e.data.name)).attr("fill-opacity",.6).attr("stroke",e=>_(e.data.name)).attr("stroke-width",2).attr("stroke-opacity",.4).attr("style",e=>{if(e.depth===0)return"display: none;";const c=B({cssCompiledStyles:e.data.cssCompiledStyles});return c.nodeStyles+";"+c.borderStyles.join(";")}),H.append("text").attr("class","treemapSectionLabel").attr("x",6).attr("y",X/2).attr("dominant-baseline","middle").text(e=>e.depth===0?"":e.data.name).attr("font-weight","bold").attr("clip-path",(e,c)=>`url(#clip-section-${a}-${c})`).attr("style",e=>{if(e.depth===0)return"display: none;";const c="dominant-baseline: middle; font-size: 12px; fill:"+$(e.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",m=B({cssCompiledStyles:e.data.cssCompiledStyles});return c+m.labelStyles.replace("color:","fill:")}).each(function(e){if(e.depth===0)return;const c=Z(this),m=e.data.name;c.text(m);const w=e.x1-e.x0,L=6;let T;r.showValues!==!1&&e.value?T=w-10-30-10-L:T=w-L-6;const y=Math.max(15,T),M=c.node();if(M.getComputedTextLength()>y){let V=m;for(;V.length>0;){if(V=m.substring(0,V.length-1),V.length===0){c.text("..."),M.getComputedTextLength()>y&&c.text("");break}if(c.text(V+"..."),M.getComputedTextLength()<=y)break}}}),r.showValues!==!1&&H.append("text").attr("class","treemapSectionValue").attr("x",e=>e.x1-e.x0-10).attr("y",X/2).attr("text-anchor","end").attr("dominant-baseline","middle").text(e=>e.value?p(e.value):"").attr("font-style","italic").attr("style",e=>{if(e.depth===0)return"display: none;";const c="text-anchor: end; dominant-baseline: middle; font-size: 10px; fill:"+$(e.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",m=B({cssCompiledStyles:e.data.cssCompiledStyles});return c+m.labelStyles.replace("color:","fill:")});const se=le.leaves(),A=se.length>20,ge=A?16:38,j=A?14:28,D=A?4:8,I=A?4:6,J=A?2:4,re=A?8:10,K=A?1:2,U=z.selectAll(".treemapLeafGroup").data(se).enter().append("g").attr("class",(e,c)=>`treemapNode treemapLeafGroup leaf${c}${e.data.classSelector?` ${e.data.classSelector}`:""}x`).attr("transform",e=>`translate(${e.x0},${e.y0})`);U.append("rect").attr("width",e=>e.x1-e.x0).attr("height",e=>e.y1-e.y0).attr("class","treemapLeaf").attr("fill",e=>e.parent?b(e.parent.data.name):b(e.data.name)).attr("style",e=>B({cssCompiledStyles:e.data.cssCompiledStyles}).nodeStyles).attr("fill-opacity",.3).attr("stroke",e=>e.parent?b(e.parent.data.name):b(e.data.name)).attr("stroke-width",3),U.append("clipPath").attr("id",(e,c)=>`clip-${a}-${c}`).append("rect").attr("width",e=>Math.max(0,e.x1-e.x0-4)).attr("height",e=>Math.max(0,e.y1-e.y0-4)),U.append("text").attr("class","treemapLabel").attr("x",e=>(e.x1-e.x0)/2).attr("y",e=>(e.y1-e.y0)/2).attr("style",e=>{const c=`text-anchor: middle; dominant-baseline: middle; font-size: ${ge}px;fill:`+$(e.data.name)+";",m=B({cssCompiledStyles:e.data.cssCompiledStyles});return c+m.labelStyles.replace("color:","fill:")}).attr("clip-path",(e,c)=>`url(#clip-${a}-${c})`).text(e=>e.data.name).each(function(e){const c=Z(this),m=e.x1-e.x0,w=e.y1-e.y0,L=c.node(),T=m-2*J,P=w-2*J;if(T<re||P<re){c.style("display","none");return}let y=parseInt(c.style("font-size"),10);const M=.6;for(;L.getComputedTextLength()>T&&y>D;)y--,c.style("font-size",`${y}px`);let F=Math.max(I,Math.min(j,Math.round(y*M))),k=y+K+F;for(;k>P&&y>D&&(y--,F=Math.max(I,Math.min(j,Math.round(y*M))),!(F<I&&y===D));)c.style("font-size",`${y}px`),k=y+K+F;c.style("font-size",`${y}px`),A?(y<D||P<D)&&c.style("display","none"):(L.getComputedTextLength()>T||y<D||P<y)&&c.style("display","none")}),r.showValues!==!1&&U.append("text").attr("class","treemapValue").attr("x",c=>(c.x1-c.x0)/2).attr("y",function(c){return(c.y1-c.y0)/2}).attr("style",c=>{const m=`text-anchor: middle; dominant-baseline: hanging; font-size: ${j}px;fill:`+$(c.data.name)+";",w=B({cssCompiledStyles:c.data.cssCompiledStyles});return m+w.labelStyles.replace("color:","fill:")}).attr("clip-path",(c,m)=>`url(#clip-${a}-${m})`).text(c=>c.value?p(c.value):"").each(function(c){const m=Z(this),w=this.parentNode;if(!w){m.style("display","none");return}const L=Z(w).select(".treemapLabel");if(L.empty()||L.style("display")==="none"){m.style("display","none");return}const T=parseFloat(L.style("font-size")),y=Math.max(I,Math.min(j,Math.round(T*.6)));m.style("font-size",`${y}px`);const F=(c.y1-c.y0)/2+T/2+K;m.attr("y",F);const k=c.x1-c.x0,ie=c.y1-c.y0-4,ve=k-2*J;m.node().getComputedTextLength()>ve||F+y>ie||y<I?m.style("display","none"):m.style("display",null)});const ye=r.diagramPadding??8;xe(S,ye,"flowchart",r?.useMaxWidth||!1)},"draw"),ct=C(function(t,a){return a.db.getClasses()},"getClasses"),ht={draw:ot,getClasses:ct},dt={sectionStrokeColor:"black",sectionStrokeWidth:"1",sectionFillColor:"#efefef",leafStrokeColor:"black",leafStrokeWidth:"1",leafFillColor:"#efefef",labelFontSize:"12px",valueFontSize:"10px",titleFontSize:"14px"},ut=C(({treemap:t}={})=>{const a=Ce(),l=ae(),n=ee(a,l.themeVariables),s=ee(dt,t),r=s.titleColor??n.titleColor,h=s.labelColor??n.textColor,d=s.valueColor??n.textColor;return`
1
+ import{s as xe}from"./edaGtK2z.js";import{p as be}from"./DdpYiyRs.js";import{b as C,a6 as Ce,W as ae,q as ee,aX as we,B as Te,ay as te,b8 as B,aW as Z,a_ as Le,V as $e,b0 as Ae,Y as Fe,U as _e,aZ as Ne,O as Me,ao as ke,r as Ve}from"./Bex9L_jH.js";import{p as ze}from"./BBfR26V0.js";import{f as O,o as Q}from"./DvXSJM4q.js";function De(t){var a=0,l=t.children,n=l&&l.length;if(!n)a=1;else for(;--n>=0;)a+=l[n].value;t.value=a}function Pe(){return this.eachAfter(De)}function Be(t,a){let l=-1;for(const n of this)t.call(a,n,++l,this);return this}function We(t,a){for(var l=this,n=[l],s,r,h=-1;l=n.pop();)if(t.call(a,l,++h,this),s=l.children)for(r=s.length-1;r>=0;--r)n.push(s[r]);return this}function Ee(t,a){for(var l=this,n=[l],s=[],r,h,d,f=-1;l=n.pop();)if(s.push(l),r=l.children)for(h=0,d=r.length;h<d;++h)n.push(r[h]);for(;l=s.pop();)t.call(a,l,++f,this);return this}function Re(t,a){let l=-1;for(const n of this)if(t.call(a,n,++l,this))return n}function He(t){return this.eachAfter(function(a){for(var l=+t(a.data)||0,n=a.children,s=n&&n.length;--s>=0;)l+=n[s].value;a.value=l})}function Ie(t){return this.eachBefore(function(a){a.children&&a.children.sort(t)})}function Oe(t){for(var a=this,l=qe(a,t),n=[a];a!==l;)a=a.parent,n.push(a);for(var s=n.length;t!==l;)n.splice(s,0,t),t=t.parent;return n}function qe(t,a){if(t===a)return t;var l=t.ancestors(),n=a.ancestors(),s=null;for(t=l.pop(),a=n.pop();t===a;)s=t,t=l.pop(),a=n.pop();return s}function Ge(){for(var t=this,a=[t];t=t.parent;)a.push(t);return a}function Xe(){return Array.from(this)}function Ye(){var t=[];return this.eachBefore(function(a){a.children||t.push(a)}),t}function je(){var t=this,a=[];return t.each(function(l){l!==t&&a.push({source:l.parent,target:l})}),a}function*Ue(){var t=this,a,l=[t],n,s,r;do for(a=l.reverse(),l=[];t=a.pop();)if(yield t,n=t.children)for(s=0,r=n.length;s<r;++s)l.push(n[s]);while(l.length)}function ne(t,a){t instanceof Map?(t=[void 0,t],a===void 0&&(a=Ke)):a===void 0&&(a=Je);for(var l=new Y(t),n,s=[l],r,h,d,f;n=s.pop();)if((h=a(n.data))&&(f=(h=Array.from(h)).length))for(n.children=h,d=f-1;d>=0;--d)s.push(r=h[d]=new Y(h[d])),r.parent=n,r.depth=n.depth+1;return l.eachBefore(et)}function Ze(){return ne(this).eachBefore(Qe)}function Je(t){return t.children}function Ke(t){return Array.isArray(t)?t[1]:null}function Qe(t){t.data.value!==void 0&&(t.value=t.data.value),t.data=t.data.data}function et(t){var a=0;do t.height=a;while((t=t.parent)&&t.height<++a)}function Y(t){this.data=t,this.depth=this.height=0,this.parent=null}Y.prototype=ne.prototype={constructor:Y,count:Pe,each:Be,eachAfter:Ee,eachBefore:We,find:Re,sum:He,sort:Ie,path:Oe,ancestors:Ge,descendants:Xe,leaves:Ye,links:je,copy:Ze,[Symbol.iterator]:Ue};function tt(t){if(typeof t!="function")throw new Error;return t}function q(){return 0}function G(t){return function(){return t}}function at(t){t.x0=Math.round(t.x0),t.y0=Math.round(t.y0),t.x1=Math.round(t.x1),t.y1=Math.round(t.y1)}function oe(t,a,l,n,s){for(var r=t.children,h,d=-1,f=r.length,o=t.value&&(n-a)/t.value;++d<f;)h=r[d],h.y0=l,h.y1=s,h.x0=a,h.x1=a+=h.value*o}Object.create(Y.prototype);function ce(t,a,l,n,s){for(var r=t.children,h,d=-1,f=r.length,o=t.value&&(s-l)/t.value;++d<f;)h=r[d],h.x0=a,h.x1=n,h.y0=l,h.y1=l+=h.value*o}var he=(1+Math.sqrt(5))/2;function de(t,a,l,n,s,r){for(var h=[],d=a.children,f,o,u=0,S=0,i=d.length,v,x,g=a.value,p,b,_,$,z,R,N;u<i;){v=s-l,x=r-n;do p=d[S++].value;while(!p&&S<i);for(b=_=p,R=Math.max(x/v,v/x)/(g*t),N=p*p*R,z=Math.max(_/N,N/b);S<i;++S){if(p+=o=d[S].value,o<b&&(b=o),o>_&&(_=o),N=p*p*R,$=Math.max(_/N,N/b),$>z){p-=o;break}z=$}h.push(f={value:p,dice:v<x,children:d.slice(u,S)}),f.dice?oe(f,l,n,s,g?n+=x*p/g:r):ce(f,l,n,g?l+=v*p/g:s,r),g-=p,u=S}return h}var nt=(function t(a){function l(n,s,r,h,d){de(a,n,s,r,h,d)}return l.ratio=function(n){return t((n=+n)>1?n:1)},l})(he);function lt(){var t=nt,a=!1,l=1,n=1,s=[0],r=q,h=q,d=q,f=q,o=q;function u(i){return i.x0=i.y0=0,i.x1=l,i.y1=n,i.eachBefore(S),s=[0],a&&i.eachBefore(at),i}function S(i){var v=s[i.depth],x=i.x0+v,g=i.y0+v,p=i.x1-v,b=i.y1-v;p<x&&(x=p=(x+p)/2),b<g&&(g=b=(g+b)/2),i.x0=x,i.y0=g,i.x1=p,i.y1=b,i.children&&(v=s[i.depth+1]=r(i)/2,x+=o(i)-v,g+=h(i)-v,p-=d(i)-v,b-=f(i)-v,p<x&&(x=p=(x+p)/2),b<g&&(g=b=(g+b)/2),t(i,x,g,p,b))}return u.round=function(i){return arguments.length?(a=!!i,u):a},u.size=function(i){return arguments.length?(l=+i[0],n=+i[1],u):[l,n]},u.tile=function(i){return arguments.length?(t=tt(i),u):t},u.padding=function(i){return arguments.length?u.paddingInner(i).paddingOuter(i):u.paddingInner()},u.paddingInner=function(i){return arguments.length?(r=typeof i=="function"?i:G(+i),u):r},u.paddingOuter=function(i){return arguments.length?u.paddingTop(i).paddingRight(i).paddingBottom(i).paddingLeft(i):u.paddingTop()},u.paddingTop=function(i){return arguments.length?(h=typeof i=="function"?i:G(+i),u):h},u.paddingRight=function(i){return arguments.length?(d=typeof i=="function"?i:G(+i),u):d},u.paddingBottom=function(i){return arguments.length?(f=typeof i=="function"?i:G(+i),u):f},u.paddingLeft=function(i){return arguments.length?(o=typeof i=="function"?i:G(+i),u):o},u}(function t(a){function l(n,s,r,h,d){if((f=n._squarify)&&f.ratio===a)for(var f,o,u,S,i=-1,v,x=f.length,g=n.value;++i<x;){for(o=f[i],u=o.children,S=o.value=0,v=u.length;S<v;++S)o.value+=u[S].value;o.dice?oe(o,s,r,h,g?r+=(d-r)*o.value/g:d):ce(o,s,r,g?s+=(h-s)*o.value/g:h,d),g-=o.value}else n._squarify=f=de(a,n,s,r,h,d),f.ratio=a}return l.ratio=function(n){return t((n=+n)>1?n:1)},l})(he);var E,ue=(E=class{constructor(){this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.setAccTitle=Le,this.getAccTitle=$e,this.setDiagramTitle=Ae,this.getDiagramTitle=Fe,this.getAccDescription=_e,this.setAccDescription=Ne}getNodes(){return this.nodes}getConfig(){const a=Me,l=ae();return ee({...a.treemap,...l.treemap??{}})}addNode(a,l){this.nodes.push(a),this.levels.set(a,l),l===0&&(this.outerNodes.push(a),this.root??=a)}getRoot(){return{name:"",children:this.outerNodes}}addClass(a,l){const n=this.classes.get(a)??{id:a,styles:[],textStyles:[]},s=l.replace(/\\,/g,"§§§").replace(/,/g,";").replace(/§§§/g,",").split(";");s&&s.forEach(r=>{ke(r)&&(n?.textStyles?n.textStyles.push(r):n.textStyles=[r]),n?.styles?n.styles.push(r):n.styles=[r]}),this.classes.set(a,n)}getClasses(){return this.classes}getStylesForClass(a){return this.classes.get(a)?.styles??[]}clear(){Ve(),this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.root=void 0}},C(E,"TreeMapDB"),E);function pe(t){if(!t.length)return[];const a=[],l=[];return t.forEach(n=>{const s={name:n.name,children:n.type==="Leaf"?void 0:[]};for(s.classSelector=n?.classSelector,n?.cssCompiledStyles&&(s.cssCompiledStyles=n.cssCompiledStyles),n.type==="Leaf"&&n.value!==void 0&&(s.value=n.value);l.length>0&&l[l.length-1].level>=n.level;)l.pop();if(l.length===0)a.push(s);else{const r=l[l.length-1].node;r.children?r.children.push(s):r.children=[s]}n.type!=="Leaf"&&l.push({node:s,level:n.level})}),a}C(pe,"buildHierarchy");var st=C((t,a)=>{be(t,a);const l=[];for(const r of t.TreemapRows??[])r.$type==="ClassDefStatement"&&a.addClass(r.className??"",r.styleText??"");for(const r of t.TreemapRows??[]){const h=r.item;if(!h)continue;const d=r.indent?parseInt(r.indent):0,f=rt(h),o=h.classSelector?a.getStylesForClass(h.classSelector):[],u=o.length>0?o:void 0,S={level:d,name:f,type:h.$type,value:h.value,classSelector:h.classSelector,cssCompiledStyles:u};l.push(S)}const n=pe(l),s=C((r,h)=>{for(const d of r)a.addNode(d,h),d.children&&d.children.length>0&&s(d.children,h+1)},"addNodesRecursively");s(n,0)},"populate"),rt=C(t=>t.name?String(t.name):"","getItemName"),fe={parser:{yy:void 0},parse:C(async t=>{try{const l=await ze("treemap",t);te.debug("Treemap AST:",l);const n=fe.parser?.yy;if(!(n instanceof ue))throw new Error("parser.parser?.yy was not a TreemapDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");st(l,n)}catch(a){throw te.error("Error parsing treemap:",a),a}},"parse")},it=10,W=10,X=25,ot=C((t,a,l,n)=>{const s=n.db,r=s.getConfig(),h=r.padding??it,d=s.getDiagramTitle(),f=s.getRoot(),{themeVariables:o}=ae();if(!f)return;const u=d?30:0,S=we(a),i=r.nodeWidth?r.nodeWidth*W:960,v=r.nodeHeight?r.nodeHeight*W:500,x=i,g=v+u;S.attr("viewBox",`0 0 ${x} ${g}`),Te(S,g,x,r.useMaxWidth);let p;try{const e=r.valueFormat||",";if(e==="$0,0")p=C(c=>"$"+O(",")(c),"valueFormat");else if(e.startsWith("$")&&e.includes(",")){const c=/\.\d+/.exec(e),m=c?c[0]:"";p=C(w=>"$"+O(","+m)(w),"valueFormat")}else if(e.startsWith("$")){const c=e.substring(1);p=C(m=>"$"+O(c||"")(m),"valueFormat")}else p=O(e)}catch(e){te.error("Error creating format function:",e),p=O(",")}const b=Q().range(["transparent",o.cScale0,o.cScale1,o.cScale2,o.cScale3,o.cScale4,o.cScale5,o.cScale6,o.cScale7,o.cScale8,o.cScale9,o.cScale10,o.cScale11]),_=Q().range(["transparent",o.cScalePeer0,o.cScalePeer1,o.cScalePeer2,o.cScalePeer3,o.cScalePeer4,o.cScalePeer5,o.cScalePeer6,o.cScalePeer7,o.cScalePeer8,o.cScalePeer9,o.cScalePeer10,o.cScalePeer11]),$=Q().range([o.cScaleLabel0,o.cScaleLabel1,o.cScaleLabel2,o.cScaleLabel3,o.cScaleLabel4,o.cScaleLabel5,o.cScaleLabel6,o.cScaleLabel7,o.cScaleLabel8,o.cScaleLabel9,o.cScaleLabel10,o.cScaleLabel11]);d&&S.append("text").attr("x",x/2).attr("y",u/2).attr("class","treemapTitle").attr("text-anchor","middle").attr("dominant-baseline","middle").text(d);const z=S.append("g").attr("transform",`translate(0, ${u})`).attr("class","treemapContainer"),R=ne(f).sum(e=>e.value??0).sort((e,c)=>(c.value??0)-(e.value??0)),le=lt().size([i,v]).paddingTop(e=>e.children&&e.children.length>0?X+W:0).paddingInner(h).paddingLeft(e=>e.children&&e.children.length>0?W:0).paddingRight(e=>e.children&&e.children.length>0?W:0).paddingBottom(e=>e.children&&e.children.length>0?W:0).round(!0)(R),me=le.descendants().filter(e=>e.children&&e.children.length>0),H=z.selectAll(".treemapSection").data(me).enter().append("g").attr("class","treemapSection").attr("transform",e=>`translate(${e.x0},${e.y0})`);H.append("rect").attr("width",e=>e.x1-e.x0).attr("height",X).attr("class","treemapSectionHeader").attr("fill","none").attr("fill-opacity",.6).attr("stroke-width",.6).attr("style",e=>e.depth===0?"display: none;":""),H.append("clipPath").attr("id",(e,c)=>`clip-section-${a}-${c}`).append("rect").attr("width",e=>Math.max(0,e.x1-e.x0-12)).attr("height",X),H.append("rect").attr("width",e=>e.x1-e.x0).attr("height",e=>e.y1-e.y0).attr("class",(e,c)=>`treemapSection section${c}`).attr("fill",e=>b(e.data.name)).attr("fill-opacity",.6).attr("stroke",e=>_(e.data.name)).attr("stroke-width",2).attr("stroke-opacity",.4).attr("style",e=>{if(e.depth===0)return"display: none;";const c=B({cssCompiledStyles:e.data.cssCompiledStyles});return c.nodeStyles+";"+c.borderStyles.join(";")}),H.append("text").attr("class","treemapSectionLabel").attr("x",6).attr("y",X/2).attr("dominant-baseline","middle").text(e=>e.depth===0?"":e.data.name).attr("font-weight","bold").attr("clip-path",(e,c)=>`url(#clip-section-${a}-${c})`).attr("style",e=>{if(e.depth===0)return"display: none;";const c="dominant-baseline: middle; font-size: 12px; fill:"+$(e.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",m=B({cssCompiledStyles:e.data.cssCompiledStyles});return c+m.labelStyles.replace("color:","fill:")}).each(function(e){if(e.depth===0)return;const c=Z(this),m=e.data.name;c.text(m);const w=e.x1-e.x0,L=6;let T;r.showValues!==!1&&e.value?T=w-10-30-10-L:T=w-L-6;const y=Math.max(15,T),M=c.node();if(M.getComputedTextLength()>y){let V=m;for(;V.length>0;){if(V=m.substring(0,V.length-1),V.length===0){c.text("..."),M.getComputedTextLength()>y&&c.text("");break}if(c.text(V+"..."),M.getComputedTextLength()<=y)break}}}),r.showValues!==!1&&H.append("text").attr("class","treemapSectionValue").attr("x",e=>e.x1-e.x0-10).attr("y",X/2).attr("text-anchor","end").attr("dominant-baseline","middle").text(e=>e.value?p(e.value):"").attr("font-style","italic").attr("style",e=>{if(e.depth===0)return"display: none;";const c="text-anchor: end; dominant-baseline: middle; font-size: 10px; fill:"+$(e.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",m=B({cssCompiledStyles:e.data.cssCompiledStyles});return c+m.labelStyles.replace("color:","fill:")});const se=le.leaves(),A=se.length>20,ge=A?16:38,j=A?14:28,D=A?4:8,I=A?4:6,J=A?2:4,re=A?8:10,K=A?1:2,U=z.selectAll(".treemapLeafGroup").data(se).enter().append("g").attr("class",(e,c)=>`treemapNode treemapLeafGroup leaf${c}${e.data.classSelector?` ${e.data.classSelector}`:""}x`).attr("transform",e=>`translate(${e.x0},${e.y0})`);U.append("rect").attr("width",e=>e.x1-e.x0).attr("height",e=>e.y1-e.y0).attr("class","treemapLeaf").attr("fill",e=>e.parent?b(e.parent.data.name):b(e.data.name)).attr("style",e=>B({cssCompiledStyles:e.data.cssCompiledStyles}).nodeStyles).attr("fill-opacity",.3).attr("stroke",e=>e.parent?b(e.parent.data.name):b(e.data.name)).attr("stroke-width",3),U.append("clipPath").attr("id",(e,c)=>`clip-${a}-${c}`).append("rect").attr("width",e=>Math.max(0,e.x1-e.x0-4)).attr("height",e=>Math.max(0,e.y1-e.y0-4)),U.append("text").attr("class","treemapLabel").attr("x",e=>(e.x1-e.x0)/2).attr("y",e=>(e.y1-e.y0)/2).attr("style",e=>{const c=`text-anchor: middle; dominant-baseline: middle; font-size: ${ge}px;fill:`+$(e.data.name)+";",m=B({cssCompiledStyles:e.data.cssCompiledStyles});return c+m.labelStyles.replace("color:","fill:")}).attr("clip-path",(e,c)=>`url(#clip-${a}-${c})`).text(e=>e.data.name).each(function(e){const c=Z(this),m=e.x1-e.x0,w=e.y1-e.y0,L=c.node(),T=m-2*J,P=w-2*J;if(T<re||P<re){c.style("display","none");return}let y=parseInt(c.style("font-size"),10);const M=.6;for(;L.getComputedTextLength()>T&&y>D;)y--,c.style("font-size",`${y}px`);let F=Math.max(I,Math.min(j,Math.round(y*M))),k=y+K+F;for(;k>P&&y>D&&(y--,F=Math.max(I,Math.min(j,Math.round(y*M))),!(F<I&&y===D));)c.style("font-size",`${y}px`),k=y+K+F;c.style("font-size",`${y}px`),A?(y<D||P<D)&&c.style("display","none"):(L.getComputedTextLength()>T||y<D||P<y)&&c.style("display","none")}),r.showValues!==!1&&U.append("text").attr("class","treemapValue").attr("x",c=>(c.x1-c.x0)/2).attr("y",function(c){return(c.y1-c.y0)/2}).attr("style",c=>{const m=`text-anchor: middle; dominant-baseline: hanging; font-size: ${j}px;fill:`+$(c.data.name)+";",w=B({cssCompiledStyles:c.data.cssCompiledStyles});return m+w.labelStyles.replace("color:","fill:")}).attr("clip-path",(c,m)=>`url(#clip-${a}-${m})`).text(c=>c.value?p(c.value):"").each(function(c){const m=Z(this),w=this.parentNode;if(!w){m.style("display","none");return}const L=Z(w).select(".treemapLabel");if(L.empty()||L.style("display")==="none"){m.style("display","none");return}const T=parseFloat(L.style("font-size")),y=Math.max(I,Math.min(j,Math.round(T*.6)));m.style("font-size",`${y}px`);const F=(c.y1-c.y0)/2+T/2+K;m.attr("y",F);const k=c.x1-c.x0,ie=c.y1-c.y0-4,ve=k-2*J;m.node().getComputedTextLength()>ve||F+y>ie||y<I?m.style("display","none"):m.style("display",null)});const ye=r.diagramPadding??8;xe(S,ye,"flowchart",r?.useMaxWidth||!1)},"draw"),ct=C(function(t,a){return a.db.getClasses()},"getClasses"),ht={draw:ot,getClasses:ct},dt={sectionStrokeColor:"black",sectionStrokeWidth:"1",sectionFillColor:"#efefef",leafStrokeColor:"black",leafStrokeWidth:"1",leafFillColor:"#efefef",labelFontSize:"12px",valueFontSize:"10px",titleFontSize:"14px"},ut=C(({treemap:t}={})=>{const a=Ce(),l=ae(),n=ee(a,l.themeVariables),s=ee(dt,t),r=s.titleColor??n.titleColor,h=s.labelColor??n.textColor,d=s.valueColor??n.textColor;return`
2
2
  .treemapNode.section {
3
3
  stroke: ${s.sectionStrokeColor};
4
4
  stroke-width: ${s.sectionStrokeWidth};
@@ -1,2 +1,2 @@
1
- import{Z as Q,n as j,aA as J,ax as X,aI as z,w as Z,b as $}from"./cD292w1o.js";import{JH as l,nZ as m,n_ as _,JQ as q,bs as O,a4 as Y,nM as C,rR as P,sd as ee,kr as te,sb as W,K9 as M,rw as ne,fV as K,rS as F,a6 as se,bq as oe,m as ie}from"./D0qhIm1r.js";import{m as x,a0 as re,l as ae}from"./BuM8LV7z.js";import{a as L}from"./CZfU7DE3.js";const ce=["[WORKSPACE EVENTS]","[TASK WAKE]","[AGENT MESSAGE]"];function de(e){const t=e.metadata;if(t&&typeof t=="object"){if(t.type==="question_answers")return!1;if(!Q(t))return!0}const n=j(e);return ce.some(s=>n.startsWith(s))}const U=1440*60*1e3;function le(e){let t=null;for(const n of e){if(de({id:n.id,timestamp:n.createdAt,metadata:n.metadata,contentBlocks:[{type:"text",text:n.preview.trimStart()}]}))continue;const s=Date.parse(n.createdAt);Number.isFinite(s)&&(t===null||s>t)&&(t=s)}return t}const ue=50,ge=20;function D(e,t){return e===null||t!==null&&t>e?t:e}async function De(e,t){let n,s=null;for(let i=0;i<ge;i++){const r=await e({limit:ue,nextToken:n});if(!r.ok)return null;const d=r.items;s===null&&d.length>0&&(s=d[d.length-1].id);const c=t?.newestId!=null?d.findIndex(a=>a.id===t.newestId):-1,o=le(c>=0?d.slice(c+1):d);if(c>=0)return{latest:D(o,t?.latest??null),newestId:s};if(o!==null)return{latest:D(o,t?.latest??null),newestId:s};if(typeof r.nextToken!="string")return{latest:null,newestId:s};n=r.nextToken}return{latest:t?.latest??null,newestId:s}}function E(e,t){return e!=null&&e<=t&&e>t-U}function fe(e,t){return e!=null&&Number.isFinite(e)&&e>0&&e<=t-U}function pe(e,t){const{workspaceId:n,agentId:s,authority:i,nativePairId:r,evidence:d}=e;if(!n||!s||!i||i!==t)return null;const c=JSON.stringify([n,s]);if(r!==c||d?.id!==c)return null;const o=d.clips.find(a=>a.status==="recording");return!o||o.discarding||!Number.isFinite(o.startedAt)||!Number.isFinite(o.pausedMs??0)||o.pausedAt!=null&&!Number.isFinite(o.pausedAt)?null:{workspaceId:n,agentId:s,clipId:o.id,startedAt:o.startedAt,pausedAt:o.pausedAt??null,pausedMs:o.pausedMs??0}}function Ee(e,t){return t!==void 0&&e!==t?"ignore":e?"stop":"start"}const Ne=l.createSelector(e=>{const t=e.dockConversation,n=t.workspaceId&&t.agentId?JSON.stringify([t.workspaceId,t.agentId]):null;return pe({workspaceId:t.workspaceId,agentId:t.agentId,authority:t.authority,nativePairId:t.nativeSpeech.pairId,evidence:n?m(t.evidence,n):null},L(e))});l.createSelector(e=>e.hud.active);l.createSelector(e=>e.hud.feed);l.createSelector(e=>e.hud.usage);l.createSelector(e=>e.hud.usageError);const He=l.createSelector(e=>e.hud.rateHistory),qe=l.createSelector(e=>_(e.workspace.workspaces)),Pe=l.createSelector(e=>{const t=e.hud.usage?.totals;return t?q(t):0}),Ke=l.createSelector(e=>e.hud.burnRatePerMin),Fe=l.createSelector(e=>e.hud.burnTrend),xe=l.createSelector(e=>{const{health:t,stats:n,lastUpdated:s,hostLocality:i}=e.daemonHealth,r=n?.hostname;return{online:t!=="down",uptimeSeconds:typeof n?.uptimeSeconds=="number"?n.uptimeSeconds:null,version:n?.version??null,fetchedAtMs:s?Date.parse(s):null,remoteHostname:i==="remote"&&r?r.split(".",1)[0]??r:null}}),Le=l.createSelector(e=>e.hud.gridFilter);l.createSelector(e=>e.hud.attentionByWorkspaceId);const Ue=l.createSelector((e,t)=>{const n=e.hud?.questionsByAgentId?.[t];if(!n)return!1;const s=e.agentSessions?.byAgentId[t]?.metadata??{};return!x(s,n.messageId)}),Ge=l.createSelector(e=>e.hud.takeoverRequestWorkspaceId);function ke(e,t){return t[String(e.id)]??e.displayStatus}const S=l.createSelector(e=>{const t=e.hud.displayStatusByWorkspaceId;return _(e.workspace.workspaces).filter(n=>n.status!==O.Archived&&n.status!==O.Retired&&n.status!==O.Deleted).map(n=>{const s=ke(n,t);return s&&s!==n.displayStatus?{...n,displayStatus:s}:n})});function w(e){const t=e.agentSummary;return!t||!Array.isArray(t.agents)?[]:t.agents.filter(n=>!!n&&typeof n=="object"&&typeof n.id=="string"&&n.status!=="deleted"&&!ae(n.id))}const Ve=l.createSelector(e=>{const t=Object.fromEntries(Y.map(n=>[n,0]));for(const n of S.select(e))for(const s of w(n))t[I(e,s).bucket]+=1;return t}),Qe=l.createSelector(e=>{const t={idle:0,unread:0,progress:0,attention:0,waiting:0,prOpen:0,prMerged:0,failed:0,completed:0,total:0};for(const n of B.select(e))switch(t.total+=1,n.isUnread&&(t.unread+=1),n.isWaiting&&(t.waiting+=1),n.stateKey){case"wait":case"blocked":t.attention+=1;break;case"failed":t.failed+=1;break;case"in_progress":t.progress+=1;break;case"complete":t.completed+=1;break;case"pr_open":case"pr_ready":case"pr_queued":t.prOpen+=1;break;case"pr_merged":t.prMerged+=1;break;default:t.idle+=1}return t}),Se=l.createSelector(e=>{const t={};for(const n of S.select(e))for(const s of w(n))typeof s.name=="string"&&s.name.length>0&&(t[s.id]=s.name);return t});function N(e){if(!e.sinceTs)return 0;const t=Date.parse(e.sinceTs);return Number.isFinite(t)?t:0}const je=l.createSelector(e=>{const t=e.hud.attentionByWorkspaceId,n=e.hud.questionsByAgentId,s=[];for(const i of S.select(e)){const r=String(i.id);let d=!1;for(const o of v(i,e)){const{bucket:a,attentionKind:u,hasQuestion:g}=o;if(a!=="needs-attention"&&a!=="failed"||!o.topLevel||o.isBackground||h(e,o.id))continue;const k=g?n[o.id]:void 0,f=u?C(e.agentSessions?.byAgentId[o.id])?.reason:void 0,p=k?"question":u??void 0;s.push({workspaceId:r,workspaceTitle:i.title,kind:a==="needs-attention"?"agent_waiting":"agent_failed",...a==="needs-attention"&&p?{signal:p}:{},agentName:o.name,message:k?.question??f??null,sinceTs:o.lastActivityTs}),d=!0}const c=t[r];c&&P(c.attention)&&(s.push({workspaceId:r,workspaceTitle:i.title,kind:"workspace_attention",attention:c.attention,message:null,sinceTs:c.raisedAtTs}),d=!0),G.has(b(i))&&!d&&s.push({workspaceId:r,workspaceTitle:i.title,kind:"workspace_attention",message:null,sinceTs:null})}return s.sort((i,r)=>N(r)-N(i))}),Je=l.createSelector(e=>{const t=Se.select(e);return e.hud.feed.map(n=>({...n,workspaceTitle:m(e.workspace.workspaces,n.source)?.title??null,resolvedAgentName:n.agentName??(n.agentId?t[n.agentId]??null:null)}))}),Ae={total:0,completed:0,inProgress:0};function b(e){const t=ee(e.displayStatus)?e.displayStatus:"not_started";return te(t)??"not_started"}const G=new Set(["wait","blocked","failed"]);function he(e,t,n){if(t==="failed"){const i=n.find(d=>d.bucket==="failed"&&!h(e,d.id)),r=i?e.agentSessions?.byAgentId[i.id]?.stopReason:null;return{kind:"failed",text:typeof r=="string"&&r.length>0?r:""}}if(t!=="wait"&&t!=="blocked")return null;const s=n.filter(i=>i.topLevel&&!i.isBackground&&!h(e,i.id));for(const i of s){if(!i.hasQuestion)continue;const r=e.hud.questionsByAgentId[i.id];if(r?.question)return{kind:"question",text:r.question}}for(const i of["blocker","discussion"])for(const r of s){if(r.attentionKind!==i)continue;const d=e.agentSessions?.byAgentId[r.id],c=C(d)?.reason;if(c)return{kind:i,text:c}}return{kind:"pending",text:""}}const y=new Set(["running","needs-attention","failed"]);function H(e){const t=typeof e.lastActivity=="string"?Date.parse(e.lastActivity):NaN;return Number.isFinite(t)?t:-1/0}function me(e){const t=n=>{const s=e.get(n.id)?.bucket;return s!==void 0&&y.has(s)?0:1};return(n,s)=>{const i=n.specialist==="spec-writer",r=s.specialist==="spec-writer";if(i!==r)return i?-1:1;const d=t(n)-t(s);if(d!==0)return d;const c=H(n),o=H(s);return c!==o?o-c:n.id<s.id?-1:n.id>s.id?1:0}}function ye(e,t){const n=new Set(e.map(o=>o.id)),s=new Map,i=[];for(const o of e){const a=typeof o.parentAgentId=="string"&&o.parentAgentId!==o.id&&n.has(o.parentAgentId)?o.parentAgentId:null;if(a){const u=s.get(a)??[];u.push(o),s.set(a,u)}else i.push(o)}i.sort(t);for(const o of s.values())o.sort(t);const r=[],d=new Set,c=(o,a,u)=>{if(!d.has(o.id)){d.add(o.id),r.push({info:o,depth:a,parentAgentId:u});for(const g of s.get(o.id)??[])c(g,a+1,o.id)}};for(const o of i)c(o,0,null);for(const o of e)c(o,0,null);return r}function I(e,t){const n=e.agentSessions?.byAgentId[t.id],s=n?.metadata??{},i=n?C(n)?.kind??null:null,r=n?J.select(e,t.id)||typeof n.status=="string"&&W(n.status):W(t.status),d=n?M(typeof n.status=="string"?n.status:t.status):null,c=!!n&&d!=="failed"&&d!=="done"&&(n.isWaitingForOtherAgents===!0||Array.isArray(n.waitingForAgentIds)&&n.waitingForAgentIds.length>0||Array.isArray(n.waitingOnHooks)&&n.waitingOnHooks.length>0||Array.isArray(n.waitingOnPrMonitors)&&n.waitingOnPrMonitors.length>0||Array.isArray(n.waitingOnScriptMonitors)&&n.waitingOnScriptMonitors.length>0),o=!!n&&(n.turnInFlight===!0||n.liveTurnOpen===!0);let a;n?c&&!o&&n.isStreaming!==!0&&n.isProcessing!==!0?a="idle":X.select(e,t.id)?a="running":r?a="idle":a=M(typeof n.status=="string"?n.status:t.status):a=t.isResponding===!0||t.isStreaming===!0?"running":M(t.status);const u=e.hud.questionsByAgentId[t.id],g=a!=="failed"&&!!u&&!x(s,u.messageId);return{bucket:a==="failed"?"failed":i!==null||g?"needs-attention":a,attentionKind:i,hasQuestion:g,isRunning:a==="running"}}function V(e,t){const n=i=>typeof i=="string"&&i!==e.id?i:null,s=i=>({isBackground:i?.isBackground,createdByAgentId:n(i?.createdByAgentId)});return{parentAgentId:n(e.parentAgentId)??n(t?.parentAgentId),isBackground:e.isBackground??t?.isBackground,metadata:s(t?.metadata),agentMetadata:s(t?.agentMetadata)}}function h(e,t){return e.agentSessions?.byAgentId[t]?.notificationsMuted===!0}function Ie(e){if(!e)return null;switch(e.kind){case"attention":return e.attention.reason??null;case"live-tool":case"last-tool":{const t=$(e.toolUse.name,e.toolUse.input||{});return t.hidden?null:[t.verb,t.subject,t.path].filter(Boolean).join(" ").trim()||null}default:{const t=e.text||"";return t?t.includes(`
1
+ import{Z as Q,n as j,aA as J,ax as X,aI as z,w as Z,b as $}from"./cD292w1o.js";import{JH as l,nZ as m,n_ as _,JQ as q,bs as O,a4 as Y,nM as C,rR as P,sd as ee,kr as te,sb as W,K9 as M,rw as ne,fV as K,rS as F,a6 as se,bq as oe,m as ie}from"./D0qhIm1r.js";import{m as x,a1 as re,l as ae}from"./BeZe2Rt-.js";import{a as L}from"./CZfU7DE3.js";const ce=["[WORKSPACE EVENTS]","[TASK WAKE]","[AGENT MESSAGE]"];function de(e){const t=e.metadata;if(t&&typeof t=="object"){if(t.type==="question_answers")return!1;if(!Q(t))return!0}const n=j(e);return ce.some(s=>n.startsWith(s))}const U=1440*60*1e3;function le(e){let t=null;for(const n of e){if(de({id:n.id,timestamp:n.createdAt,metadata:n.metadata,contentBlocks:[{type:"text",text:n.preview.trimStart()}]}))continue;const s=Date.parse(n.createdAt);Number.isFinite(s)&&(t===null||s>t)&&(t=s)}return t}const ue=50,ge=20;function D(e,t){return e===null||t!==null&&t>e?t:e}async function De(e,t){let n,s=null;for(let i=0;i<ge;i++){const r=await e({limit:ue,nextToken:n});if(!r.ok)return null;const d=r.items;s===null&&d.length>0&&(s=d[d.length-1].id);const c=t?.newestId!=null?d.findIndex(a=>a.id===t.newestId):-1,o=le(c>=0?d.slice(c+1):d);if(c>=0)return{latest:D(o,t?.latest??null),newestId:s};if(o!==null)return{latest:D(o,t?.latest??null),newestId:s};if(typeof r.nextToken!="string")return{latest:null,newestId:s};n=r.nextToken}return{latest:t?.latest??null,newestId:s}}function E(e,t){return e!=null&&e<=t&&e>t-U}function fe(e,t){return e!=null&&Number.isFinite(e)&&e>0&&e<=t-U}function pe(e,t){const{workspaceId:n,agentId:s,authority:i,nativePairId:r,evidence:d}=e;if(!n||!s||!i||i!==t)return null;const c=JSON.stringify([n,s]);if(r!==c||d?.id!==c)return null;const o=d.clips.find(a=>a.status==="recording");return!o||o.discarding||!Number.isFinite(o.startedAt)||!Number.isFinite(o.pausedMs??0)||o.pausedAt!=null&&!Number.isFinite(o.pausedAt)?null:{workspaceId:n,agentId:s,clipId:o.id,startedAt:o.startedAt,pausedAt:o.pausedAt??null,pausedMs:o.pausedMs??0}}function Ee(e,t){return t!==void 0&&e!==t?"ignore":e?"stop":"start"}const Ne=l.createSelector(e=>{const t=e.dockConversation,n=t.workspaceId&&t.agentId?JSON.stringify([t.workspaceId,t.agentId]):null;return pe({workspaceId:t.workspaceId,agentId:t.agentId,authority:t.authority,nativePairId:t.nativeSpeech.pairId,evidence:n?m(t.evidence,n):null},L(e))});l.createSelector(e=>e.hud.active);l.createSelector(e=>e.hud.feed);l.createSelector(e=>e.hud.usage);l.createSelector(e=>e.hud.usageError);const He=l.createSelector(e=>e.hud.rateHistory),qe=l.createSelector(e=>_(e.workspace.workspaces)),Pe=l.createSelector(e=>{const t=e.hud.usage?.totals;return t?q(t):0}),Ke=l.createSelector(e=>e.hud.burnRatePerMin),Fe=l.createSelector(e=>e.hud.burnTrend),xe=l.createSelector(e=>{const{health:t,stats:n,lastUpdated:s,hostLocality:i}=e.daemonHealth,r=n?.hostname;return{online:t!=="down",uptimeSeconds:typeof n?.uptimeSeconds=="number"?n.uptimeSeconds:null,version:n?.version??null,fetchedAtMs:s?Date.parse(s):null,remoteHostname:i==="remote"&&r?r.split(".",1)[0]??r:null}}),Le=l.createSelector(e=>e.hud.gridFilter);l.createSelector(e=>e.hud.attentionByWorkspaceId);const Ue=l.createSelector((e,t)=>{const n=e.hud?.questionsByAgentId?.[t];if(!n)return!1;const s=e.agentSessions?.byAgentId[t]?.metadata??{};return!x(s,n.messageId)}),Ge=l.createSelector(e=>e.hud.takeoverRequestWorkspaceId);function ke(e,t){return t[String(e.id)]??e.displayStatus}const S=l.createSelector(e=>{const t=e.hud.displayStatusByWorkspaceId;return _(e.workspace.workspaces).filter(n=>n.status!==O.Archived&&n.status!==O.Retired&&n.status!==O.Deleted).map(n=>{const s=ke(n,t);return s&&s!==n.displayStatus?{...n,displayStatus:s}:n})});function w(e){const t=e.agentSummary;return!t||!Array.isArray(t.agents)?[]:t.agents.filter(n=>!!n&&typeof n=="object"&&typeof n.id=="string"&&n.status!=="deleted"&&!ae(n.id))}const Ve=l.createSelector(e=>{const t=Object.fromEntries(Y.map(n=>[n,0]));for(const n of S.select(e))for(const s of w(n))t[I(e,s).bucket]+=1;return t}),Qe=l.createSelector(e=>{const t={idle:0,unread:0,progress:0,attention:0,waiting:0,prOpen:0,prMerged:0,failed:0,completed:0,total:0};for(const n of B.select(e))switch(t.total+=1,n.isUnread&&(t.unread+=1),n.isWaiting&&(t.waiting+=1),n.stateKey){case"wait":case"blocked":t.attention+=1;break;case"failed":t.failed+=1;break;case"in_progress":t.progress+=1;break;case"complete":t.completed+=1;break;case"pr_open":case"pr_ready":case"pr_queued":t.prOpen+=1;break;case"pr_merged":t.prMerged+=1;break;default:t.idle+=1}return t}),Se=l.createSelector(e=>{const t={};for(const n of S.select(e))for(const s of w(n))typeof s.name=="string"&&s.name.length>0&&(t[s.id]=s.name);return t});function N(e){if(!e.sinceTs)return 0;const t=Date.parse(e.sinceTs);return Number.isFinite(t)?t:0}const je=l.createSelector(e=>{const t=e.hud.attentionByWorkspaceId,n=e.hud.questionsByAgentId,s=[];for(const i of S.select(e)){const r=String(i.id);let d=!1;for(const o of v(i,e)){const{bucket:a,attentionKind:u,hasQuestion:g}=o;if(a!=="needs-attention"&&a!=="failed"||!o.topLevel||o.isBackground||h(e,o.id))continue;const k=g?n[o.id]:void 0,f=u?C(e.agentSessions?.byAgentId[o.id])?.reason:void 0,p=k?"question":u??void 0;s.push({workspaceId:r,workspaceTitle:i.title,kind:a==="needs-attention"?"agent_waiting":"agent_failed",...a==="needs-attention"&&p?{signal:p}:{},agentName:o.name,message:k?.question??f??null,sinceTs:o.lastActivityTs}),d=!0}const c=t[r];c&&P(c.attention)&&(s.push({workspaceId:r,workspaceTitle:i.title,kind:"workspace_attention",attention:c.attention,message:null,sinceTs:c.raisedAtTs}),d=!0),G.has(b(i))&&!d&&s.push({workspaceId:r,workspaceTitle:i.title,kind:"workspace_attention",message:null,sinceTs:null})}return s.sort((i,r)=>N(r)-N(i))}),Je=l.createSelector(e=>{const t=Se.select(e);return e.hud.feed.map(n=>({...n,workspaceTitle:m(e.workspace.workspaces,n.source)?.title??null,resolvedAgentName:n.agentName??(n.agentId?t[n.agentId]??null:null)}))}),Ae={total:0,completed:0,inProgress:0};function b(e){const t=ee(e.displayStatus)?e.displayStatus:"not_started";return te(t)??"not_started"}const G=new Set(["wait","blocked","failed"]);function he(e,t,n){if(t==="failed"){const i=n.find(d=>d.bucket==="failed"&&!h(e,d.id)),r=i?e.agentSessions?.byAgentId[i.id]?.stopReason:null;return{kind:"failed",text:typeof r=="string"&&r.length>0?r:""}}if(t!=="wait"&&t!=="blocked")return null;const s=n.filter(i=>i.topLevel&&!i.isBackground&&!h(e,i.id));for(const i of s){if(!i.hasQuestion)continue;const r=e.hud.questionsByAgentId[i.id];if(r?.question)return{kind:"question",text:r.question}}for(const i of["blocker","discussion"])for(const r of s){if(r.attentionKind!==i)continue;const d=e.agentSessions?.byAgentId[r.id],c=C(d)?.reason;if(c)return{kind:i,text:c}}return{kind:"pending",text:""}}const y=new Set(["running","needs-attention","failed"]);function H(e){const t=typeof e.lastActivity=="string"?Date.parse(e.lastActivity):NaN;return Number.isFinite(t)?t:-1/0}function me(e){const t=n=>{const s=e.get(n.id)?.bucket;return s!==void 0&&y.has(s)?0:1};return(n,s)=>{const i=n.specialist==="spec-writer",r=s.specialist==="spec-writer";if(i!==r)return i?-1:1;const d=t(n)-t(s);if(d!==0)return d;const c=H(n),o=H(s);return c!==o?o-c:n.id<s.id?-1:n.id>s.id?1:0}}function ye(e,t){const n=new Set(e.map(o=>o.id)),s=new Map,i=[];for(const o of e){const a=typeof o.parentAgentId=="string"&&o.parentAgentId!==o.id&&n.has(o.parentAgentId)?o.parentAgentId:null;if(a){const u=s.get(a)??[];u.push(o),s.set(a,u)}else i.push(o)}i.sort(t);for(const o of s.values())o.sort(t);const r=[],d=new Set,c=(o,a,u)=>{if(!d.has(o.id)){d.add(o.id),r.push({info:o,depth:a,parentAgentId:u});for(const g of s.get(o.id)??[])c(g,a+1,o.id)}};for(const o of i)c(o,0,null);for(const o of e)c(o,0,null);return r}function I(e,t){const n=e.agentSessions?.byAgentId[t.id],s=n?.metadata??{},i=n?C(n)?.kind??null:null,r=n?J.select(e,t.id)||typeof n.status=="string"&&W(n.status):W(t.status),d=n?M(typeof n.status=="string"?n.status:t.status):null,c=!!n&&d!=="failed"&&d!=="done"&&(n.isWaitingForOtherAgents===!0||Array.isArray(n.waitingForAgentIds)&&n.waitingForAgentIds.length>0||Array.isArray(n.waitingOnHooks)&&n.waitingOnHooks.length>0||Array.isArray(n.waitingOnPrMonitors)&&n.waitingOnPrMonitors.length>0||Array.isArray(n.waitingOnScriptMonitors)&&n.waitingOnScriptMonitors.length>0),o=!!n&&(n.turnInFlight===!0||n.liveTurnOpen===!0);let a;n?c&&!o&&n.isStreaming!==!0&&n.isProcessing!==!0?a="idle":X.select(e,t.id)?a="running":r?a="idle":a=M(typeof n.status=="string"?n.status:t.status):a=t.isResponding===!0||t.isStreaming===!0?"running":M(t.status);const u=e.hud.questionsByAgentId[t.id],g=a!=="failed"&&!!u&&!x(s,u.messageId);return{bucket:a==="failed"?"failed":i!==null||g?"needs-attention":a,attentionKind:i,hasQuestion:g,isRunning:a==="running"}}function V(e,t){const n=i=>typeof i=="string"&&i!==e.id?i:null,s=i=>({isBackground:i?.isBackground,createdByAgentId:n(i?.createdByAgentId)});return{parentAgentId:n(e.parentAgentId)??n(t?.parentAgentId),isBackground:e.isBackground??t?.isBackground,metadata:s(t?.metadata),agentMetadata:s(t?.agentMetadata)}}function h(e,t){return e.agentSessions?.byAgentId[t]?.notificationsMuted===!0}function Ie(e){if(!e)return null;switch(e.kind){case"attention":return e.attention.reason??null;case"live-tool":case"last-tool":{const t=$(e.toolUse.name,e.toolUse.input||{});return t.hidden?null:[t.verb,t.subject,t.path].filter(Boolean).join(" ").trim()||null}default:{const t=e.text||"";return t?t.includes(`
2
2
  `)?Z(t)||null:t:null}}}function v(e,t){const n=w(e),s=new Map(n.map(r=>[r.id,I(t,r)]));return ye(n,me(s)).map(({info:r,depth:d,parentAgentId:c})=>{const o=t.agentSessions?.byAgentId[r.id],a=V(r,o),{bucket:u,attentionKind:g,hasQuestion:k}=s.get(r.id)??I(t,r),f=Array.isArray(o?.waitingForAgentIds)?o.waitingForAgentIds.filter(p=>typeof p=="string"):[];return{id:r.id,name:r.name,bucket:u,lastActivityTs:r.lastActivity??null,line:Ie(z.select(t,r.id)),parentAgentId:c,depth:d,treePrefix:"",topLevel:K(a)==="topLevel",isBackground:ne(a),attentionKind:g,hasQuestion:k,isWaitingForAgents:o?.isWaitingForOtherAgents===!0||f.length>0||Array.isArray(o?.waitingOnHooks)&&o.waitingOnHooks.length>0||Array.isArray(o?.waitingOnPrMonitors)&&o.waitingOnPrMonitors.length>0||Array.isArray(o?.waitingOnScriptMonitors)&&o.waitingOnScriptMonitors.length>0,waitingForAgentIds:f}})}function we(e){const t=new Set;for(const i of e)for(const r of i.waitingForAgentIds)t.add(r);const n=i=>y.has(i.bucket)||i.isWaitingForAgents||t.has(i.id);return e.filter((i,r)=>{if(n(i))return!0;for(let d=r+1;d<e.length&&!(e[d].depth<=i.depth);d++)if(n(e[d]))return!0;return!1}).map((i,r,d)=>{if(i.depth===0)return{...i,treePrefix:""};let c=!0;for(let o=r+1;o<d.length&&!(d[o].depth<i.depth);o++)if(d[o].depth===i.depth){c=!1;break}return{...i,treePrefix:(i.depth>=2?"│ ":"")+(c?"└─":"├─")}})}const B=l.createSelector(e=>{const t=e.hud.attentionByWorkspaceId,n=re.select(e);return S.select(e).map(s=>{const i=String(s.id),r=n.indexOf(i),d=t[i]?.attention??(typeof s.attention=="string"&&F(s.attention)?s.attention:null),c=v(s,e),o=b(s),a=e.tokenUsage?.byWorkspaceId[i]?.totals,u=e.workspaceTasks?.byWorkspaceId[i]?.stats,g=typeof s.statusMessage=="string"&&s.statusMessage.trim().length>0?s.statusMessage:null;return{workspaceId:i,title:s.title,repoRef:s.repositoryName?`${s.repositoryOwner?`${s.repositoryOwner}/`:""}${s.repositoryName}`:s.branch,stateKey:o,attention:d,isUnread:d===se,isWaiting:s.waiting===!0,statusMessage:g,attentionSnippet:he(e,o,c),prNumber:typeof s.prNumber=="number"?s.prNumber:null,keySlot:r===-1?null:r,tasks:u?{total:u.total,completed:u.completed,inProgress:u.inProgress}:Ae,tokens:a?q(a):0,agents:we(c)}})}),R=4;function be(e,t,n){const s=e.agentSessions?.byAgentId[n.id];return!s||String(s.workspaceId)!==t||s.pendingDeleteAt||K(V(n,s))!=="topLevel"?!1:!h(e,n.id)}const ve=l.createSelector(e=>{const t={},n=e.hud.attentionByWorkspaceId;for(const s of S.select(e)){const i=String(s.id),r=new Map,d=(f,p)=>{const A=r.get(f)??[];A.includes(p)||A.push(p),r.set(f,A)},o=w(s).filter(f=>be(e,i,f));for(const f of o){const p=I(e,f);p.bucket==="failed"?d("failed",f.name):p.hasQuestion?d("question",f.name):p.attentionKind==="blocker"?d("blocker",f.name):p.attentionKind==="discussion"&&d("discussion",f.name),p.isRunning&&d("running",f.name)}const a=b(s);a==="failed"&&!r.has("failed")&&r.set("failed",[]),a==="blocked"&&!r.has("blocker")&&r.set("blocker",[]),a==="wait"&&!r.has("question")&&!r.has("blocker")&&!r.has("discussion")&&r.set("needs_input",[]);const u=n[i]?.attention??(typeof s.attention=="string"&&F(s.attention)?s.attention:null);u==="review_required"&&r.set("review",[]),u==="unread"&&r.set("unread",[]),s.activity==="agent_running"&&!r.has("running")&&r.set("running",[]);const g=oe.flatMap(f=>{const p=r.get(f);return p?[{category:f,count:Math.max(1,p.length),agentNames:p}]:[]});if(g.length===0)continue;const k=g.length>R;t[i]={agentCount:o.length,categories:g,visibleCategories:k?g.slice(0,R-1):g,hiddenCategoryCount:k?g.length-(R-1):0}}return t});l.createSelector(e=>{const t=e.hud.attentionByWorkspaceId;let n=0;for(const s of S.select(e)){let i=!1;for(const c of v(s,e))c.topLevel&&!c.isBackground&&!h(e,c.id)&&(c.bucket==="failed"||c.attentionKind!==null||c.hasQuestion)&&(n+=1,i=!0);const r=t[String(s.id)],d=r!==void 0&&P(r.attention);d&&(n+=1),G.has(b(s))&&!i&&!d&&(n+=1)}return n});function Te(e,t,n,s){const i=s.slice().sort((o,a)=>a.createdAt-o.createdAt);for(const o of i){const u=e.agentSessions?.byAgentId[o.agentId]?.metadata?.completionReport;if(typeof u=="string"&&u.trim().length>0)return u}const r=e.workspaceNotes?.byWorkspaceId[t]?.notes,d=r?m(r,n):void 0,c=d?.content||d?.contentPreview;return typeof c=="string"&&c.trim().length>0?c:null}const Xe=l.createSelector((e,t)=>{const n=B.select(e).find(a=>a.workspaceId===t);if(!n)return null;const s=m(e.workspace.workspaces,t),i=s?v(s,e):[],r=new Map(i.map(a=>[a.id,a])),d=e.taskAgentAssociations?.byWorkspaceId[t]?.byNoteId??{},c=e.workspaceTasks?.byWorkspaceId[t],o=c?_(c.tasks).filter(a=>a.status!=="cancelled").map(a=>{const u=Object.values(d[a.id]??{});return{id:a.id,title:a.title,status:a.status,agents:u.map(g=>r.get(g.agentId)).filter(g=>!!g),report:a.status==="complete"?Te(e,t,a.id,u):null,...a.specLinked!==void 0?{specLinked:a.specLinked}:{},...a.dependsOn?{dependsOn:a.dependsOn}:{},...a.conflictsWith?{conflictsWith:a.conflictsWith}:{},...a.unmetDependsOn?{unmetDependsOn:a.unmetDependsOn}:{}}}):[];return{workspaceId:t,title:n.title,repoRef:n.repoRef,statusMessage:n.statusMessage,keySlot:n.keySlot,stats:n.tasks,tasks:o,activeAgents:i.filter(a=>y.has(a.bucket)),idleAgents:i.filter(a=>!y.has(a.bucket))}}),Oe=new Set(["failed","blocker","question","discussion","needs_input","review"]);function Me(e){for(const t of e?.categories??[])switch(t.category){case"failed":return"failure";case"blocker":return"blocker";case"question":return"question";case"review":return"review"}return"none"}const Re=3,ze=l.createSelector((e,t="recent")=>{const n=B.select(e),s=ve.select(e),i=new Map(S.select(e).map(c=>[String(c.id),c])),r={action:[],unread:[],active:[]};for(const c of n){const o=i.get(c.workspaceId);if(!o||o.id===ie)continue;const a=e.hud.dockConversationAtByWorkspaceId[c.workspaceId];if(!E(a,e.hud.dockRecencyNow)&&!fe(a,e.hud.dockRecencyNow))continue;const u=s[c.workspaceId],g=u?.categories??[],k=g.some(T=>Oe.has(T.category)),f=c.isUnread,p=g.some(T=>T.category==="running"),A=k?"action":f?"unread":"active";r[A].push({workspace:o,badgeKind:Me(u),priorityGroup:A,isUnread:f,isRunning:p,isWaiting:c.isWaiting})}return[...r.action,...r.unread,...r.active].sort((c,o)=>e.hud.dockConversationAtByWorkspaceId[String(o.workspace.id)]-e.hud.dockConversationAtByWorkspaceId[String(c.workspace.id)]||String(c.workspace.id).localeCompare(String(o.workspace.id))).filter((c,o)=>{const a=o<Re||E(e.hud.dockConversationAtByWorkspaceId[String(c.workspace.id)],e.hud.dockRecencyNow);return t==="older"?!a:a})}),Ze=l.createSelector(e=>e.hud.dockPlacement),$e=l.createSelector(e=>e.hud.dockPlacementError),Ye=l.createSelector(e=>e.hud.dockFocusRequest),et=l.createSelector(e=>e.hud.dockCloseRequest),tt=l.createSelector(e=>e.hud.dockDragStartResult),nt=l.createSelector(e=>e.hud.dockResizeStartResult),st=l.createSelector(e=>({pending:e.hud.dockMachineSwitching,error:e.hud.dockMachineSwitchError})),ot=l.createSelector(e=>{const t=e.hud.dockEditorCompactRequest,n=e.dockConversation,s=n.workspaceId&&n.agentId?m(n.evidence,JSON.stringify([n.workspaceId,n.agentId])):null,i=!!n.nativeSpeech.activeId||!!s?.annotation||s?.clips.some(r=>r.status==="recording")||e.hardwareConsole.pttRecording||e.hardwareConsole.voiceTranscribing;return t&&!i&&e.hud.active&&t.conversationGeneration===n.generation&&t.authority===L(e)&&t.backendId===e.connections.windowBackendId&&t.workspaceId===e.dockConversation.workspaceId&&t.agentId===e.dockConversation.agentId?t:null});export{qe as A,Qe as B,ve as C,et as a,tt as b,ot as c,Ye as d,st as e,Ze as f,$e as g,Ne as h,de as i,nt as j,ze as k,Ue as l,Ve as m,je as n,Ke as o,Fe as p,Je as q,Ee as r,De as s,Le as t,He as u,xe as v,Ge as w,Xe as x,Pe as y,B as z};
@@ -1,4 +1,4 @@
1
- import{g as st}from"./CPmXQBUf.js";import{g as it}from"./CRFyRwf-.js";import{s as at}from"./CRIoGx5T.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"./DFNKkiho.js";import{c as kt}from"./BvByaKKp.js";import{aR as Et}from"./D-j7vD5Z.js";var Me=(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],Pe=[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:Pe,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:Pe,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,M,L,Ie,G={},pe,v,Xe,Ae;;){if(M=p[p.length-1],this.defaultActions[M]?L=this.defaultActions[M]:((B===null||typeof B>"u")&&(B=Qe()),L=ee[M]&&ee[M][B]),typeof L>"u"||!L.length||!L[0]){var Oe="";Ae=[];for(pe in ee[M])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"./n1INJGMs.js";import{g as it}from"./DlbHdfKY.js";import{s as at}from"./edaGtK2z.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"./Bex9L_jH.js";import{c as kt}from"./DjyYYXwz.js";import{aR as Et}from"./CNKJ8_Xr.js";var Me=(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],Pe=[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:Pe,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:Pe,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,M,L,Ie,G={},pe,v,Xe,Ae;;){if(M=p[p.length-1],this.defaultActions[M]?L=this.defaultActions[M]:((B===null||typeof B>"u")&&(B=Qe()),L=ee[M]&&ee[M][B]),typeof L>"u"||!L.length||!L[0]){var Oe="";Ae=[];for(pe in ee[M])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: "+M+", 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{d as l,v as h,t as k}from"./Dms_DO28.js";import{JH as s,vN as w}from"./D0qhIm1r.js";import{i as W,d as E,e as c,n as i,b as m}from"./CccfsETL.js";const A=new Set(["new","creating"]);function g(n){let t;try{t=decodeURIComponent(n)}catch{return null}return t.length===0||A.has(t)?null:t}function f(n){const t=/^\/workspace\/([^/?#]+)\/?(?:[?#].*)?$/.exec(n);return t?g(t[1]):null}function I(n){const t=/^\/workspace\/([^/?#]+)(?:[/?#].*)?$/.exec(n);return t?g(t[1]):null}function J(n,t){return t.length>0&&I(n)===t}function p(){return typeof window>"u"?null:window.location?.pathname??null}function d(n,t){const e=`/workspace/${encodeURIComponent(n)}`,a=t?new URLSearchParams(t).toString():"";return a?`${e}?${a}`:e}function R(n,t){const e=t?.presenceFollowRequestId;return e?w(n,e):w(n)}function P(n,t){return t?i(n,{state:t}):i(n)}function o(n){return n?.tabState?.currentTabId??null}async function S(n,t,e,a){m();const u=P(t,e),r={workspaceId:n,epoch:c(),startTabId:a};return await u,r}function b(n){return!n||W()||E()}function y(n,t){if(c()!==n.epoch||t!==n.startTabId&&t!==n.workspaceId)return!1;const e=p();return e===null||f(e)===n.workspaceId}async function v(n,t,e){if(b(n))return!1;const a=await S(n,t,e,o(s.state));return y(a,o(s.state))?(s.dispatch(R(n,e)),!0):!1}function*T(n,t,e){if(b(n))return!1;const a=o(yield*h(r=>r)),u=yield*l(S,n,t,e,a);return y(u,o(yield*h(r=>r)))?(yield*k(R(n,e)),!0):!1}function _(){m();const n=c(),t=o(s.state),e=p();return()=>c()===n&&o(s.state)===t&&p()===e}function O(n,t={}){return v(n,d(n,t.query),t.state)}function $(n,t={}){return T(n,d(n,t.query),t.state)}async function N(n){const t=f(n);t?await v(t,n,void 0):await i(n)}function*j(n){const t=f(n);t?yield*l(T,t,n,void 0):yield*l(i,n)}const U=Object.freeze(Object.defineProperty({__proto__:null,claimNavigation:_,navigateToAppRoute:N,navigateToAppRouteSaga:j,openAndShowWorkspace:O,showWorkspaceSaga:$,workspaceRoute:d},Symbol.toStringTag,{value:"Module"}));export{p as a,j as b,_ as c,$ as d,d as e,J as i,N as n,O as o,f as p,U as s,I as w};
1
+ import{d as l,v as h,t as k}from"./Dms_DO28.js";import{JH as s,vN as w}from"./D0qhIm1r.js";import{i as W,d as E,e as c,n as i,b as m}from"./8ItTOum-.js";const A=new Set(["new","creating"]);function g(n){let t;try{t=decodeURIComponent(n)}catch{return null}return t.length===0||A.has(t)?null:t}function f(n){const t=/^\/workspace\/([^/?#]+)\/?(?:[?#].*)?$/.exec(n);return t?g(t[1]):null}function I(n){const t=/^\/workspace\/([^/?#]+)(?:[/?#].*)?$/.exec(n);return t?g(t[1]):null}function J(n,t){return t.length>0&&I(n)===t}function p(){return typeof window>"u"?null:window.location?.pathname??null}function d(n,t){const e=`/workspace/${encodeURIComponent(n)}`,a=t?new URLSearchParams(t).toString():"";return a?`${e}?${a}`:e}function R(n,t){const e=t?.presenceFollowRequestId;return e?w(n,e):w(n)}function P(n,t){return t?i(n,{state:t}):i(n)}function o(n){return n?.tabState?.currentTabId??null}async function S(n,t,e,a){m();const u=P(t,e),r={workspaceId:n,epoch:c(),startTabId:a};return await u,r}function b(n){return!n||W()||E()}function y(n,t){if(c()!==n.epoch||t!==n.startTabId&&t!==n.workspaceId)return!1;const e=p();return e===null||f(e)===n.workspaceId}async function v(n,t,e){if(b(n))return!1;const a=await S(n,t,e,o(s.state));return y(a,o(s.state))?(s.dispatch(R(n,e)),!0):!1}function*T(n,t,e){if(b(n))return!1;const a=o(yield*h(r=>r)),u=yield*l(S,n,t,e,a);return y(u,o(yield*h(r=>r)))?(yield*k(R(n,e)),!0):!1}function _(){m();const n=c(),t=o(s.state),e=p();return()=>c()===n&&o(s.state)===t&&p()===e}function O(n,t={}){return v(n,d(n,t.query),t.state)}function $(n,t={}){return T(n,d(n,t.query),t.state)}async function N(n){const t=f(n);t?await v(t,n,void 0):await i(n)}function*j(n){const t=f(n);t?yield*l(T,t,n,void 0):yield*l(i,n)}const U=Object.freeze(Object.defineProperty({__proto__:null,claimNavigation:_,navigateToAppRoute:N,navigateToAppRouteSaga:j,openAndShowWorkspace:O,showWorkspaceSaga:$,workspaceRoute:d},Symbol.toStringTag,{value:"Module"}));export{p as a,j as b,_ as c,$ as d,d as e,J as i,N as n,O as o,f as p,U as s,I as w};
@@ -1,4 +1,4 @@
1
- import{b as p,ay as C,aX as H,W as _,r as q,a6 as G,B as U,aV as j,X as K}from"./DFNKkiho.js";var A="",M="",O="",D=[],b=new Map,v=p(e=>j(e,K()),"sanitizeText"),y=p(e=>{switch(e.type){case"terminal":return{...e,value:v(e.value)};case"nonterminal":return{...e,name:v(e.name)};case"sequence":return{...e,elements:e.elements.map(y)};case"choice":return{...e,alternatives:e.alternatives.map(y)};case"optional":return{...e,element:y(e.element)};case"repetition":return{...e,element:y(e.element),separator:e.separator?y(e.separator):void 0};case"special":return{...e,text:v(e.text)}}},"sanitizeAstNode"),J=p(()=>{A="",M="",O="",D.length=0,b.clear(),q(),C.debug("[Railroad] Database cleared")},"clear"),Y=p(e=>{A=v(e),C.debug("[Railroad] Title set:",e)},"setTitle"),P=p(()=>A,"getTitle"),Q=p(e=>{const i={...e,name:v(e.name),definition:y(e.definition),comment:e.comment?v(e.comment):void 0};C.debug("[Railroad] Adding rule:",i.name),b.has(i.name)&&C.warn(`[Railroad] Rule '${i.name}' is already defined. Overwriting.`),D.push(i),b.set(i.name,i)},"addRule"),Z=p(()=>D,"getRules"),V=p(e=>b.get(e),"getRule"),ee=p(e=>{M=v(e).replace(/^\s+/g,""),C.debug("[Railroad] Accessibility title set:",e)},"setAccTitle"),te=p(()=>M,"getAccTitle"),re=p(e=>{O=v(e).replace(/\n\s+/g,`
1
+ import{b as p,ay as C,aX as H,W as _,r as q,a6 as G,B as U,aV as j,X as K}from"./Bex9L_jH.js";var A="",M="",O="",D=[],b=new Map,v=p(e=>j(e,K()),"sanitizeText"),y=p(e=>{switch(e.type){case"terminal":return{...e,value:v(e.value)};case"nonterminal":return{...e,name:v(e.name)};case"sequence":return{...e,elements:e.elements.map(y)};case"choice":return{...e,alternatives:e.alternatives.map(y)};case"optional":return{...e,element:y(e.element)};case"repetition":return{...e,element:y(e.element),separator:e.separator?y(e.separator):void 0};case"special":return{...e,text:v(e.text)}}},"sanitizeAstNode"),J=p(()=>{A="",M="",O="",D.length=0,b.clear(),q(),C.debug("[Railroad] Database cleared")},"clear"),Y=p(e=>{A=v(e),C.debug("[Railroad] Title set:",e)},"setTitle"),P=p(()=>A,"getTitle"),Q=p(e=>{const i={...e,name:v(e.name),definition:y(e.definition),comment:e.comment?v(e.comment):void 0};C.debug("[Railroad] Adding rule:",i.name),b.has(i.name)&&C.warn(`[Railroad] Rule '${i.name}' is already defined. Overwriting.`),D.push(i),b.set(i.name,i)},"addRule"),Z=p(()=>D,"getRules"),V=p(e=>b.get(e),"getRule"),ee=p(e=>{M=v(e).replace(/^\s+/g,""),C.debug("[Railroad] Accessibility title set:",e)},"setAccTitle"),te=p(()=>M,"getAccTitle"),re=p(e=>{O=v(e).replace(/\n\s+/g,`
2
2
  `),C.debug("[Railroad] Accessibility description set:",e)},"setAccDescription"),ie=p(()=>O,"getAccDescription"),ae=Y,ne=P,oe={clear:J,setTitle:Y,getTitle:P,addRule:Q,getRules:Z,getRule:V,setAccTitle:ee,getAccTitle:te,setAccDescription:re,getAccDescription:ie,setDiagramTitle:ae,getDiagramTitle:ne},f={compactMode:!1,padding:10,verticalSeparation:8,horizontalSeparation:10,arcRadius:10,fontSize:14,fontFamily:"monospace",terminalFill:"#FFFFC0",terminalStroke:"#000000",terminalTextColor:"#000000",nonTerminalFill:"#FFFFFF",nonTerminalStroke:"#000000",nonTerminalTextColor:"#000000",lineColor:"#000000",strokeWidth:2,markerFill:"#000000",commentFill:"#E8E8E8",commentStroke:"#888888",commentTextColor:"#666666",specialFill:"#F0E0FF",specialStroke:"#8800CC",ruleNameColor:"#000066",showMarkers:!0,markerRadius:5},le=/^#(?:[\da-f]{3,4}|[\da-f]{6}|[\da-f]{8})$|^(?:rgb|rgba|hsl|hsla|hwb|lab|lch|oklab|oklch)\([\d\s%+,./-]+\)$|^[a-z]+$/i,se=/^[\w "',.-]+$/,de=new Set(["compactMode","padding","verticalSeparation","horizontalSeparation","arcRadius","fontSize","fontFamily","terminalFill","terminalStroke","terminalTextColor","nonTerminalFill","nonTerminalStroke","nonTerminalTextColor","lineColor","strokeWidth","markerFill","commentFill","commentStroke","commentTextColor","specialFill","specialStroke","ruleNameColor","showMarkers","markerRadius"]),L=p(e=>e?Object.keys(e).every(i=>i==="railroad"||de.has(i)):!1,"isRailroadStyleOptions"),ce=p(e=>e?"railroad"in e&&e.railroad?e.railroad:L(e)?e:{}:{},"extractRailroadOverrides"),me=p(e=>{if(!e||L(e))return{};const{railroad:i,svgId:n,theme:a,look:t,...r}=e;return r},"extractThemeOverrides"),m=p((e,i)=>{if(typeof e!="string")return i;const n=e.trim();return le.test(n)?n:i},"sanitizeColorValue"),X=p((e,i)=>{if(typeof e!="string")return i;const n=e.trim();return se.test(n)?n:i},"sanitizeFontFamilyValue"),F=p((e,i)=>{const n=typeof e=="number"?e:typeof e=="string"?Number.parseFloat(e):Number.NaN;return Number.isFinite(n)&&n>=0?n:i},"sanitizeNumberValue"),he=p(e=>{const i=typeof e=="number"?e:typeof e=="string"?Number.parseFloat(e):Number.NaN;return Number.isFinite(i)&&i>0?i:void 0},"parseThemeFontSize"),pe=p(e=>{const i=X(e.fontFamily,f.fontFamily),n=he(e.fontSize)??f.fontSize;return{...f,fontFamily:i,fontSize:n,terminalFill:m(e.secondBkg??e.secondaryColor,f.terminalFill),terminalStroke:m(e.secondaryBorderColor??e.lineColor,f.terminalStroke),terminalTextColor:m(e.secondaryTextColor??e.textColor,f.terminalTextColor),nonTerminalFill:m(e.mainBkg??e.background,f.nonTerminalFill),nonTerminalStroke:m(e.primaryBorderColor??e.lineColor,f.nonTerminalStroke),nonTerminalTextColor:m(e.primaryTextColor??e.textColor,f.nonTerminalTextColor),lineColor:m(e.lineColor,f.lineColor),markerFill:m(e.lineColor,f.markerFill),commentFill:m(e.labelBackground??e.tertiaryColor,f.commentFill),commentStroke:m(e.tertiaryBorderColor??e.lineColor,f.commentStroke),commentTextColor:m(e.tertiaryTextColor??e.textColor,f.commentTextColor),specialFill:m(e.tertiaryColor??e.secondaryColor,f.specialFill),specialStroke:m(e.tertiaryBorderColor??e.secondaryBorderColor,f.specialStroke),ruleNameColor:m(e.titleColor??e.textColor,f.ruleNameColor)}},"buildThemeDefaults"),E=p(e=>{const i=_(),n={...G(),...i.themeVariables??{},...me(e)},a=pe(n),t={...i.railroad??{},...ce(e)};return{compactMode:t.compactMode??a.compactMode,padding:F(t.padding,a.padding),verticalSeparation:F(t.verticalSeparation,a.verticalSeparation),horizontalSeparation:F(t.horizontalSeparation,a.horizontalSeparation),arcRadius:F(t.arcRadius,a.arcRadius),fontSize:F(t.fontSize,a.fontSize),fontFamily:X(t.fontFamily,a.fontFamily),terminalFill:m(t.terminalFill,a.terminalFill),terminalStroke:m(t.terminalStroke,a.terminalStroke),terminalTextColor:m(t.terminalTextColor,a.terminalTextColor),nonTerminalFill:m(t.nonTerminalFill,a.nonTerminalFill),nonTerminalStroke:m(t.nonTerminalStroke,a.nonTerminalStroke),nonTerminalTextColor:m(t.nonTerminalTextColor,a.nonTerminalTextColor),lineColor:m(t.lineColor,a.lineColor),strokeWidth:F(t.strokeWidth,a.strokeWidth),markerFill:m(t.markerFill,a.markerFill),commentFill:m(t.commentFill,a.commentFill),commentStroke:m(t.commentStroke,a.commentStroke),commentTextColor:m(t.commentTextColor,a.commentTextColor),specialFill:m(t.specialFill,a.specialFill),specialStroke:m(t.specialStroke,a.specialStroke),ruleNameColor:m(t.ruleNameColor,a.ruleNameColor),showMarkers:t.showMarkers??a.showMarkers,markerRadius:F(t.markerRadius,a.markerRadius)}},"buildRailroadStyleOptions"),Te=p(e=>{const{fontFamily:i,fontSize:n,terminalFill:a,terminalStroke:t,terminalTextColor:r,nonTerminalFill:o,nonTerminalStroke:g,nonTerminalTextColor:l,lineColor:s,strokeWidth:h,markerFill:u,commentFill:c,commentStroke:w,commentTextColor:d,specialFill:T,specialStroke:z,ruleNameColor:S}=E(e);return`
3
3
  .railroad-diagram {
4
4
  font-family: ${i};
@@ -1,4 +1,4 @@
1
- import{p as tt}from"./CSzXeH2S.js";import{U as et,aZ as at,V as rt,a_ as it,Y as nt,b0 as ot,b as l,ay as E,X as st,q as lt,aX as ct,aH as dt,d as I,B as gt,r as ht,aJ as pt,O as ft}from"./DFNKkiho.js";import{p as ut}from"./BBfR26V0.js";import{o as mt}from"./DYzxLuOL.js";var vt=ft.pie,R={sections:new Map,showData:!1},b=R.sections,H=R.showData,St=structuredClone(vt),xt=l(()=>structuredClone(St),"getConfig"),wt=l(()=>{b=new Map,H=R.showData,ht()},"clear"),$t=l(({label:t,value:a})=>{if(a<0)throw new Error(`"${t}" has invalid value: ${a}. Negative values are not allowed in pie charts. All slice values must be >= 0.`);b.has(t)||(b.set(t,a),E.debug(`added new section: ${t}, with value: ${a}`))},"addSection"),Ct=l(()=>b,"getSections"),yt=l(t=>{H=t},"setShowData"),Dt=l(()=>H,"getShowData"),U={getConfig:xt,clear:wt,setDiagramTitle:ot,getDiagramTitle:nt,setAccTitle:it,getAccTitle:rt,setAccDescription:at,getAccDescription:et,addSection:$t,getSections:Ct,setShowData:yt,getShowData:Dt},bt=l((t,a)=>{tt(t,a),a.setShowData(t.showData),t.sections.map(a.addSection)},"populateDb"),Tt={parse:l(async t=>{const a=await ut("pie",t);E.debug(a),bt(a,U)},"parse")},At=l(t=>`
1
+ import{p as tt}from"./DdpYiyRs.js";import{U as et,aZ as at,V as rt,a_ as it,Y as nt,b0 as ot,b as l,ay as E,X as st,q as lt,aX as ct,aH as dt,d as I,B as gt,r as ht,aJ as pt,O as ft}from"./Bex9L_jH.js";import{p as ut}from"./BBfR26V0.js";import{o as mt}from"./DvXSJM4q.js";var vt=ft.pie,R={sections:new Map,showData:!1},b=R.sections,H=R.showData,St=structuredClone(vt),xt=l(()=>structuredClone(St),"getConfig"),wt=l(()=>{b=new Map,H=R.showData,ht()},"clear"),$t=l(({label:t,value:a})=>{if(a<0)throw new Error(`"${t}" has invalid value: ${a}. Negative values are not allowed in pie charts. All slice values must be >= 0.`);b.has(t)||(b.set(t,a),E.debug(`added new section: ${t}, with value: ${a}`))},"addSection"),Ct=l(()=>b,"getSections"),yt=l(t=>{H=t},"setShowData"),Dt=l(()=>H,"getShowData"),U={getConfig:xt,clear:wt,setDiagramTitle:ot,getDiagramTitle:nt,setAccTitle:it,getAccTitle:rt,setAccDescription:at,getAccDescription:et,addSection:$t,getSections:Ct,setShowData:yt,getShowData:Dt},bt=l((t,a)=>{tt(t,a),a.setShowData(t.showData),t.sections.map(a.addSection)},"populateDb"),Tt={parse:l(async t=>{const a=await ut("pie",t);E.debug(a),bt(a,U)},"parse")},At=l(t=>`
2
2
  .pieCircle{
3
3
  stroke: ${t.pieStrokeColor};
4
4
  stroke-width : ${t.pieStrokeWidth};
@@ -1,4 +1,4 @@
1
- import{b as o,X as ot,aH as ut,aX as dt,i as yt,r as ft,z as pt,b0 as it,V as gt,a_ as kt,U as mt,aZ as wt,Y as _t,B as bt}from"./DFNKkiho.js";var J=(function(){var e=o(function(T,t,s,i){for(s=s||{},i=T.length;i--;s[T[i]]=t);return s},"o"),h=[1,4],r=[1,14],a=[1,12],l=[1,13],y=[6,7,8],f=[1,20],d=[1,18],m=[1,19],u=[6,7,11],k=[1,6,13,14],g=[1,23],_=[1,24],x=[1,6,7,11,13,14],D={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ishikawa:4,spaceLines:5,SPACELINE:6,NL:7,ISHIKAWA:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,TEXT:14,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"ISHIKAWA",11:"EOF",13:"SPACELIST",14:"TEXT"},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,1],[12,1],[12,1]],performAction:o(function(t,s,i,c,p,n,v){var w=n.length-1;switch(p){case 6:case 7:return c;case 15:c.addNode(n[w-1].length,n[w].trim());break;case 16:c.addNode(0,n[w].trim());break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:h},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:h},{6:r,7:[1,10],9:9,12:11,13:a,14:l},e(y,[2,3]),{1:[2,2]},e(y,[2,4]),e(y,[2,5]),{1:[2,6],6:r,12:15,13:a,14:l},{6:r,9:16,12:11,13:a,14:l},{6:f,7:d,10:17,11:m},e(u,[2,18],{14:[1,21]}),e(u,[2,16]),e(u,[2,17]),{6:f,7:d,10:22,11:m},{1:[2,7],6:r,12:15,13:a,14:l},e(k,[2,14],{7:g,11:_}),e(x,[2,8]),e(x,[2,9]),e(x,[2,10]),e(u,[2,15]),e(k,[2,13],{7:g,11:_}),e(x,[2,11]),e(x,[2,12])],defaultActions:{2:[2,1],6:[2,2]},parseError:o(function(t,s){if(s.recoverable)this.trace(t);else{var i=new Error(t);throw i.hash=s,i}},"parseError"),parse:o(function(t){var s=this,i=[0],c=[],p=[null],n=[],v=this.table,w="",I=0,$=0,L=2,A=1,V=n.slice.call(arguments,1),b=Object.create(this.lexer),S={yy:{}};for(var B in this.yy)Object.prototype.hasOwnProperty.call(this.yy,B)&&(S.yy[B]=this.yy[B]);b.setInput(t,S.yy),S.yy.lexer=b,S.yy.parser=this,typeof b.yylloc>"u"&&(b.yylloc={});var R=b.yylloc;n.push(R);var U=b.options&&b.options.ranges;typeof S.yy.parseError=="function"?this.parseError=S.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Y(P){i.length=i.length-2*P,p.length=p.length-P,n.length=n.length-P}o(Y,"popStack");function tt(){var P;return P=c.pop()||b.lex()||A,typeof P!="number"&&(P instanceof Array&&(c=P,P=c.pop()),P=s.symbols_[P]||P),P}o(tt,"lex");for(var M,W,N,K,z={},G,C,et,X;;){if(W=i[i.length-1],this.defaultActions[W]?N=this.defaultActions[W]:((M===null||typeof M>"u")&&(M=tt()),N=v[W]&&v[W][M]),typeof N>"u"||!N.length||!N[0]){var q="";X=[];for(G in v[W])this.terminals_[G]&&G>L&&X.push("'"+this.terminals_[G]+"'");b.showPosition?q="Parse error on line "+(I+1)+`:
1
+ import{b as o,X as ot,aH as ut,aX as dt,i as yt,r as ft,z as pt,b0 as it,V as gt,a_ as kt,U as mt,aZ as wt,Y as _t,B as bt}from"./Bex9L_jH.js";var J=(function(){var e=o(function(T,t,s,i){for(s=s||{},i=T.length;i--;s[T[i]]=t);return s},"o"),h=[1,4],r=[1,14],a=[1,12],l=[1,13],y=[6,7,8],f=[1,20],d=[1,18],m=[1,19],u=[6,7,11],k=[1,6,13,14],g=[1,23],_=[1,24],x=[1,6,7,11,13,14],D={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ishikawa:4,spaceLines:5,SPACELINE:6,NL:7,ISHIKAWA:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,TEXT:14,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"ISHIKAWA",11:"EOF",13:"SPACELIST",14:"TEXT"},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,1],[12,1],[12,1]],performAction:o(function(t,s,i,c,p,n,v){var w=n.length-1;switch(p){case 6:case 7:return c;case 15:c.addNode(n[w-1].length,n[w].trim());break;case 16:c.addNode(0,n[w].trim());break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:h},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:h},{6:r,7:[1,10],9:9,12:11,13:a,14:l},e(y,[2,3]),{1:[2,2]},e(y,[2,4]),e(y,[2,5]),{1:[2,6],6:r,12:15,13:a,14:l},{6:r,9:16,12:11,13:a,14:l},{6:f,7:d,10:17,11:m},e(u,[2,18],{14:[1,21]}),e(u,[2,16]),e(u,[2,17]),{6:f,7:d,10:22,11:m},{1:[2,7],6:r,12:15,13:a,14:l},e(k,[2,14],{7:g,11:_}),e(x,[2,8]),e(x,[2,9]),e(x,[2,10]),e(u,[2,15]),e(k,[2,13],{7:g,11:_}),e(x,[2,11]),e(x,[2,12])],defaultActions:{2:[2,1],6:[2,2]},parseError:o(function(t,s){if(s.recoverable)this.trace(t);else{var i=new Error(t);throw i.hash=s,i}},"parseError"),parse:o(function(t){var s=this,i=[0],c=[],p=[null],n=[],v=this.table,w="",I=0,$=0,L=2,A=1,V=n.slice.call(arguments,1),b=Object.create(this.lexer),S={yy:{}};for(var B in this.yy)Object.prototype.hasOwnProperty.call(this.yy,B)&&(S.yy[B]=this.yy[B]);b.setInput(t,S.yy),S.yy.lexer=b,S.yy.parser=this,typeof b.yylloc>"u"&&(b.yylloc={});var R=b.yylloc;n.push(R);var U=b.options&&b.options.ranges;typeof S.yy.parseError=="function"?this.parseError=S.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Y(P){i.length=i.length-2*P,p.length=p.length-P,n.length=n.length-P}o(Y,"popStack");function tt(){var P;return P=c.pop()||b.lex()||A,typeof P!="number"&&(P instanceof Array&&(c=P,P=c.pop()),P=s.symbols_[P]||P),P}o(tt,"lex");for(var M,W,N,K,z={},G,C,et,X;;){if(W=i[i.length-1],this.defaultActions[W]?N=this.defaultActions[W]:((M===null||typeof M>"u")&&(M=tt()),N=v[W]&&v[W][M]),typeof N>"u"||!N.length||!N[0]){var q="";X=[];for(G in v[W])this.terminals_[G]&&G>L&&X.push("'"+this.terminals_[G]+"'");b.showPosition?q="Parse error on line "+(I+1)+`:
2
2
  `+b.showPosition()+`
3
3
  Expecting `+X.join(", ")+", got '"+(this.terminals_[M]||M)+"'":q="Parse error on line "+(I+1)+": Unexpected "+(M==A?"end of input":"'"+(this.terminals_[M]||M)+"'"),this.parseError(q,{text:b.match,token:this.terminals_[M]||M,line:b.yylineno,loc:R,expected:X})}if(N[0]instanceof Array&&N.length>1)throw new Error("Parse Error: multiple actions possible at state: "+W+", token: "+M);switch(N[0]){case 1:i.push(M),p.push(b.yytext),n.push(b.yylloc),i.push(N[1]),M=null,$=b.yyleng,w=b.yytext,I=b.yylineno,R=b.yylloc;break;case 2:if(C=this.productions_[N[1]][1],z.$=p[p.length-C],z._$={first_line:n[n.length-(C||1)].first_line,last_line:n[n.length-1].last_line,first_column:n[n.length-(C||1)].first_column,last_column:n[n.length-1].last_column},U&&(z._$.range=[n[n.length-(C||1)].range[0],n[n.length-1].range[1]]),K=this.performAction.apply(z,[w,$,I,S.yy,N[1],p,n].concat(V)),typeof K<"u")return K;C&&(i=i.slice(0,-1*C*2),p=p.slice(0,-1*C),n=n.slice(0,-1*C)),i.push(this.productions_[N[1]][0]),p.push(z.$),n.push(z._$),et=v[i[i.length-2]][i[i.length-1]],i.push(et);break;case 3:return!0}}return!0},"parse")},O=(function(){var T={EOF:1,parseError:o(function(s,i){if(this.yy.parser)this.yy.parser.parseError(s,i);else throw new Error(s)},"parseError"),setInput:o(function(t,s){return this.yy=s||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:o(function(){var t=this._input[0];this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t;var s=t.match(/(?:\r\n?|\n).*/g);return s?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:o(function(t){var s=t.length,i=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-s),this.offset-=s;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),i.length-1&&(this.yylineno-=i.length-1);var p=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:i?(i.length===c.length?this.yylloc.first_column:0)+c[c.length-i.length].length-i[0].length:this.yylloc.first_column-s},this.options.ranges&&(this.yylloc.range=[p[0],p[0]+this.yyleng-s]),this.yyleng=this.yytext.length,this},"unput"),more:o(function(){return this._more=!0,this},"more"),reject:o(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
4
  `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:o(function(t){this.unput(this.match.slice(t))},"less"),pastInput:o(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var t=this.pastInput(),s=new Array(t.length+1).join("-");return t+this.upcomingInput()+`
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/Dgvdn_ax.js","/app/immutable/chunks/Fcr7AvC-.js","/app/immutable/chunks/3SdAC2_C.js","/app/immutable/chunks/BhYXv0ZM.js","/app/immutable/chunks/Cc0763mU.js","/app/immutable/chunks/Bwa2n5jC.js","/app/immutable/chunks/CA6H1-bp.js","/app/immutable/chunks/CWfjuhY2.js","/app/immutable/chunks/BRCr02in.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/2z64ELW5.js","/app/immutable/chunks/DkQdSPDN.js","/app/immutable/chunks/Bqd7fdCF.js","/app/immutable/chunks/Beq_QLuz.js","/app/immutable/chunks/Dn334wJv.js","/app/immutable/chunks/BAtAwQ72.js","/app/immutable/chunks/TdGvVwuC.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/C7b3vXLD.js","/app/immutable/chunks/DRMe5Ypb.js","/app/immutable/chunks/D0qhIm1r.js","/app/immutable/chunks/Dms_DO28.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/BS1zON0P.js","/app/immutable/chunks/DxwfiAWm.js","/app/immutable/chunks/D9tVylVS.js","/app/immutable/chunks/ChHRVjww.js","/app/immutable/chunks/CxR-pcVt.js","/app/immutable/chunks/DU3vNstz.js","/app/immutable/chunks/XJv96NUg.js","/app/immutable/assets/notify.DylRFR3N.css","/app/immutable/chunks/D7KhILhs.js","/app/immutable/chunks/DfINI0LK.js","/app/immutable/chunks/C3KgmGxd.js","/app/immutable/chunks/x4bPxhVW.js","/app/immutable/chunks/CWtyXmQ4.js","/app/immutable/chunks/Cz3WzTlQ.js","/app/immutable/assets/menu-footer.Ck5GCpgU.css","/app/immutable/chunks/O5ZlQHf9.js","/app/immutable/assets/dialog.BtQTVchw.css","/app/immutable/chunks/BzXQ5SMs.js","/app/immutable/assets/confirm.UE5obH5A.css","/app/immutable/chunks/B8m3-qrW.js","/app/immutable/chunks/CpK0xLH4.js","/app/immutable/chunks/C2RnxEnO.js","/app/immutable/chunks/gNR_yDDX.js","/app/immutable/chunks/BjLb7AHW.js","/app/immutable/chunks/UWtWVoQE.js","/app/immutable/chunks/DAsc1V4f.js","/app/immutable/chunks/BsieX9dN.js","/app/immutable/chunks/iMqZaR5X.js","/app/immutable/assets/SettingsPage.CKvEnOAL.css","/app/immutable/chunks/Cp4SiU7R.js","/app/immutable/chunks/goTpbPhD.js","/app/immutable/chunks/CA5vNvRD.js","/app/immutable/chunks/B0SSzYpD.js","/app/immutable/chunks/B5aYN90J.js","/app/immutable/chunks/BdWqymET.js","/app/immutable/chunks/BBWuirRW.js","/app/immutable/chunks/DONrLvvt.js","/app/immutable/chunks/CZfU7DE3.js","/app/immutable/chunks/cD292w1o.js","/app/immutable/chunks/BwweojP5.js","/app/immutable/chunks/D-62MVd3.js","/app/immutable/chunks/Bh3yfjRP.js","/app/immutable/chunks/CL3a4Hm1.js","/app/immutable/chunks/DbB491_u.js","/app/immutable/chunks/CMiilI_P.js","/app/immutable/chunks/CC7to1B5.js","/app/immutable/chunks/DlnCrS3y.js","/app/immutable/chunks/BuM8LV7z.js","/app/immutable/chunks/_IjN0Lbt.js","/app/immutable/chunks/CH7HNVC2.js","/app/immutable/chunks/DejjV5ft.js","/app/immutable/chunks/CccfsETL.js","/app/immutable/chunks/DKwAaLwd.js","/app/immutable/chunks/koUs6Gjt.js","/app/immutable/assets/slider.kL-wkHnx.css","/app/immutable/chunks/CVx5OKWy.js","/app/immutable/chunks/DIME5LWK.js","/app/immutable/chunks/dvKmN4h6.js","/app/immutable/chunks/CQcEqK4G.js","/app/immutable/chunks/f5b-J-bi.js","/app/immutable/chunks/Ch9YoFhc.js","/app/immutable/chunks/Y8hdNZSZ.js","/app/immutable/chunks/BQ5x_RaT.js","/app/immutable/chunks/lK1e5NlM.js","/app/immutable/assets/DockScreenshotEditorWindow.DNkBhnHK.css","/app/immutable/assets/dock-tokens.C3wiNkmL.css","/app/immutable/chunks/D-j7vD5Z.js","/app/immutable/chunks/PejVYY2W.js","/app/immutable/chunks/CTkkv_Ih.js","/app/immutable/chunks/BJIUXUAo.js","/app/immutable/assets/select-viewport.CV-KWLNP.css","/app/immutable/chunks/COmspkQo.js","/app/immutable/chunks/DWjpzYNk.js","/app/immutable/chunks/B2-ooCTr.js","/app/immutable/chunks/Dbqo6rfT.js","/app/immutable/chunks/BzW_moTi.js","/app/immutable/chunks/MFTfhUYi.js","/app/immutable/chunks/Xr-aTNRN.js","/app/immutable/chunks/Tgw7Kdvt.js","/app/immutable/chunks/DcrCEeFN.js","/app/immutable/chunks/BnnKw3Va.js","/app/immutable/chunks/OuI4JmWC.js","/app/immutable/chunks/DY9w61PC.js","/app/immutable/chunks/DotCIVLI.js","/app/immutable/chunks/B0Z-1lwJ.js","/app/immutable/chunks/CDcxODgf.js","/app/immutable/chunks/ZmAQurQV.js","/app/immutable/chunks/BKGQPtRi.js","/app/immutable/assets/checkbox.D429NJZk.css","/app/immutable/assets/directory-picker-service.uzk1xoHg.css","/app/immutable/chunks/ZIePA90q.js","/app/immutable/chunks/D_jEt7ej.js","/app/immutable/chunks/DEsM7h8K.js","/app/immutable/chunks/CLX81MHV.js","/app/immutable/chunks/DON9zoQ1.js","/app/immutable/assets/AgentAvatar.CZKKHyEm.css","/app/immutable/assets/avatar-state.BzFIexJN.css","/app/immutable/chunks/DJZIHUd7.js","/app/immutable/assets/TipTapEditor.BmeA7Qtk.css","/app/immutable/chunks/jphlY6bT.js","/app/immutable/chunks/BusD2v6a.js","/app/immutable/chunks/BpFxCD0b.js","/app/immutable/assets/image-context-items.D_hsaikk.css","/app/immutable/chunks/DUcJILSg.js","/app/immutable/chunks/9ryMZ44V.js","/app/immutable/assets/AttachmentPreview.DWUPhcKi.css","/app/immutable/chunks/DuFY1gwd.js","/app/immutable/chunks/C7MFACZg.js","/app/immutable/chunks/vq6mxGLA.js","/app/immutable/chunks/Bu13V5mO.js","/app/immutable/chunks/D179JMBI.js","/app/immutable/chunks/CzK_7_Jd.js","/app/immutable/chunks/CPav-V5t.js","/app/immutable/chunks/C8PR5GO9.js","/app/immutable/chunks/BKD7o1lQ.js","/app/immutable/assets/TaskStatusIcon.sfU2TZ7a.css","/app/immutable/chunks/DTNrtzyx.js","/app/immutable/chunks/2OP7IVCM.js","/app/immutable/chunks/BDQvAsU6.js","/app/immutable/assets/AgentCard.Cna0hri3.css","/app/immutable/chunks/DNup87JQ.js","/app/immutable/chunks/DEB8jcix.js","/app/immutable/chunks/lwn02icp.js","/app/immutable/chunks/BdWMbiFk.js","/app/immutable/assets/TrackedChangeDiffViewer.CveSjyPc.css","/app/immutable/chunks/D6H34kDj.js","/app/immutable/chunks/C1SGWBXH.js","/app/immutable/chunks/CcNhqKh5.js","/app/immutable/assets/syntax-highlighting.CrQGLq0X.css","/app/immutable/assets/CodeBlock.BezhEtUo.css","/app/immutable/chunks/DFNKkiho.js","/app/immutable/chunks/BbIcudMY.js","/app/immutable/chunks/DhXSKt_a.js","/app/immutable/assets/DiagramPresentation.C2GLYoBN.css","/app/immutable/chunks/BGSmaq6H.js","/app/immutable/chunks/CcBmcC9f.js","/app/immutable/chunks/DgAgTFcK.js","/app/immutable/chunks/C-BsEdGZ.js","/app/immutable/chunks/Cdw7QKyr.js","/app/immutable/assets/MarkdownViewer.D2MexjjT.css","/app/immutable/chunks/QKQvZF-2.js","/app/immutable/chunks/CCAtqaSn.js","/app/immutable/chunks/KRACSBb9.js","/app/immutable/chunks/CGJ5yTzR.js","/app/immutable/assets/workspace-key-menu.DrT-Fxqq.css","/app/immutable/chunks/A0p6PvBn.js","/app/immutable/chunks/YqTahsxp.js","/app/immutable/chunks/DMOXpjfz.js","/app/immutable/chunks/C8OXQeb2.js","/app/immutable/chunks/DDDvNwR-.js","/app/immutable/assets/StreamingDiagramRenderer.BShsSvPz.css","/app/immutable/assets/chat-search.Cjb73igJ.css","/app/immutable/chunks/DdU2snxg.js","/app/immutable/chunks/BmqZzhgO.js","/app/immutable/chunks/BonA_mfc.js","/app/immutable/chunks/ByvcSsIj.js","/app/immutable/chunks/D4WPlvMg.js","/app/immutable/chunks/i2Q0D3-m.js","/app/immutable/chunks/CUiYYsIq.js","/app/immutable/chunks/OqslD7bF.js","/app/immutable/chunks/B0oQ37UY.js","/app/immutable/chunks/C6Af0QaF.js","/app/immutable/assets/AgentAvatarStack.DOhClFuX.css","/app/immutable/chunks/T6UBEOFc.js","/app/immutable/assets/conversation-turns.P_pkAsRX.css","/app/immutable/chunks/ghzRmqKs.js","/app/immutable/chunks/D9gMMVdB.js","/app/immutable/chunks/iViWtmHm.js","/app/immutable/chunks/gKdztwD8.js","/app/immutable/chunks/DHMxSQaO.js","/app/immutable/chunks/CeHL-3WK.js","/app/immutable/chunks/a3O-Ns1M.js","/app/immutable/chunks/Ce-va2I0.js","/app/immutable/chunks/H2jLkRRS.js","/app/immutable/chunks/Dk9lUzSs.js","/app/immutable/assets/WorkspaceSetupCard.DNLkSKZg.css","/app/immutable/chunks/52kdRKiP.js","/app/immutable/chunks/DL6gGkHp.js","/app/immutable/assets/DockRecordingEditor.BX1NXczK.css","/app/immutable/chunks/CXygwMkb.js","/app/immutable/chunks/BVhnyyZ7.js","/app/immutable/chunks/C9iwh4F-.js","/app/immutable/assets/ChatPanel.B73KM22O.css","/app/immutable/assets/HomeWorkspaceDetail.Dp5EWw2P.css","/app/immutable/chunks/D_R1vNH8.js","/app/immutable/chunks/iNacp7Sr.js","/app/immutable/chunks/CQ409-Pj.js","/app/immutable/chunks/u_H5ILVa.js","/app/immutable/chunks/CXXVPWBH.js","/app/immutable/chunks/DWGXN6Nr.js","/app/immutable/chunks/50HYkjWD.js","/app/immutable/chunks/s_T1Uukt.js","/app/immutable/chunks/DdYVblGk.js","/app/immutable/assets/BrowserTabType.DojB6H-_.css","/app/immutable/chunks/BSMi55yC.js","/app/immutable/chunks/H8hIaDaV.js","/app/immutable/chunks/D3yXvqwY.js","/app/immutable/chunks/DP31pjuo.js","/app/immutable/chunks/Bw-Zu1Zf.js","/app/immutable/chunks/BYfDvU8j.js","/app/immutable/chunks/D8cNe_33.js","/app/immutable/chunks/BFO-Le8U.js","/app/immutable/assets/register.CUyDR59i.css","/app/immutable/assets/terminal-manager.MhP_vFvK.css","/app/immutable/chunks/CtzbB_EQ.js","/app/immutable/assets/confirm-script-deletion.CqNa5NIC.css","/app/immutable/chunks/D5ocbEo-.js","/app/immutable/assets/Terminal.Ddek5eNE.css","/app/immutable/chunks/DL__HI6l.js","/app/immutable/chunks/C13CRqsS.js","/app/immutable/chunks/BPFSAjsd.js","/app/immutable/chunks/ZfkZCfTr.js","/app/immutable/chunks/BB5TUToP.js","/app/immutable/chunks/Bvwrya09.js","/app/immutable/chunks/DaTkisKB.js","/app/immutable/chunks/CSiaiLHL.js","/app/immutable/chunks/DepS1LOg.js","/app/immutable/chunks/B_QPRXJ5.js","/app/immutable/chunks/WWDClKTE.js","/app/immutable/chunks/BIv0yV05.js","/app/immutable/chunks/BO4HougN.js","/app/immutable/chunks/B9NjB9vD.js","/app/immutable/assets/AgentOverviewTabType.DU1WpoFR.css","/app/immutable/chunks/DaTwSOqs.js","/app/immutable/chunks/BlVpCoL1.js","/app/immutable/chunks/CdtwTpzR.js","/app/immutable/chunks/BdlwjSpf.js","/app/immutable/chunks/U5o8u-di.js","/app/immutable/assets/DiscussionTabType.D3Laoutn.css","/app/immutable/chunks/BE3g5vcj.js","/app/immutable/chunks/CRm25OCR.js","/app/immutable/chunks/Rq6GuI3F.js","/app/immutable/assets/CodeEditor.Bq04Rj-N.css","/app/immutable/chunks/DjAFd7Fr.js","/app/immutable/assets/LineChangesBadge.CJ0J_Z0k.css","/app/immutable/chunks/ByaJIEgQ.js","/app/immutable/assets/NoteTabType.AG_iwaNn.css","/app/immutable/chunks/DA3tGWzX.js","/app/immutable/chunks/wEnqV1Ol.js","/app/immutable/chunks/CDtaIFAl.js","/app/immutable/chunks/f0WUpIfB.js","/app/immutable/assets/FileTabType.BUKcoHE1.css","/app/immutable/chunks/KvfW-q1N.js","/app/immutable/chunks/BTE0066U.js","/app/immutable/chunks/B6wkNYPs.js","/app/immutable/chunks/BVBh582U.js","/app/immutable/assets/ChatChangesPanel.BQqG1JnE.css","/app/immutable/chunks/Dhs7RSq9.js","/app/immutable/chunks/gXHlCg5O.js","/app/immutable/chunks/CewZlXwy.js","/app/immutable/chunks/B6Qz5J1y.js","/app/immutable/chunks/W7uazUja.js","/app/immutable/chunks/YsAO4v_N.js","/app/immutable/chunks/BZ9svoQk.js"])))=>i.map(i=>d[i]);
2
- import{bm as e,_ as c,t as Te,bo as ie,bw as he,b as ke}from"./Fcr7AvC-.js";import{t as u}from"./BCw-LKCu.js";import{bD as ue,bv as Ve,cK as Ne,aO as $e,cn as Me,aV as ge,bg as Ke,aN as Be,aM as Ge,bs as He,bL as qe,b_ as Fe,bJ as je,F as Ue}from"./ChHRVjww.js";import{R as H}from"./CCSQmeuF.js";import{bs as we,ca as Q,bH as v,aD as t,bV as K,br as ze,a7 as q,ay as M,W as p,bn as Le,c9 as b,aA as ne,a5 as X,bA as Z,bS as ye,aw as Ye,aB as W,be as F,b$ as x,b_ as I,bO as E,bl as Je,bk as Qe}from"./3SdAC2_C.js";import{i as D}from"./BhYXv0ZM.js";import{s as fe}from"./BRCr02in.js";import{L as me}from"./BpFxCD0b.js";import{C as Xe,L as be}from"./D7KhILhs.js";import{I as Ze}from"./C3KgmGxd.js";import"./x4bPxhVW.js";import"./BzXQ5SMs.js";import{f as le}from"./Beq_QLuz.js";import{v as Ie}from"./BAtAwQ72.js";import"./O5ZlQHf9.js";import"./CWfjuhY2.js";import{I as ve}from"./CA6H1-bp.js";import{I as et}from"./Bqd7fdCF.js";import"./TdGvVwuC.js";import{a as tt}from"./BdWqymET.js";function xt(){u.register({type:"workspace",loadComponent:()=>c(()=>import("./Dgvdn_ax.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208]),import.meta.url),defaultWidthTier:"wide",icon:ue,get defaultTitle(){return e.workspace_page_workspaceResource_label()},get categoryLabel(){return e.workspace_page_workspaceResource_label()},renameable:!1}),u.register({type:"browser",loadComponent:()=>c(()=>import("./D_R1vNH8.js"),__vite__mapDeps([209,1,2,3,11,6,7,8,9,10,15,210,22,23,24,25,26,18,13,4,70,14,16,17,19,12,20,21,27,28,29,30,31,32,45,33,34,35,36,37,38,39,40,41,42,43,44,46,58,71,63,62,64,67,60,59,72,73,74,75,76,77,180,91,57,61,181,211,122,212,124,52,135,85,213,98,99,214,106,107,108,109,110,215,216,101,217,218]),import.meta.url),defaultWidthTier:"wide",icon:Ve,get defaultTitle(){return e.layout_tabTypes_browser_title()},get categoryLabel(){return e.layout_tabTypes_browser_category()},sidebarTabId:"browser",renameable:!1}),u.register({type:"terminal",loadComponent:()=>c(()=>import("./BSMi55yC.js"),__vite__mapDeps([219,1,2,3,4,11,28,7,8,9,10,6,63,18,22,23,24,25,26,13,62,16,17,19,64,20,220,15,221,222,59,60,57,58,61,223,224,225,226,227,109,211,190,228,14,12,21,27,29,30,31,32,212,229,71,67,72,73,74,75,76,77,36,42,43,40,41,216,230,38,35,39,135,33,34,37,44,45,46,214,231,148,232,233,101,217]),import.meta.url),defaultWidthTier:"medium",icon:Ne,get defaultTitle(){return e.layout_tabTypes_terminal_title()},get categoryLabel(){return e.layout_tabTypes_terminal_category()},sidebarTabId:"terminals",renameable:!1}),u.register({type:"code-review",loadComponent:()=>c(()=>import("./C13CRqsS.js"),__vite__mapDeps([234,1,2,22,23,24,25,9,7,26,18,13,3,29,6,8,10,63,62,28,11,16,17,19,64,20,215,73,75,91,71,67,60,59,72,74,58,76,77,57,61,216,180,12,14,15,4,21,27,30,31,32,181,101,235,236,177,83,86,178,179,129,131,132,141,229,166,237,217,238,36,42,43,40,41,110,109,171,205,190,212,142,134,70,239,240,241,242,243,198,150,106,107,108,244,245,223,224,225,226,227,139,152,153,35,163,81,68,69,33,34,37,38,39,44,45,46,78,79,80,50,51,116,164,124,52]),import.meta.url),defaultWidthTier:"wide",icon:$e,get defaultTitle(){return e.layout_tabTypes_codeReview_title()},get categoryLabel(){return e.layout_tabTypes_codeReview_category()},renameable:!1}),u.register({type:"agent-overview",loadComponent:()=>c(()=>import("./B9NjB9vD.js"),__vite__mapDeps([246,1,2,3,6,7,8,9,10,15,14,16,13,17,18,19,11,4,118,119,120,72,22,23,24,25,26,73,62,74,63,28,64,20,75,58,121,12,21,27,29,30,31,32,157,80,51,177,83,86,67,60,59,178,179,129,91,71,76,77,57,61,131,132,141,106,107,108,109,110,247]),import.meta.url),defaultWidthTier:"narrow",icon:Me,get defaultTitle(){return e.layout_tabTypes_agentOverview_title()},get categoryLabel(){return e.layout_tabTypes_agents_category()},renameable:!1}),u.register({type:"agent",loadComponent:()=>c(()=>import("./DaTwSOqs.js"),__vite__mapDeps([248,1,2,3,4,6,7,8,9,10,11,15,71,22,23,24,25,26,18,13,63,62,28,16,17,19,64,20,67,60,59,72,73,74,75,58,76,77,249,14,250,237,12,21,27,29,30,31,32,236,101,57,61,132,204,44,45,214,239,131,91,240,102,35,36,47,48,49,42,43,50,51,52,53,103,38,39,104,85,34,37,40,41,70,81,105,94,95,46,80,33,106,107,108,109,110,111,112,113,114,193,54,55,56,65,66,68,69,78,79,82,83,84,86,87,88,89,90,92,93,96,97,98,99,100,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,194,195,196,197,198,199,200,201,202,203,205,206,207,216,215]),import.meta.url),defaultWidthTier:"chat",icon:ge,get defaultTitle(){return e.layout_tabTypes_agent_title()},get categoryLabel(){return e.layout_tabTypes_agents_category()},sidebarTabId:"agents",renameable:!0}),u.register({type:"discussion",loadComponent:()=>c(()=>import("./BdlwjSpf.js"),__vite__mapDeps([251,1,2,3,4,11,8,9,7,10,16,13,17,18,19,38,6,29,35,15,36,14,39,33,34,37,27,40,41,28,42,31,43,44,45,46,21,22,23,24,25,26,216,12,20,30,32,63,62,64,71,67,60,59,72,73,74,75,58,76,77,91,57,61,193,87,88,65,111,119,120,124,52,160,81,163,139,68,69,70,78,79,80,50,51,116,164,98,99,48,235,215,180,181,101,236,177,83,86,178,179,129,131,132,141,229,166,237,217,238,110,109,171,205,190,212,142,134,239,240,241,242,243,198,150,106,107,108,244,245,223,224,225,226,227,128,130,252,97,93,94,49,95,96,117,214,253]),import.meta.url),defaultWidthTier:"chat",icon:ge,get defaultTitle(){return e.workspace_discussion_title()},get categoryLabel(){return e.workspace_discussion_list_label()},sidebarTabId:"people",renameable:!1}),u.register({type:"note",loadComponent:()=>c(()=>import("./BE3g5vcj.js"),__vite__mapDeps([254,1,2,3,11,63,18,9,22,23,24,25,7,26,13,62,28,8,10,6,16,17,19,64,20,214,180,91,71,67,60,59,72,73,74,75,58,76,77,57,61,12,14,15,4,21,27,29,30,31,32,181,35,36,80,87,88,50,51,33,34,37,38,39,40,41,42,43,44,45,46,116,119,120,137,138,139,140,115,70,52,68,69,78,79,81,66,117,111,118,121,122,99,123,235,215,216,101,236,177,83,86,178,179,129,131,132,141,229,166,237,217,238,110,109,171,205,190,212,142,134,239,240,241,242,243,198,150,106,107,108,244,245,223,224,225,226,227,145,55,146,147,148,149,255,256,257,105,94,49,95,162,194,258,259,152,153,112,48,113,260,155,156,157,158,151,154,161,183,191,135,196,197,173,163,164,261]),import.meta.url),defaultWidthTier:"medium",icon:H.note,get defaultTitle(){return e.layout_tabTypes_note_title()},get categoryLabel(){return e.layout_tabTypes_context_category()},sidebarTabId:"notes",renameable:!0}),u.register({type:"file",loadComponent:()=>c(()=>import("./DA3tGWzX.js"),__vite__mapDeps([262,1,2,3,4,6,7,8,9,10,11,15,22,23,24,25,26,18,13,214,150,63,62,28,16,17,19,64,20,263,67,60,59,198,74,12,14,21,27,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,235,61,57,58,91,71,72,73,75,76,77,215,216,180,181,101,236,177,83,86,178,179,129,131,132,141,229,166,237,217,238,110,109,171,205,190,212,142,134,70,239,240,241,242,243,106,107,108,244,245,223,224,225,226,227,255,256,116,257,163,139,81,68,69,78,79,80,50,51,164,135,264,122,265,233,266]),import.meta.url),defaultWidthTier:"wide",icon:Ke,get defaultTitle(){return e.layout_tabTypes_file_title()},get categoryLabel(){return e.layout_tabTypes_files_category()},sidebarTabId:"files",renameable:!0}),u.register({type:"diff",loadComponent:()=>c(()=>import("./KvfW-q1N.js"),__vite__mapDeps([267,1,2,3,4,11,162,22,23,24,25,9,7,26,18,13,214,63,62,28,8,10,6,16,17,19,64,20,145,55,15,131,59,91,71,67,60,72,73,74,75,58,76,77,57,61,21,132,146,147,14,148,35,29,36,149,268,150,33,34,37,27,38,39,40,41,42,31,43,44,45,46,116,135,264,196,197,173,12,30,32,198,120]),import.meta.url),defaultWidthTier:"wide",icon:Be,get defaultTitle(){return e.layout_tabTypes_diff_title()},get categoryLabel(){return e.layout_tabTypes_changes_category()},sidebarTabId:"files",renameable:!1}),u.register({type:"changes",loadComponent:()=>c(()=>import("./B6wkNYPs.js"),__vite__mapDeps([269,1,2,4,15,22,23,24,25,9,7,26,18,13,162,214,63,62,28,11,3,8,10,6,16,17,19,64,20,215,73,75,91,71,67,60,59,72,74,58,76,77,57,61,216,180,12,14,21,27,29,30,31,32,181,101,270,159,258,259,145,55,131,132,146,147,148,35,36,149,268,150,33,34,37,38,39,40,41,42,43,44,45,46,116,119,120,112,48,49,113,133,134,70,125,142,177,83,86,178,179,129,141,235,236,229,166,237,217,238,110,109,171,205,190,212,239,240,241,242,243,198,106,107,108,244,245,223,224,225,226,227,271,264]),import.meta.url),defaultWidthTier:"wide",icon:H.changes,get defaultTitle(){return e.layout_tabTypes_changes_title()},get categoryLabel(){return e.layout_tabTypes_changes_category()},sidebarTabId:"changes",renameable:!1}),u.register({type:"local-changes",loadComponent:()=>c(()=>import("./Dhs7RSq9.js"),__vite__mapDeps([272,1,2,15,22,23,24,25,9,7,26,18,13,162,214,63,62,28,11,3,8,10,6,16,17,19,64,20,270,29,159,258,259,91,71,67,60,59,72,73,74,75,58,76,77,57,61,145,55,131,21,132,146,147,14,4,148,35,36,149,268,150,33,34,37,27,38,39,40,41,42,31,43,44,45,46,116,119,120,112,30,48,49,113,12,32,133,134,70,125,142,180,181,215,216,101,177,83,86,178,179,129,141,235,236,229,166,237,217,238,110,109,171,205,190,212,239,240,241,242,243,198,106,107,108,244,245,223,224,225,226,227,271,264]),import.meta.url),defaultWidthTier:"wide",icon:H.changes,get defaultTitle(){return e.layout_tabTypes_localChanges_title()},get categoryLabel(){return e.layout_tabTypes_changes_category()},sidebarTabId:"changes",renameable:!1}),u.register({type:"chat-changes",loadComponent:()=>c(()=>import("./gXHlCg5O.js"),__vite__mapDeps([273,1,2,3,270,6,7,8,9,10,29,15,22,23,24,25,26,18,13,159,63,62,28,11,16,17,19,64,20,258,259,91,71,67,60,59,72,73,74,75,58,76,77,57,61,145,55,131,21,132,146,147,14,4,148,35,36,149,268,150,33,34,37,27,38,39,40,41,42,31,43,44,45,46,116,119,120,112,30,48,49,113,12,32,133,134,70,125,142,180,181,215,216,101,177,83,86,178,179,129,141,235,236,229,166,237,217,238,110,109,171,205,190,212,239,240,241,242,243,198,106,107,108,244,245,223,224,225,226,227,271]),import.meta.url),defaultWidthTier:"wide",icon:H.changes,get defaultTitle(){return e.layout_tabTypes_chatChanges_title()},get categoryLabel(){return e.layout_tabTypes_changes_category()},renameable:!1}),u.register({type:"activity-changes",loadComponent:()=>c(()=>import("./CewZlXwy.js"),__vite__mapDeps([274,1,2,3,4,11,62,23,22,24,25,9,7,26,18,13,240,59,145,8,10,55,15,131,16,17,19,91,63,28,6,64,20,71,67,60,72,73,74,75,58,76,77,57,61,21,132,146,147,14,148,35,29,36,149,268,150,33,34,37,27,38,39,40,41,42,31,43,44,45,46,116,214,135,264,196,197,173,12,30,32,198,120]),import.meta.url),defaultWidthTier:"wide",icon:H.changes,get defaultTitle(){return e.layout_tabTypes_activityChanges_title()},get categoryLabel(){return e.layout_tabTypes_changes_category()},renameable:!1}),u.register({type:"hook-script",loadComponent:()=>c(()=>import("./B6Qz5J1y.js"),__vite__mapDeps([275,1,2,3,151,6,7,8,9,10,139,152,59,153,12,13,14,15,16,17,18,19,11,4,20,21,22,23,24,25,26,27,28,29,30,31,32,154,166,63,62,64,73,74]),import.meta.url),defaultWidthTier:"medium",icon:Ge,get defaultTitle(){return e.chat_backgroundHooks_viewScript_label()},get categoryLabel(){return e.layout_tabTypes_panel_category()},renameable:!1}),u.register({type:"settings",loadComponent:()=>c(()=>import("./W7uazUja.js"),__vite__mapDeps([276,1,2]),import.meta.url),defaultWidthTier:"narrow",icon:He,get defaultTitle(){return e.layout_tabTypes_settings_title()},get categoryLabel(){return e.layout_tabTypes_settings_category()},renameable:!1}),u.register({type:"overview",loadComponent:()=>c(()=>import("./YsAO4v_N.js"),__vite__mapDeps([277,1,2]),import.meta.url),defaultWidthTier:"narrow",icon:ue,get defaultTitle(){return e.layout_tabTypes_overview_title()},get categoryLabel(){return e.layout_tabTypes_overview_category()},renameable:!1})}async function Wt(y){if(y?.restoreStatus!=="restored")return;const _=new Set(Object.values(y.panels).flatMap(r=>{const k=r.tabs.find(l=>l.id===r.activeTabId);return k?[k.type]:[]}));await Promise.allSettled([..._].map(r=>u.loadComponent(r)))}var at=W("<!> <!>",1),rt=W('<img class="h-auto w-full max-w-64 rounded-lg" width="512" height="512"/>'),ot=W('<div class="flex aspect-square w-full max-w-64 items-center justify-center"><!></div>'),st=W('<div class="flex justify-center" data-testid="passkey-qr"><!></div>'),it=W('<div class="flex justify-center py-4 text-muted-foreground"><!></div>'),nt=W('<p class="type-caption text-muted-foreground" data-testid="passkey-pin-advice"> </p>'),lt=W('<form id="passkey-pin-form" class="flex flex-col gap-3"><!> <!></form>');function Pe(y,_){if(new.target)return Te({component:Pe,...y});we(_,!0);let r=ie(_,"payload",7),k=ie(_,"static",7,!1),l=ie(_,"onRespond",7),f=K(!1),A=K(""),U=K("");const a=b(()=>r()?.view??null);Q(()=>{v(f,r()!==null)}),Q(()=>{t(a)?.step!=="pin"&&v(A,"")});let z=K(0),Y=K(ze(Date.now()));Q(()=>{const i=t(a)?.step==="pin"&&t(a).kind==="device"?t(a).retryAfterMs:void 0;if(typeof i!="number"){v(z,0);return}const T=Date.now();v(Y,T,!0),v(z,T+i);const w=setInterval(()=>{v(Y,Date.now(),!0),t(Y)>=t(z)&&clearInterval(w)},250);return()=>clearInterval(w)});const ee=b(()=>Math.max(0,Math.ceil((t(z)-t(Y))/1e3))),_e=b(()=>t(a)?.step==="pin"&&(t(a).kind==="device"?t(ee)>0:typeof t(a).retryAfterMs=="number"));Q(()=>{const i=t(a)?.step==="qr"?t(a).data:"";if(!i){v(U,"");return}let T=!0;return c(async()=>{const{default:w}=await import("./BZ9svoQk.js").then(C=>C.b);return{default:w}},__vite__mapDeps([278,59]),import.meta.url).then(({default:w})=>w.toDataURL(i,{width:512,margin:2})).then(w=>{T&&v(U,w,!0)}),()=>{T=!1}});const Ee=b(()=>r()?r().kind==="create"?e.passkeys_dialog_createTitle_label({site:r().rpId}):e.passkeys_dialog_getTitle_label({site:r().rpId}):"");function De(i){switch(i){case"bluetooth-off":return e.passkeys_dialog_bluetoothOff_error();case"bluetooth-missing":return e.passkeys_dialog_bluetoothMissing_error();case"pin-locked":return e.passkeys_dialog_pinLocked_error();case"timeout":return e.passkeys_dialog_timeout_error();case"already-registered":return e.passkeys_dialog_alreadyRegistered_error();case"unavailable":return e.passkeys_dialog_unavailable_error();case"device-locked":return e.passkeys_dialog_deviceLocked_error();case"device-already-registered":return e.passkeys_dialog_deviceAlreadyRegistered_error();case"device-no-passkey":return e.passkeys_dialog_deviceNoPasskey_error({site:r()?.rpId??""});case"device-old-pin-wrong":return e.passkeys_dialog_deviceOldPinWrong_error();case"device-failed":return e.passkeys_dialog_deviceFailed_error();default:return e.passkeys_dialog_failed_error()}}const Ae=b(()=>{if(!(!t(a)||!r()))switch(t(a).step){case"choose-transport":return r().kind==="create"?e.passkeys_dialog_chooseCreate_description():e.passkeys_dialog_chooseGet_description();case"qr":case"progress":switch(t(a).progress){case"waiting-for-phone":return e.passkeys_dialog_waitingForPhone_description();case"connecting":return e.passkeys_dialog_connecting_description();case"waiting-for-approval":return e.passkeys_dialog_waitingForApproval_description();case"touch-key":return e.passkeys_dialog_touchKey_description();case"processing":return e.passkeys_dialog_processing_description();default:return t(a).step==="progress"&&t(a).transport==="usb"?e.passkeys_dialog_insertKey_description():e.passkeys_dialog_starting_description()}case"pin":return t(a).kind==="usb"?e.passkeys_dialog_pin_description():t(a).oldPin?e.passkeys_dialog_deviceOldPin_description():e.passkeys_dialog_devicePin_description();case"choose-account":return e.passkeys_dialog_chooseAccount_description();case"error":return De(t(a).reason)}}),de=b(()=>t(a)?.step==="pin"&&t(a).kind==="device"?t(a).oldPin?e.passkeys_dialog_deviceOldPin_label():e.passkeys_dialog_devicePin_label():e.passkeys_dialog_pin_label()),Ce=b(()=>{if(t(a)?.step==="pin"){if(t(a).kind==="device"){if(t(ee)>0)return e.passkeys_dialog_devicePinWait_error({seconds:t(ee)})}else if(typeof t(a).retryAfterMs=="number")return e.passkeys_dialog_pinRetryAfter_error();if(t(a).wrongPin)return typeof t(a).attemptsLeft=="number"?t(a).attemptsLeft===1?e.passkeys_dialog_wrongPinAttempts_one({count:t(a).attemptsLeft}):e.passkeys_dialog_wrongPinAttempts_many({count:t(a).attemptsLeft}):e.passkeys_dialog_wrongPin_error()}}),Oe=b(()=>{if(t(a)?.step!=="choose-transport")return[];const i=t(a).hybrid==="bluetooth-off"?e.passkeys_dialog_bluetoothOff_description():t(a).hybrid==="bluetooth-missing"?e.passkeys_dialog_bluetoothMissing_description():void 0;return[...t(a).device?[{id:"device",label:e.passkeys_dialog_thisDevice_label(),note:void 0,icon:qe}]:[],{id:"hybrid",label:e.passkeys_dialog_phone_label(),note:i,icon:Fe},{id:"usb",label:e.passkeys_dialog_securityKey_label(),note:void 0,icon:je}]});function te(){l()({action:"cancel"})}function Re(i){if(i.preventDefault(),!t(A))return;const T=t(A);v(A,""),l()({action:"pin",pin:T})}var xe={get payload(){return r()},set payload(i){r(i),ne()},get static(){return k()},set static(i=!1){k(i),ne()},get onRespond(){return l()},set onRespond(i){l(i),ne()},$set:he,$on:(i,T)=>ke(_,i,T)},pe=q(),We=M(pe);{var Se=i=>{{const T=C=>{var ae=q(),J=M(ae);{var re=P=>{le(P,{variant:"secondary",onclick:te,children:(S,B)=>{F();var V=x();I(d=>E(V,d),[()=>e.passkeys_dialog_close_label()]),p(S,V)},$$slots:{default:!0}})},oe=P=>{var S=at(),B=M(S);le(B,{variant:"ghost",onclick:te,children:(n,m)=>{F();var s=x();I(L=>E(s,L),[()=>e.passkeys_dialog_cancel_label()]),p(n,s)},$$slots:{default:!0}});var V=ye(B,2);{var d=n=>{{let m=b(()=>!t(A)||t(_e));le(n,{variant:"primary",type:"submit",form:"passkey-pin-form",get disabled(){return t(m)},children:(s,L)=>{F();var o=x();I(g=>E(o,g),[()=>e.passkeys_dialog_continue_label()]),p(s,o)},$$slots:{default:!0}})}};D(V,n=>{t(a).step==="pin"&&n(d)})}p(P,S)};D(J,P=>{t(a).step==="error"?P(re):P(oe,-1)})}p(C,ae)};let w=b(()=>t(a).step==="error"?e.passkeys_dialog_close_label():e.passkeys_dialog_cancel_label());Xe(i,{get static(){return k()},get title(){return t(Ee)},get description(){return t(Ae)},size:"sm",dismissOnInteractOutside:!1,get closeLabel(){return t(w)},onClose:te,get open(){return t(f)},set open(C){v(f,C,!0)},footer:T,children:(C,ae)=>{var J=q(),re=M(J);{var oe=d=>{{const n=(s,L)=>{let o=()=>(L?.()).item;me(s,{leading:h=>{Ue(h,{get icon(){return o().icon},fw:!0})},title:h=>{F();var R=x();I(()=>E(R,o().label)),p(h,R)},description:h=>{var R=q(),se=M(R);{var G=$=>{var ce=x();I(()=>E(ce,o().note)),p($,ce)};D(se,$=>{o().note&&$(G)})}p(h,R)},$$slots:{leading:!0,title:!0,description:!0}})};let m=b(()=>e.passkeys_dialog_transports_ariaLabel());be(d,{get items(){return t(Oe)},getKey:s=>s.id,getText:s=>s.label,get ariaLabel(){return t(m)},onActivate:s=>l()({action:"transport",transport:s.id}),row:n,$$slots:{row:!0}})}},P=d=>{var n=st(),m=X(n);{var s=o=>{var g=rt();I(O=>{fe(g,"src",t(U)),fe(g,"alt",O)},[()=>e.passkeys_dialog_qrImage_ariaLabel()]),p(o,g)},L=o=>{var g=ot(),O=X(g);ve(O,{size:20}),Z(g),p(o,g)};D(m,o=>{t(U)?o(s):o(L,-1)})}Z(n),p(d,n)},S=d=>{var n=it(),m=X(n);ve(m,{size:20}),Z(n),p(d,n)},B=d=>{var n=lt(),m=X(n);{let o=b(()=>t(a).kind==="device"?"numeric":void 0);Ze(m,{type:"password",get inputmode(){return t(o)},autocomplete:"off",get"aria-label"(){return t(de)},get placeholder(){return t(de)},get error(){return t(Ce)},get disabled(){return t(_e)},autofocus:!0,get value(){return t(A)},set value(g){v(A,g,!0)}})}var s=ye(m,2);{var L=o=>{var g=nt(),O=Je(g,!0);I(N=>E(O,N),[()=>e.passkeys_dialog_devicePinAdvice_description()]),p(o,g)};D(s,o=>{t(a).firstPasskey&&o(L)})}Z(n),Ye("submit",n,Re),p(d,n)},V=d=>{{const n=(s,L)=>{let o=()=>(L?.()).item;me(s,{title:N=>{F();var h=x();I(()=>E(h,o().userDisplayName||o().userName)),p(N,h)},description:N=>{var h=q(),R=M(h);{var se=G=>{var $=x();I(()=>E($,o().userName)),p(G,$)};D(R,G=>{o().userDisplayName&&o().userName&&G(se)})}p(N,h)},$$slots:{title:!0,description:!0}})};let m=b(()=>e.passkeys_dialog_accounts_ariaLabel());be(d,{get items(){return t(a).accounts},getKey:s=>s.index,getText:s=>s.userDisplayName||s.userName,get ariaLabel(){return t(m)},onActivate:s=>l()({action:"choose",index:s.index}),row:n,$$slots:{row:!0}})}};D(re,d=>{t(a).step==="choose-transport"?d(oe):t(a).step==="qr"?d(P,1):t(a).step==="progress"?d(S,2):t(a).step==="pin"?d(B,3):t(a).step==="choose-account"&&d(V,4)})}p(C,J)},$$slots:{footer:!0,default:!0}})}};D(We,i=>{r()&&t(a)&&i(Se)})}return p(y,pe),Le(xe)}const _t=new tt("PasskeyDialog"),j=et.PASSKEYS;function dt(y){const _=Ie();if(!_)return()=>{};const r=_.on(j.DIALOG_SHOW,l=>{const f=l;!f||typeof f.ceremonyId!="string"||!f.view||y.onShow(f)}),k=_.on(j.DIALOG_CLOSE,l=>{const f=l;f&&typeof f.ceremonyId=="string"&&y.onClose(f.ceremonyId)});return()=>{_.offById(j.DIALOG_SHOW,r),_.offById(j.DIALOG_CLOSE,k)}}function pt(y){const _=Ie();_&&_.invoke(j.DIALOG_RESPOND,y).catch(()=>{_t.warn("Passkey dialog response failed",{action:y.action})})}function ct(y,_){if(new.target)return Te({component:ct,...y});we(_,!0);let r=K(null);Qe(()=>dt({onShow:l=>{v(r,l,!0)},onClose:l=>{t(r)?.ceremonyId===l&&v(r,null)}}));var k={$set:he,$on:(l,f)=>ke(_,l,f)};return Pe(y,{get payload(){return t(r)},onRespond:l=>{t(r)&&pt({...l,ceremonyId:t(r).ceremonyId})}}),Le(k)}export{ct as P,Wt as p,xt as r};
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/g2j4hm88.js","/app/immutable/chunks/Fcr7AvC-.js","/app/immutable/chunks/3SdAC2_C.js","/app/immutable/chunks/BhYXv0ZM.js","/app/immutable/chunks/Cc0763mU.js","/app/immutable/chunks/BAbB1JR3.js","/app/immutable/chunks/CA6H1-bp.js","/app/immutable/chunks/CWfjuhY2.js","/app/immutable/chunks/BRCr02in.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/2z64ELW5.js","/app/immutable/chunks/DkQdSPDN.js","/app/immutable/chunks/Bqd7fdCF.js","/app/immutable/chunks/Beq_QLuz.js","/app/immutable/chunks/Dn334wJv.js","/app/immutable/chunks/BAtAwQ72.js","/app/immutable/chunks/TdGvVwuC.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/C7b3vXLD.js","/app/immutable/chunks/DRMe5Ypb.js","/app/immutable/chunks/D0qhIm1r.js","/app/immutable/chunks/Dms_DO28.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/BS1zON0P.js","/app/immutable/chunks/DxwfiAWm.js","/app/immutable/chunks/D9tVylVS.js","/app/immutable/chunks/ChHRVjww.js","/app/immutable/chunks/CxR-pcVt.js","/app/immutable/chunks/DU3vNstz.js","/app/immutable/chunks/XJv96NUg.js","/app/immutable/assets/notify.DylRFR3N.css","/app/immutable/chunks/D7KhILhs.js","/app/immutable/chunks/DfINI0LK.js","/app/immutable/chunks/C3KgmGxd.js","/app/immutable/chunks/x4bPxhVW.js","/app/immutable/chunks/CWtyXmQ4.js","/app/immutable/chunks/Cz3WzTlQ.js","/app/immutable/assets/menu-footer.Ck5GCpgU.css","/app/immutable/chunks/O5ZlQHf9.js","/app/immutable/assets/dialog.BtQTVchw.css","/app/immutable/chunks/BzXQ5SMs.js","/app/immutable/assets/confirm.UE5obH5A.css","/app/immutable/chunks/B8m3-qrW.js","/app/immutable/chunks/CpK0xLH4.js","/app/immutable/chunks/C2RnxEnO.js","/app/immutable/chunks/gNR_yDDX.js","/app/immutable/chunks/BjLb7AHW.js","/app/immutable/chunks/UWtWVoQE.js","/app/immutable/chunks/DAsc1V4f.js","/app/immutable/chunks/BsieX9dN.js","/app/immutable/chunks/iMqZaR5X.js","/app/immutable/assets/SettingsPage.CKvEnOAL.css","/app/immutable/chunks/_aw8AL2s.js","/app/immutable/chunks/goTpbPhD.js","/app/immutable/chunks/VeOG7xIg.js","/app/immutable/chunks/B0SSzYpD.js","/app/immutable/chunks/B5aYN90J.js","/app/immutable/chunks/BdWqymET.js","/app/immutable/chunks/BBWuirRW.js","/app/immutable/chunks/DONrLvvt.js","/app/immutable/chunks/CZfU7DE3.js","/app/immutable/chunks/cD292w1o.js","/app/immutable/chunks/BwweojP5.js","/app/immutable/chunks/D-62MVd3.js","/app/immutable/chunks/Bh3yfjRP.js","/app/immutable/chunks/CL3a4Hm1.js","/app/immutable/chunks/C1UoJPr2.js","/app/immutable/chunks/CMiilI_P.js","/app/immutable/chunks/CC7to1B5.js","/app/immutable/chunks/B3ZeLze4.js","/app/immutable/chunks/BeZe2Rt-.js","/app/immutable/chunks/_IjN0Lbt.js","/app/immutable/chunks/CH7HNVC2.js","/app/immutable/chunks/CDCAMh6o.js","/app/immutable/chunks/8ItTOum-.js","/app/immutable/chunks/DKwAaLwd.js","/app/immutable/chunks/koUs6Gjt.js","/app/immutable/assets/slider.kL-wkHnx.css","/app/immutable/chunks/CVx5OKWy.js","/app/immutable/chunks/DimbKbDZ.js","/app/immutable/chunks/dvKmN4h6.js","/app/immutable/chunks/CQcEqK4G.js","/app/immutable/chunks/f5b-J-bi.js","/app/immutable/chunks/Ch9YoFhc.js","/app/immutable/chunks/Y8hdNZSZ.js","/app/immutable/chunks/BQ5x_RaT.js","/app/immutable/chunks/lK1e5NlM.js","/app/immutable/assets/DockScreenshotEditorWindow.DNkBhnHK.css","/app/immutable/assets/dock-tokens.C3wiNkmL.css","/app/immutable/chunks/CNKJ8_Xr.js","/app/immutable/chunks/Cf5NbMeL.js","/app/immutable/chunks/CTkkv_Ih.js","/app/immutable/chunks/BJIUXUAo.js","/app/immutable/assets/select-viewport.CV-KWLNP.css","/app/immutable/chunks/COmspkQo.js","/app/immutable/chunks/DWjpzYNk.js","/app/immutable/chunks/B2-ooCTr.js","/app/immutable/chunks/Dbqo6rfT.js","/app/immutable/chunks/BzW_moTi.js","/app/immutable/chunks/XAL8NtHj.js","/app/immutable/chunks/Ce2Qo9vu.js","/app/immutable/chunks/Tgw7Kdvt.js","/app/immutable/chunks/DcrCEeFN.js","/app/immutable/chunks/BnnKw3Va.js","/app/immutable/chunks/B5V_Igzh.js","/app/immutable/chunks/BhD6TCSq.js","/app/immutable/chunks/-xPMI1SM.js","/app/immutable/chunks/B0Z-1lwJ.js","/app/immutable/chunks/CnDbx_Wj.js","/app/immutable/chunks/ZmAQurQV.js","/app/immutable/chunks/BKGQPtRi.js","/app/immutable/assets/checkbox.D429NJZk.css","/app/immutable/assets/directory-picker-service.uzk1xoHg.css","/app/immutable/chunks/gdhW58MB.js","/app/immutable/chunks/D_jEt7ej.js","/app/immutable/chunks/DIHHBzYi.js","/app/immutable/chunks/6_Ki4zfU.js","/app/immutable/chunks/DON9zoQ1.js","/app/immutable/assets/AgentAvatar.CZKKHyEm.css","/app/immutable/assets/avatar-state.BzFIexJN.css","/app/immutable/chunks/DJZIHUd7.js","/app/immutable/assets/TipTapEditor.BmeA7Qtk.css","/app/immutable/chunks/jphlY6bT.js","/app/immutable/chunks/BusD2v6a.js","/app/immutable/chunks/BpFxCD0b.js","/app/immutable/assets/image-context-items.D_hsaikk.css","/app/immutable/chunks/ERz1iYnn.js","/app/immutable/chunks/9ryMZ44V.js","/app/immutable/assets/AttachmentPreview.DWUPhcKi.css","/app/immutable/chunks/DWurigib.js","/app/immutable/chunks/DqQqeuqi.js","/app/immutable/chunks/BzZzhsx0.js","/app/immutable/chunks/Bu13V5mO.js","/app/immutable/chunks/D179JMBI.js","/app/immutable/chunks/By6WkvE9.js","/app/immutable/chunks/YClu3XTz.js","/app/immutable/chunks/C8PR5GO9.js","/app/immutable/chunks/BKD7o1lQ.js","/app/immutable/assets/TaskStatusIcon.sfU2TZ7a.css","/app/immutable/chunks/Cim9mWY1.js","/app/immutable/chunks/2OP7IVCM.js","/app/immutable/chunks/BDQvAsU6.js","/app/immutable/assets/AgentCard.Cna0hri3.css","/app/immutable/chunks/CVG625sB.js","/app/immutable/chunks/DEB8jcix.js","/app/immutable/chunks/lwn02icp.js","/app/immutable/chunks/BdWMbiFk.js","/app/immutable/assets/TrackedChangeDiffViewer.CveSjyPc.css","/app/immutable/chunks/D6H34kDj.js","/app/immutable/chunks/C1SGWBXH.js","/app/immutable/chunks/CcNhqKh5.js","/app/immutable/assets/syntax-highlighting.CrQGLq0X.css","/app/immutable/assets/CodeBlock.BezhEtUo.css","/app/immutable/chunks/Bex9L_jH.js","/app/immutable/chunks/BbIcudMY.js","/app/immutable/chunks/DhXSKt_a.js","/app/immutable/assets/DiagramPresentation.C2GLYoBN.css","/app/immutable/chunks/BGSmaq6H.js","/app/immutable/chunks/DIUdGij-.js","/app/immutable/chunks/DgAgTFcK.js","/app/immutable/chunks/C-BsEdGZ.js","/app/immutable/chunks/D80ng7VB.js","/app/immutable/assets/MarkdownViewer.D2MexjjT.css","/app/immutable/chunks/DVqhJMup.js","/app/immutable/chunks/CCAtqaSn.js","/app/immutable/chunks/BFMw_Rsu.js","/app/immutable/chunks/BipAYtG2.js","/app/immutable/assets/workspace-key-menu.DrT-Fxqq.css","/app/immutable/chunks/A0p6PvBn.js","/app/immutable/chunks/YqTahsxp.js","/app/immutable/chunks/DMOXpjfz.js","/app/immutable/chunks/C8OXQeb2.js","/app/immutable/chunks/CN7DE5jB.js","/app/immutable/assets/StreamingDiagramRenderer.BShsSvPz.css","/app/immutable/assets/chat-search.Cjb73igJ.css","/app/immutable/chunks/FTRClsUK.js","/app/immutable/chunks/BmqZzhgO.js","/app/immutable/chunks/BonA_mfc.js","/app/immutable/chunks/2bueaerM.js","/app/immutable/chunks/D4WPlvMg.js","/app/immutable/chunks/BptF1xOU.js","/app/immutable/chunks/BrCVQoPE.js","/app/immutable/chunks/OqslD7bF.js","/app/immutable/chunks/DQxnu3QZ.js","/app/immutable/chunks/BWtzEUuh.js","/app/immutable/assets/AgentAvatarStack.DOhClFuX.css","/app/immutable/chunks/T6UBEOFc.js","/app/immutable/assets/conversation-turns.P_pkAsRX.css","/app/immutable/chunks/ghzRmqKs.js","/app/immutable/chunks/D9gMMVdB.js","/app/immutable/chunks/iViWtmHm.js","/app/immutable/chunks/gKdztwD8.js","/app/immutable/chunks/DHMxSQaO.js","/app/immutable/chunks/DWOcsYbU.js","/app/immutable/chunks/DUbqvr_K.js","/app/immutable/chunks/Ce-va2I0.js","/app/immutable/chunks/H2jLkRRS.js","/app/immutable/chunks/Dk9lUzSs.js","/app/immutable/assets/WorkspaceSetupCard.DNLkSKZg.css","/app/immutable/chunks/52kdRKiP.js","/app/immutable/chunks/DL6gGkHp.js","/app/immutable/assets/DockRecordingEditor.BX1NXczK.css","/app/immutable/chunks/CXygwMkb.js","/app/immutable/chunks/BVhnyyZ7.js","/app/immutable/chunks/Egi6fNpS.js","/app/immutable/assets/ChatPanel.B73KM22O.css","/app/immutable/assets/HomeWorkspaceDetail.Dp5EWw2P.css","/app/immutable/chunks/CE7ZckmT.js","/app/immutable/chunks/iNacp7Sr.js","/app/immutable/chunks/CQ409-Pj.js","/app/immutable/chunks/u_H5ILVa.js","/app/immutable/chunks/CXXVPWBH.js","/app/immutable/chunks/DWGXN6Nr.js","/app/immutable/chunks/Bsnum5pm.js","/app/immutable/chunks/s_T1Uukt.js","/app/immutable/chunks/DFh2QzKR.js","/app/immutable/assets/BrowserTabType.DojB6H-_.css","/app/immutable/chunks/DthJR85Z.js","/app/immutable/chunks/CcUDp4zq.js","/app/immutable/chunks/D3yXvqwY.js","/app/immutable/chunks/DP31pjuo.js","/app/immutable/chunks/Bw-Zu1Zf.js","/app/immutable/chunks/BYfDvU8j.js","/app/immutable/chunks/D8cNe_33.js","/app/immutable/chunks/BFO-Le8U.js","/app/immutable/assets/register.CUyDR59i.css","/app/immutable/assets/terminal-manager.MhP_vFvK.css","/app/immutable/chunks/ZspDMNEv.js","/app/immutable/assets/confirm-script-deletion.CqNa5NIC.css","/app/immutable/chunks/D5ocbEo-.js","/app/immutable/assets/Terminal.Ddek5eNE.css","/app/immutable/chunks/DzR2lw_C.js","/app/immutable/chunks/yus24-dF.js","/app/immutable/chunks/DVSwhvvP.js","/app/immutable/chunks/ZfkZCfTr.js","/app/immutable/chunks/DGMKnMeG.js","/app/immutable/chunks/Bvwrya09.js","/app/immutable/chunks/DEykPUjl.js","/app/immutable/chunks/CSiaiLHL.js","/app/immutable/chunks/DepS1LOg.js","/app/immutable/chunks/B_QPRXJ5.js","/app/immutable/chunks/WWDClKTE.js","/app/immutable/chunks/BIv0yV05.js","/app/immutable/chunks/BO4HougN.js","/app/immutable/chunks/DgzWQmDb.js","/app/immutable/assets/AgentOverviewTabType.DU1WpoFR.css","/app/immutable/chunks/B0dqY8Yd.js","/app/immutable/chunks/CTGxPVh7.js","/app/immutable/chunks/CdtwTpzR.js","/app/immutable/chunks/BSsSTp5c.js","/app/immutable/chunks/U5o8u-di.js","/app/immutable/assets/DiscussionTabType.D3Laoutn.css","/app/immutable/chunks/uQRHnH1Z.js","/app/immutable/chunks/CRm25OCR.js","/app/immutable/chunks/Rq6GuI3F.js","/app/immutable/assets/CodeEditor.Bq04Rj-N.css","/app/immutable/chunks/DjAFd7Fr.js","/app/immutable/assets/LineChangesBadge.CJ0J_Z0k.css","/app/immutable/chunks/ByaJIEgQ.js","/app/immutable/assets/NoteTabType.AG_iwaNn.css","/app/immutable/chunks/PZ5MSUIU.js","/app/immutable/chunks/wEnqV1Ol.js","/app/immutable/chunks/CDtaIFAl.js","/app/immutable/chunks/RGi81mvu.js","/app/immutable/assets/FileTabType.BUKcoHE1.css","/app/immutable/chunks/CCMvmg57.js","/app/immutable/chunks/DJDA_1H4.js","/app/immutable/chunks/DxZIPHU6.js","/app/immutable/chunks/CQmOm-Tm.js","/app/immutable/assets/ChatChangesPanel.BQqG1JnE.css","/app/immutable/chunks/wsIl6ydR.js","/app/immutable/chunks/CKa70XGN.js","/app/immutable/chunks/u-Z99Ptk.js","/app/immutable/chunks/B6Qz5J1y.js","/app/immutable/chunks/W7uazUja.js","/app/immutable/chunks/YsAO4v_N.js","/app/immutable/chunks/BZ9svoQk.js"])))=>i.map(i=>d[i]);
2
+ import{bm as e,_ as c,t as Te,bo as ie,bw as he,b as ke}from"./Fcr7AvC-.js";import{t as u}from"./BCw-LKCu.js";import{bD as ue,bv as Ve,cK as Ne,aO as $e,cn as Me,aV as ge,bg as Ke,aN as Be,aM as Ge,bs as He,bL as qe,b_ as Fe,bJ as je,F as Ue}from"./ChHRVjww.js";import{R as H}from"./CCSQmeuF.js";import{bs as we,ca as Q,bH as v,aD as t,bV as K,br as ze,a7 as q,ay as M,W as p,bn as Le,c9 as b,aA as ne,a5 as X,bA as Z,bS as ye,aw as Ye,aB as W,be as F,b$ as x,b_ as I,bO as E,bl as Je,bk as Qe}from"./3SdAC2_C.js";import{i as D}from"./BhYXv0ZM.js";import{s as fe}from"./BRCr02in.js";import{L as me}from"./BpFxCD0b.js";import{C as Xe,L as be}from"./D7KhILhs.js";import{I as Ze}from"./C3KgmGxd.js";import"./x4bPxhVW.js";import"./BzXQ5SMs.js";import{f as le}from"./Beq_QLuz.js";import{v as Ie}from"./BAtAwQ72.js";import"./O5ZlQHf9.js";import"./CWfjuhY2.js";import{I as ve}from"./CA6H1-bp.js";import{I as et}from"./Bqd7fdCF.js";import"./TdGvVwuC.js";import{a as tt}from"./BdWqymET.js";function xt(){u.register({type:"workspace",loadComponent:()=>c(()=>import("./g2j4hm88.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208]),import.meta.url),defaultWidthTier:"wide",icon:ue,get defaultTitle(){return e.workspace_page_workspaceResource_label()},get categoryLabel(){return e.workspace_page_workspaceResource_label()},renameable:!1}),u.register({type:"browser",loadComponent:()=>c(()=>import("./CE7ZckmT.js"),__vite__mapDeps([209,1,2,3,11,6,7,8,9,10,15,210,22,23,24,25,26,18,13,4,70,14,16,17,19,12,20,21,27,28,29,30,31,32,45,33,34,35,36,37,38,39,40,41,42,43,44,46,58,71,63,62,64,67,60,59,72,73,74,75,76,77,180,91,57,61,181,211,122,212,124,52,135,85,213,98,99,214,106,107,108,109,110,215,216,101,217,218]),import.meta.url),defaultWidthTier:"wide",icon:Ve,get defaultTitle(){return e.layout_tabTypes_browser_title()},get categoryLabel(){return e.layout_tabTypes_browser_category()},sidebarTabId:"browser",renameable:!1}),u.register({type:"terminal",loadComponent:()=>c(()=>import("./DthJR85Z.js"),__vite__mapDeps([219,1,2,3,4,11,28,7,8,9,10,6,63,18,22,23,24,25,26,13,62,16,17,19,64,20,220,15,221,222,59,60,57,58,61,223,224,225,226,227,109,211,190,228,14,12,21,27,29,30,31,32,212,229,71,67,72,73,74,75,76,77,36,42,43,40,41,216,230,38,35,39,135,33,34,37,44,45,46,214,231,148,232,233,101,217]),import.meta.url),defaultWidthTier:"medium",icon:Ne,get defaultTitle(){return e.layout_tabTypes_terminal_title()},get categoryLabel(){return e.layout_tabTypes_terminal_category()},sidebarTabId:"terminals",renameable:!1}),u.register({type:"code-review",loadComponent:()=>c(()=>import("./yus24-dF.js"),__vite__mapDeps([234,1,2,22,23,24,25,9,7,26,18,13,3,29,6,8,10,63,62,28,11,16,17,19,64,20,215,73,75,91,71,67,60,59,72,74,58,76,77,57,61,216,180,12,14,15,4,21,27,30,31,32,181,101,235,236,177,83,86,178,179,129,131,132,141,229,166,237,217,238,36,42,43,40,41,110,109,171,205,190,212,142,134,70,239,240,241,242,243,198,150,106,107,108,244,245,223,224,225,226,227,139,152,153,35,163,81,68,69,33,34,37,38,39,44,45,46,78,79,80,50,51,116,164,124,52]),import.meta.url),defaultWidthTier:"wide",icon:$e,get defaultTitle(){return e.layout_tabTypes_codeReview_title()},get categoryLabel(){return e.layout_tabTypes_codeReview_category()},renameable:!1}),u.register({type:"agent-overview",loadComponent:()=>c(()=>import("./DgzWQmDb.js"),__vite__mapDeps([246,1,2,3,6,7,8,9,10,15,14,16,13,17,18,19,11,4,118,119,120,72,22,23,24,25,26,73,62,74,63,28,64,20,75,58,121,12,21,27,29,30,31,32,157,80,51,177,83,86,67,60,59,178,179,129,91,71,76,77,57,61,131,132,141,106,107,108,109,110,247]),import.meta.url),defaultWidthTier:"narrow",icon:Me,get defaultTitle(){return e.layout_tabTypes_agentOverview_title()},get categoryLabel(){return e.layout_tabTypes_agents_category()},renameable:!1}),u.register({type:"agent",loadComponent:()=>c(()=>import("./B0dqY8Yd.js"),__vite__mapDeps([248,1,2,3,4,6,7,8,9,10,11,15,71,22,23,24,25,26,18,13,63,62,28,16,17,19,64,20,67,60,59,72,73,74,75,58,76,77,249,14,250,237,12,21,27,29,30,31,32,236,101,57,61,132,204,44,45,214,239,131,91,240,102,35,36,47,48,49,42,43,50,51,52,53,103,38,39,104,85,34,37,40,41,70,81,105,94,95,46,80,33,106,107,108,109,110,111,112,113,114,193,54,55,56,65,66,68,69,78,79,82,83,84,86,87,88,89,90,92,93,96,97,98,99,100,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,194,195,196,197,198,199,200,201,202,203,205,206,207,216,215]),import.meta.url),defaultWidthTier:"chat",icon:ge,get defaultTitle(){return e.layout_tabTypes_agent_title()},get categoryLabel(){return e.layout_tabTypes_agents_category()},sidebarTabId:"agents",renameable:!0}),u.register({type:"discussion",loadComponent:()=>c(()=>import("./BSsSTp5c.js"),__vite__mapDeps([251,1,2,3,4,11,8,9,7,10,16,13,17,18,19,38,6,29,35,15,36,14,39,33,34,37,27,40,41,28,42,31,43,44,45,46,21,22,23,24,25,26,216,12,20,30,32,63,62,64,71,67,60,59,72,73,74,75,58,76,77,91,57,61,193,87,88,65,111,119,120,124,52,160,81,163,139,68,69,70,78,79,80,50,51,116,164,98,99,48,235,215,180,181,101,236,177,83,86,178,179,129,131,132,141,229,166,237,217,238,110,109,171,205,190,212,142,134,239,240,241,242,243,198,150,106,107,108,244,245,223,224,225,226,227,128,130,252,97,93,94,49,95,96,117,214,253]),import.meta.url),defaultWidthTier:"chat",icon:ge,get defaultTitle(){return e.workspace_discussion_title()},get categoryLabel(){return e.workspace_discussion_list_label()},sidebarTabId:"people",renameable:!1}),u.register({type:"note",loadComponent:()=>c(()=>import("./uQRHnH1Z.js"),__vite__mapDeps([254,1,2,3,11,63,18,9,22,23,24,25,7,26,13,62,28,8,10,6,16,17,19,64,20,214,180,91,71,67,60,59,72,73,74,75,58,76,77,57,61,12,14,15,4,21,27,29,30,31,32,181,35,36,80,87,88,50,51,33,34,37,38,39,40,41,42,43,44,45,46,116,119,120,137,138,139,140,115,70,52,68,69,78,79,81,66,117,111,118,121,122,99,123,235,215,216,101,236,177,83,86,178,179,129,131,132,141,229,166,237,217,238,110,109,171,205,190,212,142,134,239,240,241,242,243,198,150,106,107,108,244,245,223,224,225,226,227,145,55,146,147,148,149,255,256,257,105,94,49,95,162,194,258,259,152,153,112,48,113,260,155,156,157,158,151,154,161,183,191,135,196,197,173,163,164,261]),import.meta.url),defaultWidthTier:"medium",icon:H.note,get defaultTitle(){return e.layout_tabTypes_note_title()},get categoryLabel(){return e.layout_tabTypes_context_category()},sidebarTabId:"notes",renameable:!0}),u.register({type:"file",loadComponent:()=>c(()=>import("./PZ5MSUIU.js"),__vite__mapDeps([262,1,2,3,4,6,7,8,9,10,11,15,22,23,24,25,26,18,13,214,150,63,62,28,16,17,19,64,20,263,67,60,59,198,74,12,14,21,27,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,235,61,57,58,91,71,72,73,75,76,77,215,216,180,181,101,236,177,83,86,178,179,129,131,132,141,229,166,237,217,238,110,109,171,205,190,212,142,134,70,239,240,241,242,243,106,107,108,244,245,223,224,225,226,227,255,256,116,257,163,139,81,68,69,78,79,80,50,51,164,135,264,122,265,233,266]),import.meta.url),defaultWidthTier:"wide",icon:Ke,get defaultTitle(){return e.layout_tabTypes_file_title()},get categoryLabel(){return e.layout_tabTypes_files_category()},sidebarTabId:"files",renameable:!0}),u.register({type:"diff",loadComponent:()=>c(()=>import("./CCMvmg57.js"),__vite__mapDeps([267,1,2,3,4,11,162,22,23,24,25,9,7,26,18,13,214,63,62,28,8,10,6,16,17,19,64,20,145,55,15,131,59,91,71,67,60,72,73,74,75,58,76,77,57,61,21,132,146,147,14,148,35,29,36,149,268,150,33,34,37,27,38,39,40,41,42,31,43,44,45,46,116,135,264,196,197,173,12,30,32,198,120]),import.meta.url),defaultWidthTier:"wide",icon:Be,get defaultTitle(){return e.layout_tabTypes_diff_title()},get categoryLabel(){return e.layout_tabTypes_changes_category()},sidebarTabId:"files",renameable:!1}),u.register({type:"changes",loadComponent:()=>c(()=>import("./DxZIPHU6.js"),__vite__mapDeps([269,1,2,4,15,22,23,24,25,9,7,26,18,13,162,214,63,62,28,11,3,8,10,6,16,17,19,64,20,215,73,75,91,71,67,60,59,72,74,58,76,77,57,61,216,180,12,14,21,27,29,30,31,32,181,101,270,159,258,259,145,55,131,132,146,147,148,35,36,149,268,150,33,34,37,38,39,40,41,42,43,44,45,46,116,119,120,112,48,49,113,133,134,70,125,142,177,83,86,178,179,129,141,235,236,229,166,237,217,238,110,109,171,205,190,212,239,240,241,242,243,198,106,107,108,244,245,223,224,225,226,227,271,264]),import.meta.url),defaultWidthTier:"wide",icon:H.changes,get defaultTitle(){return e.layout_tabTypes_changes_title()},get categoryLabel(){return e.layout_tabTypes_changes_category()},sidebarTabId:"changes",renameable:!1}),u.register({type:"local-changes",loadComponent:()=>c(()=>import("./wsIl6ydR.js"),__vite__mapDeps([272,1,2,15,22,23,24,25,9,7,26,18,13,162,214,63,62,28,11,3,8,10,6,16,17,19,64,20,270,29,159,258,259,91,71,67,60,59,72,73,74,75,58,76,77,57,61,145,55,131,21,132,146,147,14,4,148,35,36,149,268,150,33,34,37,27,38,39,40,41,42,31,43,44,45,46,116,119,120,112,30,48,49,113,12,32,133,134,70,125,142,180,181,215,216,101,177,83,86,178,179,129,141,235,236,229,166,237,217,238,110,109,171,205,190,212,239,240,241,242,243,198,106,107,108,244,245,223,224,225,226,227,271,264]),import.meta.url),defaultWidthTier:"wide",icon:H.changes,get defaultTitle(){return e.layout_tabTypes_localChanges_title()},get categoryLabel(){return e.layout_tabTypes_changes_category()},sidebarTabId:"changes",renameable:!1}),u.register({type:"chat-changes",loadComponent:()=>c(()=>import("./CKa70XGN.js"),__vite__mapDeps([273,1,2,3,270,6,7,8,9,10,29,15,22,23,24,25,26,18,13,159,63,62,28,11,16,17,19,64,20,258,259,91,71,67,60,59,72,73,74,75,58,76,77,57,61,145,55,131,21,132,146,147,14,4,148,35,36,149,268,150,33,34,37,27,38,39,40,41,42,31,43,44,45,46,116,119,120,112,30,48,49,113,12,32,133,134,70,125,142,180,181,215,216,101,177,83,86,178,179,129,141,235,236,229,166,237,217,238,110,109,171,205,190,212,239,240,241,242,243,198,106,107,108,244,245,223,224,225,226,227,271]),import.meta.url),defaultWidthTier:"wide",icon:H.changes,get defaultTitle(){return e.layout_tabTypes_chatChanges_title()},get categoryLabel(){return e.layout_tabTypes_changes_category()},renameable:!1}),u.register({type:"activity-changes",loadComponent:()=>c(()=>import("./u-Z99Ptk.js"),__vite__mapDeps([274,1,2,3,4,11,62,23,22,24,25,9,7,26,18,13,240,59,145,8,10,55,15,131,16,17,19,91,63,28,6,64,20,71,67,60,72,73,74,75,58,76,77,57,61,21,132,146,147,14,148,35,29,36,149,268,150,33,34,37,27,38,39,40,41,42,31,43,44,45,46,116,214,135,264,196,197,173,12,30,32,198,120]),import.meta.url),defaultWidthTier:"wide",icon:H.changes,get defaultTitle(){return e.layout_tabTypes_activityChanges_title()},get categoryLabel(){return e.layout_tabTypes_changes_category()},renameable:!1}),u.register({type:"hook-script",loadComponent:()=>c(()=>import("./B6Qz5J1y.js"),__vite__mapDeps([275,1,2,3,151,6,7,8,9,10,139,152,59,153,12,13,14,15,16,17,18,19,11,4,20,21,22,23,24,25,26,27,28,29,30,31,32,154,166,63,62,64,73,74]),import.meta.url),defaultWidthTier:"medium",icon:Ge,get defaultTitle(){return e.chat_backgroundHooks_viewScript_label()},get categoryLabel(){return e.layout_tabTypes_panel_category()},renameable:!1}),u.register({type:"settings",loadComponent:()=>c(()=>import("./W7uazUja.js"),__vite__mapDeps([276,1,2]),import.meta.url),defaultWidthTier:"narrow",icon:He,get defaultTitle(){return e.layout_tabTypes_settings_title()},get categoryLabel(){return e.layout_tabTypes_settings_category()},renameable:!1}),u.register({type:"overview",loadComponent:()=>c(()=>import("./YsAO4v_N.js"),__vite__mapDeps([277,1,2]),import.meta.url),defaultWidthTier:"narrow",icon:ue,get defaultTitle(){return e.layout_tabTypes_overview_title()},get categoryLabel(){return e.layout_tabTypes_overview_category()},renameable:!1})}async function Wt(y){if(y?.restoreStatus!=="restored")return;const _=new Set(Object.values(y.panels).flatMap(r=>{const k=r.tabs.find(l=>l.id===r.activeTabId);return k?[k.type]:[]}));await Promise.allSettled([..._].map(r=>u.loadComponent(r)))}var at=W("<!> <!>",1),rt=W('<img class="h-auto w-full max-w-64 rounded-lg" width="512" height="512"/>'),ot=W('<div class="flex aspect-square w-full max-w-64 items-center justify-center"><!></div>'),st=W('<div class="flex justify-center" data-testid="passkey-qr"><!></div>'),it=W('<div class="flex justify-center py-4 text-muted-foreground"><!></div>'),nt=W('<p class="type-caption text-muted-foreground" data-testid="passkey-pin-advice"> </p>'),lt=W('<form id="passkey-pin-form" class="flex flex-col gap-3"><!> <!></form>');function Pe(y,_){if(new.target)return Te({component:Pe,...y});we(_,!0);let r=ie(_,"payload",7),k=ie(_,"static",7,!1),l=ie(_,"onRespond",7),f=K(!1),A=K(""),U=K("");const a=b(()=>r()?.view??null);Q(()=>{v(f,r()!==null)}),Q(()=>{t(a)?.step!=="pin"&&v(A,"")});let z=K(0),Y=K(ze(Date.now()));Q(()=>{const i=t(a)?.step==="pin"&&t(a).kind==="device"?t(a).retryAfterMs:void 0;if(typeof i!="number"){v(z,0);return}const T=Date.now();v(Y,T,!0),v(z,T+i);const w=setInterval(()=>{v(Y,Date.now(),!0),t(Y)>=t(z)&&clearInterval(w)},250);return()=>clearInterval(w)});const ee=b(()=>Math.max(0,Math.ceil((t(z)-t(Y))/1e3))),_e=b(()=>t(a)?.step==="pin"&&(t(a).kind==="device"?t(ee)>0:typeof t(a).retryAfterMs=="number"));Q(()=>{const i=t(a)?.step==="qr"?t(a).data:"";if(!i){v(U,"");return}let T=!0;return c(async()=>{const{default:w}=await import("./BZ9svoQk.js").then(C=>C.b);return{default:w}},__vite__mapDeps([278,59]),import.meta.url).then(({default:w})=>w.toDataURL(i,{width:512,margin:2})).then(w=>{T&&v(U,w,!0)}),()=>{T=!1}});const Ee=b(()=>r()?r().kind==="create"?e.passkeys_dialog_createTitle_label({site:r().rpId}):e.passkeys_dialog_getTitle_label({site:r().rpId}):"");function De(i){switch(i){case"bluetooth-off":return e.passkeys_dialog_bluetoothOff_error();case"bluetooth-missing":return e.passkeys_dialog_bluetoothMissing_error();case"pin-locked":return e.passkeys_dialog_pinLocked_error();case"timeout":return e.passkeys_dialog_timeout_error();case"already-registered":return e.passkeys_dialog_alreadyRegistered_error();case"unavailable":return e.passkeys_dialog_unavailable_error();case"device-locked":return e.passkeys_dialog_deviceLocked_error();case"device-already-registered":return e.passkeys_dialog_deviceAlreadyRegistered_error();case"device-no-passkey":return e.passkeys_dialog_deviceNoPasskey_error({site:r()?.rpId??""});case"device-old-pin-wrong":return e.passkeys_dialog_deviceOldPinWrong_error();case"device-failed":return e.passkeys_dialog_deviceFailed_error();default:return e.passkeys_dialog_failed_error()}}const Ae=b(()=>{if(!(!t(a)||!r()))switch(t(a).step){case"choose-transport":return r().kind==="create"?e.passkeys_dialog_chooseCreate_description():e.passkeys_dialog_chooseGet_description();case"qr":case"progress":switch(t(a).progress){case"waiting-for-phone":return e.passkeys_dialog_waitingForPhone_description();case"connecting":return e.passkeys_dialog_connecting_description();case"waiting-for-approval":return e.passkeys_dialog_waitingForApproval_description();case"touch-key":return e.passkeys_dialog_touchKey_description();case"processing":return e.passkeys_dialog_processing_description();default:return t(a).step==="progress"&&t(a).transport==="usb"?e.passkeys_dialog_insertKey_description():e.passkeys_dialog_starting_description()}case"pin":return t(a).kind==="usb"?e.passkeys_dialog_pin_description():t(a).oldPin?e.passkeys_dialog_deviceOldPin_description():e.passkeys_dialog_devicePin_description();case"choose-account":return e.passkeys_dialog_chooseAccount_description();case"error":return De(t(a).reason)}}),de=b(()=>t(a)?.step==="pin"&&t(a).kind==="device"?t(a).oldPin?e.passkeys_dialog_deviceOldPin_label():e.passkeys_dialog_devicePin_label():e.passkeys_dialog_pin_label()),Ce=b(()=>{if(t(a)?.step==="pin"){if(t(a).kind==="device"){if(t(ee)>0)return e.passkeys_dialog_devicePinWait_error({seconds:t(ee)})}else if(typeof t(a).retryAfterMs=="number")return e.passkeys_dialog_pinRetryAfter_error();if(t(a).wrongPin)return typeof t(a).attemptsLeft=="number"?t(a).attemptsLeft===1?e.passkeys_dialog_wrongPinAttempts_one({count:t(a).attemptsLeft}):e.passkeys_dialog_wrongPinAttempts_many({count:t(a).attemptsLeft}):e.passkeys_dialog_wrongPin_error()}}),Oe=b(()=>{if(t(a)?.step!=="choose-transport")return[];const i=t(a).hybrid==="bluetooth-off"?e.passkeys_dialog_bluetoothOff_description():t(a).hybrid==="bluetooth-missing"?e.passkeys_dialog_bluetoothMissing_description():void 0;return[...t(a).device?[{id:"device",label:e.passkeys_dialog_thisDevice_label(),note:void 0,icon:qe}]:[],{id:"hybrid",label:e.passkeys_dialog_phone_label(),note:i,icon:Fe},{id:"usb",label:e.passkeys_dialog_securityKey_label(),note:void 0,icon:je}]});function te(){l()({action:"cancel"})}function Re(i){if(i.preventDefault(),!t(A))return;const T=t(A);v(A,""),l()({action:"pin",pin:T})}var xe={get payload(){return r()},set payload(i){r(i),ne()},get static(){return k()},set static(i=!1){k(i),ne()},get onRespond(){return l()},set onRespond(i){l(i),ne()},$set:he,$on:(i,T)=>ke(_,i,T)},pe=q(),We=M(pe);{var Se=i=>{{const T=C=>{var ae=q(),J=M(ae);{var re=P=>{le(P,{variant:"secondary",onclick:te,children:(S,B)=>{F();var V=x();I(d=>E(V,d),[()=>e.passkeys_dialog_close_label()]),p(S,V)},$$slots:{default:!0}})},oe=P=>{var S=at(),B=M(S);le(B,{variant:"ghost",onclick:te,children:(n,m)=>{F();var s=x();I(L=>E(s,L),[()=>e.passkeys_dialog_cancel_label()]),p(n,s)},$$slots:{default:!0}});var V=ye(B,2);{var d=n=>{{let m=b(()=>!t(A)||t(_e));le(n,{variant:"primary",type:"submit",form:"passkey-pin-form",get disabled(){return t(m)},children:(s,L)=>{F();var o=x();I(g=>E(o,g),[()=>e.passkeys_dialog_continue_label()]),p(s,o)},$$slots:{default:!0}})}};D(V,n=>{t(a).step==="pin"&&n(d)})}p(P,S)};D(J,P=>{t(a).step==="error"?P(re):P(oe,-1)})}p(C,ae)};let w=b(()=>t(a).step==="error"?e.passkeys_dialog_close_label():e.passkeys_dialog_cancel_label());Xe(i,{get static(){return k()},get title(){return t(Ee)},get description(){return t(Ae)},size:"sm",dismissOnInteractOutside:!1,get closeLabel(){return t(w)},onClose:te,get open(){return t(f)},set open(C){v(f,C,!0)},footer:T,children:(C,ae)=>{var J=q(),re=M(J);{var oe=d=>{{const n=(s,L)=>{let o=()=>(L?.()).item;me(s,{leading:h=>{Ue(h,{get icon(){return o().icon},fw:!0})},title:h=>{F();var R=x();I(()=>E(R,o().label)),p(h,R)},description:h=>{var R=q(),se=M(R);{var G=$=>{var ce=x();I(()=>E(ce,o().note)),p($,ce)};D(se,$=>{o().note&&$(G)})}p(h,R)},$$slots:{leading:!0,title:!0,description:!0}})};let m=b(()=>e.passkeys_dialog_transports_ariaLabel());be(d,{get items(){return t(Oe)},getKey:s=>s.id,getText:s=>s.label,get ariaLabel(){return t(m)},onActivate:s=>l()({action:"transport",transport:s.id}),row:n,$$slots:{row:!0}})}},P=d=>{var n=st(),m=X(n);{var s=o=>{var g=rt();I(O=>{fe(g,"src",t(U)),fe(g,"alt",O)},[()=>e.passkeys_dialog_qrImage_ariaLabel()]),p(o,g)},L=o=>{var g=ot(),O=X(g);ve(O,{size:20}),Z(g),p(o,g)};D(m,o=>{t(U)?o(s):o(L,-1)})}Z(n),p(d,n)},S=d=>{var n=it(),m=X(n);ve(m,{size:20}),Z(n),p(d,n)},B=d=>{var n=lt(),m=X(n);{let o=b(()=>t(a).kind==="device"?"numeric":void 0);Ze(m,{type:"password",get inputmode(){return t(o)},autocomplete:"off",get"aria-label"(){return t(de)},get placeholder(){return t(de)},get error(){return t(Ce)},get disabled(){return t(_e)},autofocus:!0,get value(){return t(A)},set value(g){v(A,g,!0)}})}var s=ye(m,2);{var L=o=>{var g=nt(),O=Je(g,!0);I(N=>E(O,N),[()=>e.passkeys_dialog_devicePinAdvice_description()]),p(o,g)};D(s,o=>{t(a).firstPasskey&&o(L)})}Z(n),Ye("submit",n,Re),p(d,n)},V=d=>{{const n=(s,L)=>{let o=()=>(L?.()).item;me(s,{title:N=>{F();var h=x();I(()=>E(h,o().userDisplayName||o().userName)),p(N,h)},description:N=>{var h=q(),R=M(h);{var se=G=>{var $=x();I(()=>E($,o().userName)),p(G,$)};D(R,G=>{o().userDisplayName&&o().userName&&G(se)})}p(N,h)},$$slots:{title:!0,description:!0}})};let m=b(()=>e.passkeys_dialog_accounts_ariaLabel());be(d,{get items(){return t(a).accounts},getKey:s=>s.index,getText:s=>s.userDisplayName||s.userName,get ariaLabel(){return t(m)},onActivate:s=>l()({action:"choose",index:s.index}),row:n,$$slots:{row:!0}})}};D(re,d=>{t(a).step==="choose-transport"?d(oe):t(a).step==="qr"?d(P,1):t(a).step==="progress"?d(S,2):t(a).step==="pin"?d(B,3):t(a).step==="choose-account"&&d(V,4)})}p(C,J)},$$slots:{footer:!0,default:!0}})}};D(We,i=>{r()&&t(a)&&i(Se)})}return p(y,pe),Le(xe)}const _t=new tt("PasskeyDialog"),j=et.PASSKEYS;function dt(y){const _=Ie();if(!_)return()=>{};const r=_.on(j.DIALOG_SHOW,l=>{const f=l;!f||typeof f.ceremonyId!="string"||!f.view||y.onShow(f)}),k=_.on(j.DIALOG_CLOSE,l=>{const f=l;f&&typeof f.ceremonyId=="string"&&y.onClose(f.ceremonyId)});return()=>{_.offById(j.DIALOG_SHOW,r),_.offById(j.DIALOG_CLOSE,k)}}function pt(y){const _=Ie();_&&_.invoke(j.DIALOG_RESPOND,y).catch(()=>{_t.warn("Passkey dialog response failed",{action:y.action})})}function ct(y,_){if(new.target)return Te({component:ct,...y});we(_,!0);let r=K(null);Qe(()=>dt({onShow:l=>{v(r,l,!0)},onClose:l=>{t(r)?.ceremonyId===l&&v(r,null)}}));var k={$set:he,$on:(l,f)=>ke(_,l,f)};return Pe(y,{get payload(){return t(r)},onRespond:l=>{t(r)&&pt({...l,ceremonyId:t(r).ceremonyId})}}),Le(k)}export{ct as P,Wt as p,xt as r};
@@ -1 +1 @@
1
- import{n as i}from"./CccfsETL.js";import{o as n}from"./CDcxODgf.js";import{m as o,JH as a,EB as s,vr as r,v1 as f}from"./D0qhIm1r.js";async function u(t,e){if(!(!t||!e)){if(t===o){await i("/"),a.dispatch(s(e)),a.dispatch(r("chief"));return}await n(t)&&a.dispatch(f(t,{agentId:e}))}}export{u as n};
1
+ import{n as i}from"./8ItTOum-.js";import{o as n}from"./CnDbx_Wj.js";import{m as o,JH as a,EB as s,vr as r,v1 as f}from"./D0qhIm1r.js";async function u(t,e){if(!(!t||!e)){if(t===o){await i("/"),a.dispatch(s(e)),a.dispatch(r("chief"));return}await n(t)&&a.dispatch(f(t,{agentId:e}))}}export{u as n};