@marimo-team/islands 0.25.3-dev4 → 0.25.3-dev402

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 (1090) hide show
  1. package/dist/{ConnectedDataExplorerComponent-CNSxdKyJ.js → ConnectedDataExplorerComponent-1DGGwl88.js} +188 -212
  2. package/dist/{ErrorBoundary-CuU5CuVr.js → ErrorBoundary-DfbzIKA3.js} +79 -85
  3. package/dist/{ImageComparisonComponent-uU8FSKZE.js → ImageComparisonComponent-CoiwlCwG.js} +20 -20
  4. package/dist/{Plot-DdYOe1UK.js → Plot-BHJLG4xm.js} +2474 -3107
  5. package/dist/_baseSet-Bd5zh2yg.js +327 -0
  6. package/dist/{abnfDiagram-VCTEODGH-DQDjNXt3.js → abnfDiagram-VCTEODGH-l39MiVXs.js} +5 -5
  7. package/dist/any-language-editor-DQDRMEv4.js +75 -0
  8. package/dist/{apl-GEW9-ZP1.js → apl-stFrI2NB.js} +1 -1
  9. package/dist/{arc-7ra3iNdN.js → arc-4W6H62B5.js} +1 -1
  10. package/dist/architecture-7GRP2DOG-GlkXha5_.js +2 -0
  11. package/dist/{architectureDiagram-5GKGNRK7-Nmls7Wxn.js → architectureDiagram-5GKGNRK7-BFUiBUSa.js} +48 -64
  12. package/dist/{arrays-CN1djC4k.js → arrays-DoQ-AILx.js} +15 -27
  13. package/dist/{asciiarmor-BWNxzkG7.js → asciiarmor-DHwFuaIC.js} +1 -1
  14. package/dist/{asn1-Bcn2QutK.js → asn1-KIH4fwAq.js} +1 -1
  15. package/dist/assertNever-DXGfUmPW.js +507 -0
  16. package/dist/assets/__vite-browser-external-C9HF3uHE.js +1 -0
  17. package/dist/assets/worker-B4Cpvr8b.js +171 -0
  18. package/dist/{blockDiagram-I7D4REHJ-Cg25UrxT.js → blockDiagram-I7D4REHJ-BoCyD5KO.js} +28 -39
  19. package/dist/{brainfuck-BQCYDheZ.js → brainfuck-UPAij4U9.js} +1 -1
  20. package/dist/{button-CvjkwdSk.js → button-qQhINE7z.js} +64 -64
  21. package/dist/{c4Diagram-7LVT6UL2-BxFgrnNV.js → c4Diagram-7LVT6UL2-DmcTtm4p.js} +8 -8
  22. package/dist/{capabilities-CQ5IjhzL.js → capabilities-DKqMqBzm.js} +2 -2
  23. package/dist/{channel-CPObtJXj.js → channel-B9eaiezW.js} +1 -1
  24. package/dist/{chat-ui-BDpymeoe.js → chat-ui-r3PPIMn0.js} +2524 -2363
  25. package/dist/{check-EDwSwP89.js → check-ywinAQy6.js} +1 -1
  26. package/dist/{chunk-4HAMMTFA-D4eFPyFh.js → chunk-4HAMMTFA-qKgadZwy.js} +6 -6
  27. package/dist/{chunk-75Z2AOVW-D7gxIs2Q.js → chunk-75Z2AOVW-76L6My3P.js} +4 -4
  28. package/dist/{chunk-YOKDWASO-DPZk8vhS.js → chunk-7TTQLYRW-DBSfUUe5.js} +6270 -5852
  29. package/dist/{chunk-DU6HZSFF-BwiyaNpg.js → chunk-DU6HZSFF-4SDIhUTY.js} +14 -22
  30. package/dist/{chunk-F27PBJKO-ufseIn5y.js → chunk-F27PBJKO-COH2t-FO.js} +3 -3
  31. package/dist/{chunk-FOHPRMQF-BpYR8RqP.js → chunk-FOHPRMQF-ezmr_yWy.js} +49 -58
  32. package/dist/{chunk-GMAD6QVW-BhaJx0X3.js → chunk-GMAD6QVW-BJGF8QZL.js} +16 -75
  33. package/dist/{chunk-GVQU2GXP-Cwbt-lF0.js → chunk-GVQU2GXP-BkolpSXU.js} +3 -3
  34. package/dist/{chunk-IMKFNOWR-CoIFEo-1.js → chunk-IMKFNOWR-k1HEOYUA.js} +8 -8
  35. package/dist/{chunk-L3NEJ4N5-n-zgIVSy.js → chunk-L3NEJ4N5-B-BFQp9t.js} +6 -6
  36. package/dist/{chunk-OSK3NFVY-DXa-Cxbn.js → chunk-OSK3NFVY-BzfZ4VBG.js} +8 -8
  37. package/dist/{chunk-P2QGCYS3-B_Zd3-X0.js → chunk-P2QGCYS3-DJApLVdt.js} +1 -1
  38. package/dist/{chunk-POPQ4Y6H-hYOXbYH_.js → chunk-POPQ4Y6H-BFSZel4w.js} +2 -2
  39. package/dist/{chunk-PWAF6VOD-CQw5qATZ.js → chunk-PWAF6VOD-CRu_RGP2.js} +2 -2
  40. package/dist/{chunk-SHT3W25Y-lHiGx3ZC.js → chunk-SHT3W25Y-CweI43DY.js} +10 -10
  41. package/dist/{chunk-SVP7TREG-BvsHIrY_.js → chunk-SVP7TREG-BJ_CiOqc.js} +3 -3
  42. package/dist/{chunk-TICWLB2K-BC8YIm_n.js → chunk-TICWLB2K-CftJEXJk.js} +10 -10
  43. package/dist/{chunk-XXDRQBXY-Dnl5VBqG.js → chunk-XXDRQBXY-BM-YIt-_.js} +1 -1
  44. package/dist/classDiagram-ZZMXUADV-DRtsA53t.js +30 -0
  45. package/dist/classDiagram-v2-VYDZK3BY-B-un7YsQ.js +30 -0
  46. package/dist/{clike-CxK9W55Z.js → clike-xU8sCVU1.js} +2 -6
  47. package/dist/{clojure-Dzcvwpxk.js → clojure-psoSEo36.js} +1 -1
  48. package/dist/{cmake-DYr-71zp.js → cmake-DDHBwlE7.js} +1 -1
  49. package/dist/{cobol-DC3g37Kq.js → cobol-C4qjDcIq.js} +1 -1
  50. package/dist/code-visibility-CXijswY7.js +130 -0
  51. package/dist/{coffeescript-C-eFwH5N.js → coffeescript-D6UgrGgo.js} +1 -1
  52. package/dist/{common-DiWGWDIM.js → common-Cm5ENbUw.js} +12213 -11268
  53. package/dist/{commonlisp-CyaNXrJR.js → commonlisp-B0ChVjnu.js} +1 -1
  54. package/dist/{compiler-runtime-CldRdSsv.js → compiler-runtime-C5KHtL5D.js} +3 -3
  55. package/dist/{toDate-BNJf01u1.js → config-DOwBtRkI.js} +99 -184
  56. package/dist/{copy-icon-Ft7t9bqz.js → copy-icon-BKcX0ltw.js} +21 -22
  57. package/dist/{cose-bilkent-JH36ORCC-_LyRKVqm.js → cose-bilkent-JH36ORCC-B_Oz4vMP.js} +58 -71
  58. package/dist/createReducer-Bjx6kuxh.js +67 -0
  59. package/dist/{crystal-ih5ax5tQ.js → crystal-DZsc9Ue0.js} +1 -1
  60. package/dist/{css-CN_wP7_R.js → css-DkYRnQ9U.js} +1 -1
  61. package/dist/{cubic-OaEBhQPK.js → cubic-CA80xY_e.js} +6 -7
  62. package/dist/cynefin-OW5HDTMX-0-HehVvH.js +2 -0
  63. package/dist/{cynefinDiagram-5FMLGOSQ-CgWra7wt.js → cynefinDiagram-5FMLGOSQ-3YzyEvsv.js} +5 -5
  64. package/dist/{cypher-CqGRcmZo.js → cypher-CpWPqgvy.js} +1 -1
  65. package/dist/{cytoscape.esm-jJhXJpLB.js → cytoscape.esm-BbeMznK5.js} +411 -512
  66. package/dist/{d-Cj0sOW2z.js → d-Bx2ggfYO.js} +1 -1
  67. package/dist/{dagre-BGSfXNEb.js → dagre-CpjuekF1.js} +550 -700
  68. package/dist/{dagre-GXQ25YYZ-CFZ8-35c.js → dagre-GXQ25YYZ-esvnOmLF.js} +14 -16
  69. package/dist/{data-grid-overlay-editor-ga7ytgbj.js → data-grid-overlay-editor-Dv0TkGKt.js} +8 -8
  70. package/dist/{data-grid-types-BH_r7g7l.js → data-grid-types-DIX_pCco.js} +2 -2
  71. package/dist/{debounce-C3jyATpc.js → debounce-DrhhziJv.js} +2 -2
  72. package/dist/{diagram-S7CK7UJ4-lCNQrW7d.js → diagram-S7CK7UJ4-CX97G4Gc.js} +7 -15
  73. package/dist/{diagram-UQ7AKVKN-CQPQ6pP_.js → diagram-UQ7AKVKN-BL-50b0n.js} +5 -5
  74. package/dist/{diagram-VSXAHHWV-BJWcVVJY.js → diagram-VSXAHHWV-LXjisZoM.js} +6 -6
  75. package/dist/{diagram-VX7I27RA-Cf3b0llz.js → diagram-VX7I27RA-BsjelzlB.js} +7 -7
  76. package/dist/{diagram-Z3DM3KII-Bt4QLrpn.js → diagram-Z3DM3KII-BB9bWIyB.js} +5 -5
  77. package/dist/{dialog-CEBFZNyc.js → dialog-mwa6XN15.js} +30 -30
  78. package/dist/{diff-B_hUkiat.js → diff-DNXaJS8v.js} +1 -1
  79. package/dist/{dist-Bvs24R_E.js → dist-B1qu3Bez.js} +55 -54
  80. package/dist/{dist-D-wwqlzJ.js → dist-BEcpQbZa.js} +78 -77
  81. package/dist/{dist-CrSP_H1M.js → dist-BMz__bo5.js} +317 -317
  82. package/dist/{dist-Cg7gzw-a.js → dist-BagHbFqG.js} +70 -69
  83. package/dist/{dist-C8fAKSH1.js → dist-BdUitvVW.js} +65 -64
  84. package/dist/{dist-BuaRHxOc.js → dist-BfrgytDR.js} +45 -44
  85. package/dist/{dist-CSJ0MDRw.js → dist-BozTF_gH.js} +56 -55
  86. package/dist/{dist-DiDibOYr.js → dist-BreKIQqQ.js} +149 -148
  87. package/dist/{dist-CN8zI-XC.js → dist-BsE4gQHj.js} +555 -555
  88. package/dist/{dist-F8Ep36rk.js → dist-BunZKA_9.js} +60 -59
  89. package/dist/dist-BvZpdAuG.js +850 -0
  90. package/dist/{dist-DUAh96QY.js → dist-CB9MzCXv.js} +1 -1
  91. package/dist/{dist-BK4Oj99o.js → dist-CDVvitRS.js} +18 -17
  92. package/dist/{dist-CN_BeG2I.js → dist-CEomphG1.js} +59 -58
  93. package/dist/{dist-BMQf5zIS.js → dist-ChcBm3jk.js} +166 -165
  94. package/dist/{dist-DpBpA_n1.js → dist-CiSkXlAO.js} +5 -5
  95. package/dist/{dist-D6d86eNJ.js → dist-Cshl6jBw.js} +46 -45
  96. package/dist/{dist-DBtSl3sf.js → dist-D1D56-GS.js} +54 -56
  97. package/dist/{dist-DoE4XJBC.js → dist-D92tYjLc.js} +9845 -10688
  98. package/dist/{dist-OR1OnN-y.js → dist-D95Cd4xm.js} +53 -52
  99. package/dist/{dist-BorMD-uX.js → dist-DNkrY12t.js} +94 -93
  100. package/dist/{dist-BLfKmR-l.js → dist-DneeBk3K.js} +18 -17
  101. package/dist/{dist-diIx5qJW.js → dist-DpYpG8Yc.js} +37 -36
  102. package/dist/{dist-CkTTIdBe.js → dist-MggMo7OR.js} +243 -243
  103. package/dist/{dist-PXYI_yuP.js → dist-ObeTgSmf.js} +27 -26
  104. package/dist/{dist-CLdpGQVr.js → dist-OmeAz0fR.js} +114 -116
  105. package/dist/{dist-CSbh1PNP.js → dist-TGSwzj8a.js} +26 -25
  106. package/dist/dropdown-menu-CmgUseHo.js +5982 -0
  107. package/dist/{dtd-B8FGSWWe.js → dtd-D1YZQCVT.js} +1 -1
  108. package/dist/duckdb-keywords-CdzX4o33.js +3 -0
  109. package/dist/{dylan-DbIBYIrw.js → dylan-CxbG-PUm.js} +2 -2
  110. package/dist/{ebnfDiagram-PWID7BFC-D3NAyPFY.js → ebnfDiagram-PWID7BFC-Lfkf8Ayx.js} +5 -5
  111. package/dist/{ecl-DBmkdWAd.js → ecl-DIXH6vul.js} +1 -1
  112. package/dist/{eiffel-CcWSDDzK.js → eiffel-D0de-eQr.js} +1 -1
  113. package/dist/{elm-MC-b8a6C.js → elm-DrQrn4VD.js} +1 -1
  114. package/dist/{erDiagram-RLTQ6QDP-Tlu09_Nm.js → erDiagram-RLTQ6QDP-DkF2kv2C.js} +14 -14
  115. package/dist/{erlang-AdO1-xtV.js → erlang-2KpKpfC7.js} +1 -1
  116. package/dist/{error-banner-Da600cwz.js → error-banner-CHPLqogX.js} +147 -142
  117. package/dist/error-entries-5kRrE4vX.js +2788 -0
  118. package/dist/{esm-D2gTsXEV.js → esm-B9n0caHs.js} +643 -644
  119. package/dist/{esm-AMFssoNp.js → esm-Bwp_FHP0.js} +331 -331
  120. package/dist/{esm-G4Fhsgng.js → esm-DQtHTnHn.js} +640 -660
  121. package/dist/eventmodeling-NTZA5JFV-DoBvB4Lj.js +2 -0
  122. package/dist/{factor-Ys-13HOP.js → factor-Bwu3ZGOk.js} +1 -1
  123. package/dist/feedback-button-Xk-mOev4.js +371 -0
  124. package/dist/flowDiagram-HODETNUW-CB8xo8zB.js +15 -0
  125. package/dist/{formats-BGh2thRc.js → formats-BDqe9cfr.js} +9 -9
  126. package/dist/{forth-DiMuIXFe.js → forth-DYatDpr6.js} +2 -3
  127. package/dist/{fortran-hkrF2eM4.js → fortran-n8mcQPkL.js} +1 -1
  128. package/dist/{ganttDiagram-EL5Y4UJY-BQT16JSc.js → ganttDiagram-EL5Y4UJY-YzTghq1V.js} +17 -17
  129. package/dist/{gas-DlhqN9k8.js → gas-BUZOHBVw.js} +1 -1
  130. package/dist/{gherkin-0SlhEZ3t.js → gherkin-CrSjX26K.js} +1 -1
  131. package/dist/gitGraph-4MIJSDKK-Ch7kj-d2.js +2 -0
  132. package/dist/{gitGraphDiagram-WWUBYQGX-D5nSIzdE.js → gitGraphDiagram-WWUBYQGX-CK66dT35.js} +4 -4
  133. package/dist/{glide-data-editor-Bv75MH6g.js → glide-data-editor-DdxBDWAj.js} +6732 -2978
  134. package/dist/{glide-utils-DJyqh0EM.js → glide-utils-DYKWS2YV.js} +109 -78
  135. package/dist/{globals-EDQGFIvi.js → globals-DR3VVkF6.js} +3 -3
  136. package/dist/{graphlib-BmY_CCV9.js → graphlib-nlwT3Wvy.js} +177 -220
  137. package/dist/{groovy-YhcTMyvX.js → groovy-IgGNjeU9.js} +1 -1
  138. package/dist/hasIn-C20JsQ2m.js +28 -0
  139. package/dist/{haskell-CodLxrtT.js → haskell-Bs1k3a9s.js} +1 -1
  140. package/dist/{haxe-CiRWNFkH.js → haxe-CQ8Yb3XF.js} +1 -1
  141. package/dist/highlighted-body-JLMTFACH-yt0ZZn80.js +42 -0
  142. package/dist/{cells-C8iCYvLU.js → html-to-image-Bor20n8N.js} +26205 -26250
  143. package/dist/{idl-DZgBq75I.js → idl-DjnxoAWx.js} +1 -1
  144. package/dist/info-A6RAGUB7-DCz_Egh9.js +2 -0
  145. package/dist/{infoDiagram-27XIBGKW-XrDxhr0x.js → infoDiagram-27XIBGKW-BGBIoY6a.js} +4 -4
  146. package/dist/isArrayLikeObject-B-HXCsex.js +626 -0
  147. package/dist/isEmpty-CdX7MTE1.js +14 -0
  148. package/dist/{ishikawaDiagram-5VMMS53U-CD1muzov.js → ishikawaDiagram-5VMMS53U-C3Q5F0f2.js} +5 -7
  149. package/dist/{javascript-BfNytHiM.js → javascript-BQtCoAFy.js} +2 -2
  150. package/dist/{journeyDiagram-3NMN7TZE-BaLqn-dZ.js → journeyDiagram-3NMN7TZE-CYXsL3IE.js} +4 -4
  151. package/dist/{jsx-runtime-3BD1kT0s.js → jsx-runtime-D8btoEHk.js} +2 -2
  152. package/dist/{julia--tLIAG7q.js → julia-BfgtHJE5.js} +1 -1
  153. package/dist/{kanban-definition-UXKFOSKX-Dg9W142_.js → kanban-definition-UXKFOSKX-goBRs99g.js} +10 -10
  154. package/dist/{katex-BIdZGsyO.js → katex-wAapZGrX.js} +793 -724
  155. package/dist/{linear-Cnaq3Tfb.js → linear-TJTTbHM9.js} +2 -3
  156. package/dist/{livescript-CVPfYnY_.js → livescript-gIdRPKtg.js} +1 -1
  157. package/dist/{loader-BQOfjTIJ.js → loader-Bin_dutt.js} +9 -9
  158. package/dist/lru-0OWJJMrW.js +41 -0
  159. package/dist/{lua-4Fa-T-qq.js → lua-CxFpWvnv.js} +2 -2
  160. package/dist/main.js +11073 -8518
  161. package/dist/{mathematica-CtYAy6GG.js → mathematica-QSveeEoW.js} +1 -1
  162. package/dist/{mbox-D0w9Ah1C.js → mbox-2JtaCPNT.js} +1 -1
  163. package/dist/{mermaid-CiAXjLpA.js → mermaid-CssvwR1C.js} +1195 -1182
  164. package/dist/mermaid-WFAXDIZX-DHB2z13u.js +1 -0
  165. package/dist/{mermaid-parser.core-DxuSfYwJ.js → mermaid-parser.core-DtOnl7m4.js} +19 -25
  166. package/dist/{mhchem-CdWPJK6g.js → mhchem-CX8M7Ktl.js} +1 -1
  167. package/dist/{micromark-factory-space-DGxAzmw8.js → micromark-factory-space-C5soVmaM.js} +1 -1
  168. package/dist/{mindmap-definition-YA3MSWOX-DgCidgYJ.js → mindmap-definition-YA3MSWOX-Do2TY53l.js} +13 -13
  169. package/dist/{mirc-De9aSAZM.js → mirc-BqD6ade4.js} +1 -1
  170. package/dist/{mllike-BbugeaY_.js → mllike-CT0hgEOO.js} +1 -1
  171. package/dist/{modelica-BjJwWw1F.js → modelica-DKKebcvq.js} +1 -1
  172. package/dist/{mscgen-DwiRH5ma.js → mscgen-BJCCsWjR.js} +1 -1
  173. package/dist/{mumps--plbDM9o.js → mumps-DVQAXZkU.js} +1 -1
  174. package/dist/{nginx-C4Df7REc.js → nginx-AP4LH2NN.js} +1 -1
  175. package/dist/{node-sql-parser-BiZOJ-FS.js → node-sql-parser-C9dndbfr.js} +7184 -7195
  176. package/dist/{now-jM8-M7IR.js → now-BKZCLE5P.js} +12 -13
  177. package/dist/{nsis-fiiOqLc3.js → nsis-Cah9xkdT.js} +1 -1
  178. package/dist/{ntriples-jV77I4k8.js → ntriples-CQoaLOV6.js} +2 -2
  179. package/dist/{number-overlay-editor-BCP3MxhC.js → number-overlay-editor-Cc5gJryh.js} +17 -22
  180. package/dist/{objects-CzUgoMIF.js → objects-DCmMvZtn.js} +1 -3
  181. package/dist/{octave-Cztd01tF.js → octave-CeDj2bTn.js} +1 -1
  182. package/dist/{once-BtE-wKRL.js → once-NnpX_HnX.js} +1 -1
  183. package/dist/{oz-Bl8o3BDl.js → oz-BksQrg3k.js} +1 -1
  184. package/dist/packet-AYTQ26CC-DEMHgLPq.js +2 -0
  185. package/dist/{pascal-BO5JqysR.js → pascal-BKL17mpl.js} +1 -1
  186. package/dist/{pegDiagram-XKGWAZYB-coOYYKB6.js → pegDiagram-XKGWAZYB-sUp3JNDF.js} +5 -5
  187. package/dist/pencil-CijoRsa3.js +10 -0
  188. package/dist/{perl-Drlh9s6m.js → perl-CacqJ-Ss.js} +1 -1
  189. package/dist/pick-DgpAbcwP.js +35 -0
  190. package/dist/pie-WAS4IAKB-DMjTEeHd.js +2 -0
  191. package/dist/{pieDiagram-E7YTZNPT-BnXTc3bj.js → pieDiagram-E7YTZNPT-C2S9T2yS.js} +7 -7
  192. package/dist/{pig-BWGR8wZw.js → pig-CXSGZ_K9.js} +1 -1
  193. package/dist/{powershell-DT99xlz_.js → powershell-DY_yIxBM.js} +3 -6
  194. package/dist/{process-output-e4jj9Ijt.js → process-output-39KkAXSF.js} +5 -5
  195. package/dist/{properties-Q-rkxld0.js → properties-Om0IDE07.js} +1 -1
  196. package/dist/{protobuf-DKyWZbs7.js → protobuf-B8nxxb4Q.js} +1 -1
  197. package/dist/{pug-42ZJUbEC.js → pug-lkUBPvVS.js} +3 -7
  198. package/dist/{puppet-B4UozHhh.js → puppet-DMkXsi4d.js} +1 -1
  199. package/dist/purify.es-DmnrIjg4.js +877 -0
  200. package/dist/{python-DREjAV__.js → python-JQVycMgr.js} +1 -1
  201. package/dist/{q-Bi63IpBO.js → q-DqE__nNB.js} +1 -1
  202. package/dist/{quadrantDiagram-AXDQQJYC-Ccw0xMjN.js → quadrantDiagram-AXDQQJYC-nGFBFig7.js} +3 -3
  203. package/dist/{r-DSwXWKMR.js → r-Cbliap7Q.js} +1 -1
  204. package/dist/radar-RG4KPBEZ-9PwdCvai.js +2 -0
  205. package/dist/railroad-74A4TZTK-8N9kF5jl.js +2 -0
  206. package/dist/railroad-abnf-HS5TGJTU-Sg6YmzlR.js +2 -0
  207. package/dist/railroad-ebnf-LZEXJU2U-CYwp2Oee.js +2 -0
  208. package/dist/railroad-peg-WCYAUIDC-BfDkAuQ3.js +2 -0
  209. package/dist/{railroadDiagram-O6MQD6OU-B28-u83n.js → railroadDiagram-O6MQD6OU-PldgXn-D.js} +5 -5
  210. package/dist/{react-sHtZdjeP.js → react-Bgs_wQh3.js} +3 -3
  211. package/dist/{react-dom-DUmH0GXv.js → react-dom-DdqGVp5N.js} +5 -5
  212. package/dist/{react-vega-BED0DjiB.js → react-vega-CGgQEf0O.js} +12303 -15725
  213. package/dist/{requirementDiagram-BXWQKSXE-CdYCTMu0.js → requirementDiagram-BXWQKSXE-CoVxzaFy.js} +13 -13
  214. package/dist/{reveal-component-DO5BJB9l.js → reveal-component-Dm5K9KPi.js} +1175 -1288
  215. package/dist/{rolldown-runtime-Cb76FRpK.js → rolldown-runtime-BPCzCO3I.js} +1 -1
  216. package/dist/{rpm-DPb1DeKM.js → rpm-DmT_LNpE.js} +1 -1
  217. package/dist/{ruby-U7fZA4DP.js → ruby-BHVZTtLW.js} +1 -1
  218. package/dist/{sankeyDiagram-P5KCCOFB-ELvOcnZH.js → sankeyDiagram-P5KCCOFB-CrOfyc2n.js} +2 -2
  219. package/dist/{sas-CLk1JpTn.js → sas-CrG5N1he.js} +1 -1
  220. package/dist/{scheme-CT-2k2Tl.js → scheme-BHUnz-IB.js} +1 -1
  221. package/dist/select-DW32QOzC.js +1200 -0
  222. package/dist/{semaphore-89jsoHtS.js → semaphore-8KhQouXt.js} +4 -5
  223. package/dist/{sequenceDiagram-WJ2MYXX4-CM3aRAe_.js → sequenceDiagram-WJ2MYXX4-CRUI6aLG.js} +6 -6
  224. package/dist/{shell-BLO7fcsk.js → shell-C5IBmRU5.js} +1 -1
  225. package/dist/{sieve-nG3C7WNH.js → sieve-BzCnt_E6.js} +2 -2
  226. package/dist/{sizeCapture-INFHLROL-Dx5SpkQF.js → sizeCapture-INFHLROL-DBeZ20mI.js} +1 -1
  227. package/dist/{smalltalk-BROcZybA.js → smalltalk-DQFAQul3.js} +1 -1
  228. package/dist/{solr-mVltHNc5.js → solr-BiapYPCk.js} +1 -1
  229. package/dist/{sparql-Cv1Ksr4v.js → sparql-BcUKO1is.js} +1 -1
  230. package/dist/{spec-BwarBpUJ.js → spec-Ww0JjShW.js} +42 -12
  231. package/dist/{src-CA_m4ONl.js → src-D5uZaZib.js} +8 -14
  232. package/dist/{stateDiagram-D77RDMKH-DOZUMVj8.js → stateDiagram-D77RDMKH-IJFKm2ah.js} +18 -18
  233. package/dist/stateDiagram-v2-MP3YSRHH-sHwmL1Cd.js +30 -0
  234. package/dist/static-state-CnQdTBTW.js +90 -0
  235. package/dist/{stex-Btf3omL8.js → stex-CQ_aCGTF.js} +1 -1
  236. package/dist/style.css +1 -1
  237. package/dist/{stylus-Dt4VvLXL.js → stylus-D4gHF5lg.js} +1 -1
  238. package/dist/{swift-DHsn_CVI.js → swift-CnvIBnbt.js} +1 -1
  239. package/dist/{swimlanes-42K2YHIH-BkSppxp8.js → swimlanes-42K2YHIH-DqInQL7n.js} +37 -59
  240. package/dist/swimlanesDiagram-VR7AAH4N-BiJSxYhi.js +30 -0
  241. package/dist/{swiper-component-DKntyn8p.js → swiper-component-DTdNB9wg.js} +45 -78
  242. package/dist/{tcl-CV0OLBOl.js → tcl-DkOjjZYO.js} +1 -1
  243. package/dist/{textile-D320oKVM.js → textile-DgzBVSEW.js} +1 -1
  244. package/dist/{tiki-BF2aDPlB.js → tiki-MighF8A_.js} +1 -1
  245. package/dist/{time-BieKwdYS.js → time-BlOl70lB.js} +2 -2
  246. package/dist/{timeline-definition-24CTP7MA-CaMQayqK.js → timeline-definition-24CTP7MA-CqGAO7Po.js} +5 -5
  247. package/dist/toast-Crofa36R.js +491 -0
  248. package/dist/{toml-CaUN7UHo.js → toml-B0B7UAba.js} +1 -1
  249. package/dist/{tooltip-BO1REbqs.js → tooltip-Bg-SDCwa.js} +327 -303
  250. package/dist/treeView-Q6P3EWNA-BQywp0E1.js +2 -0
  251. package/dist/treemap-WGGIJYW6-P2ZJnldw.js +2 -0
  252. package/dist/{troff-DQUFcClZ.js → troff-B4IRX71y.js} +1 -1
  253. package/dist/{ttcn-CQL1duJS.js → ttcn-B4tpvdJD.js} +1 -1
  254. package/dist/{ttcn-cfg-BMmEFJPu.js → ttcn-cfg-pfE-1FV8.js} +1 -1
  255. package/dist/{turtle-C3esgsRr.js → turtle-Bc97ufp6.js} +1 -1
  256. package/dist/use-restore-focus-CE9Sflmg.js +7621 -0
  257. package/dist/{use-vega-container-remeasure-Bz4PZMtt.js → use-vega-container-remeasure-BrUpWQfF.js} +4 -8
  258. package/dist/{useAsyncData-Deh5kszT.js → useAsyncData-P5-Oovhq.js} +21 -20
  259. package/dist/{useDateFormatter-D8XruNGG.js → useDateFormatter-D5fsC9ot.js} +5 -5
  260. package/dist/{useDeepCompareMemoize-DXwzRINI.js → useDeepCompareMemoize-Bvrue1iy.js} +3 -3
  261. package/dist/useEvent-BoN7U38T.js +19 -0
  262. package/dist/{useIframeCapabilities-DBETvvPl.js → useIframeCapabilities-HTZiVlGV.js} +2 -2
  263. package/dist/useLifecycle-Ctr5lECo.js +112 -0
  264. package/dist/{vb-RK1eDXRl.js → vb-C5kpOY_q.js} +1 -1
  265. package/dist/{vbscript-BCOeM0de.js → vbscript-Ck0hgOg5.js} +1 -1
  266. package/dist/{vega-component-DG29TAB7.js → vega-component-DQZhTzVQ.js} +167 -172
  267. package/dist/{vega-embed-container-BNHE18G9.js → vega-embed-container-DgpACsCB.js} +7 -7
  268. package/dist/{vega-loader.browser-DNST6uVf.js → vega-loader.browser-Co9gYE8Z.js} +242 -108
  269. package/dist/{velocity-CZKOFbOI.js → velocity-2Doc6dgJ.js} +1 -1
  270. package/dist/{vennDiagram-4TSXK5OY-CF8pfaK3.js → vennDiagram-4TSXK5OY-CsvJDV8r.js} +4 -4
  271. package/dist/{verilog-DqQTzVn8.js → verilog-CmZmYe4R.js} +2 -2
  272. package/dist/{vhdl-vQr2bfmi.js → vhdl-esMnUHZm.js} +1 -1
  273. package/dist/wardley-WFR3VGLG-CIBJ6O2G.js +2 -0
  274. package/dist/{wardleyDiagram-VM6X3IG4-dGPu39d-.js → wardleyDiagram-VM6X3IG4-DeT0PuM9.js} +5 -5
  275. package/dist/{webidl-DzX7N40e.js → webidl-G_RlXG7G.js} +1 -1
  276. package/dist/{xquery-Cw_Q_hGR.js → xquery-IUQpMoMl.js} +1 -1
  277. package/dist/{xychartDiagram-S5SC5T6Z-CP6-9q56.js → xychartDiagram-S5SC5T6Z-C15EKY66.js} +8 -8
  278. package/dist/{yacas-DiC4jJBE.js → yacas-ObL0t2h9.js} +1 -1
  279. package/dist/{z80-CUOQDEJO.js → z80-jyuJhy0k.js} +1 -1
  280. package/package.json +41 -45
  281. package/src/__mocks__/document.tsx +64 -0
  282. package/src/__mocks__/executions.ts +262 -0
  283. package/src/__mocks__/notebook.ts +22 -48
  284. package/src/__mocks__/partial.ts +26 -0
  285. package/src/__mocks__/requests.ts +1 -7
  286. package/src/__tests__/CellStatus.test.tsx +25 -26
  287. package/src/__tests__/fixtures/{pair-preview.ts → pair-config.ts} +4 -3
  288. package/src/__tests__/main.test.tsx +24 -1
  289. package/src/__tests__/module-entry.test.ts +44 -0
  290. package/src/__tests__/mount.test.ts +25 -66
  291. package/src/__tests__/{host-imports.test.ts → replica-imports.test.ts} +12 -11
  292. package/src/components/ai/__tests__/ai-model-dropdown.test.tsx +63 -0
  293. package/src/components/ai/__tests__/ai-utils.test.ts +8 -0
  294. package/src/components/ai/ai-model-dropdown.tsx +11 -6
  295. package/src/components/app-config/__tests__/add-model-discovery.test.tsx +255 -0
  296. package/src/components/app-config/__tests__/model-discovery.test.tsx +183 -0
  297. package/src/components/app-config/__tests__/state.test.tsx +50 -0
  298. package/src/components/app-config/ai-config.tsx +206 -188
  299. package/src/components/app-config/app-config-button.tsx +6 -5
  300. package/src/components/app-config/app-config-form.tsx +5 -9
  301. package/src/components/app-config/common.tsx +7 -9
  302. package/src/components/app-config/data-form.tsx +113 -116
  303. package/src/components/app-config/get-dirty-values.ts +4 -4
  304. package/src/components/app-config/mcp-config.tsx +30 -53
  305. package/src/components/app-config/model-discovery.tsx +157 -0
  306. package/src/components/app-config/model-provider-config.ts +25 -0
  307. package/src/components/app-config/state.ts +2 -0
  308. package/src/components/app-config/user-config-form.css +91 -0
  309. package/src/components/app-config/user-config-form.tsx +278 -350
  310. package/src/components/chat/__tests__/capabilities-popover.test.tsx +0 -1
  311. package/src/components/chat/__tests__/chat-display.test.tsx +196 -0
  312. package/src/components/chat/__tests__/chat-markdown.test.tsx +43 -0
  313. package/src/components/chat/__tests__/chat-utils.test.ts +93 -1
  314. package/src/components/chat/__tests__/message-queue.test.tsx +17 -0
  315. package/src/components/chat/__tests__/notebook-access-selector.test.tsx +64 -0
  316. package/src/components/chat/__tests__/notebook-context.test.ts +199 -0
  317. package/src/components/chat/__tests__/turn-timing.test.ts +84 -0
  318. package/src/components/chat/__tests__/use-assistant-turn.test.ts +95 -0
  319. package/src/components/chat/__tests__/user-message.test.tsx +27 -0
  320. package/src/components/chat/acp/__tests__/agent-panel-initialization.test.tsx +1 -1
  321. package/src/components/chat/acp/__tests__/agent-panel.test.tsx +22 -17
  322. package/src/components/chat/acp/__tests__/session-tabs.test.tsx +43 -0
  323. package/src/components/chat/acp/__tests__/state.test.ts +2 -2
  324. package/src/components/chat/acp/agent-panel.tsx +6 -3
  325. package/src/components/chat/acp/blocks.tsx +13 -12
  326. package/src/components/chat/acp/common.tsx +4 -5
  327. package/src/components/chat/acp/model-selector.tsx +1 -1
  328. package/src/components/chat/acp/session-tabs.tsx +8 -3
  329. package/src/components/chat/agent-activity.tsx +132 -0
  330. package/src/components/chat/capabilities-popover.tsx +2 -11
  331. package/src/components/chat/chat-components.tsx +9 -4
  332. package/src/components/chat/chat-display.tsx +131 -57
  333. package/src/components/chat/chat-empty-state.tsx +55 -0
  334. package/src/components/chat/chat-history-popover.tsx +6 -1
  335. package/src/components/chat/chat-markdown.tsx +15 -0
  336. package/src/components/chat/chat-panel.tsx +241 -311
  337. package/src/components/chat/chat-typography.css +108 -0
  338. package/src/components/chat/chat-utils.ts +24 -35
  339. package/src/components/chat/notebook-access-selector.stories.tsx +22 -0
  340. package/src/components/chat/notebook-access-selector.tsx +100 -0
  341. package/src/components/chat/notebook-context.ts +80 -0
  342. package/src/components/chat/tool-call/__tests__/tool-labels.test.ts +76 -0
  343. package/src/components/chat/tool-call/__tests__/tool-step.test.tsx +57 -0
  344. package/src/components/chat/tool-call/shared.ts +6 -0
  345. package/src/components/chat/tool-call/tool-call-view.tsx +22 -76
  346. package/src/components/chat/tool-call/tool-labels.ts +172 -0
  347. package/src/components/chat/tool-call/tool-result.tsx +1 -1
  348. package/src/components/chat/tool-call/tool-step.tsx +145 -0
  349. package/src/components/chat/turn-timing.ts +73 -0
  350. package/src/components/chat/use-assistant-turn.ts +65 -0
  351. package/src/components/chat/use-chat-generation.ts +20 -0
  352. package/src/components/chat/user-message.tsx +145 -0
  353. package/src/components/data-table/TableBottomBar.tsx +4 -1
  354. package/src/components/data-table/TableTopBar.tsx +2 -0
  355. package/src/components/data-table/__tests__/chart-spec-model.test.ts +195 -195
  356. package/src/components/data-table/__tests__/column-explorer.test.tsx +27 -1
  357. package/src/components/data-table/__tests__/columns.test.tsx +105 -0
  358. package/src/components/data-table/__tests__/context-menu-interaction.test.tsx +130 -0
  359. package/src/components/data-table/__tests__/data-table.test.tsx +1 -0
  360. package/src/components/data-table/__tests__/date-popover.test.tsx +72 -0
  361. package/src/components/data-table/__tests__/export-actions.test.tsx +434 -6
  362. package/src/components/data-table/__tests__/keyboard-selection.test.tsx +188 -0
  363. package/src/components/data-table/__tests__/pagination.test.tsx +28 -1
  364. package/src/components/data-table/__tests__/search-highlight.test.tsx +109 -0
  365. package/src/components/data-table/__tests__/url-detector.test.tsx +74 -0
  366. package/src/components/data-table/cell-selection/feature.ts +2 -2
  367. package/src/components/data-table/cell-selection/types.ts +2 -2
  368. package/src/components/data-table/charts/__tests__/chart-panel.test.tsx +74 -1
  369. package/src/components/data-table/charts/__tests__/spec-snapshot.test.ts +20 -20
  370. package/src/components/data-table/charts/__tests__/spec.test.ts +78 -52
  371. package/src/components/data-table/charts/__tests__/storage.test.ts +4 -1
  372. package/src/components/data-table/charts/chart-spec/spec.ts +68 -43
  373. package/src/components/data-table/charts/charts.tsx +40 -30
  374. package/src/components/data-table/charts/storage.ts +16 -5
  375. package/src/components/data-table/column-explorer-panel/column-explorer.tsx +1 -1
  376. package/src/components/data-table/column-formatting/types.ts +1 -2
  377. package/src/components/data-table/column-summary/chart-spec-model.tsx +23 -16
  378. package/src/components/data-table/column-summary/column-summary.tsx +2 -4
  379. package/src/components/data-table/column-visibility-dropdown.tsx +8 -13
  380. package/src/components/data-table/columns.tsx +45 -46
  381. package/src/components/data-table/context-menu.tsx +36 -20
  382. package/src/components/data-table/data-table.tsx +17 -1
  383. package/src/components/data-table/date-popover.tsx +6 -4
  384. package/src/components/data-table/export-actions.tsx +267 -163
  385. package/src/components/data-table/pagination.tsx +44 -33
  386. package/src/components/data-table/range-focus/atoms.ts +4 -6
  387. package/src/components/data-table/range-focus/use-cell-range-selection.ts +65 -38
  388. package/src/components/data-table/range-focus/use-scroll-into-view.ts +21 -2
  389. package/src/components/data-table/renderers.tsx +16 -7
  390. package/src/components/data-table/row-viewer-panel/__tests__/row-viewer.test.tsx +24 -1
  391. package/src/components/data-table/row-viewer-panel/row-viewer.tsx +4 -4
  392. package/src/components/data-table/schemas.ts +14 -36
  393. package/src/components/data-table/search-highlight.tsx +79 -0
  394. package/src/components/data-table/types.ts +1 -0
  395. package/src/components/data-table/url-detector.tsx +49 -9
  396. package/src/components/datasources/__tests__/column-actions.test.tsx +97 -0
  397. package/src/components/datasources/__tests__/column-preview.test.tsx +96 -5
  398. package/src/components/datasources/__tests__/datasources-interactions.test.tsx +295 -0
  399. package/src/components/datasources/__tests__/table-list.test.tsx +118 -0
  400. package/src/components/datasources/__tests__/utils.test.ts +117 -7
  401. package/src/components/datasources/column-preview.tsx +17 -12
  402. package/src/components/datasources/datasources.tsx +58 -44
  403. package/src/components/datasources/utils.ts +41 -27
  404. package/src/components/debugger/debugger-code.tsx +5 -0
  405. package/src/components/dependency-graph/custom-node.tsx +1 -1
  406. package/src/components/dependency-graph/dependency-graph-tree.tsx +8 -8
  407. package/src/components/dependency-graph/elements.ts +24 -21
  408. package/src/components/dependency-graph/minimap-content.tsx +15 -20
  409. package/src/components/dependency-graph/panels.tsx +4 -2
  410. package/src/components/dependency-graph/utils/__tests__/layout.test.ts +18 -11
  411. package/src/components/editor/Output.tsx +13 -5
  412. package/src/components/editor/SortableCell.tsx +1 -3
  413. package/src/components/editor/__tests__/Output.test.tsx +50 -32
  414. package/src/components/editor/__tests__/agent-toast.test.tsx +58 -0
  415. package/src/components/editor/__tests__/data-attributes.test.tsx +39 -32
  416. package/src/components/editor/__tests__/dynamic-favicon.test.tsx +106 -18
  417. package/src/components/editor/__tests__/output-persistence.test.tsx +33 -32
  418. package/src/components/editor/__tests__/package-alert.test.tsx +22 -1
  419. package/src/components/editor/actions/__tests__/name-cell-input.test.tsx +70 -0
  420. package/src/components/editor/actions/__tests__/pair-with-agent-commands.test.ts +69 -260
  421. package/src/components/editor/actions/__tests__/pair-with-agent-modal.test.tsx +222 -43
  422. package/src/components/editor/actions/__tests__/pair-with-agent.test.tsx +6 -24
  423. package/src/components/editor/actions/__tests__/useCellActionButton.test.tsx +132 -0
  424. package/src/components/editor/actions/__tests__/useSetOutputsExpanded.test.ts +8 -9
  425. package/src/components/editor/actions/name-cell-input.tsx +4 -3
  426. package/src/components/editor/actions/pair-with-agent-commands.ts +48 -54
  427. package/src/components/editor/actions/pair-with-agent-modal.tsx +102 -43
  428. package/src/components/editor/actions/pair-with-agent.tsx +16 -39
  429. package/src/components/editor/actions/useCellActionButton.tsx +47 -35
  430. package/src/components/editor/actions/useConfigActions.tsx +3 -4
  431. package/src/components/editor/actions/useNotebookActions.tsx +25 -29
  432. package/src/components/editor/actions/useRestartKernel.tsx +0 -5
  433. package/src/components/editor/actions/useSetCodeVisibility.ts +11 -12
  434. package/src/components/editor/actions/useSetOutputsExpanded.ts +24 -24
  435. package/src/components/editor/agent-toast.ts +15 -0
  436. package/src/components/editor/ai/ai-completion-editor.tsx +2 -1
  437. package/src/components/editor/ai/completion-handlers.tsx +0 -37
  438. package/src/components/editor/ai/prompt-input.tsx +179 -0
  439. package/src/components/editor/alerts/__tests__/connection-notice.test.tsx +1 -1
  440. package/src/components/editor/alerts/connection-notice.tsx +1 -1
  441. package/src/components/editor/alerts/startup-logs-alert.tsx +1 -0
  442. package/src/components/editor/alerts/stdin-blocking-alert.tsx +4 -2
  443. package/src/components/editor/app-container.tsx +1 -1
  444. package/src/components/editor/boundary/__tests__/ErrorBoundary.test.tsx +1 -1
  445. package/src/components/editor/cell/CellStatus.tsx +28 -23
  446. package/src/components/editor/cell/CreateCellButton.tsx +15 -21
  447. package/src/components/editor/cell/DeleteButton.tsx +3 -2
  448. package/src/components/editor/cell/RunButton.tsx +18 -8
  449. package/src/components/editor/cell/StagedAICell.tsx +52 -137
  450. package/src/components/editor/cell/StopButton.tsx +5 -5
  451. package/src/components/editor/cell/__tests__/useRunCells.test.tsx +151 -0
  452. package/src/components/editor/cell/__tests__/useShouldShowInterrupt.test.ts +39 -0
  453. package/src/components/editor/cell/cell-actions.tsx +12 -1
  454. package/src/components/editor/cell/cell-context-menu.tsx +24 -4
  455. package/src/components/editor/cell/code/__tests__/language-toggle.test.tsx +91 -0
  456. package/src/components/editor/cell/code/cell-editor.tsx +67 -170
  457. package/src/components/editor/cell/code/language-toggle.tsx +14 -11
  458. package/src/components/editor/cell/collapse.tsx +16 -6
  459. package/src/components/editor/cell/useAddCell.ts +4 -8
  460. package/src/components/editor/cell/useDeleteCell.tsx +10 -36
  461. package/src/components/editor/cell/useRunCells.ts +72 -58
  462. package/src/components/editor/cell/useShouldShowInterrupt.ts +2 -12
  463. package/src/components/editor/cell/useSplitCell.tsx +10 -6
  464. package/src/components/editor/chrome/components/__tests__/feedback-button.test.tsx +1 -1
  465. package/src/components/editor/chrome/components/feedback-button.tsx +2 -8
  466. package/src/components/editor/chrome/panels/__tests__/packages-panel.test.tsx +31 -2
  467. package/src/components/editor/chrome/panels/__tests__/runtime-details.test.tsx +1 -1
  468. package/src/components/editor/chrome/panels/__tests__/sandbox-recovery.test.tsx +1 -1
  469. package/src/components/editor/chrome/panels/cache-panel.tsx +1 -0
  470. package/src/components/editor/chrome/panels/dependency-graph-panel.tsx +1 -1
  471. package/src/components/editor/chrome/panels/error-panel.tsx +1 -0
  472. package/src/components/editor/chrome/panels/logs-panel.tsx +2 -1
  473. package/src/components/editor/chrome/panels/outline/__tests__/outline-keyboard.test.tsx +84 -0
  474. package/src/components/editor/chrome/panels/outline/floating-outline.tsx +39 -14
  475. package/src/components/editor/chrome/panels/outline/useActiveOutline.tsx +3 -2
  476. package/src/components/editor/chrome/panels/packages-panel.tsx +4 -7
  477. package/src/components/editor/chrome/panels/panel-header.tsx +13 -0
  478. package/src/components/editor/chrome/panels/secrets-panel.tsx +1 -0
  479. package/src/components/editor/chrome/panels/session-panel.tsx +1 -1
  480. package/src/components/editor/chrome/panels/snippets-panel.tsx +10 -12
  481. package/src/components/editor/chrome/panels/variable-panel.tsx +1 -5
  482. package/src/components/editor/chrome/types.ts +1 -1
  483. package/src/components/editor/chrome/wrapper/__tests__/attachment-status.test.tsx +364 -0
  484. package/src/components/editor/chrome/wrapper/__tests__/document-sync-status.test.tsx +97 -0
  485. package/src/components/editor/chrome/wrapper/__tests__/pending-ai-cells.test.tsx +265 -37
  486. package/src/components/editor/chrome/wrapper/__tests__/useAskAiAboutCell.test.tsx +58 -0
  487. package/src/components/editor/chrome/wrapper/app-chrome.tsx +91 -74
  488. package/src/components/editor/chrome/wrapper/footer-item.tsx +32 -24
  489. package/src/components/editor/chrome/wrapper/footer-items/attachment-status.tsx +237 -0
  490. package/src/components/editor/chrome/wrapper/footer-items/backend-status.tsx +3 -17
  491. package/src/components/editor/chrome/wrapper/footer-items/document-sync-status.tsx +54 -0
  492. package/src/components/editor/chrome/wrapper/footer-items/lsp-status.tsx +1 -1
  493. package/src/components/editor/chrome/wrapper/footer-items/machine-stats.tsx +1 -1
  494. package/src/components/editor/chrome/wrapper/footer-items/runtime-settings.tsx +1 -7
  495. package/src/components/editor/chrome/wrapper/footer.tsx +4 -2
  496. package/src/components/editor/chrome/wrapper/minimap-state.ts +1 -1
  497. package/src/components/editor/chrome/wrapper/pending-ai-cells.tsx +143 -72
  498. package/src/components/editor/chrome/wrapper/pending-ai-changes-badge.tsx +25 -0
  499. package/src/components/editor/chrome/wrapper/sidebar.tsx +8 -4
  500. package/src/components/editor/chrome/wrapper/storage.ts +1 -1
  501. package/src/components/editor/chrome/wrapper/useAskAiAboutCell.ts +36 -0
  502. package/src/components/editor/columns/__tests__/cell-column.test.tsx +1 -1
  503. package/src/components/editor/columns/cell-column.tsx +1 -1
  504. package/src/components/editor/columns/sortable-column.tsx +2 -2
  505. package/src/components/editor/connections/components.tsx +5 -10
  506. package/src/components/editor/controls/Controls.tsx +4 -4
  507. package/src/components/editor/controls/__tests__/command-palette.test.tsx +53 -0
  508. package/src/components/editor/controls/__tests__/keyboard-shortcuts.test.tsx +61 -0
  509. package/src/components/editor/controls/__tests__/notebook-menu-dropdown.test.tsx +10 -4
  510. package/src/components/editor/controls/command-palette.tsx +22 -10
  511. package/src/components/editor/controls/keyboard-shortcuts.tsx +14 -5
  512. package/src/components/editor/documentation.css +34 -11
  513. package/src/components/editor/dynamic-favicon.tsx +21 -40
  514. package/src/components/editor/errors/__tests__/send-error-report-button.test.tsx +558 -0
  515. package/src/components/editor/errors/auto-fix.tsx +4 -8
  516. package/src/components/editor/errors/send-error-report-button.tsx +66 -0
  517. package/src/components/editor/file-tree/__tests__/file-explorer-interactions.test.tsx +6 -0
  518. package/src/components/editor/file-tree/__tests__/file-explorer-navigation.test.tsx +47 -0
  519. package/src/components/editor/file-tree/__tests__/use-file-search.test.tsx +91 -0
  520. package/src/components/editor/file-tree/file-explorer.tsx +48 -15
  521. package/src/components/editor/file-tree/file-name-input.tsx +1 -0
  522. package/src/components/editor/file-tree/file-viewer.tsx +4 -2
  523. package/src/components/editor/file-tree/use-file-search.ts +35 -21
  524. package/src/components/editor/header/__tests__/filename-form.test.tsx +1 -4
  525. package/src/components/editor/header/__tests__/status.test.tsx +5 -3
  526. package/src/components/editor/header/app-header.tsx +1 -1
  527. package/src/components/editor/header/filename-form.tsx +1 -1
  528. package/src/components/editor/header/status.tsx +44 -22
  529. package/src/components/editor/links/__tests__/cell-link.test.tsx +148 -0
  530. package/src/components/editor/links/cell-link-list.tsx +1 -1
  531. package/src/components/editor/links/cell-link.tsx +21 -11
  532. package/src/components/editor/navigation/__tests__/clipboard.test.ts +60 -38
  533. package/src/components/editor/navigation/__tests__/navigation.test.ts +109 -85
  534. package/src/components/editor/navigation/__tests__/selection.test.ts +43 -21
  535. package/src/components/editor/navigation/clipboard.ts +17 -14
  536. package/src/components/editor/navigation/focus-utils.ts +23 -4
  537. package/src/components/editor/navigation/multi-cell-action-toolbar.tsx +17 -33
  538. package/src/components/editor/navigation/navigation.ts +74 -72
  539. package/src/components/editor/navigation/selection.ts +30 -29
  540. package/src/components/editor/notebook-banner.tsx +1 -0
  541. package/src/components/editor/notebook-cell.tsx +173 -182
  542. package/src/components/editor/output/MarimoErrorOutput.tsx +60 -7
  543. package/src/components/editor/output/MarimoTracebackOutput.tsx +54 -37
  544. package/src/components/editor/output/Outputs.css +8 -0
  545. package/src/components/editor/output/VideoOutput.tsx +6 -0
  546. package/src/components/editor/output/__tests__/VideoOutput.test.tsx +131 -0
  547. package/src/components/editor/output/__tests__/ansi-reduce.test.ts +18 -0
  548. package/src/components/editor/output/__tests__/traceback.test.tsx +27 -1
  549. package/src/components/editor/output/ansi-reduce.ts +43 -17
  550. package/src/components/editor/output/console/ConsoleOutput.tsx +19 -25
  551. package/src/components/editor/output/console/__tests__/ConsoleOutput.test.tsx +125 -69
  552. package/src/components/editor/output/console/process-output.ts +4 -2
  553. package/src/components/editor/package-alert.tsx +14 -7
  554. package/src/components/editor/renderers/__tests__/add-cell-buttons.test.tsx +18 -0
  555. package/src/components/editor/renderers/cell-array.tsx +31 -102
  556. package/src/components/editor/renderers/cells-renderer.tsx +3 -1
  557. package/src/components/editor/renderers/grid-layout/__tests__/grid-layout.test.tsx +69 -0
  558. package/src/components/editor/renderers/grid-layout/grid-layout.tsx +35 -28
  559. package/src/components/editor/renderers/slides-layout/__tests__/plugin.test.ts +0 -4
  560. package/src/components/editor/renderers/slides-layout/slides-layout.tsx +1 -1
  561. package/src/components/editor/renderers/types.ts +2 -2
  562. package/src/components/editor/renderers/vertical-layout/__tests__/useFocusFirstEditor.test.ts +47 -4
  563. package/src/components/editor/renderers/vertical-layout/sidebar/toggle.tsx +7 -1
  564. package/src/components/editor/renderers/vertical-layout/useFocusFirstEditor.ts +9 -1
  565. package/src/components/editor/renderers/vertical-layout/utils.ts +4 -4
  566. package/src/components/editor/renderers/vertical-layout/vertical-layout.tsx +23 -44
  567. package/src/components/editor/stdin-blocking-alert.tsx +4 -2
  568. package/src/components/home/components.tsx +17 -31
  569. package/src/components/icons/__tests__/large-spinner.test.tsx +39 -0
  570. package/src/components/icons/large-spinner.tsx +3 -14
  571. package/src/components/icons/spinner.tsx +1 -1
  572. package/src/components/markdown/__tests__/markdown-renderer.test.tsx +32 -2
  573. package/src/components/markdown/markdown-renderer.tsx +43 -28
  574. package/src/components/mcp/mcp-status-indicator.tsx +18 -14
  575. package/src/components/pages/__tests__/home-page.test.tsx +116 -0
  576. package/src/components/pages/edit-page.tsx +19 -17
  577. package/src/components/pages/home-page.tsx +164 -91
  578. package/src/components/scratchpad/scratchpad.test.tsx +89 -0
  579. package/src/components/scratchpad/scratchpad.tsx +52 -34
  580. package/src/components/scratchpad/state.ts +7 -0
  581. package/src/components/slides/__tests__/cell-output-block.test.tsx +7 -8
  582. package/src/components/slides/__tests__/minimap-actions.test.tsx +25 -32
  583. package/src/components/slides/__tests__/minimap.test.ts +38 -19
  584. package/src/components/slides/__tests__/slide-cell-view.test.tsx +1 -0
  585. package/src/components/slides/__tests__/slide-scroll-hint.test.tsx +37 -0
  586. package/src/components/slides/minimap.tsx +22 -14
  587. package/src/components/slides/reveal-component.tsx +73 -36
  588. package/src/components/slides/reveal-slides.css +5 -4
  589. package/src/components/slides/slide-cell-view.tsx +40 -38
  590. package/src/components/slides/slide-form.tsx +1 -0
  591. package/src/components/slides/slide-scroll-hint.tsx +3 -1
  592. package/src/components/slides/slide.tsx +4 -5
  593. package/src/components/sort/SortableCellsProvider.tsx +8 -25
  594. package/src/components/static-html/__tests__/static-banner.test.tsx +1 -1
  595. package/src/components/tracing/tracing-keyboard.test.tsx +85 -0
  596. package/src/components/tracing/tracing.tsx +46 -42
  597. package/src/components/ui/__tests__/draggable-popover.test.tsx +24 -0
  598. package/src/components/ui/__tests__/fullscreen.test.tsx +99 -2
  599. package/src/components/ui/__tests__/range-slider.test.tsx +165 -0
  600. package/src/components/ui/alert-dialog.tsx +1 -1
  601. package/src/components/ui/draggable-popover.tsx +24 -2
  602. package/src/components/ui/fullscreen.tsx +43 -3
  603. package/src/components/ui/range-slider.tsx +22 -9
  604. package/src/components/ui/slider.tsx +6 -2
  605. package/src/components/ui/toast.tsx +1 -1
  606. package/src/core/MarimoApp.tsx +3 -1
  607. package/src/core/ai/__tests__/staged-cells.test.ts +90 -609
  608. package/src/core/ai/context/__tests__/registry.test.ts +7 -11
  609. package/src/core/ai/context/context.ts +2 -0
  610. package/src/core/ai/context/providers/__tests__/cell-output.test.ts +121 -47
  611. package/src/core/ai/context/providers/__tests__/cell.test.ts +49 -0
  612. package/src/core/ai/context/providers/__tests__/error.test.ts +74 -191
  613. package/src/core/ai/context/providers/cell-output.ts +13 -8
  614. package/src/core/ai/context/providers/cell.ts +54 -0
  615. package/src/core/ai/context/providers/datasource.ts +6 -2
  616. package/src/core/ai/staged-cells.ts +56 -323
  617. package/src/core/ai/state.ts +3 -0
  618. package/src/core/ai/tools/__tests__/edit-notebook-tool.test.ts +47 -93
  619. package/src/core/ai/tools/__tests__/registry.test.ts +17 -0
  620. package/src/core/ai/tools/base.ts +18 -15
  621. package/src/core/ai/tools/edit-notebook-tool.ts +86 -80
  622. package/src/core/ai/tools/registry.ts +13 -10
  623. package/src/core/ai/tools/sample-tool.ts +6 -7
  624. package/src/core/cells/__tests__/__snapshots__/cells.test.ts.snap +14 -632
  625. package/src/core/cells/__tests__/actions.test.ts +623 -35
  626. package/src/core/cells/__tests__/add-missing-import.test.ts +7 -8
  627. package/src/core/cells/__tests__/arrange.test.ts +432 -0
  628. package/src/core/cells/__tests__/cell.test.ts +148 -150
  629. package/src/core/cells/__tests__/cells.test.ts +758 -3505
  630. package/src/core/cells/__tests__/clear-outputs.test.ts +151 -0
  631. package/src/core/cells/__tests__/collapseConsoleOutputs.test.ts +69 -0
  632. package/src/core/cells/__tests__/document.test.ts +158 -0
  633. package/src/core/cells/__tests__/editor.test.ts +57 -0
  634. package/src/core/cells/__tests__/error-report.test.ts +139 -0
  635. package/src/core/cells/__tests__/flush-document.test.ts +42 -0
  636. package/src/core/cells/__tests__/harness.ts +110 -0
  637. package/src/core/cells/__tests__/layout.test.ts +170 -0
  638. package/src/core/cells/__tests__/logs.test.ts +0 -13
  639. package/src/core/cells/__tests__/notebook-outline.test.ts +128 -0
  640. package/src/core/cells/__tests__/outputs.test.tsx +71 -53
  641. package/src/core/cells/__tests__/pending-delete-service.test.tsx +11 -20
  642. package/src/core/cells/__tests__/session.test.ts +578 -314
  643. package/src/core/cells/__tests__/utils.test.ts +156 -337
  644. package/src/core/cells/actions.ts +717 -6
  645. package/src/core/cells/add-missing-import.ts +48 -47
  646. package/src/core/cells/arrange.ts +529 -0
  647. package/src/core/cells/cell.ts +71 -151
  648. package/src/core/cells/cells.ts +146 -1507
  649. package/src/core/cells/columns.ts +38 -0
  650. package/src/core/cells/document.ts +167 -0
  651. package/src/core/cells/edit.ts +30 -0
  652. package/src/core/cells/editor.ts +82 -0
  653. package/src/core/cells/error-report.ts +63 -0
  654. package/src/core/cells/focus.ts +33 -7
  655. package/src/core/cells/layout.ts +220 -0
  656. package/src/core/cells/outputs.ts +14 -30
  657. package/src/core/cells/pending-delete-service.ts +8 -14
  658. package/src/core/cells/scrollCellIntoView.ts +6 -0
  659. package/src/core/cells/session.ts +176 -86
  660. package/src/core/cells/types.ts +25 -57
  661. package/src/core/cells/utils.ts +93 -88
  662. package/src/core/codemirror/__tests__/format.test.ts +4 -36
  663. package/src/core/codemirror/__tests__/setup.test.ts +67 -34
  664. package/src/core/codemirror/ai/__tests__/resources.test.ts +113 -0
  665. package/src/core/codemirror/ai/resources.ts +1 -1
  666. package/src/core/codemirror/cells/__tests__/extensions.test.ts +2 -6
  667. package/src/core/codemirror/cells/extensions.ts +18 -30
  668. package/src/core/codemirror/cells/state.ts +2 -6
  669. package/src/core/codemirror/cm.ts +5 -1
  670. package/src/core/codemirror/config/types.ts +1 -1
  671. package/src/core/codemirror/copilot/__tests__/completion-integration.test.ts +4 -0
  672. package/src/core/codemirror/copilot/__tests__/getCodes.test.ts +13 -12
  673. package/src/core/codemirror/copilot/extension.ts +0 -26
  674. package/src/core/codemirror/copilot/getCodes.ts +3 -3
  675. package/src/core/codemirror/format.ts +6 -23
  676. package/src/core/codemirror/keymaps/vim.ts +4 -8
  677. package/src/core/codemirror/language/__tests__/extension.test.ts +9 -7
  678. package/src/core/codemirror/language/__tests__/sql-literals.test.ts +588 -0
  679. package/src/core/codemirror/language/__tests__/sql.test.ts +123 -28
  680. package/src/core/codemirror/language/__tests__/utils.test.ts +194 -19
  681. package/src/core/codemirror/language/cell-code.ts +114 -0
  682. package/src/core/codemirror/language/extension.ts +52 -35
  683. package/src/core/codemirror/language/languages/markdown.ts +8 -6
  684. package/src/core/codemirror/language/languages/python.ts +19 -13
  685. package/src/core/codemirror/language/languages/sql/completion-builder.ts +31 -14
  686. package/src/core/codemirror/language/languages/sql/completion-context.ts +197 -0
  687. package/src/core/codemirror/language/languages/sql/completion-sources.tsx +109 -0
  688. package/src/core/codemirror/language/languages/sql/sql.ts +21 -28
  689. package/src/core/codemirror/language/panel/panel.tsx +1 -0
  690. package/src/core/codemirror/language/types.ts +7 -7
  691. package/src/core/codemirror/language/utils.ts +9 -39
  692. package/src/core/codemirror/lsp/__tests__/notebook-lsp.test.ts +1 -2
  693. package/src/core/codemirror/lsp/notebook-lsp.ts +6 -5
  694. package/src/core/codemirror/lsp/utils.ts +1 -1
  695. package/src/core/codemirror/misc/__tests__/paste.test.ts +3 -1
  696. package/src/core/codemirror/misc/paste.ts +1 -1
  697. package/src/core/codemirror/placeholder/__tests__/extensions.test.ts +75 -0
  698. package/src/core/codemirror/placeholder/extensions.ts +80 -19
  699. package/src/core/codemirror/readonly/__tests__/extension.test.ts +1 -1
  700. package/src/core/codemirror/readonly/extension.ts +2 -2
  701. package/src/core/codemirror/utils.ts +1 -0
  702. package/src/core/config/__tests__/app-config.test.ts +64 -0
  703. package/src/core/config/__tests__/config-schema.test.ts +195 -17
  704. package/src/core/config/config-schema.ts +137 -20
  705. package/src/core/config/config.ts +65 -20
  706. package/src/core/config/feature-flag.tsx +0 -2
  707. package/src/core/config/pair.ts +5 -3
  708. package/src/core/constants.ts +0 -6
  709. package/src/core/datasets/__tests__/data-source-discovery.test.ts +5 -5
  710. package/src/core/datasets/data-source-discovery.ts +4 -6
  711. package/src/core/documentation/doc-lookup.ts +1 -1
  712. package/src/core/dom/outline.ts +4 -1
  713. package/src/core/edit-app.tsx +28 -38
  714. package/src/core/errors/__tests__/error-entries.test.ts +74 -1
  715. package/src/core/errors/error-entries.ts +26 -14
  716. package/src/core/executions/__tests__/atoms.test.ts +282 -0
  717. package/src/core/executions/__tests__/freshness.test.ts +485 -0
  718. package/src/core/executions/__tests__/hooks.test.tsx +154 -0
  719. package/src/core/executions/__tests__/input.test.ts +86 -0
  720. package/src/core/executions/__tests__/interrupt.test.ts +202 -0
  721. package/src/core/executions/__tests__/output-lifecycle.test.ts +201 -0
  722. package/src/core/executions/__tests__/output.test.ts +350 -0
  723. package/src/core/executions/__tests__/run.test.ts +387 -0
  724. package/src/core/executions/__tests__/select.test.ts +379 -0
  725. package/src/core/executions/atoms.ts +437 -0
  726. package/src/core/executions/freshness.ts +171 -0
  727. package/src/core/executions/hooks.ts +96 -0
  728. package/src/core/executions/index.ts +56 -0
  729. package/src/core/executions/input.ts +55 -0
  730. package/src/core/executions/interrupt.ts +49 -0
  731. package/src/core/executions/output.ts +326 -0
  732. package/src/core/executions/run.ts +107 -0
  733. package/src/core/executions/select.ts +225 -0
  734. package/src/core/export/__tests__/hooks.test.ts +20 -34
  735. package/src/core/export/hooks.ts +8 -10
  736. package/src/core/export/layout.ts +2 -2
  737. package/src/core/hotkeys/actions.ts +2 -4
  738. package/src/core/hotkeys/hotkeys.ts +2 -1
  739. package/src/core/islands/__tests__/bootstrap.test.ts +69 -17
  740. package/src/core/islands/__tests__/bridge.test.ts +104 -65
  741. package/src/core/islands/__tests__/iframe-resizer.test.ts +91 -0
  742. package/src/core/islands/__tests__/main.test.ts +17 -0
  743. package/src/core/islands/bootstrap.ts +54 -55
  744. package/src/core/islands/bridge.ts +88 -43
  745. package/src/core/islands/components/IslandControls.tsx +15 -7
  746. package/src/core/islands/components/__tests__/IslandControls.test.tsx +36 -51
  747. package/src/core/islands/components/__tests__/web-components.test.tsx +76 -15
  748. package/src/core/islands/components/output-wrapper.tsx +19 -24
  749. package/src/core/islands/components/web-components.tsx +12 -1
  750. package/src/core/islands/iframe-resizer.ts +38 -0
  751. package/src/core/islands/main.ts +3 -0
  752. package/src/core/islands/stubs/slide-cell-view.tsx +2 -5
  753. package/src/core/islands/worker/__tests__/controller.test.ts +62 -4
  754. package/src/core/islands/worker/controller.ts +4 -10
  755. package/src/core/islands/worker/worker.tsx +78 -52
  756. package/src/core/kernel/__tests__/RuntimeState.test.ts +1 -1
  757. package/src/core/kernel/__tests__/handlers.test.ts +7 -157
  758. package/src/core/kernel/handlers.ts +13 -79
  759. package/src/core/kernel/state.ts +0 -15
  760. package/src/core/lifecycle/render-policy.ts +16 -27
  761. package/src/core/meta/__tests__/code-visibility.test.tsx +78 -70
  762. package/src/core/meta/code-visibility.ts +18 -9
  763. package/src/core/network/__tests__/ai.test.ts +41 -0
  764. package/src/core/network/__tests__/connection.test.ts +1 -1
  765. package/src/core/network/__tests__/requests-network.test.ts +0 -16
  766. package/src/core/network/__tests__/requests-toasting.test.tsx +7 -7
  767. package/src/core/network/ai.ts +12 -0
  768. package/src/core/network/connection-notice.ts +1 -1
  769. package/src/core/network/connection.ts +5 -8
  770. package/src/core/network/requests-network.ts +5 -55
  771. package/src/core/network/requests-static.ts +1 -7
  772. package/src/core/network/requests-toasting.tsx +2 -56
  773. package/src/core/network/resolve.ts +1 -5
  774. package/src/core/network/types.ts +6 -19
  775. package/src/core/network/useConnectionNotice.ts +8 -2
  776. package/src/core/notebook/__tests__/operations.test.ts +51 -0
  777. package/src/core/notebook/attachments.ts +38 -0
  778. package/src/core/notebook/document/__tests__/codemirror.test.ts +767 -0
  779. package/src/core/notebook/document/__tests__/draft.test.ts +363 -0
  780. package/src/core/notebook/document/__tests__/fixtures.ts +92 -0
  781. package/src/core/notebook/document/__tests__/hooks.test.tsx +392 -0
  782. package/src/core/notebook/document/__tests__/lifecycle-scenarios.test.ts +61 -0
  783. package/src/core/notebook/document/__tests__/model.test.ts +252 -0
  784. package/src/core/notebook/document/__tests__/protocol-fixtures.ts +38 -0
  785. package/src/core/notebook/document/__tests__/recovery-scenarios.test.ts +230 -0
  786. package/src/core/notebook/document/__tests__/scenario-fixture.ts +44 -0
  787. package/src/core/notebook/document/__tests__/scenarios.test.ts +266 -0
  788. package/src/core/notebook/document/__tests__/state.test.ts +460 -0
  789. package/src/core/notebook/document/__tests__/submission.test.ts +204 -0
  790. package/src/core/notebook/document/__tests__/test-host.test.ts +92 -0
  791. package/src/core/notebook/document/__tests__/test-host.ts +243 -0
  792. package/src/core/notebook/document/__tests__/test-notebook.ts +162 -0
  793. package/src/core/notebook/document/__tests__/user.ts +61 -0
  794. package/src/core/notebook/document/codemirror.ts +216 -0
  795. package/src/core/notebook/document/draft.ts +502 -0
  796. package/src/core/notebook/document/hooks.tsx +118 -0
  797. package/src/core/notebook/document/index.ts +24 -0
  798. package/src/core/notebook/document/model.ts +105 -0
  799. package/src/core/notebook/document/select.ts +41 -0
  800. package/src/core/notebook/document/state.ts +401 -0
  801. package/src/core/notebook/document/sync.ts +376 -0
  802. package/src/core/notebook/index.ts +19 -0
  803. package/src/core/notebook/operations.ts +30 -0
  804. package/src/core/notebook/replica/AGENTS.md +11 -0
  805. package/src/core/notebook/replica/__tests__/attachments.test.ts +56 -0
  806. package/src/core/notebook/replica/__tests__/document.test.ts +131 -0
  807. package/src/core/notebook/replica/__tests__/executions.test.ts +200 -0
  808. package/src/core/notebook/replica/__tests__/fixtures.ts +103 -0
  809. package/src/core/notebook/replica/__tests__/replica.test.ts +642 -0
  810. package/src/core/notebook/replica/__tests__/results.test.ts +222 -0
  811. package/src/core/notebook/replica/__tests__/runtime.test.ts +78 -0
  812. package/src/core/notebook/replica/backend.ts +21 -0
  813. package/src/core/notebook/replica/connection.ts +38 -0
  814. package/src/core/notebook/replica/index.ts +20 -0
  815. package/src/core/notebook/replica/replica.ts +398 -0
  816. package/src/core/notebook/replica/resources/attachments.ts +22 -0
  817. package/src/core/notebook/replica/resources/document.ts +101 -0
  818. package/src/core/notebook/replica/resources/executions.ts +248 -0
  819. package/src/core/notebook/replica/resources/results.ts +63 -0
  820. package/src/core/notebook/replica/resources/runtime.ts +14 -0
  821. package/src/core/packages/__tests__/useSandboxController.test.tsx +1 -1
  822. package/src/core/packages/useSandboxController.ts +1 -1
  823. package/src/core/run-app.tsx +49 -51
  824. package/src/core/runtime/__tests__/adapter.test.ts +4 -4
  825. package/src/core/runtime/__tests__/createWsUrl.test.ts +70 -12
  826. package/src/core/runtime/__tests__/runtime.test.ts +83 -157
  827. package/src/core/runtime/adapter.ts +6 -13
  828. package/src/core/runtime/config.ts +4 -24
  829. package/src/core/runtime/runtime.ts +35 -44
  830. package/src/core/runtime/types.ts +0 -5
  831. package/src/core/saving/__tests__/document.test.tsx +123 -0
  832. package/src/core/saving/__tests__/state.test.ts +111 -0
  833. package/src/core/saving/__tests__/useAutoSave.test.tsx +67 -0
  834. package/src/core/saving/document.ts +33 -0
  835. package/src/core/saving/filename.ts +1 -1
  836. package/src/core/saving/save-component.tsx +39 -60
  837. package/src/core/saving/state.ts +38 -39
  838. package/src/core/saving/useAutoSave.ts +17 -53
  839. package/src/core/session/__tests__/backend.test.ts +236 -0
  840. package/src/core/session/__tests__/useNotebookReplica.hook.test.tsx +186 -0
  841. package/src/core/session/__tests__/useNotebookSession.hook.test.tsx +791 -0
  842. package/src/core/session/active-notebook.ts +29 -0
  843. package/src/core/session/backend.ts +123 -0
  844. package/src/core/{websocket → session}/connection-utils.ts +2 -14
  845. package/src/core/session/embedded.ts +7 -0
  846. package/src/core/session/types.ts +17 -0
  847. package/src/core/session/useNotebookReplica.ts +74 -0
  848. package/src/core/{websocket/useMarimoKernelConnection.tsx → session/useNotebookSession.tsx} +138 -283
  849. package/src/core/state/__tests__/jotai.test.tsx +108 -0
  850. package/src/core/state/jotai.ts +1 -1
  851. package/src/core/static/__tests__/files.test.ts +38 -10
  852. package/src/core/static/files.ts +2 -0
  853. package/src/core/{websocket/__tests__/useMarimoKernelConnection.test.ts → transports/__tests__/connection-state.test.ts} +16 -30
  854. package/src/core/transports/__tests__/server.test.ts +412 -0
  855. package/src/core/transports/__tests__/static.test.ts +342 -0
  856. package/src/core/transports/__tests__/wasm.test.ts +166 -0
  857. package/src/core/transports/connection-state.ts +63 -0
  858. package/src/core/transports/server.ts +152 -0
  859. package/src/core/transports/static.ts +180 -0
  860. package/src/core/transports/wasm.ts +95 -0
  861. package/src/core/vscode/__tests__/vscode-bindings.test.ts +125 -0
  862. package/src/core/vscode/vscode-bindings.ts +14 -2
  863. package/src/core/wasm/__tests__/bridge.test.ts +354 -64
  864. package/src/core/wasm/__tests__/worker.test.ts +191 -0
  865. package/src/core/wasm/bridge.ts +167 -92
  866. package/src/core/wasm/rpc.ts +15 -3
  867. package/src/core/wasm/store.ts +3 -3
  868. package/src/core/wasm/worker/bootstrap.ts +55 -51
  869. package/src/core/wasm/worker/getMarimoWheel.ts +1 -1
  870. package/src/core/wasm/worker/save-worker.ts +9 -10
  871. package/src/core/wasm/worker/types.ts +31 -19
  872. package/src/core/wasm/worker/worker.ts +120 -72
  873. package/src/css/app/Cell.css +7 -36
  874. package/src/css/app/codemirror.css +1 -32
  875. package/src/css/common.css +1 -1
  876. package/src/css/globals.css +72 -24
  877. package/src/css/katex.min.css +1 -1
  878. package/src/hooks/__tests__/useAsyncData.test.tsx +148 -0
  879. package/src/hooks/__tests__/useDebounce.test.tsx +51 -0
  880. package/src/hooks/__tests__/useDeepCompareMemoize.test.tsx +39 -0
  881. package/src/hooks/__tests__/useDelayElapsed.test.tsx +28 -0
  882. package/src/hooks/__tests__/useInternalStateWithSync.test.tsx +20 -0
  883. package/src/hooks/__tests__/useScript.test.tsx +77 -0
  884. package/src/hooks/__tests__/useStateForKey.test.tsx +257 -0
  885. package/src/hooks/useAsyncData.ts +3 -3
  886. package/src/hooks/useDataSourceDiscovery.ts +6 -4
  887. package/src/hooks/useDebounce.ts +6 -10
  888. package/src/hooks/useDeepCompareMemoize.ts +1 -1
  889. package/src/hooks/useDelayElapsed.ts +14 -10
  890. package/src/hooks/useElapsedTime.ts +3 -3
  891. package/src/hooks/useEventListener.ts +1 -2
  892. package/src/hooks/useInputHistory.ts +4 -7
  893. package/src/hooks/useInternalStateWithSync.ts +6 -6
  894. package/src/hooks/useResizeObserver.ts +4 -7
  895. package/src/hooks/useScript.ts +67 -70
  896. package/src/hooks/useStateForKey.ts +93 -0
  897. package/src/mount.tsx +25 -22
  898. package/src/plugins/__tests__/plugin-object-schemas.test.ts +104 -0
  899. package/src/plugins/core/RenderHTML.tsx +3 -5
  900. package/src/plugins/core/__test__/PluginSlot.test.tsx +202 -0
  901. package/src/plugins/core/__test__/RenderHTML-copy.test.tsx +60 -0
  902. package/src/plugins/core/__test__/registerReactComponent.test.ts +45 -0
  903. package/src/plugins/core/__test__/sanitize.test.ts +8 -0
  904. package/src/plugins/core/registerReactComponent.tsx +29 -29
  905. package/src/plugins/core/sanitize-html.ts +6 -0
  906. package/src/plugins/impl/CodeEditorPlugin.tsx +1 -1
  907. package/src/plugins/impl/DataEditorPlugin.tsx +60 -28
  908. package/src/plugins/impl/DataTablePlugin.tsx +69 -37
  909. package/src/plugins/impl/DropdownPlugin.tsx +2 -6
  910. package/src/plugins/impl/FileBrowserPlugin.tsx +4 -16
  911. package/src/plugins/impl/FormPlugin.tsx +1 -1
  912. package/src/plugins/impl/RangeSliderPlugin.tsx +16 -2
  913. package/src/plugins/impl/RefreshPlugin.tsx +1 -0
  914. package/src/plugins/impl/SliderPlugin.tsx +41 -11
  915. package/src/plugins/impl/__test__/slider-labels.test.tsx +30 -0
  916. package/src/plugins/impl/__tests__/DataEditorPlugin.test.ts +190 -10
  917. package/src/plugins/impl/__tests__/DataTablePlugin.test.tsx +471 -1
  918. package/src/plugins/impl/__tests__/FileBrowserPlugin.test.tsx +45 -0
  919. package/src/plugins/impl/__tests__/RangeSliderPlugin.test.tsx +109 -0
  920. package/src/plugins/impl/__tests__/SliderPlugin.test.tsx +64 -3
  921. package/src/plugins/impl/anywidget/__tests__/registry.test.ts +153 -0
  922. package/src/plugins/impl/anywidget/__tests__/widget-binding.test.ts +241 -2
  923. package/src/plugins/impl/anywidget/model.ts +3 -1
  924. package/src/plugins/impl/anywidget/registry.ts +18 -14
  925. package/src/plugins/impl/anywidget/runtime.ts +21 -9
  926. package/src/plugins/impl/anywidget/widget-binding.ts +160 -82
  927. package/src/plugins/impl/chat/__tests__/chat-prompts.test.tsx +93 -0
  928. package/src/plugins/impl/chat/chat-ui.tsx +17 -15
  929. package/src/plugins/impl/code/any-language-editor.tsx +2 -2
  930. package/src/plugins/impl/common/error-banner.tsx +5 -3
  931. package/src/plugins/impl/data-editor/__tests__/column-types.test.ts +42 -0
  932. package/src/plugins/impl/data-editor/__tests__/editor-state.test.ts +52 -1
  933. package/src/plugins/impl/data-editor/__tests__/glide-data-editor.test.tsx +278 -7
  934. package/src/plugins/impl/data-editor/__tests__/glide-utils.test.ts +116 -0
  935. package/src/plugins/impl/data-editor/column-types.ts +55 -0
  936. package/src/plugins/impl/data-editor/editor-state.ts +18 -2
  937. package/src/plugins/impl/data-editor/glide-data-editor.tsx +104 -22
  938. package/src/plugins/impl/data-editor/glide-portal.tsx +5 -3
  939. package/src/plugins/impl/data-editor/glide-utils.ts +39 -38
  940. package/src/plugins/impl/data-editor/types.ts +5 -0
  941. package/src/plugins/impl/data-explorer/ConnectedDataExplorerComponent.tsx +1 -1
  942. package/src/plugins/impl/data-explorer/components/column-summary.tsx +4 -2
  943. package/src/plugins/impl/data-explorer/functions/types.ts +1 -5
  944. package/src/plugins/impl/data-explorer/state/reducer.ts +1 -1
  945. package/src/plugins/impl/data-frames/DataFramePlugin.tsx +1 -2
  946. package/src/plugins/impl/data-frames/__tests__/sidebar.test.tsx +160 -0
  947. package/src/plugins/impl/data-frames/forms/__tests__/__snapshots__/form.test.tsx.snap +66 -66
  948. package/src/plugins/impl/data-frames/panel.tsx +44 -16
  949. package/src/plugins/impl/mpl-interactive/MplInteractivePlugin.tsx +5 -3
  950. package/src/plugins/impl/panel/PanelPlugin.tsx +16 -17
  951. package/src/plugins/impl/panel/__tests__/utils.test.ts +39 -1
  952. package/src/plugins/impl/panel/utils.ts +17 -0
  953. package/src/plugins/impl/plotly/PlotlyPlugin.tsx +2 -5
  954. package/src/plugins/impl/plotly/selection.ts +25 -19
  955. package/src/plugins/impl/vega/VegaPlugin.tsx +2 -3
  956. package/src/plugins/impl/vega/make-selectable.ts +4 -7
  957. package/src/plugins/layout/AccordionPlugin.tsx +2 -1
  958. package/src/plugins/layout/DownloadPlugin.tsx +7 -11
  959. package/src/plugins/layout/LazyPlugin.tsx +7 -4
  960. package/src/plugins/layout/RoutesPlugin.tsx +1 -1
  961. package/src/plugins/layout/TexPlugin.tsx +0 -1
  962. package/src/plugins/layout/__test__/DownloadPlugin.test.tsx +205 -0
  963. package/src/plugins/layout/__test__/mermaid.test.tsx +256 -0
  964. package/src/plugins/layout/__tests__/AccordionPlugin.test.tsx +21 -0
  965. package/src/plugins/layout/__tests__/LazyPlugin.test.tsx +98 -0
  966. package/src/plugins/layout/mermaid/mermaid.tsx +63 -17
  967. package/src/stories/__tests__/editor-story.test.tsx +33 -0
  968. package/src/stories/button.stories.tsx +1 -0
  969. package/src/stories/cell-status.stories.tsx +29 -24
  970. package/src/stories/cell.stories.tsx +67 -57
  971. package/src/stories/data-table.stories.tsx +31 -0
  972. package/src/stories/editor.stories.tsx +28 -18
  973. package/src/stories/form-wrapper.stories.tsx +2 -2
  974. package/src/stories/layout/vertical/one-column.stories.tsx +43 -49
  975. package/src/stories/runtime-story.tsx +23 -17
  976. package/src/stories/select.stories.tsx +2 -2
  977. package/src/stories/switchable-multi-select.stories.tsx +1 -1
  978. package/src/stories/theme.stories.tsx +4 -2
  979. package/src/theme/__tests__/islands-theme.test.tsx +276 -0
  980. package/src/theme/__tests__/useTheme.test.ts +9 -38
  981. package/src/theme/namespace.tsx +4 -3
  982. package/src/theme/useTheme.ts +70 -55
  983. package/src/utils/__tests__/arrays.test.ts +35 -0
  984. package/src/utils/__tests__/batch-requests.test.ts +3 -3
  985. package/src/utils/__tests__/{createReducer.test.ts → createReducer.test.tsx} +127 -1
  986. package/src/utils/__tests__/download.test.tsx +183 -23
  987. package/src/utils/__tests__/numbers.test.ts +105 -1
  988. package/src/utils/__tests__/objects.test.ts +21 -0
  989. package/src/utils/arrays.ts +11 -2
  990. package/src/utils/blob.ts +1 -1
  991. package/src/utils/createReducer.ts +115 -79
  992. package/src/utils/download.ts +67 -6
  993. package/src/utils/errors.ts +0 -7
  994. package/src/utils/maps.ts +0 -3
  995. package/src/utils/numbers.ts +79 -18
  996. package/src/utils/objects.ts +4 -9
  997. package/src/utils/once.ts +19 -19
  998. package/src/utils/time.ts +10 -0
  999. package/src/utils/tracer.ts +9 -5
  1000. package/src/utils/zod-utils.ts +1 -3
  1001. package/dist/_baseMerge-BiGRwuqv.js +0 -165
  1002. package/dist/any-language-editor-B9REGlD9.js +0 -76
  1003. package/dist/architecture-7GRP2DOG-BWLylgiA.js +0 -3
  1004. package/dist/assets/__vite-browser-external-BXYkiFsk.js +0 -1
  1005. package/dist/assets/worker-HPY9fbhz.js +0 -114
  1006. package/dist/classDiagram-ZZMXUADV-Bt98lkkv.js +0 -30
  1007. package/dist/classDiagram-v2-VYDZK3BY-D9bfbcC3.js +0 -30
  1008. package/dist/code-visibility-Lu0dkrFO.js +0 -138
  1009. package/dist/cynefin-OW5HDTMX-obq-i80l.js +0 -3
  1010. package/dist/dropdown-menu-CP_qCYHC.js +0 -4678
  1011. package/dist/duckdb-keywords-BGArYVVK.js +0 -3
  1012. package/dist/error-entries-CzoYkIQZ.js +0 -56
  1013. package/dist/eventmodeling-NTZA5JFV-D7nP7Uyu.js +0 -3
  1014. package/dist/feedback-button-DQA-pzxi.js +0 -380
  1015. package/dist/flowDiagram-HODETNUW-CAYbpJmV.js +0 -16
  1016. package/dist/gitGraph-4MIJSDKK-Dy9uQXGh.js +0 -3
  1017. package/dist/hasIn-o2Us0uVx.js +0 -132
  1018. package/dist/highlighted-body-KPVGNVTW-zwjq21tf.js +0 -38
  1019. package/dist/html-to-image-CZY1pIZH.js +0 -3251
  1020. package/dist/info-A6RAGUB7-DKoayiHY.js +0 -3
  1021. package/dist/isArrayLikeObject-BZl-15ir.js +0 -450
  1022. package/dist/isEmpty-BSZ1LaUo.js +0 -35
  1023. package/dist/isSymbol-kQcfYbNX.js +0 -8
  1024. package/dist/label-BDKF3Afc.js +0 -281
  1025. package/dist/mermaid-HWGCJPDP-ByCsZnYF.js +0 -2
  1026. package/dist/packet-AYTQ26CC-Yw7ajchJ.js +0 -3
  1027. package/dist/pick-CJeoxYOS.js +0 -51
  1028. package/dist/pie-WAS4IAKB-BKdKOAkL.js +0 -3
  1029. package/dist/purify.es-DMv5zIkJ.js +0 -866
  1030. package/dist/radar-RG4KPBEZ-ScR_D_Ts.js +0 -3
  1031. package/dist/railroad-74A4TZTK-DQvPSdo5.js +0 -3
  1032. package/dist/railroad-abnf-HS5TGJTU-CsJQG2O8.js +0 -3
  1033. package/dist/railroad-ebnf-LZEXJU2U-BgEobkSn.js +0 -3
  1034. package/dist/railroad-peg-WCYAUIDC-DjLAjofI.js +0 -3
  1035. package/dist/select-BButFi-d.js +0 -1344
  1036. package/dist/stateDiagram-v2-MP3YSRHH-CISYxma6.js +0 -30
  1037. package/dist/swimlanesDiagram-VR7AAH4N-c8G5pGxC.js +0 -30
  1038. package/dist/toast-B9UMEi8u.js +0 -1830
  1039. package/dist/treeView-Q6P3EWNA-DuRV97YF.js +0 -3
  1040. package/dist/treemap-WGGIJYW6-AsLq-uwC.js +0 -3
  1041. package/dist/use-restore-focus-BEM7sFWl.js +0 -6369
  1042. package/dist/useLifecycle-j7D9uD1o.js +0 -169
  1043. package/dist/useTheme-CRnjkku0.js +0 -904
  1044. package/dist/wardley-WFR3VGLG-Na-tFhQJ.js +0 -3
  1045. package/src/components/chat/reasoning-accordion.tsx +0 -61
  1046. package/src/components/chat/tool-call/tool-error-card.tsx +0 -81
  1047. package/src/components/chat/tool-call/tool-history-row.tsx +0 -174
  1048. package/src/components/editor/ai/__tests__/staged-cell-submission.test.ts +0 -106
  1049. package/src/components/editor/ai/add-cell-with-ai.tsx +0 -506
  1050. package/src/components/editor/ai/staged-cell-submission.ts +0 -46
  1051. package/src/components/editor/alerts/connecting-alert.tsx +0 -27
  1052. package/src/components/editor/cell/__tests__/StagedAICell.test.tsx +0 -64
  1053. package/src/components/editor/cell/code/__tests__/rtc-editor-config.test.ts +0 -50
  1054. package/src/components/editor/chrome/wrapper/footer-items/rtc-status.tsx +0 -65
  1055. package/src/components/editor/navigation/__tests__/state.test.ts +0 -81
  1056. package/src/components/editor/navigation/state.ts +0 -65
  1057. package/src/components/icons/loading-ellipsis.tsx +0 -46
  1058. package/src/core/ai/tools/__tests__/run-cells-tool.test.ts +0 -656
  1059. package/src/core/ai/tools/run-cells-tool.ts +0 -303
  1060. package/src/core/cells/__tests__/apply-transaction.test.ts +0 -991
  1061. package/src/core/cells/__tests__/document-changes.test.ts +0 -1140
  1062. package/src/core/cells/__tests__/document-roundtrip.test.ts +0 -392
  1063. package/src/core/cells/document-changes.ts +0 -944
  1064. package/src/core/codemirror/rtc/extension.ts +0 -453
  1065. package/src/core/codemirror/rtc/loro/__tests__/sync.test.ts +0 -52
  1066. package/src/core/codemirror/rtc/loro/awareness.ts +0 -531
  1067. package/src/core/codemirror/rtc/loro/colors.ts +0 -38
  1068. package/src/core/codemirror/rtc/loro/sync.ts +0 -168
  1069. package/src/core/host/AGENTS.md +0 -6
  1070. package/src/core/host/__tests__/protocol.test.ts +0 -214
  1071. package/src/core/host/protocol.ts +0 -1943
  1072. package/src/core/network/__tests__/requests-lazy.test.ts +0 -334
  1073. package/src/core/network/requests-lazy.ts +0 -226
  1074. package/src/core/rtc/state.ts +0 -34
  1075. package/src/core/state/__tests__/jotai.test.ts +0 -25
  1076. package/src/core/wasm/worker/message-buffer.ts +0 -33
  1077. package/src/core/websocket/__tests__/useMarimoKernelConnection.hook.test.tsx +0 -596
  1078. package/src/core/websocket/__tests__/useWebSocket.test.ts +0 -49
  1079. package/src/core/websocket/transports/__tests__/basic.test.ts +0 -275
  1080. package/src/core/websocket/transports/__tests__/sse.test.ts +0 -338
  1081. package/src/core/websocket/transports/__tests__/transport.test.ts +0 -308
  1082. package/src/core/websocket/transports/__tests__/ws.test.ts +0 -125
  1083. package/src/core/websocket/transports/basic.ts +0 -102
  1084. package/src/core/websocket/transports/sse.ts +0 -308
  1085. package/src/core/websocket/transports/transport.ts +0 -61
  1086. package/src/core/websocket/transports/ws.ts +0 -98
  1087. package/src/core/websocket/types.ts +0 -47
  1088. package/src/core/websocket/useWebSocket.tsx +0 -88
  1089. package/src/utils/__tests__/id-tree.test.ts +0 -2145
  1090. package/src/utils/id-tree.tsx +0 -1134
@@ -1,54 +1,55 @@
1
- import { a as e, r as t } from "./rolldown-runtime-Cb76FRpK.js";
2
- import { g as n } from "./button-CvjkwdSk.js";
3
- import { t as r } from "./react-sHtZdjeP.js";
4
- import { t as i } from "./compiler-runtime-CldRdSsv.js";
5
- import { t as a } from "./jsx-runtime-3BD1kT0s.js";
6
- import { n as o } from "./error-banner-Da600cwz.js";
7
- import { t as s } from "./graphlib-BmY_CCV9.js";
8
- import { n as c } from "./useTheme-CRnjkku0.js";
9
- import { t as l } from "./useAsyncData-Deh5kszT.js";
10
- import { t as u } from "./purify.es-DMv5zIkJ.js";
11
- import { S as d, a as f, d as p, f as m, g as h, h as g, i as _, o as v, v as y, x as b, y as x } from "./chunk-75Z2AOVW-D7gxIs2Q.js";
12
- import { n as S, r as C, t as w } from "./src-CA_m4ONl.js";
13
- import { n as T } from "./chunk-Y2CYZVJY-DKKS1VyV.js";
14
- import { C as E, E as D, I as O, L as k, N as A, P as j, Q as M, S as N, T as ee, V as P, W as F, X as I, Z as L, _ as R, b as z, c as te, g as ne, l as re, m as ie, n as ae, p as oe, q as se, r as ce, s as le, t as ue, u as de, x as fe } from "./chunk-DU6HZSFF-BwiyaNpg.js";
15
- import "./chunk-P2QGCYS3-B_Zd3-X0.js";
16
- import { r as B } from "./chunk-PWAF6VOD-CQw5qATZ.js";
17
- import { i as pe } from "./chunk-GMAD6QVW-BhaJx0X3.js";
18
- import { a as me } from "./chunk-4HAMMTFA-D4eFPyFh.js";
19
- import { i as he, n as ge, r as _e, t as ve } from "./chunk-GVQU2GXP-Cwbt-lF0.js";
20
- import { n as ye, t as be } from "./chunk-L3NEJ4N5-n-zgIVSy.js";
21
- import { a as xe, c as Se, i as Ce, l as we, n as Te, r as Ee, s as De, t as Oe } from "./chunk-OSK3NFVY-DXa-Cxbn.js";
1
+ import { a as e, r as t } from "./rolldown-runtime-BPCzCO3I.js";
2
+ import { g as n } from "./button-qQhINE7z.js";
3
+ import { t as r } from "./react-Bgs_wQh3.js";
4
+ import { t as i } from "./compiler-runtime-C5KHtL5D.js";
5
+ import { t as a } from "./jsx-runtime-D8btoEHk.js";
6
+ import { d as o } from "./use-restore-focus-CE9Sflmg.js";
7
+ import { n as s } from "./error-banner-CHPLqogX.js";
8
+ import { t as c } from "./graphlib-nlwT3Wvy.js";
9
+ import { t as l } from "./purify.es-DmnrIjg4.js";
10
+ import { t as u } from "./lru-0OWJJMrW.js";
11
+ import { t as d } from "./useAsyncData-P5-Oovhq.js";
12
+ import { S as f, a as p, d as m, f as h, g, h as _, i as v, o as y, v as b, x, y as S } from "./chunk-75Z2AOVW-76L6My3P.js";
13
+ import { n as C, r as w, t as T } from "./src-D5uZaZib.js";
14
+ import { n as E } from "./chunk-Y2CYZVJY-DKKS1VyV.js";
15
+ import { C as D, E as O, I as k, L as ee, N as A, P as j, Q as te, S as M, T as N, V as P, W as F, X as I, Z as L, _ as R, b as z, c as ne, g as re, l as ie, m as ae, n as oe, p as se, q as ce, r as le, s as ue, t as de, u as fe, x as B } from "./chunk-DU6HZSFF-4SDIhUTY.js";
16
+ import "./chunk-P2QGCYS3-DJApLVdt.js";
17
+ import { r as pe } from "./chunk-PWAF6VOD-CRu_RGP2.js";
18
+ import { i as me } from "./chunk-GMAD6QVW-BJGF8QZL.js";
19
+ import { a as he } from "./chunk-4HAMMTFA-qKgadZwy.js";
20
+ import { i as ge, n as _e, r as ve, t as ye } from "./chunk-GVQU2GXP-BkolpSXU.js";
21
+ import { n as be, t as xe } from "./chunk-L3NEJ4N5-B-BFQp9t.js";
22
+ import { a as Se, c as Ce, i as we, l as Te, n as Ee, r as De, s as Oe, t as ke } from "./chunk-OSK3NFVY-BzfZ4VBG.js";
22
23
  //#region ../node_modules/.pnpm/mermaid@11.17.2/node_modules/mermaid/dist/chunks/mermaid.core/chunk-CLGD4ZFX.mjs
23
- var ke = i(), Ae = /* @__PURE__ */ T((e) => {
24
- let { securityLevel: t } = fe(), n = w("body");
24
+ var Ae = i(), je = /* @__PURE__ */ E((e) => {
25
+ let { securityLevel: t } = B(), n = T("body");
25
26
  if (t === "sandbox") {
26
- let t = w(`#i${e}`).node()?.contentDocument ?? document;
27
- n = w(t.body);
27
+ let t = T(`#i${e}`).node()?.contentDocument ?? document;
28
+ n = T(t.body);
28
29
  }
29
30
  return n.select(`#${e}`);
30
31
  }, "selectSvgElement");
31
32
  //#endregion
32
33
  //#region ../node_modules/.pnpm/es-toolkit@1.50.0/node_modules/es-toolkit/dist/compat/_internal/isPrototype.mjs
33
- function je(e) {
34
+ function Me(e) {
34
35
  let t = e?.constructor;
35
36
  return e === (typeof t == "function" ? t.prototype : Object.prototype);
36
37
  }
37
38
  //#endregion
38
39
  //#region ../node_modules/.pnpm/es-toolkit@1.50.0/node_modules/es-toolkit/dist/compat/predicate/isEmpty.mjs
39
- function Me(e) {
40
+ function Ne(e) {
40
41
  if (e == null) return !0;
41
- if (b(e)) return typeof e.splice != "function" && typeof e != "string" && !d(e) && !y(e) && !x(e) ? !1 : e.length === 0;
42
+ if (x(e)) return typeof e.splice != "function" && typeof e != "string" && !f(e) && !b(e) && !S(e) ? !1 : e.length === 0;
42
43
  if (typeof e == "object" || typeof e == "function") {
43
44
  if (e instanceof Map || e instanceof Set) return e.size === 0;
44
45
  let t = Object.keys(e);
45
- return je(e) ? t.filter((e) => e !== "constructor").length === 0 : t.length === 0;
46
+ return Me(e) ? t.filter((e) => e !== "constructor").length === 0 : t.length === 0;
46
47
  }
47
48
  return !0;
48
49
  }
49
50
  //#endregion
50
51
  //#region ../node_modules/.pnpm/mermaid@11.17.2/node_modules/mermaid/dist/chunks/mermaid.core/chunk-2E4U76K2.mjs
51
- function Ne(e, { edgePathsClass: t = "edges edgePaths" } = {}) {
52
+ function Pe(e, { edgePathsClass: t = "edges edgePaths" } = {}) {
52
53
  let n = e.insert("g").attr("class", "root");
53
54
  return {
54
55
  clusters: n.insert("g").attr("class", "clusters"),
@@ -58,10 +59,10 @@ function Ne(e, { edgePathsClass: t = "edges edgePaths" } = {}) {
58
59
  rootGroups: n
59
60
  };
60
61
  }
61
- T(Ne, "createLayoutElementGroups");
62
- async function Pe(e, t) {
62
+ E(Pe, "createLayoutElementGroups");
63
+ async function Fe(e, t) {
63
64
  if (t.label) {
64
- let { shapeSvg: n, bbox: r } = await me(e, t);
65
+ let { shapeSvg: n, bbox: r } = await he(e, t);
65
66
  t.labelBBox = {
66
67
  width: r.width,
67
68
  height: r.height
@@ -71,25 +72,25 @@ async function Pe(e, t) {
71
72
  height: 0
72
73
  };
73
74
  }
74
- T(Pe, "measureGroupLabel");
75
- async function Fe(e, t, n) {
76
- let r = await _e(e, t, n), i = r.node()?.getBBox() ?? {
75
+ E(Fe, "measureGroupLabel");
76
+ async function Ie(e, t, n) {
77
+ let r = await ve(e, t, n), i = r.node()?.getBBox() ?? {
77
78
  width: 0,
78
79
  height: 0
79
80
  };
80
81
  return t.width = i.width, t.height = i.height, r;
81
82
  }
82
- T(Fe, "insertMeasuredNode");
83
- async function Ie(e, t) {
84
- let n = new s({
83
+ E(Ie, "insertMeasuredNode");
84
+ async function Le(e, t) {
85
+ let n = new c({
85
86
  multigraph: !0,
86
87
  compound: !0
87
- }), r = [...t.edges], i = fe(), a = Ne(e), { edgeLabels: o, nodes: c } = a, l = /* @__PURE__ */ new Map(), u = e.node() != null;
88
+ }), r = [...t.edges], i = B(), a = Pe(e), { edgeLabels: o, nodes: s } = a, l = /* @__PURE__ */ new Map(), u = e.node() != null;
88
89
  await Promise.all(t.nodes.map(async (e) => {
89
- if (e.isGroup) u && await Pe(c, e), n.setNode(e.id, { ...e });
90
+ if (e.isGroup) u && await Fe(s, e), n.setNode(e.id, { ...e });
90
91
  else {
91
92
  if (u) {
92
- let t = await Fe(c, e, {
93
+ let t = await Ie(s, e, {
93
94
  config: i,
94
95
  dir: e.dir
95
96
  });
@@ -98,9 +99,9 @@ async function Ie(e, t) {
98
99
  n.setNode(e.id, { ...e });
99
100
  }
100
101
  }));
101
- for (let e of r) u && Ee(e) && await xe(o, e), n.setEdge(e.start, e.end, { ...e }, e.id), t.edges.some((t) => t.id === e.id) || t.edges.push(e);
102
+ for (let e of r) u && De(e) && await Se(o, e), n.setEdge(e.start, e.end, { ...e }, e.id), t.edges.some((t) => t.id === e.id) || t.edges.push(e);
102
103
  if (globalThis.mermaidCaptureSizes) {
103
- let { captureNodeSizes: n } = await import("./sizeCapture-INFHLROL-Dx5SpkQF.js");
104
+ let { captureNodeSizes: n } = await import("./sizeCapture-INFHLROL-DBeZ20mI.js");
104
105
  n(e, t);
105
106
  }
106
107
  return {
@@ -109,42 +110,42 @@ async function Ie(e, t) {
109
110
  nodeElements: l
110
111
  };
111
112
  }
112
- T(Ie, "createGraphWithElements");
113
- var V = /* @__PURE__ */ new Map(), H = /* @__PURE__ */ new Map(), Le = /* @__PURE__ */ new Map(), Re = /* @__PURE__ */ T(() => {
114
- H.clear(), Le.clear(), V.clear();
115
- }, "clear"), ze = /* @__PURE__ */ T((e, t) => {
113
+ E(Le, "createGraphWithElements");
114
+ var V = /* @__PURE__ */ new Map(), H = /* @__PURE__ */ new Map(), Re = /* @__PURE__ */ new Map(), ze = /* @__PURE__ */ E(() => {
115
+ H.clear(), Re.clear(), V.clear();
116
+ }, "clear"), Be = /* @__PURE__ */ E((e, t) => {
116
117
  let n = H.get(t) || [];
117
- return S.trace("In isDescendant", t, " ", e, " = ", n.includes(e)), n.includes(e);
118
- }, "isDescendant"), Be = /* @__PURE__ */ T((e, t) => {
118
+ return C.trace("In isDescendant", t, " ", e, " = ", n.includes(e)), n.includes(e);
119
+ }, "isDescendant"), Ve = /* @__PURE__ */ E((e, t) => {
119
120
  let n = H.get(t) || [];
120
- return S.info("Descendants of ", t, " is ", n), S.info("Edge is ", e), e.v === t || e.w === t ? !1 : n ? n.includes(e.v) || ze(e.v, t) || ze(e.w, t) || n.includes(e.w) : (S.debug("Tilt, ", t, ",not in descendants"), !1);
121
- }, "edgeInCluster"), Ve = /* @__PURE__ */ T((e, t, n, r) => {
122
- S.debug("Copying children of ", e, "root", r, "data", t.node(e), r);
121
+ return C.info("Descendants of ", t, " is ", n), C.info("Edge is ", e), e.v === t || e.w === t ? !1 : n ? n.includes(e.v) || Be(e.v, t) || Be(e.w, t) || n.includes(e.w) : (C.debug("Tilt, ", t, ",not in descendants"), !1);
122
+ }, "edgeInCluster"), He = /* @__PURE__ */ E((e, t, n, r) => {
123
+ C.debug("Copying children of ", e, "root", r, "data", t.node(e), r);
123
124
  let i = t.children(e) || [];
124
- e !== r && i.push(e), S.debug("Copying (nodes) clusterId", e, "nodes", i), i.forEach((i) => {
125
- if (t.children(i).length > 0) Ve(i, t, n, r);
125
+ e !== r && i.push(e), C.debug("Copying (nodes) clusterId", e, "nodes", i), i.forEach((i) => {
126
+ if (t.children(i).length > 0) He(i, t, n, r);
126
127
  else {
127
128
  let a = t.node(i);
128
- S.info("cp ", i, " to ", r, " with parent ", e), n.setNode(i, a), r !== t.parent(i) && (S.debug("Setting parent", i, t.parent(i)), n.setParent(i, t.parent(i))), e !== r && i !== e ? (S.debug("Setting parent", i, e), n.setParent(i, e)) : (S.info("In copy ", e, "root", r, "data", t.node(e), r), S.debug("Not Setting parent for node=", i, "cluster!==rootId", e !== r, "node!==clusterId", i !== e));
129
+ C.info("cp ", i, " to ", r, " with parent ", e), n.setNode(i, a), r !== t.parent(i) && (C.debug("Setting parent", i, t.parent(i)), n.setParent(i, t.parent(i))), e !== r && i !== e ? (C.debug("Setting parent", i, e), n.setParent(i, e)) : (C.info("In copy ", e, "root", r, "data", t.node(e), r), C.debug("Not Setting parent for node=", i, "cluster!==rootId", e !== r, "node!==clusterId", i !== e));
129
130
  let o = t.edges(i);
130
- S.debug("Copying Edges", o), o.forEach((i) => {
131
- S.info("Edge", i);
131
+ C.debug("Copying Edges", o), o.forEach((i) => {
132
+ C.info("Edge", i);
132
133
  let a = t.edge(i.v, i.w, i.name);
133
- S.info("Edge data", a, r);
134
+ C.info("Edge data", a, r);
134
135
  try {
135
- Be(i, r) ? (S.info("Copying as ", i.v, i.w, a, i.name), n.setEdge(i.v, i.w, a, i.name), S.info("newGraph edges ", n.edges(), n.edge(n.edges()[0]))) : S.info("Skipping copy of edge ", i.v, "-->", i.w, " rootId: ", r, " clusterId:", e);
136
+ Ve(i, r) ? (C.info("Copying as ", i.v, i.w, a, i.name), n.setEdge(i.v, i.w, a, i.name), C.info("newGraph edges ", n.edges(), n.edge(n.edges()[0]))) : C.info("Skipping copy of edge ", i.v, "-->", i.w, " rootId: ", r, " clusterId:", e);
136
137
  } catch (e) {
137
- S.error(e);
138
+ C.error(e);
138
139
  }
139
140
  });
140
141
  }
141
- S.debug("Removing node", i), t.removeNode(i);
142
+ C.debug("Removing node", i), t.removeNode(i);
142
143
  });
143
- }, "copy"), He = /* @__PURE__ */ T((e, t) => {
144
+ }, "copy"), Ue = /* @__PURE__ */ E((e, t) => {
144
145
  let n = t.children(e), r = [...n];
145
- for (let i of n) Le.set(i, e), r = [...r, ...He(i, t)];
146
+ for (let i of n) Re.set(i, e), r = [...r, ...Ue(i, t)];
146
147
  return r;
147
- }, "extractDescendants"), Ue = /* @__PURE__ */ T((e, t, n) => {
148
+ }, "extractDescendants"), We = /* @__PURE__ */ E((e, t, n) => {
148
149
  let r = e.edges().filter((e) => e.v === t || e.w === t), i = e.edges().filter((e) => e.v === n || e.w === n), a = r.map((e) => ({
149
150
  v: e.v === t ? n : e.v,
150
151
  w: e.w === t ? t : e.w
@@ -153,62 +154,61 @@ var V = /* @__PURE__ */ new Map(), H = /* @__PURE__ */ new Map(), Le = /* @__PUR
153
154
  w: e.w
154
155
  }));
155
156
  return a.filter((e) => o.some((t) => e.v === t.v && e.w === t.w));
156
- }, "findCommonEdges"), We = /* @__PURE__ */ T((e, t, n) => {
157
+ }, "findCommonEdges"), Ge = /* @__PURE__ */ E((e, t, n) => {
157
158
  let r = t.children(e);
158
- if (S.trace("Searching children of id ", e, r), r.length < 1) return e;
159
+ if (C.trace("Searching children of id ", e, r), r.length < 1) return e;
159
160
  let i;
160
161
  for (let e of r) {
161
- let r = We(e, t, n), a = Ue(t, n, r);
162
+ let r = Ge(e, t, n), a = We(t, n, r);
162
163
  if (r) {
163
164
  if (a.length > 0) i = r;
164
165
  else return r;
165
166
  }
166
167
  }
167
168
  return i;
168
- }, "findNonClusterChild"), Ge = /* @__PURE__ */ T((e) => !V.has(e) || !V.get(e).externalConnections ? e : V.has(e) ? V.get(e).id : e, "getAnchorId"), Ke = /* @__PURE__ */ T((e, t) => {
169
- if (!e || t > 10) {
170
- S.debug("Opting out, no graph ");
171
- return;
172
- }
173
- S.debug("Opting in, graph "), e.nodes().forEach(function(t) {
174
- e.children(t).length > 0 && (S.debug("Cluster identified", t, " Replacement id in edges: ", We(t, e, t)), H.set(t, He(t, e)), V.set(t, {
175
- id: We(t, e, t),
176
- clusterData: e.node(t)
177
- }));
178
- }), e.nodes().forEach(function(t) {
179
- let n = e.children(t), r = e.edges();
180
- n.length > 0 ? (S.debug("Cluster identified", t, H), r.forEach((e) => {
181
- ze(e.v, t) ^ ze(e.w, t) && (S.debug("Edge: ", e, " leaves cluster ", t), S.debug("Descendants of XXX ", t, ": ", H.get(t)), V.get(t).externalConnections = !0);
182
- })) : S.debug("Not a cluster ", t, H);
183
- });
184
- for (let t of V.keys()) {
185
- let n = V.get(t).id, r = e.parent(n);
186
- r !== t && V.has(r) && !V.get(r).externalConnections && (V.get(t).id = r);
187
- let i = e.edges().some((e) => e.v === t);
188
- if (n && V.get(t)?.externalConnections && i && Xe(e, n, t)) {
189
- let r = Ze(e, t, e.parent(n));
190
- r && (V.get(t).id = r);
191
- }
192
- }
193
- e.edges().forEach(function(t) {
194
- let n = e.edge(t);
195
- S.debug("Edge " + t.v + " -> " + t.w + ": " + JSON.stringify(t)), S.debug("Edge " + t.v + " -> " + t.w + ": " + JSON.stringify(e.edge(t)));
196
- let r = t.v, i = t.w;
197
- if (S.debug("Fix XXX", V, "ids:", t.v, t.w, "Translating: ", V.get(t.v), " --- ", V.get(t.w)), V.get(t.v) || V.get(t.w)) {
198
- if (S.debug("Fixing and trying - removing XXX", t.v, t.w, t.name), r = Ge(t.v), i = Ge(t.w), e.removeEdge(t.v, t.w, t.name), r !== t.v) {
199
- let i = e.parent(r);
200
- V.get(i).externalConnections = !0, n.fromCluster = t.v;
201
- }
202
- if (i !== t.w) {
203
- let r = e.parent(i);
204
- V.get(r).externalConnections = !0, n.toCluster = t.w;
169
+ }, "findNonClusterChild"), Ke = /* @__PURE__ */ E((e) => !V.has(e) || !V.get(e).externalConnections ? e : V.has(e) ? V.get(e).id : e, "getAnchorId"), qe = /* @__PURE__ */ E((e, t) => {
170
+ if (!e || t > 10) C.debug("Opting out, no graph ");
171
+ else {
172
+ C.debug("Opting in, graph "), e.nodes().forEach(function(t) {
173
+ e.children(t).length > 0 && (C.debug("Cluster identified", t, " Replacement id in edges: ", Ge(t, e, t)), H.set(t, Ue(t, e)), V.set(t, {
174
+ id: Ge(t, e, t),
175
+ clusterData: e.node(t)
176
+ }));
177
+ }), e.nodes().forEach(function(t) {
178
+ let n = e.children(t), r = e.edges();
179
+ n.length > 0 ? (C.debug("Cluster identified", t, H), r.forEach((e) => {
180
+ Be(e.v, t) ^ Be(e.w, t) && (C.debug("Edge: ", e, " leaves cluster ", t), C.debug("Descendants of XXX ", t, ": ", H.get(t)), V.get(t).externalConnections = !0);
181
+ })) : C.debug("Not a cluster ", t, H);
182
+ });
183
+ for (let t of V.keys()) {
184
+ let n = V.get(t).id, r = e.parent(n);
185
+ r !== t && V.has(r) && !V.get(r).externalConnections && (V.get(t).id = r);
186
+ let i = e.edges().some((e) => e.v === t);
187
+ if (n && V.get(t)?.externalConnections && i && Ze(e, n, t)) {
188
+ let r = Qe(e, t, e.parent(n));
189
+ r && (V.get(t).id = r);
205
190
  }
206
- S.debug("Fix Replacing with XXX", r, i, t.name), e.setEdge(r, i, n, t.name);
207
191
  }
208
- }), qe(e, 0), S.trace(V);
209
- }, "adjustClustersAndEdges"), qe = /* @__PURE__ */ T((e, t) => {
192
+ e.edges().forEach(function(t) {
193
+ let n = e.edge(t);
194
+ C.debug("Edge " + t.v + " -> " + t.w + ": " + JSON.stringify(t)), C.debug("Edge " + t.v + " -> " + t.w + ": " + JSON.stringify(e.edge(t)));
195
+ let r = t.v, i = t.w;
196
+ if (C.debug("Fix XXX", V, "ids:", t.v, t.w, "Translating: ", V.get(t.v), " --- ", V.get(t.w)), V.get(t.v) || V.get(t.w)) {
197
+ if (C.debug("Fixing and trying - removing XXX", t.v, t.w, t.name), r = Ke(t.v), i = Ke(t.w), e.removeEdge(t.v, t.w, t.name), r !== t.v) {
198
+ let i = e.parent(r);
199
+ V.get(i).externalConnections = !0, n.fromCluster = t.v;
200
+ }
201
+ if (i !== t.w) {
202
+ let r = e.parent(i);
203
+ V.get(r).externalConnections = !0, n.toCluster = t.w;
204
+ }
205
+ C.debug("Fix Replacing with XXX", r, i, t.name), e.setEdge(r, i, n, t.name);
206
+ }
207
+ }), Je(e, 0), C.trace(V);
208
+ }
209
+ }, "adjustClustersAndEdges"), Je = /* @__PURE__ */ E((e, t) => {
210
210
  if (t > 10) {
211
- S.error("Bailing out");
211
+ C.error("Bailing out");
212
212
  return;
213
213
  }
214
214
  let n = e.nodes(), r = !1;
@@ -216,49 +216,48 @@ var V = /* @__PURE__ */ new Map(), H = /* @__PURE__ */ new Map(), Le = /* @__PUR
216
216
  let n = e.children(t);
217
217
  r ||= n.length > 0;
218
218
  }
219
- if (!r) {
220
- S.debug("Done, no node has children", e.nodes());
221
- return;
222
- }
223
- S.debug("Nodes = ", n, t);
224
- for (let r of n) if (S.debug("Extracting node", r, V, V.has(r) && !V.get(r).externalConnections, !e.parent(r), e.node(r), e.children("D"), " Depth ", t), !V.has(r)) S.debug("Not a cluster", r, t);
225
- else if (!V.get(r).externalConnections && e.children(r) && e.children(r).length > 0) {
226
- S.debug("Cluster without external connections, without a parent and with children", r, t);
227
- let n = e.graph().rankdir === "TB" ? "LR" : "TB";
228
- V.get(r)?.clusterData?.dir && (n = V.get(r).clusterData.dir, S.debug("Fixing dir", V.get(r).clusterData.dir, n));
229
- let i = new s({
230
- multigraph: !0,
231
- compound: !0
232
- }).setGraph({
233
- rankdir: n,
234
- nodesep: 50,
235
- ranksep: 50,
236
- marginx: 8,
237
- marginy: 8
238
- }).setDefaultEdgeLabel(function() {
239
- return {};
240
- });
241
- Ve(r, e, i, r), e.setNode(r, {
242
- clusterNode: !0,
243
- id: r,
244
- clusterData: V.get(r).clusterData,
245
- label: V.get(r).label,
246
- graph: i
247
- });
248
- } else S.debug("Cluster ** ", r, " **not meeting the criteria !externalConnections:", !V.get(r).externalConnections, " no parent: ", !e.parent(r), " children ", e.children(r) && e.children(r).length > 0, e.children("D"), t), S.debug(V);
249
- n = e.nodes(), S.debug("New list of nodes", n);
250
- for (let r of n) {
251
- let n = e.node(r);
252
- S.debug(" Now next level", r, n), n?.clusterNode && qe(n.graph, t + 1);
219
+ if (!r) C.debug("Done, no node has children", e.nodes());
220
+ else {
221
+ C.debug("Nodes = ", n, t);
222
+ for (let r of n) if (C.debug("Extracting node", r, V, V.has(r) && !V.get(r).externalConnections, !e.parent(r), e.node(r), e.children("D"), " Depth ", t), !V.has(r)) C.debug("Not a cluster", r, t);
223
+ else if (!V.get(r).externalConnections && e.children(r) && e.children(r).length > 0) {
224
+ C.debug("Cluster without external connections, without a parent and with children", r, t);
225
+ let n = e.graph().rankdir === "TB" ? "LR" : "TB";
226
+ V.get(r)?.clusterData?.dir && (n = V.get(r).clusterData.dir, C.debug("Fixing dir", V.get(r).clusterData.dir, n));
227
+ let i = new c({
228
+ multigraph: !0,
229
+ compound: !0
230
+ }).setGraph({
231
+ rankdir: n,
232
+ nodesep: 50,
233
+ ranksep: 50,
234
+ marginx: 8,
235
+ marginy: 8
236
+ }).setDefaultEdgeLabel(function() {
237
+ return {};
238
+ });
239
+ He(r, e, i, r), e.setNode(r, {
240
+ clusterNode: !0,
241
+ id: r,
242
+ clusterData: V.get(r).clusterData,
243
+ label: V.get(r).label,
244
+ graph: i
245
+ });
246
+ } else C.debug("Cluster ** ", r, " **not meeting the criteria !externalConnections:", !V.get(r).externalConnections, " no parent: ", !e.parent(r), " children ", e.children(r) && e.children(r).length > 0, e.children("D"), t), C.debug(V);
247
+ n = e.nodes(), C.debug("New list of nodes", n);
248
+ for (let r of n) {
249
+ let n = e.node(r);
250
+ C.debug(" Now next level", r, n), n?.clusterNode && Je(n.graph, t + 1);
251
+ }
253
252
  }
254
- }, "extractor"), Je = /* @__PURE__ */ T((e, t) => {
253
+ }, "extractor"), Ye = /* @__PURE__ */ E((e, t) => {
255
254
  if (t.length === 0) return [];
256
255
  let n = Object.assign([], t);
257
256
  return t.forEach((t) => {
258
- let r = Je(e, e.children(t));
257
+ let r = Ye(e, e.children(t));
259
258
  n = [...n, ...r];
260
259
  }), n;
261
- }, "sorter"), Ye = /* @__PURE__ */ T((e) => Je(e, e.children()), "sortNodesByHierarchy"), Xe = /* @__PURE__ */ T((e, t, n) => {
260
+ }, "sorter"), Xe = /* @__PURE__ */ E((e) => Ye(e, e.children()), "sortNodesByHierarchy"), Ze = /* @__PURE__ */ E((e, t, n) => {
262
261
  let r = e.parent(t);
263
262
  for (; r && r !== n;) {
264
263
  let t = V.get(r);
@@ -266,20 +265,20 @@ var V = /* @__PURE__ */ new Map(), H = /* @__PURE__ */ new Map(), Le = /* @__PUR
266
265
  r = e.parent(r);
267
266
  }
268
267
  return !1;
269
- }, "isNodeInExtractableCluster"), Ze = /* @__PURE__ */ T((e, t, n) => {
268
+ }, "isNodeInExtractableCluster"), Qe = /* @__PURE__ */ E((e, t, n) => {
270
269
  let r = e.children(t) ?? [];
271
270
  for (let i of r) {
272
- if (i === n || ze(i, n)) continue;
273
- let r = We(i, e, t);
274
- if (r && !Xe(e, r, t)) return r;
271
+ if (i === n || Be(i, n)) continue;
272
+ let r = Ge(i, e, t);
273
+ if (r && !Ze(e, r, t)) return r;
275
274
  }
276
275
  return null;
277
276
  }, "findSafeAnchorNode");
278
- function Qe({ prepareLayout: e, measureLayout: t, runLayoutCore: n, paintLayout: r, afterPaint: i, paintOptions: a }) {
279
- let o = t ?? et;
280
- return /* @__PURE__ */ T(async function(t, s, c, l) {
277
+ function $e({ prepareLayout: e, measureLayout: t, runLayoutCore: n, paintLayout: r, afterPaint: i, paintOptions: a }) {
278
+ let o = t ?? tt;
279
+ return /* @__PURE__ */ E(async function(t, s, c, l) {
281
280
  let u = s.select("g");
282
- (c?.insertMarkers ?? De)(u, t.markers, t.type, t.diagramId), $e();
281
+ (c?.insertMarkers ?? Oe)(u, t.markers, t.type, t.diagramId), et();
283
282
  let d = {
284
283
  element: u,
285
284
  helpers: c,
@@ -290,122 +289,122 @@ function Qe({ prepareLayout: e, measureLayout: t, runLayoutCore: n, paintLayout:
290
289
  ...d,
291
290
  measure: f
292
291
  };
293
- r ? await r(t, m, p) : await tt(t, m, a), await i?.(t, m, p);
292
+ r ? await r(t, m, p) : await nt(t, m, a), await i?.(t, m, p);
294
293
  }, "render");
295
294
  }
296
- T(Qe, "createCommonLayoutRenderer");
297
- function $e() {
298
- ve(), Oe(), be(), Re();
295
+ E($e, "createCommonLayoutRenderer");
296
+ function et() {
297
+ ye(), ke(), xe(), ze();
299
298
  }
300
- T($e, "clearLayoutRenderState");
301
- async function et(e, { element: t }) {
302
- return await Ie(t, e);
299
+ E(et, "clearLayoutRenderState");
300
+ async function tt(e, { element: t }) {
301
+ return await Le(t, e);
303
302
  }
304
- T(et, "defaultMeasureLayout");
305
- async function tt(e, t, n = {}) {
303
+ E(tt, "defaultMeasureLayout");
304
+ async function nt(e, t, n = {}) {
306
305
  let { measure: r } = t, { groups: i } = r;
307
- for (let r of n.getNodes?.(e, t) ?? e.nodes) n.skipNode?.(r, t) || await nt(i, r, t, n);
308
- let a = it(e.nodes);
309
- for (let r of e.edges) at(r, n) || await ot(i, r, a, e, n, t);
306
+ for (let r of n.getNodes?.(e, t) ?? e.nodes) n.skipNode?.(r, t) || await rt(i, r, t, n);
307
+ let a = at(e.nodes);
308
+ for (let r of e.edges) ot(r, n) || await st(i, r, a, e, n, t);
310
309
  }
311
- T(tt, "paintLayoutData");
312
- async function nt(e, t, n, r) {
313
- t.clusterNode ? he(t) : rt(t, n, r) ? await ye(e.clusters, t) : he(t);
310
+ E(nt, "paintLayoutData");
311
+ async function rt(e, t, n, r) {
312
+ t.clusterNode ? ge(t) : it(t, n, r) ? await be(e.clusters, t) : ge(t);
314
313
  }
315
- T(nt, "paintLayoutNode");
316
- function rt(e, t, n) {
314
+ E(rt, "paintLayoutNode");
315
+ function it(e, t, n) {
317
316
  return e.isGroup === !0 && (n.isCluster?.(e, t) ?? !0);
318
317
  }
319
- T(rt, "shouldPaintAsCluster");
320
- function it(e) {
318
+ E(it, "shouldPaintAsCluster");
319
+ function at(e) {
321
320
  let t = /* @__PURE__ */ new Map();
322
321
  for (let n of e) n?.id && t.set(n.id, n);
323
322
  return t;
324
323
  }
325
- T(it, "buildNodeLookup");
326
- function at(e, t) {
324
+ E(at, "buildNodeLookup");
325
+ function ot(e, t) {
327
326
  return e.isLayoutOnly || !!t.skipEdge?.(e);
328
327
  }
329
- T(at, "shouldSkipPaintEdge");
330
- async function ot(e, t, n, r, i, a) {
331
- let o = Ce(e.edgePaths, { ...t }, i.clusterDb ?? /* @__PURE__ */ new Map(), r.type, st(t.start, t, n, a, i), st(t.end, t, n, a, i), r.diagramId, ct(t, i));
332
- Ee(t) && (Te.has(t.id) || await xe(e.edgeLabels, t), lt(t, o));
328
+ E(ot, "shouldSkipPaintEdge");
329
+ async function st(e, t, n, r, i, a) {
330
+ let o = we(e.edgePaths, { ...t }, i.clusterDb ?? /* @__PURE__ */ new Map(), r.type, ct(t.start, t, n, a, i), ct(t.end, t, n, a, i), r.diagramId, lt(t, i));
331
+ De(t) && (Ee.has(t.id) || await Se(e.edgeLabels, t), ut(t, o));
333
332
  }
334
- T(ot, "paintLayoutEdge");
335
- function st(e, t, n, r, i) {
333
+ E(st, "paintLayoutEdge");
334
+ function ct(e, t, n, r, i) {
336
335
  return i.getEdgeNode?.(e, t, r) ?? (e ? n.get(e) ?? {} : {});
337
336
  }
338
- T(st, "getRenderedNode");
339
- function ct(e, t) {
337
+ E(ct, "getRenderedNode");
338
+ function lt(e, t) {
340
339
  return typeof t.skipIntersect == "function" ? t.skipIntersect(e) : t.skipIntersect ?? !1;
341
340
  }
342
- T(ct, "shouldSkipIntersect");
343
- function lt(e, t) {
344
- let n = t?.updatedPath ?? t?.originalPath, r = z(), { subGraphTitleTotalMargin: i } = ge({ flowchart: r.flowchart ?? {} });
341
+ E(lt, "shouldSkipIntersect");
342
+ function ut(e, t) {
343
+ let n = t?.updatedPath ?? t?.originalPath, r = z(), { subGraphTitleTotalMargin: i } = _e({ flowchart: r.flowchart ?? {} });
345
344
  if (e.label) {
346
- let r = Te.get(e.id), a = e.x, o = e.y;
345
+ let r = Ee.get(e.id), a = e.x, o = e.y;
347
346
  if (n) {
348
- let r = h.calcLabelPosition(n);
349
- S.debug("Moving label " + e.label + " from (", a, ",", o, ") to (", r.x, ",", r.y, ") abc88"), t?.updatedPath && (a = r.x, o = r.y);
347
+ let r = g.calcLabelPosition(n);
348
+ C.debug("Moving label " + e.label + " from (", a, ",", o, ") to (", r.x, ",", r.y, ") abc88"), t?.updatedPath && (a = r.x, o = r.y);
350
349
  }
351
350
  r.attr("transform", `translate(${a}, ${o + i / 2})`);
352
351
  }
353
352
  if (e?.startLabelLeft) {
354
- let t = we.get(e.id).startLeft, r = e?.x, i = e?.y;
353
+ let t = Te.get(e.id).startLeft, r = e?.x, i = e?.y;
355
354
  if (n) {
356
- let t = h.calcTerminalLabelPosition(e.arrowTypeStart ? 10 : 0, "start_left", n);
355
+ let t = g.calcTerminalLabelPosition(e.arrowTypeStart ? 10 : 0, "start_left", n);
357
356
  r = t.x, i = t.y;
358
357
  }
359
358
  t.attr("transform", `translate(${r}, ${i})`);
360
359
  }
361
360
  if (e.startLabelRight) {
362
- let t = we.get(e.id).startRight, r = e.x, i = e.y;
361
+ let t = Te.get(e.id).startRight, r = e.x, i = e.y;
363
362
  if (n) {
364
- let t = h.calcTerminalLabelPosition(e.arrowTypeStart ? 10 : 0, "start_right", n);
363
+ let t = g.calcTerminalLabelPosition(e.arrowTypeStart ? 10 : 0, "start_right", n);
365
364
  r = t.x, i = t.y;
366
365
  }
367
366
  t.attr("transform", `translate(${r}, ${i})`);
368
367
  }
369
368
  if (e.endLabelLeft) {
370
- let t = we.get(e.id).endLeft, r = e.x, i = e.y;
369
+ let t = Te.get(e.id).endLeft, r = e.x, i = e.y;
371
370
  if (n) {
372
- let t = h.calcTerminalLabelPosition(e.arrowTypeEnd ? 10 : 0, "end_left", n);
371
+ let t = g.calcTerminalLabelPosition(e.arrowTypeEnd ? 10 : 0, "end_left", n);
373
372
  r = t.x, i = t.y;
374
373
  }
375
374
  t.attr("transform", `translate(${r}, ${i})`);
376
375
  }
377
376
  if (e.endLabelRight) {
378
- let t = we.get(e.id).endRight, r = e.x, i = e.y;
377
+ let t = Te.get(e.id).endRight, r = e.x, i = e.y;
379
378
  if (n) {
380
- let t = h.calcTerminalLabelPosition(e.arrowTypeEnd ? 10 : 0, "end_right", n);
379
+ let t = g.calcTerminalLabelPosition(e.arrowTypeEnd ? 10 : 0, "end_right", n);
381
380
  r = t.x, i = t.y;
382
381
  }
383
382
  t.attr("transform", `translate(${r}, ${i})`);
384
383
  }
385
384
  }
386
- T(lt, "positionRenderedEdgeLabel");
385
+ E(ut, "positionRenderedEdgeLabel");
387
386
  //#endregion
388
387
  //#region ../node_modules/.pnpm/mermaid@11.17.2/node_modules/mermaid/dist/chunks/mermaid.core/chunk-LNGE3PJU.mjs
389
- function ut(e) {
388
+ function dt(e) {
390
389
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
391
390
  }
392
- T(ut, "getDefaultExportFromCjs");
393
- var U = {}, dt = {}, W = {}, ft;
391
+ E(dt, "getDefaultExportFromCjs");
392
+ var U = {}, ft = {}, W = {}, pt;
394
393
  function G() {
395
- if (ft) return W;
396
- ft = 1;
394
+ if (pt) return W;
395
+ pt = 1;
397
396
  function e(e) {
398
397
  return e == null;
399
398
  }
400
- T(e, "isNothing");
399
+ E(e, "isNothing");
401
400
  function t(e) {
402
401
  return typeof e == "object" && !!e;
403
402
  }
404
- T(t, "isObject");
403
+ E(t, "isObject");
405
404
  function n(t) {
406
405
  return Array.isArray(t) ? t : e(t) ? [] : [t];
407
406
  }
408
- T(n, "toArray");
407
+ E(n, "toArray");
409
408
  function r(e, t) {
410
409
  if (t) {
411
410
  let n = Object.keys(t);
@@ -416,40 +415,40 @@ function G() {
416
415
  }
417
416
  return e;
418
417
  }
419
- T(r, "extend");
418
+ E(r, "extend");
420
419
  function i(e, t) {
421
420
  let n = "";
422
421
  for (let r = 0; r < t; r += 1) n += e;
423
422
  return n;
424
423
  }
425
- T(i, "repeat");
424
+ E(i, "repeat");
426
425
  function a(e) {
427
426
  return e === 0 && 1 / e == -Infinity;
428
427
  }
429
- return T(a, "isNegativeZero"), W.isNothing = e, W.isObject = t, W.toArray = n, W.repeat = i, W.isNegativeZero = a, W.extend = r, W;
428
+ return E(a, "isNegativeZero"), W.isNothing = e, W.isObject = t, W.toArray = n, W.repeat = i, W.isNegativeZero = a, W.extend = r, W;
430
429
  }
431
- T(G, "requireCommon");
432
- var pt, mt;
433
- function ht() {
434
- if (mt) return pt;
435
- mt = 1;
430
+ E(G, "requireCommon");
431
+ var mt, ht;
432
+ function gt() {
433
+ if (ht) return mt;
434
+ ht = 1;
436
435
  function e(e, t) {
437
436
  let n = "", r = e.reason || "(unknown reason)";
438
437
  return e.mark ? (e.mark.name && (n += "in \"" + e.mark.name + "\" "), n += "(" + (e.mark.line + 1) + ":" + (e.mark.column + 1) + ")", !t && e.mark.snippet && (n += "\n\n" + e.mark.snippet), r + " " + n) : r;
439
438
  }
440
- T(e, "formatError");
439
+ E(e, "formatError");
441
440
  function t(t, n) {
442
441
  Error.call(this), this.name = "YAMLException", this.reason = t, this.mark = n, this.message = e(this, !1), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = (/* @__PURE__ */ Error()).stack || "";
443
442
  }
444
- return T(t, "YAMLException2"), t.prototype = Object.create(Error.prototype), t.prototype.constructor = t, t.prototype.toString = /* @__PURE__ */ T(function(t) {
443
+ return E(t, "YAMLException2"), t.prototype = Object.create(Error.prototype), t.prototype.constructor = t, t.prototype.toString = /* @__PURE__ */ E(function(t) {
445
444
  return this.name + ": " + e(this, t);
446
- }, "toString"), pt = t, pt;
445
+ }, "toString"), mt = t, mt;
447
446
  }
448
- T(ht, "requireException");
449
- var gt, _t;
450
- function vt() {
451
- if (_t) return gt;
452
- _t = 1;
447
+ E(gt, "requireException");
448
+ var _t, vt;
449
+ function yt() {
450
+ if (vt) return _t;
451
+ vt = 1;
453
452
  let e = G();
454
453
  function t(e, t, n, r, i) {
455
454
  let a = "", o = "", s = Math.floor(i / 2) - 1;
@@ -458,11 +457,11 @@ function vt() {
458
457
  pos: r - t + a.length
459
458
  };
460
459
  }
461
- T(t, "getLine");
460
+ E(t, "getLine");
462
461
  function n(t, n) {
463
462
  return e.repeat(" ", n - t.length) + t;
464
463
  }
465
- T(n, "padStart");
464
+ E(n, "padStart");
466
465
  function r(r, i) {
467
466
  if (i = Object.create(i || null), !r.buffer) return null;
468
467
  i.maxLength || (i.maxLength = 79), typeof i.indent != "number" && (i.indent = 1), typeof i.linesBefore != "number" && (i.linesBefore = 3), typeof i.linesAfter != "number" && (i.linesAfter = 2);
@@ -482,14 +481,14 @@ function vt() {
482
481
  }
483
482
  return u.replace(/\n$/, "");
484
483
  }
485
- return T(r, "makeSnippet"), gt = r, gt;
484
+ return E(r, "makeSnippet"), _t = r, _t;
486
485
  }
487
- T(vt, "requireSnippet");
488
- var yt, bt;
486
+ E(yt, "requireSnippet");
487
+ var bt, xt;
489
488
  function K() {
490
- if (bt) return yt;
491
- bt = 1;
492
- let e = ht(), t = [
489
+ if (xt) return bt;
490
+ xt = 1;
491
+ let e = gt(), t = [
493
492
  "kind",
494
493
  "multi",
495
494
  "resolve",
@@ -513,7 +512,7 @@ function K() {
513
512
  });
514
513
  }), t;
515
514
  }
516
- T(r, "compileStyleAliases");
515
+ E(r, "compileStyleAliases");
517
516
  function i(i, a) {
518
517
  if (a ||= {}, Object.keys(a).forEach(function(n) {
519
518
  if (t.indexOf(n) === -1) throw new e("Unknown option \"" + n + "\" is met in definition of \"" + i + "\" YAML type.");
@@ -523,14 +522,14 @@ function K() {
523
522
  return e;
524
523
  }, this.instanceOf = a.instanceOf || null, this.predicate = a.predicate || null, this.represent = a.represent || null, this.representName = a.representName || null, this.defaultStyle = a.defaultStyle || null, this.multi = a.multi || !1, this.styleAliases = r(a.styleAliases || null), n.indexOf(this.kind) === -1) throw new e("Unknown kind \"" + this.kind + "\" is specified for \"" + i + "\" YAML type.");
525
524
  }
526
- return T(i, "Type2"), yt = i, yt;
525
+ return E(i, "Type2"), bt = i, bt;
527
526
  }
528
- T(K, "requireType");
529
- var xt, St;
530
- function Ct() {
531
- if (St) return xt;
532
- St = 1;
533
- let e = ht(), t = K();
527
+ E(K, "requireType");
528
+ var St, Ct;
529
+ function wt() {
530
+ if (Ct) return St;
531
+ Ct = 1;
532
+ let e = gt(), t = K();
534
533
  function n(e, t) {
535
534
  let n = [];
536
535
  return e[t].forEach(function(e) {
@@ -540,7 +539,7 @@ function Ct() {
540
539
  }), n[t] = e;
541
540
  }), n;
542
541
  }
543
- T(n, "compileList");
542
+ E(n, "compileList");
544
543
  function r() {
545
544
  let e = {
546
545
  scalar: {},
@@ -557,15 +556,15 @@ function Ct() {
557
556
  function t(t) {
558
557
  t.multi ? (e.multi[t.kind].push(t), e.multi.fallback.push(t)) : e[t.kind][t.tag] = e.fallback[t.tag] = t;
559
558
  }
560
- T(t, "collectType");
559
+ E(t, "collectType");
561
560
  for (let e = 0, n = arguments.length; e < n; e += 1) arguments[e].forEach(t);
562
561
  return e;
563
562
  }
564
- T(r, "compileMap");
563
+ E(r, "compileMap");
565
564
  function i(e) {
566
565
  return this.extend(e);
567
566
  }
568
- return T(i, "Schema2"), i.prototype.extend = /* @__PURE__ */ T(function(a) {
567
+ return E(i, "Schema2"), i.prototype.extend = /* @__PURE__ */ E(function(a) {
569
568
  let o = [], s = [];
570
569
  if (a instanceof t) s.push(a);
571
570
  else if (Array.isArray(a)) s = s.concat(a);
@@ -580,147 +579,147 @@ function Ct() {
580
579
  });
581
580
  let c = Object.create(i.prototype);
582
581
  return c.implicit = (this.implicit || []).concat(o), c.explicit = (this.explicit || []).concat(s), c.compiledImplicit = n(c, "implicit"), c.compiledExplicit = n(c, "explicit"), c.compiledTypeMap = r(c.compiledImplicit, c.compiledExplicit), c;
583
- }, "extend"), xt = i, xt;
582
+ }, "extend"), St = i, St;
584
583
  }
585
- T(Ct, "requireSchema");
586
- var wt, Tt;
587
- function Et() {
588
- return Tt ? wt : (Tt = 1, wt = new (K())("tag:yaml.org,2002:str", {
584
+ E(wt, "requireSchema");
585
+ var Tt, Et;
586
+ function Dt() {
587
+ return Et || (Et = 1, Tt = new (K())("tag:yaml.org,2002:str", {
589
588
  kind: "scalar",
590
- construct: /* @__PURE__ */ T(function(e) {
589
+ construct: /* @__PURE__ */ E(function(e) {
591
590
  return e === null ? "" : e;
592
591
  }, "construct")
593
- }), wt);
592
+ })), Tt;
594
593
  }
595
- T(Et, "requireStr");
596
- var Dt, Ot;
597
- function kt() {
598
- return Ot ? Dt : (Ot = 1, Dt = new (K())("tag:yaml.org,2002:seq", {
594
+ E(Dt, "requireStr");
595
+ var Ot, kt;
596
+ function At() {
597
+ return kt || (kt = 1, Ot = new (K())("tag:yaml.org,2002:seq", {
599
598
  kind: "sequence",
600
- construct: /* @__PURE__ */ T(function(e) {
599
+ construct: /* @__PURE__ */ E(function(e) {
601
600
  return e === null ? [] : e;
602
601
  }, "construct")
603
- }), Dt);
602
+ })), Ot;
604
603
  }
605
- T(kt, "requireSeq");
606
- var At, jt;
607
- function Mt() {
608
- return jt ? At : (jt = 1, At = new (K())("tag:yaml.org,2002:map", {
604
+ E(At, "requireSeq");
605
+ var jt, Mt;
606
+ function Nt() {
607
+ return Mt || (Mt = 1, jt = new (K())("tag:yaml.org,2002:map", {
609
608
  kind: "mapping",
610
- construct: /* @__PURE__ */ T(function(e) {
609
+ construct: /* @__PURE__ */ E(function(e) {
611
610
  return e === null ? {} : e;
612
611
  }, "construct")
613
- }), At);
614
- }
615
- T(Mt, "requireMap");
616
- var Nt, Pt;
617
- function Ft() {
618
- return Pt ? Nt : (Pt = 1, Nt = new (Ct())({ explicit: [
619
- Et(),
620
- kt(),
621
- Mt()
622
- ] }), Nt);
623
- }
624
- T(Ft, "requireFailsafe");
625
- var It, Lt;
626
- function Rt() {
627
- if (Lt) return It;
628
- Lt = 1;
612
+ })), jt;
613
+ }
614
+ E(Nt, "requireMap");
615
+ var Pt, Ft;
616
+ function It() {
617
+ return Ft || (Ft = 1, Pt = new (wt())({ explicit: [
618
+ Dt(),
619
+ At(),
620
+ Nt()
621
+ ] })), Pt;
622
+ }
623
+ E(It, "requireFailsafe");
624
+ var Lt, Rt;
625
+ function zt() {
626
+ if (Rt) return Lt;
627
+ Rt = 1;
629
628
  let e = K();
630
629
  function t(e) {
631
630
  if (e === null) return !0;
632
631
  let t = e.length;
633
632
  return t === 1 && e === "~" || t === 4 && (e === "null" || e === "Null" || e === "NULL");
634
633
  }
635
- T(t, "resolveYamlNull");
634
+ E(t, "resolveYamlNull");
636
635
  function n() {
637
636
  return null;
638
637
  }
639
- T(n, "constructYamlNull");
638
+ E(n, "constructYamlNull");
640
639
  function r(e) {
641
640
  return e === null;
642
641
  }
643
- return T(r, "isNull"), It = new e("tag:yaml.org,2002:null", {
642
+ return E(r, "isNull"), Lt = new e("tag:yaml.org,2002:null", {
644
643
  kind: "scalar",
645
644
  resolve: t,
646
645
  construct: n,
647
646
  predicate: r,
648
647
  represent: {
649
- canonical: /* @__PURE__ */ T(function() {
648
+ canonical: /* @__PURE__ */ E(function() {
650
649
  return "~";
651
650
  }, "canonical"),
652
- lowercase: /* @__PURE__ */ T(function() {
651
+ lowercase: /* @__PURE__ */ E(function() {
653
652
  return "null";
654
653
  }, "lowercase"),
655
- uppercase: /* @__PURE__ */ T(function() {
654
+ uppercase: /* @__PURE__ */ E(function() {
656
655
  return "NULL";
657
656
  }, "uppercase"),
658
- camelcase: /* @__PURE__ */ T(function() {
657
+ camelcase: /* @__PURE__ */ E(function() {
659
658
  return "Null";
660
659
  }, "camelcase"),
661
- empty: /* @__PURE__ */ T(function() {
660
+ empty: /* @__PURE__ */ E(function() {
662
661
  return "";
663
662
  }, "empty")
664
663
  },
665
664
  defaultStyle: "lowercase"
666
- }), It;
665
+ }), Lt;
667
666
  }
668
- T(Rt, "require_null");
669
- var zt, Bt;
670
- function Vt() {
671
- if (Bt) return zt;
672
- Bt = 1;
667
+ E(zt, "require_null");
668
+ var Bt, Vt;
669
+ function Ht() {
670
+ if (Vt) return Bt;
671
+ Vt = 1;
673
672
  let e = K();
674
673
  function t(e) {
675
674
  if (e === null) return !1;
676
675
  let t = e.length;
677
676
  return t === 4 && (e === "true" || e === "True" || e === "TRUE") || t === 5 && (e === "false" || e === "False" || e === "FALSE");
678
677
  }
679
- T(t, "resolveYamlBoolean");
678
+ E(t, "resolveYamlBoolean");
680
679
  function n(e) {
681
680
  return e === "true" || e === "True" || e === "TRUE";
682
681
  }
683
- T(n, "constructYamlBoolean");
682
+ E(n, "constructYamlBoolean");
684
683
  function r(e) {
685
684
  return Object.prototype.toString.call(e) === "[object Boolean]";
686
685
  }
687
- return T(r, "isBoolean"), zt = new e("tag:yaml.org,2002:bool", {
686
+ return E(r, "isBoolean"), Bt = new e("tag:yaml.org,2002:bool", {
688
687
  kind: "scalar",
689
688
  resolve: t,
690
689
  construct: n,
691
690
  predicate: r,
692
691
  represent: {
693
- lowercase: /* @__PURE__ */ T(function(e) {
692
+ lowercase: /* @__PURE__ */ E(function(e) {
694
693
  return e ? "true" : "false";
695
694
  }, "lowercase"),
696
- uppercase: /* @__PURE__ */ T(function(e) {
695
+ uppercase: /* @__PURE__ */ E(function(e) {
697
696
  return e ? "TRUE" : "FALSE";
698
697
  }, "uppercase"),
699
- camelcase: /* @__PURE__ */ T(function(e) {
698
+ camelcase: /* @__PURE__ */ E(function(e) {
700
699
  return e ? "True" : "False";
701
700
  }, "camelcase")
702
701
  },
703
702
  defaultStyle: "lowercase"
704
- }), zt;
703
+ }), Bt;
705
704
  }
706
- T(Vt, "requireBool");
707
- var Ht, Ut;
708
- function Wt() {
709
- if (Ut) return Ht;
710
- Ut = 1;
705
+ E(Ht, "requireBool");
706
+ var Ut, Wt;
707
+ function Gt() {
708
+ if (Wt) return Ut;
709
+ Wt = 1;
711
710
  let e = G(), t = K();
712
711
  function n(e) {
713
712
  return e >= 48 && e <= 57 || e >= 65 && e <= 70 || e >= 97 && e <= 102;
714
713
  }
715
- T(n, "isHexCode");
714
+ E(n, "isHexCode");
716
715
  function r(e) {
717
716
  return e >= 48 && e <= 55;
718
717
  }
719
- T(r, "isOctCode");
718
+ E(r, "isOctCode");
720
719
  function i(e) {
721
720
  return e >= 48 && e <= 57;
722
721
  }
723
- T(i, "isDecCode");
722
+ E(i, "isDecCode");
724
723
  function a(e) {
725
724
  if (e === null) return !1;
726
725
  let t = e.length, a = 0, s = !1;
@@ -756,7 +755,7 @@ function Wt() {
756
755
  }
757
756
  return s ? isFinite(o(e)) : !1;
758
757
  }
759
- T(a, "resolveYamlInteger");
758
+ E(a, "resolveYamlInteger");
760
759
  function o(e) {
761
760
  let t = e, n = 1, r = t[0];
762
761
  if ((r === "-" || r === "+") && (r === "-" && (n = -1), t = t.slice(1), r = t[0]), t === "0") return 0;
@@ -767,30 +766,30 @@ function Wt() {
767
766
  }
768
767
  return n * parseInt(t, 10);
769
768
  }
770
- T(o, "parseYamlInteger");
769
+ E(o, "parseYamlInteger");
771
770
  function s(e) {
772
771
  return o(e);
773
772
  }
774
- T(s, "constructYamlInteger");
773
+ E(s, "constructYamlInteger");
775
774
  function c(t) {
776
775
  return Object.prototype.toString.call(t) === "[object Number]" && t % 1 == 0 && !e.isNegativeZero(t);
777
776
  }
778
- return T(c, "isInteger"), Ht = new t("tag:yaml.org,2002:int", {
777
+ return E(c, "isInteger"), Ut = new t("tag:yaml.org,2002:int", {
779
778
  kind: "scalar",
780
779
  resolve: a,
781
780
  construct: s,
782
781
  predicate: c,
783
782
  represent: {
784
- binary: /* @__PURE__ */ T(function(e) {
783
+ binary: /* @__PURE__ */ E(function(e) {
785
784
  return e >= 0 ? "0b" + e.toString(2) : "-0b" + e.toString(2).slice(1);
786
785
  }, "binary"),
787
- octal: /* @__PURE__ */ T(function(e) {
786
+ octal: /* @__PURE__ */ E(function(e) {
788
787
  return e >= 0 ? "0o" + e.toString(8) : "-0o" + e.toString(8).slice(1);
789
788
  }, "octal"),
790
- decimal: /* @__PURE__ */ T(function(e) {
789
+ decimal: /* @__PURE__ */ E(function(e) {
791
790
  return e.toString(10);
792
791
  }, "decimal"),
793
- hexadecimal: /* @__PURE__ */ T(function(e) {
792
+ hexadecimal: /* @__PURE__ */ E(function(e) {
794
793
  return e >= 0 ? "0x" + e.toString(16).toUpperCase() : "-0x" + e.toString(16).toUpperCase().slice(1);
795
794
  }, "hexadecimal")
796
795
  },
@@ -801,23 +800,23 @@ function Wt() {
801
800
  decimal: [10, "dec"],
802
801
  hexadecimal: [16, "hex"]
803
802
  }
804
- }), Ht;
803
+ }), Ut;
805
804
  }
806
- T(Wt, "requireInt");
807
- var Gt, Kt;
808
- function qt() {
809
- if (Kt) return Gt;
810
- Kt = 1;
805
+ E(Gt, "requireInt");
806
+ var Kt, qt;
807
+ function Jt() {
808
+ if (qt) return Kt;
809
+ qt = 1;
811
810
  let e = G(), t = K(), n = /* @__PURE__ */ RegExp("^(?:[-+]?(?:[0-9]+)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"), r = /* @__PURE__ */ RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");
812
811
  function i(e) {
813
812
  return e === null || !n.test(e) ? !1 : isFinite(parseFloat(e, 10)) ? !0 : r.test(e);
814
813
  }
815
- T(i, "resolveYamlFloat");
814
+ E(i, "resolveYamlFloat");
816
815
  function a(e) {
817
816
  let t = e.toLowerCase(), n = t[0] === "-" ? -1 : 1;
818
817
  return "+-".indexOf(t[0]) >= 0 && (t = t.slice(1)), t === ".inf" ? n === 1 ? Infinity : -Infinity : t === ".nan" ? NaN : n * parseFloat(t, 10);
819
818
  }
820
- T(a, "constructYamlFloat");
819
+ E(a, "constructYamlFloat");
821
820
  let o = /^[-+]?[0-9]+e/;
822
821
  function s(t, n) {
823
822
  if (isNaN(t)) switch (n) {
@@ -839,44 +838,44 @@ function qt() {
839
838
  let r = t.toString(10);
840
839
  return o.test(r) ? r.replace("e", ".e") : r;
841
840
  }
842
- T(s, "representYamlFloat");
841
+ E(s, "representYamlFloat");
843
842
  function c(t) {
844
843
  return Object.prototype.toString.call(t) === "[object Number]" && (t % 1 != 0 || e.isNegativeZero(t));
845
844
  }
846
- return T(c, "isFloat"), Gt = new t("tag:yaml.org,2002:float", {
845
+ return E(c, "isFloat"), Kt = new t("tag:yaml.org,2002:float", {
847
846
  kind: "scalar",
848
847
  resolve: i,
849
848
  construct: a,
850
849
  predicate: c,
851
850
  represent: s,
852
851
  defaultStyle: "lowercase"
853
- }), Gt;
854
- }
855
- T(qt, "requireFloat");
856
- var Jt, Yt;
857
- function Xt() {
858
- return Yt ? Jt : (Yt = 1, Jt = Ft().extend({ implicit: [
859
- Rt(),
860
- Vt(),
861
- Wt(),
862
- qt()
863
- ] }), Jt);
864
- }
865
- T(Xt, "requireJson");
866
- var Zt, Qt;
867
- function $t() {
868
- return Qt ? Zt : (Qt = 1, Zt = Xt(), Zt);
869
- }
870
- T($t, "requireCore");
871
- var en, tn;
872
- function nn() {
873
- if (tn) return en;
874
- tn = 1;
852
+ }), Kt;
853
+ }
854
+ E(Jt, "requireFloat");
855
+ var Yt, Xt;
856
+ function Zt() {
857
+ return Xt || (Xt = 1, Yt = It().extend({ implicit: [
858
+ zt(),
859
+ Ht(),
860
+ Gt(),
861
+ Jt()
862
+ ] })), Yt;
863
+ }
864
+ E(Zt, "requireJson");
865
+ var Qt, $t;
866
+ function en() {
867
+ return $t || ($t = 1, Qt = Zt()), Qt;
868
+ }
869
+ E(en, "requireCore");
870
+ var tn, nn;
871
+ function rn() {
872
+ if (nn) return tn;
873
+ nn = 1;
875
874
  let e = K(), t = /* @__PURE__ */ RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"), n = /* @__PURE__ */ RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");
876
875
  function r(e) {
877
876
  return e === null ? !1 : t.exec(e) !== null || n.exec(e) !== null;
878
877
  }
879
- T(r, "resolveYamlTimestamp");
878
+ E(r, "resolveYamlTimestamp");
880
879
  function i(e) {
881
880
  let r = 0, i = null, a = t.exec(e);
882
881
  if (a === null && (a = n.exec(e)), a === null) throw Error("Date resolve error");
@@ -894,37 +893,37 @@ function nn() {
894
893
  let f = new Date(Date.UTC(o, s, c, l, u, d, r));
895
894
  return i && f.setTime(f.getTime() - i), f;
896
895
  }
897
- T(i, "constructYamlTimestamp");
896
+ E(i, "constructYamlTimestamp");
898
897
  function a(e) {
899
898
  return e.toISOString();
900
899
  }
901
- return T(a, "representYamlTimestamp"), en = new e("tag:yaml.org,2002:timestamp", {
900
+ return E(a, "representYamlTimestamp"), tn = new e("tag:yaml.org,2002:timestamp", {
902
901
  kind: "scalar",
903
902
  resolve: r,
904
903
  construct: i,
905
904
  instanceOf: Date,
906
905
  represent: a
907
- }), en;
906
+ }), tn;
908
907
  }
909
- T(nn, "requireTimestamp");
910
- var rn, an;
911
- function on() {
912
- if (an) return rn;
913
- an = 1;
908
+ E(rn, "requireTimestamp");
909
+ var an, on;
910
+ function sn() {
911
+ if (on) return an;
912
+ on = 1;
914
913
  let e = K();
915
914
  function t(e) {
916
915
  return e === "<<" || e === null;
917
916
  }
918
- return T(t, "resolveYamlMerge"), rn = new e("tag:yaml.org,2002:merge", {
917
+ return E(t, "resolveYamlMerge"), an = new e("tag:yaml.org,2002:merge", {
919
918
  kind: "scalar",
920
919
  resolve: t
921
- }), rn;
920
+ }), an;
922
921
  }
923
- T(on, "requireMerge");
924
- var sn, cn;
925
- function ln() {
926
- if (cn) return sn;
927
- cn = 1;
922
+ E(sn, "requireMerge");
923
+ var cn, ln;
924
+ function un() {
925
+ if (ln) return cn;
926
+ ln = 1;
928
927
  let e = K();
929
928
  function t(e) {
930
929
  if (e === null) return !1;
@@ -938,37 +937,37 @@ function ln() {
938
937
  }
939
938
  return t % 8 == 0;
940
939
  }
941
- T(t, "resolveYamlBinary");
940
+ E(t, "resolveYamlBinary");
942
941
  function n(e) {
943
942
  let t = e.replace(/[\r\n=]/g, ""), n = t.length, r = 0, i = [];
944
943
  for (let e = 0; e < n; e++) e % 4 == 0 && e && (i.push(r >> 16 & 255), i.push(r >> 8 & 255), i.push(r & 255)), r = r << 6 | "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r".indexOf(t.charAt(e));
945
944
  let a = n % 4 * 6;
946
945
  return a === 0 ? (i.push(r >> 16 & 255), i.push(r >> 8 & 255), i.push(r & 255)) : a === 18 ? (i.push(r >> 10 & 255), i.push(r >> 2 & 255)) : a === 12 && i.push(r >> 4 & 255), new Uint8Array(i);
947
946
  }
948
- T(n, "constructYamlBinary");
947
+ E(n, "constructYamlBinary");
949
948
  function r(e) {
950
949
  let t = "", n = 0, r = e.length, i = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";
951
950
  for (let a = 0; a < r; a++) a % 3 == 0 && a && (t += i[n >> 18 & 63], t += i[n >> 12 & 63], t += i[n >> 6 & 63], t += i[n & 63]), n = (n << 8) + e[a];
952
951
  let a = r % 3;
953
952
  return a === 0 ? (t += i[n >> 18 & 63], t += i[n >> 12 & 63], t += i[n >> 6 & 63], t += i[n & 63]) : a === 2 ? (t += i[n >> 10 & 63], t += i[n >> 4 & 63], t += i[n << 2 & 63], t += i[64]) : a === 1 && (t += i[n >> 2 & 63], t += i[n << 4 & 63], t += i[64], t += i[64]), t;
954
953
  }
955
- T(r, "representYamlBinary");
954
+ E(r, "representYamlBinary");
956
955
  function i(e) {
957
956
  return Object.prototype.toString.call(e) === "[object Uint8Array]";
958
957
  }
959
- return T(i, "isBinary"), sn = new e("tag:yaml.org,2002:binary", {
958
+ return E(i, "isBinary"), cn = new e("tag:yaml.org,2002:binary", {
960
959
  kind: "scalar",
961
960
  resolve: t,
962
961
  construct: n,
963
962
  predicate: i,
964
963
  represent: r
965
- }), sn;
964
+ }), cn;
966
965
  }
967
- T(ln, "requireBinary");
968
- var un, dn;
969
- function fn() {
970
- if (dn) return un;
971
- dn = 1;
966
+ E(un, "requireBinary");
967
+ var dn, fn;
968
+ function pn() {
969
+ if (fn) return dn;
970
+ fn = 1;
972
971
  let e = K(), t = Object.prototype.hasOwnProperty, n = Object.prototype.toString;
973
972
  function r(e) {
974
973
  if (e === null) return !0;
@@ -987,21 +986,21 @@ function fn() {
987
986
  }
988
987
  return !0;
989
988
  }
990
- T(r, "resolveYamlOmap");
989
+ E(r, "resolveYamlOmap");
991
990
  function i(e) {
992
991
  return e === null ? [] : e;
993
992
  }
994
- return T(i, "constructYamlOmap"), un = new e("tag:yaml.org,2002:omap", {
993
+ return E(i, "constructYamlOmap"), dn = new e("tag:yaml.org,2002:omap", {
995
994
  kind: "sequence",
996
995
  resolve: r,
997
996
  construct: i
998
- }), un;
997
+ }), dn;
999
998
  }
1000
- T(fn, "requireOmap");
1001
- var pn, mn;
1002
- function hn() {
1003
- if (mn) return pn;
1004
- mn = 1;
999
+ E(pn, "requireOmap");
1000
+ var mn, hn;
1001
+ function gn() {
1002
+ if (hn) return mn;
1003
+ hn = 1;
1005
1004
  let e = K(), t = Object.prototype.toString;
1006
1005
  function n(e) {
1007
1006
  if (e === null) return !0;
@@ -1015,7 +1014,7 @@ function hn() {
1015
1014
  }
1016
1015
  return !0;
1017
1016
  }
1018
- T(n, "resolveYamlPairs");
1017
+ E(n, "resolveYamlPairs");
1019
1018
  function r(e) {
1020
1019
  if (e === null) return [];
1021
1020
  let t = e, n = Array(t.length);
@@ -1025,17 +1024,17 @@ function hn() {
1025
1024
  }
1026
1025
  return n;
1027
1026
  }
1028
- return T(r, "constructYamlPairs"), pn = new e("tag:yaml.org,2002:pairs", {
1027
+ return E(r, "constructYamlPairs"), mn = new e("tag:yaml.org,2002:pairs", {
1029
1028
  kind: "sequence",
1030
1029
  resolve: n,
1031
1030
  construct: r
1032
- }), pn;
1031
+ }), mn;
1033
1032
  }
1034
- T(hn, "requirePairs");
1035
- var gn, _n;
1036
- function vn() {
1037
- if (_n) return gn;
1038
- _n = 1;
1033
+ E(gn, "requirePairs");
1034
+ var _n, vn;
1035
+ function yn() {
1036
+ if (vn) return _n;
1037
+ vn = 1;
1039
1038
  let e = K(), t = Object.prototype.hasOwnProperty;
1040
1039
  function n(e) {
1041
1040
  if (e === null) return !0;
@@ -1043,69 +1042,69 @@ function vn() {
1043
1042
  for (let e in n) if (t.call(n, e) && n[e] !== null) return !1;
1044
1043
  return !0;
1045
1044
  }
1046
- T(n, "resolveYamlSet");
1045
+ E(n, "resolveYamlSet");
1047
1046
  function r(e) {
1048
1047
  return e === null ? {} : e;
1049
1048
  }
1050
- return T(r, "constructYamlSet"), gn = new e("tag:yaml.org,2002:set", {
1049
+ return E(r, "constructYamlSet"), _n = new e("tag:yaml.org,2002:set", {
1051
1050
  kind: "mapping",
1052
1051
  resolve: n,
1053
1052
  construct: r
1054
- }), gn;
1053
+ }), _n;
1055
1054
  }
1056
- T(vn, "requireSet");
1057
- var yn, bn;
1058
- function xn() {
1059
- return bn ? yn : (bn = 1, yn = $t().extend({
1060
- implicit: [nn(), on()],
1055
+ E(yn, "requireSet");
1056
+ var bn, xn;
1057
+ function Sn() {
1058
+ return xn || (xn = 1, bn = en().extend({
1059
+ implicit: [rn(), sn()],
1061
1060
  explicit: [
1062
- ln(),
1063
- fn(),
1064
- hn(),
1065
- vn()
1061
+ un(),
1062
+ pn(),
1063
+ gn(),
1064
+ yn()
1066
1065
  ]
1067
- }), yn);
1068
- }
1069
- T(xn, "require_default");
1070
- var Sn;
1071
- function Cn() {
1072
- if (Sn) return dt;
1073
- Sn = 1;
1074
- let e = G(), t = ht(), n = vt(), r = xn(), i = Object.prototype.hasOwnProperty, a = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, o = /[\x85\u2028\u2029]/, s = /[,\[\]{}]/, c = /^(?:!|!!|![0-9A-Za-z-]+!)$/, l = /^(?:!|[^,\[\]{}])(?:%[0-9a-f]{2}|[0-9a-z\-#;/?:@&=+$,_.!~*'()\[\]])*$/i;
1066
+ })), bn;
1067
+ }
1068
+ E(Sn, "require_default");
1069
+ var Cn;
1070
+ function wn() {
1071
+ if (Cn) return ft;
1072
+ Cn = 1;
1073
+ let e = G(), t = gt(), n = yt(), r = Sn(), i = Object.prototype.hasOwnProperty, a = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, o = /[\x85\u2028\u2029]/, s = /[,\[\]{}]/, c = /^(?:!|!!|![0-9A-Za-z-]+!)$/, l = /^(?:!|[^,\[\]{}])(?:%[0-9a-f]{2}|[0-9a-z\-#;/?:@&=+$,_.!~*'()\[\]])*$/i;
1075
1074
  function u(e) {
1076
1075
  return Object.prototype.toString.call(e);
1077
1076
  }
1078
- T(u, "_class");
1077
+ E(u, "_class");
1079
1078
  function d(e) {
1080
1079
  return e === 10 || e === 13;
1081
1080
  }
1082
- T(d, "isEol");
1081
+ E(d, "isEol");
1083
1082
  function f(e) {
1084
1083
  return e === 9 || e === 32;
1085
1084
  }
1086
- T(f, "isWhiteSpace");
1085
+ E(f, "isWhiteSpace");
1087
1086
  function p(e) {
1088
1087
  return e === 9 || e === 32 || e === 10 || e === 13;
1089
1088
  }
1090
- T(p, "isWsOrEol");
1089
+ E(p, "isWsOrEol");
1091
1090
  function m(e) {
1092
1091
  return e === 44 || e === 91 || e === 93 || e === 123 || e === 125;
1093
1092
  }
1094
- T(m, "isFlowIndicator");
1093
+ E(m, "isFlowIndicator");
1095
1094
  function h(e) {
1096
1095
  if (e >= 48 && e <= 57) return e - 48;
1097
1096
  let t = e | 32;
1098
1097
  return t >= 97 && t <= 102 ? t - 97 + 10 : -1;
1099
1098
  }
1100
- T(h, "fromHexCode");
1099
+ E(h, "fromHexCode");
1101
1100
  function g(e) {
1102
1101
  return e === 120 ? 2 : e === 117 ? 4 : e === 85 ? 8 : 0;
1103
1102
  }
1104
- T(g, "escapedHexLen");
1103
+ E(g, "escapedHexLen");
1105
1104
  function _(e) {
1106
1105
  return e >= 48 && e <= 57 ? e - 48 : -1;
1107
1106
  }
1108
- T(_, "fromDecimalCode");
1107
+ E(_, "fromDecimalCode");
1109
1108
  function v(e) {
1110
1109
  switch (e) {
1111
1110
  case 48: return "\0";
@@ -1129,11 +1128,11 @@ function Cn() {
1129
1128
  default: return "";
1130
1129
  }
1131
1130
  }
1132
- T(v, "simpleEscapeSequence");
1131
+ E(v, "simpleEscapeSequence");
1133
1132
  function y(e) {
1134
1133
  return e <= 65535 ? String.fromCharCode(e) : String.fromCharCode((e - 65536 >> 10) + 55296, (e - 65536 & 1023) + 56320);
1135
1134
  }
1136
- T(y, "charFromCodepoint");
1135
+ E(y, "charFromCodepoint");
1137
1136
  function b(e, t, n) {
1138
1137
  t === "__proto__" ? Object.defineProperty(e, t, {
1139
1138
  configurable: !0,
@@ -1142,13 +1141,13 @@ function Cn() {
1142
1141
  value: n
1143
1142
  }) : e[t] = n;
1144
1143
  }
1145
- T(b, "setProperty");
1144
+ E(b, "setProperty");
1146
1145
  let x = Array(256), S = Array(256);
1147
1146
  for (let e = 0; e < 256; e++) x[e] = +!!v(e), S[e] = v(e);
1148
1147
  function C(e, t) {
1149
1148
  this.input = e, this.filename = t.filename || null, this.schema = t.schema || r, this.onWarning = t.onWarning || null, this.legacy = t.legacy || !1, this.json = t.json || !1, this.listener = t.listener || null, this.maxDepth = typeof t.maxDepth == "number" ? t.maxDepth : 100, this.maxTotalMergeKeys = typeof t.maxTotalMergeKeys == "number" ? t.maxTotalMergeKeys : 1e4, this.implicitTypes = this.schema.compiledImplicit, this.typeMap = this.schema.compiledTypeMap, this.length = e.length, this.position = 0, this.line = 0, this.lineStart = 0, this.lineIndent = 0, this.depth = 0, this.totalMergeKeys = 0, this.firstTabInLine = -1, this.documents = [], this.anchorMapTransactions = [];
1150
1149
  }
1151
- T(C, "State");
1150
+ E(C, "State");
1152
1151
  function w(e, r) {
1153
1152
  let i = {
1154
1153
  name: e.filename,
@@ -1159,15 +1158,15 @@ function Cn() {
1159
1158
  };
1160
1159
  return i.snippet = n(i), new t(r, i);
1161
1160
  }
1162
- T(w, "generateError");
1163
- function E(e, t) {
1161
+ E(w, "generateError");
1162
+ function T(e, t) {
1164
1163
  throw w(e, t);
1165
1164
  }
1166
- T(E, "throwError");
1165
+ E(T, "throwError");
1167
1166
  function D(e, t) {
1168
1167
  e.onWarning && e.onWarning.call(null, w(e, t));
1169
1168
  }
1170
- T(D, "throwWarning");
1169
+ E(D, "throwWarning");
1171
1170
  function O(e, t, n) {
1172
1171
  let r = e.anchorMapTransactions;
1173
1172
  if (r.length !== 0) {
@@ -1179,12 +1178,12 @@ function Cn() {
1179
1178
  }
1180
1179
  e.anchorMap[t] = n;
1181
1180
  }
1182
- T(O, "storeAnchor");
1181
+ E(O, "storeAnchor");
1183
1182
  function k(e) {
1184
1183
  e.anchorMapTransactions.push(/* @__PURE__ */ Object.create(null));
1185
1184
  }
1186
- T(k, "beginAnchorTransaction");
1187
- function A(e) {
1185
+ E(k, "beginAnchorTransaction");
1186
+ function ee(e) {
1188
1187
  let t = e.anchorMapTransactions.pop(), n = e.anchorMapTransactions;
1189
1188
  if (n.length === 0) return;
1190
1189
  let r = n[n.length - 1], a = Object.keys(t);
@@ -1193,16 +1192,16 @@ function Cn() {
1193
1192
  i.call(r, n) || (r[n] = t[n]);
1194
1193
  }
1195
1194
  }
1196
- T(A, "commitAnchorTransaction");
1197
- function j(e) {
1195
+ E(ee, "commitAnchorTransaction");
1196
+ function A(e) {
1198
1197
  let t = e.anchorMapTransactions.pop(), n = Object.keys(t);
1199
1198
  for (let r = n.length - 1; r >= 0; --r) {
1200
1199
  let i = t[n[r]];
1201
1200
  i.existed ? e.anchorMap[n[r]] = i.value : delete e.anchorMap[n[r]];
1202
1201
  }
1203
1202
  }
1204
- T(j, "rollbackAnchorTransaction");
1205
- function M(e) {
1203
+ E(A, "rollbackAnchorTransaction");
1204
+ function j(e) {
1206
1205
  return {
1207
1206
  position: e.position,
1208
1207
  line: e.line,
@@ -1215,92 +1214,92 @@ function Cn() {
1215
1214
  result: e.result
1216
1215
  };
1217
1216
  }
1218
- T(M, "snapshotState");
1219
- function N(e, t) {
1217
+ E(j, "snapshotState");
1218
+ function te(e, t) {
1220
1219
  e.position = t.position, e.line = t.line, e.lineStart = t.lineStart, e.lineIndent = t.lineIndent, e.firstTabInLine = t.firstTabInLine, e.tag = t.tag, e.anchor = t.anchor, e.kind = t.kind, e.result = t.result;
1221
1220
  }
1222
- T(N, "restoreState");
1223
- let ee = {
1224
- YAML: /* @__PURE__ */ T(function(e, t, n) {
1225
- e.version !== null && E(e, "duplication of %YAML directive"), n.length !== 1 && E(e, "YAML directive accepts exactly one argument");
1221
+ E(te, "restoreState");
1222
+ let M = {
1223
+ YAML: /* @__PURE__ */ E(function(e, t, n) {
1224
+ e.version !== null && T(e, "duplication of %YAML directive"), n.length !== 1 && T(e, "YAML directive accepts exactly one argument");
1226
1225
  let r = /^([0-9]+)\.([0-9]+)$/.exec(n[0]);
1227
- r === null && E(e, "ill-formed argument of the YAML directive");
1226
+ r === null && T(e, "ill-formed argument of the YAML directive");
1228
1227
  let i = parseInt(r[1], 10), a = parseInt(r[2], 10);
1229
- i !== 1 && E(e, "unacceptable YAML version of the document"), e.version = n[0], e.checkLineBreaks = a < 2, a !== 1 && a !== 2 && D(e, "unsupported YAML version of the document");
1228
+ i !== 1 && T(e, "unacceptable YAML version of the document"), e.version = n[0], e.checkLineBreaks = a < 2, a !== 1 && a !== 2 && D(e, "unsupported YAML version of the document");
1230
1229
  }, "handleYamlDirective"),
1231
- TAG: /* @__PURE__ */ T(function(e, t, n) {
1230
+ TAG: /* @__PURE__ */ E(function(e, t, n) {
1232
1231
  let r;
1233
- n.length !== 2 && E(e, "TAG directive accepts exactly two arguments");
1232
+ n.length !== 2 && T(e, "TAG directive accepts exactly two arguments");
1234
1233
  let a = n[0];
1235
- r = n[1], c.test(a) || E(e, "ill-formed tag handle (first argument) of the TAG directive"), i.call(e.tagMap, a) && E(e, "there is a previously declared suffix for \"" + a + "\" tag handle"), l.test(r) || E(e, "ill-formed tag prefix (second argument) of the TAG directive");
1234
+ r = n[1], c.test(a) || T(e, "ill-formed tag handle (first argument) of the TAG directive"), i.call(e.tagMap, a) && T(e, "there is a previously declared suffix for \"" + a + "\" tag handle"), l.test(r) || T(e, "ill-formed tag prefix (second argument) of the TAG directive");
1236
1235
  try {
1237
1236
  r = decodeURIComponent(r);
1238
1237
  } catch {
1239
- E(e, "tag prefix is malformed: " + r);
1238
+ T(e, "tag prefix is malformed: " + r);
1240
1239
  }
1241
1240
  e.tagMap[a] = r;
1242
1241
  }, "handleTagDirective")
1243
1242
  };
1244
- function P(e, t, n, r) {
1243
+ function N(e, t, n, r) {
1245
1244
  if (t < n) {
1246
1245
  let i = e.input.slice(t, n);
1247
1246
  if (r) for (let t = 0, n = i.length; t < n; t += 1) {
1248
1247
  let n = i.charCodeAt(t);
1249
- n === 9 || n >= 32 && n <= 1114111 || E(e, "expected valid JSON character");
1248
+ n === 9 || n >= 32 && n <= 1114111 || T(e, "expected valid JSON character");
1250
1249
  }
1251
- else a.test(i) && E(e, "the stream contains non-printable characters");
1250
+ else a.test(i) && T(e, "the stream contains non-printable characters");
1252
1251
  e.result += i;
1253
1252
  }
1254
1253
  }
1255
- T(P, "captureSegment");
1256
- function F(t, n, r, a) {
1257
- e.isObject(r) || E(t, "cannot merge mappings; the provided source object is unacceptable");
1254
+ E(N, "captureSegment");
1255
+ function P(t, n, r, a) {
1256
+ e.isObject(r) || T(t, "cannot merge mappings; the provided source object is unacceptable");
1258
1257
  let o = Object.keys(r);
1259
1258
  for (let e = 0, s = o.length; e < s; e += 1) {
1260
1259
  let s = o[e];
1261
- t.maxTotalMergeKeys !== -1 && ++t.totalMergeKeys > t.maxTotalMergeKeys && E(t, "merge keys exceeded maxTotalMergeKeys (" + t.maxTotalMergeKeys + ")"), i.call(n, s) || (b(n, s, r[s]), a[s] = !0);
1260
+ t.maxTotalMergeKeys !== -1 && ++t.totalMergeKeys > t.maxTotalMergeKeys && T(t, "merge keys exceeded maxTotalMergeKeys (" + t.maxTotalMergeKeys + ")"), i.call(n, s) || (b(n, s, r[s]), a[s] = !0);
1262
1261
  }
1263
1262
  }
1264
- T(F, "mergeMappings");
1265
- function I(e, t, n, r, a, o, s, c, l) {
1263
+ E(P, "mergeMappings");
1264
+ function F(e, t, n, r, a, o, s, c, l) {
1266
1265
  if (Array.isArray(a)) {
1267
1266
  a = Array.prototype.slice.call(a);
1268
- for (let t = 0, n = a.length; t < n; t += 1) Array.isArray(a[t]) && E(e, "nested arrays are not supported inside keys"), typeof a == "object" && u(a[t]) === "[object Object]" && (a[t] = "[object Object]");
1267
+ for (let t = 0, n = a.length; t < n; t += 1) Array.isArray(a[t]) && T(e, "nested arrays are not supported inside keys"), typeof a == "object" && u(a[t]) === "[object Object]" && (a[t] = "[object Object]");
1269
1268
  }
1270
1269
  if (typeof a == "object" && u(a) === "[object Object]" && (a = "[object Object]"), a = String(a), t === null && (t = {}), r === "tag:yaml.org,2002:merge") {
1271
- if (Array.isArray(o)) for (let r = 0, i = o.length; r < i; r += 1) F(e, t, o[r], n);
1272
- else F(e, t, o, n);
1273
- } else !e.json && !i.call(n, a) && i.call(t, a) && (e.line = s || e.line, e.lineStart = c || e.lineStart, e.position = l || e.position, E(e, "duplicated mapping key")), b(t, a, o), delete n[a];
1270
+ if (Array.isArray(o)) for (let r = 0, i = o.length; r < i; r += 1) P(e, t, o[r], n);
1271
+ else P(e, t, o, n);
1272
+ } else !e.json && !i.call(n, a) && i.call(t, a) && (e.line = s || e.line, e.lineStart = c || e.lineStart, e.position = l || e.position, T(e, "duplicated mapping key")), b(t, a, o), delete n[a];
1274
1273
  return t;
1275
1274
  }
1276
- T(I, "storeMappingPair");
1277
- function L(e) {
1275
+ E(F, "storeMappingPair");
1276
+ function I(e) {
1278
1277
  let t = e.input.charCodeAt(e.position);
1279
- t === 10 ? e.position++ : t === 13 ? (e.position++, e.input.charCodeAt(e.position) === 10 && e.position++) : E(e, "a line break is expected"), e.line += 1, e.lineStart = e.position, e.firstTabInLine = -1;
1278
+ t === 10 ? e.position++ : t === 13 ? (e.position++, e.input.charCodeAt(e.position) === 10 && e.position++) : T(e, "a line break is expected"), e.line += 1, e.lineStart = e.position, e.firstTabInLine = -1;
1280
1279
  }
1281
- T(L, "readLineBreak");
1282
- function R(e, t, n) {
1280
+ E(I, "readLineBreak");
1281
+ function L(e, t, n) {
1283
1282
  let r = 0, i = e.input.charCodeAt(e.position);
1284
1283
  for (; i !== 0;) {
1285
1284
  for (; f(i);) i === 9 && e.firstTabInLine === -1 && (e.firstTabInLine = e.position), i = e.input.charCodeAt(++e.position);
1286
1285
  if (t && i === 35) do
1287
1286
  i = e.input.charCodeAt(++e.position);
1288
1287
  while (i !== 10 && i !== 13 && i !== 0);
1289
- if (d(i)) for (L(e), i = e.input.charCodeAt(e.position), r++, e.lineIndent = 0; i === 32;) e.lineIndent++, i = e.input.charCodeAt(++e.position);
1288
+ if (d(i)) for (I(e), i = e.input.charCodeAt(e.position), r++, e.lineIndent = 0; i === 32;) e.lineIndent++, i = e.input.charCodeAt(++e.position);
1290
1289
  else break;
1291
1290
  }
1292
1291
  return n !== -1 && r !== 0 && e.lineIndent < n && D(e, "deficient indentation"), r;
1293
1292
  }
1294
- T(R, "skipSeparationSpace");
1295
- function z(e) {
1293
+ E(L, "skipSeparationSpace");
1294
+ function R(e) {
1296
1295
  let t = e.position, n = e.input.charCodeAt(t);
1297
1296
  return !!((n === 45 || n === 46) && n === e.input.charCodeAt(t + 1) && n === e.input.charCodeAt(t + 2) && (t += 3, n = e.input.charCodeAt(t), n === 0 || p(n)));
1298
1297
  }
1299
- T(z, "testDocumentSeparator");
1300
- function te(t, n) {
1298
+ E(R, "testDocumentSeparator");
1299
+ function z(t, n) {
1301
1300
  n === 1 ? t.result += " " : n > 1 && (t.result += e.repeat("\n", n - 1));
1302
1301
  }
1303
- T(te, "writeFoldedLines");
1302
+ E(z, "writeFoldedLines");
1304
1303
  function ne(e, t, n) {
1305
1304
  let r, i, a, o, s, c, l = e.kind, u = e.result, h = e.input.charCodeAt(e.position);
1306
1305
  if (p(h) || m(h) || h === 35 || h === 38 || h === 42 || h === 33 || h === 124 || h === 62 || h === 39 || h === 34 || h === 37 || h === 64 || h === 96) return !1;
@@ -1314,66 +1313,66 @@ function Cn() {
1314
1313
  if (p(t) || n && m(t)) break;
1315
1314
  } else if (h === 35) {
1316
1315
  if (p(e.input.charCodeAt(e.position - 1))) break;
1317
- } else if (e.position === e.lineStart && z(e) || n && m(h)) break;
1316
+ } else if (e.position === e.lineStart && R(e) || n && m(h)) break;
1318
1317
  else if (d(h)) {
1319
- if (o = e.line, s = e.lineStart, c = e.lineIndent, R(e, !1, -1), e.lineIndent >= t) {
1318
+ if (o = e.line, s = e.lineStart, c = e.lineIndent, L(e, !1, -1), e.lineIndent >= t) {
1320
1319
  a = !0, h = e.input.charCodeAt(e.position);
1321
1320
  continue;
1322
1321
  }
1323
1322
  e.position = i, e.line = o, e.lineStart = s, e.lineIndent = c;
1324
1323
  break;
1325
1324
  }
1326
- a &&= (P(e, r, i, !1), te(e, e.line - o), r = i = e.position, !1), f(h) || (i = e.position + 1), h = e.input.charCodeAt(++e.position);
1325
+ a &&= (N(e, r, i, !1), z(e, e.line - o), r = i = e.position, !1), f(h) || (i = e.position + 1), h = e.input.charCodeAt(++e.position);
1327
1326
  }
1328
- return P(e, r, i, !1), e.result ? !0 : (e.kind = l, e.result = u, !1);
1327
+ return N(e, r, i, !1), e.result ? !0 : (e.kind = l, e.result = u, !1);
1329
1328
  }
1330
- T(ne, "readPlainScalar");
1329
+ E(ne, "readPlainScalar");
1331
1330
  function re(e, t) {
1332
1331
  let n, r, i = e.input.charCodeAt(e.position);
1333
1332
  if (i !== 39) return !1;
1334
1333
  for (e.kind = "scalar", e.result = "", e.position++, n = r = e.position; (i = e.input.charCodeAt(e.position)) !== 0;) if (i === 39) {
1335
- if (P(e, n, e.position, !0), i = e.input.charCodeAt(++e.position), i === 39) n = e.position, e.position++, r = e.position;
1334
+ if (N(e, n, e.position, !0), i = e.input.charCodeAt(++e.position), i === 39) n = e.position, e.position++, r = e.position;
1336
1335
  else return !0;
1337
- } else d(i) ? (P(e, n, r, !0), te(e, R(e, !1, t)), n = r = e.position) : e.position === e.lineStart && z(e) ? E(e, "unexpected end of the document within a single quoted scalar") : (e.position++, f(i) || (r = e.position));
1338
- E(e, "unexpected end of the stream within a single quoted scalar");
1336
+ } else d(i) ? (N(e, n, r, !0), z(e, L(e, !1, t)), n = r = e.position) : e.position === e.lineStart && R(e) ? T(e, "unexpected end of the document within a single quoted scalar") : (e.position++, f(i) || (r = e.position));
1337
+ T(e, "unexpected end of the stream within a single quoted scalar");
1339
1338
  }
1340
- T(re, "readSingleQuotedScalar");
1339
+ E(re, "readSingleQuotedScalar");
1341
1340
  function ie(e, t) {
1342
1341
  let n, r, i, a = e.input.charCodeAt(e.position);
1343
1342
  if (a !== 34) return !1;
1344
- for (e.kind = "scalar", e.result = "", e.position++, n = r = e.position; (a = e.input.charCodeAt(e.position)) !== 0;) if (a === 34) return P(e, n, e.position, !0), e.position++, !0;
1343
+ for (e.kind = "scalar", e.result = "", e.position++, n = r = e.position; (a = e.input.charCodeAt(e.position)) !== 0;) if (a === 34) return N(e, n, e.position, !0), e.position++, !0;
1345
1344
  else if (a === 92) {
1346
- if (P(e, n, e.position, !0), a = e.input.charCodeAt(++e.position), d(a)) R(e, !1, t);
1345
+ if (N(e, n, e.position, !0), a = e.input.charCodeAt(++e.position), d(a)) L(e, !1, t);
1347
1346
  else if (a < 256 && x[a]) e.result += S[a], e.position++;
1348
1347
  else if ((i = g(a)) > 0) {
1349
1348
  let t = i, n = 0;
1350
- for (; t > 0; t--) a = e.input.charCodeAt(++e.position), (i = h(a)) >= 0 ? n = (n << 4) + i : E(e, "expected hexadecimal character");
1349
+ for (; t > 0; t--) a = e.input.charCodeAt(++e.position), (i = h(a)) >= 0 ? n = (n << 4) + i : T(e, "expected hexadecimal character");
1351
1350
  e.result += y(n), e.position++;
1352
- } else E(e, "unknown escape sequence");
1351
+ } else T(e, "unknown escape sequence");
1353
1352
  n = r = e.position;
1354
- } else d(a) ? (P(e, n, r, !0), te(e, R(e, !1, t)), n = r = e.position) : e.position === e.lineStart && z(e) ? E(e, "unexpected end of the document within a double quoted scalar") : (e.position++, f(a) || (r = e.position));
1355
- E(e, "unexpected end of the stream within a double quoted scalar");
1353
+ } else d(a) ? (N(e, n, r, !0), z(e, L(e, !1, t)), n = r = e.position) : e.position === e.lineStart && R(e) ? T(e, "unexpected end of the document within a double quoted scalar") : (e.position++, f(a) || (r = e.position));
1354
+ T(e, "unexpected end of the stream within a double quoted scalar");
1356
1355
  }
1357
- T(ie, "readDoubleQuotedScalar");
1356
+ E(ie, "readDoubleQuotedScalar");
1358
1357
  function ae(e, t) {
1359
1358
  let n = !0, r, i, a, o = e.tag, s, c = e.anchor, l, u, d, f, m = /* @__PURE__ */ Object.create(null), h, g, _, v = e.input.charCodeAt(e.position);
1360
1359
  if (v === 91) l = 93, f = !1, s = [];
1361
1360
  else if (v === 123) l = 125, f = !0, s = {};
1362
1361
  else return !1;
1363
1362
  for (e.anchor !== null && O(e, e.anchor, s), v = e.input.charCodeAt(++e.position); v !== 0;) {
1364
- if (R(e, !0, t), v = e.input.charCodeAt(e.position), v === l) return e.position++, e.tag = o, e.anchor = c, e.kind = f ? "mapping" : "sequence", e.result = s, !0;
1365
- n ? v === 44 && E(e, "expected the node content, but found ','") : E(e, "missed comma between flow collection entries"), g = h = _ = null, u = d = !1, v === 63 && p(e.input.charCodeAt(e.position + 1)) && (u = d = !0, e.position++, R(e, !0, t)), r = e.line, i = e.lineStart, a = e.position, B(e, t, 1, !1, !0), g = e.tag, h = e.result, R(e, !0, t), v = e.input.charCodeAt(e.position), (d || e.line === r) && v === 58 && (u = !0, v = e.input.charCodeAt(++e.position), R(e, !0, t), B(e, t, 1, !1, !0), _ = e.result), f ? I(e, s, m, g, h, _, r, i, a) : u ? s.push(I(e, null, m, g, h, _, r, i, a)) : s.push(h), R(e, !0, t), v = e.input.charCodeAt(e.position), v === 44 ? (n = !0, v = e.input.charCodeAt(++e.position)) : n = !1;
1363
+ if (L(e, !0, t), v = e.input.charCodeAt(e.position), v === l) return e.position++, e.tag = o, e.anchor = c, e.kind = f ? "mapping" : "sequence", e.result = s, !0;
1364
+ n ? v === 44 && T(e, "expected the node content, but found ','") : T(e, "missed comma between flow collection entries"), g = h = _ = null, u = d = !1, v === 63 && p(e.input.charCodeAt(e.position + 1)) && (u = d = !0, e.position++, L(e, !0, t)), r = e.line, i = e.lineStart, a = e.position, B(e, t, 1, !1, !0), g = e.tag, h = e.result, L(e, !0, t), v = e.input.charCodeAt(e.position), (d || e.line === r) && v === 58 && (u = !0, v = e.input.charCodeAt(++e.position), L(e, !0, t), B(e, t, 1, !1, !0), _ = e.result), f ? F(e, s, m, g, h, _, r, i, a) : u ? s.push(F(e, null, m, g, h, _, r, i, a)) : s.push(h), L(e, !0, t), v = e.input.charCodeAt(e.position), v === 44 ? (n = !0, v = e.input.charCodeAt(++e.position)) : n = !1;
1366
1365
  }
1367
- E(e, "unexpected end of the stream within a flow collection");
1366
+ T(e, "unexpected end of the stream within a flow collection");
1368
1367
  }
1369
- T(ae, "readFlowCollection");
1368
+ E(ae, "readFlowCollection");
1370
1369
  function oe(t, n) {
1371
1370
  let r, i = 1, a = !1, o = !1, s = n, c = 0, l = !1, u, p = t.input.charCodeAt(t.position);
1372
1371
  if (p === 124) r = !1;
1373
1372
  else if (p === 62) r = !0;
1374
1373
  else return !1;
1375
- for (t.kind = "scalar", t.result = ""; p !== 0;) if (p = t.input.charCodeAt(++t.position), p === 43 || p === 45) i === 1 ? i = p === 43 ? 3 : 2 : E(t, "repeat of a chomping mode identifier");
1376
- else if ((u = _(p)) >= 0) u === 0 ? E(t, "bad explicit indentation width of a block scalar; it cannot be less than one") : o ? E(t, "repeat of an indentation width identifier") : (s = n + u - 1, o = !0);
1374
+ for (t.kind = "scalar", t.result = ""; p !== 0;) if (p = t.input.charCodeAt(++t.position), p === 43 || p === 45) i === 1 ? i = p === 43 ? 3 : 2 : T(t, "repeat of a chomping mode identifier");
1375
+ else if ((u = _(p)) >= 0) u === 0 ? T(t, "bad explicit indentation width of a block scalar; it cannot be less than one") : o ? T(t, "repeat of an indentation width identifier") : (s = n + u - 1, o = !0);
1377
1376
  else break;
1378
1377
  if (f(p)) {
1379
1378
  do
@@ -1384,134 +1383,134 @@ function Cn() {
1384
1383
  while (!d(p) && p !== 0);
1385
1384
  }
1386
1385
  for (; p !== 0;) {
1387
- for (L(t), t.lineIndent = 0, p = t.input.charCodeAt(t.position); (!o || t.lineIndent < s) && p === 32;) t.lineIndent++, p = t.input.charCodeAt(++t.position);
1386
+ for (I(t), t.lineIndent = 0, p = t.input.charCodeAt(t.position); (!o || t.lineIndent < s) && p === 32;) t.lineIndent++, p = t.input.charCodeAt(++t.position);
1388
1387
  if (!o && t.lineIndent > s && (s = t.lineIndent), d(p)) {
1389
1388
  c++;
1390
1389
  continue;
1391
1390
  }
1392
- if (!o && s === 0 && E(t, "missing indentation for block scalar"), t.lineIndent < s) {
1391
+ if (!o && s === 0 && T(t, "missing indentation for block scalar"), t.lineIndent < s) {
1393
1392
  i === 3 ? t.result += e.repeat("\n", a ? 1 + c : c) : i === 1 && a && (t.result += "\n");
1394
1393
  break;
1395
1394
  }
1396
1395
  r ? f(p) ? (l = !0, t.result += e.repeat("\n", a ? 1 + c : c)) : l ? (l = !1, t.result += e.repeat("\n", c + 1)) : c === 0 ? a && (t.result += " ") : t.result += e.repeat("\n", c) : t.result += e.repeat("\n", a ? 1 + c : c), a = !0, o = !0, c = 0;
1397
1396
  let n = t.position;
1398
1397
  for (; !d(p) && p !== 0;) p = t.input.charCodeAt(++t.position);
1399
- P(t, n, t.position, !1);
1398
+ N(t, n, t.position, !1);
1400
1399
  }
1401
1400
  return !0;
1402
1401
  }
1403
- T(oe, "readBlockScalar");
1402
+ E(oe, "readBlockScalar");
1404
1403
  function se(e, t) {
1405
1404
  let n = e.tag, r = e.anchor, i = [], a = !1;
1406
1405
  if (e.firstTabInLine !== -1) return !1;
1407
1406
  e.anchor !== null && O(e, e.anchor, i);
1408
1407
  let o = e.input.charCodeAt(e.position);
1409
- for (; o !== 0 && (e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, E(e, "tab characters must not be used in indentation")), !(o !== 45 || !p(e.input.charCodeAt(e.position + 1))));) {
1410
- if (a = !0, e.position++, R(e, !0, -1) && e.lineIndent <= t) {
1408
+ for (; o !== 0 && (e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, T(e, "tab characters must not be used in indentation")), o === 45 && p(e.input.charCodeAt(e.position + 1)));) {
1409
+ if (a = !0, e.position++, L(e, !0, -1) && e.lineIndent <= t) {
1411
1410
  i.push(null), o = e.input.charCodeAt(e.position);
1412
1411
  continue;
1413
1412
  }
1414
1413
  let n = e.line;
1415
- if (B(e, t, 3, !1, !0), i.push(e.result), R(e, !0, -1), o = e.input.charCodeAt(e.position), (e.line === n || e.lineIndent > t) && o !== 0) E(e, "bad indentation of a sequence entry");
1414
+ if (B(e, t, 3, !1, !0), i.push(e.result), L(e, !0, -1), o = e.input.charCodeAt(e.position), (e.line === n || e.lineIndent > t) && o !== 0) T(e, "bad indentation of a sequence entry");
1416
1415
  else if (e.lineIndent < t) break;
1417
1416
  }
1418
1417
  return a ? (e.tag = n, e.anchor = r, e.kind = "sequence", e.result = i, !0) : !1;
1419
1418
  }
1420
- T(se, "readBlockSequence");
1419
+ E(se, "readBlockSequence");
1421
1420
  function ce(e, t, n) {
1422
1421
  let r, i, a, o, s = e.tag, c = e.anchor, l = {}, u = /* @__PURE__ */ Object.create(null), d = null, m = null, h = null, g = !1, _ = !1;
1423
1422
  if (e.firstTabInLine !== -1) return !1;
1424
1423
  e.anchor !== null && O(e, e.anchor, l);
1425
1424
  let v = e.input.charCodeAt(e.position);
1426
1425
  for (; v !== 0;) {
1427
- !g && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, E(e, "tab characters must not be used in indentation"));
1426
+ !g && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, T(e, "tab characters must not be used in indentation"));
1428
1427
  let y = e.input.charCodeAt(e.position + 1), b = e.line;
1429
- if ((v === 63 || v === 58) && p(y)) v === 63 ? (g && (I(e, l, u, d, m, null, i, a, o), d = m = h = null), _ = !0, g = !0, r = !0) : g ? (g = !1, r = !0) : E(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, v = y;
1428
+ if ((v === 63 || v === 58) && p(y)) v === 63 ? (g && (F(e, l, u, d, m, null, i, a, o), d = m = h = null), _ = !0, g = !0, r = !0) : g ? (g = !1, r = !0) : T(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, v = y;
1430
1429
  else {
1431
1430
  if (i = e.line, a = e.lineStart, o = e.position, !B(e, n, 2, !1, !0)) break;
1432
1431
  if (e.line === b) {
1433
1432
  for (v = e.input.charCodeAt(e.position); f(v);) v = e.input.charCodeAt(++e.position);
1434
- if (v === 58) v = e.input.charCodeAt(++e.position), p(v) || E(e, "a whitespace character is expected after the key-value separator within a block mapping"), g && (I(e, l, u, d, m, null, i, a, o), d = m = h = null), _ = !0, g = !1, r = !1, d = e.tag, m = e.result;
1435
- else if (_) E(e, "can not read an implicit mapping pair; a colon is missed");
1433
+ if (v === 58) v = e.input.charCodeAt(++e.position), p(v) || T(e, "a whitespace character is expected after the key-value separator within a block mapping"), g && (F(e, l, u, d, m, null, i, a, o), d = m = h = null), _ = !0, g = !1, r = !1, d = e.tag, m = e.result;
1434
+ else if (_) T(e, "can not read an implicit mapping pair; a colon is missed");
1436
1435
  else return e.tag = s, e.anchor = c, !0;
1437
- } else if (_) E(e, "can not read a block mapping entry; a multiline key may not be an implicit key");
1436
+ } else if (_) T(e, "can not read a block mapping entry; a multiline key may not be an implicit key");
1438
1437
  else return e.tag = s, e.anchor = c, !0;
1439
1438
  }
1440
- if ((e.line === b || e.lineIndent > t) && (g && (i = e.line, a = e.lineStart, o = e.position), B(e, t, 4, !0, r) && (g ? m = e.result : h = e.result), g || (I(e, l, u, d, m, h, i, a, o), d = m = h = null), R(e, !0, -1), v = e.input.charCodeAt(e.position)), (e.line === b || e.lineIndent > t) && v !== 0) E(e, "bad indentation of a mapping entry");
1439
+ if ((e.line === b || e.lineIndent > t) && (g && (i = e.line, a = e.lineStart, o = e.position), B(e, t, 4, !0, r) && (g ? m = e.result : h = e.result), g || (F(e, l, u, d, m, h, i, a, o), d = m = h = null), L(e, !0, -1), v = e.input.charCodeAt(e.position)), (e.line === b || e.lineIndent > t) && v !== 0) T(e, "bad indentation of a mapping entry");
1441
1440
  else if (e.lineIndent < t) break;
1442
1441
  }
1443
- return g && I(e, l, u, d, m, null, i, a, o), _ && (e.tag = s, e.anchor = c, e.kind = "mapping", e.result = l), _;
1442
+ return g && F(e, l, u, d, m, null, i, a, o), _ && (e.tag = s, e.anchor = c, e.kind = "mapping", e.result = l), _;
1444
1443
  }
1445
- T(ce, "readBlockMapping");
1444
+ E(ce, "readBlockMapping");
1446
1445
  function le(e) {
1447
1446
  let t = !1, n = !1, r, a, o = e.input.charCodeAt(e.position);
1448
1447
  if (o !== 33) return !1;
1449
- e.tag !== null && E(e, "duplication of a tag property"), o = e.input.charCodeAt(++e.position), o === 60 ? (t = !0, o = e.input.charCodeAt(++e.position)) : o === 33 ? (n = !0, r = "!!", o = e.input.charCodeAt(++e.position)) : r = "!";
1448
+ e.tag !== null && T(e, "duplication of a tag property"), o = e.input.charCodeAt(++e.position), o === 60 ? (t = !0, o = e.input.charCodeAt(++e.position)) : o === 33 ? (n = !0, r = "!!", o = e.input.charCodeAt(++e.position)) : r = "!";
1450
1449
  let u = e.position;
1451
1450
  if (t) {
1452
1451
  do
1453
1452
  o = e.input.charCodeAt(++e.position);
1454
1453
  while (o !== 0 && o !== 62);
1455
- e.position < e.length ? (a = e.input.slice(u, e.position), o = e.input.charCodeAt(++e.position)) : E(e, "unexpected end of the stream within a verbatim tag");
1454
+ e.position < e.length ? (a = e.input.slice(u, e.position), o = e.input.charCodeAt(++e.position)) : T(e, "unexpected end of the stream within a verbatim tag");
1456
1455
  } else {
1457
- for (; o !== 0 && !p(o);) o === 33 && (n ? E(e, "tag suffix cannot contain exclamation marks") : (r = e.input.slice(u - 1, e.position + 1), c.test(r) || E(e, "named tag handle cannot contain such characters"), n = !0, u = e.position + 1)), o = e.input.charCodeAt(++e.position);
1458
- a = e.input.slice(u, e.position), s.test(a) && E(e, "tag suffix cannot contain flow indicator characters");
1456
+ for (; o !== 0 && !p(o);) o === 33 && (n ? T(e, "tag suffix cannot contain exclamation marks") : (r = e.input.slice(u - 1, e.position + 1), c.test(r) || T(e, "named tag handle cannot contain such characters"), n = !0, u = e.position + 1)), o = e.input.charCodeAt(++e.position);
1457
+ a = e.input.slice(u, e.position), s.test(a) && T(e, "tag suffix cannot contain flow indicator characters");
1459
1458
  }
1460
- a && !l.test(a) && E(e, "tag name cannot contain such characters: " + a);
1459
+ a && !l.test(a) && T(e, "tag name cannot contain such characters: " + a);
1461
1460
  try {
1462
1461
  a = decodeURIComponent(a);
1463
1462
  } catch {
1464
- E(e, "tag name is malformed: " + a);
1463
+ T(e, "tag name is malformed: " + a);
1465
1464
  }
1466
- return t ? e.tag = a : i.call(e.tagMap, r) ? e.tag = e.tagMap[r] + a : r === "!" ? e.tag = "!" + a : r === "!!" ? e.tag = "tag:yaml.org,2002:" + a : E(e, "undeclared tag handle \"" + r + "\""), !0;
1465
+ return t ? e.tag = a : i.call(e.tagMap, r) ? e.tag = e.tagMap[r] + a : r === "!" ? e.tag = "!" + a : r === "!!" ? e.tag = "tag:yaml.org,2002:" + a : T(e, "undeclared tag handle \"" + r + "\""), !0;
1467
1466
  }
1468
- T(le, "readTagProperty");
1467
+ E(le, "readTagProperty");
1469
1468
  function ue(e) {
1470
1469
  let t = e.input.charCodeAt(e.position);
1471
1470
  if (t !== 38) return !1;
1472
- e.anchor !== null && E(e, "duplication of an anchor property"), t = e.input.charCodeAt(++e.position);
1471
+ e.anchor !== null && T(e, "duplication of an anchor property"), t = e.input.charCodeAt(++e.position);
1473
1472
  let n = e.position;
1474
1473
  for (; t !== 0 && !p(t) && !m(t);) t = e.input.charCodeAt(++e.position);
1475
- return e.position === n && E(e, "name of an anchor node must contain at least one character"), e.anchor = e.input.slice(n, e.position), !0;
1474
+ return e.position === n && T(e, "name of an anchor node must contain at least one character"), e.anchor = e.input.slice(n, e.position), !0;
1476
1475
  }
1477
- T(ue, "readAnchorProperty");
1476
+ E(ue, "readAnchorProperty");
1478
1477
  function de(e) {
1479
1478
  let t = e.input.charCodeAt(e.position);
1480
1479
  if (t !== 42) return !1;
1481
1480
  t = e.input.charCodeAt(++e.position);
1482
1481
  let n = e.position;
1483
1482
  for (; t !== 0 && !p(t) && !m(t);) t = e.input.charCodeAt(++e.position);
1484
- e.position === n && E(e, "name of an alias node must contain at least one character");
1483
+ e.position === n && T(e, "name of an alias node must contain at least one character");
1485
1484
  let r = e.input.slice(n, e.position);
1486
- return i.call(e.anchorMap, r) || E(e, "unidentified alias \"" + r + "\""), e.result = e.anchorMap[r], R(e, !0, -1), !0;
1485
+ return i.call(e.anchorMap, r) || T(e, "unidentified alias \"" + r + "\""), e.result = e.anchorMap[r], L(e, !0, -1), !0;
1487
1486
  }
1488
- T(de, "readAlias");
1487
+ E(de, "readAlias");
1489
1488
  function fe(e, t, n, r) {
1490
- let i = M(e);
1491
- return k(e), N(e, t), e.tag = null, e.anchor = null, e.kind = null, e.result = null, ce(e, n, r) && e.kind === "mapping" ? (A(e), !0) : (j(e), N(e, i), !1);
1489
+ let i = j(e);
1490
+ return k(e), te(e, t), e.tag = null, e.anchor = null, e.kind = null, e.result = null, ce(e, n, r) && e.kind === "mapping" ? (ee(e), !0) : (A(e), te(e, i), !1);
1492
1491
  }
1493
- T(fe, "tryReadBlockMappingFromProperty");
1492
+ E(fe, "tryReadBlockMappingFromProperty");
1494
1493
  function B(e, t, n, r, a) {
1495
1494
  let o, s, c = 1, l = !1, u = !1, d = null, f, p, m;
1496
- e.depth >= e.maxDepth && E(e, "nesting exceeded maxDepth (" + e.maxDepth + ")"), e.depth += 1, e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null;
1495
+ e.depth >= e.maxDepth && T(e, "nesting exceeded maxDepth (" + e.maxDepth + ")"), e.depth += 1, e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null;
1497
1496
  let h = o = s = n === 4 || n === 3;
1498
- if (r && R(e, !0, -1) && (l = !0, e.lineIndent > t ? c = 1 : e.lineIndent === t ? c = 0 : e.lineIndent < t && (c = -1)), c === 1) for (;;) {
1499
- let n = e.input.charCodeAt(e.position), r = M(e);
1497
+ if (r && L(e, !0, -1) && (l = !0, e.lineIndent > t ? c = 1 : e.lineIndent === t ? c = 0 : e.lineIndent < t && (c = -1)), c === 1) for (;;) {
1498
+ let n = e.input.charCodeAt(e.position), r = j(e);
1500
1499
  if (l && (n === 33 && e.tag !== null || n === 38 && e.anchor !== null) || !le(e) && !ue(e)) break;
1501
- d === null && (d = r), R(e, !0, -1) ? (l = !0, s = h, e.lineIndent > t ? c = 1 : e.lineIndent === t ? c = 0 : e.lineIndent < t && (c = -1)) : s = !1;
1500
+ d === null && (d = r), L(e, !0, -1) ? (l = !0, s = h, e.lineIndent > t ? c = 1 : e.lineIndent === t ? c = 0 : e.lineIndent < t && (c = -1)) : s = !1;
1502
1501
  }
1503
1502
  if (s &&= l || a, c === 1 || n === 4) {
1504
1503
  if (p = n === 1 || n === 2 ? t : t + 1, m = e.position - e.lineStart, c === 1) {
1505
1504
  if (s && (se(e, m) || ce(e, m, p)) || ae(e, p)) u = !0;
1506
1505
  else {
1507
1506
  let t = e.input.charCodeAt(e.position);
1508
- d !== null && h && !s && t !== 124 && t !== 62 && fe(e, d, d.position - d.lineStart, p) || o && oe(e, p) || re(e, p) || ie(e, p) ? u = !0 : de(e) ? (u = !0, (e.tag !== null || e.anchor !== null) && E(e, "alias node should not have any properties")) : ne(e, p, n === 1) && (u = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && O(e, e.anchor, e.result);
1507
+ d !== null && h && !s && t !== 124 && t !== 62 && fe(e, d, d.position - d.lineStart, p) || o && oe(e, p) || re(e, p) || ie(e, p) ? u = !0 : de(e) ? (u = !0, (e.tag !== null || e.anchor !== null) && T(e, "alias node should not have any properties")) : ne(e, p, n === 1) && (u = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && O(e, e.anchor, e.result);
1509
1508
  }
1510
1509
  } else c === 0 && (u = s && se(e, m));
1511
1510
  }
1512
1511
  if (e.tag === null) e.anchor !== null && O(e, e.anchor, e.result);
1513
1512
  else if (e.tag === "?") {
1514
- e.result !== null && e.kind !== "scalar" && E(e, "unacceptable node kind for !<?> tag; it should be \"scalar\", not \"" + e.kind + "\"");
1513
+ e.result !== null && e.kind !== "scalar" && T(e, "unacceptable node kind for !<?> tag; it should be \"scalar\", not \"" + e.kind + "\"");
1515
1514
  for (let t = 0, n = e.implicitTypes.length; t < n; t += 1) if (f = e.implicitTypes[t], f.resolve(e.result)) {
1516
1515
  e.result = f.construct(e.result), e.tag = f.tag, e.anchor !== null && O(e, e.anchor, e.result);
1517
1516
  break;
@@ -1526,19 +1525,19 @@ function Cn() {
1526
1525
  break;
1527
1526
  }
1528
1527
  }
1529
- f || E(e, "unknown tag !<" + e.tag + ">"), e.result !== null && f.kind !== e.kind && E(e, "unacceptable node kind for !<" + e.tag + "> tag; it should be \"" + f.kind + "\", not \"" + e.kind + "\""), f.resolve(e.result, e.tag) ? (e.result = f.construct(e.result, e.tag), e.anchor !== null && O(e, e.anchor, e.result)) : E(e, "cannot resolve a node with !<" + e.tag + "> explicit tag");
1528
+ f || T(e, "unknown tag !<" + e.tag + ">"), e.result !== null && f.kind !== e.kind && T(e, "unacceptable node kind for !<" + e.tag + "> tag; it should be \"" + f.kind + "\", not \"" + e.kind + "\""), f.resolve(e.result, e.tag) ? (e.result = f.construct(e.result, e.tag), e.anchor !== null && O(e, e.anchor, e.result)) : T(e, "cannot resolve a node with !<" + e.tag + "> explicit tag");
1530
1529
  }
1531
1530
  return e.listener !== null && e.listener("close", e), --e.depth, e.tag !== null || e.anchor !== null || u;
1532
1531
  }
1533
- T(B, "composeNode");
1532
+ E(B, "composeNode");
1534
1533
  function pe(e) {
1535
1534
  let t = e.position, n = !1, r;
1536
- for (e.version = null, e.checkLineBreaks = e.legacy, e.tagMap = /* @__PURE__ */ Object.create(null), e.anchorMap = /* @__PURE__ */ Object.create(null); (r = e.input.charCodeAt(e.position)) !== 0 && (R(e, !0, -1), r = e.input.charCodeAt(e.position), !(e.lineIndent > 0 || r !== 37));) {
1535
+ for (e.version = null, e.checkLineBreaks = e.legacy, e.tagMap = /* @__PURE__ */ Object.create(null), e.anchorMap = /* @__PURE__ */ Object.create(null); (r = e.input.charCodeAt(e.position)) !== 0 && (L(e, !0, -1), r = e.input.charCodeAt(e.position), !(e.lineIndent > 0 || r !== 37));) {
1537
1536
  n = !0, r = e.input.charCodeAt(++e.position);
1538
1537
  let t = e.position;
1539
1538
  for (; r !== 0 && !p(r);) r = e.input.charCodeAt(++e.position);
1540
1539
  let a = e.input.slice(t, e.position), o = [];
1541
- for (a.length < 1 && E(e, "directive name must not be less than one character in length"); r !== 0;) {
1540
+ for (a.length < 1 && T(e, "directive name must not be less than one character in length"); r !== 0;) {
1542
1541
  for (; f(r);) r = e.input.charCodeAt(++e.position);
1543
1542
  if (r === 35) {
1544
1543
  do
@@ -1550,30 +1549,26 @@ function Cn() {
1550
1549
  for (t = e.position; r !== 0 && !p(r);) r = e.input.charCodeAt(++e.position);
1551
1550
  o.push(e.input.slice(t, e.position));
1552
1551
  }
1553
- r !== 0 && L(e), i.call(ee, a) ? ee[a](e, a, o) : D(e, "unknown document directive \"" + a + "\"");
1552
+ r !== 0 && I(e), i.call(M, a) ? M[a](e, a, o) : D(e, "unknown document directive \"" + a + "\"");
1554
1553
  }
1555
- if (R(e, !0, -1), e.lineIndent === 0 && e.input.charCodeAt(e.position) === 45 && e.input.charCodeAt(e.position + 1) === 45 && e.input.charCodeAt(e.position + 2) === 45 ? (e.position += 3, R(e, !0, -1)) : n && E(e, "directives end mark is expected"), B(e, e.lineIndent - 1, 4, !1, !0), R(e, !0, -1), e.checkLineBreaks && o.test(e.input.slice(t, e.position)) && D(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && z(e)) {
1556
- e.input.charCodeAt(e.position) === 46 && (e.position += 3, R(e, !0, -1));
1557
- return;
1558
- }
1559
- e.position < e.length - 1 && E(e, "end of the stream or a document separator is expected");
1554
+ L(e, !0, -1), e.lineIndent === 0 && e.input.charCodeAt(e.position) === 45 && e.input.charCodeAt(e.position + 1) === 45 && e.input.charCodeAt(e.position + 2) === 45 ? (e.position += 3, L(e, !0, -1)) : n && T(e, "directives end mark is expected"), B(e, e.lineIndent - 1, 4, !1, !0), L(e, !0, -1), e.checkLineBreaks && o.test(e.input.slice(t, e.position)) && D(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && R(e) ? e.input.charCodeAt(e.position) === 46 && (e.position += 3, L(e, !0, -1)) : e.position < e.length - 1 && T(e, "end of the stream or a document separator is expected");
1560
1555
  }
1561
- T(pe, "readDocument");
1556
+ E(pe, "readDocument");
1562
1557
  function me(e, t) {
1563
1558
  e = String(e), t ||= {}, e.length !== 0 && (e.charCodeAt(e.length - 1) !== 10 && e.charCodeAt(e.length - 1) !== 13 && (e += "\n"), e.charCodeAt(0) === 65279 && (e = e.slice(1)));
1564
1559
  let n = new C(e, t), r = e.indexOf("\0");
1565
- for (r !== -1 && (n.position = r, E(n, "null byte is not allowed in input")), n.input += "\0"; n.input.charCodeAt(n.position) === 32;) n.lineIndent += 1, n.position += 1;
1560
+ for (r !== -1 && (n.position = r, T(n, "null byte is not allowed in input")), n.input += "\0"; n.input.charCodeAt(n.position) === 32;) n.lineIndent += 1, n.position += 1;
1566
1561
  for (; n.position < n.length - 1;) pe(n);
1567
1562
  return n.documents;
1568
1563
  }
1569
- T(me, "loadDocuments");
1564
+ E(me, "loadDocuments");
1570
1565
  function he(e, t, n) {
1571
1566
  typeof t == "object" && t && n === void 0 && (n = t, t = null);
1572
1567
  let r = me(e, n);
1573
1568
  if (typeof t != "function") return r;
1574
1569
  for (let e = 0, n = r.length; e < n; e += 1) t(r[e]);
1575
1570
  }
1576
- T(he, "loadAll2");
1571
+ E(he, "loadAll2");
1577
1572
  function ge(e, n) {
1578
1573
  let r = me(e, n);
1579
1574
  if (r.length !== 0) {
@@ -1581,14 +1576,14 @@ function Cn() {
1581
1576
  throw new t("expected a single document in the stream, but found more");
1582
1577
  }
1583
1578
  }
1584
- return T(ge, "load2"), dt.loadAll = he, dt.load = ge, dt;
1579
+ return E(ge, "load2"), ft.loadAll = he, ft.load = ge, ft;
1585
1580
  }
1586
- T(Cn, "requireLoader");
1587
- var wn = {}, Tn;
1588
- function En() {
1589
- if (Tn) return wn;
1590
- Tn = 1;
1591
- let e = G(), t = ht(), n = xn(), r = Object.prototype.toString, i = Object.prototype.hasOwnProperty, a = 65279, o = {};
1581
+ E(wn, "requireLoader");
1582
+ var Tn = {}, En;
1583
+ function Dn() {
1584
+ if (En) return Tn;
1585
+ En = 1;
1586
+ let e = G(), t = gt(), n = Sn(), r = Object.prototype.toString, i = Object.prototype.hasOwnProperty, a = 65279, o = {};
1592
1587
  o[0] = "\\0", o[7] = "\\a", o[8] = "\\b", o[9] = "\\t", o[10] = "\\n", o[11] = "\\v", o[12] = "\\f", o[13] = "\\r", o[27] = "\\e", o[34] = "\\\"", o[92] = "\\\\", o[133] = "\\N", o[160] = "\\_", o[8232] = "\\L", o[8233] = "\\P";
1593
1588
  let s = [
1594
1589
  "y",
@@ -1619,7 +1614,7 @@ function En() {
1619
1614
  }
1620
1615
  return n;
1621
1616
  }
1622
- T(l, "compileStyleMap");
1617
+ E(l, "compileStyleMap");
1623
1618
  function u(n) {
1624
1619
  let r, i, a = n.toString(16).toUpperCase();
1625
1620
  if (n <= 255) r = "x", i = 2;
@@ -1628,11 +1623,11 @@ function En() {
1628
1623
  else throw new t("code point within a string may not be greater than 0xFFFFFFFF");
1629
1624
  return "\\" + r + e.repeat("0", i - a.length) + a;
1630
1625
  }
1631
- T(u, "encodeHex");
1626
+ E(u, "encodeHex");
1632
1627
  function d(t) {
1633
1628
  this.schema = t.schema || n, this.indent = Math.max(1, t.indent || 2), this.noArrayIndent = t.noArrayIndent || !1, this.skipInvalid = t.skipInvalid || !1, this.flowLevel = e.isNothing(t.flowLevel) ? -1 : t.flowLevel, this.styleMap = l(this.schema, t.styles || null), this.sortKeys = t.sortKeys || !1, this.lineWidth = t.lineWidth || 80, this.noRefs = t.noRefs || !1, this.noCompatMode = t.noCompatMode || !1, this.condenseFlow = t.condenseFlow || !1, this.quotingType = t.quotingType === "\"" ? 2 : 1, this.forceQuotes = t.forceQuotes || !1, this.replacer = typeof t.replacer == "function" ? t.replacer : null, this.implicitTypes = this.schema.compiledImplicit, this.explicitTypes = this.schema.compiledExplicit, this.tag = null, this.result = "", this.duplicates = [], this.usedDuplicates = null;
1634
1629
  }
1635
- T(d, "State");
1630
+ E(d, "State");
1636
1631
  function f(t, n) {
1637
1632
  let r = e.repeat(" ", n), i = 0, a = "", o = t.length;
1638
1633
  for (; i < o;) {
@@ -1641,50 +1636,50 @@ function En() {
1641
1636
  }
1642
1637
  return a;
1643
1638
  }
1644
- T(f, "indentString");
1639
+ E(f, "indentString");
1645
1640
  function p(t, n) {
1646
1641
  return "\n" + e.repeat(" ", t.indent * n);
1647
1642
  }
1648
- T(p, "generateNextLine");
1643
+ E(p, "generateNextLine");
1649
1644
  function m(e, t) {
1650
1645
  for (let n = 0, r = e.implicitTypes.length; n < r; n += 1) if (e.implicitTypes[n].resolve(t)) return !0;
1651
1646
  return !1;
1652
1647
  }
1653
- T(m, "testImplicitResolving");
1648
+ E(m, "testImplicitResolving");
1654
1649
  function h(e) {
1655
1650
  return e === 32 || e === 9;
1656
1651
  }
1657
- T(h, "isWhitespace");
1652
+ E(h, "isWhitespace");
1658
1653
  function g(e) {
1659
1654
  return e >= 32 && e <= 126 || e >= 161 && e <= 55295 && e !== 8232 && e !== 8233 || e >= 57344 && e <= 65533 && e !== a || e >= 65536 && e <= 1114111;
1660
1655
  }
1661
- T(g, "isPrintable");
1656
+ E(g, "isPrintable");
1662
1657
  function _(e) {
1663
1658
  return g(e) && e !== a && e !== 13 && e !== 10;
1664
1659
  }
1665
- T(_, "isNsCharOrWhitespace");
1660
+ E(_, "isNsCharOrWhitespace");
1666
1661
  function v(e, t, n) {
1667
1662
  let r = _(e), i = r && !h(e);
1668
1663
  return (n ? r : r && e !== 44 && e !== 91 && e !== 93 && e !== 123 && e !== 125) && e !== 35 && !(t === 58 && !i) || _(t) && !h(t) && e === 35 || t === 58 && i;
1669
1664
  }
1670
- T(v, "isPlainSafe");
1665
+ E(v, "isPlainSafe");
1671
1666
  function y(e) {
1672
1667
  return g(e) && e !== a && !h(e) && e !== 45 && e !== 63 && e !== 58 && e !== 44 && e !== 91 && e !== 93 && e !== 123 && e !== 125 && e !== 35 && e !== 38 && e !== 42 && e !== 33 && e !== 124 && e !== 61 && e !== 62 && e !== 39 && e !== 34 && e !== 37 && e !== 64 && e !== 96;
1673
1668
  }
1674
- T(y, "isPlainSafeFirst");
1669
+ E(y, "isPlainSafeFirst");
1675
1670
  function b(e) {
1676
1671
  return !h(e) && e !== 58;
1677
1672
  }
1678
- T(b, "isPlainSafeLast");
1673
+ E(b, "isPlainSafeLast");
1679
1674
  function x(e, t) {
1680
1675
  let n = e.charCodeAt(t), r;
1681
1676
  return n >= 55296 && n <= 56319 && t + 1 < e.length && (r = e.charCodeAt(t + 1), r >= 56320 && r <= 57343) ? (n - 55296) * 1024 + r - 56320 + 65536 : n;
1682
1677
  }
1683
- T(x, "codePointAt");
1678
+ E(x, "codePointAt");
1684
1679
  function S(e) {
1685
1680
  return /^\n* /.test(e);
1686
1681
  }
1687
- T(S, "needIndentIndicator");
1682
+ E(S, "needIndentIndicator");
1688
1683
  function C(e, t, n, r, i, a, o, s) {
1689
1684
  let c, l = 0, u = null, d = !1, f = !1, p = r !== -1, m = -1, h = y(x(e, 0)) && b(x(e, e.length - 1));
1690
1685
  if (t || o) for (c = 0; c < e.length; l >= 65536 ? c += 2 : c++) {
@@ -1701,7 +1696,7 @@ function En() {
1701
1696
  }
1702
1697
  return !d && !f ? h && !o && !i(e) ? 1 : a === 2 ? 5 : 2 : n > 9 && S(e) ? 5 : o ? a === 2 ? 5 : 2 : f ? 4 : 3;
1703
1698
  }
1704
- T(C, "chooseScalarStyle");
1699
+ E(C, "chooseScalarStyle");
1705
1700
  function w(e, n, r, i, a) {
1706
1701
  e.dump = (function() {
1707
1702
  if (n.length === 0) return e.quotingType === 2 ? "\"\"" : "''";
@@ -1710,26 +1705,26 @@ function En() {
1710
1705
  function d(t) {
1711
1706
  return m(e, t);
1712
1707
  }
1713
- switch (T(d, "testAmbiguity"), C(n, u, e.indent, l, d, e.quotingType, e.forceQuotes && !i, a)) {
1708
+ switch (E(d, "testAmbiguity"), C(n, u, e.indent, l, d, e.quotingType, e.forceQuotes && !i, a)) {
1714
1709
  case 1: return n;
1715
1710
  case 2: return "'" + n.replace(/'/g, "''") + "'";
1716
- case 3: return "|" + E(n, e.indent) + D(f(n, o));
1717
- case 4: return ">" + E(n, e.indent) + D(f(O(n, l), o));
1718
- case 5: return "\"" + A(n) + "\"";
1711
+ case 3: return "|" + T(n, e.indent) + D(f(n, o));
1712
+ case 4: return ">" + T(n, e.indent) + D(f(O(n, l), o));
1713
+ case 5: return "\"" + ee(n) + "\"";
1719
1714
  default: throw new t("impossible error: invalid scalar style");
1720
1715
  }
1721
1716
  })();
1722
1717
  }
1723
- T(w, "writeScalar");
1724
- function E(e, t) {
1718
+ E(w, "writeScalar");
1719
+ function T(e, t) {
1725
1720
  let n = S(e) ? String(t) : "", r = e[e.length - 1] === "\n";
1726
1721
  return n + (r && (e[e.length - 2] === "\n" || e === "\n") ? "+" : r ? "" : "-") + "\n";
1727
1722
  }
1728
- T(E, "blockHeader");
1723
+ E(T, "blockHeader");
1729
1724
  function D(e) {
1730
1725
  return e[e.length - 1] === "\n" ? e.slice(0, -1) : e;
1731
1726
  }
1732
- T(D, "dropEndingNewline");
1727
+ E(D, "dropEndingNewline");
1733
1728
  function O(e, t) {
1734
1729
  let n = /(\n+)([^\n]*)/g, r = (function() {
1735
1730
  let r = e.indexOf("\n");
@@ -1741,15 +1736,15 @@ function En() {
1741
1736
  }
1742
1737
  return r;
1743
1738
  }
1744
- T(O, "foldString");
1739
+ E(O, "foldString");
1745
1740
  function k(e, t) {
1746
1741
  if (e === "" || e[0] === " ") return e;
1747
1742
  let n = / [^ ]/g, r, i = 0, a, o = 0, s = 0, c = "";
1748
1743
  for (; r = n.exec(e);) s = r.index, s - i > t && (a = o > i ? o : s, c += "\n" + e.slice(i, a), i = a + 1), o = s;
1749
1744
  return c += "\n", e.length - i > t && o > i ? c += e.slice(i, o) + "\n" + e.slice(o + 1) : c += e.slice(i), c.slice(1);
1750
1745
  }
1751
- T(k, "foldLine");
1752
- function A(e) {
1746
+ E(k, "foldLine");
1747
+ function ee(e) {
1753
1748
  let t = "", n = 0;
1754
1749
  for (let r = 0; r < e.length; n >= 65536 ? r += 2 : r++) {
1755
1750
  n = x(e, r);
@@ -1758,37 +1753,37 @@ function En() {
1758
1753
  }
1759
1754
  return t;
1760
1755
  }
1761
- T(A, "escapeString");
1762
- function j(e, t, n) {
1756
+ E(ee, "escapeString");
1757
+ function A(e, t, n) {
1763
1758
  let r = "", i = e.tag;
1764
1759
  for (let i = 0, a = n.length; i < a; i += 1) {
1765
1760
  let a = n[i];
1766
- e.replacer && (a = e.replacer.call(n, String(i), a)), (F(e, t, a, !1, !1) || a === void 0 && F(e, t, null, !1, !1)) && (r !== "" && (r += "," + (e.condenseFlow ? "" : " ")), r += e.dump);
1761
+ e.replacer && (a = e.replacer.call(n, String(i), a)), (P(e, t, a, !1, !1) || a === void 0 && P(e, t, null, !1, !1)) && (r !== "" && (r += "," + (e.condenseFlow ? "" : " ")), r += e.dump);
1767
1762
  }
1768
1763
  e.tag = i, e.dump = "[" + r + "]";
1769
1764
  }
1770
- T(j, "writeFlowSequence");
1771
- function M(e, t, n, r) {
1765
+ E(A, "writeFlowSequence");
1766
+ function j(e, t, n, r) {
1772
1767
  let i = "", a = e.tag;
1773
1768
  for (let a = 0, o = n.length; a < o; a += 1) {
1774
1769
  let o = n[a];
1775
- e.replacer && (o = e.replacer.call(n, String(a), o)), (F(e, t + 1, o, !0, !0, !1, !0) || o === void 0 && F(e, t + 1, null, !0, !0, !1, !0)) && ((!r || i !== "") && (i += p(e, t)), e.dump && e.dump.charCodeAt(0) === 10 ? i += "-" : i += "- ", i += e.dump);
1770
+ e.replacer && (o = e.replacer.call(n, String(a), o)), (P(e, t + 1, o, !0, !0, !1, !0) || o === void 0 && P(e, t + 1, null, !0, !0, !1, !0)) && ((!r || i !== "") && (i += p(e, t)), e.dump && e.dump.charCodeAt(0) === 10 ? i += "-" : i += "- ", i += e.dump);
1776
1771
  }
1777
1772
  e.tag = a, e.dump = i || "[]";
1778
1773
  }
1779
- T(M, "writeBlockSequence");
1780
- function N(e, t, n) {
1774
+ E(j, "writeBlockSequence");
1775
+ function te(e, t, n) {
1781
1776
  let r = "", i = e.tag, a = Object.keys(n);
1782
1777
  for (let i = 0, o = a.length; i < o; i += 1) {
1783
1778
  let o = "";
1784
1779
  r !== "" && (o += ", "), e.condenseFlow && (o += "\"");
1785
1780
  let s = a[i], c = n[s];
1786
- e.replacer && (c = e.replacer.call(n, s, c)), F(e, t, s, !1, !1) && (e.dump.length > 1024 && (o += "? "), o += e.dump + (e.condenseFlow ? "\"" : "") + ":" + (e.condenseFlow ? "" : " "), F(e, t, c, !1, !1) && (o += e.dump, r += o));
1781
+ e.replacer && (c = e.replacer.call(n, s, c)), P(e, t, s, !1, !1) && (e.dump.length > 1024 && (o += "? "), o += e.dump + (e.condenseFlow ? "\"" : "") + ":" + (e.condenseFlow ? "" : " "), P(e, t, c, !1, !1) && (o += e.dump, r += o));
1787
1782
  }
1788
1783
  e.tag = i, e.dump = "{" + r + "}";
1789
1784
  }
1790
- T(N, "writeFlowMapping");
1791
- function ee(e, n, r, i) {
1785
+ E(te, "writeFlowMapping");
1786
+ function M(e, n, r, i) {
1792
1787
  let a = "", o = e.tag, s = Object.keys(r);
1793
1788
  if (e.sortKeys === !0) s.sort();
1794
1789
  else if (typeof e.sortKeys == "function") s.sort(e.sortKeys);
@@ -1797,14 +1792,14 @@ function En() {
1797
1792
  let o = "";
1798
1793
  (!i || a !== "") && (o += p(e, n));
1799
1794
  let c = s[t], l = r[c];
1800
- if (e.replacer && (l = e.replacer.call(r, c, l)), !F(e, n + 1, c, !0, !0, !0)) continue;
1795
+ if (e.replacer && (l = e.replacer.call(r, c, l)), !P(e, n + 1, c, !0, !0, !0)) continue;
1801
1796
  let u = e.tag !== null && e.tag !== "?" || e.dump && e.dump.length > 1024;
1802
- u && (e.dump && e.dump.charCodeAt(0) === 10 ? o += "?" : o += "? "), o += e.dump, u && (o += p(e, n)), F(e, n + 1, l, !0, u) && (e.dump && e.dump.charCodeAt(0) === 10 ? o += ":" : o += ": ", o += e.dump, a += o);
1797
+ u && (e.dump && e.dump.charCodeAt(0) === 10 ? o += "?" : o += "? "), o += e.dump, u && (o += p(e, n)), P(e, n + 1, l, !0, u) && (e.dump && e.dump.charCodeAt(0) === 10 ? o += ":" : o += ": ", o += e.dump, a += o);
1803
1798
  }
1804
1799
  e.tag = o, e.dump = a || "{}";
1805
1800
  }
1806
- T(ee, "writeBlockMapping");
1807
- function P(e, n, a) {
1801
+ E(M, "writeBlockMapping");
1802
+ function N(e, n, a) {
1808
1803
  let o = a ? e.explicitTypes : e.implicitTypes;
1809
1804
  for (let s = 0, c = o.length; s < c; s += 1) {
1810
1805
  let c = o[s];
@@ -1821,16 +1816,16 @@ function En() {
1821
1816
  }
1822
1817
  return !1;
1823
1818
  }
1824
- T(P, "detectType");
1825
- function F(e, n, i, a, o, s, c) {
1826
- e.tag = null, e.dump = i, P(e, i, !1) || P(e, i, !0);
1819
+ E(N, "detectType");
1820
+ function P(e, n, i, a, o, s, c) {
1821
+ e.tag = null, e.dump = i, N(e, i, !1) || N(e, i, !0);
1827
1822
  let l = r.call(e.dump), u = a;
1828
1823
  a &&= e.flowLevel < 0 || e.flowLevel > n;
1829
1824
  let d = l === "[object Object]" || l === "[object Array]", f, p;
1830
1825
  if (d && (f = e.duplicates.indexOf(i), p = f !== -1), (e.tag !== null && e.tag !== "?" || p || e.indent !== 2 && n > 0) && (o = !1), p && e.usedDuplicates[f]) e.dump = "*ref_" + f;
1831
1826
  else {
1832
- if (d && p && !e.usedDuplicates[f] && (e.usedDuplicates[f] = !0), l === "[object Object]") a && Object.keys(e.dump).length !== 0 ? (ee(e, n, e.dump, o), p && (e.dump = "&ref_" + f + e.dump)) : (N(e, n, e.dump), p && (e.dump = "&ref_" + f + " " + e.dump));
1833
- else if (l === "[object Array]") a && e.dump.length !== 0 ? (e.noArrayIndent && !c && n > 0 ? M(e, n - 1, e.dump, o) : M(e, n, e.dump, o), p && (e.dump = "&ref_" + f + e.dump)) : (j(e, n, e.dump), p && (e.dump = "&ref_" + f + " " + e.dump));
1827
+ if (d && p && !e.usedDuplicates[f] && (e.usedDuplicates[f] = !0), l === "[object Object]") a && Object.keys(e.dump).length !== 0 ? (M(e, n, e.dump, o), p && (e.dump = "&ref_" + f + e.dump)) : (te(e, n, e.dump), p && (e.dump = "&ref_" + f + " " + e.dump));
1828
+ else if (l === "[object Array]") a && e.dump.length !== 0 ? (e.noArrayIndent && !c && n > 0 ? j(e, n - 1, e.dump, o) : j(e, n, e.dump, o), p && (e.dump = "&ref_" + f + e.dump)) : (A(e, n, e.dump), p && (e.dump = "&ref_" + f + " " + e.dump));
1834
1829
  else if (l === "[object String]") e.tag !== "?" && w(e, e.dump, n, s, u);
1835
1830
  else if (l === "[object Undefined]") return !1;
1836
1831
  else {
@@ -1844,137 +1839,137 @@ function En() {
1844
1839
  }
1845
1840
  return !0;
1846
1841
  }
1847
- T(F, "writeNode");
1848
- function I(e, t) {
1842
+ E(P, "writeNode");
1843
+ function F(e, t) {
1849
1844
  let n = [], r = [];
1850
- L(e, n, r);
1845
+ I(e, n, r);
1851
1846
  let i = r.length;
1852
1847
  for (let e = 0; e < i; e += 1) t.duplicates.push(n[r[e]]);
1853
1848
  t.usedDuplicates = Array(i);
1854
1849
  }
1855
- T(I, "getDuplicateReferences");
1856
- function L(e, t, n) {
1850
+ E(F, "getDuplicateReferences");
1851
+ function I(e, t, n) {
1857
1852
  if (typeof e == "object" && e) {
1858
1853
  let r = t.indexOf(e);
1859
1854
  if (r !== -1) n.indexOf(r) === -1 && n.push(r);
1860
- else if (t.push(e), Array.isArray(e)) for (let r = 0, i = e.length; r < i; r += 1) L(e[r], t, n);
1855
+ else if (t.push(e), Array.isArray(e)) for (let r = 0, i = e.length; r < i; r += 1) I(e[r], t, n);
1861
1856
  else {
1862
1857
  let r = Object.keys(e);
1863
- for (let i = 0, a = r.length; i < a; i += 1) L(e[r[i]], t, n);
1858
+ for (let i = 0, a = r.length; i < a; i += 1) I(e[r[i]], t, n);
1864
1859
  }
1865
1860
  }
1866
1861
  }
1867
- T(L, "inspectNode");
1868
- function R(e, t) {
1862
+ E(I, "inspectNode");
1863
+ function L(e, t) {
1869
1864
  t ||= {};
1870
1865
  let n = new d(t);
1871
- n.noRefs || I(e, n);
1866
+ n.noRefs || F(e, n);
1872
1867
  let r = e;
1873
- return n.replacer && (r = n.replacer.call({ "": r }, "", r)), F(n, 0, r, !0, !0) ? n.dump + "\n" : "";
1868
+ return n.replacer && (r = n.replacer.call({ "": r }, "", r)), P(n, 0, r, !0, !0) ? n.dump + "\n" : "";
1874
1869
  }
1875
- return T(R, "dump2"), wn.dump = R, wn;
1870
+ return E(L, "dump2"), Tn.dump = L, Tn;
1876
1871
  }
1877
- T(En, "requireDumper");
1878
- var Dn;
1879
- function On() {
1880
- if (Dn) return U;
1881
- Dn = 1;
1882
- let e = Cn(), t = En();
1872
+ E(Dn, "requireDumper");
1873
+ var On;
1874
+ function kn() {
1875
+ if (On) return U;
1876
+ On = 1;
1877
+ let e = wn(), t = Dn();
1883
1878
  function n(e, t) {
1884
1879
  return function() {
1885
1880
  throw Error("Function yaml." + e + " is removed in js-yaml 4. Use yaml." + t + " instead, which is now safe by default.");
1886
1881
  };
1887
1882
  }
1888
- return T(n, "renamed"), U.Type = K(), U.Schema = Ct(), U.FAILSAFE_SCHEMA = Ft(), U.JSON_SCHEMA = Xt(), U.CORE_SCHEMA = $t(), U.DEFAULT_SCHEMA = xn(), U.load = e.load, U.loadAll = e.loadAll, U.dump = t.dump, U.YAMLException = ht(), U.types = {
1889
- binary: ln(),
1890
- float: qt(),
1891
- map: Mt(),
1892
- null: Rt(),
1893
- pairs: hn(),
1894
- set: vn(),
1895
- timestamp: nn(),
1896
- bool: Vt(),
1897
- int: Wt(),
1898
- merge: on(),
1899
- omap: fn(),
1900
- seq: kt(),
1901
- str: Et()
1883
+ return E(n, "renamed"), U.Type = K(), U.Schema = wt(), U.FAILSAFE_SCHEMA = It(), U.JSON_SCHEMA = Zt(), U.CORE_SCHEMA = en(), U.DEFAULT_SCHEMA = Sn(), U.load = e.load, U.loadAll = e.loadAll, U.dump = t.dump, U.YAMLException = gt(), U.types = {
1884
+ binary: un(),
1885
+ float: Jt(),
1886
+ map: Nt(),
1887
+ null: zt(),
1888
+ pairs: gn(),
1889
+ set: yn(),
1890
+ timestamp: rn(),
1891
+ bool: Ht(),
1892
+ int: Gt(),
1893
+ merge: sn(),
1894
+ omap: pn(),
1895
+ seq: At(),
1896
+ str: Dt()
1902
1897
  }, U.safeLoad = n("safeLoad", "load"), U.safeLoadAll = n("safeLoadAll", "loadAll"), U.safeDump = n("safeDump", "dump"), U;
1903
1898
  }
1904
- T(On, "requireJsYaml");
1905
- var { Type: kn, Schema: An, FAILSAFE_SCHEMA: jn, JSON_SCHEMA: Mn, CORE_SCHEMA: Nn, DEFAULT_SCHEMA: Pn, load: Fn, loadAll: In, dump: Ln, YAMLException: Rn, types: zn, safeLoad: Bn, safeLoadAll: Vn, safeDump: Hn } = /* @__PURE__ */ ut(On()), Un = {
1906
- common: le,
1899
+ E(kn, "requireJsYaml");
1900
+ var { Type: An, Schema: jn, FAILSAFE_SCHEMA: Mn, JSON_SCHEMA: Nn, CORE_SCHEMA: Pn, DEFAULT_SCHEMA: Fn, load: In, loadAll: Ln, dump: Rn, YAMLException: zn, types: Bn, safeLoad: Vn, safeLoadAll: Hn, safeDump: Un } = /* @__PURE__ */ dt(kn()), Wn = {
1901
+ common: ue,
1907
1902
  getConfig: z,
1908
- insertCluster: ye,
1909
- insertEdge: Ce,
1910
- insertEdgeLabel: xe,
1911
- insertMarkers: De,
1912
- insertNode: _e,
1913
- interpolateToCurve: p,
1914
- labelHelper: me,
1915
- log: S,
1916
- positionEdgeLabel: Se
1917
- }, Wn = {}, Gn = /* @__PURE__ */ T((e) => {
1918
- for (let t of e) Wn[t.name] = t;
1903
+ insertCluster: be,
1904
+ insertEdge: we,
1905
+ insertEdgeLabel: Se,
1906
+ insertMarkers: Oe,
1907
+ insertNode: ve,
1908
+ interpolateToCurve: m,
1909
+ labelHelper: he,
1910
+ log: C,
1911
+ positionEdgeLabel: Ce
1912
+ }, Gn = {}, Kn = /* @__PURE__ */ E((e) => {
1913
+ for (let t of e) Gn[t.name] = t;
1919
1914
  }, "registerLayoutLoaders");
1920
- (/* @__PURE__ */ T(() => {
1921
- Gn([
1915
+ (/* @__PURE__ */ E(() => {
1916
+ Kn([
1922
1917
  {
1923
1918
  name: "dagre",
1924
- loader: /* @__PURE__ */ T(async () => await import("./dagre-GXQ25YYZ-CFZ8-35c.js"), "loader")
1919
+ loader: /* @__PURE__ */ E(async () => await import("./dagre-GXQ25YYZ-esvnOmLF.js"), "loader")
1925
1920
  },
1926
1921
  {
1927
1922
  name: "swimlane",
1928
- loader: /* @__PURE__ */ T(async () => await import("./swimlanes-42K2YHIH-BkSppxp8.js"), "loader")
1923
+ loader: /* @__PURE__ */ E(async () => await import("./swimlanes-42K2YHIH-DqInQL7n.js"), "loader")
1929
1924
  },
1930
1925
  {
1931
1926
  name: "cose-bilkent",
1932
- loader: /* @__PURE__ */ T(async () => await import("./cose-bilkent-JH36ORCC-_LyRKVqm.js"), "loader")
1927
+ loader: /* @__PURE__ */ E(async () => await import("./cose-bilkent-JH36ORCC-B_Oz4vMP.js"), "loader")
1933
1928
  }
1934
1929
  ]);
1935
1930
  }, "registerDefaultLayoutLoaders"))();
1936
- var Kn = /* @__PURE__ */ T(async (e, t) => {
1937
- if (!(e.layoutAlgorithm in Wn)) throw Error(`Unknown layout algorithm: ${e.layoutAlgorithm}`);
1931
+ var qn = /* @__PURE__ */ E(async (e, t) => {
1932
+ if (!(e.layoutAlgorithm in Gn)) throw Error(`Unknown layout algorithm: ${e.layoutAlgorithm}`);
1938
1933
  if (e.diagramId) for (let t of e.nodes) {
1939
1934
  let n = t.domId || t.id;
1940
1935
  t.domId = `${e.diagramId}-${n}`;
1941
1936
  }
1942
- let n = Wn[e.layoutAlgorithm], r = await n.loader(), { theme: i, themeVariables: a } = e.config, { useGradient: o, gradientStart: s, gradientStop: c } = a, l = t.attr("id");
1937
+ let n = Gn[e.layoutAlgorithm], r = await n.loader(), { theme: i, themeVariables: a } = e.config, { useGradient: o, gradientStart: s, gradientStop: c } = a, l = t.attr("id");
1943
1938
  if (t.append("defs").append("filter").attr("id", `${l}-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", `${i?.includes("dark") ? "#FFFFFF" : "#000000"}`), t.append("defs").append("filter").attr("id", `${l}-drop-shadow-small`).attr("height", "150%").attr("width", "150%").append("feDropShadow").attr("dx", "2").attr("dy", "2").attr("stdDeviation", 0).attr("flood-opacity", "0.06").attr("flood-color", `${i?.includes("dark") ? "#FFFFFF" : "#000000"}`), o) {
1944
1939
  let e = t.append("linearGradient").attr("id", t.attr("id") + "-gradient").attr("gradientUnits", "objectBoundingBox").attr("x1", "0%").attr("y1", "0%").attr("x2", "100%").attr("y2", "0%");
1945
1940
  e.append("svg:stop").attr("offset", "0%").attr("stop-color", s).attr("stop-opacity", 1), e.append("svg:stop").attr("offset", "100%").attr("stop-color", c).attr("stop-opacity", 1);
1946
1941
  }
1947
- return r.render(e, t, Un, { algorithm: n.algorithm });
1948
- }, "render"), qn = /* @__PURE__ */ T((e = "", { fallback: t = "dagre" } = {}) => {
1949
- if (e in Wn) return e;
1950
- if (t in Wn) return S.warn(`Layout algorithm ${e} is not registered. Using ${t} as fallback.`), t;
1942
+ return r.render(e, t, Wn, { algorithm: n.algorithm });
1943
+ }, "render"), Jn = /* @__PURE__ */ E((e = "", { fallback: t = "dagre" } = {}) => {
1944
+ if (e in Gn) return e;
1945
+ if (t in Gn) return C.warn(`Layout algorithm ${e} is not registered. Using ${t} as fallback.`), t;
1951
1946
  throw Error(`Both layout algorithms ${e} and ${t} are not registered.`);
1952
- }, "getRegisteredLayoutAlgorithm"), Jn = "comm", Yn = "rule", Xn = "decl", Zn = "@import", Qn = "@namespace", $n = "@keyframes", er = "@layer", tr = Math.abs, nr = String.fromCharCode;
1953
- function rr(e) {
1947
+ }, "getRegisteredLayoutAlgorithm"), Yn = "comm", Xn = "rule", Zn = "decl", Qn = "@import", $n = "@namespace", er = "@keyframes", tr = "@layer", nr = Math.abs, rr = String.fromCharCode;
1948
+ function ir(e) {
1954
1949
  return e.trim();
1955
1950
  }
1956
- function ir(e, t, n) {
1951
+ function ar(e, t, n) {
1957
1952
  return e.replace(t, n);
1958
1953
  }
1959
- function ar(e, t) {
1954
+ function or(e, t) {
1960
1955
  return e.charCodeAt(t) | 0;
1961
1956
  }
1962
- function or(e, t, n) {
1957
+ function sr(e, t, n) {
1963
1958
  return e.slice(t, n);
1964
1959
  }
1965
1960
  function q(e) {
1966
1961
  return e.length;
1967
1962
  }
1968
- function sr(e) {
1963
+ function cr(e) {
1969
1964
  return e.length;
1970
1965
  }
1971
- function cr(e, t) {
1966
+ function lr(e, t) {
1972
1967
  return t.push(e), e;
1973
1968
  }
1974
1969
  //#endregion
1975
1970
  //#region ../node_modules/.pnpm/stylis@4.4.0/node_modules/stylis/src/Tokenizer.js
1976
- var lr = 1, ur = 1, dr = 0, J = 0, Y = 0, fr = "";
1977
- function pr(e, t, n, r, i, a, o, s) {
1971
+ var ur = 1, dr = 1, fr = 0, J = 0, Y = 0, pr = "";
1972
+ function mr(e, t, n, r, i, a, o, s) {
1978
1973
  return {
1979
1974
  value: e,
1980
1975
  root: t,
@@ -1982,32 +1977,32 @@ function pr(e, t, n, r, i, a, o, s) {
1982
1977
  type: r,
1983
1978
  props: i,
1984
1979
  children: a,
1985
- line: lr,
1986
- column: ur,
1980
+ line: ur,
1981
+ column: dr,
1987
1982
  length: o,
1988
1983
  return: "",
1989
1984
  siblings: s
1990
1985
  };
1991
1986
  }
1992
- function mr() {
1987
+ function hr() {
1993
1988
  return Y;
1994
1989
  }
1995
- function hr() {
1996
- return Y = J > 0 ? ar(fr, --J) : 0, ur--, Y === 10 && (ur = 1, lr--), Y;
1990
+ function gr() {
1991
+ return Y = J > 0 ? or(pr, --J) : 0, dr--, Y === 10 && (dr = 1, ur--), Y;
1997
1992
  }
1998
1993
  function X() {
1999
- return Y = J < dr ? ar(fr, J++) : 0, ur++, Y === 10 && (ur = 1, lr++), Y;
1994
+ return Y = J < fr ? or(pr, J++) : 0, dr++, Y === 10 && (dr = 1, ur++), Y;
2000
1995
  }
2001
1996
  function Z() {
2002
- return ar(fr, J);
1997
+ return or(pr, J);
2003
1998
  }
2004
- function gr() {
1999
+ function _r() {
2005
2000
  return J;
2006
2001
  }
2007
- function _r(e, t) {
2008
- return or(fr, e, t);
2002
+ function vr(e, t) {
2003
+ return sr(pr, e, t);
2009
2004
  }
2010
- function vr(e) {
2005
+ function yr(e) {
2011
2006
  switch (e) {
2012
2007
  case 0:
2013
2008
  case 9:
@@ -2034,54 +2029,54 @@ function vr(e) {
2034
2029
  }
2035
2030
  return 0;
2036
2031
  }
2037
- function yr(e) {
2038
- return lr = ur = 1, dr = q(fr = e), J = 0, [];
2039
- }
2040
2032
  function br(e) {
2041
- return fr = "", e;
2033
+ return ur = dr = 1, fr = q(pr = e), J = 0, [];
2042
2034
  }
2043
2035
  function xr(e) {
2044
- return rr(_r(J - 1, wr(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
2036
+ return pr = "", e;
2045
2037
  }
2046
2038
  function Sr(e) {
2039
+ return ir(vr(J - 1, Tr(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
2040
+ }
2041
+ function Cr(e) {
2047
2042
  for (; (Y = Z()) && Y < 33;) X();
2048
- return vr(e) > 2 || vr(Y) > 3 ? "" : " ";
2043
+ return yr(e) > 2 || yr(Y) > 3 ? "" : " ";
2049
2044
  }
2050
- function Cr(e, t) {
2045
+ function wr(e, t) {
2051
2046
  for (; --t && X() && !(Y < 48 || Y > 102 || Y > 57 && Y < 65 || Y > 70 && Y < 97););
2052
- return _r(e, gr() + (t < 6 && Z() == 32 && X() == 32));
2047
+ return vr(e, _r() + (t < 6 && Z() == 32 && X() == 32));
2053
2048
  }
2054
- function wr(e) {
2049
+ function Tr(e) {
2055
2050
  for (; X();) switch (Y) {
2056
2051
  case e: return J;
2057
2052
  case 34:
2058
2053
  case 39:
2059
- e !== 34 && e !== 39 && wr(Y);
2054
+ e !== 34 && e !== 39 && Tr(Y);
2060
2055
  break;
2061
2056
  case 40:
2062
- e === 41 && wr(e);
2057
+ e === 41 && Tr(e);
2063
2058
  break;
2064
2059
  case 92: X();
2065
2060
  }
2066
2061
  return J;
2067
2062
  }
2068
- function Tr(e, t) {
2063
+ function Er(e, t) {
2069
2064
  for (; X() && e + Y !== 57 && (e + Y !== 84 || Z() !== 47););
2070
- return "/*" + _r(t, J - 1) + "*" + nr(e === 47 ? e : X());
2065
+ return "/*" + vr(t, J - 1) + "*" + rr(e === 47 ? e : X());
2071
2066
  }
2072
- function Er(e) {
2073
- for (; !vr(Z());) X();
2074
- return _r(e, J);
2067
+ function Dr(e) {
2068
+ for (; !yr(Z());) X();
2069
+ return vr(e, J);
2075
2070
  }
2076
2071
  //#endregion
2077
2072
  //#region ../node_modules/.pnpm/stylis@4.4.0/node_modules/stylis/src/Parser.js
2078
- function Dr(e) {
2079
- return br(Or("", null, null, null, [""], e = yr(e), 0, [0], e));
2073
+ function Or(e) {
2074
+ return xr(kr("", null, null, null, [""], e = br(e), 0, [0], e));
2080
2075
  }
2081
- function Or(e, t, n, r, i, a, o, s, c) {
2076
+ function kr(e, t, n, r, i, a, o, s, c) {
2082
2077
  for (var l = 0, u = 0, d = o, f = 0, p = 0, m = 0, h = 1, g = 1, _ = 1, v = 0, y = 0, b = "", x = i, S = a, C = r, w = b; g;) switch (m = y, y = X()) {
2083
2078
  case 40:
2084
- m != 108 && ar(w, d - 1) == 58 ? (v++, w += "(") : w += xr(y);
2079
+ m != 108 && or(w, d - 1) == 58 ? (v++, w += "(") : w += Sr(y);
2085
2080
  break;
2086
2081
  case 41:
2087
2082
  v--, w += ")";
@@ -2089,26 +2084,26 @@ function Or(e, t, n, r, i, a, o, s, c) {
2089
2084
  case 34:
2090
2085
  case 39:
2091
2086
  case 91:
2092
- w += xr(y);
2087
+ w += Sr(y);
2093
2088
  break;
2094
2089
  case 9:
2095
2090
  case 10:
2096
2091
  case 13:
2097
2092
  case 32:
2098
2093
  if (v > 0) {
2099
- w += nr(y);
2094
+ w += rr(y);
2100
2095
  break;
2101
2096
  }
2102
- w += Sr(m);
2097
+ w += Cr(m);
2103
2098
  break;
2104
2099
  case 92:
2105
- w += Cr(gr() - 1, 7);
2100
+ w += wr(_r() - 1, 7);
2106
2101
  continue;
2107
2102
  case 47:
2108
2103
  switch (Z()) {
2109
2104
  case 42:
2110
2105
  case 47:
2111
- cr(Ar(Tr(X(), gr()), t, n, c), c), (vr(m || 1) == 5 || vr(Z() || 1) == 5) && q(w) && or(w, -1, void 0) !== " " && (w += " ");
2106
+ lr(jr(Er(X(), _r()), t, n, c), c), (yr(m || 1) == 5 || yr(Z() || 1) == 5) && q(w) && sr(w, -1, void 0) !== " " && (w += " ");
2112
2107
  break;
2113
2108
  default: w += "/";
2114
2109
  }
@@ -2118,28 +2113,28 @@ function Or(e, t, n, r, i, a, o, s, c) {
2118
2113
  case 59:
2119
2114
  case 0:
2120
2115
  if (v > 0 && y) {
2121
- w += nr(y);
2116
+ w += rr(y);
2122
2117
  break;
2123
2118
  }
2124
2119
  switch (y) {
2125
2120
  case 0:
2126
2121
  case 125: g = 0;
2127
2122
  case 59 + u:
2128
- _ == -1 && (w = ir(w, /\f/g, "")), p > 0 && (q(w) - d || h === 0) && cr(p > 32 ? jr(w + ";", r, n, d - 1, c) : jr(ir(w, " ", "") + ";", r, n, d - 2, c), c);
2123
+ _ == -1 && (w = ar(w, /\f/g, "")), p > 0 && (q(w) - d || h === 0) && lr(p > 32 ? Mr(w + ";", r, n, d - 1, c) : Mr(ar(w, " ", "") + ";", r, n, d - 2, c), c);
2129
2124
  break;
2130
2125
  case 59: w += ";";
2131
- default: if (cr(C = kr(w, t, n, l, u, i, s, b, x = [], S = [], d, a), a), y === 123) {
2132
- if (u === 0) Or(w, t, C, C, x, a, d, s, S);
2126
+ default: if (lr(C = Ar(w, t, n, l, u, i, s, b, x = [], S = [], d, a), a), y === 123) {
2127
+ if (u === 0) kr(w, t, C, C, x, a, d, s, S);
2133
2128
  else {
2134
2129
  switch (f) {
2135
- case 99: if (ar(w, 3) === 110) break;
2136
- case 108: if (ar(w, 2) === 97) break;
2130
+ case 99: if (or(w, 3) === 110) break;
2131
+ case 108: if (or(w, 2) === 97) break;
2137
2132
  default: u = 0;
2138
2133
  case 100:
2139
2134
  case 109:
2140
2135
  case 115:
2141
2136
  }
2142
- u ? Or(e, C, C, r && cr(kr(e, C, C, 0, 0, i, s, b, i, x = [], d, S), S), i, S, d, s, r ? x : S) : Or(w, C, C, C, [""], S, 0, s, S);
2137
+ u ? kr(e, C, C, r && lr(Ar(e, C, C, 0, 0, i, s, b, i, x = [], d, S), S), i, S, d, s, r ? x : S) : kr(w, C, C, C, [""], S, 0, s, S);
2143
2138
  }
2144
2139
  }
2145
2140
  }
@@ -2149,9 +2144,9 @@ function Or(e, t, n, r, i, a, o, s, c) {
2149
2144
  default:
2150
2145
  if (h < 1) {
2151
2146
  if (y == 123) --h;
2152
- else if (y == 125 && h++ == 0 && hr() == 125) continue;
2147
+ else if (y == 125 && h++ == 0 && gr() == 125) continue;
2153
2148
  }
2154
- switch (w += nr(y), y * h) {
2149
+ switch (w += rr(y), y * h) {
2155
2150
  case 38:
2156
2151
  _ = u > 0 ? 1 : (w += "\f", -1);
2157
2152
  break;
@@ -2160,45 +2155,45 @@ function Or(e, t, n, r, i, a, o, s, c) {
2160
2155
  s[l++] = (q(w) - 1) * _, _ = 1;
2161
2156
  break;
2162
2157
  case 64:
2163
- Z() === 45 && (w += xr(X())), f = Z(), u = d = q(b = w += Er(gr())), y++;
2158
+ Z() === 45 && (w += Sr(X())), f = Z(), u = d = q(b = w += Dr(_r())), y++;
2164
2159
  break;
2165
2160
  case 45: m === 45 && q(w) == 2 && (h = 0);
2166
2161
  }
2167
2162
  }
2168
2163
  return a;
2169
2164
  }
2170
- function kr(e, t, n, r, i, a, o, s, c, l, u, d) {
2171
- for (var f = i - 1, p = i === 0 ? a : [""], m = sr(p), h = 0, g = 0, _ = 0; h < r; ++h) for (var v = 0, y = or(e, f + 1, f = tr(g = o[h])), b = e; v < m; ++v) (b = rr(g > 0 ? p[v] + " " + y : ir(y, /&\f/g, p[v]))) && (c[_++] = b);
2172
- return pr(e, t, n, i === 0 ? Yn : s, c, l, u, d);
2165
+ function Ar(e, t, n, r, i, a, o, s, c, l, u, d) {
2166
+ for (var f = i - 1, p = i === 0 ? a : [""], m = cr(p), h = 0, g = 0, _ = 0; h < r; ++h) for (var v = 0, y = sr(e, f + 1, f = nr(g = o[h])), b = e; v < m; ++v) (b = ir(g > 0 ? p[v] + " " + y : ar(y, /&\f/g, p[v]))) && (c[_++] = b);
2167
+ return mr(e, t, n, i === 0 ? Xn : s, c, l, u, d);
2173
2168
  }
2174
- function Ar(e, t, n, r) {
2175
- return pr(e, t, n, Jn, nr(mr()), or(e, 2, -2), 0, r);
2169
+ function jr(e, t, n, r) {
2170
+ return mr(e, t, n, Yn, rr(hr()), sr(e, 2, -2), 0, r);
2176
2171
  }
2177
- function jr(e, t, n, r, i) {
2178
- return pr(e, t, n, Xn, or(e, 0, r), or(e, r + 1, -1), r, i);
2172
+ function Mr(e, t, n, r, i) {
2173
+ return mr(e, t, n, Zn, sr(e, 0, r), sr(e, r + 1, -1), r, i);
2179
2174
  }
2180
2175
  //#endregion
2181
2176
  //#region ../node_modules/.pnpm/stylis@4.4.0/node_modules/stylis/src/Serializer.js
2182
- function Mr(e, t) {
2177
+ function Nr(e, t) {
2183
2178
  for (var n = "", r = 0; r < e.length; r++) n += t(e[r], r, e, t) || "";
2184
2179
  return n;
2185
2180
  }
2186
- function Nr(e, t, n, r) {
2181
+ function Pr(e, t, n, r) {
2187
2182
  switch (e.type) {
2188
- case er: if (e.children.length) break;
2189
- case Zn:
2183
+ case tr: if (e.children.length) break;
2190
2184
  case Qn:
2191
- case Xn: return e.return = e.return || e.value;
2192
- case Jn: return "";
2193
- case $n: return e.return = e.value + "{" + Mr(e.children, r) + "}";
2194
- case Yn: if (!q(e.value = e.props.join(","))) return "";
2185
+ case $n:
2186
+ case Zn: return e.return = e.return || e.value;
2187
+ case Yn: return "";
2188
+ case er: return e.return = e.value + "{" + Nr(e.children, r) + "}";
2189
+ case Xn: if (!q(e.value = e.props.join(","))) return "";
2195
2190
  }
2196
- return q(n = Mr(e.children, r)) ? e.return = e.value + "{" + n + "}" : "";
2191
+ return q(n = Nr(e.children, r)) ? e.return = e.value + "{" + n + "}" : "";
2197
2192
  }
2198
2193
  //#endregion
2199
2194
  //#region ../node_modules/.pnpm/stylis@4.4.0/node_modules/stylis/src/Middleware.js
2200
- function Pr(e) {
2201
- var t = sr(e);
2195
+ function Fr(e) {
2196
+ var t = cr(e);
2202
2197
  return function(n, r, i, a) {
2203
2198
  for (var o = "", s = 0; s < t; s++) o += e[s](n, r, i, a) || "";
2204
2199
  return o;
@@ -2206,429 +2201,429 @@ function Pr(e) {
2206
2201
  }
2207
2202
  //#endregion
2208
2203
  //#region ../node_modules/.pnpm/mermaid@11.17.2/node_modules/mermaid/dist/mermaid.core.mjs
2209
- var Fr = "c4", Ir = {
2210
- id: Fr,
2211
- detector: /* @__PURE__ */ T((e) => /^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(e), "detector"),
2212
- loader: /* @__PURE__ */ T(async () => {
2213
- let { diagram: e } = await import("./c4Diagram-7LVT6UL2-BxFgrnNV.js");
2204
+ var Ir = "c4", Lr = {
2205
+ id: Ir,
2206
+ detector: /* @__PURE__ */ E((e) => /^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(e), "detector"),
2207
+ loader: /* @__PURE__ */ E(async () => {
2208
+ let { diagram: e } = await import("./c4Diagram-7LVT6UL2-DmcTtm4p.js");
2214
2209
  return {
2215
- id: Fr,
2210
+ id: Ir,
2216
2211
  diagram: e
2217
2212
  };
2218
2213
  }, "loader")
2219
- }, Lr = "flowchart", Rr = {
2220
- id: Lr,
2221
- detector: /* @__PURE__ */ T((e, t) => t?.flowchart?.defaultRenderer === "dagre-wrapper" || t?.flowchart?.defaultRenderer === "elk" ? !1 : /^\s*graph/.test(e), "detector"),
2222
- loader: /* @__PURE__ */ T(async () => {
2223
- let { diagram: e } = await import("./flowDiagram-HODETNUW-CAYbpJmV.js");
2214
+ }, Rr = "flowchart", zr = {
2215
+ id: Rr,
2216
+ detector: /* @__PURE__ */ E((e, t) => t?.flowchart?.defaultRenderer === "dagre-wrapper" || t?.flowchart?.defaultRenderer === "elk" ? !1 : /^\s*graph/.test(e), "detector"),
2217
+ loader: /* @__PURE__ */ E(async () => {
2218
+ let { diagram: e } = await import("./flowDiagram-HODETNUW-CB8xo8zB.js");
2224
2219
  return {
2225
- id: Lr,
2220
+ id: Rr,
2226
2221
  diagram: e
2227
2222
  };
2228
2223
  }, "loader")
2229
- }, zr = "flowchart-v2", Br = {
2230
- id: zr,
2231
- detector: /* @__PURE__ */ T((e, t) => t?.flowchart?.defaultRenderer !== "dagre-d3" && (t?.flowchart?.defaultRenderer === "elk" && (t.layout = "elk"), /^\s*graph/.test(e) && t?.flowchart?.defaultRenderer === "dagre-wrapper" ? !0 : /^\s*flowchart/.test(e)), "detector"),
2232
- loader: /* @__PURE__ */ T(async () => {
2233
- let { diagram: e } = await import("./flowDiagram-HODETNUW-CAYbpJmV.js");
2224
+ }, Br = "flowchart-v2", Vr = {
2225
+ id: Br,
2226
+ detector: /* @__PURE__ */ E((e, t) => t?.flowchart?.defaultRenderer !== "dagre-d3" && (t?.flowchart?.defaultRenderer === "elk" && (t.layout = "elk"), /^\s*graph/.test(e) && t?.flowchart?.defaultRenderer === "dagre-wrapper" ? !0 : /^\s*flowchart/.test(e)), "detector"),
2227
+ loader: /* @__PURE__ */ E(async () => {
2228
+ let { diagram: e } = await import("./flowDiagram-HODETNUW-CB8xo8zB.js");
2234
2229
  return {
2235
- id: zr,
2230
+ id: Br,
2236
2231
  diagram: e
2237
2232
  };
2238
2233
  }, "loader")
2239
- }, Vr = "swimlane", Hr = {
2240
- id: Vr,
2241
- detector: /* @__PURE__ */ T((e) => /^\s*swimlane-beta\b/.test(e), "detector"),
2242
- loader: /* @__PURE__ */ T(async () => {
2243
- let { diagram: e } = await import("./swimlanesDiagram-VR7AAH4N-c8G5pGxC.js");
2234
+ }, Hr = "swimlane", Ur = {
2235
+ id: Hr,
2236
+ detector: /* @__PURE__ */ E((e) => /^\s*swimlane-beta\b/.test(e), "detector"),
2237
+ loader: /* @__PURE__ */ E(async () => {
2238
+ let { diagram: e } = await import("./swimlanesDiagram-VR7AAH4N-BiJSxYhi.js");
2244
2239
  return {
2245
- id: Vr,
2240
+ id: Hr,
2246
2241
  diagram: e
2247
2242
  };
2248
2243
  }, "loader")
2249
- }, Ur = "er", Wr = {
2250
- id: Ur,
2251
- detector: /* @__PURE__ */ T((e) => /^\s*erDiagram/.test(e), "detector"),
2252
- loader: /* @__PURE__ */ T(async () => {
2253
- let { diagram: e } = await import("./erDiagram-RLTQ6QDP-Tlu09_Nm.js");
2244
+ }, Wr = "er", Gr = {
2245
+ id: Wr,
2246
+ detector: /* @__PURE__ */ E((e) => /^\s*erDiagram/.test(e), "detector"),
2247
+ loader: /* @__PURE__ */ E(async () => {
2248
+ let { diagram: e } = await import("./erDiagram-RLTQ6QDP-DkF2kv2C.js");
2254
2249
  return {
2255
- id: Ur,
2250
+ id: Wr,
2256
2251
  diagram: e
2257
2252
  };
2258
2253
  }, "loader")
2259
- }, Gr = "gitGraph", Kr = {
2260
- id: Gr,
2261
- detector: /* @__PURE__ */ T((e) => /^\s*gitGraph/.test(e), "detector"),
2262
- loader: /* @__PURE__ */ T(async () => {
2263
- let { diagram: e } = await import("./gitGraphDiagram-WWUBYQGX-D5nSIzdE.js");
2254
+ }, Kr = "gitGraph", qr = {
2255
+ id: Kr,
2256
+ detector: /* @__PURE__ */ E((e) => /^\s*gitGraph/.test(e), "detector"),
2257
+ loader: /* @__PURE__ */ E(async () => {
2258
+ let { diagram: e } = await import("./gitGraphDiagram-WWUBYQGX-CK66dT35.js");
2264
2259
  return {
2265
- id: Gr,
2260
+ id: Kr,
2266
2261
  diagram: e
2267
2262
  };
2268
2263
  }, "loader")
2269
- }, qr = "gantt", Jr = {
2270
- id: qr,
2271
- detector: /* @__PURE__ */ T((e) => /^\s*gantt/.test(e), "detector"),
2272
- loader: /* @__PURE__ */ T(async () => {
2273
- let { diagram: e } = await import("./ganttDiagram-EL5Y4UJY-BQT16JSc.js");
2264
+ }, Jr = "gantt", Yr = {
2265
+ id: Jr,
2266
+ detector: /* @__PURE__ */ E((e) => /^\s*gantt/.test(e), "detector"),
2267
+ loader: /* @__PURE__ */ E(async () => {
2268
+ let { diagram: e } = await import("./ganttDiagram-EL5Y4UJY-YzTghq1V.js");
2274
2269
  return {
2275
- id: qr,
2270
+ id: Jr,
2276
2271
  diagram: e
2277
2272
  };
2278
2273
  }, "loader")
2279
- }, Yr = "info", Xr = {
2280
- id: Yr,
2281
- detector: /* @__PURE__ */ T((e) => /^\s*info/.test(e), "detector"),
2282
- loader: /* @__PURE__ */ T(async () => {
2283
- let { diagram: e } = await import("./infoDiagram-27XIBGKW-XrDxhr0x.js");
2274
+ }, Xr = "info", Zr = {
2275
+ id: Xr,
2276
+ detector: /* @__PURE__ */ E((e) => /^\s*info/.test(e), "detector"),
2277
+ loader: /* @__PURE__ */ E(async () => {
2278
+ let { diagram: e } = await import("./infoDiagram-27XIBGKW-BGBIoY6a.js");
2284
2279
  return {
2285
- id: Yr,
2280
+ id: Xr,
2286
2281
  diagram: e
2287
2282
  };
2288
2283
  }, "loader")
2289
- }, Zr = "pie", Qr = {
2290
- id: Zr,
2291
- detector: /* @__PURE__ */ T((e) => /^\s*pie/.test(e), "detector"),
2292
- loader: /* @__PURE__ */ T(async () => {
2293
- let { diagram: e } = await import("./pieDiagram-E7YTZNPT-BnXTc3bj.js");
2284
+ }, Qr = "pie", $r = {
2285
+ id: Qr,
2286
+ detector: /* @__PURE__ */ E((e) => /^\s*pie/.test(e), "detector"),
2287
+ loader: /* @__PURE__ */ E(async () => {
2288
+ let { diagram: e } = await import("./pieDiagram-E7YTZNPT-C2S9T2yS.js");
2294
2289
  return {
2295
- id: Zr,
2290
+ id: Qr,
2296
2291
  diagram: e
2297
2292
  };
2298
2293
  }, "loader")
2299
- }, $r = "quadrantChart", ei = {
2300
- id: $r,
2301
- detector: /* @__PURE__ */ T((e) => /^\s*quadrantChart/.test(e), "detector"),
2302
- loader: /* @__PURE__ */ T(async () => {
2303
- let { diagram: e } = await import("./quadrantDiagram-AXDQQJYC-Ccw0xMjN.js");
2294
+ }, ei = "quadrantChart", ti = {
2295
+ id: ei,
2296
+ detector: /* @__PURE__ */ E((e) => /^\s*quadrantChart/.test(e), "detector"),
2297
+ loader: /* @__PURE__ */ E(async () => {
2298
+ let { diagram: e } = await import("./quadrantDiagram-AXDQQJYC-nGFBFig7.js");
2304
2299
  return {
2305
- id: $r,
2300
+ id: ei,
2306
2301
  diagram: e
2307
2302
  };
2308
2303
  }, "loader")
2309
- }, ti = "xychart", ni = {
2310
- id: ti,
2311
- detector: /* @__PURE__ */ T((e) => /^\s*xychart(-beta)?/.test(e), "detector"),
2312
- loader: /* @__PURE__ */ T(async () => {
2313
- let { diagram: e } = await import("./xychartDiagram-S5SC5T6Z-CP6-9q56.js");
2304
+ }, ni = "xychart", ri = {
2305
+ id: ni,
2306
+ detector: /* @__PURE__ */ E((e) => /^\s*xychart(-beta)?/.test(e), "detector"),
2307
+ loader: /* @__PURE__ */ E(async () => {
2308
+ let { diagram: e } = await import("./xychartDiagram-S5SC5T6Z-C15EKY66.js");
2314
2309
  return {
2315
- id: ti,
2310
+ id: ni,
2316
2311
  diagram: e
2317
2312
  };
2318
2313
  }, "loader")
2319
- }, ri = "requirement", ii = {
2320
- id: ri,
2321
- detector: /* @__PURE__ */ T((e) => /^\s*requirement(Diagram)?/.test(e), "detector"),
2322
- loader: /* @__PURE__ */ T(async () => {
2323
- let { diagram: e } = await import("./requirementDiagram-BXWQKSXE-CdYCTMu0.js");
2314
+ }, ii = "requirement", ai = {
2315
+ id: ii,
2316
+ detector: /* @__PURE__ */ E((e) => /^\s*requirement(Diagram)?/.test(e), "detector"),
2317
+ loader: /* @__PURE__ */ E(async () => {
2318
+ let { diagram: e } = await import("./requirementDiagram-BXWQKSXE-CoVxzaFy.js");
2324
2319
  return {
2325
- id: ri,
2320
+ id: ii,
2326
2321
  diagram: e
2327
2322
  };
2328
2323
  }, "loader")
2329
- }, ai = "sequence", oi = {
2330
- id: ai,
2331
- detector: /* @__PURE__ */ T((e) => /^\s*sequenceDiagram/.test(e), "detector"),
2332
- loader: /* @__PURE__ */ T(async () => {
2333
- let { diagram: e } = await import("./sequenceDiagram-WJ2MYXX4-CM3aRAe_.js");
2324
+ }, oi = "sequence", si = {
2325
+ id: oi,
2326
+ detector: /* @__PURE__ */ E((e) => /^\s*sequenceDiagram/.test(e), "detector"),
2327
+ loader: /* @__PURE__ */ E(async () => {
2328
+ let { diagram: e } = await import("./sequenceDiagram-WJ2MYXX4-CRUI6aLG.js");
2334
2329
  return {
2335
- id: ai,
2330
+ id: oi,
2336
2331
  diagram: e
2337
2332
  };
2338
2333
  }, "loader")
2339
- }, si = "class", ci = {
2340
- id: si,
2341
- detector: /* @__PURE__ */ T((e, t) => t?.class?.defaultRenderer !== "dagre-wrapper" && /^\s*classDiagram/.test(e), "detector"),
2342
- loader: /* @__PURE__ */ T(async () => {
2343
- let { diagram: e } = await import("./classDiagram-ZZMXUADV-Bt98lkkv.js");
2334
+ }, ci = "class", li = {
2335
+ id: ci,
2336
+ detector: /* @__PURE__ */ E((e, t) => t?.class?.defaultRenderer !== "dagre-wrapper" && /^\s*classDiagram/.test(e), "detector"),
2337
+ loader: /* @__PURE__ */ E(async () => {
2338
+ let { diagram: e } = await import("./classDiagram-ZZMXUADV-DRtsA53t.js");
2344
2339
  return {
2345
- id: si,
2340
+ id: ci,
2346
2341
  diagram: e
2347
2342
  };
2348
2343
  }, "loader")
2349
- }, li = "classDiagram", ui = {
2350
- id: li,
2351
- detector: /* @__PURE__ */ T((e, t) => /^\s*classDiagram/.test(e) && t?.class?.defaultRenderer === "dagre-wrapper" ? !0 : /^\s*classDiagram-v2/.test(e), "detector"),
2352
- loader: /* @__PURE__ */ T(async () => {
2353
- let { diagram: e } = await import("./classDiagram-v2-VYDZK3BY-D9bfbcC3.js");
2344
+ }, ui = "classDiagram", di = {
2345
+ id: ui,
2346
+ detector: /* @__PURE__ */ E((e, t) => /^\s*classDiagram/.test(e) && t?.class?.defaultRenderer === "dagre-wrapper" ? !0 : /^\s*classDiagram-v2/.test(e), "detector"),
2347
+ loader: /* @__PURE__ */ E(async () => {
2348
+ let { diagram: e } = await import("./classDiagram-v2-VYDZK3BY-B-un7YsQ.js");
2354
2349
  return {
2355
- id: li,
2350
+ id: ui,
2356
2351
  diagram: e
2357
2352
  };
2358
2353
  }, "loader")
2359
- }, di = "state", fi = {
2360
- id: di,
2361
- detector: /* @__PURE__ */ T((e, t) => t?.state?.defaultRenderer !== "dagre-wrapper" && /^\s*stateDiagram/.test(e), "detector"),
2362
- loader: /* @__PURE__ */ T(async () => {
2363
- let { diagram: e } = await import("./stateDiagram-D77RDMKH-DOZUMVj8.js");
2354
+ }, fi = "state", pi = {
2355
+ id: fi,
2356
+ detector: /* @__PURE__ */ E((e, t) => t?.state?.defaultRenderer !== "dagre-wrapper" && /^\s*stateDiagram/.test(e), "detector"),
2357
+ loader: /* @__PURE__ */ E(async () => {
2358
+ let { diagram: e } = await import("./stateDiagram-D77RDMKH-IJFKm2ah.js");
2364
2359
  return {
2365
- id: di,
2360
+ id: fi,
2366
2361
  diagram: e
2367
2362
  };
2368
2363
  }, "loader")
2369
- }, pi = "stateDiagram", mi = {
2370
- id: pi,
2371
- detector: /* @__PURE__ */ T((e, t) => !!(/^\s*stateDiagram-v2/.test(e) || /^\s*stateDiagram/.test(e) && t?.state?.defaultRenderer === "dagre-wrapper"), "detector"),
2372
- loader: /* @__PURE__ */ T(async () => {
2373
- let { diagram: e } = await import("./stateDiagram-v2-MP3YSRHH-CISYxma6.js");
2364
+ }, mi = "stateDiagram", hi = {
2365
+ id: mi,
2366
+ detector: /* @__PURE__ */ E((e, t) => !!(/^\s*stateDiagram-v2/.test(e) || /^\s*stateDiagram/.test(e) && t?.state?.defaultRenderer === "dagre-wrapper"), "detector"),
2367
+ loader: /* @__PURE__ */ E(async () => {
2368
+ let { diagram: e } = await import("./stateDiagram-v2-MP3YSRHH-sHwmL1Cd.js");
2374
2369
  return {
2375
- id: pi,
2370
+ id: mi,
2376
2371
  diagram: e
2377
2372
  };
2378
2373
  }, "loader")
2379
- }, hi = "journey", gi = {
2380
- id: hi,
2381
- detector: /* @__PURE__ */ T((e) => /^\s*journey/.test(e), "detector"),
2382
- loader: /* @__PURE__ */ T(async () => {
2383
- let { diagram: e } = await import("./journeyDiagram-3NMN7TZE-BaLqn-dZ.js");
2374
+ }, gi = "journey", _i = {
2375
+ id: gi,
2376
+ detector: /* @__PURE__ */ E((e) => /^\s*journey/.test(e), "detector"),
2377
+ loader: /* @__PURE__ */ E(async () => {
2378
+ let { diagram: e } = await import("./journeyDiagram-3NMN7TZE-CYXsL3IE.js");
2384
2379
  return {
2385
- id: hi,
2380
+ id: gi,
2386
2381
  diagram: e
2387
2382
  };
2388
2383
  }, "loader")
2389
- }, _i = { draw: /* @__PURE__ */ T((e, t, n) => {
2390
- S.debug("rendering svg for syntax error\n");
2391
- let r = Ae(t), i = r.append("g");
2392
- r.attr("viewBox", "0 0 2412 512"), te(r, 100, 512, !0), i.append("path").attr("class", "error-icon").attr("d", "m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"), i.append("path").attr("class", "error-icon").attr("d", "m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"), i.append("path").attr("class", "error-icon").attr("d", "m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"), i.append("path").attr("class", "error-icon").attr("d", "m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"), i.append("path").attr("class", "error-icon").attr("d", "m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"), i.append("path").attr("class", "error-icon").attr("d", "m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"), i.append("text").attr("class", "error-text").attr("x", 1440).attr("y", 250).attr("font-size", "150px").style("text-anchor", "middle").text("Syntax error in text"), i.append("text").attr("class", "error-text").attr("x", 1250).attr("y", 400).attr("font-size", "100px").style("text-anchor", "middle").text(`mermaid version ${n}`);
2393
- }, "draw") }, vi = _i, yi = {
2384
+ }, vi = { draw: /* @__PURE__ */ E((e, t, n) => {
2385
+ C.debug("rendering svg for syntax error\n");
2386
+ let r = je(t), i = r.append("g");
2387
+ r.attr("viewBox", "0 0 2412 512"), ne(r, 100, 512, !0), i.append("path").attr("class", "error-icon").attr("d", "m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"), i.append("path").attr("class", "error-icon").attr("d", "m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"), i.append("path").attr("class", "error-icon").attr("d", "m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"), i.append("path").attr("class", "error-icon").attr("d", "m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"), i.append("path").attr("class", "error-icon").attr("d", "m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"), i.append("path").attr("class", "error-icon").attr("d", "m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"), i.append("text").attr("class", "error-text").attr("x", 1440).attr("y", 250).attr("font-size", "150px").style("text-anchor", "middle").text("Syntax error in text"), i.append("text").attr("class", "error-text").attr("x", 1250).attr("y", 400).attr("font-size", "100px").style("text-anchor", "middle").text(`mermaid version ${n}`);
2388
+ }, "draw") }, yi = vi, bi = {
2394
2389
  db: {},
2395
- renderer: _i,
2396
- parser: { parse: /* @__PURE__ */ T(() => {}, "parse") }
2397
- }, bi = "flowchart-elk", xi = {
2398
- id: bi,
2399
- detector: /* @__PURE__ */ T((e, t = {}) => /^\s*flowchart-elk/.test(e) || /^\s*(flowchart|graph)/.test(e) && t?.flowchart?.defaultRenderer === "elk" ? (t.layout = "elk", !0) : !1, "detector"),
2400
- loader: /* @__PURE__ */ T(async () => {
2401
- let { diagram: e } = await import("./flowDiagram-HODETNUW-CAYbpJmV.js");
2390
+ renderer: vi,
2391
+ parser: { parse: /* @__PURE__ */ E(() => {}, "parse") }
2392
+ }, xi = "flowchart-elk", Si = {
2393
+ id: xi,
2394
+ detector: /* @__PURE__ */ E((e, t = {}) => /^\s*flowchart-elk/.test(e) || /^\s*(flowchart|graph)/.test(e) && t?.flowchart?.defaultRenderer === "elk" ? (t.layout = "elk", !0) : !1, "detector"),
2395
+ loader: /* @__PURE__ */ E(async () => {
2396
+ let { diagram: e } = await import("./flowDiagram-HODETNUW-CB8xo8zB.js");
2402
2397
  return {
2403
- id: bi,
2398
+ id: xi,
2404
2399
  diagram: e
2405
2400
  };
2406
2401
  }, "loader")
2407
- }, Si = "timeline", Ci = {
2408
- id: Si,
2409
- detector: /* @__PURE__ */ T((e) => /^\s*timeline/.test(e), "detector"),
2410
- loader: /* @__PURE__ */ T(async () => {
2411
- let { diagram: e } = await import("./timeline-definition-24CTP7MA-CaMQayqK.js");
2402
+ }, Ci = "timeline", wi = {
2403
+ id: Ci,
2404
+ detector: /* @__PURE__ */ E((e) => /^\s*timeline/.test(e), "detector"),
2405
+ loader: /* @__PURE__ */ E(async () => {
2406
+ let { diagram: e } = await import("./timeline-definition-24CTP7MA-CqGAO7Po.js");
2412
2407
  return {
2413
- id: Si,
2408
+ id: Ci,
2414
2409
  diagram: e
2415
2410
  };
2416
2411
  }, "loader")
2417
- }, wi = "mindmap", Ti = {
2418
- id: wi,
2419
- detector: /* @__PURE__ */ T((e) => /^\s*mindmap/.test(e), "detector"),
2420
- loader: /* @__PURE__ */ T(async () => {
2421
- let { diagram: e } = await import("./mindmap-definition-YA3MSWOX-DgCidgYJ.js");
2412
+ }, Ti = "mindmap", Ei = {
2413
+ id: Ti,
2414
+ detector: /* @__PURE__ */ E((e) => /^\s*mindmap/.test(e), "detector"),
2415
+ loader: /* @__PURE__ */ E(async () => {
2416
+ let { diagram: e } = await import("./mindmap-definition-YA3MSWOX-Do2TY53l.js");
2422
2417
  return {
2423
- id: wi,
2418
+ id: Ti,
2424
2419
  diagram: e
2425
2420
  };
2426
2421
  }, "loader")
2427
- }, Ei = "kanban", Di = {
2428
- id: Ei,
2429
- detector: /* @__PURE__ */ T((e) => /^\s*kanban/.test(e), "detector"),
2430
- loader: /* @__PURE__ */ T(async () => {
2431
- let { diagram: e } = await import("./kanban-definition-UXKFOSKX-Dg9W142_.js");
2422
+ }, Di = "kanban", Oi = {
2423
+ id: Di,
2424
+ detector: /* @__PURE__ */ E((e) => /^\s*kanban/.test(e), "detector"),
2425
+ loader: /* @__PURE__ */ E(async () => {
2426
+ let { diagram: e } = await import("./kanban-definition-UXKFOSKX-goBRs99g.js");
2432
2427
  return {
2433
- id: Ei,
2428
+ id: Di,
2434
2429
  diagram: e
2435
2430
  };
2436
2431
  }, "loader")
2437
- }, Oi = "sankey", ki = {
2438
- id: Oi,
2439
- detector: /* @__PURE__ */ T((e) => /^\s*sankey(-beta)?/.test(e), "detector"),
2440
- loader: /* @__PURE__ */ T(async () => {
2441
- let { diagram: e } = await import("./sankeyDiagram-P5KCCOFB-ELvOcnZH.js");
2432
+ }, ki = "sankey", Ai = {
2433
+ id: ki,
2434
+ detector: /* @__PURE__ */ E((e) => /^\s*sankey(-beta)?/.test(e), "detector"),
2435
+ loader: /* @__PURE__ */ E(async () => {
2436
+ let { diagram: e } = await import("./sankeyDiagram-P5KCCOFB-CrOfyc2n.js");
2442
2437
  return {
2443
- id: Oi,
2438
+ id: ki,
2444
2439
  diagram: e
2445
2440
  };
2446
2441
  }, "loader")
2447
- }, Ai = "packet", ji = {
2448
- id: Ai,
2449
- detector: /* @__PURE__ */ T((e) => /^\s*packet(-beta)?/.test(e), "detector"),
2450
- loader: /* @__PURE__ */ T(async () => {
2451
- let { diagram: e } = await import("./diagram-Z3DM3KII-Bt4QLrpn.js");
2442
+ }, ji = "packet", Mi = {
2443
+ id: ji,
2444
+ detector: /* @__PURE__ */ E((e) => /^\s*packet(-beta)?/.test(e), "detector"),
2445
+ loader: /* @__PURE__ */ E(async () => {
2446
+ let { diagram: e } = await import("./diagram-Z3DM3KII-BB9bWIyB.js");
2452
2447
  return {
2453
- id: Ai,
2448
+ id: ji,
2454
2449
  diagram: e
2455
2450
  };
2456
2451
  }, "loader")
2457
- }, Mi = "radar", Ni = {
2458
- id: Mi,
2459
- detector: /* @__PURE__ */ T((e) => /^\s*radar-beta/.test(e), "detector"),
2460
- loader: /* @__PURE__ */ T(async () => {
2461
- let { diagram: e } = await import("./diagram-UQ7AKVKN-CQPQ6pP_.js");
2452
+ }, Ni = "radar", Pi = {
2453
+ id: Ni,
2454
+ detector: /* @__PURE__ */ E((e) => /^\s*radar-beta/.test(e), "detector"),
2455
+ loader: /* @__PURE__ */ E(async () => {
2456
+ let { diagram: e } = await import("./diagram-UQ7AKVKN-BL-50b0n.js");
2462
2457
  return {
2463
- id: Mi,
2458
+ id: Ni,
2464
2459
  diagram: e
2465
2460
  };
2466
2461
  }, "loader")
2467
- }, Pi = "block", Fi = {
2468
- id: Pi,
2469
- detector: /* @__PURE__ */ T((e) => /^\s*block(-beta)?/.test(e), "detector"),
2470
- loader: /* @__PURE__ */ T(async () => {
2471
- let { diagram: e } = await import("./blockDiagram-I7D4REHJ-Cg25UrxT.js");
2462
+ }, Fi = "block", Ii = {
2463
+ id: Fi,
2464
+ detector: /* @__PURE__ */ E((e) => /^\s*block(-beta)?/.test(e), "detector"),
2465
+ loader: /* @__PURE__ */ E(async () => {
2466
+ let { diagram: e } = await import("./blockDiagram-I7D4REHJ-BoCyD5KO.js");
2472
2467
  return {
2473
- id: Pi,
2468
+ id: Fi,
2474
2469
  diagram: e
2475
2470
  };
2476
2471
  }, "loader")
2477
- }, Ii = "treeView", Li = {
2478
- id: Ii,
2479
- detector: /* @__PURE__ */ T((e) => /^\s*treeView-beta/.test(e), "detector"),
2480
- loader: /* @__PURE__ */ T(async () => {
2481
- let { diagram: e } = await import("./diagram-S7CK7UJ4-lCNQrW7d.js");
2472
+ }, Li = "treeView", Ri = {
2473
+ id: Li,
2474
+ detector: /* @__PURE__ */ E((e) => /^\s*treeView-beta/.test(e), "detector"),
2475
+ loader: /* @__PURE__ */ E(async () => {
2476
+ let { diagram: e } = await import("./diagram-S7CK7UJ4-CX97G4Gc.js");
2482
2477
  return {
2483
- id: Ii,
2478
+ id: Li,
2484
2479
  diagram: e
2485
2480
  };
2486
2481
  }, "loader")
2487
- }, Ri = "architecture", zi = {
2488
- id: Ri,
2489
- detector: /* @__PURE__ */ T((e) => /^\s*architecture/.test(e), "detector"),
2490
- loader: /* @__PURE__ */ T(async () => {
2491
- let { diagram: e } = await import("./architectureDiagram-5GKGNRK7-Nmls7Wxn.js");
2482
+ }, zi = "architecture", Bi = {
2483
+ id: zi,
2484
+ detector: /* @__PURE__ */ E((e) => /^\s*architecture/.test(e), "detector"),
2485
+ loader: /* @__PURE__ */ E(async () => {
2486
+ let { diagram: e } = await import("./architectureDiagram-5GKGNRK7-BFUiBUSa.js");
2492
2487
  return {
2493
- id: Ri,
2488
+ id: zi,
2494
2489
  diagram: e
2495
2490
  };
2496
2491
  }, "loader")
2497
- }, Bi = "eventmodeling", Vi = {
2498
- id: Bi,
2499
- detector: /* @__PURE__ */ T((e) => /^\s*eventmodeling/.test(e), "detector"),
2500
- loader: /* @__PURE__ */ T(async () => {
2501
- let { diagram: e } = await import("./diagram-VSXAHHWV-BJWcVVJY.js");
2492
+ }, Vi = "eventmodeling", Hi = {
2493
+ id: Vi,
2494
+ detector: /* @__PURE__ */ E((e) => /^\s*eventmodeling/.test(e), "detector"),
2495
+ loader: /* @__PURE__ */ E(async () => {
2496
+ let { diagram: e } = await import("./diagram-VSXAHHWV-LXjisZoM.js");
2502
2497
  return {
2503
- id: Bi,
2498
+ id: Vi,
2504
2499
  diagram: e
2505
2500
  };
2506
2501
  }, "loader")
2507
- }, Hi = "ishikawa", Ui = {
2508
- id: Hi,
2509
- detector: /* @__PURE__ */ T((e) => /^\s*ishikawa(-beta)?\b/i.test(e), "detector"),
2510
- loader: /* @__PURE__ */ T(async () => {
2511
- let { diagram: e } = await import("./ishikawaDiagram-5VMMS53U-CD1muzov.js");
2502
+ }, Ui = "ishikawa", Wi = {
2503
+ id: Ui,
2504
+ detector: /* @__PURE__ */ E((e) => /^\s*ishikawa(-beta)?\b/i.test(e), "detector"),
2505
+ loader: /* @__PURE__ */ E(async () => {
2506
+ let { diagram: e } = await import("./ishikawaDiagram-5VMMS53U-C3Q5F0f2.js");
2512
2507
  return {
2513
- id: Hi,
2508
+ id: Ui,
2514
2509
  diagram: e
2515
2510
  };
2516
2511
  }, "loader")
2517
- }, Wi = "venn", Gi = {
2518
- id: Wi,
2519
- detector: /* @__PURE__ */ T((e) => /^\s*venn-beta/.test(e), "detector"),
2520
- loader: /* @__PURE__ */ T(async () => {
2521
- let { diagram: e } = await import("./vennDiagram-4TSXK5OY-CF8pfaK3.js");
2512
+ }, Gi = "venn", Ki = {
2513
+ id: Gi,
2514
+ detector: /* @__PURE__ */ E((e) => /^\s*venn-beta/.test(e), "detector"),
2515
+ loader: /* @__PURE__ */ E(async () => {
2516
+ let { diagram: e } = await import("./vennDiagram-4TSXK5OY-CsvJDV8r.js");
2522
2517
  return {
2523
- id: Wi,
2518
+ id: Gi,
2524
2519
  diagram: e
2525
2520
  };
2526
2521
  }, "loader")
2527
- }, Ki = "treemap", qi = {
2528
- id: Ki,
2529
- detector: /* @__PURE__ */ T((e) => /^\s*treemap/.test(e), "detector"),
2530
- loader: /* @__PURE__ */ T(async () => {
2531
- let { diagram: e } = await import("./diagram-VX7I27RA-Cf3b0llz.js");
2522
+ }, qi = "treemap", Ji = {
2523
+ id: qi,
2524
+ detector: /* @__PURE__ */ E((e) => /^\s*treemap/.test(e), "detector"),
2525
+ loader: /* @__PURE__ */ E(async () => {
2526
+ let { diagram: e } = await import("./diagram-VX7I27RA-BsjelzlB.js");
2532
2527
  return {
2533
- id: Ki,
2528
+ id: qi,
2534
2529
  diagram: e
2535
2530
  };
2536
2531
  }, "loader")
2537
- }, Ji = "wardley", Yi = {
2538
- id: Ji,
2539
- detector: /* @__PURE__ */ T((e) => /^\s*wardley-beta/i.test(e), "detector"),
2540
- loader: /* @__PURE__ */ T(async () => {
2541
- let { diagram: e } = await import("./wardleyDiagram-VM6X3IG4-dGPu39d-.js");
2532
+ }, Yi = "wardley", Xi = {
2533
+ id: Yi,
2534
+ detector: /* @__PURE__ */ E((e) => /^\s*wardley-beta/i.test(e), "detector"),
2535
+ loader: /* @__PURE__ */ E(async () => {
2536
+ let { diagram: e } = await import("./wardleyDiagram-VM6X3IG4-DeT0PuM9.js");
2542
2537
  return {
2543
- id: Ji,
2538
+ id: Yi,
2544
2539
  diagram: e
2545
2540
  };
2546
2541
  }, "loader")
2547
- }, Xi = "cynefin", Zi = {
2548
- id: Xi,
2549
- detector: /* @__PURE__ */ T((e) => /^\s*cynefin-beta(?:[\s:]|$)/.test(e), "detector"),
2550
- loader: /* @__PURE__ */ T(async () => {
2551
- let { diagram: e } = await import("./cynefinDiagram-5FMLGOSQ-CgWra7wt.js");
2542
+ }, Zi = "cynefin", Qi = {
2543
+ id: Zi,
2544
+ detector: /* @__PURE__ */ E((e) => /^\s*cynefin-beta(?:[\s:]|$)/.test(e), "detector"),
2545
+ loader: /* @__PURE__ */ E(async () => {
2546
+ let { diagram: e } = await import("./cynefinDiagram-5FMLGOSQ-3YzyEvsv.js");
2552
2547
  return {
2553
- id: Xi,
2548
+ id: Zi,
2554
2549
  diagram: e
2555
2550
  };
2556
2551
  }, "loader")
2557
- }, Qi = "railroad", $i = {
2558
- id: Qi,
2559
- detector: /* @__PURE__ */ T((e) => /^\s*railroad-beta/i.test(e), "detector"),
2560
- loader: /* @__PURE__ */ T(async () => {
2561
- let { diagram: e } = await import("./railroadDiagram-O6MQD6OU-B28-u83n.js");
2552
+ }, $i = "railroad", ea = {
2553
+ id: $i,
2554
+ detector: /* @__PURE__ */ E((e) => /^\s*railroad-beta/i.test(e), "detector"),
2555
+ loader: /* @__PURE__ */ E(async () => {
2556
+ let { diagram: e } = await import("./railroadDiagram-O6MQD6OU-PldgXn-D.js");
2562
2557
  return {
2563
- id: Qi,
2558
+ id: $i,
2564
2559
  diagram: e
2565
2560
  };
2566
2561
  }, "loader")
2567
- }, ea = "railroadEbnf", ta = {
2568
- id: ea,
2569
- detector: /* @__PURE__ */ T((e) => /^\s*railroad-ebnf-beta/i.test(e), "detector"),
2570
- loader: /* @__PURE__ */ T(async () => {
2571
- let { diagram: e } = await import("./ebnfDiagram-PWID7BFC-D3NAyPFY.js");
2562
+ }, ta = "railroadEbnf", na = {
2563
+ id: ta,
2564
+ detector: /* @__PURE__ */ E((e) => /^\s*railroad-ebnf-beta/i.test(e), "detector"),
2565
+ loader: /* @__PURE__ */ E(async () => {
2566
+ let { diagram: e } = await import("./ebnfDiagram-PWID7BFC-Lfkf8Ayx.js");
2572
2567
  return {
2573
- id: ea,
2568
+ id: ta,
2574
2569
  diagram: e
2575
2570
  };
2576
2571
  }, "loader")
2577
- }, na = "railroadAbnf", ra = {
2578
- id: na,
2579
- detector: /* @__PURE__ */ T((e) => /^\s*railroad-abnf-beta/i.test(e), "detector"),
2580
- loader: /* @__PURE__ */ T(async () => {
2581
- let { diagram: e } = await import("./abnfDiagram-VCTEODGH-DQDjNXt3.js");
2572
+ }, ra = "railroadAbnf", ia = {
2573
+ id: ra,
2574
+ detector: /* @__PURE__ */ E((e) => /^\s*railroad-abnf-beta/i.test(e), "detector"),
2575
+ loader: /* @__PURE__ */ E(async () => {
2576
+ let { diagram: e } = await import("./abnfDiagram-VCTEODGH-l39MiVXs.js");
2582
2577
  return {
2583
- id: na,
2578
+ id: ra,
2584
2579
  diagram: e
2585
2580
  };
2586
2581
  }, "loader")
2587
- }, ia = "railroadPeg", aa = {
2588
- id: ia,
2589
- detector: /* @__PURE__ */ T((e) => /^\s*railroad-peg-beta/i.test(e), "detector"),
2590
- loader: /* @__PURE__ */ T(async () => {
2591
- let { diagram: e } = await import("./pegDiagram-XKGWAZYB-coOYYKB6.js");
2582
+ }, aa = "railroadPeg", oa = {
2583
+ id: aa,
2584
+ detector: /* @__PURE__ */ E((e) => /^\s*railroad-peg-beta/i.test(e), "detector"),
2585
+ loader: /* @__PURE__ */ E(async () => {
2586
+ let { diagram: e } = await import("./pegDiagram-XKGWAZYB-sUp3JNDF.js");
2592
2587
  return {
2593
- id: ia,
2588
+ id: aa,
2594
2589
  diagram: e
2595
2590
  };
2596
2591
  }, "loader")
2597
- }, oa = !1, sa = /* @__PURE__ */ T(() => {
2598
- oa || (oa = !0, A("error", yi, (e) => e.toLowerCase().trim() === "error"), A("---", {
2599
- db: { clear: /* @__PURE__ */ T(() => {}, "clear") },
2592
+ }, sa = !1, ca = /* @__PURE__ */ E(() => {
2593
+ sa || (sa = !0, A("error", bi, (e) => e.toLowerCase().trim() === "error"), A("---", {
2594
+ db: { clear: /* @__PURE__ */ E(() => {}, "clear") },
2600
2595
  styles: {},
2601
- renderer: { draw: /* @__PURE__ */ T(() => {}, "draw") },
2602
- parser: { parse: /* @__PURE__ */ T(() => {
2596
+ renderer: { draw: /* @__PURE__ */ E(() => {}, "draw") },
2597
+ parser: { parse: /* @__PURE__ */ E(() => {
2603
2598
  throw Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks");
2604
2599
  }, "parse") },
2605
- init: /* @__PURE__ */ T(() => null, "init")
2606
- }, (e) => e.toLowerCase().trimStart().startsWith("---")), j(xi, Ti, zi), j(Ir, Di, ui, ci, Wr, Jr, Xr, Qr, ii, oi, Hr, Br, Rr, Ci, Kr, mi, fi, gi, ei, ki, ji, ni, Fi, Vi, Li, Ni, Ui, qi, $i, ta, ra, aa, Gi, Yi, Zi));
2607
- }, "addDiagrams"), ca = /* @__PURE__ */ T(async () => {
2608
- S.debug("Loading registered diagrams");
2609
- let e = (await Promise.allSettled(Object.entries(ie).map(async ([e, { detector: t, loader: n }]) => {
2600
+ init: /* @__PURE__ */ E(() => null, "init")
2601
+ }, (e) => e.toLowerCase().trimStart().startsWith("---")), j(Si, Ei, Bi), j(Lr, Oi, di, li, Gr, Yr, Zr, $r, ai, si, Ur, Vr, zr, wi, qr, hi, pi, _i, ti, Ai, Mi, ri, Ii, Hi, Ri, Pi, Wi, Ji, ea, na, ia, oa, Ki, Xi, Qi));
2602
+ }, "addDiagrams"), la = /* @__PURE__ */ E(async () => {
2603
+ C.debug("Loading registered diagrams");
2604
+ let e = (await Promise.allSettled(Object.entries(ae).map(async ([e, { detector: t, loader: n }]) => {
2610
2605
  if (n) try {
2611
- N(e);
2606
+ M(e);
2612
2607
  } catch {
2613
2608
  try {
2614
2609
  let { diagram: e, id: r } = await n();
2615
2610
  A(r, e, t);
2616
2611
  } catch (t) {
2617
- throw S.error(`Failed to load external diagram with key ${e}. Removing from detectors.`), delete ie[e], t;
2612
+ throw C.error(`Failed to load external diagram with key ${e}. Removing from detectors.`), delete ae[e], t;
2618
2613
  }
2619
2614
  }
2620
2615
  }))).filter((e) => e.status === "rejected");
2621
2616
  if (e.length > 0) {
2622
- S.error(`Failed to load ${e.length} external diagrams`);
2623
- for (let t of e) S.error(t);
2617
+ C.error(`Failed to load ${e.length} external diagrams`);
2618
+ for (let t of e) C.error(t);
2624
2619
  throw Error(`Failed to load ${e.length} external diagrams`);
2625
2620
  }
2626
- }, "loadRegisteredDiagrams"), la = "graphics-document document";
2627
- function ua(e, t) {
2628
- e.attr("role", la), t !== "" && e.attr("aria-roledescription", t);
2621
+ }, "loadRegisteredDiagrams"), ua = "graphics-document document";
2622
+ function da(e, t) {
2623
+ e.attr("role", ua), t !== "" && e.attr("aria-roledescription", t);
2629
2624
  }
2630
- T(ua, "setA11yDiagramInfo");
2631
- function da(e, t, n, r) {
2625
+ E(da, "setA11yDiagramInfo");
2626
+ function fa(e, t, n, r) {
2632
2627
  if (e.insert !== void 0) {
2633
2628
  if (n) {
2634
2629
  let t = `chart-desc-${r}`;
@@ -2640,26 +2635,26 @@ function da(e, t, n, r) {
2640
2635
  }
2641
2636
  }
2642
2637
  }
2643
- T(da, "addSVGa11yTitleDescription");
2644
- var fa = class e {
2638
+ E(fa, "addSVGa11yTitleDescription");
2639
+ var pa = class e {
2645
2640
  constructor(e, t, n, r, i) {
2646
2641
  this.type = e, this.text = t, this.db = n, this.parser = r, this.renderer = i;
2647
2642
  }
2648
2643
  static {
2649
- T(this, "Diagram");
2644
+ E(this, "Diagram");
2650
2645
  }
2651
2646
  static async fromText(t, n = {}) {
2652
- let r = z(), i = oe(t, r);
2653
- t = v(t) + "\n";
2647
+ let r = z(), i = se(t, r);
2648
+ t = y(t) + "\n";
2654
2649
  try {
2655
- N(i);
2650
+ M(i);
2656
2651
  } catch {
2657
- let e = E(i);
2658
- if (!e) throw new ue(`Diagram ${i} not found.`);
2652
+ let e = D(i);
2653
+ if (!e) throw new de(`Diagram ${i} not found.`);
2659
2654
  let { id: t, diagram: n } = await e();
2660
2655
  A(t, n);
2661
2656
  }
2662
- let { db: a, parser: o, renderer: s, init: c } = N(i);
2657
+ let { db: a, parser: o, renderer: s, init: c } = M(i);
2663
2658
  return o.parser && (o.parser.yy = a), a.clear?.(), c?.(r), n.title && a.setDiagramTitle?.(n.title), await o.parse(t), new e(i, t, a, o, s);
2664
2659
  }
2665
2660
  async render(e, t) {
@@ -2671,18 +2666,18 @@ var fa = class e {
2671
2666
  getType() {
2672
2667
  return this.type;
2673
2668
  }
2674
- }, pa = [], ma = /* @__PURE__ */ T(() => {
2675
- pa.forEach((e) => {
2669
+ }, ma = [], ha = /* @__PURE__ */ E(() => {
2670
+ ma.forEach((e) => {
2676
2671
  e();
2677
- }), pa = [];
2678
- }, "attachFunctions"), ha = /* @__PURE__ */ T((e) => e.replace(/^\s*%%(?!{)[^\n]+\n?/gm, "").trimStart(), "cleanupComments");
2679
- function ga(e) {
2672
+ }), ma = [];
2673
+ }, "attachFunctions"), ga = /* @__PURE__ */ E((e) => e.replace(/^\s*%%(?!{)[^\n]+\n?/gm, "").trimStart(), "cleanupComments");
2674
+ function _a(e) {
2680
2675
  let t = e.match(R);
2681
2676
  if (!t) return {
2682
2677
  text: e,
2683
2678
  metadata: {}
2684
2679
  };
2685
- let n = t[1], r = Fn(n ? t[2].split("\n").map((e) => e.startsWith(n) ? e.slice(n.length) : e).join("\n") : t[2], { schema: Mn }) ?? {};
2680
+ let n = t[1], r = In(n ? t[2].split("\n").map((e) => e.startsWith(n) ? e.slice(n.length) : e).join("\n") : t[2], { schema: Nn }) ?? {};
2686
2681
  r = typeof r == "object" && !Array.isArray(r) ? r : {};
2687
2682
  let i = {};
2688
2683
  return r.displayMode && (i.displayMode = r.displayMode.toString()), r.title && (i.title = r.title.toString()), r.config && (i.config = r.config), {
@@ -2690,47 +2685,47 @@ function ga(e) {
2690
2685
  metadata: i
2691
2686
  };
2692
2687
  }
2693
- T(ga, "extractFrontMatter");
2694
- var _a = /* @__PURE__ */ T((e) => e.replace(/\r\n?/g, "\n").replace(/<(\w+)([^>]*)>/g, (e, t, n) => "<" + t + n.replace(/="([^"]*)"/g, "='$1'") + ">"), "cleanupText"), va = /* @__PURE__ */ T((e) => {
2695
- let { text: t, metadata: n } = ga(e), { displayMode: r, title: i, config: a = {} } = n;
2688
+ E(_a, "extractFrontMatter");
2689
+ var va = /* @__PURE__ */ E((e) => e.replace(/\r\n?/g, "\n").replace(/<(\w+)([^>]*)>/g, (e, t, n) => "<" + t + n.replace(/="([^"]*)"/g, "='$1'") + ">"), "cleanupText"), ya = /* @__PURE__ */ E((e) => {
2690
+ let { text: t, metadata: n } = _a(e), { displayMode: r, title: i, config: a = {} } = n;
2696
2691
  return r && (a.gantt ||= {}, a.gantt.displayMode = r), {
2697
2692
  title: i,
2698
2693
  config: a,
2699
2694
  text: t
2700
2695
  };
2701
- }, "processFrontmatter"), ya = /* @__PURE__ */ T((e) => {
2702
- let t = h.detectInit(e) ?? {}, n = h.detectDirective(e, "wrap");
2696
+ }, "processFrontmatter"), ba = /* @__PURE__ */ E((e) => {
2697
+ let t = g.detectInit(e) ?? {}, n = g.detectDirective(e, "wrap");
2703
2698
  return Array.isArray(n) ? t.wrap = n.some(({ type: e }) => e === "wrap") : n?.type === "wrap" && (t.wrap = !0), {
2704
- text: g(e),
2699
+ text: _(e),
2705
2700
  directive: t
2706
2701
  };
2707
2702
  }, "processDirectives");
2708
- function ba(e) {
2709
- let t = va(_a(e)), n = ya(t.text), r = _(t.config, n.directive);
2710
- return e = ha(n.text), {
2703
+ function xa(e) {
2704
+ let t = ya(va(e)), n = ba(t.text), r = v(t.config, n.directive);
2705
+ return e = ga(n.text), {
2711
2706
  code: e,
2712
2707
  title: t.title,
2713
2708
  config: r
2714
2709
  };
2715
2710
  }
2716
- T(ba, "preprocessDiagram");
2717
- function xa(e) {
2711
+ E(xa, "preprocessDiagram");
2712
+ function Sa(e) {
2718
2713
  let t = new TextEncoder().encode(e), n = Array.from(t, (e) => String.fromCodePoint(e)).join("");
2719
2714
  return btoa(n);
2720
2715
  }
2721
- T(xa, "toBase64");
2722
- var Sa = 5e4, Ca = "graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa", wa = "sandbox", Ta = "loose", Ea = "http://www.w3.org/2000/svg", Da = "http://www.w3.org/1999/xlink", Oa = "http://www.w3.org/1999/xhtml", ka = "100%", Aa = "100%", ja = "border:0;margin:0;", Ma = "margin:0", Na = "allow-top-navigation-by-user-activation allow-popups", Pa = "The \"iframe\" tag is not supported by your browser.", Fa = ["foreignobject"], Ia = ["dominant-baseline"];
2723
- function La(e) {
2724
- let t = ba(e);
2725
- return O(), ae(t.config ?? {}), t;
2716
+ E(Sa, "toBase64");
2717
+ var Ca = 5e4, wa = "graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa", Ta = "sandbox", Ea = "loose", Da = "http://www.w3.org/2000/svg", Oa = "http://www.w3.org/1999/xlink", ka = "http://www.w3.org/1999/xhtml", Aa = "100%", ja = "100%", Ma = "border:0;margin:0;", Na = "margin:0", Pa = "allow-top-navigation-by-user-activation allow-popups", Fa = "The \"iframe\" tag is not supported by your browser.", Ia = ["foreignobject"], La = ["dominant-baseline"];
2718
+ function Ra(e) {
2719
+ let t = xa(e);
2720
+ return k(), oe(t.config ?? {}), t;
2726
2721
  }
2727
- T(La, "processAndSetConfigs");
2728
- async function Ra(e, t) {
2729
- sa();
2722
+ E(Ra, "processAndSetConfigs");
2723
+ async function za(e, t) {
2724
+ ca();
2730
2725
  try {
2731
- let { code: t, config: n } = La(e);
2726
+ let { code: t, config: n } = Ra(e);
2732
2727
  return {
2733
- diagramType: (await Xa(t)).type,
2728
+ diagramType: (await Za(t)).type,
2734
2729
  config: n
2735
2730
  };
2736
2731
  } catch (e) {
@@ -2738,11 +2733,11 @@ async function Ra(e, t) {
2738
2733
  throw e;
2739
2734
  }
2740
2735
  }
2741
- T(Ra, "parse");
2742
- var za = /* @__PURE__ */ T((e, t, n = []) => `.${e} ${t} ${k(`{ ${n.join(" !important; ")} !important; }`)}`, "cssImportantStyles"), Ba = /* @__PURE__ */ T((e, t = /* @__PURE__ */ new Map()) => {
2736
+ E(za, "parse");
2737
+ var Ba = /* @__PURE__ */ E((e, t, n = []) => `.${e} ${t} ${ee(`{ ${n.join(" !important; ")} !important; }`)}`, "cssImportantStyles"), Va = /* @__PURE__ */ E((e, t = /* @__PURE__ */ new Map()) => {
2743
2738
  let n = new CSSStyleSheet();
2744
2739
  if (e.fontFamily !== void 0 && n.insertRule(`:root { --mermaid-font-family: ${e.fontFamily}}`, n.cssRules.length), e.altFontFamily !== void 0 && n.insertRule(`:root { --mermaid-alt-font-family: ${e.altFontFamily}}`, n.cssRules.length), t instanceof Map) {
2745
- let r = ee(e) ? ["> *", "span"] : [
2740
+ let r = N(e) ? ["> *", "span"] : [
2746
2741
  "rect",
2747
2742
  "polygon",
2748
2743
  "ellipse",
@@ -2750,28 +2745,28 @@ var za = /* @__PURE__ */ T((e, t, n = []) => `.${e} ${t} ${k(`{ ${n.join(" !impo
2750
2745
  "path"
2751
2746
  ];
2752
2747
  t.forEach((e) => {
2753
- Me(e.styles) || r.forEach((t) => {
2754
- n.insertRule(za(e.id, t, e.styles), n.cssRules.length);
2755
- }), Me(e.textStyles) || n.insertRule(za(e.id, "tspan", (e?.textStyles || []).map((e) => e.replace("color", "fill"))), n.cssRules.length);
2748
+ Ne(e.styles) || r.forEach((t) => {
2749
+ n.insertRule(Ba(e.id, t, e.styles), n.cssRules.length);
2750
+ }), Ne(e.textStyles) || n.insertRule(Ba(e.id, "tspan", (e?.textStyles || []).map((e) => e.replace("color", "fill"))), n.cssRules.length);
2756
2751
  });
2757
2752
  }
2758
2753
  let r = "";
2759
2754
  if (e.themeCSS !== void 0) {
2760
2755
  if (typeof n.replaceSync == "function") {
2761
2756
  let t = new CSSStyleSheet();
2762
- t.replaceSync(e.themeCSS), r = re(t) + "\n";
2757
+ t.replaceSync(e.themeCSS), r = ie(t) + "\n";
2763
2758
  } else r += `${e.themeCSS}
2764
2759
  `;
2765
2760
  }
2766
- return r + re(n);
2767
- }, "createCssStyles"), Va = /* @__PURE__ */ T((e, t) => Mr(Dr(`${e}{${t}}`), Pr([/* @__PURE__ */ T(function(t, n, r, i) {
2761
+ return r + ie(n);
2762
+ }, "createCssStyles"), Ha = /* @__PURE__ */ E((e, t) => Nr(Or(`${e}{${t}}`), Fr([/* @__PURE__ */ E(function(t, n, r, i) {
2768
2763
  if (t.type === "rule" && Array.isArray(t.props)) {
2769
2764
  if (t.parent && t.parent.type === "@keyframes") return;
2770
2765
  t.props = t.props.map((n) => n === e && Array.isArray(t.children) && t.children.every((e) => e.type === "decl" && (/* @__PURE__ */ new Set([
2771
2766
  "font-family",
2772
2767
  "font-size",
2773
2768
  "fill"
2774
- ])).has(e.props)) || (n.startsWith(`${e} `) || n.startsWith(`${e}>`)) && !n.startsWith(`${e} ||`) ? n : `${e} ${n}`);
2769
+ ])).has(e.props)) ? n : !n.startsWith(`${e} `) && !n.startsWith(`${e}>`) || n.startsWith(`${e} ||`) ? `${e} ${n}` : n);
2775
2770
  } else t.type.startsWith("@") && ([
2776
2771
  "@media",
2777
2772
  "@supports",
@@ -2780,125 +2775,125 @@ var za = /* @__PURE__ */ T((e, t, n = []) => `.${e} ${t} ${k(`{ ${n.join(" !impo
2780
2775
  "@container",
2781
2776
  "@starting-style",
2782
2777
  "@keyframes"
2783
- ].includes(t.type) || (S.warn(`Removing unsupported at-rule ${t.type} from CSS`), t.type = Jn));
2784
- }, "addNamespace"), Nr])), "compileCSS"), Ha = /* @__PURE__ */ T((e, t, n, r) => {
2785
- let i = Ba(e, n);
2786
- return Va(r, I(t, i, {
2778
+ ].includes(t.type) || (C.warn(`Removing unsupported at-rule ${t.type} from CSS`), t.type = Yn));
2779
+ }, "addNamespace"), Pr])), "compileCSS"), Ua = /* @__PURE__ */ E((e, t, n, r) => {
2780
+ let i = Va(e, n);
2781
+ return Ha(r, I(t, i, {
2787
2782
  ...e.themeVariables,
2788
2783
  theme: e.theme,
2789
2784
  look: e.look
2790
2785
  }, r));
2791
- }, "createUserStyles"), Ua = /* @__PURE__ */ T((e = "", t, n) => {
2786
+ }, "createUserStyles"), Wa = /* @__PURE__ */ E((e = "", t, n) => {
2792
2787
  let r = e;
2793
- return !n && !t && (r = r.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g, "marker-end=\"url(#")), r = f(r), r = r.replace(/<br>/g, "<br/>"), r;
2794
- }, "cleanUpSvgCode"), Wa = /* @__PURE__ */ T((e = "", t) => `<iframe style="width:${ka};height:${t?.viewBox?.baseVal?.height ? t.viewBox.baseVal.height + "px" : Aa};${ja}" src="data:text/html;charset=UTF-8;base64,${xa(`<body style="${Ma}">${e}</body>`)}" sandbox="${Na}">
2795
- ${Pa}
2796
- </iframe>`, "putIntoIFrame"), Ga = /* @__PURE__ */ T((e, t, n, r, i) => {
2788
+ return !n && !t && (r = r.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g, "marker-end=\"url(#")), r = p(r), r = r.replace(/<br>/g, "<br/>"), r;
2789
+ }, "cleanUpSvgCode"), Ga = /* @__PURE__ */ E((e = "", t) => `<iframe style="width:${Aa};height:${t?.viewBox?.baseVal?.height ? t.viewBox.baseVal.height + "px" : ja};${Ma}" src="data:text/html;charset=UTF-8;base64,${Sa(`<body style="${Na}">${e}</body>`)}" sandbox="${Pa}">
2790
+ ${Fa}
2791
+ </iframe>`, "putIntoIFrame"), Ka = /* @__PURE__ */ E((e, t, n, r, i) => {
2797
2792
  let a = e.append("div");
2798
2793
  a.attr("id", n), r && a.attr("style", r);
2799
- let o = a.append("svg").attr("id", t).attr("width", "100%").attr("xmlns", Ea);
2794
+ let o = a.append("svg").attr("id", t).attr("width", "100%").attr("xmlns", Da);
2800
2795
  return i && o.attr("xmlns:xlink", i), o.append("g"), e;
2801
2796
  }, "appendDivSvgG");
2802
- function Ka(e, t) {
2797
+ function qa(e, t) {
2803
2798
  return e.append("iframe").attr("id", t).attr("style", "width: 100%; height: 100%;").attr("sandbox", "");
2804
2799
  }
2805
- T(Ka, "sandboxedIframe");
2806
- var qa = /* @__PURE__ */ T((e, t, n, r) => {
2800
+ E(qa, "sandboxedIframe");
2801
+ var Ja = /* @__PURE__ */ E((e, t, n, r) => {
2807
2802
  e.getElementById(t)?.remove(), e.getElementById(n)?.remove(), e.getElementById(r)?.remove();
2808
- }, "removeExistingElements"), Ja = /* @__PURE__ */ T(async function(e, t, n) {
2809
- sa();
2810
- let r = La(t);
2803
+ }, "removeExistingElements"), Ya = /* @__PURE__ */ E(async function(e, t, n) {
2804
+ ca();
2805
+ let r = Ra(t);
2811
2806
  t = r.code;
2812
2807
  let i = z();
2813
- S.debug(i), t.length > (i?.maxTextSize ?? Sa) && (t = Ca);
2814
- let a = `#${e}`, o = "i" + e, s = "#" + o, c = "d" + e, l = "#" + c, d = /* @__PURE__ */ T(() => {
2815
- let e = w(p ? s : l).node();
2808
+ C.debug(i), t.length > (i?.maxTextSize ?? Ca) && (t = wa);
2809
+ let a = `#${e}`, o = "i" + e, s = "#" + o, c = "d" + e, u = "#" + c, d = /* @__PURE__ */ E(() => {
2810
+ let e = T(p ? s : u).node();
2816
2811
  e && "remove" in e && e.remove();
2817
- }, "removeTempElements"), f = w(document.body), p = i.securityLevel === wa, m = i.securityLevel === Ta, h = i.fontFamily;
2812
+ }, "removeTempElements"), f = T(document.body), p = i.securityLevel === Ta, m = i.securityLevel === Ea, h = i.fontFamily;
2818
2813
  if (n !== void 0) {
2819
2814
  if (n && (n.innerHTML = ""), p) {
2820
- let e = Ka(w(n), o);
2821
- f = w(e.nodes()[0].contentDocument.body), f.node().style.margin = "0";
2822
- } else f = w(n);
2823
- Ga(f, e, c, `font-family: ${h}`, Da);
2815
+ let e = qa(T(n), o);
2816
+ f = T(e.nodes()[0].contentDocument.body), f.node().style.margin = "0";
2817
+ } else f = T(n);
2818
+ Ka(f, e, c, `font-family: ${h}`, Oa);
2824
2819
  } else {
2825
- if (qa(document, e, c, o), p) {
2826
- let e = Ka(w(document.body), o);
2827
- f = w(e.nodes()[0].contentDocument.body), f.node().style.margin = "0";
2828
- } else f = w("body");
2829
- Ga(f, e, c);
2820
+ if (Ja(document, e, c, o), p) {
2821
+ let e = qa(T(document.body), o);
2822
+ f = T(e.nodes()[0].contentDocument.body), f.node().style.margin = "0";
2823
+ } else f = T("body");
2824
+ Ka(f, e, c);
2830
2825
  }
2831
2826
  let g, _;
2832
2827
  try {
2833
- g = await fa.fromText(t, { title: r.title });
2828
+ g = await pa.fromText(t, { title: r.title });
2834
2829
  } catch (e) {
2835
2830
  if (i.suppressErrorRendering) throw d(), e;
2836
- g = await fa.fromText("error"), _ = e;
2831
+ g = await pa.fromText("error"), _ = e;
2837
2832
  }
2838
- let v = f.select(l).node(), y = g.type, b = v.firstChild, x = b.firstChild, C = g.renderer.getClasses?.(t, g), E = Ha(i, y, C, a), D = document.createElement("style");
2839
- D.innerHTML = E, b.insertBefore(D, x);
2833
+ let v = f.select(u).node(), y = g.type, b = v.firstChild, x = b.firstChild, S = g.renderer.getClasses?.(t, g), w = Ua(i, y, S, a), D = document.createElement("style");
2834
+ D.innerHTML = w, b.insertBefore(D, x);
2840
2835
  try {
2841
2836
  await g.renderer.draw(t, e, "11.17.2", g);
2842
2837
  } catch (n) {
2843
- throw i.suppressErrorRendering ? d() : vi.draw(t, e, "11.17.2"), n;
2844
- }
2845
- let O = f.select(`${l} svg`), k = g.db.getAccTitle?.(), A = g.db.getAccDescription?.();
2846
- Za(y, O, k, A);
2847
- let j = (/* @__PURE__ */ T(() => {
2848
- f.select(`[id="${e}"]`).selectAll("foreignobject > *").attr("xmlns", Oa);
2849
- let t = f.select(l).node().innerHTML;
2850
- if (S.debug("config.arrowMarkerAbsolute", i.arrowMarkerAbsolute), t = Ua(t, p, ne(i.arrowMarkerAbsolute)), p) {
2851
- let e = f.select(l + " svg").node();
2852
- t = Wa(t, e);
2853
- } else m || (t = u.sanitize(t, {
2854
- ADD_TAGS: Fa,
2855
- ADD_ATTR: Ia,
2838
+ throw i.suppressErrorRendering ? d() : yi.draw(t, e, "11.17.2"), n;
2839
+ }
2840
+ let O = f.select(`${u} svg`), k = g.db.getAccTitle?.(), ee = g.db.getAccDescription?.();
2841
+ Qa(y, O, k, ee);
2842
+ let A = (/* @__PURE__ */ E(() => {
2843
+ f.select(`[id="${e}"]`).selectAll("foreignobject > *").attr("xmlns", ka);
2844
+ let t = f.select(u).node().innerHTML;
2845
+ if (C.debug("config.arrowMarkerAbsolute", i.arrowMarkerAbsolute), t = Wa(t, p, re(i.arrowMarkerAbsolute)), p) {
2846
+ let e = f.select(u + " svg").node();
2847
+ t = Ga(t, e);
2848
+ } else m || (t = l.sanitize(t, {
2849
+ ADD_TAGS: Ia,
2850
+ ADD_ATTR: La,
2856
2851
  HTML_INTEGRATION_POINTS: { foreignobject: !0 }
2857
2852
  }));
2858
- return ma(), t;
2853
+ return ha(), t;
2859
2854
  }, "serializeSvg"))();
2860
2855
  if (_) throw _;
2861
2856
  return d(), {
2862
2857
  diagramType: y,
2863
- svg: j,
2858
+ svg: A,
2864
2859
  bindFunctions: g.db.bindFunctions
2865
2860
  };
2866
2861
  }, "render");
2867
- function Ya(e = {}) {
2868
- let t = ce({}, e);
2862
+ function Xa(e = {}) {
2863
+ let t = le({}, e);
2869
2864
  t?.fontFamily && !t.themeVariables?.fontFamily && (t.themeVariables ||= {}, t.themeVariables.fontFamily = t.fontFamily), P(t), t?.theme && t.theme in L ? t.themeVariables = L[t.theme].getThemeVariables(t.themeVariables) : t && (t.themeVariables = L.default.getThemeVariables(t.themeVariables));
2870
- let n = typeof t == "object" ? se(t) : D();
2871
- C(n.logLevel), sa();
2865
+ let n = typeof t == "object" ? ce(t) : O();
2866
+ w(n.logLevel), ca();
2872
2867
  }
2873
- T(Ya, "initialize");
2874
- var Xa = /* @__PURE__ */ T((e, t = {}) => {
2875
- let { code: n } = ba(e);
2876
- return fa.fromText(n, t);
2868
+ E(Xa, "initialize");
2869
+ var Za = /* @__PURE__ */ E((e, t = {}) => {
2870
+ let { code: n } = xa(e);
2871
+ return pa.fromText(n, t);
2877
2872
  }, "getDiagramFromText");
2878
- function Za(e, t, n, r) {
2879
- ua(t, e), da(t, n, r, t.attr("id"));
2873
+ function Qa(e, t, n, r) {
2874
+ da(t, e), fa(t, n, r, t.attr("id"));
2880
2875
  }
2881
- T(Za, "addA11yInfo");
2876
+ E(Qa, "addA11yInfo");
2882
2877
  var Q = Object.freeze({
2883
- render: Ja,
2884
- parse: Ra,
2885
- getDiagramFromText: Xa,
2886
- initialize: Ya,
2878
+ render: Ya,
2879
+ parse: za,
2880
+ getDiagramFromText: Za,
2881
+ initialize: Xa,
2887
2882
  getConfig: z,
2888
2883
  setConfig: F,
2889
- getSiteConfig: D,
2890
- updateSiteConfig: M,
2891
- reset: /* @__PURE__ */ T(() => {
2892
- O();
2884
+ getSiteConfig: O,
2885
+ updateSiteConfig: te,
2886
+ reset: /* @__PURE__ */ E(() => {
2887
+ k();
2893
2888
  }, "reset"),
2894
- globalReset: /* @__PURE__ */ T(() => {
2895
- O(de);
2889
+ globalReset: /* @__PURE__ */ E(() => {
2890
+ k(fe);
2896
2891
  }, "globalReset"),
2897
- defaultConfig: de
2892
+ defaultConfig: fe
2898
2893
  });
2899
- C(z().logLevel), O(z());
2900
- var Qa = /* @__PURE__ */ T((e, t, n) => {
2901
- S.warn(e), m(e) ? (n && n(e.str, e.hash), t.push({
2894
+ w(z().logLevel), k(z());
2895
+ var $a = /* @__PURE__ */ E((e, t, n) => {
2896
+ C.warn(e), h(e) ? (n && n(e.str, e.hash), t.push({
2902
2897
  ...e,
2903
2898
  message: e.str,
2904
2899
  error: e
@@ -2908,103 +2903,103 @@ var Qa = /* @__PURE__ */ T((e, t, n) => {
2908
2903
  hash: e.name,
2909
2904
  error: e
2910
2905
  }));
2911
- }, "handleError"), $a = /* @__PURE__ */ T(async function(e = { querySelector: ".mermaid" }) {
2906
+ }, "handleError"), eo = /* @__PURE__ */ E(async function(e = { querySelector: ".mermaid" }) {
2912
2907
  try {
2913
- await eo(e);
2908
+ await to(e);
2914
2909
  } catch (t) {
2915
- if (m(t) && S.error(t.str), $.parseError && $.parseError(t), !e.suppressErrors) throw S.error("Use the suppressErrors option to suppress these errors"), t;
2910
+ if (h(t) && C.error(t.str), $.parseError && $.parseError(t), !e.suppressErrors) throw C.error("Use the suppressErrors option to suppress these errors"), t;
2916
2911
  }
2917
- }, "run"), eo = /* @__PURE__ */ T(async function({ postRenderCallback: e, querySelector: t, nodes: n } = { querySelector: ".mermaid" }) {
2912
+ }, "run"), to = /* @__PURE__ */ E(async function({ postRenderCallback: e, querySelector: t, nodes: n } = { querySelector: ".mermaid" }) {
2918
2913
  let r = Q.getConfig();
2919
- S.debug(`${e ? "" : "No "}Callback function found`);
2914
+ C.debug(`${e ? "" : "No "}Callback function found`);
2920
2915
  let i;
2921
2916
  if (n) i = n;
2922
2917
  else if (t) i = document.querySelectorAll(t);
2923
2918
  else throw Error("Nodes and querySelector are both undefined");
2924
- S.debug(`Found ${i.length} diagrams`), r?.startOnLoad !== void 0 && (S.debug("Start On Load: " + r?.startOnLoad), Q.updateSiteConfig({ startOnLoad: r?.startOnLoad }));
2925
- let a = new h.InitIDGenerator(r.deterministicIds, r.deterministicIDSeed), o, s = [];
2919
+ C.debug(`Found ${i.length} diagrams`), r?.startOnLoad !== void 0 && (C.debug("Start On Load: " + r?.startOnLoad), Q.updateSiteConfig({ startOnLoad: r?.startOnLoad }));
2920
+ let a = new g.InitIDGenerator(r.deterministicIds, r.deterministicIDSeed), o, s = [];
2926
2921
  for (let t of Array.from(i)) {
2927
- if (S.info("Rendering diagram: " + t.id), t.getAttribute("data-processed")) continue;
2922
+ if (C.info("Rendering diagram: " + t.id), t.getAttribute("data-processed")) continue;
2928
2923
  t.setAttribute("data-processed", "true");
2929
2924
  let n = `mermaid-${a.next()}`;
2930
- o = t.innerHTML, o = pe(h.entityDecode(o)).trim().replace(/<br\s*\/?>/gi, "<br/>");
2931
- let r = h.detectInit(o);
2932
- r && S.debug("Detected early reinit: ", r);
2925
+ o = t.innerHTML, o = me(g.entityDecode(o)).trim().replace(/<br\s*\/?>/gi, "<br/>");
2926
+ let r = g.detectInit(o);
2927
+ r && C.debug("Detected early reinit: ", r);
2933
2928
  try {
2934
- let { svg: r, bindFunctions: i } = await uo(n, o, t);
2929
+ let { svg: r, bindFunctions: i } = await fo(n, o, t);
2935
2930
  t.innerHTML = r, e && await e(n), i && i(t);
2936
2931
  } catch (e) {
2937
- Qa(e, s, $.parseError);
2932
+ $a(e, s, $.parseError);
2938
2933
  }
2939
2934
  }
2940
2935
  if (s.length > 0) throw s[0];
2941
- }, "runThrowsErrors"), to = /* @__PURE__ */ T(function(e) {
2936
+ }, "runThrowsErrors"), no = /* @__PURE__ */ E(function(e) {
2942
2937
  Q.initialize(e);
2943
- }, "initialize"), no = /* @__PURE__ */ T(async function(e, t, n) {
2944
- S.warn("mermaid.init is deprecated. Please use run instead."), e && to(e);
2938
+ }, "initialize"), ro = /* @__PURE__ */ E(async function(e, t, n) {
2939
+ C.warn("mermaid.init is deprecated. Please use run instead."), e && no(e);
2945
2940
  let r = {
2946
2941
  postRenderCallback: n,
2947
2942
  querySelector: ".mermaid"
2948
2943
  };
2949
- typeof t == "string" ? r.querySelector = t : t && (r.nodes = t instanceof HTMLElement ? [t] : t), await $a(r);
2950
- }, "init"), ro = /* @__PURE__ */ T(async (e, { lazyLoad: t = !0 } = {}) => {
2951
- sa(), j(...e), t === !1 && await ca();
2952
- }, "registerExternalDiagrams"), io = /* @__PURE__ */ T(function() {
2944
+ typeof t == "string" ? r.querySelector = t : t && (r.nodes = t instanceof HTMLElement ? [t] : t), await eo(r);
2945
+ }, "init"), io = /* @__PURE__ */ E(async (e, { lazyLoad: t = !0 } = {}) => {
2946
+ ca(), j(...e), t === !1 && await la();
2947
+ }, "registerExternalDiagrams"), ao = /* @__PURE__ */ E(function() {
2953
2948
  if ($.startOnLoad) {
2954
2949
  let { startOnLoad: e } = Q.getConfig();
2955
- e && $.run().catch((e) => S.error("Mermaid failed to initialize", e));
2950
+ e && $.run().catch((e) => C.error("Mermaid failed to initialize", e));
2956
2951
  }
2957
2952
  }, "contentLoaded");
2958
- typeof document < "u" && window.addEventListener("load", io, !1);
2959
- var ao = /* @__PURE__ */ T(function(e) {
2953
+ typeof document < "u" && window.addEventListener("load", ao, !1);
2954
+ var oo = /* @__PURE__ */ E(function(e) {
2960
2955
  $.parseError = e;
2961
- }, "setParseErrorHandler"), oo = [], so = !1, co = /* @__PURE__ */ T(async () => {
2962
- if (!so) {
2963
- for (so = !0; oo.length > 0;) {
2964
- let e = oo.shift();
2956
+ }, "setParseErrorHandler"), so = [], co = !1, lo = /* @__PURE__ */ E(async () => {
2957
+ if (!co) {
2958
+ for (co = !0; so.length > 0;) {
2959
+ let e = so.shift();
2965
2960
  if (e) try {
2966
2961
  await e();
2967
2962
  } catch (e) {
2968
- S.error("Error executing queue", e);
2963
+ C.error("Error executing queue", e);
2969
2964
  }
2970
2965
  }
2971
- so = !1;
2966
+ co = !1;
2972
2967
  }
2973
- }, "executeQueue"), lo = /* @__PURE__ */ T(async (e, t) => new Promise((n, r) => {
2974
- let i = /* @__PURE__ */ T(() => new Promise((i, a) => {
2968
+ }, "executeQueue"), uo = /* @__PURE__ */ E(async (e, t) => new Promise((n, r) => {
2969
+ let i = /* @__PURE__ */ E(() => new Promise((i, a) => {
2975
2970
  Q.parse(e, t).then((e) => {
2976
2971
  i(e), n(e);
2977
2972
  }, (e) => {
2978
- S.error("Error parsing", e), $.parseError?.(e), a(e), r(e);
2973
+ C.error("Error parsing", e), $.parseError?.(e), a(e), r(e);
2979
2974
  });
2980
2975
  }), "performCall");
2981
- oo.push(i), co().catch(r);
2982
- }), "parse"), uo = /* @__PURE__ */ T((e, t, n) => new Promise((r, i) => {
2983
- let a = /* @__PURE__ */ T(() => new Promise((a, o) => {
2976
+ so.push(i), lo().catch(r);
2977
+ }), "parse"), fo = /* @__PURE__ */ E((e, t, n) => new Promise((r, i) => {
2978
+ let a = /* @__PURE__ */ E(() => new Promise((a, o) => {
2984
2979
  Q.render(e, t, n).then((e) => {
2985
2980
  a(e), r(e);
2986
2981
  }, (e) => {
2987
- S.error("Error parsing", e), $.parseError?.(e), o(e), i(e);
2982
+ C.error("Error parsing", e), $.parseError?.(e), o(e), i(e);
2988
2983
  });
2989
2984
  }), "performCall");
2990
- oo.push(a), co().catch(i);
2985
+ so.push(a), lo().catch(i);
2991
2986
  }), "render"), $ = {
2992
2987
  startOnLoad: !0,
2993
2988
  mermaidAPI: Q,
2994
- parse: lo,
2995
- render: uo,
2996
- init: no,
2997
- run: $a,
2998
- registerExternalDiagrams: ro,
2999
- registerLayoutLoaders: Gn,
3000
- initialize: to,
2989
+ parse: uo,
2990
+ render: fo,
2991
+ init: ro,
2992
+ run: eo,
2993
+ registerExternalDiagrams: io,
2994
+ registerLayoutLoaders: Kn,
2995
+ initialize: no,
3001
2996
  parseError: void 0,
3002
- contentLoaded: io,
3003
- setParseErrorHandler: ao,
3004
- detectType: oe,
3005
- registerIconPacks: B,
3006
- getRegisteredDiagramsMetadata: /* @__PURE__ */ T(() => Object.keys(ie).map((e) => ({ id: e })), "getRegisteredDiagramsMetadata")
3007
- }, fo = $, po = /* @__PURE__ */ t({ default: () => vo }), mo = /* @__PURE__ */ e(r(), 1), ho = a(), go = {
2997
+ contentLoaded: ao,
2998
+ setParseErrorHandler: oo,
2999
+ detectType: se,
3000
+ registerIconPacks: pe,
3001
+ getRegisteredDiagramsMetadata: /* @__PURE__ */ E(() => Object.keys(ae).map((e) => ({ id: e })), "getRegisteredDiagramsMetadata")
3002
+ }, po = $, mo = /* @__PURE__ */ t({ default: () => So }), ho = /* @__PURE__ */ e(r(), 1), go = a(), _o = {
3008
3003
  startOnLoad: !0,
3009
3004
  theme: "forest",
3010
3005
  logLevel: "fatal",
@@ -3042,43 +3037,61 @@ var ao = /* @__PURE__ */ T(function(e) {
3042
3037
  numberSectionStyles: 4,
3043
3038
  axisFormat: "%Y-%m-%d"
3044
3039
  }
3045
- };
3046
- function _o() {
3047
- return Array.from({ length: 6 }, () => "abcdefghijklmnopqrstuvwxyz"[Math.floor(Math.random() * 26)]).join("");
3048
- }
3049
- var vo = (e) => {
3050
- let t = (0, ke.c)(15), { diagram: r, theme: i, themeVariables: a } = e, [s] = (0, mo.useState)(yo), u = c().theme === "dark", d = i ?? (u ? "dark" : "forest");
3051
- fo.initialize({
3052
- ...go,
3053
- theme: d,
3054
- themeVariables: a,
3055
- darkMode: u
3040
+ }, vo = new u(64), yo = Promise.resolve();
3041
+ function bo(e, t) {
3042
+ let r = JSON.stringify([e, t]), i = vo.get(r);
3043
+ if (i) return i;
3044
+ let a = `mermaid-${xo()}`, o = () => {
3045
+ vo.get(r) === s && vo.delete(r);
3046
+ }, s = yo.then(async () => {
3047
+ try {
3048
+ await document.fonts?.ready, po.initialize(t);
3049
+ let { svg: n, diagramType: r } = await po.render(a, e);
3050
+ return r === "gantt" && o(), {
3051
+ svg: n,
3052
+ renderId: a
3053
+ };
3054
+ } catch (e) {
3055
+ throw o(), n.warn("Failed to render mermaid diagram", e), e;
3056
+ } finally {
3057
+ document.getElementById(a)?.remove(), document.getElementById(`d${a}`)?.remove(), document.getElementById(`i${a}`)?.remove();
3058
+ }
3056
3059
  });
3057
- let f;
3058
- t[0] === r ? f = t[1] : (f = r.trim(), t[0] = r, t[1] = f);
3059
- let p = f, m;
3060
- t[2] !== s || t[3] !== p ? (m = async () => (await fo.render(s, p, void 0).catch((e) => {
3061
- throw document.getElementById(s)?.remove(), n.warn("Failed to render mermaid diagram", e), e;
3062
- })).svg, t[2] = s, t[3] = p, t[4] = m) : m = t[4];
3063
- let h;
3064
- t[5] !== u || t[6] !== s || t[7] !== d || t[8] !== a || t[9] !== p ? (h = [
3065
- p,
3066
- s,
3067
- u,
3068
- d,
3069
- a
3070
- ], t[5] = u, t[6] = s, t[7] = d, t[8] = a, t[9] = p, t[10] = h) : h = t[10];
3071
- let { data: g, error: _ } = l(m, h);
3072
- if (_) {
3060
+ return vo.set(r, s), yo = s.catch(() => void 0), s;
3061
+ }
3062
+ function xo() {
3063
+ return Array.from({ length: 12 }, () => "abcdefghijklmnopqrstuvwxyz"[Math.floor(Math.random() * 26)]).join("");
3064
+ }
3065
+ var So = (e) => {
3066
+ let t = (0, Ae.c)(13), { diagram: n, theme: r, themeVariables: i } = e, [a] = (0, ho.useState)(Co), c = o().theme === "dark", l = r ?? (c ? "dark" : "forest"), u;
3067
+ t[0] === n ? u = t[1] : (u = n.trim(), t[0] = n, t[1] = u);
3068
+ let f = u, p, m;
3069
+ t[2] !== c || t[3] !== a || t[4] !== l || t[5] !== i || t[6] !== f ? (p = async () => {
3070
+ let e = await bo(f, {
3071
+ ..._o,
3072
+ theme: l,
3073
+ themeVariables: i,
3074
+ darkMode: c
3075
+ });
3076
+ return e.svg.replaceAll(e.renderId, a);
3077
+ }, m = [
3078
+ f,
3079
+ a,
3080
+ c,
3081
+ l,
3082
+ i
3083
+ ], t[2] = c, t[3] = a, t[4] = l, t[5] = i, t[6] = f, t[7] = p, t[8] = m) : (p = t[7], m = t[8]);
3084
+ let { data: h, error: g } = d(p, m);
3085
+ if (g) {
3073
3086
  let e;
3074
- return t[11] === _ ? e = t[12] : (e = /* @__PURE__ */ (0, ho.jsx)(o, { error: _ }), t[11] = _, t[12] = e), e;
3087
+ return t[9] === g ? e = t[10] : (e = /* @__PURE__ */ (0, go.jsx)(s, { error: g }), t[9] = g, t[10] = e), e;
3075
3088
  }
3076
- if (!g) return null;
3077
- let v;
3078
- return t[13] === g ? v = t[14] : (v = /* @__PURE__ */ (0, ho.jsx)("div", { dangerouslySetInnerHTML: { __html: g } }), t[13] = g, t[14] = v), v;
3089
+ if (!h) return null;
3090
+ let _;
3091
+ return t[11] === h ? _ = t[12] : (_ = /* @__PURE__ */ (0, go.jsx)("div", { dangerouslySetInnerHTML: { __html: h } }), t[11] = h, t[12] = _), _;
3079
3092
  };
3080
- function yo() {
3081
- return _o();
3093
+ function Co() {
3094
+ return `mermaid-${xo()}`;
3082
3095
  }
3083
3096
  //#endregion
3084
- export { Fn as a, Qe as c, Fe as d, vo as default, Ye as f, Mn as i, Ne as l, qn as n, Ke as o, Ae as p, Kn as r, V as s, po as t, We as u };
3097
+ export { In as a, $e as c, Ie as d, So as default, Xe as f, Nn as i, Pe as l, Jn as n, qe as o, je as p, qn as r, V as s, mo as t, Ge as u };