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,742 @@
|
|
|
1
|
+
import { n as l } from "./chunk-Y2CYZVJY-0JxdZxki.js";
|
|
2
|
+
import "./src-DtRLxcYO.js";
|
|
3
|
+
import { H as ut, K as et, U as dt, a as yt, c as ft, s as pt, v as gt, w as kt, x as lt, y as mt } from "./chunk-WYO6CB5R-DDHkKowO.js";
|
|
4
|
+
import { p as wt } from "./chunk-ICXQ74PX-DR8rL-xF.js";
|
|
5
|
+
import { t as _t } from "./chunk-VAUOI2AC-izt0o4id.js";
|
|
6
|
+
import { t as bt } from "./rough.esm-BWe9E0Nz.js";
|
|
7
|
+
var Q = (function() {
|
|
8
|
+
var t = /* @__PURE__ */ l(function(e, s, c, i) {
|
|
9
|
+
for (c = c || {}, i = e.length; i--; c[e[i]] = s) ;
|
|
10
|
+
return c;
|
|
11
|
+
}, "o"), u = [1, 4], n = [1, 14], a = [1, 12], r = [1, 13], o = [
|
|
12
|
+
6,
|
|
13
|
+
7,
|
|
14
|
+
8
|
|
15
|
+
], k = [1, 20], h = [1, 18], p = [1, 19], y = [
|
|
16
|
+
6,
|
|
17
|
+
7,
|
|
18
|
+
11
|
|
19
|
+
], _ = [
|
|
20
|
+
1,
|
|
21
|
+
6,
|
|
22
|
+
13,
|
|
23
|
+
14
|
|
24
|
+
], m = [1, 23], $ = [1, 24], v = [
|
|
25
|
+
1,
|
|
26
|
+
6,
|
|
27
|
+
7,
|
|
28
|
+
11,
|
|
29
|
+
13,
|
|
30
|
+
14
|
|
31
|
+
], P = {
|
|
32
|
+
trace: /* @__PURE__ */ l(function() {
|
|
33
|
+
}, "trace"),
|
|
34
|
+
yy: {},
|
|
35
|
+
symbols_: {
|
|
36
|
+
error: 2,
|
|
37
|
+
start: 3,
|
|
38
|
+
ishikawa: 4,
|
|
39
|
+
spaceLines: 5,
|
|
40
|
+
SPACELINE: 6,
|
|
41
|
+
NL: 7,
|
|
42
|
+
ISHIKAWA: 8,
|
|
43
|
+
document: 9,
|
|
44
|
+
stop: 10,
|
|
45
|
+
EOF: 11,
|
|
46
|
+
statement: 12,
|
|
47
|
+
SPACELIST: 13,
|
|
48
|
+
TEXT: 14,
|
|
49
|
+
$accept: 0,
|
|
50
|
+
$end: 1
|
|
51
|
+
},
|
|
52
|
+
terminals_: {
|
|
53
|
+
2: "error",
|
|
54
|
+
6: "SPACELINE",
|
|
55
|
+
7: "NL",
|
|
56
|
+
8: "ISHIKAWA",
|
|
57
|
+
11: "EOF",
|
|
58
|
+
13: "SPACELIST",
|
|
59
|
+
14: "TEXT"
|
|
60
|
+
},
|
|
61
|
+
productions_: [
|
|
62
|
+
0,
|
|
63
|
+
[3, 1],
|
|
64
|
+
[3, 2],
|
|
65
|
+
[5, 1],
|
|
66
|
+
[5, 2],
|
|
67
|
+
[5, 2],
|
|
68
|
+
[4, 2],
|
|
69
|
+
[4, 3],
|
|
70
|
+
[10, 1],
|
|
71
|
+
[10, 1],
|
|
72
|
+
[10, 1],
|
|
73
|
+
[10, 2],
|
|
74
|
+
[10, 2],
|
|
75
|
+
[9, 3],
|
|
76
|
+
[9, 2],
|
|
77
|
+
[12, 2],
|
|
78
|
+
[12, 1],
|
|
79
|
+
[12, 1],
|
|
80
|
+
[12, 1]
|
|
81
|
+
],
|
|
82
|
+
performAction: /* @__PURE__ */ l(function(s, c, i, d, w, f, E) {
|
|
83
|
+
var b = f.length - 1;
|
|
84
|
+
switch (w) {
|
|
85
|
+
case 6:
|
|
86
|
+
case 7:
|
|
87
|
+
return d;
|
|
88
|
+
case 15:
|
|
89
|
+
d.addNode(f[b - 1].length, f[b].trim());
|
|
90
|
+
break;
|
|
91
|
+
case 16:
|
|
92
|
+
d.addNode(0, f[b].trim());
|
|
93
|
+
break;
|
|
94
|
+
}
|
|
95
|
+
}, "anonymous"),
|
|
96
|
+
table: [
|
|
97
|
+
{
|
|
98
|
+
3: 1,
|
|
99
|
+
4: 2,
|
|
100
|
+
5: 3,
|
|
101
|
+
6: [1, 5],
|
|
102
|
+
8: u
|
|
103
|
+
},
|
|
104
|
+
{ 1: [3] },
|
|
105
|
+
{ 1: [2, 1] },
|
|
106
|
+
{
|
|
107
|
+
4: 6,
|
|
108
|
+
6: [1, 7],
|
|
109
|
+
7: [1, 8],
|
|
110
|
+
8: u
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
6: n,
|
|
114
|
+
7: [1, 10],
|
|
115
|
+
9: 9,
|
|
116
|
+
12: 11,
|
|
117
|
+
13: a,
|
|
118
|
+
14: r
|
|
119
|
+
},
|
|
120
|
+
t(o, [2, 3]),
|
|
121
|
+
{ 1: [2, 2] },
|
|
122
|
+
t(o, [2, 4]),
|
|
123
|
+
t(o, [2, 5]),
|
|
124
|
+
{
|
|
125
|
+
1: [2, 6],
|
|
126
|
+
6: n,
|
|
127
|
+
12: 15,
|
|
128
|
+
13: a,
|
|
129
|
+
14: r
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
6: n,
|
|
133
|
+
9: 16,
|
|
134
|
+
12: 11,
|
|
135
|
+
13: a,
|
|
136
|
+
14: r
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
6: k,
|
|
140
|
+
7: h,
|
|
141
|
+
10: 17,
|
|
142
|
+
11: p
|
|
143
|
+
},
|
|
144
|
+
t(y, [2, 18], { 14: [1, 21] }),
|
|
145
|
+
t(y, [2, 16]),
|
|
146
|
+
t(y, [2, 17]),
|
|
147
|
+
{
|
|
148
|
+
6: k,
|
|
149
|
+
7: h,
|
|
150
|
+
10: 22,
|
|
151
|
+
11: p
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
1: [2, 7],
|
|
155
|
+
6: n,
|
|
156
|
+
12: 15,
|
|
157
|
+
13: a,
|
|
158
|
+
14: r
|
|
159
|
+
},
|
|
160
|
+
t(_, [2, 14], {
|
|
161
|
+
7: m,
|
|
162
|
+
11: $
|
|
163
|
+
}),
|
|
164
|
+
t(v, [2, 8]),
|
|
165
|
+
t(v, [2, 9]),
|
|
166
|
+
t(v, [2, 10]),
|
|
167
|
+
t(y, [2, 15]),
|
|
168
|
+
t(_, [2, 13], {
|
|
169
|
+
7: m,
|
|
170
|
+
11: $
|
|
171
|
+
}),
|
|
172
|
+
t(v, [2, 11]),
|
|
173
|
+
t(v, [2, 12])
|
|
174
|
+
],
|
|
175
|
+
defaultActions: {
|
|
176
|
+
2: [2, 1],
|
|
177
|
+
6: [2, 2]
|
|
178
|
+
},
|
|
179
|
+
parseError: /* @__PURE__ */ l(function(s, c) {
|
|
180
|
+
if (c.recoverable) this.trace(s);
|
|
181
|
+
else {
|
|
182
|
+
var i = new Error(s);
|
|
183
|
+
throw i.hash = c, i;
|
|
184
|
+
}
|
|
185
|
+
}, "parseError"),
|
|
186
|
+
parse: /* @__PURE__ */ l(function(s) {
|
|
187
|
+
var c = this, i = [0], d = [], w = [null], f = [], E = this.table, b = "", x = 0, B = 0, S = 0, T = 2, M = 1, C = f.slice.call(arguments, 1), g = Object.create(this.lexer), I = { yy: {} };
|
|
188
|
+
for (var V in this.yy) Object.prototype.hasOwnProperty.call(this.yy, V) && (I.yy[V] = this.yy[V]);
|
|
189
|
+
g.setInput(s, I.yy), I.yy.lexer = g, I.yy.parser = this, typeof g.yylloc > "u" && (g.yylloc = {});
|
|
190
|
+
var R = g.yylloc;
|
|
191
|
+
f.push(R);
|
|
192
|
+
var Z = g.options && g.options.ranges;
|
|
193
|
+
typeof I.yy.parseError == "function" ? this.parseError = I.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
|
|
194
|
+
function ct(D) {
|
|
195
|
+
i.length = i.length - 2 * D, w.length = w.length - D, f.length = f.length - D;
|
|
196
|
+
}
|
|
197
|
+
l(ct, "popStack");
|
|
198
|
+
function J() {
|
|
199
|
+
var D = d.pop() || g.lex() || M;
|
|
200
|
+
return typeof D != "number" && (D instanceof Array && (d = D, D = d.pop()), D = c.symbols_[D] || D), D;
|
|
201
|
+
}
|
|
202
|
+
l(J, "lex");
|
|
203
|
+
for (var L, K, W, N, X, F = {}, H, O, tt, U; ; ) {
|
|
204
|
+
if (W = i[i.length - 1], this.defaultActions[W] ? N = this.defaultActions[W] : ((L === null || typeof L > "u") && (L = J()), N = E[W] && E[W][L]), typeof N > "u" || !N.length || !N[0]) {
|
|
205
|
+
var Y = "";
|
|
206
|
+
U = [];
|
|
207
|
+
for (H in E[W]) this.terminals_[H] && H > T && U.push("'" + this.terminals_[H] + "'");
|
|
208
|
+
g.showPosition ? Y = "Parse error on line " + (x + 1) + `:
|
|
209
|
+
` + g.showPosition() + `
|
|
210
|
+
Expecting ` + U.join(", ") + ", got '" + (this.terminals_[L] || L) + "'" : Y = "Parse error on line " + (x + 1) + ": Unexpected " + (L == M ? "end of input" : "'" + (this.terminals_[L] || L) + "'"), this.parseError(Y, {
|
|
211
|
+
text: g.match,
|
|
212
|
+
token: this.terminals_[L] || L,
|
|
213
|
+
line: g.yylineno,
|
|
214
|
+
loc: R,
|
|
215
|
+
expected: U
|
|
216
|
+
});
|
|
217
|
+
}
|
|
218
|
+
if (N[0] instanceof Array && N.length > 1) throw new Error("Parse Error: multiple actions possible at state: " + W + ", token: " + L);
|
|
219
|
+
switch (N[0]) {
|
|
220
|
+
case 1:
|
|
221
|
+
i.push(L), w.push(g.yytext), f.push(g.yylloc), i.push(N[1]), L = null, K ? (L = K, K = null) : (B = g.yyleng, b = g.yytext, x = g.yylineno, R = g.yylloc, S > 0 && S--);
|
|
222
|
+
break;
|
|
223
|
+
case 2:
|
|
224
|
+
if (O = this.productions_[N[1]][1], F.$ = w[w.length - O], F._$ = {
|
|
225
|
+
first_line: f[f.length - (O || 1)].first_line,
|
|
226
|
+
last_line: f[f.length - 1].last_line,
|
|
227
|
+
first_column: f[f.length - (O || 1)].first_column,
|
|
228
|
+
last_column: f[f.length - 1].last_column
|
|
229
|
+
}, Z && (F._$.range = [f[f.length - (O || 1)].range[0], f[f.length - 1].range[1]]), X = this.performAction.apply(F, [
|
|
230
|
+
b,
|
|
231
|
+
B,
|
|
232
|
+
x,
|
|
233
|
+
I.yy,
|
|
234
|
+
N[1],
|
|
235
|
+
w,
|
|
236
|
+
f
|
|
237
|
+
].concat(C)), typeof X < "u") return X;
|
|
238
|
+
O && (i = i.slice(0, -1 * O * 2), w = w.slice(0, -1 * O), f = f.slice(0, -1 * O)), i.push(this.productions_[N[1]][0]), w.push(F.$), f.push(F._$), tt = E[i[i.length - 2]][i[i.length - 1]], i.push(tt);
|
|
239
|
+
break;
|
|
240
|
+
case 3:
|
|
241
|
+
return !0;
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
return !0;
|
|
245
|
+
}, "parse")
|
|
246
|
+
};
|
|
247
|
+
P.lexer = /* @__PURE__ */ (function() {
|
|
248
|
+
return {
|
|
249
|
+
EOF: 1,
|
|
250
|
+
parseError: /* @__PURE__ */ l(function(s, c) {
|
|
251
|
+
if (this.yy.parser) this.yy.parser.parseError(s, c);
|
|
252
|
+
else throw new Error(s);
|
|
253
|
+
}, "parseError"),
|
|
254
|
+
setInput: /* @__PURE__ */ l(function(e, s) {
|
|
255
|
+
return this.yy = s || this.yy || {}, this._input = e, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
|
|
256
|
+
first_line: 1,
|
|
257
|
+
first_column: 0,
|
|
258
|
+
last_line: 1,
|
|
259
|
+
last_column: 0
|
|
260
|
+
}, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
|
|
261
|
+
}, "setInput"),
|
|
262
|
+
input: /* @__PURE__ */ l(function() {
|
|
263
|
+
var e = this._input[0];
|
|
264
|
+
return this.yytext += e, this.yyleng++, this.offset++, this.match += e, this.matched += e, e.match(/(?:\r\n?|\n).*/g) ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), e;
|
|
265
|
+
}, "input"),
|
|
266
|
+
unput: /* @__PURE__ */ l(function(e) {
|
|
267
|
+
var s = e.length, c = e.split(/(?:\r\n?|\n)/g);
|
|
268
|
+
this._input = e + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - s), this.offset -= s;
|
|
269
|
+
var i = this.match.split(/(?:\r\n?|\n)/g);
|
|
270
|
+
this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), c.length - 1 && (this.yylineno -= c.length - 1);
|
|
271
|
+
var d = this.yylloc.range;
|
|
272
|
+
return this.yylloc = {
|
|
273
|
+
first_line: this.yylloc.first_line,
|
|
274
|
+
last_line: this.yylineno + 1,
|
|
275
|
+
first_column: this.yylloc.first_column,
|
|
276
|
+
last_column: c ? (c.length === i.length ? this.yylloc.first_column : 0) + i[i.length - c.length].length - c[0].length : this.yylloc.first_column - s
|
|
277
|
+
}, this.options.ranges && (this.yylloc.range = [d[0], d[0] + this.yyleng - s]), this.yyleng = this.yytext.length, this;
|
|
278
|
+
}, "unput"),
|
|
279
|
+
more: /* @__PURE__ */ l(function() {
|
|
280
|
+
return this._more = !0, this;
|
|
281
|
+
}, "more"),
|
|
282
|
+
reject: /* @__PURE__ */ l(function() {
|
|
283
|
+
if (this.options.backtrack_lexer) this._backtrack = !0;
|
|
284
|
+
else return this.parseError("Lexical error on line " + (this.yylineno + 1) + `. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
285
|
+
` + this.showPosition(), {
|
|
286
|
+
text: "",
|
|
287
|
+
token: null,
|
|
288
|
+
line: this.yylineno
|
|
289
|
+
});
|
|
290
|
+
return this;
|
|
291
|
+
}, "reject"),
|
|
292
|
+
less: /* @__PURE__ */ l(function(e) {
|
|
293
|
+
this.unput(this.match.slice(e));
|
|
294
|
+
}, "less"),
|
|
295
|
+
pastInput: /* @__PURE__ */ l(function() {
|
|
296
|
+
var e = this.matched.substr(0, this.matched.length - this.match.length);
|
|
297
|
+
return (e.length > 20 ? "..." : "") + e.substr(-20).replace(/\n/g, "");
|
|
298
|
+
}, "pastInput"),
|
|
299
|
+
upcomingInput: /* @__PURE__ */ l(function() {
|
|
300
|
+
var e = this.match;
|
|
301
|
+
return e.length < 20 && (e += this._input.substr(0, 20 - e.length)), (e.substr(0, 20) + (e.length > 20 ? "..." : "")).replace(/\n/g, "");
|
|
302
|
+
}, "upcomingInput"),
|
|
303
|
+
showPosition: /* @__PURE__ */ l(function() {
|
|
304
|
+
var e = this.pastInput(), s = new Array(e.length + 1).join("-");
|
|
305
|
+
return e + this.upcomingInput() + `
|
|
306
|
+
` + s + "^";
|
|
307
|
+
}, "showPosition"),
|
|
308
|
+
test_match: /* @__PURE__ */ l(function(e, s) {
|
|
309
|
+
var c, i, d;
|
|
310
|
+
if (this.options.backtrack_lexer && (d = {
|
|
311
|
+
yylineno: this.yylineno,
|
|
312
|
+
yylloc: {
|
|
313
|
+
first_line: this.yylloc.first_line,
|
|
314
|
+
last_line: this.last_line,
|
|
315
|
+
first_column: this.yylloc.first_column,
|
|
316
|
+
last_column: this.yylloc.last_column
|
|
317
|
+
},
|
|
318
|
+
yytext: this.yytext,
|
|
319
|
+
match: this.match,
|
|
320
|
+
matches: this.matches,
|
|
321
|
+
matched: this.matched,
|
|
322
|
+
yyleng: this.yyleng,
|
|
323
|
+
offset: this.offset,
|
|
324
|
+
_more: this._more,
|
|
325
|
+
_input: this._input,
|
|
326
|
+
yy: this.yy,
|
|
327
|
+
conditionStack: this.conditionStack.slice(0),
|
|
328
|
+
done: this.done
|
|
329
|
+
}, this.options.ranges && (d.yylloc.range = this.yylloc.range.slice(0))), i = e[0].match(/(?:\r\n?|\n).*/g), i && (this.yylineno += i.length), this.yylloc = {
|
|
330
|
+
first_line: this.yylloc.last_line,
|
|
331
|
+
last_line: this.yylineno + 1,
|
|
332
|
+
first_column: this.yylloc.last_column,
|
|
333
|
+
last_column: i ? i[i.length - 1].length - i[i.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + e[0].length
|
|
334
|
+
}, this.yytext += e[0], this.match += e[0], this.matches = e, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(e[0].length), this.matched += e[0], c = this.performAction.call(this, this.yy, this, s, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), c) return c;
|
|
335
|
+
if (this._backtrack) {
|
|
336
|
+
for (var w in d) this[w] = d[w];
|
|
337
|
+
return !1;
|
|
338
|
+
}
|
|
339
|
+
return !1;
|
|
340
|
+
}, "test_match"),
|
|
341
|
+
next: /* @__PURE__ */ l(function() {
|
|
342
|
+
if (this.done) return this.EOF;
|
|
343
|
+
this._input || (this.done = !0);
|
|
344
|
+
var e, s, c, i;
|
|
345
|
+
this._more || (this.yytext = "", this.match = "");
|
|
346
|
+
for (var d = this._currentRules(), w = 0; w < d.length; w++)
|
|
347
|
+
if (c = this._input.match(this.rules[d[w]]), c && (!s || c[0].length > s[0].length)) {
|
|
348
|
+
if (s = c, i = w, this.options.backtrack_lexer) {
|
|
349
|
+
if (e = this.test_match(c, d[w]), e !== !1) return e;
|
|
350
|
+
if (this._backtrack) {
|
|
351
|
+
s = !1;
|
|
352
|
+
continue;
|
|
353
|
+
} else return !1;
|
|
354
|
+
} else if (!this.options.flex) break;
|
|
355
|
+
}
|
|
356
|
+
return s ? (e = this.test_match(s, d[i]), e !== !1 ? e : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
|
|
357
|
+
` + this.showPosition(), {
|
|
358
|
+
text: "",
|
|
359
|
+
token: null,
|
|
360
|
+
line: this.yylineno
|
|
361
|
+
});
|
|
362
|
+
}, "next"),
|
|
363
|
+
lex: /* @__PURE__ */ l(function() {
|
|
364
|
+
var s = this.next();
|
|
365
|
+
return s || this.lex();
|
|
366
|
+
}, "lex"),
|
|
367
|
+
begin: /* @__PURE__ */ l(function(s) {
|
|
368
|
+
this.conditionStack.push(s);
|
|
369
|
+
}, "begin"),
|
|
370
|
+
popState: /* @__PURE__ */ l(function() {
|
|
371
|
+
return this.conditionStack.length - 1 > 0 ? this.conditionStack.pop() : this.conditionStack[0];
|
|
372
|
+
}, "popState"),
|
|
373
|
+
_currentRules: /* @__PURE__ */ l(function() {
|
|
374
|
+
return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
|
|
375
|
+
}, "_currentRules"),
|
|
376
|
+
topState: /* @__PURE__ */ l(function(s) {
|
|
377
|
+
return s = this.conditionStack.length - 1 - Math.abs(s || 0), s >= 0 ? this.conditionStack[s] : "INITIAL";
|
|
378
|
+
}, "topState"),
|
|
379
|
+
pushState: /* @__PURE__ */ l(function(s) {
|
|
380
|
+
this.begin(s);
|
|
381
|
+
}, "pushState"),
|
|
382
|
+
stateStackSize: /* @__PURE__ */ l(function() {
|
|
383
|
+
return this.conditionStack.length;
|
|
384
|
+
}, "stateStackSize"),
|
|
385
|
+
options: { "case-insensitive": !0 },
|
|
386
|
+
performAction: /* @__PURE__ */ l(function(s, c, i, d) {
|
|
387
|
+
switch (i) {
|
|
388
|
+
case 0:
|
|
389
|
+
return 6;
|
|
390
|
+
case 1:
|
|
391
|
+
return 8;
|
|
392
|
+
case 2:
|
|
393
|
+
return 8;
|
|
394
|
+
case 3:
|
|
395
|
+
return 6;
|
|
396
|
+
case 4:
|
|
397
|
+
return 7;
|
|
398
|
+
case 5:
|
|
399
|
+
return 13;
|
|
400
|
+
case 6:
|
|
401
|
+
return 14;
|
|
402
|
+
case 7:
|
|
403
|
+
return 11;
|
|
404
|
+
}
|
|
405
|
+
}, "anonymous"),
|
|
406
|
+
rules: [
|
|
407
|
+
/^(?:\s*%%.*)/i,
|
|
408
|
+
/^(?:ishikawa-beta\b)/i,
|
|
409
|
+
/^(?:ishikawa\b)/i,
|
|
410
|
+
/^(?:[\s]+[\n])/i,
|
|
411
|
+
/^(?:[\n]+)/i,
|
|
412
|
+
/^(?:[\s]+)/i,
|
|
413
|
+
/^(?:[^\n]+)/i,
|
|
414
|
+
/^(?:$)/i
|
|
415
|
+
],
|
|
416
|
+
conditions: { INITIAL: {
|
|
417
|
+
rules: [
|
|
418
|
+
0,
|
|
419
|
+
1,
|
|
420
|
+
2,
|
|
421
|
+
3,
|
|
422
|
+
4,
|
|
423
|
+
5,
|
|
424
|
+
6,
|
|
425
|
+
7
|
|
426
|
+
],
|
|
427
|
+
inclusive: !0
|
|
428
|
+
} }
|
|
429
|
+
};
|
|
430
|
+
})();
|
|
431
|
+
function A() {
|
|
432
|
+
this.yy = {};
|
|
433
|
+
}
|
|
434
|
+
return l(A, "Parser"), A.prototype = P, P.Parser = A, new A();
|
|
435
|
+
})();
|
|
436
|
+
Q.parser = Q;
|
|
437
|
+
var xt = Q, vt = class {
|
|
438
|
+
constructor() {
|
|
439
|
+
this.stack = [], this.clear = this.clear.bind(this), this.addNode = this.addNode.bind(this), this.getRoot = this.getRoot.bind(this);
|
|
440
|
+
}
|
|
441
|
+
static {
|
|
442
|
+
l(this, "IshikawaDB");
|
|
443
|
+
}
|
|
444
|
+
clear() {
|
|
445
|
+
this.root = void 0, this.stack = [], this.baseLevel = void 0, yt();
|
|
446
|
+
}
|
|
447
|
+
getRoot() {
|
|
448
|
+
return this.root;
|
|
449
|
+
}
|
|
450
|
+
addNode(t, u) {
|
|
451
|
+
const n = pt.sanitizeText(u, lt());
|
|
452
|
+
if (!this.root) {
|
|
453
|
+
this.root = {
|
|
454
|
+
text: n,
|
|
455
|
+
children: []
|
|
456
|
+
}, this.stack = [{
|
|
457
|
+
level: 0,
|
|
458
|
+
node: this.root
|
|
459
|
+
}], et(n);
|
|
460
|
+
return;
|
|
461
|
+
}
|
|
462
|
+
this.baseLevel ??= t;
|
|
463
|
+
let a = t - this.baseLevel + 1;
|
|
464
|
+
for (a <= 0 && (a = 1); this.stack.length > 1 && this.stack[this.stack.length - 1].level >= a; ) this.stack.pop();
|
|
465
|
+
const r = this.stack[this.stack.length - 1].node, o = {
|
|
466
|
+
text: n,
|
|
467
|
+
children: []
|
|
468
|
+
};
|
|
469
|
+
r.children.push(o), this.stack.push({
|
|
470
|
+
level: a,
|
|
471
|
+
node: o
|
|
472
|
+
});
|
|
473
|
+
}
|
|
474
|
+
getAccTitle() {
|
|
475
|
+
return mt();
|
|
476
|
+
}
|
|
477
|
+
setAccTitle(t) {
|
|
478
|
+
dt(t);
|
|
479
|
+
}
|
|
480
|
+
getAccDescription() {
|
|
481
|
+
return gt();
|
|
482
|
+
}
|
|
483
|
+
setAccDescription(t) {
|
|
484
|
+
ut(t);
|
|
485
|
+
}
|
|
486
|
+
getDiagramTitle() {
|
|
487
|
+
return kt();
|
|
488
|
+
}
|
|
489
|
+
setDiagramTitle(t) {
|
|
490
|
+
et(t);
|
|
491
|
+
}
|
|
492
|
+
}, St = 14, j = 250, Et = 30, $t = 60, At = 5, ot = 82 * Math.PI / 180, it = Math.cos(ot), st = Math.sin(ot), nt = /* @__PURE__ */ l((t, u, n) => {
|
|
493
|
+
const a = t.node().getBBox(), r = a.width + u * 2, o = a.height + u * 2;
|
|
494
|
+
ft(t, o, r, n), t.attr("viewBox", `${a.x - u} ${a.y - u} ${r} ${o}`);
|
|
495
|
+
}, "applyPaddedViewBox"), It = /* @__PURE__ */ l((t, u, n, a) => {
|
|
496
|
+
const r = a.db.getRoot();
|
|
497
|
+
if (!r) return;
|
|
498
|
+
const o = lt(), { look: k, handDrawnSeed: h, themeVariables: p } = o, y = wt(o.fontSize)[0] ?? St, _ = k === "handDrawn", m = r.children ?? [], $ = o.ishikawa?.diagramPadding ?? 20, v = o.ishikawa?.useMaxWidth ?? !1, P = _t(u), A = P.append("g").attr("class", "ishikawa"), e = _ ? bt.svg(P.node()) : void 0, s = e ? {
|
|
499
|
+
roughSvg: e,
|
|
500
|
+
seed: h ?? 0,
|
|
501
|
+
lineColor: p?.lineColor ?? "#333",
|
|
502
|
+
fillColor: p?.mainBkg ?? "#fff"
|
|
503
|
+
} : void 0, c = `ishikawa-arrow-${u}`;
|
|
504
|
+
_ || A.append("defs").append("marker").attr("id", c).attr("viewBox", "0 0 10 10").attr("refX", 0).attr("refY", 5).attr("markerWidth", 6).attr("markerHeight", 6).attr("orient", "auto").append("path").attr("d", "M 10 0 L 0 5 L 10 10 Z").attr("class", "ishikawa-arrow");
|
|
505
|
+
let i = 0, d = j;
|
|
506
|
+
const w = _ ? void 0 : z(A, i, d, i, d, "ishikawa-spine");
|
|
507
|
+
if (Lt(A, i, d, r.text, y, s), !m.length) {
|
|
508
|
+
_ && z(A, i, d, i, d, "ishikawa-spine", s), nt(P, $, v);
|
|
509
|
+
return;
|
|
510
|
+
}
|
|
511
|
+
i -= 20;
|
|
512
|
+
const f = m.filter((g, I) => I % 2 === 0), E = m.filter((g, I) => I % 2 === 1), b = at(f), x = at(E), B = b.total + x.total;
|
|
513
|
+
let S = j, T = j;
|
|
514
|
+
if (B > 0) {
|
|
515
|
+
const g = j * 2, I = j * 0.3;
|
|
516
|
+
S = Math.max(I, g * (b.total / B)), T = Math.max(I, g * (x.total / B));
|
|
517
|
+
}
|
|
518
|
+
const M = y * 2;
|
|
519
|
+
S = Math.max(S, b.max * M), T = Math.max(T, x.max * M), d = Math.max(S, j), w && w.attr("y1", d).attr("y2", d), A.select(".ishikawa-head-group").attr("transform", `translate(0,${d})`);
|
|
520
|
+
const C = Math.ceil(m.length / 2);
|
|
521
|
+
for (let g = 0; g < C; g++) {
|
|
522
|
+
const I = A.append("g").attr("class", "ishikawa-pair");
|
|
523
|
+
for (const [V, R, Z] of [[
|
|
524
|
+
m[g * 2],
|
|
525
|
+
-1,
|
|
526
|
+
S
|
|
527
|
+
], [
|
|
528
|
+
m[g * 2 + 1],
|
|
529
|
+
1,
|
|
530
|
+
T
|
|
531
|
+
]]) V && Pt(I, V, i, d, R, Z, y, s);
|
|
532
|
+
i = I.selectAll("text").nodes().reduce((V, R) => Math.min(V, R.getBBox().x), 1 / 0);
|
|
533
|
+
}
|
|
534
|
+
if (_) z(A, i, d, 0, d, "ishikawa-spine", s);
|
|
535
|
+
else {
|
|
536
|
+
w.attr("x1", i);
|
|
537
|
+
const g = `url(#${c})`;
|
|
538
|
+
A.selectAll("line.ishikawa-branch, line.ishikawa-sub-branch").attr("marker-start", g);
|
|
539
|
+
}
|
|
540
|
+
nt(P, $, v);
|
|
541
|
+
}, "draw"), at = /* @__PURE__ */ l((t) => {
|
|
542
|
+
const u = /* @__PURE__ */ l((n) => n.children.reduce((a, r) => a + 1 + u(r), 0), "countDescendants");
|
|
543
|
+
return t.reduce((n, a) => {
|
|
544
|
+
const r = u(a);
|
|
545
|
+
return n.total += r, n.max = Math.max(n.max, r), n;
|
|
546
|
+
}, {
|
|
547
|
+
total: 0,
|
|
548
|
+
max: 0
|
|
549
|
+
});
|
|
550
|
+
}, "sideStats"), Lt = /* @__PURE__ */ l((t, u, n, a, r, o) => {
|
|
551
|
+
const k = Math.max(6, Math.floor(110 / (r * 0.6))), h = t.append("g").attr("class", "ishikawa-head-group").attr("transform", `translate(${u},${n})`), p = G(h, ht(a, k), 0, 0, "ishikawa-head-label", "start", r), y = p.node().getBBox(), _ = Math.max(60, y.width + 6), m = Math.max(40, y.height * 2 + 40), $ = `M 0 ${-m / 2} L 0 ${m / 2} Q ${_ * 2.4} 0 0 ${-m / 2} Z`;
|
|
552
|
+
if (o) {
|
|
553
|
+
const v = o.roughSvg.path($, {
|
|
554
|
+
roughness: 1.5,
|
|
555
|
+
seed: o.seed,
|
|
556
|
+
fill: o.fillColor,
|
|
557
|
+
fillStyle: "hachure",
|
|
558
|
+
fillWeight: 2.5,
|
|
559
|
+
hachureGap: 5,
|
|
560
|
+
stroke: o.lineColor,
|
|
561
|
+
strokeWidth: 2
|
|
562
|
+
});
|
|
563
|
+
h.insert(() => v, ":first-child").attr("class", "ishikawa-head");
|
|
564
|
+
} else h.insert("path", ":first-child").attr("class", "ishikawa-head").attr("d", $);
|
|
565
|
+
p.attr("transform", `translate(${(_ - y.width) / 2 - y.x + 3},${-y.y - y.height / 2})`);
|
|
566
|
+
}, "drawHead"), Tt = /* @__PURE__ */ l((t, u) => {
|
|
567
|
+
const n = [], a = [], r = /* @__PURE__ */ l((o, k, h) => {
|
|
568
|
+
const p = u === -1 ? [...o].reverse() : o;
|
|
569
|
+
for (const y of p) {
|
|
570
|
+
const _ = n.length, m = y.children ?? [];
|
|
571
|
+
n.push({
|
|
572
|
+
depth: h,
|
|
573
|
+
text: ht(y.text, 15),
|
|
574
|
+
parentIndex: k,
|
|
575
|
+
childCount: m.length
|
|
576
|
+
}), h % 2 === 0 ? (a.push(_), m.length && r(m, _, h + 1)) : (m.length && r(m, _, h + 1), a.push(_));
|
|
577
|
+
}
|
|
578
|
+
}, "walk");
|
|
579
|
+
return r(t, -1, 2), {
|
|
580
|
+
entries: n,
|
|
581
|
+
yOrder: a
|
|
582
|
+
};
|
|
583
|
+
}, "flattenTree"), Mt = /* @__PURE__ */ l((t, u, n, a, r, o, k) => {
|
|
584
|
+
const h = t.append("g").attr("class", "ishikawa-label-group"), p = G(h, u, n, a + 11 * r, "ishikawa-label cause", "middle", o).node().getBBox();
|
|
585
|
+
if (k) {
|
|
586
|
+
const y = k.roughSvg.rectangle(p.x - 20, p.y - 2, p.width + 40, p.height + 4, {
|
|
587
|
+
roughness: 1.5,
|
|
588
|
+
seed: k.seed,
|
|
589
|
+
fill: k.fillColor,
|
|
590
|
+
fillStyle: "hachure",
|
|
591
|
+
fillWeight: 2.5,
|
|
592
|
+
hachureGap: 5,
|
|
593
|
+
stroke: k.lineColor,
|
|
594
|
+
strokeWidth: 2
|
|
595
|
+
});
|
|
596
|
+
h.insert(() => y, ":first-child").attr("class", "ishikawa-label-box");
|
|
597
|
+
} else h.insert("rect", ":first-child").attr("class", "ishikawa-label-box").attr("x", p.x - 20).attr("y", p.y - 2).attr("width", p.width + 40).attr("height", p.height + 4);
|
|
598
|
+
}, "drawCauseLabel"), q = /* @__PURE__ */ l((t, u, n, a, r, o) => {
|
|
599
|
+
const k = Math.sqrt(a * a + r * r);
|
|
600
|
+
if (k === 0) return;
|
|
601
|
+
const h = a / k, p = r / k, y = 6, _ = -p * y, m = h * y, $ = u, v = n, P = `M ${$} ${v} L ${$ - h * y * 2 + _} ${v - p * y * 2 + m} L ${$ - h * y * 2 - _} ${v - p * y * 2 - m} Z`, A = o.roughSvg.path(P, {
|
|
602
|
+
roughness: 1,
|
|
603
|
+
seed: o.seed,
|
|
604
|
+
fill: o.lineColor,
|
|
605
|
+
fillStyle: "solid",
|
|
606
|
+
stroke: o.lineColor,
|
|
607
|
+
strokeWidth: 1
|
|
608
|
+
});
|
|
609
|
+
t.append(() => A);
|
|
610
|
+
}, "drawArrowMarker"), Pt = /* @__PURE__ */ l((t, u, n, a, r, o, k, h) => {
|
|
611
|
+
const p = u.children ?? [], y = o * (p.length ? 1 : 0.2), _ = -it * y, m = st * y * r, $ = n + _, v = a + m;
|
|
612
|
+
if (z(t, n, a, $, v, "ishikawa-branch", h), h && q(t, n, a, n - $, a - v, h), Mt(t, u.text, $, v, r, k, h), !p.length) return;
|
|
613
|
+
const { entries: P, yOrder: A } = Tt(p, r), e = P.length, s = new Array(e);
|
|
614
|
+
for (const [f, E] of A.entries()) s[E] = a + m * ((f + 1) / (e + 1));
|
|
615
|
+
const c = /* @__PURE__ */ new Map();
|
|
616
|
+
c.set(-1, {
|
|
617
|
+
x0: n,
|
|
618
|
+
y0: a,
|
|
619
|
+
x1: $,
|
|
620
|
+
y1: v,
|
|
621
|
+
childCount: p.length,
|
|
622
|
+
childrenDrawn: 0
|
|
623
|
+
});
|
|
624
|
+
const i = -it, d = st * r, w = r < 0 ? "ishikawa-label up" : "ishikawa-label down";
|
|
625
|
+
for (const [f, E] of P.entries()) {
|
|
626
|
+
const b = s[f], x = c.get(E.parentIndex), B = t.append("g").attr("class", "ishikawa-sub-group");
|
|
627
|
+
let S = 0, T = 0, M = 0;
|
|
628
|
+
if (E.depth % 2 === 0) {
|
|
629
|
+
const C = x.y1 - x.y0;
|
|
630
|
+
S = rt(x.x0, x.x1, C ? (b - x.y0) / C : 0.5), T = b, M = S - (E.childCount > 0 ? $t + E.childCount * At : Et), z(B, S, b, M, b, "ishikawa-sub-branch", h), h && q(B, S, b, 1, 0, h), G(B, E.text, M, b, "ishikawa-label align", "end", k);
|
|
631
|
+
} else {
|
|
632
|
+
const C = x.childrenDrawn++;
|
|
633
|
+
S = rt(x.x0, x.x1, (x.childCount - C) / (x.childCount + 1)), T = x.y0, M = S + i * ((b - T) / d), z(B, S, T, M, b, "ishikawa-sub-branch", h), h && q(B, S, T, S - M, T - b, h), G(B, E.text, M, b, w, "end", k);
|
|
634
|
+
}
|
|
635
|
+
E.childCount > 0 && c.set(f, {
|
|
636
|
+
x0: S,
|
|
637
|
+
y0: T,
|
|
638
|
+
x1: M,
|
|
639
|
+
y1: b,
|
|
640
|
+
childCount: E.childCount,
|
|
641
|
+
childrenDrawn: 0
|
|
642
|
+
});
|
|
643
|
+
}
|
|
644
|
+
}, "drawBranch"), Bt = /* @__PURE__ */ l((t) => t.split(/<br\s*\/?>|\n/), "splitLines"), ht = /* @__PURE__ */ l((t, u) => {
|
|
645
|
+
if (t.length <= u) return t;
|
|
646
|
+
const n = [];
|
|
647
|
+
for (const a of t.split(/\s+/)) {
|
|
648
|
+
const r = n.length - 1;
|
|
649
|
+
r >= 0 && n[r].length + 1 + a.length <= u ? n[r] += " " + a : n.push(a);
|
|
650
|
+
}
|
|
651
|
+
return n.join(`
|
|
652
|
+
`);
|
|
653
|
+
}, "wrapText"), G = /* @__PURE__ */ l((t, u, n, a, r, o, k) => {
|
|
654
|
+
const h = Bt(u), p = k * 1.05, y = t.append("text").attr("class", r).attr("text-anchor", o).attr("x", n).attr("y", a - (h.length - 1) * p / 2);
|
|
655
|
+
for (const [_, m] of h.entries()) y.append("tspan").attr("x", n).attr("dy", _ === 0 ? 0 : p).text(m);
|
|
656
|
+
return y;
|
|
657
|
+
}, "drawMultilineText"), rt = /* @__PURE__ */ l((t, u, n) => t + (u - t) * n, "lerp"), z = /* @__PURE__ */ l((t, u, n, a, r, o, k) => {
|
|
658
|
+
if (k) {
|
|
659
|
+
const h = k.roughSvg.line(u, n, a, r, {
|
|
660
|
+
roughness: 1.5,
|
|
661
|
+
seed: k.seed,
|
|
662
|
+
stroke: k.lineColor,
|
|
663
|
+
strokeWidth: 2
|
|
664
|
+
});
|
|
665
|
+
t.append(() => h).attr("class", o);
|
|
666
|
+
return;
|
|
667
|
+
}
|
|
668
|
+
return t.append("line").attr("class", o).attr("x1", u).attr("y1", n).attr("x2", a).attr("y2", r);
|
|
669
|
+
}, "drawLine"), Wt = {
|
|
670
|
+
parser: xt,
|
|
671
|
+
get db() {
|
|
672
|
+
return new vt();
|
|
673
|
+
},
|
|
674
|
+
renderer: { draw: It },
|
|
675
|
+
styles: /* @__PURE__ */ l((t) => `
|
|
676
|
+
.ishikawa .ishikawa-spine,
|
|
677
|
+
.ishikawa .ishikawa-branch,
|
|
678
|
+
.ishikawa .ishikawa-sub-branch {
|
|
679
|
+
stroke: ${t.lineColor};
|
|
680
|
+
stroke-width: 2;
|
|
681
|
+
fill: none;
|
|
682
|
+
}
|
|
683
|
+
|
|
684
|
+
.ishikawa .ishikawa-sub-branch {
|
|
685
|
+
stroke-width: 1;
|
|
686
|
+
}
|
|
687
|
+
|
|
688
|
+
.ishikawa .ishikawa-arrow {
|
|
689
|
+
fill: ${t.lineColor};
|
|
690
|
+
}
|
|
691
|
+
|
|
692
|
+
.ishikawa .ishikawa-head {
|
|
693
|
+
fill: ${t.mainBkg};
|
|
694
|
+
stroke: ${t.lineColor};
|
|
695
|
+
stroke-width: 2;
|
|
696
|
+
}
|
|
697
|
+
|
|
698
|
+
.ishikawa .ishikawa-label-box {
|
|
699
|
+
fill: ${t.mainBkg};
|
|
700
|
+
stroke: ${t.lineColor};
|
|
701
|
+
stroke-width: 2;
|
|
702
|
+
}
|
|
703
|
+
|
|
704
|
+
.ishikawa text {
|
|
705
|
+
font-family: ${t.fontFamily};
|
|
706
|
+
font-size: ${t.fontSize};
|
|
707
|
+
fill: ${t.textColor};
|
|
708
|
+
}
|
|
709
|
+
|
|
710
|
+
.ishikawa .ishikawa-head-label {
|
|
711
|
+
font-weight: 600;
|
|
712
|
+
text-anchor: middle;
|
|
713
|
+
dominant-baseline: middle;
|
|
714
|
+
font-size: 14px;
|
|
715
|
+
}
|
|
716
|
+
|
|
717
|
+
.ishikawa .ishikawa-label {
|
|
718
|
+
text-anchor: end;
|
|
719
|
+
}
|
|
720
|
+
|
|
721
|
+
.ishikawa .ishikawa-label.cause {
|
|
722
|
+
text-anchor: middle;
|
|
723
|
+
dominant-baseline: middle;
|
|
724
|
+
}
|
|
725
|
+
|
|
726
|
+
.ishikawa .ishikawa-label.align {
|
|
727
|
+
text-anchor: end;
|
|
728
|
+
dominant-baseline: middle;
|
|
729
|
+
}
|
|
730
|
+
|
|
731
|
+
.ishikawa .ishikawa-label.up {
|
|
732
|
+
dominant-baseline: baseline;
|
|
733
|
+
}
|
|
734
|
+
|
|
735
|
+
.ishikawa .ishikawa-label.down {
|
|
736
|
+
dominant-baseline: hanging;
|
|
737
|
+
}
|
|
738
|
+
`, "getStyles")
|
|
739
|
+
};
|
|
740
|
+
export {
|
|
741
|
+
Wt as diagram
|
|
742
|
+
};
|