pmx-canvas 0.11.0 → 0.12.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/.github/extensions/pmx-canvas/extension.mjs +4 -1
- package/.github/extensions/pmx-canvas/runtime.json +1 -1
- package/.github/extensions/pmx-canvas/tools.json +440 -18
- package/CHANGELOG.md +51 -0
- package/dist/amp-plugin/pmx-canvas/LICENSE +21 -0
- package/dist/amp-plugin/pmx-canvas/THIRD_PARTY_LICENSES.txt +331 -0
- package/dist/amp-plugin/pmx-canvas/index.js +5445 -0
- package/dist/amp-plugin/pmx-canvas/runtime.json +3 -0
- package/dist/amp-plugin/pmx-canvas/shared-runtime.mjs +194 -0
- package/dist/amp-plugin/pmx-canvas/skills/pmx-canvas/SKILL.md +267 -0
- package/dist/amp-plugin/pmx-canvas/skills/pmx-canvas/evals/evals.json +1168 -0
- package/dist/amp-plugin/pmx-canvas/skills/pmx-canvas/evals/fixtures/code-exploration/src/auth/jwt.ts +17 -0
- package/dist/amp-plugin/pmx-canvas/skills/pmx-canvas/evals/fixtures/code-exploration/src/auth/login.ts +12 -0
- package/dist/amp-plugin/pmx-canvas/skills/pmx-canvas/evals/fixtures/code-exploration/src/auth/middleware.ts +13 -0
- package/dist/amp-plugin/pmx-canvas/skills/pmx-canvas/evals/fixtures/code-exploration/src/routes/auth.ts +13 -0
- package/dist/amp-plugin/pmx-canvas/skills/pmx-canvas/evals/fixtures/investigation-board/src/handlers/users.ts +27 -0
- package/dist/amp-plugin/pmx-canvas/skills/pmx-canvas/mcp.json +36 -0
- package/dist/amp-plugin/pmx-canvas/skills/pmx-canvas/references/ax-html-control-surface.md +101 -0
- package/dist/amp-plugin/pmx-canvas/skills/pmx-canvas/references/codex-app-adapter.md +151 -0
- package/dist/amp-plugin/pmx-canvas/skills/pmx-canvas/references/excalidraw-diagram-authoring.md +150 -0
- package/dist/amp-plugin/pmx-canvas/skills/pmx-canvas/references/full-reference.md +1839 -0
- package/dist/amp-plugin/pmx-canvas/skills/pmx-canvas/references/github-copilot-app-adapter.md +223 -0
- package/dist/amp-plugin/pmx-canvas/skills/pmx-canvas/references/html-primitives.md +139 -0
- package/dist/amp-plugin/pmx-canvas/skills/pmx-canvas/references/importing-context.md +132 -0
- package/dist/amp-plugin/pmx-canvas/skills/pmx-canvas/references/installing-pmx-canvas.md +301 -0
- package/dist/amp-plugin/pmx-canvas/skills/pmx-canvas/references/tours-and-recording.md +117 -0
- package/dist/amp-plugin/pmx-canvas/skills/pmx-canvas/references/workbench-workflows.md +908 -0
- package/dist/amp-plugin/pmx-canvas/skills/pmx-canvas-orchestration/SKILL.md +141 -0
- package/dist/amp-plugin/pmx-canvas/skills/pmx-canvas-testing/SKILL.md +266 -0
- package/dist/amp-plugin/pmx-canvas/start-mcp.mjs +14857 -0
- package/dist/amp-plugin/pmx-canvas/tools.json +10963 -0
- package/dist/canvas/chunks/{abnfDiagram-N423BO3Z-p8dtp6va.js → abnfDiagram-N423BO3Z-cwtsds5d.js} +1 -1
- package/dist/canvas/chunks/architecture-TIHT7OUA-x63cwejs.js +1 -0
- package/dist/canvas/chunks/{architectureDiagram-T3A2C74G-5jhmxrzf.js → architectureDiagram-T3A2C74G-b4xc9tpz.js} +3 -3
- package/dist/canvas/chunks/{blockDiagram-VBNYF7ZC-pw1fa9yb.js → blockDiagram-VBNYF7ZC-ahp3yxxs.js} +7 -7
- package/dist/canvas/chunks/{c4Diagram-5PPSVZJV-x07nq0tt.js → c4Diagram-5PPSVZJV-nappnay7.js} +4 -4
- package/dist/canvas/chunks/classDiagram-JCYQIIEL-k1j2xc1t.js +1 -0
- package/dist/canvas/chunks/classDiagram-v2-OCEON4UE-33x08xf2.js +1 -0
- package/dist/canvas/chunks/{cose-bilkent-JH36ORCC-nm39npq0.js → cose-bilkent-JH36ORCC-a428syda.js} +1 -1
- package/dist/canvas/chunks/cynefin-VYW2F7L2-8v6jxfz8.js +1 -0
- package/dist/canvas/chunks/{cynefinDiagram-MW4NZA55-vdxrwahz.js → cynefinDiagram-MW4NZA55-nspsqebj.js} +1 -1
- package/dist/canvas/chunks/{dagre-VZM6K2ZE-bqdm7wpd.js → dagre-VZM6K2ZE-8y6177fh.js} +2 -2
- package/dist/canvas/chunks/{diagram-7IWD3JNH-gs5gpr93.js → diagram-7IWD3JNH-vym028wn.js} +4 -4
- package/dist/canvas/chunks/{diagram-B4RE2ZJO-cgwjg47s.js → diagram-B4RE2ZJO-jddqb8sy.js} +1 -1
- package/dist/canvas/chunks/{diagram-LBJQPF4R-w3vahpav.js → diagram-LBJQPF4R-bjwbpkrn.js} +1 -1
- package/dist/canvas/chunks/{diagram-Q27KOJAE-42837z6h.js → diagram-Q27KOJAE-j6ph6hcx.js} +2 -2
- package/dist/canvas/chunks/{diagram-UB23O5K3-4fz83q59.js → diagram-UB23O5K3-p09w8jej.js} +1 -1
- package/dist/canvas/chunks/{ebnfDiagram-BXEA7PRR-zphtgegj.js → ebnfDiagram-BXEA7PRR-j975ycq5.js} +1 -1
- package/dist/canvas/chunks/{erDiagram-JOGREHBK-zvbbdxp4.js → erDiagram-JOGREHBK-sxp6hjn8.js} +5 -5
- package/dist/canvas/chunks/eventmodeling-45OFAUF4-xzfgn6xg.js +1 -0
- package/dist/canvas/chunks/flowDiagram-UKHOOZJN-2nsmkskb.js +1 -0
- package/dist/canvas/chunks/{ganttDiagram-PKOTCBZU-282jzycm.js → ganttDiagram-PKOTCBZU-4tv230y2.js} +2 -2
- package/dist/canvas/chunks/gitGraph-TEB2WS4Q-macbhand.js +1 -0
- package/dist/canvas/chunks/{gitGraphDiagram-DS77QQ5N-vqqy6p1b.js → gitGraphDiagram-DS77QQ5N-mqgmnw9g.js} +1 -1
- package/dist/canvas/chunks/{index-wgv7en21.js → index-037z5dz2.js} +2 -2
- package/dist/canvas/chunks/{index-w2mra17t.js → index-081n3har.js} +1 -1
- package/dist/canvas/chunks/{index-353m7b0p.js → index-5n03dmb9.js} +1 -1
- package/dist/canvas/chunks/{index-yw8h9vha.js → index-60pgzdqe.js} +1 -1
- package/dist/canvas/chunks/index-8g1vb57n.js +2 -0
- package/dist/canvas/chunks/{index-vv56h019.js → index-8rjes9r6.js} +1 -1
- package/dist/canvas/chunks/{index-nprm96xp.js → index-9022d1n9.js} +1 -1
- package/dist/canvas/chunks/{index-194m3hc3.js → index-9b02042t.js} +1 -1
- package/dist/canvas/chunks/{index-0rk4gp1g.js → index-ap4q4vez.js} +1 -1
- package/dist/canvas/chunks/{index-rh7nv68n.js → index-dyp2nhd3.js} +1 -1
- package/dist/canvas/chunks/index-frvta4tm.js +2 -0
- package/dist/canvas/chunks/{index-s4j678gj.js → index-h9ycj8n2.js} +1 -1
- package/dist/canvas/chunks/{index-fjtdggjn.js → index-mergmj97.js} +2 -2
- package/dist/canvas/chunks/index-nwsya6dj.js +301 -0
- package/dist/canvas/chunks/{index-3cy1bzwh.js → index-nz8qbd1p.js} +1 -1
- package/dist/canvas/chunks/{index-d3b3gqe9.js → index-qhfrazv3.js} +1 -1
- package/dist/canvas/chunks/{index-6qmsnxwy.js → index-v119nznk.js} +4 -4
- package/dist/canvas/chunks/{index-r2fyc9w1.js → index-vpt37m3d.js} +6 -6
- package/dist/canvas/chunks/{index-qj8fxwsf.js → index-y9ma6azy.js} +1 -1
- package/dist/canvas/chunks/{index-tb1wf525.js → index-zx0j3a2z.js} +26 -26
- package/dist/canvas/chunks/info-DKCQHKI2-a0ykzs9z.js +1 -0
- package/dist/canvas/chunks/{infoDiagram-6WML65LV-v1yvggqj.js → infoDiagram-6WML65LV-qv97qq6a.js} +2 -2
- package/dist/canvas/chunks/ishikawaDiagram-WSZJBQD7-p9306gh0.js +70 -0
- package/dist/canvas/chunks/{journeyDiagram-NVQOT4AX-zjcffveh.js → journeyDiagram-NVQOT4AX-sv67zats.js} +5 -5
- package/dist/canvas/chunks/{kanban-definition-27J2QSJJ-dakqtfp1.js → kanban-definition-27J2QSJJ-k2pfam6p.js} +1 -1
- package/dist/canvas/chunks/{mermaid.core-j2geswrd.js → mermaid.core-83r0fdce.js} +4 -4
- package/dist/canvas/chunks/{mindmap-definition-FAOFIHXS-142xhr3k.js → mindmap-definition-FAOFIHXS-vg2newm1.js} +1 -1
- package/dist/canvas/chunks/packet-7NZHBO7P-tqnabcdv.js +1 -0
- package/dist/canvas/chunks/{pegDiagram-VL7TDLO6-5wvk7vsd.js → pegDiagram-VL7TDLO6-k2h7zc5n.js} +1 -1
- package/dist/canvas/chunks/pie-RZYD4A2V-wke6gyhe.js +1 -0
- package/dist/canvas/chunks/{pieDiagram-7S7Q4E2Y-ztdhwycc.js → pieDiagram-7S7Q4E2Y-hg169p1v.js} +2 -2
- package/dist/canvas/chunks/{quadrantDiagram-CIZ2JOQS-c5p9gmg6.js → quadrantDiagram-CIZ2JOQS-bxtvsq0b.js} +5 -5
- package/dist/canvas/chunks/radar-I7S5WNFK-w7ka0drw.js +1 -0
- package/dist/canvas/chunks/railroad-3IZDKUUU-y3vg318x.js +1 -0
- package/dist/canvas/chunks/railroad-abnf-AHOZXSZD-6hqvcz3c.js +1 -0
- package/dist/canvas/chunks/railroad-ebnf-EBAXGLYW-vcae260m.js +1 -0
- package/dist/canvas/chunks/railroad-peg-LSFZ7HO6-0dbyme23.js +1 -0
- package/dist/canvas/chunks/{railroadDiagram-AXF67PYL-xkmqkjwf.js → railroadDiagram-AXF67PYL-njyhcp4p.js} +1 -1
- package/dist/canvas/chunks/{requirementDiagram-LRYGKXZP-9wm2dyaw.js → requirementDiagram-LRYGKXZP-2z6v09gm.js} +4 -4
- package/dist/canvas/chunks/{sankeyDiagram-W5VNT64P-2w19etgb.js → sankeyDiagram-W5VNT64P-15mzam0e.js} +1 -1
- package/dist/canvas/chunks/{sequenceDiagram-SI44F4Z6-0jn0vwmz.js → sequenceDiagram-SI44F4Z6-rbshyd2c.js} +12 -12
- package/dist/canvas/chunks/{sizeCapture-X5ZJPWSS-x75epwdq.js → sizeCapture-X5ZJPWSS-sg26xwts.js} +1 -1
- package/dist/canvas/chunks/{stateDiagram-OKZ733FA-schjpy6d.js → stateDiagram-OKZ733FA-6eahp98e.js} +1 -1
- package/dist/canvas/chunks/stateDiagram-v2-UEYNNEHI-tty0ggn5.js +1 -0
- package/dist/canvas/chunks/{swimlanes-SLNWSIFB-gkw4xce3.js → swimlanes-SLNWSIFB-ze5db10t.js} +1 -1
- package/dist/canvas/chunks/swimlanesDiagram-ULZ7WXOC-thze75gq.js +8 -0
- package/dist/canvas/chunks/{timeline-definition-Z64GVDOM-x7nkcy01.js → timeline-definition-Z64GVDOM-vnp7jyy8.js} +3 -3
- package/dist/canvas/chunks/treeView-QDETBFTQ-6ysffnm6.js +1 -0
- package/dist/canvas/chunks/treemap-6X3UGDF4-m3h9p066.js +1 -0
- package/dist/canvas/chunks/vennDiagram-T6HMQDX7-0qrnb7mj.js +34 -0
- package/dist/canvas/chunks/wardley-OPB4EBWU-dp37drwx.js +1 -0
- package/dist/canvas/chunks/{wardleyDiagram-T6FBY63Y-t1j52t9r.js → wardleyDiagram-T6FBY63Y-8nxg8wqt.js} +4 -4
- package/dist/canvas/chunks/{xychartDiagram-ELKLHX3M-38t16pme.js → xychartDiagram-ELKLHX3M-nj921e7s.js} +5 -5
- package/dist/canvas/global.css +94 -1
- package/dist/canvas/index.js +154 -145
- package/dist/canvas/mcp-app.html +600 -498
- package/dist/json-render/index.css +1 -1
- package/dist/types/client/canvas/BoardMoveDialog.d.ts +2 -0
- package/dist/types/client/canvas/EdgeEditor.d.ts +19 -0
- package/dist/types/client/canvas/GroupNavigation.d.ts +2 -0
- package/dist/types/client/canvas/TextPrompt.d.ts +4 -0
- package/dist/types/client/nodes/PromptNode.d.ts +1 -0
- package/dist/types/client/nodes/ViewerFrame.d.ts +1 -1
- package/dist/types/client/nodes/WorkCard.d.ts +7 -0
- package/dist/types/client/nodes/use-ax-surface-bridge.d.ts +1 -0
- package/dist/types/client/state/canvas-store.d.ts +15 -0
- package/dist/types/client/state/human-store.d.ts +2 -0
- package/dist/types/client/state/intent-bridge.d.ts +4 -2
- package/dist/types/client/state/relation-store.d.ts +11 -0
- package/dist/types/client/types.d.ts +1 -1
- package/dist/types/json-render/catalog.d.ts +2 -2
- package/dist/types/server/agent-presence.d.ts +1 -0
- package/dist/types/server/ax-interaction.d.ts +1 -0
- package/dist/types/server/ax-state-manager.d.ts +10 -2
- package/dist/types/server/board-local.d.ts +4 -0
- package/dist/types/server/board-move.d.ts +38 -0
- package/dist/types/server/canvas-db.d.ts +12 -2
- package/dist/types/server/canvas-operations.d.ts +5 -6
- package/dist/types/server/canvas-provenance.d.ts +1 -1
- package/dist/types/server/canvas-serialization.d.ts +1 -0
- package/dist/types/server/canvas-state.d.ts +84 -20
- package/dist/types/server/card-relocation.d.ts +6 -0
- package/dist/types/server/context-reads.d.ts +3 -1
- package/dist/types/server/human-presence.d.ts +1 -1
- package/dist/types/server/index.d.ts +16 -5
- package/dist/types/server/intent-registry.d.ts +8 -4
- package/dist/types/server/knowledge-lifecycle.d.ts +4 -2
- package/dist/types/server/mutation-history.d.ts +7 -5
- package/dist/types/server/operations/registry.d.ts +2 -0
- package/dist/types/server/trace-manager.d.ts +1 -0
- package/dist/types/shared/ax-kinds.d.ts +6 -0
- package/dist/types/shared/ax-surface-protocol.d.ts +8 -0
- package/dist/types/shared/human-presence.d.ts +1 -0
- package/dist/types/shared/lifecycle-status.d.ts +2 -0
- package/docs/RELEASE.md +21 -14
- package/docs/agent-plugin.md +22 -2
- package/docs/amp-plugin.md +270 -0
- package/docs/cli.md +42 -3
- package/docs/design/GuestName.dc.html +50 -0
- package/docs/design/PluginLogo.svg +7 -0
- package/docs/design/WorkCards.dc.html +39 -0
- package/docs/design/canvas.json +16 -0
- package/docs/design/plugin-logo.png +0 -0
- package/docs/design.md +111 -8
- package/docs/evals/agents-md-sections.md +38 -0
- package/docs/http-api.md +128 -10
- package/docs/mcp.md +61 -9
- package/docs/node-types.md +71 -1
- package/docs/plans/plan-009-tech-debt-backlog.md +1 -1
- package/docs/plans/plan-019-post-0.9-roadmap.md +44 -20
- package/docs/plans/plan-020-wave-5-work-planning.md +553 -0
- package/docs/product-vision-2026-09.md +33 -17
- package/docs/sdk.md +18 -0
- package/package.json +6 -3
- package/plugins/pmx-canvas/assets/preview.png +0 -0
- package/plugins/pmx-canvas/com.github.copilot/extensions/pmx-canvas/extension.mjs +4 -1
- package/plugins/pmx-canvas/com.github.copilot/extensions/pmx-canvas/runtime.json +1 -1
- package/plugins/pmx-canvas/plugin.json +2 -2
- package/plugins/pmx-canvas/runtime.json +1 -1
- package/plugins/pmx-canvas/tools.json +440 -18
- package/skills/data-analysis/SKILL.md +13 -26
- package/skills/frontend-design/LICENSE.txt +177 -0
- package/skills/frontend-design/SKILL.md +3 -0
- package/skills/pmx-canvas/SKILL.md +248 -842
- package/skills/pmx-canvas/evals/evals.json +110 -5
- package/skills/pmx-canvas/references/full-reference.md +142 -28
- package/skills/pmx-canvas/references/html-primitives.md +7 -0
- package/skills/pmx-canvas/references/installing-pmx-canvas.md +61 -11
- package/skills/pmx-canvas/references/tours-and-recording.md +39 -6
- package/skills/pmx-canvas/references/workbench-workflows.md +908 -0
- package/skills/pmx-canvas-testing/SKILL.md +7 -5
- package/skills/published-consumer-e2e/SKILL.md +25 -8
- package/skills/published-consumer-e2e/scripts/run-published-consumer-e2e.sh +51 -75
- package/skills/web-artifacts-builder/LICENSE.txt +202 -0
- package/skills/web-artifacts-builder/SKILL.md +6 -0
- package/skills/web-artifacts-builder/scripts/bundle-artifact.sh +2 -2
- package/skills/web-artifacts-builder/scripts/init-artifact.sh +8 -8
- package/src/cli/commands/apps.ts +1 -0
- package/src/cli/commands/boards.ts +30 -0
- package/src/client/App.tsx +20 -4
- package/src/client/canvas/AttentionHistory.tsx +10 -2
- package/src/client/canvas/BoardMoveDialog.tsx +225 -0
- package/src/client/canvas/CanvasNode.tsx +45 -2
- package/src/client/canvas/CanvasViewport.tsx +38 -9
- package/src/client/canvas/ContextMenu.tsx +34 -12
- package/src/client/canvas/EdgeEditor.tsx +149 -0
- package/src/client/canvas/EdgeLayer.tsx +87 -16
- package/src/client/canvas/ExpandedNodeOverlay.tsx +4 -0
- package/src/client/canvas/GroupNavigation.tsx +85 -0
- package/src/client/canvas/RelationsPanel.tsx +9 -0
- package/src/client/canvas/SelectionBar.tsx +21 -0
- package/src/client/canvas/SessionPanel.tsx +35 -1
- package/src/client/canvas/TextPrompt.tsx +18 -1
- package/src/client/canvas/TopBar.tsx +30 -0
- package/src/client/canvas/canvas-area.ts +1 -1
- package/src/client/nodes/ExtAppFrame.tsx +26 -10
- package/src/client/nodes/MarkdownNode.tsx +6 -7
- package/src/client/nodes/PromptNode.tsx +32 -3
- package/src/client/nodes/StatusNode.tsx +12 -0
- package/src/client/nodes/StatusSummary.tsx +11 -0
- package/src/client/nodes/ViewerFrame.tsx +21 -10
- package/src/client/nodes/WorkCard.tsx +175 -0
- package/src/client/nodes/use-ax-surface-bridge.ts +18 -14
- package/src/client/state/attention-bridge.ts +5 -0
- package/src/client/state/attention-store.ts +1 -0
- package/src/client/state/canvas-store.ts +185 -15
- package/src/client/state/human-store.ts +22 -2
- package/src/client/state/intent-bridge.ts +19 -5
- package/src/client/state/relation-store.ts +127 -1
- package/src/client/theme/global.css +94 -1
- package/src/client/types.ts +1 -0
- package/src/mcp/server.ts +13 -3
- package/src/server/agent-presence.ts +43 -23
- package/src/server/ax-flow-loop.ts +6 -0
- package/src/server/ax-gate-ttl.ts +8 -1
- package/src/server/ax-interaction.ts +16 -10
- package/src/server/ax-state-manager.ts +17 -4
- package/src/server/ax-wait.ts +20 -6
- package/src/server/board-export.ts +19 -6
- package/src/server/board-local.ts +20 -0
- package/src/server/board-move.ts +297 -0
- package/src/server/canvas-db.ts +262 -160
- package/src/server/canvas-operations.ts +139 -109
- package/src/server/canvas-schema.ts +21 -0
- package/src/server/canvas-serialization.ts +2 -0
- package/src/server/canvas-state.ts +792 -159
- package/src/server/card-relocation.ts +53 -0
- package/src/server/code-graph.ts +4 -3
- package/src/server/context-reads.ts +83 -55
- package/src/server/demo-state.json +35 -15
- package/src/server/file-watcher.ts +30 -10
- package/src/server/human-presence.ts +18 -5
- package/src/server/index.ts +35 -15
- package/src/server/intent-registry.ts +43 -5
- package/src/server/knowledge-lifecycle.ts +32 -9
- package/src/server/lifecycle-status.ts +29 -1
- package/src/server/mcp-app-runtime.ts +26 -7
- package/src/server/mutation-history.ts +37 -8
- package/src/server/operations/composites.ts +6 -3
- package/src/server/operations/mcp-contracts.ts +15 -0
- package/src/server/operations/mcp.ts +36 -9
- package/src/server/operations/ops/annotation.ts +22 -1
- package/src/server/operations/ops/ax-await.ts +1 -0
- package/src/server/operations/ops/ax-timeline.ts +28 -2
- package/src/server/operations/ops/batch.ts +25 -11
- package/src/server/operations/ops/boards.ts +44 -3
- package/src/server/operations/ops/nodes.ts +70 -0
- package/src/server/operations/ops/query.ts +32 -3
- package/src/server/operations/ops/snapshots.ts +1 -0
- package/src/server/operations/registry.ts +49 -4
- package/src/server/server.ts +62 -16
- package/src/server/tour-control.ts +37 -12
- package/src/server/trace-manager.ts +4 -0
- package/src/server/web-artifacts/scripts/bundle-artifact.sh +2 -2
- package/src/server/web-artifacts/scripts/init-artifact.sh +8 -8
- package/src/shared/agent-context.ts +7 -1
- package/src/shared/auto-arrange.ts +5 -4
- package/src/shared/ax-kinds.ts +13 -0
- package/src/shared/ax-surface-protocol.ts +22 -0
- package/src/shared/human-presence.ts +1 -0
- package/src/shared/lifecycle-status.ts +2 -0
- package/dist/canvas/chunks/architecture-TIHT7OUA-9tffvpsv.js +0 -1
- package/dist/canvas/chunks/classDiagram-JCYQIIEL-nc6g5x1r.js +0 -1
- package/dist/canvas/chunks/classDiagram-v2-OCEON4UE-0qnbpwvh.js +0 -1
- package/dist/canvas/chunks/cynefin-VYW2F7L2-ys8p46ts.js +0 -1
- package/dist/canvas/chunks/eventmodeling-45OFAUF4-v9q6dn4c.js +0 -1
- package/dist/canvas/chunks/flowDiagram-UKHOOZJN-yrr5z8tc.js +0 -1
- package/dist/canvas/chunks/gitGraph-TEB2WS4Q-kdwb8m0a.js +0 -1
- package/dist/canvas/chunks/index-1r72hdzb.js +0 -301
- package/dist/canvas/chunks/index-g3pwnqeb.js +0 -2
- package/dist/canvas/chunks/index-rft2hcz5.js +0 -2
- package/dist/canvas/chunks/info-DKCQHKI2-wpzs6sz3.js +0 -1
- package/dist/canvas/chunks/ishikawaDiagram-WSZJBQD7-5hnq1a9p.js +0 -70
- package/dist/canvas/chunks/packet-7NZHBO7P-xn439f0s.js +0 -1
- package/dist/canvas/chunks/pie-RZYD4A2V-0kf16rwh.js +0 -1
- package/dist/canvas/chunks/radar-I7S5WNFK-0g2pz36t.js +0 -1
- package/dist/canvas/chunks/railroad-3IZDKUUU-fcaran6j.js +0 -1
- package/dist/canvas/chunks/railroad-abnf-AHOZXSZD-wgdya41q.js +0 -1
- package/dist/canvas/chunks/railroad-ebnf-EBAXGLYW-gy07a4ka.js +0 -1
- package/dist/canvas/chunks/railroad-peg-LSFZ7HO6-ewk6wtkh.js +0 -1
- package/dist/canvas/chunks/stateDiagram-v2-UEYNNEHI-k8sfp2e7.js +0 -1
- package/dist/canvas/chunks/swimlanesDiagram-ULZ7WXOC-nqysw67j.js +0 -8
- package/dist/canvas/chunks/treeView-QDETBFTQ-cesw6gp0.js +0 -1
- package/dist/canvas/chunks/treemap-6X3UGDF4-zdv4knp9.js +0 -1
- package/dist/canvas/chunks/vennDiagram-T6HMQDX7-x8dqn9yf.js +0 -34
- package/dist/canvas/chunks/wardley-OPB4EBWU-44pdddez.js +0 -1
package/dist/canvas/chunks/{ganttDiagram-PKOTCBZU-282jzycm.js → ganttDiagram-PKOTCBZU-4tv230y2.js}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import{e,Ln,t,l,k,d,f,p,m,g,b,v,r,n,Mt,vr,Nt,bi,ce,Fi,ft,pt,h}from"./index-1r72hdzb.js";import{K,se}from"./index-6qmsnxwy.js";import"./index-5tv8v1hk.js";import{tr,Mr,cn,Nr,Oe}from"./index-194m3hc3.js";import{Ue}from"./index-hj99nz1f.js";var Dn=se(function(ur,lr){(function(i,a){typeof ur=="object"&&typeof lr<"u"?lr.exports=a():typeof define=="function"&&define.amd?define(a):(i=typeof globalThis<"u"?globalThis:i||self).dayjs_plugin_isoWeek=a()})(ur,function(){var i="day";return function(a,s,o){var c=function(U){return U.add(4-U.isoWeekday(),i)},u=s.prototype;u.isoWeekYear=function(){return c(this).year()},u.isoWeek=function(U){if(!this.$utils().u(U))return this.add(7*(U-this.isoWeek()),i);var W,R,O,it,B=c(this),H=(W=this.isoWeekYear(),R=this.$u,O=(R?o.utc:o)().year(W).startOf("year"),it=4-O.isoWeekday(),O.isoWeekday()>4&&(it+=7),O.add(it,i));return B.diff(H,"week")+1},u.isoWeekday=function(U){return this.$utils().u(U)?this.day()||7:this.day(this.day()%7?U:U-7)};var T=u.startOf;u.startOf=function(U,W){var R=this.$utils(),O=!!R.u(W)||W;return R.p(U)==="isoweek"?O?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):T.bind(this)(U,W)}}})});var Cn=se(function(fr,dr){(function(i,a){typeof fr=="object"&&typeof dr<"u"?dr.exports=a():typeof define=="function"&&define.amd?define(a):(i=typeof globalThis<"u"?globalThis:i||self).dayjs_plugin_customParseFormat=a()})(fr,function(){var i={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"},a=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,s=/\d/,o=/\d\d/,c=/\d\d?/,u=/\d*[^-_:/,()\s\d]+/,T={},U=function(z){return(z=+z)+(z>68?1900:2000)},W=function(z){return function(Z){this[z]=+Z}},R=[/[+-]\d\d:?(\d\d)?|Z/,function(z){(this.zone||(this.zone={})).offset=function(Z){if(!Z)return 0;if(Z==="Z")return 0;var N=Z.match(/([+-]|\d\d)/g),tt=60*N[1]+(+N[2]||0);return tt===0?0:N[0]==="+"?-tt:tt}(z)}],O=function(z){var Z=T[z];return Z&&(Z.indexOf?Z:Z.s.concat(Z.f))},it=function(z,Z){var N,tt=T.meridiem;if(tt){for(var mt=1;mt<=24;mt+=1)if(z.indexOf(tt(mt,0,Z))>-1){N=mt>12;break}}else N=z===(Z?"pm":"PM");return N},B={A:[u,function(z){this.afternoon=it(z,!1)}],a:[u,function(z){this.afternoon=it(z,!0)}],Q:[s,function(z){this.month=3*(z-1)+1}],S:[s,function(z){this.milliseconds=100*+z}],SS:[o,function(z){this.milliseconds=10*+z}],SSS:[/\d{3}/,function(z){this.milliseconds=+z}],s:[c,W("seconds")],ss:[c,W("seconds")],m:[c,W("minutes")],mm:[c,W("minutes")],H:[c,W("hours")],h:[c,W("hours")],HH:[c,W("hours")],hh:[c,W("hours")],D:[c,W("day")],DD:[o,W("day")],Do:[u,function(z){var Z=T.ordinal,N=z.match(/\d+/);if(this.day=N[0],Z)for(var tt=1;tt<=31;tt+=1)Z(tt).replace(/\[|\]/g,"")===z&&(this.day=tt)}],w:[c,W("week")],ww:[o,W("week")],M:[c,W("month")],MM:[o,W("month")],MMM:[u,function(z){var Z=O("months"),N=(O("monthsShort")||Z.map(function(tt){return tt.slice(0,3)})).indexOf(z)+1;if(N<1)throw Error();this.month=N%12||N}],MMMM:[u,function(z){var Z=O("months").indexOf(z)+1;if(Z<1)throw Error();this.month=Z%12||Z}],Y:[/[+-]?\d+/,W("year")],YY:[o,function(z){this.year=U(z)}],YYYY:[/\d{4}/,W("year")],Z:R,ZZ:R};function H(z){var Z,N;Z=z,N=T&&T.formats;for(var tt=(z=Z.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(rt,nt,F){var A=F&&F.toUpperCase();return nt||N[F]||i[F]||N[A].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(E,V,w){return V||w.slice(1)})})).match(a),mt=tt.length,st=0;st<mt;st+=1){var j=tt[st],L=B[j],x=L&&L[0],P=L&&L[1];tt[st]=P?{regex:x,parser:P}:j.replace(/^\[|\]$/g,"")}return function(rt){for(var nt={},F=0,A=0;F<mt;F+=1){var E=tt[F];if(typeof E=="string")A+=E.length;else{var{regex:V,parser:w}=E,I=rt.slice(A),Y=V.exec(I)[0];w.call(nt,Y),rt=rt.replace(Y,"")}}return function(_){var G=_.afternoon;if(G!==void 0){var y=_.hours;G?y<12&&(_.hours+=12):y===12&&(_.hours=0),delete _.afternoon}}(nt),nt}}return function(z,Z,N){N.p.customParseFormat=!0,z&&z.parseTwoDigitYear&&(U=z.parseTwoDigitYear);var tt=Z.prototype,mt=tt.parse;tt.parse=function(st){var{date:j,utc:L,args:x}=st;this.$u=L;var P=x[1];if(typeof P=="string"){var rt=x[2]===!0,nt=x[3]===!0,F=rt||nt,A=x[2];nt&&(A=x[2]),T=this.$locale(),!rt&&A&&(T=N.Ls[A]),this.$d=function(I,Y,_,G){try{if(["x","X"].indexOf(Y)>-1)return new Date((Y==="X"?1000:1)*I);var y=H(Y)(I),{year:Q,month:D,day:yt,hours:M,minutes:q,seconds:J,milliseconds:lt,zone:dt,week:at}=y,S=new Date,X=yt||(Q||D?1:S.getDate()),et=Q||S.getFullYear(),C=0;Q&&!D||(C=D>0?D-1:S.getMonth());var gt,ot=M||0,ct=q||0,kt=J||0,Tt=lt||0;return dt?new Date(Date.UTC(et,C,X,ot,ct,kt,Tt+60*dt.offset*1000)):_?new Date(Date.UTC(et,C,X,ot,ct,kt,Tt)):(gt=new Date(et,C,X,ot,ct,kt,Tt),at&&(gt=G(gt).week(at).toDate()),gt)}catch(bt){return new Date("")}}(j,P,L,N),this.init(),A&&A!==!0&&(this.$L=this.locale(A).$L),F&&j!=this.format(P)&&(this.$d=new Date("")),T={}}else if(P instanceof Array)for(var E=P.length,V=1;V<=E;V+=1){x[1]=P[V-1];var w=N.apply(this,x);if(w.isValid()){this.$d=w.$d,this.$L=w.$L,this.init();break}V===E&&(this.$d=new Date(""))}else mt.call(this,st)}}})});var Sn=se(function(mr,hr){(function(i,a){typeof mr=="object"&&typeof hr<"u"?hr.exports=a():typeof define=="function"&&define.amd?define(a):(i=typeof globalThis<"u"?globalThis:i||self).dayjs_plugin_advancedFormat=a()})(mr,function(){return function(i,a){var s=a.prototype,o=s.format;s.format=function(c){var u=this,T=this.$locale();if(!this.isValid())return o.bind(this)(c);var U=this.$utils(),W=(c||"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(R){switch(R){case"Q":return Math.ceil((u.$M+1)/3);case"Do":return T.ordinal(u.$D);case"gggg":return u.weekYear();case"GGGG":return u.isoWeekYear();case"wo":return T.ordinal(u.week(),"W");case"w":case"ww":return U.s(u.week(),R==="w"?1:2,"0");case"W":case"WW":return U.s(u.isoWeek(),R==="W"?1:2,"0");case"k":case"kk":return U.s(String(u.$H===0?24:u.$H),R==="k"?1:2,"0");case"X":return Math.floor(u.$d.getTime()/1000);case"x":return u.$d.getTime();case"z":return"["+u.offsetName()+"]";case"zzz":return"["+u.offsetName("long")+"]";default:return R}});return o.bind(this)(W)}}})});var _n=se(function(yr,gr){(function(i,a){typeof yr=="object"&&typeof gr<"u"?gr.exports=a():typeof define=="function"&&define.amd?define(a):(i=typeof globalThis<"u"?globalThis:i||self).dayjs_plugin_duration=a()})(yr,function(){var i,a,s=1000,o=60000,c=3600000,u=86400000,T=31536000000,U=2628000000,W=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,R=/\[([^\]]+)]|YYYY|YY|Y|M{1,2}|D{1,2}|H{1,2}|m{1,2}|s{1,2}|SSS/g,O={years:T,months:U,days:u,hours:c,minutes:o,seconds:s,milliseconds:1,weeks:604800000},it=function(j){return j instanceof mt},B=function(j,L,x){return new mt(j,x,L.$l)},H=function(j){return a.p(j)+"s"},z=function(j){return j<0},Z=function(j){return z(j)?Math.ceil(j):Math.floor(j)},N=function(j){return Math.abs(j)},tt=function(j,L){return j?z(j)?{negative:!0,format:""+N(j)+L}:{negative:!1,format:""+j+L}:{negative:!1,format:""}},mt=function(){function j(x,P,rt){var nt=this;if(this.$d={},this.$l=rt,x===void 0&&(this.$ms=0,this.parseFromMilliseconds()),P)return B(x*O[H(P)],this);if(typeof x=="number")return this.$ms=x,this.parseFromMilliseconds(),this;if(typeof x=="object")return Object.keys(x).forEach(function(E){nt.$d[H(E)]=x[E]}),this.calMilliseconds(),this;if(typeof x=="string"){var F=x.match(W);if(F){var A=F.slice(2).map(function(E){return E!=null?Number(E):0});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 L=j.prototype;return L.calMilliseconds=function(){var x=this;this.$ms=Object.keys(this.$d).reduce(function(P,rt){return P+(x.$d[rt]||0)*O[rt]},0)},L.parseFromMilliseconds=function(){var x=this.$ms;this.$d.years=Z(x/T),x%=T,this.$d.months=Z(x/U),x%=U,this.$d.days=Z(x/u),x%=u,this.$d.hours=Z(x/c),x%=c,this.$d.minutes=Z(x/o),x%=o,this.$d.seconds=Z(x/s),x%=s,this.$d.milliseconds=x},L.toISOString=function(){var x=tt(this.$d.years,"Y"),P=tt(this.$d.months,"M"),rt=+this.$d.days||0;this.$d.weeks&&(rt+=7*this.$d.weeks);var nt=tt(rt,"D"),F=tt(this.$d.hours,"H"),A=tt(this.$d.minutes,"M"),E=this.$d.seconds||0;this.$d.milliseconds&&(E+=this.$d.milliseconds/1000,E=Math.round(1000*E)/1000);var V=tt(E,"S"),w=x.negative||P.negative||nt.negative||F.negative||A.negative||V.negative,I=F.format||A.format||V.format?"T":"",Y=(w?"-":"")+"P"+x.format+P.format+nt.format+I+F.format+A.format+V.format;return Y==="P"||Y==="-P"?"P0D":Y},L.toJSON=function(){return this.toISOString()},L.format=function(x){var P=x||"YYYY-MM-DDTHH:mm:ss",rt={Y:this.$d.years,YY:a.s(this.$d.years,2,"0"),YYYY:a.s(this.$d.years,4,"0"),M:this.$d.months,MM:a.s(this.$d.months,2,"0"),D:this.$d.days,DD:a.s(this.$d.days,2,"0"),H:this.$d.hours,HH:a.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:a.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:a.s(this.$d.seconds,2,"0"),SSS:a.s(this.$d.milliseconds,3,"0")};return P.replace(R,function(nt,F){return F||String(rt[nt])})},L.as=function(x){return this.$ms/O[H(x)]},L.get=function(x){var P=this.$ms,rt=H(x);return rt==="milliseconds"?P%=1000:P=rt==="weeks"?Z(P/O[rt]):this.$d[rt],P||0},L.add=function(x,P,rt){var nt;return nt=P?x*O[H(P)]:it(x)?x.$ms:B(x,this).$ms,B(this.$ms+nt*(rt?-1:1),this)},L.subtract=function(x,P){return this.add(x,P,!0)},L.locale=function(x){var P=this.clone();return P.$l=x,P},L.clone=function(){return B(this.$ms,this)},L.humanize=function(x){return i().add(this.$ms,"ms").locale(this.$l).fromNow(!x)},L.valueOf=function(){return this.asMilliseconds()},L.milliseconds=function(){return this.get("milliseconds")},L.asMilliseconds=function(){return this.as("milliseconds")},L.seconds=function(){return this.get("seconds")},L.asSeconds=function(){return this.as("seconds")},L.minutes=function(){return this.get("minutes")},L.asMinutes=function(){return this.as("minutes")},L.hours=function(){return this.get("hours")},L.asHours=function(){return this.as("hours")},L.days=function(){return this.get("days")},L.asDays=function(){return this.as("days")},L.weeks=function(){return this.get("weeks")},L.asWeeks=function(){return this.as("weeks")},L.months=function(){return this.get("months")},L.asMonths=function(){return this.as("months")},L.years=function(){return this.get("years")},L.asYears=function(){return this.as("years")},j}(),st=function(j,L,x){return j.add(L.years()*x,"y").add(L.months()*x,"M").add(L.days()*x,"d").add(L.hours()*x,"h").add(L.minutes()*x,"m").add(L.seconds()*x,"s").add(L.milliseconds()*x,"ms")};return function(j,L,x){i=x,a=x().$utils(),x.duration=function(nt,F){var A=x.locale();return B(nt,{$l:A},F)},x.isDuration=it;var P=L.prototype.add,rt=L.prototype.subtract;L.prototype.add=function(nt,F){return it(nt)?st(this,nt,1):P.bind(this)(nt,F)},L.prototype.subtract=function(nt,F){return it(nt)?st(this,nt,-1):rt.bind(this)(nt,F)}}})});function Ne(i,a){let s;if(a===void 0){for(let o of i)if(o!=null&&(s<o||s===void 0&&o>=o))s=o}else{let o=-1;for(let c of i)if((c=a(c,++o,i))!=null&&(s<c||s===void 0&&c>=c))s=c}return s}function Pe(i,a){let s;if(a===void 0){for(let o of i)if(o!=null&&(s>o||s===void 0&&o>=o))s=o}else{let o=-1;for(let c of i)if((c=a(c,++o,i))!=null&&(s>c||s===void 0&&c>=c))s=c}return s}function Ve(i){return i}var ve=1,ze=2,Re=3,Te=4,Er=0.000001;function jn(i){return"translate("+i+",0)"}function Xn(i){return"translate(0,"+i+")"}function qn(i){return(a)=>+i(a)}function Gn(i,a){if(a=Math.max(0,i.bandwidth()-a*2)/2,i.round())a=Math.round(a);return(s)=>+i(s)+a}function Qn(){return!this.__axis}function Ar(i,a){var s=[],o=null,c=null,u=6,T=6,U=3,W=typeof window<"u"&&window.devicePixelRatio>1?0:0.5,R=i===ve||i===Te?-1:1,O=i===Te||i===ze?"x":"y",it=i===ve||i===Re?jn:Xn;function B(H){var z=o==null?a.ticks?a.ticks.apply(a,s):a.domain():o,Z=c==null?a.tickFormat?a.tickFormat.apply(a,s):Ve:c,N=Math.max(u,0)+U,tt=a.range(),mt=+tt[0]+W,st=+tt[tt.length-1]+W,j=(a.bandwidth?Gn:qn)(a.copy(),W),L=H.selection?H.selection():H,x=L.selectAll(".domain").data([null]),P=L.selectAll(".tick").data(z,a).order(),rt=P.exit(),nt=P.enter().append("g").attr("class","tick"),F=P.select("line"),A=P.select("text");if(x=x.merge(x.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),P=P.merge(nt),F=F.merge(nt.append("line").attr("stroke","currentColor").attr(O+"2",R*u)),A=A.merge(nt.append("text").attr("fill","currentColor").attr(O,R*N).attr("dy",i===ve?"0em":i===Re?"0.71em":"0.32em")),H!==L)x=x.transition(H),P=P.transition(H),F=F.transition(H),A=A.transition(H),rt=rt.transition(H).attr("opacity",Er).attr("transform",function(E){return isFinite(E=j(E))?it(E+W):this.getAttribute("transform")}),nt.attr("opacity",Er).attr("transform",function(E){var V=this.parentNode.__axis;return it((V&&isFinite(V=V(E))?V:j(E))+W)});rt.remove(),x.attr("d",i===Te||i===ze?T?"M"+R*T+","+mt+"H"+W+"V"+st+"H"+R*T:"M"+W+","+mt+"V"+st:T?"M"+mt+","+R*T+"V"+W+"H"+st+"V"+R*T:"M"+mt+","+W+"H"+st),P.attr("opacity",1).attr("transform",function(E){return it(j(E)+W)}),F.attr(O+"2",R*u),A.attr(O,R*N).text(Z),L.filter(Qn).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",i===ze?"start":i===Te?"end":"middle"),L.each(function(){this.__axis=j})}return B.scale=function(H){return arguments.length?(a=H,B):a},B.ticks=function(){return s=Array.from(arguments),B},B.tickArguments=function(H){return arguments.length?(s=H==null?[]:Array.from(H),B):s.slice()},B.tickValues=function(H){return arguments.length?(o=H==null?null:Array.from(H),B):o&&o.slice()},B.tickFormat=function(H){return arguments.length?(c=H,B):c},B.tickSize=function(H){return arguments.length?(u=T=+H,B):u},B.tickSizeInner=function(H){return arguments.length?(u=+H,B):u},B.tickSizeOuter=function(H){return arguments.length?(T=+H,B):T},B.tickPadding=function(H){return arguments.length?(U=+H,B):U},B.offset=function(H){return arguments.length?(W=+H,B):W},B}function Be(i){return Ar(ve,i)}function Ze(i){return Ar(Re,i)}var Or=Math.PI/180,$r=180/Math.PI;var xe=18,Hr=0.96422,Pr=1,Vr=0.82521,zr=0.13793103448275862,te=0.20689655172413793,Rr=3*te*te,Jn=te*te*te;function Br(i){if(i instanceof Lt)return new Lt(i.l,i.a,i.b,i.opacity);if(i instanceof Ht)return jr(i);if(!(i instanceof ce))i=bi(i);var a=Ge(i.r),s=Ge(i.g),o=Ge(i.b),c=je((0.2225045*a+0.7168786*s+0.0606169*o)/Pr),u,T;if(a===s&&s===o)u=T=c;else u=je((0.4360747*a+0.3850649*s+0.1430804*o)/Hr),T=je((0.0139322*a+0.0971045*s+0.7141733*o)/Vr);return new Lt(116*c-16,500*(u-c),200*(c-T),i.opacity)}function Zr(i,a,s,o){return arguments.length===1?Br(i):new Lt(i,a,s,o==null?1:o)}function Lt(i,a,s,o){this.l=+i,this.a=+a,this.b=+s,this.opacity=+o}Mt(Lt,Zr,vr(Nt,{brighter(i){return new Lt(this.l+xe*(i==null?1:i),this.a,this.b,this.opacity)},darker(i){return new Lt(this.l-xe*(i==null?1:i),this.a,this.b,this.opacity)},rgb(){var i=(this.l+16)/116,a=isNaN(this.a)?i:i+this.a/500,s=isNaN(this.b)?i:i-this.b/200;return a=Hr*Xe(a),i=Pr*Xe(i),s=Vr*Xe(s),new ce(qe(3.1338561*a-1.6168667*i-0.4906146*s),qe(-0.9787684*a+1.9161415*i+0.033454*s),qe(0.0719453*a-0.2289914*i+1.4052427*s),this.opacity)}}));function je(i){return i>Jn?Math.pow(i,0.3333333333333333):i/Rr+zr}function Xe(i){return i>te?i*i*i:Rr*(i-zr)}function qe(i){return 255*(i<=0.0031308?12.92*i:1.055*Math.pow(i,0.4166666666666667)-0.055)}function Ge(i){return(i/=255)<=0.04045?i/12.92:Math.pow((i+0.055)/1.055,2.4)}function Kn(i){if(i instanceof Ht)return new Ht(i.h,i.c,i.l,i.opacity);if(!(i instanceof Lt))i=Br(i);if(i.a===0&&i.b===0)return new Ht(NaN,0<i.l&&i.l<100?0:NaN,i.l,i.opacity);var a=Math.atan2(i.b,i.a)*$r;return new Ht(a<0?a+360:a,Math.sqrt(i.a*i.a+i.b*i.b),i.l,i.opacity)}function be(i,a,s,o){return arguments.length===1?Kn(i):new Ht(i,a,s,o==null?1:o)}function Ht(i,a,s,o){this.h=+i,this.c=+a,this.l=+s,this.opacity=+o}function jr(i){if(isNaN(i.h))return new Lt(i.l,0,0,i.opacity);var a=i.h*Or;return new Lt(i.l,Math.cos(a)*i.c,Math.sin(a)*i.c,i.opacity)}Mt(Ht,be,vr(Nt,{brighter(i){return new Ht(this.h,this.c,this.l+xe*(i==null?1:i),this.opacity)},darker(i){return new Ht(this.h,this.c,this.l-xe*(i==null?1:i),this.opacity)},rgb(){return jr(this).rgb()}}));function Xr(i){return function(a,s){var o=i((a=be(a)).h,(s=be(s)).h),c=ft(a.c,s.c),u=ft(a.l,s.l),T=ft(a.opacity,s.opacity);return function(U){return a.h=o(U),a.c=c(U),a.l=u(U),a.opacity=T(U),a+""}}}var qr=Xr(Fi),Es=Xr(ft);function Qe(i,a){i=i.slice();var s=0,o=i.length-1,c=i[s],u=i[o],T;if(u<c)T=s,s=o,o=T,T=c,c=u,u=T;return i[s]=a.floor(c),i[o]=a.ceil(u),i}var Je=new Date,Ke=new Date;function ht(i,a,s,o){function c(u){return i(u=arguments.length===0?new Date:new Date(+u)),u}if(c.floor=(u)=>(i(u=new Date(+u)),u),c.ceil=(u)=>(i(u=new Date(u-1)),a(u,1),i(u),u),c.round=(u)=>{let T=c(u),U=c.ceil(u);return u-T<U-u?T:U},c.offset=(u,T)=>(a(u=new Date(+u),T==null?1:Math.floor(T)),u),c.range=(u,T,U)=>{let W=[];if(u=c.ceil(u),U=U==null?1:Math.floor(U),!(u<T)||!(U>0))return W;let R;do W.push(R=new Date(+u)),a(u,U),i(u);while(R<u&&u<T);return W},c.filter=(u)=>ht((T)=>{if(T>=T)while(i(T),!u(T))T.setTime(T-1)},(T,U)=>{if(T>=T)if(U<0)while(++U<=0)while(a(T,-1),!u(T));else while(--U>=0)while(a(T,1),!u(T));}),s)c.count=(u,T)=>(Je.setTime(+u),Ke.setTime(+T),i(Je),i(Ke),Math.floor(s(Je,Ke))),c.every=(u)=>(u=Math.floor(u),!isFinite(u)||!(u>0)?null:!(u>1)?c:c.filter(o?(T)=>o(T)%u===0:(T)=>c.count(0,T)%u===0));return c}var Wt=ht(()=>{},(i,a)=>{i.setTime(+i+a)},(i,a)=>a-i);Wt.every=(i)=>{if(i=Math.floor(i),!isFinite(i)||!(i>0))return null;if(!(i>1))return Wt;return ht((a)=>{a.setTime(Math.floor(a/i)*i)},(a,s)=>{a.setTime(+a+s*i)},(a,s)=>(s-a)/i)};var Gr=Wt.range;var Yt=1000,wt=60000,Et=3600000,Bt=86400000,fe=604800000,er=2592000000,we=31536000000;var Dt=ht((i)=>{i.setTime(i-i.getMilliseconds())},(i,a)=>{i.setTime(+i+a*Yt)},(i,a)=>(a-i)/Yt,(i)=>i.getUTCSeconds()),Qr=Dt.range;var Pt=ht((i)=>{i.setTime(i-i.getMilliseconds()-i.getSeconds()*Yt)},(i,a)=>{i.setTime(+i+a*wt)},(i,a)=>(a-i)/wt,(i)=>i.getMinutes()),ti=Pt.range,Me=ht((i)=>{i.setUTCSeconds(0,0)},(i,a)=>{i.setTime(+i+a*wt)},(i,a)=>(a-i)/wt,(i)=>i.getUTCMinutes()),ei=Me.range;var Vt=ht((i)=>{i.setTime(i-i.getMilliseconds()-i.getSeconds()*Yt-i.getMinutes()*wt)},(i,a)=>{i.setTime(+i+a*Et)},(i,a)=>(a-i)/Et,(i)=>i.getHours()),ri=Vt.range,De=ht((i)=>{i.setUTCMinutes(0,0,0)},(i,a)=>{i.setTime(+i+a*Et)},(i,a)=>(a-i)/Et,(i)=>i.getUTCHours()),ni=De.range;var Ft=ht((i)=>i.setHours(0,0,0,0),(i,a)=>i.setDate(i.getDate()+a),(i,a)=>(a-i-(a.getTimezoneOffset()-i.getTimezoneOffset())*wt)/Bt,(i)=>i.getDate()-1),ii=Ft.range,de=ht((i)=>{i.setUTCHours(0,0,0,0)},(i,a)=>{i.setUTCDate(i.getUTCDate()+a)},(i,a)=>(a-i)/Bt,(i)=>i.getUTCDate()-1),ai=de.range,Ce=ht((i)=>{i.setUTCHours(0,0,0,0)},(i,a)=>{i.setUTCDate(i.getUTCDate()+a)},(i,a)=>(a-i)/Bt,(i)=>Math.floor(i/Bt)),si=Ce.range;function Xt(i){return ht((a)=>{a.setDate(a.getDate()-(a.getDay()+7-i)%7),a.setHours(0,0,0,0)},(a,s)=>{a.setDate(a.getDate()+s*7)},(a,s)=>(s-a-(s.getTimezoneOffset()-a.getTimezoneOffset())*wt)/fe)}var It=Xt(0),Zt=Xt(1),Se=Xt(2),_e=Xt(3),At=Xt(4),Ye=Xt(5),Fe=Xt(6),Jr=It.range,oi=Zt.range,ci=Se.range,ui=_e.range,li=At.range,fi=Ye.range,di=Fe.range;function qt(i){return ht((a)=>{a.setUTCDate(a.getUTCDate()-(a.getUTCDay()+7-i)%7),a.setUTCHours(0,0,0,0)},(a,s)=>{a.setUTCDate(a.getUTCDate()+s*7)},(a,s)=>(s-a)/fe)}var Gt=qt(0),ee=qt(1),Kr=qt(2),tn=qt(3),jt=qt(4),en=qt(5),rn=qt(6),nn=Gt.range,mi=ee.range,hi=Kr.range,yi=tn.range,gi=jt.range,ki=en.range,pi=rn.range;var zt=ht((i)=>{i.setDate(1),i.setHours(0,0,0,0)},(i,a)=>{i.setMonth(i.getMonth()+a)},(i,a)=>a.getMonth()-i.getMonth()+(a.getFullYear()-i.getFullYear())*12,(i)=>i.getMonth()),Ti=zt.range,Ie=ht((i)=>{i.setUTCDate(1),i.setUTCHours(0,0,0,0)},(i,a)=>{i.setUTCMonth(i.getUTCMonth()+a)},(i,a)=>a.getUTCMonth()-i.getUTCMonth()+(a.getUTCFullYear()-i.getUTCFullYear())*12,(i)=>i.getUTCMonth()),vi=Ie.range;var Ct=ht((i)=>{i.setMonth(0,1),i.setHours(0,0,0,0)},(i,a)=>{i.setFullYear(i.getFullYear()+a)},(i,a)=>a.getFullYear()-i.getFullYear(),(i)=>i.getFullYear());Ct.every=(i)=>!isFinite(i=Math.floor(i))||!(i>0)?null:ht((a)=>{a.setFullYear(Math.floor(a.getFullYear()/i)*i),a.setMonth(0,1),a.setHours(0,0,0,0)},(a,s)=>{a.setFullYear(a.getFullYear()+s*i)});var xi=Ct.range,Ut=ht((i)=>{i.setUTCMonth(0,1),i.setUTCHours(0,0,0,0)},(i,a)=>{i.setUTCFullYear(i.getUTCFullYear()+a)},(i,a)=>a.getUTCFullYear()-i.getUTCFullYear(),(i)=>i.getUTCFullYear());Ut.every=(i)=>!isFinite(i=Math.floor(i))||!(i>0)?null:ht((a)=>{a.setUTCFullYear(Math.floor(a.getUTCFullYear()/i)*i),a.setUTCMonth(0,1),a.setUTCHours(0,0,0,0)},(a,s)=>{a.setUTCFullYear(a.getUTCFullYear()+s*i)});var wi=Ut.range;function an(i,a,s,o,c,u){let T=[[Dt,1,Yt],[Dt,5,5*Yt],[Dt,15,15*Yt],[Dt,30,30*Yt],[u,1,wt],[u,5,5*wt],[u,15,15*wt],[u,30,30*wt],[c,1,Et],[c,3,3*Et],[c,6,6*Et],[c,12,12*Et],[o,1,Bt],[o,2,2*Bt],[s,1,fe],[a,1,er],[a,3,3*er],[i,1,we]];function U(R,O,it){let B=O<R;if(B)[R,O]=[O,R];let H=it&&typeof it.range==="function"?it:W(R,O,it),z=H?H.range(R,+O+1):[];return B?z.reverse():z}function W(R,O,it){let B=Math.abs(O-R)/it,H=tr(([,,N])=>N).right(T,B);if(H===T.length)return i.every(Mr(R/we,O/we,it));if(H===0)return Wt.every(Math.max(Mr(R,O,it),1));let[z,Z]=T[B/T[H-1][2]<T[H][2]/B?H-1:H];return z.every(Z)}return[U,W]}var[Mi,Di]=an(Ut,Ie,Gt,Ce,De,Me),[rr,nr]=an(Ct,zt,It,Ft,Vt,Pt);function ir(i){if(0<=i.y&&i.y<100){var a=new Date(-1,i.m,i.d,i.H,i.M,i.S,i.L);return a.setFullYear(i.y),a}return new Date(i.y,i.m,i.d,i.H,i.M,i.S,i.L)}function ar(i){if(0<=i.y&&i.y<100){var a=new Date(Date.UTC(-1,i.m,i.d,i.H,i.M,i.S,i.L));return a.setUTCFullYear(i.y),a}return new Date(Date.UTC(i.y,i.m,i.d,i.H,i.M,i.S,i.L))}function me(i,a,s){return{y:i,m:a,d:s,H:0,M:0,S:0,L:0}}function sr(i){var{dateTime:a,date:s,time:o,periods:c,days:u,shortDays:T,months:U,shortMonths:W}=i,R=he(c),O=ye(c),it=he(u),B=ye(u),H=he(T),z=ye(T),Z=he(U),N=ye(U),tt=he(W),mt=ye(W),st={a:_,A:G,b:y,B:Q,c:null,d:dn,e:dn,f:qi,g:aa,G:oa,H:Zi,I:ji,j:Xi,L:kn,m:Gi,M:Qi,p:D,q:yt,Q:yn,s:gn,S:Ji,u:Ki,U:ta,V:ea,w:ra,W:na,x:null,X:null,y:ia,Y:sa,Z:ca,"%":hn},j={a:M,A:q,b:J,B:lt,c:null,d:mn,e:mn,f:da,g:ba,G:Ma,H:ua,I:la,j:fa,L:Tn,m:ma,M:ha,p:dt,q:at,Q:yn,s:gn,S:ya,u:ga,U:ka,V:pa,w:Ta,W:va,x:null,X:null,y:xa,Y:wa,Z:Da,"%":hn},L={a:F,A,b:E,B:V,c:w,d:ln,e:ln,f:Vi,g:un,G:on,H:fn,I:fn,j:$i,L:Pi,m:Oi,M:Hi,p:nt,q:Ai,Q:Ri,s:Bi,S:Ni,u:Ii,U:Ui,V:Li,w:Yi,W:Wi,x:I,X:Y,y:un,Y:on,Z:Ei,"%":zi};st.x=x(s,st),st.X=x(o,st),st.c=x(a,st),j.x=x(s,j),j.X=x(o,j),j.c=x(a,j);function x(S,X){return function(et){var C=[],gt=-1,ot=0,ct=S.length,kt,Tt,bt;if(!(et instanceof Date))et=new Date(+et);while(++gt<ct)if(S.charCodeAt(gt)===37){if(C.push(S.slice(ot,gt)),(Tt=sn[kt=S.charAt(++gt)])!=null)kt=S.charAt(++gt);else Tt=kt==="e"?" ":"0";if(bt=X[kt])kt=bt(et,Tt);C.push(kt),ot=gt+1}return C.push(S.slice(ot,gt)),C.join("")}}function P(S,X){return function(et){var C=me(1900,void 0,1),gt=rt(C,S,et+="",0),ot,ct;if(gt!=et.length)return null;if("Q"in C)return new Date(C.Q);if("s"in C)return new Date(C.s*1000+("L"in C?C.L:0));if(X&&!("Z"in C))C.Z=0;if("p"in C)C.H=C.H%12+C.p*12;if(C.m===void 0)C.m="q"in C?C.q:0;if("V"in C){if(C.V<1||C.V>53)return null;if(!("w"in C))C.w=1;if("Z"in C)ot=ar(me(C.y,0,1)),ct=ot.getUTCDay(),ot=ct>4||ct===0?ee.ceil(ot):ee(ot),ot=de.offset(ot,(C.V-1)*7),C.y=ot.getUTCFullYear(),C.m=ot.getUTCMonth(),C.d=ot.getUTCDate()+(C.w+6)%7;else ot=ir(me(C.y,0,1)),ct=ot.getDay(),ot=ct>4||ct===0?Zt.ceil(ot):Zt(ot),ot=Ft.offset(ot,(C.V-1)*7),C.y=ot.getFullYear(),C.m=ot.getMonth(),C.d=ot.getDate()+(C.w+6)%7}else if("W"in C||"U"in C){if(!("w"in C))C.w="u"in C?C.u%7:("W"in C)?1:0;ct="Z"in C?ar(me(C.y,0,1)).getUTCDay():ir(me(C.y,0,1)).getDay(),C.m=0,C.d="W"in C?(C.w+6)%7+C.W*7-(ct+5)%7:C.w+C.U*7-(ct+6)%7}if("Z"in C)return C.H+=C.Z/100|0,C.M+=C.Z%100,ar(C);return ir(C)}}function rt(S,X,et,C){var gt=0,ot=X.length,ct=et.length,kt,Tt;while(gt<ot){if(C>=ct)return-1;if(kt=X.charCodeAt(gt++),kt===37){if(kt=X.charAt(gt++),Tt=L[kt in sn?X.charAt(gt++):kt],!Tt||(C=Tt(S,et,C))<0)return-1}else if(kt!=et.charCodeAt(C++))return-1}return C}function nt(S,X,et){var C=R.exec(X.slice(et));return C?(S.p=O.get(C[0].toLowerCase()),et+C[0].length):-1}function F(S,X,et){var C=H.exec(X.slice(et));return C?(S.w=z.get(C[0].toLowerCase()),et+C[0].length):-1}function A(S,X,et){var C=it.exec(X.slice(et));return C?(S.w=B.get(C[0].toLowerCase()),et+C[0].length):-1}function E(S,X,et){var C=tt.exec(X.slice(et));return C?(S.m=mt.get(C[0].toLowerCase()),et+C[0].length):-1}function V(S,X,et){var C=Z.exec(X.slice(et));return C?(S.m=N.get(C[0].toLowerCase()),et+C[0].length):-1}function w(S,X,et){return rt(S,a,X,et)}function I(S,X,et){return rt(S,s,X,et)}function Y(S,X,et){return rt(S,o,X,et)}function _(S){return T[S.getDay()]}function G(S){return u[S.getDay()]}function y(S){return W[S.getMonth()]}function Q(S){return U[S.getMonth()]}function D(S){return c[+(S.getHours()>=12)]}function yt(S){return 1+~~(S.getMonth()/3)}function M(S){return T[S.getUTCDay()]}function q(S){return u[S.getUTCDay()]}function J(S){return W[S.getUTCMonth()]}function lt(S){return U[S.getUTCMonth()]}function dt(S){return c[+(S.getUTCHours()>=12)]}function at(S){return 1+~~(S.getUTCMonth()/3)}return{format:function(S){var X=x(S+="",st);return X.toString=function(){return S},X},parse:function(S){var X=P(S+="",!1);return X.toString=function(){return S},X},utcFormat:function(S){var X=x(S+="",j);return X.toString=function(){return S},X},utcParse:function(S){var X=P(S+="",!0);return X.toString=function(){return S},X}}}var sn={"-":"",_:" ","0":"0"},xt=/^\s*\d+/,Ci=/^%/,Si=/[\\^$*+?|[\]().{}]/g;function ut(i,a,s){var o=i<0?"-":"",c=(o?-i:i)+"",u=c.length;return o+(u<s?Array(s-u+1).join(a)+c:c)}function _i(i){return i.replace(Si,"\\$&")}function he(i){return new RegExp("^(?:"+i.map(_i).join("|")+")","i")}function ye(i){return new Map(i.map((a,s)=>[a.toLowerCase(),s]))}function Yi(i,a,s){var o=xt.exec(a.slice(s,s+1));return o?(i.w=+o[0],s+o[0].length):-1}function Ii(i,a,s){var o=xt.exec(a.slice(s,s+1));return o?(i.u=+o[0],s+o[0].length):-1}function Ui(i,a,s){var o=xt.exec(a.slice(s,s+2));return o?(i.U=+o[0],s+o[0].length):-1}function Li(i,a,s){var o=xt.exec(a.slice(s,s+2));return o?(i.V=+o[0],s+o[0].length):-1}function Wi(i,a,s){var o=xt.exec(a.slice(s,s+2));return o?(i.W=+o[0],s+o[0].length):-1}function on(i,a,s){var o=xt.exec(a.slice(s,s+4));return o?(i.y=+o[0],s+o[0].length):-1}function un(i,a,s){var o=xt.exec(a.slice(s,s+2));return o?(i.y=+o[0]+(+o[0]>68?1900:2000),s+o[0].length):-1}function Ei(i,a,s){var o=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(a.slice(s,s+6));return o?(i.Z=o[1]?0:-(o[2]+(o[3]||"00")),s+o[0].length):-1}function Ai(i,a,s){var o=xt.exec(a.slice(s,s+1));return o?(i.q=o[0]*3-3,s+o[0].length):-1}function Oi(i,a,s){var o=xt.exec(a.slice(s,s+2));return o?(i.m=o[0]-1,s+o[0].length):-1}function ln(i,a,s){var o=xt.exec(a.slice(s,s+2));return o?(i.d=+o[0],s+o[0].length):-1}function $i(i,a,s){var o=xt.exec(a.slice(s,s+3));return o?(i.m=0,i.d=+o[0],s+o[0].length):-1}function fn(i,a,s){var o=xt.exec(a.slice(s,s+2));return o?(i.H=+o[0],s+o[0].length):-1}function Hi(i,a,s){var o=xt.exec(a.slice(s,s+2));return o?(i.M=+o[0],s+o[0].length):-1}function Ni(i,a,s){var o=xt.exec(a.slice(s,s+2));return o?(i.S=+o[0],s+o[0].length):-1}function Pi(i,a,s){var o=xt.exec(a.slice(s,s+3));return o?(i.L=+o[0],s+o[0].length):-1}function Vi(i,a,s){var o=xt.exec(a.slice(s,s+6));return o?(i.L=Math.floor(o[0]/1000),s+o[0].length):-1}function zi(i,a,s){var o=Ci.exec(a.slice(s,s+1));return o?s+o[0].length:-1}function Ri(i,a,s){var o=xt.exec(a.slice(s));return o?(i.Q=+o[0],s+o[0].length):-1}function Bi(i,a,s){var o=xt.exec(a.slice(s));return o?(i.s=+o[0],s+o[0].length):-1}function dn(i,a){return ut(i.getDate(),a,2)}function Zi(i,a){return ut(i.getHours(),a,2)}function ji(i,a){return ut(i.getHours()%12||12,a,2)}function Xi(i,a){return ut(1+Ft.count(Ct(i),i),a,3)}function kn(i,a){return ut(i.getMilliseconds(),a,3)}function qi(i,a){return kn(i,a)+"000"}function Gi(i,a){return ut(i.getMonth()+1,a,2)}function Qi(i,a){return ut(i.getMinutes(),a,2)}function Ji(i,a){return ut(i.getSeconds(),a,2)}function Ki(i){var a=i.getDay();return a===0?7:a}function ta(i,a){return ut(It.count(Ct(i)-1,i),a,2)}function pn(i){var a=i.getDay();return a>=4||a===0?At(i):At.ceil(i)}function ea(i,a){return i=pn(i),ut(At.count(Ct(i),i)+(Ct(i).getDay()===4),a,2)}function ra(i){return i.getDay()}function na(i,a){return ut(Zt.count(Ct(i)-1,i),a,2)}function ia(i,a){return ut(i.getFullYear()%100,a,2)}function aa(i,a){return i=pn(i),ut(i.getFullYear()%100,a,2)}function sa(i,a){return ut(i.getFullYear()%1e4,a,4)}function oa(i,a){var s=i.getDay();return i=s>=4||s===0?At(i):At.ceil(i),ut(i.getFullYear()%1e4,a,4)}function ca(i){var a=i.getTimezoneOffset();return(a>0?"-":(a*=-1,"+"))+ut(a/60|0,"0",2)+ut(a%60,"0",2)}function mn(i,a){return ut(i.getUTCDate(),a,2)}function ua(i,a){return ut(i.getUTCHours(),a,2)}function la(i,a){return ut(i.getUTCHours()%12||12,a,2)}function fa(i,a){return ut(1+de.count(Ut(i),i),a,3)}function Tn(i,a){return ut(i.getUTCMilliseconds(),a,3)}function da(i,a){return Tn(i,a)+"000"}function ma(i,a){return ut(i.getUTCMonth()+1,a,2)}function ha(i,a){return ut(i.getUTCMinutes(),a,2)}function ya(i,a){return ut(i.getUTCSeconds(),a,2)}function ga(i){var a=i.getUTCDay();return a===0?7:a}function ka(i,a){return ut(Gt.count(Ut(i)-1,i),a,2)}function vn(i){var a=i.getUTCDay();return a>=4||a===0?jt(i):jt.ceil(i)}function pa(i,a){return i=vn(i),ut(jt.count(Ut(i),i)+(Ut(i).getUTCDay()===4),a,2)}function Ta(i){return i.getUTCDay()}function va(i,a){return ut(ee.count(Ut(i)-1,i),a,2)}function xa(i,a){return ut(i.getUTCFullYear()%100,a,2)}function ba(i,a){return i=vn(i),ut(i.getUTCFullYear()%100,a,2)}function wa(i,a){return ut(i.getUTCFullYear()%1e4,a,4)}function Ma(i,a){var s=i.getUTCDay();return i=s>=4||s===0?jt(i):jt.ceil(i),ut(i.getUTCFullYear()%1e4,a,4)}function Da(){return"+0000"}function hn(){return"%"}function yn(i){return+i}function gn(i){return Math.floor(+i/1000)}var re,Qt,xn,bn,wn;or({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 or(i){return re=sr(i),Qt=re.format,xn=re.parse,bn=re.utcFormat,wn=re.utcParse,re}function Ca(i){return new Date(i)}function Sa(i){return i instanceof Date?+i:+new Date(+i)}function Mn(i,a,s,o,c,u,T,U,W,R){var O=Nr(),{invert:it,domain:B}=O,H=R(".%L"),z=R(":%S"),Z=R("%I:%M"),N=R("%I %p"),tt=R("%a %d"),mt=R("%b %d"),st=R("%B"),j=R("%Y");function L(x){return(W(x)<x?H:U(x)<x?z:T(x)<x?Z:u(x)<x?N:o(x)<x?c(x)<x?tt:mt:s(x)<x?st:j)(x)}return O.invert=function(x){return new Date(it(x))},O.domain=function(x){return arguments.length?B(Array.from(x,Sa)):B().map(Ca)},O.ticks=function(x){var P=B();return i(P[0],P[P.length-1],x==null?10:x)},O.tickFormat=function(x,P){return P==null?L:R(P)},O.nice=function(x){var P=B();if(!x||typeof x.range!=="function")x=a(P[0],P[P.length-1],x==null?10:x);return x?B(Qe(P,x)):O},O.copy=function(){return cn(O,Mn(i,a,s,o,c,u,T,U,W,R))},O}function cr(){return Ue.apply(Mn(rr,nr,Ct,zt,It,Ft,Vt,Pt,Dt,Qt).domain([new Date(2000,0,1),new Date(2000,0,2)]),arguments)}var Un=K(pt(),1),St=K(Ln(),1),Wn=K(Dn(),1),En=K(Cn(),1),An=K(Sn(),1),ie=K(Ln(),1),Zn=K(_n(),1);var pr=function(){var i=e(function(V,w,I,Y){for(I=I||{},Y=V.length;Y--;I[V[Y]]=w);return I},"o"),a=[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],s=[1,26],o=[1,27],c=[1,28],u=[1,29],T=[1,30],U=[1,31],W=[1,32],R=[1,33],O=[1,34],it=[1,9],B=[1,10],H=[1,11],z=[1,12],Z=[1,13],N=[1,14],tt=[1,15],mt=[1,16],st=[1,19],j=[1,20],L=[1,21],x=[1,22],P=[1,23],rt=[1,25],nt=[1,35],F={trace:e(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:e(function(w,I,Y,_,G,y,Q){var D=y.length-1;switch(G){case 1:return y[D-1];case 2:this.$=[];break;case 3:y[D-1].push(y[D]),this.$=y[D-1];break;case 4:case 5:this.$=y[D];break;case 6:case 7:this.$=[];break;case 8:_.setWeekday("monday");break;case 9:_.setWeekday("tuesday");break;case 10:_.setWeekday("wednesday");break;case 11:_.setWeekday("thursday");break;case 12:_.setWeekday("friday");break;case 13:_.setWeekday("saturday");break;case 14:_.setWeekday("sunday");break;case 15:_.setWeekend("friday");break;case 16:_.setWeekend("saturday");break;case 17:_.setDateFormat(y[D].substr(11)),this.$=y[D].substr(11);break;case 18:_.enableInclusiveEndDates(),this.$=y[D].substr(18);break;case 19:_.TopAxis(),this.$=y[D].substr(8);break;case 20:_.setAxisFormat(y[D].substr(11)),this.$=y[D].substr(11);break;case 21:_.setTickInterval(y[D].substr(13)),this.$=y[D].substr(13);break;case 22:_.setExcludes(y[D].substr(9)),this.$=y[D].substr(9);break;case 23:_.setIncludes(y[D].substr(9)),this.$=y[D].substr(9);break;case 24:_.setTodayMarker(y[D].substr(12)),this.$=y[D].substr(12);break;case 27:_.setDiagramTitle(y[D].substr(6)),this.$=y[D].substr(6);break;case 28:this.$=y[D].trim(),_.setAccTitle(this.$);break;case 29:case 30:this.$=y[D].trim(),_.setAccDescription(this.$);break;case 31:_.addSection(y[D].substr(8)),this.$=y[D].substr(8);break;case 33:_.addTask(y[D-1],y[D]),this.$="task";break;case 34:this.$=y[D-1],_.setClickEvent(y[D-1],y[D],null);break;case 35:this.$=y[D-2],_.setClickEvent(y[D-2],y[D-1],y[D]);break;case 36:this.$=y[D-2],_.setClickEvent(y[D-2],y[D-1],null),_.setLink(y[D-2],y[D]);break;case 37:this.$=y[D-3],_.setClickEvent(y[D-3],y[D-2],y[D-1]),_.setLink(y[D-3],y[D]);break;case 38:this.$=y[D-2],_.setClickEvent(y[D-2],y[D],null),_.setLink(y[D-2],y[D-1]);break;case 39:this.$=y[D-3],_.setClickEvent(y[D-3],y[D-1],y[D]),_.setLink(y[D-3],y[D-2]);break;case 40:this.$=y[D-1],_.setLink(y[D-1],y[D]);break;case 41:case 47:this.$=y[D-1]+" "+y[D];break;case 42:case 43:case 45:this.$=y[D-2]+" "+y[D-1]+" "+y[D];break;case 44:case 46:this.$=y[D-3]+" "+y[D-2]+" "+y[D-1]+" "+y[D];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},i(a,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:s,13:o,14:c,15:u,16:T,17:U,18:W,19:18,20:R,21:O,22:it,23:B,24:H,25:z,26:Z,27:N,28:tt,29:mt,30:st,31:j,33:L,35:x,36:P,37:24,38:rt,40:nt},i(a,[2,7],{1:[2,1]}),i(a,[2,3]),{9:36,11:17,12:s,13:o,14:c,15:u,16:T,17:U,18:W,19:18,20:R,21:O,22:it,23:B,24:H,25:z,26:Z,27:N,28:tt,29:mt,30:st,31:j,33:L,35:x,36:P,37:24,38:rt,40:nt},i(a,[2,5]),i(a,[2,6]),i(a,[2,17]),i(a,[2,18]),i(a,[2,19]),i(a,[2,20]),i(a,[2,21]),i(a,[2,22]),i(a,[2,23]),i(a,[2,24]),i(a,[2,25]),i(a,[2,26]),i(a,[2,27]),{32:[1,37]},{34:[1,38]},i(a,[2,30]),i(a,[2,31]),i(a,[2,32]),{39:[1,39]},i(a,[2,8]),i(a,[2,9]),i(a,[2,10]),i(a,[2,11]),i(a,[2,12]),i(a,[2,13]),i(a,[2,14]),i(a,[2,15]),i(a,[2,16]),{41:[1,40],43:[1,41]},i(a,[2,4]),i(a,[2,28]),i(a,[2,29]),i(a,[2,33]),i(a,[2,34],{42:[1,42],43:[1,43]}),i(a,[2,40],{41:[1,44]}),i(a,[2,35],{43:[1,45]}),i(a,[2,36]),i(a,[2,38],{42:[1,46]}),i(a,[2,37]),i(a,[2,39])],defaultActions:{},parseError:e(function(w,I){if(I.recoverable)this.trace(w);else{var Y=Error(w);throw Y.hash=I,Y}},"parseError"),parse:e(function(w){var I=this,Y=[0],_=[],G=[null],y=[],Q=this.table,D="",yt=0,M=0,q=0,J=2,lt=1,dt=y.slice.call(arguments,1),at=Object.create(this.lexer),S={yy:{}};for(var X in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,X))S.yy[X]=this.yy[X];if(at.setInput(w,S.yy),S.yy.lexer=at,S.yy.parser=this,typeof at.yylloc>"u")at.yylloc={};var et=at.yylloc;y.push(et);var C=at.options&&at.options.ranges;if(typeof S.yy.parseError==="function")this.parseError=S.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function gt(_t){Y.length=Y.length-2*_t,G.length=G.length-_t,y.length=y.length-_t}e(gt,"popStack");function ot(){var _t=_.pop()||at.lex()||lt;if(typeof _t!=="number"){if(_t instanceof Array)_=_t,_t=_.pop();_t=I.symbols_[_t]||_t}return _t}e(ot,"lex");var ct,kt,Tt,bt,ps,$e,Kt={},ke,$t,Wr,pe;while(!0){if(Tt=Y[Y.length-1],this.defaultActions[Tt])bt=this.defaultActions[Tt];else{if(ct===null||typeof ct>"u")ct=ot();bt=Q[Tt]&&Q[Tt][ct]}if(typeof bt>"u"||!bt.length||!bt[0]){var He="";pe=[];for(ke in Q[Tt])if(this.terminals_[ke]&&ke>J)pe.push("'"+this.terminals_[ke]+"'");if(at.showPosition)He="Parse error on line "+(yt+1)+`:
|
|
1
|
+
import{e,Ln,t,l,T,d,f,p,m,g,b,v,r,n,Mt,vr,Nt,bi,ce,Fi,ft,pt,h}from"./index-nwsya6dj.js";import{K,oe}from"./index-v119nznk.js";import"./index-5tv8v1hk.js";import{tr,Mr,cn,Nr,Oe}from"./index-9b02042t.js";import{Ue}from"./index-hj99nz1f.js";var Dn=oe(function(ur,lr){(function(i,a){typeof ur=="object"&&typeof lr<"u"?lr.exports=a():typeof define=="function"&&define.amd?define(a):(i=typeof globalThis<"u"?globalThis:i||self).dayjs_plugin_isoWeek=a()})(ur,function(){var i="day";return function(a,s,o){var c=function(U){return U.add(4-U.isoWeekday(),i)},u=s.prototype;u.isoWeekYear=function(){return c(this).year()},u.isoWeek=function(U){if(!this.$utils().u(U))return this.add(7*(U-this.isoWeek()),i);var W,R,O,it,B=c(this),H=(W=this.isoWeekYear(),R=this.$u,O=(R?o.utc:o)().year(W).startOf("year"),it=4-O.isoWeekday(),O.isoWeekday()>4&&(it+=7),O.add(it,i));return B.diff(H,"week")+1},u.isoWeekday=function(U){return this.$utils().u(U)?this.day()||7:this.day(this.day()%7?U:U-7)};var k=u.startOf;u.startOf=function(U,W){var R=this.$utils(),O=!!R.u(W)||W;return R.p(U)==="isoweek"?O?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):k.bind(this)(U,W)}}})});var Cn=oe(function(fr,dr){(function(i,a){typeof fr=="object"&&typeof dr<"u"?dr.exports=a():typeof define=="function"&&define.amd?define(a):(i=typeof globalThis<"u"?globalThis:i||self).dayjs_plugin_customParseFormat=a()})(fr,function(){var i={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"},a=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,s=/\d/,o=/\d\d/,c=/\d\d?/,u=/\d*[^-_:/,()\s\d]+/,k={},U=function(z){return(z=+z)+(z>68?1900:2000)},W=function(z){return function(Z){this[z]=+Z}},R=[/[+-]\d\d:?(\d\d)?|Z/,function(z){(this.zone||(this.zone={})).offset=function(Z){if(!Z)return 0;if(Z==="Z")return 0;var N=Z.match(/([+-]|\d\d)/g),tt=60*N[1]+(+N[2]||0);return tt===0?0:N[0]==="+"?-tt:tt}(z)}],O=function(z){var Z=k[z];return Z&&(Z.indexOf?Z:Z.s.concat(Z.f))},it=function(z,Z){var N,tt=k.meridiem;if(tt){for(var mt=1;mt<=24;mt+=1)if(z.indexOf(tt(mt,0,Z))>-1){N=mt>12;break}}else N=z===(Z?"pm":"PM");return N},B={A:[u,function(z){this.afternoon=it(z,!1)}],a:[u,function(z){this.afternoon=it(z,!0)}],Q:[s,function(z){this.month=3*(z-1)+1}],S:[s,function(z){this.milliseconds=100*+z}],SS:[o,function(z){this.milliseconds=10*+z}],SSS:[/\d{3}/,function(z){this.milliseconds=+z}],s:[c,W("seconds")],ss:[c,W("seconds")],m:[c,W("minutes")],mm:[c,W("minutes")],H:[c,W("hours")],h:[c,W("hours")],HH:[c,W("hours")],hh:[c,W("hours")],D:[c,W("day")],DD:[o,W("day")],Do:[u,function(z){var Z=k.ordinal,N=z.match(/\d+/);if(this.day=N[0],Z)for(var tt=1;tt<=31;tt+=1)Z(tt).replace(/\[|\]/g,"")===z&&(this.day=tt)}],w:[c,W("week")],ww:[o,W("week")],M:[c,W("month")],MM:[o,W("month")],MMM:[u,function(z){var Z=O("months"),N=(O("monthsShort")||Z.map(function(tt){return tt.slice(0,3)})).indexOf(z)+1;if(N<1)throw Error();this.month=N%12||N}],MMMM:[u,function(z){var Z=O("months").indexOf(z)+1;if(Z<1)throw Error();this.month=Z%12||Z}],Y:[/[+-]?\d+/,W("year")],YY:[o,function(z){this.year=U(z)}],YYYY:[/\d{4}/,W("year")],Z:R,ZZ:R};function H(z){var Z,N;Z=z,N=k&&k.formats;for(var tt=(z=Z.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(rt,nt,F){var A=F&&F.toUpperCase();return nt||N[F]||i[F]||N[A].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(E,V,w){return V||w.slice(1)})})).match(a),mt=tt.length,st=0;st<mt;st+=1){var j=tt[st],L=B[j],x=L&&L[0],P=L&&L[1];tt[st]=P?{regex:x,parser:P}:j.replace(/^\[|\]$/g,"")}return function(rt){for(var nt={},F=0,A=0;F<mt;F+=1){var E=tt[F];if(typeof E=="string")A+=E.length;else{var{regex:V,parser:w}=E,I=rt.slice(A),Y=V.exec(I)[0];w.call(nt,Y),rt=rt.replace(Y,"")}}return function(_){var G=_.afternoon;if(G!==void 0){var y=_.hours;G?y<12&&(_.hours+=12):y===12&&(_.hours=0),delete _.afternoon}}(nt),nt}}return function(z,Z,N){N.p.customParseFormat=!0,z&&z.parseTwoDigitYear&&(U=z.parseTwoDigitYear);var tt=Z.prototype,mt=tt.parse;tt.parse=function(st){var{date:j,utc:L,args:x}=st;this.$u=L;var P=x[1];if(typeof P=="string"){var rt=x[2]===!0,nt=x[3]===!0,F=rt||nt,A=x[2];nt&&(A=x[2]),k=this.$locale(),!rt&&A&&(k=N.Ls[A]),this.$d=function(I,Y,_,G){try{if(["x","X"].indexOf(Y)>-1)return new Date((Y==="X"?1000:1)*I);var y=H(Y)(I),{year:Q,month:D,day:yt,hours:M,minutes:q,seconds:J,milliseconds:lt,zone:dt,week:at}=y,S=new Date,X=yt||(Q||D?1:S.getDate()),et=Q||S.getFullYear(),C=0;Q&&!D||(C=D>0?D-1:S.getMonth());var gt,ot=M||0,ct=q||0,kt=J||0,Tt=lt||0;return dt?new Date(Date.UTC(et,C,X,ot,ct,kt,Tt+60*dt.offset*1000)):_?new Date(Date.UTC(et,C,X,ot,ct,kt,Tt)):(gt=new Date(et,C,X,ot,ct,kt,Tt),at&&(gt=G(gt).week(at).toDate()),gt)}catch(bt){return new Date("")}}(j,P,L,N),this.init(),A&&A!==!0&&(this.$L=this.locale(A).$L),F&&j!=this.format(P)&&(this.$d=new Date("")),k={}}else if(P instanceof Array)for(var E=P.length,V=1;V<=E;V+=1){x[1]=P[V-1];var w=N.apply(this,x);if(w.isValid()){this.$d=w.$d,this.$L=w.$L,this.init();break}V===E&&(this.$d=new Date(""))}else mt.call(this,st)}}})});var Sn=oe(function(mr,hr){(function(i,a){typeof mr=="object"&&typeof hr<"u"?hr.exports=a():typeof define=="function"&&define.amd?define(a):(i=typeof globalThis<"u"?globalThis:i||self).dayjs_plugin_advancedFormat=a()})(mr,function(){return function(i,a){var s=a.prototype,o=s.format;s.format=function(c){var u=this,k=this.$locale();if(!this.isValid())return o.bind(this)(c);var U=this.$utils(),W=(c||"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(R){switch(R){case"Q":return Math.ceil((u.$M+1)/3);case"Do":return k.ordinal(u.$D);case"gggg":return u.weekYear();case"GGGG":return u.isoWeekYear();case"wo":return k.ordinal(u.week(),"W");case"w":case"ww":return U.s(u.week(),R==="w"?1:2,"0");case"W":case"WW":return U.s(u.isoWeek(),R==="W"?1:2,"0");case"k":case"kk":return U.s(String(u.$H===0?24:u.$H),R==="k"?1:2,"0");case"X":return Math.floor(u.$d.getTime()/1000);case"x":return u.$d.getTime();case"z":return"["+u.offsetName()+"]";case"zzz":return"["+u.offsetName("long")+"]";default:return R}});return o.bind(this)(W)}}})});var _n=oe(function(yr,gr){(function(i,a){typeof yr=="object"&&typeof gr<"u"?gr.exports=a():typeof define=="function"&&define.amd?define(a):(i=typeof globalThis<"u"?globalThis:i||self).dayjs_plugin_duration=a()})(yr,function(){var i,a,s=1000,o=60000,c=3600000,u=86400000,k=31536000000,U=2628000000,W=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,R=/\[([^\]]+)]|YYYY|YY|Y|M{1,2}|D{1,2}|H{1,2}|m{1,2}|s{1,2}|SSS/g,O={years:k,months:U,days:u,hours:c,minutes:o,seconds:s,milliseconds:1,weeks:604800000},it=function(j){return j instanceof mt},B=function(j,L,x){return new mt(j,x,L.$l)},H=function(j){return a.p(j)+"s"},z=function(j){return j<0},Z=function(j){return z(j)?Math.ceil(j):Math.floor(j)},N=function(j){return Math.abs(j)},tt=function(j,L){return j?z(j)?{negative:!0,format:""+N(j)+L}:{negative:!1,format:""+j+L}:{negative:!1,format:""}},mt=function(){function j(x,P,rt){var nt=this;if(this.$d={},this.$l=rt,x===void 0&&(this.$ms=0,this.parseFromMilliseconds()),P)return B(x*O[H(P)],this);if(typeof x=="number")return this.$ms=x,this.parseFromMilliseconds(),this;if(typeof x=="object")return Object.keys(x).forEach(function(E){nt.$d[H(E)]=x[E]}),this.calMilliseconds(),this;if(typeof x=="string"){var F=x.match(W);if(F){var A=F.slice(2).map(function(E){return E!=null?Number(E):0});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 L=j.prototype;return L.calMilliseconds=function(){var x=this;this.$ms=Object.keys(this.$d).reduce(function(P,rt){return P+(x.$d[rt]||0)*O[rt]},0)},L.parseFromMilliseconds=function(){var x=this.$ms;this.$d.years=Z(x/k),x%=k,this.$d.months=Z(x/U),x%=U,this.$d.days=Z(x/u),x%=u,this.$d.hours=Z(x/c),x%=c,this.$d.minutes=Z(x/o),x%=o,this.$d.seconds=Z(x/s),x%=s,this.$d.milliseconds=x},L.toISOString=function(){var x=tt(this.$d.years,"Y"),P=tt(this.$d.months,"M"),rt=+this.$d.days||0;this.$d.weeks&&(rt+=7*this.$d.weeks);var nt=tt(rt,"D"),F=tt(this.$d.hours,"H"),A=tt(this.$d.minutes,"M"),E=this.$d.seconds||0;this.$d.milliseconds&&(E+=this.$d.milliseconds/1000,E=Math.round(1000*E)/1000);var V=tt(E,"S"),w=x.negative||P.negative||nt.negative||F.negative||A.negative||V.negative,I=F.format||A.format||V.format?"T":"",Y=(w?"-":"")+"P"+x.format+P.format+nt.format+I+F.format+A.format+V.format;return Y==="P"||Y==="-P"?"P0D":Y},L.toJSON=function(){return this.toISOString()},L.format=function(x){var P=x||"YYYY-MM-DDTHH:mm:ss",rt={Y:this.$d.years,YY:a.s(this.$d.years,2,"0"),YYYY:a.s(this.$d.years,4,"0"),M:this.$d.months,MM:a.s(this.$d.months,2,"0"),D:this.$d.days,DD:a.s(this.$d.days,2,"0"),H:this.$d.hours,HH:a.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:a.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:a.s(this.$d.seconds,2,"0"),SSS:a.s(this.$d.milliseconds,3,"0")};return P.replace(R,function(nt,F){return F||String(rt[nt])})},L.as=function(x){return this.$ms/O[H(x)]},L.get=function(x){var P=this.$ms,rt=H(x);return rt==="milliseconds"?P%=1000:P=rt==="weeks"?Z(P/O[rt]):this.$d[rt],P||0},L.add=function(x,P,rt){var nt;return nt=P?x*O[H(P)]:it(x)?x.$ms:B(x,this).$ms,B(this.$ms+nt*(rt?-1:1),this)},L.subtract=function(x,P){return this.add(x,P,!0)},L.locale=function(x){var P=this.clone();return P.$l=x,P},L.clone=function(){return B(this.$ms,this)},L.humanize=function(x){return i().add(this.$ms,"ms").locale(this.$l).fromNow(!x)},L.valueOf=function(){return this.asMilliseconds()},L.milliseconds=function(){return this.get("milliseconds")},L.asMilliseconds=function(){return this.as("milliseconds")},L.seconds=function(){return this.get("seconds")},L.asSeconds=function(){return this.as("seconds")},L.minutes=function(){return this.get("minutes")},L.asMinutes=function(){return this.as("minutes")},L.hours=function(){return this.get("hours")},L.asHours=function(){return this.as("hours")},L.days=function(){return this.get("days")},L.asDays=function(){return this.as("days")},L.weeks=function(){return this.get("weeks")},L.asWeeks=function(){return this.as("weeks")},L.months=function(){return this.get("months")},L.asMonths=function(){return this.as("months")},L.years=function(){return this.get("years")},L.asYears=function(){return this.as("years")},j}(),st=function(j,L,x){return j.add(L.years()*x,"y").add(L.months()*x,"M").add(L.days()*x,"d").add(L.hours()*x,"h").add(L.minutes()*x,"m").add(L.seconds()*x,"s").add(L.milliseconds()*x,"ms")};return function(j,L,x){i=x,a=x().$utils(),x.duration=function(nt,F){var A=x.locale();return B(nt,{$l:A},F)},x.isDuration=it;var P=L.prototype.add,rt=L.prototype.subtract;L.prototype.add=function(nt,F){return it(nt)?st(this,nt,1):P.bind(this)(nt,F)},L.prototype.subtract=function(nt,F){return it(nt)?st(this,nt,-1):rt.bind(this)(nt,F)}}})});function Ne(i,a){let s;if(a===void 0){for(let o of i)if(o!=null&&(s<o||s===void 0&&o>=o))s=o}else{let o=-1;for(let c of i)if((c=a(c,++o,i))!=null&&(s<c||s===void 0&&c>=c))s=c}return s}function Pe(i,a){let s;if(a===void 0){for(let o of i)if(o!=null&&(s>o||s===void 0&&o>=o))s=o}else{let o=-1;for(let c of i)if((c=a(c,++o,i))!=null&&(s>c||s===void 0&&c>=c))s=c}return s}function Ve(i){return i}var ve=1,ze=2,Re=3,Te=4,Er=0.000001;function jn(i){return"translate("+i+",0)"}function Xn(i){return"translate(0,"+i+")"}function qn(i){return(a)=>+i(a)}function Gn(i,a){if(a=Math.max(0,i.bandwidth()-a*2)/2,i.round())a=Math.round(a);return(s)=>+i(s)+a}function Qn(){return!this.__axis}function Ar(i,a){var s=[],o=null,c=null,u=6,k=6,U=3,W=typeof window<"u"&&window.devicePixelRatio>1?0:0.5,R=i===ve||i===Te?-1:1,O=i===Te||i===ze?"x":"y",it=i===ve||i===Re?jn:Xn;function B(H){var z=o==null?a.ticks?a.ticks.apply(a,s):a.domain():o,Z=c==null?a.tickFormat?a.tickFormat.apply(a,s):Ve:c,N=Math.max(u,0)+U,tt=a.range(),mt=+tt[0]+W,st=+tt[tt.length-1]+W,j=(a.bandwidth?Gn:qn)(a.copy(),W),L=H.selection?H.selection():H,x=L.selectAll(".domain").data([null]),P=L.selectAll(".tick").data(z,a).order(),rt=P.exit(),nt=P.enter().append("g").attr("class","tick"),F=P.select("line"),A=P.select("text");if(x=x.merge(x.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),P=P.merge(nt),F=F.merge(nt.append("line").attr("stroke","currentColor").attr(O+"2",R*u)),A=A.merge(nt.append("text").attr("fill","currentColor").attr(O,R*N).attr("dy",i===ve?"0em":i===Re?"0.71em":"0.32em")),H!==L)x=x.transition(H),P=P.transition(H),F=F.transition(H),A=A.transition(H),rt=rt.transition(H).attr("opacity",Er).attr("transform",function(E){return isFinite(E=j(E))?it(E+W):this.getAttribute("transform")}),nt.attr("opacity",Er).attr("transform",function(E){var V=this.parentNode.__axis;return it((V&&isFinite(V=V(E))?V:j(E))+W)});rt.remove(),x.attr("d",i===Te||i===ze?k?"M"+R*k+","+mt+"H"+W+"V"+st+"H"+R*k:"M"+W+","+mt+"V"+st:k?"M"+mt+","+R*k+"V"+W+"H"+st+"V"+R*k:"M"+mt+","+W+"H"+st),P.attr("opacity",1).attr("transform",function(E){return it(j(E)+W)}),F.attr(O+"2",R*u),A.attr(O,R*N).text(Z),L.filter(Qn).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",i===ze?"start":i===Te?"end":"middle"),L.each(function(){this.__axis=j})}return B.scale=function(H){return arguments.length?(a=H,B):a},B.ticks=function(){return s=Array.from(arguments),B},B.tickArguments=function(H){return arguments.length?(s=H==null?[]:Array.from(H),B):s.slice()},B.tickValues=function(H){return arguments.length?(o=H==null?null:Array.from(H),B):o&&o.slice()},B.tickFormat=function(H){return arguments.length?(c=H,B):c},B.tickSize=function(H){return arguments.length?(u=k=+H,B):u},B.tickSizeInner=function(H){return arguments.length?(u=+H,B):u},B.tickSizeOuter=function(H){return arguments.length?(k=+H,B):k},B.tickPadding=function(H){return arguments.length?(U=+H,B):U},B.offset=function(H){return arguments.length?(W=+H,B):W},B}function Be(i){return Ar(ve,i)}function Ze(i){return Ar(Re,i)}var Or=Math.PI/180,$r=180/Math.PI;var xe=18,Hr=0.96422,Pr=1,Vr=0.82521,zr=0.13793103448275862,te=0.20689655172413793,Rr=3*te*te,Jn=te*te*te;function Br(i){if(i instanceof Lt)return new Lt(i.l,i.a,i.b,i.opacity);if(i instanceof Ht)return jr(i);if(!(i instanceof ce))i=bi(i);var a=Ge(i.r),s=Ge(i.g),o=Ge(i.b),c=je((0.2225045*a+0.7168786*s+0.0606169*o)/Pr),u,k;if(a===s&&s===o)u=k=c;else u=je((0.4360747*a+0.3850649*s+0.1430804*o)/Hr),k=je((0.0139322*a+0.0971045*s+0.7141733*o)/Vr);return new Lt(116*c-16,500*(u-c),200*(c-k),i.opacity)}function Zr(i,a,s,o){return arguments.length===1?Br(i):new Lt(i,a,s,o==null?1:o)}function Lt(i,a,s,o){this.l=+i,this.a=+a,this.b=+s,this.opacity=+o}Mt(Lt,Zr,vr(Nt,{brighter(i){return new Lt(this.l+xe*(i==null?1:i),this.a,this.b,this.opacity)},darker(i){return new Lt(this.l-xe*(i==null?1:i),this.a,this.b,this.opacity)},rgb(){var i=(this.l+16)/116,a=isNaN(this.a)?i:i+this.a/500,s=isNaN(this.b)?i:i-this.b/200;return a=Hr*Xe(a),i=Pr*Xe(i),s=Vr*Xe(s),new ce(qe(3.1338561*a-1.6168667*i-0.4906146*s),qe(-0.9787684*a+1.9161415*i+0.033454*s),qe(0.0719453*a-0.2289914*i+1.4052427*s),this.opacity)}}));function je(i){return i>Jn?Math.pow(i,0.3333333333333333):i/Rr+zr}function Xe(i){return i>te?i*i*i:Rr*(i-zr)}function qe(i){return 255*(i<=0.0031308?12.92*i:1.055*Math.pow(i,0.4166666666666667)-0.055)}function Ge(i){return(i/=255)<=0.04045?i/12.92:Math.pow((i+0.055)/1.055,2.4)}function Kn(i){if(i instanceof Ht)return new Ht(i.h,i.c,i.l,i.opacity);if(!(i instanceof Lt))i=Br(i);if(i.a===0&&i.b===0)return new Ht(NaN,0<i.l&&i.l<100?0:NaN,i.l,i.opacity);var a=Math.atan2(i.b,i.a)*$r;return new Ht(a<0?a+360:a,Math.sqrt(i.a*i.a+i.b*i.b),i.l,i.opacity)}function be(i,a,s,o){return arguments.length===1?Kn(i):new Ht(i,a,s,o==null?1:o)}function Ht(i,a,s,o){this.h=+i,this.c=+a,this.l=+s,this.opacity=+o}function jr(i){if(isNaN(i.h))return new Lt(i.l,0,0,i.opacity);var a=i.h*Or;return new Lt(i.l,Math.cos(a)*i.c,Math.sin(a)*i.c,i.opacity)}Mt(Ht,be,vr(Nt,{brighter(i){return new Ht(this.h,this.c,this.l+xe*(i==null?1:i),this.opacity)},darker(i){return new Ht(this.h,this.c,this.l-xe*(i==null?1:i),this.opacity)},rgb(){return jr(this).rgb()}}));function Xr(i){return function(a,s){var o=i((a=be(a)).h,(s=be(s)).h),c=ft(a.c,s.c),u=ft(a.l,s.l),k=ft(a.opacity,s.opacity);return function(U){return a.h=o(U),a.c=c(U),a.l=u(U),a.opacity=k(U),a+""}}}var qr=Xr(Fi),Es=Xr(ft);function Qe(i,a){i=i.slice();var s=0,o=i.length-1,c=i[s],u=i[o],k;if(u<c)k=s,s=o,o=k,k=c,c=u,u=k;return i[s]=a.floor(c),i[o]=a.ceil(u),i}var Je=new Date,Ke=new Date;function ht(i,a,s,o){function c(u){return i(u=arguments.length===0?new Date:new Date(+u)),u}if(c.floor=(u)=>(i(u=new Date(+u)),u),c.ceil=(u)=>(i(u=new Date(u-1)),a(u,1),i(u),u),c.round=(u)=>{let k=c(u),U=c.ceil(u);return u-k<U-u?k:U},c.offset=(u,k)=>(a(u=new Date(+u),k==null?1:Math.floor(k)),u),c.range=(u,k,U)=>{let W=[];if(u=c.ceil(u),U=U==null?1:Math.floor(U),!(u<k)||!(U>0))return W;let R;do W.push(R=new Date(+u)),a(u,U),i(u);while(R<u&&u<k);return W},c.filter=(u)=>ht((k)=>{if(k>=k)while(i(k),!u(k))k.setTime(k-1)},(k,U)=>{if(k>=k)if(U<0)while(++U<=0)while(a(k,-1),!u(k));else while(--U>=0)while(a(k,1),!u(k));}),s)c.count=(u,k)=>(Je.setTime(+u),Ke.setTime(+k),i(Je),i(Ke),Math.floor(s(Je,Ke))),c.every=(u)=>(u=Math.floor(u),!isFinite(u)||!(u>0)?null:!(u>1)?c:c.filter(o?(k)=>o(k)%u===0:(k)=>c.count(0,k)%u===0));return c}var Wt=ht(()=>{},(i,a)=>{i.setTime(+i+a)},(i,a)=>a-i);Wt.every=(i)=>{if(i=Math.floor(i),!isFinite(i)||!(i>0))return null;if(!(i>1))return Wt;return ht((a)=>{a.setTime(Math.floor(a/i)*i)},(a,s)=>{a.setTime(+a+s*i)},(a,s)=>(s-a)/i)};var Gr=Wt.range;var Yt=1000,wt=60000,Et=3600000,Bt=86400000,fe=604800000,er=2592000000,we=31536000000;var Dt=ht((i)=>{i.setTime(i-i.getMilliseconds())},(i,a)=>{i.setTime(+i+a*Yt)},(i,a)=>(a-i)/Yt,(i)=>i.getUTCSeconds()),Qr=Dt.range;var Pt=ht((i)=>{i.setTime(i-i.getMilliseconds()-i.getSeconds()*Yt)},(i,a)=>{i.setTime(+i+a*wt)},(i,a)=>(a-i)/wt,(i)=>i.getMinutes()),ti=Pt.range,Me=ht((i)=>{i.setUTCSeconds(0,0)},(i,a)=>{i.setTime(+i+a*wt)},(i,a)=>(a-i)/wt,(i)=>i.getUTCMinutes()),ei=Me.range;var Vt=ht((i)=>{i.setTime(i-i.getMilliseconds()-i.getSeconds()*Yt-i.getMinutes()*wt)},(i,a)=>{i.setTime(+i+a*Et)},(i,a)=>(a-i)/Et,(i)=>i.getHours()),ri=Vt.range,De=ht((i)=>{i.setUTCMinutes(0,0,0)},(i,a)=>{i.setTime(+i+a*Et)},(i,a)=>(a-i)/Et,(i)=>i.getUTCHours()),ni=De.range;var Ft=ht((i)=>i.setHours(0,0,0,0),(i,a)=>i.setDate(i.getDate()+a),(i,a)=>(a-i-(a.getTimezoneOffset()-i.getTimezoneOffset())*wt)/Bt,(i)=>i.getDate()-1),ii=Ft.range,de=ht((i)=>{i.setUTCHours(0,0,0,0)},(i,a)=>{i.setUTCDate(i.getUTCDate()+a)},(i,a)=>(a-i)/Bt,(i)=>i.getUTCDate()-1),ai=de.range,Ce=ht((i)=>{i.setUTCHours(0,0,0,0)},(i,a)=>{i.setUTCDate(i.getUTCDate()+a)},(i,a)=>(a-i)/Bt,(i)=>Math.floor(i/Bt)),si=Ce.range;function Xt(i){return ht((a)=>{a.setDate(a.getDate()-(a.getDay()+7-i)%7),a.setHours(0,0,0,0)},(a,s)=>{a.setDate(a.getDate()+s*7)},(a,s)=>(s-a-(s.getTimezoneOffset()-a.getTimezoneOffset())*wt)/fe)}var It=Xt(0),Zt=Xt(1),Se=Xt(2),_e=Xt(3),At=Xt(4),Ye=Xt(5),Fe=Xt(6),Jr=It.range,oi=Zt.range,ci=Se.range,ui=_e.range,li=At.range,fi=Ye.range,di=Fe.range;function qt(i){return ht((a)=>{a.setUTCDate(a.getUTCDate()-(a.getUTCDay()+7-i)%7),a.setUTCHours(0,0,0,0)},(a,s)=>{a.setUTCDate(a.getUTCDate()+s*7)},(a,s)=>(s-a)/fe)}var Gt=qt(0),ee=qt(1),Kr=qt(2),tn=qt(3),jt=qt(4),en=qt(5),rn=qt(6),nn=Gt.range,mi=ee.range,hi=Kr.range,yi=tn.range,gi=jt.range,ki=en.range,pi=rn.range;var zt=ht((i)=>{i.setDate(1),i.setHours(0,0,0,0)},(i,a)=>{i.setMonth(i.getMonth()+a)},(i,a)=>a.getMonth()-i.getMonth()+(a.getFullYear()-i.getFullYear())*12,(i)=>i.getMonth()),Ti=zt.range,Ie=ht((i)=>{i.setUTCDate(1),i.setUTCHours(0,0,0,0)},(i,a)=>{i.setUTCMonth(i.getUTCMonth()+a)},(i,a)=>a.getUTCMonth()-i.getUTCMonth()+(a.getUTCFullYear()-i.getUTCFullYear())*12,(i)=>i.getUTCMonth()),vi=Ie.range;var Ct=ht((i)=>{i.setMonth(0,1),i.setHours(0,0,0,0)},(i,a)=>{i.setFullYear(i.getFullYear()+a)},(i,a)=>a.getFullYear()-i.getFullYear(),(i)=>i.getFullYear());Ct.every=(i)=>!isFinite(i=Math.floor(i))||!(i>0)?null:ht((a)=>{a.setFullYear(Math.floor(a.getFullYear()/i)*i),a.setMonth(0,1),a.setHours(0,0,0,0)},(a,s)=>{a.setFullYear(a.getFullYear()+s*i)});var xi=Ct.range,Ut=ht((i)=>{i.setUTCMonth(0,1),i.setUTCHours(0,0,0,0)},(i,a)=>{i.setUTCFullYear(i.getUTCFullYear()+a)},(i,a)=>a.getUTCFullYear()-i.getUTCFullYear(),(i)=>i.getUTCFullYear());Ut.every=(i)=>!isFinite(i=Math.floor(i))||!(i>0)?null:ht((a)=>{a.setUTCFullYear(Math.floor(a.getUTCFullYear()/i)*i),a.setUTCMonth(0,1),a.setUTCHours(0,0,0,0)},(a,s)=>{a.setUTCFullYear(a.getUTCFullYear()+s*i)});var wi=Ut.range;function an(i,a,s,o,c,u){let k=[[Dt,1,Yt],[Dt,5,5*Yt],[Dt,15,15*Yt],[Dt,30,30*Yt],[u,1,wt],[u,5,5*wt],[u,15,15*wt],[u,30,30*wt],[c,1,Et],[c,3,3*Et],[c,6,6*Et],[c,12,12*Et],[o,1,Bt],[o,2,2*Bt],[s,1,fe],[a,1,er],[a,3,3*er],[i,1,we]];function U(R,O,it){let B=O<R;if(B)[R,O]=[O,R];let H=it&&typeof it.range==="function"?it:W(R,O,it),z=H?H.range(R,+O+1):[];return B?z.reverse():z}function W(R,O,it){let B=Math.abs(O-R)/it,H=tr(([,,N])=>N).right(k,B);if(H===k.length)return i.every(Mr(R/we,O/we,it));if(H===0)return Wt.every(Math.max(Mr(R,O,it),1));let[z,Z]=k[B/k[H-1][2]<k[H][2]/B?H-1:H];return z.every(Z)}return[U,W]}var[Mi,Di]=an(Ut,Ie,Gt,Ce,De,Me),[rr,nr]=an(Ct,zt,It,Ft,Vt,Pt);function ir(i){if(0<=i.y&&i.y<100){var a=new Date(-1,i.m,i.d,i.H,i.M,i.S,i.L);return a.setFullYear(i.y),a}return new Date(i.y,i.m,i.d,i.H,i.M,i.S,i.L)}function ar(i){if(0<=i.y&&i.y<100){var a=new Date(Date.UTC(-1,i.m,i.d,i.H,i.M,i.S,i.L));return a.setUTCFullYear(i.y),a}return new Date(Date.UTC(i.y,i.m,i.d,i.H,i.M,i.S,i.L))}function me(i,a,s){return{y:i,m:a,d:s,H:0,M:0,S:0,L:0}}function sr(i){var{dateTime:a,date:s,time:o,periods:c,days:u,shortDays:k,months:U,shortMonths:W}=i,R=he(c),O=ye(c),it=he(u),B=ye(u),H=he(k),z=ye(k),Z=he(U),N=ye(U),tt=he(W),mt=ye(W),st={a:_,A:G,b:y,B:Q,c:null,d:dn,e:dn,f:qi,g:aa,G:oa,H:Zi,I:ji,j:Xi,L:kn,m:Gi,M:Qi,p:D,q:yt,Q:yn,s:gn,S:Ji,u:Ki,U:ta,V:ea,w:ra,W:na,x:null,X:null,y:ia,Y:sa,Z:ca,"%":hn},j={a:M,A:q,b:J,B:lt,c:null,d:mn,e:mn,f:da,g:ba,G:Ma,H:ua,I:la,j:fa,L:Tn,m:ma,M:ha,p:dt,q:at,Q:yn,s:gn,S:ya,u:ga,U:ka,V:pa,w:Ta,W:va,x:null,X:null,y:xa,Y:wa,Z:Da,"%":hn},L={a:F,A,b:E,B:V,c:w,d:ln,e:ln,f:Vi,g:un,G:on,H:fn,I:fn,j:$i,L:Pi,m:Oi,M:Hi,p:nt,q:Ai,Q:Ri,s:Bi,S:Ni,u:Ii,U:Ui,V:Li,w:Yi,W:Wi,x:I,X:Y,y:un,Y:on,Z:Ei,"%":zi};st.x=x(s,st),st.X=x(o,st),st.c=x(a,st),j.x=x(s,j),j.X=x(o,j),j.c=x(a,j);function x(S,X){return function(et){var C=[],gt=-1,ot=0,ct=S.length,kt,Tt,bt;if(!(et instanceof Date))et=new Date(+et);while(++gt<ct)if(S.charCodeAt(gt)===37){if(C.push(S.slice(ot,gt)),(Tt=sn[kt=S.charAt(++gt)])!=null)kt=S.charAt(++gt);else Tt=kt==="e"?" ":"0";if(bt=X[kt])kt=bt(et,Tt);C.push(kt),ot=gt+1}return C.push(S.slice(ot,gt)),C.join("")}}function P(S,X){return function(et){var C=me(1900,void 0,1),gt=rt(C,S,et+="",0),ot,ct;if(gt!=et.length)return null;if("Q"in C)return new Date(C.Q);if("s"in C)return new Date(C.s*1000+("L"in C?C.L:0));if(X&&!("Z"in C))C.Z=0;if("p"in C)C.H=C.H%12+C.p*12;if(C.m===void 0)C.m="q"in C?C.q:0;if("V"in C){if(C.V<1||C.V>53)return null;if(!("w"in C))C.w=1;if("Z"in C)ot=ar(me(C.y,0,1)),ct=ot.getUTCDay(),ot=ct>4||ct===0?ee.ceil(ot):ee(ot),ot=de.offset(ot,(C.V-1)*7),C.y=ot.getUTCFullYear(),C.m=ot.getUTCMonth(),C.d=ot.getUTCDate()+(C.w+6)%7;else ot=ir(me(C.y,0,1)),ct=ot.getDay(),ot=ct>4||ct===0?Zt.ceil(ot):Zt(ot),ot=Ft.offset(ot,(C.V-1)*7),C.y=ot.getFullYear(),C.m=ot.getMonth(),C.d=ot.getDate()+(C.w+6)%7}else if("W"in C||"U"in C){if(!("w"in C))C.w="u"in C?C.u%7:("W"in C)?1:0;ct="Z"in C?ar(me(C.y,0,1)).getUTCDay():ir(me(C.y,0,1)).getDay(),C.m=0,C.d="W"in C?(C.w+6)%7+C.W*7-(ct+5)%7:C.w+C.U*7-(ct+6)%7}if("Z"in C)return C.H+=C.Z/100|0,C.M+=C.Z%100,ar(C);return ir(C)}}function rt(S,X,et,C){var gt=0,ot=X.length,ct=et.length,kt,Tt;while(gt<ot){if(C>=ct)return-1;if(kt=X.charCodeAt(gt++),kt===37){if(kt=X.charAt(gt++),Tt=L[kt in sn?X.charAt(gt++):kt],!Tt||(C=Tt(S,et,C))<0)return-1}else if(kt!=et.charCodeAt(C++))return-1}return C}function nt(S,X,et){var C=R.exec(X.slice(et));return C?(S.p=O.get(C[0].toLowerCase()),et+C[0].length):-1}function F(S,X,et){var C=H.exec(X.slice(et));return C?(S.w=z.get(C[0].toLowerCase()),et+C[0].length):-1}function A(S,X,et){var C=it.exec(X.slice(et));return C?(S.w=B.get(C[0].toLowerCase()),et+C[0].length):-1}function E(S,X,et){var C=tt.exec(X.slice(et));return C?(S.m=mt.get(C[0].toLowerCase()),et+C[0].length):-1}function V(S,X,et){var C=Z.exec(X.slice(et));return C?(S.m=N.get(C[0].toLowerCase()),et+C[0].length):-1}function w(S,X,et){return rt(S,a,X,et)}function I(S,X,et){return rt(S,s,X,et)}function Y(S,X,et){return rt(S,o,X,et)}function _(S){return k[S.getDay()]}function G(S){return u[S.getDay()]}function y(S){return W[S.getMonth()]}function Q(S){return U[S.getMonth()]}function D(S){return c[+(S.getHours()>=12)]}function yt(S){return 1+~~(S.getMonth()/3)}function M(S){return k[S.getUTCDay()]}function q(S){return u[S.getUTCDay()]}function J(S){return W[S.getUTCMonth()]}function lt(S){return U[S.getUTCMonth()]}function dt(S){return c[+(S.getUTCHours()>=12)]}function at(S){return 1+~~(S.getUTCMonth()/3)}return{format:function(S){var X=x(S+="",st);return X.toString=function(){return S},X},parse:function(S){var X=P(S+="",!1);return X.toString=function(){return S},X},utcFormat:function(S){var X=x(S+="",j);return X.toString=function(){return S},X},utcParse:function(S){var X=P(S+="",!0);return X.toString=function(){return S},X}}}var sn={"-":"",_:" ","0":"0"},xt=/^\s*\d+/,Ci=/^%/,Si=/[\\^$*+?|[\]().{}]/g;function ut(i,a,s){var o=i<0?"-":"",c=(o?-i:i)+"",u=c.length;return o+(u<s?Array(s-u+1).join(a)+c:c)}function _i(i){return i.replace(Si,"\\$&")}function he(i){return new RegExp("^(?:"+i.map(_i).join("|")+")","i")}function ye(i){return new Map(i.map((a,s)=>[a.toLowerCase(),s]))}function Yi(i,a,s){var o=xt.exec(a.slice(s,s+1));return o?(i.w=+o[0],s+o[0].length):-1}function Ii(i,a,s){var o=xt.exec(a.slice(s,s+1));return o?(i.u=+o[0],s+o[0].length):-1}function Ui(i,a,s){var o=xt.exec(a.slice(s,s+2));return o?(i.U=+o[0],s+o[0].length):-1}function Li(i,a,s){var o=xt.exec(a.slice(s,s+2));return o?(i.V=+o[0],s+o[0].length):-1}function Wi(i,a,s){var o=xt.exec(a.slice(s,s+2));return o?(i.W=+o[0],s+o[0].length):-1}function on(i,a,s){var o=xt.exec(a.slice(s,s+4));return o?(i.y=+o[0],s+o[0].length):-1}function un(i,a,s){var o=xt.exec(a.slice(s,s+2));return o?(i.y=+o[0]+(+o[0]>68?1900:2000),s+o[0].length):-1}function Ei(i,a,s){var o=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(a.slice(s,s+6));return o?(i.Z=o[1]?0:-(o[2]+(o[3]||"00")),s+o[0].length):-1}function Ai(i,a,s){var o=xt.exec(a.slice(s,s+1));return o?(i.q=o[0]*3-3,s+o[0].length):-1}function Oi(i,a,s){var o=xt.exec(a.slice(s,s+2));return o?(i.m=o[0]-1,s+o[0].length):-1}function ln(i,a,s){var o=xt.exec(a.slice(s,s+2));return o?(i.d=+o[0],s+o[0].length):-1}function $i(i,a,s){var o=xt.exec(a.slice(s,s+3));return o?(i.m=0,i.d=+o[0],s+o[0].length):-1}function fn(i,a,s){var o=xt.exec(a.slice(s,s+2));return o?(i.H=+o[0],s+o[0].length):-1}function Hi(i,a,s){var o=xt.exec(a.slice(s,s+2));return o?(i.M=+o[0],s+o[0].length):-1}function Ni(i,a,s){var o=xt.exec(a.slice(s,s+2));return o?(i.S=+o[0],s+o[0].length):-1}function Pi(i,a,s){var o=xt.exec(a.slice(s,s+3));return o?(i.L=+o[0],s+o[0].length):-1}function Vi(i,a,s){var o=xt.exec(a.slice(s,s+6));return o?(i.L=Math.floor(o[0]/1000),s+o[0].length):-1}function zi(i,a,s){var o=Ci.exec(a.slice(s,s+1));return o?s+o[0].length:-1}function Ri(i,a,s){var o=xt.exec(a.slice(s));return o?(i.Q=+o[0],s+o[0].length):-1}function Bi(i,a,s){var o=xt.exec(a.slice(s));return o?(i.s=+o[0],s+o[0].length):-1}function dn(i,a){return ut(i.getDate(),a,2)}function Zi(i,a){return ut(i.getHours(),a,2)}function ji(i,a){return ut(i.getHours()%12||12,a,2)}function Xi(i,a){return ut(1+Ft.count(Ct(i),i),a,3)}function kn(i,a){return ut(i.getMilliseconds(),a,3)}function qi(i,a){return kn(i,a)+"000"}function Gi(i,a){return ut(i.getMonth()+1,a,2)}function Qi(i,a){return ut(i.getMinutes(),a,2)}function Ji(i,a){return ut(i.getSeconds(),a,2)}function Ki(i){var a=i.getDay();return a===0?7:a}function ta(i,a){return ut(It.count(Ct(i)-1,i),a,2)}function pn(i){var a=i.getDay();return a>=4||a===0?At(i):At.ceil(i)}function ea(i,a){return i=pn(i),ut(At.count(Ct(i),i)+(Ct(i).getDay()===4),a,2)}function ra(i){return i.getDay()}function na(i,a){return ut(Zt.count(Ct(i)-1,i),a,2)}function ia(i,a){return ut(i.getFullYear()%100,a,2)}function aa(i,a){return i=pn(i),ut(i.getFullYear()%100,a,2)}function sa(i,a){return ut(i.getFullYear()%1e4,a,4)}function oa(i,a){var s=i.getDay();return i=s>=4||s===0?At(i):At.ceil(i),ut(i.getFullYear()%1e4,a,4)}function ca(i){var a=i.getTimezoneOffset();return(a>0?"-":(a*=-1,"+"))+ut(a/60|0,"0",2)+ut(a%60,"0",2)}function mn(i,a){return ut(i.getUTCDate(),a,2)}function ua(i,a){return ut(i.getUTCHours(),a,2)}function la(i,a){return ut(i.getUTCHours()%12||12,a,2)}function fa(i,a){return ut(1+de.count(Ut(i),i),a,3)}function Tn(i,a){return ut(i.getUTCMilliseconds(),a,3)}function da(i,a){return Tn(i,a)+"000"}function ma(i,a){return ut(i.getUTCMonth()+1,a,2)}function ha(i,a){return ut(i.getUTCMinutes(),a,2)}function ya(i,a){return ut(i.getUTCSeconds(),a,2)}function ga(i){var a=i.getUTCDay();return a===0?7:a}function ka(i,a){return ut(Gt.count(Ut(i)-1,i),a,2)}function vn(i){var a=i.getUTCDay();return a>=4||a===0?jt(i):jt.ceil(i)}function pa(i,a){return i=vn(i),ut(jt.count(Ut(i),i)+(Ut(i).getUTCDay()===4),a,2)}function Ta(i){return i.getUTCDay()}function va(i,a){return ut(ee.count(Ut(i)-1,i),a,2)}function xa(i,a){return ut(i.getUTCFullYear()%100,a,2)}function ba(i,a){return i=vn(i),ut(i.getUTCFullYear()%100,a,2)}function wa(i,a){return ut(i.getUTCFullYear()%1e4,a,4)}function Ma(i,a){var s=i.getUTCDay();return i=s>=4||s===0?jt(i):jt.ceil(i),ut(i.getUTCFullYear()%1e4,a,4)}function Da(){return"+0000"}function hn(){return"%"}function yn(i){return+i}function gn(i){return Math.floor(+i/1000)}var re,Qt,xn,bn,wn;or({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 or(i){return re=sr(i),Qt=re.format,xn=re.parse,bn=re.utcFormat,wn=re.utcParse,re}function Ca(i){return new Date(i)}function Sa(i){return i instanceof Date?+i:+new Date(+i)}function Mn(i,a,s,o,c,u,k,U,W,R){var O=Nr(),{invert:it,domain:B}=O,H=R(".%L"),z=R(":%S"),Z=R("%I:%M"),N=R("%I %p"),tt=R("%a %d"),mt=R("%b %d"),st=R("%B"),j=R("%Y");function L(x){return(W(x)<x?H:U(x)<x?z:k(x)<x?Z:u(x)<x?N:o(x)<x?c(x)<x?tt:mt:s(x)<x?st:j)(x)}return O.invert=function(x){return new Date(it(x))},O.domain=function(x){return arguments.length?B(Array.from(x,Sa)):B().map(Ca)},O.ticks=function(x){var P=B();return i(P[0],P[P.length-1],x==null?10:x)},O.tickFormat=function(x,P){return P==null?L:R(P)},O.nice=function(x){var P=B();if(!x||typeof x.range!=="function")x=a(P[0],P[P.length-1],x==null?10:x);return x?B(Qe(P,x)):O},O.copy=function(){return cn(O,Mn(i,a,s,o,c,u,k,U,W,R))},O}function cr(){return Ue.apply(Mn(rr,nr,Ct,zt,It,Ft,Vt,Pt,Dt,Qt).domain([new Date(2000,0,1),new Date(2000,0,2)]),arguments)}var Un=K(pt(),1),St=K(Ln(),1),Wn=K(Dn(),1),En=K(Cn(),1),An=K(Sn(),1),ie=K(Ln(),1),Zn=K(_n(),1);var pr=function(){var i=e(function(V,w,I,Y){for(I=I||{},Y=V.length;Y--;I[V[Y]]=w);return I},"o"),a=[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],s=[1,26],o=[1,27],c=[1,28],u=[1,29],k=[1,30],U=[1,31],W=[1,32],R=[1,33],O=[1,34],it=[1,9],B=[1,10],H=[1,11],z=[1,12],Z=[1,13],N=[1,14],tt=[1,15],mt=[1,16],st=[1,19],j=[1,20],L=[1,21],x=[1,22],P=[1,23],rt=[1,25],nt=[1,35],F={trace:e(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:e(function(w,I,Y,_,G,y,Q){var D=y.length-1;switch(G){case 1:return y[D-1];case 2:this.$=[];break;case 3:y[D-1].push(y[D]),this.$=y[D-1];break;case 4:case 5:this.$=y[D];break;case 6:case 7:this.$=[];break;case 8:_.setWeekday("monday");break;case 9:_.setWeekday("tuesday");break;case 10:_.setWeekday("wednesday");break;case 11:_.setWeekday("thursday");break;case 12:_.setWeekday("friday");break;case 13:_.setWeekday("saturday");break;case 14:_.setWeekday("sunday");break;case 15:_.setWeekend("friday");break;case 16:_.setWeekend("saturday");break;case 17:_.setDateFormat(y[D].substr(11)),this.$=y[D].substr(11);break;case 18:_.enableInclusiveEndDates(),this.$=y[D].substr(18);break;case 19:_.TopAxis(),this.$=y[D].substr(8);break;case 20:_.setAxisFormat(y[D].substr(11)),this.$=y[D].substr(11);break;case 21:_.setTickInterval(y[D].substr(13)),this.$=y[D].substr(13);break;case 22:_.setExcludes(y[D].substr(9)),this.$=y[D].substr(9);break;case 23:_.setIncludes(y[D].substr(9)),this.$=y[D].substr(9);break;case 24:_.setTodayMarker(y[D].substr(12)),this.$=y[D].substr(12);break;case 27:_.setDiagramTitle(y[D].substr(6)),this.$=y[D].substr(6);break;case 28:this.$=y[D].trim(),_.setAccTitle(this.$);break;case 29:case 30:this.$=y[D].trim(),_.setAccDescription(this.$);break;case 31:_.addSection(y[D].substr(8)),this.$=y[D].substr(8);break;case 33:_.addTask(y[D-1],y[D]),this.$="task";break;case 34:this.$=y[D-1],_.setClickEvent(y[D-1],y[D],null);break;case 35:this.$=y[D-2],_.setClickEvent(y[D-2],y[D-1],y[D]);break;case 36:this.$=y[D-2],_.setClickEvent(y[D-2],y[D-1],null),_.setLink(y[D-2],y[D]);break;case 37:this.$=y[D-3],_.setClickEvent(y[D-3],y[D-2],y[D-1]),_.setLink(y[D-3],y[D]);break;case 38:this.$=y[D-2],_.setClickEvent(y[D-2],y[D],null),_.setLink(y[D-2],y[D-1]);break;case 39:this.$=y[D-3],_.setClickEvent(y[D-3],y[D-1],y[D]),_.setLink(y[D-3],y[D-2]);break;case 40:this.$=y[D-1],_.setLink(y[D-1],y[D]);break;case 41:case 47:this.$=y[D-1]+" "+y[D];break;case 42:case 43:case 45:this.$=y[D-2]+" "+y[D-1]+" "+y[D];break;case 44:case 46:this.$=y[D-3]+" "+y[D-2]+" "+y[D-1]+" "+y[D];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},i(a,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:s,13:o,14:c,15:u,16:k,17:U,18:W,19:18,20:R,21:O,22:it,23:B,24:H,25:z,26:Z,27:N,28:tt,29:mt,30:st,31:j,33:L,35:x,36:P,37:24,38:rt,40:nt},i(a,[2,7],{1:[2,1]}),i(a,[2,3]),{9:36,11:17,12:s,13:o,14:c,15:u,16:k,17:U,18:W,19:18,20:R,21:O,22:it,23:B,24:H,25:z,26:Z,27:N,28:tt,29:mt,30:st,31:j,33:L,35:x,36:P,37:24,38:rt,40:nt},i(a,[2,5]),i(a,[2,6]),i(a,[2,17]),i(a,[2,18]),i(a,[2,19]),i(a,[2,20]),i(a,[2,21]),i(a,[2,22]),i(a,[2,23]),i(a,[2,24]),i(a,[2,25]),i(a,[2,26]),i(a,[2,27]),{32:[1,37]},{34:[1,38]},i(a,[2,30]),i(a,[2,31]),i(a,[2,32]),{39:[1,39]},i(a,[2,8]),i(a,[2,9]),i(a,[2,10]),i(a,[2,11]),i(a,[2,12]),i(a,[2,13]),i(a,[2,14]),i(a,[2,15]),i(a,[2,16]),{41:[1,40],43:[1,41]},i(a,[2,4]),i(a,[2,28]),i(a,[2,29]),i(a,[2,33]),i(a,[2,34],{42:[1,42],43:[1,43]}),i(a,[2,40],{41:[1,44]}),i(a,[2,35],{43:[1,45]}),i(a,[2,36]),i(a,[2,38],{42:[1,46]}),i(a,[2,37]),i(a,[2,39])],defaultActions:{},parseError:e(function(w,I){if(I.recoverable)this.trace(w);else{var Y=Error(w);throw Y.hash=I,Y}},"parseError"),parse:e(function(w){var I=this,Y=[0],_=[],G=[null],y=[],Q=this.table,D="",yt=0,M=0,q=0,J=2,lt=1,dt=y.slice.call(arguments,1),at=Object.create(this.lexer),S={yy:{}};for(var X in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,X))S.yy[X]=this.yy[X];if(at.setInput(w,S.yy),S.yy.lexer=at,S.yy.parser=this,typeof at.yylloc>"u")at.yylloc={};var et=at.yylloc;y.push(et);var C=at.options&&at.options.ranges;if(typeof S.yy.parseError==="function")this.parseError=S.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function gt(_t){Y.length=Y.length-2*_t,G.length=G.length-_t,y.length=y.length-_t}e(gt,"popStack");function ot(){var _t=_.pop()||at.lex()||lt;if(typeof _t!=="number"){if(_t instanceof Array)_=_t,_t=_.pop();_t=I.symbols_[_t]||_t}return _t}e(ot,"lex");var ct,kt,Tt,bt,ps,$e,Kt={},ke,$t,Wr,pe;while(!0){if(Tt=Y[Y.length-1],this.defaultActions[Tt])bt=this.defaultActions[Tt];else{if(ct===null||typeof ct>"u")ct=ot();bt=Q[Tt]&&Q[Tt][ct]}if(typeof bt>"u"||!bt.length||!bt[0]){var He="";pe=[];for(ke in Q[Tt])if(this.terminals_[ke]&&ke>J)pe.push("'"+this.terminals_[ke]+"'");if(at.showPosition)He="Parse error on line "+(yt+1)+`:
|
|
2
2
|
`+at.showPosition()+`
|
|
3
3
|
Expecting `+pe.join(", ")+", got '"+(this.terminals_[ct]||ct)+"'";else He="Parse error on line "+(yt+1)+": Unexpected "+(ct==lt?"end of input":"'"+(this.terminals_[ct]||ct)+"'");this.parseError(He,{text:at.match,token:this.terminals_[ct]||ct,line:at.yylineno,loc:et,expected:pe})}if(bt[0]instanceof Array&&bt.length>1)throw Error("Parse Error: multiple actions possible at state: "+Tt+", token: "+ct);switch(bt[0]){case 1:if(Y.push(ct),G.push(at.yytext),y.push(at.yylloc),Y.push(bt[1]),ct=null,!kt){if(M=at.yyleng,D=at.yytext,yt=at.yylineno,et=at.yylloc,q>0)q--}else ct=kt,kt=null;break;case 2:if($t=this.productions_[bt[1]][1],Kt.$=G[G.length-$t],Kt._$={first_line:y[y.length-($t||1)].first_line,last_line:y[y.length-1].last_line,first_column:y[y.length-($t||1)].first_column,last_column:y[y.length-1].last_column},C)Kt._$.range=[y[y.length-($t||1)].range[0],y[y.length-1].range[1]];if($e=this.performAction.apply(Kt,[D,M,yt,S.yy,bt[1],G,y].concat(dt)),typeof $e<"u")return $e;if($t)Y=Y.slice(0,-1*$t*2),G=G.slice(0,-1*$t),y=y.slice(0,-1*$t);Y.push(this.productions_[bt[1]][0]),G.push(Kt.$),y.push(Kt._$),Wr=Q[Y[Y.length-2]][Y[Y.length-1]],Y.push(Wr);break;case 3:return!0}}return!0},"parse")},A=function(){var V={EOF:1,parseError:e(function(I,Y){if(this.yy.parser)this.yy.parser.parseError(I,Y);else throw Error(I)},"parseError"),setInput:e(function(w,I){if(this.yy=I||this.yy||{},this._input=w,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges)this.yylloc.range=[0,0];return this.offset=0,this},"setInput"),input:e(function(){var w=this._input[0];this.yytext+=w,this.yyleng++,this.offset++,this.match+=w,this.matched+=w;var I=w.match(/(?:\r\n?|\n).*/g);if(I)this.yylineno++,this.yylloc.last_line++;else this.yylloc.last_column++;if(this.options.ranges)this.yylloc.range[1]++;return this._input=this._input.slice(1),w},"input"),unput:e(function(w){var I=w.length,Y=w.split(/(?:\r\n?|\n)/g);this._input=w+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-I),this.offset-=I;var _=this.match.split(/(?:\r\n?|\n)/g);if(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),Y.length-1)this.yylineno-=Y.length-1;var G=this.yylloc.range;if(this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:Y?(Y.length===_.length?this.yylloc.first_column:0)+_[_.length-Y.length].length-Y[0].length:this.yylloc.first_column-I},this.options.ranges)this.yylloc.range=[G[0],G[0]+this.yyleng-I];return this.yyleng=this.yytext.length,this},"unput"),more:e(function(){return this._more=!0,this},"more"),reject:e(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:e(function(w){this.unput(this.match.slice(w))},"less"),pastInput:e(function(){var w=this.matched.substr(0,this.matched.length-this.match.length);return(w.length>20?"...":"")+w.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:e(function(){var w=this.match;if(w.length<20)w+=this._input.substr(0,20-w.length);return(w.substr(0,20)+(w.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:e(function(){var w=this.pastInput(),I=Array(w.length+1).join("-");return w+this.upcomingInput()+`
|
|
5
5
|
`+I+"^"},"showPosition"),test_match:e(function(w,I){var Y,_,G;if(this.options.backtrack_lexer){if(G={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges)G.yylloc.range=this.yylloc.range.slice(0)}if(_=w[0].match(/(?:\r\n?|\n).*/g),_)this.yylineno+=_.length;if(this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:_?_[_.length-1].length-_[_.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+w[0].length},this.yytext+=w[0],this.match+=w[0],this.matches=w,this.yyleng=this.yytext.length,this.options.ranges)this.yylloc.range=[this.offset,this.offset+=this.yyleng];if(this._more=!1,this._backtrack=!1,this._input=this._input.slice(w[0].length),this.matched+=w[0],Y=this.performAction.call(this,this.yy,this,I,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input)this.done=!1;if(Y)return Y;else if(this._backtrack){for(var y in G)this[y]=G[y];return!1}return!1},"test_match"),next:e(function(){if(this.done)return this.EOF;if(!this._input)this.done=!0;var w,I,Y,_;if(!this._more)this.yytext="",this.match="";var G=this._currentRules();for(var y=0;y<G.length;y++)if(Y=this._input.match(this.rules[G[y]]),Y&&(!I||Y[0].length>I[0].length)){if(I=Y,_=y,this.options.backtrack_lexer)if(w=this.test_match(Y,G[y]),w!==!1)return w;else if(this._backtrack){I=!1;continue}else return!1;else if(!this.options.flex)break}if(I){if(w=this.test_match(I,G[_]),w!==!1)return w;return!1}if(this._input==="")return this.EOF;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
6
|
-
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:e(function(){var I=this.next();if(I)return I;else return this.lex()},"lex"),begin:e(function(I){this.conditionStack.push(I)},"begin"),popState:e(function(){var I=this.conditionStack.length-1;if(I>0)return this.conditionStack.pop();else return this.conditionStack[0]},"popState"),_currentRules:e(function(){if(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1])return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules;else return this.conditions.INITIAL.rules},"_currentRules"),topState:e(function(I){if(I=this.conditionStack.length-1-Math.abs(I||0),I>=0)return this.conditionStack[I];else return"INITIAL"},"topState"),pushState:e(function(I){this.begin(I)},"pushState"),stateStackSize:e(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:e(function(I,Y,_,G){var y=G;switch(_){case 0:return this.begin("open_directive"),"open_directive";break;case 1:return this.begin("acc_title"),31;break;case 2:return this.popState(),"acc_title_value";break;case 3:return this.begin("acc_descr"),33;break;case 4:return this.popState(),"acc_descr_value";break;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}}};return V}();F.lexer=A;function E(){this.yy={}}return e(E,"Parser"),E.prototype=F,F.Parser=E,new E}();pr.parser=pr;var _a=pr;St.default.extend(Wn.default);St.default.extend(En.default);St.default.extend(An.default);var Yn={friday:5,saturday:6},Ot="",wr="",Dr=void 0,Cr="",oe=[],ue=[],Sr=new Map,_r=[],Ee=[],le="",Yr="",On=["active","done","crit","milestone","vert"],Fr=[],ne="",ge=!1,Ir=!1,Ur="sunday",Ae="saturday",Tr=0,Ya=e(function(){_r=[],Ee=[],le="",Fr=[],Le=0,br=void 0,We=void 0,vt=[],Ot="",wr="",Yr="",Dr=void 0,Cr="",oe=[],ue=[],ge=!1,Ir=!1,Tr=0,Sr=new Map,ne="",d(),Ur="sunday",Ae="saturday"},"clear"),Fa=e(function(i){ne=i},"setDiagramId"),Ia=e(function(i){wr=i},"setAxisFormat"),Ua=e(function(){return wr},"getAxisFormat"),La=e(function(i){Dr=i},"setTickInterval"),Wa=e(function(){return Dr},"getTickInterval"),Ea=e(function(i){Cr=i},"setTodayMarker"),Aa=e(function(){return Cr},"getTodayMarker"),Oa=e(function(i){Ot=i},"setDateFormat"),$a=e(function(){ge=!0},"enableInclusiveEndDates"),Ha=e(function(){return ge},"endDatesAreInclusive"),Na=e(function(){Ir=!0},"enableTopAxis"),Pa=e(function(){return Ir},"topAxisEnabled"),Va=e(function(i){Yr=i},"setDisplayMode"),za=e(function(){return Yr},"getDisplayMode"),Ra=e(function(){return Ot},"getDateFormat"),$n=e((i,a)=>{let s=a.toLowerCase().split(/[\s,]+/).filter((o)=>o!=="");return[...new Set([...i,...s])]},"mergeTokens"),Ba=e(function(i){oe=$n(oe,i)},"setIncludes"),Za=e(function(){return oe},"getIncludes"),ja=e(function(i){ue=$n(ue,i)},"setExcludes"),Xa=e(function(){return ue},"getExcludes"),qa=e(function(){return Sr},"getLinks"),Ga=e(function(i){le=i,_r.push(i)},"addSection"),Qa=e(function(){return _r},"getSections"),Ja=e(function(){let i=Fn(),a=10,s=0;while(!i&&s<a)i=Fn(),s++;return Ee=vt,Ee},"getTasks"),Hn=e(function(i,a,s,o){let c=i.format(a.trim()),u=i.format("YYYY-MM-DD");if(o.includes(c)||o.includes(u))return!1;if(s.includes("weekends")&&(i.isoWeekday()===Yn[Ae]||i.isoWeekday()===Yn[Ae]+1))return!0;if(s.includes(i.format("dddd").toLowerCase()))return!0;return s.includes(c)||s.includes(u)},"isInvalidDate"),Ka=e(function(i){Ur=i},"setWeekday"),ts=e(function(){return Ur},"getWeekday"),es=e(function(i){Ae=i},"setWeekend"),Nn=e(function(i,a,s,o){if(!s.length||i.manualEndTime)return;let c;if(i.startTime instanceof Date)c=St.default(i.startTime);else c=St.default(i.startTime,a,!0);c=c.add(1,"d");let u;if(i.endTime instanceof Date)u=St.default(i.endTime);else u=St.default(i.endTime,a,!0);let[T,U]=rs(c,u,a,s,o);i.endTime=T.toDate(),i.renderEndTime=U},"checkTaskDates"),rs=e(function(i,a,s,o,c){let u=!1,T=null,U=a.add(1e4,"d");while(i<=a){if(!u)T=a.toDate();if(u=Hn(i,s,o,c),u){if(a=a.add(1,"d"),a>U)throw Error("Failed to find a valid date that was not excluded by `excludes` after 10,000 iterations.")}i=i.add(1,"d")}return[a,T]},"fixTaskDates"),xr=e(function(i,a,s){if(s=s.trim(),e((U)=>{let W=U.trim();return W==="x"||W==="X"},"isTimestampFormat")(a)&&/^\d+$/.test(s))return new Date(Number(s));let u=/^after\s+(?<ids>[\d\w- ]+)/.exec(s);if(u!==null){let U=null;for(let R of u.groups.ids.split(" ")){let O=Jt(R);if(O!==void 0&&(!U||O.endTime>U.endTime))U=O}if(U)return U.endTime;let W=new Date;return W.setHours(0,0,0,0),W}let T=St.default(s,a.trim(),!0);if(T.isValid())return T.toDate();else{t.debug("Invalid date:"+s),t.debug("With date format:"+a.trim());let U=new Date(s);if(U===void 0||isNaN(U.getTime())||U.getFullYear()<-1e4||U.getFullYear()>1e4)throw Error("Invalid date:"+s);return U}},"getStartDate"),Pn=e(function(i){let a=/^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(i.trim());if(a!==null)return[Number.parseFloat(a[1]),a[2]];return[NaN,"ms"]},"parseDuration"),Vn=e(function(i,a,s,o=!1){s=s.trim();let u=/^until\s+(?<ids>[\d\w- ]+)/.exec(s);if(u!==null){let O=null;for(let B of u.groups.ids.split(" ")){let H=Jt(B);if(H!==void 0&&(!O||H.startTime<O.startTime))O=H}if(O)return O.startTime;let it=new Date;return it.setHours(0,0,0,0),it}let T=St.default(s,a.trim(),!0);if(T.isValid()){if(o)T=T.add(1,"d");return T.toDate()}let U=St.default(i),[W,R]=Pn(s);if(!Number.isNaN(W)){let O=U.add(W,R);if(O.isValid())U=O}return U.toDate()},"getEndDate"),Le=0,ae=e(function(i){if(i===void 0)return Le=Le+1,"task"+Le;return i},"parseId"),ns=e(function(i,a){let s;if(a.substr(0,1)===":")s=a.substr(1,a.length);else s=a;let o=s.split(","),c={};Lr(o,c,On);for(let T=0;T<o.length;T++)o[T]=o[T].trim();let u="";switch(o.length){case 1:c.id=ae(),c.startTime=i.endTime,u=o[0];break;case 2:c.id=ae(),c.startTime=xr(void 0,Ot,o[0]),u=o[1];break;case 3:c.id=ae(o[0]),c.startTime=xr(void 0,Ot,o[1]),u=o[2];break;default:}if(u)c.endTime=Vn(c.startTime,Ot,u,ge),c.manualEndTime=St.default(u,"YYYY-MM-DD",!0).isValid(),Nn(c,Ot,ue,oe);return c},"compileData"),is=e(function(i,a){let s;if(a.substr(0,1)===":")s=a.substr(1,a.length);else s=a;let o=s.split(","),c={};Lr(o,c,On);for(let u=0;u<o.length;u++)o[u]=o[u].trim();switch(o.length){case 1:c.id=ae(),c.startTime={type:"prevTaskEnd",id:i},c.endTime={data:o[0]};break;case 2:c.id=ae(),c.startTime={type:"getStartDate",startData:o[0]},c.endTime={data:o[1]};break;case 3:c.id=ae(o[0]),c.startTime={type:"getStartDate",startData:o[1]},c.endTime={data:o[2]};break;default:}return c},"parseData"),br,We,vt=[],zn={},as=e(function(i,a){let s={section:le,type:le,processed:!1,manualEndTime:!1,renderEndTime:null,raw:{data:a},task:i,classes:[]},o=is(We,a);if(s.raw.startTime=o.startTime,s.raw.endTime=o.endTime,s.id=o.id,s.prevTaskId=We,s.active=o.active,s.done=o.done,s.crit=o.crit,s.milestone=o.milestone,s.vert=o.vert,s.vert)s.order=-1;else s.order=Tr,Tr++;let c=vt.push(s);We=s.id,zn[s.id]=c-1},"addTask"),Jt=e(function(i){let a=zn[i];return vt[a]},"findTaskById"),ss=e(function(i,a){let s={section:le,type:le,description:i,task:i,classes:[]},o=ns(br,a);s.startTime=o.startTime,s.endTime=o.endTime,s.id=o.id,s.active=o.active,s.done=o.done,s.crit=o.crit,s.milestone=o.milestone,s.vert=o.vert,br=s,Ee.push(s)},"addTaskOrg"),Fn=e(function(){let i=e(function(s){let o=vt[s],c="";switch(vt[s].raw.startTime.type){case"prevTaskEnd":{let u=Jt(o.prevTaskId);o.startTime=u.endTime;break}case"getStartDate":if(c=xr(void 0,Ot,vt[s].raw.startTime.startData),c)vt[s].startTime=c;break}if(vt[s].startTime){if(vt[s].endTime=Vn(vt[s].startTime,Ot,vt[s].raw.endTime.data,ge),vt[s].endTime)vt[s].processed=!0,vt[s].manualEndTime=St.default(vt[s].raw.endTime.data,"YYYY-MM-DD",!0).isValid(),Nn(vt[s],Ot,ue,oe)}return vt[s].processed},"compileTask"),a=!0;for(let[s,o]of vt.entries())i(s),a=a&&o.processed;return a},"compileTasks"),os=e(function(i,a){let s=a;if(r().securityLevel!=="loose")s=Un.sanitizeUrl(a);i.split(",").forEach(function(o){if(Jt(o)!==void 0)Bn(o,()=>{window.open(s,"_self")}),Sr.set(o,s)}),Rn(i,"clickable")},"setLink"),Rn=e(function(i,a){i.split(",").forEach(function(s){let o=Jt(s);if(o!==void 0)o.classes.push(a)})},"setClass"),cs=e(function(i,a,s){if(r().securityLevel!=="loose")return;if(a===void 0)return;let o=[];if(typeof s==="string"){o=s.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let u=0;u<o.length;u++){let T=o[u].trim();if(T.startsWith('"')&&T.endsWith('"'))T=T.substr(1,T.length-2);o[u]=T}}if(o.length===0)o.push(i);if(Jt(i)!==void 0)Bn(i,()=>{h.runFunc(a,...o)})},"setClickFun"),Bn=e(function(i,a){Fr.push(function(){let s=ne?`${ne}-${i}`:i,o=document.querySelector(`[id="${s}"]`);if(o!==null)o.addEventListener("click",function(){a()})},function(){let s=ne?`${ne}-${i}`:i,o=document.querySelector(`[id="${s}-text"]`);if(o!==null)o.addEventListener("click",function(){a()})})},"pushFun"),us=e(function(i,a,s){i.split(",").forEach(function(o){cs(o,a,s)}),Rn(i,"clickable")},"setClickEvent"),ls=e(function(i){Fr.forEach(function(a){a(i)})},"bindFunctions"),fs={getConfig:e(()=>r().gantt,"getConfig"),clear:Ya,setDateFormat:Oa,getDateFormat:Ra,enableInclusiveEndDates:$a,endDatesAreInclusive:Ha,enableTopAxis:Na,topAxisEnabled:Pa,setAxisFormat:Ia,getAxisFormat:Ua,setTickInterval:La,getTickInterval:Wa,setTodayMarker:Ea,getTodayMarker:Aa,setAccTitle:f,getAccTitle:p,setDiagramTitle:b,getDiagramTitle:v,setDiagramId:Fa,setDisplayMode:Va,getDisplayMode:za,setAccDescription:m,getAccDescription:g,addSection:Ga,getSections:Qa,getTasks:Ja,addTask:as,findTaskById:Jt,addTaskOrg:ss,setIncludes:Ba,getIncludes:Za,setExcludes:ja,getExcludes:Xa,setClickEvent:us,setLink:os,getLinks:qa,bindFunctions:ls,parseDuration:Pn,isInvalidDate:Hn,setWeekday:Ka,getWeekday:ts,setWeekend:es};function Lr(i,a,s){let o=!0;while(o)o=!1,s.forEach(function(c){let u="^\\s*"+c+"\\s*$",T=new RegExp(u);if(i[0].match(T))a[c]=!0,i.shift(1),o=!0})}e(Lr,"getTaskTags");ie.default.extend(Zn.default);var ds=e(function(){t.debug("Something is calling, setConf, remove the call")},"setConf"),In={monday:Zt,tuesday:Se,wednesday:_e,thursday:At,friday:Ye,saturday:Fe,sunday:It},ms=e((i,a)=>{let s=[...i].map(()=>-1/0),o=[...i].sort((u,T)=>u.startTime-T.startTime||u.order-T.order),c=0;for(let u of o)for(let T=0;T<s.length;T++)if(u.startTime>=s[T]){if(s[T]=u.endTime,u.order=T+a,T>c)c=T;break}return c},"getMaxIntersections"),Rt,kr=1e4,hs=e(function(i,a,s,o){let c=r().gantt;o.db.setDiagramId(a);let u=r().securityLevel,T;if(u==="sandbox")T=n("#i"+a);let U=u==="sandbox"?n(T.nodes()[0].contentDocument.body):n("body"),W=u==="sandbox"?T.nodes()[0].contentDocument:document,R=W.getElementById(a);if(Rt=R.parentElement.offsetWidth,Rt===void 0)Rt=1200;if(c.useWidth!==void 0)Rt=c.useWidth;let O=o.db.getTasks(),it=O.filter((F)=>!F.vert),B=[];for(let F of it)B.push(F.type);B=nt(B);let H={},z=2*c.topPadding;if(o.db.getDisplayMode()==="compact"||c.displayMode==="compact"){let F={};for(let E of it)if(F[E.section]===void 0)F[E.section]=[E];else F[E.section].push(E);let A=0;for(let E of Object.keys(F)){let V=ms(F[E],A)+1;A+=V,z+=V*(c.barHeight+c.barGap),H[E]=V}}else{z+=it.length*(c.barHeight+c.barGap);for(let F of B)H[F]=it.filter((A)=>A.type===F).length}R.setAttribute("viewBox","0 0 "+Rt+" "+z);let Z=U.select(`[id="${a}"]`),N=cr().domain([Pe(O,function(F){return F.startTime}),Ne(O,function(F){return F.endTime})]).rangeRound([0,Rt-c.leftPadding-c.rightPadding]);function tt(F,A){let E=F.startTime,V=A.startTime,w=0;if(E>V)w=1;else if(E<V)w=-1;return w}e(tt,"taskCompare"),O.sort(tt),mt(O,Rt,z),k(Z,z,Rt,c.useMaxWidth),Z.append("text").text(o.db.getDiagramTitle()).attr("x",Rt/2).attr("y",c.titleTopMargin).attr("class","titleText");function mt(F,A,E){let V=c.barHeight,w=V+c.barGap,{topPadding:I,leftPadding:Y}=c,_=Oe().domain([0,B.length]).range(["#00B9FA","#F95002"]).interpolate(qr);j(w,I,Y,A,E,F,o.db.getExcludes(),o.db.getIncludes()),x(Y,I,A,E),st(F,w,I,Y,V,_,A,E),P(w,I,Y,V,_),rt(Y,I,A,E)}e(mt,"makeGantt");function st(F,A,E,V,w,I,Y){F.sort((M,q)=>M.vert===q.vert?0:M.vert?1:-1);let _=F.filter((M)=>!M.vert),y=[...new Set(_.map((M)=>M.order))].map((M)=>_.find((q)=>q.order===M));Z.append("g").selectAll("rect").data(y).enter().append("rect").attr("x",0).attr("y",function(M,q){return q=M.order,q*A+E-2}).attr("width",function(){return Y-c.rightPadding/2}).attr("height",A).attr("class",function(M){for(let[q,J]of B.entries())if(M.type===J)return"section section"+q%c.numberSectionStyles;return"section section0"}).enter();let Q=Z.append("g").selectAll("rect").data(F).enter(),D=o.db.getLinks();if(Q.append("rect").attr("id",function(M){return a+"-"+M.id}).attr("rx",3).attr("ry",3).attr("x",function(M){if(M.milestone)return N(M.startTime)+V+0.5*(N(M.endTime)-N(M.startTime))-0.5*w;return N(M.startTime)+V}).attr("y",function(M,q){if(q=M.order,M.vert)return c.gridLineStartPadding;return q*A+E}).attr("width",function(M){if(M.milestone)return w;if(M.vert)return 0.08*w;return N(M.renderEndTime||M.endTime)-N(M.startTime)}).attr("height",function(M){if(M.vert)return _.length*(c.barHeight+c.barGap)+c.barHeight*2;return w}).attr("transform-origin",function(M,q){return q=M.order,(N(M.startTime)+V+0.5*(N(M.endTime)-N(M.startTime))).toString()+"px "+(q*A+E+0.5*w).toString()+"px"}).attr("class",function(M){let J="";if(M.classes.length>0)J=M.classes.join(" ");let lt=0;for(let[at,S]of B.entries())if(M.type===S)lt=at%c.numberSectionStyles;let dt="";if(M.active)if(M.crit)dt+=" activeCrit";else dt=" active";else if(M.done)if(M.crit)dt=" doneCrit";else dt=" done";else if(M.crit)dt+=" crit";if(dt.length===0)dt=" task";if(M.milestone)dt=" milestone "+dt;if(M.vert)dt=" vert "+dt;return dt+=lt,dt+=" "+J,"task"+dt}),Q.append("text").attr("id",function(M){return a+"-"+M.id+"-text"}).text(function(M){return M.task}).attr("font-size",c.fontSize).attr("x",function(M){let q=N(M.startTime),J=N(M.renderEndTime||M.endTime);if(M.milestone)q+=0.5*(N(M.endTime)-N(M.startTime))-0.5*w,J=q+w;if(M.vert)return N(M.startTime)+V;let lt=this.getBBox().width;if(lt>J-q)if(J+lt+1.5*c.leftPadding>Y)return q+V-5;else return J+V+5;else return(J-q)/2+q+V}).attr("y",function(M,q){if(M.vert)return c.gridLineStartPadding+_.length*(c.barHeight+c.barGap)+60;return q=M.order,q*A+c.barHeight/2+(c.fontSize/2-2)+E}).attr("text-height",w).attr("class",function(M){let q=N(M.startTime),J=N(M.endTime);if(M.milestone)J=q+w;let lt=this.getBBox().width,dt="";if(M.classes.length>0)dt=M.classes.join(" ");let at=0;for(let[X,et]of B.entries())if(M.type===et)at=X%c.numberSectionStyles;let S="";if(M.active)if(M.crit)S="activeCritText"+at;else S="activeText"+at;if(M.done)if(M.crit)S=S+" doneCritText"+at;else S=S+" doneText"+at;else if(M.crit)S=S+" critText"+at;if(M.milestone)S+=" milestoneText";if(M.vert)S+=" vertText";if(lt>J-q)if(J+lt+1.5*c.leftPadding>Y)return dt+" taskTextOutsideLeft taskTextOutside"+at+" "+S;else return dt+" taskTextOutsideRight taskTextOutside"+at+" "+S+" width-"+lt;else return dt+" taskText taskText"+at+" "+S+" width-"+lt}),r().securityLevel==="sandbox"){let M;M=n("#i"+a);let q=M.nodes()[0].contentDocument;Q.filter(function(J){return D.has(J.id)}).each(function(J){var lt=q.querySelector("#"+CSS.escape(a+"-"+J.id)),dt=q.querySelector("#"+CSS.escape(a+"-"+J.id+"-text"));let at=lt.parentNode;var S=q.createElement("a");S.setAttribute("xlink:href",D.get(J.id)),S.setAttribute("target","_top"),at.appendChild(S),S.appendChild(lt),S.appendChild(dt)})}}e(st,"drawRects");function j(F,A,E,V,w,I,Y,_){if(Y.length===0&&_.length===0)return;let G,y;for(let{startTime:J,endTime:lt}of I){if(G===void 0||J<G)G=J;if(y===void 0||lt>y)y=lt}if(!G||!y)return;if(ie.default(y).diff(ie.default(G),"year")>5){t.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 Q=o.db.getDateFormat(),D=[],yt=null,M=ie.default(G);while(M.valueOf()<=y){if(o.db.isInvalidDate(M,Q,Y,_))if(!yt)yt={start:M,end:M};else yt.end=M;else if(yt)D.push(yt),yt=null;M=M.add(1,"d")}Z.append("g").selectAll("rect").data(D).enter().append("rect").attr("id",(J)=>a+"-exclude-"+J.start.format("YYYY-MM-DD")).attr("x",(J)=>N(J.start.startOf("day"))+E).attr("y",c.gridLineStartPadding).attr("width",(J)=>N(J.end.endOf("day"))-N(J.start.startOf("day"))).attr("height",w-A-c.gridLineStartPadding).attr("transform-origin",function(J,lt){return(N(J.start)+E+0.5*(N(J.end)-N(J.start))).toString()+"px "+(lt*F+0.5*w).toString()+"px"}).attr("class","exclude-range")}e(j,"drawExcludeDays");function L(F,A,E,V){if(E<=0||F>A)return 1/0;let w=A-F,I=ie.default.duration({[V??"day"]:E}).asMilliseconds();if(I<=0)return 1/0;return Math.ceil(w/I)}e(L,"getEstimatedTickCount");function x(F,A,E,V){let w=o.db.getDateFormat(),I=o.db.getAxisFormat(),Y;if(I)Y=I;else if(w==="D")Y="%d";else Y=c.axisFormat??"%Y-%m-%d";let _=Ze(N).tickSize(-V+A+c.gridLineStartPadding).tickFormat(Qt(Y)),y=/^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/.exec(o.db.getTickInterval()||c.tickInterval);if(y!==null){let Q=parseInt(y[1],10);if(isNaN(Q)||Q<=0)t.warn(`Invalid tick interval value: "${y[1]}". Skipping custom tick interval.`);else{let D=y[2],yt=o.db.getWeekday()||c.weekday,M=N.domain(),q=M[0],J=M[1],lt=L(q,J,Q,D);if(lt>kr)t.warn(`The tick interval "${Q}${D}" would generate ${lt} ticks, which exceeds the maximum allowed (${kr}). This may indicate an invalid date or time range. Skipping custom tick interval.`);else switch(D){case"millisecond":_.ticks(Wt.every(Q));break;case"second":_.ticks(Dt.every(Q));break;case"minute":_.ticks(Pt.every(Q));break;case"hour":_.ticks(Vt.every(Q));break;case"day":_.ticks(Ft.every(Q));break;case"week":_.ticks(In[yt].every(Q));break;case"month":_.ticks(zt.every(Q));break}}}if(Z.append("g").attr("class","grid").attr("transform","translate("+F+", "+(V-50)+")").call(_).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10).attr("dy","1em"),o.db.topAxisEnabled()||c.topAxis){let Q=Be(N).tickSize(-V+A+c.gridLineStartPadding).tickFormat(Qt(Y));if(y!==null){let D=parseInt(y[1],10);if(isNaN(D)||D<=0)t.warn(`Invalid tick interval value: "${y[1]}". Skipping custom tick interval.`);else{let yt=y[2],M=o.db.getWeekday()||c.weekday,q=N.domain(),J=q[0],lt=q[1];if(L(J,lt,D,yt)<=kr)switch(yt){case"millisecond":Q.ticks(Wt.every(D));break;case"second":Q.ticks(Dt.every(D));break;case"minute":Q.ticks(Pt.every(D));break;case"hour":Q.ticks(Vt.every(D));break;case"day":Q.ticks(Ft.every(D));break;case"week":Q.ticks(In[M].every(D));break;case"month":Q.ticks(zt.every(D));break}}}Z.append("g").attr("class","grid").attr("transform","translate("+F+", "+A+")").call(Q).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10)}}e(x,"makeGrid");function P(F,A){let E=0,V=Object.keys(H).map((w)=>[w,H[w]]);Z.append("g").selectAll("text").data(V).enter().append(function(w){let I=w[0].split(l.lineBreakRegex),Y=-(I.length-1)/2,_=W.createElementNS("http://www.w3.org/2000/svg","text");_.setAttribute("dy",Y+"em");for(let[G,y]of I.entries()){let Q=W.createElementNS("http://www.w3.org/2000/svg","tspan");if(Q.setAttribute("alignment-baseline","central"),Q.setAttribute("x","10"),G>0)Q.setAttribute("dy","1em");Q.textContent=y,_.appendChild(Q)}return _}).attr("x",10).attr("y",function(w,I){if(I>0)for(let Y=0;Y<I;Y++)return E+=V[I-1][1],w[1]*F/2+E*F+A;else return w[1]*F/2+A}).attr("font-size",c.sectionFontSize).attr("class",function(w){for(let[I,Y]of B.entries())if(w[0]===Y)return"sectionTitle sectionTitle"+I%c.numberSectionStyles;return"sectionTitle"})}e(P,"vertLabels");function rt(F,A,E,V){let w=o.db.getTodayMarker();if(w==="off")return;let I=Z.append("g").attr("class","today"),Y=new Date,_=I.append("line");if(_.attr("x1",N(Y)+F).attr("x2",N(Y)+F).attr("y1",c.titleTopMargin).attr("y2",V-c.titleTopMargin).attr("class","today"),w!=="")_.attr("style",w.replace(/,/g,";"))}e(rt,"drawToday");function nt(F){let A={},E=[];for(let V=0,w=F.length;V<w;++V)if(!Object.prototype.hasOwnProperty.call(A,F[V]))A[F[V]]=!0,E.push(F[V]);return E}e(nt,"checkUnique")},"draw"),ys={setConf:ds,draw:hs},gs=e((i)=>`
|
|
6
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:e(function(){var I=this.next();if(I)return I;else return this.lex()},"lex"),begin:e(function(I){this.conditionStack.push(I)},"begin"),popState:e(function(){var I=this.conditionStack.length-1;if(I>0)return this.conditionStack.pop();else return this.conditionStack[0]},"popState"),_currentRules:e(function(){if(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1])return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules;else return this.conditions.INITIAL.rules},"_currentRules"),topState:e(function(I){if(I=this.conditionStack.length-1-Math.abs(I||0),I>=0)return this.conditionStack[I];else return"INITIAL"},"topState"),pushState:e(function(I){this.begin(I)},"pushState"),stateStackSize:e(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:e(function(I,Y,_,G){var y=G;switch(_){case 0:return this.begin("open_directive"),"open_directive";break;case 1:return this.begin("acc_title"),31;break;case 2:return this.popState(),"acc_title_value";break;case 3:return this.begin("acc_descr"),33;break;case 4:return this.popState(),"acc_descr_value";break;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}}};return V}();F.lexer=A;function E(){this.yy={}}return e(E,"Parser"),E.prototype=F,F.Parser=E,new E}();pr.parser=pr;var _a=pr;St.default.extend(Wn.default);St.default.extend(En.default);St.default.extend(An.default);var Yn={friday:5,saturday:6},Ot="",wr="",Dr=void 0,Cr="",se=[],ue=[],Sr=new Map,_r=[],Ee=[],le="",Yr="",On=["active","done","crit","milestone","vert"],Fr=[],ne="",ge=!1,Ir=!1,Ur="sunday",Ae="saturday",Tr=0,Ya=e(function(){_r=[],Ee=[],le="",Fr=[],Le=0,br=void 0,We=void 0,vt=[],Ot="",wr="",Yr="",Dr=void 0,Cr="",se=[],ue=[],ge=!1,Ir=!1,Tr=0,Sr=new Map,ne="",d(),Ur="sunday",Ae="saturday"},"clear"),Fa=e(function(i){ne=i},"setDiagramId"),Ia=e(function(i){wr=i},"setAxisFormat"),Ua=e(function(){return wr},"getAxisFormat"),La=e(function(i){Dr=i},"setTickInterval"),Wa=e(function(){return Dr},"getTickInterval"),Ea=e(function(i){Cr=i},"setTodayMarker"),Aa=e(function(){return Cr},"getTodayMarker"),Oa=e(function(i){Ot=i},"setDateFormat"),$a=e(function(){ge=!0},"enableInclusiveEndDates"),Ha=e(function(){return ge},"endDatesAreInclusive"),Na=e(function(){Ir=!0},"enableTopAxis"),Pa=e(function(){return Ir},"topAxisEnabled"),Va=e(function(i){Yr=i},"setDisplayMode"),za=e(function(){return Yr},"getDisplayMode"),Ra=e(function(){return Ot},"getDateFormat"),$n=e((i,a)=>{let s=a.toLowerCase().split(/[\s,]+/).filter((o)=>o!=="");return[...new Set([...i,...s])]},"mergeTokens"),Ba=e(function(i){se=$n(se,i)},"setIncludes"),Za=e(function(){return se},"getIncludes"),ja=e(function(i){ue=$n(ue,i)},"setExcludes"),Xa=e(function(){return ue},"getExcludes"),qa=e(function(){return Sr},"getLinks"),Ga=e(function(i){le=i,_r.push(i)},"addSection"),Qa=e(function(){return _r},"getSections"),Ja=e(function(){let i=Fn(),a=10,s=0;while(!i&&s<a)i=Fn(),s++;return Ee=vt,Ee},"getTasks"),Hn=e(function(i,a,s,o){let c=i.format(a.trim()),u=i.format("YYYY-MM-DD");if(o.includes(c)||o.includes(u))return!1;if(s.includes("weekends")&&(i.isoWeekday()===Yn[Ae]||i.isoWeekday()===Yn[Ae]+1))return!0;if(s.includes(i.format("dddd").toLowerCase()))return!0;return s.includes(c)||s.includes(u)},"isInvalidDate"),Ka=e(function(i){Ur=i},"setWeekday"),ts=e(function(){return Ur},"getWeekday"),es=e(function(i){Ae=i},"setWeekend"),Nn=e(function(i,a,s,o){if(!s.length||i.manualEndTime)return;let c;if(i.startTime instanceof Date)c=St.default(i.startTime);else c=St.default(i.startTime,a,!0);c=c.add(1,"d");let u;if(i.endTime instanceof Date)u=St.default(i.endTime);else u=St.default(i.endTime,a,!0);let[k,U]=rs(c,u,a,s,o);i.endTime=k.toDate(),i.renderEndTime=U},"checkTaskDates"),rs=e(function(i,a,s,o,c){let u=!1,k=null,U=a.add(1e4,"d");while(i<=a){if(!u)k=a.toDate();if(u=Hn(i,s,o,c),u){if(a=a.add(1,"d"),a>U)throw Error("Failed to find a valid date that was not excluded by `excludes` after 10,000 iterations.")}i=i.add(1,"d")}return[a,k]},"fixTaskDates"),xr=e(function(i,a,s){if(s=s.trim(),e((U)=>{let W=U.trim();return W==="x"||W==="X"},"isTimestampFormat")(a)&&/^\d+$/.test(s))return new Date(Number(s));let u=/^after\s+(?<ids>[\d\w- ]+)/.exec(s);if(u!==null){let U=null;for(let R of u.groups.ids.split(" ")){let O=Jt(R);if(O!==void 0&&(!U||O.endTime>U.endTime))U=O}if(U)return U.endTime;let W=new Date;return W.setHours(0,0,0,0),W}let k=St.default(s,a.trim(),!0);if(k.isValid())return k.toDate();else{t.debug("Invalid date:"+s),t.debug("With date format:"+a.trim());let U=new Date(s);if(U===void 0||isNaN(U.getTime())||U.getFullYear()<-1e4||U.getFullYear()>1e4)throw Error("Invalid date:"+s);return U}},"getStartDate"),Pn=e(function(i){let a=/^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(i.trim());if(a!==null)return[Number.parseFloat(a[1]),a[2]];return[NaN,"ms"]},"parseDuration"),Vn=e(function(i,a,s,o=!1){s=s.trim();let u=/^until\s+(?<ids>[\d\w- ]+)/.exec(s);if(u!==null){let O=null;for(let B of u.groups.ids.split(" ")){let H=Jt(B);if(H!==void 0&&(!O||H.startTime<O.startTime))O=H}if(O)return O.startTime;let it=new Date;return it.setHours(0,0,0,0),it}let k=St.default(s,a.trim(),!0);if(k.isValid()){if(o)k=k.add(1,"d");return k.toDate()}let U=St.default(i),[W,R]=Pn(s);if(!Number.isNaN(W)){let O=U.add(W,R);if(O.isValid())U=O}return U.toDate()},"getEndDate"),Le=0,ae=e(function(i){if(i===void 0)return Le=Le+1,"task"+Le;return i},"parseId"),ns=e(function(i,a){let s;if(a.substr(0,1)===":")s=a.substr(1,a.length);else s=a;let o=s.split(","),c={};Lr(o,c,On);for(let k=0;k<o.length;k++)o[k]=o[k].trim();let u="";switch(o.length){case 1:c.id=ae(),c.startTime=i.endTime,u=o[0];break;case 2:c.id=ae(),c.startTime=xr(void 0,Ot,o[0]),u=o[1];break;case 3:c.id=ae(o[0]),c.startTime=xr(void 0,Ot,o[1]),u=o[2];break;default:}if(u)c.endTime=Vn(c.startTime,Ot,u,ge),c.manualEndTime=St.default(u,"YYYY-MM-DD",!0).isValid(),Nn(c,Ot,ue,se);return c},"compileData"),is=e(function(i,a){let s;if(a.substr(0,1)===":")s=a.substr(1,a.length);else s=a;let o=s.split(","),c={};Lr(o,c,On);for(let u=0;u<o.length;u++)o[u]=o[u].trim();switch(o.length){case 1:c.id=ae(),c.startTime={type:"prevTaskEnd",id:i},c.endTime={data:o[0]};break;case 2:c.id=ae(),c.startTime={type:"getStartDate",startData:o[0]},c.endTime={data:o[1]};break;case 3:c.id=ae(o[0]),c.startTime={type:"getStartDate",startData:o[1]},c.endTime={data:o[2]};break;default:}return c},"parseData"),br,We,vt=[],zn={},as=e(function(i,a){let s={section:le,type:le,processed:!1,manualEndTime:!1,renderEndTime:null,raw:{data:a},task:i,classes:[]},o=is(We,a);if(s.raw.startTime=o.startTime,s.raw.endTime=o.endTime,s.id=o.id,s.prevTaskId=We,s.active=o.active,s.done=o.done,s.crit=o.crit,s.milestone=o.milestone,s.vert=o.vert,s.vert)s.order=-1;else s.order=Tr,Tr++;let c=vt.push(s);We=s.id,zn[s.id]=c-1},"addTask"),Jt=e(function(i){let a=zn[i];return vt[a]},"findTaskById"),ss=e(function(i,a){let s={section:le,type:le,description:i,task:i,classes:[]},o=ns(br,a);s.startTime=o.startTime,s.endTime=o.endTime,s.id=o.id,s.active=o.active,s.done=o.done,s.crit=o.crit,s.milestone=o.milestone,s.vert=o.vert,br=s,Ee.push(s)},"addTaskOrg"),Fn=e(function(){let i=e(function(s){let o=vt[s],c="";switch(vt[s].raw.startTime.type){case"prevTaskEnd":{let u=Jt(o.prevTaskId);o.startTime=u.endTime;break}case"getStartDate":if(c=xr(void 0,Ot,vt[s].raw.startTime.startData),c)vt[s].startTime=c;break}if(vt[s].startTime){if(vt[s].endTime=Vn(vt[s].startTime,Ot,vt[s].raw.endTime.data,ge),vt[s].endTime)vt[s].processed=!0,vt[s].manualEndTime=St.default(vt[s].raw.endTime.data,"YYYY-MM-DD",!0).isValid(),Nn(vt[s],Ot,ue,se)}return vt[s].processed},"compileTask"),a=!0;for(let[s,o]of vt.entries())i(s),a=a&&o.processed;return a},"compileTasks"),os=e(function(i,a){let s=a;if(r().securityLevel!=="loose")s=Un.sanitizeUrl(a);i.split(",").forEach(function(o){if(Jt(o)!==void 0)Bn(o,()=>{window.open(s,"_self")}),Sr.set(o,s)}),Rn(i,"clickable")},"setLink"),Rn=e(function(i,a){i.split(",").forEach(function(s){let o=Jt(s);if(o!==void 0)o.classes.push(a)})},"setClass"),cs=e(function(i,a,s){if(r().securityLevel!=="loose")return;if(a===void 0)return;let o=[];if(typeof s==="string"){o=s.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let u=0;u<o.length;u++){let k=o[u].trim();if(k.startsWith('"')&&k.endsWith('"'))k=k.substr(1,k.length-2);o[u]=k}}if(o.length===0)o.push(i);if(Jt(i)!==void 0)Bn(i,()=>{h.runFunc(a,...o)})},"setClickFun"),Bn=e(function(i,a){Fr.push(function(){let s=ne?`${ne}-${i}`:i,o=document.querySelector(`[id="${s}"]`);if(o!==null)o.addEventListener("click",function(){a()})},function(){let s=ne?`${ne}-${i}`:i,o=document.querySelector(`[id="${s}-text"]`);if(o!==null)o.addEventListener("click",function(){a()})})},"pushFun"),us=e(function(i,a,s){i.split(",").forEach(function(o){cs(o,a,s)}),Rn(i,"clickable")},"setClickEvent"),ls=e(function(i){Fr.forEach(function(a){a(i)})},"bindFunctions"),fs={getConfig:e(()=>r().gantt,"getConfig"),clear:Ya,setDateFormat:Oa,getDateFormat:Ra,enableInclusiveEndDates:$a,endDatesAreInclusive:Ha,enableTopAxis:Na,topAxisEnabled:Pa,setAxisFormat:Ia,getAxisFormat:Ua,setTickInterval:La,getTickInterval:Wa,setTodayMarker:Ea,getTodayMarker:Aa,setAccTitle:f,getAccTitle:p,setDiagramTitle:b,getDiagramTitle:v,setDiagramId:Fa,setDisplayMode:Va,getDisplayMode:za,setAccDescription:m,getAccDescription:g,addSection:Ga,getSections:Qa,getTasks:Ja,addTask:as,findTaskById:Jt,addTaskOrg:ss,setIncludes:Ba,getIncludes:Za,setExcludes:ja,getExcludes:Xa,setClickEvent:us,setLink:os,getLinks:qa,bindFunctions:ls,parseDuration:Pn,isInvalidDate:Hn,setWeekday:Ka,getWeekday:ts,setWeekend:es};function Lr(i,a,s){let o=!0;while(o)o=!1,s.forEach(function(c){let u="^\\s*"+c+"\\s*$",k=new RegExp(u);if(i[0].match(k))a[c]=!0,i.shift(1),o=!0})}e(Lr,"getTaskTags");ie.default.extend(Zn.default);var ds=e(function(){t.debug("Something is calling, setConf, remove the call")},"setConf"),In={monday:Zt,tuesday:Se,wednesday:_e,thursday:At,friday:Ye,saturday:Fe,sunday:It},ms=e((i,a)=>{let s=[...i].map(()=>-1/0),o=[...i].sort((u,k)=>u.startTime-k.startTime||u.order-k.order),c=0;for(let u of o)for(let k=0;k<s.length;k++)if(u.startTime>=s[k]){if(s[k]=u.endTime,u.order=k+a,k>c)c=k;break}return c},"getMaxIntersections"),Rt,kr=1e4,hs=e(function(i,a,s,o){let c=r().gantt;o.db.setDiagramId(a);let u=r().securityLevel,k;if(u==="sandbox")k=n("#i"+a);let U=u==="sandbox"?n(k.nodes()[0].contentDocument.body):n("body"),W=u==="sandbox"?k.nodes()[0].contentDocument:document,R=W.getElementById(a);if(Rt=R.parentElement.offsetWidth,Rt===void 0)Rt=1200;if(c.useWidth!==void 0)Rt=c.useWidth;let O=o.db.getTasks(),it=O.filter((F)=>!F.vert),B=[];for(let F of it)B.push(F.type);B=nt(B);let H={},z=2*c.topPadding;if(o.db.getDisplayMode()==="compact"||c.displayMode==="compact"){let F={};for(let E of it)if(F[E.section]===void 0)F[E.section]=[E];else F[E.section].push(E);let A=0;for(let E of Object.keys(F)){let V=ms(F[E],A)+1;A+=V,z+=V*(c.barHeight+c.barGap),H[E]=V}}else{z+=it.length*(c.barHeight+c.barGap);for(let F of B)H[F]=it.filter((A)=>A.type===F).length}R.setAttribute("viewBox","0 0 "+Rt+" "+z);let Z=U.select(`[id="${a}"]`),N=cr().domain([Pe(O,function(F){return F.startTime}),Ne(O,function(F){return F.endTime})]).rangeRound([0,Rt-c.leftPadding-c.rightPadding]);function tt(F,A){let E=F.startTime,V=A.startTime,w=0;if(E>V)w=1;else if(E<V)w=-1;return w}e(tt,"taskCompare"),O.sort(tt),mt(O,Rt,z),T(Z,z,Rt,c.useMaxWidth),Z.append("text").text(o.db.getDiagramTitle()).attr("x",Rt/2).attr("y",c.titleTopMargin).attr("class","titleText");function mt(F,A,E){let V=c.barHeight,w=V+c.barGap,{topPadding:I,leftPadding:Y}=c,_=Oe().domain([0,B.length]).range(["#00B9FA","#F95002"]).interpolate(qr);j(w,I,Y,A,E,F,o.db.getExcludes(),o.db.getIncludes()),x(Y,I,A,E),st(F,w,I,Y,V,_,A,E),P(w,I,Y,V,_),rt(Y,I,A,E)}e(mt,"makeGantt");function st(F,A,E,V,w,I,Y){F.sort((M,q)=>M.vert===q.vert?0:M.vert?1:-1);let _=F.filter((M)=>!M.vert),y=[...new Set(_.map((M)=>M.order))].map((M)=>_.find((q)=>q.order===M));Z.append("g").selectAll("rect").data(y).enter().append("rect").attr("x",0).attr("y",function(M,q){return q=M.order,q*A+E-2}).attr("width",function(){return Y-c.rightPadding/2}).attr("height",A).attr("class",function(M){for(let[q,J]of B.entries())if(M.type===J)return"section section"+q%c.numberSectionStyles;return"section section0"}).enter();let Q=Z.append("g").selectAll("rect").data(F).enter(),D=o.db.getLinks();if(Q.append("rect").attr("id",function(M){return a+"-"+M.id}).attr("rx",3).attr("ry",3).attr("x",function(M){if(M.milestone)return N(M.startTime)+V+0.5*(N(M.endTime)-N(M.startTime))-0.5*w;return N(M.startTime)+V}).attr("y",function(M,q){if(q=M.order,M.vert)return c.gridLineStartPadding;return q*A+E}).attr("width",function(M){if(M.milestone)return w;if(M.vert)return 0.08*w;return N(M.renderEndTime||M.endTime)-N(M.startTime)}).attr("height",function(M){if(M.vert)return _.length*(c.barHeight+c.barGap)+c.barHeight*2;return w}).attr("transform-origin",function(M,q){return q=M.order,(N(M.startTime)+V+0.5*(N(M.endTime)-N(M.startTime))).toString()+"px "+(q*A+E+0.5*w).toString()+"px"}).attr("class",function(M){let J="";if(M.classes.length>0)J=M.classes.join(" ");let lt=0;for(let[at,S]of B.entries())if(M.type===S)lt=at%c.numberSectionStyles;let dt="";if(M.active)if(M.crit)dt+=" activeCrit";else dt=" active";else if(M.done)if(M.crit)dt=" doneCrit";else dt=" done";else if(M.crit)dt+=" crit";if(dt.length===0)dt=" task";if(M.milestone)dt=" milestone "+dt;if(M.vert)dt=" vert "+dt;return dt+=lt,dt+=" "+J,"task"+dt}),Q.append("text").attr("id",function(M){return a+"-"+M.id+"-text"}).text(function(M){return M.task}).attr("font-size",c.fontSize).attr("x",function(M){let q=N(M.startTime),J=N(M.renderEndTime||M.endTime);if(M.milestone)q+=0.5*(N(M.endTime)-N(M.startTime))-0.5*w,J=q+w;if(M.vert)return N(M.startTime)+V;let lt=this.getBBox().width;if(lt>J-q)if(J+lt+1.5*c.leftPadding>Y)return q+V-5;else return J+V+5;else return(J-q)/2+q+V}).attr("y",function(M,q){if(M.vert)return c.gridLineStartPadding+_.length*(c.barHeight+c.barGap)+60;return q=M.order,q*A+c.barHeight/2+(c.fontSize/2-2)+E}).attr("text-height",w).attr("class",function(M){let q=N(M.startTime),J=N(M.endTime);if(M.milestone)J=q+w;let lt=this.getBBox().width,dt="";if(M.classes.length>0)dt=M.classes.join(" ");let at=0;for(let[X,et]of B.entries())if(M.type===et)at=X%c.numberSectionStyles;let S="";if(M.active)if(M.crit)S="activeCritText"+at;else S="activeText"+at;if(M.done)if(M.crit)S=S+" doneCritText"+at;else S=S+" doneText"+at;else if(M.crit)S=S+" critText"+at;if(M.milestone)S+=" milestoneText";if(M.vert)S+=" vertText";if(lt>J-q)if(J+lt+1.5*c.leftPadding>Y)return dt+" taskTextOutsideLeft taskTextOutside"+at+" "+S;else return dt+" taskTextOutsideRight taskTextOutside"+at+" "+S+" width-"+lt;else return dt+" taskText taskText"+at+" "+S+" width-"+lt}),r().securityLevel==="sandbox"){let M;M=n("#i"+a);let q=M.nodes()[0].contentDocument;Q.filter(function(J){return D.has(J.id)}).each(function(J){var lt=q.querySelector("#"+CSS.escape(a+"-"+J.id)),dt=q.querySelector("#"+CSS.escape(a+"-"+J.id+"-text"));let at=lt.parentNode;var S=q.createElement("a");S.setAttribute("xlink:href",D.get(J.id)),S.setAttribute("target","_top"),at.appendChild(S),S.appendChild(lt),S.appendChild(dt)})}}e(st,"drawRects");function j(F,A,E,V,w,I,Y,_){if(Y.length===0&&_.length===0)return;let G,y;for(let{startTime:J,endTime:lt}of I){if(G===void 0||J<G)G=J;if(y===void 0||lt>y)y=lt}if(!G||!y)return;if(ie.default(y).diff(ie.default(G),"year")>5){t.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 Q=o.db.getDateFormat(),D=[],yt=null,M=ie.default(G);while(M.valueOf()<=y){if(o.db.isInvalidDate(M,Q,Y,_))if(!yt)yt={start:M,end:M};else yt.end=M;else if(yt)D.push(yt),yt=null;M=M.add(1,"d")}Z.append("g").selectAll("rect").data(D).enter().append("rect").attr("id",(J)=>a+"-exclude-"+J.start.format("YYYY-MM-DD")).attr("x",(J)=>N(J.start.startOf("day"))+E).attr("y",c.gridLineStartPadding).attr("width",(J)=>N(J.end.endOf("day"))-N(J.start.startOf("day"))).attr("height",w-A-c.gridLineStartPadding).attr("transform-origin",function(J,lt){return(N(J.start)+E+0.5*(N(J.end)-N(J.start))).toString()+"px "+(lt*F+0.5*w).toString()+"px"}).attr("class","exclude-range")}e(j,"drawExcludeDays");function L(F,A,E,V){if(E<=0||F>A)return 1/0;let w=A-F,I=ie.default.duration({[V??"day"]:E}).asMilliseconds();if(I<=0)return 1/0;return Math.ceil(w/I)}e(L,"getEstimatedTickCount");function x(F,A,E,V){let w=o.db.getDateFormat(),I=o.db.getAxisFormat(),Y;if(I)Y=I;else if(w==="D")Y="%d";else Y=c.axisFormat??"%Y-%m-%d";let _=Ze(N).tickSize(-V+A+c.gridLineStartPadding).tickFormat(Qt(Y)),y=/^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/.exec(o.db.getTickInterval()||c.tickInterval);if(y!==null){let Q=parseInt(y[1],10);if(isNaN(Q)||Q<=0)t.warn(`Invalid tick interval value: "${y[1]}". Skipping custom tick interval.`);else{let D=y[2],yt=o.db.getWeekday()||c.weekday,M=N.domain(),q=M[0],J=M[1],lt=L(q,J,Q,D);if(lt>kr)t.warn(`The tick interval "${Q}${D}" would generate ${lt} ticks, which exceeds the maximum allowed (${kr}). This may indicate an invalid date or time range. Skipping custom tick interval.`);else switch(D){case"millisecond":_.ticks(Wt.every(Q));break;case"second":_.ticks(Dt.every(Q));break;case"minute":_.ticks(Pt.every(Q));break;case"hour":_.ticks(Vt.every(Q));break;case"day":_.ticks(Ft.every(Q));break;case"week":_.ticks(In[yt].every(Q));break;case"month":_.ticks(zt.every(Q));break}}}if(Z.append("g").attr("class","grid").attr("transform","translate("+F+", "+(V-50)+")").call(_).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10).attr("dy","1em"),o.db.topAxisEnabled()||c.topAxis){let Q=Be(N).tickSize(-V+A+c.gridLineStartPadding).tickFormat(Qt(Y));if(y!==null){let D=parseInt(y[1],10);if(isNaN(D)||D<=0)t.warn(`Invalid tick interval value: "${y[1]}". Skipping custom tick interval.`);else{let yt=y[2],M=o.db.getWeekday()||c.weekday,q=N.domain(),J=q[0],lt=q[1];if(L(J,lt,D,yt)<=kr)switch(yt){case"millisecond":Q.ticks(Wt.every(D));break;case"second":Q.ticks(Dt.every(D));break;case"minute":Q.ticks(Pt.every(D));break;case"hour":Q.ticks(Vt.every(D));break;case"day":Q.ticks(Ft.every(D));break;case"week":Q.ticks(In[M].every(D));break;case"month":Q.ticks(zt.every(D));break}}}Z.append("g").attr("class","grid").attr("transform","translate("+F+", "+A+")").call(Q).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10)}}e(x,"makeGrid");function P(F,A){let E=0,V=Object.keys(H).map((w)=>[w,H[w]]);Z.append("g").selectAll("text").data(V).enter().append(function(w){let I=w[0].split(l.lineBreakRegex),Y=-(I.length-1)/2,_=W.createElementNS("http://www.w3.org/2000/svg","text");_.setAttribute("dy",Y+"em");for(let[G,y]of I.entries()){let Q=W.createElementNS("http://www.w3.org/2000/svg","tspan");if(Q.setAttribute("alignment-baseline","central"),Q.setAttribute("x","10"),G>0)Q.setAttribute("dy","1em");Q.textContent=y,_.appendChild(Q)}return _}).attr("x",10).attr("y",function(w,I){if(I>0)for(let Y=0;Y<I;Y++)return E+=V[I-1][1],w[1]*F/2+E*F+A;else return w[1]*F/2+A}).attr("font-size",c.sectionFontSize).attr("class",function(w){for(let[I,Y]of B.entries())if(w[0]===Y)return"sectionTitle sectionTitle"+I%c.numberSectionStyles;return"sectionTitle"})}e(P,"vertLabels");function rt(F,A,E,V){let w=o.db.getTodayMarker();if(w==="off")return;let I=Z.append("g").attr("class","today"),Y=new Date,_=I.append("line");if(_.attr("x1",N(Y)+F).attr("x2",N(Y)+F).attr("y1",c.titleTopMargin).attr("y2",V-c.titleTopMargin).attr("class","today"),w!=="")_.attr("style",w.replace(/,/g,";"))}e(rt,"drawToday");function nt(F){let A={},E=[];for(let V=0,w=F.length;V<w;++V)if(!Object.prototype.hasOwnProperty.call(A,F[V]))A[F[V]]=!0,E.push(F[V]);return E}e(nt,"checkUnique")},"draw"),ys={setConf:ds,draw:hs},gs=e((i)=>`
|
|
7
7
|
.mermaid-main-font {
|
|
8
8
|
font-family: ${i.fontFamily};
|
|
9
9
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{ii}from"./index-zx0j3a2z.js";export{ii as createGitGraphServices};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{vt}from"./index-vv56h019.js";import{R}from"./index-353m7b0p.js";import{e,t,x,u,l,d,f,p,m,g,b,v,r,yr,n,Ci,E,h}from"./index-1r72hdzb.js";import"./index-6qmsnxwy.js";import{D}from"./index-tb1wf525.js";var G={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},Ce=x.gitGraph,J=e(()=>E({...Ce,...u().gitGraph}),"getConfig"),C=new vt(()=>{let a=J(),{mainBranchName:o,mainBranchOrder:s}=a;return{mainBranchName:o,commits:new Map,head:null,branchConfig:new Map([[o,{name:o,order:s}]]),branches:new Map([[o,null]]),currBranch:o,direction:"LR",seq:0,options:{}}});function ne(){return Ci({length:7})}e(ne,"getID");function pe(a,o){let s=Object.create(null);return a.reduce((y,w)=>{let k=o(w);if(!s[k])s[k]=!0,y.push(w);return y},[])}e(pe,"uniqBy");var ve=e(function(a){C.records.direction=a},"setDirection"),Ee=e(function(a){t.debug("options str",a),a=a?.trim(),a=a||"{}";try{C.records.options=JSON.parse(a)}catch(o){t.error("error while parsing gitGraph options",o.message)}},"setOptions"),Te=e(function(){return C.records.options},"getOptions"),Le=e(function(a){let{msg:o,id:s,type:y,tags:w}=a;t.info("commit",o,s,y,w),t.debug("Entering commit:",o,s,y,w);let k=J();s=l.sanitizeText(s,k),o=l.sanitizeText(o,k),w=w?.map((c)=>l.sanitizeText(c,k));let i={id:s?s:C.records.seq+"-"+ne(),message:o,seq:C.records.seq++,type:y??G.NORMAL,tags:w??[],parents:C.records.head==null?[]:[C.records.head.id],branch:C.records.currBranch};if(C.records.head=i,t.info("main branch",k.mainBranchName),C.records.commits.has(i.id))t.warn(`Commit ID ${i.id} already exists`);C.records.commits.set(i.id,i),C.records.branches.set(C.records.currBranch,i.id),t.debug("in pushCommit "+i.id)},"commit"),Me=e(function(a){let{name:o,order:s}=a;if(o=l.sanitizeText(o,J()),C.records.branches.has(o))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 ${o}")`);C.records.branches.set(o,C.records.head!=null?C.records.head.id:null),C.records.branchConfig.set(o,{name:o,order:s}),ye(o),t.debug("in createBranch")},"branch"),Pe=e((a)=>{let{branch:o,id:s,type:y,tags:w}=a,k=J();if(o=l.sanitizeText(o,k),s)s=l.sanitizeText(s,k);let i=C.records.branches.get(C.records.currBranch),c=C.records.branches.get(o),T=i?C.records.commits.get(i):void 0,M=c?C.records.commits.get(c):void 0;if(T&&M&&T.branch===o)throw Error(`Cannot merge branch '${o}' into itself.`);if(C.records.currBranch===o){let B=Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw B.hash={text:`merge ${o}`,token:`merge ${o}`,expected:["branch abc"]},B}if(T===void 0||!T){let B=Error(`Incorrect usage of "merge". Current branch (${C.records.currBranch})has no commits`);throw B.hash={text:`merge ${o}`,token:`merge ${o}`,expected:["commit"]},B}if(!C.records.branches.has(o)){let B=Error('Incorrect usage of "merge". Branch to be merged ('+o+") does not exist");throw B.hash={text:`merge ${o}`,token:`merge ${o}`,expected:[`branch ${o}`]},B}if(M===void 0||!M){let B=Error('Incorrect usage of "merge". Branch to be merged ('+o+") has no commits");throw B.hash={text:`merge ${o}`,token:`merge ${o}`,expected:['"commit"']},B}if(T===M){let B=Error('Incorrect usage of "merge". Both branches have same head');throw B.hash={text:`merge ${o}`,token:`merge ${o}`,expected:["branch abc"]},B}if(s&&C.records.commits.has(s)){let B=Error('Incorrect usage of "merge". Commit with id:'+s+" already exists, use different custom id");throw B.hash={text:`merge ${o} ${s} ${y} ${w?.join(" ")}`,token:`merge ${o} ${s} ${y} ${w?.join(" ")}`,expected:[`merge ${o} ${s}_UNIQUE ${y} ${w?.join(" ")}`]},B}let P=c?c:"",L={id:s||`${C.records.seq}-${ne()}`,message:`merged branch ${o} into ${C.records.currBranch}`,seq:C.records.seq++,parents:C.records.head==null?[]:[C.records.head.id,P],branch:C.records.currBranch,type:G.MERGE,customType:y,customId:s?!0:!1,tags:w??[]};C.records.head=L,C.records.commits.set(L.id,L),C.records.branches.set(C.records.currBranch,L.id),t.debug(C.records.branches),t.debug("in mergeBranch")},"merge"),Re=e(function(a){let{id:o,targetId:s,tags:y,parent:w}=a;t.debug("Entering cherryPick:",o,s,y);let k=J();if(o=l.sanitizeText(o,k),s=l.sanitizeText(s,k),y=y?.map((T)=>l.sanitizeText(T,k)),w=l.sanitizeText(w,k),!o||!C.records.commits.has(o)){let T=Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw T.hash={text:`cherryPick ${o} ${s}`,token:`cherryPick ${o} ${s}`,expected:["cherry-pick abc"]},T}let i=C.records.commits.get(o);if(i===void 0||!i)throw Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');if(w&&!(Array.isArray(i.parents)&&i.parents.includes(w)))throw Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");let c=i.branch;if(i.type===G.MERGE&&!w)throw Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");if(!s||!C.records.commits.has(s)){if(c===C.records.currBranch){let L=Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw L.hash={text:`cherryPick ${o} ${s}`,token:`cherryPick ${o} ${s}`,expected:["cherry-pick abc"]},L}let T=C.records.branches.get(C.records.currBranch);if(T===void 0||!T){let L=Error(`Incorrect usage of "cherry-pick". Current branch (${C.records.currBranch})has no commits`);throw L.hash={text:`cherryPick ${o} ${s}`,token:`cherryPick ${o} ${s}`,expected:["cherry-pick abc"]},L}let M=C.records.commits.get(T);if(M===void 0||!M){let L=Error(`Incorrect usage of "cherry-pick". Current branch (${C.records.currBranch})has no commits`);throw L.hash={text:`cherryPick ${o} ${s}`,token:`cherryPick ${o} ${s}`,expected:["cherry-pick abc"]},L}let P={id:C.records.seq+"-"+ne(),message:`cherry-picked ${i?.message} into ${C.records.currBranch}`,seq:C.records.seq++,parents:C.records.head==null?[]:[C.records.head.id,i.id],branch:C.records.currBranch,type:G.CHERRY_PICK,tags:y?y.filter(Boolean):[`cherry-pick:${i.id}${i.type===G.MERGE?`|parent:${w}`:""}`]};C.records.head=P,C.records.commits.set(P.id,P),C.records.branches.set(C.records.currBranch,P.id),t.debug(C.records.branches),t.debug("in cherryPick")}},"cherryPick"),ye=e(function(a){if(a=l.sanitizeText(a,J()),!C.records.branches.has(a)){let o=Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${a}")`);throw o.hash={text:`checkout ${a}`,token:`checkout ${a}`,expected:[`branch ${a}`]},o}else{C.records.currBranch=a;let o=C.records.branches.get(C.records.currBranch);if(o===void 0||!o)C.records.head=null;else C.records.head=C.records.commits.get(o)??null}},"checkout");function he(a,o,s){let y=a.indexOf(o);if(y===-1)a.push(s);else a.splice(y,1,s)}e(he,"upsert");function me(a){let o=a.reduce((w,k)=>{if(w.seq>k.seq)return w;return k},a[0]),s="";a.forEach(function(w){if(w===o)s+="\t*";else s+="\t|"});let y=[s,o.id,o.seq];for(let w in C.records.branches)if(C.records.branches.get(w)===o.id)y.push(w);if(t.debug(y.join(" ")),o.parents&&o.parents.length==2&&o.parents[0]&&o.parents[1]){let w=C.records.commits.get(o.parents[0]);if(he(a,o,w),o.parents[1])a.push(C.records.commits.get(o.parents[1]))}else if(o.parents.length==0)return;else if(o.parents[0]){let w=C.records.commits.get(o.parents[0]);he(a,o,w)}a=pe(a,(w)=>w.id),me(a)}e(me,"prettyPrintCommitHistory");var Oe=e(function(){t.debug(C.records.commits);let a=xe()[0];me([a])},"prettyPrint"),Ie=e(function(){C.reset(),d()},"clear"),_e=e(function(){return[...C.records.branchConfig.values()].map((o,s)=>{if(o.order!==null&&o.order!==void 0)return o;return{...o,order:parseFloat(`0.${s}`)}}).sort((o,s)=>(o.order??0)-(s.order??0)).map(({name:o})=>({name:o}))},"getBranchesAsObjArray"),Ge=e(function(){return C.records.branches},"getBranches"),De=e(function(){return C.records.commits},"getCommits"),xe=e(function(){let a=[...C.records.commits.values()];return a.forEach(function(o){t.debug(o.id)}),a.sort((o,s)=>o.seq-s.seq),a},"getCommitsArray"),We=e(function(){return C.records.currBranch},"getCurrentBranch"),qe=e(function(){return C.records.direction},"getDirection"),Ae=e(function(){return C.records.head},"getHead"),ue={commitType:G,getConfig:J,setDirection:ve,setOptions:Ee,getOptions:Te,commit:Le,branch:Me,merge:Pe,cherryPick:Re,checkout:ye,prettyPrint:Oe,clear:Ie,getBranchesAsObjArray:_e,getBranches:Ge,getCommits:De,getCommitsArray:xe,getCurrentBranch:We,getDirection:qe,getHead:Ae,setAccTitle:f,getAccTitle:p,getAccDescription:g,setAccDescription:m,setDiagramTitle:b,getDiagramTitle:v},He=e((a,o)=>{if(R(a,o),a.dir)o.setDirection(a.dir);for(let s of a.statements)Se(s,o)},"populate"),Se=e((a,o)=>{let y={Commit:e((w)=>o.commit(Ne(w)),"Commit"),Branch:e((w)=>o.branch(Fe(w)),"Branch"),Merge:e((w)=>o.merge(ze(w)),"Merge"),Checkout:e((w)=>o.checkout(Ye(w)),"Checkout"),CherryPicking:e((w)=>o.cherryPick(je(w)),"CherryPicking")}[a.$type];if(y)y(a);else t.error(`Unknown statement type: ${a.$type}`)},"parseStatement"),Ne=e((a)=>({id:a.id,msg:a.message??"",type:a.type!==void 0?G[a.type]:G.NORMAL,tags:a.tags??void 0}),"parseCommit"),Fe=e((a)=>({name:a.name,order:a.order??0}),"parseBranch"),ze=e((a)=>({branch:a.branch,id:a.id??"",type:a.type!==void 0?G[a.type]:void 0,tags:a.tags??void 0}),"parseMerge"),Ye=e((a)=>a.branch,"parseCheckout"),je=e((a)=>({id:a.id,targetId:"",tags:a.tags?.length===0?void 0:a.tags,parent:a.parent}),"parseCherryPicking"),Ke={parse:e(async(a)=>{let o=await D("gitGraph",a);t.debug(o),He(o,ue)},"parse")},U=10,V=40,z=4,j=2,Z=8,ce=new Set(["redux","redux-dark","redux-color","redux-dark-color"]),le=12,ge=new Set(["redux-color","redux-dark-color"]),Ue=new Set(["dark","redux-dark","redux-dark-color","neo-dark"]),X=e((a,o,s=!1)=>{if(s&&a>0)return(a-1)%(o-1)+1;return a%o},"calcColorIndex"),S=new Map,N=new Map,oe=30,te=new Map,se=[],K=0,I="LR",Ve=e(()=>{S.clear(),N.clear(),te.clear(),K=0,se=[],I="LR"},"clear"),be=e((a)=>{let o=document.createElementNS("http://www.w3.org/2000/svg","text");return(typeof a==="string"?a.split(/\\n|\n|<br\s*\/?>/gi):a).forEach((y)=>{let w=document.createElementNS("http://www.w3.org/2000/svg","tspan");w.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),w.setAttribute("dy","1em"),w.setAttribute("x","0"),w.setAttribute("class","row"),w.textContent=y.trim(),o.appendChild(w)}),o},"drawText"),we=e((a)=>{let o,s,y;if(I==="BT")s=e((w,k)=>w<=k,"comparisonFunc"),y=1/0;else s=e((w,k)=>w>=k,"comparisonFunc"),y=0;return a.forEach((w)=>{let k=I==="TB"||I=="BT"?N.get(w)?.y:N.get(w)?.x;if(k!==void 0&&s(k,y))o=w,y=k}),o},"findClosestParent"),Ze=e((a)=>{let o="",s=1/0;return a.forEach((y)=>{let w=N.get(y).y;if(w<=s)o=y,s=w}),o||void 0},"findClosestParentBT"),Xe=e((a,o,s)=>{let y=s,w=s,k=[];a.forEach((i)=>{let c=o.get(i);if(!c)throw Error(`Commit not found for key ${i}`);if(c.parents.length)y=Qe(c),w=Math.max(y,w);else k.push(c);et(c,y)}),y=w,k.forEach((i)=>{tt(i,y,s)}),a.forEach((i)=>{let c=o.get(i);if(c?.parents.length){let T=Ze(c.parents);if(y=N.get(T).y-V,y<=w)w=y;let M=S.get(c.branch).pos,P=y-U;N.set(c.id,{x:M,y:P})}})},"setParallelBTPos"),Je=e((a)=>{let o=we(a.parents.filter((y)=>y!==null));if(!o)throw Error(`Closest parent not found for commit ${a.id}`);let s=N.get(o)?.y;if(s===void 0)throw Error(`Closest parent position not found for commit ${a.id}`);return s},"findClosestParentPos"),Qe=e((a)=>Je(a)+V,"calculateCommitPosition"),et=e((a,o)=>{let s=S.get(a.branch);if(!s)throw Error(`Branch not found for commit ${a.id}`);let y=s.pos,w=o+U;return N.set(a.id,{x:y,y:w}),{x:y,y:w}},"setCommitPosition"),tt=e((a,o,s)=>{let y=S.get(a.branch);if(!y)throw Error(`Branch not found for commit ${a.id}`);let w=o+s,k=y.pos;N.set(a.id,{x:k,y:w})},"setRootPosition"),rt=e((a,o,s,y,w,k)=>{let{theme:i}=r(),c=ce.has(i??""),T=ge.has(i??""),M=Ue.has(i??"");if(k===G.HIGHLIGHT)a.append("rect").attr("x",s.x-10+(c?3:0)).attr("y",s.y-10+(c?3:0)).attr("width",c?14:20).attr("height",c?14:20).attr("class",`commit ${o.id} commit-highlight${X(w,Z,T)} ${y}-outer`),a.append("rect").attr("x",s.x-6+(c?2:0)).attr("y",s.y-6+(c?2:0)).attr("width",c?8:12).attr("height",c?8:12).attr("class",`commit ${o.id} commit${X(w,Z,T)} ${y}-inner`);else if(k===G.CHERRY_PICK)a.append("circle").attr("cx",s.x).attr("cy",s.y).attr("r",c?7:10).attr("class",`commit ${o.id} ${y}`),a.append("circle").attr("cx",s.x-3).attr("cy",s.y+2).attr("r",c?2.5:2.75).attr("fill",M?"#000000":"#fff").attr("class",`commit ${o.id} ${y}`),a.append("circle").attr("cx",s.x+3).attr("cy",s.y+2).attr("r",c?2.5:2.75).attr("fill",M?"#000000":"#fff").attr("class",`commit ${o.id} ${y}`),a.append("line").attr("x1",s.x+3).attr("y1",s.y+1).attr("x2",s.x).attr("y2",s.y-5).attr("stroke",M?"#000000":"#fff").attr("class",`commit ${o.id} ${y}`),a.append("line").attr("x1",s.x-3).attr("y1",s.y+1).attr("x2",s.x).attr("y2",s.y-5).attr("stroke",M?"#000000":"#fff").attr("class",`commit ${o.id} ${y}`);else{let P=a.append("circle");if(P.attr("cx",s.x),P.attr("cy",s.y),P.attr("r",c?7:10),P.attr("class",`commit ${o.id} commit${X(w,Z,T)}`),k===G.MERGE){let L=a.append("circle");L.attr("cx",s.x),L.attr("cy",s.y),L.attr("r",c?5:6),L.attr("class",`commit ${y} ${o.id} commit${X(w,Z,T)}`)}if(k===G.REVERSE){let L=a.append("path"),B=c?4:5;L.attr("d",`M ${s.x-B},${s.y-B}L${s.x+B},${s.y+B}M${s.x-B},${s.y+B}L${s.x+B},${s.y-B}`).attr("class",`commit ${y} ${o.id} commit${X(w,Z,T)}`)}}},"drawCommitBullet"),at=e((a,o,s,y,w)=>{if(o.type!==G.CHERRY_PICK&&(o.customId&&o.type===G.MERGE||o.type!==G.MERGE)&&w.showCommitLabel){let k=a.append("g"),i=k.insert("rect").attr("class","commit-label-bkg"),c=k.append("text").attr("x",y).attr("y",s.y+25).attr("class","commit-label").text(o.id),T=c.node()?.getBBox();if(T){if(i.attr("x",s.posWithOffset-T.width/2-j).attr("y",s.y+13.5).attr("width",T.width+2*j).attr("height",T.height+2*j),I==="TB"||I==="BT")i.attr("x",s.x-(T.width+4*z+5)).attr("y",s.y-12),c.attr("x",s.x-(T.width+4*z)).attr("y",s.y+T.height-12);else c.attr("x",s.posWithOffset-T.width/2);if(w.rotateCommitLabel)if(I==="TB"||I==="BT")c.attr("transform","rotate(-45, "+s.x+", "+s.y+")"),i.attr("transform","rotate(-45, "+s.x+", "+s.y+")");else{let M=-7.5-(T.width+10)/25*9.5,P=10+T.width/25*8.5;k.attr("transform","translate("+M+", "+P+") rotate(-45, "+y+", "+s.y+")")}}}},"drawCommitLabel"),ot=e((a,o,s,y)=>{if(o.tags.length>0){let w=0,k=0,i=0,c=[];for(let T of o.tags.reverse()){let M=a.insert("polygon"),P=a.append("circle"),L=a.append("text").attr("y",s.y-16-w).attr("class","tag-label").text(T),B=L.node()?.getBBox();if(!B)throw Error("Tag bbox not found");k=Math.max(k,B.width),i=Math.max(i,B.height),L.attr("x",s.posWithOffset-B.width/2),c.push({tag:L,hole:P,rect:M,yOffset:w}),w+=20}for(let{tag:T,hole:M,rect:P,yOffset:L}of c){let B=i/2,_=s.y-19.2-L;if(P.attr("class","tag-label-bkg").attr("points",`
|
|
1
|
+
import{vt}from"./index-8rjes9r6.js";import{R}from"./index-5n03dmb9.js";import{e,t,x,u,l,d,f,p,m,g,b,v,r,yr,n,Ci,E,h}from"./index-nwsya6dj.js";import"./index-v119nznk.js";import{D}from"./index-zx0j3a2z.js";var G={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},Ce=x.gitGraph,J=e(()=>E({...Ce,...u().gitGraph}),"getConfig"),C=new vt(()=>{let a=J(),{mainBranchName:o,mainBranchOrder:s}=a;return{mainBranchName:o,commits:new Map,head:null,branchConfig:new Map([[o,{name:o,order:s}]]),branches:new Map([[o,null]]),currBranch:o,direction:"LR",seq:0,options:{}}});function ne(){return Ci({length:7})}e(ne,"getID");function pe(a,o){let s=Object.create(null);return a.reduce((y,w)=>{let k=o(w);if(!s[k])s[k]=!0,y.push(w);return y},[])}e(pe,"uniqBy");var ve=e(function(a){C.records.direction=a},"setDirection"),Ee=e(function(a){t.debug("options str",a),a=a?.trim(),a=a||"{}";try{C.records.options=JSON.parse(a)}catch(o){t.error("error while parsing gitGraph options",o.message)}},"setOptions"),Te=e(function(){return C.records.options},"getOptions"),Le=e(function(a){let{msg:o,id:s,type:y,tags:w}=a;t.info("commit",o,s,y,w),t.debug("Entering commit:",o,s,y,w);let k=J();s=l.sanitizeText(s,k),o=l.sanitizeText(o,k),w=w?.map((c)=>l.sanitizeText(c,k));let i={id:s?s:C.records.seq+"-"+ne(),message:o,seq:C.records.seq++,type:y??G.NORMAL,tags:w??[],parents:C.records.head==null?[]:[C.records.head.id],branch:C.records.currBranch};if(C.records.head=i,t.info("main branch",k.mainBranchName),C.records.commits.has(i.id))t.warn(`Commit ID ${i.id} already exists`);C.records.commits.set(i.id,i),C.records.branches.set(C.records.currBranch,i.id),t.debug("in pushCommit "+i.id)},"commit"),Me=e(function(a){let{name:o,order:s}=a;if(o=l.sanitizeText(o,J()),C.records.branches.has(o))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 ${o}")`);C.records.branches.set(o,C.records.head!=null?C.records.head.id:null),C.records.branchConfig.set(o,{name:o,order:s}),ye(o),t.debug("in createBranch")},"branch"),Pe=e((a)=>{let{branch:o,id:s,type:y,tags:w}=a,k=J();if(o=l.sanitizeText(o,k),s)s=l.sanitizeText(s,k);let i=C.records.branches.get(C.records.currBranch),c=C.records.branches.get(o),T=i?C.records.commits.get(i):void 0,M=c?C.records.commits.get(c):void 0;if(T&&M&&T.branch===o)throw Error(`Cannot merge branch '${o}' into itself.`);if(C.records.currBranch===o){let B=Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw B.hash={text:`merge ${o}`,token:`merge ${o}`,expected:["branch abc"]},B}if(T===void 0||!T){let B=Error(`Incorrect usage of "merge". Current branch (${C.records.currBranch})has no commits`);throw B.hash={text:`merge ${o}`,token:`merge ${o}`,expected:["commit"]},B}if(!C.records.branches.has(o)){let B=Error('Incorrect usage of "merge". Branch to be merged ('+o+") does not exist");throw B.hash={text:`merge ${o}`,token:`merge ${o}`,expected:[`branch ${o}`]},B}if(M===void 0||!M){let B=Error('Incorrect usage of "merge". Branch to be merged ('+o+") has no commits");throw B.hash={text:`merge ${o}`,token:`merge ${o}`,expected:['"commit"']},B}if(T===M){let B=Error('Incorrect usage of "merge". Both branches have same head');throw B.hash={text:`merge ${o}`,token:`merge ${o}`,expected:["branch abc"]},B}if(s&&C.records.commits.has(s)){let B=Error('Incorrect usage of "merge". Commit with id:'+s+" already exists, use different custom id");throw B.hash={text:`merge ${o} ${s} ${y} ${w?.join(" ")}`,token:`merge ${o} ${s} ${y} ${w?.join(" ")}`,expected:[`merge ${o} ${s}_UNIQUE ${y} ${w?.join(" ")}`]},B}let P=c?c:"",L={id:s||`${C.records.seq}-${ne()}`,message:`merged branch ${o} into ${C.records.currBranch}`,seq:C.records.seq++,parents:C.records.head==null?[]:[C.records.head.id,P],branch:C.records.currBranch,type:G.MERGE,customType:y,customId:s?!0:!1,tags:w??[]};C.records.head=L,C.records.commits.set(L.id,L),C.records.branches.set(C.records.currBranch,L.id),t.debug(C.records.branches),t.debug("in mergeBranch")},"merge"),Re=e(function(a){let{id:o,targetId:s,tags:y,parent:w}=a;t.debug("Entering cherryPick:",o,s,y);let k=J();if(o=l.sanitizeText(o,k),s=l.sanitizeText(s,k),y=y?.map((T)=>l.sanitizeText(T,k)),w=l.sanitizeText(w,k),!o||!C.records.commits.has(o)){let T=Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw T.hash={text:`cherryPick ${o} ${s}`,token:`cherryPick ${o} ${s}`,expected:["cherry-pick abc"]},T}let i=C.records.commits.get(o);if(i===void 0||!i)throw Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');if(w&&!(Array.isArray(i.parents)&&i.parents.includes(w)))throw Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");let c=i.branch;if(i.type===G.MERGE&&!w)throw Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");if(!s||!C.records.commits.has(s)){if(c===C.records.currBranch){let L=Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw L.hash={text:`cherryPick ${o} ${s}`,token:`cherryPick ${o} ${s}`,expected:["cherry-pick abc"]},L}let T=C.records.branches.get(C.records.currBranch);if(T===void 0||!T){let L=Error(`Incorrect usage of "cherry-pick". Current branch (${C.records.currBranch})has no commits`);throw L.hash={text:`cherryPick ${o} ${s}`,token:`cherryPick ${o} ${s}`,expected:["cherry-pick abc"]},L}let M=C.records.commits.get(T);if(M===void 0||!M){let L=Error(`Incorrect usage of "cherry-pick". Current branch (${C.records.currBranch})has no commits`);throw L.hash={text:`cherryPick ${o} ${s}`,token:`cherryPick ${o} ${s}`,expected:["cherry-pick abc"]},L}let P={id:C.records.seq+"-"+ne(),message:`cherry-picked ${i?.message} into ${C.records.currBranch}`,seq:C.records.seq++,parents:C.records.head==null?[]:[C.records.head.id,i.id],branch:C.records.currBranch,type:G.CHERRY_PICK,tags:y?y.filter(Boolean):[`cherry-pick:${i.id}${i.type===G.MERGE?`|parent:${w}`:""}`]};C.records.head=P,C.records.commits.set(P.id,P),C.records.branches.set(C.records.currBranch,P.id),t.debug(C.records.branches),t.debug("in cherryPick")}},"cherryPick"),ye=e(function(a){if(a=l.sanitizeText(a,J()),!C.records.branches.has(a)){let o=Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${a}")`);throw o.hash={text:`checkout ${a}`,token:`checkout ${a}`,expected:[`branch ${a}`]},o}else{C.records.currBranch=a;let o=C.records.branches.get(C.records.currBranch);if(o===void 0||!o)C.records.head=null;else C.records.head=C.records.commits.get(o)??null}},"checkout");function he(a,o,s){let y=a.indexOf(o);if(y===-1)a.push(s);else a.splice(y,1,s)}e(he,"upsert");function me(a){let o=a.reduce((w,k)=>{if(w.seq>k.seq)return w;return k},a[0]),s="";a.forEach(function(w){if(w===o)s+="\t*";else s+="\t|"});let y=[s,o.id,o.seq];for(let w in C.records.branches)if(C.records.branches.get(w)===o.id)y.push(w);if(t.debug(y.join(" ")),o.parents&&o.parents.length==2&&o.parents[0]&&o.parents[1]){let w=C.records.commits.get(o.parents[0]);if(he(a,o,w),o.parents[1])a.push(C.records.commits.get(o.parents[1]))}else if(o.parents.length==0)return;else if(o.parents[0]){let w=C.records.commits.get(o.parents[0]);he(a,o,w)}a=pe(a,(w)=>w.id),me(a)}e(me,"prettyPrintCommitHistory");var Oe=e(function(){t.debug(C.records.commits);let a=xe()[0];me([a])},"prettyPrint"),Ie=e(function(){C.reset(),d()},"clear"),_e=e(function(){return[...C.records.branchConfig.values()].map((o,s)=>{if(o.order!==null&&o.order!==void 0)return o;return{...o,order:parseFloat(`0.${s}`)}}).sort((o,s)=>(o.order??0)-(s.order??0)).map(({name:o})=>({name:o}))},"getBranchesAsObjArray"),Ge=e(function(){return C.records.branches},"getBranches"),De=e(function(){return C.records.commits},"getCommits"),xe=e(function(){let a=[...C.records.commits.values()];return a.forEach(function(o){t.debug(o.id)}),a.sort((o,s)=>o.seq-s.seq),a},"getCommitsArray"),We=e(function(){return C.records.currBranch},"getCurrentBranch"),qe=e(function(){return C.records.direction},"getDirection"),Ae=e(function(){return C.records.head},"getHead"),ue={commitType:G,getConfig:J,setDirection:ve,setOptions:Ee,getOptions:Te,commit:Le,branch:Me,merge:Pe,cherryPick:Re,checkout:ye,prettyPrint:Oe,clear:Ie,getBranchesAsObjArray:_e,getBranches:Ge,getCommits:De,getCommitsArray:xe,getCurrentBranch:We,getDirection:qe,getHead:Ae,setAccTitle:f,getAccTitle:p,getAccDescription:g,setAccDescription:m,setDiagramTitle:b,getDiagramTitle:v},He=e((a,o)=>{if(R(a,o),a.dir)o.setDirection(a.dir);for(let s of a.statements)Se(s,o)},"populate"),Se=e((a,o)=>{let y={Commit:e((w)=>o.commit(Ne(w)),"Commit"),Branch:e((w)=>o.branch(Fe(w)),"Branch"),Merge:e((w)=>o.merge(ze(w)),"Merge"),Checkout:e((w)=>o.checkout(Ye(w)),"Checkout"),CherryPicking:e((w)=>o.cherryPick(je(w)),"CherryPicking")}[a.$type];if(y)y(a);else t.error(`Unknown statement type: ${a.$type}`)},"parseStatement"),Ne=e((a)=>({id:a.id,msg:a.message??"",type:a.type!==void 0?G[a.type]:G.NORMAL,tags:a.tags??void 0}),"parseCommit"),Fe=e((a)=>({name:a.name,order:a.order??0}),"parseBranch"),ze=e((a)=>({branch:a.branch,id:a.id??"",type:a.type!==void 0?G[a.type]:void 0,tags:a.tags??void 0}),"parseMerge"),Ye=e((a)=>a.branch,"parseCheckout"),je=e((a)=>({id:a.id,targetId:"",tags:a.tags?.length===0?void 0:a.tags,parent:a.parent}),"parseCherryPicking"),Ke={parse:e(async(a)=>{let o=await D("gitGraph",a);t.debug(o),He(o,ue)},"parse")},U=10,V=40,z=4,j=2,Z=8,ce=new Set(["redux","redux-dark","redux-color","redux-dark-color"]),le=12,ge=new Set(["redux-color","redux-dark-color"]),Ue=new Set(["dark","redux-dark","redux-dark-color","neo-dark"]),X=e((a,o,s=!1)=>{if(s&&a>0)return(a-1)%(o-1)+1;return a%o},"calcColorIndex"),S=new Map,N=new Map,oe=30,te=new Map,se=[],K=0,I="LR",Ve=e(()=>{S.clear(),N.clear(),te.clear(),K=0,se=[],I="LR"},"clear"),be=e((a)=>{let o=document.createElementNS("http://www.w3.org/2000/svg","text");return(typeof a==="string"?a.split(/\\n|\n|<br\s*\/?>/gi):a).forEach((y)=>{let w=document.createElementNS("http://www.w3.org/2000/svg","tspan");w.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),w.setAttribute("dy","1em"),w.setAttribute("x","0"),w.setAttribute("class","row"),w.textContent=y.trim(),o.appendChild(w)}),o},"drawText"),we=e((a)=>{let o,s,y;if(I==="BT")s=e((w,k)=>w<=k,"comparisonFunc"),y=1/0;else s=e((w,k)=>w>=k,"comparisonFunc"),y=0;return a.forEach((w)=>{let k=I==="TB"||I=="BT"?N.get(w)?.y:N.get(w)?.x;if(k!==void 0&&s(k,y))o=w,y=k}),o},"findClosestParent"),Ze=e((a)=>{let o="",s=1/0;return a.forEach((y)=>{let w=N.get(y).y;if(w<=s)o=y,s=w}),o||void 0},"findClosestParentBT"),Xe=e((a,o,s)=>{let y=s,w=s,k=[];a.forEach((i)=>{let c=o.get(i);if(!c)throw Error(`Commit not found for key ${i}`);if(c.parents.length)y=Qe(c),w=Math.max(y,w);else k.push(c);et(c,y)}),y=w,k.forEach((i)=>{tt(i,y,s)}),a.forEach((i)=>{let c=o.get(i);if(c?.parents.length){let T=Ze(c.parents);if(y=N.get(T).y-V,y<=w)w=y;let M=S.get(c.branch).pos,P=y-U;N.set(c.id,{x:M,y:P})}})},"setParallelBTPos"),Je=e((a)=>{let o=we(a.parents.filter((y)=>y!==null));if(!o)throw Error(`Closest parent not found for commit ${a.id}`);let s=N.get(o)?.y;if(s===void 0)throw Error(`Closest parent position not found for commit ${a.id}`);return s},"findClosestParentPos"),Qe=e((a)=>Je(a)+V,"calculateCommitPosition"),et=e((a,o)=>{let s=S.get(a.branch);if(!s)throw Error(`Branch not found for commit ${a.id}`);let y=s.pos,w=o+U;return N.set(a.id,{x:y,y:w}),{x:y,y:w}},"setCommitPosition"),tt=e((a,o,s)=>{let y=S.get(a.branch);if(!y)throw Error(`Branch not found for commit ${a.id}`);let w=o+s,k=y.pos;N.set(a.id,{x:k,y:w})},"setRootPosition"),rt=e((a,o,s,y,w,k)=>{let{theme:i}=r(),c=ce.has(i??""),T=ge.has(i??""),M=Ue.has(i??"");if(k===G.HIGHLIGHT)a.append("rect").attr("x",s.x-10+(c?3:0)).attr("y",s.y-10+(c?3:0)).attr("width",c?14:20).attr("height",c?14:20).attr("class",`commit ${o.id} commit-highlight${X(w,Z,T)} ${y}-outer`),a.append("rect").attr("x",s.x-6+(c?2:0)).attr("y",s.y-6+(c?2:0)).attr("width",c?8:12).attr("height",c?8:12).attr("class",`commit ${o.id} commit${X(w,Z,T)} ${y}-inner`);else if(k===G.CHERRY_PICK)a.append("circle").attr("cx",s.x).attr("cy",s.y).attr("r",c?7:10).attr("class",`commit ${o.id} ${y}`),a.append("circle").attr("cx",s.x-3).attr("cy",s.y+2).attr("r",c?2.5:2.75).attr("fill",M?"#000000":"#fff").attr("class",`commit ${o.id} ${y}`),a.append("circle").attr("cx",s.x+3).attr("cy",s.y+2).attr("r",c?2.5:2.75).attr("fill",M?"#000000":"#fff").attr("class",`commit ${o.id} ${y}`),a.append("line").attr("x1",s.x+3).attr("y1",s.y+1).attr("x2",s.x).attr("y2",s.y-5).attr("stroke",M?"#000000":"#fff").attr("class",`commit ${o.id} ${y}`),a.append("line").attr("x1",s.x-3).attr("y1",s.y+1).attr("x2",s.x).attr("y2",s.y-5).attr("stroke",M?"#000000":"#fff").attr("class",`commit ${o.id} ${y}`);else{let P=a.append("circle");if(P.attr("cx",s.x),P.attr("cy",s.y),P.attr("r",c?7:10),P.attr("class",`commit ${o.id} commit${X(w,Z,T)}`),k===G.MERGE){let L=a.append("circle");L.attr("cx",s.x),L.attr("cy",s.y),L.attr("r",c?5:6),L.attr("class",`commit ${y} ${o.id} commit${X(w,Z,T)}`)}if(k===G.REVERSE){let L=a.append("path"),B=c?4:5;L.attr("d",`M ${s.x-B},${s.y-B}L${s.x+B},${s.y+B}M${s.x-B},${s.y+B}L${s.x+B},${s.y-B}`).attr("class",`commit ${y} ${o.id} commit${X(w,Z,T)}`)}}},"drawCommitBullet"),at=e((a,o,s,y,w)=>{if(o.type!==G.CHERRY_PICK&&(o.customId&&o.type===G.MERGE||o.type!==G.MERGE)&&w.showCommitLabel){let k=a.append("g"),i=k.insert("rect").attr("class","commit-label-bkg"),c=k.append("text").attr("x",y).attr("y",s.y+25).attr("class","commit-label").text(o.id),T=c.node()?.getBBox();if(T){if(i.attr("x",s.posWithOffset-T.width/2-j).attr("y",s.y+13.5).attr("width",T.width+2*j).attr("height",T.height+2*j),I==="TB"||I==="BT")i.attr("x",s.x-(T.width+4*z+5)).attr("y",s.y-12),c.attr("x",s.x-(T.width+4*z)).attr("y",s.y+T.height-12);else c.attr("x",s.posWithOffset-T.width/2);if(w.rotateCommitLabel)if(I==="TB"||I==="BT")c.attr("transform","rotate(-45, "+s.x+", "+s.y+")"),i.attr("transform","rotate(-45, "+s.x+", "+s.y+")");else{let M=-7.5-(T.width+10)/25*9.5,P=10+T.width/25*8.5;k.attr("transform","translate("+M+", "+P+") rotate(-45, "+y+", "+s.y+")")}}}},"drawCommitLabel"),ot=e((a,o,s,y)=>{if(o.tags.length>0){let w=0,k=0,i=0,c=[];for(let T of o.tags.reverse()){let M=a.insert("polygon"),P=a.append("circle"),L=a.append("text").attr("y",s.y-16-w).attr("class","tag-label").text(T),B=L.node()?.getBBox();if(!B)throw Error("Tag bbox not found");k=Math.max(k,B.width),i=Math.max(i,B.height),L.attr("x",s.posWithOffset-B.width/2),c.push({tag:L,hole:P,rect:M,yOffset:w}),w+=20}for(let{tag:T,hole:M,rect:P,yOffset:L}of c){let B=i/2,_=s.y-19.2-L;if(P.attr("class","tag-label-bkg").attr("points",`
|
|
2
2
|
${y-k/2-z/2},${_+j}
|
|
3
3
|
${y-k/2-z/2},${_-j}
|
|
4
4
|
${s.posWithOffset-k/2-z},${_-B-j}
|