@kabmo-labs/kabmo 0.33.0 → 0.35.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 (272) hide show
  1. package/dist/client/index.html +1 -1
  2. package/dist/client/index.js +785 -624
  3. package/dist/client/static/js/{CsvGrid-fncjbg6j.js → CsvGrid-0amzgtd7.js} +2 -2
  4. package/dist/client/static/js/{DocxView-c9v2vr3r.js → DocxView-bxjhzxe9.js} +5 -5
  5. package/dist/client/static/js/{DrawioView-vxjksm12.js → DrawioView-7s1yqsf4.js} +2 -2
  6. package/dist/client/static/js/{ImageView-a3g5k226.js → ImageView-ycfbn66h.js} +1 -1
  7. package/dist/client/static/js/{LayoutWrapper-hnjfwsjh.js → LayoutWrapper-tw1q1x0g.js} +2 -2
  8. package/dist/client/static/js/Modal-wqjactyd.js +38 -0
  9. package/dist/client/static/js/{PdfView-ksaes53y.js → PdfView-x6dmtwvr.js} +1 -1
  10. package/dist/client/static/js/{SessionsView-30vcr95v.js → SessionsView-t85wq0me.js} +1 -1
  11. package/dist/client/static/js/{SheetView-vc484scg.js → SheetView-n52nvz8s.js} +25 -25
  12. package/dist/client/static/js/{SvgPreview-tph89jet.js → SvgPreview-59z7syme.js} +1 -1
  13. package/dist/client/static/js/{abnfDiagram-O67JEVCF-xbar278c.js → abnfDiagram-O67JEVCF-91gnt049.js} +1 -1
  14. package/dist/client/static/js/architecture-7GRP2DOG-bajpnvy7.js +1 -0
  15. package/dist/client/static/js/{architectureDiagram-NJMV4G6O-s171n2z6.js → architectureDiagram-NJMV4G6O-5b9qtff2.js} +4 -4
  16. package/dist/client/static/js/{astro-80bs6hvg.js → astro-31cbyw7b.js} +1 -1
  17. package/dist/client/static/js/bash-0h36tk0k.js +1 -0
  18. package/dist/client/static/js/{blockDiagram-BEXU5L5S-gzx6rv9n.js → blockDiagram-BEXU5L5S-6f23fjkn.js} +3 -3
  19. package/dist/client/static/js/{c4Diagram-YGBWAQC7-7f00skch.js → c4Diagram-YGBWAQC7-76t6d3am.js} +5 -5
  20. package/dist/client/static/js/{classDiagram-v2-NBCMYWYE-j79v95nc.js → classDiagram-v2-NBCMYWYE-f9tb19xm.js} +3 -3
  21. package/dist/client/static/js/{cose-bilkent-JH36ORCC-5fkn7ee5.js → cose-bilkent-JH36ORCC-t6nwrbwj.js} +1 -1
  22. package/dist/client/static/js/cpp-4wp9sy20.js +1 -0
  23. package/dist/client/static/js/css-c9nsbkh6.js +1 -0
  24. package/dist/client/static/js/cynefin-OW5HDTMX-8q9e90m8.js +1 -0
  25. package/dist/client/static/js/{cynefinDiagram-VND7K2PF-cfs1yvrd.js → cynefinDiagram-VND7K2PF-69gc244j.js} +1 -1
  26. package/dist/client/static/js/{dagre-6A5THRUB-44bgc48p.js → dagre-6A5THRUB-54bry3ey.js} +2 -2
  27. package/dist/client/static/js/{diagram-22UHCM2B-a4g4x83k.js → diagram-22UHCM2B-gfkebye6.js} +11 -11
  28. package/dist/client/static/js/{diagram-3UASUU5V-gm4rg5na.js → diagram-3UASUU5V-a1mr319f.js} +1 -1
  29. package/dist/client/static/js/{diagram-ATOU4E4O-a95y41vk.js → diagram-ATOU4E4O-tkyk0qbe.js} +3 -3
  30. package/dist/client/static/js/{diagram-CDSNMT55-t3j93mmc.js → diagram-CDSNMT55-np0hc9m2.js} +4 -4
  31. package/dist/client/static/js/{diagram-MLGK6HIB-c2wdez02.js → diagram-MLGK6HIB-nh06fshp.js} +2 -2
  32. package/dist/client/static/js/{diagram-MPIPVDR6-gya9jhs5.js → diagram-MPIPVDR6-27q2veks.js} +2 -2
  33. package/dist/client/static/js/{dockerfile-a7q6174s.js → dockerfile-4rtt6c0f.js} +1 -1
  34. package/dist/client/static/js/{ebnfDiagram-ZINNZB2B-jjhkza6t.js → ebnfDiagram-ZINNZB2B-x9p9jqe8.js} +1 -1
  35. package/dist/client/static/js/{elk-276RUBZZ-f7re45mw.js → elk-276RUBZZ-fw7waks3.js} +1 -1
  36. package/dist/client/static/js/{erDiagram-OPXOYQCR-tpm9g5te.js → erDiagram-OPXOYQCR-fdfgzr5d.js} +5 -5
  37. package/dist/client/static/js/{erlang-qt876zrq.js → erlang-trjm07as.js} +1 -1
  38. package/dist/client/static/js/eventmodeling-NTZA5JFV-kn4hsm3p.js +1 -0
  39. package/dist/client/static/js/flowDiagram-KWPJA3E3-ah8cvps1.js +1 -0
  40. package/dist/client/static/js/{ganttDiagram-FUAMR5RP-fz43n12d.js → ganttDiagram-FUAMR5RP-2avbqgdr.js} +3 -3
  41. package/dist/client/static/js/gitGraph-4MIJSDKK-hvavh16n.js +1 -0
  42. package/dist/client/static/js/{gitGraphDiagram-X574FWY7-f61hgbn6.js → gitGraphDiagram-X574FWY7-9jmc0a3g.js} +12 -12
  43. package/dist/client/static/js/graphql-hbkmxsty.js +1 -0
  44. package/dist/client/static/js/{index-8239j2v1.js → index-0v34a7wf.js} +1 -1
  45. package/dist/client/static/js/{index-vtbbfwx0.js → index-1wjp16f0.js} +2 -2
  46. package/dist/client/static/js/index-2mx9ej4k.css +1 -0
  47. package/dist/client/static/js/{index-q2w6s8n7.js → index-2v1nmxwr.js} +6 -6
  48. package/dist/client/static/js/{index-apvkd37e.js → index-3ecsp1rx.js} +3 -3
  49. package/dist/client/static/js/{index-1y9r4frb.js → index-43qpbxjv.js} +2 -2
  50. package/dist/client/static/js/{index-w0fwb80e.js → index-4vybd9e7.js} +1 -1
  51. package/dist/client/static/js/{index-ahv9y42z.js → index-6f6cmcbq.js} +2 -2
  52. package/dist/client/static/js/{index-9fjt5anh.js → index-7ct7qrsp.js} +2 -2
  53. package/dist/client/static/js/{index-ajs3jj6j.js → index-7q02xnvq.js} +1 -1
  54. package/dist/client/static/js/{index-rytaa8ca.js → index-7smwzkvq.js} +2 -2
  55. package/dist/client/static/js/{index-rg8jpbsw.js → index-8acv5b77.js} +2 -2
  56. package/dist/client/static/js/{index-gs6f0qwa.js → index-8f9x7ev8.js} +2 -2
  57. package/dist/client/static/js/{index-7y6rpsrp.js → index-8mwragbj.js} +2 -2
  58. package/dist/client/static/js/{index-gcs49f3p.js → index-8x9ecxb0.js} +1 -1
  59. package/dist/client/static/js/{index-3rcjx70v.js → index-9ketbkh6.js} +1 -1
  60. package/dist/client/static/js/{index-ypx3qmhq.js → index-a628fg4m.js} +2 -2
  61. package/dist/client/static/js/{index-e4p4cd3r.js → index-a8ffattk.js} +2 -2
  62. package/dist/client/static/js/{index-js7t1vb1.js → index-b8s3xraa.js} +6 -6
  63. package/dist/client/static/js/index-btr2w8cq.js +12 -0
  64. package/dist/client/static/js/index-dfzrpy54.js +2 -0
  65. package/dist/client/static/js/{index-pxv2nw9w.js → index-ee2p07eg.js} +1 -1
  66. package/dist/client/static/js/{index-03h3bkcf.js → index-ek2e773p.js} +1 -1
  67. package/dist/client/static/js/{index-1xqs14fr.js → index-fvc0x6nx.js} +3 -3
  68. package/dist/client/static/js/{index-3zc1b0dv.js → index-jc1yagmk.js} +2 -2
  69. package/dist/client/static/js/{index-d495kfm0.js → index-jmxqefe3.js} +1 -1
  70. package/dist/client/static/js/{index-2x5f66t6.js → index-k7q01ye4.js} +2 -2
  71. package/dist/client/static/js/{index-5tgq7aqx.js → index-kdkfyrja.js} +2 -2
  72. package/dist/client/static/js/{index-m73za75e.js → index-mc4nefs7.js} +3 -3
  73. package/dist/client/static/js/{index-trm9x02n.js → index-nb8tp4mj.js} +30 -30
  74. package/dist/client/static/js/{index-zt75xpq0.js → index-ncrenheb.js} +206 -206
  75. package/dist/client/static/js/{index-qsm2z36d.js → index-p16scjt7.js} +2 -2
  76. package/dist/client/static/js/{index-sdtye3jy.js → index-pc6eg8h2.js} +2 -2
  77. package/dist/client/static/js/{index-zvfvqvn9.js → index-pnt0vc59.js} +2 -2
  78. package/dist/client/static/js/{index-pbe4yed4.js → index-py2k8std.js} +2 -2
  79. package/dist/client/static/js/{index-dbe6afkf.js → index-pzbssnsc.js} +2 -2
  80. package/dist/client/static/js/{index-qckv9nte.js → index-qqz6bcdd.js} +2 -2
  81. package/dist/client/static/js/{index-xj9649ac.js → index-ray2czf6.js} +7 -7
  82. package/dist/client/static/js/{index-0tf0arsp.js → index-rbgemjsp.js} +3 -3
  83. package/dist/client/static/js/{index-vw4brsdx.js → index-rkn0bxxt.js} +1 -1
  84. package/dist/client/static/js/{index-76zb4m0n.js → index-rv89xpaf.js} +2 -2
  85. package/dist/client/static/js/index-sbd5e816.js +1 -0
  86. package/dist/client/static/js/{index-eyzeya95.js → index-sdby39w4.js} +5 -5
  87. package/dist/client/static/js/{index-0n5wwe60.js → index-t6c0pd43.js} +2 -2
  88. package/dist/client/static/js/{index-km2zb6wk.js → index-tp7yb3bv.js} +2 -2
  89. package/dist/client/static/js/{index-vw5k8csz.js → index-vnw3hbeg.js} +56 -56
  90. package/dist/client/static/js/{index-354mqqra.js → index-vq6wts05.js} +2 -2
  91. package/dist/client/static/js/{index-14vndmcr.js → index-w5373tg1.js} +2 -2
  92. package/dist/client/static/js/{index-0e40xskg.js → index-w7tpgt46.js} +1 -1
  93. package/dist/client/static/js/{index-djmg1d7h.js → index-whbtxmwh.js} +2 -2
  94. package/dist/client/static/js/{index-2svnq5gg.js → index-xs1m0bpt.js} +1 -1
  95. package/dist/client/static/js/{index-9y3gjdj7.js → index-xxtsm2rb.js} +2 -2
  96. package/dist/client/static/js/{index-hf52f59k.js → index-y3ms153k.js} +2 -2
  97. package/dist/client/static/js/{index-1a0zkj8h.js → index-yq39qbs1.js} +2 -2
  98. package/dist/client/static/js/{index-j0r5hj0j.js → index-zh2jj56s.js} +2 -2
  99. package/dist/client/static/js/info-A6RAGUB7-fmjz8qwg.js +1 -0
  100. package/dist/client/static/js/{infoDiagram-VRGFBTTK-1qj804sn.js → infoDiagram-VRGFBTTK-g2dky5xg.js} +2 -2
  101. package/dist/client/static/js/ini-72yrpvd4.js +1 -0
  102. package/dist/client/static/js/{ishikawaDiagram-OU5B5YK6-4j4qsnzw.js → ishikawaDiagram-OU5B5YK6-exrcjwp1.js} +6 -6
  103. package/dist/client/static/js/java-ab5tb2ra.js +1 -0
  104. package/dist/client/static/js/{journeyDiagram-ZHPQQLJL-j0brnfft.js → journeyDiagram-ZHPQQLJL-pn752qa5.js} +4 -4
  105. package/dist/client/static/js/jsx-25zj9j3k.js +1 -0
  106. package/dist/client/static/js/{julia-4ghmfy3e.js → julia-evn99h2m.js} +1 -1
  107. package/dist/client/static/js/{kanban-definition-PNTS6WVX-qqc22br0.js → kanban-definition-PNTS6WVX-v8nvr373.js} +5 -5
  108. package/dist/client/static/js/lua-j5w0c9wm.js +1 -0
  109. package/dist/client/static/js/markdown-j6hn4377.js +1 -0
  110. package/dist/client/static/js/{mermaid.core-vv3wbe65.js → mermaid.core-egzv89zv.js} +6 -6
  111. package/dist/client/static/js/{mindmap-definition-NLK3R4M7-y5b2z8zp.js → mindmap-definition-NLK3R4M7-t9njmv2w.js} +8 -8
  112. package/dist/client/static/js/one-dark-pro-bm3r4js7.js +1 -0
  113. package/dist/client/static/js/one-light-e07dt7sy.js +1 -0
  114. package/dist/client/static/js/packet-AYTQ26CC-cwr6n1cm.js +1 -0
  115. package/dist/client/static/js/{pegDiagram-GJSIUBJH-0be07mqs.js → pegDiagram-GJSIUBJH-zhycy2b7.js} +1 -1
  116. package/dist/client/static/js/{perl-sd00t4b4.js → perl-506fy8m8.js} +1 -1
  117. package/dist/client/static/js/{php-2zfyqa61.js → php-axtsvxck.js} +1 -1
  118. package/dist/client/static/js/pie-WAS4IAKB-h1ebfzgt.js +1 -0
  119. package/dist/client/static/js/{pieDiagram-5QR66LMP-544w86jk.js → pieDiagram-5QR66LMP-sgctvma2.js} +2 -2
  120. package/dist/client/static/js/properties-q8njes42.js +1 -0
  121. package/dist/client/static/js/python-vqxc7181.js +1 -0
  122. package/dist/client/static/js/{quadrantDiagram-O4NWA36T-p09e7z5s.js → quadrantDiagram-O4NWA36T-kzzhdcph.js} +5 -5
  123. package/dist/client/static/js/r-0k5eej8m.js +1 -0
  124. package/dist/client/static/js/radar-RG4KPBEZ-k7p1m364.js +1 -0
  125. package/dist/client/static/js/railroad-74A4TZTK-d08dw3t0.js +1 -0
  126. package/dist/client/static/js/railroad-abnf-HS5TGJTU-txnjycgk.js +1 -0
  127. package/dist/client/static/js/railroad-ebnf-LZEXJU2U-p0r3cv6w.js +1 -0
  128. package/dist/client/static/js/railroad-peg-WCYAUIDC-sryk900a.js +1 -0
  129. package/dist/client/static/js/{railroadDiagram-XR7U4H2S-de830ed2.js → railroadDiagram-XR7U4H2S-nzjffwxm.js} +1 -1
  130. package/dist/client/static/js/{requirementDiagram-PLB6GJNP-b47d74p1.js → requirementDiagram-PLB6GJNP-tz4xxn4d.js} +2 -2
  131. package/dist/client/static/js/{ruby-v9qaqhby.js → ruby-qp7zfk2m.js} +1 -1
  132. package/dist/client/static/js/{rust-fkt0qyrs.js → rust-fz913fvw.js} +1 -1
  133. package/dist/client/static/js/{sankeyDiagram-IPEJSGJF-6ezc2fpj.js → sankeyDiagram-IPEJSGJF-2wcb0xr6.js} +4 -4
  134. package/dist/client/static/js/{sass-9bxped7y.js → sass-gnk9vsyp.js} +1 -1
  135. package/dist/client/static/js/{sequenceDiagram-PO4LG4MO-by5zqj6w.js → sequenceDiagram-PO4LG4MO-vqgebfns.js} +18 -18
  136. package/dist/client/static/js/{sizeCapture-INFHLROL-q85r06j6.js → sizeCapture-INFHLROL-xc314tes.js} +1 -1
  137. package/dist/client/static/js/sql-0e9mnrda.js +1 -0
  138. package/dist/client/static/js/{stateDiagram-v2-GCMORJYK-ep5pyexs.js → stateDiagram-v2-GCMORJYK-8bd9b1h8.js} +3 -3
  139. package/dist/client/static/js/{svelte-mwtx07d9.js → svelte-brpgzrtv.js} +1 -1
  140. package/dist/client/static/js/{swimlanes-2SLR337P-95fcqkh8.js → swimlanes-2SLR337P-t6hbdzcw.js} +1 -1
  141. package/dist/client/static/js/swimlanesDiagram-TC7HE7FX-c1czc7kv.js +8 -0
  142. package/dist/client/static/js/{timeline-definition-EJHVYXUP-461e615g.js → timeline-definition-EJHVYXUP-2txxasx5.js} +4 -4
  143. package/dist/client/static/js/treeView-Q6P3EWNA-77kj68p1.js +1 -0
  144. package/dist/client/static/js/treemap-WGGIJYW6-rw94xc82.js +1 -0
  145. package/dist/client/static/js/tsx-yd5wt250.js +1 -0
  146. package/dist/client/static/js/typescript-v7z7crfe.js +1 -0
  147. package/dist/client/static/js/{usecaseDiagram-POWQR4AR-ftqfnvhg.js → usecaseDiagram-POWQR4AR-3x353hn4.js} +17 -17
  148. package/dist/client/static/js/{vennDiagram-UO4OBE2U-7t96h6ez.js → vennDiagram-UO4OBE2U-cerpss8e.js} +7 -7
  149. package/dist/client/static/js/{vue-j8vb9d7r.js → vue-apnkw9qy.js} +1 -1
  150. package/dist/client/static/js/wardley-WFR3VGLG-18xe4fhz.js +1 -0
  151. package/dist/client/static/js/{wardleyDiagram-VNRHLVJA-0de8w8c6.js → wardleyDiagram-VNRHLVJA-cx6jfsbf.js} +4 -4
  152. package/dist/client/static/js/xml-94fhzrfs.js +1 -0
  153. package/dist/client/static/js/{xychartDiagram-PMCCYNJV-dez9phkf.js → xychartDiagram-PMCCYNJV-tgn23xj1.js} +5 -5
  154. package/dist/client/static/js/yaml-s8af9rnw.js +1 -0
  155. package/package.json +4 -1
  156. package/src/client/components/auth/login-screen/index.tsx +1 -0
  157. package/src/client/components/common/MarkdownRenderer.tsx +9 -12
  158. package/src/client/components/settings/Modal.tsx +14 -84
  159. package/src/client/components/settings/Sidebar.tsx +3 -1
  160. package/src/client/components/settings/categories/ConnectSettings.tsx +105 -0
  161. package/src/client/components/settings/categories/connect-settings/DeviceTable.tsx +145 -0
  162. package/src/client/components/settings/categories/connect-settings/PairDialog.test.tsx +159 -0
  163. package/src/client/components/settings/categories/connect-settings/PairDialog.tsx +189 -0
  164. package/src/client/components/settings/categories/connect-settings/QrCode.tsx +56 -0
  165. package/src/client/components/settings/categories/connect-settings/ServerCard.tsx +94 -0
  166. package/src/client/components/settings/categories/connect-settings/TunnelRow.tsx +127 -0
  167. package/src/client/components/settings/categories/connect-settings/qr-image.ts +76 -0
  168. package/src/client/components/settings/category-content.tsx +116 -0
  169. package/src/client/components/workspace/chat-timeline/ChangedFilesSummary.test.tsx +120 -0
  170. package/src/client/components/workspace/chat-timeline/ChangedFilesSummary.tsx +56 -20
  171. package/src/client/components/workspace/chat-timeline/RunFooter.tsx +1 -0
  172. package/src/client/components/workspace/git-panel/init-state.test.ts +5 -0
  173. package/src/client/hooks/chat/composer/speech-to-text.ts +24 -17
  174. package/src/client/hooks/chat/timeline/change-stats.ts +57 -0
  175. package/src/client/hooks/connect/use-connect-status.ts +116 -0
  176. package/src/client/hooks/connect/use-pairing.ts +100 -0
  177. package/src/client/hooks/editor/file-actions.ts +3 -11
  178. package/src/client/hooks/editor/font.test.ts +2 -1
  179. package/src/client/hooks/editor/use-file-transfer.ts +2 -1
  180. package/src/client/hooks/ui/clipboard.ts +26 -0
  181. package/src/client/lib/browser/download.ts +22 -0
  182. package/src/client/tailwind.css +5 -0
  183. package/src/server/index.ts +2 -0
  184. package/src/server/lib/assets/font-css.server.test.ts +19 -0
  185. package/src/server/lib/auth/client-address.test.ts +58 -0
  186. package/src/server/lib/auth/client-address.ts +37 -3
  187. package/src/server/lib/auth/guard.ts +31 -4
  188. package/src/server/lib/auth/rate-limit.test.ts +25 -8
  189. package/src/server/lib/auth/rate-limit.ts +8 -5
  190. package/src/server/lib/connect/cloudflared.lifecycle.test.ts +88 -0
  191. package/src/server/lib/connect/cloudflared.server.test.ts +65 -0
  192. package/src/server/lib/connect/cloudflared.server.ts +206 -0
  193. package/src/server/lib/connect/devices.server.ts +192 -0
  194. package/src/server/lib/connect/identity.server.ts +81 -0
  195. package/src/server/lib/connect/pairing.server.test.ts +56 -0
  196. package/src/server/lib/connect/pairing.server.ts +113 -0
  197. package/src/server/lib/connect/qr.roundtrip.test.ts +106 -0
  198. package/src/server/lib/connect/qr.server.ts +36 -0
  199. package/src/server/lib/connect/run.server.ts +101 -0
  200. package/src/server/lib/connect/status.server.ts +177 -0
  201. package/src/server/lib/connect/tailscale.server.test.ts +117 -0
  202. package/src/server/lib/connect/tailscale.server.ts +172 -0
  203. package/src/server/lib/db/schema.ts +4 -0
  204. package/src/server/lib/omp/session/changes.test.ts +64 -1
  205. package/src/server/lib/omp/session/changes.ts +94 -1
  206. package/src/server/routes/connect/devices.ts +56 -0
  207. package/src/server/routes/connect/index.ts +15 -0
  208. package/src/server/routes/connect/pair-page.ts +177 -0
  209. package/src/server/routes/connect/pair.ts +158 -0
  210. package/src/server/routes/connect/status.ts +19 -0
  211. package/src/server/routes/connect/tunnels.ts +76 -0
  212. package/src/server/routes/health/probe.ts +5 -0
  213. package/src/server/routes/index.ts +2 -0
  214. package/src/server/routes/sessions/changes.test.ts +12 -3
  215. package/src/server/routes/sessions/changes.ts +27 -3
  216. package/src/server/routes/sessions/index.ts +2 -1
  217. package/src/shared/lib/connect/payload.test.ts +144 -0
  218. package/src/shared/lib/connect/payload.ts +229 -0
  219. package/src/shared/lib/connect/tier.test.ts +73 -0
  220. package/src/shared/lib/connect/tier.ts +105 -0
  221. package/src/shared/lib/connect/types.ts +99 -0
  222. package/src/shared/lib/dictation/capture-failure.test.ts +46 -0
  223. package/src/shared/lib/dictation/capture-failure.ts +36 -0
  224. package/src/shared/lib/markdown/fira-code-fonts.css +65 -6
  225. package/src/shared/lib/markdown/marked.ts +7 -4
  226. package/src/shared/lib/markdown/mermaid-actions.test.ts +78 -0
  227. package/src/shared/lib/markdown/mermaid-actions.ts +45 -0
  228. package/src/shared/lib/markdown/mermaid.ts +41 -7
  229. package/src/shared/lib/settings/sections.ts +6 -1
  230. package/src/shared/types/session-changes.ts +6 -0
  231. package/src/shared/types/settings/state.ts +2 -0
  232. package/dist/client/static/js/Modal-qtftcp2t.js +0 -38
  233. package/dist/client/static/js/architecture-7GRP2DOG-tavtgb8a.js +0 -1
  234. package/dist/client/static/js/bash-b3rwyg5p.js +0 -1
  235. package/dist/client/static/js/cpp-y0t6mynx.js +0 -1
  236. package/dist/client/static/js/css-6vj0d308.js +0 -1
  237. package/dist/client/static/js/cynefin-OW5HDTMX-cdh3n2z2.js +0 -1
  238. package/dist/client/static/js/eventmodeling-NTZA5JFV-as97tpyp.js +0 -1
  239. package/dist/client/static/js/flowDiagram-KWPJA3E3-ggm06d12.js +0 -1
  240. package/dist/client/static/js/gitGraph-4MIJSDKK-eqz7p9ng.js +0 -1
  241. package/dist/client/static/js/graphql-n43pd5fs.js +0 -1
  242. package/dist/client/static/js/index-at6bhjyf.js +0 -1
  243. package/dist/client/static/js/index-bkye8mz4.js +0 -2
  244. package/dist/client/static/js/index-e94a1en0.css +0 -1
  245. package/dist/client/static/js/index-sffjtm5w.js +0 -12
  246. package/dist/client/static/js/info-A6RAGUB7-4pkzh1qx.js +0 -1
  247. package/dist/client/static/js/ini-j5dyq6gm.js +0 -1
  248. package/dist/client/static/js/java-g4dgwbfd.js +0 -1
  249. package/dist/client/static/js/jsx-7t5ecz9s.js +0 -1
  250. package/dist/client/static/js/lua-1g6w30de.js +0 -1
  251. package/dist/client/static/js/markdown-afx21x8c.js +0 -1
  252. package/dist/client/static/js/one-dark-pro-hm3f56n1.js +0 -1
  253. package/dist/client/static/js/one-light-xrz49rct.js +0 -1
  254. package/dist/client/static/js/packet-AYTQ26CC-yg71sp88.js +0 -1
  255. package/dist/client/static/js/pie-WAS4IAKB-89wd6np0.js +0 -1
  256. package/dist/client/static/js/properties-thd83wey.js +0 -1
  257. package/dist/client/static/js/python-264ns4xw.js +0 -1
  258. package/dist/client/static/js/r-qw82kkv9.js +0 -1
  259. package/dist/client/static/js/radar-RG4KPBEZ-avn0b8r9.js +0 -1
  260. package/dist/client/static/js/railroad-74A4TZTK-de27xv5w.js +0 -1
  261. package/dist/client/static/js/railroad-abnf-HS5TGJTU-rg4zzj7x.js +0 -1
  262. package/dist/client/static/js/railroad-ebnf-LZEXJU2U-d84fhj8v.js +0 -1
  263. package/dist/client/static/js/railroad-peg-WCYAUIDC-dvf8xrmc.js +0 -1
  264. package/dist/client/static/js/sql-g8wcshpc.js +0 -1
  265. package/dist/client/static/js/swimlanesDiagram-TC7HE7FX-xs2en5dv.js +0 -8
  266. package/dist/client/static/js/treeView-Q6P3EWNA-mham0bh6.js +0 -1
  267. package/dist/client/static/js/treemap-WGGIJYW6-mxrxax86.js +0 -1
  268. package/dist/client/static/js/tsx-nm94hed6.js +0 -1
  269. package/dist/client/static/js/typescript-0s2t05jj.js +0 -1
  270. package/dist/client/static/js/wardley-WFR3VGLG-8vrvh9p3.js +0 -1
  271. package/dist/client/static/js/xml-dz51p1m3.js +0 -1
  272. package/dist/client/static/js/yaml-2cfkd30t.js +0 -1
