@aiquants/markdown 5.0.0 → 6.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +176 -14
- package/dist/{abnfDiagram-VRR7QNED-DeHJ63Vu.js → abnfDiagram-VRR7QNED-0ow9i3L-.js} +3 -3
- package/dist/{abnfDiagram-VRR7QNED-CfVjEUzG.cjs → abnfDiagram-VRR7QNED-DRNsVB-u.cjs} +1 -1
- package/dist/{arc-XFFLkHkK.cjs → arc-BWR9_qMf.cjs} +1 -1
- package/dist/arc-Bh12k776.js +83 -0
- package/dist/{architectureDiagram-ZJ3FMSHR-CQ1m3MUB.js → architectureDiagram-ZJ3FMSHR-CsFXQcxx.js} +123 -123
- package/dist/{architectureDiagram-ZJ3FMSHR-7xJ6YYGu.cjs → architectureDiagram-ZJ3FMSHR-DtrqDlxV.cjs} +1 -1
- package/dist/{blockDiagram-677ZJIJ3-CJOFqwiW.cjs → blockDiagram-677ZJIJ3-CoZEeE0C.cjs} +1 -1
- package/dist/{blockDiagram-677ZJIJ3-BPC3se0e.js → blockDiagram-677ZJIJ3-CqQ43viF.js} +166 -166
- package/dist/{c4Diagram-LMCZKHZV-D8ytYGhR.cjs → c4Diagram-LMCZKHZV-DGA2gxp-.cjs} +1 -1
- package/dist/{c4Diagram-LMCZKHZV-BEIrp4t6.js → c4Diagram-LMCZKHZV-QPgNg4El.js} +2 -2
- package/dist/{channel-CJQcZr8o.cjs → channel-Jkgg7NV4.cjs} +1 -1
- package/dist/channel-PnA15jK3.js +5 -0
- package/dist/{chunk-2Q5K7J3B-BbMQR3Sm.cjs → chunk-2Q5K7J3B-1iQ5h7FK.cjs} +1 -1
- package/dist/{chunk-2Q5K7J3B-l8ly7Yjr.js → chunk-2Q5K7J3B-DOWfHP5s.js} +1 -1
- package/dist/{chunk-32BRIVSS-BhQJBlVw.js → chunk-32BRIVSS-94iTIA-u.js} +1 -1
- package/dist/{chunk-32BRIVSS-BwDfmprN.cjs → chunk-32BRIVSS-XUAL4SUU.cjs} +1 -1
- package/dist/{chunk-5VM5RSS4-CqDQlS7v.cjs → chunk-5VM5RSS4-CKgpuXOS.cjs} +1 -1
- package/dist/{chunk-5VM5RSS4-Bfis-x7E.js → chunk-5VM5RSS4-OANQKmQE.js} +1 -1
- package/dist/{chunk-EX3LRPZG-DUTbzwDM.js → chunk-EX3LRPZG-BQDQ1MdS.js} +50 -50
- package/dist/{chunk-EX3LRPZG-9aDULZwJ.cjs → chunk-EX3LRPZG-BrRRbskW.cjs} +1 -1
- package/dist/{chunk-JWPE2WC7-5cM5nFf6.cjs → chunk-JWPE2WC7-Bz9dXsLZ.cjs} +1 -1
- package/dist/{chunk-JWPE2WC7-DpcSSOP5.js → chunk-JWPE2WC7-Djg6Qi23.js} +1 -1
- package/dist/{chunk-MOJQB5TN-D_h6bolU.js → chunk-MOJQB5TN-1pZNp2Wl.js} +9 -9
- package/dist/{chunk-MOJQB5TN-Cw864mUL.cjs → chunk-MOJQB5TN-DUk2Jy4_.cjs} +1 -1
- package/dist/{chunk-PUDLZKDR-yLvT3c9x.cjs → chunk-PUDLZKDR-CVedetzB.cjs} +1 -1
- package/dist/{chunk-PUDLZKDR-B0wZjmzv.js → chunk-PUDLZKDR-G5JYyEiR.js} +22 -22
- package/dist/{chunk-RYQCIY6F-DTKYsCgk.js → chunk-RYQCIY6F-Crmt36sO.js} +6 -6
- package/dist/{chunk-RYQCIY6F-hj9dRWMT.cjs → chunk-RYQCIY6F-D0y50t5B.cjs} +1 -1
- package/dist/{chunk-V7JOEXUC-COa9uddv.js → chunk-V7JOEXUC-BNo-X7NC.js} +5 -5
- package/dist/{chunk-V7JOEXUC-DIQ8n1AN.cjs → chunk-V7JOEXUC-DXSQM1ea.cjs} +1 -1
- package/dist/{chunk-VR4S4FIN-B72PxPVm.js → chunk-VR4S4FIN-BGGITgpQ.js} +3 -3
- package/dist/{chunk-VR4S4FIN-Cy-2mZJB.cjs → chunk-VR4S4FIN-Bc567umS.cjs} +1 -1
- package/dist/{chunk-XXDRQBXY-DmoUE7-y.cjs → chunk-XXDRQBXY-DOuLpiJ4.cjs} +1 -1
- package/dist/{chunk-XXDRQBXY-D2Sgptl-.js → chunk-XXDRQBXY-Drnpl-KK.js} +1 -1
- package/dist/{classDiagram-v2-EOCWNBFH-Dah4_VL7.js → classDiagram-OUVF2IWQ-Cneye7qT.js} +2 -2
- package/dist/{classDiagram-OUVF2IWQ-GjsCEuKI.cjs → classDiagram-OUVF2IWQ-mmjBEYmN.cjs} +1 -1
- package/dist/{classDiagram-OUVF2IWQ-Dah4_VL7.js → classDiagram-v2-EOCWNBFH-Cneye7qT.js} +2 -2
- package/dist/{classDiagram-v2-EOCWNBFH-GjsCEuKI.cjs → classDiagram-v2-EOCWNBFH-mmjBEYmN.cjs} +1 -1
- package/dist/components/MarkdownRenderer.d.ts +5 -2
- package/dist/components/MarkdownViewer.d.ts +3 -2
- package/dist/components/NodesRenderer.d.ts +1 -5
- package/dist/components/embeds/ClientFrame.d.ts +13 -0
- package/dist/components/embeds/LinkCard.d.ts +20 -0
- package/dist/components/embeds/ProviderEmbed.d.ts +11 -0
- package/dist/components/embeds/embedLabels.d.ts +12 -0
- package/dist/components/embeds/frameMessages.d.ts +7 -0
- package/dist/components/embeds/markdownEmbeds.d.ts +2 -0
- package/dist/components/embeds/requestQueue.d.ts +16 -0
- package/dist/components/embeds.d.ts +0 -8
- package/dist/components/htmlSanitizer.d.ts +4 -0
- package/dist/components/mdastNodes/HTMLBlockContainerNode.d.ts +1 -2
- package/dist/components/rawHtml.d.ts +6 -3
- package/dist/components/viewerLabels.d.ts +3 -1
- package/dist/{cose-bilkent-JH36ORCC-Pi0l3C5o.js → cose-bilkent-JH36ORCC-BQWfGE1G.js} +1 -1
- package/dist/{cose-bilkent-JH36ORCC-Vi9pHFwc.cjs → cose-bilkent-JH36ORCC-BaEdcRlX.cjs} +1 -1
- package/dist/css/zenn-content.css +0 -40
- package/dist/{cynefinDiagram-TSTJHNR4-CIh03JTU.js → cynefinDiagram-TSTJHNR4-CTDDSUz7.js} +47 -47
- package/dist/{cynefinDiagram-TSTJHNR4-BQ2k9Z6b.cjs → cynefinDiagram-TSTJHNR4-DPQl09kC.cjs} +1 -1
- package/dist/{dagre-VKFMJZFB-cINcPwV3.js → dagre-VKFMJZFB-BMRdJgZy.js} +27 -27
- package/dist/{dagre-VKFMJZFB-DI2wSrAy.cjs → dagre-VKFMJZFB-DZ4E-Szs.cjs} +1 -1
- package/dist/{diagram-FQU43EPY-BonrBTG_.js → diagram-FQU43EPY-CmEpNw5i.js} +42 -42
- package/dist/{diagram-FQU43EPY-B6iUH2l5.cjs → diagram-FQU43EPY-mK9YHIy1.cjs} +1 -1
- package/dist/{diagram-G47NLZAW-CY6mWS2R.cjs → diagram-G47NLZAW-BX8Lj_uD.cjs} +1 -1
- package/dist/{diagram-G47NLZAW-5N876QQA.js → diagram-G47NLZAW-eJRQFjAg.js} +83 -83
- package/dist/{diagram-NH7WQ7WH-x3SaRfd6.cjs → diagram-NH7WQ7WH-3r1_3TrC.cjs} +1 -1
- package/dist/{diagram-NH7WQ7WH-LFuTbHxY.js → diagram-NH7WQ7WH-BOOj_4-N.js} +18 -18
- package/dist/{diagram-OA4YK3LP-B9mVw8cB.cjs → diagram-OA4YK3LP-CkDJzLOy.cjs} +1 -1
- package/dist/{diagram-OA4YK3LP-Cinpbl0B.js → diagram-OA4YK3LP-DnDIHtcW.js} +61 -61
- package/dist/{diagram-WEI45ONY-HPCHpafe.js → diagram-WEI45ONY-BHpuPTt-.js} +21 -21
- package/dist/{diagram-WEI45ONY-BRYVUhRr.cjs → diagram-WEI45ONY-BpCCo_Ty.cjs} +1 -1
- package/dist/{ebnfDiagram-CCIWWBDH-oLOdtH39.js → ebnfDiagram-CCIWWBDH-BDLB-AVF.js} +5 -5
- package/dist/{ebnfDiagram-CCIWWBDH-DhFlIi0a.cjs → ebnfDiagram-CCIWWBDH-CfdalXdM.cjs} +1 -1
- package/dist/embeds/frames.d.ts +4 -0
- package/dist/embeds/linkCards.d.ts +48 -0
- package/dist/embeds/placeholder.d.ts +15 -0
- package/dist/embeds/providers.d.ts +73 -0
- package/dist/embeds/testing.cjs +1 -0
- package/dist/embeds/testing.d.ts +7 -0
- package/dist/embeds/testing.js +67 -0
- package/dist/embeds.cjs +1 -0
- package/dist/embeds.d.ts +4 -0
- package/dist/embeds.js +73 -0
- package/dist/{erDiagram-Q63AITRT-DCCFR1Ai.cjs → erDiagram-Q63AITRT-CviOyQsx.cjs} +1 -1
- package/dist/{erDiagram-Q63AITRT-CCtzpK78.js → erDiagram-Q63AITRT-DZlcgZfp.js} +9 -9
- package/dist/{extractHeadings-CGJexznE.js → extractHeadings-CtiYkq2z.js} +5482 -5431
- package/dist/extractHeadings-D1A8WzVy.cjs +311 -0
- package/dist/flowDiagram-23GEKE2U-C_FW0q38.js +7 -0
- package/dist/flowDiagram-23GEKE2U-Cb0U58EU.cjs +1 -0
- package/dist/{ganttDiagram-NO4QXBWP-C9RPyo4r.cjs → ganttDiagram-NO4QXBWP-CJa-hKPU.cjs} +1 -1
- package/dist/{ganttDiagram-NO4QXBWP-Dfi3nINO.js → ganttDiagram-NO4QXBWP-DO0HAbYg.js} +69 -69
- package/dist/{gitGraphDiagram-IHSO6WYX-CjAqPhww.js → gitGraphDiagram-IHSO6WYX-CXStgPQs.js} +38 -38
- package/dist/{gitGraphDiagram-IHSO6WYX-mT3NNT7T.cjs → gitGraphDiagram-IHSO6WYX-CXcPHbkt.cjs} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.client.cjs +1 -1
- package/dist/index.client.d.ts +1 -10
- package/dist/index.client.js +41 -49
- package/dist/index.js +41 -49
- package/dist/index.server.cjs +1 -1
- package/dist/index.server.d.ts +1 -2
- package/dist/index.server.js +593 -191
- package/dist/{infoDiagram-FWYZ7A6U-0Co9BitR.cjs → infoDiagram-FWYZ7A6U-BByoHihL.cjs} +1 -1
- package/dist/{infoDiagram-FWYZ7A6U-BXWQ9Vy4.js → infoDiagram-FWYZ7A6U-K0__ySEG.js} +1 -1
- package/dist/{ishikawaDiagram-FXEZZL3T-CZp5P1WE.js → ishikawaDiagram-FXEZZL3T-C8QlwQP1.js} +35 -35
- package/dist/{ishikawaDiagram-FXEZZL3T-BKqUBw1i.cjs → ishikawaDiagram-FXEZZL3T-DZOMdeTI.cjs} +1 -1
- package/dist/{journeyDiagram-5HDEW3XC-DYVTgOOE.js → journeyDiagram-5HDEW3XC-CZ9PFNNN.js} +39 -39
- package/dist/{journeyDiagram-5HDEW3XC-CeumPQ1I.cjs → journeyDiagram-5HDEW3XC-RvC77rKo.cjs} +1 -1
- package/dist/{kanban-definition-HUTT4EX6-Cg5KnsE9.cjs → kanban-definition-HUTT4EX6-BL1jihGl.cjs} +1 -1
- package/dist/{kanban-definition-HUTT4EX6-CnleRy80.js → kanban-definition-HUTT4EX6-Q12F4vHx.js} +123 -123
- package/dist/{linear-Cf8i6Rsk.js → linear-LWjATjog.js} +32 -32
- package/dist/{linear-qqwu6T0F.cjs → linear-lDvPoqlB.cjs} +1 -1
- package/dist/linkCardServer/addressGuard.server.d.ts +25 -0
- package/dist/linkCardServer/htmlEncoding.server.d.ts +6 -0
- package/dist/linkCardServer/linkCardHandler.server.d.ts +7 -0
- package/dist/linkCardServer/metadataCache.server.d.ts +5 -0
- package/dist/linkCardServer/pageFetch.server.d.ts +37 -0
- package/dist/linkCardServer/pageMetadata.server.d.ts +11 -0
- package/dist/linkCards-1JxY8wdm.js +48 -0
- package/dist/linkCards-Bjd_vW39.cjs +1 -0
- package/dist/markdown.css +1 -1
- package/dist/{mindmap-definition-LN4V7U3C-lBin9VOm.js → mindmap-definition-LN4V7U3C-CM1XvwJX.js} +33 -33
- package/dist/{mindmap-definition-LN4V7U3C-DfFWeFph.cjs → mindmap-definition-LN4V7U3C-TVYKONRm.cjs} +1 -1
- package/dist/{pegDiagram-2B236MQR-BiD21lOj.js → pegDiagram-2B236MQR-Dlrnikqd.js} +5 -5
- package/dist/{pegDiagram-2B236MQR-Cf1f-3yi.cjs → pegDiagram-2B236MQR-a9Up0ERY.cjs} +1 -1
- package/dist/{pieDiagram-ENE6RG2P-jwhVsZgX.cjs → pieDiagram-ENE6RG2P-ClakmSma.cjs} +1 -1
- package/dist/{pieDiagram-ENE6RG2P-BqZb6gaV.js → pieDiagram-ENE6RG2P-WYrEJp8U.js} +58 -58
- package/dist/providers-Bxr2Wb-j.cjs +1 -0
- package/dist/providers-Drq7MT_K.js +209 -0
- package/dist/{quadrantDiagram-ABIIQ3AL-CNe9fRLO.js → quadrantDiagram-ABIIQ3AL-BkgMVDaX.js} +48 -48
- package/dist/{quadrantDiagram-ABIIQ3AL-sO_sIA7b.cjs → quadrantDiagram-ABIIQ3AL-Cb01YcqR.cjs} +1 -1
- package/dist/{railroadDiagram-RFXS5EU6-Dkc8k3e9.cjs → railroadDiagram-RFXS5EU6-Bob4WSMz.cjs} +1 -1
- package/dist/{railroadDiagram-RFXS5EU6-53YTkJrs.js → railroadDiagram-RFXS5EU6-RfCtZGUR.js} +3 -3
- package/dist/{requirementDiagram-TGXJPOKE-C0GMlJO4.cjs → requirementDiagram-TGXJPOKE-BP5h9mCj.cjs} +1 -1
- package/dist/{requirementDiagram-TGXJPOKE-D8Gz7jzA.js → requirementDiagram-TGXJPOKE-C1yJPMp1.js} +3 -3
- package/dist/{sankeyDiagram-HTMAVEWB-CEC0GaCg.js → sankeyDiagram-HTMAVEWB-D5G9Dcmr.js} +67 -67
- package/dist/{sankeyDiagram-HTMAVEWB-Bw9J2Ay2.cjs → sankeyDiagram-HTMAVEWB-shq9WK4t.cjs} +1 -1
- package/dist/{sequenceDiagram-DBY2YBRQ-CKb4m3I0.js → sequenceDiagram-DBY2YBRQ-8EJMQxiB.js} +47 -47
- package/dist/{sequenceDiagram-DBY2YBRQ-BuqPCreB.cjs → sequenceDiagram-DBY2YBRQ-BRxcK5-5.cjs} +1 -1
- package/dist/{simple-logger-DZxBpX7v.cjs → simple-logger-9yf7ypyB.cjs} +1 -1
- package/dist/{simple-logger-i94ikRyH.js → simple-logger-DwH1YQvq.js} +3 -1
- package/dist/{sizeCapture-X5ZJPWSS-Dm3rsxXw.cjs → sizeCapture-X5ZJPWSS-BtBRJO2R.cjs} +1 -1
- package/dist/{sizeCapture-X5ZJPWSS-CotnTNAA.js → sizeCapture-X5ZJPWSS-DJG85IuR.js} +1 -1
- package/dist/{stateDiagram-2N3HPSRC-GWEIP-C9.js → stateDiagram-2N3HPSRC-CAd-NU-f.js} +22 -22
- package/dist/{stateDiagram-2N3HPSRC-5Y-OlePe.cjs → stateDiagram-2N3HPSRC-Czgkv_ey.cjs} +1 -1
- package/dist/{stateDiagram-v2-6OUMAXLB-v77D3Qyf.cjs → stateDiagram-v2-6OUMAXLB-BNP5Lx0Y.cjs} +1 -1
- package/dist/{stateDiagram-v2-6OUMAXLB-BZFV8swJ.js → stateDiagram-v2-6OUMAXLB-x_Zps-d5.js} +2 -2
- package/dist/styles/markdown.css +1 -1
- package/dist/{swimlanes-5IMT3BWC-B1hLl8Ph.cjs → swimlanes-5IMT3BWC-CfdkDd3q.cjs} +1 -1
- package/dist/{swimlanes-5IMT3BWC-DujAOwAt.js → swimlanes-5IMT3BWC-D8brzzxb.js} +313 -313
- package/dist/{swimlanesDiagram-G3AALYLV-B-5z3jDg.js → swimlanesDiagram-G3AALYLV-Bc9-lR2e.js} +2 -2
- package/dist/{swimlanesDiagram-G3AALYLV-Cklgsxbg.cjs → swimlanesDiagram-G3AALYLV-dvJpSdGV.cjs} +1 -1
- package/dist/{timeline-definition-FHXFAJF6-B2m-aQLI.cjs → timeline-definition-FHXFAJF6-BSqACati.cjs} +1 -1
- package/dist/{timeline-definition-FHXFAJF6-Fmzt_lvR.js → timeline-definition-FHXFAJF6-CKW3NJOF.js} +34 -34
- package/dist/utils/simple-logger.d.ts +1 -0
- package/dist/{vennDiagram-L72KCM5P-rL7UDYbl.cjs → vennDiagram-L72KCM5P-ChKxsFyJ.cjs} +1 -1
- package/dist/{vennDiagram-L72KCM5P-zIXK42Cx.js → vennDiagram-L72KCM5P-vPmq984y.js} +92 -92
- package/dist/{wardleyDiagram-EHGQE667-pTeeZ0uM.js → wardleyDiagram-EHGQE667-CwN9zwBX.js} +11 -11
- package/dist/{wardleyDiagram-EHGQE667-CNLieFen.cjs → wardleyDiagram-EHGQE667-CxzlR7km.cjs} +1 -1
- package/dist/{xychartDiagram-FW5EYKEG-B6UdSSVZ.js → xychartDiagram-FW5EYKEG-DBSKTLuc.js} +37 -37
- package/dist/{xychartDiagram-FW5EYKEG-CD5ik4HK.cjs → xychartDiagram-FW5EYKEG-wJqYRInm.cjs} +1 -1
- package/package.json +25 -9
- package/dist/arc-DH6k2JIR.js +0 -83
- package/dist/channel-DoH_tsOQ.js +0 -5
- package/dist/components/mdastNodes/BlockLinkNode.d.ts +0 -5
- package/dist/components/mdastNodes/RichLinkCard.d.ts +0 -8
- package/dist/components/mdastNodes/TwitterEmbedNode.d.ts +0 -25
- package/dist/components/mdastNodes/YouTubeEmbedNode.d.ts +0 -6
- package/dist/extractHeadings-lDHB2sBb.cjs +0 -310
- package/dist/flowDiagram-23GEKE2U-ORytlvmX.js +0 -7
- package/dist/flowDiagram-23GEKE2U-h2WZTCCn.cjs +0 -1
- package/dist/plugins/createIntentTweetLink.d.ts +0 -10
- package/dist/plugins/extractYouTubeVideoId.d.ts +0 -5
- package/dist/plugins/fetchSiteMetadata.d.ts +0 -9
- package/dist/plugins/remark-auto-heading-id.d.ts +0 -2
- package/dist/plugins/remark-block-link-metadata.d.ts +0 -23
- package/dist/plugins/remark-block-link.d.ts +0 -12
- package/dist/plugins/remark-twitter-embed.d.ts +0 -20
- package/dist/plugins/remark-youtube-embed.d.ts +0 -14
- package/dist/utils/getFaviconUrl.d.ts +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./extractHeadings-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./extractHeadings-D1A8WzVy.cjs"),s=require("./cynefin-VYW2F7L2-MpAliYy9.cjs");var i={parse:e.__name(async r=>{const a=await s.parse("info",r);e.log.debug(a)},"parse")},o={version:"11.16.0"},g=e.__name(()=>o.version,"getVersion"),d={getVersion:g},v=e.__name((r,a,n)=>{e.log.debug(`rendering info diagram
|
|
2
2
|
`+r);const t=e.selectSvgElement(a);e.configureSvgSize(t,100,400,!0),t.append("g").append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size",32).style("text-anchor","middle").text(`v${n}`)},"draw"),c={draw:v},p={parser:i,db:d,renderer:c};exports.diagram=p;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as e,
|
|
1
|
+
import { _ as e, O as s, ak as o, Q as i } from "./extractHeadings-CtiYkq2z.js";
|
|
2
2
|
import { p as g } from "./cynefin-VYW2F7L2-Bkk-F_Js.js";
|
|
3
3
|
var p = {
|
|
4
4
|
parse: /* @__PURE__ */ e(async (r) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as o,
|
|
1
|
+
import { _ as o, J as ot, ao as ut, ak as dt, aZ as yt, ab as ft, Y as pt, a5 as it, A as gt, G as kt, z as mt, y as wt, a6 as _t, Q as bt } from "./extractHeadings-CtiYkq2z.js";
|
|
2
2
|
var J = (function() {
|
|
3
3
|
var e = /* @__PURE__ */ o(function(T, t, s, i) {
|
|
4
4
|
for (s = s || {}, i = T.length; i--; s[T[i]] = t) ;
|
|
@@ -35,29 +35,29 @@ var J = (function() {
|
|
|
35
35
|
}
|
|
36
36
|
}, "parseError"),
|
|
37
37
|
parse: /* @__PURE__ */ o(function(t) {
|
|
38
|
-
var s = this, i = [0], c = [], p = [null], n = [], v = this.table, w = "", I = 0, $ = 0, L = 2, A = 1,
|
|
38
|
+
var s = this, i = [0], c = [], p = [null], n = [], v = this.table, w = "", I = 0, $ = 0, L = 2, A = 1, C = n.slice.call(arguments, 1), b = Object.create(this.lexer), S = { yy: {} };
|
|
39
39
|
for (var P in this.yy)
|
|
40
40
|
Object.prototype.hasOwnProperty.call(this.yy, P) && (S.yy[P] = this.yy[P]);
|
|
41
41
|
b.setInput(t, S.yy), S.yy.lexer = b, S.yy.parser = this, typeof b.yylloc > "u" && (b.yylloc = {});
|
|
42
42
|
var R = b.yylloc;
|
|
43
43
|
n.push(R);
|
|
44
|
-
var
|
|
44
|
+
var G = b.options && b.options.ranges;
|
|
45
45
|
typeof S.yy.parseError == "function" ? this.parseError = S.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
|
|
46
|
-
function
|
|
46
|
+
function X(B) {
|
|
47
47
|
i.length = i.length - 2 * B, p.length = p.length - B, n.length = n.length - B;
|
|
48
48
|
}
|
|
49
|
-
o(
|
|
49
|
+
o(X, "popStack");
|
|
50
50
|
function tt() {
|
|
51
51
|
var B;
|
|
52
52
|
return B = c.pop() || b.lex() || A, typeof B != "number" && (B instanceof Array && (c = B, B = c.pop()), B = s.symbols_[B] || B), B;
|
|
53
53
|
}
|
|
54
54
|
o(tt, "lex");
|
|
55
|
-
for (var M, W, N, K,
|
|
55
|
+
for (var M, W, N, K, z = {}, U, V, et, Z; ; ) {
|
|
56
56
|
if (W = i[i.length - 1], this.defaultActions[W] ? N = this.defaultActions[W] : ((M === null || typeof M > "u") && (M = tt()), N = v[W] && v[W][M]), typeof N > "u" || !N.length || !N[0]) {
|
|
57
57
|
var Q = "";
|
|
58
58
|
Z = [];
|
|
59
|
-
for (
|
|
60
|
-
this.terminals_[
|
|
59
|
+
for (U in v[W])
|
|
60
|
+
this.terminals_[U] && U > L && Z.push("'" + this.terminals_[U] + "'");
|
|
61
61
|
b.showPosition ? Q = "Parse error on line " + (I + 1) + `:
|
|
62
62
|
` + b.showPosition() + `
|
|
63
63
|
Expecting ` + Z.join(", ") + ", got '" + (this.terminals_[M] || M) + "'" : Q = "Parse error on line " + (I + 1) + ": Unexpected " + (M == A ? "end of input" : "'" + (this.terminals_[M] || M) + "'"), this.parseError(Q, {
|
|
@@ -75,15 +75,15 @@ Expecting ` + Z.join(", ") + ", got '" + (this.terminals_[M] || M) + "'" : Q = "
|
|
|
75
75
|
i.push(M), p.push(b.yytext), n.push(b.yylloc), i.push(N[1]), M = null, $ = b.yyleng, w = b.yytext, I = b.yylineno, R = b.yylloc;
|
|
76
76
|
break;
|
|
77
77
|
case 2:
|
|
78
|
-
if (
|
|
79
|
-
first_line: n[n.length - (
|
|
78
|
+
if (V = this.productions_[N[1]][1], z.$ = p[p.length - V], z._$ = {
|
|
79
|
+
first_line: n[n.length - (V || 1)].first_line,
|
|
80
80
|
last_line: n[n.length - 1].last_line,
|
|
81
|
-
first_column: n[n.length - (
|
|
81
|
+
first_column: n[n.length - (V || 1)].first_column,
|
|
82
82
|
last_column: n[n.length - 1].last_column
|
|
83
|
-
},
|
|
84
|
-
n[n.length - (
|
|
83
|
+
}, G && (z._$.range = [
|
|
84
|
+
n[n.length - (V || 1)].range[0],
|
|
85
85
|
n[n.length - 1].range[1]
|
|
86
|
-
]), K = this.performAction.apply(
|
|
86
|
+
]), K = this.performAction.apply(z, [
|
|
87
87
|
w,
|
|
88
88
|
$,
|
|
89
89
|
I,
|
|
@@ -91,9 +91,9 @@ Expecting ` + Z.join(", ") + ", got '" + (this.terminals_[M] || M) + "'" : Q = "
|
|
|
91
91
|
N[1],
|
|
92
92
|
p,
|
|
93
93
|
n
|
|
94
|
-
].concat(
|
|
94
|
+
].concat(C)), typeof K < "u")
|
|
95
95
|
return K;
|
|
96
|
-
|
|
96
|
+
V && (i = i.slice(0, -1 * V * 2), p = p.slice(0, -1 * V), n = n.slice(0, -1 * V)), i.push(this.productions_[N[1]][0]), p.push(z.$), n.push(z._$), et = v[i[i.length - 2]][i[i.length - 1]], i.push(et);
|
|
97
97
|
break;
|
|
98
98
|
case 3:
|
|
99
99
|
return !0;
|
|
@@ -359,9 +359,9 @@ var xt = J, H, vt = (H = class {
|
|
|
359
359
|
} : void 0, s = `ishikawa-arrow-${h}`;
|
|
360
360
|
g || E.append("defs").append("marker").attr("id", s).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");
|
|
361
361
|
let i = 0, c = F;
|
|
362
|
-
const p = g ? void 0 :
|
|
362
|
+
const p = g ? void 0 : j(E, i, c, i, c, "ishikawa-spine");
|
|
363
363
|
if (Lt(E, i, c, y.text, k, t), !_.length) {
|
|
364
|
-
g &&
|
|
364
|
+
g && j(E, i, c, i, c, "ishikawa-spine", t), at(O, x, D);
|
|
365
365
|
return;
|
|
366
366
|
}
|
|
367
367
|
i -= 20;
|
|
@@ -371,20 +371,20 @@ var xt = J, H, vt = (H = class {
|
|
|
371
371
|
const S = F * 2, P = F * 0.3;
|
|
372
372
|
L = Math.max(P, S * (w.total / $)), A = Math.max(P, S * (I.total / $));
|
|
373
373
|
}
|
|
374
|
-
const
|
|
375
|
-
L = Math.max(L, w.max *
|
|
374
|
+
const C = k * 2;
|
|
375
|
+
L = Math.max(L, w.max * C), A = Math.max(A, I.max * C), c = Math.max(L, F), p && p.attr("y1", c).attr("y2", c), E.select(".ishikawa-head-group").attr("transform", `translate(0,${c})`);
|
|
376
376
|
const b = Math.ceil(_.length / 2);
|
|
377
377
|
for (let S = 0; S < b; S++) {
|
|
378
378
|
const P = E.append("g").attr("class", "ishikawa-pair");
|
|
379
|
-
for (const [R,
|
|
379
|
+
for (const [R, G, X] of [
|
|
380
380
|
[_[S * 2], -1, L],
|
|
381
381
|
[_[S * 2 + 1], 1, A]
|
|
382
382
|
])
|
|
383
|
-
R && Pt(P, R, i, c,
|
|
384
|
-
i = P.selectAll("text").nodes().reduce((R,
|
|
383
|
+
R && Pt(P, R, i, c, G, X, k, t);
|
|
384
|
+
i = P.selectAll("text").nodes().reduce((R, G) => Math.min(R, G.getBBox().x), 1 / 0);
|
|
385
385
|
}
|
|
386
386
|
if (g)
|
|
387
|
-
|
|
387
|
+
j(E, i, c, 0, c, "ishikawa-spine", t);
|
|
388
388
|
else {
|
|
389
389
|
p.attr("x1", i);
|
|
390
390
|
const S = `url(#${s})`;
|
|
@@ -401,7 +401,7 @@ var xt = J, H, vt = (H = class {
|
|
|
401
401
|
{ total: 0, max: 0 }
|
|
402
402
|
);
|
|
403
403
|
}, "sideStats"), Lt = /* @__PURE__ */ o((e, h, r, a, l, y) => {
|
|
404
|
-
const f = Math.max(6, Math.floor(110 / (l * 0.6))), d = e.append("g").attr("class", "ishikawa-head-group").attr("transform", `translate(${h},${r})`), m =
|
|
404
|
+
const f = Math.max(6, Math.floor(110 / (l * 0.6))), d = e.append("g").attr("class", "ishikawa-head-group").attr("transform", `translate(${h},${r})`), m = Y(
|
|
405
405
|
d,
|
|
406
406
|
ct(a, f),
|
|
407
407
|
0,
|
|
@@ -440,7 +440,7 @@ var xt = J, H, vt = (H = class {
|
|
|
440
440
|
}, "walk");
|
|
441
441
|
return l(e, -1, 2), { entries: r, yOrder: a };
|
|
442
442
|
}, "flattenTree"), Mt = /* @__PURE__ */ o((e, h, r, a, l, y, f) => {
|
|
443
|
-
const d = e.append("g").attr("class", "ishikawa-label-group"), u =
|
|
443
|
+
const d = e.append("g").attr("class", "ishikawa-label-group"), u = Y(
|
|
444
444
|
d,
|
|
445
445
|
h,
|
|
446
446
|
r,
|
|
@@ -484,7 +484,7 @@ var xt = J, H, vt = (H = class {
|
|
|
484
484
|
e.append(() => O);
|
|
485
485
|
}, "drawArrowMarker"), Pt = /* @__PURE__ */ o((e, h, r, a, l, y, f, d) => {
|
|
486
486
|
const m = h.children ?? [], u = y * (m.length ? 1 : 0.2), k = -st * u, g = nt * u * l, _ = r + k, x = a + g;
|
|
487
|
-
if (
|
|
487
|
+
if (j(e, r, a, _, x, "ishikawa-branch", d), d && q(e, r, a, r - _, a - x, d), Mt(e, h.text, _, x, l, f, d), !m.length)
|
|
488
488
|
return;
|
|
489
489
|
const { entries: D, yOrder: O } = Tt(m, l), E = D.length, T = new Array(E);
|
|
490
490
|
for (const [p, n] of O.entries())
|
|
@@ -503,11 +503,11 @@ var xt = J, H, vt = (H = class {
|
|
|
503
503
|
const v = T[p], w = t.get(n.parentIndex), I = e.append("g").attr("class", "ishikawa-sub-group");
|
|
504
504
|
let $ = 0, L = 0, A = 0;
|
|
505
505
|
if (n.depth % 2 === 0) {
|
|
506
|
-
const
|
|
507
|
-
$ = lt(w.x0, w.x1,
|
|
506
|
+
const C = w.y1 - w.y0;
|
|
507
|
+
$ = lt(w.x0, w.x1, C ? (v - w.y0) / C : 0.5), L = v, A = $ - (n.childCount > 0 ? Et + n.childCount * At : $t), j(I, $, v, A, v, "ishikawa-sub-branch", d), d && q(I, $, v, 1, 0, d), Y(I, n.text, A, v, "ishikawa-label align", "end", f);
|
|
508
508
|
} else {
|
|
509
|
-
const
|
|
510
|
-
$ = lt(w.x0, w.x1, (w.childCount -
|
|
509
|
+
const C = w.childrenDrawn++;
|
|
510
|
+
$ = lt(w.x0, w.x1, (w.childCount - C) / (w.childCount + 1)), L = w.y0, A = $ + s * ((v - L) / i), j(I, $, L, A, v, "ishikawa-sub-branch", d), d && q(I, $, L, $ - A, L - v, d), Y(I, n.text, A, v, c, "end", f);
|
|
511
511
|
}
|
|
512
512
|
n.childCount > 0 && t.set(p, {
|
|
513
513
|
x0: $,
|
|
@@ -528,12 +528,12 @@ var xt = J, H, vt = (H = class {
|
|
|
528
528
|
}
|
|
529
529
|
return r.join(`
|
|
530
530
|
`);
|
|
531
|
-
}, "wrapText"),
|
|
531
|
+
}, "wrapText"), Y = /* @__PURE__ */ o((e, h, r, a, l, y, f) => {
|
|
532
532
|
const d = Bt(h), m = f * 1.05, u = e.append("text").attr("class", l).attr("text-anchor", y).attr("x", r).attr("y", a - (d.length - 1) * m / 2);
|
|
533
533
|
for (const [k, g] of d.entries())
|
|
534
534
|
u.append("tspan").attr("x", r).attr("dy", k === 0 ? 0 : m).text(g);
|
|
535
535
|
return u;
|
|
536
|
-
}, "drawMultilineText"), lt = /* @__PURE__ */ o((e, h, r) => e + (h - e) * r, "lerp"),
|
|
536
|
+
}, "drawMultilineText"), lt = /* @__PURE__ */ o((e, h, r) => e + (h - e) * r, "lerp"), j = /* @__PURE__ */ o((e, h, r, a, l, y, f) => {
|
|
537
537
|
if (f) {
|
|
538
538
|
const d = f.roughSvg.line(h, r, a, l, {
|
|
539
539
|
roughness: 1.5,
|
|
@@ -608,7 +608,7 @@ var xt = J, H, vt = (H = class {
|
|
|
608
608
|
.ishikawa .ishikawa-label.down {
|
|
609
609
|
dominant-baseline: hanging;
|
|
610
610
|
}
|
|
611
|
-
`, "getStyles"), Ot = Dt,
|
|
611
|
+
`, "getStyles"), Ot = Dt, Vt = {
|
|
612
612
|
parser: xt,
|
|
613
613
|
get db() {
|
|
614
614
|
return new vt();
|
|
@@ -617,5 +617,5 @@ var xt = J, H, vt = (H = class {
|
|
|
617
617
|
styles: Ot
|
|
618
618
|
};
|
|
619
619
|
export {
|
|
620
|
-
|
|
620
|
+
Vt as diagram
|
|
621
621
|
};
|
package/dist/{ishikawaDiagram-FXEZZL3T-BKqUBw1i.cjs → ishikawaDiagram-FXEZZL3T-DZOMdeTI.cjs}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./extractHeadings-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./extractHeadings-D1A8WzVy.cjs");var J=(function(){var i=e.__name(function(T,t,s,n){for(s=s||{},n=T.length;n--;s[T[n]]=t);return s},"o"),h=[1,4],l=[1,14],r=[1,12],o=[1,13],y=[6,7,8],f=[1,20],d=[1,18],m=[1,19],u=[6,7,11],g=[1,6,13,14],_=[1,23],w=[1,24],x=[1,6,7,11,13,14],D={trace:e.__name(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ishikawa:4,spaceLines:5,SPACELINE:6,NL:7,ISHIKAWA:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,TEXT:14,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"ISHIKAWA",11:"EOF",13:"SPACELIST",14:"TEXT"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,1],[12,1],[12,1]],performAction:e.__name(function(t,s,n,c,p,a,v){var k=a.length-1;switch(p){case 6:case 7:return c;case 15:c.addNode(a[k-1].length,a[k].trim());break;case 16:c.addNode(0,a[k].trim());break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:h},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:h},{6:l,7:[1,10],9:9,12:11,13:r,14:o},i(y,[2,3]),{1:[2,2]},i(y,[2,4]),i(y,[2,5]),{1:[2,6],6:l,12:15,13:r,14:o},{6:l,9:16,12:11,13:r,14:o},{6:f,7:d,10:17,11:m},i(u,[2,18],{14:[1,21]}),i(u,[2,16]),i(u,[2,17]),{6:f,7:d,10:22,11:m},{1:[2,7],6:l,12:15,13:r,14:o},i(g,[2,14],{7:_,11:w}),i(x,[2,8]),i(x,[2,9]),i(x,[2,10]),i(u,[2,15]),i(g,[2,13],{7:_,11:w}),i(x,[2,11]),i(x,[2,12])],defaultActions:{2:[2,1],6:[2,2]},parseError:e.__name(function(t,s){if(s.recoverable)this.trace(t);else{var n=new Error(t);throw n.hash=s,n}},"parseError"),parse:e.__name(function(t){var s=this,n=[0],c=[],p=[null],a=[],v=this.table,k="",I=0,$=0,L=2,A=1,C=a.slice.call(arguments,1),b=Object.create(this.lexer),S={yy:{}};for(var P in this.yy)Object.prototype.hasOwnProperty.call(this.yy,P)&&(S.yy[P]=this.yy[P]);b.setInput(t,S.yy),S.yy.lexer=b,S.yy.parser=this,typeof b.yylloc>"u"&&(b.yylloc={});var R=b.yylloc;a.push(R);var G=b.options&&b.options.ranges;typeof S.yy.parseError=="function"?this.parseError=S.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Y(B){n.length=n.length-2*B,p.length=p.length-B,a.length=a.length-B}e.__name(Y,"popStack");function tt(){var B;return B=c.pop()||b.lex()||A,typeof B!="number"&&(B instanceof Array&&(c=B,B=c.pop()),B=s.symbols_[B]||B),B}e.__name(tt,"lex");for(var M,W,N,q,j={},U,V,et,Z;;){if(W=n[n.length-1],this.defaultActions[W]?N=this.defaultActions[W]:((M===null||typeof M>"u")&&(M=tt()),N=v[W]&&v[W][M]),typeof N>"u"||!N.length||!N[0]){var K="";Z=[];for(U in v[W])this.terminals_[U]&&U>L&&Z.push("'"+this.terminals_[U]+"'");b.showPosition?K="Parse error on line "+(I+1)+`:
|
|
2
2
|
`+b.showPosition()+`
|
|
3
3
|
Expecting `+Z.join(", ")+", got '"+(this.terminals_[M]||M)+"'":K="Parse error on line "+(I+1)+": Unexpected "+(M==A?"end of input":"'"+(this.terminals_[M]||M)+"'"),this.parseError(K,{text:b.match,token:this.terminals_[M]||M,line:b.yylineno,loc:R,expected:Z})}if(N[0]instanceof Array&&N.length>1)throw new Error("Parse Error: multiple actions possible at state: "+W+", token: "+M);switch(N[0]){case 1:n.push(M),p.push(b.yytext),a.push(b.yylloc),n.push(N[1]),M=null,$=b.yyleng,k=b.yytext,I=b.yylineno,R=b.yylloc;break;case 2:if(V=this.productions_[N[1]][1],j.$=p[p.length-V],j._$={first_line:a[a.length-(V||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(V||1)].first_column,last_column:a[a.length-1].last_column},G&&(j._$.range=[a[a.length-(V||1)].range[0],a[a.length-1].range[1]]),q=this.performAction.apply(j,[k,$,I,S.yy,N[1],p,a].concat(C)),typeof q<"u")return q;V&&(n=n.slice(0,-1*V*2),p=p.slice(0,-1*V),a=a.slice(0,-1*V)),n.push(this.productions_[N[1]][0]),p.push(j.$),a.push(j._$),et=v[n[n.length-2]][n[n.length-1]],n.push(et);break;case 3:return!0}}return!0},"parse")},O=(function(){var T={EOF:1,parseError:e.__name(function(s,n){if(this.yy.parser)this.yy.parser.parseError(s,n);else throw new Error(s)},"parseError"),setInput:e.__name(function(t,s){return this.yy=s||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:e.__name(function(){var t=this._input[0];this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t;var s=t.match(/(?:\r\n?|\n).*/g);return s?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:e.__name(function(t){var s=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-s),this.offset-=s;var c=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var p=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===c.length?this.yylloc.first_column:0)+c[c.length-n.length].length-n[0].length:this.yylloc.first_column-s},this.options.ranges&&(this.yylloc.range=[p[0],p[0]+this.yyleng-s]),this.yyleng=this.yytext.length,this},"unput"),more:e.__name(function(){return this._more=!0,this},"more"),reject:e.__name(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:e.__name(function(t){this.unput(this.match.slice(t))},"less"),pastInput:e.__name(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:e.__name(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:e.__name(function(){var t=this.pastInput(),s=new Array(t.length+1).join("-");return t+this.upcomingInput()+`
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { g as gt } from "./chunk-5VM5RSS4-
|
|
2
|
-
import { a as mt, g as lt, h as xt, d as kt } from "./chunk-32BRIVSS-
|
|
3
|
-
import {
|
|
4
|
-
import { d as it } from "./arc-
|
|
1
|
+
import { g as gt } from "./chunk-5VM5RSS4-OANQKmQE.js";
|
|
2
|
+
import { a as mt, g as lt, h as xt, d as kt } from "./chunk-32BRIVSS-94iTIA-u.js";
|
|
3
|
+
import { z as _t, y as vt, A as bt, G as wt, a6 as Tt, a5 as St, _ as s, J as R, K as H, Q as $t, ab as Mt } from "./extractHeadings-CtiYkq2z.js";
|
|
4
|
+
import { d as it } from "./arc-Bh12k776.js";
|
|
5
5
|
var U = (function() {
|
|
6
6
|
var t = /* @__PURE__ */ s(function(h, r, n, l) {
|
|
7
7
|
for (n = n || {}, l = h.length; l--; n[h[l]] = r) ;
|
|
@@ -61,7 +61,7 @@ var U = (function() {
|
|
|
61
61
|
}
|
|
62
62
|
}, "parseError"),
|
|
63
63
|
parse: /* @__PURE__ */ s(function(r) {
|
|
64
|
-
var n = this, l = [0], y = [], d = [null], c = [], v = this.table, k = "", C = 0,
|
|
64
|
+
var n = this, l = [0], y = [], d = [null], c = [], v = this.table, k = "", C = 0, Z = 0, yt = 2, D = 1, dt = c.slice.call(arguments, 1), _ = Object.create(this.lexer), I = { yy: {} };
|
|
65
65
|
for (var O in this.yy)
|
|
66
66
|
Object.prototype.hasOwnProperty.call(this.yy, O) && (I.yy[O] = this.yy[O]);
|
|
67
67
|
_.setInput(r, I.yy), I.yy.lexer = _, I.yy.parser = this, typeof _.yylloc > "u" && (_.yylloc = {});
|
|
@@ -78,27 +78,27 @@ var U = (function() {
|
|
|
78
78
|
return w = y.pop() || _.lex() || D, typeof w != "number" && (w instanceof Array && (y = w, w = y.pop()), w = n.symbols_[w] || w), w;
|
|
79
79
|
}
|
|
80
80
|
s(tt, "lex");
|
|
81
|
-
for (var b, A, T, q, F = {}, N, M, et,
|
|
81
|
+
for (var b, A, T, q, F = {}, N, M, et, z; ; ) {
|
|
82
82
|
if (A = l[l.length - 1], this.defaultActions[A] ? T = this.defaultActions[A] : ((b === null || typeof b > "u") && (b = tt()), T = v[A] && v[A][b]), typeof T > "u" || !T.length || !T[0]) {
|
|
83
|
-
var
|
|
84
|
-
|
|
83
|
+
var G = "";
|
|
84
|
+
z = [];
|
|
85
85
|
for (N in v[A])
|
|
86
|
-
this.terminals_[N] && N > yt &&
|
|
87
|
-
_.showPosition ?
|
|
86
|
+
this.terminals_[N] && N > yt && z.push("'" + this.terminals_[N] + "'");
|
|
87
|
+
_.showPosition ? G = "Parse error on line " + (C + 1) + `:
|
|
88
88
|
` + _.showPosition() + `
|
|
89
|
-
Expecting ` +
|
|
89
|
+
Expecting ` + z.join(", ") + ", got '" + (this.terminals_[b] || b) + "'" : G = "Parse error on line " + (C + 1) + ": Unexpected " + (b == D ? "end of input" : "'" + (this.terminals_[b] || b) + "'"), this.parseError(G, {
|
|
90
90
|
text: _.match,
|
|
91
91
|
token: this.terminals_[b] || b,
|
|
92
92
|
line: _.yylineno,
|
|
93
93
|
loc: Y,
|
|
94
|
-
expected:
|
|
94
|
+
expected: z
|
|
95
95
|
});
|
|
96
96
|
}
|
|
97
97
|
if (T[0] instanceof Array && T.length > 1)
|
|
98
98
|
throw new Error("Parse Error: multiple actions possible at state: " + A + ", token: " + b);
|
|
99
99
|
switch (T[0]) {
|
|
100
100
|
case 1:
|
|
101
|
-
l.push(b), d.push(_.yytext), c.push(_.yylloc), l.push(T[1]), b = null,
|
|
101
|
+
l.push(b), d.push(_.yytext), c.push(_.yylloc), l.push(T[1]), b = null, Z = _.yyleng, k = _.yytext, C = _.yylineno, Y = _.yylloc;
|
|
102
102
|
break;
|
|
103
103
|
case 2:
|
|
104
104
|
if (M = this.productions_[T[1]][1], F.$ = d[d.length - M], F._$ = {
|
|
@@ -111,7 +111,7 @@ Expecting ` + W.join(", ") + ", got '" + (this.terminals_[b] || b) + "'" : X = "
|
|
|
111
111
|
c[c.length - 1].range[1]
|
|
112
112
|
]), q = this.performAction.apply(F, [
|
|
113
113
|
k,
|
|
114
|
-
|
|
114
|
+
Z,
|
|
115
115
|
C,
|
|
116
116
|
I.yy,
|
|
117
117
|
T[1],
|
|
@@ -355,12 +355,12 @@ Expecting ` + W.join(", ") + ", got '" + (this.terminals_[b] || b) + "'" : X = "
|
|
|
355
355
|
return s(x, "Parser"), x.prototype = g, g.Parser = x, new x();
|
|
356
356
|
})();
|
|
357
357
|
U.parser = U;
|
|
358
|
-
var Et = U, V = "",
|
|
359
|
-
|
|
358
|
+
var Et = U, V = "", K = [], L = [], B = [], Ct = /* @__PURE__ */ s(function() {
|
|
359
|
+
K.length = 0, L.length = 0, V = "", B.length = 0, Mt();
|
|
360
360
|
}, "clear"), Pt = /* @__PURE__ */ s(function(t) {
|
|
361
|
-
V = t,
|
|
361
|
+
V = t, K.push(t);
|
|
362
362
|
}, "addSection"), It = /* @__PURE__ */ s(function() {
|
|
363
|
-
return
|
|
363
|
+
return K;
|
|
364
364
|
}, "getSections"), At = /* @__PURE__ */ s(function() {
|
|
365
365
|
let t = rt();
|
|
366
366
|
const e = 100;
|
|
@@ -552,7 +552,7 @@ var Et = U, V = "", Z = [], L = [], B = [], Ct = /* @__PURE__ */ s(function() {
|
|
|
552
552
|
${t.actor5 ? `fill: ${t.actor5}` : ""};
|
|
553
553
|
}
|
|
554
554
|
${gt()}
|
|
555
|
-
`, "getStyles"), jt = Bt,
|
|
555
|
+
`, "getStyles"), jt = Bt, Q = /* @__PURE__ */ s(function(t, e) {
|
|
556
556
|
return kt(t, e);
|
|
557
557
|
}, "drawRect"), Nt = /* @__PURE__ */ s(function(t, e) {
|
|
558
558
|
const f = t.append("circle").attr("cx", e.cx).attr("cy", e.cy).attr("class", "face").attr("r", 15).attr("stroke-width", 2).attr("overflow", "visible"), i = t.append("g");
|
|
@@ -576,17 +576,17 @@ var Et = U, V = "", Z = [], L = [], B = [], Ct = /* @__PURE__ */ s(function() {
|
|
|
576
576
|
return a.attr("cx", e.cx), a.attr("cy", e.cy), a.attr("class", "actor-" + e.pos), a.attr("fill", e.fill), a.attr("stroke", e.stroke), a.attr("r", e.r), a.class !== void 0 && a.attr("class", a.class), e.title !== void 0 && a.append("title").text(e.title), a;
|
|
577
577
|
}, "drawCircle"), ct = /* @__PURE__ */ s(function(t, e) {
|
|
578
578
|
return xt(t, e);
|
|
579
|
-
}, "drawText"),
|
|
579
|
+
}, "drawText"), zt = /* @__PURE__ */ s(function(t, e) {
|
|
580
580
|
function a(i, u, p, o, g) {
|
|
581
581
|
return i + "," + u + " " + (i + p) + "," + u + " " + (i + p) + "," + (u + o - g) + " " + (i + p - g * 1.2) + "," + (u + o) + " " + i + "," + (u + o);
|
|
582
582
|
}
|
|
583
583
|
s(a, "genPoints");
|
|
584
584
|
const f = t.append("polygon");
|
|
585
585
|
f.attr("points", a(e.x, e.y, 50, 20, 7)), f.attr("class", "labelBox"), e.y = e.y + e.labelMargin, e.x = e.x + 0.5 * e.labelMargin, ct(t, e);
|
|
586
|
-
}, "drawLabel"),
|
|
586
|
+
}, "drawLabel"), Wt = /* @__PURE__ */ s(function(t, e, a) {
|
|
587
587
|
const f = t.append("g"), i = lt();
|
|
588
588
|
i.x = e.x, i.y = e.y, i.fill = e.fill, i.width = a.width * e.taskCount + // width of the tasks
|
|
589
|
-
a.diagramMarginX * (e.taskCount - 1), i.height = a.height, i.class = "journey-section section-type-" + e.num, i.rx = 3, i.ry = 3,
|
|
589
|
+
a.diagramMarginX * (e.taskCount - 1), i.height = a.height, i.class = "journey-section section-type-" + e.num, i.rx = 3, i.ry = 3, Q(f, i), ht(a)(
|
|
590
590
|
e.text,
|
|
591
591
|
f,
|
|
592
592
|
i.x,
|
|
@@ -597,15 +597,15 @@ var Et = U, V = "", Z = [], L = [], B = [], Ct = /* @__PURE__ */ s(function() {
|
|
|
597
597
|
a,
|
|
598
598
|
e.colour
|
|
599
599
|
);
|
|
600
|
-
}, "drawSection"),
|
|
600
|
+
}, "drawSection"), J = -1, Ot = /* @__PURE__ */ s(function(t, e, a, f) {
|
|
601
601
|
const i = e.x + a.width / 2, u = t.append("g");
|
|
602
|
-
|
|
602
|
+
J++, u.append("line").attr("id", f + "-task" + J).attr("x1", i).attr("y1", e.y).attr("x2", i).attr("y2", 450).attr("class", "task-line").attr("stroke-width", "1px").attr("stroke-dasharray", "4 2").attr("stroke", "#666"), Nt(u, {
|
|
603
603
|
cx: i,
|
|
604
604
|
cy: 300 + (5 - e.score) * 30,
|
|
605
605
|
score: e.score
|
|
606
606
|
});
|
|
607
607
|
const o = lt();
|
|
608
|
-
o.x = e.x, o.y = e.y, o.fill = e.fill, o.width = a.width, o.height = a.height, o.class = "task task-type-" + e.num, o.rx = 3, o.ry = 3,
|
|
608
|
+
o.x = e.x, o.y = e.y, o.fill = e.fill, o.width = a.width, o.height = a.height, o.class = "task task-type-" + e.num, o.rx = 3, o.ry = 3, Q(u, o);
|
|
609
609
|
let g = e.x + 14;
|
|
610
610
|
e.people.forEach((m) => {
|
|
611
611
|
const x = e.actors[m].color, h = {
|
|
@@ -658,24 +658,24 @@ var Et = U, V = "", Z = [], L = [], B = [], Ct = /* @__PURE__ */ s(function() {
|
|
|
658
658
|
return i.textPlacement === "fo" ? a : i.textPlacement === "old" ? t : e;
|
|
659
659
|
};
|
|
660
660
|
})(), qt = /* @__PURE__ */ s(function(t, e) {
|
|
661
|
-
|
|
661
|
+
J = -1, t.append("defs").append("marker").attr("id", e + "-arrowhead").attr("refX", 5).attr("refY", 2).attr("markerWidth", 6).attr("markerHeight", 4).attr("orient", "auto").append("path").attr("d", "M 0,0 V 4 L6,2 Z");
|
|
662
662
|
}, "initGraphics"), j = {
|
|
663
|
-
drawRect:
|
|
663
|
+
drawRect: Q,
|
|
664
664
|
drawCircle: ot,
|
|
665
|
-
drawSection:
|
|
665
|
+
drawSection: Wt,
|
|
666
666
|
drawText: ct,
|
|
667
|
-
drawLabel:
|
|
667
|
+
drawLabel: zt,
|
|
668
668
|
drawTask: Ot,
|
|
669
669
|
drawBackgroundRect: Yt,
|
|
670
670
|
initGraphics: qt
|
|
671
|
-
},
|
|
671
|
+
}, Gt = /* @__PURE__ */ s(function(t) {
|
|
672
672
|
Object.keys(t).forEach(function(a) {
|
|
673
673
|
$[a] = t[a];
|
|
674
674
|
});
|
|
675
|
-
}, "setConf"), E = {},
|
|
675
|
+
}, "setConf"), E = {}, W = 0;
|
|
676
676
|
function ut(t) {
|
|
677
677
|
const e = R().journey, a = e.maxLabelWidth;
|
|
678
|
-
|
|
678
|
+
W = 0;
|
|
679
679
|
let f = 60;
|
|
680
680
|
Object.keys(E).forEach((i) => {
|
|
681
681
|
const u = E[i].color, p = {
|
|
@@ -717,7 +717,7 @@ function ut(t) {
|
|
|
717
717
|
text: x,
|
|
718
718
|
textMargin: e.boxTextMargin ?? 5
|
|
719
719
|
}, l = j.drawText(t, r).node().getBoundingClientRect().width;
|
|
720
|
-
l >
|
|
720
|
+
l > W && l > e.leftMargin - l && (W = l);
|
|
721
721
|
}), f += Math.max(20, m.length * 20);
|
|
722
722
|
});
|
|
723
723
|
}
|
|
@@ -739,7 +739,7 @@ var $ = R().journey, P = 0, Ht = /* @__PURE__ */ s(function(t, e, a, f) {
|
|
|
739
739
|
color: $.actorColours[y % $.actorColours.length],
|
|
740
740
|
position: y
|
|
741
741
|
}, y++;
|
|
742
|
-
}), ut(h), P = $.leftMargin +
|
|
742
|
+
}), ut(h), P = $.leftMargin + W, S.insert(0, 0, P, Object.keys(E).length * 50), Xt(h, r, 0, e);
|
|
743
743
|
const d = S.getBounds();
|
|
744
744
|
n && h.append("text").text(n).attr("x", P).attr("font-size", p).attr("font-weight", "bold").attr("y", 25).attr("fill", u).attr("font-family", o);
|
|
745
745
|
const c = d.stopy - d.starty + 2 * $.diagramMarginY, v = P + d.stopx + 2 * $.diagramMarginX;
|
|
@@ -791,14 +791,14 @@ var $ = R().journey, P = 0, Ht = /* @__PURE__ */ s(function(t, e, a, f) {
|
|
|
791
791
|
getBounds: /* @__PURE__ */ s(function() {
|
|
792
792
|
return this.data;
|
|
793
793
|
}, "getBounds")
|
|
794
|
-
},
|
|
794
|
+
}, X = $.sectionFills, st = $.sectionColours, Xt = /* @__PURE__ */ s(function(t, e, a, f) {
|
|
795
795
|
const i = R().journey;
|
|
796
796
|
let u = "";
|
|
797
797
|
const p = i.height * 2 + i.diagramMarginY, o = a + p;
|
|
798
798
|
let g = 0, m = "#CCC", x = "black", h = 0;
|
|
799
799
|
for (const [r, n] of e.entries()) {
|
|
800
800
|
if (u !== n.section) {
|
|
801
|
-
m =
|
|
801
|
+
m = X[g % X.length], h = g % X.length, x = st[g % st.length];
|
|
802
802
|
let y = 0;
|
|
803
803
|
const d = n.section;
|
|
804
804
|
for (let v = r; v < e.length && e[v].section == d; v++)
|
|
@@ -818,9 +818,9 @@ var $ = R().journey, P = 0, Ht = /* @__PURE__ */ s(function(t, e, a, f) {
|
|
|
818
818
|
n.x = r * i.taskMargin + r * i.width + P, n.y = o, n.width = i.diagramMarginX, n.height = i.diagramMarginY, n.colour = x, n.fill = m, n.num = h, n.actors = l, j.drawTask(t, n, i, f), S.insert(n.x, n.y, n.x + n.width + i.taskMargin, 450);
|
|
819
819
|
}
|
|
820
820
|
}, "drawTasks"), at = {
|
|
821
|
-
setConf:
|
|
821
|
+
setConf: Gt,
|
|
822
822
|
draw: Ht
|
|
823
|
-
},
|
|
823
|
+
}, Zt = {
|
|
824
824
|
parser: Et,
|
|
825
825
|
db: nt,
|
|
826
826
|
renderer: at,
|
|
@@ -830,5 +830,5 @@ var $ = R().journey, P = 0, Ht = /* @__PURE__ */ s(function(t, e, a, f) {
|
|
|
830
830
|
}, "init")
|
|
831
831
|
};
|
|
832
832
|
export {
|
|
833
|
-
|
|
833
|
+
Zt as diagram
|
|
834
834
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ft=require("./chunk-5VM5RSS4-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ft=require("./chunk-5VM5RSS4-CKgpuXOS.cjs"),j=require("./chunk-32BRIVSS-XUAL4SUU.cjs"),n=require("./extractHeadings-D1A8WzVy.cjs"),et=require("./arc-BWR9_qMf.cjs");var G=(function(){var t=n.__name(function(h,r,a,l){for(a=a||{},l=h.length;l--;a[h[l]]=r);return a},"o"),e=[6,8,10,11,12,14,16,17,18],s=[1,9],f=[1,10],i=[1,11],u=[1,12],p=[1,13],o=[1,14],_={trace:n.__name(function(){},"trace"),yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,taskName:18,taskData:19,$accept:0,$end:1},terminals_:{2:"error",4:"journey",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",18:"taskName",19:"taskData"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,2]],performAction:n.__name(function(r,a,l,y,d,c,v){var x=c.length-1;switch(d){case 1:return c[x-1];case 2:this.$=[];break;case 3:c[x-1].push(c[x]),this.$=c[x-1];break;case 4:case 5:this.$=c[x];break;case 6:case 7:this.$=[];break;case 8:y.setDiagramTitle(c[x].substr(6)),this.$=c[x].substr(6);break;case 9:this.$=c[x].trim(),y.setAccTitle(this.$);break;case 10:case 11:this.$=c[x].trim(),y.setAccDescription(this.$);break;case 12:y.addSection(c[x].substr(8)),this.$=c[x].substr(8);break;case 13:y.addTask(c[x-1],c[x]),this.$="task";break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:s,12:f,14:i,16:u,17:p,18:o},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:15,11:s,12:f,14:i,16:u,17:p,18:o},t(e,[2,5]),t(e,[2,6]),t(e,[2,8]),{13:[1,16]},{15:[1,17]},t(e,[2,11]),t(e,[2,12]),{19:[1,18]},t(e,[2,4]),t(e,[2,9]),t(e,[2,10]),t(e,[2,13])],defaultActions:{},parseError:n.__name(function(r,a){if(a.recoverable)this.trace(r);else{var l=new Error(r);throw l.hash=a,l}},"parseError"),parse:n.__name(function(r){var a=this,l=[0],y=[],d=[null],c=[],v=this.table,x="",E=0,K=0,ht=2,Q=1,ut=c.slice.call(arguments,1),k=Object.create(this.lexer),A={yy:{}};for(var q in this.yy)Object.prototype.hasOwnProperty.call(this.yy,q)&&(A.yy[q]=this.yy[q]);k.setInput(r,A.yy),A.yy.lexer=k,A.yy.parser=this,typeof k.yylloc>"u"&&(k.yylloc={});var O=k.yylloc;c.push(O);var yt=k.options&&k.options.ranges;typeof A.yy.parseError=="function"?this.parseError=A.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function dt(w){l.length=l.length-2*w,d.length=d.length-w,c.length=c.length-w}n.__name(dt,"popStack");function D(){var w;return w=y.pop()||k.lex()||Q,typeof w!="number"&&(w instanceof Array&&(y=w,w=y.pop()),w=a.symbols_[w]||w),w}n.__name(D,"lex");for(var b,I,T,Y,R={},N,M,tt,z;;){if(I=l[l.length-1],this.defaultActions[I]?T=this.defaultActions[I]:((b===null||typeof b>"u")&&(b=D()),T=v[I]&&v[I][b]),typeof T>"u"||!T.length||!T[0]){var H="";z=[];for(N in v[I])this.terminals_[N]&&N>ht&&z.push("'"+this.terminals_[N]+"'");k.showPosition?H="Parse error on line "+(E+1)+`:
|
|
2
2
|
`+k.showPosition()+`
|
|
3
3
|
Expecting `+z.join(", ")+", got '"+(this.terminals_[b]||b)+"'":H="Parse error on line "+(E+1)+": Unexpected "+(b==Q?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(H,{text:k.match,token:this.terminals_[b]||b,line:k.yylineno,loc:O,expected:z})}if(T[0]instanceof Array&&T.length>1)throw new Error("Parse Error: multiple actions possible at state: "+I+", token: "+b);switch(T[0]){case 1:l.push(b),d.push(k.yytext),c.push(k.yylloc),l.push(T[1]),b=null,K=k.yyleng,x=k.yytext,E=k.yylineno,O=k.yylloc;break;case 2:if(M=this.productions_[T[1]][1],R.$=d[d.length-M],R._$={first_line:c[c.length-(M||1)].first_line,last_line:c[c.length-1].last_line,first_column:c[c.length-(M||1)].first_column,last_column:c[c.length-1].last_column},yt&&(R._$.range=[c[c.length-(M||1)].range[0],c[c.length-1].range[1]]),Y=this.performAction.apply(R,[x,K,E,A.yy,T[1],d,c].concat(ut)),typeof Y<"u")return Y;M&&(l=l.slice(0,-1*M*2),d=d.slice(0,-1*M),c=c.slice(0,-1*M)),l.push(this.productions_[T[1]][0]),d.push(R.$),c.push(R._$),tt=v[l[l.length-2]][l[l.length-1]],l.push(tt);break;case 3:return!0}}return!0},"parse")},g=(function(){var h={EOF:1,parseError:n.__name(function(a,l){if(this.yy.parser)this.yy.parser.parseError(a,l);else throw new Error(a)},"parseError"),setInput:n.__name(function(r,a){return this.yy=a||this.yy||{},this._input=r,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:n.__name(function(){var r=this._input[0];this.yytext+=r,this.yyleng++,this.offset++,this.match+=r,this.matched+=r;var a=r.match(/(?:\r\n?|\n).*/g);return a?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),r},"input"),unput:n.__name(function(r){var a=r.length,l=r.split(/(?:\r\n?|\n)/g);this._input=r+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a),this.offset-=a;var y=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),l.length-1&&(this.yylineno-=l.length-1);var d=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:l?(l.length===y.length?this.yylloc.first_column:0)+y[y.length-l.length].length-l[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[d[0],d[0]+this.yyleng-a]),this.yyleng=this.yytext.length,this},"unput"),more:n.__name(function(){return this._more=!0,this},"more"),reject:n.__name(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:n.__name(function(r){this.unput(this.match.slice(r))},"less"),pastInput:n.__name(function(){var r=this.matched.substr(0,this.matched.length-this.match.length);return(r.length>20?"...":"")+r.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:n.__name(function(){var r=this.match;return r.length<20&&(r+=this._input.substr(0,20-r.length)),(r.substr(0,20)+(r.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:n.__name(function(){var r=this.pastInput(),a=new Array(r.length+1).join("-");return r+this.upcomingInput()+`
|
package/dist/{kanban-definition-HUTT4EX6-Cg5KnsE9.cjs → kanban-definition-HUTT4EX6-BL1jihGl.cjs}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./extractHeadings-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./extractHeadings-D1A8WzVy.cjs"),le=require("./chunk-5VM5RSS4-CKgpuXOS.cjs");var J=(function(){var e=n.__name(function(O,s,i,a){for(i=i||{},a=O.length;a--;i[O[a]]=s);return i},"o"),h=[1,4],p=[1,13],r=[1,12],d=[1,15],b=[1,16],y=[1,20],l=[1,19],D=[6,7,8],C=[1,26],g=[1,24],T=[1,25],k=[6,7,11],M=[1,31],x=[6,7,11,24],V=[1,6,13,16,17,20,23],f=[1,35],w=[1,36],L=[1,6,7,11,13,16,17,20,23],F=[1,38],A={trace:n.__name(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,KANBAN:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,shapeData:15,ICON:16,CLASS:17,nodeWithId:18,nodeWithoutId:19,NODE_DSTART:20,NODE_DESCR:21,NODE_DEND:22,NODE_ID:23,SHAPE_DATA:24,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"KANBAN",11:"EOF",13:"SPACELIST",16:"ICON",17:"CLASS",20:"NODE_DSTART",21:"NODE_DESCR",22:"NODE_DEND",23:"NODE_ID",24:"SHAPE_DATA"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,3],[12,2],[12,2],[12,2],[12,1],[12,2],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[19,3],[18,1],[18,4],[15,2],[15,1]],performAction:n.__name(function(s,i,a,o,u,t,G){var c=t.length-1;switch(u){case 6:case 7:return o;case 8:o.getLogger().trace("Stop NL ");break;case 9:o.getLogger().trace("Stop EOF ");break;case 11:o.getLogger().trace("Stop NL2 ");break;case 12:o.getLogger().trace("Stop EOF2 ");break;case 15:o.getLogger().info("Node: ",t[c-1].id),o.addNode(t[c-2].length,t[c-1].id,t[c-1].descr,t[c-1].type,t[c]);break;case 16:o.getLogger().info("Node: ",t[c].id),o.addNode(t[c-1].length,t[c].id,t[c].descr,t[c].type);break;case 17:o.getLogger().trace("Icon: ",t[c]),o.decorateNode({icon:t[c]});break;case 18:case 23:o.decorateNode({class:t[c]});break;case 19:o.getLogger().trace("SPACELIST");break;case 20:o.getLogger().trace("Node: ",t[c-1].id),o.addNode(0,t[c-1].id,t[c-1].descr,t[c-1].type,t[c]);break;case 21:o.getLogger().trace("Node: ",t[c].id),o.addNode(0,t[c].id,t[c].descr,t[c].type);break;case 22:o.decorateNode({icon:t[c]});break;case 27:o.getLogger().trace("node found ..",t[c-2]),this.$={id:t[c-1],descr:t[c-1],type:o.getType(t[c-2],t[c])};break;case 28:this.$={id:t[c],descr:t[c],type:0};break;case 29:o.getLogger().trace("node found ..",t[c-3]),this.$={id:t[c-3],descr:t[c-1],type:o.getType(t[c-2],t[c])};break;case 30:this.$=t[c-1]+t[c];break;case 31:this.$=t[c];break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:h},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:h},{6:p,7:[1,10],9:9,12:11,13:r,14:14,16:d,17:b,18:17,19:18,20:y,23:l},e(D,[2,3]),{1:[2,2]},e(D,[2,4]),e(D,[2,5]),{1:[2,6],6:p,12:21,13:r,14:14,16:d,17:b,18:17,19:18,20:y,23:l},{6:p,9:22,12:11,13:r,14:14,16:d,17:b,18:17,19:18,20:y,23:l},{6:C,7:g,10:23,11:T},e(k,[2,24],{18:17,19:18,14:27,16:[1,28],17:[1,29],20:y,23:l}),e(k,[2,19]),e(k,[2,21],{15:30,24:M}),e(k,[2,22]),e(k,[2,23]),e(x,[2,25]),e(x,[2,26]),e(x,[2,28],{20:[1,32]}),{21:[1,33]},{6:C,7:g,10:34,11:T},{1:[2,7],6:p,12:21,13:r,14:14,16:d,17:b,18:17,19:18,20:y,23:l},e(V,[2,14],{7:f,11:w}),e(L,[2,8]),e(L,[2,9]),e(L,[2,10]),e(k,[2,16],{15:37,24:M}),e(k,[2,17]),e(k,[2,18]),e(k,[2,20],{24:F}),e(x,[2,31]),{21:[1,39]},{22:[1,40]},e(V,[2,13],{7:f,11:w}),e(L,[2,11]),e(L,[2,12]),e(k,[2,15],{24:F}),e(x,[2,30]),{22:[1,41]},e(x,[2,27]),e(x,[2,29])],defaultActions:{2:[2,1],6:[2,2]},parseError:n.__name(function(s,i){if(i.recoverable)this.trace(s);else{var a=new Error(s);throw a.hash=i,a}},"parseError"),parse:n.__name(function(s){var i=this,a=[0],o=[],u=[null],t=[],G=this.table,c="",H=0,ee=0,re=2,te=1,ae=t.slice.call(arguments,1),m=Object.create(this.lexer),R={yy:{}};for(var X in this.yy)Object.prototype.hasOwnProperty.call(this.yy,X)&&(R.yy[X]=this.yy[X]);m.setInput(s,R.yy),R.yy.lexer=m,R.yy.parser=this,typeof m.yylloc>"u"&&(m.yylloc={});var K=m.yylloc;t.push(K);var oe=m.options&&m.options.ranges;typeof R.yy.parseError=="function"?this.parseError=R.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ce(S){a.length=a.length-2*S,u.length=u.length-S,t.length=t.length-S}n.__name(ce,"popStack");function ne(){var S;return S=o.pop()||m.lex()||te,typeof S!="number"&&(S instanceof Array&&(o=S,S=o.pop()),S=i.symbols_[S]||S),S}n.__name(ne,"lex");for(var E,P,N,Y,j={},U,I,ie,z;;){if(P=a[a.length-1],this.defaultActions[P]?N=this.defaultActions[P]:((E===null||typeof E>"u")&&(E=ne()),N=G[P]&&G[P][E]),typeof N>"u"||!N.length||!N[0]){var q="";z=[];for(U in G[P])this.terminals_[U]&&U>re&&z.push("'"+this.terminals_[U]+"'");m.showPosition?q="Parse error on line "+(H+1)+`:
|
|
2
2
|
`+m.showPosition()+`
|
|
3
3
|
Expecting `+z.join(", ")+", got '"+(this.terminals_[E]||E)+"'":q="Parse error on line "+(H+1)+": Unexpected "+(E==te?"end of input":"'"+(this.terminals_[E]||E)+"'"),this.parseError(q,{text:m.match,token:this.terminals_[E]||E,line:m.yylineno,loc:K,expected:z})}if(N[0]instanceof Array&&N.length>1)throw new Error("Parse Error: multiple actions possible at state: "+P+", token: "+E);switch(N[0]){case 1:a.push(E),u.push(m.yytext),t.push(m.yylloc),a.push(N[1]),E=null,ee=m.yyleng,c=m.yytext,H=m.yylineno,K=m.yylloc;break;case 2:if(I=this.productions_[N[1]][1],j.$=u[u.length-I],j._$={first_line:t[t.length-(I||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(I||1)].first_column,last_column:t[t.length-1].last_column},oe&&(j._$.range=[t[t.length-(I||1)].range[0],t[t.length-1].range[1]]),Y=this.performAction.apply(j,[c,ee,H,R.yy,N[1],u,t].concat(ae)),typeof Y<"u")return Y;I&&(a=a.slice(0,-1*I*2),u=u.slice(0,-1*I),t=t.slice(0,-1*I)),a.push(this.productions_[N[1]][0]),u.push(j.$),t.push(j._$),ie=G[a[a.length-2]][a[a.length-1]],a.push(ie);break;case 3:return!0}}return!0},"parse")},W=(function(){var O={EOF:1,parseError:n.__name(function(i,a){if(this.yy.parser)this.yy.parser.parseError(i,a);else throw new Error(i)},"parseError"),setInput:n.__name(function(s,i){return this.yy=i||this.yy||{},this._input=s,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:n.__name(function(){var s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var i=s.match(/(?:\r\n?|\n).*/g);return i?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),s},"input"),unput:n.__name(function(s){var i=s.length,a=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-i),this.offset-=i;var o=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),a.length-1&&(this.yylineno-=a.length-1);var u=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:a?(a.length===o.length?this.yylloc.first_column:0)+o[o.length-a.length].length-a[0].length:this.yylloc.first_column-i},this.options.ranges&&(this.yylloc.range=[u[0],u[0]+this.yyleng-i]),this.yyleng=this.yytext.length,this},"unput"),more:n.__name(function(){return this._more=!0,this},"more"),reject:n.__name(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:n.__name(function(s){this.unput(this.match.slice(s))},"less"),pastInput:n.__name(function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:n.__name(function(){var s=this.match;return s.length<20&&(s+=this._input.substr(0,20-s.length)),(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:n.__name(function(){var s=this.pastInput(),i=new Array(s.length+1).join("-");return s+this.upcomingInput()+`
|