@kabmo-labs/kabmo 0.34.0 → 0.36.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 +435 -432
- package/dist/client/static/js/{CsvGrid-vze4m5ag.js → CsvGrid-1h3bcak7.js} +2 -2
- package/dist/client/static/js/{DocxView-jbf21gmh.js → DocxView-ndca8jch.js} +3 -3
- package/dist/client/static/js/{DrawioView-b52qybx5.js → DrawioView-kpzd6y0b.js} +2 -2
- package/dist/client/static/js/{ImageView-mdgzj8px.js → ImageView-79prn3dg.js} +1 -1
- package/dist/client/static/js/{LayoutWrapper-3c49dvtt.js → LayoutWrapper-v2wn2sb2.js} +2 -2
- package/dist/client/static/js/{Modal-sqp864vd.js → Modal-99j0zz3z.js} +16 -16
- package/dist/client/static/js/{PdfView-g06rxqb1.js → PdfView-2rjd87ay.js} +1 -1
- package/dist/client/static/js/{SessionsView-521adxyr.js → SessionsView-t7f3s71b.js} +1 -1
- package/dist/client/static/js/{SheetView-h8xmsz7q.js → SheetView-ehb976st.js} +4 -4
- package/dist/client/static/js/{SvgPreview-1j4jvcvz.js → SvgPreview-de2bbba6.js} +1 -1
- package/dist/client/static/js/{abnfDiagram-O67JEVCF-pasxh4b6.js → abnfDiagram-O67JEVCF-nx9jzn7m.js} +1 -1
- package/dist/client/static/js/architecture-7GRP2DOG-aqft2erp.js +1 -0
- package/dist/client/static/js/{architectureDiagram-NJMV4G6O-ms14g0bm.js → architectureDiagram-NJMV4G6O-170v67rr.js} +2 -2
- package/dist/client/static/js/{blockDiagram-BEXU5L5S-ycn78fcq.js → blockDiagram-BEXU5L5S-16q285n1.js} +2 -2
- package/dist/client/static/js/{c4Diagram-YGBWAQC7-vn2gpjfm.js → c4Diagram-YGBWAQC7-rn3qt45h.js} +1 -1
- package/dist/client/static/js/{classDiagram-v2-NBCMYWYE-fyrm1pr5.js → classDiagram-v2-NBCMYWYE-r26wg74e.js} +3 -3
- package/dist/client/static/js/{cose-bilkent-JH36ORCC-ea5nwvgq.js → cose-bilkent-JH36ORCC-82kwe7ha.js} +1 -1
- package/dist/client/static/js/css-r2nhvzff.js +1 -0
- package/dist/client/static/js/cynefin-OW5HDTMX-v2sz60t6.js +1 -0
- package/dist/client/static/js/{cynefinDiagram-VND7K2PF-j6bsjpre.js → cynefinDiagram-VND7K2PF-tcxdn6pa.js} +1 -1
- package/dist/client/static/js/{dagre-6A5THRUB-4smdkwv8.js → dagre-6A5THRUB-g833ata3.js} +2 -2
- package/dist/client/static/js/{diagram-22UHCM2B-9sm4kqwc.js → diagram-22UHCM2B-f1fq8xec.js} +4 -4
- package/dist/client/static/js/{diagram-3UASUU5V-2h3qxaed.js → diagram-3UASUU5V-6j2w016f.js} +1 -1
- package/dist/client/static/js/{diagram-ATOU4E4O-1981bc94.js → diagram-ATOU4E4O-6t2qxsk4.js} +1 -1
- package/dist/client/static/js/{diagram-CDSNMT55-3vgsxavc.js → diagram-CDSNMT55-7abar8s7.js} +1 -1
- package/dist/client/static/js/{diagram-MLGK6HIB-c9gf2r3f.js → diagram-MLGK6HIB-s68rgy16.js} +1 -1
- package/dist/client/static/js/{diagram-MPIPVDR6-gjqeq92d.js → diagram-MPIPVDR6-azgkm6w8.js} +1 -1
- package/dist/client/static/js/{dockerfile-8v935dkn.js → dockerfile-47e33kqa.js} +1 -1
- package/dist/client/static/js/{ebnfDiagram-ZINNZB2B-4vbsgh99.js → ebnfDiagram-ZINNZB2B-esrjz750.js} +1 -1
- package/dist/client/static/js/{elixir-vcbg60wv.js → elixir-rpa1g4gy.js} +1 -1
- package/dist/client/static/js/{elk-276RUBZZ-nca3t891.js → elk-276RUBZZ-fhr4b4jj.js} +1 -1
- package/dist/client/static/js/{erDiagram-OPXOYQCR-5kfkev03.js → erDiagram-OPXOYQCR-5r3fmdnz.js} +2 -2
- package/dist/client/static/js/{erlang-qt876zrq.js → erlang-bh5cbm8m.js} +1 -1
- package/dist/client/static/js/eventmodeling-NTZA5JFV-8qbefe4m.js +1 -0
- package/dist/client/static/js/flowDiagram-KWPJA3E3-krsvgcq7.js +1 -0
- package/dist/client/static/js/{ganttDiagram-FUAMR5RP-mxc73wmq.js → ganttDiagram-FUAMR5RP-j4pf6rdn.js} +2 -2
- package/dist/client/static/js/gitGraph-4MIJSDKK-9bx1a38k.js +1 -0
- package/dist/client/static/js/{gitGraphDiagram-X574FWY7-7en3ag0e.js → gitGraphDiagram-X574FWY7-x5epk0gr.js} +1 -1
- package/dist/client/static/js/graphql-xnpp5gn9.js +1 -0
- package/dist/client/static/js/html-pv88ny12.js +1 -0
- package/dist/client/static/js/{index-j51d5a5m.js → index-0b1kwsam.js} +28 -28
- package/dist/client/static/js/{index-52rqxgya.js → index-3kgrcaq1.js} +1 -1
- package/dist/client/static/js/{index-vhqe0y82.js → index-3vdmwpbh.js} +2 -2
- package/dist/client/static/js/{index-g2dyfze9.js → index-40ve7zzv.js} +1 -1
- package/dist/client/static/js/{index-eyfcm0cy.js → index-44qrckd2.js} +1 -1
- package/dist/client/static/js/{index-qckv9nte.js → index-55pqvh82.js} +2 -2
- package/dist/client/static/js/{index-r014brzs.js → index-5kjpacvd.js} +1 -1
- package/dist/client/static/js/{index-ev3yt353.js → index-5rzk1226.js} +1 -1
- package/dist/client/static/js/{index-p0nz38bm.js → index-60ceydzn.js} +1 -1
- package/dist/client/static/js/{index-ybm2x4vh.js → index-63c6t75t.js} +1 -1
- package/dist/client/static/js/{index-ahv9y42z.js → index-63jbb4kf.js} +2 -2
- package/dist/client/static/js/{index-nccwxv0s.js → index-6xzfta4b.js} +1 -1
- package/dist/client/static/js/{index-cgzrpvzj.js → index-75haaj8g.js} +169 -169
- package/dist/client/static/js/{index-ag2rmtas.js → index-7r1hw2gd.js} +1 -1
- package/dist/client/static/js/{index-hf52f59k.js → index-8cy3x2y8.js} +2 -2
- package/dist/client/static/js/{index-vy6termr.js → index-8e15fzax.js} +1 -1
- package/dist/client/static/js/{index-rzxcj7cg.js → index-97t3mv1v.js} +1 -1
- package/dist/client/static/js/{index-km2zb6wk.js → index-982jyfsb.js} +2 -2
- package/dist/client/static/js/{index-jsyekbx9.js → index-9gf8b73w.js} +1 -1
- package/dist/client/static/js/{index-s7gkkkyz.js → index-a293pdg7.js} +2 -2
- package/dist/client/static/js/{index-dbe6afkf.js → index-af24nes6.js} +2 -2
- package/dist/client/static/js/{index-ptcwae2n.js → index-b48p8d1j.js} +2 -2
- package/dist/client/static/js/{index-cd65zqba.js → index-be6gevq8.js} +1 -1
- package/dist/client/static/js/{index-231241f4.js → index-c09a5s1n.js} +9 -9
- package/dist/client/static/js/{index-fvmfge3p.js → index-c1j0xb0w.js} +1 -1
- package/dist/client/static/js/{index-fta1y9pc.js → index-ctgefatv.js} +10 -10
- package/dist/client/static/js/{index-7a64yjrm.js → index-d2km9egp.js} +4 -4
- package/dist/client/static/js/index-dh1vd0d9.js +1 -0
- package/dist/client/static/js/{index-j0r5hj0j.js → index-dmgawfhw.js} +2 -2
- package/dist/client/static/js/{index-1ksg88qf.js → index-h1e1abpt.js} +2 -2
- package/dist/client/static/js/{index-4g46wbdw.js → index-htt8qxm3.js} +1 -1
- package/dist/client/static/js/{index-c3ek61zv.js → index-k1xt92h4.js} +1 -1
- package/dist/client/static/js/{index-f7jhhqtk.js → index-ktvbsj6w.js} +1 -1
- package/dist/client/static/js/{index-a0fmsv1d.js → index-ky0prc71.js} +6 -6
- package/dist/client/static/js/{index-2svnq5gg.js → index-mm1rf116.js} +1 -1
- package/dist/client/static/js/{index-h5bn97p6.js → index-nws03exw.js} +1 -1
- package/dist/client/static/js/{index-xx6mqpxm.js → index-pyx8n25s.js} +2 -2
- package/dist/client/static/js/{index-rs80cwsv.js → index-q5t4sy22.js} +3 -3
- package/dist/client/static/js/{index-76zb4m0n.js → index-r8pckaqe.js} +2 -2
- package/dist/client/static/js/{index-4qwzxj81.js → index-sar2ggde.js} +1 -1
- package/dist/client/static/js/{index-1b0t1428.js → index-skm6k5w2.js} +3 -3
- package/dist/client/static/js/{index-b29afsjh.js → index-v5t761a1.js} +1 -1
- package/dist/client/static/js/{index-7y6rpsrp.js → index-v8qd8ypc.js} +2 -2
- package/dist/client/static/js/{index-354mqqra.js → index-w3n97x4b.js} +2 -2
- package/dist/client/static/js/{index-0vm41je9.js → index-ydvfc9td.js} +1 -1
- package/dist/client/static/js/{index-ptcrwswj.js → index-ye450a7z.js} +1 -1
- package/dist/client/static/js/{index-rytaa8ca.js → index-z6g74h7g.js} +2 -2
- package/dist/client/static/js/{index-sd66wv26.js → index-zdtsvnpq.js} +2 -2
- package/dist/client/static/js/{index-pm6xxwz1.js → index-zp73zexp.js} +2 -2
- package/dist/client/static/js/info-A6RAGUB7-j51t7jhh.js +1 -0
- package/dist/client/static/js/{infoDiagram-VRGFBTTK-sef80132.js → infoDiagram-VRGFBTTK-ktc8nb8g.js} +1 -1
- package/dist/client/static/js/ini-ygfyhprj.js +1 -0
- package/dist/client/static/js/{ishikawaDiagram-OU5B5YK6-yhvepp1q.js → ishikawaDiagram-OU5B5YK6-n3dk6227.js} +2 -2
- package/dist/client/static/js/java-gm49vw59.js +1 -0
- package/dist/client/static/js/{journeyDiagram-ZHPQQLJL-5w77y95w.js → journeyDiagram-ZHPQQLJL-f0p1h8qn.js} +3 -3
- package/dist/client/static/js/jsx-ksxw1byz.js +1 -0
- package/dist/client/static/js/{julia-d4j6wgvf.js → julia-73zjh2w6.js} +1 -1
- package/dist/client/static/js/{kanban-definition-PNTS6WVX-02znqtna.js → kanban-definition-PNTS6WVX-7jdt7dv1.js} +2 -2
- package/dist/client/static/js/lua-53gzb9bx.js +1 -0
- package/dist/client/static/js/markdown-tk3cd3vs.js +1 -0
- package/dist/client/static/js/{mermaid.core-a6e6vck4.js → mermaid.core-e8rzrjt9.js} +6 -6
- package/dist/client/static/js/{mindmap-definition-NLK3R4M7-y4n74q9x.js → mindmap-definition-NLK3R4M7-7shv6ge0.js} +2 -2
- package/dist/client/static/js/one-dark-pro-39bt34v9.js +1 -0
- package/dist/client/static/js/one-light-xec0sehr.js +1 -0
- package/dist/client/static/js/packet-AYTQ26CC-n83gfj2g.js +1 -0
- package/dist/client/static/js/{pegDiagram-GJSIUBJH-pr7ehgzb.js → pegDiagram-GJSIUBJH-17ak2zx3.js} +1 -1
- package/dist/client/static/js/{perl-srptw5vm.js → perl-8z46dmze.js} +1 -1
- package/dist/client/static/js/{php-n89g3fk7.js → php-6qvnp2t6.js} +1 -1
- package/dist/client/static/js/pie-WAS4IAKB-5c5pctwz.js +1 -0
- package/dist/client/static/js/{pieDiagram-5QR66LMP-39wpsk08.js → pieDiagram-5QR66LMP-at4x1g4q.js} +2 -2
- package/dist/client/static/js/properties-2tcybqjk.js +1 -0
- package/dist/client/static/js/python-qph3dntq.js +1 -0
- package/dist/client/static/js/{quadrantDiagram-O4NWA36T-esm913km.js → quadrantDiagram-O4NWA36T-apzhwrn4.js} +1 -1
- package/dist/client/static/js/r-gd26x93y.js +1 -0
- package/dist/client/static/js/radar-RG4KPBEZ-52e5n99a.js +1 -0
- package/dist/client/static/js/railroad-74A4TZTK-44nqxxpy.js +1 -0
- package/dist/client/static/js/railroad-abnf-HS5TGJTU-25jxgwg7.js +1 -0
- package/dist/client/static/js/railroad-ebnf-LZEXJU2U-64pqpf2y.js +1 -0
- package/dist/client/static/js/railroad-peg-WCYAUIDC-0p5sxzpx.js +1 -0
- package/dist/client/static/js/{railroadDiagram-XR7U4H2S-wy2mgya6.js → railroadDiagram-XR7U4H2S-rw8cj5f3.js} +1 -1
- package/dist/client/static/js/{requirementDiagram-PLB6GJNP-6z9xdgbq.js → requirementDiagram-PLB6GJNP-qyrse7mb.js} +1 -1
- package/dist/client/static/js/{ruby-r81ytgcm.js → ruby-qy8mhstq.js} +1 -1
- package/dist/client/static/js/{rust-frn3szvc.js → rust-fpshqnk0.js} +1 -1
- package/dist/client/static/js/{sankeyDiagram-IPEJSGJF-rtmxk3ys.js → sankeyDiagram-IPEJSGJF-254qr59q.js} +1 -1
- package/dist/client/static/js/{sass-9bxped7y.js → sass-kbwea482.js} +1 -1
- package/dist/client/static/js/{sequenceDiagram-PO4LG4MO-awzcrafg.js → sequenceDiagram-PO4LG4MO-y9xjxfc5.js} +3 -3
- package/dist/client/static/js/{sizeCapture-INFHLROL-03gy196j.js → sizeCapture-INFHLROL-sc5e60t3.js} +1 -1
- package/dist/client/static/js/{stateDiagram-v2-GCMORJYK-an8v3q5n.js → stateDiagram-v2-GCMORJYK-r134s4xr.js} +2 -2
- package/dist/client/static/js/{swimlanes-2SLR337P-n9yb4wcs.js → swimlanes-2SLR337P-xc7rbawt.js} +1 -1
- package/dist/client/static/js/swimlanesDiagram-TC7HE7FX-kdcdamkj.js +8 -0
- package/dist/client/static/js/{timeline-definition-EJHVYXUP-jceb575g.js → timeline-definition-EJHVYXUP-cgjd8shk.js} +2 -2
- package/dist/client/static/js/treeView-Q6P3EWNA-8j14nnd1.js +1 -0
- package/dist/client/static/js/treemap-WGGIJYW6-esf993kk.js +1 -0
- package/dist/client/static/js/{usecaseDiagram-POWQR4AR-888h3100.js → usecaseDiagram-POWQR4AR-9qsmjhm6.js} +4 -4
- package/dist/client/static/js/{vennDiagram-UO4OBE2U-wbfz0rzv.js → vennDiagram-UO4OBE2U-4grw9awx.js} +1 -1
- package/dist/client/static/js/{vue-c0rtg1wf.js → vue-j8vb9d7r.js} +1 -1
- package/dist/client/static/js/wardley-WFR3VGLG-v4dxm2sb.js +1 -0
- package/dist/client/static/js/{wardleyDiagram-VNRHLVJA-rn8c5qf9.js → wardleyDiagram-VNRHLVJA-8gxy0wat.js} +1 -1
- package/dist/client/static/js/xml-0py2vkw7.js +1 -0
- package/dist/client/static/js/{xychartDiagram-PMCCYNJV-8sn1apt6.js → xychartDiagram-PMCCYNJV-5sh7tdrx.js} +2 -2
- package/dist/client/static/js/yaml-vghdz0f0.js +1 -0
- package/package.json +1 -1
- package/src/client/components/settings/categories/ConnectSettings.tsx +8 -1
- package/src/client/components/settings/categories/connect-settings/CloudflareConfig.test.tsx +84 -0
- package/src/client/components/settings/categories/connect-settings/CloudflareConfig.tsx +68 -0
- package/src/client/components/settings/categories/connect-settings/PairDialog.test.tsx +159 -0
- package/src/client/components/settings/categories/connect-settings/PairDialog.tsx +40 -7
- package/src/client/components/workspace/git-panel/init-state.test.ts +5 -0
- package/src/client/hooks/chat/composer/speech-to-text.ts +24 -17
- package/src/client/hooks/connect/use-connect-status.ts +44 -19
- package/src/client/hooks/connect/use-pairing.ts +5 -0
- package/src/client/hooks/editor/file-actions.ts +3 -11
- package/src/client/hooks/editor/font.test.ts +2 -1
- package/src/client/hooks/editor/use-file-transfer.ts +2 -1
- package/src/client/lib/browser/download.ts +22 -0
- package/src/client/lib/notifications/watch.ts +4 -1
- package/src/server/lib/connect/cloudflared-config.server.ts +236 -0
- package/src/server/lib/connect/cloudflared-config.test.ts +245 -0
- package/src/server/lib/connect/cloudflared.lifecycle.test.ts +116 -15
- package/src/server/lib/connect/cloudflared.server.ts +53 -66
- package/src/server/lib/connect/pairing.server.ts +33 -0
- package/src/server/lib/connect/qr-png.server.test.ts +93 -0
- package/src/server/lib/connect/qr-png.server.ts +119 -0
- package/src/server/lib/connect/status.server.ts +10 -4
- package/src/server/routes/connect/index.ts +2 -0
- package/src/server/routes/connect/pair-qr.test.ts +72 -0
- package/src/server/routes/connect/pair-qr.ts +44 -0
- package/src/server/routes/connect/pair.ts +8 -2
- package/src/server/routes/connect/tunnels.test.ts +141 -0
- package/src/server/routes/connect/tunnels.ts +32 -7
- package/src/server/routes/notifications/stream.ts +11 -2
- package/src/shared/lib/connect/types.ts +7 -0
- package/src/shared/lib/dictation/capture-failure.test.ts +46 -0
- package/src/shared/lib/dictation/capture-failure.ts +36 -0
- package/dist/client/static/js/architecture-7GRP2DOG-fc9kmq1w.js +0 -1
- package/dist/client/static/js/css-6vj0d308.js +0 -1
- package/dist/client/static/js/cynefin-OW5HDTMX-a4t8992q.js +0 -1
- package/dist/client/static/js/eventmodeling-NTZA5JFV-18bdrkv5.js +0 -1
- package/dist/client/static/js/flowDiagram-KWPJA3E3-fg0yqx0h.js +0 -1
- package/dist/client/static/js/gitGraph-4MIJSDKK-8fa6y40p.js +0 -1
- package/dist/client/static/js/graphql-n43pd5fs.js +0 -1
- package/dist/client/static/js/html-dbrwss36.js +0 -1
- package/dist/client/static/js/index-6sf2vsp2.js +0 -1
- package/dist/client/static/js/info-A6RAGUB7-3hk844f7.js +0 -1
- package/dist/client/static/js/ini-j5dyq6gm.js +0 -1
- package/dist/client/static/js/java-g4dgwbfd.js +0 -1
- package/dist/client/static/js/jsx-7t5ecz9s.js +0 -1
- package/dist/client/static/js/lua-1g6w30de.js +0 -1
- package/dist/client/static/js/markdown-afx21x8c.js +0 -1
- package/dist/client/static/js/one-dark-pro-vwhfpzr8.js +0 -1
- package/dist/client/static/js/one-light-y5t9x6zh.js +0 -1
- package/dist/client/static/js/packet-AYTQ26CC-4nj2yy10.js +0 -1
- package/dist/client/static/js/pie-WAS4IAKB-k7rde3f9.js +0 -1
- package/dist/client/static/js/properties-thd83wey.js +0 -1
- package/dist/client/static/js/python-264ns4xw.js +0 -1
- package/dist/client/static/js/r-qw82kkv9.js +0 -1
- package/dist/client/static/js/radar-RG4KPBEZ-513dpw4f.js +0 -1
- package/dist/client/static/js/railroad-74A4TZTK-9bqnst9c.js +0 -1
- package/dist/client/static/js/railroad-abnf-HS5TGJTU-7367d5bv.js +0 -1
- package/dist/client/static/js/railroad-ebnf-LZEXJU2U-b806b1mj.js +0 -1
- package/dist/client/static/js/railroad-peg-WCYAUIDC-5a67rwf8.js +0 -1
- package/dist/client/static/js/swimlanesDiagram-TC7HE7FX-nx5nfnf0.js +0 -8
- package/dist/client/static/js/treeView-Q6P3EWNA-kcy40evb.js +0 -1
- package/dist/client/static/js/treemap-WGGIJYW6-fsrvqxf4.js +0 -1
- package/dist/client/static/js/wardley-WFR3VGLG-36dmxww4.js +0 -1
- package/dist/client/static/js/xml-dz51p1m3.js +0 -1
- package/dist/client/static/js/yaml-2cfkd30t.js +0 -1
- package/src/server/lib/connect/cloudflared.server.test.ts +0 -65
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
function rd(i){i={...ae,...i};var l=i.inline,m=i.tokenHooks,b=i.documentTypes||{},G=i.mediaTypes||{},J=i.mediaFeatures||{},Q=i.mediaValueKeywords||{},A=i.propertyKeywords||{},O=i.nonStandardPropertyKeywords||{},R=i.fontProperties||{},ee=i.counterDescriptors||{},F=i.colorKeywords||{},N=i.valueKeywords||{},g=i.allowNested,re=i.lineComment,oe=i.supportsAtComponent===!0,V=i.highlightNonStandardPropertyKeywords!==!1,w,n;function c(e,o){return w=o,e}function ie(e,o){var r=e.next();if(m[r]){var t=m[r](e,o);if(t!==!1)return t}if(r=="@")return e.eatWhile(/[\w\\\-]/),c("def",e.current());else if(r=="="||(r=="~"||r=="|")&&e.eat("="))return c(null,"compare");else if(r=='"'||r=="'")return o.tokenize=W(r),o.tokenize(e,o);else if(r=="#")return e.eatWhile(/[\w\\\-]/),c("atom","hash");else if(r=="!")return e.match(/^\s*\w*/),c("keyword","important");else if(/\d/.test(r)||r=="."&&e.eat(/\d/))return e.eatWhile(/[\w.%]/),c("number","unit");else if(r==="-"){if(/[\d.]/.test(e.peek()))return e.eatWhile(/[\w.%]/),c("number","unit");else if(e.match(/^-[\w\\\-]*/)){if(e.eatWhile(/[\w\\\-]/),e.match(/^\s*:/,!1))return c("def","variable-definition");return c("variableName","variable")}else if(e.match(/^\w+-/))return c("meta","meta")}else if(/[,+>*\/]/.test(r))return c(null,"select-op");else if(r=="."&&e.match(/^-?[_a-z][_a-z0-9-]*/i))return c("qualifier","qualifier");else if(/[:;{}\[\]\(\)]/.test(r))return c(null,r);else if(e.match(/^[\w-.]+(?=\()/)){if(/^(url(-prefix)?|domain|regexp)$/i.test(e.current()))o.tokenize=te;return c("variableName.function","variable")}else if(/[\w\\\-]/.test(r))return e.eatWhile(/[\w\\\-]/),c("property","word");else return c(null,null)}function W(e){return function(o,r){var t=!1,d;while((d=o.next())!=null){if(d==e&&!t){if(e==")")o.backUp(1);break}t=!t&&d=="\\"}if(d==e||!t&&e!=")")r.tokenize=null;return c("string","string")}}function te(e,o){if(e.next(),!e.match(/^\s*[\"\')]/,!1))o.tokenize=W(")");else o.tokenize=null;return c(null,"(")}function D(e,o,r){this.type=e,this.indent=o,this.prev=r}function s(e,o,r,t){return e.context=new D(r,o.indentation()+(t===!1?0:o.indentUnit),e.context),r}function u(e){if(e.context.prev)e.context=e.context.prev;return e.context.type}function k(e,o,r){return a[r.context.type](e,o,r)}function h(e,o,r,t){for(var d=t||1;d>0;d--)r.context=r.context.prev;return k(e,o,r)}function L(e){var o=e.current().toLowerCase();if(N.hasOwnProperty(o))n="atom";else if(F.hasOwnProperty(o))n="keyword";else n="variable"}var a={};return a.top=function(e,o,r){if(e=="{")return s(r,o,"block");else if(e=="}"&&r.context.prev)return u(r);else if(oe&&/@component/i.test(e))return s(r,o,"atComponentBlock");else if(/^@(-moz-)?document$/i.test(e))return s(r,o,"documentTypes");else if(/^@(media|supports|(-moz-)?document|import)$/i.test(e))return s(r,o,"atBlock");else if(/^@(font-face|counter-style)/i.test(e))return r.stateArg=e,"restricted_atBlock_before";else if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(e))return"keyframes";else if(e&&e.charAt(0)=="@")return s(r,o,"at");else if(e=="hash")n="builtin";else if(e=="word")n="tag";else if(e=="variable-definition")return"maybeprop";else if(e=="interpolation")return s(r,o,"interpolation");else if(e==":")return"pseudo";else if(g&&e=="(")return s(r,o,"parens");return r.context.type},a.block=function(e,o,r){if(e=="word"){var t=o.current().toLowerCase();if(A.hasOwnProperty(t))return n="property","maybeprop";else if(O.hasOwnProperty(t))return n=V?"string.special":"property","maybeprop";else if(g)return n=o.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block";else return n="error","maybeprop"}else if(e=="meta")return"block";else if(!g&&(e=="hash"||e=="qualifier"))return n="error","block";else return a.top(e,o,r)},a.maybeprop=function(e,o,r){if(e==":")return s(r,o,"prop");return k(e,o,r)},a.prop=function(e,o,r){if(e==";")return u(r);if(e=="{"&&g)return s(r,o,"propBlock");if(e=="}"||e=="{")return h(e,o,r);if(e=="(")return s(r,o,"parens");if(e=="hash"&&!/^#([0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/.test(o.current()))n="error";else if(e=="word")L(o);else if(e=="interpolation")return s(r,o,"interpolation");return"prop"},a.propBlock=function(e,o,r){if(e=="}")return u(r);if(e=="word")return n="property","maybeprop";return r.context.type},a.parens=function(e,o,r){if(e=="{"||e=="}")return h(e,o,r);if(e==")")return u(r);if(e=="(")return s(r,o,"parens");if(e=="interpolation")return s(r,o,"interpolation");if(e=="word")L(o);return"parens"},a.pseudo=function(e,o,r){if(e=="meta")return"pseudo";if(e=="word")return n="variableName.constant",r.context.type;return k(e,o,r)},a.documentTypes=function(e,o,r){if(e=="word"&&b.hasOwnProperty(o.current()))return n="tag",r.context.type;else return a.atBlock(e,o,r)},a.atBlock=function(e,o,r){if(e=="(")return s(r,o,"atBlock_parens");if(e=="}"||e==";")return h(e,o,r);if(e=="{")return u(r)&&s(r,o,g?"block":"top");if(e=="interpolation")return s(r,o,"interpolation");if(e=="word"){var t=o.current().toLowerCase();if(t=="only"||t=="not"||t=="and"||t=="or")n="keyword";else if(G.hasOwnProperty(t))n="attribute";else if(J.hasOwnProperty(t))n="property";else if(Q.hasOwnProperty(t))n="keyword";else if(A.hasOwnProperty(t))n="property";else if(O.hasOwnProperty(t))n=V?"string.special":"property";else if(N.hasOwnProperty(t))n="atom";else if(F.hasOwnProperty(t))n="keyword";else n="error"}return r.context.type},a.atComponentBlock=function(e,o,r){if(e=="}")return h(e,o,r);if(e=="{")return u(r)&&s(r,o,g?"block":"top",!1);if(e=="word")n="error";return r.context.type},a.atBlock_parens=function(e,o,r){if(e==")")return u(r);if(e=="{"||e=="}")return h(e,o,r,2);return a.atBlock(e,o,r)},a.restricted_atBlock_before=function(e,o,r){if(e=="{")return s(r,o,"restricted_atBlock");if(e=="word"&&r.stateArg=="@counter-style")return n="variable","restricted_atBlock_before";return k(e,o,r)},a.restricted_atBlock=function(e,o,r){if(e=="}")return r.stateArg=null,u(r);if(e=="word"){if(r.stateArg=="@font-face"&&!R.hasOwnProperty(o.current().toLowerCase())||r.stateArg=="@counter-style"&&!ee.hasOwnProperty(o.current().toLowerCase()))n="error";else n="property";return"maybeprop"}return"restricted_atBlock"},a.keyframes=function(e,o,r){if(e=="word")return n="variable","keyframes";if(e=="{")return s(r,o,"top");return k(e,o,r)},a.at=function(e,o,r){if(e==";")return u(r);if(e=="{"||e=="}")return h(e,o,r);if(e=="word")n="tag";else if(e=="hash")n="builtin";return"at"},a.interpolation=function(e,o,r){if(e=="}")return u(r);if(e=="{"||e==";")return h(e,o,r);if(e=="word")n="variable";else if(e!="variable"&&e!="("&&e!=")")n="error";return"interpolation"},{name:i.name,startState:function(){return{tokenize:null,state:l?"block":"top",stateArg:null,context:new D(l?"block":"top",0,null)}},token:function(e,o){if(!o.tokenize&&e.eatSpace())return null;var r=(o.tokenize||ie)(e,o);if(r&&typeof r=="object")w=r[1],r=r[0];if(n=r,w!="comment")o.state=a[o.state](w,e,o);return n},indent:function(e,o,r){var t=e.context,d=o&&o.charAt(0),j=t.indent;if(t.type=="prop"&&(d=="}"||d==")"))t=t.prev;if(t.prev){if(d=="}"&&(t.type=="block"||t.type=="top"||t.type=="interpolation"||t.type=="restricted_atBlock"))t=t.prev,j=t.indent;else if(d==")"&&(t.type=="parens"||t.type=="atBlock_parens")||d=="{"&&(t.type=="at"||t.type=="atBlock"))j=Math.max(0,t.indent-r.unit)}return j},languageData:{indentOnInput:/^\s*\}$/,commentTokens:{line:re,block:{open:"/*",close:"*/"}},autocomplete:M}}}function p(i){var l={};for(var m=0;m<i.length;++m)l[i[m].toLowerCase()]=!0;return l}var H=["domain","regexp","url","url-prefix"],C=p(H),X=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],y=p(X),Y=["width","min-width","max-width","height","min-height","max-height","device-width","min-device-width","max-device-width","device-height","min-device-height","max-device-height","aspect-ratio","min-aspect-ratio","max-aspect-ratio","device-aspect-ratio","min-device-aspect-ratio","max-device-aspect-ratio","color","min-color","max-color","color-index","min-color-index","max-color-index","monochrome","min-monochrome","max-monochrome","resolution","min-resolution","max-resolution","scan","grid","orientation","device-pixel-ratio","min-device-pixel-ratio","max-device-pixel-ratio","pointer","any-pointer","hover","any-hover","prefers-color-scheme","dynamic-range","video-dynamic-range"],v=p(Y),E=["landscape","portrait","none","coarse","fine","on-demand","hover","interlace","progressive","dark","light","standard","high"],q=p(E),B=["align-content","align-items","align-self","alignment-adjust","alignment-baseline","all","anchor-point","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","azimuth","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","binding","bleed","block-size","bookmark-label","bookmark-level","bookmark-state","bookmark-target","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","color","color-profile","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","counter-increment","counter-reset","crop","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","drop-initial-after-adjust","drop-initial-after-align","drop-initial-before-adjust","drop-initial-before-align","drop-initial-size","drop-initial-value","elevation","empty-cells","fit","fit-content","fit-position","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","float-offset","flow-from","flow-into","font","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-gap","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-gap","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","inline-box-align","inset","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","left","letter-spacing","line-break","line-height","line-height-step","line-stacking","line-stacking-ruby","line-stacking-shift","line-stacking-strategy","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marks","marquee-direction","marquee-loop","marquee-play-count","marquee-speed","marquee-style","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","move-to","nav-down","nav-index","nav-left","nav-right","nav-up","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-style","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","page-policy","pause","pause-after","pause-before","perspective","perspective-origin","pitch","pitch-range","place-content","place-items","place-self","play-during","position","presentation-level","punctuation-trim","quotes","region-break-after","region-break-before","region-break-inside","region-fragment","rendering-intent","resize","rest","rest-after","rest-before","richness","right","rotate","rotation","rotation-point","row-gap","ruby-align","ruby-overhang","ruby-position","ruby-span","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-type","shape-image-threshold","shape-inside","shape-margin","shape-outside","size","speak","speak-as","speak-header","speak-numeral","speak-punctuation","speech-rate","stress","string-set","tab-size","table-layout","target","target-name","target-new","target-position","text-align","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-height","text-indent","text-justify","text-orientation","text-outline","text-overflow","text-rendering","text-shadow","text-size-adjust","text-space-collapse","text-transform","text-underline-position","text-wrap","top","touch-action","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-select","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index","clip-path","clip-rule","mask","enable-background","filter","flood-color","flood-opacity","lighting-color","stop-color","stop-opacity","pointer-events","color-interpolation","color-interpolation-filters","color-rendering","fill","fill-opacity","fill-rule","image-rendering","marker","marker-end","marker-mid","marker-start","paint-order","shape-rendering","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-rendering","baseline-shift","dominant-baseline","glyph-orientation-horizontal","glyph-orientation-vertical","text-anchor","writing-mode"],x=p(B),Z=["accent-color","aspect-ratio","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","content-visibility","margin-block","margin-block-end","margin-block-start","margin-inline","margin-inline-end","margin-inline-start","overflow-anchor","overscroll-behavior","padding-block","padding-block-end","padding-block-start","padding-inline","padding-inline-end","padding-inline-start","scroll-snap-stop","scrollbar-3d-light-color","scrollbar-arrow-color","scrollbar-base-color","scrollbar-dark-shadow-color","scrollbar-face-color","scrollbar-highlight-color","scrollbar-shadow-color","scrollbar-track-color","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","shape-inside","zoom"],z=p(Z),U=["font-display","font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"],K=p(U),ne=["additive-symbols","fallback","negative","pad","prefix","range","speak-as","suffix","symbols","system"],I=p(ne),S=["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"],P=p(S),T=["above","absolute","activeborder","additive","activecaption","afar","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","amharic","amharic-abegede","antialiased","appworkspace","arabic-indic","armenian","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","binary","bengali","blink","block","block-axis","blur","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","brightness","bullets","button","buttonface","buttonhighlight","buttonshadow","buttontext","calc","cambodian","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","cjk-earthly-branch","cjk-heavenly-stem","cjk-ideographic","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","conic-gradient","contain","content","contents","content-box","context-menu","continuous","contrast","copy","counter","counters","cover","crop","cross","crosshair","cubic-bezier","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","devanagari","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","drop-shadow","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic","ethiopic-abegede","ethiopic-abegede-am-et","ethiopic-abegede-gez","ethiopic-abegede-ti-er","ethiopic-abegede-ti-et","ethiopic-halehame-aa-er","ethiopic-halehame-aa-et","ethiopic-halehame-am-et","ethiopic-halehame-gez","ethiopic-halehame-om-et","ethiopic-halehame-sid-et","ethiopic-halehame-so-et","ethiopic-halehame-ti-er","ethiopic-halehame-ti-et","ethiopic-halehame-tig","ethiopic-numeric","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fill-box","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","georgian","grayscale","graytext","grid","groove","gujarati","gurmukhi","hand","hangul","hangul-consonant","hard-light","hebrew","help","hidden","hide","higher","highlight","highlighttext","hiragana","hiragana-iroha","horizontal","hsl","hsla","hue","hue-rotate","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","japanese-formal","japanese-informal","justify","kannada","katakana","katakana-iroha","keep-all","khmer","korean-hangul-formal","korean-hanja-formal","korean-hanja-informal","landscape","lao","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-alpha","lower-armenian","lower-greek","lower-hexadecimal","lower-latin","lower-norwegian","lower-roman","lowercase","ltr","luminosity","malayalam","manipulation","match","matrix","matrix3d","media-play-button","media-slider","media-sliderthumb","media-volume-slider","media-volume-sliderthumb","medium","menu","menulist","menulist-button","menutext","message-box","middle","min-intrinsic","mix","mongolian","monospace","move","multiple","multiple_mask_images","multiply","myanmar","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","octal","opacity","open-quote","optimizeLegibility","optimizeSpeed","oriya","oromo","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","persian","perspective","pinch-zoom","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeating-conic-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturate","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","searchfield","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","self-start","self-end","semi-condensed","semi-expanded","separate","sepia","serif","show","sidama","simp-chinese-formal","simp-chinese-informal","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","somali","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","square-button","start","static","status-bar","stretch","stroke","stroke-box","sub","subpixel-antialiased","svg_masks","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","tamil","telugu","text","text-bottom","text-top","textarea","textfield","thai","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","tibetan","tigre","tigrinya-er","tigrinya-er-abegede","tigrinya-et","tigrinya-et-abegede","to","top","trad-chinese-formal","trad-chinese-informal","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-alpha","upper-armenian","upper-greek","upper-hexadecimal","upper-latin","upper-norwegian","upper-roman","uppercase","urdu","url","var","vertical","vertical-text","view-box","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"],_=p(T),M=H.concat(X).concat(Y).concat(E).concat(B).concat(Z).concat(S).concat(T),as={properties:B,colors:S,fonts:U,values:T,all:M},ae={documentTypes:C,mediaTypes:y,mediaFeatures:v,mediaValueKeywords:q,propertyKeywords:x,nonStandardPropertyKeywords:z,fontProperties:K,counterDescriptors:I,colorKeywords:P,valueKeywords:_,tokenHooks:{"/":function(i,l){if(!i.eat("*"))return!1;return l.tokenize=f,f(i,l)}}},ah=rd({name:"css"});function f(i,l){var m=!1,b;while((b=i.next())!=null){if(m&&b=="/"){l.tokenize=null;break}m=b=="*"}return["comment","comment"]}var ih=rd({name:"scss",mediaTypes:y,mediaFeatures:v,mediaValueKeywords:q,propertyKeywords:x,nonStandardPropertyKeywords:z,colorKeywords:P,valueKeywords:_,fontProperties:K,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(i,l){if(i.eat("/"))return i.skipToEnd(),["comment","comment"];else if(i.eat("*"))return l.tokenize=f,f(i,l);else return["operator","operator"]},":":function(i){if(i.match(/^\s*\{/,!1))return[null,null];return!1},$:function(i){if(i.match(/^[\w-]+/),i.match(/^\s*:/,!1))return["def","variable-definition"];return["variableName.special","variable"]},"#":function(i){if(!i.eat("{"))return!1;return[null,"interpolation"]}}}),oh=rd({name:"less",mediaTypes:y,mediaFeatures:v,mediaValueKeywords:q,propertyKeywords:x,nonStandardPropertyKeywords:z,colorKeywords:P,valueKeywords:_,fontProperties:K,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(i,l){if(i.eat("/"))return i.skipToEnd(),["comment","comment"];else if(i.eat("*"))return l.tokenize=f,f(i,l);else return["operator","operator"]},"@":function(i){if(i.eat("{"))return[null,"interpolation"];if(i.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/i,!1))return!1;if(i.eatWhile(/[\w\\\-]/),i.match(/^\s*:/,!1))return["def","variable-definition"];return["variableName","variable"]},"&":function(){return["atom","atom"]}}}),sh=rd({name:"gss",documentTypes:C,mediaTypes:y,mediaFeatures:v,propertyKeywords:x,nonStandardPropertyKeywords:z,fontProperties:K,counterDescriptors:I,colorKeywords:P,valueKeywords:_,supportsAtComponent:!0,tokenHooks:{"/":function(i,l){if(!i.eat("*"))return!1;return l.tokenize=f,f(i,l)}}});
|
|
2
|
-
export{rd,as,
|
|
1
|
+
function rd(i){i={...ae,...i};var l=i.inline,m=i.tokenHooks,b=i.documentTypes||{},G=i.mediaTypes||{},J=i.mediaFeatures||{},Q=i.mediaValueKeywords||{},A=i.propertyKeywords||{},O=i.nonStandardPropertyKeywords||{},R=i.fontProperties||{},ee=i.counterDescriptors||{},F=i.colorKeywords||{},N=i.valueKeywords||{},g=i.allowNested,re=i.lineComment,oe=i.supportsAtComponent===!0,V=i.highlightNonStandardPropertyKeywords!==!1,w,n;function c(e,o){return w=o,e}function ie(e,o){var r=e.next();if(m[r]){var t=m[r](e,o);if(t!==!1)return t}if(r=="@")return e.eatWhile(/[\w\\\-]/),c("def",e.current());else if(r=="="||(r=="~"||r=="|")&&e.eat("="))return c(null,"compare");else if(r=='"'||r=="'")return o.tokenize=W(r),o.tokenize(e,o);else if(r=="#")return e.eatWhile(/[\w\\\-]/),c("atom","hash");else if(r=="!")return e.match(/^\s*\w*/),c("keyword","important");else if(/\d/.test(r)||r=="."&&e.eat(/\d/))return e.eatWhile(/[\w.%]/),c("number","unit");else if(r==="-"){if(/[\d.]/.test(e.peek()))return e.eatWhile(/[\w.%]/),c("number","unit");else if(e.match(/^-[\w\\\-]*/)){if(e.eatWhile(/[\w\\\-]/),e.match(/^\s*:/,!1))return c("def","variable-definition");return c("variableName","variable")}else if(e.match(/^\w+-/))return c("meta","meta")}else if(/[,+>*\/]/.test(r))return c(null,"select-op");else if(r=="."&&e.match(/^-?[_a-z][_a-z0-9-]*/i))return c("qualifier","qualifier");else if(/[:;{}\[\]\(\)]/.test(r))return c(null,r);else if(e.match(/^[\w-.]+(?=\()/)){if(/^(url(-prefix)?|domain|regexp)$/i.test(e.current()))o.tokenize=te;return c("variableName.function","variable")}else if(/[\w\\\-]/.test(r))return e.eatWhile(/[\w\\\-]/),c("property","word");else return c(null,null)}function W(e){return function(o,r){var t=!1,d;while((d=o.next())!=null){if(d==e&&!t){if(e==")")o.backUp(1);break}t=!t&&d=="\\"}if(d==e||!t&&e!=")")r.tokenize=null;return c("string","string")}}function te(e,o){if(e.next(),!e.match(/^\s*[\"\')]/,!1))o.tokenize=W(")");else o.tokenize=null;return c(null,"(")}function D(e,o,r){this.type=e,this.indent=o,this.prev=r}function s(e,o,r,t){return e.context=new D(r,o.indentation()+(t===!1?0:o.indentUnit),e.context),r}function u(e){if(e.context.prev)e.context=e.context.prev;return e.context.type}function k(e,o,r){return a[r.context.type](e,o,r)}function h(e,o,r,t){for(var d=t||1;d>0;d--)r.context=r.context.prev;return k(e,o,r)}function L(e){var o=e.current().toLowerCase();if(N.hasOwnProperty(o))n="atom";else if(F.hasOwnProperty(o))n="keyword";else n="variable"}var a={};return a.top=function(e,o,r){if(e=="{")return s(r,o,"block");else if(e=="}"&&r.context.prev)return u(r);else if(oe&&/@component/i.test(e))return s(r,o,"atComponentBlock");else if(/^@(-moz-)?document$/i.test(e))return s(r,o,"documentTypes");else if(/^@(media|supports|(-moz-)?document|import)$/i.test(e))return s(r,o,"atBlock");else if(/^@(font-face|counter-style)/i.test(e))return r.stateArg=e,"restricted_atBlock_before";else if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(e))return"keyframes";else if(e&&e.charAt(0)=="@")return s(r,o,"at");else if(e=="hash")n="builtin";else if(e=="word")n="tag";else if(e=="variable-definition")return"maybeprop";else if(e=="interpolation")return s(r,o,"interpolation");else if(e==":")return"pseudo";else if(g&&e=="(")return s(r,o,"parens");return r.context.type},a.block=function(e,o,r){if(e=="word"){var t=o.current().toLowerCase();if(A.hasOwnProperty(t))return n="property","maybeprop";else if(O.hasOwnProperty(t))return n=V?"string.special":"property","maybeprop";else if(g)return n=o.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block";else return n="error","maybeprop"}else if(e=="meta")return"block";else if(!g&&(e=="hash"||e=="qualifier"))return n="error","block";else return a.top(e,o,r)},a.maybeprop=function(e,o,r){if(e==":")return s(r,o,"prop");return k(e,o,r)},a.prop=function(e,o,r){if(e==";")return u(r);if(e=="{"&&g)return s(r,o,"propBlock");if(e=="}"||e=="{")return h(e,o,r);if(e=="(")return s(r,o,"parens");if(e=="hash"&&!/^#([0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/.test(o.current()))n="error";else if(e=="word")L(o);else if(e=="interpolation")return s(r,o,"interpolation");return"prop"},a.propBlock=function(e,o,r){if(e=="}")return u(r);if(e=="word")return n="property","maybeprop";return r.context.type},a.parens=function(e,o,r){if(e=="{"||e=="}")return h(e,o,r);if(e==")")return u(r);if(e=="(")return s(r,o,"parens");if(e=="interpolation")return s(r,o,"interpolation");if(e=="word")L(o);return"parens"},a.pseudo=function(e,o,r){if(e=="meta")return"pseudo";if(e=="word")return n="variableName.constant",r.context.type;return k(e,o,r)},a.documentTypes=function(e,o,r){if(e=="word"&&b.hasOwnProperty(o.current()))return n="tag",r.context.type;else return a.atBlock(e,o,r)},a.atBlock=function(e,o,r){if(e=="(")return s(r,o,"atBlock_parens");if(e=="}"||e==";")return h(e,o,r);if(e=="{")return u(r)&&s(r,o,g?"block":"top");if(e=="interpolation")return s(r,o,"interpolation");if(e=="word"){var t=o.current().toLowerCase();if(t=="only"||t=="not"||t=="and"||t=="or")n="keyword";else if(G.hasOwnProperty(t))n="attribute";else if(J.hasOwnProperty(t))n="property";else if(Q.hasOwnProperty(t))n="keyword";else if(A.hasOwnProperty(t))n="property";else if(O.hasOwnProperty(t))n=V?"string.special":"property";else if(N.hasOwnProperty(t))n="atom";else if(F.hasOwnProperty(t))n="keyword";else n="error"}return r.context.type},a.atComponentBlock=function(e,o,r){if(e=="}")return h(e,o,r);if(e=="{")return u(r)&&s(r,o,g?"block":"top",!1);if(e=="word")n="error";return r.context.type},a.atBlock_parens=function(e,o,r){if(e==")")return u(r);if(e=="{"||e=="}")return h(e,o,r,2);return a.atBlock(e,o,r)},a.restricted_atBlock_before=function(e,o,r){if(e=="{")return s(r,o,"restricted_atBlock");if(e=="word"&&r.stateArg=="@counter-style")return n="variable","restricted_atBlock_before";return k(e,o,r)},a.restricted_atBlock=function(e,o,r){if(e=="}")return r.stateArg=null,u(r);if(e=="word"){if(r.stateArg=="@font-face"&&!R.hasOwnProperty(o.current().toLowerCase())||r.stateArg=="@counter-style"&&!ee.hasOwnProperty(o.current().toLowerCase()))n="error";else n="property";return"maybeprop"}return"restricted_atBlock"},a.keyframes=function(e,o,r){if(e=="word")return n="variable","keyframes";if(e=="{")return s(r,o,"top");return k(e,o,r)},a.at=function(e,o,r){if(e==";")return u(r);if(e=="{"||e=="}")return h(e,o,r);if(e=="word")n="tag";else if(e=="hash")n="builtin";return"at"},a.interpolation=function(e,o,r){if(e=="}")return u(r);if(e=="{"||e==";")return h(e,o,r);if(e=="word")n="variable";else if(e!="variable"&&e!="("&&e!=")")n="error";return"interpolation"},{name:i.name,startState:function(){return{tokenize:null,state:l?"block":"top",stateArg:null,context:new D(l?"block":"top",0,null)}},token:function(e,o){if(!o.tokenize&&e.eatSpace())return null;var r=(o.tokenize||ie)(e,o);if(r&&typeof r=="object")w=r[1],r=r[0];if(n=r,w!="comment")o.state=a[o.state](w,e,o);return n},indent:function(e,o,r){var t=e.context,d=o&&o.charAt(0),j=t.indent;if(t.type=="prop"&&(d=="}"||d==")"))t=t.prev;if(t.prev){if(d=="}"&&(t.type=="block"||t.type=="top"||t.type=="interpolation"||t.type=="restricted_atBlock"))t=t.prev,j=t.indent;else if(d==")"&&(t.type=="parens"||t.type=="atBlock_parens")||d=="{"&&(t.type=="at"||t.type=="atBlock"))j=Math.max(0,t.indent-r.unit)}return j},languageData:{indentOnInput:/^\s*\}$/,commentTokens:{line:re,block:{open:"/*",close:"*/"}},autocomplete:M}}}function p(i){var l={};for(var m=0;m<i.length;++m)l[i[m].toLowerCase()]=!0;return l}var H=["domain","regexp","url","url-prefix"],C=p(H),X=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],y=p(X),Y=["width","min-width","max-width","height","min-height","max-height","device-width","min-device-width","max-device-width","device-height","min-device-height","max-device-height","aspect-ratio","min-aspect-ratio","max-aspect-ratio","device-aspect-ratio","min-device-aspect-ratio","max-device-aspect-ratio","color","min-color","max-color","color-index","min-color-index","max-color-index","monochrome","min-monochrome","max-monochrome","resolution","min-resolution","max-resolution","scan","grid","orientation","device-pixel-ratio","min-device-pixel-ratio","max-device-pixel-ratio","pointer","any-pointer","hover","any-hover","prefers-color-scheme","dynamic-range","video-dynamic-range"],v=p(Y),E=["landscape","portrait","none","coarse","fine","on-demand","hover","interlace","progressive","dark","light","standard","high"],q=p(E),B=["align-content","align-items","align-self","alignment-adjust","alignment-baseline","all","anchor-point","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","azimuth","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","binding","bleed","block-size","bookmark-label","bookmark-level","bookmark-state","bookmark-target","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","color","color-profile","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","counter-increment","counter-reset","crop","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","drop-initial-after-adjust","drop-initial-after-align","drop-initial-before-adjust","drop-initial-before-align","drop-initial-size","drop-initial-value","elevation","empty-cells","fit","fit-content","fit-position","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","float-offset","flow-from","flow-into","font","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-gap","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-gap","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","inline-box-align","inset","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","left","letter-spacing","line-break","line-height","line-height-step","line-stacking","line-stacking-ruby","line-stacking-shift","line-stacking-strategy","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marks","marquee-direction","marquee-loop","marquee-play-count","marquee-speed","marquee-style","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","move-to","nav-down","nav-index","nav-left","nav-right","nav-up","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-style","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","page-policy","pause","pause-after","pause-before","perspective","perspective-origin","pitch","pitch-range","place-content","place-items","place-self","play-during","position","presentation-level","punctuation-trim","quotes","region-break-after","region-break-before","region-break-inside","region-fragment","rendering-intent","resize","rest","rest-after","rest-before","richness","right","rotate","rotation","rotation-point","row-gap","ruby-align","ruby-overhang","ruby-position","ruby-span","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-type","shape-image-threshold","shape-inside","shape-margin","shape-outside","size","speak","speak-as","speak-header","speak-numeral","speak-punctuation","speech-rate","stress","string-set","tab-size","table-layout","target","target-name","target-new","target-position","text-align","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-height","text-indent","text-justify","text-orientation","text-outline","text-overflow","text-rendering","text-shadow","text-size-adjust","text-space-collapse","text-transform","text-underline-position","text-wrap","top","touch-action","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-select","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index","clip-path","clip-rule","mask","enable-background","filter","flood-color","flood-opacity","lighting-color","stop-color","stop-opacity","pointer-events","color-interpolation","color-interpolation-filters","color-rendering","fill","fill-opacity","fill-rule","image-rendering","marker","marker-end","marker-mid","marker-start","paint-order","shape-rendering","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-rendering","baseline-shift","dominant-baseline","glyph-orientation-horizontal","glyph-orientation-vertical","text-anchor","writing-mode"],x=p(B),Z=["accent-color","aspect-ratio","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","content-visibility","margin-block","margin-block-end","margin-block-start","margin-inline","margin-inline-end","margin-inline-start","overflow-anchor","overscroll-behavior","padding-block","padding-block-end","padding-block-start","padding-inline","padding-inline-end","padding-inline-start","scroll-snap-stop","scrollbar-3d-light-color","scrollbar-arrow-color","scrollbar-base-color","scrollbar-dark-shadow-color","scrollbar-face-color","scrollbar-highlight-color","scrollbar-shadow-color","scrollbar-track-color","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","shape-inside","zoom"],z=p(Z),U=["font-display","font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"],K=p(U),ne=["additive-symbols","fallback","negative","pad","prefix","range","speak-as","suffix","symbols","system"],I=p(ne),S=["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"],P=p(S),T=["above","absolute","activeborder","additive","activecaption","afar","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","amharic","amharic-abegede","antialiased","appworkspace","arabic-indic","armenian","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","binary","bengali","blink","block","block-axis","blur","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","brightness","bullets","button","buttonface","buttonhighlight","buttonshadow","buttontext","calc","cambodian","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","cjk-earthly-branch","cjk-heavenly-stem","cjk-ideographic","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","conic-gradient","contain","content","contents","content-box","context-menu","continuous","contrast","copy","counter","counters","cover","crop","cross","crosshair","cubic-bezier","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","devanagari","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","drop-shadow","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic","ethiopic-abegede","ethiopic-abegede-am-et","ethiopic-abegede-gez","ethiopic-abegede-ti-er","ethiopic-abegede-ti-et","ethiopic-halehame-aa-er","ethiopic-halehame-aa-et","ethiopic-halehame-am-et","ethiopic-halehame-gez","ethiopic-halehame-om-et","ethiopic-halehame-sid-et","ethiopic-halehame-so-et","ethiopic-halehame-ti-er","ethiopic-halehame-ti-et","ethiopic-halehame-tig","ethiopic-numeric","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fill-box","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","georgian","grayscale","graytext","grid","groove","gujarati","gurmukhi","hand","hangul","hangul-consonant","hard-light","hebrew","help","hidden","hide","higher","highlight","highlighttext","hiragana","hiragana-iroha","horizontal","hsl","hsla","hue","hue-rotate","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","japanese-formal","japanese-informal","justify","kannada","katakana","katakana-iroha","keep-all","khmer","korean-hangul-formal","korean-hanja-formal","korean-hanja-informal","landscape","lao","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-alpha","lower-armenian","lower-greek","lower-hexadecimal","lower-latin","lower-norwegian","lower-roman","lowercase","ltr","luminosity","malayalam","manipulation","match","matrix","matrix3d","media-play-button","media-slider","media-sliderthumb","media-volume-slider","media-volume-sliderthumb","medium","menu","menulist","menulist-button","menutext","message-box","middle","min-intrinsic","mix","mongolian","monospace","move","multiple","multiple_mask_images","multiply","myanmar","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","octal","opacity","open-quote","optimizeLegibility","optimizeSpeed","oriya","oromo","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","persian","perspective","pinch-zoom","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeating-conic-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturate","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","searchfield","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","self-start","self-end","semi-condensed","semi-expanded","separate","sepia","serif","show","sidama","simp-chinese-formal","simp-chinese-informal","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","somali","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","square-button","start","static","status-bar","stretch","stroke","stroke-box","sub","subpixel-antialiased","svg_masks","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","tamil","telugu","text","text-bottom","text-top","textarea","textfield","thai","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","tibetan","tigre","tigrinya-er","tigrinya-er-abegede","tigrinya-et","tigrinya-et-abegede","to","top","trad-chinese-formal","trad-chinese-informal","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-alpha","upper-armenian","upper-greek","upper-hexadecimal","upper-latin","upper-norwegian","upper-roman","uppercase","urdu","url","var","vertical","vertical-text","view-box","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"],_=p(T),M=H.concat(X).concat(Y).concat(E).concat(B).concat(Z).concat(S).concat(T),as={properties:B,colors:S,fonts:U,values:T,all:M},ae={documentTypes:C,mediaTypes:y,mediaFeatures:v,mediaValueKeywords:q,propertyKeywords:x,nonStandardPropertyKeywords:z,fontProperties:K,counterDescriptors:I,colorKeywords:P,valueKeywords:_,tokenHooks:{"/":function(i,l){if(!i.eat("*"))return!1;return l.tokenize=f,f(i,l)}}},ih=rd({name:"css"});function f(i,l){var m=!1,b;while((b=i.next())!=null){if(m&&b=="/"){l.tokenize=null;break}m=b=="*"}return["comment","comment"]}var oh=rd({name:"scss",mediaTypes:y,mediaFeatures:v,mediaValueKeywords:q,propertyKeywords:x,nonStandardPropertyKeywords:z,colorKeywords:P,valueKeywords:_,fontProperties:K,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(i,l){if(i.eat("/"))return i.skipToEnd(),["comment","comment"];else if(i.eat("*"))return l.tokenize=f,f(i,l);else return["operator","operator"]},":":function(i){if(i.match(/^\s*\{/,!1))return[null,null];return!1},$:function(i){if(i.match(/^[\w-]+/),i.match(/^\s*:/,!1))return["def","variable-definition"];return["variableName.special","variable"]},"#":function(i){if(!i.eat("{"))return!1;return[null,"interpolation"]}}}),sh=rd({name:"less",mediaTypes:y,mediaFeatures:v,mediaValueKeywords:q,propertyKeywords:x,nonStandardPropertyKeywords:z,colorKeywords:P,valueKeywords:_,fontProperties:K,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(i,l){if(i.eat("/"))return i.skipToEnd(),["comment","comment"];else if(i.eat("*"))return l.tokenize=f,f(i,l);else return["operator","operator"]},"@":function(i){if(i.eat("{"))return[null,"interpolation"];if(i.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/i,!1))return!1;if(i.eatWhile(/[\w\\\-]/),i.match(/^\s*:/,!1))return["def","variable-definition"];return["variableName","variable"]},"&":function(){return["atom","atom"]}}}),lh=rd({name:"gss",documentTypes:C,mediaTypes:y,mediaFeatures:v,propertyKeywords:x,nonStandardPropertyKeywords:z,fontProperties:K,counterDescriptors:I,colorKeywords:P,valueKeywords:_,supportsAtComponent:!0,tokenHooks:{"/":function(i,l){if(!i.eat("*"))return!1;return l.tokenize=f,f(i,l)}}});
|
|
2
|
+
export{rd,as,ih,oh,sh,lh};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{dn}from"./index-pm6xxwz1.js";var X={};dn(X,{default:()=>aa});var J={};dn(J,{default:()=>Ja});var cr=typeof global=="object"&&global&&global.Object===Object&&global,H=cr;var gr=typeof self=="object"&&self&&self.Object===Object&&self,yr=H||gr||Function("return this")(),Rt=yr;var _r=Rt.Symbol,pn=_r;var yt=Object.prototype,{hasOwnProperty:br,toString:vr}=yt,G=pn?pn.toStringTag:void 0;function Or(t){var e=br.call(t,G),r=t[G];try{t[G]=void 0;var o=!0}catch(f){}var a=vr.call(t);if(o)if(e)t[G]=r;else delete t[G];return a}var _t=Or;var Ar=Object.prototype,wr=Ar.toString;function Sr(t){return wr.call(t)}var bt=Sr;var Pr="[object Null]",Cr="[object Undefined]",Ot=pn?pn.toStringTag:void 0;function Er(t){if(t==null)return t===void 0?Cr:Pr;return Ot&&Ot in Object(t)?_t(t):bt(t)}var Xn=Er;function Ir(t){return t!=null&&typeof t=="object"}var qt=Ir;var Lr="[object Symbol]";function jr(t){return typeof t=="symbol"||qt(t)&&Xn(t)==Lr}var Tr=jr;function Mr(t,e){var r=-1,o=t==null?0:t.length,a=Array(o);while(++r<o)a[r]=e(t[r],r,t);return a}var Va=Mr;var Nr=Array.isArray,ve=Nr;var Rr=1/0,At=pn?pn.prototype:void 0,Tt=At?At.toString:void 0;function wt(t){if(typeof t=="string")return t;if(ve(t))return Va(t,wt)+"";if(Tr(t))return Tt?Tt.call(t):"";var e=t+"";return e=="0"&&1/t==-Rr?"-0":e}var St=wt;function Fr(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var vt=Fr;function Br(t){return t}var pr=Br;var Gr="[object AsyncFunction]",Ur="[object Function]",zr="[object GeneratorFunction]",Wr="[object Proxy]";function Kr(t){if(!vt(t))return!1;var e=Xn(t);return e==Ur||e==zr||e==Gr||e==Wr}var Ya=Kr;var Hr=Rt["__core-js_shared__"],q=Hr;var Pt=function(){var t=/[^.]+$/.exec(q&&q.keys&&q.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function qr(t){return!!Pt&&Pt in t}var Ct=qr;var $r=Function.prototype,kr=$r.toString;function Yr(t){if(t!=null){try{return kr.call(t)}catch(e){}try{return t+""}catch(e){}}return""}var y=Yr;var Xr=/[\\^$.*+?()[\]{}|]/g,Zr=/^\[object .+?Constructor\]$/,Jr=Function.prototype,Vr=Object.prototype,to=Jr.toString,eo=Vr.hasOwnProperty,ro=RegExp("^"+to.call(eo).replace(Xr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function oo(t){if(!vt(t)||Ct(t))return!1;var e=Ya(t)?ro:Zr;return e.test(y(t))}var Et=oo;function ao(t,e){return t==null?void 0:t[e]}var It=ao;function fo(t,e){var r=It(t,e);return Et(r)?r:void 0}var x=fo;var io=x(Rt,"WeakMap"),k=io;function no(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}var jt=no;function so(){}var Mt=so;var po=800,uo=16,mo=Date.now;function lo(t){var e=0,r=0;return function(){var o=mo(),a=uo-(o-r);if(r=o,a>0){if(++e>=po)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var Nt=lo;function co(t){return function(){return t}}var mr=co;var go=function(){try{var t=x(Object,"defineProperty");return t({},"",{}),t}catch(e){}}(),gl=go;var _o=!gl?pr:function(t,e){return gl(t,"toString",{configurable:!0,enumerable:!1,value:mr(e),writable:!0})},Dt=_o;var Oo=Nt(Dt),yd=Oo;function Ao(t,e){var r=-1,o=t==null?0:t.length;while(++r<o)if(e(t[r],r,t)===!1)break;return t}var vd=Ao;function To(t,e,r,o){var a=t.length,f=r+(o?1:-1);while(o?f--:++f<a)if(e(t[f],f,t))return f;return-1}var kd=To;function So(t){return t!==t}var Bt=So;function Po(t,e,r){var o=r-1,a=t.length;while(++o<a)if(t[o]===e)return o;return-1}var Gt=Po;function Eo(t,e,r){return e===e?Gt(t,e,r):kd(t,Bt,r)}var Ut=Eo;function Io(t,e){var r=t==null?0:t.length;return!!r&&Ut(t,e,0)>-1}var zt=Io;var Lo=9007199254740991,jo=/^(?:0|[1-9]\d*)$/;function Mo(t,e){var r=typeof t;return e=e==null?Lo:e,!!e&&(r=="number"||r!="symbol"&&jo.test(t))&&(t>-1&&t%1==0&&t<e)}var ho=Mo;function No(t,e){return t===e||t!==t&&e!==e}var ra=No;var Wt=Math.max;function Do(t,e,r){return e=Wt(e===void 0?t.length-1:e,0),function(){var o=arguments,a=-1,f=Wt(o.length-e,0),i=Array(f);while(++a<f)i[a]=o[e+a];a=-1;var n=Array(e+1);while(++a<e)n[a]=o[a];return n[e]=r(i),jt(t,this,n)}}var xd=Do;function Ro(t,e){return yd(xd(t,e,pr),t+"")}var bo=Ro;var Fo=9007199254740991;function Bo(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=Fo}var j=Bo;function Go(t){return t!=null&&j(t.length)&&!Ya(t)}var mn=Go;var Uo=Object.prototype;function zo(t){var e=t&&t.constructor,r=typeof e=="function"&&e.prototype||Uo;return t===r}var yo=zo;function Wo(t,e){var r=-1,o=Array(t);while(++r<t)o[r]=e(r);return o}var Kt=Wo;var Ko="[object Arguments]";function Ho(t){return qt(t)&&Xn(t)==Ko}var ut=Ho;var Ht=Object.prototype,{hasOwnProperty:qo,propertyIsEnumerable:$o}=Ht,Yo=ut(function(){return arguments}())?ut:function(t){return qt(t)&&qo.call(t,"callee")&&!$o.call(t,"callee")},Qa=Yo;function Xo(){return!1}var $t=Xo;var Xt=typeof X=="object"&&X&&!X.nodeType&&X,kt=Xt&&typeof Y=="object"&&Y&&!Y.nodeType&&Y,Zo=kt&&kt.exports===Xt,Yt=Zo?Rt.Buffer:void 0,Jo=Yt?Yt.isBuffer:void 0,Qo=Jo||$t,aa=Qo;var Vo="[object Arguments]",ta="[object Array]",ea="[object Boolean]",oa="[object Date]",fa="[object Error]",ia="[object Function]",na="[object Map]",sa="[object Number]",pa="[object Object]",ua="[object RegExp]",ma="[object Set]",la="[object String]",da="[object WeakMap]",xa="[object ArrayBuffer]",ha="[object DataView]",ca="[object Float32Array]",ga="[object Float64Array]",ya="[object Int8Array]",_a="[object Int16Array]",ba="[object Int32Array]",va="[object Uint8Array]",Oa="[object Uint8ClampedArray]",Aa="[object Uint16Array]",Ta="[object Uint32Array]",u={};u[ca]=u[ga]=u[ya]=u[_a]=u[ba]=u[va]=u[Oa]=u[Aa]=u[Ta]=!0;u[Vo]=u[ta]=u[xa]=u[ea]=u[ha]=u[oa]=u[fa]=u[ia]=u[na]=u[sa]=u[pa]=u[ua]=u[ma]=u[la]=u[da]=!1;function wa(t){return qt(t)&&j(t.length)&&!!u[Xn(t)]}var Zt=wa;function Sa(t){return function(e){return t(e)}}var vo=Sa;var Jt=typeof J=="object"&&J&&!J.nodeType&&J,U=Jt&&typeof Z=="object"&&Z&&!Z.nodeType&&Z,Pa=U&&U.exports===Jt,mt=Pa&&H.process,Ca=function(){try{var t=U&&U.require&&U.require("util").types;if(t)return t;return mt&&mt.binding&&mt.binding("util")}catch(e){}}(),Ja=Ca;var Qt=Ja&&Ja.isTypedArray,Ea=Qt?vo(Qt):Zt,ko=Ea;var Ia=Object.prototype,La=Ia.hasOwnProperty;function ja(t,e){var r=ve(t),o=!r&&Qa(t),a=!r&&!o&&aa(t),f=!r&&!o&&!a&&ko(t),i=r||o||a||f,n=i?Kt(t.length,String):[],s=n.length;for(var p in t)if((e||La.call(t,p))&&!(i&&(p=="length"||a&&(p=="offset"||p=="parent")||f&&(p=="buffer"||p=="byteLength"||p=="byteOffset")||ho(p,s))))n.push(p);return n}var wd=ja;function Ma(t,e){return function(r){return t(e(r))}}var Cd=Ma;var Na=Cd(Object.keys,Object),Vt=Na;var Da=Object.prototype,Ra=Da.hasOwnProperty;function Fa(t){if(!yo(t))return Vt(t);var e=[];for(var r in Object(t))if(Ra.call(t,r)&&r!="constructor")e.push(r);return e}var hl=Fa;function Ba(t){return mn(t)?wd(t):hl(t)}var Ft=Ba;var Ga=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ua=/^\w*$/;function za(t,e){if(ve(t))return!1;var r=typeof t;if(r=="number"||r=="symbol"||r=="boolean"||t==null||Tr(t))return!0;return Ua.test(t)||!Ga.test(t)||e!=null&&t in Object(e)}var M=za;var Wa=x(Object,"create"),_=Wa;function Ka(){this.__data__=_?_(null):{},this.size=0}var te=Ka;function Ha(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var ee=Ha;var qa="__lodash_hash_undefined__",$a=Object.prototype,ka=$a.hasOwnProperty;function tf(t){var e=this.__data__;if(_){var r=e[t];return r===qa?void 0:r}return ka.call(e,t)?e[t]:void 0}var re=tf;var ef=Object.prototype,rf=ef.hasOwnProperty;function of(t){var e=this.__data__;return _?e[t]!==void 0:rf.call(e,t)}var oe=of;var af="__lodash_hash_undefined__";function ff(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=_&&e===void 0?af:e,this}var ae=ff;function N(t){var e=-1,r=t==null?0:t.length;this.clear();while(++e<r){var o=t[e];this.set(o[0],o[1])}}N.prototype.clear=te;N.prototype.delete=ee;N.prototype.get=re;N.prototype.has=oe;N.prototype.set=ae;var lt=N;function nf(){this.__data__=[],this.size=0}var fe=nf;function sf(t,e){var r=t.length;while(r--)if(ra(t[r][0],e))return r;return-1}var O=sf;var pf=Array.prototype,uf=pf.splice;function mf(t){var e=this.__data__,r=O(e,t);if(r<0)return!1;var o=e.length-1;if(r==o)e.pop();else uf.call(e,r,1);return--this.size,!0}var ie=mf;function lf(t){var e=this.__data__,r=O(e,t);return r<0?void 0:e[r][1]}var ne=lf;function df(t){return O(this.__data__,t)>-1}var se=df;function xf(t,e){var r=this.__data__,o=O(r,t);if(o<0)++this.size,r.push([t,e]);else r[o][1]=e;return this}var pe=xf;function D(t){var e=-1,r=t==null?0:t.length;this.clear();while(++e<r){var o=t[e];this.set(o[0],o[1])}}D.prototype.clear=fe;D.prototype.delete=ie;D.prototype.get=ne;D.prototype.has=se;D.prototype.set=pe;var A=D;var hf=x(Rt,"Map"),T=hf;function cf(){this.size=0,this.__data__={hash:new lt,map:new(T||A),string:new lt}}var ue=cf;function gf(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}var me=gf;function yf(t,e){var r=t.__data__;return me(e)?r[typeof e=="string"?"string":"hash"]:r.map}var w=yf;function _f(t){var e=w(this,t).delete(t);return this.size-=e?1:0,e}var le=_f;function bf(t){return w(this,t).get(t)}var de=bf;function vf(t){return w(this,t).has(t)}var xe=vf;function Of(t,e){var r=w(this,t),o=r.size;return r.set(t,e),this.size+=r.size==o?0:1,this}var he=Of;function R(t){var e=-1,r=t==null?0:t.length;this.clear();while(++e<r){var o=t[e];this.set(o[0],o[1])}}R.prototype.clear=ue;R.prototype.delete=le;R.prototype.get=de;R.prototype.has=xe;R.prototype.set=he;var E=R;var Af="Expected a function";function dt(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw TypeError(Af);var r=function(){var o=arguments,a=e?e.apply(this,o):o[0],f=r.cache;if(f.has(a))return f.get(a);var i=t.apply(this,o);return r.cache=f.set(a,i)||f,i};return r.cache=new(dt.Cache||E),r}dt.Cache=E;var ce=dt;var Tf=500;function wf(t){var e=ce(t,function(o){if(r.size===Tf)r.clear();return o}),r=e.cache;return e}var ge=wf;var Sf=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Pf=/\\(\\)?/g,Cf=ge(function(t){var e=[];if(t.charCodeAt(0)===46)e.push("");return t.replace(Sf,function(r,o,a,f){e.push(a?f.replace(Pf,"$1"):o||r)}),e}),ye=Cf;function Ef(t){return t==null?"":St(t)}var Ed=Ef;function If(t,e){if(ve(t))return t;return M(t,e)?[t]:ye(Ed(t))}var xo=If;var Lf=1/0;function jf(t){if(typeof t=="string"||Tr(t))return t;var e=t+"";return e=="0"&&1/t==-Lf?"-0":e}var Za=jf;function Mf(t,e){e=xo(e,t);var r=0,o=e.length;while(t!=null&&r<o)t=t[Za(e[r++])];return r&&r==o?t:void 0}var wo=Mf;function Nf(t,e,r){var o=t==null?void 0:wo(t,e);return o===void 0?r:o}var _e=Nf;function Df(t,e){var r=-1,o=e.length,a=t.length;while(++r<o)t[a+r]=e[r];return t}var bl=Df;var be=pn?pn.isConcatSpreadable:void 0;function Rf(t){return ve(t)||Qa(t)||!!(be&&t&&t[be])}var Ae=Rf;function Te(t,e,r,o,a){var f=-1,i=t.length;r||(r=Ae),a||(a=[]);while(++f<i){var n=t[f];if(e>0&&r(n))if(e>1)Te(n,e-1,r,o,a);else bl(a,n);else if(!o)a[a.length]=n}return a}var yl=Te;function Ff(t,e,r,o){var a=-1,f=t==null?0:t.length;if(o&&f)r=t[++a];while(++a<f)r=e(r,t[a],a,t);return r}var we=Ff;function Bf(){this.__data__=new A,this.size=0}var Se=Bf;function Gf(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}var Pe=Gf;function Uf(t){return this.__data__.get(t)}var Ce=Uf;function zf(t){return this.__data__.has(t)}var Ee=zf;var Wf=200;function Kf(t,e){var r=this.__data__;if(r instanceof A){var o=r.__data__;if(!T||o.length<Wf-1)return o.push([t,e]),this.size=++r.size,this;r=this.__data__=new E(o)}return r.set(t,e),this.size=r.size,this}var Ie=Kf;function F(t){var e=this.__data__=new A(t);this.size=e.size}F.prototype.clear=Se;F.prototype.delete=Pe;F.prototype.get=Ce;F.prototype.has=Ee;F.prototype.set=Ie;var Xa=F;function Hf(t,e){var r=-1,o=t==null?0:t.length,a=0,f=[];while(++r<o){var i=t[r];if(e(i,r,t))f[a++]=i}return f}var Q=Hf;function qf(){return[]}var Bd=qf;var $f=Object.prototype,kf=$f.propertyIsEnumerable,Le=Object.getOwnPropertySymbols,Yf=!Le?Bd:function(t){if(t==null)return[];return t=Object(t),Q(Le(t),function(e){return kf.call(t,e)})},vl=Yf;function Xf(t,e,r){var o=e(t);return ve(t)?o:bl(o,r(t))}var Id=Xf;function Zf(t){return Id(t,Ft,vl)}var mu=Zf;var Jf=x(Rt,"DataView"),V=Jf;var Qf=x(Rt,"Promise"),tt=Qf;var Vf=x(Rt,"Set"),S=Vf;var je="[object Map]",ti="[object Object]",Me="[object Promise]",Ne="[object Set]",De="[object WeakMap]",Re="[object DataView]",ri=y(V),oi=y(T),ai=y(tt),fi=y(S),ii=y(k),I=Xn;if(V&&I(new V(new ArrayBuffer(1)))!=Re||T&&I(new T)!=je||tt&&I(tt.resolve())!=Me||S&&I(new S)!=Ne||k&&I(new k)!=De)I=function(t){var e=Xn(t),r=e==ti?t.constructor:void 0,o=r?y(r):"";if(o)switch(o){case ri:return Re;case oi:return je;case ai:return Me;case fi:return Ne;case ii:return De}return e};var Dr=I;var ni=Rt.Uint8Array,kl=ni;var si="__lodash_hash_undefined__";function pi(t){return this.__data__.set(t,si),this}var Fe=pi;function ui(t){return this.__data__.has(t)}var Be=ui;function et(t){var e=-1,r=t==null?0:t.length;this.__data__=new E;while(++e<r)this.add(t[e])}et.prototype.add=et.prototype.push=Fe;et.prototype.has=Be;var rt=et;function mi(t,e){var r=-1,o=t==null?0:t.length;while(++r<o)if(e(t[r],r,t))return!0;return!1}var Ge=mi;function li(t,e){return t.has(e)}var ot=li;var di=1,xi=2;function hi(t,e,r,o,a,f){var i=r&di,n=t.length,s=e.length;if(n!=s&&!(i&&s>n))return!1;var p=f.get(t),d=f.get(e);if(p&&d)return p==e&&d==t;var l=-1,m=!0,g=r&xi?new rt:void 0;f.set(t,e),f.set(e,t);while(++l<n){var h=t[l],c=e[l];if(o)var b=i?o(c,h,l,e,t,f):o(h,c,l,t,e,f);if(b!==void 0){if(b)continue;m=!1;break}if(g){if(!Ge(e,function(P,C){if(!ot(g,C)&&(h===P||a(h,P,r,o,f)))return g.push(C)})){m=!1;break}}else if(!(h===c||a(h,c,r,o,f))){m=!1;break}}return f.delete(t),f.delete(e),m}var at=hi;function ci(t){var e=-1,r=Array(t.size);return t.forEach(function(o,a){r[++e]=[a,o]}),r}var Ue=ci;function gi(t){var e=-1,r=Array(t.size);return t.forEach(function(o){r[++e]=o}),r}var B=gi;var yi=1,_i=2,bi="[object Boolean]",vi="[object Date]",Oi="[object Error]",Ai="[object Map]",Ti="[object Number]",wi="[object RegExp]",Si="[object Set]",Pi="[object String]",Ci="[object Symbol]",Ei="[object ArrayBuffer]",Ii="[object DataView]",ze=pn?pn.prototype:void 0,xt=ze?ze.valueOf:void 0;function Li(t,e,r,o,a,f,i){switch(r){case Ii:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case Ei:if(t.byteLength!=e.byteLength||!f(new kl(t),new kl(e)))return!1;return!0;case bi:case vi:case Ti:return ra(+t,+e);case Oi:return t.name==e.name&&t.message==e.message;case wi:case Pi:return t==e+"";case Ai:var n=Ue;case Si:var s=o&yi;if(n||(n=B),t.size!=e.size&&!s)return!1;var p=i.get(t);if(p)return p==e;o|=_i,i.set(t,e);var d=at(n(t),n(e),o,a,f,i);return i.delete(t),d;case Ci:if(xt)return xt.call(t)==xt.call(e)}return!1}var We=Li;var ji=1,Mi=Object.prototype,Ni=Mi.hasOwnProperty;function Di(t,e,r,o,a,f){var i=r&ji,n=mu(t),s=n.length,p=mu(e),d=p.length;if(s!=d&&!i)return!1;var l=s;while(l--){var m=n[l];if(!(i?m in e:Ni.call(e,m)))return!1}var g=f.get(t),h=f.get(e);if(g&&h)return g==e&&h==t;var c=!0;f.set(t,e),f.set(e,t);var b=i;while(++l<s){m=n[l];var P=t[m],C=e[m];if(o)var gt=i?o(C,P,m,e,t,f):o(P,C,m,t,e,f);if(!(gt===void 0?P===C||a(P,C,r,o,f):gt)){c=!1;break}b||(b=m=="constructor")}if(c&&!b){var W=t.constructor,K=e.constructor;if(W!=K&&(("constructor"in t)&&("constructor"in e))&&!(typeof W=="function"&&W instanceof W&&typeof K=="function"&&K instanceof K))c=!1}return f.delete(t),f.delete(e),c}var Ke=Di;var Ri=1,He="[object Arguments]",qe="[object Array]",ft="[object Object]",Fi=Object.prototype,$e=Fi.hasOwnProperty;function Bi(t,e,r,o,a,f){var i=ve(t),n=ve(e),s=i?qe:Dr(t),p=n?qe:Dr(e);s=s==He?ft:s,p=p==He?ft:p;var d=s==ft,l=p==ft,m=s==p;if(m&&aa(t)){if(!aa(e))return!1;i=!0,d=!1}if(m&&!d)return f||(f=new Xa),i||ko(t)?at(t,e,r,o,a,f):We(t,e,s,r,o,a,f);if(!(r&Ri)){var g=d&&$e.call(t,"__wrapped__"),h=l&&$e.call(e,"__wrapped__");if(g||h){var c=g?t.value():t,b=h?e.value():e;return f||(f=new Xa),a(c,b,r,o,f)}}if(!m)return!1;return f||(f=new Xa),Ke(t,e,r,o,a,f)}var ke=Bi;function Ye(t,e,r,o,a){if(t===e)return!0;if(t==null||e==null||!qt(t)&&!qt(e))return t!==t&&e!==e;return ke(t,e,r,o,Ye,a)}var it=Ye;var Gi=1,Ui=2;function zi(t,e,r,o){var a=r.length,f=a,i=!o;if(t==null)return!f;t=Object(t);while(a--){var n=r[a];if(i&&n[2]?n[1]!==t[n[0]]:!(n[0]in t))return!1}while(++a<f){n=r[a];var s=n[0],p=t[s],d=n[1];if(i&&n[2]){if(p===void 0&&!(s in t))return!1}else{var l=new Xa;if(o)var m=o(p,d,s,t,e,l);if(!(m===void 0?it(d,p,Gi|Ui,o,l):m))return!1}}return!0}var Xe=zi;function Wi(t){return t===t&&!vt(t)}var nt=Wi;function Ki(t){var e=Ft(t),r=e.length;while(r--){var o=e[r],a=t[o];e[r]=[o,a,nt(a)]}return e}var Ze=Ki;function Hi(t,e){return function(r){if(r==null)return!1;return r[t]===e&&(e!==void 0||(t in Object(r)))}}var st=Hi;function qi(t){var e=Ze(t);if(e.length==1&&e[0][2])return st(e[0][0],e[0][1]);return function(r){return r===t||Xe(r,t,e)}}var Je=qi;function $i(t,e){return t!=null&&e in Object(t)}var Qe=$i;function ki(t,e,r){e=xo(e,t);var o=-1,a=e.length,f=!1;while(++o<a){var i=Za(e[o]);if(!(f=t!=null&&r(t,i)))break;t=t[i]}if(f||++o!=a)return f;return a=t==null?0:t.length,!!a&&j(a)&&ho(i,a)&&(ve(t)||Qa(t))}var _d=ki;function Yi(t,e){return t!=null&&_d(t,e,Qe)}var Sd=Yi;var Xi=1,Zi=2;function Ji(t,e){if(M(t)&&nt(e))return st(Za(t),e);return function(r){var o=_e(r,t);return o===void 0&&o===e?Sd(r,t):it(e,o,Xi|Zi)}}var Ve=Ji;function Qi(t){return function(e){return e==null?void 0:e[t]}}var Td=Qi;function Vi(t){return function(e){return wo(e,t)}}var tr=Vi;function tn(t){return M(t)?Td(Za(t)):tr(t)}var rr=tn;function en(t){if(typeof t=="function")return t;if(t==null)return pr;if(typeof t=="object")return ve(t)?Ve(t[0],t[1]):Je(t);return rr(t)}var Pn=en;function rn(t){return function(e,r,o){var a=-1,f=Object(e),i=o(e),n=i.length;while(n--){var s=i[t?n:++a];if(r(f[s],s,f)===!1)break}return e}}var or=rn;var on=or(),xl=on;function an(t,e){return t&&xl(t,e,Ft)}var wl=an;function fn(t,e){return function(r,o){if(r==null)return r;if(!mn(r))return t(r,o);var a=r.length,f=e?a:-1,i=Object(r);while(e?f--:++f<a)if(o(i[f],f,i)===!1)break;return r}}var ar=fn;var nn=ar(wl),Co=nn;function sn(t){return qt(t)&&mn(t)}var Dd=sn;function un(t,e,r){var o=-1,a=t==null?0:t.length;while(++o<a)if(r(e,t[o]))return!0;return!1}var fr=un;function ln(t){return typeof t=="function"?t:pr}var Cl=ln;function xn(t,e){var r=ve(t)?vd:Co;return r(t,Cl(e))}var v=xn;function hn(t,e){var r=[];return Co(t,function(o,a,f){if(e(o,a,f))r.push(o)}),r}var ir=hn;function cn(t,e){var r=ve(t)?Q:ir;return r(t,Pn(e,3))}var er=cn;function gn(t,e){return Va(e,function(r){return t[r]})}var nr=gn;function yn(t){return t==null?[]:nr(t,Ft(t))}var Qr=yn;var _n="[object Map]",bn="[object Set]",vn=Object.prototype,On=vn.hasOwnProperty;function An(t){if(t==null)return!0;if(mn(t)&&(ve(t)||typeof t=="string"||typeof t.splice=="function"||aa(t)||ko(t)||Qa(t)))return!t.length;var e=Dr(t);if(e==_n||e==bn)return!t.size;if(yo(t))return!hl(t).length;for(var r in t)if(On.call(t,r))return!1;return!0}var pt=An;function Tn(t){return t===void 0}var Lt=Tn;function wn(t,e,r,o,a){return a(t,function(f,i,n){r=o?(o=!1,f):e(r,f,i,n)}),r}var sr=wn;function Sn(t,e,r){var o=ve(t)?we:sr,a=arguments.length<3;return o(t,Pn(e,4),r,a,Co)}var ei=Sn;var Cn=1/0,En=!(S&&1/B(new S([,-0]))[1]==Cn)?Mt:function(t){return new S(t)},ur=En;var In=200;function Ln(t,e,r){var o=-1,a=zt,f=t.length,i=!0,n=[],s=n;if(r)i=!1,a=fr;else if(f>=In){var p=e?null:ur(t);if(p)return B(p);i=!1,a=ot,s=new rt}else s=e?[]:n;t:while(++o<f){var d=t[o],l=e?e(d):d;if(d=r||d!==0?d:0,i&&l===l){var m=s.length;while(m--)if(s[m]===l)continue t;if(e)s.push(l);n.push(d)}else if(!a(s,l,r)){if(s!==n)s.push(l);n.push(d)}}return n}var lr=Ln;var jn=bo(function(t){return lr(yl(t,1,Dd,!0))}),ht=jn;var Nn="\x00",L="\x00",dr="\x01";class Oe{constructor(t={}){if(this._isDirected=Object.prototype.hasOwnProperty.call(t,"directed")?t.directed:!0,this._isMultigraph=Object.prototype.hasOwnProperty.call(t,"multigraph")?t.multigraph:!1,this._isCompound=Object.prototype.hasOwnProperty.call(t,"compound")?t.compound:!1,this._label=void 0,this._defaultNodeLabelFn=mr(void 0),this._defaultEdgeLabelFn=mr(void 0),this._nodes={},this._isCompound)this._parent={},this._children={},this._children[L]={};this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}isDirected(){return this._isDirected}isMultigraph(){return this._isMultigraph}isCompound(){return this._isCompound}setGraph(t){return this._label=t,this}graph(){return this._label}setDefaultNodeLabel(t){if(!Ya(t))t=mr(t);return this._defaultNodeLabelFn=t,this}nodeCount(){return this._nodeCount}nodes(){return Ft(this._nodes)}sources(){var t=this;return er(this.nodes(),function(e){return pt(t._in[e])})}sinks(){var t=this;return er(this.nodes(),function(e){return pt(t._out[e])})}setNodes(t,e){var r=arguments,o=this;return v(t,function(a){if(r.length>1)o.setNode(a,e);else o.setNode(a)}),this}setNode(t,e){if(Object.prototype.hasOwnProperty.call(this._nodes,t)){if(arguments.length>1)this._nodes[t]=e;return this}if(this._nodes[t]=arguments.length>1?e:this._defaultNodeLabelFn(t),this._isCompound)this._parent[t]=L,this._children[t]={},this._children[L][t]=!0;return this._in[t]={},this._preds[t]={},this._out[t]={},this._sucs[t]={},++this._nodeCount,this}node(t){return this._nodes[t]}hasNode(t){return Object.prototype.hasOwnProperty.call(this._nodes,t)}removeNode(t){if(Object.prototype.hasOwnProperty.call(this._nodes,t)){var e=(r)=>this.removeEdge(this._edgeObjs[r]);if(delete this._nodes[t],this._isCompound)this._removeFromParentsChildList(t),delete this._parent[t],v(this.children(t),(r)=>{this.setParent(r)}),delete this._children[t];v(Ft(this._in[t]),e),delete this._in[t],delete this._preds[t],v(Ft(this._out[t]),e),delete this._out[t],delete this._sucs[t],--this._nodeCount}return this}setParent(t,e){if(!this._isCompound)throw Error("Cannot set parent in a non-compound graph");if(Lt(e))e=L;else{e+="";for(var r=e;!Lt(r);r=this.parent(r))if(r===t)throw Error("Setting "+e+" as parent of "+t+" would create a cycle");this.setNode(e)}return this.setNode(t),this._removeFromParentsChildList(t),this._parent[t]=e,this._children[e][t]=!0,this}_removeFromParentsChildList(t){delete this._children[this._parent[t]][t]}parent(t){if(this._isCompound){var e=this._parent[t];if(e!==L)return e}}children(t){if(Lt(t))t=L;if(this._isCompound){var e=this._children[t];if(e)return Ft(e)}else if(t===L)return this.nodes();else if(this.hasNode(t))return[]}predecessors(t){var e=this._preds[t];if(e)return Ft(e)}successors(t){var e=this._sucs[t];if(e)return Ft(e)}neighbors(t){var e=this.predecessors(t);if(e)return ht(e,this.successors(t))}isLeaf(t){var e;if(this.isDirected())e=this.successors(t);else e=this.neighbors(t);return e.length===0}filterNodes(t){var e=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});e.setGraph(this.graph());var r=this;v(this._nodes,function(f,i){if(t(i))e.setNode(i,f)}),v(this._edgeObjs,function(f){if(e.hasNode(f.v)&&e.hasNode(f.w))e.setEdge(f,r.edge(f))});var o={};function a(f){var i=r.parent(f);if(i===void 0||e.hasNode(i))return o[f]=i,i;else if(i in o)return o[i];else return a(i)}if(this._isCompound)v(e.nodes(),function(f){e.setParent(f,a(f))});return e}setDefaultEdgeLabel(t){if(!Ya(t))t=mr(t);return this._defaultEdgeLabelFn=t,this}edgeCount(){return this._edgeCount}edges(){return Qr(this._edgeObjs)}setPath(t,e){var r=this,o=arguments;return ei(t,function(a,f){if(o.length>1)r.setEdge(a,f,e);else r.setEdge(a,f);return f}),this}setEdge(){var t,e,r,o,a=!1,f=arguments[0];if(typeof f==="object"&&f!==null&&"v"in f){if(t=f.v,e=f.w,r=f.name,arguments.length===2)o=arguments[1],a=!0}else if(t=f,e=arguments[1],r=arguments[3],arguments.length>2)o=arguments[2],a=!0;if(t=""+t,e=""+e,!Lt(r))r=""+r;var i=z(this._isDirected,t,e,r);if(Object.prototype.hasOwnProperty.call(this._edgeLabels,i)){if(a)this._edgeLabels[i]=o;return this}if(!Lt(r)&&!this._isMultigraph)throw Error("Cannot set a named edge when isMultigraph = false");this.setNode(t),this.setNode(e),this._edgeLabels[i]=a?o:this._defaultEdgeLabelFn(t,e,r);var n=Dn(this._isDirected,t,e,r);return t=n.v,e=n.w,Object.freeze(n),this._edgeObjs[i]=n,xr(this._preds[e],t),xr(this._sucs[t],e),this._in[e][i]=n,this._out[t][i]=n,this._edgeCount++,this}edge(t,e,r){var o=arguments.length===1?ct(this._isDirected,arguments[0]):z(this._isDirected,t,e,r);return this._edgeLabels[o]}hasEdge(t,e,r){var o=arguments.length===1?ct(this._isDirected,arguments[0]):z(this._isDirected,t,e,r);return Object.prototype.hasOwnProperty.call(this._edgeLabels,o)}removeEdge(t,e,r){var o=arguments.length===1?ct(this._isDirected,arguments[0]):z(this._isDirected,t,e,r),a=this._edgeObjs[o];if(a)t=a.v,e=a.w,delete this._edgeLabels[o],delete this._edgeObjs[o],hr(this._preds[e],t),hr(this._sucs[t],e),delete this._in[e][o],delete this._out[t][o],this._edgeCount--;return this}inEdges(t,e){var r=this._in[t];if(r){var o=Qr(r);if(!e)return o;return er(o,function(a){return a.v===e})}}outEdges(t,e){var r=this._out[t];if(r){var o=Qr(r);if(!e)return o;return er(o,function(a){return a.w===e})}}nodeEdges(t,e){var r=this.inEdges(t,e);if(r)return r.concat(this.outEdges(t,e))}}Oe.prototype._nodeCount=0;Oe.prototype._edgeCount=0;function xr(t,e){if(t[e])t[e]++;else t[e]=1}function hr(t,e){if(!--t[e])delete t[e]}function z(t,e,r,o){var a=""+e,f=""+r;if(!t&&a>f){var i=a;a=f,f=i}return a+dr+f+dr+(Lt(o)?Nn:o)}function Dn(t,e,r,o){var a=""+e,f=""+r;if(!t&&a>f){var i=a;a=f,f=i}var n={v:a,w:f};if(o)n.name=o;return n}function ct(t,e){return z(t,e.v,e.w,e.name)}
|
|
2
|
-
export{Rt,
|
|
1
|
+
import{pn}from"./index-zp73zexp.js";var X={};pn(X,{default:()=>aa});var J={};pn(J,{default:()=>Ja});var cr=typeof global=="object"&&global&&global.Object===Object&&global,H=cr;var gr=typeof self=="object"&&self&&self.Object===Object&&self,yr=H||gr||Function("return this")(),Rt=yr;var _r=Rt.Symbol,mn=_r;var yt=Object.prototype,{hasOwnProperty:br,toString:vr}=yt,G=mn?mn.toStringTag:void 0;function Or(t){var e=br.call(t,G),r=t[G];try{t[G]=void 0;var o=!0}catch(f){}var a=vr.call(t);if(o)if(e)t[G]=r;else delete t[G];return a}var _t=Or;var Ar=Object.prototype,wr=Ar.toString;function Sr(t){return wr.call(t)}var bt=Sr;var Pr="[object Null]",Cr="[object Undefined]",Ot=mn?mn.toStringTag:void 0;function Er(t){if(t==null)return t===void 0?Cr:Pr;return Ot&&Ot in Object(t)?_t(t):bt(t)}var Xn=Er;function Ir(t){return t!=null&&typeof t=="object"}var qt=Ir;var Lr="[object Symbol]";function jr(t){return typeof t=="symbol"||qt(t)&&Xn(t)==Lr}var Tr=jr;function Mr(t,e){var r=-1,o=t==null?0:t.length,a=Array(o);while(++r<o)a[r]=e(t[r],r,t);return a}var Va=Mr;var Nr=Array.isArray,ve=Nr;var Rr=1/0,At=mn?mn.prototype:void 0,Tt=At?At.toString:void 0;function wt(t){if(typeof t=="string")return t;if(ve(t))return Va(t,wt)+"";if(Tr(t))return Tt?Tt.call(t):"";var e=t+"";return e=="0"&&1/t==-Rr?"-0":e}var St=wt;function Fr(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var vt=Fr;function Br(t){return t}var pr=Br;var Gr="[object AsyncFunction]",Ur="[object Function]",zr="[object GeneratorFunction]",Wr="[object Proxy]";function Kr(t){if(!vt(t))return!1;var e=Xn(t);return e==Ur||e==zr||e==Gr||e==Wr}var Ya=Kr;var Hr=Rt["__core-js_shared__"],q=Hr;var Pt=function(){var t=/[^.]+$/.exec(q&&q.keys&&q.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function qr(t){return!!Pt&&Pt in t}var Ct=qr;var $r=Function.prototype,kr=$r.toString;function Yr(t){if(t!=null){try{return kr.call(t)}catch(e){}try{return t+""}catch(e){}}return""}var y=Yr;var Xr=/[\\^$.*+?()[\]{}|]/g,Zr=/^\[object .+?Constructor\]$/,Jr=Function.prototype,Vr=Object.prototype,to=Jr.toString,eo=Vr.hasOwnProperty,ro=RegExp("^"+to.call(eo).replace(Xr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function oo(t){if(!vt(t)||Ct(t))return!1;var e=Ya(t)?ro:Zr;return e.test(y(t))}var Et=oo;function ao(t,e){return t==null?void 0:t[e]}var It=ao;function fo(t,e){var r=It(t,e);return Et(r)?r:void 0}var x=fo;var io=x(Rt,"WeakMap"),k=io;function no(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}var jt=no;function so(){}var Mt=so;var po=800,uo=16,mo=Date.now;function lo(t){var e=0,r=0;return function(){var o=mo(),a=uo-(o-r);if(r=o,a>0){if(++e>=po)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var Nt=lo;function co(t){return function(){return t}}var mr=co;var go=function(){try{var t=x(Object,"defineProperty");return t({},"",{}),t}catch(e){}}(),gl=go;var _o=!gl?pr:function(t,e){return gl(t,"toString",{configurable:!0,enumerable:!1,value:mr(e),writable:!0})},Dt=_o;var Oo=Nt(Dt),yd=Oo;function Ao(t,e){var r=-1,o=t==null?0:t.length;while(++r<o)if(e(t[r],r,t)===!1)break;return t}var vd=Ao;function To(t,e,r,o){var a=t.length,f=r+(o?1:-1);while(o?f--:++f<a)if(e(t[f],f,t))return f;return-1}var kd=To;function So(t){return t!==t}var Bt=So;function Po(t,e,r){var o=r-1,a=t.length;while(++o<a)if(t[o]===e)return o;return-1}var Gt=Po;function Eo(t,e,r){return e===e?Gt(t,e,r):kd(t,Bt,r)}var Ut=Eo;function Io(t,e){var r=t==null?0:t.length;return!!r&&Ut(t,e,0)>-1}var zt=Io;var Lo=9007199254740991,jo=/^(?:0|[1-9]\d*)$/;function Mo(t,e){var r=typeof t;return e=e==null?Lo:e,!!e&&(r=="number"||r!="symbol"&&jo.test(t))&&(t>-1&&t%1==0&&t<e)}var ho=Mo;function No(t,e){return t===e||t!==t&&e!==e}var ra=No;var Wt=Math.max;function Do(t,e,r){return e=Wt(e===void 0?t.length-1:e,0),function(){var o=arguments,a=-1,f=Wt(o.length-e,0),i=Array(f);while(++a<f)i[a]=o[e+a];a=-1;var n=Array(e+1);while(++a<e)n[a]=o[a];return n[e]=r(i),jt(t,this,n)}}var xd=Do;function Ro(t,e){return yd(xd(t,e,pr),t+"")}var bo=Ro;var Fo=9007199254740991;function Bo(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=Fo}var j=Bo;function Go(t){return t!=null&&j(t.length)&&!Ya(t)}var fn=Go;var Uo=Object.prototype;function zo(t){var e=t&&t.constructor,r=typeof e=="function"&&e.prototype||Uo;return t===r}var yo=zo;function Wo(t,e){var r=-1,o=Array(t);while(++r<t)o[r]=e(r);return o}var Kt=Wo;var Ko="[object Arguments]";function Ho(t){return qt(t)&&Xn(t)==Ko}var ut=Ho;var Ht=Object.prototype,{hasOwnProperty:qo,propertyIsEnumerable:$o}=Ht,Yo=ut(function(){return arguments}())?ut:function(t){return qt(t)&&qo.call(t,"callee")&&!$o.call(t,"callee")},Qa=Yo;function Xo(){return!1}var $t=Xo;var Xt=typeof X=="object"&&X&&!X.nodeType&&X,kt=Xt&&typeof Y=="object"&&Y&&!Y.nodeType&&Y,Zo=kt&&kt.exports===Xt,Yt=Zo?Rt.Buffer:void 0,Jo=Yt?Yt.isBuffer:void 0,Qo=Jo||$t,aa=Qo;var Vo="[object Arguments]",ta="[object Array]",ea="[object Boolean]",oa="[object Date]",fa="[object Error]",ia="[object Function]",na="[object Map]",sa="[object Number]",pa="[object Object]",ua="[object RegExp]",ma="[object Set]",la="[object String]",da="[object WeakMap]",xa="[object ArrayBuffer]",ha="[object DataView]",ca="[object Float32Array]",ga="[object Float64Array]",ya="[object Int8Array]",_a="[object Int16Array]",ba="[object Int32Array]",va="[object Uint8Array]",Oa="[object Uint8ClampedArray]",Aa="[object Uint16Array]",Ta="[object Uint32Array]",u={};u[ca]=u[ga]=u[ya]=u[_a]=u[ba]=u[va]=u[Oa]=u[Aa]=u[Ta]=!0;u[Vo]=u[ta]=u[xa]=u[ea]=u[ha]=u[oa]=u[fa]=u[ia]=u[na]=u[sa]=u[pa]=u[ua]=u[ma]=u[la]=u[da]=!1;function wa(t){return qt(t)&&j(t.length)&&!!u[Xn(t)]}var Zt=wa;function Sa(t){return function(e){return t(e)}}var vo=Sa;var Jt=typeof J=="object"&&J&&!J.nodeType&&J,U=Jt&&typeof Z=="object"&&Z&&!Z.nodeType&&Z,Pa=U&&U.exports===Jt,mt=Pa&&H.process,Ca=function(){try{var t=U&&U.require&&U.require("util").types;if(t)return t;return mt&&mt.binding&&mt.binding("util")}catch(e){}}(),Ja=Ca;var Qt=Ja&&Ja.isTypedArray,Ea=Qt?vo(Qt):Zt,ko=Ea;var Ia=Object.prototype,La=Ia.hasOwnProperty;function ja(t,e){var r=ve(t),o=!r&&Qa(t),a=!r&&!o&&aa(t),f=!r&&!o&&!a&&ko(t),i=r||o||a||f,n=i?Kt(t.length,String):[],s=n.length;for(var p in t)if((e||La.call(t,p))&&!(i&&(p=="length"||a&&(p=="offset"||p=="parent")||f&&(p=="buffer"||p=="byteLength"||p=="byteOffset")||ho(p,s))))n.push(p);return n}var wd=ja;function Ma(t,e){return function(r){return t(e(r))}}var Cd=Ma;var Na=Cd(Object.keys,Object),Vt=Na;var Da=Object.prototype,Ra=Da.hasOwnProperty;function Fa(t){if(!yo(t))return Vt(t);var e=[];for(var r in Object(t))if(Ra.call(t,r)&&r!="constructor")e.push(r);return e}var hl=Fa;function Ba(t){return fn(t)?wd(t):hl(t)}var Ft=Ba;var Ga=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ua=/^\w*$/;function za(t,e){if(ve(t))return!1;var r=typeof t;if(r=="number"||r=="symbol"||r=="boolean"||t==null||Tr(t))return!0;return Ua.test(t)||!Ga.test(t)||e!=null&&t in Object(e)}var M=za;var Wa=x(Object,"create"),_=Wa;function Ka(){this.__data__=_?_(null):{},this.size=0}var te=Ka;function Ha(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var ee=Ha;var qa="__lodash_hash_undefined__",$a=Object.prototype,ka=$a.hasOwnProperty;function tf(t){var e=this.__data__;if(_){var r=e[t];return r===qa?void 0:r}return ka.call(e,t)?e[t]:void 0}var re=tf;var ef=Object.prototype,rf=ef.hasOwnProperty;function of(t){var e=this.__data__;return _?e[t]!==void 0:rf.call(e,t)}var oe=of;var af="__lodash_hash_undefined__";function ff(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=_&&e===void 0?af:e,this}var ae=ff;function N(t){var e=-1,r=t==null?0:t.length;this.clear();while(++e<r){var o=t[e];this.set(o[0],o[1])}}N.prototype.clear=te;N.prototype.delete=ee;N.prototype.get=re;N.prototype.has=oe;N.prototype.set=ae;var lt=N;function nf(){this.__data__=[],this.size=0}var fe=nf;function sf(t,e){var r=t.length;while(r--)if(ra(t[r][0],e))return r;return-1}var O=sf;var pf=Array.prototype,uf=pf.splice;function mf(t){var e=this.__data__,r=O(e,t);if(r<0)return!1;var o=e.length-1;if(r==o)e.pop();else uf.call(e,r,1);return--this.size,!0}var ie=mf;function lf(t){var e=this.__data__,r=O(e,t);return r<0?void 0:e[r][1]}var ne=lf;function df(t){return O(this.__data__,t)>-1}var se=df;function xf(t,e){var r=this.__data__,o=O(r,t);if(o<0)++this.size,r.push([t,e]);else r[o][1]=e;return this}var pe=xf;function D(t){var e=-1,r=t==null?0:t.length;this.clear();while(++e<r){var o=t[e];this.set(o[0],o[1])}}D.prototype.clear=fe;D.prototype.delete=ie;D.prototype.get=ne;D.prototype.has=se;D.prototype.set=pe;var A=D;var hf=x(Rt,"Map"),T=hf;function cf(){this.size=0,this.__data__={hash:new lt,map:new(T||A),string:new lt}}var ue=cf;function gf(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}var me=gf;function yf(t,e){var r=t.__data__;return me(e)?r[typeof e=="string"?"string":"hash"]:r.map}var w=yf;function _f(t){var e=w(this,t).delete(t);return this.size-=e?1:0,e}var le=_f;function bf(t){return w(this,t).get(t)}var de=bf;function vf(t){return w(this,t).has(t)}var xe=vf;function Of(t,e){var r=w(this,t),o=r.size;return r.set(t,e),this.size+=r.size==o?0:1,this}var he=Of;function R(t){var e=-1,r=t==null?0:t.length;this.clear();while(++e<r){var o=t[e];this.set(o[0],o[1])}}R.prototype.clear=ue;R.prototype.delete=le;R.prototype.get=de;R.prototype.has=xe;R.prototype.set=he;var E=R;var Af="Expected a function";function dt(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw TypeError(Af);var r=function(){var o=arguments,a=e?e.apply(this,o):o[0],f=r.cache;if(f.has(a))return f.get(a);var i=t.apply(this,o);return r.cache=f.set(a,i)||f,i};return r.cache=new(dt.Cache||E),r}dt.Cache=E;var ce=dt;var Tf=500;function wf(t){var e=ce(t,function(o){if(r.size===Tf)r.clear();return o}),r=e.cache;return e}var ge=wf;var Sf=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Pf=/\\(\\)?/g,Cf=ge(function(t){var e=[];if(t.charCodeAt(0)===46)e.push("");return t.replace(Sf,function(r,o,a,f){e.push(a?f.replace(Pf,"$1"):o||r)}),e}),ye=Cf;function Ef(t){return t==null?"":St(t)}var Ed=Ef;function If(t,e){if(ve(t))return t;return M(t,e)?[t]:ye(Ed(t))}var xo=If;var Lf=1/0;function jf(t){if(typeof t=="string"||Tr(t))return t;var e=t+"";return e=="0"&&1/t==-Lf?"-0":e}var Za=jf;function Mf(t,e){e=xo(e,t);var r=0,o=e.length;while(t!=null&&r<o)t=t[Za(e[r++])];return r&&r==o?t:void 0}var wo=Mf;function Nf(t,e,r){var o=t==null?void 0:wo(t,e);return o===void 0?r:o}var _e=Nf;function Df(t,e){var r=-1,o=e.length,a=t.length;while(++r<o)t[a+r]=e[r];return t}var bl=Df;var be=mn?mn.isConcatSpreadable:void 0;function Rf(t){return ve(t)||Qa(t)||!!(be&&t&&t[be])}var Ae=Rf;function Te(t,e,r,o,a){var f=-1,i=t.length;r||(r=Ae),a||(a=[]);while(++f<i){var n=t[f];if(e>0&&r(n))if(e>1)Te(n,e-1,r,o,a);else bl(a,n);else if(!o)a[a.length]=n}return a}var yl=Te;function Ff(t,e,r,o){var a=-1,f=t==null?0:t.length;if(o&&f)r=t[++a];while(++a<f)r=e(r,t[a],a,t);return r}var we=Ff;function Bf(){this.__data__=new A,this.size=0}var Se=Bf;function Gf(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}var Pe=Gf;function Uf(t){return this.__data__.get(t)}var Ce=Uf;function zf(t){return this.__data__.has(t)}var Ee=zf;var Wf=200;function Kf(t,e){var r=this.__data__;if(r instanceof A){var o=r.__data__;if(!T||o.length<Wf-1)return o.push([t,e]),this.size=++r.size,this;r=this.__data__=new E(o)}return r.set(t,e),this.size=r.size,this}var Ie=Kf;function F(t){var e=this.__data__=new A(t);this.size=e.size}F.prototype.clear=Se;F.prototype.delete=Pe;F.prototype.get=Ce;F.prototype.has=Ee;F.prototype.set=Ie;var Xa=F;function Hf(t,e){var r=-1,o=t==null?0:t.length,a=0,f=[];while(++r<o){var i=t[r];if(e(i,r,t))f[a++]=i}return f}var Q=Hf;function qf(){return[]}var Bd=qf;var $f=Object.prototype,kf=$f.propertyIsEnumerable,Le=Object.getOwnPropertySymbols,Yf=!Le?Bd:function(t){if(t==null)return[];return t=Object(t),Q(Le(t),function(e){return kf.call(t,e)})},vl=Yf;function Xf(t,e,r){var o=e(t);return ve(t)?o:bl(o,r(t))}var Id=Xf;function Zf(t){return Id(t,Ft,vl)}var mu=Zf;var Jf=x(Rt,"DataView"),V=Jf;var Qf=x(Rt,"Promise"),tt=Qf;var Vf=x(Rt,"Set"),S=Vf;var je="[object Map]",ti="[object Object]",Me="[object Promise]",Ne="[object Set]",De="[object WeakMap]",Re="[object DataView]",ri=y(V),oi=y(T),ai=y(tt),fi=y(S),ii=y(k),I=Xn;if(V&&I(new V(new ArrayBuffer(1)))!=Re||T&&I(new T)!=je||tt&&I(tt.resolve())!=Me||S&&I(new S)!=Ne||k&&I(new k)!=De)I=function(t){var e=Xn(t),r=e==ti?t.constructor:void 0,o=r?y(r):"";if(o)switch(o){case ri:return Re;case oi:return je;case ai:return Me;case fi:return Ne;case ii:return De}return e};var Dr=I;var ni=Rt.Uint8Array,kl=ni;var si="__lodash_hash_undefined__";function pi(t){return this.__data__.set(t,si),this}var Fe=pi;function ui(t){return this.__data__.has(t)}var Be=ui;function et(t){var e=-1,r=t==null?0:t.length;this.__data__=new E;while(++e<r)this.add(t[e])}et.prototype.add=et.prototype.push=Fe;et.prototype.has=Be;var rt=et;function mi(t,e){var r=-1,o=t==null?0:t.length;while(++r<o)if(e(t[r],r,t))return!0;return!1}var Ge=mi;function li(t,e){return t.has(e)}var ot=li;var di=1,xi=2;function hi(t,e,r,o,a,f){var i=r&di,n=t.length,s=e.length;if(n!=s&&!(i&&s>n))return!1;var p=f.get(t),d=f.get(e);if(p&&d)return p==e&&d==t;var l=-1,m=!0,g=r&xi?new rt:void 0;f.set(t,e),f.set(e,t);while(++l<n){var h=t[l],c=e[l];if(o)var b=i?o(c,h,l,e,t,f):o(h,c,l,t,e,f);if(b!==void 0){if(b)continue;m=!1;break}if(g){if(!Ge(e,function(P,C){if(!ot(g,C)&&(h===P||a(h,P,r,o,f)))return g.push(C)})){m=!1;break}}else if(!(h===c||a(h,c,r,o,f))){m=!1;break}}return f.delete(t),f.delete(e),m}var at=hi;function ci(t){var e=-1,r=Array(t.size);return t.forEach(function(o,a){r[++e]=[a,o]}),r}var Ue=ci;function gi(t){var e=-1,r=Array(t.size);return t.forEach(function(o){r[++e]=o}),r}var B=gi;var yi=1,_i=2,bi="[object Boolean]",vi="[object Date]",Oi="[object Error]",Ai="[object Map]",Ti="[object Number]",wi="[object RegExp]",Si="[object Set]",Pi="[object String]",Ci="[object Symbol]",Ei="[object ArrayBuffer]",Ii="[object DataView]",ze=mn?mn.prototype:void 0,xt=ze?ze.valueOf:void 0;function Li(t,e,r,o,a,f,i){switch(r){case Ii:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case Ei:if(t.byteLength!=e.byteLength||!f(new kl(t),new kl(e)))return!1;return!0;case bi:case vi:case Ti:return ra(+t,+e);case Oi:return t.name==e.name&&t.message==e.message;case wi:case Pi:return t==e+"";case Ai:var n=Ue;case Si:var s=o&yi;if(n||(n=B),t.size!=e.size&&!s)return!1;var p=i.get(t);if(p)return p==e;o|=_i,i.set(t,e);var d=at(n(t),n(e),o,a,f,i);return i.delete(t),d;case Ci:if(xt)return xt.call(t)==xt.call(e)}return!1}var We=Li;var ji=1,Mi=Object.prototype,Ni=Mi.hasOwnProperty;function Di(t,e,r,o,a,f){var i=r&ji,n=mu(t),s=n.length,p=mu(e),d=p.length;if(s!=d&&!i)return!1;var l=s;while(l--){var m=n[l];if(!(i?m in e:Ni.call(e,m)))return!1}var g=f.get(t),h=f.get(e);if(g&&h)return g==e&&h==t;var c=!0;f.set(t,e),f.set(e,t);var b=i;while(++l<s){m=n[l];var P=t[m],C=e[m];if(o)var gt=i?o(C,P,m,e,t,f):o(P,C,m,t,e,f);if(!(gt===void 0?P===C||a(P,C,r,o,f):gt)){c=!1;break}b||(b=m=="constructor")}if(c&&!b){var W=t.constructor,K=e.constructor;if(W!=K&&(("constructor"in t)&&("constructor"in e))&&!(typeof W=="function"&&W instanceof W&&typeof K=="function"&&K instanceof K))c=!1}return f.delete(t),f.delete(e),c}var Ke=Di;var Ri=1,He="[object Arguments]",qe="[object Array]",ft="[object Object]",Fi=Object.prototype,$e=Fi.hasOwnProperty;function Bi(t,e,r,o,a,f){var i=ve(t),n=ve(e),s=i?qe:Dr(t),p=n?qe:Dr(e);s=s==He?ft:s,p=p==He?ft:p;var d=s==ft,l=p==ft,m=s==p;if(m&&aa(t)){if(!aa(e))return!1;i=!0,d=!1}if(m&&!d)return f||(f=new Xa),i||ko(t)?at(t,e,r,o,a,f):We(t,e,s,r,o,a,f);if(!(r&Ri)){var g=d&&$e.call(t,"__wrapped__"),h=l&&$e.call(e,"__wrapped__");if(g||h){var c=g?t.value():t,b=h?e.value():e;return f||(f=new Xa),a(c,b,r,o,f)}}if(!m)return!1;return f||(f=new Xa),Ke(t,e,r,o,a,f)}var ke=Bi;function Ye(t,e,r,o,a){if(t===e)return!0;if(t==null||e==null||!qt(t)&&!qt(e))return t!==t&&e!==e;return ke(t,e,r,o,Ye,a)}var it=Ye;var Gi=1,Ui=2;function zi(t,e,r,o){var a=r.length,f=a,i=!o;if(t==null)return!f;t=Object(t);while(a--){var n=r[a];if(i&&n[2]?n[1]!==t[n[0]]:!(n[0]in t))return!1}while(++a<f){n=r[a];var s=n[0],p=t[s],d=n[1];if(i&&n[2]){if(p===void 0&&!(s in t))return!1}else{var l=new Xa;if(o)var m=o(p,d,s,t,e,l);if(!(m===void 0?it(d,p,Gi|Ui,o,l):m))return!1}}return!0}var Xe=zi;function Wi(t){return t===t&&!vt(t)}var nt=Wi;function Ki(t){var e=Ft(t),r=e.length;while(r--){var o=e[r],a=t[o];e[r]=[o,a,nt(a)]}return e}var Ze=Ki;function Hi(t,e){return function(r){if(r==null)return!1;return r[t]===e&&(e!==void 0||(t in Object(r)))}}var st=Hi;function qi(t){var e=Ze(t);if(e.length==1&&e[0][2])return st(e[0][0],e[0][1]);return function(r){return r===t||Xe(r,t,e)}}var Je=qi;function $i(t,e){return t!=null&&e in Object(t)}var Qe=$i;function ki(t,e,r){e=xo(e,t);var o=-1,a=e.length,f=!1;while(++o<a){var i=Za(e[o]);if(!(f=t!=null&&r(t,i)))break;t=t[i]}if(f||++o!=a)return f;return a=t==null?0:t.length,!!a&&j(a)&&ho(i,a)&&(ve(t)||Qa(t))}var _d=ki;function Yi(t,e){return t!=null&&_d(t,e,Qe)}var Sd=Yi;var Xi=1,Zi=2;function Ji(t,e){if(M(t)&&nt(e))return st(Za(t),e);return function(r){var o=_e(r,t);return o===void 0&&o===e?Sd(r,t):it(e,o,Xi|Zi)}}var Ve=Ji;function Qi(t){return function(e){return e==null?void 0:e[t]}}var Td=Qi;function Vi(t){return function(e){return wo(e,t)}}var tr=Vi;function tn(t){return M(t)?Td(Za(t)):tr(t)}var rr=tn;function en(t){if(typeof t=="function")return t;if(t==null)return pr;if(typeof t=="object")return ve(t)?Ve(t[0],t[1]):Je(t);return rr(t)}var Pn=en;function rn(t){return function(e,r,o){var a=-1,f=Object(e),i=o(e),n=i.length;while(n--){var s=i[t?n:++a];if(r(f[s],s,f)===!1)break}return e}}var or=rn;var on=or(),xl=on;function an(t,e){return t&&xl(t,e,Ft)}var wl=an;function nn(t,e){return function(r,o){if(r==null)return r;if(!fn(r))return t(r,o);var a=r.length,f=e?a:-1,i=Object(r);while(e?f--:++f<a)if(o(i[f],f,i)===!1)break;return r}}var ar=nn;var sn=ar(wl),Co=sn;function un(t){return qt(t)&&fn(t)}var Dd=un;function ln(t,e,r){var o=-1,a=t==null?0:t.length;while(++o<a)if(r(e,t[o]))return!0;return!1}var fr=ln;function dn(t){return typeof t=="function"?t:pr}var Cl=dn;function xn(t,e){var r=ve(t)?vd:Co;return r(t,Cl(e))}var v=xn;function hn(t,e){var r=[];return Co(t,function(o,a,f){if(e(o,a,f))r.push(o)}),r}var ir=hn;function cn(t,e){var r=ve(t)?Q:ir;return r(t,Pn(e,3))}var er=cn;function gn(t,e){return Va(e,function(r){return t[r]})}var nr=gn;function yn(t){return t==null?[]:nr(t,Ft(t))}var Qr=yn;var _n="[object Map]",bn="[object Set]",vn=Object.prototype,On=vn.hasOwnProperty;function An(t){if(t==null)return!0;if(fn(t)&&(ve(t)||typeof t=="string"||typeof t.splice=="function"||aa(t)||ko(t)||Qa(t)))return!t.length;var e=Dr(t);if(e==_n||e==bn)return!t.size;if(yo(t))return!hl(t).length;for(var r in t)if(On.call(t,r))return!1;return!0}var pt=An;function Tn(t){return t===void 0}var Lt=Tn;function wn(t,e,r,o,a){return a(t,function(f,i,n){r=o?(o=!1,f):e(r,f,i,n)}),r}var sr=wn;function Sn(t,e,r){var o=ve(t)?we:sr,a=arguments.length<3;return o(t,Pn(e,4),r,a,Co)}var ei=Sn;var Cn=1/0,En=!(S&&1/B(new S([,-0]))[1]==Cn)?Mt:function(t){return new S(t)},ur=En;var In=200;function Ln(t,e,r){var o=-1,a=zt,f=t.length,i=!0,n=[],s=n;if(r)i=!1,a=fr;else if(f>=In){var p=e?null:ur(t);if(p)return B(p);i=!1,a=ot,s=new rt}else s=e?[]:n;t:while(++o<f){var d=t[o],l=e?e(d):d;if(d=r||d!==0?d:0,i&&l===l){var m=s.length;while(m--)if(s[m]===l)continue t;if(e)s.push(l);n.push(d)}else if(!a(s,l,r)){if(s!==n)s.push(l);n.push(d)}}return n}var lr=Ln;var jn=bo(function(t){return lr(yl(t,1,Dd,!0))}),ht=jn;var Nn="\x00",L="\x00",dr="\x01";class Oe{constructor(t={}){if(this._isDirected=Object.prototype.hasOwnProperty.call(t,"directed")?t.directed:!0,this._isMultigraph=Object.prototype.hasOwnProperty.call(t,"multigraph")?t.multigraph:!1,this._isCompound=Object.prototype.hasOwnProperty.call(t,"compound")?t.compound:!1,this._label=void 0,this._defaultNodeLabelFn=mr(void 0),this._defaultEdgeLabelFn=mr(void 0),this._nodes={},this._isCompound)this._parent={},this._children={},this._children[L]={};this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}isDirected(){return this._isDirected}isMultigraph(){return this._isMultigraph}isCompound(){return this._isCompound}setGraph(t){return this._label=t,this}graph(){return this._label}setDefaultNodeLabel(t){if(!Ya(t))t=mr(t);return this._defaultNodeLabelFn=t,this}nodeCount(){return this._nodeCount}nodes(){return Ft(this._nodes)}sources(){var t=this;return er(this.nodes(),function(e){return pt(t._in[e])})}sinks(){var t=this;return er(this.nodes(),function(e){return pt(t._out[e])})}setNodes(t,e){var r=arguments,o=this;return v(t,function(a){if(r.length>1)o.setNode(a,e);else o.setNode(a)}),this}setNode(t,e){if(Object.prototype.hasOwnProperty.call(this._nodes,t)){if(arguments.length>1)this._nodes[t]=e;return this}if(this._nodes[t]=arguments.length>1?e:this._defaultNodeLabelFn(t),this._isCompound)this._parent[t]=L,this._children[t]={},this._children[L][t]=!0;return this._in[t]={},this._preds[t]={},this._out[t]={},this._sucs[t]={},++this._nodeCount,this}node(t){return this._nodes[t]}hasNode(t){return Object.prototype.hasOwnProperty.call(this._nodes,t)}removeNode(t){if(Object.prototype.hasOwnProperty.call(this._nodes,t)){var e=(r)=>this.removeEdge(this._edgeObjs[r]);if(delete this._nodes[t],this._isCompound)this._removeFromParentsChildList(t),delete this._parent[t],v(this.children(t),(r)=>{this.setParent(r)}),delete this._children[t];v(Ft(this._in[t]),e),delete this._in[t],delete this._preds[t],v(Ft(this._out[t]),e),delete this._out[t],delete this._sucs[t],--this._nodeCount}return this}setParent(t,e){if(!this._isCompound)throw Error("Cannot set parent in a non-compound graph");if(Lt(e))e=L;else{e+="";for(var r=e;!Lt(r);r=this.parent(r))if(r===t)throw Error("Setting "+e+" as parent of "+t+" would create a cycle");this.setNode(e)}return this.setNode(t),this._removeFromParentsChildList(t),this._parent[t]=e,this._children[e][t]=!0,this}_removeFromParentsChildList(t){delete this._children[this._parent[t]][t]}parent(t){if(this._isCompound){var e=this._parent[t];if(e!==L)return e}}children(t){if(Lt(t))t=L;if(this._isCompound){var e=this._children[t];if(e)return Ft(e)}else if(t===L)return this.nodes();else if(this.hasNode(t))return[]}predecessors(t){var e=this._preds[t];if(e)return Ft(e)}successors(t){var e=this._sucs[t];if(e)return Ft(e)}neighbors(t){var e=this.predecessors(t);if(e)return ht(e,this.successors(t))}isLeaf(t){var e;if(this.isDirected())e=this.successors(t);else e=this.neighbors(t);return e.length===0}filterNodes(t){var e=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});e.setGraph(this.graph());var r=this;v(this._nodes,function(f,i){if(t(i))e.setNode(i,f)}),v(this._edgeObjs,function(f){if(e.hasNode(f.v)&&e.hasNode(f.w))e.setEdge(f,r.edge(f))});var o={};function a(f){var i=r.parent(f);if(i===void 0||e.hasNode(i))return o[f]=i,i;else if(i in o)return o[i];else return a(i)}if(this._isCompound)v(e.nodes(),function(f){e.setParent(f,a(f))});return e}setDefaultEdgeLabel(t){if(!Ya(t))t=mr(t);return this._defaultEdgeLabelFn=t,this}edgeCount(){return this._edgeCount}edges(){return Qr(this._edgeObjs)}setPath(t,e){var r=this,o=arguments;return ei(t,function(a,f){if(o.length>1)r.setEdge(a,f,e);else r.setEdge(a,f);return f}),this}setEdge(){var t,e,r,o,a=!1,f=arguments[0];if(typeof f==="object"&&f!==null&&"v"in f){if(t=f.v,e=f.w,r=f.name,arguments.length===2)o=arguments[1],a=!0}else if(t=f,e=arguments[1],r=arguments[3],arguments.length>2)o=arguments[2],a=!0;if(t=""+t,e=""+e,!Lt(r))r=""+r;var i=z(this._isDirected,t,e,r);if(Object.prototype.hasOwnProperty.call(this._edgeLabels,i)){if(a)this._edgeLabels[i]=o;return this}if(!Lt(r)&&!this._isMultigraph)throw Error("Cannot set a named edge when isMultigraph = false");this.setNode(t),this.setNode(e),this._edgeLabels[i]=a?o:this._defaultEdgeLabelFn(t,e,r);var n=Dn(this._isDirected,t,e,r);return t=n.v,e=n.w,Object.freeze(n),this._edgeObjs[i]=n,xr(this._preds[e],t),xr(this._sucs[t],e),this._in[e][i]=n,this._out[t][i]=n,this._edgeCount++,this}edge(t,e,r){var o=arguments.length===1?ct(this._isDirected,arguments[0]):z(this._isDirected,t,e,r);return this._edgeLabels[o]}hasEdge(t,e,r){var o=arguments.length===1?ct(this._isDirected,arguments[0]):z(this._isDirected,t,e,r);return Object.prototype.hasOwnProperty.call(this._edgeLabels,o)}removeEdge(t,e,r){var o=arguments.length===1?ct(this._isDirected,arguments[0]):z(this._isDirected,t,e,r),a=this._edgeObjs[o];if(a)t=a.v,e=a.w,delete this._edgeLabels[o],delete this._edgeObjs[o],hr(this._preds[e],t),hr(this._sucs[t],e),delete this._in[e][o],delete this._out[t][o],this._edgeCount--;return this}inEdges(t,e){var r=this._in[t];if(r){var o=Qr(r);if(!e)return o;return er(o,function(a){return a.v===e})}}outEdges(t,e){var r=this._out[t];if(r){var o=Qr(r);if(!e)return o;return er(o,function(a){return a.w===e})}}nodeEdges(t,e){var r=this.inEdges(t,e);if(r)return r.concat(this.outEdges(t,e))}}Oe.prototype._nodeCount=0;Oe.prototype._edgeCount=0;function xr(t,e){if(t[e])t[e]++;else t[e]=1}function hr(t,e){if(!--t[e])delete t[e]}function z(t,e,r,o){var a=""+e,f=""+r;if(!t&&a>f){var i=a;a=f,f=i}return a+dr+f+dr+(Lt(o)?Nn:o)}function Dn(t,e,r,o){var a=""+e,f=""+r;if(!t&&a>f){var i=a;a=f,f=i}var n={v:a,w:f};if(o)n.name=o;return n}function ct(t,e){return z(t,e.v,e.w,e.name)}
|
|
2
|
+
export{Rt,mn,Xn,qt,Tr,Va,ve,vt,pr,Ya,mr,gl,yd,vd,kd,ho,ra,xd,bo,fn,yo,Qa,aa,vo,Ja,ko,wd,Cd,hl,Ft,Ed,xo,Za,wo,bl,yl,Xa,Bd,vl,Id,mu,Dr,kl,_d,Sd,Td,Pn,xl,wl,Co,Dd,Cl,v,er,Qr,Lt,ei,Oe};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
var k=Object.create;var{getPrototypeOf:l,defineProperty:f,getOwnPropertyNames:m}=Object;var j=Object.prototype.hasOwnProperty;function n(a){return this[a]}var o,p,
|
|
3
|
-
export{
|
|
2
|
+
var k=Object.create;var{getPrototypeOf:l,defineProperty:f,getOwnPropertyNames:m}=Object;var j=Object.prototype.hasOwnProperty;function n(a){return this[a]}var o,p,on=(a,b,c)=>{var g=a!=null&&typeof a==="object";if(g){var h=b?o??=new WeakMap:p??=new WeakMap,i=h.get(a);if(i)return i}c=a!=null?k(l(a)):{};let d=b||!a||!a.__esModule||!j.call(a,"default")?f(c,"default",{value:a,enumerable:!0}):c;if(a&&typeof a==="object"||typeof a==="function"){for(let e of m(a))if(!j.call(d,e))f(d,e,{get:n.bind(a,e),enumerable:!0})}if(g)h.set(a,d);return d};var yn=(a,b)=>()=>(b||a((b={exports:{}}).exports,b),b.exports);var q=(a)=>a;function r(a,b){this[a]=q.bind(null,b)}var pn=(a,b)=>{for(var c in b)f(a,c,{get:b[c],enumerable:!0,configurable:!0,set:r.bind(b,c)})};var Zf=import.meta.require;
|
|
3
|
+
export{on,yn,pn,Zf};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{of}from"./index-0b1kwsam.js";export{of as createInfoServices};
|
package/dist/client/static/js/{infoDiagram-VRGFBTTK-sef80132.js → infoDiagram-VRGFBTTK-ktc8nb8g.js}
RENAMED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{t,l,te,de}from"./index-
|
|
1
|
+
import{t,l,te,de}from"./index-ctgefatv.js";import{Te}from"./index-0b1kwsam.js";var n={parse:t(async(r)=>{let e=await Te("info",r);l.debug(e)},"parse")},i={version:"12.0.0"},s=t(()=>i.version,"getVersion"),p={getVersion:s},g=t((r,e,o)=>{l.debug(`rendering info diagram
|
|
2
2
|
`+r);let a=de(e);te(a,100,400,!0),a.append("g").append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size",32).style("text-anchor","middle").text(`v${o}`)},"draw"),m={draw:g},y={parser:n,db:p,renderer:m};export{y as diagram};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{IA}from"./index-dmgawfhw.js";export{IA as default};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import{t,x,te,R,L,z,O,U,j,G,p,de,
|
|
1
|
+
import{t,x,te,R,L,z,O,U,j,G,p,de,kn,y}from"./index-ctgefatv.js";var ct=function(){var e=t(function(C,i,n,s){for(n=n||{},s=C.length;s--;n[C[s]]=i);return n},"o"),d=[1,4],r=[1,14],l=[1,12],o=[1,13],f=[6,7,8],k=[1,20],u=[1,18],_=[1,19],c=[6,7,11],b=[1,6,13,14],w=[1,23],S=[1,24],E=[1,6,7,11,13,14],F={trace:t(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ishikawa:4,spaceLines:5,SPACELINE:6,NL:7,ISHIKAWA:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,TEXT:14,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"ISHIKAWA",11:"EOF",13:"SPACELIST",14:"TEXT"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,1],[12,1],[12,1]],performAction:t(function(i,n,s,h,g,a,A){var v=a.length-1;switch(g){case 6:case 7:return h;case 15:h.addNode(a[v-1].length,a[v].trim());break;case 16:h.addNode(0,a[v].trim());break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:d},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:d},{6:r,7:[1,10],9:9,12:11,13:l,14:o},e(f,[2,3]),{1:[2,2]},e(f,[2,4]),e(f,[2,5]),{1:[2,6],6:r,12:15,13:l,14:o},{6:r,9:16,12:11,13:l,14:o},{6:k,7:u,10:17,11:_},e(c,[2,18],{14:[1,21]}),e(c,[2,16]),e(c,[2,17]),{6:k,7:u,10:22,11:_},{1:[2,7],6:r,12:15,13:l,14:o},e(b,[2,14],{7:w,11:S}),e(E,[2,8]),e(E,[2,9]),e(E,[2,10]),e(c,[2,15]),e(b,[2,13],{7:w,11:S}),e(E,[2,11]),e(E,[2,12])],defaultActions:{2:[2,1],6:[2,2]},parseError:t(function(i,n){if(n.recoverable)this.trace(i);else{var s=Error(i);throw s.hash=n,s}},"parseError"),parse:t(function(i){var n=this,s=[0],h=[],g=[null],a=[],A=this.table,v="",B=0,I=0,P=0,N=2,Z=1,nt=a.slice.call(arguments,1),m=Object.create(this.lexer),T={yy:{}};for(var Y in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,Y))T.yy[Y]=this.yy[Y];if(m.setInput(i,T.yy),T.yy.lexer=m,T.yy.parser=this,typeof m.yylloc>"u")m.yylloc={};var K=m.yylloc;a.push(K);var at=m.options&&m.options.ranges;if(typeof T.yy.parseError==="function")this.parseError=T.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function bt(W){s.length=s.length-2*W,g.length=g.length-W,a.length=a.length-W}t(bt,"popStack");function ut(){var W=h.pop()||m.lex()||Z;if(typeof W!=="number"){if(W instanceof Array)h=W,W=h.pop();W=n.symbols_[W]||W}return W}t(ut,"lex");var D,rt,q,V,Ot,lt,Q={},et,X,dt,it;while(!0){if(q=s[s.length-1],this.defaultActions[q])V=this.defaultActions[q];else{if(D===null||typeof D>"u")D=ut();V=A[q]&&A[q][D]}if(typeof V>"u"||!V.length||!V[0]){var ot="";it=[];for(et in A[q])if(this.terminals_[et]&&et>N)it.push("'"+this.terminals_[et]+"'");if(m.showPosition)ot="Parse error on line "+(B+1)+`:
|
|
2
2
|
`+m.showPosition()+`
|
|
3
3
|
Expecting `+it.join(", ")+", got '"+(this.terminals_[D]||D)+"'";else ot="Parse error on line "+(B+1)+": Unexpected "+(D==Z?"end of input":"'"+(this.terminals_[D]||D)+"'");this.parseError(ot,{text:m.match,token:this.terminals_[D]||D,line:m.yylineno,loc:K,expected:it})}if(V[0]instanceof Array&&V.length>1)throw Error("Parse Error: multiple actions possible at state: "+q+", token: "+D);switch(V[0]){case 1:if(s.push(D),g.push(m.yytext),a.push(m.yylloc),s.push(V[1]),D=null,!rt){if(I=m.yyleng,v=m.yytext,B=m.yylineno,K=m.yylloc,P>0)P--}else D=rt,rt=null;break;case 2:if(X=this.productions_[V[1]][1],Q.$=g[g.length-X],Q._$={first_line:a[a.length-(X||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(X||1)].first_column,last_column:a[a.length-1].last_column},at)Q._$.range=[a[a.length-(X||1)].range[0],a[a.length-1].range[1]];if(lt=this.performAction.apply(Q,[v,I,B,T.yy,V[1],g,a].concat(nt)),typeof lt<"u")return lt;if(X)s=s.slice(0,-1*X*2),g=g.slice(0,-1*X),a=a.slice(0,-1*X);s.push(this.productions_[V[1]][0]),g.push(Q.$),a.push(Q._$),dt=A[s[s.length-2]][s[s.length-1]],s.push(dt);break;case 3:return!0}}return!0},"parse")},H=function(){var C={EOF:1,parseError:t(function(n,s){if(this.yy.parser)this.yy.parser.parseError(n,s);else throw Error(n)},"parseError"),setInput:t(function(i,n){if(this.yy=n||this.yy||{},this._input=i,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges)this.yylloc.range=[0,0];return this.offset=0,this},"setInput"),input:t(function(){var i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var n=i.match(/(?:\r\n?|\n).*/g);if(n)this.yylineno++,this.yylloc.last_line++;else this.yylloc.last_column++;if(this.options.ranges)this.yylloc.range[1]++;return this._input=this._input.slice(1),i},"input"),unput:t(function(i){var n=i.length,s=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var h=this.match.split(/(?:\r\n?|\n)/g);if(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),s.length-1)this.yylineno-=s.length-1;var g=this.yylloc.range;if(this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:s?(s.length===h.length?this.yylloc.first_column:0)+h[h.length-s.length].length-s[0].length:this.yylloc.first_column-n},this.options.ranges)this.yylloc.range=[g[0],g[0]+this.yyleng-n];return this.yyleng=this.yytext.length,this},"unput"),more:t(function(){return this._more=!0,this},"more"),reject:t(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:t(function(i){this.unput(this.match.slice(i))},"less"),pastInput:t(function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:t(function(){var i=this.match;if(i.length<20)i+=this._input.substr(0,20-i.length);return(i.substr(0,20)+(i.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:t(function(){var i=this.pastInput(),n=Array(i.length+1).join("-");return i+this.upcomingInput()+`
|
|
5
5
|
`+n+"^"},"showPosition"),test_match:t(function(i,n){var s,h,g;if(this.options.backtrack_lexer){if(g={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)g.yylloc.range=this.yylloc.range.slice(0)}if(h=i[0].match(/(?:\r\n?|\n).*/g),h)this.yylineno+=h.length;if(this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:h?h[h.length-1].length-h[h.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+i[0].length},this.yytext+=i[0],this.match+=i[0],this.matches=i,this.yyleng=this.yytext.length,this.options.ranges)this.yylloc.range=[this.offset,this.offset+=this.yyleng];if(this._more=!1,this._backtrack=!1,this._input=this._input.slice(i[0].length),this.matched+=i[0],s=this.performAction.call(this,this.yy,this,n,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input)this.done=!1;if(s)return s;else if(this._backtrack){for(var a in g)this[a]=g[a];return!1}return!1},"test_match"),next:t(function(){if(this.done)return this.EOF;if(!this._input)this.done=!0;var i,n,s,h;if(!this._more)this.yytext="",this.match="";var g=this._currentRules();for(var a=0;a<g.length;a++)if(s=this._input.match(this.rules[g[a]]),s&&(!n||s[0].length>n[0].length)){if(n=s,h=a,this.options.backtrack_lexer)if(i=this.test_match(s,g[a]),i!==!1)return i;else if(this._backtrack){n=!1;continue}else return!1;else if(!this.options.flex)break}if(n){if(i=this.test_match(n,g[h]),i!==!1)return i;return!1}if(this._input==="")return this.EOF;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
6
|
-
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:t(function(){var n=this.next();if(n)return n;else return this.lex()},"lex"),begin:t(function(n){this.conditionStack.push(n)},"begin"),popState:t(function(){var n=this.conditionStack.length-1;if(n>0)return this.conditionStack.pop();else return this.conditionStack[0]},"popState"),_currentRules:t(function(){if(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1])return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules;else return this.conditions.INITIAL.rules},"_currentRules"),topState:t(function(n){if(n=this.conditionStack.length-1-Math.abs(n||0),n>=0)return this.conditionStack[n];else return"INITIAL"},"topState"),pushState:t(function(n){this.begin(n)},"pushState"),stateStackSize:t(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:t(function(n,s,h,g){var a=g;switch(h){case 0:return 6;case 1:return 8;case 2:return 8;case 3:return 6;case 4:return 7;case 5:return 13;case 6:return 14;case 7:return 11}},"anonymous"),rules:[/^(?:\s*%%.*)/i,/^(?:ishikawa-beta\b)/i,/^(?:ishikawa\b)/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[\s]+)/i,/^(?:[^\n]+)/i,/^(?:$)/i],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7],inclusive:!0}}};return C}();F.lexer=H;function M(){this.yy={}}return t(M,"Parser"),M.prototype=F,F.Parser=M,new M}();ct.parser=ct;var _t=ct,xt=class{constructor(){this.stack=[],this.clear=this.clear.bind(this),this.addNode=this.addNode.bind(this),this.getRoot=this.getRoot.bind(this)}static{t(this,"IshikawaDB")}clear(){this.root=void 0,this.stack=[],this.baseLevel=void 0,R()}getRoot(){return this.root}addNode(e,d){let r=x.sanitizeText(d,p());if(!this.root){this.root={text:r,children:[]},this.stack=[{level:0,node:this.root}],j(r);return}this.baseLevel??=e;let l=e-this.baseLevel+1;if(l<=0)l=1;while(this.stack.length>1&&this.stack[this.stack.length-1].level>=l)this.stack.pop();let o=this.stack[this.stack.length-1].node,f={text:r,children:[]};o.children.push(f),this.stack.push({level:l,node:f})}getAccTitle(){return z()}setAccTitle(e){L(e)}getAccDescription(){return U()}setAccDescription(e){O(e)}getDiagramTitle(){return G()}setDiagramTitle(e){j(e)}},vt=14,J=250,St=30,Et=60,$t=5,mt=82*Math.PI/180,yt=Math.cos(mt),ft=Math.sin(mt),pt=t((e,d,r)=>{let l=e.node().getBBox(),o=l.width+d*2,f=l.height+d*2;te(e,f,o,r),e.attr("viewBox",`${l.x-d} ${l.y-d} ${o} ${f}`)},"applyPaddedViewBox"),At=t((e,d,r,l)=>{let f=l.db.getRoot();if(!f)return;let k=p(),{look:u,handDrawnSeed:_,themeVariables:c}=k,b=
|
|
6
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:t(function(){var n=this.next();if(n)return n;else return this.lex()},"lex"),begin:t(function(n){this.conditionStack.push(n)},"begin"),popState:t(function(){var n=this.conditionStack.length-1;if(n>0)return this.conditionStack.pop();else return this.conditionStack[0]},"popState"),_currentRules:t(function(){if(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1])return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules;else return this.conditions.INITIAL.rules},"_currentRules"),topState:t(function(n){if(n=this.conditionStack.length-1-Math.abs(n||0),n>=0)return this.conditionStack[n];else return"INITIAL"},"topState"),pushState:t(function(n){this.begin(n)},"pushState"),stateStackSize:t(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:t(function(n,s,h,g){var a=g;switch(h){case 0:return 6;case 1:return 8;case 2:return 8;case 3:return 6;case 4:return 7;case 5:return 13;case 6:return 14;case 7:return 11}},"anonymous"),rules:[/^(?:\s*%%.*)/i,/^(?:ishikawa-beta\b)/i,/^(?:ishikawa\b)/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[\s]+)/i,/^(?:[^\n]+)/i,/^(?:$)/i],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7],inclusive:!0}}};return C}();F.lexer=H;function M(){this.yy={}}return t(M,"Parser"),M.prototype=F,F.Parser=M,new M}();ct.parser=ct;var _t=ct,xt=class{constructor(){this.stack=[],this.clear=this.clear.bind(this),this.addNode=this.addNode.bind(this),this.getRoot=this.getRoot.bind(this)}static{t(this,"IshikawaDB")}clear(){this.root=void 0,this.stack=[],this.baseLevel=void 0,R()}getRoot(){return this.root}addNode(e,d){let r=x.sanitizeText(d,p());if(!this.root){this.root={text:r,children:[]},this.stack=[{level:0,node:this.root}],j(r);return}this.baseLevel??=e;let l=e-this.baseLevel+1;if(l<=0)l=1;while(this.stack.length>1&&this.stack[this.stack.length-1].level>=l)this.stack.pop();let o=this.stack[this.stack.length-1].node,f={text:r,children:[]};o.children.push(f),this.stack.push({level:l,node:f})}getAccTitle(){return z()}setAccTitle(e){L(e)}getAccDescription(){return U()}setAccDescription(e){O(e)}getDiagramTitle(){return G()}setDiagramTitle(e){j(e)}},vt=14,J=250,St=30,Et=60,$t=5,mt=82*Math.PI/180,yt=Math.cos(mt),ft=Math.sin(mt),pt=t((e,d,r)=>{let l=e.node().getBBox(),o=l.width+d*2,f=l.height+d*2;te(e,f,o,r),e.attr("viewBox",`${l.x-d} ${l.y-d} ${o} ${f}`)},"applyPaddedViewBox"),At=t((e,d,r,l)=>{let f=l.db.getRoot();if(!f)return;let k=p(),{look:u,handDrawnSeed:_,themeVariables:c}=k,b=kn(k.fontSize)[0]??vt,w=u==="handDrawn",S=f.children??[],E=k.ishikawa?.diagramPadding??20,F=k.ishikawa?.useMaxWidth??!1,H=de(d),M=H.append("g").attr("class","ishikawa"),C=w?y.svg(H.node()):void 0,i=C?{roughSvg:C,seed:_??0,lineColor:c?.lineColor??"#333",fillColor:c?.mainBkg??"#fff"}:void 0,n=`ishikawa-arrow-${d}`;if(!w)M.append("defs").append("marker").attr("id",n).attr("viewBox","0 0 10 10").attr("refX",0).attr("refY",5).attr("markerWidth",6).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 10 0 L 0 5 L 10 10 Z").attr("class","ishikawa-arrow");let s=0,h=J,g=w?void 0:tt(M,s,h,s,h,"ishikawa-spine");if(It(M,s,h,f.text,b,i),!S.length){if(w)tt(M,s,h,s,h,"ishikawa-spine",i);pt(H,E,F);return}s-=20;let a=S.filter((m,T)=>T%2===0),A=S.filter((m,T)=>T%2===1),v=gt(a),B=gt(A),I=v.total+B.total,P=J,N=J;if(I>0){let m=J*2,T=J*0.3;P=Math.max(T,m*(v.total/I)),N=Math.max(T,m*(B.total/I))}let Z=b*2;if(P=Math.max(P,v.max*Z),N=Math.max(N,B.max*Z),h=Math.max(P,J),g)g.attr("y1",h).attr("y2",h);M.select(".ishikawa-head-group").attr("transform",`translate(0,${h})`);let nt=Math.ceil(S.length/2);for(let m=0;m<nt;m++){let T=M.append("g").attr("class","ishikawa-pair");for(let[Y,K,at]of[[S[m*2],-1,P],[S[m*2+1],1,N]])if(Y)Mt(T,Y,s,h,K,at,b,i);s=T.selectAll("text").nodes().reduce((Y,K)=>Math.min(Y,K.getBBox().x),1/0)}if(w)tt(M,s,h,0,h,"ishikawa-spine",i);else{g.attr("x1",s);let m=`url(#${n})`;M.selectAll("line.ishikawa-branch, line.ishikawa-sub-branch").attr("marker-start",m)}pt(H,E,F)},"draw"),gt=t((e)=>{let d=t((r)=>r.children.reduce((l,o)=>l+1+d(o),0),"countDescendants");return e.reduce((r,l)=>{let o=d(l);return r.total+=o,r.max=Math.max(r.max,o),r},{total:0,max:0})},"sideStats"),It=t((e,d,r,l,o,f)=>{let k=Math.max(6,Math.floor(110/(o*0.6))),u=e.append("g").attr("class","ishikawa-head-group").attr("transform",`translate(${d},${r})`),_=st(u,wt(l,k),0,0,"ishikawa-head-label","start",o),c=_.node().getBBox(),b=Math.max(60,c.width+6),w=Math.max(40,c.height*2+40),S=`M 0 ${-w/2} L 0 ${w/2} Q ${b*2.4} 0 0 ${-w/2} Z`;if(f){let E=f.roughSvg.path(S,{roughness:1.5,seed:f.seed,fill:f.fillColor,fillStyle:"hachure",fillWeight:2.5,hachureGap:5,stroke:f.lineColor,strokeWidth:2});u.insert(()=>E,":first-child").attr("class","ishikawa-head")}else u.insert("path",":first-child").attr("class","ishikawa-head").attr("d",S);_.attr("transform",`translate(${(b-c.width)/2-c.x+3},${-c.y-c.height/2})`)},"drawHead"),Lt=t((e,d)=>{let r=[],l=[],o=t((f,k,u)=>{let _=d===-1?[...f].reverse():f;for(let c of _){let b=r.length,w=c.children??[];if(r.push({depth:u,text:wt(c.text,15),parentIndex:k,childCount:w.length}),u%2===0){if(l.push(b),w.length)o(w,b,u+1)}else{if(w.length)o(w,b,u+1);l.push(b)}}},"walk");return o(e,-1,2),{entries:r,yOrder:l}},"flattenTree"),Tt=t((e,d,r,l,o,f,k)=>{let u=e.append("g").attr("class","ishikawa-label-group"),c=st(u,d,r,l+11*o,"ishikawa-label cause","middle",f).node().getBBox();if(k){let b=k.roughSvg.rectangle(c.x-20,c.y-2,c.width+40,c.height+4,{roughness:1.5,seed:k.seed,fill:k.fillColor,fillStyle:"hachure",fillWeight:2.5,hachureGap:5,stroke:k.lineColor,strokeWidth:2});u.insert(()=>b,":first-child").attr("class","ishikawa-label-box")}else u.insert("rect",":first-child").attr("class","ishikawa-label-box").attr("x",c.x-20).attr("y",c.y-2).attr("width",c.width+40).attr("height",c.height+4)},"drawCauseLabel"),ht=t((e,d,r,l,o,f)=>{let k=Math.sqrt(l*l+o*o);if(k===0)return;let u=l/k,_=o/k,c=6,b=-_*c,w=u*c,S=d,E=r,F=`M ${S} ${E} L ${S-u*c*2+b} ${E-_*c*2+w} L ${S-u*c*2-b} ${E-_*c*2-w} Z`,H=f.roughSvg.path(F,{roughness:1,seed:f.seed,fill:f.lineColor,fillStyle:"solid",stroke:f.lineColor,strokeWidth:1});e.append(()=>H)},"drawArrowMarker"),Mt=t((e,d,r,l,o,f,k,u)=>{let _=d.children??[],c=f*(_.length?1:0.2),b=-yt*c,w=ft*c*o,S=r+b,E=l+w;if(tt(e,r,l,S,E,"ishikawa-branch",u),u)ht(e,r,l,r-S,l-E,u);if(Tt(e,d.text,S,E,o,k,u),!_.length)return;let{entries:F,yOrder:H}=Lt(_,o),M=F.length,C=Array(M);for(let[g,a]of H.entries())C[a]=l+w*((g+1)/(M+1));let i=new Map;i.set(-1,{x0:r,y0:l,x1:S,y1:E,childCount:_.length,childrenDrawn:0});let n=-yt,s=ft*o,h=o<0?"ishikawa-label up":"ishikawa-label down";for(let[g,a]of F.entries()){let A=C[g],v=i.get(a.parentIndex),B=e.append("g").attr("class","ishikawa-sub-group"),I=0,P=0,N=0;if(a.depth%2===0){let Z=v.y1-v.y0;if(I=kt(v.x0,v.x1,Z?(A-v.y0)/Z:0.5),P=A,N=I-(a.childCount>0?Et+a.childCount*$t:St),tt(B,I,A,N,A,"ishikawa-sub-branch",u),u)ht(B,I,A,1,0,u);st(B,a.text,N,A,"ishikawa-label align","end",k)}else{let Z=v.childrenDrawn++;if(I=kt(v.x0,v.x1,(v.childCount-Z)/(v.childCount+1)),P=v.y0,N=I+n*((A-P)/s),tt(B,I,P,N,A,"ishikawa-sub-branch",u),u)ht(B,I,P,I-N,P-A,u);st(B,a.text,N,A,h,"end",k)}if(a.childCount>0)i.set(g,{x0:I,y0:P,x1:N,y1:A,childCount:a.childCount,childrenDrawn:0})}},"drawBranch"),Pt=t((e)=>e.split(/<br\s*\/?>|\n/),"splitLines"),wt=t((e,d)=>{if(e.length<=d)return e;let r=[];for(let l of e.split(/\s+/)){let o=r.length-1;if(o>=0&&r[o].length+1+l.length<=d)r[o]+=" "+l;else r.push(l)}return r.join(`
|
|
7
7
|
`)},"wrapText"),st=t((e,d,r,l,o,f,k)=>{let u=Pt(d),_=k*1.05,c=e.append("text").attr("class",o).attr("text-anchor",f).attr("x",r).attr("y",l-(u.length-1)*_/2);for(let[b,w]of u.entries())c.append("tspan").attr("x",r).attr("dy",b===0?0:_).text(w);return c},"drawMultilineText"),kt=t((e,d,r)=>e+(d-e)*r,"lerp"),tt=t((e,d,r,l,o,f,k)=>{if(k){let u=k.roughSvg.line(d,r,l,o,{roughness:1.5,seed:k.seed,stroke:k.lineColor,strokeWidth:2});e.append(()=>u).attr("class",f);return}return e.append("line").attr("class",f).attr("x1",d).attr("y1",r).attr("x2",l).attr("y2",o)},"drawLine"),Bt={draw:At},Nt=t((e)=>`
|
|
8
8
|
.ishikawa .ishikawa-spine,
|
|
9
9
|
.ishikawa .ishikawa-branch,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Qf}from"./index-8cy3x2y8.js";export{Qf as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{t,te,R,L,z,O,U,j,G,p,h,Lr,
|
|
1
|
+
import{t,te,R,L,z,O,U,j,G,p,h,Lr,xn}from"./index-ctgefatv.js";import{Oi,fu,pA,tr}from"./index-h1e1abpt.js";var it=function(){var e=t(function(u,n,s,l){for(s=s||{},l=u.length;l--;s[u[l]]=n);return s},"o"),r=[6,8,10,11,12,14,16,17,18],a=[1,9],g=[1,10],i=[1,11],y=[1,12],m=[1,13],o=[1,14],x={trace:t(function(){},"trace"),yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,taskName:18,taskData:19,$accept:0,$end:1},terminals_:{2:"error",4:"journey",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",18:"taskName",19:"taskData"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,2]],performAction:t(function(n,s,l,d,f,c,w){var _=c.length-1;switch(f){case 1:return c[_-1];case 2:this.$=[];break;case 3:c[_-1].push(c[_]),this.$=c[_-1];break;case 4:case 5:this.$=c[_];break;case 6:case 7:this.$=[];break;case 8:d.setDiagramTitle(c[_].substr(6)),this.$=c[_].substr(6);break;case 9:this.$=c[_].trim(),d.setAccTitle(this.$);break;case 10:case 11:this.$=c[_].trim(),d.setAccDescription(this.$);break;case 12:d.addSection(c[_].substr(8)),this.$=c[_].substr(8);break;case 13:d.addTask(c[_-1],c[_]),this.$="task";break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},e(r,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:a,12:g,14:i,16:y,17:m,18:o},e(r,[2,7],{1:[2,1]}),e(r,[2,3]),{9:15,11:a,12:g,14:i,16:y,17:m,18:o},e(r,[2,5]),e(r,[2,6]),e(r,[2,8]),{13:[1,16]},{15:[1,17]},e(r,[2,11]),e(r,[2,12]),{19:[1,18]},e(r,[2,4]),e(r,[2,9]),e(r,[2,10]),e(r,[2,13])],defaultActions:{},parseError:t(function(n,s){if(s.recoverable)this.trace(n);else{var l=Error(n);throw l.hash=s,l}},"parseError"),parse:t(function(n){var s=this,l=[0],d=[],f=[null],c=[],w=this.table,_="",A=0,lt=0,ot=0,bt=2,ct=1,_t=c.slice.call(arguments,1),v=Object.create(this.lexer),V={yy:{}};for(var K in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,K))V.yy[K]=this.yy[K];if(v.setInput(n,V.yy),V.yy.lexer=v,V.yy.parser=this,typeof v.yylloc>"u")v.yylloc={};var Q=v.yylloc;c.push(Q);var vt=v.options&&v.options.ranges;if(typeof V.yy.parseError==="function")this.parseError=V.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function wt(M){l.length=l.length-2*M,f.length=f.length-M,c.length=c.length-M}t(wt,"popStack");function ht(){var M=d.pop()||v.lex()||ct;if(typeof M!=="number"){if(M instanceof Array)d=M,M=d.pop();M=s.symbols_[M]||M}return M}t(ht,"lex");var T,D,B,S,qt,tt,N={},H,P,ut,Z;while(!0){if(B=l[l.length-1],this.defaultActions[B])S=this.defaultActions[B];else{if(T===null||typeof T>"u")T=ht();S=w[B]&&w[B][T]}if(typeof S>"u"||!S.length||!S[0]){var et="";Z=[];for(H in w[B])if(this.terminals_[H]&&H>bt)Z.push("'"+this.terminals_[H]+"'");if(v.showPosition)et="Parse error on line "+(A+1)+`:
|
|
2
2
|
`+v.showPosition()+`
|
|
3
3
|
Expecting `+Z.join(", ")+", got '"+(this.terminals_[T]||T)+"'";else et="Parse error on line "+(A+1)+": Unexpected "+(T==ct?"end of input":"'"+(this.terminals_[T]||T)+"'");this.parseError(et,{text:v.match,token:this.terminals_[T]||T,line:v.yylineno,loc:Q,expected:Z})}if(S[0]instanceof Array&&S.length>1)throw Error("Parse Error: multiple actions possible at state: "+B+", token: "+T);switch(S[0]){case 1:if(l.push(T),f.push(v.yytext),c.push(v.yylloc),l.push(S[1]),T=null,!D){if(lt=v.yyleng,_=v.yytext,A=v.yylineno,Q=v.yylloc,ot>0)ot--}else T=D,D=null;break;case 2:if(P=this.productions_[S[1]][1],N.$=f[f.length-P],N._$={first_line:c[c.length-(P||1)].first_line,last_line:c[c.length-1].last_line,first_column:c[c.length-(P||1)].first_column,last_column:c[c.length-1].last_column},vt)N._$.range=[c[c.length-(P||1)].range[0],c[c.length-1].range[1]];if(tt=this.performAction.apply(N,[_,lt,A,V.yy,S[1],f,c].concat(_t)),typeof tt<"u")return tt;if(P)l=l.slice(0,-1*P*2),f=f.slice(0,-1*P),c=c.slice(0,-1*P);l.push(this.productions_[S[1]][0]),f.push(N.$),c.push(N._$),ut=w[l[l.length-2]][l[l.length-1]],l.push(ut);break;case 3:return!0}}return!0},"parse")},k=function(){var u={EOF:1,parseError:t(function(s,l){if(this.yy.parser)this.yy.parser.parseError(s,l);else throw Error(s)},"parseError"),setInput:t(function(n,s){if(this.yy=s||this.yy||{},this._input=n,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges)this.yylloc.range=[0,0];return this.offset=0,this},"setInput"),input:t(function(){var n=this._input[0];this.yytext+=n,this.yyleng++,this.offset++,this.match+=n,this.matched+=n;var s=n.match(/(?:\r\n?|\n).*/g);if(s)this.yylineno++,this.yylloc.last_line++;else this.yylloc.last_column++;if(this.options.ranges)this.yylloc.range[1]++;return this._input=this._input.slice(1),n},"input"),unput:t(function(n){var s=n.length,l=n.split(/(?:\r\n?|\n)/g);this._input=n+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-s),this.offset-=s;var d=this.match.split(/(?:\r\n?|\n)/g);if(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),l.length-1)this.yylineno-=l.length-1;var f=this.yylloc.range;if(this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:l?(l.length===d.length?this.yylloc.first_column:0)+d[d.length-l.length].length-l[0].length:this.yylloc.first_column-s},this.options.ranges)this.yylloc.range=[f[0],f[0]+this.yyleng-s];return this.yyleng=this.yytext.length,this},"unput"),more:t(function(){return this._more=!0,this},"more"),reject:t(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:t(function(n){this.unput(this.match.slice(n))},"less"),pastInput:t(function(){var n=this.matched.substr(0,this.matched.length-this.match.length);return(n.length>20?"...":"")+n.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:t(function(){var n=this.match;if(n.length<20)n+=this._input.substr(0,20-n.length);return(n.substr(0,20)+(n.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:t(function(){var n=this.pastInput(),s=Array(n.length+1).join("-");return n+this.upcomingInput()+`
|
|
@@ -135,5 +135,5 @@ Expecting `+Z.join(", ")+", got '"+(this.terminals_[T]||T)+"'";else et="Parse er
|
|
|
135
135
|
.actor-5 {
|
|
136
136
|
${e.actor5?`fill: ${e.actor5}`:""};
|
|
137
137
|
}
|
|
138
|
-
${
|
|
139
|
-
`,"getStyles"),Vt=Ft,at=t(function(e,r){return Oi(e,r)},"drawRect"),Rt=t(function(e,r){let g=e.append("circle").attr("cx",r.cx).attr("cy",r.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),i=e.append("g");i.append("circle").attr("cx",r.cx-5).attr("cy",r.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),i.append("circle").attr("cx",r.cx+5).attr("cy",r.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666");function y(x){let k=Lr().startAngle(Math.PI/2).endAngle(3*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);x.append("path").attr("class","mouth").attr("d",k).attr("transform","translate("+r.cx+","+(r.cy+2)+")")}t(y,"smile");function m(x){let k=Lr().startAngle(3*Math.PI/2).endAngle(5*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);x.append("path").attr("class","mouth").attr("d",k).attr("transform","translate("+r.cx+","+(r.cy+7)+")")}t(m,"sad");function o(x){x.append("line").attr("class","mouth").attr("stroke",2).attr("x1",r.cx-5).attr("y1",r.cy+7).attr("x2",r.cx+5).attr("y2",r.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}if(t(o,"ambivalent"),r.score>3)y(i);else if(r.score<3)m(i);else o(i);return g},"drawFace"),gt=t(function(e,r){let a=e.append("circle");if(a.attr("cx",r.cx),a.attr("cy",r.cy),a.attr("class","actor-"+r.pos),a.attr("fill",r.fill),a.attr("stroke",r.stroke),a.attr("r",r.r),a.class!==void 0)a.attr("class",a.class);if(r.title!==void 0)a.append("title").text(r.title);return a},"drawCircle"),mt=t(function(e,r){return
|
|
138
|
+
${xn()}
|
|
139
|
+
`,"getStyles"),Vt=Ft,at=t(function(e,r){return Oi(e,r)},"drawRect"),Rt=t(function(e,r){let g=e.append("circle").attr("cx",r.cx).attr("cy",r.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),i=e.append("g");i.append("circle").attr("cx",r.cx-5).attr("cy",r.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),i.append("circle").attr("cx",r.cx+5).attr("cy",r.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666");function y(x){let k=Lr().startAngle(Math.PI/2).endAngle(3*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);x.append("path").attr("class","mouth").attr("d",k).attr("transform","translate("+r.cx+","+(r.cy+2)+")")}t(y,"smile");function m(x){let k=Lr().startAngle(3*Math.PI/2).endAngle(5*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);x.append("path").attr("class","mouth").attr("d",k).attr("transform","translate("+r.cx+","+(r.cy+7)+")")}t(m,"sad");function o(x){x.append("line").attr("class","mouth").attr("stroke",2).attr("x1",r.cx-5).attr("y1",r.cy+7).attr("x2",r.cx+5).attr("y2",r.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}if(t(o,"ambivalent"),r.score>3)y(i);else if(r.score<3)m(i);else o(i);return g},"drawFace"),gt=t(function(e,r){let a=e.append("circle");if(a.attr("cx",r.cx),a.attr("cy",r.cy),a.attr("class","actor-"+r.pos),a.attr("fill",r.fill),a.attr("stroke",r.stroke),a.attr("r",r.r),a.class!==void 0)a.attr("class",a.class);if(r.title!==void 0)a.append("title").text(r.title);return a},"drawCircle"),mt=t(function(e,r){return pA(e,r)},"drawText"),Lt=t(function(e,r){function a(i,y,m,o,x){return i+","+y+" "+(i+m)+","+y+" "+(i+m)+","+(y+o-x)+" "+(i+m-x*1.2)+","+(y+o)+" "+i+","+(y+o)}t(a,"genPoints");let g=e.append("polygon");g.attr("points",a(r.x,r.y,50,20,7)),g.attr("class","labelBox"),r.y=r.y+r.labelMargin,r.x=r.x+0.5*r.labelMargin,mt(e,r)},"drawLabel"),Bt=t(function(e,r,a){let g=e.append("g"),i=tr();i.x=r.x,i.y=r.y,i.fill=r.fill,i.width=a.width*r.taskCount+a.diagramMarginX*(r.taskCount-1),i.height=a.height,i.class="journey-section section-type-"+r.num,i.rx=3,i.ry=3,at(g,i),xt(a)(r.text,g,i.x,i.y,i.width,i.height,{class:"journey-section section-type-"+r.num},a,r.colour)},"drawSection"),nt=-1,jt=t(function(e,r,a,g){let i=r.x+a.width/2,y=e.append("g");nt++;let m=450;y.append("line").attr("id",g+"-task"+nt).attr("x1",i).attr("y1",r.y).attr("x2",i).attr("y2",m).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),Rt(y,{cx:i,cy:300+(5-r.score)*30,score:r.score});let o=tr();o.x=r.x,o.y=r.y,o.fill=r.fill,o.width=a.width,o.height=a.height,o.class="task task-type-"+r.num,o.rx=3,o.ry=3,at(y,o);let x=r.x+14;r.people.forEach((k)=>{let b=r.actors[k].color,u={cx:x,cy:r.y,r:7,fill:b,stroke:"#000",title:k,pos:r.actors[k].position};gt(y,u),x+=10}),xt(a)(r.task,y,o.x,o.y,o.width,o.height,{class:"task"},a,r.colour)},"drawTask"),Nt=t(function(e,r){fu(e,r)},"drawBackgroundRect"),xt=function(){function e(i,y,m,o,x,k,b,u){let n=y.append("text").attr("x",m+x/2).attr("y",o+k/2+5).style("font-color",u).style("text-anchor","middle").text(i);g(n,b)}t(e,"byText");function r(i,y,m,o,x,k,b,u,n){let{taskFontSize:s,taskFontFamily:l}=u,d=i.split(/<br\s*\/?>/gi);for(let f=0;f<d.length;f++){let c=f*s-s*(d.length-1)/2,w=y.append("text").attr("x",m+x/2).attr("y",o).attr("fill",n).style("text-anchor","middle").style("font-size",s).style("font-family",l);w.append("tspan").attr("x",m+x/2).attr("dy",c).text(d[f]),w.attr("y",o+k/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),g(w,b)}}t(r,"byTspan");function a(i,y,m,o,x,k,b,u){let n=y.append("switch"),l=n.append("foreignObject").attr("x",m).attr("y",o).attr("width",x).attr("height",k).attr("position","fixed").append("xhtml:div").style("display","table").style("height","100%").style("width","100%");l.append("div").attr("class","label").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(i),r(i,n,m,o,x,k,b,u),g(l,b)}t(a,"byFo");function g(i,y){for(let m in y)if(m in y)i.attr(m,y[m])}return t(g,"_setTextAttrs"),function(i){return i.textPlacement==="fo"?a:i.textPlacement==="old"?e:r}}(),zt=t(function(e,r){nt=-1,e.append("defs").append("marker").attr("id",r+"-arrowhead").attr("refX",5).attr("refY",2).attr("markerWidth",6).attr("markerHeight",4).attr("orient","auto").append("path").attr("d","M 0,0 V 4 L6,2 Z")},"initGraphics"),X={drawRect:at,drawCircle:gt,drawSection:Bt,drawText:mt,drawLabel:Lt,drawTask:jt,drawBackgroundRect:Nt,initGraphics:zt},Wt=t(function(e){Object.keys(e).forEach(function(a){C[a]=e[a]})},"setConf"),I={},J=0;function kt(e){let r=p().journey,a=r.maxLabelWidth;J=0;let g=60;Object.keys(I).forEach((i)=>{let y=I[i].color,m={cx:20,cy:g,r:7,fill:y,stroke:"#000",pos:I[i].position};X.drawCircle(e,m);let o=e.append("text").attr("visibility","hidden").text(i),x=o.node().getBoundingClientRect().width;o.remove();let k=[];if(x<=a)k=[i];else{let b=i.split(" "),u="";if(o=e.append("text").attr("visibility","hidden"),b.forEach((n)=>{let s=u?`${u} ${n}`:n;if(o.text(s),o.node().getBoundingClientRect().width>a){if(u)k.push(u);if(u=n,o.text(n),o.node().getBoundingClientRect().width>a){let d="";for(let f of n)if(d+=f,o.text(d+"-"),o.node().getBoundingClientRect().width>a)k.push(d.slice(0,-1)+"-"),d=f;u=d}}else u=s}),u)k.push(u);o.remove()}k.forEach((b,u)=>{let n={x:40,y:g+7+u*20,fill:"#666",text:b,textMargin:r.boxTextMargin??5},l=X.drawText(e,n).node().getBoundingClientRect().width;if(l>J&&l>r.leftMargin-l)J=l}),g+=Math.max(20,k.length*20)})}t(kt,"drawActorLegend");var C=p().journey,F=0,Ot=t(function(e,r,a,g){let i=p(),y=i.journey.titleColor,m=i.journey.titleFontSize,o=i.journey.titleFontFamily,x=i.securityLevel,k;if(x==="sandbox")k=h("#i"+r);let b=x==="sandbox"?h(k.nodes()[0].contentDocument.body):h("body");E.init();let u=b.select("#"+r);X.initGraphics(u,r);let n=g.db.getTasks(),s=g.db.getDiagramTitle(),l=g.db.getActors();for(let A in I)delete I[A];let d=0;l.forEach((A)=>{I[A]={color:C.actorColours[d%C.actorColours.length],position:d},d++}),kt(u),F=C.leftMargin+J,E.insert(0,0,F,Object.keys(I).length*50),Yt(u,n,0,r);let f=E.getBounds();if(s)u.append("text").text(s).attr("x",F).attr("font-size",m).attr("font-weight","bold").attr("y",25).attr("fill",y).attr("font-family",o);let c=f.stopy-f.starty+2*C.diagramMarginY,w=F+f.stopx+2*C.diagramMarginX;te(u,c,w,C.useMaxWidth),u.append("line").attr("x1",F).attr("y1",C.height*4).attr("x2",w-F-4).attr("y2",C.height*4).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#"+r+"-arrowhead)");let _=s?70:0;u.attr("viewBox",`${f.startx} -25 ${w} ${c+_}`),u.attr("preserveAspectRatio","xMinYMin meet"),u.attr("height",c+_+25)},"draw"),E={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],init:t(function(){this.sequenceItems=[],this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0},"init"),updateVal:t(function(e,r,a,g){if(e[r]===void 0)e[r]=a;else e[r]=g(a,e[r])},"updateVal"),updateBounds:t(function(e,r,a,g){let i=p().journey,y=this,m=0;function o(x){return t(function(b){m++;let u=y.sequenceItems.length-m+1;if(y.updateVal(b,"starty",r-u*i.boxMargin,Math.min),y.updateVal(b,"stopy",g+u*i.boxMargin,Math.max),y.updateVal(E.data,"startx",e-u*i.boxMargin,Math.min),y.updateVal(E.data,"stopx",a+u*i.boxMargin,Math.max),x!=="activation")y.updateVal(b,"startx",e-u*i.boxMargin,Math.min),y.updateVal(b,"stopx",a+u*i.boxMargin,Math.max),y.updateVal(E.data,"starty",r-u*i.boxMargin,Math.min),y.updateVal(E.data,"stopy",g+u*i.boxMargin,Math.max)},"updateItemBounds")}t(o,"updateFn"),this.sequenceItems.forEach(o())},"updateBounds"),insert:t(function(e,r,a,g){let i=Math.min(e,a),y=Math.max(e,a),m=Math.min(r,g),o=Math.max(r,g);this.updateVal(E.data,"startx",i,Math.min),this.updateVal(E.data,"starty",m,Math.min),this.updateVal(E.data,"stopx",y,Math.max),this.updateVal(E.data,"stopy",o,Math.max),this.updateBounds(i,m,y,o)},"insert"),bumpVerticalPos:t(function(e){this.verticalPos=this.verticalPos+e,this.data.stopy=this.verticalPos},"bumpVerticalPos"),getVerticalPos:t(function(){return this.verticalPos},"getVerticalPos"),getBounds:t(function(){return this.data},"getBounds")},{sectionFills:rt,sectionColours:ft}=C,Yt=t(function(e,r,a,g){let i=p().journey,y="",m=i.height*2+i.diagramMarginY,o=a+m,x=0,k="#CCC",b="black",u=0;for(let[n,s]of r.entries()){if(y!==s.section){k=rt[x%rt.length],u=x%rt.length,b=ft[x%ft.length];let d=0,f=s.section;for(let w=n;w<r.length;w++)if(r[w].section==f)d=d+1;else break;let c={x:n*i.taskMargin+n*i.width+F,y:50,text:s.section,fill:k,num:u,colour:b,taskCount:d};X.drawSection(e,c,i),y=s.section,x++}let l=s.people.reduce((d,f)=>{if(I[f])d[f]=I[f];return d},{});s.x=n*i.taskMargin+n*i.width+F,s.y=o,s.width=i.diagramMarginX,s.height=i.diagramMarginY,s.colour=b,s.fill=k,s.num=u,s.actors=l,X.drawTask(e,s,i,g),E.insert(s.x,s.y,s.x+s.width+i.taskMargin,450)}},"drawTasks"),pt={setConf:Wt,draw:Ot},Qt={parser:Tt,db:dt,renderer:pt,styles:Vt,init:t((e)=>{pt.setConf(e.journey),dt.clear()},"init")};export{Qt as diagram};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Xf}from"./index-r8pckaqe.js";export{Xf as default};
|