@kabmo-labs/kabmo 0.32.1 → 0.33.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.
- package/dist/client/index.html +1 -1
- package/dist/client/index.js +542 -535
- package/dist/client/static/js/{CsvGrid-4gx0jevc.js → CsvGrid-fncjbg6j.js} +2 -2
- package/dist/client/static/js/{DocxView-0667nr8h.js → DocxView-c9v2vr3r.js} +2 -2
- package/dist/client/static/js/{DrawioView-522v0d0r.js → DrawioView-vxjksm12.js} +2 -2
- package/dist/client/static/js/{ImageView-t8xp60hm.js → ImageView-a3g5k226.js} +1 -1
- package/dist/client/static/js/LayoutWrapper-hnjfwsjh.js +2 -0
- package/dist/client/static/js/Modal-qtftcp2t.js +38 -0
- package/dist/client/static/js/{PdfView-3fx172xh.js → PdfView-ksaes53y.js} +1 -1
- package/dist/client/static/js/{SessionsView-n3agmf5t.js → SessionsView-30vcr95v.js} +1 -1
- package/dist/client/static/js/{SheetView-nmrdb1b8.js → SheetView-vc484scg.js} +6 -6
- package/dist/client/static/js/{SvgPreview-0xsc6xam.js → SvgPreview-tph89jet.js} +1 -1
- package/dist/client/static/js/{abnfDiagram-O67JEVCF-jj31rs62.js → abnfDiagram-O67JEVCF-xbar278c.js} +1 -1
- package/dist/client/static/js/architecture-7GRP2DOG-tavtgb8a.js +1 -0
- package/dist/client/static/js/{architectureDiagram-NJMV4G6O-ay3yr7pf.js → architectureDiagram-NJMV4G6O-s171n2z6.js} +3 -3
- package/dist/client/static/js/{astro-qgx1r159.js → astro-80bs6hvg.js} +1 -1
- package/dist/client/static/js/bash-b3rwyg5p.js +1 -0
- package/dist/client/static/js/{blockDiagram-BEXU5L5S-4x33e16k.js → blockDiagram-BEXU5L5S-gzx6rv9n.js} +2 -2
- package/dist/client/static/js/{c4Diagram-YGBWAQC7-dtb81cgz.js → c4Diagram-YGBWAQC7-7f00skch.js} +2 -2
- package/dist/client/static/js/{classDiagram-v2-NBCMYWYE-vk5a2n9w.js → classDiagram-v2-NBCMYWYE-j79v95nc.js} +4 -4
- package/dist/client/static/js/{cose-bilkent-JH36ORCC-6rbjbe19.js → cose-bilkent-JH36ORCC-5fkn7ee5.js} +1 -1
- package/dist/client/static/js/css-6vj0d308.js +1 -0
- package/dist/client/static/js/cynefin-OW5HDTMX-cdh3n2z2.js +1 -0
- package/dist/client/static/js/{cynefinDiagram-VND7K2PF-vyjksedr.js → cynefinDiagram-VND7K2PF-cfs1yvrd.js} +2 -2
- package/dist/client/static/js/{dagre-6A5THRUB-7hey38z5.js → dagre-6A5THRUB-44bgc48p.js} +2 -2
- package/dist/client/static/js/{diagram-22UHCM2B-aes06jde.js → diagram-22UHCM2B-a4g4x83k.js} +14 -14
- package/dist/client/static/js/{diagram-3UASUU5V-3cfkgm3x.js → diagram-3UASUU5V-gm4rg5na.js} +1 -1
- package/dist/client/static/js/{diagram-ATOU4E4O-z8mfhwpy.js → diagram-ATOU4E4O-a95y41vk.js} +3 -3
- package/dist/client/static/js/{diagram-CDSNMT55-t4821ctz.js → diagram-CDSNMT55-t3j93mmc.js} +5 -5
- package/dist/client/static/js/{diagram-MLGK6HIB-23yxbfrx.js → diagram-MLGK6HIB-c2wdez02.js} +1 -1
- package/dist/client/static/js/{diagram-MPIPVDR6-chhtf7v0.js → diagram-MPIPVDR6-gya9jhs5.js} +2 -2
- package/dist/client/static/js/{dockerfile-5b87ghm7.js → dockerfile-a7q6174s.js} +1 -1
- package/dist/client/static/js/{ebnfDiagram-ZINNZB2B-9jejcvfr.js → ebnfDiagram-ZINNZB2B-jjhkza6t.js} +1 -1
- package/dist/client/static/js/{elk-276RUBZZ-xhhtkf58.js → elk-276RUBZZ-f7re45mw.js} +1 -1
- package/dist/client/static/js/{erDiagram-OPXOYQCR-mt2apjjb.js → erDiagram-OPXOYQCR-tpm9g5te.js} +6 -6
- package/dist/client/static/js/{erlang-6m6tpt72.js → erlang-qt876zrq.js} +1 -1
- package/dist/client/static/js/eventmodeling-NTZA5JFV-as97tpyp.js +1 -0
- package/dist/client/static/js/flowDiagram-KWPJA3E3-ggm06d12.js +1 -0
- package/dist/client/static/js/{ganttDiagram-FUAMR5RP-8cm7a29w.js → ganttDiagram-FUAMR5RP-fz43n12d.js} +3 -3
- package/dist/client/static/js/gitGraph-4MIJSDKK-eqz7p9ng.js +1 -0
- package/dist/client/static/js/{gitGraphDiagram-X574FWY7-5s0gbnx2.js → gitGraphDiagram-X574FWY7-f61hgbn6.js} +9 -9
- package/dist/client/static/js/graphql-n43pd5fs.js +1 -0
- package/dist/client/static/js/{index-z5s27s26.js → index-03h3bkcf.js} +1 -1
- package/dist/client/static/js/{index-360d7j0d.js → index-0e40xskg.js} +1 -1
- package/dist/client/static/js/{index-z4v1xmh1.js → index-0n5wwe60.js} +2 -2
- package/dist/client/static/js/{index-pf7syd7t.js → index-0tf0arsp.js} +3 -3
- package/dist/client/static/js/{index-fdbfzshx.js → index-14vndmcr.js} +2 -2
- package/dist/client/static/js/{index-7n68yx6m.js → index-1a0zkj8h.js} +2 -2
- package/dist/client/static/js/{index-p7btwjvj.js → index-1xqs14fr.js} +3 -3
- package/dist/client/static/js/{index-brj8qwa6.js → index-1y9r4frb.js} +2 -2
- package/dist/client/static/js/{index-6q80csr0.js → index-2svnq5gg.js} +1 -1
- package/dist/client/static/js/{index-9sd0vjmh.js → index-2x5f66t6.js} +2 -2
- package/dist/client/static/js/{index-dt7e1328.js → index-354mqqra.js} +2 -2
- package/dist/client/static/js/{index-5x95n3hx.js → index-3rcjx70v.js} +1 -1
- package/dist/client/static/js/{index-532btjmp.js → index-3zc1b0dv.js} +2 -2
- package/dist/client/static/js/{index-wzma5n54.js → index-5tgq7aqx.js} +1 -1
- package/dist/client/static/js/{index-xya34x4v.js → index-76zb4m0n.js} +2 -2
- package/dist/client/static/js/{index-2xj14800.js → index-7y6rpsrp.js} +2 -2
- package/dist/client/static/js/{index-h06bcfds.js → index-8239j2v1.js} +1 -1
- package/dist/client/static/js/{index-dq1kdt03.js → index-9fjt5anh.js} +1 -1
- package/dist/client/static/js/{index-ehcpzk5b.js → index-9y3gjdj7.js} +1 -1
- package/dist/client/static/js/{index-sa9cp6km.js → index-ahv9y42z.js} +2 -2
- package/dist/client/static/js/{index-vd0e25p0.js → index-ajs3jj6j.js} +1 -1
- package/dist/client/static/js/{index-qnwqaczk.js → index-apvkd37e.js} +3 -3
- package/dist/client/static/js/index-at6bhjyf.js +1 -0
- package/dist/client/static/js/index-bkye8mz4.js +2 -0
- package/dist/client/static/js/{index-dnp07j57.js → index-d495kfm0.js} +1 -1
- package/dist/client/static/js/{index-gbfg0anm.js → index-dbe6afkf.js} +2 -2
- package/dist/client/static/js/{index-g33knza2.js → index-djmg1d7h.js} +1 -1
- package/dist/client/static/js/{index-629kfbcb.js → index-e4p4cd3r.js} +2 -2
- package/dist/client/static/js/{index-5y7c62sm.js → index-eyzeya95.js} +5 -5
- package/dist/client/static/js/{index-3vhznzgr.js → index-gcs49f3p.js} +1 -1
- package/dist/client/static/js/{index-59jb53v3.js → index-gs6f0qwa.js} +2 -2
- package/dist/client/static/js/{index-7fdp9c7m.js → index-hf52f59k.js} +2 -2
- package/dist/client/static/js/{index-qkscve6n.js → index-j0r5hj0j.js} +2 -2
- package/dist/client/static/js/{index-ay34b398.js → index-js7t1vb1.js} +17 -17
- package/dist/client/static/js/{index-a0bdavdr.js → index-km2zb6wk.js} +2 -2
- package/dist/client/static/js/{index-ye3sr7db.js → index-m73za75e.js} +2 -2
- package/dist/client/static/js/{index-kpspnztv.js → index-pbe4yed4.js} +2 -2
- package/dist/client/static/js/{index-a6k2hqke.js → index-pxv2nw9w.js} +1 -1
- package/dist/client/static/js/{index-jz9fpznk.js → index-q2w6s8n7.js} +5 -5
- package/dist/client/static/js/{index-h7pn9qw6.js → index-qckv9nte.js} +2 -2
- package/dist/client/static/js/{index-a733k69t.js → index-qsm2z36d.js} +2 -2
- package/dist/client/static/js/{index-pf5sbesf.js → index-rytaa8ca.js} +2 -2
- package/dist/client/static/js/{index-c0x6s6f7.js → index-sdtye3jy.js} +2 -2
- package/dist/client/static/js/index-sffjtm5w.js +12 -0
- package/dist/client/static/js/{index-ejgd8w3s.js → index-trm9x02n.js} +28 -28
- package/dist/client/static/js/{index-c93sp4yh.js → index-vw4brsdx.js} +1 -1
- package/dist/client/static/js/{index-hc2jmzpx.js → index-vw5k8csz.js} +46 -46
- package/dist/client/static/js/{index-2gfc25tq.js → index-w0fwb80e.js} +1 -1
- package/dist/client/static/js/{index-bbggh3f8.js → index-ypx3qmhq.js} +2 -2
- package/dist/client/static/js/{index-4s8ttfxj.js → index-zt75xpq0.js} +193 -193
- package/dist/client/static/js/{index-jppt5mgc.js → index-zvfvqvn9.js} +2 -2
- package/dist/client/static/js/info-A6RAGUB7-4pkzh1qx.js +1 -0
- package/dist/client/static/js/{infoDiagram-VRGFBTTK-3w1yz32c.js → infoDiagram-VRGFBTTK-1qj804sn.js} +1 -1
- package/dist/client/static/js/ini-j5dyq6gm.js +1 -0
- package/dist/client/static/js/{ishikawaDiagram-OU5B5YK6-ckt471dy.js → ishikawaDiagram-OU5B5YK6-4j4qsnzw.js} +3 -3
- package/dist/client/static/js/java-g4dgwbfd.js +1 -0
- package/dist/client/static/js/{journeyDiagram-ZHPQQLJL-kfvn4w7e.js → journeyDiagram-ZHPQQLJL-j0brnfft.js} +4 -4
- package/dist/client/static/js/jsx-7t5ecz9s.js +1 -0
- package/dist/client/static/js/{julia-0j0gsjvc.js → julia-4ghmfy3e.js} +1 -1
- package/dist/client/static/js/{kanban-definition-PNTS6WVX-0q36cm83.js → kanban-definition-PNTS6WVX-qqc22br0.js} +2 -2
- package/dist/client/static/js/lua-1g6w30de.js +1 -0
- package/dist/client/static/js/markdown-afx21x8c.js +1 -0
- package/dist/client/static/js/{mermaid.core-b1ssa824.js → mermaid.core-vv3wbe65.js} +6 -6
- package/dist/client/static/js/{mindmap-definition-NLK3R4M7-e2ym5en8.js → mindmap-definition-NLK3R4M7-y5b2z8zp.js} +2 -2
- package/dist/client/static/js/one-dark-pro-hm3f56n1.js +1 -0
- package/dist/client/static/js/one-light-xrz49rct.js +1 -0
- package/dist/client/static/js/packet-AYTQ26CC-yg71sp88.js +1 -0
- package/dist/client/static/js/{pegDiagram-GJSIUBJH-t8bbdyhe.js → pegDiagram-GJSIUBJH-0be07mqs.js} +1 -1
- package/dist/client/static/js/{perl-7n7e9ncg.js → perl-sd00t4b4.js} +1 -1
- package/dist/client/static/js/{php-32vy69vd.js → php-2zfyqa61.js} +1 -1
- package/dist/client/static/js/pie-WAS4IAKB-89wd6np0.js +1 -0
- package/dist/client/static/js/{pieDiagram-5QR66LMP-envv4brj.js → pieDiagram-5QR66LMP-544w86jk.js} +2 -2
- package/dist/client/static/js/properties-thd83wey.js +1 -0
- package/dist/client/static/js/python-264ns4xw.js +1 -0
- package/dist/client/static/js/{quadrantDiagram-O4NWA36T-72rk137a.js → quadrantDiagram-O4NWA36T-p09e7z5s.js} +4 -4
- package/dist/client/static/js/r-qw82kkv9.js +1 -0
- package/dist/client/static/js/radar-RG4KPBEZ-avn0b8r9.js +1 -0
- package/dist/client/static/js/railroad-74A4TZTK-de27xv5w.js +1 -0
- package/dist/client/static/js/railroad-abnf-HS5TGJTU-rg4zzj7x.js +1 -0
- package/dist/client/static/js/railroad-ebnf-LZEXJU2U-d84fhj8v.js +1 -0
- package/dist/client/static/js/railroad-peg-WCYAUIDC-dvf8xrmc.js +1 -0
- package/dist/client/static/js/{railroadDiagram-XR7U4H2S-1ej0f5hr.js → railroadDiagram-XR7U4H2S-de830ed2.js} +1 -1
- package/dist/client/static/js/{requirementDiagram-PLB6GJNP-rvdaknpd.js → requirementDiagram-PLB6GJNP-b47d74p1.js} +4 -4
- package/dist/client/static/js/{ruby-5ty7fys7.js → ruby-v9qaqhby.js} +1 -1
- package/dist/client/static/js/{rust-2geezrcs.js → rust-fkt0qyrs.js} +1 -1
- package/dist/client/static/js/{sankeyDiagram-IPEJSGJF-nxvhtdaw.js → sankeyDiagram-IPEJSGJF-6ezc2fpj.js} +5 -5
- package/dist/client/static/js/{sass-mey5150f.js → sass-9bxped7y.js} +1 -1
- package/dist/client/static/js/{sequenceDiagram-PO4LG4MO-n5cn5qrt.js → sequenceDiagram-PO4LG4MO-by5zqj6w.js} +18 -18
- package/dist/client/static/js/{sizeCapture-INFHLROL-r074kj7s.js → sizeCapture-INFHLROL-q85r06j6.js} +1 -1
- package/dist/client/static/js/{stateDiagram-v2-GCMORJYK-vxghxdb0.js → stateDiagram-v2-GCMORJYK-ep5pyexs.js} +3 -3
- package/dist/client/static/js/{svelte-3ewx0hzx.js → svelte-mwtx07d9.js} +1 -1
- package/dist/client/static/js/{swimlanes-2SLR337P-qkkv894p.js → swimlanes-2SLR337P-95fcqkh8.js} +1 -1
- package/dist/client/static/js/swimlanesDiagram-TC7HE7FX-xs2en5dv.js +8 -0
- package/dist/client/static/js/{timeline-definition-EJHVYXUP-5tbq4ex2.js → timeline-definition-EJHVYXUP-461e615g.js} +2 -2
- package/dist/client/static/js/treeView-Q6P3EWNA-mham0bh6.js +1 -0
- package/dist/client/static/js/treemap-WGGIJYW6-mxrxax86.js +1 -0
- package/dist/client/static/js/tsx-nm94hed6.js +1 -0
- package/dist/client/static/js/typescript-0s2t05jj.js +1 -0
- package/dist/client/static/js/{usecaseDiagram-POWQR4AR-6p8hf0b7.js → usecaseDiagram-POWQR4AR-ftqfnvhg.js} +37 -37
- package/dist/client/static/js/{vennDiagram-UO4OBE2U-7k5jsxf9.js → vennDiagram-UO4OBE2U-7t96h6ez.js} +7 -7
- package/dist/client/static/js/{vue-06rdf4wh.js → vue-j8vb9d7r.js} +1 -1
- package/dist/client/static/js/wardley-WFR3VGLG-8vrvh9p3.js +1 -0
- package/dist/client/static/js/{wardleyDiagram-VNRHLVJA-km2x4er8.js → wardleyDiagram-VNRHLVJA-0de8w8c6.js} +4 -4
- package/dist/client/static/js/xml-dz51p1m3.js +1 -0
- package/dist/client/static/js/{xychartDiagram-PMCCYNJV-kr3sgr4m.js → xychartDiagram-PMCCYNJV-dez9phkf.js} +5 -5
- package/dist/client/static/js/yaml-2cfkd30t.js +1 -0
- package/package.json +1 -1
- package/src/client/components/common/context-usage-button/McpSection.test.tsx +98 -0
- package/src/client/components/common/context-usage-button/McpSection.tsx +12 -5
- package/src/client/components/common/context-usage-button/SessionStats.tsx +80 -0
- package/src/client/components/common/context-usage-button/index.test.tsx +26 -0
- package/src/client/components/common/context-usage-button/index.tsx +36 -28
- package/src/client/components/common/harness-glyph/brands.ts +8 -0
- package/src/client/components/mobile/LayoutWrapper.tsx +12 -3
- package/src/client/components/mobile/mobile-right-sidebar/FullDiff.tsx +9 -2
- package/src/client/components/settings/apply-side-effects.test.ts +11 -0
- package/src/client/components/settings/apply-side-effects.ts +7 -0
- package/src/client/components/settings/categories/ChatSettings.test.tsx +1 -1
- package/src/client/components/settings/categories/ChatSettings.tsx +2 -0
- package/src/client/components/settings/categories/NotificationSettings.tsx +1 -1
- package/src/client/components/settings/categories/chat-settings/ChangedFilesSection.tsx +79 -0
- package/src/client/components/settings/categories/chat-settings/groups.ts +4 -3
- package/src/client/components/workspace/chat-timeline/ChangedFilesSummary.tsx +101 -0
- package/src/client/components/workspace/chat-timeline/MessageList.tsx +33 -1
- package/src/client/components/workspace/chat-timeline/RunFooter.tsx +21 -1
- package/src/client/components/workspace/chat-timeline/TimelineBody.tsx +13 -0
- package/src/client/components/workspace/chat-timeline/index.tsx +1 -1
- package/src/client/components/workspace/diff-panel/Toolbar.tsx +17 -51
- package/src/client/components/workspace/diff-panel/index.tsx +23 -4
- package/src/client/components/workspace/diff-panel/toolbar-git-actions.tsx +94 -0
- package/src/client/components/workspace/editor/Body.tsx +2 -0
- package/src/client/data/settings/omp-schema.json +73 -3
- package/src/client/hooks/chat/timeline/changed-files-setting.test.ts +31 -0
- package/src/client/hooks/chat/timeline/changed-files-setting.ts +60 -0
- package/src/client/hooks/chat/timeline/session-changes.ts +51 -0
- package/src/client/hooks/ui/notification-events.test.ts +3 -0
- package/src/client/hooks/ui/notification-events.ts +3 -1
- package/src/client/hooks/ui/notification-sound.ts +13 -6
- package/src/client/hooks/ui/ui-sounds.test.ts +15 -0
- package/src/client/hooks/workspace/diff-file.ts +11 -4
- package/src/client/hooks/workspace/file-tabs.ts +13 -4
- package/src/client/hooks/workspace/journal-diff.ts +97 -0
- package/src/client/lib/notifications/native-banner-sound.test.ts +93 -0
- package/src/client/lib/notifications/native-banner-sound.ts +46 -0
- package/src/client/lib/notifications/os.test.ts +14 -5
- package/src/client/lib/notifications/os.ts +8 -0
- package/src/server/lib/harness/launch-table.ts +10 -0
- package/src/server/lib/omp/session/changes.test.ts +138 -0
- package/src/server/lib/omp/session/changes.ts +220 -0
- package/src/server/lib/omp/session/session-discovery.test.ts +4 -4
- package/src/server/lib/omp/session/sidebar-activity.server.test.ts +6 -2
- package/src/server/lib/omp/session/subagent-presence-scan.ts +54 -0
- package/src/server/lib/omp/session/subagent-presence-store.test.ts +1 -1
- package/src/server/lib/omp/session/subagent-presence.test.ts +115 -0
- package/src/server/lib/omp/session/subagent-presence.ts +12 -3
- package/src/server/lib/omp/session/telemetry/compute.ts +68 -0
- package/src/server/lib/omp/session/telemetry.test.ts +81 -0
- package/src/server/routes/sessions/changes.test.ts +90 -0
- package/src/server/routes/sessions/changes.ts +55 -0
- package/src/server/routes/sessions/index.ts +6 -0
- package/src/shared/lib/chat/duration.ts +34 -0
- package/src/shared/lib/chat/timeline/changed-files.test.ts +121 -0
- package/src/shared/lib/chat/timeline/changed-files.ts +71 -0
- package/src/shared/lib/chat/timeline/fork-anchor.test.ts +3 -0
- package/src/shared/lib/format/duration.test.ts +31 -0
- package/src/shared/lib/format/duration.ts +27 -0
- package/src/shared/lib/fs/unified-diff.test.ts +53 -0
- package/src/shared/lib/fs/unified-diff.ts +127 -0
- package/src/shared/lib/harness/brand-color.ts +3 -0
- package/src/shared/lib/harness/catalog.test.ts +13 -0
- package/src/shared/lib/harness/catalog.ts +8 -1
- package/src/shared/lib/harness/fork.ts +4 -2
- package/src/shared/lib/harness/mcp-facts.ts +3 -0
- package/src/shared/lib/harness/provider-facts.ts +14 -0
- package/src/shared/lib/harness/updates.ts +5 -0
- package/src/shared/lib/icons/tint-hues.generated.ts +27 -27
- package/src/shared/lib/omp/config/schema.test.ts +4 -2
- package/src/shared/lib/settings/defaults.ts +1 -0
- package/src/shared/lib/workspace/file-tab-id.ts +9 -0
- package/src/shared/types/context.ts +18 -0
- package/src/shared/types/fs.ts +21 -0
- package/src/shared/types/index.ts +1 -0
- package/src/shared/types/omp/session.ts +6 -0
- package/src/shared/types/session-changes.ts +58 -0
- package/src/shared/types/settings/state.ts +8 -0
- package/dist/client/static/js/LayoutWrapper-xjnveecv.js +0 -2
- package/dist/client/static/js/Modal-k2jr9hc4.js +0 -38
- package/dist/client/static/js/architecture-7GRP2DOG-1y9zvsyt.js +0 -1
- package/dist/client/static/js/bash-m0qjsyy0.js +0 -1
- package/dist/client/static/js/css-t4ngafan.js +0 -1
- package/dist/client/static/js/cynefin-OW5HDTMX-k2188qcq.js +0 -1
- package/dist/client/static/js/eventmodeling-NTZA5JFV-pdr0qn0n.js +0 -1
- package/dist/client/static/js/flowDiagram-KWPJA3E3-zvz0mxne.js +0 -1
- package/dist/client/static/js/gitGraph-4MIJSDKK-wmqf046s.js +0 -1
- package/dist/client/static/js/graphql-692h0n2x.js +0 -1
- package/dist/client/static/js/index-61tm0v57.js +0 -1
- package/dist/client/static/js/index-kg86e3sy.js +0 -12
- package/dist/client/static/js/index-nmmxb4va.js +0 -2
- package/dist/client/static/js/info-A6RAGUB7-zg3twte6.js +0 -1
- package/dist/client/static/js/ini-cg0a5wm3.js +0 -1
- package/dist/client/static/js/java-vcck089n.js +0 -1
- package/dist/client/static/js/jsx-ht9zyzwa.js +0 -1
- package/dist/client/static/js/lua-ke895s2q.js +0 -1
- package/dist/client/static/js/markdown-gwmsh53r.js +0 -1
- package/dist/client/static/js/one-dark-pro-4geyzhjj.js +0 -1
- package/dist/client/static/js/one-light-tqssjm9t.js +0 -1
- package/dist/client/static/js/packet-AYTQ26CC-3pav51g0.js +0 -1
- package/dist/client/static/js/pie-WAS4IAKB-wqfh7zdk.js +0 -1
- package/dist/client/static/js/properties-mzvvbqg5.js +0 -1
- package/dist/client/static/js/python-3w64wsyd.js +0 -1
- package/dist/client/static/js/r-32re2zwb.js +0 -1
- package/dist/client/static/js/radar-RG4KPBEZ-w7qjdr2g.js +0 -1
- package/dist/client/static/js/railroad-74A4TZTK-rhr99kkj.js +0 -1
- package/dist/client/static/js/railroad-abnf-HS5TGJTU-c4jeea3m.js +0 -1
- package/dist/client/static/js/railroad-ebnf-LZEXJU2U-x2ee66ex.js +0 -1
- package/dist/client/static/js/railroad-peg-WCYAUIDC-yw8wjfwg.js +0 -1
- package/dist/client/static/js/swimlanesDiagram-TC7HE7FX-y81h9n27.js +0 -8
- package/dist/client/static/js/treeView-Q6P3EWNA-ekz05ccs.js +0 -1
- package/dist/client/static/js/treemap-WGGIJYW6-aq6qymjr.js +0 -1
- package/dist/client/static/js/tsx-0p183w2f.js +0 -1
- package/dist/client/static/js/typescript-t9a5jyvv.js +0 -1
- package/dist/client/static/js/wardley-WFR3VGLG-z34tj4y3.js +0 -1
- package/dist/client/static/js/xml-81hxjjt4.js +0 -1
- package/dist/client/static/js/yaml-yssayv8a.js +0 -1
package/dist/client/static/js/{vennDiagram-UO4OBE2U-7k5jsxf9.js → vennDiagram-UO4OBE2U-7t96h6ez.js}
RENAMED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import{t,Ce,El,A,g,K,E,te,R,M,O,P,z,j,G,h,ue,ae,b}from"./index-hc2jmzpx.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 S=0;S<l.parentIndex.length;++S)if(d.parentIndex.includes(l.parentIndex[S])){let k=e[l.parentIndex[S]],C=Math.atan2(l.x-k.x,l.y-k.y),F=Math.atan2(d.x-k.x,d.y-k.y),N=F-C;if(N<0)N+=2*Math.PI;let D=F-N/2,p=st(v,{x:k.x+k.radius*Math.sin(D),y:k.y+k.radius*Math.cos(D)});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,S=s.length,k=Array(S+1);k[0]=s,k[0].fx=e(s),k[0].id=0;for(let w=0;w<S;++w){let u=s.slice();u[w]=u[w]?u[w]*r:o,k[w+1]=u,k[w+1].fx=e(u),k[w+1].id=w+1}function C(w){for(let u=0;u<w.length;u++)k[S][u]=w[u];k[S].fx=w.fx}let F=(w,u)=>w.fx-u.fx,N=s.slice(),D=s.slice(),p=s.slice(),I=s.slice();for(let w=0;w<n;++w){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<S;++m)y=Math.max(y,Math.abs(k[0][m]-k[1][m]));if(Math.abs(k[0].fx-k[S].fx)<a&&y<c)break;for(let m=0;m<S;++m){N[m]=0;for(let x=0;x<S;++x)N[m]+=k[x][m];N[m]/=S}let u=k[S];if(ft(D,1+d,N,-d,u),D.fx=e(D),D.fx<k[0].fx)if(ft(I,1+f,N,-f,u),I.fx=e(I),I.fx<D.fx)C(I);else C(D);else if(D.fx>=k[S-1].fx){let m=!1;if(D.fx>u.fx)if(ft(p,1+l,N,-l,u),p.fx=e(p),p.fx<u.fx)C(p);else m=!0;else if(ft(p,1-l*d,N,l*d,u),p.fx=e(p),p.fx<D.fx)C(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 C(D)}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 S(k,C,F){for(let N=0;N<16;++N)if(r=(k+C)/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)C=r;else{if(Math.abs(v)<=-a*d)return r;if(v*(C-k)>=0)C=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 S(y,r,l);if(Math.abs(v)<=-a*d)return r;if(v>=0)return S(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 S=a[y];v[S]={x:l[2*y],y:l[2*y+1],radius:o[S].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]),S=`${l};${y}`,k=`${y};${l}`;c.set(S,d.size+(c.get(S)||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],S=(f-a)*(f-a)+(l-c)*(l-c),k=Math.sqrt(S),C=S-v*v;if(y>0&&k<=v||y<0&&k>=v)continue;r+=2*C*C,s[2*o]+=4*C*(a-f),s[2*o+1]+=4*C*(c-l),s[2*d]+=4*C*(f-a),s[2*d+1]+=4*C*(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((S)=>S/c));let d=(y,S)=>me(y,S,o,a),f=null;for(let y=0;y<i;++y){let S=wt(o.length*2).map(Math.random),k=xe(d,S,s);if(!f||k.fx<f.fx)f=k}let l=f.x,v={};for(let y=0;y<n.length;++y){let S=n[y];v[S.sets[0]]={x:l[2*y]*c,y:l[2*y+1]*c,radius:Math.sqrt(S.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,S=v.sets[0],k=v.sets[1];if(v.size+Wt>=Math.min(n[S].size,n[k].size))y=0;r[S].push({set:k,size:v.size,weight:y}),r[k].push({set:S,size:v.size,weight:y})}let o=[];Object.keys(r).forEach((v)=>{let y=0;for(let S=0;S<r[v].length;++S)y+=r[v][S].size*r[v][S].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,S=r[y].filter(d),k=n[y];if(S.sort(a),S.length===0)throw"ERROR: missing pairwise overlap information";let C=[];for(var l=0;l<S.length;++l){let D=n[S[l].set],p=Tt(k.radius,D.radius,S[l].size);C.push({x:D.x+p,y:D.y}),C.push({x:D.x-p,y:D.y}),C.push({y:D.y+p,x:D.x}),C.push({y:D.y-p,x:D.x});for(let I=l+1;I<S.length;++I){let w=n[S[I].set],u=Tt(k.radius,w.radius,S[I].size),m=Bt({x:D.x,y:D.y,radius:p},{x:w.x,y:w.y,radius:u});C.push(...m)}}let F=100000000000000000000000000000000000000000000000000,N=C[0];for(let D of C){n[y].x=D.x,n[y].y=D.y;let p=i(n,e);if(p<F)F=p,N=D}f(N,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,S,k;if(l)S=o.xRange.max-y.xRange.min+a;else{S=o.xRange.max-y.xRange.max;let C=(y.xRange.max-y.xRange.min)/2-(o.xRange.max-o.xRange.min)/2;if(C<0)S+=C}if(v)k=o.yRange.max-y.yRange.min+a;else{k=o.yRange.max-y.yRange.max;let C=(y.yRange.max-y.yRange.min)/2-(o.yRange.max-o.yRange.min)/2;if(C<0)k+=C}for(let C of f)C.x+=S,C.y+=k,n.push(C)}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 S=Math.sqrt(r/Math.PI)*2;d=s/S,f=i/S}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((S)=>({radius:l*S.radius,x:n+v+(S.x-a.min)*l,y:n+y+(S.y-c.min)*l,setid:S.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,S=!1,k=null,C=e&&e.symmetricalTextCentre?e.symmetricalTextCentre:!1,F={},N=e&&e.colourScheme?e.colourScheme:e&&e.colorScheme?e.colorScheme:["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"],D=0,p=function(m){if(m in F)return F[m];var x=F[m]=N[D];if(D+=1,D>=N.length)D=0;return x},I=Gt,w=xt;function u(m){let x=m.datum(),q=new Set;x.forEach((_)=>{if(_.size==0&&_.sets.length==1)q.add(_.sets[0])}),x=x.filter((_)=>!_.sets.some((Y)=>q.has(Y)));let T={},U={};if(x.length>0){let _=I(x,{lossFunction:w,distinct:S});if(c)_=Ht(_,a,y);T=Yt(_,i,n,r,d),U=$t(T,x,C)}let it={};x.forEach((_)=>{if(_.label)it[_.sets]=_.label});function Q(_){if(_.sets in it)return it[_.sets];if(_.sets.length==1)return""+_.sets[0]}m.selectAll("svg").data([T]).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(_){let Y=this.getAttribute("d");if(_.sets.length==1&&Y&&!S)W=!0,B[_.sets[0]]=_e(Y)});function L(_){return(Y)=>{let dt=_.sets.map((ut)=>{let ct=B[ut],nt=T[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,(_)=>_.sets),tt=X.enter().append("g").attr("class",(_)=>`venn-area venn-${_.sets.length==1?"circle":"intersection"}${_.colour||_.color?" venn-coloured":""}`).attr("data-venn-sets",(_)=>_.sets.join("_")),Z=tt.append("path"),rt=tt.append("text").attr("class","label").text((_)=>Q(_)).attr("text-anchor","middle").attr("dy",".35em").attr("x",i/2).attr("y",n/2);if(l)Z.style("fill-opacity","0").filter((_)=>_.sets.length==1).style("fill",(_)=>_.colour?_.colour:_.color?_.color:p(_.sets)).style("fill-opacity",".25"),rt.style("fill",(_)=>{if(_.colour||_.color)return"#FFF";if(e.textFill)return e.textFill;return _.sets.length==1?p(_.sets):"#444"});function et(_){if(typeof _.transition==="function")return _.transition("venn").duration(o);return _}let J=m;if(W&&typeof J.transition==="function")J=et(m),J.selectAll("path").attrTween("d",L);else J.selectAll("path").attr("d",(_)=>Vt(_.sets.map((Y)=>T[Y])),k);let V=J.selectAll("text").filter((_)=>(_.sets in U)).text((_)=>Q(_)).attr("x",(_)=>Math.floor(U[_.sets].x)).attr("y",(_)=>Math.floor(U[_.sets].y));if(f)if(W)if("on"in V)V.on("end",It(T,Q));else V.each("end",It(T,Q));else V.each(It(T,Q));let lt=et(X.exit()).remove();if(typeof X.transition==="function")lt.selectAll("path").attrTween("d",L);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:T,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 S;return S=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 w;return w=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 S=[];function k(p){let I=n.ownerDocument.createElementNS(n.namespaceURI,"tspan");return I.textContent=p,S.push(I),n.append(I),I}let C=k(f);while(!0){if(f=a.pop(),!f)break;l.push(f);let p=l.join(" ");if(C.textContent=p,p.length>d&&C.getComputedTextLength()>r)l.pop(),C.textContent=l.join(" "),l=[f],C=k(f),v++}let F=0.35-v*y/2,N=n.getAttribute("x"),D=n.getAttribute("y");S.forEach((p,I)=>{p.setAttribute("x",N),p.setAttribute("y",D),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 S=r[a[y]];for(let k=0;k<S.length;++k)d[S[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,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(`
|
|
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:
|
|
8
|
-
`+
|
|
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:
|
|
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)+`:
|
|
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
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
|
|
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,
|
|
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)=>`
|
|
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
|
|
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};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{pt}from"./index-w7xbfv44.js";import{Pe}from"./index-0j518hqm.js";import{Ea}from"./index-jppt5mgc.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-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};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{tf}from"./index-trm9x02n.js";export{tf as createWardleyServices};
|