allyhub 0.13.0 → 0.15.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/CHANGELOG.md +14 -0
- package/dist/commands/frames.js +9 -11
- package/dist/node_modules/@allyhub/3d-extension/package.json +1 -1
- package/dist/node_modules/@allyhub/audio/package.json +1 -1
- package/dist/node_modules/@allyhub/browser/package.json +1 -1
- package/dist/node_modules/@allyhub/build/package.json +1 -1
- package/dist/node_modules/@allyhub/canvas-extension/package.json +1 -1
- package/dist/node_modules/@allyhub/canvas-model/package.json +1 -1
- package/dist/node_modules/@allyhub/chart/package.json +1 -1
- package/dist/node_modules/@allyhub/check/package.json +1 -1
- package/dist/node_modules/@allyhub/cloud/package.json +1 -1
- package/dist/node_modules/@allyhub/components/package.json +1 -1
- package/dist/node_modules/@allyhub/dev-server/dist/tools.js +1 -1
- package/dist/node_modules/@allyhub/dev-server/package.json +1 -1
- package/dist/node_modules/@allyhub/diagnostics/package.json +1 -1
- package/dist/node_modules/@allyhub/doc/package.json +1 -1
- package/dist/node_modules/@allyhub/doc-extension/package.json +1 -1
- package/dist/node_modules/@allyhub/doc-print/package.json +1 -1
- package/dist/node_modules/@allyhub/export/package.json +1 -1
- package/dist/node_modules/@allyhub/extension-api/package.json +1 -1
- package/dist/node_modules/@allyhub/extension-host/dist/points.js +1 -1
- package/dist/node_modules/@allyhub/extension-host/package.json +1 -1
- package/dist/node_modules/@allyhub/formats/dist/files.d.ts +9 -2
- package/dist/node_modules/@allyhub/formats/dist/files.js +1 -1
- package/dist/node_modules/@allyhub/formats/dist/note-shape.d.ts +9 -0
- package/dist/node_modules/@allyhub/formats/dist/note-shape.js +1 -1
- package/dist/node_modules/@allyhub/formats/package.json +1 -1
- package/dist/node_modules/@allyhub/i18n/package.json +1 -1
- package/dist/node_modules/@allyhub/image-draw/package.json +1 -1
- package/dist/node_modules/@allyhub/image-extension/package.json +1 -1
- package/dist/node_modules/@allyhub/image-measure/package.json +1 -1
- package/dist/node_modules/@allyhub/image-psd/package.json +1 -1
- package/dist/node_modules/@allyhub/image-render/package.json +1 -1
- package/dist/node_modules/@allyhub/image-runtime/package.json +1 -1
- package/dist/node_modules/@allyhub/image-sdk/package.json +1 -1
- package/dist/node_modules/@allyhub/jobs/package.json +1 -1
- package/dist/node_modules/@allyhub/linkedin-extension/package.json +1 -1
- package/dist/node_modules/@allyhub/linkedin-model/package.json +1 -1
- package/dist/node_modules/@allyhub/linkedin-view/package.json +1 -1
- package/dist/node_modules/@allyhub/measure/package.json +1 -1
- package/dist/node_modules/@allyhub/media/package.json +1 -1
- package/dist/node_modules/@allyhub/media-extension/package.json +39 -1
- package/dist/node_modules/@allyhub/model/package.json +1 -1
- package/dist/node_modules/@allyhub/ooxml/package.json +1 -1
- package/dist/node_modules/@allyhub/piece/package.json +1 -1
- package/dist/node_modules/@allyhub/project/package.json +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/tools.d.ts +36 -0
- package/dist/node_modules/@allyhub/protocol/dist/tools.js +1 -1
- package/dist/node_modules/@allyhub/protocol/package.json +1 -1
- package/dist/node_modules/@allyhub/registry/package.json +1 -1
- package/dist/node_modules/@allyhub/render/package.json +1 -1
- package/dist/node_modules/@allyhub/runtime/package.json +1 -1
- package/dist/node_modules/@allyhub/runtimes/package.json +1 -1
- package/dist/node_modules/@allyhub/scaffold/package.json +1 -1
- package/dist/node_modules/@allyhub/scenery/package.json +1 -1
- package/dist/node_modules/@allyhub/scenery-host/package.json +1 -1
- package/dist/node_modules/@allyhub/sheet/package.json +1 -1
- package/dist/node_modules/@allyhub/sheet-extension/package.json +1 -1
- package/dist/node_modules/@allyhub/slides-core/package.json +1 -1
- package/dist/node_modules/@allyhub/slides-extension/package.json +1 -1
- package/dist/node_modules/@allyhub/slides-pptx/package.json +1 -1
- package/dist/node_modules/@allyhub/slides-runtime/package.json +1 -1
- package/dist/node_modules/@allyhub/stage/package.json +1 -1
- package/dist/node_modules/@allyhub/stage-page/package.json +1 -1
- package/dist/node_modules/@allyhub/stage-runtime/package.json +1 -1
- package/dist/node_modules/@allyhub/telemetry/package.json +1 -1
- package/dist/node_modules/@allyhub/text-extension/markup/allyhub.yaml +2 -0
- package/dist/node_modules/@allyhub/text-extension/markup/markup.json +19 -0
- package/dist/node_modules/@allyhub/text-extension/markup/notes/launch.md +9 -0
- package/dist/node_modules/@allyhub/text-extension/package.json +64 -0
- package/dist/node_modules/@allyhub/video-core/package.json +1 -1
- package/dist/node_modules/@allyhub/video-extension/package.json +1 -1
- package/dist/node_modules/@allyhub/video-measure/package.json +1 -1
- package/dist/node_modules/@allyhub/video-sdk/package.json +1 -1
- package/dist/node_modules/@allyhub/website/package.json +1 -1
- package/dist/node_modules/@allyhub/website-extension/package.json +1 -1
- package/dist/node_modules/@allyhub/x-extension/package.json +1 -1
- package/dist/node_modules/@allyhub/x-model/package.json +1 -1
- package/dist/node_modules/@allyhub/x-view/package.json +1 -1
- package/dist/package.json +12 -12
- package/dist/works.js +1 -1
- package/editor-web/assets/{abnfDiagram-WEYOIA3C-D70jg8mE.js → abnfDiagram-WEYOIA3C-BHI0AbUY.js} +1 -1
- package/editor-web/assets/{architecture-WOLXFQ4H-CrXS3E8e.js → architecture-WOLXFQ4H-BMQS-OKZ.js} +1 -1
- package/editor-web/assets/{architectureDiagram-ZHVYKT53-JrBljCOx.js → architectureDiagram-ZHVYKT53-DZp9CM6P.js} +1 -1
- package/editor-web/assets/{article-BWrfVMRA.js → article-C_mBG5a1.js} +4 -4
- package/editor-web/assets/{article-hxHjqzV1.js → article-DWBxNvX0.js} +2 -2
- package/editor-web/assets/{blockDiagram-RJAE7QA3-BzfC1xTS.js → blockDiagram-RJAE7QA3-h6LWaev4.js} +1 -1
- package/editor-web/assets/{textarea-DBwRbOyF.js → browser-C9NP0ZYz.js} +47 -47
- package/editor-web/assets/button-BVQH7zxz.js +41 -0
- package/editor-web/assets/{c4Diagram-XDPPPE54-s2TpXKgH.js → c4Diagram-XDPPPE54-BvSMs7J4.js} +1 -1
- package/editor-web/assets/channel-BFHB0S0f.js +1 -0
- package/editor-web/assets/{chunk-2E7WHVMD-DyE9v6UX.js → chunk-2E7WHVMD-0EJTAmDF.js} +1 -1
- package/editor-web/assets/{chunk-4EMNKR2T-CCunMMcT.js → chunk-4EMNKR2T-BeYB4AEY.js} +1 -1
- package/editor-web/assets/{chunk-55XCU76K-CZgJYrN4.js → chunk-55XCU76K-BPFOPTBe.js} +1 -1
- package/editor-web/assets/{chunk-7S6XSTFO-B01FlTFf.js → chunk-7S6XSTFO-CZ2C7ULu.js} +1 -1
- package/editor-web/assets/{chunk-AQDTSKZB-latWUvVu.js → chunk-AQDTSKZB-B5RtsZkj.js} +1 -1
- package/editor-web/assets/{chunk-DSNLSHJZ-BHFiQInN.js → chunk-DSNLSHJZ-_3G4hddj.js} +1 -1
- package/editor-web/assets/{chunk-HAGFOTED-C4hR36ab.js → chunk-HAGFOTED-DO5b4ll2.js} +1 -1
- package/editor-web/assets/{chunk-HNE4Q36P-CNrxiD2Q.js → chunk-HNE4Q36P-C6XNI71Q.js} +1 -1
- package/editor-web/assets/{chunk-NQOKRVIF-DpyEHKEY.js → chunk-NQOKRVIF-nDCX29rQ.js} +1 -1
- package/editor-web/assets/{chunk-UHW7PFBP-SIEJdixh.js → chunk-UHW7PFBP-CRCOiitq.js} +1 -1
- package/editor-web/assets/{chunk-VQ5W62QI-CxWnQRxx.js → chunk-VQ5W62QI-hNPKKjCN.js} +1 -1
- package/editor-web/assets/{chunk-WQQL4CDK-CbRuCBm6.js → chunk-WQQL4CDK-KlnVtIDc.js} +1 -1
- package/editor-web/assets/{chunk-YZO67HFG-Cgu-EQvs.js → chunk-YZO67HFG-B76hDUrM.js} +1 -1
- package/editor-web/assets/{chunk-ZAUX2LTX-pAl5CV3o.js → chunk-ZAUX2LTX-D9m1N0wI.js} +1 -1
- package/editor-web/assets/{chunk-ZCHMQSOR-Du5hY-FP.js → chunk-ZCHMQSOR-443euxzo.js} +1 -1
- package/editor-web/assets/{classDiagram-v2-4MYWR3UA-CevU94T6.js → classDiagram-v2-4MYWR3UA-Bbw-8Ons.js} +1 -1
- package/editor-web/assets/{collaborator-C6IJkcGR.js → collaborator-2qfw-8OJ.js} +1 -1
- package/editor-web/assets/{cynefin-EF2NZ3EQ-DBHwpMRJ.js → cynefin-EF2NZ3EQ-C4E7TlUr.js} +1 -1
- package/editor-web/assets/{cynefinDiagram-WF24UDRP-CxUzpjvG.js → cynefinDiagram-WF24UDRP-PBPGa_HS.js} +1 -1
- package/editor-web/assets/{dagre-NK4GIZVX-BAJNBDYO.js → dagre-NK4GIZVX-DwXdEtQG.js} +1 -1
- package/editor-web/assets/{diagram-CBK3MWTC-BQW9Fbw-.js → diagram-CBK3MWTC-BE3FwdX7.js} +1 -1
- package/editor-web/assets/{diagram-I5XIIV2D-DQBROUfn.js → diagram-I5XIIV2D-BPl2ZY33.js} +1 -1
- package/editor-web/assets/{diagram-ODIL2UCW-DEoK31qy.js → diagram-ODIL2UCW-BLVPYSzw.js} +1 -1
- package/editor-web/assets/{diagram-PFBEJUXE-BTCa2We1.js → diagram-PFBEJUXE-BVZk62FO.js} +1 -1
- package/editor-web/assets/{diagram-RJA3I4VV-DNM8qWC3.js → diagram-RJA3I4VV-Z75LSbxH.js} +1 -1
- package/editor-web/assets/{diagram-TYUNFSNR-BcKpED4d.js → diagram-TYUNFSNR-BynGqDAg.js} +1 -1
- package/editor-web/assets/{dist-RkxskWGK.js → dist--ijXGgvi.js} +4 -4
- package/editor-web/assets/dist-BrGYx10E.js +2 -0
- package/editor-web/assets/{dist-Dpet39Yp.js → dist-C-yi9AAi.js} +27 -27
- package/editor-web/assets/dist-CIQUbiAd.js +38 -0
- package/editor-web/assets/{dist-BSPs7tZR.js → dist-Ch34PllS.js} +1 -1
- package/editor-web/assets/dist-CxlIyluY.js +43 -0
- package/editor-web/assets/{dist-DMZ1VHPK.js → dist-D9N4Fxqr.js} +1 -1
- package/editor-web/assets/dist-DWKEqAou.js +6 -0
- package/editor-web/assets/{dist-aANR6S2I.js → dist-DX0VLTRV.js} +3 -3
- package/editor-web/assets/dist-D_xVYGnk.js +45 -0
- package/editor-web/assets/dist-Nc_h0Jye.js +4 -0
- package/editor-web/assets/dist-UG2TIZxP.js +16 -0
- package/editor-web/assets/dist-VP4ECMOk.js +1 -0
- package/editor-web/assets/dist-cUeSwqws.js +1 -0
- package/editor-web/assets/dist-xpAaABxb.js +24 -0
- package/editor-web/assets/{ebnfDiagram-V4P3TTPT-D-1x27Eh.js → ebnfDiagram-V4P3TTPT-SwhqbeK4.js} +1 -1
- package/editor-web/assets/{elk-QONTBCTQ-BJSCxiTH.js → elk-QONTBCTQ-Bb1GSt2Z.js} +1 -1
- package/editor-web/assets/{erDiagram-KYQIGQAA-C7Q357iD.js → erDiagram-KYQIGQAA-qUy0NDKn.js} +1 -1
- package/editor-web/assets/{eventmodeling-K75KTNOO-kXrQLSF5.js → eventmodeling-K75KTNOO-BYBYso_j.js} +1 -1
- package/editor-web/assets/file-exclamation-point-C_fX4fpI.js +1 -0
- package/editor-web/assets/flowDiagram-IUGLLWBU-BSCBBtP3.js +1 -0
- package/editor-web/assets/{ganttDiagram-R7GPNTJY-Bt3SRgK7.js → ganttDiagram-R7GPNTJY-Cw-BkZT8.js} +1 -1
- package/editor-web/assets/{gitGraph-VSP46ZUC-DS4CkhfK.js → gitGraph-VSP46ZUC-CTXzWPq_.js} +1 -1
- package/editor-web/assets/{gitGraphDiagram-PDYL7XHY-BgfmSVdI.js → gitGraphDiagram-PDYL7XHY-Jd9HU3WA.js} +1 -1
- package/editor-web/assets/{hint-BmRKl2nL.js → hint-mQB8slJ2.js} +1 -1
- package/editor-web/assets/index-Br4a-QEv.css +2 -0
- package/editor-web/assets/index-CglHrLRS.js +28 -0
- package/editor-web/assets/{info-OHQRW6UA-BZjctF3x.js → info-OHQRW6UA-C4oj5BpF.js} +1 -1
- package/editor-web/assets/{infoDiagram-MVDRKAX5-BAp5oUXk.js → infoDiagram-MVDRKAX5-D09aYJ28.js} +1 -1
- package/editor-web/assets/{ishikawaDiagram-HPEHV2GE-DGL7ZfUu.js → ishikawaDiagram-HPEHV2GE-BEdXoXb2.js} +1 -1
- package/editor-web/assets/{journeyDiagram-BOSHW7O7-DOOoBGx-.js → journeyDiagram-BOSHW7O7-DE-_0aww.js} +1 -1
- package/editor-web/assets/{kanban-definition-FNSA4HC5-lbLuUiMW.js → kanban-definition-FNSA4HC5-Cn3_bvPS.js} +1 -1
- package/editor-web/assets/{mermaid-parser.core-RkCFmJcg.js → mermaid-parser.core-BK52JMZH.js} +3 -3
- package/editor-web/assets/{mermaid.core-BVUl-afX.js → mermaid.core-CmfBU89G.js} +4 -4
- package/editor-web/assets/{mindmap-definition-6OY57UG3-C3DC4T1J.js → mindmap-definition-6OY57UG3-CtUhkv9I.js} +1 -1
- package/editor-web/assets/{packet-JDAUHWVQ-Bkd6YpX8.js → packet-JDAUHWVQ-C7nciBNp.js} +1 -1
- package/editor-web/assets/pdf-BHx8b9rl.js +54 -0
- package/editor-web/assets/pdf.worker.min-CjEcRF4W.mjs +28 -0
- package/editor-web/assets/pdf.worker.min-DI4FfYVf.js +1 -0
- package/editor-web/assets/{pegDiagram-ECIUJNBX-B5Seh4Oe.js → pegDiagram-ECIUJNBX-DUkbAcTs.js} +1 -1
- package/editor-web/assets/{pie-XZMESJXO-BNbb4Q8k.js → pie-XZMESJXO-BIGyKhav.js} +1 -1
- package/editor-web/assets/{pieDiagram-GNMPY74T-_hnbUloZ.js → pieDiagram-GNMPY74T-DrYj-JeG.js} +1 -1
- package/editor-web/assets/{progress-D6wSFdpY.js → progress-udl4pNsP.js} +1 -1
- package/editor-web/assets/{props-form-BfwEi6jW.js → props-form-DrZYDmSM.js} +1 -1
- package/editor-web/assets/{quadrantDiagram-D57K4MC3-1rbqW-KO.js → quadrantDiagram-D57K4MC3-qkBoh1ep.js} +1 -1
- package/editor-web/assets/{radar-ABXABTNO-BWSnhBSp.js → radar-ABXABTNO-BkJmvR6a.js} +1 -1
- package/editor-web/assets/{railroad-I3PHUGI6-BNB-OKs1.js → railroad-I3PHUGI6-BFH-ip4B.js} +1 -1
- package/editor-web/assets/{railroad-abnf-LNEFI6M7-BKgidf_B.js → railroad-abnf-LNEFI6M7-BBlzHL6Z.js} +1 -1
- package/editor-web/assets/{railroad-ebnf-DWYD2UWJ-CNCnxtHp.js → railroad-ebnf-DWYD2UWJ-CCVsG0ui.js} +1 -1
- package/editor-web/assets/{railroad-peg-JR7BVNR7-CyBW6_0o.js → railroad-peg-JR7BVNR7-Puo7BFPl.js} +1 -1
- package/editor-web/assets/{railroadDiagram-Y72NRBL7-Cud3SJ7O.js → railroadDiagram-Y72NRBL7-DCwfkv35.js} +1 -1
- package/editor-web/assets/{requirementDiagram-EQYSW5RA-BrSCcpqV.js → requirementDiagram-EQYSW5RA-DSTcDj32.js} +1 -1
- package/editor-web/assets/{row-VwyPfa1b.js → row-dgHEAE7h.js} +1 -1
- package/editor-web/assets/{sankeyDiagram-SY24JHO5-rJV4dJFn.js → sankeyDiagram-SY24JHO5-Kqq4fCvG.js} +1 -1
- package/editor-web/assets/schemas-B89k2jEC.js +1 -0
- package/editor-web/assets/scissors-BURkYWPv.js +1 -0
- package/editor-web/assets/search-jKDvFIEU.js +1 -0
- package/editor-web/assets/{sequenceDiagram-BLEHNHQU-CEUuD2n6.js → sequenceDiagram-BLEHNHQU-B1uodEgL.js} +1 -1
- package/editor-web/assets/{session-DE0fvAcs.js → session-CUCSWPTE.js} +1 -1
- package/editor-web/assets/{slides-BgacyjJW.js → slides-BdaWgL_N.js} +1 -1
- package/editor-web/assets/{snapshots-D8TtZp1x.js → snapshots-CTS2iez5.js} +1 -1
- package/editor-web/assets/{split-Cx2MMnC_.js → split-Cu0fidVK.js} +1 -1
- package/editor-web/assets/{stateDiagram-v2-A6IESKWZ-BRE_C2he.js → stateDiagram-v2-A6IESKWZ-B6gG3vUm.js} +1 -1
- package/editor-web/assets/surface-D9qJjJQL.js +1 -0
- package/editor-web/assets/swatch-S8YuBYyj.js +1 -0
- package/editor-web/assets/{swimlanes-B3ENRKFQ-BEPqWgVe.js → swimlanes-B3ENRKFQ-CZayRtvU.js} +1 -1
- package/editor-web/assets/swimlanesDiagram-AYQRV4AK-B9tLTrym.js +8 -0
- package/editor-web/assets/{switch-DaG6OuAi.js → switch-D5kPl2jO.js} +1 -1
- package/editor-web/assets/syntax-DSsHrzWF.js +1 -0
- package/editor-web/assets/{syntax-CLaCSmoi.js → syntax-PERQ2szW.js} +1 -1
- package/editor-web/assets/tabs-B_K0Db1I.js +1 -0
- package/editor-web/assets/textarea-mzr9Kfuf.js +1 -0
- package/editor-web/assets/{timeline-definition-JXYKGLGB-p8Qeg4pS.js → timeline-definition-JXYKGLGB-5YoY8Xhw.js} +1 -1
- package/editor-web/assets/{treeView-D4JQ5SDB-C9FTdXKq.js → treeView-D4JQ5SDB-Brd_NUPx.js} +1 -1
- package/editor-web/assets/{treemap-SAJKECNS-XAeLVOtI.js → treemap-SAJKECNS-DmfdnlWl.js} +1 -1
- package/editor-web/assets/{usecaseDiagram-WPOLBNNX-BV3AMRuH.js → usecaseDiagram-WPOLBNNX-lcAkMviI.js} +1 -1
- package/editor-web/assets/{vennDiagram-Q3Y3IDCW-CJdKcYyA.js → vennDiagram-Q3Y3IDCW-DY_n48hQ.js} +1 -1
- package/editor-web/assets/{video-He8p6dr6.js → video-Bv3rETBU.js} +1 -1
- package/editor-web/assets/w3c-keyname-BOAvb0qz.js +1 -0
- package/editor-web/assets/{wardley-7MLQ67FV-DZh6Mf22.js → wardley-7MLQ67FV-DzIFSBQz.js} +1 -1
- package/editor-web/assets/{wardleyDiagram-IVAIDKWA-XtvKSX-m.js → wardleyDiagram-IVAIDKWA-CsXNajIg.js} +1 -1
- package/editor-web/assets/whole-word-6DliXke2.js +1 -0
- package/editor-web/assets/{words-CjW-1tZI.js → words-BTRrBFUo.js} +1 -1
- package/editor-web/assets/{words-CPHp_0tt.js → words-ll_94CD2.js} +1 -1
- package/editor-web/assets/{xychartDiagram-4URNHDU4-CGkL42sz.js → xychartDiagram-4URNHDU4-DDpGFEum.js} +1 -1
- package/editor-web/index.html +4 -4
- package/package.json +2 -8
- package/dist/commands/frames/report.js +0 -2
- package/dist/node_modules/@allyhub/report-extension/dist/build.js +0 -2
- package/dist/node_modules/@allyhub/report-extension/dist/check.js +0 -3
- package/dist/node_modules/@allyhub/report-extension/dist/cli/find.js +0 -2
- package/dist/node_modules/@allyhub/report-extension/dist/cli/index.js +0 -5
- package/dist/node_modules/@allyhub/report-extension/dist/cli/picture.js +0 -30
- package/dist/node_modules/@allyhub/report-extension/dist/export.js +0 -2
- package/dist/node_modules/@allyhub/report-extension/dist/inline.js +0 -58
- package/dist/node_modules/@allyhub/report-extension/dist/page.js +0 -21
- package/dist/node_modules/@allyhub/report-extension/dist/project-tools.js +0 -21
- package/dist/node_modules/@allyhub/report-extension/dist/styles.js +0 -5
- package/dist/node_modules/@allyhub/report-extension/dist/theme.js +0 -2
- package/dist/node_modules/@allyhub/report-extension/dist/tools.js +0 -2
- package/dist/node_modules/@allyhub/report-extension/dist/workspace.js +0 -2
- package/dist/node_modules/@allyhub/report-extension/package.json +0 -182
- package/dist/node_modules/@allyhub/report-extension/styles/allyhub/STYLE.md +0 -139
- package/dist/node_modules/@allyhub/report-extension/styles/allyhub/style.css +0 -109
- package/dist/node_modules/@allyhub/report-extension/styles/allyhub/style.json +0 -17
- package/dist/node_modules/@allyhub/report-extension/styles/allyhub/tokens.js +0 -40
- package/editor-web/assets/button-EftXSfev.js +0 -41
- package/editor-web/assets/channel-BFbXY6R0.js +0 -1
- package/editor-web/assets/dist-90dg0B0d.js +0 -2
- package/editor-web/assets/dist-CP9XwbBS.js +0 -45
- package/editor-web/assets/dist-CRxtC7DG.js +0 -24
- package/editor-web/assets/dist-Cmnq14RO.js +0 -6
- package/editor-web/assets/dist-CrZwqOm2.js +0 -1
- package/editor-web/assets/dist-CzUWTcvC.js +0 -38
- package/editor-web/assets/dist-DYnXIW8F.js +0 -16
- package/editor-web/assets/dist-Dre4Cwpz.js +0 -1
- package/editor-web/assets/dist-qSuFWuVB.js +0 -4
- package/editor-web/assets/flowDiagram-IUGLLWBU-GSC4btef.js +0 -1
- package/editor-web/assets/index-D8qc_ipi.js +0 -28
- package/editor-web/assets/index-DDtZpLDF.css +0 -2
- package/editor-web/assets/palette-INFK0Zsr.js +0 -1
- package/editor-web/assets/scissors-D9WmgvNP.js +0 -1
- package/editor-web/assets/swatch-lxK4C8fD.js +0 -1
- package/editor-web/assets/swimlanesDiagram-AYQRV4AK-DAcNszZ6.js +0 -8
- package/editor-web/assets/syntax-9LD8MzGy.js +0 -1
- package/editor-web/assets/tabs-DjhzblAG.js +0 -1
- package/editor-web/assets/trash-2-DrnRa91l.js +0 -1
- /package/dist/node_modules/@allyhub/{report-extension → text-extension}/LICENSE +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{n as e}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{n as t,t as n}from"./d3-selection-COWvaQNI.js";import{C as r,D as i,F as a,G as o,H as s,U as c,_ as l,a as u,b as d,c as f,i as p,k as m,q as h,r as g,s as _,v,y,z as b}from"./chunk-DSNLSHJZ-BHFiQInN.js";import{t as x}from"./dist-DdXDFcej.js";import{_ as S,m as C}from"./chunk-7S6XSTFO-B01FlTFf.js";import{a as w,c as T,i as E,n as D,r as O,s as k}from"./chunk-55XCU76K-CZgJYrN4.js";import{t as A}from"./chunk-2Q5K7J3B-C1jixKkw.js";import{n as j,t as M}from"./mermaid.core-BVUl-afX.js";var N=x(),P=(function(){var t=e(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),n=[1,2],r=[1,3],i=[1,4],a=[2,4],o=[1,9],s=[1,11],c=[1,12],l=[1,14],u=[1,15],d=[1,17],f=[1,18],p=[1,19],m=[1,25],h=[1,26],g=[1,27],_=[1,28],v=[1,29],y=[1,30],b=[1,31],x=[1,32],S=[1,33],C=[1,34],w=[1,35],T=[1,36],E=[1,37],D=[1,38],O=[1,39],k=[1,40],A=[1,42],j=[1,43],M=[1,44],N=[1,45],P=[1,46],F=[1,47],I=[1,4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,48,49,50,51,53,54,56,61,62,63,64,73],L=[1,56],ee=[1,75],R=[1,81],te=[1,82],ne=[1,83],re=[1,84],ie=[1,85],ae=[1,86],oe=[1,87],se=[1,88],ce=[1,89],le=[1,90],z=[1,91],ue=[1,92],de=[1,93],fe=[1,94],pe=[1,95],B=[1,96],V=[1,97],me=[1,98],H=[1,99],U=[1,100],W=[1,101],he=[1,102],ge=[1,103],_e=[1,104],ve=[1,105],G=[1,106],ye=[2,79],K=[2,78],be=[4,5,17,51,53,54],xe=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,51,53,54,56,61,62,63,64,73],Se=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,50,51,53,54,56,61,62,63,64,73],Ce=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,49,51,53,54,56,61,62,63,64,73],we=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,48,51,53,54,56,61,62,63,64,73],Te=[5,52],q=[62,70,71,72,73],Ee=[62,73],J=[1,152],De={trace:e(function(){},`trace`),yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,SD:6,document:7,line:8,statement:9,INVALID:10,box_section:11,box_line:12,participant_statement:13,create:14,box:15,restOfLine:16,end:17,signal:18,autonumber:19,NUM:20,off:21,activate:22,actor:23,deactivate:24,note_statement:25,links_statement:26,link_statement:27,properties_statement:28,details_statement:29,title:30,legacy_title:31,acc_title:32,acc_title_value:33,acc_descr:34,acc_descr_value:35,acc_descr_multiline_value:36,loop:37,rect:38,opt:39,alt:40,else_sections:41,par:42,par_sections:43,par_over:44,critical:45,option_sections:46,break:47,option:48,and:49,else:50,participant:51,AS:52,participant_actor:53,destroy:54,actor_with_config:55,note:56,placement:57,text2:58,over:59,actor_pair:60,links:61,link:62,properties:63,details:64,spaceList:65,",":66,left_of:67,right_of:68,signaltype:69,"+":70,"-":71,"()":72,ACTOR:73,config_object:74,CONFIG_START:75,CONFIG_CONTENT:76,CONFIG_END:77,SOLID_OPEN_ARROW:78,DOTTED_OPEN_ARROW:79,SOLID_ARROW:80,SOLID_ARROW_TOP:81,SOLID_ARROW_BOTTOM:82,STICK_ARROW_TOP:83,STICK_ARROW_BOTTOM:84,SOLID_ARROW_TOP_DOTTED:85,SOLID_ARROW_BOTTOM_DOTTED:86,STICK_ARROW_TOP_DOTTED:87,STICK_ARROW_BOTTOM_DOTTED:88,SOLID_ARROW_TOP_REVERSE:89,SOLID_ARROW_BOTTOM_REVERSE:90,STICK_ARROW_TOP_REVERSE:91,STICK_ARROW_BOTTOM_REVERSE:92,SOLID_ARROW_TOP_REVERSE_DOTTED:93,SOLID_ARROW_BOTTOM_REVERSE_DOTTED:94,STICK_ARROW_TOP_REVERSE_DOTTED:95,STICK_ARROW_BOTTOM_REVERSE_DOTTED:96,BIDIRECTIONAL_SOLID_ARROW:97,DOTTED_ARROW:98,BIDIRECTIONAL_DOTTED_ARROW:99,SOLID_CROSS:100,DOTTED_CROSS:101,SOLID_POINT:102,DOTTED_POINT:103,TXT:104,$accept:0,$end:1},terminals_:{2:`error`,4:`SPACE`,5:`NEWLINE`,6:`SD`,10:`INVALID`,14:`create`,15:`box`,16:`restOfLine`,17:`end`,19:`autonumber`,20:`NUM`,21:`off`,22:`activate`,24:`deactivate`,30:`title`,31:`legacy_title`,32:`acc_title`,33:`acc_title_value`,34:`acc_descr`,35:`acc_descr_value`,36:`acc_descr_multiline_value`,37:`loop`,38:`rect`,39:`opt`,40:`alt`,42:`par`,44:`par_over`,45:`critical`,47:`break`,48:`option`,49:`and`,50:`else`,51:`participant`,52:`AS`,53:`participant_actor`,54:`destroy`,56:`note`,59:`over`,61:`links`,62:`link`,63:`properties`,64:`details`,66:`,`,67:`left_of`,68:`right_of`,70:`+`,71:`-`,72:`()`,73:`ACTOR`,75:`CONFIG_START`,76:`CONFIG_CONTENT`,77:`CONFIG_END`,78:`SOLID_OPEN_ARROW`,79:`DOTTED_OPEN_ARROW`,80:`SOLID_ARROW`,81:`SOLID_ARROW_TOP`,82:`SOLID_ARROW_BOTTOM`,83:`STICK_ARROW_TOP`,84:`STICK_ARROW_BOTTOM`,85:`SOLID_ARROW_TOP_DOTTED`,86:`SOLID_ARROW_BOTTOM_DOTTED`,87:`STICK_ARROW_TOP_DOTTED`,88:`STICK_ARROW_BOTTOM_DOTTED`,89:`SOLID_ARROW_TOP_REVERSE`,90:`SOLID_ARROW_BOTTOM_REVERSE`,91:`STICK_ARROW_TOP_REVERSE`,92:`STICK_ARROW_BOTTOM_REVERSE`,93:`SOLID_ARROW_TOP_REVERSE_DOTTED`,94:`SOLID_ARROW_BOTTOM_REVERSE_DOTTED`,95:`STICK_ARROW_TOP_REVERSE_DOTTED`,96:`STICK_ARROW_BOTTOM_REVERSE_DOTTED`,97:`BIDIRECTIONAL_SOLID_ARROW`,98:`DOTTED_ARROW`,99:`BIDIRECTIONAL_DOTTED_ARROW`,100:`SOLID_CROSS`,101:`DOTTED_CROSS`,102:`SOLID_POINT`,103:`DOTTED_POINT`,104:`TXT`},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[8,1],[11,0],[11,2],[12,2],[12,1],[12,1],[9,1],[9,2],[9,4],[9,2],[9,4],[9,3],[9,3],[9,2],[9,3],[9,3],[9,2],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[9,2],[9,2],[9,1],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[46,1],[46,4],[43,1],[43,4],[41,1],[41,4],[13,5],[13,3],[13,5],[13,3],[13,3],[13,5],[13,3],[13,5],[13,3],[25,4],[25,4],[26,3],[27,3],[28,3],[29,3],[65,2],[65,1],[60,3],[60,1],[57,1],[57,1],[18,5],[18,5],[18,5],[18,5],[18,6],[18,4],[55,2],[74,3],[23,1],[23,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[58,1]],performAction:e(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 3:return r.apply(a[s]),a[s];case 4:case 10:this.$=[];break;case 5:case 11:a[s-1].push(a[s]),this.$=a[s-1];break;case 6:case 7:case 12:case 13:this.$=a[s];break;case 8:case 9:case 14:this.$=[];break;case 16:a[s].type=`createParticipant`,this.$=a[s];break;case 17:a[s-1].unshift({type:`boxStart`,boxData:r.parseBoxData(a[s-2])}),a[s-1].push({type:`boxEnd`,boxText:a[s-2]}),this.$=a[s-1];break;case 19:this.$={type:`sequenceIndex`,sequenceIndex:Number(a[s-2]),sequenceIndexStep:Number(a[s-1]),sequenceVisible:!0,signalType:r.LINETYPE.AUTONUMBER};break;case 20:this.$={type:`sequenceIndex`,sequenceIndex:Number(a[s-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:r.LINETYPE.AUTONUMBER};break;case 21:this.$={type:`sequenceIndex`,sequenceVisible:!1,signalType:r.LINETYPE.AUTONUMBER};break;case 22:this.$={type:`sequenceIndex`,sequenceVisible:!0,signalType:r.LINETYPE.AUTONUMBER};break;case 23:this.$={type:`activeStart`,signalType:r.LINETYPE.ACTIVE_START,actor:a[s-1].actor};break;case 24:this.$={type:`activeEnd`,signalType:r.LINETYPE.ACTIVE_END,actor:a[s-1].actor};break;case 30:r.setDiagramTitle(a[s].substring(6)),this.$=a[s].substring(6);break;case 31:r.setDiagramTitle(a[s].substring(7)),this.$=a[s].substring(7);break;case 32:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 33:case 34:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 35:a[s-1].unshift({type:`loopStart`,loopText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.LOOP_START}),a[s-1].push({type:`loopEnd`,loopText:a[s-2],signalType:r.LINETYPE.LOOP_END}),this.$=a[s-1];break;case 36:a[s-1].unshift({type:`rectStart`,color:r.parseMessage(a[s-2]),signalType:r.LINETYPE.RECT_START}),a[s-1].push({type:`rectEnd`,color:r.parseMessage(a[s-2]),signalType:r.LINETYPE.RECT_END}),this.$=a[s-1];break;case 37:a[s-1].unshift({type:`optStart`,optText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.OPT_START}),a[s-1].push({type:`optEnd`,optText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.OPT_END}),this.$=a[s-1];break;case 38:a[s-1].unshift({type:`altStart`,altText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.ALT_START}),a[s-1].push({type:`altEnd`,signalType:r.LINETYPE.ALT_END}),this.$=a[s-1];break;case 39:a[s-1].unshift({type:`parStart`,parText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.PAR_START}),a[s-1].push({type:`parEnd`,signalType:r.LINETYPE.PAR_END}),this.$=a[s-1];break;case 40:a[s-1].unshift({type:`parStart`,parText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.PAR_OVER_START}),a[s-1].push({type:`parEnd`,signalType:r.LINETYPE.PAR_END}),this.$=a[s-1];break;case 41:a[s-1].unshift({type:`criticalStart`,criticalText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.CRITICAL_START}),a[s-1].push({type:`criticalEnd`,signalType:r.LINETYPE.CRITICAL_END}),this.$=a[s-1];break;case 42:a[s-1].unshift({type:`breakStart`,breakText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.BREAK_START}),a[s-1].push({type:`breakEnd`,optText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.BREAK_END}),this.$=a[s-1];break;case 44:this.$=a[s-3].concat([{type:`option`,optionText:r.parseMessage(a[s-1]),signalType:r.LINETYPE.CRITICAL_OPTION},a[s]]);break;case 46:this.$=a[s-3].concat([{type:`and`,parText:r.parseMessage(a[s-1]),signalType:r.LINETYPE.PAR_AND},a[s]]);break;case 48:this.$=a[s-3].concat([{type:`else`,altText:r.parseMessage(a[s-1]),signalType:r.LINETYPE.ALT_ELSE},a[s]]);break;case 49:a[s-3].draw=`participant`,a[s-3].type=`addParticipant`,a[s-3].description=r.parseMessage(a[s-1]),this.$=a[s-3];break;case 50:a[s-1].draw=`participant`,a[s-1].type=`addParticipant`,this.$=a[s-1];break;case 51:a[s-3].draw=`actor`,a[s-3].type=`addParticipant`,a[s-3].description=r.parseMessage(a[s-1]),this.$=a[s-3];break;case 52:case 57:a[s-1].draw=`actor`,a[s-1].type=`addParticipant`,this.$=a[s-1];break;case 53:a[s-1].type=`destroyParticipant`,this.$=a[s-1];break;case 54:a[s-3].draw=`participant`,a[s-3].type=`addParticipant`,a[s-3].description=r.parseMessage(a[s-1]),this.$=a[s-3];break;case 55:a[s-1].draw=`participant`,a[s-1].type=`addParticipant`,this.$=a[s-1];break;case 56:a[s-3].draw=`actor`,a[s-3].type=`addParticipant`,a[s-3].description=r.parseMessage(a[s-1]),this.$=a[s-3];break;case 58:this.$=[a[s-1],{type:`addNote`,placement:a[s-2],actor:a[s-1].actor,text:a[s]}];break;case 59:a[s-2]=[].concat(a[s-1],a[s-1]).slice(0,2),a[s-2][0]=a[s-2][0].actor,a[s-2][1]=a[s-2][1].actor,this.$=[a[s-1],{type:`addNote`,placement:r.PLACEMENT.OVER,actor:a[s-2].slice(0,2),text:a[s]}];break;case 60:this.$=[a[s-1],{type:`addLinks`,actor:a[s-1].actor,text:a[s]}];break;case 61:this.$=[a[s-1],{type:`addALink`,actor:a[s-1].actor,text:a[s]}];break;case 62:this.$=[a[s-1],{type:`addProperties`,actor:a[s-1].actor,text:a[s]}];break;case 63:this.$=[a[s-1],{type:`addDetails`,actor:a[s-1].actor,text:a[s]}];break;case 66:this.$=[a[s-2],a[s]];break;case 67:this.$=a[s];break;case 68:this.$=r.PLACEMENT.LEFTOF;break;case 69:this.$=r.PLACEMENT.RIGHTOF;break;case 70:this.$=[a[s-4],a[s-1],{type:`addMessage`,from:a[s-4].actor,to:a[s-1].actor,signalType:a[s-3],msg:a[s],activate:!0},{type:`activeStart`,signalType:r.LINETYPE.ACTIVE_START,actor:a[s-1].actor}];break;case 71:this.$=[a[s-4],a[s-1],{type:`addMessage`,from:a[s-4].actor,to:a[s-1].actor,signalType:a[s-3],msg:a[s]},{type:`activeEnd`,signalType:r.LINETYPE.ACTIVE_END,actor:a[s-4].actor}];break;case 72:this.$=[a[s-4],a[s-1],{type:`addMessage`,from:a[s-4].actor,to:a[s-1].actor,signalType:a[s-3],msg:a[s],activate:!0,centralConnection:r.LINETYPE.CENTRAL_CONNECTION},{type:`centralConnection`,signalType:r.LINETYPE.CENTRAL_CONNECTION,actor:a[s-1].actor}];break;case 73:this.$=[a[s-4],a[s-1],{type:`addMessage`,from:a[s-4].actor,to:a[s-1].actor,signalType:a[s-2],msg:a[s],activate:!1,centralConnection:r.LINETYPE.CENTRAL_CONNECTION_REVERSE},{type:`centralConnectionReverse`,signalType:r.LINETYPE.CENTRAL_CONNECTION_REVERSE,actor:a[s-4].actor}];break;case 74:this.$=[a[s-5],a[s-1],{type:`addMessage`,from:a[s-5].actor,to:a[s-1].actor,signalType:a[s-3],msg:a[s],activate:!0,centralConnection:r.LINETYPE.CENTRAL_CONNECTION_DUAL},{type:`centralConnection`,signalType:r.LINETYPE.CENTRAL_CONNECTION,actor:a[s-1].actor},{type:`centralConnectionReverse`,signalType:r.LINETYPE.CENTRAL_CONNECTION_REVERSE,actor:a[s-5].actor}];break;case 75:this.$=[a[s-3],a[s-1],{type:`addMessage`,from:a[s-3].actor,to:a[s-1].actor,signalType:a[s-2],msg:a[s]}];break;case 76:this.$={type:`addParticipant`,actor:a[s-1],config:a[s]};break;case 77:this.$=a[s-1].trim();break;case 78:case 79:this.$={type:`addParticipant`,actor:a[s]};break;case 80:this.$=r.LINETYPE.SOLID_OPEN;break;case 81:this.$=r.LINETYPE.DOTTED_OPEN;break;case 82:this.$=r.LINETYPE.SOLID;break;case 83:this.$=r.LINETYPE.SOLID_TOP;break;case 84:this.$=r.LINETYPE.SOLID_BOTTOM;break;case 85:this.$=r.LINETYPE.STICK_TOP;break;case 86:this.$=r.LINETYPE.STICK_BOTTOM;break;case 87:this.$=r.LINETYPE.SOLID_TOP_DOTTED;break;case 88:this.$=r.LINETYPE.SOLID_BOTTOM_DOTTED;break;case 89:this.$=r.LINETYPE.STICK_TOP_DOTTED;break;case 90:this.$=r.LINETYPE.STICK_BOTTOM_DOTTED;break;case 91:this.$=r.LINETYPE.SOLID_ARROW_TOP_REVERSE;break;case 92:this.$=r.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE;break;case 93:this.$=r.LINETYPE.STICK_ARROW_TOP_REVERSE;break;case 94:this.$=r.LINETYPE.STICK_ARROW_BOTTOM_REVERSE;break;case 95:this.$=r.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED;break;case 96:this.$=r.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED;break;case 97:this.$=r.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED;break;case 98:this.$=r.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED;break;case 99:this.$=r.LINETYPE.BIDIRECTIONAL_SOLID;break;case 100:this.$=r.LINETYPE.DOTTED;break;case 101:this.$=r.LINETYPE.BIDIRECTIONAL_DOTTED;break;case 102:this.$=r.LINETYPE.SOLID_CROSS;break;case 103:this.$=r.LINETYPE.DOTTED_CROSS;break;case 104:this.$=r.LINETYPE.SOLID_POINT;break;case 105:this.$=r.LINETYPE.DOTTED_POINT;break;case 106:this.$=r.parseMessage(a[s].trim().substring(1))}},`anonymous`),table:[{3:1,4:n,5:r,6:i},{1:[3]},{3:5,4:n,5:r,6:i},{3:6,4:n,5:r,6:i},t([1,4,5,10,14,15,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,51,53,54,56,61,62,63,64,73],a,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:o,5:s,8:8,9:10,10:c,13:13,14:l,15:u,18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,51:D,53:O,54:k,56:A,61:j,62:M,63:N,64:P,73:F},t(I,[2,5]),{9:48,13:13,14:l,15:u,18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,51:D,53:O,54:k,56:A,61:j,62:M,63:N,64:P,73:F},t(I,[2,7]),t(I,[2,8]),t(I,[2,9]),t(I,[2,15]),{13:49,51:D,53:O,54:k},{16:[1,50]},{5:[1,51]},{5:[1,54],20:[1,52],21:[1,53]},{23:55,62:L,73:F},{23:57,62:L,73:F},{5:[1,58]},{5:[1,59]},{5:[1,60]},{5:[1,61]},{5:[1,62]},t(I,[2,30]),t(I,[2,31]),{33:[1,63]},{35:[1,64]},t(I,[2,34]),{16:[1,65]},{16:[1,66]},{16:[1,67]},{16:[1,68]},{16:[1,69]},{16:[1,70]},{16:[1,71]},{16:[1,72]},{23:73,55:74,62:L,73:ee},{23:76,55:77,62:L,73:ee},{23:78,62:L,73:F},{69:79,72:[1,80],78:R,79:te,80:ne,81:re,82:ie,83:ae,84:oe,85:se,86:ce,87:le,88:z,89:ue,90:de,91:fe,92:pe,93:B,94:V,95:me,96:H,97:U,98:W,99:he,100:ge,101:_e,102:ve,103:G},{57:107,59:[1,108],67:[1,109],68:[1,110]},{23:111,62:L,73:F},t([72,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103],ye,{23:112,62:L,73:F}),{23:113,62:L,73:F},{23:114,62:L,73:F},t([5,66,72,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104],K),t(I,[2,6]),t(I,[2,16]),t(be,[2,10],{11:115}),t(I,[2,18]),{5:[1,117],20:[1,116]},{5:[1,118]},t(I,[2,22]),{5:[1,119]},t([5,52,66,104],ye),{5:[1,120]},t(I,[2,25]),t(I,[2,26]),t(I,[2,27]),t(I,[2,28]),t(I,[2,29]),t(I,[2,32]),t(I,[2,33]),t(xe,a,{7:121}),t(xe,a,{7:122}),t(xe,a,{7:123}),t(Se,a,{41:124,7:125}),t(Ce,a,{43:126,7:127}),t(Ce,a,{7:127,43:128}),t(we,a,{46:129,7:130}),t(xe,a,{7:131}),{5:[1,133],52:[1,132]},{5:[1,135],52:[1,134]},t(Te,K,{74:136,75:[1,137]}),{5:[1,139],52:[1,138]},{5:[1,141],52:[1,140]},{5:[1,142]},{23:146,62:L,70:[1,143],71:[1,144],72:[1,145],73:F},{69:147,78:R,79:te,80:ne,81:re,82:ie,83:ae,84:oe,85:se,86:ce,87:le,88:z,89:ue,90:de,91:fe,92:pe,93:B,94:V,95:me,96:H,97:U,98:W,99:he,100:ge,101:_e,102:ve,103:G},t(q,[2,80]),t(q,[2,81]),t(q,[2,82]),t(q,[2,83]),t(q,[2,84]),t(q,[2,85]),t(q,[2,86]),t(q,[2,87]),t(q,[2,88]),t(q,[2,89]),t(q,[2,90]),t(q,[2,91]),t(q,[2,92]),t(q,[2,93]),t(q,[2,94]),t(q,[2,95]),t(q,[2,96]),t(q,[2,97]),t(q,[2,98]),t(q,[2,99]),t(q,[2,100]),t(q,[2,101]),t(q,[2,102]),t(q,[2,103]),t(q,[2,104]),t(q,[2,105]),{23:148,62:L,73:F},{23:150,60:149,62:L,73:F},t(Ee,[2,68]),t(Ee,[2,69]),{58:151,104:J},{58:153,104:J},{58:154,104:J},{58:155,104:J},{4:[1,158],5:[1,160],12:157,13:159,17:[1,156],51:D,53:O,54:k},{5:[1,161]},t(I,[2,20]),t(I,[2,21]),t(I,[2,23]),t(I,[2,24]),{4:o,5:s,8:8,9:10,10:c,13:13,14:l,15:u,17:[1,162],18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,51:D,53:O,54:k,56:A,61:j,62:M,63:N,64:P,73:F},{4:o,5:s,8:8,9:10,10:c,13:13,14:l,15:u,17:[1,163],18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,51:D,53:O,54:k,56:A,61:j,62:M,63:N,64:P,73:F},{4:o,5:s,8:8,9:10,10:c,13:13,14:l,15:u,17:[1,164],18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,51:D,53:O,54:k,56:A,61:j,62:M,63:N,64:P,73:F},{17:[1,165]},{4:o,5:s,8:8,9:10,10:c,13:13,14:l,15:u,17:[2,47],18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,50:[1,166],51:D,53:O,54:k,56:A,61:j,62:M,63:N,64:P,73:F},{17:[1,167]},{4:o,5:s,8:8,9:10,10:c,13:13,14:l,15:u,17:[2,45],18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,49:[1,168],51:D,53:O,54:k,56:A,61:j,62:M,63:N,64:P,73:F},{17:[1,169]},{17:[1,170]},{4:o,5:s,8:8,9:10,10:c,13:13,14:l,15:u,17:[2,43],18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,48:[1,171],51:D,53:O,54:k,56:A,61:j,62:M,63:N,64:P,73:F},{4:o,5:s,8:8,9:10,10:c,13:13,14:l,15:u,17:[1,172],18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,51:D,53:O,54:k,56:A,61:j,62:M,63:N,64:P,73:F},{16:[1,173]},t(I,[2,50]),{16:[1,174]},t(I,[2,55]),t(Te,[2,76]),{76:[1,175]},{16:[1,176]},t(I,[2,52]),{16:[1,177]},t(I,[2,57]),t(I,[2,53]),{23:178,62:L,73:F},{23:179,62:L,73:F},{23:180,62:L,73:F},{58:181,104:J},{23:182,62:L,72:[1,183],73:F},{58:184,104:J},{58:185,104:J},{66:[1,186],104:[2,67]},{5:[2,60]},{5:[2,106]},{5:[2,61]},{5:[2,62]},{5:[2,63]},t(I,[2,17]),t(be,[2,11]),{13:187,51:D,53:O,54:k},t(be,[2,13]),t(be,[2,14]),t(I,[2,19]),t(I,[2,35]),t(I,[2,36]),t(I,[2,37]),t(I,[2,38]),{16:[1,188]},t(I,[2,39]),{16:[1,189]},t(I,[2,40]),t(I,[2,41]),{16:[1,190]},t(I,[2,42]),{5:[1,191]},{5:[1,192]},{77:[1,193]},{5:[1,194]},{5:[1,195]},{58:196,104:J},{58:197,104:J},{58:198,104:J},{5:[2,75]},{58:199,104:J},{23:200,62:L,73:F},{5:[2,58]},{5:[2,59]},{23:201,62:L,73:F},t(be,[2,12]),t(Se,a,{7:125,41:202}),t(Ce,a,{7:127,43:203}),t(we,a,{7:130,46:204}),t(I,[2,49]),t(I,[2,54]),t(Te,[2,77]),t(I,[2,51]),t(I,[2,56]),{5:[2,70]},{5:[2,71]},{5:[2,72]},{5:[2,73]},{58:205,104:J},{104:[2,66]},{17:[2,48]},{17:[2,46]},{17:[2,44]},{5:[2,74]}],defaultActions:{5:[2,1],6:[2,2],151:[2,60],152:[2,106],153:[2,61],154:[2,62],155:[2,63],181:[2,75],184:[2,58],185:[2,59],196:[2,70],197:[2,71],198:[2,72],199:[2,73],201:[2,66],202:[2,48],203:[2,46],204:[2,44],205:[2,74]},parseError:e(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:e(function(t){var n=this,r=[0],i=[],a=[null],o=[],s=this.table,c=``,l=0,u=0,d=0,f=2,p=1,m=o.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(t,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;o.push(v);var y=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){r.length-=2*e,a.length-=e,o.length-=e}e(b,`popStack`);function x(){var e=i.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(i=e,e=i.pop()),e=n.symbols_[e]||e),e}e(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=r[r.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=s[w]&&s[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],s[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`:
|
|
1
|
+
import{n as e}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{n as t,t as n}from"./d3-selection-COWvaQNI.js";import{C as r,D as i,F as a,G as o,H as s,U as c,_ as l,a as u,b as d,c as f,i as p,k as m,q as h,r as g,s as _,v,y,z as b}from"./chunk-DSNLSHJZ-_3G4hddj.js";import{t as x}from"./dist-DdXDFcej.js";import{_ as S,m as C}from"./chunk-7S6XSTFO-CZ2C7ULu.js";import{a as w,c as T,i as E,n as D,r as O,s as k}from"./chunk-55XCU76K-BPFOPTBe.js";import{t as A}from"./chunk-2Q5K7J3B-C1jixKkw.js";import{n as j,t as M}from"./mermaid.core-CmfBU89G.js";var N=x(),P=(function(){var t=e(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),n=[1,2],r=[1,3],i=[1,4],a=[2,4],o=[1,9],s=[1,11],c=[1,12],l=[1,14],u=[1,15],d=[1,17],f=[1,18],p=[1,19],m=[1,25],h=[1,26],g=[1,27],_=[1,28],v=[1,29],y=[1,30],b=[1,31],x=[1,32],S=[1,33],C=[1,34],w=[1,35],T=[1,36],E=[1,37],D=[1,38],O=[1,39],k=[1,40],A=[1,42],j=[1,43],M=[1,44],N=[1,45],P=[1,46],F=[1,47],I=[1,4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,48,49,50,51,53,54,56,61,62,63,64,73],L=[1,56],ee=[1,75],R=[1,81],te=[1,82],ne=[1,83],re=[1,84],ie=[1,85],ae=[1,86],oe=[1,87],se=[1,88],ce=[1,89],le=[1,90],z=[1,91],ue=[1,92],de=[1,93],fe=[1,94],pe=[1,95],B=[1,96],V=[1,97],me=[1,98],H=[1,99],U=[1,100],W=[1,101],he=[1,102],ge=[1,103],_e=[1,104],ve=[1,105],G=[1,106],ye=[2,79],K=[2,78],be=[4,5,17,51,53,54],xe=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,51,53,54,56,61,62,63,64,73],Se=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,50,51,53,54,56,61,62,63,64,73],Ce=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,49,51,53,54,56,61,62,63,64,73],we=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,48,51,53,54,56,61,62,63,64,73],Te=[5,52],q=[62,70,71,72,73],Ee=[62,73],J=[1,152],De={trace:e(function(){},`trace`),yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,SD:6,document:7,line:8,statement:9,INVALID:10,box_section:11,box_line:12,participant_statement:13,create:14,box:15,restOfLine:16,end:17,signal:18,autonumber:19,NUM:20,off:21,activate:22,actor:23,deactivate:24,note_statement:25,links_statement:26,link_statement:27,properties_statement:28,details_statement:29,title:30,legacy_title:31,acc_title:32,acc_title_value:33,acc_descr:34,acc_descr_value:35,acc_descr_multiline_value:36,loop:37,rect:38,opt:39,alt:40,else_sections:41,par:42,par_sections:43,par_over:44,critical:45,option_sections:46,break:47,option:48,and:49,else:50,participant:51,AS:52,participant_actor:53,destroy:54,actor_with_config:55,note:56,placement:57,text2:58,over:59,actor_pair:60,links:61,link:62,properties:63,details:64,spaceList:65,",":66,left_of:67,right_of:68,signaltype:69,"+":70,"-":71,"()":72,ACTOR:73,config_object:74,CONFIG_START:75,CONFIG_CONTENT:76,CONFIG_END:77,SOLID_OPEN_ARROW:78,DOTTED_OPEN_ARROW:79,SOLID_ARROW:80,SOLID_ARROW_TOP:81,SOLID_ARROW_BOTTOM:82,STICK_ARROW_TOP:83,STICK_ARROW_BOTTOM:84,SOLID_ARROW_TOP_DOTTED:85,SOLID_ARROW_BOTTOM_DOTTED:86,STICK_ARROW_TOP_DOTTED:87,STICK_ARROW_BOTTOM_DOTTED:88,SOLID_ARROW_TOP_REVERSE:89,SOLID_ARROW_BOTTOM_REVERSE:90,STICK_ARROW_TOP_REVERSE:91,STICK_ARROW_BOTTOM_REVERSE:92,SOLID_ARROW_TOP_REVERSE_DOTTED:93,SOLID_ARROW_BOTTOM_REVERSE_DOTTED:94,STICK_ARROW_TOP_REVERSE_DOTTED:95,STICK_ARROW_BOTTOM_REVERSE_DOTTED:96,BIDIRECTIONAL_SOLID_ARROW:97,DOTTED_ARROW:98,BIDIRECTIONAL_DOTTED_ARROW:99,SOLID_CROSS:100,DOTTED_CROSS:101,SOLID_POINT:102,DOTTED_POINT:103,TXT:104,$accept:0,$end:1},terminals_:{2:`error`,4:`SPACE`,5:`NEWLINE`,6:`SD`,10:`INVALID`,14:`create`,15:`box`,16:`restOfLine`,17:`end`,19:`autonumber`,20:`NUM`,21:`off`,22:`activate`,24:`deactivate`,30:`title`,31:`legacy_title`,32:`acc_title`,33:`acc_title_value`,34:`acc_descr`,35:`acc_descr_value`,36:`acc_descr_multiline_value`,37:`loop`,38:`rect`,39:`opt`,40:`alt`,42:`par`,44:`par_over`,45:`critical`,47:`break`,48:`option`,49:`and`,50:`else`,51:`participant`,52:`AS`,53:`participant_actor`,54:`destroy`,56:`note`,59:`over`,61:`links`,62:`link`,63:`properties`,64:`details`,66:`,`,67:`left_of`,68:`right_of`,70:`+`,71:`-`,72:`()`,73:`ACTOR`,75:`CONFIG_START`,76:`CONFIG_CONTENT`,77:`CONFIG_END`,78:`SOLID_OPEN_ARROW`,79:`DOTTED_OPEN_ARROW`,80:`SOLID_ARROW`,81:`SOLID_ARROW_TOP`,82:`SOLID_ARROW_BOTTOM`,83:`STICK_ARROW_TOP`,84:`STICK_ARROW_BOTTOM`,85:`SOLID_ARROW_TOP_DOTTED`,86:`SOLID_ARROW_BOTTOM_DOTTED`,87:`STICK_ARROW_TOP_DOTTED`,88:`STICK_ARROW_BOTTOM_DOTTED`,89:`SOLID_ARROW_TOP_REVERSE`,90:`SOLID_ARROW_BOTTOM_REVERSE`,91:`STICK_ARROW_TOP_REVERSE`,92:`STICK_ARROW_BOTTOM_REVERSE`,93:`SOLID_ARROW_TOP_REVERSE_DOTTED`,94:`SOLID_ARROW_BOTTOM_REVERSE_DOTTED`,95:`STICK_ARROW_TOP_REVERSE_DOTTED`,96:`STICK_ARROW_BOTTOM_REVERSE_DOTTED`,97:`BIDIRECTIONAL_SOLID_ARROW`,98:`DOTTED_ARROW`,99:`BIDIRECTIONAL_DOTTED_ARROW`,100:`SOLID_CROSS`,101:`DOTTED_CROSS`,102:`SOLID_POINT`,103:`DOTTED_POINT`,104:`TXT`},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[8,1],[11,0],[11,2],[12,2],[12,1],[12,1],[9,1],[9,2],[9,4],[9,2],[9,4],[9,3],[9,3],[9,2],[9,3],[9,3],[9,2],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[9,2],[9,2],[9,1],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[46,1],[46,4],[43,1],[43,4],[41,1],[41,4],[13,5],[13,3],[13,5],[13,3],[13,3],[13,5],[13,3],[13,5],[13,3],[25,4],[25,4],[26,3],[27,3],[28,3],[29,3],[65,2],[65,1],[60,3],[60,1],[57,1],[57,1],[18,5],[18,5],[18,5],[18,5],[18,6],[18,4],[55,2],[74,3],[23,1],[23,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[58,1]],performAction:e(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 3:return r.apply(a[s]),a[s];case 4:case 10:this.$=[];break;case 5:case 11:a[s-1].push(a[s]),this.$=a[s-1];break;case 6:case 7:case 12:case 13:this.$=a[s];break;case 8:case 9:case 14:this.$=[];break;case 16:a[s].type=`createParticipant`,this.$=a[s];break;case 17:a[s-1].unshift({type:`boxStart`,boxData:r.parseBoxData(a[s-2])}),a[s-1].push({type:`boxEnd`,boxText:a[s-2]}),this.$=a[s-1];break;case 19:this.$={type:`sequenceIndex`,sequenceIndex:Number(a[s-2]),sequenceIndexStep:Number(a[s-1]),sequenceVisible:!0,signalType:r.LINETYPE.AUTONUMBER};break;case 20:this.$={type:`sequenceIndex`,sequenceIndex:Number(a[s-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:r.LINETYPE.AUTONUMBER};break;case 21:this.$={type:`sequenceIndex`,sequenceVisible:!1,signalType:r.LINETYPE.AUTONUMBER};break;case 22:this.$={type:`sequenceIndex`,sequenceVisible:!0,signalType:r.LINETYPE.AUTONUMBER};break;case 23:this.$={type:`activeStart`,signalType:r.LINETYPE.ACTIVE_START,actor:a[s-1].actor};break;case 24:this.$={type:`activeEnd`,signalType:r.LINETYPE.ACTIVE_END,actor:a[s-1].actor};break;case 30:r.setDiagramTitle(a[s].substring(6)),this.$=a[s].substring(6);break;case 31:r.setDiagramTitle(a[s].substring(7)),this.$=a[s].substring(7);break;case 32:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 33:case 34:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 35:a[s-1].unshift({type:`loopStart`,loopText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.LOOP_START}),a[s-1].push({type:`loopEnd`,loopText:a[s-2],signalType:r.LINETYPE.LOOP_END}),this.$=a[s-1];break;case 36:a[s-1].unshift({type:`rectStart`,color:r.parseMessage(a[s-2]),signalType:r.LINETYPE.RECT_START}),a[s-1].push({type:`rectEnd`,color:r.parseMessage(a[s-2]),signalType:r.LINETYPE.RECT_END}),this.$=a[s-1];break;case 37:a[s-1].unshift({type:`optStart`,optText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.OPT_START}),a[s-1].push({type:`optEnd`,optText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.OPT_END}),this.$=a[s-1];break;case 38:a[s-1].unshift({type:`altStart`,altText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.ALT_START}),a[s-1].push({type:`altEnd`,signalType:r.LINETYPE.ALT_END}),this.$=a[s-1];break;case 39:a[s-1].unshift({type:`parStart`,parText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.PAR_START}),a[s-1].push({type:`parEnd`,signalType:r.LINETYPE.PAR_END}),this.$=a[s-1];break;case 40:a[s-1].unshift({type:`parStart`,parText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.PAR_OVER_START}),a[s-1].push({type:`parEnd`,signalType:r.LINETYPE.PAR_END}),this.$=a[s-1];break;case 41:a[s-1].unshift({type:`criticalStart`,criticalText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.CRITICAL_START}),a[s-1].push({type:`criticalEnd`,signalType:r.LINETYPE.CRITICAL_END}),this.$=a[s-1];break;case 42:a[s-1].unshift({type:`breakStart`,breakText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.BREAK_START}),a[s-1].push({type:`breakEnd`,optText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.BREAK_END}),this.$=a[s-1];break;case 44:this.$=a[s-3].concat([{type:`option`,optionText:r.parseMessage(a[s-1]),signalType:r.LINETYPE.CRITICAL_OPTION},a[s]]);break;case 46:this.$=a[s-3].concat([{type:`and`,parText:r.parseMessage(a[s-1]),signalType:r.LINETYPE.PAR_AND},a[s]]);break;case 48:this.$=a[s-3].concat([{type:`else`,altText:r.parseMessage(a[s-1]),signalType:r.LINETYPE.ALT_ELSE},a[s]]);break;case 49:a[s-3].draw=`participant`,a[s-3].type=`addParticipant`,a[s-3].description=r.parseMessage(a[s-1]),this.$=a[s-3];break;case 50:a[s-1].draw=`participant`,a[s-1].type=`addParticipant`,this.$=a[s-1];break;case 51:a[s-3].draw=`actor`,a[s-3].type=`addParticipant`,a[s-3].description=r.parseMessage(a[s-1]),this.$=a[s-3];break;case 52:case 57:a[s-1].draw=`actor`,a[s-1].type=`addParticipant`,this.$=a[s-1];break;case 53:a[s-1].type=`destroyParticipant`,this.$=a[s-1];break;case 54:a[s-3].draw=`participant`,a[s-3].type=`addParticipant`,a[s-3].description=r.parseMessage(a[s-1]),this.$=a[s-3];break;case 55:a[s-1].draw=`participant`,a[s-1].type=`addParticipant`,this.$=a[s-1];break;case 56:a[s-3].draw=`actor`,a[s-3].type=`addParticipant`,a[s-3].description=r.parseMessage(a[s-1]),this.$=a[s-3];break;case 58:this.$=[a[s-1],{type:`addNote`,placement:a[s-2],actor:a[s-1].actor,text:a[s]}];break;case 59:a[s-2]=[].concat(a[s-1],a[s-1]).slice(0,2),a[s-2][0]=a[s-2][0].actor,a[s-2][1]=a[s-2][1].actor,this.$=[a[s-1],{type:`addNote`,placement:r.PLACEMENT.OVER,actor:a[s-2].slice(0,2),text:a[s]}];break;case 60:this.$=[a[s-1],{type:`addLinks`,actor:a[s-1].actor,text:a[s]}];break;case 61:this.$=[a[s-1],{type:`addALink`,actor:a[s-1].actor,text:a[s]}];break;case 62:this.$=[a[s-1],{type:`addProperties`,actor:a[s-1].actor,text:a[s]}];break;case 63:this.$=[a[s-1],{type:`addDetails`,actor:a[s-1].actor,text:a[s]}];break;case 66:this.$=[a[s-2],a[s]];break;case 67:this.$=a[s];break;case 68:this.$=r.PLACEMENT.LEFTOF;break;case 69:this.$=r.PLACEMENT.RIGHTOF;break;case 70:this.$=[a[s-4],a[s-1],{type:`addMessage`,from:a[s-4].actor,to:a[s-1].actor,signalType:a[s-3],msg:a[s],activate:!0},{type:`activeStart`,signalType:r.LINETYPE.ACTIVE_START,actor:a[s-1].actor}];break;case 71:this.$=[a[s-4],a[s-1],{type:`addMessage`,from:a[s-4].actor,to:a[s-1].actor,signalType:a[s-3],msg:a[s]},{type:`activeEnd`,signalType:r.LINETYPE.ACTIVE_END,actor:a[s-4].actor}];break;case 72:this.$=[a[s-4],a[s-1],{type:`addMessage`,from:a[s-4].actor,to:a[s-1].actor,signalType:a[s-3],msg:a[s],activate:!0,centralConnection:r.LINETYPE.CENTRAL_CONNECTION},{type:`centralConnection`,signalType:r.LINETYPE.CENTRAL_CONNECTION,actor:a[s-1].actor}];break;case 73:this.$=[a[s-4],a[s-1],{type:`addMessage`,from:a[s-4].actor,to:a[s-1].actor,signalType:a[s-2],msg:a[s],activate:!1,centralConnection:r.LINETYPE.CENTRAL_CONNECTION_REVERSE},{type:`centralConnectionReverse`,signalType:r.LINETYPE.CENTRAL_CONNECTION_REVERSE,actor:a[s-4].actor}];break;case 74:this.$=[a[s-5],a[s-1],{type:`addMessage`,from:a[s-5].actor,to:a[s-1].actor,signalType:a[s-3],msg:a[s],activate:!0,centralConnection:r.LINETYPE.CENTRAL_CONNECTION_DUAL},{type:`centralConnection`,signalType:r.LINETYPE.CENTRAL_CONNECTION,actor:a[s-1].actor},{type:`centralConnectionReverse`,signalType:r.LINETYPE.CENTRAL_CONNECTION_REVERSE,actor:a[s-5].actor}];break;case 75:this.$=[a[s-3],a[s-1],{type:`addMessage`,from:a[s-3].actor,to:a[s-1].actor,signalType:a[s-2],msg:a[s]}];break;case 76:this.$={type:`addParticipant`,actor:a[s-1],config:a[s]};break;case 77:this.$=a[s-1].trim();break;case 78:case 79:this.$={type:`addParticipant`,actor:a[s]};break;case 80:this.$=r.LINETYPE.SOLID_OPEN;break;case 81:this.$=r.LINETYPE.DOTTED_OPEN;break;case 82:this.$=r.LINETYPE.SOLID;break;case 83:this.$=r.LINETYPE.SOLID_TOP;break;case 84:this.$=r.LINETYPE.SOLID_BOTTOM;break;case 85:this.$=r.LINETYPE.STICK_TOP;break;case 86:this.$=r.LINETYPE.STICK_BOTTOM;break;case 87:this.$=r.LINETYPE.SOLID_TOP_DOTTED;break;case 88:this.$=r.LINETYPE.SOLID_BOTTOM_DOTTED;break;case 89:this.$=r.LINETYPE.STICK_TOP_DOTTED;break;case 90:this.$=r.LINETYPE.STICK_BOTTOM_DOTTED;break;case 91:this.$=r.LINETYPE.SOLID_ARROW_TOP_REVERSE;break;case 92:this.$=r.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE;break;case 93:this.$=r.LINETYPE.STICK_ARROW_TOP_REVERSE;break;case 94:this.$=r.LINETYPE.STICK_ARROW_BOTTOM_REVERSE;break;case 95:this.$=r.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED;break;case 96:this.$=r.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED;break;case 97:this.$=r.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED;break;case 98:this.$=r.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED;break;case 99:this.$=r.LINETYPE.BIDIRECTIONAL_SOLID;break;case 100:this.$=r.LINETYPE.DOTTED;break;case 101:this.$=r.LINETYPE.BIDIRECTIONAL_DOTTED;break;case 102:this.$=r.LINETYPE.SOLID_CROSS;break;case 103:this.$=r.LINETYPE.DOTTED_CROSS;break;case 104:this.$=r.LINETYPE.SOLID_POINT;break;case 105:this.$=r.LINETYPE.DOTTED_POINT;break;case 106:this.$=r.parseMessage(a[s].trim().substring(1))}},`anonymous`),table:[{3:1,4:n,5:r,6:i},{1:[3]},{3:5,4:n,5:r,6:i},{3:6,4:n,5:r,6:i},t([1,4,5,10,14,15,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,51,53,54,56,61,62,63,64,73],a,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:o,5:s,8:8,9:10,10:c,13:13,14:l,15:u,18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,51:D,53:O,54:k,56:A,61:j,62:M,63:N,64:P,73:F},t(I,[2,5]),{9:48,13:13,14:l,15:u,18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,51:D,53:O,54:k,56:A,61:j,62:M,63:N,64:P,73:F},t(I,[2,7]),t(I,[2,8]),t(I,[2,9]),t(I,[2,15]),{13:49,51:D,53:O,54:k},{16:[1,50]},{5:[1,51]},{5:[1,54],20:[1,52],21:[1,53]},{23:55,62:L,73:F},{23:57,62:L,73:F},{5:[1,58]},{5:[1,59]},{5:[1,60]},{5:[1,61]},{5:[1,62]},t(I,[2,30]),t(I,[2,31]),{33:[1,63]},{35:[1,64]},t(I,[2,34]),{16:[1,65]},{16:[1,66]},{16:[1,67]},{16:[1,68]},{16:[1,69]},{16:[1,70]},{16:[1,71]},{16:[1,72]},{23:73,55:74,62:L,73:ee},{23:76,55:77,62:L,73:ee},{23:78,62:L,73:F},{69:79,72:[1,80],78:R,79:te,80:ne,81:re,82:ie,83:ae,84:oe,85:se,86:ce,87:le,88:z,89:ue,90:de,91:fe,92:pe,93:B,94:V,95:me,96:H,97:U,98:W,99:he,100:ge,101:_e,102:ve,103:G},{57:107,59:[1,108],67:[1,109],68:[1,110]},{23:111,62:L,73:F},t([72,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103],ye,{23:112,62:L,73:F}),{23:113,62:L,73:F},{23:114,62:L,73:F},t([5,66,72,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104],K),t(I,[2,6]),t(I,[2,16]),t(be,[2,10],{11:115}),t(I,[2,18]),{5:[1,117],20:[1,116]},{5:[1,118]},t(I,[2,22]),{5:[1,119]},t([5,52,66,104],ye),{5:[1,120]},t(I,[2,25]),t(I,[2,26]),t(I,[2,27]),t(I,[2,28]),t(I,[2,29]),t(I,[2,32]),t(I,[2,33]),t(xe,a,{7:121}),t(xe,a,{7:122}),t(xe,a,{7:123}),t(Se,a,{41:124,7:125}),t(Ce,a,{43:126,7:127}),t(Ce,a,{7:127,43:128}),t(we,a,{46:129,7:130}),t(xe,a,{7:131}),{5:[1,133],52:[1,132]},{5:[1,135],52:[1,134]},t(Te,K,{74:136,75:[1,137]}),{5:[1,139],52:[1,138]},{5:[1,141],52:[1,140]},{5:[1,142]},{23:146,62:L,70:[1,143],71:[1,144],72:[1,145],73:F},{69:147,78:R,79:te,80:ne,81:re,82:ie,83:ae,84:oe,85:se,86:ce,87:le,88:z,89:ue,90:de,91:fe,92:pe,93:B,94:V,95:me,96:H,97:U,98:W,99:he,100:ge,101:_e,102:ve,103:G},t(q,[2,80]),t(q,[2,81]),t(q,[2,82]),t(q,[2,83]),t(q,[2,84]),t(q,[2,85]),t(q,[2,86]),t(q,[2,87]),t(q,[2,88]),t(q,[2,89]),t(q,[2,90]),t(q,[2,91]),t(q,[2,92]),t(q,[2,93]),t(q,[2,94]),t(q,[2,95]),t(q,[2,96]),t(q,[2,97]),t(q,[2,98]),t(q,[2,99]),t(q,[2,100]),t(q,[2,101]),t(q,[2,102]),t(q,[2,103]),t(q,[2,104]),t(q,[2,105]),{23:148,62:L,73:F},{23:150,60:149,62:L,73:F},t(Ee,[2,68]),t(Ee,[2,69]),{58:151,104:J},{58:153,104:J},{58:154,104:J},{58:155,104:J},{4:[1,158],5:[1,160],12:157,13:159,17:[1,156],51:D,53:O,54:k},{5:[1,161]},t(I,[2,20]),t(I,[2,21]),t(I,[2,23]),t(I,[2,24]),{4:o,5:s,8:8,9:10,10:c,13:13,14:l,15:u,17:[1,162],18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,51:D,53:O,54:k,56:A,61:j,62:M,63:N,64:P,73:F},{4:o,5:s,8:8,9:10,10:c,13:13,14:l,15:u,17:[1,163],18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,51:D,53:O,54:k,56:A,61:j,62:M,63:N,64:P,73:F},{4:o,5:s,8:8,9:10,10:c,13:13,14:l,15:u,17:[1,164],18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,51:D,53:O,54:k,56:A,61:j,62:M,63:N,64:P,73:F},{17:[1,165]},{4:o,5:s,8:8,9:10,10:c,13:13,14:l,15:u,17:[2,47],18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,50:[1,166],51:D,53:O,54:k,56:A,61:j,62:M,63:N,64:P,73:F},{17:[1,167]},{4:o,5:s,8:8,9:10,10:c,13:13,14:l,15:u,17:[2,45],18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,49:[1,168],51:D,53:O,54:k,56:A,61:j,62:M,63:N,64:P,73:F},{17:[1,169]},{17:[1,170]},{4:o,5:s,8:8,9:10,10:c,13:13,14:l,15:u,17:[2,43],18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,48:[1,171],51:D,53:O,54:k,56:A,61:j,62:M,63:N,64:P,73:F},{4:o,5:s,8:8,9:10,10:c,13:13,14:l,15:u,17:[1,172],18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,51:D,53:O,54:k,56:A,61:j,62:M,63:N,64:P,73:F},{16:[1,173]},t(I,[2,50]),{16:[1,174]},t(I,[2,55]),t(Te,[2,76]),{76:[1,175]},{16:[1,176]},t(I,[2,52]),{16:[1,177]},t(I,[2,57]),t(I,[2,53]),{23:178,62:L,73:F},{23:179,62:L,73:F},{23:180,62:L,73:F},{58:181,104:J},{23:182,62:L,72:[1,183],73:F},{58:184,104:J},{58:185,104:J},{66:[1,186],104:[2,67]},{5:[2,60]},{5:[2,106]},{5:[2,61]},{5:[2,62]},{5:[2,63]},t(I,[2,17]),t(be,[2,11]),{13:187,51:D,53:O,54:k},t(be,[2,13]),t(be,[2,14]),t(I,[2,19]),t(I,[2,35]),t(I,[2,36]),t(I,[2,37]),t(I,[2,38]),{16:[1,188]},t(I,[2,39]),{16:[1,189]},t(I,[2,40]),t(I,[2,41]),{16:[1,190]},t(I,[2,42]),{5:[1,191]},{5:[1,192]},{77:[1,193]},{5:[1,194]},{5:[1,195]},{58:196,104:J},{58:197,104:J},{58:198,104:J},{5:[2,75]},{58:199,104:J},{23:200,62:L,73:F},{5:[2,58]},{5:[2,59]},{23:201,62:L,73:F},t(be,[2,12]),t(Se,a,{7:125,41:202}),t(Ce,a,{7:127,43:203}),t(we,a,{7:130,46:204}),t(I,[2,49]),t(I,[2,54]),t(Te,[2,77]),t(I,[2,51]),t(I,[2,56]),{5:[2,70]},{5:[2,71]},{5:[2,72]},{5:[2,73]},{58:205,104:J},{104:[2,66]},{17:[2,48]},{17:[2,46]},{17:[2,44]},{5:[2,74]}],defaultActions:{5:[2,1],6:[2,2],151:[2,60],152:[2,106],153:[2,61],154:[2,62],155:[2,63],181:[2,75],184:[2,58],185:[2,59],196:[2,70],197:[2,71],198:[2,72],199:[2,73],201:[2,66],202:[2,48],203:[2,46],204:[2,44],205:[2,74]},parseError:e(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:e(function(t){var n=this,r=[0],i=[],a=[null],o=[],s=this.table,c=``,l=0,u=0,d=0,f=2,p=1,m=o.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(t,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;o.push(v);var y=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){r.length-=2*e,a.length-=e,o.length-=e}e(b,`popStack`);function x(){var e=i.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(i=e,e=i.pop()),e=n.symbols_[e]||e),e}e(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=r[r.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=s[w]&&s[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],s[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`:
|
|
2
2
|
`+h.showPosition()+`
|
|
3
3
|
Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:r.push(S),a.push(h.yytext),o.push(h.yylloc),r.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,c=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=a[a.length-k],D._$={first_line:o[o.length-(k||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(k||1)].first_column,last_column:o[o.length-1].last_column},y&&(D._$.range=[o[o.length-(k||1)].range[0],o[o.length-1].range[1]]),E=this.performAction.apply(D,[c,u,l,g.yy,T[1],a,o].concat(m)),E!==void 0)return E;k&&(r=r.slice(0,-1*k*2),a=a.slice(0,-1*k),o=o.slice(0,-1*k)),r.push(this.productions_[T[1]][0]),a.push(D.$),o.push(D._$),A=s[r[r.length-2]][r[r.length-1]],r.push(A);break;case 3:return!0}}return!0},`parse`)};De.lexer=(function(){return{EOF:1,parseError:e(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:e(function(e,t){return this.yy=t||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={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(function(){var e=this._input[0];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},`input`),unput:e(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=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 i=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===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:e(function(){return this._more=!0,this},`more`),reject:e(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError(`Lexical error on line `+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:e(function(e){this.unput(this.match.slice(e))},`less`),pastInput:e(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:e(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:e(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{M as e,j as t}from"./snapshots-
|
|
1
|
+
import{M as e,j as t}from"./snapshots-CTS2iez5.js";var n=8,r=3e4,i=n=>n instanceof e&&n.code===t.unavailable,a=n=>{if(!(n instanceof e)||n.code!==t.conflict)return;let r=n.data;return typeof r?.text==`string`&&(typeof r.version==`string`||r.version===null)?{text:r.text,version:r.version}:void 0},o=e=>`backup:${e}`,s=e=>typeof e==`object`&&!!e&&typeof e.text==`string`&&(typeof e.over==`string`||e.over===null),c=class e{path;text;version;state=`saved`;error;backup;host;delay;report;retryDelay;format;running;timer;dirty=!1;stale=!1;by;closed=!1;closing=!1;stops=[];stateListeners=new Set;undoListeners=new Set;undone=[];done=[];backupDelay;backupTimer;storage=!0;constructor(e,t,n,r){this.host=e,this.path=t,this.text=n.text,this.version=n.version,this.delay=r.delay??500,this.report=r.report??!0,this.backupDelay=r.backupDelay??1e3,this.retryDelay=r.retryDelay??1e3}static async open(t,n,r={}){let i=new e(t,n,await t[`files/read`]({path:n}),r);try{let e=await t[`storage/get`]?.({key:o(n)});e===void 0?i.storage=!1:s(e.value)&&e.value.over===i.version?i.backup=e.value:e.value!==null&&e.value!==void 0&&await t[`storage/set`]?.({key:o(n),value:null})}catch{i.storage=!1}let{watch:a}=await t[`files/watch`]({paths:[n]});return i.stops.push(t.on(`files/changed`,e=>{if(e.watch!==a)return;let t=e.changes.find(e=>e.path===n&&e.version!==i.version);t&&i.changed(t.by)}),()=>{t[`files/unwatch`]({watch:a}).catch(()=>void 0)}),i}attach(e){this.format=e}onState(e){return this.stateListeners.add(e),()=>this.stateListeners.delete(e)}edited(){this.closed||(this.dirty=!0,this.set(`unsaved`),clearTimeout(this.timer),this.timer=setTimeout(()=>{this.kick()},this.delay),this.storage&&(clearTimeout(this.backupTimer),this.backupTimer=setTimeout(()=>{this.backUp()},this.backupDelay)))}pushEdit(e){this.closed||(this.done.push(e),this.undone.length=0,this.edited(),this.undoChanged())}get canUndo(){return this.done.length>0}get canRedo(){return this.undone.length>0}get undoLabel(){return this.done.at(-1)?.label}get redoLabel(){return this.undone.at(-1)?.label}undo(){let e=this.done.pop();return e?(e.undo(),this.undone.push(e),this.edited(),this.undoChanged(),!0):!1}redo(){let e=this.undone.pop();return e?(e.redo(),this.done.push(e),this.edited(),this.undoChanged(),!0):!1}onUndo(e){return this.undoListeners.add(e),()=>this.undoListeners.delete(e)}undoChanged(){for(let e of this.undoListeners)e()}restoreBackup(){let e=this.backup;return!e||!this.format||e.over!==this.version?!1:(this.backup=void 0,this.format.take(e.text,this.text),this.edited(),!0)}async keepBackup(e){this.storage&&await this.host[`storage/set`]?.({key:o(this.path),value:e}).catch(()=>void 0)}async discardBackup(){this.backup=void 0,await this.keepBackup(null)}async backUp(){if(!this.format||this.closed)return;let e=this.format.save(this.text),t=e===void 0?null:{over:this.version,text:e};await this.keepBackup(t)}flush(){return clearTimeout(this.timer),this.kick()}changed(e){return this.stale=!0,this.by=e,this.kick()}async close(){this.closing=!0,await this.flush(),clearTimeout(this.backupTimer),this.state===`saved`&&await this.keepBackup(null),this.closed=!0;for(let e of this.stops.splice(0))e()}set(e,t){if(this.error=t,e!==this.state||t!==void 0){this.state=e;for(let t of this.stateListeners)t(e);this.report&&this.host[`editor/state`]&&this.host[`editor/state`]({state:e,...t===void 0?{}:{message:t}}).catch(()=>void 0)}}take(e,t,n){let r=this.text;this.text=e,this.version=t,e!==r&&this.format?.take(e,r,n)}waiting(){return this.dirty}kick(){return this.running??=this.loop(),this.running}async loop(){await Promise.resolve();let e=0,t=0;try{for(;this.dirty||this.stale;){if(this.stale){this.stale=!1;let e=this.by;this.by=void 0;let t=await this.host[`files/read`]({path:this.path});this.take(t.text,t.version,e)}if(!this.dirty||!this.format)continue;this.dirty=!1;let o=this.format.save(this.text);if(o===void 0)this.set(`saved`);else{this.set(`saving`);try{let{version:e}=await this.host[`files/write`]({path:this.path,text:o,over:this.version});if(this.text=o,this.version=e,!this.waiting()){let e=this.format.save(this.text)===void 0;this.set(e?`saved`:`unsaved`),e&&(clearTimeout(this.backupTimer),await this.keepBackup(null))}}catch(s){let c=a(s);if(!c){if(i(s)&&!this.closing){this.dirty=!0,this.set(`unsaved`);let e=Math.min(this.retryDelay*2**t++,r);await new Promise(t=>setTimeout(t,e));continue}this.set(`error`,s instanceof Error?s.message:String(s));continue}if(c.text===o){this.text=o,this.version=c.version,this.waiting()||this.set(this.format.save(this.text)===void 0?`saved`:`unsaved`);continue}if(this.take(c.text,c.version),++e>=n){this.set(`error`,`${this.path} keeps changing.`);continue}this.dirty=!0}}}}catch(e){this.dirty=!1,this.stale=!1,this.set(`error`,e instanceof Error?e.message:String(e))}finally{this.running=void 0}}};export{c as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{B as e,K as t,Q as n,R as r,V as i,W as a,X as o,Y as s,et as c,it as ee,nt as te,q as l,rt as u,tt as d,z as ne}from"./snapshots-D8TtZp1x.js";var re=/^[A-Za-z0-9_-]+(?:\.[A-Za-z0-9_-]+)*$/u,f=c({display:d(),speak:d()}),p=c({declarations:e(d()).default([]),selectors:e(d()).default([]),match:n(d(),d()).refine(e=>Object.keys(e).length>0,`A match needs at least one case.`)}),ie=u([d(),f,te([p])]),ae=n(d(),ee()).superRefine((e,t)=>{for(let[n,r]of Object.entries(e)){if(n===`$schema`){typeof r!=`string`&&t.addIssue({code:`custom`,path:[n],message:`$schema is a string.`});continue}re.test(n)||t.addIssue({code:`custom`,path:[n],message:`"${n}" is not a message key: letters, digits, _ and -, in segments joined by dots.`});let e=ie.safeParse(r);e.success||t.addIssue({code:`custom`,path:[n],message:Array.isArray(r)?`A message with variants is [{ "declarations": […], "selectors": […], "match": {…} }]: ${e.error.issues.map(e=>e.message).join(`; `)}`:`A message is a string, { display, speak }, or [{ declarations, selectors, match }].`})}}).transform(e=>{let t={...e};return delete t.$schema,t}),m=/^[A-Za-z0-9_-]+$/u,h=d().regex(m,`A name is letters, digits, _ and -.`),g=t(()=>u([d(),f,p,e(g),n(h,g)])),oe=c({id:h,say:u([d(),p]).optional(),screen:n(h,g).optional()}),_=c({id:h,text:n(h,g).optional(),alt:n(h,d()).optional(),notes:u([d(),p]).optional()}),se=c({id:h,text:n(h,g).optional()}),ce=c({title:d().optional(),text:n(h,g).optional(),parts:e(oe).default([]),slides:e(_).default([]),boards:e(se).default([])}).superRefine((e,t)=>{let n=new Set;e.parts.forEach((e,r)=>{n.has(e.id)&&t.addIssue({code:`custom`,path:[`parts`,r,`id`],message:`Two parts are "${e.id}".`}),n.add(e.id)});let r=new Set;e.slides.forEach((e,n)=>{r.has(e.id)&&t.addIssue({code:`custom`,path:[`slides`,n,`id`],message:`Two slides are "${e.id}".`}),r.add(e.id)});let i=new Set;e.boards.forEach((e,n)=>{i.has(e.id)&&t.addIssue({code:`custom`,path:[`boards`,n,`id`],message:`Two boards are "${e.id}".`}),i.add(e.id)})}),v=d().regex(m,`A name is letters, digits, _ and -.`),y=[`dk1`,`lt1`,`dk2`,`lt2`,`accent1`,`accent2`,`accent3`,`accent4`,`accent5`,`accent6`,`hlink`,`folHlink`],le=[`l`,`ctr`,`r`,`just`],ue=`line.lineInv.triangle.rtTriangle.rect.diamond.parallelogram.trapezoid.nonIsoscelesTrapezoid.pentagon.hexagon.heptagon.octagon.decagon.dodecagon.star4.star5.star6.star7.star8.star10.star12.star16.star24.star32.roundRect.round1Rect.round2SameRect.round2DiagRect.snipRoundRect.snip1Rect.snip2SameRect.snip2DiagRect.plaque.ellipse.teardrop.homePlate.chevron.pieWedge.pie.blockArc.donut.noSmoking.rightArrow.leftArrow.upArrow.downArrow.stripedRightArrow.notchedRightArrow.bentUpArrow.leftRightArrow.upDownArrow.leftUpArrow.leftRightUpArrow.quadArrow.leftArrowCallout.rightArrowCallout.upArrowCallout.downArrowCallout.leftRightArrowCallout.upDownArrowCallout.quadArrowCallout.bentArrow.uturnArrow.circularArrow.leftCircularArrow.leftRightCircularArrow.curvedRightArrow.curvedLeftArrow.curvedUpArrow.curvedDownArrow.swooshArrow.cube.can.lightningBolt.heart.sun.moon.smileyFace.irregularSeal1.irregularSeal2.foldedCorner.bevel.frame.halfFrame.corner.diagStripe.chord.arc.leftBracket.rightBracket.leftBrace.rightBrace.bracketPair.bracePair.straightConnector1.bentConnector2.bentConnector3.bentConnector4.bentConnector5.curvedConnector2.curvedConnector3.curvedConnector4.curvedConnector5.callout1.callout2.callout3.accentCallout1.accentCallout2.accentCallout3.borderCallout1.borderCallout2.borderCallout3.accentBorderCallout1.accentBorderCallout2.accentBorderCallout3.wedgeRectCallout.wedgeRoundRectCallout.wedgeEllipseCallout.cloudCallout.cloud.ribbon.ribbon2.ellipseRibbon.ellipseRibbon2.leftRightRibbon.verticalScroll.horizontalScroll.wave.doubleWave.plus.flowChartProcess.flowChartDecision.flowChartInputOutput.flowChartPredefinedProcess.flowChartInternalStorage.flowChartDocument.flowChartMultidocument.flowChartTerminator.flowChartPreparation.flowChartManualInput.flowChartManualOperation.flowChartConnector.flowChartPunchedCard.flowChartPunchedTape.flowChartSummingJunction.flowChartOr.flowChartCollate.flowChartSort.flowChartExtract.flowChartMerge.flowChartOfflineStorage.flowChartOnlineStorage.flowChartMagneticTape.flowChartMagneticDisk.flowChartMagneticDrum.flowChartDisplay.flowChartDelay.flowChartAlternateProcess.flowChartOffpageConnector.actionButtonBlank.actionButtonHome.actionButtonHelp.actionButtonInformation.actionButtonForwardNext.actionButtonBackPrevious.actionButtonEnd.actionButtonBeginning.actionButtonReturn.actionButtonDocument.actionButtonSound.actionButtonMovie.gear6.gear9.funnel.mathPlus.mathMinus.mathMultiply.mathDivide.mathEqual.mathNotEqual.cornerTabs.squareTabs.plaqueTabs.chartX.chartStar.chartPlus`.split(`.`),b=[`appear`,`fade`,`fly-in`,`float-in`,`split`,`wipe`,`zoom`,`disappear`,`fade-out`,`fly-out`,`float-out`,`split-out`,`wipe-out`,`zoom-out`,`pulse`,`grow-shrink`,`spin`,`transparency`,`path`],de=[`word`,`letter`],fe=[`until-next-click`,`until-end-of-slide`],pe=[`on-click`,`with-previous`,`after-previous`],x=[`from-bottom`,`from-top`,`from-left`,`from-right`,`from-top-right`,`from-bottom-right`,`from-top-left`,`from-bottom-left`,`vertical-out`,`vertical-in`,`horizontal-out`,`horizontal-in`,`in`,`out`,`rotate`,`up`,`down`,`clockwise`,`counterclockwise`,`both`,`horizontal`,`vertical`],S=[`solid`,`sysDot`,`sysDash`,`dash`,`dashDot`,`lgDash`,`lgDashDot`,`lgDashDotDot`,`dot`,`sysDashDot`,`sysDashDotDot`],C=[`flat`,`rnd`,`sq`],w=[`round`,`bevel`,`miter`],T=[`sng`,`dbl`,`thickThin`,`thinThick`,`tri`],E=[`none`,`triangle`,`arrow`,`stealth`,`diamond`,`oval`],D=[`sm`,`med`,`lg`],O=c({w:r(D).optional(),len:r(D).optional()}),me=c({x:s(),y:s(),w:s().nonnegative(),h:s().nonnegative()}),k=[`tx1`,`bg1`,`tx2`,`bg2`],A=[...y,...k],j=[`tint`,`shade`,`lumMod`,`lumOff`,`lum`,`satMod`,`satOff`,`sat`,`hueMod`,`hueOff`,`hue`,`alpha`,`alphaMod`,`alphaOff`],M=`(?:${A.join(`|`)})`,he=`(?:${j.join(`|`)}) -?\\d+(?:\\.\\d+)?(?:%|°)`,N=RegExp(`^(${M}) (lighter|darker) (100(?:\\.0{1,3})?|[1-9]?\\d(?:\\.\\d{1,3})?)%$`,`u`),P=RegExp(`^(${M}|#[0-9A-Fa-f]{6})((?: ${he})+)$`,`u`),F=/^#[0-9A-Fa-f]{6}$/u,I=e=>A.includes(e),ge=e=>j.includes(e),L=new Set([`hue`,`hueOff`]);function R(e){if(I(e))return e;if(F.test(e))return{rgb:e.toUpperCase()};let t=P.exec(e);if(t){let[,e=``,n=``]=t,r=[];for(let e of n.matchAll(/ (\w+) (-?[\d.]+)(%|°)/gu)){let[,t=``,n=``,i]=e;if(!ge(t)||i===`°`!==L.has(t))return;let a=Number(n);r.push({name:t,value:i===`%`?Math.round(a*1e3)/1e5:a})}return I(e)?{theme_color:e,transforms:r}:{rgb:e.toUpperCase(),transforms:r}}let n=N.exec(e),[,r=``,i,a=``]=n??[],o=Math.round(Number(a)*1e3);if(!(!n||!I(r)||o<=0||o>1e5))return{theme_color:r,brightness:(i===`lighter`?o:-o)/1e5}}var z=e=>L.has(e.name)?`${e.name} ${String(Math.round(e.value*1e3)/1e3)}°`:`${e.name} ${String(Math.round(e.value*1e5)/1e3)}%`;function _e(e){if(typeof e==`string`)return e;if(`rgb`in e)return e.transforms&&e.transforms.length>0?`${e.rgb} ${e.transforms.map(z).join(` `)}`:e.rgb;if(`transforms`in e)return e.transforms.length===0?e.theme_color:`${e.theme_color} ${e.transforms.map(z).join(` `)}`;let t=Math.round(Math.abs(e.brightness)*1e5)/1e3;return t===0?e.theme_color:`${e.theme_color} ${e.brightness>0?`lighter`:`darker`} ${String(t)}%`}var B=`A colour is one of the theme's (${y.join(`, `)}) or the colour map's (${k.join(`, `)}), one of them lighter or darker by a share over 0 up to 100% ("accent1 lighter 40%", "dk1 darker 25%"), #RRGGBB, or one of them with DrawingML's transforms in order ("accent1 lumMod 75% lumOff 25%", "#4472C4 alpha 50%", "accent2 hueOff 30°": ${j.join(`, `)}).`,V=u([r(A),d().regex(N,B),d().regex(F,B),d().regex(P,B)]).refine(e=>R(e)!==void 0,B),ve=`alphaLcParenBoth.alphaUcParenBoth.alphaLcParenR.alphaUcParenR.alphaLcPeriod.alphaUcPeriod.arabicParenBoth.arabicParenR.arabicPeriod.arabicPlain.romanLcParenBoth.romanUcParenBoth.romanLcParenR.romanUcParenR.romanLcPeriod.romanUcPeriod.circleNumDbPlain.circleNumWdBlackPlain.circleNumWdWhitePlain.arabicDbPeriod.arabicDbPlain.ea1ChsPeriod.ea1ChsPlain.ea1ChtPeriod.ea1ChtPlain.ea1JpnChsDbPeriod.ea1JpnKorPlain.ea1JpnKorPeriod.arabic1Minus.arabic2Minus.hebrew2Minus.thaiAlphaPeriod.thaiAlphaParenR.thaiAlphaParenBoth.thaiNumPeriod.thaiNumParenR.thaiNumParenBoth.hindiAlphaPeriod.hindiNumPeriod.hindiNumParenR.hindiAlpha1Period`.split(`.`),H=[`sng`,`dbl`,`heavy`,`dotted`,`dottedHeavy`,`dash`,`dashHeavy`,`dashLong`,`dashLongHeavy`,`dotDash`,`dotDashHeavy`,`dotDotDash`,`dotDotDashHeavy`,`wavy`,`wavyHeavy`,`wavyDbl`,`words`],ye=[`sngStrike`,`dblStrike`],be=[`all`,`small`,`none`],xe=[`horz`,`vert`,`vert270`,`eaVert`,`wordArtVert`,`wordArtVertRtl`,`mongolianVert`],Se=[`t`,`ctr`,`b`],U=u([s().min(0).max(1584),o({lines:s().min(0).max(100)})]),W=c({size:s().positive().max(4e3).optional(),bold:i().optional(),italic:i().optional(),underline:u([i(),r(H)]).optional(),strike:u([i(),r(ye)]).optional(),caps:r(be).optional(),color:V.optional(),font:d().min(1).optional(),align:r(le).optional(),line_spacing:s().positive().max(10).optional(),space_before:U.optional(),space_after:U.optional(),anchor:r(Se).optional(),orientation:r(xe).optional(),bullet:u([l(!1),d().min(1).max(2)]).optional(),numbered:r(ve).optional(),bullet_color:V.optional(),bullet_size:s().min(.25).max(4).optional(),start_at:a().min(1).max(32767).optional()}),Ce=c({left:s().lt(1).optional(),top:s().lt(1).optional(),right:s().lt(1).optional(),bottom:s().lt(1).optional()}).refine(e=>(e.left??0)+(e.right??0)<1,{message:`left and right together cut the whole picture away`}).refine(e=>(e.top??0)+(e.bottom??0)<1,{message:`top and bottom together cut the whole picture away`}),G=t(()=>u([d(),s(),i(),ne(),e(G),n(d(),G)])),K=[`column-clustered`,`column-stacked`,`column-stacked-100`,`bar-clustered`,`bar-stacked`,`bar-stacked-100`,`line`,`line-markers`,`area`,`area-stacked`,`area-stacked-100`,`pie`,`doughnut`,`scatter`,`scatter-lines`,`scatter-smooth`],q=[`bottom`,`top`,`left`,`right`],J=[`column-clustered`,`column-stacked`,`column-stacked-100`,`line`,`line-markers`,`area`,`area-stacked`,`area-stacked-100`],Y=c({min:s().optional(),max:s().optional(),major:s().positive().optional(),gridlines:i().optional(),visible:i().optional(),format:d().min(1).optional(),reverse:i().optional(),gridline_color:V.optional(),line_color:V.optional()}),X=c({type:r(K),data:d().min(1).optional(),categories:u([d().min(1),e(d())]).optional(),series:e(u([d().min(1),c({name:d().min(1),values:e(s().nullable()).optional(),x:e(s().nullable()).optional(),color:V.optional(),format:d().min(1).optional(),smooth:i().optional(),line_width:s().positive().optional(),marker_size:s().int().min(2).max(72).optional(),type:r(J).optional(),secondary:i().optional()})])).min(1),legend:r(q).optional(),labels:u([i(),c({value:i().optional(),percentage:i().optional(),category:i().optional(),series:i().optional(),format:d().min(1).optional(),position:r([`outEnd`,`inEnd`,`ctr`,`inBase`,`t`,`b`,`l`,`r`,`bestFit`]).optional(),size:s().positive().optional(),color:V.optional()})]).optional(),gap_width:s().min(0).max(500).optional(),overlap:s().min(-100).max(100).optional(),vary_by_categories:i().optional(),category_colors:e(V).min(1).optional(),hole_size:s().min(10).max(90).optional(),value_axis:Y.optional(),category_axis:Y.optional(),secondary_axis:Y.optional(),size:s().positive().optional(),title_size:s().positive().optional(),color:V.optional()}),Z=s().min(0).max(1),Q=[`circle`,`rect`,`shape`],we=c({angle:s().min(0).max(360).optional(),path:r(Q).optional(),focus:c({left:s().optional(),top:s().optional(),right:s().optional(),bottom:s().optional()}).optional(),stops:e(c({at:Z,color:V,transparency:Z.optional()})).min(2).max(10)}),Te=`pct5.pct10.pct20.pct25.pct30.pct40.pct50.pct60.pct70.pct75.pct80.pct90.horz.vert.ltHorz.ltVert.dkHorz.dkVert.narHorz.narVert.dashHorz.dashVert.cross.dnDiag.upDiag.ltDnDiag.ltUpDiag.dkDnDiag.dkUpDiag.wdDnDiag.wdUpDiag.dashDnDiag.dashUpDiag.diagCross.smCheck.lgCheck.smGrid.lgGrid.dotGrid.smConfetti.lgConfetti.horzBrick.diagBrick.solidDmnd.openDmnd.dotDmnd.plaid.sphere.weave.divot.shingle.wave.trellis.zigZag`.split(`.`),Ee=c({preset:r(Te),fg:V.optional(),bg:V.optional()}),De=[`tl`,`t`,`tr`,`l`,`ctr`,`r`,`bl`,`b`,`br`],Oe=c({path:d().min(1),tile:c({scale_x:s().positive().max(100).optional(),scale_y:s().positive().max(100).optional(),x:s().optional(),y:s().optional(),align:r(De).optional()}).optional(),transparency:Z.optional()}),ke=c({fill:V.optional(),gradient:we.optional(),picture:d().min(1).optional()}).refine(e=>[e.fill,e.gradient,e.picture].filter(e=>e!==void 0).length===1,{message:`A background is a fill, a gradient or a picture: one of them.`}),Ae=c({color:V.optional(),blur:s().min(0).max(100).optional(),distance:s().min(0).max(200).optional(),angle:s().min(0).max(360).optional(),transparency:Z.optional()}),je=c({color:V.optional(),blur:s().min(0).max(100).optional(),distance:s().min(0).max(200).optional(),angle:s().min(0).max(360).optional(),transparency:Z.optional()}),Me=c({color:V.optional(),size:s().min(0).max(150).optional(),transparency:Z.optional()}),Ne=c({transparency:Z.optional(),size:Z.optional(),distance:s().min(0).max(100).optional(),blur:s().min(0).max(100).optional()}),Pe=u([c({shape:d().min(1),site:a().min(0)}),l(`none`)]),Fe=o({row:a().min(0),column:a().min(0),rows:a().min(1).optional(),columns:a().min(1).optional()});function Ie(e,t,n,r){let i=e.rows??1,a=e.columns??1;if(i*a<2)return`A merge takes two cells or more.`;if(e.row+i>t||e.column+a>n)return`A merge from row ${String(e.row)}, column ${String(e.column)} goes past the table's ${String(t)} rows and ${String(n)} columns.`;for(let t=e.row;t<e.row+i;t++)for(let n=e.column;n<e.column+a;n++){let e=`${String(t)},${String(n)}`;if(r.has(e))return`Two merges take the cell at row ${String(t)}, column ${String(n)}.`;r.add(e)}}var Le=[`auto`,`on-click`],Re=c({start:r(Le).optional(),trim:c({start:s().min(0).optional(),end:s().positive().optional()}).refine(e=>e.start===void 0||e.end===void 0||e.end>e.start,{message:`A trim ends after it starts.`}).optional(),loop:i().optional(),volume:s().min(0).max(1).optional(),fullscreen:i().optional(),hide:i().optional()}),ze=c({frame:me.optional(),rotation:s().min(0).lt(360).optional(),flip_h:l(!0).optional(),flip_v:l(!0).optional(),connect:c({begin:Pe.optional(),end:Pe.optional()}).optional(),z:a().optional(),fill:u([V,l(`none`)]).optional(),fill_transparency:Z.optional(),gradient:we.optional(),pattern:Ee.optional(),picture_fill:Oe.optional(),shadow:Ae.optional(),inner_shadow:je.optional(),glow:Me.optional(),soft_edges:s().positive().max(100).optional(),reflection:Ne.optional(),line:u([V,l(`none`)]).optional(),line_width:s().positive().max(1584).optional(),line_dash:r(S).optional(),line_cap:r(C).optional(),line_join:r(w).optional(),line_compound:r(T).optional(),line_begin:r(E).optional(),line_end:r(E).optional(),line_begin_size:O.optional(),line_end_size:O.optional(),text:W.optional(),textbox:l(!0).optional(),picture:d().min(1).optional(),crop:Ce.optional(),movie:d().min(1).optional(),audio:d().min(1).optional(),poster:s().min(0).optional(),playback:Re.optional(),geometry:r(ue).optional(),adjustments:e(s()).max(8).optional(),path:c({w:s().positive(),h:s().positive(),d:d().min(1)}).optional(),table:c({columns:e(s().positive()).min(1),rows:e(c({height:s().positive(),fill:V.optional(),text:W.optional(),line:V.optional()})).min(1),merged:e(Fe).optional(),style:d().min(1).optional(),first_row:i().optional(),last_row:i().optional(),first_col:i().optional(),last_col:i().optional(),horz_banding:i().optional(),vert_banding:i().optional()}).superRefine((e,t)=>{let n=new Set;(e.merged??[]).forEach((r,i)=>{let a=Ie(r,e.rows.length,e.columns.length,n);a!==void 0&&t.addIssue({code:`custom`,path:[`merged`,i],message:a})})}).optional(),chart:X.optional(),link:d().trim().min(1).optional(),group:d().regex(/^[A-Za-z0-9_-]+(?:\/[A-Za-z0-9_-]+)*$/u,`A group is a name of letters, digits, _ and -; a group in a group is outer/inner.`).optional(),locked:l(!0).optional(),component:u([v,d().regex(/^[^#\s]+\.[cm]?[jt]sx?(?:#[A-Za-z_$][\w$]*)?$/u,`A component is a name the deck's module registers, or a module's path and export: ../ui.ts#Dialog.`)]).optional(),props:n(d(),G).optional(),dur:s().positive().optional()}),Be=e=>e.split(`/`).map((e,t,n)=>n.slice(0,t+1).join(`/`)),Ve=(e,t)=>e!==void 0&&(e===t||e.startsWith(`${t}/`)),He=[`firstslide`,`lastslide`,`nextslide`,`previousslide`,`endshow`],Ue=e=>`ppaction://hlinkshowjump?jump=${e}`;function We(e){let t=/^ppaction:\/\/hlinkshowjump\?jump=([a-z]+)$/u.exec(e);return He.find(e=>e===t?.[1])}var Ge=e=>e.startsWith(`#`)&&e.length>1?e.slice(1):void 0,Ke=[`textbox`,`picture`,`movie`,`audio`,`geometry`,`path`,`table`,`chart`,`component`],qe=[`fade`,`push`,`wipe`,`split`,`reveal`,`cut`,`cover`,`uncover`,`zoom`,`morph`],Je=c({type:r(qe),direction:r(x).optional(),through_black:l(!0).optional(),duration:s().min(0).optional()}),Ye=c({shape:d().min(1),paragraph:a().min(0).optional(),effect:r(b),direction:r(x).optional(),amount:s().positive().max(36e3).optional(),start:r(pe).optional(),duration:s().min(0).optional(),delay:s().min(0).optional(),path:d().min(1).optional(),animate_text:r(de).optional(),text_delay:s().min(0).max(100).optional(),repeat:u([s().min(1).max(1e4),r(fe)]).optional(),rewind:l(!0).optional()}),$=c({id:v,layout:d().min(1).optional(),generate:v.optional(),hidden:u([l(!0),e(d())]).optional(),shapes:n(d().min(1),ze).optional(),animations:e(Ye).optional(),transition:Je.optional(),advance_after:s().min(0).max(86400).optional(),background:ke.optional(),section:d().trim().min(1).max(255).optional()}),Xe=c({slides:e($).default([])}).superRefine((e,t)=>{let n=new Set;e.slides.forEach((e,r)=>{n.has(e.id)&&t.addIssue({code:`custom`,path:[`slides`,r,`id`],message:`Two slides are "${e.id}".`}),n.add(e.id),(e.layout===void 0?0:1)+(e.generate===void 0?0:1)!=1&&t.addIssue({code:`custom`,path:[`slides`,r],message:`Slide ${e.id} has a layout or a generator: one of them.`}),e.hidden!==void 0&&e.generate===void 0&&e.hidden!==!0&&t.addIssue({code:`custom`,path:[`slides`,r,`hidden`],message:`Slide ${e.id} is hidden (true); a list of ids is a generated block's.`});for(let[n,i]of Object.entries(e.shapes??{})){let a=Ke.filter(e=>i[e]!==void 0);a.length>1&&t.addIssue({code:`custom`,path:[`slides`,r,`shapes`,n],message:`Shape ${n} is one kind of shape, not ${a.join(` and `)}.`});let o=n.includes(`/`)?n.split(`/`):[n];(!(o.length<=2&&o.every(e=>m.test(e)))||o.length===2&&e.generate===void 0)&&t.addIssue({code:`custom`,path:[`slides`,r,`shapes`,n],message:`A shape's name is letters, digits, _ and -; <slide>/<shape> only in a generated block.`})}})});export{Ge as A,H as C,Ve as D,Be as E,_ as M,ae as N,Ue as O,De as S,R as T,He as _,A as a,Xe as b,Q as c,S as d,E as f,K as g,Te as h,q as i,ce as j,We as k,C as l,Le as m,be as n,j as o,w as p,J as r,X as s,b as t,T as u,qe as v,_e as w,y as x,$ as y};
|
|
1
|
+
import{B as e,K as t,Q as n,R as r,V as i,W as a,X as o,Y as s,et as c,it as ee,nt as te,q as l,rt as u,tt as d,z as ne}from"./snapshots-CTS2iez5.js";var re=/^[A-Za-z0-9_-]+(?:\.[A-Za-z0-9_-]+)*$/u,f=c({display:d(),speak:d()}),p=c({declarations:e(d()).default([]),selectors:e(d()).default([]),match:n(d(),d()).refine(e=>Object.keys(e).length>0,`A match needs at least one case.`)}),ie=u([d(),f,te([p])]),ae=n(d(),ee()).superRefine((e,t)=>{for(let[n,r]of Object.entries(e)){if(n===`$schema`){typeof r!=`string`&&t.addIssue({code:`custom`,path:[n],message:`$schema is a string.`});continue}re.test(n)||t.addIssue({code:`custom`,path:[n],message:`"${n}" is not a message key: letters, digits, _ and -, in segments joined by dots.`});let e=ie.safeParse(r);e.success||t.addIssue({code:`custom`,path:[n],message:Array.isArray(r)?`A message with variants is [{ "declarations": […], "selectors": […], "match": {…} }]: ${e.error.issues.map(e=>e.message).join(`; `)}`:`A message is a string, { display, speak }, or [{ declarations, selectors, match }].`})}}).transform(e=>{let t={...e};return delete t.$schema,t}),m=/^[A-Za-z0-9_-]+$/u,h=d().regex(m,`A name is letters, digits, _ and -.`),g=t(()=>u([d(),f,p,e(g),n(h,g)])),oe=c({id:h,say:u([d(),p]).optional(),screen:n(h,g).optional()}),_=c({id:h,text:n(h,g).optional(),alt:n(h,d()).optional(),notes:u([d(),p]).optional()}),se=c({id:h,text:n(h,g).optional()}),ce=c({title:d().optional(),text:n(h,g).optional(),parts:e(oe).default([]),slides:e(_).default([]),boards:e(se).default([])}).superRefine((e,t)=>{let n=new Set;e.parts.forEach((e,r)=>{n.has(e.id)&&t.addIssue({code:`custom`,path:[`parts`,r,`id`],message:`Two parts are "${e.id}".`}),n.add(e.id)});let r=new Set;e.slides.forEach((e,n)=>{r.has(e.id)&&t.addIssue({code:`custom`,path:[`slides`,n,`id`],message:`Two slides are "${e.id}".`}),r.add(e.id)});let i=new Set;e.boards.forEach((e,n)=>{i.has(e.id)&&t.addIssue({code:`custom`,path:[`boards`,n,`id`],message:`Two boards are "${e.id}".`}),i.add(e.id)})}),v=d().regex(m,`A name is letters, digits, _ and -.`),y=[`dk1`,`lt1`,`dk2`,`lt2`,`accent1`,`accent2`,`accent3`,`accent4`,`accent5`,`accent6`,`hlink`,`folHlink`],le=[`l`,`ctr`,`r`,`just`],ue=`line.lineInv.triangle.rtTriangle.rect.diamond.parallelogram.trapezoid.nonIsoscelesTrapezoid.pentagon.hexagon.heptagon.octagon.decagon.dodecagon.star4.star5.star6.star7.star8.star10.star12.star16.star24.star32.roundRect.round1Rect.round2SameRect.round2DiagRect.snipRoundRect.snip1Rect.snip2SameRect.snip2DiagRect.plaque.ellipse.teardrop.homePlate.chevron.pieWedge.pie.blockArc.donut.noSmoking.rightArrow.leftArrow.upArrow.downArrow.stripedRightArrow.notchedRightArrow.bentUpArrow.leftRightArrow.upDownArrow.leftUpArrow.leftRightUpArrow.quadArrow.leftArrowCallout.rightArrowCallout.upArrowCallout.downArrowCallout.leftRightArrowCallout.upDownArrowCallout.quadArrowCallout.bentArrow.uturnArrow.circularArrow.leftCircularArrow.leftRightCircularArrow.curvedRightArrow.curvedLeftArrow.curvedUpArrow.curvedDownArrow.swooshArrow.cube.can.lightningBolt.heart.sun.moon.smileyFace.irregularSeal1.irregularSeal2.foldedCorner.bevel.frame.halfFrame.corner.diagStripe.chord.arc.leftBracket.rightBracket.leftBrace.rightBrace.bracketPair.bracePair.straightConnector1.bentConnector2.bentConnector3.bentConnector4.bentConnector5.curvedConnector2.curvedConnector3.curvedConnector4.curvedConnector5.callout1.callout2.callout3.accentCallout1.accentCallout2.accentCallout3.borderCallout1.borderCallout2.borderCallout3.accentBorderCallout1.accentBorderCallout2.accentBorderCallout3.wedgeRectCallout.wedgeRoundRectCallout.wedgeEllipseCallout.cloudCallout.cloud.ribbon.ribbon2.ellipseRibbon.ellipseRibbon2.leftRightRibbon.verticalScroll.horizontalScroll.wave.doubleWave.plus.flowChartProcess.flowChartDecision.flowChartInputOutput.flowChartPredefinedProcess.flowChartInternalStorage.flowChartDocument.flowChartMultidocument.flowChartTerminator.flowChartPreparation.flowChartManualInput.flowChartManualOperation.flowChartConnector.flowChartPunchedCard.flowChartPunchedTape.flowChartSummingJunction.flowChartOr.flowChartCollate.flowChartSort.flowChartExtract.flowChartMerge.flowChartOfflineStorage.flowChartOnlineStorage.flowChartMagneticTape.flowChartMagneticDisk.flowChartMagneticDrum.flowChartDisplay.flowChartDelay.flowChartAlternateProcess.flowChartOffpageConnector.actionButtonBlank.actionButtonHome.actionButtonHelp.actionButtonInformation.actionButtonForwardNext.actionButtonBackPrevious.actionButtonEnd.actionButtonBeginning.actionButtonReturn.actionButtonDocument.actionButtonSound.actionButtonMovie.gear6.gear9.funnel.mathPlus.mathMinus.mathMultiply.mathDivide.mathEqual.mathNotEqual.cornerTabs.squareTabs.plaqueTabs.chartX.chartStar.chartPlus`.split(`.`),b=[`appear`,`fade`,`fly-in`,`float-in`,`split`,`wipe`,`zoom`,`disappear`,`fade-out`,`fly-out`,`float-out`,`split-out`,`wipe-out`,`zoom-out`,`pulse`,`grow-shrink`,`spin`,`transparency`,`path`],de=[`word`,`letter`],fe=[`until-next-click`,`until-end-of-slide`],pe=[`on-click`,`with-previous`,`after-previous`],x=[`from-bottom`,`from-top`,`from-left`,`from-right`,`from-top-right`,`from-bottom-right`,`from-top-left`,`from-bottom-left`,`vertical-out`,`vertical-in`,`horizontal-out`,`horizontal-in`,`in`,`out`,`rotate`,`up`,`down`,`clockwise`,`counterclockwise`,`both`,`horizontal`,`vertical`],S=[`solid`,`sysDot`,`sysDash`,`dash`,`dashDot`,`lgDash`,`lgDashDot`,`lgDashDotDot`,`dot`,`sysDashDot`,`sysDashDotDot`],C=[`flat`,`rnd`,`sq`],w=[`round`,`bevel`,`miter`],T=[`sng`,`dbl`,`thickThin`,`thinThick`,`tri`],E=[`none`,`triangle`,`arrow`,`stealth`,`diamond`,`oval`],D=[`sm`,`med`,`lg`],O=c({w:r(D).optional(),len:r(D).optional()}),me=c({x:s(),y:s(),w:s().nonnegative(),h:s().nonnegative()}),k=[`tx1`,`bg1`,`tx2`,`bg2`],A=[...y,...k],j=[`tint`,`shade`,`lumMod`,`lumOff`,`lum`,`satMod`,`satOff`,`sat`,`hueMod`,`hueOff`,`hue`,`alpha`,`alphaMod`,`alphaOff`],M=`(?:${A.join(`|`)})`,he=`(?:${j.join(`|`)}) -?\\d+(?:\\.\\d+)?(?:%|°)`,N=RegExp(`^(${M}) (lighter|darker) (100(?:\\.0{1,3})?|[1-9]?\\d(?:\\.\\d{1,3})?)%$`,`u`),P=RegExp(`^(${M}|#[0-9A-Fa-f]{6})((?: ${he})+)$`,`u`),F=/^#[0-9A-Fa-f]{6}$/u,I=e=>A.includes(e),ge=e=>j.includes(e),L=new Set([`hue`,`hueOff`]);function R(e){if(I(e))return e;if(F.test(e))return{rgb:e.toUpperCase()};let t=P.exec(e);if(t){let[,e=``,n=``]=t,r=[];for(let e of n.matchAll(/ (\w+) (-?[\d.]+)(%|°)/gu)){let[,t=``,n=``,i]=e;if(!ge(t)||i===`°`!==L.has(t))return;let a=Number(n);r.push({name:t,value:i===`%`?Math.round(a*1e3)/1e5:a})}return I(e)?{theme_color:e,transforms:r}:{rgb:e.toUpperCase(),transforms:r}}let n=N.exec(e),[,r=``,i,a=``]=n??[],o=Math.round(Number(a)*1e3);if(!(!n||!I(r)||o<=0||o>1e5))return{theme_color:r,brightness:(i===`lighter`?o:-o)/1e5}}var z=e=>L.has(e.name)?`${e.name} ${String(Math.round(e.value*1e3)/1e3)}°`:`${e.name} ${String(Math.round(e.value*1e5)/1e3)}%`;function _e(e){if(typeof e==`string`)return e;if(`rgb`in e)return e.transforms&&e.transforms.length>0?`${e.rgb} ${e.transforms.map(z).join(` `)}`:e.rgb;if(`transforms`in e)return e.transforms.length===0?e.theme_color:`${e.theme_color} ${e.transforms.map(z).join(` `)}`;let t=Math.round(Math.abs(e.brightness)*1e5)/1e3;return t===0?e.theme_color:`${e.theme_color} ${e.brightness>0?`lighter`:`darker`} ${String(t)}%`}var B=`A colour is one of the theme's (${y.join(`, `)}) or the colour map's (${k.join(`, `)}), one of them lighter or darker by a share over 0 up to 100% ("accent1 lighter 40%", "dk1 darker 25%"), #RRGGBB, or one of them with DrawingML's transforms in order ("accent1 lumMod 75% lumOff 25%", "#4472C4 alpha 50%", "accent2 hueOff 30°": ${j.join(`, `)}).`,V=u([r(A),d().regex(N,B),d().regex(F,B),d().regex(P,B)]).refine(e=>R(e)!==void 0,B),ve=`alphaLcParenBoth.alphaUcParenBoth.alphaLcParenR.alphaUcParenR.alphaLcPeriod.alphaUcPeriod.arabicParenBoth.arabicParenR.arabicPeriod.arabicPlain.romanLcParenBoth.romanUcParenBoth.romanLcParenR.romanUcParenR.romanLcPeriod.romanUcPeriod.circleNumDbPlain.circleNumWdBlackPlain.circleNumWdWhitePlain.arabicDbPeriod.arabicDbPlain.ea1ChsPeriod.ea1ChsPlain.ea1ChtPeriod.ea1ChtPlain.ea1JpnChsDbPeriod.ea1JpnKorPlain.ea1JpnKorPeriod.arabic1Minus.arabic2Minus.hebrew2Minus.thaiAlphaPeriod.thaiAlphaParenR.thaiAlphaParenBoth.thaiNumPeriod.thaiNumParenR.thaiNumParenBoth.hindiAlphaPeriod.hindiNumPeriod.hindiNumParenR.hindiAlpha1Period`.split(`.`),H=[`sng`,`dbl`,`heavy`,`dotted`,`dottedHeavy`,`dash`,`dashHeavy`,`dashLong`,`dashLongHeavy`,`dotDash`,`dotDashHeavy`,`dotDotDash`,`dotDotDashHeavy`,`wavy`,`wavyHeavy`,`wavyDbl`,`words`],ye=[`sngStrike`,`dblStrike`],be=[`all`,`small`,`none`],xe=[`horz`,`vert`,`vert270`,`eaVert`,`wordArtVert`,`wordArtVertRtl`,`mongolianVert`],Se=[`t`,`ctr`,`b`],U=u([s().min(0).max(1584),o({lines:s().min(0).max(100)})]),W=c({size:s().positive().max(4e3).optional(),bold:i().optional(),italic:i().optional(),underline:u([i(),r(H)]).optional(),strike:u([i(),r(ye)]).optional(),caps:r(be).optional(),color:V.optional(),font:d().min(1).optional(),align:r(le).optional(),line_spacing:s().positive().max(10).optional(),space_before:U.optional(),space_after:U.optional(),anchor:r(Se).optional(),orientation:r(xe).optional(),bullet:u([l(!1),d().min(1).max(2)]).optional(),numbered:r(ve).optional(),bullet_color:V.optional(),bullet_size:s().min(.25).max(4).optional(),start_at:a().min(1).max(32767).optional()}),Ce=c({left:s().lt(1).optional(),top:s().lt(1).optional(),right:s().lt(1).optional(),bottom:s().lt(1).optional()}).refine(e=>(e.left??0)+(e.right??0)<1,{message:`left and right together cut the whole picture away`}).refine(e=>(e.top??0)+(e.bottom??0)<1,{message:`top and bottom together cut the whole picture away`}),G=t(()=>u([d(),s(),i(),ne(),e(G),n(d(),G)])),K=[`column-clustered`,`column-stacked`,`column-stacked-100`,`bar-clustered`,`bar-stacked`,`bar-stacked-100`,`line`,`line-markers`,`area`,`area-stacked`,`area-stacked-100`,`pie`,`doughnut`,`scatter`,`scatter-lines`,`scatter-smooth`],q=[`bottom`,`top`,`left`,`right`],J=[`column-clustered`,`column-stacked`,`column-stacked-100`,`line`,`line-markers`,`area`,`area-stacked`,`area-stacked-100`],Y=c({min:s().optional(),max:s().optional(),major:s().positive().optional(),gridlines:i().optional(),visible:i().optional(),format:d().min(1).optional(),reverse:i().optional(),gridline_color:V.optional(),line_color:V.optional()}),X=c({type:r(K),data:d().min(1).optional(),categories:u([d().min(1),e(d())]).optional(),series:e(u([d().min(1),c({name:d().min(1),values:e(s().nullable()).optional(),x:e(s().nullable()).optional(),color:V.optional(),format:d().min(1).optional(),smooth:i().optional(),line_width:s().positive().optional(),marker_size:s().int().min(2).max(72).optional(),type:r(J).optional(),secondary:i().optional()})])).min(1),legend:r(q).optional(),labels:u([i(),c({value:i().optional(),percentage:i().optional(),category:i().optional(),series:i().optional(),format:d().min(1).optional(),position:r([`outEnd`,`inEnd`,`ctr`,`inBase`,`t`,`b`,`l`,`r`,`bestFit`]).optional(),size:s().positive().optional(),color:V.optional()})]).optional(),gap_width:s().min(0).max(500).optional(),overlap:s().min(-100).max(100).optional(),vary_by_categories:i().optional(),category_colors:e(V).min(1).optional(),hole_size:s().min(10).max(90).optional(),value_axis:Y.optional(),category_axis:Y.optional(),secondary_axis:Y.optional(),size:s().positive().optional(),title_size:s().positive().optional(),color:V.optional()}),Z=s().min(0).max(1),Q=[`circle`,`rect`,`shape`],we=c({angle:s().min(0).max(360).optional(),path:r(Q).optional(),focus:c({left:s().optional(),top:s().optional(),right:s().optional(),bottom:s().optional()}).optional(),stops:e(c({at:Z,color:V,transparency:Z.optional()})).min(2).max(10)}),Te=`pct5.pct10.pct20.pct25.pct30.pct40.pct50.pct60.pct70.pct75.pct80.pct90.horz.vert.ltHorz.ltVert.dkHorz.dkVert.narHorz.narVert.dashHorz.dashVert.cross.dnDiag.upDiag.ltDnDiag.ltUpDiag.dkDnDiag.dkUpDiag.wdDnDiag.wdUpDiag.dashDnDiag.dashUpDiag.diagCross.smCheck.lgCheck.smGrid.lgGrid.dotGrid.smConfetti.lgConfetti.horzBrick.diagBrick.solidDmnd.openDmnd.dotDmnd.plaid.sphere.weave.divot.shingle.wave.trellis.zigZag`.split(`.`),Ee=c({preset:r(Te),fg:V.optional(),bg:V.optional()}),De=[`tl`,`t`,`tr`,`l`,`ctr`,`r`,`bl`,`b`,`br`],Oe=c({path:d().min(1),tile:c({scale_x:s().positive().max(100).optional(),scale_y:s().positive().max(100).optional(),x:s().optional(),y:s().optional(),align:r(De).optional()}).optional(),transparency:Z.optional()}),ke=c({fill:V.optional(),gradient:we.optional(),picture:d().min(1).optional()}).refine(e=>[e.fill,e.gradient,e.picture].filter(e=>e!==void 0).length===1,{message:`A background is a fill, a gradient or a picture: one of them.`}),Ae=c({color:V.optional(),blur:s().min(0).max(100).optional(),distance:s().min(0).max(200).optional(),angle:s().min(0).max(360).optional(),transparency:Z.optional()}),je=c({color:V.optional(),blur:s().min(0).max(100).optional(),distance:s().min(0).max(200).optional(),angle:s().min(0).max(360).optional(),transparency:Z.optional()}),Me=c({color:V.optional(),size:s().min(0).max(150).optional(),transparency:Z.optional()}),Ne=c({transparency:Z.optional(),size:Z.optional(),distance:s().min(0).max(100).optional(),blur:s().min(0).max(100).optional()}),Pe=u([c({shape:d().min(1),site:a().min(0)}),l(`none`)]),Fe=o({row:a().min(0),column:a().min(0),rows:a().min(1).optional(),columns:a().min(1).optional()});function Ie(e,t,n,r){let i=e.rows??1,a=e.columns??1;if(i*a<2)return`A merge takes two cells or more.`;if(e.row+i>t||e.column+a>n)return`A merge from row ${String(e.row)}, column ${String(e.column)} goes past the table's ${String(t)} rows and ${String(n)} columns.`;for(let t=e.row;t<e.row+i;t++)for(let n=e.column;n<e.column+a;n++){let e=`${String(t)},${String(n)}`;if(r.has(e))return`Two merges take the cell at row ${String(t)}, column ${String(n)}.`;r.add(e)}}var Le=[`auto`,`on-click`],Re=c({start:r(Le).optional(),trim:c({start:s().min(0).optional(),end:s().positive().optional()}).refine(e=>e.start===void 0||e.end===void 0||e.end>e.start,{message:`A trim ends after it starts.`}).optional(),loop:i().optional(),volume:s().min(0).max(1).optional(),fullscreen:i().optional(),hide:i().optional()}),ze=c({frame:me.optional(),rotation:s().min(0).lt(360).optional(),flip_h:l(!0).optional(),flip_v:l(!0).optional(),connect:c({begin:Pe.optional(),end:Pe.optional()}).optional(),z:a().optional(),fill:u([V,l(`none`)]).optional(),fill_transparency:Z.optional(),gradient:we.optional(),pattern:Ee.optional(),picture_fill:Oe.optional(),shadow:Ae.optional(),inner_shadow:je.optional(),glow:Me.optional(),soft_edges:s().positive().max(100).optional(),reflection:Ne.optional(),line:u([V,l(`none`)]).optional(),line_width:s().positive().max(1584).optional(),line_dash:r(S).optional(),line_cap:r(C).optional(),line_join:r(w).optional(),line_compound:r(T).optional(),line_begin:r(E).optional(),line_end:r(E).optional(),line_begin_size:O.optional(),line_end_size:O.optional(),text:W.optional(),textbox:l(!0).optional(),picture:d().min(1).optional(),crop:Ce.optional(),movie:d().min(1).optional(),audio:d().min(1).optional(),poster:s().min(0).optional(),playback:Re.optional(),geometry:r(ue).optional(),adjustments:e(s()).max(8).optional(),path:c({w:s().positive(),h:s().positive(),d:d().min(1)}).optional(),table:c({columns:e(s().positive()).min(1),rows:e(c({height:s().positive(),fill:V.optional(),text:W.optional(),line:V.optional()})).min(1),merged:e(Fe).optional(),style:d().min(1).optional(),first_row:i().optional(),last_row:i().optional(),first_col:i().optional(),last_col:i().optional(),horz_banding:i().optional(),vert_banding:i().optional()}).superRefine((e,t)=>{let n=new Set;(e.merged??[]).forEach((r,i)=>{let a=Ie(r,e.rows.length,e.columns.length,n);a!==void 0&&t.addIssue({code:`custom`,path:[`merged`,i],message:a})})}).optional(),chart:X.optional(),link:d().trim().min(1).optional(),group:d().regex(/^[A-Za-z0-9_-]+(?:\/[A-Za-z0-9_-]+)*$/u,`A group is a name of letters, digits, _ and -; a group in a group is outer/inner.`).optional(),locked:l(!0).optional(),component:u([v,d().regex(/^[^#\s]+\.[cm]?[jt]sx?(?:#[A-Za-z_$][\w$]*)?$/u,`A component is a name the deck's module registers, or a module's path and export: ../ui.ts#Dialog.`)]).optional(),props:n(d(),G).optional(),dur:s().positive().optional()}),Be=e=>e.split(`/`).map((e,t,n)=>n.slice(0,t+1).join(`/`)),Ve=(e,t)=>e!==void 0&&(e===t||e.startsWith(`${t}/`)),He=[`firstslide`,`lastslide`,`nextslide`,`previousslide`,`endshow`],Ue=e=>`ppaction://hlinkshowjump?jump=${e}`;function We(e){let t=/^ppaction:\/\/hlinkshowjump\?jump=([a-z]+)$/u.exec(e);return He.find(e=>e===t?.[1])}var Ge=e=>e.startsWith(`#`)&&e.length>1?e.slice(1):void 0,Ke=[`textbox`,`picture`,`movie`,`audio`,`geometry`,`path`,`table`,`chart`,`component`],qe=[`fade`,`push`,`wipe`,`split`,`reveal`,`cut`,`cover`,`uncover`,`zoom`,`morph`],Je=c({type:r(qe),direction:r(x).optional(),through_black:l(!0).optional(),duration:s().min(0).optional()}),Ye=c({shape:d().min(1),paragraph:a().min(0).optional(),effect:r(b),direction:r(x).optional(),amount:s().positive().max(36e3).optional(),start:r(pe).optional(),duration:s().min(0).optional(),delay:s().min(0).optional(),path:d().min(1).optional(),animate_text:r(de).optional(),text_delay:s().min(0).max(100).optional(),repeat:u([s().min(1).max(1e4),r(fe)]).optional(),rewind:l(!0).optional()}),$=c({id:v,layout:d().min(1).optional(),generate:v.optional(),hidden:u([l(!0),e(d())]).optional(),shapes:n(d().min(1),ze).optional(),animations:e(Ye).optional(),transition:Je.optional(),advance_after:s().min(0).max(86400).optional(),background:ke.optional(),section:d().trim().min(1).max(255).optional()}),Xe=c({slides:e($).default([])}).superRefine((e,t)=>{let n=new Set;e.slides.forEach((e,r)=>{n.has(e.id)&&t.addIssue({code:`custom`,path:[`slides`,r,`id`],message:`Two slides are "${e.id}".`}),n.add(e.id),(e.layout===void 0?0:1)+(e.generate===void 0?0:1)!=1&&t.addIssue({code:`custom`,path:[`slides`,r],message:`Slide ${e.id} has a layout or a generator: one of them.`}),e.hidden!==void 0&&e.generate===void 0&&e.hidden!==!0&&t.addIssue({code:`custom`,path:[`slides`,r,`hidden`],message:`Slide ${e.id} is hidden (true); a list of ids is a generated block's.`});for(let[n,i]of Object.entries(e.shapes??{})){let a=Ke.filter(e=>i[e]!==void 0);a.length>1&&t.addIssue({code:`custom`,path:[`slides`,r,`shapes`,n],message:`Shape ${n} is one kind of shape, not ${a.join(` and `)}.`});let o=n.includes(`/`)?n.split(`/`):[n];(!(o.length<=2&&o.every(e=>m.test(e)))||o.length===2&&e.generate===void 0)&&t.addIssue({code:`custom`,path:[`slides`,r,`shapes`,n],message:`A shape's name is letters, digits, _ and -; <slide>/<shape> only in a generated block.`})}})});export{Ge as A,H as C,Ve as D,Be as E,_ as M,ae as N,Ue as O,De as S,R as T,He as _,A as a,Xe as b,Q as c,S as d,E as f,K as g,Te as h,q as i,ce as j,We as k,C as l,Le as m,be as n,j as o,w as p,J as r,X as s,b as t,T as u,qe as v,_e as w,y as x,$ as y};
|