@legionworks/facet 1.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE-APACHE +202 -0
- package/LICENSE-MIT +23 -0
- package/README.md +158 -0
- package/dist/gallery/chunk-4g8rem85.css +656 -0
- package/dist/gallery/chunk-c6s9k9ty.js +5970 -0
- package/dist/gallery/frame/artifact.css +8424 -0
- package/dist/gallery/frame/chunks/abnfDiagram-N423BO3Z-jj74szbm.js +155 -0
- package/dist/gallery/frame/chunks/architecture-TIHT7OUA-cvdjn7dt.js +10 -0
- package/dist/gallery/frame/chunks/architectureDiagram-T3A2C74G-n4z77eg6.js +8675 -0
- package/dist/gallery/frame/chunks/blockDiagram-VBNYF7ZC-7xsqzrd1.js +3529 -0
- package/dist/gallery/frame/chunks/c4Diagram-5PPSVZJV-z2zjs7wx.js +2413 -0
- package/dist/gallery/frame/chunks/classDiagram-JCYQIIEL-ve8rngqp.js +47 -0
- package/dist/gallery/frame/chunks/classDiagram-v2-OCEON4UE-8cfaxb8z.js +47 -0
- package/dist/gallery/frame/chunks/cose-bilkent-JH36ORCC-sn92qexx.js +4822 -0
- package/dist/gallery/frame/chunks/cynefin-VYW2F7L2-tqjv913d.js +10 -0
- package/dist/gallery/frame/chunks/cynefinDiagram-MW4NZA55-c1c0dj12.js +500 -0
- package/dist/gallery/frame/chunks/dagre-VZM6K2ZE-7tyg4yt2.js +476 -0
- package/dist/gallery/frame/chunks/diagram-7IWD3JNH-y4eng9sc.js +526 -0
- package/dist/gallery/frame/chunks/diagram-B4RE2ZJO-rn3p7j5h.js +673 -0
- package/dist/gallery/frame/chunks/diagram-LBJQPF4R-w4a2cm9q.js +255 -0
- package/dist/gallery/frame/chunks/diagram-Q27KOJAE-aqc2v7wy.js +575 -0
- package/dist/gallery/frame/chunks/diagram-UB23O5K3-xncy8nyd.js +355 -0
- package/dist/gallery/frame/chunks/ebnfDiagram-BXEA7PRR-acwgxz16.js +175 -0
- package/dist/gallery/frame/chunks/erDiagram-JOGREHBK-mzp5nswt.js +1332 -0
- package/dist/gallery/frame/chunks/eventmodeling-45OFAUF4-sg07qr0c.js +10 -0
- package/dist/gallery/frame/chunks/flowDiagram-UKHOOZJN-2e5ygs44.js +29 -0
- package/dist/gallery/frame/chunks/ganttDiagram-PKOTCBZU-p2hhh7hr.js +2620 -0
- package/dist/gallery/frame/chunks/gitGraph-TEB2WS4Q-j6kw0naa.js +10 -0
- package/dist/gallery/frame/chunks/gitGraphDiagram-DS77QQ5N-4z9z8wjm.js +1347 -0
- package/dist/gallery/frame/chunks/info-DKCQHKI2-mpt80jd3.js +10 -0
- package/dist/gallery/frame/chunks/infoDiagram-6WML65LV-5rqm3mgg.js +65 -0
- package/dist/gallery/frame/chunks/ishikawaDiagram-WSZJBQD7-b51z96jy.js +975 -0
- package/dist/gallery/frame/chunks/journeyDiagram-NVQOT4AX-9jbfp0pk.js +1272 -0
- package/dist/gallery/frame/chunks/kanban-definition-27J2QSJJ-4x0vx4se.js +1116 -0
- package/dist/gallery/frame/chunks/katex-xfgk95tv.js +14034 -0
- package/dist/gallery/frame/chunks/markdown-1s5vwkf2.js +9 -0
- package/dist/gallery/frame/chunks/markdown-2h6bwsms.js +3239 -0
- package/dist/gallery/frame/chunks/markdown-2x113yh8.js +107 -0
- package/dist/gallery/frame/chunks/markdown-30b7rwmp.js +1943 -0
- package/dist/gallery/frame/chunks/markdown-356bfj4g.js +2031 -0
- package/dist/gallery/frame/chunks/markdown-44n9ea69.js +2406 -0
- package/dist/gallery/frame/chunks/markdown-56enrf2r.js +39 -0
- package/dist/gallery/frame/chunks/markdown-5avymm8t.js +725 -0
- package/dist/gallery/frame/chunks/markdown-6r4svars.js +33 -0
- package/dist/gallery/frame/chunks/markdown-6zz8efx2.js +24 -0
- package/dist/gallery/frame/chunks/markdown-7jp6prnb.js +19 -0
- package/dist/gallery/frame/chunks/markdown-809k7q41.js +55 -0
- package/dist/gallery/frame/chunks/markdown-82xmzhzd.js +1076 -0
- package/dist/gallery/frame/chunks/markdown-92n37gd4.js +7627 -0
- package/dist/gallery/frame/chunks/markdown-ag2sssf8.js +36 -0
- package/dist/gallery/frame/chunks/markdown-b4s7ntq2.js +19 -0
- package/dist/gallery/frame/chunks/markdown-c9k0fvp1.js +100 -0
- package/dist/gallery/frame/chunks/markdown-ceefymn8.js +125 -0
- package/dist/gallery/frame/chunks/markdown-d1wfbs70.js +243 -0
- package/dist/gallery/frame/chunks/markdown-dy5sgjhc.js +11022 -0
- package/dist/gallery/frame/chunks/markdown-dz3z5w30.js +30868 -0
- package/dist/gallery/frame/chunks/markdown-eg6ngz7y.js +30340 -0
- package/dist/gallery/frame/chunks/markdown-ff5wvb43.js +1149 -0
- package/dist/gallery/frame/chunks/markdown-ffg06nfz.js +86 -0
- package/dist/gallery/frame/chunks/markdown-fvfncadf.js +472 -0
- package/dist/gallery/frame/chunks/markdown-gvyszqpv.js +19 -0
- package/dist/gallery/frame/chunks/markdown-gx1p0ew0.js +88 -0
- package/dist/gallery/frame/chunks/markdown-gxye5frz.js +65 -0
- package/dist/gallery/frame/chunks/markdown-h7pzv34e.js +105 -0
- package/dist/gallery/frame/chunks/markdown-hab789t9.js +47 -0
- package/dist/gallery/frame/chunks/markdown-hjp6sj8t.js +125 -0
- package/dist/gallery/frame/chunks/markdown-jka64qgp.js +1993 -0
- package/dist/gallery/frame/chunks/markdown-k8xkn8mw.js +56 -0
- package/dist/gallery/frame/chunks/markdown-m7frq8x8.js +112 -0
- package/dist/gallery/frame/chunks/markdown-p740v4qm.js +36 -0
- package/dist/gallery/frame/chunks/markdown-pxfeh231.js +57 -0
- package/dist/gallery/frame/chunks/markdown-pzgd8z3s.js +87 -0
- package/dist/gallery/frame/chunks/markdown-qx3cngz2.js +1673 -0
- package/dist/gallery/frame/chunks/markdown-rawhfvvc.js +85 -0
- package/dist/gallery/frame/chunks/markdown-rd8w0ng9.js +49 -0
- package/dist/gallery/frame/chunks/markdown-rm2yxfjj.js +2773 -0
- package/dist/gallery/frame/chunks/markdown-s1jatrnk.js +993 -0
- package/dist/gallery/frame/chunks/markdown-sgfg5vvq.js +59 -0
- package/dist/gallery/frame/chunks/markdown-t4ethv9d.js +409 -0
- package/dist/gallery/frame/chunks/markdown-tnmabqvz.js +36 -0
- package/dist/gallery/frame/chunks/markdown-tvdpppw8.js +5292 -0
- package/dist/gallery/frame/chunks/markdown-v0x27twr.js +22 -0
- package/dist/gallery/frame/chunks/markdown-v14td68x.js +36 -0
- package/dist/gallery/frame/chunks/markdown-w6sgd54z.js +36 -0
- package/dist/gallery/frame/chunks/markdown-xw8dsk8b.js +2125 -0
- package/dist/gallery/frame/chunks/markdown-y18mve73.js +85 -0
- package/dist/gallery/frame/chunks/markdown-yengsms5.js +427 -0
- package/dist/gallery/frame/chunks/markdown-z1wc0v0d.js +1826 -0
- package/dist/gallery/frame/chunks/markdown-zazx9h4n.js +329 -0
- package/dist/gallery/frame/chunks/mermaid-de7p4v0x.js +30 -0
- package/dist/gallery/frame/chunks/mindmap-definition-FAOFIHXS-ra44cbem.js +1216 -0
- package/dist/gallery/frame/chunks/packet-7NZHBO7P-xppm5913.js +10 -0
- package/dist/gallery/frame/chunks/pegDiagram-VL7TDLO6-a2a4wg03.js +163 -0
- package/dist/gallery/frame/chunks/pie-RZYD4A2V-hnbxk152.js +10 -0
- package/dist/gallery/frame/chunks/pieDiagram-7S7Q4E2Y-f1vxjtmx.js +311 -0
- package/dist/gallery/frame/chunks/quadrantDiagram-CIZ2JOQS-ywafa6kh.js +1390 -0
- package/dist/gallery/frame/chunks/radar-I7S5WNFK-ewqd27se.js +10 -0
- package/dist/gallery/frame/chunks/railroad-3IZDKUUU-5hy4bdx3.js +10 -0
- package/dist/gallery/frame/chunks/railroad-abnf-AHOZXSZD-bh5sxz0d.js +10 -0
- package/dist/gallery/frame/chunks/railroad-ebnf-EBAXGLYW-6b9c3zeh.js +10 -0
- package/dist/gallery/frame/chunks/railroad-peg-LSFZ7HO6-avc8v39s.js +10 -0
- package/dist/gallery/frame/chunks/railroadDiagram-AXF67PYL-qc61wax4.js +131 -0
- package/dist/gallery/frame/chunks/requirementDiagram-LRYGKXZP-9bs4786c.js +1295 -0
- package/dist/gallery/frame/chunks/sankeyDiagram-W5VNT64P-awt1em8b.js +1339 -0
- package/dist/gallery/frame/chunks/sequenceDiagram-SI44F4Z6-qaf9mz3t.js +4324 -0
- package/dist/gallery/frame/chunks/sizeCapture-X5ZJPWSS-9fq685xd.js +64 -0
- package/dist/gallery/frame/chunks/stateDiagram-OKZ733FA-vx7a7hh0.js +456 -0
- package/dist/gallery/frame/chunks/stateDiagram-v2-UEYNNEHI-x4m6ws5t.js +46 -0
- package/dist/gallery/frame/chunks/swimlanes-SLNWSIFB-e4mxm1gh.js +8287 -0
- package/dist/gallery/frame/chunks/swimlanesDiagram-ULZ7WXOC-0h93e2qq.js +42 -0
- package/dist/gallery/frame/chunks/timeline-definition-Z64GVDOM-wp0bhbzg.js +1549 -0
- package/dist/gallery/frame/chunks/treeView-QDETBFTQ-hcx7n0vt.js +10 -0
- package/dist/gallery/frame/chunks/treemap-6X3UGDF4-av02skdw.js +10 -0
- package/dist/gallery/frame/chunks/vennDiagram-T6HMQDX7-pmvk1p7n.js +2566 -0
- package/dist/gallery/frame/chunks/wardley-OPB4EBWU-njsp6e40.js +10 -0
- package/dist/gallery/frame/chunks/wardleyDiagram-T6FBY63Y-eggmnv4z.js +979 -0
- package/dist/gallery/frame/chunks/xychartDiagram-ELKLHX3M-q40tnpe5.js +1954 -0
- package/dist/gallery/frame/frame.css +183 -0
- package/dist/gallery/frame/runtime/chart.js +42744 -0
- package/dist/gallery/frame/runtime/html.js +14 -0
- package/dist/gallery/frame/runtime/markdown.js +1403 -0
- package/dist/gallery/frame/runtime/mermaid.js +32 -0
- package/dist/gallery/frame/runtime/svg.js +14 -0
- package/dist/gallery/frame/runtime/tsx.js +52 -0
- package/dist/gallery/index.html +104 -0
- package/docs/reference/cli.md +163 -0
- package/docs/reference/export.md +106 -0
- package/docs/reference/html.md +215 -0
- package/docs/reference/http.md +85 -0
- package/docs/reference/mcp.md +78 -0
- package/docs/reference/security.md +119 -0
- package/docs/reference/storage.md +93 -0
- package/docs/reference/tsx.md +101 -0
- package/docs/reference/validation.md +212 -0
- package/package.json +89 -0
- package/scripts/build-gallery.ts +127 -0
- package/scripts/launch-netns.sh +67 -0
- package/skills/facet/SKILL.md +100 -0
- package/src/cli/client.ts +311 -0
- package/src/cli/commands/create.ts +49 -0
- package/src/cli/commands/doctor.ts +249 -0
- package/src/cli/commands/export.ts +179 -0
- package/src/cli/commands/instantiate.ts +35 -0
- package/src/cli/commands/list.ts +49 -0
- package/src/cli/commands/open.ts +75 -0
- package/src/cli/commands/pin.ts +39 -0
- package/src/cli/commands/promote.ts +49 -0
- package/src/cli/commands/publish.ts +122 -0
- package/src/cli/commands/read-back.ts +56 -0
- package/src/cli/commands/status.ts +114 -0
- package/src/cli/commands/watch.ts +146 -0
- package/src/cli/main.ts +522 -0
- package/src/cli/output.ts +106 -0
- package/src/cli/parser.ts +376 -0
- package/src/cli/presenter.ts +212 -0
- package/src/cli/service-metadata.ts +134 -0
- package/src/cli/spawn-service.ts +326 -0
- package/src/css.d.ts +4 -0
- package/src/gallery-web/app.ts +1581 -0
- package/src/gallery-web/export-menu.ts +121 -0
- package/src/gallery-web/export.ts +112 -0
- package/src/gallery-web/favicon.ts +54 -0
- package/src/gallery-web/frame/entries/chart.ts +6 -0
- package/src/gallery-web/frame/entries/html.ts +6 -0
- package/src/gallery-web/frame/entries/markdown.ts +6 -0
- package/src/gallery-web/frame/entries/mermaid.ts +6 -0
- package/src/gallery-web/frame/entries/svg.ts +6 -0
- package/src/gallery-web/frame/entries/tsx.ts +6 -0
- package/src/gallery-web/frame/frame-payload.ts +91 -0
- package/src/gallery-web/frame/renderer-validation.ts +13 -0
- package/src/gallery-web/frame/renderers/chart.ts +182 -0
- package/src/gallery-web/frame/renderers/dompurify-shim.ts +112 -0
- package/src/gallery-web/frame/renderers/html.ts +48 -0
- package/src/gallery-web/frame/renderers/markdown.ts +81 -0
- package/src/gallery-web/frame/renderers/mermaid.ts +120 -0
- package/src/gallery-web/frame/renderers/registry.ts +260 -0
- package/src/gallery-web/frame/renderers/svg.ts +393 -0
- package/src/gallery-web/frame/renderers/tsx.ts +61 -0
- package/src/gallery-web/frame/runtime.ts +501 -0
- package/src/gallery-web/frame/styles/artifact.css +8424 -0
- package/src/gallery-web/frame/styles/frame.css +183 -0
- package/src/gallery-web/frame/styles/html-source.css +23 -0
- package/src/gallery-web/frame/view-box.ts +33 -0
- package/src/gallery-web/frame-html.ts +72 -0
- package/src/gallery-web/index.html +104 -0
- package/src/gallery-web/session.ts +107 -0
- package/src/gallery-web/sse-client.ts +212 -0
- package/src/gallery-web/styles/app.css +420 -0
- package/src/gallery-web/styles/tokens.css +112 -0
- package/src/gallery-web/styles/verdict.css +186 -0
- package/src/gallery-web/swap.ts +64 -0
- package/src/gallery-web/theme.ts +40 -0
- package/src/gallery-web/view-state.ts +93 -0
- package/src/harness-adapters/claude-code/README.md +10 -0
- package/src/harness-adapters/claude-code/facet.sh +4 -0
- package/src/harness-adapters/codex/README.md +10 -0
- package/src/harness-adapters/codex/facet.sh +4 -0
- package/src/harness-adapters/mcp/README.md +13 -0
- package/src/harness-adapters/mcp/cli-bridge.ts +216 -0
- package/src/harness-adapters/mcp/main.ts +15 -0
- package/src/harness-adapters/mcp/server.ts +164 -0
- package/src/harness-adapters/mcp/tool-schemas.ts +53 -0
- package/src/harness-adapters/opencode/README.md +10 -0
- package/src/harness-adapters/opencode/facet.sh +4 -0
- package/src/runtime/compiled-entrypoints.ts +69 -0
- package/src/service/dispatcher.ts +717 -0
- package/src/service/export.ts +218 -0
- package/src/service/http-utils.ts +55 -0
- package/src/service/lexical/expectations.ts +210 -0
- package/src/service/lifecycle/idle-controller.ts +125 -0
- package/src/service/lifecycle/orphan-cleanup.ts +128 -0
- package/src/service/lifecycle/process-lock.ts +235 -0
- package/src/service/main.ts +136 -0
- package/src/service/process.ts +240 -0
- package/src/service/router-guards.ts +239 -0
- package/src/service/router.ts +627 -0
- package/src/service/security/auth.ts +168 -0
- package/src/service/security/host-origin.ts +138 -0
- package/src/service/security/http-guards.ts +13 -0
- package/src/service/security/leases.ts +182 -0
- package/src/service/security/token-store.ts +138 -0
- package/src/service/server.ts +356 -0
- package/src/service/store/database.ts +61 -0
- package/src/service/store/evidence-retention.ts +234 -0
- package/src/service/store/migrations.ts +167 -0
- package/src/service/store/repository-lifecycle.ts +121 -0
- package/src/service/store/repository.ts +732 -0
- package/src/service/store/schema.ts +218 -0
- package/src/service/stored-verdict.ts +97 -0
- package/src/service/stream.ts +301 -0
- package/src/service/verdict-enrichment.ts +45 -0
- package/src/shared/build/frame-bundle-plugins.ts +61 -0
- package/src/shared/build-mode.ts +28 -0
- package/src/shared/config/evidence-read.ts +98 -0
- package/src/shared/config/limits.ts +56 -0
- package/src/shared/config/paths.ts +96 -0
- package/src/shared/contracts/artifact-types.ts +2 -0
- package/src/shared/contracts/artifact.ts +98 -0
- package/src/shared/contracts/commands/_shared.ts +59 -0
- package/src/shared/contracts/commands/guards.ts +86 -0
- package/src/shared/contracts/commands/index.ts +204 -0
- package/src/shared/contracts/commands/names.ts +35 -0
- package/src/shared/contracts/commands/requests.ts +149 -0
- package/src/shared/contracts/commands/results.ts +200 -0
- package/src/shared/contracts/envelope.ts +140 -0
- package/src/shared/contracts/events.ts +41 -0
- package/src/shared/contracts/observed-counts.ts +19 -0
- package/src/shared/contracts/renderers.ts +6 -0
- package/src/shared/contracts/validation.ts +296 -0
- package/src/shared/errors/facet-error.ts +127 -0
- package/src/shared/errors/store-error.ts +68 -0
- package/src/shared/evidence-image.ts +37 -0
- package/src/shared/export.ts +31 -0
- package/src/shared/html/policy.ts +108 -0
- package/src/shared/html/style-vocabulary.ts +352 -0
- package/src/shared/logging/logger.ts +108 -0
- package/src/shared/logging/redact.ts +49 -0
- package/src/shared/security/frozen-csp.ts +13 -0
- package/src/shared/storage-version.ts +2 -0
- package/src/shared/tsx/execution.ts +29 -0
- package/src/shared/tsx/import-policy.ts +94 -0
- package/src/shared/util/dir-permissions.ts +94 -0
- package/src/shared/util/mermaid-nodes.ts +230 -0
- package/src/shared/util/process.ts +67 -0
- package/src/shared/util/time.ts +21 -0
- package/src/shared/version.ts +3 -0
- package/src/validation/sandbox/limits.ts +41 -0
- package/src/validation/sandbox/netns.ts +177 -0
- package/src/validation/tier0/chart.ts +177 -0
- package/src/validation/tier0/dom-shim.ts +54 -0
- package/src/validation/tier0/html.ts +408 -0
- package/src/validation/tier0/markdown.ts +285 -0
- package/src/validation/tier0/mermaid.ts +98 -0
- package/src/validation/tier0/runner.ts +504 -0
- package/src/validation/tier0/svg.ts +321 -0
- package/src/validation/tier0/tsx/allowlist-resolver.ts +77 -0
- package/src/validation/tier0/tsx/ast-policy-capabilities.ts +238 -0
- package/src/validation/tier0/tsx/ast-policy-shared.ts +71 -0
- package/src/validation/tier0/tsx/ast-policy.ts +181 -0
- package/src/validation/tier0/tsx/compiler.ts +156 -0
- package/src/validation/tier0/worker-dispatch.ts +211 -0
- package/src/validation/tier0/worker-entry.ts +96 -0
- package/src/validation/tier0/worker-input.ts +75 -0
- package/src/validation/tier1/browser-process.ts +147 -0
- package/src/validation/tier1/cdp-pipe.ts +281 -0
- package/src/validation/tier1/entries/chart.ts +5 -0
- package/src/validation/tier1/entries/html.ts +6 -0
- package/src/validation/tier1/entries/markdown.ts +5 -0
- package/src/validation/tier1/entries/mermaid.ts +5 -0
- package/src/validation/tier1/entries/svg.ts +5 -0
- package/src/validation/tier1/entries/tsx.ts +5 -0
- package/src/validation/tier1/frame-target.ts +162 -0
- package/src/validation/tier1/harness-entry.ts +261 -0
- package/src/validation/tier1/harness.ts +215 -0
- package/src/validation/tier1/isolated-probe.ts +94 -0
- package/src/validation/tier1/launcher.ts +177 -0
- package/src/validation/tier1/limits.ts +80 -0
- package/src/validation/tier1/nonce.ts +17 -0
- package/src/validation/tier1/protocol-probe.ts +519 -0
- package/src/validation/tier1/runner.ts +1122 -0
- package/src/validation/tier1/verdict.ts +246 -0
- package/src/validation/tier1/webp.ts +69 -0
- package/templates/README.md +88 -0
- package/templates/bar-compare.vl.json +63 -0
- package/templates/capacity-report.tsx +102 -0
- package/templates/decision-record.md +24 -0
- package/templates/deployment-state.mmd +40 -0
- package/templates/exemplar.md +91 -0
- package/templates/facet-story.tsx +799 -0
- package/templates/fleet-dashboard.html +141 -0
- package/templates/html-release-ledger.html +91 -0
- package/templates/html-status-report.html +114 -0
- package/templates/incident-console.tsx +147 -0
- package/templates/legion-boundaries.mmd +23 -0
- package/templates/legion-flow.mmd +15 -0
- package/templates/legion-sequence.mmd +14 -0
- package/templates/legion-state.mmd +7 -0
- package/templates/metric-card.svg +29 -0
- package/templates/observability-map.svg +101 -0
- package/templates/pipeline-audit.md +108 -0
- package/templates/release-metrics.vl.json +98 -0
- package/templates/service-topology.mmd +47 -0
- package/templates/status-report.md +32 -0
- package/templates/system-map.svg +53 -0
- package/templates/timeseries.vl.json +71 -0
- package/templates/tsx-interactive-counter.tsx +19 -0
- package/templates/tsx-status-report.tsx +31 -0
|
@@ -0,0 +1,2125 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__name
|
|
3
|
+
} from "./markdown-1s5vwkf2.js";
|
|
4
|
+
import {
|
|
5
|
+
color,
|
|
6
|
+
dispatch_default,
|
|
7
|
+
interpolateTransformCss,
|
|
8
|
+
interpolateTransformSvg,
|
|
9
|
+
now,
|
|
10
|
+
number_default,
|
|
11
|
+
rgb_default,
|
|
12
|
+
string_default,
|
|
13
|
+
timeout_default,
|
|
14
|
+
timer
|
|
15
|
+
} from "./markdown-dy5sgjhc.js";
|
|
16
|
+
import {
|
|
17
|
+
__commonJS,
|
|
18
|
+
__toESM
|
|
19
|
+
} from "./markdown-809k7q41.js";
|
|
20
|
+
|
|
21
|
+
// node_modules/dayjs/dayjs.min.js
|
|
22
|
+
var require_dayjs_min = __commonJS(function(exports, module) {
|
|
23
|
+
(function(t, e) {
|
|
24
|
+
typeof exports == "object" && typeof module != "undefined" ? module.exports = e() : typeof define == "function" && define.amd ? define(e) : (t = typeof globalThis != "undefined" ? globalThis : t || self).dayjs = e();
|
|
25
|
+
})(exports, function() {
|
|
26
|
+
var t = 1000, e = 60000, n = 3600000, r = "millisecond", i = "second", s = "minute", u = "hour", a = "day", o = "week", c = "month", f = "quarter", h = "year", d = "date", l = "Invalid Date", $ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y = /\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, M = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(t2) {
|
|
27
|
+
var e2 = ["th", "st", "nd", "rd"], n2 = t2 % 100;
|
|
28
|
+
return "[" + t2 + (e2[(n2 - 20) % 10] || e2[n2] || e2[0]) + "]";
|
|
29
|
+
} }, m = function(t2, e2, n2) {
|
|
30
|
+
var r2 = String(t2);
|
|
31
|
+
return !r2 || r2.length >= e2 ? t2 : "" + Array(e2 + 1 - r2.length).join(n2) + t2;
|
|
32
|
+
}, v = { s: m, z: function(t2) {
|
|
33
|
+
var e2 = -t2.utcOffset(), n2 = Math.abs(e2), r2 = Math.floor(n2 / 60), i2 = n2 % 60;
|
|
34
|
+
return (e2 <= 0 ? "+" : "-") + m(r2, 2, "0") + ":" + m(i2, 2, "0");
|
|
35
|
+
}, m: function t2(e2, n2) {
|
|
36
|
+
if (e2.date() < n2.date())
|
|
37
|
+
return -t2(n2, e2);
|
|
38
|
+
var r2 = 12 * (n2.year() - e2.year()) + (n2.month() - e2.month()), i2 = e2.clone().add(r2, c), s2 = n2 - i2 < 0, u2 = e2.clone().add(r2 + (s2 ? -1 : 1), c);
|
|
39
|
+
return +(-(r2 + (n2 - i2) / (s2 ? i2 - u2 : u2 - i2)) || 0);
|
|
40
|
+
}, a: function(t2) {
|
|
41
|
+
return t2 < 0 ? Math.ceil(t2) || 0 : Math.floor(t2);
|
|
42
|
+
}, p: function(t2) {
|
|
43
|
+
return { M: c, y: h, w: o, d: a, D: d, h: u, m: s, s: i, ms: r, Q: f }[t2] || String(t2 || "").toLowerCase().replace(/s$/, "");
|
|
44
|
+
}, u: function(t2) {
|
|
45
|
+
return t2 === undefined;
|
|
46
|
+
} }, g = "en", D = {};
|
|
47
|
+
D[g] = M;
|
|
48
|
+
var p = "$isDayjsObject", S = function(t2) {
|
|
49
|
+
return t2 instanceof _ || !(!t2 || !t2[p]);
|
|
50
|
+
}, w = function t2(e2, n2, r2) {
|
|
51
|
+
var i2;
|
|
52
|
+
if (!e2)
|
|
53
|
+
return g;
|
|
54
|
+
if (typeof e2 == "string") {
|
|
55
|
+
var s2 = e2.toLowerCase();
|
|
56
|
+
D[s2] && (i2 = s2), n2 && (D[s2] = n2, i2 = s2);
|
|
57
|
+
var u2 = e2.split("-");
|
|
58
|
+
if (!i2 && u2.length > 1)
|
|
59
|
+
return t2(u2[0]);
|
|
60
|
+
} else {
|
|
61
|
+
var a2 = e2.name;
|
|
62
|
+
D[a2] = e2, i2 = a2;
|
|
63
|
+
}
|
|
64
|
+
return !r2 && i2 && (g = i2), i2 || !r2 && g;
|
|
65
|
+
}, O = function(t2, e2) {
|
|
66
|
+
if (S(t2))
|
|
67
|
+
return t2.clone();
|
|
68
|
+
var n2 = typeof e2 == "object" ? e2 : {};
|
|
69
|
+
return n2.date = t2, n2.args = arguments, new _(n2);
|
|
70
|
+
}, b = v;
|
|
71
|
+
b.l = w, b.i = S, b.w = function(t2, e2) {
|
|
72
|
+
return O(t2, { locale: e2.$L, utc: e2.$u, x: e2.$x, $offset: e2.$offset });
|
|
73
|
+
};
|
|
74
|
+
var _ = function() {
|
|
75
|
+
function M2(t2) {
|
|
76
|
+
this.$L = w(t2.locale, null, true), this.parse(t2), this.$x = this.$x || t2.x || {}, this[p] = true;
|
|
77
|
+
}
|
|
78
|
+
var m2 = M2.prototype;
|
|
79
|
+
return m2.parse = function(t2) {
|
|
80
|
+
this.$d = function(t3) {
|
|
81
|
+
var { date: e2, utc: n2 } = t3;
|
|
82
|
+
if (e2 === null)
|
|
83
|
+
return new Date(NaN);
|
|
84
|
+
if (b.u(e2))
|
|
85
|
+
return new Date;
|
|
86
|
+
if (e2 instanceof Date)
|
|
87
|
+
return new Date(e2);
|
|
88
|
+
if (typeof e2 == "string" && !/Z$/i.test(e2)) {
|
|
89
|
+
var r2 = e2.match($);
|
|
90
|
+
if (r2) {
|
|
91
|
+
var i2 = r2[2] - 1 || 0, s2 = (r2[7] || "0").substring(0, 3);
|
|
92
|
+
return n2 ? new Date(Date.UTC(r2[1], i2, r2[3] || 1, r2[4] || 0, r2[5] || 0, r2[6] || 0, s2)) : new Date(r2[1], i2, r2[3] || 1, r2[4] || 0, r2[5] || 0, r2[6] || 0, s2);
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
return new Date(e2);
|
|
96
|
+
}(t2), this.init();
|
|
97
|
+
}, m2.init = function() {
|
|
98
|
+
var t2 = this.$d;
|
|
99
|
+
this.$y = t2.getFullYear(), this.$M = t2.getMonth(), this.$D = t2.getDate(), this.$W = t2.getDay(), this.$H = t2.getHours(), this.$m = t2.getMinutes(), this.$s = t2.getSeconds(), this.$ms = t2.getMilliseconds();
|
|
100
|
+
}, m2.$utils = function() {
|
|
101
|
+
return b;
|
|
102
|
+
}, m2.isValid = function() {
|
|
103
|
+
return !(this.$d.toString() === l);
|
|
104
|
+
}, m2.isSame = function(t2, e2) {
|
|
105
|
+
var n2 = O(t2);
|
|
106
|
+
return this.startOf(e2) <= n2 && n2 <= this.endOf(e2);
|
|
107
|
+
}, m2.isAfter = function(t2, e2) {
|
|
108
|
+
return O(t2) < this.startOf(e2);
|
|
109
|
+
}, m2.isBefore = function(t2, e2) {
|
|
110
|
+
return this.endOf(e2) < O(t2);
|
|
111
|
+
}, m2.$g = function(t2, e2, n2) {
|
|
112
|
+
return b.u(t2) ? this[e2] : this.set(n2, t2);
|
|
113
|
+
}, m2.unix = function() {
|
|
114
|
+
return Math.floor(this.valueOf() / 1000);
|
|
115
|
+
}, m2.valueOf = function() {
|
|
116
|
+
return this.$d.getTime();
|
|
117
|
+
}, m2.startOf = function(t2, e2) {
|
|
118
|
+
var n2 = this, r2 = !!b.u(e2) || e2, f2 = b.p(t2), l2 = function(t3, e3) {
|
|
119
|
+
var i2 = b.w(n2.$u ? Date.UTC(n2.$y, e3, t3) : new Date(n2.$y, e3, t3), n2);
|
|
120
|
+
return r2 ? i2 : i2.endOf(a);
|
|
121
|
+
}, $2 = function(t3, e3) {
|
|
122
|
+
return b.w(n2.toDate()[t3].apply(n2.toDate("s"), (r2 ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(e3)), n2);
|
|
123
|
+
}, y2 = this.$W, M3 = this.$M, m3 = this.$D, v2 = "set" + (this.$u ? "UTC" : "");
|
|
124
|
+
switch (f2) {
|
|
125
|
+
case h:
|
|
126
|
+
return r2 ? l2(1, 0) : l2(31, 11);
|
|
127
|
+
case c:
|
|
128
|
+
return r2 ? l2(1, M3) : l2(0, M3 + 1);
|
|
129
|
+
case o:
|
|
130
|
+
var g2 = this.$locale().weekStart || 0, D2 = (y2 < g2 ? y2 + 7 : y2) - g2;
|
|
131
|
+
return l2(r2 ? m3 - D2 : m3 + (6 - D2), M3);
|
|
132
|
+
case a:
|
|
133
|
+
case d:
|
|
134
|
+
return $2(v2 + "Hours", 0);
|
|
135
|
+
case u:
|
|
136
|
+
return $2(v2 + "Minutes", 1);
|
|
137
|
+
case s:
|
|
138
|
+
return $2(v2 + "Seconds", 2);
|
|
139
|
+
case i:
|
|
140
|
+
return $2(v2 + "Milliseconds", 3);
|
|
141
|
+
default:
|
|
142
|
+
return this.clone();
|
|
143
|
+
}
|
|
144
|
+
}, m2.endOf = function(t2) {
|
|
145
|
+
return this.startOf(t2, false);
|
|
146
|
+
}, m2.$set = function(t2, e2) {
|
|
147
|
+
var n2, o2 = b.p(t2), f2 = "set" + (this.$u ? "UTC" : ""), l2 = (n2 = {}, n2[a] = f2 + "Date", n2[d] = f2 + "Date", n2[c] = f2 + "Month", n2[h] = f2 + "FullYear", n2[u] = f2 + "Hours", n2[s] = f2 + "Minutes", n2[i] = f2 + "Seconds", n2[r] = f2 + "Milliseconds", n2)[o2], $2 = o2 === a ? this.$D + (e2 - this.$W) : e2;
|
|
148
|
+
if (o2 === c || o2 === h) {
|
|
149
|
+
var y2 = this.clone().set(d, 1);
|
|
150
|
+
y2.$d[l2]($2), y2.init(), this.$d = y2.set(d, Math.min(this.$D, y2.daysInMonth())).$d;
|
|
151
|
+
} else
|
|
152
|
+
l2 && this.$d[l2]($2);
|
|
153
|
+
return this.init(), this;
|
|
154
|
+
}, m2.set = function(t2, e2) {
|
|
155
|
+
return this.clone().$set(t2, e2);
|
|
156
|
+
}, m2.get = function(t2) {
|
|
157
|
+
return this[b.p(t2)]();
|
|
158
|
+
}, m2.add = function(r2, f2) {
|
|
159
|
+
var d2, l2 = this;
|
|
160
|
+
r2 = Number(r2);
|
|
161
|
+
var $2 = b.p(f2), y2 = function(t2) {
|
|
162
|
+
var e2 = O(l2);
|
|
163
|
+
return b.w(e2.date(e2.date() + Math.round(t2 * r2)), l2);
|
|
164
|
+
};
|
|
165
|
+
if ($2 === c)
|
|
166
|
+
return this.set(c, this.$M + r2);
|
|
167
|
+
if ($2 === h)
|
|
168
|
+
return this.set(h, this.$y + r2);
|
|
169
|
+
if ($2 === a)
|
|
170
|
+
return y2(1);
|
|
171
|
+
if ($2 === o)
|
|
172
|
+
return y2(7);
|
|
173
|
+
var M3 = (d2 = {}, d2[s] = e, d2[u] = n, d2[i] = t, d2)[$2] || 1, m3 = this.$d.getTime() + r2 * M3;
|
|
174
|
+
return b.w(m3, this);
|
|
175
|
+
}, m2.subtract = function(t2, e2) {
|
|
176
|
+
return this.add(-1 * t2, e2);
|
|
177
|
+
}, m2.format = function(t2) {
|
|
178
|
+
var e2 = this, n2 = this.$locale();
|
|
179
|
+
if (!this.isValid())
|
|
180
|
+
return n2.invalidDate || l;
|
|
181
|
+
var r2 = t2 || "YYYY-MM-DDTHH:mm:ssZ", i2 = b.z(this), s2 = this.$H, u2 = this.$m, a2 = this.$M, o2 = n2.weekdays, c2 = n2.months, f2 = n2.meridiem, h2 = function(t3, n3, i3, s3) {
|
|
182
|
+
return t3 && (t3[n3] || t3(e2, r2)) || i3[n3].slice(0, s3);
|
|
183
|
+
}, d2 = function(t3) {
|
|
184
|
+
return b.s(s2 % 12 || 12, t3, "0");
|
|
185
|
+
}, $2 = f2 || function(t3, e3, n3) {
|
|
186
|
+
var r3 = t3 < 12 ? "AM" : "PM";
|
|
187
|
+
return n3 ? r3.toLowerCase() : r3;
|
|
188
|
+
};
|
|
189
|
+
return r2.replace(y, function(t3, r3) {
|
|
190
|
+
return r3 || function(t4) {
|
|
191
|
+
switch (t4) {
|
|
192
|
+
case "YY":
|
|
193
|
+
return String(e2.$y).slice(-2);
|
|
194
|
+
case "YYYY":
|
|
195
|
+
return b.s(e2.$y, 4, "0");
|
|
196
|
+
case "M":
|
|
197
|
+
return a2 + 1;
|
|
198
|
+
case "MM":
|
|
199
|
+
return b.s(a2 + 1, 2, "0");
|
|
200
|
+
case "MMM":
|
|
201
|
+
return h2(n2.monthsShort, a2, c2, 3);
|
|
202
|
+
case "MMMM":
|
|
203
|
+
return h2(c2, a2);
|
|
204
|
+
case "D":
|
|
205
|
+
return e2.$D;
|
|
206
|
+
case "DD":
|
|
207
|
+
return b.s(e2.$D, 2, "0");
|
|
208
|
+
case "d":
|
|
209
|
+
return String(e2.$W);
|
|
210
|
+
case "dd":
|
|
211
|
+
return h2(n2.weekdaysMin, e2.$W, o2, 2);
|
|
212
|
+
case "ddd":
|
|
213
|
+
return h2(n2.weekdaysShort, e2.$W, o2, 3);
|
|
214
|
+
case "dddd":
|
|
215
|
+
return o2[e2.$W];
|
|
216
|
+
case "H":
|
|
217
|
+
return String(s2);
|
|
218
|
+
case "HH":
|
|
219
|
+
return b.s(s2, 2, "0");
|
|
220
|
+
case "h":
|
|
221
|
+
return d2(1);
|
|
222
|
+
case "hh":
|
|
223
|
+
return d2(2);
|
|
224
|
+
case "a":
|
|
225
|
+
return $2(s2, u2, true);
|
|
226
|
+
case "A":
|
|
227
|
+
return $2(s2, u2, false);
|
|
228
|
+
case "m":
|
|
229
|
+
return String(u2);
|
|
230
|
+
case "mm":
|
|
231
|
+
return b.s(u2, 2, "0");
|
|
232
|
+
case "s":
|
|
233
|
+
return String(e2.$s);
|
|
234
|
+
case "ss":
|
|
235
|
+
return b.s(e2.$s, 2, "0");
|
|
236
|
+
case "SSS":
|
|
237
|
+
return b.s(e2.$ms, 3, "0");
|
|
238
|
+
case "Z":
|
|
239
|
+
return i2;
|
|
240
|
+
}
|
|
241
|
+
return null;
|
|
242
|
+
}(t3) || i2.replace(":", "");
|
|
243
|
+
});
|
|
244
|
+
}, m2.utcOffset = function() {
|
|
245
|
+
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
246
|
+
}, m2.diff = function(r2, d2, l2) {
|
|
247
|
+
var $2, y2 = this, M3 = b.p(d2), m3 = O(r2), v2 = (m3.utcOffset() - this.utcOffset()) * e, g2 = this - m3, D2 = function() {
|
|
248
|
+
return b.m(y2, m3);
|
|
249
|
+
};
|
|
250
|
+
switch (M3) {
|
|
251
|
+
case h:
|
|
252
|
+
$2 = D2() / 12;
|
|
253
|
+
break;
|
|
254
|
+
case c:
|
|
255
|
+
$2 = D2();
|
|
256
|
+
break;
|
|
257
|
+
case f:
|
|
258
|
+
$2 = D2() / 3;
|
|
259
|
+
break;
|
|
260
|
+
case o:
|
|
261
|
+
$2 = (g2 - v2) / 604800000;
|
|
262
|
+
break;
|
|
263
|
+
case a:
|
|
264
|
+
$2 = (g2 - v2) / 86400000;
|
|
265
|
+
break;
|
|
266
|
+
case u:
|
|
267
|
+
$2 = g2 / n;
|
|
268
|
+
break;
|
|
269
|
+
case s:
|
|
270
|
+
$2 = g2 / e;
|
|
271
|
+
break;
|
|
272
|
+
case i:
|
|
273
|
+
$2 = g2 / t;
|
|
274
|
+
break;
|
|
275
|
+
default:
|
|
276
|
+
$2 = g2;
|
|
277
|
+
}
|
|
278
|
+
return l2 ? $2 : b.a($2);
|
|
279
|
+
}, m2.daysInMonth = function() {
|
|
280
|
+
return this.endOf(c).$D;
|
|
281
|
+
}, m2.$locale = function() {
|
|
282
|
+
return D[this.$L];
|
|
283
|
+
}, m2.locale = function(t2, e2) {
|
|
284
|
+
if (!t2)
|
|
285
|
+
return this.$L;
|
|
286
|
+
var n2 = this.clone(), r2 = w(t2, e2, true);
|
|
287
|
+
return r2 && (n2.$L = r2), n2;
|
|
288
|
+
}, m2.clone = function() {
|
|
289
|
+
return b.w(this.$d, this);
|
|
290
|
+
}, m2.toDate = function() {
|
|
291
|
+
return new Date(this.valueOf());
|
|
292
|
+
}, m2.toJSON = function() {
|
|
293
|
+
return this.isValid() ? this.toISOString() : null;
|
|
294
|
+
}, m2.toISOString = function() {
|
|
295
|
+
return this.$d.toISOString();
|
|
296
|
+
}, m2.toString = function() {
|
|
297
|
+
return this.$d.toUTCString();
|
|
298
|
+
}, M2;
|
|
299
|
+
}(), Y = _.prototype;
|
|
300
|
+
return O.prototype = Y, [["$ms", r], ["$s", i], ["$m", s], ["$H", u], ["$W", a], ["$M", c], ["$y", h], ["$D", d]].forEach(function(t2) {
|
|
301
|
+
Y[t2[1]] = function(e2) {
|
|
302
|
+
return this.$g(e2, t2[0], t2[1]);
|
|
303
|
+
};
|
|
304
|
+
}), O.extend = function(t2, e2) {
|
|
305
|
+
return t2.$i || (t2(e2, _, O), t2.$i = true), O;
|
|
306
|
+
}, O.locale = w, O.isDayjs = S, O.unix = function(t2) {
|
|
307
|
+
return O(1000 * t2);
|
|
308
|
+
}, O.en = D[g], O.Ls = D, O.p = {}, O;
|
|
309
|
+
});
|
|
310
|
+
});
|
|
311
|
+
|
|
312
|
+
// node_modules/mermaid/dist/chunks/mermaid.core/chunk-X3CZISLH.mjs
|
|
313
|
+
var import_dayjs = __toESM(require_dayjs_min(), 1);
|
|
314
|
+
var LEVELS = {
|
|
315
|
+
trace: 0,
|
|
316
|
+
debug: 1,
|
|
317
|
+
info: 2,
|
|
318
|
+
warn: 3,
|
|
319
|
+
error: 4,
|
|
320
|
+
fatal: 5
|
|
321
|
+
};
|
|
322
|
+
var log = {
|
|
323
|
+
trace: /* @__PURE__ */ __name((..._args) => {}, "trace"),
|
|
324
|
+
debug: /* @__PURE__ */ __name((..._args) => {}, "debug"),
|
|
325
|
+
info: /* @__PURE__ */ __name((..._args) => {}, "info"),
|
|
326
|
+
warn: /* @__PURE__ */ __name((..._args) => {}, "warn"),
|
|
327
|
+
error: /* @__PURE__ */ __name((..._args) => {}, "error"),
|
|
328
|
+
fatal: /* @__PURE__ */ __name((..._args) => {}, "fatal")
|
|
329
|
+
};
|
|
330
|
+
var setLogLevel = /* @__PURE__ */ __name(function(level = "fatal") {
|
|
331
|
+
let numericLevel = LEVELS.fatal;
|
|
332
|
+
if (typeof level === "string") {
|
|
333
|
+
if (level.toLowerCase() in LEVELS) {
|
|
334
|
+
numericLevel = LEVELS[level];
|
|
335
|
+
}
|
|
336
|
+
} else if (typeof level === "number") {
|
|
337
|
+
numericLevel = level;
|
|
338
|
+
}
|
|
339
|
+
log.trace = () => {};
|
|
340
|
+
log.debug = () => {};
|
|
341
|
+
log.info = () => {};
|
|
342
|
+
log.warn = () => {};
|
|
343
|
+
log.error = () => {};
|
|
344
|
+
log.fatal = () => {};
|
|
345
|
+
if (numericLevel <= LEVELS.fatal) {
|
|
346
|
+
log.fatal = console.error ? console.error.bind(console, format("FATAL"), "color: orange") : console.log.bind(console, "\x1B[35m", format("FATAL"));
|
|
347
|
+
}
|
|
348
|
+
if (numericLevel <= LEVELS.error) {
|
|
349
|
+
log.error = console.error ? console.error.bind(console, format("ERROR"), "color: orange") : console.log.bind(console, "\x1B[31m", format("ERROR"));
|
|
350
|
+
}
|
|
351
|
+
if (numericLevel <= LEVELS.warn) {
|
|
352
|
+
log.warn = console.warn ? console.warn.bind(console, format("WARN"), "color: orange") : console.log.bind(console, `\x1B[33m`, format("WARN"));
|
|
353
|
+
}
|
|
354
|
+
if (numericLevel <= LEVELS.info) {
|
|
355
|
+
log.info = console.info ? console.info.bind(console, format("INFO"), "color: lightblue") : console.log.bind(console, "\x1B[34m", format("INFO"));
|
|
356
|
+
}
|
|
357
|
+
if (numericLevel <= LEVELS.debug) {
|
|
358
|
+
log.debug = console.debug ? console.debug.bind(console, format("DEBUG"), "color: lightgreen") : console.log.bind(console, "\x1B[32m", format("DEBUG"));
|
|
359
|
+
}
|
|
360
|
+
if (numericLevel <= LEVELS.trace) {
|
|
361
|
+
log.trace = console.debug ? console.debug.bind(console, format("TRACE"), "color: lightgreen") : console.log.bind(console, "\x1B[32m", format("TRACE"));
|
|
362
|
+
}
|
|
363
|
+
}, "setLogLevel");
|
|
364
|
+
var format = /* @__PURE__ */ __name((level) => {
|
|
365
|
+
const time = import_dayjs.default().format("ss.SSS");
|
|
366
|
+
return `%c${time} : ${level} : `;
|
|
367
|
+
}, "format");
|
|
368
|
+
|
|
369
|
+
// node_modules/d3-axis/src/identity.js
|
|
370
|
+
function identity_default(x) {
|
|
371
|
+
return x;
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
// node_modules/d3-axis/src/axis.js
|
|
375
|
+
var top = 1;
|
|
376
|
+
var right = 2;
|
|
377
|
+
var bottom = 3;
|
|
378
|
+
var left = 4;
|
|
379
|
+
var epsilon = 0.000001;
|
|
380
|
+
function translateX(x) {
|
|
381
|
+
return "translate(" + x + ",0)";
|
|
382
|
+
}
|
|
383
|
+
function translateY(y) {
|
|
384
|
+
return "translate(0," + y + ")";
|
|
385
|
+
}
|
|
386
|
+
function number(scale) {
|
|
387
|
+
return (d) => +scale(d);
|
|
388
|
+
}
|
|
389
|
+
function center(scale, offset) {
|
|
390
|
+
offset = Math.max(0, scale.bandwidth() - offset * 2) / 2;
|
|
391
|
+
if (scale.round())
|
|
392
|
+
offset = Math.round(offset);
|
|
393
|
+
return (d) => +scale(d) + offset;
|
|
394
|
+
}
|
|
395
|
+
function entering() {
|
|
396
|
+
return !this.__axis;
|
|
397
|
+
}
|
|
398
|
+
function axis(orient, scale) {
|
|
399
|
+
var tickArguments = [], tickValues = null, tickFormat = null, tickSizeInner = 6, tickSizeOuter = 6, tickPadding = 3, offset = typeof window !== "undefined" && window.devicePixelRatio > 1 ? 0 : 0.5, k = orient === top || orient === left ? -1 : 1, x = orient === left || orient === right ? "x" : "y", transform = orient === top || orient === bottom ? translateX : translateY;
|
|
400
|
+
function axis2(context) {
|
|
401
|
+
var values = tickValues == null ? scale.ticks ? scale.ticks.apply(scale, tickArguments) : scale.domain() : tickValues, format2 = tickFormat == null ? scale.tickFormat ? scale.tickFormat.apply(scale, tickArguments) : identity_default : tickFormat, spacing = Math.max(tickSizeInner, 0) + tickPadding, range = scale.range(), range0 = +range[0] + offset, range1 = +range[range.length - 1] + offset, position = (scale.bandwidth ? center : number)(scale.copy(), offset), selection = context.selection ? context.selection() : context, path = selection.selectAll(".domain").data([null]), tick = selection.selectAll(".tick").data(values, scale).order(), tickExit = tick.exit(), tickEnter = tick.enter().append("g").attr("class", "tick"), line = tick.select("line"), text = tick.select("text");
|
|
402
|
+
path = path.merge(path.enter().insert("path", ".tick").attr("class", "domain").attr("stroke", "currentColor"));
|
|
403
|
+
tick = tick.merge(tickEnter);
|
|
404
|
+
line = line.merge(tickEnter.append("line").attr("stroke", "currentColor").attr(x + "2", k * tickSizeInner));
|
|
405
|
+
text = text.merge(tickEnter.append("text").attr("fill", "currentColor").attr(x, k * spacing).attr("dy", orient === top ? "0em" : orient === bottom ? "0.71em" : "0.32em"));
|
|
406
|
+
if (context !== selection) {
|
|
407
|
+
path = path.transition(context);
|
|
408
|
+
tick = tick.transition(context);
|
|
409
|
+
line = line.transition(context);
|
|
410
|
+
text = text.transition(context);
|
|
411
|
+
tickExit = tickExit.transition(context).attr("opacity", epsilon).attr("transform", function(d) {
|
|
412
|
+
return isFinite(d = position(d)) ? transform(d + offset) : this.getAttribute("transform");
|
|
413
|
+
});
|
|
414
|
+
tickEnter.attr("opacity", epsilon).attr("transform", function(d) {
|
|
415
|
+
var p = this.parentNode.__axis;
|
|
416
|
+
return transform((p && isFinite(p = p(d)) ? p : position(d)) + offset);
|
|
417
|
+
});
|
|
418
|
+
}
|
|
419
|
+
tickExit.remove();
|
|
420
|
+
path.attr("d", orient === left || orient === right ? tickSizeOuter ? "M" + k * tickSizeOuter + "," + range0 + "H" + offset + "V" + range1 + "H" + k * tickSizeOuter : "M" + offset + "," + range0 + "V" + range1 : tickSizeOuter ? "M" + range0 + "," + k * tickSizeOuter + "V" + offset + "H" + range1 + "V" + k * tickSizeOuter : "M" + range0 + "," + offset + "H" + range1);
|
|
421
|
+
tick.attr("opacity", 1).attr("transform", function(d) {
|
|
422
|
+
return transform(position(d) + offset);
|
|
423
|
+
});
|
|
424
|
+
line.attr(x + "2", k * tickSizeInner);
|
|
425
|
+
text.attr(x, k * spacing).text(format2);
|
|
426
|
+
selection.filter(entering).attr("fill", "none").attr("font-size", 10).attr("font-family", "sans-serif").attr("text-anchor", orient === right ? "start" : orient === left ? "end" : "middle");
|
|
427
|
+
selection.each(function() {
|
|
428
|
+
this.__axis = position;
|
|
429
|
+
});
|
|
430
|
+
}
|
|
431
|
+
axis2.scale = function(_) {
|
|
432
|
+
return arguments.length ? (scale = _, axis2) : scale;
|
|
433
|
+
};
|
|
434
|
+
axis2.ticks = function() {
|
|
435
|
+
return tickArguments = Array.from(arguments), axis2;
|
|
436
|
+
};
|
|
437
|
+
axis2.tickArguments = function(_) {
|
|
438
|
+
return arguments.length ? (tickArguments = _ == null ? [] : Array.from(_), axis2) : tickArguments.slice();
|
|
439
|
+
};
|
|
440
|
+
axis2.tickValues = function(_) {
|
|
441
|
+
return arguments.length ? (tickValues = _ == null ? null : Array.from(_), axis2) : tickValues && tickValues.slice();
|
|
442
|
+
};
|
|
443
|
+
axis2.tickFormat = function(_) {
|
|
444
|
+
return arguments.length ? (tickFormat = _, axis2) : tickFormat;
|
|
445
|
+
};
|
|
446
|
+
axis2.tickSize = function(_) {
|
|
447
|
+
return arguments.length ? (tickSizeInner = tickSizeOuter = +_, axis2) : tickSizeInner;
|
|
448
|
+
};
|
|
449
|
+
axis2.tickSizeInner = function(_) {
|
|
450
|
+
return arguments.length ? (tickSizeInner = +_, axis2) : tickSizeInner;
|
|
451
|
+
};
|
|
452
|
+
axis2.tickSizeOuter = function(_) {
|
|
453
|
+
return arguments.length ? (tickSizeOuter = +_, axis2) : tickSizeOuter;
|
|
454
|
+
};
|
|
455
|
+
axis2.tickPadding = function(_) {
|
|
456
|
+
return arguments.length ? (tickPadding = +_, axis2) : tickPadding;
|
|
457
|
+
};
|
|
458
|
+
axis2.offset = function(_) {
|
|
459
|
+
return arguments.length ? (offset = +_, axis2) : offset;
|
|
460
|
+
};
|
|
461
|
+
return axis2;
|
|
462
|
+
}
|
|
463
|
+
function axisTop(scale) {
|
|
464
|
+
return axis(top, scale);
|
|
465
|
+
}
|
|
466
|
+
function axisBottom(scale) {
|
|
467
|
+
return axis(bottom, scale);
|
|
468
|
+
}
|
|
469
|
+
// node_modules/d3-selection/src/selector.js
|
|
470
|
+
function none() {}
|
|
471
|
+
function selector_default(selector) {
|
|
472
|
+
return selector == null ? none : function() {
|
|
473
|
+
return this.querySelector(selector);
|
|
474
|
+
};
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
// node_modules/d3-selection/src/selection/select.js
|
|
478
|
+
function select_default(select) {
|
|
479
|
+
if (typeof select !== "function")
|
|
480
|
+
select = selector_default(select);
|
|
481
|
+
for (var groups = this._groups, m = groups.length, subgroups = new Array(m), j = 0;j < m; ++j) {
|
|
482
|
+
for (var group = groups[j], n = group.length, subgroup = subgroups[j] = new Array(n), node, subnode, i = 0;i < n; ++i) {
|
|
483
|
+
if ((node = group[i]) && (subnode = select.call(node, node.__data__, i, group))) {
|
|
484
|
+
if ("__data__" in node)
|
|
485
|
+
subnode.__data__ = node.__data__;
|
|
486
|
+
subgroup[i] = subnode;
|
|
487
|
+
}
|
|
488
|
+
}
|
|
489
|
+
}
|
|
490
|
+
return new Selection(subgroups, this._parents);
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
// node_modules/d3-selection/src/array.js
|
|
494
|
+
function array(x) {
|
|
495
|
+
return x == null ? [] : Array.isArray(x) ? x : Array.from(x);
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
// node_modules/d3-selection/src/selectorAll.js
|
|
499
|
+
function empty() {
|
|
500
|
+
return [];
|
|
501
|
+
}
|
|
502
|
+
function selectorAll_default(selector) {
|
|
503
|
+
return selector == null ? empty : function() {
|
|
504
|
+
return this.querySelectorAll(selector);
|
|
505
|
+
};
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
// node_modules/d3-selection/src/selection/selectAll.js
|
|
509
|
+
function arrayAll(select) {
|
|
510
|
+
return function() {
|
|
511
|
+
return array(select.apply(this, arguments));
|
|
512
|
+
};
|
|
513
|
+
}
|
|
514
|
+
function selectAll_default(select) {
|
|
515
|
+
if (typeof select === "function")
|
|
516
|
+
select = arrayAll(select);
|
|
517
|
+
else
|
|
518
|
+
select = selectorAll_default(select);
|
|
519
|
+
for (var groups = this._groups, m = groups.length, subgroups = [], parents = [], j = 0;j < m; ++j) {
|
|
520
|
+
for (var group = groups[j], n = group.length, node, i = 0;i < n; ++i) {
|
|
521
|
+
if (node = group[i]) {
|
|
522
|
+
subgroups.push(select.call(node, node.__data__, i, group));
|
|
523
|
+
parents.push(node);
|
|
524
|
+
}
|
|
525
|
+
}
|
|
526
|
+
}
|
|
527
|
+
return new Selection(subgroups, parents);
|
|
528
|
+
}
|
|
529
|
+
|
|
530
|
+
// node_modules/d3-selection/src/matcher.js
|
|
531
|
+
function matcher_default(selector) {
|
|
532
|
+
return function() {
|
|
533
|
+
return this.matches(selector);
|
|
534
|
+
};
|
|
535
|
+
}
|
|
536
|
+
function childMatcher(selector) {
|
|
537
|
+
return function(node) {
|
|
538
|
+
return node.matches(selector);
|
|
539
|
+
};
|
|
540
|
+
}
|
|
541
|
+
|
|
542
|
+
// node_modules/d3-selection/src/selection/selectChild.js
|
|
543
|
+
var find = Array.prototype.find;
|
|
544
|
+
function childFind(match) {
|
|
545
|
+
return function() {
|
|
546
|
+
return find.call(this.children, match);
|
|
547
|
+
};
|
|
548
|
+
}
|
|
549
|
+
function childFirst() {
|
|
550
|
+
return this.firstElementChild;
|
|
551
|
+
}
|
|
552
|
+
function selectChild_default(match) {
|
|
553
|
+
return this.select(match == null ? childFirst : childFind(typeof match === "function" ? match : childMatcher(match)));
|
|
554
|
+
}
|
|
555
|
+
|
|
556
|
+
// node_modules/d3-selection/src/selection/selectChildren.js
|
|
557
|
+
var filter = Array.prototype.filter;
|
|
558
|
+
function children() {
|
|
559
|
+
return Array.from(this.children);
|
|
560
|
+
}
|
|
561
|
+
function childrenFilter(match) {
|
|
562
|
+
return function() {
|
|
563
|
+
return filter.call(this.children, match);
|
|
564
|
+
};
|
|
565
|
+
}
|
|
566
|
+
function selectChildren_default(match) {
|
|
567
|
+
return this.selectAll(match == null ? children : childrenFilter(typeof match === "function" ? match : childMatcher(match)));
|
|
568
|
+
}
|
|
569
|
+
|
|
570
|
+
// node_modules/d3-selection/src/selection/filter.js
|
|
571
|
+
function filter_default(match) {
|
|
572
|
+
if (typeof match !== "function")
|
|
573
|
+
match = matcher_default(match);
|
|
574
|
+
for (var groups = this._groups, m = groups.length, subgroups = new Array(m), j = 0;j < m; ++j) {
|
|
575
|
+
for (var group = groups[j], n = group.length, subgroup = subgroups[j] = [], node, i = 0;i < n; ++i) {
|
|
576
|
+
if ((node = group[i]) && match.call(node, node.__data__, i, group)) {
|
|
577
|
+
subgroup.push(node);
|
|
578
|
+
}
|
|
579
|
+
}
|
|
580
|
+
}
|
|
581
|
+
return new Selection(subgroups, this._parents);
|
|
582
|
+
}
|
|
583
|
+
|
|
584
|
+
// node_modules/d3-selection/src/selection/sparse.js
|
|
585
|
+
function sparse_default(update) {
|
|
586
|
+
return new Array(update.length);
|
|
587
|
+
}
|
|
588
|
+
|
|
589
|
+
// node_modules/d3-selection/src/selection/enter.js
|
|
590
|
+
function enter_default() {
|
|
591
|
+
return new Selection(this._enter || this._groups.map(sparse_default), this._parents);
|
|
592
|
+
}
|
|
593
|
+
function EnterNode(parent, datum) {
|
|
594
|
+
this.ownerDocument = parent.ownerDocument;
|
|
595
|
+
this.namespaceURI = parent.namespaceURI;
|
|
596
|
+
this._next = null;
|
|
597
|
+
this._parent = parent;
|
|
598
|
+
this.__data__ = datum;
|
|
599
|
+
}
|
|
600
|
+
EnterNode.prototype = {
|
|
601
|
+
constructor: EnterNode,
|
|
602
|
+
appendChild: function(child) {
|
|
603
|
+
return this._parent.insertBefore(child, this._next);
|
|
604
|
+
},
|
|
605
|
+
insertBefore: function(child, next) {
|
|
606
|
+
return this._parent.insertBefore(child, next);
|
|
607
|
+
},
|
|
608
|
+
querySelector: function(selector) {
|
|
609
|
+
return this._parent.querySelector(selector);
|
|
610
|
+
},
|
|
611
|
+
querySelectorAll: function(selector) {
|
|
612
|
+
return this._parent.querySelectorAll(selector);
|
|
613
|
+
}
|
|
614
|
+
};
|
|
615
|
+
|
|
616
|
+
// node_modules/d3-selection/src/constant.js
|
|
617
|
+
function constant_default(x) {
|
|
618
|
+
return function() {
|
|
619
|
+
return x;
|
|
620
|
+
};
|
|
621
|
+
}
|
|
622
|
+
|
|
623
|
+
// node_modules/d3-selection/src/selection/data.js
|
|
624
|
+
function bindIndex(parent, group, enter, update, exit, data) {
|
|
625
|
+
var i = 0, node, groupLength = group.length, dataLength = data.length;
|
|
626
|
+
for (;i < dataLength; ++i) {
|
|
627
|
+
if (node = group[i]) {
|
|
628
|
+
node.__data__ = data[i];
|
|
629
|
+
update[i] = node;
|
|
630
|
+
} else {
|
|
631
|
+
enter[i] = new EnterNode(parent, data[i]);
|
|
632
|
+
}
|
|
633
|
+
}
|
|
634
|
+
for (;i < groupLength; ++i) {
|
|
635
|
+
if (node = group[i]) {
|
|
636
|
+
exit[i] = node;
|
|
637
|
+
}
|
|
638
|
+
}
|
|
639
|
+
}
|
|
640
|
+
function bindKey(parent, group, enter, update, exit, data, key) {
|
|
641
|
+
var i, node, nodeByKeyValue = new Map, groupLength = group.length, dataLength = data.length, keyValues = new Array(groupLength), keyValue;
|
|
642
|
+
for (i = 0;i < groupLength; ++i) {
|
|
643
|
+
if (node = group[i]) {
|
|
644
|
+
keyValues[i] = keyValue = key.call(node, node.__data__, i, group) + "";
|
|
645
|
+
if (nodeByKeyValue.has(keyValue)) {
|
|
646
|
+
exit[i] = node;
|
|
647
|
+
} else {
|
|
648
|
+
nodeByKeyValue.set(keyValue, node);
|
|
649
|
+
}
|
|
650
|
+
}
|
|
651
|
+
}
|
|
652
|
+
for (i = 0;i < dataLength; ++i) {
|
|
653
|
+
keyValue = key.call(parent, data[i], i, data) + "";
|
|
654
|
+
if (node = nodeByKeyValue.get(keyValue)) {
|
|
655
|
+
update[i] = node;
|
|
656
|
+
node.__data__ = data[i];
|
|
657
|
+
nodeByKeyValue.delete(keyValue);
|
|
658
|
+
} else {
|
|
659
|
+
enter[i] = new EnterNode(parent, data[i]);
|
|
660
|
+
}
|
|
661
|
+
}
|
|
662
|
+
for (i = 0;i < groupLength; ++i) {
|
|
663
|
+
if ((node = group[i]) && nodeByKeyValue.get(keyValues[i]) === node) {
|
|
664
|
+
exit[i] = node;
|
|
665
|
+
}
|
|
666
|
+
}
|
|
667
|
+
}
|
|
668
|
+
function datum(node) {
|
|
669
|
+
return node.__data__;
|
|
670
|
+
}
|
|
671
|
+
function data_default(value, key) {
|
|
672
|
+
if (!arguments.length)
|
|
673
|
+
return Array.from(this, datum);
|
|
674
|
+
var bind = key ? bindKey : bindIndex, parents = this._parents, groups = this._groups;
|
|
675
|
+
if (typeof value !== "function")
|
|
676
|
+
value = constant_default(value);
|
|
677
|
+
for (var m = groups.length, update = new Array(m), enter = new Array(m), exit = new Array(m), j = 0;j < m; ++j) {
|
|
678
|
+
var parent = parents[j], group = groups[j], groupLength = group.length, data = arraylike(value.call(parent, parent && parent.__data__, j, parents)), dataLength = data.length, enterGroup = enter[j] = new Array(dataLength), updateGroup = update[j] = new Array(dataLength), exitGroup = exit[j] = new Array(groupLength);
|
|
679
|
+
bind(parent, group, enterGroup, updateGroup, exitGroup, data, key);
|
|
680
|
+
for (var i0 = 0, i1 = 0, previous, next;i0 < dataLength; ++i0) {
|
|
681
|
+
if (previous = enterGroup[i0]) {
|
|
682
|
+
if (i0 >= i1)
|
|
683
|
+
i1 = i0 + 1;
|
|
684
|
+
while (!(next = updateGroup[i1]) && ++i1 < dataLength)
|
|
685
|
+
;
|
|
686
|
+
previous._next = next || null;
|
|
687
|
+
}
|
|
688
|
+
}
|
|
689
|
+
}
|
|
690
|
+
update = new Selection(update, parents);
|
|
691
|
+
update._enter = enter;
|
|
692
|
+
update._exit = exit;
|
|
693
|
+
return update;
|
|
694
|
+
}
|
|
695
|
+
function arraylike(data) {
|
|
696
|
+
return typeof data === "object" && "length" in data ? data : Array.from(data);
|
|
697
|
+
}
|
|
698
|
+
|
|
699
|
+
// node_modules/d3-selection/src/selection/exit.js
|
|
700
|
+
function exit_default() {
|
|
701
|
+
return new Selection(this._exit || this._groups.map(sparse_default), this._parents);
|
|
702
|
+
}
|
|
703
|
+
|
|
704
|
+
// node_modules/d3-selection/src/selection/join.js
|
|
705
|
+
function join_default(onenter, onupdate, onexit) {
|
|
706
|
+
var enter = this.enter(), update = this, exit = this.exit();
|
|
707
|
+
if (typeof onenter === "function") {
|
|
708
|
+
enter = onenter(enter);
|
|
709
|
+
if (enter)
|
|
710
|
+
enter = enter.selection();
|
|
711
|
+
} else {
|
|
712
|
+
enter = enter.append(onenter + "");
|
|
713
|
+
}
|
|
714
|
+
if (onupdate != null) {
|
|
715
|
+
update = onupdate(update);
|
|
716
|
+
if (update)
|
|
717
|
+
update = update.selection();
|
|
718
|
+
}
|
|
719
|
+
if (onexit == null)
|
|
720
|
+
exit.remove();
|
|
721
|
+
else
|
|
722
|
+
onexit(exit);
|
|
723
|
+
return enter && update ? enter.merge(update).order() : update;
|
|
724
|
+
}
|
|
725
|
+
|
|
726
|
+
// node_modules/d3-selection/src/selection/merge.js
|
|
727
|
+
function merge_default(context) {
|
|
728
|
+
var selection = context.selection ? context.selection() : context;
|
|
729
|
+
for (var groups0 = this._groups, groups1 = selection._groups, m0 = groups0.length, m1 = groups1.length, m = Math.min(m0, m1), merges = new Array(m0), j = 0;j < m; ++j) {
|
|
730
|
+
for (var group0 = groups0[j], group1 = groups1[j], n = group0.length, merge = merges[j] = new Array(n), node, i = 0;i < n; ++i) {
|
|
731
|
+
if (node = group0[i] || group1[i]) {
|
|
732
|
+
merge[i] = node;
|
|
733
|
+
}
|
|
734
|
+
}
|
|
735
|
+
}
|
|
736
|
+
for (;j < m0; ++j) {
|
|
737
|
+
merges[j] = groups0[j];
|
|
738
|
+
}
|
|
739
|
+
return new Selection(merges, this._parents);
|
|
740
|
+
}
|
|
741
|
+
|
|
742
|
+
// node_modules/d3-selection/src/selection/order.js
|
|
743
|
+
function order_default() {
|
|
744
|
+
for (var groups = this._groups, j = -1, m = groups.length;++j < m; ) {
|
|
745
|
+
for (var group = groups[j], i = group.length - 1, next = group[i], node;--i >= 0; ) {
|
|
746
|
+
if (node = group[i]) {
|
|
747
|
+
if (next && node.compareDocumentPosition(next) ^ 4)
|
|
748
|
+
next.parentNode.insertBefore(node, next);
|
|
749
|
+
next = node;
|
|
750
|
+
}
|
|
751
|
+
}
|
|
752
|
+
}
|
|
753
|
+
return this;
|
|
754
|
+
}
|
|
755
|
+
|
|
756
|
+
// node_modules/d3-selection/src/selection/sort.js
|
|
757
|
+
function sort_default(compare) {
|
|
758
|
+
if (!compare)
|
|
759
|
+
compare = ascending;
|
|
760
|
+
function compareNode(a, b) {
|
|
761
|
+
return a && b ? compare(a.__data__, b.__data__) : !a - !b;
|
|
762
|
+
}
|
|
763
|
+
for (var groups = this._groups, m = groups.length, sortgroups = new Array(m), j = 0;j < m; ++j) {
|
|
764
|
+
for (var group = groups[j], n = group.length, sortgroup = sortgroups[j] = new Array(n), node, i = 0;i < n; ++i) {
|
|
765
|
+
if (node = group[i]) {
|
|
766
|
+
sortgroup[i] = node;
|
|
767
|
+
}
|
|
768
|
+
}
|
|
769
|
+
sortgroup.sort(compareNode);
|
|
770
|
+
}
|
|
771
|
+
return new Selection(sortgroups, this._parents).order();
|
|
772
|
+
}
|
|
773
|
+
function ascending(a, b) {
|
|
774
|
+
return a < b ? -1 : a > b ? 1 : a >= b ? 0 : NaN;
|
|
775
|
+
}
|
|
776
|
+
|
|
777
|
+
// node_modules/d3-selection/src/selection/call.js
|
|
778
|
+
function call_default() {
|
|
779
|
+
var callback = arguments[0];
|
|
780
|
+
arguments[0] = this;
|
|
781
|
+
callback.apply(null, arguments);
|
|
782
|
+
return this;
|
|
783
|
+
}
|
|
784
|
+
|
|
785
|
+
// node_modules/d3-selection/src/selection/nodes.js
|
|
786
|
+
function nodes_default() {
|
|
787
|
+
return Array.from(this);
|
|
788
|
+
}
|
|
789
|
+
|
|
790
|
+
// node_modules/d3-selection/src/selection/node.js
|
|
791
|
+
function node_default() {
|
|
792
|
+
for (var groups = this._groups, j = 0, m = groups.length;j < m; ++j) {
|
|
793
|
+
for (var group = groups[j], i = 0, n = group.length;i < n; ++i) {
|
|
794
|
+
var node = group[i];
|
|
795
|
+
if (node)
|
|
796
|
+
return node;
|
|
797
|
+
}
|
|
798
|
+
}
|
|
799
|
+
return null;
|
|
800
|
+
}
|
|
801
|
+
|
|
802
|
+
// node_modules/d3-selection/src/selection/size.js
|
|
803
|
+
function size_default() {
|
|
804
|
+
let size = 0;
|
|
805
|
+
for (const node of this)
|
|
806
|
+
++size;
|
|
807
|
+
return size;
|
|
808
|
+
}
|
|
809
|
+
|
|
810
|
+
// node_modules/d3-selection/src/selection/empty.js
|
|
811
|
+
function empty_default() {
|
|
812
|
+
return !this.node();
|
|
813
|
+
}
|
|
814
|
+
|
|
815
|
+
// node_modules/d3-selection/src/selection/each.js
|
|
816
|
+
function each_default(callback) {
|
|
817
|
+
for (var groups = this._groups, j = 0, m = groups.length;j < m; ++j) {
|
|
818
|
+
for (var group = groups[j], i = 0, n = group.length, node;i < n; ++i) {
|
|
819
|
+
if (node = group[i])
|
|
820
|
+
callback.call(node, node.__data__, i, group);
|
|
821
|
+
}
|
|
822
|
+
}
|
|
823
|
+
return this;
|
|
824
|
+
}
|
|
825
|
+
|
|
826
|
+
// node_modules/d3-selection/src/namespaces.js
|
|
827
|
+
var xhtml = "http://www.w3.org/1999/xhtml";
|
|
828
|
+
var namespaces_default = {
|
|
829
|
+
svg: "http://www.w3.org/2000/svg",
|
|
830
|
+
xhtml,
|
|
831
|
+
xlink: "http://www.w3.org/1999/xlink",
|
|
832
|
+
xml: "http://www.w3.org/XML/1998/namespace",
|
|
833
|
+
xmlns: "http://www.w3.org/2000/xmlns/"
|
|
834
|
+
};
|
|
835
|
+
|
|
836
|
+
// node_modules/d3-selection/src/namespace.js
|
|
837
|
+
function namespace_default(name) {
|
|
838
|
+
var prefix = name += "", i = prefix.indexOf(":");
|
|
839
|
+
if (i >= 0 && (prefix = name.slice(0, i)) !== "xmlns")
|
|
840
|
+
name = name.slice(i + 1);
|
|
841
|
+
return namespaces_default.hasOwnProperty(prefix) ? { space: namespaces_default[prefix], local: name } : name;
|
|
842
|
+
}
|
|
843
|
+
|
|
844
|
+
// node_modules/d3-selection/src/selection/attr.js
|
|
845
|
+
function attrRemove(name) {
|
|
846
|
+
return function() {
|
|
847
|
+
this.removeAttribute(name);
|
|
848
|
+
};
|
|
849
|
+
}
|
|
850
|
+
function attrRemoveNS(fullname) {
|
|
851
|
+
return function() {
|
|
852
|
+
this.removeAttributeNS(fullname.space, fullname.local);
|
|
853
|
+
};
|
|
854
|
+
}
|
|
855
|
+
function attrConstant(name, value) {
|
|
856
|
+
return function() {
|
|
857
|
+
this.setAttribute(name, value);
|
|
858
|
+
};
|
|
859
|
+
}
|
|
860
|
+
function attrConstantNS(fullname, value) {
|
|
861
|
+
return function() {
|
|
862
|
+
this.setAttributeNS(fullname.space, fullname.local, value);
|
|
863
|
+
};
|
|
864
|
+
}
|
|
865
|
+
function attrFunction(name, value) {
|
|
866
|
+
return function() {
|
|
867
|
+
var v = value.apply(this, arguments);
|
|
868
|
+
if (v == null)
|
|
869
|
+
this.removeAttribute(name);
|
|
870
|
+
else
|
|
871
|
+
this.setAttribute(name, v);
|
|
872
|
+
};
|
|
873
|
+
}
|
|
874
|
+
function attrFunctionNS(fullname, value) {
|
|
875
|
+
return function() {
|
|
876
|
+
var v = value.apply(this, arguments);
|
|
877
|
+
if (v == null)
|
|
878
|
+
this.removeAttributeNS(fullname.space, fullname.local);
|
|
879
|
+
else
|
|
880
|
+
this.setAttributeNS(fullname.space, fullname.local, v);
|
|
881
|
+
};
|
|
882
|
+
}
|
|
883
|
+
function attr_default(name, value) {
|
|
884
|
+
var fullname = namespace_default(name);
|
|
885
|
+
if (arguments.length < 2) {
|
|
886
|
+
var node = this.node();
|
|
887
|
+
return fullname.local ? node.getAttributeNS(fullname.space, fullname.local) : node.getAttribute(fullname);
|
|
888
|
+
}
|
|
889
|
+
return this.each((value == null ? fullname.local ? attrRemoveNS : attrRemove : typeof value === "function" ? fullname.local ? attrFunctionNS : attrFunction : fullname.local ? attrConstantNS : attrConstant)(fullname, value));
|
|
890
|
+
}
|
|
891
|
+
|
|
892
|
+
// node_modules/d3-selection/src/window.js
|
|
893
|
+
function window_default(node) {
|
|
894
|
+
return node.ownerDocument && node.ownerDocument.defaultView || node.document && node || node.defaultView;
|
|
895
|
+
}
|
|
896
|
+
|
|
897
|
+
// node_modules/d3-selection/src/selection/style.js
|
|
898
|
+
function styleRemove(name) {
|
|
899
|
+
return function() {
|
|
900
|
+
this.style.removeProperty(name);
|
|
901
|
+
};
|
|
902
|
+
}
|
|
903
|
+
function styleConstant(name, value, priority) {
|
|
904
|
+
return function() {
|
|
905
|
+
this.style.setProperty(name, value, priority);
|
|
906
|
+
};
|
|
907
|
+
}
|
|
908
|
+
function styleFunction(name, value, priority) {
|
|
909
|
+
return function() {
|
|
910
|
+
var v = value.apply(this, arguments);
|
|
911
|
+
if (v == null)
|
|
912
|
+
this.style.removeProperty(name);
|
|
913
|
+
else
|
|
914
|
+
this.style.setProperty(name, v, priority);
|
|
915
|
+
};
|
|
916
|
+
}
|
|
917
|
+
function style_default(name, value, priority) {
|
|
918
|
+
return arguments.length > 1 ? this.each((value == null ? styleRemove : typeof value === "function" ? styleFunction : styleConstant)(name, value, priority == null ? "" : priority)) : styleValue(this.node(), name);
|
|
919
|
+
}
|
|
920
|
+
function styleValue(node, name) {
|
|
921
|
+
return node.style.getPropertyValue(name) || window_default(node).getComputedStyle(node, null).getPropertyValue(name);
|
|
922
|
+
}
|
|
923
|
+
|
|
924
|
+
// node_modules/d3-selection/src/selection/property.js
|
|
925
|
+
function propertyRemove(name) {
|
|
926
|
+
return function() {
|
|
927
|
+
delete this[name];
|
|
928
|
+
};
|
|
929
|
+
}
|
|
930
|
+
function propertyConstant(name, value) {
|
|
931
|
+
return function() {
|
|
932
|
+
this[name] = value;
|
|
933
|
+
};
|
|
934
|
+
}
|
|
935
|
+
function propertyFunction(name, value) {
|
|
936
|
+
return function() {
|
|
937
|
+
var v = value.apply(this, arguments);
|
|
938
|
+
if (v == null)
|
|
939
|
+
delete this[name];
|
|
940
|
+
else
|
|
941
|
+
this[name] = v;
|
|
942
|
+
};
|
|
943
|
+
}
|
|
944
|
+
function property_default(name, value) {
|
|
945
|
+
return arguments.length > 1 ? this.each((value == null ? propertyRemove : typeof value === "function" ? propertyFunction : propertyConstant)(name, value)) : this.node()[name];
|
|
946
|
+
}
|
|
947
|
+
|
|
948
|
+
// node_modules/d3-selection/src/selection/classed.js
|
|
949
|
+
function classArray(string) {
|
|
950
|
+
return string.trim().split(/^|\s+/);
|
|
951
|
+
}
|
|
952
|
+
function classList(node) {
|
|
953
|
+
return node.classList || new ClassList(node);
|
|
954
|
+
}
|
|
955
|
+
function ClassList(node) {
|
|
956
|
+
this._node = node;
|
|
957
|
+
this._names = classArray(node.getAttribute("class") || "");
|
|
958
|
+
}
|
|
959
|
+
ClassList.prototype = {
|
|
960
|
+
add: function(name) {
|
|
961
|
+
var i = this._names.indexOf(name);
|
|
962
|
+
if (i < 0) {
|
|
963
|
+
this._names.push(name);
|
|
964
|
+
this._node.setAttribute("class", this._names.join(" "));
|
|
965
|
+
}
|
|
966
|
+
},
|
|
967
|
+
remove: function(name) {
|
|
968
|
+
var i = this._names.indexOf(name);
|
|
969
|
+
if (i >= 0) {
|
|
970
|
+
this._names.splice(i, 1);
|
|
971
|
+
this._node.setAttribute("class", this._names.join(" "));
|
|
972
|
+
}
|
|
973
|
+
},
|
|
974
|
+
contains: function(name) {
|
|
975
|
+
return this._names.indexOf(name) >= 0;
|
|
976
|
+
}
|
|
977
|
+
};
|
|
978
|
+
function classedAdd(node, names) {
|
|
979
|
+
var list = classList(node), i = -1, n = names.length;
|
|
980
|
+
while (++i < n)
|
|
981
|
+
list.add(names[i]);
|
|
982
|
+
}
|
|
983
|
+
function classedRemove(node, names) {
|
|
984
|
+
var list = classList(node), i = -1, n = names.length;
|
|
985
|
+
while (++i < n)
|
|
986
|
+
list.remove(names[i]);
|
|
987
|
+
}
|
|
988
|
+
function classedTrue(names) {
|
|
989
|
+
return function() {
|
|
990
|
+
classedAdd(this, names);
|
|
991
|
+
};
|
|
992
|
+
}
|
|
993
|
+
function classedFalse(names) {
|
|
994
|
+
return function() {
|
|
995
|
+
classedRemove(this, names);
|
|
996
|
+
};
|
|
997
|
+
}
|
|
998
|
+
function classedFunction(names, value) {
|
|
999
|
+
return function() {
|
|
1000
|
+
(value.apply(this, arguments) ? classedAdd : classedRemove)(this, names);
|
|
1001
|
+
};
|
|
1002
|
+
}
|
|
1003
|
+
function classed_default(name, value) {
|
|
1004
|
+
var names = classArray(name + "");
|
|
1005
|
+
if (arguments.length < 2) {
|
|
1006
|
+
var list = classList(this.node()), i = -1, n = names.length;
|
|
1007
|
+
while (++i < n)
|
|
1008
|
+
if (!list.contains(names[i]))
|
|
1009
|
+
return false;
|
|
1010
|
+
return true;
|
|
1011
|
+
}
|
|
1012
|
+
return this.each((typeof value === "function" ? classedFunction : value ? classedTrue : classedFalse)(names, value));
|
|
1013
|
+
}
|
|
1014
|
+
|
|
1015
|
+
// node_modules/d3-selection/src/selection/text.js
|
|
1016
|
+
function textRemove() {
|
|
1017
|
+
this.textContent = "";
|
|
1018
|
+
}
|
|
1019
|
+
function textConstant(value) {
|
|
1020
|
+
return function() {
|
|
1021
|
+
this.textContent = value;
|
|
1022
|
+
};
|
|
1023
|
+
}
|
|
1024
|
+
function textFunction(value) {
|
|
1025
|
+
return function() {
|
|
1026
|
+
var v = value.apply(this, arguments);
|
|
1027
|
+
this.textContent = v == null ? "" : v;
|
|
1028
|
+
};
|
|
1029
|
+
}
|
|
1030
|
+
function text_default(value) {
|
|
1031
|
+
return arguments.length ? this.each(value == null ? textRemove : (typeof value === "function" ? textFunction : textConstant)(value)) : this.node().textContent;
|
|
1032
|
+
}
|
|
1033
|
+
|
|
1034
|
+
// node_modules/d3-selection/src/selection/html.js
|
|
1035
|
+
function htmlRemove() {
|
|
1036
|
+
this.innerHTML = "";
|
|
1037
|
+
}
|
|
1038
|
+
function htmlConstant(value) {
|
|
1039
|
+
return function() {
|
|
1040
|
+
this.innerHTML = value;
|
|
1041
|
+
};
|
|
1042
|
+
}
|
|
1043
|
+
function htmlFunction(value) {
|
|
1044
|
+
return function() {
|
|
1045
|
+
var v = value.apply(this, arguments);
|
|
1046
|
+
this.innerHTML = v == null ? "" : v;
|
|
1047
|
+
};
|
|
1048
|
+
}
|
|
1049
|
+
function html_default(value) {
|
|
1050
|
+
return arguments.length ? this.each(value == null ? htmlRemove : (typeof value === "function" ? htmlFunction : htmlConstant)(value)) : this.node().innerHTML;
|
|
1051
|
+
}
|
|
1052
|
+
|
|
1053
|
+
// node_modules/d3-selection/src/selection/raise.js
|
|
1054
|
+
function raise() {
|
|
1055
|
+
if (this.nextSibling)
|
|
1056
|
+
this.parentNode.appendChild(this);
|
|
1057
|
+
}
|
|
1058
|
+
function raise_default() {
|
|
1059
|
+
return this.each(raise);
|
|
1060
|
+
}
|
|
1061
|
+
|
|
1062
|
+
// node_modules/d3-selection/src/selection/lower.js
|
|
1063
|
+
function lower() {
|
|
1064
|
+
if (this.previousSibling)
|
|
1065
|
+
this.parentNode.insertBefore(this, this.parentNode.firstChild);
|
|
1066
|
+
}
|
|
1067
|
+
function lower_default() {
|
|
1068
|
+
return this.each(lower);
|
|
1069
|
+
}
|
|
1070
|
+
|
|
1071
|
+
// node_modules/d3-selection/src/creator.js
|
|
1072
|
+
function creatorInherit(name) {
|
|
1073
|
+
return function() {
|
|
1074
|
+
var document2 = this.ownerDocument, uri = this.namespaceURI;
|
|
1075
|
+
return uri === xhtml && document2.documentElement.namespaceURI === xhtml ? document2.createElement(name) : document2.createElementNS(uri, name);
|
|
1076
|
+
};
|
|
1077
|
+
}
|
|
1078
|
+
function creatorFixed(fullname) {
|
|
1079
|
+
return function() {
|
|
1080
|
+
return this.ownerDocument.createElementNS(fullname.space, fullname.local);
|
|
1081
|
+
};
|
|
1082
|
+
}
|
|
1083
|
+
function creator_default(name) {
|
|
1084
|
+
var fullname = namespace_default(name);
|
|
1085
|
+
return (fullname.local ? creatorFixed : creatorInherit)(fullname);
|
|
1086
|
+
}
|
|
1087
|
+
|
|
1088
|
+
// node_modules/d3-selection/src/selection/append.js
|
|
1089
|
+
function append_default(name) {
|
|
1090
|
+
var create = typeof name === "function" ? name : creator_default(name);
|
|
1091
|
+
return this.select(function() {
|
|
1092
|
+
return this.appendChild(create.apply(this, arguments));
|
|
1093
|
+
});
|
|
1094
|
+
}
|
|
1095
|
+
|
|
1096
|
+
// node_modules/d3-selection/src/selection/insert.js
|
|
1097
|
+
function constantNull() {
|
|
1098
|
+
return null;
|
|
1099
|
+
}
|
|
1100
|
+
function insert_default(name, before) {
|
|
1101
|
+
var create = typeof name === "function" ? name : creator_default(name), select = before == null ? constantNull : typeof before === "function" ? before : selector_default(before);
|
|
1102
|
+
return this.select(function() {
|
|
1103
|
+
return this.insertBefore(create.apply(this, arguments), select.apply(this, arguments) || null);
|
|
1104
|
+
});
|
|
1105
|
+
}
|
|
1106
|
+
|
|
1107
|
+
// node_modules/d3-selection/src/selection/remove.js
|
|
1108
|
+
function remove() {
|
|
1109
|
+
var parent = this.parentNode;
|
|
1110
|
+
if (parent)
|
|
1111
|
+
parent.removeChild(this);
|
|
1112
|
+
}
|
|
1113
|
+
function remove_default() {
|
|
1114
|
+
return this.each(remove);
|
|
1115
|
+
}
|
|
1116
|
+
|
|
1117
|
+
// node_modules/d3-selection/src/selection/clone.js
|
|
1118
|
+
function selection_cloneShallow() {
|
|
1119
|
+
var clone = this.cloneNode(false), parent = this.parentNode;
|
|
1120
|
+
return parent ? parent.insertBefore(clone, this.nextSibling) : clone;
|
|
1121
|
+
}
|
|
1122
|
+
function selection_cloneDeep() {
|
|
1123
|
+
var clone = this.cloneNode(true), parent = this.parentNode;
|
|
1124
|
+
return parent ? parent.insertBefore(clone, this.nextSibling) : clone;
|
|
1125
|
+
}
|
|
1126
|
+
function clone_default(deep) {
|
|
1127
|
+
return this.select(deep ? selection_cloneDeep : selection_cloneShallow);
|
|
1128
|
+
}
|
|
1129
|
+
|
|
1130
|
+
// node_modules/d3-selection/src/selection/datum.js
|
|
1131
|
+
function datum_default(value) {
|
|
1132
|
+
return arguments.length ? this.property("__data__", value) : this.node().__data__;
|
|
1133
|
+
}
|
|
1134
|
+
|
|
1135
|
+
// node_modules/d3-selection/src/selection/on.js
|
|
1136
|
+
function contextListener(listener) {
|
|
1137
|
+
return function(event) {
|
|
1138
|
+
listener.call(this, event, this.__data__);
|
|
1139
|
+
};
|
|
1140
|
+
}
|
|
1141
|
+
function parseTypenames(typenames) {
|
|
1142
|
+
return typenames.trim().split(/^|\s+/).map(function(t) {
|
|
1143
|
+
var name = "", i = t.indexOf(".");
|
|
1144
|
+
if (i >= 0)
|
|
1145
|
+
name = t.slice(i + 1), t = t.slice(0, i);
|
|
1146
|
+
return { type: t, name };
|
|
1147
|
+
});
|
|
1148
|
+
}
|
|
1149
|
+
function onRemove(typename) {
|
|
1150
|
+
return function() {
|
|
1151
|
+
var on = this.__on;
|
|
1152
|
+
if (!on)
|
|
1153
|
+
return;
|
|
1154
|
+
for (var j = 0, i = -1, m = on.length, o;j < m; ++j) {
|
|
1155
|
+
if (o = on[j], (!typename.type || o.type === typename.type) && o.name === typename.name) {
|
|
1156
|
+
this.removeEventListener(o.type, o.listener, o.options);
|
|
1157
|
+
} else {
|
|
1158
|
+
on[++i] = o;
|
|
1159
|
+
}
|
|
1160
|
+
}
|
|
1161
|
+
if (++i)
|
|
1162
|
+
on.length = i;
|
|
1163
|
+
else
|
|
1164
|
+
delete this.__on;
|
|
1165
|
+
};
|
|
1166
|
+
}
|
|
1167
|
+
function onAdd(typename, value, options) {
|
|
1168
|
+
return function() {
|
|
1169
|
+
var on = this.__on, o, listener = contextListener(value);
|
|
1170
|
+
if (on)
|
|
1171
|
+
for (var j = 0, m = on.length;j < m; ++j) {
|
|
1172
|
+
if ((o = on[j]).type === typename.type && o.name === typename.name) {
|
|
1173
|
+
this.removeEventListener(o.type, o.listener, o.options);
|
|
1174
|
+
this.addEventListener(o.type, o.listener = listener, o.options = options);
|
|
1175
|
+
o.value = value;
|
|
1176
|
+
return;
|
|
1177
|
+
}
|
|
1178
|
+
}
|
|
1179
|
+
this.addEventListener(typename.type, listener, options);
|
|
1180
|
+
o = { type: typename.type, name: typename.name, value, listener, options };
|
|
1181
|
+
if (!on)
|
|
1182
|
+
this.__on = [o];
|
|
1183
|
+
else
|
|
1184
|
+
on.push(o);
|
|
1185
|
+
};
|
|
1186
|
+
}
|
|
1187
|
+
function on_default(typename, value, options) {
|
|
1188
|
+
var typenames = parseTypenames(typename + ""), i, n = typenames.length, t;
|
|
1189
|
+
if (arguments.length < 2) {
|
|
1190
|
+
var on = this.node().__on;
|
|
1191
|
+
if (on)
|
|
1192
|
+
for (var j = 0, m = on.length, o;j < m; ++j) {
|
|
1193
|
+
for (i = 0, o = on[j];i < n; ++i) {
|
|
1194
|
+
if ((t = typenames[i]).type === o.type && t.name === o.name) {
|
|
1195
|
+
return o.value;
|
|
1196
|
+
}
|
|
1197
|
+
}
|
|
1198
|
+
}
|
|
1199
|
+
return;
|
|
1200
|
+
}
|
|
1201
|
+
on = value ? onAdd : onRemove;
|
|
1202
|
+
for (i = 0;i < n; ++i)
|
|
1203
|
+
this.each(on(typenames[i], value, options));
|
|
1204
|
+
return this;
|
|
1205
|
+
}
|
|
1206
|
+
|
|
1207
|
+
// node_modules/d3-selection/src/selection/dispatch.js
|
|
1208
|
+
function dispatchEvent(node, type, params) {
|
|
1209
|
+
var window2 = window_default(node), event = window2.CustomEvent;
|
|
1210
|
+
if (typeof event === "function") {
|
|
1211
|
+
event = new event(type, params);
|
|
1212
|
+
} else {
|
|
1213
|
+
event = window2.document.createEvent("Event");
|
|
1214
|
+
if (params)
|
|
1215
|
+
event.initEvent(type, params.bubbles, params.cancelable), event.detail = params.detail;
|
|
1216
|
+
else
|
|
1217
|
+
event.initEvent(type, false, false);
|
|
1218
|
+
}
|
|
1219
|
+
node.dispatchEvent(event);
|
|
1220
|
+
}
|
|
1221
|
+
function dispatchConstant(type, params) {
|
|
1222
|
+
return function() {
|
|
1223
|
+
return dispatchEvent(this, type, params);
|
|
1224
|
+
};
|
|
1225
|
+
}
|
|
1226
|
+
function dispatchFunction(type, params) {
|
|
1227
|
+
return function() {
|
|
1228
|
+
return dispatchEvent(this, type, params.apply(this, arguments));
|
|
1229
|
+
};
|
|
1230
|
+
}
|
|
1231
|
+
function dispatch_default2(type, params) {
|
|
1232
|
+
return this.each((typeof params === "function" ? dispatchFunction : dispatchConstant)(type, params));
|
|
1233
|
+
}
|
|
1234
|
+
|
|
1235
|
+
// node_modules/d3-selection/src/selection/iterator.js
|
|
1236
|
+
function* iterator_default() {
|
|
1237
|
+
for (var groups = this._groups, j = 0, m = groups.length;j < m; ++j) {
|
|
1238
|
+
for (var group = groups[j], i = 0, n = group.length, node;i < n; ++i) {
|
|
1239
|
+
if (node = group[i])
|
|
1240
|
+
yield node;
|
|
1241
|
+
}
|
|
1242
|
+
}
|
|
1243
|
+
}
|
|
1244
|
+
|
|
1245
|
+
// node_modules/d3-selection/src/selection/index.js
|
|
1246
|
+
var root = [null];
|
|
1247
|
+
function Selection(groups, parents) {
|
|
1248
|
+
this._groups = groups;
|
|
1249
|
+
this._parents = parents;
|
|
1250
|
+
}
|
|
1251
|
+
function selection() {
|
|
1252
|
+
return new Selection([[document.documentElement]], root);
|
|
1253
|
+
}
|
|
1254
|
+
function selection_selection() {
|
|
1255
|
+
return this;
|
|
1256
|
+
}
|
|
1257
|
+
Selection.prototype = selection.prototype = {
|
|
1258
|
+
constructor: Selection,
|
|
1259
|
+
select: select_default,
|
|
1260
|
+
selectAll: selectAll_default,
|
|
1261
|
+
selectChild: selectChild_default,
|
|
1262
|
+
selectChildren: selectChildren_default,
|
|
1263
|
+
filter: filter_default,
|
|
1264
|
+
data: data_default,
|
|
1265
|
+
enter: enter_default,
|
|
1266
|
+
exit: exit_default,
|
|
1267
|
+
join: join_default,
|
|
1268
|
+
merge: merge_default,
|
|
1269
|
+
selection: selection_selection,
|
|
1270
|
+
order: order_default,
|
|
1271
|
+
sort: sort_default,
|
|
1272
|
+
call: call_default,
|
|
1273
|
+
nodes: nodes_default,
|
|
1274
|
+
node: node_default,
|
|
1275
|
+
size: size_default,
|
|
1276
|
+
empty: empty_default,
|
|
1277
|
+
each: each_default,
|
|
1278
|
+
attr: attr_default,
|
|
1279
|
+
style: style_default,
|
|
1280
|
+
property: property_default,
|
|
1281
|
+
classed: classed_default,
|
|
1282
|
+
text: text_default,
|
|
1283
|
+
html: html_default,
|
|
1284
|
+
raise: raise_default,
|
|
1285
|
+
lower: lower_default,
|
|
1286
|
+
append: append_default,
|
|
1287
|
+
insert: insert_default,
|
|
1288
|
+
remove: remove_default,
|
|
1289
|
+
clone: clone_default,
|
|
1290
|
+
datum: datum_default,
|
|
1291
|
+
on: on_default,
|
|
1292
|
+
dispatch: dispatch_default2,
|
|
1293
|
+
[Symbol.iterator]: iterator_default
|
|
1294
|
+
};
|
|
1295
|
+
var selection_default = selection;
|
|
1296
|
+
|
|
1297
|
+
// node_modules/d3-selection/src/select.js
|
|
1298
|
+
function select_default2(selector) {
|
|
1299
|
+
return typeof selector === "string" ? new Selection([[document.querySelector(selector)]], [document.documentElement]) : new Selection([[selector]], root);
|
|
1300
|
+
}
|
|
1301
|
+
// node_modules/d3-transition/src/transition/schedule.js
|
|
1302
|
+
var emptyOn = dispatch_default("start", "end", "cancel", "interrupt");
|
|
1303
|
+
var emptyTween = [];
|
|
1304
|
+
var CREATED = 0;
|
|
1305
|
+
var SCHEDULED = 1;
|
|
1306
|
+
var STARTING = 2;
|
|
1307
|
+
var STARTED = 3;
|
|
1308
|
+
var RUNNING = 4;
|
|
1309
|
+
var ENDING = 5;
|
|
1310
|
+
var ENDED = 6;
|
|
1311
|
+
function schedule_default(node, name, id, index, group, timing) {
|
|
1312
|
+
var schedules = node.__transition;
|
|
1313
|
+
if (!schedules)
|
|
1314
|
+
node.__transition = {};
|
|
1315
|
+
else if (id in schedules)
|
|
1316
|
+
return;
|
|
1317
|
+
create(node, id, {
|
|
1318
|
+
name,
|
|
1319
|
+
index,
|
|
1320
|
+
group,
|
|
1321
|
+
on: emptyOn,
|
|
1322
|
+
tween: emptyTween,
|
|
1323
|
+
time: timing.time,
|
|
1324
|
+
delay: timing.delay,
|
|
1325
|
+
duration: timing.duration,
|
|
1326
|
+
ease: timing.ease,
|
|
1327
|
+
timer: null,
|
|
1328
|
+
state: CREATED
|
|
1329
|
+
});
|
|
1330
|
+
}
|
|
1331
|
+
function init(node, id) {
|
|
1332
|
+
var schedule = get(node, id);
|
|
1333
|
+
if (schedule.state > CREATED)
|
|
1334
|
+
throw new Error("too late; already scheduled");
|
|
1335
|
+
return schedule;
|
|
1336
|
+
}
|
|
1337
|
+
function set(node, id) {
|
|
1338
|
+
var schedule = get(node, id);
|
|
1339
|
+
if (schedule.state > STARTED)
|
|
1340
|
+
throw new Error("too late; already running");
|
|
1341
|
+
return schedule;
|
|
1342
|
+
}
|
|
1343
|
+
function get(node, id) {
|
|
1344
|
+
var schedule = node.__transition;
|
|
1345
|
+
if (!schedule || !(schedule = schedule[id]))
|
|
1346
|
+
throw new Error("transition not found");
|
|
1347
|
+
return schedule;
|
|
1348
|
+
}
|
|
1349
|
+
function create(node, id, self2) {
|
|
1350
|
+
var schedules = node.__transition, tween;
|
|
1351
|
+
schedules[id] = self2;
|
|
1352
|
+
self2.timer = timer(schedule, 0, self2.time);
|
|
1353
|
+
function schedule(elapsed) {
|
|
1354
|
+
self2.state = SCHEDULED;
|
|
1355
|
+
self2.timer.restart(start, self2.delay, self2.time);
|
|
1356
|
+
if (self2.delay <= elapsed)
|
|
1357
|
+
start(elapsed - self2.delay);
|
|
1358
|
+
}
|
|
1359
|
+
function start(elapsed) {
|
|
1360
|
+
var i, j, n, o;
|
|
1361
|
+
if (self2.state !== SCHEDULED)
|
|
1362
|
+
return stop();
|
|
1363
|
+
for (i in schedules) {
|
|
1364
|
+
o = schedules[i];
|
|
1365
|
+
if (o.name !== self2.name)
|
|
1366
|
+
continue;
|
|
1367
|
+
if (o.state === STARTED)
|
|
1368
|
+
return timeout_default(start);
|
|
1369
|
+
if (o.state === RUNNING) {
|
|
1370
|
+
o.state = ENDED;
|
|
1371
|
+
o.timer.stop();
|
|
1372
|
+
o.on.call("interrupt", node, node.__data__, o.index, o.group);
|
|
1373
|
+
delete schedules[i];
|
|
1374
|
+
} else if (+i < id) {
|
|
1375
|
+
o.state = ENDED;
|
|
1376
|
+
o.timer.stop();
|
|
1377
|
+
o.on.call("cancel", node, node.__data__, o.index, o.group);
|
|
1378
|
+
delete schedules[i];
|
|
1379
|
+
}
|
|
1380
|
+
}
|
|
1381
|
+
timeout_default(function() {
|
|
1382
|
+
if (self2.state === STARTED) {
|
|
1383
|
+
self2.state = RUNNING;
|
|
1384
|
+
self2.timer.restart(tick, self2.delay, self2.time);
|
|
1385
|
+
tick(elapsed);
|
|
1386
|
+
}
|
|
1387
|
+
});
|
|
1388
|
+
self2.state = STARTING;
|
|
1389
|
+
self2.on.call("start", node, node.__data__, self2.index, self2.group);
|
|
1390
|
+
if (self2.state !== STARTING)
|
|
1391
|
+
return;
|
|
1392
|
+
self2.state = STARTED;
|
|
1393
|
+
tween = new Array(n = self2.tween.length);
|
|
1394
|
+
for (i = 0, j = -1;i < n; ++i) {
|
|
1395
|
+
if (o = self2.tween[i].value.call(node, node.__data__, self2.index, self2.group)) {
|
|
1396
|
+
tween[++j] = o;
|
|
1397
|
+
}
|
|
1398
|
+
}
|
|
1399
|
+
tween.length = j + 1;
|
|
1400
|
+
}
|
|
1401
|
+
function tick(elapsed) {
|
|
1402
|
+
var t = elapsed < self2.duration ? self2.ease.call(null, elapsed / self2.duration) : (self2.timer.restart(stop), self2.state = ENDING, 1), i = -1, n = tween.length;
|
|
1403
|
+
while (++i < n) {
|
|
1404
|
+
tween[i].call(node, t);
|
|
1405
|
+
}
|
|
1406
|
+
if (self2.state === ENDING) {
|
|
1407
|
+
self2.on.call("end", node, node.__data__, self2.index, self2.group);
|
|
1408
|
+
stop();
|
|
1409
|
+
}
|
|
1410
|
+
}
|
|
1411
|
+
function stop() {
|
|
1412
|
+
self2.state = ENDED;
|
|
1413
|
+
self2.timer.stop();
|
|
1414
|
+
delete schedules[id];
|
|
1415
|
+
for (var i in schedules)
|
|
1416
|
+
return;
|
|
1417
|
+
delete node.__transition;
|
|
1418
|
+
}
|
|
1419
|
+
}
|
|
1420
|
+
|
|
1421
|
+
// node_modules/d3-transition/src/interrupt.js
|
|
1422
|
+
function interrupt_default(node, name) {
|
|
1423
|
+
var schedules = node.__transition, schedule, active, empty2 = true, i;
|
|
1424
|
+
if (!schedules)
|
|
1425
|
+
return;
|
|
1426
|
+
name = name == null ? null : name + "";
|
|
1427
|
+
for (i in schedules) {
|
|
1428
|
+
if ((schedule = schedules[i]).name !== name) {
|
|
1429
|
+
empty2 = false;
|
|
1430
|
+
continue;
|
|
1431
|
+
}
|
|
1432
|
+
active = schedule.state > STARTING && schedule.state < ENDING;
|
|
1433
|
+
schedule.state = ENDED;
|
|
1434
|
+
schedule.timer.stop();
|
|
1435
|
+
schedule.on.call(active ? "interrupt" : "cancel", node, node.__data__, schedule.index, schedule.group);
|
|
1436
|
+
delete schedules[i];
|
|
1437
|
+
}
|
|
1438
|
+
if (empty2)
|
|
1439
|
+
delete node.__transition;
|
|
1440
|
+
}
|
|
1441
|
+
|
|
1442
|
+
// node_modules/d3-transition/src/selection/interrupt.js
|
|
1443
|
+
function interrupt_default2(name) {
|
|
1444
|
+
return this.each(function() {
|
|
1445
|
+
interrupt_default(this, name);
|
|
1446
|
+
});
|
|
1447
|
+
}
|
|
1448
|
+
|
|
1449
|
+
// node_modules/d3-transition/src/transition/tween.js
|
|
1450
|
+
function tweenRemove(id, name) {
|
|
1451
|
+
var tween0, tween1;
|
|
1452
|
+
return function() {
|
|
1453
|
+
var schedule = set(this, id), tween = schedule.tween;
|
|
1454
|
+
if (tween !== tween0) {
|
|
1455
|
+
tween1 = tween0 = tween;
|
|
1456
|
+
for (var i = 0, n = tween1.length;i < n; ++i) {
|
|
1457
|
+
if (tween1[i].name === name) {
|
|
1458
|
+
tween1 = tween1.slice();
|
|
1459
|
+
tween1.splice(i, 1);
|
|
1460
|
+
break;
|
|
1461
|
+
}
|
|
1462
|
+
}
|
|
1463
|
+
}
|
|
1464
|
+
schedule.tween = tween1;
|
|
1465
|
+
};
|
|
1466
|
+
}
|
|
1467
|
+
function tweenFunction(id, name, value) {
|
|
1468
|
+
var tween0, tween1;
|
|
1469
|
+
if (typeof value !== "function")
|
|
1470
|
+
throw new Error;
|
|
1471
|
+
return function() {
|
|
1472
|
+
var schedule = set(this, id), tween = schedule.tween;
|
|
1473
|
+
if (tween !== tween0) {
|
|
1474
|
+
tween1 = (tween0 = tween).slice();
|
|
1475
|
+
for (var t = { name, value }, i = 0, n = tween1.length;i < n; ++i) {
|
|
1476
|
+
if (tween1[i].name === name) {
|
|
1477
|
+
tween1[i] = t;
|
|
1478
|
+
break;
|
|
1479
|
+
}
|
|
1480
|
+
}
|
|
1481
|
+
if (i === n)
|
|
1482
|
+
tween1.push(t);
|
|
1483
|
+
}
|
|
1484
|
+
schedule.tween = tween1;
|
|
1485
|
+
};
|
|
1486
|
+
}
|
|
1487
|
+
function tween_default(name, value) {
|
|
1488
|
+
var id = this._id;
|
|
1489
|
+
name += "";
|
|
1490
|
+
if (arguments.length < 2) {
|
|
1491
|
+
var tween = get(this.node(), id).tween;
|
|
1492
|
+
for (var i = 0, n = tween.length, t;i < n; ++i) {
|
|
1493
|
+
if ((t = tween[i]).name === name) {
|
|
1494
|
+
return t.value;
|
|
1495
|
+
}
|
|
1496
|
+
}
|
|
1497
|
+
return null;
|
|
1498
|
+
}
|
|
1499
|
+
return this.each((value == null ? tweenRemove : tweenFunction)(id, name, value));
|
|
1500
|
+
}
|
|
1501
|
+
function tweenValue(transition, name, value) {
|
|
1502
|
+
var id = transition._id;
|
|
1503
|
+
transition.each(function() {
|
|
1504
|
+
var schedule = set(this, id);
|
|
1505
|
+
(schedule.value || (schedule.value = {}))[name] = value.apply(this, arguments);
|
|
1506
|
+
});
|
|
1507
|
+
return function(node) {
|
|
1508
|
+
return get(node, id).value[name];
|
|
1509
|
+
};
|
|
1510
|
+
}
|
|
1511
|
+
|
|
1512
|
+
// node_modules/d3-transition/src/transition/interpolate.js
|
|
1513
|
+
function interpolate_default(a, b) {
|
|
1514
|
+
var c;
|
|
1515
|
+
return (typeof b === "number" ? number_default : b instanceof color ? rgb_default : (c = color(b)) ? (b = c, rgb_default) : string_default)(a, b);
|
|
1516
|
+
}
|
|
1517
|
+
|
|
1518
|
+
// node_modules/d3-transition/src/transition/attr.js
|
|
1519
|
+
function attrRemove2(name) {
|
|
1520
|
+
return function() {
|
|
1521
|
+
this.removeAttribute(name);
|
|
1522
|
+
};
|
|
1523
|
+
}
|
|
1524
|
+
function attrRemoveNS2(fullname) {
|
|
1525
|
+
return function() {
|
|
1526
|
+
this.removeAttributeNS(fullname.space, fullname.local);
|
|
1527
|
+
};
|
|
1528
|
+
}
|
|
1529
|
+
function attrConstant2(name, interpolate, value1) {
|
|
1530
|
+
var string00, string1 = value1 + "", interpolate0;
|
|
1531
|
+
return function() {
|
|
1532
|
+
var string0 = this.getAttribute(name);
|
|
1533
|
+
return string0 === string1 ? null : string0 === string00 ? interpolate0 : interpolate0 = interpolate(string00 = string0, value1);
|
|
1534
|
+
};
|
|
1535
|
+
}
|
|
1536
|
+
function attrConstantNS2(fullname, interpolate, value1) {
|
|
1537
|
+
var string00, string1 = value1 + "", interpolate0;
|
|
1538
|
+
return function() {
|
|
1539
|
+
var string0 = this.getAttributeNS(fullname.space, fullname.local);
|
|
1540
|
+
return string0 === string1 ? null : string0 === string00 ? interpolate0 : interpolate0 = interpolate(string00 = string0, value1);
|
|
1541
|
+
};
|
|
1542
|
+
}
|
|
1543
|
+
function attrFunction2(name, interpolate, value) {
|
|
1544
|
+
var string00, string10, interpolate0;
|
|
1545
|
+
return function() {
|
|
1546
|
+
var string0, value1 = value(this), string1;
|
|
1547
|
+
if (value1 == null)
|
|
1548
|
+
return void this.removeAttribute(name);
|
|
1549
|
+
string0 = this.getAttribute(name);
|
|
1550
|
+
string1 = value1 + "";
|
|
1551
|
+
return string0 === string1 ? null : string0 === string00 && string1 === string10 ? interpolate0 : (string10 = string1, interpolate0 = interpolate(string00 = string0, value1));
|
|
1552
|
+
};
|
|
1553
|
+
}
|
|
1554
|
+
function attrFunctionNS2(fullname, interpolate, value) {
|
|
1555
|
+
var string00, string10, interpolate0;
|
|
1556
|
+
return function() {
|
|
1557
|
+
var string0, value1 = value(this), string1;
|
|
1558
|
+
if (value1 == null)
|
|
1559
|
+
return void this.removeAttributeNS(fullname.space, fullname.local);
|
|
1560
|
+
string0 = this.getAttributeNS(fullname.space, fullname.local);
|
|
1561
|
+
string1 = value1 + "";
|
|
1562
|
+
return string0 === string1 ? null : string0 === string00 && string1 === string10 ? interpolate0 : (string10 = string1, interpolate0 = interpolate(string00 = string0, value1));
|
|
1563
|
+
};
|
|
1564
|
+
}
|
|
1565
|
+
function attr_default2(name, value) {
|
|
1566
|
+
var fullname = namespace_default(name), i = fullname === "transform" ? interpolateTransformSvg : interpolate_default;
|
|
1567
|
+
return this.attrTween(name, typeof value === "function" ? (fullname.local ? attrFunctionNS2 : attrFunction2)(fullname, i, tweenValue(this, "attr." + name, value)) : value == null ? (fullname.local ? attrRemoveNS2 : attrRemove2)(fullname) : (fullname.local ? attrConstantNS2 : attrConstant2)(fullname, i, value));
|
|
1568
|
+
}
|
|
1569
|
+
|
|
1570
|
+
// node_modules/d3-transition/src/transition/attrTween.js
|
|
1571
|
+
function attrInterpolate(name, i) {
|
|
1572
|
+
return function(t) {
|
|
1573
|
+
this.setAttribute(name, i.call(this, t));
|
|
1574
|
+
};
|
|
1575
|
+
}
|
|
1576
|
+
function attrInterpolateNS(fullname, i) {
|
|
1577
|
+
return function(t) {
|
|
1578
|
+
this.setAttributeNS(fullname.space, fullname.local, i.call(this, t));
|
|
1579
|
+
};
|
|
1580
|
+
}
|
|
1581
|
+
function attrTweenNS(fullname, value) {
|
|
1582
|
+
var t0, i0;
|
|
1583
|
+
function tween() {
|
|
1584
|
+
var i = value.apply(this, arguments);
|
|
1585
|
+
if (i !== i0)
|
|
1586
|
+
t0 = (i0 = i) && attrInterpolateNS(fullname, i);
|
|
1587
|
+
return t0;
|
|
1588
|
+
}
|
|
1589
|
+
tween._value = value;
|
|
1590
|
+
return tween;
|
|
1591
|
+
}
|
|
1592
|
+
function attrTween(name, value) {
|
|
1593
|
+
var t0, i0;
|
|
1594
|
+
function tween() {
|
|
1595
|
+
var i = value.apply(this, arguments);
|
|
1596
|
+
if (i !== i0)
|
|
1597
|
+
t0 = (i0 = i) && attrInterpolate(name, i);
|
|
1598
|
+
return t0;
|
|
1599
|
+
}
|
|
1600
|
+
tween._value = value;
|
|
1601
|
+
return tween;
|
|
1602
|
+
}
|
|
1603
|
+
function attrTween_default(name, value) {
|
|
1604
|
+
var key = "attr." + name;
|
|
1605
|
+
if (arguments.length < 2)
|
|
1606
|
+
return (key = this.tween(key)) && key._value;
|
|
1607
|
+
if (value == null)
|
|
1608
|
+
return this.tween(key, null);
|
|
1609
|
+
if (typeof value !== "function")
|
|
1610
|
+
throw new Error;
|
|
1611
|
+
var fullname = namespace_default(name);
|
|
1612
|
+
return this.tween(key, (fullname.local ? attrTweenNS : attrTween)(fullname, value));
|
|
1613
|
+
}
|
|
1614
|
+
|
|
1615
|
+
// node_modules/d3-transition/src/transition/delay.js
|
|
1616
|
+
function delayFunction(id, value) {
|
|
1617
|
+
return function() {
|
|
1618
|
+
init(this, id).delay = +value.apply(this, arguments);
|
|
1619
|
+
};
|
|
1620
|
+
}
|
|
1621
|
+
function delayConstant(id, value) {
|
|
1622
|
+
return value = +value, function() {
|
|
1623
|
+
init(this, id).delay = value;
|
|
1624
|
+
};
|
|
1625
|
+
}
|
|
1626
|
+
function delay_default(value) {
|
|
1627
|
+
var id = this._id;
|
|
1628
|
+
return arguments.length ? this.each((typeof value === "function" ? delayFunction : delayConstant)(id, value)) : get(this.node(), id).delay;
|
|
1629
|
+
}
|
|
1630
|
+
|
|
1631
|
+
// node_modules/d3-transition/src/transition/duration.js
|
|
1632
|
+
function durationFunction(id, value) {
|
|
1633
|
+
return function() {
|
|
1634
|
+
set(this, id).duration = +value.apply(this, arguments);
|
|
1635
|
+
};
|
|
1636
|
+
}
|
|
1637
|
+
function durationConstant(id, value) {
|
|
1638
|
+
return value = +value, function() {
|
|
1639
|
+
set(this, id).duration = value;
|
|
1640
|
+
};
|
|
1641
|
+
}
|
|
1642
|
+
function duration_default(value) {
|
|
1643
|
+
var id = this._id;
|
|
1644
|
+
return arguments.length ? this.each((typeof value === "function" ? durationFunction : durationConstant)(id, value)) : get(this.node(), id).duration;
|
|
1645
|
+
}
|
|
1646
|
+
|
|
1647
|
+
// node_modules/d3-transition/src/transition/ease.js
|
|
1648
|
+
function easeConstant(id, value) {
|
|
1649
|
+
if (typeof value !== "function")
|
|
1650
|
+
throw new Error;
|
|
1651
|
+
return function() {
|
|
1652
|
+
set(this, id).ease = value;
|
|
1653
|
+
};
|
|
1654
|
+
}
|
|
1655
|
+
function ease_default(value) {
|
|
1656
|
+
var id = this._id;
|
|
1657
|
+
return arguments.length ? this.each(easeConstant(id, value)) : get(this.node(), id).ease;
|
|
1658
|
+
}
|
|
1659
|
+
|
|
1660
|
+
// node_modules/d3-transition/src/transition/easeVarying.js
|
|
1661
|
+
function easeVarying(id, value) {
|
|
1662
|
+
return function() {
|
|
1663
|
+
var v = value.apply(this, arguments);
|
|
1664
|
+
if (typeof v !== "function")
|
|
1665
|
+
throw new Error;
|
|
1666
|
+
set(this, id).ease = v;
|
|
1667
|
+
};
|
|
1668
|
+
}
|
|
1669
|
+
function easeVarying_default(value) {
|
|
1670
|
+
if (typeof value !== "function")
|
|
1671
|
+
throw new Error;
|
|
1672
|
+
return this.each(easeVarying(this._id, value));
|
|
1673
|
+
}
|
|
1674
|
+
|
|
1675
|
+
// node_modules/d3-transition/src/transition/filter.js
|
|
1676
|
+
function filter_default2(match) {
|
|
1677
|
+
if (typeof match !== "function")
|
|
1678
|
+
match = matcher_default(match);
|
|
1679
|
+
for (var groups = this._groups, m = groups.length, subgroups = new Array(m), j = 0;j < m; ++j) {
|
|
1680
|
+
for (var group = groups[j], n = group.length, subgroup = subgroups[j] = [], node, i = 0;i < n; ++i) {
|
|
1681
|
+
if ((node = group[i]) && match.call(node, node.__data__, i, group)) {
|
|
1682
|
+
subgroup.push(node);
|
|
1683
|
+
}
|
|
1684
|
+
}
|
|
1685
|
+
}
|
|
1686
|
+
return new Transition(subgroups, this._parents, this._name, this._id);
|
|
1687
|
+
}
|
|
1688
|
+
|
|
1689
|
+
// node_modules/d3-transition/src/transition/merge.js
|
|
1690
|
+
function merge_default2(transition) {
|
|
1691
|
+
if (transition._id !== this._id)
|
|
1692
|
+
throw new Error;
|
|
1693
|
+
for (var groups0 = this._groups, groups1 = transition._groups, m0 = groups0.length, m1 = groups1.length, m = Math.min(m0, m1), merges = new Array(m0), j = 0;j < m; ++j) {
|
|
1694
|
+
for (var group0 = groups0[j], group1 = groups1[j], n = group0.length, merge = merges[j] = new Array(n), node, i = 0;i < n; ++i) {
|
|
1695
|
+
if (node = group0[i] || group1[i]) {
|
|
1696
|
+
merge[i] = node;
|
|
1697
|
+
}
|
|
1698
|
+
}
|
|
1699
|
+
}
|
|
1700
|
+
for (;j < m0; ++j) {
|
|
1701
|
+
merges[j] = groups0[j];
|
|
1702
|
+
}
|
|
1703
|
+
return new Transition(merges, this._parents, this._name, this._id);
|
|
1704
|
+
}
|
|
1705
|
+
|
|
1706
|
+
// node_modules/d3-transition/src/transition/on.js
|
|
1707
|
+
function start(name) {
|
|
1708
|
+
return (name + "").trim().split(/^|\s+/).every(function(t) {
|
|
1709
|
+
var i = t.indexOf(".");
|
|
1710
|
+
if (i >= 0)
|
|
1711
|
+
t = t.slice(0, i);
|
|
1712
|
+
return !t || t === "start";
|
|
1713
|
+
});
|
|
1714
|
+
}
|
|
1715
|
+
function onFunction(id, name, listener) {
|
|
1716
|
+
var on0, on1, sit = start(name) ? init : set;
|
|
1717
|
+
return function() {
|
|
1718
|
+
var schedule = sit(this, id), on = schedule.on;
|
|
1719
|
+
if (on !== on0)
|
|
1720
|
+
(on1 = (on0 = on).copy()).on(name, listener);
|
|
1721
|
+
schedule.on = on1;
|
|
1722
|
+
};
|
|
1723
|
+
}
|
|
1724
|
+
function on_default2(name, listener) {
|
|
1725
|
+
var id = this._id;
|
|
1726
|
+
return arguments.length < 2 ? get(this.node(), id).on.on(name) : this.each(onFunction(id, name, listener));
|
|
1727
|
+
}
|
|
1728
|
+
|
|
1729
|
+
// node_modules/d3-transition/src/transition/remove.js
|
|
1730
|
+
function removeFunction(id) {
|
|
1731
|
+
return function() {
|
|
1732
|
+
var parent = this.parentNode;
|
|
1733
|
+
for (var i in this.__transition)
|
|
1734
|
+
if (+i !== id)
|
|
1735
|
+
return;
|
|
1736
|
+
if (parent)
|
|
1737
|
+
parent.removeChild(this);
|
|
1738
|
+
};
|
|
1739
|
+
}
|
|
1740
|
+
function remove_default2() {
|
|
1741
|
+
return this.on("end.remove", removeFunction(this._id));
|
|
1742
|
+
}
|
|
1743
|
+
|
|
1744
|
+
// node_modules/d3-transition/src/transition/select.js
|
|
1745
|
+
function select_default3(select) {
|
|
1746
|
+
var name = this._name, id = this._id;
|
|
1747
|
+
if (typeof select !== "function")
|
|
1748
|
+
select = selector_default(select);
|
|
1749
|
+
for (var groups = this._groups, m = groups.length, subgroups = new Array(m), j = 0;j < m; ++j) {
|
|
1750
|
+
for (var group = groups[j], n = group.length, subgroup = subgroups[j] = new Array(n), node, subnode, i = 0;i < n; ++i) {
|
|
1751
|
+
if ((node = group[i]) && (subnode = select.call(node, node.__data__, i, group))) {
|
|
1752
|
+
if ("__data__" in node)
|
|
1753
|
+
subnode.__data__ = node.__data__;
|
|
1754
|
+
subgroup[i] = subnode;
|
|
1755
|
+
schedule_default(subgroup[i], name, id, i, subgroup, get(node, id));
|
|
1756
|
+
}
|
|
1757
|
+
}
|
|
1758
|
+
}
|
|
1759
|
+
return new Transition(subgroups, this._parents, name, id);
|
|
1760
|
+
}
|
|
1761
|
+
|
|
1762
|
+
// node_modules/d3-transition/src/transition/selectAll.js
|
|
1763
|
+
function selectAll_default2(select) {
|
|
1764
|
+
var name = this._name, id = this._id;
|
|
1765
|
+
if (typeof select !== "function")
|
|
1766
|
+
select = selectorAll_default(select);
|
|
1767
|
+
for (var groups = this._groups, m = groups.length, subgroups = [], parents = [], j = 0;j < m; ++j) {
|
|
1768
|
+
for (var group = groups[j], n = group.length, node, i = 0;i < n; ++i) {
|
|
1769
|
+
if (node = group[i]) {
|
|
1770
|
+
for (var children2 = select.call(node, node.__data__, i, group), child, inherit = get(node, id), k = 0, l = children2.length;k < l; ++k) {
|
|
1771
|
+
if (child = children2[k]) {
|
|
1772
|
+
schedule_default(child, name, id, k, children2, inherit);
|
|
1773
|
+
}
|
|
1774
|
+
}
|
|
1775
|
+
subgroups.push(children2);
|
|
1776
|
+
parents.push(node);
|
|
1777
|
+
}
|
|
1778
|
+
}
|
|
1779
|
+
}
|
|
1780
|
+
return new Transition(subgroups, parents, name, id);
|
|
1781
|
+
}
|
|
1782
|
+
|
|
1783
|
+
// node_modules/d3-transition/src/transition/selection.js
|
|
1784
|
+
var Selection2 = selection_default.prototype.constructor;
|
|
1785
|
+
function selection_default2() {
|
|
1786
|
+
return new Selection2(this._groups, this._parents);
|
|
1787
|
+
}
|
|
1788
|
+
|
|
1789
|
+
// node_modules/d3-transition/src/transition/style.js
|
|
1790
|
+
function styleNull(name, interpolate) {
|
|
1791
|
+
var string00, string10, interpolate0;
|
|
1792
|
+
return function() {
|
|
1793
|
+
var string0 = styleValue(this, name), string1 = (this.style.removeProperty(name), styleValue(this, name));
|
|
1794
|
+
return string0 === string1 ? null : string0 === string00 && string1 === string10 ? interpolate0 : interpolate0 = interpolate(string00 = string0, string10 = string1);
|
|
1795
|
+
};
|
|
1796
|
+
}
|
|
1797
|
+
function styleRemove2(name) {
|
|
1798
|
+
return function() {
|
|
1799
|
+
this.style.removeProperty(name);
|
|
1800
|
+
};
|
|
1801
|
+
}
|
|
1802
|
+
function styleConstant2(name, interpolate, value1) {
|
|
1803
|
+
var string00, string1 = value1 + "", interpolate0;
|
|
1804
|
+
return function() {
|
|
1805
|
+
var string0 = styleValue(this, name);
|
|
1806
|
+
return string0 === string1 ? null : string0 === string00 ? interpolate0 : interpolate0 = interpolate(string00 = string0, value1);
|
|
1807
|
+
};
|
|
1808
|
+
}
|
|
1809
|
+
function styleFunction2(name, interpolate, value) {
|
|
1810
|
+
var string00, string10, interpolate0;
|
|
1811
|
+
return function() {
|
|
1812
|
+
var string0 = styleValue(this, name), value1 = value(this), string1 = value1 + "";
|
|
1813
|
+
if (value1 == null)
|
|
1814
|
+
string1 = value1 = (this.style.removeProperty(name), styleValue(this, name));
|
|
1815
|
+
return string0 === string1 ? null : string0 === string00 && string1 === string10 ? interpolate0 : (string10 = string1, interpolate0 = interpolate(string00 = string0, value1));
|
|
1816
|
+
};
|
|
1817
|
+
}
|
|
1818
|
+
function styleMaybeRemove(id, name) {
|
|
1819
|
+
var on0, on1, listener0, key = "style." + name, event = "end." + key, remove2;
|
|
1820
|
+
return function() {
|
|
1821
|
+
var schedule = set(this, id), on = schedule.on, listener = schedule.value[key] == null ? remove2 || (remove2 = styleRemove2(name)) : undefined;
|
|
1822
|
+
if (on !== on0 || listener0 !== listener)
|
|
1823
|
+
(on1 = (on0 = on).copy()).on(event, listener0 = listener);
|
|
1824
|
+
schedule.on = on1;
|
|
1825
|
+
};
|
|
1826
|
+
}
|
|
1827
|
+
function style_default2(name, value, priority) {
|
|
1828
|
+
var i = (name += "") === "transform" ? interpolateTransformCss : interpolate_default;
|
|
1829
|
+
return value == null ? this.styleTween(name, styleNull(name, i)).on("end.style." + name, styleRemove2(name)) : typeof value === "function" ? this.styleTween(name, styleFunction2(name, i, tweenValue(this, "style." + name, value))).each(styleMaybeRemove(this._id, name)) : this.styleTween(name, styleConstant2(name, i, value), priority).on("end.style." + name, null);
|
|
1830
|
+
}
|
|
1831
|
+
|
|
1832
|
+
// node_modules/d3-transition/src/transition/styleTween.js
|
|
1833
|
+
function styleInterpolate(name, i, priority) {
|
|
1834
|
+
return function(t) {
|
|
1835
|
+
this.style.setProperty(name, i.call(this, t), priority);
|
|
1836
|
+
};
|
|
1837
|
+
}
|
|
1838
|
+
function styleTween(name, value, priority) {
|
|
1839
|
+
var t, i0;
|
|
1840
|
+
function tween() {
|
|
1841
|
+
var i = value.apply(this, arguments);
|
|
1842
|
+
if (i !== i0)
|
|
1843
|
+
t = (i0 = i) && styleInterpolate(name, i, priority);
|
|
1844
|
+
return t;
|
|
1845
|
+
}
|
|
1846
|
+
tween._value = value;
|
|
1847
|
+
return tween;
|
|
1848
|
+
}
|
|
1849
|
+
function styleTween_default(name, value, priority) {
|
|
1850
|
+
var key = "style." + (name += "");
|
|
1851
|
+
if (arguments.length < 2)
|
|
1852
|
+
return (key = this.tween(key)) && key._value;
|
|
1853
|
+
if (value == null)
|
|
1854
|
+
return this.tween(key, null);
|
|
1855
|
+
if (typeof value !== "function")
|
|
1856
|
+
throw new Error;
|
|
1857
|
+
return this.tween(key, styleTween(name, value, priority == null ? "" : priority));
|
|
1858
|
+
}
|
|
1859
|
+
|
|
1860
|
+
// node_modules/d3-transition/src/transition/text.js
|
|
1861
|
+
function textConstant2(value) {
|
|
1862
|
+
return function() {
|
|
1863
|
+
this.textContent = value;
|
|
1864
|
+
};
|
|
1865
|
+
}
|
|
1866
|
+
function textFunction2(value) {
|
|
1867
|
+
return function() {
|
|
1868
|
+
var value1 = value(this);
|
|
1869
|
+
this.textContent = value1 == null ? "" : value1;
|
|
1870
|
+
};
|
|
1871
|
+
}
|
|
1872
|
+
function text_default2(value) {
|
|
1873
|
+
return this.tween("text", typeof value === "function" ? textFunction2(tweenValue(this, "text", value)) : textConstant2(value == null ? "" : value + ""));
|
|
1874
|
+
}
|
|
1875
|
+
|
|
1876
|
+
// node_modules/d3-transition/src/transition/textTween.js
|
|
1877
|
+
function textInterpolate(i) {
|
|
1878
|
+
return function(t) {
|
|
1879
|
+
this.textContent = i.call(this, t);
|
|
1880
|
+
};
|
|
1881
|
+
}
|
|
1882
|
+
function textTween(value) {
|
|
1883
|
+
var t0, i0;
|
|
1884
|
+
function tween() {
|
|
1885
|
+
var i = value.apply(this, arguments);
|
|
1886
|
+
if (i !== i0)
|
|
1887
|
+
t0 = (i0 = i) && textInterpolate(i);
|
|
1888
|
+
return t0;
|
|
1889
|
+
}
|
|
1890
|
+
tween._value = value;
|
|
1891
|
+
return tween;
|
|
1892
|
+
}
|
|
1893
|
+
function textTween_default(value) {
|
|
1894
|
+
var key = "text";
|
|
1895
|
+
if (arguments.length < 1)
|
|
1896
|
+
return (key = this.tween(key)) && key._value;
|
|
1897
|
+
if (value == null)
|
|
1898
|
+
return this.tween(key, null);
|
|
1899
|
+
if (typeof value !== "function")
|
|
1900
|
+
throw new Error;
|
|
1901
|
+
return this.tween(key, textTween(value));
|
|
1902
|
+
}
|
|
1903
|
+
|
|
1904
|
+
// node_modules/d3-transition/src/transition/transition.js
|
|
1905
|
+
function transition_default() {
|
|
1906
|
+
var name = this._name, id0 = this._id, id1 = newId();
|
|
1907
|
+
for (var groups = this._groups, m = groups.length, j = 0;j < m; ++j) {
|
|
1908
|
+
for (var group = groups[j], n = group.length, node, i = 0;i < n; ++i) {
|
|
1909
|
+
if (node = group[i]) {
|
|
1910
|
+
var inherit = get(node, id0);
|
|
1911
|
+
schedule_default(node, name, id1, i, group, {
|
|
1912
|
+
time: inherit.time + inherit.delay + inherit.duration,
|
|
1913
|
+
delay: 0,
|
|
1914
|
+
duration: inherit.duration,
|
|
1915
|
+
ease: inherit.ease
|
|
1916
|
+
});
|
|
1917
|
+
}
|
|
1918
|
+
}
|
|
1919
|
+
}
|
|
1920
|
+
return new Transition(groups, this._parents, name, id1);
|
|
1921
|
+
}
|
|
1922
|
+
|
|
1923
|
+
// node_modules/d3-transition/src/transition/end.js
|
|
1924
|
+
function end_default() {
|
|
1925
|
+
var on0, on1, that = this, id = that._id, size = that.size();
|
|
1926
|
+
return new Promise(function(resolve, reject) {
|
|
1927
|
+
var cancel = { value: reject }, end = { value: function() {
|
|
1928
|
+
if (--size === 0)
|
|
1929
|
+
resolve();
|
|
1930
|
+
} };
|
|
1931
|
+
that.each(function() {
|
|
1932
|
+
var schedule = set(this, id), on = schedule.on;
|
|
1933
|
+
if (on !== on0) {
|
|
1934
|
+
on1 = (on0 = on).copy();
|
|
1935
|
+
on1._.cancel.push(cancel);
|
|
1936
|
+
on1._.interrupt.push(cancel);
|
|
1937
|
+
on1._.end.push(end);
|
|
1938
|
+
}
|
|
1939
|
+
schedule.on = on1;
|
|
1940
|
+
});
|
|
1941
|
+
if (size === 0)
|
|
1942
|
+
resolve();
|
|
1943
|
+
});
|
|
1944
|
+
}
|
|
1945
|
+
|
|
1946
|
+
// node_modules/d3-transition/src/transition/index.js
|
|
1947
|
+
var id = 0;
|
|
1948
|
+
function Transition(groups, parents, name, id2) {
|
|
1949
|
+
this._groups = groups;
|
|
1950
|
+
this._parents = parents;
|
|
1951
|
+
this._name = name;
|
|
1952
|
+
this._id = id2;
|
|
1953
|
+
}
|
|
1954
|
+
function transition(name) {
|
|
1955
|
+
return selection_default().transition(name);
|
|
1956
|
+
}
|
|
1957
|
+
function newId() {
|
|
1958
|
+
return ++id;
|
|
1959
|
+
}
|
|
1960
|
+
var selection_prototype = selection_default.prototype;
|
|
1961
|
+
Transition.prototype = transition.prototype = {
|
|
1962
|
+
constructor: Transition,
|
|
1963
|
+
select: select_default3,
|
|
1964
|
+
selectAll: selectAll_default2,
|
|
1965
|
+
selectChild: selection_prototype.selectChild,
|
|
1966
|
+
selectChildren: selection_prototype.selectChildren,
|
|
1967
|
+
filter: filter_default2,
|
|
1968
|
+
merge: merge_default2,
|
|
1969
|
+
selection: selection_default2,
|
|
1970
|
+
transition: transition_default,
|
|
1971
|
+
call: selection_prototype.call,
|
|
1972
|
+
nodes: selection_prototype.nodes,
|
|
1973
|
+
node: selection_prototype.node,
|
|
1974
|
+
size: selection_prototype.size,
|
|
1975
|
+
empty: selection_prototype.empty,
|
|
1976
|
+
each: selection_prototype.each,
|
|
1977
|
+
on: on_default2,
|
|
1978
|
+
attr: attr_default2,
|
|
1979
|
+
attrTween: attrTween_default,
|
|
1980
|
+
style: style_default2,
|
|
1981
|
+
styleTween: styleTween_default,
|
|
1982
|
+
text: text_default2,
|
|
1983
|
+
textTween: textTween_default,
|
|
1984
|
+
remove: remove_default2,
|
|
1985
|
+
tween: tween_default,
|
|
1986
|
+
delay: delay_default,
|
|
1987
|
+
duration: duration_default,
|
|
1988
|
+
ease: ease_default,
|
|
1989
|
+
easeVarying: easeVarying_default,
|
|
1990
|
+
end: end_default,
|
|
1991
|
+
[Symbol.iterator]: selection_prototype[Symbol.iterator]
|
|
1992
|
+
};
|
|
1993
|
+
|
|
1994
|
+
// node_modules/d3-ease/src/cubic.js
|
|
1995
|
+
function cubicInOut(t) {
|
|
1996
|
+
return ((t *= 2) <= 1 ? t * t * t : (t -= 2) * t * t + 2) / 2;
|
|
1997
|
+
}
|
|
1998
|
+
// node_modules/d3-transition/src/selection/transition.js
|
|
1999
|
+
var defaultTiming = {
|
|
2000
|
+
time: null,
|
|
2001
|
+
delay: 0,
|
|
2002
|
+
duration: 250,
|
|
2003
|
+
ease: cubicInOut
|
|
2004
|
+
};
|
|
2005
|
+
function inherit(node, id2) {
|
|
2006
|
+
var timing;
|
|
2007
|
+
while (!(timing = node.__transition) || !(timing = timing[id2])) {
|
|
2008
|
+
if (!(node = node.parentNode)) {
|
|
2009
|
+
throw new Error(`transition ${id2} not found`);
|
|
2010
|
+
}
|
|
2011
|
+
}
|
|
2012
|
+
return timing;
|
|
2013
|
+
}
|
|
2014
|
+
function transition_default2(name) {
|
|
2015
|
+
var id2, timing;
|
|
2016
|
+
if (name instanceof Transition) {
|
|
2017
|
+
id2 = name._id, name = name._name;
|
|
2018
|
+
} else {
|
|
2019
|
+
id2 = newId(), (timing = defaultTiming).time = now(), name = name == null ? null : name + "";
|
|
2020
|
+
}
|
|
2021
|
+
for (var groups = this._groups, m = groups.length, j = 0;j < m; ++j) {
|
|
2022
|
+
for (var group = groups[j], n = group.length, node, i = 0;i < n; ++i) {
|
|
2023
|
+
if (node = group[i]) {
|
|
2024
|
+
schedule_default(node, name, id2, i, group, timing || inherit(node, id2));
|
|
2025
|
+
}
|
|
2026
|
+
}
|
|
2027
|
+
}
|
|
2028
|
+
return new Transition(groups, this._parents, name, id2);
|
|
2029
|
+
}
|
|
2030
|
+
|
|
2031
|
+
// node_modules/d3-transition/src/selection/index.js
|
|
2032
|
+
selection_default.prototype.interrupt = interrupt_default2;
|
|
2033
|
+
selection_default.prototype.transition = transition_default2;
|
|
2034
|
+
|
|
2035
|
+
// node_modules/d3-brush/src/brush.js
|
|
2036
|
+
function number1(e) {
|
|
2037
|
+
return [+e[0], +e[1]];
|
|
2038
|
+
}
|
|
2039
|
+
function number2(e) {
|
|
2040
|
+
return [number1(e[0]), number1(e[1])];
|
|
2041
|
+
}
|
|
2042
|
+
var X = {
|
|
2043
|
+
name: "x",
|
|
2044
|
+
handles: ["w", "e"].map(type),
|
|
2045
|
+
input: function(x, e) {
|
|
2046
|
+
return x == null ? null : [[+x[0], e[0][1]], [+x[1], e[1][1]]];
|
|
2047
|
+
},
|
|
2048
|
+
output: function(xy) {
|
|
2049
|
+
return xy && [xy[0][0], xy[1][0]];
|
|
2050
|
+
}
|
|
2051
|
+
};
|
|
2052
|
+
var Y = {
|
|
2053
|
+
name: "y",
|
|
2054
|
+
handles: ["n", "s"].map(type),
|
|
2055
|
+
input: function(y, e) {
|
|
2056
|
+
return y == null ? null : [[e[0][0], +y[0]], [e[1][0], +y[1]]];
|
|
2057
|
+
},
|
|
2058
|
+
output: function(xy) {
|
|
2059
|
+
return xy && [xy[0][1], xy[1][1]];
|
|
2060
|
+
}
|
|
2061
|
+
};
|
|
2062
|
+
var XY = {
|
|
2063
|
+
name: "xy",
|
|
2064
|
+
handles: ["n", "w", "e", "s", "nw", "ne", "sw", "se"].map(type),
|
|
2065
|
+
input: function(xy) {
|
|
2066
|
+
return xy == null ? null : number2(xy);
|
|
2067
|
+
},
|
|
2068
|
+
output: function(xy) {
|
|
2069
|
+
return xy;
|
|
2070
|
+
}
|
|
2071
|
+
};
|
|
2072
|
+
function type(t) {
|
|
2073
|
+
return { type: t };
|
|
2074
|
+
}
|
|
2075
|
+
// node_modules/d3-zoom/src/transform.js
|
|
2076
|
+
function Transform(k, x, y) {
|
|
2077
|
+
this.k = k;
|
|
2078
|
+
this.x = x;
|
|
2079
|
+
this.y = y;
|
|
2080
|
+
}
|
|
2081
|
+
Transform.prototype = {
|
|
2082
|
+
constructor: Transform,
|
|
2083
|
+
scale: function(k) {
|
|
2084
|
+
return k === 1 ? this : new Transform(this.k * k, this.x, this.y);
|
|
2085
|
+
},
|
|
2086
|
+
translate: function(x, y) {
|
|
2087
|
+
return x === 0 & y === 0 ? this : new Transform(this.k, this.x + this.k * x, this.y + this.k * y);
|
|
2088
|
+
},
|
|
2089
|
+
apply: function(point) {
|
|
2090
|
+
return [point[0] * this.k + this.x, point[1] * this.k + this.y];
|
|
2091
|
+
},
|
|
2092
|
+
applyX: function(x) {
|
|
2093
|
+
return x * this.k + this.x;
|
|
2094
|
+
},
|
|
2095
|
+
applyY: function(y) {
|
|
2096
|
+
return y * this.k + this.y;
|
|
2097
|
+
},
|
|
2098
|
+
invert: function(location) {
|
|
2099
|
+
return [(location[0] - this.x) / this.k, (location[1] - this.y) / this.k];
|
|
2100
|
+
},
|
|
2101
|
+
invertX: function(x) {
|
|
2102
|
+
return (x - this.x) / this.k;
|
|
2103
|
+
},
|
|
2104
|
+
invertY: function(y) {
|
|
2105
|
+
return (y - this.y) / this.k;
|
|
2106
|
+
},
|
|
2107
|
+
rescaleX: function(x) {
|
|
2108
|
+
return x.copy().domain(x.range().map(this.invertX, this).map(x.invert, x));
|
|
2109
|
+
},
|
|
2110
|
+
rescaleY: function(y) {
|
|
2111
|
+
return y.copy().domain(y.range().map(this.invertY, this).map(y.invert, y));
|
|
2112
|
+
},
|
|
2113
|
+
toString: function() {
|
|
2114
|
+
return "translate(" + this.x + "," + this.y + ") scale(" + this.k + ")";
|
|
2115
|
+
}
|
|
2116
|
+
};
|
|
2117
|
+
var identity = new Transform(1, 0, 0);
|
|
2118
|
+
transform.prototype = Transform.prototype;
|
|
2119
|
+
function transform(node) {
|
|
2120
|
+
while (!node.__zoom)
|
|
2121
|
+
if (!(node = node.parentNode))
|
|
2122
|
+
return identity;
|
|
2123
|
+
return node.__zoom;
|
|
2124
|
+
}
|
|
2125
|
+
export { require_dayjs_min, log, setLogLevel, axisTop, axisBottom, select_default2 as select_default };
|