@jackuait/blok 0.11.0 → 0.11.1
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/README.md +36 -0
- package/dist/blok.cjs +1 -0
- package/dist/blok.iife.js +526 -0
- package/dist/blok.mjs +2 -2
- package/dist/chunks/_basePickBy-mUHvTE6c.cjs +1 -0
- package/dist/chunks/_baseUniq-BP5sM8qF.cjs +1 -0
- package/dist/chunks/am-CyXvGFRE.cjs +1 -0
- package/dist/chunks/ar-BbusVfTp.cjs +1 -0
- package/dist/chunks/arc-lSzOinJz.cjs +1 -0
- package/dist/chunks/architecture-YZFGNWBL-D91d5pcl.cjs +1 -0
- package/dist/chunks/architectureDiagram-Q4EWVU46-CyW5N5Ic.cjs +36 -0
- package/dist/chunks/array-BMXfsgb2.cjs +1 -0
- package/dist/chunks/az-D7MMnw6r.cjs +1 -0
- package/dist/chunks/bg-C3H2Qh_2.cjs +1 -0
- package/dist/chunks/blockDiagram-DXYQGD6D-DmhBCLgd.cjs +132 -0
- package/dist/chunks/blok-CNEP3LpI.cjs +16 -0
- package/dist/chunks/{blok-CUidffof.mjs → blok-DNvzyOYn.mjs} +1 -1
- package/dist/chunks/bn-BGOycYTM.cjs +1 -0
- package/dist/chunks/bs-C7amuK1D.cjs +1 -0
- package/dist/chunks/c-DNJHkQXQ.cjs +1 -0
- package/dist/chunks/c4Diagram-AHTNJAMY-DU2IYTXY.cjs +10 -0
- package/dist/chunks/ccount-DtzbJUOh.cjs +1 -0
- package/dist/chunks/channel-BqhnS5zl.cjs +1 -0
- package/dist/chunks/chunk-2KRD3SAO-COfwt0om.cjs +1 -0
- package/dist/chunks/chunk-336JU56O-CqWDeAp1.cjs +1 -0
- package/dist/chunks/chunk-426QAEUC-MjtXwzdI.cjs +1 -0
- package/dist/chunks/chunk-4BX2VUAB-Zs4zJRk9.cjs +1 -0
- package/dist/chunks/chunk-4TB4RGXK-Bq0teBqe.cjs +206 -0
- package/dist/chunks/chunk-55IACEB6-DyTTYuc2.cjs +1 -0
- package/dist/chunks/chunk-5FUZZQ4R-6rlcIGG-.cjs +62 -0
- package/dist/chunks/chunk-5PVQY5BW-DmATt7Fz.cjs +2 -0
- package/dist/chunks/chunk-67CJDMHE-zWcmgvwZ.cjs +1 -0
- package/dist/chunks/chunk-7N4EOEYR-CAuNhdG9.cjs +1 -0
- package/dist/chunks/chunk-AA7GKIK3-YMbh5HEs.cjs +1 -0
- package/dist/chunks/chunk-BSJP7CBP-CjkEoJDh.cjs +1 -0
- package/dist/chunks/chunk-CIAEETIT-BP9BiKe5.cjs +1 -0
- package/dist/chunks/chunk-EDXVE4YY-Bw1v2mUF.cjs +1 -0
- package/dist/chunks/chunk-ENJZ2VHE-9fAN50L-.cjs +10 -0
- package/dist/chunks/chunk-FMBD7UC4-CH_SSwhS.cjs +15 -0
- package/dist/chunks/chunk-FOC6F5B3-ScFIigAO.cjs +1 -0
- package/dist/chunks/chunk-ICPOFSXX-DQ4NxQTM.cjs +122 -0
- package/dist/chunks/chunk-K5T4RW27-BdGvq1o8.cjs +94 -0
- package/dist/chunks/chunk-KGLVRYIC-uzPiXgAg.cjs +1 -0
- package/dist/chunks/chunk-Kud-AIAt.cjs +1 -0
- package/dist/chunks/chunk-LIHQZDEY-ChgbfPTz.cjs +1 -0
- package/dist/chunks/chunk-ORNJ4GCN-HF28XIop.cjs +1 -0
- package/dist/chunks/chunk-OYMX7WX6-CGUpemDb.cjs +231 -0
- package/dist/chunks/chunk-QZHKN3VN-d_ESXyai.cjs +1 -0
- package/dist/chunks/chunk-U2HBQHQK-D62A_XCV.cjs +70 -0
- package/dist/chunks/chunk-X2U36JSP-BEHpYlmW.cjs +1 -0
- package/dist/chunks/chunk-XPW4576I-BidQL50C.cjs +32 -0
- package/dist/chunks/chunk-YZCP3GAM-DuLQPyT4.cjs +1 -0
- package/dist/chunks/chunk-ZZ45TVLE-CZOUDLGO.cjs +1 -0
- package/dist/chunks/classDiagram-6PBFFD2Q-GDkPRBlp.cjs +1 -0
- package/dist/chunks/classDiagram-v2-HSJHXN6E-B4vt694Q.cjs +1 -0
- package/dist/chunks/clone-_XTzxdN3.cjs +1 -0
- package/dist/chunks/constants-DJjFgioo.cjs +451 -0
- package/dist/chunks/{constants-C4TrPxXY.mjs → constants-DMsOCPcF.mjs} +1 -1
- package/dist/chunks/core-C8BHLAAO.cjs +12 -0
- package/dist/chunks/cose-bilkent-S5V4N54A-RkR02HV4.cjs +1 -0
- package/dist/chunks/cpp-DVBevX-J.cjs +1 -0
- package/dist/chunks/cs-BUD3Muxp.cjs +1 -0
- package/dist/chunks/csharp-CHUT4JOq.cjs +1 -0
- package/dist/chunks/css-QEheyxtB.cjs +1 -0
- package/dist/chunks/cytoscape.esm-CjWrb5SM.cjs +321 -0
- package/dist/chunks/da-CO2FYbLa.cjs +1 -0
- package/dist/chunks/dagre-KV5264BT-B5pZgbkN.cjs +4 -0
- package/dist/chunks/dagre-VHP8Ngkv.cjs +1 -0
- package/dist/chunks/dart-jPH5d8ma.cjs +1 -0
- package/dist/chunks/de-B8nkOjfD.cjs +1 -0
- package/dist/chunks/default-DP8dtTxC.cjs +1 -0
- package/dist/chunks/defaultLocale-BxWls4I1.cjs +1 -0
- package/dist/chunks/diagram-5BDNPKRD-C1llOHQP.cjs +10 -0
- package/dist/chunks/diagram-G4DWMVQ6-CLdEGHkn.cjs +24 -0
- package/dist/chunks/diagram-MMDJMWI5-CnbiCUM3.cjs +43 -0
- package/dist/chunks/diagram-TYMM5635-BtMB4AKf.cjs +24 -0
- package/dist/chunks/dist-CxdzFxpy.cjs +1 -0
- package/dist/chunks/dockerfile-B2jMQOes.cjs +1 -0
- package/dist/chunks/el-D2ILhp1-.cjs +1 -0
- package/dist/chunks/engine-javascript-HHRWd9yA.cjs +141 -0
- package/dist/chunks/erDiagram-SMLLAGMA-luvZB3lF.cjs +85 -0
- package/dist/chunks/es-DXxnOS9P.cjs +1 -0
- package/dist/chunks/et-mT4xnDc7.cjs +1 -0
- package/dist/chunks/fa-D9CUFSHX.cjs +1 -0
- package/dist/chunks/fi-DpCqdl_1.cjs +1 -0
- package/dist/chunks/fil-BjeZREJI.cjs +1 -0
- package/dist/chunks/flowDiagram-DWJPFMVM-BpYbAeYP.cjs +162 -0
- package/dist/chunks/fr-DYmwW1y1.cjs +1 -0
- package/dist/chunks/ganttDiagram-T4ZO3ILL-BaWZufgI.cjs +292 -0
- package/dist/chunks/gitGraph-7Q5UKJZL-Ds_Z9h4o.cjs +1 -0
- package/dist/chunks/gitGraphDiagram-UUTBAWPF-DjMU1Vyg.cjs +106 -0
- package/dist/chunks/go-BX-cNLGO.cjs +1 -0
- package/dist/chunks/graphlib-CYv_-0LK.cjs +1 -0
- package/dist/chunks/graphql-BnxAS09v.cjs +1 -0
- package/dist/chunks/gu-4g6NA9h8.cjs +1 -0
- package/dist/chunks/he-2H5DcbO0.cjs +1 -0
- package/dist/chunks/hi-Dvb4O5oj.cjs +1 -0
- package/dist/chunks/hr-B4Y5vULZ.cjs +1 -0
- package/dist/chunks/html-CAN0GHkJ.cjs +1 -0
- package/dist/chunks/hu-D3Pi7CJx.cjs +1 -0
- package/dist/chunks/hy-DZ74SDlC.cjs +1 -0
- package/dist/chunks/i18next-CkovSPO7.cjs +1 -0
- package/dist/chunks/i18next-loader-cGwOOjK3.cjs +1 -0
- package/dist/chunks/id-WfjZeYKN.cjs +1 -0
- package/dist/chunks/info-OMHHGYJF-u0RRQ9Uo.cjs +1 -0
- package/dist/chunks/infoDiagram-42DDH7IO-DOYkYMWg.cjs +2 -0
- package/dist/chunks/init-BvlcnoG2.cjs +1 -0
- package/dist/chunks/isArrayLikeObject-CnaR8YJm.cjs +1 -0
- package/dist/chunks/isEmpty-BHdznGlG.cjs +1 -0
- package/dist/chunks/ishikawaDiagram-UXIWVN3A-CbqoivFu.cjs +70 -0
- package/dist/chunks/it-hqsqt6f7.cjs +1 -0
- package/dist/chunks/ja-BwLgKsdH.cjs +1 -0
- package/dist/chunks/java-O-rzZ2Bn.cjs +1 -0
- package/dist/chunks/javascript-z9G2vOAZ.cjs +1 -0
- package/dist/chunks/journeyDiagram-VCZTEJTY-B5Peb7wS.cjs +139 -0
- package/dist/chunks/json-C_epQRuA.cjs +1 -0
- package/dist/chunks/ka-xoKako16.cjs +1 -0
- package/dist/chunks/kanban-definition-6JOO6SKY-CwmSo6Ve.cjs +89 -0
- package/dist/chunks/katex-_C7fvrbX.cjs +265 -0
- package/dist/chunks/km-D7Fl8wAA.cjs +1 -0
- package/dist/chunks/kn-Ckju1oeq.cjs +1 -0
- package/dist/chunks/ko-Dt1tQEjC.cjs +1 -0
- package/dist/chunks/kotlin-Dj7KFgV1.cjs +1 -0
- package/dist/chunks/ku-_i2C5XD5.cjs +1 -0
- package/dist/chunks/latex-u7qVP95p.cjs +1 -0
- package/dist/chunks/lightweight-i18n-CGBjC2TJ.cjs +1 -0
- package/dist/chunks/line-B7XG48Uf.cjs +1 -0
- package/dist/chunks/linear-D5j5Vgij.cjs +1 -0
- package/dist/chunks/lo-DfEpgG9m.cjs +1 -0
- package/dist/chunks/lt-BwLILIED.cjs +1 -0
- package/dist/chunks/lua-6ceNckPi.cjs +1 -0
- package/dist/chunks/lv-DdrYab3x.cjs +1 -0
- package/dist/chunks/markdown-Vce1p-mO.cjs +1 -0
- package/dist/chunks/mdast-util-math-B9OHoBuN.cjs +5 -0
- package/dist/chunks/mermaid-Cu5vPKfS.cjs +1 -0
- package/dist/chunks/mermaid-parser.core-BrZQFEht.cjs +3 -0
- package/dist/chunks/mermaid.core-GiTRPJLF.cjs +10 -0
- package/dist/chunks/messages--CbdZY2w.cjs +1 -0
- package/dist/chunks/messages-1hpCmcb5.cjs +1 -0
- package/dist/chunks/messages-4_3WFJMy2.cjs +1 -0
- package/dist/chunks/messages-ADxG1iWK2.cjs +1 -0
- package/dist/chunks/messages-B3MONaxw2.cjs +1 -0
- package/dist/chunks/messages-B3tNgyxG2.cjs +1 -0
- package/dist/chunks/messages-B91FdwB0.cjs +1 -0
- package/dist/chunks/messages-B9igXgiw.cjs +1 -0
- package/dist/chunks/messages-BB1xM_oB.cjs +1 -0
- package/dist/chunks/messages-BGZLiYrQ.cjs +1 -0
- package/dist/chunks/messages-BK6gK3wu.cjs +1 -0
- package/dist/chunks/messages-BKmAFG9Z.cjs +1 -0
- package/dist/chunks/messages-BMVJq-1T.cjs +1 -0
- package/dist/chunks/messages-BMsqJNz0.cjs +1 -0
- package/dist/chunks/messages-BSVhckNg.cjs +1 -0
- package/dist/chunks/messages-BUaHDggs.cjs +1 -0
- package/dist/chunks/messages-BUaJv5qS.cjs +1 -0
- package/dist/chunks/messages-BXcSH14N.cjs +1 -0
- package/dist/chunks/messages-BYOYrUOu.cjs +1 -0
- package/dist/chunks/messages-BYSE1Iq2.cjs +1 -0
- package/dist/chunks/messages-Bb225KE6.cjs +1 -0
- package/dist/chunks/messages-BiDR95AW.cjs +1 -0
- package/dist/chunks/messages-BkAoxm6t.cjs +1 -0
- package/dist/chunks/messages-BpUasRQ3.cjs +1 -0
- package/dist/chunks/messages-BxV8K7y42.cjs +1 -0
- package/dist/chunks/messages-Bxhns4Ui.cjs +1 -0
- package/dist/chunks/messages-C0sxGmLV2.cjs +1 -0
- package/dist/chunks/messages-C5nqE8O42.cjs +1 -0
- package/dist/chunks/messages-C7il6l-S.cjs +1 -0
- package/dist/chunks/messages-CFyGEGXM2.cjs +1 -0
- package/dist/chunks/messages-CN2yjHzW.cjs +1 -0
- package/dist/chunks/messages-CTy_3-mw2.cjs +1 -0
- package/dist/chunks/messages-C_ogasse2.cjs +1 -0
- package/dist/chunks/messages-CbFuceEb.cjs +1 -0
- package/dist/chunks/messages-CbbYb7cc.cjs +1 -0
- package/dist/chunks/messages-CfO5kKI72.cjs +1 -0
- package/dist/chunks/messages-Cgv5DuNV.cjs +1 -0
- package/dist/chunks/messages-CkBrRFY02.cjs +1 -0
- package/dist/chunks/messages-CpppvIiu.cjs +1 -0
- package/dist/chunks/messages-D8-vyZ2V.cjs +1 -0
- package/dist/chunks/messages-DIpVfyX-2.cjs +1 -0
- package/dist/chunks/messages-DJBeEI7G.cjs +1 -0
- package/dist/chunks/messages-DR8nFHdw2.cjs +1 -0
- package/dist/chunks/messages-DT5Ux3el.cjs +1 -0
- package/dist/chunks/messages-Da2SYMf52.cjs +1 -0
- package/dist/chunks/messages-DaaqkvOz2.cjs +1 -0
- package/dist/chunks/messages-DdiqfVCc.cjs +1 -0
- package/dist/chunks/messages-DfZe7SKZ.cjs +1 -0
- package/dist/chunks/messages-DkJ0bcqu.cjs +1 -0
- package/dist/chunks/messages-DkmG49t8.cjs +1 -0
- package/dist/chunks/messages-Do4o9ckW.cjs +1 -0
- package/dist/chunks/messages-DrbTe09r.cjs +1 -0
- package/dist/chunks/messages-DtgIZDlN.cjs +1 -0
- package/dist/chunks/messages-DxCaGN-Q2.cjs +1 -0
- package/dist/chunks/messages-DxpBJ5ZY.cjs +1 -0
- package/dist/chunks/messages-DyWu9_0D.cjs +1 -0
- package/dist/chunks/messages-Hg0BECWK.cjs +1 -0
- package/dist/chunks/messages-JlduXweH2.cjs +1 -0
- package/dist/chunks/messages-Km2PU_o7.cjs +1 -0
- package/dist/chunks/messages-MgJnGL9X2.cjs +1 -0
- package/dist/chunks/messages-PIoKW4js2.cjs +1 -0
- package/dist/chunks/messages-VEm9mp5H.cjs +1 -0
- package/dist/chunks/messages-WgwkG5PL2.cjs +1 -0
- package/dist/chunks/messages-X46KAUoI.cjs +1 -0
- package/dist/chunks/messages-ZZd1ckSO2.cjs +1 -0
- package/dist/chunks/messages-vRqPeNM_.cjs +1 -0
- package/dist/chunks/messages-vhq442qv.cjs +1 -0
- package/dist/chunks/micromark-extension-math-BXJknrtf.cjs +1 -0
- package/dist/chunks/micromark-factory-space-BnsBDplI.cjs +1 -0
- package/dist/chunks/mindmap-definition-QFDTVHPH-6O8s-b35.cjs +96 -0
- package/dist/chunks/mk-CsPHE4cO.cjs +1 -0
- package/dist/chunks/ml-CAsiw8BP.cjs +1 -0
- package/dist/chunks/mn-Db6DwHPv.cjs +1 -0
- package/dist/chunks/mr-BBAuoEIQ.cjs +1 -0
- package/dist/chunks/ms-Cfv7BOEG.cjs +1 -0
- package/dist/chunks/my-DOLHceI8.cjs +1 -0
- package/dist/chunks/native-DbFHGXp1.cjs +1 -0
- package/dist/chunks/ne-B2gHspK_.cjs +1 -0
- package/dist/chunks/nl-C5ezxTkA.cjs +1 -0
- package/dist/chunks/no-D4hjenPs.cjs +1 -0
- package/dist/chunks/notifier-CwnFVNdD.cjs +1 -0
- package/dist/chunks/objectSpread2-iNkE6aJh.cjs +1 -0
- package/dist/chunks/objectWithoutProperties-BbzyiphF.cjs +1 -0
- package/dist/chunks/one-light-D2mpnHEP.cjs +1 -0
- package/dist/chunks/ordinal-DFFZs5-y.cjs +1 -0
- package/dist/chunks/pa-CemLebw7.cjs +1 -0
- package/dist/chunks/packet-4T2RLAQJ-B5XvZd2W.cjs +1 -0
- package/dist/chunks/path-CLcQoP7n.cjs +1 -0
- package/dist/chunks/php-BMavm1CR.cjs +1 -0
- package/dist/chunks/pie-ZZUOXDRM-SOG0aDPa.cjs +1 -0
- package/dist/chunks/pieDiagram-DEJITSTG-BkEwYBz9.cjs +30 -0
- package/dist/chunks/pl-D_sFAkCs.cjs +1 -0
- package/dist/chunks/ps-ygHHO68A.cjs +1 -0
- package/dist/chunks/pt-x_mmaTtD.cjs +1 -0
- package/dist/chunks/python-Dcoit5Q5.cjs +1 -0
- package/dist/chunks/quadrantDiagram-34T5L4WZ-RJme4lkz.cjs +7 -0
- package/dist/chunks/r-BdDCwgEs.cjs +1 -0
- package/dist/chunks/radar-PYXPWWZC-Doch8Lt3.cjs +1 -0
- package/dist/chunks/requirementDiagram-MS252O5E-CMqFsK_K.cjs +84 -0
- package/dist/chunks/ro-CLGSgHzJ.cjs +1 -0
- package/dist/chunks/rough.esm-BaIXPgTh.cjs +1 -0
- package/dist/chunks/ru-LpaLXWmO.cjs +1 -0
- package/dist/chunks/ruby-DHm8_lqY.cjs +1 -0
- package/dist/chunks/rust-Cdm0j4IC.cjs +1 -0
- package/dist/chunks/sankeyDiagram-XADWPNL6-BPaUkDQv.cjs +10 -0
- package/dist/chunks/scala-Tb1u_9W3.cjs +1 -0
- package/dist/chunks/sd-B5PS8K1I.cjs +1 -0
- package/dist/chunks/sequenceDiagram-FGHM5R23-DbM-gyMR.cjs +157 -0
- package/dist/chunks/shellscript-D6KsENaG.cjs +1 -0
- package/dist/chunks/si-BjMoO5xu.cjs +1 -0
- package/dist/chunks/sk-pQPYnDDU.cjs +1 -0
- package/dist/chunks/sl-B_yalM3h.cjs +1 -0
- package/dist/chunks/sq-gzZkHXFJ.cjs +1 -0
- package/dist/chunks/sql-BlpbD7FB.cjs +1 -0
- package/dist/chunks/sr-O4v1KJY1.cjs +1 -0
- package/dist/chunks/src-d9yswOqA.cjs +1 -0
- package/dist/chunks/stateDiagram-FHFEXIEX-CEcLtV9Z.cjs +1 -0
- package/dist/chunks/stateDiagram-v2-QKLJ7IA2-aa692V81.cjs +1 -0
- package/dist/chunks/sv-D0tEFwN7.cjs +1 -0
- package/dist/chunks/sw-DE8oPVEt.cjs +1 -0
- package/dist/chunks/swift-DubrdZus.cjs +1 -0
- package/dist/chunks/ta-BCVLtFMU.cjs +1 -0
- package/dist/chunks/te-BISdOeGS.cjs +1 -0
- package/dist/chunks/th-CJXhSA-L.cjs +1 -0
- package/dist/chunks/timeline-definition-GMOUNBTQ-ceXDJGg_.cjs +120 -0
- package/dist/chunks/{tools-CmNY86rS.mjs → tools-DPov06L-.mjs} +1 -1
- package/dist/chunks/tools-NAqHj-Cy.cjs +9 -0
- package/dist/chunks/tr-BjTvmhJt.cjs +1 -0
- package/dist/chunks/treeView-SZITEDCU-BUuSm_Hn.cjs +1 -0
- package/dist/chunks/treemap-W4RFUUIX-BerKlw0i.cjs +1 -0
- package/dist/chunks/tw-CjHZc17C.cjs +1 -0
- package/dist/chunks/types-BQX8SD8Q.cjs +1 -0
- package/dist/chunks/typescript-BKtlqLze.cjs +1 -0
- package/dist/chunks/ug-DsQjxbOa.cjs +1 -0
- package/dist/chunks/uk-BPzbNIjw.cjs +1 -0
- package/dist/chunks/ur-Do8k1hR-.cjs +1 -0
- package/dist/chunks/vennDiagram-DHZGUBPP-BzOeMJe8.cjs +34 -0
- package/dist/chunks/vi-CCTEx9XR.cjs +1 -0
- package/dist/chunks/vitesse-dark-BSL-cCXL.cjs +1 -0
- package/dist/chunks/wardley-RL74JXVD-BzKtPJ3g.cjs +1 -0
- package/dist/chunks/wardleyDiagram-NUSXRM2D-qo6LFohO.cjs +20 -0
- package/dist/chunks/xml-CwiH0x4E.cjs +1 -0
- package/dist/chunks/xychartDiagram-5P7HB3ND-CH1Z2Cbf.cjs +7 -0
- package/dist/chunks/yaml-CkVxfQ4c.cjs +1 -0
- package/dist/chunks/zh-Ive4on8E.cjs +1 -0
- package/dist/full.cjs +1 -0
- package/dist/full.mjs +3 -3
- package/dist/markdown.cjs +3 -0
- package/dist/react.cjs +1 -0
- package/dist/react.mjs +2 -2
- package/dist/tools.cjs +1 -0
- package/dist/tools.mjs +2 -2
- package/package.json +17 -8
|
@@ -0,0 +1,292 @@
|
|
|
1
|
+
const e=require(`./chunk-Kud-AIAt.cjs`),t=require(`./chunk-5PVQY5BW-DmATt7Fz.cjs`),n=require(`./src-d9yswOqA.cjs`),r=require(`./chunk-ICPOFSXX-DQ4NxQTM.cjs`),i=require(`./linear-D5j5Vgij.cjs`);require(`./defaultLocale-BxWls4I1.cjs`);const a=require(`./init-BvlcnoG2.cjs`),o=require(`./dist-CxdzFxpy.cjs`);function s(e,t){let n;if(t===void 0)for(let t of e)t!=null&&(n<t||n===void 0&&t>=t)&&(n=t);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n<i||n===void 0&&i>=i)&&(n=i)}return n}function c(e,t){let n;if(t===void 0)for(let t of e)t!=null&&(n>t||n===void 0&&t>=t)&&(n=t);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}return n}function l(e){return e}var u=1,d=2,f=3,p=4,m=1e-6;function h(e){return`translate(`+e+`,0)`}function g(e){return`translate(0,`+e+`)`}function _(e){return t=>+e(t)}function v(e,t){return t=Math.max(0,e.bandwidth()-t*2)/2,e.round()&&(t=Math.round(t)),n=>+e(n)+t}function y(){return!this.__axis}function b(e,t){var n=[],r=null,i=null,a=6,o=6,s=3,c=typeof window<`u`&&window.devicePixelRatio>1?0:.5,b=e===u||e===p?-1:1,x=e===p||e===d?`x`:`y`,S=e===u||e===f?h:g;function C(h){var g=r==null?t.ticks?t.ticks.apply(t,n):t.domain():r,C=i==null?t.tickFormat?t.tickFormat.apply(t,n):l:i,w=Math.max(a,0)+s,T=t.range(),E=+T[0]+c,D=+T[T.length-1]+c,O=(t.bandwidth?v:_)(t.copy(),c),k=h.selection?h.selection():h,A=k.selectAll(`.domain`).data([null]),j=k.selectAll(`.tick`).data(g,t).order(),M=j.exit(),N=j.enter().append(`g`).attr(`class`,`tick`),ee=j.select(`line`),P=j.select(`text`);A=A.merge(A.enter().insert(`path`,`.tick`).attr(`class`,`domain`).attr(`stroke`,`currentColor`)),j=j.merge(N),ee=ee.merge(N.append(`line`).attr(`stroke`,`currentColor`).attr(x+`2`,b*a)),P=P.merge(N.append(`text`).attr(`fill`,`currentColor`).attr(x,b*w).attr(`dy`,e===u?`0em`:e===f?`0.71em`:`0.32em`)),h!==k&&(A=A.transition(h),j=j.transition(h),ee=ee.transition(h),P=P.transition(h),M=M.transition(h).attr(`opacity`,m).attr(`transform`,function(e){return isFinite(e=O(e))?S(e+c):this.getAttribute(`transform`)}),N.attr(`opacity`,m).attr(`transform`,function(e){var t=this.parentNode.__axis;return S((t&&isFinite(t=t(e))?t:O(e))+c)})),M.remove(),A.attr(`d`,e===p||e===d?o?`M`+b*o+`,`+E+`H`+c+`V`+D+`H`+b*o:`M`+c+`,`+E+`V`+D:o?`M`+E+`,`+b*o+`V`+c+`H`+D+`V`+b*o:`M`+E+`,`+c+`H`+D),j.attr(`opacity`,1).attr(`transform`,function(e){return S(O(e)+c)}),ee.attr(x+`2`,b*a),P.attr(x,b*w).text(C),k.filter(y).attr(`fill`,`none`).attr(`font-size`,10).attr(`font-family`,`sans-serif`).attr(`text-anchor`,e===d?`start`:e===p?`end`:`middle`),k.each(function(){this.__axis=O})}return C.scale=function(e){return arguments.length?(t=e,C):t},C.ticks=function(){return n=Array.from(arguments),C},C.tickArguments=function(e){return arguments.length?(n=e==null?[]:Array.from(e),C):n.slice()},C.tickValues=function(e){return arguments.length?(r=e==null?null:Array.from(e),C):r&&r.slice()},C.tickFormat=function(e){return arguments.length?(i=e,C):i},C.tickSize=function(e){return arguments.length?(a=o=+e,C):a},C.tickSizeInner=function(e){return arguments.length?(a=+e,C):a},C.tickSizeOuter=function(e){return arguments.length?(o=+e,C):o},C.tickPadding=function(e){return arguments.length?(s=+e,C):s},C.offset=function(e){return arguments.length?(c=+e,C):c},C}function x(e){return b(u,e)}function S(e){return b(f,e)}var C=Math.PI/180,w=180/Math.PI,T=18,E=.96422,D=1,O=.82521,k=4/29,A=6/29,j=3*A*A,M=A*A*A;function N(e){if(e instanceof P)return new P(e.l,e.a,e.b,e.opacity);if(e instanceof F)return se(e);e instanceof n.c||(e=n.u(e));var t=ie(e.r),r=ie(e.g),i=ie(e.b),a=te((.2225045*t+.7168786*r+.0606169*i)/D),o,s;return t===r&&r===i?o=s=a:(o=te((.4360747*t+.3850649*r+.1430804*i)/E),s=te((.0139322*t+.0971045*r+.7141733*i)/O)),new P(116*a-16,500*(o-a),200*(a-s),e.opacity)}function ee(e,t,n,r){return arguments.length===1?N(e):new P(e,t,n,r==null?1:r)}function P(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}n.d(P,ee,n.f(n.s,{brighter(e){return new P(this.l+T*(e==null?1:e),this.a,this.b,this.opacity)},darker(e){return new P(this.l-T*(e==null?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,r=isNaN(this.b)?e:e-this.b/200;return t=E*ne(t),e=D*ne(e),r=O*ne(r),new n.c(re(3.1338561*t-1.6168667*e-.4906146*r),re(-.9787684*t+1.9161415*e+.033454*r),re(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}}));function te(e){return e>M?e**(1/3):e/j+k}function ne(e){return e>A?e*e*e:j*(e-k)}function re(e){return 255*(e<=.0031308?12.92*e:1.055*e**(1/2.4)-.055)}function ie(e){return(e/=255)<=.04045?e/12.92:((e+.055)/1.055)**2.4}function ae(e){if(e instanceof F)return new F(e.h,e.c,e.l,e.opacity);if(e instanceof P||(e=N(e)),e.a===0&&e.b===0)return new F(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*w;return new F(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function oe(e,t,n,r){return arguments.length===1?ae(e):new F(e,t,n,r==null?1:r)}function F(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function se(e){if(isNaN(e.h))return new P(e.l,0,0,e.opacity);var t=e.h*C;return new P(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}n.d(F,oe,n.f(n.s,{brighter(e){return new F(this.h,this.c,this.l+T*(e==null?1:e),this.opacity)},darker(e){return new F(this.h,this.c,this.l-T*(e==null?1:e),this.opacity)},rgb(){return se(this).rgb()}}));function ce(e){return function(t,r){var i=e((t=oe(t)).h,(r=oe(r)).h),a=n.a(t.c,r.c),o=n.a(t.l,r.l),s=n.a(t.opacity,r.opacity);return function(e){return t.h=i(e),t.c=a(e),t.l=o(e),t.opacity=s(e),t+``}}}var le=ce(n.i);n.a;function ue(e,t){e=e.slice();var n=0,r=e.length-1,i=e[n],a=e[r],o;return a<i&&(o=n,n=r,r=o,o=i,i=a,a=o),e[n]=t.floor(i),e[r]=t.ceil(a),e}var de=new Date,fe=new Date;function I(e,t,n,r){function i(t){return e(t=arguments.length===0?new Date:new Date(+t)),t}return i.floor=t=>(e(t=new Date(+t)),t),i.ceil=n=>(e(n=new Date(n-1)),t(n,1),e(n),n),i.round=e=>{let t=i(e),n=i.ceil(e);return e-t<n-e?t:n},i.offset=(e,n)=>(t(e=new Date(+e),n==null?1:Math.floor(n)),e),i.range=(n,r,a)=>{let o=[];if(n=i.ceil(n),a=a==null?1:Math.floor(a),!(n<r)||!(a>0))return o;let s;do o.push(s=new Date(+n)),t(n,a),e(n);while(s<n&&n<r);return o},i.filter=n=>I(t=>{if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)},(e,r)=>{if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}),n&&(i.count=(t,r)=>(de.setTime(+t),fe.setTime(+r),e(de),e(fe),Math.floor(n(de,fe))),i.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?i.filter(r?t=>r(t)%e===0:t=>i.count(0,t)%e===0):i)),i}var pe=I(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);pe.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?I(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):pe),pe.range;var L=1e3,R=L*60,z=R*60,B=z*24,me=B*7,he=B*30,ge=B*365,V=I(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*L)},(e,t)=>(t-e)/L,e=>e.getUTCSeconds());V.range;var _e=I(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*L)},(e,t)=>{e.setTime(+e+t*R)},(e,t)=>(t-e)/R,e=>e.getMinutes());_e.range;var ve=I(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*R)},(e,t)=>(t-e)/R,e=>e.getUTCMinutes());ve.range;var ye=I(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*L-e.getMinutes()*R)},(e,t)=>{e.setTime(+e+t*z)},(e,t)=>(t-e)/z,e=>e.getHours());ye.range;var be=I(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*z)},(e,t)=>(t-e)/z,e=>e.getUTCHours());be.range;var H=I(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*R)/B,e=>e.getDate()-1);H.range;var xe=I(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/B,e=>e.getUTCDate()-1);xe.range;var Se=I(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/B,e=>Math.floor(e/B));Se.range;function U(e){return I(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(e,t)=>{e.setDate(e.getDate()+t*7)},(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*R)/me)}var Ce=U(0),we=U(1),Te=U(2),Ee=U(3),W=U(4),De=U(5),Oe=U(6);Ce.range,we.range,Te.range,Ee.range,W.range,De.range,Oe.range;function G(e){return I(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t*7)},(e,t)=>(t-e)/me)}var ke=G(0),Ae=G(1),je=G(2),Me=G(3),Ne=G(4),Pe=G(5),Fe=G(6);ke.range,Ae.range,je.range,Me.range,Ne.range,Pe.range,Fe.range;var Ie=I(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());Ie.range;var Le=I(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());Le.range;var K=I(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());K.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:I(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)}),K.range;var q=I(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());q.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:I(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)}),q.range;function Re(e,t,n,r,a,o){let s=[[V,1,L],[V,5,5*L],[V,15,15*L],[V,30,30*L],[o,1,R],[o,5,5*R],[o,15,15*R],[o,30,30*R],[a,1,z],[a,3,3*z],[a,6,6*z],[a,12,12*z],[r,1,B],[r,2,2*B],[n,1,me],[t,1,he],[t,3,3*he],[e,1,ge]];function c(e,t,n){let r=t<e;r&&([e,t]=[t,e]);let i=n&&typeof n.range==`function`?n:l(e,t,n),a=i?i.range(e,+t+1):[];return r?a.reverse():a}function l(t,n,r){let a=Math.abs(n-t)/r,o=i.a(([,,e])=>e).right(s,a);if(o===s.length)return e.every(i.i(t/ge,n/ge,r));if(o===0)return pe.every(Math.max(i.i(t,n,r),1));let[c,l]=s[a/s[o-1][2]<s[o][2]/a?o-1:o];return c.every(l)}return[c,l]}var[ze,Be]=Re(q,Le,ke,Se,be,ve),[Ve,He]=Re(K,Ie,Ce,H,ye,_e);function Ue(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function We(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function Ge(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function Ke(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,a=e.days,o=e.shortDays,s=e.months,c=e.shortMonths,l=Ze(i),u=Qe(i),d=Ze(a),f=Qe(a),p=Ze(o),m=Qe(o),h=Ze(s),g=Qe(s),_=Ze(c),v=Qe(c),y={a:N,A:ee,b:P,B:te,c:null,d:yt,e:yt,f:wt,g:Ft,G:Lt,H:bt,I:xt,j:St,L:Ct,m:Tt,M:Et,p:ne,q:re,Q:sn,s:cn,S:Dt,u:Ot,U:kt,V:jt,w:Mt,W:Nt,x:null,X:null,y:Pt,Y:It,Z:Rt,"%":on},b={a:ie,A:ae,b:oe,B:F,c:null,d:zt,e:zt,f:Wt,g:tn,G:rn,H:Bt,I:Vt,j:Ht,L:Ut,m:Gt,M:Kt,p:se,q:ce,Q:sn,s:cn,S:qt,u:Jt,U:Yt,V:Zt,w:Qt,W:$t,x:null,X:null,y:en,Y:nn,Z:an,"%":on},x={a:E,A:D,b:O,B:k,c:A,d:lt,e:lt,f:ht,g:at,G:it,H:dt,I:dt,j:ut,L:mt,m:ct,M:ft,p:T,q:st,Q:_t,s:vt,S:pt,u:et,U:tt,V:nt,w:$e,W:rt,x:j,X:M,y:at,Y:it,Z:ot,"%":gt};y.x=S(n,y),y.X=S(r,y),y.c=S(t,y),b.x=S(n,b),b.X=S(r,b),b.c=S(t,b);function S(e,t){return function(n){var r=[],i=-1,a=0,o=e.length,s,c,l;for(n instanceof Date||(n=new Date(+n));++i<o;)e.charCodeAt(i)===37&&(r.push(e.slice(a,i)),(c=qe[s=e.charAt(++i)])==null?c=s===`e`?` `:`0`:s=e.charAt(++i),(l=t[s])&&(s=l(n,c)),r.push(s),a=i+1);return r.push(e.slice(a,i)),r.join(``)}}function C(e,t){return function(n){var r=Ge(1900,void 0,1),i=w(r,e,n+=``,0),a,o;if(i!=n.length)return null;if(`Q`in r)return new Date(r.Q);if(`s`in r)return new Date(r.s*1e3+(`L`in r?r.L:0));if(t&&!(`Z`in r)&&(r.Z=0),`p`in r&&(r.H=r.H%12+r.p*12),r.m===void 0&&(r.m=`q`in r?r.q:0),`V`in r){if(r.V<1||r.V>53)return null;`w`in r||(r.w=1),`Z`in r?(a=We(Ge(r.y,0,1)),o=a.getUTCDay(),a=o>4||o===0?Ae.ceil(a):Ae(a),a=xe.offset(a,(r.V-1)*7),r.y=a.getUTCFullYear(),r.m=a.getUTCMonth(),r.d=a.getUTCDate()+(r.w+6)%7):(a=Ue(Ge(r.y,0,1)),o=a.getDay(),a=o>4||o===0?we.ceil(a):we(a),a=H.offset(a,(r.V-1)*7),r.y=a.getFullYear(),r.m=a.getMonth(),r.d=a.getDate()+(r.w+6)%7)}else (`W`in r||`U`in r)&&(`w`in r||(r.w=`u`in r?r.u%7:`W`in r?1:0),o=`Z`in r?We(Ge(r.y,0,1)).getUTCDay():Ue(Ge(r.y,0,1)).getDay(),r.m=0,r.d=`W`in r?(r.w+6)%7+r.W*7-(o+5)%7:r.w+r.U*7-(o+6)%7);return`Z`in r?(r.H+=r.Z/100|0,r.M+=r.Z%100,We(r)):Ue(r)}}function w(e,t,n,r){for(var i=0,a=t.length,o=n.length,s,c;i<a;){if(r>=o)return-1;if(s=t.charCodeAt(i++),s===37){if(s=t.charAt(i++),c=x[s in qe?t.charAt(i++):s],!c||(r=c(e,n,r))<0)return-1}else if(s!=n.charCodeAt(r++))return-1}return r}function T(e,t,n){var r=l.exec(t.slice(n));return r?(e.p=u.get(r[0].toLowerCase()),n+r[0].length):-1}function E(e,t,n){var r=p.exec(t.slice(n));return r?(e.w=m.get(r[0].toLowerCase()),n+r[0].length):-1}function D(e,t,n){var r=d.exec(t.slice(n));return r?(e.w=f.get(r[0].toLowerCase()),n+r[0].length):-1}function O(e,t,n){var r=_.exec(t.slice(n));return r?(e.m=v.get(r[0].toLowerCase()),n+r[0].length):-1}function k(e,t,n){var r=h.exec(t.slice(n));return r?(e.m=g.get(r[0].toLowerCase()),n+r[0].length):-1}function A(e,n,r){return w(e,t,n,r)}function j(e,t,r){return w(e,n,t,r)}function M(e,t,n){return w(e,r,t,n)}function N(e){return o[e.getDay()]}function ee(e){return a[e.getDay()]}function P(e){return c[e.getMonth()]}function te(e){return s[e.getMonth()]}function ne(e){return i[+(e.getHours()>=12)]}function re(e){return 1+~~(e.getMonth()/3)}function ie(e){return o[e.getUTCDay()]}function ae(e){return a[e.getUTCDay()]}function oe(e){return c[e.getUTCMonth()]}function F(e){return s[e.getUTCMonth()]}function se(e){return i[+(e.getUTCHours()>=12)]}function ce(e){return 1+~~(e.getUTCMonth()/3)}return{format:function(e){var t=S(e+=``,y);return t.toString=function(){return e},t},parse:function(e){var t=C(e+=``,!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=S(e+=``,b);return t.toString=function(){return e},t},utcParse:function(e){var t=C(e+=``,!0);return t.toString=function(){return e},t}}}var qe={"-":``,_:` `,0:`0`},J=/^\s*\d+/,Je=/^%/,Ye=/[\\^$*+?|[\]().{}]/g;function Y(e,t,n){var r=e<0?`-`:``,i=(r?-e:e)+``,a=i.length;return r+(a<n?Array(n-a+1).join(t)+i:i)}function Xe(e){return e.replace(Ye,`\\$&`)}function Ze(e){return RegExp(`^(?:`+e.map(Xe).join(`|`)+`)`,`i`)}function Qe(e){return new Map(e.map((e,t)=>[e.toLowerCase(),t]))}function $e(e,t,n){var r=J.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function et(e,t,n){var r=J.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function tt(e,t,n){var r=J.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function nt(e,t,n){var r=J.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function rt(e,t,n){var r=J.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function it(e,t,n){var r=J.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function at(e,t,n){var r=J.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function ot(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||`00`)),n+r[0].length):-1}function st(e,t,n){var r=J.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function ct(e,t,n){var r=J.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function lt(e,t,n){var r=J.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function ut(e,t,n){var r=J.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function dt(e,t,n){var r=J.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function ft(e,t,n){var r=J.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function pt(e,t,n){var r=J.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function mt(e,t,n){var r=J.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function ht(e,t,n){var r=J.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function gt(e,t,n){var r=Je.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function _t(e,t,n){var r=J.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function vt(e,t,n){var r=J.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function yt(e,t){return Y(e.getDate(),t,2)}function bt(e,t){return Y(e.getHours(),t,2)}function xt(e,t){return Y(e.getHours()%12||12,t,2)}function St(e,t){return Y(1+H.count(K(e),e),t,3)}function Ct(e,t){return Y(e.getMilliseconds(),t,3)}function wt(e,t){return Ct(e,t)+`000`}function Tt(e,t){return Y(e.getMonth()+1,t,2)}function Et(e,t){return Y(e.getMinutes(),t,2)}function Dt(e,t){return Y(e.getSeconds(),t,2)}function Ot(e){var t=e.getDay();return t===0?7:t}function kt(e,t){return Y(Ce.count(K(e)-1,e),t,2)}function At(e){var t=e.getDay();return t>=4||t===0?W(e):W.ceil(e)}function jt(e,t){return e=At(e),Y(W.count(K(e),e)+(K(e).getDay()===4),t,2)}function Mt(e){return e.getDay()}function Nt(e,t){return Y(we.count(K(e)-1,e),t,2)}function Pt(e,t){return Y(e.getFullYear()%100,t,2)}function Ft(e,t){return e=At(e),Y(e.getFullYear()%100,t,2)}function It(e,t){return Y(e.getFullYear()%1e4,t,4)}function Lt(e,t){var n=e.getDay();return e=n>=4||n===0?W(e):W.ceil(e),Y(e.getFullYear()%1e4,t,4)}function Rt(e){var t=e.getTimezoneOffset();return(t>0?`-`:(t*=-1,`+`))+Y(t/60|0,`0`,2)+Y(t%60,`0`,2)}function zt(e,t){return Y(e.getUTCDate(),t,2)}function Bt(e,t){return Y(e.getUTCHours(),t,2)}function Vt(e,t){return Y(e.getUTCHours()%12||12,t,2)}function Ht(e,t){return Y(1+xe.count(q(e),e),t,3)}function Ut(e,t){return Y(e.getUTCMilliseconds(),t,3)}function Wt(e,t){return Ut(e,t)+`000`}function Gt(e,t){return Y(e.getUTCMonth()+1,t,2)}function Kt(e,t){return Y(e.getUTCMinutes(),t,2)}function qt(e,t){return Y(e.getUTCSeconds(),t,2)}function Jt(e){var t=e.getUTCDay();return t===0?7:t}function Yt(e,t){return Y(ke.count(q(e)-1,e),t,2)}function Xt(e){var t=e.getUTCDay();return t>=4||t===0?Ne(e):Ne.ceil(e)}function Zt(e,t){return e=Xt(e),Y(Ne.count(q(e),e)+(q(e).getUTCDay()===4),t,2)}function Qt(e){return e.getUTCDay()}function $t(e,t){return Y(Ae.count(q(e)-1,e),t,2)}function en(e,t){return Y(e.getUTCFullYear()%100,t,2)}function tn(e,t){return e=Xt(e),Y(e.getUTCFullYear()%100,t,2)}function nn(e,t){return Y(e.getUTCFullYear()%1e4,t,4)}function rn(e,t){var n=e.getUTCDay();return e=n>=4||n===0?Ne(e):Ne.ceil(e),Y(e.getUTCFullYear()%1e4,t,4)}function an(){return`+0000`}function on(){return`%`}function sn(e){return+e}function cn(e){return Math.floor(e/1e3)}var ln,un;dn({dateTime:`%x, %X`,date:`%-m/%-d/%Y`,time:`%-I:%M:%S %p`,periods:[`AM`,`PM`],days:[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`],shortDays:[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`],months:[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`],shortMonths:[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`]});function dn(e){return ln=Ke(e),un=ln.format,ln.parse,ln.utcFormat,ln.utcParse,ln}function fn(e){return new Date(e)}function pn(e){return e instanceof Date?+e:+new Date(+e)}function mn(e,t,n,r,a,o,s,c,l,u){var d=i.n(),f=d.invert,p=d.domain,m=u(`.%L`),h=u(`:%S`),g=u(`%I:%M`),_=u(`%I %p`),v=u(`%a %d`),y=u(`%b %d`),b=u(`%B`),x=u(`%Y`);function S(e){return(l(e)<e?m:c(e)<e?h:s(e)<e?g:o(e)<e?_:r(e)<e?a(e)<e?v:y:n(e)<e?b:x)(e)}return d.invert=function(e){return new Date(f(e))},d.domain=function(e){return arguments.length?p(Array.from(e,pn)):p().map(fn)},d.ticks=function(t){var n=p();return e(n[0],n[n.length-1],t==null?10:t)},d.tickFormat=function(e,t){return t==null?S:u(t)},d.nice=function(e){var n=p();return(!e||typeof e.range!=`function`)&&(e=t(n[0],n[n.length-1],e==null?10:e)),e?p(ue(n,e)):d},d.copy=function(){return i.r(d,mn(e,t,n,r,a,o,s,c,l,u))},d}function hn(){return a.t.apply(mn(Ve,He,K,Ie,Ce,H,ye,_e,V,un).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}var gn=e.t(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_isoWeek=r()})(e,(function(){"use strict";var e=`day`;return function(t,n,r){var i=function(t){return t.add(4-t.isoWeekday(),e)},a=n.prototype;a.isoWeekYear=function(){return i(this).year()},a.isoWeek=function(t){if(!this.$utils().u(t))return this.add(7*(t-this.isoWeek()),e);var n,a,o,s,c=i(this),l=(n=this.isoWeekYear(),a=this.$u,o=(a?r.utc:r)().year(n).startOf(`year`),s=4-o.isoWeekday(),o.isoWeekday()>4&&(s+=7),o.add(s,e));return c.diff(l,`week`)+1},a.isoWeekday=function(e){return this.$utils().u(e)?this.day()||7:this.day(this.day()%7?e:e-7)};var o=a.startOf;a.startOf=function(e,t){var n=this.$utils(),r=!!n.u(t)||t;return n.p(e)===`isoweek`?r?this.date(this.date()-(this.isoWeekday()-1)).startOf(`day`):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf(`day`):o.bind(this)(e,t)}}}))})),_n=e.t(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_customParseFormat=r()})(e,(function(){"use strict";var e={LTS:`h:mm:ss A`,LT:`h:mm A`,L:`MM/DD/YYYY`,LL:`MMMM D, YYYY`,LLL:`MMMM D, YYYY h:mm A`,LLLL:`dddd, MMMM D, YYYY h:mm A`},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d/,r=/\d\d/,i=/\d\d?/,a=/\d*[^-_:/,()\s\d]+/,o={},s=function(e){return(e=+e)+(e>68?1900:2e3)},c=function(e){return function(t){this[e]=+t}},l=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e||e===`Z`)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return n===0?0:t[0]===`+`?-n:n}(e)}],u=function(e){var t=o[e];return t&&(t.indexOf?t:t.s.concat(t.f))},d=function(e,t){var n,r=o.meridiem;if(r){for(var i=1;i<=24;i+=1)if(e.indexOf(r(i,0,t))>-1){n=i>12;break}}else n=e===(t?`pm`:`PM`);return n},f={A:[a,function(e){this.afternoon=d(e,!1)}],a:[a,function(e){this.afternoon=d(e,!0)}],Q:[n,function(e){this.month=3*(e-1)+1}],S:[n,function(e){this.milliseconds=100*e}],SS:[r,function(e){this.milliseconds=10*e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[i,c(`seconds`)],ss:[i,c(`seconds`)],m:[i,c(`minutes`)],mm:[i,c(`minutes`)],H:[i,c(`hours`)],h:[i,c(`hours`)],HH:[i,c(`hours`)],hh:[i,c(`hours`)],D:[i,c(`day`)],DD:[r,c(`day`)],Do:[a,function(e){var t=o.ordinal;if(this.day=e.match(/\d+/)[0],t)for(var n=1;n<=31;n+=1)t(n).replace(/\[|\]/g,``)===e&&(this.day=n)}],w:[i,c(`week`)],ww:[r,c(`week`)],M:[i,c(`month`)],MM:[r,c(`month`)],MMM:[a,function(e){var t=u(`months`),n=(u(`monthsShort`)||t.map((function(e){return e.slice(0,3)}))).indexOf(e)+1;if(n<1)throw Error();this.month=n%12||n}],MMMM:[a,function(e){var t=u(`months`).indexOf(e)+1;if(t<1)throw Error();this.month=t%12||t}],Y:[/[+-]?\d+/,c(`year`)],YY:[r,function(e){this.year=s(e)}],YYYY:[/\d{4}/,c(`year`)],Z:l,ZZ:l};function p(n){for(var r=n,i=o&&o.formats,a=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,n,r){var a=r&&r.toUpperCase();return n||i[r]||e[r]||i[a].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))).match(t),s=a.length,c=0;c<s;c+=1){var l=a[c],u=f[l],d=u&&u[0],p=u&&u[1];a[c]=p?{regex:d,parser:p}:l.replace(/^\[|\]$/g,``)}return function(e){for(var t={},n=0,r=0;n<s;n+=1){var i=a[n];if(typeof i==`string`)r+=i.length;else{var o=i.regex,c=i.parser,l=e.slice(r),u=o.exec(l)[0];c.call(t,u),e=e.replace(u,``)}}return function(e){var t=e.afternoon;if(t!==void 0){var n=e.hours;t?n<12&&(e.hours+=12):n===12&&(e.hours=0),delete e.afternoon}}(t),t}}return function(e,t,n){n.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(s=e.parseTwoDigitYear);var r=t.prototype,i=r.parse;r.parse=function(e){var t=e.date,r=e.utc,a=e.args;this.$u=r;var s=a[1];if(typeof s==`string`){var c=!0===a[2],l=!0===a[3],u=c||l,d=a[2];l&&(d=a[2]),o=this.$locale(),!c&&d&&(o=n.Ls[d]),this.$d=function(e,t,n,r){try{if([`x`,`X`].indexOf(t)>-1)return new Date((t===`X`?1e3:1)*e);var i=p(t)(e),a=i.year,o=i.month,s=i.day,c=i.hours,l=i.minutes,u=i.seconds,d=i.milliseconds,f=i.zone,m=i.week,h=new Date,g=s||(a||o?1:h.getDate()),_=a||h.getFullYear(),v=0;a&&!o||(v=o>0?o-1:h.getMonth());var y,b=c||0,x=l||0,S=u||0,C=d||0;return f?new Date(Date.UTC(_,v,g,b,x,S,C+60*f.offset*1e3)):n?new Date(Date.UTC(_,v,g,b,x,S,C)):(y=new Date(_,v,g,b,x,S,C),m&&(y=r(y).week(m).toDate()),y)}catch(e){return new Date(``)}}(t,s,r,n),this.init(),d&&!0!==d&&(this.$L=this.locale(d).$L),u&&t!=this.format(s)&&(this.$d=new Date(``)),o={}}else if(s instanceof Array)for(var f=s.length,m=1;m<=f;m+=1){a[1]=s[m-1];var h=n.apply(this,a);if(h.isValid()){this.$d=h.$d,this.$L=h.$L,this.init();break}m===f&&(this.$d=new Date(``))}else i.call(this,e)}}}))})),vn=e.t(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_advancedFormat=r()})(e,(function(){"use strict";return function(e,t){var n=t.prototype,r=n.format;n.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return r.bind(this)(e);var i=this.$utils(),a=(e||`YYYY-MM-DDTHH:mm:ssZ`).replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(e){switch(e){case`Q`:return Math.ceil((t.$M+1)/3);case`Do`:return n.ordinal(t.$D);case`gggg`:return t.weekYear();case`GGGG`:return t.isoWeekYear();case`wo`:return n.ordinal(t.week(),`W`);case`w`:case`ww`:return i.s(t.week(),e===`w`?1:2,`0`);case`W`:case`WW`:return i.s(t.isoWeek(),e===`W`?1:2,`0`);case`k`:case`kk`:return i.s(String(t.$H===0?24:t.$H),e===`k`?1:2,`0`);case`X`:return Math.floor(t.$d.getTime()/1e3);case`x`:return t.$d.getTime();case`z`:return`[`+t.offsetName()+`]`;case`zzz`:return`[`+t.offsetName(`long`)+`]`;default:return e}}));return r.bind(this)(a)}}}))})),yn=e.t(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_duration=r()})(e,(function(){"use strict";var e,t,n=1e3,r=6e4,i=36e5,a=864e5,o=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,s=31536e6,c=2628e6,l=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,u={years:s,months:c,days:a,hours:i,minutes:r,seconds:n,milliseconds:1,weeks:6048e5},d=function(e){return e instanceof v},f=function(e,t,n){return new v(e,n,t.$l)},p=function(e){return t.p(e)+`s`},m=function(e){return e<0},h=function(e){return m(e)?Math.ceil(e):Math.floor(e)},g=function(e){return Math.abs(e)},_=function(e,t){return e?m(e)?{negative:!0,format:``+g(e)+t}:{negative:!1,format:``+e+t}:{negative:!1,format:``}},v=function(){function m(e,t,n){var r=this;if(this.$d={},this.$l=n,e===void 0&&(this.$ms=0,this.parseFromMilliseconds()),t)return f(e*u[p(t)],this);if(typeof e==`number`)return this.$ms=e,this.parseFromMilliseconds(),this;if(typeof e==`object`)return Object.keys(e).forEach((function(t){r.$d[p(t)]=e[t]})),this.calMilliseconds(),this;if(typeof e==`string`){var i=e.match(l);if(i){var a=i.slice(2).map((function(e){return e==null?0:Number(e)}));return this.$d.years=a[0],this.$d.months=a[1],this.$d.weeks=a[2],this.$d.days=a[3],this.$d.hours=a[4],this.$d.minutes=a[5],this.$d.seconds=a[6],this.calMilliseconds(),this}}return this}var g=m.prototype;return g.calMilliseconds=function(){var e=this;this.$ms=Object.keys(this.$d).reduce((function(t,n){return t+(e.$d[n]||0)*u[n]}),0)},g.parseFromMilliseconds=function(){var e=this.$ms;this.$d.years=h(e/s),e%=s,this.$d.months=h(e/c),e%=c,this.$d.days=h(e/a),e%=a,this.$d.hours=h(e/i),e%=i,this.$d.minutes=h(e/r),e%=r,this.$d.seconds=h(e/n),e%=n,this.$d.milliseconds=e},g.toISOString=function(){var e=_(this.$d.years,`Y`),t=_(this.$d.months,`M`),n=+this.$d.days||0;this.$d.weeks&&(n+=7*this.$d.weeks);var r=_(n,`D`),i=_(this.$d.hours,`H`),a=_(this.$d.minutes,`M`),o=this.$d.seconds||0;this.$d.milliseconds&&(o+=this.$d.milliseconds/1e3,o=Math.round(1e3*o)/1e3);var s=_(o,`S`),c=e.negative||t.negative||r.negative||i.negative||a.negative||s.negative,l=i.format||a.format||s.format?`T`:``,u=(c?`-`:``)+`P`+e.format+t.format+r.format+l+i.format+a.format+s.format;return u===`P`||u===`-P`?`P0D`:u},g.toJSON=function(){return this.toISOString()},g.format=function(e){var n=e||`YYYY-MM-DDTHH:mm:ss`,r={Y:this.$d.years,YY:t.s(this.$d.years,2,`0`),YYYY:t.s(this.$d.years,4,`0`),M:this.$d.months,MM:t.s(this.$d.months,2,`0`),D:this.$d.days,DD:t.s(this.$d.days,2,`0`),H:this.$d.hours,HH:t.s(this.$d.hours,2,`0`),m:this.$d.minutes,mm:t.s(this.$d.minutes,2,`0`),s:this.$d.seconds,ss:t.s(this.$d.seconds,2,`0`),SSS:t.s(this.$d.milliseconds,3,`0`)};return n.replace(o,(function(e,t){return t||String(r[e])}))},g.as=function(e){return this.$ms/u[p(e)]},g.get=function(e){var t=this.$ms,n=p(e);return n===`milliseconds`?t%=1e3:t=n===`weeks`?h(t/u[n]):this.$d[n],t||0},g.add=function(e,t,n){var r;return r=t?e*u[p(t)]:d(e)?e.$ms:f(e,this).$ms,f(this.$ms+r*(n?-1:1),this)},g.subtract=function(e,t){return this.add(e,t,!0)},g.locale=function(e){var t=this.clone();return t.$l=e,t},g.clone=function(){return f(this.$ms,this)},g.humanize=function(t){return e().add(this.$ms,`ms`).locale(this.$l).fromNow(!t)},g.valueOf=function(){return this.asMilliseconds()},g.milliseconds=function(){return this.get(`milliseconds`)},g.asMilliseconds=function(){return this.as(`milliseconds`)},g.seconds=function(){return this.get(`seconds`)},g.asSeconds=function(){return this.as(`seconds`)},g.minutes=function(){return this.get(`minutes`)},g.asMinutes=function(){return this.as(`minutes`)},g.hours=function(){return this.get(`hours`)},g.asHours=function(){return this.as(`hours`)},g.days=function(){return this.get(`days`)},g.asDays=function(){return this.as(`days`)},g.weeks=function(){return this.get(`weeks`)},g.asWeeks=function(){return this.as(`weeks`)},g.months=function(){return this.get(`months`)},g.asMonths=function(){return this.as(`months`)},g.years=function(){return this.get(`years`)},g.asYears=function(){return this.as(`years`)},m}(),y=function(e,t,n){return e.add(t.years()*n,`y`).add(t.months()*n,`M`).add(t.days()*n,`d`).add(t.hours()*n,`h`).add(t.minutes()*n,`m`).add(t.seconds()*n,`s`).add(t.milliseconds()*n,`ms`)};return function(n,r,i){e=i,t=i().$utils(),i.duration=function(e,t){return f(e,{$l:i.locale()},t)},i.isDuration=d;var a=r.prototype.add,o=r.prototype.subtract;r.prototype.add=function(e,t){return d(e)?y(this,e,1):a.bind(this)(e,t)},r.prototype.subtract=function(e,t){return d(e)?y(this,e,-1):o.bind(this)(e,t)}}}))})),bn=o.t(),X=e.o(n.v(),1),xn=e.o(gn(),1),Sn=e.o(_n(),1),Cn=e.o(vn(),1),wn=e.o(yn(),1),Tn=(function(){var e=n.h(function(e,t,n,r){for(n=n||{},r=e.length;r--;n[e[r]]=t);return n},`o`),t=[6,8,10,12,13,14,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,33,35,36,38,40],r=[1,26],i=[1,27],a=[1,28],o=[1,29],s=[1,30],c=[1,31],l=[1,32],u=[1,33],d=[1,34],f=[1,9],p=[1,10],m=[1,11],h=[1,12],g=[1,13],_=[1,14],v=[1,15],y=[1,16],b=[1,19],x=[1,20],S=[1,21],C=[1,22],w=[1,23],T=[1,25],E=[1,35],D={trace:n.h(function(){},`trace`),yy:{},symbols_:{error:2,start:3,gantt:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NL:10,weekday:11,weekday_monday:12,weekday_tuesday:13,weekday_wednesday:14,weekday_thursday:15,weekday_friday:16,weekday_saturday:17,weekday_sunday:18,weekend:19,weekend_friday:20,weekend_saturday:21,dateFormat:22,inclusiveEndDates:23,topAxis:24,axisFormat:25,tickInterval:26,excludes:27,includes:28,todayMarker:29,title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,section:36,clickStatement:37,taskTxt:38,taskData:39,click:40,callbackname:41,callbackargs:42,href:43,clickStatementDebug:44,$accept:0,$end:1},terminals_:{2:`error`,4:`gantt`,6:`EOF`,8:`SPACE`,10:`NL`,12:`weekday_monday`,13:`weekday_tuesday`,14:`weekday_wednesday`,15:`weekday_thursday`,16:`weekday_friday`,17:`weekday_saturday`,18:`weekday_sunday`,20:`weekend_friday`,21:`weekend_saturday`,22:`dateFormat`,23:`inclusiveEndDates`,24:`topAxis`,25:`axisFormat`,26:`tickInterval`,27:`excludes`,28:`includes`,29:`todayMarker`,30:`title`,31:`acc_title`,32:`acc_title_value`,33:`acc_descr`,34:`acc_descr_value`,35:`acc_descr_multiline_value`,36:`section`,38:`taskTxt`,39:`taskData`,40:`click`,41:`callbackname`,42:`callbackargs`,43:`href`},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[19,1],[19,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,2],[37,2],[37,3],[37,3],[37,4],[37,3],[37,4],[37,2],[44,2],[44,3],[44,3],[44,4],[44,3],[44,4],[44,2]],performAction:n.h(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 1:return a[s-1];case 2:this.$=[];break;case 3:a[s-1].push(a[s]),this.$=a[s-1];break;case 4:case 5:this.$=a[s];break;case 6:case 7:this.$=[];break;case 8:r.setWeekday(`monday`);break;case 9:r.setWeekday(`tuesday`);break;case 10:r.setWeekday(`wednesday`);break;case 11:r.setWeekday(`thursday`);break;case 12:r.setWeekday(`friday`);break;case 13:r.setWeekday(`saturday`);break;case 14:r.setWeekday(`sunday`);break;case 15:r.setWeekend(`friday`);break;case 16:r.setWeekend(`saturday`);break;case 17:r.setDateFormat(a[s].substr(11)),this.$=a[s].substr(11);break;case 18:r.enableInclusiveEndDates(),this.$=a[s].substr(18);break;case 19:r.TopAxis(),this.$=a[s].substr(8);break;case 20:r.setAxisFormat(a[s].substr(11)),this.$=a[s].substr(11);break;case 21:r.setTickInterval(a[s].substr(13)),this.$=a[s].substr(13);break;case 22:r.setExcludes(a[s].substr(9)),this.$=a[s].substr(9);break;case 23:r.setIncludes(a[s].substr(9)),this.$=a[s].substr(9);break;case 24:r.setTodayMarker(a[s].substr(12)),this.$=a[s].substr(12);break;case 27:r.setDiagramTitle(a[s].substr(6)),this.$=a[s].substr(6);break;case 28:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 29:case 30:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 31:r.addSection(a[s].substr(8)),this.$=a[s].substr(8);break;case 33:r.addTask(a[s-1],a[s]),this.$=`task`;break;case 34:this.$=a[s-1],r.setClickEvent(a[s-1],a[s],null);break;case 35:this.$=a[s-2],r.setClickEvent(a[s-2],a[s-1],a[s]);break;case 36:this.$=a[s-2],r.setClickEvent(a[s-2],a[s-1],null),r.setLink(a[s-2],a[s]);break;case 37:this.$=a[s-3],r.setClickEvent(a[s-3],a[s-2],a[s-1]),r.setLink(a[s-3],a[s]);break;case 38:this.$=a[s-2],r.setClickEvent(a[s-2],a[s],null),r.setLink(a[s-2],a[s-1]);break;case 39:this.$=a[s-3],r.setClickEvent(a[s-3],a[s-1],a[s]),r.setLink(a[s-3],a[s-2]);break;case 40:this.$=a[s-1],r.setLink(a[s-1],a[s]);break;case 41:case 47:this.$=a[s-1]+` `+a[s];break;case 42:case 43:case 45:this.$=a[s-2]+` `+a[s-1]+` `+a[s];break;case 44:case 46:this.$=a[s-3]+` `+a[s-2]+` `+a[s-1]+` `+a[s];break}},`anonymous`),table:[{3:1,4:[1,2]},{1:[3]},e(t,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:r,13:i,14:a,15:o,16:s,17:c,18:l,19:18,20:u,21:d,22:f,23:p,24:m,25:h,26:g,27:_,28:v,29:y,30:b,31:x,33:S,35:C,36:w,37:24,38:T,40:E},e(t,[2,7],{1:[2,1]}),e(t,[2,3]),{9:36,11:17,12:r,13:i,14:a,15:o,16:s,17:c,18:l,19:18,20:u,21:d,22:f,23:p,24:m,25:h,26:g,27:_,28:v,29:y,30:b,31:x,33:S,35:C,36:w,37:24,38:T,40:E},e(t,[2,5]),e(t,[2,6]),e(t,[2,17]),e(t,[2,18]),e(t,[2,19]),e(t,[2,20]),e(t,[2,21]),e(t,[2,22]),e(t,[2,23]),e(t,[2,24]),e(t,[2,25]),e(t,[2,26]),e(t,[2,27]),{32:[1,37]},{34:[1,38]},e(t,[2,30]),e(t,[2,31]),e(t,[2,32]),{39:[1,39]},e(t,[2,8]),e(t,[2,9]),e(t,[2,10]),e(t,[2,11]),e(t,[2,12]),e(t,[2,13]),e(t,[2,14]),e(t,[2,15]),e(t,[2,16]),{41:[1,40],43:[1,41]},e(t,[2,4]),e(t,[2,28]),e(t,[2,29]),e(t,[2,33]),e(t,[2,34],{42:[1,42],43:[1,43]}),e(t,[2,40],{41:[1,44]}),e(t,[2,35],{43:[1,45]}),e(t,[2,36]),e(t,[2,38],{42:[1,46]}),e(t,[2,37]),e(t,[2,39])],defaultActions:{},parseError:n.h(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:n.h(function(e){var t=this,r=[0],i=[],a=[null],o=[],s=this.table,c=``,l=0,u=0,d=0,f=2,p=1,m=o.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;o.push(v);var y=h.options&&h.options.ranges;typeof g.yy.parseError==`function`?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function b(e){r.length-=2*e,a.length-=e,o.length-=e}n.h(b,`popStack`);function x(){var e=i.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(i=e,e=i.pop()),e=t.symbols_[e]||e),e}n.h(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=r[r.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S==null&&(S=x()),T=s[w]&&s[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],s[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`:
|
|
2
|
+
`+h.showPosition()+`
|
|
3
|
+
Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:r.push(S),a.push(h.yytext),o.push(h.yylloc),r.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,c=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=a[a.length-k],D._$={first_line:o[o.length-(k||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(k||1)].first_column,last_column:o[o.length-1].last_column},y&&(D._$.range=[o[o.length-(k||1)].range[0],o[o.length-1].range[1]]),E=this.performAction.apply(D,[c,u,l,g.yy,T[1],a,o].concat(m)),E!==void 0)return E;k&&(r=r.slice(0,-1*k*2),a=a.slice(0,-1*k),o=o.slice(0,-1*k)),r.push(this.productions_[T[1]][0]),a.push(D.$),o.push(D._$),A=s[r[r.length-2]][r[r.length-1]],r.push(A);break;case 3:return!0}}return!0},`parse`)};D.lexer=(function(){return{EOF:1,parseError:n.h(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:n.h(function(e,t){return this.yy=t||this.yy||{},this._input=e,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]),this.offset=0,this},`setInput`),input:n.h(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:n.h(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:n.h(function(){return this._more=!0,this},`more`),reject:n.h(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
|
+
`+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:n.h(function(e){this.unput(this.match.slice(e))},`less`),pastInput:n.h(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:n.h(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:n.h(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+`
|
|
5
|
+
`+t+`^`},`showPosition`),test_match:n.h(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={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&&(i.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},`test_match`),next:n.h(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext=``,this.match=``);for(var i=this._currentRules(),a=0;a<i.length;a++)if(n=this._input.match(this.rules[i[a]]),n&&(!t||n[0].length>t[0].length)){if(t=n,r=a,this.options.backtrack_lexer){if(e=this.test_match(n,i[a]),e!==!1)return e;if(this._backtrack){t=!1;continue}else return!1}else if(!this.options.flex)break}return t?(e=this.test_match(t,i[r]),e===!1?!1:e):this._input===``?this.EOF:this.parseError(`Lexical error on line `+(this.yylineno+1)+`. Unrecognized text.
|
|
6
|
+
`+this.showPosition(),{text:``,token:null,line:this.yylineno})},`next`),lex:n.h(function(){return this.next()||this.lex()},`lex`),begin:n.h(function(e){this.conditionStack.push(e)},`begin`),popState:n.h(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:n.h(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},`_currentRules`),topState:n.h(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:n.h(function(e){this.begin(e)},`pushState`),stateStackSize:n.h(function(){return this.conditionStack.length},`stateStackSize`),options:{"case-insensitive":!0},performAction:n.h(function(e,t,n,r){switch(n){case 0:return this.begin(`open_directive`),`open_directive`;case 1:return this.begin(`acc_title`),31;case 2:return this.popState(),`acc_title_value`;case 3:return this.begin(`acc_descr`),33;case 4:return this.popState(),`acc_descr_value`;case 5:this.begin(`acc_descr_multiline`);break;case 6:this.popState();break;case 7:return`acc_descr_multiline_value`;case 8:break;case 9:break;case 10:break;case 11:return 10;case 12:break;case 13:break;case 14:this.begin(`href`);break;case 15:this.popState();break;case 16:return 43;case 17:this.begin(`callbackname`);break;case 18:this.popState();break;case 19:this.popState(),this.begin(`callbackargs`);break;case 20:return 41;case 21:this.popState();break;case 22:return 42;case 23:this.begin(`click`);break;case 24:this.popState();break;case 25:return 40;case 26:return 4;case 27:return 22;case 28:return 23;case 29:return 24;case 30:return 25;case 31:return 26;case 32:return 28;case 33:return 27;case 34:return 29;case 35:return 12;case 36:return 13;case 37:return 14;case 38:return 15;case 39:return 16;case 40:return 17;case 41:return 18;case 42:return 20;case 43:return 21;case 44:return`date`;case 45:return 30;case 46:return`accDescription`;case 47:return 36;case 48:return 38;case 49:return 39;case 50:return`:`;case 51:return 6;case 52:return`INVALID`}},`anonymous`),rules:[/^(?:%%\{)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:%%(?!\{)*[^\n]*)/i,/^(?:[^\}]%%*[^\n]*)/i,/^(?:%%*[^\n]*[\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:%[^\n]*)/i,/^(?:href[\s]+["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:call[\s]+)/i,/^(?:\([\s]*\))/i,/^(?:\()/i,/^(?:[^(]*)/i,/^(?:\))/i,/^(?:[^)]*)/i,/^(?:click[\s]+)/i,/^(?:[\s\n])/i,/^(?:[^\s\n]*)/i,/^(?:gantt\b)/i,/^(?:dateFormat\s[^#\n;]+)/i,/^(?:inclusiveEndDates\b)/i,/^(?:topAxis\b)/i,/^(?:axisFormat\s[^#\n;]+)/i,/^(?:tickInterval\s[^#\n;]+)/i,/^(?:includes\s[^#\n;]+)/i,/^(?:excludes\s[^#\n;]+)/i,/^(?:todayMarker\s[^\n;]+)/i,/^(?:weekday\s+monday\b)/i,/^(?:weekday\s+tuesday\b)/i,/^(?:weekday\s+wednesday\b)/i,/^(?:weekday\s+thursday\b)/i,/^(?:weekday\s+friday\b)/i,/^(?:weekday\s+saturday\b)/i,/^(?:weekday\s+sunday\b)/i,/^(?:weekend\s+friday\b)/i,/^(?:weekend\s+saturday\b)/i,/^(?:\d\d\d\d-\d\d-\d\d\b)/i,/^(?:title\s[^\n]+)/i,/^(?:accDescription\s[^#\n;]+)/i,/^(?:section\s[^\n]+)/i,/^(?:[^:\n]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[6,7],inclusive:!1},acc_descr:{rules:[4],inclusive:!1},acc_title:{rules:[2],inclusive:!1},callbackargs:{rules:[21,22],inclusive:!1},callbackname:{rules:[18,19,20],inclusive:!1},href:{rules:[15,16],inclusive:!1},click:{rules:[24,25],inclusive:!1},INITIAL:{rules:[0,1,3,5,8,9,10,11,12,13,14,17,23,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52],inclusive:!0}}}})();function O(){this.yy={}}return n.h(O,`Parser`),O.prototype=D,D.Parser=O,new O})();Tn.parser=Tn;var En=Tn;X.default.extend(xn.default),X.default.extend(Sn.default),X.default.extend(Cn.default);var Dn={friday:5,saturday:6},Z=``,On=``,kn=void 0,An=``,jn=[],Mn=[],Nn=new Map,Pn=[],Fn=[],In=``,Ln=``,Rn=[`active`,`done`,`crit`,`milestone`,`vert`],zn=[],Bn=``,Vn=!1,Hn=!1,Un=`sunday`,Wn=`saturday`,Gn=0,Kn=n.h(function(){Pn=[],Fn=[],In=``,zn=[],Tr=0,kr=void 0,Ar=void 0,Q=[],Z=``,On=``,Ln=``,kn=void 0,An=``,jn=[],Mn=[],Vn=!1,Hn=!1,Gn=0,Nn=new Map,Bn=``,r.a(),Un=`sunday`,Wn=`saturday`},`clear`),qn=n.h(function(e){Bn=e},`setDiagramId`),Jn=n.h(function(e){On=e},`setAxisFormat`),Yn=n.h(function(){return On},`getAxisFormat`),Xn=n.h(function(e){kn=e},`setTickInterval`),Zn=n.h(function(){return kn},`getTickInterval`),Qn=n.h(function(e){An=e},`setTodayMarker`),$n=n.h(function(){return An},`getTodayMarker`),er=n.h(function(e){Z=e},`setDateFormat`),tr=n.h(function(){Vn=!0},`enableInclusiveEndDates`),nr=n.h(function(){return Vn},`endDatesAreInclusive`),rr=n.h(function(){Hn=!0},`enableTopAxis`),ir=n.h(function(){return Hn},`topAxisEnabled`),ar=n.h(function(e){Ln=e},`setDisplayMode`),or=n.h(function(){return Ln},`getDisplayMode`),sr=n.h(function(){return Z},`getDateFormat`),cr=n.h(function(e){jn=e.toLowerCase().split(/[\s,]+/)},`setIncludes`),lr=n.h(function(){return jn},`getIncludes`),ur=n.h(function(e){Mn=e.toLowerCase().split(/[\s,]+/)},`setExcludes`),dr=n.h(function(){return Mn},`getExcludes`),fr=n.h(function(){return Nn},`getLinks`),pr=n.h(function(e){In=e,Pn.push(e)},`addSection`),mr=n.h(function(){return Pn},`getSections`),hr=n.h(function(){let e=Fr(),t=0;for(;!e&&t<10;)e=Fr(),t++;return Fn=Q,Fn},`getTasks`),gr=n.h(function(e,t,n,r){let i=e.format(t.trim()),a=e.format(`YYYY-MM-DD`);return r.includes(i)||r.includes(a)?!1:n.includes(`weekends`)&&(e.isoWeekday()===Dn[Wn]||e.isoWeekday()===Dn[Wn]+1)||n.includes(e.format(`dddd`).toLowerCase())?!0:n.includes(i)||n.includes(a)},`isInvalidDate`),_r=n.h(function(e){Un=e},`setWeekday`),vr=n.h(function(){return Un},`getWeekday`),yr=n.h(function(e){Wn=e},`setWeekend`),br=n.h(function(e,t,n,r){if(!n.length||e.manualEndTime)return;let i;i=e.startTime instanceof Date?(0,X.default)(e.startTime):(0,X.default)(e.startTime,t,!0),i=i.add(1,`d`);let a;a=e.endTime instanceof Date?(0,X.default)(e.endTime):(0,X.default)(e.endTime,t,!0);let[o,s]=xr(i,a,t,n,r);e.endTime=o.toDate(),e.renderEndTime=s},`checkTaskDates`),xr=n.h(function(e,t,n,r,i){let a=!1,o=null;for(;e<=t;)a||(o=t.toDate()),a=gr(e,n,r,i),a&&(t=t.add(1,`d`)),e=e.add(1,`d`);return[t,o]},`fixTaskDates`),Sr=n.h(function(e,t,r){if(r=r.trim(),n.h(e=>{let t=e.trim();return t===`x`||t===`X`},`isTimestampFormat`)(t)&&/^\d+$/.test(r))return new Date(Number(r));let i=RegExp(`^after\\s+(?<ids>[\\d\\w- ]+)`,``).exec(r);if(i!==null){let e=null;for(let t of i.groups.ids.split(` `)){let n=Nr(t);n!==void 0&&(!e||n.endTime>e.endTime)&&(e=n)}if(e)return e.endTime;let t=new Date;return t.setHours(0,0,0,0),t}let a=(0,X.default)(r,t.trim(),!0);if(a.isValid())return a.toDate();{n.g.debug(`Invalid date:`+r),n.g.debug(`With date format:`+t.trim());let e=new Date(r);if(e===void 0||isNaN(e.getTime())||e.getFullYear()<-1e4||e.getFullYear()>1e4)throw Error(`Invalid date:`+r);return e}},`getStartDate`),Cr=n.h(function(e){let t=/^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(e.trim());return t===null?[NaN,`ms`]:[Number.parseFloat(t[1]),t[2]]},`parseDuration`),wr=n.h(function(e,t,n,r=!1){n=n.trim();let i=RegExp(`^until\\s+(?<ids>[\\d\\w- ]+)`,``).exec(n);if(i!==null){let e=null;for(let t of i.groups.ids.split(` `)){let n=Nr(t);n!==void 0&&(!e||n.startTime<e.startTime)&&(e=n)}if(e)return e.startTime;let t=new Date;return t.setHours(0,0,0,0),t}let a=(0,X.default)(n,t.trim(),!0);if(a.isValid())return r&&(a=a.add(1,`d`)),a.toDate();let o=(0,X.default)(e),[s,c]=Cr(n);if(!Number.isNaN(s)){let e=o.add(s,c);e.isValid()&&(o=e)}return o.toDate()},`getEndDate`),Tr=0,Er=n.h(function(e){return e===void 0?(Tr+=1,`task`+Tr):e},`parseId`),Dr=n.h(function(e,t){let n;n=t.substr(0,1)===`:`?t.substr(1,t.length):t;let r=n.split(`,`),i={};Vr(r,i,Rn);for(let e=0;e<r.length;e++)r[e]=r[e].trim();let a=``;switch(r.length){case 1:i.id=Er(),i.startTime=e.endTime,a=r[0];break;case 2:i.id=Er(),i.startTime=Sr(void 0,Z,r[0]),a=r[1];break;case 3:i.id=Er(r[0]),i.startTime=Sr(void 0,Z,r[1]),a=r[2];break;default:}return a&&(i.endTime=wr(i.startTime,Z,a,Vn),i.manualEndTime=(0,X.default)(a,`YYYY-MM-DD`,!0).isValid(),br(i,Z,Mn,jn)),i},`compileData`),Or=n.h(function(e,t){let n;n=t.substr(0,1)===`:`?t.substr(1,t.length):t;let r=n.split(`,`),i={};Vr(r,i,Rn);for(let e=0;e<r.length;e++)r[e]=r[e].trim();switch(r.length){case 1:i.id=Er(),i.startTime={type:`prevTaskEnd`,id:e},i.endTime={data:r[0]};break;case 2:i.id=Er(),i.startTime={type:`getStartDate`,startData:r[0]},i.endTime={data:r[1]};break;case 3:i.id=Er(r[0]),i.startTime={type:`getStartDate`,startData:r[1]},i.endTime={data:r[2]};break;default:}return i},`parseData`),kr,Ar,Q=[],jr={},Mr=n.h(function(e,t){let n={section:In,type:In,processed:!1,manualEndTime:!1,renderEndTime:null,raw:{data:t},task:e,classes:[]},r=Or(Ar,t);n.raw.startTime=r.startTime,n.raw.endTime=r.endTime,n.id=r.id,n.prevTaskId=Ar,n.active=r.active,n.done=r.done,n.crit=r.crit,n.milestone=r.milestone,n.vert=r.vert,n.order=Gn,Gn++;let i=Q.push(n);Ar=n.id,jr[n.id]=i-1},`addTask`),Nr=n.h(function(e){let t=jr[e];return Q[t]},`findTaskById`),Pr=n.h(function(e,t){let n={section:In,type:In,description:e,task:e,classes:[]},r=Dr(kr,t);n.startTime=r.startTime,n.endTime=r.endTime,n.id=r.id,n.active=r.active,n.done=r.done,n.crit=r.crit,n.milestone=r.milestone,n.vert=r.vert,kr=n,Fn.push(n)},`addTaskOrg`),Fr=n.h(function(){let e=n.h(function(e){let t=Q[e],n=``;switch(Q[e].raw.startTime.type){case`prevTaskEnd`:t.startTime=Nr(t.prevTaskId).endTime;break;case`getStartDate`:n=Sr(void 0,Z,Q[e].raw.startTime.startData),n&&(Q[e].startTime=n);break}return Q[e].startTime&&(Q[e].endTime=wr(Q[e].startTime,Z,Q[e].raw.endTime.data,Vn),Q[e].endTime&&(Q[e].processed=!0,Q[e].manualEndTime=(0,X.default)(Q[e].raw.endTime.data,`YYYY-MM-DD`,!0).isValid(),br(Q[e],Z,Mn,jn))),Q[e].processed},`compileTask`),t=!0;for(let[n,r]of Q.entries())e(n),t=t&&r.processed;return t},`compileTasks`),Ir=n.h(function(e,t){let n=t;r.b().securityLevel!==`loose`&&(n=(0,bn.sanitizeUrl)(t)),e.split(`,`).forEach(function(e){Nr(e)!==void 0&&(zr(e,()=>{window.open(n,`_self`)}),Nn.set(e,n))}),Lr(e,`clickable`)},`setLink`),Lr=n.h(function(e,t){e.split(`,`).forEach(function(e){let n=Nr(e);n!==void 0&&n.classes.push(t)})},`setClass`),Rr=n.h(function(e,n,i){if(r.b().securityLevel!==`loose`||n===void 0)return;let a=[];if(typeof i==`string`){a=i.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let e=0;e<a.length;e++){let t=a[e].trim();t.startsWith(`"`)&&t.endsWith(`"`)&&(t=t.substr(1,t.length-2)),a[e]=t}}a.length===0&&a.push(e),Nr(e)!==void 0&&zr(e,()=>{t.h.runFunc(n,...a)})},`setClickFun`),zr=n.h(function(e,t){zn.push(function(){let n=Bn?`${Bn}-${e}`:e,r=document.querySelector(`[id="${n}"]`);r!==null&&r.addEventListener(`click`,function(){t()})},function(){let n=Bn?`${Bn}-${e}`:e,r=document.querySelector(`[id="${n}-text"]`);r!==null&&r.addEventListener(`click`,function(){t()})})},`pushFun`),Br={getConfig:n.h(()=>r.b().gantt,`getConfig`),clear:Kn,setDateFormat:er,getDateFormat:sr,enableInclusiveEndDates:tr,endDatesAreInclusive:nr,enableTopAxis:rr,topAxisEnabled:ir,setAxisFormat:Jn,getAxisFormat:Yn,setTickInterval:Xn,getTickInterval:Zn,setTodayMarker:Qn,getTodayMarker:$n,setAccTitle:r.V,getAccTitle:r.v,setDiagramTitle:r.W,getDiagramTitle:r.C,setDiagramId:qn,setDisplayMode:ar,getDisplayMode:or,setAccDescription:r.B,getAccDescription:r._,addSection:pr,getSections:mr,getTasks:hr,addTask:Mr,findTaskById:Nr,addTaskOrg:Pr,setIncludes:cr,getIncludes:lr,setExcludes:ur,getExcludes:dr,setClickEvent:n.h(function(e,t,n){e.split(`,`).forEach(function(e){Rr(e,t,n)}),Lr(e,`clickable`)},`setClickEvent`),setLink:Ir,getLinks:fr,bindFunctions:n.h(function(e){zn.forEach(function(t){t(e)})},`bindFunctions`),parseDuration:Cr,isInvalidDate:gr,setWeekday:_r,getWeekday:vr,setWeekend:yr};function Vr(e,t,n){let r=!0;for(;r;)r=!1,n.forEach(function(n){let i=`^\\s*`+n+`\\s*$`,a=new RegExp(i);e[0].match(a)&&(t[n]=!0,e.shift(1),r=!0)})}n.h(Vr,`getTaskTags`),X.default.extend(wn.default);var Hr=n.h(function(){n.g.debug(`Something is calling, setConf, remove the call`)},`setConf`),Ur={monday:we,tuesday:Te,wednesday:Ee,thursday:W,friday:De,saturday:Oe,sunday:Ce},Wr=n.h((e,t)=>{let n=[...e].map(()=>-1/0),r=[...e].sort((e,t)=>e.startTime-t.startTime||e.order-t.order),i=0;for(let e of r)for(let r=0;r<n.length;r++)if(e.startTime>=n[r]){n[r]=e.endTime,e.order=r+t,r>i&&(i=r);break}return i},`getMaxIntersections`),$,Gr=1e4,Kr={parser:En,db:Br,renderer:{setConf:Hr,draw:n.h(function(e,t,a,o){let l=r.b().gantt;o.db.setDiagramId(t);let u=r.b().securityLevel,d;u===`sandbox`&&(d=n.p(`#i`+t));let f=u===`sandbox`?n.p(d.nodes()[0].contentDocument.body):n.p(`body`),p=u===`sandbox`?d.nodes()[0].contentDocument:document,m=p.getElementById(t);$=m.parentElement.offsetWidth,$===void 0&&($=1200),l.useWidth!==void 0&&($=l.useWidth);let h=o.db.getTasks(),g=[];for(let e of h)g.push(e.type);g=j(g);let _={},v=2*l.topPadding;if(o.db.getDisplayMode()===`compact`||l.displayMode===`compact`){let e={};for(let t of h)e[t.section]===void 0?e[t.section]=[t]:e[t.section].push(t);let t=0;for(let n of Object.keys(e)){let r=Wr(e[n],t)+1;t+=r,v+=r*(l.barHeight+l.barGap),_[n]=r}}else{v+=h.length*(l.barHeight+l.barGap);for(let e of g)_[e]=h.filter(t=>t.type===e).length}m.setAttribute(`viewBox`,`0 0 `+$+` `+v);let y=f.select(`[id="${t}"]`),b=hn().domain([c(h,function(e){return e.startTime}),s(h,function(e){return e.endTime})]).rangeRound([0,$-l.leftPadding-l.rightPadding]);function C(e,t){let n=e.startTime,r=t.startTime,i=0;return n>r?i=1:n<r&&(i=-1),i}n.h(C,`taskCompare`),h.sort(C),w(h,$,v),r.c(y,v,$,l.useMaxWidth),y.append(`text`).text(o.db.getDiagramTitle()).attr(`x`,$/2).attr(`y`,l.titleTopMargin).attr(`class`,`titleText`);function w(e,t,n){let r=l.barHeight,a=r+l.barGap,s=l.topPadding,c=l.leftPadding,u=i.t().domain([0,g.length]).range([`#00B9FA`,`#F95002`]).interpolate(le);E(a,s,c,t,n,e,o.db.getExcludes(),o.db.getIncludes()),O(c,s,t,n),T(e,a,s,c,r,u,t,n),k(a,s,c,r,u),A(c,s,t,n)}n.h(w,`makeGantt`);function T(e,i,a,s,c,u,d){e.sort((e,t)=>e.vert===t.vert?0:e.vert?1:-1);let f=[...new Set(e.map(e=>e.order))].map(t=>e.find(e=>e.order===t));y.append(`g`).selectAll(`rect`).data(f).enter().append(`rect`).attr(`x`,0).attr(`y`,function(e,t){return t=e.order,t*i+a-2}).attr(`width`,function(){return d-l.rightPadding/2}).attr(`height`,i).attr(`class`,function(e){for(let[t,n]of g.entries())if(e.type===n)return`section section`+t%l.numberSectionStyles;return`section section0`}).enter();let p=y.append(`g`).selectAll(`rect`).data(e).enter(),m=o.db.getLinks();if(p.append(`rect`).attr(`id`,function(e){return t+`-`+e.id}).attr(`rx`,3).attr(`ry`,3).attr(`x`,function(e){return e.milestone?b(e.startTime)+s+.5*(b(e.endTime)-b(e.startTime))-.5*c:b(e.startTime)+s}).attr(`y`,function(e,t){return t=e.order,e.vert?l.gridLineStartPadding:t*i+a}).attr(`width`,function(e){return e.milestone?c:e.vert?.08*c:b(e.renderEndTime||e.endTime)-b(e.startTime)}).attr(`height`,function(e){return e.vert?h.length*(l.barHeight+l.barGap)+l.barHeight*2:c}).attr(`transform-origin`,function(e,t){return t=e.order,(b(e.startTime)+s+.5*(b(e.endTime)-b(e.startTime))).toString()+`px `+(t*i+a+.5*c).toString()+`px`}).attr(`class`,function(e){let t=``;e.classes.length>0&&(t=e.classes.join(` `));let n=0;for(let[t,r]of g.entries())e.type===r&&(n=t%l.numberSectionStyles);let r=``;return e.active?e.crit?r+=` activeCrit`:r=` active`:e.done?r=e.crit?` doneCrit`:` done`:e.crit&&(r+=` crit`),r.length===0&&(r=` task`),e.milestone&&(r=` milestone `+r),e.vert&&(r=` vert `+r),r+=n,r+=` `+t,`task`+r}),p.append(`text`).attr(`id`,function(e){return t+`-`+e.id+`-text`}).text(function(e){return e.task}).attr(`font-size`,l.fontSize).attr(`x`,function(e){let t=b(e.startTime),n=b(e.renderEndTime||e.endTime);if(e.milestone&&(t+=.5*(b(e.endTime)-b(e.startTime))-.5*c,n=t+c),e.vert)return b(e.startTime)+s;let r=this.getBBox().width;return r>n-t?n+r+1.5*l.leftPadding>d?t+s-5:n+s+5:(n-t)/2+t+s}).attr(`y`,function(e,t){return e.vert?l.gridLineStartPadding+h.length*(l.barHeight+l.barGap)+60:(t=e.order,t*i+l.barHeight/2+(l.fontSize/2-2)+a)}).attr(`text-height`,c).attr(`class`,function(e){let t=b(e.startTime),n=b(e.endTime);e.milestone&&(n=t+c);let r=this.getBBox().width,i=``;e.classes.length>0&&(i=e.classes.join(` `));let a=0;for(let[t,n]of g.entries())e.type===n&&(a=t%l.numberSectionStyles);let o=``;return e.active&&(o=e.crit?`activeCritText`+a:`activeText`+a),e.done?o=e.crit?o+` doneCritText`+a:o+` doneText`+a:e.crit&&(o=o+` critText`+a),e.milestone&&(o+=` milestoneText`),e.vert&&(o+=` vertText`),r>n-t?n+r+1.5*l.leftPadding>d?i+` taskTextOutsideLeft taskTextOutside`+a+` `+o:i+` taskTextOutsideRight taskTextOutside`+a+` `+o+` width-`+r:i+` taskText taskText`+a+` `+o+` width-`+r}),r.b().securityLevel===`sandbox`){let e;e=n.p(`#i`+t);let r=e.nodes()[0].contentDocument;p.filter(function(e){return m.has(e.id)}).each(function(e){var n=r.querySelector(`#`+CSS.escape(t+`-`+e.id)),i=r.querySelector(`#`+CSS.escape(t+`-`+e.id+`-text`));let a=n.parentNode;var o=r.createElement(`a`);o.setAttribute(`xlink:href`,m.get(e.id)),o.setAttribute(`target`,`_top`),a.appendChild(o),o.appendChild(n),o.appendChild(i)})}}n.h(T,`drawRects`);function E(e,r,i,a,s,c,u,d){if(u.length===0&&d.length===0)return;let f,p;for(let{startTime:e,endTime:t}of c)(f===void 0||e<f)&&(f=e),(p===void 0||t>p)&&(p=t);if(!f||!p)return;if((0,X.default)(p).diff((0,X.default)(f),`year`)>5){n.g.warn(`The difference between the min and max time is more than 5 years. This will cause performance issues. Skipping drawing exclude days.`);return}let m=o.db.getDateFormat(),h=[],g=null,_=(0,X.default)(f);for(;_.valueOf()<=p;)o.db.isInvalidDate(_,m,u,d)?g?g.end=_:g={start:_,end:_}:g&&(h.push(g),g=null),_=_.add(1,`d`);y.append(`g`).selectAll(`rect`).data(h).enter().append(`rect`).attr(`id`,e=>t+`-exclude-`+e.start.format(`YYYY-MM-DD`)).attr(`x`,e=>b(e.start.startOf(`day`))+i).attr(`y`,l.gridLineStartPadding).attr(`width`,e=>b(e.end.endOf(`day`))-b(e.start.startOf(`day`))).attr(`height`,s-r-l.gridLineStartPadding).attr(`transform-origin`,function(t,n){return(b(t.start)+i+.5*(b(t.end)-b(t.start))).toString()+`px `+(n*e+.5*s).toString()+`px`}).attr(`class`,`exclude-range`)}n.h(E,`drawExcludeDays`);function D(e,t,n,r){if(n<=0||e>t)return 1/0;let i=t-e,a=X.default.duration({[r==null?`day`:r]:n}).asMilliseconds();return a<=0?1/0:Math.ceil(i/a)}n.h(D,`getEstimatedTickCount`);function O(e,t,r,i){let a=o.db.getDateFormat(),s=o.db.getAxisFormat(),c;if(s)c=s;else if(a===`D`)c=`%d`;else{var u;c=(u=l.axisFormat)==null?`%Y-%m-%d`:u}let d=S(b).tickSize(-i+t+l.gridLineStartPadding).tickFormat(un(c)),f=/^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/.exec(o.db.getTickInterval()||l.tickInterval);if(f!==null){let e=parseInt(f[1],10);if(isNaN(e)||e<=0)n.g.warn(`Invalid tick interval value: "${f[1]}". Skipping custom tick interval.`);else{let t=f[2],r=o.db.getWeekday()||l.weekday,i=b.domain(),a=i[0],s=i[1],c=D(a,s,e,t);if(c>Gr)n.g.warn(`The tick interval "${e}${t}" would generate ${c} ticks, which exceeds the maximum allowed (${Gr}). This may indicate an invalid date or time range. Skipping custom tick interval.`);else switch(t){case`millisecond`:d.ticks(pe.every(e));break;case`second`:d.ticks(V.every(e));break;case`minute`:d.ticks(_e.every(e));break;case`hour`:d.ticks(ye.every(e));break;case`day`:d.ticks(H.every(e));break;case`week`:d.ticks(Ur[r].every(e));break;case`month`:d.ticks(Ie.every(e));break}}}if(y.append(`g`).attr(`class`,`grid`).attr(`transform`,`translate(`+e+`, `+(i-50)+`)`).call(d).selectAll(`text`).style(`text-anchor`,`middle`).attr(`fill`,`#000`).attr(`stroke`,`none`).attr(`font-size`,10).attr(`dy`,`1em`),o.db.topAxisEnabled()||l.topAxis){let r=x(b).tickSize(-i+t+l.gridLineStartPadding).tickFormat(un(c));if(f!==null){let e=parseInt(f[1],10);if(isNaN(e)||e<=0)n.g.warn(`Invalid tick interval value: "${f[1]}". Skipping custom tick interval.`);else{let t=f[2],n=o.db.getWeekday()||l.weekday,i=b.domain(),a=i[0],s=i[1];if(D(a,s,e,t)<=Gr)switch(t){case`millisecond`:r.ticks(pe.every(e));break;case`second`:r.ticks(V.every(e));break;case`minute`:r.ticks(_e.every(e));break;case`hour`:r.ticks(ye.every(e));break;case`day`:r.ticks(H.every(e));break;case`week`:r.ticks(Ur[n].every(e));break;case`month`:r.ticks(Ie.every(e));break}}}y.append(`g`).attr(`class`,`grid`).attr(`transform`,`translate(`+e+`, `+t+`)`).call(r).selectAll(`text`).style(`text-anchor`,`middle`).attr(`fill`,`#000`).attr(`stroke`,`none`).attr(`font-size`,10)}}n.h(O,`makeGrid`);function k(e,t){let n=0,i=Object.keys(_).map(e=>[e,_[e]]);y.append(`g`).selectAll(`text`).data(i).enter().append(function(e){let t=e[0].split(r.s.lineBreakRegex),n=-(t.length-1)/2,i=p.createElementNS(`http://www.w3.org/2000/svg`,`text`);i.setAttribute(`dy`,n+`em`);for(let[e,n]of t.entries()){let t=p.createElementNS(`http://www.w3.org/2000/svg`,`tspan`);t.setAttribute(`alignment-baseline`,`central`),t.setAttribute(`x`,`10`),e>0&&t.setAttribute(`dy`,`1em`),t.textContent=n,i.appendChild(t)}return i}).attr(`x`,10).attr(`y`,function(r,a){if(a>0)for(let o=0;o<a;o++)return n+=i[a-1][1],r[1]*e/2+n*e+t;else return r[1]*e/2+t}).attr(`font-size`,l.sectionFontSize).attr(`class`,function(e){for(let[t,n]of g.entries())if(e[0]===n)return`sectionTitle sectionTitle`+t%l.numberSectionStyles;return`sectionTitle`})}n.h(k,`vertLabels`);function A(e,t,n,r){let i=o.db.getTodayMarker();if(i===`off`)return;let a=y.append(`g`).attr(`class`,`today`),s=new Date,c=a.append(`line`);c.attr(`x1`,b(s)+e).attr(`x2`,b(s)+e).attr(`y1`,l.titleTopMargin).attr(`y2`,r-l.titleTopMargin).attr(`class`,`today`),i!==``&&c.attr(`style`,i.replace(/,/g,`;`))}n.h(A,`drawToday`);function j(e){let t={},n=[];for(let r=0,i=e.length;r<i;++r)Object.prototype.hasOwnProperty.call(t,e[r])||(t[e[r]]=!0,n.push(e[r]));return n}n.h(j,`checkUnique`)},`draw`)},styles:n.h(e=>`
|
|
7
|
+
.mermaid-main-font {
|
|
8
|
+
font-family: ${e.fontFamily};
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.exclude-range {
|
|
12
|
+
fill: ${e.excludeBkgColor};
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.section {
|
|
16
|
+
stroke: none;
|
|
17
|
+
opacity: 0.2;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.section0 {
|
|
21
|
+
fill: ${e.sectionBkgColor};
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.section2 {
|
|
25
|
+
fill: ${e.sectionBkgColor2};
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.section1,
|
|
29
|
+
.section3 {
|
|
30
|
+
fill: ${e.altSectionBkgColor};
|
|
31
|
+
opacity: 0.2;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.sectionTitle0 {
|
|
35
|
+
fill: ${e.titleColor};
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.sectionTitle1 {
|
|
39
|
+
fill: ${e.titleColor};
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.sectionTitle2 {
|
|
43
|
+
fill: ${e.titleColor};
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.sectionTitle3 {
|
|
47
|
+
fill: ${e.titleColor};
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.sectionTitle {
|
|
51
|
+
text-anchor: start;
|
|
52
|
+
font-family: ${e.fontFamily};
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
/* Grid and axis */
|
|
57
|
+
|
|
58
|
+
.grid .tick {
|
|
59
|
+
stroke: ${e.gridColor};
|
|
60
|
+
opacity: 0.8;
|
|
61
|
+
shape-rendering: crispEdges;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.grid .tick text {
|
|
65
|
+
font-family: ${e.fontFamily};
|
|
66
|
+
fill: ${e.textColor};
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.grid path {
|
|
70
|
+
stroke-width: 0;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
/* Today line */
|
|
75
|
+
|
|
76
|
+
.today {
|
|
77
|
+
fill: none;
|
|
78
|
+
stroke: ${e.todayLineColor};
|
|
79
|
+
stroke-width: 2px;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
/* Task styling */
|
|
84
|
+
|
|
85
|
+
/* Default task */
|
|
86
|
+
|
|
87
|
+
.task {
|
|
88
|
+
stroke-width: 2;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.taskText {
|
|
92
|
+
text-anchor: middle;
|
|
93
|
+
font-family: ${e.fontFamily};
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.taskTextOutsideRight {
|
|
97
|
+
fill: ${e.taskTextDarkColor};
|
|
98
|
+
text-anchor: start;
|
|
99
|
+
font-family: ${e.fontFamily};
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.taskTextOutsideLeft {
|
|
103
|
+
fill: ${e.taskTextDarkColor};
|
|
104
|
+
text-anchor: end;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
/* Special case clickable */
|
|
109
|
+
|
|
110
|
+
.task.clickable {
|
|
111
|
+
cursor: pointer;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.taskText.clickable {
|
|
115
|
+
cursor: pointer;
|
|
116
|
+
fill: ${e.taskTextClickableColor} !important;
|
|
117
|
+
font-weight: bold;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.taskTextOutsideLeft.clickable {
|
|
121
|
+
cursor: pointer;
|
|
122
|
+
fill: ${e.taskTextClickableColor} !important;
|
|
123
|
+
font-weight: bold;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.taskTextOutsideRight.clickable {
|
|
127
|
+
cursor: pointer;
|
|
128
|
+
fill: ${e.taskTextClickableColor} !important;
|
|
129
|
+
font-weight: bold;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
/* Specific task settings for the sections*/
|
|
134
|
+
|
|
135
|
+
.taskText0,
|
|
136
|
+
.taskText1,
|
|
137
|
+
.taskText2,
|
|
138
|
+
.taskText3 {
|
|
139
|
+
fill: ${e.taskTextColor};
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.task0,
|
|
143
|
+
.task1,
|
|
144
|
+
.task2,
|
|
145
|
+
.task3 {
|
|
146
|
+
fill: ${e.taskBkgColor};
|
|
147
|
+
stroke: ${e.taskBorderColor};
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.taskTextOutside0,
|
|
151
|
+
.taskTextOutside2
|
|
152
|
+
{
|
|
153
|
+
fill: ${e.taskTextOutsideColor};
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.taskTextOutside1,
|
|
157
|
+
.taskTextOutside3 {
|
|
158
|
+
fill: ${e.taskTextOutsideColor};
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
/* Active task */
|
|
163
|
+
|
|
164
|
+
.active0,
|
|
165
|
+
.active1,
|
|
166
|
+
.active2,
|
|
167
|
+
.active3 {
|
|
168
|
+
fill: ${e.activeTaskBkgColor};
|
|
169
|
+
stroke: ${e.activeTaskBorderColor};
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
.activeText0,
|
|
173
|
+
.activeText1,
|
|
174
|
+
.activeText2,
|
|
175
|
+
.activeText3 {
|
|
176
|
+
fill: ${e.taskTextDarkColor} !important;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
/* Completed task */
|
|
181
|
+
|
|
182
|
+
.done0,
|
|
183
|
+
.done1,
|
|
184
|
+
.done2,
|
|
185
|
+
.done3 {
|
|
186
|
+
stroke: ${e.doneTaskBorderColor};
|
|
187
|
+
fill: ${e.doneTaskBkgColor};
|
|
188
|
+
stroke-width: 2;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
.doneText0,
|
|
192
|
+
.doneText1,
|
|
193
|
+
.doneText2,
|
|
194
|
+
.doneText3 {
|
|
195
|
+
fill: ${e.taskTextDarkColor} !important;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
/* Done task text displayed outside the bar sits against the diagram background,
|
|
199
|
+
not against the done-task bar, so it must use the outside/contrast color. */
|
|
200
|
+
.doneText0.taskTextOutsideLeft,
|
|
201
|
+
.doneText0.taskTextOutsideRight,
|
|
202
|
+
.doneText1.taskTextOutsideLeft,
|
|
203
|
+
.doneText1.taskTextOutsideRight,
|
|
204
|
+
.doneText2.taskTextOutsideLeft,
|
|
205
|
+
.doneText2.taskTextOutsideRight,
|
|
206
|
+
.doneText3.taskTextOutsideLeft,
|
|
207
|
+
.doneText3.taskTextOutsideRight {
|
|
208
|
+
fill: ${e.taskTextOutsideColor} !important;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
|
|
212
|
+
/* Tasks on the critical line */
|
|
213
|
+
|
|
214
|
+
.crit0,
|
|
215
|
+
.crit1,
|
|
216
|
+
.crit2,
|
|
217
|
+
.crit3 {
|
|
218
|
+
stroke: ${e.critBorderColor};
|
|
219
|
+
fill: ${e.critBkgColor};
|
|
220
|
+
stroke-width: 2;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
.activeCrit0,
|
|
224
|
+
.activeCrit1,
|
|
225
|
+
.activeCrit2,
|
|
226
|
+
.activeCrit3 {
|
|
227
|
+
stroke: ${e.critBorderColor};
|
|
228
|
+
fill: ${e.activeTaskBkgColor};
|
|
229
|
+
stroke-width: 2;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
.doneCrit0,
|
|
233
|
+
.doneCrit1,
|
|
234
|
+
.doneCrit2,
|
|
235
|
+
.doneCrit3 {
|
|
236
|
+
stroke: ${e.critBorderColor};
|
|
237
|
+
fill: ${e.doneTaskBkgColor};
|
|
238
|
+
stroke-width: 2;
|
|
239
|
+
cursor: pointer;
|
|
240
|
+
shape-rendering: crispEdges;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
.milestone {
|
|
244
|
+
transform: rotate(45deg) scale(0.8,0.8);
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
.milestoneText {
|
|
248
|
+
font-style: italic;
|
|
249
|
+
}
|
|
250
|
+
.doneCritText0,
|
|
251
|
+
.doneCritText1,
|
|
252
|
+
.doneCritText2,
|
|
253
|
+
.doneCritText3 {
|
|
254
|
+
fill: ${e.taskTextDarkColor} !important;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
/* Done-crit task text outside the bar \u2014 same reasoning as doneText above. */
|
|
258
|
+
.doneCritText0.taskTextOutsideLeft,
|
|
259
|
+
.doneCritText0.taskTextOutsideRight,
|
|
260
|
+
.doneCritText1.taskTextOutsideLeft,
|
|
261
|
+
.doneCritText1.taskTextOutsideRight,
|
|
262
|
+
.doneCritText2.taskTextOutsideLeft,
|
|
263
|
+
.doneCritText2.taskTextOutsideRight,
|
|
264
|
+
.doneCritText3.taskTextOutsideLeft,
|
|
265
|
+
.doneCritText3.taskTextOutsideRight {
|
|
266
|
+
fill: ${e.taskTextOutsideColor} !important;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
.vert {
|
|
270
|
+
stroke: ${e.vertLineColor};
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
.vertText {
|
|
274
|
+
font-size: 15px;
|
|
275
|
+
text-anchor: middle;
|
|
276
|
+
fill: ${e.vertLineColor} !important;
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
.activeCritText0,
|
|
280
|
+
.activeCritText1,
|
|
281
|
+
.activeCritText2,
|
|
282
|
+
.activeCritText3 {
|
|
283
|
+
fill: ${e.taskTextDarkColor} !important;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
.titleText {
|
|
287
|
+
text-anchor: middle;
|
|
288
|
+
font-size: 18px;
|
|
289
|
+
fill: ${e.titleColor||e.textColor};
|
|
290
|
+
font-family: ${e.fontFamily};
|
|
291
|
+
}
|
|
292
|
+
`,`getStyles`)};exports.diagram=Kr;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require(`./chunk-Kud-AIAt.cjs`),require(`./chunk-K5T4RW27-BdGvq1o8.cjs`);const e=require(`./chunk-67CJDMHE-zWcmgvwZ.cjs`);exports.createGitGraphServices=e.n;
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
require(`./chunk-Kud-AIAt.cjs`);const e=require(`./objectSpread2-iNkE6aJh.cjs`);require(`./chunk-K5T4RW27-BdGvq1o8.cjs`);const t=require(`./chunk-5PVQY5BW-DmATt7Fz.cjs`);require(`./chunk-7N4EOEYR-CAuNhdG9.cjs`),require(`./chunk-67CJDMHE-zWcmgvwZ.cjs`),require(`./chunk-KGLVRYIC-uzPiXgAg.cjs`),require(`./chunk-FOC6F5B3-ScFIigAO.cjs`),require(`./chunk-AA7GKIK3-YMbh5HEs.cjs`),require(`./chunk-2KRD3SAO-COfwt0om.cjs`),require(`./chunk-ORNJ4GCN-HF28XIop.cjs`),require(`./chunk-LIHQZDEY-ChgbfPTz.cjs`),require(`./chunk-CIAEETIT-BP9BiKe5.cjs`);const n=require(`./src-d9yswOqA.cjs`),r=require(`./chunk-ICPOFSXX-DQ4NxQTM.cjs`);require(`./dist-CxdzFxpy.cjs`);const i=require(`./chunk-4BX2VUAB-Zs4zJRk9.cjs`),a=require(`./mermaid-parser.core-BrZQFEht.cjs`),o=require(`./chunk-QZHKN3VN-d_ESXyai.cjs`);var s={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},c=r.d.gitGraph,l=n.h(()=>t.r(e.t(e.t({},c),r.y().gitGraph)),`getConfig`),u=new o.t(()=>{let e=l(),t=e.mainBranchName,n=e.mainBranchOrder;return{mainBranchName:t,commits:new Map,head:null,branchConfig:new Map([[t,{name:t,order:n}]]),branches:new Map([[t,null]]),currBranch:t,direction:`LR`,seq:0,options:{}}});function d(){return t.p({length:7})}n.h(d,`getID`);function f(e,t){let n=Object.create(null);return e.reduce((e,r)=>{let i=t(r);return n[i]||(n[i]=!0,e.push(r)),e},[])}n.h(f,`uniqBy`);var p=n.h(function(e){u.records.direction=e},`setDirection`),m=n.h(function(e){n.g.debug(`options str`,e),e=e==null?void 0:e.trim(),e=e||`{}`;try{u.records.options=JSON.parse(e)}catch(e){n.g.error(`error while parsing gitGraph options`,e.message)}},`setOptions`),h=n.h(function(){return u.records.options},`getOptions`),g=n.h(function(e){var t;let i=e.msg,a=e.id,o=e.type,c=e.tags;n.g.info(`commit`,i,a,o,c),n.g.debug(`Entering commit:`,i,a,o,c);let f=l();a=r.s.sanitizeText(a,f),i=r.s.sanitizeText(i,f),c=c==null?void 0:c.map(e=>r.s.sanitizeText(e,f));let p={id:a||u.records.seq+`-`+d(),message:i,seq:u.records.seq++,type:o==null?s.NORMAL:o,tags:(t=c)==null?[]:t,parents:u.records.head==null?[]:[u.records.head.id],branch:u.records.currBranch};u.records.head=p,n.g.info(`main branch`,f.mainBranchName),u.records.commits.has(p.id)&&n.g.warn(`Commit ID ${p.id} already exists`),u.records.commits.set(p.id,p),u.records.branches.set(u.records.currBranch,p.id),n.g.debug(`in pushCommit `+p.id)},`commit`),_=n.h(function(e){let t=e.name,i=e.order;if(t=r.s.sanitizeText(t,l()),u.records.branches.has(t))throw Error(`Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${t}")`);u.records.branches.set(t,u.records.head==null?null:u.records.head.id),u.records.branchConfig.set(t,{name:t,order:i}),b(t),n.g.debug(`in createBranch`)},`branch`),v=n.h(e=>{let t=e.branch,i=e.id,a=e.type,o=e.tags,c=l();t=r.s.sanitizeText(t,c),i&&(i=r.s.sanitizeText(i,c));let f=u.records.branches.get(u.records.currBranch),p=u.records.branches.get(t),m=f?u.records.commits.get(f):void 0,h=p?u.records.commits.get(p):void 0;if(m&&h&&m.branch===t)throw Error(`Cannot merge branch '${t}' into itself.`);if(u.records.currBranch===t){let e=Error(`Incorrect usage of "merge". Cannot merge a branch to itself`);throw e.hash={text:`merge ${t}`,token:`merge ${t}`,expected:[`branch abc`]},e}if(m===void 0||!m){let e=Error(`Incorrect usage of "merge". Current branch (${u.records.currBranch})has no commits`);throw e.hash={text:`merge ${t}`,token:`merge ${t}`,expected:[`commit`]},e}if(!u.records.branches.has(t)){let e=Error(`Incorrect usage of "merge". Branch to be merged (`+t+`) does not exist`);throw e.hash={text:`merge ${t}`,token:`merge ${t}`,expected:[`branch ${t}`]},e}if(h===void 0||!h){let e=Error(`Incorrect usage of "merge". Branch to be merged (`+t+`) has no commits`);throw e.hash={text:`merge ${t}`,token:`merge ${t}`,expected:[`"commit"`]},e}if(m===h){let e=Error(`Incorrect usage of "merge". Both branches have same head`);throw e.hash={text:`merge ${t}`,token:`merge ${t}`,expected:[`branch abc`]},e}if(i&&u.records.commits.has(i)){let e=Error(`Incorrect usage of "merge". Commit with id:`+i+` already exists, use different custom id`);throw e.hash={text:`merge ${t} ${i} ${a} ${o==null?void 0:o.join(` `)}`,token:`merge ${t} ${i} ${a} ${o==null?void 0:o.join(` `)}`,expected:[`merge ${t} ${i}_UNIQUE ${a} ${o==null?void 0:o.join(` `)}`]},e}let g=p||``,_={id:i||`${u.records.seq}-${d()}`,message:`merged branch ${t} into ${u.records.currBranch}`,seq:u.records.seq++,parents:u.records.head==null?[]:[u.records.head.id,g],branch:u.records.currBranch,type:s.MERGE,customType:a,customId:!!i,tags:o==null?[]:o};u.records.head=_,u.records.commits.set(_.id,_),u.records.branches.set(u.records.currBranch,_.id),n.g.debug(u.records.branches),n.g.debug(`in mergeBranch`)},`merge`),y=n.h(function(e){let t=e.id,i=e.targetId,a=e.tags,o=e.parent;n.g.debug(`Entering cherryPick:`,t,i,a);let c=l();if(t=r.s.sanitizeText(t,c),i=r.s.sanitizeText(i,c),a=a==null?void 0:a.map(e=>r.s.sanitizeText(e,c)),o=r.s.sanitizeText(o,c),!t||!u.records.commits.has(t)){let e=Error(`Incorrect usage of "cherryPick". Source commit id should exist and provided`);throw e.hash={text:`cherryPick ${t} ${i}`,token:`cherryPick ${t} ${i}`,expected:[`cherry-pick abc`]},e}let f=u.records.commits.get(t);if(f===void 0||!f)throw Error(`Incorrect usage of "cherryPick". Source commit id should exist and provided`);if(o&&!(Array.isArray(f.parents)&&f.parents.includes(o)))throw Error(`Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.`);let p=f.branch;if(f.type===s.MERGE&&!o)throw Error(`Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.`);if(!i||!u.records.commits.has(i)){if(p===u.records.currBranch){let e=Error(`Incorrect usage of "cherryPick". Source commit is already on current branch`);throw e.hash={text:`cherryPick ${t} ${i}`,token:`cherryPick ${t} ${i}`,expected:[`cherry-pick abc`]},e}let e=u.records.branches.get(u.records.currBranch);if(e===void 0||!e){let e=Error(`Incorrect usage of "cherry-pick". Current branch (${u.records.currBranch})has no commits`);throw e.hash={text:`cherryPick ${t} ${i}`,token:`cherryPick ${t} ${i}`,expected:[`cherry-pick abc`]},e}let r=u.records.commits.get(e);if(r===void 0||!r){let e=Error(`Incorrect usage of "cherry-pick". Current branch (${u.records.currBranch})has no commits`);throw e.hash={text:`cherryPick ${t} ${i}`,token:`cherryPick ${t} ${i}`,expected:[`cherry-pick abc`]},e}let c={id:u.records.seq+`-`+d(),message:`cherry-picked ${f==null?void 0:f.message} into ${u.records.currBranch}`,seq:u.records.seq++,parents:u.records.head==null?[]:[u.records.head.id,f.id],branch:u.records.currBranch,type:s.CHERRY_PICK,tags:a?a.filter(Boolean):[`cherry-pick:${f.id}${f.type===s.MERGE?`|parent:${o}`:``}`]};u.records.head=c,u.records.commits.set(c.id,c),u.records.branches.set(u.records.currBranch,c.id),n.g.debug(u.records.branches),n.g.debug(`in cherryPick`)}},`cherryPick`),b=n.h(function(e){if(e=r.s.sanitizeText(e,l()),u.records.branches.has(e)){u.records.currBranch=e;let n=u.records.branches.get(u.records.currBranch);if(n===void 0||!n)u.records.head=null;else{var t;u.records.head=(t=u.records.commits.get(n))==null?null:t}}else{let t=Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${e}")`);throw t.hash={text:`checkout ${e}`,token:`checkout ${e}`,expected:[`branch ${e}`]},t}},`checkout`);function x(e,t,n){let r=e.indexOf(t);r===-1?e.push(n):e.splice(r,1,n)}n.h(x,`upsert`);function S(e){let t=e.reduce((e,t)=>e.seq>t.seq?e:t,e[0]),r=``;e.forEach(function(e){e===t?r+=` *`:r+=` |`});let i=[r,t.id,t.seq];for(let e in u.records.branches)u.records.branches.get(e)===t.id&&i.push(e);if(n.g.debug(i.join(` `)),t.parents&&t.parents.length==2&&t.parents[0]&&t.parents[1]){let n=u.records.commits.get(t.parents[0]);x(e,t,n),t.parents[1]&&e.push(u.records.commits.get(t.parents[1]))}else if(t.parents.length==0)return;else if(t.parents[0]){let n=u.records.commits.get(t.parents[0]);x(e,t,n)}e=f(e,e=>e.id),S(e)}n.h(S,`prettyPrintCommitHistory`);var ee=n.h(function(){n.g.debug(u.records.commits);let e=T()[0];S([e])},`prettyPrint`),te=n.h(function(){u.reset(),r.a()},`clear`),ne=n.h(function(){return[...u.records.branchConfig.values()].map((t,n)=>t.order!==null&&t.order!==void 0?t:e.t(e.t({},t),{},{order:parseFloat(`0.${n}`)})).sort((e,t)=>{var n,r;return((n=e.order)==null?0:n)-((r=t.order)==null?0:r)}).map(({name:e})=>({name:e}))},`getBranchesAsObjArray`),C=n.h(function(){return u.records.branches},`getBranches`),w=n.h(function(){return u.records.commits},`getCommits`),T=n.h(function(){let e=[...u.records.commits.values()];return e.forEach(function(e){n.g.debug(e.id)}),e.sort((e,t)=>e.seq-t.seq),e},`getCommitsArray`),E={commitType:s,getConfig:l,setDirection:p,setOptions:m,getOptions:h,commit:g,branch:_,merge:v,cherryPick:y,checkout:b,prettyPrint:ee,clear:te,getBranchesAsObjArray:ne,getBranches:C,getCommits:w,getCommitsArray:T,getCurrentBranch:n.h(function(){return u.records.currBranch},`getCurrentBranch`),getDirection:n.h(function(){return u.records.direction},`getDirection`),getHead:n.h(function(){return u.records.head},`getHead`),setAccTitle:r.V,getAccTitle:r.v,getAccDescription:r._,setAccDescription:r.B,setDiagramTitle:r.W,getDiagramTitle:r.C},D=n.h((e,t)=>{i.t(e,t),e.dir&&t.setDirection(e.dir);for(let n of e.statements)O(n,t)},`populate`),O=n.h((e,t)=>{let r={Commit:n.h(e=>t.commit(k(e)),`Commit`),Branch:n.h(e=>t.branch(A(e)),`Branch`),Merge:n.h(e=>t.merge(re(e)),`Merge`),Checkout:n.h(e=>t.checkout(ie(e)),`Checkout`),CherryPicking:n.h(e=>t.cherryPick(ae(e)),`CherryPicking`)}[e.$type];r?r(e):n.g.error(`Unknown statement type: ${e.$type}`)},`parseStatement`),k=n.h(e=>{var t,n;return{id:e.id,msg:(t=e.message)==null?``:t,type:e.type===void 0?s.NORMAL:s[e.type],tags:(n=e.tags)==null?void 0:n}},`parseCommit`),A=n.h(e=>{var t;return{name:e.name,order:(t=e.order)==null?0:t}},`parseBranch`),re=n.h(e=>{var t,n;return{branch:e.branch,id:(t=e.id)==null?``:t,type:e.type===void 0?void 0:s[e.type],tags:(n=e.tags)==null?void 0:n}},`parseMerge`),ie=n.h(e=>e.branch,`parseCheckout`),ae=n.h(e=>{var t;return{id:e.id,targetId:``,tags:((t=e.tags)==null?void 0:t.length)===0?void 0:e.tags,parent:e.parent}},`parseCherryPicking`),oe={parse:n.h(async e=>{let t=await a.t(`gitGraph`,e);n.g.debug(t),D(t,E)},`parse`)},j=10,M=40,N=4,P=2,F=8,I=new Set([`redux`,`redux-dark`,`redux-color`,`redux-dark-color`]),L=12,R=new Set([`redux-color`,`redux-dark-color`]),se=new Set([`dark`,`redux-dark`,`redux-dark-color`,`neo-dark`]),z=n.h((e,t,n=!1)=>n&&e>0?(e-1)%(t-1)+1:e%t,`calcColorIndex`),B=new Map,V=new Map,H=30,U=new Map,W=[],G=0,K=`LR`,ce=n.h(()=>{B.clear(),V.clear(),U.clear(),G=0,W=[],K=`LR`},`clear`),q=n.h(e=>{let t=document.createElementNS(`http://www.w3.org/2000/svg`,`text`);return(typeof e==`string`?e.split(/\\n|\n|<br\s*\/?>/gi):e).forEach(e=>{let n=document.createElementNS(`http://www.w3.org/2000/svg`,`tspan`);n.setAttributeNS(`http://www.w3.org/XML/1998/namespace`,`xml:space`,`preserve`),n.setAttribute(`dy`,`1em`),n.setAttribute(`x`,`0`),n.setAttribute(`class`,`row`),n.textContent=e.trim(),t.appendChild(n)}),t},`drawText`),J=n.h(e=>{let t,r,i;return K===`BT`?(r=n.h((e,t)=>e<=t,`comparisonFunc`),i=1/0):(r=n.h((e,t)=>e>=t,`comparisonFunc`),i=0),e.forEach(e=>{var n,a;let o=K===`TB`||K==`BT`?(n=V.get(e))==null?void 0:n.y:(a=V.get(e))==null?void 0:a.x;o!==void 0&&r(o,i)&&(t=e,i=o)}),t},`findClosestParent`),Y=n.h(e=>{let t=``,n=1/0;return e.forEach(e=>{let r=V.get(e).y;r<=n&&(t=e,n=r)}),t||void 0},`findClosestParentBT`),le=n.h((e,t,n)=>{let r=n,i=n,a=[];e.forEach(e=>{let n=t.get(e);if(!n)throw Error(`Commit not found for key ${e}`);n.parents.length?(r=de(n),i=Math.max(r,i)):a.push(n),fe(n,r)}),r=i,a.forEach(e=>{pe(e,r,n)}),e.forEach(e=>{let n=t.get(e);if(n!=null&&n.parents.length){let e=Y(n.parents);r=V.get(e).y-M,r<=i&&(i=r);let t=B.get(n.branch).pos,a=r-j;V.set(n.id,{x:t,y:a})}})},`setParallelBTPos`),ue=n.h(e=>{var t;let n=J(e.parents.filter(e=>e!==null));if(!n)throw Error(`Closest parent not found for commit ${e.id}`);let r=(t=V.get(n))==null?void 0:t.y;if(r===void 0)throw Error(`Closest parent position not found for commit ${e.id}`);return r},`findClosestParentPos`),de=n.h(e=>ue(e)+M,`calculateCommitPosition`),fe=n.h((e,t)=>{let n=B.get(e.branch);if(!n)throw Error(`Branch not found for commit ${e.id}`);let r=n.pos,i=t+j;return V.set(e.id,{x:r,y:i}),{x:r,y:i}},`setCommitPosition`),pe=n.h((e,t,n)=>{let r=B.get(e.branch);if(!r)throw Error(`Branch not found for commit ${e.id}`);let i=t+n,a=r.pos;V.set(e.id,{x:a,y:i})},`setRootPosition`),me=n.h((e,t,n,i,a,o)=>{let{theme:c}=r.b(),l=I.has(c==null?``:c),u=R.has(c==null?``:c),d=se.has(c==null?``:c);if(o===s.HIGHLIGHT)e.append(`rect`).attr(`x`,n.x-10+(l?3:0)).attr(`y`,n.y-10+(l?3:0)).attr(`width`,l?14:20).attr(`height`,l?14:20).attr(`class`,`commit ${t.id} commit-highlight${z(a,F,u)} ${i}-outer`),e.append(`rect`).attr(`x`,n.x-6+(l?2:0)).attr(`y`,n.y-6+(l?2:0)).attr(`width`,l?8:12).attr(`height`,l?8:12).attr(`class`,`commit ${t.id} commit${z(a,F,u)} ${i}-inner`);else if(o===s.CHERRY_PICK)e.append(`circle`).attr(`cx`,n.x).attr(`cy`,n.y).attr(`r`,l?7:10).attr(`class`,`commit ${t.id} ${i}`),e.append(`circle`).attr(`cx`,n.x-3).attr(`cy`,n.y+2).attr(`r`,l?2.5:2.75).attr(`fill`,d?`#000000`:`#fff`).attr(`class`,`commit ${t.id} ${i}`),e.append(`circle`).attr(`cx`,n.x+3).attr(`cy`,n.y+2).attr(`r`,l?2.5:2.75).attr(`fill`,d?`#000000`:`#fff`).attr(`class`,`commit ${t.id} ${i}`),e.append(`line`).attr(`x1`,n.x+3).attr(`y1`,n.y+1).attr(`x2`,n.x).attr(`y2`,n.y-5).attr(`stroke`,d?`#000000`:`#fff`).attr(`class`,`commit ${t.id} ${i}`),e.append(`line`).attr(`x1`,n.x-3).attr(`y1`,n.y+1).attr(`x2`,n.x).attr(`y2`,n.y-5).attr(`stroke`,d?`#000000`:`#fff`).attr(`class`,`commit ${t.id} ${i}`);else{let r=e.append(`circle`);if(r.attr(`cx`,n.x),r.attr(`cy`,n.y),r.attr(`r`,l?7:10),r.attr(`class`,`commit ${t.id} commit${z(a,F,u)}`),o===s.MERGE){let r=e.append(`circle`);r.attr(`cx`,n.x),r.attr(`cy`,n.y),r.attr(`r`,l?5:6),r.attr(`class`,`commit ${i} ${t.id} commit${z(a,F,u)}`)}if(o===s.REVERSE){let r=e.append(`path`),o=l?4:5;r.attr(`d`,`M ${n.x-o},${n.y-o}L${n.x+o},${n.y+o}M${n.x-o},${n.y+o}L${n.x+o},${n.y-o}`).attr(`class`,`commit ${i} ${t.id} commit${z(a,F,u)}`)}}},`drawCommitBullet`),he=n.h((e,t,n,r,i)=>{if(t.type!==s.CHERRY_PICK&&(t.customId&&t.type===s.MERGE||t.type!==s.MERGE)&&i.showCommitLabel){var a;let o=e.append(`g`),s=o.insert(`rect`).attr(`class`,`commit-label-bkg`),c=o.append(`text`).attr(`x`,r).attr(`y`,n.y+25).attr(`class`,`commit-label`).text(t.id),l=(a=c.node())==null?void 0:a.getBBox();if(l&&(s.attr(`x`,n.posWithOffset-l.width/2-P).attr(`y`,n.y+13.5).attr(`width`,l.width+2*P).attr(`height`,l.height+2*P),K===`TB`||K===`BT`?(s.attr(`x`,n.x-(l.width+4*N+5)).attr(`y`,n.y-12),c.attr(`x`,n.x-(l.width+4*N)).attr(`y`,n.y+l.height-12)):c.attr(`x`,n.posWithOffset-l.width/2),i.rotateCommitLabel))if(K===`TB`||K===`BT`)c.attr(`transform`,`rotate(-45, `+n.x+`, `+n.y+`)`),s.attr(`transform`,`rotate(-45, `+n.x+`, `+n.y+`)`);else{let e=-7.5-(l.width+10)/25*9.5,t=10+l.width/25*8.5;o.attr(`transform`,`translate(`+e+`, `+t+`) rotate(-45, `+r+`, `+n.y+`)`)}}},`drawCommitLabel`),ge=n.h((e,t,n,r)=>{if(t.tags.length>0){let a=0,o=0,s=0,c=[];for(let r of t.tags.reverse()){var i;let t=e.insert(`polygon`),l=e.append(`circle`),u=e.append(`text`).attr(`y`,n.y-16-a).attr(`class`,`tag-label`).text(r),d=(i=u.node())==null?void 0:i.getBBox();if(!d)throw Error(`Tag bbox not found`);o=Math.max(o,d.width),s=Math.max(s,d.height),u.attr(`x`,n.posWithOffset-d.width/2),c.push({tag:u,hole:l,rect:t,yOffset:a}),a+=20}for(let{tag:e,hole:t,rect:i,yOffset:a}of c){let c=s/2,l=n.y-19.2-a;if(i.attr(`class`,`tag-label-bkg`).attr(`points`,`
|
|
2
|
+
${r-o/2-N/2},${l+P}
|
|
3
|
+
${r-o/2-N/2},${l-P}
|
|
4
|
+
${n.posWithOffset-o/2-N},${l-c-P}
|
|
5
|
+
${n.posWithOffset+o/2+N},${l-c-P}
|
|
6
|
+
${n.posWithOffset+o/2+N},${l+c+P}
|
|
7
|
+
${n.posWithOffset-o/2-N},${l+c+P}`),t.attr(`cy`,l).attr(`cx`,r-o/2+N/2).attr(`r`,1.5).attr(`class`,`tag-hole`),K===`TB`||K===`BT`){let s=r+a;i.attr(`class`,`tag-label-bkg`).attr(`points`,`
|
|
8
|
+
${n.x},${s+2}
|
|
9
|
+
${n.x},${s-2}
|
|
10
|
+
${n.x+j},${s-c-2}
|
|
11
|
+
${n.x+j+o+4},${s-c-2}
|
|
12
|
+
${n.x+j+o+4},${s+c+2}
|
|
13
|
+
${n.x+j},${s+c+2}`).attr(`transform`,`translate(12,12) rotate(45, `+n.x+`,`+r+`)`),t.attr(`cx`,n.x+N/2).attr(`cy`,s).attr(`transform`,`translate(12,12) rotate(45, `+n.x+`,`+r+`)`),e.attr(`x`,n.x+5).attr(`y`,s+3).attr(`transform`,`translate(14,14) rotate(45, `+n.x+`,`+r+`)`)}}}},`drawCommitTags`),_e=n.h(e=>{var t;switch((t=e.customType)==null?e.type:t){case s.NORMAL:return`commit-normal`;case s.REVERSE:return`commit-reverse`;case s.HIGHLIGHT:return`commit-highlight`;case s.MERGE:return`commit-merge`;case s.CHERRY_PICK:return`commit-cherry-pick`;default:return`commit-normal`}},`getCommitClassType`),ve=n.h((e,t,n,r)=>{let i={x:0,y:0};if(e.parents.length>0){let n=J(e.parents);if(n){var a;let s=(a=r.get(n))==null?i:a;if(t===`TB`)return s.y+M;if(t===`BT`){var o;return((o=r.get(e.id))==null?i:o).y-M}else return s.x+M}}else if(t===`TB`)return H;else if(t===`BT`){var s;return((s=r.get(e.id))==null?i:s).y-M}else return 0;return 0},`calculatePosition`),ye=n.h((e,t,n)=>{var i,a,o;let s=K===`BT`&&n?t:t+j,c=(i=B.get(e.branch))==null?void 0:i.pos,l=K===`TB`||K===`BT`?(a=B.get(e.branch))==null?void 0:a.pos:s;if(l===void 0||c===void 0)throw Error(`Position were undefined for commit ${e.id}`);let u=I.has((o=r.b().theme)==null?``:o);return{x:l,y:K===`TB`||K===`BT`?s:c+(u?L/2+1:-2),posWithOffset:s}},`getCommitPosition`),X=n.h((e,t,r,i)=>{var a;let o=e.append(`g`).attr(`class`,`commit-bullets`),s=e.append(`g`).attr(`class`,`commit-labels`),c=K===`TB`||K===`BT`?H:0,l=[...t.keys()],u=(a=i.parallelCommits)==null?!1:a,d=n.h((e,n)=>{var r,i;let a=(r=t.get(e))==null?void 0:r.seq,o=(i=t.get(n))==null?void 0:i.seq;return a!==void 0&&o!==void 0?a-o:0},`sortKeys`),f=l.sort(d);K===`BT`&&(u&&le(f,t,c),f=f.reverse()),f.forEach(e=>{let n=t.get(e);if(!n)throw Error(`Commit not found for key ${e}`);u&&(c=ve(n,K,c,V));let a=ye(n,c,u);if(r){var l,d,f;let e=_e(n),t=(l=n.customType)==null?n.type:l;me(o,n,a,e,(d=(f=B.get(n.branch))==null?void 0:f.index)==null?0:d,t),he(s,n,a,c,i),ge(s,n,a,c)}K===`TB`||K===`BT`?V.set(n.id,{x:a.x,y:a.posWithOffset}):V.set(n.id,{x:a.posWithOffset,y:a.y}),c=K===`BT`&&u?c+M:c+M+j,c>G&&(G=c)})},`drawCommits`),be=n.h((e,t,r,i,a)=>{let o=(K===`TB`||K===`BT`?r.x<i.x:r.y<i.y)?t.branch:e.branch,s=n.h(e=>e.branch===o,`isOnBranchToGetCurve`),c=n.h(n=>n.seq>e.seq&&n.seq<t.seq,`isBetweenCommits`);return[...a.values()].some(e=>c(e)&&s(e))},`shouldRerouteArrow`),Z=n.h((e,t,n=0)=>{let r=e+Math.abs(e-t)/2;return n>5?r:W.every(e=>Math.abs(e-r)>=10)?(W.push(r),r):Z(e,t-Math.abs(e-t)/5,n+1)},`findLane`),xe=n.h((e,t,n,i)=>{var a;let{theme:o}=r.b(),c=R.has(o==null?``:o),l=V.get(t.id),u=V.get(n.id);if(l===void 0||u===void 0)throw Error(`Commit positions not found for commits ${t.id} and ${n.id}`);let d=be(t,n,l,u,i),f=``,p=``,m=0,h=0,g=(a=B.get(n.branch))==null?void 0:a.index;if(n.type===s.MERGE&&t.id!==n.parents[0]){var _;g=(_=B.get(t.branch))==null?void 0:_.index}let v;if(d){f=`A 10 10, 0, 0, 0,`,p=`A 10 10, 0, 0, 1,`,m=10,h=10;let e=l.y<u.y?Z(l.y,u.y):Z(u.y,l.y),n=l.x<u.x?Z(l.x,u.x):Z(u.x,l.x);if(K===`TB`)if(l.x<u.x)v=`M ${l.x} ${l.y} L ${n-m} ${l.y} ${p} ${n} ${l.y+h} L ${n} ${u.y-m} ${f} ${n+h} ${u.y} L ${u.x} ${u.y}`;else{var y;g=(y=B.get(t.branch))==null?void 0:y.index,v=`M ${l.x} ${l.y} L ${n+m} ${l.y} ${f} ${n} ${l.y+h} L ${n} ${u.y-m} ${p} ${n-h} ${u.y} L ${u.x} ${u.y}`}else if(K===`BT`)if(l.x<u.x)v=`M ${l.x} ${l.y} L ${n-m} ${l.y} ${f} ${n} ${l.y-h} L ${n} ${u.y+m} ${p} ${n+h} ${u.y} L ${u.x} ${u.y}`;else{var b;g=(b=B.get(t.branch))==null?void 0:b.index,v=`M ${l.x} ${l.y} L ${n+m} ${l.y} ${p} ${n} ${l.y-h} L ${n} ${u.y+m} ${f} ${n-h} ${u.y} L ${u.x} ${u.y}`}else if(l.y<u.y)v=`M ${l.x} ${l.y} L ${l.x} ${e-m} ${f} ${l.x+h} ${e} L ${u.x-m} ${e} ${p} ${u.x} ${e+h} L ${u.x} ${u.y}`;else{var x;g=(x=B.get(t.branch))==null?void 0:x.index,v=`M ${l.x} ${l.y} L ${l.x} ${e+m} ${p} ${l.x+h} ${e} L ${u.x-m} ${e} ${f} ${u.x} ${e-h} L ${u.x} ${u.y}`}}else f=`A 20 20, 0, 0, 0,`,p=`A 20 20, 0, 0, 1,`,m=20,h=20,K===`TB`?(l.x<u.x&&(v=n.type===s.MERGE&&t.id!==n.parents[0]?`M ${l.x} ${l.y} L ${l.x} ${u.y-m} ${f} ${l.x+h} ${u.y} L ${u.x} ${u.y}`:`M ${l.x} ${l.y} L ${u.x-m} ${l.y} ${p} ${u.x} ${l.y+h} L ${u.x} ${u.y}`),l.x>u.x&&(f=`A 20 20, 0, 0, 0,`,p=`A 20 20, 0, 0, 1,`,m=20,h=20,v=n.type===s.MERGE&&t.id!==n.parents[0]?`M ${l.x} ${l.y} L ${l.x} ${u.y-m} ${p} ${l.x-h} ${u.y} L ${u.x} ${u.y}`:`M ${l.x} ${l.y} L ${u.x+m} ${l.y} ${f} ${u.x} ${l.y+h} L ${u.x} ${u.y}`),l.x===u.x&&(v=`M ${l.x} ${l.y} L ${u.x} ${u.y}`)):K===`BT`?(l.x<u.x&&(v=n.type===s.MERGE&&t.id!==n.parents[0]?`M ${l.x} ${l.y} L ${l.x} ${u.y+m} ${p} ${l.x+h} ${u.y} L ${u.x} ${u.y}`:`M ${l.x} ${l.y} L ${u.x-m} ${l.y} ${f} ${u.x} ${l.y-h} L ${u.x} ${u.y}`),l.x>u.x&&(f=`A 20 20, 0, 0, 0,`,p=`A 20 20, 0, 0, 1,`,m=20,h=20,v=n.type===s.MERGE&&t.id!==n.parents[0]?`M ${l.x} ${l.y} L ${l.x} ${u.y+m} ${f} ${l.x-h} ${u.y} L ${u.x} ${u.y}`:`M ${l.x} ${l.y} L ${u.x+m} ${l.y} ${p} ${u.x} ${l.y-h} L ${u.x} ${u.y}`),l.x===u.x&&(v=`M ${l.x} ${l.y} L ${u.x} ${u.y}`)):(l.y<u.y&&(v=n.type===s.MERGE&&t.id!==n.parents[0]?`M ${l.x} ${l.y} L ${u.x-m} ${l.y} ${p} ${u.x} ${l.y+h} L ${u.x} ${u.y}`:`M ${l.x} ${l.y} L ${l.x} ${u.y-m} ${f} ${l.x+h} ${u.y} L ${u.x} ${u.y}`),l.y>u.y&&(v=n.type===s.MERGE&&t.id!==n.parents[0]?`M ${l.x} ${l.y} L ${u.x-m} ${l.y} ${f} ${u.x} ${l.y-h} L ${u.x} ${u.y}`:`M ${l.x} ${l.y} L ${l.x} ${u.y+m} ${p} ${l.x+h} ${u.y} L ${u.x} ${u.y}`),l.y===u.y&&(v=`M ${l.x} ${l.y} L ${u.x} ${u.y}`));if(v===void 0)throw Error(`Line definition not found`);e.append(`path`).attr(`d`,v).attr(`class`,`arrow arrow`+z(g,F,c))},`drawArrow`),Se=n.h((e,t)=>{let n=e.append(`g`).attr(`class`,`commit-arrows`);[...t.keys()].forEach(e=>{let r=t.get(e);r.parents&&r.parents.length>0&&r.parents.forEach(e=>{xe(n,t.get(e),r,t)})})},`drawArrows`),Ce=n.h((e,t,n,i)=>{let{look:a,theme:o,themeVariables:s}=r.b(),{dropShadow:c,THEME_COLOR_LIMIT:l}=s,u=I.has(o==null?``:o),d=R.has(o==null?``:o),f=e.append(`g`);t.forEach((e,t)=>{var r;let o=z(t,u?l:F,d),s=(r=B.get(e.name))==null?void 0:r.pos;if(s===void 0)throw Error(`Position not found for branch ${e.name}`);let p=K===`TB`||K===`BT`?s:u?s+L/2+1:s-2,m=f.append(`line`);m.attr(`x1`,0),m.attr(`y1`,p),m.attr(`x2`,G),m.attr(`y2`,p),m.attr(`class`,`branch branch`+o),K===`TB`?(m.attr(`y1`,H),m.attr(`x1`,s),m.attr(`y2`,G),m.attr(`x2`,s)):K===`BT`&&(m.attr(`y1`,G),m.attr(`x1`,s),m.attr(`y2`,H),m.attr(`x2`,s)),W.push(p);let h=e.name,g=q(h),_=f.insert(`rect`),v=f.insert(`g`).attr(`class`,`branchLabel`).insert(`g`).attr(`class`,`label branch-label`+o);v.node().appendChild(g);let y=g.getBBox(),b=u?0:4,x=u?16:0,S=u?L:0;a===`neo`&&_.attr(`data-look`,`neo`),_.attr(`class`,`branchLabelBkg label`+o).attr(`style`,a===`neo`?`filter:${u?`url(#${i}-drop-shadow)`:c}`:``).attr(`rx`,b).attr(`ry`,b).attr(`x`,-y.width-4-(n.rotateCommitLabel===!0?30:0)).attr(`y`,-y.height/2+10).attr(`width`,y.width+18+x).attr(`height`,y.height+4+S),v.attr(`transform`,`translate(`+(-y.width-14-(n.rotateCommitLabel===!0?30:0)+x/2)+`, `+(p-y.height/2-2)+`)`),K===`TB`?(_.attr(`x`,s-y.width/2-10).attr(`y`,0),v.attr(`transform`,`translate(`+(s-y.width/2-5)+`, 0)`),u&&(_.attr(`transform`,`translate(${-x/2-3}, ${-S-10})`),v.attr(`transform`,`translate(`+(s-y.width/2-5)+`, `+(-S*2+7)+`)`))):K===`BT`?(_.attr(`x`,s-y.width/2-10).attr(`y`,G),v.attr(`transform`,`translate(`+(s-y.width/2-5)+`, `+G+`)`),u&&(_.attr(`transform`,`translate(${-x/2-3}, ${S+10})`),v.attr(`transform`,`translate(`+(s-y.width/2-5)+`, `+(G+S*2+4)+`)`))):_.attr(`transform`,`translate(-19, `+(p-12-S/2)+`)`)})},`drawBranches`),we=n.h(function(e,t,n,r,i){return B.set(e,{pos:t,index:n}),t+=50+(i?40:0)+(K===`TB`||K===`BT`?r.width/2:0),t},`setBranchPosition`),Te={draw:n.h(function(e,i,a,o){var s,c;ce(),n.g.debug(`in gitgraph renderer`,e+`
|
|
14
|
+
`,`id:`,i,a);let l=o.db;if(!l.getConfig){n.g.error(`getConfig method is not available on db`);return}let u=l.getConfig(),d=(s=u.rotateCommitLabel)==null?!1:s;U=l.getCommits();let f=l.getBranchesAsObjArray();K=l.getDirection();let p=n.p(`[id="${i}"]`),{look:m,theme:h,themeVariables:g}=r.b(),{useGradient:_,gradientStart:v,gradientStop:y,filterColor:b}=g;if(_){let e=p.append(`defs`).append(`linearGradient`).attr(`id`,i+`-gradient`).attr(`gradientUnits`,`objectBoundingBox`).attr(`x1`,`0%`).attr(`y1`,`0%`).attr(`x2`,`100%`).attr(`y2`,`0%`);e.append(`stop`).attr(`offset`,`0%`).attr(`stop-color`,v).attr(`stop-opacity`,1),e.append(`stop`).attr(`offset`,`100%`).attr(`stop-color`,y).attr(`stop-opacity`,1)}m===`neo`&&I.has(h==null?``:h)&&p.append(`defs`).append(`filter`).attr(`id`,i+`-drop-shadow`).attr(`height`,`130%`).attr(`width`,`130%`).append(`feDropShadow`).attr(`dx`,`4`).attr(`dy`,`4`).attr(`stdDeviation`,0).attr(`flood-opacity`,`0.06`).attr(`flood-color`,b);let x=0;f.forEach((e,t)=>{var n;let r=q(e.name),i=p.append(`g`),a=i.insert(`g`).attr(`class`,`branchLabel`),o=a.insert(`g`).attr(`class`,`label branch-label`);(n=o.node())==null||n.appendChild(r);let s=r.getBBox();x=we(e.name,x,t,s,d),o.remove(),a.remove(),i.remove()}),X(p,U,!1,u),u.showBranches&&Ce(p,f,u,i),Se(p,U),X(p,U,!0,u),t.h.insertTitle(p,`gitTitleText`,(c=u.titleTopMargin)==null?0:c,l.getDiagramTitle()),r.q(void 0,p,u.diagramPadding,u.useMaxWidth)},`draw`)},Q=8,$=new Set([`redux`,`redux-dark`,`redux-color`,`redux-dark-color`]),Ee=new Set([`redux-color`,`redux-dark-color`]),De=new Set([`neo`,`neo-dark`]),Oe=new Set([`dark`,`redux-dark`,`redux-dark-color`,`neo-dark`]),ke=new Set([`redux`,`redux-dark`,`redux-color`,`redux-dark-color`,`neo`,`neo-dark`]),Ae=n.h(e=>{let{svgId:t}=e,n=``;if(e.useGradient&&t)for(let r=0;r<e.THEME_COLOR_LIMIT;r++)n+=`
|
|
15
|
+
.label${r} { fill: ${e.mainBkg}; stroke: url(${t}-gradient); stroke-width: ${e.strokeWidth};}
|
|
16
|
+
`;return n},`genGitGraphGradient`),je=n.h(e=>{let{theme:t,themeVariables:n}=r.y(),{borderColorArray:i}=n,a=$.has(t);if(De.has(t)){let t=``;for(let n=0;n<e.THEME_COLOR_LIMIT;n++)if(n===0)t+=`
|
|
17
|
+
.branch-label${n} { fill: ${e.nodeBorder};}
|
|
18
|
+
.commit${n} { stroke: ${e.nodeBorder}; }
|
|
19
|
+
.commit-highlight${n} { stroke: ${e.nodeBorder}; fill: ${e.nodeBorder}; }
|
|
20
|
+
.arrow${n} { stroke: ${e.nodeBorder}; }
|
|
21
|
+
.commit-bullets { fill: ${e.nodeBorder}; }
|
|
22
|
+
.commit-cherry-pick${n} { stroke: ${e.nodeBorder}; }
|
|
23
|
+
${Ae(e)}`;else{let r=n%Q;t+=`
|
|
24
|
+
.branch-label${n} { fill: ${e[`gitBranchLabel`+r]}; }
|
|
25
|
+
.commit${n} { stroke: ${e[`git`+r]}; fill: ${e[`git`+r]}; }
|
|
26
|
+
.commit-highlight${n} { stroke: ${e[`gitInv`+r]}; fill: ${e[`gitInv`+r]}; }
|
|
27
|
+
.arrow${n} { stroke: ${e[`git`+r]}; }
|
|
28
|
+
`}return t}else if(Ee.has(t)){let n=``;for(let r=0;r<e.THEME_COLOR_LIMIT;r++)if(r===0)n+=`
|
|
29
|
+
.branch-label${r} { fill: ${e.nodeBorder}; ${a?`font-weight:${e.noteFontWeight}`:``} }
|
|
30
|
+
.commit${r} { stroke: ${e.nodeBorder}; }
|
|
31
|
+
.commit-highlight${r} { stroke: ${e.nodeBorder}; fill: ${e.mainBkg}; }
|
|
32
|
+
.label${r} { fill: ${e.mainBkg}; stroke: ${e.nodeBorder}; stroke-width: ${e.strokeWidth}; ${a?`font-weight:${e.noteFontWeight}`:``} }
|
|
33
|
+
.arrow${r} { stroke: ${e.nodeBorder}; }
|
|
34
|
+
.commit-bullets { fill: ${e.nodeBorder}; }
|
|
35
|
+
`;else{let o=r%i.length;n+=`
|
|
36
|
+
.branch-label${r} { fill: ${e.nodeBorder}; ${a?`font-weight:${e.noteFontWeight}`:``} }
|
|
37
|
+
.commit${r} { stroke: ${i[o]}; fill: ${i[o]}; }
|
|
38
|
+
.commit-highlight${r} { stroke: ${i[o]}; fill: ${i[o]}; }
|
|
39
|
+
.label${r} { fill: ${Oe.has(t)?e.mainBkg:i[o]}; stroke: ${i[o]}; stroke-width: ${e.strokeWidth}; }
|
|
40
|
+
.arrow${r} { stroke: ${i[o]}; }
|
|
41
|
+
`}return n}else{let t=``;for(let n=0;n<e.THEME_COLOR_LIMIT;n++)t+=`
|
|
42
|
+
.branch-label${n} { fill: ${e.nodeBorder}; ${a?`font-weight:${e.noteFontWeight}`:``} }
|
|
43
|
+
.commit${n} { stroke: ${e.nodeBorder}; }
|
|
44
|
+
.commit-highlight${n} { stroke: ${e.nodeBorder}; fill: ${e.nodeBorder}; }
|
|
45
|
+
.label${n} { fill: ${e.mainBkg}; stroke: ${e.nodeBorder}; stroke-width: ${e.strokeWidth}; ${a?`font-weight:${e.noteFontWeight}`:``}}
|
|
46
|
+
.arrow${n} { stroke: ${e.nodeBorder}; }
|
|
47
|
+
.commit-bullets { fill: ${e.nodeBorder}; }
|
|
48
|
+
.commit-cherry-pick${n} { stroke: ${e.nodeBorder}; }
|
|
49
|
+
`;return t}},`genColor`),Me=n.h(e=>`${Array.from({length:e.THEME_COLOR_LIMIT},(e,t)=>t).map(t=>{let n=t%Q;return`
|
|
50
|
+
.branch-label${t} { fill: ${e[`gitBranchLabel`+n]}; }
|
|
51
|
+
.commit${t} { stroke: ${e[`git`+n]}; fill: ${e[`git`+n]}; }
|
|
52
|
+
.commit-highlight${t} { stroke: ${e[`gitInv`+n]}; fill: ${e[`gitInv`+n]}; }
|
|
53
|
+
.label${t} { fill: ${e[`git`+n]}; }
|
|
54
|
+
.arrow${t} { stroke: ${e[`git`+n]}; }
|
|
55
|
+
`}).join(`
|
|
56
|
+
`)}`,`normalTheme`),Ne={parser:oe,db:E,renderer:Te,styles:n.h(e=>{var t;let{theme:n}=r.y(),i=ke.has(n);return`
|
|
57
|
+
.commit-id,
|
|
58
|
+
.commit-msg,
|
|
59
|
+
.branch-label {
|
|
60
|
+
fill: lightgrey;
|
|
61
|
+
color: lightgrey;
|
|
62
|
+
font-family: 'trebuchet ms', verdana, arial, sans-serif;
|
|
63
|
+
font-family: var(--mermaid-font-family);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
${i?je(e):Me(e)}
|
|
67
|
+
|
|
68
|
+
.branch {
|
|
69
|
+
stroke-width: ${e.strokeWidth};
|
|
70
|
+
stroke: ${(t=e.commitLineColor)==null?e.lineColor:t};
|
|
71
|
+
stroke-dasharray: ${i?`4 2`:`2`};
|
|
72
|
+
}
|
|
73
|
+
.commit-label { font-size: ${e.commitLabelFontSize}; fill: ${i?e.nodeBorder:e.commitLabelColor}; ${i?`font-weight:${e.noteFontWeight};`:``}}
|
|
74
|
+
.commit-label-bkg { font-size: ${e.commitLabelFontSize}; fill: ${i?`transparent`:e.commitLabelBackground}; opacity: ${i?``:.5}; }
|
|
75
|
+
.tag-label { font-size: ${e.tagLabelFontSize}; fill: ${e.tagLabelColor};}
|
|
76
|
+
.tag-label-bkg { fill: ${i?e.mainBkg:e.tagLabelBackground}; stroke: ${i?e.nodeBorder:e.tagLabelBorder}; ${i?`filter:${e.dropShadow}`:``} }
|
|
77
|
+
.tag-hole { fill: ${e.textColor}; }
|
|
78
|
+
|
|
79
|
+
.commit-merge {
|
|
80
|
+
stroke: ${i?e.mainBkg:e.primaryColor};
|
|
81
|
+
fill: ${i?e.mainBkg:e.primaryColor};
|
|
82
|
+
}
|
|
83
|
+
.commit-reverse {
|
|
84
|
+
stroke: ${i?e.mainBkg:e.primaryColor};
|
|
85
|
+
fill: ${i?e.mainBkg:e.primaryColor};
|
|
86
|
+
stroke-width: ${i?e.strokeWidth:3};
|
|
87
|
+
}
|
|
88
|
+
.commit-highlight-outer {
|
|
89
|
+
}
|
|
90
|
+
.commit-highlight-inner {
|
|
91
|
+
stroke: ${i?e.mainBkg:e.primaryColor};
|
|
92
|
+
fill: ${i?e.mainBkg:e.primaryColor};
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.arrow {
|
|
96
|
+
/* Intentional: neo themes keep the bold 8px arrow (like classic themes); only redux-geometry themes use the thinner options.strokeWidth. */
|
|
97
|
+
stroke-width: ${$.has(n)?e.strokeWidth:8};
|
|
98
|
+
stroke-linecap: round;
|
|
99
|
+
fill: none
|
|
100
|
+
}
|
|
101
|
+
.gitTitleText {
|
|
102
|
+
text-anchor: middle;
|
|
103
|
+
font-size: 18px;
|
|
104
|
+
fill: ${e.textColor};
|
|
105
|
+
}
|
|
106
|
+
`},`getStyles`)};exports.diagram=Ne;
|