ranui 0.2.1-alpha.1 → 0.2.1-alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/abnfDiagram-VRR7QNED-CH_pIv_l.cjs +1 -0
- package/dist/abnfDiagram-VRR7QNED-CTsqwzwi.js +95 -0
- package/dist/arc-D25LhgTs.cjs +1 -0
- package/dist/arc-DRPGof21.js +82 -0
- package/dist/architecture-TIHT7OUA-BbBd15_y.cjs +1 -0
- package/dist/architecture-TIHT7OUA-pbFO1xSx.js +5 -0
- package/dist/architectureDiagram-ZJ3FMSHR-8mjyXr-w.js +4279 -0
- package/dist/architectureDiagram-ZJ3FMSHR-D_jWFFZx.cjs +36 -0
- package/dist/array-By5736M5.js +7 -0
- package/dist/array-C3cbN3GY.cjs +1 -0
- package/dist/blockDiagram-677ZJIJ3-3F79MOSt.js +3321 -0
- package/dist/blockDiagram-677ZJIJ3-Cx35khWe.cjs +132 -0
- package/dist/builder.d.ts +2 -2
- package/dist/builder.js +39 -34
- package/dist/{builtin-D9djWkCE.js → builtin-1lUEp_ro.js} +83 -76
- package/dist/button-Cj-XSCsd.js +117 -0
- package/dist/button.js +1 -1
- package/dist/c4Diagram-LMCZKHZV-Cxn_gqu_.js +3064 -0
- package/dist/c4Diagram-LMCZKHZV-TRNb3Gvl.cjs +10 -0
- package/dist/{card-CqJa4Q_v.js → card-BHN9Xp4S.js} +2 -2
- package/dist/card.js +1 -1
- package/dist/channel-C9WSNwcS.cjs +1 -0
- package/dist/channel-k5-UxdcV.js +5 -0
- package/dist/{checkbox-CThC9-vy.js → checkbox-O_J_n1_W.js} +10 -10
- package/dist/checkbox.js +1 -1
- package/dist/chunk-2Q5K7J3B-CTMy5FII.cjs +1 -0
- package/dist/chunk-2Q5K7J3B-DlFVJRAn.js +15 -0
- package/dist/chunk-32BRIVSS-BXVdG_nV.cjs +1 -0
- package/dist/chunk-32BRIVSS-jAuAwMVV.js +68 -0
- package/dist/chunk-52WLFC77-BChUrU24.cjs +10 -0
- package/dist/chunk-52WLFC77-wpL7en7e.js +630 -0
- package/dist/chunk-5VM5RSS4-Cni2Ogq2.js +19 -0
- package/dist/chunk-5VM5RSS4-DudUFQ_Z.cjs +15 -0
- package/dist/chunk-7BUUIJ7U-9hiBbc7O.js +87 -0
- package/dist/chunk-7BUUIJ7U-DMv_UkjI.cjs +1 -0
- package/dist/chunk-C7G6YPKG-CA-DNpvI.js +71 -0
- package/dist/chunk-C7G6YPKG-CKEeW9TM.cjs +1 -0
- package/dist/chunk-EX3LRPZG-BCmf0iDq.js +2137 -0
- package/dist/chunk-EX3LRPZG-DbfbNdXo.cjs +231 -0
- package/dist/chunk-FWX5IMBZ-D11-gbhc.cjs +1 -0
- package/dist/chunk-FWX5IMBZ-DZ5VYvm5.js +60 -0
- package/dist/chunk-HOUHSVGY-BGB3dOvI.cjs +1 -0
- package/dist/chunk-HOUHSVGY-DRQcQeMT.js +268 -0
- package/dist/chunk-ICXQ74PX-BbT9JaEW.cjs +2 -0
- package/dist/chunk-ICXQ74PX-DR8rL-xF.js +1377 -0
- package/dist/chunk-JWPE2WC7-CGEmUMMZ.js +8 -0
- package/dist/chunk-JWPE2WC7-D8EnWK1B.cjs +1 -0
- package/dist/chunk-KEIR6QF5-B2Op7cFH.js +22155 -0
- package/dist/chunk-KEIR6QF5-C4fcHpY0.cjs +161 -0
- package/dist/chunk-MOJQB5TN-BC46HDyu.js +516 -0
- package/dist/chunk-MOJQB5TN-oOeq982_.cjs +88 -0
- package/dist/chunk-OGEWGWER-BV51ll2w.js +33 -0
- package/dist/chunk-OGEWGWER-DX8sW1dT.cjs +1 -0
- package/dist/chunk-PUDLZKDR-48YaqVoF.cjs +156 -0
- package/dist/chunk-PUDLZKDR-NdMR0Ft5.js +4282 -0
- package/dist/chunk-Q4XR5HBZ-3BHjjc9u.js +1709 -0
- package/dist/chunk-Q4XR5HBZ-aBnPq509.cjs +70 -0
- package/dist/chunk-RYQCIY6F-BER2T9t0.js +246 -0
- package/dist/chunk-RYQCIY6F-DVRzSnsI.cjs +1 -0
- package/dist/chunk-V7JOEXUC-Cr_hr02u.js +3467 -0
- package/dist/chunk-V7JOEXUC-DHizzTla.cjs +206 -0
- package/dist/chunk-VAUOI2AC-DfQf5L2_.cjs +1 -0
- package/dist/chunk-VAUOI2AC-izt0o4id.js +11 -0
- package/dist/chunk-VR4S4FIN-CJi5okl4.js +26 -0
- package/dist/chunk-VR4S4FIN-KiwnPF31.cjs +1 -0
- package/dist/chunk-WYO6CB5R-DDHkKowO.js +4535 -0
- package/dist/chunk-WYO6CB5R-u4mJNOcO.cjs +127 -0
- package/dist/chunk-XXDRQBXY-BB1i_53q.js +9 -0
- package/dist/chunk-XXDRQBXY-C8VGLZmt.cjs +1 -0
- package/dist/chunk-Y2CYZVJY-0JxdZxki.js +13 -0
- package/dist/chunk-Y2CYZVJY-DPaYLFFP.cjs +1 -0
- package/dist/chunk-ZGVPDNZ5-6uMbTJXy.js +3841 -0
- package/dist/chunk-ZGVPDNZ5-Cw5_HJba.cjs +62 -0
- package/dist/chunk-ZIRB5QZD-C7OH2FI2.js +1280 -0
- package/dist/chunk-ZIRB5QZD-aLu-4ITN.cjs +32 -0
- package/dist/classDiagram-OUVF2IWQ-D6rqYIh0.cjs +1 -0
- package/dist/classDiagram-OUVF2IWQ-Df0ghim9.js +30 -0
- package/dist/classDiagram-v2-EOCWNBFH-D6rqYIh0.cjs +1 -0
- package/dist/classDiagram-v2-EOCWNBFH-Df0ghim9.js +30 -0
- package/dist/{colorpicker-XNxDRcQ-.js → colorpicker-mebH0XLm.js} +8 -8
- package/dist/colorpicker.js +1 -1
- package/dist/components/glass/index.d.ts +52 -0
- package/dist/components/icon/core-icons.d.ts +13 -0
- package/dist/components/icon/index.d.ts +1 -1
- package/dist/components/mermaid/index.d.ts +52 -0
- package/dist/components/modal/index.d.ts +9 -0
- package/dist/content-YOKzMoc7.js +39 -0
- package/dist/content.js +5 -0
- package/dist/cose-bilkent-JH36ORCC-BUxFTdey.cjs +1 -0
- package/dist/cose-bilkent-JH36ORCC-DTwvJlGw.js +2353 -0
- package/dist/cynefin-VYW2F7L2-6c1GOGXW.cjs +1 -0
- package/dist/cynefin-VYW2F7L2-ALQKF7N6.js +5 -0
- package/dist/cynefinDiagram-TSTJHNR4-Bjt4QTVh.js +355 -0
- package/dist/cynefinDiagram-TSTJHNR4-ISDORSxO.cjs +62 -0
- package/dist/cytoscape.esm-CFq1_DTa.js +18906 -0
- package/dist/cytoscape.esm-pygMw4dR.cjs +321 -0
- package/dist/dagre-D1-W1tt6.cjs +1 -0
- package/dist/dagre-D8GLTwuf.js +1578 -0
- package/dist/dagre-VKFMJZFB-DXI69qAN.cjs +4 -0
- package/dist/dagre-VKFMJZFB-Dfku86Az.js +341 -0
- package/dist/defaultLocale-0M_kMcEH.js +184 -0
- package/dist/defaultLocale-DSqtvhxg.cjs +1 -0
- package/dist/diagram-FQU43EPY-BAiRt5eL.cjs +3 -0
- package/dist/diagram-FQU43EPY-BvQ5jmVn.js +452 -0
- package/dist/diagram-G47NLZAW-DGnmEa8u.cjs +24 -0
- package/dist/diagram-G47NLZAW-DT2BBA0T.js +498 -0
- package/dist/diagram-NH7WQ7WH-DxgkStA3.cjs +24 -0
- package/dist/diagram-NH7WQ7WH-W7jg4Vh8.js +135 -0
- package/dist/diagram-OA4YK3LP-DkvFII73.cjs +30 -0
- package/dist/diagram-OA4YK3LP-jU--aqQl.js +317 -0
- package/dist/diagram-WEI45ONY-C_Qhf4ny.js +215 -0
- package/dist/diagram-WEI45ONY-XvzRFmmY.cjs +41 -0
- package/dist/dist-C0Fwsvsq.js +70 -0
- package/dist/dist-C20XxSsP.cjs +1 -0
- package/dist/{dropdown-CCvsambb.js → dropdown-CzGAVWYC.js} +4 -4
- package/dist/dropdown.js +1 -1
- package/dist/ebnfDiagram-CCIWWBDH-Cu8bAlhC.cjs +1 -0
- package/dist/ebnfDiagram-CCIWWBDH-Gnr20Oc1.js +112 -0
- package/dist/erDiagram-Q63AITRT-CxLSa9Yv.cjs +85 -0
- package/dist/erDiagram-Q63AITRT-D0Hh9b-W.js +1822 -0
- package/dist/eventmodeling-45OFAUF4-C6VXxUn1.cjs +1 -0
- package/dist/eventmodeling-45OFAUF4-DMpGs2yI.js +5 -0
- package/dist/factory-ZNhcQ4tf.js +482 -0
- package/dist/flowDiagram-23GEKE2U-B6gASEYG.cjs +1 -0
- package/dist/flowDiagram-23GEKE2U-BY4wE2vw.js +19 -0
- package/dist/{form-Ceq3uJzz.js → form-B8afuJlF.js} +5 -5
- package/dist/form.js +1 -1
- package/dist/ganttDiagram-NO4QXBWP-B40Eabk0.js +3125 -0
- package/dist/ganttDiagram-NO4QXBWP-DZT79qJr.cjs +292 -0
- package/dist/gitGraph-TEB2WS4Q-BbtF3MDr.cjs +1 -0
- package/dist/gitGraph-TEB2WS4Q-D6Ru11Cs.js +5 -0
- package/dist/gitGraphDiagram-IHSO6WYX-BUJNSssA.js +754 -0
- package/dist/gitGraphDiagram-IHSO6WYX-DW06165m.cjs +106 -0
- package/dist/glass-BniIptBE.js +115 -0
- package/dist/glass.js +5 -0
- package/dist/graphlib-CCKThIKP.js +1104 -0
- package/dist/graphlib-Du-578Js.cjs +1 -0
- package/dist/{icon-C_ENrJ3F.js → icon-GZrfSeon.js} +77 -25
- package/dist/icon.js +1 -1
- package/dist/icons.js +1 -1
- package/dist/iife/button.iife.js +1 -1
- package/dist/iife/card.iife.js +1 -1
- package/dist/iife/checkbox.iife.js +1 -1
- package/dist/iife/colorpicker.iife.js +2 -2
- package/dist/iife/content.iife.js +1 -0
- package/dist/iife/dropdown.iife.js +1 -1
- package/dist/iife/form.iife.js +1 -1
- package/dist/iife/glass.iife.js +1 -0
- package/dist/iife/icon.iife.js +1 -1
- package/dist/iife/image.iife.js +1 -1
- package/dist/iife/input.iife.js +1 -1
- package/dist/iife/loading.iife.js +1 -1
- package/dist/iife/math.iife.js +14 -14
- package/dist/iife/mermaid.iife.js +3535 -0
- package/dist/iife/message.iife.js +1 -1
- package/dist/iife/modal.iife.js +1 -1
- package/dist/iife/player.iife.js +8 -8
- package/dist/iife/popover.iife.js +1 -1
- package/dist/iife/progress.iife.js +1 -1
- package/dist/iife/radar.iife.js +1 -1
- package/dist/iife/route.iife.js +1 -1
- package/dist/iife/router.iife.js +1 -1
- package/dist/iife/scratch.iife.js +1 -1
- package/dist/iife/section.iife.js +1 -1
- package/dist/iife/select.iife.js +2 -2
- package/dist/iife/skeleton.iife.js +1 -1
- package/dist/iife/tab.iife.js +1 -1
- package/dist/iife/tabpane.iife.js +1 -1
- package/dist/iife/theme-switch.iife.js +1 -1
- package/dist/{image-B7MBI5n_.js → image-CqoQfJoV.js} +4 -4
- package/dist/image.js +1 -1
- package/dist/index.cjs +38 -37
- package/dist/index.d.ts +8 -0
- package/dist/index.iife.js +3623 -88
- package/dist/index.js +88 -84
- package/dist/info-DKCQHKI2-DNOtUIin.cjs +1 -0
- package/dist/info-DKCQHKI2-Df7h9MSE.js +5 -0
- package/dist/infoDiagram-FWYZ7A6U-C8dZc-Ki.cjs +2 -0
- package/dist/infoDiagram-FWYZ7A6U-Dc0m9qAx.js +21 -0
- package/dist/init-1VpIn1S3.js +16 -0
- package/dist/init-CbDwVtpO.cjs +1 -0
- package/dist/{input-RNqdEHPf.js → input-BlwAXu7I.js} +6 -6
- package/dist/input.js +1 -1
- package/dist/ishikawaDiagram-FXEZZL3T-BugNyysB.cjs +70 -0
- package/dist/ishikawaDiagram-FXEZZL3T-DuFtHOmf.js +742 -0
- package/dist/journeyDiagram-5HDEW3XC-Bshelnhq.js +928 -0
- package/dist/journeyDiagram-5HDEW3XC-ItmURvA2.cjs +139 -0
- package/dist/kanban-definition-HUTT4EX6-BL512R2A.cjs +89 -0
- package/dist/kanban-definition-HUTT4EX6-Dogv2paU.js +1050 -0
- package/dist/katex-Cq3Y8cmK.cjs +257 -0
- package/dist/katex-Pg2EqTH0.js +23485 -0
- package/dist/line-BIPmUVxO.js +33 -0
- package/dist/line-CAB5QHC6.cjs +1 -0
- package/dist/linear-B2AM4ZBe.js +259 -0
- package/dist/linear-CSAfNEpl.cjs +1 -0
- package/dist/{link-DURZzd7u.js → link-BCrmHvXP.js} +3 -3
- package/dist/link.js +1 -1
- package/dist/{loading-B9MFI03l.js → loading-M6gWxLbm.js} +4 -4
- package/dist/loading.js +1 -1
- package/dist/map-BC2bk_rV.cjs +1 -0
- package/dist/map-DMSWkcq6.js +208 -0
- package/dist/{math-CudIwEXZ.js → math-8E-45Y8e.js} +4 -4
- package/dist/math.js +1 -1
- package/dist/mermaid-C1oQyPE3.js +261 -0
- package/dist/mermaid-parser.core-DYumW1vq.cjs +6 -0
- package/dist/mermaid-parser.core-uIDZYuBu.js +654 -0
- package/dist/mermaid.core-B2d5lQW2.js +1085 -0
- package/dist/mermaid.core-a1hgpWfs.cjs +10 -0
- package/dist/mermaid.js +5 -0
- package/dist/{message-DW7qWpEm.js → message-CNdmbeLf.js} +6 -6
- package/dist/message.js +1 -1
- package/dist/mindmap-definition-LN4V7U3C-DYZgIZym.cjs +96 -0
- package/dist/mindmap-definition-LN4V7U3C-f7s5ZePP.js +1070 -0
- package/dist/{modal-CrvGKL2B.js → modal-gRagDkTb.js} +40 -24
- package/dist/modal.js +1 -1
- package/dist/ordinal-BMN81JG2.js +64 -0
- package/dist/ordinal-BplLHIij.cjs +1 -0
- package/dist/packet-7NZHBO7P-4PLslLZJ.js +5 -0
- package/dist/packet-7NZHBO7P-DeyLCrSn.cjs +1 -0
- package/dist/path-Bja5PoYn.js +82 -0
- package/dist/path-DmfWsuKi.cjs +1 -0
- package/dist/pegDiagram-2B236MQR-B-Xeh55J.js +107 -0
- package/dist/pegDiagram-2B236MQR-Bo5Nj40u.cjs +1 -0
- package/dist/pie-RZYD4A2V-DBE9a8Kz.js +5 -0
- package/dist/pie-RZYD4A2V-pDNZ2ZyB.cjs +1 -0
- package/dist/pieDiagram-ENE6RG2P-BkSiP4iu.cjs +39 -0
- package/dist/pieDiagram-ENE6RG2P-CVSE95zc.js +207 -0
- package/dist/{player-BKQaaT7o.js → player-CAQ5Og2P.js} +196 -195
- package/dist/player.js +1 -1
- package/dist/{popover-CvYIVgUS.js → popover-BZKSLe3D.js} +22 -54
- package/dist/popover.js +1 -1
- package/dist/{progress-C6jctsFH.js → progress-vk40tuhm.js} +5 -5
- package/dist/progress.js +1 -1
- package/dist/quadrantDiagram-ABIIQ3AL-BDmdDGsh.cjs +7 -0
- package/dist/quadrantDiagram-ABIIQ3AL-TJ8FmqES.js +2058 -0
- package/dist/{radar-BUb4EzmG.js → radar-Bg0cexzU.js} +5 -5
- package/dist/radar-I7S5WNFK-CY5ycn2a.cjs +1 -0
- package/dist/radar-I7S5WNFK-DFTxtd_t.js +5 -0
- package/dist/radar.js +1 -1
- package/dist/railroad-3IZDKUUU-DALJwv16.js +5 -0
- package/dist/railroad-3IZDKUUU-DGzXHqt7.cjs +1 -0
- package/dist/railroad-abnf-AHOZXSZD-BCIHdSw6.cjs +1 -0
- package/dist/railroad-abnf-AHOZXSZD-CntW2udQ.js +5 -0
- package/dist/railroad-ebnf-EBAXGLYW-4vFZrfHF.cjs +1 -0
- package/dist/railroad-ebnf-EBAXGLYW-s_1ZOb_9.js +5 -0
- package/dist/railroad-peg-LSFZ7HO6-CaM5A0Ml.js +5 -0
- package/dist/railroad-peg-LSFZ7HO6-D_oFW1Bo.cjs +1 -0
- package/dist/railroadDiagram-RFXS5EU6-0lS5wYI7.js +83 -0
- package/dist/railroadDiagram-RFXS5EU6-DJKAtnQk.cjs +1 -0
- package/dist/ranui.css +1 -1
- package/dist/requirementDiagram-TGXJPOKE-Bg701bNl.cjs +84 -0
- package/dist/requirementDiagram-TGXJPOKE-viCQLyJd.js +2301 -0
- package/dist/rolldown-runtime-9ZSF5uba.js +16 -0
- package/dist/rolldown-runtime-CAnuVJ4g.cjs +1 -0
- package/dist/rough.esm-BWe9E0Nz.js +1387 -0
- package/dist/rough.esm-BfSi6CZE.cjs +1 -0
- package/dist/{route-Djrf9UR_.js → route-CGwS0cd_.js} +10 -10
- package/dist/route.js +1 -1
- package/dist/{router-BU2KhtxV.js → router-BK6DEkcN.js} +5 -5
- package/dist/router.js +1 -1
- package/dist/sankeyDiagram-HTMAVEWB-CV6_AuMF.js +974 -0
- package/dist/sankeyDiagram-HTMAVEWB-K-nGMsuS.cjs +40 -0
- package/dist/{scratch-CO4I2dIa.js → scratch-ClF1awGi.js} +2 -2
- package/dist/scratch.js +1 -1
- package/dist/{section-CsUkp8bv.js → section-BL0V7Kjf.js} +2 -2
- package/dist/section.js +1 -1
- package/dist/{select-Dn26ajJZ.js → select-BIFVbQIj.js} +13 -13
- package/dist/select.js +1 -1
- package/dist/sequenceDiagram-DBY2YBRQ-4GdkLnUr.cjs +162 -0
- package/dist/sequenceDiagram-DBY2YBRQ-B9WNesh2.js +4326 -0
- package/dist/sizeCapture-X5ZJPWSS-BUY3-n09.cjs +1 -0
- package/dist/sizeCapture-X5ZJPWSS-D7rGsqTl.js +48 -0
- package/dist/{skeleton-BuMLhvzQ.js → skeleton-D7JIbROq.js} +5 -5
- package/dist/skeleton.js +1 -1
- package/dist/src-C9EhKhbk.cjs +1 -0
- package/dist/src-DtRLxcYO.js +2104 -0
- package/dist/stateDiagram-2N3HPSRC-B7VpgjJu.cjs +1 -0
- package/dist/stateDiagram-2N3HPSRC-DxH4BMSh.js +237 -0
- package/dist/stateDiagram-v2-6OUMAXLB-CQv7GIaO.cjs +1 -0
- package/dist/stateDiagram-v2-6OUMAXLB-CWfn6e7n.js +30 -0
- package/dist/swimlanes-5IMT3BWC-DcADNGpg.js +5258 -0
- package/dist/swimlanes-5IMT3BWC-o-MjdPlw.cjs +1 -0
- package/dist/swimlanesDiagram-G3AALYLV-D-rmAGky.cjs +8 -0
- package/dist/swimlanesDiagram-G3AALYLV-DDtDtl1L.js +31 -0
- package/dist/{tab-40fDkuox.js → tab-DFVtDJb2.js} +5 -5
- package/dist/tab.js +1 -1
- package/dist/{tabpane-F4Pd7JtC.js → tabpane-C3qZGN-D.js} +5 -5
- package/dist/tabpane.js +1 -1
- package/dist/test/ssr/stream.test.d.ts +1 -0
- package/dist/{theme-switch-B09egc6h.js → theme-switch-BXNH5uPD.js} +45 -45
- package/dist/theme-switch.js +1 -1
- package/dist/timeline-definition-FHXFAJF6-C80VjPLh.js +1119 -0
- package/dist/timeline-definition-FHXFAJF6-DOwvOb3S.cjs +120 -0
- package/dist/treeView-QDETBFTQ-B1Ejxfpg.cjs +1 -0
- package/dist/treeView-QDETBFTQ-vTKOZls1.js +5 -0
- package/dist/treemap-6X3UGDF4-D0FeO_NX.cjs +1 -0
- package/dist/treemap-6X3UGDF4-Ddzv6Gqd.js +5 -0
- package/dist/utils/builder/core.d.ts +135 -3
- package/dist/utils/builder/index.d.ts +1 -1
- package/dist/{utils-DBfrRFoE.js → utils-D1iZnChu.js} +38 -31
- package/dist/vennDiagram-L72KCM5P-BYHB7OW8.js +1955 -0
- package/dist/vennDiagram-L72KCM5P-CidVJK6y.cjs +34 -0
- package/dist/wardley-OPB4EBWU-C1hXbbD4.cjs +1 -0
- package/dist/wardley-OPB4EBWU-DBgFLc64.js +5 -0
- package/dist/wardleyDiagram-EHGQE667--ubmCaWM.js +652 -0
- package/dist/wardleyDiagram-EHGQE667-K6ckkRZS.cjs +78 -0
- package/dist/xychartDiagram-FW5EYKEG-CzdokxrM.cjs +7 -0
- package/dist/xychartDiagram-FW5EYKEG-DLqWcTPt.js +2154 -0
- package/docs/BUILDER.md +170 -2
- package/package.json +7 -1
- package/dist/button-BfYw0fes.js +0 -117
- package/dist/factory-DCrO37si.js +0 -334
|
@@ -0,0 +1,1377 @@
|
|
|
1
|
+
import { n as _ } from "./chunk-Y2CYZVJY-0JxdZxki.js";
|
|
2
|
+
import { m as g, p as Rt } from "./src-DtRLxcYO.js";
|
|
3
|
+
import { R as Lt, h as S, p as Dt, r as nt, s as R } from "./chunk-WYO6CB5R-DDHkKowO.js";
|
|
4
|
+
import { t as Ft } from "./dist-C0Fwsvsq.js";
|
|
5
|
+
function st(t) {
|
|
6
|
+
this._context = t;
|
|
7
|
+
}
|
|
8
|
+
st.prototype = {
|
|
9
|
+
areaStart: function() {
|
|
10
|
+
this._line = 0;
|
|
11
|
+
},
|
|
12
|
+
areaEnd: function() {
|
|
13
|
+
this._line = NaN;
|
|
14
|
+
},
|
|
15
|
+
lineStart: function() {
|
|
16
|
+
this._point = 0;
|
|
17
|
+
},
|
|
18
|
+
lineEnd: function() {
|
|
19
|
+
(this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
|
|
20
|
+
},
|
|
21
|
+
point: function(t, i) {
|
|
22
|
+
switch (t = +t, i = +i, this._point) {
|
|
23
|
+
case 0:
|
|
24
|
+
this._point = 1, this._line ? this._context.lineTo(t, i) : this._context.moveTo(t, i);
|
|
25
|
+
break;
|
|
26
|
+
case 1:
|
|
27
|
+
this._point = 2;
|
|
28
|
+
default:
|
|
29
|
+
this._context.lineTo(t, i);
|
|
30
|
+
break;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
function Wt(t) {
|
|
35
|
+
return new st(t);
|
|
36
|
+
}
|
|
37
|
+
var rt = class {
|
|
38
|
+
constructor(t, i) {
|
|
39
|
+
this._context = t, this._x = i;
|
|
40
|
+
}
|
|
41
|
+
areaStart() {
|
|
42
|
+
this._line = 0;
|
|
43
|
+
}
|
|
44
|
+
areaEnd() {
|
|
45
|
+
this._line = NaN;
|
|
46
|
+
}
|
|
47
|
+
lineStart() {
|
|
48
|
+
this._point = 0;
|
|
49
|
+
}
|
|
50
|
+
lineEnd() {
|
|
51
|
+
(this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
|
|
52
|
+
}
|
|
53
|
+
point(t, i) {
|
|
54
|
+
switch (t = +t, i = +i, this._point) {
|
|
55
|
+
case 0:
|
|
56
|
+
this._point = 1, this._line ? this._context.lineTo(t, i) : this._context.moveTo(t, i);
|
|
57
|
+
break;
|
|
58
|
+
case 1:
|
|
59
|
+
this._point = 2;
|
|
60
|
+
default:
|
|
61
|
+
this._x ? this._context.bezierCurveTo(this._x0 = (this._x0 + t) / 2, this._y0, this._x0, i, t, i) : this._context.bezierCurveTo(this._x0, this._y0 = (this._y0 + i) / 2, t, this._y0, t, i);
|
|
62
|
+
break;
|
|
63
|
+
}
|
|
64
|
+
this._x0 = t, this._y0 = i;
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
function zt(t) {
|
|
68
|
+
return new rt(t, !0);
|
|
69
|
+
}
|
|
70
|
+
function Tt(t) {
|
|
71
|
+
return new rt(t, !1);
|
|
72
|
+
}
|
|
73
|
+
function d() {
|
|
74
|
+
}
|
|
75
|
+
function N(t, i, n) {
|
|
76
|
+
t._context.bezierCurveTo((2 * t._x0 + t._x1) / 3, (2 * t._y0 + t._y1) / 3, (t._x0 + 2 * t._x1) / 3, (t._y0 + 2 * t._y1) / 3, (t._x0 + 4 * t._x1 + i) / 6, (t._y0 + 4 * t._y1 + n) / 6);
|
|
77
|
+
}
|
|
78
|
+
function M(t) {
|
|
79
|
+
this._context = t;
|
|
80
|
+
}
|
|
81
|
+
M.prototype = {
|
|
82
|
+
areaStart: function() {
|
|
83
|
+
this._line = 0;
|
|
84
|
+
},
|
|
85
|
+
areaEnd: function() {
|
|
86
|
+
this._line = NaN;
|
|
87
|
+
},
|
|
88
|
+
lineStart: function() {
|
|
89
|
+
this._x0 = this._x1 = this._y0 = this._y1 = NaN, this._point = 0;
|
|
90
|
+
},
|
|
91
|
+
lineEnd: function() {
|
|
92
|
+
switch (this._point) {
|
|
93
|
+
case 3:
|
|
94
|
+
N(this, this._x1, this._y1);
|
|
95
|
+
case 2:
|
|
96
|
+
this._context.lineTo(this._x1, this._y1);
|
|
97
|
+
break;
|
|
98
|
+
}
|
|
99
|
+
(this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
|
|
100
|
+
},
|
|
101
|
+
point: function(t, i) {
|
|
102
|
+
switch (t = +t, i = +i, this._point) {
|
|
103
|
+
case 0:
|
|
104
|
+
this._point = 1, this._line ? this._context.lineTo(t, i) : this._context.moveTo(t, i);
|
|
105
|
+
break;
|
|
106
|
+
case 1:
|
|
107
|
+
this._point = 2;
|
|
108
|
+
break;
|
|
109
|
+
case 2:
|
|
110
|
+
this._point = 3, this._context.lineTo((5 * this._x0 + this._x1) / 6, (5 * this._y0 + this._y1) / 6);
|
|
111
|
+
default:
|
|
112
|
+
N(this, t, i);
|
|
113
|
+
break;
|
|
114
|
+
}
|
|
115
|
+
this._x0 = this._x1, this._x1 = t, this._y0 = this._y1, this._y1 = i;
|
|
116
|
+
}
|
|
117
|
+
};
|
|
118
|
+
function jt(t) {
|
|
119
|
+
return new M(t);
|
|
120
|
+
}
|
|
121
|
+
function at(t) {
|
|
122
|
+
this._context = t;
|
|
123
|
+
}
|
|
124
|
+
at.prototype = {
|
|
125
|
+
areaStart: d,
|
|
126
|
+
areaEnd: d,
|
|
127
|
+
lineStart: function() {
|
|
128
|
+
this._x0 = this._x1 = this._x2 = this._x3 = this._x4 = this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = NaN, this._point = 0;
|
|
129
|
+
},
|
|
130
|
+
lineEnd: function() {
|
|
131
|
+
switch (this._point) {
|
|
132
|
+
case 1:
|
|
133
|
+
this._context.moveTo(this._x2, this._y2), this._context.closePath();
|
|
134
|
+
break;
|
|
135
|
+
case 2:
|
|
136
|
+
this._context.moveTo((this._x2 + 2 * this._x3) / 3, (this._y2 + 2 * this._y3) / 3), this._context.lineTo((this._x3 + 2 * this._x2) / 3, (this._y3 + 2 * this._y2) / 3), this._context.closePath();
|
|
137
|
+
break;
|
|
138
|
+
case 3:
|
|
139
|
+
this.point(this._x2, this._y2), this.point(this._x3, this._y3), this.point(this._x4, this._y4);
|
|
140
|
+
break;
|
|
141
|
+
}
|
|
142
|
+
},
|
|
143
|
+
point: function(t, i) {
|
|
144
|
+
switch (t = +t, i = +i, this._point) {
|
|
145
|
+
case 0:
|
|
146
|
+
this._point = 1, this._x2 = t, this._y2 = i;
|
|
147
|
+
break;
|
|
148
|
+
case 1:
|
|
149
|
+
this._point = 2, this._x3 = t, this._y3 = i;
|
|
150
|
+
break;
|
|
151
|
+
case 2:
|
|
152
|
+
this._point = 3, this._x4 = t, this._y4 = i, this._context.moveTo((this._x0 + 4 * this._x1 + t) / 6, (this._y0 + 4 * this._y1 + i) / 6);
|
|
153
|
+
break;
|
|
154
|
+
default:
|
|
155
|
+
N(this, t, i);
|
|
156
|
+
break;
|
|
157
|
+
}
|
|
158
|
+
this._x0 = this._x1, this._x1 = t, this._y0 = this._y1, this._y1 = i;
|
|
159
|
+
}
|
|
160
|
+
};
|
|
161
|
+
function Ht(t) {
|
|
162
|
+
return new at(t);
|
|
163
|
+
}
|
|
164
|
+
function ht(t) {
|
|
165
|
+
this._context = t;
|
|
166
|
+
}
|
|
167
|
+
ht.prototype = {
|
|
168
|
+
areaStart: function() {
|
|
169
|
+
this._line = 0;
|
|
170
|
+
},
|
|
171
|
+
areaEnd: function() {
|
|
172
|
+
this._line = NaN;
|
|
173
|
+
},
|
|
174
|
+
lineStart: function() {
|
|
175
|
+
this._x0 = this._x1 = this._y0 = this._y1 = NaN, this._point = 0;
|
|
176
|
+
},
|
|
177
|
+
lineEnd: function() {
|
|
178
|
+
(this._line || this._line !== 0 && this._point === 3) && this._context.closePath(), this._line = 1 - this._line;
|
|
179
|
+
},
|
|
180
|
+
point: function(t, i) {
|
|
181
|
+
switch (t = +t, i = +i, this._point) {
|
|
182
|
+
case 0:
|
|
183
|
+
this._point = 1;
|
|
184
|
+
break;
|
|
185
|
+
case 1:
|
|
186
|
+
this._point = 2;
|
|
187
|
+
break;
|
|
188
|
+
case 2:
|
|
189
|
+
this._point = 3;
|
|
190
|
+
var n = (this._x0 + 4 * this._x1 + t) / 6, e = (this._y0 + 4 * this._y1 + i) / 6;
|
|
191
|
+
this._line ? this._context.lineTo(n, e) : this._context.moveTo(n, e);
|
|
192
|
+
break;
|
|
193
|
+
case 3:
|
|
194
|
+
this._point = 4;
|
|
195
|
+
default:
|
|
196
|
+
N(this, t, i);
|
|
197
|
+
break;
|
|
198
|
+
}
|
|
199
|
+
this._x0 = this._x1, this._x1 = t, this._y0 = this._y1, this._y1 = i;
|
|
200
|
+
}
|
|
201
|
+
};
|
|
202
|
+
function Ut(t) {
|
|
203
|
+
return new ht(t);
|
|
204
|
+
}
|
|
205
|
+
function ot(t, i) {
|
|
206
|
+
this._basis = new M(t), this._beta = i;
|
|
207
|
+
}
|
|
208
|
+
ot.prototype = {
|
|
209
|
+
lineStart: function() {
|
|
210
|
+
this._x = [], this._y = [], this._basis.lineStart();
|
|
211
|
+
},
|
|
212
|
+
lineEnd: function() {
|
|
213
|
+
var t = this._x, i = this._y, n = t.length - 1;
|
|
214
|
+
if (n > 0)
|
|
215
|
+
for (var e = t[0], r = i[0], a = t[n] - e, s = i[n] - r, h = -1, o; ++h <= n; )
|
|
216
|
+
o = h / n, this._basis.point(this._beta * t[h] + (1 - this._beta) * (e + o * a), this._beta * i[h] + (1 - this._beta) * (r + o * s));
|
|
217
|
+
this._x = this._y = null, this._basis.lineEnd();
|
|
218
|
+
},
|
|
219
|
+
point: function(t, i) {
|
|
220
|
+
this._x.push(+t), this._y.push(+i);
|
|
221
|
+
}
|
|
222
|
+
};
|
|
223
|
+
var Xt = (function t(i) {
|
|
224
|
+
function n(e) {
|
|
225
|
+
return i === 1 ? new M(e) : new ot(e, i);
|
|
226
|
+
}
|
|
227
|
+
return n.beta = function(e) {
|
|
228
|
+
return t(+e);
|
|
229
|
+
}, n;
|
|
230
|
+
})(0.85);
|
|
231
|
+
function A(t, i, n) {
|
|
232
|
+
t._context.bezierCurveTo(t._x1 + t._k * (t._x2 - t._x0), t._y1 + t._k * (t._y2 - t._y0), t._x2 + t._k * (t._x1 - i), t._y2 + t._k * (t._y1 - n), t._x2, t._y2);
|
|
233
|
+
}
|
|
234
|
+
function L(t, i) {
|
|
235
|
+
this._context = t, this._k = (1 - i) / 6;
|
|
236
|
+
}
|
|
237
|
+
L.prototype = {
|
|
238
|
+
areaStart: function() {
|
|
239
|
+
this._line = 0;
|
|
240
|
+
},
|
|
241
|
+
areaEnd: function() {
|
|
242
|
+
this._line = NaN;
|
|
243
|
+
},
|
|
244
|
+
lineStart: function() {
|
|
245
|
+
this._x0 = this._x1 = this._x2 = this._y0 = this._y1 = this._y2 = NaN, this._point = 0;
|
|
246
|
+
},
|
|
247
|
+
lineEnd: function() {
|
|
248
|
+
switch (this._point) {
|
|
249
|
+
case 2:
|
|
250
|
+
this._context.lineTo(this._x2, this._y2);
|
|
251
|
+
break;
|
|
252
|
+
case 3:
|
|
253
|
+
A(this, this._x1, this._y1);
|
|
254
|
+
break;
|
|
255
|
+
}
|
|
256
|
+
(this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
|
|
257
|
+
},
|
|
258
|
+
point: function(t, i) {
|
|
259
|
+
switch (t = +t, i = +i, this._point) {
|
|
260
|
+
case 0:
|
|
261
|
+
this._point = 1, this._line ? this._context.lineTo(t, i) : this._context.moveTo(t, i);
|
|
262
|
+
break;
|
|
263
|
+
case 1:
|
|
264
|
+
this._point = 2, this._x1 = t, this._y1 = i;
|
|
265
|
+
break;
|
|
266
|
+
case 2:
|
|
267
|
+
this._point = 3;
|
|
268
|
+
default:
|
|
269
|
+
A(this, t, i);
|
|
270
|
+
break;
|
|
271
|
+
}
|
|
272
|
+
this._x0 = this._x1, this._x1 = this._x2, this._x2 = t, this._y0 = this._y1, this._y1 = this._y2, this._y2 = i;
|
|
273
|
+
}
|
|
274
|
+
};
|
|
275
|
+
var Yt = (function t(i) {
|
|
276
|
+
function n(e) {
|
|
277
|
+
return new L(e, i);
|
|
278
|
+
}
|
|
279
|
+
return n.tension = function(e) {
|
|
280
|
+
return t(+e);
|
|
281
|
+
}, n;
|
|
282
|
+
})(0);
|
|
283
|
+
function D(t, i) {
|
|
284
|
+
this._context = t, this._k = (1 - i) / 6;
|
|
285
|
+
}
|
|
286
|
+
D.prototype = {
|
|
287
|
+
areaStart: d,
|
|
288
|
+
areaEnd: d,
|
|
289
|
+
lineStart: function() {
|
|
290
|
+
this._x0 = this._x1 = this._x2 = this._x3 = this._x4 = this._x5 = this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = this._y5 = NaN, this._point = 0;
|
|
291
|
+
},
|
|
292
|
+
lineEnd: function() {
|
|
293
|
+
switch (this._point) {
|
|
294
|
+
case 1:
|
|
295
|
+
this._context.moveTo(this._x3, this._y3), this._context.closePath();
|
|
296
|
+
break;
|
|
297
|
+
case 2:
|
|
298
|
+
this._context.lineTo(this._x3, this._y3), this._context.closePath();
|
|
299
|
+
break;
|
|
300
|
+
case 3:
|
|
301
|
+
this.point(this._x3, this._y3), this.point(this._x4, this._y4), this.point(this._x5, this._y5);
|
|
302
|
+
break;
|
|
303
|
+
}
|
|
304
|
+
},
|
|
305
|
+
point: function(t, i) {
|
|
306
|
+
switch (t = +t, i = +i, this._point) {
|
|
307
|
+
case 0:
|
|
308
|
+
this._point = 1, this._x3 = t, this._y3 = i;
|
|
309
|
+
break;
|
|
310
|
+
case 1:
|
|
311
|
+
this._point = 2, this._context.moveTo(this._x4 = t, this._y4 = i);
|
|
312
|
+
break;
|
|
313
|
+
case 2:
|
|
314
|
+
this._point = 3, this._x5 = t, this._y5 = i;
|
|
315
|
+
break;
|
|
316
|
+
default:
|
|
317
|
+
A(this, t, i);
|
|
318
|
+
break;
|
|
319
|
+
}
|
|
320
|
+
this._x0 = this._x1, this._x1 = this._x2, this._x2 = t, this._y0 = this._y1, this._y1 = this._y2, this._y2 = i;
|
|
321
|
+
}
|
|
322
|
+
};
|
|
323
|
+
var qt = (function t(i) {
|
|
324
|
+
function n(e) {
|
|
325
|
+
return new D(e, i);
|
|
326
|
+
}
|
|
327
|
+
return n.tension = function(e) {
|
|
328
|
+
return t(+e);
|
|
329
|
+
}, n;
|
|
330
|
+
})(0);
|
|
331
|
+
function F(t, i) {
|
|
332
|
+
this._context = t, this._k = (1 - i) / 6;
|
|
333
|
+
}
|
|
334
|
+
F.prototype = {
|
|
335
|
+
areaStart: function() {
|
|
336
|
+
this._line = 0;
|
|
337
|
+
},
|
|
338
|
+
areaEnd: function() {
|
|
339
|
+
this._line = NaN;
|
|
340
|
+
},
|
|
341
|
+
lineStart: function() {
|
|
342
|
+
this._x0 = this._x1 = this._x2 = this._y0 = this._y1 = this._y2 = NaN, this._point = 0;
|
|
343
|
+
},
|
|
344
|
+
lineEnd: function() {
|
|
345
|
+
(this._line || this._line !== 0 && this._point === 3) && this._context.closePath(), this._line = 1 - this._line;
|
|
346
|
+
},
|
|
347
|
+
point: function(t, i) {
|
|
348
|
+
switch (t = +t, i = +i, this._point) {
|
|
349
|
+
case 0:
|
|
350
|
+
this._point = 1;
|
|
351
|
+
break;
|
|
352
|
+
case 1:
|
|
353
|
+
this._point = 2;
|
|
354
|
+
break;
|
|
355
|
+
case 2:
|
|
356
|
+
this._point = 3, this._line ? this._context.lineTo(this._x2, this._y2) : this._context.moveTo(this._x2, this._y2);
|
|
357
|
+
break;
|
|
358
|
+
case 3:
|
|
359
|
+
this._point = 4;
|
|
360
|
+
default:
|
|
361
|
+
A(this, t, i);
|
|
362
|
+
break;
|
|
363
|
+
}
|
|
364
|
+
this._x0 = this._x1, this._x1 = this._x2, this._x2 = t, this._y0 = this._y1, this._y1 = this._y2, this._y2 = i;
|
|
365
|
+
}
|
|
366
|
+
};
|
|
367
|
+
var Kt = (function t(i) {
|
|
368
|
+
function n(e) {
|
|
369
|
+
return new F(e, i);
|
|
370
|
+
}
|
|
371
|
+
return n.tension = function(e) {
|
|
372
|
+
return t(+e);
|
|
373
|
+
}, n;
|
|
374
|
+
})(0);
|
|
375
|
+
function W(t, i, n) {
|
|
376
|
+
var e = t._x1, r = t._y1, a = t._x2, s = t._y2;
|
|
377
|
+
if (t._l01_a > 1e-12) {
|
|
378
|
+
var h = 2 * t._l01_2a + 3 * t._l01_a * t._l12_a + t._l12_2a, o = 3 * t._l01_a * (t._l01_a + t._l12_a);
|
|
379
|
+
e = (e * h - t._x0 * t._l12_2a + t._x2 * t._l01_2a) / o, r = (r * h - t._y0 * t._l12_2a + t._y2 * t._l01_2a) / o;
|
|
380
|
+
}
|
|
381
|
+
if (t._l23_a > 1e-12) {
|
|
382
|
+
var c = 2 * t._l23_2a + 3 * t._l23_a * t._l12_a + t._l12_2a, f = 3 * t._l23_a * (t._l23_a + t._l12_a);
|
|
383
|
+
a = (a * c + t._x1 * t._l23_2a - i * t._l12_2a) / f, s = (s * c + t._y1 * t._l23_2a - n * t._l12_2a) / f;
|
|
384
|
+
}
|
|
385
|
+
t._context.bezierCurveTo(e, r, a, s, t._x2, t._y2);
|
|
386
|
+
}
|
|
387
|
+
function _t(t, i) {
|
|
388
|
+
this._context = t, this._alpha = i;
|
|
389
|
+
}
|
|
390
|
+
_t.prototype = {
|
|
391
|
+
areaStart: function() {
|
|
392
|
+
this._line = 0;
|
|
393
|
+
},
|
|
394
|
+
areaEnd: function() {
|
|
395
|
+
this._line = NaN;
|
|
396
|
+
},
|
|
397
|
+
lineStart: function() {
|
|
398
|
+
this._x0 = this._x1 = this._x2 = this._y0 = this._y1 = this._y2 = NaN, this._l01_a = this._l12_a = this._l23_a = this._l01_2a = this._l12_2a = this._l23_2a = this._point = 0;
|
|
399
|
+
},
|
|
400
|
+
lineEnd: function() {
|
|
401
|
+
switch (this._point) {
|
|
402
|
+
case 2:
|
|
403
|
+
this._context.lineTo(this._x2, this._y2);
|
|
404
|
+
break;
|
|
405
|
+
case 3:
|
|
406
|
+
this.point(this._x2, this._y2);
|
|
407
|
+
break;
|
|
408
|
+
}
|
|
409
|
+
(this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
|
|
410
|
+
},
|
|
411
|
+
point: function(t, i) {
|
|
412
|
+
if (t = +t, i = +i, this._point) {
|
|
413
|
+
var n = this._x2 - t, e = this._y2 - i;
|
|
414
|
+
this._l23_a = Math.sqrt(this._l23_2a = Math.pow(n * n + e * e, this._alpha));
|
|
415
|
+
}
|
|
416
|
+
switch (this._point) {
|
|
417
|
+
case 0:
|
|
418
|
+
this._point = 1, this._line ? this._context.lineTo(t, i) : this._context.moveTo(t, i);
|
|
419
|
+
break;
|
|
420
|
+
case 1:
|
|
421
|
+
this._point = 2;
|
|
422
|
+
break;
|
|
423
|
+
case 2:
|
|
424
|
+
this._point = 3;
|
|
425
|
+
default:
|
|
426
|
+
W(this, t, i);
|
|
427
|
+
break;
|
|
428
|
+
}
|
|
429
|
+
this._l01_a = this._l12_a, this._l12_a = this._l23_a, this._l01_2a = this._l12_2a, this._l12_2a = this._l23_2a, this._x0 = this._x1, this._x1 = this._x2, this._x2 = t, this._y0 = this._y1, this._y1 = this._y2, this._y2 = i;
|
|
430
|
+
}
|
|
431
|
+
};
|
|
432
|
+
var Gt = (function t(i) {
|
|
433
|
+
function n(e) {
|
|
434
|
+
return i ? new _t(e, i) : new L(e, 0);
|
|
435
|
+
}
|
|
436
|
+
return n.alpha = function(e) {
|
|
437
|
+
return t(+e);
|
|
438
|
+
}, n;
|
|
439
|
+
})(0.5);
|
|
440
|
+
function ct(t, i) {
|
|
441
|
+
this._context = t, this._alpha = i;
|
|
442
|
+
}
|
|
443
|
+
ct.prototype = {
|
|
444
|
+
areaStart: d,
|
|
445
|
+
areaEnd: d,
|
|
446
|
+
lineStart: function() {
|
|
447
|
+
this._x0 = this._x1 = this._x2 = this._x3 = this._x4 = this._x5 = this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = this._y5 = NaN, this._l01_a = this._l12_a = this._l23_a = this._l01_2a = this._l12_2a = this._l23_2a = this._point = 0;
|
|
448
|
+
},
|
|
449
|
+
lineEnd: function() {
|
|
450
|
+
switch (this._point) {
|
|
451
|
+
case 1:
|
|
452
|
+
this._context.moveTo(this._x3, this._y3), this._context.closePath();
|
|
453
|
+
break;
|
|
454
|
+
case 2:
|
|
455
|
+
this._context.lineTo(this._x3, this._y3), this._context.closePath();
|
|
456
|
+
break;
|
|
457
|
+
case 3:
|
|
458
|
+
this.point(this._x3, this._y3), this.point(this._x4, this._y4), this.point(this._x5, this._y5);
|
|
459
|
+
break;
|
|
460
|
+
}
|
|
461
|
+
},
|
|
462
|
+
point: function(t, i) {
|
|
463
|
+
if (t = +t, i = +i, this._point) {
|
|
464
|
+
var n = this._x2 - t, e = this._y2 - i;
|
|
465
|
+
this._l23_a = Math.sqrt(this._l23_2a = Math.pow(n * n + e * e, this._alpha));
|
|
466
|
+
}
|
|
467
|
+
switch (this._point) {
|
|
468
|
+
case 0:
|
|
469
|
+
this._point = 1, this._x3 = t, this._y3 = i;
|
|
470
|
+
break;
|
|
471
|
+
case 1:
|
|
472
|
+
this._point = 2, this._context.moveTo(this._x4 = t, this._y4 = i);
|
|
473
|
+
break;
|
|
474
|
+
case 2:
|
|
475
|
+
this._point = 3, this._x5 = t, this._y5 = i;
|
|
476
|
+
break;
|
|
477
|
+
default:
|
|
478
|
+
W(this, t, i);
|
|
479
|
+
break;
|
|
480
|
+
}
|
|
481
|
+
this._l01_a = this._l12_a, this._l12_a = this._l23_a, this._l01_2a = this._l12_2a, this._l12_2a = this._l23_2a, this._x0 = this._x1, this._x1 = this._x2, this._x2 = t, this._y0 = this._y1, this._y1 = this._y2, this._y2 = i;
|
|
482
|
+
}
|
|
483
|
+
};
|
|
484
|
+
var Jt = (function t(i) {
|
|
485
|
+
function n(e) {
|
|
486
|
+
return i ? new ct(e, i) : new D(e, 0);
|
|
487
|
+
}
|
|
488
|
+
return n.alpha = function(e) {
|
|
489
|
+
return t(+e);
|
|
490
|
+
}, n;
|
|
491
|
+
})(0.5);
|
|
492
|
+
function ft(t, i) {
|
|
493
|
+
this._context = t, this._alpha = i;
|
|
494
|
+
}
|
|
495
|
+
ft.prototype = {
|
|
496
|
+
areaStart: function() {
|
|
497
|
+
this._line = 0;
|
|
498
|
+
},
|
|
499
|
+
areaEnd: function() {
|
|
500
|
+
this._line = NaN;
|
|
501
|
+
},
|
|
502
|
+
lineStart: function() {
|
|
503
|
+
this._x0 = this._x1 = this._x2 = this._y0 = this._y1 = this._y2 = NaN, this._l01_a = this._l12_a = this._l23_a = this._l01_2a = this._l12_2a = this._l23_2a = this._point = 0;
|
|
504
|
+
},
|
|
505
|
+
lineEnd: function() {
|
|
506
|
+
(this._line || this._line !== 0 && this._point === 3) && this._context.closePath(), this._line = 1 - this._line;
|
|
507
|
+
},
|
|
508
|
+
point: function(t, i) {
|
|
509
|
+
if (t = +t, i = +i, this._point) {
|
|
510
|
+
var n = this._x2 - t, e = this._y2 - i;
|
|
511
|
+
this._l23_a = Math.sqrt(this._l23_2a = Math.pow(n * n + e * e, this._alpha));
|
|
512
|
+
}
|
|
513
|
+
switch (this._point) {
|
|
514
|
+
case 0:
|
|
515
|
+
this._point = 1;
|
|
516
|
+
break;
|
|
517
|
+
case 1:
|
|
518
|
+
this._point = 2;
|
|
519
|
+
break;
|
|
520
|
+
case 2:
|
|
521
|
+
this._point = 3, this._line ? this._context.lineTo(this._x2, this._y2) : this._context.moveTo(this._x2, this._y2);
|
|
522
|
+
break;
|
|
523
|
+
case 3:
|
|
524
|
+
this._point = 4;
|
|
525
|
+
default:
|
|
526
|
+
W(this, t, i);
|
|
527
|
+
break;
|
|
528
|
+
}
|
|
529
|
+
this._l01_a = this._l12_a, this._l12_a = this._l23_a, this._l01_2a = this._l12_2a, this._l12_2a = this._l23_2a, this._x0 = this._x1, this._x1 = this._x2, this._x2 = t, this._y0 = this._y1, this._y1 = this._y2, this._y2 = i;
|
|
530
|
+
}
|
|
531
|
+
};
|
|
532
|
+
var Zt = (function t(i) {
|
|
533
|
+
function n(e) {
|
|
534
|
+
return i ? new ft(e, i) : new F(e, 0);
|
|
535
|
+
}
|
|
536
|
+
return n.alpha = function(e) {
|
|
537
|
+
return t(+e);
|
|
538
|
+
}, n;
|
|
539
|
+
})(0.5);
|
|
540
|
+
function lt(t) {
|
|
541
|
+
this._context = t;
|
|
542
|
+
}
|
|
543
|
+
lt.prototype = {
|
|
544
|
+
areaStart: d,
|
|
545
|
+
areaEnd: d,
|
|
546
|
+
lineStart: function() {
|
|
547
|
+
this._point = 0;
|
|
548
|
+
},
|
|
549
|
+
lineEnd: function() {
|
|
550
|
+
this._point && this._context.closePath();
|
|
551
|
+
},
|
|
552
|
+
point: function(t, i) {
|
|
553
|
+
t = +t, i = +i, this._point ? this._context.lineTo(t, i) : (this._point = 1, this._context.moveTo(t, i));
|
|
554
|
+
}
|
|
555
|
+
};
|
|
556
|
+
function Qt(t) {
|
|
557
|
+
return new lt(t);
|
|
558
|
+
}
|
|
559
|
+
function G(t) {
|
|
560
|
+
return t < 0 ? -1 : 1;
|
|
561
|
+
}
|
|
562
|
+
function J(t, i, n) {
|
|
563
|
+
var e = t._x1 - t._x0, r = i - t._x1, a = (t._y1 - t._y0) / (e || r < 0 && -0), s = (n - t._y1) / (r || e < 0 && -0), h = (a * r + s * e) / (e + r);
|
|
564
|
+
return (G(a) + G(s)) * Math.min(Math.abs(a), Math.abs(s), 0.5 * Math.abs(h)) || 0;
|
|
565
|
+
}
|
|
566
|
+
function Z(t, i) {
|
|
567
|
+
var n = t._x1 - t._x0;
|
|
568
|
+
return n ? (3 * (t._y1 - t._y0) / n - i) / 2 : i;
|
|
569
|
+
}
|
|
570
|
+
function k(t, i, n) {
|
|
571
|
+
var e = t._x0, r = t._y0, a = t._x1, s = t._y1, h = (a - e) / 3;
|
|
572
|
+
t._context.bezierCurveTo(e + h, r + h * i, a - h, s - h * n, a, s);
|
|
573
|
+
}
|
|
574
|
+
function E(t) {
|
|
575
|
+
this._context = t;
|
|
576
|
+
}
|
|
577
|
+
E.prototype = {
|
|
578
|
+
areaStart: function() {
|
|
579
|
+
this._line = 0;
|
|
580
|
+
},
|
|
581
|
+
areaEnd: function() {
|
|
582
|
+
this._line = NaN;
|
|
583
|
+
},
|
|
584
|
+
lineStart: function() {
|
|
585
|
+
this._x0 = this._x1 = this._y0 = this._y1 = this._t0 = NaN, this._point = 0;
|
|
586
|
+
},
|
|
587
|
+
lineEnd: function() {
|
|
588
|
+
switch (this._point) {
|
|
589
|
+
case 2:
|
|
590
|
+
this._context.lineTo(this._x1, this._y1);
|
|
591
|
+
break;
|
|
592
|
+
case 3:
|
|
593
|
+
k(this, this._t0, Z(this, this._t0));
|
|
594
|
+
break;
|
|
595
|
+
}
|
|
596
|
+
(this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
|
|
597
|
+
},
|
|
598
|
+
point: function(t, i) {
|
|
599
|
+
var n = NaN;
|
|
600
|
+
if (t = +t, i = +i, !(t === this._x1 && i === this._y1)) {
|
|
601
|
+
switch (this._point) {
|
|
602
|
+
case 0:
|
|
603
|
+
this._point = 1, this._line ? this._context.lineTo(t, i) : this._context.moveTo(t, i);
|
|
604
|
+
break;
|
|
605
|
+
case 1:
|
|
606
|
+
this._point = 2;
|
|
607
|
+
break;
|
|
608
|
+
case 2:
|
|
609
|
+
this._point = 3, k(this, Z(this, n = J(this, t, i)), n);
|
|
610
|
+
break;
|
|
611
|
+
default:
|
|
612
|
+
k(this, this._t0, n = J(this, t, i));
|
|
613
|
+
break;
|
|
614
|
+
}
|
|
615
|
+
this._x0 = this._x1, this._x1 = t, this._y0 = this._y1, this._y1 = i, this._t0 = n;
|
|
616
|
+
}
|
|
617
|
+
}
|
|
618
|
+
};
|
|
619
|
+
function ut(t) {
|
|
620
|
+
this._context = new pt(t);
|
|
621
|
+
}
|
|
622
|
+
(ut.prototype = Object.create(E.prototype)).point = function(t, i) {
|
|
623
|
+
E.prototype.point.call(this, i, t);
|
|
624
|
+
};
|
|
625
|
+
function pt(t) {
|
|
626
|
+
this._context = t;
|
|
627
|
+
}
|
|
628
|
+
pt.prototype = {
|
|
629
|
+
moveTo: function(t, i) {
|
|
630
|
+
this._context.moveTo(i, t);
|
|
631
|
+
},
|
|
632
|
+
closePath: function() {
|
|
633
|
+
this._context.closePath();
|
|
634
|
+
},
|
|
635
|
+
lineTo: function(t, i) {
|
|
636
|
+
this._context.lineTo(i, t);
|
|
637
|
+
},
|
|
638
|
+
bezierCurveTo: function(t, i, n, e, r, a) {
|
|
639
|
+
this._context.bezierCurveTo(i, t, e, n, a, r);
|
|
640
|
+
}
|
|
641
|
+
};
|
|
642
|
+
function Vt(t) {
|
|
643
|
+
return new E(t);
|
|
644
|
+
}
|
|
645
|
+
function Ct(t) {
|
|
646
|
+
return new ut(t);
|
|
647
|
+
}
|
|
648
|
+
function yt(t) {
|
|
649
|
+
this._context = t;
|
|
650
|
+
}
|
|
651
|
+
yt.prototype = {
|
|
652
|
+
areaStart: function() {
|
|
653
|
+
this._line = 0;
|
|
654
|
+
},
|
|
655
|
+
areaEnd: function() {
|
|
656
|
+
this._line = NaN;
|
|
657
|
+
},
|
|
658
|
+
lineStart: function() {
|
|
659
|
+
this._x = [], this._y = [];
|
|
660
|
+
},
|
|
661
|
+
lineEnd: function() {
|
|
662
|
+
var t = this._x, i = this._y, n = t.length;
|
|
663
|
+
if (n)
|
|
664
|
+
if (this._line ? this._context.lineTo(t[0], i[0]) : this._context.moveTo(t[0], i[0]), n === 2) this._context.lineTo(t[1], i[1]);
|
|
665
|
+
else
|
|
666
|
+
for (var e = Q(t), r = Q(i), a = 0, s = 1; s < n; ++a, ++s) this._context.bezierCurveTo(e[0][a], r[0][a], e[1][a], r[1][a], t[s], i[s]);
|
|
667
|
+
(this._line || this._line !== 0 && n === 1) && this._context.closePath(), this._line = 1 - this._line, this._x = this._y = null;
|
|
668
|
+
},
|
|
669
|
+
point: function(t, i) {
|
|
670
|
+
this._x.push(+t), this._y.push(+i);
|
|
671
|
+
}
|
|
672
|
+
};
|
|
673
|
+
function Q(t) {
|
|
674
|
+
var i, n = t.length - 1, e, r = new Array(n), a = new Array(n), s = new Array(n);
|
|
675
|
+
for (r[0] = 0, a[0] = 2, s[0] = t[0] + 2 * t[1], i = 1; i < n - 1; ++i) r[i] = 1, a[i] = 4, s[i] = 4 * t[i] + 2 * t[i + 1];
|
|
676
|
+
for (r[n - 1] = 2, a[n - 1] = 7, s[n - 1] = 8 * t[n - 1] + t[n], i = 1; i < n; ++i) e = r[i] / a[i - 1], a[i] -= e, s[i] -= e * s[i - 1];
|
|
677
|
+
for (r[n - 1] = s[n - 1] / a[n - 1], i = n - 2; i >= 0; --i) r[i] = (s[i] - r[i + 1]) / a[i];
|
|
678
|
+
for (a[n - 1] = (t[n] + r[n - 1]) / 2, i = 0; i < n - 1; ++i) a[i] = 2 * t[i + 1] - r[i + 1];
|
|
679
|
+
return [r, a];
|
|
680
|
+
}
|
|
681
|
+
function ti(t) {
|
|
682
|
+
return new yt(t);
|
|
683
|
+
}
|
|
684
|
+
function P(t, i) {
|
|
685
|
+
this._context = t, this._t = i;
|
|
686
|
+
}
|
|
687
|
+
P.prototype = {
|
|
688
|
+
areaStart: function() {
|
|
689
|
+
this._line = 0;
|
|
690
|
+
},
|
|
691
|
+
areaEnd: function() {
|
|
692
|
+
this._line = NaN;
|
|
693
|
+
},
|
|
694
|
+
lineStart: function() {
|
|
695
|
+
this._x = this._y = NaN, this._point = 0;
|
|
696
|
+
},
|
|
697
|
+
lineEnd: function() {
|
|
698
|
+
0 < this._t && this._t < 1 && this._point === 2 && this._context.lineTo(this._x, this._y), (this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line >= 0 && (this._t = 1 - this._t, this._line = 1 - this._line);
|
|
699
|
+
},
|
|
700
|
+
point: function(t, i) {
|
|
701
|
+
switch (t = +t, i = +i, this._point) {
|
|
702
|
+
case 0:
|
|
703
|
+
this._point = 1, this._line ? this._context.lineTo(t, i) : this._context.moveTo(t, i);
|
|
704
|
+
break;
|
|
705
|
+
case 1:
|
|
706
|
+
this._point = 2;
|
|
707
|
+
default:
|
|
708
|
+
if (this._t <= 0)
|
|
709
|
+
this._context.lineTo(this._x, i), this._context.lineTo(t, i);
|
|
710
|
+
else {
|
|
711
|
+
var n = this._x * (1 - this._t) + t * this._t;
|
|
712
|
+
this._context.lineTo(n, this._y), this._context.lineTo(n, i);
|
|
713
|
+
}
|
|
714
|
+
break;
|
|
715
|
+
}
|
|
716
|
+
this._x = t, this._y = i;
|
|
717
|
+
}
|
|
718
|
+
};
|
|
719
|
+
function ii(t) {
|
|
720
|
+
return new P(t, 0.5);
|
|
721
|
+
}
|
|
722
|
+
function ei(t) {
|
|
723
|
+
return new P(t, 0);
|
|
724
|
+
}
|
|
725
|
+
function ni(t) {
|
|
726
|
+
return new P(t, 1);
|
|
727
|
+
}
|
|
728
|
+
function $(t) {
|
|
729
|
+
if (typeof t != "object" || t == null) return !1;
|
|
730
|
+
if (Object.getPrototypeOf(t) === null) return !0;
|
|
731
|
+
if (Object.prototype.toString.call(t) !== "[object Object]") {
|
|
732
|
+
const n = t[Symbol.toStringTag];
|
|
733
|
+
return n == null || !Object.getOwnPropertyDescriptor(t, Symbol.toStringTag)?.writable ? !1 : t.toString() === `[object ${n}]`;
|
|
734
|
+
}
|
|
735
|
+
let i = t;
|
|
736
|
+
for (; Object.getPrototypeOf(i) !== null; ) i = Object.getPrototypeOf(i);
|
|
737
|
+
return Object.getPrototypeOf(t) === i;
|
|
738
|
+
}
|
|
739
|
+
function si() {
|
|
740
|
+
}
|
|
741
|
+
function dt(t) {
|
|
742
|
+
return Object.getOwnPropertySymbols(t).filter((i) => Object.prototype.propertyIsEnumerable.call(t, i));
|
|
743
|
+
}
|
|
744
|
+
function z(t) {
|
|
745
|
+
return t == null ? t === void 0 ? "[object Undefined]" : "[object Null]" : Object.prototype.toString.call(t);
|
|
746
|
+
}
|
|
747
|
+
var ri = "[object RegExp]", xt = "[object String]", gt = "[object Number]", mt = "[object Boolean]", bt = "[object Arguments]", ai = "[object Symbol]", hi = "[object Date]", oi = "[object Map]", _i = "[object Set]", ci = "[object Array]", fi = "[object ArrayBuffer]", li = "[object Object]", ui = "[object DataView]", pi = "[object Uint8Array]", yi = "[object Uint8ClampedArray]", di = "[object Uint16Array]", xi = "[object Uint32Array]", gi = "[object Int8Array]", mi = "[object Int16Array]", bi = "[object Int32Array]", wi = "[object Float32Array]", vi = "[object Float64Array]", V = typeof globalThis == "object" && globalThis || typeof window == "object" && window || typeof self == "object" && self || typeof global == "object" && global || /* @__PURE__ */ (function() {
|
|
748
|
+
return this;
|
|
749
|
+
})();
|
|
750
|
+
function wt(t) {
|
|
751
|
+
return typeof V.Buffer < "u" && V.Buffer.isBuffer(t);
|
|
752
|
+
}
|
|
753
|
+
function Si(t) {
|
|
754
|
+
return Number.isSafeInteger(t) && t >= 0;
|
|
755
|
+
}
|
|
756
|
+
function Oi(t) {
|
|
757
|
+
return t != null && typeof t != "function" && Si(t.length);
|
|
758
|
+
}
|
|
759
|
+
function Ni(t) {
|
|
760
|
+
return t === "__proto__";
|
|
761
|
+
}
|
|
762
|
+
function T(t) {
|
|
763
|
+
return t == null || typeof t != "object" && typeof t != "function";
|
|
764
|
+
}
|
|
765
|
+
function j(t) {
|
|
766
|
+
return ArrayBuffer.isView(t) && !(t instanceof DataView);
|
|
767
|
+
}
|
|
768
|
+
function Ai(t, i) {
|
|
769
|
+
return x(t, void 0, t, /* @__PURE__ */ new Map(), i);
|
|
770
|
+
}
|
|
771
|
+
function x(t, i, n, e = /* @__PURE__ */ new Map(), r = void 0) {
|
|
772
|
+
const a = r?.(t, i, n, e);
|
|
773
|
+
if (a !== void 0) return a;
|
|
774
|
+
if (T(t)) return t;
|
|
775
|
+
if (e.has(t)) return e.get(t);
|
|
776
|
+
if (Array.isArray(t)) {
|
|
777
|
+
const s = new Array(t.length);
|
|
778
|
+
e.set(t, s);
|
|
779
|
+
for (let h = 0; h < t.length; h++) s[h] = x(t[h], h, n, e, r);
|
|
780
|
+
return Object.hasOwn(t, "index") && (s.index = t.index), Object.hasOwn(t, "input") && (s.input = t.input), s;
|
|
781
|
+
}
|
|
782
|
+
if (t instanceof Date) return new Date(t.getTime());
|
|
783
|
+
if (t instanceof RegExp) {
|
|
784
|
+
const s = new RegExp(t.source, t.flags);
|
|
785
|
+
return s.lastIndex = t.lastIndex, s;
|
|
786
|
+
}
|
|
787
|
+
if (t instanceof Map) {
|
|
788
|
+
const s = /* @__PURE__ */ new Map();
|
|
789
|
+
e.set(t, s);
|
|
790
|
+
for (const [h, o] of t) s.set(h, x(o, h, n, e, r));
|
|
791
|
+
return s;
|
|
792
|
+
}
|
|
793
|
+
if (t instanceof Set) {
|
|
794
|
+
const s = /* @__PURE__ */ new Set();
|
|
795
|
+
e.set(t, s);
|
|
796
|
+
for (const h of t) s.add(x(h, void 0, n, e, r));
|
|
797
|
+
return s;
|
|
798
|
+
}
|
|
799
|
+
if (wt(t)) return t.subarray();
|
|
800
|
+
if (j(t)) {
|
|
801
|
+
const s = new (Object.getPrototypeOf(t)).constructor(t.length);
|
|
802
|
+
e.set(t, s);
|
|
803
|
+
for (let h = 0; h < t.length; h++) s[h] = x(t[h], h, n, e, r);
|
|
804
|
+
return s;
|
|
805
|
+
}
|
|
806
|
+
if (t instanceof ArrayBuffer || typeof SharedArrayBuffer < "u" && t instanceof SharedArrayBuffer) return t.slice(0);
|
|
807
|
+
if (t instanceof DataView) {
|
|
808
|
+
const s = new DataView(t.buffer.slice(0), t.byteOffset, t.byteLength);
|
|
809
|
+
return e.set(t, s), u(s, t, n, e, r), s;
|
|
810
|
+
}
|
|
811
|
+
if (typeof File < "u" && t instanceof File) {
|
|
812
|
+
const s = new File([t], t.name, { type: t.type });
|
|
813
|
+
return e.set(t, s), u(s, t, n, e, r), s;
|
|
814
|
+
}
|
|
815
|
+
if (typeof Blob < "u" && t instanceof Blob) {
|
|
816
|
+
const s = new Blob([t], { type: t.type });
|
|
817
|
+
return e.set(t, s), u(s, t, n, e, r), s;
|
|
818
|
+
}
|
|
819
|
+
if (t instanceof Error) {
|
|
820
|
+
const s = structuredClone(t);
|
|
821
|
+
return e.set(t, s), s.message = t.message, s.name = t.name, s.stack = t.stack, s.cause = t.cause, s.constructor = t.constructor, u(s, t, n, e, r), s;
|
|
822
|
+
}
|
|
823
|
+
if (t instanceof Boolean) {
|
|
824
|
+
const s = new Boolean(t.valueOf());
|
|
825
|
+
return e.set(t, s), u(s, t, n, e, r), s;
|
|
826
|
+
}
|
|
827
|
+
if (t instanceof Number) {
|
|
828
|
+
const s = new Number(t.valueOf());
|
|
829
|
+
return e.set(t, s), u(s, t, n, e, r), s;
|
|
830
|
+
}
|
|
831
|
+
if (t instanceof String) {
|
|
832
|
+
const s = new String(t.valueOf());
|
|
833
|
+
return e.set(t, s), u(s, t, n, e, r), s;
|
|
834
|
+
}
|
|
835
|
+
if (typeof t == "object" && Ei(t)) {
|
|
836
|
+
const s = Object.create(Object.getPrototypeOf(t));
|
|
837
|
+
return e.set(t, s), u(s, t, n, e, r), s;
|
|
838
|
+
}
|
|
839
|
+
return t;
|
|
840
|
+
}
|
|
841
|
+
function u(t, i, n = t, e, r) {
|
|
842
|
+
const a = [...Object.keys(i), ...dt(i)];
|
|
843
|
+
for (let s = 0; s < a.length; s++) {
|
|
844
|
+
const h = a[s], o = Object.getOwnPropertyDescriptor(t, h);
|
|
845
|
+
(o == null || o.writable) && (t[h] = x(i[h], h, n, e, r));
|
|
846
|
+
}
|
|
847
|
+
}
|
|
848
|
+
function Ei(t) {
|
|
849
|
+
switch (z(t)) {
|
|
850
|
+
case bt:
|
|
851
|
+
case ci:
|
|
852
|
+
case fi:
|
|
853
|
+
case ui:
|
|
854
|
+
case mt:
|
|
855
|
+
case hi:
|
|
856
|
+
case wi:
|
|
857
|
+
case vi:
|
|
858
|
+
case gi:
|
|
859
|
+
case mi:
|
|
860
|
+
case bi:
|
|
861
|
+
case oi:
|
|
862
|
+
case gt:
|
|
863
|
+
case li:
|
|
864
|
+
case ri:
|
|
865
|
+
case _i:
|
|
866
|
+
case xt:
|
|
867
|
+
case ai:
|
|
868
|
+
case pi:
|
|
869
|
+
case yi:
|
|
870
|
+
case di:
|
|
871
|
+
case xi:
|
|
872
|
+
return !0;
|
|
873
|
+
default:
|
|
874
|
+
return !1;
|
|
875
|
+
}
|
|
876
|
+
}
|
|
877
|
+
function Mi(t, i) {
|
|
878
|
+
return Ai(t, (n, e, r, a) => {
|
|
879
|
+
const s = i?.(n, e, r, a);
|
|
880
|
+
if (s !== void 0) return s;
|
|
881
|
+
if (typeof t == "object") {
|
|
882
|
+
if (z(t) === "[object Object]" && typeof t.constructor != "function") {
|
|
883
|
+
const h = {};
|
|
884
|
+
return a.set(t, h), u(h, t, r, a), h;
|
|
885
|
+
}
|
|
886
|
+
switch (Object.prototype.toString.call(t)) {
|
|
887
|
+
case gt:
|
|
888
|
+
case xt:
|
|
889
|
+
case mt: {
|
|
890
|
+
const h = new t.constructor(t?.valueOf());
|
|
891
|
+
return u(h, t), h;
|
|
892
|
+
}
|
|
893
|
+
case bt: {
|
|
894
|
+
const h = {};
|
|
895
|
+
return u(h, t), h.length = t.length, h[Symbol.iterator] = t[Symbol.iterator], h;
|
|
896
|
+
}
|
|
897
|
+
default:
|
|
898
|
+
return;
|
|
899
|
+
}
|
|
900
|
+
}
|
|
901
|
+
});
|
|
902
|
+
}
|
|
903
|
+
function C(t) {
|
|
904
|
+
return Mi(t);
|
|
905
|
+
}
|
|
906
|
+
function tt(t) {
|
|
907
|
+
return t !== null && typeof t == "object" && z(t) === "[object Arguments]";
|
|
908
|
+
}
|
|
909
|
+
function I(t) {
|
|
910
|
+
return typeof t == "object" && t !== null;
|
|
911
|
+
}
|
|
912
|
+
function Pi(t) {
|
|
913
|
+
return I(t) && Oi(t);
|
|
914
|
+
}
|
|
915
|
+
function b(t, i) {
|
|
916
|
+
if (typeof t != "function" || i != null && typeof i != "function") throw new TypeError("Expected a function");
|
|
917
|
+
const n = function(...e) {
|
|
918
|
+
const r = i ? i.apply(this, e) : e[0], a = n.cache;
|
|
919
|
+
if (a.has(r)) return a.get(r);
|
|
920
|
+
const s = t.apply(this, e);
|
|
921
|
+
return n.cache = a.set(r, s) || a, s;
|
|
922
|
+
};
|
|
923
|
+
return n.cache = new (b.Cache || Map)(), n;
|
|
924
|
+
}
|
|
925
|
+
b.Cache = Map;
|
|
926
|
+
function B(t) {
|
|
927
|
+
return j(t);
|
|
928
|
+
}
|
|
929
|
+
function ki(t) {
|
|
930
|
+
if (T(t)) return t;
|
|
931
|
+
if (Array.isArray(t) || j(t) || t instanceof ArrayBuffer || typeof SharedArrayBuffer < "u" && t instanceof SharedArrayBuffer) return t.slice(0);
|
|
932
|
+
const i = Object.getPrototypeOf(t);
|
|
933
|
+
if (i == null) return Object.assign(Object.create(i), t);
|
|
934
|
+
const n = i.constructor;
|
|
935
|
+
if (t instanceof Date || t instanceof Map || t instanceof Set) return new n(t);
|
|
936
|
+
if (t instanceof RegExp) {
|
|
937
|
+
const e = new n(t);
|
|
938
|
+
return e.lastIndex = t.lastIndex, e;
|
|
939
|
+
}
|
|
940
|
+
if (t instanceof DataView) return new n(t.buffer.slice(0));
|
|
941
|
+
if (t instanceof Error) {
|
|
942
|
+
let e;
|
|
943
|
+
return t instanceof AggregateError ? e = new n(t.errors, t.message, { cause: t.cause }) : e = new n(t.message, { cause: t.cause }), e.stack = t.stack, Object.assign(e, t), e;
|
|
944
|
+
}
|
|
945
|
+
return typeof File < "u" && t instanceof File ? new n([t], t.name, {
|
|
946
|
+
type: t.type,
|
|
947
|
+
lastModified: t.lastModified
|
|
948
|
+
}) : typeof t == "object" ? Object.assign(Object.create(i), t) : t;
|
|
949
|
+
}
|
|
950
|
+
function $i(t, ...i) {
|
|
951
|
+
const n = i.slice(0, -1), e = i[i.length - 1];
|
|
952
|
+
let r = t;
|
|
953
|
+
for (let a = 0; a < n.length; a++) {
|
|
954
|
+
const s = n[a];
|
|
955
|
+
r = O(r, s, e, /* @__PURE__ */ new Map());
|
|
956
|
+
}
|
|
957
|
+
return r;
|
|
958
|
+
}
|
|
959
|
+
function O(t, i, n, e) {
|
|
960
|
+
if (T(t) && (t = Object(t)), i == null || typeof i != "object") return t;
|
|
961
|
+
if (e.has(i)) return ki(e.get(i));
|
|
962
|
+
if (e.set(i, t), Array.isArray(i)) {
|
|
963
|
+
i = i.slice();
|
|
964
|
+
for (let a = 0; a < i.length; a++) i[a] = i[a] ?? void 0;
|
|
965
|
+
}
|
|
966
|
+
const r = [...Object.keys(i), ...dt(i)];
|
|
967
|
+
for (let a = 0; a < r.length; a++) {
|
|
968
|
+
const s = r[a];
|
|
969
|
+
if (Ni(s)) continue;
|
|
970
|
+
let h = i[s], o = t[s];
|
|
971
|
+
if (tt(h) && (h = { ...h }), tt(o) && (o = { ...o }), wt(h) && (h = C(h)), Array.isArray(h)) if (Array.isArray(o)) {
|
|
972
|
+
const f = [], l = Reflect.ownKeys(o);
|
|
973
|
+
for (let p = 0; p < l.length; p++) {
|
|
974
|
+
const y = l[p];
|
|
975
|
+
f[y] = o[y];
|
|
976
|
+
}
|
|
977
|
+
o = f;
|
|
978
|
+
} else if (Pi(o)) {
|
|
979
|
+
const f = [];
|
|
980
|
+
for (let l = 0; l < o.length; l++) f[l] = o[l];
|
|
981
|
+
o = f;
|
|
982
|
+
} else o = [];
|
|
983
|
+
const c = n(o, h, s, t, i, e);
|
|
984
|
+
c !== void 0 ? t[s] = c : Array.isArray(h) || I(o) && I(h) && ($(o) || $(h) || B(o) || B(h)) ? t[s] = O(o, h, n, e) : o == null && $(h) ? t[s] = O({}, h, n, e) : o == null && B(h) ? t[s] = C(h) : (o === void 0 || h !== void 0) && (t[s] = h);
|
|
985
|
+
}
|
|
986
|
+
return t;
|
|
987
|
+
}
|
|
988
|
+
function Bi(t, ...i) {
|
|
989
|
+
return $i(t, ...i, si);
|
|
990
|
+
}
|
|
991
|
+
var Ii = Ft();
|
|
992
|
+
var Ri = {
|
|
993
|
+
curveBasis: jt,
|
|
994
|
+
curveBasisClosed: Ht,
|
|
995
|
+
curveBasisOpen: Ut,
|
|
996
|
+
curveBumpX: zt,
|
|
997
|
+
curveBumpY: Tt,
|
|
998
|
+
curveBundle: Xt,
|
|
999
|
+
curveCardinalClosed: qt,
|
|
1000
|
+
curveCardinalOpen: Kt,
|
|
1001
|
+
curveCardinal: Yt,
|
|
1002
|
+
curveCatmullRomClosed: Jt,
|
|
1003
|
+
curveCatmullRomOpen: Zt,
|
|
1004
|
+
curveCatmullRom: Gt,
|
|
1005
|
+
curveLinear: Wt,
|
|
1006
|
+
curveLinearClosed: Qt,
|
|
1007
|
+
curveMonotoneX: Vt,
|
|
1008
|
+
curveMonotoneY: Ct,
|
|
1009
|
+
curveNatural: ti,
|
|
1010
|
+
curveStep: ii,
|
|
1011
|
+
curveStepAfter: ni,
|
|
1012
|
+
curveStepBefore: ei
|
|
1013
|
+
}, Li = /\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi, Di = /* @__PURE__ */ _(function(t, i) {
|
|
1014
|
+
const n = vt(t, /(?:init\b)|(?:initialize\b)/);
|
|
1015
|
+
let e = {};
|
|
1016
|
+
if (Array.isArray(n)) {
|
|
1017
|
+
const s = n.map((h) => h.args);
|
|
1018
|
+
Lt(s), e = nt(e, [...s]);
|
|
1019
|
+
} else e = n.args;
|
|
1020
|
+
if (!e) return;
|
|
1021
|
+
let r = Dt(t, i);
|
|
1022
|
+
const a = "config";
|
|
1023
|
+
return e[a] !== void 0 && (r === "flowchart-v2" && (r = "flowchart"), e[r] = e[a], delete e[a]), e;
|
|
1024
|
+
}, "detectInit"), vt = /* @__PURE__ */ _(function(t, i = null) {
|
|
1025
|
+
try {
|
|
1026
|
+
const n = new RegExp(`[%]{2}(?![{]${Li.source})(?=[}][%]{2}).*
|
|
1027
|
+
`, "ig");
|
|
1028
|
+
t = t.trim().replace(n, "").replace(/'/gm, '"'), g.debug(`Detecting diagram directive${i !== null ? " type:" + i : ""} based on the text:${t}`);
|
|
1029
|
+
let e;
|
|
1030
|
+
const r = [];
|
|
1031
|
+
for (; (e = S.exec(t)) !== null; )
|
|
1032
|
+
if (e.index === S.lastIndex && S.lastIndex++, e && !i || i && e[1]?.match(i) || i && e[2]?.match(i)) {
|
|
1033
|
+
const a = e[1] ? e[1] : e[2], s = e[3] ? e[3].trim() : e[4] ? JSON.parse(e[4].trim()) : null;
|
|
1034
|
+
r.push({
|
|
1035
|
+
type: a,
|
|
1036
|
+
args: s
|
|
1037
|
+
});
|
|
1038
|
+
}
|
|
1039
|
+
return r.length === 0 ? {
|
|
1040
|
+
type: t,
|
|
1041
|
+
args: null
|
|
1042
|
+
} : r.length === 1 ? r[0] : r;
|
|
1043
|
+
} catch (n) {
|
|
1044
|
+
return g.error(`ERROR: ${n.message} - Unable to parse directive type: '${i}' based on the text: '${t}'`), {
|
|
1045
|
+
type: void 0,
|
|
1046
|
+
args: null
|
|
1047
|
+
};
|
|
1048
|
+
}
|
|
1049
|
+
}, "detectDirective"), ee = /* @__PURE__ */ _(function(t) {
|
|
1050
|
+
return t.replace(S, "");
|
|
1051
|
+
}, "removeDirectives"), Fi = /* @__PURE__ */ _(function(t, i) {
|
|
1052
|
+
for (const [n, e] of i.entries()) if (e.match(t)) return n;
|
|
1053
|
+
return -1;
|
|
1054
|
+
}, "isSubstringInArray");
|
|
1055
|
+
function St(t, i) {
|
|
1056
|
+
return t ? Ri[`curve${t.charAt(0).toUpperCase() + t.slice(1)}`] ?? i : i;
|
|
1057
|
+
}
|
|
1058
|
+
_(St, "interpolateToCurve");
|
|
1059
|
+
function Ot(t, i) {
|
|
1060
|
+
const n = t.trim();
|
|
1061
|
+
if (n)
|
|
1062
|
+
return i.securityLevel !== "loose" ? (0, Ii.sanitizeUrl)(n) : n;
|
|
1063
|
+
}
|
|
1064
|
+
_(Ot, "formatUrl");
|
|
1065
|
+
var Wi = /* @__PURE__ */ _((t, ...i) => {
|
|
1066
|
+
const n = t.split("."), e = n.length - 1, r = n[e];
|
|
1067
|
+
let a = window;
|
|
1068
|
+
for (let s = 0; s < e; s++)
|
|
1069
|
+
if (a = a[n[s]], !a) {
|
|
1070
|
+
g.error(`Function name: ${t} not found in window`);
|
|
1071
|
+
return;
|
|
1072
|
+
}
|
|
1073
|
+
a[r](...i);
|
|
1074
|
+
}, "runFunc");
|
|
1075
|
+
function H(t, i) {
|
|
1076
|
+
return !t || !i ? 0 : Math.sqrt(Math.pow(i.x - t.x, 2) + Math.pow(i.y - t.y, 2));
|
|
1077
|
+
}
|
|
1078
|
+
_(H, "distance");
|
|
1079
|
+
function Nt(t) {
|
|
1080
|
+
let i, n = 0;
|
|
1081
|
+
return t.forEach((e) => {
|
|
1082
|
+
n += H(e, i), i = e;
|
|
1083
|
+
}), U(t, n / 2);
|
|
1084
|
+
}
|
|
1085
|
+
_(Nt, "traverseEdge");
|
|
1086
|
+
function At(t) {
|
|
1087
|
+
return t.length === 1 ? t[0] : Nt(t);
|
|
1088
|
+
}
|
|
1089
|
+
_(At, "calcLabelPosition");
|
|
1090
|
+
var it = /* @__PURE__ */ _((t, i = 2) => {
|
|
1091
|
+
const n = Math.pow(10, i);
|
|
1092
|
+
return Math.round(t * n) / n;
|
|
1093
|
+
}, "roundNumber"), U = /* @__PURE__ */ _((t, i) => {
|
|
1094
|
+
let n, e = i;
|
|
1095
|
+
for (const r of t) {
|
|
1096
|
+
if (n) {
|
|
1097
|
+
const a = H(r, n);
|
|
1098
|
+
if (a === 0) return n;
|
|
1099
|
+
if (a < e) e -= a;
|
|
1100
|
+
else {
|
|
1101
|
+
const s = e / a;
|
|
1102
|
+
if (s <= 0) return n;
|
|
1103
|
+
if (s >= 1) return {
|
|
1104
|
+
x: r.x,
|
|
1105
|
+
y: r.y
|
|
1106
|
+
};
|
|
1107
|
+
if (s > 0 && s < 1) return {
|
|
1108
|
+
x: it((1 - s) * n.x + s * r.x, 5),
|
|
1109
|
+
y: it((1 - s) * n.y + s * r.y, 5)
|
|
1110
|
+
};
|
|
1111
|
+
}
|
|
1112
|
+
}
|
|
1113
|
+
n = r;
|
|
1114
|
+
}
|
|
1115
|
+
throw new Error("Could not find a suitable point for the given distance");
|
|
1116
|
+
}, "calculatePoint"), zi = /* @__PURE__ */ _((t, i, n) => {
|
|
1117
|
+
g.info(`our points ${JSON.stringify(i)}`), i[0] !== n && (i = i.reverse());
|
|
1118
|
+
const e = U(i, 25), r = t ? 10 : 5, a = Math.atan2(i[0].y - e.y, i[0].x - e.x), s = {
|
|
1119
|
+
x: 0,
|
|
1120
|
+
y: 0
|
|
1121
|
+
};
|
|
1122
|
+
return s.x = Math.sin(a) * r + (i[0].x + e.x) / 2, s.y = -Math.cos(a) * r + (i[0].y + e.y) / 2, s;
|
|
1123
|
+
}, "calcCardinalityPosition");
|
|
1124
|
+
function Et(t, i, n) {
|
|
1125
|
+
const e = structuredClone(n);
|
|
1126
|
+
g.info("our points", e), i !== "start_left" && i !== "start_right" && e.reverse();
|
|
1127
|
+
const r = U(e, 25 + t), a = 10 + t * 0.5, s = Math.atan2(e[0].y - r.y, e[0].x - r.x), h = {
|
|
1128
|
+
x: 0,
|
|
1129
|
+
y: 0
|
|
1130
|
+
};
|
|
1131
|
+
return i === "start_left" ? (h.x = Math.sin(s + Math.PI) * a + (e[0].x + r.x) / 2, h.y = -Math.cos(s + Math.PI) * a + (e[0].y + r.y) / 2) : i === "end_right" ? (h.x = Math.sin(s - Math.PI) * a + (e[0].x + r.x) / 2 - 5, h.y = -Math.cos(s - Math.PI) * a + (e[0].y + r.y) / 2 - 5) : i === "end_left" ? (h.x = Math.sin(s) * a + (e[0].x + r.x) / 2 - 5, h.y = -Math.cos(s) * a + (e[0].y + r.y) / 2 - 5) : (h.x = Math.sin(s) * a + (e[0].x + r.x) / 2, h.y = -Math.cos(s) * a + (e[0].y + r.y) / 2), h;
|
|
1132
|
+
}
|
|
1133
|
+
_(Et, "calcTerminalLabelPosition");
|
|
1134
|
+
function Mt(t) {
|
|
1135
|
+
let i = "", n = "";
|
|
1136
|
+
for (const e of t) e !== void 0 && (e.startsWith("color:") || e.startsWith("text-align:") ? n = n + e + ";" : i = i + e + ";");
|
|
1137
|
+
return {
|
|
1138
|
+
style: i,
|
|
1139
|
+
labelStyle: n
|
|
1140
|
+
};
|
|
1141
|
+
}
|
|
1142
|
+
_(Mt, "getStylesFromArray");
|
|
1143
|
+
var et = 0, Ti = /* @__PURE__ */ _(() => (et++, "id-" + Math.random().toString(36).substr(2, 12) + "-" + et), "generateId");
|
|
1144
|
+
function Pt(t) {
|
|
1145
|
+
let i = "";
|
|
1146
|
+
const n = "0123456789abcdef";
|
|
1147
|
+
for (let r = 0; r < t; r++) i += n.charAt(Math.floor(Math.random() * 16));
|
|
1148
|
+
return i;
|
|
1149
|
+
}
|
|
1150
|
+
_(Pt, "makeRandomHex");
|
|
1151
|
+
var ji = /* @__PURE__ */ _((t) => Pt(t.length), "random"), Hi = /* @__PURE__ */ _(function() {
|
|
1152
|
+
return {
|
|
1153
|
+
x: 0,
|
|
1154
|
+
y: 0,
|
|
1155
|
+
fill: void 0,
|
|
1156
|
+
anchor: "start",
|
|
1157
|
+
style: "#666",
|
|
1158
|
+
width: 100,
|
|
1159
|
+
height: 100,
|
|
1160
|
+
textMargin: 0,
|
|
1161
|
+
rx: 0,
|
|
1162
|
+
ry: 0,
|
|
1163
|
+
valign: void 0,
|
|
1164
|
+
text: ""
|
|
1165
|
+
};
|
|
1166
|
+
}, "getTextObj"), Ui = /* @__PURE__ */ _(function(t, i) {
|
|
1167
|
+
const n = i.text.replace(R.lineBreakRegex, " "), [, e] = Y(i.fontSize), r = t.append("text");
|
|
1168
|
+
r.attr("x", i.x), r.attr("y", i.y), r.style("text-anchor", i.anchor), r.style("font-family", i.fontFamily), r.style("font-size", e), r.style("font-weight", i.fontWeight), r.attr("fill", i.fill), i.class !== void 0 && r.attr("class", i.class);
|
|
1169
|
+
const a = r.append("tspan");
|
|
1170
|
+
return a.attr("x", i.x + i.textMargin * 2), a.attr("fill", i.fill), a.text(n), r;
|
|
1171
|
+
}, "drawSimpleText"), Xi = b((t, i, n) => {
|
|
1172
|
+
if (!t || (n = Object.assign({
|
|
1173
|
+
fontSize: 12,
|
|
1174
|
+
fontWeight: 400,
|
|
1175
|
+
fontFamily: "Arial",
|
|
1176
|
+
joinWith: "<br/>"
|
|
1177
|
+
}, n), R.lineBreakRegex.test(t))) return t;
|
|
1178
|
+
const e = t.split(" ").filter(Boolean), r = [];
|
|
1179
|
+
let a = "";
|
|
1180
|
+
return e.forEach((s, h) => {
|
|
1181
|
+
const o = m(`${s} `, n), c = m(a, n);
|
|
1182
|
+
if (o > i) {
|
|
1183
|
+
const { hyphenatedStrings: f, remainingWord: l } = Yi(s, i, "-", n);
|
|
1184
|
+
r.push(a, ...f), a = l;
|
|
1185
|
+
} else c + o >= i ? (r.push(a), a = s) : a = [a, s].filter(Boolean).join(" ");
|
|
1186
|
+
h + 1 === e.length && r.push(a);
|
|
1187
|
+
}), r.filter((s) => s !== "").join(n.joinWith);
|
|
1188
|
+
}, (t, i, n) => `${t}${i}${n.fontSize}${n.fontWeight}${n.fontFamily}${n.joinWith}`), Yi = b((t, i, n = "-", e) => {
|
|
1189
|
+
e = Object.assign({
|
|
1190
|
+
fontSize: 12,
|
|
1191
|
+
fontWeight: 400,
|
|
1192
|
+
fontFamily: "Arial",
|
|
1193
|
+
margin: 0
|
|
1194
|
+
}, e);
|
|
1195
|
+
const r = [...t], a = [];
|
|
1196
|
+
let s = "";
|
|
1197
|
+
return r.forEach((h, o) => {
|
|
1198
|
+
const c = `${s}${h}`;
|
|
1199
|
+
if (m(c, e) >= i) {
|
|
1200
|
+
const f = o + 1, l = r.length === f, p = `${c}${n}`;
|
|
1201
|
+
a.push(l ? c : p), s = "";
|
|
1202
|
+
} else s = c;
|
|
1203
|
+
}), {
|
|
1204
|
+
hyphenatedStrings: a,
|
|
1205
|
+
remainingWord: s
|
|
1206
|
+
};
|
|
1207
|
+
}, (t, i, n = "-", e) => `${t}${i}${n}${e.fontSize}${e.fontWeight}${e.fontFamily}`);
|
|
1208
|
+
function kt(t, i) {
|
|
1209
|
+
return X(t, i).height;
|
|
1210
|
+
}
|
|
1211
|
+
_(kt, "calculateTextHeight");
|
|
1212
|
+
function m(t, i) {
|
|
1213
|
+
return X(t, i).width;
|
|
1214
|
+
}
|
|
1215
|
+
_(m, "calculateTextWidth");
|
|
1216
|
+
var X = b((t, i) => {
|
|
1217
|
+
const { fontSize: n = 12, fontFamily: e = "Arial", fontWeight: r = 400 } = i;
|
|
1218
|
+
if (!t) return {
|
|
1219
|
+
width: 0,
|
|
1220
|
+
height: 0
|
|
1221
|
+
};
|
|
1222
|
+
const [, a] = Y(n), s = ["sans-serif", e], h = t.split(R.lineBreakRegex), o = [], c = Rt("body");
|
|
1223
|
+
if (!c.remove) return {
|
|
1224
|
+
width: 0,
|
|
1225
|
+
height: 0,
|
|
1226
|
+
lineHeight: 0
|
|
1227
|
+
};
|
|
1228
|
+
const f = c.append("svg");
|
|
1229
|
+
for (const l of s) {
|
|
1230
|
+
let p = 0;
|
|
1231
|
+
const y = {
|
|
1232
|
+
width: 0,
|
|
1233
|
+
height: 0,
|
|
1234
|
+
lineHeight: 0
|
|
1235
|
+
};
|
|
1236
|
+
for (const It of h) {
|
|
1237
|
+
const q = Hi();
|
|
1238
|
+
q.text = It || "";
|
|
1239
|
+
const K = Ui(f, q).style("font-size", a).style("font-weight", r).style("font-family", l), w = (K._groups || K)[0][0].getBBox();
|
|
1240
|
+
if (w.width === 0 && w.height === 0) throw new Error("svg element not in render tree");
|
|
1241
|
+
y.width = Math.round(Math.max(y.width, w.width)), p = Math.round(w.height), y.height += p, y.lineHeight = Math.round(Math.max(y.lineHeight, p));
|
|
1242
|
+
}
|
|
1243
|
+
o.push(y);
|
|
1244
|
+
}
|
|
1245
|
+
return f.remove(), o[isNaN(o[1].height) || isNaN(o[1].width) || isNaN(o[1].lineHeight) || o[0].height > o[1].height && o[0].width > o[1].width && o[0].lineHeight > o[1].lineHeight ? 0 : 1];
|
|
1246
|
+
}, (t, i) => `${t}${i.fontSize}${i.fontWeight}${i.fontFamily}`), qi = class {
|
|
1247
|
+
constructor(t = !1, i) {
|
|
1248
|
+
this.count = 0, this.count = i ? i.length : 0, this.next = t ? () => this.count++ : () => Date.now();
|
|
1249
|
+
}
|
|
1250
|
+
static {
|
|
1251
|
+
_(this, "InitIDGenerator");
|
|
1252
|
+
}
|
|
1253
|
+
}, v, Ki = /* @__PURE__ */ _(function(t) {
|
|
1254
|
+
return v = v || document.createElement("div"), t = escape(t).replace(/%26/g, "&").replace(/%23/g, "#").replace(/%3B/g, ";"), v.innerHTML = t, unescape(v.textContent);
|
|
1255
|
+
}, "entityDecode");
|
|
1256
|
+
function Gi(t) {
|
|
1257
|
+
return "str" in t;
|
|
1258
|
+
}
|
|
1259
|
+
_(Gi, "isDetailedError");
|
|
1260
|
+
var Ji = /* @__PURE__ */ _((t, i, n, e) => {
|
|
1261
|
+
if (!e) return;
|
|
1262
|
+
const r = t.node()?.getBBox();
|
|
1263
|
+
r && t.append("text").text(e).attr("text-anchor", "middle").attr("x", r.x + r.width / 2).attr("y", -n).attr("class", i);
|
|
1264
|
+
}, "insertTitle"), Y = /* @__PURE__ */ _((t) => {
|
|
1265
|
+
if (typeof t == "number") return [t, t + "px"];
|
|
1266
|
+
const i = parseInt(t ?? "", 10);
|
|
1267
|
+
return Number.isNaN(i) ? [void 0, void 0] : t === String(i) ? [i, t + "px"] : [i, t];
|
|
1268
|
+
}, "parseFontSize");
|
|
1269
|
+
function $t(t, i) {
|
|
1270
|
+
return Bi({}, t, i);
|
|
1271
|
+
}
|
|
1272
|
+
_($t, "cleanAndMerge");
|
|
1273
|
+
var ne = {
|
|
1274
|
+
assignWithDepth: nt,
|
|
1275
|
+
wrapLabel: Xi,
|
|
1276
|
+
calculateTextHeight: kt,
|
|
1277
|
+
calculateTextWidth: m,
|
|
1278
|
+
calculateTextDimensions: X,
|
|
1279
|
+
cleanAndMerge: $t,
|
|
1280
|
+
detectInit: Di,
|
|
1281
|
+
detectDirective: vt,
|
|
1282
|
+
isSubstringInArray: Fi,
|
|
1283
|
+
interpolateToCurve: St,
|
|
1284
|
+
calcLabelPosition: At,
|
|
1285
|
+
calcCardinalityPosition: zi,
|
|
1286
|
+
calcTerminalLabelPosition: Et,
|
|
1287
|
+
formatUrl: Ot,
|
|
1288
|
+
getStylesFromArray: Mt,
|
|
1289
|
+
generateId: Ti,
|
|
1290
|
+
random: ji,
|
|
1291
|
+
runFunc: Wi,
|
|
1292
|
+
entityDecode: Ki,
|
|
1293
|
+
insertTitle: Ji,
|
|
1294
|
+
isLabelCoordinateInPath: Bt,
|
|
1295
|
+
parseFontSize: Y,
|
|
1296
|
+
InitIDGenerator: qi
|
|
1297
|
+
}, se = /* @__PURE__ */ _(function(t) {
|
|
1298
|
+
let i = t;
|
|
1299
|
+
return i = i.replace(/style.*:\S*#.*;/g, function(n) {
|
|
1300
|
+
return n.substring(0, n.length - 1);
|
|
1301
|
+
}), i = i.replace(/classDef.*:\S*#.*;/g, function(n) {
|
|
1302
|
+
return n.substring(0, n.length - 1);
|
|
1303
|
+
}), i = i.replace(/#\w+;/g, function(n) {
|
|
1304
|
+
const e = n.substring(1, n.length - 1);
|
|
1305
|
+
return /^\+?\d+$/.test(e) ? "fl°°" + e + "¶ß" : "fl°" + e + "¶ß";
|
|
1306
|
+
}), i;
|
|
1307
|
+
}, "encodeEntities"), re = /* @__PURE__ */ _(function(t) {
|
|
1308
|
+
return t.replace(/fl°°/g, "&#").replace(/fl°/g, "&").replace(/¶ß/g, ";");
|
|
1309
|
+
}, "decodeEntities"), ae = /* @__PURE__ */ _((t, i, { counter: n = 0, prefix: e, suffix: r }, a) => a || `${e ? `${e}_` : ""}${t}_${i}_${n}${r ? `_${r}` : ""}`, "getEdgeId");
|
|
1310
|
+
function Zi(t) {
|
|
1311
|
+
return t ?? null;
|
|
1312
|
+
}
|
|
1313
|
+
_(Zi, "handleUndefinedAttr");
|
|
1314
|
+
function Bt(t, i) {
|
|
1315
|
+
const n = Math.round(t.x), e = Math.round(t.y), r = i.replace(/(\d+\.\d+)/g, (a) => Math.round(parseFloat(a)).toString());
|
|
1316
|
+
return r.includes(n.toString()) || r.includes(e.toString());
|
|
1317
|
+
}
|
|
1318
|
+
_(Bt, "isLabelCoordinateInPath");
|
|
1319
|
+
export {
|
|
1320
|
+
Yt as $,
|
|
1321
|
+
vi as A,
|
|
1322
|
+
ai as B,
|
|
1323
|
+
bt as C,
|
|
1324
|
+
ui as D,
|
|
1325
|
+
mt as E,
|
|
1326
|
+
gt as F,
|
|
1327
|
+
z as G,
|
|
1328
|
+
xi as H,
|
|
1329
|
+
li as I,
|
|
1330
|
+
ii as J,
|
|
1331
|
+
ni as K,
|
|
1332
|
+
ri as L,
|
|
1333
|
+
bi as M,
|
|
1334
|
+
gi as N,
|
|
1335
|
+
hi as O,
|
|
1336
|
+
oi as P,
|
|
1337
|
+
Gt as Q,
|
|
1338
|
+
_i as R,
|
|
1339
|
+
wt as S,
|
|
1340
|
+
ci as T,
|
|
1341
|
+
pi as U,
|
|
1342
|
+
di as V,
|
|
1343
|
+
yi as W,
|
|
1344
|
+
Vt as X,
|
|
1345
|
+
ti as Y,
|
|
1346
|
+
Ct as Z,
|
|
1347
|
+
Xi as _,
|
|
1348
|
+
re as a,
|
|
1349
|
+
T as b,
|
|
1350
|
+
ae as c,
|
|
1351
|
+
St as d,
|
|
1352
|
+
jt as et,
|
|
1353
|
+
Gi as f,
|
|
1354
|
+
ne as g,
|
|
1355
|
+
ee as h,
|
|
1356
|
+
$t as i,
|
|
1357
|
+
mi as j,
|
|
1358
|
+
wi as k,
|
|
1359
|
+
Mt as l,
|
|
1360
|
+
ji as m,
|
|
1361
|
+
kt as n,
|
|
1362
|
+
Tt as nt,
|
|
1363
|
+
se as o,
|
|
1364
|
+
Y as p,
|
|
1365
|
+
ei as q,
|
|
1366
|
+
m as r,
|
|
1367
|
+
Wt as rt,
|
|
1368
|
+
Ti as s,
|
|
1369
|
+
X as t,
|
|
1370
|
+
zt as tt,
|
|
1371
|
+
Zi as u,
|
|
1372
|
+
B as v,
|
|
1373
|
+
fi as w,
|
|
1374
|
+
Oi as x,
|
|
1375
|
+
tt as y,
|
|
1376
|
+
xt as z
|
|
1377
|
+
};
|