@kabmo-labs/kabmo 0.60.0 → 0.62.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (506) hide show
  1. package/README.md +53 -49
  2. package/dist/client/index.html +1 -1
  3. package/dist/client/index.js +1157 -825
  4. package/dist/client/static/js/{Body-p82s28sj.js → Body-z6kstvk6.js} +3 -3
  5. package/dist/client/static/js/{CsvGrid-erc5mcvc.js → CsvGrid-f73c0s4e.js} +2 -2
  6. package/dist/client/static/js/{DocxView-x3faj0jv.js → DocxView-a1pb7nsb.js} +3 -3
  7. package/dist/client/static/js/{DrawioView-t7fh3ens.js → DrawioView-r61gcg24.js} +2 -2
  8. package/dist/client/static/js/{HtmlPreview-zy7x7jmm.js → HtmlPreview-vt7j0b05.js} +1 -1
  9. package/dist/client/static/js/ImageView-4nhr5dtm.js +1 -0
  10. package/dist/client/static/js/LayoutWrapper-vwhy0vhj.js +2 -0
  11. package/dist/client/static/js/MergeDiffView-f4h9ss71.js +1 -0
  12. package/dist/client/static/js/Modal-cadmjkak.js +60 -0
  13. package/dist/client/static/js/{PdfView-kqx472q7.js → PdfView-mppt2gkd.js} +1 -1
  14. package/dist/client/static/js/SessionsView-vvsaw9f0.js +1 -0
  15. package/dist/client/static/js/{SheetView-0n9fze50.js → SheetView-5s9zfx9g.js} +9 -9
  16. package/dist/client/static/js/{SvgPreview-6xc6ts46.js → SvgPreview-ff78xn3e.js} +1 -1
  17. package/dist/client/static/js/{abnfDiagram-O67JEVCF-2xdkkqwg.js → abnfDiagram-O67JEVCF-p29sh3w2.js} +1 -1
  18. package/dist/client/static/js/architecture-7GRP2DOG-83w3kytq.js +1 -0
  19. package/dist/client/static/js/{architectureDiagram-NJMV4G6O-ja8cx19z.js → architectureDiagram-NJMV4G6O-nbpdyea3.js} +3 -3
  20. package/dist/client/static/js/{astro-yphdvdty.js → astro-qtfmc8x7.js} +1 -1
  21. package/dist/client/static/js/bash-wcy12qjx.js +1 -0
  22. package/dist/client/static/js/{blockDiagram-BEXU5L5S-ytf7s99c.js → blockDiagram-BEXU5L5S-t8xbexa6.js} +6 -6
  23. package/dist/client/static/js/c-vvantfth.js +1 -0
  24. package/dist/client/static/js/{c4Diagram-YGBWAQC7-5a0kdx0z.js → c4Diagram-YGBWAQC7-9fwf2zxk.js} +3 -3
  25. package/dist/client/static/js/{classDiagram-v2-NBCMYWYE-hd98dvjw.js → classDiagram-v2-NBCMYWYE-nbapgqbs.js} +4 -4
  26. package/dist/client/static/js/{cose-bilkent-JH36ORCC-man3fqcj.js → cose-bilkent-JH36ORCC-k54mmydp.js} +1 -1
  27. package/dist/client/static/js/cpp-5x63r6g0.js +1 -0
  28. package/dist/client/static/js/css-j2j6f03w.js +1 -0
  29. package/dist/client/static/js/css-qk59j6rj.js +1 -0
  30. package/dist/client/static/js/cynefin-OW5HDTMX-80z02zrj.js +1 -0
  31. package/dist/client/static/js/{cynefinDiagram-VND7K2PF-2f0kbbv2.js → cynefinDiagram-VND7K2PF-qdg32wah.js} +1 -1
  32. package/dist/client/static/js/{dagre-6A5THRUB-k7pyhgzn.js → dagre-6A5THRUB-qzshg1vs.js} +2 -2
  33. package/dist/client/static/js/{diagram-22UHCM2B-qx0afa2m.js → diagram-22UHCM2B-197hemfa.js} +11 -11
  34. package/dist/client/static/js/{diagram-3UASUU5V-ydpe77sv.js → diagram-3UASUU5V-236gnjr6.js} +1 -1
  35. package/dist/client/static/js/{diagram-ATOU4E4O-e63v984n.js → diagram-ATOU4E4O-vjgpyaaq.js} +3 -3
  36. package/dist/client/static/js/{diagram-CDSNMT55-8c765h3a.js → diagram-CDSNMT55-ywvzcx7z.js} +4 -4
  37. package/dist/client/static/js/{diagram-MLGK6HIB-3pq0n7v8.js → diagram-MLGK6HIB-9ey7ev7j.js} +1 -1
  38. package/dist/client/static/js/{diagram-MPIPVDR6-638atzxz.js → diagram-MPIPVDR6-vrqbb6r7.js} +2 -2
  39. package/dist/client/static/js/{dockerfile-yehc914q.js → dockerfile-4nked309.js} +1 -1
  40. package/dist/client/static/js/{ebnfDiagram-ZINNZB2B-3gv43zvm.js → ebnfDiagram-ZINNZB2B-hvnkevqy.js} +1 -1
  41. package/dist/client/static/js/{elixir-3nwnd9yw.js → elixir-3jvh6v4k.js} +1 -1
  42. package/dist/client/static/js/{elk-276RUBZZ-6s5pggfc.js → elk-276RUBZZ-nej6yy1c.js} +1 -1
  43. package/dist/client/static/js/{erDiagram-OPXOYQCR-x7cqyb89.js → erDiagram-OPXOYQCR-ww453xcy.js} +5 -5
  44. package/dist/client/static/js/{erlang-p5c4n3t0.js → erlang-4fz73a1q.js} +1 -1
  45. package/dist/client/static/js/eventmodeling-NTZA5JFV-y9pq2709.js +1 -0
  46. package/dist/client/static/js/flowDiagram-KWPJA3E3-e6v7513q.js +1 -0
  47. package/dist/client/static/js/{ganttDiagram-FUAMR5RP-g97te4v1.js → ganttDiagram-FUAMR5RP-abc5wy70.js} +3 -3
  48. package/dist/client/static/js/gitGraph-4MIJSDKK-fzaf9azs.js +1 -0
  49. package/dist/client/static/js/{gitGraphDiagram-X574FWY7-sw4f94tc.js → gitGraphDiagram-X574FWY7-4acqzj2h.js} +7 -7
  50. package/dist/client/static/js/graphql-hpkvdvk7.js +1 -0
  51. package/dist/client/static/js/html-x12gb1wk.js +1 -0
  52. package/dist/client/static/js/{index-v88m5sva.js → index-0g82ph6h.js} +2 -2
  53. package/dist/client/static/js/{index-vejz38qt.js → index-0w1jzang.js} +5 -5
  54. package/dist/client/static/js/{index-bpcg34jp.js → index-1svt0cdw.js} +2 -2
  55. package/dist/client/static/js/{index-hgfyx8dt.js → index-1tb4py5v.js} +2 -2
  56. package/dist/client/static/js/index-2gt9krtj.js +4 -0
  57. package/dist/client/static/js/index-2x9m7s1a.js +1 -0
  58. package/dist/client/static/js/index-3fvqmz3m.js +4 -0
  59. package/dist/client/static/js/{index-pdz6j2g2.js → index-42wvbkm5.js} +2 -2
  60. package/dist/client/static/js/index-477vtt51.js +2 -0
  61. package/dist/client/static/js/{index-ca6tmamh.js → index-4px56qaz.js} +2 -2
  62. package/dist/client/static/js/{index-excgtjhx.js → index-5anvw7xg.js} +36 -36
  63. package/dist/client/static/js/index-5nb9k2ph.js +1 -0
  64. package/dist/client/static/js/{index-97sw4d9n.js → index-615je3km.js} +2 -2
  65. package/dist/client/static/js/{index-111bq6rs.js → index-66qxrh5n.js} +1 -1
  66. package/dist/client/static/js/{index-a145x0w2.js → index-7kct1sz1.js} +2 -2
  67. package/dist/client/static/js/{index-hwv7bfxc.js → index-8e0d8y30.js} +2 -2
  68. package/dist/client/static/js/{index-s4j2ghmx.js → index-90bq56xw.js} +2 -2
  69. package/dist/client/static/js/{index-wsy6y5em.js → index-b1gzh60t.js} +11 -11
  70. package/dist/client/static/js/{index-10vzyga1.js → index-bypkmjrz.js} +2 -2
  71. package/dist/client/static/js/{index-n8r7r86r.js → index-c1vd63yd.js} +2 -2
  72. package/dist/client/static/js/index-c9f0hejv.js +3 -0
  73. package/dist/client/static/js/{index-2dmew334.js → index-cgqj15g0.js} +2 -2
  74. package/dist/client/static/js/{index-mtav0rpf.js → index-cts5re1t.js} +2 -2
  75. package/dist/client/static/js/index-dxc14kmm.js +1 -0
  76. package/dist/client/static/js/{index-hwdkxe4n.js → index-dxyjxhm1.js} +2 -2
  77. package/dist/client/static/js/{index-43gmn7yb.js → index-edpyqz9f.js} +1 -1
  78. package/dist/client/static/js/{index-pdgc9ccr.js → index-eesepb70.js} +2 -2
  79. package/dist/client/static/js/{index-vec7m1yd.js → index-evh437bz.js} +2 -2
  80. package/dist/client/static/js/index-ey6v4t5b.js +1 -0
  81. package/dist/client/static/js/{index-025s3fp8.js → index-fsd7n336.js} +2 -2
  82. package/dist/client/static/js/{index-yfcy4cf6.js → index-h7a7fqag.js} +2 -2
  83. package/dist/client/static/js/{index-11qn05g9.js → index-hffgwnvz.js} +2 -2
  84. package/dist/client/static/js/index-j734ev6q.js +482 -0
  85. package/dist/client/static/js/{index-vcq6zfxx.js → index-jcbp1d9d.js} +6 -6
  86. package/dist/client/static/js/index-jg5h18sm.js +2 -0
  87. package/dist/client/static/js/{index-6qn9kygb.js → index-jtdve6xw.js} +7 -7
  88. package/dist/client/static/js/{index-4xbc0j7t.js → index-k0bqrb1y.js} +1 -1
  89. package/dist/client/static/js/{index-bdtftrym.js → index-kegevd10.js} +2 -2
  90. package/dist/client/static/js/{index-fr6wsqk8.js → index-kqcfxkch.js} +2 -2
  91. package/dist/client/static/js/{index-2n2evsg0.js → index-kv1xnem9.js} +2 -2
  92. package/dist/client/static/js/{index-8zct30zd.js → index-m54ctmxr.js} +1 -1
  93. package/dist/client/static/js/index-mgzbypt5.js +314 -0
  94. package/dist/client/static/js/{index-cf69bhjx.js → index-mh52531j.js} +2 -2
  95. package/dist/client/static/js/{index-0ze5bwvw.js → index-mhz5ywa4.js} +5 -5
  96. package/dist/client/static/js/{index-3j2he86h.js → index-nnwdbg3t.js} +2 -2
  97. package/dist/client/static/js/{index-9rz6kzsv.js → index-nxd6z7f9.js} +2 -2
  98. package/dist/client/static/js/{index-jfqd838j.js → index-pjrbt77c.js} +2 -2
  99. package/dist/client/static/js/index-r7h4pm42.js +2 -0
  100. package/dist/client/static/js/index-ratrdgc9.js +2 -0
  101. package/dist/client/static/js/{index-cfvc1zpk.js → index-rhmvh9w5.js} +2 -2
  102. package/dist/client/static/js/{index-twwsn91p.js → index-sqzjwy9h.js} +2 -2
  103. package/dist/client/static/js/{index-37apvxgj.js → index-tckzkw0f.js} +2 -2
  104. package/dist/client/static/js/index-tza9h3q6.css +1 -0
  105. package/dist/client/static/js/{index-qccydkze.js → index-vhjfr093.js} +2 -2
  106. package/dist/client/static/js/{index-z8k42dwz.js → index-w0j96eyy.js} +8 -8
  107. package/dist/client/static/js/{index-qkqkygrf.js → index-ws04kxy9.js} +1 -1
  108. package/dist/client/static/js/{index-a3bpmw2r.js → index-x1yqmzpr.js} +2 -2
  109. package/dist/client/static/js/{index-fb2fjndj.js → index-x2f7wykb.js} +6 -6
  110. package/dist/client/static/js/index-y8405hdg.js +10 -0
  111. package/dist/client/static/js/{index-sx83ans2.js → index-yxk7dgnb.js} +2 -2
  112. package/dist/client/static/js/{index-bkn6jtn1.js → index-zavecxak.js} +2 -2
  113. package/dist/client/static/js/{index-dv01prse.js → index-zg7q3kcb.js} +2 -2
  114. package/dist/client/static/js/{index-enm77k5z.js → index-zhn9vv3z.js} +2 -2
  115. package/dist/client/static/js/{index-ywp0sd1e.js → index-zy963qbh.js} +1 -1
  116. package/dist/client/static/js/info-A6RAGUB7-t7pbg7rt.js +1 -0
  117. package/dist/client/static/js/{infoDiagram-VRGFBTTK-pw2qaa27.js → infoDiagram-VRGFBTTK-9pe7w3r5.js} +2 -2
  118. package/dist/client/static/js/ini-522adp5a.js +1 -0
  119. package/dist/client/static/js/{ishikawaDiagram-OU5B5YK6-d13jhvxy.js → ishikawaDiagram-OU5B5YK6-38arfrx5.js} +2 -2
  120. package/dist/client/static/js/java-z0rgs7v6.js +1 -0
  121. package/dist/client/static/js/javascript-fv87f565.js +1 -0
  122. package/dist/client/static/js/{journeyDiagram-ZHPQQLJL-20gb8a04.js → journeyDiagram-ZHPQQLJL-kcwzjgtz.js} +4 -4
  123. package/dist/client/static/js/json-1czq1ped.js +1 -0
  124. package/dist/client/static/js/jsx-1fch2jyr.js +1 -0
  125. package/dist/client/static/js/{julia-rpd1y9vh.js → julia-pzzxbptm.js} +1 -1
  126. package/dist/client/static/js/{kanban-definition-PNTS6WVX-s78e158c.js → kanban-definition-PNTS6WVX-nmegwy9w.js} +15 -15
  127. package/dist/client/static/js/lua-nn8bpjev.js +1 -0
  128. package/dist/client/static/js/markdown-38tqrgkn.js +1 -0
  129. package/dist/client/static/js/{mermaid.core-xbm27k28.js → mermaid.core-3aae27b9.js} +7 -7
  130. package/dist/client/static/js/{mindmap-definition-NLK3R4M7-6y7xe2zm.js → mindmap-definition-NLK3R4M7-zsaq4e65.js} +12 -12
  131. package/dist/client/static/js/one-dark-pro-trnff03z.js +1 -0
  132. package/dist/client/static/js/one-light-ck31ptqs.js +1 -0
  133. package/dist/client/static/js/packet-AYTQ26CC-rwac7scq.js +1 -0
  134. package/dist/client/static/js/{pegDiagram-GJSIUBJH-dmvewetf.js → pegDiagram-GJSIUBJH-2b6whj1p.js} +1 -1
  135. package/dist/client/static/js/{perl-kmtz9dnv.js → perl-zdkbbjd2.js} +1 -1
  136. package/dist/client/static/js/{php-bttrsbxy.js → php-ktaxff6g.js} +1 -1
  137. package/dist/client/static/js/pie-WAS4IAKB-gjz20apz.js +1 -0
  138. package/dist/client/static/js/{pieDiagram-5QR66LMP-1q9e7rcm.js → pieDiagram-5QR66LMP-y09ar7vz.js} +3 -3
  139. package/dist/client/static/js/properties-kncqeqhn.js +1 -0
  140. package/dist/client/static/js/python-gx8ggmyh.js +1 -0
  141. package/dist/client/static/js/{quadrantDiagram-O4NWA36T-mvrem3n6.js → quadrantDiagram-O4NWA36T-mapfzs06.js} +3 -3
  142. package/dist/client/static/js/r-x8rftkm3.js +1 -0
  143. package/dist/client/static/js/radar-RG4KPBEZ-akwdknab.js +1 -0
  144. package/dist/client/static/js/railroad-74A4TZTK-m5v4rfhx.js +1 -0
  145. package/dist/client/static/js/railroad-abnf-HS5TGJTU-k2gmqcjb.js +1 -0
  146. package/dist/client/static/js/railroad-ebnf-LZEXJU2U-1zdsfjf4.js +1 -0
  147. package/dist/client/static/js/railroad-peg-WCYAUIDC-e98evqb6.js +1 -0
  148. package/dist/client/static/js/{railroadDiagram-XR7U4H2S-axttcfhw.js → railroadDiagram-XR7U4H2S-70qy7qdh.js} +1 -1
  149. package/dist/client/static/js/{requirementDiagram-PLB6GJNP-5qx7erta.js → requirementDiagram-PLB6GJNP-2vb2gp3e.js} +3 -3
  150. package/dist/client/static/js/{ruby-dve3y59w.js → ruby-ytqv3pqz.js} +1 -1
  151. package/dist/client/static/js/{rust-b3ckax3e.js → rust-6sddyxnt.js} +1 -1
  152. package/dist/client/static/js/{sankeyDiagram-IPEJSGJF-es87a3j6.js → sankeyDiagram-IPEJSGJF-9jd8ebrn.js} +3 -3
  153. package/dist/client/static/js/{sass-emxqt5p2.js → sass-dvbra5b6.js} +1 -1
  154. package/dist/client/static/js/{scss-4j4t3r6y.js → scss-sy7w8916.js} +1 -1
  155. package/dist/client/static/js/{sequenceDiagram-PO4LG4MO-dgpnjrtk.js → sequenceDiagram-PO4LG4MO-w7z84f80.js} +7 -7
  156. package/dist/client/static/js/{sizeCapture-INFHLROL-kyw0p86n.js → sizeCapture-INFHLROL-q8w7ehgx.js} +1 -1
  157. package/dist/client/static/js/sql-99y0qnag.js +1 -0
  158. package/dist/client/static/js/{stateDiagram-v2-GCMORJYK-vnsbw8y9.js → stateDiagram-v2-GCMORJYK-4978hapr.js} +3 -3
  159. package/dist/client/static/js/{svelte-dbsx1ehx.js → svelte-xvs3fkza.js} +1 -1
  160. package/dist/client/static/js/{swimlanes-2SLR337P-060q1rep.js → swimlanes-2SLR337P-eshg5fjy.js} +1 -1
  161. package/dist/client/static/js/swimlanesDiagram-TC7HE7FX-914e28hd.js +8 -0
  162. package/dist/client/static/js/timeline-definition-EJHVYXUP-5h5q357k.js +120 -0
  163. package/dist/client/static/js/treeView-Q6P3EWNA-fkm3a7gx.js +1 -0
  164. package/dist/client/static/js/treemap-WGGIJYW6-hm4ktxjf.js +1 -0
  165. package/dist/client/static/js/tsx-phngprp0.js +1 -0
  166. package/dist/client/static/js/typescript-m62a7zr2.js +1 -0
  167. package/dist/client/static/js/{usecaseDiagram-POWQR4AR-18sp73v7.js → usecaseDiagram-POWQR4AR-4j69y3zx.js} +20 -20
  168. package/dist/client/static/js/vennDiagram-UO4OBE2U-pa9p5jpw.js +34 -0
  169. package/dist/client/static/js/{vue-hyr58df9.js → vue-p4g4avm3.js} +1 -1
  170. package/dist/client/static/js/wardley-WFR3VGLG-3y2rvdmy.js +1 -0
  171. package/dist/client/static/js/{wardleyDiagram-VNRHLVJA-q0kwmbzh.js → wardleyDiagram-VNRHLVJA-hjddd656.js} +3 -3
  172. package/dist/client/static/js/xml-59n0cjn6.js +1 -0
  173. package/dist/client/static/js/{xychartDiagram-PMCCYNJV-y0gpmg6m.js → xychartDiagram-PMCCYNJV-8ng5m849.js} +4 -4
  174. package/dist/client/static/js/yaml-9fw908s4.js +1 -0
  175. package/dist/client/tailwindcss-oxide.linux-x64-gnu-c0fa36dv.node +0 -0
  176. package/dist/client/tailwindcss-oxide.linux-x64-musl-kr04sh0e.node +0 -0
  177. package/marketplace/plugins/command-runner/package.json +2 -2
  178. package/marketplace/plugins/command-runner/src/app.tsx +2 -5
  179. package/marketplace/plugins/command-runner/src/panel/CustomForm.tsx +35 -52
  180. package/marketplace/plugins/command-runner/src/panel/Groups.tsx +6 -5
  181. package/marketplace/plugins/command-runner/src/panel/Header.tsx +18 -54
  182. package/marketplace/plugins/command-runner/src/panel/Output.tsx +3 -7
  183. package/marketplace/plugins/command-runner/src/panel/Row.tsx +19 -38
  184. package/marketplace/plugins/command-runner/src/panel/index.tsx +1 -4
  185. package/marketplace/plugins/git-forge/package.json +2 -2
  186. package/marketplace/plugins/git-forge/src/app.tsx +2 -0
  187. package/marketplace/plugins/git-forge/src/panel/Credential.tsx +8 -15
  188. package/marketplace/plugins/git-forge/src/panel/Header.tsx +35 -66
  189. package/marketplace/plugins/git-forge/src/panel/ItemView.tsx +7 -13
  190. package/marketplace/plugins/git-forge/src/panel/List.tsx +28 -56
  191. package/marketplace/plugins/git-forge/src/panel/Row.tsx +7 -9
  192. package/marketplace/plugins/git-forge/src/panel/Sidebar.tsx +21 -31
  193. package/marketplace/plugins/git-forge/src/panel/Write.tsx +26 -40
  194. package/marketplace/plugins/git-forge/src/panel/index.tsx +0 -1
  195. package/marketplace/plugins/github-actions/package.json +2 -2
  196. package/marketplace/plugins/github-actions/src/app.tsx +2 -0
  197. package/marketplace/plugins/github-actions/src/panel/Actions.tsx +9 -17
  198. package/marketplace/plugins/github-actions/src/panel/LogView.tsx +4 -13
  199. package/marketplace/plugins/github-actions/src/panel/Row.tsx +4 -5
  200. package/marketplace/plugins/github-actions/src/panel/RunView.tsx +8 -15
  201. package/marketplace/plugins/github-actions/src/panel/index.test.tsx +3 -2
  202. package/marketplace/plugins/github-actions/src/panel/index.tsx +31 -37
  203. package/marketplace/plugins/kanban/package.json +2 -2
  204. package/marketplace/plugins/kanban/src/app.tsx +2 -0
  205. package/marketplace/plugins/kanban/src/panel/CardSheet.tsx +88 -98
  206. package/marketplace/plugins/kanban/src/panel/CardTile.tsx +6 -10
  207. package/marketplace/plugins/kanban/src/panel/StageColumn.tsx +22 -18
  208. package/marketplace/plugins/kanban/src/panel/StageSheet.tsx +59 -70
  209. package/marketplace/plugins/kanban/src/panel/index.tsx +37 -52
  210. package/marketplace/plugins/kanban/src/panel/use-board.ts +2 -0
  211. package/marketplace/plugins/session-info/package.json +2 -2
  212. package/marketplace/plugins/session-info/src/app.tsx +6 -3
  213. package/marketplace/plugins/stats/package.json +2 -2
  214. package/marketplace/plugins/stats/src/KillConfirm.test.tsx +6 -4
  215. package/marketplace/plugins/stats/src/KillConfirm.tsx +26 -76
  216. package/marketplace/plugins/stats/src/ProcessTable.tsx +8 -6
  217. package/marketplace/plugins/stats/src/RefreshButton.tsx +7 -5
  218. package/marketplace/plugins/stats/src/app.tsx +11 -9
  219. package/package.json +10 -10
  220. package/src/cli/lib/commands/plugin.js +8 -5
  221. package/src/client/bootstrap.d.ts +5 -0
  222. package/src/client/chat-title-overlay.test.ts +53 -0
  223. package/src/client/components/auth/login-screen/index.tsx +31 -3
  224. package/src/client/components/common/SignOutButton.tsx +4 -5
  225. package/src/client/components/common/account-badge/index.tsx +31 -0
  226. package/src/client/components/common/footer-version/index.tsx +40 -0
  227. package/src/client/components/common/fullscreen-viewer/fullscreen-viewer.test.tsx +24 -0
  228. package/src/client/components/common/fullscreen-viewer/index.tsx +22 -31
  229. package/src/client/components/common/header-controls/MoreMenu.tsx +5 -56
  230. package/src/client/components/common/header-controls/index.test.tsx +2 -6
  231. package/src/client/components/common/header-controls/index.tsx +9 -25
  232. package/src/client/components/common/header-controls/phone-row.test.tsx +3 -16
  233. package/src/client/components/common/shell-update-button/index.tsx +2 -2
  234. package/src/client/components/common/zoom-pan-stage/index.tsx +54 -50
  235. package/src/client/components/layout/desktop-layout/WorkspacePanels.tsx +4 -5
  236. package/src/client/components/layout/desktop-layout/index.tsx +2 -4
  237. package/src/client/components/layout/left-bar/index.tsx +25 -3
  238. package/src/client/components/layout/rail-toggle.test.tsx +112 -0
  239. package/src/client/components/layout/session-sidebar/CategoryHeader.accent.test.tsx +81 -0
  240. package/src/client/components/layout/session-sidebar/CategoryHeader.tsx +11 -3
  241. package/src/client/components/layout/session-sidebar/Footer.test.tsx +36 -0
  242. package/src/client/components/layout/session-sidebar/Footer.tsx +42 -61
  243. package/src/client/components/layout/session-sidebar/FooterHost.tsx +5 -1
  244. package/src/client/components/layout/session-sidebar/modern/WorkspaceHeader.tsx +30 -10
  245. package/src/client/components/layout/session-sidebar/modern/WorkspaceSection.tsx +4 -0
  246. package/src/client/components/layout/session-sidebar/modern/index.tsx +8 -1
  247. package/src/client/components/layout/session-sidebar/modern/workspace-header.test.tsx +25 -4
  248. package/src/client/components/layout/session-title-bar/index.tsx +13 -5
  249. package/src/client/components/layout/top-bars.test.tsx +4 -2
  250. package/src/client/components/mobile/LayoutWrapper.tsx +3 -1
  251. package/src/client/components/mobile/RightSidebar.tsx +12 -3
  252. package/src/client/components/mobile/SessionSidebar.tsx +6 -2
  253. package/src/client/components/mobile/drawer-layout.test.tsx +7 -3
  254. package/src/client/components/mobile/drawer-strip.tsx +9 -2
  255. package/src/client/components/mobile/mobile-main-view/Header.test.tsx +29 -9
  256. package/src/client/components/mobile/mobile-main-view/Header.tsx +43 -12
  257. package/src/client/components/mobile/mobile-right-sidebar/Chrome.tsx +12 -1
  258. package/src/client/components/mobile/mobile-right-sidebar/FullDiff.tsx +9 -2
  259. package/src/client/components/mobile/mobile-right-sidebar/FullEditor.tsx +1 -0
  260. package/src/client/components/mobile/mobile-right-sidebar/Header.tsx +9 -1
  261. package/src/client/components/mobile/mobile-right-sidebar/StatusBar.tsx +4 -2
  262. package/src/client/components/mobile/mobile-session-sidebar/Body.tsx +1 -1
  263. package/src/client/components/mobile/mobile-session-sidebar/Footer.tsx +48 -46
  264. package/src/client/components/mobile/mobile-session-sidebar/Header.tsx +18 -1
  265. package/src/client/components/mobile/mobile-session-sidebar/Item.test.tsx +4 -0
  266. package/src/client/components/mobile/mobile-session-sidebar/Item.tsx +4 -6
  267. package/src/client/components/mobile/right-drawer-nav.test.tsx +53 -1
  268. package/src/client/components/settings/Band.tsx +5 -2
  269. package/src/client/components/settings/Modal.tsx +8 -5
  270. package/src/client/components/settings/Sidebar.tsx +5 -3
  271. package/src/client/components/settings/apply-side-effects.ts +5 -0
  272. package/src/client/components/settings/categories/AccountSettings.tsx +266 -0
  273. package/src/client/components/settings/categories/ProjectSettings.tsx +2 -0
  274. package/src/client/components/settings/categories/account-settings/Dialogs.tsx +223 -0
  275. package/src/client/components/settings/categories/appearance-settings/BorderStyleSection.test.tsx +3 -4
  276. package/src/client/components/settings/categories/appearance-settings/ChromeStyleSection.tsx +66 -39
  277. package/src/client/components/settings/categories/connect-settings/DeviceTable.tsx +7 -4
  278. package/src/client/components/settings/categories/project-settings/DetailsForm.tsx +14 -1
  279. package/src/client/components/settings/categories/project-settings/ProjectSharing.tsx +130 -0
  280. package/src/client/components/settings/categories/project-settings/SidebarList.tsx +5 -0
  281. package/src/client/components/settings/category-content.tsx +3 -0
  282. package/src/client/components/workspace/chat-timeline/AiMessageFooterSheet.tsx +3 -1
  283. package/src/client/components/workspace/chat-timeline/ComposerDockFrame.tsx +2 -1
  284. package/src/client/components/workspace/chat-timeline/EmptyWorkspacePrompt.tsx +3 -1
  285. package/src/client/components/workspace/chat-timeline/SessionSkeleton.tsx +1 -1
  286. package/src/client/components/workspace/chat-timeline/TimelineBody.tsx +1 -0
  287. package/src/client/components/workspace/chat-timeline/chat-input/ComposerRows.tsx +9 -2
  288. package/src/client/components/workspace/chat-timeline/chat-input/expansion.test.ts +1 -1
  289. package/src/client/components/workspace/chat-timeline/chat-input/expansion.ts +2 -1
  290. package/src/client/components/workspace/chat-timeline/chat-input/narrow.test.tsx +34 -0
  291. package/src/client/components/workspace/chat-timeline/composer-dock-frame.test.tsx +9 -0
  292. package/src/client/components/workspace/chat-timeline/tool-renderers/styles/styles.test.tsx +4 -1
  293. package/src/client/components/workspace/editor/Tab.tsx +19 -26
  294. package/src/client/components/workspace/editor/Tabs.test.ts +13 -7
  295. package/src/client/components/workspace/git-panel/commit-modal/Header.tsx +1 -0
  296. package/src/client/components/workspace/git-panel/commit-modal/floating.test.ts +46 -0
  297. package/src/client/components/workspace/git-panel/commit-modal/index.tsx +2 -0
  298. package/src/client/components/workspace/model-dropdown/Fullscreen.tsx +4 -5
  299. package/src/client/components/workspace/panel-tabs/TabChip.tsx +40 -37
  300. package/src/client/components/workspace/panel-tabs/TabStrip.connected.test.tsx +76 -49
  301. package/src/client/components/workspace/panel-tabs/TabStrip.test.tsx +9 -9
  302. package/src/client/components/workspace/panel-tabs/TabStrip.tsx +14 -1
  303. package/src/client/components/workspace/panel-tabs/index.tsx +1 -1
  304. package/src/client/components/workspace/plugin-panel/catalog.tsx +22 -5
  305. package/src/client/components/workspace/plugin-panel/chrome.test.tsx +89 -0
  306. package/src/client/components/workspace/plugin-panel/chrome.tsx +62 -0
  307. package/src/client/data/settings/omp-schema.json +40 -4
  308. package/src/client/floating-phone.test.ts +189 -0
  309. package/src/client/floating.css +205 -2
  310. package/src/client/floating.test.ts +43 -0
  311. package/src/client/glass.css +47 -0
  312. package/src/client/hooks/chat/omp/index.ts +6 -5
  313. package/src/client/hooks/chat/omp/prompt-send.test.ts +18 -0
  314. package/src/client/hooks/chat/omp/prompt-send.ts +26 -8
  315. package/src/client/hooks/chat/omp/session-list.tsx +20 -8
  316. package/src/client/hooks/chat/timeline/deferred-model.ts +13 -5
  317. package/src/client/hooks/chat/timeline/index.ts +2 -0
  318. package/src/client/hooks/chat/timeline/send-props.ts +14 -0
  319. package/src/client/hooks/chat/timeline/send-steer.test.ts +11 -2
  320. package/src/client/hooks/chat/timeline/send-switch.test.ts +92 -0
  321. package/src/client/hooks/chat/timeline/send.test-util.ts +37 -7
  322. package/src/client/hooks/chat/timeline/send.test.ts +11 -2
  323. package/src/client/hooks/chat/timeline/send.ts +62 -42
  324. package/src/client/hooks/editor/image-generation.ts +24 -0
  325. package/src/client/hooks/editor/resolve-viewer.test.ts +26 -20
  326. package/src/client/hooks/editor/resolve-viewer.ts +14 -5
  327. package/src/client/hooks/editor/use-file-editor.test.ts +34 -0
  328. package/src/client/hooks/editor/use-file-editor.ts +6 -2
  329. package/src/client/hooks/settings/accounts.ts +162 -0
  330. package/src/client/hooks/ui/auth.ts +58 -3
  331. package/src/client/hooks/ui/border-style.test.ts +5 -4
  332. package/src/client/hooks/ui/border-style.ts +3 -2
  333. package/src/client/hooks/ui/mobile-chrome-style.ts +68 -0
  334. package/src/client/hooks/ui/navbar-controls.test.ts +1 -2
  335. package/src/client/hooks/ui/navbar-controls.ts +0 -3
  336. package/src/client/hooks/ui/zoom-gesture.ts +104 -0
  337. package/src/client/lib/desktop/titlebar.test.ts +21 -0
  338. package/src/client/lib/desktop/titlebar.ts +34 -0
  339. package/src/client/lib/plugins/bootstrap.test.ts +20 -0
  340. package/src/client/lib/plugins/bootstrap.tsx +10 -15
  341. package/src/client/lib/plugins/kit-components.test.tsx +119 -0
  342. package/src/client/lib/plugins/kit-components.tsx +79 -0
  343. package/src/client/lib/plugins/kit.ts +8 -0
  344. package/src/client/lib/plugins/slots.test.ts +34 -0
  345. package/src/client/lib/plugins/slots.ts +31 -4
  346. package/src/client/lib/plugins/stylesheets.ts +10 -11
  347. package/src/client/lib/ui/pinch.test.ts +74 -0
  348. package/src/client/lib/ui/pinch.ts +104 -0
  349. package/src/client/lib/ui/safe-area.test.ts +25 -0
  350. package/src/client/lib/ui/safe-area.ts +23 -0
  351. package/src/client/main.tsx +8 -1
  352. package/src/client/tailwind.css +54 -1
  353. package/src/server/index.ts +2 -0
  354. package/src/server/lib/assets/shell-attributes.server.ts +12 -4
  355. package/src/server/lib/assets/shell-attributes.test.ts +19 -18
  356. package/src/server/lib/auth/client-address.test.ts +2 -2
  357. package/src/server/lib/auth/guard.test.ts +2 -2
  358. package/src/server/lib/auth/guard.ts +81 -97
  359. package/src/server/lib/auth/handover-guard.test.ts +1 -1
  360. package/src/server/lib/auth/rate-limit.test.ts +2 -2
  361. package/src/server/lib/auth/token.test.ts +1 -1
  362. package/src/server/lib/auth/workspace-gate.server.ts +34 -0
  363. package/src/server/lib/bundler/css.test.ts +16 -0
  364. package/src/server/lib/connect/devices.server.test.ts +12 -0
  365. package/src/server/lib/connect/devices.server.ts +63 -19
  366. package/src/server/lib/connect/pairing.server.ts +5 -3
  367. package/src/server/lib/connect/status.server.ts +2 -2
  368. package/src/server/lib/db/schema.test.ts +3 -3
  369. package/src/server/lib/db/schema.ts +6 -0
  370. package/src/server/lib/harness/update-spawn.server.test.ts +97 -0
  371. package/src/server/lib/harness/update-spawn.server.ts +10 -0
  372. package/src/server/lib/models/provider-icon-override.server.test.ts +140 -0
  373. package/src/server/lib/models/provider-icon-override.server.ts +197 -0
  374. package/src/server/lib/models/provider-icon-store.server.ts +8 -0
  375. package/src/server/lib/models/provider-icon.server.ts +31 -6
  376. package/src/server/lib/omp/session/artifacts.server.test.ts +11 -7
  377. package/src/server/lib/omp/session/artifacts.server.ts +21 -17
  378. package/src/server/lib/panels/build.server.ts +19 -2
  379. package/src/server/lib/panels/css.server.test.ts +141 -0
  380. package/src/server/lib/panels/css.server.ts +255 -0
  381. package/src/server/lib/panels/plugin-ui-contract.test.ts +64 -0
  382. package/src/server/lib/panels/registry-stylesheet.server.test.ts +69 -0
  383. package/src/server/lib/panels/scan.server.ts +13 -7
  384. package/src/server/lib/panels/source-warnings.server.test.ts +65 -0
  385. package/src/server/lib/panels/source-warnings.server.ts +71 -0
  386. package/src/server/lib/realtime/topics/catalog.server.ts +3 -0
  387. package/src/server/lib/realtime/topics.server.ts +14 -0
  388. package/src/server/lib/sessions/last-opened-client.server.ts +1 -1
  389. package/src/server/lib/workspace/access.server.ts +108 -0
  390. package/src/server/lib/workspace/project-patch.server.ts +4 -2
  391. package/src/server/lib/workspace/register-folder.server.ts +19 -5
  392. package/src/server/lib/workspace/session-access.server.ts +55 -0
  393. package/src/server/lib/workspace/tenancy-schema.server.ts +40 -0
  394. package/src/server/plugins/ssr.ts +19 -3
  395. package/src/server/routes/accounts/index.ts +8 -0
  396. package/src/server/routes/accounts/management.test.ts +174 -0
  397. package/src/server/routes/accounts/management.ts +166 -0
  398. package/src/server/routes/auth/login.ts +22 -8
  399. package/src/server/routes/auth/logout.ts +1 -1
  400. package/src/server/routes/auth/password.ts +40 -33
  401. package/src/server/routes/auth/revoke.test.ts +1 -1
  402. package/src/server/routes/auth/revoke.ts +26 -8
  403. package/src/server/routes/auth/routes.test.ts +3 -3
  404. package/src/server/routes/auth/state.ts +14 -7
  405. package/src/server/routes/connect/devices.ts +7 -4
  406. package/src/server/routes/connect/pair.ts +4 -3
  407. package/src/server/routes/connect/status.ts +4 -2
  408. package/src/server/routes/connect/tunnels.ts +2 -1
  409. package/src/server/routes/folders/batch-delete.ts +12 -0
  410. package/src/server/routes/folders/clone.ts +7 -2
  411. package/src/server/routes/folders/create.ts +3 -1
  412. package/src/server/routes/folders/folder.ts +44 -4
  413. package/src/server/routes/folders/index.ts +3 -0
  414. package/src/server/routes/folders/shares.ts +62 -0
  415. package/src/server/routes/index.ts +2 -0
  416. package/src/server/routes/panels/build.ts +1 -1
  417. package/src/server/routes/panels/css.test.ts +22 -0
  418. package/src/server/routes/panels/css.ts +5 -7
  419. package/src/server/routes/realtime/ws.ts +16 -1
  420. package/src/server/routes/sessions/list.ts +3 -2
  421. package/src/server/routes/settings/projects.ts +46 -7
  422. package/src/server/routes/settings/provider-icon.ts +18 -0
  423. package/src/shared/lib/chat/timeline/tool-render-mode.test.ts +2 -2
  424. package/src/shared/lib/chat/timeline/tool-render-mode.ts +6 -3
  425. package/src/shared/lib/icons/tint-hues.generated.ts +38 -37
  426. package/src/shared/lib/omp/config/schema-releases-19-4.test.ts +27 -1
  427. package/src/shared/lib/omp/session/prewarm-misc.test.ts +1 -1
  428. package/src/shared/lib/realtime/protocol.ts +16 -0
  429. package/src/shared/lib/settings/defaults.ts +2 -1
  430. package/src/shared/lib/settings/sections.ts +1 -1
  431. package/src/shared/lib/theme/border-style.test.ts +11 -9
  432. package/src/shared/lib/theme/border-style.ts +7 -7
  433. package/src/shared/lib/theme/chrome-style.test.ts +15 -0
  434. package/src/shared/lib/theme/chrome-style.ts +16 -1
  435. package/src/shared/types/index.ts +1 -0
  436. package/src/shared/types/settings/state.ts +6 -5
  437. package/src/test-support/file-editor.test-util.ts +25 -6
  438. package/tsconfig.json +21 -0
  439. package/dist/client/static/js/ImageView-xc90jc1c.js +0 -1
  440. package/dist/client/static/js/LayoutWrapper-wyqe98kf.js +0 -2
  441. package/dist/client/static/js/MergeDiffView-bng34cpr.js +0 -1
  442. package/dist/client/static/js/Modal-89jk7wff.js +0 -60
  443. package/dist/client/static/js/SessionsView-6bpz1faj.js +0 -1
  444. package/dist/client/static/js/architecture-7GRP2DOG-sxrkxwbq.js +0 -1
  445. package/dist/client/static/js/bash-bcbct9gc.js +0 -1
  446. package/dist/client/static/js/c-fn9jz26e.js +0 -1
  447. package/dist/client/static/js/cpp-a1q64mke.js +0 -1
  448. package/dist/client/static/js/css-b92azee8.js +0 -1
  449. package/dist/client/static/js/css-sn00sq6v.js +0 -1
  450. package/dist/client/static/js/cynefin-OW5HDTMX-g1xwa8b9.js +0 -1
  451. package/dist/client/static/js/eventmodeling-NTZA5JFV-05p61bka.js +0 -1
  452. package/dist/client/static/js/flowDiagram-KWPJA3E3-7sn6nwjv.js +0 -1
  453. package/dist/client/static/js/gitGraph-4MIJSDKK-z1yehwys.js +0 -1
  454. package/dist/client/static/js/graphql-8d8bn59j.js +0 -1
  455. package/dist/client/static/js/html-6hdrwtz2.js +0 -1
  456. package/dist/client/static/js/index-4h2zkrk1.js +0 -2
  457. package/dist/client/static/js/index-5nm8hm4k.js +0 -2
  458. package/dist/client/static/js/index-95jfphx5.js +0 -481
  459. package/dist/client/static/js/index-9pw441wc.js +0 -4
  460. package/dist/client/static/js/index-bjz54ht6.js +0 -1
  461. package/dist/client/static/js/index-bqapt2e8.js +0 -2
  462. package/dist/client/static/js/index-ddkjgv5h.js +0 -2
  463. package/dist/client/static/js/index-dekvtt2a.js +0 -314
  464. package/dist/client/static/js/index-fnwaxc6r.js +0 -1
  465. package/dist/client/static/js/index-h65zrhva.js +0 -1
  466. package/dist/client/static/js/index-hxsqw7sz.js +0 -4
  467. package/dist/client/static/js/index-hxy1sadd.js +0 -2
  468. package/dist/client/static/js/index-ja0ajnvq.js +0 -10
  469. package/dist/client/static/js/index-qkyy563e.js +0 -1
  470. package/dist/client/static/js/index-t6nqy2n5.css +0 -1
  471. package/dist/client/static/js/index-wrk99kks.js +0 -3
  472. package/dist/client/static/js/info-A6RAGUB7-dqyaxjc1.js +0 -1
  473. package/dist/client/static/js/ini-g6a5xsaw.js +0 -1
  474. package/dist/client/static/js/java-n596am4c.js +0 -1
  475. package/dist/client/static/js/javascript-zc1qnyyp.js +0 -1
  476. package/dist/client/static/js/json-7k70qbkj.js +0 -1
  477. package/dist/client/static/js/jsx-sndenqrc.js +0 -1
  478. package/dist/client/static/js/lua-djd3g9q5.js +0 -1
  479. package/dist/client/static/js/markdown-r2tpvxpn.js +0 -1
  480. package/dist/client/static/js/one-dark-pro-7bgqnyhm.js +0 -1
  481. package/dist/client/static/js/one-light-47y6etng.js +0 -1
  482. package/dist/client/static/js/packet-AYTQ26CC-7jxzax4z.js +0 -1
  483. package/dist/client/static/js/pie-WAS4IAKB-wc9wxr7f.js +0 -1
  484. package/dist/client/static/js/properties-brn72zdk.js +0 -1
  485. package/dist/client/static/js/python-g9mghwgm.js +0 -1
  486. package/dist/client/static/js/r-e247x4mw.js +0 -1
  487. package/dist/client/static/js/radar-RG4KPBEZ-kwj5padj.js +0 -1
  488. package/dist/client/static/js/railroad-74A4TZTK-h8sdx3w5.js +0 -1
  489. package/dist/client/static/js/railroad-abnf-HS5TGJTU-2wmwx246.js +0 -1
  490. package/dist/client/static/js/railroad-ebnf-LZEXJU2U-h4cdgw3y.js +0 -1
  491. package/dist/client/static/js/railroad-peg-WCYAUIDC-q7m0tfd0.js +0 -1
  492. package/dist/client/static/js/sql-0kar81jy.js +0 -1
  493. package/dist/client/static/js/swimlanesDiagram-TC7HE7FX-y77g9dq0.js +0 -8
  494. package/dist/client/static/js/timeline-definition-EJHVYXUP-8a3yqmx0.js +0 -120
  495. package/dist/client/static/js/treeView-Q6P3EWNA-yv9640h3.js +0 -1
  496. package/dist/client/static/js/treemap-WGGIJYW6-7kpzjg21.js +0 -1
  497. package/dist/client/static/js/tsx-gjxfjnbk.js +0 -1
  498. package/dist/client/static/js/typescript-bm89v3gk.js +0 -1
  499. package/dist/client/static/js/vennDiagram-UO4OBE2U-gf4y1r3s.js +0 -34
  500. package/dist/client/static/js/wardley-WFR3VGLG-mggay64p.js +0 -1
  501. package/dist/client/static/js/xml-b7824nx0.js +0 -1
  502. package/dist/client/static/js/yaml-kqqktdv1.js +0 -1
  503. package/src/server/lib/auth/client-address.ts +0 -89
  504. package/src/server/lib/auth/config.ts +0 -133
  505. package/src/server/lib/auth/rate-limit.ts +0 -146
  506. package/src/server/lib/auth/token.ts +0 -220