@@ -1,15 +1,15 @@
1
- import{t,Ce,El,A,g,K,E,te,R,L,O,P,z,j,G,h,ue,ie,b}from"./index-vw5k8csz.js";var ce=(e,s)=>El(e,"a",-s),kt=ce;function mt(e,s){let i=he(e),n=i.filter((c)=>fe(c,e)),r=0,o=0,a=[];if(n.length>1){let c=qt(n);for(let f=0;f<n.length;++f){let l=n[f];l.angle=Math.atan2(l.x-c.x,l.y-c.y)}n.sort((f,l)=>l.angle-f.angle);let d=n[n.length-1];for(let f=0;f<n.length;++f){let l=n[f];o+=(d.x+l.x)*(l.y-d.y);let v={x:(l.x+d.x)/2,y:(l.y+d.y)/2},y=null;for(let M=0;M<l.parentIndex.length;++M)if(d.parentIndex.includes(l.parentIndex[M])){let k=e[l.parentIndex[M]],T=Math.atan2(l.x-k.x,l.y-k.y),F=Math.atan2(d.x-k.x,d.y-k.y),D=F-T;if(D<0)D+=2*Math.PI;let C=F-D/2,p=st(v,{x:k.x+k.radius*Math.sin(C),y:k.y+k.radius*Math.cos(C)});if(p>k.radius*2)p=k.radius*2;if(y==null||y.width>p)y={circle:k,width:p,p1:l,p2:d,large:p>k.radius,sweep:!0}}if(y!=null)a.push(y),r+=St(y.circle.radius,y.width),d=l}}else{let c=e[0];for(let f=1;f<e.length;++f)if(e[f].radius<c.radius)c=e[f];let d=!1;for(let f=0;f<e.length;++f)if(st(e[f],c)>Math.abs(c.radius-e[f].radius)){d=!0;break}if(d)r=o=0;else r=c.radius*c.radius*Math.PI,a.push({circle:c,p1:{x:c.x,y:c.y+c.radius},p2:{x:c.x-0.0000000001,y:c.y+c.radius},width:c.radius*2,large:!0,sweep:!0})}if(o/=2,s)s.area=r+o,s.arcArea=r,s.polygonArea=o,s.arcs=a,s.innerPoints=n,s.intersectionPoints=i;return r+o}function fe(e,s){return s.every((i)=>st(e,i)<i.radius+0.0000000001)}function he(e){let s=[];for(let i=0;i<e.length;++i)for(let n=i+1;n<e.length;++n){let r=Bt(e[i],e[n]);for(let o of r)o.parentIndex=[i,n],s.push(o)}return s}function St(e,s){return e*e*Math.acos(1-s/e)-(e-s)*Math.sqrt(s*(2*e-s))}function st(e,s){return Math.sqrt((e.x-s.x)*(e.x-s.x)+(e.y-s.y)*(e.y-s.y))}function At(e,s,i){if(i>=e+s)return 0;if(i<=Math.abs(e-s))return Math.PI*Math.min(e,s)*Math.min(e,s);let n=e-(i*i-s*s+e*e)/(2*i),r=s-(i*i-e*e+s*s)/(2*i);return St(e,n)+St(s,r)}function Bt(e,s){let i=st(e,s),n=e.radius,r=s.radius;if(i>=n+r||i<=Math.abs(n-r))return[];let o=(n*n-r*r+i*i)/(2*i),a=Math.sqrt(n*n-o*o),c=e.x+o*(s.x-e.x)/i,d=e.y+o*(s.y-e.y)/i,f=-(s.y-e.y)*(a/i),l=-(s.x-e.x)*(a/i);return[{x:c+f,y:d-l},{x:c-f,y:d+l}]}function qt(e){let s={x:0,y:0};for(let i of e)s.x+=i.x,s.y+=i.y;return s.x/=e.length,s.y/=e.length,s}function de(e,s,i,n){n=n||{};let r=n.maxIterations||100,o=n.tolerance||0.0000000001,a=e(s),c=e(i),d=i-s;if(a*c>0)throw"Initial bisect points must have opposite signs";if(a===0)return s;if(c===0)return i;for(let f=0;f<r;++f){d/=2;let l=s+d,v=e(l);if(v*a>=0)s=l;if(Math.abs(d)<o||v===0)return l}return s+d}function wt(e){let s=Array(e);for(let i=0;i<e;++i)s[i]=0;return s}function Pt(e,s){return wt(e).map(()=>wt(s))}function gt(e,s){let i=0;for(let n=0;n<e.length;++n)i+=e[n]*s[n];return i}function _t(e){return Math.sqrt(gt(e,e))}function Et(e,s,i){for(let n=0;n<s.length;++n)e[n]=s[n]*i}function ft(e,s,i,n,r){for(let o=0;o<e.length;++o)e[o]=s*i[o]+n*r[o]}function Ut(e,s,i){i=i||{};let n=i.maxIterations||s.length*200,r=i.nonZeroDelta||1.05,o=i.zeroDelta||0.001,a=i.minErrorDelta||0.000001,c=i.minErrorDelta||0.00001,d=i.rho!==void 0?i.rho:1,f=i.chi!==void 0?i.chi:2,l=i.psi!==void 0?i.psi:-0.5,v=i.sigma!==void 0?i.sigma:0.5,y,M=s.length,k=Array(M+1);k[0]=s,k[0].fx=e(s),k[0].id=0;for(let S=0;S<M;++S){let u=s.slice();u[S]=u[S]?u[S]*r:o,k[S+1]=u,k[S+1].fx=e(u),k[S+1].id=S+1}function T(S){for(let u=0;u<S.length;u++)k[M][u]=S[u];k[M].fx=S.fx}let F=(S,u)=>S.fx-u.fx,D=s.slice(),C=s.slice(),p=s.slice(),I=s.slice();for(let S=0;S<n;++S){if(k.sort(F),i.history){let m=k.map((x)=>{let q=x.slice();return q.fx=x.fx,q.id=x.id,q});m.sort((x,q)=>x.id-q.id),i.history.push({x:k[0].slice(),fx:k[0].fx,simplex:m})}y=0;for(let m=0;m<M;++m)y=Math.max(y,Math.abs(k[0][m]-k[1][m]));if(Math.abs(k[0].fx-k[M].fx)<a&&y<c)break;for(let m=0;m<M;++m){D[m]=0;for(let x=0;x<M;++x)D[m]+=k[x][m];D[m]/=M}let u=k[M];if(ft(C,1+d,D,-d,u),C.fx=e(C),C.fx<k[0].fx)if(ft(I,1+f,D,-f,u),I.fx=e(I),I.fx<C.fx)T(I);else T(C);else if(C.fx>=k[M-1].fx){let m=!1;if(C.fx>u.fx)if(ft(p,1+l,D,-l,u),p.fx=e(p),p.fx<u.fx)T(p);else m=!0;else if(ft(p,1-l*d,D,l*d,u),p.fx=e(p),p.fx<C.fx)T(p);else m=!0;if(m){if(v>=1)break;for(let x=1;x<k.length;++x)ft(k[x],1-v,k[0],v,k[x]),k[x].fx=e(k[x])}}else T(C)}return k.sort(F),{fx:k[0].fx,x:k[0]}}function ge(e,s,i,n,r,o,a){let c=i.fx,d=gt(i.fxprime,s),f=c,l=c,v=d,y=0;r=r||1,o=o||0.000001,a=a||0.1;function M(k,T,F){for(let D=0;D<16;++D)if(r=(k+T)/2,ft(n.x,1,i.x,r,s),f=n.fx=e(n.x,n.fxprime),v=gt(n.fxprime,s),f>c+o*r*d||f>=F)T=r;else{if(Math.abs(v)<=-a*d)return r;if(v*(T-k)>=0)T=k;k=r,F=f}return 0}for(let k=0;k<10;++k){if(ft(n.x,1,i.x,r,s),f=n.fx=e(n.x,n.fxprime),v=gt(n.fxprime,s),f>c+o*r*d||k&&f>=l)return M(y,r,l);if(Math.abs(v)<=-a*d)return r;if(v>=0)return M(r,y,f);l=f,y=r,r*=2}return r}function xe(e,s,i){let n={x:s.slice(),fx:0,fxprime:s.slice()},r={x:s.slice(),fx:0,fxprime:s.slice()},o=s.slice(),a,c,d=1,f;i=i||{},f=i.maxIterations||s.length*20,n.fx=e(n.x,n.fxprime),a=n.fxprime.slice(),Et(a,n.fxprime,-1);for(let l=0;l<f;++l){if(d=ge(e,a,n,r,d),i.history)i.history.push({x:n.x.slice(),fx:n.fx,fxprime:n.fxprime.slice(),alpha:d});if(!d)Et(a,n.fxprime,-1);else{ft(o,1,r.fxprime,-1,n.fxprime);let v=gt(n.fxprime,n.fxprime),y=Math.max(0,gt(o,r.fxprime)/v);ft(a,y,a,-1,r.fxprime),c=n,n=r,r=c}if(_t(n.fxprime)<=0.00001)break}if(i.history)i.history.push({x:n.x.slice(),fx:n.fx,fxprime:n.fxprime.slice(),alpha:d});return n}function Gt(e,s={}){s.maxIterations=s.maxIterations||500;let i=s.initialLayout||be,n=s.lossFunction||xt,r=ye(e,s),o=i(r,s),a=Object.keys(o),c=[];for(let l of a)c.push(o[l].x),c.push(o[l].y);let f=Ut((l)=>{let v={};for(let y=0;y<a.length;++y){let M=a[y];v[M]={x:l[2*y],y:l[2*y+1],radius:o[M].radius}}return n(v,r)},c,s).x;for(let l=0;l<a.length;++l){let v=a[l];o[v].x=f[2*l],o[v].y=f[2*l+1]}return o}var Wt=0.0000000001;function Tt(e,s,i){if(Math.min(e,s)*Math.min(e,s)*Math.PI<=i+Wt)return Math.abs(e-s);return de((n)=>At(e,s,n)-i,0,e+s)}function ye(e,s={}){let i=s.distinct,n=e.map((c)=>Object.assign({},c));function r(c){return c.join(";")}if(i){let c=new Map;for(let d of n)for(let f=0;f<d.sets.length;f++){let l=String(d.sets[f]);c.set(l,d.size+(c.get(l)||0));for(let v=f+1;v<d.sets.length;v++){let y=String(d.sets[v]),M=`${l};${y}`,k=`${y};${l}`;c.set(M,d.size+(c.get(M)||0)),c.set(k,d.size+(c.get(k)||0))}}for(let d of n)if(d.sets.length<3)d.size=c.get(r(d.sets))}let o=[],a=new Set;for(let c of n)if(c.sets.length===1)o.push(c.sets[0]);else if(c.sets.length===2){let d=c.sets[0],f=c.sets[1];a.add(r(c.sets)),a.add(r([f,d]))}o.sort((c,d)=>c===d?0:c<d?-1:1);for(let c=0;c<o.length;++c){let d=o[c];for(let f=c+1;f<o.length;++f){let l=o[f];if(!a.has(r([d,l])))n.push({sets:[d,l],size:0})}}return n}function pe(e,s,i){let n=Pt(s.length,s.length),r=Pt(s.length,s.length);return e.filter((o)=>o.sets.length===2).forEach((o)=>{let a=i[o.sets[0]],c=i[o.sets[1]],d=Math.sqrt(s[a].size/Math.PI),f=Math.sqrt(s[c].size/Math.PI),l=Tt(d,f,o.size);n[a][c]=n[c][a]=l;let v=0;if(o.size+0.0000000001>=Math.min(s[a].size,s[c].size))v=1;else if(o.size<=0.0000000001)v=-1;r[a][c]=r[c][a]=v}),{distances:n,constraints:r}}function me(e,s,i,n){for(let o=0;o<s.length;++o)s[o]=0;let r=0;for(let o=0;o<i.length;++o){let a=e[2*o],c=e[2*o+1];for(let d=o+1;d<i.length;++d){let f=e[2*d],l=e[2*d+1],v=i[o][d],y=n[o][d],M=(f-a)*(f-a)+(l-c)*(l-c),k=Math.sqrt(M),T=M-v*v;if(y>0&&k<=v||y<0&&k>=v)continue;r+=2*T*T,s[2*o]+=4*T*(a-f),s[2*o+1]+=4*T*(c-l),s[2*d]+=4*T*(f-a),s[2*d+1]+=4*T*(l-c)}}return r}function be(e,s={}){let i=ke(e,s),n=s.lossFunction||xt;if(e.length>=8){let r=ve(e,s),o=n(r,e),a=n(i,e);if(o+0.00000001<a)i=r}return i}function ve(e,s={}){let i=s.restarts||10,n=[],r={};for(let y of e)if(y.sets.length===1)r[y.sets[0]]=n.length,n.push(y);let{distances:o,constraints:a}=pe(e,n,r),c=_t(o.map(_t))/o.length;o=o.map((y)=>y.map((M)=>M/c));let d=(y,M)=>me(y,M,o,a),f=null;for(let y=0;y<i;++y){let M=wt(o.length*2).map(Math.random),k=xe(d,M,s);if(!f||k.fx<f.fx)f=k}let l=f.x,v={};for(let y=0;y<n.length;++y){let M=n[y];v[M.sets[0]]={x:l[2*y]*c,y:l[2*y+1]*c,radius:Math.sqrt(M.size/Math.PI)}}if(s.history)for(let y of s.history)Et(y.x,c);return v}function ke(e,s){let i=s&&s.lossFunction?s.lossFunction:xt,n={},r={};for(let v of e)if(v.sets.length===1){let y=v.sets[0];n[y]={x:10000000000,y:10000000000,rowid:n.length,size:v.size,radius:Math.sqrt(v.size/Math.PI)},r[y]=[]}e=e.filter((v)=>v.sets.length===2);for(let v of e){let y=v.weight!=null?v.weight:1,M=v.sets[0],k=v.sets[1];if(v.size+Wt>=Math.min(n[M].size,n[k].size))y=0;r[M].push({set:k,size:v.size,weight:y}),r[k].push({set:M,size:v.size,weight:y})}let o=[];Object.keys(r).forEach((v)=>{let y=0;for(let M=0;M<r[v].length;++M)y+=r[v][M].size*r[v][M].weight;o.push({set:v,size:y})});function a(v,y){return y.size-v.size}o.sort(a);let c={};function d(v){return v.set in c}function f(v,y){n[y].x=v.x,n[y].y=v.y,c[y]=!0}f({x:0,y:0},o[0].set);for(let v=1;v<o.length;++v){let y=o[v].set,M=r[y].filter(d),k=n[y];if(M.sort(a),M.length===0)throw"ERROR: missing pairwise overlap information";let T=[];for(var l=0;l<M.length;++l){let C=n[M[l].set],p=Tt(k.radius,C.radius,M[l].size);T.push({x:C.x+p,y:C.y}),T.push({x:C.x-p,y:C.y}),T.push({y:C.y+p,x:C.x}),T.push({y:C.y-p,x:C.x});for(let I=l+1;I<M.length;++I){let S=n[M[I].set],u=Tt(k.radius,S.radius,M[I].size),m=Bt({x:C.x,y:C.y,radius:p},{x:S.x,y:S.y,radius:u});T.push(...m)}}let F=100000000000000000000000000000000000000000000000000,D=T[0];for(let C of T){n[y].x=C.x,n[y].y=C.y;let p=i(n,e);if(p<F)F=p,D=C}f(D,y)}return n}function xt(e,s){let i=0;for(let n of s){if(n.sets.length===1)continue;let r;if(n.sets.length===2){let a=e[n.sets[0]],c=e[n.sets[1]];r=At(a.radius,c.radius,st(a,c))}else r=mt(n.sets.map((a)=>e[a]));let o=n.weight!=null?n.weight:1;i+=o*(r-n.size)*(r-n.size)}return i}function Kt(e,s){let i=0;for(let n of s){if(n.sets.length===1)continue;let r;if(n.sets.length===2){let c=e[n.sets[0]],d=e[n.sets[1]];r=At(c.radius,d.radius,st(c,d))}else r=mt(n.sets.map((c)=>e[c]));let o=n.weight!=null?n.weight:1,a=Math.log((r+1)/(n.size+1));i+=o*a*a}return i}function Ie(e,s,i){if(i==null)e.sort((r,o)=>o.radius-r.radius);else e.sort(i);if(e.length>0){let r=e[0].x,o=e[0].y;for(let a of e)a.x-=r,a.y-=o}if(e.length===2){if(st(e[0],e[1])<Math.abs(e[1].radius-e[0].radius))e[1].x=e[0].x+e[0].radius-e[1].radius-0.0000000001,e[1].y=e[0].y}if(e.length>1){let r=Math.atan2(e[1].x,e[1].y)-s,o=Math.cos(r),a=Math.sin(r);for(let c of e){let{x:d,y:f}=c;c.x=o*d-a*f,c.y=a*d+o*f}}if(e.length>2){let r=Math.atan2(e[2].x,e[2].y)-s;while(r<0)r+=2*Math.PI;while(r>2*Math.PI)r-=2*Math.PI;if(r>Math.PI){let o=e[1].y/(0.0000000001+e[1].x);for(let a of e){var n=(a.x+o*a.y)/(1+o*o);a.x=2*n-a.x,a.y=2*n*o-a.y}}}}function Me(e){e.forEach((r)=>{r.parent=r});function s(r){if(r.parent!==r)r.parent=s(r.parent);return r.parent}function i(r,o){let a=s(r),c=s(o);a.parent=c}for(let r=0;r<e.length;++r)for(let o=r+1;o<e.length;++o){let a=e[r].radius+e[o].radius;if(st(e[r],e[o])+0.0000000001<a)i(e[o],e[r])}let n=new Map;for(let r=0;r<e.length;++r){let o=s(e[r]).parent.setid;if(!n.has(o))n.set(o,[]);n.get(o).push(e[r])}return e.forEach((r)=>{delete r.parent}),Array.from(n.values())}function zt(e){let s=(i)=>{let n=e.reduce((o,a)=>Math.max(o,a[i]+a.radius),Number.NEGATIVE_INFINITY),r=e.reduce((o,a)=>Math.min(o,a[i]-a.radius),Number.POSITIVE_INFINITY);return{max:n,min:r}};return{xRange:s("x"),yRange:s("y")}}function Ht(e,s,i){if(s==null)s=Math.PI/2;let n=Zt(e).map((f)=>Object.assign({},f)),r=Me(n);for(let f of r){Ie(f,s,i);let l=zt(f);f.size=(l.xRange.max-l.xRange.min)*(l.yRange.max-l.yRange.min),f.bounds=l}r.sort((f,l)=>l.size-f.size),n=r[0];let o=n.bounds,a=(o.xRange.max-o.xRange.min)/50;function c(f,l,v){if(!f)return;let y=f.bounds,M,k;if(l)M=o.xRange.max-y.xRange.min+a;else{M=o.xRange.max-y.xRange.max;let T=(y.xRange.max-y.xRange.min)/2-(o.xRange.max-o.xRange.min)/2;if(T<0)M+=T}if(v)k=o.yRange.max-y.yRange.min+a;else{k=o.yRange.max-y.yRange.max;let T=(y.yRange.max-y.yRange.min)/2-(o.yRange.max-o.yRange.min)/2;if(T<0)k+=T}for(let T of f)T.x+=M,T.y+=k,n.push(T)}let d=1;while(d<r.length)c(r[d],!0,!1),c(r[d+1],!1,!0),c(r[d+2],!0,!0),d+=3,o=zt(n);return Xt(n)}function Yt(e,s,i,n,r){let o=Zt(e);s-=2*n,i-=2*n;let{xRange:a,yRange:c}=zt(o);if(a.max===a.min||c.max===c.min)return console.log("not scaling solution: zero size detected"),e;let d,f;if(r){let M=Math.sqrt(r/Math.PI)*2;d=s/M,f=i/M}else d=s/(a.max-a.min),f=i/(c.max-c.min);let l=Math.min(f,d),v=(s-(a.max-a.min)*l)/2,y=(i-(c.max-c.min)*l)/2;return Xt(o.map((M)=>({radius:l*M.radius,x:n+v+(M.x-a.min)*l,y:n+y+(M.y-c.min)*l,setid:M.setid})))}function Xt(e){let s={};for(let i of e)s[i.setid]=i;return s}function Zt(e){return Object.keys(e).map((i)=>Object.assign(e[i],{setid:i}))}function Jt(e={}){let s=!1,i=600,n=350,r=15,o=1000,a=Math.PI/2,c=!0,d=null,f=!0,l=!0,v=null,y=null,M=!1,k=null,T=e&&e.symmetricalTextCentre?e.symmetricalTextCentre:!1,F={},D=e&&e.colourScheme?e.colourScheme:e&&e.colorScheme?e.colorScheme:["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"],C=0,p=function(m){if(m in F)return F[m];var x=F[m]=D[C];if(C+=1,C>=D.length)C=0;return x},I=Gt,S=xt;function u(m){let x=m.datum(),q=new Set;x.forEach((w)=>{if(w.size==0&&w.sets.length==1)q.add(w.sets[0])}),x=x.filter((w)=>!w.sets.some((Y)=>q.has(Y)));let _={},U={};if(x.length>0){let w=I(x,{lossFunction:S,distinct:M});if(c)w=Ht(w,a,y);_=Yt(w,i,n,r,d),U=$t(_,x,T)}let it={};x.forEach((w)=>{if(w.label)it[w.sets]=w.label});function Q(w){if(w.sets in it)return it[w.sets];if(w.sets.length==1)return""+w.sets[0]}m.selectAll("svg").data([_]).enter().append("svg");let H=m.select("svg");if(s)H.attr("viewBox",`0 0 ${i} ${n}`);else H.attr("width",i).attr("height",n);let B={},W=!1;H.selectAll(".venn-area path").each(function(w){let Y=this.getAttribute("d");if(w.sets.length==1&&Y&&!M)W=!0,B[w.sets[0]]=_e(Y)});function N(w){return(Y)=>{let dt=w.sets.map((ut)=>{let ct=B[ut],nt=_[ut];if(!ct)ct={x:i/2,y:n/2,radius:1};if(!nt)nt={x:i/2,y:n/2,radius:1};return{x:ct.x*(1-Y)+nt.x*Y,y:ct.y*(1-Y)+nt.y*Y,radius:ct.radius*(1-Y)+nt.radius*Y}});return Vt(dt,k)}}let X=H.selectAll(".venn-area").data(x,(w)=>w.sets),tt=X.enter().append("g").attr("class",(w)=>`venn-area venn-${w.sets.length==1?"circle":"intersection"}${w.colour||w.color?" venn-coloured":""}`).attr("data-venn-sets",(w)=>w.sets.join("_")),Z=tt.append("path"),rt=tt.append("text").attr("class","label").text((w)=>Q(w)).attr("text-anchor","middle").attr("dy",".35em").attr("x",i/2).attr("y",n/2);if(l)Z.style("fill-opacity","0").filter((w)=>w.sets.length==1).style("fill",(w)=>w.colour?w.colour:w.color?w.color:p(w.sets)).style("fill-opacity",".25"),rt.style("fill",(w)=>{if(w.colour||w.color)return"#FFF";if(e.textFill)return e.textFill;return w.sets.length==1?p(w.sets):"#444"});function et(w){if(typeof w.transition==="function")return w.transition("venn").duration(o);return w}let J=m;if(W&&typeof J.transition==="function")J=et(m),J.selectAll("path").attrTween("d",N);else J.selectAll("path").attr("d",(w)=>Vt(w.sets.map((Y)=>_[Y])),k);let V=J.selectAll("text").filter((w)=>(w.sets in U)).text((w)=>Q(w)).attr("x",(w)=>Math.floor(U[w.sets].x)).attr("y",(w)=>Math.floor(U[w.sets].y));if(f)if(W)if("on"in V)V.on("end",It(_,Q));else V.each("end",It(_,Q));else V.each(It(_,Q));let lt=et(X.exit()).remove();if(typeof X.transition==="function")lt.selectAll("path").attrTween("d",N);let at=lt.selectAll("text").attr("x",i/2).attr("y",n/2);if(v!==null)rt.style("font-size","0px"),V.style("font-size",v),at.style("font-size","0px");return{circles:_,textCentres:U,nodes:X,enter:tt,update:J,exit:lt}}return u.wrap=function(m){if(!arguments.length)return f;return f=m,u},u.useViewBox=function(){return s=!0,u},u.width=function(m){if(!arguments.length)return i;return i=m,u},u.height=function(m){if(!arguments.length)return n;return n=m,u},u.padding=function(m){if(!arguments.length)return r;return r=m,u},u.distinct=function(m){if(!arguments.length)return M;return M=m,u},u.colours=function(m){if(!arguments.length)return p;return p=m,u},u.colors=function(m){if(!arguments.length)return p;return p=m,u},u.fontSize=function(m){if(!arguments.length)return v;return v=m,u},u.round=function(m){if(!arguments.length)return k;return k=m,u},u.duration=function(m){if(!arguments.length)return o;return o=m,u},u.layoutFunction=function(m){if(!arguments.length)return I;return I=m,u},u.normalize=function(m){if(!arguments.length)return c;return c=m,u},u.scaleToFit=function(m){if(!arguments.length)return d;return d=m,u},u.styled=function(m){if(!arguments.length)return l;return l=m,u},u.orientation=function(m){if(!arguments.length)return a;return a=m,u},u.orientationOrder=function(m){if(!arguments.length)return y;return y=m,u},u.lossFunction=function(m){if(!arguments.length)return S;return S=m==="default"?xt:m==="logRatio"?Kt:m,u},u}function It(e,s){return function(i){let n=this,r=e[i.sets[0]].radius||50,o=s(i)||"",a=o.split(/\s+/).reverse(),c=3,d=(o.length+a.length)/3,f=a.pop(),l=[f],v=0,y=1.1;n.textContent=null;let M=[];function k(p){let I=n.ownerDocument.createElementNS(n.namespaceURI,"tspan");return I.textContent=p,M.push(I),n.append(I),I}let T=k(f);while(!0){if(f=a.pop(),!f)break;l.push(f);let p=l.join(" ");if(T.textContent=p,p.length>d&&T.getComputedTextLength()>r)l.pop(),T.textContent=l.join(" "),l=[f],T=k(f),v++}let F=0.35-v*y/2,D=n.getAttribute("x"),C=n.getAttribute("y");M.forEach((p,I)=>{p.setAttribute("x",D),p.setAttribute("y",C),p.setAttribute("dy",`${F+I*y}em`)})}}function Mt(e,s,i){let n=s[0].radius-st(s[0],e);for(let r=1;r<s.length;++r){let o=s[r].radius-st(s[r],e);if(o<=n)n=o}for(let r=0;r<i.length;++r){let o=st(i[r],e)-i[r].radius;if(o<=n)n=o}return n}function Qt(e,s,i){let n=[];for(let l of e)n.push({x:l.x,y:l.y}),n.push({x:l.x+l.radius/2,y:l.y}),n.push({x:l.x-l.radius/2,y:l.y}),n.push({x:l.x,y:l.y+l.radius/2}),n.push({x:l.x,y:l.y-l.radius/2});let r=n[0],o=Mt(n[0],e,s);for(let l=1;l<n.length;++l){let v=Mt(n[l],e,s);if(v>=o)r=n[l],o=v}let a=Ut((l)=>-1*Mt({x:l[0],y:l[1]},e,s),[r.x,r.y],{maxIterations:500,minErrorDelta:0.0000000001}).x,c={x:i?0:a[0],y:a[1]},d=!0;for(let l of e)if(st(c,l)>l.radius){d=!1;break}for(let l of s)if(st(c,l)<l.radius){d=!1;break}if(d)return c;if(e.length==1)return{x:e[0].x,y:e[0].y};let f={};if(mt(e,f),f.arcs.length===0)return{x:0,y:-1000,disjoint:!0};if(f.arcs.length==1)return{x:f.arcs[0].circle.x,y:f.arcs[0].circle.y};if(s.length)return Qt(e,[]);return qt(f.arcs.map((l)=>l.p1))}function Se(e){let s={},i=Object.keys(e);for(let n of i)s[n]=[];for(let n=0;n<i.length;n++){let r=i[n],o=e[r];for(let a=n+1;a<i.length;++a){let c=i[a],d=e[c],f=st(o,d);if(f+d.radius<=o.radius+0.0000000001)s[c].push(r);else if(f+o.radius<=d.radius+0.0000000001)s[r].push(c)}}return s}function $t(e,s,i){let n={},r=Se(e);for(let o=0;o<s.length;++o){let a=s[o].sets,c={},d={};for(let y=0;y<a.length;++y){c[a[y]]=!0;let M=r[a[y]];for(let k=0;k<M.length;++k)d[M[k]]=!0}let f=[],l=[];for(let y in e)if(y in c)f.push(e[y]);else if(!(y in d))l.push(e[y]);let v=Qt(f,l,i);if(n[a]=v,v.disjoint&&s[o].size>0)console.log("WARNING: area "+a+" not represented on screen")}return n}function we(e,s,i){let n=[];return n.push(`
1
+ import{t,Ee,Bl,A,g,K,E,te,R,L,z,O,U,j,G,h,de,oe,y}from"./index-vnw3hbeg.js";var ce=(e,s)=>Bl(e,"a",-s),kt=ce;function mt(e,s){let i=fe(e),n=i.filter((c)=>ue(c,e)),r=0,o=0,a=[];if(n.length>1){let c=qt(n);for(let f=0;f<n.length;++f){let l=n[f];l.angle=Math.atan2(l.x-c.x,l.y-c.y)}n.sort((f,l)=>l.angle-f.angle);let d=n[n.length-1];for(let f=0;f<n.length;++f){let l=n[f];o+=(d.x+l.x)*(l.y-d.y);let v={x:(l.x+d.x)/2,y:(l.y+d.y)/2},p=null;for(let M=0;M<l.parentIndex.length;++M)if(d.parentIndex.includes(l.parentIndex[M])){let k=e[l.parentIndex[M]],T=Math.atan2(l.x-k.x,l.y-k.y),F=Math.atan2(d.x-k.x,d.y-k.y),D=F-T;if(D<0)D+=2*Math.PI;let C=F-D/2,m=st(v,{x:k.x+k.radius*Math.sin(C),y:k.y+k.radius*Math.cos(C)});if(m>k.radius*2)m=k.radius*2;if(p==null||p.width>m)p={circle:k,width:m,p1:l,p2:d,large:m>k.radius,sweep:!0}}if(p!=null)a.push(p),r+=St(p.circle.radius,p.width),d=l}}else{let c=e[0];for(let f=1;f<e.length;++f)if(e[f].radius<c.radius)c=e[f];let d=!1;for(let f=0;f<e.length;++f)if(st(e[f],c)>Math.abs(c.radius-e[f].radius)){d=!0;break}if(d)r=o=0;else r=c.radius*c.radius*Math.PI,a.push({circle:c,p1:{x:c.x,y:c.y+c.radius},p2:{x:c.x-0.0000000001,y:c.y+c.radius},width:c.radius*2,large:!0,sweep:!0})}if(o/=2,s)s.area=r+o,s.arcArea=r,s.polygonArea=o,s.arcs=a,s.innerPoints=n,s.intersectionPoints=i;return r+o}function ue(e,s){return s.every((i)=>st(e,i)<i.radius+0.0000000001)}function fe(e){let s=[];for(let i=0;i<e.length;++i)for(let n=i+1;n<e.length;++n){let r=Bt(e[i],e[n]);for(let o of r)o.parentIndex=[i,n],s.push(o)}return s}function St(e,s){return e*e*Math.acos(1-s/e)-(e-s)*Math.sqrt(s*(2*e-s))}function st(e,s){return Math.sqrt((e.x-s.x)*(e.x-s.x)+(e.y-s.y)*(e.y-s.y))}function At(e,s,i){if(i>=e+s)return 0;if(i<=Math.abs(e-s))return Math.PI*Math.min(e,s)*Math.min(e,s);let n=e-(i*i-s*s+e*e)/(2*i),r=s-(i*i-e*e+s*s)/(2*i);return St(e,n)+St(s,r)}function Bt(e,s){let i=st(e,s),n=e.radius,r=s.radius;if(i>=n+r||i<=Math.abs(n-r))return[];let o=(n*n-r*r+i*i)/(2*i),a=Math.sqrt(n*n-o*o),c=e.x+o*(s.x-e.x)/i,d=e.y+o*(s.y-e.y)/i,f=-(s.y-e.y)*(a/i),l=-(s.x-e.x)*(a/i);return[{x:c+f,y:d-l},{x:c-f,y:d+l}]}function qt(e){let s={x:0,y:0};for(let i of e)s.x+=i.x,s.y+=i.y;return s.x/=e.length,s.y/=e.length,s}function he(e,s,i,n){n=n||{};let r=n.maxIterations||100,o=n.tolerance||0.0000000001,a=e(s),c=e(i),d=i-s;if(a*c>0)throw"Initial bisect points must have opposite signs";if(a===0)return s;if(c===0)return i;for(let f=0;f<r;++f){d/=2;let l=s+d,v=e(l);if(v*a>=0)s=l;if(Math.abs(d)<o||v===0)return l}return s+d}function wt(e){let s=Array(e);for(let i=0;i<e;++i)s[i]=0;return s}function Pt(e,s){return wt(e).map(()=>wt(s))}function gt(e,s){let i=0;for(let n=0;n<e.length;++n)i+=e[n]*s[n];return i}function _t(e){return Math.sqrt(gt(e,e))}function Et(e,s,i){for(let n=0;n<s.length;++n)e[n]=s[n]*i}function ft(e,s,i,n,r){for(let o=0;o<e.length;++o)e[o]=s*i[o]+n*r[o]}function Ut(e,s,i){i=i||{};let n=i.maxIterations||s.length*200,r=i.nonZeroDelta||1.05,o=i.zeroDelta||0.001,a=i.minErrorDelta||0.000001,c=i.minErrorDelta||0.00001,d=i.rho!==void 0?i.rho:1,f=i.chi!==void 0?i.chi:2,l=i.psi!==void 0?i.psi:-0.5,v=i.sigma!==void 0?i.sigma:0.5,p,M=s.length,k=Array(M+1);k[0]=s,k[0].fx=e(s),k[0].id=0;for(let S=0;S<M;++S){let u=s.slice();u[S]=u[S]?u[S]*r:o,k[S+1]=u,k[S+1].fx=e(u),k[S+1].id=S+1}function T(S){for(let u=0;u<S.length;u++)k[M][u]=S[u];k[M].fx=S.fx}let F=(S,u)=>S.fx-u.fx,D=s.slice(),C=s.slice(),m=s.slice(),I=s.slice();for(let S=0;S<n;++S){if(k.sort(F),i.history){let b=k.map((x)=>{let B=x.slice();return B.fx=x.fx,B.id=x.id,B});b.sort((x,B)=>x.id-B.id),i.history.push({x:k[0].slice(),fx:k[0].fx,simplex:b})}p=0;for(let b=0;b<M;++b)p=Math.max(p,Math.abs(k[0][b]-k[1][b]));if(Math.abs(k[0].fx-k[M].fx)<a&&p<c)break;for(let b=0;b<M;++b){D[b]=0;for(let x=0;x<M;++x)D[b]+=k[x][b];D[b]/=M}let u=k[M];if(ft(C,1+d,D,-d,u),C.fx=e(C),C.fx<k[0].fx)if(ft(I,1+f,D,-f,u),I.fx=e(I),I.fx<C.fx)T(I);else T(C);else if(C.fx>=k[M-1].fx){let b=!1;if(C.fx>u.fx)if(ft(m,1+l,D,-l,u),m.fx=e(m),m.fx<u.fx)T(m);else b=!0;else if(ft(m,1-l*d,D,l*d,u),m.fx=e(m),m.fx<C.fx)T(m);else b=!0;if(b){if(v>=1)break;for(let x=1;x<k.length;++x)ft(k[x],1-v,k[0],v,k[x]),k[x].fx=e(k[x])}}else T(C)}return k.sort(F),{fx:k[0].fx,x:k[0]}}function ge(e,s,i,n,r,o,a){let c=i.fx,d=gt(i.fxprime,s),f=c,l=c,v=d,p=0;r=r||1,o=o||0.000001,a=a||0.1;function M(k,T,F){for(let D=0;D<16;++D)if(r=(k+T)/2,ft(n.x,1,i.x,r,s),f=n.fx=e(n.x,n.fxprime),v=gt(n.fxprime,s),f>c+o*r*d||f>=F)T=r;else{if(Math.abs(v)<=-a*d)return r;if(v*(T-k)>=0)T=k;k=r,F=f}return 0}for(let k=0;k<10;++k){if(ft(n.x,1,i.x,r,s),f=n.fx=e(n.x,n.fxprime),v=gt(n.fxprime,s),f>c+o*r*d||k&&f>=l)return M(p,r,l);if(Math.abs(v)<=-a*d)return r;if(v>=0)return M(r,p,f);l=f,p=r,r*=2}return r}function xe(e,s,i){let n={x:s.slice(),fx:0,fxprime:s.slice()},r={x:s.slice(),fx:0,fxprime:s.slice()},o=s.slice(),a,c,d=1,f;i=i||{},f=i.maxIterations||s.length*20,n.fx=e(n.x,n.fxprime),a=n.fxprime.slice(),Et(a,n.fxprime,-1);for(let l=0;l<f;++l){if(d=ge(e,a,n,r,d),i.history)i.history.push({x:n.x.slice(),fx:n.fx,fxprime:n.fxprime.slice(),alpha:d});if(!d)Et(a,n.fxprime,-1);else{ft(o,1,r.fxprime,-1,n.fxprime);let v=gt(n.fxprime,n.fxprime),p=Math.max(0,gt(o,r.fxprime)/v);ft(a,p,a,-1,r.fxprime),c=n,n=r,r=c}if(_t(n.fxprime)<=0.00001)break}if(i.history)i.history.push({x:n.x.slice(),fx:n.fx,fxprime:n.fxprime.slice(),alpha:d});return n}function Gt(e,s={}){s.maxIterations=s.maxIterations||500;let i=s.initialLayout||be,n=s.lossFunction||xt,r=ye(e,s),o=i(r,s),a=Object.keys(o),c=[];for(let l of a)c.push(o[l].x),c.push(o[l].y);let f=Ut((l)=>{let v={};for(let p=0;p<a.length;++p){let M=a[p];v[M]={x:l[2*p],y:l[2*p+1],radius:o[M].radius}}return n(v,r)},c,s).x;for(let l=0;l<a.length;++l){let v=a[l];o[v].x=f[2*l],o[v].y=f[2*l+1]}return o}var Wt=0.0000000001;function Tt(e,s,i){if(Math.min(e,s)*Math.min(e,s)*Math.PI<=i+Wt)return Math.abs(e-s);return he((n)=>At(e,s,n)-i,0,e+s)}function ye(e,s={}){let i=s.distinct,n=e.map((c)=>Object.assign({},c));function r(c){return c.join(";")}if(i){let c=new Map;for(let d of n)for(let f=0;f<d.sets.length;f++){let l=String(d.sets[f]);c.set(l,d.size+(c.get(l)||0));for(let v=f+1;v<d.sets.length;v++){let p=String(d.sets[v]),M=`${l};${p}`,k=`${p};${l}`;c.set(M,d.size+(c.get(M)||0)),c.set(k,d.size+(c.get(k)||0))}}for(let d of n)if(d.sets.length<3)d.size=c.get(r(d.sets))}let o=[],a=new Set;for(let c of n)if(c.sets.length===1)o.push(c.sets[0]);else if(c.sets.length===2){let d=c.sets[0],f=c.sets[1];a.add(r(c.sets)),a.add(r([f,d]))}o.sort((c,d)=>c===d?0:c<d?-1:1);for(let c=0;c<o.length;++c){let d=o[c];for(let f=c+1;f<o.length;++f){let l=o[f];if(!a.has(r([d,l])))n.push({sets:[d,l],size:0})}}return n}function pe(e,s,i){let n=Pt(s.length,s.length),r=Pt(s.length,s.length);return e.filter((o)=>o.sets.length===2).forEach((o)=>{let a=i[o.sets[0]],c=i[o.sets[1]],d=Math.sqrt(s[a].size/Math.PI),f=Math.sqrt(s[c].size/Math.PI),l=Tt(d,f,o.size);n[a][c]=n[c][a]=l;let v=0;if(o.size+0.0000000001>=Math.min(s[a].size,s[c].size))v=1;else if(o.size<=0.0000000001)v=-1;r[a][c]=r[c][a]=v}),{distances:n,constraints:r}}function me(e,s,i,n){for(let o=0;o<s.length;++o)s[o]=0;let r=0;for(let o=0;o<i.length;++o){let a=e[2*o],c=e[2*o+1];for(let d=o+1;d<i.length;++d){let f=e[2*d],l=e[2*d+1],v=i[o][d],p=n[o][d],M=(f-a)*(f-a)+(l-c)*(l-c),k=Math.sqrt(M),T=M-v*v;if(p>0&&k<=v||p<0&&k>=v)continue;r+=2*T*T,s[2*o]+=4*T*(a-f),s[2*o+1]+=4*T*(c-l),s[2*d]+=4*T*(f-a),s[2*d+1]+=4*T*(l-c)}}return r}function be(e,s={}){let i=ke(e,s),n=s.lossFunction||xt;if(e.length>=8){let r=ve(e,s),o=n(r,e),a=n(i,e);if(o+0.00000001<a)i=r}return i}function ve(e,s={}){let i=s.restarts||10,n=[],r={};for(let p of e)if(p.sets.length===1)r[p.sets[0]]=n.length,n.push(p);let{distances:o,constraints:a}=pe(e,n,r),c=_t(o.map(_t))/o.length;o=o.map((p)=>p.map((M)=>M/c));let d=(p,M)=>me(p,M,o,a),f=null;for(let p=0;p<i;++p){let M=wt(o.length*2).map(Math.random),k=xe(d,M,s);if(!f||k.fx<f.fx)f=k}let l=f.x,v={};for(let p=0;p<n.length;++p){let M=n[p];v[M.sets[0]]={x:l[2*p]*c,y:l[2*p+1]*c,radius:Math.sqrt(M.size/Math.PI)}}if(s.history)for(let p of s.history)Et(p.x,c);return v}function ke(e,s){let i=s&&s.lossFunction?s.lossFunction:xt,n={},r={};for(let v of e)if(v.sets.length===1){let p=v.sets[0];n[p]={x:10000000000,y:10000000000,rowid:n.length,size:v.size,radius:Math.sqrt(v.size/Math.PI)},r[p]=[]}e=e.filter((v)=>v.sets.length===2);for(let v of e){let p=v.weight!=null?v.weight:1,M=v.sets[0],k=v.sets[1];if(v.size+Wt>=Math.min(n[M].size,n[k].size))p=0;r[M].push({set:k,size:v.size,weight:p}),r[k].push({set:M,size:v.size,weight:p})}let o=[];Object.keys(r).forEach((v)=>{let p=0;for(let M=0;M<r[v].length;++M)p+=r[v][M].size*r[v][M].weight;o.push({set:v,size:p})});function a(v,p){return p.size-v.size}o.sort(a);let c={};function d(v){return v.set in c}function f(v,p){n[p].x=v.x,n[p].y=v.y,c[p]=!0}f({x:0,y:0},o[0].set);for(let v=1;v<o.length;++v){let p=o[v].set,M=r[p].filter(d),k=n[p];if(M.sort(a),M.length===0)throw"ERROR: missing pairwise overlap information";let T=[];for(var l=0;l<M.length;++l){let C=n[M[l].set],m=Tt(k.radius,C.radius,M[l].size);T.push({x:C.x+m,y:C.y}),T.push({x:C.x-m,y:C.y}),T.push({y:C.y+m,x:C.x}),T.push({y:C.y-m,x:C.x});for(let I=l+1;I<M.length;++I){let S=n[M[I].set],u=Tt(k.radius,S.radius,M[I].size),b=Bt({x:C.x,y:C.y,radius:m},{x:S.x,y:S.y,radius:u});T.push(...b)}}let F=100000000000000000000000000000000000000000000000000,D=T[0];for(let C of T){n[p].x=C.x,n[p].y=C.y;let m=i(n,e);if(m<F)F=m,D=C}f(D,p)}return n}function xt(e,s){let i=0;for(let n of s){if(n.sets.length===1)continue;let r;if(n.sets.length===2){let a=e[n.sets[0]],c=e[n.sets[1]];r=At(a.radius,c.radius,st(a,c))}else r=mt(n.sets.map((a)=>e[a]));let o=n.weight!=null?n.weight:1;i+=o*(r-n.size)*(r-n.size)}return i}function Kt(e,s){let i=0;for(let n of s){if(n.sets.length===1)continue;let r;if(n.sets.length===2){let c=e[n.sets[0]],d=e[n.sets[1]];r=At(c.radius,d.radius,st(c,d))}else r=mt(n.sets.map((c)=>e[c]));let o=n.weight!=null?n.weight:1,a=Math.log((r+1)/(n.size+1));i+=o*a*a}return i}function Ie(e,s,i){if(i==null)e.sort((r,o)=>o.radius-r.radius);else e.sort(i);if(e.length>0){let r=e[0].x,o=e[0].y;for(let a of e)a.x-=r,a.y-=o}if(e.length===2){if(st(e[0],e[1])<Math.abs(e[1].radius-e[0].radius))e[1].x=e[0].x+e[0].radius-e[1].radius-0.0000000001,e[1].y=e[0].y}if(e.length>1){let r=Math.atan2(e[1].x,e[1].y)-s,o=Math.cos(r),a=Math.sin(r);for(let c of e){let{x:d,y:f}=c;c.x=o*d-a*f,c.y=a*d+o*f}}if(e.length>2){let r=Math.atan2(e[2].x,e[2].y)-s;while(r<0)r+=2*Math.PI;while(r>2*Math.PI)r-=2*Math.PI;if(r>Math.PI){let o=e[1].y/(0.0000000001+e[1].x);for(let a of e){var n=(a.x+o*a.y)/(1+o*o);a.x=2*n-a.x,a.y=2*n*o-a.y}}}}function Me(e){e.forEach((r)=>{r.parent=r});function s(r){if(r.parent!==r)r.parent=s(r.parent);return r.parent}function i(r,o){let a=s(r),c=s(o);a.parent=c}for(let r=0;r<e.length;++r)for(let o=r+1;o<e.length;++o){let a=e[r].radius+e[o].radius;if(st(e[r],e[o])+0.0000000001<a)i(e[o],e[r])}let n=new Map;for(let r=0;r<e.length;++r){let o=s(e[r]).parent.setid;if(!n.has(o))n.set(o,[]);n.get(o).push(e[r])}return e.forEach((r)=>{delete r.parent}),Array.from(n.values())}function zt(e){let s=(i)=>{let n=e.reduce((o,a)=>Math.max(o,a[i]+a.radius),Number.NEGATIVE_INFINITY),r=e.reduce((o,a)=>Math.min(o,a[i]-a.radius),Number.POSITIVE_INFINITY);return{max:n,min:r}};return{xRange:s("x"),yRange:s("y")}}function Ht(e,s,i){if(s==null)s=Math.PI/2;let n=Zt(e).map((f)=>Object.assign({},f)),r=Me(n);for(let f of r){Ie(f,s,i);let l=zt(f);f.size=(l.xRange.max-l.xRange.min)*(l.yRange.max-l.yRange.min),f.bounds=l}r.sort((f,l)=>l.size-f.size),n=r[0];let o=n.bounds,a=(o.xRange.max-o.xRange.min)/50;function c(f,l,v){if(!f)return;let p=f.bounds,M,k;if(l)M=o.xRange.max-p.xRange.min+a;else{M=o.xRange.max-p.xRange.max;let T=(p.xRange.max-p.xRange.min)/2-(o.xRange.max-o.xRange.min)/2;if(T<0)M+=T}if(v)k=o.yRange.max-p.yRange.min+a;else{k=o.yRange.max-p.yRange.max;let T=(p.yRange.max-p.yRange.min)/2-(o.yRange.max-o.yRange.min)/2;if(T<0)k+=T}for(let T of f)T.x+=M,T.y+=k,n.push(T)}let d=1;while(d<r.length)c(r[d],!0,!1),c(r[d+1],!1,!0),c(r[d+2],!0,!0),d+=3,o=zt(n);return Xt(n)}function Yt(e,s,i,n,r){let o=Zt(e);s-=2*n,i-=2*n;let{xRange:a,yRange:c}=zt(o);if(a.max===a.min||c.max===c.min)return console.log("not scaling solution: zero size detected"),e;let d,f;if(r){let M=Math.sqrt(r/Math.PI)*2;d=s/M,f=i/M}else d=s/(a.max-a.min),f=i/(c.max-c.min);let l=Math.min(f,d),v=(s-(a.max-a.min)*l)/2,p=(i-(c.max-c.min)*l)/2;return Xt(o.map((M)=>({radius:l*M.radius,x:n+v+(M.x-a.min)*l,y:n+p+(M.y-c.min)*l,setid:M.setid})))}function Xt(e){let s={};for(let i of e)s[i.setid]=i;return s}function Zt(e){return Object.keys(e).map((i)=>Object.assign(e[i],{setid:i}))}function Jt(e={}){let s=!1,i=600,n=350,r=15,o=1000,a=Math.PI/2,c=!0,d=null,f=!0,l=!0,v=null,p=null,M=!1,k=null,T=e&&e.symmetricalTextCentre?e.symmetricalTextCentre:!1,F={},D=e&&e.colourScheme?e.colourScheme:e&&e.colorScheme?e.colorScheme:["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"],C=0,m=function(b){if(b in F)return F[b];var x=F[b]=D[C];if(C+=1,C>=D.length)C=0;return x},I=Gt,S=xt;function u(b){let x=b.datum(),B=new Set;x.forEach((w)=>{if(w.size==0&&w.sets.length==1)B.add(w.sets[0])}),x=x.filter((w)=>!w.sets.some((Y)=>B.has(Y)));let _={},q={};if(x.length>0){let w=I(x,{lossFunction:S,distinct:M});if(c)w=Ht(w,a,p);_=Yt(w,i,n,r,d),q=$t(_,x,T)}let it={};x.forEach((w)=>{if(w.label)it[w.sets]=w.label});function Q(w){if(w.sets in it)return it[w.sets];if(w.sets.length==1)return""+w.sets[0]}b.selectAll("svg").data([_]).enter().append("svg");let H=b.select("svg");if(s)H.attr("viewBox",`0 0 ${i} ${n}`);else H.attr("width",i).attr("height",n);let V={},W=!1;H.selectAll(".venn-area path").each(function(w){let Y=this.getAttribute("d");if(w.sets.length==1&&Y&&!M)W=!0,V[w.sets[0]]=_e(Y)});function N(w){return(Y)=>{let dt=w.sets.map((ut)=>{let ct=V[ut],nt=_[ut];if(!ct)ct={x:i/2,y:n/2,radius:1};if(!nt)nt={x:i/2,y:n/2,radius:1};return{x:ct.x*(1-Y)+nt.x*Y,y:ct.y*(1-Y)+nt.y*Y,radius:ct.radius*(1-Y)+nt.radius*Y}});return Vt(dt,k)}}let X=H.selectAll(".venn-area").data(x,(w)=>w.sets),tt=X.enter().append("g").attr("class",(w)=>`venn-area venn-${w.sets.length==1?"circle":"intersection"}${w.colour||w.color?" venn-coloured":""}`).attr("data-venn-sets",(w)=>w.sets.join("_")),Z=tt.append("path"),rt=tt.append("text").attr("class","label").text((w)=>Q(w)).attr("text-anchor","middle").attr("dy",".35em").attr("x",i/2).attr("y",n/2);if(l)Z.style("fill-opacity","0").filter((w)=>w.sets.length==1).style("fill",(w)=>w.colour?w.colour:w.color?w.color:m(w.sets)).style("fill-opacity",".25"),rt.style("fill",(w)=>{if(w.colour||w.color)return"#FFF";if(e.textFill)return e.textFill;return w.sets.length==1?m(w.sets):"#444"});function et(w){if(typeof w.transition==="function")return w.transition("venn").duration(o);return w}let J=b;if(W&&typeof J.transition==="function")J=et(b),J.selectAll("path").attrTween("d",N);else J.selectAll("path").attr("d",(w)=>Vt(w.sets.map((Y)=>_[Y])),k);let P=J.selectAll("text").filter((w)=>(w.sets in q)).text((w)=>Q(w)).attr("x",(w)=>Math.floor(q[w.sets].x)).attr("y",(w)=>Math.floor(q[w.sets].y));if(f)if(W)if("on"in P)P.on("end",It(_,Q));else P.each("end",It(_,Q));else P.each(It(_,Q));let lt=et(X.exit()).remove();if(typeof X.transition==="function")lt.selectAll("path").attrTween("d",N);let at=lt.selectAll("text").attr("x",i/2).attr("y",n/2);if(v!==null)rt.style("font-size","0px"),P.style("font-size",v),at.style("font-size","0px");return{circles:_,textCentres:q,nodes:X,enter:tt,update:J,exit:lt}}return u.wrap=function(b){if(!arguments.length)return f;return f=b,u},u.useViewBox=function(){return s=!0,u},u.width=function(b){if(!arguments.length)return i;return i=b,u},u.height=function(b){if(!arguments.length)return n;return n=b,u},u.padding=function(b){if(!arguments.length)return r;return r=b,u},u.distinct=function(b){if(!arguments.length)return M;return M=b,u},u.colours=function(b){if(!arguments.length)return m;return m=b,u},u.colors=function(b){if(!arguments.length)return m;return m=b,u},u.fontSize=function(b){if(!arguments.length)return v;return v=b,u},u.round=function(b){if(!arguments.length)return k;return k=b,u},u.duration=function(b){if(!arguments.length)return o;return o=b,u},u.layoutFunction=function(b){if(!arguments.length)return I;return I=b,u},u.normalize=function(b){if(!arguments.length)return c;return c=b,u},u.scaleToFit=function(b){if(!arguments.length)return d;return d=b,u},u.styled=function(b){if(!arguments.length)return l;return l=b,u},u.orientation=function(b){if(!arguments.length)return a;return a=b,u},u.orientationOrder=function(b){if(!arguments.length)return p;return p=b,u},u.lossFunction=function(b){if(!arguments.length)return S;return S=b==="default"?xt:b==="logRatio"?Kt:b,u},u}function It(e,s){return function(i){let n=this,r=e[i.sets[0]].radius||50,o=s(i)||"",a=o.split(/\s+/).reverse(),c=3,d=(o.length+a.length)/3,f=a.pop(),l=[f],v=0,p=1.1;n.textContent=null;let M=[];function k(m){let I=n.ownerDocument.createElementNS(n.namespaceURI,"tspan");return I.textContent=m,M.push(I),n.append(I),I}let T=k(f);while(!0){if(f=a.pop(),!f)break;l.push(f);let m=l.join(" ");if(T.textContent=m,m.length>d&&T.getComputedTextLength()>r)l.pop(),T.textContent=l.join(" "),l=[f],T=k(f),v++}let F=0.35-v*p/2,D=n.getAttribute("x"),C=n.getAttribute("y");M.forEach((m,I)=>{m.setAttribute("x",D),m.setAttribute("y",C),m.setAttribute("dy",`${F+I*p}em`)})}}function Mt(e,s,i){let n=s[0].radius-st(s[0],e);for(let r=1;r<s.length;++r){let o=s[r].radius-st(s[r],e);if(o<=n)n=o}for(let r=0;r<i.length;++r){let o=st(i[r],e)-i[r].radius;if(o<=n)n=o}return n}function Qt(e,s,i){let n=[];for(let l of e)n.push({x:l.x,y:l.y}),n.push({x:l.x+l.radius/2,y:l.y}),n.push({x:l.x-l.radius/2,y:l.y}),n.push({x:l.x,y:l.y+l.radius/2}),n.push({x:l.x,y:l.y-l.radius/2});let r=n[0],o=Mt(n[0],e,s);for(let l=1;l<n.length;++l){let v=Mt(n[l],e,s);if(v>=o)r=n[l],o=v}let a=Ut((l)=>-1*Mt({x:l[0],y:l[1]},e,s),[r.x,r.y],{maxIterations:500,minErrorDelta:0.0000000001}).x,c={x:i?0:a[0],y:a[1]},d=!0;for(let l of e)if(st(c,l)>l.radius){d=!1;break}for(let l of s)if(st(c,l)<l.radius){d=!1;break}if(d)return c;if(e.length==1)return{x:e[0].x,y:e[0].y};let f={};if(mt(e,f),f.arcs.length===0)return{x:0,y:-1000,disjoint:!0};if(f.arcs.length==1)return{x:f.arcs[0].circle.x,y:f.arcs[0].circle.y};if(s.length)return Qt(e,[]);return qt(f.arcs.map((l)=>l.p1))}function Se(e){let s={},i=Object.keys(e);for(let n of i)s[n]=[];for(let n=0;n<i.length;n++){let r=i[n],o=e[r];for(let a=n+1;a<i.length;++a){let c=i[a],d=e[c],f=st(o,d);if(f+d.radius<=o.radius+0.0000000001)s[c].push(r);else if(f+o.radius<=d.radius+0.0000000001)s[r].push(c)}}return s}function $t(e,s,i){let n={},r=Se(e);for(let o=0;o<s.length;++o){let a=s[o].sets,c={},d={};for(let p=0;p<a.length;++p){c[a[p]]=!0;let M=r[a[p]];for(let k=0;k<M.length;++k)d[M[k]]=!0}let f=[],l=[];for(let p in e)if(p in c)f.push(e[p]);else if(!(p in d))l.push(e[p]);let v=Qt(f,l,i);if(n[a]=v,v.disjoint&&s[o].size>0)console.log("WARNING: area "+a+" not represented on screen")}return n}function we(e,s,i){let n=[];return n.push(`
2
2
  M`,e,s),n.push(`
3
3
  m`,-i,0),n.push(`
4
4
  a`,i,i,0,1,0,i*2,0),n.push(`
5
5
  a`,i,i,0,1,0,-i*2,0),n.join(" ")}function _e(e){let s=e.split(" ");return{x:Number.parseFloat(s[1]),y:Number.parseFloat(s[2]),radius:-Number.parseFloat(s[4])}}function ee(e){if(e.length===0)return[];let s={};return mt(e,s),s.arcs}function ne(e,s){if(e.length===0)return"M 0 0";let i=Math.pow(10,s||0),n=s!=null?(o)=>Math.round(o*i)/i:(o)=>o;if(e.length==1){let o=e[0].circle;return we(n(o.x),n(o.y),n(o.radius))}let r=[`
6
6
  M`,n(e[0].p2.x),n(e[0].p2.y)];for(let o of e){let a=n(o.circle.radius);r.push(`
7
- A`,a,a,0,o.large?1:0,o.sweep?1:0,n(o.p1.x),n(o.p1.y))}return r.join(" ")}function Vt(e,s){return ne(ee(e),s)}function se(e,s={}){let{lossFunction:i,layoutFunction:n=Gt,normalize:r=!0,orientation:o=Math.PI/2,orientationOrder:a,width:c=600,height:d=350,padding:f=15,scaleToFit:l=!1,symmetricalTextCentre:v=!1,distinct:y,round:M=2}=s,k=n(e,{lossFunction:i==="default"||!i?xt:i==="logRatio"?Kt:i,distinct:y});if(r)k=Ht(k,o,a);let T=Yt(k,c,d,f,l),F=$t(T,e,v),D=new Map(Object.keys(T).map((I)=>[I,{set:I,x:T[I].x,y:T[I].y,radius:T[I].radius}])),C=e.map((I)=>{let S=I.sets.map((x)=>D.get(x)),u=ee(S),m=ne(u,M);return{circles:S,arcs:u,path:m,area:I,has:new Set(I.sets)}});function p(I){let S="";for(let u of C)if(u.has.size>I.length&&I.every((m)=>u.has.has(m)))S+=" "+u.path;return S}return C.map(({circles:I,arcs:S,path:u,area:m})=>({data:m,text:F[m.sets],circles:I,arcs:S,path:u,distinctPath:u+p(m.sets)}))}var Ct=function(){var e=t(function(C,p,I,S){for(I=I||{},S=C.length;S--;I[C[S]]=p);return I},"o"),s=[5,8],i=[7,8,11,12,17,19,22,24],n=[1,17],r=[1,18],o=[7,8,11,12,14,15,16,17,19,20,21,22,24,27],a=[1,31],c=[1,39],d=[7,8,11,12,17,19,22,24,27],f=[1,57],l=[1,56],v=[1,58],y=[1,59],M=[1,60],k=[7,8,11,12,16,17,19,20,22,24,27,31,32,33],T={trace:t(function(){},"trace"),yy:{},symbols_:{error:2,start:3,optNewlines:4,VENN:5,document:6,EOF:7,NEWLINE:8,line:9,statement:10,TITLE:11,SET:12,identifier:13,BRACKET_LABEL:14,COLON:15,NUMERIC:16,UNION:17,identifierList:18,TEXT:19,IDENTIFIER:20,STRING:21,INDENT_TEXT:22,indentedTextTail:23,STYLE:24,stylesOpt:25,styleField:26,COMMA:27,styleValue:28,valueTokens:29,valueToken:30,HEXCOLOR:31,RGBCOLOR:32,RGBACOLOR:33,$accept:0,$end:1},terminals_:{2:"error",5:"VENN",7:"EOF",8:"NEWLINE",11:"TITLE",12:"SET",14:"BRACKET_LABEL",15:"COLON",16:"NUMERIC",17:"UNION",19:"TEXT",20:"IDENTIFIER",21:"STRING",22:"INDENT_TEXT",24:"STYLE",27:"COMMA",31:"HEXCOLOR",32:"RGBCOLOR",33:"RGBACOLOR"},productions_:[0,[3,4],[4,0],[4,2],[6,0],[6,2],[9,1],[9,1],[10,1],[10,2],[10,3],[10,4],[10,5],[10,2],[10,3],[10,4],[10,5],[10,3],[10,3],[10,3],[10,4],[10,4],[10,2],[10,3],[23,1],[23,1],[23,1],[23,2],[23,2],[25,1],[25,3],[26,3],[28,1],[28,1],[29,1],[29,2],[30,1],[30,1],[30,1],[30,1],[30,1],[18,1],[18,3],[13,1],[13,1]],performAction:t(function(p,I,S,u,m,x,q){var _=x.length-1;switch(m){case 1:return x[_-1];case 2:case 3:case 4:this.$=[];break;case 5:x[_-1].push(x[_]),this.$=x[_-1];break;case 6:this.$=[];break;case 7:case 22:case 32:case 36:case 37:case 38:case 39:case 40:this.$=x[_];break;case 8:u.setDiagramTitle(x[_].substr(6)),this.$=x[_].substr(6);break;case 9:if(u.addSubsetData([x[_]],void 0,void 0),u.setIndentMode)u.setIndentMode(!0);break;case 10:if(u.addSubsetData([x[_-1]],x[_],void 0),u.setIndentMode)u.setIndentMode(!0);break;case 11:if(u.addSubsetData([x[_-2]],void 0,parseFloat(x[_])),u.setIndentMode)u.setIndentMode(!0);break;case 12:if(u.addSubsetData([x[_-3]],x[_-2],parseFloat(x[_])),u.setIndentMode)u.setIndentMode(!0);break;case 13:if(x[_].length<2)throw Error("union requires multiple identifiers");if(u.validateUnionIdentifiers)u.validateUnionIdentifiers(x[_]);if(u.addSubsetData(x[_],void 0,void 0),u.setIndentMode)u.setIndentMode(!0);break;case 14:if(x[_-1].length<2)throw Error("union requires multiple identifiers");if(u.validateUnionIdentifiers)u.validateUnionIdentifiers(x[_-1]);if(u.addSubsetData(x[_-1],x[_],void 0),u.setIndentMode)u.setIndentMode(!0);break;case 15:if(x[_-2].length<2)throw Error("union requires multiple identifiers");if(u.validateUnionIdentifiers)u.validateUnionIdentifiers(x[_-2]);if(u.addSubsetData(x[_-2],void 0,parseFloat(x[_])),u.setIndentMode)u.setIndentMode(!0);break;case 16:if(x[_-3].length<2)throw Error("union requires multiple identifiers");if(u.validateUnionIdentifiers)u.validateUnionIdentifiers(x[_-3]);if(u.addSubsetData(x[_-3],x[_-2],parseFloat(x[_])),u.setIndentMode)u.setIndentMode(!0);break;case 17:case 18:case 19:u.addTextData(x[_-1],x[_],void 0);break;case 20:case 21:u.addTextData(x[_-2],x[_-1],x[_]);break;case 23:u.addStyleData(x[_-1],x[_]);break;case 24:case 25:case 26:var U=u.getCurrentSets();if(!U)throw Error("text requires set");u.addTextData(U,x[_],void 0);break;case 27:case 28:var U=u.getCurrentSets();if(!U)throw Error("text requires set");u.addTextData(U,x[_-1],x[_]);break;case 29:case 41:this.$=[x[_]];break;case 30:case 42:this.$=[...x[_-2],x[_]];break;case 31:this.$=[x[_-2],x[_]];break;case 33:this.$=x[_].join(" ");break;case 34:this.$=[x[_]];break;case 35:x[_-1].push(x[_]),this.$=x[_-1];break;case 43:case 44:this.$=x[_];break}},"anonymous"),table:[e(s,[2,2],{3:1,4:2}),{1:[3]},{5:[1,3],8:[1,4]},e(i,[2,4],{6:5}),e(s,[2,3]),{7:[1,6],8:[1,8],9:7,10:9,11:[1,10],12:[1,11],17:[1,12],19:[1,13],22:[1,14],24:[1,15]},{1:[2,1]},e(i,[2,5]),e(i,[2,6]),e(i,[2,7]),e(i,[2,8]),{13:16,20:n,21:r},{13:20,18:19,20:n,21:r},{13:20,18:21,20:n,21:r},{16:[1,25],20:[1,23],21:[1,24],23:22},{13:20,18:26,20:n,21:r},e(i,[2,9],{14:[1,27],15:[1,28]}),e(o,[2,43]),e(o,[2,44]),e(i,[2,13],{14:[1,29],15:[1,30],27:a}),e(o,[2,41]),{16:[1,34],20:[1,32],21:[1,33],27:a},e(i,[2,22]),e(i,[2,24],{14:[1,35]}),e(i,[2,25],{14:[1,36]}),e(i,[2,26]),{20:c,25:37,26:38,27:a},e(i,[2,10],{15:[1,40]}),{16:[1,41]},e(i,[2,14],{15:[1,42]}),{16:[1,43]},{13:44,20:n,21:r},e(i,[2,17],{14:[1,45]}),e(i,[2,18],{14:[1,46]}),e(i,[2,19]),e(i,[2,27]),e(i,[2,28]),e(i,[2,23],{27:[1,47]}),e(d,[2,29]),{15:[1,48]},{16:[1,49]},e(i,[2,11]),{16:[1,50]},e(i,[2,15]),e(o,[2,42]),e(i,[2,20]),e(i,[2,21]),{20:c,26:51},{16:f,20:l,21:[1,53],28:52,29:54,30:55,31:v,32:y,33:M},e(i,[2,12]),e(i,[2,16]),e(d,[2,30]),e(d,[2,31]),e(d,[2,32]),e(d,[2,33],{30:61,16:f,20:l,31:v,32:y,33:M}),e(k,[2,34]),e(k,[2,36]),e(k,[2,37]),e(k,[2,38]),e(k,[2,39]),e(k,[2,40]),e(k,[2,35])],defaultActions:{6:[2,1]},parseError:t(function(p,I){if(I.recoverable)this.trace(p);else{var S=Error(p);throw S.hash=I,S}},"parseError"),parse:t(function(p){var I=this,S=[0],u=[],m=[null],x=[],q=this.table,_="",U=0,it=0,Q=0,H=2,B=1,W=x.slice.call(arguments,1),N=Object.create(this.lexer),X={yy:{}};for(var tt in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,tt))X.yy[tt]=this.yy[tt];if(N.setInput(p,X.yy),X.yy.lexer=N,X.yy.parser=this,typeof N.yylloc>"u")N.yylloc={};var Z=N.yylloc;x.push(Z);var rt=N.options&&N.options.ranges;if(typeof X.yy.parseError==="function")this.parseError=X.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function et(ot){S.length=S.length-2*ot,m.length=m.length-ot,x.length=x.length-ot}t(et,"popStack");function J(){var ot=u.pop()||N.lex()||B;if(typeof ot!=="number"){if(ot instanceof Array)u=ot,ot=u.pop();ot=I.symbols_[ot]||ot}return ot}t(J,"lex");var V,lt,at,w,Y,dt,ut={},ct,nt,Ft,pt;while(!0){if(at=S[S.length-1],this.defaultActions[at])w=this.defaultActions[at];else{if(V===null||typeof V>"u")V=J();w=q[at]&&q[at][V]}if(typeof w>"u"||!w.length||!w[0]){var vt="";pt=[];for(ct in q[at])if(this.terminals_[ct]&&ct>H)pt.push("'"+this.terminals_[ct]+"'");if(N.showPosition)vt="Parse error on line "+(U+1)+`:
7
+ A`,a,a,0,o.large?1:0,o.sweep?1:0,n(o.p1.x),n(o.p1.y))}return r.join(" ")}function Vt(e,s){return ne(ee(e),s)}function se(e,s={}){let{lossFunction:i,layoutFunction:n=Gt,normalize:r=!0,orientation:o=Math.PI/2,orientationOrder:a,width:c=600,height:d=350,padding:f=15,scaleToFit:l=!1,symmetricalTextCentre:v=!1,distinct:p,round:M=2}=s,k=n(e,{lossFunction:i==="default"||!i?xt:i==="logRatio"?Kt:i,distinct:p});if(r)k=Ht(k,o,a);let T=Yt(k,c,d,f,l),F=$t(T,e,v),D=new Map(Object.keys(T).map((I)=>[I,{set:I,x:T[I].x,y:T[I].y,radius:T[I].radius}])),C=e.map((I)=>{let S=I.sets.map((x)=>D.get(x)),u=ee(S),b=ne(u,M);return{circles:S,arcs:u,path:b,area:I,has:new Set(I.sets)}});function m(I){let S="";for(let u of C)if(u.has.size>I.length&&I.every((b)=>u.has.has(b)))S+=" "+u.path;return S}return C.map(({circles:I,arcs:S,path:u,area:b})=>({data:b,text:F[b.sets],circles:I,arcs:S,path:u,distinctPath:u+m(b.sets)}))}var Ct=function(){var e=t(function(C,m,I,S){for(I=I||{},S=C.length;S--;I[C[S]]=m);return I},"o"),s=[5,8],i=[7,8,11,12,17,19,22,24],n=[1,17],r=[1,18],o=[7,8,11,12,14,15,16,17,19,20,21,22,24,27],a=[1,31],c=[1,39],d=[7,8,11,12,17,19,22,24,27],f=[1,57],l=[1,56],v=[1,58],p=[1,59],M=[1,60],k=[7,8,11,12,16,17,19,20,22,24,27,31,32,33],T={trace:t(function(){},"trace"),yy:{},symbols_:{error:2,start:3,optNewlines:4,VENN:5,document:6,EOF:7,NEWLINE:8,line:9,statement:10,TITLE:11,SET:12,identifier:13,BRACKET_LABEL:14,COLON:15,NUMERIC:16,UNION:17,identifierList:18,TEXT:19,IDENTIFIER:20,STRING:21,INDENT_TEXT:22,indentedTextTail:23,STYLE:24,stylesOpt:25,styleField:26,COMMA:27,styleValue:28,valueTokens:29,valueToken:30,HEXCOLOR:31,RGBCOLOR:32,RGBACOLOR:33,$accept:0,$end:1},terminals_:{2:"error",5:"VENN",7:"EOF",8:"NEWLINE",11:"TITLE",12:"SET",14:"BRACKET_LABEL",15:"COLON",16:"NUMERIC",17:"UNION",19:"TEXT",20:"IDENTIFIER",21:"STRING",22:"INDENT_TEXT",24:"STYLE",27:"COMMA",31:"HEXCOLOR",32:"RGBCOLOR",33:"RGBACOLOR"},productions_:[0,[3,4],[4,0],[4,2],[6,0],[6,2],[9,1],[9,1],[10,1],[10,2],[10,3],[10,4],[10,5],[10,2],[10,3],[10,4],[10,5],[10,3],[10,3],[10,3],[10,4],[10,4],[10,2],[10,3],[23,1],[23,1],[23,1],[23,2],[23,2],[25,1],[25,3],[26,3],[28,1],[28,1],[29,1],[29,2],[30,1],[30,1],[30,1],[30,1],[30,1],[18,1],[18,3],[13,1],[13,1]],performAction:t(function(m,I,S,u,b,x,B){var _=x.length-1;switch(b){case 1:return x[_-1];case 2:case 3:case 4:this.$=[];break;case 5:x[_-1].push(x[_]),this.$=x[_-1];break;case 6:this.$=[];break;case 7:case 22:case 32:case 36:case 37:case 38:case 39:case 40:this.$=x[_];break;case 8:u.setDiagramTitle(x[_].substr(6)),this.$=x[_].substr(6);break;case 9:if(u.addSubsetData([x[_]],void 0,void 0),u.setIndentMode)u.setIndentMode(!0);break;case 10:if(u.addSubsetData([x[_-1]],x[_],void 0),u.setIndentMode)u.setIndentMode(!0);break;case 11:if(u.addSubsetData([x[_-2]],void 0,parseFloat(x[_])),u.setIndentMode)u.setIndentMode(!0);break;case 12:if(u.addSubsetData([x[_-3]],x[_-2],parseFloat(x[_])),u.setIndentMode)u.setIndentMode(!0);break;case 13:if(x[_].length<2)throw Error("union requires multiple identifiers");if(u.validateUnionIdentifiers)u.validateUnionIdentifiers(x[_]);if(u.addSubsetData(x[_],void 0,void 0),u.setIndentMode)u.setIndentMode(!0);break;case 14:if(x[_-1].length<2)throw Error("union requires multiple identifiers");if(u.validateUnionIdentifiers)u.validateUnionIdentifiers(x[_-1]);if(u.addSubsetData(x[_-1],x[_],void 0),u.setIndentMode)u.setIndentMode(!0);break;case 15:if(x[_-2].length<2)throw Error("union requires multiple identifiers");if(u.validateUnionIdentifiers)u.validateUnionIdentifiers(x[_-2]);if(u.addSubsetData(x[_-2],void 0,parseFloat(x[_])),u.setIndentMode)u.setIndentMode(!0);break;case 16:if(x[_-3].length<2)throw Error("union requires multiple identifiers");if(u.validateUnionIdentifiers)u.validateUnionIdentifiers(x[_-3]);if(u.addSubsetData(x[_-3],x[_-2],parseFloat(x[_])),u.setIndentMode)u.setIndentMode(!0);break;case 17:case 18:case 19:u.addTextData(x[_-1],x[_],void 0);break;case 20:case 21:u.addTextData(x[_-2],x[_-1],x[_]);break;case 23:u.addStyleData(x[_-1],x[_]);break;case 24:case 25:case 26:var q=u.getCurrentSets();if(!q)throw Error("text requires set");u.addTextData(q,x[_],void 0);break;case 27:case 28:var q=u.getCurrentSets();if(!q)throw Error("text requires set");u.addTextData(q,x[_-1],x[_]);break;case 29:case 41:this.$=[x[_]];break;case 30:case 42:this.$=[...x[_-2],x[_]];break;case 31:this.$=[x[_-2],x[_]];break;case 33:this.$=x[_].join(" ");break;case 34:this.$=[x[_]];break;case 35:x[_-1].push(x[_]),this.$=x[_-1];break;case 43:case 44:this.$=x[_];break}},"anonymous"),table:[e(s,[2,2],{3:1,4:2}),{1:[3]},{5:[1,3],8:[1,4]},e(i,[2,4],{6:5}),e(s,[2,3]),{7:[1,6],8:[1,8],9:7,10:9,11:[1,10],12:[1,11],17:[1,12],19:[1,13],22:[1,14],24:[1,15]},{1:[2,1]},e(i,[2,5]),e(i,[2,6]),e(i,[2,7]),e(i,[2,8]),{13:16,20:n,21:r},{13:20,18:19,20:n,21:r},{13:20,18:21,20:n,21:r},{16:[1,25],20:[1,23],21:[1,24],23:22},{13:20,18:26,20:n,21:r},e(i,[2,9],{14:[1,27],15:[1,28]}),e(o,[2,43]),e(o,[2,44]),e(i,[2,13],{14:[1,29],15:[1,30],27:a}),e(o,[2,41]),{16:[1,34],20:[1,32],21:[1,33],27:a},e(i,[2,22]),e(i,[2,24],{14:[1,35]}),e(i,[2,25],{14:[1,36]}),e(i,[2,26]),{20:c,25:37,26:38,27:a},e(i,[2,10],{15:[1,40]}),{16:[1,41]},e(i,[2,14],{15:[1,42]}),{16:[1,43]},{13:44,20:n,21:r},e(i,[2,17],{14:[1,45]}),e(i,[2,18],{14:[1,46]}),e(i,[2,19]),e(i,[2,27]),e(i,[2,28]),e(i,[2,23],{27:[1,47]}),e(d,[2,29]),{15:[1,48]},{16:[1,49]},e(i,[2,11]),{16:[1,50]},e(i,[2,15]),e(o,[2,42]),e(i,[2,20]),e(i,[2,21]),{20:c,26:51},{16:f,20:l,21:[1,53],28:52,29:54,30:55,31:v,32:p,33:M},e(i,[2,12]),e(i,[2,16]),e(d,[2,30]),e(d,[2,31]),e(d,[2,32]),e(d,[2,33],{30:61,16:f,20:l,31:v,32:p,33:M}),e(k,[2,34]),e(k,[2,36]),e(k,[2,37]),e(k,[2,38]),e(k,[2,39]),e(k,[2,40]),e(k,[2,35])],defaultActions:{6:[2,1]},parseError:t(function(m,I){if(I.recoverable)this.trace(m);else{var S=Error(m);throw S.hash=I,S}},"parseError"),parse:t(function(m){var I=this,S=[0],u=[],b=[null],x=[],B=this.table,_="",q=0,it=0,Q=0,H=2,V=1,W=x.slice.call(arguments,1),N=Object.create(this.lexer),X={yy:{}};for(var tt in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,tt))X.yy[tt]=this.yy[tt];if(N.setInput(m,X.yy),X.yy.lexer=N,X.yy.parser=this,typeof N.yylloc>"u")N.yylloc={};var Z=N.yylloc;x.push(Z);var rt=N.options&&N.options.ranges;if(typeof X.yy.parseError==="function")this.parseError=X.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function et(ot){S.length=S.length-2*ot,b.length=b.length-ot,x.length=x.length-ot}t(et,"popStack");function J(){var ot=u.pop()||N.lex()||V;if(typeof ot!=="number"){if(ot instanceof Array)u=ot,ot=u.pop();ot=I.symbols_[ot]||ot}return ot}t(J,"lex");var P,lt,at,w,Y,dt,ut={},ct,nt,Ft,pt;while(!0){if(at=S[S.length-1],this.defaultActions[at])w=this.defaultActions[at];else{if(P===null||typeof P>"u")P=J();w=B[at]&&B[at][P]}if(typeof w>"u"||!w.length||!w[0]){var vt="";pt=[];for(ct in B[at])if(this.terminals_[ct]&&ct>H)pt.push("'"+this.terminals_[ct]+"'");if(N.showPosition)vt="Parse error on line "+(q+1)+`:
8
8
  `+N.showPosition()+`
9
- Expecting `+pt.join(", ")+", got '"+(this.terminals_[V]||V)+"'";else vt="Parse error on line "+(U+1)+": Unexpected "+(V==B?"end of input":"'"+(this.terminals_[V]||V)+"'");this.parseError(vt,{text:N.match,token:this.terminals_[V]||V,line:N.yylineno,loc:Z,expected:pt})}if(w[0]instanceof Array&&w.length>1)throw Error("Parse Error: multiple actions possible at state: "+at+", token: "+V);switch(w[0]){case 1:if(S.push(V),m.push(N.yytext),x.push(N.yylloc),S.push(w[1]),V=null,!lt){if(it=N.yyleng,_=N.yytext,U=N.yylineno,Z=N.yylloc,Q>0)Q--}else V=lt,lt=null;break;case 2:if(nt=this.productions_[w[1]][1],ut.$=m[m.length-nt],ut._$={first_line:x[x.length-(nt||1)].first_line,last_line:x[x.length-1].last_line,first_column:x[x.length-(nt||1)].first_column,last_column:x[x.length-1].last_column},rt)ut._$.range=[x[x.length-(nt||1)].range[0],x[x.length-1].range[1]];if(dt=this.performAction.apply(ut,[_,it,U,X.yy,w[1],m,x].concat(W)),typeof dt<"u")return dt;if(nt)S=S.slice(0,-1*nt*2),m=m.slice(0,-1*nt),x=x.slice(0,-1*nt);S.push(this.productions_[w[1]][0]),m.push(ut.$),x.push(ut._$),Ft=q[S[S.length-2]][S[S.length-1]],S.push(Ft);break;case 3:return!0}}return!0},"parse")},F=function(){var C={EOF:1,parseError:t(function(I,S){if(this.yy.parser)this.yy.parser.parseError(I,S);else throw Error(I)},"parseError"),setInput:t(function(p,I){if(this.yy=I||this.yy||{},this._input=p,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 p=this._input[0];this.yytext+=p,this.yyleng++,this.offset++,this.match+=p,this.matched+=p;var I=p.match(/(?:\r\n?|\n).*/g);if(I)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),p},"input"),unput:t(function(p){var I=p.length,S=p.split(/(?:\r\n?|\n)/g);this._input=p+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-I),this.offset-=I;var u=this.match.split(/(?:\r\n?|\n)/g);if(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),S.length-1)this.yylineno-=S.length-1;var m=this.yylloc.range;if(this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:S?(S.length===u.length?this.yylloc.first_column:0)+u[u.length-S.length].length-S[0].length:this.yylloc.first_column-I},this.options.ranges)this.yylloc.range=[m[0],m[0]+this.yyleng-I];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).
10
- `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:t(function(p){this.unput(this.match.slice(p))},"less"),pastInput:t(function(){var p=this.matched.substr(0,this.matched.length-this.match.length);return(p.length>20?"...":"")+p.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:t(function(){var p=this.match;if(p.length<20)p+=this._input.substr(0,20-p.length);return(p.substr(0,20)+(p.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:t(function(){var p=this.pastInput(),I=Array(p.length+1).join("-");return p+this.upcomingInput()+`
11
- `+I+"^"},"showPosition"),test_match:t(function(p,I){var S,u,m;if(this.options.backtrack_lexer){if(m={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)m.yylloc.range=this.yylloc.range.slice(0)}if(u=p[0].match(/(?:\r\n?|\n).*/g),u)this.yylineno+=u.length;if(this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:u?u[u.length-1].length-u[u.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+p[0].length},this.yytext+=p[0],this.match+=p[0],this.matches=p,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(p[0].length),this.matched+=p[0],S=this.performAction.call(this,this.yy,this,I,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input)this.done=!1;if(S)return S;else if(this._backtrack){for(var x in m)this[x]=m[x];return!1}return!1},"test_match"),next:t(function(){if(this.done)return this.EOF;if(!this._input)this.done=!0;var p,I,S,u;if(!this._more)this.yytext="",this.match="";var m=this._currentRules();for(var x=0;x<m.length;x++)if(S=this._input.match(this.rules[m[x]]),S&&(!I||S[0].length>I[0].length)){if(I=S,u=x,this.options.backtrack_lexer)if(p=this.test_match(S,m[x]),p!==!1)return p;else if(this._backtrack){I=!1;continue}else return!1;else if(!this.options.flex)break}if(I){if(p=this.test_match(I,m[u]),p!==!1)return p;return!1}if(this._input==="")return this.EOF;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
12
- `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:t(function(){var I=this.next();if(I)return I;else return this.lex()},"lex"),begin:t(function(I){this.conditionStack.push(I)},"begin"),popState:t(function(){var I=this.conditionStack.length-1;if(I>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(I){if(I=this.conditionStack.length-1-Math.abs(I||0),I>=0)return this.conditionStack[I];else return"INITIAL"},"topState"),pushState:t(function(I){this.begin(I)},"pushState"),stateStackSize:t(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:t(function(I,S,u,m){var x=m;switch(u){case 0:break;case 1:break;case 2:break;case 3:if(I.getIndentMode&&I.getIndentMode())return I.consumeIndentText=!0,this.begin("INITIAL"),22;break;case 4:break;case 5:if(I.setIndentMode)I.setIndentMode(!1);this.begin("INITIAL"),this.unput(S.yytext);break;case 6:return this.begin("bol"),8;break;case 7:break;case 8:break;case 9:return 7;case 10:return 11;case 11:return 5;case 12:return 12;case 13:return 17;case 14:if(I.consumeIndentText)I.consumeIndentText=!1;else return 19;break;case 15:return 24;case 16:return S.yytext=S.yytext.slice(2,-2),14;break;case 17:return S.yytext=S.yytext.slice(1,-1).trim(),14;break;case 18:return 16;case 19:return 31;case 20:return 33;case 21:return 32;case 22:return 20;case 23:return 21;case 24:return 27;case 25:return 15}},"anonymous"),rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[ \t]+(?=[\n\r]))/i,/^(?:[ \t]+(?=text\b))/i,/^(?:[ \t]+)/i,/^(?:[^ \t\n\r])/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:[ \t]+)/i,/^(?:$)/i,/^(?:title\s[^#\n;]+)/i,/^(?:venn-beta\b)/i,/^(?:set\b)/i,/^(?:union\b)/i,/^(?:text\b)/i,/^(?:style\b)/i,/^(?:\["[^\"]*"\])/i,/^(?:\[[^\]\"]+\])/i,/^(?:[+-]?(\d+(\.\d+)?|\.\d+))/i,/^(?:#[0-9a-fA-F]{3,8})/i,/^(?:rgba\(\s*[0-9.]+\s*[,]\s*[0-9.]+\s*[,]\s*[0-9.]+\s*[,]\s*[0-9.]+\s*\))/i,/^(?:rgb\(\s*[0-9.]+\s*[,]\s*[0-9.]+\s*[,]\s*[0-9.]+\s*\))/i,/^(?:[A-Za-z_][A-Za-z0-9\-_]*)/i,/^(?:"[^\"]*")/i,/^(?:,)/i,/^(?::)/i],conditions:{bol:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25],inclusive:!0},INITIAL:{rules:[0,1,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25],inclusive:!0}}};return C}();T.lexer=F;function D(){this.yy={}}return t(D,"Parser"),D.prototype=T,T.Parser=D,new D}();Ct.parser=Ct;var Te=Ct,Dt=[],Rt=[],Nt=[],Ot=new Set,Lt,jt=!1,ze=t((e,s,i)=>{let n=bt(e).sort(),r=i??10/Math.pow(e.length,2);if(Lt=n,n.length===1)Ot.add(n[0]);Dt.push({sets:n,size:r,label:s?yt(s):void 0})},"addSubsetData"),Ae=t(()=>Dt,"getSubsetData"),yt=t((e)=>{let s=e.trim();if(s.length>=2&&s.startsWith('"')&&s.endsWith('"'))return s.slice(1,-1);return s},"normalizeText"),De=t((e)=>e?yt(e):e,"normalizeStyleValue"),Re=t((e,s,i)=>{let n=yt(s);Rt.push({sets:bt(e).sort(),id:n,label:i?yt(i):void 0})},"addTextData"),Ne=t((e,s)=>{let i=bt(e).sort(),n={};for(let[r,o]of s)n[r]=De(o)??o;Nt.push({targets:i,styles:n})},"addStyleData"),Oe=t(()=>Nt,"getStyleData"),bt=t((e)=>e.map((s)=>yt(s)),"normalizeIdentifierList"),Le=t((e)=>{let i=bt(e).filter((n)=>!Ot.has(n));if(i.length>0)throw Error(`unknown set identifier: ${i.join(", ")}`)},"validateUnionIdentifiers"),je=t(()=>Rt,"getTextData"),Fe=t(()=>Lt,"getCurrentSets"),Pe=t(()=>jt,"getIndentMode"),Ve=t((e)=>{jt=e},"setIndentMode"),Be=K.venn;function re(){return ie(Be,E().venn)}t(re,"getConfig");var qe=t(()=>{R(),Dt.length=0,Rt.length=0,Nt.length=0,Ot.clear(),Lt=void 0,jt=!1},"customClear"),Ue={getConfig:re,clear:qe,setAccTitle:L,getAccTitle:O,setDiagramTitle:j,getDiagramTitle:G,getAccDescription:z,setAccDescription:P,addSubsetData:ze,getSubsetData:Ae,addTextData:Re,addStyleData:Ne,validateUnionIdentifiers:Le,getTextData:je,getStyleData:Oe,getCurrentSets:Fe,getIndentMode:Pe,setIndentMode:Ve},Ge=t((e)=>`
9
+ Expecting `+pt.join(", ")+", got '"+(this.terminals_[P]||P)+"'";else vt="Parse error on line "+(q+1)+": Unexpected "+(P==V?"end of input":"'"+(this.terminals_[P]||P)+"'");this.parseError(vt,{text:N.match,token:this.terminals_[P]||P,line:N.yylineno,loc:Z,expected:pt})}if(w[0]instanceof Array&&w.length>1)throw Error("Parse Error: multiple actions possible at state: "+at+", token: "+P);switch(w[0]){case 1:if(S.push(P),b.push(N.yytext),x.push(N.yylloc),S.push(w[1]),P=null,!lt){if(it=N.yyleng,_=N.yytext,q=N.yylineno,Z=N.yylloc,Q>0)Q--}else P=lt,lt=null;break;case 2:if(nt=this.productions_[w[1]][1],ut.$=b[b.length-nt],ut._$={first_line:x[x.length-(nt||1)].first_line,last_line:x[x.length-1].last_line,first_column:x[x.length-(nt||1)].first_column,last_column:x[x.length-1].last_column},rt)ut._$.range=[x[x.length-(nt||1)].range[0],x[x.length-1].range[1]];if(dt=this.performAction.apply(ut,[_,it,q,X.yy,w[1],b,x].concat(W)),typeof dt<"u")return dt;if(nt)S=S.slice(0,-1*nt*2),b=b.slice(0,-1*nt),x=x.slice(0,-1*nt);S.push(this.productions_[w[1]][0]),b.push(ut.$),x.push(ut._$),Ft=B[S[S.length-2]][S[S.length-1]],S.push(Ft);break;case 3:return!0}}return!0},"parse")},F=function(){var C={EOF:1,parseError:t(function(I,S){if(this.yy.parser)this.yy.parser.parseError(I,S);else throw Error(I)},"parseError"),setInput:t(function(m,I){if(this.yy=I||this.yy||{},this._input=m,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 m=this._input[0];this.yytext+=m,this.yyleng++,this.offset++,this.match+=m,this.matched+=m;var I=m.match(/(?:\r\n?|\n).*/g);if(I)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),m},"input"),unput:t(function(m){var I=m.length,S=m.split(/(?:\r\n?|\n)/g);this._input=m+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-I),this.offset-=I;var u=this.match.split(/(?:\r\n?|\n)/g);if(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),S.length-1)this.yylineno-=S.length-1;var b=this.yylloc.range;if(this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:S?(S.length===u.length?this.yylloc.first_column:0)+u[u.length-S.length].length-S[0].length:this.yylloc.first_column-I},this.options.ranges)this.yylloc.range=[b[0],b[0]+this.yyleng-I];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).
10
+ `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:t(function(m){this.unput(this.match.slice(m))},"less"),pastInput:t(function(){var m=this.matched.substr(0,this.matched.length-this.match.length);return(m.length>20?"...":"")+m.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:t(function(){var m=this.match;if(m.length<20)m+=this._input.substr(0,20-m.length);return(m.substr(0,20)+(m.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:t(function(){var m=this.pastInput(),I=Array(m.length+1).join("-");return m+this.upcomingInput()+`
11
+ `+I+"^"},"showPosition"),test_match:t(function(m,I){var S,u,b;if(this.options.backtrack_lexer){if(b={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)b.yylloc.range=this.yylloc.range.slice(0)}if(u=m[0].match(/(?:\r\n?|\n).*/g),u)this.yylineno+=u.length;if(this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:u?u[u.length-1].length-u[u.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+m[0].length},this.yytext+=m[0],this.match+=m[0],this.matches=m,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(m[0].length),this.matched+=m[0],S=this.performAction.call(this,this.yy,this,I,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input)this.done=!1;if(S)return S;else if(this._backtrack){for(var x in b)this[x]=b[x];return!1}return!1},"test_match"),next:t(function(){if(this.done)return this.EOF;if(!this._input)this.done=!0;var m,I,S,u;if(!this._more)this.yytext="",this.match="";var b=this._currentRules();for(var x=0;x<b.length;x++)if(S=this._input.match(this.rules[b[x]]),S&&(!I||S[0].length>I[0].length)){if(I=S,u=x,this.options.backtrack_lexer)if(m=this.test_match(S,b[x]),m!==!1)return m;else if(this._backtrack){I=!1;continue}else return!1;else if(!this.options.flex)break}if(I){if(m=this.test_match(I,b[u]),m!==!1)return m;return!1}if(this._input==="")return this.EOF;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
12
+ `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:t(function(){var I=this.next();if(I)return I;else return this.lex()},"lex"),begin:t(function(I){this.conditionStack.push(I)},"begin"),popState:t(function(){var I=this.conditionStack.length-1;if(I>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(I){if(I=this.conditionStack.length-1-Math.abs(I||0),I>=0)return this.conditionStack[I];else return"INITIAL"},"topState"),pushState:t(function(I){this.begin(I)},"pushState"),stateStackSize:t(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:t(function(I,S,u,b){var x=b;switch(u){case 0:break;case 1:break;case 2:break;case 3:if(I.getIndentMode&&I.getIndentMode())return I.consumeIndentText=!0,this.begin("INITIAL"),22;break;case 4:break;case 5:if(I.setIndentMode)I.setIndentMode(!1);this.begin("INITIAL"),this.unput(S.yytext);break;case 6:return this.begin("bol"),8;break;case 7:break;case 8:break;case 9:return 7;case 10:return 11;case 11:return 5;case 12:return 12;case 13:return 17;case 14:if(I.consumeIndentText)I.consumeIndentText=!1;else return 19;break;case 15:return 24;case 16:return S.yytext=S.yytext.slice(2,-2),14;break;case 17:return S.yytext=S.yytext.slice(1,-1).trim(),14;break;case 18:return 16;case 19:return 31;case 20:return 33;case 21:return 32;case 22:return 20;case 23:return 21;case 24:return 27;case 25:return 15}},"anonymous"),rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[ \t]+(?=[\n\r]))/i,/^(?:[ \t]+(?=text\b))/i,/^(?:[ \t]+)/i,/^(?:[^ \t\n\r])/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:[ \t]+)/i,/^(?:$)/i,/^(?:title\s[^#\n;]+)/i,/^(?:venn-beta\b)/i,/^(?:set\b)/i,/^(?:union\b)/i,/^(?:text\b)/i,/^(?:style\b)/i,/^(?:\["[^\"]*"\])/i,/^(?:\[[^\]\"]+\])/i,/^(?:[+-]?(\d+(\.\d+)?|\.\d+))/i,/^(?:#[0-9a-fA-F]{3,8})/i,/^(?:rgba\(\s*[0-9.]+\s*[,]\s*[0-9.]+\s*[,]\s*[0-9.]+\s*[,]\s*[0-9.]+\s*\))/i,/^(?:rgb\(\s*[0-9.]+\s*[,]\s*[0-9.]+\s*[,]\s*[0-9.]+\s*\))/i,/^(?:[A-Za-z_][A-Za-z0-9\-_]*)/i,/^(?:"[^\"]*")/i,/^(?:,)/i,/^(?::)/i],conditions:{bol:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25],inclusive:!0},INITIAL:{rules:[0,1,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25],inclusive:!0}}};return C}();T.lexer=F;function D(){this.yy={}}return t(D,"Parser"),D.prototype=T,T.Parser=D,new D}();Ct.parser=Ct;var ze=Ct,Dt=[],Rt=[],Nt=[],Ot=new Set,Lt,jt=!1,Ae=t((e,s,i)=>{let n=bt(e).sort(),r=i??10/Math.pow(e.length,2);if(Lt=n,n.length===1)Ot.add(n[0]);Dt.push({sets:n,size:r,label:s?yt(s):void 0})},"addSubsetData"),Ce=t(()=>Dt,"getSubsetData"),yt=t((e)=>{let s=e.trim();if(s.length>=2&&s.startsWith('"')&&s.endsWith('"'))return s.slice(1,-1);return s},"normalizeText"),De=t((e)=>e?yt(e):e,"normalizeStyleValue"),Re=t((e,s,i)=>{let n=yt(s);Rt.push({sets:bt(e).sort(),id:n,label:i?yt(i):void 0})},"addTextData"),Ne=t((e,s)=>{let i=bt(e).sort(),n={};for(let[r,o]of s)n[r]=De(o)??o;Nt.push({targets:i,styles:n})},"addStyleData"),Oe=t(()=>Nt,"getStyleData"),bt=t((e)=>e.map((s)=>yt(s)),"normalizeIdentifierList"),Le=t((e)=>{let i=bt(e).filter((n)=>!Ot.has(n));if(i.length>0)throw Error(`unknown set identifier: ${i.join(", ")}`)},"validateUnionIdentifiers"),je=t(()=>Rt,"getTextData"),Fe=t(()=>Lt,"getCurrentSets"),Pe=t(()=>jt,"getIndentMode"),Ve=t((e)=>{jt=e},"setIndentMode"),Be=K.venn;function ie(){return oe(Be,E().venn)}t(ie,"getConfig");var qe=t(()=>{R(),Dt.length=0,Rt.length=0,Nt.length=0,Ot.clear(),Lt=void 0,jt=!1},"customClear"),Ue={getConfig:ie,clear:qe,setAccTitle:L,getAccTitle:z,setDiagramTitle:j,getDiagramTitle:G,getAccDescription:U,setAccDescription:O,addSubsetData:Ae,getSubsetData:Ce,addTextData:Re,addStyleData:Ne,validateUnionIdentifiers:Le,getTextData:je,getStyleData:Oe,getCurrentSets:Fe,getIndentMode:Pe,setIndentMode:Ve},Ge=t((e)=>`
13
13
  .venn-title {
14
14
  font-size: 32px;
15
15
  fill: ${e.vennTitleTextColor};
@@ -31,4 +31,4 @@ Expecting `+pt.join(", ")+", got '"+(this.terminals_[V]||V)+"'";else vt="Parse e
31
31
  font-family: ${e.fontFamily};
32
32
  color: ${e.vennSetTextColor};
33
33
  }
34
- `,"getStyles"),We=Ge;function oe(e){let s=new Map;for(let i of e){let n=i.targets.join("|"),r=s.get(n);if(r)Object.assign(r,i.styles);else s.set(n,{...i.styles})}return s}t(oe,"buildStyleByKey");var Ke=t((e,s,i,n)=>{let r=n.db,o=r.getConfig?.(),{themeVariables:a,look:c,handDrawnSeed:d}=E(),f=c==="handDrawn",l=[a.venn1,a.venn2,a.venn3,a.venn4,a.venn5,a.venn6,a.venn7,a.venn8].filter(Boolean),v=r.getDiagramTitle?.(),y=r.getSubsetData(),M=r.getTextData(),k=oe(r.getStyleData()),T=le(y),F=o?.width??800,D=o?.height??450,C=1600,p=F/1600,I=v?48*p:0,S=a.primaryTextColor??a.textColor,u=ue(s);if(u.attr("viewBox",`0 0 ${F} ${D}`),v)u.append("text").text(v).attr("class","venn-title").attr("font-size",`${32*p}px`).attr("text-anchor","middle").attr("dominant-baseline","middle").attr("x","50%").attr("y",32*p).style("fill",a.vennTitleTextColor||a.titleColor);let m=h(document.createElement("div")),x=Jt().width(F).height(D-I);m.datum(T).call(x);let q=f?b.svg(m.select("svg").node()):void 0,_=se(T,{width:F,height:D-I,padding:o?.padding??15}),U=new Map;for(let B of _){let W=ht([...B.data.sets].sort());U.set(W,B)}if(M.length>0)ae(o,U,m,M,p,k);let it=Ce(a.background||"#f4f4f4");if(m.selectAll(".venn-circle").each(function(B,W){let N=h(this),tt=ht([...B.sets].sort()),Z=k.get(tt),rt=l.length>0?l[W%l.length]:void 0,et=Z?.fill||rt||a.primaryColor;N.classed(`venn-set-${W%8}`,!0);let J=Z?.["fill-opacity"]??0.1,V=Z?.stroke||et,lt=Z?.["stroke-width"]||`${5*p}`;if(f&&q){let w=U.get(tt);if(w&&w.circles.length>0){let Y=w.circles[0],dt=q.circle(Y.x,Y.y,Y.radius*2,{roughness:0.7,seed:d,fill:kt(et,0.7),fillStyle:"hachure",fillWeight:2,hachureGap:8,hachureAngle:-41+W*60,stroke:V,strokeWidth:parseFloat(String(lt))});N.select("path").remove(),N.node()?.insertBefore(dt,N.select("text").node())}}else N.select("path").style("fill",et).style("fill-opacity",J).style("stroke",V).style("stroke-width",lt).style("stroke-opacity",0.95);let at=Z?.color||(it?A(et,30):g(et,30));N.select("text").style("font-size",`${48*p}px`).style("fill",at)}),f&&q)m.selectAll(".venn-intersection").each(function(B){let W=h(this),X=ht([...B.sets].sort()),tt=k.get(X),Z=tt?.fill;if(Z){let rt=W.select("path"),et=rt.attr("d");if(et){let J=q.path(et,{roughness:0.7,seed:d,fill:kt(Z,0.3),fillStyle:"cross-hatch",fillWeight:2,hachureGap:6,hachureAngle:60,stroke:"none"}),V=rt.node();V?.parentNode?.insertBefore(J,V),rt.remove()}}else W.select("path").style("fill-opacity",0);W.select("text").style("font-size",`${48*p}px`).style("fill",tt?.color??a.vennSetTextColor??S)});else m.selectAll(".venn-intersection text").style("font-size",`${48*p}px`).style("fill",(B)=>{let N=ht([...B.sets].sort());return k.get(N)?.color??a.vennSetTextColor??S}),m.selectAll(".venn-intersection path").style("fill-opacity",(B)=>{let N=ht([...B.sets].sort());return k.get(N)?.fill?1:0}).style("fill",(B)=>{let N=ht([...B.sets].sort());return k.get(N)?.fill??"transparent"});let Q=u.append("g").attr("transform",`translate(0, ${I})`),H=m.select("svg").node();if(H&&"childNodes"in H)for(let B of[...H.childNodes])Q.node()?.appendChild(B);te(u,D,F,o?.useMaxWidth??!0)},"draw");function ht(e){return e.join("|")}t(ht,"stableSetsKey");function ae(e,s,i,n,r,o){let a=e?.useDebugLayout??!1,d=i.select("svg").append("g").attr("class","venn-text-nodes"),f=new Map;for(let l of n){let v=ht(l.sets),y=f.get(v);if(y)y.push(l);else f.set(v,[l])}for(let[l,v]of f.entries()){let y=s.get(l);if(!y?.text)continue;let M=y.text.x,k=y.text.y,T=Math.min(...y.circles.map((H)=>H.radius)),F=Math.min(...y.circles.map((H)=>H.radius-Math.hypot(M-H.x,k-H.y))),D=Number.isFinite(F)?Math.max(0,F):0;if(D===0&&Number.isFinite(T))D=T*0.6;let C=d.append("g").attr("class","venn-text-area").attr("font-size",`${40*r}px`);if(a)C.append("circle").attr("class","venn-text-debug-circle").attr("cx",M).attr("cy",k).attr("r",D).attr("fill","none").attr("stroke","purple").attr("stroke-width",1.5*r).attr("stroke-dasharray",`${6*r} ${4*r}`);let p=Math.max(80*r,D*2*0.95),I=Math.max(60*r,D*2*0.95),m=(y.data.label&&y.data.label.length>0?Math.min(32*r,D*0.25):0)+(v.length<=2?30*r:0),x=M-p/2,q=k-I/2+m,_=Math.max(1,Math.ceil(Math.sqrt(v.length))),U=Math.max(1,Math.ceil(v.length/_)),it=p/_,Q=I/U;for(let[H,B]of v.entries()){let W=H%_,N=Math.floor(H/_),X=x+it*(W+0.5),tt=q+Q*(N+0.5);if(a)C.append("rect").attr("class","venn-text-debug-cell").attr("x",x+it*W).attr("y",q+Q*N).attr("width",it).attr("height",Q).attr("fill","none").attr("stroke","teal").attr("stroke-width",1*r).attr("stroke-dasharray",`${4*r} ${3*r}`);let Z=it*0.9,rt=Q*0.9,et=C.append("foreignObject").attr("class","venn-text-node-fo").attr("width",Z).attr("height",rt).attr("x",X-Z/2).attr("y",tt-rt/2).attr("overflow","visible"),J=o.get(B.id)?.color,V=et.append("xhtml:span").attr("class","venn-text-node").style("display","flex").style("width","100%").style("height","100%").style("white-space","normal").style("align-items","center").style("justify-content","center").style("text-align","center").style("overflow-wrap","normal").style("word-break","normal").text(B.label??B.id);if(J)V.style("color",J)}}}t(ae,"renderTextNodes");function le(e){let s=new Set(e.map((r)=>[...r.sets].sort().join("|"))),i=new Map(e.filter((r)=>r.sets.length===1&&r.size!==void 0).map((r)=>[r.sets[0],r.size])),n=[];for(let r of e){if(r.sets.length<3)continue;let o=[...r.sets].sort();for(let a=0;a<o.length-1;a++)for(let c=a+1;c<o.length;c++){let d=[o[a],o[c]],f=d.join("|");if(!s.has(f)){s.add(f);let l=i.get(d[0]),v=i.get(d[1]),y=l!==void 0&&v!==void 0?Math.min(l,v)/4:2.5;n.push({sets:d,size:y,label:""})}}}return n.length>0?[...e,...n]:e}t(le,"ensurePairwiseSubsets");var He={draw:Ke},rn={parser:Te,db:Ue,renderer:He,styles:We};export{rn as diagram};
34
+ `,"getStyles"),We=Ge;function re(e){let s=new Map;for(let i of e){let n=i.targets.join("|"),r=s.get(n);if(r)Object.assign(r,i.styles);else s.set(n,{...i.styles})}return s}t(re,"buildStyleByKey");var Ke=t((e,s,i,n)=>{let r=n.db,o=r.getConfig?.(),{themeVariables:a,look:c,handDrawnSeed:d}=E(),f=c==="handDrawn",l=[a.venn1,a.venn2,a.venn3,a.venn4,a.venn5,a.venn6,a.venn7,a.venn8].filter(Boolean),v=r.getDiagramTitle?.(),p=r.getSubsetData(),M=r.getTextData(),k=re(r.getStyleData()),T=le(p),F=o?.width??800,D=o?.height??450,C=1600,m=F/1600,I=v?48*m:0,S=a.primaryTextColor??a.textColor,u=de(s);if(u.attr("viewBox",`0 0 ${F} ${D}`),v)u.append("text").text(v).attr("class","venn-title").attr("font-size",`${32*m}px`).attr("text-anchor","middle").attr("dominant-baseline","middle").attr("x","50%").attr("y",32*m).style("fill",a.vennTitleTextColor||a.titleColor);let b=h(document.createElement("div")),x=Jt().width(F).height(D-I);b.datum(T).call(x);let B=f?y.svg(b.select("svg").node()):void 0,_=se(T,{width:F,height:D-I,padding:o?.padding??15}),q=new Map;for(let V of _){let W=ht([...V.data.sets].sort());q.set(W,V)}if(M.length>0)ae(o,q,b,M,m,k);let it=Ee(a.background||"#f4f4f4");if(b.selectAll(".venn-circle").each(function(V,W){let N=h(this),tt=ht([...V.sets].sort()),Z=k.get(tt),rt=l.length>0?l[W%l.length]:void 0,et=Z?.fill||rt||a.primaryColor;N.classed(`venn-set-${W%8}`,!0);let J=Z?.["fill-opacity"]??0.1,P=Z?.stroke||et,lt=Z?.["stroke-width"]||`${5*m}`;if(f&&B){let w=q.get(tt);if(w&&w.circles.length>0){let Y=w.circles[0],dt=B.circle(Y.x,Y.y,Y.radius*2,{roughness:0.7,seed:d,fill:kt(et,0.7),fillStyle:"hachure",fillWeight:2,hachureGap:8,hachureAngle:-41+W*60,stroke:P,strokeWidth:parseFloat(String(lt))});N.select("path").remove(),N.node()?.insertBefore(dt,N.select("text").node())}}else N.select("path").style("fill",et).style("fill-opacity",J).style("stroke",P).style("stroke-width",lt).style("stroke-opacity",0.95);let at=Z?.color||(it?A(et,30):g(et,30));N.select("text").style("font-size",`${48*m}px`).style("fill",at)}),f&&B)b.selectAll(".venn-intersection").each(function(V){let W=h(this),X=ht([...V.sets].sort()),tt=k.get(X),Z=tt?.fill;if(Z){let rt=W.select("path"),et=rt.attr("d");if(et){let J=B.path(et,{roughness:0.7,seed:d,fill:kt(Z,0.3),fillStyle:"cross-hatch",fillWeight:2,hachureGap:6,hachureAngle:60,stroke:"none"}),P=rt.node();P?.parentNode?.insertBefore(J,P),rt.remove()}}else W.select("path").style("fill-opacity",0);W.select("text").style("font-size",`${48*m}px`).style("fill",tt?.color??a.vennSetTextColor??S)});else b.selectAll(".venn-intersection text").style("font-size",`${48*m}px`).style("fill",(V)=>{let N=ht([...V.sets].sort());return k.get(N)?.color??a.vennSetTextColor??S}),b.selectAll(".venn-intersection path").style("fill-opacity",(V)=>{let N=ht([...V.sets].sort());return k.get(N)?.fill?1:0}).style("fill",(V)=>{let N=ht([...V.sets].sort());return k.get(N)?.fill??"transparent"});let Q=u.append("g").attr("transform",`translate(0, ${I})`),H=b.select("svg").node();if(H&&"childNodes"in H)for(let V of[...H.childNodes])Q.node()?.appendChild(V);te(u,D,F,o?.useMaxWidth??!0)},"draw");function ht(e){return e.join("|")}t(ht,"stableSetsKey");function ae(e,s,i,n,r,o){let a=e?.useDebugLayout??!1,d=i.select("svg").append("g").attr("class","venn-text-nodes"),f=new Map;for(let l of n){let v=ht(l.sets),p=f.get(v);if(p)p.push(l);else f.set(v,[l])}for(let[l,v]of f.entries()){let p=s.get(l);if(!p?.text)continue;let M=p.text.x,k=p.text.y,T=Math.min(...p.circles.map((H)=>H.radius)),F=Math.min(...p.circles.map((H)=>H.radius-Math.hypot(M-H.x,k-H.y))),D=Number.isFinite(F)?Math.max(0,F):0;if(D===0&&Number.isFinite(T))D=T*0.6;let C=d.append("g").attr("class","venn-text-area").attr("font-size",`${40*r}px`);if(a)C.append("circle").attr("class","venn-text-debug-circle").attr("cx",M).attr("cy",k).attr("r",D).attr("fill","none").attr("stroke","purple").attr("stroke-width",1.5*r).attr("stroke-dasharray",`${6*r} ${4*r}`);let m=Math.max(80*r,D*2*0.95),I=Math.max(60*r,D*2*0.95),b=(p.data.label&&p.data.label.length>0?Math.min(32*r,D*0.25):0)+(v.length<=2?30*r:0),x=M-m/2,B=k-I/2+b,_=Math.max(1,Math.ceil(Math.sqrt(v.length))),q=Math.max(1,Math.ceil(v.length/_)),it=m/_,Q=I/q;for(let[H,V]of v.entries()){let W=H%_,N=Math.floor(H/_),X=x+it*(W+0.5),tt=B+Q*(N+0.5);if(a)C.append("rect").attr("class","venn-text-debug-cell").attr("x",x+it*W).attr("y",B+Q*N).attr("width",it).attr("height",Q).attr("fill","none").attr("stroke","teal").attr("stroke-width",1*r).attr("stroke-dasharray",`${4*r} ${3*r}`);let Z=it*0.9,rt=Q*0.9,et=C.append("foreignObject").attr("class","venn-text-node-fo").attr("width",Z).attr("height",rt).attr("x",X-Z/2).attr("y",tt-rt/2).attr("overflow","visible"),J=o.get(V.id)?.color,P=et.append("xhtml:span").attr("class","venn-text-node").style("display","flex").style("width","100%").style("height","100%").style("white-space","normal").style("align-items","center").style("justify-content","center").style("text-align","center").style("overflow-wrap","normal").style("word-break","normal").text(V.label??V.id);if(J)P.style("color",J)}}}t(ae,"renderTextNodes");function le(e){let s=new Set(e.map((r)=>[...r.sets].sort().join("|"))),i=new Map(e.filter((r)=>r.sets.length===1&&r.size!==void 0).map((r)=>[r.sets[0],r.size])),n=[];for(let r of e){if(r.sets.length<3)continue;let o=[...r.sets].sort();for(let a=0;a<o.length-1;a++)for(let c=a+1;c<o.length;c++){let d=[o[a],o[c]],f=d.join("|");if(!s.has(f)){s.add(f);let l=i.get(d[0]),v=i.get(d[1]),p=l!==void 0&&v!==void 0?Math.min(l,v)/4:2.5;n.push({sets:d,size:p,label:""})}}}return n.length>0?[...e,...n]:e}t(le,"ensurePairwiseSubsets");var He={draw:Ke},rn={parser:ze,db:Ue,renderer:He,styles:We};export{rn as diagram};
@@ -1 +1 @@
1
- import{pt}from"./index-w7xbfv44.js";import{Pe}from"./index-0j518hqm.js";import{Ea}from"./index-zvfvqvn9.js";import{co}from"./index-x07kp3jz.js";import{wn}from"./index-a293pdg7.js";var i=Object.freeze(JSON.parse('{"displayName":"HTML (Derivative)","injections":{"R:text.html - (comment.block, text.html meta.embedded, meta.tag.*.*.html, meta.tag.*.*.*.html, meta.tag.*.*.*.*.html)":{"patterns":[{"match":"<","name":"invalid.illegal.bad-angle-bracket.html"}]}},"name":"html-derivative","patterns":[{"include":"text.html.basic#core-minus-invalid"},{"begin":"(</?)(\\\\w[^<>\\\\s]*)(?<!/)","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"}},"end":"((?: ?/)?>)","endCaptures":{"1":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.other.unrecognized.html.derivative","patterns":[{"include":"text.html.basic#attribute"}]}],"scopeName":"text.html.derivative","embeddedLangs":["html"]}')),e=[...wn,i];var u=Object.freeze(JSON.parse('{"fileTypes":[],"injectTo":["text.html.markdown"],"injectionSelector":"L:text.html.markdown","name":"markdown-vue","patterns":[{"include":"#vue-code-block"}],"repository":{"vue-code-block":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(vue)((\\\\s+|[,:?{])[^`~]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown","patterns":[]}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"include":"text.html.vue"}]}},"scopeName":"markdown.vue.codeblock"}')),t=[u];var m=Object.freeze(JSON.parse('{"fileTypes":[],"injectTo":["source.vue","text.html.markdown","text.html.derivative","text.pug"],"injectionSelector":"L:meta.tag -meta.attribute -meta.ng-binding -entity.name.tag.pug -attribute_value -source.tsx -source.js.jsx, L:meta.element -meta.attribute","name":"vue-directives","patterns":[{"include":"text.html.vue#vue-directives"}],"scopeName":"vue.directives"}')),n=[m];var r=Object.freeze(JSON.parse('{"fileTypes":[],"injectTo":["source.vue","text.html.markdown","text.html.derivative","text.pug"],"injectionSelector":"L:text.pug -comment -string.comment, L:text.html.derivative -comment.block, L:text.html.markdown -comment.block","name":"vue-interpolations","patterns":[{"include":"text.html.vue#vue-interpolations"}],"scopeName":"vue.interpolations"}')),a=[r];var c=Object.freeze(JSON.parse(`{"fileTypes":[],"injectTo":["source.vue"],"injectionSelector":"L:source.css -comment, L:source.postcss -comment, L:source.sass -comment, L:source.stylus -comment","name":"vue-sfc-style-variable-injection","patterns":[{"include":"#vue-sfc-style-variable-injection"}],"repository":{"vue-sfc-style-variable-injection":{"begin":"\\\\b(v-bind)\\\\s*\\\\(","beginCaptures":{"1":{"name":"entity.name.function"}},"end":"\\\\)","name":"vue.sfc.style.variable.injection.v-bind","patterns":[{"begin":"([\\"'])","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html"}},"end":"(\\\\1)","endCaptures":{"1":{"name":"punctuation.definition.tag.end.html"}},"name":"source.ts.embedded.html.vue","patterns":[{"include":"source.js"}]},{"include":"source.js"}]}},"scopeName":"vue.sfc.style.variable.injection","embeddedLangs":["javascript"]}`)),s=[...Pe,c];var l=Object.freeze(JSON.parse(`{"displayName":"Vue","name":"vue","patterns":[{"include":"#vue-comments"},{"include":"#self-closing-tag"},{"begin":"(<)","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"}},"end":"(>)","endCaptures":{"1":{"name":"punctuation.definition.tag.end.html.vue"}},"patterns":[{"begin":"([-0-:A-Za-z]+)\\\\b(?=[^>]*\\\\blang\\\\s*=\\\\s*([\\"']?)md\\\\b\\\\2)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"(</)(\\\\1)\\\\s*(?=>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=</)","name":"text.html.markdown","patterns":[{"include":"text.html.markdown"}]}]},{"begin":"(?!template(?![-0-:A-Za-z]))([-0-:A-Za-z]+)\\\\b(?=[^>]*\\\\blang\\\\s*=\\\\s*([\\"']?)html\\\\b\\\\2)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"contentName":"text.html.derivative","end":"(</)(\\\\1)\\\\s*(?=>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"include":"#html-stuff"}]},{"begin":"([-0-:A-Za-z]+)\\\\b(?=[^>]*\\\\blang\\\\s*=\\\\s*([\\"']?)pug\\\\b\\\\2)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"(</)(\\\\1)\\\\s*(?=>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=</)","name":"text.pug","patterns":[{"include":"text.pug"}]}]},{"begin":"([-0-:A-Za-z]+)\\\\b(?=[^>]*\\\\blang\\\\s*=\\\\s*([\\"']?)stylus\\\\b\\\\2)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"(</)(\\\\1)\\\\s*(?=>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=</)","name":"source.stylus","patterns":[{"include":"source.stylus"}]}]},{"begin":"([-0-:A-Za-z]+)\\\\b(?=[^>]*\\\\blang\\\\s*=\\\\s*([\\"']?)postcss\\\\b\\\\2)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"(</)(\\\\1)\\\\s*(?=>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=</)","name":"source.postcss","patterns":[{"include":"source.postcss"}]}]},{"begin":"([-0-:A-Za-z]+)\\\\b(?=[^>]*\\\\blang\\\\s*=\\\\s*([\\"']?)sass\\\\b\\\\2)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"(</)(\\\\1)\\\\s*(?=>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=</)","name":"source.sass","patterns":[{"include":"source.sass"}]}]},{"begin":"([-0-:A-Za-z]+)\\\\b(?=[^>]*\\\\blang\\\\s*=\\\\s*([\\"']?)css\\\\b\\\\2)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"(</)(\\\\1)\\\\s*(?=>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=</)","name":"source.css","patterns":[{"include":"source.css"}]}]},{"begin":"([-0-:A-Za-z]+)\\\\b(?=[^>]*\\\\blang\\\\s*=\\\\s*([\\"']?)scss\\\\b\\\\2)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"(</)(\\\\1)\\\\s*(?=>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=</)","name":"source.css.scss","patterns":[{"include":"source.css.scss"}]}]},{"begin":"([-0-:A-Za-z]+)\\\\b(?=[^>]*\\\\blang\\\\s*=\\\\s*([\\"']?)less\\\\b\\\\2)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"(</)(\\\\1)\\\\s*(?=>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=</)","name":"source.css.less","patterns":[{"include":"source.css.less"}]}]},{"begin":"([-0-:A-Za-z]+)\\\\b(?=[^>]*\\\\blang\\\\s*=\\\\s*([\\"']?)js\\\\b\\\\2)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"(</)(\\\\1)\\\\s*(?=>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=</)","name":"source.js","patterns":[{"include":"source.js"}]}]},{"begin":"([-0-:A-Za-z]+)\\\\b(?=[^>]*\\\\blang\\\\s*=\\\\s*([\\"']?)ts\\\\b\\\\2)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"(</)(\\\\1)\\\\s*(?=>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)(?=[^\\\\n]*</script[>\\\\s])","end":"(?=</script[>\\\\s])","name":"source.ts","patterns":[{"include":"source.ts"}]},{"begin":"(?<=>)","name":"source.ts","patterns":[{"include":"source.ts"}],"while":"^(?!\\\\s*</script[>\\\\s])"}]},{"begin":"([-0-:A-Za-z]+)\\\\b(?=[^>]*\\\\blang\\\\s*=\\\\s*([\\"']?)jsx\\\\b\\\\2)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"(</)(\\\\1)\\\\s*(?=>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=</)","name":"source.js.jsx","patterns":[{"include":"source.js.jsx"}]}]},{"begin":"([-0-:A-Za-z]+)\\\\b(?=[^>]*\\\\blang\\\\s*=\\\\s*([\\"']?)tsx\\\\b\\\\2)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"(</)(\\\\1)\\\\s*(?=>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)(?=[^\\\\n]*</script[>\\\\s])","end":"(?=</script[>\\\\s])","name":"source.tsx","patterns":[{"include":"source.tsx"}]},{"begin":"(?<=>)","name":"source.tsx","patterns":[{"include":"source.tsx"}],"while":"^(?!\\\\s*</script[>\\\\s])"}]},{"begin":"([-0-:A-Za-z]+)\\\\b(?=[^>]*\\\\blang\\\\s*=\\\\s*([\\"']?)coffee\\\\b\\\\2)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"(</)(\\\\1)\\\\s*(?=>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=</)","name":"source.coffee","patterns":[{"include":"source.coffee"}]}]},{"begin":"([-0-:A-Za-z]+)\\\\b(?=[^>]*\\\\blang\\\\s*=\\\\s*([\\"']?)json\\\\b\\\\2)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"(</)(\\\\1)\\\\s*(?=>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=</)","name":"source.json","patterns":[{"include":"source.json"}]}]},{"begin":"([-0-:A-Za-z]+)\\\\b(?=[^>]*\\\\blang\\\\s*=\\\\s*([\\"']?)jsonc\\\\b\\\\2)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"(</)(\\\\1)\\\\s*(?=>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=</)","name":"source.json.comments","patterns":[{"include":"source.json.comments"}]}]},{"begin":"([-0-:A-Za-z]+)\\\\b(?=[^>]*\\\\blang\\\\s*=\\\\s*([\\"']?)json5\\\\b\\\\2)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"(</)(\\\\1)\\\\s*(?=>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=</)","name":"source.json5","patterns":[{"include":"source.json5"}]}]},{"begin":"([-0-:A-Za-z]+)\\\\b(?=[^>]*\\\\blang\\\\s*=\\\\s*([\\"']?)yaml\\\\b\\\\2)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"(</)(\\\\1)\\\\s*(?=>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=</)","name":"source.yaml","patterns":[{"include":"source.yaml"}]}]},{"begin":"([-0-:A-Za-z]+)\\\\b(?=[^>]*\\\\blang\\\\s*=\\\\s*([\\"']?)toml\\\\b\\\\2)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"(</)(\\\\1)\\\\s*(?=>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=</)","name":"source.toml","patterns":[{"include":"source.toml"}]}]},{"begin":"([-0-:A-Za-z]+)\\\\b(?=[^>]*\\\\blang\\\\s*=\\\\s*([\\"']?)(g(?:ql|raphql))\\\\b\\\\2)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"(</)(\\\\1)\\\\s*(?=>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=</)","name":"source.graphql","patterns":[{"include":"source.graphql"}]}]},{"begin":"([-0-:A-Za-z]+)\\\\b(?=[^>]*\\\\blang\\\\s*=\\\\s*([\\"']?)vue\\\\b\\\\2)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"(</)(\\\\1)\\\\s*(?=>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=</)","name":"text.html.vue","patterns":[{"include":"text.html.vue"}]}]},{"begin":"(template)(?=\\\\s|/?>)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"(</)(\\\\1)\\\\s*(?=>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=</template[>\\\\s])","name":"text.html.derivative","patterns":[{"include":"#html-stuff"}]}]},{"begin":"(script)(?=\\\\s|/?>)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"(</)(\\\\1)\\\\s*(?=>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#multi-line-script-tag-stuff"}]},{"begin":"(style)(?=\\\\s|/?>)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"(</)(\\\\1)\\\\s*(?=>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#multi-line-style-tag-stuff"}]},{"begin":"([-0-:A-Za-z]+)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"(</)(\\\\1)\\\\s*(?=>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=</)","name":"text"}]}]}],"repository":{"capitalized-tag":{"begin":"(<)([A-Z][-0-:A-Za-z]*)(?=\\\\s|/?>)","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.html.vue"}},"end":"/?>","endCaptures":{"0":{"name":"punctuation.definition.tag.end.html.vue"}},"name":"meta.tag.structure.$2.start.html.vue","patterns":[{"begin":"\\\\G","end":"(?=/?>)","patterns":[{"include":"#vue-directives"},{"include":"text.html.basic#attribute"}]}]},"html-stuff":{"patterns":[{"include":"#template-tag"},{"include":"#capitalized-tag"},{"include":"text.html.derivative"},{"include":"text.html.basic"}]},"multi-line-script-tag-stuff":{"begin":"\\\\G","end":"(?=</script[>\\\\s])","patterns":[{"begin":"\\\\G(?!\\\\blang\\\\s*=\\\\s*[\\"']?(?:tsx??|jsx|coffee)\\\\b)","end":"(?=\\\\blang\\\\s*=\\\\s*[\\"']?(?:tsx??|jsx|coffee)\\\\b)|(>)","endCaptures":{"1":{"name":"punctuation.definition.tag.end.html.vue"}},"name":"meta.tag-stuff","patterns":[{"include":"#vue-directives"},{"include":"text.html.basic#attribute"}]},{"begin":"(?=\\\\blang\\\\s*=\\\\s*[\\"']?ts\\\\b)","end":"(?=</script[>\\\\s])","patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)(?=[^\\\\n]*</script[>\\\\s])","end":"(?=</script[>\\\\s])","name":"source.ts","patterns":[{"include":"source.ts"}]},{"begin":"(?<=>)","name":"source.ts","patterns":[{"include":"source.ts"}],"while":"^(?!\\\\s*</script[>\\\\s])"}]},{"begin":"(?=\\\\blang\\\\s*=\\\\s*[\\"']?tsx\\\\b)","end":"(?=</script[>\\\\s])","patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)(?=[^\\\\n]*</script[>\\\\s])","end":"(?=</script[>\\\\s])","name":"source.tsx","patterns":[{"include":"source.tsx"}]},{"begin":"(?<=>)","name":"source.tsx","patterns":[{"include":"source.tsx"}],"while":"^(?!\\\\s*</script[>\\\\s])"}]},{"begin":"(?=\\\\blang\\\\s*=\\\\s*[\\"']?jsx\\\\b)","end":"(?=</script[>\\\\s])","patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=</script[>\\\\s])","name":"source.js.jsx","patterns":[{"include":"source.js.jsx"}]}]},{"begin":"(?=\\\\blang\\\\s*=\\\\s*[\\"']?coffee\\\\b)","end":"(?=</script[>\\\\s])","patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=</script[>\\\\s])","name":"source.coffee","patterns":[{"include":"source.coffee"}]}]},{"begin":"(?<=>)","end":"(?=</script[>\\\\s])","name":"source.js","patterns":[{"include":"source.js"}]}]},"multi-line-style-tag-stuff":{"begin":"\\\\G","end":"(?=</style[>\\\\s])","patterns":[{"begin":"\\\\G(?!\\\\blang\\\\s*=\\\\s*[\\"']?(?:scss|stylus|less|postcss)\\\\b)","end":"(?=\\\\blang\\\\s*=\\\\s*[\\"']?(?:scss|stylus|less|postcss)\\\\b)|(>)","endCaptures":{"1":{"name":"punctuation.definition.tag.end.html.vue"}},"name":"meta.tag-stuff","patterns":[{"include":"#vue-directives"},{"include":"text.html.basic#attribute"}]},{"begin":"(?=\\\\blang\\\\s*=\\\\s*[\\"']?scss\\\\b)","end":"(?=</style[>\\\\s])","patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=</style[>\\\\s])","name":"source.css.scss","patterns":[{"include":"source.css.scss"}]}]},{"begin":"(?=\\\\blang\\\\s*=\\\\s*[\\"']?stylus\\\\b)","end":"(?=</style[>\\\\s])","patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=</style[>\\\\s])","name":"source.stylus","patterns":[{"include":"source.stylus"}]}]},{"begin":"(?=\\\\blang\\\\s*=\\\\s*[\\"']?less\\\\b)","end":"(?=</style[>\\\\s])","patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=</style[>\\\\s])","name":"source.css.less","patterns":[{"include":"source.css.less"}]}]},{"begin":"(?=\\\\blang\\\\s*=\\\\s*[\\"']?postcss\\\\b)","end":"(?=</style[>\\\\s])","patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=</style[>\\\\s])","name":"source.postcss","patterns":[{"include":"source.postcss"}]}]},{"begin":"(?<=>)","end":"(?=</style[>\\\\s])","name":"source.css","patterns":[{"include":"source.css"}]}]},"self-closing-tag":{"begin":"(<)([-0-:A-Za-z]+)(?=([^>]+/>))","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"end":"(/>)","endCaptures":{"1":{"name":"punctuation.definition.tag.end.html.vue"}},"name":"self-closing-tag","patterns":[{"include":"#tag-stuff"}]},"tag-stuff":{"begin":"\\\\G","end":"(?=/>)|(>)","endCaptures":{"1":{"name":"punctuation.definition.tag.end.html.vue"}},"name":"meta.tag-stuff","patterns":[{"include":"#vue-directives"},{"include":"text.html.basic#attribute"}]},"template-tag":{"patterns":[{"include":"#template-tag-1"},{"include":"#template-tag-2"}]},"template-tag-1":{"begin":"(<)(template)\\\\b(>)","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"},"3":{"name":"punctuation.definition.tag.end.html.vue"}},"end":"(/?>)","endCaptures":{"1":{"name":"punctuation.definition.tag.end.html.vue"}},"name":"meta.template-tag.start","patterns":[{"begin":"\\\\G","end":"(?=/>)|((</)(template)(?=[>\\\\s]))","endCaptures":{"2":{"name":"punctuation.definition.tag.begin.html.vue"},"3":{"name":"entity.name.tag.$3.html.vue"}},"name":"meta.template-tag.end","patterns":[{"include":"#html-stuff"}]}]},"template-tag-2":{"begin":"(<)(template)(?=\\\\s|/?>)","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"end":"(/?>)","endCaptures":{"1":{"name":"punctuation.definition.tag.end.html.vue"}},"name":"meta.template-tag.start","patterns":[{"begin":"\\\\G","end":"(?=/>)|((</)(template)(?=[>\\\\s]))","endCaptures":{"2":{"name":"punctuation.definition.tag.begin.html.vue"},"3":{"name":"entity.name.tag.$3.html.vue"}},"name":"meta.template-tag.end","patterns":[{"include":"#tag-stuff"},{"include":"#html-stuff"}]}]},"vue-comments":{"patterns":[{"include":"#vue-comments-key-value"},{"begin":"<!--","captures":{"0":{"name":"punctuation.definition.comment.vue"}},"end":"-->","name":"comment.block.vue"}]},"vue-comments-key-value":{"begin":"(<!--)\\\\s*(@)([$\\\\w]+)(?=\\\\s)","beginCaptures":{"1":{"name":"punctuation.definition.comment.vue"},"2":{"name":"punctuation.definition.block.tag.comment.vue"},"3":{"name":"storage.type.class.comment.vue"}},"end":"(-->)","endCaptures":{"1":{"name":"punctuation.definition.comment.vue"}},"name":"comment.block.vue","patterns":[{"include":"source.json#value"}]},"vue-directives":{"patterns":[{"include":"#vue-directives-control"},{"include":"#vue-directives-generic-attr"},{"include":"#vue-directives-style-attr"},{"include":"#vue-directives-original"}]},"vue-directives-control":{"begin":"(?:(v-for)|(v-(?:if|else-if|else)))(?=[)/=>\\\\s])","beginCaptures":{"1":{"name":"keyword.control.loop.vue"},"2":{"name":"keyword.control.conditional.vue"}},"end":"(?=\\\\s*[^=\\\\s])","name":"meta.attribute.directive.control.vue","patterns":[{"include":"#vue-directives-expression"}]},"vue-directives-expression":{"patterns":[{"begin":"(=)\\\\s*([\\"'\`])","beginCaptures":{"1":{"name":"punctuation.separator.key-value.html.vue"},"2":{"name":"punctuation.definition.string.begin.html.vue"}},"end":"(\\\\2)","endCaptures":{"1":{"name":"punctuation.definition.string.end.html.vue"}},"patterns":[{"begin":"(?<=([\\"'\`]))","end":"(?=\\\\1)","name":"source.ts.embedded.html.vue","patterns":[{"include":"source.ts#expression"}]}]},{"begin":"(=)\\\\s*(?=[^\\"'\`])","beginCaptures":{"1":{"name":"punctuation.separator.key-value.html.vue"}},"end":"(?=([>\\\\s]|/>))","patterns":[{"begin":"(?=[^\\"'\`])","end":"(?=([>\\\\s]|/>))","name":"source.ts.embedded.html.vue","patterns":[{"include":"source.ts#expression"}]}]}]},"vue-directives-generic-attr":{"begin":"\\\\b(generic)\\\\s*(=)","beginCaptures":{"1":{"name":"entity.other.attribute-name.html.vue"},"2":{"name":"punctuation.separator.key-value.html.vue"}},"end":"(?<=[\\"'])","name":"meta.attribute.generic.vue","patterns":[{"begin":"([\\"'])","beginCaptures":{"1":{"name":"punctuation.definition.string.begin.html.vue"}},"end":"(\\\\1)","endCaptures":{"1":{"name":"punctuation.definition.string.end.html.vue"}},"name":"meta.type.parameters.vue","patterns":[{"include":"source.ts#comment"},{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(extends|in|out)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"storage.modifier.ts"},{"include":"source.ts#type"},{"include":"source.ts#punctuation-comma"},{"match":"(=)(?!>)","name":"keyword.operator.assignment.ts"}]}]},"vue-directives-original":{"begin":"(?:(v-[-\\\\w]+)(:)?|([.:])|(@)|(#))(?:(\\\\[)([^]]*)(])|([-\\\\w]+))?","beginCaptures":{"1":{"name":"entity.other.attribute-name.html.vue"},"2":{"name":"punctuation.separator.key-value.html.vue"},"3":{"name":"punctuation.attribute-shorthand.bind.html.vue"},"4":{"name":"punctuation.attribute-shorthand.event.html.vue"},"5":{"name":"punctuation.attribute-shorthand.slot.html.vue"},"6":{"name":"punctuation.separator.key-value.html.vue"},"7":{"name":"source.ts.embedded.html.vue","patterns":[{"include":"source.ts#expression"}]},"8":{"name":"punctuation.separator.key-value.html.vue"},"9":{"name":"entity.other.attribute-name.html.vue"}},"end":"(?=\\\\s*[^=\\\\s])","name":"meta.attribute.directive.vue","patterns":[{"1":{"name":"punctuation.separator.key-value.html.vue"},"2":{"name":"entity.other.attribute-name.html.vue"},"match":"(\\\\.)([-\\\\w]*)"},{"include":"#vue-directives-expression"}]},"vue-directives-style-attr":{"begin":"\\\\b(style)\\\\s*(=)","beginCaptures":{"1":{"name":"entity.other.attribute-name.html.vue"},"2":{"name":"punctuation.separator.key-value.html.vue"}},"end":"(?<=[\\"'])","name":"meta.attribute.style.vue","patterns":[{"begin":"([\\"'])","beginCaptures":{"1":{"name":"punctuation.definition.string.begin.html.vue"}},"end":"(\\\\1)","endCaptures":{"1":{"name":"punctuation.definition.string.end.html.vue"}},"name":"source.css.embedded.html.vue","patterns":[{"include":"source.css#comment-block"},{"include":"source.css#escapes"},{"include":"source.css#font-features"},{"match":"(?<![-\\\\w])--[-A-Z_a-z[^\\\\x00-\\\\x7F]](?:[-0-9A-Z_a-z[^\\\\x00-\\\\x7F]]|\\\\\\\\(?:\\\\h{1,6}|.))*","name":"variable.css"},{"begin":"(?<![-A-Za-z])(?=[-A-Za-z])","end":"$|(?![-A-Za-z])","name":"meta.property-name.css","patterns":[{"include":"source.css#property-names"}]},{"begin":"(:)\\\\s*","beginCaptures":{"1":{"name":"punctuation.separator.key-value.css"}},"contentName":"meta.property-value.css","end":"\\\\s*(;)|\\\\s*(?=[\\"'])","endCaptures":{"1":{"name":"punctuation.terminator.rule.css"}},"patterns":[{"include":"source.css#comment-block"},{"include":"source.css#property-values"}]},{"match":";","name":"punctuation.terminator.rule.css"}]}]},"vue-interpolations":{"patterns":[{"begin":"(\\\\{\\\\{)","beginCaptures":{"1":{"name":"punctuation.definition.interpolation.begin.html.vue"}},"end":"(}})","endCaptures":{"1":{"name":"punctuation.definition.interpolation.end.html.vue"}},"name":"expression.embedded.vue","patterns":[{"begin":"\\\\G","end":"(?=}})","name":"source.ts.embedded.html.vue","patterns":[{"include":"source.ts#expression"}]}]}]}},"scopeName":"text.html.vue","embeddedLangs":["css","javascript","typescript","json","html","html-derivative","markdown-vue","vue-directives","vue-interpolations","vue-sfc-style-variable-injection"],"embeddedLangsLazy":["markdown","pug","stylus","sass","scss","less","jsx","tsx","coffee","jsonc","json5","yaml","toml","graphql"]}`)),L=[...pt,...Pe,...Ea,...co,...wn,...e,...t,...n,...a,...s,l];export{L as default};
1
+ import{pt}from"./index-w7xbfv44.js";import{Pe}from"./index-0j518hqm.js";import{Ea}from"./index-pnt0vc59.js";import{co}from"./index-x07kp3jz.js";import{wn}from"./index-a293pdg7.js";var i=Object.freeze(JSON.parse('{"displayName":"HTML (Derivative)","injections":{"R:text.html - (comment.block, text.html meta.embedded, meta.tag.*.*.html, meta.tag.*.*.*.html, meta.tag.*.*.*.*.html)":{"patterns":[{"match":"<","name":"invalid.illegal.bad-angle-bracket.html"}]}},"name":"html-derivative","patterns":[{"include":"text.html.basic#core-minus-invalid"},{"begin":"(</?)(\\\\w[^<>\\\\s]*)(?<!/)","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"}},"end":"((?: ?/)?>)","endCaptures":{"1":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.other.unrecognized.html.derivative","patterns":[{"include":"text.html.basic#attribute"}]}],"scopeName":"text.html.derivative","embeddedLangs":["html"]}')),e=[...wn,i];var u=Object.freeze(JSON.parse('{"fileTypes":[],"injectTo":["text.html.markdown"],"injectionSelector":"L:text.html.markdown","name":"markdown-vue","patterns":[{"include":"#vue-code-block"}],"repository":{"vue-code-block":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(vue)((\\\\s+|[,:?{])[^`~]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown","patterns":[]}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"include":"text.html.vue"}]}},"scopeName":"markdown.vue.codeblock"}')),t=[u];var m=Object.freeze(JSON.parse('{"fileTypes":[],"injectTo":["source.vue","text.html.markdown","text.html.derivative","text.pug"],"injectionSelector":"L:meta.tag -meta.attribute -meta.ng-binding -entity.name.tag.pug -attribute_value -source.tsx -source.js.jsx, L:meta.element -meta.attribute","name":"vue-directives","patterns":[{"include":"text.html.vue#vue-directives"}],"scopeName":"vue.directives"}')),n=[m];var r=Object.freeze(JSON.parse('{"fileTypes":[],"injectTo":["source.vue","text.html.markdown","text.html.derivative","text.pug"],"injectionSelector":"L:text.pug -comment -string.comment, L:text.html.derivative -comment.block, L:text.html.markdown -comment.block","name":"vue-interpolations","patterns":[{"include":"text.html.vue#vue-interpolations"}],"scopeName":"vue.interpolations"}')),a=[r];var c=Object.freeze(JSON.parse(`{"fileTypes":[],"injectTo":["source.vue"],"injectionSelector":"L:source.css -comment, L:source.postcss -comment, L:source.sass -comment, L:source.stylus -comment","name":"vue-sfc-style-variable-injection","patterns":[{"include":"#vue-sfc-style-variable-injection"}],"repository":{"vue-sfc-style-variable-injection":{"begin":"\\\\b(v-bind)\\\\s*\\\\(","beginCaptures":{"1":{"name":"entity.name.function"}},"end":"\\\\)","name":"vue.sfc.style.variable.injection.v-bind","patterns":[{"begin":"([\\"'])","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html"}},"end":"(\\\\1)","endCaptures":{"1":{"name":"punctuation.definition.tag.end.html"}},"name":"source.ts.embedded.html.vue","patterns":[{"include":"source.js"}]},{"include":"source.js"}]}},"scopeName":"vue.sfc.style.variable.injection","embeddedLangs":["javascript"]}`)),s=[...Pe,c];var l=Object.freeze(JSON.parse(`{"displayName":"Vue","name":"vue","patterns":[{"include":"#vue-comments"},{"include":"#self-closing-tag"},{"begin":"(<)","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"}},"end":"(>)","endCaptures":{"1":{"name":"punctuation.definition.tag.end.html.vue"}},"patterns":[{"begin":"([-0-:A-Za-z]+)\\\\b(?=[^>]*\\\\blang\\\\s*=\\\\s*([\\"']?)md\\\\b\\\\2)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"(</)(\\\\1)\\\\s*(?=>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=</)","name":"text.html.markdown","patterns":[{"include":"text.html.markdown"}]}]},{"begin":"(?!template(?![-0-:A-Za-z]))([-0-:A-Za-z]+)\\\\b(?=[^>]*\\\\blang\\\\s*=\\\\s*([\\"']?)html\\\\b\\\\2)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"contentName":"text.html.derivative","end":"(</)(\\\\1)\\\\s*(?=>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"include":"#html-stuff"}]},{"begin":"([-0-:A-Za-z]+)\\\\b(?=[^>]*\\\\blang\\\\s*=\\\\s*([\\"']?)pug\\\\b\\\\2)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"(</)(\\\\1)\\\\s*(?=>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=</)","name":"text.pug","patterns":[{"include":"text.pug"}]}]},{"begin":"([-0-:A-Za-z]+)\\\\b(?=[^>]*\\\\blang\\\\s*=\\\\s*([\\"']?)stylus\\\\b\\\\2)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"(</)(\\\\1)\\\\s*(?=>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=</)","name":"source.stylus","patterns":[{"include":"source.stylus"}]}]},{"begin":"([-0-:A-Za-z]+)\\\\b(?=[^>]*\\\\blang\\\\s*=\\\\s*([\\"']?)postcss\\\\b\\\\2)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"(</)(\\\\1)\\\\s*(?=>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=</)","name":"source.postcss","patterns":[{"include":"source.postcss"}]}]},{"begin":"([-0-:A-Za-z]+)\\\\b(?=[^>]*\\\\blang\\\\s*=\\\\s*([\\"']?)sass\\\\b\\\\2)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"(</)(\\\\1)\\\\s*(?=>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=</)","name":"source.sass","patterns":[{"include":"source.sass"}]}]},{"begin":"([-0-:A-Za-z]+)\\\\b(?=[^>]*\\\\blang\\\\s*=\\\\s*([\\"']?)css\\\\b\\\\2)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"(</)(\\\\1)\\\\s*(?=>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=</)","name":"source.css","patterns":[{"include":"source.css"}]}]},{"begin":"([-0-:A-Za-z]+)\\\\b(?=[^>]*\\\\blang\\\\s*=\\\\s*([\\"']?)scss\\\\b\\\\2)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"(</)(\\\\1)\\\\s*(?=>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=</)","name":"source.css.scss","patterns":[{"include":"source.css.scss"}]}]},{"begin":"([-0-:A-Za-z]+)\\\\b(?=[^>]*\\\\blang\\\\s*=\\\\s*([\\"']?)less\\\\b\\\\2)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"(</)(\\\\1)\\\\s*(?=>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=</)","name":"source.css.less","patterns":[{"include":"source.css.less"}]}]},{"begin":"([-0-:A-Za-z]+)\\\\b(?=[^>]*\\\\blang\\\\s*=\\\\s*([\\"']?)js\\\\b\\\\2)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"(</)(\\\\1)\\\\s*(?=>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=</)","name":"source.js","patterns":[{"include":"source.js"}]}]},{"begin":"([-0-:A-Za-z]+)\\\\b(?=[^>]*\\\\blang\\\\s*=\\\\s*([\\"']?)ts\\\\b\\\\2)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"(</)(\\\\1)\\\\s*(?=>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)(?=[^\\\\n]*</script[>\\\\s])","end":"(?=</script[>\\\\s])","name":"source.ts","patterns":[{"include":"source.ts"}]},{"begin":"(?<=>)","name":"source.ts","patterns":[{"include":"source.ts"}],"while":"^(?!\\\\s*</script[>\\\\s])"}]},{"begin":"([-0-:A-Za-z]+)\\\\b(?=[^>]*\\\\blang\\\\s*=\\\\s*([\\"']?)jsx\\\\b\\\\2)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"(</)(\\\\1)\\\\s*(?=>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=</)","name":"source.js.jsx","patterns":[{"include":"source.js.jsx"}]}]},{"begin":"([-0-:A-Za-z]+)\\\\b(?=[^>]*\\\\blang\\\\s*=\\\\s*([\\"']?)tsx\\\\b\\\\2)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"(</)(\\\\1)\\\\s*(?=>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)(?=[^\\\\n]*</script[>\\\\s])","end":"(?=</script[>\\\\s])","name":"source.tsx","patterns":[{"include":"source.tsx"}]},{"begin":"(?<=>)","name":"source.tsx","patterns":[{"include":"source.tsx"}],"while":"^(?!\\\\s*</script[>\\\\s])"}]},{"begin":"([-0-:A-Za-z]+)\\\\b(?=[^>]*\\\\blang\\\\s*=\\\\s*([\\"']?)coffee\\\\b\\\\2)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"(</)(\\\\1)\\\\s*(?=>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=</)","name":"source.coffee","patterns":[{"include":"source.coffee"}]}]},{"begin":"([-0-:A-Za-z]+)\\\\b(?=[^>]*\\\\blang\\\\s*=\\\\s*([\\"']?)json\\\\b\\\\2)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"(</)(\\\\1)\\\\s*(?=>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=</)","name":"source.json","patterns":[{"include":"source.json"}]}]},{"begin":"([-0-:A-Za-z]+)\\\\b(?=[^>]*\\\\blang\\\\s*=\\\\s*([\\"']?)jsonc\\\\b\\\\2)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"(</)(\\\\1)\\\\s*(?=>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=</)","name":"source.json.comments","patterns":[{"include":"source.json.comments"}]}]},{"begin":"([-0-:A-Za-z]+)\\\\b(?=[^>]*\\\\blang\\\\s*=\\\\s*([\\"']?)json5\\\\b\\\\2)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"(</)(\\\\1)\\\\s*(?=>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=</)","name":"source.json5","patterns":[{"include":"source.json5"}]}]},{"begin":"([-0-:A-Za-z]+)\\\\b(?=[^>]*\\\\blang\\\\s*=\\\\s*([\\"']?)yaml\\\\b\\\\2)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"(</)(\\\\1)\\\\s*(?=>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=</)","name":"source.yaml","patterns":[{"include":"source.yaml"}]}]},{"begin":"([-0-:A-Za-z]+)\\\\b(?=[^>]*\\\\blang\\\\s*=\\\\s*([\\"']?)toml\\\\b\\\\2)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"(</)(\\\\1)\\\\s*(?=>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=</)","name":"source.toml","patterns":[{"include":"source.toml"}]}]},{"begin":"([-0-:A-Za-z]+)\\\\b(?=[^>]*\\\\blang\\\\s*=\\\\s*([\\"']?)(g(?:ql|raphql))\\\\b\\\\2)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"(</)(\\\\1)\\\\s*(?=>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=</)","name":"source.graphql","patterns":[{"include":"source.graphql"}]}]},{"begin":"([-0-:A-Za-z]+)\\\\b(?=[^>]*\\\\blang\\\\s*=\\\\s*([\\"']?)vue\\\\b\\\\2)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"(</)(\\\\1)\\\\s*(?=>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=</)","name":"text.html.vue","patterns":[{"include":"text.html.vue"}]}]},{"begin":"(template)(?=\\\\s|/?>)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"(</)(\\\\1)\\\\s*(?=>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=</template[>\\\\s])","name":"text.html.derivative","patterns":[{"include":"#html-stuff"}]}]},{"begin":"(script)(?=\\\\s|/?>)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"(</)(\\\\1)\\\\s*(?=>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#multi-line-script-tag-stuff"}]},{"begin":"(style)(?=\\\\s|/?>)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"(</)(\\\\1)\\\\s*(?=>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#multi-line-style-tag-stuff"}]},{"begin":"([-0-:A-Za-z]+)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"(</)(\\\\1)\\\\s*(?=>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=</)","name":"text"}]}]}],"repository":{"capitalized-tag":{"begin":"(<)([A-Z][-0-:A-Za-z]*)(?=\\\\s|/?>)","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.html.vue"}},"end":"/?>","endCaptures":{"0":{"name":"punctuation.definition.tag.end.html.vue"}},"name":"meta.tag.structure.$2.start.html.vue","patterns":[{"begin":"\\\\G","end":"(?=/?>)","patterns":[{"include":"#vue-directives"},{"include":"text.html.basic#attribute"}]}]},"html-stuff":{"patterns":[{"include":"#template-tag"},{"include":"#capitalized-tag"},{"include":"text.html.derivative"},{"include":"text.html.basic"}]},"multi-line-script-tag-stuff":{"begin":"\\\\G","end":"(?=</script[>\\\\s])","patterns":[{"begin":"\\\\G(?!\\\\blang\\\\s*=\\\\s*[\\"']?(?:tsx??|jsx|coffee)\\\\b)","end":"(?=\\\\blang\\\\s*=\\\\s*[\\"']?(?:tsx??|jsx|coffee)\\\\b)|(>)","endCaptures":{"1":{"name":"punctuation.definition.tag.end.html.vue"}},"name":"meta.tag-stuff","patterns":[{"include":"#vue-directives"},{"include":"text.html.basic#attribute"}]},{"begin":"(?=\\\\blang\\\\s*=\\\\s*[\\"']?ts\\\\b)","end":"(?=</script[>\\\\s])","patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)(?=[^\\\\n]*</script[>\\\\s])","end":"(?=</script[>\\\\s])","name":"source.ts","patterns":[{"include":"source.ts"}]},{"begin":"(?<=>)","name":"source.ts","patterns":[{"include":"source.ts"}],"while":"^(?!\\\\s*</script[>\\\\s])"}]},{"begin":"(?=\\\\blang\\\\s*=\\\\s*[\\"']?tsx\\\\b)","end":"(?=</script[>\\\\s])","patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)(?=[^\\\\n]*</script[>\\\\s])","end":"(?=</script[>\\\\s])","name":"source.tsx","patterns":[{"include":"source.tsx"}]},{"begin":"(?<=>)","name":"source.tsx","patterns":[{"include":"source.tsx"}],"while":"^(?!\\\\s*</script[>\\\\s])"}]},{"begin":"(?=\\\\blang\\\\s*=\\\\s*[\\"']?jsx\\\\b)","end":"(?=</script[>\\\\s])","patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=</script[>\\\\s])","name":"source.js.jsx","patterns":[{"include":"source.js.jsx"}]}]},{"begin":"(?=\\\\blang\\\\s*=\\\\s*[\\"']?coffee\\\\b)","end":"(?=</script[>\\\\s])","patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=</script[>\\\\s])","name":"source.coffee","patterns":[{"include":"source.coffee"}]}]},{"begin":"(?<=>)","end":"(?=</script[>\\\\s])","name":"source.js","patterns":[{"include":"source.js"}]}]},"multi-line-style-tag-stuff":{"begin":"\\\\G","end":"(?=</style[>\\\\s])","patterns":[{"begin":"\\\\G(?!\\\\blang\\\\s*=\\\\s*[\\"']?(?:scss|stylus|less|postcss)\\\\b)","end":"(?=\\\\blang\\\\s*=\\\\s*[\\"']?(?:scss|stylus|less|postcss)\\\\b)|(>)","endCaptures":{"1":{"name":"punctuation.definition.tag.end.html.vue"}},"name":"meta.tag-stuff","patterns":[{"include":"#vue-directives"},{"include":"text.html.basic#attribute"}]},{"begin":"(?=\\\\blang\\\\s*=\\\\s*[\\"']?scss\\\\b)","end":"(?=</style[>\\\\s])","patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=</style[>\\\\s])","name":"source.css.scss","patterns":[{"include":"source.css.scss"}]}]},{"begin":"(?=\\\\blang\\\\s*=\\\\s*[\\"']?stylus\\\\b)","end":"(?=</style[>\\\\s])","patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=</style[>\\\\s])","name":"source.stylus","patterns":[{"include":"source.stylus"}]}]},{"begin":"(?=\\\\blang\\\\s*=\\\\s*[\\"']?less\\\\b)","end":"(?=</style[>\\\\s])","patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=</style[>\\\\s])","name":"source.css.less","patterns":[{"include":"source.css.less"}]}]},{"begin":"(?=\\\\blang\\\\s*=\\\\s*[\\"']?postcss\\\\b)","end":"(?=</style[>\\\\s])","patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=</style[>\\\\s])","name":"source.postcss","patterns":[{"include":"source.postcss"}]}]},{"begin":"(?<=>)","end":"(?=</style[>\\\\s])","name":"source.css","patterns":[{"include":"source.css"}]}]},"self-closing-tag":{"begin":"(<)([-0-:A-Za-z]+)(?=([^>]+/>))","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"end":"(/>)","endCaptures":{"1":{"name":"punctuation.definition.tag.end.html.vue"}},"name":"self-closing-tag","patterns":[{"include":"#tag-stuff"}]},"tag-stuff":{"begin":"\\\\G","end":"(?=/>)|(>)","endCaptures":{"1":{"name":"punctuation.definition.tag.end.html.vue"}},"name":"meta.tag-stuff","patterns":[{"include":"#vue-directives"},{"include":"text.html.basic#attribute"}]},"template-tag":{"patterns":[{"include":"#template-tag-1"},{"include":"#template-tag-2"}]},"template-tag-1":{"begin":"(<)(template)\\\\b(>)","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"},"3":{"name":"punctuation.definition.tag.end.html.vue"}},"end":"(/?>)","endCaptures":{"1":{"name":"punctuation.definition.tag.end.html.vue"}},"name":"meta.template-tag.start","patterns":[{"begin":"\\\\G","end":"(?=/>)|((</)(template)(?=[>\\\\s]))","endCaptures":{"2":{"name":"punctuation.definition.tag.begin.html.vue"},"3":{"name":"entity.name.tag.$3.html.vue"}},"name":"meta.template-tag.end","patterns":[{"include":"#html-stuff"}]}]},"template-tag-2":{"begin":"(<)(template)(?=\\\\s|/?>)","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"end":"(/?>)","endCaptures":{"1":{"name":"punctuation.definition.tag.end.html.vue"}},"name":"meta.template-tag.start","patterns":[{"begin":"\\\\G","end":"(?=/>)|((</)(template)(?=[>\\\\s]))","endCaptures":{"2":{"name":"punctuation.definition.tag.begin.html.vue"},"3":{"name":"entity.name.tag.$3.html.vue"}},"name":"meta.template-tag.end","patterns":[{"include":"#tag-stuff"},{"include":"#html-stuff"}]}]},"vue-comments":{"patterns":[{"include":"#vue-comments-key-value"},{"begin":"<!--","captures":{"0":{"name":"punctuation.definition.comment.vue"}},"end":"-->","name":"comment.block.vue"}]},"vue-comments-key-value":{"begin":"(<!--)\\\\s*(@)([$\\\\w]+)(?=\\\\s)","beginCaptures":{"1":{"name":"punctuation.definition.comment.vue"},"2":{"name":"punctuation.definition.block.tag.comment.vue"},"3":{"name":"storage.type.class.comment.vue"}},"end":"(-->)","endCaptures":{"1":{"name":"punctuation.definition.comment.vue"}},"name":"comment.block.vue","patterns":[{"include":"source.json#value"}]},"vue-directives":{"patterns":[{"include":"#vue-directives-control"},{"include":"#vue-directives-generic-attr"},{"include":"#vue-directives-style-attr"},{"include":"#vue-directives-original"}]},"vue-directives-control":{"begin":"(?:(v-for)|(v-(?:if|else-if|else)))(?=[)/=>\\\\s])","beginCaptures":{"1":{"name":"keyword.control.loop.vue"},"2":{"name":"keyword.control.conditional.vue"}},"end":"(?=\\\\s*[^=\\\\s])","name":"meta.attribute.directive.control.vue","patterns":[{"include":"#vue-directives-expression"}]},"vue-directives-expression":{"patterns":[{"begin":"(=)\\\\s*([\\"'\`])","beginCaptures":{"1":{"name":"punctuation.separator.key-value.html.vue"},"2":{"name":"punctuation.definition.string.begin.html.vue"}},"end":"(\\\\2)","endCaptures":{"1":{"name":"punctuation.definition.string.end.html.vue"}},"patterns":[{"begin":"(?<=([\\"'\`]))","end":"(?=\\\\1)","name":"source.ts.embedded.html.vue","patterns":[{"include":"source.ts#expression"}]}]},{"begin":"(=)\\\\s*(?=[^\\"'\`])","beginCaptures":{"1":{"name":"punctuation.separator.key-value.html.vue"}},"end":"(?=([>\\\\s]|/>))","patterns":[{"begin":"(?=[^\\"'\`])","end":"(?=([>\\\\s]|/>))","name":"source.ts.embedded.html.vue","patterns":[{"include":"source.ts#expression"}]}]}]},"vue-directives-generic-attr":{"begin":"\\\\b(generic)\\\\s*(=)","beginCaptures":{"1":{"name":"entity.other.attribute-name.html.vue"},"2":{"name":"punctuation.separator.key-value.html.vue"}},"end":"(?<=[\\"'])","name":"meta.attribute.generic.vue","patterns":[{"begin":"([\\"'])","beginCaptures":{"1":{"name":"punctuation.definition.string.begin.html.vue"}},"end":"(\\\\1)","endCaptures":{"1":{"name":"punctuation.definition.string.end.html.vue"}},"name":"meta.type.parameters.vue","patterns":[{"include":"source.ts#comment"},{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(extends|in|out)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"storage.modifier.ts"},{"include":"source.ts#type"},{"include":"source.ts#punctuation-comma"},{"match":"(=)(?!>)","name":"keyword.operator.assignment.ts"}]}]},"vue-directives-original":{"begin":"(?:(v-[-\\\\w]+)(:)?|([.:])|(@)|(#))(?:(\\\\[)([^]]*)(])|([-\\\\w]+))?","beginCaptures":{"1":{"name":"entity.other.attribute-name.html.vue"},"2":{"name":"punctuation.separator.key-value.html.vue"},"3":{"name":"punctuation.attribute-shorthand.bind.html.vue"},"4":{"name":"punctuation.attribute-shorthand.event.html.vue"},"5":{"name":"punctuation.attribute-shorthand.slot.html.vue"},"6":{"name":"punctuation.separator.key-value.html.vue"},"7":{"name":"source.ts.embedded.html.vue","patterns":[{"include":"source.ts#expression"}]},"8":{"name":"punctuation.separator.key-value.html.vue"},"9":{"name":"entity.other.attribute-name.html.vue"}},"end":"(?=\\\\s*[^=\\\\s])","name":"meta.attribute.directive.vue","patterns":[{"1":{"name":"punctuation.separator.key-value.html.vue"},"2":{"name":"entity.other.attribute-name.html.vue"},"match":"(\\\\.)([-\\\\w]*)"},{"include":"#vue-directives-expression"}]},"vue-directives-style-attr":{"begin":"\\\\b(style)\\\\s*(=)","beginCaptures":{"1":{"name":"entity.other.attribute-name.html.vue"},"2":{"name":"punctuation.separator.key-value.html.vue"}},"end":"(?<=[\\"'])","name":"meta.attribute.style.vue","patterns":[{"begin":"([\\"'])","beginCaptures":{"1":{"name":"punctuation.definition.string.begin.html.vue"}},"end":"(\\\\1)","endCaptures":{"1":{"name":"punctuation.definition.string.end.html.vue"}},"name":"source.css.embedded.html.vue","patterns":[{"include":"source.css#comment-block"},{"include":"source.css#escapes"},{"include":"source.css#font-features"},{"match":"(?<![-\\\\w])--[-A-Z_a-z[^\\\\x00-\\\\x7F]](?:[-0-9A-Z_a-z[^\\\\x00-\\\\x7F]]|\\\\\\\\(?:\\\\h{1,6}|.))*","name":"variable.css"},{"begin":"(?<![-A-Za-z])(?=[-A-Za-z])","end":"$|(?![-A-Za-z])","name":"meta.property-name.css","patterns":[{"include":"source.css#property-names"}]},{"begin":"(:)\\\\s*","beginCaptures":{"1":{"name":"punctuation.separator.key-value.css"}},"contentName":"meta.property-value.css","end":"\\\\s*(;)|\\\\s*(?=[\\"'])","endCaptures":{"1":{"name":"punctuation.terminator.rule.css"}},"patterns":[{"include":"source.css#comment-block"},{"include":"source.css#property-values"}]},{"match":";","name":"punctuation.terminator.rule.css"}]}]},"vue-interpolations":{"patterns":[{"begin":"(\\\\{\\\\{)","beginCaptures":{"1":{"name":"punctuation.definition.interpolation.begin.html.vue"}},"end":"(}})","endCaptures":{"1":{"name":"punctuation.definition.interpolation.end.html.vue"}},"name":"expression.embedded.vue","patterns":[{"begin":"\\\\G","end":"(?=}})","name":"source.ts.embedded.html.vue","patterns":[{"include":"source.ts#expression"}]}]}]}},"scopeName":"text.html.vue","embeddedLangs":["css","javascript","typescript","json","html","html-derivative","markdown-vue","vue-directives","vue-interpolations","vue-sfc-style-variable-injection"],"embeddedLangsLazy":["markdown","pug","stylus","sass","scss","less","jsx","tsx","coffee","jsonc","json5","yaml","toml","graphql"]}`)),L=[...pt,...Pe,...Ea,...co,...wn,...e,...t,...n,...a,...s,l];export{L as default};
@@ -0,0 +1 @@
1
+ import{rf}from"./index-nb8tp4mj.js";export{rf as createWardleyServices};