@datalayer/agent-runtimes 1.5.70 → 1.5.73

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 (810) hide show
  1. package/dist-embed/chunks/{DeckComponent-DAnUabRV.js → DeckComponent-Cd1sbs9L.js} +1 -1
  2. package/dist-embed/chunks/{DocumentView-BKFitqiB.js → DocumentView-ssQ835Wa.js} +1 -1
  3. package/dist-embed/chunks/{EphemeralDocument-BRzYMd8Z.js → EphemeralDocument-DNziilOG.js} +1 -1
  4. package/dist-embed/chunks/{ExcalidrawComponent-VnKcai35.js → ExcalidrawComponent-CQ4BeoQt.js} +1 -1
  5. package/dist-embed/chunks/{ExcalidrawModal-DrntFjbe.js → ExcalidrawModal-8W-b1OmA.js} +1 -1
  6. package/dist-embed/chunks/{JupyterLexicalExtension-BBivQZvX.js → JupyterLexicalExtension-BLYM-DTn.js} +4 -4
  7. package/dist-embed/chunks/{YouTubePlugin-C209681s.js → YouTubePlugin-BgZG6fCA.js} +1 -1
  8. package/dist-embed/chunks/abnfDiagram-VCTEODGH-BdOOK2nG.js +1 -0
  9. package/dist-embed/chunks/abnfDiagram-VCTEODGH-CHerLzZ0.js +1 -0
  10. package/dist-embed/chunks/{ar-SA-G6X2FPQ2-Dypu3IcK.js → ar-SA-G6X2FPQ2-Bcy9b6jn.js} +1 -1
  11. package/dist-embed/chunks/{architectureDiagram-5GKGNRK7-C22xzf-o.js → architectureDiagram-5GKGNRK7-C8jjE2mY.js} +2 -2
  12. package/dist-embed/chunks/architectureDiagram-5GKGNRK7-GukKr_g1.js +36 -0
  13. package/dist-embed/chunks/{az-AZ-76LH7QW2-D8CzfKb1.js → az-AZ-76LH7QW2-Bzy5rt95.js} +1 -1
  14. package/dist-embed/chunks/{bg-BG-XCXSNQG7-_NVFEM1_.js → bg-BG-XCXSNQG7-C3mQkAoD.js} +1 -1
  15. package/dist-embed/chunks/{blockDiagram-I7D4REHJ-CHicgYkf.js → blockDiagram-I7D4REHJ-DH6ta7S_.js} +2 -2
  16. package/dist-embed/chunks/blockDiagram-I7D4REHJ-edfypROz.js +129 -0
  17. package/dist-embed/chunks/{bn-BD-2XOGV67Q-DMgdNi-k.js → bn-BD-2XOGV67Q-DHwDUFeg.js} +1 -1
  18. package/dist-embed/chunks/{c4Diagram-7LVT6UL2-auJZQjpw.js → c4Diagram-7LVT6UL2-B6NHHf7w.js} +2 -2
  19. package/dist-embed/chunks/c4Diagram-7LVT6UL2-BD3Ld97M.js +38 -0
  20. package/dist-embed/chunks/{ca-ES-6MX7JW3Y-DpOQhzr4.js → ca-ES-6MX7JW3Y-CWMZCfjI.js} +1 -1
  21. package/dist-embed/chunks/{chunk-2Q5K7J3B-DpFWUcsT.js → chunk-2Q5K7J3B-9xCosPaH.js} +1 -1
  22. package/dist-embed/chunks/chunk-2Q5K7J3B-ZWnuQ6M2.js +1 -0
  23. package/dist-embed/chunks/{chunk-5VM5RSS4-CaowF8Al.js → chunk-5VM5RSS4-7q2jPq-I.js} +1 -1
  24. package/dist-embed/chunks/chunk-5VM5RSS4-C2EZUNrH.js +15 -0
  25. package/dist-embed/chunks/{chunk-F27PBJKO-D7PuEggc.js → chunk-F27PBJKO-hasZYXJc.js} +1 -1
  26. package/dist-embed/chunks/chunk-F27PBJKO-iAw_9Xtd.js +1 -0
  27. package/dist-embed/chunks/{chunk-IMKFNOWR-jZNuNkCa.js → chunk-IMKFNOWR-CR2LIHPi.js} +1 -1
  28. package/dist-embed/chunks/chunk-IMKFNOWR-CU661Hle.js +231 -0
  29. package/dist-embed/chunks/{chunk-JWPE2WC7-BIShIUcJ.js → chunk-JWPE2WC7-B40RAhYQ.js} +1 -1
  30. package/dist-embed/chunks/chunk-JWPE2WC7-D4pNFsZF.js +1 -0
  31. package/dist-embed/chunks/{chunk-POPQ4Y6H-DG5Q2OKT.js → chunk-POPQ4Y6H-CNc-_UkX.js} +1 -1
  32. package/dist-embed/chunks/chunk-POPQ4Y6H-PC7NS4ab.js +1 -0
  33. package/dist-embed/chunks/{chunk-SVP7TREG-ERRaAh-x.js → chunk-SVP7TREG-B-LR0OEY.js} +1 -1
  34. package/dist-embed/chunks/chunk-SVP7TREG-BgVpHjUA.js +88 -0
  35. package/dist-embed/chunks/{chunk-TICWLB2K-B91fA6Jd.js → chunk-TICWLB2K-BKUWUi4x.js} +1 -1
  36. package/dist-embed/chunks/chunk-TICWLB2K-D0mlrZUj.js +206 -0
  37. package/dist-embed/chunks/{chunk-XXDRQBXY-BAy0lBJk.js → chunk-XXDRQBXY-CFD4Agg8.js} +1 -1
  38. package/dist-embed/chunks/chunk-XXDRQBXY-DF8wFPCi.js +1 -0
  39. package/dist-embed/chunks/classDiagram-ZZMXUADV-B2RPE1Bl.js +1 -0
  40. package/dist-embed/chunks/classDiagram-ZZMXUADV-BSdRgwsr.js +1 -0
  41. package/dist-embed/chunks/classDiagram-v2-VYDZK3BY-B2RPE1Bl.js +1 -0
  42. package/dist-embed/chunks/classDiagram-v2-VYDZK3BY-BSdRgwsr.js +1 -0
  43. package/dist-embed/chunks/cose-bilkent-JH36ORCC-CGF9N16A.js +1 -0
  44. package/dist-embed/chunks/cose-bilkent-JH36ORCC-D976z1sp.js +1 -0
  45. package/dist-embed/chunks/{cs-CZ-2BRQDIVT-Fr-SpqHD.js → cs-CZ-2BRQDIVT-B_pe2qj9.js} +1 -1
  46. package/dist-embed/chunks/cynefin-OW5HDTMX-BBLugbYz.js +166 -0
  47. package/dist-embed/chunks/cynefinDiagram-5FMLGOSQ-Cil4cm66.js +62 -0
  48. package/dist-embed/chunks/cynefinDiagram-5FMLGOSQ-D7ioXav_.js +62 -0
  49. package/dist-embed/chunks/{da-DK-5WZEPLOC-DO_sAXvt.js → da-DK-5WZEPLOC-CGWCNcJj.js} +1 -1
  50. package/dist-embed/chunks/{dagre-GXQ25YYZ-BgrGEY09.js → dagre-GXQ25YYZ-Cp78_L9l.js} +2 -2
  51. package/dist-embed/chunks/dagre-GXQ25YYZ-DauBFK-x.js +4 -0
  52. package/dist-embed/chunks/{de-DE-XR44H4JA-4JnXB_iM.js → de-DE-XR44H4JA-DTdq2h_G.js} +1 -1
  53. package/dist-embed/chunks/{diagram-S7CK7UJ4-hQvZziAN.js → diagram-S7CK7UJ4-LsSU5PzE.js} +2 -2
  54. package/dist-embed/chunks/diagram-S7CK7UJ4-cLOCifii.js +30 -0
  55. package/dist-embed/chunks/diagram-UQ7AKVKN-BK4qe_eB.js +41 -0
  56. package/dist-embed/chunks/diagram-UQ7AKVKN-CoIPlGw-.js +41 -0
  57. package/dist-embed/chunks/diagram-VSXAHHWV-CIhWkrRX.js +3 -0
  58. package/dist-embed/chunks/{diagram-VSXAHHWV-WVuzjdxU.js → diagram-VSXAHHWV-DWWQ-Ga9.js} +2 -2
  59. package/dist-embed/chunks/diagram-VX7I27RA-43SwkivD.js +24 -0
  60. package/dist-embed/chunks/diagram-VX7I27RA-CQM8aGRO.js +24 -0
  61. package/dist-embed/chunks/diagram-Z3DM3KII-Da75Rc5Q.js +24 -0
  62. package/dist-embed/chunks/diagram-Z3DM3KII-DrILxydN.js +24 -0
  63. package/dist-embed/chunks/ebnfDiagram-PWID7BFC-CwBVaHP2.js +1 -0
  64. package/dist-embed/chunks/ebnfDiagram-PWID7BFC-Klx1dPe6.js +1 -0
  65. package/dist-embed/chunks/{el-GR-BZB4AONW-MydAlwHl.js → el-GR-BZB4AONW-qdInZt55.js} +1 -1
  66. package/dist-embed/chunks/{erDiagram-RLTQ6QDP-zwXEFcAp.js → erDiagram-RLTQ6QDP-6YXMuidI.js} +2 -2
  67. package/dist-embed/chunks/erDiagram-RLTQ6QDP-DmlOR1VA.js +99 -0
  68. package/dist-embed/chunks/{es-ES-U4NZUMDT-rQmnr_uu.js → es-ES-U4NZUMDT-CbVgghD5.js} +1 -1
  69. package/dist-embed/chunks/{eu-ES-A7QVB2H4-j5Hf8ngk.js → eu-ES-A7QVB2H4-Cfyi4-QV.js} +1 -1
  70. package/dist-embed/chunks/{fa-IR-HGAKTJCU-DMJRRSBp.js → fa-IR-HGAKTJCU-Bpz9Yk2c.js} +1 -1
  71. package/dist-embed/chunks/{fi-FI-Z5N7JZ37-BFLC0BFd.js → fi-FI-Z5N7JZ37-CnNP_ASI.js} +1 -1
  72. package/dist-embed/chunks/{flowDiagram-HODETNUW-BrbR1EkW.js → flowDiagram-HODETNUW-DpJLPDJS.js} +1 -1
  73. package/dist-embed/chunks/flowDiagram-HODETNUW-_PPo6xx4.js +168 -0
  74. package/dist-embed/chunks/{fr-FR-RHASNOE6-CxjhSJC1.js → fr-FR-RHASNOE6-CXIU81zC.js} +1 -1
  75. package/dist-embed/chunks/{ganttDiagram-EL5Y4UJY-DfJDZVnm.js → ganttDiagram-EL5Y4UJY-B3ddBLm-.js} +2 -2
  76. package/dist-embed/chunks/ganttDiagram-EL5Y4UJY-DnJUq63S.js +292 -0
  77. package/dist-embed/chunks/gitGraphDiagram-WWUBYQGX-CKVR9Ajq.js +106 -0
  78. package/dist-embed/chunks/gitGraphDiagram-WWUBYQGX-u7eHxrMk.js +106 -0
  79. package/dist-embed/chunks/{gl-ES-HMX3MZ6V-BuuMpTaX.js → gl-ES-HMX3MZ6V-Do1RdVfG.js} +1 -1
  80. package/dist-embed/chunks/{he-IL-6SHJWFNN-Cv3Nrcgu.js → he-IL-6SHJWFNN-NcTscmv6.js} +1 -1
  81. package/dist-embed/chunks/{hi-IN-IWLTKZ5I-Sddst60F.js → hi-IN-IWLTKZ5I-CyNpoQ12.js} +1 -1
  82. package/dist-embed/chunks/{hu-HU-A5ZG7DT2-ehrXVpD0.js → hu-HU-A5ZG7DT2-Bzge2Fdz.js} +1 -1
  83. package/dist-embed/chunks/{id-ID-SAP4L64H-Gfb1UYxZ.js → id-ID-SAP4L64H-DaNcoDhl.js} +1 -1
  84. package/dist-embed/chunks/{index-BaBNw6X5.js → index-BQdtKMKk.js} +56 -61
  85. package/dist-embed/chunks/index-CJys1M3A.js +6 -0
  86. package/dist-embed/chunks/{index-hxIHgkzg.js → index-CLdL3h_Z.js} +1 -1
  87. package/dist-embed/chunks/{index-DmpLE1d4.js → index-Cx_cIRez.js} +1 -1
  88. package/dist-embed/chunks/index-lOJZWhTu.js +337 -0
  89. package/dist-embed/chunks/infoDiagram-27XIBGKW-C3YByzAX.js +2 -0
  90. package/dist-embed/chunks/infoDiagram-27XIBGKW-CrHEoNfn.js +2 -0
  91. package/dist-embed/chunks/{ishikawaDiagram-5VMMS53U-DrEzfSK9.js → ishikawaDiagram-5VMMS53U-B87JmQRn.js} +6 -6
  92. package/dist-embed/chunks/ishikawaDiagram-5VMMS53U-DkW3YLz9.js +70 -0
  93. package/dist-embed/chunks/{it-IT-JPQ66NNP-BehLHkar.js → it-IT-JPQ66NNP-6fWP-4Pk.js} +1 -1
  94. package/dist-embed/chunks/{ja-JP-DBVTYXUO-BZvqIigI.js → ja-JP-DBVTYXUO-TOPcUfq8.js} +1 -1
  95. package/dist-embed/chunks/{journeyDiagram-3NMN7TZE-DpWKIFIN.js → journeyDiagram-3NMN7TZE-BcfZXfHF.js} +2 -2
  96. package/dist-embed/chunks/journeyDiagram-3NMN7TZE-BjO5pIr-.js +139 -0
  97. package/dist-embed/chunks/{kaa-6HZHGXH3-DgAIF6rN.js → kaa-6HZHGXH3-WPmptgZr.js} +1 -1
  98. package/dist-embed/chunks/{kab-KAB-ZGHBKWFO-DW4thPSJ.js → kab-KAB-ZGHBKWFO-CMOAXrZA.js} +1 -1
  99. package/dist-embed/chunks/{kanban-definition-UXKFOSKX-DxbTprYr.js → kanban-definition-UXKFOSKX-D9d45rsU.js} +2 -2
  100. package/dist-embed/chunks/kanban-definition-UXKFOSKX-DKCJ8_n0.js +89 -0
  101. package/dist-embed/chunks/{kk-KZ-P5N5QNE5-CCy_nSJ7.js → kk-KZ-P5N5QNE5-B6ezOPzr.js} +1 -1
  102. package/dist-embed/chunks/{km-KH-HSX4SM5Z-kpXyoxjS.js → km-KH-HSX4SM5Z-C84QUPbc.js} +1 -1
  103. package/dist-embed/chunks/{ko-KR-MTYHY66A-CFm6WtQG.js → ko-KR-MTYHY66A-cuBEuTL_.js} +1 -1
  104. package/dist-embed/chunks/{ku-TR-6OUDTVRD-CKF85mOv.js → ku-TR-6OUDTVRD-B9KdlCAR.js} +1 -1
  105. package/dist-embed/chunks/{layout-DYytgC9r.js → layout-C6Twj1mW.js} +1 -1
  106. package/dist-embed/chunks/layout-Do3wJC1j.js +1 -0
  107. package/dist-embed/chunks/{lt-LT-XHIRWOB4-CO9Bo5qJ.js → lt-LT-XHIRWOB4-B39JwBGi.js} +1 -1
  108. package/dist-embed/chunks/{lv-LV-5QDEKY6T-CvZszc5p.js → lv-LV-5QDEKY6T-8WReOaa7.js} +1 -1
  109. package/dist-embed/chunks/{mindmap-definition-YA3MSWOX-_1SBIPav.js → mindmap-definition-YA3MSWOX-5wZuXgB8.js} +2 -2
  110. package/dist-embed/chunks/mindmap-definition-YA3MSWOX-BURkGTKI.js +96 -0
  111. package/dist-embed/chunks/{mr-IN-CRQNXWMA-Cio_dB9M.js → mr-IN-CRQNXWMA-DUaS8VWx.js} +1 -1
  112. package/dist-embed/chunks/{my-MM-5M5IBNSE-Z0RQ5Vbz.js → my-MM-5M5IBNSE-BdJYwQXg.js} +1 -1
  113. package/dist-embed/chunks/{nb-NO-T6EIAALU-BEQ0YP9J.js → nb-NO-T6EIAALU-C_p5yu1z.js} +1 -1
  114. package/dist-embed/chunks/{nl-NL-IS3SIHDZ-YtkJnS_J.js → nl-NL-IS3SIHDZ-DM5qgcCp.js} +1 -1
  115. package/dist-embed/chunks/{nn-NO-6E72VCQL-C1j2s3qO.js → nn-NO-6E72VCQL-BuX1DqI5.js} +1 -1
  116. package/dist-embed/chunks/{oc-FR-POXYY2M6-CinnjccW.js → oc-FR-POXYY2M6-BAWljcaf.js} +1 -1
  117. package/dist-embed/chunks/{pa-IN-N4M65BXN-c_6OtC6L.js → pa-IN-N4M65BXN-2iyq8qxX.js} +1 -1
  118. package/dist-embed/chunks/pegDiagram-XKGWAZYB-BjrOX_Ki.js +1 -0
  119. package/dist-embed/chunks/pegDiagram-XKGWAZYB-CyuSADYr.js +1 -0
  120. package/dist-embed/chunks/{percentages-BXMCSKIN-VqMxh8LK.js → percentages-BXMCSKIN-C9b5dzpq.js} +5 -5
  121. package/dist-embed/chunks/{pieDiagram-E7YTZNPT-EvMxJb2S.js → pieDiagram-E7YTZNPT-GvxNnk0x.js} +2 -2
  122. package/dist-embed/chunks/pieDiagram-E7YTZNPT-ni9UMEzV.js +39 -0
  123. package/dist-embed/chunks/{pl-PL-T2D74RX3-Cn_9xZgM.js → pl-PL-T2D74RX3-C6nLJHhB.js} +1 -1
  124. package/dist-embed/chunks/{pt-BR-5N22H2LF-Da6r-Pp1.js → pt-BR-5N22H2LF-B1adz-DU.js} +1 -1
  125. package/dist-embed/chunks/{pt-PT-UZXXM6DQ-D6lhcuX9.js → pt-PT-UZXXM6DQ-BCZpI4LV.js} +1 -1
  126. package/dist-embed/chunks/{quadrantDiagram-AXDQQJYC-rFaTvNlk.js → quadrantDiagram-AXDQQJYC-CufBEqrC.js} +4 -4
  127. package/dist-embed/chunks/quadrantDiagram-AXDQQJYC-Yg2WGHWh.js +7 -0
  128. package/dist-embed/chunks/railroadDiagram-O6MQD6OU-6tStysfX.js +1 -0
  129. package/dist-embed/chunks/railroadDiagram-O6MQD6OU-Df7m1mT4.js +1 -0
  130. package/dist-embed/chunks/{requirementDiagram-BXWQKSXE-DHLQ_9Lw.js → requirementDiagram-BXWQKSXE-0AqPqv7a.js} +2 -2
  131. package/dist-embed/chunks/requirementDiagram-BXWQKSXE-CmXBYo40.js +84 -0
  132. package/dist-embed/chunks/{ro-RO-JPDTUUEW-BFss9e8X.js → ro-RO-JPDTUUEW-BPM7y_F2.js} +1 -1
  133. package/dist-embed/chunks/{ru-RU-B4JR7IUQ-DIruW2gS.js → ru-RU-B4JR7IUQ-UViKo8dy.js} +1 -1
  134. package/dist-embed/chunks/{sankeyDiagram-P5KCCOFB-Nk71fRsK.js → sankeyDiagram-P5KCCOFB-CqcWOAyy.js} +2 -2
  135. package/dist-embed/chunks/sankeyDiagram-P5KCCOFB-rQsp_j9w.js +40 -0
  136. package/dist-embed/chunks/{sequenceDiagram-WJ2MYXX4-Dm3QM01Z.js → sequenceDiagram-WJ2MYXX4-Br4F1sd7.js} +2 -2
  137. package/dist-embed/chunks/sequenceDiagram-WJ2MYXX4-GMFparx1.js +162 -0
  138. package/dist-embed/chunks/{si-LK-N5RQ5JYF-Dom-aTTE.js → si-LK-N5RQ5JYF-D7TIYEDr.js} +1 -1
  139. package/dist-embed/chunks/sizeCapture-INFHLROL-8qFOiWrK.js +1 -0
  140. package/dist-embed/chunks/sizeCapture-INFHLROL-C_M5Nl06.js +1 -0
  141. package/dist-embed/chunks/{sk-SK-C5VTKIMK-CLRU9TNq.js → sk-SK-C5VTKIMK-CQedcNlJ.js} +1 -1
  142. package/dist-embed/chunks/{sl-SI-NN7IZMDC-BKLCNVXA.js → sl-SI-NN7IZMDC-BX1W51zJ.js} +1 -1
  143. package/dist-embed/chunks/stateDiagram-D77RDMKH-CWrs6KzY.js +1 -0
  144. package/dist-embed/chunks/stateDiagram-D77RDMKH-XK76naDS.js +1 -0
  145. package/dist-embed/chunks/stateDiagram-v2-MP3YSRHH-D3ZN_IoS.js +1 -0
  146. package/dist-embed/chunks/stateDiagram-v2-MP3YSRHH-lpluVNfO.js +1 -0
  147. package/dist-embed/chunks/{subset-shared.chunk-zIH7OLsP.js → subset-shared.chunk-PVguOYyR.js} +1 -1
  148. package/dist-embed/chunks/{subset-worker.chunk-b9j7PKPe.js → subset-worker.chunk-iWGyr_E5.js} +1 -1
  149. package/dist-embed/chunks/{sv-SE-XGPEYMSR-D0UV0HV7.js → sv-SE-XGPEYMSR-DI7YcqUR.js} +1 -1
  150. package/dist-embed/chunks/swimlanes-42K2YHIH-B9qJ99nD.js +1 -0
  151. package/dist-embed/chunks/swimlanes-42K2YHIH-Ca0PhRmf.js +1 -0
  152. package/dist-embed/chunks/swimlanesDiagram-VR7AAH4N-BEQKTD21.js +8 -0
  153. package/dist-embed/chunks/swimlanesDiagram-VR7AAH4N-D-2e4UFJ.js +8 -0
  154. package/dist-embed/chunks/{ta-IN-2NMHFXQM-C-EJ3jDE.js → ta-IN-2NMHFXQM-OZH5xroe.js} +1 -1
  155. package/dist-embed/chunks/{th-TH-HPSO5L25-CfQh62Qa.js → th-TH-HPSO5L25-gAuWhBpT.js} +1 -1
  156. package/dist-embed/chunks/{timeline-definition-24CTP7MA-CKtubk73.js → timeline-definition-24CTP7MA-B8lxEouP.js} +2 -2
  157. package/dist-embed/chunks/timeline-definition-24CTP7MA-CtZZro9U.js +120 -0
  158. package/dist-embed/chunks/{tr-TR-DEFEU3FU-Lz7Ka2Zr.js → tr-TR-DEFEU3FU-DQ0SDuS6.js} +1 -1
  159. package/dist-embed/chunks/{uk-UA-QMV73CPH-DU0hsGUJ.js → uk-UA-QMV73CPH-7J4e2jng.js} +1 -1
  160. package/dist-embed/chunks/{vennDiagram-4TSXK5OY-Bq0xMhnH.js → vennDiagram-4TSXK5OY-Ca7szyFH.js} +2 -2
  161. package/dist-embed/chunks/vennDiagram-4TSXK5OY-zaNGkt8b.js +28 -0
  162. package/dist-embed/chunks/{vi-VN-M7AON7JQ-CDvS0SiL.js → vi-VN-M7AON7JQ-dNpZ5DZ5.js} +1 -1
  163. package/dist-embed/chunks/{wardleyDiagram-VM6X3IG4-DL5LgQWr.js → wardleyDiagram-VM6X3IG4-D_Q6gtp2.js} +2 -2
  164. package/dist-embed/chunks/wardleyDiagram-VM6X3IG4-Dh0UOrRp.js +78 -0
  165. package/dist-embed/chunks/{xychartDiagram-S5SC5T6Z-BXkM4beH.js → xychartDiagram-S5SC5T6Z-4OhI4XQl.js} +2 -2
  166. package/dist-embed/chunks/xychartDiagram-S5SC5T6Z-D_TaZM0k.js +7 -0
  167. package/dist-embed/chunks/{zh-CN-LNUGB5OW-CWE-bF0d.js → zh-CN-LNUGB5OW-CZSp2g8b.js} +1 -1
  168. package/dist-embed/chunks/{zh-HK-E62DVLB3-pEfL2bds.js → zh-HK-E62DVLB3-DUqVOyB_.js} +1 -1
  169. package/dist-embed/chunks/{zh-TW-RAJ6MFWO-Cp6UFUuD.js → zh-TW-RAJ6MFWO-U-TalxxN.js} +1 -1
  170. package/dist-embed/datalayer-app-main.js +3 -3
  171. package/lib/Agent.js +2 -2
  172. package/lib/AgentDocument.js +6 -6
  173. package/lib/AgentNode.js +4 -4
  174. package/lib/AgentNotebook.js +3 -3
  175. package/lib/App.js +2 -2
  176. package/lib/AppExamples2.js +3 -4
  177. package/lib/agent-document-main.js +1 -1
  178. package/lib/agent-main.js +1 -1
  179. package/lib/agent-node-main.js +1 -1
  180. package/lib/agent-notebook-main.js +1 -1
  181. package/lib/agents/AgentDetails.js +5 -5
  182. package/lib/agents/AgentRuntimeChat.js +3 -3
  183. package/lib/api/index.js +5 -5
  184. package/lib/api/scheduler/index.js +1 -1
  185. package/lib/apps/apps/AppBrowserSandbox.js +3 -3
  186. package/lib/apps/apps/AppComposer.js +6 -6
  187. package/lib/apps/apps/AppFeedback.js +3 -3
  188. package/lib/apps/apps/AppKept.js +3 -3
  189. package/lib/apps/apps/AppRenderer.js +26 -26
  190. package/lib/apps/apps/AppRuntimePlugins.js +3 -3
  191. package/lib/apps/apps/agent.js +2 -2
  192. package/lib/apps/apps/appspec.js +5 -5
  193. package/lib/apps/apps/browserSandbox.js +1 -1
  194. package/lib/apps/apps/checks.js +24 -24
  195. package/lib/apps/apps/customComponents.js +1 -1
  196. package/lib/apps/apps/index.js +18 -18
  197. package/lib/apps/apps/language.js +1 -1
  198. package/lib/apps/apps/records.js +3 -3
  199. package/lib/apps/apps/rules.js +1 -1
  200. package/lib/apps/apps/sceneChecks.js +6 -6
  201. package/lib/apps/apps/sceneShape.js +2 -2
  202. package/lib/apps/apps/sceneYaml.js +2 -2
  203. package/lib/apps/apps/yaml.js +1 -1
  204. package/lib/apps/core/index.js +7 -7
  205. package/lib/apps/embed/AppEmbed.d.ts +1 -1
  206. package/lib/apps/embed/AppEmbed.js +11 -11
  207. package/lib/apps/embed/LoopEmbed.js +4 -4
  208. package/lib/apps/embed/datalayer-app.js +1 -1
  209. package/lib/apps/embed/element.js +7 -7
  210. package/lib/apps/embed/embedConfig.js +2 -2
  211. package/lib/apps/embed/embedSession.js +2 -2
  212. package/lib/apps/embed/hostBridge.js +3 -3
  213. package/lib/apps/embed/visitorApp.js +3 -3
  214. package/lib/apps/extensions.js +4 -4
  215. package/lib/apps/index.js +70 -70
  216. package/lib/apps/plugins/a2a-sidebar/A2ASidebar.js +6 -6
  217. package/lib/apps/plugins/a2a-sidebar/index.js +3 -3
  218. package/lib/apps/plugins/a2ui/A2uiView.js +2 -2
  219. package/lib/apps/plugins/a2ui/index.js +3 -3
  220. package/lib/apps/plugins/a2ui-scene/index.js +1 -1
  221. package/lib/apps/plugins/a2ui-surface/AnswerShows.js +3 -3
  222. package/lib/apps/plugins/a2ui-surface/InlineSurface.js +1 -1
  223. package/lib/apps/plugins/a2ui-surface/SurfaceToolResult.js +4 -4
  224. package/lib/apps/plugins/a2ui-surface/index.js +7 -7
  225. package/lib/apps/plugins/a2ui-surface/ownComponents.js +2 -2
  226. package/lib/apps/plugins/agent-a2a/index.js +1 -1
  227. package/lib/apps/plugins/agent-a2ui/index.js +1 -1
  228. package/lib/apps/plugins/agent-a2ui-jupyter-output/index.js +1 -1
  229. package/lib/apps/plugins/agent-capacity/index.js +1 -1
  230. package/lib/apps/plugins/agent-checkpoints/index.js +1 -1
  231. package/lib/apps/plugins/agent-code-sandbox/index.js +1 -1
  232. package/lib/apps/plugins/agent-code-sandboxes/index.js +1 -1
  233. package/lib/apps/plugins/agent-codemode/index.js +1 -1
  234. package/lib/apps/plugins/agent-compaction/index.js +1 -1
  235. package/lib/apps/plugins/agent-evals/index.js +1 -1
  236. package/lib/apps/plugins/agent-guardrails/index.js +1 -1
  237. package/lib/apps/plugins/agent-hooks/index.js +1 -1
  238. package/lib/apps/plugins/agent-inference/index.js +1 -1
  239. package/lib/apps/plugins/agent-mcp/index.js +1 -1
  240. package/lib/apps/plugins/agent-memory/index.js +1 -1
  241. package/lib/apps/plugins/agent-monitoring/index.js +1 -1
  242. package/lib/apps/plugins/agent-notifications/index.js +1 -1
  243. package/lib/apps/plugins/agent-otel/index.js +1 -1
  244. package/lib/apps/plugins/agent-outputs/index.js +1 -1
  245. package/lib/apps/plugins/agent-parameters/index.js +1 -1
  246. package/lib/apps/plugins/agent-skills/index.js +1 -1
  247. package/lib/apps/plugins/agent-subagents/index.js +1 -1
  248. package/lib/apps/plugins/agent-tool-approvals/index.js +1 -1
  249. package/lib/apps/plugins/agent-triggers/index.js +1 -1
  250. package/lib/apps/plugins/agents/AgentSummaryPanel.js +5 -5
  251. package/lib/apps/plugins/agents/AnonymousKeyBadge.js +2 -2
  252. package/lib/apps/plugins/agents/DatalayerAgentBridge.js +7 -7
  253. package/lib/apps/plugins/agents/DatalayerAgentMount.js +1 -1
  254. package/lib/apps/plugins/agents/SandboxSelector.js +3 -3
  255. package/lib/apps/plugins/agents/SandboxStatusBridge.js +2 -2
  256. package/lib/apps/plugins/agents/SandboxView.js +1 -1
  257. package/lib/apps/plugins/agents/TeamMemberPicker.js +2 -2
  258. package/lib/apps/plugins/agents/index.js +8 -8
  259. package/lib/apps/plugins/agents/plugin.js +10 -10
  260. package/lib/apps/plugins/agents/specSubagents.js +1 -1
  261. package/lib/apps/plugins/agents/switchable.js +3 -3
  262. package/lib/apps/plugins/agents/team.js +2 -2
  263. package/lib/apps/plugins/agents/useSandboxService.js +1 -1
  264. package/lib/apps/plugins/agents/useTeamSelection.js +1 -1
  265. package/lib/apps/plugins/agentspecs/AgentspecPicker.js +1 -1
  266. package/lib/apps/plugins/agentspecs/index.js +2 -2
  267. package/lib/apps/plugins/app-activity/AppActivity.js +2 -2
  268. package/lib/apps/plugins/app-activity/index.js +3 -3
  269. package/lib/apps/plugins/app-components/index.js +4 -4
  270. package/lib/apps/plugins/app-computer/AppComputer.js +3 -3
  271. package/lib/apps/plugins/app-computer/index.js +4 -4
  272. package/lib/apps/plugins/app-elements/AppElements.js +2 -2
  273. package/lib/apps/plugins/app-elements/QuestionView.js +1 -1
  274. package/lib/apps/plugins/app-elements/index.js +6 -6
  275. package/lib/apps/plugins/app-page/AppPage.js +7 -7
  276. package/lib/apps/plugins/app-page/appPageModel.js +1 -1
  277. package/lib/apps/plugins/app-page/index.js +6 -6
  278. package/lib/apps/plugins/app-rules/AppRulesCard.js +5 -5
  279. package/lib/apps/plugins/app-rules/index.js +4 -4
  280. package/lib/apps/plugins/assistant/index.js +12 -12
  281. package/lib/apps/plugins/assistant-characters/index.d.ts +1 -1
  282. package/lib/apps/plugins/assistant-characters/index.js +3 -3
  283. package/lib/apps/plugins/canvas-blocks/index.js +2 -2
  284. package/lib/apps/plugins/canvas-parts/index.js +10 -10
  285. package/lib/apps/plugins/chat/ChatView.js +43 -43
  286. package/lib/apps/plugins/chat/SessionActionsMenu.js +2 -2
  287. package/lib/apps/plugins/chat/index.js +4 -4
  288. package/lib/apps/plugins/chat/sessionActions.js +2 -2
  289. package/lib/apps/plugins/chat-extras/index.js +1 -1
  290. package/lib/apps/plugins/chat-header/HeaderView.js +1 -1
  291. package/lib/apps/plugins/chat-header/index.js +2 -2
  292. package/lib/apps/plugins/chat-view/index.js +2 -2
  293. package/lib/apps/plugins/checkpoints-sidebar/CheckpointsSidebar.js +2 -2
  294. package/lib/apps/plugins/checkpoints-sidebar/index.js +3 -3
  295. package/lib/apps/plugins/commands/index.js +1 -1
  296. package/lib/apps/plugins/decks/DecksMenu.js +2 -2
  297. package/lib/apps/plugins/decks/index.js +8 -8
  298. package/lib/apps/plugins/document/DocumentView.js +5 -5
  299. package/lib/apps/plugins/document/index.js +4 -4
  300. package/lib/apps/plugins/document/openingDocument.js +1 -1
  301. package/lib/apps/plugins/document-toolbar/SandboxStatusItem.js +2 -2
  302. package/lib/apps/plugins/document-toolbar/index.js +3 -3
  303. package/lib/apps/plugins/document-toolbar/plugin.js +3 -3
  304. package/lib/apps/plugins/document-view/index.js +1 -1
  305. package/lib/apps/plugins/graph/GraphToggle.js +1 -1
  306. package/lib/apps/plugins/graph/index.js +5 -5
  307. package/lib/apps/plugins/input-prompt/ComposerView.js +2 -2
  308. package/lib/apps/plugins/input-prompt/index.js +2 -2
  309. package/lib/apps/plugins/models/index.js +1 -1
  310. package/lib/apps/plugins/notebook/NotebookView.js +5 -5
  311. package/lib/apps/plugins/notebook/index.js +4 -4
  312. package/lib/apps/plugins/notebook-toolbar/index.js +3 -3
  313. package/lib/apps/plugins/notebook-toolbar/plugin.js +3 -3
  314. package/lib/apps/plugins/notebook-view/index.js +1 -1
  315. package/lib/apps/plugins/page-layout/SplitLayout.js +1 -1
  316. package/lib/apps/plugins/page-layout/TurnPanel.js +5 -5
  317. package/lib/apps/plugins/page-layout/index.js +5 -5
  318. package/lib/apps/plugins/pap-example/index.js +1 -1
  319. package/lib/apps/plugins/pap-sign-in/PapSignInCard.js +1 -1
  320. package/lib/apps/plugins/pap-sign-in/index.js +5 -5
  321. package/lib/apps/plugins/pap-sign-in/signIn.js +1 -1
  322. package/lib/apps/plugins/plugins-panel/index.js +1 -1
  323. package/lib/apps/plugins/prompt/index.js +3 -3
  324. package/lib/apps/plugins/shell/editorChoice.js +1 -1
  325. package/lib/apps/plugins/shell/index.js +4 -4
  326. package/lib/apps/plugins/shell/useEditorPreviews.js +1 -1
  327. package/lib/apps/plugins/shield-displays/DiffCard.js +1 -1
  328. package/lib/apps/plugins/shield-displays/TerminalCard.js +1 -1
  329. package/lib/apps/plugins/shield-displays/index.js +5 -5
  330. package/lib/apps/plugins/subagent-activity/SubagentPulse.js +3 -3
  331. package/lib/apps/plugins/subagent-activity/index.js +4 -4
  332. package/lib/apps/plugins/view-switch/index.js +3 -3
  333. package/lib/apps/plugins/window-frame/WindowFrame.js +1 -1
  334. package/lib/apps/plugins/window-frame/index.js +5 -5
  335. package/lib/apps/presets.js +21 -21
  336. package/lib/apps/shell/LoopWorkspace.js +4 -4
  337. package/lib/apps/shell/SidebarRail.js +1 -1
  338. package/lib/apps/shell/ViewSwitcher.js +1 -1
  339. package/lib/apps/shell/WorkspaceFullScreenAction.js +2 -2
  340. package/lib/apps/shell/index.js +7 -7
  341. package/lib/chat/Chat.js +7 -7
  342. package/lib/chat/ChatFloating.d.ts +1 -1
  343. package/lib/chat/ChatFloating.js +23 -23
  344. package/lib/chat/ChatInline.js +4 -4
  345. package/lib/chat/ChatLanguage.js +2 -2
  346. package/lib/chat/ChatPopupStandalone.js +4 -4
  347. package/lib/chat/ChatSidebar.js +2 -2
  348. package/lib/chat/ChatStandalone.js +3 -3
  349. package/lib/chat/assistant/AgentDetailsDialog.js +1 -1
  350. package/lib/chat/assistant/AssistantStage.d.ts +1 -1
  351. package/lib/chat/assistant/AssistantStage.js +16 -16
  352. package/lib/chat/assistant/Avatar3D.d.ts +1 -1
  353. package/lib/chat/assistant/Avatar3D.js +1 -1
  354. package/lib/chat/assistant/BalloonParts.js +8 -8
  355. package/lib/chat/assistant/BalloonVisual.js +1 -1
  356. package/lib/chat/assistant/ConversationBalloon.js +1 -1
  357. package/lib/chat/assistant/DecisionAsk.js +1 -1
  358. package/lib/chat/assistant/SandboxDetailsDialog.js +1 -1
  359. package/lib/chat/assistant/SpeechBalloon.js +5 -5
  360. package/lib/chat/assistant/SpriteCharacter.js +2 -2
  361. package/lib/chat/assistant/{avatar3d.d.ts → avatar3dModel.d.ts} +1 -1
  362. package/lib/chat/assistant/formats/acf.js +3 -3
  363. package/lib/chat/assistant/formats/acs.js +3 -3
  364. package/lib/chat/assistant/formats/agentCompression.js +1 -1
  365. package/lib/chat/assistant/formats/blobs.js +1 -1
  366. package/lib/chat/assistant/formats/clippy.js +3 -3
  367. package/lib/chat/assistant/formats/files.js +4 -4
  368. package/lib/chat/assistant/formats/index.js +7 -7
  369. package/lib/chat/assistant/formats/objectLiteral.js +1 -1
  370. package/lib/chat/assistant/toolLine.js +2 -2
  371. package/lib/chat/base/ChatBase.js +45 -45
  372. package/lib/chat/base/fullContextMessages.js +1 -1
  373. package/lib/chat/base/uiOps.js +3 -3
  374. package/lib/chat/display/EmptyState.js +3 -3
  375. package/lib/chat/document/EphemeralDocument.js +4 -4
  376. package/lib/chat/header/ChatHeaderBase.js +2 -2
  377. package/lib/chat/header/ChatViewModeToggle.js +1 -1
  378. package/lib/chat/index.js +24 -24
  379. package/lib/chat/indicators/McpStatusIndicator.js +1 -1
  380. package/lib/chat/indicators/SandboxStatusIndicator.js +1 -1
  381. package/lib/chat/indicators/index.js +3 -3
  382. package/lib/chat/marks/SpecMark.js +1 -1
  383. package/lib/chat/marks/index.js +3 -3
  384. package/lib/chat/marks/toolMarks.js +4 -4
  385. package/lib/chat/messages/ChatMarkdown.js +3 -3
  386. package/lib/chat/messages/ChatMessageList.js +13 -13
  387. package/lib/chat/messages/ChatMessages.js +2 -2
  388. package/lib/chat/messages/FormSubmissionMessage.js +1 -1
  389. package/lib/chat/messages/TurnFooter.js +2 -2
  390. package/lib/chat/notebook/EphemeralNotebook.js +4 -4
  391. package/lib/chat/parts/MessagePart.js +4 -4
  392. package/lib/chat/parts/ReasoningPart.js +2 -2
  393. package/lib/chat/parts/TextPart.js +2 -2
  394. package/lib/chat/parts/ToolPart.js +1 -1
  395. package/lib/chat/parts/index.js +5 -5
  396. package/lib/chat/presence/Presence.js +1 -1
  397. package/lib/chat/presence/presenceStatus.js +1 -1
  398. package/lib/chat/prompt/InputPrompt.js +9 -9
  399. package/lib/chat/prompt/InputPromptBase.js +6 -6
  400. package/lib/chat/prompt/InputPromptLexical.js +4 -4
  401. package/lib/chat/prompt/footer/BelowPromptFooter.js +1 -1
  402. package/lib/chat/prompt/footer/InPromptFooter.js +2 -2
  403. package/lib/chat/prompt/footer/index.js +2 -2
  404. package/lib/chat/prompt/header/BelowPromptHeader.js +1 -1
  405. package/lib/chat/prompt/header/InPromptHeader.js +1 -1
  406. package/lib/chat/prompt/header/index.js +2 -2
  407. package/lib/chat/prompt/index.js +10 -10
  408. package/lib/chat/prompt/menus/SkillsMenu.js +1 -1
  409. package/lib/chat/prompt/menus/SuggestionsMenu.js +1 -1
  410. package/lib/chat/prompt/menus/ToolsMenu.js +1 -1
  411. package/lib/chat/prompt/menus/index.js +6 -6
  412. package/lib/chat/prompt/plugins/AgentMentionPlugin.js +1 -1
  413. package/lib/chat/prompt/plugins/MentionNode.js +1 -1
  414. package/lib/chat/prompt/stack.js +1 -1
  415. package/lib/chat/tools/SubagentActivity.js +1 -1
  416. package/lib/chat/tools/ToolApprovalBanner.js +1 -1
  417. package/lib/chat/tools/ToolApprovalDialog.js +1 -1
  418. package/lib/chat/tools/ToolCallDisplay.js +2 -2
  419. package/lib/chat/tools/index.js +5 -5
  420. package/lib/chat/usage/ContextPie.js +1 -1
  421. package/lib/chat/words.js +1 -1
  422. package/lib/client/AgentRuntimesClient.js +2 -2
  423. package/lib/client/AgentsMixin.js +8 -8
  424. package/lib/client/index.js +3 -3
  425. package/lib/client/mixins/RuntimesMixin.js +6 -6
  426. package/lib/client/mixins/SpacerMixin.js +11 -11
  427. package/lib/client/utils/spacerUtils.js +2 -2
  428. package/lib/collaboration/DatalayerCollaborationProvider.js +1 -1
  429. package/lib/collaboration/index.js +2 -2
  430. package/lib/components/a2ui/custom/index.js +6 -6
  431. package/lib/components/a2ui/datalayer/Chart.js +2 -2
  432. package/lib/components/a2ui/datalayer/Chat.js +5 -5
  433. package/lib/components/a2ui/datalayer/Download.js +2 -2
  434. package/lib/components/a2ui/datalayer/Evidence.js +2 -2
  435. package/lib/components/a2ui/datalayer/FileUpload.js +3 -3
  436. package/lib/components/a2ui/datalayer/Form.js +3 -3
  437. package/lib/components/a2ui/datalayer/SchemaForm.js +1 -1
  438. package/lib/components/a2ui/datalayer/Table.js +2 -2
  439. package/lib/components/a2ui/datalayer/implementation.js +1 -1
  440. package/lib/components/a2ui/datalayer/index.js +17 -17
  441. package/lib/components/a2ui/datalayer/schema.js +1 -1
  442. package/lib/components/a2ui/index.js +7 -7
  443. package/lib/components/a2ui/visibleWhen.js +2 -2
  444. package/lib/components/agents/AgentSummary.js +1 -1
  445. package/lib/components/agents/index.js +1 -1
  446. package/lib/components/cards/NotificationEventCard.js +2 -2
  447. package/lib/components/cards/OutputCard.js +2 -2
  448. package/lib/components/cards/index.js +3 -3
  449. package/lib/components/code-sandboxes/CodeSandboxCellVariablesDialog.js +3 -3
  450. package/lib/components/code-sandboxes/CodeSandboxLauncher.js +9 -9
  451. package/lib/components/code-sandboxes/CodeSandboxPicker.js +9 -9
  452. package/lib/components/code-sandboxes/CodeSandboxPickerCell.js +7 -7
  453. package/lib/components/code-sandboxes/CodeSandboxUtils.js +3 -3
  454. package/lib/components/code-sandboxes/CodeSandboxVariables.js +1 -1
  455. package/lib/components/code-sandboxes/NewCodeSandboxControls.js +3 -3
  456. package/lib/components/code-sandboxes/index.js +14 -14
  457. package/lib/components/context/SpaceSelect.js +1 -1
  458. package/lib/components/flashes/FlashDisclaimer.js +1 -1
  459. package/lib/components/icons/index.js +1 -1
  460. package/lib/components/index.js +6 -6
  461. package/lib/components/inspector/AgentInspector.js +2 -2
  462. package/lib/components/inspector/AgentInspectorDialog.js +1 -1
  463. package/lib/components/inspector/a2aSpans.js +1 -1
  464. package/lib/components/inspector/chatSpans.js +2 -2
  465. package/lib/components/inspector/classify.js +1 -1
  466. package/lib/components/inspector/index.js +6 -6
  467. package/lib/components/nbgrader/index.js +1 -1
  468. package/lib/components/progress/index.js +1 -1
  469. package/lib/components/scheduler/ScheduleMenu.js +1 -1
  470. package/lib/components/scheduler/index.js +1 -1
  471. package/lib/components/snapshots/SandboxSnapshotMenu.js +2 -2
  472. package/lib/components/snapshots/index.js +1 -1
  473. package/lib/components/teams/A2ATeamGraph.d.ts +1 -1
  474. package/lib/components/teams/A2ATeamGraph.js +8 -8
  475. package/lib/components/teams/AnswerSurfaces.js +1 -1
  476. package/lib/components/teams/AnswerSurfacesView.js +4 -4
  477. package/lib/components/teams/NotebookPreview.js +2 -2
  478. package/lib/components/teams/NotebookPreviewView.js +1 -1
  479. package/lib/components/teams/SceneTranscript.d.ts +1 -1
  480. package/lib/components/teams/SceneTranscript.js +2 -2
  481. package/lib/components/teams/SceneView.d.ts +1 -1
  482. package/lib/components/teams/SceneView.js +1 -1
  483. package/lib/components/teams/TeamNotebook.js +1 -1
  484. package/lib/components/teams/TeamNotebookView.js +3 -3
  485. package/lib/components/teams/index.d.ts +1 -1
  486. package/lib/components/teams/index.js +13 -13
  487. package/lib/components/teams/sceneStage.js +2 -2
  488. package/lib/components/teams/{sceneTranscript.d.ts → sceneTranscriptRules.d.ts} +1 -1
  489. package/lib/components/teams/{sceneTranscript.js → sceneTranscriptRules.js} +1 -1
  490. package/lib/components/teams/teamConnections.js +3 -3
  491. package/lib/components/teams/useA2ATeam.js +6 -6
  492. package/lib/components/teams/usePeerSandbox.js +1 -1
  493. package/lib/components/tokens/index.js +1 -1
  494. package/lib/config/AgentConfiguration.js +2 -2
  495. package/lib/config/index.js +2 -2
  496. package/lib/context/CostUsageChart.js +4 -4
  497. package/lib/context/MessageHistory.js +1 -1
  498. package/lib/context/TokenUsageChart.js +4 -4
  499. package/lib/examples/A2UiAgentExample.js +9 -9
  500. package/lib/examples/A2UiComponentsGalleryExample.js +4 -4
  501. package/lib/examples/A2UiContactCardExample.js +4 -4
  502. package/lib/examples/A2UiJupyterOutputExample.js +11 -11
  503. package/lib/examples/A2UiRestaurantExample.js +4 -4
  504. package/lib/examples/A2UiViewerExample.js +6 -6
  505. package/lib/examples/AgUiAgenticExample.js +4 -4
  506. package/lib/examples/AgUiBackendToolRenderingExample.js +6 -6
  507. package/lib/examples/AgUiHaikuGenUiExample.js +6 -6
  508. package/lib/examples/AgUiHumanInTheLoopExample.js +5 -5
  509. package/lib/examples/AgUiSharedStateExample.js +4 -4
  510. package/lib/examples/AgUiToolsBasedGenUiExample.js +4 -4
  511. package/lib/examples/AgentA2AExample.js +7 -7
  512. package/lib/examples/AgentA2ATeamExample.js +10 -10
  513. package/lib/examples/AgentCheckpointsExample.js +14 -14
  514. package/lib/examples/AgentCodeSandboxExample.js +6 -6
  515. package/lib/examples/AgentCodeSandboxesExample.js +5 -5
  516. package/lib/examples/AgentCodemodeExample.js +12 -12
  517. package/lib/examples/AgentCompactionExample.js +8 -8
  518. package/lib/examples/AgentDecideExample.js +6 -6
  519. package/lib/examples/AgentEvalsExample.js +11 -11
  520. package/lib/examples/AgentGuardrailsExample.js +17 -17
  521. package/lib/examples/AgentHooksExample.js +5 -5
  522. package/lib/examples/AgentInferenceProviderExample.js +6 -6
  523. package/lib/examples/AgentMCPExample.js +14 -14
  524. package/lib/examples/AgentMemoryExample.js +11 -11
  525. package/lib/examples/AgentMonitoringExample.js +19 -19
  526. package/lib/examples/AgentNotificationsExample.js +9 -9
  527. package/lib/examples/AgentOtelExample.js +6 -6
  528. package/lib/examples/AgentOutputsExample.js +8 -8
  529. package/lib/examples/AgentParametersExample.js +6 -6
  530. package/lib/examples/AgentSkillsExample.js +9 -9
  531. package/lib/examples/AgentSubagentsExample.js +8 -8
  532. package/lib/examples/AgentToolApprovalsExample.js +10 -10
  533. package/lib/examples/AgentTriggersExample.js +14 -14
  534. package/lib/examples/AgentspecsExample.js +11 -11
  535. package/lib/examples/AvatarExample.js +8 -8
  536. package/lib/examples/AvatarGalleryExample.js +8 -8
  537. package/lib/examples/CellExample.js +2 -2
  538. package/lib/examples/ChatCustomExample.js +4 -4
  539. package/lib/examples/ChatExample.js +8 -8
  540. package/lib/examples/ChatStandaloneExample.js +2 -2
  541. package/lib/examples/CopilotKitLexicalExample.js +4 -4
  542. package/lib/examples/CopilotKitNotebookExample.js +4 -4
  543. package/lib/examples/DecksAgent.js +4 -4
  544. package/lib/examples/DocumentPageAgent.js +2 -2
  545. package/lib/examples/Lexical2Example.js +9 -9
  546. package/lib/examples/LexicalAgentExample.js +7 -7
  547. package/lib/examples/LexicalAgentSidebarExample.js +8 -8
  548. package/lib/examples/LoopAppComputerExample.js +4 -4
  549. package/lib/examples/LoopShellExample.js +6 -6
  550. package/lib/examples/LoopStrategyExample.js +6 -6
  551. package/lib/examples/LoopWorkspaceEmbed.js +1 -1
  552. package/lib/examples/LoopWorkspaceExample.js +11 -11
  553. package/lib/examples/NotebookAgentExample.js +5 -5
  554. package/lib/examples/NotebookAgentSidebarExample.js +5 -5
  555. package/lib/examples/NotebookCollaborationExample.js +6 -6
  556. package/lib/examples/NotebookExample.js +2 -2
  557. package/lib/examples/NotebookPageAgent.js +2 -2
  558. package/lib/examples/PapAccountTokensExample.js +4 -4
  559. package/lib/examples/PapAgentIdentityExample.js +4 -4
  560. package/lib/examples/PapAuthorizationBoundaryExample.js +4 -4
  561. package/lib/examples/PapCompanyDiscoveryExample.js +4 -4
  562. package/lib/examples/PapConversationControlExample.js +4 -4
  563. package/lib/examples/PapConversationStreamingExample.js +4 -4
  564. package/lib/examples/PapDpopProofExample.js +4 -4
  565. package/lib/examples/PapGuidedJourneyExample.js +4 -4
  566. package/lib/examples/PapMediatedSignInExample.js +4 -4
  567. package/lib/examples/PapOperationsExample.js +4 -4
  568. package/lib/examples/PapSessionLifecycleExample.js +4 -4
  569. package/lib/examples/PapSignInDisplayExample.js +4 -4
  570. package/lib/examples/PapTwoCompaniesExample.js +4 -4
  571. package/lib/examples/PapUserWithACompanyExample.js +4 -4
  572. package/lib/examples/ProtocolSignedRequestsExample.js +2 -2
  573. package/lib/examples/ProtocolUcpCheckoutExample.js +2 -2
  574. package/lib/examples/ScenesExample.js +8 -8
  575. package/lib/examples/ShieldHarnessExample.js +5 -5
  576. package/lib/examples/ShieldPolicyExample.js +2 -2
  577. package/lib/examples/VoiceChatExample.js +4 -4
  578. package/lib/examples/components/AuthRequiredView.js +1 -1
  579. package/lib/examples/components/ExampleWrapper.js +3 -3
  580. package/lib/examples/components/Header.js +2 -2
  581. package/lib/examples/components/LexicalEditor.js +1 -1
  582. package/lib/examples/components/MainContent.js +1 -1
  583. package/lib/examples/components/haiku/HaikuDisplay.js +1 -1
  584. package/lib/examples/components/haiku/index.js +2 -2
  585. package/lib/examples/components/index.js +13 -13
  586. package/lib/examples/components/weather/index.js +1 -1
  587. package/lib/examples/example-selector.js +78 -78
  588. package/lib/examples/hooks/useExampleAgentProtocol.js +2 -2
  589. package/lib/examples/hooks/useExampleAgentRuntime.js +4 -4
  590. package/lib/examples/hooks/useExampleAgentRuntimes.js +4 -4
  591. package/lib/examples/hooks/useExampleJupyterAgent.js +8 -8
  592. package/lib/examples/hooks/useToolRenderers.js +1 -1
  593. package/lib/examples/index.js +66 -66
  594. package/lib/examples/lexical/editorConfig.js +1 -1
  595. package/lib/examples/main.js +21 -21
  596. package/lib/examples/pap/PapAccountTokensView.js +1 -1
  597. package/lib/examples/pap/PapAgentIdentityView.js +2 -2
  598. package/lib/examples/pap/PapAuthorizationBoundaryView.js +1 -1
  599. package/lib/examples/pap/PapCompanyDiscoveryView.js +2 -2
  600. package/lib/examples/pap/PapConversationControlView.js +1 -1
  601. package/lib/examples/pap/PapConversationStreamingView.js +1 -1
  602. package/lib/examples/pap/PapDpopProofView.js +1 -1
  603. package/lib/examples/pap/PapGuidedJourneyView.js +2 -2
  604. package/lib/examples/pap/PapMediatedSignInView.js +1 -1
  605. package/lib/examples/pap/PapOperationsView.js +1 -1
  606. package/lib/examples/pap/PapSessionLifecycleView.js +1 -1
  607. package/lib/examples/pap/PapSignInDisplayView.js +2 -2
  608. package/lib/examples/pap/PapTraceView.js +1 -1
  609. package/lib/examples/pap/PapTwoCompaniesView.js +1 -1
  610. package/lib/examples/pap/PapUserWithACompanyView.js +1 -1
  611. package/lib/examples/pap/papSignInCases.js +1 -1
  612. package/lib/examples/protocols/signedRequestsDemo.js +1 -1
  613. package/lib/examples/protocols/ucpCheckoutDemo.js +3 -3
  614. package/lib/examples/scenes/A2UiComponentsGalleryScene.js +4 -4
  615. package/lib/examples/scenes/A2UiContactCardScene.js +3 -3
  616. package/lib/examples/scenes/A2UiRestaurantScene.js +5 -5
  617. package/lib/examples/scenes/A2UiViewerScene.js +3 -3
  618. package/lib/examples/utils/AvatarGalleryGrid.d.ts +1 -1
  619. package/lib/examples/utils/AvatarGalleryGrid.js +8 -8
  620. package/lib/examples/utils/a2ui.js +1 -1
  621. package/lib/examples/utils/a2uiMarkdownProvider.js +1 -1
  622. package/lib/examples/utils/avatarGallery.js +2 -2
  623. package/lib/examples/utils/clippyJsCharacters.js +1 -1
  624. package/lib/examples/utils/examplesStore.js +1 -1
  625. package/lib/examples/utils/notebookToolbarItems.js +1 -1
  626. package/lib/examples/utils/owlCharacterPlugin.js +1 -1
  627. package/lib/examples/utils/teardownAgents.js +1 -1
  628. package/lib/examples/utils/testSpriteCharacter.js +1 -1
  629. package/lib/examples/utils/themedProvider.js +1 -1
  630. package/lib/examples/utils/useExampleAgentRuntimesUrl.js +3 -3
  631. package/lib/examples2/DatalayerNotebookExample.js +3 -3
  632. package/lib/examples2/NativeNavigationExample.js +1 -1
  633. package/lib/examples2/NotebookMutationsKernel.js +2 -2
  634. package/lib/examples2/NotebookMutationsServiceManager.js +2 -2
  635. package/lib/examples2/ReactRouterExample.js +1 -1
  636. package/lib/examples2/example-selector.js +7 -7
  637. package/lib/examples2/index.js +2 -2
  638. package/lib/examples2/main.js +5 -5
  639. package/lib/hooks/index.js +26 -26
  640. package/lib/hooks/useAgUi.js +1 -1
  641. package/lib/hooks/useAgentRuntimes.js +9 -9
  642. package/lib/hooks/useAgentsCatalog.js +1 -1
  643. package/lib/hooks/useAgentsService.js +1 -1
  644. package/lib/hooks/useBrowserAgent.js +1 -1
  645. package/lib/hooks/useBrowserInference.js +2 -2
  646. package/lib/hooks/useCellOutputshot.js +1 -1
  647. package/lib/hooks/useChat.js +6 -6
  648. package/lib/hooks/useCheckpoints.js +10 -10
  649. package/lib/hooks/useConfig.js +1 -1
  650. package/lib/hooks/useContextSnapshot.js +1 -1
  651. package/lib/hooks/useNotifications.js +1 -1
  652. package/lib/hooks/useProgressTask.js +1 -1
  653. package/lib/hooks/useSandbox.js +1 -1
  654. package/lib/hooks/useSkills.js +1 -1
  655. package/lib/hooks/useToolApprovals.js +2 -2
  656. package/lib/hooks/useTools.js +1 -1
  657. package/lib/identity/AgentIdentity.js +3 -3
  658. package/lib/identity/IdentityConnect.js +2 -2
  659. package/lib/identity/OAuthCallback.js +1 -1
  660. package/lib/identity/identityStore.js +2 -2
  661. package/lib/identity/index.js +8 -8
  662. package/lib/identity/useIdentity.js +1 -1
  663. package/lib/index.js +11 -11
  664. package/lib/inference/DatalayerInferenceProvider.js +2 -2
  665. package/lib/inference/SelfHostedInferenceProvider.js +2 -2
  666. package/lib/inference/index.js +3 -3
  667. package/lib/jupyter/exec/Snippets.js +1 -1
  668. package/lib/jupyter/exec/index.js +2 -2
  669. package/lib/jupyter/index.js +3 -3
  670. package/lib/jupyter/useResumeServerExecutions.js +1 -1
  671. package/lib/lexical/ChatInlinePlugin.js +1 -1
  672. package/lib/lexical/index.js +2 -2
  673. package/lib/loop-example-main.js +2 -2
  674. package/lib/loop-main.js +9 -9
  675. package/lib/main.js +1 -1
  676. package/lib/mcp/index.js +1 -1
  677. package/lib/middleware/index.js +1 -1
  678. package/lib/mocks/models/CourseMock.js +1 -1
  679. package/lib/models/CodeSandboxSnapshotDTO.js +1 -1
  680. package/lib/models/ItemDTO.js +1 -1
  681. package/lib/models/LexicalDTO.js +2 -2
  682. package/lib/models/NotebookDTO.js +2 -2
  683. package/lib/models/Page.js +1 -1
  684. package/lib/models/RuntimeDTO.js +1 -1
  685. package/lib/models/SpaceDTO.js +7 -7
  686. package/lib/models/index.js +32 -32
  687. package/lib/portable/activity.js +1 -1
  688. package/lib/portable/approvalCard.js +1 -1
  689. package/lib/portable/attention.d.ts +204 -0
  690. package/lib/portable/attention.js +352 -0
  691. package/lib/portable/conversation.js +4 -4
  692. package/lib/portable/displays.js +1 -1
  693. package/lib/portable/fixtures.js +2 -2
  694. package/lib/portable/hosts/agentClient.js +4 -4
  695. package/lib/portable/hosts/client.js +1 -1
  696. package/lib/portable/hosts/deadLetters.js +3 -3
  697. package/lib/portable/hosts/deliveries.js +1 -1
  698. package/lib/portable/hosts/index.js +21 -21
  699. package/lib/portable/hosts/postgresQueue.js +1 -1
  700. package/lib/portable/hosts/quotas.js +1 -1
  701. package/lib/portable/hosts/schema.js +1 -1
  702. package/lib/portable/index.js +24 -24
  703. package/lib/portable/localApprovals.d.ts +72 -0
  704. package/lib/portable/localApprovals.js +125 -0
  705. package/lib/portable/localRuntime.d.ts +365 -0
  706. package/lib/portable/localRuntime.js +555 -0
  707. package/lib/portable/runMeasures.js +2 -2
  708. package/lib/portable/sessionList.d.ts +426 -0
  709. package/lib/portable/sessionList.js +618 -0
  710. package/lib/portable/sessions.js +4 -4
  711. package/lib/portable/thread.js +2 -2
  712. package/lib/portable/views.js +1 -1
  713. package/lib/protocols/A2AAdapter.js +3 -3
  714. package/lib/protocols/ACPAdapter.js +2 -2
  715. package/lib/protocols/AGUIAdapter.js +4 -4
  716. package/lib/protocols/BrowserAgentAdapter.js +3 -3
  717. package/lib/protocols/VercelAIAdapter.js +2 -2
  718. package/lib/protocols/a2a/index.js +1 -1
  719. package/lib/protocols/agentProtocols.js +8 -8
  720. package/lib/protocols/agentic-commerce/index.js +3 -3
  721. package/lib/protocols/commerce.js +1 -1
  722. package/lib/protocols/index.js +6 -6
  723. package/lib/protocols/mcp/index.js +2 -2
  724. package/lib/protocols/pact/index.js +1 -1
  725. package/lib/protocols/pap/index.js +1 -1
  726. package/lib/protocols/ucp/index.js +3 -3
  727. package/lib/protocols/ucp/merchant.js +1 -1
  728. package/lib/protocols/web-bot-auth/index.js +1 -1
  729. package/lib/protocols/web-bot-auth/tap.js +1 -1
  730. package/lib/runtimes/actions.js +3 -3
  731. package/lib/runtimes/browser/agent.js +2 -2
  732. package/lib/runtimes/browser/frontendTools.js +1 -1
  733. package/lib/runtimes/browser/index.js +6 -6
  734. package/lib/runtimes/browser/subagents.js +2 -2
  735. package/lib/runtimes/index.js +8 -8
  736. package/lib/runtimes/variants.js +1 -1
  737. package/lib/services/DatalayerServiceManager.js +1 -1
  738. package/lib/specs/agents/agents.js +4 -4
  739. package/lib/specs/agents/index.js +1 -1
  740. package/lib/specs/cogs.js +4 -4
  741. package/lib/specs/index.js +32 -32
  742. package/lib/specs/teams/index.js +1 -1
  743. package/lib/state/index.js +1 -1
  744. package/lib/state/substates/RuntimesState.js +1 -1
  745. package/lib/state/substates/index.js +7 -7
  746. package/lib/stores/agentRuntimeStore.js +3 -3
  747. package/lib/stores/index.js +3 -3
  748. package/lib/stories/Button.stories.js +1 -1
  749. package/lib/stories/Header.js +1 -1
  750. package/lib/stories/Header.stories.js +1 -1
  751. package/lib/stories/Page.js +1 -1
  752. package/lib/stories/Page.stories.js +1 -1
  753. package/lib/stories/loop/LoopReference.stories.js +1 -1
  754. package/lib/stories/loop/ReferenceScreens.js +11 -11
  755. package/lib/stories/loop/pictures-main.js +2 -2
  756. package/lib/tools/ToolExecutor.js +1 -1
  757. package/lib/tools/adapters/agent-runtimes/index.js +3 -3
  758. package/lib/tools/adapters/agent-runtimes/lexicalHooks.js +1 -1
  759. package/lib/tools/adapters/agent-runtimes/notebookHooks.js +1 -1
  760. package/lib/tools/adapters/commands/index.js +1 -1
  761. package/lib/tools/adapters/copilotkit/index.js +3 -3
  762. package/lib/tools/adapters/copilotkit/lexicalHooks.js +1 -1
  763. package/lib/tools/adapters/copilotkit/notebookHooks.js +1 -1
  764. package/lib/tools/index.js +3 -3
  765. package/lib/types/index.js +40 -40
  766. package/lib/ui-plugins/index.js +3 -3
  767. package/lib/utils/index.js +1 -1
  768. package/lib/utils/utils.js +2 -2
  769. package/lib/voice/ComposerVoice.js +5 -5
  770. package/lib/voice/HandsFree.js +5 -5
  771. package/lib/voice/ReadAloud.js +1 -1
  772. package/lib/voice/VoiceInput.js +3 -3
  773. package/lib/voice/VoiceMenu.js +3 -3
  774. package/lib/voice/captions.js +2 -2
  775. package/lib/voice/chatVoice.js +3 -3
  776. package/lib/voice/choices.js +1 -1
  777. package/lib/voice/{handsFree.d.ts → handsFreeRules.d.ts} +1 -1
  778. package/lib/voice/hearing.js +3 -3
  779. package/lib/voice/index.d.ts +1 -1
  780. package/lib/voice/index.js +22 -22
  781. package/lib/voice/keptSound.js +1 -1
  782. package/lib/voice/pinned.js +1 -1
  783. package/lib/voice/serverHearing.js +2 -2
  784. package/lib/voice/useSpokenAnswers.js +1 -1
  785. package/lib/voice/useVoiceSettings.js +1 -1
  786. package/lib/voice/useVoiceSpeaker.js +2 -2
  787. package/package.json +4 -3
  788. package/scripts/check-npm-pack.mjs +77 -0
  789. package/scripts/esm-specifiers.mjs +76 -0
  790. package/scripts/fully-specify-lib.mjs +61 -0
  791. package/dist-embed/chunks/abnfDiagram-VCTEODGH-m7LJLYga.js +0 -1
  792. package/dist-embed/chunks/classDiagram-ZZMXUADV-CGdcKCOI.js +0 -1
  793. package/dist-embed/chunks/classDiagram-v2-VYDZK3BY-CGdcKCOI.js +0 -1
  794. package/dist-embed/chunks/cose-bilkent-JH36ORCC-BsK2pWDL.js +0 -1
  795. package/dist-embed/chunks/cynefinDiagram-5FMLGOSQ-vmheD_S2.js +0 -62
  796. package/dist-embed/chunks/diagram-UQ7AKVKN-BFkOO3Wu.js +0 -41
  797. package/dist-embed/chunks/diagram-VX7I27RA-_LUOsaBb.js +0 -24
  798. package/dist-embed/chunks/diagram-Z3DM3KII-CY856Sry.js +0 -24
  799. package/dist-embed/chunks/ebnfDiagram-PWID7BFC-kqD9RLAA.js +0 -1
  800. package/dist-embed/chunks/gitGraphDiagram-WWUBYQGX-BujqTwbf.js +0 -106
  801. package/dist-embed/chunks/infoDiagram-27XIBGKW-C18Zz25F.js +0 -2
  802. package/dist-embed/chunks/pegDiagram-XKGWAZYB-BBVcHZ8T.js +0 -1
  803. package/dist-embed/chunks/railroadDiagram-O6MQD6OU-bR7xXZGS.js +0 -1
  804. package/dist-embed/chunks/sizeCapture-INFHLROL-BW7unDBA.js +0 -1
  805. package/dist-embed/chunks/stateDiagram-D77RDMKH-mLSMGpPQ.js +0 -1
  806. package/dist-embed/chunks/stateDiagram-v2-MP3YSRHH-C6TftAzE.js +0 -1
  807. package/dist-embed/chunks/swimlanes-42K2YHIH-BQTDK2Ta.js +0 -1
  808. package/dist-embed/chunks/swimlanesDiagram-VR7AAH4N-BV8Vb5g2.js +0 -8
  809. /package/lib/chat/assistant/{avatar3d.js → avatar3dModel.js} +0 -0
  810. /package/lib/voice/{handsFree.js → handsFreeRules.js} +0 -0