@@ -1 +1 @@
1
- import{t}from"./index-dekvtt2a.js";var c=1;function i(){if(typeof globalThis>"u")return;return globalThis}t(i,"getCaptureGlobal");function p(){return Boolean(i()?.mermaidCaptureSizes)}t(p,"shouldCaptureSizes");function u(){if(typeof location>"u")return"browser-dev";return`${location.pathname}${location.search}`}t(u,"capturedFromLocation");function d(n,r){let o=i();if(!o)return;let e=r.node(),s=((e&&"ownerSVGElement"in e?e.ownerSVGElement:null)??e)?.id??"(unknown)";o.mermaidCapturedSizes??=[];let a={svgId:s,sizes:n};o.mermaidCapturedSizes.push(a),o.mermaidLastCapturedSizes=a}t(d,"emitCapturedSizes");function m(n,r){let o=[];for(let e of r.nodes){if(e.isGroup)continue;o.push({id:e.id,width:e.width??0,height:e.height??0})}if(o.length===0)return;d({metadata:{captureVersion:c,capturedAt:new Date().toISOString(),capturedFrom:u()},nodes:o},n)}t(m,"captureNodeSizes");export{m as captureNodeSizes};
1
+ import{t}from"./index-mgzbypt5.js";var c=1;function i(){if(typeof globalThis>"u")return;return globalThis}t(i,"getCaptureGlobal");function p(){return Boolean(i()?.mermaidCaptureSizes)}t(p,"shouldCaptureSizes");function u(){if(typeof location>"u")return"browser-dev";return`${location.pathname}${location.search}`}t(u,"capturedFromLocation");function d(n,r){let o=i();if(!o)return;let e=r.node(),s=((e&&"ownerSVGElement"in e?e.ownerSVGElement:null)??e)?.id??"(unknown)";o.mermaidCapturedSizes??=[];let a={svgId:s,sizes:n};o.mermaidCapturedSizes.push(a),o.mermaidLastCapturedSizes=a}t(d,"emitCapturedSizes");function m(n,r){let o=[];for(let e of r.nodes){if(e.isGroup)continue;o.push({id:e.id,width:e.width??0,height:e.height??0})}if(o.length===0)return;d({metadata:{captureVersion:c,capturedAt:new Date().toISOString(),capturedFrom:u()},nodes:o},n)}t(m,"captureNodeSizes");export{m as captureNodeSizes};
@@ -0,0 +1 @@
1
+ import{La}from"./index-fsd7n336.js";export{La as default};
@@ -1,9 +1,9 @@
1
- import{t,l,w,F,z,j,U,H,W,q,m,b,oA,V,wt,mt,ft,sa,zt,Ut,Gt,Ct}from"./index-dekvtt2a.js";import{Kt}from"./index-95jfphx5.js";import{ro}from"./index-bpcg34jp.js";var Vt=function(){var e=t(function(Q,c,f,a){for(f=f||{},a=Q.length;a--;f[Q[a]]=c);return f},"o"),s=[1,2],o=[1,3],r=[1,4],d=[2,4],u=[1,9],S=[1,11],g=[1,16],n=[1,17],T=[1,18],E=[1,19],I=[1,33],N=[1,20],P=[1,21],C=[1,22],p=[1,23],O=[1,24],A=[1,26],Y=[1,27],R=[1,28],M=[1,29],D=[1,30],st=[1,31],St=[1,32],gt=[1,35],yt=[1,36],bt=[1,37],kt=[1,38],rt=[1,34],y=[1,4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],Tt=[1,4,5,14,15,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,39,40,41,45,48,51,52,53,54,57],Ht=[4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],Nt={trace:t(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,styleStatement:11,cssClassStatement:12,idStatement:13,DESCR:14,"-->":15,HIDE_EMPTY:16,scale:17,WIDTH:18,COMPOSIT_STATE:19,STRUCT_START:20,STRUCT_STOP:21,STATE_DESCR:22,AS:23,ID:24,FORK:25,JOIN:26,CHOICE:27,CONCURRENT:28,note:29,notePosition:30,NOTE_TEXT:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,CLICK:38,STRING:39,HREF:40,classDef:41,CLASSDEF_ID:42,CLASSDEF_STYLEOPTS:43,DEFAULT:44,style:45,STYLE_IDS:46,STYLEDEF_STYLEOPTS:47,class:48,CLASSENTITY_IDS:49,STYLECLASS:50,direction_tb:51,direction_bt:52,direction_rl:53,direction_lr:54,eol:55,";":56,EDGE_STATE:57,STYLE_SEPARATOR:58,left_of:59,right_of:60,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",6:"SD",14:"DESCR",15:"-->",16:"HIDE_EMPTY",17:"scale",18:"WIDTH",19:"COMPOSIT_STATE",20:"STRUCT_START",21:"STRUCT_STOP",22:"STATE_DESCR",23:"AS",24:"ID",25:"FORK",26:"JOIN",27:"CHOICE",28:"CONCURRENT",29:"note",31:"NOTE_TEXT",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",38:"CLICK",39:"STRING",40:"HREF",41:"classDef",42:"CLASSDEF_ID",43:"CLASSDEF_STYLEOPTS",44:"DEFAULT",45:"style",46:"STYLE_IDS",47:"STYLEDEF_STYLEOPTS",48:"class",49:"CLASSENTITY_IDS",50:"STYLECLASS",51:"direction_tb",52:"direction_bt",53:"direction_rl",54:"direction_lr",56:";",57:"EDGE_STATE",58:"STYLE_SEPARATOR",59:"left_of",60:"right_of"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,1],[9,4],[9,4],[9,1],[9,2],[9,2],[9,1],[9,5],[9,5],[10,3],[10,3],[11,3],[12,3],[32,1],[32,1],[32,1],[32,1],[55,1],[55,1],[13,1],[13,1],[13,3],[13,3],[30,1],[30,1]],performAction:t(function(c,f,a,k,_,i,it){var h=i.length-1;switch(_){case 3:return k.setRootDoc(i[h]),i[h];break;case 4:this.$=[];break;case 5:if(i[h]!="nl")i[h-1].push(i[h]),this.$=i[h-1];break;case 6:case 7:this.$=i[h];break;case 8:this.$="nl";break;case 12:this.$=i[h];break;case 13:let _t=i[h-1];_t.description=k.trimColon(i[h]),this.$=_t;break;case 14:this.$={stmt:"relation",state1:i[h-2],state2:i[h]};break;case 15:let vt=k.trimColon(i[h]);this.$={stmt:"relation",state1:i[h-3],state2:i[h-1],description:vt};break;case 19:this.$={stmt:"state",id:i[h-3],type:"default",description:"",doc:i[h-1]};break;case 20:var K=i[h],X=i[h-2].trim();if(i[h].match(":")){var lt=i[h].split(":");K=lt[0],X=[X,lt[1]]}this.$={stmt:"state",id:K,type:"default",description:X};break;case 21:this.$={stmt:"state",id:i[h-3],type:"default",description:i[h-5],doc:i[h-1]};break;case 22:this.$={stmt:"state",id:i[h],type:"fork"};break;case 23:this.$={stmt:"state",id:i[h],type:"join"};break;case 24:this.$={stmt:"state",id:i[h],type:"choice"};break;case 25:this.$={stmt:"state",id:k.getDividerId(),type:"divider"};break;case 26:this.$={stmt:"state",id:i[h-1].trim(),note:{position:i[h-2].trim(),text:i[h].trim()}};break;case 29:this.$=i[h].trim(),k.setAccTitle(this.$);break;case 30:case 31:this.$=i[h].trim(),k.setAccDescription(this.$);break;case 32:this.$={stmt:"click",id:i[h-3],url:i[h-2],tooltip:i[h-1]};break;case 33:this.$={stmt:"click",id:i[h-3],url:i[h-1],tooltip:""};break;case 34:case 35:this.$={stmt:"classDef",id:i[h-1].trim(),classes:i[h].trim()};break;case 36:this.$={stmt:"style",id:i[h-1].trim(),styleClass:i[h].trim()};break;case 37:this.$={stmt:"applyClass",id:i[h-1].trim(),styleClass:i[h].trim()};break;case 38:k.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 39:k.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 40:k.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 41:k.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 44:case 45:this.$={stmt:"state",id:i[h].trim(),type:"default",description:""};break;case 46:this.$={stmt:"state",id:i[h-2].trim(),classes:[i[h].trim()],type:"default",description:""};break;case 47:this.$={stmt:"state",id:i[h-2].trim(),classes:[i[h].trim()],type:"default",description:""};break}},"anonymous"),table:[{3:1,4:s,5:o,6:r},{1:[3]},{3:5,4:s,5:o,6:r},{3:6,4:s,5:o,6:r},e([1,4,5,16,17,19,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],d,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:u,5:S,8:8,9:10,10:12,11:13,12:14,13:15,16:g,17:n,19:T,22:E,24:I,25:N,26:P,27:C,28:p,29:O,32:25,33:A,35:Y,37:R,38:M,41:D,45:st,48:St,51:gt,52:yt,53:bt,54:kt,57:rt},e(y,[2,5]),{9:39,10:12,11:13,12:14,13:15,16:g,17:n,19:T,22:E,24:I,25:N,26:P,27:C,28:p,29:O,32:25,33:A,35:Y,37:R,38:M,41:D,45:st,48:St,51:gt,52:yt,53:bt,54:kt,57:rt},e(y,[2,7]),e(y,[2,8]),e(y,[2,9]),e(y,[2,10]),e(y,[2,11]),e(y,[2,12],{14:[1,40],15:[1,41]}),e(y,[2,16]),{18:[1,42]},e(y,[2,18],{20:[1,43]}),{23:[1,44]},e(y,[2,22]),e(y,[2,23]),e(y,[2,24]),e(y,[2,25]),{30:45,31:[1,46],59:[1,47],60:[1,48]},e(y,[2,28]),{34:[1,49]},{36:[1,50]},e(y,[2,31]),{13:51,24:I,57:rt},{42:[1,52],44:[1,53]},{46:[1,54]},{49:[1,55]},e(Tt,[2,44],{58:[1,56]}),e(Tt,[2,45],{58:[1,57]}),e(y,[2,38]),e(y,[2,39]),e(y,[2,40]),e(y,[2,41]),e(y,[2,6]),e(y,[2,13]),{13:58,24:I,57:rt},e(y,[2,17]),e(Ht,d,{7:59}),{24:[1,60]},{24:[1,61]},{23:[1,62]},{24:[2,48]},{24:[2,49]},e(y,[2,29]),e(y,[2,30]),{39:[1,63],40:[1,64]},{43:[1,65]},{43:[1,66]},{47:[1,67]},{50:[1,68]},{24:[1,69]},{24:[1,70]},e(y,[2,14],{14:[1,71]}),{4:u,5:S,8:8,9:10,10:12,11:13,12:14,13:15,16:g,17:n,19:T,21:[1,72],22:E,24:I,25:N,26:P,27:C,28:p,29:O,32:25,33:A,35:Y,37:R,38:M,41:D,45:st,48:St,51:gt,52:yt,53:bt,54:kt,57:rt},e(y,[2,20],{20:[1,73]}),{31:[1,74]},{24:[1,75]},{39:[1,76]},{39:[1,77]},e(y,[2,34]),e(y,[2,35]),e(y,[2,36]),e(y,[2,37]),e(Tt,[2,46]),e(Tt,[2,47]),e(y,[2,15]),e(y,[2,19]),e(Ht,d,{7:78}),e(y,[2,26]),e(y,[2,27]),{5:[1,79]},{5:[1,80]},{4:u,5:S,8:8,9:10,10:12,11:13,12:14,13:15,16:g,17:n,19:T,21:[1,81],22:E,24:I,25:N,26:P,27:C,28:p,29:O,32:25,33:A,35:Y,37:R,38:M,41:D,45:st,48:St,51:gt,52:yt,53:bt,54:kt,57:rt},e(y,[2,32]),e(y,[2,33]),e(y,[2,21])],defaultActions:{5:[2,1],6:[2,2],47:[2,48],48:[2,49]},parseError:t(function(c,f){if(f.recoverable)this.trace(c);else{var a=Error(c);throw a.hash=f,a}},"parseError"),parse:t(function(c){var f=this,a=[0],k=[],_=[null],i=[],it=this.table,h="",K=0,X=0,lt=0,_t=2,vt=1,me=i.slice.call(arguments,1),v=Object.create(this.lexer),tt={yy:{}};for(var Ot in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,Ot))tt.yy[Ot]=this.yy[Ot];if(v.setInput(c,tt.yy),tt.yy.lexer=v,tt.yy.parser=this,typeof v.yylloc>"u")v.yylloc={};var Rt=v.yylloc;i.push(Rt);var be=v.options&&v.options.ranges;if(typeof tt.yy.parseError==="function")this.parseError=tt.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function ke(G){a.length=a.length-2*G,_.length=_.length-G,i.length=i.length-G}t(ke,"popStack");function Xt(){var G=k.pop()||v.lex()||vt;if(typeof G!=="number"){if(G instanceof Array)k=G,G=k.pop();G=f.symbols_[G]||G}return G}t(Xt,"lex");var x,$t,et,B,Qe,Ft,at={},Dt,J,Jt,At;while(!0){if(et=a[a.length-1],this.defaultActions[et])B=this.defaultActions[et];else{if(x===null||typeof x>"u")x=Xt();B=it[et]&&it[et][x]}if(typeof B>"u"||!B.length||!B[0]){var Pt="";At=[];for(Dt in it[et])if(this.terminals_[Dt]&&Dt>_t)At.push("'"+this.terminals_[Dt]+"'");if(v.showPosition)Pt="Parse error on line "+(K+1)+`:
1
+ import{t,l,w,F,z,H,U,j,W,q,m,b,hA,V,Ct,ft,gt,ca,Ut,Gt,Ht,Et}from"./index-mgzbypt5.js";import{Vt}from"./index-j734ev6q.js";import{so}from"./index-1svt0cdw.js";var Mt=function(){var e=t(function(Q,c,f,a){for(f=f||{},a=Q.length;a--;f[Q[a]]=c);return f},"o"),s=[1,2],o=[1,3],r=[1,4],d=[2,4],u=[1,9],S=[1,11],g=[1,16],n=[1,17],T=[1,18],E=[1,19],I=[1,33],N=[1,20],P=[1,21],C=[1,22],p=[1,23],O=[1,24],A=[1,26],Y=[1,27],R=[1,28],M=[1,29],D=[1,30],st=[1,31],St=[1,32],yt=[1,35],mt=[1,36],bt=[1,37],kt=[1,38],rt=[1,34],y=[1,4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],Tt=[1,4,5,14,15,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,39,40,41,45,48,51,52,53,54,57],Kt=[4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],Nt={trace:t(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,styleStatement:11,cssClassStatement:12,idStatement:13,DESCR:14,"-->":15,HIDE_EMPTY:16,scale:17,WIDTH:18,COMPOSIT_STATE:19,STRUCT_START:20,STRUCT_STOP:21,STATE_DESCR:22,AS:23,ID:24,FORK:25,JOIN:26,CHOICE:27,CONCURRENT:28,note:29,notePosition:30,NOTE_TEXT:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,CLICK:38,STRING:39,HREF:40,classDef:41,CLASSDEF_ID:42,CLASSDEF_STYLEOPTS:43,DEFAULT:44,style:45,STYLE_IDS:46,STYLEDEF_STYLEOPTS:47,class:48,CLASSENTITY_IDS:49,STYLECLASS:50,direction_tb:51,direction_bt:52,direction_rl:53,direction_lr:54,eol:55,";":56,EDGE_STATE:57,STYLE_SEPARATOR:58,left_of:59,right_of:60,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",6:"SD",14:"DESCR",15:"-->",16:"HIDE_EMPTY",17:"scale",18:"WIDTH",19:"COMPOSIT_STATE",20:"STRUCT_START",21:"STRUCT_STOP",22:"STATE_DESCR",23:"AS",24:"ID",25:"FORK",26:"JOIN",27:"CHOICE",28:"CONCURRENT",29:"note",31:"NOTE_TEXT",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",38:"CLICK",39:"STRING",40:"HREF",41:"classDef",42:"CLASSDEF_ID",43:"CLASSDEF_STYLEOPTS",44:"DEFAULT",45:"style",46:"STYLE_IDS",47:"STYLEDEF_STYLEOPTS",48:"class",49:"CLASSENTITY_IDS",50:"STYLECLASS",51:"direction_tb",52:"direction_bt",53:"direction_rl",54:"direction_lr",56:";",57:"EDGE_STATE",58:"STYLE_SEPARATOR",59:"left_of",60:"right_of"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,1],[9,4],[9,4],[9,1],[9,2],[9,2],[9,1],[9,5],[9,5],[10,3],[10,3],[11,3],[12,3],[32,1],[32,1],[32,1],[32,1],[55,1],[55,1],[13,1],[13,1],[13,3],[13,3],[30,1],[30,1]],performAction:t(function(c,f,a,k,_,i,it){var h=i.length-1;switch(_){case 3:return k.setRootDoc(i[h]),i[h];break;case 4:this.$=[];break;case 5:if(i[h]!="nl")i[h-1].push(i[h]),this.$=i[h-1];break;case 6:case 7:this.$=i[h];break;case 8:this.$="nl";break;case 12:this.$=i[h];break;case 13:let vt=i[h-1];vt.description=k.trimColon(i[h]),this.$=vt;break;case 14:this.$={stmt:"relation",state1:i[h-2],state2:i[h]};break;case 15:let Dt=k.trimColon(i[h]);this.$={stmt:"relation",state1:i[h-3],state2:i[h-1],description:Dt};break;case 19:this.$={stmt:"state",id:i[h-3],type:"default",description:"",doc:i[h-1]};break;case 20:var K=i[h],X=i[h-2].trim();if(i[h].match(":")){var lt=i[h].split(":");K=lt[0],X=[X,lt[1]]}this.$={stmt:"state",id:K,type:"default",description:X};break;case 21:this.$={stmt:"state",id:i[h-3],type:"default",description:i[h-5],doc:i[h-1]};break;case 22:this.$={stmt:"state",id:i[h],type:"fork"};break;case 23:this.$={stmt:"state",id:i[h],type:"join"};break;case 24:this.$={stmt:"state",id:i[h],type:"choice"};break;case 25:this.$={stmt:"state",id:k.getDividerId(),type:"divider"};break;case 26:this.$={stmt:"state",id:i[h-1].trim(),note:{position:i[h-2].trim(),text:i[h].trim()}};break;case 29:this.$=i[h].trim(),k.setAccTitle(this.$);break;case 30:case 31:this.$=i[h].trim(),k.setAccDescription(this.$);break;case 32:this.$={stmt:"click",id:i[h-3],url:i[h-2],tooltip:i[h-1]};break;case 33:this.$={stmt:"click",id:i[h-3],url:i[h-1],tooltip:""};break;case 34:case 35:this.$={stmt:"classDef",id:i[h-1].trim(),classes:i[h].trim()};break;case 36:this.$={stmt:"style",id:i[h-1].trim(),styleClass:i[h].trim()};break;case 37:this.$={stmt:"applyClass",id:i[h-1].trim(),styleClass:i[h].trim()};break;case 38:k.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 39:k.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 40:k.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 41:k.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 44:case 45:this.$={stmt:"state",id:i[h].trim(),type:"default",description:""};break;case 46:this.$={stmt:"state",id:i[h-2].trim(),classes:[i[h].trim()],type:"default",description:""};break;case 47:this.$={stmt:"state",id:i[h-2].trim(),classes:[i[h].trim()],type:"default",description:""};break}},"anonymous"),table:[{3:1,4:s,5:o,6:r},{1:[3]},{3:5,4:s,5:o,6:r},{3:6,4:s,5:o,6:r},e([1,4,5,16,17,19,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],d,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:u,5:S,8:8,9:10,10:12,11:13,12:14,13:15,16:g,17:n,19:T,22:E,24:I,25:N,26:P,27:C,28:p,29:O,32:25,33:A,35:Y,37:R,38:M,41:D,45:st,48:St,51:yt,52:mt,53:bt,54:kt,57:rt},e(y,[2,5]),{9:39,10:12,11:13,12:14,13:15,16:g,17:n,19:T,22:E,24:I,25:N,26:P,27:C,28:p,29:O,32:25,33:A,35:Y,37:R,38:M,41:D,45:st,48:St,51:yt,52:mt,53:bt,54:kt,57:rt},e(y,[2,7]),e(y,[2,8]),e(y,[2,9]),e(y,[2,10]),e(y,[2,11]),e(y,[2,12],{14:[1,40],15:[1,41]}),e(y,[2,16]),{18:[1,42]},e(y,[2,18],{20:[1,43]}),{23:[1,44]},e(y,[2,22]),e(y,[2,23]),e(y,[2,24]),e(y,[2,25]),{30:45,31:[1,46],59:[1,47],60:[1,48]},e(y,[2,28]),{34:[1,49]},{36:[1,50]},e(y,[2,31]),{13:51,24:I,57:rt},{42:[1,52],44:[1,53]},{46:[1,54]},{49:[1,55]},e(Tt,[2,44],{58:[1,56]}),e(Tt,[2,45],{58:[1,57]}),e(y,[2,38]),e(y,[2,39]),e(y,[2,40]),e(y,[2,41]),e(y,[2,6]),e(y,[2,13]),{13:58,24:I,57:rt},e(y,[2,17]),e(Kt,d,{7:59}),{24:[1,60]},{24:[1,61]},{23:[1,62]},{24:[2,48]},{24:[2,49]},e(y,[2,29]),e(y,[2,30]),{39:[1,63],40:[1,64]},{43:[1,65]},{43:[1,66]},{47:[1,67]},{50:[1,68]},{24:[1,69]},{24:[1,70]},e(y,[2,14],{14:[1,71]}),{4:u,5:S,8:8,9:10,10:12,11:13,12:14,13:15,16:g,17:n,19:T,21:[1,72],22:E,24:I,25:N,26:P,27:C,28:p,29:O,32:25,33:A,35:Y,37:R,38:M,41:D,45:st,48:St,51:yt,52:mt,53:bt,54:kt,57:rt},e(y,[2,20],{20:[1,73]}),{31:[1,74]},{24:[1,75]},{39:[1,76]},{39:[1,77]},e(y,[2,34]),e(y,[2,35]),e(y,[2,36]),e(y,[2,37]),e(Tt,[2,46]),e(Tt,[2,47]),e(y,[2,15]),e(y,[2,19]),e(Kt,d,{7:78}),e(y,[2,26]),e(y,[2,27]),{5:[1,79]},{5:[1,80]},{4:u,5:S,8:8,9:10,10:12,11:13,12:14,13:15,16:g,17:n,19:T,21:[1,81],22:E,24:I,25:N,26:P,27:C,28:p,29:O,32:25,33:A,35:Y,37:R,38:M,41:D,45:st,48:St,51:yt,52:mt,53:bt,54:kt,57:rt},e(y,[2,32]),e(y,[2,33]),e(y,[2,21])],defaultActions:{5:[2,1],6:[2,2],47:[2,48],48:[2,49]},parseError:t(function(c,f){if(f.recoverable)this.trace(c);else{var a=Error(c);throw a.hash=f,a}},"parseError"),parse:t(function(c){var f=this,a=[0],k=[],_=[null],i=[],it=this.table,h="",K=0,X=0,lt=0,vt=2,Dt=1,me=i.slice.call(arguments,1),v=Object.create(this.lexer),tt={yy:{}};for(var Ot in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,Ot))tt.yy[Ot]=this.yy[Ot];if(v.setInput(c,tt.yy),tt.yy.lexer=v,tt.yy.parser=this,typeof v.yylloc>"u")v.yylloc={};var Rt=v.yylloc;i.push(Rt);var be=v.options&&v.options.ranges;if(typeof tt.yy.parseError==="function")this.parseError=tt.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function ke(G){a.length=a.length-2*G,_.length=_.length-G,i.length=i.length-G}t(ke,"popStack");function Xt(){var G=k.pop()||v.lex()||Dt;if(typeof G!=="number"){if(G instanceof Array)k=G,G=k.pop();G=f.symbols_[G]||G}return G}t(Xt,"lex");var x,$t,et,B,Qe,Ft,at={},At,J,Jt,xt;while(!0){if(et=a[a.length-1],this.defaultActions[et])B=this.defaultActions[et];else{if(x===null||typeof x>"u")x=Xt();B=it[et]&&it[et][x]}if(typeof B>"u"||!B.length||!B[0]){var Pt="";xt=[];for(At in it[et])if(this.terminals_[At]&&At>vt)xt.push("'"+this.terminals_[At]+"'");if(v.showPosition)Pt="Parse error on line "+(K+1)+`:
2
2
  `+v.showPosition()+`
3
- Expecting `+At.join(", ")+", got '"+(this.terminals_[x]||x)+"'";else Pt="Parse error on line "+(K+1)+": Unexpected "+(x==vt?"end of input":"'"+(this.terminals_[x]||x)+"'");this.parseError(Pt,{text:v.match,token:this.terminals_[x]||x,line:v.yylineno,loc:Rt,expected:At})}if(B[0]instanceof Array&&B.length>1)throw Error("Parse Error: multiple actions possible at state: "+et+", token: "+x);switch(B[0]){case 1:if(a.push(x),_.push(v.yytext),i.push(v.yylloc),a.push(B[1]),x=null,!$t){if(X=v.yyleng,h=v.yytext,K=v.yylineno,Rt=v.yylloc,lt>0)lt--}else x=$t,$t=null;break;case 2:if(J=this.productions_[B[1]][1],at.$=_[_.length-J],at._$={first_line:i[i.length-(J||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(J||1)].first_column,last_column:i[i.length-1].last_column},be)at._$.range=[i[i.length-(J||1)].range[0],i[i.length-1].range[1]];if(Ft=this.performAction.apply(at,[h,X,K,tt.yy,B[1],_,i].concat(me)),typeof Ft<"u")return Ft;if(J)a=a.slice(0,-1*J*2),_=_.slice(0,-1*J),i=i.slice(0,-1*J);a.push(this.productions_[B[1]][0]),_.push(at.$),i.push(at._$),Jt=it[a[a.length-2]][a[a.length-1]],a.push(Jt);break;case 3:return!0}}return!0},"parse")},ye=function(){var Q={EOF:1,parseError:t(function(f,a){if(this.yy.parser)this.yy.parser.parseError(f,a);else throw Error(f)},"parseError"),setInput:t(function(c,f){if(this.yy=f||this.yy||{},this._input=c,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges)this.yylloc.range=[0,0];return this.offset=0,this},"setInput"),input:t(function(){var c=this._input[0];this.yytext+=c,this.yyleng++,this.offset++,this.match+=c,this.matched+=c;var f=c.match(/(?:\r\n?|\n).*/g);if(f)this.yylineno++,this.yylloc.last_line++;else this.yylloc.last_column++;if(this.options.ranges)this.yylloc.range[1]++;return this._input=this._input.slice(1),c},"input"),unput:t(function(c){var f=c.length,a=c.split(/(?:\r\n?|\n)/g);this._input=c+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-f),this.offset-=f;var k=this.match.split(/(?:\r\n?|\n)/g);if(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),a.length-1)this.yylineno-=a.length-1;var _=this.yylloc.range;if(this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:a?(a.length===k.length?this.yylloc.first_column:0)+k[k.length-a.length].length-a[0].length:this.yylloc.first_column-f},this.options.ranges)this.yylloc.range=[_[0],_[0]+this.yyleng-f];return this.yyleng=this.yytext.length,this},"unput"),more:t(function(){return this._more=!0,this},"more"),reject:t(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
3
+ Expecting `+xt.join(", ")+", got '"+(this.terminals_[x]||x)+"'";else Pt="Parse error on line "+(K+1)+": Unexpected "+(x==Dt?"end of input":"'"+(this.terminals_[x]||x)+"'");this.parseError(Pt,{text:v.match,token:this.terminals_[x]||x,line:v.yylineno,loc:Rt,expected:xt})}if(B[0]instanceof Array&&B.length>1)throw Error("Parse Error: multiple actions possible at state: "+et+", token: "+x);switch(B[0]){case 1:if(a.push(x),_.push(v.yytext),i.push(v.yylloc),a.push(B[1]),x=null,!$t){if(X=v.yyleng,h=v.yytext,K=v.yylineno,Rt=v.yylloc,lt>0)lt--}else x=$t,$t=null;break;case 2:if(J=this.productions_[B[1]][1],at.$=_[_.length-J],at._$={first_line:i[i.length-(J||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(J||1)].first_column,last_column:i[i.length-1].last_column},be)at._$.range=[i[i.length-(J||1)].range[0],i[i.length-1].range[1]];if(Ft=this.performAction.apply(at,[h,X,K,tt.yy,B[1],_,i].concat(me)),typeof Ft<"u")return Ft;if(J)a=a.slice(0,-1*J*2),_=_.slice(0,-1*J),i=i.slice(0,-1*J);a.push(this.productions_[B[1]][0]),_.push(at.$),i.push(at._$),Jt=it[a[a.length-2]][a[a.length-1]],a.push(Jt);break;case 3:return!0}}return!0},"parse")},ye=function(){var Q={EOF:1,parseError:t(function(f,a){if(this.yy.parser)this.yy.parser.parseError(f,a);else throw Error(f)},"parseError"),setInput:t(function(c,f){if(this.yy=f||this.yy||{},this._input=c,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges)this.yylloc.range=[0,0];return this.offset=0,this},"setInput"),input:t(function(){var c=this._input[0];this.yytext+=c,this.yyleng++,this.offset++,this.match+=c,this.matched+=c;var f=c.match(/(?:\r\n?|\n).*/g);if(f)this.yylineno++,this.yylloc.last_line++;else this.yylloc.last_column++;if(this.options.ranges)this.yylloc.range[1]++;return this._input=this._input.slice(1),c},"input"),unput:t(function(c){var f=c.length,a=c.split(/(?:\r\n?|\n)/g);this._input=c+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-f),this.offset-=f;var k=this.match.split(/(?:\r\n?|\n)/g);if(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),a.length-1)this.yylineno-=a.length-1;var _=this.yylloc.range;if(this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:a?(a.length===k.length?this.yylloc.first_column:0)+k[k.length-a.length].length-a[0].length:this.yylloc.first_column-f},this.options.ranges)this.yylloc.range=[_[0],_[0]+this.yyleng-f];return this.yyleng=this.yytext.length,this},"unput"),more:t(function(){return this._more=!0,this},"more"),reject:t(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
4
  `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:t(function(c){this.unput(this.match.slice(c))},"less"),pastInput:t(function(){var c=this.matched.substr(0,this.matched.length-this.match.length);return(c.length>20?"...":"")+c.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:t(function(){var c=this.match;if(c.length<20)c+=this._input.substr(0,20-c.length);return(c.substr(0,20)+(c.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:t(function(){var c=this.pastInput(),f=Array(c.length+1).join("-");return c+this.upcomingInput()+`
5
5
  `+f+"^"},"showPosition"),test_match:t(function(c,f){var a,k,_;if(this.options.backtrack_lexer){if(_={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges)_.yylloc.range=this.yylloc.range.slice(0)}if(k=c[0].match(/(?:\r\n?|\n).*/g),k)this.yylineno+=k.length;if(this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:k?k[k.length-1].length-k[k.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+c[0].length},this.yytext+=c[0],this.match+=c[0],this.matches=c,this.yyleng=this.yytext.length,this.options.ranges)this.yylloc.range=[this.offset,this.offset+=this.yyleng];if(this._more=!1,this._backtrack=!1,this._input=this._input.slice(c[0].length),this.matched+=c[0],a=this.performAction.call(this,this.yy,this,f,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input)this.done=!1;if(a)return a;else if(this._backtrack){for(var i in _)this[i]=_[i];return!1}return!1},"test_match"),next:t(function(){if(this.done)return this.EOF;if(!this._input)this.done=!0;var c,f,a,k;if(!this._more)this.yytext="",this.match="";var _=this._currentRules();for(var i=0;i<_.length;i++)if(a=this._input.match(this.rules[_[i]]),a&&(!f||a[0].length>f[0].length)){if(f=a,k=i,this.options.backtrack_lexer)if(c=this.test_match(a,_[i]),c!==!1)return c;else if(this._backtrack){f=!1;continue}else return!1;else if(!this.options.flex)break}if(f){if(c=this.test_match(f,_[k]),c!==!1)return c;return!1}if(this._input==="")return this.EOF;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
6
- `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:t(function(){var f=this.next();if(f)return f;else return this.lex()},"lex"),begin:t(function(f){this.conditionStack.push(f)},"begin"),popState:t(function(){var f=this.conditionStack.length-1;if(f>0)return this.conditionStack.pop();else return this.conditionStack[0]},"popState"),_currentRules:t(function(){if(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1])return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules;else return this.conditions.INITIAL.rules},"_currentRules"),topState:t(function(f){if(f=this.conditionStack.length-1-Math.abs(f||0),f>=0)return this.conditionStack[f];else return"INITIAL"},"topState"),pushState:t(function(f){this.begin(f)},"pushState"),stateStackSize:t(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:t(function(f,a,k,_){function i(){let h=a.yytext.indexOf("%%");if(h===0)return!1;if(h>0){let K=a.yytext.slice(0,h),X=a.yytext.slice(h);if(X)f.lexer.unput(X);a.yytext=K}return!0}t(i,"processId");var it=_;switch(k){case 0:return 38;case 1:return 40;case 2:return 39;case 3:return 44;case 4:return 51;case 5:return 52;case 6:return 53;case 7:return 54;case 8:return 5;case 9:break;case 10:break;case 11:break;case 12:break;case 13:return this.pushState("SCALE"),17;break;case 14:return 18;case 15:this.popState();break;case 16:return this.begin("acc_title"),33;break;case 17:return this.popState(),"acc_title_value";break;case 18:return this.begin("acc_descr"),35;break;case 19:return this.popState(),"acc_descr_value";break;case 20:this.begin("acc_descr_multiline");break;case 21:this.popState();break;case 22:return"acc_descr_multiline_value";case 23:return this.pushState("CLASSDEF"),41;break;case 24:return this.popState(),this.pushState("CLASSDEFID"),"DEFAULT_CLASSDEF_ID";break;case 25:return this.popState(),this.pushState("CLASSDEFID"),42;break;case 26:return this.popState(),43;break;case 27:return this.pushState("CLASS"),48;break;case 28:return this.popState(),this.pushState("CLASS_STYLE"),49;break;case 29:return this.popState(),50;break;case 30:return this.pushState("STYLE"),45;break;case 31:return this.popState(),this.pushState("STYLEDEF_STYLES"),46;break;case 32:return this.popState(),47;break;case 33:return this.pushState("SCALE"),17;break;case 34:return 18;case 35:this.popState();break;case 36:this.pushState("STATE");break;case 37:return this.popState(),a.yytext=a.yytext.slice(0,-8).trim(),25;break;case 38:return this.popState(),a.yytext=a.yytext.slice(0,-8).trim(),26;break;case 39:return this.popState(),a.yytext=a.yytext.slice(0,-10).trim(),27;break;case 40:return this.popState(),a.yytext=a.yytext.slice(0,-8).trim(),25;break;case 41:return this.popState(),a.yytext=a.yytext.slice(0,-8).trim(),26;break;case 42:return this.popState(),a.yytext=a.yytext.slice(0,-10).trim(),27;break;case 43:return 51;case 44:return 52;case 45:return 53;case 46:return 54;case 47:this.pushState("STATE_STRING");break;case 48:return this.pushState("STATE_ID"),"AS";break;case 49:if(!i())return;return this.popState(),"ID";break;case 50:this.popState();break;case 51:return"STATE_DESCR";case 52:throw Error('Error: State name must be a single word. Found: "'+a.yytext.trim()+'"');case 53:return 19;case 54:this.popState();break;case 55:return this.popState(),this.pushState("struct"),20;break;case 56:return this.popState(),21;break;case 57:break;case 58:return this.begin("NOTE"),29;break;case 59:return this.popState(),this.pushState("NOTE_ID"),59;break;case 60:return this.popState(),this.pushState("NOTE_ID"),60;break;case 61:this.popState(),this.pushState("FLOATING_NOTE");break;case 62:return this.popState(),this.pushState("FLOATING_NOTE_ID"),"AS";break;case 63:break;case 64:return"NOTE_TEXT";case 65:if(!i())return;return this.popState(),"ID";break;case 66:if(!i())return;return this.popState(),this.pushState("NOTE_TEXT"),24;break;case 67:return this.popState(),a.yytext=a.yytext.substr(2).trim(),31;break;case 68:return this.popState(),a.yytext=a.yytext.slice(0,-8).trim(),31;break;case 69:return 6;case 70:return 6;case 71:return 16;case 72:return 57;case 73:if(!i())return;return 24;case 74:return a.yytext=a.yytext.trim(),14;break;case 75:return 15;case 76:return 28;case 77:return 58;case 78:return 5;case 79:return"INVALID"}},"anonymous"),rules:[/^(?:click\b)/i,/^(?:href\b)/i,/^(?:"[^"]*")/i,/^(?:default\b)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:[\n]+)/i,/^(?:[\s]+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:classDef\s+)/i,/^(?:DEFAULT\s+)/i,/^(?:\w+\s+)/i,/^(?:[^\n]*)/i,/^(?:class\s+)/i,/^(?:(\w+)+((,\s*\w+)*))/i,/^(?:[^\n]*)/i,/^(?:style\s+)/i,/^(?:[\w,]+\s+)/i,/^(?:[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:state\s+)/i,/^(?:.*<<fork>>)/i,/^(?:.*<<join>>)/i,/^(?:.*<<choice>>)/i,/^(?:.*\[\[fork\]\])/i,/^(?:.*\[\[join\]\])/i,/^(?:.*\[\[choice\]\])/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:["])/i,/^(?:\s*as\s+)/i,/^(?:[^\n\{]*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:\w+\s+\w+.*?\{)/i,/^(?:[^\n\s\{]+)/i,/^(?:\n)/i,/^(?:\{)/i,/^(?:\})/i,/^(?:[\n])/i,/^(?:note\s+)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:")/i,/^(?:\s*as\s*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n]*)/i,/^(?:\s*[^:\n\s\-]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:[\s\S]*?\n\s*end note\b)/i,/^(?:stateDiagram\s+)/i,/^(?:stateDiagram-v2\s+)/i,/^(?:hide empty description\b)/i,/^(?:\[\*\])/i,/^(?:[^:\n\s\-\{]+)/i,/^(?:\s*:(?:[^:\n;]|:[^:\n;])+)/i,/^(?:-->)/i,/^(?:--)/i,/^(?::::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{LINE:{rules:[10,11,12],inclusive:!1},struct:{rules:[10,11,12,23,27,30,36,43,44,45,46,56,57,58,72,73,74,75,76,77],inclusive:!1},FLOATING_NOTE_ID:{rules:[65],inclusive:!1},FLOATING_NOTE:{rules:[62,63,64],inclusive:!1},NOTE_TEXT:{rules:[67,68],inclusive:!1},NOTE_ID:{rules:[66],inclusive:!1},NOTE:{rules:[59,60,61],inclusive:!1},STYLEDEF_STYLEOPTS:{rules:[],inclusive:!1},STYLEDEF_STYLES:{rules:[32],inclusive:!1},STYLE_IDS:{rules:[],inclusive:!1},STYLE:{rules:[31],inclusive:!1},CLASS_STYLE:{rules:[29],inclusive:!1},CLASS:{rules:[28],inclusive:!1},CLASSDEFID:{rules:[26],inclusive:!1},CLASSDEF:{rules:[24,25],inclusive:!1},acc_descr_multiline:{rules:[21,22],inclusive:!1},acc_descr:{rules:[19],inclusive:!1},acc_title:{rules:[17],inclusive:!1},SCALE:{rules:[14,15,34,35],inclusive:!1},ALIAS:{rules:[],inclusive:!1},STATE_ID:{rules:[49],inclusive:!1},STATE_STRING:{rules:[50,51],inclusive:!1},FORK_STATE:{rules:[],inclusive:!1},STATE:{rules:[10,11,12,37,38,39,40,41,42,47,48,52,53,54,55],inclusive:!1},ID:{rules:[10,11,12],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,11,12,13,16,18,20,23,27,30,33,36,55,58,69,70,71,72,73,74,75,77,78,79],inclusive:!0}}};return Q}();Nt.lexer=ye;function Et(){this.yy={}}return t(Et,"Parser"),Et.prototype=Nt,Nt.Parser=Et,new Et}();Vt.parser=Vt;var Te=Vt,Ee="TB",re="TB",qt="dir",ot="state",nt="root",Mt="relation",_e="classDef",ve="style",De="applyClass",ut="default",ie="divider",ae="fill:none",ne="fill: #333",oe="c",le="markdown",ce="normal",Bt="rect",Yt="rectWithTitle",Ce="stateStart",Ae="stateEnd",Wt="divider",Qt="roundedWithTitle",xe="note",Le="noteGroup",pt="statediagram",we="state",Ie=`${pt}-${we}`,he="transition",Ne="note",Oe="note-edge",Re=`${he} ${Oe}`,$e=`${pt}-${Ne}`,Fe="cluster",Pe=`${pt}-${Fe}`,Be="cluster-alt",Ge=`${pt}-${Be}`,de="parent",ue="note",Ye="state",jt="----",Ve=`${jt}${ue}`,Zt=`${jt}${de}`,Lt=new Map,Z=0,fe=0,ct=new Map,Me=t((e,s,o,r)=>{if(e===Wt&&o?.id!==void 0&&ct.has(o.id)){let S=ct.get(o.id);return ct.set(s,S),S}let d=fe++,u=r?void 0:d;return ct.set(s,u),u},"colorSlotFor");function It(e="",s=0,o="",r=jt){let d=o!==null&&o.length>0?`${r}${o}`:"";return`${Ye}-${e}${d}-${s}`}t(It,"stateDomId");var We=t((e,s,o,r,d,u,S,g)=>{l.trace("items",s),s.forEach((n)=>{switch(n.stmt){case ot:dt(e,n,o,r,d,u,S,g);break;case ut:dt(e,n,o,r,d,u,S,g);break;case Mt:{dt(e,n.state1,o,r,d,u,S,g),dt(e,n.state2,o,r,d,u,S,g);let T=S==="neo",E={id:"edge"+Z,start:n.state1.id,end:n.state2.id,arrowhead:"normal",arrowTypeEnd:T?"arrow_barb_neo":"arrow_barb",style:ae,labelStyle:"",label:w.sanitizeText(n.description??"",m()),arrowheadStyle:ne,labelpos:oe,labelType:le,thickness:ce,classes:he,look:S};d.push(E),Z++}break}})},"setupDoc"),te=t((e,s=re)=>{let o=s;if(e.doc){for(let r of e.doc)if(r.stmt==="dir")o=r.value}return o},"getDir");function ht(e,s,o){if(!s.id||s.id==="</join></fork>"||s.id==="</choice>")return;if(s.cssClasses){if(!Array.isArray(s.cssCompiledStyles))s.cssCompiledStyles=[];s.cssClasses.split(" ").forEach((d)=>{let u=o.get(d);if(u)s.cssCompiledStyles=[...s.cssCompiledStyles??[],...u.styles]})}let r=e.find((d)=>d.id===s.id);if(r)Object.assign(r,s);else e.push(s)}t(ht,"insertOrUpdateNode");function pe(e){return e?.classes?.join(" ")??""}t(pe,"getClassesFromDbInfo");function Se(e){return e?.styles??[]}t(Se,"getStylesFromDbInfo");var dt=t((e,s,o,r,d,u,S,g)=>{let n=s.id,T=o.get(n),E=pe(T),I=Se(T),N=m(),P=E.trim()!==""||I.length>0;if(l.info("dataFetcher parsedItem",s,T,I),n!=="root"){let C=Bt;if(s.start===!0)C=Ce;else if(s.start===!1)C=Ae;if(s.type!==ut)C=s.type;if(!Lt.get(n))Lt.set(n,{id:n,shape:C,description:w.sanitizeText(n,N),cssClasses:`${E} ${Ie}`,cssStyles:I});let p=Lt.get(n);if(s.description){if(Array.isArray(p.description))p.shape=Yt,p.description.push(s.description);else if(p.description?.length&&p.description.length>0)if(p.shape=Yt,p.description===n)p.description=[s.description];else p.description=[p.description,s.description];else p.shape=Bt,p.description=s.description;p.description=w.sanitizeTextOrArray(p.description,N)}if(p.description?.length===1&&p.shape===Yt)if(p.type==="group")p.shape=Qt;else p.shape=Bt;if(!p.type&&s.doc)l.info("Setting cluster for XCX",n,te(s)),p.type="group",p.isGroup=!0,p.dir=te(s),p.shape=s.type===ie?Wt:Qt,p.colorIndex=Me(p.shape,n,e,P),p.cssClasses=`${p.cssClasses} ${Pe} ${u?Ge:""}`;let O={labelStyle:"",shape:p.shape,label:p.description,cssClasses:p.cssClasses,cssCompiledStyles:[],cssStyles:p.cssStyles,id:n,dir:p.dir,domId:It(n,Z),type:p.type,isGroup:p.type==="group",colorIndex:p.colorIndex,padding:8,rx:10,ry:10,look:S,labelType:"markdown"};if(O.shape===Wt)O.label="";if(e&&e.id!=="root")l.trace("Setting node ",n," to be child of its parent ",e.id),O.parentId=e.id;if(O.centerLabel=!0,s.note){let A={labelStyle:"",shape:xe,label:s.note.text,labelType:"markdown",cssClasses:$e,cssStyles:[],cssCompiledStyles:[],id:n+Ve+"-"+Z,domId:It(n,Z,ue),type:"node",isGroup:!1,padding:N.flowchart?.padding,look:S,position:s.note.position},Y=n+Zt,R={labelStyle:"",shape:Le,label:s.note.text,cssClasses:p.cssClasses,cssStyles:[],id:n+Zt,domId:It(n,Z,de),type:"group",isGroup:!0,padding:16,look:S,position:s.note.position};Z++,R.id=Y,A.parentId=Y,ht(r,R,g),ht(r,A,g),ht(r,O,g);let M=n,D=A.id;if(s.note.position==="left of")M=A.id,D=n;d.push({id:M+"-"+D,start:M,end:D,arrowhead:"none",arrowTypeEnd:"",style:ae,labelStyle:"",classes:Re,pattern:"dashed",arrowheadStyle:ne,labelpos:oe,labelType:le,thickness:ce,look:S})}else ht(r,O,g)}if(s.doc)l.trace("Adding nodes children "),We(s,s.doc,o,r,d,!u,S,g)},"dataFetcher"),je=t(()=>{Lt.clear(),Z=0,fe=0,ct.clear()},"reset"),ge=t((e,s=re)=>{if(!e.doc)return s;let o=s;for(let r of e.doc)if(r.stmt==="dir")o=r.value;return o},"getDir"),Ue=t(function(e,s){return s.db.getClasses()},"getClasses"),He=t(async function(e,s,o,r){l.info("REF0:"),l.info("Drawing state diagram (v2)",s);let{securityLevel:d,state:u,layout:S}=m();r.db.extract(r.db.getRootDocV2());let g=r.db.getData(),n=Gt(s,d);if(g.type=r.type,g.layoutAlgorithm=Ut(S),g.nodeSpacing=u?.nodeSpacing||50,g.rankSpacing=u?.rankSpacing||50,m().look==="neo")g.markers=["barbNeo"];else g.markers=["barb"];g.diagramId=s,await zt(g,n);let E=8;try{(typeof r.db.getLinks==="function"?r.db.getLinks():new Map).forEach((N,P)=>{let C=typeof P==="string"?P:typeof P?.id==="string"?P.id:"",p=g.nodes.find((D)=>D.id===C);if(!C){l.warn("⚠️ Invalid or missing stateId from key:",JSON.stringify(P));return}let O=n.node()?.querySelectorAll("g.node, g.rough-node"),A;if(O?.forEach((D)=>{let st=D.textContent?.trim();if(D.id===p?.domId||st===C)A=D}),!A){l.warn("⚠️ Could not find node matching text:",C);return}let Y=A.parentNode;if(!Y){l.warn("⚠️ Node has no parent, cannot wrap:",C);return}let R=document.createElementNS("http://www.w3.org/2000/svg","a"),M=N.url.replace(/^"+|"+$/g,"");if(R.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",M),R.setAttribute("target","_blank"),N.tooltip){let D=N.tooltip.replace(/^"+|"+$/g,"");R.setAttribute("title",D),A.setAttribute("title",D)}Y.replaceChild(R,A),R.appendChild(A),l.info("\uD83D\uDD17 Wrapped node in <a> tag for:",C,N.url)})}catch(I){l.error("❌ Error injecting clickable links:",I)}V.insertTitle(n,"statediagramTitleText",u?.titleTopMargin??25,r.db.getDiagramTitle()),Ct(n,E,pt,u?.useMaxWidth??!0)},"draw"),ze={getClasses:Ue,draw:He,getDir:ge},L={START_NODE:"[*]",START_TYPE:"start",END_NODE:"[*]",END_TYPE:"end",COLOR_KEYWORD:"color",FILL_KEYWORD:"fill",BG_FILL:"bgFill",STYLECLASS_SEP:","},ee=t(()=>new Map,"newClassesList"),se=t(()=>({relations:[],states:new Map,documents:{}}),"newDoc"),xt=t((e)=>JSON.parse(JSON.stringify(e)),"clone"),Ke=class{constructor(e){this.version=e,this.nodes=[],this.edges=[],this.rootDoc=[],this.classes=ee(),this.documents={root:se()},this.currentDocument=this.documents.root,this.startEndCount=0,this.dividerCnt=0,this.links=new Map,this.funs=[],this.getAccTitle=j,this.setAccTitle=z,this.getAccDescription=H,this.setAccDescription=U,this.setDiagramTitle=W,this.getDiagramTitle=q,this.clear(),this.setRootDoc=this.setRootDoc.bind(this),this.getDividerId=this.getDividerId.bind(this),this.setDirection=this.setDirection.bind(this),this.trimColon=this.trimColon.bind(this),this.bindFunctions=this.bindFunctions.bind(this)}static{t(this,"StateDB")}static{this.relationType={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3}}extract(e){this.clear(!0);for(let r of Array.isArray(e)?e:e.doc)switch(r.stmt){case ot:this.addState(r.id.trim(),r.type,r.doc,r.description,r.note);break;case Mt:this.addRelation(r.state1,r.state2,r.description);break;case _e:this.addStyleClass(r.id.trim(),r.classes);break;case ve:this.handleStyleDef(r);break;case De:this.setCssClass(r.id.trim(),r.styleClass);break;case"click":this.addLink(r.id,r.url,r.tooltip);break}let s=this.getStates(),o=m();je(),dt(void 0,this.getRootDocV2(),s,this.nodes,this.edges,!0,o.look,this.classes);for(let r of this.nodes){if(!Array.isArray(r.label))continue;if(r.description=r.label.slice(1),r.isGroup&&r.description.length>0)throw Error(`Group nodes can only have label. Remove the additional description for node [${r.id}]`);r.label=r.label[0]}}handleStyleDef(e){let s=e.id.trim().split(","),o=e.styleClass.split(",");for(let r of s){let d=this.getState(r);if(!d){let u=r.trim();this.addState(u),d=this.getState(u)}if(d)d.styles=o.map((u)=>u.replace(/;/g,"")?.trim())}}setRootDoc(e){if(l.info("Setting root doc",e),this.rootDoc=e,this.version===1)this.extract(e);else this.extract(this.getRootDocV2())}docTranslator(e,s,o){if(s.stmt===Mt){this.docTranslator(e,s.state1,!0),this.docTranslator(e,s.state2,!1);return}if(s.stmt===ot)if(s.id===L.START_NODE)s.id=e.id+(o?"_start":"_end"),s.start=o;else s.id=s.id.trim();if(s.stmt!==nt&&s.stmt!==ot||!s.doc)return;let r=[],d=[];for(let u of s.doc)if(u.type===ie){let S=xt(u);S.doc=xt(d),r.push(S),d=[]}else d.push(u);if(r.length>0&&d.length>0){let u={stmt:ot,id:oA(),type:"divider",doc:xt(d)};r.push(xt(u)),s.doc=r}s.doc.forEach((u)=>this.docTranslator(s,u,!0))}getRootDocV2(){return this.docTranslator({id:nt,stmt:nt},{id:nt,stmt:nt,doc:this.rootDoc},!0),{id:nt,doc:this.rootDoc}}addState(e,s=ut,o=void 0,r=void 0,d=void 0,u=void 0,S=void 0,g=void 0){let n=e?.trim();if(!this.currentDocument.states.has(n))l.info("Adding state ",n,r),this.currentDocument.states.set(n,{stmt:ot,id:n,descriptions:[],type:s,doc:o,note:d,classes:[],styles:[],textStyles:[]});else{let T=this.currentDocument.states.get(n);if(!T)throw Error(`State not found: ${n}`);if(!T.doc)T.doc=o;if(!T.type)T.type=s}if(r)l.info("Setting state description",n,r),(Array.isArray(r)?r:[r]).forEach((E)=>this.addDescription(n,E.trim()));if(d){let T=this.currentDocument.states.get(n);if(!T)throw Error(`State not found: ${n}`);T.note=d,T.note.text=w.sanitizeText(T.note.text,m())}if(u)l.info("Setting state classes",n,u),(Array.isArray(u)?u:[u]).forEach((E)=>this.setCssClass(n,E.trim()));if(S)l.info("Setting state styles",n,S),(Array.isArray(S)?S:[S]).forEach((E)=>this.setStyle(n,E.trim()));if(g)l.info("Setting state styles",n,S),(Array.isArray(g)?g:[g]).forEach((E)=>this.setTextStyle(n,E.trim()))}clear(e){if(this.nodes=[],this.edges=[],this.funs=[this.setupToolTips.bind(this)],this.documents={root:se()},this.currentDocument=this.documents.root,this.startEndCount=0,this.classes=ee(),!e)this.links=new Map,F()}getState(e){return this.currentDocument.states.get(e)}getStates(){return this.currentDocument.states}logDocuments(){l.info("Documents = ",this.documents)}getRelations(){return this.currentDocument.relations}addLink(e,s,o){this.links.set(e,{url:s,tooltip:o}),l.warn("Adding link",e,s,o)}getLinks(){return this.links}startIdIfNeeded(e=""){if(e===L.START_NODE)return this.startEndCount++,`${L.START_TYPE}${this.startEndCount}`;return e}startTypeIfNeeded(e="",s=ut){return e===L.START_NODE?L.START_TYPE:s}endIdIfNeeded(e=""){if(e===L.END_NODE)return this.startEndCount++,`${L.END_TYPE}${this.startEndCount}`;return e}endTypeIfNeeded(e="",s=ut){return e===L.END_NODE?L.END_TYPE:s}addRelationObjs(e,s,o=""){let r=this.startIdIfNeeded(e.id.trim()),d=this.startTypeIfNeeded(e.id.trim(),e.type),u=this.startIdIfNeeded(s.id.trim()),S=this.startTypeIfNeeded(s.id.trim(),s.type);this.addState(r,d,e.doc,e.description,e.note,e.classes,e.styles,e.textStyles),this.addState(u,S,s.doc,s.description,s.note,s.classes,s.styles,s.textStyles),this.currentDocument.relations.push({id1:r,id2:u,relationTitle:w.sanitizeText(o,m())})}addRelation(e,s,o){if(typeof e==="object"&&typeof s==="object")this.addRelationObjs(e,s,o);else if(typeof e==="string"&&typeof s==="string"){let r=this.startIdIfNeeded(e.trim()),d=this.startTypeIfNeeded(e),u=this.endIdIfNeeded(s.trim()),S=this.endTypeIfNeeded(s);this.addState(r,d),this.addState(u,S),this.currentDocument.relations.push({id1:r,id2:u,relationTitle:o?w.sanitizeText(o,m()):void 0})}}addDescription(e,s){let o=this.currentDocument.states.get(e),r=s.startsWith(":")?s.replace(":","").trim():s;o?.descriptions?.push(w.sanitizeText(r,m()))}cleanupLabel(e){return e.startsWith(":")?e.slice(2).trim():e.trim()}getDividerId(){return this.dividerCnt++,`divider-id-${this.dividerCnt}`}addStyleClass(e,s=""){if(!this.classes.has(e))this.classes.set(e,{id:e,styles:[],textStyles:[]});let o=this.classes.get(e);if(s&&o)s.split(L.STYLECLASS_SEP).forEach((r)=>{let d=r.replace(/([^;]*);/,"$1").trim();if(RegExp(L.COLOR_KEYWORD).exec(r)){let S=d.replace(L.FILL_KEYWORD,L.BG_FILL).replace(L.COLOR_KEYWORD,L.FILL_KEYWORD);o.textStyles.push(S)}o.styles.push(d)})}getClasses(){return this.classes}setupToolTips(e){let s=ro();b(e).select("svg").selectAll("g.node, g.rough-node").on("mouseover",(d)=>{let u=b(d.currentTarget),S=u.attr("title");if(S===null)return;let g=d.currentTarget?.getBoundingClientRect();s.transition().duration(200).style("opacity",".9"),s.style("left",window.scrollX+g.left+(g.right-g.left)/2+"px").style("top",window.scrollY+g.bottom+"px"),s.html(Kt.sanitize(S)),u.classed("hover",!0)}).on("mouseout",(d)=>{s.transition().duration(500).style("opacity",0),b(d.currentTarget).classed("hover",!1)})}setCssClass(e,s){e.split(",").forEach((o)=>{let r=this.getState(o);if(!r){let d=o.trim();this.addState(d),r=this.getState(d)}r?.classes?.push(s)})}setStyle(e,s){this.getState(e)?.styles?.push(s)}setTextStyle(e,s){this.getState(e)?.textStyles?.push(s)}bindFunctions(e){this.funs.forEach((s)=>{s(e)})}getDirectionStatement(){return this.rootDoc.find((e)=>e.stmt===qt)}getDirection(){return this.getDirectionStatement()?.value??Ee}setDirection(e){let s=this.getDirectionStatement();if(s)s.value=e;else this.rootDoc.unshift({stmt:qt,value:e})}trimColon(e){return e.startsWith(":")?e.slice(1).trim():e.trim()}getData(){let e=m();for(let s of this.nodes)if(s.wrappingWidth??=e.state?.wrappingWidth,!s.isGroup)s.minWidth??=e.state?.minNodeWidth;return{nodes:this.nodes,edges:this.edges,other:{},config:e,direction:ge(this.getRootDocV2())}}getConfig(){return m().state}},Xe=t((e)=>{let{theme:s,bkgColorArray:o,borderColorArray:r}=e;if(!mt(s,r))return"";let d=ft(e.look),u=wt(o),S="";for(let g=0;g<sa(r);g++){let n=r[g],T=u?`fill: ${o[g%o.length]};`:"",E=`[data-look="${d}"][data-color-id="color-${g}"]`;S+=`
6
+ `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:t(function(){var f=this.next();if(f)return f;else return this.lex()},"lex"),begin:t(function(f){this.conditionStack.push(f)},"begin"),popState:t(function(){var f=this.conditionStack.length-1;if(f>0)return this.conditionStack.pop();else return this.conditionStack[0]},"popState"),_currentRules:t(function(){if(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1])return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules;else return this.conditions.INITIAL.rules},"_currentRules"),topState:t(function(f){if(f=this.conditionStack.length-1-Math.abs(f||0),f>=0)return this.conditionStack[f];else return"INITIAL"},"topState"),pushState:t(function(f){this.begin(f)},"pushState"),stateStackSize:t(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:t(function(f,a,k,_){function i(){let h=a.yytext.indexOf("%%");if(h===0)return!1;if(h>0){let K=a.yytext.slice(0,h),X=a.yytext.slice(h);if(X)f.lexer.unput(X);a.yytext=K}return!0}t(i,"processId");var it=_;switch(k){case 0:return 38;case 1:return 40;case 2:return 39;case 3:return 44;case 4:return 51;case 5:return 52;case 6:return 53;case 7:return 54;case 8:return 5;case 9:break;case 10:break;case 11:break;case 12:break;case 13:return this.pushState("SCALE"),17;break;case 14:return 18;case 15:this.popState();break;case 16:return this.begin("acc_title"),33;break;case 17:return this.popState(),"acc_title_value";break;case 18:return this.begin("acc_descr"),35;break;case 19:return this.popState(),"acc_descr_value";break;case 20:this.begin("acc_descr_multiline");break;case 21:this.popState();break;case 22:return"acc_descr_multiline_value";case 23:return this.pushState("CLASSDEF"),41;break;case 24:return this.popState(),this.pushState("CLASSDEFID"),"DEFAULT_CLASSDEF_ID";break;case 25:return this.popState(),this.pushState("CLASSDEFID"),42;break;case 26:return this.popState(),43;break;case 27:return this.pushState("CLASS"),48;break;case 28:return this.popState(),this.pushState("CLASS_STYLE"),49;break;case 29:return this.popState(),50;break;case 30:return this.pushState("STYLE"),45;break;case 31:return this.popState(),this.pushState("STYLEDEF_STYLES"),46;break;case 32:return this.popState(),47;break;case 33:return this.pushState("SCALE"),17;break;case 34:return 18;case 35:this.popState();break;case 36:this.pushState("STATE");break;case 37:return this.popState(),a.yytext=a.yytext.slice(0,-8).trim(),25;break;case 38:return this.popState(),a.yytext=a.yytext.slice(0,-8).trim(),26;break;case 39:return this.popState(),a.yytext=a.yytext.slice(0,-10).trim(),27;break;case 40:return this.popState(),a.yytext=a.yytext.slice(0,-8).trim(),25;break;case 41:return this.popState(),a.yytext=a.yytext.slice(0,-8).trim(),26;break;case 42:return this.popState(),a.yytext=a.yytext.slice(0,-10).trim(),27;break;case 43:return 51;case 44:return 52;case 45:return 53;case 46:return 54;case 47:this.pushState("STATE_STRING");break;case 48:return this.pushState("STATE_ID"),"AS";break;case 49:if(!i())return;return this.popState(),"ID";break;case 50:this.popState();break;case 51:return"STATE_DESCR";case 52:throw Error('Error: State name must be a single word. Found: "'+a.yytext.trim()+'"');case 53:return 19;case 54:this.popState();break;case 55:return this.popState(),this.pushState("struct"),20;break;case 56:return this.popState(),21;break;case 57:break;case 58:return this.begin("NOTE"),29;break;case 59:return this.popState(),this.pushState("NOTE_ID"),59;break;case 60:return this.popState(),this.pushState("NOTE_ID"),60;break;case 61:this.popState(),this.pushState("FLOATING_NOTE");break;case 62:return this.popState(),this.pushState("FLOATING_NOTE_ID"),"AS";break;case 63:break;case 64:return"NOTE_TEXT";case 65:if(!i())return;return this.popState(),"ID";break;case 66:if(!i())return;return this.popState(),this.pushState("NOTE_TEXT"),24;break;case 67:return this.popState(),a.yytext=a.yytext.substr(2).trim(),31;break;case 68:return this.popState(),a.yytext=a.yytext.slice(0,-8).trim(),31;break;case 69:return 6;case 70:return 6;case 71:return 16;case 72:return 57;case 73:if(!i())return;return 24;case 74:return a.yytext=a.yytext.trim(),14;break;case 75:return 15;case 76:return 28;case 77:return 58;case 78:return 5;case 79:return"INVALID"}},"anonymous"),rules:[/^(?:click\b)/i,/^(?:href\b)/i,/^(?:"[^"]*")/i,/^(?:default\b)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:[\n]+)/i,/^(?:[\s]+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:classDef\s+)/i,/^(?:DEFAULT\s+)/i,/^(?:\w+\s+)/i,/^(?:[^\n]*)/i,/^(?:class\s+)/i,/^(?:(\w+)+((,\s*\w+)*))/i,/^(?:[^\n]*)/i,/^(?:style\s+)/i,/^(?:[\w,]+\s+)/i,/^(?:[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:state\s+)/i,/^(?:.*<<fork>>)/i,/^(?:.*<<join>>)/i,/^(?:.*<<choice>>)/i,/^(?:.*\[\[fork\]\])/i,/^(?:.*\[\[join\]\])/i,/^(?:.*\[\[choice\]\])/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:["])/i,/^(?:\s*as\s+)/i,/^(?:[^\n\{]*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:\w+\s+\w+.*?\{)/i,/^(?:[^\n\s\{]+)/i,/^(?:\n)/i,/^(?:\{)/i,/^(?:\})/i,/^(?:[\n])/i,/^(?:note\s+)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:")/i,/^(?:\s*as\s*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n]*)/i,/^(?:\s*[^:\n\s\-]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:[\s\S]*?\n\s*end note\b)/i,/^(?:stateDiagram\s+)/i,/^(?:stateDiagram-v2\s+)/i,/^(?:hide empty description\b)/i,/^(?:\[\*\])/i,/^(?:[^:\n\s\-\{]+)/i,/^(?:\s*:(?:[^:\n;]|:[^:\n;])+)/i,/^(?:-->)/i,/^(?:--)/i,/^(?::::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{LINE:{rules:[10,11,12],inclusive:!1},struct:{rules:[10,11,12,23,27,30,36,43,44,45,46,56,57,58,72,73,74,75,76,77],inclusive:!1},FLOATING_NOTE_ID:{rules:[65],inclusive:!1},FLOATING_NOTE:{rules:[62,63,64],inclusive:!1},NOTE_TEXT:{rules:[67,68],inclusive:!1},NOTE_ID:{rules:[66],inclusive:!1},NOTE:{rules:[59,60,61],inclusive:!1},STYLEDEF_STYLEOPTS:{rules:[],inclusive:!1},STYLEDEF_STYLES:{rules:[32],inclusive:!1},STYLE_IDS:{rules:[],inclusive:!1},STYLE:{rules:[31],inclusive:!1},CLASS_STYLE:{rules:[29],inclusive:!1},CLASS:{rules:[28],inclusive:!1},CLASSDEFID:{rules:[26],inclusive:!1},CLASSDEF:{rules:[24,25],inclusive:!1},acc_descr_multiline:{rules:[21,22],inclusive:!1},acc_descr:{rules:[19],inclusive:!1},acc_title:{rules:[17],inclusive:!1},SCALE:{rules:[14,15,34,35],inclusive:!1},ALIAS:{rules:[],inclusive:!1},STATE_ID:{rules:[49],inclusive:!1},STATE_STRING:{rules:[50,51],inclusive:!1},FORK_STATE:{rules:[],inclusive:!1},STATE:{rules:[10,11,12,37,38,39,40,41,42,47,48,52,53,54,55],inclusive:!1},ID:{rules:[10,11,12],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,11,12,13,16,18,20,23,27,30,33,36,55,58,69,70,71,72,73,74,75,77,78,79],inclusive:!0}}};return Q}();Nt.lexer=ye;function _t(){this.yy={}}return t(_t,"Parser"),_t.prototype=Nt,Nt.Parser=_t,new _t}();Mt.parser=Mt;var Te=Mt,Ee="TB",re="TB",qt="dir",ot="state",nt="root",Wt="relation",_e="classDef",ve="style",De="applyClass",ut="default",ie="divider",ae="fill:none",ne="fill: #333",oe="c",le="markdown",ce="normal",Bt="rect",Yt="rectWithTitle",Ce="stateStart",Ae="stateEnd",jt="divider",Qt="roundedWithTitle",xe="note",Le="noteGroup",pt="statediagram",we="state",Ie=`${pt}-${we}`,he="transition",Ne="note",Oe="note-edge",Re=`${he} ${Oe}`,$e=`${pt}-${Ne}`,Fe="cluster",Pe=`${pt}-${Fe}`,Be="cluster-alt",Ge=`${pt}-${Be}`,de="parent",ue="note",Ye="state",zt="----",Ve=`${zt}${ue}`,Zt=`${zt}${de}`,wt=new Map,Z=0,fe=0,ct=new Map,Me=t((e,s,o,r)=>{if(e===jt&&o?.id!==void 0&&ct.has(o.id)){let S=ct.get(o.id);return ct.set(s,S),S}let d=fe++,u=r?void 0:d;return ct.set(s,u),u},"colorSlotFor");function It(e="",s=0,o="",r=zt){let d=o!==null&&o.length>0?`${r}${o}`:"";return`${Ye}-${e}${d}-${s}`}t(It,"stateDomId");var We=t((e,s,o,r,d,u,S,g)=>{l.trace("items",s),s.forEach((n)=>{switch(n.stmt){case ot:dt(e,n,o,r,d,u,S,g);break;case ut:dt(e,n,o,r,d,u,S,g);break;case Wt:{dt(e,n.state1,o,r,d,u,S,g),dt(e,n.state2,o,r,d,u,S,g);let T=S==="neo",E={id:"edge"+Z,start:n.state1.id,end:n.state2.id,arrowhead:"normal",arrowTypeEnd:T?"arrow_barb_neo":"arrow_barb",style:ae,labelStyle:"",label:w.sanitizeText(n.description??"",m()),arrowheadStyle:ne,labelpos:oe,labelType:le,thickness:ce,classes:he,look:S};d.push(E),Z++}break}})},"setupDoc"),te=t((e,s=re)=>{let o=s;if(e.doc){for(let r of e.doc)if(r.stmt==="dir")o=r.value}return o},"getDir");function ht(e,s,o){if(!s.id||s.id==="</join></fork>"||s.id==="</choice>")return;if(s.cssClasses){if(!Array.isArray(s.cssCompiledStyles))s.cssCompiledStyles=[];s.cssClasses.split(" ").forEach((d)=>{let u=o.get(d);if(u)s.cssCompiledStyles=[...s.cssCompiledStyles??[],...u.styles]})}let r=e.find((d)=>d.id===s.id);if(r)Object.assign(r,s);else e.push(s)}t(ht,"insertOrUpdateNode");function pe(e){return e?.classes?.join(" ")??""}t(pe,"getClassesFromDbInfo");function Se(e){return e?.styles??[]}t(Se,"getStylesFromDbInfo");var dt=t((e,s,o,r,d,u,S,g)=>{let n=s.id,T=o.get(n),E=pe(T),I=Se(T),N=m(),P=E.trim()!==""||I.length>0;if(l.info("dataFetcher parsedItem",s,T,I),n!=="root"){let C=Bt;if(s.start===!0)C=Ce;else if(s.start===!1)C=Ae;if(s.type!==ut)C=s.type;if(!wt.get(n))wt.set(n,{id:n,shape:C,description:w.sanitizeText(n,N),cssClasses:`${E} ${Ie}`,cssStyles:I});let p=wt.get(n);if(s.description){if(Array.isArray(p.description))p.shape=Yt,p.description.push(s.description);else if(p.description?.length&&p.description.length>0)if(p.shape=Yt,p.description===n)p.description=[s.description];else p.description=[p.description,s.description];else p.shape=Bt,p.description=s.description;p.description=w.sanitizeTextOrArray(p.description,N)}if(p.description?.length===1&&p.shape===Yt)if(p.type==="group")p.shape=Qt;else p.shape=Bt;if(!p.type&&s.doc)l.info("Setting cluster for XCX",n,te(s)),p.type="group",p.isGroup=!0,p.dir=te(s),p.shape=s.type===ie?jt:Qt,p.colorIndex=Me(p.shape,n,e,P),p.cssClasses=`${p.cssClasses} ${Pe} ${u?Ge:""}`;let O={labelStyle:"",shape:p.shape,label:p.description,cssClasses:p.cssClasses,cssCompiledStyles:[],cssStyles:p.cssStyles,id:n,dir:p.dir,domId:It(n,Z),type:p.type,isGroup:p.type==="group",colorIndex:p.colorIndex,padding:8,rx:10,ry:10,look:S,labelType:"markdown"};if(O.shape===jt)O.label="";if(e&&e.id!=="root")l.trace("Setting node ",n," to be child of its parent ",e.id),O.parentId=e.id;if(O.centerLabel=!0,s.note){let A={labelStyle:"",shape:xe,label:s.note.text,labelType:"markdown",cssClasses:$e,cssStyles:[],cssCompiledStyles:[],id:n+Ve+"-"+Z,domId:It(n,Z,ue),type:"node",isGroup:!1,padding:N.flowchart?.padding,look:S,position:s.note.position},Y=n+Zt,R={labelStyle:"",shape:Le,label:s.note.text,cssClasses:p.cssClasses,cssStyles:[],id:n+Zt,domId:It(n,Z,de),type:"group",isGroup:!0,padding:16,look:S,position:s.note.position};Z++,R.id=Y,A.parentId=Y,ht(r,R,g),ht(r,A,g),ht(r,O,g);let M=n,D=A.id;if(s.note.position==="left of")M=A.id,D=n;d.push({id:M+"-"+D,start:M,end:D,arrowhead:"none",arrowTypeEnd:"",style:ae,labelStyle:"",classes:Re,pattern:"dashed",arrowheadStyle:ne,labelpos:oe,labelType:le,thickness:ce,look:S})}else ht(r,O,g)}if(s.doc)l.trace("Adding nodes children "),We(s,s.doc,o,r,d,!u,S,g)},"dataFetcher"),je=t(()=>{wt.clear(),Z=0,fe=0,ct.clear()},"reset"),ge=t((e,s=re)=>{if(!e.doc)return s;let o=s;for(let r of e.doc)if(r.stmt==="dir")o=r.value;return o},"getDir"),Ue=t(function(e,s){return s.db.getClasses()},"getClasses"),He=t(async function(e,s,o,r){l.info("REF0:"),l.info("Drawing state diagram (v2)",s);let{securityLevel:d,state:u,layout:S}=m();r.db.extract(r.db.getRootDocV2());let g=r.db.getData(),n=Ht(s,d);if(g.type=r.type,g.layoutAlgorithm=Gt(S),g.nodeSpacing=u?.nodeSpacing||50,g.rankSpacing=u?.rankSpacing||50,m().look==="neo")g.markers=["barbNeo"];else g.markers=["barb"];g.diagramId=s,await Ut(g,n);let E=8;try{(typeof r.db.getLinks==="function"?r.db.getLinks():new Map).forEach((N,P)=>{let C=typeof P==="string"?P:typeof P?.id==="string"?P.id:"",p=g.nodes.find((D)=>D.id===C);if(!C){l.warn("⚠️ Invalid or missing stateId from key:",JSON.stringify(P));return}let O=n.node()?.querySelectorAll("g.node, g.rough-node"),A;if(O?.forEach((D)=>{let st=D.textContent?.trim();if(D.id===p?.domId||st===C)A=D}),!A){l.warn("⚠️ Could not find node matching text:",C);return}let Y=A.parentNode;if(!Y){l.warn("⚠️ Node has no parent, cannot wrap:",C);return}let R=document.createElementNS("http://www.w3.org/2000/svg","a"),M=N.url.replace(/^"+|"+$/g,"");if(R.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",M),R.setAttribute("target","_blank"),N.tooltip){let D=N.tooltip.replace(/^"+|"+$/g,"");R.setAttribute("title",D),A.setAttribute("title",D)}Y.replaceChild(R,A),R.appendChild(A),l.info("\uD83D\uDD17 Wrapped node in <a> tag for:",C,N.url)})}catch(I){l.error("❌ Error injecting clickable links:",I)}V.insertTitle(n,"statediagramTitleText",u?.titleTopMargin??25,r.db.getDiagramTitle()),Et(n,E,pt,u?.useMaxWidth??!0)},"draw"),ze={getClasses:Ue,draw:He,getDir:ge},L={START_NODE:"[*]",START_TYPE:"start",END_NODE:"[*]",END_TYPE:"end",COLOR_KEYWORD:"color",FILL_KEYWORD:"fill",BG_FILL:"bgFill",STYLECLASS_SEP:","},ee=t(()=>new Map,"newClassesList"),se=t(()=>({relations:[],states:new Map,documents:{}}),"newDoc"),Lt=t((e)=>JSON.parse(JSON.stringify(e)),"clone"),Ke=class{constructor(e){this.version=e,this.nodes=[],this.edges=[],this.rootDoc=[],this.classes=ee(),this.documents={root:se()},this.currentDocument=this.documents.root,this.startEndCount=0,this.dividerCnt=0,this.links=new Map,this.funs=[],this.getAccTitle=H,this.setAccTitle=z,this.getAccDescription=j,this.setAccDescription=U,this.setDiagramTitle=W,this.getDiagramTitle=q,this.clear(),this.setRootDoc=this.setRootDoc.bind(this),this.getDividerId=this.getDividerId.bind(this),this.setDirection=this.setDirection.bind(this),this.trimColon=this.trimColon.bind(this),this.bindFunctions=this.bindFunctions.bind(this)}static{t(this,"StateDB")}static{this.relationType={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3}}extract(e){this.clear(!0);for(let r of Array.isArray(e)?e:e.doc)switch(r.stmt){case ot:this.addState(r.id.trim(),r.type,r.doc,r.description,r.note);break;case Wt:this.addRelation(r.state1,r.state2,r.description);break;case _e:this.addStyleClass(r.id.trim(),r.classes);break;case ve:this.handleStyleDef(r);break;case De:this.setCssClass(r.id.trim(),r.styleClass);break;case"click":this.addLink(r.id,r.url,r.tooltip);break}let s=this.getStates(),o=m();je(),dt(void 0,this.getRootDocV2(),s,this.nodes,this.edges,!0,o.look,this.classes);for(let r of this.nodes){if(!Array.isArray(r.label))continue;if(r.description=r.label.slice(1),r.isGroup&&r.description.length>0)throw Error(`Group nodes can only have label. Remove the additional description for node [${r.id}]`);r.label=r.label[0]}}handleStyleDef(e){let s=e.id.trim().split(","),o=e.styleClass.split(",");for(let r of s){let d=this.getState(r);if(!d){let u=r.trim();this.addState(u),d=this.getState(u)}if(d)d.styles=o.map((u)=>u.replace(/;/g,"")?.trim())}}setRootDoc(e){if(l.info("Setting root doc",e),this.rootDoc=e,this.version===1)this.extract(e);else this.extract(this.getRootDocV2())}docTranslator(e,s,o){if(s.stmt===Wt){this.docTranslator(e,s.state1,!0),this.docTranslator(e,s.state2,!1);return}if(s.stmt===ot)if(s.id===L.START_NODE)s.id=e.id+(o?"_start":"_end"),s.start=o;else s.id=s.id.trim();if(s.stmt!==nt&&s.stmt!==ot||!s.doc)return;let r=[],d=[];for(let u of s.doc)if(u.type===ie){let S=Lt(u);S.doc=Lt(d),r.push(S),d=[]}else d.push(u);if(r.length>0&&d.length>0){let u={stmt:ot,id:hA(),type:"divider",doc:Lt(d)};r.push(Lt(u)),s.doc=r}s.doc.forEach((u)=>this.docTranslator(s,u,!0))}getRootDocV2(){return this.docTranslator({id:nt,stmt:nt},{id:nt,stmt:nt,doc:this.rootDoc},!0),{id:nt,doc:this.rootDoc}}addState(e,s=ut,o=void 0,r=void 0,d=void 0,u=void 0,S=void 0,g=void 0){let n=e?.trim();if(!this.currentDocument.states.has(n))l.info("Adding state ",n,r),this.currentDocument.states.set(n,{stmt:ot,id:n,descriptions:[],type:s,doc:o,note:d,classes:[],styles:[],textStyles:[]});else{let T=this.currentDocument.states.get(n);if(!T)throw Error(`State not found: ${n}`);if(!T.doc)T.doc=o;if(!T.type)T.type=s}if(r)l.info("Setting state description",n,r),(Array.isArray(r)?r:[r]).forEach((E)=>this.addDescription(n,E.trim()));if(d){let T=this.currentDocument.states.get(n);if(!T)throw Error(`State not found: ${n}`);T.note=d,T.note.text=w.sanitizeText(T.note.text,m())}if(u)l.info("Setting state classes",n,u),(Array.isArray(u)?u:[u]).forEach((E)=>this.setCssClass(n,E.trim()));if(S)l.info("Setting state styles",n,S),(Array.isArray(S)?S:[S]).forEach((E)=>this.setStyle(n,E.trim()));if(g)l.info("Setting state styles",n,S),(Array.isArray(g)?g:[g]).forEach((E)=>this.setTextStyle(n,E.trim()))}clear(e){if(this.nodes=[],this.edges=[],this.funs=[this.setupToolTips.bind(this)],this.documents={root:se()},this.currentDocument=this.documents.root,this.startEndCount=0,this.classes=ee(),!e)this.links=new Map,F()}getState(e){return this.currentDocument.states.get(e)}getStates(){return this.currentDocument.states}logDocuments(){l.info("Documents = ",this.documents)}getRelations(){return this.currentDocument.relations}addLink(e,s,o){this.links.set(e,{url:s,tooltip:o}),l.warn("Adding link",e,s,o)}getLinks(){return this.links}startIdIfNeeded(e=""){if(e===L.START_NODE)return this.startEndCount++,`${L.START_TYPE}${this.startEndCount}`;return e}startTypeIfNeeded(e="",s=ut){return e===L.START_NODE?L.START_TYPE:s}endIdIfNeeded(e=""){if(e===L.END_NODE)return this.startEndCount++,`${L.END_TYPE}${this.startEndCount}`;return e}endTypeIfNeeded(e="",s=ut){return e===L.END_NODE?L.END_TYPE:s}addRelationObjs(e,s,o=""){let r=this.startIdIfNeeded(e.id.trim()),d=this.startTypeIfNeeded(e.id.trim(),e.type),u=this.startIdIfNeeded(s.id.trim()),S=this.startTypeIfNeeded(s.id.trim(),s.type);this.addState(r,d,e.doc,e.description,e.note,e.classes,e.styles,e.textStyles),this.addState(u,S,s.doc,s.description,s.note,s.classes,s.styles,s.textStyles),this.currentDocument.relations.push({id1:r,id2:u,relationTitle:w.sanitizeText(o,m())})}addRelation(e,s,o){if(typeof e==="object"&&typeof s==="object")this.addRelationObjs(e,s,o);else if(typeof e==="string"&&typeof s==="string"){let r=this.startIdIfNeeded(e.trim()),d=this.startTypeIfNeeded(e),u=this.endIdIfNeeded(s.trim()),S=this.endTypeIfNeeded(s);this.addState(r,d),this.addState(u,S),this.currentDocument.relations.push({id1:r,id2:u,relationTitle:o?w.sanitizeText(o,m()):void 0})}}addDescription(e,s){let o=this.currentDocument.states.get(e),r=s.startsWith(":")?s.replace(":","").trim():s;o?.descriptions?.push(w.sanitizeText(r,m()))}cleanupLabel(e){return e.startsWith(":")?e.slice(2).trim():e.trim()}getDividerId(){return this.dividerCnt++,`divider-id-${this.dividerCnt}`}addStyleClass(e,s=""){if(!this.classes.has(e))this.classes.set(e,{id:e,styles:[],textStyles:[]});let o=this.classes.get(e);if(s&&o)s.split(L.STYLECLASS_SEP).forEach((r)=>{let d=r.replace(/([^;]*);/,"$1").trim();if(RegExp(L.COLOR_KEYWORD).exec(r)){let S=d.replace(L.FILL_KEYWORD,L.BG_FILL).replace(L.COLOR_KEYWORD,L.FILL_KEYWORD);o.textStyles.push(S)}o.styles.push(d)})}getClasses(){return this.classes}setupToolTips(e){let s=so();b(e).select("svg").selectAll("g.node, g.rough-node").on("mouseover",(d)=>{let u=b(d.currentTarget),S=u.attr("title");if(S===null)return;let g=d.currentTarget?.getBoundingClientRect();s.transition().duration(200).style("opacity",".9"),s.style("left",window.scrollX+g.left+(g.right-g.left)/2+"px").style("top",window.scrollY+g.bottom+"px"),s.html(Vt.sanitize(S)),u.classed("hover",!0)}).on("mouseout",(d)=>{s.transition().duration(500).style("opacity",0),b(d.currentTarget).classed("hover",!1)})}setCssClass(e,s){e.split(",").forEach((o)=>{let r=this.getState(o);if(!r){let d=o.trim();this.addState(d),r=this.getState(d)}r?.classes?.push(s)})}setStyle(e,s){this.getState(e)?.styles?.push(s)}setTextStyle(e,s){this.getState(e)?.textStyles?.push(s)}bindFunctions(e){this.funs.forEach((s)=>{s(e)})}getDirectionStatement(){return this.rootDoc.find((e)=>e.stmt===qt)}getDirection(){return this.getDirectionStatement()?.value??Ee}setDirection(e){let s=this.getDirectionStatement();if(s)s.value=e;else this.rootDoc.unshift({stmt:qt,value:e})}trimColon(e){return e.startsWith(":")?e.slice(1).trim():e.trim()}getData(){let e=m();for(let s of this.nodes)if(s.wrappingWidth??=e.state?.wrappingWidth,!s.isGroup)s.minWidth??=e.state?.minNodeWidth;return{nodes:this.nodes,edges:this.edges,other:{},config:e,direction:ge(this.getRootDocV2())}}getConfig(){return m().state}},Xe=t((e)=>{let{theme:s,bkgColorArray:o,borderColorArray:r}=e;if(!ft(s,r))return"";let d=gt(e.look),u=Ct(o),S="";for(let g=0;g<ca(r);g++){let n=r[g],T=u?`fill: ${o[g%o.length]};`:"",E=`[data-look="${d}"][data-color-id="color-${g}"]`;S+=`
7
7
 
8
8
  /* The title strip: \`rect.outer\` spans the whole composite and \`rect.inner\` covers
9
9
  the body, so what stays visible of \`outer\` is the band behind the label. */
@@ -1 +1 @@
1
- import{Xe}from"./index-a3bpmw2r.js";import{Ka,mp}from"./index-97sw4d9n.js";import{It}from"./index-10vzyga1.js";var e=Object.freeze(JSON.parse('{"displayName":"Svelte","fileTypes":["svelte"],"injections":{"L:(meta.script.svelte | meta.style.svelte) (meta.lang.js | meta.lang.javascript) - (meta source)":{"patterns":[{"begin":"(?<=>)(?!</)","contentName":"source.js","end":"(?=</)","name":"meta.embedded.block.svelte","patterns":[{"include":"source.js"}]}]},"L:(meta.script.svelte | meta.style.svelte) (meta.lang.ts | meta.lang.typescript) - (meta source)":{"patterns":[{"begin":"(?<=>)(?=[^\\\\n]+</(s(?:cript|tyle))[>\\\\s])","contentName":"source.ts","end":"(?=</(s(?:cript|tyle))[>\\\\s])","name":"meta.embedded.block.svelte","patterns":[{"include":"source.ts"}]},{"begin":"(?<=>)(?!</)","contentName":"source.ts","name":"meta.embedded.block.svelte","patterns":[{"include":"source.ts"}],"while":"^(?!\\\\s*</(s(?:cript|tyle))[>\\\\s])"}]},"L:(meta.script.svelte | meta.style.svelte) meta.lang.coffee - (meta source)":{"patterns":[{"begin":"(?<=>)(?!</)","contentName":"source.coffee","end":"(?=</)","name":"meta.embedded.block.svelte","patterns":[{"include":"source.coffee"}]}]},"L:(source.ts, source.js, source.coffee)":{"patterns":[{"match":"(?<![\\"$\'./_[:alnum:]])\\\\$(?=[_[:alpha:]][$_[:alnum:]]*)","name":"punctuation.definition.variable.svelte"},{"match":"(?<![\\"$\'./_[:alnum:]])(\\\\$\\\\$)(?=props|restProps|slots)","name":"punctuation.definition.variable.svelte"}]},"L:meta.script.svelte - meta.lang - (meta source)":{"patterns":[{"begin":"(?<=>)(?!</)","contentName":"source.js","end":"(?=</)","name":"meta.embedded.block.svelte","patterns":[{"include":"source.js"}]}]},"L:meta.style.svelte - meta.lang - (meta source)":{"patterns":[{"begin":"(?<=>)(?!</)","contentName":"source.css","end":"(?=</)","name":"meta.embedded.block.svelte","patterns":[{"include":"source.css"}]}]},"L:meta.style.svelte meta.lang.css - (meta source)":{"patterns":[{"begin":"(?<=>)(?!</)","contentName":"source.css","end":"(?=</)","name":"meta.embedded.block.svelte","patterns":[{"include":"source.css"}]}]},"L:meta.style.svelte meta.lang.less - (meta source)":{"patterns":[{"begin":"(?<=>)(?!</)","contentName":"source.css.less","end":"(?=</)","name":"meta.embedded.block.svelte","patterns":[{"include":"source.css.less"}]}]},"L:meta.style.svelte meta.lang.postcss - (meta source)":{"patterns":[{"begin":"(?<=>)(?!</)","contentName":"source.css.postcss","end":"(?=</)","name":"meta.embedded.block.svelte","patterns":[{"include":"source.css.postcss"}]}]},"L:meta.style.svelte meta.lang.sass - (meta source)":{"patterns":[{"begin":"(?<=>)(?!</)","contentName":"source.sass","end":"(?=</)","name":"meta.embedded.block.svelte","patterns":[{"include":"source.sass"}]}]},"L:meta.style.svelte meta.lang.scss - (meta source)":{"patterns":[{"begin":"(?<=>)(?!</)","contentName":"source.css.scss","end":"(?=</)","name":"meta.embedded.block.svelte","patterns":[{"include":"source.css.scss"}]}]},"L:meta.style.svelte meta.lang.stylus - (meta source)":{"patterns":[{"begin":"(?<=>)(?!</)","contentName":"source.stylus","end":"(?=</)","name":"meta.embedded.block.svelte","patterns":[{"include":"source.stylus"}]}]},"L:meta.template.svelte - meta.lang - (meta source)":{"patterns":[{"begin":"(?<=>)\\\\s","end":"(?=</template)","patterns":[{"include":"#scope"}]}]},"L:meta.template.svelte meta.lang.pug - (meta source)":{"patterns":[{"begin":"(?<=>)(?!</)","contentName":"text.pug","end":"(?=</)","name":"meta.embedded.block.svelte","patterns":[{"include":"text.pug"}]}]}},"name":"svelte","patterns":[{"include":"#scope"}],"repository":{"attributes":{"patterns":[{"include":"#attributes-comments"},{"include":"#attributes-directives"},{"include":"#attributes-keyvalue"},{"include":"#attributes-attach"},{"include":"#attributes-interpolated"}]},"attributes-attach":{"begin":"(?<![:=])\\\\s*(\\\\{@attach\\\\s)","captures":{"1":{"name":"entity.other.attribute-name.svelte"}},"contentName":"meta.embedded.expression.svelte source.ts","end":"(})","patterns":[{"include":"source.ts"}]},"attributes-comments":{"patterns":[{"match":"//.*$","name":"comment.line.double-slash.svelte"},{"begin":"/\\\\*","end":"\\\\*/","name":"comment.block.svelte"}]},"attributes-directives":{"begin":"(?<!<)(on|use|bind|transition|in|out|animate|let|class|style)(:)(?:((?:--)?[$_[:alpha:]][-$_[:alnum:]]*(?=\\\\s*=))|((?:--)?[$_[:alpha:]][-$_[:alnum:]]*))((\\\\|\\\\w+)*)","beginCaptures":{"1":{"patterns":[{"include":"#attributes-directives-keywords"}]},"2":{"name":"punctuation.definition.keyword.svelte"},"3":{"patterns":[{"include":"#attributes-directives-types-assigned"}]},"4":{"patterns":[{"include":"#attributes-directives-types"}]},"5":{"patterns":[{"match":"\\\\w+","name":"support.function.svelte"},{"match":"\\\\|","name":"punctuation.separator.svelte"}]}},"end":"(?=\\\\s*+[^=\\\\s])","name":"meta.directive.$1.svelte","patterns":[{"begin":"=","beginCaptures":{"0":{"name":"punctuation.separator.key-value.svelte"}},"end":"(?<=[^=\\\\s])(?!\\\\s*=)|(?=/?>)","patterns":[{"include":"#attributes-value"}]}]},"attributes-directives-keywords":{"patterns":[{"match":"on|use|bind","name":"keyword.control.svelte"},{"match":"transition|in|out|animate","name":"keyword.other.animation.svelte"},{"match":"let","name":"storage.type.svelte"},{"match":"class|style","name":"entity.other.attribute-name.svelte"}]},"attributes-directives-types":{"patterns":[{"match":"(?<=(on):).*$","name":"entity.name.type.svelte"},{"match":"(?<=(bind):).*$","name":"variable.parameter.svelte"},{"match":"(?<=(use|transition|in|out|animate):).*$","name":"variable.function.svelte"},{"match":"(?<=(let|class|style):).*$","name":"variable.parameter.svelte"}]},"attributes-directives-types-assigned":{"patterns":[{"match":"(?<=(bind):)this$","name":"variable.language.svelte"},{"match":"(?<=(bind):).*$","name":"entity.name.type.svelte"},{"match":"(?<=(class):).*$","name":"entity.other.attribute-name.class.svelte"},{"match":"(?<=(style):).*$","name":"support.type.property-name.svelte"},{"include":"#attributes-directives-types"}]},"attributes-generics":{"begin":"(generics)(=)([\\"\'])","beginCaptures":{"1":{"name":"entity.other.attribute-name.svelte"},"2":{"name":"punctuation.separator.key-value.svelte"},"3":{"name":"punctuation.definition.string.begin.svelte"}},"contentName":"meta.embedded.expression.svelte source.ts","end":"(\\\\3)","endCaptures":{"1":{"name":"punctuation.definition.string.end.svelte"}},"patterns":[{"include":"#type-parameters"}]},"attributes-interpolated":{"begin":"(?<![:=])\\\\s*(\\\\{)","captures":{"1":{"name":"entity.other.attribute-name.svelte"}},"contentName":"meta.embedded.expression.svelte source.ts","end":"(})","patterns":[{"include":"source.ts"}]},"attributes-keyvalue":{"begin":"((?:--)?[$_[:alpha:]][-$_[:alnum:]]*)","beginCaptures":{"0":{"patterns":[{"match":"--.*","name":"support.type.property-name.svelte"},{"match":".*","name":"entity.other.attribute-name.svelte"}]}},"end":"(?=\\\\s*+[^=\\\\s])","name":"meta.attribute.$1.svelte","patterns":[{"begin":"=","beginCaptures":{"0":{"name":"punctuation.separator.key-value.svelte"}},"end":"(?<=[^=\\\\s])(?!\\\\s*=)|(?=/?>)","patterns":[{"include":"#attributes-value"}]}]},"attributes-value":{"patterns":[{"include":"#interpolation"},{"captures":{"1":{"name":"punctuation.definition.string.begin.svelte"},"2":{"name":"constant.numeric.decimal.svelte"},"3":{"name":"punctuation.definition.string.end.svelte"},"4":{"name":"constant.numeric.decimal.svelte"}},"match":"([\\"\'])([.0-9_]+[%\\\\w]{0,4})(\\\\1)|([.0-9_]+[%\\\\w]{0,4})(?=\\\\s|/?>)"},{"match":"([^\\"\'/<=>`\\\\s]|/(?!>))+","name":"string.unquoted.svelte","patterns":[{"include":"#interpolation"}]},{"begin":"([\\"\'])","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.svelte"}},"end":"\\\\1","endCaptures":{"0":{"name":"punctuation.definition.string.end.svelte"}},"name":"string.quoted.svelte","patterns":[{"include":"#interpolation"}]}]},"comments":{"begin":"<!--","captures":{"0":{"name":"punctuation.definition.comment.svelte"}},"end":"-->","name":"comment.block.svelte","patterns":[{"begin":"(@)(component)","beginCaptures":{"1":{"name":"punctuation.definition.keyword.svelte"},"2":{"name":"storage.type.class.component.svelte keyword.declaration.class.component.svelte"}},"contentName":"comment.block.documentation.svelte","end":"(?=-->)","patterns":[{"captures":{"0":{"patterns":[{"include":"text.html.markdown"}]}},"match":".*?(?=-->)"},{"include":"text.html.markdown"}]},{"match":"\\\\G-?>|<!--(?!>)|<!-(?=-->)|--!>","name":"invalid.illegal.characters-not-allowed-here.svelte"}]},"destructuring":{"patterns":[{"begin":"(?=\\\\{)","end":"(?<=})","name":"meta.embedded.expression.svelte source.ts","patterns":[{"include":"source.ts#object-binding-pattern"}]},{"begin":"(?=\\\\[)","end":"(?<=])","name":"meta.embedded.expression.svelte source.ts","patterns":[{"include":"source.ts#array-binding-pattern"}]}]},"destructuring-const":{"patterns":[{"begin":"(?=\\\\{)","end":"(?<=})","name":"meta.embedded.expression.svelte source.ts","patterns":[{"include":"source.ts#object-binding-pattern-const"}]},{"begin":"(?=\\\\[)","end":"(?<=])","name":"meta.embedded.expression.svelte source.ts","patterns":[{"include":"source.ts#array-binding-pattern-const"}]}]},"interpolation":{"patterns":[{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.section.embedded.begin.svelte"}},"contentName":"meta.embedded.expression.svelte source.ts","end":"}","endCaptures":{"0":{"name":"punctuation.section.embedded.end.svelte"}},"patterns":[{"begin":"\\\\G\\\\s*(?=\\\\{)","end":"(?<=})","patterns":[{"include":"source.ts#object-literal"}]},{"include":"source.ts"}]}]},"scope":{"patterns":[{"include":"#comments"},{"include":"#special-tags"},{"include":"#tags"},{"include":"#interpolation"},{"begin":"(?<=[>}])","end":"(?=[<{])","name":"text.svelte"}]},"special-tags":{"patterns":[{"include":"#special-tags-void"},{"include":"#special-tags-block-begin"},{"include":"#special-tags-block-end"}]},"special-tags-block-begin":{"begin":"(\\\\{)\\\\s*(#([a-z]*))","beginCaptures":{"1":{"name":"punctuation.definition.block.begin.svelte"},"2":{"patterns":[{"include":"#special-tags-keywords"}]}},"end":"(})","endCaptures":{"0":{"name":"punctuation.definition.block.end.svelte"}},"name":"meta.special.$3.svelte meta.special.start.svelte","patterns":[{"include":"#special-tags-modes"}]},"special-tags-block-end":{"begin":"(\\\\{)\\\\s*(/([a-z]*))","beginCaptures":{"1":{"name":"punctuation.definition.block.begin.svelte"},"2":{"patterns":[{"include":"#special-tags-keywords"}]}},"end":"(})","endCaptures":{"1":{"name":"punctuation.definition.block.end.svelte"}},"name":"meta.special.$3.svelte meta.special.end.svelte"},"special-tags-keywords":{"captures":{"1":{"name":"punctuation.definition.keyword.svelte"},"2":{"patterns":[{"match":"if|else\\\\s+if|else","name":"keyword.control.conditional.svelte"},{"match":"each|key","name":"keyword.control.svelte"},{"match":"await|then|catch","name":"keyword.control.flow.svelte"},{"match":"snippet","name":"keyword.control.svelte"},{"match":"html","name":"keyword.other.svelte"},{"match":"render","name":"keyword.other.svelte"},{"match":"debug","name":"keyword.other.debugger.svelte"},{"match":"const","name":"storage.type.svelte"}]}},"match":"([#/:@])(else\\\\s+if|[a-z]*)"},"special-tags-modes":{"patterns":[{"begin":"(?<=(if|key|then|catch|html|render).*?)\\\\G","end":"(?=})","name":"meta.embedded.expression.svelte source.ts","patterns":[{"include":"source.ts"}]},{"begin":"(?<=snippet.*?)\\\\G","end":"(?=})","name":"meta.embedded.expression.svelte source.ts","patterns":[{"captures":{"1":{"name":"entity.name.function.ts"}},"match":"\\\\G\\\\s*([$_[:alpha:]][$_[:alnum:]]*)\\\\s*(?=<)"},{"begin":"(?<=<)","contentName":"meta.type.parameters.ts","end":"(?=>)","patterns":[{"include":"source.ts"}]},{"begin":"(?<=>\\\\s*\\\\()","end":"(?=})","name":"meta.embedded.expression.svelte source.ts","patterns":[{"include":"source.ts"}]},{"begin":"\\\\G","end":"(?=})","name":"meta.embedded.expression.svelte source.ts","patterns":[{"include":"source.ts"}]}]},{"begin":"(?<=const.*?)\\\\G","end":"(?=})","patterns":[{"include":"#destructuring-const"},{"begin":"\\\\G\\\\s*([$_[:alpha:]][$_[:alnum:]]+)\\\\s*","beginCaptures":{"1":{"name":"variable.other.constant.svelte"}},"end":"(?=[:=])"},{"begin":"(?=:)","end":"(?==)","name":"meta.type.annotation.svelte","patterns":[{"include":"source.ts"}]},{"begin":"(?==)","end":"(?=})","name":"meta.embedded.expression.svelte source.ts","patterns":[{"include":"source.ts"}]}]},{"begin":"(?<=each.*?)\\\\G","end":"(?=})","patterns":[{"begin":"\\\\G\\\\s*?(?=\\\\S)","contentName":"meta.embedded.expression.svelte source.ts","end":"(?=(?:^\\\\s*|\\\\s+)(as)|\\\\s*([,}]))","patterns":[{"include":"source.ts"}]},{"begin":"(as)|(?=[,}])","beginCaptures":{"1":{"name":"keyword.control.as.svelte"}},"end":"(?=})","patterns":[{"include":"#destructuring"},{"begin":"\\\\(","captures":{"0":{"name":"meta.brace.round.svelte"}},"contentName":"meta.embedded.expression.svelte source.ts","end":"\\\\)|(?=})","patterns":[{"include":"source.ts"}]},{"captures":{"1":{"name":"meta.embedded.expression.svelte source.ts","patterns":[{"include":"source.ts"}]}},"match":"(\\\\s*([$_[:alpha:]][$_[:alnum:]]*)\\\\s*)"},{"match":",","name":"punctuation.separator.svelte"}]}]},{"begin":"(?<=await.*?)\\\\G","end":"(?=})","patterns":[{"begin":"\\\\G\\\\s*?(?=\\\\S)","contentName":"meta.embedded.expression.svelte source.ts","end":"\\\\s+(then)|(?=})","endCaptures":{"1":{"name":"keyword.control.flow.svelte"}},"patterns":[{"include":"source.ts"}]},{"begin":"(?<=then\\\\b)","contentName":"meta.embedded.expression.svelte source.ts","end":"(?=})","patterns":[{"include":"source.ts"}]}]},{"begin":"(?<=debug.*?)\\\\G","end":"(?=})","patterns":[{"captures":{"0":{"name":"meta.embedded.expression.svelte source.ts","patterns":[{"include":"source.ts"}]}},"match":"[$_[:alpha:]][$_[:alnum:]]*"},{"match":",","name":"punctuation.separator.svelte"}]}]},"special-tags-void":{"begin":"(\\\\{)\\\\s*([:@](else\\\\s+if|[a-z]*))","beginCaptures":{"1":{"name":"punctuation.definition.block.begin.svelte"},"2":{"patterns":[{"include":"#special-tags-keywords"}]}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.block.end.svelte"}},"name":"meta.special.$3.svelte","patterns":[{"include":"#special-tags-modes"}]},"tags":{"patterns":[{"include":"#tags-lang"},{"include":"#tags-void"},{"include":"#tags-general-end"},{"include":"#tags-general-start"}]},"tags-end-node":{"captures":{"1":{"name":"meta.tag.end.svelte punctuation.definition.tag.begin.svelte"},"2":{"name":"meta.tag.end.svelte","patterns":[{"include":"#tags-name"}]},"3":{"name":"meta.tag.end.svelte punctuation.definition.tag.end.svelte"},"4":{"name":"meta.tag.start.svelte punctuation.definition.tag.end.svelte"}},"match":"(</)(.*?)\\\\s*(>)|(/>)"},"tags-general-end":{"begin":"(</)([^/>\\\\s]*)","beginCaptures":{"1":{"name":"meta.tag.end.svelte punctuation.definition.tag.begin.svelte"},"2":{"name":"meta.tag.end.svelte","patterns":[{"include":"#tags-name"}]}},"end":"(>)","endCaptures":{"1":{"name":"meta.tag.end.svelte punctuation.definition.tag.end.svelte"}},"name":"meta.scope.tag.$2.svelte"},"tags-general-start":{"begin":"(<)([^/>\\\\s]*)","beginCaptures":{"0":{"patterns":[{"include":"#tags-start-node"}]}},"end":"(/?>)","endCaptures":{"1":{"name":"meta.tag.start.svelte punctuation.definition.tag.end.svelte"}},"name":"meta.scope.tag.$2.svelte","patterns":[{"include":"#tags-start-attributes"}]},"tags-lang":{"begin":"<(script|style|template)","beginCaptures":{"0":{"patterns":[{"include":"#tags-start-node"}]}},"end":"</\\\\1\\\\s*>|/>","endCaptures":{"0":{"patterns":[{"include":"#tags-end-node"}]}},"name":"meta.$1.svelte","patterns":[{"begin":"\\\\G(?=\\\\s*[^>]*?(type|lang)\\\\s*=\\\\s*([\\"\']?)(?:text/)?(\\\\w+)\\\\2)","end":"(?=</|/>)","name":"meta.lang.$3.svelte","patterns":[{"include":"#tags-lang-start-attributes"}]},{"include":"#tags-lang-start-attributes"}]},"tags-lang-start-attributes":{"begin":"\\\\G","end":"(?=/>)|>","endCaptures":{"0":{"name":"punctuation.definition.tag.end.svelte"}},"name":"meta.tag.start.svelte","patterns":[{"include":"#attributes-generics"},{"include":"#attributes"}]},"tags-name":{"patterns":[{"captures":{"1":{"name":"keyword.control.svelte"},"2":{"name":"punctuation.definition.keyword.svelte"},"3":{"name":"entity.name.tag.svelte"}},"match":"(svelte)(:)([a-z][-:\\\\w]*)"},{"match":"slot","name":"keyword.control.svelte"},{"captures":{"1":{"patterns":[{"match":"\\\\w+","name":"support.class.component.svelte"},{"match":"\\\\.","name":"punctuation.definition.keyword.svelte"}]},"2":{"name":"support.class.component.svelte"}},"match":"(\\\\w+(?:\\\\.\\\\w+)+)|([A-Z]\\\\w*)"},{"match":"[a-z][0-:\\\\w]*-[-0-:\\\\w]*","name":"meta.tag.custom.svelte entity.name.tag.svelte"},{"match":"[a-z][-0-:\\\\w]*","name":"entity.name.tag.svelte"}]},"tags-start-attributes":{"begin":"\\\\G","end":"(?=/?>)","name":"meta.tag.start.svelte","patterns":[{"include":"#attributes"}]},"tags-start-node":{"captures":{"1":{"name":"punctuation.definition.tag.begin.svelte"},"2":{"patterns":[{"include":"#tags-name"}]}},"match":"(<)([^/>\\\\s]*)","name":"meta.tag.start.svelte"},"tags-void":{"begin":"(<)(area|base|br|col|embed|hr|img|input|link|meta|param|source|track|wbr)(?=\\\\s|/?>)","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.svelte"},"2":{"name":"entity.name.tag.svelte"}},"end":"/?>","endCaptures":{"0":{"name":"punctuation.definition.tag.begin.svelte"}},"name":"meta.tag.void.svelte","patterns":[{"include":"#attributes"}]},"type-parameters":{"name":"meta.type.parameters.ts","patterns":[{"include":"source.ts#comment"},{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(extends|in|out|const)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"storage.modifier.ts"},{"include":"source.ts#type"},{"include":"source.ts#punctuation-comma"},{"match":"(=)(?!>)","name":"keyword.operator.assignment.ts"}]}},"scopeName":"source.svelte","embeddedLangs":["javascript","typescript","css","postcss"],"embeddedLangsLazy":["coffee","stylus","sass","scss","less","pug","markdown"]}')),i=[...Xe,...Ka,...It,...mp,e];export{i as default};
1
+ import{tt}from"./index-x1yqmzpr.js";import{Za,yp}from"./index-615je3km.js";import{_t}from"./index-bypkmjrz.js";var e=Object.freeze(JSON.parse('{"displayName":"Svelte","fileTypes":["svelte"],"injections":{"L:(meta.script.svelte | meta.style.svelte) (meta.lang.js | meta.lang.javascript) - (meta source)":{"patterns":[{"begin":"(?<=>)(?!</)","contentName":"source.js","end":"(?=</)","name":"meta.embedded.block.svelte","patterns":[{"include":"source.js"}]}]},"L:(meta.script.svelte | meta.style.svelte) (meta.lang.ts | meta.lang.typescript) - (meta source)":{"patterns":[{"begin":"(?<=>)(?=[^\\\\n]+</(s(?:cript|tyle))[>\\\\s])","contentName":"source.ts","end":"(?=</(s(?:cript|tyle))[>\\\\s])","name":"meta.embedded.block.svelte","patterns":[{"include":"source.ts"}]},{"begin":"(?<=>)(?!</)","contentName":"source.ts","name":"meta.embedded.block.svelte","patterns":[{"include":"source.ts"}],"while":"^(?!\\\\s*</(s(?:cript|tyle))[>\\\\s])"}]},"L:(meta.script.svelte | meta.style.svelte) meta.lang.coffee - (meta source)":{"patterns":[{"begin":"(?<=>)(?!</)","contentName":"source.coffee","end":"(?=</)","name":"meta.embedded.block.svelte","patterns":[{"include":"source.coffee"}]}]},"L:(source.ts, source.js, source.coffee)":{"patterns":[{"match":"(?<![\\"$\'./_[:alnum:]])\\\\$(?=[_[:alpha:]][$_[:alnum:]]*)","name":"punctuation.definition.variable.svelte"},{"match":"(?<![\\"$\'./_[:alnum:]])(\\\\$\\\\$)(?=props|restProps|slots)","name":"punctuation.definition.variable.svelte"}]},"L:meta.script.svelte - meta.lang - (meta source)":{"patterns":[{"begin":"(?<=>)(?!</)","contentName":"source.js","end":"(?=</)","name":"meta.embedded.block.svelte","patterns":[{"include":"source.js"}]}]},"L:meta.style.svelte - meta.lang - (meta source)":{"patterns":[{"begin":"(?<=>)(?!</)","contentName":"source.css","end":"(?=</)","name":"meta.embedded.block.svelte","patterns":[{"include":"source.css"}]}]},"L:meta.style.svelte meta.lang.css - (meta source)":{"patterns":[{"begin":"(?<=>)(?!</)","contentName":"source.css","end":"(?=</)","name":"meta.embedded.block.svelte","patterns":[{"include":"source.css"}]}]},"L:meta.style.svelte meta.lang.less - (meta source)":{"patterns":[{"begin":"(?<=>)(?!</)","contentName":"source.css.less","end":"(?=</)","name":"meta.embedded.block.svelte","patterns":[{"include":"source.css.less"}]}]},"L:meta.style.svelte meta.lang.postcss - (meta source)":{"patterns":[{"begin":"(?<=>)(?!</)","contentName":"source.css.postcss","end":"(?=</)","name":"meta.embedded.block.svelte","patterns":[{"include":"source.css.postcss"}]}]},"L:meta.style.svelte meta.lang.sass - (meta source)":{"patterns":[{"begin":"(?<=>)(?!</)","contentName":"source.sass","end":"(?=</)","name":"meta.embedded.block.svelte","patterns":[{"include":"source.sass"}]}]},"L:meta.style.svelte meta.lang.scss - (meta source)":{"patterns":[{"begin":"(?<=>)(?!</)","contentName":"source.css.scss","end":"(?=</)","name":"meta.embedded.block.svelte","patterns":[{"include":"source.css.scss"}]}]},"L:meta.style.svelte meta.lang.stylus - (meta source)":{"patterns":[{"begin":"(?<=>)(?!</)","contentName":"source.stylus","end":"(?=</)","name":"meta.embedded.block.svelte","patterns":[{"include":"source.stylus"}]}]},"L:meta.template.svelte - meta.lang - (meta source)":{"patterns":[{"begin":"(?<=>)\\\\s","end":"(?=</template)","patterns":[{"include":"#scope"}]}]},"L:meta.template.svelte meta.lang.pug - (meta source)":{"patterns":[{"begin":"(?<=>)(?!</)","contentName":"text.pug","end":"(?=</)","name":"meta.embedded.block.svelte","patterns":[{"include":"text.pug"}]}]}},"name":"svelte","patterns":[{"include":"#scope"}],"repository":{"attributes":{"patterns":[{"include":"#attributes-comments"},{"include":"#attributes-directives"},{"include":"#attributes-keyvalue"},{"include":"#attributes-attach"},{"include":"#attributes-interpolated"}]},"attributes-attach":{"begin":"(?<![:=])\\\\s*(\\\\{@attach\\\\s)","captures":{"1":{"name":"entity.other.attribute-name.svelte"}},"contentName":"meta.embedded.expression.svelte source.ts","end":"(})","patterns":[{"include":"source.ts"}]},"attributes-comments":{"patterns":[{"match":"//.*$","name":"comment.line.double-slash.svelte"},{"begin":"/\\\\*","end":"\\\\*/","name":"comment.block.svelte"}]},"attributes-directives":{"begin":"(?<!<)(on|use|bind|transition|in|out|animate|let|class|style)(:)(?:((?:--)?[$_[:alpha:]][-$_[:alnum:]]*(?=\\\\s*=))|((?:--)?[$_[:alpha:]][-$_[:alnum:]]*))((\\\\|\\\\w+)*)","beginCaptures":{"1":{"patterns":[{"include":"#attributes-directives-keywords"}]},"2":{"name":"punctuation.definition.keyword.svelte"},"3":{"patterns":[{"include":"#attributes-directives-types-assigned"}]},"4":{"patterns":[{"include":"#attributes-directives-types"}]},"5":{"patterns":[{"match":"\\\\w+","name":"support.function.svelte"},{"match":"\\\\|","name":"punctuation.separator.svelte"}]}},"end":"(?=\\\\s*+[^=\\\\s])","name":"meta.directive.$1.svelte","patterns":[{"begin":"=","beginCaptures":{"0":{"name":"punctuation.separator.key-value.svelte"}},"end":"(?<=[^=\\\\s])(?!\\\\s*=)|(?=/?>)","patterns":[{"include":"#attributes-value"}]}]},"attributes-directives-keywords":{"patterns":[{"match":"on|use|bind","name":"keyword.control.svelte"},{"match":"transition|in|out|animate","name":"keyword.other.animation.svelte"},{"match":"let","name":"storage.type.svelte"},{"match":"class|style","name":"entity.other.attribute-name.svelte"}]},"attributes-directives-types":{"patterns":[{"match":"(?<=(on):).*$","name":"entity.name.type.svelte"},{"match":"(?<=(bind):).*$","name":"variable.parameter.svelte"},{"match":"(?<=(use|transition|in|out|animate):).*$","name":"variable.function.svelte"},{"match":"(?<=(let|class|style):).*$","name":"variable.parameter.svelte"}]},"attributes-directives-types-assigned":{"patterns":[{"match":"(?<=(bind):)this$","name":"variable.language.svelte"},{"match":"(?<=(bind):).*$","name":"entity.name.type.svelte"},{"match":"(?<=(class):).*$","name":"entity.other.attribute-name.class.svelte"},{"match":"(?<=(style):).*$","name":"support.type.property-name.svelte"},{"include":"#attributes-directives-types"}]},"attributes-generics":{"begin":"(generics)(=)([\\"\'])","beginCaptures":{"1":{"name":"entity.other.attribute-name.svelte"},"2":{"name":"punctuation.separator.key-value.svelte"},"3":{"name":"punctuation.definition.string.begin.svelte"}},"contentName":"meta.embedded.expression.svelte source.ts","end":"(\\\\3)","endCaptures":{"1":{"name":"punctuation.definition.string.end.svelte"}},"patterns":[{"include":"#type-parameters"}]},"attributes-interpolated":{"begin":"(?<![:=])\\\\s*(\\\\{)","captures":{"1":{"name":"entity.other.attribute-name.svelte"}},"contentName":"meta.embedded.expression.svelte source.ts","end":"(})","patterns":[{"include":"source.ts"}]},"attributes-keyvalue":{"begin":"((?:--)?[$_[:alpha:]][-$_[:alnum:]]*)","beginCaptures":{"0":{"patterns":[{"match":"--.*","name":"support.type.property-name.svelte"},{"match":".*","name":"entity.other.attribute-name.svelte"}]}},"end":"(?=\\\\s*+[^=\\\\s])","name":"meta.attribute.$1.svelte","patterns":[{"begin":"=","beginCaptures":{"0":{"name":"punctuation.separator.key-value.svelte"}},"end":"(?<=[^=\\\\s])(?!\\\\s*=)|(?=/?>)","patterns":[{"include":"#attributes-value"}]}]},"attributes-value":{"patterns":[{"include":"#interpolation"},{"captures":{"1":{"name":"punctuation.definition.string.begin.svelte"},"2":{"name":"constant.numeric.decimal.svelte"},"3":{"name":"punctuation.definition.string.end.svelte"},"4":{"name":"constant.numeric.decimal.svelte"}},"match":"([\\"\'])([.0-9_]+[%\\\\w]{0,4})(\\\\1)|([.0-9_]+[%\\\\w]{0,4})(?=\\\\s|/?>)"},{"match":"([^\\"\'/<=>`\\\\s]|/(?!>))+","name":"string.unquoted.svelte","patterns":[{"include":"#interpolation"}]},{"begin":"([\\"\'])","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.svelte"}},"end":"\\\\1","endCaptures":{"0":{"name":"punctuation.definition.string.end.svelte"}},"name":"string.quoted.svelte","patterns":[{"include":"#interpolation"}]}]},"comments":{"begin":"<!--","captures":{"0":{"name":"punctuation.definition.comment.svelte"}},"end":"-->","name":"comment.block.svelte","patterns":[{"begin":"(@)(component)","beginCaptures":{"1":{"name":"punctuation.definition.keyword.svelte"},"2":{"name":"storage.type.class.component.svelte keyword.declaration.class.component.svelte"}},"contentName":"comment.block.documentation.svelte","end":"(?=-->)","patterns":[{"captures":{"0":{"patterns":[{"include":"text.html.markdown"}]}},"match":".*?(?=-->)"},{"include":"text.html.markdown"}]},{"match":"\\\\G-?>|<!--(?!>)|<!-(?=-->)|--!>","name":"invalid.illegal.characters-not-allowed-here.svelte"}]},"destructuring":{"patterns":[{"begin":"(?=\\\\{)","end":"(?<=})","name":"meta.embedded.expression.svelte source.ts","patterns":[{"include":"source.ts#object-binding-pattern"}]},{"begin":"(?=\\\\[)","end":"(?<=])","name":"meta.embedded.expression.svelte source.ts","patterns":[{"include":"source.ts#array-binding-pattern"}]}]},"destructuring-const":{"patterns":[{"begin":"(?=\\\\{)","end":"(?<=})","name":"meta.embedded.expression.svelte source.ts","patterns":[{"include":"source.ts#object-binding-pattern-const"}]},{"begin":"(?=\\\\[)","end":"(?<=])","name":"meta.embedded.expression.svelte source.ts","patterns":[{"include":"source.ts#array-binding-pattern-const"}]}]},"interpolation":{"patterns":[{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.section.embedded.begin.svelte"}},"contentName":"meta.embedded.expression.svelte source.ts","end":"}","endCaptures":{"0":{"name":"punctuation.section.embedded.end.svelte"}},"patterns":[{"begin":"\\\\G\\\\s*(?=\\\\{)","end":"(?<=})","patterns":[{"include":"source.ts#object-literal"}]},{"include":"source.ts"}]}]},"scope":{"patterns":[{"include":"#comments"},{"include":"#special-tags"},{"include":"#tags"},{"include":"#interpolation"},{"begin":"(?<=[>}])","end":"(?=[<{])","name":"text.svelte"}]},"special-tags":{"patterns":[{"include":"#special-tags-void"},{"include":"#special-tags-block-begin"},{"include":"#special-tags-block-end"}]},"special-tags-block-begin":{"begin":"(\\\\{)\\\\s*(#([a-z]*))","beginCaptures":{"1":{"name":"punctuation.definition.block.begin.svelte"},"2":{"patterns":[{"include":"#special-tags-keywords"}]}},"end":"(})","endCaptures":{"0":{"name":"punctuation.definition.block.end.svelte"}},"name":"meta.special.$3.svelte meta.special.start.svelte","patterns":[{"include":"#special-tags-modes"}]},"special-tags-block-end":{"begin":"(\\\\{)\\\\s*(/([a-z]*))","beginCaptures":{"1":{"name":"punctuation.definition.block.begin.svelte"},"2":{"patterns":[{"include":"#special-tags-keywords"}]}},"end":"(})","endCaptures":{"1":{"name":"punctuation.definition.block.end.svelte"}},"name":"meta.special.$3.svelte meta.special.end.svelte"},"special-tags-keywords":{"captures":{"1":{"name":"punctuation.definition.keyword.svelte"},"2":{"patterns":[{"match":"if|else\\\\s+if|else","name":"keyword.control.conditional.svelte"},{"match":"each|key","name":"keyword.control.svelte"},{"match":"await|then|catch","name":"keyword.control.flow.svelte"},{"match":"snippet","name":"keyword.control.svelte"},{"match":"html","name":"keyword.other.svelte"},{"match":"render","name":"keyword.other.svelte"},{"match":"debug","name":"keyword.other.debugger.svelte"},{"match":"const","name":"storage.type.svelte"}]}},"match":"([#/:@])(else\\\\s+if|[a-z]*)"},"special-tags-modes":{"patterns":[{"begin":"(?<=(if|key|then|catch|html|render).*?)\\\\G","end":"(?=})","name":"meta.embedded.expression.svelte source.ts","patterns":[{"include":"source.ts"}]},{"begin":"(?<=snippet.*?)\\\\G","end":"(?=})","name":"meta.embedded.expression.svelte source.ts","patterns":[{"captures":{"1":{"name":"entity.name.function.ts"}},"match":"\\\\G\\\\s*([$_[:alpha:]][$_[:alnum:]]*)\\\\s*(?=<)"},{"begin":"(?<=<)","contentName":"meta.type.parameters.ts","end":"(?=>)","patterns":[{"include":"source.ts"}]},{"begin":"(?<=>\\\\s*\\\\()","end":"(?=})","name":"meta.embedded.expression.svelte source.ts","patterns":[{"include":"source.ts"}]},{"begin":"\\\\G","end":"(?=})","name":"meta.embedded.expression.svelte source.ts","patterns":[{"include":"source.ts"}]}]},{"begin":"(?<=const.*?)\\\\G","end":"(?=})","patterns":[{"include":"#destructuring-const"},{"begin":"\\\\G\\\\s*([$_[:alpha:]][$_[:alnum:]]+)\\\\s*","beginCaptures":{"1":{"name":"variable.other.constant.svelte"}},"end":"(?=[:=])"},{"begin":"(?=:)","end":"(?==)","name":"meta.type.annotation.svelte","patterns":[{"include":"source.ts"}]},{"begin":"(?==)","end":"(?=})","name":"meta.embedded.expression.svelte source.ts","patterns":[{"include":"source.ts"}]}]},{"begin":"(?<=each.*?)\\\\G","end":"(?=})","patterns":[{"begin":"\\\\G\\\\s*?(?=\\\\S)","contentName":"meta.embedded.expression.svelte source.ts","end":"(?=(?:^\\\\s*|\\\\s+)(as)|\\\\s*([,}]))","patterns":[{"include":"source.ts"}]},{"begin":"(as)|(?=[,}])","beginCaptures":{"1":{"name":"keyword.control.as.svelte"}},"end":"(?=})","patterns":[{"include":"#destructuring"},{"begin":"\\\\(","captures":{"0":{"name":"meta.brace.round.svelte"}},"contentName":"meta.embedded.expression.svelte source.ts","end":"\\\\)|(?=})","patterns":[{"include":"source.ts"}]},{"captures":{"1":{"name":"meta.embedded.expression.svelte source.ts","patterns":[{"include":"source.ts"}]}},"match":"(\\\\s*([$_[:alpha:]][$_[:alnum:]]*)\\\\s*)"},{"match":",","name":"punctuation.separator.svelte"}]}]},{"begin":"(?<=await.*?)\\\\G","end":"(?=})","patterns":[{"begin":"\\\\G\\\\s*?(?=\\\\S)","contentName":"meta.embedded.expression.svelte source.ts","end":"\\\\s+(then)|(?=})","endCaptures":{"1":{"name":"keyword.control.flow.svelte"}},"patterns":[{"include":"source.ts"}]},{"begin":"(?<=then\\\\b)","contentName":"meta.embedded.expression.svelte source.ts","end":"(?=})","patterns":[{"include":"source.ts"}]}]},{"begin":"(?<=debug.*?)\\\\G","end":"(?=})","patterns":[{"captures":{"0":{"name":"meta.embedded.expression.svelte source.ts","patterns":[{"include":"source.ts"}]}},"match":"[$_[:alpha:]][$_[:alnum:]]*"},{"match":",","name":"punctuation.separator.svelte"}]}]},"special-tags-void":{"begin":"(\\\\{)\\\\s*([:@](else\\\\s+if|[a-z]*))","beginCaptures":{"1":{"name":"punctuation.definition.block.begin.svelte"},"2":{"patterns":[{"include":"#special-tags-keywords"}]}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.block.end.svelte"}},"name":"meta.special.$3.svelte","patterns":[{"include":"#special-tags-modes"}]},"tags":{"patterns":[{"include":"#tags-lang"},{"include":"#tags-void"},{"include":"#tags-general-end"},{"include":"#tags-general-start"}]},"tags-end-node":{"captures":{"1":{"name":"meta.tag.end.svelte punctuation.definition.tag.begin.svelte"},"2":{"name":"meta.tag.end.svelte","patterns":[{"include":"#tags-name"}]},"3":{"name":"meta.tag.end.svelte punctuation.definition.tag.end.svelte"},"4":{"name":"meta.tag.start.svelte punctuation.definition.tag.end.svelte"}},"match":"(</)(.*?)\\\\s*(>)|(/>)"},"tags-general-end":{"begin":"(</)([^/>\\\\s]*)","beginCaptures":{"1":{"name":"meta.tag.end.svelte punctuation.definition.tag.begin.svelte"},"2":{"name":"meta.tag.end.svelte","patterns":[{"include":"#tags-name"}]}},"end":"(>)","endCaptures":{"1":{"name":"meta.tag.end.svelte punctuation.definition.tag.end.svelte"}},"name":"meta.scope.tag.$2.svelte"},"tags-general-start":{"begin":"(<)([^/>\\\\s]*)","beginCaptures":{"0":{"patterns":[{"include":"#tags-start-node"}]}},"end":"(/?>)","endCaptures":{"1":{"name":"meta.tag.start.svelte punctuation.definition.tag.end.svelte"}},"name":"meta.scope.tag.$2.svelte","patterns":[{"include":"#tags-start-attributes"}]},"tags-lang":{"begin":"<(script|style|template)","beginCaptures":{"0":{"patterns":[{"include":"#tags-start-node"}]}},"end":"</\\\\1\\\\s*>|/>","endCaptures":{"0":{"patterns":[{"include":"#tags-end-node"}]}},"name":"meta.$1.svelte","patterns":[{"begin":"\\\\G(?=\\\\s*[^>]*?(type|lang)\\\\s*=\\\\s*([\\"\']?)(?:text/)?(\\\\w+)\\\\2)","end":"(?=</|/>)","name":"meta.lang.$3.svelte","patterns":[{"include":"#tags-lang-start-attributes"}]},{"include":"#tags-lang-start-attributes"}]},"tags-lang-start-attributes":{"begin":"\\\\G","end":"(?=/>)|>","endCaptures":{"0":{"name":"punctuation.definition.tag.end.svelte"}},"name":"meta.tag.start.svelte","patterns":[{"include":"#attributes-generics"},{"include":"#attributes"}]},"tags-name":{"patterns":[{"captures":{"1":{"name":"keyword.control.svelte"},"2":{"name":"punctuation.definition.keyword.svelte"},"3":{"name":"entity.name.tag.svelte"}},"match":"(svelte)(:)([a-z][-:\\\\w]*)"},{"match":"slot","name":"keyword.control.svelte"},{"captures":{"1":{"patterns":[{"match":"\\\\w+","name":"support.class.component.svelte"},{"match":"\\\\.","name":"punctuation.definition.keyword.svelte"}]},"2":{"name":"support.class.component.svelte"}},"match":"(\\\\w+(?:\\\\.\\\\w+)+)|([A-Z]\\\\w*)"},{"match":"[a-z][0-:\\\\w]*-[-0-:\\\\w]*","name":"meta.tag.custom.svelte entity.name.tag.svelte"},{"match":"[a-z][-0-:\\\\w]*","name":"entity.name.tag.svelte"}]},"tags-start-attributes":{"begin":"\\\\G","end":"(?=/?>)","name":"meta.tag.start.svelte","patterns":[{"include":"#attributes"}]},"tags-start-node":{"captures":{"1":{"name":"punctuation.definition.tag.begin.svelte"},"2":{"patterns":[{"include":"#tags-name"}]}},"match":"(<)([^/>\\\\s]*)","name":"meta.tag.start.svelte"},"tags-void":{"begin":"(<)(area|base|br|col|embed|hr|img|input|link|meta|param|source|track|wbr)(?=\\\\s|/?>)","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.svelte"},"2":{"name":"entity.name.tag.svelte"}},"end":"/?>","endCaptures":{"0":{"name":"punctuation.definition.tag.begin.svelte"}},"name":"meta.tag.void.svelte","patterns":[{"include":"#attributes"}]},"type-parameters":{"name":"meta.type.parameters.ts","patterns":[{"include":"source.ts#comment"},{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(extends|in|out|const)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"storage.modifier.ts"},{"include":"source.ts#type"},{"include":"source.ts#punctuation-comma"},{"match":"(=)(?!>)","name":"keyword.operator.assignment.ts"}]}},"scopeName":"source.svelte","embeddedLangs":["javascript","typescript","css","postcss"],"embeddedLangsLazy":["coffee","stylus","sass","scss","less","pug","markdown"]}')),i=[...tt,...Za,..._t,...yp,e];export{i as default};