@kabmo-labs/kabmo 0.57.0 → 0.58.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 (525) hide show
  1. package/dist/client/index.html +1 -1
  2. package/dist/client/index.js +523 -506
  3. package/dist/client/static/js/Body-karkrzkc.js +3 -0
  4. package/dist/client/static/js/{CsvGrid-t84xmbk9.js → CsvGrid-j03knmbe.js} +2 -2
  5. package/dist/client/static/js/{DocxView-4jda3szm.js → DocxView-e8408vzs.js} +2 -2
  6. package/dist/client/static/js/{DrawioView-9qvvtnvt.js → DrawioView-fj4mfzch.js} +2 -2
  7. package/dist/client/static/js/{HtmlPreview-4pba1ys5.js → HtmlPreview-9g8xwzgw.js} +1 -1
  8. package/dist/client/static/js/ImageView-sz4fzz9k.js +1 -0
  9. package/dist/client/static/js/LayoutWrapper-q6q4h04a.js +2 -0
  10. package/dist/client/static/js/MergeDiffView-b8f013ws.js +1 -0
  11. package/dist/client/static/js/Modal-ahecatp5.js +60 -0
  12. package/dist/client/static/js/{PdfView-sny55sne.js → PdfView-8jtdx5hd.js} +1 -1
  13. package/dist/client/static/js/SessionsView-jwp8xvw5.js +1 -0
  14. package/dist/client/static/js/{SheetView-ezqak2b4.js → SheetView-hwx8s864.js} +11 -11
  15. package/dist/client/static/js/{SvgPreview-q1cvdf4s.js → SvgPreview-ete36nzv.js} +1 -1
  16. package/dist/client/static/js/{abnfDiagram-O67JEVCF-ftm2qwa3.js → abnfDiagram-O67JEVCF-7nsqzz6z.js} +1 -1
  17. package/dist/client/static/js/architecture-7GRP2DOG-dc7zys46.js +1 -0
  18. package/dist/client/static/js/{architectureDiagram-NJMV4G6O-j8kqfzmf.js → architectureDiagram-NJMV4G6O-xvpkfq2f.js} +11 -11
  19. package/dist/client/static/js/{astro-asmathwv.js → astro-rsrqgjjx.js} +1 -1
  20. package/dist/client/static/js/bash-n5d0esqg.js +1 -0
  21. package/dist/client/static/js/{blockDiagram-BEXU5L5S-m3zpsp9h.js → blockDiagram-BEXU5L5S-0saahcs6.js} +7 -7
  22. package/dist/client/static/js/c-pk766wx0.js +1 -0
  23. package/dist/client/static/js/{c4Diagram-YGBWAQC7-myshvbrx.js → c4Diagram-YGBWAQC7-ktpqnb4a.js} +2 -2
  24. package/dist/client/static/js/{classDiagram-v2-NBCMYWYE-s0cwmsj4.js → classDiagram-v2-NBCMYWYE-x67cz3ms.js} +5 -5
  25. package/dist/client/static/js/{cose-bilkent-JH36ORCC-t5t02sfr.js → cose-bilkent-JH36ORCC-9wzmhkz8.js} +1 -1
  26. package/dist/client/static/js/cpp-3pt91jvm.js +1 -0
  27. package/dist/client/static/js/css-sp1cgdbr.js +1 -0
  28. package/dist/client/static/js/cynefin-OW5HDTMX-9fx59e89.js +1 -0
  29. package/dist/client/static/js/{cynefinDiagram-VND7K2PF-6yxd72sh.js → cynefinDiagram-VND7K2PF-dmmgmv99.js} +2 -2
  30. package/dist/client/static/js/{dagre-6A5THRUB-vft5103m.js → dagre-6A5THRUB-ygkkms1t.js} +2 -2
  31. package/dist/client/static/js/{diagram-22UHCM2B-yy2jfvxt.js → diagram-22UHCM2B-qxj0pqb4.js} +14 -14
  32. package/dist/client/static/js/{diagram-3UASUU5V-1xqhzq20.js → diagram-3UASUU5V-77k8w5dt.js} +1 -1
  33. package/dist/client/static/js/{diagram-ATOU4E4O-f11cxgvm.js → diagram-ATOU4E4O-m0h86vf4.js} +3 -3
  34. package/dist/client/static/js/{diagram-CDSNMT55-gqmkfcp7.js → diagram-CDSNMT55-5v28kaeg.js} +5 -5
  35. package/dist/client/static/js/{diagram-MLGK6HIB-1fg7304a.js → diagram-MLGK6HIB-zgcg9gaz.js} +2 -2
  36. package/dist/client/static/js/{diagram-MPIPVDR6-mem80369.js → diagram-MPIPVDR6-10c9s6e6.js} +2 -2
  37. package/dist/client/static/js/{dockerfile-jarjwxp9.js → dockerfile-dr9sdsqp.js} +1 -1
  38. package/dist/client/static/js/{ebnfDiagram-ZINNZB2B-4rcbvfrj.js → ebnfDiagram-ZINNZB2B-mz4022dz.js} +1 -1
  39. package/dist/client/static/js/{elixir-7q2k61zb.js → elixir-3dy25ex8.js} +1 -1
  40. package/dist/client/static/js/{elk-276RUBZZ-ykd0stxz.js → elk-276RUBZZ-ccerbsag.js} +1 -1
  41. package/dist/client/static/js/{erDiagram-OPXOYQCR-b2th9bk4.js → erDiagram-OPXOYQCR-a8vjyrrw.js} +5 -5
  42. package/dist/client/static/js/{erlang-tjsd7n4d.js → erlang-v7344938.js} +1 -1
  43. package/dist/client/static/js/eventmodeling-NTZA5JFV-61d2ee91.js +1 -0
  44. package/dist/client/static/js/flowDiagram-KWPJA3E3-104ywb7w.js +1 -0
  45. package/dist/client/static/js/{ganttDiagram-FUAMR5RP-64p5r7cx.js → ganttDiagram-FUAMR5RP-sz1g29fp.js} +4 -4
  46. package/dist/client/static/js/gitGraph-4MIJSDKK-zkb30q0t.js +1 -0
  47. package/dist/client/static/js/{gitGraphDiagram-X574FWY7-z3yc333r.js → gitGraphDiagram-X574FWY7-efqk42q0.js} +15 -15
  48. package/dist/client/static/js/graphql-2ntm7jyh.js +1 -0
  49. package/dist/client/static/js/html-mt2yb43b.js +1 -0
  50. package/dist/client/static/js/{index-w659dhe5.js → index-2a0b9ya2.js} +1 -1
  51. package/dist/client/static/js/index-2f6psebk.js +2 -0
  52. package/dist/client/static/js/{index-j9y4tjk0.js → index-3m1dksmy.js} +2 -2
  53. package/dist/client/static/js/{index-668fc1df.js → index-3p732mvs.js} +2 -2
  54. package/dist/client/static/js/{index-3x88t8g9.js → index-3ymw778n.js} +2 -2
  55. package/dist/client/static/js/{index-rbkvw2xs.js → index-5tp3emtg.js} +2 -2
  56. package/dist/client/static/js/{index-h4qmywn5.js → index-6ac860yz.js} +2 -2
  57. package/dist/client/static/js/{index-77wznmg5.js → index-6ey6y9em.js} +2 -2
  58. package/dist/client/static/js/index-6h46r2de.js +1 -0
  59. package/dist/client/static/js/index-6qqsy78z.js +1 -0
  60. package/dist/client/static/js/{index-25zpywv7.js → index-6x0kn8pb.js} +2 -2
  61. package/dist/client/static/js/{index-dxx49b9m.js → index-7ma44af3.js} +3 -3
  62. package/dist/client/static/js/index-7s4dge1z.js +1 -0
  63. package/dist/client/static/js/{index-my856e49.js → index-7ynf3s2w.js} +2 -2
  64. package/dist/client/static/js/index-8aqjj2x2.js +1 -0
  65. package/dist/client/static/js/index-bkwax812.js +1 -0
  66. package/dist/client/static/js/{index-60g0e74a.js → index-dqf0srrp.js} +2 -2
  67. package/dist/client/static/js/{index-mdmtxh1c.js → index-dz18nn65.js} +2 -2
  68. package/dist/client/static/js/{index-5m0se6fk.js → index-e42ys2q3.js} +7 -7
  69. package/dist/client/static/js/{index-wxs0x3g1.js → index-ewryzs4g.js} +2 -2
  70. package/dist/client/static/js/{index-t415df0c.js → index-f31c6jg8.js} +22 -22
  71. package/dist/client/static/js/index-f44k9k8d.css +1 -0
  72. package/dist/client/static/js/{index-nnqyew8n.js → index-fhtnvqgf.js} +2 -2
  73. package/dist/client/static/js/{index-396g4zz4.js → index-gaa39w5q.js} +2 -2
  74. package/dist/client/static/js/{index-hmjb96kb.js → index-gqsnyh8k.js} +2 -2
  75. package/dist/client/static/js/index-gw4c5n3a.js +2 -0
  76. package/dist/client/static/js/index-j863hg0d.js +9 -0
  77. package/dist/client/static/js/{index-e4yj4kbe.js → index-jnxmvxb8.js} +12 -12
  78. package/dist/client/static/js/{index-0prwdwyb.js → index-jxsha63v.js} +2 -2
  79. package/dist/client/static/js/index-k1576e2m.js +2 -0
  80. package/dist/client/static/js/index-k4qshngy.js +4 -0
  81. package/dist/client/static/js/{index-3x3nhs8n.js → index-k56patms.js} +2 -2
  82. package/dist/client/static/js/{index-8pqx5n2p.js → index-kc5yt2cd.js} +2 -2
  83. package/dist/client/static/js/index-mkp3gwag.js +1 -0
  84. package/dist/client/static/js/{index-q9gbwqbe.js → index-nzq51nbb.js} +7 -7
  85. package/dist/client/static/js/{index-c2vc6znd.js → index-q5q8a3qn.js} +2 -2
  86. package/dist/client/static/js/{index-g71wn1pr.js → index-qbqm3c91.js} +5 -5
  87. package/dist/client/static/js/{index-sw370sk7.js → index-qkcmspxq.js} +2 -2
  88. package/dist/client/static/js/index-r1wrke3j.js +1 -0
  89. package/dist/client/static/js/index-rr79n77k.js +470 -0
  90. package/dist/client/static/js/{index-y1j18rha.js → index-rxt8sf9a.js} +2 -2
  91. package/dist/client/static/js/{index-6m5n8b6w.js → index-ssepzdaz.js} +6 -6
  92. package/dist/client/static/js/{index-rsyqf691.js → index-sxag9ptg.js} +2 -2
  93. package/dist/client/static/js/{index-k57bandz.js → index-t71k3b28.js} +2 -2
  94. package/dist/client/static/js/index-tc07gd33.js +2 -0
  95. package/dist/client/static/js/{index-m6eh5g1q.js → index-tdg7hz80.js} +2 -2
  96. package/dist/client/static/js/{index-nt17ejrm.js → index-th61y26d.js} +2 -2
  97. package/dist/client/static/js/{index-ebnd5hnr.js → index-tnxp90ac.js} +1 -1
  98. package/dist/client/static/js/{index-ms80nne4.js → index-tq3t3qm4.js} +2 -2
  99. package/dist/client/static/js/index-ts8rhd06.js +1 -0
  100. package/dist/client/static/js/{index-xtrsvm0d.js → index-v8xhgfeq.js} +2 -2
  101. package/dist/client/static/js/{index-n71ffk62.js → index-vb5a3g01.js} +4 -4
  102. package/dist/client/static/js/{index-bwwgtesb.js → index-ver116ed.js} +1 -1
  103. package/dist/client/static/js/{index-hge0y4vn.js → index-vf01q99d.js} +2 -2
  104. package/dist/client/static/js/{index-wgcgshdh.js → index-w5j1wgcz.js} +1 -1
  105. package/dist/client/static/js/{index-cwwg7k5f.js → index-wnk9k57k.js} +27 -27
  106. package/dist/client/static/js/{index-2gf593e3.js → index-x7h04xzf.js} +2 -2
  107. package/dist/client/static/js/{index-kbaffwp1.js → index-xfyxmaj1.js} +85 -85
  108. package/dist/client/static/js/index-xygk0v3e.js +2 -0
  109. package/dist/client/static/js/{index-kt7c42n7.js → index-y0f3wbc3.js} +2 -2
  110. package/dist/client/static/js/index-zh550byg.js +2 -0
  111. package/dist/client/static/js/info-A6RAGUB7-xxvyt8p8.js +1 -0
  112. package/dist/client/static/js/{infoDiagram-VRGFBTTK-59xq3n1b.js → infoDiagram-VRGFBTTK-rykcacj5.js} +1 -1
  113. package/dist/client/static/js/ini-bdk46a3d.js +1 -0
  114. package/dist/client/static/js/{ishikawaDiagram-OU5B5YK6-v18q4qt7.js → ishikawaDiagram-OU5B5YK6-rj752kd8.js} +3 -3
  115. package/dist/client/static/js/java-3g3925cf.js +1 -0
  116. package/dist/client/static/js/{journeyDiagram-ZHPQQLJL-etazj0p8.js → journeyDiagram-ZHPQQLJL-mtetwn6f.js} +5 -5
  117. package/dist/client/static/js/json-hdyzmffz.js +1 -0
  118. package/dist/client/static/js/jsx-y8r9mrdq.js +1 -0
  119. package/dist/client/static/js/{julia-d18zhpyp.js → julia-mxe3pnz3.js} +1 -1
  120. package/dist/client/static/js/{kanban-definition-PNTS6WVX-ph15e5p2.js → kanban-definition-PNTS6WVX-4h5pw5mm.js} +3 -3
  121. package/dist/client/static/js/lua-wf5k6p3r.js +1 -0
  122. package/dist/client/static/js/markdown-9bf16dx7.js +1 -0
  123. package/dist/client/static/js/{mermaid.core-7ygd161b.js → mermaid.core-bs542jma.js} +8 -8
  124. package/dist/client/static/js/{mindmap-definition-NLK3R4M7-j5xsftrf.js → mindmap-definition-NLK3R4M7-67s4xy7h.js} +5 -5
  125. package/dist/client/static/js/one-dark-pro-541ed4b7.js +1 -0
  126. package/dist/client/static/js/one-light-nr79mykt.js +1 -0
  127. package/dist/client/static/js/packet-AYTQ26CC-cm8jeesg.js +1 -0
  128. package/dist/client/static/js/{pegDiagram-GJSIUBJH-09nvb70v.js → pegDiagram-GJSIUBJH-qykb6ssk.js} +1 -1
  129. package/dist/client/static/js/{perl-sns2qvmf.js → perl-a8eeaqkn.js} +1 -1
  130. package/dist/client/static/js/{php-3q6v9eey.js → php-6gq92zt8.js} +1 -1
  131. package/dist/client/static/js/pie-WAS4IAKB-8b9xgcxv.js +1 -0
  132. package/dist/client/static/js/{pieDiagram-5QR66LMP-6ymh1960.js → pieDiagram-5QR66LMP-mymrrvck.js} +2 -2
  133. package/dist/client/static/js/properties-xk4dn00p.js +1 -0
  134. package/dist/client/static/js/python-7sgz05n4.js +1 -0
  135. package/dist/client/static/js/{quadrantDiagram-O4NWA36T-hk61avw2.js → quadrantDiagram-O4NWA36T-6f8ahd40.js} +6 -6
  136. package/dist/client/static/js/r-w4qxm0pv.js +1 -0
  137. package/dist/client/static/js/radar-RG4KPBEZ-fxr2x2mf.js +1 -0
  138. package/dist/client/static/js/railroad-74A4TZTK-5qd45xk1.js +1 -0
  139. package/dist/client/static/js/railroad-abnf-HS5TGJTU-6fa00vpk.js +1 -0
  140. package/dist/client/static/js/railroad-ebnf-LZEXJU2U-pcbtg7tj.js +1 -0
  141. package/dist/client/static/js/railroad-peg-WCYAUIDC-r0fdhdtp.js +1 -0
  142. package/dist/client/static/js/{railroadDiagram-XR7U4H2S-3jvqrfnb.js → railroadDiagram-XR7U4H2S-c3habpvw.js} +1 -1
  143. package/dist/client/static/js/{requirementDiagram-PLB6GJNP-zthfj48k.js → requirementDiagram-PLB6GJNP-nysqy6te.js} +12 -12
  144. package/dist/client/static/js/{ruby-f9k99tfq.js → ruby-mc826p2e.js} +1 -1
  145. package/dist/client/static/js/{rust-q7n7q6dy.js → rust-m4f4vpvn.js} +1 -1
  146. package/dist/client/static/js/{sankeyDiagram-IPEJSGJF-nh5d6xte.js → sankeyDiagram-IPEJSGJF-s5dtfp3z.js} +4 -4
  147. package/dist/client/static/js/{sass-2syegq28.js → sass-8bq5r2tz.js} +1 -1
  148. package/dist/client/static/js/{sequenceDiagram-PO4LG4MO-crej9b40.js → sequenceDiagram-PO4LG4MO-bb3yp049.js} +21 -21
  149. package/dist/client/static/js/{sizeCapture-INFHLROL-nvvxw58j.js → sizeCapture-INFHLROL-0m2msee7.js} +1 -1
  150. package/dist/client/static/js/{stateDiagram-v2-GCMORJYK-e6tztjnj.js → stateDiagram-v2-GCMORJYK-cd0qgj6t.js} +3 -3
  151. package/dist/client/static/js/{svelte-mm3jfpje.js → svelte-5vrwkc13.js} +1 -1
  152. package/dist/client/static/js/{swimlanes-2SLR337P-xhdqjqmf.js → swimlanes-2SLR337P-rpb01f7p.js} +1 -1
  153. package/dist/client/static/js/swimlanesDiagram-TC7HE7FX-zx36y2c8.js +8 -0
  154. package/dist/client/static/js/{timeline-definition-EJHVYXUP-9cve31zc.js → timeline-definition-EJHVYXUP-tqw2e6y1.js} +5 -5
  155. package/dist/client/static/js/treeView-Q6P3EWNA-9sn2h4ea.js +1 -0
  156. package/dist/client/static/js/treemap-WGGIJYW6-9fzms0pq.js +1 -0
  157. package/dist/client/static/js/tsx-h5yzg80q.js +1 -0
  158. package/dist/client/static/js/typescript-qy1sbhea.js +1 -0
  159. package/dist/client/static/js/{usecaseDiagram-POWQR4AR-asycstwe.js → usecaseDiagram-POWQR4AR-dhf4d5xg.js} +41 -41
  160. package/dist/client/static/js/{vennDiagram-UO4OBE2U-gbzk6era.js → vennDiagram-UO4OBE2U-ztkk79dv.js} +7 -7
  161. package/dist/client/static/js/{vue-e8e3q3hj.js → vue-gmjnxjm3.js} +1 -1
  162. package/dist/client/static/js/wardley-WFR3VGLG-vy6rp5gp.js +1 -0
  163. package/dist/client/static/js/{wardleyDiagram-VNRHLVJA-1swwfszr.js → wardleyDiagram-VNRHLVJA-ahre5tmv.js} +5 -5
  164. package/dist/client/static/js/xml-mrk4xakv.js +1 -0
  165. package/dist/client/static/js/{xychartDiagram-PMCCYNJV-v7qkwv0b.js → xychartDiagram-PMCCYNJV-vak2c50n.js} +6 -6
  166. package/dist/client/static/js/yaml-xaza6dra.js +1 -0
  167. package/package.json +6 -6
  168. package/src/client/bootstrap.d.ts +11 -0
  169. package/src/client/borders.css +3 -4
  170. package/src/client/components/auth/login-screen/index.tsx +1 -1
  171. package/src/client/components/common/ComposerPicker.tsx +1 -1
  172. package/src/client/components/common/CopyButton.tsx +1 -1
  173. package/src/client/components/common/FolderPicker.tsx +1 -1
  174. package/src/client/components/common/SubagentStatusIcon.tsx +2 -2
  175. package/src/client/components/common/ViewportSelector.tsx +2 -2
  176. package/src/client/components/common/batch-selection/BatchActionBar.tsx +1 -1
  177. package/src/client/components/common/batch-selection/BatchDeleteModal.tsx +4 -4
  178. package/src/client/components/common/checkbox/style.ts +1 -1
  179. package/src/client/components/common/context-usage-button/McpSection.tsx +3 -2
  180. package/src/client/components/common/file-icon/index.tsx +3 -3
  181. package/src/client/components/common/harness-glyph/index.tsx +4 -3
  182. package/src/client/components/common/image-viewer/fullscreen.tsx +1 -1
  183. package/src/client/components/common/image-viewer/index.tsx +2 -2
  184. package/src/client/components/common/markdown-review/ReviewPopover.tsx +2 -2
  185. package/src/client/components/common/markdown-review/ReviewSummary.tsx +3 -3
  186. package/src/client/components/common/plugin-render-boundary/index.tsx +1 -1
  187. package/src/client/components/common/server-control/Panel.tsx +1 -1
  188. package/src/client/components/common/server-control/Row.tsx +3 -3
  189. package/src/client/components/common/session-actions-menu/MenuItem.tsx +2 -2
  190. package/src/client/components/common/session-branch/SubagentRow.tsx +1 -1
  191. package/src/client/components/common/session-delete-modal/index.tsx +4 -4
  192. package/src/client/components/common/session-row/StatusSlot.tsx +1 -1
  193. package/src/client/components/common/session-row/index.tsx +40 -2
  194. package/src/client/components/common/session-row/session-row.test.tsx +46 -3
  195. package/src/client/components/common/shell-update-button/Modal.tsx +1 -1
  196. package/src/client/components/common/todo-row/index.tsx +1 -1
  197. package/src/client/components/common/window-controls/index.tsx +1 -1
  198. package/src/client/components/common/workspace-options-menu/index.tsx +4 -4
  199. package/src/client/components/layout/session-sidebar/Toolbar.tsx +2 -2
  200. package/src/client/components/layout/session-sidebar/WorktreeBadge.tsx +1 -1
  201. package/src/client/components/layout/session-sidebar/about-modal/UpdateLogDialog.tsx +1 -1
  202. package/src/client/components/layout/session-sidebar/about-modal/UpdateSection.tsx +3 -3
  203. package/src/client/components/layout/session-sidebar/about-modal/index.tsx +1 -1
  204. package/src/client/components/layout/session-sidebar/modern/FilterChips.tsx +1 -1
  205. package/src/client/components/layout/session-sidebar/new-workspace-modal/DirectoryList.tsx +2 -2
  206. package/src/client/components/layout/session-sidebar/new-workspace-modal/index.tsx +1 -1
  207. package/src/client/components/layout/session-sidebar/scheduler-modal/ModelFields.tsx +1 -1
  208. package/src/client/components/layout/session-sidebar/scheduler-modal/TaskForm.tsx +1 -1
  209. package/src/client/components/layout/session-sidebar/scheduler-modal/TaskList.tsx +4 -4
  210. package/src/client/components/layout/session-sidebar/scheduler-modal/index.tsx +1 -1
  211. package/src/client/components/layout/update-popup/Actions.tsx +1 -1
  212. package/src/client/components/mobile/mobile-right-sidebar/Action.tsx +1 -1
  213. package/src/client/components/mobile/mobile-right-sidebar/Header.tsx +3 -3
  214. package/src/client/components/mobile/mobile-right-sidebar/MissingFileBanner.tsx +2 -2
  215. package/src/client/components/mobile/mobile-right-sidebar/PreviewScroller.tsx +2 -2
  216. package/src/client/components/mobile/mobile-right-sidebar/StatusBar.tsx +2 -2
  217. package/src/client/components/mobile/mobile-session-sidebar/Toolbar.tsx +3 -3
  218. package/src/client/components/settings/Modal.tsx +8 -3
  219. package/src/client/components/settings/SettingsSidebarList.tsx +2 -2
  220. package/src/client/components/settings/Sidebar.tsx +3 -3
  221. package/src/client/components/settings/apply-side-effects.test.ts +46 -0
  222. package/src/client/components/settings/apply-side-effects.ts +8 -0
  223. package/src/client/components/settings/categories/BehaviorSettings.tsx +1 -1
  224. package/src/client/components/settings/categories/OmpSettings.tsx +3 -3
  225. package/src/client/components/settings/categories/UsageSettings.tsx +3 -3
  226. package/src/client/components/settings/categories/agent-settings/DetailPane.tsx +5 -5
  227. package/src/client/components/settings/categories/appearance-settings/CustomThemeEditor.tsx +177 -0
  228. package/src/client/components/settings/categories/appearance-settings/CustomThemeSection.test.tsx +136 -0
  229. package/src/client/components/settings/categories/appearance-settings/CustomThemeSection.tsx +180 -0
  230. package/src/client/components/settings/categories/appearance-settings/ThemeCard.tsx +1 -1
  231. package/src/client/components/settings/categories/appearance-settings/ThemeGrid.tsx +6 -5
  232. package/src/client/components/settings/categories/appearance-settings/ThemePreview.tsx +106 -0
  233. package/src/client/components/settings/categories/appearance-settings/ThemeSection.tsx +7 -3
  234. package/src/client/components/settings/categories/behavior-settings/Editor.tsx +1 -1
  235. package/src/client/components/settings/categories/chat-settings/ToolRenderSection.tsx +1 -1
  236. package/src/client/components/settings/categories/command-settings/DetailPane.tsx +4 -4
  237. package/src/client/components/settings/categories/dictation-settings/ExternalSection.tsx +1 -1
  238. package/src/client/components/settings/categories/git-settings/CommitMessageSection.tsx +1 -1
  239. package/src/client/components/settings/categories/git-settings/IdentitySection.tsx +2 -2
  240. package/src/client/components/settings/categories/harness-settings/AccountLoginPanel.tsx +3 -3
  241. package/src/client/components/settings/categories/harness-settings/AccountsPanel.tsx +13 -83
  242. package/src/client/components/settings/categories/harness-settings/HarnessImportControls.tsx +1 -1
  243. package/src/client/components/settings/categories/mcp-settings/ConnectionTest.tsx +1 -1
  244. package/src/client/components/settings/categories/mcp-settings/DetailPane.tsx +5 -5
  245. package/src/client/components/settings/categories/mcp-settings/ImportModal.tsx +1 -1
  246. package/src/client/components/settings/categories/mcp-settings/KeyValueSection.tsx +1 -1
  247. package/src/client/components/settings/categories/mcp-settings/SidebarList.tsx +2 -2
  248. package/src/client/components/settings/categories/omp-settings/ConfigTabs.tsx +4 -4
  249. package/src/client/components/settings/categories/omp-settings/OrderedChips.tsx +1 -1
  250. package/src/client/components/settings/categories/omp-settings/PresetBar.tsx +3 -3
  251. package/src/client/components/settings/categories/omp-settings/RoleEditor.tsx +2 -2
  252. package/src/client/components/settings/categories/omp-settings/RowEditor.tsx +2 -2
  253. package/src/client/components/settings/categories/panel-plugins/GitFreshness.tsx +2 -2
  254. package/src/client/components/settings/categories/panel-plugins/InstallForm.tsx +3 -3
  255. package/src/client/components/settings/categories/panel-plugins/InstalledList.tsx +1 -1
  256. package/src/client/components/settings/categories/panel-plugins/Meta.tsx +1 -1
  257. package/src/client/components/settings/categories/panel-plugins/PluginCard.tsx +5 -5
  258. package/src/client/components/settings/categories/panel-plugins/ReadmeModal.tsx +1 -1
  259. package/src/client/components/settings/categories/panel-plugins/Registries.tsx +4 -4
  260. package/src/client/components/settings/categories/panel-plugins/Section.tsx +3 -3
  261. package/src/client/components/settings/categories/panel-plugins/SettingsModal.tsx +2 -2
  262. package/src/client/components/settings/categories/panel-plugins/SyncBlockedNotice.tsx +2 -2
  263. package/src/client/components/settings/categories/panel-plugins/Toolbar.tsx +1 -1
  264. package/src/client/components/settings/categories/plugin-settings/DetailPane.tsx +2 -2
  265. package/src/client/components/settings/categories/plugin-settings/MarketplacePane.tsx +4 -4
  266. package/src/client/components/settings/categories/plugin-settings/SettingsSection.tsx +1 -1
  267. package/src/client/components/settings/categories/plugin-settings/SidebarList.tsx +4 -4
  268. package/src/client/components/settings/categories/project-settings/AddProjectModal.tsx +1 -1
  269. package/src/client/components/settings/categories/project-settings/DeleteProjectModal.tsx +3 -3
  270. package/src/client/components/settings/categories/project-settings/DetailsHeader.tsx +1 -1
  271. package/src/client/components/settings/categories/project-settings/IconGrid.tsx +3 -3
  272. package/src/client/components/settings/categories/project-settings/SidebarList.tsx +1 -1
  273. package/src/client/components/settings/categories/project-settings/WorktreeSettings.tsx +2 -2
  274. package/src/client/components/settings/categories/provider-settings/AddModelModal.tsx +3 -3
  275. package/src/client/components/settings/categories/provider-settings/AddProviderModal.tsx +2 -2
  276. package/src/client/components/settings/categories/provider-settings/AuthSection.tsx +3 -3
  277. package/src/client/components/settings/categories/provider-settings/DeleteProviderModal.tsx +3 -3
  278. package/src/client/components/settings/categories/provider-settings/EntryAdvanced.tsx +1 -1
  279. package/src/client/components/settings/categories/provider-settings/EntryModal.tsx +2 -2
  280. package/src/client/components/settings/categories/provider-settings/LoginModal.tsx +2 -2
  281. package/src/client/components/settings/categories/provider-settings/LogoutProviderModal.tsx +3 -3
  282. package/src/client/components/settings/categories/provider-settings/ModelCapabilitiesModal.tsx +1 -1
  283. package/src/client/components/settings/categories/provider-settings/PriceFields.tsx +1 -1
  284. package/src/client/components/settings/categories/skill-catalog/GitImportPanel.tsx +1 -1
  285. package/src/client/components/settings/categories/skill-catalog/SkillCard.tsx +1 -1
  286. package/src/client/components/settings/categories/skill-catalog/SourceRail.tsx +1 -1
  287. package/src/client/components/settings/categories/skill-settings/DetailHeader.tsx +7 -7
  288. package/src/client/components/settings/categories/skill-settings/DetailPane.tsx +1 -1
  289. package/src/client/components/settings/categories/skill-settings/SidebarList.tsx +2 -2
  290. package/src/client/components/settings/categories/usage-settings/ProviderCard.tsx +1 -1
  291. package/src/client/components/settings/categories/usage-settings/SavedResetsSection.tsx +2 -2
  292. package/src/client/components/settings/categories/usage-settings/SidebarList.tsx +1 -1
  293. package/src/client/components/settings/categories/usage-settings/TokenHarborCard.tsx +1 -1
  294. package/src/client/components/settings/categories/voice-settings/speech/EndpointSection.tsx +2 -2
  295. package/src/client/components/settings/categories/voice-settings/speech/EngineSection.tsx +5 -5
  296. package/src/client/components/settings/categories/voice-settings/speech/ModelsSection.tsx +4 -4
  297. package/src/client/components/workspace/browser-panel/ActivityToasts.tsx +2 -2
  298. package/src/client/components/workspace/browser-panel/EngineNotice.tsx +1 -1
  299. package/src/client/components/workspace/browser-panel/index.tsx +2 -2
  300. package/src/client/components/workspace/browser-toolbar/clusters.tsx +2 -2
  301. package/src/client/components/workspace/btw-panel/Messages.tsx +2 -2
  302. package/src/client/components/workspace/btw-panel/TopicMenu.tsx +1 -1
  303. package/src/client/components/workspace/chat-timeline/AiMessageFooterSheet.tsx +1 -1
  304. package/src/client/components/workspace/chat-timeline/ChangedFilesSummary.tsx +7 -7
  305. package/src/client/components/workspace/chat-timeline/ComposerDock.tsx +2 -2
  306. package/src/client/components/workspace/chat-timeline/IrcNotice.tsx +2 -2
  307. package/src/client/components/workspace/chat-timeline/MessageItem.tsx +3 -3
  308. package/src/client/components/workspace/chat-timeline/OrchestrationNotice.tsx +5 -5
  309. package/src/client/components/workspace/chat-timeline/QueueList.tsx +1 -1
  310. package/src/client/components/workspace/chat-timeline/SubagentControls.tsx +1 -1
  311. package/src/client/components/workspace/chat-timeline/SystemNotice.tsx +5 -5
  312. package/src/client/components/workspace/chat-timeline/TaskResultContent.tsx +1 -1
  313. package/src/client/components/workspace/chat-timeline/TimelineBody.tsx +1 -1
  314. package/src/client/components/workspace/chat-timeline/UndoConfirmModal.tsx +1 -1
  315. package/src/client/components/workspace/chat-timeline/block-chrome.test.tsx +2 -2
  316. package/src/client/components/workspace/chat-timeline/chat-input/AttachmentToolbar.tsx +1 -1
  317. package/src/client/components/workspace/chat-timeline/chat-input/ComposerNotice.tsx +2 -2
  318. package/src/client/components/workspace/chat-timeline/chat-input/ComposerRows.tsx +1 -1
  319. package/src/client/components/workspace/chat-timeline/chat-input/GoalBanner.tsx +11 -11
  320. package/src/client/components/workspace/chat-timeline/chat-input/GoalModal.tsx +3 -3
  321. package/src/client/components/workspace/chat-timeline/chat-input/Toolbar.tsx +2 -2
  322. package/src/client/components/workspace/chat-timeline/chat-input/VoiceNotice.tsx +1 -1
  323. package/src/client/components/workspace/chat-timeline/chat-input/props.ts +3 -3
  324. package/src/client/components/workspace/chat-timeline/plan-review/index.tsx +1 -1
  325. package/src/client/components/workspace/chat-timeline/target-picker/WorktreePicker.tsx +2 -2
  326. package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/FormAsk.tsx +1 -1
  327. package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/FormDialog.tsx +1 -1
  328. package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/QuestionCard.tsx +2 -2
  329. package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/SwipeDeck.tsx +7 -7
  330. package/src/client/components/workspace/chat-timeline/tool-renderers/extension-dialog/ApprovalBody.tsx +1 -1
  331. package/src/client/components/workspace/chat-timeline/tool-renderers/hashline-patch/index.tsx +3 -3
  332. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/AstEdit.tsx +5 -5
  333. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Bash.tsx +9 -9
  334. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Debug.tsx +5 -5
  335. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Edit.tsx +5 -5
  336. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Eval.tsx +6 -6
  337. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/FileMatches.tsx +2 -2
  338. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Github.tsx +7 -7
  339. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Goal.tsx +5 -5
  340. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/GoalRecord.tsx +5 -5
  341. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Lsp.tsx +9 -9
  342. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/ManageSkill.tsx +3 -3
  343. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Proc.tsx +8 -8
  344. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Resolve.tsx +3 -3
  345. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/SecurityScan.tsx +6 -6
  346. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/TaskResult.tsx +2 -2
  347. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Todo.tsx +1 -1
  348. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Wait.tsx +7 -7
  349. package/src/client/components/workspace/chat-timeline/tool-renderers/shared/ArtifactChip.tsx +1 -1
  350. package/src/client/components/workspace/chat-timeline/tool-renderers/shared/DiffView.tsx +2 -2
  351. package/src/client/components/workspace/chat-timeline/tool-renderers/shared/EnvelopeHeader.tsx +3 -3
  352. package/src/client/components/workspace/chat-timeline/tool-renderers/shared/ToolCardShell.tsx +4 -4
  353. package/src/client/components/workspace/chat-timeline/tool-renderers/shared/ToolFactChips.tsx +5 -5
  354. package/src/client/components/workspace/chat-timeline/tool-renderers/shared/ToolRowActions.tsx +1 -1
  355. package/src/client/components/workspace/chat-timeline/tool-renderers/shared/card-header.ts +10 -8
  356. package/src/client/components/workspace/chat-timeline/tool-renderers/shared/status-glyph.tsx +3 -3
  357. package/src/client/components/workspace/chat-timeline/tool-renderers/shared/toggle-label.test.ts +37 -0
  358. package/src/client/components/workspace/chat-timeline/tool-renderers/shared/toggle-label.ts +17 -1
  359. package/src/client/components/workspace/chat-timeline/tool-renderers/styles/Tui.test.tsx +50 -21
  360. package/src/client/components/workspace/chat-timeline/tool-renderers/styles/Tui.tsx +21 -17
  361. package/src/client/components/workspace/context-panel/RawJsonViewer.tsx +2 -2
  362. package/src/client/components/workspace/diff-panel/ConflictBanner.tsx +3 -3
  363. package/src/client/components/workspace/diff-panel/Toolbar.tsx +3 -3
  364. package/src/client/components/workspace/diff-panel/index.tsx +3 -3
  365. package/src/client/components/workspace/diff-panel/toolbar-git-actions.tsx +1 -1
  366. package/src/client/components/workspace/editor/ConflictStrip.tsx +2 -2
  367. package/src/client/components/workspace/editor/ExternalChangeStrip.tsx +2 -2
  368. package/src/client/components/workspace/editor/FilePane.tsx +6 -6
  369. package/src/client/components/workspace/editor/FindWidget.tsx +2 -2
  370. package/src/client/components/workspace/editor/GoToLineModal.tsx +1 -1
  371. package/src/client/components/workspace/editor/SaveAsModal.tsx +3 -3
  372. package/src/client/components/workspace/editor/SaveDeletedFileModal.tsx +2 -2
  373. package/src/client/components/workspace/editor/StatusBar.tsx +1 -1
  374. package/src/client/components/workspace/editor/Tabs.test.ts +3 -3
  375. package/src/client/components/workspace/editor/Tabs.tsx +6 -6
  376. package/src/client/components/workspace/editor/Toolbar.tsx +4 -4
  377. package/src/client/components/workspace/editor/toolbar-clusters.tsx +1 -1
  378. package/src/client/components/workspace/editor/viewers/DataGrid.tsx +1 -1
  379. package/src/client/components/workspace/editor/viewers/GridToolbar.tsx +2 -2
  380. package/src/client/components/workspace/editor/viewers/SheetView.tsx +2 -2
  381. package/src/client/components/workspace/editor/viewers/ViewerError.tsx +2 -2
  382. package/src/client/components/workspace/file-explorer/ArchiveModals.tsx +1 -1
  383. package/src/client/components/workspace/file-explorer/ContextMenu.tsx +3 -3
  384. package/src/client/components/workspace/file-explorer/Modals.tsx +3 -3
  385. package/src/client/components/workspace/file-explorer/RowLabel.test.tsx +2 -2
  386. package/src/client/components/workspace/git-panel/BranchToolbar.tsx +2 -2
  387. package/src/client/components/workspace/git-panel/ChangesList.tsx +3 -3
  388. package/src/client/components/workspace/git-panel/ConflictItem.tsx +3 -3
  389. package/src/client/components/workspace/git-panel/FileItem.tsx +1 -1
  390. package/src/client/components/workspace/git-panel/Modals.tsx +1 -1
  391. package/src/client/components/workspace/git-panel/OperationBar.tsx +4 -4
  392. package/src/client/components/workspace/git-panel/StashSection.tsx +1 -1
  393. package/src/client/components/workspace/git-panel/TreeItem.tsx +2 -2
  394. package/src/client/components/workspace/git-panel/branch-modal/BranchRow.tsx +2 -2
  395. package/src/client/components/workspace/git-panel/branch-modal/DeleteDialog.tsx +2 -2
  396. package/src/client/components/workspace/git-panel/branch-modal/index.tsx +2 -2
  397. package/src/client/components/workspace/model-dropdown/HarnessTabs.tsx +31 -76
  398. package/src/client/components/workspace/model-dropdown/Item.tsx +2 -2
  399. package/src/client/components/workspace/model-dropdown/Panel.tsx +15 -9
  400. package/src/client/components/workspace/model-dropdown/Section.tsx +1 -1
  401. package/src/client/components/workspace/model-dropdown/harness-tabs.test.tsx +12 -83
  402. package/src/client/components/workspace/model-dropdown/index.tsx +2 -2
  403. package/src/client/components/workspace/model-dropdown/picker-close.test.tsx +16 -2
  404. package/src/client/components/workspace/plan-panel/PageView.tsx +2 -2
  405. package/src/client/components/workspace/plan-panel/index.tsx +2 -2
  406. package/src/client/components/workspace/plugin-panel/Error.tsx +1 -1
  407. package/src/client/components/workspace/repo-picker/Modal.tsx +3 -3
  408. package/src/client/components/workspace/repo-picker/Row.tsx +5 -5
  409. package/src/client/components/workspace/search-panel/Body.tsx +2 -2
  410. package/src/client/components/workspace/terminal-panel/Header.tsx +3 -3
  411. package/src/client/components/workspace/terminal-panel/KeyBar.tsx +2 -2
  412. package/src/client/components/workspace/terminal-panel/QuickActions.tsx +1 -1
  413. package/src/client/components/workspace/terminal-panel/RealtimeTerminalView.tsx +1 -1
  414. package/src/client/components/workspace/terminal-panel/index.tsx +1 -1
  415. package/src/client/components/workspace/usage-panel/index.tsx +3 -3
  416. package/src/client/components/workspace/user-browser-panel/AddressBar.tsx +1 -1
  417. package/src/client/components/workspace/wiki-panel/PageView.tsx +2 -2
  418. package/src/client/components/workspace/wiki-panel/index.tsx +2 -2
  419. package/src/client/components/workspace/worktree-modal/index.tsx +1 -1
  420. package/src/client/data/settings/omp-schema.json +27 -7
  421. package/src/client/hooks/chat/timeline/session-harness.ts +2 -1
  422. package/src/client/hooks/editor/use-unload-guard.tsx +2 -2
  423. package/src/client/hooks/models/use-harness-accounts-panel.ts +142 -0
  424. package/src/client/hooks/ui/border-style.test.ts +1 -2
  425. package/src/client/hooks/ui/theme.ts +23 -2
  426. package/src/client/main.tsx +7 -1
  427. package/src/client/tailwind-contrast.test.ts +22 -7
  428. package/src/client/tailwind.css +115 -18
  429. package/src/server/lib/assets/theme-css.server.test.ts +31 -1
  430. package/src/server/lib/assets/theme-css.server.ts +15 -1
  431. package/src/server/lib/dictation/capability.server.test.ts +9 -6
  432. package/src/server/lib/dictation/worker-process.ts +9 -2
  433. package/src/server/lib/harness/accounts.test.ts +5 -3
  434. package/src/server/lib/harness/acp/acp-todos.test.ts +23 -0
  435. package/src/server/lib/omp/session/delete.server.ts +4 -0
  436. package/src/server/lib/realtime/topics/session-data.server.ts +63 -1
  437. package/src/server/lib/realtime/topics/session-data.test.ts +154 -0
  438. package/src/server/lib/tray/runtime.server.ts +5 -0
  439. package/src/server/plugins/ssr.ts +16 -4
  440. package/src/server/routes/settings/root.ts +11 -0
  441. package/src/server/routes/settings/settings-store-routes.test.ts +37 -0
  442. package/src/shared/lib/chat/timeline/block-chrome.ts +2 -2
  443. package/src/shared/lib/chat/todo/flat-list.test.ts +81 -0
  444. package/src/shared/lib/chat/todo/flat-list.ts +29 -0
  445. package/src/shared/lib/chat/todo/parser.ts +7 -53
  446. package/src/shared/lib/chat/todo/progress.test.ts +3 -3
  447. package/src/shared/lib/chat/todo/progress.ts +3 -3
  448. package/src/shared/lib/fs/git-status.test.ts +22 -22
  449. package/src/shared/lib/fs/git-status.ts +31 -31
  450. package/src/shared/lib/icons/icon-paint-authority.ts +5 -4
  451. package/src/shared/lib/omp/config/schema-releases-19-4.test.ts +20 -3
  452. package/src/shared/lib/settings/defaults.ts +1 -0
  453. package/src/shared/lib/theme/catalog.test.ts +42 -0
  454. package/src/shared/lib/theme/catalog.ts +66 -11
  455. package/src/shared/lib/theme/css.ts +25 -1
  456. package/src/shared/lib/theme/custom.test.ts +156 -0
  457. package/src/shared/lib/theme/custom.ts +260 -0
  458. package/src/shared/lib/theme/ink-scale.test.ts +83 -2
  459. package/src/shared/lib/theme/ink-scale.ts +74 -9
  460. package/src/shared/lib/theme/shell-palette.ts +3 -3
  461. package/src/shared/lib/theme/theme.test.ts +28 -13
  462. package/src/shared/types/settings/state.ts +11 -3
  463. package/tsconfig.json +6 -0
  464. package/dist/client/static/js/Body-k96gtstv.js +0 -3
  465. package/dist/client/static/js/ImageView-0gf5xdsv.js +0 -1
  466. package/dist/client/static/js/LayoutWrapper-pwbq5syv.js +0 -2
  467. package/dist/client/static/js/MergeDiffView-m4jkr786.js +0 -1
  468. package/dist/client/static/js/Modal-yjszc3vy.js +0 -60
  469. package/dist/client/static/js/SessionsView-q3800n83.js +0 -1
  470. package/dist/client/static/js/architecture-7GRP2DOG-3hkq8grc.js +0 -1
  471. package/dist/client/static/js/bash-n7wcmq3s.js +0 -1
  472. package/dist/client/static/js/c-20y64hcp.js +0 -1
  473. package/dist/client/static/js/cpp-ty6n0dg9.js +0 -1
  474. package/dist/client/static/js/css-ncvxaxt0.js +0 -1
  475. package/dist/client/static/js/cynefin-OW5HDTMX-9m18e6m5.js +0 -1
  476. package/dist/client/static/js/eventmodeling-NTZA5JFV-d4egnv9v.js +0 -1
  477. package/dist/client/static/js/flowDiagram-KWPJA3E3-f3bdtc1z.js +0 -1
  478. package/dist/client/static/js/gitGraph-4MIJSDKK-grqv890n.js +0 -1
  479. package/dist/client/static/js/graphql-6rwdfcnf.js +0 -1
  480. package/dist/client/static/js/html-p76eszt9.js +0 -1
  481. package/dist/client/static/js/index-1mm7kyjd.js +0 -1
  482. package/dist/client/static/js/index-3w18s59k.js +0 -9
  483. package/dist/client/static/js/index-ep353yxd.js +0 -2
  484. package/dist/client/static/js/index-ewtv8gg7.js +0 -1
  485. package/dist/client/static/js/index-gr07t5c4.js +0 -2
  486. package/dist/client/static/js/index-jd2h5tvh.js +0 -2
  487. package/dist/client/static/js/index-k6wms0kx.js +0 -1
  488. package/dist/client/static/js/index-k9v6477a.js +0 -1
  489. package/dist/client/static/js/index-mv83hpva.js +0 -1
  490. package/dist/client/static/js/index-nr5gwny1.js +0 -470
  491. package/dist/client/static/js/index-rqpbva78.js +0 -2
  492. package/dist/client/static/js/index-taz2nfym.css +0 -1
  493. package/dist/client/static/js/index-x6945djv.js +0 -1
  494. package/dist/client/static/js/index-y5mf2w81.js +0 -1
  495. package/dist/client/static/js/index-y69cbdvd.js +0 -2
  496. package/dist/client/static/js/index-y6qtx68e.js +0 -1
  497. package/dist/client/static/js/index-yktwxghr.js +0 -2
  498. package/dist/client/static/js/index-zj65csnm.js +0 -4
  499. package/dist/client/static/js/info-A6RAGUB7-rzpg7qk1.js +0 -1
  500. package/dist/client/static/js/ini-kjcpgebh.js +0 -1
  501. package/dist/client/static/js/java-0bcyv1jt.js +0 -1
  502. package/dist/client/static/js/json-xha2drny.js +0 -1
  503. package/dist/client/static/js/jsx-8p6dqgpq.js +0 -1
  504. package/dist/client/static/js/lua-njwwdj4s.js +0 -1
  505. package/dist/client/static/js/markdown-8gbyxxjd.js +0 -1
  506. package/dist/client/static/js/one-dark-pro-4s2rr12v.js +0 -1
  507. package/dist/client/static/js/one-light-3bkk59ww.js +0 -1
  508. package/dist/client/static/js/packet-AYTQ26CC-eac14hsq.js +0 -1
  509. package/dist/client/static/js/pie-WAS4IAKB-a9xqvysf.js +0 -1
  510. package/dist/client/static/js/properties-d5bwhgwz.js +0 -1
  511. package/dist/client/static/js/python-fdwwjjhh.js +0 -1
  512. package/dist/client/static/js/r-4d2ygtfj.js +0 -1
  513. package/dist/client/static/js/radar-RG4KPBEZ-jv2pm0fe.js +0 -1
  514. package/dist/client/static/js/railroad-74A4TZTK-j74sc0b6.js +0 -1
  515. package/dist/client/static/js/railroad-abnf-HS5TGJTU-eaf19baz.js +0 -1
  516. package/dist/client/static/js/railroad-ebnf-LZEXJU2U-d4j5nq31.js +0 -1
  517. package/dist/client/static/js/railroad-peg-WCYAUIDC-ba862a9p.js +0 -1
  518. package/dist/client/static/js/swimlanesDiagram-TC7HE7FX-hbwg3m3k.js +0 -8
  519. package/dist/client/static/js/treeView-Q6P3EWNA-e8yb44pd.js +0 -1
  520. package/dist/client/static/js/treemap-WGGIJYW6-zvdv84vp.js +0 -1
  521. package/dist/client/static/js/tsx-dk8rpgtw.js +0 -1
  522. package/dist/client/static/js/typescript-5txwpd9t.js +0 -1
  523. package/dist/client/static/js/wardley-WFR3VGLG-hbv0cg4s.js +0 -1
  524. package/dist/client/static/js/xml-8516fzfp.js +0 -1
  525. package/dist/client/static/js/yaml-6k1tmwtm.js +0 -1
