@kabmo-labs/kabmo 0.43.1 → 0.44.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 (385) hide show
  1. package/dist/client/index.html +1 -1
  2. package/dist/client/index.js +337 -337
  3. package/dist/client/static/js/{CsvGrid-g67pk2zy.js → CsvGrid-1t2q46rg.js} +2 -2
  4. package/dist/client/static/js/{DocxView-pyh6p2kb.js → DocxView-301hxnwk.js} +4 -4
  5. package/dist/client/static/js/{DrawioView-g48r6y2m.js → DrawioView-47bwea5t.js} +2 -2
  6. package/dist/client/static/js/ImageView-68zdx5ex.js +1 -0
  7. package/dist/client/static/js/LayoutWrapper-vw54s8ra.js +2 -0
  8. package/dist/client/static/js/{Modal-edw446r8.js → Modal-fb9b4gq6.js} +18 -18
  9. package/dist/client/static/js/{PdfView-6z3cgj37.js → PdfView-m64ksepp.js} +1 -1
  10. package/dist/client/static/js/SessionsView-zyjwhpzm.js +1 -0
  11. package/dist/client/static/js/{SheetView-64076z1j.js → SheetView-e88sqprx.js} +13 -13
  12. package/dist/client/static/js/{SvgPreview-dmpgavgd.js → SvgPreview-hs9a713t.js} +1 -1
  13. package/dist/client/static/js/{abnfDiagram-O67JEVCF-nfz5z1vw.js → abnfDiagram-O67JEVCF-fnr5kyqk.js} +1 -1
  14. package/dist/client/static/js/architecture-7GRP2DOG-mq93vqx9.js +1 -0
  15. package/dist/client/static/js/{architectureDiagram-NJMV4G6O-jra2jyzw.js → architectureDiagram-NJMV4G6O-7v003363.js} +11 -11
  16. package/dist/client/static/js/{astro-dpfdhc5e.js → astro-t9vjc0mc.js} +1 -1
  17. package/dist/client/static/js/bash-fjzhxy10.js +1 -0
  18. package/dist/client/static/js/{blockDiagram-BEXU5L5S-3szktxam.js → blockDiagram-BEXU5L5S-k4mwbw3d.js} +5 -5
  19. package/dist/client/static/js/c-y1y6v00q.js +1 -0
  20. package/dist/client/static/js/{c4Diagram-YGBWAQC7-xe9vbppt.js → c4Diagram-YGBWAQC7-688zq6f4.js} +6 -6
  21. package/dist/client/static/js/{classDiagram-v2-NBCMYWYE-egzhj1xn.js → classDiagram-v2-NBCMYWYE-h0s16pxr.js} +5 -5
  22. package/dist/client/static/js/{cose-bilkent-JH36ORCC-dfrk1wnr.js → cose-bilkent-JH36ORCC-qb2t8qq5.js} +1 -1
  23. package/dist/client/static/js/cpp-9f6zkdd4.js +1 -0
  24. package/dist/client/static/js/css-g85rwzty.js +1 -0
  25. package/dist/client/static/js/css-y4y3qtsb.js +1 -0
  26. package/dist/client/static/js/cynefin-OW5HDTMX-qyg5rjr5.js +1 -0
  27. package/dist/client/static/js/{cynefinDiagram-VND7K2PF-xefpcmpg.js → cynefinDiagram-VND7K2PF-syhtcr7b.js} +1 -1
  28. package/dist/client/static/js/{dagre-6A5THRUB-vtzjnrt9.js → dagre-6A5THRUB-7wgbx6cm.js} +2 -2
  29. package/dist/client/static/js/{diagram-22UHCM2B-4vvn790v.js → diagram-22UHCM2B-951cmp5h.js} +21 -21
  30. package/dist/client/static/js/{diagram-3UASUU5V-tmht3bew.js → diagram-3UASUU5V-mvdbqt7b.js} +2 -2
  31. package/dist/client/static/js/{diagram-ATOU4E4O-p5wa5ztx.js → diagram-ATOU4E4O-hkvdtgdm.js} +3 -3
  32. package/dist/client/static/js/{diagram-CDSNMT55-8myesjfc.js → diagram-CDSNMT55-bkkz35ca.js} +4 -4
  33. package/dist/client/static/js/{diagram-MLGK6HIB-9t3x2d5f.js → diagram-MLGK6HIB-z6pcrkc3.js} +2 -2
  34. package/dist/client/static/js/{diagram-MPIPVDR6-8ahgnmhy.js → diagram-MPIPVDR6-mkwf8j4m.js} +1 -1
  35. package/dist/client/static/js/{dockerfile-x8aa0543.js → dockerfile-7gd570bm.js} +1 -1
  36. package/dist/client/static/js/{ebnfDiagram-ZINNZB2B-5semw111.js → ebnfDiagram-ZINNZB2B-trym26ts.js} +1 -1
  37. package/dist/client/static/js/{elixir-5ewfhvfh.js → elixir-z77c7tfn.js} +1 -1
  38. package/dist/client/static/js/{elk-276RUBZZ-jmhs58ww.js → elk-276RUBZZ-gkhz67v6.js} +1 -1
  39. package/dist/client/static/js/{erDiagram-OPXOYQCR-31wvbpdr.js → erDiagram-OPXOYQCR-gkyr5cqs.js} +7 -7
  40. package/dist/client/static/js/{erlang-jqqa3ehb.js → erlang-6vrvh2m6.js} +1 -1
  41. package/dist/client/static/js/eventmodeling-NTZA5JFV-15yz245z.js +1 -0
  42. package/dist/client/static/js/flowDiagram-KWPJA3E3-n1sapfye.js +1 -0
  43. package/dist/client/static/js/{ganttDiagram-FUAMR5RP-c2dycjrf.js → ganttDiagram-FUAMR5RP-1qpme6ks.js} +4 -4
  44. package/dist/client/static/js/gitGraph-4MIJSDKK-xtjwv160.js +1 -0
  45. package/dist/client/static/js/{gitGraphDiagram-X574FWY7-y4k4pdd8.js → gitGraphDiagram-X574FWY7-wbg3kqak.js} +10 -10
  46. package/dist/client/static/js/graphql-amk52c95.js +1 -0
  47. package/dist/client/static/js/html-2y935m7r.js +1 -0
  48. package/dist/client/static/js/index-07yh7qx0.js +1 -0
  49. package/dist/client/static/js/{index-6fpd55cq.js → index-1923aj4g.js} +2 -2
  50. package/dist/client/static/js/{index-s00j9042.js → index-19ffgf9a.js} +1 -1
  51. package/dist/client/static/js/index-204ae4vs.js +2 -0
  52. package/dist/client/static/js/{index-cqnpsw2m.js → index-22whvfdw.js} +2 -2
  53. package/dist/client/static/js/{index-2cbnjc32.js → index-232nsp2c.js} +2 -2
  54. package/dist/client/static/js/{index-aar68x31.js → index-31hntzse.js} +5 -5
  55. package/dist/client/static/js/{index-2b46dzw8.js → index-3w845q50.js} +4 -4
  56. package/dist/client/static/js/{index-gmnmnfm0.js → index-4y4hshcx.js} +2 -2
  57. package/dist/client/static/js/index-53ysgsd2.js +1 -0
  58. package/dist/client/static/js/{index-m94f4ngb.js → index-62ng8tkj.js} +3 -3
  59. package/dist/client/static/js/{index-nt7nhchn.js → index-6ah5sj5y.js} +1 -1
  60. package/dist/client/static/js/{index-kc5znr75.js → index-6gyk52ff.js} +2 -2
  61. package/dist/client/static/js/{index-m9s9rg5k.js → index-6s4mrdew.js} +2 -2
  62. package/dist/client/static/js/index-6t21c6jt.js +2 -0
  63. package/dist/client/static/js/{index-7dp90ad1.js → index-83pwa9c0.js} +2 -2
  64. package/dist/client/static/js/{index-pt8440xh.js → index-8trggh1z.js} +15 -15
  65. package/dist/client/static/js/{index-ys0xpw3q.js → index-92n96mgd.js} +2 -2
  66. package/dist/client/static/js/index-ad4x44d6.js +9 -0
  67. package/dist/client/static/js/{index-s78n0dtv.js → index-as1wptfa.js} +2 -2
  68. package/dist/client/static/js/{index-j17h4z6f.js → index-barbpakv.js} +2 -2
  69. package/dist/client/static/js/index-bjqz7swa.js +1 -0
  70. package/dist/client/static/js/{index-yvgbr7ek.js → index-c3v62nvt.js} +2 -2
  71. package/dist/client/static/js/{index-f77c3ag0.js → index-cq98p2rb.js} +200 -200
  72. package/dist/client/static/js/{index-3588r3wg.js → index-czedkbmb.js} +2 -2
  73. package/dist/client/static/js/{index-sesghshh.js → index-dmv2zasz.js} +2 -2
  74. package/dist/client/static/js/{index-ycks7gyg.js → index-e6rm5xzj.js} +2 -2
  75. package/dist/client/static/js/{index-48pb18zj.js → index-ehacfgwm.js} +2 -2
  76. package/dist/client/static/js/{index-q81rxwh7.js → index-fbpc1wx6.js} +41 -41
  77. package/dist/client/static/js/{index-qhytrsyb.js → index-fj4k07zt.js} +2 -2
  78. package/dist/client/static/js/{index-jz93j0at.js → index-gtkhz0hj.js} +2 -2
  79. package/dist/client/static/js/{index-181p91hf.js → index-hfsvwfgw.js} +2 -2
  80. package/dist/client/static/js/{index-sk9ej289.js → index-jaqjvk22.js} +2 -2
  81. package/dist/client/static/js/{index-e7yf273s.js → index-jbkkwa2q.js} +2 -2
  82. package/dist/client/static/js/{index-38v0781h.js → index-ks23y2cd.js} +2 -2
  83. package/dist/client/static/js/{index-f7djda1g.js → index-kwpaz891.js} +2 -2
  84. package/dist/client/static/js/{index-0c6vpk89.js → index-n0matkz9.js} +2 -2
  85. package/dist/client/static/js/index-n6fbd265.js +1 -0
  86. package/dist/client/static/js/{index-cjhvtzdd.js → index-nqjd3hh5.js} +2 -2
  87. package/dist/client/static/js/{index-ynaxep06.js → index-nr8s5xm9.js} +2 -2
  88. package/dist/client/static/js/index-nvevymac.js +2 -0
  89. package/dist/client/static/js/index-pxm44qfd.js +1 -0
  90. package/dist/client/static/js/{index-fg965t62.js → index-pysqpc5n.js} +2 -2
  91. package/dist/client/static/js/index-qf9x7yet.js +1 -0
  92. package/dist/client/static/js/{index-s7rfbydk.js → index-qkjx6521.js} +4 -4
  93. package/dist/client/static/js/index-qm92sf9w.js +12 -0
  94. package/dist/client/static/js/{index-fjnkzk12.js → index-qsw5edtk.js} +5 -5
  95. package/dist/client/static/js/index-rpzxrr2d.js +1 -0
  96. package/dist/client/static/js/index-s8bktzpg.js +1 -0
  97. package/dist/client/static/js/index-sc7r305t.css +1 -0
  98. package/dist/client/static/js/{index-efra065v.js → index-svmzgtcx.js} +2 -2
  99. package/dist/client/static/js/{index-vyw4tbn8.js → index-tr2pkfs6.js} +2 -2
  100. package/dist/client/static/js/{index-bvjct7sp.js → index-tzdm1y3z.js} +2 -2
  101. package/dist/client/static/js/{index-cgzw43bc.js → index-v5npdwy2.js} +65 -65
  102. package/dist/client/static/js/{index-dkwhs38j.js → index-v7bcgh77.js} +2 -2
  103. package/dist/client/static/js/index-wytdbvax.js +3 -0
  104. package/dist/client/static/js/{index-n9scbxy5.js → index-yfjvx4yf.js} +2 -2
  105. package/dist/client/static/js/info-A6RAGUB7-e31s2xvj.js +1 -0
  106. package/dist/client/static/js/{infoDiagram-VRGFBTTK-z3pqx7w8.js → infoDiagram-VRGFBTTK-yebngg8c.js} +1 -1
  107. package/dist/client/static/js/ini-kemnmt16.js +1 -0
  108. package/dist/client/static/js/{ishikawaDiagram-OU5B5YK6-f5v6z8yr.js → ishikawaDiagram-OU5B5YK6-kh4nqj6q.js} +3 -3
  109. package/dist/client/static/js/java-caqpfm88.js +1 -0
  110. package/dist/client/static/js/{journeyDiagram-ZHPQQLJL-js1yxatk.js → journeyDiagram-ZHPQQLJL-4khnf8x1.js} +5 -5
  111. package/dist/client/static/js/json-qn73s8xb.js +1 -0
  112. package/dist/client/static/js/jsx-bvterpm5.js +1 -0
  113. package/dist/client/static/js/{julia-0h9krgsd.js → julia-svwxx41e.js} +1 -1
  114. package/dist/client/static/js/{kanban-definition-PNTS6WVX-m0a6069c.js → kanban-definition-PNTS6WVX-snmq3wq4.js} +4 -4
  115. package/dist/client/static/js/lua-1hcfm8ya.js +1 -0
  116. package/dist/client/static/js/markdown-n6na4ykv.js +1 -0
  117. package/dist/client/static/js/{mermaid.core-6xvbnm63.js → mermaid.core-yctw30sk.js} +7 -7
  118. package/dist/client/static/js/{mindmap-definition-NLK3R4M7-a9f9yzc0.js → mindmap-definition-NLK3R4M7-atfv66wq.js} +3 -3
  119. package/dist/client/static/js/one-dark-pro-c1vnxka7.js +1 -0
  120. package/dist/client/static/js/one-light-mbxx52p5.js +1 -0
  121. package/dist/client/static/js/packet-AYTQ26CC-mtzmsrk4.js +1 -0
  122. package/dist/client/static/js/{pegDiagram-GJSIUBJH-4v4pf1h1.js → pegDiagram-GJSIUBJH-hpbtxjht.js} +1 -1
  123. package/dist/client/static/js/{perl-rptyx23q.js → perl-mr0ds2ex.js} +1 -1
  124. package/dist/client/static/js/{php-sagvq3wz.js → php-5h3wt6tv.js} +1 -1
  125. package/dist/client/static/js/pie-WAS4IAKB-85nwadmj.js +1 -0
  126. package/dist/client/static/js/{pieDiagram-5QR66LMP-a54yrmfm.js → pieDiagram-5QR66LMP-9zrtkdr2.js} +2 -2
  127. package/dist/client/static/js/properties-nxcks67c.js +1 -0
  128. package/dist/client/static/js/python-58p0gqn0.js +1 -0
  129. package/dist/client/static/js/{quadrantDiagram-O4NWA36T-1twhvnp2.js → quadrantDiagram-O4NWA36T-xq970vx1.js} +6 -6
  130. package/dist/client/static/js/r-eyn8en0g.js +1 -0
  131. package/dist/client/static/js/radar-RG4KPBEZ-ae3jdajx.js +1 -0
  132. package/dist/client/static/js/railroad-74A4TZTK-3m0s7cse.js +1 -0
  133. package/dist/client/static/js/railroad-abnf-HS5TGJTU-pz22c3eb.js +1 -0
  134. package/dist/client/static/js/railroad-ebnf-LZEXJU2U-cgqgqq15.js +1 -0
  135. package/dist/client/static/js/railroad-peg-WCYAUIDC-ts0nmcxb.js +1 -0
  136. package/dist/client/static/js/{railroadDiagram-XR7U4H2S-83tqfdcy.js → railroadDiagram-XR7U4H2S-1g9jchbk.js} +1 -1
  137. package/dist/client/static/js/{requirementDiagram-PLB6GJNP-73e3pzw6.js → requirementDiagram-PLB6GJNP-ntt088y4.js} +4 -4
  138. package/dist/client/static/js/{ruby-9qyx7knh.js → ruby-nn836rtq.js} +1 -1
  139. package/dist/client/static/js/{rust-jds4e4r7.js → rust-eygk56y5.js} +1 -1
  140. package/dist/client/static/js/{sankeyDiagram-IPEJSGJF-1bzwj6sb.js → sankeyDiagram-IPEJSGJF-95k8c5v6.js} +5 -5
  141. package/dist/client/static/js/{sass-07rteya0.js → sass-c2bk03e4.js} +1 -1
  142. package/dist/client/static/js/{scss-e2dndbfa.js → scss-qycakpjn.js} +1 -1
  143. package/dist/client/static/js/{sequenceDiagram-PO4LG4MO-yh3h988k.js → sequenceDiagram-PO4LG4MO-qfvxrwfa.js} +19 -19
  144. package/dist/client/static/js/{sizeCapture-INFHLROL-1n121yp6.js → sizeCapture-INFHLROL-0m7dc5nd.js} +1 -1
  145. package/dist/client/static/js/{stateDiagram-v2-GCMORJYK-0tdrzn06.js → stateDiagram-v2-GCMORJYK-femwcn7n.js} +5 -5
  146. package/dist/client/static/js/{svelte-w365cpwa.js → svelte-bfy1rq5g.js} +1 -1
  147. package/dist/client/static/js/{swimlanes-2SLR337P-77n1ttdw.js → swimlanes-2SLR337P-5n1qq48r.js} +1 -1
  148. package/dist/client/static/js/swimlanesDiagram-TC7HE7FX-n85hawg8.js +8 -0
  149. package/dist/client/static/js/{timeline-definition-EJHVYXUP-b6r0k3e8.js → timeline-definition-EJHVYXUP-vdsj18be.js} +7 -7
  150. package/dist/client/static/js/treeView-Q6P3EWNA-fvpt3hm8.js +1 -0
  151. package/dist/client/static/js/treemap-WGGIJYW6-4z9s24je.js +1 -0
  152. package/dist/client/static/js/tsx-fnzxsv25.js +1 -0
  153. package/dist/client/static/js/typescript-0ppbqrb6.js +1 -0
  154. package/dist/client/static/js/{usecaseDiagram-POWQR4AR-efq58m3m.js → usecaseDiagram-POWQR4AR-psjbrprk.js} +43 -43
  155. package/dist/client/static/js/{vennDiagram-UO4OBE2U-ad4gvd5r.js → vennDiagram-UO4OBE2U-4yn9kac9.js} +7 -7
  156. package/dist/client/static/js/{vue-d6cesny1.js → vue-0fwtgwj4.js} +1 -1
  157. package/dist/client/static/js/wardley-WFR3VGLG-73mrhkmy.js +1 -0
  158. package/dist/client/static/js/{wardleyDiagram-VNRHLVJA-v89tys2p.js → wardleyDiagram-VNRHLVJA-js0tbpca.js} +3 -3
  159. package/dist/client/static/js/xml-v1ytr8qz.js +1 -0
  160. package/dist/client/static/js/{xychartDiagram-PMCCYNJV-xtgzmknw.js → xychartDiagram-PMCCYNJV-svr38ygh.js} +5 -5
  161. package/dist/client/static/js/yaml-txrqz62t.js +1 -0
  162. package/marketplace/plugins/stats/package.json +2 -2
  163. package/marketplace/plugins/stats/src/proc/identity.ts +4 -3
  164. package/package.json +2 -2
  165. package/src/client/App.tsx +1 -1
  166. package/src/client/borders.css +143 -0
  167. package/src/client/components/common/context-usage-button/Ring.tsx +34 -9
  168. package/src/client/components/common/context-usage-button/index.test.tsx +19 -2
  169. package/src/client/components/common/context-usage-button/index.tsx +4 -4
  170. package/src/client/components/common/header-controls/index.test.tsx +26 -59
  171. package/src/client/components/common/header-controls/index.tsx +41 -52
  172. package/src/client/components/common/header-controls/phone-row.test.tsx +265 -0
  173. package/src/client/components/common/header-controls/plugin-entry.test.tsx +25 -3
  174. package/src/client/components/common/header-controls/shell-chrome.test.tsx +2 -2
  175. package/src/client/components/layout/LeftDock.tsx +7 -0
  176. package/src/client/components/layout/desktop-layout/DesktopOverlays.tsx +51 -0
  177. package/src/client/components/layout/desktop-layout/LeftColumn.tsx +117 -15
  178. package/src/client/components/layout/desktop-layout/RightColumn.tsx +257 -0
  179. package/src/client/components/layout/desktop-layout/TopNavbar.tsx +23 -24
  180. package/src/client/components/layout/desktop-layout/WorkspacePanels.tsx +50 -78
  181. package/src/client/components/layout/desktop-layout/index.tsx +73 -73
  182. package/src/client/components/layout/session-sidebar/Footer.test.tsx +20 -0
  183. package/src/client/components/layout/session-sidebar/Footer.tsx +24 -2
  184. package/src/client/components/layout/session-sidebar/Header.test.ts +10 -0
  185. package/src/client/components/layout/session-sidebar/Header.tsx +2 -2
  186. package/src/client/components/mobile/mobile-main-view/Header.test.tsx +2 -3
  187. package/src/client/components/mobile/mobile-main-view/Header.tsx +12 -10
  188. package/src/client/components/settings/Modal.tsx +14 -9
  189. package/src/client/components/settings/ProjectSelectorDropdown.tsx +18 -6
  190. package/src/client/components/settings/SettingsSidebarList.tsx +2 -1
  191. package/src/client/components/settings/Sidebar.tsx +6 -4
  192. package/src/client/components/settings/apply-side-effects.test.ts +17 -0
  193. package/src/client/components/settings/apply-side-effects.ts +26 -5
  194. package/src/client/components/settings/band-height.test.tsx +122 -0
  195. package/src/client/components/settings/categories/AppearanceSettings.test.tsx +144 -0
  196. package/src/client/components/settings/categories/AppearanceSettings.tsx +81 -39
  197. package/src/client/components/settings/categories/ChatSettings.tsx +9 -15
  198. package/src/client/components/settings/categories/UsageSettings.tsx +2 -1
  199. package/src/client/components/settings/categories/appearance-settings/BorderStyleSection.test.tsx +101 -0
  200. package/src/client/components/settings/categories/appearance-settings/BorderStyleSection.tsx +134 -0
  201. package/src/client/components/settings/categories/appearance-settings/EditorBlameSection.tsx +2 -2
  202. package/src/client/components/settings/categories/appearance-settings/EditorFontSection.tsx +5 -5
  203. package/src/client/components/settings/categories/appearance-settings/EditorIndentSection.tsx +2 -2
  204. package/src/client/components/settings/categories/appearance-settings/EditorThemeSection.tsx +6 -6
  205. package/src/client/components/settings/categories/appearance-settings/EditorTypingSection.tsx +2 -2
  206. package/src/client/components/settings/categories/appearance-settings/IconStyleSection.tsx +2 -2
  207. package/src/client/components/settings/categories/appearance-settings/PanelNavSection.tsx +167 -0
  208. package/src/client/components/settings/categories/appearance-settings/SidebarStyleSection.tsx +2 -2
  209. package/src/client/components/settings/categories/appearance-settings/SurfaceStyleSection.tsx +2 -2
  210. package/src/client/components/settings/categories/appearance-settings/ThemeSection.tsx +42 -0
  211. package/src/client/components/settings/categories/appearance-settings/TrayIconSection.tsx +2 -2
  212. package/src/client/components/settings/categories/appearance-settings/groups.test.ts +47 -0
  213. package/src/client/components/settings/categories/appearance-settings/groups.ts +95 -0
  214. package/src/client/components/settings/categories/chat-settings/LayoutSection.tsx +31 -14
  215. package/src/client/components/settings/categories/mcp-settings/SidebarList.tsx +2 -1
  216. package/src/client/components/settings/categories/project-settings/SidebarList.tsx +2 -1
  217. package/src/client/components/settings/categories/provider-settings/SidebarList.tsx +2 -1
  218. package/src/client/components/settings/categories/usage-settings/SidebarList.tsx +2 -1
  219. package/src/client/components/settings/master-detail/GroupDetail.tsx +38 -0
  220. package/src/client/components/settings/{categories/chat-settings/SidebarList.tsx → master-detail/GroupSidebar.tsx} +35 -12
  221. package/src/client/components/settings/master-detail/index.tsx +3 -1
  222. package/src/client/components/settings/pane-header.ts +25 -0
  223. package/src/client/components/workspace/browser-toolbar/index.test.tsx +39 -1
  224. package/src/client/components/workspace/browser-toolbar/index.tsx +53 -17
  225. package/src/client/components/workspace/chat-timeline/ColumnResizeHandle.tsx +107 -0
  226. package/src/client/components/workspace/chat-timeline/ComposerDockFrame.tsx +9 -3
  227. package/src/client/components/workspace/chat-timeline/EmptyWorkspacePrompt.tsx +35 -26
  228. package/src/client/components/workspace/chat-timeline/TimelineBody.tsx +6 -0
  229. package/src/client/components/workspace/chat-timeline/column-resize.test.tsx +292 -0
  230. package/src/client/components/workspace/chat-timeline/composer-dock-frame.test.tsx +5 -3
  231. package/src/client/components/workspace/context-panel/index.tsx +10 -4
  232. package/src/client/components/workspace/editor/EditorHideButton.tsx +41 -0
  233. package/src/client/components/workspace/editor/EmptyEditor.tsx +11 -2
  234. package/src/client/components/workspace/editor/PluginColumn.tsx +11 -1
  235. package/src/client/components/workspace/editor/Tabs.tsx +8 -0
  236. package/src/client/components/workspace/editor/editor-hide-button.test.ts +144 -0
  237. package/src/client/components/workspace/editor/index.tsx +8 -2
  238. package/src/client/components/workspace/editor/props.ts +9 -0
  239. package/src/client/components/workspace/file-explorer/RowLabel.test.tsx +90 -0
  240. package/src/client/components/workspace/file-explorer/RowLabel.tsx +1 -4
  241. package/src/client/components/workspace/git-panel/commit-modal/CommitRow.test.ts +52 -46
  242. package/src/client/components/workspace/git-panel/commit-modal/CommitRow.tsx +41 -21
  243. package/src/client/components/workspace/git-panel/commit-modal/GraphCanvas.tsx +6 -5
  244. package/src/client/components/workspace/git-panel/commit-modal/index.tsx +19 -22
  245. package/src/client/components/workspace/panel-header/title-policy.test.tsx +62 -0
  246. package/src/client/components/workspace/panel-header/title-policy.tsx +83 -0
  247. package/src/client/components/workspace/panel-tabs/Home.density.test.tsx +122 -0
  248. package/src/client/components/workspace/panel-tabs/Home.test.tsx +137 -0
  249. package/src/client/components/workspace/panel-tabs/Home.tsx +106 -0
  250. package/src/client/components/workspace/panel-tabs/TabStrip.test.tsx +221 -0
  251. package/src/client/components/workspace/panel-tabs/TabStrip.tsx +315 -0
  252. package/src/client/components/workspace/panel-tabs/index.tsx +97 -0
  253. package/src/client/components/workspace/panels/builtin.tsx +9 -0
  254. package/src/client/components/workspace/plan-panel/index.tsx +7 -2
  255. package/src/client/components/workspace/repo-picker/Modal.tsx +1 -1
  256. package/src/client/components/workspace/repo-picker/index.test.tsx +32 -8
  257. package/src/client/components/workspace/repo-picker/index.tsx +2 -2
  258. package/src/client/components/workspace/search-panel/Body.tsx +7 -1
  259. package/src/client/components/workspace/search-panel/index.tsx +2 -1
  260. package/src/client/components/workspace/terminal-panel/Header.tsx +10 -3
  261. package/src/client/components/workspace/terminal-panel/index.tsx +4 -1
  262. package/src/client/components/workspace/todo-panel/index.tsx +6 -1
  263. package/src/client/components/workspace/usage-panel/index.tsx +7 -2
  264. package/src/client/components/workspace/user-browser-panel/AddressBar.tsx +43 -4
  265. package/src/client/components/workspace/user-browser-panel/Frame.tsx +101 -45
  266. package/src/client/components/workspace/user-browser-panel/TabStrip.tsx +107 -0
  267. package/src/client/components/workspace/user-browser-panel/index.tsx +31 -6
  268. package/src/client/glass.test.ts +1 -1
  269. package/src/client/hooks/browser/use-annotate.ts +6 -5
  270. package/src/client/hooks/browser/use-user-browser.test.tsx +279 -0
  271. package/src/client/hooks/browser/use-user-browser.ts +190 -44
  272. package/src/client/hooks/chat/timeline/column-drag.ts +171 -0
  273. package/src/client/hooks/chat/timeline/width-mode.test.ts +112 -11
  274. package/src/client/hooks/chat/timeline/width-mode.ts +91 -18
  275. package/src/client/hooks/ui/border-style.test.ts +172 -0
  276. package/src/client/hooks/ui/border-style.ts +60 -0
  277. package/src/client/hooks/ui/navbar-controls.test.ts +27 -1
  278. package/src/client/hooks/ui/navbar-controls.ts +95 -20
  279. package/src/client/hooks/ui/style-attributes.test.ts +2 -0
  280. package/src/client/hooks/workspace/active-project.ts +46 -0
  281. package/src/client/hooks/workspace/commit-expansion.test.ts +135 -0
  282. package/src/client/hooks/workspace/commit-expansion.ts +56 -0
  283. package/src/client/hooks/workspace/panel-nav.test.ts +102 -0
  284. package/src/client/hooks/workspace/panel-nav.ts +95 -0
  285. package/src/client/hooks/workspace/panel-tabs.session.test.tsx +235 -0
  286. package/src/client/hooks/workspace/panel-tabs.ts +194 -0
  287. package/src/client/hooks/workspace/right-open-request.ts +53 -0
  288. package/src/client/hooks/workspace/right-side.test.ts +204 -0
  289. package/src/client/hooks/workspace/right-side.ts +142 -0
  290. package/src/client/main.tsx +9 -4
  291. package/src/client/tailwind.css +6 -0
  292. package/src/server/lib/assets/shell-attributes.server.ts +26 -10
  293. package/src/server/lib/assets/shell-attributes.test.ts +26 -0
  294. package/src/server/lib/harness/acp/background-replay.test.ts +16 -1
  295. package/src/server/lib/harness/acp/background-replay.ts +6 -1
  296. package/src/server/lib/harness/acp/background-work.ts +44 -31
  297. package/src/server/lib/harness/acp/session-turns.ts +4 -3
  298. package/src/server/lib/harness/acp/session-wiring.test.ts +53 -0
  299. package/src/server/lib/harness/acp/session-wiring.ts +11 -2
  300. package/src/server/lib/harness/session-lease.server.ts +3 -2
  301. package/src/server/lib/omp/session/lease-probe.server.test.ts +82 -0
  302. package/src/server/lib/omp/session/lease-probe.server.ts +180 -0
  303. package/src/server/lib/omp/session/ownership.server.test.ts +17 -6
  304. package/src/server/lib/omp/session/ownership.server.ts +7 -5
  305. package/src/server/plugins/ssr.ts +6 -3
  306. package/src/shared/lib/browser/user-tabs.test.ts +165 -0
  307. package/src/shared/lib/browser/user-tabs.ts +172 -0
  308. package/src/shared/lib/chat/timeline/width-mode.test.ts +34 -2
  309. package/src/shared/lib/chat/timeline/width-mode.ts +71 -22
  310. package/src/shared/lib/commands/catalog.ts +2 -2
  311. package/src/shared/lib/fs/git-status.test.ts +23 -0
  312. package/src/shared/lib/fs/git-status.ts +15 -0
  313. package/src/shared/lib/icons/tint-hues.generated.ts +20 -20
  314. package/src/shared/lib/settings/defaults.ts +7 -1
  315. package/src/shared/lib/theme/border-style.test.ts +83 -0
  316. package/src/shared/lib/theme/border-style.ts +122 -0
  317. package/src/shared/lib/workspace/keymap.ts +2 -1
  318. package/src/shared/lib/workspace/panel-nav.test.ts +162 -0
  319. package/src/shared/lib/workspace/panel-nav.ts +105 -0
  320. package/src/shared/lib/workspace/panel-tabs-close.test.ts +154 -0
  321. package/src/shared/lib/workspace/panel-tabs.ts +105 -0
  322. package/src/shared/lib/workspace/session-state/cache.ts +22 -0
  323. package/src/shared/lib/workspace/session-state/merge.ts +6 -0
  324. package/src/shared/lib/workspace/session-state/store.ts +23 -0
  325. package/src/shared/types/settings/state.ts +50 -3
  326. package/src/test-support/header-controls-harness.ts +22 -0
  327. package/src/test-support/peer-harness.ts +2 -2
  328. package/dist/client/static/js/ImageView-rnzf5tve.js +0 -1
  329. package/dist/client/static/js/LayoutWrapper-rekrgth6.js +0 -2
  330. package/dist/client/static/js/SessionsView-e84tjbcr.js +0 -1
  331. package/dist/client/static/js/architecture-7GRP2DOG-7j23x20s.js +0 -1
  332. package/dist/client/static/js/bash-vv2ysp0a.js +0 -1
  333. package/dist/client/static/js/c-8jf64j6h.js +0 -1
  334. package/dist/client/static/js/cpp-vh94zee0.js +0 -1
  335. package/dist/client/static/js/css-a13jmmnc.js +0 -1
  336. package/dist/client/static/js/css-p57h1fme.js +0 -1
  337. package/dist/client/static/js/cynefin-OW5HDTMX-me5xnx6a.js +0 -1
  338. package/dist/client/static/js/eventmodeling-NTZA5JFV-5zbvjj84.js +0 -1
  339. package/dist/client/static/js/flowDiagram-KWPJA3E3-36ygrbvm.js +0 -1
  340. package/dist/client/static/js/gitGraph-4MIJSDKK-tjhkv71w.js +0 -1
  341. package/dist/client/static/js/graphql-kesh8gk0.js +0 -1
  342. package/dist/client/static/js/html-sxpfydga.js +0 -1
  343. package/dist/client/static/js/index-0q2qfcjn.js +0 -1
  344. package/dist/client/static/js/index-48gh56ka.js +0 -3
  345. package/dist/client/static/js/index-4rv388z7.js +0 -2
  346. package/dist/client/static/js/index-52xmdeh2.js +0 -1
  347. package/dist/client/static/js/index-8kqepehd.js +0 -12
  348. package/dist/client/static/js/index-cje5gg45.js +0 -1
  349. package/dist/client/static/js/index-fbcg8y95.js +0 -1
  350. package/dist/client/static/js/index-g3shdymf.js +0 -1
  351. package/dist/client/static/js/index-h5n1btqy.js +0 -1
  352. package/dist/client/static/js/index-m1n4v0z7.js +0 -9
  353. package/dist/client/static/js/index-rn8w29pv.js +0 -2
  354. package/dist/client/static/js/index-sg6sz3g8.js +0 -1
  355. package/dist/client/static/js/index-vcrh95gf.css +0 -1
  356. package/dist/client/static/js/index-w5rw8f7w.js +0 -1
  357. package/dist/client/static/js/index-x6v37h3j.js +0 -1
  358. package/dist/client/static/js/info-A6RAGUB7-m6qz24p8.js +0 -1
  359. package/dist/client/static/js/ini-1x0ad976.js +0 -1
  360. package/dist/client/static/js/java-3944nq02.js +0 -1
  361. package/dist/client/static/js/json-g5ggnd94.js +0 -1
  362. package/dist/client/static/js/jsx-f6p72qpc.js +0 -1
  363. package/dist/client/static/js/lua-edn2b3wn.js +0 -1
  364. package/dist/client/static/js/markdown-9dhg1fax.js +0 -1
  365. package/dist/client/static/js/one-dark-pro-hteqzfb0.js +0 -1
  366. package/dist/client/static/js/one-light-dapnh0rs.js +0 -1
  367. package/dist/client/static/js/packet-AYTQ26CC-ng6wq5xj.js +0 -1
  368. package/dist/client/static/js/pie-WAS4IAKB-rf6jhxf6.js +0 -1
  369. package/dist/client/static/js/properties-fcmj08pv.js +0 -1
  370. package/dist/client/static/js/python-532d8ezm.js +0 -1
  371. package/dist/client/static/js/r-ptmdxs2a.js +0 -1
  372. package/dist/client/static/js/radar-RG4KPBEZ-ygp6hxq4.js +0 -1
  373. package/dist/client/static/js/railroad-74A4TZTK-rxgnrb2g.js +0 -1
  374. package/dist/client/static/js/railroad-abnf-HS5TGJTU-xkv52a2p.js +0 -1
  375. package/dist/client/static/js/railroad-ebnf-LZEXJU2U-bvcktbqh.js +0 -1
  376. package/dist/client/static/js/railroad-peg-WCYAUIDC-9c3v7jsq.js +0 -1
  377. package/dist/client/static/js/swimlanesDiagram-TC7HE7FX-akjqm31r.js +0 -8
  378. package/dist/client/static/js/treeView-Q6P3EWNA-fb58a7z1.js +0 -1
  379. package/dist/client/static/js/treemap-WGGIJYW6-ej4qhksx.js +0 -1
  380. package/dist/client/static/js/tsx-zfy727zs.js +0 -1
  381. package/dist/client/static/js/typescript-683kkkaw.js +0 -1
  382. package/dist/client/static/js/wardley-WFR3VGLG-mkp0kanv.js +0 -1
  383. package/dist/client/static/js/xml-6ct32gys.js +0 -1
  384. package/dist/client/static/js/yaml-1d5m3bfj.js +0 -1
  385. package/src/server/lib/omp/session/lease-flock.server.ts +0 -117