@@ -0,0 +1,76 @@
1
+ /*
2
+ * Copyright (c) 2025-2026 Datalayer, Inc.
3
+ * Distributed under the terms of the Modified BSD License.
4
+ */
5
+
6
+ /**
7
+ * The relative module specifiers of a compiled ES module, as Node reads them.
8
+ *
9
+ * `tsc` with `moduleResolution: bundler` keeps a source's specifiers as they
10
+ * are written (`'./approvals'`, `'./chat'`), which a bundler resolves and
11
+ * Node's ESM loader refuses: it takes a relative specifier as a file path,
12
+ * with no extension added and no directory's `index.js` looked up. So
13
+ * `lib/` is made loadable by Node (vitest's externalized dependencies, a
14
+ * Node service importing `lib/portable`) by writing each specifier whole
15
+ * (`fully-specify-lib.mjs`), and the packed tarball is checked for a
16
+ * specifier that names a file it does not carry (`check-npm-pack.mjs`).
17
+ *
18
+ * Comments are not read: TypeScript's own pre-processor lists the imports,
19
+ * the exports and the dynamic imports of a file.
20
+ */
21
+
22
+ import ts from 'typescript';
23
+ import { posix } from 'node:path';
24
+
25
+ /**
26
+ * Every relative specifier of `text`, with the offset of its first
27
+ * character in `text`.
28
+ *
29
+ * @param {string} text A compiled JavaScript module.
30
+ * @returns {{ specifier: string, start: number }[]}
31
+ */
32
+ export function relativeSpecifiers(text) {
33
+ const { importedFiles } = ts.preProcessFile(text, true, true);
34
+ const found = [];
35
+ for (const { fileName, pos } of importedFiles) {
36
+ if (!fileName.startsWith('./') && !fileName.startsWith('../')) continue;
37
+ const start = text.indexOf(fileName, pos);
38
+ if (start < 0) {
39
+ throw new Error(`the specifier ${fileName} is not at ${pos}`);
40
+ }
41
+ found.push({ specifier: fileName, start });
42
+ }
43
+ return found;
44
+ }
45
+
46
+ /**
47
+ * What a specifier of `from` names, given the files there are.
48
+ *
49
+ * @param {string} from The importing file, a posix path.
50
+ * @param {string} specifier A relative specifier.
51
+ * @param {(path: string) => boolean} isFile Whether a file is there.
52
+ * @returns {{ status: 'whole' | 'partial' | 'missing', path?: string, whole?: string }}
53
+ * `whole`: the specifier names a file; `partial`: it names a file only
54
+ * once `.js` or `/index.js` is added (`whole` is the specifier written
55
+ * so); `missing`: no file.
56
+ */
57
+ export function resolveSpecifier(from, specifier, isFile) {
58
+ const query = specifier.search(/[?#]/);
59
+ const bare = query < 0 ? specifier : specifier.slice(0, query);
60
+ const target = posix.normalize(posix.join(posix.dirname(from), bare));
61
+ if (isFile(target)) return { status: 'whole', path: target };
62
+ if (query < 0) {
63
+ if (isFile(`${target}.js`)) {
64
+ return { status: 'partial', path: `${target}.js`, whole: `${bare}.js` };
65
+ }
66
+ const index = posix.join(target, 'index.js');
67
+ if (isFile(index)) {
68
+ return {
69
+ status: 'partial',
70
+ path: index,
71
+ whole: `${bare.replace(/\/$/, '')}/index.js`,
72
+ };
73
+ }
74
+ }
75
+ return { status: 'missing' };
76
+ }
@@ -0,0 +1,61 @@
1
+ #!/usr/bin/env node
2
+ /*
3
+ * Copyright (c) 2025-2026 Datalayer, Inc.
4
+ * Distributed under the terms of the Modified BSD License.
5
+ */
6
+
7
+ /**
8
+ * Writes each relative specifier of `lib/**\/*.js` whole, after `tsc`:
9
+ * `'./approvals'` becomes `'./approvals.js'`, `'./chat'` (a folder)
10
+ * `'./chat/index.js'`, so Node's ESM loader reads `lib/` as a bundler does.
11
+ * A specifier that already names a file, or names none, is left as it is
12
+ * (`check-npm-pack.mjs` refuses the second). Run again, it changes nothing.
13
+ *
14
+ * Usage: node scripts/fully-specify-lib.mjs [lib]
15
+ */
16
+
17
+ import { readdirSync, readFileSync, statSync, writeFileSync } from 'node:fs';
18
+ import { join, relative, resolve, sep } from 'node:path';
19
+ import { relativeSpecifiers, resolveSpecifier } from './esm-specifiers.mjs';
20
+
21
+ const root = resolve(process.argv[2] ?? 'lib');
22
+ const posixOf = path => relative(root, path).split(sep).join('/');
23
+
24
+ const files = [];
25
+ const walk = dir => {
26
+ for (const name of readdirSync(dir)) {
27
+ const path = join(dir, name);
28
+ if (statSync(path).isDirectory()) walk(path);
29
+ else files.push(posixOf(path));
30
+ }
31
+ };
32
+ walk(root);
33
+ const present = new Set(files);
34
+ const isFile = path => present.has(path);
35
+
36
+ let rewritten = 0;
37
+ let changedFiles = 0;
38
+ for (const file of files.filter(name => name.endsWith('.js'))) {
39
+ const path = join(root, file);
40
+ const text = readFileSync(path, 'utf8');
41
+ const edits = relativeSpecifiers(text)
42
+ .map(({ specifier, start }) => ({
43
+ specifier,
44
+ start,
45
+ ...resolveSpecifier(file, specifier, isFile),
46
+ }))
47
+ .filter(({ status }) => status === 'partial');
48
+ if (edits.length === 0) continue;
49
+ let out = text;
50
+ for (const { specifier, start, whole } of edits.sort(
51
+ (a, b) => b.start - a.start,
52
+ )) {
53
+ out = out.slice(0, start) + whole + out.slice(start + specifier.length);
54
+ }
55
+ writeFileSync(path, out);
56
+ rewritten += edits.length;
57
+ changedFiles += 1;
58
+ }
59
+ console.log(
60
+ `fully-specify-lib: ${rewritten} specifiers written whole in ${changedFiles} of ${files.length} files under ${posixOf(root) || root}`,
61
+ );
@@ -1 +0,0 @@
1
- import{g as l,r as u,d as a}from"./chunk-SVP7TREG-ERRaAh-x.js";import{p as f}from"./chunk-JWPE2WC7-BIShIUcJ.js";import{_ as n,l as s}from"./index-BaBNw6X5.js";import"./index-MIxQaicl.js";import{M as c,b as d}from"./cynefin-OW5HDTMX-D8Lw5okC.js";import"../datalayer-app-main.js";import"./fastdom-promised-BMVBoXkp.js";import"./line-DUjWPDRX.js";import"./array-BKyUJesY.js";import"./path-CbwjOpE9.js";import"./_baseRest-BmxuuM4H.js";import"./isSymbol-BLtK9CV6.js";import"./forEach-hknrtmxV.js";import"./isUndefined-wBqHC1Hw.js";import"./color-CG7_7V2-.js";import"./index-atSsKceW.js";var v=d().RailroadAbnf.parser.LangiumParser,i=n(r=>{const e=r.alternatives.map(g);return e.length===1?e[0]:{type:"choice",alternatives:e}},"transformAlternation"),g=n(r=>{const e=r.elements.map(y);return e.length===1?e[0]:{type:"sequence",elements:e}},"transformConcatenation"),b=n(r=>{if(r.includes("*")){const[t,o]=r.split("*"),m=t?parseInt(t,10):0,p=o?parseInt(o,10):1/0;return{min:m,max:p}}const e=parseInt(r,10);return{min:e,max:e}},"parseRepeat"),y=n(r=>{const e=A(r.primary);if(!r.repeat)return e;const{min:t,max:o}=b(r.repeat);return t===0&&o===1?{type:"optional",element:e}:{type:"repetition",element:e,min:t,max:o}},"transformElement"),A=n(r=>{switch(r.$type){case"AbnfStringLiteral":return{type:"terminal",value:r.value};case"AbnfNumVal":return{type:"terminal",value:r.value};case"AbnfRuleName":return{type:"nonterminal",name:r.name};case"AbnfGroup":return i(r.element);case"AbnfOptionalGroup":return{type:"optional",element:i(r.element)};default:throw new Error(`Unsupported ABNF primary node: ${r.$type}`)}},"transformPrimary"),P=n(r=>({name:r.name,definition:i(r.definition)}),"transformRule"),h=n(r=>{f(r,a),r.title&&a.setTitle(r.title),r.rules.map(e=>a.addRule(P(e)))},"populateDb"),R={parse:n(r=>{a.clear(),s.debug("[ABNF Parser] Starting Langium parse");const e=v.parse(r);if(e.lexerErrors.length>0||e.parserErrors.length>0)throw new c(e);const t=e.value;s.debug("[ABNF Parser] Parsed rules:",t.rules.length),h(t),s.debug("[ABNF Parser] Parse complete")},"parse"),parser:{yy:a}},O={parser:R,db:a,renderer:u,styles:l};export{O as diagram};
@@ -1 +0,0 @@
1
- import{s as t,c as i,a,C as o}from"./chunk-TICWLB2K-B91fA6Jd.js";import{_ as s}from"./index-BaBNw6X5.js";import"./index-MIxQaicl.js";import"./chunk-5VM5RSS4-CaowF8Al.js";import"./chunk-XXDRQBXY-BAy0lBJk.js";import"./chunk-POPQ4Y6H-DG5Q2OKT.js";import"./chunk-F27PBJKO-D7PuEggc.js";import"../datalayer-app-main.js";import"./fastdom-promised-BMVBoXkp.js";import"./line-DUjWPDRX.js";import"./array-BKyUJesY.js";import"./path-CbwjOpE9.js";import"./_baseRest-BmxuuM4H.js";import"./isSymbol-BLtK9CV6.js";import"./forEach-hknrtmxV.js";import"./isUndefined-wBqHC1Hw.js";import"./color-CG7_7V2-.js";import"./index-atSsKceW.js";var D={parser:a,get db(){return new o},renderer:i,styles:t,init:s(r=>{r.class||(r.class={}),r.class.arrowMarkerAbsolute=r.arrowMarkerAbsolute},"init")};export{D as diagram};
@@ -1 +0,0 @@
1
- import{s as t,c as i,a,C as o}from"./chunk-TICWLB2K-B91fA6Jd.js";import{_ as s}from"./index-BaBNw6X5.js";import"./index-MIxQaicl.js";import"./chunk-5VM5RSS4-CaowF8Al.js";import"./chunk-XXDRQBXY-BAy0lBJk.js";import"./chunk-POPQ4Y6H-DG5Q2OKT.js";import"./chunk-F27PBJKO-D7PuEggc.js";import"../datalayer-app-main.js";import"./fastdom-promised-BMVBoXkp.js";import"./line-DUjWPDRX.js";import"./array-BKyUJesY.js";import"./path-CbwjOpE9.js";import"./_baseRest-BmxuuM4H.js";import"./isSymbol-BLtK9CV6.js";import"./forEach-hknrtmxV.js";import"./isUndefined-wBqHC1Hw.js";import"./color-CG7_7V2-.js";import"./index-atSsKceW.js";var D={parser:a,get db(){return new o},renderer:i,styles:t,init:s(r=>{r.class||(r.class={}),r.class.arrowMarkerAbsolute=r.arrowMarkerAbsolute},"init")};export{D as diagram};
@@ -1 +0,0 @@
1
- import{_ as l,l as y}from"./index-BaBNw6X5.js";import{c as P}from"./cytoscape.esm-CkK8FqzY.js";import{c as k}from"./cytoscape-cose-bilkent-BKgjCCbE.js";import{s as q}from"./index-MIxQaicl.js";import"../datalayer-app-main.js";import"./fastdom-promised-BMVBoXkp.js";import"./line-DUjWPDRX.js";import"./array-BKyUJesY.js";import"./path-CbwjOpE9.js";import"./_baseRest-BmxuuM4H.js";import"./isSymbol-BLtK9CV6.js";import"./forEach-hknrtmxV.js";import"./isUndefined-wBqHC1Hw.js";import"./color-CG7_7V2-.js";import"./index-atSsKceW.js";P.use(k);function D(t,o){t.forEach(e=>{const r={id:e.id,labelText:e.label,height:e.height,width:e.width,padding:e.padding??0};Object.keys(e).forEach(n=>{["id","label","height","width","padding","x","y"].includes(n)||(r[n]=e[n])}),o.add({group:"nodes",data:r,position:{x:e.x??0,y:e.y??0}})})}l(D,"addNodes");function I(t,o){t.forEach(e=>{const r={id:e.id,source:e.start,target:e.end};Object.keys(e).forEach(n=>{["id","start","end"].includes(n)||(r[n]=e[n])}),o.add({group:"edges",data:r})})}l(I,"addEdges");function $(t){return new Promise(o=>{const e=q("body").append("div").attr("id","cy").attr("style","display:none"),r=P({container:document.getElementById("cy"),style:[{selector:"edge",style:{"curve-style":"bezier"}}]});e.remove(),D(t.nodes,r),I(t.edges,r),r.nodes().forEach(function(a){a.layoutDimensions=()=>{const f=a.data();return{w:f.width,h:f.height}}});const n={name:"cose-bilkent",quality:"proof",styleEnabled:!1,animate:!1};r.layout(n).run(),r.ready(a=>{y.info("Cytoscape ready",a),o(r)})})}l($,"createCytoscapeInstance");function X(t){return t.nodes().map(o=>{const e=o.data(),r=o.position(),n={id:e.id,x:r.x,y:r.y};return Object.keys(e).forEach(a=>{a!=="id"&&(n[a]=e[a])}),n})}l(X,"extractPositionedNodes");function Y(t){return t.edges().map(o=>{const e=o.data(),r=o._private.rscratch,n={id:e.id,source:e.source,target:e.target,startX:r.startX,startY:r.startY,midX:r.midX,midY:r.midY,endX:r.endX,endY:r.endY};return Object.keys(e).forEach(a=>{["id","source","target"].includes(a)||(n[a]=e[a])}),n})}l(Y,"extractPositionedEdges");async function v(t,o){y.debug("Starting cose-bilkent layout algorithm");try{B(t);const e=await $(t),r=X(e),n=Y(e);return y.debug(`Layout completed: ${r.length} nodes, ${n.length} edges`),{nodes:r,edges:n}}catch(e){throw y.error("Error in cose-bilkent layout algorithm:",e),e}}l(v,"executeCoseBilkentLayout");function B(t){if(!t)throw new Error("Layout data is required");if(!t.config)throw new Error("Configuration is required in layout data");if(!t.rootNode)throw new Error("Root node is required");if(!t.nodes||!Array.isArray(t.nodes))throw new Error("No nodes found in layout data");if(!Array.isArray(t.edges))throw new Error("Edges array is required in layout data");return!0}l(B,"validateLayoutData");var O=l(async(t,o,{insertCluster:e,insertEdge:r,insertEdgeLabel:n,insertMarkers:a,insertNode:f,log:c,positionEdgeLabel:x},{algorithm:j})=>{const u={},p={},m=o.select("g");a(m,t.markers,t.type,t.diagramId);const C=m.insert("g").attr("class","subgraphs"),E=m.insert("g").attr("class","edgePaths"),A=m.insert("g").attr("class","edgeLabels"),N=m.insert("g").attr("class","nodes");c.debug("Inserting nodes into DOM for dimension calculation"),await Promise.all(t.nodes.map(async s=>{if(s.isGroup){const i={...s};p[s.id]=i,u[s.id]=i,await e(C,s)}else{const i={...s};u[s.id]=i;const d=await f(N,s,{config:t.config,dir:t.direction||"TB"}),g=d.node().getBBox();i.width=g.width,i.height=g.height,i.domId=d,c.debug(`Node ${s.id} dimensions: ${g.width}x${g.height}`)}})),c.debug("Running cose-bilkent layout algorithm");const _={...t,nodes:t.nodes.map(s=>{const i=u[s.id];return{...s,width:i.width,height:i.height}})},b=await v(_,t.config);c.debug("Positioning nodes based on layout results"),b.nodes.forEach(s=>{const i=u[s.id];i?.domId&&(i.domId.attr("transform",`translate(${s.x}, ${s.y})`),i.x=s.x,i.y=s.y,c.debug(`Positioned node ${i.id} at center (${s.x}, ${s.y})`))}),b.edges.forEach(s=>{const i=t.edges.find(d=>d.id===s.id);i&&(i.points=[{x:s.startX,y:s.startY},{x:s.midX,y:s.midY},{x:s.endX,y:s.endY}])}),c.debug("Inserting and positioning edges"),await Promise.all(t.edges.map(async s=>{await n(A,s);const i=u[s.start??""],d=u[s.end??""];if(i&&d){const g=b.edges.find(h=>h.id===s.id);if(g){c.debug("APA01 positionedEdge",g);const h={...s},w=r(E,h,p,t.type,i,d,t.diagramId);x(h,w)}else{const h={...s,points:[{x:i.x||0,y:i.y||0},{x:d.x||0,y:d.y||0}]},w=r(E,h,p,t.type,i,d,t.diagramId);x(h,w)}}})),c.debug("Cose-bilkent rendering completed")},"render"),L=O;export{L as render};
@@ -1,62 +0,0 @@
1
- import{p as xt}from"./chunk-JWPE2WC7-BIShIUcJ.js";import{s as gt,g as $t,p as bt,o as wt,a as Ct,b as vt,_ as i,l as O,D as Dt,d as kt,q as At,A as U,B as Tt,y as Q,F as at}from"./index-BaBNw6X5.js";import{p as Bt}from"./cynefin-OW5HDTMX-D8Lw5okC.js";import"../datalayer-app-main.js";import"./index-MIxQaicl.js";import"./color-CG7_7V2-.js";import"./index-atSsKceW.js";import"./fastdom-promised-BMVBoXkp.js";import"./line-DUjWPDRX.js";import"./array-BKyUJesY.js";import"./path-CbwjOpE9.js";import"./_baseRest-BmxuuM4H.js";import"./isSymbol-BLtK9CV6.js";import"./forEach-hknrtmxV.js";import"./isUndefined-wBqHC1Hw.js";var rt=i(()=>({domains:new Map,transitions:[]}),"createDefaultData"),H=rt(),St=i(()=>H.domains,"getDomains"),Mt=i(()=>H.transitions,"getTransitions"),zt=i(t=>{if(t)for(const e of t){const n=e.domain,o=(e.items??[]).map(c=>({label:c.label}));H.domains.set(n,{name:n,items:o})}},"setDomains"),Lt=i(t=>{t&&(H.transitions=t.filter(e=>e.from===e.to?(O.warn(`Cynefin: self-loop transition on domain "${e.from}" is not meaningful and will be skipped.`),!1):!0).map(e=>({from:e.from,to:e.to,label:e.label||void 0})))},"setTransitions"),Nt=i(()=>U({...Tt.cynefin,...Q().cynefin}),"getConfig"),Pt=i(()=>{At(),H=rt()},"clear"),Y={getDomains:St,getTransitions:Mt,setDomains:zt,setTransitions:Lt,getConfig:Nt,clear:Pt,setAccTitle:vt,getAccTitle:Ct,setDiagramTitle:wt,getDiagramTitle:bt,getAccDescription:$t,setAccDescription:gt},It=i(t=>{xt(t,Y),Y.setDomains(t.domains),Y.setTransitions(t.transitions)},"populate"),Wt={parse:i(async t=>{const e=await Bt("cynefin",t);O.debug(e),It(e)},"parse")};function E(t){let e=t+1831565813|0;return e=Math.imul(e^e>>>15,e|1),e^=e+Math.imul(e^e>>>7,e|61),((e^e>>>14)>>>0)/4294967296}i(E,"seededRandom");function it(t){let e=0;for(let n=0;n<t.length;n++){const o=t.charCodeAt(n);e=(e<<5)-e+o,e|=0}return e}i(it,"hashString");function st(t,e){return typeof t=="number"&&Number.isFinite(t)&&t!==0?t:it(e)}i(st,"resolveSeed");function ct(t,e,n,o){const c=t/2,m=o??t*.015,v=7,W=e/v,d=[];for(let a=0;a<=v;a++){const p=E(n+a*17)*m*2-m;d.push({x:c+p,y:a*W})}let D=`M${d[0].x},${d[0].y}`;for(let a=0;a<d.length-1;a++){const p=d[a],s=d[a+1],f=(p.y+s.y)/2,b=a%2===0?1:-1,h=m*1.5*b*E(n+a*31+7),F=p.x+h,R=f,_=s.x-h;D+=` C${F},${R} ${_},${f} ${s.x},${s.y}`}return D}i(ct,"generateFoldPath");function lt(t,e,n,o){const c=e/2,m=o??e*.015,v=7,W=t/v,d=[];for(let a=0;a<=v;a++){const p=E(n+a*23)*m*2-m;d.push({x:a*W,y:c+p})}let D=`M${d[0].x},${d[0].y}`;for(let a=0;a<d.length-1;a++){const p=d[a],s=d[a+1],f=(p.x+s.x)/2,b=a%2===0?1:-1,h=m*1.5*b*E(n+a*37+11),F=f,R=p.y+h,_=f,z=s.y-h;D+=` C${F},${R} ${_},${z} ${s.x},${s.y}`}return D}i(lt,"generateHorizontalBoundary");function dt(t,e){const n=t/2,o=e*.5,c=e,m=t*.03;return[`M${n},${o}`,`C${n+m},${o+(c-o)*.2}`,`${n-m*1.5},${o+(c-o)*.55}`,`${n+m*.5},${o+(c-o)*.75}`,`C${n-m},${o+(c-o)*.85}`,`${n+m*.3},${o+(c-o)*.95}`,`${n},${c}`].join(" ")}i(dt,"generateCliffPath");function ft(t,e,n,o){return[`M${t-n},${e}`,`A${n},${o} 0 1,1 ${t+n},${e}`,`A${n},${o} 0 1,1 ${t-n},${e}`,"Z"].join(" ")}i(ft,"generateConfusionPath");var ot={complex:{model:"Probe → Sense → Respond",practice:"Emergent Practices"},complicated:{model:"Sense → Analyse → Respond",practice:"Good Practices"},clear:{model:"Sense → Categorise → Respond",practice:"Best Practices"},chaotic:{model:"Act → Sense → Respond",practice:"Novel Practices"},confusion:{model:"",practice:"Disorder"}},Ft=i((t,e)=>{const n=t/2,o=e/2;return{complex:{cx:n/2,cy:o/2,x:0,y:0,w:n,h:o},complicated:{cx:n+n/2,cy:o/2,x:n,y:0,w:n,h:o},chaotic:{cx:n/2,cy:o+o/2,x:0,y:o,w:n,h:o},clear:{cx:n+n/2,cy:o+o/2,x:n,y:o,w:n,h:o},confusion:{cx:n,cy:o,x:n*.7,y:o*.7,w:n*.6,h:o*.6}}},"getDomainLayouts"),Rt=i(()=>{const t=at(),e=Q();return U(t,e.themeVariables).cynefin},"getCynefinDomainColors"),q=3,_t=i((t,e,n,o)=>{const c=o.db,m=c.getDomains(),v=c.getTransitions(),W=c.getDiagramTitle(),d=c.getAccTitle(),D=c.getAccDescription(),a=c.getConfig(),p=Rt();O.debug("Rendering Cynefin diagram");const s=a.width,f=a.height,b=a.padding,h=a.showDomainDescriptions,F=a.boundaryAmplitude,R=s+b*2,_=f+b*2,z={complex:p.complexBg,complicated:p.complicatedBg,clear:p.clearBg,chaotic:p.chaoticBg,confusion:p.confusionBg},k=Dt(e);kt(k,_,R,a.useMaxWidth??!0),k.attr("viewBox",`0 0 ${R} ${_}`),d&&k.append("title").text(d),D&&k.append("desc").text(D);const A=k.append("g").attr("transform",`translate(${b}, ${b})`),V=Ft(s,f),Z=st(a.seed,e),mt=A.append("g").attr("class","cynefin-backgrounds"),X=["complex","complicated","chaotic","clear"];for(const l of X){const r=V[l];mt.append("rect").attr("class","cynefinDomain").attr("x",r.x).attr("y",r.y).attr("width",r.w).attr("height",r.h).attr("fill",z[l]).attr("fill-opacity",.4).attr("stroke","none")}const j=A.append("g").attr("class","cynefin-boundaries");j.append("path").attr("class","cynefinBoundary").attr("d",ct(s,f,Z,F)).attr("fill","none"),j.append("path").attr("class","cynefinBoundary").attr("d",lt(s,f,Z+100,F)).attr("fill","none"),j.append("path").attr("class","cynefinCliff").attr("d",dt(s,f)).attr("fill","none");const pt=s*.15,yt=f*.15;A.append("path").attr("class","cynefinConfusion").attr("d",ft(s/2,f/2,pt,yt)).attr("fill",z.confusion).attr("fill-opacity",.5);const J=A.append("g").attr("class","cynefin-labels");for(const l of X){const r=V[l];J.append("text").attr("class","cynefinDomainLabel").attr("x",r.cx).attr("y",h?r.cy-30:r.cy).attr("text-anchor","middle").attr("dominant-baseline","middle").text(l.charAt(0).toUpperCase()+l.slice(1))}if(J.append("text").attr("class","cynefinDomainLabel").attr("x",s/2).attr("y",h?f/2-10:f/2).attr("text-anchor","middle").attr("dominant-baseline","middle").text("Confusion"),h){const l=A.append("g").attr("class","cynefin-subtitles");for(const r of X){const u=V[r],y=ot[r];l.append("text").attr("class","cynefinSubtitle").attr("x",u.cx).attr("y",u.cy-10).attr("text-anchor","middle").attr("dominant-baseline","middle").text(y.model),l.append("text").attr("class","cynefinSubtitle").attr("x",u.cx).attr("y",u.cy+5).attr("text-anchor","middle").attr("dominant-baseline","middle").text(y.practice)}l.append("text").attr("class","cynefinSubtitle").attr("x",s/2).attr("y",f/2+8).attr("text-anchor","middle").attr("dominant-baseline","middle").text(ot.confusion.practice)}const K=A.append("g").attr("class","cynefin-items"),T=26,tt=10,ut=["complex","complicated","chaotic","clear","confusion"];for(const l of ut){const r=m.get(l);if(!r||r.items.length===0)continue;const u=V[l],y=l==="confusion";let L=r.items,N=0;y&&r.items.length>q&&(N=r.items.length-q,L=r.items.slice(0,q));let B;if(y){const g=h?22:14;B=u.cy+g}else B=u.cy+(h?25:15);if([...L].forEach((g,S)=>{const w=B+S*(T+4),M=K.append("g"),P=M.append("text").attr("class","cynefinItemText").attr("x",0).attr("y",T/2).attr("text-anchor","middle").attr("dominant-baseline","central").text(g.label);let $=g.label.length*7;const x=P.node();if(x&&typeof x.getBBox=="function"){const G=x.getBBox();G.width>0&&($=G.width)}const C=$+tt*2,I=u.cx-C/2;M.attr("transform",`translate(${I}, ${w})`),M.insert("rect","text").attr("class","cynefinItem").attr("x",0).attr("y",0).attr("width",C).attr("height",T).attr("rx",4).attr("ry",4).attr("fill",z[l]).attr("fill-opacity",.95),P.attr("x",C/2).attr("y",T/2)}),N>0){const g=B+L.length*(T+4),S=`+${N} more`,w=K.append("g"),M=w.append("text").attr("class","cynefinItemText").attr("x",0).attr("y",T/2).attr("text-anchor","middle").attr("dominant-baseline","central").text(S);let P=S.length*7;const $=M.node();if($&&typeof $.getBBox=="function"){const I=$.getBBox();I.width>0&&(P=I.width)}const x=P+tt*2,C=u.cx-x/2;w.attr("transform",`translate(${C}, ${g})`),w.insert("rect","text").attr("class","cynefinItemOverflow").attr("x",0).attr("y",0).attr("width",x).attr("height",T).attr("rx",4).attr("ry",4).attr("fill",z[l]).attr("fill-opacity",.6),M.attr("x",x/2).attr("y",T/2)}}if(v.length>0){const l=k.select("defs").empty()?k.append("defs"):k.select("defs"),r=`cynefin-arrow-${e}`;l.append("marker").attr("id",r).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerWidth",6).attr("markerHeight",6).attr("orient","auto-start-reverse").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","cynefinArrowHead");const u=A.append("g").attr("class","cynefin-arrows");v.forEach(y=>{const L=V[y.from],N=V[y.to];if(!L||!N)return;if(y.from===y.to){O.warn(`Cynefin renderer: skipping self-loop on domain "${y.from}"`);return}const B=L.cx,g=L.cy,S=N.cx,w=N.cy,M=(B+S)/2,P=(g+w)/2,$=S-B,x=w-g,C=Math.sqrt($*$+x*x),I=C*.15,G=-x/C,ht=$/C,et=M+G*I,nt=P+ht*I;u.append("path").attr("class","cynefinArrowLine").attr("d",`M${B},${g} Q${et},${nt} ${S},${w}`).attr("fill","none").attr("marker-end",`url(#${r})`),y.label&&u.append("text").attr("class","cynefinArrowLabel").attr("x",et).attr("y",nt-6).attr("text-anchor","middle").attr("dominant-baseline","auto").text(y.label)})}W&&A.append("text").attr("class","cynefinTitle").attr("x",s/2).attr("y",-b/2).attr("text-anchor","middle").attr("dominant-baseline","middle").text(W)},"draw"),Vt={draw:_t},Et=i(()=>{const t=at(),e=Q();return U(t,e.themeVariables).cynefin},"getCynefinTheme"),Ht=i(()=>{const t=Et();return`
2
- .cynefinDomain {
3
- stroke: none;
4
- }
5
- .cynefinDomainLabel {
6
- font-size: ${t.domainFontSize}px;
7
- font-weight: bold;
8
- fill: ${t.labelColor};
9
- }
10
- .cynefinSubtitle {
11
- font-size: ${t.itemFontSize-1}px;
12
- fill: ${t.textColor};
13
- font-style: italic;
14
- }
15
- .cynefinItem {
16
- fill-opacity: 0.95;
17
- stroke: ${t.boundaryColor};
18
- stroke-width: 1;
19
- }
20
- .cynefinItemText {
21
- font-size: ${t.itemFontSize}px;
22
- fill: ${t.textColor};
23
- }
24
- .cynefinItemOverflow {
25
- fill-opacity: 0.6;
26
- stroke: ${t.boundaryColor};
27
- stroke-width: 1;
28
- stroke-dasharray: 3 2;
29
- }
30
- .cynefinBoundary {
31
- stroke: ${t.boundaryColor};
32
- stroke-width: ${t.boundaryWidth};
33
- stroke-dasharray: 6 3;
34
- }
35
- .cynefinCliff {
36
- stroke: ${t.cliffColor};
37
- stroke-width: ${t.cliffWidth};
38
- }
39
- .cynefinConfusion {
40
- stroke: ${t.boundaryColor};
41
- stroke-width: 1.5;
42
- stroke-dasharray: 4 2;
43
- }
44
- .cynefinArrowLine {
45
- stroke: ${t.arrowColor};
46
- stroke-width: ${t.arrowWidth};
47
- fill: none;
48
- }
49
- .cynefinArrowHead {
50
- fill: ${t.arrowColor};
51
- stroke: none;
52
- }
53
- .cynefinArrowLabel {
54
- font-size: ${t.itemFontSize-1}px;
55
- fill: ${t.textColor};
56
- }
57
- .cynefinTitle {
58
- font-size: ${t.domainFontSize+2}px;
59
- font-weight: bold;
60
- fill: ${t.labelColor};
61
- }
62
- `},"styles"),Gt=Ht,re={parser:Wt,db:Y,renderer:Vt,styles:Gt};export{re as diagram};
@@ -1,41 +0,0 @@
1
- import{p as I}from"./chunk-JWPE2WC7-BIShIUcJ.js";import{s as _,g as F,p as D,o as E,a as P,b as z,_ as c,D as G,q as B,A as w,B as W,y as C,l as b,F as V,d as H}from"./index-BaBNw6X5.js";import{p as j}from"./cynefin-OW5HDTMX-D8Lw5okC.js";import"../datalayer-app-main.js";import"./index-MIxQaicl.js";import"./color-CG7_7V2-.js";import"./index-atSsKceW.js";import"./fastdom-promised-BMVBoXkp.js";import"./line-DUjWPDRX.js";import"./array-BKyUJesY.js";import"./path-CbwjOpE9.js";import"./_baseRest-BmxuuM4H.js";import"./isSymbol-BLtK9CV6.js";import"./forEach-hknrtmxV.js";import"./isUndefined-wBqHC1Hw.js";var x={showLegend:!0,ticks:5,max:null,min:0,graticule:"circle"},y=32,A={axes:[],curves:[],options:x},g=structuredClone(A),U=W.radar,X=c(()=>w({...U,...C().radar}),"getConfig"),M=c(()=>g.axes,"getAxes"),q=c(()=>g.curves,"getCurves"),K=c(()=>g.options,"getOptions"),N=c(a=>{g.axes=a.map(t=>({name:t.name,label:t.label??t.name}))},"setAxes"),Y=c(a=>{g.curves=a.map(t=>({name:t.name,label:t.label??t.name,entries:Z(t.entries)}))},"setCurves"),Z=c(a=>{if(a[0].axis==null)return a.map(e=>e.value);const t=M();if(t.length===0)throw new Error("Axes must be populated before curves for reference entries");return t.map(e=>{const r=a.find(s=>s.axis?.$refText===e.name);if(r===void 0)throw new Error("Missing entry for axis "+e.label);return r.value})},"computeCurveEntries"),J=c(a=>{const t=a.reduce((e,r)=>(e[r.name]=r,e),{});g.options={showLegend:t.showLegend?.value??x.showLegend,ticks:t.ticks?.value??x.ticks,max:t.max?.value??x.max,min:t.min?.value??x.min,graticule:t.graticule?.value??x.graticule},g.options.ticks>y&&(b.warn(`Radar diagram ticks (${g.options.ticks}) exceeds maximum allowed (${y}). Using ${y} instead.`),g.options.ticks=y)},"setOptions"),Q=c(()=>{B(),g=structuredClone(A)},"clear"),$={getAxes:M,getCurves:q,getOptions:K,setAxes:N,setCurves:Y,setOptions:J,getConfig:X,clear:Q,setAccTitle:z,getAccTitle:P,setDiagramTitle:E,getDiagramTitle:D,getAccDescription:F,setAccDescription:_},tt=c(a=>{I(a,$);const{axes:t,curves:e,options:r}=a;$.setAxes(t),$.setCurves(e),$.setOptions(r)},"populate"),et={parse:c(async a=>{const t=await j("radar",a);b.debug(t),tt(t)},"parse")},at=c((a,t,e,r)=>{const s=r.db,i=s.getAxes(),l=s.getCurves(),n=s.getOptions(),o=s.getConfig(),d=s.getDiagramTitle(),u=G(t),p=rt(u,o),m=n.max??Math.max(...l.map(f=>Math.max(...f.entries))),h=n.min,v=Math.min(o.width,o.height)/2;st(p,i,v,n.ticks,n.graticule),nt(p,i,v,o),L(p,i,l,h,m,n.graticule,o),k(p,l,n.showLegend,o),p.append("text").attr("class","radarTitle").text(d).attr("x",0).attr("y",-o.height/2-o.marginTop)},"draw"),rt=c((a,t)=>{const e=t.width+t.marginLeft+t.marginRight,r=t.height+t.marginTop+t.marginBottom,s={x:t.marginLeft+t.width/2,y:t.marginTop+t.height/2};return H(a,r,e,t.useMaxWidth??!0),a.attr("viewBox",`0 0 ${e} ${r}`).attr("overflow","visible"),a.append("g").attr("transform",`translate(${s.x}, ${s.y})`)},"drawFrame"),st=c((a,t,e,r,s)=>{if(s==="circle")for(let i=0;i<r;i++){const l=e*(i+1)/r;a.append("circle").attr("r",l).attr("class","radarGraticule")}else if(s==="polygon"){const i=t.length;for(let l=0;l<r;l++){const n=e*(l+1)/r,o=t.map((d,u)=>{const p=2*u*Math.PI/i-Math.PI/2,m=n*Math.cos(p),h=n*Math.sin(p);return`${m},${h}`}).join(" ");a.append("polygon").attr("points",o).attr("class","radarGraticule")}}},"drawGraticule"),nt=c((a,t,e,r)=>{const s=t.length;for(let i=0;i<s;i++){const l=t[i].label,n=2*i*Math.PI/s-Math.PI/2,o=Math.cos(n),d=Math.sin(n);a.append("line").attr("x1",0).attr("y1",0).attr("x2",e*r.axisScaleFactor*o).attr("y2",e*r.axisScaleFactor*d).attr("class","radarAxisLine");const u=o>.01?"start":o<-.01?"end":"middle",p=d>.01?"hanging":d<-.01?"auto":"central",m=4;a.append("text").text(l).attr("x",e*r.axisLabelFactor*o+m*o).attr("y",e*r.axisLabelFactor*d+m*d).attr("text-anchor",u).attr("dominant-baseline",p).attr("class","radarAxisLabel")}},"drawAxes");function L(a,t,e,r,s,i,l){const n=t.length,o=Math.min(l.width,l.height)/2;e.forEach((d,u)=>{if(d.entries.length!==n)return;const p=d.entries.map((m,h)=>{const v=2*Math.PI*h/n-Math.PI/2,f=T(m,r,s,o),O=f*Math.cos(v),R=f*Math.sin(v);return{x:O,y:R}});i==="circle"?a.append("path").attr("d",S(p,l.curveTension)).attr("class",`radarCurve-${u}`):i==="polygon"&&a.append("polygon").attr("points",p.map(m=>`${m.x},${m.y}`).join(" ")).attr("class",`radarCurve-${u}`)})}c(L,"drawCurves");function T(a,t,e,r){const s=Math.min(Math.max(a,t),e);return r*(s-t)/(e-t)}c(T,"relativeRadius");function S(a,t){const e=a.length;let r=`M${a[0].x},${a[0].y}`;for(let s=0;s<e;s++){const i=a[(s-1+e)%e],l=a[s],n=a[(s+1)%e],o=a[(s+2)%e],d={x:l.x+(n.x-i.x)*t,y:l.y+(n.y-i.y)*t},u={x:n.x-(o.x-l.x)*t,y:n.y-(o.y-l.y)*t};r+=` C${d.x},${d.y} ${u.x},${u.y} ${n.x},${n.y}`}return`${r} Z`}c(S,"closedRoundCurve");function k(a,t,e,r){if(!e)return;const s=(r.width/2+r.marginRight)*3/4,i=-(r.height/2+r.marginTop)*3/4,l=20;t.forEach((n,o)=>{const d=a.append("g").attr("transform",`translate(${s}, ${i+o*l})`);d.append("rect").attr("width",12).attr("height",12).attr("class",`radarLegendBox-${o}`),d.append("text").attr("x",16).attr("y",0).attr("class","radarLegendText").text(n.label)})}c(k,"drawLegend");var ot={draw:at},it=c((a,t)=>{let e="";for(let r=0;r<a.THEME_COLOR_LIMIT;r++){const s=a[`cScale${r}`];e+=`
2
- .radarCurve-${r} {
3
- color: ${s};
4
- fill: ${s};
5
- fill-opacity: ${t.curveOpacity};
6
- stroke: ${s};
7
- stroke-width: ${t.curveStrokeWidth};
8
- }
9
- .radarLegendBox-${r} {
10
- fill: ${s};
11
- fill-opacity: ${t.curveOpacity};
12
- stroke: ${s};
13
- }
14
- `}return e},"genIndexStyles"),lt=c(a=>{const t=V(),e=C(),r=w(t,e.themeVariables),s=w(r.radar,a);return{themeVariables:r,radarOptions:s}},"buildRadarStyleOptions"),ct=c(({radar:a}={})=>{const{themeVariables:t,radarOptions:e}=lt(a);return`
15
- .radarTitle {
16
- font-size: ${t.fontSize};
17
- color: ${t.titleColor};
18
- dominant-baseline: hanging;
19
- text-anchor: middle;
20
- }
21
- .radarAxisLine {
22
- stroke: ${e.axisColor};
23
- stroke-width: ${e.axisStrokeWidth};
24
- }
25
- .radarAxisLabel {
26
- font-size: ${e.axisLabelFontSize}px;
27
- color: ${e.axisColor};
28
- }
29
- .radarGraticule {
30
- fill: ${e.graticuleColor};
31
- fill-opacity: ${e.graticuleOpacity};
32
- stroke: ${e.graticuleColor};
33
- stroke-width: ${e.graticuleStrokeWidth};
34
- }
35
- .radarLegendText {
36
- text-anchor: start;
37
- font-size: ${e.legendFontSize}px;
38
- dominant-baseline: hanging;
39
- }
40
- ${it(t,e)}
41
- `},"styles"),Mt={parser:et,db:$,renderer:ot,styles:ct};export{Mt as diagram};
@@ -1,24 +0,0 @@
1
- import{p as pe}from"./chunk-JWPE2WC7-BIShIUcJ.js";import{_ as m,F as de,y as X,A as G,D as he,d as me,l as O,a9 as L,b as ue,a as fe,o as ye,p as ge,g as Se,s as xe,B as be,aa as ve,q as Ce}from"./index-BaBNw6X5.js";import{s as we}from"./chunk-POPQ4Y6H-DG5Q2OKT.js";import{p as Te}from"./cynefin-OW5HDTMX-D8Lw5okC.js";import{s as _}from"./index-MIxQaicl.js";import{f as P}from"./defaultLocale-5voVPcsN.js";import{o as I}from"./ordinal-Cboi1Yqb.js";import{h as $e,t as Le}from"./index-CvYzv8kf.js";import"../datalayer-app-main.js";import"./fastdom-promised-BMVBoXkp.js";import"./line-DUjWPDRX.js";import"./array-BKyUJesY.js";import"./path-CbwjOpE9.js";import"./_baseRest-BmxuuM4H.js";import"./isSymbol-BLtK9CV6.js";import"./forEach-hknrtmxV.js";import"./isUndefined-wBqHC1Hw.js";import"./color-CG7_7V2-.js";import"./index-atSsKceW.js";import"./init-Gi6I4Gst.js";var ee=class{constructor(){this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.setAccTitle=ue,this.getAccTitle=fe,this.setDiagramTitle=ye,this.getDiagramTitle=ge,this.getAccDescription=Se,this.setAccDescription=xe}static{m(this,"TreeMapDB")}getNodes(){return this.nodes}getConfig(){const r=be,s=X();return G({...r.treemap,...s.treemap??{}})}addNode(r,s){this.nodes.push(r),this.levels.set(r,s),s===0&&(this.outerNodes.push(r),this.root??=r)}getRoot(){return{name:"",children:this.outerNodes}}addClass(r,s){const i=this.classes.get(r)??{id:r,styles:[],textStyles:[]},c=s.replace(/\\,/g,"§§§").replace(/,/g,";").replace(/§§§/g,",").split(";");c&&c.forEach(l=>{ve(l)&&(i?.textStyles?i.textStyles.push(l):i.textStyles=[l]),i?.styles?i.styles.push(l):i.styles=[l]}),this.classes.set(r,i)}getClasses(){return this.classes}getStylesForClass(r){return this.classes.get(r)?.styles??[]}clear(){Ce(),this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.root=void 0}};function te(r){if(!r.length)return[];const s=[],i=[];return r.forEach(c=>{const l={name:c.name,children:c.type==="Leaf"?void 0:[]};for(l.classSelector=c?.classSelector,c?.cssCompiledStyles&&(l.cssCompiledStyles=c.cssCompiledStyles),c.type==="Leaf"&&c.value!==void 0&&(l.value=c.value);i.length>0&&i[i.length-1].level>=c.level;)i.pop();if(i.length===0)s.push(l);else{const o=i[i.length-1].node;o.children?o.children.push(l):o.children=[l]}c.type!=="Leaf"&&i.push({node:l,level:c.level})}),s}m(te,"buildHierarchy");var Fe=m((r,s)=>{pe(r,s);const i=[];for(const o of r.TreemapRows??[])o.$type==="ClassDefStatement"&&s.addClass(o.className??"",o.styleText??"");for(const o of r.TreemapRows??[]){const d=o.item;if(!d)continue;const h=o.indent?parseInt(o.indent):0,M=Ne(d),a=d.classSelector?s.getStylesForClass(d.classSelector):[],N=a.length>0?a:void 0,x={level:h,name:M,type:d.$type,value:d.value,classSelector:d.classSelector,cssCompiledStyles:N};i.push(x)}const c=te(i),l=m((o,d)=>{for(const h of o)s.addNode(h,d),h.children&&h.children.length>0&&l(h.children,d+1)},"addNodesRecursively");l(c,0)},"populate"),Ne=m(r=>r.name?String(r.name):"","getItemName"),ae={parser:{yy:void 0},parse:m(async r=>{try{const i=await Te("treemap",r);O.debug("Treemap AST:",i);const c=ae.parser?.yy;if(!(c instanceof ee))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.");Fe(i,c)}catch(s){throw O.error("Error parsing treemap:",s),s}},"parse")},ze=10,F=10,V=25,Ae=m((r,s,i,c)=>{const l=c.db,o=l.getConfig(),d=o.padding??ze,h=l.getDiagramTitle(),M=l.getRoot(),{themeVariables:a}=X();if(!M)return;const N=h?30:0,x=he(s),Y=o.nodeWidth?o.nodeWidth*F:960,j=o.nodeHeight?o.nodeHeight*F:500,H=Y,q=j+N;x.attr("viewBox",`0 0 ${H} ${q}`),me(x,q,H,o.useMaxWidth);let b;try{const e=o.valueFormat||",";if(e==="$0,0")b=m(t=>"$"+P(",")(t),"valueFormat");else if(e.startsWith("$")&&e.includes(",")){const t=/\.\d+/.exec(e),n=t?t[0]:"";b=m(u=>"$"+P(","+n)(u),"valueFormat")}else if(e.startsWith("$")){const t=e.substring(1);b=m(n=>"$"+P(t||"")(n),"valueFormat")}else b=P(e)}catch(e){O.error("Error creating format function:",e),b=P(",")}const z=I().range(["transparent",a.cScale0,a.cScale1,a.cScale2,a.cScale3,a.cScale4,a.cScale5,a.cScale6,a.cScale7,a.cScale8,a.cScale9,a.cScale10,a.cScale11]),le=I().range(["transparent",a.cScalePeer0,a.cScalePeer1,a.cScalePeer2,a.cScalePeer3,a.cScalePeer4,a.cScalePeer5,a.cScalePeer6,a.cScalePeer7,a.cScalePeer8,a.cScalePeer9,a.cScalePeer10,a.cScalePeer11]),k=I().range([a.cScaleLabel0,a.cScaleLabel1,a.cScaleLabel2,a.cScaleLabel3,a.cScaleLabel4,a.cScaleLabel5,a.cScaleLabel6,a.cScaleLabel7,a.cScaleLabel8,a.cScaleLabel9,a.cScaleLabel10,a.cScaleLabel11]);h&&x.append("text").attr("x",H/2).attr("y",N/2).attr("class","treemapTitle").attr("text-anchor","middle").attr("dominant-baseline","middle").text(h);const U=x.append("g").attr("transform",`translate(0, ${N})`).attr("class","treemapContainer"),se=$e(M).sum(e=>e.value??0).sort((e,t)=>(t.value??0)-(e.value??0)),J=Le().size([Y,j]).paddingTop(e=>e.children&&e.children.length>0?V+F:0).paddingInner(d).paddingLeft(e=>e.children&&e.children.length>0?F:0).paddingRight(e=>e.children&&e.children.length>0?F:0).paddingBottom(e=>e.children&&e.children.length>0?F:0).round(!0)(se),re=J.descendants().filter(e=>e.children&&e.children.length>0),A=U.selectAll(".treemapSection").data(re).enter().append("g").attr("class","treemapSection").attr("transform",e=>`translate(${e.x0},${e.y0})`);A.append("rect").attr("width",e=>e.x1-e.x0).attr("height",V).attr("class","treemapSectionHeader").attr("fill","none").attr("fill-opacity",.6).attr("stroke-width",.6).attr("style",e=>e.depth===0?"display: none;":""),A.append("clipPath").attr("id",(e,t)=>`clip-section-${s}-${t}`).append("rect").attr("width",e=>Math.max(0,e.x1-e.x0-12)).attr("height",V),A.append("rect").attr("width",e=>e.x1-e.x0).attr("height",e=>e.y1-e.y0).attr("class",(e,t)=>`treemapSection section${t}`).attr("fill",e=>z(e.data.name)).attr("fill-opacity",.6).attr("stroke",e=>le(e.data.name)).attr("stroke-width",2).attr("stroke-opacity",.4).attr("style",e=>{if(e.depth===0)return"display: none;";const t=L({cssCompiledStyles:e.data.cssCompiledStyles});return t.nodeStyles+";"+t.borderStyles.join(";")}),A.append("text").attr("class","treemapSectionLabel").attr("x",6).attr("y",V/2).attr("dominant-baseline","middle").text(e=>e.depth===0?"":e.data.name).attr("font-weight","bold").attr("clip-path",(e,t)=>`url(#clip-section-${s}-${t})`).attr("style",e=>{if(e.depth===0)return"display: none;";const t="dominant-baseline: middle; font-size: 12px; fill:"+k(e.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",n=L({cssCompiledStyles:e.data.cssCompiledStyles});return t+n.labelStyles.replace("color:","fill:")}).each(function(e){if(e.depth===0)return;const t=_(this),n=e.data.name;t.text(n);const u=e.x1-e.x0,y=6;let f;o.showValues!==!1&&e.value?f=u-10-30-10-y:f=u-y-6;const p=Math.max(15,f),v=t.node();if(v.getComputedTextLength()>p){let w=n;for(;w.length>0;){if(w=n.substring(0,w.length-1),w.length===0){t.text("..."),v.getComputedTextLength()>p&&t.text("");break}if(t.text(w+"..."),v.getComputedTextLength()<=p)break}}}),o.showValues!==!1&&A.append("text").attr("class","treemapSectionValue").attr("x",e=>e.x1-e.x0-10).attr("y",V/2).attr("text-anchor","end").attr("dominant-baseline","middle").text(e=>e.value?b(e.value):"").attr("font-style","italic").attr("style",e=>{if(e.depth===0)return"display: none;";const t="text-anchor: end; dominant-baseline: middle; font-size: 10px; fill:"+k(e.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",n=L({cssCompiledStyles:e.data.cssCompiledStyles});return t+n.labelStyles.replace("color:","fill:")});const K=J.leaves(),g=K.length>20,oe=g?16:38,W=g?14:28,T=g?4:8,D=g?4:6,R=g?2:4,Q=g?8:10,B=g?1:2,E=U.selectAll(".treemapLeafGroup").data(K).enter().append("g").attr("class",(e,t)=>`treemapNode treemapLeafGroup leaf${t}${e.data.classSelector?` ${e.data.classSelector}`:""}x`).attr("transform",e=>`translate(${e.x0},${e.y0})`);E.append("rect").attr("width",e=>e.x1-e.x0).attr("height",e=>e.y1-e.y0).attr("class","treemapLeaf").attr("fill",e=>e.parent?z(e.parent.data.name):z(e.data.name)).attr("style",e=>L({cssCompiledStyles:e.data.cssCompiledStyles}).nodeStyles).attr("fill-opacity",.3).attr("stroke",e=>e.parent?z(e.parent.data.name):z(e.data.name)).attr("stroke-width",3),E.append("clipPath").attr("id",(e,t)=>`clip-${s}-${t}`).append("rect").attr("width",e=>Math.max(0,e.x1-e.x0-4)).attr("height",e=>Math.max(0,e.y1-e.y0-4)),E.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 t=`text-anchor: middle; dominant-baseline: middle; font-size: ${oe}px;fill:`+k(e.data.name)+";",n=L({cssCompiledStyles:e.data.cssCompiledStyles});return t+n.labelStyles.replace("color:","fill:")}).attr("clip-path",(e,t)=>`url(#clip-${s}-${t})`).text(e=>e.data.name).each(function(e){const t=_(this),n=e.x1-e.x0,u=e.y1-e.y0,y=t.node(),f=n-2*R,$=u-2*R;if(f<Q||$<Q){t.style("display","none");return}let p=parseInt(t.style("font-size"),10);const v=.6;for(;y.getComputedTextLength()>f&&p>T;)p--,t.style("font-size",`${p}px`);let S=Math.max(D,Math.min(W,Math.round(p*v))),C=p+B+S;for(;C>$&&p>T&&(p--,S=Math.max(D,Math.min(W,Math.round(p*v))),!(S<D&&p===T));)t.style("font-size",`${p}px`),C=p+B+S;t.style("font-size",`${p}px`),g?(p<T||$<T)&&t.style("display","none"):(y.getComputedTextLength()>f||p<T||$<p)&&t.style("display","none")}),o.showValues!==!1&&E.append("text").attr("class","treemapValue").attr("x",t=>(t.x1-t.x0)/2).attr("y",function(t){return(t.y1-t.y0)/2}).attr("style",t=>{const n=`text-anchor: middle; dominant-baseline: hanging; font-size: ${W}px;fill:`+k(t.data.name)+";",u=L({cssCompiledStyles:t.data.cssCompiledStyles});return n+u.labelStyles.replace("color:","fill:")}).attr("clip-path",(t,n)=>`url(#clip-${s}-${n})`).text(t=>t.value?b(t.value):"").each(function(t){const n=_(this),u=this.parentNode;if(!u){n.style("display","none");return}const y=_(u).select(".treemapLabel");if(y.empty()||y.style("display")==="none"){n.style("display","none");return}const f=parseFloat(y.style("font-size")),p=Math.max(D,Math.min(W,Math.round(f*.6)));n.style("font-size",`${p}px`);const S=(t.y1-t.y0)/2+f/2+B;n.attr("y",S);const C=t.x1-t.x0,Z=t.y1-t.y0-4,ce=C-2*R;n.node().getComputedTextLength()>ce||S+p>Z||p<D?n.style("display","none"):n.style("display",null)});const ne=o.diagramPadding??8;we(x,ne,"flowchart",o?.useMaxWidth||!1)},"draw"),De=m(function(r,s){return s.db.getClasses()},"getClasses"),Pe={draw:Ae,getClasses:De},Ve={sectionStrokeColor:"black",sectionStrokeWidth:"1",sectionFillColor:"#efefef",leafStrokeColor:"black",leafStrokeWidth:"1",leafFillColor:"#efefef",labelFontSize:"12px",valueFontSize:"10px",titleFontSize:"14px"},Me=m(({treemap:r}={})=>{const s=de(),i=X(),c=G(s,i.themeVariables),l=G(Ve,r),o=l.titleColor??c.titleColor,d=l.labelColor??c.textColor,h=l.valueColor??c.textColor;return`
2
- .treemapNode.section {
3
- stroke: ${l.sectionStrokeColor};
4
- stroke-width: ${l.sectionStrokeWidth};
5
- fill: ${l.sectionFillColor};
6
- }
7
- .treemapNode.leaf {
8
- stroke: ${l.leafStrokeColor};
9
- stroke-width: ${l.leafStrokeWidth};
10
- fill: ${l.leafFillColor};
11
- }
12
- .treemapLabel {
13
- fill: ${d};
14
- font-size: ${l.labelFontSize};
15
- }
16
- .treemapValue {
17
- fill: ${h};
18
- font-size: ${l.valueFontSize};
19
- }
20
- .treemapTitle {
21
- fill: ${o};
22
- font-size: ${l.titleFontSize};
23
- }
24
- `},"getStyles"),ke=Me,st={parser:ae,get db(){return new ee},renderer:Pe,styles:ke};export{st as diagram};
@@ -1,24 +0,0 @@
1
- import{p as B}from"./chunk-JWPE2WC7-BIShIUcJ.js";import{_ as m,A as b,D as $,d as C,l as u,b as S,a as D,o as T,p as P,g as z,s as A,B as E,y as F,q as W}from"./index-BaBNw6X5.js";import{p as _}from"./cynefin-OW5HDTMX-D8Lw5okC.js";import"../datalayer-app-main.js";import"./index-MIxQaicl.js";import"./color-CG7_7V2-.js";import"./index-atSsKceW.js";import"./fastdom-promised-BMVBoXkp.js";import"./line-DUjWPDRX.js";import"./array-BKyUJesY.js";import"./path-CbwjOpE9.js";import"./_baseRest-BmxuuM4H.js";import"./isSymbol-BLtK9CV6.js";import"./forEach-hknrtmxV.js";import"./isUndefined-wBqHC1Hw.js";var N=E.packet,w=class{constructor(){this.packet=[],this.setAccTitle=S,this.getAccTitle=D,this.setDiagramTitle=T,this.getDiagramTitle=P,this.getAccDescription=z,this.setAccDescription=A}static{m(this,"PacketDB")}getConfig(){const t=b({...N,...F().packet});return t.showBits&&(t.paddingY+=10),t}getPacket(){return this.packet}pushWord(t){t.length>0&&this.packet.push(t)}clear(){W(),this.packet=[]}},L=1e4,M=m((t,e)=>{B(t,e);let r=-1,o=[],n=1;const{bitsPerRow:l}=e.getConfig();for(let{start:a,end:s,bits:d,label:c}of t.blocks){if(a!==void 0&&s!==void 0&&s<a)throw new Error(`Packet block ${a} - ${s} is invalid. End must be greater than start.`);if(a??=r+1,a!==r+1)throw new Error(`Packet block ${a} - ${s??a} is not contiguous. It should start from ${r+1}.`);if(d===0)throw new Error(`Packet block ${a} is invalid. Cannot have a zero bit field.`);for(s??=a+(d??1)-1,d??=s-a+1,r=s,u.debug(`Packet block ${a} - ${r} with label ${c}`);o.length<=l+1&&e.getPacket().length<L;){const[p,i]=Y({start:a,end:s,bits:d,label:c},n,l);if(o.push(p),p.end+1===n*l&&(e.pushWord(o),o=[],n++),!i)break;({start:a,end:s,bits:d,label:c}=i)}}e.pushWord(o)},"populate"),Y=m((t,e,r)=>{if(t.start===void 0)throw new Error("start should have been set during first phase");if(t.end===void 0)throw new Error("end should have been set during first phase");if(t.start>t.end)throw new Error(`Block start ${t.start} is greater than block end ${t.end}.`);if(t.end+1<=e*r)return[t,void 0];const o=e*r-1,n=e*r;return[{start:t.start,end:o,label:t.label,bits:o-t.start},{start:n,end:t.end,label:t.label,bits:t.end-n}]},"getNextFittingBlock"),v={parser:{yy:void 0},parse:m(async t=>{const e=await _("packet",t),r=v.parser?.yy;if(!(r instanceof w))throw new Error("parser.parser?.yy was not a PacketDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");u.debug(e),M(e,r)},"parse")},I=m((t,e,r,o)=>{const n=o.db,l=n.getConfig(),{rowHeight:a,paddingY:s,bitWidth:d,bitsPerRow:c}=l,p=n.getPacket(),i=n.getDiagramTitle(),h=a+s,g=h*(p.length+1)-(i?0:a),k=d*c+2,f=$(e);f.attr("viewBox",`0 0 ${k} ${g}`),C(f,g,k,l.useMaxWidth);for(const[x,y]of p.entries())O(f,y,x,l);f.append("text").text(i).attr("x",k/2).attr("y",g-h/2).attr("dominant-baseline","middle").attr("text-anchor","middle").attr("class","packetTitle")},"draw"),O=m((t,e,r,{rowHeight:o,paddingX:n,paddingY:l,bitWidth:a,bitsPerRow:s,showBits:d})=>{const c=t.append("g"),p=r*(o+l)+l;for(const i of e){const h=i.start%s*a+1,g=(i.end-i.start+1)*a-n;if(c.append("rect").attr("x",h).attr("y",p).attr("width",g).attr("height",o).attr("class","packetBlock"),c.append("text").attr("x",h+g/2).attr("y",p+o/2).attr("class","packetLabel").attr("dominant-baseline","middle").attr("text-anchor","middle").text(i.label),!d)continue;const k=i.end===i.start,f=p-2;c.append("text").attr("x",h+(k?g/2:0)).attr("y",f).attr("class","packetByte start").attr("dominant-baseline","auto").attr("text-anchor",k?"middle":"start").text(i.start),k||c.append("text").attr("x",h+g).attr("y",f).attr("class","packetByte end").attr("dominant-baseline","auto").attr("text-anchor","end").text(i.end)}},"drawWord"),j={draw:I},q={byteFontSize:"10px",startByteColor:"black",endByteColor:"black",labelColor:"black",labelFontSize:"12px",titleColor:"black",titleFontSize:"14px",blockStrokeColor:"black",blockStrokeWidth:"1",blockFillColor:"#efefef"},G=m(({packet:t}={})=>{const e=b(q,t);return`
2
- .packetByte {
3
- font-size: ${e.byteFontSize};
4
- }
5
- .packetByte.start {
6
- fill: ${e.startByteColor};
7
- }
8
- .packetByte.end {
9
- fill: ${e.endByteColor};
10
- }
11
- .packetLabel {
12
- fill: ${e.labelColor};
13
- font-size: ${e.labelFontSize};
14
- }
15
- .packetTitle {
16
- fill: ${e.titleColor};
17
- font-size: ${e.titleFontSize};
18
- }
19
- .packetBlock {
20
- stroke: ${e.blockStrokeColor};
21
- stroke-width: ${e.blockStrokeWidth};
22
- fill: ${e.blockFillColor};
23
- }
24
- `},"styles"),st={parser:v,get db(){return new w},renderer:j,styles:G};export{st as diagram};
@@ -1 +0,0 @@
1
- import{g as m,r as p,d as n}from"./chunk-SVP7TREG-ERRaAh-x.js";import{p as l}from"./chunk-JWPE2WC7-BIShIUcJ.js";import{_ as t,l as s}from"./index-BaBNw6X5.js";import"./index-MIxQaicl.js";import{M as u,a as f}from"./cynefin-OW5HDTMX-D8Lw5okC.js";import"../datalayer-app-main.js";import"./fastdom-promised-BMVBoXkp.js";import"./line-DUjWPDRX.js";import"./array-BKyUJesY.js";import"./path-CbwjOpE9.js";import"./_baseRest-BmxuuM4H.js";import"./isSymbol-BLtK9CV6.js";import"./forEach-hknrtmxV.js";import"./isUndefined-wBqHC1Hw.js";import"./color-CG7_7V2-.js";import"./index-atSsKceW.js";var c=f().RailroadEbnf.parser.LangiumParser,o=t(e=>{const r=e.alternatives.map(E);return r.length===1?r[0]:{type:"choice",alternatives:r}},"transformChoice"),E=t(e=>{const r=e.elements.map(d);return r.length===1?r[0]:{type:"sequence",elements:r}},"transformSequence"),i=t(e=>{switch(e.$type){case"EbnfTerminal":return{type:"terminal",value:e.value};case"EbnfNonTerminal":return{type:"nonterminal",name:e.name};case"EbnfSpecial":return{type:"special",text:e.text};case"EbnfGroup":return o(e.element);case"EbnfOptional":return{type:"optional",element:o(e.element)};case"EbnfRepetition":return{type:"repetition",element:o(e.element),min:0,max:1/0};default:throw new Error(`Unsupported EBNF primary node: ${e.$type}`)}},"transformPrimary"),b=t((e,r)=>{switch(r.$type){case"EbnfOptionalPostfix":return{type:"optional",element:e};case"EbnfZeroOrMorePostfix":return{type:"repetition",element:e,min:0,max:1/0};case"EbnfOneOrMorePostfix":return{type:"repetition",element:e,min:1,max:1/0};case"EbnfExceptionPostfix":return{type:"sequence",elements:[e,{type:"terminal",value:"-"},i(r.except)]};default:throw new Error(`Unsupported EBNF postfix node: ${r.$type}`)}},"transformPostfix"),d=t(e=>e.postfixes.reduce((r,a)=>b(r,a),i(e.base)),"transformTerm"),y=t(e=>({name:e.name,definition:o(e.definition)}),"transformRule"),v=t(e=>{l(e,n),e.title&&n.setTitle(e.title),e.rules.map(r=>n.addRule(y(r)))},"populateDb"),g={parse:t(e=>{n.clear(),s.debug("[EBNF Parser] Starting Langium parse");const r=c.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new u(r);const a=r.value;s.debug("[EBNF Parser] Parsed rules:",a.rules.length),v(a),s.debug("[EBNF Parser] Parse complete")},"parse"),parser:{yy:n}},I={parser:g,db:n,renderer:p,styles:m};export{I as diagram};
@@ -1,106 +0,0 @@
1
- import{I as lr}from"./chunk-2Q5K7J3B-DpFWUcsT.js";import{p as hr}from"./chunk-JWPE2WC7-BIShIUcJ.js";import{p as $r,o as fr,s as gr,g as ur,a as yr,b as xr,_ as h,y as J,l as w,c as W,x as mr,z as pr,q as br,j as B,A as wr,B as kr,C as vr}from"./index-BaBNw6X5.js";import{p as Cr}from"./cynefin-OW5HDTMX-D8Lw5okC.js";import{s as Er}from"./index-MIxQaicl.js";import"../datalayer-app-main.js";import"./fastdom-promised-BMVBoXkp.js";import"./line-DUjWPDRX.js";import"./array-BKyUJesY.js";import"./path-CbwjOpE9.js";import"./_baseRest-BmxuuM4H.js";import"./isSymbol-BLtK9CV6.js";import"./forEach-hknrtmxV.js";import"./isUndefined-wBqHC1Hw.js";import"./color-CG7_7V2-.js";import"./index-atSsKceW.js";var m={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},Br=kr.gitGraph,S=h(()=>wr({...Br,...J().gitGraph}),"getConfig"),d=new lr(()=>{const r=S(),e=r.mainBranchName,t=r.mainBranchOrder;return{mainBranchName:e,commits:new Map,head:null,branchConfig:new Map([[e,{name:e,order:t}]]),branches:new Map([[e,null]]),currBranch:e,direction:"LR",seq:0,options:{}}});function Y(){return vr({length:7})}h(Y,"getID");function tr(r,e){const t=Object.create(null);return r.reduce((s,o)=>{const i=e(o);return t[i]||(t[i]=!0,s.push(o)),s},[])}h(tr,"uniqBy");var Tr=h(function(r){d.records.direction=r},"setDirection"),Lr=h(function(r){w.debug("options str",r),r=r?.trim(),r=r||"{}";try{d.records.options=JSON.parse(r)}catch(e){w.error("error while parsing gitGraph options",e.message)}},"setOptions"),Mr=h(function(){return d.records.options},"getOptions"),Rr=h(function(r){let e=r.msg,t=r.id;const s=r.type;let o=r.tags;w.info("commit",e,t,s,o),w.debug("Entering commit:",e,t,s,o);const i=S();t=B.sanitizeText(t,i),e=B.sanitizeText(e,i),o=o?.map(a=>B.sanitizeText(a,i));const n={id:t||d.records.seq+"-"+Y(),message:e,seq:d.records.seq++,type:s??m.NORMAL,tags:o??[],parents:d.records.head==null?[]:[d.records.head.id],branch:d.records.currBranch};d.records.head=n,w.info("main branch",i.mainBranchName),d.records.commits.has(n.id)&&w.warn(`Commit ID ${n.id} already exists`),d.records.commits.set(n.id,n),d.records.branches.set(d.records.currBranch,n.id),w.debug("in pushCommit "+n.id)},"commit"),Ir=h(function(r){let e=r.name;const t=r.order;if(e=B.sanitizeText(e,S()),d.records.branches.has(e))throw new Error(`Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${e}")`);d.records.branches.set(e,d.records.head!=null?d.records.head.id:null),d.records.branchConfig.set(e,{name:e,order:t}),ar(e),w.debug("in createBranch")},"branch"),Or=h(r=>{let e=r.branch,t=r.id;const s=r.type,o=r.tags,i=S();e=B.sanitizeText(e,i),t&&(t=B.sanitizeText(t,i));const n=d.records.branches.get(d.records.currBranch),a=d.records.branches.get(e),l=n?d.records.commits.get(n):void 0,f=a?d.records.commits.get(a):void 0;if(l&&f&&l.branch===e)throw new Error(`Cannot merge branch '${e}' into itself.`);if(d.records.currBranch===e){const c=new Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw c.hash={text:`merge ${e}`,token:`merge ${e}`,expected:["branch abc"]},c}if(l===void 0||!l){const c=new Error(`Incorrect usage of "merge". Current branch (${d.records.currBranch})has no commits`);throw c.hash={text:`merge ${e}`,token:`merge ${e}`,expected:["commit"]},c}if(!d.records.branches.has(e)){const c=new Error('Incorrect usage of "merge". Branch to be merged ('+e+") does not exist");throw c.hash={text:`merge ${e}`,token:`merge ${e}`,expected:[`branch ${e}`]},c}if(f===void 0||!f){const c=new Error('Incorrect usage of "merge". Branch to be merged ('+e+") has no commits");throw c.hash={text:`merge ${e}`,token:`merge ${e}`,expected:['"commit"']},c}if(l===f){const c=new Error('Incorrect usage of "merge". Both branches have same head');throw c.hash={text:`merge ${e}`,token:`merge ${e}`,expected:["branch abc"]},c}if(t&&d.records.commits.has(t)){const c=new Error('Incorrect usage of "merge". Commit with id:'+t+" already exists, use different custom id");throw c.hash={text:`merge ${e} ${t} ${s} ${o?.join(" ")}`,token:`merge ${e} ${t} ${s} ${o?.join(" ")}`,expected:[`merge ${e} ${t}_UNIQUE ${s} ${o?.join(" ")}`]},c}const g=a||"",$={id:t||`${d.records.seq}-${Y()}`,message:`merged branch ${e} into ${d.records.currBranch}`,seq:d.records.seq++,parents:d.records.head==null?[]:[d.records.head.id,g],branch:d.records.currBranch,type:m.MERGE,customType:s,customId:!!t,tags:o??[]};d.records.head=$,d.records.commits.set($.id,$),d.records.branches.set(d.records.currBranch,$.id),w.debug(d.records.branches),w.debug("in mergeBranch")},"merge"),_r=h(function(r){let e=r.id,t=r.targetId,s=r.tags,o=r.parent;w.debug("Entering cherryPick:",e,t,s);const i=S();if(e=B.sanitizeText(e,i),t=B.sanitizeText(t,i),s=s?.map(l=>B.sanitizeText(l,i)),o=B.sanitizeText(o,i),!e||!d.records.commits.has(e)){const l=new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw l.hash={text:`cherryPick ${e} ${t}`,token:`cherryPick ${e} ${t}`,expected:["cherry-pick abc"]},l}const n=d.records.commits.get(e);if(n===void 0||!n)throw new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');if(o&&!(Array.isArray(n.parents)&&n.parents.includes(o)))throw new Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");const a=n.branch;if(n.type===m.MERGE&&!o)throw new Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");if(!t||!d.records.commits.has(t)){if(a===d.records.currBranch){const $=new Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw $.hash={text:`cherryPick ${e} ${t}`,token:`cherryPick ${e} ${t}`,expected:["cherry-pick abc"]},$}const l=d.records.branches.get(d.records.currBranch);if(l===void 0||!l){const $=new Error(`Incorrect usage of "cherry-pick". Current branch (${d.records.currBranch})has no commits`);throw $.hash={text:`cherryPick ${e} ${t}`,token:`cherryPick ${e} ${t}`,expected:["cherry-pick abc"]},$}const f=d.records.commits.get(l);if(f===void 0||!f){const $=new Error(`Incorrect usage of "cherry-pick". Current branch (${d.records.currBranch})has no commits`);throw $.hash={text:`cherryPick ${e} ${t}`,token:`cherryPick ${e} ${t}`,expected:["cherry-pick abc"]},$}const g={id:d.records.seq+"-"+Y(),message:`cherry-picked ${n?.message} into ${d.records.currBranch}`,seq:d.records.seq++,parents:d.records.head==null?[]:[d.records.head.id,n.id],branch:d.records.currBranch,type:m.CHERRY_PICK,tags:s?s.filter(Boolean):[`cherry-pick:${n.id}${n.type===m.MERGE?`|parent:${o}`:""}`]};d.records.head=g,d.records.commits.set(g.id,g),d.records.branches.set(d.records.currBranch,g.id),w.debug(d.records.branches),w.debug("in cherryPick")}},"cherryPick"),ar=h(function(r){if(r=B.sanitizeText(r,S()),d.records.branches.has(r)){d.records.currBranch=r;const e=d.records.branches.get(d.records.currBranch);e===void 0||!e?d.records.head=null:d.records.head=d.records.commits.get(e)??null}else{const e=new Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${r}")`);throw e.hash={text:`checkout ${r}`,token:`checkout ${r}`,expected:[`branch ${r}`]},e}},"checkout");function V(r,e,t){const s=r.indexOf(e);s===-1?r.push(t):r.splice(s,1,t)}h(V,"upsert");function Q(r){const e=r.reduce((o,i)=>o.seq>i.seq?o:i,r[0]);let t="";r.forEach(function(o){o===e?t+=" *":t+=" |"});const s=[t,e.id,e.seq];for(const o in d.records.branches)d.records.branches.get(o)===e.id&&s.push(o);if(w.debug(s.join(" ")),e.parents&&e.parents.length==2&&e.parents[0]&&e.parents[1]){const o=d.records.commits.get(e.parents[0]);V(r,e,o),e.parents[1]&&r.push(d.records.commits.get(e.parents[1]))}else{if(e.parents.length==0)return;if(e.parents[0]){const o=d.records.commits.get(e.parents[0]);V(r,e,o)}}r=tr(r,o=>o.id),Q(r)}h(Q,"prettyPrintCommitHistory");var Gr=h(function(){w.debug(d.records.commits);const r=nr()[0];Q([r])},"prettyPrint"),Hr=h(function(){d.reset(),br()},"clear"),Sr=h(function(){return[...d.records.branchConfig.values()].map((e,t)=>e.order!==null&&e.order!==void 0?e:{...e,order:parseFloat(`0.${t}`)}).sort((e,t)=>(e.order??0)-(t.order??0)).map(({name:e})=>({name:e}))},"getBranchesAsObjArray"),Ar=h(function(){return d.records.branches},"getBranches"),Dr=h(function(){return d.records.commits},"getCommits"),nr=h(function(){const r=[...d.records.commits.values()];return r.forEach(function(e){w.debug(e.id)}),r.sort((e,t)=>e.seq-t.seq),r},"getCommitsArray"),qr=h(function(){return d.records.currBranch},"getCurrentBranch"),Pr=h(function(){return d.records.direction},"getDirection"),Wr=h(function(){return d.records.head},"getHead"),sr={commitType:m,getConfig:S,setDirection:Tr,setOptions:Lr,getOptions:Mr,commit:Rr,branch:Ir,merge:Or,cherryPick:_r,checkout:ar,prettyPrint:Gr,clear:Hr,getBranchesAsObjArray:Sr,getBranches:Ar,getCommits:Dr,getCommitsArray:nr,getCurrentBranch:qr,getDirection:Pr,getHead:Wr,setAccTitle:xr,getAccTitle:yr,getAccDescription:ur,setAccDescription:gr,setDiagramTitle:fr,getDiagramTitle:$r},Nr=h((r,e)=>{hr(r,e),r.dir&&e.setDirection(r.dir);for(const t of r.statements)Fr(t,e)},"populate"),Fr=h((r,e)=>{const s={Commit:h(o=>e.commit(zr(o)),"Commit"),Branch:h(o=>e.branch(Yr(o)),"Branch"),Merge:h(o=>e.merge(jr(o)),"Merge"),Checkout:h(o=>e.checkout(Ur(o)),"Checkout"),CherryPicking:h(o=>e.cherryPick(Kr(o)),"CherryPicking")}[r.$type];s?s(r):w.error(`Unknown statement type: ${r.$type}`)},"parseStatement"),zr=h(r=>({id:r.id,msg:r.message??"",type:r.type!==void 0?m[r.type]:m.NORMAL,tags:r.tags??void 0}),"parseCommit"),Yr=h(r=>({name:r.name,order:r.order??0}),"parseBranch"),jr=h(r=>({branch:r.branch,id:r.id??"",type:r.type!==void 0?m[r.type]:void 0,tags:r.tags??void 0}),"parseMerge"),Ur=h(r=>r.branch,"parseCheckout"),Kr=h(r=>({id:r.id,targetId:"",tags:r.tags?.length===0?void 0:r.tags,parent:r.parent}),"parseCherryPicking"),Vr={parse:h(async r=>{const e=await Cr("gitGraph",r);w.debug(e),Nr(e,sr)},"parse")},O=10,_=40,L=4,R=2,G=8,j=new Set(["redux","redux-dark","redux-color","redux-dark-color"]),X=12,Z=new Set(["redux-color","redux-dark-color"]),Xr=new Set(["dark","redux-dark","redux-dark-color","neo-dark"]),H=h((r,e,t=!1)=>t&&r>0?(r-1)%(e-1)+1:r%e,"calcColorIndex"),C=new Map,E=new Map,F=30,q=new Map,z=[],I=0,y="LR",Jr=h(()=>{C.clear(),E.clear(),q.clear(),I=0,z=[],y="LR"},"clear"),or=h(r=>{const e=document.createElementNS("http://www.w3.org/2000/svg","text");return(typeof r=="string"?r.split(/\\n|\n|<br\s*\/?>/gi):r).forEach(s=>{const o=document.createElementNS("http://www.w3.org/2000/svg","tspan");o.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),o.setAttribute("dy","1em"),o.setAttribute("x","0"),o.setAttribute("class","row"),o.textContent=s.trim(),e.appendChild(o)}),e},"drawText"),cr=h(r=>{let e,t,s;return y==="BT"?(t=h((o,i)=>o<=i,"comparisonFunc"),s=1/0):(t=h((o,i)=>o>=i,"comparisonFunc"),s=0),r.forEach(o=>{const i=y==="TB"||y=="BT"?E.get(o)?.y:E.get(o)?.x;i!==void 0&&t(i,s)&&(e=o,s=i)}),e},"findClosestParent"),Qr=h(r=>{let e="",t=1/0;return r.forEach(s=>{const o=E.get(s).y;o<=t&&(e=s,t=o)}),e||void 0},"findClosestParentBT"),Zr=h((r,e,t)=>{let s=t,o=t;const i=[];r.forEach(n=>{const a=e.get(n);if(!a)throw new Error(`Commit not found for key ${n}`);a.parents.length?(s=ee(a),o=Math.max(s,o)):i.push(a),te(a,s)}),s=o,i.forEach(n=>{ae(n,s,t)}),r.forEach(n=>{const a=e.get(n);if(a?.parents.length){const l=Qr(a.parents);s=E.get(l).y-_,s<=o&&(o=s);const f=C.get(a.branch).pos,g=s-O;E.set(a.id,{x:f,y:g})}})},"setParallelBTPos"),re=h(r=>{const e=cr(r.parents.filter(s=>s!==null));if(!e)throw new Error(`Closest parent not found for commit ${r.id}`);const t=E.get(e)?.y;if(t===void 0)throw new Error(`Closest parent position not found for commit ${r.id}`);return t},"findClosestParentPos"),ee=h(r=>re(r)+_,"calculateCommitPosition"),te=h((r,e)=>{const t=C.get(r.branch);if(!t)throw new Error(`Branch not found for commit ${r.id}`);const s=t.pos,o=e+O;return E.set(r.id,{x:s,y:o}),{x:s,y:o}},"setCommitPosition"),ae=h((r,e,t)=>{const s=C.get(r.branch);if(!s)throw new Error(`Branch not found for commit ${r.id}`);const o=e+t,i=s.pos;E.set(r.id,{x:i,y:o})},"setRootPosition"),ne=h((r,e,t,s,o,i)=>{const{theme:n}=W(),a=j.has(n??""),l=Z.has(n??""),f=Xr.has(n??"");if(i===m.HIGHLIGHT)r.append("rect").attr("x",t.x-10+(a?3:0)).attr("y",t.y-10+(a?3:0)).attr("width",a?14:20).attr("height",a?14:20).attr("class",`commit ${e.id} commit-highlight${H(o,G,l)} ${s}-outer`),r.append("rect").attr("x",t.x-6+(a?2:0)).attr("y",t.y-6+(a?2:0)).attr("width",a?8:12).attr("height",a?8:12).attr("class",`commit ${e.id} commit${H(o,G,l)} ${s}-inner`);else if(i===m.CHERRY_PICK)r.append("circle").attr("cx",t.x).attr("cy",t.y).attr("r",a?7:10).attr("class",`commit ${e.id} ${s}`),r.append("circle").attr("cx",t.x-3).attr("cy",t.y+2).attr("r",a?2.5:2.75).attr("fill",f?"#000000":"#fff").attr("class",`commit ${e.id} ${s}`),r.append("circle").attr("cx",t.x+3).attr("cy",t.y+2).attr("r",a?2.5:2.75).attr("fill",f?"#000000":"#fff").attr("class",`commit ${e.id} ${s}`),r.append("line").attr("x1",t.x+3).attr("y1",t.y+1).attr("x2",t.x).attr("y2",t.y-5).attr("stroke",f?"#000000":"#fff").attr("class",`commit ${e.id} ${s}`),r.append("line").attr("x1",t.x-3).attr("y1",t.y+1).attr("x2",t.x).attr("y2",t.y-5).attr("stroke",f?"#000000":"#fff").attr("class",`commit ${e.id} ${s}`);else{const g=r.append("circle");if(g.attr("cx",t.x),g.attr("cy",t.y),g.attr("r",a?7:10),g.attr("class",`commit ${e.id} commit${H(o,G,l)}`),i===m.MERGE){const $=r.append("circle");$.attr("cx",t.x),$.attr("cy",t.y),$.attr("r",a?5:6),$.attr("class",`commit ${s} ${e.id} commit${H(o,G,l)}`)}if(i===m.REVERSE){const $=r.append("path"),c=a?4:5;$.attr("d",`M ${t.x-c},${t.y-c}L${t.x+c},${t.y+c}M${t.x-c},${t.y+c}L${t.x+c},${t.y-c}`).attr("class",`commit ${s} ${e.id} commit${H(o,G,l)}`)}}},"drawCommitBullet"),se=h((r,e,t,s,o)=>{if(e.type!==m.CHERRY_PICK&&(e.customId&&e.type===m.MERGE||e.type!==m.MERGE)&&o.showCommitLabel){const i=r.append("g"),n=i.insert("rect").attr("class","commit-label-bkg"),a=i.append("text").attr("x",s).attr("y",t.y+25).attr("class","commit-label").text(e.id),l=a.node()?.getBBox();if(l&&(n.attr("x",t.posWithOffset-l.width/2-R).attr("y",t.y+13.5).attr("width",l.width+2*R).attr("height",l.height+2*R),y==="TB"||y==="BT"?(n.attr("x",t.x-(l.width+4*L+5)).attr("y",t.y-12),a.attr("x",t.x-(l.width+4*L)).attr("y",t.y+l.height-12)):a.attr("x",t.posWithOffset-l.width/2),o.rotateCommitLabel))if(y==="TB"||y==="BT")a.attr("transform","rotate(-45, "+t.x+", "+t.y+")"),n.attr("transform","rotate(-45, "+t.x+", "+t.y+")");else{const f=-7.5-(l.width+10)/25*9.5,g=10+l.width/25*8.5;i.attr("transform","translate("+f+", "+g+") rotate(-45, "+s+", "+t.y+")")}}},"drawCommitLabel"),oe=h((r,e,t,s)=>{if(e.tags.length>0){let o=0,i=0,n=0;const a=[];for(const l of e.tags.reverse()){const f=r.insert("polygon"),g=r.append("circle"),$=r.append("text").attr("y",t.y-16-o).attr("class","tag-label").text(l),c=$.node()?.getBBox();if(!c)throw new Error("Tag bbox not found");i=Math.max(i,c.width),n=Math.max(n,c.height),$.attr("x",t.posWithOffset-c.width/2),a.push({tag:$,hole:g,rect:f,yOffset:o}),o+=20}for(const{tag:l,hole:f,rect:g,yOffset:$}of a){const c=n/2,x=t.y-19.2-$;if(g.attr("class","tag-label-bkg").attr("points",`
2
- ${s-i/2-L/2},${x+R}
3
- ${s-i/2-L/2},${x-R}
4
- ${t.posWithOffset-i/2-L},${x-c-R}
5
- ${t.posWithOffset+i/2+L},${x-c-R}
6
- ${t.posWithOffset+i/2+L},${x+c+R}
7
- ${t.posWithOffset-i/2-L},${x+c+R}`),f.attr("cy",x).attr("cx",s-i/2+L/2).attr("r",1.5).attr("class","tag-hole"),y==="TB"||y==="BT"){const u=s+$;g.attr("class","tag-label-bkg").attr("points",`
8
- ${t.x},${u+2}
9
- ${t.x},${u-2}
10
- ${t.x+O},${u-c-2}
11
- ${t.x+O+i+4},${u-c-2}
12
- ${t.x+O+i+4},${u+c+2}
13
- ${t.x+O},${u+c+2}`).attr("transform","translate(12,12) rotate(45, "+t.x+","+s+")"),f.attr("cx",t.x+L/2).attr("cy",u).attr("transform","translate(12,12) rotate(45, "+t.x+","+s+")"),l.attr("x",t.x+5).attr("y",u+3).attr("transform","translate(14,14) rotate(45, "+t.x+","+s+")")}}}},"drawCommitTags"),ce=h(r=>{switch(r.customType??r.type){case m.NORMAL:return"commit-normal";case m.REVERSE:return"commit-reverse";case m.HIGHLIGHT:return"commit-highlight";case m.MERGE:return"commit-merge";case m.CHERRY_PICK:return"commit-cherry-pick";default:return"commit-normal"}},"getCommitClassType"),ie=h((r,e,t,s)=>{const o={x:0,y:0};if(r.parents.length>0){const i=cr(r.parents);if(i){const n=s.get(i)??o;return e==="TB"?n.y+_:e==="BT"?(s.get(r.id)??o).y-_:n.x+_}}else return e==="TB"?F:e==="BT"?(s.get(r.id)??o).y-_:0;return 0},"calculatePosition"),de=h((r,e,t)=>{const s=y==="BT"&&t?e:e+O,o=C.get(r.branch)?.pos,i=y==="TB"||y==="BT"?C.get(r.branch)?.pos:s;if(i===void 0||o===void 0)throw new Error(`Position were undefined for commit ${r.id}`);const n=j.has(W().theme??""),a=y==="TB"||y==="BT"?s:o+(n?X/2+1:-2);return{x:i,y:a,posWithOffset:s}},"getCommitPosition"),er=h((r,e,t,s)=>{const o=r.append("g").attr("class","commit-bullets"),i=r.append("g").attr("class","commit-labels");let n=y==="TB"||y==="BT"?F:0;const a=[...e.keys()],l=s.parallelCommits??!1,f=h(($,c)=>{const x=e.get($)?.seq,u=e.get(c)?.seq;return x!==void 0&&u!==void 0?x-u:0},"sortKeys");let g=a.sort(f);y==="BT"&&(l&&Zr(g,e,n),g=g.reverse()),g.forEach($=>{const c=e.get($);if(!c)throw new Error(`Commit not found for key ${$}`);l&&(n=ie(c,y,n,E));const x=de(c,n,l);if(t){const u=ce(c),p=c.customType??c.type,b=C.get(c.branch)?.index??0;ne(o,c,x,u,b,p),se(i,c,x,n,s),oe(i,c,x,n)}y==="TB"||y==="BT"?E.set(c.id,{x:x.x,y:x.posWithOffset}):E.set(c.id,{x:x.posWithOffset,y:x.y}),n=y==="BT"&&l?n+_:n+_+O,n>I&&(I=n)})},"drawCommits"),le=h((r,e,t,s,o)=>{const n=(y==="TB"||y==="BT"?t.x<s.x:t.y<s.y)?e.branch:r.branch,a=h(f=>f.branch===n,"isOnBranchToGetCurve"),l=h(f=>f.seq>r.seq&&f.seq<e.seq,"isBetweenCommits");return[...o.values()].some(f=>l(f)&&a(f))},"shouldRerouteArrow"),P=h((r,e,t=0)=>{const s=r+Math.abs(r-e)/2;if(t>5)return s;if(z.every(n=>Math.abs(n-s)>=10))return z.push(s),s;const i=Math.abs(r-e);return P(r,e-i/5,t+1)},"findLane"),he=h((r,e,t,s)=>{const{theme:o}=W(),i=Z.has(o??""),n=E.get(e.id),a=E.get(t.id);if(n===void 0||a===void 0)throw new Error(`Commit positions not found for commits ${e.id} and ${t.id}`);const l=le(e,t,n,a,s);let f="",g="",$=0,c=0,x=C.get(t.branch)?.index;t.type===m.MERGE&&e.id!==t.parents[0]&&(x=C.get(e.branch)?.index);let u;if(l){f="A 10 10, 0, 0, 0,",g="A 10 10, 0, 0, 1,",$=10,c=10;const p=n.y<a.y?P(n.y,a.y):P(a.y,n.y),b=n.x<a.x?P(n.x,a.x):P(a.x,n.x);y==="TB"?n.x<a.x?u=`M ${n.x} ${n.y} L ${b-$} ${n.y} ${g} ${b} ${n.y+c} L ${b} ${a.y-$} ${f} ${b+c} ${a.y} L ${a.x} ${a.y}`:(x=C.get(e.branch)?.index,u=`M ${n.x} ${n.y} L ${b+$} ${n.y} ${f} ${b} ${n.y+c} L ${b} ${a.y-$} ${g} ${b-c} ${a.y} L ${a.x} ${a.y}`):y==="BT"?n.x<a.x?u=`M ${n.x} ${n.y} L ${b-$} ${n.y} ${f} ${b} ${n.y-c} L ${b} ${a.y+$} ${g} ${b+c} ${a.y} L ${a.x} ${a.y}`:(x=C.get(e.branch)?.index,u=`M ${n.x} ${n.y} L ${b+$} ${n.y} ${g} ${b} ${n.y-c} L ${b} ${a.y+$} ${f} ${b-c} ${a.y} L ${a.x} ${a.y}`):n.y<a.y?u=`M ${n.x} ${n.y} L ${n.x} ${p-$} ${f} ${n.x+c} ${p} L ${a.x-$} ${p} ${g} ${a.x} ${p+c} L ${a.x} ${a.y}`:(x=C.get(e.branch)?.index,u=`M ${n.x} ${n.y} L ${n.x} ${p+$} ${g} ${n.x+c} ${p} L ${a.x-$} ${p} ${f} ${a.x} ${p-c} L ${a.x} ${a.y}`)}else f="A 20 20, 0, 0, 0,",g="A 20 20, 0, 0, 1,",$=20,c=20,y==="TB"?(n.x<a.x&&(t.type===m.MERGE&&e.id!==t.parents[0]?u=`M ${n.x} ${n.y} L ${n.x} ${a.y-$} ${f} ${n.x+c} ${a.y} L ${a.x} ${a.y}`:u=`M ${n.x} ${n.y} L ${a.x-$} ${n.y} ${g} ${a.x} ${n.y+c} L ${a.x} ${a.y}`),n.x>a.x&&(f="A 20 20, 0, 0, 0,",g="A 20 20, 0, 0, 1,",$=20,c=20,t.type===m.MERGE&&e.id!==t.parents[0]?u=`M ${n.x} ${n.y} L ${n.x} ${a.y-$} ${g} ${n.x-c} ${a.y} L ${a.x} ${a.y}`:u=`M ${n.x} ${n.y} L ${a.x+$} ${n.y} ${f} ${a.x} ${n.y+c} L ${a.x} ${a.y}`),n.x===a.x&&(u=`M ${n.x} ${n.y} L ${a.x} ${a.y}`)):y==="BT"?(n.x<a.x&&(t.type===m.MERGE&&e.id!==t.parents[0]?u=`M ${n.x} ${n.y} L ${n.x} ${a.y+$} ${g} ${n.x+c} ${a.y} L ${a.x} ${a.y}`:u=`M ${n.x} ${n.y} L ${a.x-$} ${n.y} ${f} ${a.x} ${n.y-c} L ${a.x} ${a.y}`),n.x>a.x&&(f="A 20 20, 0, 0, 0,",g="A 20 20, 0, 0, 1,",$=20,c=20,t.type===m.MERGE&&e.id!==t.parents[0]?u=`M ${n.x} ${n.y} L ${n.x} ${a.y+$} ${f} ${n.x-c} ${a.y} L ${a.x} ${a.y}`:u=`M ${n.x} ${n.y} L ${a.x+$} ${n.y} ${g} ${a.x} ${n.y-c} L ${a.x} ${a.y}`),n.x===a.x&&(u=`M ${n.x} ${n.y} L ${a.x} ${a.y}`)):(n.y<a.y&&(t.type===m.MERGE&&e.id!==t.parents[0]?u=`M ${n.x} ${n.y} L ${a.x-$} ${n.y} ${g} ${a.x} ${n.y+c} L ${a.x} ${a.y}`:u=`M ${n.x} ${n.y} L ${n.x} ${a.y-$} ${f} ${n.x+c} ${a.y} L ${a.x} ${a.y}`),n.y>a.y&&(t.type===m.MERGE&&e.id!==t.parents[0]?u=`M ${n.x} ${n.y} L ${a.x-$} ${n.y} ${f} ${a.x} ${n.y-c} L ${a.x} ${a.y}`:u=`M ${n.x} ${n.y} L ${n.x} ${a.y+$} ${g} ${n.x+c} ${a.y} L ${a.x} ${a.y}`),n.y===a.y&&(u=`M ${n.x} ${n.y} L ${a.x} ${a.y}`));if(u===void 0)throw new Error("Line definition not found");r.append("path").attr("d",u).attr("class","arrow arrow"+H(x,G,i))},"drawArrow"),$e=h((r,e)=>{const t=r.append("g").attr("class","commit-arrows");[...e.keys()].forEach(s=>{const o=e.get(s);o.parents&&o.parents.length>0&&o.parents.forEach(i=>{he(t,e.get(i),o,e)})})},"drawArrows"),fe=h((r,e,t,s)=>{const{look:o,theme:i,themeVariables:n}=W(),{dropShadow:a,THEME_COLOR_LIMIT:l}=n,f=j.has(i??""),g=Z.has(i??""),$=r.append("g");e.forEach((c,x)=>{const u=H(x,f?l:G,g),p=C.get(c.name)?.pos;if(p===void 0)throw new Error(`Position not found for branch ${c.name}`);const b=y==="TB"||y==="BT"?p:f?p+X/2+1:p-2,k=$.append("line");k.attr("x1",0),k.attr("y1",b),k.attr("x2",I),k.attr("y2",b),k.attr("class","branch branch"+u),y==="TB"?(k.attr("y1",F),k.attr("x1",p),k.attr("y2",I),k.attr("x2",p)):y==="BT"&&(k.attr("y1",I),k.attr("x1",p),k.attr("y2",F),k.attr("x2",p)),z.push(b);const U=c.name,D=or(U),T=$.insert("rect"),M=$.insert("g").attr("class","branchLabel").insert("g").attr("class","label branch-label"+u);M.node().appendChild(D);const v=D.getBBox(),rr=f?0:4,N=f?16:0,A=f?X:0;o==="neo"&&T.attr("data-look","neo"),T.attr("class","branchLabelBkg label"+u).attr("style",o==="neo"?`filter:${f?`url(#${s}-drop-shadow)`:a}`:"").attr("rx",rr).attr("ry",rr).attr("x",-v.width-4-(t.rotateCommitLabel===!0?30:0)).attr("y",-v.height/2+10).attr("width",v.width+18+N).attr("height",v.height+4+A),M.attr("transform","translate("+(-v.width-14-(t.rotateCommitLabel===!0?30:0)+N/2)+", "+(b-v.height/2-2)+")"),y==="TB"?(T.attr("x",p-v.width/2-10).attr("y",0),M.attr("transform","translate("+(p-v.width/2-5)+", 0)"),f&&(T.attr("transform",`translate(${-N/2-3}, ${-A-10})`),M.attr("transform","translate("+(p-v.width/2-5)+", "+(-A*2+7)+")"))):y==="BT"?(T.attr("x",p-v.width/2-10).attr("y",I),M.attr("transform","translate("+(p-v.width/2-5)+", "+I+")"),f&&(T.attr("transform",`translate(${-N/2-3}, ${A+10})`),M.attr("transform","translate("+(p-v.width/2-5)+", "+(I+A*2+4)+")"))):T.attr("transform","translate(-19, "+(b-12-A/2)+")")})},"drawBranches"),ge=h(function(r,e,t,s,o){return C.set(r,{pos:e,index:t}),e+=50+(o?40:0)+(y==="TB"||y==="BT"?s.width/2:0),e},"setBranchPosition"),ue=h(function(r,e,t,s){Jr(),w.debug("in gitgraph renderer",r+`
14
- `,"id:",e,t);const o=s.db;if(!o.getConfig){w.error("getConfig method is not available on db");return}const i=o.getConfig(),n=i.rotateCommitLabel??!1;q=o.getCommits();const a=o.getBranchesAsObjArray();y=o.getDirection();const l=Er(`[id="${e}"]`),{look:f,theme:g,themeVariables:$}=W(),{useGradient:c,gradientStart:x,gradientStop:u,filterColor:p}=$;if(c){const k=l.append("defs").append("linearGradient").attr("id",e+"-gradient").attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");k.append("stop").attr("offset","0%").attr("stop-color",x).attr("stop-opacity",1),k.append("stop").attr("offset","100%").attr("stop-color",u).attr("stop-opacity",1)}f==="neo"&&j.has(g??"")&&l.append("defs").append("filter").attr("id",e+"-drop-shadow").attr("height","130%").attr("width","130%").append("feDropShadow").attr("dx","4").attr("dy","4").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",p);let b=0;a.forEach((k,U)=>{const D=or(k.name),T=l.append("g"),K=T.insert("g").attr("class","branchLabel"),M=K.insert("g").attr("class","label branch-label");M.node()?.appendChild(D);const v=D.getBBox();b=ge(k.name,b,U,v,n),M.remove(),K.remove(),T.remove()}),er(l,q,!1,i),i.showBranches&&fe(l,a,i,e),$e(l,q),er(l,q,!0,i),mr.insertTitle(l,"gitTitleText",i.titleTopMargin??0,o.getDiagramTitle()),pr(void 0,l,i.diagramPadding,i.useMaxWidth)},"draw"),ye={draw:ue},ir=8,dr=new Set(["redux","redux-dark","redux-color","redux-dark-color"]),xe=new Set(["redux-color","redux-dark-color"]),me=new Set(["neo","neo-dark"]),pe=new Set(["dark","redux-dark","redux-dark-color","neo-dark"]),be=new Set(["redux","redux-dark","redux-color","redux-dark-color","neo","neo-dark"]),we=h(r=>{const{svgId:e}=r;let t="";if(r.useGradient&&e)for(let s=0;s<r.THEME_COLOR_LIMIT;s++)t+=`
15
- .label${s} { fill: ${r.mainBkg}; stroke: url(${e}-gradient); stroke-width: ${r.strokeWidth};}
16
- `;return t},"genGitGraphGradient"),ke=h(r=>{const e=J(),{theme:t,themeVariables:s}=e,{borderColorArray:o}=s,i=dr.has(t);if(me.has(t)){let n="";for(let a=0;a<r.THEME_COLOR_LIMIT;a++)if(a===0)n+=`
17
- .branch-label${a} { fill: ${r.nodeBorder};}
18
- .commit${a} { stroke: ${r.nodeBorder}; }
19
- .commit-highlight${a} { stroke: ${r.nodeBorder}; fill: ${r.nodeBorder}; }
20
- .arrow${a} { stroke: ${r.nodeBorder}; }
21
- .commit-bullets { fill: ${r.nodeBorder}; }
22
- .commit-cherry-pick${a} { stroke: ${r.nodeBorder}; }
23
- ${we(r)}`;else{const l=a%ir;n+=`
24
- .branch-label${a} { fill: ${r["gitBranchLabel"+l]}; }
25
- .commit${a} { stroke: ${r["git"+l]}; fill: ${r["git"+l]}; }
26
- .commit-highlight${a} { stroke: ${r["gitInv"+l]}; fill: ${r["gitInv"+l]}; }
27
- .arrow${a} { stroke: ${r["git"+l]}; }
28
- `}return n}else if(xe.has(t)){let n="";for(let a=0;a<r.THEME_COLOR_LIMIT;a++)if(a===0)n+=`
29
- .branch-label${a} { fill: ${r.nodeBorder}; ${i?`font-weight:${r.noteFontWeight}`:""} }
30
- .commit${a} { stroke: ${r.nodeBorder}; }
31
- .commit-highlight${a} { stroke: ${r.nodeBorder}; fill: ${r.mainBkg}; }
32
- .label${a} { fill: ${r.mainBkg}; stroke: ${r.nodeBorder}; stroke-width: ${r.strokeWidth}; ${i?`font-weight:${r.noteFontWeight}`:""} }
33
- .arrow${a} { stroke: ${r.nodeBorder}; }
34
- .commit-bullets { fill: ${r.nodeBorder}; }
35
- `;else{const l=a%o.length;n+=`
36
- .branch-label${a} { fill: ${r.nodeBorder}; ${i?`font-weight:${r.noteFontWeight}`:""} }
37
- .commit${a} { stroke: ${o[l]}; fill: ${o[l]}; }
38
- .commit-highlight${a} { stroke: ${o[l]}; fill: ${o[l]}; }
39
- .label${a} { fill: ${pe.has(t)?r.mainBkg:o[l]}; stroke: ${o[l]}; stroke-width: ${r.strokeWidth}; }
40
- .arrow${a} { stroke: ${o[l]}; }
41
- `}return n}else{let n="";for(let a=0;a<r.THEME_COLOR_LIMIT;a++)n+=`
42
- .branch-label${a} { fill: ${r.nodeBorder}; ${i?`font-weight:${r.noteFontWeight}`:""} }
43
- .commit${a} { stroke: ${r.nodeBorder}; }
44
- .commit-highlight${a} { stroke: ${r.nodeBorder}; fill: ${r.nodeBorder}; }
45
- .label${a} { fill: ${r.mainBkg}; stroke: ${r.nodeBorder}; stroke-width: ${r.strokeWidth}; ${i?`font-weight:${r.noteFontWeight}`:""}}
46
- .arrow${a} { stroke: ${r.nodeBorder}; }
47
- .commit-bullets { fill: ${r.nodeBorder}; }
48
- .commit-cherry-pick${a} { stroke: ${r.nodeBorder}; }
49
- `;return n}},"genColor"),ve=h(r=>`${Array.from({length:r.THEME_COLOR_LIMIT},(e,t)=>t).map(e=>{const t=e%ir;return`
50
- .branch-label${e} { fill: ${r["gitBranchLabel"+t]}; }
51
- .commit${e} { stroke: ${r["git"+t]}; fill: ${r["git"+t]}; }
52
- .commit-highlight${e} { stroke: ${r["gitInv"+t]}; fill: ${r["gitInv"+t]}; }
53
- .label${e} { fill: ${r["git"+t]}; }
54
- .arrow${e} { stroke: ${r["git"+t]}; }
55
- `}).join(`
56
- `)}`,"normalTheme"),Ce=h(r=>{const e=J(),{theme:t}=e,s=be.has(t);return`
57
- .commit-id,
58
- .commit-msg,
59
- .branch-label {
60
- fill: lightgrey;
61
- color: lightgrey;
62
- font-family: 'trebuchet ms', verdana, arial, sans-serif;
63
- font-family: var(--mermaid-font-family);
64
- }
65
-
66
- ${s?ke(r):ve(r)}
67
-
68
- .branch {
69
- stroke-width: ${r.strokeWidth};
70
- stroke: ${r.commitLineColor??r.lineColor};
71
- stroke-dasharray: ${s?"4 2":"2"};
72
- }
73
- .commit-label { font-size: ${r.commitLabelFontSize}; fill: ${s?r.nodeBorder:r.commitLabelColor}; ${s?`font-weight:${r.noteFontWeight};`:""}}
74
- .commit-label-bkg { font-size: ${r.commitLabelFontSize}; fill: ${s?"transparent":r.commitLabelBackground}; opacity: ${s?"":.5}; }
75
- .tag-label { font-size: ${r.tagLabelFontSize}; fill: ${r.tagLabelColor};}
76
- .tag-label-bkg { fill: ${s?r.mainBkg:r.tagLabelBackground}; stroke: ${s?r.nodeBorder:r.tagLabelBorder}; ${s?`filter:${r.dropShadow}`:""} }
77
- .tag-hole { fill: ${r.textColor}; }
78
-
79
- .commit-merge {
80
- stroke: ${s?r.mainBkg:r.primaryColor};
81
- fill: ${s?r.mainBkg:r.primaryColor};
82
- }
83
- .commit-reverse {
84
- stroke: ${s?r.mainBkg:r.primaryColor};
85
- fill: ${s?r.mainBkg:r.primaryColor};
86
- stroke-width: ${s?r.strokeWidth:3};
87
- }
88
- .commit-highlight-outer {
89
- }
90
- .commit-highlight-inner {
91
- stroke: ${s?r.mainBkg:r.primaryColor};
92
- fill: ${s?r.mainBkg:r.primaryColor};
93
- }
94
-
95
- .arrow {
96
- /* Intentional: neo themes keep the bold 8px arrow (like classic themes); only redux-geometry themes use the thinner options.strokeWidth. */
97
- stroke-width: ${dr.has(t)?r.strokeWidth:8};
98
- stroke-linecap: round;
99
- fill: none
100
- }
101
- .gitTitleText {
102
- text-anchor: middle;
103
- font-size: 18px;
104
- fill: ${r.textColor};
105
- }
106
- `},"getStyles"),Ee=Ce,Ne={parser:Vr,db:sr,renderer:ye,styles:Ee};export{Ne as diagram};
@@ -1,2 +0,0 @@
1
- import{_ as a,l as o,D as p,d as s}from"./index-BaBNw6X5.js";import{p as n}from"./cynefin-OW5HDTMX-D8Lw5okC.js";import"../datalayer-app-main.js";import"./index-MIxQaicl.js";import"./color-CG7_7V2-.js";import"./index-atSsKceW.js";import"./fastdom-promised-BMVBoXkp.js";import"./line-DUjWPDRX.js";import"./array-BKyUJesY.js";import"./path-CbwjOpE9.js";import"./_baseRest-BmxuuM4H.js";import"./isSymbol-BLtK9CV6.js";import"./forEach-hknrtmxV.js";import"./isUndefined-wBqHC1Hw.js";var m={parse:a(async r=>{const t=await n("info",r);o.debug(t)},"parse")},g={version:"11.17.2"},d=a(()=>g.version,"getVersion"),v={getVersion:d},c=a((r,t,i)=>{o.debug(`rendering info diagram
2
- `+r);const e=p(t);s(e,100,400,!0),e.append("g").append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size",32).style("text-anchor","middle").text(`v${i}`)},"draw"),l={draw:c},B={parser:m,db:v,renderer:l};export{B as diagram};
@@ -1 +0,0 @@
1
- import{g as m,r as p,d as a}from"./chunk-SVP7TREG-ERRaAh-x.js";import{p as l}from"./chunk-JWPE2WC7-BIShIUcJ.js";import{_ as t,l as o}from"./index-BaBNw6X5.js";import"./index-MIxQaicl.js";import{M as u,d as c}from"./cynefin-OW5HDTMX-D8Lw5okC.js";import"../datalayer-app-main.js";import"./fastdom-promised-BMVBoXkp.js";import"./line-DUjWPDRX.js";import"./array-BKyUJesY.js";import"./path-CbwjOpE9.js";import"./_baseRest-BmxuuM4H.js";import"./isSymbol-BLtK9CV6.js";import"./forEach-hknrtmxV.js";import"./isUndefined-wBqHC1Hw.js";import"./color-CG7_7V2-.js";import"./index-atSsKceW.js";var f=c().RailroadPeg.parser.LangiumParser,i=t(e=>{const r=e.alternatives.map(d);return r.length===1?r[0]:{type:"choice",alternatives:r}},"transformOrderedChoice"),d=t(e=>{const r=e.elements.map(P);return r.length===1?r[0]:{type:"sequence",elements:r}},"transformSequence"),P=t(e=>{const r=g(e.suffix);return e.operator?{type:"special",text:e.operator==="&"?`&${s(r)}`:`!${s(r)}`}:r},"transformPrefix"),s=t(e=>{switch(e.type){case"terminal":return`"${e.value}"`;case"nonterminal":return e.name;case"special":return e.text;default:return"(...)"}},"nodeToLabel"),g=t(e=>{const r=v(e.primary);if(!e.operator)return r;switch(e.operator){case"?":return{type:"optional",element:r};case"*":return{type:"repetition",element:r,min:0,max:1/0};case"+":return{type:"repetition",element:r,min:1,max:1/0};default:throw new Error(`Unsupported PEG suffix operator: ${e.operator}`)}},"transformSuffix"),v=t(e=>{switch(e.$type){case"PegLiteral":return{type:"terminal",value:e.value};case"PegIdentifier":return{type:"nonterminal",name:e.name};case"PegGroup":return i(e.element);case"PegAny":return{type:"special",text:e.dot};default:throw new Error(`Unsupported PEG primary node: ${e.$type}`)}},"transformPrimary"),y=t(e=>({name:e.name,definition:i(e.definition)}),"transformRule"),h=t(e=>{l(e,a),e.title&&a.setTitle(e.title),e.rules.map(r=>a.addRule(y(r)))},"populateDb"),b={parse:t(e=>{a.clear(),o.debug("[PEG Parser] Starting Langium parse");const r=f.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new u(r);const n=r.value;o.debug("[PEG Parser] Parsed rules:",n.rules.length),h(n),o.debug("[PEG Parser] Parse complete")},"parse"),parser:{yy:a}},U={parser:b,db:a,renderer:p,styles:m};export{U as diagram};
@@ -1 +0,0 @@
1
- import{g as s,r as l,d as t}from"./chunk-SVP7TREG-ERRaAh-x.js";import{p as m}from"./chunk-JWPE2WC7-BIShIUcJ.js";import{_ as i,l as o}from"./index-BaBNw6X5.js";import"./index-MIxQaicl.js";import{M as p,c as u}from"./cynefin-OW5HDTMX-D8Lw5okC.js";import"../datalayer-app-main.js";import"./fastdom-promised-BMVBoXkp.js";import"./line-DUjWPDRX.js";import"./array-BKyUJesY.js";import"./path-CbwjOpE9.js";import"./_baseRest-BmxuuM4H.js";import"./isSymbol-BLtK9CV6.js";import"./forEach-hknrtmxV.js";import"./isUndefined-wBqHC1Hw.js";import"./color-CG7_7V2-.js";import"./index-atSsKceW.js";var d=u().Railroad.parser.LangiumParser,a=i(e=>{switch(e.$type){case"RailroadTerminalExpr":return{type:"terminal",value:e.value};case"RailroadNonTerminalExpr":return{type:"nonterminal",name:e.name};case"RailroadSpecialExpr":return{type:"special",text:e.text};case"RailroadSequenceExpr":{const r=e.elements.map(a);return r.length===1?r[0]:{type:"sequence",elements:r}}case"RailroadChoiceExpr":{const r=e.alternatives.map(a);return r.length===1?r[0]:{type:"choice",alternatives:r}}case"RailroadOptionalExpr":return{type:"optional",element:a(e.element)};case"RailroadOneOrMoreExpr":return{type:"repetition",element:a(e.element),min:1,max:1/0};case"RailroadZeroOrMoreExpr":return{type:"repetition",element:a(e.element),min:0,max:1/0};default:throw new Error(`Unsupported railroad expression: ${e.$type}`)}},"transformExpression"),c=i(e=>({name:e.name,definition:a(e.definition)}),"transformRule"),g=i(e=>{m(e,t),e.title&&t.setTitle(e.title),e.rules.map(r=>t.addRule(c(r)))},"populateDb"),y={parse:i(e=>{t.clear(),o.debug("[Railroad Parser] Starting Langium parse");const r=d.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new p(r);const n=r.value;o.debug("[Railroad Parser] Parsed rules:",n.rules.length),g(n),o.debug("[Railroad Parser] Parse complete")},"parse"),parser:{yy:t}},q={parser:y,db:t,renderer:l,styles:s};export{q as diagram};
@@ -1 +0,0 @@
1
- import{_ as o}from"./index-BaBNw6X5.js";import"../datalayer-app-main.js";import"./index-MIxQaicl.js";import"./color-CG7_7V2-.js";import"./index-atSsKceW.js";import"./fastdom-promised-BMVBoXkp.js";import"./line-DUjWPDRX.js";import"./array-BKyUJesY.js";import"./path-CbwjOpE9.js";import"./_baseRest-BmxuuM4H.js";import"./isSymbol-BLtK9CV6.js";import"./forEach-hknrtmxV.js";import"./isUndefined-wBqHC1Hw.js";var s=1;function n(){if(!(typeof globalThis>"u"))return globalThis}o(n,"getCaptureGlobal");function m(){return!!n()?.mermaidCaptureSizes}o(m,"shouldCaptureSizes");function u(){return typeof location>"u"?"browser-dev":`${location.pathname}${location.search}`}o(u,"capturedFromLocation");function p(r,i){const t=n();if(!t)return;const e=i.node(),d=((e&&"ownerSVGElement"in e?e.ownerSVGElement:null)??e)?.id??"(unknown)";t.mermaidCapturedSizes??=[];const a={svgId:d,sizes:r};t.mermaidCapturedSizes.push(a),t.mermaidLastCapturedSizes=a}o(p,"emitCapturedSizes");function c(r,i){const t=[];for(const e of i.nodes)e.isGroup||t.push({id:e.id,width:e.width??0,height:e.height??0});t.length!==0&&p({metadata:{captureVersion:s,capturedAt:new Date().toISOString(),capturedFrom:u()},nodes:t},r)}o(c,"captureNodeSizes");export{c as captureNodeSizes,m as shouldCaptureSizes};