@@ -0,0 +1,2 @@
1
+ import{n,o,s,N}from"./index-rr79n77k.js";import{Wr,Wl,wg,Cg,th,rd}from"./index-t71k3b28.js";var cp="omp:editor-theme-changed";function a(){if(typeof window>"u")return Wl;return N("editorTheme")??Wl}var p={theme:null,vars:{},themes:Cg(null)};function Fi(){let[e,t]=n(a);if(o(()=>{let i=(d)=>{let E=d.detail;t(E||a())};return window.addEventListener(cp,i),()=>window.removeEventListener(cp,i)},[]),o(()=>{rd(e)},[e]),e===Wr)return p;let r=wg(e);return{theme:r,vars:th(r),themes:Cg(e)}}var m={name:"save",size:24,node:[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]]},ht=s(m);var up="omp:editor-indent-changed",dp=[2,4,8],Fu={width:2,insertSpaces:!0};function pp(){if(typeof window>"u")return Fu;let e=N("editorIndentWidth"),t=N("editorInsertSpaces");return{width:typeof e==="number"&&dp.includes(e)?e:Fu.width,insertSpaces:typeof t==="boolean"?t:Fu.insertSpaces}}function Pu(e){return e.insertSpaces?" ".repeat(e.width):"\t"}function Ou(){let[e,t]=n(pp);return o(()=>{let r=(i)=>{let d=i.detail;t(d??pp())};return window.addEventListener(up,r),()=>window.removeEventListener(up,r)},[]),e}var mp="omp:editor-typing-changed",Gl={autoCloseBrackets:!0,autocomplete:!0};function $u(){if(typeof window>"u")return Gl;let e=N("editorAutoCloseBrackets"),t=N("editorAutocomplete");return{autoCloseBrackets:typeof e==="boolean"?e:Gl.autoCloseBrackets,autocomplete:typeof t==="boolean"?t:Gl.autocomplete}}function zu(){let[e,t]=n($u);return o(()=>{let r=(i)=>{let d=i.detail;t(d??$u())};return window.addEventListener(mp,r),()=>window.removeEventListener(mp,r)},[]),e}var Os="omp:editor-blame-changed",jl={enabled:!0,inline:!1};function Pi(){if(typeof window>"u")return jl;let e=N("editorBlame"),t=N("editorBlameInline");return{enabled:typeof e==="boolean"?e:jl.enabled,inline:typeof t==="boolean"?t:jl.inline}}function fp(){let[e,t]=n(Pi);return o(()=>{let r=(i)=>{let d=i.detail;t(d??Pi())};return window.addEventListener(Os,r),()=>window.removeEventListener(Os,r)},[]),e}
2
+ export{ht,cp,Fi,up,dp,Fu,pp,Pu,Ou,mp,Gl,$u,zu,Os,jl,Pi,fp};
@@ -1,2 +1,2 @@
1
- var e=Object.freeze(JSON.parse('{"displayName":"Shell","name":"shellscript","patterns":[{"include":"#initial_context"}],"repository":{"alias_statement":{"begin":"[\\\\t ]*+(alias)[\\\\t ]*+((?:((?<!\\\\w)-\\\\w+)\\\\b[\\\\t ]*+)*)[\\\\t ]*+((?<!\\\\w)[-0-9A-Z_a-z]+(?!\\\\w))(?:(\\\\[)((?:(?:\\\\$?(?<!\\\\w)[-0-9A-Z_a-z]+(?!\\\\w)|@)|\\\\*)|(-?\\\\d+))(]))?(?:(?:(=)|(\\\\+=))|(-=))","beginCaptures":{"1":{"name":"storage.type.alias.shell"},"2":{"patterns":[{"match":"(?<!\\\\w)-\\\\w+\\\\b","name":"string.unquoted.argument.shell constant.other.option.shell"}]},"3":{"name":"string.unquoted.argument.shell constant.other.option.shell"},"4":{"name":"variable.other.assignment.shell"},"5":{"name":"punctuation.definition.array.access.shell"},"6":{"name":"variable.other.assignment.shell"},"7":{"name":"constant.numeric.shell constant.numeric.integer.shell"},"8":{"name":"punctuation.definition.array.access.shell"},"9":{"name":"keyword.operator.assignment.shell"},"10":{"name":"keyword.operator.assignment.compound.shell"},"11":{"name":"keyword.operator.assignment.compound.shell"}},"end":"(?=[\\\\t ]|$)|(?:(?:(?:(;)|(&&))|(\\\\|\\\\|))|(&))","endCaptures":{"1":{"name":"punctuation.terminator.statement.semicolon.shell"},"2":{"name":"punctuation.separator.statement.and.shell"},"3":{"name":"punctuation.separator.statement.or.shell"},"4":{"name":"punctuation.separator.statement.background.shell"}},"name":"meta.expression.assignment.alias.shell","patterns":[{"include":"#normal_context"}]},"argument":{"begin":"[\\\\t ]++(?![\\\\n#\\\\&(\\\\[|]|$|;)","beginCaptures":{},"end":"(?=[\\\\t \\\\&;|]|$|[\\\\n)`])","endCaptures":{},"name":"meta.argument.shell","patterns":[{"include":"#argument_context"},{"include":"#line_continuation"}]},"argument_context":{"patterns":[{"captures":{"1":{"name":"string.unquoted.argument.shell","patterns":[{"match":"\\\\*","name":"variable.language.special.wildcard.shell"},{"include":"#variable"},{"include":"#numeric_literal"},{"captures":{"1":{"name":"constant.language.$1.shell"}},"match":"(?<!\\\\w)\\\\b(true|false)\\\\b(?!\\\\w)"}]}},"match":"[\\\\t ]*+([^\\\\t\\\\n \\"$\\\\&-);<>\\\\\\\\`|]+(?!>))"},{"include":"#normal_context"}]},"arithmetic_double":{"patterns":[{"begin":"\\\\(\\\\(","beginCaptures":{"0":{"name":"punctuation.section.arithmetic.double.shell"}},"end":"\\\\)\\\\s*\\\\)","endCaptures":{"0":{"name":"punctuation.section.arithmetic.double.shell"}},"name":"meta.arithmetic.shell","patterns":[{"include":"#math"},{"include":"#string"}]}]},"arithmetic_no_dollar":{"patterns":[{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.section.arithmetic.single.shell"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.arithmetic.single.shell"}},"name":"meta.arithmetic.shell","patterns":[{"include":"#math"},{"include":"#string"}]}]},"array_access_inline":{"captures":{"1":{"name":"punctuation.section.array.shell"},"2":{"patterns":[{"include":"#special_expansion"},{"include":"#string"},{"include":"#variable"}]},"3":{"name":"punctuation.section.array.shell"}},"match":"(\\\\[)([^]\\\\[]+)(])"},"array_value":{"begin":"[\\\\t ]*+((?<!\\\\w)[-0-9A-Z_a-z]+(?!\\\\w))(?:(\\\\[)((?:(?:\\\\$?(?<!\\\\w)[-0-9A-Z_a-z]+(?!\\\\w)|@)|\\\\*)|(-?\\\\d+))(]))?(?:(?:(=)|(\\\\+=))|(-=))[\\\\t ]*+(\\\\()","beginCaptures":{"1":{"name":"variable.other.assignment.shell"},"2":{"name":"punctuation.definition.array.access.shell"},"3":{"name":"variable.other.assignment.shell"},"4":{"name":"constant.numeric.shell constant.numeric.integer.shell"},"5":{"name":"punctuation.definition.array.access.shell"},"6":{"name":"keyword.operator.assignment.shell"},"7":{"name":"keyword.operator.assignment.compound.shell"},"8":{"name":"keyword.operator.assignment.compound.shell"},"9":{"name":"punctuation.definition.array.shell"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.array.shell"}},"patterns":[{"include":"#comment"},{"captures":{"1":{"name":"variable.other.assignment.array.shell entity.other.attribute-name.shell"},"2":{"name":"keyword.operator.assignment.shell punctuation.definition.assignment.shell"}},"match":"((?<!\\\\w)[-0-9A-Z_a-z]+(?!\\\\w))(=)"},{"captures":{"1":{"name":"punctuation.definition.bracket.named-array.shell"},"2":{"name":"string.unquoted.shell entity.other.attribute-name.bracket.shell"},"3":{"name":"punctuation.definition.bracket.named-array.shell"},"4":{"name":"punctuation.definition.assignment.shell"}},"match":"(\\\\[)(.+?)(])(=)"},{"include":"#normal_context"},{"include":"#simple_unquoted"}]},"assignment_statement":{"patterns":[{"include":"#array_value"},{"include":"#modified_assignment_statement"},{"include":"#normal_assignment_statement"}]},"basic_command_name":{"captures":{"1":{"name":"storage.modifier.$1.shell"},"2":{"name":"entity.name.function.call.shell entity.name.command.shell","patterns":[{"match":"(?<!\\\\w)(?:continue|return|break)(?!\\\\w)","name":"keyword.control.$0.shell"},{"match":"(?<!\\\\w)(?:unfunction|continue|autoload|unsetopt|bindkey|builtin|getopts|command|declare|unalias|history|unlimit|typeset|suspend|source|printf|unhash|disown|ulimit|return|which|alias|break|false|print|shift|times|umask|unset|read|type|exec|eval|wait|echo|dirs|jobs|kill|hash|stat|exit|test|trap|true|let|set|pwd|cd|fg|bg|fc|[.:])(?!/)(?!\\\\w)(?!-)","name":"support.function.builtin.shell"},{"include":"#variable"}]}},"match":"(?![\\\\n!#\\\\&()<>\\\\[{|]|$|[\\\\t ;])(?!nocorrect |nocorrect\\\\t|nocorrect$|readonly |readonly\\\\t|readonly$|function |function\\\\t|function$|foreach |foreach\\\\t|foreach$|coproc |coproc\\\\t|coproc$|logout |logout\\\\t|logout$|export |export\\\\t|export$|select |select\\\\t|select$|repeat |repeat\\\\t|repeat$|pushd |pushd\\\\t|pushd$|until |until\\\\t|until$|while |while\\\\t|while$|local |local\\\\t|local$|case |case\\\\t|case$|done |done\\\\t|done$|elif |elif\\\\t|elif$|else |else\\\\t|else$|esac |esac\\\\t|esac$|popd |popd\\\\t|popd$|then |then\\\\t|then$|time |time\\\\t|time$|for |for\\\\t|for$|end |end\\\\t|end$|fi |fi\\\\t|fi$|do |do\\\\t|do$|in |in\\\\t|in$|if |if\\\\t|if$)(?:((?<=^|[\\\\t \\\\&;])(?:readonly|declare|typeset|export|local)(?=[\\\\t \\\\&;]|$))|((?![\\"\']|\\\\\\\\\\\\n?$)[^\\\\t\\\\n\\\\r !\\"\'<>]+?))(?:(?=[\\\\t ])|(?=[\\\\n\\\\&);`{|}]|[\\\\t ]*#|])(?<!\\\\\\\\))","name":"meta.statement.command.name.basic.shell"},"block_comment":{"begin":"\\\\s*+(/\\\\*)","beginCaptures":{"1":{"name":"punctuation.definition.comment.begin.shell"}},"end":"\\\\*/","endCaptures":{"0":{"name":"punctuation.definition.comment.end.shell"}},"name":"comment.block.shell"},"boolean":{"match":"\\\\b(?:true|false)\\\\b","name":"constant.language.$0.shell"},"case_statement":{"begin":"\\\\b(case)\\\\b[\\\\t ]*+(.+?)[\\\\t ]*+\\\\b(in)\\\\b","beginCaptures":{"1":{"name":"keyword.control.case.shell"},"2":{"patterns":[{"include":"#initial_context"}]},"3":{"name":"keyword.control.in.shell"}},"end":"\\\\besac\\\\b","endCaptures":{"0":{"name":"keyword.control.esac.shell"}},"name":"meta.case.shell","patterns":[{"include":"#comment"},{"captures":{"1":{"name":"keyword.operator.pattern.case.default.shell"}},"match":"[\\\\t ]*+(\\\\* *\\\\))"},{"begin":"(?<!\\\\))(?![\\\\t ]*+(?:esac\\\\b|$))","beginCaptures":{},"end":"(?=\\\\besac\\\\b)|(\\\\))","endCaptures":{"1":{"name":"keyword.operator.pattern.case.shell"}},"name":"meta.case.entry.pattern.shell","patterns":[{"include":"#case_statement_context"}]},{"begin":"(?<=\\\\))","beginCaptures":{},"end":"(;;)|(?=\\\\besac\\\\b)","endCaptures":{"1":{"name":"punctuation.terminator.statement.case.shell"}},"name":"meta.case.entry.body.shell","patterns":[{"include":"#typical_statements"},{"include":"#initial_context"}]}]},"case_statement_context":{"patterns":[{"match":"\\\\*","name":"variable.language.special.quantifier.star.shell keyword.operator.quantifier.star.shell punctuation.definition.arbitrary-repetition.shell punctuation.definition.regex.arbitrary-repetition.shell"},{"match":"\\\\+","name":"variable.language.special.quantifier.plus.shell keyword.operator.quantifier.plus.shell punctuation.definition.arbitrary-repetition.shell punctuation.definition.regex.arbitrary-repetition.shell"},{"match":"\\\\?","name":"variable.language.special.quantifier.question.shell keyword.operator.quantifier.question.shell punctuation.definition.arbitrary-repetition.shell punctuation.definition.regex.arbitrary-repetition.shell"},{"match":"@","name":"variable.language.special.at.shell keyword.operator.at.shell punctuation.definition.regex.at.shell"},{"match":"\\\\|","name":"keyword.operator.orvariable.language.special.or.shell keyword.operator.alternation.ruby.shell punctuation.definition.regex.alternation.shell punctuation.separator.regex.alternation.shell"},{"match":"\\\\\\\\.","name":"constant.character.escape.shell"},{"match":"(?<=\\\\tin| in|[\\\\t ]|;;)\\\\(","name":"keyword.operator.pattern.case.shell"},{"begin":"(?<=\\\\S)(\\\\()","beginCaptures":{"1":{"name":"punctuation.definition.group.shell punctuation.definition.regex.group.shell"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.group.shell punctuation.definition.regex.group.shell"}},"name":"meta.parenthese.shell","patterns":[{"include":"#case_statement_context"}]},{"begin":"\\\\[","beginCaptures":{"0":{"name":"punctuation.definition.character-class.shell"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.character-class.shell"}},"name":"string.regexp.character-class.shell","patterns":[{"match":"\\\\\\\\.","name":"constant.character.escape.shell"}]},{"include":"#string"},{"match":"[^\\\\t\\\\n )*?@\\\\[|]","name":"string.unquoted.pattern.shell string.regexp.unquoted.shell"}]},"command_name_range":{"begin":"\\\\G","beginCaptures":{},"end":"(?=[\\\\t \\\\&;|]|$|[\\\\n)`])|(?=<)","endCaptures":{},"name":"meta.statement.command.name.shell","patterns":[{"match":"(?<!\\\\w)(?:continue|return|break)(?!\\\\w)","name":"entity.name.function.call.shell entity.name.command.shell keyword.control.$0.shell"},{"match":"(?<!\\\\w)(?:unfunction|continue|autoload|unsetopt|bindkey|builtin|getopts|command|declare|unalias|history|unlimit|typeset|suspend|source|printf|unhash|disown|ulimit|return|which|alias|break|false|print|shift|times|umask|unset|read|type|exec|eval|wait|echo|dirs|jobs|kill|hash|stat|exit|test|trap|true|let|set|pwd|cd|fg|bg|fc|[.:])(?!/)(?!\\\\w)(?!-)","name":"entity.name.function.call.shell entity.name.command.shell support.function.builtin.shell"},{"include":"#variable"},{"captures":{"1":{"name":"entity.name.function.call.shell entity.name.command.shell"}},"match":"(?<!\\\\w)(?<=\\\\G|[\\"\')}])([^\\\\t\\\\n\\\\r \\"\\\\&\');->`{|]+)"},{"begin":"(?:\\\\G|(?<![\\\\t\\\\n #\\\\&;{|]))(\\\\$?)((\\")|(\'))","beginCaptures":{"1":{"name":"meta.statement.command.name.quoted.shell punctuation.definition.string.shell entity.name.function.call.shell entity.name.command.shell"},"2":{},"3":{"name":"meta.statement.command.name.quoted.shell string.quoted.double.shell punctuation.definition.string.begin.shell entity.name.function.call.shell entity.name.command.shell"},"4":{"name":"meta.statement.command.name.quoted.shell string.quoted.single.shell punctuation.definition.string.begin.shell entity.name.function.call.shell entity.name.command.shell"}},"end":"(?<!\\\\G)(?<=\\\\2)","endCaptures":{},"patterns":[{"include":"#continuation_of_single_quoted_command_name"},{"include":"#continuation_of_double_quoted_command_name"}]},{"include":"#line_continuation"},{"include":"#simple_unquoted"}]},"command_statement":{"begin":"[\\\\t ]*+(?![\\\\n!#\\\\&()<>\\\\[{|]|$|[\\\\t ;])(?!nocorrect |nocorrect\\\\t|nocorrect$|readonly |readonly\\\\t|readonly$|function |function\\\\t|function$|foreach |foreach\\\\t|foreach$|coproc |coproc\\\\t|coproc$|logout |logout\\\\t|logout$|export |export\\\\t|export$|select |select\\\\t|select$|repeat |repeat\\\\t|repeat$|pushd |pushd\\\\t|pushd$|until |until\\\\t|until$|while |while\\\\t|while$|local |local\\\\t|local$|case |case\\\\t|case$|done |done\\\\t|done$|elif |elif\\\\t|elif$|else |else\\\\t|else$|esac |esac\\\\t|esac$|popd |popd\\\\t|popd$|then |then\\\\t|then$|time |time\\\\t|time$|for |for\\\\t|for$|end |end\\\\t|end$|fi |fi\\\\t|fi$|do |do\\\\t|do$|in |in\\\\t|in$|if |if\\\\t|if$)(?!\\\\\\\\\\\\n?$)","beginCaptures":{},"end":"(?=[\\\\n\\\\&);`{|}]|[\\\\t ]*#|])(?<!\\\\\\\\)","endCaptures":{},"name":"meta.statement.command.shell","patterns":[{"include":"#command_name_range"},{"include":"#line_continuation"},{"include":"#option"},{"include":"#argument"},{"include":"#string"},{"include":"#heredoc"}]},"comment":{"captures":{"1":{"name":"comment.line.number-sign.shell meta.shebang.shell"},"2":{"name":"punctuation.definition.comment.shebang.shell"},"3":{"name":"comment.line.number-sign.shell"},"4":{"name":"punctuation.definition.comment.shell"}},"match":"(?:^|[\\\\t ]++)(?:((#!).*)|((#).*))"},"comments":{"patterns":[{"include":"#block_comment"},{"include":"#line_comment"}]},"compound-command":{"patterns":[{"begin":"\\\\[","beginCaptures":{"0":{"name":"punctuation.definition.logical-expression.shell"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.logical-expression.shell"}},"name":"meta.scope.logical-expression.shell","patterns":[{"include":"#logical-expression"},{"include":"#initial_context"}]},{"begin":"(?<=\\\\s|^)\\\\{(?=\\\\s|$)","beginCaptures":{"0":{"name":"punctuation.definition.group.shell"}},"end":"(?<=^|;)\\\\s*(})","endCaptures":{"1":{"name":"punctuation.definition.group.shell"}},"name":"meta.scope.group.shell","patterns":[{"include":"#initial_context"}]}]},"continuation_of_double_quoted_command_name":{"begin":"\\\\G(?<=\\")","beginCaptures":{},"contentName":"meta.statement.command.name.continuation string.quoted.double entity.name.function.call entity.name.command","end":"\\"","endCaptures":{"0":{"name":"string.quoted.double.shell punctuation.definition.string.end.shell entity.name.function.call.shell entity.name.command.shell"}},"patterns":[{"match":"\\\\\\\\[\\\\n\\"$\\\\\\\\`]","name":"constant.character.escape.shell"},{"include":"#variable"},{"include":"#interpolation"}]},"continuation_of_single_quoted_command_name":{"begin":"\\\\G(?<=\')","beginCaptures":{},"contentName":"meta.statement.command.name.continuation string.quoted.single entity.name.function.call entity.name.command","end":"\'","endCaptures":{"0":{"name":"string.quoted.single.shell punctuation.definition.string.end.shell entity.name.function.call.shell entity.name.command.shell"}}},"custom_command_names":{"patterns":[]},"custom_commands":{"patterns":[]},"double_quote_context":{"patterns":[{"match":"\\\\\\\\[\\\\n\\"$\\\\\\\\`]","name":"constant.character.escape.shell"},{"include":"#variable"},{"include":"#interpolation"}]},"double_quote_escape_char":{"match":"\\\\\\\\[\\\\n\\"$\\\\\\\\`]","name":"constant.character.escape.shell"},"floating_keyword":{"patterns":[{"match":"(?<=^|[\\\\t \\\\&;])(?:then|elif|else|done|end|do|if|fi)(?=[\\\\t \\\\&;]|$)","name":"keyword.control.$0.shell"}]},"for_statement":{"patterns":[{"begin":"\\\\b(for)\\\\b[\\\\t ]*+((?<!\\\\w)[-0-9A-Z_a-z]+(?!\\\\w))[\\\\t ]*+\\\\b(in)\\\\b","beginCaptures":{"1":{"name":"keyword.control.for.shell"},"2":{"name":"variable.other.for.shell"},"3":{"name":"keyword.control.in.shell"}},"end":"(?=[\\\\n\\\\&);`{|}]|[\\\\t ]*#|])(?<!\\\\\\\\)","endCaptures":{},"name":"meta.for.in.shell","patterns":[{"include":"#string"},{"include":"#simple_unquoted"},{"include":"#normal_context"}]},{"begin":"\\\\b(for)\\\\b","beginCaptures":{"1":{"name":"keyword.control.for.shell"}},"end":"(?=[\\\\n\\\\&);`{|}]|[\\\\t ]*#|])(?<!\\\\\\\\)","endCaptures":{},"name":"meta.for.shell","patterns":[{"include":"#arithmetic_double"},{"include":"#normal_context"}]}]},"function_definition":{"applyEndPatternLast":1,"begin":"[\\\\t ]*+(?:\\\\b(function)\\\\b[\\\\t ]*+([^\\\\t\\\\n\\\\r \\"\'()=]+)(?:(\\\\()[\\\\t ]*+(\\\\)))?|([^\\\\t\\\\n\\\\r \\"\'()=]+)[\\\\t ]*+(\\\\()[\\\\t ]*+(\\\\)))","beginCaptures":{"1":{"name":"storage.type.function.shell"},"2":{"name":"entity.name.function.shell"},"3":{"name":"punctuation.definition.arguments.shell"},"4":{"name":"punctuation.definition.arguments.shell"},"5":{"name":"entity.name.function.shell"},"6":{"name":"punctuation.definition.arguments.shell"},"7":{"name":"punctuation.definition.arguments.shell"}},"end":"(?<=[)}])","endCaptures":{},"name":"meta.function.shell","patterns":[{"match":"\\\\G[\\\\t\\\\n ]"},{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.group.shell punctuation.section.function.definition.shell"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.group.shell punctuation.section.function.definition.shell"}},"name":"meta.function.body.shell","patterns":[{"include":"#initial_context"}]},{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.group.shell punctuation.section.function.definition.shell"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.group.shell punctuation.section.function.definition.shell"}},"name":"meta.function.body.shell","patterns":[{"include":"#initial_context"}]},{"include":"#initial_context"}]},"heredoc":{"patterns":[{"begin":"((?<!<)<<-)[\\\\t ]*+([\\"\'])[\\\\t ]*+([^\\"\']+?)(?=[\\"\\\\&\';<\\\\s])(\\\\2)(.*)","beginCaptures":{"1":{"name":"keyword.operator.heredoc.shell"},"2":{"name":"punctuation.definition.string.heredoc.quote.shell"},"3":{"name":"punctuation.definition.string.heredoc.delimiter.shell"},"4":{"name":"punctuation.definition.string.heredoc.quote.shell"},"5":{"patterns":[{"include":"#redirect_fix"},{"include":"#typical_statements"}]}},"contentName":"string.quoted.heredoc.indent.$3","end":"^\\\\t*\\\\3(?=[\\\\&;\\\\s]|$)","endCaptures":{"0":{"name":"punctuation.definition.string.heredoc.$0.shell"}},"patterns":[]},{"begin":"((?<!<)<<(?!<))[\\\\t ]*+([\\"\'])[\\\\t ]*+([^\\"\']+?)(?=[\\"\\\\&\';<\\\\s])(\\\\2)(.*)","beginCaptures":{"1":{"name":"keyword.operator.heredoc.shell"},"2":{"name":"punctuation.definition.string.heredoc.quote.shell"},"3":{"name":"punctuation.definition.string.heredoc.delimiter.shell"},"4":{"name":"punctuation.definition.string.heredoc.quote.shell"},"5":{"patterns":[{"include":"#redirect_fix"},{"include":"#typical_statements"}]}},"contentName":"string.quoted.heredoc.no-indent.$3","end":"^\\\\3(?=[\\\\&;\\\\s]|$)","endCaptures":{"0":{"name":"punctuation.definition.string.heredoc.delimiter.shell"}},"patterns":[]},{"begin":"((?<!<)<<-)[\\\\t ]*+([^\\\\t \\"\']+)(?=[\\"\\\\&\';<\\\\s])(.*)","beginCaptures":{"1":{"name":"keyword.operator.heredoc.shell"},"2":{"name":"punctuation.definition.string.heredoc.delimiter.shell"},"3":{"patterns":[{"include":"#redirect_fix"},{"include":"#typical_statements"}]}},"contentName":"string.unquoted.heredoc.indent.$2","end":"^\\\\t*\\\\2(?=[\\\\&;\\\\s]|$)","endCaptures":{"0":{"name":"punctuation.definition.string.heredoc.delimiter.shell"}},"patterns":[{"include":"#double_quote_escape_char"},{"include":"#variable"},{"include":"#interpolation"}]},{"begin":"((?<!<)<<(?!<))[\\\\t ]*+([^\\\\t \\"\']+)(?=[\\"\\\\&\';<\\\\s])(.*)","beginCaptures":{"1":{"name":"keyword.operator.heredoc.shell"},"2":{"name":"punctuation.definition.string.heredoc.delimiter.shell"},"3":{"patterns":[{"include":"#redirect_fix"},{"include":"#typical_statements"}]}},"contentName":"string.unquoted.heredoc.no-indent.$2","end":"^\\\\2(?=[\\\\&;\\\\s]|$)","endCaptures":{"0":{"name":"punctuation.definition.string.heredoc.delimiter.shell"}},"patterns":[{"include":"#double_quote_escape_char"},{"include":"#variable"},{"include":"#interpolation"}]}]},"herestring":{"patterns":[{"begin":"(<<<)\\\\s*((\'))","beginCaptures":{"1":{"name":"keyword.operator.herestring.shell"},"2":{"name":"string.quoted.single.shell"},"3":{"name":"punctuation.definition.string.begin.shell"}},"contentName":"string.quoted.single.shell","end":"(\')","endCaptures":{"0":{"name":"string.quoted.single.shell"},"1":{"name":"punctuation.definition.string.end.shell"}},"name":"meta.herestring.shell"},{"begin":"(<<<)\\\\s*((\\"))","beginCaptures":{"1":{"name":"keyword.operator.herestring.shell"},"2":{"name":"string.quoted.double.shell"},"3":{"name":"punctuation.definition.string.begin.shell"}},"contentName":"string.quoted.double.shell","end":"(\\")","endCaptures":{"0":{"name":"string.quoted.double.shell"},"1":{"name":"punctuation.definition.string.end.shell"}},"name":"meta.herestring.shell","patterns":[{"include":"#double_quote_context"}]},{"captures":{"1":{"name":"keyword.operator.herestring.shell"},"2":{"name":"string.unquoted.herestring.shell","patterns":[{"include":"#initial_context"}]}},"match":"(<<<)\\\\s*(([^)\\\\\\\\\\\\s]|\\\\\\\\.)+)","name":"meta.herestring.shell"}]},"initial_context":{"patterns":[{"include":"#comment"},{"include":"#pipeline"},{"include":"#normal_statement_seperator"},{"include":"#logical_expression_double"},{"include":"#logical_expression_single"},{"include":"#assignment_statement"},{"include":"#case_statement"},{"include":"#for_statement"},{"include":"#loop"},{"include":"#function_definition"},{"include":"#line_continuation"},{"include":"#arithmetic_double"},{"include":"#misc_ranges"},{"include":"#variable"},{"include":"#interpolation"},{"include":"#heredoc"},{"include":"#herestring"},{"include":"#redirection"},{"include":"#pathname"},{"include":"#floating_keyword"},{"include":"#alias_statement"},{"include":"#normal_statement"},{"include":"#string"},{"include":"#support"}]},"inline_comment":{"captures":{"1":{"name":"comment.block.shell punctuation.definition.comment.begin.shell"},"2":{"name":"comment.block.shell"},"3":{"patterns":[{"match":"\\\\*/","name":"comment.block.shell punctuation.definition.comment.end.shell"},{"match":"\\\\*","name":"comment.block.shell"}]}},"match":"(/\\\\*)((?:[^*]|\\\\*++[^/])*+(\\\\*++/))"},"interpolation":{"patterns":[{"include":"#arithmetic_dollar"},{"include":"#subshell_dollar"},{"begin":"`","beginCaptures":{"0":{"name":"punctuation.definition.evaluation.backticks.shell"}},"end":"`","endCaptures":{"0":{"name":"punctuation.definition.evaluation.backticks.shell"}},"name":"string.interpolated.backtick.shell","patterns":[{"match":"\\\\\\\\[$\\\\\\\\`]","name":"constant.character.escape.shell"},{"begin":"(?<=\\\\W)(?=#)(?!#\\\\{)","beginCaptures":{"1":{"name":"punctuation.whitespace.comment.leading.shell"}},"end":"(?!\\\\G)","patterns":[{"begin":"#","beginCaptures":{"0":{"name":"punctuation.definition.comment.shell"}},"end":"(?=`)","name":"comment.line.number-sign.shell"}]},{"include":"#initial_context"}]}]},"keyword":{"patterns":[{"match":"(?<=^|[\\\\&;\\\\s])(then|else|elif|fi|for|in|do|done|select|continue|esac|while|until|return)(?=[\\\\&;\\\\s]|$)","name":"keyword.control.shell"},{"match":"(?<=^|[\\\\&;\\\\s])(?:export|declare|typeset|local|readonly)(?=[\\\\&;\\\\s]|$)","name":"storage.modifier.shell"}]},"line_comment":{"begin":"\\\\s*+(//)","beginCaptures":{"1":{"name":"punctuation.definition.comment.shell"}},"end":"(?<=\\\\n)(?<!\\\\\\\\\\\\n)","endCaptures":{},"name":"comment.line.double-slash.shell","patterns":[{"include":"#line_continuation_character"}]},"line_continuation":{"match":"\\\\\\\\(?=\\\\n)","name":"constant.character.escape.line-continuation.shell"},"logical-expression":{"patterns":[{"include":"#arithmetic_no_dollar"},{"match":"=[=~]?|!=?|[<>]|&&|\\\\|\\\\|","name":"keyword.operator.logical.shell"},{"match":"(?<!\\\\S)-(nt|ot|ef|eq|ne|l[et]|g[et]|[GLNOSa-hknopr-uwxz])\\\\b","name":"keyword.operator.logical.shell"}]},"logical_expression_context":{"patterns":[{"include":"#regex_comparison"},{"include":"#arithmetic_no_dollar"},{"include":"#logical-expression"},{"include":"#logical_expression_single"},{"include":"#logical_expression_double"},{"include":"#comment"},{"include":"#boolean"},{"include":"#redirect_number"},{"include":"#numeric_literal"},{"include":"#pipeline"},{"include":"#normal_statement_seperator"},{"include":"#string"},{"include":"#variable"},{"include":"#interpolation"},{"include":"#heredoc"},{"include":"#herestring"},{"include":"#pathname"},{"include":"#floating_keyword"},{"include":"#support"}]},"logical_expression_double":{"begin":"\\\\[\\\\[","beginCaptures":{"0":{"name":"punctuation.definition.logical-expression.shell"}},"end":"]]","endCaptures":{"0":{"name":"punctuation.definition.logical-expression.shell"}},"name":"meta.scope.logical-expression.shell","patterns":[{"include":"#logical_expression_context"}]},"logical_expression_single":{"begin":"\\\\[","beginCaptures":{"0":{"name":"punctuation.definition.logical-expression.shell"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.logical-expression.shell"}},"name":"meta.scope.logical-expression.shell","patterns":[{"include":"#logical_expression_context"}]},"loop":{"patterns":[{"begin":"(?<=^|[\\\\&;\\\\s])(for)\\\\s+(.+?)\\\\s+(in)(?=[\\\\&;\\\\s]|$)","beginCaptures":{"1":{"name":"keyword.control.shell"},"2":{"name":"variable.other.loop.shell","patterns":[{"include":"#string"}]},"3":{"name":"keyword.control.shell"}},"end":"(?<=^|[\\\\&;\\\\s])done(?=[\\\\&;\\\\s]|$|\\\\))","endCaptures":{"0":{"name":"keyword.control.shell"}},"name":"meta.scope.for-in-loop.shell","patterns":[{"include":"#initial_context"}]},{"begin":"(?<=^|[\\\\&;\\\\s])(while|until)(?=[\\\\&;\\\\s]|$)","beginCaptures":{"1":{"name":"keyword.control.shell"}},"end":"(?<=^|[\\\\&;\\\\s])done(?=[\\\\&;\\\\s]|$|\\\\))","endCaptures":{"0":{"name":"keyword.control.shell"}},"name":"meta.scope.while-loop.shell","patterns":[{"include":"#initial_context"}]},{"begin":"(?<=^|[\\\\&;\\\\s])(select)\\\\s+((?:[^\\\\\\\\\\\\s]|\\\\\\\\.)+)(?=[\\\\&;\\\\s]|$)","beginCaptures":{"1":{"name":"keyword.control.shell"},"2":{"name":"variable.other.loop.shell"}},"end":"(?<=^|[\\\\&;\\\\s])(done)(?=[\\\\&;\\\\s]|$|\\\\))","endCaptures":{"1":{"name":"keyword.control.shell"}},"name":"meta.scope.select-block.shell","patterns":[{"include":"#initial_context"}]},{"begin":"(?<=^|[\\\\&;\\\\s])if(?=[\\\\&;\\\\s]|$)","beginCaptures":{"0":{"name":"keyword.control.if.shell"}},"end":"(?<=^|[\\\\&;\\\\s])fi(?=[\\\\&;\\\\s]|$)","endCaptures":{"0":{"name":"keyword.control.fi.shell"}},"name":"meta.scope.if-block.shell","patterns":[{"include":"#initial_context"}]}]},"math":{"patterns":[{"include":"#variable"},{"match":"\\\\+{1,2}|-{1,2}|[!~]|\\\\*{1,2}|[%/]|<[<=]?|>[=>]?|==|!=|^|\\\\|{1,2}|&{1,2}|[,:=?]|[-%\\\\&*+/^|]=|<<=|>>=","name":"keyword.operator.arithmetic.shell"},{"match":"0[Xx]\\\\h+","name":"constant.numeric.hex.shell"},{"match":";","name":"punctuation.separator.semicolon.range"},{"match":"0\\\\d+","name":"constant.numeric.octal.shell"},{"match":"\\\\d{1,2}#[0-9@-Z_a-z]+","name":"constant.numeric.other.shell"},{"match":"\\\\d+","name":"constant.numeric.integer.shell"},{"match":"(?<!\\\\w)[0-9A-Z_a-z]+(?!\\\\w)","name":"variable.other.normal.shell"}]},"math_operators":{"patterns":[{"match":"\\\\+{1,2}|-{1,2}|[!~]|\\\\*{1,2}|[%/]|<[<=]?|>[=>]?|==|!=|^|\\\\|{1,2}|&{1,2}|[,:=?]|[-%\\\\&*+/^|]=|<<=|>>=","name":"keyword.operator.arithmetic.shell"},{"match":"0[Xx]\\\\h+","name":"constant.numeric.hex.shell"},{"match":"0\\\\d+","name":"constant.numeric.octal.shell"},{"match":"\\\\d{1,2}#[0-9@-Z_a-z]+","name":"constant.numeric.other.shell"},{"match":"\\\\d+","name":"constant.numeric.integer.shell"}]},"misc_ranges":{"patterns":[{"include":"#logical_expression_single"},{"include":"#logical_expression_double"},{"include":"#subshell_dollar"},{"begin":"(?<![^\\\\t ])(\\\\{)(?![$\\\\w])","beginCaptures":{"1":{"name":"punctuation.definition.group.shell"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.group.shell"}},"name":"meta.scope.group.shell","patterns":[{"include":"#initial_context"}]}]},"modified_assignment_statement":{"begin":"(?<=^|[\\\\t \\\\&;])(?:readonly|declare|typeset|export|local)(?=[\\\\t \\\\&;]|$)","beginCaptures":{"0":{"name":"storage.modifier.$0.shell"}},"end":"(?=[\\\\n\\\\&);`{|}]|[\\\\t ]*#|])(?<!\\\\\\\\)","endCaptures":{},"name":"meta.statement.shell meta.expression.assignment.modified.shell","patterns":[{"match":"(?<!\\\\w)-\\\\w+\\\\b","name":"string.unquoted.argument.shell constant.other.option.shell"},{"include":"#array_value"},{"captures":{"1":{"name":"variable.other.assignment.shell"},"2":{"name":"punctuation.definition.array.access.shell"},"3":{"name":"variable.other.assignment.shell"},"4":{"name":"constant.numeric.shell constant.numeric.integer.shell"},"5":{"name":"punctuation.definition.array.access.shell"},"6":{"name":"keyword.operator.assignment.shell"},"7":{"name":"keyword.operator.assignment.compound.shell"},"8":{"name":"keyword.operator.assignment.compound.shell"},"9":{"name":"constant.numeric.shell constant.numeric.hex.shell"},"10":{"name":"constant.numeric.shell constant.numeric.octal.shell"},"11":{"name":"constant.numeric.shell constant.numeric.other.shell"},"12":{"name":"constant.numeric.shell constant.numeric.decimal.shell"},"13":{"name":"constant.numeric.shell constant.numeric.version.shell"},"14":{"name":"constant.numeric.shell constant.numeric.integer.shell"}},"match":"((?<!\\\\w)[-0-9A-Z_a-z]+(?!\\\\w))(?:(\\\\[)((?:(?:\\\\$?(?<!\\\\w)[-0-9A-Z_a-z]+(?!\\\\w)|@)|\\\\*)|(-?\\\\d+))(]))?(?:(?:(=)|(\\\\+=))|(-=))?(?:(?<=[\\\\t =]|^|[(\\\\[{])(?:(?:(?:(?:(?:(0[Xx]\\\\h+)|(0\\\\d+))|(\\\\d{1,2}#[0-9@-Z_a-z]+))|(-?\\\\d+\\\\.\\\\d+))|(-?\\\\d+(?:\\\\.\\\\d+)+))|(-?\\\\d+))(?=[\\\\t ]|$|[);}]))?"},{"include":"#normal_context"}]},"modifiers":{"match":"(?<=^|[\\\\t \\\\&;])(?:readonly|declare|typeset|export|local)(?=[\\\\t \\\\&;]|$)","name":"storage.modifier.$0.shell"},"normal_assignment_statement":{"begin":"[\\\\t ]*+((?<!\\\\w)[-0-9A-Z_a-z]+(?!\\\\w))(?:(\\\\[)((?:(?:\\\\$?(?<!\\\\w)[-0-9A-Z_a-z]+(?!\\\\w)|@)|\\\\*)|(-?\\\\d+))(]))?(?:(?:(=)|(\\\\+=))|(-=))","beginCaptures":{"1":{"name":"variable.other.assignment.shell"},"2":{"name":"punctuation.definition.array.access.shell"},"3":{"name":"variable.other.assignment.shell"},"4":{"name":"constant.numeric.shell constant.numeric.integer.shell"},"5":{"name":"punctuation.definition.array.access.shell"},"6":{"name":"keyword.operator.assignment.shell"},"7":{"name":"keyword.operator.assignment.compound.shell"},"8":{"name":"keyword.operator.assignment.compound.shell"}},"end":"(?=[\\\\n\\\\&);`{|}]|[\\\\t ]*#|])(?<!\\\\\\\\)","endCaptures":{},"name":"meta.expression.assignment.shell","patterns":[{"include":"#comment"},{"include":"#string"},{"include":"#normal_assignment_statement"},{"begin":"(?<=[\\\\t ])(?![\\\\t ]|\\\\w+=)","beginCaptures":{},"end":"(?=[\\\\n\\\\&);`{|}]|[\\\\t ]*#|])(?<!\\\\\\\\)","endCaptures":{},"name":"meta.statement.command.env.shell","patterns":[{"include":"#command_name_range"},{"include":"#line_continuation"},{"include":"#option"},{"include":"#argument"},{"include":"#string"}]},{"include":"#simple_unquoted"},{"include":"#normal_context"}]},"normal_context":{"patterns":[{"include":"#comment"},{"include":"#pipeline"},{"include":"#normal_statement_seperator"},{"include":"#misc_ranges"},{"include":"#boolean"},{"include":"#redirect_number"},{"include":"#numeric_literal"},{"include":"#string"},{"include":"#variable"},{"include":"#interpolation"},{"include":"#heredoc"},{"include":"#herestring"},{"include":"#redirection"},{"include":"#pathname"},{"include":"#floating_keyword"},{"include":"#support"},{"include":"#parenthese"}]},"normal_statement":{"begin":"(?!^[\\\\t ]*+$)(?:(?<=(?:^until| until|\\\\tuntil|^while| while|\\\\twhile|^elif| elif|\\\\telif|^else| else|\\\\telse|^then| then|\\\\tthen|^do| do|\\\\tdo|^if| if|\\\\tif) )|(?<=^|[!\\\\&(;`{|]))[\\\\t ]*+(?!nocorrect\\\\W|nocorrect\\\\$|function\\\\W|function\\\\$|foreach\\\\W|foreach\\\\$|repeat\\\\W|repeat\\\\$|logout\\\\W|logout\\\\$|coproc\\\\W|coproc\\\\$|select\\\\W|select\\\\$|while\\\\W|while\\\\$|pushd\\\\W|pushd\\\\$|until\\\\W|until\\\\$|case\\\\W|case\\\\$|done\\\\W|done\\\\$|elif\\\\W|elif\\\\$|else\\\\W|else\\\\$|esac\\\\W|esac\\\\$|popd\\\\W|popd\\\\$|then\\\\W|then\\\\$|time\\\\W|time\\\\$|for\\\\W|for\\\\$|end\\\\W|end\\\\$|fi\\\\W|fi\\\\$|do\\\\W|do\\\\$|in\\\\W|in\\\\$|if\\\\W|if\\\\$)","beginCaptures":{},"end":"(?=[\\\\n\\\\&);`{|}]|[\\\\t ]*#|])(?<!\\\\\\\\)","endCaptures":{},"name":"meta.statement.shell","patterns":[{"include":"#typical_statements"}]},"normal_statement_seperator":{"captures":{"1":{"name":"punctuation.terminator.statement.semicolon.shell"},"2":{"name":"punctuation.separator.statement.and.shell"},"3":{"name":"punctuation.separator.statement.or.shell"},"4":{"name":"punctuation.separator.statement.background.shell"}},"match":"(?:(?:(;)|(&&))|(\\\\|\\\\|))|(&)"},"numeric_literal":{"captures":{"1":{"name":"constant.numeric.shell constant.numeric.hex.shell"},"2":{"name":"constant.numeric.shell constant.numeric.octal.shell"},"3":{"name":"constant.numeric.shell constant.numeric.other.shell"},"4":{"name":"constant.numeric.shell constant.numeric.decimal.shell"},"5":{"name":"constant.numeric.shell constant.numeric.version.shell"},"6":{"name":"constant.numeric.shell constant.numeric.integer.shell"}},"match":"(?<=[\\\\t =]|^|[(\\\\[{])(?:(?:(?:(?:(?:(0[Xx]\\\\h+)|(0\\\\d+))|(\\\\d{1,2}#[0-9@-Z_a-z]+))|(-?\\\\d+\\\\.\\\\d+))|(-?\\\\d+(?:\\\\.\\\\d+)+))|(-?\\\\d+))(?=[\\\\t ]|$|[);}])"},"option":{"begin":"[\\\\t ]++(-)((?![\\\\n!#\\\\&()<>\\\\[{|]|$|[\\\\t ;]))","beginCaptures":{"1":{"name":"string.unquoted.argument.shell constant.other.option.dash.shell"},"2":{"name":"string.unquoted.argument.shell constant.other.option.shell"}},"contentName":"string.unquoted.argument constant.other.option","end":"(?=[\\\\t ])|(?=[\\\\n\\\\&);`{|}]|[\\\\t ]*#|])(?<!\\\\\\\\)","endCaptures":{},"patterns":[{"include":"#option_context"}]},"option_context":{"patterns":[{"include":"#misc_ranges"},{"include":"#string"},{"include":"#variable"},{"include":"#interpolation"},{"include":"#heredoc"},{"include":"#herestring"},{"include":"#redirection"},{"include":"#pathname"},{"include":"#floating_keyword"},{"include":"#support"}]},"parenthese":{"patterns":[{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.section.parenthese.shell"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.parenthese.shell"}},"name":"meta.parenthese.group.shell","patterns":[{"include":"#initial_context"}]}]},"pathname":{"patterns":[{"match":"(?<=[:=\\\\s]|^)~","name":"keyword.operator.tilde.shell"},{"match":"[*?]","name":"keyword.operator.glob.shell"},{"begin":"([!*+?@])(\\\\()","beginCaptures":{"1":{"name":"keyword.operator.extglob.shell"},"2":{"name":"punctuation.definition.extglob.shell"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.extglob.shell"}},"name":"meta.structure.extglob.shell","patterns":[{"include":"#initial_context"}]}]},"pipeline":{"patterns":[{"match":"(?<=^|[\\\\&;\\\\s])(time)(?=[\\\\&;\\\\s]|$)","name":"keyword.other.shell"},{"match":"[!|]","name":"keyword.operator.pipe.shell"}]},"redirect_fix":{"captures":{"1":{"name":"keyword.operator.redirect.shell"},"2":{"name":"string.unquoted.argument.shell"}},"match":"(>>?)[\\\\t ]*+([^\\\\t\\\\n \\"$\\\\&-);<>\\\\\\\\`|]+)"},"redirect_number":{"captures":{"1":{"name":"keyword.operator.redirect.stdout.shell"},"2":{"name":"keyword.operator.redirect.stderr.shell"},"3":{"name":"keyword.operator.redirect.$3.shell"}},"match":"(?<=[\\\\t ])(?:(1)|(2)|(\\\\d+))(?=>)"},"redirection":{"patterns":[{"begin":"[<>]\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.shell"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.string.end.shell"}},"name":"string.interpolated.process-substitution.shell","patterns":[{"include":"#initial_context"}]},{"match":"(?<![<>])(&>|\\\\d*>&\\\\d*|\\\\d*(>>|[<>])|\\\\d*<&|\\\\d*<>)(?![<>])","name":"keyword.operator.redirect.shell"}]},"regex_comparison":{"match":"=~","name":"keyword.operator.logical.regex.shell"},"regexp":{"patterns":[{"match":".+"}]},"simple_options":{"captures":{"0":{"patterns":[{"captures":{"1":{"name":"string.unquoted.argument.shell constant.other.option.dash.shell"},"2":{"name":"string.unquoted.argument.shell constant.other.option.shell"}},"match":"[\\\\t ]++(-)(\\\\w+)"}]}},"match":"(?:[\\\\t ]++-\\\\w+)*"},"simple_unquoted":{"match":"[^\\\\t\\\\n \\"$\\\\&-);<>\\\\\\\\`|]","name":"string.unquoted.shell"},"special_expansion":{"match":"!|:[-=?]?|[*@]|##?|%%|[%/]","name":"keyword.operator.expansion.shell"},"start_of_command":{"match":"[\\\\t ]*+(?![\\\\n!#\\\\&()<>\\\\[{|]|$|[\\\\t ;])(?!nocorrect |nocorrect\\\\t|nocorrect$|readonly |readonly\\\\t|readonly$|function |function\\\\t|function$|foreach |foreach\\\\t|foreach$|coproc |coproc\\\\t|coproc$|logout |logout\\\\t|logout$|export |export\\\\t|export$|select |select\\\\t|select$|repeat |repeat\\\\t|repeat$|pushd |pushd\\\\t|pushd$|until |until\\\\t|until$|while |while\\\\t|while$|local |local\\\\t|local$|case |case\\\\t|case$|done |done\\\\t|done$|elif |elif\\\\t|elif$|else |else\\\\t|else$|esac |esac\\\\t|esac$|popd |popd\\\\t|popd$|then |then\\\\t|then$|time |time\\\\t|time$|for |for\\\\t|for$|end |end\\\\t|end$|fi |fi\\\\t|fi$|do |do\\\\t|do$|in |in\\\\t|in$|if |if\\\\t|if$)(?!\\\\\\\\\\\\n?$)"},"string":{"patterns":[{"match":"\\\\\\\\.","name":"constant.character.escape.shell"},{"begin":"\'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.shell"}},"end":"\'","endCaptures":{"0":{"name":"punctuation.definition.string.end.shell"}},"name":"string.quoted.single.shell"},{"begin":"\\\\$?\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.shell"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.shell"}},"name":"string.quoted.double.shell","patterns":[{"match":"\\\\\\\\[\\\\n\\"$\\\\\\\\`]","name":"constant.character.escape.shell"},{"include":"#variable"},{"include":"#interpolation"}]},{"begin":"\\\\$\'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.shell"}},"end":"\'","endCaptures":{"0":{"name":"punctuation.definition.string.end.shell"}},"name":"string.quoted.single.dollar.shell","patterns":[{"match":"\\\\\\\\[\'\\\\\\\\abefnrtv]","name":"constant.character.escape.ansi-c.shell"},{"match":"\\\\\\\\[0-9]{3}\\"","name":"constant.character.escape.octal.shell"},{"match":"\\\\\\\\x\\\\h{2}\\"","name":"constant.character.escape.hex.shell"},{"match":"\\\\\\\\c.\\"","name":"constant.character.escape.control-char.shell"}]}]},"subshell_dollar":{"patterns":[{"begin":"\\\\$\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.subshell.single.shell"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.subshell.single.shell"}},"name":"meta.scope.subshell","patterns":[{"include":"#parenthese"},{"include":"#initial_context"}]}]},"support":{"patterns":[{"match":"(?<=^|[\\\\&;\\\\s])[.:](?=[\\\\&;\\\\s]|$)","name":"support.function.builtin.shell"}]},"typical_statements":{"patterns":[{"include":"#assignment_statement"},{"include":"#case_statement"},{"include":"#for_statement"},{"include":"#while_statement"},{"include":"#function_definition"},{"include":"#command_statement"},{"include":"#line_continuation"},{"include":"#arithmetic_double"},{"include":"#normal_context"}]},"variable":{"patterns":[{"captures":{"1":{"name":"punctuation.definition.variable.shell variable.parameter.positional.all.shell"},"2":{"name":"variable.parameter.positional.all.shell"}},"match":"(\\\\$)(@(?!\\\\w))"},{"captures":{"1":{"name":"punctuation.definition.variable.shell variable.parameter.positional.shell"},"2":{"name":"variable.parameter.positional.shell"}},"match":"(\\\\$)([0-9](?!\\\\w))"},{"captures":{"1":{"name":"punctuation.definition.variable.shell variable.language.special.shell"},"2":{"name":"variable.language.special.shell"}},"match":"(\\\\$)([-!#$*0?_](?!\\\\w))"},{"begin":"(\\\\$)(\\\\{)[\\\\t ]*+(?=\\\\d)","beginCaptures":{"1":{"name":"punctuation.definition.variable.shell variable.parameter.positional.shell"},"2":{"name":"punctuation.section.bracket.curly.variable.begin.shell punctuation.definition.variable.shell variable.parameter.positional.shell"}},"contentName":"meta.parameter-expansion","end":"}","endCaptures":{"0":{"name":"punctuation.section.bracket.curly.variable.end.shell punctuation.definition.variable.shell variable.parameter.positional.shell"}},"patterns":[{"include":"#special_expansion"},{"include":"#array_access_inline"},{"match":"[0-9]+","name":"variable.parameter.positional.shell"},{"match":"(?<!\\\\w)[-0-9A-Z_a-z]+(?!\\\\w)","name":"variable.other.normal.shell"},{"include":"#variable"},{"include":"#string"}]},{"begin":"(\\\\$)(\\\\{)","beginCaptures":{"1":{"name":"punctuation.definition.variable.shell"},"2":{"name":"punctuation.section.bracket.curly.variable.begin.shell punctuation.definition.variable.shell"}},"contentName":"meta.parameter-expansion","end":"}","endCaptures":{"0":{"name":"punctuation.section.bracket.curly.variable.end.shell punctuation.definition.variable.shell"}},"patterns":[{"include":"#special_expansion"},{"include":"#array_access_inline"},{"match":"(?<!\\\\w)[-0-9A-Z_a-z]+(?!\\\\w)","name":"variable.other.normal.shell"},{"include":"#variable"},{"include":"#string"}]},{"captures":{"1":{"name":"punctuation.definition.variable.shell variable.other.normal.shell"},"2":{"name":"variable.other.normal.shell"}},"match":"(\\\\$)(\\\\w+(?!\\\\w))"}]},"while_statement":{"patterns":[{"begin":"\\\\b(while)\\\\b","beginCaptures":{"1":{"name":"keyword.control.while.shell"}},"end":"(?=[\\\\n\\\\&);`{|}]|[\\\\t ]*#|])(?<!\\\\\\\\)","endCaptures":{},"name":"meta.while.shell","patterns":[{"include":"#line_continuation"},{"include":"#math_operators"},{"include":"#option"},{"include":"#simple_unquoted"},{"include":"#normal_context"},{"include":"#string"}]}]}},"scopeName":"source.shell","aliases":["bash","sh","shell","zsh"]}')),Cm=[e];
2
- export{Cm};
1
+ var e=Object.freeze(JSON.parse('{"displayName":"Shell","name":"shellscript","patterns":[{"include":"#initial_context"}],"repository":{"alias_statement":{"begin":"[\\\\t ]*+(alias)[\\\\t ]*+((?:((?<!\\\\w)-\\\\w+)\\\\b[\\\\t ]*+)*)[\\\\t ]*+((?<!\\\\w)[-0-9A-Z_a-z]+(?!\\\\w))(?:(\\\\[)((?:(?:\\\\$?(?<!\\\\w)[-0-9A-Z_a-z]+(?!\\\\w)|@)|\\\\*)|(-?\\\\d+))(]))?(?:(?:(=)|(\\\\+=))|(-=))","beginCaptures":{"1":{"name":"storage.type.alias.shell"},"2":{"patterns":[{"match":"(?<!\\\\w)-\\\\w+\\\\b","name":"string.unquoted.argument.shell constant.other.option.shell"}]},"3":{"name":"string.unquoted.argument.shell constant.other.option.shell"},"4":{"name":"variable.other.assignment.shell"},"5":{"name":"punctuation.definition.array.access.shell"},"6":{"name":"variable.other.assignment.shell"},"7":{"name":"constant.numeric.shell constant.numeric.integer.shell"},"8":{"name":"punctuation.definition.array.access.shell"},"9":{"name":"keyword.operator.assignment.shell"},"10":{"name":"keyword.operator.assignment.compound.shell"},"11":{"name":"keyword.operator.assignment.compound.shell"}},"end":"(?=[\\\\t ]|$)|(?:(?:(?:(;)|(&&))|(\\\\|\\\\|))|(&))","endCaptures":{"1":{"name":"punctuation.terminator.statement.semicolon.shell"},"2":{"name":"punctuation.separator.statement.and.shell"},"3":{"name":"punctuation.separator.statement.or.shell"},"4":{"name":"punctuation.separator.statement.background.shell"}},"name":"meta.expression.assignment.alias.shell","patterns":[{"include":"#normal_context"}]},"argument":{"begin":"[\\\\t ]++(?![\\\\n#\\\\&(\\\\[|]|$|;)","beginCaptures":{},"end":"(?=[\\\\t \\\\&;|]|$|[\\\\n)`])","endCaptures":{},"name":"meta.argument.shell","patterns":[{"include":"#argument_context"},{"include":"#line_continuation"}]},"argument_context":{"patterns":[{"captures":{"1":{"name":"string.unquoted.argument.shell","patterns":[{"match":"\\\\*","name":"variable.language.special.wildcard.shell"},{"include":"#variable"},{"include":"#numeric_literal"},{"captures":{"1":{"name":"constant.language.$1.shell"}},"match":"(?<!\\\\w)\\\\b(true|false)\\\\b(?!\\\\w)"}]}},"match":"[\\\\t ]*+([^\\\\t\\\\n \\"$\\\\&-);<>\\\\\\\\`|]+(?!>))"},{"include":"#normal_context"}]},"arithmetic_double":{"patterns":[{"begin":"\\\\(\\\\(","beginCaptures":{"0":{"name":"punctuation.section.arithmetic.double.shell"}},"end":"\\\\)\\\\s*\\\\)","endCaptures":{"0":{"name":"punctuation.section.arithmetic.double.shell"}},"name":"meta.arithmetic.shell","patterns":[{"include":"#math"},{"include":"#string"}]}]},"arithmetic_no_dollar":{"patterns":[{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.section.arithmetic.single.shell"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.arithmetic.single.shell"}},"name":"meta.arithmetic.shell","patterns":[{"include":"#math"},{"include":"#string"}]}]},"array_access_inline":{"captures":{"1":{"name":"punctuation.section.array.shell"},"2":{"patterns":[{"include":"#special_expansion"},{"include":"#string"},{"include":"#variable"}]},"3":{"name":"punctuation.section.array.shell"}},"match":"(\\\\[)([^]\\\\[]+)(])"},"array_value":{"begin":"[\\\\t ]*+((?<!\\\\w)[-0-9A-Z_a-z]+(?!\\\\w))(?:(\\\\[)((?:(?:\\\\$?(?<!\\\\w)[-0-9A-Z_a-z]+(?!\\\\w)|@)|\\\\*)|(-?\\\\d+))(]))?(?:(?:(=)|(\\\\+=))|(-=))[\\\\t ]*+(\\\\()","beginCaptures":{"1":{"name":"variable.other.assignment.shell"},"2":{"name":"punctuation.definition.array.access.shell"},"3":{"name":"variable.other.assignment.shell"},"4":{"name":"constant.numeric.shell constant.numeric.integer.shell"},"5":{"name":"punctuation.definition.array.access.shell"},"6":{"name":"keyword.operator.assignment.shell"},"7":{"name":"keyword.operator.assignment.compound.shell"},"8":{"name":"keyword.operator.assignment.compound.shell"},"9":{"name":"punctuation.definition.array.shell"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.array.shell"}},"patterns":[{"include":"#comment"},{"captures":{"1":{"name":"variable.other.assignment.array.shell entity.other.attribute-name.shell"},"2":{"name":"keyword.operator.assignment.shell punctuation.definition.assignment.shell"}},"match":"((?<!\\\\w)[-0-9A-Z_a-z]+(?!\\\\w))(=)"},{"captures":{"1":{"name":"punctuation.definition.bracket.named-array.shell"},"2":{"name":"string.unquoted.shell entity.other.attribute-name.bracket.shell"},"3":{"name":"punctuation.definition.bracket.named-array.shell"},"4":{"name":"punctuation.definition.assignment.shell"}},"match":"(\\\\[)(.+?)(])(=)"},{"include":"#normal_context"},{"include":"#simple_unquoted"}]},"assignment_statement":{"patterns":[{"include":"#array_value"},{"include":"#modified_assignment_statement"},{"include":"#normal_assignment_statement"}]},"basic_command_name":{"captures":{"1":{"name":"storage.modifier.$1.shell"},"2":{"name":"entity.name.function.call.shell entity.name.command.shell","patterns":[{"match":"(?<!\\\\w)(?:continue|return|break)(?!\\\\w)","name":"keyword.control.$0.shell"},{"match":"(?<!\\\\w)(?:unfunction|continue|autoload|unsetopt|bindkey|builtin|getopts|command|declare|unalias|history|unlimit|typeset|suspend|source|printf|unhash|disown|ulimit|return|which|alias|break|false|print|shift|times|umask|unset|read|type|exec|eval|wait|echo|dirs|jobs|kill|hash|stat|exit|test|trap|true|let|set|pwd|cd|fg|bg|fc|[.:])(?!/)(?!\\\\w)(?!-)","name":"support.function.builtin.shell"},{"include":"#variable"}]}},"match":"(?![\\\\n!#\\\\&()<>\\\\[{|]|$|[\\\\t ;])(?!nocorrect |nocorrect\\\\t|nocorrect$|readonly |readonly\\\\t|readonly$|function |function\\\\t|function$|foreach |foreach\\\\t|foreach$|coproc |coproc\\\\t|coproc$|logout |logout\\\\t|logout$|export |export\\\\t|export$|select |select\\\\t|select$|repeat |repeat\\\\t|repeat$|pushd |pushd\\\\t|pushd$|until |until\\\\t|until$|while |while\\\\t|while$|local |local\\\\t|local$|case |case\\\\t|case$|done |done\\\\t|done$|elif |elif\\\\t|elif$|else |else\\\\t|else$|esac |esac\\\\t|esac$|popd |popd\\\\t|popd$|then |then\\\\t|then$|time |time\\\\t|time$|for |for\\\\t|for$|end |end\\\\t|end$|fi |fi\\\\t|fi$|do |do\\\\t|do$|in |in\\\\t|in$|if |if\\\\t|if$)(?:((?<=^|[\\\\t \\\\&;])(?:readonly|declare|typeset|export|local)(?=[\\\\t \\\\&;]|$))|((?![\\"\']|\\\\\\\\\\\\n?$)[^\\\\t\\\\n\\\\r !\\"\'<>]+?))(?:(?=[\\\\t ])|(?=[\\\\n\\\\&);`{|}]|[\\\\t ]*#|])(?<!\\\\\\\\))","name":"meta.statement.command.name.basic.shell"},"block_comment":{"begin":"\\\\s*+(/\\\\*)","beginCaptures":{"1":{"name":"punctuation.definition.comment.begin.shell"}},"end":"\\\\*/","endCaptures":{"0":{"name":"punctuation.definition.comment.end.shell"}},"name":"comment.block.shell"},"boolean":{"match":"\\\\b(?:true|false)\\\\b","name":"constant.language.$0.shell"},"case_statement":{"begin":"\\\\b(case)\\\\b[\\\\t ]*+(.+?)[\\\\t ]*+\\\\b(in)\\\\b","beginCaptures":{"1":{"name":"keyword.control.case.shell"},"2":{"patterns":[{"include":"#initial_context"}]},"3":{"name":"keyword.control.in.shell"}},"end":"\\\\besac\\\\b","endCaptures":{"0":{"name":"keyword.control.esac.shell"}},"name":"meta.case.shell","patterns":[{"include":"#comment"},{"captures":{"1":{"name":"keyword.operator.pattern.case.default.shell"}},"match":"[\\\\t ]*+(\\\\* *\\\\))"},{"begin":"(?<!\\\\))(?![\\\\t ]*+(?:esac\\\\b|$))","beginCaptures":{},"end":"(?=\\\\besac\\\\b)|(\\\\))","endCaptures":{"1":{"name":"keyword.operator.pattern.case.shell"}},"name":"meta.case.entry.pattern.shell","patterns":[{"include":"#case_statement_context"}]},{"begin":"(?<=\\\\))","beginCaptures":{},"end":"(;;)|(?=\\\\besac\\\\b)","endCaptures":{"1":{"name":"punctuation.terminator.statement.case.shell"}},"name":"meta.case.entry.body.shell","patterns":[{"include":"#typical_statements"},{"include":"#initial_context"}]}]},"case_statement_context":{"patterns":[{"match":"\\\\*","name":"variable.language.special.quantifier.star.shell keyword.operator.quantifier.star.shell punctuation.definition.arbitrary-repetition.shell punctuation.definition.regex.arbitrary-repetition.shell"},{"match":"\\\\+","name":"variable.language.special.quantifier.plus.shell keyword.operator.quantifier.plus.shell punctuation.definition.arbitrary-repetition.shell punctuation.definition.regex.arbitrary-repetition.shell"},{"match":"\\\\?","name":"variable.language.special.quantifier.question.shell keyword.operator.quantifier.question.shell punctuation.definition.arbitrary-repetition.shell punctuation.definition.regex.arbitrary-repetition.shell"},{"match":"@","name":"variable.language.special.at.shell keyword.operator.at.shell punctuation.definition.regex.at.shell"},{"match":"\\\\|","name":"keyword.operator.orvariable.language.special.or.shell keyword.operator.alternation.ruby.shell punctuation.definition.regex.alternation.shell punctuation.separator.regex.alternation.shell"},{"match":"\\\\\\\\.","name":"constant.character.escape.shell"},{"match":"(?<=\\\\tin| in|[\\\\t ]|;;)\\\\(","name":"keyword.operator.pattern.case.shell"},{"begin":"(?<=\\\\S)(\\\\()","beginCaptures":{"1":{"name":"punctuation.definition.group.shell punctuation.definition.regex.group.shell"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.group.shell punctuation.definition.regex.group.shell"}},"name":"meta.parenthese.shell","patterns":[{"include":"#case_statement_context"}]},{"begin":"\\\\[","beginCaptures":{"0":{"name":"punctuation.definition.character-class.shell"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.character-class.shell"}},"name":"string.regexp.character-class.shell","patterns":[{"match":"\\\\\\\\.","name":"constant.character.escape.shell"}]},{"include":"#string"},{"match":"[^\\\\t\\\\n )*?@\\\\[|]","name":"string.unquoted.pattern.shell string.regexp.unquoted.shell"}]},"command_name_range":{"begin":"\\\\G","beginCaptures":{},"end":"(?=[\\\\t \\\\&;|]|$|[\\\\n)`])|(?=<)","endCaptures":{},"name":"meta.statement.command.name.shell","patterns":[{"match":"(?<!\\\\w)(?:continue|return|break)(?!\\\\w)","name":"entity.name.function.call.shell entity.name.command.shell keyword.control.$0.shell"},{"match":"(?<!\\\\w)(?:unfunction|continue|autoload|unsetopt|bindkey|builtin|getopts|command|declare|unalias|history|unlimit|typeset|suspend|source|printf|unhash|disown|ulimit|return|which|alias|break|false|print|shift|times|umask|unset|read|type|exec|eval|wait|echo|dirs|jobs|kill|hash|stat|exit|test|trap|true|let|set|pwd|cd|fg|bg|fc|[.:])(?!/)(?!\\\\w)(?!-)","name":"entity.name.function.call.shell entity.name.command.shell support.function.builtin.shell"},{"include":"#variable"},{"captures":{"1":{"name":"entity.name.function.call.shell entity.name.command.shell"}},"match":"(?<!\\\\w)(?<=\\\\G|[\\"\')}])([^\\\\t\\\\n\\\\r \\"\\\\&\');->`{|]+)"},{"begin":"(?:\\\\G|(?<![\\\\t\\\\n #\\\\&;{|]))(\\\\$?)((\\")|(\'))","beginCaptures":{"1":{"name":"meta.statement.command.name.quoted.shell punctuation.definition.string.shell entity.name.function.call.shell entity.name.command.shell"},"2":{},"3":{"name":"meta.statement.command.name.quoted.shell string.quoted.double.shell punctuation.definition.string.begin.shell entity.name.function.call.shell entity.name.command.shell"},"4":{"name":"meta.statement.command.name.quoted.shell string.quoted.single.shell punctuation.definition.string.begin.shell entity.name.function.call.shell entity.name.command.shell"}},"end":"(?<!\\\\G)(?<=\\\\2)","endCaptures":{},"patterns":[{"include":"#continuation_of_single_quoted_command_name"},{"include":"#continuation_of_double_quoted_command_name"}]},{"include":"#line_continuation"},{"include":"#simple_unquoted"}]},"command_statement":{"begin":"[\\\\t ]*+(?![\\\\n!#\\\\&()<>\\\\[{|]|$|[\\\\t ;])(?!nocorrect |nocorrect\\\\t|nocorrect$|readonly |readonly\\\\t|readonly$|function |function\\\\t|function$|foreach |foreach\\\\t|foreach$|coproc |coproc\\\\t|coproc$|logout |logout\\\\t|logout$|export |export\\\\t|export$|select |select\\\\t|select$|repeat |repeat\\\\t|repeat$|pushd |pushd\\\\t|pushd$|until |until\\\\t|until$|while |while\\\\t|while$|local |local\\\\t|local$|case |case\\\\t|case$|done |done\\\\t|done$|elif |elif\\\\t|elif$|else |else\\\\t|else$|esac |esac\\\\t|esac$|popd |popd\\\\t|popd$|then |then\\\\t|then$|time |time\\\\t|time$|for |for\\\\t|for$|end |end\\\\t|end$|fi |fi\\\\t|fi$|do |do\\\\t|do$|in |in\\\\t|in$|if |if\\\\t|if$)(?!\\\\\\\\\\\\n?$)","beginCaptures":{},"end":"(?=[\\\\n\\\\&);`{|}]|[\\\\t ]*#|])(?<!\\\\\\\\)","endCaptures":{},"name":"meta.statement.command.shell","patterns":[{"include":"#command_name_range"},{"include":"#line_continuation"},{"include":"#option"},{"include":"#argument"},{"include":"#string"},{"include":"#heredoc"}]},"comment":{"captures":{"1":{"name":"comment.line.number-sign.shell meta.shebang.shell"},"2":{"name":"punctuation.definition.comment.shebang.shell"},"3":{"name":"comment.line.number-sign.shell"},"4":{"name":"punctuation.definition.comment.shell"}},"match":"(?:^|[\\\\t ]++)(?:((#!).*)|((#).*))"},"comments":{"patterns":[{"include":"#block_comment"},{"include":"#line_comment"}]},"compound-command":{"patterns":[{"begin":"\\\\[","beginCaptures":{"0":{"name":"punctuation.definition.logical-expression.shell"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.logical-expression.shell"}},"name":"meta.scope.logical-expression.shell","patterns":[{"include":"#logical-expression"},{"include":"#initial_context"}]},{"begin":"(?<=\\\\s|^)\\\\{(?=\\\\s|$)","beginCaptures":{"0":{"name":"punctuation.definition.group.shell"}},"end":"(?<=^|;)\\\\s*(})","endCaptures":{"1":{"name":"punctuation.definition.group.shell"}},"name":"meta.scope.group.shell","patterns":[{"include":"#initial_context"}]}]},"continuation_of_double_quoted_command_name":{"begin":"\\\\G(?<=\\")","beginCaptures":{},"contentName":"meta.statement.command.name.continuation string.quoted.double entity.name.function.call entity.name.command","end":"\\"","endCaptures":{"0":{"name":"string.quoted.double.shell punctuation.definition.string.end.shell entity.name.function.call.shell entity.name.command.shell"}},"patterns":[{"match":"\\\\\\\\[\\\\n\\"$\\\\\\\\`]","name":"constant.character.escape.shell"},{"include":"#variable"},{"include":"#interpolation"}]},"continuation_of_single_quoted_command_name":{"begin":"\\\\G(?<=\')","beginCaptures":{},"contentName":"meta.statement.command.name.continuation string.quoted.single entity.name.function.call entity.name.command","end":"\'","endCaptures":{"0":{"name":"string.quoted.single.shell punctuation.definition.string.end.shell entity.name.function.call.shell entity.name.command.shell"}}},"custom_command_names":{"patterns":[]},"custom_commands":{"patterns":[]},"double_quote_context":{"patterns":[{"match":"\\\\\\\\[\\\\n\\"$\\\\\\\\`]","name":"constant.character.escape.shell"},{"include":"#variable"},{"include":"#interpolation"}]},"double_quote_escape_char":{"match":"\\\\\\\\[\\\\n\\"$\\\\\\\\`]","name":"constant.character.escape.shell"},"floating_keyword":{"patterns":[{"match":"(?<=^|[\\\\t \\\\&;])(?:then|elif|else|done|end|do|if|fi)(?=[\\\\t \\\\&;]|$)","name":"keyword.control.$0.shell"}]},"for_statement":{"patterns":[{"begin":"\\\\b(for)\\\\b[\\\\t ]*+((?<!\\\\w)[-0-9A-Z_a-z]+(?!\\\\w))[\\\\t ]*+\\\\b(in)\\\\b","beginCaptures":{"1":{"name":"keyword.control.for.shell"},"2":{"name":"variable.other.for.shell"},"3":{"name":"keyword.control.in.shell"}},"end":"(?=[\\\\n\\\\&);`{|}]|[\\\\t ]*#|])(?<!\\\\\\\\)","endCaptures":{},"name":"meta.for.in.shell","patterns":[{"include":"#string"},{"include":"#simple_unquoted"},{"include":"#normal_context"}]},{"begin":"\\\\b(for)\\\\b","beginCaptures":{"1":{"name":"keyword.control.for.shell"}},"end":"(?=[\\\\n\\\\&);`{|}]|[\\\\t ]*#|])(?<!\\\\\\\\)","endCaptures":{},"name":"meta.for.shell","patterns":[{"include":"#arithmetic_double"},{"include":"#normal_context"}]}]},"function_definition":{"applyEndPatternLast":1,"begin":"[\\\\t ]*+(?:\\\\b(function)\\\\b[\\\\t ]*+([^\\\\t\\\\n\\\\r \\"\'()=]+)(?:(\\\\()[\\\\t ]*+(\\\\)))?|([^\\\\t\\\\n\\\\r \\"\'()=]+)[\\\\t ]*+(\\\\()[\\\\t ]*+(\\\\)))","beginCaptures":{"1":{"name":"storage.type.function.shell"},"2":{"name":"entity.name.function.shell"},"3":{"name":"punctuation.definition.arguments.shell"},"4":{"name":"punctuation.definition.arguments.shell"},"5":{"name":"entity.name.function.shell"},"6":{"name":"punctuation.definition.arguments.shell"},"7":{"name":"punctuation.definition.arguments.shell"}},"end":"(?<=[)}])","endCaptures":{},"name":"meta.function.shell","patterns":[{"match":"\\\\G[\\\\t\\\\n ]"},{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.group.shell punctuation.section.function.definition.shell"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.group.shell punctuation.section.function.definition.shell"}},"name":"meta.function.body.shell","patterns":[{"include":"#initial_context"}]},{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.group.shell punctuation.section.function.definition.shell"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.group.shell punctuation.section.function.definition.shell"}},"name":"meta.function.body.shell","patterns":[{"include":"#initial_context"}]},{"include":"#initial_context"}]},"heredoc":{"patterns":[{"begin":"((?<!<)<<-)[\\\\t ]*+([\\"\'])[\\\\t ]*+([^\\"\']+?)(?=[\\"\\\\&\';<\\\\s])(\\\\2)(.*)","beginCaptures":{"1":{"name":"keyword.operator.heredoc.shell"},"2":{"name":"punctuation.definition.string.heredoc.quote.shell"},"3":{"name":"punctuation.definition.string.heredoc.delimiter.shell"},"4":{"name":"punctuation.definition.string.heredoc.quote.shell"},"5":{"patterns":[{"include":"#redirect_fix"},{"include":"#typical_statements"}]}},"contentName":"string.quoted.heredoc.indent.$3","end":"^\\\\t*\\\\3(?=[\\\\&;\\\\s]|$)","endCaptures":{"0":{"name":"punctuation.definition.string.heredoc.$0.shell"}},"patterns":[]},{"begin":"((?<!<)<<(?!<))[\\\\t ]*+([\\"\'])[\\\\t ]*+([^\\"\']+?)(?=[\\"\\\\&\';<\\\\s])(\\\\2)(.*)","beginCaptures":{"1":{"name":"keyword.operator.heredoc.shell"},"2":{"name":"punctuation.definition.string.heredoc.quote.shell"},"3":{"name":"punctuation.definition.string.heredoc.delimiter.shell"},"4":{"name":"punctuation.definition.string.heredoc.quote.shell"},"5":{"patterns":[{"include":"#redirect_fix"},{"include":"#typical_statements"}]}},"contentName":"string.quoted.heredoc.no-indent.$3","end":"^\\\\3(?=[\\\\&;\\\\s]|$)","endCaptures":{"0":{"name":"punctuation.definition.string.heredoc.delimiter.shell"}},"patterns":[]},{"begin":"((?<!<)<<-)[\\\\t ]*+([^\\\\t \\"\']+)(?=[\\"\\\\&\';<\\\\s])(.*)","beginCaptures":{"1":{"name":"keyword.operator.heredoc.shell"},"2":{"name":"punctuation.definition.string.heredoc.delimiter.shell"},"3":{"patterns":[{"include":"#redirect_fix"},{"include":"#typical_statements"}]}},"contentName":"string.unquoted.heredoc.indent.$2","end":"^\\\\t*\\\\2(?=[\\\\&;\\\\s]|$)","endCaptures":{"0":{"name":"punctuation.definition.string.heredoc.delimiter.shell"}},"patterns":[{"include":"#double_quote_escape_char"},{"include":"#variable"},{"include":"#interpolation"}]},{"begin":"((?<!<)<<(?!<))[\\\\t ]*+([^\\\\t \\"\']+)(?=[\\"\\\\&\';<\\\\s])(.*)","beginCaptures":{"1":{"name":"keyword.operator.heredoc.shell"},"2":{"name":"punctuation.definition.string.heredoc.delimiter.shell"},"3":{"patterns":[{"include":"#redirect_fix"},{"include":"#typical_statements"}]}},"contentName":"string.unquoted.heredoc.no-indent.$2","end":"^\\\\2(?=[\\\\&;\\\\s]|$)","endCaptures":{"0":{"name":"punctuation.definition.string.heredoc.delimiter.shell"}},"patterns":[{"include":"#double_quote_escape_char"},{"include":"#variable"},{"include":"#interpolation"}]}]},"herestring":{"patterns":[{"begin":"(<<<)\\\\s*((\'))","beginCaptures":{"1":{"name":"keyword.operator.herestring.shell"},"2":{"name":"string.quoted.single.shell"},"3":{"name":"punctuation.definition.string.begin.shell"}},"contentName":"string.quoted.single.shell","end":"(\')","endCaptures":{"0":{"name":"string.quoted.single.shell"},"1":{"name":"punctuation.definition.string.end.shell"}},"name":"meta.herestring.shell"},{"begin":"(<<<)\\\\s*((\\"))","beginCaptures":{"1":{"name":"keyword.operator.herestring.shell"},"2":{"name":"string.quoted.double.shell"},"3":{"name":"punctuation.definition.string.begin.shell"}},"contentName":"string.quoted.double.shell","end":"(\\")","endCaptures":{"0":{"name":"string.quoted.double.shell"},"1":{"name":"punctuation.definition.string.end.shell"}},"name":"meta.herestring.shell","patterns":[{"include":"#double_quote_context"}]},{"captures":{"1":{"name":"keyword.operator.herestring.shell"},"2":{"name":"string.unquoted.herestring.shell","patterns":[{"include":"#initial_context"}]}},"match":"(<<<)\\\\s*(([^)\\\\\\\\\\\\s]|\\\\\\\\.)+)","name":"meta.herestring.shell"}]},"initial_context":{"patterns":[{"include":"#comment"},{"include":"#pipeline"},{"include":"#normal_statement_seperator"},{"include":"#logical_expression_double"},{"include":"#logical_expression_single"},{"include":"#assignment_statement"},{"include":"#case_statement"},{"include":"#for_statement"},{"include":"#loop"},{"include":"#function_definition"},{"include":"#line_continuation"},{"include":"#arithmetic_double"},{"include":"#misc_ranges"},{"include":"#variable"},{"include":"#interpolation"},{"include":"#heredoc"},{"include":"#herestring"},{"include":"#redirection"},{"include":"#pathname"},{"include":"#floating_keyword"},{"include":"#alias_statement"},{"include":"#normal_statement"},{"include":"#string"},{"include":"#support"}]},"inline_comment":{"captures":{"1":{"name":"comment.block.shell punctuation.definition.comment.begin.shell"},"2":{"name":"comment.block.shell"},"3":{"patterns":[{"match":"\\\\*/","name":"comment.block.shell punctuation.definition.comment.end.shell"},{"match":"\\\\*","name":"comment.block.shell"}]}},"match":"(/\\\\*)((?:[^*]|\\\\*++[^/])*+(\\\\*++/))"},"interpolation":{"patterns":[{"include":"#arithmetic_dollar"},{"include":"#subshell_dollar"},{"begin":"`","beginCaptures":{"0":{"name":"punctuation.definition.evaluation.backticks.shell"}},"end":"`","endCaptures":{"0":{"name":"punctuation.definition.evaluation.backticks.shell"}},"name":"string.interpolated.backtick.shell","patterns":[{"match":"\\\\\\\\[$\\\\\\\\`]","name":"constant.character.escape.shell"},{"begin":"(?<=\\\\W)(?=#)(?!#\\\\{)","beginCaptures":{"1":{"name":"punctuation.whitespace.comment.leading.shell"}},"end":"(?!\\\\G)","patterns":[{"begin":"#","beginCaptures":{"0":{"name":"punctuation.definition.comment.shell"}},"end":"(?=`)","name":"comment.line.number-sign.shell"}]},{"include":"#initial_context"}]}]},"keyword":{"patterns":[{"match":"(?<=^|[\\\\&;\\\\s])(then|else|elif|fi|for|in|do|done|select|continue|esac|while|until|return)(?=[\\\\&;\\\\s]|$)","name":"keyword.control.shell"},{"match":"(?<=^|[\\\\&;\\\\s])(?:export|declare|typeset|local|readonly)(?=[\\\\&;\\\\s]|$)","name":"storage.modifier.shell"}]},"line_comment":{"begin":"\\\\s*+(//)","beginCaptures":{"1":{"name":"punctuation.definition.comment.shell"}},"end":"(?<=\\\\n)(?<!\\\\\\\\\\\\n)","endCaptures":{},"name":"comment.line.double-slash.shell","patterns":[{"include":"#line_continuation_character"}]},"line_continuation":{"match":"\\\\\\\\(?=\\\\n)","name":"constant.character.escape.line-continuation.shell"},"logical-expression":{"patterns":[{"include":"#arithmetic_no_dollar"},{"match":"=[=~]?|!=?|[<>]|&&|\\\\|\\\\|","name":"keyword.operator.logical.shell"},{"match":"(?<!\\\\S)-(nt|ot|ef|eq|ne|l[et]|g[et]|[GLNOSa-hknopr-uwxz])\\\\b","name":"keyword.operator.logical.shell"}]},"logical_expression_context":{"patterns":[{"include":"#regex_comparison"},{"include":"#arithmetic_no_dollar"},{"include":"#logical-expression"},{"include":"#logical_expression_single"},{"include":"#logical_expression_double"},{"include":"#comment"},{"include":"#boolean"},{"include":"#redirect_number"},{"include":"#numeric_literal"},{"include":"#pipeline"},{"include":"#normal_statement_seperator"},{"include":"#string"},{"include":"#variable"},{"include":"#interpolation"},{"include":"#heredoc"},{"include":"#herestring"},{"include":"#pathname"},{"include":"#floating_keyword"},{"include":"#support"}]},"logical_expression_double":{"begin":"\\\\[\\\\[","beginCaptures":{"0":{"name":"punctuation.definition.logical-expression.shell"}},"end":"]]","endCaptures":{"0":{"name":"punctuation.definition.logical-expression.shell"}},"name":"meta.scope.logical-expression.shell","patterns":[{"include":"#logical_expression_context"}]},"logical_expression_single":{"begin":"\\\\[","beginCaptures":{"0":{"name":"punctuation.definition.logical-expression.shell"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.logical-expression.shell"}},"name":"meta.scope.logical-expression.shell","patterns":[{"include":"#logical_expression_context"}]},"loop":{"patterns":[{"begin":"(?<=^|[\\\\&;\\\\s])(for)\\\\s+(.+?)\\\\s+(in)(?=[\\\\&;\\\\s]|$)","beginCaptures":{"1":{"name":"keyword.control.shell"},"2":{"name":"variable.other.loop.shell","patterns":[{"include":"#string"}]},"3":{"name":"keyword.control.shell"}},"end":"(?<=^|[\\\\&;\\\\s])done(?=[\\\\&;\\\\s]|$|\\\\))","endCaptures":{"0":{"name":"keyword.control.shell"}},"name":"meta.scope.for-in-loop.shell","patterns":[{"include":"#initial_context"}]},{"begin":"(?<=^|[\\\\&;\\\\s])(while|until)(?=[\\\\&;\\\\s]|$)","beginCaptures":{"1":{"name":"keyword.control.shell"}},"end":"(?<=^|[\\\\&;\\\\s])done(?=[\\\\&;\\\\s]|$|\\\\))","endCaptures":{"0":{"name":"keyword.control.shell"}},"name":"meta.scope.while-loop.shell","patterns":[{"include":"#initial_context"}]},{"begin":"(?<=^|[\\\\&;\\\\s])(select)\\\\s+((?:[^\\\\\\\\\\\\s]|\\\\\\\\.)+)(?=[\\\\&;\\\\s]|$)","beginCaptures":{"1":{"name":"keyword.control.shell"},"2":{"name":"variable.other.loop.shell"}},"end":"(?<=^|[\\\\&;\\\\s])(done)(?=[\\\\&;\\\\s]|$|\\\\))","endCaptures":{"1":{"name":"keyword.control.shell"}},"name":"meta.scope.select-block.shell","patterns":[{"include":"#initial_context"}]},{"begin":"(?<=^|[\\\\&;\\\\s])if(?=[\\\\&;\\\\s]|$)","beginCaptures":{"0":{"name":"keyword.control.if.shell"}},"end":"(?<=^|[\\\\&;\\\\s])fi(?=[\\\\&;\\\\s]|$)","endCaptures":{"0":{"name":"keyword.control.fi.shell"}},"name":"meta.scope.if-block.shell","patterns":[{"include":"#initial_context"}]}]},"math":{"patterns":[{"include":"#variable"},{"match":"\\\\+{1,2}|-{1,2}|[!~]|\\\\*{1,2}|[%/]|<[<=]?|>[=>]?|==|!=|^|\\\\|{1,2}|&{1,2}|[,:=?]|[-%\\\\&*+/^|]=|<<=|>>=","name":"keyword.operator.arithmetic.shell"},{"match":"0[Xx]\\\\h+","name":"constant.numeric.hex.shell"},{"match":";","name":"punctuation.separator.semicolon.range"},{"match":"0\\\\d+","name":"constant.numeric.octal.shell"},{"match":"\\\\d{1,2}#[0-9@-Z_a-z]+","name":"constant.numeric.other.shell"},{"match":"\\\\d+","name":"constant.numeric.integer.shell"},{"match":"(?<!\\\\w)[0-9A-Z_a-z]+(?!\\\\w)","name":"variable.other.normal.shell"}]},"math_operators":{"patterns":[{"match":"\\\\+{1,2}|-{1,2}|[!~]|\\\\*{1,2}|[%/]|<[<=]?|>[=>]?|==|!=|^|\\\\|{1,2}|&{1,2}|[,:=?]|[-%\\\\&*+/^|]=|<<=|>>=","name":"keyword.operator.arithmetic.shell"},{"match":"0[Xx]\\\\h+","name":"constant.numeric.hex.shell"},{"match":"0\\\\d+","name":"constant.numeric.octal.shell"},{"match":"\\\\d{1,2}#[0-9@-Z_a-z]+","name":"constant.numeric.other.shell"},{"match":"\\\\d+","name":"constant.numeric.integer.shell"}]},"misc_ranges":{"patterns":[{"include":"#logical_expression_single"},{"include":"#logical_expression_double"},{"include":"#subshell_dollar"},{"begin":"(?<![^\\\\t ])(\\\\{)(?![$\\\\w])","beginCaptures":{"1":{"name":"punctuation.definition.group.shell"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.group.shell"}},"name":"meta.scope.group.shell","patterns":[{"include":"#initial_context"}]}]},"modified_assignment_statement":{"begin":"(?<=^|[\\\\t \\\\&;])(?:readonly|declare|typeset|export|local)(?=[\\\\t \\\\&;]|$)","beginCaptures":{"0":{"name":"storage.modifier.$0.shell"}},"end":"(?=[\\\\n\\\\&);`{|}]|[\\\\t ]*#|])(?<!\\\\\\\\)","endCaptures":{},"name":"meta.statement.shell meta.expression.assignment.modified.shell","patterns":[{"match":"(?<!\\\\w)-\\\\w+\\\\b","name":"string.unquoted.argument.shell constant.other.option.shell"},{"include":"#array_value"},{"captures":{"1":{"name":"variable.other.assignment.shell"},"2":{"name":"punctuation.definition.array.access.shell"},"3":{"name":"variable.other.assignment.shell"},"4":{"name":"constant.numeric.shell constant.numeric.integer.shell"},"5":{"name":"punctuation.definition.array.access.shell"},"6":{"name":"keyword.operator.assignment.shell"},"7":{"name":"keyword.operator.assignment.compound.shell"},"8":{"name":"keyword.operator.assignment.compound.shell"},"9":{"name":"constant.numeric.shell constant.numeric.hex.shell"},"10":{"name":"constant.numeric.shell constant.numeric.octal.shell"},"11":{"name":"constant.numeric.shell constant.numeric.other.shell"},"12":{"name":"constant.numeric.shell constant.numeric.decimal.shell"},"13":{"name":"constant.numeric.shell constant.numeric.version.shell"},"14":{"name":"constant.numeric.shell constant.numeric.integer.shell"}},"match":"((?<!\\\\w)[-0-9A-Z_a-z]+(?!\\\\w))(?:(\\\\[)((?:(?:\\\\$?(?<!\\\\w)[-0-9A-Z_a-z]+(?!\\\\w)|@)|\\\\*)|(-?\\\\d+))(]))?(?:(?:(=)|(\\\\+=))|(-=))?(?:(?<=[\\\\t =]|^|[(\\\\[{])(?:(?:(?:(?:(?:(0[Xx]\\\\h+)|(0\\\\d+))|(\\\\d{1,2}#[0-9@-Z_a-z]+))|(-?\\\\d+\\\\.\\\\d+))|(-?\\\\d+(?:\\\\.\\\\d+)+))|(-?\\\\d+))(?=[\\\\t ]|$|[);}]))?"},{"include":"#normal_context"}]},"modifiers":{"match":"(?<=^|[\\\\t \\\\&;])(?:readonly|declare|typeset|export|local)(?=[\\\\t \\\\&;]|$)","name":"storage.modifier.$0.shell"},"normal_assignment_statement":{"begin":"[\\\\t ]*+((?<!\\\\w)[-0-9A-Z_a-z]+(?!\\\\w))(?:(\\\\[)((?:(?:\\\\$?(?<!\\\\w)[-0-9A-Z_a-z]+(?!\\\\w)|@)|\\\\*)|(-?\\\\d+))(]))?(?:(?:(=)|(\\\\+=))|(-=))","beginCaptures":{"1":{"name":"variable.other.assignment.shell"},"2":{"name":"punctuation.definition.array.access.shell"},"3":{"name":"variable.other.assignment.shell"},"4":{"name":"constant.numeric.shell constant.numeric.integer.shell"},"5":{"name":"punctuation.definition.array.access.shell"},"6":{"name":"keyword.operator.assignment.shell"},"7":{"name":"keyword.operator.assignment.compound.shell"},"8":{"name":"keyword.operator.assignment.compound.shell"}},"end":"(?=[\\\\n\\\\&);`{|}]|[\\\\t ]*#|])(?<!\\\\\\\\)","endCaptures":{},"name":"meta.expression.assignment.shell","patterns":[{"include":"#comment"},{"include":"#string"},{"include":"#normal_assignment_statement"},{"begin":"(?<=[\\\\t ])(?![\\\\t ]|\\\\w+=)","beginCaptures":{},"end":"(?=[\\\\n\\\\&);`{|}]|[\\\\t ]*#|])(?<!\\\\\\\\)","endCaptures":{},"name":"meta.statement.command.env.shell","patterns":[{"include":"#command_name_range"},{"include":"#line_continuation"},{"include":"#option"},{"include":"#argument"},{"include":"#string"}]},{"include":"#simple_unquoted"},{"include":"#normal_context"}]},"normal_context":{"patterns":[{"include":"#comment"},{"include":"#pipeline"},{"include":"#normal_statement_seperator"},{"include":"#misc_ranges"},{"include":"#boolean"},{"include":"#redirect_number"},{"include":"#numeric_literal"},{"include":"#string"},{"include":"#variable"},{"include":"#interpolation"},{"include":"#heredoc"},{"include":"#herestring"},{"include":"#redirection"},{"include":"#pathname"},{"include":"#floating_keyword"},{"include":"#support"},{"include":"#parenthese"}]},"normal_statement":{"begin":"(?!^[\\\\t ]*+$)(?:(?<=(?:^until| until|\\\\tuntil|^while| while|\\\\twhile|^elif| elif|\\\\telif|^else| else|\\\\telse|^then| then|\\\\tthen|^do| do|\\\\tdo|^if| if|\\\\tif) )|(?<=^|[!\\\\&(;`{|]))[\\\\t ]*+(?!nocorrect\\\\W|nocorrect\\\\$|function\\\\W|function\\\\$|foreach\\\\W|foreach\\\\$|repeat\\\\W|repeat\\\\$|logout\\\\W|logout\\\\$|coproc\\\\W|coproc\\\\$|select\\\\W|select\\\\$|while\\\\W|while\\\\$|pushd\\\\W|pushd\\\\$|until\\\\W|until\\\\$|case\\\\W|case\\\\$|done\\\\W|done\\\\$|elif\\\\W|elif\\\\$|else\\\\W|else\\\\$|esac\\\\W|esac\\\\$|popd\\\\W|popd\\\\$|then\\\\W|then\\\\$|time\\\\W|time\\\\$|for\\\\W|for\\\\$|end\\\\W|end\\\\$|fi\\\\W|fi\\\\$|do\\\\W|do\\\\$|in\\\\W|in\\\\$|if\\\\W|if\\\\$)","beginCaptures":{},"end":"(?=[\\\\n\\\\&);`{|}]|[\\\\t ]*#|])(?<!\\\\\\\\)","endCaptures":{},"name":"meta.statement.shell","patterns":[{"include":"#typical_statements"}]},"normal_statement_seperator":{"captures":{"1":{"name":"punctuation.terminator.statement.semicolon.shell"},"2":{"name":"punctuation.separator.statement.and.shell"},"3":{"name":"punctuation.separator.statement.or.shell"},"4":{"name":"punctuation.separator.statement.background.shell"}},"match":"(?:(?:(;)|(&&))|(\\\\|\\\\|))|(&)"},"numeric_literal":{"captures":{"1":{"name":"constant.numeric.shell constant.numeric.hex.shell"},"2":{"name":"constant.numeric.shell constant.numeric.octal.shell"},"3":{"name":"constant.numeric.shell constant.numeric.other.shell"},"4":{"name":"constant.numeric.shell constant.numeric.decimal.shell"},"5":{"name":"constant.numeric.shell constant.numeric.version.shell"},"6":{"name":"constant.numeric.shell constant.numeric.integer.shell"}},"match":"(?<=[\\\\t =]|^|[(\\\\[{])(?:(?:(?:(?:(?:(0[Xx]\\\\h+)|(0\\\\d+))|(\\\\d{1,2}#[0-9@-Z_a-z]+))|(-?\\\\d+\\\\.\\\\d+))|(-?\\\\d+(?:\\\\.\\\\d+)+))|(-?\\\\d+))(?=[\\\\t ]|$|[);}])"},"option":{"begin":"[\\\\t ]++(-)((?![\\\\n!#\\\\&()<>\\\\[{|]|$|[\\\\t ;]))","beginCaptures":{"1":{"name":"string.unquoted.argument.shell constant.other.option.dash.shell"},"2":{"name":"string.unquoted.argument.shell constant.other.option.shell"}},"contentName":"string.unquoted.argument constant.other.option","end":"(?=[\\\\t ])|(?=[\\\\n\\\\&);`{|}]|[\\\\t ]*#|])(?<!\\\\\\\\)","endCaptures":{},"patterns":[{"include":"#option_context"}]},"option_context":{"patterns":[{"include":"#misc_ranges"},{"include":"#string"},{"include":"#variable"},{"include":"#interpolation"},{"include":"#heredoc"},{"include":"#herestring"},{"include":"#redirection"},{"include":"#pathname"},{"include":"#floating_keyword"},{"include":"#support"}]},"parenthese":{"patterns":[{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.section.parenthese.shell"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.parenthese.shell"}},"name":"meta.parenthese.group.shell","patterns":[{"include":"#initial_context"}]}]},"pathname":{"patterns":[{"match":"(?<=[:=\\\\s]|^)~","name":"keyword.operator.tilde.shell"},{"match":"[*?]","name":"keyword.operator.glob.shell"},{"begin":"([!*+?@])(\\\\()","beginCaptures":{"1":{"name":"keyword.operator.extglob.shell"},"2":{"name":"punctuation.definition.extglob.shell"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.extglob.shell"}},"name":"meta.structure.extglob.shell","patterns":[{"include":"#initial_context"}]}]},"pipeline":{"patterns":[{"match":"(?<=^|[\\\\&;\\\\s])(time)(?=[\\\\&;\\\\s]|$)","name":"keyword.other.shell"},{"match":"[!|]","name":"keyword.operator.pipe.shell"}]},"redirect_fix":{"captures":{"1":{"name":"keyword.operator.redirect.shell"},"2":{"name":"string.unquoted.argument.shell"}},"match":"(>>?)[\\\\t ]*+([^\\\\t\\\\n \\"$\\\\&-);<>\\\\\\\\`|]+)"},"redirect_number":{"captures":{"1":{"name":"keyword.operator.redirect.stdout.shell"},"2":{"name":"keyword.operator.redirect.stderr.shell"},"3":{"name":"keyword.operator.redirect.$3.shell"}},"match":"(?<=[\\\\t ])(?:(1)|(2)|(\\\\d+))(?=>)"},"redirection":{"patterns":[{"begin":"[<>]\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.shell"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.string.end.shell"}},"name":"string.interpolated.process-substitution.shell","patterns":[{"include":"#initial_context"}]},{"match":"(?<![<>])(&>|\\\\d*>&\\\\d*|\\\\d*(>>|[<>])|\\\\d*<&|\\\\d*<>)(?![<>])","name":"keyword.operator.redirect.shell"}]},"regex_comparison":{"match":"=~","name":"keyword.operator.logical.regex.shell"},"regexp":{"patterns":[{"match":".+"}]},"simple_options":{"captures":{"0":{"patterns":[{"captures":{"1":{"name":"string.unquoted.argument.shell constant.other.option.dash.shell"},"2":{"name":"string.unquoted.argument.shell constant.other.option.shell"}},"match":"[\\\\t ]++(-)(\\\\w+)"}]}},"match":"(?:[\\\\t ]++-\\\\w+)*"},"simple_unquoted":{"match":"[^\\\\t\\\\n \\"$\\\\&-);<>\\\\\\\\`|]","name":"string.unquoted.shell"},"special_expansion":{"match":"!|:[-=?]?|[*@]|##?|%%|[%/]","name":"keyword.operator.expansion.shell"},"start_of_command":{"match":"[\\\\t ]*+(?![\\\\n!#\\\\&()<>\\\\[{|]|$|[\\\\t ;])(?!nocorrect |nocorrect\\\\t|nocorrect$|readonly |readonly\\\\t|readonly$|function |function\\\\t|function$|foreach |foreach\\\\t|foreach$|coproc |coproc\\\\t|coproc$|logout |logout\\\\t|logout$|export |export\\\\t|export$|select |select\\\\t|select$|repeat |repeat\\\\t|repeat$|pushd |pushd\\\\t|pushd$|until |until\\\\t|until$|while |while\\\\t|while$|local |local\\\\t|local$|case |case\\\\t|case$|done |done\\\\t|done$|elif |elif\\\\t|elif$|else |else\\\\t|else$|esac |esac\\\\t|esac$|popd |popd\\\\t|popd$|then |then\\\\t|then$|time |time\\\\t|time$|for |for\\\\t|for$|end |end\\\\t|end$|fi |fi\\\\t|fi$|do |do\\\\t|do$|in |in\\\\t|in$|if |if\\\\t|if$)(?!\\\\\\\\\\\\n?$)"},"string":{"patterns":[{"match":"\\\\\\\\.","name":"constant.character.escape.shell"},{"begin":"\'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.shell"}},"end":"\'","endCaptures":{"0":{"name":"punctuation.definition.string.end.shell"}},"name":"string.quoted.single.shell"},{"begin":"\\\\$?\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.shell"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.shell"}},"name":"string.quoted.double.shell","patterns":[{"match":"\\\\\\\\[\\\\n\\"$\\\\\\\\`]","name":"constant.character.escape.shell"},{"include":"#variable"},{"include":"#interpolation"}]},{"begin":"\\\\$\'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.shell"}},"end":"\'","endCaptures":{"0":{"name":"punctuation.definition.string.end.shell"}},"name":"string.quoted.single.dollar.shell","patterns":[{"match":"\\\\\\\\[\'\\\\\\\\abefnrtv]","name":"constant.character.escape.ansi-c.shell"},{"match":"\\\\\\\\[0-9]{3}\\"","name":"constant.character.escape.octal.shell"},{"match":"\\\\\\\\x\\\\h{2}\\"","name":"constant.character.escape.hex.shell"},{"match":"\\\\\\\\c.\\"","name":"constant.character.escape.control-char.shell"}]}]},"subshell_dollar":{"patterns":[{"begin":"\\\\$\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.subshell.single.shell"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.subshell.single.shell"}},"name":"meta.scope.subshell","patterns":[{"include":"#parenthese"},{"include":"#initial_context"}]}]},"support":{"patterns":[{"match":"(?<=^|[\\\\&;\\\\s])[.:](?=[\\\\&;\\\\s]|$)","name":"support.function.builtin.shell"}]},"typical_statements":{"patterns":[{"include":"#assignment_statement"},{"include":"#case_statement"},{"include":"#for_statement"},{"include":"#while_statement"},{"include":"#function_definition"},{"include":"#command_statement"},{"include":"#line_continuation"},{"include":"#arithmetic_double"},{"include":"#normal_context"}]},"variable":{"patterns":[{"captures":{"1":{"name":"punctuation.definition.variable.shell variable.parameter.positional.all.shell"},"2":{"name":"variable.parameter.positional.all.shell"}},"match":"(\\\\$)(@(?!\\\\w))"},{"captures":{"1":{"name":"punctuation.definition.variable.shell variable.parameter.positional.shell"},"2":{"name":"variable.parameter.positional.shell"}},"match":"(\\\\$)([0-9](?!\\\\w))"},{"captures":{"1":{"name":"punctuation.definition.variable.shell variable.language.special.shell"},"2":{"name":"variable.language.special.shell"}},"match":"(\\\\$)([-!#$*0?_](?!\\\\w))"},{"begin":"(\\\\$)(\\\\{)[\\\\t ]*+(?=\\\\d)","beginCaptures":{"1":{"name":"punctuation.definition.variable.shell variable.parameter.positional.shell"},"2":{"name":"punctuation.section.bracket.curly.variable.begin.shell punctuation.definition.variable.shell variable.parameter.positional.shell"}},"contentName":"meta.parameter-expansion","end":"}","endCaptures":{"0":{"name":"punctuation.section.bracket.curly.variable.end.shell punctuation.definition.variable.shell variable.parameter.positional.shell"}},"patterns":[{"include":"#special_expansion"},{"include":"#array_access_inline"},{"match":"[0-9]+","name":"variable.parameter.positional.shell"},{"match":"(?<!\\\\w)[-0-9A-Z_a-z]+(?!\\\\w)","name":"variable.other.normal.shell"},{"include":"#variable"},{"include":"#string"}]},{"begin":"(\\\\$)(\\\\{)","beginCaptures":{"1":{"name":"punctuation.definition.variable.shell"},"2":{"name":"punctuation.section.bracket.curly.variable.begin.shell punctuation.definition.variable.shell"}},"contentName":"meta.parameter-expansion","end":"}","endCaptures":{"0":{"name":"punctuation.section.bracket.curly.variable.end.shell punctuation.definition.variable.shell"}},"patterns":[{"include":"#special_expansion"},{"include":"#array_access_inline"},{"match":"(?<!\\\\w)[-0-9A-Z_a-z]+(?!\\\\w)","name":"variable.other.normal.shell"},{"include":"#variable"},{"include":"#string"}]},{"captures":{"1":{"name":"punctuation.definition.variable.shell variable.other.normal.shell"},"2":{"name":"variable.other.normal.shell"}},"match":"(\\\\$)(\\\\w+(?!\\\\w))"}]},"while_statement":{"patterns":[{"begin":"\\\\b(while)\\\\b","beginCaptures":{"1":{"name":"keyword.control.while.shell"}},"end":"(?=[\\\\n\\\\&);`{|}]|[\\\\t ]*#|])(?<!\\\\\\\\)","endCaptures":{},"name":"meta.while.shell","patterns":[{"include":"#line_continuation"},{"include":"#math_operators"},{"include":"#option"},{"include":"#simple_unquoted"},{"include":"#normal_context"},{"include":"#string"}]}]}},"scopeName":"source.shell","aliases":["bash","sh","shell","zsh"]}')),Sm=[e];
2
+ export{Sm};
@@ -0,0 +1,2 @@
1
+ import{d,n,o,i,u,a,e,s,p,I,ra,os,f,ae,tn,de,S,U,Fo,Fm,X,Bt,cA,Um,Qd}from"./index-rr79n77k.js";var q={name:"folder-git-2",size:24,node:[["path",{d:"M18 19a5 5 0 0 1-5-5v8",key:"sz5oeg"}],["path",{d:"M9 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v5",key:"1w6njk"}],["circle",{cx:"13",cy:"12",r:"2",key:"1j92g6"}],["circle",{cx:"20",cy:"19",r:"2",key:"1obnsp"}]]},_m=s(q);function O({row:t,active:r,name:l,loading:h,onSelect:c,onCopyPath:g,onReveal:N}){return e("div",{className:"grid grid-cols-[1rem_minmax(0,1fr)_3.5rem] items-start gap-x-2 px-4 py-2 border-b border-ink/5 last:border-b-0 hover:bg-ink/[0.02] group/row transition-colors",children:[e("div",{className:"h-5 flex items-center justify-center",children:r&&e(f,{size:12,className:"text-ink","aria-label":"Selected repository"})}),e("button",{type:"button",onClick:c,disabled:r||!t.isRepo,title:!t.isRepo?t.error??"Not a git repository":r?"Already showing this repository":`Show ${t.path}`,className:"min-w-0 text-left cursor-pointer disabled:cursor-default",children:e("div",{className:"h-5 flex items-center gap-1.5 min-w-0",children:[e(de,{size:11,className:r?"text-ink/60 flex-shrink-0":"text-ink/40 flex-shrink-0"}),e("span",{className:`truncate text-xs ${r?"font-semibold text-ink":"text-ink/90"}`,children:l})]})}),e("div",{className:"h-5 flex items-center justify-end gap-0.5 touch-visible opacity-0 group-hover/row:opacity-100",children:[e("button",{type:"button",onClick:g,disabled:h,title:`Copy the absolute path of ${t.path}`,"aria-label":`Copy path of ${t.path}`,className:"w-5 h-5 flex items-center justify-center rounded text-ink/40 hover:text-ink hover:bg-ink/10 cursor-pointer transition-colors disabled:opacity-30 disabled:cursor-default",children:e(ae,{size:11})}),e("button",{type:"button",onClick:N,title:`Reveal ${t.path} in the file manager`,"aria-label":`Reveal ${t.path}`,className:"w-5 h-5 flex items-center justify-center rounded text-ink/40 hover:text-ink hover:bg-ink/10 cursor-pointer transition-colors",children:e(tn,{size:11})})]}),e("div",{className:"col-start-2 col-span-2 flex flex-wrap items-center gap-x-2 gap-y-0.5 min-w-0 mt-0.5",children:[t.isRepo?e(d,{children:[e("span",{className:`text-[10px] font-mono truncate ${t.detached?"text-warning-text":"text-ink/50"}`,title:t.detached?`Detached HEAD at ${t.branch}`:`On branch ${t.branch}`,children:t.branch}),e("span",{className:"text-[10px] text-ink/25","aria-hidden":!0,children:"·"}),e(Q,{row:t})]}):e("span",{className:"text-[10px] text-ink/40 truncate",children:t.error??"Not a git repository"}),t.isRepo&&t.subject&&e(d,{children:[e("span",{className:"text-[10px] text-ink/25","aria-hidden":!0,children:"·"}),e("span",{className:"text-[10px] text-ink/40 truncate min-w-0",title:t.subject,children:t.subject})]})]})]})}function Q({row:t}){let r=[];if(t.operation)r.push(e("span",{className:"flex flex-shrink-0 items-center gap-0.5 rounded border border-warning/30 px-1 text-[10px] font-mono text-warning-text",title:t.operation==="stash-pop"?`A stash pop stopped on ${t.conflicts} conflict(s)`:`A ${Fo[t.operation]} is in progress, stopped on ${t.conflicts} conflict(s)`,children:[e(I,{size:9}),Fo[t.operation]]},"operation"));else if(t.conflicts>0)r.push(e("span",{className:"flex flex-shrink-0 items-center gap-0.5 rounded border border-warning/30 px-1 text-[10px] font-mono text-warning-text",title:`${t.conflicts} conflicted path(s)`,children:[e(I,{size:9}),t.conflicts]},"conflicts"));if(t.changed>0||t.untracked>0)r.push(e("span",{className:"flex-shrink-0 rounded border border-info/30 px-1 text-[10px] font-mono tabular-nums text-info-text",title:`${t.changed} changed, ${t.untracked} untracked`,children:[t.changed>0?`${t.changed}±`:"",t.changed>0&&t.untracked>0?" ":"",t.untracked>0?`${t.untracked}?`:""]},"dirty"));if(t.gone)r.push(e("span",{className:"flex-shrink-0 rounded border border-warning/30 px-1 text-[10px] font-mono text-warning-text",title:`${t.upstream} no longer exists on the remote — fetch --prune to drop it`,children:"gone"},"gone"));else if(t.upstream&&(t.ahead>0||t.behind>0))r.push(e("span",{className:"flex flex-shrink-0 items-center gap-0.5 text-[10px] font-mono tabular-nums text-ink/60",title:`${t.ahead} ahead of, ${t.behind} behind ${t.upstream}`,children:[t.ahead>0&&e("span",{className:"flex items-center",children:[e(os,{size:9}),t.ahead]}),t.behind>0&&e("span",{className:"flex items-center",children:[e(ra,{size:9}),t.behind]})]},"track"));if(r.length===0)return e("span",{className:"text-[10px] font-mono text-ink/30",title:"Nothing to report: clean and in sync",children:"clean, in sync"});return e(d,{children:r})}function H(t){let{open:r,rootPath:l,scanning:h}=t,[c,g]=n([]),[N,k]=n(!1),[C,A]=n(!1),[z,y]=n(null),[D,E]=n(0),j=t.repos.join("\x00"),G=i(!0),b=i(null);o(()=>(G.current=!0,()=>{G.current=!1,b.current?.abort(),b.current=null}),[]);let M=a(async()=>{b.current?.abort();let v=new AbortController;b.current=v,A(!0),k(!0);try{let R=new URLSearchParams({repoDetails:"1"});if(l)R.set("root",l);let w=await fetch(`/api/fs/git?${R.toString()}`,{signal:v.signal}),F=await w.json();if(!G.current||b.current!==v)return;if(!w.ok||!Array.isArray(F.details)){y(F.error||`Failed to read repositories (HTTP ${w.status})`);return}g(F.details),y(null)}catch(R){if(!G.current||b.current!==v)return;if(R instanceof Error&&R.name==="AbortError")return;y(R instanceof Error?R.message:"Failed to read repositories")}finally{if(G.current&&b.current===v)b.current=null,A(!1),k(!1)}},[l]);o(()=>{if(!r){g([]),y(null),k(!1);return}M()},[r,M,j,h,D]);let L=a(()=>E((v)=>v+1),[]);return{details:c,loading:N,reading:C,error:z,refresh:L}}function B(t){let r=new Map;for(let l of t){if(!l||l==="."){if(!r.has(""))r.set("",{key:"",label:null,paths:[]});r.get("").paths.push(".");continue}let h=l.indexOf("/"),c=h===-1?"":l.slice(0,h),g=r.get(c);if(!g)g={key:c,label:c===""?null:c,paths:[]},r.set(c,g);g.paths.push(l)}for(let l of r.values())l.paths.sort((h,c)=>h==="."?-1:c==="."?1:h.localeCompare(c));return[...r.values()].sort((l,h)=>{if(l.key==="")return-1;if(h.key==="")return 1;return l.key.localeCompare(h.key)})}function _(t,r){if(t===".")return"workspace root";if(r==="")return t;return t.slice(r.length+1)}function W({isOpen:t,rootPath:r,activeRepo:l,repos:h,scanning:c,onSelectRepo:g,onRefreshRepos:N,onClose:k}){let[C,A]=n(""),[z,y]=n(null),{details:D,loading:E,reading:j,error:G,refresh:b}=H({open:t,rootPath:r,repos:h,scanning:c});o(()=>{if(!t)A(""),y(null)},[t]);let M=u(()=>{let x=C.trim().toLowerCase();if(!x)return D;return D.filter((m)=>m.path.toLowerCase().includes(x))},[D,C]),L=u(()=>B(M.map((x)=>x.path)),[M]),v=u(()=>{let x=new Map;for(let m of D)x.set(m.path,m);return x},[D]),R=a(()=>{N(),b()},[N,b]),w=a(async(x)=>{let m=r?Qd(r,x==="."?"":x):x,P=await Bt(m);y(P?{text:`Copied ${m}`,kind:"success"}:{text:"Clipboard unavailable",kind:"error"})},[r]),F=a(async(x)=>{let m=new FormData;if(m.append("actionType","open_explorer"),m.append("path","."),m.append("repo",x),r)m.append("root",r);try{let P=await fetch("/api/fs/action",{method:"POST",body:m}),T=await P.json();if(!P.ok||T.error)y({text:T.error||"Could not open the file manager",kind:"error"})}catch{y({text:"Could not open the file manager",kind:"error"})}},[r]);if(!t)return null;return e(X,{onClose:k,maxWidthClass:"max-w-[min(96vw,720px)]",header:e("div",{className:"flex items-center gap-2 min-w-0",children:[e(_m,{size:14,className:"text-ink/60 flex-shrink-0"}),e("h2",{className:"text-sm font-semibold text-ink",children:"Repositories"}),e("span",{className:"text-[10px] font-mono text-ink/50 truncate",children:[h.length," in this workspace"]})]}),children:[e("div",{className:"px-5 py-3 flex items-center gap-2 border-b border-ink/10",children:[e(U,{size:12,className:"text-ink/40 flex-shrink-0"}),e("input",{type:"text",value:C,onChange:(x)=>A(x.currentTarget.value),placeholder:"Filter repositories…","aria-label":"Filter repositories",className:"flex-1 min-w-0 bg-transparent outline-none text-xs text-ink placeholder-ink/40",autoFocus:!0}),e("button",{type:"button",onClick:R,disabled:j||c,title:"Re-discover repositories and re-read their state","aria-label":"Refresh repositories",className:"text-ink/40 hover:text-ink transition-colors cursor-pointer disabled:opacity-40 flex-shrink-0",children:e(S,{size:12,className:j||c?"animate-spin":""})})]}),c&&e("div",{className:"px-5 py-1.5 border-b border-ink/10 text-[10px] font-mono text-ink/50 flex items-center gap-1.5",children:[e(p,{size:10,className:"animate-spin"}),"Still discovering repositories in this workspace…"]}),z&&e("div",{className:`px-5 py-1.5 border-b border-ink/10 text-[10px] font-mono truncate ${z.kind==="error"?"text-error-text":"text-ink/60"}`,title:z.text,role:"status",children:z.text}),e("div",{className:"min-h-[40vh] max-h-[60vh] overflow-y-auto scrollbar-overlay-container",children:E&&D.length===0?e("div",{className:"flex items-center justify-center gap-2 py-12 text-xs text-ink/50 font-mono",children:[e(p,{size:14,className:"animate-spin text-info-text"}),"Reading repositories…"]}):G?e("div",{className:"py-12 px-6 text-center text-xs text-error-text font-mono",children:G}):M.length===0?e("div",{className:"py-12 text-center text-xs text-ink/40 font-mono",children:C.trim()?"No matching repositories.":"No repositories in this workspace."}):L.map((x)=>e("div",{children:[e("div",{className:"px-4 py-1 text-[10px] uppercase tracking-wider text-ink/40 font-semibold bg-canvas/40 border-b border-ink/5 sticky top-0",children:x.label??cA(".",r)}),x.paths.map((m)=>{let P=v.get(m);if(!P)return null;return e(O,{row:P,active:m===l,name:_(m,x.key),loading:j,onSelect:()=>{g(m),k()},onCopyPath:()=>void w(m),onReveal:()=>void F(m)},m)})]},x.key))})]})}function Dr({rootPath:t,activeRepo:r,onSelectRepo:l,repos:h,scanning:c,onRefreshRepos:g}){let[N,k]=n(!1),C=u(()=>({root:t??null,repo:r,rows:Um(t,h),scanning:c,ready:!0,setRepo:l,refresh:g}),[t,r,h,c,l,g]),A=a(()=>k(!0),[]);return e("div",{className:"relative min-w-0",children:[e(Fm,{scope:C,onManage:A}),e(W,{isOpen:N,rootPath:t,activeRepo:r,repos:h,scanning:c,onSelectRepo:l,onRefreshRepos:g,onClose:()=>k(!1)})]})}
2
+ export{_m,Dr};
@@ -0,0 +1 @@
1
+ import{Tg}from"./index-wnk9k57k.js";export{Tg as createInfoServices};
@@ -1,2 +1,2 @@
1
- import{t,l,re,Ae}from"./index-kbaffwp1.js";import{$e}from"./index-cwwg7k5f.js";var n={parse:t(async(r)=>{let e=await $e("info",r);l.debug(e)},"parse")},i={version:"12.0.0"},s=t(()=>i.version,"getVersion"),p={getVersion:s},g=t((r,e,o)=>{l.debug(`rendering info diagram
1
+ import{t,l,re,Ae}from"./index-xfyxmaj1.js";import{$e}from"./index-wnk9k57k.js";var n={parse:t(async(r)=>{let e=await $e("info",r);l.debug(e)},"parse")},i={version:"12.0.0"},s=t(()=>i.version,"getVersion"),p={getVersion:s},g=t((r,e,o)=>{l.debug(`rendering info diagram
2
2
  `+r);let a=Ae(e);re(a,100,400,!0),a.append("g").append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size",32).style("text-anchor","middle").text(`v${o}`)},"draw"),m={draw:g},y={parser:n,db:p,renderer:m};export{y as diagram};
@@ -0,0 +1 @@
1
+ import{Eh}from"./index-th61y26d.js";export{Eh as default};
@@ -1,9 +1,9 @@
1
- import{t,w,re,M,O,G,z,j,q,H,m,Ae,jn,y}from"./index-kbaffwp1.js";var ct=function(){var e=t(function(C,i,n,s){for(n=n||{},s=C.length;s--;n[C[s]]=i);return n},"o"),d=[1,4],r=[1,14],l=[1,12],o=[1,13],f=[6,7,8],g=[1,20],u=[1,18],x=[1,19],c=[6,7,11],_=[1,6,13,14],b=[1,23],S=[1,24],E=[1,6,7,11,13,14],W={trace:t(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ishikawa:4,spaceLines:5,SPACELINE:6,NL:7,ISHIKAWA:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,TEXT:14,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"ISHIKAWA",11:"EOF",13:"SPACELIST",14:"TEXT"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,1],[12,1],[12,1]],performAction:t(function(i,n,s,h,p,a,A){var v=a.length-1;switch(p){case 6:case 7:return h;case 15:h.addNode(a[v-1].length,a[v].trim());break;case 16:h.addNode(0,a[v].trim());break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:d},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:d},{6:r,7:[1,10],9:9,12:11,13:l,14:o},e(f,[2,3]),{1:[2,2]},e(f,[2,4]),e(f,[2,5]),{1:[2,6],6:r,12:15,13:l,14:o},{6:r,9:16,12:11,13:l,14:o},{6:g,7:u,10:17,11:x},e(c,[2,18],{14:[1,21]}),e(c,[2,16]),e(c,[2,17]),{6:g,7:u,10:22,11:x},{1:[2,7],6:r,12:15,13:l,14:o},e(_,[2,14],{7:b,11:S}),e(E,[2,8]),e(E,[2,9]),e(E,[2,10]),e(c,[2,15]),e(_,[2,13],{7:b,11:S}),e(E,[2,11]),e(E,[2,12])],defaultActions:{2:[2,1],6:[2,2]},parseError:t(function(i,n){if(n.recoverable)this.trace(i);else{var s=Error(i);throw s.hash=n,s}},"parseError"),parse:t(function(i){var n=this,s=[0],h=[],p=[null],a=[],A=this.table,v="",B=0,I=0,P=0,N=2,U=1,nt=a.slice.call(arguments,1),k=Object.create(this.lexer),L={yy:{}};for(var X in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,X))L.yy[X]=this.yy[X];if(k.setInput(i,L.yy),L.yy.lexer=k,L.yy.parser=this,typeof k.yylloc>"u")k.yylloc={};var Y=k.yylloc;a.push(Y);var at=k.options&&k.options.ranges;if(typeof L.yy.parseError==="function")this.parseError=L.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function bt(R){s.length=s.length-2*R,p.length=p.length-R,a.length=a.length-R}t(bt,"popStack");function ut(){var R=h.pop()||k.lex()||U;if(typeof R!=="number"){if(R instanceof Array)h=R,R=h.pop();R=n.symbols_[R]||R}return R}t(ut,"lex");var D,rt,K,V,Ot,lt,Q={},et,Z,dt,it;while(!0){if(K=s[s.length-1],this.defaultActions[K])V=this.defaultActions[K];else{if(D===null||typeof D>"u")D=ut();V=A[K]&&A[K][D]}if(typeof V>"u"||!V.length||!V[0]){var ot="";it=[];for(et in A[K])if(this.terminals_[et]&&et>N)it.push("'"+this.terminals_[et]+"'");if(k.showPosition)ot="Parse error on line "+(B+1)+`:
1
+ import{t,w,re,F,O,G,z,j,q,H,m,Ae,Hn,y}from"./index-xfyxmaj1.js";var ct=function(){var e=t(function(D,i,n,s){for(n=n||{},s=D.length;s--;n[D[s]]=i);return n},"o"),d=[1,4],r=[1,14],l=[1,12],o=[1,13],f=[6,7,8],g=[1,20],u=[1,18],x=[1,19],c=[6,7,11],_=[1,6,13,14],b=[1,23],S=[1,24],E=[1,6,7,11,13,14],R={trace:t(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ishikawa:4,spaceLines:5,SPACELINE:6,NL:7,ISHIKAWA:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,TEXT:14,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"ISHIKAWA",11:"EOF",13:"SPACELIST",14:"TEXT"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,1],[12,1],[12,1]],performAction:t(function(i,n,s,h,p,a,A){var v=a.length-1;switch(p){case 6:case 7:return h;case 15:h.addNode(a[v-1].length,a[v].trim());break;case 16:h.addNode(0,a[v].trim());break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:d},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:d},{6:r,7:[1,10],9:9,12:11,13:l,14:o},e(f,[2,3]),{1:[2,2]},e(f,[2,4]),e(f,[2,5]),{1:[2,6],6:r,12:15,13:l,14:o},{6:r,9:16,12:11,13:l,14:o},{6:g,7:u,10:17,11:x},e(c,[2,18],{14:[1,21]}),e(c,[2,16]),e(c,[2,17]),{6:g,7:u,10:22,11:x},{1:[2,7],6:r,12:15,13:l,14:o},e(_,[2,14],{7:b,11:S}),e(E,[2,8]),e(E,[2,9]),e(E,[2,10]),e(c,[2,15]),e(_,[2,13],{7:b,11:S}),e(E,[2,11]),e(E,[2,12])],defaultActions:{2:[2,1],6:[2,2]},parseError:t(function(i,n){if(n.recoverable)this.trace(i);else{var s=Error(i);throw s.hash=n,s}},"parseError"),parse:t(function(i){var n=this,s=[0],h=[],p=[null],a=[],A=this.table,v="",P=0,I=0,M=0,B=2,U=1,nt=a.slice.call(arguments,1),k=Object.create(this.lexer),L={yy:{}};for(var X in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,X))L.yy[X]=this.yy[X];if(k.setInput(i,L.yy),L.yy.lexer=k,L.yy.parser=this,typeof k.yylloc>"u")k.yylloc={};var Y=k.yylloc;a.push(Y);var at=k.options&&k.options.ranges;if(typeof L.yy.parseError==="function")this.parseError=L.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function bt(V){s.length=s.length-2*V,p.length=p.length-V,a.length=a.length-V}t(bt,"popStack");function ut(){var V=h.pop()||k.lex()||U;if(typeof V!=="number"){if(V instanceof Array)h=V,V=h.pop();V=n.symbols_[V]||V}return V}t(ut,"lex");var N,rt,K,C,Ot,lt,Q={},et,Z,dt,it;while(!0){if(K=s[s.length-1],this.defaultActions[K])C=this.defaultActions[K];else{if(N===null||typeof N>"u")N=ut();C=A[K]&&A[K][N]}if(typeof C>"u"||!C.length||!C[0]){var ot="";it=[];for(et in A[K])if(this.terminals_[et]&&et>B)it.push("'"+this.terminals_[et]+"'");if(k.showPosition)ot="Parse error on line "+(P+1)+`:
2
2
  `+k.showPosition()+`
3
- Expecting `+it.join(", ")+", got '"+(this.terminals_[D]||D)+"'";else ot="Parse error on line "+(B+1)+": Unexpected "+(D==U?"end of input":"'"+(this.terminals_[D]||D)+"'");this.parseError(ot,{text:k.match,token:this.terminals_[D]||D,line:k.yylineno,loc:Y,expected:it})}if(V[0]instanceof Array&&V.length>1)throw Error("Parse Error: multiple actions possible at state: "+K+", token: "+D);switch(V[0]){case 1:if(s.push(D),p.push(k.yytext),a.push(k.yylloc),s.push(V[1]),D=null,!rt){if(I=k.yyleng,v=k.yytext,B=k.yylineno,Y=k.yylloc,P>0)P--}else D=rt,rt=null;break;case 2:if(Z=this.productions_[V[1]][1],Q.$=p[p.length-Z],Q._$={first_line:a[a.length-(Z||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(Z||1)].first_column,last_column:a[a.length-1].last_column},at)Q._$.range=[a[a.length-(Z||1)].range[0],a[a.length-1].range[1]];if(lt=this.performAction.apply(Q,[v,I,B,L.yy,V[1],p,a].concat(nt)),typeof lt<"u")return lt;if(Z)s=s.slice(0,-1*Z*2),p=p.slice(0,-1*Z),a=a.slice(0,-1*Z);s.push(this.productions_[V[1]][0]),p.push(Q.$),a.push(Q._$),dt=A[s[s.length-2]][s[s.length-1]],s.push(dt);break;case 3:return!0}}return!0},"parse")},F=function(){var C={EOF:1,parseError:t(function(n,s){if(this.yy.parser)this.yy.parser.parseError(n,s);else throw Error(n)},"parseError"),setInput:t(function(i,n){if(this.yy=n||this.yy||{},this._input=i,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 i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var n=i.match(/(?:\r\n?|\n).*/g);if(n)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),i},"input"),unput:t(function(i){var n=i.length,s=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var h=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),s.length-1)this.yylineno-=s.length-1;var p=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:s?(s.length===h.length?this.yylloc.first_column:0)+h[h.length-s.length].length-s[0].length:this.yylloc.first_column-n},this.options.ranges)this.yylloc.range=[p[0],p[0]+this.yyleng-n];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 `+it.join(", ")+", got '"+(this.terminals_[N]||N)+"'";else ot="Parse error on line "+(P+1)+": Unexpected "+(N==U?"end of input":"'"+(this.terminals_[N]||N)+"'");this.parseError(ot,{text:k.match,token:this.terminals_[N]||N,line:k.yylineno,loc:Y,expected:it})}if(C[0]instanceof Array&&C.length>1)throw Error("Parse Error: multiple actions possible at state: "+K+", token: "+N);switch(C[0]){case 1:if(s.push(N),p.push(k.yytext),a.push(k.yylloc),s.push(C[1]),N=null,!rt){if(I=k.yyleng,v=k.yytext,P=k.yylineno,Y=k.yylloc,M>0)M--}else N=rt,rt=null;break;case 2:if(Z=this.productions_[C[1]][1],Q.$=p[p.length-Z],Q._$={first_line:a[a.length-(Z||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(Z||1)].first_column,last_column:a[a.length-1].last_column},at)Q._$.range=[a[a.length-(Z||1)].range[0],a[a.length-1].range[1]];if(lt=this.performAction.apply(Q,[v,I,P,L.yy,C[1],p,a].concat(nt)),typeof lt<"u")return lt;if(Z)s=s.slice(0,-1*Z*2),p=p.slice(0,-1*Z),a=a.slice(0,-1*Z);s.push(this.productions_[C[1]][0]),p.push(Q.$),a.push(Q._$),dt=A[s[s.length-2]][s[s.length-1]],s.push(dt);break;case 3:return!0}}return!0},"parse")},W=function(){var D={EOF:1,parseError:t(function(n,s){if(this.yy.parser)this.yy.parser.parseError(n,s);else throw Error(n)},"parseError"),setInput:t(function(i,n){if(this.yy=n||this.yy||{},this._input=i,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 i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var n=i.match(/(?:\r\n?|\n).*/g);if(n)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),i},"input"),unput:t(function(i){var n=i.length,s=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var h=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),s.length-1)this.yylineno-=s.length-1;var p=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:s?(s.length===h.length?this.yylloc.first_column:0)+h[h.length-s.length].length-s[0].length:this.yylloc.first_column-n},this.options.ranges)this.yylloc.range=[p[0],p[0]+this.yyleng-n];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(i){this.unput(this.match.slice(i))},"less"),pastInput:t(function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:t(function(){var i=this.match;if(i.length<20)i+=this._input.substr(0,20-i.length);return(i.substr(0,20)+(i.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:t(function(){var i=this.pastInput(),n=Array(i.length+1).join("-");return i+this.upcomingInput()+`
5
5
  `+n+"^"},"showPosition"),test_match:t(function(i,n){var s,h,p;if(this.options.backtrack_lexer){if(p={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)p.yylloc.range=this.yylloc.range.slice(0)}if(h=i[0].match(/(?:\r\n?|\n).*/g),h)this.yylineno+=h.length;if(this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:h?h[h.length-1].length-h[h.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+i[0].length},this.yytext+=i[0],this.match+=i[0],this.matches=i,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(i[0].length),this.matched+=i[0],s=this.performAction.call(this,this.yy,this,n,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input)this.done=!1;if(s)return s;else if(this._backtrack){for(var a in p)this[a]=p[a];return!1}return!1},"test_match"),next:t(function(){if(this.done)return this.EOF;if(!this._input)this.done=!0;var i,n,s,h;if(!this._more)this.yytext="",this.match="";var p=this._currentRules();for(var a=0;a<p.length;a++)if(s=this._input.match(this.rules[p[a]]),s&&(!n||s[0].length>n[0].length)){if(n=s,h=a,this.options.backtrack_lexer)if(i=this.test_match(s,p[a]),i!==!1)return i;else if(this._backtrack){n=!1;continue}else return!1;else if(!this.options.flex)break}if(n){if(i=this.test_match(n,p[h]),i!==!1)return i;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 n=this.next();if(n)return n;else return this.lex()},"lex"),begin:t(function(n){this.conditionStack.push(n)},"begin"),popState:t(function(){var n=this.conditionStack.length-1;if(n>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(n){if(n=this.conditionStack.length-1-Math.abs(n||0),n>=0)return this.conditionStack[n];else return"INITIAL"},"topState"),pushState:t(function(n){this.begin(n)},"pushState"),stateStackSize:t(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:t(function(n,s,h,p){var a=p;switch(h){case 0:return 6;case 1:return 8;case 2:return 8;case 3:return 6;case 4:return 7;case 5:return 13;case 6:return 14;case 7:return 11}},"anonymous"),rules:[/^(?:\s*%%.*)/i,/^(?:ishikawa-beta\b)/i,/^(?:ishikawa\b)/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[\s]+)/i,/^(?:[^\n]+)/i,/^(?:$)/i],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7],inclusive:!0}}};return C}();W.lexer=F;function T(){this.yy={}}return t(T,"Parser"),T.prototype=W,W.Parser=T,new T}();ct.parser=ct;var _t=ct,xt=class{constructor(){this.stack=[],this.clear=this.clear.bind(this),this.addNode=this.addNode.bind(this),this.getRoot=this.getRoot.bind(this)}static{t(this,"IshikawaDB")}clear(){this.root=void 0,this.stack=[],this.baseLevel=void 0,M()}getRoot(){return this.root}addNode(e,d){let r=w.sanitizeText(d,m());if(!this.root){this.root={text:r,children:[]},this.stack=[{level:0,node:this.root}],q(r);return}this.baseLevel??=e;let l=e-this.baseLevel+1;if(l<=0)l=1;while(this.stack.length>1&&this.stack[this.stack.length-1].level>=l)this.stack.pop();let o=this.stack[this.stack.length-1].node,f={text:r,children:[]};o.children.push(f),this.stack.push({level:l,node:f})}getAccTitle(){return G()}setAccTitle(e){O(e)}getAccDescription(){return j()}setAccDescription(e){z(e)}getDiagramTitle(){return H()}setDiagramTitle(e){q(e)}},vt=14,J=250,St=30,Et=60,$t=5,mt=82*Math.PI/180,yt=Math.cos(mt),ft=Math.sin(mt),pt=t((e,d,r)=>{let l=e.node().getBBox(),o=l.width+d*2,f=l.height+d*2;re(e,f,o,r),e.attr("viewBox",`${l.x-d} ${l.y-d} ${o} ${f}`)},"applyPaddedViewBox"),At=t((e,d,r,l)=>{let f=l.db.getRoot();if(!f)return;let g=m(),{look:u,handDrawnSeed:x,themeVariables:c}=g,_=jn(g.fontSize)[0]??vt,b=u==="handDrawn",S=f.children??[],E=g.ishikawa?.diagramPadding??20,W=g.ishikawa?.useMaxWidth??!1,F=Ae(d),T=F.append("g").attr("class","ishikawa"),C=b?y.svg(F.node()):void 0,i=C?{roughSvg:C,seed:x??0,lineColor:c?.lineColor??"#333",fillColor:c?.mainBkg??"#fff"}:void 0,n=`ishikawa-arrow-${d}`;if(!b)T.append("defs").append("marker").attr("id",n).attr("viewBox","0 0 10 10").attr("refX",0).attr("refY",5).attr("markerWidth",6).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 10 0 L 0 5 L 10 10 Z").attr("class","ishikawa-arrow");let s=0,h=J,p=b?void 0:tt(T,s,h,s,h,"ishikawa-spine");if(It(T,s,h,f.text,_,i),!S.length){if(b)tt(T,s,h,s,h,"ishikawa-spine",i);pt(F,E,W);return}s-=20;let a=S.filter((k,L)=>L%2===0),A=S.filter((k,L)=>L%2===1),v=gt(a),B=gt(A),I=v.total+B.total,P=J,N=J;if(I>0){let k=J*2,L=J*0.3;P=Math.max(L,k*(v.total/I)),N=Math.max(L,k*(B.total/I))}let U=_*2;if(P=Math.max(P,v.max*U),N=Math.max(N,B.max*U),h=Math.max(P,J),p)p.attr("y1",h).attr("y2",h);T.select(".ishikawa-head-group").attr("transform",`translate(0,${h})`);let nt=Math.ceil(S.length/2);for(let k=0;k<nt;k++){let L=T.append("g").attr("class","ishikawa-pair");for(let[X,Y,at]of[[S[k*2],-1,P],[S[k*2+1],1,N]])if(X)Mt(L,X,s,h,Y,at,_,i);s=L.selectAll("text").nodes().reduce((X,Y)=>Math.min(X,Y.getBBox().x),1/0)}if(b)tt(T,s,h,0,h,"ishikawa-spine",i);else{p.attr("x1",s);let k=`url(#${n})`;T.selectAll("line.ishikawa-branch, line.ishikawa-sub-branch").attr("marker-start",k)}pt(F,E,W)},"draw"),gt=t((e)=>{let d=t((r)=>r.children.reduce((l,o)=>l+1+d(o),0),"countDescendants");return e.reduce((r,l)=>{let o=d(l);return r.total+=o,r.max=Math.max(r.max,o),r},{total:0,max:0})},"sideStats"),It=t((e,d,r,l,o,f)=>{let g=Math.max(6,Math.floor(110/(o*0.6))),u=e.append("g").attr("class","ishikawa-head-group").attr("transform",`translate(${d},${r})`),x=st(u,wt(l,g),0,0,"ishikawa-head-label","start",o),c=x.node().getBBox(),_=Math.max(60,c.width+6),b=Math.max(40,c.height*2+40),S=`M 0 ${-b/2} L 0 ${b/2} Q ${_*2.4} 0 0 ${-b/2} Z`;if(f){let E=f.roughSvg.path(S,{roughness:1.5,seed:f.seed,fill:f.fillColor,fillStyle:"hachure",fillWeight:2.5,hachureGap:5,stroke:f.lineColor,strokeWidth:2});u.insert(()=>E,":first-child").attr("class","ishikawa-head")}else u.insert("path",":first-child").attr("class","ishikawa-head").attr("d",S);x.attr("transform",`translate(${(_-c.width)/2-c.x+3},${-c.y-c.height/2})`)},"drawHead"),Lt=t((e,d)=>{let r=[],l=[],o=t((f,g,u)=>{let x=d===-1?[...f].reverse():f;for(let c of x){let _=r.length,b=c.children??[];if(r.push({depth:u,text:wt(c.text,15),parentIndex:g,childCount:b.length}),u%2===0){if(l.push(_),b.length)o(b,_,u+1)}else{if(b.length)o(b,_,u+1);l.push(_)}}},"walk");return o(e,-1,2),{entries:r,yOrder:l}},"flattenTree"),Tt=t((e,d,r,l,o,f,g)=>{let u=e.append("g").attr("class","ishikawa-label-group"),c=st(u,d,r,l+11*o,"ishikawa-label cause","middle",f).node().getBBox();if(g){let _=g.roughSvg.rectangle(c.x-20,c.y-2,c.width+40,c.height+4,{roughness:1.5,seed:g.seed,fill:g.fillColor,fillStyle:"hachure",fillWeight:2.5,hachureGap:5,stroke:g.lineColor,strokeWidth:2});u.insert(()=>_,":first-child").attr("class","ishikawa-label-box")}else u.insert("rect",":first-child").attr("class","ishikawa-label-box").attr("x",c.x-20).attr("y",c.y-2).attr("width",c.width+40).attr("height",c.height+4)},"drawCauseLabel"),ht=t((e,d,r,l,o,f)=>{let g=Math.sqrt(l*l+o*o);if(g===0)return;let u=l/g,x=o/g,c=6,_=-x*c,b=u*c,S=d,E=r,W=`M ${S} ${E} L ${S-u*c*2+_} ${E-x*c*2+b} L ${S-u*c*2-_} ${E-x*c*2-b} Z`,F=f.roughSvg.path(W,{roughness:1,seed:f.seed,fill:f.lineColor,fillStyle:"solid",stroke:f.lineColor,strokeWidth:1});e.append(()=>F)},"drawArrowMarker"),Mt=t((e,d,r,l,o,f,g,u)=>{let x=d.children??[],c=f*(x.length?1:0.2),_=-yt*c,b=ft*c*o,S=r+_,E=l+b;if(tt(e,r,l,S,E,"ishikawa-branch",u),u)ht(e,r,l,r-S,l-E,u);if(Tt(e,d.text,S,E,o,g,u),!x.length)return;let{entries:W,yOrder:F}=Lt(x,o),T=W.length,C=Array(T);for(let[p,a]of F.entries())C[a]=l+b*((p+1)/(T+1));let i=new Map;i.set(-1,{x0:r,y0:l,x1:S,y1:E,childCount:x.length,childrenDrawn:0});let n=-yt,s=ft*o,h=o<0?"ishikawa-label up":"ishikawa-label down";for(let[p,a]of W.entries()){let A=C[p],v=i.get(a.parentIndex),B=e.append("g").attr("class","ishikawa-sub-group"),I=0,P=0,N=0;if(a.depth%2===0){let U=v.y1-v.y0;if(I=kt(v.x0,v.x1,U?(A-v.y0)/U:0.5),P=A,N=I-(a.childCount>0?Et+a.childCount*$t:St),tt(B,I,A,N,A,"ishikawa-sub-branch",u),u)ht(B,I,A,1,0,u);st(B,a.text,N,A,"ishikawa-label align","end",g)}else{let U=v.childrenDrawn++;if(I=kt(v.x0,v.x1,(v.childCount-U)/(v.childCount+1)),P=v.y0,N=I+n*((A-P)/s),tt(B,I,P,N,A,"ishikawa-sub-branch",u),u)ht(B,I,P,I-N,P-A,u);st(B,a.text,N,A,h,"end",g)}if(a.childCount>0)i.set(p,{x0:I,y0:P,x1:N,y1:A,childCount:a.childCount,childrenDrawn:0})}},"drawBranch"),Pt=t((e)=>e.split(/<br\s*\/?>|\n/),"splitLines"),wt=t((e,d)=>{if(e.length<=d)return e;let r=[];for(let l of e.split(/\s+/)){let o=r.length-1;if(o>=0&&r[o].length+1+l.length<=d)r[o]+=" "+l;else r.push(l)}return r.join(`
6
+ `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:t(function(){var n=this.next();if(n)return n;else return this.lex()},"lex"),begin:t(function(n){this.conditionStack.push(n)},"begin"),popState:t(function(){var n=this.conditionStack.length-1;if(n>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(n){if(n=this.conditionStack.length-1-Math.abs(n||0),n>=0)return this.conditionStack[n];else return"INITIAL"},"topState"),pushState:t(function(n){this.begin(n)},"pushState"),stateStackSize:t(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:t(function(n,s,h,p){var a=p;switch(h){case 0:return 6;case 1:return 8;case 2:return 8;case 3:return 6;case 4:return 7;case 5:return 13;case 6:return 14;case 7:return 11}},"anonymous"),rules:[/^(?:\s*%%.*)/i,/^(?:ishikawa-beta\b)/i,/^(?:ishikawa\b)/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[\s]+)/i,/^(?:[^\n]+)/i,/^(?:$)/i],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7],inclusive:!0}}};return D}();R.lexer=W;function T(){this.yy={}}return t(T,"Parser"),T.prototype=R,R.Parser=T,new T}();ct.parser=ct;var _t=ct,xt=class{constructor(){this.stack=[],this.clear=this.clear.bind(this),this.addNode=this.addNode.bind(this),this.getRoot=this.getRoot.bind(this)}static{t(this,"IshikawaDB")}clear(){this.root=void 0,this.stack=[],this.baseLevel=void 0,F()}getRoot(){return this.root}addNode(e,d){let r=w.sanitizeText(d,m());if(!this.root){this.root={text:r,children:[]},this.stack=[{level:0,node:this.root}],q(r);return}this.baseLevel??=e;let l=e-this.baseLevel+1;if(l<=0)l=1;while(this.stack.length>1&&this.stack[this.stack.length-1].level>=l)this.stack.pop();let o=this.stack[this.stack.length-1].node,f={text:r,children:[]};o.children.push(f),this.stack.push({level:l,node:f})}getAccTitle(){return G()}setAccTitle(e){O(e)}getAccDescription(){return j()}setAccDescription(e){z(e)}getDiagramTitle(){return H()}setDiagramTitle(e){q(e)}},vt=14,J=250,St=30,Et=60,$t=5,mt=82*Math.PI/180,yt=Math.cos(mt),ft=Math.sin(mt),pt=t((e,d,r)=>{let l=e.node().getBBox(),o=l.width+d*2,f=l.height+d*2;re(e,f,o,r),e.attr("viewBox",`${l.x-d} ${l.y-d} ${o} ${f}`)},"applyPaddedViewBox"),At=t((e,d,r,l)=>{let f=l.db.getRoot();if(!f)return;let g=m(),{look:u,handDrawnSeed:x,themeVariables:c}=g,_=Hn(g.fontSize)[0]??vt,b=u==="handDrawn",S=f.children??[],E=g.ishikawa?.diagramPadding??20,R=g.ishikawa?.useMaxWidth??!1,W=Ae(d),T=W.append("g").attr("class","ishikawa"),D=b?y.svg(W.node()):void 0,i=D?{roughSvg:D,seed:x??0,lineColor:c?.lineColor??"#333",fillColor:c?.mainBkg??"#fff"}:void 0,n=`ishikawa-arrow-${d}`;if(!b)T.append("defs").append("marker").attr("id",n).attr("viewBox","0 0 10 10").attr("refX",0).attr("refY",5).attr("markerWidth",6).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 10 0 L 0 5 L 10 10 Z").attr("class","ishikawa-arrow");let s=0,h=J,p=b?void 0:tt(T,s,h,s,h,"ishikawa-spine");if(It(T,s,h,f.text,_,i),!S.length){if(b)tt(T,s,h,s,h,"ishikawa-spine",i);pt(W,E,R);return}s-=20;let a=S.filter((k,L)=>L%2===0),A=S.filter((k,L)=>L%2===1),v=gt(a),P=gt(A),I=v.total+P.total,M=J,B=J;if(I>0){let k=J*2,L=J*0.3;M=Math.max(L,k*(v.total/I)),B=Math.max(L,k*(P.total/I))}let U=_*2;if(M=Math.max(M,v.max*U),B=Math.max(B,P.max*U),h=Math.max(M,J),p)p.attr("y1",h).attr("y2",h);T.select(".ishikawa-head-group").attr("transform",`translate(0,${h})`);let nt=Math.ceil(S.length/2);for(let k=0;k<nt;k++){let L=T.append("g").attr("class","ishikawa-pair");for(let[X,Y,at]of[[S[k*2],-1,M],[S[k*2+1],1,B]])if(X)Mt(L,X,s,h,Y,at,_,i);s=L.selectAll("text").nodes().reduce((X,Y)=>Math.min(X,Y.getBBox().x),1/0)}if(b)tt(T,s,h,0,h,"ishikawa-spine",i);else{p.attr("x1",s);let k=`url(#${n})`;T.selectAll("line.ishikawa-branch, line.ishikawa-sub-branch").attr("marker-start",k)}pt(W,E,R)},"draw"),gt=t((e)=>{let d=t((r)=>r.children.reduce((l,o)=>l+1+d(o),0),"countDescendants");return e.reduce((r,l)=>{let o=d(l);return r.total+=o,r.max=Math.max(r.max,o),r},{total:0,max:0})},"sideStats"),It=t((e,d,r,l,o,f)=>{let g=Math.max(6,Math.floor(110/(o*0.6))),u=e.append("g").attr("class","ishikawa-head-group").attr("transform",`translate(${d},${r})`),x=st(u,wt(l,g),0,0,"ishikawa-head-label","start",o),c=x.node().getBBox(),_=Math.max(60,c.width+6),b=Math.max(40,c.height*2+40),S=`M 0 ${-b/2} L 0 ${b/2} Q ${_*2.4} 0 0 ${-b/2} Z`;if(f){let E=f.roughSvg.path(S,{roughness:1.5,seed:f.seed,fill:f.fillColor,fillStyle:"hachure",fillWeight:2.5,hachureGap:5,stroke:f.lineColor,strokeWidth:2});u.insert(()=>E,":first-child").attr("class","ishikawa-head")}else u.insert("path",":first-child").attr("class","ishikawa-head").attr("d",S);x.attr("transform",`translate(${(_-c.width)/2-c.x+3},${-c.y-c.height/2})`)},"drawHead"),Lt=t((e,d)=>{let r=[],l=[],o=t((f,g,u)=>{let x=d===-1?[...f].reverse():f;for(let c of x){let _=r.length,b=c.children??[];if(r.push({depth:u,text:wt(c.text,15),parentIndex:g,childCount:b.length}),u%2===0){if(l.push(_),b.length)o(b,_,u+1)}else{if(b.length)o(b,_,u+1);l.push(_)}}},"walk");return o(e,-1,2),{entries:r,yOrder:l}},"flattenTree"),Tt=t((e,d,r,l,o,f,g)=>{let u=e.append("g").attr("class","ishikawa-label-group"),c=st(u,d,r,l+11*o,"ishikawa-label cause","middle",f).node().getBBox();if(g){let _=g.roughSvg.rectangle(c.x-20,c.y-2,c.width+40,c.height+4,{roughness:1.5,seed:g.seed,fill:g.fillColor,fillStyle:"hachure",fillWeight:2.5,hachureGap:5,stroke:g.lineColor,strokeWidth:2});u.insert(()=>_,":first-child").attr("class","ishikawa-label-box")}else u.insert("rect",":first-child").attr("class","ishikawa-label-box").attr("x",c.x-20).attr("y",c.y-2).attr("width",c.width+40).attr("height",c.height+4)},"drawCauseLabel"),ht=t((e,d,r,l,o,f)=>{let g=Math.sqrt(l*l+o*o);if(g===0)return;let u=l/g,x=o/g,c=6,_=-x*c,b=u*c,S=d,E=r,R=`M ${S} ${E} L ${S-u*c*2+_} ${E-x*c*2+b} L ${S-u*c*2-_} ${E-x*c*2-b} Z`,W=f.roughSvg.path(R,{roughness:1,seed:f.seed,fill:f.lineColor,fillStyle:"solid",stroke:f.lineColor,strokeWidth:1});e.append(()=>W)},"drawArrowMarker"),Mt=t((e,d,r,l,o,f,g,u)=>{let x=d.children??[],c=f*(x.length?1:0.2),_=-yt*c,b=ft*c*o,S=r+_,E=l+b;if(tt(e,r,l,S,E,"ishikawa-branch",u),u)ht(e,r,l,r-S,l-E,u);if(Tt(e,d.text,S,E,o,g,u),!x.length)return;let{entries:R,yOrder:W}=Lt(x,o),T=R.length,D=Array(T);for(let[p,a]of W.entries())D[a]=l+b*((p+1)/(T+1));let i=new Map;i.set(-1,{x0:r,y0:l,x1:S,y1:E,childCount:x.length,childrenDrawn:0});let n=-yt,s=ft*o,h=o<0?"ishikawa-label up":"ishikawa-label down";for(let[p,a]of R.entries()){let A=D[p],v=i.get(a.parentIndex),P=e.append("g").attr("class","ishikawa-sub-group"),I=0,M=0,B=0;if(a.depth%2===0){let U=v.y1-v.y0;if(I=kt(v.x0,v.x1,U?(A-v.y0)/U:0.5),M=A,B=I-(a.childCount>0?Et+a.childCount*$t:St),tt(P,I,A,B,A,"ishikawa-sub-branch",u),u)ht(P,I,A,1,0,u);st(P,a.text,B,A,"ishikawa-label align","end",g)}else{let U=v.childrenDrawn++;if(I=kt(v.x0,v.x1,(v.childCount-U)/(v.childCount+1)),M=v.y0,B=I+n*((A-M)/s),tt(P,I,M,B,A,"ishikawa-sub-branch",u),u)ht(P,I,M,I-B,M-A,u);st(P,a.text,B,A,h,"end",g)}if(a.childCount>0)i.set(p,{x0:I,y0:M,x1:B,y1:A,childCount:a.childCount,childrenDrawn:0})}},"drawBranch"),Pt=t((e)=>e.split(/<br\s*\/?>|\n/),"splitLines"),wt=t((e,d)=>{if(e.length<=d)return e;let r=[];for(let l of e.split(/\s+/)){let o=r.length-1;if(o>=0&&r[o].length+1+l.length<=d)r[o]+=" "+l;else r.push(l)}return r.join(`
7
7
  `)},"wrapText"),st=t((e,d,r,l,o,f,g)=>{let u=Pt(d),x=g*1.05,c=e.append("text").attr("class",o).attr("text-anchor",f).attr("x",r).attr("y",l-(u.length-1)*x/2);for(let[_,b]of u.entries())c.append("tspan").attr("x",r).attr("dy",_===0?0:x).text(b);return c},"drawMultilineText"),kt=t((e,d,r)=>e+(d-e)*r,"lerp"),tt=t((e,d,r,l,o,f,g)=>{if(g){let u=g.roughSvg.line(d,r,l,o,{roughness:1.5,seed:g.seed,stroke:g.lineColor,strokeWidth:2});e.append(()=>u).attr("class",f);return}return e.append("line").attr("class",f).attr("x1",d).attr("y1",r).attr("x2",l).attr("y2",o)},"drawLine"),Bt={draw:At},Nt=t((e)=>`
8
8
  .ishikawa .ishikawa-spine,
9
9
  .ishikawa .ishikawa-branch,
@@ -0,0 +1 @@
1
+ import{nA}from"./index-jxsha63v.js";export{nA as default};
@@ -1,9 +1,9 @@
1
- import{t,re,M,O,G,z,j,q,H,m,b,ea,Hn}from"./index-kbaffwp1.js";import{ii,ld,YA,gr}from"./index-sw370sk7.js";var it=function(){var e=t(function(h,n,s,l){for(s=s||{},l=h.length;l--;s[h[l]]=n);return s},"o"),r=[6,8,10,11,12,14,16,17,18],a=[1,9],f=[1,10],i=[1,11],u=[1,12],p=[1,13],o=[1,14],g={trace:t(function(){},"trace"),yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,taskName:18,taskData:19,$accept:0,$end:1},terminals_:{2:"error",4:"journey",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",18:"taskName",19:"taskData"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,2]],performAction:t(function(n,s,l,y,d,c,w){var _=c.length-1;switch(d){case 1:return c[_-1];case 2:this.$=[];break;case 3:c[_-1].push(c[_]),this.$=c[_-1];break;case 4:case 5:this.$=c[_];break;case 6:case 7:this.$=[];break;case 8:y.setDiagramTitle(c[_].substr(6)),this.$=c[_].substr(6);break;case 9:this.$=c[_].trim(),y.setAccTitle(this.$);break;case 10:case 11:this.$=c[_].trim(),y.setAccDescription(this.$);break;case 12:y.addSection(c[_].substr(8)),this.$=c[_].substr(8);break;case 13:y.addTask(c[_-1],c[_]),this.$="task";break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},e(r,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:a,12:f,14:i,16:u,17:p,18:o},e(r,[2,7],{1:[2,1]}),e(r,[2,3]),{9:15,11:a,12:f,14:i,16:u,17:p,18:o},e(r,[2,5]),e(r,[2,6]),e(r,[2,8]),{13:[1,16]},{15:[1,17]},e(r,[2,11]),e(r,[2,12]),{19:[1,18]},e(r,[2,4]),e(r,[2,9]),e(r,[2,10]),e(r,[2,13])],defaultActions:{},parseError:t(function(n,s){if(s.recoverable)this.trace(n);else{var l=Error(n);throw l.hash=s,l}},"parseError"),parse:t(function(n){var s=this,l=[0],y=[],d=[null],c=[],w=this.table,_="",F=0,lt=0,ot=0,bt=2,ct=1,_t=c.slice.call(arguments,1),v=Object.create(this.lexer),R={yy:{}};for(var K in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,K))R.yy[K]=this.yy[K];if(v.setInput(n,R.yy),R.yy.lexer=v,R.yy.parser=this,typeof v.yylloc>"u")v.yylloc={};var Q=v.yylloc;c.push(Q);var vt=v.options&&v.options.ranges;if(typeof R.yy.parseError==="function")this.parseError=R.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function wt(E){l.length=l.length-2*E,d.length=d.length-E,c.length=c.length-E}t(wt,"popStack");function ht(){var E=y.pop()||v.lex()||ct;if(typeof E!=="number"){if(E instanceof Array)y=E,E=y.pop();E=s.symbols_[E]||E}return E}t(ht,"lex");var T,D,L,S,qt,tt,B={},U,I,ut,Z;while(!0){if(L=l[l.length-1],this.defaultActions[L])S=this.defaultActions[L];else{if(T===null||typeof T>"u")T=ht();S=w[L]&&w[L][T]}if(typeof S>"u"||!S.length||!S[0]){var et="";Z=[];for(U in w[L])if(this.terminals_[U]&&U>bt)Z.push("'"+this.terminals_[U]+"'");if(v.showPosition)et="Parse error on line "+(F+1)+`:
1
+ import{t,re,F,O,G,z,j,q,H,m,b,ea,qn}from"./index-xfyxmaj1.js";import{li,pd,ih,gr}from"./index-qkcmspxq.js";var it=function(){var e=t(function(h,n,s,l){for(s=s||{},l=h.length;l--;s[h[l]]=n);return s},"o"),r=[6,8,10,11,12,14,16,17,18],a=[1,9],f=[1,10],i=[1,11],u=[1,12],p=[1,13],o=[1,14],g={trace:t(function(){},"trace"),yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,taskName:18,taskData:19,$accept:0,$end:1},terminals_:{2:"error",4:"journey",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",18:"taskName",19:"taskData"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,2]],performAction:t(function(n,s,l,y,d,c,w){var _=c.length-1;switch(d){case 1:return c[_-1];case 2:this.$=[];break;case 3:c[_-1].push(c[_]),this.$=c[_-1];break;case 4:case 5:this.$=c[_];break;case 6:case 7:this.$=[];break;case 8:y.setDiagramTitle(c[_].substr(6)),this.$=c[_].substr(6);break;case 9:this.$=c[_].trim(),y.setAccTitle(this.$);break;case 10:case 11:this.$=c[_].trim(),y.setAccDescription(this.$);break;case 12:y.addSection(c[_].substr(8)),this.$=c[_].substr(8);break;case 13:y.addTask(c[_-1],c[_]),this.$="task";break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},e(r,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:a,12:f,14:i,16:u,17:p,18:o},e(r,[2,7],{1:[2,1]}),e(r,[2,3]),{9:15,11:a,12:f,14:i,16:u,17:p,18:o},e(r,[2,5]),e(r,[2,6]),e(r,[2,8]),{13:[1,16]},{15:[1,17]},e(r,[2,11]),e(r,[2,12]),{19:[1,18]},e(r,[2,4]),e(r,[2,9]),e(r,[2,10]),e(r,[2,13])],defaultActions:{},parseError:t(function(n,s){if(s.recoverable)this.trace(n);else{var l=Error(n);throw l.hash=s,l}},"parseError"),parse:t(function(n){var s=this,l=[0],y=[],d=[null],c=[],w=this.table,_="",A=0,lt=0,ot=0,bt=2,ct=1,_t=c.slice.call(arguments,1),v=Object.create(this.lexer),R={yy:{}};for(var K in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,K))R.yy[K]=this.yy[K];if(v.setInput(n,R.yy),R.yy.lexer=v,R.yy.parser=this,typeof v.yylloc>"u")v.yylloc={};var Q=v.yylloc;c.push(Q);var vt=v.options&&v.options.ranges;if(typeof R.yy.parseError==="function")this.parseError=R.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function wt(M){l.length=l.length-2*M,d.length=d.length-M,c.length=c.length-M}t(wt,"popStack");function ht(){var M=y.pop()||v.lex()||ct;if(typeof M!=="number"){if(M instanceof Array)y=M,M=y.pop();M=s.symbols_[M]||M}return M}t(ht,"lex");var T,D,L,S,qt,tt,B={},U,P,ut,Z;while(!0){if(L=l[l.length-1],this.defaultActions[L])S=this.defaultActions[L];else{if(T===null||typeof T>"u")T=ht();S=w[L]&&w[L][T]}if(typeof S>"u"||!S.length||!S[0]){var et="";Z=[];for(U in w[L])if(this.terminals_[U]&&U>bt)Z.push("'"+this.terminals_[U]+"'");if(v.showPosition)et="Parse error on line "+(A+1)+`:
2
2
  `+v.showPosition()+`
3
- Expecting `+Z.join(", ")+", got '"+(this.terminals_[T]||T)+"'";else et="Parse error on line "+(F+1)+": Unexpected "+(T==ct?"end of input":"'"+(this.terminals_[T]||T)+"'");this.parseError(et,{text:v.match,token:this.terminals_[T]||T,line:v.yylineno,loc:Q,expected:Z})}if(S[0]instanceof Array&&S.length>1)throw Error("Parse Error: multiple actions possible at state: "+L+", token: "+T);switch(S[0]){case 1:if(l.push(T),d.push(v.yytext),c.push(v.yylloc),l.push(S[1]),T=null,!D){if(lt=v.yyleng,_=v.yytext,F=v.yylineno,Q=v.yylloc,ot>0)ot--}else T=D,D=null;break;case 2:if(I=this.productions_[S[1]][1],B.$=d[d.length-I],B._$={first_line:c[c.length-(I||1)].first_line,last_line:c[c.length-1].last_line,first_column:c[c.length-(I||1)].first_column,last_column:c[c.length-1].last_column},vt)B._$.range=[c[c.length-(I||1)].range[0],c[c.length-1].range[1]];if(tt=this.performAction.apply(B,[_,lt,F,R.yy,S[1],d,c].concat(_t)),typeof tt<"u")return tt;if(I)l=l.slice(0,-1*I*2),d=d.slice(0,-1*I),c=c.slice(0,-1*I);l.push(this.productions_[S[1]][0]),d.push(B.$),c.push(B._$),ut=w[l[l.length-2]][l[l.length-1]],l.push(ut);break;case 3:return!0}}return!0},"parse")},x=function(){var h={EOF:1,parseError:t(function(s,l){if(this.yy.parser)this.yy.parser.parseError(s,l);else throw Error(s)},"parseError"),setInput:t(function(n,s){if(this.yy=s||this.yy||{},this._input=n,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 n=this._input[0];this.yytext+=n,this.yyleng++,this.offset++,this.match+=n,this.matched+=n;var s=n.match(/(?:\r\n?|\n).*/g);if(s)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),n},"input"),unput:t(function(n){var s=n.length,l=n.split(/(?:\r\n?|\n)/g);this._input=n+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-s),this.offset-=s;var y=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),l.length-1)this.yylineno-=l.length-1;var d=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:l?(l.length===y.length?this.yylloc.first_column:0)+y[y.length-l.length].length-l[0].length:this.yylloc.first_column-s},this.options.ranges)this.yylloc.range=[d[0],d[0]+this.yyleng-s];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 `+Z.join(", ")+", got '"+(this.terminals_[T]||T)+"'";else et="Parse error on line "+(A+1)+": Unexpected "+(T==ct?"end of input":"'"+(this.terminals_[T]||T)+"'");this.parseError(et,{text:v.match,token:this.terminals_[T]||T,line:v.yylineno,loc:Q,expected:Z})}if(S[0]instanceof Array&&S.length>1)throw Error("Parse Error: multiple actions possible at state: "+L+", token: "+T);switch(S[0]){case 1:if(l.push(T),d.push(v.yytext),c.push(v.yylloc),l.push(S[1]),T=null,!D){if(lt=v.yyleng,_=v.yytext,A=v.yylineno,Q=v.yylloc,ot>0)ot--}else T=D,D=null;break;case 2:if(P=this.productions_[S[1]][1],B.$=d[d.length-P],B._$={first_line:c[c.length-(P||1)].first_line,last_line:c[c.length-1].last_line,first_column:c[c.length-(P||1)].first_column,last_column:c[c.length-1].last_column},vt)B._$.range=[c[c.length-(P||1)].range[0],c[c.length-1].range[1]];if(tt=this.performAction.apply(B,[_,lt,A,R.yy,S[1],d,c].concat(_t)),typeof tt<"u")return tt;if(P)l=l.slice(0,-1*P*2),d=d.slice(0,-1*P),c=c.slice(0,-1*P);l.push(this.productions_[S[1]][0]),d.push(B.$),c.push(B._$),ut=w[l[l.length-2]][l[l.length-1]],l.push(ut);break;case 3:return!0}}return!0},"parse")},x=function(){var h={EOF:1,parseError:t(function(s,l){if(this.yy.parser)this.yy.parser.parseError(s,l);else throw Error(s)},"parseError"),setInput:t(function(n,s){if(this.yy=s||this.yy||{},this._input=n,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 n=this._input[0];this.yytext+=n,this.yyleng++,this.offset++,this.match+=n,this.matched+=n;var s=n.match(/(?:\r\n?|\n).*/g);if(s)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),n},"input"),unput:t(function(n){var s=n.length,l=n.split(/(?:\r\n?|\n)/g);this._input=n+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-s),this.offset-=s;var y=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),l.length-1)this.yylineno-=l.length-1;var d=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:l?(l.length===y.length?this.yylloc.first_column:0)+y[y.length-l.length].length-l[0].length:this.yylloc.first_column-s},this.options.ranges)this.yylloc.range=[d[0],d[0]+this.yyleng-s];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(n){this.unput(this.match.slice(n))},"less"),pastInput:t(function(){var n=this.matched.substr(0,this.matched.length-this.match.length);return(n.length>20?"...":"")+n.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:t(function(){var n=this.match;if(n.length<20)n+=this._input.substr(0,20-n.length);return(n.substr(0,20)+(n.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:t(function(){var n=this.pastInput(),s=Array(n.length+1).join("-");return n+this.upcomingInput()+`
5
5
  `+s+"^"},"showPosition"),test_match:t(function(n,s){var l,y,d;if(this.options.backtrack_lexer){if(d={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)d.yylloc.range=this.yylloc.range.slice(0)}if(y=n[0].match(/(?:\r\n?|\n).*/g),y)this.yylineno+=y.length;if(this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:y?y[y.length-1].length-y[y.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+n[0].length},this.yytext+=n[0],this.match+=n[0],this.matches=n,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(n[0].length),this.matched+=n[0],l=this.performAction.call(this,this.yy,this,s,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input)this.done=!1;if(l)return l;else if(this._backtrack){for(var c in d)this[c]=d[c];return!1}return!1},"test_match"),next:t(function(){if(this.done)return this.EOF;if(!this._input)this.done=!0;var n,s,l,y;if(!this._more)this.yytext="",this.match="";var d=this._currentRules();for(var c=0;c<d.length;c++)if(l=this._input.match(this.rules[d[c]]),l&&(!s||l[0].length>s[0].length)){if(s=l,y=c,this.options.backtrack_lexer)if(n=this.test_match(l,d[c]),n!==!1)return n;else if(this._backtrack){s=!1;continue}else return!1;else if(!this.options.flex)break}if(s){if(n=this.test_match(s,d[y]),n!==!1)return n;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 s=this.next();if(s)return s;else return this.lex()},"lex"),begin:t(function(s){this.conditionStack.push(s)},"begin"),popState:t(function(){var s=this.conditionStack.length-1;if(s>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(s){if(s=this.conditionStack.length-1-Math.abs(s||0),s>=0)return this.conditionStack[s];else return"INITIAL"},"topState"),pushState:t(function(s){this.begin(s)},"pushState"),stateStackSize:t(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:t(function(s,l,y,d){var c=d;switch(y){case 0:break;case 1:break;case 2:return 10;case 3:break;case 4:break;case 5:return 4;case 6:return 11;case 7:return this.begin("acc_title"),12;break;case 8:return this.popState(),"acc_title_value";break;case 9:return this.begin("acc_descr"),14;break;case 10:return this.popState(),"acc_descr_value";break;case 11:this.begin("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:return 17;case 15:return 18;case 16:return 19;case 17:return":";case 18:return 6;case 19:return"INVALID"}},"anonymous"),rules:[/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:journey\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:section\s[^#:\n;]+)/i,/^(?:[^#:\n;]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,9,11,14,15,16,17,18,19],inclusive:!0}}};return h}();g.lexer=x;function k(){this.yy={}}return t(k,"Parser"),k.prototype=g,g.Parser=k,new k}();it.parser=it;var Tt=it,N="",st=[],W=[],Y=[],St=t(function(){st.length=0,W.length=0,N="",Y.length=0,M()},"clear"),$t=t(function(e){N=e,st.push(e)},"addSection"),Mt=t(function(){return st},"getSections"),Et=t(function(){let e=yt(),r=100,a=0;while(!e&&a<r)e=yt(),a++;return W.push(...Y),W},"getTasks"),Ct=t(function(){let e=[];return W.forEach((a)=>{if(a.people)e.push(...a.people)}),[...new Set(e)].sort()},"updateActors"),Pt=t(function(e,r){let a=r.substr(1).split(":"),f=0,i=[];if(a.length===1)f=Number(a[0]),i=[];else f=Number(a[0]),i=a[1].split(",");let u=i.map((o)=>o.trim()),p={section:N,type:N,people:u,task:e,score:f};Y.push(p)},"addTask"),It=t(function(e){let r={section:N,type:N,description:e,task:e,classes:[]};W.push(r)},"addTaskOrg"),yt=t(function(){let e=t(function(a){return Y[a].processed},"compileTask"),r=!0;for(let[a,f]of Y.entries())e(a),r=r&&f.processed;return r},"compileTasks"),At=t(function(){return Ct()},"getActors"),dt={getConfig:t(()=>m().journey,"getConfig"),clear:St,setDiagramTitle:q,getDiagramTitle:H,setAccTitle:O,getAccTitle:G,setAccDescription:z,getAccDescription:j,addSection:$t,getSections:Mt,getTasks:Et,addTask:Pt,addTaskOrg:It,getActors:At},Ft=t((e)=>`.label {
6
+ `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:t(function(){var s=this.next();if(s)return s;else return this.lex()},"lex"),begin:t(function(s){this.conditionStack.push(s)},"begin"),popState:t(function(){var s=this.conditionStack.length-1;if(s>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(s){if(s=this.conditionStack.length-1-Math.abs(s||0),s>=0)return this.conditionStack[s];else return"INITIAL"},"topState"),pushState:t(function(s){this.begin(s)},"pushState"),stateStackSize:t(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:t(function(s,l,y,d){var c=d;switch(y){case 0:break;case 1:break;case 2:return 10;case 3:break;case 4:break;case 5:return 4;case 6:return 11;case 7:return this.begin("acc_title"),12;break;case 8:return this.popState(),"acc_title_value";break;case 9:return this.begin("acc_descr"),14;break;case 10:return this.popState(),"acc_descr_value";break;case 11:this.begin("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:return 17;case 15:return 18;case 16:return 19;case 17:return":";case 18:return 6;case 19:return"INVALID"}},"anonymous"),rules:[/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:journey\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:section\s[^#:\n;]+)/i,/^(?:[^#:\n;]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,9,11,14,15,16,17,18,19],inclusive:!0}}};return h}();g.lexer=x;function k(){this.yy={}}return t(k,"Parser"),k.prototype=g,g.Parser=k,new k}();it.parser=it;var Tt=it,N="",st=[],W=[],Y=[],St=t(function(){st.length=0,W.length=0,N="",Y.length=0,F()},"clear"),$t=t(function(e){N=e,st.push(e)},"addSection"),Mt=t(function(){return st},"getSections"),Et=t(function(){let e=yt(),r=100,a=0;while(!e&&a<r)e=yt(),a++;return W.push(...Y),W},"getTasks"),Ct=t(function(){let e=[];return W.forEach((a)=>{if(a.people)e.push(...a.people)}),[...new Set(e)].sort()},"updateActors"),Pt=t(function(e,r){let a=r.substr(1).split(":"),f=0,i=[];if(a.length===1)f=Number(a[0]),i=[];else f=Number(a[0]),i=a[1].split(",");let u=i.map((o)=>o.trim()),p={section:N,type:N,people:u,task:e,score:f};Y.push(p)},"addTask"),It=t(function(e){let r={section:N,type:N,description:e,task:e,classes:[]};W.push(r)},"addTaskOrg"),yt=t(function(){let e=t(function(a){return Y[a].processed},"compileTask"),r=!0;for(let[a,f]of Y.entries())e(a),r=r&&f.processed;return r},"compileTasks"),At=t(function(){return Ct()},"getActors"),dt={getConfig:t(()=>m().journey,"getConfig"),clear:St,setDiagramTitle:q,getDiagramTitle:H,setAccTitle:O,getAccTitle:G,setAccDescription:z,getAccDescription:j,addSection:$t,getSections:Mt,getTasks:Et,addTask:Pt,addTaskOrg:It,getActors:At},Ft=t((e)=>`.label {
7
7
  font-family: ${e.fontFamily};
8
8
  color: ${e.textColor};
9
9
  }
@@ -135,5 +135,5 @@ Expecting `+Z.join(", ")+", got '"+(this.terminals_[T]||T)+"'";else et="Parse er
135
135
  .actor-5 {
136
136
  ${e.actor5?`fill: ${e.actor5}`:""};
137
137
  }
138
- ${Hn()}
139
- `,"getStyles"),Vt=Ft,at=t(function(e,r){return ii(e,r)},"drawRect"),Rt=t(function(e,r){let f=e.append("circle").attr("cx",r.cx).attr("cy",r.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),i=e.append("g");i.append("circle").attr("cx",r.cx-5).attr("cy",r.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),i.append("circle").attr("cx",r.cx+5).attr("cy",r.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666");function u(g){let x=ea().startAngle(Math.PI/2).endAngle(3*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);g.append("path").attr("class","mouth").attr("d",x).attr("transform","translate("+r.cx+","+(r.cy+2)+")")}t(u,"smile");function p(g){let x=ea().startAngle(3*Math.PI/2).endAngle(5*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);g.append("path").attr("class","mouth").attr("d",x).attr("transform","translate("+r.cx+","+(r.cy+7)+")")}t(p,"sad");function o(g){g.append("line").attr("class","mouth").attr("stroke",2).attr("x1",r.cx-5).attr("y1",r.cy+7).attr("x2",r.cx+5).attr("y2",r.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}if(t(o,"ambivalent"),r.score>3)u(i);else if(r.score<3)p(i);else o(i);return f},"drawFace"),gt=t(function(e,r){let a=e.append("circle");if(a.attr("cx",r.cx),a.attr("cy",r.cy),a.attr("class","actor-"+r.pos),a.attr("fill",r.fill),a.attr("stroke",r.stroke),a.attr("r",r.r),a.class!==void 0)a.attr("class",a.class);if(r.title!==void 0)a.append("title").text(r.title);return a},"drawCircle"),mt=t(function(e,r){return YA(e,r)},"drawText"),Lt=t(function(e,r){function a(i,u,p,o,g){return i+","+u+" "+(i+p)+","+u+" "+(i+p)+","+(u+o-g)+" "+(i+p-g*1.2)+","+(u+o)+" "+i+","+(u+o)}t(a,"genPoints");let f=e.append("polygon");f.attr("points",a(r.x,r.y,50,20,7)),f.attr("class","labelBox"),r.y=r.y+r.labelMargin,r.x=r.x+0.5*r.labelMargin,mt(e,r)},"drawLabel"),Bt=t(function(e,r,a){let f=e.append("g"),i=gr();i.x=r.x,i.y=r.y,i.fill=r.fill,i.width=a.width*r.taskCount+a.diagramMarginX*(r.taskCount-1),i.height=a.height,i.class="journey-section section-type-"+r.num,i.rx=3,i.ry=3,at(f,i),xt(a)(r.text,f,i.x,i.y,i.width,i.height,{class:"journey-section section-type-"+r.num},a,r.colour)},"drawSection"),nt=-1,jt=t(function(e,r,a,f){let i=r.x+a.width/2,u=e.append("g");nt++;let p=450;u.append("line").attr("id",f+"-task"+nt).attr("x1",i).attr("y1",r.y).attr("x2",i).attr("y2",p).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),Rt(u,{cx:i,cy:300+(5-r.score)*30,score:r.score});let o=gr();o.x=r.x,o.y=r.y,o.fill=r.fill,o.width=a.width,o.height=a.height,o.class="task task-type-"+r.num,o.rx=3,o.ry=3,at(u,o);let g=r.x+14;r.people.forEach((x)=>{let k=r.actors[x].color,h={cx:g,cy:r.y,r:7,fill:k,stroke:"#000",title:x,pos:r.actors[x].position};gt(u,h),g+=10}),xt(a)(r.task,u,o.x,o.y,o.width,o.height,{class:"task"},a,r.colour)},"drawTask"),Nt=t(function(e,r){ld(e,r)},"drawBackgroundRect"),xt=function(){function e(i,u,p,o,g,x,k,h){let n=u.append("text").attr("x",p+g/2).attr("y",o+x/2+5).style("font-color",h).style("text-anchor","middle").text(i);f(n,k)}t(e,"byText");function r(i,u,p,o,g,x,k,h,n){let{taskFontSize:s,taskFontFamily:l}=h,y=i.split(/<br\s*\/?>/gi);for(let d=0;d<y.length;d++){let c=d*s-s*(y.length-1)/2,w=u.append("text").attr("x",p+g/2).attr("y",o).attr("fill",n).style("text-anchor","middle").style("font-size",s).style("font-family",l);w.append("tspan").attr("x",p+g/2).attr("dy",c).text(y[d]),w.attr("y",o+x/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),f(w,k)}}t(r,"byTspan");function a(i,u,p,o,g,x,k,h){let n=u.append("switch"),l=n.append("foreignObject").attr("x",p).attr("y",o).attr("width",g).attr("height",x).attr("position","fixed").append("xhtml:div").style("display","table").style("height","100%").style("width","100%");l.append("div").attr("class","label").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(i),r(i,n,p,o,g,x,k,h),f(l,k)}t(a,"byFo");function f(i,u){for(let p in u)if(p in u)i.attr(p,u[p])}return t(f,"_setTextAttrs"),function(i){return i.textPlacement==="fo"?a:i.textPlacement==="old"?e:r}}(),zt=t(function(e,r){nt=-1,e.append("defs").append("marker").attr("id",r+"-arrowhead").attr("refX",5).attr("refY",2).attr("markerWidth",6).attr("markerHeight",4).attr("orient","auto").append("path").attr("d","M 0,0 V 4 L6,2 Z")},"initGraphics"),X={drawRect:at,drawCircle:gt,drawSection:Bt,drawText:mt,drawLabel:Lt,drawTask:jt,drawBackgroundRect:Nt,initGraphics:zt},Wt=t(function(e){Object.keys(e).forEach(function(a){P[a]=e[a]})},"setConf"),A={},J=0;function kt(e){let r=m().journey,a=r.maxLabelWidth;J=0;let f=60;Object.keys(A).forEach((i)=>{let u=A[i].color,p={cx:20,cy:f,r:7,fill:u,stroke:"#000",pos:A[i].position};X.drawCircle(e,p);let o=e.append("text").attr("visibility","hidden").text(i),g=o.node().getBoundingClientRect().width;o.remove();let x=[];if(g<=a)x=[i];else{let k=i.split(" "),h="";if(o=e.append("text").attr("visibility","hidden"),k.forEach((n)=>{let s=h?`${h} ${n}`:n;if(o.text(s),o.node().getBoundingClientRect().width>a){if(h)x.push(h);if(h=n,o.text(n),o.node().getBoundingClientRect().width>a){let y="";for(let d of n)if(y+=d,o.text(y+"-"),o.node().getBoundingClientRect().width>a)x.push(y.slice(0,-1)+"-"),y=d;h=y}}else h=s}),h)x.push(h);o.remove()}x.forEach((k,h)=>{let n={x:40,y:f+7+h*20,fill:"#666",text:k,textMargin:r.boxTextMargin??5},l=X.drawText(e,n).node().getBoundingClientRect().width;if(l>J&&l>r.leftMargin-l)J=l}),f+=Math.max(20,x.length*20)})}t(kt,"drawActorLegend");var P=m().journey,V=0,Ot=t(function(e,r,a,f){let i=m(),u=i.journey.titleColor,p=i.journey.titleFontSize,o=i.journey.titleFontFamily,g=i.securityLevel,x;if(g==="sandbox")x=b("#i"+r);let k=g==="sandbox"?b(x.nodes()[0].contentDocument.body):b("body");C.init();let h=k.select("#"+r);X.initGraphics(h,r);let n=f.db.getTasks(),s=f.db.getDiagramTitle(),l=f.db.getActors();for(let F in A)delete A[F];let y=0;l.forEach((F)=>{A[F]={color:P.actorColours[y%P.actorColours.length],position:y},y++}),kt(h),V=P.leftMargin+J,C.insert(0,0,V,Object.keys(A).length*50),Yt(h,n,0,r);let d=C.getBounds();if(s)h.append("text").text(s).attr("x",V).attr("font-size",p).attr("font-weight","bold").attr("y",25).attr("fill",u).attr("font-family",o);let c=d.stopy-d.starty+2*P.diagramMarginY,w=V+d.stopx+2*P.diagramMarginX;re(h,c,w,P.useMaxWidth),h.append("line").attr("x1",V).attr("y1",P.height*4).attr("x2",w-V-4).attr("y2",P.height*4).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#"+r+"-arrowhead)");let _=s?70:0;h.attr("viewBox",`${d.startx} -25 ${w} ${c+_}`),h.attr("preserveAspectRatio","xMinYMin meet"),h.attr("height",c+_+25)},"draw"),C={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],init:t(function(){this.sequenceItems=[],this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0},"init"),updateVal:t(function(e,r,a,f){if(e[r]===void 0)e[r]=a;else e[r]=f(a,e[r])},"updateVal"),updateBounds:t(function(e,r,a,f){let i=m().journey,u=this,p=0;function o(g){return t(function(k){p++;let h=u.sequenceItems.length-p+1;if(u.updateVal(k,"starty",r-h*i.boxMargin,Math.min),u.updateVal(k,"stopy",f+h*i.boxMargin,Math.max),u.updateVal(C.data,"startx",e-h*i.boxMargin,Math.min),u.updateVal(C.data,"stopx",a+h*i.boxMargin,Math.max),g!=="activation")u.updateVal(k,"startx",e-h*i.boxMargin,Math.min),u.updateVal(k,"stopx",a+h*i.boxMargin,Math.max),u.updateVal(C.data,"starty",r-h*i.boxMargin,Math.min),u.updateVal(C.data,"stopy",f+h*i.boxMargin,Math.max)},"updateItemBounds")}t(o,"updateFn"),this.sequenceItems.forEach(o())},"updateBounds"),insert:t(function(e,r,a,f){let i=Math.min(e,a),u=Math.max(e,a),p=Math.min(r,f),o=Math.max(r,f);this.updateVal(C.data,"startx",i,Math.min),this.updateVal(C.data,"starty",p,Math.min),this.updateVal(C.data,"stopx",u,Math.max),this.updateVal(C.data,"stopy",o,Math.max),this.updateBounds(i,p,u,o)},"insert"),bumpVerticalPos:t(function(e){this.verticalPos=this.verticalPos+e,this.data.stopy=this.verticalPos},"bumpVerticalPos"),getVerticalPos:t(function(){return this.verticalPos},"getVerticalPos"),getBounds:t(function(){return this.data},"getBounds")},{sectionFills:rt,sectionColours:ft}=P,Yt=t(function(e,r,a,f){let i=m().journey,u="",p=i.height*2+i.diagramMarginY,o=a+p,g=0,x="#CCC",k="black",h=0;for(let[n,s]of r.entries()){if(u!==s.section){x=rt[g%rt.length],h=g%rt.length,k=ft[g%ft.length];let y=0,d=s.section;for(let w=n;w<r.length;w++)if(r[w].section==d)y=y+1;else break;let c={x:n*i.taskMargin+n*i.width+V,y:50,text:s.section,fill:x,num:h,colour:k,taskCount:y};X.drawSection(e,c,i),u=s.section,g++}let l=s.people.reduce((y,d)=>{if(A[d])y[d]=A[d];return y},{});s.x=n*i.taskMargin+n*i.width+V,s.y=o,s.width=i.diagramMarginX,s.height=i.diagramMarginY,s.colour=k,s.fill=x,s.num=h,s.actors=l,X.drawTask(e,s,i,f),C.insert(s.x,s.y,s.x+s.width+i.taskMargin,450)}},"drawTasks"),pt={setConf:Wt,draw:Ot},Qt={parser:Tt,db:dt,renderer:pt,styles:Vt,init:t((e)=>{pt.setConf(e.journey),dt.clear()},"init")};export{Qt as diagram};
138
+ ${qn()}
139
+ `,"getStyles"),Vt=Ft,at=t(function(e,r){return li(e,r)},"drawRect"),Rt=t(function(e,r){let f=e.append("circle").attr("cx",r.cx).attr("cy",r.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),i=e.append("g");i.append("circle").attr("cx",r.cx-5).attr("cy",r.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),i.append("circle").attr("cx",r.cx+5).attr("cy",r.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666");function u(g){let x=ea().startAngle(Math.PI/2).endAngle(3*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);g.append("path").attr("class","mouth").attr("d",x).attr("transform","translate("+r.cx+","+(r.cy+2)+")")}t(u,"smile");function p(g){let x=ea().startAngle(3*Math.PI/2).endAngle(5*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);g.append("path").attr("class","mouth").attr("d",x).attr("transform","translate("+r.cx+","+(r.cy+7)+")")}t(p,"sad");function o(g){g.append("line").attr("class","mouth").attr("stroke",2).attr("x1",r.cx-5).attr("y1",r.cy+7).attr("x2",r.cx+5).attr("y2",r.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}if(t(o,"ambivalent"),r.score>3)u(i);else if(r.score<3)p(i);else o(i);return f},"drawFace"),gt=t(function(e,r){let a=e.append("circle");if(a.attr("cx",r.cx),a.attr("cy",r.cy),a.attr("class","actor-"+r.pos),a.attr("fill",r.fill),a.attr("stroke",r.stroke),a.attr("r",r.r),a.class!==void 0)a.attr("class",a.class);if(r.title!==void 0)a.append("title").text(r.title);return a},"drawCircle"),mt=t(function(e,r){return ih(e,r)},"drawText"),Lt=t(function(e,r){function a(i,u,p,o,g){return i+","+u+" "+(i+p)+","+u+" "+(i+p)+","+(u+o-g)+" "+(i+p-g*1.2)+","+(u+o)+" "+i+","+(u+o)}t(a,"genPoints");let f=e.append("polygon");f.attr("points",a(r.x,r.y,50,20,7)),f.attr("class","labelBox"),r.y=r.y+r.labelMargin,r.x=r.x+0.5*r.labelMargin,mt(e,r)},"drawLabel"),Bt=t(function(e,r,a){let f=e.append("g"),i=gr();i.x=r.x,i.y=r.y,i.fill=r.fill,i.width=a.width*r.taskCount+a.diagramMarginX*(r.taskCount-1),i.height=a.height,i.class="journey-section section-type-"+r.num,i.rx=3,i.ry=3,at(f,i),xt(a)(r.text,f,i.x,i.y,i.width,i.height,{class:"journey-section section-type-"+r.num},a,r.colour)},"drawSection"),nt=-1,jt=t(function(e,r,a,f){let i=r.x+a.width/2,u=e.append("g");nt++;let p=450;u.append("line").attr("id",f+"-task"+nt).attr("x1",i).attr("y1",r.y).attr("x2",i).attr("y2",p).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),Rt(u,{cx:i,cy:300+(5-r.score)*30,score:r.score});let o=gr();o.x=r.x,o.y=r.y,o.fill=r.fill,o.width=a.width,o.height=a.height,o.class="task task-type-"+r.num,o.rx=3,o.ry=3,at(u,o);let g=r.x+14;r.people.forEach((x)=>{let k=r.actors[x].color,h={cx:g,cy:r.y,r:7,fill:k,stroke:"#000",title:x,pos:r.actors[x].position};gt(u,h),g+=10}),xt(a)(r.task,u,o.x,o.y,o.width,o.height,{class:"task"},a,r.colour)},"drawTask"),Nt=t(function(e,r){pd(e,r)},"drawBackgroundRect"),xt=function(){function e(i,u,p,o,g,x,k,h){let n=u.append("text").attr("x",p+g/2).attr("y",o+x/2+5).style("font-color",h).style("text-anchor","middle").text(i);f(n,k)}t(e,"byText");function r(i,u,p,o,g,x,k,h,n){let{taskFontSize:s,taskFontFamily:l}=h,y=i.split(/<br\s*\/?>/gi);for(let d=0;d<y.length;d++){let c=d*s-s*(y.length-1)/2,w=u.append("text").attr("x",p+g/2).attr("y",o).attr("fill",n).style("text-anchor","middle").style("font-size",s).style("font-family",l);w.append("tspan").attr("x",p+g/2).attr("dy",c).text(y[d]),w.attr("y",o+x/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),f(w,k)}}t(r,"byTspan");function a(i,u,p,o,g,x,k,h){let n=u.append("switch"),l=n.append("foreignObject").attr("x",p).attr("y",o).attr("width",g).attr("height",x).attr("position","fixed").append("xhtml:div").style("display","table").style("height","100%").style("width","100%");l.append("div").attr("class","label").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(i),r(i,n,p,o,g,x,k,h),f(l,k)}t(a,"byFo");function f(i,u){for(let p in u)if(p in u)i.attr(p,u[p])}return t(f,"_setTextAttrs"),function(i){return i.textPlacement==="fo"?a:i.textPlacement==="old"?e:r}}(),zt=t(function(e,r){nt=-1,e.append("defs").append("marker").attr("id",r+"-arrowhead").attr("refX",5).attr("refY",2).attr("markerWidth",6).attr("markerHeight",4).attr("orient","auto").append("path").attr("d","M 0,0 V 4 L6,2 Z")},"initGraphics"),X={drawRect:at,drawCircle:gt,drawSection:Bt,drawText:mt,drawLabel:Lt,drawTask:jt,drawBackgroundRect:Nt,initGraphics:zt},Wt=t(function(e){Object.keys(e).forEach(function(a){C[a]=e[a]})},"setConf"),I={},J=0;function kt(e){let r=m().journey,a=r.maxLabelWidth;J=0;let f=60;Object.keys(I).forEach((i)=>{let u=I[i].color,p={cx:20,cy:f,r:7,fill:u,stroke:"#000",pos:I[i].position};X.drawCircle(e,p);let o=e.append("text").attr("visibility","hidden").text(i),g=o.node().getBoundingClientRect().width;o.remove();let x=[];if(g<=a)x=[i];else{let k=i.split(" "),h="";if(o=e.append("text").attr("visibility","hidden"),k.forEach((n)=>{let s=h?`${h} ${n}`:n;if(o.text(s),o.node().getBoundingClientRect().width>a){if(h)x.push(h);if(h=n,o.text(n),o.node().getBoundingClientRect().width>a){let y="";for(let d of n)if(y+=d,o.text(y+"-"),o.node().getBoundingClientRect().width>a)x.push(y.slice(0,-1)+"-"),y=d;h=y}}else h=s}),h)x.push(h);o.remove()}x.forEach((k,h)=>{let n={x:40,y:f+7+h*20,fill:"#666",text:k,textMargin:r.boxTextMargin??5},l=X.drawText(e,n).node().getBoundingClientRect().width;if(l>J&&l>r.leftMargin-l)J=l}),f+=Math.max(20,x.length*20)})}t(kt,"drawActorLegend");var C=m().journey,V=0,Ot=t(function(e,r,a,f){let i=m(),u=i.journey.titleColor,p=i.journey.titleFontSize,o=i.journey.titleFontFamily,g=i.securityLevel,x;if(g==="sandbox")x=b("#i"+r);let k=g==="sandbox"?b(x.nodes()[0].contentDocument.body):b("body");E.init();let h=k.select("#"+r);X.initGraphics(h,r);let n=f.db.getTasks(),s=f.db.getDiagramTitle(),l=f.db.getActors();for(let A in I)delete I[A];let y=0;l.forEach((A)=>{I[A]={color:C.actorColours[y%C.actorColours.length],position:y},y++}),kt(h),V=C.leftMargin+J,E.insert(0,0,V,Object.keys(I).length*50),Yt(h,n,0,r);let d=E.getBounds();if(s)h.append("text").text(s).attr("x",V).attr("font-size",p).attr("font-weight","bold").attr("y",25).attr("fill",u).attr("font-family",o);let c=d.stopy-d.starty+2*C.diagramMarginY,w=V+d.stopx+2*C.diagramMarginX;re(h,c,w,C.useMaxWidth),h.append("line").attr("x1",V).attr("y1",C.height*4).attr("x2",w-V-4).attr("y2",C.height*4).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#"+r+"-arrowhead)");let _=s?70:0;h.attr("viewBox",`${d.startx} -25 ${w} ${c+_}`),h.attr("preserveAspectRatio","xMinYMin meet"),h.attr("height",c+_+25)},"draw"),E={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],init:t(function(){this.sequenceItems=[],this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0},"init"),updateVal:t(function(e,r,a,f){if(e[r]===void 0)e[r]=a;else e[r]=f(a,e[r])},"updateVal"),updateBounds:t(function(e,r,a,f){let i=m().journey,u=this,p=0;function o(g){return t(function(k){p++;let h=u.sequenceItems.length-p+1;if(u.updateVal(k,"starty",r-h*i.boxMargin,Math.min),u.updateVal(k,"stopy",f+h*i.boxMargin,Math.max),u.updateVal(E.data,"startx",e-h*i.boxMargin,Math.min),u.updateVal(E.data,"stopx",a+h*i.boxMargin,Math.max),g!=="activation")u.updateVal(k,"startx",e-h*i.boxMargin,Math.min),u.updateVal(k,"stopx",a+h*i.boxMargin,Math.max),u.updateVal(E.data,"starty",r-h*i.boxMargin,Math.min),u.updateVal(E.data,"stopy",f+h*i.boxMargin,Math.max)},"updateItemBounds")}t(o,"updateFn"),this.sequenceItems.forEach(o())},"updateBounds"),insert:t(function(e,r,a,f){let i=Math.min(e,a),u=Math.max(e,a),p=Math.min(r,f),o=Math.max(r,f);this.updateVal(E.data,"startx",i,Math.min),this.updateVal(E.data,"starty",p,Math.min),this.updateVal(E.data,"stopx",u,Math.max),this.updateVal(E.data,"stopy",o,Math.max),this.updateBounds(i,p,u,o)},"insert"),bumpVerticalPos:t(function(e){this.verticalPos=this.verticalPos+e,this.data.stopy=this.verticalPos},"bumpVerticalPos"),getVerticalPos:t(function(){return this.verticalPos},"getVerticalPos"),getBounds:t(function(){return this.data},"getBounds")},{sectionFills:rt,sectionColours:ft}=C,Yt=t(function(e,r,a,f){let i=m().journey,u="",p=i.height*2+i.diagramMarginY,o=a+p,g=0,x="#CCC",k="black",h=0;for(let[n,s]of r.entries()){if(u!==s.section){x=rt[g%rt.length],h=g%rt.length,k=ft[g%ft.length];let y=0,d=s.section;for(let w=n;w<r.length;w++)if(r[w].section==d)y=y+1;else break;let c={x:n*i.taskMargin+n*i.width+V,y:50,text:s.section,fill:x,num:h,colour:k,taskCount:y};X.drawSection(e,c,i),u=s.section,g++}let l=s.people.reduce((y,d)=>{if(I[d])y[d]=I[d];return y},{});s.x=n*i.taskMargin+n*i.width+V,s.y=o,s.width=i.diagramMarginX,s.height=i.diagramMarginY,s.colour=k,s.fill=x,s.num=h,s.actors=l,X.drawTask(e,s,i,f),E.insert(s.x,s.y,s.x+s.width+i.taskMargin,450)}},"drawTasks"),pt={setConf:Wt,draw:Ot},Qt={parser:Tt,db:dt,renderer:pt,styles:Vt,init:t((e)=>{pt.setConf(e.journey),dt.clear()},"init")};export{Qt as diagram};
@@ -0,0 +1 @@
1
+ import{Li}from"./index-3ymw778n.js";export{Li as default};
@@ -0,0 +1 @@
1
+ import{TA}from"./index-ewryzs4g.js";export{TA as default};