@@ -1 +1 @@
1
- import{$e}from"./index-xf36nmbm.js";import{yt}from"./index-sk9ej289.js";import{Nn}from"./index-ycks7gyg.js";import"./index-yvgbr7ek.js";import{Zo}from"./index-7dp90ad1.js";import{Aa}from"./index-e6any867.js";import"./index-jz93j0at.js";import"./index-e7yf273s.js";import"./index-j17h4z6f.js";import{Hf}from"./index-ys0xpw3q.js";import{Jo}from"./index-sesghshh.js";import{Zl}from"./index-181p91hf.js";import{Wf}from"./index-cqnpsw2m.js";import{Vf}from"./index-gmnmnfm0.js";import{Tp}from"./index-fg965t62.js";var n=Object.freeze(JSON.parse('{"displayName":"Ruby Haml","fileTypes":["haml","html.haml"],"foldingStartMarker":"^\\\\s*([-#%.:=\\\\w].*)\\\\s$","foldingStopMarker":"^\\\\s*$","name":"haml","patterns":[{"begin":"^(\\\\s*)==","contentName":"string.quoted.double.ruby","end":"$\\\\n*","patterns":[{"include":"#interpolated_ruby"}]},{"begin":"^(\\\\s*):ruby","end":"^(?!\\\\1\\\\s+|$\\\\n*)","name":"source.ruby.embedded.filter.haml","patterns":[{"include":"source.ruby"}]},{"captures":{"1":{"name":"punctuation.definition.prolog.haml"}},"match":"^(!!!)($|\\\\s.*)","name":"meta.prolog.haml"},{"begin":"^(\\\\s*):javascript","end":"^(?!\\\\1\\\\s+|$\\\\n*)","name":"js.haml","patterns":[{"include":"source.js"}]},{"begin":"^(\\\\s*)%script","end":"^(?!\\\\1\\\\s+|$\\\\n*)","name":"js.inline.haml","patterns":[{"include":"source.js"}]},{"begin":"^(\\\\s*):ruby$","end":"^(?!\\\\1\\\\s+|$\\\\n*)","name":"source.ruby.embedded.filter.haml","patterns":[{"include":"source.ruby"}]},{"captures":{"1":{"name":"punctuation.section.comment.haml"}},"match":"^(\\\\s*)(/\\\\[[^]].*?$\\\\n?)","name":"comment.line.slash.haml"},{"begin":"^(\\\\s*)(-#|/|-\\\\s*/\\\\*+)","beginCaptures":{"2":{"name":"punctuation.section.comment.haml"}},"end":"^(?!\\\\1\\\\s+|\\\\n)","name":"comment.block.haml","patterns":[{"include":"text.haml"}]},{"begin":"^\\\\s*(?:((%)([-:\\\\w]+))|(?=[#.]))","captures":{"1":{"name":"meta.tag.haml"},"2":{"name":"punctuation.definition.tag.haml"},"3":{"name":"entity.name.tag.haml"}},"end":"$|(?![#(.\\\\[{]|&amp;|[-=~]|!=|&=|/)","patterns":[{"begin":"==","contentName":"string.quoted.double.ruby","end":"$\\\\n?","patterns":[{"include":"#interpolated_ruby"}]},{"captures":{"1":{"name":"entity.other.attribute-name.class"}},"match":"(\\\\.[-:\\\\w]+)","name":"meta.selector.css"},{"captures":{"1":{"name":"entity.other.attribute-name.id"}},"match":"(#[-\\\\w]+)","name":"meta.selector.css"},{"begin":"(?<!#)\\\\{(?=.*(,|(do)|[{|}]|(#.*)|\\\\R)\\\\s*)","end":"\\\\s*}(?!\\\\s*,)(?!\\\\s*\\\\|)(?!#\\\\{.*})","name":"meta.section.attributes.haml","patterns":[{"include":"source.ruby"},{"include":"#continuation"},{"include":"#rubyline"}]},{"begin":"\\\\(","end":"\\\\)","name":"meta.section.attributes.plain.haml","patterns":[{"match":"([-\\\\w]+)","name":"constant.other.symbol.ruby"},{"match":"=","name":"punctuation"},{"include":"#variables"},{"begin":"\\"","end":"\\"","name":"string.quoted.double.ruby","patterns":[{"match":"\\\\\\\\(x\\\\h{2}|[012][0-7]{0,2}|3[0-6][0-7]?|37[0-7]?|[4-7][0-7]?|.)","name":"constant.character.escape.ruby"},{"include":"#interpolated_ruby"}]},{"include":"#interpolated_ruby"}]},{"begin":"\\\\[(?=.+([],\\\\[|]|(#.*))\\\\s*)","end":"\\\\s*](?!.*(?!#\\\\[)])","name":"meta.section.object.haml","patterns":[{"include":"source.ruby"},{"include":"#continuation"},{"include":"#rubyline"}]},{"include":"#interpolated_ruby_line"},{"include":"#rubyline"},{"match":"/","name":"punctuation.terminator.tag.haml"}]},{"begin":"^(\\\\s*):(ruby|opal)$","end":"^(?!\\\\1\\\\s+|$\\\\n*)","name":"source.ruby.embedded.filter.haml","patterns":[{"include":"source.ruby"}]},{"begin":"^(\\\\s*):ruby$","end":"^(?!\\\\1\\\\s+|$\\\\n*)","name":"source.ruby.embedded.filter.haml","patterns":[{"include":"source.ruby"}]},{"begin":"^(\\\\s*):(s(?:tyle|ass))$","end":"^(?=\\\\1\\\\s+|$\\\\n*)","name":"source.sass.embedded.filter.haml","patterns":[{"include":"source.sass"}]},{"begin":"^(\\\\s*):coffee(script)?","end":"^(?!\\\\1\\\\s+|$\\\\n*)","name":"source.coffee.embedded.filter.haml","patterns":[{"include":"source.coffee"}]},{"begin":"^(\\\\s*):plain$","end":"^(?=\\\\1\\\\s+|$\\\\n*)","name":"text.plain.embedded.filter.haml","patterns":[{"include":"text.plain"}]},{"begin":"^(\\\\s*)(:ruby)","beginCaptures":{"2":{"name":"keyword.control.filter.haml"}},"end":"(?m:(?<=\\\\n)(?!\\\\1\\\\s+|$\\\\n*))","name":"source.ruby.embedded.filter.haml","patterns":[{"include":"source.ruby"}]},{"begin":"^(\\\\s*)(:sass)","beginCaptures":{"2":{"name":"keyword.control.filter.haml"}},"end":"^(?!\\\\1\\\\s+|$\\\\n*)","name":"source.embedded.filter.sass","patterns":[{"include":"source.sass"}]},{"begin":"^(\\\\s*):(s(?:tyles|ass))$","end":"^(?=\\\\1\\\\s+|$\\\\n*)","name":"source.sass.embedded.filter.haml","patterns":[{"include":"source.sass"}]},{"begin":"^(\\\\s*):plain$","end":"^(?=\\\\1\\\\s+|$\\\\n*)","name":"text.plain.embedded.filter.haml","patterns":[{"include":"text.plain"}]},{"captures":{"1":{"name":"meta.escape.haml"}},"match":"^\\\\s*(\\\\.)"},{"begin":"^\\\\s*(?=[-=~]|!=|&=)","end":"$","patterns":[{"include":"#interpolated_ruby_line"},{"include":"#rubyline"}]},{"begin":"^(\\\\s*)(:php)","captures":{"2":{"name":"entity.name.tag.haml"}},"end":"^(?!\\\\1\\\\s+|$\\\\n*)","name":"meta.embedded.php","patterns":[{"include":"text.html.php#language"}]},{"begin":"^(\\\\s*)(:markdown)","captures":{"2":{"name":"entity.name.tag.haml"}},"end":"^(?!\\\\1\\\\s+|$\\\\n*)","name":"meta.embedded.markdown","patterns":[{"include":"text.html.markdown"}]},{"begin":"^(\\\\s*)(:(css|styles?))$","captures":{"2":{"name":"entity.name.tag.haml"}},"end":"^(?!\\\\1\\\\s+|$\\\\n*)","name":"meta.embedded.css","patterns":[{"include":"source.css"}]},{"begin":"^(\\\\s*)(:sass)$","captures":{"2":{"name":"entity.name.tag.haml"}},"end":"^(?!\\\\1\\\\s+|$\\\\n*)","name":"meta.embedded.sass","patterns":[{"include":"source.sass"}]},{"begin":"^(\\\\s*)(:scss)$","captures":{"2":{"name":"entity.name.tag.haml"}},"end":"^(?!\\\\1\\\\s+|$\\\\n*)","name":"meta.embedded.scss","patterns":[{"include":"source.scss"}]}],"repository":{"continuation":{"captures":{"1":{"name":"punctuation.separator.continuation.haml"}},"match":"(\\\\|)\\\\s*\\\\n"},"interpolated_ruby":{"patterns":[{"captures":{"0":{"name":"punctuation.section.embedded.ruby"},"1":{"name":"source.ruby.embedded.source.empty"}},"match":"#\\\\{(})","name":"source.ruby.embedded.source"},{"begin":"#\\\\{","captures":{"0":{"name":"punctuation.section.embedded.ruby"}},"end":"(})","name":"source.ruby.embedded.source","patterns":[{"include":"#nest_curly_and_self"},{"include":"source.ruby"}]},{"include":"#variables"}]},"interpolated_ruby_line":{"begin":"!?==","contentName":"string.source.ruby.embedded.haml","end":"$","name":"meta.line.ruby.interpolated.haml","patterns":[{"include":"#interpolated_ruby"},{"include":"source.ruby#escaped_char"}]},"nest_curly_and_self":{"patterns":[{"begin":"\\\\{","captures":{"0":{"name":"punctuation.section.scope.ruby"}},"end":"}","patterns":[{"include":"#nest_curly_and_self"},{"include":"source.ruby"}]}]},"rubyline":{"begin":"(&amp|!)?([-=~])","contentName":"source.ruby.embedded.haml","end":"((do|\\\\{)( \\\\|[*.]+\\\\|)?)$|$|^(?!.*\\\\|\\\\s*)$\\\\n?","endCaptures":{"1":{"name":"source.ruby.embedded.html"},"2":{"name":"keyword.control.ruby.start-block"}},"name":"meta.line.ruby.haml","patterns":[{"captures":{"1":{"name":"keyword.control.php"}},"match":"\\\\s+((elseif|foreach|switch|declare|default|use))(?=[(\\\\s])"},{"captures":{"1":{"name":"keyword.control.import.include.php"}},"match":"\\\\s+((?:requir|includ)e_once)(?=[(\\\\s])"},{"match":"\\\\s+(catch|try|throw|exception|finally|die)(?=[(\\\\s]|\\\\n*)","name":"keyword.control.exception.php"},{"captures":{"1":{"name":"storage.type.function.php"}},"match":"\\\\s+(function\\\\s*)((?=\\\\())"},{"captures":{"1":{"name":"keyword.control.php"}},"match":"\\\\s+(use\\\\s*)((?=\\\\())"},{"match":"([,<|]|do|\\\\{)\\\\s*(#.*)?$\\\\n*","name":"source.ruby","patterns":[{"include":"#rubyline"}]},{"match":"#.*$","name":"comment.line.number-sign.ruby"},{"include":"source.ruby"},{"include":"#continuation"}]},"variables":{"patterns":[{"captures":{"1":{"name":"punctuation.definition.variable.ruby"}},"match":"(#@)[A-Z_a-z]\\\\w*","name":"variable.other.readwrite.instance.ruby"},{"captures":{"1":{"name":"punctuation.definition.variable.ruby"}},"match":"(#@@)[A-Z_a-z]\\\\w*","name":"variable.other.readwrite.class.ruby"},{"captures":{"1":{"name":"punctuation.definition.variable.ruby"}},"match":"(#\\\\$)[A-Z_a-z]\\\\w*","name":"variable.other.readwrite.global.ruby"}]}},"scopeName":"text.haml","embeddedLangs":["javascript","css"],"embeddedLangsLazy":["ruby","sass","coffee","markdown"]}')),e=[...$e,...yt,n];var t=Object.freeze(JSON.parse('{"displayName":"Ruby","name":"ruby","patterns":[{"captures":{"1":{"name":"keyword.control.class.ruby"},"2":{"name":"entity.name.type.class.ruby"},"5":{"name":"punctuation.separator.namespace.ruby"},"7":{"name":"punctuation.separator.inheritance.ruby"},"8":{"name":"entity.other.inherited-class.ruby"},"11":{"name":"punctuation.separator.namespace.ruby"}},"match":"\\\\b(class)\\\\s+(([0-9A-Z_a-z]+)((::)[0-9A-Z_a-z]+)*)\\\\s*((<)\\\\s*(([0-9A-Z_a-z]+)((::)[0-9A-Z_a-z]+)*))?","name":"meta.class.ruby"},{"captures":{"1":{"name":"keyword.control.module.ruby"},"2":{"name":"entity.name.type.module.ruby"},"5":{"name":"punctuation.separator.namespace.ruby"}},"match":"\\\\b(module)\\\\s+(([0-9A-Z_a-z]+)((::)[0-9A-Z_a-z]+)*)","name":"meta.module.ruby"},{"captures":{"1":{"name":"keyword.control.class.ruby"},"2":{"name":"punctuation.separator.inheritance.ruby"}},"match":"\\\\b(class)\\\\s*(<<)\\\\s*","name":"meta.class.ruby"},{"match":"(?<!\\\\.)\\\\belse(\\\\s)+if\\\\b","name":"invalid.deprecated.ruby"},{"captures":{"1":{"name":"variable.ruby"},"2":{"name":"keyword.operator.assignment.augmented.ruby"}},"match":"^\\\\s*([_a-z][0-9A-Z_a-z]*)\\\\s*((&&|\\\\|\\\\|)=)"},{"captures":{"1":{"name":"keyword.control.ruby"},"3":{"name":"variable.ruby"},"4":{"name":"keyword.operator.assignment.augmented.ruby"}},"match":"(?<!\\\\.)\\\\b(case|if|elsif|unless|until|while)\\\\b\\\\s*(\\\\()*?\\\\s*([_a-z][0-9A-Z_a-z]*)\\\\s*((&&|\\\\|\\\\|)=)"},{"captures":{"1":{"name":"variable.ruby"},"2":{"name":"keyword.operator.assignment.augmented.ruby"}},"match":"^\\\\s*([_a-z][0-9A-Z_a-z]*)\\\\s*(([-%*+/]|\\\\*\\\\*|[\\\\&^|]|<<|>>)=)"},{"captures":{"1":{"name":"keyword.control.ruby"},"3":{"name":"variable.ruby"},"4":{"name":"keyword.operator.assignment.augmented.ruby"}},"match":"(?<!\\\\.)\\\\b(case|if|elsif|unless|until|while)\\\\b\\\\s*(\\\\()*?\\\\s*([_a-z][0-9A-Z_a-z]*)\\\\s*(([-%*+/]|\\\\*\\\\*|[\\\\&^|]|<<|>>)=)"},{"captures":{"1":{"name":"variable.ruby"}},"match":"^\\\\s*([_a-z][0-9A-Z_a-z]*)\\\\s*(?==[^=>])"},{"captures":{"1":{"name":"keyword.control.ruby"},"3":{"name":"variable.ruby"}},"match":"(?<!\\\\.)\\\\b(case|if|elsif|unless|until|while)\\\\b\\\\s*(\\\\()*?\\\\s*([_a-z][0-9A-Z_a-z]*)\\\\s*=[^=>]"},{"captures":{"1":{"name":"punctuation.definition.constant.hashkey.ruby"}},"match":"(?>[A-Z_a-z]\\\\w*[!?]?)(:)(?!:)","name":"constant.language.symbol.hashkey.ruby"},{"captures":{"1":{"name":"punctuation.definition.constant.ruby"}},"match":"(?<!:)(:)(?>[A-Z_a-z]\\\\w*[!?]?)(?=\\\\s*=>)","name":"constant.language.symbol.hashkey.ruby"},{"match":"(?<!\\\\.)\\\\b(BEGIN|begin|case|class|else|elsif|END|end|ensure|for|if|in|module|rescue|then|unless|until|when|while)\\\\b(?![!?])","name":"keyword.control.ruby"},{"match":"(?<!\\\\.)\\\\bdo\\\\b","name":"keyword.control.start-block.ruby"},{"match":"(?<=\\\\{)(\\\\s+)","name":"meta.syntax.ruby.start-block"},{"match":"(?<!\\\\.)\\\\b(alias|alias_method|break|next|redo|retry|return|super|undef|yield)\\\\b(?![!?])|\\\\bdefined\\\\?|\\\\b(block_given|iterator)\\\\?","name":"keyword.control.pseudo-method.ruby"},{"match":"\\\\bnil\\\\b(?![!?])","name":"constant.language.nil.ruby"},{"match":"\\\\b(true|false)\\\\b(?![!?])","name":"constant.language.boolean.ruby"},{"match":"\\\\b(__(FILE|LINE)__)\\\\b(?![!?])","name":"variable.language.ruby"},{"match":"\\\\bself\\\\b(?![!?])","name":"variable.language.self.ruby"},{"match":"\\\\b(initialize|new|loop|include|extend|prepend|raise|fail|attr_reader|attr_writer|attr_accessor|attr|catch|throw|private|private_class_method|module_function|public|public_class_method|protected|refine|using)\\\\b(?![!?])","name":"keyword.other.special-method.ruby"},{"begin":"\\\\b(?<!\\\\.|::)(require(?:|_relative))\\\\b(?![!?])","captures":{"1":{"name":"keyword.other.special-method.ruby"}},"end":"$|(?=[#}])","name":"meta.require.ruby","patterns":[{"include":"$self"}]},{"captures":{"1":{"name":"punctuation.definition.variable.ruby"}},"match":"(@)[A-Z_a-z]\\\\w*","name":"variable.other.readwrite.instance.ruby"},{"captures":{"1":{"name":"punctuation.definition.variable.ruby"}},"match":"(@@)[A-Z_a-z]\\\\w*","name":"variable.other.readwrite.class.ruby"},{"captures":{"1":{"name":"punctuation.definition.variable.ruby"}},"match":"(\\\\$)[A-Z_a-z]\\\\w*","name":"variable.other.readwrite.global.ruby"},{"captures":{"1":{"name":"punctuation.definition.variable.ruby"}},"match":"(\\\\$)([!\\\\&\'+@`]|\\\\d+|[\\"$*,./:-?\\\\\\\\_~]|-[0FIadilpv])","name":"variable.other.readwrite.global.pre-defined.ruby"},{"begin":"\\\\b(ENV)\\\\[","beginCaptures":{"1":{"name":"variable.other.constant.ruby"}},"end":"]","name":"meta.environment-variable.ruby","patterns":[{"include":"$self"}]},{"match":"\\\\b[A-Z]\\\\w*(?=((\\\\.|::)[A-Za-z]|\\\\[))","name":"support.class.ruby"},{"match":"\\\\b((abort|at_exit|autoload|binding|callcc|caller|caller_locations|chomp|chop|eval|exec|exit|fork|format|gets|global_variables|gsub|lambda|load|local_variables|open|p|printf??|proc|putc|puts|rand|readlines??|select|set_trace_func|sleep|spawn|sprintf|srand|sub|syscall|system|test|trace_var|trap|untrace_var|warn)\\\\b(?![!?])|autoload\\\\?|exit!)","name":"support.function.kernel.ruby"},{"match":"\\\\b[A-Z_]\\\\w*\\\\b","name":"variable.other.constant.ruby"},{"begin":"(->)\\\\(","beginCaptures":{"1":{"name":"support.function.kernel.ruby"}},"end":"\\\\)","patterns":[{"begin":"(?=[\\\\&*A-Z_a-z])","end":"(?=[),])","patterns":[{"include":"#method_parameters"}]},{"include":"#method_parameters"}]},{"begin":"(?=def\\\\b)(?<=^|\\\\s)(def)\\\\s+((?>[A-Z_a-z]\\\\w*(?>\\\\.|::))?(?>[A-Z_a-z]\\\\w*(?>[!?]|=(?!>))?|===?|!=|>[=>]?|<=>|<[<=]?|[%\\\\&/`|]|\\\\*\\\\*?|=?~|[-+]@?|\\\\[]=?))\\\\s*(\\\\()","beginCaptures":{"1":{"name":"keyword.control.def.ruby"},"2":{"name":"entity.name.function.ruby"},"3":{"name":"punctuation.definition.parameters.ruby"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.parameters.ruby"}},"name":"meta.function.method.with-arguments.ruby","patterns":[{"begin":"(?=[\\\\&*A-Z_a-z])","end":"(?=[),])","patterns":[{"include":"#method_parameters"}]},{"include":"#method_parameters"}]},{"begin":"(?=def\\\\b)(?<=^|\\\\s)(def)\\\\s+((?>[A-Z_a-z]\\\\w*(?>\\\\.|::))?(?>[A-Z_a-z]\\\\w*(?>[!?]|=(?!>))?|===?|!=|>[=>]?|<=>|<[<=]?|[%\\\\&/`|]|\\\\*\\\\*?|=?~|[-+]@?|\\\\[]=?))[\\\\t ](?=[\\\\t ]*[^#;\\\\s])","beginCaptures":{"1":{"name":"keyword.control.def.ruby"},"2":{"name":"entity.name.function.ruby"}},"end":"(?=;)|(?<=[]!\\"\')?`}\\\\w])(?=\\\\s*#|\\\\s*$)","name":"meta.function.method.with-arguments.ruby","patterns":[{"begin":"(?=[\\\\&*A-Z_a-z])","end":"(?=[,;]|\\\\s*#|\\\\s*$)","patterns":[{"include":"#method_parameters"}]},{"include":"#method_parameters"}]},{"captures":{"1":{"name":"keyword.control.def.ruby"},"3":{"name":"entity.name.function.ruby"}},"match":"(?=def\\\\b)(?<=^|\\\\s)(def)\\\\b(\\\\s+((?>[A-Z_a-z]\\\\w*(?>\\\\.|::))?(?>[A-Z_a-z]\\\\w*(?>[!?]|=(?!>))?|===?|!=|>[=>]?|<=>|<[<=]?|[%\\\\&/`|]|\\\\*\\\\*?|=?~|[-+]@?|\\\\[]=?)))?","name":"meta.function.method.without-arguments.ruby"},{"match":"\\\\b(\\\\d(?>_?\\\\d)*(\\\\.(?![^\\\\s\\\\d])(?>_?\\\\d)*)?([Ee][-+]?\\\\d(?>_?\\\\d)*)?|0(?:[Xx]\\\\h(?>_?\\\\h)*|[Oo]?[0-7](?>_?[0-7])*|[Bb][01](?>_?[01])*|[Dd]\\\\d(?>_?\\\\d)*))\\\\b","name":"constant.numeric.ruby"},{"begin":":\'","beginCaptures":{"0":{"name":"punctuation.definition.symbol.begin.ruby"}},"end":"\'","endCaptures":{"0":{"name":"punctuation.definition.symbol.end.ruby"}},"name":"constant.language.symbol.ruby","patterns":[{"match":"\\\\\\\\[\'\\\\\\\\]","name":"constant.character.escape.ruby"}]},{"begin":":\\"","beginCaptures":{"0":{"name":"punctuation.section.symbol.begin.ruby"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.section.symbol.end.ruby"}},"name":"constant.language.symbol.interpolated.ruby","patterns":[{"include":"#interpolated_ruby"},{"include":"#escaped_char"}]},{"match":"(?<!\\\\()/=","name":"keyword.operator.assignment.augmented.ruby"},{"begin":"\'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.ruby"}},"end":"\'","endCaptures":{"0":{"name":"punctuation.definition.string.end.ruby"}},"name":"string.quoted.single.ruby","patterns":[{"match":"\\\\\\\\[\'\\\\\\\\]","name":"constant.character.escape.ruby"}]},{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.ruby"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.ruby"}},"name":"string.quoted.double.interpolated.ruby","patterns":[{"include":"#interpolated_ruby"},{"include":"#escaped_char"}]},{"begin":"(?<!\\\\.)`","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.ruby"}},"end":"`","endCaptures":{"0":{"name":"punctuation.definition.string.end.ruby"}},"name":"string.interpolated.ruby","patterns":[{"include":"#interpolated_ruby"},{"include":"#escaped_char"}]},{"begin":"(?<![)\\\\w])((/))(?![*+?])(?!\\\\s*$)(?=(?:\\\\\\\\/|[^/])*+/[eimnosux]*\\\\s*(?:[]#),.:?}]|\\\\|\\\\||&&|<=>|=>|==|=~|!~|!=|;|$|if|else|elsif|then|do|end|unless|while|until|or|and))","captures":{"1":{"name":"string.regexp.interpolated.ruby"},"2":{"name":"punctuation.section.regexp.ruby"}},"contentName":"string.regexp.interpolated.ruby","end":"((/[eimnosux]*))","patterns":[{"include":"#regex_sub"}]},{"begin":"%r\\\\{","beginCaptures":{"0":{"name":"punctuation.section.regexp.begin.ruby"}},"end":"}[eimnosux]*","endCaptures":{"0":{"name":"punctuation.section.regexp.end.ruby"}},"name":"string.regexp.interpolated.ruby","patterns":[{"include":"#regex_sub"},{"include":"#nest_curly_r"}]},{"begin":"%r\\\\[","beginCaptures":{"0":{"name":"punctuation.section.regexp.begin.ruby"}},"end":"][eimnosux]*","endCaptures":{"0":{"name":"punctuation.section.regexp.end.ruby"}},"name":"string.regexp.interpolated.ruby","patterns":[{"include":"#regex_sub"},{"include":"#nest_brackets_r"}]},{"begin":"%r\\\\(","beginCaptures":{"0":{"name":"punctuation.section.regexp.begin.ruby"}},"end":"\\\\)[eimnosux]*","endCaptures":{"0":{"name":"punctuation.section.regexp.end.ruby"}},"name":"string.regexp.interpolated.ruby","patterns":[{"include":"#regex_sub"},{"include":"#nest_parens_r"}]},{"begin":"%r<","beginCaptures":{"0":{"name":"punctuation.section.regexp.begin.ruby"}},"end":">[eimnosux]*","endCaptures":{"0":{"name":"punctuation.section.regexp.end.ruby"}},"name":"string.regexp.interpolated.ruby","patterns":[{"include":"#regex_sub"},{"include":"#nest_ltgt_r"}]},{"begin":"%r(\\\\W)","beginCaptures":{"0":{"name":"punctuation.section.regexp.begin.ruby"}},"end":"\\\\1[eimnosux]*","endCaptures":{"0":{"name":"punctuation.section.regexp.end.ruby"}},"name":"string.regexp.interpolated.ruby","patterns":[{"include":"#regex_sub"}]},{"begin":"%I\\\\[","beginCaptures":{"0":{"name":"punctuation.section.array.begin.ruby"}},"end":"]","endCaptures":{"0":{"name":"punctuation.section.array.end.ruby"}},"name":"constant.language.symbol.interpolated.ruby","patterns":[{"include":"#interpolated_ruby"},{"include":"#escaped_char"},{"include":"#nest_brackets_i"}]},{"begin":"%I\\\\(","beginCaptures":{"0":{"name":"punctuation.section.array.begin.ruby"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.array.end.ruby"}},"name":"constant.language.symbol.interpolated.ruby","patterns":[{"include":"#interpolated_ruby"},{"include":"#escaped_char"},{"include":"#nest_parens_i"}]},{"begin":"%I<","beginCaptures":{"0":{"name":"punctuation.section.array.begin.ruby"}},"end":">","endCaptures":{"0":{"name":"punctuation.section.array.end.ruby"}},"name":"constant.language.symbol.interpolated.ruby","patterns":[{"include":"#interpolated_ruby"},{"include":"#escaped_char"},{"include":"#nest_ltgt_i"}]},{"begin":"%I\\\\{","beginCaptures":{"0":{"name":"punctuation.section.array.begin.ruby"}},"end":"}","endCaptures":{"0":{"name":"punctuation.section.array.end.ruby"}},"name":"constant.language.symbol.interpolated.ruby","patterns":[{"include":"#interpolated_ruby"},{"include":"#escaped_char"},{"include":"#nest_curly_i"}]},{"begin":"%I(\\\\W)","beginCaptures":{"0":{"name":"punctuation.section.array.begin.ruby"}},"end":"\\\\1","endCaptures":{"0":{"name":"punctuation.section.array.end.ruby"}},"name":"constant.language.symbol.interpolated.ruby","patterns":[{"include":"#interpolated_ruby"},{"include":"#escaped_char"}]},{"begin":"%i\\\\[","beginCaptures":{"0":{"name":"punctuation.section.array.begin.ruby"}},"end":"]","endCaptures":{"0":{"name":"punctuation.section.array.end.ruby"}},"name":"constant.language.symbol.ruby","patterns":[{"match":"\\\\\\\\[]\\\\\\\\]","name":"constant.character.escape.ruby"},{"include":"#nest_brackets"}]},{"begin":"%i\\\\(","beginCaptures":{"0":{"name":"punctuation.section.array.begin.ruby"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.array.end.ruby"}},"name":"constant.language.symbol.ruby","patterns":[{"match":"\\\\\\\\[)\\\\\\\\]","name":"constant.character.escape.ruby"},{"include":"#nest_parens"}]},{"begin":"%i<","beginCaptures":{"0":{"name":"punctuation.section.array.begin.ruby"}},"end":">","endCaptures":{"0":{"name":"punctuation.section.array.end.ruby"}},"name":"constant.language.symbol.ruby","patterns":[{"match":"\\\\\\\\[>\\\\\\\\]","name":"constant.character.escape.ruby"},{"include":"#nest_ltgt"}]},{"begin":"%i\\\\{","beginCaptures":{"0":{"name":"punctuation.section.array.begin.ruby"}},"end":"}","endCaptures":{"0":{"name":"punctuation.section.array.end.ruby"}},"name":"constant.language.symbol.ruby","patterns":[{"match":"\\\\\\\\[\\\\\\\\}]","name":"constant.character.escape.ruby"},{"include":"#nest_curly"}]},{"begin":"%i(\\\\W)","beginCaptures":{"0":{"name":"punctuation.section.array.begin.ruby"}},"end":"\\\\1","endCaptures":{"0":{"name":"punctuation.section.array.end.ruby"}},"name":"constant.language.symbol.ruby","patterns":[{"match":"\\\\\\\\."}]},{"begin":"%W\\\\[","beginCaptures":{"0":{"name":"punctuation.section.array.begin.ruby"}},"end":"]","endCaptures":{"0":{"name":"punctuation.section.array.end.ruby"}},"name":"string.quoted.other.interpolated.ruby","patterns":[{"include":"#interpolated_ruby"},{"include":"#escaped_char"},{"include":"#nest_brackets_i"}]},{"begin":"%W\\\\(","beginCaptures":{"0":{"name":"punctuation.section.array.begin.ruby"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.array.end.ruby"}},"name":"string.quoted.other.interpolated.ruby","patterns":[{"include":"#interpolated_ruby"},{"include":"#escaped_char"},{"include":"#nest_parens_i"}]},{"begin":"%W<","beginCaptures":{"0":{"name":"punctuation.section.array.begin.ruby"}},"end":">","endCaptures":{"0":{"name":"punctuation.section.array.end.ruby"}},"name":"string.quoted.other.interpolated.ruby","patterns":[{"include":"#interpolated_ruby"},{"include":"#escaped_char"},{"include":"#nest_ltgt_i"}]},{"begin":"%W\\\\{","beginCaptures":{"0":{"name":"punctuation.section.array.begin.ruby"}},"end":"}","endCaptures":{"0":{"name":"punctuation.section.array.end.ruby"}},"name":"string.quoted.other.interpolated.ruby","patterns":[{"include":"#interpolated_ruby"},{"include":"#escaped_char"},{"include":"#nest_curly_i"}]},{"begin":"%W(\\\\W)","beginCaptures":{"0":{"name":"punctuation.section.array.begin.ruby"}},"end":"\\\\1","endCaptures":{"0":{"name":"punctuation.section.array.end.ruby"}},"name":"string.quoted.other.interpolated.ruby","patterns":[{"include":"#interpolated_ruby"},{"include":"#escaped_char"}]},{"begin":"%w\\\\[","beginCaptures":{"0":{"name":"punctuation.section.array.begin.ruby"}},"end":"]","endCaptures":{"0":{"name":"punctuation.section.array.end.ruby"}},"name":"string.quoted.other.ruby","patterns":[{"match":"\\\\\\\\[]\\\\\\\\]","name":"constant.character.escape.ruby"},{"include":"#nest_brackets"}]},{"begin":"%w\\\\(","beginCaptures":{"0":{"name":"punctuation.section.array.begin.ruby"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.array.end.ruby"}},"name":"string.quoted.other.ruby","patterns":[{"match":"\\\\\\\\[)\\\\\\\\]","name":"constant.character.escape.ruby"},{"include":"#nest_parens"}]},{"begin":"%w<","beginCaptures":{"0":{"name":"punctuation.section.array.begin.ruby"}},"end":">","endCaptures":{"0":{"name":"punctuation.section.array.end.ruby"}},"name":"string.quoted.other.ruby","patterns":[{"match":"\\\\\\\\[>\\\\\\\\]","name":"constant.character.escape.ruby"},{"include":"#nest_ltgt"}]},{"begin":"%w\\\\{","beginCaptures":{"0":{"name":"punctuation.section.array.begin.ruby"}},"end":"}","endCaptures":{"0":{"name":"punctuation.section.array.end.ruby"}},"name":"string.quoted.other.ruby","patterns":[{"match":"\\\\\\\\[\\\\\\\\}]","name":"constant.character.escape.ruby"},{"include":"#nest_curly"}]},{"begin":"%w(\\\\W)","beginCaptures":{"0":{"name":"punctuation.section.array.begin.ruby"}},"end":"\\\\1","endCaptures":{"0":{"name":"punctuation.section.array.end.ruby"}},"name":"string.quoted.other.ruby","patterns":[{"match":"\\\\\\\\."}]},{"begin":"%[Qx]?\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.ruby"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.string.end.ruby"}},"name":"string.quoted.other.interpolated.ruby","patterns":[{"include":"#interpolated_ruby"},{"include":"#escaped_char"},{"include":"#nest_parens_i"}]},{"begin":"%[Qx]?\\\\[","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.ruby"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.string.end.ruby"}},"name":"string.quoted.other.interpolated.ruby","patterns":[{"include":"#interpolated_ruby"},{"include":"#escaped_char"},{"include":"#nest_brackets_i"}]},{"begin":"%[Qx]?\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.ruby"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.string.end.ruby"}},"name":"string.quoted.other.interpolated.ruby","patterns":[{"include":"#interpolated_ruby"},{"include":"#escaped_char"},{"include":"#nest_curly_i"}]},{"begin":"%[Qx]?<","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.ruby"}},"end":">","endCaptures":{"0":{"name":"punctuation.definition.string.end.ruby"}},"name":"string.quoted.other.interpolated.ruby","patterns":[{"include":"#interpolated_ruby"},{"include":"#escaped_char"},{"include":"#nest_ltgt_i"}]},{"begin":"%[Qx](\\\\W)","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.ruby"}},"end":"\\\\1","endCaptures":{"0":{"name":"punctuation.definition.string.end.ruby"}},"name":"string.quoted.other.interpolated.ruby","patterns":[{"include":"#interpolated_ruby"},{"include":"#escaped_char"}]},{"begin":"%([^=\\\\w\\\\s])","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.ruby"}},"end":"\\\\1","endCaptures":{"0":{"name":"punctuation.definition.string.end.ruby"}},"name":"string.quoted.other.interpolated.ruby","patterns":[{"include":"#interpolated_ruby"},{"include":"#escaped_char"}]},{"begin":"%q\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.ruby"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.string.end.ruby"}},"name":"string.quoted.other.ruby","patterns":[{"match":"\\\\\\\\[)\\\\\\\\]","name":"constant.character.escape.ruby"},{"include":"#nest_parens"}]},{"begin":"%q<","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.ruby"}},"end":">","endCaptures":{"0":{"name":"punctuation.definition.string.end.ruby"}},"name":"string.quoted.other.ruby","patterns":[{"match":"\\\\\\\\[>\\\\\\\\]","name":"constant.character.escape.ruby"},{"include":"#nest_ltgt"}]},{"begin":"%q\\\\[","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.ruby"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.string.end.ruby"}},"name":"string.quoted.other.ruby","patterns":[{"match":"\\\\\\\\[]\\\\\\\\]","name":"constant.character.escape.ruby"},{"include":"#nest_brackets"}]},{"begin":"%q\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.ruby"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.string.end.ruby"}},"name":"string.quoted.other.ruby","patterns":[{"match":"\\\\\\\\[\\\\\\\\}]","name":"constant.character.escape.ruby"},{"include":"#nest_curly"}]},{"begin":"%q(\\\\W)","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.ruby"}},"end":"\\\\1","endCaptures":{"0":{"name":"punctuation.definition.string.end.ruby"}},"name":"string.quoted.other.ruby","patterns":[{"match":"\\\\\\\\."}]},{"begin":"%s\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.symbol.begin.ruby"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.symbol.end.ruby"}},"name":"constant.language.symbol.ruby","patterns":[{"match":"\\\\\\\\[)\\\\\\\\]","name":"constant.character.escape.ruby"},{"include":"#nest_parens"}]},{"begin":"%s<","beginCaptures":{"0":{"name":"punctuation.definition.symbol.begin.ruby"}},"end":">","endCaptures":{"0":{"name":"punctuation.definition.symbol.end.ruby"}},"name":"constant.language.symbol.ruby","patterns":[{"match":"\\\\\\\\[>\\\\\\\\]","name":"constant.character.escape.ruby"},{"include":"#nest_ltgt"}]},{"begin":"%s\\\\[","beginCaptures":{"0":{"name":"punctuation.definition.symbol.begin.ruby"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.symbol.end.ruby"}},"name":"constant.language.symbol.ruby","patterns":[{"match":"\\\\\\\\[]\\\\\\\\]","name":"constant.character.escape.ruby"},{"include":"#nest_brackets"}]},{"begin":"%s\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.symbol.begin.ruby"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.symbol.end.ruby"}},"name":"constant.language.symbol.ruby","patterns":[{"match":"\\\\\\\\[\\\\\\\\}]","name":"constant.character.escape.ruby"},{"include":"#nest_curly"}]},{"begin":"%s(\\\\W)","beginCaptures":{"0":{"name":"punctuation.definition.symbol.begin.ruby"}},"end":"\\\\1","endCaptures":{"0":{"name":"punctuation.definition.symbol.end.ruby"}},"name":"constant.language.symbol.ruby","patterns":[{"match":"\\\\\\\\."}]},{"captures":{"1":{"name":"punctuation.definition.constant.ruby"}},"match":"(?<!:)(:)(?>[$A-Z_a-z]\\\\w*(?>[!?]|=(?![=>]))?|===?|<=>|>[=>]?|<[<=]?|[%\\\\&/`|]|\\\\*\\\\*?|=?~|[-+]@?|\\\\[]=?|@@?[A-Z_a-z]\\\\w*)","name":"constant.language.symbol.ruby"},{"begin":"^=begin","captures":{"0":{"name":"punctuation.definition.comment.ruby"}},"end":"^=end","name":"comment.block.documentation.ruby"},{"include":"#yard"},{"begin":"(^[\\\\t ]+)?(?=#)","beginCaptures":{"1":{"name":"punctuation.whitespace.comment.leading.ruby"}},"end":"(?!\\\\G)","patterns":[{"begin":"#","beginCaptures":{"0":{"name":"punctuation.definition.comment.ruby"}},"end":"\\\\n","name":"comment.line.number-sign.ruby"}]},{"match":"(?<!\\\\w)\\\\?(\\\\\\\\(x\\\\h{1,2}(?!\\\\h)\\\\b|0[0-7]{0,2}(?![0-7])\\\\b|[^0CMx])|(\\\\\\\\[CM]-)+\\\\w|[^\\\\\\\\\\\\s])","name":"constant.numeric.ruby"},{"begin":"^__END__\\\\n","captures":{"0":{"name":"string.unquoted.program-block.ruby"}},"contentName":"text.plain","end":"(?=not)impossible","patterns":[{"begin":"(?=<?xml|<(?i:html\\\\b)|!DOCTYPE (?i:html\\\\b))","end":"(?=not)impossible","name":"text.html.embedded.ruby","patterns":[{"include":"text.html.basic"}]}]},{"begin":"(?=(?><<[-~]?([\\"\'`]?)((?:[_\\\\w]+_|)HTML)\\\\b\\\\1))","end":"^\\\\s*((?:[_\\\\w]+_|)HTML)$\\\\n?","endCaptures":{"0":{"name":"string.definition.end.ruby"}},"name":"meta.embedded.block.html","patterns":[{"begin":"(?><<[-~]?([\\"\'`]?)((?:[_\\\\w]+_|)HTML)\\\\b\\\\1)","beginCaptures":{"0":{"name":"string.definition.begin.ruby"}},"contentName":"text.html","patterns":[{"include":"#heredoc"},{"include":"#interpolated_ruby"},{"include":"text.html.basic"},{"include":"#escaped_char"}],"while":"^(?!\\\\s*((?:[_\\\\w]+_|)HTML)\\\\s*$)"}]},{"begin":"(?=(?><<[-~]?([\\"\'`]?)((?:[_\\\\w]+_|)HAML)\\\\b\\\\1))","end":"^\\\\s*((?:[_\\\\w]+_|)HAML)$\\\\n?","endCaptures":{"0":{"name":"string.definition.end.ruby"}},"name":"meta.embedded.block.haml","patterns":[{"begin":"(?><<[-~]?([\\"\'`]?)((?:[_\\\\w]+_|)HAML)\\\\b\\\\1)","beginCaptures":{"0":{"name":"string.definition.begin.ruby"}},"contentName":"text.haml","patterns":[{"include":"#heredoc"},{"include":"#interpolated_ruby"},{"include":"text.haml"},{"include":"#escaped_char"}],"while":"^(?!\\\\s*((?:[_\\\\w]+_|)HAML)\\\\s*$)"}]},{"begin":"(?=(?><<[-~]?([\\"\'`]?)((?:[_\\\\w]+_|)XML)\\\\b\\\\1))","end":"^\\\\s*((?:[_\\\\w]+_|)XML)$\\\\n?","endCaptures":{"0":{"name":"string.definition.end.ruby"}},"name":"meta.embedded.block.xml","patterns":[{"begin":"(?><<[-~]?([\\"\'`]?)((?:[_\\\\w]+_|)XML)\\\\b\\\\1)","beginCaptures":{"0":{"name":"string.definition.begin.ruby"}},"contentName":"text.xml","patterns":[{"include":"#heredoc"},{"include":"#interpolated_ruby"},{"include":"text.xml"},{"include":"#escaped_char"}],"while":"^(?!\\\\s*((?:[_\\\\w]+_|)XML)\\\\s*$)"}]},{"begin":"(?=(?><<[-~]?([\\"\'`]?)((?:[_\\\\w]+_|)SQL)\\\\b\\\\1))","end":"^\\\\s*((?:[_\\\\w]+_|)SQL)$\\\\n?","endCaptures":{"0":{"name":"string.definition.end.ruby"}},"name":"meta.embedded.block.sql","patterns":[{"begin":"(?><<[-~]?([\\"\'`]?)((?:[_\\\\w]+_|)SQL)\\\\b\\\\1)","beginCaptures":{"0":{"name":"string.definition.begin.ruby"}},"contentName":"source.sql","patterns":[{"include":"#heredoc"},{"include":"#interpolated_ruby"},{"include":"source.sql"},{"include":"#escaped_char"}],"while":"^(?!\\\\s*((?:[_\\\\w]+_|)SQL)\\\\s*$)"}]},{"begin":"(?=(?><<[-~]?([\\"\'`]?)((?:[_\\\\w]+_|)G(?:RAPHQL|QL))\\\\b\\\\1))","end":"^\\\\s*((?:[_\\\\w]+_|)G(?:RAPHQL|QL))$\\\\n?","endCaptures":{"0":{"name":"string.definition.end.ruby"}},"name":"meta.embedded.block.graphql","patterns":[{"begin":"(?><<[-~]?([\\"\'`]?)((?:[_\\\\w]+_|)G(?:RAPHQL|QL))\\\\b\\\\1)","beginCaptures":{"0":{"name":"string.definition.begin.ruby"}},"contentName":"source.graphql","patterns":[{"include":"#heredoc"},{"include":"#interpolated_ruby"},{"include":"source.graphql"},{"include":"#escaped_char"}],"while":"^(?!\\\\s*((?:[_\\\\w]+_|)G(?:RAPHQL|QL))\\\\s*$)"}]},{"begin":"(?=(?><<[-~]?([\\"\'`]?)((?:[_\\\\w]+_|)CSS)\\\\b\\\\1))","end":"^\\\\s*((?:[_\\\\w]+_|)CSS)$\\\\n?","endCaptures":{"0":{"name":"string.definition.end.ruby"}},"name":"meta.embedded.block.css","patterns":[{"begin":"(?><<[-~]?([\\"\'`]?)((?:[_\\\\w]+_|)CSS)\\\\b\\\\1)","beginCaptures":{"0":{"name":"string.definition.begin.ruby"}},"contentName":"source.css","patterns":[{"include":"#heredoc"},{"include":"#interpolated_ruby"},{"include":"source.css"},{"include":"#escaped_char"}],"while":"^(?!\\\\s*((?:[_\\\\w]+_|)CSS)\\\\s*$)"}]},{"begin":"(?=(?><<[-~]?([\\"\'`]?)((?:[_\\\\w]+_|)CPP)\\\\b\\\\1))","end":"^\\\\s*((?:[_\\\\w]+_|)CPP)$\\\\n?","endCaptures":{"0":{"name":"string.definition.end.ruby"}},"name":"meta.embedded.block.cpp","patterns":[{"begin":"(?><<[-~]?([\\"\'`]?)((?:[_\\\\w]+_|)CPP)\\\\b\\\\1)","beginCaptures":{"0":{"name":"string.definition.begin.ruby"}},"contentName":"source.cpp","patterns":[{"include":"#heredoc"},{"include":"#interpolated_ruby"},{"include":"source.cpp"},{"include":"#escaped_char"}],"while":"^(?!\\\\s*((?:[_\\\\w]+_|)CPP)\\\\s*$)"}]},{"begin":"(?=(?><<[-~]?([\\"\'`]?)((?:[_\\\\w]+_|)C)\\\\b\\\\1))","end":"^\\\\s*((?:[_\\\\w]+_|)C)$\\\\n?","endCaptures":{"0":{"name":"string.definition.end.ruby"}},"name":"meta.embedded.block.c","patterns":[{"begin":"(?><<[-~]?([\\"\'`]?)((?:[_\\\\w]+_|)C)\\\\b\\\\1)","beginCaptures":{"0":{"name":"string.definition.begin.ruby"}},"contentName":"source.c","patterns":[{"include":"#heredoc"},{"include":"#interpolated_ruby"},{"include":"source.c"},{"include":"#escaped_char"}],"while":"^(?!\\\\s*((?:[_\\\\w]+_|)C)\\\\s*$)"}]},{"begin":"(?=(?><<[-~]?([\\"\'`]?)((?:[_\\\\w]+_|)J(?:S|AVASCRIPT))\\\\b\\\\1))","end":"^\\\\s*((?:[_\\\\w]+_|)J(?:S|AVASCRIPT))$\\\\n?","endCaptures":{"0":{"name":"string.definition.end.ruby"}},"name":"meta.embedded.block.js","patterns":[{"begin":"(?><<[-~]?([\\"\'`]?)((?:[_\\\\w]+_|)J(?:S|AVASCRIPT))\\\\b\\\\1)","beginCaptures":{"0":{"name":"string.definition.begin.ruby"}},"contentName":"source.js","patterns":[{"include":"#heredoc"},{"include":"#interpolated_ruby"},{"include":"source.js"},{"include":"#escaped_char"}],"while":"^(?!\\\\s*((?:[_\\\\w]+_|)J(?:S|AVASCRIPT))\\\\s*$)"}]},{"begin":"(?=(?><<[-~]?([\\"\'`]?)((?:[_\\\\w]+_|)JQUERY)\\\\b\\\\1))","end":"^\\\\s*((?:[_\\\\w]+_|)JQUERY)$\\\\n?","endCaptures":{"0":{"name":"string.definition.end.ruby"}},"name":"meta.embedded.block.js.jquery","patterns":[{"begin":"(?><<[-~]?([\\"\'`]?)((?:[_\\\\w]+_|)JQUERY)\\\\b\\\\1)","beginCaptures":{"0":{"name":"string.definition.begin.ruby"}},"contentName":"source.js.jquery","patterns":[{"include":"#heredoc"},{"include":"#interpolated_ruby"},{"include":"source.js.jquery"},{"include":"#escaped_char"}],"while":"^(?!\\\\s*((?:[_\\\\w]+_|)JQUERY)\\\\s*$)"}]},{"begin":"(?=(?><<[-~]?([\\"\'`]?)((?:[_\\\\w]+_|)SH(?:|ELL))\\\\b\\\\1))","end":"^\\\\s*((?:[_\\\\w]+_|)SH(?:|ELL))$\\\\n?","endCaptures":{"0":{"name":"string.definition.end.ruby"}},"name":"meta.embedded.block.shell","patterns":[{"begin":"(?><<[-~]?([\\"\'`]?)((?:[_\\\\w]+_|)SH(?:|ELL))\\\\b\\\\1)","beginCaptures":{"0":{"name":"string.definition.begin.ruby"}},"contentName":"source.shell","patterns":[{"include":"#heredoc"},{"include":"#interpolated_ruby"},{"include":"source.shell"},{"include":"#escaped_char"}],"while":"^(?!\\\\s*((?:[_\\\\w]+_|)SH(?:|ELL))\\\\s*$)"}]},{"begin":"(?=(?><<[-~]?([\\"\'`]?)((?:[_\\\\w]+_|)LUA)\\\\b\\\\1))","end":"^\\\\s*((?:[_\\\\w]+_|)LUA)$\\\\n?","endCaptures":{"0":{"name":"string.definition.end.ruby"}},"name":"meta.embedded.block.lua","patterns":[{"begin":"(?><<[-~]?([\\"\'`]?)((?:[_\\\\w]+_|)LUA)\\\\b\\\\1)","beginCaptures":{"0":{"name":"string.definition.begin.ruby"}},"contentName":"source.lua","patterns":[{"include":"#heredoc"},{"include":"#interpolated_ruby"},{"include":"source.lua"},{"include":"#escaped_char"}],"while":"^(?!\\\\s*((?:[_\\\\w]+_|)LUA)\\\\s*$)"}]},{"begin":"(?=(?><<[-~]?([\\"\'`]?)((?:[_\\\\w]+_|)RUBY)\\\\b\\\\1))","end":"^\\\\s*((?:[_\\\\w]+_|)RUBY)$\\\\n?","endCaptures":{"0":{"name":"string.definition.end.ruby"}},"name":"meta.embedded.block.ruby","patterns":[{"begin":"(?><<[-~]?([\\"\'`]?)((?:[_\\\\w]+_|)RUBY)\\\\b\\\\1)","beginCaptures":{"0":{"name":"string.definition.begin.ruby"}},"contentName":"source.ruby","patterns":[{"include":"#heredoc"},{"include":"#interpolated_ruby"},{"include":"source.ruby"},{"include":"#escaped_char"}],"while":"^(?!\\\\s*((?:[_\\\\w]+_|)RUBY)\\\\s*$)"}]},{"begin":"(?=(?><<[-~]?([\\"\'`]?)((?:[_\\\\w]+_|)YA?ML)\\\\b\\\\1))","end":"^\\\\s*((?:[_\\\\w]+_|)YA?ML)$\\\\n?","endCaptures":{"0":{"name":"string.definition.end.ruby"}},"name":"meta.embedded.block.yaml","patterns":[{"begin":"(?><<[-~]?([\\"\'`]?)((?:[_\\\\w]+_|)YA?ML)\\\\b\\\\1)","beginCaptures":{"0":{"name":"string.definition.begin.ruby"}},"contentName":"source.yaml","patterns":[{"include":"#heredoc"},{"include":"#interpolated_ruby"},{"include":"source.yaml"},{"include":"#escaped_char"}],"while":"^(?!\\\\s*((?:[_\\\\w]+_|)YA?ML)\\\\s*$)"}]},{"begin":"(?=(?><<[-~]?([\\"\'`]?)((?:[_\\\\w]+_|)SLIM)\\\\b\\\\1))","end":"^\\\\s*((?:[_\\\\w]+_|)SLIM)$\\\\n?","endCaptures":{"0":{"name":"string.definition.end.ruby"}},"name":"meta.embedded.block.slim","patterns":[{"begin":"(?><<[-~]?([\\"\'`]?)((?:[_\\\\w]+_|)SLIM)\\\\b\\\\1)","beginCaptures":{"0":{"name":"string.definition.begin.ruby"}},"contentName":"text.slim","patterns":[{"include":"#heredoc"},{"include":"#interpolated_ruby"},{"include":"text.slim"},{"include":"#escaped_char"}],"while":"^(?!\\\\s*((?:[_\\\\w]+_|)SLIM)\\\\s*$)"}]},{"begin":"(?>=\\\\s*<<([\\"\'`]?)(\\\\w+)\\\\1)","beginCaptures":{"0":{"name":"string.definition.begin.ruby"}},"contentName":"string.unquoted.heredoc.ruby","end":"^\\\\2$","endCaptures":{"0":{"name":"string.definition.end.ruby"}},"patterns":[{"include":"#heredoc"},{"include":"#interpolated_ruby"},{"include":"#escaped_char"}]},{"begin":"(?>((<<[-~]?([\\"\'`]?)(\\\\w+)\\\\3,\\\\s?)*<<[-~]?([\\"\'`]?)(\\\\w+)\\\\5))(.*)","beginCaptures":{"1":{"name":"string.definition.begin.ruby"},"7":{"patterns":[{"include":"source.ruby"}]}},"contentName":"string.unquoted.heredoc.ruby","end":"^\\\\s*\\\\6$","endCaptures":{"0":{"name":"string.definition.end.ruby"}},"patterns":[{"include":"#heredoc"},{"include":"#interpolated_ruby"},{"include":"#escaped_char"}]},{"begin":"(?<=\\\\{|\\\\{\\\\s+|[^$0-:@-Z_a-z]do|^do|[^$0-:@-Z_a-z]do\\\\s+|^do\\\\s+)(\\\\|)","captures":{"1":{"name":"punctuation.separator.variable.ruby"}},"end":"(?<!\\\\|)(\\\\|)(?!\\\\|)","name":"meta.block.parameters.ruby","patterns":[{"begin":"(?![(,|\\\\s])","end":"(?=,|\\\\|\\\\s*)","patterns":[{"captures":{"1":{"name":"storage.type.variable.ruby"},"2":{"name":"variable.other.block.ruby"}},"match":"\\\\G((?:&|\\\\*\\\\*?)?)([A-Z_a-z][_\\\\w]*)"}]},{"match":",","name":"punctuation.separator.variable.ruby"}]},{"match":"=>","name":"punctuation.separator.key-value"},{"match":"->","name":"support.function.kernel.ruby"},{"match":"<<=|%=|&{1,2}=|\\\\*=|\\\\*\\\\*=|\\\\+=|-=|\\\\^=|\\\\|{1,2}=|<<","name":"keyword.operator.assignment.augmented.ruby"},{"match":"<=>|<(?![<=])|>(?![<=>])|<=|>=|===?|=~|!=|!~|(?<=[\\\\t ])\\\\?","name":"keyword.operator.comparison.ruby"},{"match":"(?<!\\\\.)\\\\b(and|not|or)\\\\b(?![!?])","name":"keyword.operator.logical.ruby"},{"match":"(?<=^|[\\\\t !])!|&&|\\\\|\\\\||\\\\^","name":"keyword.operator.logical.ruby"},{"captures":{"1":{"name":"keyword.operator.logical.ruby"}},"match":"(&\\\\.)\\\\s*(?![A-Z])"},{"match":"([%\\\\&]|\\\\*\\\\*|[-*+/])","name":"keyword.operator.arithmetic.ruby"},{"match":"=","name":"keyword.operator.assignment.ruby"},{"match":"[|~]|>>","name":"keyword.operator.other.ruby"},{"match":";","name":"punctuation.separator.statement.ruby"},{"match":",","name":"punctuation.separator.object.ruby"},{"captures":{"1":{"name":"punctuation.separator.namespace.ruby"}},"match":"(::)\\\\s*(?=[A-Z])"},{"captures":{"1":{"name":"punctuation.separator.method.ruby"}},"match":"(\\\\.|::)\\\\s*(?![A-Z])"},{"match":":","name":"punctuation.separator.other.ruby"},{"match":"\\\\{","name":"punctuation.section.scope.begin.ruby"},{"match":"}","name":"punctuation.section.scope.end.ruby"},{"match":"\\\\[","name":"punctuation.section.array.begin.ruby"},{"match":"]","name":"punctuation.section.array.end.ruby"},{"match":"[()]","name":"punctuation.section.function.ruby"},{"begin":"(?<=[^.]\\\\.|::)(?=[A-Za-z][!0-9?A-Z_a-z]*[^!0-9?A-Z_a-z])","end":"(?<=[!0-9?A-Z_a-z])(?=[^!0-9?A-Z_a-z])","name":"meta.function-call.ruby","patterns":[{"match":"([A-Za-z][!0-9?A-Z_a-z]*)(?=[^!0-9?A-Z_a-z])","name":"entity.name.function.ruby"}]},{"begin":"([A-Za-z]\\\\w*[!?]?)(\\\\()","beginCaptures":{"1":{"name":"entity.name.function.ruby"},"2":{"name":"punctuation.section.function.ruby"}},"end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.section.function.ruby"}},"name":"meta.function-call.ruby","patterns":[{"include":"$self"}]}],"repository":{"escaped_char":{"match":"\\\\\\\\(?:[0-7]{1,3}|x[A-Fa-f\\\\d]{1,2}|.)","name":"constant.character.escape.ruby"},"heredoc":{"begin":"^<<[-~]?\\\\w+","end":"$","patterns":[{"include":"$self"}]},"interpolated_ruby":{"patterns":[{"begin":"#\\\\{","beginCaptures":{"0":{"name":"punctuation.section.embedded.begin.ruby"}},"contentName":"source.ruby","end":"}","endCaptures":{"0":{"name":"punctuation.section.embedded.end.ruby"}},"name":"meta.embedded.line.ruby","patterns":[{"include":"#nest_curly_and_self"},{"include":"$self"}]},{"captures":{"1":{"name":"punctuation.definition.variable.ruby"}},"match":"(#@)[A-Z_a-z]\\\\w*","name":"variable.other.readwrite.instance.ruby"},{"captures":{"1":{"name":"punctuation.definition.variable.ruby"}},"match":"(#@@)[A-Z_a-z]\\\\w*","name":"variable.other.readwrite.class.ruby"},{"captures":{"1":{"name":"punctuation.definition.variable.ruby"}},"match":"(#\\\\$)[A-Z_a-z]\\\\w*","name":"variable.other.readwrite.global.ruby"}]},"method_parameters":{"patterns":[{"include":"#parens"},{"include":"#braces"},{"include":"#brackets"},{"include":"#params"},{"include":"$self"}],"repository":{"braces":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.section.scope.begin.ruby"}},"end":"}","endCaptures":{"0":{"name":"punctuation.section.scope.end.ruby"}},"patterns":[{"include":"#parens"},{"include":"#braces"},{"include":"#brackets"},{"include":"$self"}]},"brackets":{"begin":"\\\\[","beginCaptures":{"0":{"name":"punctuation.section.array.begin.ruby"}},"end":"]","endCaptures":{"0":{"name":"punctuation.section.array.end.ruby"}},"patterns":[{"include":"#parens"},{"include":"#braces"},{"include":"#brackets"},{"include":"$self"}]},"params":{"captures":{"1":{"name":"storage.type.variable.ruby"},"2":{"name":"constant.other.symbol.hashkey.parameter.function.ruby"},"3":{"name":"punctuation.definition.constant.ruby"},"4":{"name":"variable.parameter.function.ruby"}},"match":"\\\\G(&|\\\\*\\\\*?)?(?:([A-Z_a-z]\\\\w*[!?]?(:))|([A-Z_a-z]\\\\w*))"},"parens":{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.section.function.begin.ruby"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.function.end.ruby"}},"patterns":[{"include":"#parens"},{"include":"#braces"},{"include":"#brackets"},{"include":"$self"}]}}},"nest_brackets":{"begin":"\\\\[","captures":{"0":{"name":"punctuation.section.scope.ruby"}},"end":"]","patterns":[{"include":"#nest_brackets"}]},"nest_brackets_i":{"begin":"\\\\[","captures":{"0":{"name":"punctuation.section.scope.ruby"}},"end":"]","patterns":[{"include":"#interpolated_ruby"},{"include":"#escaped_char"},{"include":"#nest_brackets_i"}]},"nest_brackets_r":{"begin":"\\\\[","captures":{"0":{"name":"punctuation.section.scope.ruby"}},"end":"]","patterns":[{"include":"#regex_sub"},{"include":"#nest_brackets_r"}]},"nest_curly":{"begin":"\\\\{","captures":{"0":{"name":"punctuation.section.scope.ruby"}},"end":"}","patterns":[{"include":"#nest_curly"}]},"nest_curly_and_self":{"patterns":[{"begin":"\\\\{","captures":{"0":{"name":"punctuation.section.scope.ruby"}},"end":"}","patterns":[{"include":"#nest_curly_and_self"}]},{"include":"$self"}]},"nest_curly_i":{"begin":"\\\\{","captures":{"0":{"name":"punctuation.section.scope.ruby"}},"end":"}","patterns":[{"include":"#interpolated_ruby"},{"include":"#escaped_char"},{"include":"#nest_curly_i"}]},"nest_curly_r":{"begin":"\\\\{","captures":{"0":{"name":"punctuation.section.scope.ruby"}},"end":"}","patterns":[{"include":"#regex_sub"},{"include":"#nest_curly_r"}]},"nest_ltgt":{"begin":"<","captures":{"0":{"name":"punctuation.section.scope.ruby"}},"end":">","patterns":[{"include":"#nest_ltgt"}]},"nest_ltgt_i":{"begin":"<","captures":{"0":{"name":"punctuation.section.scope.ruby"}},"end":">","patterns":[{"include":"#interpolated_ruby"},{"include":"#escaped_char"},{"include":"#nest_ltgt_i"}]},"nest_ltgt_r":{"begin":"<","captures":{"0":{"name":"punctuation.section.scope.ruby"}},"end":">","patterns":[{"include":"#regex_sub"},{"include":"#nest_ltgt_r"}]},"nest_parens":{"begin":"\\\\(","captures":{"0":{"name":"punctuation.section.scope.ruby"}},"end":"\\\\)","patterns":[{"include":"#nest_parens"}]},"nest_parens_i":{"begin":"\\\\(","captures":{"0":{"name":"punctuation.section.scope.ruby"}},"end":"\\\\)","patterns":[{"include":"#interpolated_ruby"},{"include":"#escaped_char"},{"include":"#nest_parens_i"}]},"nest_parens_r":{"begin":"\\\\(","captures":{"0":{"name":"punctuation.section.scope.ruby"}},"end":"\\\\)","patterns":[{"include":"#regex_sub"},{"include":"#nest_parens_r"}]},"regex_sub":{"patterns":[{"include":"#interpolated_ruby"},{"include":"#escaped_char"},{"captures":{"1":{"name":"punctuation.definition.arbitrary-repetition.ruby"},"3":{"name":"punctuation.definition.arbitrary-repetition.ruby"}},"match":"(\\\\{)\\\\d+(,\\\\d+)?(})","name":"string.regexp.arbitrary-repetition.ruby"},{"begin":"\\\\[(?:\\\\^?])?","captures":{"0":{"name":"punctuation.definition.character-class.ruby"}},"end":"]","name":"string.regexp.character-class.ruby","patterns":[{"include":"#escaped_char"}]},{"begin":"\\\\(\\\\?#","beginCaptures":{"0":{"name":"punctuation.definition.comment.begin.ruby"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.comment.end.ruby"}},"name":"comment.line.number-sign.ruby","patterns":[{"include":"#escaped_char"}]},{"begin":"\\\\(","captures":{"0":{"name":"punctuation.definition.group.ruby"}},"end":"\\\\)","name":"string.regexp.group.ruby","patterns":[{"include":"#regex_sub"}]},{"begin":"(?<=^|\\\\s)(#)\\\\s(?=[-\\\\t !,.0-9?A-Za-z[^\\\\x00-\\\\x7F]]*$)","beginCaptures":{"1":{"name":"punctuation.definition.comment.ruby"}},"end":"$\\\\n?","endCaptures":{"0":{"name":"punctuation.definition.comment.ruby"}},"name":"comment.line.number-sign.ruby"}]},"yard":{"patterns":[{"include":"#yard_comment"},{"include":"#yard_param_types"},{"include":"#yard_option"},{"include":"#yard_tag"},{"include":"#yard_types"},{"include":"#yard_directive"},{"include":"#yard_see"},{"include":"#yard_macro_attribute"}]},"yard_comment":{"begin":"^(\\\\s*)(#)(\\\\s*)(@)(abstract|api|author|deprecated|example|macro|note|overload|since|todo|version)(?=\\\\s|$)","beginCaptures":{"2":{"name":"punctuation.definition.comment.ruby"},"4":{"name":"comment.line.keyword.punctuation.yard.ruby"},"5":{"name":"comment.line.keyword.yard.ruby"}},"contentName":"comment.line.string.yard.ruby","end":"^(?!\\\\s*#\\\\3\\\\s{2,}|\\\\s*#\\\\s*$)","name":"comment.line.number-sign.ruby","patterns":[{"include":"#yard"},{"include":"#yard_continuation"}]},"yard_continuation":{"match":"^\\\\s*#","name":"punctuation.definition.comment.ruby"},"yard_directive":{"begin":"^(\\\\s*)(#)(\\\\s*)(@!)(endgroup|group|method|parse|scope|visibility)(\\\\s+((\\\\[).+(])))?(?=\\\\s)","beginCaptures":{"2":{"name":"punctuation.definition.comment.ruby"},"4":{"name":"comment.line.keyword.punctuation.yard.ruby"},"5":{"name":"comment.line.keyword.yard.ruby"},"7":{"name":"comment.line.type.yard.ruby"},"8":{"name":"comment.line.punctuation.yard.ruby"},"9":{"name":"comment.line.punctuation.yard.ruby"}},"contentName":"comment.line.string.yard.ruby","end":"^(?!\\\\s*#\\\\3\\\\s{2,}|\\\\s*#\\\\s*$)","name":"comment.line.number-sign.ruby","patterns":[{"include":"#yard"},{"include":"#yard_continuation"}]},"yard_macro_attribute":{"begin":"^(\\\\s*)(#)(\\\\s*)(@!)(attribute|macro)(\\\\s+((\\\\[).+(])))?(?=\\\\s)(\\\\s+([_a-z]\\\\w*:?))?","beginCaptures":{"2":{"name":"punctuation.definition.comment.ruby"},"4":{"name":"comment.line.keyword.punctuation.yard.ruby"},"5":{"name":"comment.line.keyword.yard.ruby"},"7":{"name":"comment.line.type.yard.ruby"},"8":{"name":"comment.line.punctuation.yard.ruby"},"9":{"name":"comment.line.punctuation.yard.ruby"},"11":{"name":"comment.line.parameter.yard.ruby"}},"contentName":"comment.line.string.yard.ruby","end":"^(?!\\\\s*#\\\\3\\\\s{2,}|\\\\s*#\\\\s*$)","name":"comment.line.number-sign.ruby","patterns":[{"include":"#yard"},{"include":"#yard_continuation"}]},"yard_option":{"begin":"^(\\\\s*)(#)(\\\\s*)(@)(option)(?=\\\\s)(?>\\\\s+([_a-z]\\\\w*:?))?(?>\\\\s+((\\\\[).+(])))?(?>\\\\s+((\\\\S*)))?(?>\\\\s+((\\\\().+(\\\\))))?","beginCaptures":{"2":{"name":"punctuation.definition.comment.ruby"},"4":{"name":"comment.line.keyword.punctuation.yard.ruby"},"5":{"name":"comment.line.keyword.yard.ruby"},"6":{"name":"comment.line.parameter.yard.ruby"},"7":{"name":"comment.line.type.yard.ruby"},"8":{"name":"comment.line.punctuation.yard.ruby"},"9":{"name":"comment.line.punctuation.yard.ruby"},"10":{"name":"comment.line.keyword.yard.ruby"},"11":{"name":"comment.line.hashkey.yard.ruby"},"12":{"name":"comment.line.defaultvalue.yard.ruby"},"13":{"name":"comment.line.punctuation.yard.ruby"},"14":{"name":"comment.line.punctuation.yard.ruby"}},"contentName":"comment.line.string.yard.ruby","end":"^(?!\\\\s*#\\\\3\\\\s{2,}|\\\\s*#\\\\s*$)","name":"comment.line.number-sign.ruby","patterns":[{"include":"#yard"},{"include":"#yard_continuation"}]},"yard_param_types":{"begin":"^(\\\\s*)(#)(\\\\s*)(@)(attr|attr_reader|attr_writer|yieldparam|param)(?=\\\\s)(?>\\\\s+(?>([_a-z]\\\\w*:?)|((\\\\[).+(]))))?(?>\\\\s+(?>((\\\\[).+(]))|([_a-z]\\\\w*:?)))?","beginCaptures":{"2":{"name":"punctuation.definition.comment.ruby"},"4":{"name":"comment.line.keyword.punctuation.yard.ruby"},"5":{"name":"comment.line.keyword.yard.ruby"},"6":{"name":"comment.line.parameter.yard.ruby"},"7":{"name":"comment.line.type.yard.ruby"},"8":{"name":"comment.line.punctuation.yard.ruby"},"9":{"name":"comment.line.punctuation.yard.ruby"},"10":{"name":"comment.line.type.yard.ruby"},"11":{"name":"comment.line.punctuation.yard.ruby"},"12":{"name":"comment.line.punctuation.yard.ruby"},"13":{"name":"comment.line.parameter.yard.ruby"}},"contentName":"comment.line.string.yard.ruby","end":"^(?!\\\\s*#\\\\3\\\\s{2,}|\\\\s*#\\\\s*$)","name":"comment.line.number-sign.ruby","patterns":[{"include":"#yard"},{"include":"#yard_continuation"}]},"yard_see":{"begin":"^(\\\\s*)(#)(\\\\s*)(@)(see)(?=\\\\s)(\\\\s+(.+?))?(?=\\\\s|$)","beginCaptures":{"2":{"name":"punctuation.definition.comment.ruby"},"4":{"name":"comment.line.keyword.punctuation.yard.ruby"},"5":{"name":"comment.line.keyword.yard.ruby"},"7":{"name":"comment.line.parameter.yard.ruby"}},"contentName":"comment.line.string.yard.ruby","end":"^(?!\\\\s*#\\\\3\\\\s{2,}|\\\\s*#\\\\s*$)","name":"comment.line.number-sign.ruby","patterns":[{"include":"#yard"},{"include":"#yard_continuation"}]},"yard_tag":{"captures":{"2":{"name":"punctuation.definition.comment.ruby"},"4":{"name":"comment.line.keyword.punctuation.yard.ruby"},"5":{"name":"comment.line.keyword.yard.ruby"}},"match":"^(\\\\s*)(#)(\\\\s*)(@)(private)$","name":"comment.line.number-sign.ruby"},"yard_types":{"begin":"^(\\\\s*)(#)(\\\\s*)(@)(raise|return|yield(?:return)?)(?=\\\\s)(\\\\s+((\\\\[).+(])))?","beginCaptures":{"2":{"name":"punctuation.definition.comment.ruby"},"4":{"name":"comment.line.keyword.punctuation.yard.ruby"},"5":{"name":"comment.line.keyword.yard.ruby"},"7":{"name":"comment.line.type.yard.ruby"},"8":{"name":"comment.line.punctuation.yard.ruby"},"9":{"name":"comment.line.punctuation.yard.ruby"}},"contentName":"comment.line.string.yard.ruby","end":"^(?!\\\\s*#\\\\3\\\\s{2,}|\\\\s*#\\\\s*$)","name":"comment.line.number-sign.ruby","patterns":[{"include":"#yard"},{"include":"#yard_continuation"}]}},"scopeName":"source.ruby","embeddedLangs":["html","haml","xml","sql","graphql","css","cpp","c","javascript","shellscript","lua","yaml"],"aliases":["rb"]}')),h=[...Nn,...e,...Zo,...Aa,...Hf,...yt,...Zl,...Jo,...$e,...Tp,...Wf,...Vf,t];export{h as default};
1
+ import{$e}from"./index-xf36nmbm.js";import{bt}from"./index-jaqjvk22.js";import{Rn}from"./index-e6rm5xzj.js";import"./index-c3v62nvt.js";import{ti}from"./index-83pwa9c0.js";import{Aa}from"./index-e6any867.js";import"./index-gtkhz0hj.js";import"./index-jbkkwa2q.js";import"./index-barbpakv.js";import{Zf}from"./index-92n96mgd.js";import{ei}from"./index-dmv2zasz.js";import{ec}from"./index-hfsvwfgw.js";import{Xf}from"./index-22whvfdw.js";import{tg}from"./index-4y4hshcx.js";import{Np}from"./index-pysqpc5n.js";var n=Object.freeze(JSON.parse('{"displayName":"Ruby Haml","fileTypes":["haml","html.haml"],"foldingStartMarker":"^\\\\s*([-#%.:=\\\\w].*)\\\\s$","foldingStopMarker":"^\\\\s*$","name":"haml","patterns":[{"begin":"^(\\\\s*)==","contentName":"string.quoted.double.ruby","end":"$\\\\n*","patterns":[{"include":"#interpolated_ruby"}]},{"begin":"^(\\\\s*):ruby","end":"^(?!\\\\1\\\\s+|$\\\\n*)","name":"source.ruby.embedded.filter.haml","patterns":[{"include":"source.ruby"}]},{"captures":{"1":{"name":"punctuation.definition.prolog.haml"}},"match":"^(!!!)($|\\\\s.*)","name":"meta.prolog.haml"},{"begin":"^(\\\\s*):javascript","end":"^(?!\\\\1\\\\s+|$\\\\n*)","name":"js.haml","patterns":[{"include":"source.js"}]},{"begin":"^(\\\\s*)%script","end":"^(?!\\\\1\\\\s+|$\\\\n*)","name":"js.inline.haml","patterns":[{"include":"source.js"}]},{"begin":"^(\\\\s*):ruby$","end":"^(?!\\\\1\\\\s+|$\\\\n*)","name":"source.ruby.embedded.filter.haml","patterns":[{"include":"source.ruby"}]},{"captures":{"1":{"name":"punctuation.section.comment.haml"}},"match":"^(\\\\s*)(/\\\\[[^]].*?$\\\\n?)","name":"comment.line.slash.haml"},{"begin":"^(\\\\s*)(-#|/|-\\\\s*/\\\\*+)","beginCaptures":{"2":{"name":"punctuation.section.comment.haml"}},"end":"^(?!\\\\1\\\\s+|\\\\n)","name":"comment.block.haml","patterns":[{"include":"text.haml"}]},{"begin":"^\\\\s*(?:((%)([-:\\\\w]+))|(?=[#.]))","captures":{"1":{"name":"meta.tag.haml"},"2":{"name":"punctuation.definition.tag.haml"},"3":{"name":"entity.name.tag.haml"}},"end":"$|(?![#(.\\\\[{]|&amp;|[-=~]|!=|&=|/)","patterns":[{"begin":"==","contentName":"string.quoted.double.ruby","end":"$\\\\n?","patterns":[{"include":"#interpolated_ruby"}]},{"captures":{"1":{"name":"entity.other.attribute-name.class"}},"match":"(\\\\.[-:\\\\w]+)","name":"meta.selector.css"},{"captures":{"1":{"name":"entity.other.attribute-name.id"}},"match":"(#[-\\\\w]+)","name":"meta.selector.css"},{"begin":"(?<!#)\\\\{(?=.*(,|(do)|[{|}]|(#.*)|\\\\R)\\\\s*)","end":"\\\\s*}(?!\\\\s*,)(?!\\\\s*\\\\|)(?!#\\\\{.*})","name":"meta.section.attributes.haml","patterns":[{"include":"source.ruby"},{"include":"#continuation"},{"include":"#rubyline"}]},{"begin":"\\\\(","end":"\\\\)","name":"meta.section.attributes.plain.haml","patterns":[{"match":"([-\\\\w]+)","name":"constant.other.symbol.ruby"},{"match":"=","name":"punctuation"},{"include":"#variables"},{"begin":"\\"","end":"\\"","name":"string.quoted.double.ruby","patterns":[{"match":"\\\\\\\\(x\\\\h{2}|[012][0-7]{0,2}|3[0-6][0-7]?|37[0-7]?|[4-7][0-7]?|.)","name":"constant.character.escape.ruby"},{"include":"#interpolated_ruby"}]},{"include":"#interpolated_ruby"}]},{"begin":"\\\\[(?=.+([],\\\\[|]|(#.*))\\\\s*)","end":"\\\\s*](?!.*(?!#\\\\[)])","name":"meta.section.object.haml","patterns":[{"include":"source.ruby"},{"include":"#continuation"},{"include":"#rubyline"}]},{"include":"#interpolated_ruby_line"},{"include":"#rubyline"},{"match":"/","name":"punctuation.terminator.tag.haml"}]},{"begin":"^(\\\\s*):(ruby|opal)$","end":"^(?!\\\\1\\\\s+|$\\\\n*)","name":"source.ruby.embedded.filter.haml","patterns":[{"include":"source.ruby"}]},{"begin":"^(\\\\s*):ruby$","end":"^(?!\\\\1\\\\s+|$\\\\n*)","name":"source.ruby.embedded.filter.haml","patterns":[{"include":"source.ruby"}]},{"begin":"^(\\\\s*):(s(?:tyle|ass))$","end":"^(?=\\\\1\\\\s+|$\\\\n*)","name":"source.sass.embedded.filter.haml","patterns":[{"include":"source.sass"}]},{"begin":"^(\\\\s*):coffee(script)?","end":"^(?!\\\\1\\\\s+|$\\\\n*)","name":"source.coffee.embedded.filter.haml","patterns":[{"include":"source.coffee"}]},{"begin":"^(\\\\s*):plain$","end":"^(?=\\\\1\\\\s+|$\\\\n*)","name":"text.plain.embedded.filter.haml","patterns":[{"include":"text.plain"}]},{"begin":"^(\\\\s*)(:ruby)","beginCaptures":{"2":{"name":"keyword.control.filter.haml"}},"end":"(?m:(?<=\\\\n)(?!\\\\1\\\\s+|$\\\\n*))","name":"source.ruby.embedded.filter.haml","patterns":[{"include":"source.ruby"}]},{"begin":"^(\\\\s*)(:sass)","beginCaptures":{"2":{"name":"keyword.control.filter.haml"}},"end":"^(?!\\\\1\\\\s+|$\\\\n*)","name":"source.embedded.filter.sass","patterns":[{"include":"source.sass"}]},{"begin":"^(\\\\s*):(s(?:tyles|ass))$","end":"^(?=\\\\1\\\\s+|$\\\\n*)","name":"source.sass.embedded.filter.haml","patterns":[{"include":"source.sass"}]},{"begin":"^(\\\\s*):plain$","end":"^(?=\\\\1\\\\s+|$\\\\n*)","name":"text.plain.embedded.filter.haml","patterns":[{"include":"text.plain"}]},{"captures":{"1":{"name":"meta.escape.haml"}},"match":"^\\\\s*(\\\\.)"},{"begin":"^\\\\s*(?=[-=~]|!=|&=)","end":"$","patterns":[{"include":"#interpolated_ruby_line"},{"include":"#rubyline"}]},{"begin":"^(\\\\s*)(:php)","captures":{"2":{"name":"entity.name.tag.haml"}},"end":"^(?!\\\\1\\\\s+|$\\\\n*)","name":"meta.embedded.php","patterns":[{"include":"text.html.php#language"}]},{"begin":"^(\\\\s*)(:markdown)","captures":{"2":{"name":"entity.name.tag.haml"}},"end":"^(?!\\\\1\\\\s+|$\\\\n*)","name":"meta.embedded.markdown","patterns":[{"include":"text.html.markdown"}]},{"begin":"^(\\\\s*)(:(css|styles?))$","captures":{"2":{"name":"entity.name.tag.haml"}},"end":"^(?!\\\\1\\\\s+|$\\\\n*)","name":"meta.embedded.css","patterns":[{"include":"source.css"}]},{"begin":"^(\\\\s*)(:sass)$","captures":{"2":{"name":"entity.name.tag.haml"}},"end":"^(?!\\\\1\\\\s+|$\\\\n*)","name":"meta.embedded.sass","patterns":[{"include":"source.sass"}]},{"begin":"^(\\\\s*)(:scss)$","captures":{"2":{"name":"entity.name.tag.haml"}},"end":"^(?!\\\\1\\\\s+|$\\\\n*)","name":"meta.embedded.scss","patterns":[{"include":"source.scss"}]}],"repository":{"continuation":{"captures":{"1":{"name":"punctuation.separator.continuation.haml"}},"match":"(\\\\|)\\\\s*\\\\n"},"interpolated_ruby":{"patterns":[{"captures":{"0":{"name":"punctuation.section.embedded.ruby"},"1":{"name":"source.ruby.embedded.source.empty"}},"match":"#\\\\{(})","name":"source.ruby.embedded.source"},{"begin":"#\\\\{","captures":{"0":{"name":"punctuation.section.embedded.ruby"}},"end":"(})","name":"source.ruby.embedded.source","patterns":[{"include":"#nest_curly_and_self"},{"include":"source.ruby"}]},{"include":"#variables"}]},"interpolated_ruby_line":{"begin":"!?==","contentName":"string.source.ruby.embedded.haml","end":"$","name":"meta.line.ruby.interpolated.haml","patterns":[{"include":"#interpolated_ruby"},{"include":"source.ruby#escaped_char"}]},"nest_curly_and_self":{"patterns":[{"begin":"\\\\{","captures":{"0":{"name":"punctuation.section.scope.ruby"}},"end":"}","patterns":[{"include":"#nest_curly_and_self"},{"include":"source.ruby"}]}]},"rubyline":{"begin":"(&amp|!)?([-=~])","contentName":"source.ruby.embedded.haml","end":"((do|\\\\{)( \\\\|[*.]+\\\\|)?)$|$|^(?!.*\\\\|\\\\s*)$\\\\n?","endCaptures":{"1":{"name":"source.ruby.embedded.html"},"2":{"name":"keyword.control.ruby.start-block"}},"name":"meta.line.ruby.haml","patterns":[{"captures":{"1":{"name":"keyword.control.php"}},"match":"\\\\s+((elseif|foreach|switch|declare|default|use))(?=[(\\\\s])"},{"captures":{"1":{"name":"keyword.control.import.include.php"}},"match":"\\\\s+((?:requir|includ)e_once)(?=[(\\\\s])"},{"match":"\\\\s+(catch|try|throw|exception|finally|die)(?=[(\\\\s]|\\\\n*)","name":"keyword.control.exception.php"},{"captures":{"1":{"name":"storage.type.function.php"}},"match":"\\\\s+(function\\\\s*)((?=\\\\())"},{"captures":{"1":{"name":"keyword.control.php"}},"match":"\\\\s+(use\\\\s*)((?=\\\\())"},{"match":"([,<|]|do|\\\\{)\\\\s*(#.*)?$\\\\n*","name":"source.ruby","patterns":[{"include":"#rubyline"}]},{"match":"#.*$","name":"comment.line.number-sign.ruby"},{"include":"source.ruby"},{"include":"#continuation"}]},"variables":{"patterns":[{"captures":{"1":{"name":"punctuation.definition.variable.ruby"}},"match":"(#@)[A-Z_a-z]\\\\w*","name":"variable.other.readwrite.instance.ruby"},{"captures":{"1":{"name":"punctuation.definition.variable.ruby"}},"match":"(#@@)[A-Z_a-z]\\\\w*","name":"variable.other.readwrite.class.ruby"},{"captures":{"1":{"name":"punctuation.definition.variable.ruby"}},"match":"(#\\\\$)[A-Z_a-z]\\\\w*","name":"variable.other.readwrite.global.ruby"}]}},"scopeName":"text.haml","embeddedLangs":["javascript","css"],"embeddedLangsLazy":["ruby","sass","coffee","markdown"]}')),e=[...$e,...bt,n];var t=Object.freeze(JSON.parse('{"displayName":"Ruby","name":"ruby","patterns":[{"captures":{"1":{"name":"keyword.control.class.ruby"},"2":{"name":"entity.name.type.class.ruby"},"5":{"name":"punctuation.separator.namespace.ruby"},"7":{"name":"punctuation.separator.inheritance.ruby"},"8":{"name":"entity.other.inherited-class.ruby"},"11":{"name":"punctuation.separator.namespace.ruby"}},"match":"\\\\b(class)\\\\s+(([0-9A-Z_a-z]+)((::)[0-9A-Z_a-z]+)*)\\\\s*((<)\\\\s*(([0-9A-Z_a-z]+)((::)[0-9A-Z_a-z]+)*))?","name":"meta.class.ruby"},{"captures":{"1":{"name":"keyword.control.module.ruby"},"2":{"name":"entity.name.type.module.ruby"},"5":{"name":"punctuation.separator.namespace.ruby"}},"match":"\\\\b(module)\\\\s+(([0-9A-Z_a-z]+)((::)[0-9A-Z_a-z]+)*)","name":"meta.module.ruby"},{"captures":{"1":{"name":"keyword.control.class.ruby"},"2":{"name":"punctuation.separator.inheritance.ruby"}},"match":"\\\\b(class)\\\\s*(<<)\\\\s*","name":"meta.class.ruby"},{"match":"(?<!\\\\.)\\\\belse(\\\\s)+if\\\\b","name":"invalid.deprecated.ruby"},{"captures":{"1":{"name":"variable.ruby"},"2":{"name":"keyword.operator.assignment.augmented.ruby"}},"match":"^\\\\s*([_a-z][0-9A-Z_a-z]*)\\\\s*((&&|\\\\|\\\\|)=)"},{"captures":{"1":{"name":"keyword.control.ruby"},"3":{"name":"variable.ruby"},"4":{"name":"keyword.operator.assignment.augmented.ruby"}},"match":"(?<!\\\\.)\\\\b(case|if|elsif|unless|until|while)\\\\b\\\\s*(\\\\()*?\\\\s*([_a-z][0-9A-Z_a-z]*)\\\\s*((&&|\\\\|\\\\|)=)"},{"captures":{"1":{"name":"variable.ruby"},"2":{"name":"keyword.operator.assignment.augmented.ruby"}},"match":"^\\\\s*([_a-z][0-9A-Z_a-z]*)\\\\s*(([-%*+/]|\\\\*\\\\*|[\\\\&^|]|<<|>>)=)"},{"captures":{"1":{"name":"keyword.control.ruby"},"3":{"name":"variable.ruby"},"4":{"name":"keyword.operator.assignment.augmented.ruby"}},"match":"(?<!\\\\.)\\\\b(case|if|elsif|unless|until|while)\\\\b\\\\s*(\\\\()*?\\\\s*([_a-z][0-9A-Z_a-z]*)\\\\s*(([-%*+/]|\\\\*\\\\*|[\\\\&^|]|<<|>>)=)"},{"captures":{"1":{"name":"variable.ruby"}},"match":"^\\\\s*([_a-z][0-9A-Z_a-z]*)\\\\s*(?==[^=>])"},{"captures":{"1":{"name":"keyword.control.ruby"},"3":{"name":"variable.ruby"}},"match":"(?<!\\\\.)\\\\b(case|if|elsif|unless|until|while)\\\\b\\\\s*(\\\\()*?\\\\s*([_a-z][0-9A-Z_a-z]*)\\\\s*=[^=>]"},{"captures":{"1":{"name":"punctuation.definition.constant.hashkey.ruby"}},"match":"(?>[A-Z_a-z]\\\\w*[!?]?)(:)(?!:)","name":"constant.language.symbol.hashkey.ruby"},{"captures":{"1":{"name":"punctuation.definition.constant.ruby"}},"match":"(?<!:)(:)(?>[A-Z_a-z]\\\\w*[!?]?)(?=\\\\s*=>)","name":"constant.language.symbol.hashkey.ruby"},{"match":"(?<!\\\\.)\\\\b(BEGIN|begin|case|class|else|elsif|END|end|ensure|for|if|in|module|rescue|then|unless|until|when|while)\\\\b(?![!?])","name":"keyword.control.ruby"},{"match":"(?<!\\\\.)\\\\bdo\\\\b","name":"keyword.control.start-block.ruby"},{"match":"(?<=\\\\{)(\\\\s+)","name":"meta.syntax.ruby.start-block"},{"match":"(?<!\\\\.)\\\\b(alias|alias_method|break|next|redo|retry|return|super|undef|yield)\\\\b(?![!?])|\\\\bdefined\\\\?|\\\\b(block_given|iterator)\\\\?","name":"keyword.control.pseudo-method.ruby"},{"match":"\\\\bnil\\\\b(?![!?])","name":"constant.language.nil.ruby"},{"match":"\\\\b(true|false)\\\\b(?![!?])","name":"constant.language.boolean.ruby"},{"match":"\\\\b(__(FILE|LINE)__)\\\\b(?![!?])","name":"variable.language.ruby"},{"match":"\\\\bself\\\\b(?![!?])","name":"variable.language.self.ruby"},{"match":"\\\\b(initialize|new|loop|include|extend|prepend|raise|fail|attr_reader|attr_writer|attr_accessor|attr|catch|throw|private|private_class_method|module_function|public|public_class_method|protected|refine|using)\\\\b(?![!?])","name":"keyword.other.special-method.ruby"},{"begin":"\\\\b(?<!\\\\.|::)(require(?:|_relative))\\\\b(?![!?])","captures":{"1":{"name":"keyword.other.special-method.ruby"}},"end":"$|(?=[#}])","name":"meta.require.ruby","patterns":[{"include":"$self"}]},{"captures":{"1":{"name":"punctuation.definition.variable.ruby"}},"match":"(@)[A-Z_a-z]\\\\w*","name":"variable.other.readwrite.instance.ruby"},{"captures":{"1":{"name":"punctuation.definition.variable.ruby"}},"match":"(@@)[A-Z_a-z]\\\\w*","name":"variable.other.readwrite.class.ruby"},{"captures":{"1":{"name":"punctuation.definition.variable.ruby"}},"match":"(\\\\$)[A-Z_a-z]\\\\w*","name":"variable.other.readwrite.global.ruby"},{"captures":{"1":{"name":"punctuation.definition.variable.ruby"}},"match":"(\\\\$)([!\\\\&\'+@`]|\\\\d+|[\\"$*,./:-?\\\\\\\\_~]|-[0FIadilpv])","name":"variable.other.readwrite.global.pre-defined.ruby"},{"begin":"\\\\b(ENV)\\\\[","beginCaptures":{"1":{"name":"variable.other.constant.ruby"}},"end":"]","name":"meta.environment-variable.ruby","patterns":[{"include":"$self"}]},{"match":"\\\\b[A-Z]\\\\w*(?=((\\\\.|::)[A-Za-z]|\\\\[))","name":"support.class.ruby"},{"match":"\\\\b((abort|at_exit|autoload|binding|callcc|caller|caller_locations|chomp|chop|eval|exec|exit|fork|format|gets|global_variables|gsub|lambda|load|local_variables|open|p|printf??|proc|putc|puts|rand|readlines??|select|set_trace_func|sleep|spawn|sprintf|srand|sub|syscall|system|test|trace_var|trap|untrace_var|warn)\\\\b(?![!?])|autoload\\\\?|exit!)","name":"support.function.kernel.ruby"},{"match":"\\\\b[A-Z_]\\\\w*\\\\b","name":"variable.other.constant.ruby"},{"begin":"(->)\\\\(","beginCaptures":{"1":{"name":"support.function.kernel.ruby"}},"end":"\\\\)","patterns":[{"begin":"(?=[\\\\&*A-Z_a-z])","end":"(?=[),])","patterns":[{"include":"#method_parameters"}]},{"include":"#method_parameters"}]},{"begin":"(?=def\\\\b)(?<=^|\\\\s)(def)\\\\s+((?>[A-Z_a-z]\\\\w*(?>\\\\.|::))?(?>[A-Z_a-z]\\\\w*(?>[!?]|=(?!>))?|===?|!=|>[=>]?|<=>|<[<=]?|[%\\\\&/`|]|\\\\*\\\\*?|=?~|[-+]@?|\\\\[]=?))\\\\s*(\\\\()","beginCaptures":{"1":{"name":"keyword.control.def.ruby"},"2":{"name":"entity.name.function.ruby"},"3":{"name":"punctuation.definition.parameters.ruby"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.parameters.ruby"}},"name":"meta.function.method.with-arguments.ruby","patterns":[{"begin":"(?=[\\\\&*A-Z_a-z])","end":"(?=[),])","patterns":[{"include":"#method_parameters"}]},{"include":"#method_parameters"}]},{"begin":"(?=def\\\\b)(?<=^|\\\\s)(def)\\\\s+((?>[A-Z_a-z]\\\\w*(?>\\\\.|::))?(?>[A-Z_a-z]\\\\w*(?>[!?]|=(?!>))?|===?|!=|>[=>]?|<=>|<[<=]?|[%\\\\&/`|]|\\\\*\\\\*?|=?~|[-+]@?|\\\\[]=?))[\\\\t ](?=[\\\\t ]*[^#;\\\\s])","beginCaptures":{"1":{"name":"keyword.control.def.ruby"},"2":{"name":"entity.name.function.ruby"}},"end":"(?=;)|(?<=[]!\\"\')?`}\\\\w])(?=\\\\s*#|\\\\s*$)","name":"meta.function.method.with-arguments.ruby","patterns":[{"begin":"(?=[\\\\&*A-Z_a-z])","end":"(?=[,;]|\\\\s*#|\\\\s*$)","patterns":[{"include":"#method_parameters"}]},{"include":"#method_parameters"}]},{"captures":{"1":{"name":"keyword.control.def.ruby"},"3":{"name":"entity.name.function.ruby"}},"match":"(?=def\\\\b)(?<=^|\\\\s)(def)\\\\b(\\\\s+((?>[A-Z_a-z]\\\\w*(?>\\\\.|::))?(?>[A-Z_a-z]\\\\w*(?>[!?]|=(?!>))?|===?|!=|>[=>]?|<=>|<[<=]?|[%\\\\&/`|]|\\\\*\\\\*?|=?~|[-+]@?|\\\\[]=?)))?","name":"meta.function.method.without-arguments.ruby"},{"match":"\\\\b(\\\\d(?>_?\\\\d)*(\\\\.(?![^\\\\s\\\\d])(?>_?\\\\d)*)?([Ee][-+]?\\\\d(?>_?\\\\d)*)?|0(?:[Xx]\\\\h(?>_?\\\\h)*|[Oo]?[0-7](?>_?[0-7])*|[Bb][01](?>_?[01])*|[Dd]\\\\d(?>_?\\\\d)*))\\\\b","name":"constant.numeric.ruby"},{"begin":":\'","beginCaptures":{"0":{"name":"punctuation.definition.symbol.begin.ruby"}},"end":"\'","endCaptures":{"0":{"name":"punctuation.definition.symbol.end.ruby"}},"name":"constant.language.symbol.ruby","patterns":[{"match":"\\\\\\\\[\'\\\\\\\\]","name":"constant.character.escape.ruby"}]},{"begin":":\\"","beginCaptures":{"0":{"name":"punctuation.section.symbol.begin.ruby"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.section.symbol.end.ruby"}},"name":"constant.language.symbol.interpolated.ruby","patterns":[{"include":"#interpolated_ruby"},{"include":"#escaped_char"}]},{"match":"(?<!\\\\()/=","name":"keyword.operator.assignment.augmented.ruby"},{"begin":"\'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.ruby"}},"end":"\'","endCaptures":{"0":{"name":"punctuation.definition.string.end.ruby"}},"name":"string.quoted.single.ruby","patterns":[{"match":"\\\\\\\\[\'\\\\\\\\]","name":"constant.character.escape.ruby"}]},{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.ruby"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.ruby"}},"name":"string.quoted.double.interpolated.ruby","patterns":[{"include":"#interpolated_ruby"},{"include":"#escaped_char"}]},{"begin":"(?<!\\\\.)`","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.ruby"}},"end":"`","endCaptures":{"0":{"name":"punctuation.definition.string.end.ruby"}},"name":"string.interpolated.ruby","patterns":[{"include":"#interpolated_ruby"},{"include":"#escaped_char"}]},{"begin":"(?<![)\\\\w])((/))(?![*+?])(?!\\\\s*$)(?=(?:\\\\\\\\/|[^/])*+/[eimnosux]*\\\\s*(?:[]#),.:?}]|\\\\|\\\\||&&|<=>|=>|==|=~|!~|!=|;|$|if|else|elsif|then|do|end|unless|while|until|or|and))","captures":{"1":{"name":"string.regexp.interpolated.ruby"},"2":{"name":"punctuation.section.regexp.ruby"}},"contentName":"string.regexp.interpolated.ruby","end":"((/[eimnosux]*))","patterns":[{"include":"#regex_sub"}]},{"begin":"%r\\\\{","beginCaptures":{"0":{"name":"punctuation.section.regexp.begin.ruby"}},"end":"}[eimnosux]*","endCaptures":{"0":{"name":"punctuation.section.regexp.end.ruby"}},"name":"string.regexp.interpolated.ruby","patterns":[{"include":"#regex_sub"},{"include":"#nest_curly_r"}]},{"begin":"%r\\\\[","beginCaptures":{"0":{"name":"punctuation.section.regexp.begin.ruby"}},"end":"][eimnosux]*","endCaptures":{"0":{"name":"punctuation.section.regexp.end.ruby"}},"name":"string.regexp.interpolated.ruby","patterns":[{"include":"#regex_sub"},{"include":"#nest_brackets_r"}]},{"begin":"%r\\\\(","beginCaptures":{"0":{"name":"punctuation.section.regexp.begin.ruby"}},"end":"\\\\)[eimnosux]*","endCaptures":{"0":{"name":"punctuation.section.regexp.end.ruby"}},"name":"string.regexp.interpolated.ruby","patterns":[{"include":"#regex_sub"},{"include":"#nest_parens_r"}]},{"begin":"%r<","beginCaptures":{"0":{"name":"punctuation.section.regexp.begin.ruby"}},"end":">[eimnosux]*","endCaptures":{"0":{"name":"punctuation.section.regexp.end.ruby"}},"name":"string.regexp.interpolated.ruby","patterns":[{"include":"#regex_sub"},{"include":"#nest_ltgt_r"}]},{"begin":"%r(\\\\W)","beginCaptures":{"0":{"name":"punctuation.section.regexp.begin.ruby"}},"end":"\\\\1[eimnosux]*","endCaptures":{"0":{"name":"punctuation.section.regexp.end.ruby"}},"name":"string.regexp.interpolated.ruby","patterns":[{"include":"#regex_sub"}]},{"begin":"%I\\\\[","beginCaptures":{"0":{"name":"punctuation.section.array.begin.ruby"}},"end":"]","endCaptures":{"0":{"name":"punctuation.section.array.end.ruby"}},"name":"constant.language.symbol.interpolated.ruby","patterns":[{"include":"#interpolated_ruby"},{"include":"#escaped_char"},{"include":"#nest_brackets_i"}]},{"begin":"%I\\\\(","beginCaptures":{"0":{"name":"punctuation.section.array.begin.ruby"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.array.end.ruby"}},"name":"constant.language.symbol.interpolated.ruby","patterns":[{"include":"#interpolated_ruby"},{"include":"#escaped_char"},{"include":"#nest_parens_i"}]},{"begin":"%I<","beginCaptures":{"0":{"name":"punctuation.section.array.begin.ruby"}},"end":">","endCaptures":{"0":{"name":"punctuation.section.array.end.ruby"}},"name":"constant.language.symbol.interpolated.ruby","patterns":[{"include":"#interpolated_ruby"},{"include":"#escaped_char"},{"include":"#nest_ltgt_i"}]},{"begin":"%I\\\\{","beginCaptures":{"0":{"name":"punctuation.section.array.begin.ruby"}},"end":"}","endCaptures":{"0":{"name":"punctuation.section.array.end.ruby"}},"name":"constant.language.symbol.interpolated.ruby","patterns":[{"include":"#interpolated_ruby"},{"include":"#escaped_char"},{"include":"#nest_curly_i"}]},{"begin":"%I(\\\\W)","beginCaptures":{"0":{"name":"punctuation.section.array.begin.ruby"}},"end":"\\\\1","endCaptures":{"0":{"name":"punctuation.section.array.end.ruby"}},"name":"constant.language.symbol.interpolated.ruby","patterns":[{"include":"#interpolated_ruby"},{"include":"#escaped_char"}]},{"begin":"%i\\\\[","beginCaptures":{"0":{"name":"punctuation.section.array.begin.ruby"}},"end":"]","endCaptures":{"0":{"name":"punctuation.section.array.end.ruby"}},"name":"constant.language.symbol.ruby","patterns":[{"match":"\\\\\\\\[]\\\\\\\\]","name":"constant.character.escape.ruby"},{"include":"#nest_brackets"}]},{"begin":"%i\\\\(","beginCaptures":{"0":{"name":"punctuation.section.array.begin.ruby"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.array.end.ruby"}},"name":"constant.language.symbol.ruby","patterns":[{"match":"\\\\\\\\[)\\\\\\\\]","name":"constant.character.escape.ruby"},{"include":"#nest_parens"}]},{"begin":"%i<","beginCaptures":{"0":{"name":"punctuation.section.array.begin.ruby"}},"end":">","endCaptures":{"0":{"name":"punctuation.section.array.end.ruby"}},"name":"constant.language.symbol.ruby","patterns":[{"match":"\\\\\\\\[>\\\\\\\\]","name":"constant.character.escape.ruby"},{"include":"#nest_ltgt"}]},{"begin":"%i\\\\{","beginCaptures":{"0":{"name":"punctuation.section.array.begin.ruby"}},"end":"}","endCaptures":{"0":{"name":"punctuation.section.array.end.ruby"}},"name":"constant.language.symbol.ruby","patterns":[{"match":"\\\\\\\\[\\\\\\\\}]","name":"constant.character.escape.ruby"},{"include":"#nest_curly"}]},{"begin":"%i(\\\\W)","beginCaptures":{"0":{"name":"punctuation.section.array.begin.ruby"}},"end":"\\\\1","endCaptures":{"0":{"name":"punctuation.section.array.end.ruby"}},"name":"constant.language.symbol.ruby","patterns":[{"match":"\\\\\\\\."}]},{"begin":"%W\\\\[","beginCaptures":{"0":{"name":"punctuation.section.array.begin.ruby"}},"end":"]","endCaptures":{"0":{"name":"punctuation.section.array.end.ruby"}},"name":"string.quoted.other.interpolated.ruby","patterns":[{"include":"#interpolated_ruby"},{"include":"#escaped_char"},{"include":"#nest_brackets_i"}]},{"begin":"%W\\\\(","beginCaptures":{"0":{"name":"punctuation.section.array.begin.ruby"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.array.end.ruby"}},"name":"string.quoted.other.interpolated.ruby","patterns":[{"include":"#interpolated_ruby"},{"include":"#escaped_char"},{"include":"#nest_parens_i"}]},{"begin":"%W<","beginCaptures":{"0":{"name":"punctuation.section.array.begin.ruby"}},"end":">","endCaptures":{"0":{"name":"punctuation.section.array.end.ruby"}},"name":"string.quoted.other.interpolated.ruby","patterns":[{"include":"#interpolated_ruby"},{"include":"#escaped_char"},{"include":"#nest_ltgt_i"}]},{"begin":"%W\\\\{","beginCaptures":{"0":{"name":"punctuation.section.array.begin.ruby"}},"end":"}","endCaptures":{"0":{"name":"punctuation.section.array.end.ruby"}},"name":"string.quoted.other.interpolated.ruby","patterns":[{"include":"#interpolated_ruby"},{"include":"#escaped_char"},{"include":"#nest_curly_i"}]},{"begin":"%W(\\\\W)","beginCaptures":{"0":{"name":"punctuation.section.array.begin.ruby"}},"end":"\\\\1","endCaptures":{"0":{"name":"punctuation.section.array.end.ruby"}},"name":"string.quoted.other.interpolated.ruby","patterns":[{"include":"#interpolated_ruby"},{"include":"#escaped_char"}]},{"begin":"%w\\\\[","beginCaptures":{"0":{"name":"punctuation.section.array.begin.ruby"}},"end":"]","endCaptures":{"0":{"name":"punctuation.section.array.end.ruby"}},"name":"string.quoted.other.ruby","patterns":[{"match":"\\\\\\\\[]\\\\\\\\]","name":"constant.character.escape.ruby"},{"include":"#nest_brackets"}]},{"begin":"%w\\\\(","beginCaptures":{"0":{"name":"punctuation.section.array.begin.ruby"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.array.end.ruby"}},"name":"string.quoted.other.ruby","patterns":[{"match":"\\\\\\\\[)\\\\\\\\]","name":"constant.character.escape.ruby"},{"include":"#nest_parens"}]},{"begin":"%w<","beginCaptures":{"0":{"name":"punctuation.section.array.begin.ruby"}},"end":">","endCaptures":{"0":{"name":"punctuation.section.array.end.ruby"}},"name":"string.quoted.other.ruby","patterns":[{"match":"\\\\\\\\[>\\\\\\\\]","name":"constant.character.escape.ruby"},{"include":"#nest_ltgt"}]},{"begin":"%w\\\\{","beginCaptures":{"0":{"name":"punctuation.section.array.begin.ruby"}},"end":"}","endCaptures":{"0":{"name":"punctuation.section.array.end.ruby"}},"name":"string.quoted.other.ruby","patterns":[{"match":"\\\\\\\\[\\\\\\\\}]","name":"constant.character.escape.ruby"},{"include":"#nest_curly"}]},{"begin":"%w(\\\\W)","beginCaptures":{"0":{"name":"punctuation.section.array.begin.ruby"}},"end":"\\\\1","endCaptures":{"0":{"name":"punctuation.section.array.end.ruby"}},"name":"string.quoted.other.ruby","patterns":[{"match":"\\\\\\\\."}]},{"begin":"%[Qx]?\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.ruby"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.string.end.ruby"}},"name":"string.quoted.other.interpolated.ruby","patterns":[{"include":"#interpolated_ruby"},{"include":"#escaped_char"},{"include":"#nest_parens_i"}]},{"begin":"%[Qx]?\\\\[","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.ruby"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.string.end.ruby"}},"name":"string.quoted.other.interpolated.ruby","patterns":[{"include":"#interpolated_ruby"},{"include":"#escaped_char"},{"include":"#nest_brackets_i"}]},{"begin":"%[Qx]?\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.ruby"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.string.end.ruby"}},"name":"string.quoted.other.interpolated.ruby","patterns":[{"include":"#interpolated_ruby"},{"include":"#escaped_char"},{"include":"#nest_curly_i"}]},{"begin":"%[Qx]?<","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.ruby"}},"end":">","endCaptures":{"0":{"name":"punctuation.definition.string.end.ruby"}},"name":"string.quoted.other.interpolated.ruby","patterns":[{"include":"#interpolated_ruby"},{"include":"#escaped_char"},{"include":"#nest_ltgt_i"}]},{"begin":"%[Qx](\\\\W)","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.ruby"}},"end":"\\\\1","endCaptures":{"0":{"name":"punctuation.definition.string.end.ruby"}},"name":"string.quoted.other.interpolated.ruby","patterns":[{"include":"#interpolated_ruby"},{"include":"#escaped_char"}]},{"begin":"%([^=\\\\w\\\\s])","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.ruby"}},"end":"\\\\1","endCaptures":{"0":{"name":"punctuation.definition.string.end.ruby"}},"name":"string.quoted.other.interpolated.ruby","patterns":[{"include":"#interpolated_ruby"},{"include":"#escaped_char"}]},{"begin":"%q\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.ruby"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.string.end.ruby"}},"name":"string.quoted.other.ruby","patterns":[{"match":"\\\\\\\\[)\\\\\\\\]","name":"constant.character.escape.ruby"},{"include":"#nest_parens"}]},{"begin":"%q<","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.ruby"}},"end":">","endCaptures":{"0":{"name":"punctuation.definition.string.end.ruby"}},"name":"string.quoted.other.ruby","patterns":[{"match":"\\\\\\\\[>\\\\\\\\]","name":"constant.character.escape.ruby"},{"include":"#nest_ltgt"}]},{"begin":"%q\\\\[","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.ruby"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.string.end.ruby"}},"name":"string.quoted.other.ruby","patterns":[{"match":"\\\\\\\\[]\\\\\\\\]","name":"constant.character.escape.ruby"},{"include":"#nest_brackets"}]},{"begin":"%q\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.ruby"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.string.end.ruby"}},"name":"string.quoted.other.ruby","patterns":[{"match":"\\\\\\\\[\\\\\\\\}]","name":"constant.character.escape.ruby"},{"include":"#nest_curly"}]},{"begin":"%q(\\\\W)","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.ruby"}},"end":"\\\\1","endCaptures":{"0":{"name":"punctuation.definition.string.end.ruby"}},"name":"string.quoted.other.ruby","patterns":[{"match":"\\\\\\\\."}]},{"begin":"%s\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.symbol.begin.ruby"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.symbol.end.ruby"}},"name":"constant.language.symbol.ruby","patterns":[{"match":"\\\\\\\\[)\\\\\\\\]","name":"constant.character.escape.ruby"},{"include":"#nest_parens"}]},{"begin":"%s<","beginCaptures":{"0":{"name":"punctuation.definition.symbol.begin.ruby"}},"end":">","endCaptures":{"0":{"name":"punctuation.definition.symbol.end.ruby"}},"name":"constant.language.symbol.ruby","patterns":[{"match":"\\\\\\\\[>\\\\\\\\]","name":"constant.character.escape.ruby"},{"include":"#nest_ltgt"}]},{"begin":"%s\\\\[","beginCaptures":{"0":{"name":"punctuation.definition.symbol.begin.ruby"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.symbol.end.ruby"}},"name":"constant.language.symbol.ruby","patterns":[{"match":"\\\\\\\\[]\\\\\\\\]","name":"constant.character.escape.ruby"},{"include":"#nest_brackets"}]},{"begin":"%s\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.symbol.begin.ruby"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.symbol.end.ruby"}},"name":"constant.language.symbol.ruby","patterns":[{"match":"\\\\\\\\[\\\\\\\\}]","name":"constant.character.escape.ruby"},{"include":"#nest_curly"}]},{"begin":"%s(\\\\W)","beginCaptures":{"0":{"name":"punctuation.definition.symbol.begin.ruby"}},"end":"\\\\1","endCaptures":{"0":{"name":"punctuation.definition.symbol.end.ruby"}},"name":"constant.language.symbol.ruby","patterns":[{"match":"\\\\\\\\."}]},{"captures":{"1":{"name":"punctuation.definition.constant.ruby"}},"match":"(?<!:)(:)(?>[$A-Z_a-z]\\\\w*(?>[!?]|=(?![=>]))?|===?|<=>|>[=>]?|<[<=]?|[%\\\\&/`|]|\\\\*\\\\*?|=?~|[-+]@?|\\\\[]=?|@@?[A-Z_a-z]\\\\w*)","name":"constant.language.symbol.ruby"},{"begin":"^=begin","captures":{"0":{"name":"punctuation.definition.comment.ruby"}},"end":"^=end","name":"comment.block.documentation.ruby"},{"include":"#yard"},{"begin":"(^[\\\\t ]+)?(?=#)","beginCaptures":{"1":{"name":"punctuation.whitespace.comment.leading.ruby"}},"end":"(?!\\\\G)","patterns":[{"begin":"#","beginCaptures":{"0":{"name":"punctuation.definition.comment.ruby"}},"end":"\\\\n","name":"comment.line.number-sign.ruby"}]},{"match":"(?<!\\\\w)\\\\?(\\\\\\\\(x\\\\h{1,2}(?!\\\\h)\\\\b|0[0-7]{0,2}(?![0-7])\\\\b|[^0CMx])|(\\\\\\\\[CM]-)+\\\\w|[^\\\\\\\\\\\\s])","name":"constant.numeric.ruby"},{"begin":"^__END__\\\\n","captures":{"0":{"name":"string.unquoted.program-block.ruby"}},"contentName":"text.plain","end":"(?=not)impossible","patterns":[{"begin":"(?=<?xml|<(?i:html\\\\b)|!DOCTYPE (?i:html\\\\b))","end":"(?=not)impossible","name":"text.html.embedded.ruby","patterns":[{"include":"text.html.basic"}]}]},{"begin":"(?=(?><<[-~]?([\\"\'`]?)((?:[_\\\\w]+_|)HTML)\\\\b\\\\1))","end":"^\\\\s*((?:[_\\\\w]+_|)HTML)$\\\\n?","endCaptures":{"0":{"name":"string.definition.end.ruby"}},"name":"meta.embedded.block.html","patterns":[{"begin":"(?><<[-~]?([\\"\'`]?)((?:[_\\\\w]+_|)HTML)\\\\b\\\\1)","beginCaptures":{"0":{"name":"string.definition.begin.ruby"}},"contentName":"text.html","patterns":[{"include":"#heredoc"},{"include":"#interpolated_ruby"},{"include":"text.html.basic"},{"include":"#escaped_char"}],"while":"^(?!\\\\s*((?:[_\\\\w]+_|)HTML)\\\\s*$)"}]},{"begin":"(?=(?><<[-~]?([\\"\'`]?)((?:[_\\\\w]+_|)HAML)\\\\b\\\\1))","end":"^\\\\s*((?:[_\\\\w]+_|)HAML)$\\\\n?","endCaptures":{"0":{"name":"string.definition.end.ruby"}},"name":"meta.embedded.block.haml","patterns":[{"begin":"(?><<[-~]?([\\"\'`]?)((?:[_\\\\w]+_|)HAML)\\\\b\\\\1)","beginCaptures":{"0":{"name":"string.definition.begin.ruby"}},"contentName":"text.haml","patterns":[{"include":"#heredoc"},{"include":"#interpolated_ruby"},{"include":"text.haml"},{"include":"#escaped_char"}],"while":"^(?!\\\\s*((?:[_\\\\w]+_|)HAML)\\\\s*$)"}]},{"begin":"(?=(?><<[-~]?([\\"\'`]?)((?:[_\\\\w]+_|)XML)\\\\b\\\\1))","end":"^\\\\s*((?:[_\\\\w]+_|)XML)$\\\\n?","endCaptures":{"0":{"name":"string.definition.end.ruby"}},"name":"meta.embedded.block.xml","patterns":[{"begin":"(?><<[-~]?([\\"\'`]?)((?:[_\\\\w]+_|)XML)\\\\b\\\\1)","beginCaptures":{"0":{"name":"string.definition.begin.ruby"}},"contentName":"text.xml","patterns":[{"include":"#heredoc"},{"include":"#interpolated_ruby"},{"include":"text.xml"},{"include":"#escaped_char"}],"while":"^(?!\\\\s*((?:[_\\\\w]+_|)XML)\\\\s*$)"}]},{"begin":"(?=(?><<[-~]?([\\"\'`]?)((?:[_\\\\w]+_|)SQL)\\\\b\\\\1))","end":"^\\\\s*((?:[_\\\\w]+_|)SQL)$\\\\n?","endCaptures":{"0":{"name":"string.definition.end.ruby"}},"name":"meta.embedded.block.sql","patterns":[{"begin":"(?><<[-~]?([\\"\'`]?)((?:[_\\\\w]+_|)SQL)\\\\b\\\\1)","beginCaptures":{"0":{"name":"string.definition.begin.ruby"}},"contentName":"source.sql","patterns":[{"include":"#heredoc"},{"include":"#interpolated_ruby"},{"include":"source.sql"},{"include":"#escaped_char"}],"while":"^(?!\\\\s*((?:[_\\\\w]+_|)SQL)\\\\s*$)"}]},{"begin":"(?=(?><<[-~]?([\\"\'`]?)((?:[_\\\\w]+_|)G(?:RAPHQL|QL))\\\\b\\\\1))","end":"^\\\\s*((?:[_\\\\w]+_|)G(?:RAPHQL|QL))$\\\\n?","endCaptures":{"0":{"name":"string.definition.end.ruby"}},"name":"meta.embedded.block.graphql","patterns":[{"begin":"(?><<[-~]?([\\"\'`]?)((?:[_\\\\w]+_|)G(?:RAPHQL|QL))\\\\b\\\\1)","beginCaptures":{"0":{"name":"string.definition.begin.ruby"}},"contentName":"source.graphql","patterns":[{"include":"#heredoc"},{"include":"#interpolated_ruby"},{"include":"source.graphql"},{"include":"#escaped_char"}],"while":"^(?!\\\\s*((?:[_\\\\w]+_|)G(?:RAPHQL|QL))\\\\s*$)"}]},{"begin":"(?=(?><<[-~]?([\\"\'`]?)((?:[_\\\\w]+_|)CSS)\\\\b\\\\1))","end":"^\\\\s*((?:[_\\\\w]+_|)CSS)$\\\\n?","endCaptures":{"0":{"name":"string.definition.end.ruby"}},"name":"meta.embedded.block.css","patterns":[{"begin":"(?><<[-~]?([\\"\'`]?)((?:[_\\\\w]+_|)CSS)\\\\b\\\\1)","beginCaptures":{"0":{"name":"string.definition.begin.ruby"}},"contentName":"source.css","patterns":[{"include":"#heredoc"},{"include":"#interpolated_ruby"},{"include":"source.css"},{"include":"#escaped_char"}],"while":"^(?!\\\\s*((?:[_\\\\w]+_|)CSS)\\\\s*$)"}]},{"begin":"(?=(?><<[-~]?([\\"\'`]?)((?:[_\\\\w]+_|)CPP)\\\\b\\\\1))","end":"^\\\\s*((?:[_\\\\w]+_|)CPP)$\\\\n?","endCaptures":{"0":{"name":"string.definition.end.ruby"}},"name":"meta.embedded.block.cpp","patterns":[{"begin":"(?><<[-~]?([\\"\'`]?)((?:[_\\\\w]+_|)CPP)\\\\b\\\\1)","beginCaptures":{"0":{"name":"string.definition.begin.ruby"}},"contentName":"source.cpp","patterns":[{"include":"#heredoc"},{"include":"#interpolated_ruby"},{"include":"source.cpp"},{"include":"#escaped_char"}],"while":"^(?!\\\\s*((?:[_\\\\w]+_|)CPP)\\\\s*$)"}]},{"begin":"(?=(?><<[-~]?([\\"\'`]?)((?:[_\\\\w]+_|)C)\\\\b\\\\1))","end":"^\\\\s*((?:[_\\\\w]+_|)C)$\\\\n?","endCaptures":{"0":{"name":"string.definition.end.ruby"}},"name":"meta.embedded.block.c","patterns":[{"begin":"(?><<[-~]?([\\"\'`]?)((?:[_\\\\w]+_|)C)\\\\b\\\\1)","beginCaptures":{"0":{"name":"string.definition.begin.ruby"}},"contentName":"source.c","patterns":[{"include":"#heredoc"},{"include":"#interpolated_ruby"},{"include":"source.c"},{"include":"#escaped_char"}],"while":"^(?!\\\\s*((?:[_\\\\w]+_|)C)\\\\s*$)"}]},{"begin":"(?=(?><<[-~]?([\\"\'`]?)((?:[_\\\\w]+_|)J(?:S|AVASCRIPT))\\\\b\\\\1))","end":"^\\\\s*((?:[_\\\\w]+_|)J(?:S|AVASCRIPT))$\\\\n?","endCaptures":{"0":{"name":"string.definition.end.ruby"}},"name":"meta.embedded.block.js","patterns":[{"begin":"(?><<[-~]?([\\"\'`]?)((?:[_\\\\w]+_|)J(?:S|AVASCRIPT))\\\\b\\\\1)","beginCaptures":{"0":{"name":"string.definition.begin.ruby"}},"contentName":"source.js","patterns":[{"include":"#heredoc"},{"include":"#interpolated_ruby"},{"include":"source.js"},{"include":"#escaped_char"}],"while":"^(?!\\\\s*((?:[_\\\\w]+_|)J(?:S|AVASCRIPT))\\\\s*$)"}]},{"begin":"(?=(?><<[-~]?([\\"\'`]?)((?:[_\\\\w]+_|)JQUERY)\\\\b\\\\1))","end":"^\\\\s*((?:[_\\\\w]+_|)JQUERY)$\\\\n?","endCaptures":{"0":{"name":"string.definition.end.ruby"}},"name":"meta.embedded.block.js.jquery","patterns":[{"begin":"(?><<[-~]?([\\"\'`]?)((?:[_\\\\w]+_|)JQUERY)\\\\b\\\\1)","beginCaptures":{"0":{"name":"string.definition.begin.ruby"}},"contentName":"source.js.jquery","patterns":[{"include":"#heredoc"},{"include":"#interpolated_ruby"},{"include":"source.js.jquery"},{"include":"#escaped_char"}],"while":"^(?!\\\\s*((?:[_\\\\w]+_|)JQUERY)\\\\s*$)"}]},{"begin":"(?=(?><<[-~]?([\\"\'`]?)((?:[_\\\\w]+_|)SH(?:|ELL))\\\\b\\\\1))","end":"^\\\\s*((?:[_\\\\w]+_|)SH(?:|ELL))$\\\\n?","endCaptures":{"0":{"name":"string.definition.end.ruby"}},"name":"meta.embedded.block.shell","patterns":[{"begin":"(?><<[-~]?([\\"\'`]?)((?:[_\\\\w]+_|)SH(?:|ELL))\\\\b\\\\1)","beginCaptures":{"0":{"name":"string.definition.begin.ruby"}},"contentName":"source.shell","patterns":[{"include":"#heredoc"},{"include":"#interpolated_ruby"},{"include":"source.shell"},{"include":"#escaped_char"}],"while":"^(?!\\\\s*((?:[_\\\\w]+_|)SH(?:|ELL))\\\\s*$)"}]},{"begin":"(?=(?><<[-~]?([\\"\'`]?)((?:[_\\\\w]+_|)LUA)\\\\b\\\\1))","end":"^\\\\s*((?:[_\\\\w]+_|)LUA)$\\\\n?","endCaptures":{"0":{"name":"string.definition.end.ruby"}},"name":"meta.embedded.block.lua","patterns":[{"begin":"(?><<[-~]?([\\"\'`]?)((?:[_\\\\w]+_|)LUA)\\\\b\\\\1)","beginCaptures":{"0":{"name":"string.definition.begin.ruby"}},"contentName":"source.lua","patterns":[{"include":"#heredoc"},{"include":"#interpolated_ruby"},{"include":"source.lua"},{"include":"#escaped_char"}],"while":"^(?!\\\\s*((?:[_\\\\w]+_|)LUA)\\\\s*$)"}]},{"begin":"(?=(?><<[-~]?([\\"\'`]?)((?:[_\\\\w]+_|)RUBY)\\\\b\\\\1))","end":"^\\\\s*((?:[_\\\\w]+_|)RUBY)$\\\\n?","endCaptures":{"0":{"name":"string.definition.end.ruby"}},"name":"meta.embedded.block.ruby","patterns":[{"begin":"(?><<[-~]?([\\"\'`]?)((?:[_\\\\w]+_|)RUBY)\\\\b\\\\1)","beginCaptures":{"0":{"name":"string.definition.begin.ruby"}},"contentName":"source.ruby","patterns":[{"include":"#heredoc"},{"include":"#interpolated_ruby"},{"include":"source.ruby"},{"include":"#escaped_char"}],"while":"^(?!\\\\s*((?:[_\\\\w]+_|)RUBY)\\\\s*$)"}]},{"begin":"(?=(?><<[-~]?([\\"\'`]?)((?:[_\\\\w]+_|)YA?ML)\\\\b\\\\1))","end":"^\\\\s*((?:[_\\\\w]+_|)YA?ML)$\\\\n?","endCaptures":{"0":{"name":"string.definition.end.ruby"}},"name":"meta.embedded.block.yaml","patterns":[{"begin":"(?><<[-~]?([\\"\'`]?)((?:[_\\\\w]+_|)YA?ML)\\\\b\\\\1)","beginCaptures":{"0":{"name":"string.definition.begin.ruby"}},"contentName":"source.yaml","patterns":[{"include":"#heredoc"},{"include":"#interpolated_ruby"},{"include":"source.yaml"},{"include":"#escaped_char"}],"while":"^(?!\\\\s*((?:[_\\\\w]+_|)YA?ML)\\\\s*$)"}]},{"begin":"(?=(?><<[-~]?([\\"\'`]?)((?:[_\\\\w]+_|)SLIM)\\\\b\\\\1))","end":"^\\\\s*((?:[_\\\\w]+_|)SLIM)$\\\\n?","endCaptures":{"0":{"name":"string.definition.end.ruby"}},"name":"meta.embedded.block.slim","patterns":[{"begin":"(?><<[-~]?([\\"\'`]?)((?:[_\\\\w]+_|)SLIM)\\\\b\\\\1)","beginCaptures":{"0":{"name":"string.definition.begin.ruby"}},"contentName":"text.slim","patterns":[{"include":"#heredoc"},{"include":"#interpolated_ruby"},{"include":"text.slim"},{"include":"#escaped_char"}],"while":"^(?!\\\\s*((?:[_\\\\w]+_|)SLIM)\\\\s*$)"}]},{"begin":"(?>=\\\\s*<<([\\"\'`]?)(\\\\w+)\\\\1)","beginCaptures":{"0":{"name":"string.definition.begin.ruby"}},"contentName":"string.unquoted.heredoc.ruby","end":"^\\\\2$","endCaptures":{"0":{"name":"string.definition.end.ruby"}},"patterns":[{"include":"#heredoc"},{"include":"#interpolated_ruby"},{"include":"#escaped_char"}]},{"begin":"(?>((<<[-~]?([\\"\'`]?)(\\\\w+)\\\\3,\\\\s?)*<<[-~]?([\\"\'`]?)(\\\\w+)\\\\5))(.*)","beginCaptures":{"1":{"name":"string.definition.begin.ruby"},"7":{"patterns":[{"include":"source.ruby"}]}},"contentName":"string.unquoted.heredoc.ruby","end":"^\\\\s*\\\\6$","endCaptures":{"0":{"name":"string.definition.end.ruby"}},"patterns":[{"include":"#heredoc"},{"include":"#interpolated_ruby"},{"include":"#escaped_char"}]},{"begin":"(?<=\\\\{|\\\\{\\\\s+|[^$0-:@-Z_a-z]do|^do|[^$0-:@-Z_a-z]do\\\\s+|^do\\\\s+)(\\\\|)","captures":{"1":{"name":"punctuation.separator.variable.ruby"}},"end":"(?<!\\\\|)(\\\\|)(?!\\\\|)","name":"meta.block.parameters.ruby","patterns":[{"begin":"(?![(,|\\\\s])","end":"(?=,|\\\\|\\\\s*)","patterns":[{"captures":{"1":{"name":"storage.type.variable.ruby"},"2":{"name":"variable.other.block.ruby"}},"match":"\\\\G((?:&|\\\\*\\\\*?)?)([A-Z_a-z][_\\\\w]*)"}]},{"match":",","name":"punctuation.separator.variable.ruby"}]},{"match":"=>","name":"punctuation.separator.key-value"},{"match":"->","name":"support.function.kernel.ruby"},{"match":"<<=|%=|&{1,2}=|\\\\*=|\\\\*\\\\*=|\\\\+=|-=|\\\\^=|\\\\|{1,2}=|<<","name":"keyword.operator.assignment.augmented.ruby"},{"match":"<=>|<(?![<=])|>(?![<=>])|<=|>=|===?|=~|!=|!~|(?<=[\\\\t ])\\\\?","name":"keyword.operator.comparison.ruby"},{"match":"(?<!\\\\.)\\\\b(and|not|or)\\\\b(?![!?])","name":"keyword.operator.logical.ruby"},{"match":"(?<=^|[\\\\t !])!|&&|\\\\|\\\\||\\\\^","name":"keyword.operator.logical.ruby"},{"captures":{"1":{"name":"keyword.operator.logical.ruby"}},"match":"(&\\\\.)\\\\s*(?![A-Z])"},{"match":"([%\\\\&]|\\\\*\\\\*|[-*+/])","name":"keyword.operator.arithmetic.ruby"},{"match":"=","name":"keyword.operator.assignment.ruby"},{"match":"[|~]|>>","name":"keyword.operator.other.ruby"},{"match":";","name":"punctuation.separator.statement.ruby"},{"match":",","name":"punctuation.separator.object.ruby"},{"captures":{"1":{"name":"punctuation.separator.namespace.ruby"}},"match":"(::)\\\\s*(?=[A-Z])"},{"captures":{"1":{"name":"punctuation.separator.method.ruby"}},"match":"(\\\\.|::)\\\\s*(?![A-Z])"},{"match":":","name":"punctuation.separator.other.ruby"},{"match":"\\\\{","name":"punctuation.section.scope.begin.ruby"},{"match":"}","name":"punctuation.section.scope.end.ruby"},{"match":"\\\\[","name":"punctuation.section.array.begin.ruby"},{"match":"]","name":"punctuation.section.array.end.ruby"},{"match":"[()]","name":"punctuation.section.function.ruby"},{"begin":"(?<=[^.]\\\\.|::)(?=[A-Za-z][!0-9?A-Z_a-z]*[^!0-9?A-Z_a-z])","end":"(?<=[!0-9?A-Z_a-z])(?=[^!0-9?A-Z_a-z])","name":"meta.function-call.ruby","patterns":[{"match":"([A-Za-z][!0-9?A-Z_a-z]*)(?=[^!0-9?A-Z_a-z])","name":"entity.name.function.ruby"}]},{"begin":"([A-Za-z]\\\\w*[!?]?)(\\\\()","beginCaptures":{"1":{"name":"entity.name.function.ruby"},"2":{"name":"punctuation.section.function.ruby"}},"end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.section.function.ruby"}},"name":"meta.function-call.ruby","patterns":[{"include":"$self"}]}],"repository":{"escaped_char":{"match":"\\\\\\\\(?:[0-7]{1,3}|x[A-Fa-f\\\\d]{1,2}|.)","name":"constant.character.escape.ruby"},"heredoc":{"begin":"^<<[-~]?\\\\w+","end":"$","patterns":[{"include":"$self"}]},"interpolated_ruby":{"patterns":[{"begin":"#\\\\{","beginCaptures":{"0":{"name":"punctuation.section.embedded.begin.ruby"}},"contentName":"source.ruby","end":"}","endCaptures":{"0":{"name":"punctuation.section.embedded.end.ruby"}},"name":"meta.embedded.line.ruby","patterns":[{"include":"#nest_curly_and_self"},{"include":"$self"}]},{"captures":{"1":{"name":"punctuation.definition.variable.ruby"}},"match":"(#@)[A-Z_a-z]\\\\w*","name":"variable.other.readwrite.instance.ruby"},{"captures":{"1":{"name":"punctuation.definition.variable.ruby"}},"match":"(#@@)[A-Z_a-z]\\\\w*","name":"variable.other.readwrite.class.ruby"},{"captures":{"1":{"name":"punctuation.definition.variable.ruby"}},"match":"(#\\\\$)[A-Z_a-z]\\\\w*","name":"variable.other.readwrite.global.ruby"}]},"method_parameters":{"patterns":[{"include":"#parens"},{"include":"#braces"},{"include":"#brackets"},{"include":"#params"},{"include":"$self"}],"repository":{"braces":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.section.scope.begin.ruby"}},"end":"}","endCaptures":{"0":{"name":"punctuation.section.scope.end.ruby"}},"patterns":[{"include":"#parens"},{"include":"#braces"},{"include":"#brackets"},{"include":"$self"}]},"brackets":{"begin":"\\\\[","beginCaptures":{"0":{"name":"punctuation.section.array.begin.ruby"}},"end":"]","endCaptures":{"0":{"name":"punctuation.section.array.end.ruby"}},"patterns":[{"include":"#parens"},{"include":"#braces"},{"include":"#brackets"},{"include":"$self"}]},"params":{"captures":{"1":{"name":"storage.type.variable.ruby"},"2":{"name":"constant.other.symbol.hashkey.parameter.function.ruby"},"3":{"name":"punctuation.definition.constant.ruby"},"4":{"name":"variable.parameter.function.ruby"}},"match":"\\\\G(&|\\\\*\\\\*?)?(?:([A-Z_a-z]\\\\w*[!?]?(:))|([A-Z_a-z]\\\\w*))"},"parens":{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.section.function.begin.ruby"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.function.end.ruby"}},"patterns":[{"include":"#parens"},{"include":"#braces"},{"include":"#brackets"},{"include":"$self"}]}}},"nest_brackets":{"begin":"\\\\[","captures":{"0":{"name":"punctuation.section.scope.ruby"}},"end":"]","patterns":[{"include":"#nest_brackets"}]},"nest_brackets_i":{"begin":"\\\\[","captures":{"0":{"name":"punctuation.section.scope.ruby"}},"end":"]","patterns":[{"include":"#interpolated_ruby"},{"include":"#escaped_char"},{"include":"#nest_brackets_i"}]},"nest_brackets_r":{"begin":"\\\\[","captures":{"0":{"name":"punctuation.section.scope.ruby"}},"end":"]","patterns":[{"include":"#regex_sub"},{"include":"#nest_brackets_r"}]},"nest_curly":{"begin":"\\\\{","captures":{"0":{"name":"punctuation.section.scope.ruby"}},"end":"}","patterns":[{"include":"#nest_curly"}]},"nest_curly_and_self":{"patterns":[{"begin":"\\\\{","captures":{"0":{"name":"punctuation.section.scope.ruby"}},"end":"}","patterns":[{"include":"#nest_curly_and_self"}]},{"include":"$self"}]},"nest_curly_i":{"begin":"\\\\{","captures":{"0":{"name":"punctuation.section.scope.ruby"}},"end":"}","patterns":[{"include":"#interpolated_ruby"},{"include":"#escaped_char"},{"include":"#nest_curly_i"}]},"nest_curly_r":{"begin":"\\\\{","captures":{"0":{"name":"punctuation.section.scope.ruby"}},"end":"}","patterns":[{"include":"#regex_sub"},{"include":"#nest_curly_r"}]},"nest_ltgt":{"begin":"<","captures":{"0":{"name":"punctuation.section.scope.ruby"}},"end":">","patterns":[{"include":"#nest_ltgt"}]},"nest_ltgt_i":{"begin":"<","captures":{"0":{"name":"punctuation.section.scope.ruby"}},"end":">","patterns":[{"include":"#interpolated_ruby"},{"include":"#escaped_char"},{"include":"#nest_ltgt_i"}]},"nest_ltgt_r":{"begin":"<","captures":{"0":{"name":"punctuation.section.scope.ruby"}},"end":">","patterns":[{"include":"#regex_sub"},{"include":"#nest_ltgt_r"}]},"nest_parens":{"begin":"\\\\(","captures":{"0":{"name":"punctuation.section.scope.ruby"}},"end":"\\\\)","patterns":[{"include":"#nest_parens"}]},"nest_parens_i":{"begin":"\\\\(","captures":{"0":{"name":"punctuation.section.scope.ruby"}},"end":"\\\\)","patterns":[{"include":"#interpolated_ruby"},{"include":"#escaped_char"},{"include":"#nest_parens_i"}]},"nest_parens_r":{"begin":"\\\\(","captures":{"0":{"name":"punctuation.section.scope.ruby"}},"end":"\\\\)","patterns":[{"include":"#regex_sub"},{"include":"#nest_parens_r"}]},"regex_sub":{"patterns":[{"include":"#interpolated_ruby"},{"include":"#escaped_char"},{"captures":{"1":{"name":"punctuation.definition.arbitrary-repetition.ruby"},"3":{"name":"punctuation.definition.arbitrary-repetition.ruby"}},"match":"(\\\\{)\\\\d+(,\\\\d+)?(})","name":"string.regexp.arbitrary-repetition.ruby"},{"begin":"\\\\[(?:\\\\^?])?","captures":{"0":{"name":"punctuation.definition.character-class.ruby"}},"end":"]","name":"string.regexp.character-class.ruby","patterns":[{"include":"#escaped_char"}]},{"begin":"\\\\(\\\\?#","beginCaptures":{"0":{"name":"punctuation.definition.comment.begin.ruby"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.comment.end.ruby"}},"name":"comment.line.number-sign.ruby","patterns":[{"include":"#escaped_char"}]},{"begin":"\\\\(","captures":{"0":{"name":"punctuation.definition.group.ruby"}},"end":"\\\\)","name":"string.regexp.group.ruby","patterns":[{"include":"#regex_sub"}]},{"begin":"(?<=^|\\\\s)(#)\\\\s(?=[-\\\\t !,.0-9?A-Za-z[^\\\\x00-\\\\x7F]]*$)","beginCaptures":{"1":{"name":"punctuation.definition.comment.ruby"}},"end":"$\\\\n?","endCaptures":{"0":{"name":"punctuation.definition.comment.ruby"}},"name":"comment.line.number-sign.ruby"}]},"yard":{"patterns":[{"include":"#yard_comment"},{"include":"#yard_param_types"},{"include":"#yard_option"},{"include":"#yard_tag"},{"include":"#yard_types"},{"include":"#yard_directive"},{"include":"#yard_see"},{"include":"#yard_macro_attribute"}]},"yard_comment":{"begin":"^(\\\\s*)(#)(\\\\s*)(@)(abstract|api|author|deprecated|example|macro|note|overload|since|todo|version)(?=\\\\s|$)","beginCaptures":{"2":{"name":"punctuation.definition.comment.ruby"},"4":{"name":"comment.line.keyword.punctuation.yard.ruby"},"5":{"name":"comment.line.keyword.yard.ruby"}},"contentName":"comment.line.string.yard.ruby","end":"^(?!\\\\s*#\\\\3\\\\s{2,}|\\\\s*#\\\\s*$)","name":"comment.line.number-sign.ruby","patterns":[{"include":"#yard"},{"include":"#yard_continuation"}]},"yard_continuation":{"match":"^\\\\s*#","name":"punctuation.definition.comment.ruby"},"yard_directive":{"begin":"^(\\\\s*)(#)(\\\\s*)(@!)(endgroup|group|method|parse|scope|visibility)(\\\\s+((\\\\[).+(])))?(?=\\\\s)","beginCaptures":{"2":{"name":"punctuation.definition.comment.ruby"},"4":{"name":"comment.line.keyword.punctuation.yard.ruby"},"5":{"name":"comment.line.keyword.yard.ruby"},"7":{"name":"comment.line.type.yard.ruby"},"8":{"name":"comment.line.punctuation.yard.ruby"},"9":{"name":"comment.line.punctuation.yard.ruby"}},"contentName":"comment.line.string.yard.ruby","end":"^(?!\\\\s*#\\\\3\\\\s{2,}|\\\\s*#\\\\s*$)","name":"comment.line.number-sign.ruby","patterns":[{"include":"#yard"},{"include":"#yard_continuation"}]},"yard_macro_attribute":{"begin":"^(\\\\s*)(#)(\\\\s*)(@!)(attribute|macro)(\\\\s+((\\\\[).+(])))?(?=\\\\s)(\\\\s+([_a-z]\\\\w*:?))?","beginCaptures":{"2":{"name":"punctuation.definition.comment.ruby"},"4":{"name":"comment.line.keyword.punctuation.yard.ruby"},"5":{"name":"comment.line.keyword.yard.ruby"},"7":{"name":"comment.line.type.yard.ruby"},"8":{"name":"comment.line.punctuation.yard.ruby"},"9":{"name":"comment.line.punctuation.yard.ruby"},"11":{"name":"comment.line.parameter.yard.ruby"}},"contentName":"comment.line.string.yard.ruby","end":"^(?!\\\\s*#\\\\3\\\\s{2,}|\\\\s*#\\\\s*$)","name":"comment.line.number-sign.ruby","patterns":[{"include":"#yard"},{"include":"#yard_continuation"}]},"yard_option":{"begin":"^(\\\\s*)(#)(\\\\s*)(@)(option)(?=\\\\s)(?>\\\\s+([_a-z]\\\\w*:?))?(?>\\\\s+((\\\\[).+(])))?(?>\\\\s+((\\\\S*)))?(?>\\\\s+((\\\\().+(\\\\))))?","beginCaptures":{"2":{"name":"punctuation.definition.comment.ruby"},"4":{"name":"comment.line.keyword.punctuation.yard.ruby"},"5":{"name":"comment.line.keyword.yard.ruby"},"6":{"name":"comment.line.parameter.yard.ruby"},"7":{"name":"comment.line.type.yard.ruby"},"8":{"name":"comment.line.punctuation.yard.ruby"},"9":{"name":"comment.line.punctuation.yard.ruby"},"10":{"name":"comment.line.keyword.yard.ruby"},"11":{"name":"comment.line.hashkey.yard.ruby"},"12":{"name":"comment.line.defaultvalue.yard.ruby"},"13":{"name":"comment.line.punctuation.yard.ruby"},"14":{"name":"comment.line.punctuation.yard.ruby"}},"contentName":"comment.line.string.yard.ruby","end":"^(?!\\\\s*#\\\\3\\\\s{2,}|\\\\s*#\\\\s*$)","name":"comment.line.number-sign.ruby","patterns":[{"include":"#yard"},{"include":"#yard_continuation"}]},"yard_param_types":{"begin":"^(\\\\s*)(#)(\\\\s*)(@)(attr|attr_reader|attr_writer|yieldparam|param)(?=\\\\s)(?>\\\\s+(?>([_a-z]\\\\w*:?)|((\\\\[).+(]))))?(?>\\\\s+(?>((\\\\[).+(]))|([_a-z]\\\\w*:?)))?","beginCaptures":{"2":{"name":"punctuation.definition.comment.ruby"},"4":{"name":"comment.line.keyword.punctuation.yard.ruby"},"5":{"name":"comment.line.keyword.yard.ruby"},"6":{"name":"comment.line.parameter.yard.ruby"},"7":{"name":"comment.line.type.yard.ruby"},"8":{"name":"comment.line.punctuation.yard.ruby"},"9":{"name":"comment.line.punctuation.yard.ruby"},"10":{"name":"comment.line.type.yard.ruby"},"11":{"name":"comment.line.punctuation.yard.ruby"},"12":{"name":"comment.line.punctuation.yard.ruby"},"13":{"name":"comment.line.parameter.yard.ruby"}},"contentName":"comment.line.string.yard.ruby","end":"^(?!\\\\s*#\\\\3\\\\s{2,}|\\\\s*#\\\\s*$)","name":"comment.line.number-sign.ruby","patterns":[{"include":"#yard"},{"include":"#yard_continuation"}]},"yard_see":{"begin":"^(\\\\s*)(#)(\\\\s*)(@)(see)(?=\\\\s)(\\\\s+(.+?))?(?=\\\\s|$)","beginCaptures":{"2":{"name":"punctuation.definition.comment.ruby"},"4":{"name":"comment.line.keyword.punctuation.yard.ruby"},"5":{"name":"comment.line.keyword.yard.ruby"},"7":{"name":"comment.line.parameter.yard.ruby"}},"contentName":"comment.line.string.yard.ruby","end":"^(?!\\\\s*#\\\\3\\\\s{2,}|\\\\s*#\\\\s*$)","name":"comment.line.number-sign.ruby","patterns":[{"include":"#yard"},{"include":"#yard_continuation"}]},"yard_tag":{"captures":{"2":{"name":"punctuation.definition.comment.ruby"},"4":{"name":"comment.line.keyword.punctuation.yard.ruby"},"5":{"name":"comment.line.keyword.yard.ruby"}},"match":"^(\\\\s*)(#)(\\\\s*)(@)(private)$","name":"comment.line.number-sign.ruby"},"yard_types":{"begin":"^(\\\\s*)(#)(\\\\s*)(@)(raise|return|yield(?:return)?)(?=\\\\s)(\\\\s+((\\\\[).+(])))?","beginCaptures":{"2":{"name":"punctuation.definition.comment.ruby"},"4":{"name":"comment.line.keyword.punctuation.yard.ruby"},"5":{"name":"comment.line.keyword.yard.ruby"},"7":{"name":"comment.line.type.yard.ruby"},"8":{"name":"comment.line.punctuation.yard.ruby"},"9":{"name":"comment.line.punctuation.yard.ruby"}},"contentName":"comment.line.string.yard.ruby","end":"^(?!\\\\s*#\\\\3\\\\s{2,}|\\\\s*#\\\\s*$)","name":"comment.line.number-sign.ruby","patterns":[{"include":"#yard"},{"include":"#yard_continuation"}]}},"scopeName":"source.ruby","embeddedLangs":["html","haml","xml","sql","graphql","css","cpp","c","javascript","shellscript","lua","yaml"],"aliases":["rb"]}')),h=[...Rn,...e,...ti,...Aa,...Zf,...bt,...ec,...ei,...$e,...Np,...Xf,...tg,t];export{h as default};
@@ -1 +1 @@
1
- import{pd}from"./index-f77c3ag0.js";var t=pd({start:[{regex:/b?"/,token:"string",next:"string"},{regex:/b?r"/,token:"string",next:"string_raw"},{regex:/b?r#+"/,token:"string",next:"string_raw_hash"},{regex:/'(?:[^'\\]|\\(?:[nrt0'"]|x[\da-fA-F]{2}|u\{[\da-fA-F]{6}\}))'/,token:"string.special"},{regex:/b'(?:[^']|\\(?:['\\nrt0]|x[\da-fA-F]{2}))'/,token:"string.special"},{regex:/(?:(?:[0-9][0-9_]*)(?:(?:[Ee][+-]?[0-9_]+)|\.[0-9_]+(?:[Ee][+-]?[0-9_]+)?)(?:f32|f64)?)|(?:0(?:b[01_]+|(?:o[0-7_]+)|(?:x[0-9a-fA-F_]+))|(?:[0-9][0-9_]*))(?:u8|u16|u32|u64|i8|i16|i32|i64|isize|usize)?/,token:"number"},{regex:/(let(?:\s+mut)?|fn|enum|mod|struct|type|union)(\s+)([a-zA-Z_][a-zA-Z0-9_]*)/,token:["keyword",null,"def"]},{regex:/(?:abstract|alignof|as|async|await|box|break|continue|const|crate|do|dyn|else|enum|extern|fn|for|final|if|impl|in|loop|macro|match|mod|move|offsetof|override|priv|proc|pub|pure|ref|return|self|sizeof|static|struct|super|trait|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,token:"keyword"},{regex:/\b(?:Self|isize|usize|char|bool|u8|u16|u32|u64|f16|f32|f64|i8|i16|i32|i64|str|Option)\b/,token:"atom"},{regex:/\b(?:true|false|Some|None|Ok|Err)\b/,token:"builtin"},{regex:/\b(fn)(\s+)([a-zA-Z_][a-zA-Z0-9_]*)/,token:["keyword",null,"def"]},{regex:/#!?\[.*\]/,token:"meta"},{regex:/\/\/.*/,token:"comment"},{regex:/\/\*/,token:"comment",next:"comment"},{regex:/[-+\/*=<>!]+/,token:"operator"},{regex:/[a-zA-Z_]\w*!/,token:"macroName"},{regex:/[a-zA-Z_]\w*/,token:"variable"},{regex:/[\{\[\(]/,indent:!0},{regex:/[\}\]\)]/,dedent:!0}],string:[{regex:/"/,token:"string",next:"start"},{regex:/(?:[^\\"]|\\(?:.|$))*/,token:"string"}],string_raw:[{regex:/"/,token:"string",next:"start"},{regex:/[^"]*/,token:"string"}],string_raw_hash:[{regex:/"#+/,token:"string",next:"start"},{regex:/(?:[^"]|"(?!#))*/,token:"string"}],comment:[{regex:/.*?\*\//,token:"comment",next:"start"},{regex:/.*/,token:"comment"}],languageData:{name:"rust",dontIndentStates:["comment"],indentOnInput:/^\s*\}$/,commentTokens:{line:"//",block:{open:"/*",close:"*/"}}}});export{t as rust};
1
+ import{fd}from"./index-cq98p2rb.js";var t=fd({start:[{regex:/b?"/,token:"string",next:"string"},{regex:/b?r"/,token:"string",next:"string_raw"},{regex:/b?r#+"/,token:"string",next:"string_raw_hash"},{regex:/'(?:[^'\\]|\\(?:[nrt0'"]|x[\da-fA-F]{2}|u\{[\da-fA-F]{6}\}))'/,token:"string.special"},{regex:/b'(?:[^']|\\(?:['\\nrt0]|x[\da-fA-F]{2}))'/,token:"string.special"},{regex:/(?:(?:[0-9][0-9_]*)(?:(?:[Ee][+-]?[0-9_]+)|\.[0-9_]+(?:[Ee][+-]?[0-9_]+)?)(?:f32|f64)?)|(?:0(?:b[01_]+|(?:o[0-7_]+)|(?:x[0-9a-fA-F_]+))|(?:[0-9][0-9_]*))(?:u8|u16|u32|u64|i8|i16|i32|i64|isize|usize)?/,token:"number"},{regex:/(let(?:\s+mut)?|fn|enum|mod|struct|type|union)(\s+)([a-zA-Z_][a-zA-Z0-9_]*)/,token:["keyword",null,"def"]},{regex:/(?:abstract|alignof|as|async|await|box|break|continue|const|crate|do|dyn|else|enum|extern|fn|for|final|if|impl|in|loop|macro|match|mod|move|offsetof|override|priv|proc|pub|pure|ref|return|self|sizeof|static|struct|super|trait|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,token:"keyword"},{regex:/\b(?:Self|isize|usize|char|bool|u8|u16|u32|u64|f16|f32|f64|i8|i16|i32|i64|str|Option)\b/,token:"atom"},{regex:/\b(?:true|false|Some|None|Ok|Err)\b/,token:"builtin"},{regex:/\b(fn)(\s+)([a-zA-Z_][a-zA-Z0-9_]*)/,token:["keyword",null,"def"]},{regex:/#!?\[.*\]/,token:"meta"},{regex:/\/\/.*/,token:"comment"},{regex:/\/\*/,token:"comment",next:"comment"},{regex:/[-+\/*=<>!]+/,token:"operator"},{regex:/[a-zA-Z_]\w*!/,token:"macroName"},{regex:/[a-zA-Z_]\w*/,token:"variable"},{regex:/[\{\[\(]/,indent:!0},{regex:/[\}\]\)]/,dedent:!0}],string:[{regex:/"/,token:"string",next:"start"},{regex:/(?:[^\\"]|\\(?:.|$))*/,token:"string"}],string_raw:[{regex:/"/,token:"string",next:"start"},{regex:/[^"]*/,token:"string"}],string_raw_hash:[{regex:/"#+/,token:"string",next:"start"},{regex:/(?:[^"]|"(?!#))*/,token:"string"}],comment:[{regex:/.*?\*\//,token:"comment",next:"start"},{regex:/.*/,token:"comment"}],languageData:{name:"rust",dontIndentStates:["comment"],indentOnInput:/^\s*\}$/,commentTokens:{line:"//",block:{open:"/*",close:"*/"}}}});export{t as rust};
@@ -1,10 +1,10 @@
1
- import{t,w,Or,R,L,z,P,U,q,G,p,Di,h,jn}from"./index-cgzw43bc.js";function yt(e){var o=e.length/6|0,a=Array(o),u=0;while(u<o)a[u]="#"+e.slice(u*6,++u*6);return a}var gt=yt("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab");function st(e,o){let a;if(o===void 0){for(let u of e)if(u!=null&&(a<u||a===void 0&&u>=u))a=u}else{let u=-1;for(let c of e)if((c=o(c,++u,e))!=null&&(a<c||a===void 0&&c>=c))a=c}return a}function et(e,o){let a;if(o===void 0){for(let u of e)if(u!=null&&(a>u||a===void 0&&u>=u))a=u}else{let u=-1;for(let c of e)if((c=o(c,++u,e))!=null&&(a>c||a===void 0&&c>=c))a=c}return a}function rt(e,o){let a=0;if(o===void 0){for(let u of e)if(u=+u)a+=u}else{let u=-1;for(let c of e)if(c=+o(c,++u,e))a+=c}return a}function Gt(e){return e.target.depth}function xt(e){return e.depth}function kt(e,o){return o-1-e.height}function at(e,o){return e.sourceLinks.length?e.depth:o-1}function _t(e){return e.targetLinks.length?e.depth:e.sourceLinks.length?et(e.sourceLinks,Gt)-1:0}function nt(e){return function(){return e}}function Ct(e,o){return it(e.source,o.source)||e.index-o.index}function Pt(e,o){return it(e.target,o.target)||e.index-o.index}function it(e,o){return e.y0-o.y0}function vt(e){return e.value}function zt(e){return e.index}function Dt(e){return e.nodes}function Yt(e){return e.links}function Tt(e,o){let a=e.get(o);if(!a)throw Error("missing: "+o);return a}function Ot({nodes:e}){for(let o of e){let a=o.y0,u=a;for(let c of o.sourceLinks)c.y0=a+c.width/2,a+=c.width;for(let c of o.targetLinks)c.y1=u+c.width/2,u+=c.width}}function lt(){let e=0,o=0,a=1,u=1,c=24,b=8,g,k=zt,i=at,l,d,_=Dt,v=Yt,y=6;function S(){let r={nodes:_.apply(null,arguments),links:v.apply(null,arguments)};return M(r),O(r),N(r),I(r),F(r),Ot(r),r}S.update=function(r){return Ot(r),r},S.nodeId=function(r){return arguments.length?(k=typeof r==="function"?r:nt(r),S):k},S.nodeAlign=function(r){return arguments.length?(i=typeof r==="function"?r:nt(r),S):i},S.nodeSort=function(r){return arguments.length?(l=r,S):l},S.nodeWidth=function(r){return arguments.length?(c=+r,S):c},S.nodePadding=function(r){return arguments.length?(b=g=+r,S):b},S.nodes=function(r){return arguments.length?(_=typeof r==="function"?r:nt(r),S):_},S.links=function(r){return arguments.length?(v=typeof r==="function"?r:nt(r),S):v},S.linkSort=function(r){return arguments.length?(d=r,S):d},S.size=function(r){return arguments.length?(e=o=0,a=+r[0],u=+r[1],S):[a-e,u-o]},S.extent=function(r){return arguments.length?(e=+r[0][0],a=+r[1][0],o=+r[0][1],u=+r[1][1],S):[[e,o],[a,u]]},S.iterations=function(r){return arguments.length?(y=+r,S):y};function M({nodes:r,links:f}){for(let[n,s]of r.entries())s.index=n,s.sourceLinks=[],s.targetLinks=[];let m=new Map(r.map((n,s)=>[k(n,s,r),n]));for(let[n,s]of f.entries()){s.index=n;let{source:x,target:E}=s;if(typeof x!=="object")x=s.source=Tt(m,x);if(typeof E!=="object")E=s.target=Tt(m,E);x.sourceLinks.push(s),E.targetLinks.push(s)}if(d!=null)for(let{sourceLinks:n,targetLinks:s}of r)n.sort(d),s.sort(d)}function O({nodes:r}){for(let f of r)f.value=f.fixedValue===void 0?Math.max(rt(f.sourceLinks,vt),rt(f.targetLinks,vt)):f.fixedValue}function N({nodes:r}){let f=r.length,m=new Set(r),n=new Set,s=0;while(m.size){for(let x of m){x.depth=s;for(let{target:E}of x.sourceLinks)n.add(E)}if(++s>f)throw Error("circular link");m=n,n=new Set}}function I({nodes:r}){let f=r.length,m=new Set(r),n=new Set,s=0;while(m.size){for(let x of m){x.height=s;for(let{source:E}of x.targetLinks)n.add(E)}if(++s>f)throw Error("circular link");m=n,n=new Set}}function D({nodes:r}){let f=st(r,(s)=>s.depth)+1,m=(a-e-c)/(f-1),n=Array(f);for(let s of r){let x=Math.max(0,Math.min(f-1,Math.floor(i.call(null,s,f))));if(s.layer=x,s.x0=e+x*m,s.x1=s.x0+c,n[x])n[x].push(s);else n[x]=[s]}if(l)for(let s of n)s.sort(l);return n}function V(r){let f=et(r,(m)=>(u-o-(m.length-1)*g)/rt(m,vt));for(let m of r){let n=o;for(let s of m){s.y0=n,s.y1=n+s.value*f,n=s.y1+g;for(let x of s.sourceLinks)x.width=x.value*f}n=(u-n+g)/(m.length+1);for(let s=0;s<m.length;++s){let x=m[s];x.y0+=n*(s+1),x.y1+=n*(s+1)}K(m)}}function F(r){let f=D(r);g=Math.min(b,(u-o)/(st(f,(m)=>m.length)-1)),V(f);for(let m=0;m<y;++m){let n=Math.pow(0.99,m),s=Math.max(1-n,(m+1)/y);Y(f,n,s),A(f,n,s)}}function A(r,f,m){for(let n=1,s=r.length;n<s;++n){let x=r[n];for(let E of x){let Q=0,B=0;for(let{source:T,value:mt}of E.targetLinks){let ot=mt*(E.layer-T.layer);Q+=C(T,E)*ot,B+=ot}if(!(B>0))continue;let H=(Q/B-E.y0)*f;E.y0+=H,E.y1+=H,tt(E)}if(l===void 0)x.sort(it);X(x,m)}}function Y(r,f,m){for(let n=r.length,s=n-2;s>=0;--s){let x=r[s];for(let E of x){let Q=0,B=0;for(let{target:T,value:mt}of E.sourceLinks){let ot=mt*(T.layer-E.layer);Q+=W(E,T)*ot,B+=ot}if(!(B>0))continue;let H=(Q/B-E.y0)*f;E.y0+=H,E.y1+=H,tt(E)}if(l===void 0)x.sort(it);X(x,m)}}function X(r,f){let m=r.length>>1,n=r[m];j(r,n.y0-g,m-1,f),J(r,n.y1+g,m+1,f),j(r,u,r.length-1,f),J(r,o,0,f)}function J(r,f,m,n){for(;m<r.length;++m){let s=r[m],x=(f-s.y0)*n;if(x>0.000001)s.y0+=x,s.y1+=x;f=s.y1+g}}function j(r,f,m,n){for(;m>=0;--m){let s=r[m],x=(s.y1-f)*n;if(x>0.000001)s.y0-=x,s.y1-=x;f=s.y0-g}}function tt({sourceLinks:r,targetLinks:f}){if(d===void 0){for(let{source:{sourceLinks:m}}of f)m.sort(Pt);for(let{target:{targetLinks:m}}of r)m.sort(Ct)}}function K(r){if(d===void 0)for(let{sourceLinks:f,targetLinks:m}of r)f.sort(Pt),m.sort(Ct)}function C(r,f){let m=r.y0-(r.sourceLinks.length-1)*g/2;for(let{target:n,width:s}of r.sourceLinks){if(n===f)break;m+=s+g}for(let{source:n,width:s}of f.targetLinks){if(n===r)break;m-=s}return m}function W(r,f){let m=f.y0-(f.targetLinks.length-1)*g/2;for(let{source:n,width:s}of f.targetLinks){if(n===r)break;m+=s+g}for(let{target:n,width:s}of r.sourceLinks){if(n===f)break;m-=s}return m}return S}var bt=Math.PI,St=2*bt,Z=0.000001,jt=St-Z;function Lt(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function Rt(){return new Lt}Lt.prototype=Rt.prototype={constructor:Lt,moveTo:function(e,o){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+o)},closePath:function(){if(this._x1!==null)this._x1=this._x0,this._y1=this._y0,this._+="Z"},lineTo:function(e,o){this._+="L"+(this._x1=+e)+","+(this._y1=+o)},quadraticCurveTo:function(e,o,a,u){this._+="Q"+ +e+","+ +o+","+(this._x1=+a)+","+(this._y1=+u)},bezierCurveTo:function(e,o,a,u,c,b){this._+="C"+ +e+","+ +o+","+ +a+","+ +u+","+(this._x1=+c)+","+(this._y1=+b)},arcTo:function(e,o,a,u,c){e=+e,o=+o,a=+a,u=+u,c=+c;var b=this._x1,g=this._y1,k=a-e,i=u-o,l=b-e,d=g-o,_=l*l+d*d;if(c<0)throw Error("negative radius: "+c);if(this._x1===null)this._+="M"+(this._x1=e)+","+(this._y1=o);else if(!(_>Z));else if(!(Math.abs(d*k-i*l)>Z)||!c)this._+="L"+(this._x1=e)+","+(this._y1=o);else{var v=a-b,y=u-g,S=k*k+i*i,M=v*v+y*y,O=Math.sqrt(S),N=Math.sqrt(_),I=c*Math.tan((bt-Math.acos((S+_-M)/(2*O*N)))/2),D=I/N,V=I/O;if(Math.abs(D-1)>Z)this._+="L"+(e+D*l)+","+(o+D*d);this._+="A"+c+","+c+",0,0,"+ +(d*v>l*y)+","+(this._x1=e+V*k)+","+(this._y1=o+V*i)}},arc:function(e,o,a,u,c,b){e=+e,o=+o,a=+a,b=!!b;var g=a*Math.cos(u),k=a*Math.sin(u),i=e+g,l=o+k,d=1^b,_=b?u-c:c-u;if(a<0)throw Error("negative radius: "+a);if(this._x1===null)this._+="M"+i+","+l;else if(Math.abs(this._x1-i)>Z||Math.abs(this._y1-l)>Z)this._+="L"+i+","+l;if(!a)return;if(_<0)_=_%St+St;if(_>jt)this._+="A"+a+","+a+",0,1,"+d+","+(e-g)+","+(o-k)+"A"+a+","+a+",0,1,"+d+","+(this._x1=i)+","+(this._y1=l);else if(_>Z)this._+="A"+a+","+a+",0,"+ +(_>=bt)+","+d+","+(this._x1=e+a*Math.cos(c))+","+(this._y1=o+a*Math.sin(c))},rect:function(e,o,a,u){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+o)+"h"+ +a+"v"+ +u+"h"+-a+"Z"},toString:function(){return this._}};var wt=Rt;var Mt=Array.prototype.slice;function ut(e){return function(){return e}}function Bt(e){return e[0]}function Nt(e){return e[1]}function $t(e){return e.source}function Vt(e){return e.target}function Ft(e){var o=$t,a=Vt,u=Bt,c=Nt,b=null;function g(){var k,i=Mt.call(arguments),l=o.apply(this,i),d=a.apply(this,i);if(!b)b=k=wt();if(e(b,+u.apply(this,(i[0]=l,i)),+c.apply(this,i),+u.apply(this,(i[0]=d,i)),+c.apply(this,i)),k)return b=null,k+""||null}return g.source=function(k){return arguments.length?(o=k,g):o},g.target=function(k){return arguments.length?(a=k,g):a},g.x=function(k){return arguments.length?(u=typeof k==="function"?k:ut(+k),g):u},g.y=function(k){return arguments.length?(c=typeof k==="function"?k:ut(+k),g):c},g.context=function(k){return arguments.length?(b=k==null?null:k,g):b},g}function Wt(e,o,a,u,c){e.moveTo(o,a),e.bezierCurveTo(o=(o+u)/2,a,o,c,u,c)}function Et(){return Ft(Wt)}function Ut(e){return[e.source.x1,e.y0]}function Ht(e){return[e.target.x0,e.y1]}function ft(){return Et().source(Ut).target(Ht)}var At=function(){var e=t(function(k,i,l,d){for(l=l||{},d=k.length;d--;l[k[d]]=i);return l},"o"),o=[1,9],a=[1,10],u=[1,5,10,12],c={trace:t(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SANKEY:4,NEWLINE:5,csv:6,opt_eof:7,record:8,csv_tail:9,EOF:10,"field[source]":11,COMMA:12,"field[target]":13,"field[value]":14,field:15,escaped:16,non_escaped:17,DQUOTE:18,ESCAPED_TEXT:19,NON_ESCAPED_TEXT:20,$accept:0,$end:1},terminals_:{2:"error",4:"SANKEY",5:"NEWLINE",10:"EOF",11:"field[source]",12:"COMMA",13:"field[target]",14:"field[value]",18:"DQUOTE",19:"ESCAPED_TEXT",20:"NON_ESCAPED_TEXT"},productions_:[0,[3,4],[6,2],[9,2],[9,0],[7,1],[7,0],[8,5],[15,1],[15,1],[16,3],[17,1]],performAction:t(function(i,l,d,_,v,y,S){var M=y.length-1;switch(v){case 7:let O=_.findOrCreateNode(y[M-4].trim().replaceAll('""','"')),N=_.findOrCreateNode(y[M-2].trim().replaceAll('""','"')),I=parseFloat(y[M].trim());_.addLink(O,N,I);break;case 8:case 9:case 11:this.$=y[M];break;case 10:this.$=y[M-1];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3]},{6:4,8:5,15:6,16:7,17:8,18:o,20:a},{1:[2,6],7:11,10:[1,12]},e(a,[2,4],{9:13,5:[1,14]}),{12:[1,15]},e(u,[2,8]),e(u,[2,9]),{19:[1,16]},e(u,[2,11]),{1:[2,1]},{1:[2,5]},e(a,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:o,20:a},{15:18,16:7,17:8,18:o,20:a},{18:[1,19]},e(a,[2,3]),{12:[1,20]},e(u,[2,10]),{15:21,16:7,17:8,18:o,20:a},e([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},parseError:t(function(i,l){if(l.recoverable)this.trace(i);else{var d=Error(i);throw d.hash=l,d}},"parseError"),parse:t(function(i){var l=this,d=[0],_=[],v=[null],y=[],S=this.table,M="",O=0,N=0,I=0,D=2,V=1,F=y.slice.call(arguments,1),A=Object.create(this.lexer),Y={yy:{}};for(var X in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,X))Y.yy[X]=this.yy[X];if(A.setInput(i,Y.yy),Y.yy.lexer=A,Y.yy.parser=this,typeof A.yylloc>"u")A.yylloc={};var J=A.yylloc;y.push(J);var j=A.options&&A.options.ranges;if(typeof Y.yy.parseError==="function")this.parseError=Y.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function tt(T){d.length=d.length-2*T,v.length=v.length-T,y.length=y.length-T}t(tt,"popStack");function K(){var T=_.pop()||A.lex()||V;if(typeof T!=="number"){if(T instanceof Array)_=T,T=_.pop();T=l.symbols_[T]||T}return T}t(K,"lex");var C,W,r,f,m,n,s={},x,E,Q,B;while(!0){if(r=d[d.length-1],this.defaultActions[r])f=this.defaultActions[r];else{if(C===null||typeof C>"u")C=K();f=S[r]&&S[r][C]}if(typeof f>"u"||!f.length||!f[0]){var H="";B=[];for(x in S[r])if(this.terminals_[x]&&x>D)B.push("'"+this.terminals_[x]+"'");if(A.showPosition)H="Parse error on line "+(O+1)+`:
2
- `+A.showPosition()+`
3
- Expecting `+B.join(", ")+", got '"+(this.terminals_[C]||C)+"'";else H="Parse error on line "+(O+1)+": Unexpected "+(C==V?"end of input":"'"+(this.terminals_[C]||C)+"'");this.parseError(H,{text:A.match,token:this.terminals_[C]||C,line:A.yylineno,loc:J,expected:B})}if(f[0]instanceof Array&&f.length>1)throw Error("Parse Error: multiple actions possible at state: "+r+", token: "+C);switch(f[0]){case 1:if(d.push(C),v.push(A.yytext),y.push(A.yylloc),d.push(f[1]),C=null,!W){if(N=A.yyleng,M=A.yytext,O=A.yylineno,J=A.yylloc,I>0)I--}else C=W,W=null;break;case 2:if(E=this.productions_[f[1]][1],s.$=v[v.length-E],s._$={first_line:y[y.length-(E||1)].first_line,last_line:y[y.length-1].last_line,first_column:y[y.length-(E||1)].first_column,last_column:y[y.length-1].last_column},j)s._$.range=[y[y.length-(E||1)].range[0],y[y.length-1].range[1]];if(n=this.performAction.apply(s,[M,N,O,Y.yy,f[1],v,y].concat(F)),typeof n<"u")return n;if(E)d=d.slice(0,-1*E*2),v=v.slice(0,-1*E),y=y.slice(0,-1*E);d.push(this.productions_[f[1]][0]),v.push(s.$),y.push(s._$),Q=S[d[d.length-2]][d[d.length-1]],d.push(Q);break;case 3:return!0}}return!0},"parse")},b=function(){var k={EOF:1,parseError:t(function(l,d){if(this.yy.parser)this.yy.parser.parseError(l,d);else throw Error(l)},"parseError"),setInput:t(function(i,l){if(this.yy=l||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 l=i.match(/(?:\r\n?|\n).*/g);if(l)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 l=i.length,d=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-l),this.offset-=l;var _=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),d.length-1)this.yylineno-=d.length-1;var v=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:d?(d.length===_.length?this.yylloc.first_column:0)+_[_.length-d.length].length-d[0].length:this.yylloc.first_column-l},this.options.ranges)this.yylloc.range=[v[0],v[0]+this.yyleng-l];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).
1
+ import{t,w,$r,R,M,G,z,j,H,q,p,Ri,h,Hn}from"./index-v5npdwy2.js";function yt(e){var o=e.length/6|0,a=Array(o),u=0;while(u<o)a[u]="#"+e.slice(u*6,++u*6);return a}var gt=yt("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab");function st(e,o){let a;if(o===void 0){for(let u of e)if(u!=null&&(a<u||a===void 0&&u>=u))a=u}else{let u=-1;for(let c of e)if((c=o(c,++u,e))!=null&&(a<c||a===void 0&&c>=c))a=c}return a}function et(e,o){let a;if(o===void 0){for(let u of e)if(u!=null&&(a>u||a===void 0&&u>=u))a=u}else{let u=-1;for(let c of e)if((c=o(c,++u,e))!=null&&(a>c||a===void 0&&c>=c))a=c}return a}function rt(e,o){let a=0;if(o===void 0){for(let u of e)if(u=+u)a+=u}else{let u=-1;for(let c of e)if(c=+o(c,++u,e))a+=c}return a}function Gt(e){return e.target.depth}function xt(e){return e.depth}function kt(e,o){return o-1-e.height}function at(e,o){return e.sourceLinks.length?e.depth:o-1}function _t(e){return e.targetLinks.length?e.depth:e.sourceLinks.length?et(e.sourceLinks,Gt)-1:0}function nt(e){return function(){return e}}function Ct(e,o){return it(e.source,o.source)||e.index-o.index}function Pt(e,o){return it(e.target,o.target)||e.index-o.index}function it(e,o){return e.y0-o.y0}function vt(e){return e.value}function zt(e){return e.index}function Dt(e){return e.nodes}function Yt(e){return e.links}function Tt(e,o){let a=e.get(o);if(!a)throw Error("missing: "+o);return a}function Ot({nodes:e}){for(let o of e){let a=o.y0,u=a;for(let c of o.sourceLinks)c.y0=a+c.width/2,a+=c.width;for(let c of o.targetLinks)c.y1=u+c.width/2,u+=c.width}}function lt(){let e=0,o=0,a=1,u=1,c=24,b=8,g,k=zt,i=at,l,d,_=Dt,v=Yt,y=6;function S(){let r={nodes:_.apply(null,arguments),links:v.apply(null,arguments)};return T(r),P(r),B(r),N(r),F(r),Ot(r),r}S.update=function(r){return Ot(r),r},S.nodeId=function(r){return arguments.length?(k=typeof r==="function"?r:nt(r),S):k},S.nodeAlign=function(r){return arguments.length?(i=typeof r==="function"?r:nt(r),S):i},S.nodeSort=function(r){return arguments.length?(l=r,S):l},S.nodeWidth=function(r){return arguments.length?(c=+r,S):c},S.nodePadding=function(r){return arguments.length?(b=g=+r,S):b},S.nodes=function(r){return arguments.length?(_=typeof r==="function"?r:nt(r),S):_},S.links=function(r){return arguments.length?(v=typeof r==="function"?r:nt(r),S):v},S.linkSort=function(r){return arguments.length?(d=r,S):d},S.size=function(r){return arguments.length?(e=o=0,a=+r[0],u=+r[1],S):[a-e,u-o]},S.extent=function(r){return arguments.length?(e=+r[0][0],a=+r[1][0],o=+r[0][1],u=+r[1][1],S):[[e,o],[a,u]]},S.iterations=function(r){return arguments.length?(y=+r,S):y};function T({nodes:r,links:f}){for(let[n,s]of r.entries())s.index=n,s.sourceLinks=[],s.targetLinks=[];let m=new Map(r.map((n,s)=>[k(n,s,r),n]));for(let[n,s]of f.entries()){s.index=n;let{source:x,target:L}=s;if(typeof x!=="object")x=s.source=Tt(m,x);if(typeof L!=="object")L=s.target=Tt(m,L);x.sourceLinks.push(s),L.targetLinks.push(s)}if(d!=null)for(let{sourceLinks:n,targetLinks:s}of r)n.sort(d),s.sort(d)}function P({nodes:r}){for(let f of r)f.value=f.fixedValue===void 0?Math.max(rt(f.sourceLinks,vt),rt(f.targetLinks,vt)):f.fixedValue}function B({nodes:r}){let f=r.length,m=new Set(r),n=new Set,s=0;while(m.size){for(let x of m){x.depth=s;for(let{target:L}of x.sourceLinks)n.add(L)}if(++s>f)throw Error("circular link");m=n,n=new Set}}function N({nodes:r}){let f=r.length,m=new Set(r),n=new Set,s=0;while(m.size){for(let x of m){x.height=s;for(let{source:L}of x.targetLinks)n.add(L)}if(++s>f)throw Error("circular link");m=n,n=new Set}}function I({nodes:r}){let f=st(r,(s)=>s.depth)+1,m=(a-e-c)/(f-1),n=Array(f);for(let s of r){let x=Math.max(0,Math.min(f-1,Math.floor(i.call(null,s,f))));if(s.layer=x,s.x0=e+x*m,s.x1=s.x0+c,n[x])n[x].push(s);else n[x]=[s]}if(l)for(let s of n)s.sort(l);return n}function V(r){let f=et(r,(m)=>(u-o-(m.length-1)*g)/rt(m,vt));for(let m of r){let n=o;for(let s of m){s.y0=n,s.y1=n+s.value*f,n=s.y1+g;for(let x of s.sourceLinks)x.width=x.value*f}n=(u-n+g)/(m.length+1);for(let s=0;s<m.length;++s){let x=m[s];x.y0+=n*(s+1),x.y1+=n*(s+1)}K(m)}}function F(r){let f=I(r);g=Math.min(b,(u-o)/(st(f,(m)=>m.length)-1)),V(f);for(let m=0;m<y;++m){let n=Math.pow(0.99,m),s=Math.max(1-n,(m+1)/y);D(f,n,s),E(f,n,s)}}function E(r,f,m){for(let n=1,s=r.length;n<s;++n){let x=r[n];for(let L of x){let Q=0,O=0;for(let{source:C,value:mt}of L.targetLinks){let ot=mt*(L.layer-C.layer);Q+=A(C,L)*ot,O+=ot}if(!(O>0))continue;let U=(Q/O-L.y0)*f;L.y0+=U,L.y1+=U,tt(L)}if(l===void 0)x.sort(it);X(x,m)}}function D(r,f,m){for(let n=r.length,s=n-2;s>=0;--s){let x=r[s];for(let L of x){let Q=0,O=0;for(let{target:C,value:mt}of L.sourceLinks){let ot=mt*(C.layer-L.layer);Q+=W(L,C)*ot,O+=ot}if(!(O>0))continue;let U=(Q/O-L.y0)*f;L.y0+=U,L.y1+=U,tt(L)}if(l===void 0)x.sort(it);X(x,m)}}function X(r,f){let m=r.length>>1,n=r[m];Y(r,n.y0-g,m-1,f),J(r,n.y1+g,m+1,f),Y(r,u,r.length-1,f),J(r,o,0,f)}function J(r,f,m,n){for(;m<r.length;++m){let s=r[m],x=(f-s.y0)*n;if(x>0.000001)s.y0+=x,s.y1+=x;f=s.y1+g}}function Y(r,f,m,n){for(;m>=0;--m){let s=r[m],x=(s.y1-f)*n;if(x>0.000001)s.y0-=x,s.y1-=x;f=s.y0-g}}function tt({sourceLinks:r,targetLinks:f}){if(d===void 0){for(let{source:{sourceLinks:m}}of f)m.sort(Pt);for(let{target:{targetLinks:m}}of r)m.sort(Ct)}}function K(r){if(d===void 0)for(let{sourceLinks:f,targetLinks:m}of r)f.sort(Pt),m.sort(Ct)}function A(r,f){let m=r.y0-(r.sourceLinks.length-1)*g/2;for(let{target:n,width:s}of r.sourceLinks){if(n===f)break;m+=s+g}for(let{source:n,width:s}of f.targetLinks){if(n===r)break;m-=s}return m}function W(r,f){let m=f.y0-(f.targetLinks.length-1)*g/2;for(let{source:n,width:s}of f.targetLinks){if(n===r)break;m+=s+g}for(let{target:n,width:s}of r.sourceLinks){if(n===f)break;m-=s}return m}return S}var bt=Math.PI,St=2*bt,Z=0.000001,jt=St-Z;function Lt(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function Rt(){return new Lt}Lt.prototype=Rt.prototype={constructor:Lt,moveTo:function(e,o){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+o)},closePath:function(){if(this._x1!==null)this._x1=this._x0,this._y1=this._y0,this._+="Z"},lineTo:function(e,o){this._+="L"+(this._x1=+e)+","+(this._y1=+o)},quadraticCurveTo:function(e,o,a,u){this._+="Q"+ +e+","+ +o+","+(this._x1=+a)+","+(this._y1=+u)},bezierCurveTo:function(e,o,a,u,c,b){this._+="C"+ +e+","+ +o+","+ +a+","+ +u+","+(this._x1=+c)+","+(this._y1=+b)},arcTo:function(e,o,a,u,c){e=+e,o=+o,a=+a,u=+u,c=+c;var b=this._x1,g=this._y1,k=a-e,i=u-o,l=b-e,d=g-o,_=l*l+d*d;if(c<0)throw Error("negative radius: "+c);if(this._x1===null)this._+="M"+(this._x1=e)+","+(this._y1=o);else if(!(_>Z));else if(!(Math.abs(d*k-i*l)>Z)||!c)this._+="L"+(this._x1=e)+","+(this._y1=o);else{var v=a-b,y=u-g,S=k*k+i*i,T=v*v+y*y,P=Math.sqrt(S),B=Math.sqrt(_),N=c*Math.tan((bt-Math.acos((S+_-T)/(2*P*B)))/2),I=N/B,V=N/P;if(Math.abs(I-1)>Z)this._+="L"+(e+I*l)+","+(o+I*d);this._+="A"+c+","+c+",0,0,"+ +(d*v>l*y)+","+(this._x1=e+V*k)+","+(this._y1=o+V*i)}},arc:function(e,o,a,u,c,b){e=+e,o=+o,a=+a,b=!!b;var g=a*Math.cos(u),k=a*Math.sin(u),i=e+g,l=o+k,d=1^b,_=b?u-c:c-u;if(a<0)throw Error("negative radius: "+a);if(this._x1===null)this._+="M"+i+","+l;else if(Math.abs(this._x1-i)>Z||Math.abs(this._y1-l)>Z)this._+="L"+i+","+l;if(!a)return;if(_<0)_=_%St+St;if(_>jt)this._+="A"+a+","+a+",0,1,"+d+","+(e-g)+","+(o-k)+"A"+a+","+a+",0,1,"+d+","+(this._x1=i)+","+(this._y1=l);else if(_>Z)this._+="A"+a+","+a+",0,"+ +(_>=bt)+","+d+","+(this._x1=e+a*Math.cos(c))+","+(this._y1=o+a*Math.sin(c))},rect:function(e,o,a,u){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+o)+"h"+ +a+"v"+ +u+"h"+-a+"Z"},toString:function(){return this._}};var wt=Rt;var Mt=Array.prototype.slice;function ut(e){return function(){return e}}function Bt(e){return e[0]}function Nt(e){return e[1]}function $t(e){return e.source}function Vt(e){return e.target}function Ft(e){var o=$t,a=Vt,u=Bt,c=Nt,b=null;function g(){var k,i=Mt.call(arguments),l=o.apply(this,i),d=a.apply(this,i);if(!b)b=k=wt();if(e(b,+u.apply(this,(i[0]=l,i)),+c.apply(this,i),+u.apply(this,(i[0]=d,i)),+c.apply(this,i)),k)return b=null,k+""||null}return g.source=function(k){return arguments.length?(o=k,g):o},g.target=function(k){return arguments.length?(a=k,g):a},g.x=function(k){return arguments.length?(u=typeof k==="function"?k:ut(+k),g):u},g.y=function(k){return arguments.length?(c=typeof k==="function"?k:ut(+k),g):c},g.context=function(k){return arguments.length?(b=k==null?null:k,g):b},g}function Wt(e,o,a,u,c){e.moveTo(o,a),e.bezierCurveTo(o=(o+u)/2,a,o,c,u,c)}function Et(){return Ft(Wt)}function Ut(e){return[e.source.x1,e.y0]}function Ht(e){return[e.target.x0,e.y1]}function ft(){return Et().source(Ut).target(Ht)}var At=function(){var e=t(function(k,i,l,d){for(l=l||{},d=k.length;d--;l[k[d]]=i);return l},"o"),o=[1,9],a=[1,10],u=[1,5,10,12],c={trace:t(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SANKEY:4,NEWLINE:5,csv:6,opt_eof:7,record:8,csv_tail:9,EOF:10,"field[source]":11,COMMA:12,"field[target]":13,"field[value]":14,field:15,escaped:16,non_escaped:17,DQUOTE:18,ESCAPED_TEXT:19,NON_ESCAPED_TEXT:20,$accept:0,$end:1},terminals_:{2:"error",4:"SANKEY",5:"NEWLINE",10:"EOF",11:"field[source]",12:"COMMA",13:"field[target]",14:"field[value]",18:"DQUOTE",19:"ESCAPED_TEXT",20:"NON_ESCAPED_TEXT"},productions_:[0,[3,4],[6,2],[9,2],[9,0],[7,1],[7,0],[8,5],[15,1],[15,1],[16,3],[17,1]],performAction:t(function(i,l,d,_,v,y,S){var T=y.length-1;switch(v){case 7:let P=_.findOrCreateNode(y[T-4].trim().replaceAll('""','"')),B=_.findOrCreateNode(y[T-2].trim().replaceAll('""','"')),N=parseFloat(y[T].trim());_.addLink(P,B,N);break;case 8:case 9:case 11:this.$=y[T];break;case 10:this.$=y[T-1];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3]},{6:4,8:5,15:6,16:7,17:8,18:o,20:a},{1:[2,6],7:11,10:[1,12]},e(a,[2,4],{9:13,5:[1,14]}),{12:[1,15]},e(u,[2,8]),e(u,[2,9]),{19:[1,16]},e(u,[2,11]),{1:[2,1]},{1:[2,5]},e(a,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:o,20:a},{15:18,16:7,17:8,18:o,20:a},{18:[1,19]},e(a,[2,3]),{12:[1,20]},e(u,[2,10]),{15:21,16:7,17:8,18:o,20:a},e([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},parseError:t(function(i,l){if(l.recoverable)this.trace(i);else{var d=Error(i);throw d.hash=l,d}},"parseError"),parse:t(function(i){var l=this,d=[0],_=[],v=[null],y=[],S=this.table,T="",P=0,B=0,N=0,I=2,V=1,F=y.slice.call(arguments,1),E=Object.create(this.lexer),D={yy:{}};for(var X in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,X))D.yy[X]=this.yy[X];if(E.setInput(i,D.yy),D.yy.lexer=E,D.yy.parser=this,typeof E.yylloc>"u")E.yylloc={};var J=E.yylloc;y.push(J);var Y=E.options&&E.options.ranges;if(typeof D.yy.parseError==="function")this.parseError=D.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function tt(C){d.length=d.length-2*C,v.length=v.length-C,y.length=y.length-C}t(tt,"popStack");function K(){var C=_.pop()||E.lex()||V;if(typeof C!=="number"){if(C instanceof Array)_=C,C=_.pop();C=l.symbols_[C]||C}return C}t(K,"lex");var A,W,r,f,m,n,s={},x,L,Q,O;while(!0){if(r=d[d.length-1],this.defaultActions[r])f=this.defaultActions[r];else{if(A===null||typeof A>"u")A=K();f=S[r]&&S[r][A]}if(typeof f>"u"||!f.length||!f[0]){var U="";O=[];for(x in S[r])if(this.terminals_[x]&&x>I)O.push("'"+this.terminals_[x]+"'");if(E.showPosition)U="Parse error on line "+(P+1)+`:
2
+ `+E.showPosition()+`
3
+ Expecting `+O.join(", ")+", got '"+(this.terminals_[A]||A)+"'";else U="Parse error on line "+(P+1)+": Unexpected "+(A==V?"end of input":"'"+(this.terminals_[A]||A)+"'");this.parseError(U,{text:E.match,token:this.terminals_[A]||A,line:E.yylineno,loc:J,expected:O})}if(f[0]instanceof Array&&f.length>1)throw Error("Parse Error: multiple actions possible at state: "+r+", token: "+A);switch(f[0]){case 1:if(d.push(A),v.push(E.yytext),y.push(E.yylloc),d.push(f[1]),A=null,!W){if(B=E.yyleng,T=E.yytext,P=E.yylineno,J=E.yylloc,N>0)N--}else A=W,W=null;break;case 2:if(L=this.productions_[f[1]][1],s.$=v[v.length-L],s._$={first_line:y[y.length-(L||1)].first_line,last_line:y[y.length-1].last_line,first_column:y[y.length-(L||1)].first_column,last_column:y[y.length-1].last_column},Y)s._$.range=[y[y.length-(L||1)].range[0],y[y.length-1].range[1]];if(n=this.performAction.apply(s,[T,B,P,D.yy,f[1],v,y].concat(F)),typeof n<"u")return n;if(L)d=d.slice(0,-1*L*2),v=v.slice(0,-1*L),y=y.slice(0,-1*L);d.push(this.productions_[f[1]][0]),v.push(s.$),y.push(s._$),Q=S[d[d.length-2]][d[d.length-1]],d.push(Q);break;case 3:return!0}}return!0},"parse")},b=function(){var k={EOF:1,parseError:t(function(l,d){if(this.yy.parser)this.yy.parser.parseError(l,d);else throw Error(l)},"parseError"),setInput:t(function(i,l){if(this.yy=l||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 l=i.match(/(?:\r\n?|\n).*/g);if(l)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 l=i.length,d=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-l),this.offset-=l;var _=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),d.length-1)this.yylineno-=d.length-1;var v=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:d?(d.length===_.length?this.yylloc.first_column:0)+_[_.length-d.length].length-d[0].length:this.yylloc.first_column-l},this.options.ranges)this.yylloc.range=[v[0],v[0]+this.yyleng-l];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(),l=Array(i.length+1).join("-");return i+this.upcomingInput()+`
5
5
  `+l+"^"},"showPosition"),test_match:t(function(i,l){var d,_,v;if(this.options.backtrack_lexer){if(v={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)v.yylloc.range=this.yylloc.range.slice(0)}if(_=i[0].match(/(?:\r\n?|\n).*/g),_)this.yylineno+=_.length;if(this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:_?_[_.length-1].length-_[_.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],d=this.performAction.call(this,this.yy,this,l,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input)this.done=!1;if(d)return d;else if(this._backtrack){for(var y in v)this[y]=v[y];return!1}return!1},"test_match"),next:t(function(){if(this.done)return this.EOF;if(!this._input)this.done=!0;var i,l,d,_;if(!this._more)this.yytext="",this.match="";var v=this._currentRules();for(var y=0;y<v.length;y++)if(d=this._input.match(this.rules[v[y]]),d&&(!l||d[0].length>l[0].length)){if(l=d,_=y,this.options.backtrack_lexer)if(i=this.test_match(d,v[y]),i!==!1)return i;else if(this._backtrack){l=!1;continue}else return!1;else if(!this.options.flex)break}if(l){if(i=this.test_match(l,v[_]),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 l=this.next();if(l)return l;else return this.lex()},"lex"),begin:t(function(l){this.conditionStack.push(l)},"begin"),popState:t(function(){var l=this.conditionStack.length-1;if(l>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(l){if(l=this.conditionStack.length-1-Math.abs(l||0),l>=0)return this.conditionStack[l];else return"INITIAL"},"topState"),pushState:t(function(l){this.begin(l)},"pushState"),stateStackSize:t(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:t(function(l,d,_,v){var y=v;switch(_){case 0:return this.pushState("csv"),4;break;case 1:return this.pushState("csv"),4;break;case 2:return 10;case 3:return 5;case 4:return 12;case 5:return this.pushState("escaped_text"),18;break;case 6:return 20;case 7:return this.popState("escaped_text"),18;break;case 8:return 19}},"anonymous"),rules:[/^(?:sankey-beta\b)/i,/^(?:sankey\b)/i,/^(?:$)/i,/^(?:((\u000D\u000A)|(\u000A)))/i,/^(?:(\u002C))/i,/^(?:(\u0022))/i,/^(?:([\u0020-\u0021\u0023-\u002B\u002D-\u007E])*)/i,/^(?:(\u0022)(?!(\u0022)))/i,/^(?:(([\u0020-\u0021\u0023-\u002B\u002D-\u007E])|(\u002C)|(\u000D)|(\u000A)|(\u0022)(\u0022))*)/i],conditions:{csv:{rules:[2,3,4,5,6,7,8],inclusive:!1},escaped_text:{rules:[7,8],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8],inclusive:!0}}};return k}();c.lexer=b;function g(){this.yy={}}return t(g,"Parser"),g.prototype=c,c.Parser=g,new g}();At.parser=At;var ct=At,dt=[],pt=[],ht=new Map,qt=t(()=>{dt=[],pt=[],ht=new Map,R()},"clear"),Xt=class{constructor(e,o,a=0){this.source=e,this.target=o,this.value=a}static{t(this,"SankeyLink")}},Jt=t((e,o,a)=>{dt.push(new Xt(e,o,a))},"addLink"),Qt=class{constructor(e){this.ID=e}static{t(this,"SankeyNode")}},Kt=t((e)=>{e=w.sanitizeText(e,p());let o=ht.get(e);if(o===void 0)o=new Qt(e),ht.set(e,o),pt.push(o);return o},"findOrCreateNode"),Zt=t(()=>pt,"getNodes"),te=t(()=>dt,"getLinks"),ee=t(()=>({nodes:pt.map((e)=>({id:e.ID})),links:dt.map((e)=>({source:e.source.ID,target:e.target.ID,value:e.value}))}),"getGraph"),re={nodesMap:ht,getConfig:t(()=>p().sankey,"getConfig"),getNodes:Zt,getLinks:te,getGraph:ee,addLink:Jt,findOrCreateNode:Kt,getAccTitle:z,setAccTitle:L,getAccDescription:U,setAccDescription:P,getDiagramTitle:G,setDiagramTitle:q,clear:qt},It=class e{static{t(this,"Uid")}static{this.count=0}static next(o){return new e(o+ ++e.count)}constructor(o){this.id=o,this.href=`#${o}`}toString(){return"url("+this.href+")"}},ne={left:xt,right:kt,center:_t,justify:at},oe=t((e)=>{let o=0,a=0;for(let u of e){let c=u.value??0;if(c>o)o=c,a=u.layer??0}return a},"findCentralNodeLayer"),se=t(function(e,o,a,u){let{securityLevel:c,sankey:b}=p(),g=Di.sankey,k;if(c==="sandbox")k=h("#i"+o);let i=c==="sandbox"?h(k.nodes()[0].contentDocument.body):h("body"),l=c==="sandbox"?i.select(`[id="${o}"]`):h(`[id="${o}"]`),d=b?.width??g.width,_=b?.height??g.width,v=b?.useMaxWidth??g.useMaxWidth,y=b?.nodeAlignment??g.nodeAlignment,S=b?.prefix??g.prefix,M=b?.suffix??g.suffix,O=b?.showValues??g.showValues,N=b?.nodeWidth??g.nodeWidth??10,I=b?.nodePadding??g.nodePadding??12,D=b?.labelStyle??g.labelStyle??"legacy",V=b?.nodeColors??{},F=u.db.getGraph(),A=ne[y];lt().nodeId((n)=>n.id).nodeWidth(N).nodePadding(I+(O?15:0)).nodeAlign(A).extent([[0,0],[d,_]])(F);let X=oe(F.nodes),J=jn(gt),j=t((n)=>V[n]??J(n),"getNodeColor");l.append("g").attr("class","nodes").selectAll(".node").data(F.nodes).join("g").attr("class","node").attr("id",(n)=>(n.uid=It.next("node-")).id).attr("transform",function(n){return"translate("+n.x0+","+n.y0+")"}).attr("x",(n)=>n.x0).attr("y",(n)=>n.y0).append("rect").attr("height",(n)=>n.y1-n.y0).attr("width",(n)=>n.x1-n.x0).attr("fill",(n)=>j(n.id));let tt=t(({id:n,value:s})=>{if(!O)return n;return`${n}
7
- ${S}${Math.round(s*100)/100}${M}`},"getText"),K=t((n)=>{if(D==="outlined"){if((n.layer??0)<X)return{x:n.x0-6,anchor:"end"};return{x:n.x1+6,anchor:"start"}}if(n.x0<d/2)return{x:n.x1+6,anchor:"start"};return{x:n.x0-6,anchor:"end"}},"getLabelPosition"),C=l.append("g").attr("class","node-labels").attr("font-size",14),W=t((n)=>C.selectAll(n?`.${n}`:"text").data(F.nodes).join("text").attr("class",n??null).attr("x",(s)=>K(s).x).attr("y",(s)=>(s.y1+s.y0)/2).attr("dy",`${O?"0":"0.35"}em`).attr("text-anchor",(s)=>K(s).anchor).text(tt),"appendLabel");if(D==="outlined")W("sankey-label-bg"),W("sankey-label-fg");else W();let r=l.append("g").attr("class","links").attr("fill","none").attr("stroke-opacity",0.5).selectAll(".link").data(F.links).join("g").attr("class","link").style("mix-blend-mode","multiply"),f=b?.linkColor??"gradient";if(f==="gradient"){let n=r.append("linearGradient").attr("id",(s)=>(s.uid=It.next("linearGradient-")).id).attr("gradientUnits","userSpaceOnUse").attr("x1",(s)=>s.source.x1).attr("x2",(s)=>s.target.x0);n.append("stop").attr("offset","0%").attr("stop-color",(s)=>j(s.source.id)),n.append("stop").attr("offset","100%").attr("stop-color",(s)=>j(s.target.id))}let m;switch(f){case"gradient":m=t((n)=>n.uid,"coloring");break;case"source":m=t((n)=>j(n.source.id),"coloring");break;case"target":m=t((n)=>j(n.target.id),"coloring");break;default:m=f}r.append("path").attr("d",ft()).attr("stroke",m).attr("stroke-width",(n)=>Math.max(1,n.width)),Or(void 0,l,0,v)},"draw"),ae={draw:se},ie=t((e)=>e.replaceAll(/^[^\S\n\r]+|[^\S\n\r]+$/g,"").replaceAll(/([\n\r])+/g,`
6
+ `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:t(function(){var l=this.next();if(l)return l;else return this.lex()},"lex"),begin:t(function(l){this.conditionStack.push(l)},"begin"),popState:t(function(){var l=this.conditionStack.length-1;if(l>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(l){if(l=this.conditionStack.length-1-Math.abs(l||0),l>=0)return this.conditionStack[l];else return"INITIAL"},"topState"),pushState:t(function(l){this.begin(l)},"pushState"),stateStackSize:t(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:t(function(l,d,_,v){var y=v;switch(_){case 0:return this.pushState("csv"),4;break;case 1:return this.pushState("csv"),4;break;case 2:return 10;case 3:return 5;case 4:return 12;case 5:return this.pushState("escaped_text"),18;break;case 6:return 20;case 7:return this.popState("escaped_text"),18;break;case 8:return 19}},"anonymous"),rules:[/^(?:sankey-beta\b)/i,/^(?:sankey\b)/i,/^(?:$)/i,/^(?:((\u000D\u000A)|(\u000A)))/i,/^(?:(\u002C))/i,/^(?:(\u0022))/i,/^(?:([\u0020-\u0021\u0023-\u002B\u002D-\u007E])*)/i,/^(?:(\u0022)(?!(\u0022)))/i,/^(?:(([\u0020-\u0021\u0023-\u002B\u002D-\u007E])|(\u002C)|(\u000D)|(\u000A)|(\u0022)(\u0022))*)/i],conditions:{csv:{rules:[2,3,4,5,6,7,8],inclusive:!1},escaped_text:{rules:[7,8],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8],inclusive:!0}}};return k}();c.lexer=b;function g(){this.yy={}}return t(g,"Parser"),g.prototype=c,c.Parser=g,new g}();At.parser=At;var ct=At,dt=[],pt=[],ht=new Map,qt=t(()=>{dt=[],pt=[],ht=new Map,R()},"clear"),Xt=class{constructor(e,o,a=0){this.source=e,this.target=o,this.value=a}static{t(this,"SankeyLink")}},Jt=t((e,o,a)=>{dt.push(new Xt(e,o,a))},"addLink"),Qt=class{constructor(e){this.ID=e}static{t(this,"SankeyNode")}},Kt=t((e)=>{e=w.sanitizeText(e,p());let o=ht.get(e);if(o===void 0)o=new Qt(e),ht.set(e,o),pt.push(o);return o},"findOrCreateNode"),Zt=t(()=>pt,"getNodes"),te=t(()=>dt,"getLinks"),ee=t(()=>({nodes:pt.map((e)=>({id:e.ID})),links:dt.map((e)=>({source:e.source.ID,target:e.target.ID,value:e.value}))}),"getGraph"),re={nodesMap:ht,getConfig:t(()=>p().sankey,"getConfig"),getNodes:Zt,getLinks:te,getGraph:ee,addLink:Jt,findOrCreateNode:Kt,getAccTitle:G,setAccTitle:M,getAccDescription:j,setAccDescription:z,getDiagramTitle:q,setDiagramTitle:H,clear:qt},It=class e{static{t(this,"Uid")}static{this.count=0}static next(o){return new e(o+ ++e.count)}constructor(o){this.id=o,this.href=`#${o}`}toString(){return"url("+this.href+")"}},ne={left:xt,right:kt,center:_t,justify:at},oe=t((e)=>{let o=0,a=0;for(let u of e){let c=u.value??0;if(c>o)o=c,a=u.layer??0}return a},"findCentralNodeLayer"),se=t(function(e,o,a,u){let{securityLevel:c,sankey:b}=p(),g=Ri.sankey,k;if(c==="sandbox")k=h("#i"+o);let i=c==="sandbox"?h(k.nodes()[0].contentDocument.body):h("body"),l=c==="sandbox"?i.select(`[id="${o}"]`):h(`[id="${o}"]`),d=b?.width??g.width,_=b?.height??g.width,v=b?.useMaxWidth??g.useMaxWidth,y=b?.nodeAlignment??g.nodeAlignment,S=b?.prefix??g.prefix,T=b?.suffix??g.suffix,P=b?.showValues??g.showValues,B=b?.nodeWidth??g.nodeWidth??10,N=b?.nodePadding??g.nodePadding??12,I=b?.labelStyle??g.labelStyle??"legacy",V=b?.nodeColors??{},F=u.db.getGraph(),E=ne[y];lt().nodeId((n)=>n.id).nodeWidth(B).nodePadding(N+(P?15:0)).nodeAlign(E).extent([[0,0],[d,_]])(F);let X=oe(F.nodes),J=Hn(gt),Y=t((n)=>V[n]??J(n),"getNodeColor");l.append("g").attr("class","nodes").selectAll(".node").data(F.nodes).join("g").attr("class","node").attr("id",(n)=>(n.uid=It.next("node-")).id).attr("transform",function(n){return"translate("+n.x0+","+n.y0+")"}).attr("x",(n)=>n.x0).attr("y",(n)=>n.y0).append("rect").attr("height",(n)=>n.y1-n.y0).attr("width",(n)=>n.x1-n.x0).attr("fill",(n)=>Y(n.id));let tt=t(({id:n,value:s})=>{if(!P)return n;return`${n}
7
+ ${S}${Math.round(s*100)/100}${T}`},"getText"),K=t((n)=>{if(I==="outlined"){if((n.layer??0)<X)return{x:n.x0-6,anchor:"end"};return{x:n.x1+6,anchor:"start"}}if(n.x0<d/2)return{x:n.x1+6,anchor:"start"};return{x:n.x0-6,anchor:"end"}},"getLabelPosition"),A=l.append("g").attr("class","node-labels").attr("font-size",14),W=t((n)=>A.selectAll(n?`.${n}`:"text").data(F.nodes).join("text").attr("class",n??null).attr("x",(s)=>K(s).x).attr("y",(s)=>(s.y1+s.y0)/2).attr("dy",`${P?"0":"0.35"}em`).attr("text-anchor",(s)=>K(s).anchor).text(tt),"appendLabel");if(I==="outlined")W("sankey-label-bg"),W("sankey-label-fg");else W();let r=l.append("g").attr("class","links").attr("fill","none").attr("stroke-opacity",0.5).selectAll(".link").data(F.links).join("g").attr("class","link").style("mix-blend-mode","multiply"),f=b?.linkColor??"gradient";if(f==="gradient"){let n=r.append("linearGradient").attr("id",(s)=>(s.uid=It.next("linearGradient-")).id).attr("gradientUnits","userSpaceOnUse").attr("x1",(s)=>s.source.x1).attr("x2",(s)=>s.target.x0);n.append("stop").attr("offset","0%").attr("stop-color",(s)=>Y(s.source.id)),n.append("stop").attr("offset","100%").attr("stop-color",(s)=>Y(s.target.id))}let m;switch(f){case"gradient":m=t((n)=>n.uid,"coloring");break;case"source":m=t((n)=>Y(n.source.id),"coloring");break;case"target":m=t((n)=>Y(n.target.id),"coloring");break;default:m=f}r.append("path").attr("d",ft()).attr("stroke",m).attr("stroke-width",(n)=>Math.max(1,n.width)),$r(void 0,l,0,v)},"draw"),ae={draw:se},ie=t((e)=>e.replaceAll(/^[^\S\n\r]+|[^\S\n\r]+$/g,"").replaceAll(/([\n\r])+/g,`
8
8
  `).trim(),"prepareTextForParsing"),le=t((e)=>`.label {
9
9
  font-family: ${e.fontFamily};
10
10
  }
@@ -1 +1 @@
1
- import{gs}from"./index-m9s9rg5k.js";var d=new Set(gs.properties),S=new Set(gs.colors),b=new Set(gs.values),T=new Set(gs.fonts);function v(n){return new RegExp("^"+n.join("|"))}var L=["true","false","null","auto"],x=new RegExp("^"+L.join("|")),R=["\\(","\\)","=",">","<","==",">=","<=","\\+","-","\\!=","/","\\*","%","and","or","not",";","\\{","\\}",":"],g=v(R),E=/^::?[a-zA-Z_][\w\-]*/,f;function o(n){return!n.peek()||n.match(/\s+$/,!1)}function z(n,e){let r=n.peek();if(r===")")return n.next(),e.tokenizer=t,"operator";else if(r==="(")return n.next(),n.eatSpace(),"operator";else if(r==="'"||r==='"')return e.tokenizer=w(n.next()),"string";else return e.tokenizer=w(")",!1),"string"}function y(n,e){return function(r,i){if(r.sol()&&r.indentation()<=n)return i.tokenizer=t,t(r,i);if(e&&r.skipTo("*/"))r.next(),r.next(),i.tokenizer=t;else r.skipToEnd();return"comment"}}function w(n,e){if(e==null)e=!0;function r(i,h){let l=i.next(),c=i.peek(),p=i.string.charAt(i.pos-2);if(l!=="\\"&&c===n||l===n&&p!=="\\"){if(l!==n&&e)i.next();if(o(i))h.cursorHalf=0;return h.tokenizer=t,"string"}else if(l==="#"&&c==="{")return h.tokenizer=H(r),i.next(),"operator";else return"string"}return r}function H(n){return function(e,r){if(e.peek()==="}")return e.next(),r.tokenizer=n,"operator";else return t(e,r)}}function u(n,e){if(n.indentCount==0){n.indentCount++;let i=n.scopes[0].offset+e.indentUnit;n.scopes.unshift({offset:i})}}function C(n){if(n.scopes.length==1)return;n.scopes.shift()}function t(n,e){let r=n.peek();if(n.match("/*"))return e.tokenizer=y(n.indentation(),!0),e.tokenizer(n,e);if(n.match("//"))return e.tokenizer=y(n.indentation(),!1),e.tokenizer(n,e);if(n.match("#{"))return e.tokenizer=H(t),"operator";if(r==='"'||r==="'")return n.next(),e.tokenizer=w(r),"string";if(!e.cursorHalf){if(r==="-"){if(n.match(/^-\w+-/))return"meta"}if(r==="."){if(n.next(),n.match(/^[\w-]+/))return u(e,n),"qualifier";else if(n.peek()==="#")return u(e,n),"tag"}if(r==="#"){if(n.next(),n.match(/^[\w-]+/))return u(e,n),"builtin";if(n.peek()==="#")return u(e,n),"tag"}if(r==="$")return n.next(),n.eatWhile(/[\w-]/),"variable-2";if(n.match(/^-?[0-9\.]+/))return"number";if(n.match(/^(px|em|in)\b/))return"unit";if(n.match(x))return"keyword";if(n.match(/^url/)&&n.peek()==="(")return e.tokenizer=z,"atom";if(r==="="){if(n.match(/^=[\w-]+/))return u(e,n),"meta"}if(r==="+"){if(n.match(/^\+[\w-]+/))return"meta"}if(r==="@"){if(n.match("@extend")){if(!n.match(/\s*[\w]/))C(e)}}if(n.match(/^@(else if|if|media|else|for|each|while|mixin|function)/))return u(e,n),"def";if(r==="@")return n.next(),n.eatWhile(/[\w-]/),"def";if(n.eatWhile(/[\w-]/))if(n.match(/ *: *[\w-\+\$#!\("']/,!1)){f=n.current().toLowerCase();let i=e.prevProp+"-"+f;if(d.has(i))return"property";else if(d.has(f))return e.prevProp=f,"property";else if(T.has(f))return"property";return"tag"}else if(n.match(/ *:/,!1))return u(e,n),e.cursorHalf=1,e.prevProp=n.current().toLowerCase(),"property";else if(n.match(/ *,/,!1))return"tag";else return u(e,n),"tag";if(r===":"){if(n.match(E))return"type";return n.next(),e.cursorHalf=1,"operator"}}else{if(r==="#"){if(n.next(),n.match(/[0-9a-fA-F]{6}|[0-9a-fA-F]{3}/)){if(o(n))e.cursorHalf=0;return"number"}}if(n.match(/^-?[0-9\.]+/)){if(o(n))e.cursorHalf=0;return"number"}if(n.match(/^(px|em|in)\b/)){if(o(n))e.cursorHalf=0;return"unit"}if(n.match(x)){if(o(n))e.cursorHalf=0;return"keyword"}if(n.match(/^url/)&&n.peek()==="("){if(e.tokenizer=z,o(n))e.cursorHalf=0;return"atom"}if(r==="$"){if(n.next(),n.eatWhile(/[\w-]/),o(n))e.cursorHalf=0;return"variable-2"}if(r==="!")return n.next(),e.cursorHalf=0,n.match(/^[\w]+/)?"keyword":"operator";if(n.match(g)){if(o(n))e.cursorHalf=0;return"operator"}if(n.eatWhile(/[\w-]/)){if(o(n))e.cursorHalf=0;if(f=n.current().toLowerCase(),b.has(f))return"atom";else if(S.has(f))return"keyword";else if(d.has(f))return e.prevProp=n.current().toLowerCase(),"property";else return"tag"}if(o(n))return e.cursorHalf=0,null}if(n.match(g))return"operator";return n.next(),null}function O(n,e){if(n.sol())e.indentCount=0;let r=e.tokenizer(n,e),i=n.current();if(i==="@return"||i==="}")C(e);if(r!==null){let l=n.pos-i.length+n.indentUnit*e.indentCount,c=[];for(let p=0;p<e.scopes.length;p++){let k=e.scopes[p];if(k.offset<=l)c.push(k)}e.scopes=c}return r}var W={name:"sass",startState:function(){return{tokenizer:t,scopes:[{offset:0,type:"sass"}],indentCount:0,cursorHalf:0,definedVars:[],definedMixins:[]}},token:function(n,e){let r=O(n,e);return e.lastToken={style:r,content:n.current()},r},indent:function(n){return n.scopes[0].offset},languageData:{commentTokens:{line:"//",block:{open:"/*",close:"*/"}},autocomplete:gs.all}};export{W as sass};
1
+ import{bs}from"./index-6s4mrdew.js";var d=new Set(bs.properties),S=new Set(bs.colors),b=new Set(bs.values),T=new Set(bs.fonts);function v(n){return new RegExp("^"+n.join("|"))}var L=["true","false","null","auto"],x=new RegExp("^"+L.join("|")),R=["\\(","\\)","=",">","<","==",">=","<=","\\+","-","\\!=","/","\\*","%","and","or","not",";","\\{","\\}",":"],g=v(R),E=/^::?[a-zA-Z_][\w\-]*/,f;function o(n){return!n.peek()||n.match(/\s+$/,!1)}function z(n,e){let r=n.peek();if(r===")")return n.next(),e.tokenizer=t,"operator";else if(r==="(")return n.next(),n.eatSpace(),"operator";else if(r==="'"||r==='"')return e.tokenizer=w(n.next()),"string";else return e.tokenizer=w(")",!1),"string"}function y(n,e){return function(r,i){if(r.sol()&&r.indentation()<=n)return i.tokenizer=t,t(r,i);if(e&&r.skipTo("*/"))r.next(),r.next(),i.tokenizer=t;else r.skipToEnd();return"comment"}}function w(n,e){if(e==null)e=!0;function r(i,h){let l=i.next(),c=i.peek(),p=i.string.charAt(i.pos-2);if(l!=="\\"&&c===n||l===n&&p!=="\\"){if(l!==n&&e)i.next();if(o(i))h.cursorHalf=0;return h.tokenizer=t,"string"}else if(l==="#"&&c==="{")return h.tokenizer=H(r),i.next(),"operator";else return"string"}return r}function H(n){return function(e,r){if(e.peek()==="}")return e.next(),r.tokenizer=n,"operator";else return t(e,r)}}function u(n,e){if(n.indentCount==0){n.indentCount++;let i=n.scopes[0].offset+e.indentUnit;n.scopes.unshift({offset:i})}}function C(n){if(n.scopes.length==1)return;n.scopes.shift()}function t(n,e){let r=n.peek();if(n.match("/*"))return e.tokenizer=y(n.indentation(),!0),e.tokenizer(n,e);if(n.match("//"))return e.tokenizer=y(n.indentation(),!1),e.tokenizer(n,e);if(n.match("#{"))return e.tokenizer=H(t),"operator";if(r==='"'||r==="'")return n.next(),e.tokenizer=w(r),"string";if(!e.cursorHalf){if(r==="-"){if(n.match(/^-\w+-/))return"meta"}if(r==="."){if(n.next(),n.match(/^[\w-]+/))return u(e,n),"qualifier";else if(n.peek()==="#")return u(e,n),"tag"}if(r==="#"){if(n.next(),n.match(/^[\w-]+/))return u(e,n),"builtin";if(n.peek()==="#")return u(e,n),"tag"}if(r==="$")return n.next(),n.eatWhile(/[\w-]/),"variable-2";if(n.match(/^-?[0-9\.]+/))return"number";if(n.match(/^(px|em|in)\b/))return"unit";if(n.match(x))return"keyword";if(n.match(/^url/)&&n.peek()==="(")return e.tokenizer=z,"atom";if(r==="="){if(n.match(/^=[\w-]+/))return u(e,n),"meta"}if(r==="+"){if(n.match(/^\+[\w-]+/))return"meta"}if(r==="@"){if(n.match("@extend")){if(!n.match(/\s*[\w]/))C(e)}}if(n.match(/^@(else if|if|media|else|for|each|while|mixin|function)/))return u(e,n),"def";if(r==="@")return n.next(),n.eatWhile(/[\w-]/),"def";if(n.eatWhile(/[\w-]/))if(n.match(/ *: *[\w-\+\$#!\("']/,!1)){f=n.current().toLowerCase();let i=e.prevProp+"-"+f;if(d.has(i))return"property";else if(d.has(f))return e.prevProp=f,"property";else if(T.has(f))return"property";return"tag"}else if(n.match(/ *:/,!1))return u(e,n),e.cursorHalf=1,e.prevProp=n.current().toLowerCase(),"property";else if(n.match(/ *,/,!1))return"tag";else return u(e,n),"tag";if(r===":"){if(n.match(E))return"type";return n.next(),e.cursorHalf=1,"operator"}}else{if(r==="#"){if(n.next(),n.match(/[0-9a-fA-F]{6}|[0-9a-fA-F]{3}/)){if(o(n))e.cursorHalf=0;return"number"}}if(n.match(/^-?[0-9\.]+/)){if(o(n))e.cursorHalf=0;return"number"}if(n.match(/^(px|em|in)\b/)){if(o(n))e.cursorHalf=0;return"unit"}if(n.match(x)){if(o(n))e.cursorHalf=0;return"keyword"}if(n.match(/^url/)&&n.peek()==="("){if(e.tokenizer=z,o(n))e.cursorHalf=0;return"atom"}if(r==="$"){if(n.next(),n.eatWhile(/[\w-]/),o(n))e.cursorHalf=0;return"variable-2"}if(r==="!")return n.next(),e.cursorHalf=0,n.match(/^[\w]+/)?"keyword":"operator";if(n.match(g)){if(o(n))e.cursorHalf=0;return"operator"}if(n.eatWhile(/[\w-]/)){if(o(n))e.cursorHalf=0;if(f=n.current().toLowerCase(),b.has(f))return"atom";else if(S.has(f))return"keyword";else if(d.has(f))return e.prevProp=n.current().toLowerCase(),"property";else return"tag"}if(o(n))return e.cursorHalf=0,null}if(n.match(g))return"operator";return n.next(),null}function O(n,e){if(n.sol())e.indentCount=0;let r=e.tokenizer(n,e),i=n.current();if(i==="@return"||i==="}")C(e);if(r!==null){let l=n.pos-i.length+n.indentUnit*e.indentCount,c=[];for(let p=0;p<e.scopes.length;p++){let k=e.scopes[p];if(k.offset<=l)c.push(k)}e.scopes=c}return r}var W={name:"sass",startState:function(){return{tokenizer:t,scopes:[{offset:0,type:"sass"}],indentCount:0,cursorHalf:0,definedVars:[],definedMixins:[]}},token:function(n,e){let r=O(n,e);return e.lastToken={style:r,content:n.current()},r},indent:function(n){return n.scopes[0].offset},languageData:{commentTokens:{line:"//",block:{open:"/*",close:"*/"}},autocomplete:bs.all}};export{W as sass};