@yuuichi/tools-assets 1.0.0-ym.2 → 1.0.0-ym.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/carbon/404/index.html +2 -2
- package/dist/carbon/_next/static/chunks/{webpack-c7eee30d6a530fba.js → webpack-145352ce0e98bf12.js} +1 -1
- package/dist/carbon/about/index.html +2 -2
- package/dist/carbon/account/index.html +2 -2
- package/dist/carbon/embed/index.html +2 -2
- package/dist/carbon/index.html +2 -2
- package/dist/carbon/snippets/index.html +2 -2
- package/dist/md/{i18n-toggle.js → i18n-bridge.js} +9 -33
- package/dist/md/index.html +117 -117
- package/dist/md/static/js/{md-AIAssistantPanel-CF4e4Vu5.js → md-AIAssistantPanel-AbRWnr8k.js} +1 -1
- package/dist/md/static/js/{md-AIConfig-DO9zDt5U.js → md-AIConfig-0A2NJlnO.js} +1 -1
- package/dist/md/static/js/{md-AIImageGeneratorPanel-CD1uJVoh.js → md-AIImageGeneratorPanel-DCyzssq7.js} +1 -1
- package/dist/md/static/js/{md-AccountDialog-B9bwHblP.js → md-AccountDialog-7T37gUUf.js} +1 -1
- package/dist/md/static/js/{md-CssEditor-CscA_fkp.js → md-CssEditor-BVHX5HDj.js} +1 -1
- package/dist/md/static/js/{md-CustomComponentDialog-B2dcYBPu.js → md-CustomComponentDialog-B1iN17Un.js} +1 -1
- package/dist/md/static/js/{md-EditorStateDialog-DDwS_6Tq.js → md-EditorStateDialog-Lt42FvkA.js} +1 -1
- package/dist/md/static/js/{md-EmojiManagerPanel-D1CqtlJh.js → md-EmojiManagerPanel-uIslmuqS.js} +1 -1
- package/dist/md/static/js/{md-FormulaEditorDialog-BMRetjWG.js → md-FormulaEditorDialog-CCIdePrb.js} +1 -1
- package/dist/md/static/js/{md-ImportMarkdownDialog-DxL17zpq.js → md-ImportMarkdownDialog-N8HpMw5z.js} +1 -1
- package/dist/md/static/js/{md-KeyboardShortcutsDialog-uRCXJSjd.js → md-KeyboardShortcutsDialog-WImy2X6K.js} +1 -1
- package/dist/md/static/js/{md-LocalImageUploadDialog-avfB7LHB.js → md-LocalImageUploadDialog-BbV43cOw.js} +1 -1
- package/dist/md/static/js/{md-MarketplaceDialog-Bx7VHRvQ.js → md-MarketplaceDialog-CzK5uLAk.js} +1 -1
- package/dist/md/static/js/{md-PdfExportDialog-CLmsnkhd.js → md-PdfExportDialog-DRbC0Gtt.js} +1 -1
- package/dist/md/static/js/{md-PreferencesDialog-DN-JtCU5.js → md-PreferencesDialog-DhI_LHE2.js} +1 -1
- package/dist/md/static/js/{md-RightSlider-CDcYf_n7.js → md-RightSlider-Bnl17S2o.js} +1 -1
- package/dist/md/static/js/{md-ShareDialog-DK8_fzlb.js → md-ShareDialog-BsgtWzfs.js} +1 -1
- package/dist/md/static/js/{md-SidebarAIToolbar-CBndViyU.js → md-SidebarAIToolbar-fOu5w_G0.js} +2 -2
- package/dist/md/static/js/{md-SlashCommandMenu-CBAaWcc8.js → md-SlashCommandMenu-Dlu7CyUU.js} +1 -1
- package/dist/md/static/js/{md-SyncDialog-C6UjzXRA.js → md-SyncDialog-C7mAbp34.js} +1 -1
- package/dist/md/static/js/{md-TableEditDialog-DBWg4Ms5.js → md-TableEditDialog-DsPa9fwJ.js} +1 -1
- package/dist/md/static/js/{md-TemplateDialog-CPjjDwhb.js → md-TemplateDialog-BhKNLG_g.js} +1 -1
- package/dist/md/static/js/{md-UploadImgDialog-BapxZ5ip.js → md-UploadImgDialog-CDE8wIHB.js} +2 -2
- package/dist/md/static/js/{md-abnfDiagram-YUKMZFIV-CmpHTRa0.js → md-abnfDiagram-YUKMZFIV-jxIywNi9.js} +1 -1
- package/dist/md/static/js/{md-aiConfig-CMgvtyLF.js → md-aiConfig-DVPjNuSa.js} +1 -1
- package/dist/md/static/js/{md-architecture-WOLXFQ4H-DQZEV3vU.js → md-architecture-WOLXFQ4H-RZab6uUU.js} +1 -1
- package/dist/md/static/js/{md-architectureDiagram-47P4ROYG-PyGo0e45.js → md-architectureDiagram-47P4ROYG-BGnBNmr-.js} +1 -1
- package/dist/md/static/js/{md-auth-B320eWZs.js → md-auth-CWx4h9Td.js} +2 -2
- package/dist/md/static/js/{md-blockDiagram-E7TT5TSB-uiHRgnyh.js → md-blockDiagram-E7TT5TSB-Cavoj-Il.js} +1 -1
- package/dist/md/static/js/{md-c4Diagram-CRA5TL53-9HPFN7-t.js → md-c4Diagram-CRA5TL53-i-oSIyBw.js} +1 -1
- package/dist/md/static/js/md-channel-B-t0BcGM.js +1 -0
- package/dist/md/static/js/{md-chunk-2BW5OAIV-D_IuJv-P.js → md-chunk-2BW5OAIV-Bzipx0js.js} +1 -1
- package/dist/md/static/js/{md-chunk-3YJQHVM4-CiXjgT0L.js → md-chunk-3YJQHVM4-Bb6IJj4C.js} +1 -1
- package/dist/md/static/js/{md-chunk-4EA7E6EY-aSJB1UxS.js → md-chunk-4EA7E6EY-DEwrdEp4.js} +1 -1
- package/dist/md/static/js/{md-chunk-7TKQ45FW-C72c6C3B.js → md-chunk-7TKQ45FW-Du1Mj90Z.js} +1 -1
- package/dist/md/static/js/{md-chunk-AW2ZBBNX-6YxV8_ON.js → md-chunk-AW2ZBBNX-B50GsoyY.js} +1 -1
- package/dist/md/static/js/{md-chunk-DBDB3WZW-HS7MXf4M.js → md-chunk-DBDB3WZW-CKZWAGTX.js} +1 -1
- package/dist/md/static/js/{md-chunk-E2ZNV5FY-BWwTF2Pa.js → md-chunk-E2ZNV5FY-W1Zi3naC.js} +1 -1
- package/dist/md/static/js/{md-chunk-EU5HNXII-DywVMjVA.js → md-chunk-EU5HNXII-B1XAeHxn.js} +1 -1
- package/dist/md/static/js/{md-chunk-FVRAUYC3-YieLSFki.js → md-chunk-FVRAUYC3-Cihr67T0.js} +1 -1
- package/dist/md/static/js/{md-chunk-HJ2JQQFS-DrdiUr0s.js → md-chunk-HJ2JQQFS-D3hh96VN.js} +1 -1
- package/dist/md/static/js/{md-chunk-HTAEGDNF-B5mqTFVi.js → md-chunk-HTAEGDNF-CiMkCh_G.js} +1 -1
- package/dist/md/static/js/{md-chunk-KQW6MTUR-CAR3krhO.js → md-chunk-KQW6MTUR-Dhx7IoNY.js} +1 -1
- package/dist/md/static/js/{md-chunk-NTY3LDVX-DSdR7sc4.js → md-chunk-NTY3LDVX-GQ44L1v5.js} +1 -1
- package/dist/md/static/js/{md-chunk-VPRB5NB3-CLIIed9Z.js → md-chunk-VPRB5NB3-DFAB8QDQ.js} +1 -1
- package/dist/md/static/js/{md-chunk-XC4XBNZT-BK_ztb60.js → md-chunk-XC4XBNZT-CfdESQNj.js} +1 -1
- package/dist/md/static/js/{md-classDiagram-v2-K4WV4PDN-CCHSKnhN.js → md-classDiagram-v2-K4WV4PDN-B6K4kqpa.js} +1 -1
- package/dist/md/static/js/{md-client-CGJU0lXF.js → md-client-BtyWCOJE.js} +1 -1
- package/dist/md/static/js/{md-clipboard-BYFl_-FZ.js → md-clipboard-D_fwX9Ex.js} +1 -1
- package/dist/md/static/js/{md-confirm-BihqdS5v.js → md-confirm-CaEl21Gf.js} +1 -1
- package/dist/md/static/js/{md-cynefin-EF2NZ3EQ-Bkz4pbNE.js → md-cynefin-EF2NZ3EQ-Co2SL3Gp.js} +1 -1
- package/dist/md/static/js/{md-cynefinDiagram-3GCD6N5R-Ds9PXIId.js → md-cynefinDiagram-3GCD6N5R-B8qs56z0.js} +1 -1
- package/dist/md/static/js/{md-dagre-W4DXFKR2-DkKVDIFC.js → md-dagre-W4DXFKR2-EbJ3K0Ky.js} +1 -1
- package/dist/md/static/js/{md-default-content-Cpz5V9G-.js → md-default-content-Cp2JUIKM.js} +1 -1
- package/dist/md/static/js/{md-diagram-2UJZ2QOL-qZHiizXP.js → md-diagram-2UJZ2QOL-DRFYDLnk.js} +1 -1
- package/dist/md/static/js/{md-diagram-OVF4WLC6-CN8lep7L.js → md-diagram-OVF4WLC6-B8E6egvP.js} +1 -1
- package/dist/md/static/js/{md-diagram-PFPMY2P6-BSwpiHtn.js → md-diagram-PFPMY2P6-GndkeoOu.js} +1 -1
- package/dist/md/static/js/{md-diagram-UMYRVEAY-DY0LU3Hd.js → md-diagram-UMYRVEAY-C_XRhzfS.js} +1 -1
- package/dist/md/static/js/{md-diagram-YEKJPTXX-QY8QLwTU.js → md-diagram-YEKJPTXX-W1nDPXpp.js} +1 -1
- package/dist/md/static/js/{md-diagram-ZIFT7M5P-BRN2Im2O.js → md-diagram-ZIFT7M5P-C0o4DKfz.js} +1 -1
- package/dist/md/static/js/{md-dist-es-cVMEFCse.js → md-dist-es-nelOcRBV.js} +2 -2
- package/dist/md/static/js/{md-ebnfDiagram-VR2GEFS7-DtH7XQzh.js → md-ebnfDiagram-VR2GEFS7-lmS32PGC.js} +1 -1
- package/dist/md/static/js/{md-editor-CAilbZEo.js → md-editor-CY6v2w8B.js} +2 -2
- package/dist/md/static/js/{md-elk-IJKZMXRS-DA-GN0L1.js → md-elk-IJKZMXRS-Cli79gRh.js} +1 -1
- package/dist/md/static/js/{md-emojiPack-iMjrppKC.js → md-emojiPack-C8pHg1Th.js} +1 -1
- package/dist/md/static/js/{md-erDiagram-O2IAPWRE-CPaqE6JI.js → md-erDiagram-O2IAPWRE-C9xQhs9y.js} +1 -1
- package/dist/md/static/js/{md-eventmodeling-K75KTNOO-Bc6tu7KV.js → md-eventmodeling-K75KTNOO-BAdWm5qy.js} +1 -1
- package/dist/md/static/js/{md-export-BjrxWZ9r.js → md-export-kujJShoi.js} +1 -1
- package/dist/md/static/js/{md-extensions-Glu0Pgjx.js → md-extensions-C8rTnfS0.js} +3 -3
- package/dist/md/static/js/md-flowDiagram-OXPTDLAJ-Cv2UXRIF.js +1 -0
- package/dist/md/static/js/{md-folder-source-panel-DFFe32GQ.js → md-folder-source-panel-YtE62CWK.js} +1 -1
- package/dist/md/static/js/{md-formatDoc-BNWCU6io.js → md-formatDoc-C4BJekJV.js} +1 -1
- package/dist/md/static/js/{md-ganttDiagram-R7TSEDQI-BayINpXC.js → md-ganttDiagram-R7TSEDQI-CdvKJ-qg.js} +1 -1
- package/dist/md/static/js/{md-gitGraph-VSP46ZUC-BUwLrmK3.js → md-gitGraph-VSP46ZUC-C3x-S46t.js} +1 -1
- package/dist/md/static/js/{md-gitGraphDiagram-XJZIOB7I-B5H3jLer.js → md-gitGraphDiagram-XJZIOB7I-Ccdv8lmf.js} +1 -1
- package/dist/md/static/js/{md-index-C3THyG4M.js → md-index-KksaGwCt.js} +4 -4
- package/dist/md/static/js/{md-index.browser-SY9JAlDq.js → md-index.browser-BgXgYd6H.js} +1 -1
- package/dist/md/static/js/{md-info-OHQRW6UA-CNO4zTrQ.js → md-info-OHQRW6UA-c5KWvdDg.js} +1 -1
- package/dist/md/static/js/{md-infoDiagram-5W2HQ5XZ-mYYrIV4u.js → md-infoDiagram-5W2HQ5XZ-BX8aRyyo.js} +1 -1
- package/dist/md/static/js/{md-ishikawaDiagram-K3B6WC7H-NabgEAym.js → md-ishikawaDiagram-K3B6WC7H-DdpyI-DP.js} +1 -1
- package/dist/md/static/js/{md-journeyDiagram-COXZFDF6-qclo2Jhn.js → md-journeyDiagram-COXZFDF6-CB6A5flW.js} +1 -1
- package/dist/md/static/js/{md-kanban-definition-P3RFRI5V-CfwJaDLN.js → md-kanban-definition-P3RFRI5V-BZHeGUdo.js} +1 -1
- package/dist/md/static/js/{md-locale-BZywaihl.js → md-locale-BO-XNOeF.js} +1 -1
- package/dist/md/static/js/{md-markdown-CHof_I2H.js → md-markdown-B-zbv6EE.js} +1 -1
- package/dist/md/static/js/{md-marketplace-Ds3POzKO.js → md-marketplace-ZqbDqCG7.js} +1 -1
- package/dist/md/static/js/{md-mermaid-parser.core-hfCUgsuY.js → md-mermaid-parser.core-D5qj8elB.js} +3 -3
- package/dist/md/static/js/{md-mermaid.core-qk0l9q9D.js → md-mermaid.core-DDSYz6Lj.js} +4 -4
- package/dist/md/static/js/{md-mindmap-definition-LZFPQGKD-C1cMWO7B.js → md-mindmap-definition-LZFPQGKD-BkTat9h5.js} +1 -1
- package/dist/md/static/js/{md-oauth-CXETOhnZ.js → md-oauth-BijzNF7k.js} +1 -1
- package/dist/md/static/js/{md-packet-JDAUHWVQ-DrOa3aVS.js → md-packet-JDAUHWVQ-QlNNtjkj.js} +1 -1
- package/dist/md/static/js/{md-pegDiagram-BGZESJAR-DU_dIOZl.js → md-pegDiagram-BGZESJAR-BAeSZgQ3.js} +1 -1
- package/dist/md/static/js/{md-pie-XZMESJXO-f8Y5JjcT.js → md-pie-XZMESJXO-DPTkNBWJ.js} +1 -1
- package/dist/md/static/js/{md-pieDiagram-CAPJLFHJ-mF6qIsfp.js → md-pieDiagram-CAPJLFHJ-LwAUugT_.js} +1 -1
- package/dist/md/static/js/{md-post-CHezuK0L.js → md-post-WD34OnCq.js} +1 -1
- package/dist/md/static/js/{md-post-slider-Xq8kjXXi.js → md-post-slider-DjhSy3SN.js} +2 -2
- package/dist/md/static/js/{md-preload-helper-2--UFWE9.js → md-preload-helper-CZ_s7YgV.js} +1 -1
- package/dist/md/static/js/{md-provider-registry-MsrJ0aEj.js → md-provider-registry-Cxtv8d-y.js} +1 -1
- package/dist/md/static/js/{md-providers-D1N92-lC.js → md-providers-B7kRoB_h.js} +2 -2
- package/dist/md/static/js/{md-quadrantDiagram-GDMTTRAM-DY68Gfb6.js → md-quadrantDiagram-GDMTTRAM-0rz_1vSP.js} +1 -1
- package/dist/md/static/js/{md-quickCommands-d-ysQNPU.js → md-quickCommands-phfj1m8Y.js} +1 -1
- package/dist/md/static/js/{md-radar-ABXABTNO-C9IJ98Xg.js → md-radar-ABXABTNO-2-4CT44H.js} +1 -1
- package/dist/md/static/js/{md-railroad-I3PHUGI6-DB6t5P7O.js → md-railroad-I3PHUGI6-V8xWSoyk.js} +1 -1
- package/dist/md/static/js/{md-railroad-abnf-LNEFI6M7-DQRmhEC7.js → md-railroad-abnf-LNEFI6M7-Do9BdsP_.js} +1 -1
- package/dist/md/static/js/{md-railroad-ebnf-DWYD2UWJ-Dp3zLEwp.js → md-railroad-ebnf-DWYD2UWJ-BL_fhDdd.js} +1 -1
- package/dist/md/static/js/{md-railroad-peg-JR7BVNR7-D9gfVlNF.js → md-railroad-peg-JR7BVNR7-CbJIM4Q4.js} +1 -1
- package/dist/md/static/js/{md-railroadDiagram-SM67HX2B-Cy5Q3yLw.js → md-railroadDiagram-SM67HX2B-DHKEwgkD.js} +1 -1
- package/dist/md/static/js/{md-renderer-4AQ1OZU1.js → md-renderer-C3j0sBEK.js} +1 -1
- package/dist/md/static/js/{md-requirementDiagram-X7JNWC4A-Ca1L-MSu.js → md-requirementDiagram-X7JNWC4A-DRJAUlBf.js} +1 -1
- package/dist/md/static/js/{md-sankeyDiagram-UM26HJRW-C4SRu7DB.js → md-sankeyDiagram-UM26HJRW-GDADPdwW.js} +1 -1
- package/dist/md/static/js/{md-sequenceDiagram-ZO4K6R2Y-DQDdiL2I.js → md-sequenceDiagram-ZO4K6R2Y-BqCqeFP1.js} +1 -1
- package/dist/md/static/js/{md-slashCommands-BkcP4b0C.js → md-slashCommands-DX973mid.js} +1 -1
- package/dist/md/static/js/{md-stateDiagram-v2-TBUQTH76-DgWJk1nQ.js → md-stateDiagram-v2-TBUQTH76-DX_X5UE4.js} +1 -1
- package/dist/md/static/js/{md-storage-TAchKcvc.js → md-storage-BSAs4c5b.js} +1 -1
- package/dist/md/static/js/{md-swimlanes-N4OXWK64-CTC8HdWE.js → md-swimlanes-N4OXWK64-Cjy17OrY.js} +1 -1
- package/dist/md/static/js/md-swimlanesDiagram-K3J5GTZL--VyEqkCo.js +8 -0
- package/dist/md/static/js/{md-sync-DzivBtxQ.js → md-sync-D4XCZ-io.js} +1 -1
- package/dist/md/static/js/{md-template-TV8U1qS4.js → md-template-DtFAO0nN.js} +1 -1
- package/dist/md/static/js/{md-timeline-definition-YOQAKGHF-Bd9f4Y10.js → md-timeline-definition-YOQAKGHF-HjNnETws.js} +1 -1
- package/dist/md/static/js/{md-translate-CzY24XmZ.js → md-translate-RJ_Id5UE.js} +1 -1
- package/dist/md/static/js/{md-treeView-D4JQ5SDB-D-XSvTMP.js → md-treeView-D4JQ5SDB-Ck4OYDV1.js} +1 -1
- package/dist/md/static/js/{md-treemap-SAJKECNS-Bd_rK9Mh.js → md-treemap-SAJKECNS-cpDKKtgH.js} +1 -1
- package/dist/md/static/js/{md-ui-Dq6MTvr4.js → md-ui-Bt-aDIF5.js} +3 -3
- package/dist/md/static/js/{md-useEditorRefresh-DQn4H1Wu.js → md-useEditorRefresh-C1KdD5FC.js} +1 -1
- package/dist/md/static/js/{md-useImageUploader-CYOKxpNX.js → md-useImageUploader-s3F44q5B.js} +2 -2
- package/dist/md/static/js/{md-useLocalizedAIServices-rhW4n8Ti.js → md-useLocalizedAIServices-1SgW-zt5.js} +1 -1
- package/dist/md/static/js/{md-useLocalizedBuiltinComponents-DADyqpKR.js → md-useLocalizedBuiltinComponents-KOhSrZ0U.js} +1 -1
- package/dist/md/static/js/{md-useLocalizedStyleOptions-B5NSKADz.js → md-useLocalizedStyleOptions-DSpLX0_2.js} +1 -1
- package/dist/md/static/js/{md-useSyncStatusMeta-ssY-63xV.js → md-useSyncStatusMeta-CobQo-Ih.js} +1 -1
- package/dist/md/static/js/{md-usecaseDiagram-VIAY4XPW-tkWd_m6m.js → md-usecaseDiagram-VIAY4XPW-C89u-Q5k.js} +1 -1
- package/dist/md/static/js/{md-validate-image-3dQVL-8x.js → md-validate-image-B8ox7pXU.js} +1 -1
- package/dist/md/static/js/{md-vennDiagram-BLWOH2XV-B1h1KBPU.js → md-vennDiagram-BLWOH2XV-D7RaDcl0.js} +1 -1
- package/dist/md/static/js/{md-wardley-7MLQ67FV-BMEyqZgl.js → md-wardley-7MLQ67FV-B1oyFXmn.js} +1 -1
- package/dist/md/static/js/{md-wardleyDiagram-YMQ3BMBF-4KQgaOjT.js → md-wardleyDiagram-YMQ3BMBF-UeuqPlcZ.js} +1 -1
- package/dist/md/static/js/{md-xychartDiagram-TAQBALBS-Cg-G6JP7.js → md-xychartDiagram-TAQBALBS-CqLl-yPp.js} +1 -1
- package/dist/transform/404/index.html +2 -2
- package/dist/transform/404.html +2 -2
- package/dist/transform/_next/static/chunks/5f58523c0e7f8a1496e44fb3aa9708ae212b3a59.7eb188b53aa5e032ca26.js +1 -0
- package/dist/transform/_next/static/chunks/pages/css-to-js-5318424ca1c1f2a567b5.js +1 -0
- package/dist/transform/_next/static/chunks/pages/graphql-to-components-3ab2af869fbcfa184855.js +1 -0
- package/dist/transform/_next/static/chunks/pages/graphql-to-flow-5873d22614a64f662965.js +1 -0
- package/dist/transform/_next/static/chunks/pages/graphql-to-fragment-matcher-da076cda5c237a7f299b.js +1 -0
- package/dist/transform/_next/static/chunks/pages/graphql-to-introspection-json-3a503ed929ca8973d6f7.js +1 -0
- package/dist/transform/_next/static/chunks/pages/graphql-to-java-c23506b8cea6425018e6.js +1 -0
- package/dist/transform/_next/static/chunks/pages/graphql-to-resolvers-signature-ec4f7bcb373fc1bfdc64.js +1 -0
- package/dist/transform/_next/static/chunks/pages/graphql-to-schema-ast-f125f56fede43a181a8a.js +1 -0
- package/dist/transform/_next/static/chunks/pages/graphql-to-typescript-46631f6e2b2d74aee5b6.js +1 -0
- package/dist/transform/_next/static/chunks/pages/{graphql-to-typescript-mongodb-e325d75119d2e7677e6b.js → graphql-to-typescript-mongodb-a6762f012c231ad53d4d.js} +1 -1
- package/dist/transform/_next/static/chunks/pages/index-f20eddd83614aa6fbc1a.js +1 -0
- package/dist/transform/_next/static/chunks/pages/json-to-mobx-state-tree-ba0ed623cbfd12c4150d.js +1 -0
- package/dist/transform/_next/static/chunks/pages/json-to-proptypes-74207e5e0180d6373fd9.js +1 -0
- package/dist/transform/_next/static/chunks/pages/object-styles-to-template-literal-4632ad4472ee11ec823f.js +1 -0
- package/dist/transform/_next/static/chunks/pages/svg-to-react-native-71e7874e599dda8ae7a5.js +1 -0
- package/dist/transform/_next/static/{s2f5sIpNXm2PBoE7dI3W4 → pHXDQTMyssHVxbIxujksW}/_buildManifest.js +1 -1
- package/dist/transform/cadence-to-go/index.html +2 -2
- package/dist/transform/css-to-js/index.html +2 -2
- package/dist/transform/css-to-tailwind/index.html +2 -2
- package/dist/transform/flow-to-javascript/index.html +2 -2
- package/dist/transform/flow-to-typescript/index.html +2 -2
- package/dist/transform/flow-to-typescript-declaration/index.html +2 -2
- package/dist/transform/graphql-to-components/index.html +2 -2
- package/dist/transform/graphql-to-flow/index.html +2 -2
- package/dist/transform/graphql-to-fragment-matcher/index.html +2 -2
- package/dist/transform/graphql-to-introspection-json/index.html +2 -2
- package/dist/transform/graphql-to-java/index.html +2 -2
- package/dist/transform/graphql-to-resolvers-signature/index.html +2 -2
- package/dist/transform/graphql-to-schema-ast/index.html +2 -2
- package/dist/transform/graphql-to-typescript/index.html +2 -2
- package/dist/transform/graphql-to-typescript-mongodb/index.html +2 -2
- package/dist/transform/html-to-jsx/index.html +2 -2
- package/dist/transform/html-to-pug/index.html +2 -2
- package/dist/transform/index.html +2 -2
- package/dist/transform/js-object-to-json/index.html +2 -2
- package/dist/transform/js-object-to-typescript/index.html +2 -2
- package/dist/transform/json-schema-to-openapi-schema/index.html +2 -2
- package/dist/transform/json-schema-to-protobuf/index.html +2 -2
- package/dist/transform/json-schema-to-typescript/index.html +2 -2
- package/dist/transform/json-schema-to-zod/index.html +2 -2
- package/dist/transform/json-to-big-query/index.html +2 -2
- package/dist/transform/json-to-flow/index.html +2 -2
- package/dist/transform/json-to-go/index.html +2 -2
- package/dist/transform/json-to-go-bson/index.html +2 -2
- package/dist/transform/json-to-graphql/index.html +2 -2
- package/dist/transform/json-to-io-ts/index.html +2 -2
- package/dist/transform/json-to-java/index.html +2 -2
- package/dist/transform/json-to-jsdoc/index.html +2 -2
- package/dist/transform/json-to-json-schema/index.html +2 -2
- package/dist/transform/json-to-kotlin/index.html +2 -2
- package/dist/transform/json-to-mobx-state-tree/index.html +2 -2
- package/dist/transform/json-to-mongoose/index.html +2 -2
- package/dist/transform/json-to-mysql/index.html +2 -2
- package/dist/transform/json-to-proptypes/index.html +2 -2
- package/dist/transform/json-to-rust-serde/index.html +2 -2
- package/dist/transform/json-to-sarcastic/index.html +2 -2
- package/dist/transform/json-to-scala-case-class/index.html +2 -2
- package/dist/transform/json-to-toml/index.html +2 -2
- package/dist/transform/json-to-typescript/index.html +2 -2
- package/dist/transform/json-to-yaml/index.html +2 -2
- package/dist/transform/json-to-zod/index.html +2 -2
- package/dist/transform/jsonld-to-compacted/index.html +2 -2
- package/dist/transform/jsonld-to-expanded/index.html +2 -2
- package/dist/transform/jsonld-to-flattened/index.html +2 -2
- package/dist/transform/jsonld-to-framed/index.html +2 -2
- package/dist/transform/jsonld-to-normalized/index.html +2 -2
- package/dist/transform/jsonld-to-nquads/index.html +2 -2
- package/dist/transform/markdown-to-html/index.html +2 -2
- package/dist/transform/object-styles-to-template-literal/index.html +2 -2
- package/dist/transform/svg-to-react-native/index.html +2 -2
- package/dist/transform/toml-to-json/index.html +2 -2
- package/dist/transform/toml-to-yaml/index.html +2 -2
- package/dist/transform/typescript-to-flow/index.html +2 -2
- package/dist/transform/typescript-to-javascript/index.html +2 -2
- package/dist/transform/typescript-to-json-schema/index.html +2 -2
- package/dist/transform/typescript-to-typescript-declaration/index.html +2 -2
- package/dist/transform/typescript-to-zod/index.html +2 -2
- package/dist/transform/xml-to-json/index.html +2 -2
- package/dist/transform/yaml-to-json/index.html +2 -2
- package/dist/transform/yaml-to-toml/index.html +2 -2
- package/package.json +1 -1
- package/dist/md/static/js/md-channel-Dx0LllE1.js +0 -1
- package/dist/md/static/js/md-flowDiagram-OXPTDLAJ-BJ9GLr8l.js +0 -1
- package/dist/md/static/js/md-swimlanesDiagram-K3J5GTZL-DxvPEfP2.js +0 -8
- package/dist/transform/_next/static/chunks/5f58523c0e7f8a1496e44fb3aa9708ae212b3a59.81877283f0ccf4cfa5ad.js +0 -1
- package/dist/transform/_next/static/chunks/pages/css-to-js-c151b6d517dfa79fec1c.js +0 -1
- package/dist/transform/_next/static/chunks/pages/graphql-to-components-870c7f6e926ea6492875.js +0 -1
- package/dist/transform/_next/static/chunks/pages/graphql-to-flow-30f6cd8de7e3479085b7.js +0 -1
- package/dist/transform/_next/static/chunks/pages/graphql-to-fragment-matcher-822fa095ae34dfa20d27.js +0 -1
- package/dist/transform/_next/static/chunks/pages/graphql-to-introspection-json-8702f04c773441e24332.js +0 -1
- package/dist/transform/_next/static/chunks/pages/graphql-to-java-c314a62d644b3b5c4b78.js +0 -1
- package/dist/transform/_next/static/chunks/pages/graphql-to-resolvers-signature-4564a0902441752a543f.js +0 -1
- package/dist/transform/_next/static/chunks/pages/graphql-to-schema-ast-17d93f460973a0435671.js +0 -1
- package/dist/transform/_next/static/chunks/pages/graphql-to-typescript-6599e329a8b3c7f28409.js +0 -1
- package/dist/transform/_next/static/chunks/pages/index-77392cac123afdb7d7ff.js +0 -1
- package/dist/transform/_next/static/chunks/pages/json-to-mobx-state-tree-faad7bbce0c5a4a90c69.js +0 -1
- package/dist/transform/_next/static/chunks/pages/json-to-proptypes-f5d98384dff3089f2f01.js +0 -1
- package/dist/transform/_next/static/chunks/pages/object-styles-to-template-literal-aaec7309c1a602288551.js +0 -1
- package/dist/transform/_next/static/chunks/pages/svg-to-react-native-034e52cf3747b84d4275.js +0 -1
- /package/dist/carbon/_next/static/{j89oBtYEmpICvj7fmBMRz → x-ujJmUU2P28xUB4xtC42}/_buildManifest.js +0 -0
- /package/dist/carbon/_next/static/{j89oBtYEmpICvj7fmBMRz → x-ujJmUU2P28xUB4xtC42}/_middlewareManifest.js +0 -0
- /package/dist/carbon/_next/static/{j89oBtYEmpICvj7fmBMRz → x-ujJmUU2P28xUB4xtC42}/_ssgManifest.js +0 -0
- /package/dist/transform/_next/data/{s2f5sIpNXm2PBoE7dI3W4 → pHXDQTMyssHVxbIxujksW}/css-to-tailwind.json +0 -0
- /package/dist/transform/_next/static/{s2f5sIpNXm2PBoE7dI3W4 → pHXDQTMyssHVxbIxujksW}/_ssgManifest.js +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import"./md-src-tr9KvvzG.js";import{i as e,t}from"./md-chunk-X3CZISLH-DOEMZmDS.js";import{_ as n,m as r}from"./md-chunk-3YJQHVM4-CiXjgT0L.js";import{n as i}from"./md-chunk-Y2CYZVJY-DsF7k-Jl.js";import{C as a,D as o,F as s,G as c,H as l,U as u,_ as d,a as f,b as p,c as m,i as h,k as g,q as _,r as v,s as y,v as b,y as x,z as S}from"./md-chunk-VPRB5NB3-CLIIed9Z.js";import{t as C}from"./md-dist-B7qRjWhn.js";import{a as w,c as T,i as E,n as D,r as O,s as k}from"./md-chunk-7TKQ45FW-C72c6C3B.js";import{t as A}from"./md-chunk-2Q5K7J3B-BjJ9pUgW.js";import{n as j,t as M}from"./md-mermaid.core-qk0l9q9D.js";var N=C(),P=(function(){var e=i(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),t=[1,2],n=[1,3],r=[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:i(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:i(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:t,5:n,6:r},{1:[3]},{3:5,4:t,5:n,6:r},{3:6,4:t,5:n,6:r},e([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},e(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},e(I,[2,7]),e(I,[2,8]),e(I,[2,9]),e(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]},e(I,[2,30]),e(I,[2,31]),{33:[1,63]},{35:[1,64]},e(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},e([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},e([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),e(I,[2,6]),e(I,[2,16]),e(be,[2,10],{11:115}),e(I,[2,18]),{5:[1,117],20:[1,116]},{5:[1,118]},e(I,[2,22]),{5:[1,119]},e([5,52,66,104],ye),{5:[1,120]},e(I,[2,25]),e(I,[2,26]),e(I,[2,27]),e(I,[2,28]),e(I,[2,29]),e(I,[2,32]),e(I,[2,33]),e(xe,a,{7:121}),e(xe,a,{7:122}),e(xe,a,{7:123}),e(Se,a,{41:124,7:125}),e(Ce,a,{43:126,7:127}),e(Ce,a,{7:127,43:128}),e(we,a,{46:129,7:130}),e(xe,a,{7:131}),{5:[1,133],52:[1,132]},{5:[1,135],52:[1,134]},e(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},e(q,[2,80]),e(q,[2,81]),e(q,[2,82]),e(q,[2,83]),e(q,[2,84]),e(q,[2,85]),e(q,[2,86]),e(q,[2,87]),e(q,[2,88]),e(q,[2,89]),e(q,[2,90]),e(q,[2,91]),e(q,[2,92]),e(q,[2,93]),e(q,[2,94]),e(q,[2,95]),e(q,[2,96]),e(q,[2,97]),e(q,[2,98]),e(q,[2,99]),e(q,[2,100]),e(q,[2,101]),e(q,[2,102]),e(q,[2,103]),e(q,[2,104]),e(q,[2,105]),{23:148,62:L,73:F},{23:150,60:149,62:L,73:F},e(Ee,[2,68]),e(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]},e(I,[2,20]),e(I,[2,21]),e(I,[2,23]),e(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]},e(I,[2,50]),{16:[1,174]},e(I,[2,55]),e(Te,[2,76]),{76:[1,175]},{16:[1,176]},e(I,[2,52]),{16:[1,177]},e(I,[2,57]),e(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]},e(I,[2,17]),e(be,[2,11]),{13:187,51:D,53:O,54:k},e(be,[2,13]),e(be,[2,14]),e(I,[2,19]),e(I,[2,35]),e(I,[2,36]),e(I,[2,37]),e(I,[2,38]),{16:[1,188]},e(I,[2,39]),{16:[1,189]},e(I,[2,40]),e(I,[2,41]),{16:[1,190]},e(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},e(be,[2,12]),e(Se,a,{7:125,41:202}),e(Ce,a,{7:127,43:203}),e(we,a,{7:130,46:204}),e(I,[2,49]),e(I,[2,54]),e(Te,[2,77]),e(I,[2,51]),e(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:i(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:i(function(e){var t=this,n=[0],r=[],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(e,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){n.length-=2*e,a.length-=e,o.length-=e}i(b,`popStack`);function x(){var e=r.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(r=e,e=r.pop()),e=t.symbols_[e]||e),e}i(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=n[n.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"./md-src-tr9KvvzG.js";import{i as e,t}from"./md-chunk-X3CZISLH-DOEMZmDS.js";import{_ as n,m as r}from"./md-chunk-3YJQHVM4-Bb6IJj4C.js";import{n as i}from"./md-chunk-Y2CYZVJY-DsF7k-Jl.js";import{C as a,D as o,F as s,G as c,H as l,U as u,_ as d,a as f,b as p,c as m,i as h,k as g,q as _,r as v,s as y,v as b,y as x,z as S}from"./md-chunk-VPRB5NB3-DFAB8QDQ.js";import{t as C}from"./md-dist-B7qRjWhn.js";import{a as w,c as T,i as E,n as D,r as O,s as k}from"./md-chunk-7TKQ45FW-Du1Mj90Z.js";import{t as A}from"./md-chunk-2Q5K7J3B-BjJ9pUgW.js";import{n as j,t as M}from"./md-mermaid.core-DDSYz6Lj.js";var N=C(),P=(function(){var e=i(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),t=[1,2],n=[1,3],r=[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:i(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:i(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:t,5:n,6:r},{1:[3]},{3:5,4:t,5:n,6:r},{3:6,4:t,5:n,6:r},e([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},e(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},e(I,[2,7]),e(I,[2,8]),e(I,[2,9]),e(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]},e(I,[2,30]),e(I,[2,31]),{33:[1,63]},{35:[1,64]},e(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},e([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},e([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),e(I,[2,6]),e(I,[2,16]),e(be,[2,10],{11:115}),e(I,[2,18]),{5:[1,117],20:[1,116]},{5:[1,118]},e(I,[2,22]),{5:[1,119]},e([5,52,66,104],ye),{5:[1,120]},e(I,[2,25]),e(I,[2,26]),e(I,[2,27]),e(I,[2,28]),e(I,[2,29]),e(I,[2,32]),e(I,[2,33]),e(xe,a,{7:121}),e(xe,a,{7:122}),e(xe,a,{7:123}),e(Se,a,{41:124,7:125}),e(Ce,a,{43:126,7:127}),e(Ce,a,{7:127,43:128}),e(we,a,{46:129,7:130}),e(xe,a,{7:131}),{5:[1,133],52:[1,132]},{5:[1,135],52:[1,134]},e(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},e(q,[2,80]),e(q,[2,81]),e(q,[2,82]),e(q,[2,83]),e(q,[2,84]),e(q,[2,85]),e(q,[2,86]),e(q,[2,87]),e(q,[2,88]),e(q,[2,89]),e(q,[2,90]),e(q,[2,91]),e(q,[2,92]),e(q,[2,93]),e(q,[2,94]),e(q,[2,95]),e(q,[2,96]),e(q,[2,97]),e(q,[2,98]),e(q,[2,99]),e(q,[2,100]),e(q,[2,101]),e(q,[2,102]),e(q,[2,103]),e(q,[2,104]),e(q,[2,105]),{23:148,62:L,73:F},{23:150,60:149,62:L,73:F},e(Ee,[2,68]),e(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]},e(I,[2,20]),e(I,[2,21]),e(I,[2,23]),e(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]},e(I,[2,50]),{16:[1,174]},e(I,[2,55]),e(Te,[2,76]),{76:[1,175]},{16:[1,176]},e(I,[2,52]),{16:[1,177]},e(I,[2,57]),e(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]},e(I,[2,17]),e(be,[2,11]),{13:187,51:D,53:O,54:k},e(be,[2,13]),e(be,[2,14]),e(I,[2,19]),e(I,[2,35]),e(I,[2,36]),e(I,[2,37]),e(I,[2,38]),{16:[1,188]},e(I,[2,39]),{16:[1,189]},e(I,[2,40]),e(I,[2,41]),{16:[1,190]},e(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},e(be,[2,12]),e(Se,a,{7:125,41:202}),e(Ce,a,{7:127,43:203}),e(we,a,{7:130,46:204}),e(I,[2,49]),e(I,[2,54]),e(Te,[2,77]),e(I,[2,51]),e(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:i(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:i(function(e){var t=this,n=[0],r=[],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(e,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){n.length-=2*e,a.length-=e,o.length-=e}i(b,`popStack`);function x(){var e=r.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(r=e,e=r.pop()),e=t.symbols_[e]||e),e}i(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=n[n.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:n.push(S),a.push(h.yytext),o.push(h.yylloc),n.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&&(n=n.slice(0,-1*k*2),a=a.slice(0,-1*k),o=o.slice(0,-1*k)),n.push(this.productions_[T[1]][0]),a.push(D.$),o.push(D._$),A=s[n[n.length-2]][n[n.length-1]],n.push(A);break;case 3:return!0}}return!0},`parse`)};De.lexer=(function(){return{EOF:1,parseError:i(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:i(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:i(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:i(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:i(function(){return this._more=!0,this},`more`),reject:i(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:i(function(e){this.unput(this.match.slice(e))},`less`),pastInput:i(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:i(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:i(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+`
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{D as e,S as t,T as n,g as r,h as i,t as a,w as o,x as s}from"./md-ui-
|
|
1
|
+
import{D as e,S as t,T as n,g as r,h as i,t as a,w as o,x as s}from"./md-ui-Bt-aDIF5.js";import{r as c}from"./md-translate-RJ_Id5UE.js";import{n as l}from"./md-lib-CvTniYNx.js";import{t as u}from"./md-createLucideIcon-BXdNAL-d.js";import{n as d}from"./md-marketplace-ZqbDqCG7.js";import{n as f}from"./md-editor-CY6v2w8B.js";import{t as p}from"./md-default-content-Cp2JUIKM.js";import{n as m}from"./md-post-WD34OnCq.js";import{t as h}from"./md-useLocalizedStyleOptions-DSpLX0_2.js";var g=u({name:`bold`,size:24,node:[[`path`,{d:`M6 12h9a4 4 0 0 1 0 8H7a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h7a4 4 0 0 1 0 8`,key:`mg9rjx`}]]}),_=u({name:`code`,size:24,node:[[`path`,{d:`m16 18 6-6-6-6`,key:`eg8j8`}],[`path`,{d:`m8 6-6 6 6 6`,key:`ppft3o`}]]}),v=u({name:`heading-1`,size:24,node:[[`path`,{d:`M4 12h8`,key:`17cfdx`}],[`path`,{d:`M4 18V6`,key:`1rz3zl`}],[`path`,{d:`M12 18V6`,key:`zqpxq5`}],[`path`,{d:`m17 12 3-2v8`,key:`1hhhft`}]]}),y=u({name:`heading-2`,size:24,node:[[`path`,{d:`M4 12h8`,key:`17cfdx`}],[`path`,{d:`M4 18V6`,key:`1rz3zl`}],[`path`,{d:`M12 18V6`,key:`zqpxq5`}],[`path`,{d:`M21 18h-4c0-4 4-3 4-6 0-1.5-2-2.5-4-1`,key:`9jr5yi`}]]}),b=u({name:`heading-3`,size:24,node:[[`path`,{d:`M4 12h8`,key:`17cfdx`}],[`path`,{d:`M4 18V6`,key:`1rz3zl`}],[`path`,{d:`M12 18V6`,key:`zqpxq5`}],[`path`,{d:`M17.5 10.5c1.7-1 3.5 0 3.5 1.5a2 2 0 0 1-2 2`,key:`68ncm8`}],[`path`,{d:`M17 17.5c2 1.5 4 .3 4-1.5a2 2 0 0 0-2-2`,key:`1ejuhz`}]]}),x=u({name:`heading-4`,size:24,node:[[`path`,{d:`M12 18V6`,key:`zqpxq5`}],[`path`,{d:`M17 10v3a1 1 0 0 0 1 1h3`,key:`tj5zdr`}],[`path`,{d:`M21 10v8`,key:`1kdml4`}],[`path`,{d:`M4 12h8`,key:`17cfdx`}],[`path`,{d:`M4 18V6`,key:`1rz3zl`}]]}),S=u({name:`heading-5`,size:24,node:[[`path`,{d:`M4 12h8`,key:`17cfdx`}],[`path`,{d:`M4 18V6`,key:`1rz3zl`}],[`path`,{d:`M12 18V6`,key:`zqpxq5`}],[`path`,{d:`M17 13v-3h4`,key:`1nvgqp`}],[`path`,{d:`M17 17.7c.4.2.8.3 1.3.3 1.5 0 2.7-1.1 2.7-2.5S19.8 13 18.3 13H17`,key:`2nebdn`}]]}),C=u({name:`heading-6`,size:24,node:[[`path`,{d:`M4 12h8`,key:`17cfdx`}],[`path`,{d:`M4 18V6`,key:`1rz3zl`}],[`path`,{d:`M12 18V6`,key:`zqpxq5`}],[`circle`,{cx:`19`,cy:`16`,r:`2`,key:`15mx69`}],[`path`,{d:`M20 10c-2 2-3 3.5-3 6`,key:`f35dl0`}]]}),w=u({name:`italic`,size:24,node:[[`line`,{x1:`19`,x2:`10`,y1:`4`,y2:`4`,key:`15jd3p`}],[`line`,{x1:`14`,x2:`5`,y1:`20`,y2:`20`,key:`bu0au3`}],[`line`,{x1:`15`,x2:`9`,y1:`4`,y2:`20`,key:`uljnxc`}]]}),T=u({name:`link`,size:24,node:[[`path`,{d:`M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71`,key:`1cjeqo`}],[`path`,{d:`M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71`,key:`19qd67`}]]}),E=u({name:`list-ordered`,size:24,node:[[`path`,{d:`M11 5h10`,key:`1cz7ny`}],[`path`,{d:`M11 12h10`,key:`1438ji`}],[`path`,{d:`M11 19h10`,key:`11t30w`}],[`path`,{d:`M4 4h1v5`,key:`10yrso`}],[`path`,{d:`M4 9h2`,key:`r1h2o0`}],[`path`,{d:`M6.5 20H3.4c0-1 2.6-1.925 2.6-3.5a1.5 1.5 0 0 0-2.6-1.02`,key:`xtkcd5`}]]}),D=u({name:`list`,size:24,node:[[`path`,{d:`M3 5h.01`,key:`18ugdj`}],[`path`,{d:`M3 12h.01`,key:`nlz23k`}],[`path`,{d:`M3 19h.01`,key:`noohij`}],[`path`,{d:`M8 5h13`,key:`1pao27`}],[`path`,{d:`M8 12h13`,key:`1za7za`}],[`path`,{d:`M8 19h13`,key:`m83p4d`}]]}),O=u({name:`quote`,size:24,node:[[`path`,{d:`M16 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z`,key:`rib7q0`}],[`path`,{d:`M5 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z`,key:`1ymkrd`}]]}),k=u({name:`strikethrough`,size:24,node:[[`path`,{d:`M16 4H9a3 3 0 0 0-2.83 4`,key:`43sutm`}],[`path`,{d:`M14 12a4 4 0 0 1 0 8H6`,key:`nlfj13`}],[`line`,{x1:`4`,x2:`20`,y1:`12`,y2:`12`,key:`1e0a9i`}]]}),A=u({name:`table`,size:24,node:[[`path`,{d:`M12 3v18`,key:`108xh3`}],[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M3 9h18`,key:`1pudct`}],[`path`,{d:`M3 15h18`,key:`5xshup`}]]});function j(){let e=f(),t=m();async function n(){let n=await e.formatContent();return n&&t.currentPost&&t.updatePostContent(t.currentPostId,n),n}function r(){e.importContent(p()),l.success(c(`store.editor.contentReset`))}function i(){e.clearContent()}return{formatContent:n,resetContent:r,clearContent:i}}var M=[`h1`,`h2`,`h3`,`h4`,`h5`,`h6`],N=[`ordered-list`,`unordered-list`,`blockquote`,`divider`],P=[`bold`,`italic`,`strikethrough`,`inline-code`,`link-wrap`],F=[`format-doc`,`reset-content`,`clear-content`,`find`],I={1:[`h1`,`heading1`,`一级`,`标题`],2:[`h2`,`heading2`,`二级`,`标题`],3:[`h3`,`heading3`,`三级`,`标题`],4:[`h4`,`heading4`,`四级`,`标题`],5:[`h5`,`heading5`,`五级`,`标题`],6:[`h6`,`heading6`,`六级`,`标题`]};function L(e){return c(`slash.group.${e}`)}function R(e,t,n){let r=e.state.selection.main.head,i=n??t.length;e.dispatch({changes:{from:r,to:r,insert:t},selection:{anchor:r+i}}),e.focus()}function z(e,t){R(e,t?`\`\`\`${t}\n\n\`\`\``:"```\n\n```",t?t.length+4:4)}function B(e,t){t(e),e.focus()}function V(e){return{...e,groupLabel:L(e.group)}}function H(){let l=a(),u=f(),p=r(),m=i(),{formatContent:g,resetContent:_,clearContent:v}=j();function y(){p.updateCodeTheme(),m.render(u.getContent())}function b(e){p.theme=e,p.applyCurrentTheme(),y()}function x(e){p.primaryColor=e,p.applyCurrentTheme(),y()}let S=[1,2,3,4,5,6].map(e=>V({id:`h${e}`,label:`H${e}`,group:`basic`,keywords:I[e],icon:`H${e}`,action:t=>R(t,`${`#`.repeat(e)} `)})),C=[V({id:`ordered-list`,label:c(`menu.orderedList`),group:`basic`,keywords:[`ol`,`ordered`,`有序`,`列表`,`numbered`],icon:`ordered-list`,action:e=>R(e,`1. `)}),V({id:`unordered-list`,label:c(`menu.unorderedList`),group:`basic`,keywords:[`ul`,`unordered`,`无序`,`列表`,`bullet`],icon:`unordered-list`,action:e=>R(e,`- `)}),V({id:`blockquote`,label:c(`slash.blockquote`),group:`basic`,keywords:[`quote`,`引用`,`blockquote`],icon:`blockquote`,action:e=>R(e,`> `)}),V({id:`divider`,label:c(`slash.divider`),group:`basic`,keywords:[`hr`,`divider`,`分割线`,`---`,`横线`],icon:`divider`,action:e=>R(e,`
|
|
2
2
|
---
|
|
3
3
|
`)})],w=[V({id:`bold`,label:c(`menu.bold`),group:`basic`,keywords:[`bold`,`加粗`,`jiacu`,`b`,`strong`],icon:`bold`,action:e=>B(e,s)}),V({id:`italic`,label:c(`menu.italic`),group:`basic`,keywords:[`italic`,`斜体`,`xieti`,`i`,`em`],icon:`italic`,action:e=>B(e,o)}),V({id:`strikethrough`,label:c(`menu.strikethrough`),group:`basic`,keywords:[`strike`,`strikethrough`,`删除线`,`shanchuxian`,`del`],icon:`strikethrough`,action:t=>B(t,e)}),V({id:`inline-code`,label:c(`menu.inlineCode`),group:`basic`,keywords:[`inline-code`,`code`,`行内代码`,`inline`],icon:`code-inline`,action:e=>B(e,t)}),V({id:`link-wrap`,label:c(`menu.link`),group:`basic`,keywords:[`link-wrap`,`超链接`,`chaolianjie`,`wrap`],icon:`link-wrap`,action:e=>B(e,n)})],T=[V({id:`code-block`,label:c(`slash.codeBlock`),group:`common`,keywords:[`code`,`代码块`,"```",`codeblock`,`fence`],icon:`code`,action:e=>z(e)}),V({id:`markdown`,label:`Markdown`,group:`common`,keywords:[`markdown`,`md`,`raw`],icon:`markdown`,action:e=>z(e,`markdown`)}),V({id:`formula`,label:c(`slash.formulaBlock`),group:`common`,keywords:[`formula`,`公式`,`math`,`latex`,`$$`,`katex`],icon:`formula`,action:()=>{l.openFormulaEditor({value:``,displayMode:!0})}}),V({id:`image`,label:c(`menu.image`),group:`common`,keywords:[`image`,`图片`,`img`,`photo`,`picture`],icon:`image`,action:()=>{l.toggleShowUploadImgDialog()}}),V({id:`table`,label:c(`menu.table`),group:`common`,keywords:[`table`,`表格`,`biaoge`,`grid`],icon:`table`,action:()=>{l.openTableEditDialog()}}),V({id:`component`,label:c(`menu.component`),group:`common`,keywords:[`component`,`组件`,`blocks`,`block`],icon:`blocks`,action:()=>{l.toggleShowComponentDialog()}})],E=[V({id:`format-doc`,label:c(`menu.formatContent`),group:`edit`,keywords:[`format`,`格式化`,`geshihua`,`prettier`],icon:`format`,action:async e=>{await g(),e.focus()}}),V({id:`reset-content`,label:c(`menu.reset`),group:`edit`,keywords:[`reset`,`重置`,`chongzhi`,`default`],icon:`reset`,action:e=>{_(),e.focus()}}),V({id:`clear-content`,label:c(`menu.clear`),group:`edit`,keywords:[`clear`,`清空`,`qingkong`,`empty`],icon:`clear`,action:e=>{v(),e.focus()}}),V({id:`find`,label:c(`menu.find`),group:`edit`,keywords:[`find`,`search`,`查找`,`chazhao`],icon:`find`,action:e=>{let t=e.state.selection.main,n=e.state.doc.sliceString(t.from,t.to).trim();l.openSearchTab(n),e.focus()}})],D=(()=>{let e=d().getInstalledThemeOptions(),{themeOptions:t,colorOptions:n}=h(c,e);return[...t.map(e=>V({id:`theme-${e.value}`,label:c(`slash.themeLabel`,{name:e.label}),group:`style`,keywords:[`theme`,`主题`,`zhuti`,e.value,e.label],icon:`theme`,action:t=>{b(e.value),t.focus()}})),...n.map(e=>V({id:`color-${e.value.replace(`#`,``)}`,label:c(`slash.colorLabel`,{name:e.label}),group:`style`,keywords:[`color`,`主题色`,`zhutise`,e.label,e.value],icon:`color`,swatch:e.value,action:t=>{x(e.value),t.focus()}}))]})();return[...S,...C,...w,...T,...E,...D]}export{b as _,H as a,_ as b,k as c,E as d,T as f,x as g,S as h,M as i,O as l,C as m,P as n,j as o,w as p,F as r,A as s,N as t,D as u,y as v,g as x,v as y};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{t as e}from"./md-purify.es-B0LuI4JX.js";import"./md-src-tr9KvvzG.js";import{i as t,t as n}from"./md-chunk-X3CZISLH-DOEMZmDS.js";import{_ as r,s as i}from"./md-chunk-3YJQHVM4-
|
|
1
|
+
import{t as e}from"./md-purify.es-B0LuI4JX.js";import"./md-src-tr9KvvzG.js";import{i as t,t as n}from"./md-chunk-X3CZISLH-DOEMZmDS.js";import{_ as r,s as i}from"./md-chunk-3YJQHVM4-Bb6IJj4C.js";import{n as a}from"./md-chunk-Y2CYZVJY-DsF7k-Jl.js";import{C as o,H as s,U as c,_ as l,a as u,b as d,q as f,s as p,v as m}from"./md-chunk-VPRB5NB3-DFAB8QDQ.js";import"./md-chunk-HJ2JQQFS-D3hh96VN.js";import"./md-chunk-E2ZNV5FY-W1Zi3naC.js";import"./md-chunk-4EA7E6EY-DEwrdEp4.js";import{a as h,i as g,o as _,r as v}from"./md-chunk-J5ZVWO5B-DUUW7rth.js";import"./md-chunk-XC4XBNZT-CfdESQNj.js";import"./md-chunk-DBDB3WZW-CKZWAGTX.js";import"./md-chunk-2BW5OAIV-Bzipx0js.js";import{t as y}from"./md-chunk-7TKQ45FW-Du1Mj90Z.js";import{t as b}from"./md-chunk-XXDRQBXY-Be1KiaCX.js";import{t as x}from"./md-chunk-KQW6MTUR-Dhx7IoNY.js";import"./md-chunk-NTY3LDVX-GQ44L1v5.js";import{i as S,r as C}from"./md-mermaid.core-DDSYz6Lj.js";var w=(function(){var e=a(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),t=[1,2],n=[1,3],r=[1,4],i=[2,4],o=[1,9],s=[1,11],c=[1,16],l=[1,17],u=[1,18],d=[1,19],f=[1,33],p=[1,20],m=[1,21],h=[1,22],g=[1,23],_=[1,24],v=[1,26],y=[1,27],b=[1,28],x=[1,29],S=[1,30],C=[1,31],w=[1,32],T=[1,35],E=[1,36],D=[1,37],O=[1,38],k=[1,34],A=[1,4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],j=[1,4,5,14,15,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,39,40,41,45,48,51,52,53,54,57],M=[4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],N={trace:a(function(){},`trace`),yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,styleStatement:11,cssClassStatement:12,idStatement:13,DESCR:14,"-->":15,HIDE_EMPTY:16,scale:17,WIDTH:18,COMPOSIT_STATE:19,STRUCT_START:20,STRUCT_STOP:21,STATE_DESCR:22,AS:23,ID:24,FORK:25,JOIN:26,CHOICE:27,CONCURRENT:28,note:29,notePosition:30,NOTE_TEXT:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,CLICK:38,STRING:39,HREF:40,classDef:41,CLASSDEF_ID:42,CLASSDEF_STYLEOPTS:43,DEFAULT:44,style:45,STYLE_IDS:46,STYLEDEF_STYLEOPTS:47,class:48,CLASSENTITY_IDS:49,STYLECLASS:50,direction_tb:51,direction_bt:52,direction_rl:53,direction_lr:54,eol:55,";":56,EDGE_STATE:57,STYLE_SEPARATOR:58,left_of:59,right_of:60,$accept:0,$end:1},terminals_:{2:`error`,4:`SPACE`,5:`NL`,6:`SD`,14:`DESCR`,15:`-->`,16:`HIDE_EMPTY`,17:`scale`,18:`WIDTH`,19:`COMPOSIT_STATE`,20:`STRUCT_START`,21:`STRUCT_STOP`,22:`STATE_DESCR`,23:`AS`,24:`ID`,25:`FORK`,26:`JOIN`,27:`CHOICE`,28:`CONCURRENT`,29:`note`,31:`NOTE_TEXT`,33:`acc_title`,34:`acc_title_value`,35:`acc_descr`,36:`acc_descr_value`,37:`acc_descr_multiline_value`,38:`CLICK`,39:`STRING`,40:`HREF`,41:`classDef`,42:`CLASSDEF_ID`,43:`CLASSDEF_STYLEOPTS`,44:`DEFAULT`,45:`style`,46:`STYLE_IDS`,47:`STYLEDEF_STYLEOPTS`,48:`class`,49:`CLASSENTITY_IDS`,50:`STYLECLASS`,51:`direction_tb`,52:`direction_bt`,53:`direction_rl`,54:`direction_lr`,56:`;`,57:`EDGE_STATE`,58:`STYLE_SEPARATOR`,59:`left_of`,60:`right_of`},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,1],[9,4],[9,4],[9,1],[9,2],[9,2],[9,1],[9,5],[9,5],[10,3],[10,3],[11,3],[12,3],[32,1],[32,1],[32,1],[32,1],[55,1],[55,1],[13,1],[13,1],[13,3],[13,3],[30,1],[30,1]],performAction:a(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 3:return r.setRootDoc(a[s]),a[s];case 4:this.$=[];break;case 5:a[s]!=`nl`&&(a[s-1].push(a[s]),this.$=a[s-1]);break;case 6:case 7:this.$=a[s];break;case 8:this.$=`nl`;break;case 12:this.$=a[s];break;case 13:let e=a[s-1];e.description=r.trimColon(a[s]),this.$=e;break;case 14:this.$={stmt:`relation`,state1:a[s-2],state2:a[s]};break;case 15:let t=r.trimColon(a[s]);this.$={stmt:`relation`,state1:a[s-3],state2:a[s-1],description:t};break;case 19:this.$={stmt:`state`,id:a[s-3],type:`default`,description:``,doc:a[s-1]};break;case 20:var c=a[s],l=a[s-2].trim();if(a[s].match(`:`)){var u=a[s].split(`:`);c=u[0],l=[l,u[1]]}this.$={stmt:`state`,id:c,type:`default`,description:l};break;case 21:this.$={stmt:`state`,id:a[s-3],type:`default`,description:a[s-5],doc:a[s-1]};break;case 22:this.$={stmt:`state`,id:a[s],type:`fork`};break;case 23:this.$={stmt:`state`,id:a[s],type:`join`};break;case 24:this.$={stmt:`state`,id:a[s],type:`choice`};break;case 25:this.$={stmt:`state`,id:r.getDividerId(),type:`divider`};break;case 26:this.$={stmt:`state`,id:a[s-1].trim(),note:{position:a[s-2].trim(),text:a[s].trim()}};break;case 29:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 30:case 31:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 32:this.$={stmt:`click`,id:a[s-3],url:a[s-2],tooltip:a[s-1]};break;case 33:this.$={stmt:`click`,id:a[s-3],url:a[s-1],tooltip:``};break;case 34:case 35:this.$={stmt:`classDef`,id:a[s-1].trim(),classes:a[s].trim()};break;case 36:this.$={stmt:`style`,id:a[s-1].trim(),styleClass:a[s].trim()};break;case 37:this.$={stmt:`applyClass`,id:a[s-1].trim(),styleClass:a[s].trim()};break;case 38:r.setDirection(`TB`),this.$={stmt:`dir`,value:`TB`};break;case 39:r.setDirection(`BT`),this.$={stmt:`dir`,value:`BT`};break;case 40:r.setDirection(`RL`),this.$={stmt:`dir`,value:`RL`};break;case 41:r.setDirection(`LR`),this.$={stmt:`dir`,value:`LR`};break;case 44:case 45:this.$={stmt:`state`,id:a[s].trim(),type:`default`,description:``};break;case 46:this.$={stmt:`state`,id:a[s-2].trim(),classes:[a[s].trim()],type:`default`,description:``};break;case 47:this.$={stmt:`state`,id:a[s-2].trim(),classes:[a[s].trim()],type:`default`,description:``}}},`anonymous`),table:[{3:1,4:t,5:n,6:r},{1:[3]},{3:5,4:t,5:n,6:r},{3:6,4:t,5:n,6:r},e([1,4,5,16,17,19,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],i,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:o,5:s,8:8,9:10,10:12,11:13,12:14,13:15,16:c,17:l,19:u,22:d,24:f,25:p,26:m,27:h,28:g,29:_,32:25,33:v,35:y,37:b,38:x,41:S,45:C,48:w,51:T,52:E,53:D,54:O,57:k},e(A,[2,5]),{9:39,10:12,11:13,12:14,13:15,16:c,17:l,19:u,22:d,24:f,25:p,26:m,27:h,28:g,29:_,32:25,33:v,35:y,37:b,38:x,41:S,45:C,48:w,51:T,52:E,53:D,54:O,57:k},e(A,[2,7]),e(A,[2,8]),e(A,[2,9]),e(A,[2,10]),e(A,[2,11]),e(A,[2,12],{14:[1,40],15:[1,41]}),e(A,[2,16]),{18:[1,42]},e(A,[2,18],{20:[1,43]}),{23:[1,44]},e(A,[2,22]),e(A,[2,23]),e(A,[2,24]),e(A,[2,25]),{30:45,31:[1,46],59:[1,47],60:[1,48]},e(A,[2,28]),{34:[1,49]},{36:[1,50]},e(A,[2,31]),{13:51,24:f,57:k},{42:[1,52],44:[1,53]},{46:[1,54]},{49:[1,55]},e(j,[2,44],{58:[1,56]}),e(j,[2,45],{58:[1,57]}),e(A,[2,38]),e(A,[2,39]),e(A,[2,40]),e(A,[2,41]),e(A,[2,6]),e(A,[2,13]),{13:58,24:f,57:k},e(A,[2,17]),e(M,i,{7:59}),{24:[1,60]},{24:[1,61]},{23:[1,62]},{24:[2,48]},{24:[2,49]},e(A,[2,29]),e(A,[2,30]),{39:[1,63],40:[1,64]},{43:[1,65]},{43:[1,66]},{47:[1,67]},{50:[1,68]},{24:[1,69]},{24:[1,70]},e(A,[2,14],{14:[1,71]}),{4:o,5:s,8:8,9:10,10:12,11:13,12:14,13:15,16:c,17:l,19:u,21:[1,72],22:d,24:f,25:p,26:m,27:h,28:g,29:_,32:25,33:v,35:y,37:b,38:x,41:S,45:C,48:w,51:T,52:E,53:D,54:O,57:k},e(A,[2,20],{20:[1,73]}),{31:[1,74]},{24:[1,75]},{39:[1,76]},{39:[1,77]},e(A,[2,34]),e(A,[2,35]),e(A,[2,36]),e(A,[2,37]),e(j,[2,46]),e(j,[2,47]),e(A,[2,15]),e(A,[2,19]),e(M,i,{7:78}),e(A,[2,26]),e(A,[2,27]),{5:[1,79]},{5:[1,80]},{4:o,5:s,8:8,9:10,10:12,11:13,12:14,13:15,16:c,17:l,19:u,21:[1,81],22:d,24:f,25:p,26:m,27:h,28:g,29:_,32:25,33:v,35:y,37:b,38:x,41:S,45:C,48:w,51:T,52:E,53:D,54:O,57:k},e(A,[2,32]),e(A,[2,33]),e(A,[2,21])],defaultActions:{5:[2,1],6:[2,2],47:[2,48],48:[2,49]},parseError:a(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:a(function(e){var t=this,n=[0],r=[],i=[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(e,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){n.length-=2*e,i.length-=e,o.length-=e}a(b,`popStack`);function x(){var e=r.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(r=e,e=r.pop()),e=t.symbols_[e]||e),e}a(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=n[n.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:n.push(S),i.push(h.yytext),o.push(h.yylloc),n.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.$=i[i.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],i,o].concat(m)),E!==void 0)return E;k&&(n=n.slice(0,-1*k*2),i=i.slice(0,-1*k),o=o.slice(0,-1*k)),n.push(this.productions_[T[1]][0]),i.push(D.$),o.push(D._$),A=s[n[n.length-2]][n[n.length-1]],n.push(A);break;case 3:return!0}}return!0},`parse`)};N.lexer=(function(){return{EOF:1,parseError:a(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:a(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:a(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:a(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:a(function(){return this._more=!0,this},`more`),reject:a(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:a(function(e){this.unput(this.match.slice(e))},`less`),pastInput:a(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:a(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:a(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e,o as t}from"./md-configs-l_iJ-wjP.js";import{$ as n,at as r,gt as i,pt as a}from"./md-vendor_vue-BeOfKbk1.js";import{t as o}from"./md-v4-DDdyfk2q.js";import{r as s}from"./md-translate-CzY24XmZ.js";import{n as c}from"./md-lib-CvTniYNx.js";var l=`MD`;function u(){return o()}var d=(e,t)=>t.some(t=>e instanceof t),f,p;function m(){return f||=[IDBIndex,IDBObjectStore,IDBCursor,IDBDatabase,IDBTransaction]}function ee(){return p||=[`advance`,`continue`,`continuePrimaryKey`].map(e=>IDBCursor.prototype[e])}var h=new WeakMap,g=new WeakMap,_=new WeakMap;function te(e){let t=new Promise((t,n)=>{let r=()=>{e.removeEventListener(`success`,i),e.removeEventListener(`error`,a)},i=()=>{t(y(e.result)),r()},a=()=>{n(e.error),r()};e.addEventListener(`success`,i),e.addEventListener(`error`,a)});return _.set(t,e),t}function ne(e){if(h.has(e))return;let t=new Promise((t,n)=>{let r=()=>{e.removeEventListener(`complete`,i),e.removeEventListener(`error`,a),e.removeEventListener(`abort`,a)},i=()=>{t(),r()},a=()=>{n(e.error||new DOMException(`AbortError`,`AbortError`)),r()};e.addEventListener(`complete`,i),e.addEventListener(`error`,a),e.addEventListener(`abort`,a)});h.set(e,t)}var v={get(e,t,n){if(e instanceof IDBTransaction){if(t===`done`)return h.get(e);if(t===`store`)return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return y(e[t])},set(e,t,n){return e[t]=n,!0},has(e,t){return e instanceof IDBTransaction&&(t===`done`||t===`store`)||t in e}};function re(e){v=e(v)}function ie(e){return ee().includes(e)?function(...t){return e.apply(b(this),t),y(this.request)}:function(...t){return y(e.apply(b(this),t))}}function ae(e){return typeof e==`function`?ie(e):(e instanceof IDBTransaction&&ne(e),d(e,m())?new Proxy(e,v):e)}function y(e){if(e instanceof IDBRequest)return te(e);if(g.has(e))return g.get(e);let t=ae(e);return Object.is(t,e)||(g.set(e,t),_.set(t,e)),t}var b=e=>_.get(e);function oe(e,t,{blocked:n,upgrade:r,blocking:i,terminated:a}={}){let o=indexedDB.open(e,t),s=y(o);return r&&o.addEventListener(`upgradeneeded`,e=>{r(y(o.result),e.oldVersion,e.newVersion,y(o.transaction),e)}),n&&o.addEventListener(`blocked`,e=>n(e.oldVersion,e.newVersion,e)),s.then(e=>{a&&e.addEventListener(`close`,()=>a()),i&&e.addEventListener(`versionchange`,e=>i(e.oldVersion,e.newVersion,e))}).catch(()=>{}),s}var se=[`get`,`getKey`,`getAll`,`getAllKeys`,`count`],ce=[`put`,`add`,`delete`,`clear`],x={};function le(e,t){if(!(e instanceof IDBDatabase&&!(t in e)&&typeof t==`string`))return;if(x[t])return x[t];let n=t.replace(/FromIndex$/,``),r=t!==n,i=ce.includes(n);return!(n in(r?IDBIndex:IDBObjectStore).prototype)||!(i||se.includes(n))?void 0:x[t]=async function(e,...t){let a=this.transaction(e,i?`readwrite`:`readonly`),o=a.store;return r&&(o=o.index(t.shift())),(await Promise.all([o[n](...t),i&&a.done]))[0]}}re(e=>({...e,get:(t,n,r)=>le(t,n)||e.get(t,n,r),has:(t,n)=>!!le(t,n)||e.has(t,n)}));var ue=[`advance`,`continue`,`continuePrimaryKey`],de={},S=new WeakMap,fe=new WeakMap,pe={get(e,t){if(!ue.includes(t))return e[t];let n=de[t];return n||=de[t]=function(...e){S.set(this,fe.get(this)[t](...e))},n}};async function*me(...e){let t=this;if(t instanceof IDBCursor||(t=await t.openCursor(...e)),!t)return;t=t;let n=new Proxy(t,pe);for(fe.set(n,t),_.set(n,b(t));t;)yield n,t=await(S.get(n)||t.continue()),S.delete(n)}function he(e,t){return t===Symbol.asyncIterator&&d(e,[IDBIndex,IDBObjectStore,IDBCursor])||t===`iterate`&&d(e,[IDBIndex,IDBObjectStore])}re(e=>({...e,get(t,n,r){return he(t,n)?me:e.get(t,n,r)},has(t,n){return he(t,n)||e.has(t,n)}}));function C(e){return`${l}__${e}`}var ge=`doocs-md`,w=`documents`,T=`settings`,E=`secrets`,D=`cache`,O=`meta`,_e=C(`storage_migrated_v1`),ve=C(`storage_localstorage_cleaned_v1`),k=C(`emoji_packs`),ye=`${l}__`,be=new Set([`isCiteStatus`,`isCountStatus`,`legend`,`previewWidth`,`showAIToolbox`,`viewMode`,`previewDevice`,`locale`,`openai_type`,`openai_temperature`,`openai_max_token`,`quick_commands`,`imgHost`,`useCompression`,`isShowCssEditor`,`hasShownAIToolboxHint`,`isMobile`,`formCustomConfig`]);C(`current_post_id`),C(`sort_mode`);var A=C(`posts`),xe=[`Config`],Se=[`openai_key_`,`openai_model_`,`openai_image_key_`,`openai_image_endpoint_`,`openai_image_model_`,`mpToken:`],Ce=new Set([`uploaded_image_map`,`ai_generated_images`,`ai_image_timestamps`,`ai_image_prompts`,`ai_memory_context`,`ai_conversation_list`]),we=[`ai_conversation_`];function Te(e){return xe.some(t=>e.endsWith(t))?!0:Se.some(t=>e.startsWith(t))}function j(e){return Ce.has(e)?!0:we.some(t=>e.startsWith(t))}function M(e){return Te(e)?E:j(e)?D:T}var N=[`fonts`,`size`,`color`,`codeBlockTheme`,`headingStyles`,`isMacCodeBlock`,`isShowLineNumber`];function Ee(e){return!!(e.startsWith(ye)||N.includes(e)||be.has(e)||Te(e)||j(e))}var P=C(`legacy_migrated`),De=C(`theme`),F=C(`themeSettings`),I=C(`mp_profile_migrated`),Oe=null;async function ke(e,t,n,r){if(t<1){if(!e.objectStoreNames.contains(w)){let t=e.createObjectStore(w,{keyPath:`id`});t.createIndex(`updateDatetime`,`updateDatetime`),t.createIndex(`parentId`,`parentId`)}e.objectStoreNames.contains(T)||e.createObjectStore(T,{keyPath:`key`}),e.objectStoreNames.contains(E)||e.createObjectStore(E,{keyPath:`key`}),e.objectStoreNames.contains(D)||e.createObjectStore(D,{keyPath:`key`}),e.objectStoreNames.contains(O)||e.createObjectStore(O,{keyPath:`key`})}if(t<4&&e.objectStoreNames.contains(T)&&await r.objectStore(T).delete(k),t<4&&e.objectStoreNames.contains(D)){let e=await r.objectStore(D).openCursor();for(;e;){let t=e.value;typeof t?.key==`string`&&t.key.startsWith(`MD__emoji_blob:`)&&await e.delete(),e=await e.continue()}}t<4&&e.objectStoreNames.contains(`emoji`)&&e.deleteObjectStore(`emoji`)}function L(){return Oe||=oe(ge,4,{async upgrade(e,t,n,r){await ke(e,t,n,r)}}),Oe}async function Ae(e){return(await(await L()).get(O,e))?.value??null}async function je(e,t){await(await L()).put(O,{key:e,value:t})}var Me=0;function R(){let e=Date.now();e-Me<5e3||(Me=e,c.warning(s(`toast.storageQuota`)))}function z(e){return e instanceof DOMException?e.name===`QuotaExceededError`||e.code===22:!1}function Ne(e,t){if(typeof t==`string`)return e;try{return JSON.parse(e)}catch{return t}}var Pe=class{cache=new Map;preloaded=!1;supportsSyncRead(){return this.preloaded}getSync(e){return this.cache.get(e)??null}async preload(){let e=await L();for(let t of[`settings`,`secrets`,`cache`]){let n=await e.getAll(t);for(let e of n)this.cache.set(e.key,e.value)}this.preloaded=!0}async get(e){if(this.cache.has(e))return this.cache.get(e);let t=await L(),n=M(e),r=(await t.get(n,e))?.value??null;return r!==null&&this.cache.set(e,r),r}async set(e,t){let n=await L(),r=M(e),i={key:e,value:t};await n.put(r,i),this.cache.set(e,t)}async remove(e){this.cache.delete(e);let t=await L(),n=M(e);await t.delete(n,e)}async has(e){if(this.cache.has(e))return!0;let t=await L(),n=M(e);return await t.get(n,e)!==void 0}async clear(){let e=await L();await Promise.all([e.clear(`settings`),e.clear(`secrets`),e.clear(`cache`)]);for(let e of[...this.cache.keys()])this.cache.delete(e)}async keys(){return[...this.cache.keys()]}},B=class{supportsSyncRead(){return!0}getSync(e){try{return localStorage.getItem(e)}catch{return null}}async get(e){return this.getSync(e)}async set(e,t){try{localStorage.setItem(e,t)}catch(e){throw z(e)&&R(),e}}async remove(e){localStorage.removeItem(e)}async has(e){return localStorage.getItem(e)!==null}async clear(){localStorage.clear()}async keys(){return Object.keys(localStorage)}};function Fe(e,t){try{let n=JSON.parse(e),r=Object.keys(n);if(r.length<=t)return e;let i=r.slice(-t).reduce((e,t)=>(e[t]=n[t],e),{});return JSON.stringify(i)}catch{return e}}function Ie(e,t){try{let n=JSON.parse(e);return!Array.isArray(n)||n.length<=t?e:JSON.stringify(n.slice(-t))}catch{return e}}function Le(e,t){return e===`uploaded_image_map`?Fe(t,500):e===`ai_generated_images`||e===`ai_image_timestamps`||e===`ai_image_prompts`?Ie(t,50):t}var V=new class e{engine=new B;setEngine(e){this.engine=e}getEngine(){return this.engine}pendingWrites=new Map;static PAGEHIDE_BACKUP_KEY=`MD__pending_writes_backup`;getSync(e){let t=this.pendingWrites.get(e);return t===void 0?this.engine.getSync||this.engine instanceof B?this.engine.getSync(e):null:t}supportsSyncRead(){return this.engine.supportsSyncRead?.()??!1}async get(e){let t=this.pendingWrites.get(e);return t===void 0?this.engine.get(e):t}async set(e,t){return this.pendingWrites.delete(e),this.writeToEngine(e,t)}writeToEngine(e,t){let n=j(e)?Le(e,t):t;return this.engine.set(e,n)}refreshPagehideBackup(){if(typeof localStorage<`u`)try{if(this.pendingWrites.size===0){localStorage.removeItem(e.PAGEHIDE_BACKUP_KEY);return}localStorage.setItem(e.PAGEHIDE_BACKUP_KEY,JSON.stringify(Object.fromEntries(this.pendingWrites)))}catch{}}async restorePendingWrites(){if(typeof localStorage>`u`)return;let t=localStorage.getItem(e.PAGEHIDE_BACKUP_KEY);if(!t)return;localStorage.removeItem(e.PAGEHIDE_BACKUP_KEY);let n;try{n=JSON.parse(t)}catch{return}for(let[e,t]of Object.entries(n))try{await this.writeToEngine(e,t)}catch(t){console.error(`[Storage] Failed to restore pending write:`,e,t)}}async getJSON(e,t){let n=this.pendingWrites.get(e),r=n===void 0?await this.engine.get(e):n;if(!r)return t??null;try{return JSON.parse(r)}catch(n){return console.error(`[Storage] Failed to parse JSON for key:`,e,n),t??null}}async setJSON(e,t){try{let n=JSON.stringify(t);return this.set(e,n)}catch(t){throw console.error(`[Storage] Failed to stringify JSON for key:`,e,t),t}}async remove(e){return this.pendingWrites.delete(e),this.engine.remove(e)}async has(e){return this.pendingWrites.has(e)?!0:this.engine.has(e)}async clear(){return this.pendingWrites.clear(),this.engine.clear()}async keys(){return this.engine.keys()}reactive(e,t){let r=typeof t==`string`,o=t;if(this.supportsSyncRead())try{let n=this.getSync(e);n!==null&&(o=r?n:this.parseJSON(n,t))}catch(t){console.error(`[Storage] Failed to read initial value:`,e,t)}else if(this.engine instanceof B)try{let n=this.engine.getSync(e);n!==null&&(o=r?n:this.parseJSON(n,t))}catch(t){console.error(`[Storage] Failed to read initial value:`,e,t)}let s=a(o);return!this.supportsSyncRead()&&!(this.engine instanceof B)&&(r?this.get(e).then(e=>e===null?null:e):this.getJSON(e,t)).then(e=>{e!==null&&(s.value=e)}),Promise.resolve().then(()=>{let t=null,a=()=>{t&&=(clearTimeout(t),null);let n=this.pendingWrites.get(e);n!==void 0&&this.writeToEngine(e,n).then(()=>{this.pendingWrites.get(e)===n&&this.pendingWrites.delete(e),this.refreshPagehideBackup()}).catch(t=>{z(t)&&R(),console.error(`[Storage] Failed to save reactive data:`,e,t)})};n(s,()=>{try{let n=r?s.value:JSON.stringify(i(s.value));this.pendingWrites.set(e,n),t&&clearTimeout(t),t=setTimeout(a,300)}catch(t){console.error(`[Storage] Failed to stringify reactive data:`,e,t)}},{deep:!0}),typeof window<`u`&&window.addEventListener(`pagehide`,()=>{a(),this.refreshPagehideBackup()})}),s}customReactive(e,t,n){let i=t;return this.getJSON(e,t).then(e=>{let r=e??t;i=n?.get?n.get(r):r}),r((t,r)=>({get(){return t(),i},set:t=>{let a=n?.set?n.set(t):t;i=a,r(),this.setJSON(e,a).catch(t=>{z(t)&&R(),console.error(`[Storage] Failed to save custom reactive data:`,e,t)})}}))}parseJSON(e,t){try{return JSON.parse(e)}catch{return console.warn(`[Storage] Failed to parse JSON, using fallback`),t}}};function Re(e=new Date){return e.getTime()}function ze(e){if(e==null)return null;if(typeof e==`number`)return Number.isFinite(e)?e:null;let t=e instanceof Date?e.getTime():new Date(e).getTime();return Number.isFinite(t)?t:null}function Be(e){return ze(e)??e}function H(e){return(e??[]).map(({datetime:e,content:t})=>({datetime:Be(e),content:String(t)}))}var U=C(`documents_pagehide_backup`),Ve=0;function He(){return Ve+=1,`${Ve}-${Date.now().toString(36)}-${Math.random().toString(36).slice(2,8)}`}function W(e){let t=e instanceof Date?e.getTime():NaN;return Number.isFinite(t)?t:-1/0}function Ue(e){if(!e||typeof e!=`object`)return!1;let t=e;return typeof t.id==`string`&&t.id.length>0}function We(e){return!!e&&typeof e==`object`&&typeof e.token==`string`&&Array.isArray(e.posts)}function Ge(e){return{id:e.id,title:e.title,content:e.content,createDatetime:new Date(e.createDatetime).toISOString(),updateDatetime:new Date(e.updateDatetime).toISOString(),parentId:e.parentId??null,collapsed:e.collapsed}}function Ke(e){return{id:e.id,title:e.title??``,content:e.content??``,history:[],createDatetime:new Date(e.createDatetime),updateDatetime:new Date(e.updateDatetime),parentId:e.parentId??null,collapsed:e.collapsed}}function qe(e){return e.history.length>0?e.history:[{datetime:W(e.updateDatetime),content:e.content}]}function Je(e,t){let n=new Map;for(let t of e)t.id&&n.set(t.id,t);let r=[];for(let e of t){if(!e.id)continue;let t=n.get(e.id);if(t)W(e.updateDatetime)<=W(t.updateDatetime)||n.set(e.id,{...t,title:e.title,content:e.content,updateDatetime:e.updateDatetime,parentId:e.parentId??null,collapsed:e.collapsed});else{let t={...e,history:H(qe(e))};n.set(e.id,t),r.push(t)}}let i=new Set,a=[];for(let t of e){let e=n.get(t.id);e&&!i.has(t.id)&&(a.push(e),i.add(t.id))}for(let e of r)i.has(e.id)||(a.push(e),i.add(e.id));return a}function Ye(e){if(!e)return null;try{let t=JSON.parse(e),n=We(t)?t.token:null,r=Array.isArray(t)?t:We(t)?t.posts:null;if(!r?.length)return null;let i=r.filter(Ue).map(Ke);return i.length===0?null:{token:n,posts:i}}catch{return null}}function Xe(e){let t=null;for(let n of e)n.id&&(!t||W(n.updateDatetime)>=W(t.updateDatetime))&&(t=n);return t}function Ze(e){let t=He();if(typeof localStorage>`u`||e.length===0)return t;let n=[e],r=Xe(e);r&&e.length>1&&n.push([r]);for(let e of n)try{let n={token:t,posts:e.map(Ge)};return localStorage.setItem(U,JSON.stringify(n)),t}catch{}return t}function Qe(){if(typeof localStorage>`u`)return null;try{return Ye(localStorage.getItem(U))}catch{return null}}function G(e){if(typeof localStorage<`u`)try{if(e!==void 0){let t=Ye(localStorage.getItem(U));if(!t||t.token!==e)return}localStorage.removeItem(U)}catch{}}function $e(e){return{id:e.id,title:e.title,content:e.content,history:H(e.history),createDatetime:new Date(e.createDatetime).toISOString(),updateDatetime:new Date(e.updateDatetime).toISOString(),parentId:e.parentId??null,collapsed:e.collapsed}}function et(e){return{id:e.id,title:e.title,content:e.content,history:H(e.history),createDatetime:new Date(e.createDatetime),updateDatetime:new Date(e.updateDatetime),parentId:e.parentId??null,collapsed:e.collapsed}}var K=null,q=!1,tt=Promise.resolve();function nt(e){q=e}function rt(){return K}function J(e){let t=tt.then(e,e);return tt=t.then(()=>{},()=>{}),t}async function it(){let e=await V.get(A);if(!e)return[];try{let t=JSON.parse(e);return Array.isArray(t)?t.map((e,t)=>({...e,createDatetime:new Date(e.createDatetime??Date.now()+t),updateDatetime:new Date(e.updateDatetime??Date.now()+t),history:H(e.history)})):[]}catch{return[]}}async function Y(e){await V.setJSON(A,e),K=[...e]}async function at(e){let t=await L(),n=await t.getAllKeys(w),r=new Set(e.map(e=>e.id)),i=t.transaction(w,`readwrite`);await Promise.all([...e.map(e=>i.store.put($e(e))),...n.filter(e=>!r.has(String(e))).map(e=>i.store.delete(e))]),await i.done,K=[...e]}async function ot(e){if(await(await L()).put(w,$e(e)),K){let t=K.findIndex(t=>t.id===e.id);t===-1?K.push(e):K[t]=e}}async function st(){return q?it():(await(await L()).getAll(w)).map(et)}async function ct(e){let t=[];try{t=await st()}catch(t){return console.error(`[documentRepo] Failed to read posts before restoring backup:`,t),K=e.posts,e.posts}let n=Je(t,e.posts);try{q?await Y(n):await at(n),e.token?G(e.token):G()}catch(e){console.error(`[documentRepo] Failed to restore pagehide backup:`,e),K=n}return n}var X={async loadAll(){if(K)return K;let e=Qe();return e?(K=await ct(e),K):q?(K=await it(),K):(K=(await(await L()).getAll(w)).map(et),K)},async savePost(e){return J(async()=>{try{if(q){let t=K??await this.loadAll(),n=t.findIndex(t=>t.id===e.id);n===-1?t.push(e):t[n]=e,await Y(t);return}await ot(e)}catch(e){throw z(e)&&R(),console.error(`[documentRepo] savePost failed:`,e),e}})},async saveAll(e){return J(async()=>{try{if(q){await Y(e);return}await at(e)}catch(e){throw z(e)&&R(),console.error(`[documentRepo] saveAll failed:`,e),e}})},async deletePost(e){return J(async()=>{q?await Y((K??await this.loadAll()).filter(t=>t.id!==e)):(await(await L()).delete(w,e),K&&=K.filter(t=>t.id!==e))})},async clear(){return J(async()=>{q?(await V.remove(A),K=[]):(await(await L()).clear(w),K=[])})}};function lt(e){try{localStorage.removeItem(e)}catch{}}function ut(){let e=[];try{for(let t=0;t<localStorage.length;t++){let n=localStorage.key(t);n&&e.push(n)}}catch{}return e}function Z(e){try{return localStorage.getItem(e)}catch{return null}}function dt(e){let t=new Set;if(e?.length)for(let n of e)t.add(n);else for(let e of ut())Ee(e)&&t.add(e);t.add(A),t.add(C(`mp-profile`));for(let e of N)t.add(e);t.delete(U);let n=0;for(let e of t)Z(e)!==null&&(lt(e),n++);return n>0&&console.info(`[Storage] Removed ${n} migrated localStorage entries`),n}function ft(e){try{let t=JSON.parse(e);return Array.isArray(t)?t.map((e,t)=>{let n=Date.now();return{...e,createDatetime:new Date(e.createDatetime??n+t),updateDatetime:new Date(e.updateDatetime??n+t),history:H(e.history)}}):null}catch{return null}}async function pt(n){if(Z(P)!==null||await n.get(P)!==null||!N.some(e=>Z(e)!==null))return;let r=Z(De)??await n.get(De)??t.theme,i=Z(F)??await n.get(F),a=i?Ne(i,{}):{},o=e(),s={...a[r]??o},c=Z(`fonts`);c&&(s.fontFamily=c);let l=Z(`size`);l&&(s.fontSize=l);let u=Z(`color`);u&&(s.primaryColor=u);let d=Z(`codeBlockTheme`);d&&(s.codeBlockTheme=d);let f=Z(`headingStyles`);if(f)try{s.headingStyles=JSON.parse(f)}catch{}let p=Z(`isMacCodeBlock`);p!==null&&(s.isMacCodeBlock=p===`true`);let m=Z(`isShowLineNumber`);m!==null&&(s.isShowLineNumber=m===`true`);let ee={...a,[r]:s};await n.set(F,JSON.stringify(ee)),await n.set(P,`1`);for(let e of N)try{localStorage.removeItem(e)}catch{}}async function mt(e){if(await e.get(I)===`1`)return;let t=C(`mp-accounts`);if(await e.get(t)!==null){await e.set(I,`1`);return}let n=Z(C(`mp-profile`));if(!n)await e.set(I,`1`);else try{let r=JSON.parse(n);if(!r||!r.name&&!r.id){await e.set(I,`1`);return}let i=[{id:u(),mpId:r.id??``,name:r.name??``,logo:r.logo??``,desc:r.desc??``,serviceType:r.serviceType??`1`,verify:r.verify??`0`}];await e.set(t,JSON.stringify(i)),await e.set(C(`mp-current-account-id`),i[0].id)}catch{}finally{await e.set(I,`1`),lt(C(`mp-profile`))}}async function ht(e){let t=[];try{for(let e=0;e<localStorage.length;e++){let n=localStorage.key(e);n&&t.push(n)}}catch{}let n=Z(A);if(n!==null){let e=ft(n);if(e===null)return{ok:!1,keys:t};e.length&&await X.saveAll(e)}try{for(let n of t){if(n===A)continue;let t=Z(n);t!==null&&await e.set(n,Le(n,t))}return{ok:!0,keys:t}}catch(e){return console.error(`[Storage] KV migration failed:`,e),{ok:!1,keys:t}}}function gt(e){try{return V.supportsSyncRead()?V.getSync(e):localStorage.getItem(e)}catch{return null}}function _t(e,t){try{return V.set(e,t),!0}catch(e){return z(e)&&R(),!1}}function vt(e){try{return V.remove(e),!0}catch{return!1}}var Q=null;async function $(e){console.warn(`[Storage] ${e} — using localStorage fallback`),nt(!0),await V.remove(k),await V.restorePendingWrites(),await X.loadAll()}function yt(){return Q||(Q=(async()=>{if(typeof indexedDB>`u`)await $(`IndexedDB unavailable`);else try{let e=new Pe,t=await Ae(_e),n;if(t!==`1`){let t=await ht(e);if(!t.ok){console.error(`[Storage] localStorage migration failed; will retry on next launch`),await $(`Migration incomplete`);return}await je(_e,`1`),n=t.keys}await e.preload(),await pt(e),await mt(e),await e.remove(k),await Ae(ve)!==`1`&&(dt(n),await je(ve,`1`)),V.setEngine(e),await V.restorePendingWrites(),await X.loadAll()}catch(e){console.error(`[Storage] IndexedDB init failed:`,e),await $(`IndexedDB init error`)}})(),Q)}export{X as a,Ze as c,Re as d,V as f,u as h,_t as i,H as l,C as m,gt as n,rt as o,Ne as p,vt as r,G as s,yt as t,ze as u};
|
|
1
|
+
import{a as e,o as t}from"./md-configs-l_iJ-wjP.js";import{$ as n,at as r,gt as i,pt as a}from"./md-vendor_vue-BeOfKbk1.js";import{t as o}from"./md-v4-DDdyfk2q.js";import{r as s}from"./md-translate-RJ_Id5UE.js";import{n as c}from"./md-lib-CvTniYNx.js";var l=`MD`;function u(){return o()}var d=(e,t)=>t.some(t=>e instanceof t),f,p;function m(){return f||=[IDBIndex,IDBObjectStore,IDBCursor,IDBDatabase,IDBTransaction]}function ee(){return p||=[`advance`,`continue`,`continuePrimaryKey`].map(e=>IDBCursor.prototype[e])}var h=new WeakMap,g=new WeakMap,_=new WeakMap;function te(e){let t=new Promise((t,n)=>{let r=()=>{e.removeEventListener(`success`,i),e.removeEventListener(`error`,a)},i=()=>{t(y(e.result)),r()},a=()=>{n(e.error),r()};e.addEventListener(`success`,i),e.addEventListener(`error`,a)});return _.set(t,e),t}function ne(e){if(h.has(e))return;let t=new Promise((t,n)=>{let r=()=>{e.removeEventListener(`complete`,i),e.removeEventListener(`error`,a),e.removeEventListener(`abort`,a)},i=()=>{t(),r()},a=()=>{n(e.error||new DOMException(`AbortError`,`AbortError`)),r()};e.addEventListener(`complete`,i),e.addEventListener(`error`,a),e.addEventListener(`abort`,a)});h.set(e,t)}var v={get(e,t,n){if(e instanceof IDBTransaction){if(t===`done`)return h.get(e);if(t===`store`)return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return y(e[t])},set(e,t,n){return e[t]=n,!0},has(e,t){return e instanceof IDBTransaction&&(t===`done`||t===`store`)||t in e}};function re(e){v=e(v)}function ie(e){return ee().includes(e)?function(...t){return e.apply(b(this),t),y(this.request)}:function(...t){return y(e.apply(b(this),t))}}function ae(e){return typeof e==`function`?ie(e):(e instanceof IDBTransaction&&ne(e),d(e,m())?new Proxy(e,v):e)}function y(e){if(e instanceof IDBRequest)return te(e);if(g.has(e))return g.get(e);let t=ae(e);return Object.is(t,e)||(g.set(e,t),_.set(t,e)),t}var b=e=>_.get(e);function oe(e,t,{blocked:n,upgrade:r,blocking:i,terminated:a}={}){let o=indexedDB.open(e,t),s=y(o);return r&&o.addEventListener(`upgradeneeded`,e=>{r(y(o.result),e.oldVersion,e.newVersion,y(o.transaction),e)}),n&&o.addEventListener(`blocked`,e=>n(e.oldVersion,e.newVersion,e)),s.then(e=>{a&&e.addEventListener(`close`,()=>a()),i&&e.addEventListener(`versionchange`,e=>i(e.oldVersion,e.newVersion,e))}).catch(()=>{}),s}var se=[`get`,`getKey`,`getAll`,`getAllKeys`,`count`],ce=[`put`,`add`,`delete`,`clear`],x={};function le(e,t){if(!(e instanceof IDBDatabase&&!(t in e)&&typeof t==`string`))return;if(x[t])return x[t];let n=t.replace(/FromIndex$/,``),r=t!==n,i=ce.includes(n);return!(n in(r?IDBIndex:IDBObjectStore).prototype)||!(i||se.includes(n))?void 0:x[t]=async function(e,...t){let a=this.transaction(e,i?`readwrite`:`readonly`),o=a.store;return r&&(o=o.index(t.shift())),(await Promise.all([o[n](...t),i&&a.done]))[0]}}re(e=>({...e,get:(t,n,r)=>le(t,n)||e.get(t,n,r),has:(t,n)=>!!le(t,n)||e.has(t,n)}));var ue=[`advance`,`continue`,`continuePrimaryKey`],de={},S=new WeakMap,fe=new WeakMap,pe={get(e,t){if(!ue.includes(t))return e[t];let n=de[t];return n||=de[t]=function(...e){S.set(this,fe.get(this)[t](...e))},n}};async function*me(...e){let t=this;if(t instanceof IDBCursor||(t=await t.openCursor(...e)),!t)return;t=t;let n=new Proxy(t,pe);for(fe.set(n,t),_.set(n,b(t));t;)yield n,t=await(S.get(n)||t.continue()),S.delete(n)}function he(e,t){return t===Symbol.asyncIterator&&d(e,[IDBIndex,IDBObjectStore,IDBCursor])||t===`iterate`&&d(e,[IDBIndex,IDBObjectStore])}re(e=>({...e,get(t,n,r){return he(t,n)?me:e.get(t,n,r)},has(t,n){return he(t,n)||e.has(t,n)}}));function C(e){return`${l}__${e}`}var ge=`doocs-md`,w=`documents`,T=`settings`,E=`secrets`,D=`cache`,O=`meta`,_e=C(`storage_migrated_v1`),ve=C(`storage_localstorage_cleaned_v1`),k=C(`emoji_packs`),ye=`${l}__`,be=new Set([`isCiteStatus`,`isCountStatus`,`legend`,`previewWidth`,`showAIToolbox`,`viewMode`,`previewDevice`,`locale`,`openai_type`,`openai_temperature`,`openai_max_token`,`quick_commands`,`imgHost`,`useCompression`,`isShowCssEditor`,`hasShownAIToolboxHint`,`isMobile`,`formCustomConfig`]);C(`current_post_id`),C(`sort_mode`);var A=C(`posts`),xe=[`Config`],Se=[`openai_key_`,`openai_model_`,`openai_image_key_`,`openai_image_endpoint_`,`openai_image_model_`,`mpToken:`],Ce=new Set([`uploaded_image_map`,`ai_generated_images`,`ai_image_timestamps`,`ai_image_prompts`,`ai_memory_context`,`ai_conversation_list`]),we=[`ai_conversation_`];function Te(e){return xe.some(t=>e.endsWith(t))?!0:Se.some(t=>e.startsWith(t))}function j(e){return Ce.has(e)?!0:we.some(t=>e.startsWith(t))}function M(e){return Te(e)?E:j(e)?D:T}var N=[`fonts`,`size`,`color`,`codeBlockTheme`,`headingStyles`,`isMacCodeBlock`,`isShowLineNumber`];function Ee(e){return!!(e.startsWith(ye)||N.includes(e)||be.has(e)||Te(e)||j(e))}var P=C(`legacy_migrated`),De=C(`theme`),F=C(`themeSettings`),I=C(`mp_profile_migrated`),Oe=null;async function ke(e,t,n,r){if(t<1){if(!e.objectStoreNames.contains(w)){let t=e.createObjectStore(w,{keyPath:`id`});t.createIndex(`updateDatetime`,`updateDatetime`),t.createIndex(`parentId`,`parentId`)}e.objectStoreNames.contains(T)||e.createObjectStore(T,{keyPath:`key`}),e.objectStoreNames.contains(E)||e.createObjectStore(E,{keyPath:`key`}),e.objectStoreNames.contains(D)||e.createObjectStore(D,{keyPath:`key`}),e.objectStoreNames.contains(O)||e.createObjectStore(O,{keyPath:`key`})}if(t<4&&e.objectStoreNames.contains(T)&&await r.objectStore(T).delete(k),t<4&&e.objectStoreNames.contains(D)){let e=await r.objectStore(D).openCursor();for(;e;){let t=e.value;typeof t?.key==`string`&&t.key.startsWith(`MD__emoji_blob:`)&&await e.delete(),e=await e.continue()}}t<4&&e.objectStoreNames.contains(`emoji`)&&e.deleteObjectStore(`emoji`)}function L(){return Oe||=oe(ge,4,{async upgrade(e,t,n,r){await ke(e,t,n,r)}}),Oe}async function Ae(e){return(await(await L()).get(O,e))?.value??null}async function je(e,t){await(await L()).put(O,{key:e,value:t})}var Me=0;function R(){let e=Date.now();e-Me<5e3||(Me=e,c.warning(s(`toast.storageQuota`)))}function z(e){return e instanceof DOMException?e.name===`QuotaExceededError`||e.code===22:!1}function Ne(e,t){if(typeof t==`string`)return e;try{return JSON.parse(e)}catch{return t}}var Pe=class{cache=new Map;preloaded=!1;supportsSyncRead(){return this.preloaded}getSync(e){return this.cache.get(e)??null}async preload(){let e=await L();for(let t of[`settings`,`secrets`,`cache`]){let n=await e.getAll(t);for(let e of n)this.cache.set(e.key,e.value)}this.preloaded=!0}async get(e){if(this.cache.has(e))return this.cache.get(e);let t=await L(),n=M(e),r=(await t.get(n,e))?.value??null;return r!==null&&this.cache.set(e,r),r}async set(e,t){let n=await L(),r=M(e),i={key:e,value:t};await n.put(r,i),this.cache.set(e,t)}async remove(e){this.cache.delete(e);let t=await L(),n=M(e);await t.delete(n,e)}async has(e){if(this.cache.has(e))return!0;let t=await L(),n=M(e);return await t.get(n,e)!==void 0}async clear(){let e=await L();await Promise.all([e.clear(`settings`),e.clear(`secrets`),e.clear(`cache`)]);for(let e of[...this.cache.keys()])this.cache.delete(e)}async keys(){return[...this.cache.keys()]}},B=class{supportsSyncRead(){return!0}getSync(e){try{return localStorage.getItem(e)}catch{return null}}async get(e){return this.getSync(e)}async set(e,t){try{localStorage.setItem(e,t)}catch(e){throw z(e)&&R(),e}}async remove(e){localStorage.removeItem(e)}async has(e){return localStorage.getItem(e)!==null}async clear(){localStorage.clear()}async keys(){return Object.keys(localStorage)}};function Fe(e,t){try{let n=JSON.parse(e),r=Object.keys(n);if(r.length<=t)return e;let i=r.slice(-t).reduce((e,t)=>(e[t]=n[t],e),{});return JSON.stringify(i)}catch{return e}}function Ie(e,t){try{let n=JSON.parse(e);return!Array.isArray(n)||n.length<=t?e:JSON.stringify(n.slice(-t))}catch{return e}}function Le(e,t){return e===`uploaded_image_map`?Fe(t,500):e===`ai_generated_images`||e===`ai_image_timestamps`||e===`ai_image_prompts`?Ie(t,50):t}var V=new class e{engine=new B;setEngine(e){this.engine=e}getEngine(){return this.engine}pendingWrites=new Map;static PAGEHIDE_BACKUP_KEY=`MD__pending_writes_backup`;getSync(e){let t=this.pendingWrites.get(e);return t===void 0?this.engine.getSync||this.engine instanceof B?this.engine.getSync(e):null:t}supportsSyncRead(){return this.engine.supportsSyncRead?.()??!1}async get(e){let t=this.pendingWrites.get(e);return t===void 0?this.engine.get(e):t}async set(e,t){return this.pendingWrites.delete(e),this.writeToEngine(e,t)}writeToEngine(e,t){let n=j(e)?Le(e,t):t;return this.engine.set(e,n)}refreshPagehideBackup(){if(typeof localStorage<`u`)try{if(this.pendingWrites.size===0){localStorage.removeItem(e.PAGEHIDE_BACKUP_KEY);return}localStorage.setItem(e.PAGEHIDE_BACKUP_KEY,JSON.stringify(Object.fromEntries(this.pendingWrites)))}catch{}}async restorePendingWrites(){if(typeof localStorage>`u`)return;let t=localStorage.getItem(e.PAGEHIDE_BACKUP_KEY);if(!t)return;localStorage.removeItem(e.PAGEHIDE_BACKUP_KEY);let n;try{n=JSON.parse(t)}catch{return}for(let[e,t]of Object.entries(n))try{await this.writeToEngine(e,t)}catch(t){console.error(`[Storage] Failed to restore pending write:`,e,t)}}async getJSON(e,t){let n=this.pendingWrites.get(e),r=n===void 0?await this.engine.get(e):n;if(!r)return t??null;try{return JSON.parse(r)}catch(n){return console.error(`[Storage] Failed to parse JSON for key:`,e,n),t??null}}async setJSON(e,t){try{let n=JSON.stringify(t);return this.set(e,n)}catch(t){throw console.error(`[Storage] Failed to stringify JSON for key:`,e,t),t}}async remove(e){return this.pendingWrites.delete(e),this.engine.remove(e)}async has(e){return this.pendingWrites.has(e)?!0:this.engine.has(e)}async clear(){return this.pendingWrites.clear(),this.engine.clear()}async keys(){return this.engine.keys()}reactive(e,t){let r=typeof t==`string`,o=t;if(this.supportsSyncRead())try{let n=this.getSync(e);n!==null&&(o=r?n:this.parseJSON(n,t))}catch(t){console.error(`[Storage] Failed to read initial value:`,e,t)}else if(this.engine instanceof B)try{let n=this.engine.getSync(e);n!==null&&(o=r?n:this.parseJSON(n,t))}catch(t){console.error(`[Storage] Failed to read initial value:`,e,t)}let s=a(o);return!this.supportsSyncRead()&&!(this.engine instanceof B)&&(r?this.get(e).then(e=>e===null?null:e):this.getJSON(e,t)).then(e=>{e!==null&&(s.value=e)}),Promise.resolve().then(()=>{let t=null,a=()=>{t&&=(clearTimeout(t),null);let n=this.pendingWrites.get(e);n!==void 0&&this.writeToEngine(e,n).then(()=>{this.pendingWrites.get(e)===n&&this.pendingWrites.delete(e),this.refreshPagehideBackup()}).catch(t=>{z(t)&&R(),console.error(`[Storage] Failed to save reactive data:`,e,t)})};n(s,()=>{try{let n=r?s.value:JSON.stringify(i(s.value));this.pendingWrites.set(e,n),t&&clearTimeout(t),t=setTimeout(a,300)}catch(t){console.error(`[Storage] Failed to stringify reactive data:`,e,t)}},{deep:!0}),typeof window<`u`&&window.addEventListener(`pagehide`,()=>{a(),this.refreshPagehideBackup()})}),s}customReactive(e,t,n){let i=t;return this.getJSON(e,t).then(e=>{let r=e??t;i=n?.get?n.get(r):r}),r((t,r)=>({get(){return t(),i},set:t=>{let a=n?.set?n.set(t):t;i=a,r(),this.setJSON(e,a).catch(t=>{z(t)&&R(),console.error(`[Storage] Failed to save custom reactive data:`,e,t)})}}))}parseJSON(e,t){try{return JSON.parse(e)}catch{return console.warn(`[Storage] Failed to parse JSON, using fallback`),t}}};function Re(e=new Date){return e.getTime()}function ze(e){if(e==null)return null;if(typeof e==`number`)return Number.isFinite(e)?e:null;let t=e instanceof Date?e.getTime():new Date(e).getTime();return Number.isFinite(t)?t:null}function Be(e){return ze(e)??e}function H(e){return(e??[]).map(({datetime:e,content:t})=>({datetime:Be(e),content:String(t)}))}var U=C(`documents_pagehide_backup`),Ve=0;function He(){return Ve+=1,`${Ve}-${Date.now().toString(36)}-${Math.random().toString(36).slice(2,8)}`}function W(e){let t=e instanceof Date?e.getTime():NaN;return Number.isFinite(t)?t:-1/0}function Ue(e){if(!e||typeof e!=`object`)return!1;let t=e;return typeof t.id==`string`&&t.id.length>0}function We(e){return!!e&&typeof e==`object`&&typeof e.token==`string`&&Array.isArray(e.posts)}function Ge(e){return{id:e.id,title:e.title,content:e.content,createDatetime:new Date(e.createDatetime).toISOString(),updateDatetime:new Date(e.updateDatetime).toISOString(),parentId:e.parentId??null,collapsed:e.collapsed}}function Ke(e){return{id:e.id,title:e.title??``,content:e.content??``,history:[],createDatetime:new Date(e.createDatetime),updateDatetime:new Date(e.updateDatetime),parentId:e.parentId??null,collapsed:e.collapsed}}function qe(e){return e.history.length>0?e.history:[{datetime:W(e.updateDatetime),content:e.content}]}function Je(e,t){let n=new Map;for(let t of e)t.id&&n.set(t.id,t);let r=[];for(let e of t){if(!e.id)continue;let t=n.get(e.id);if(t)W(e.updateDatetime)<=W(t.updateDatetime)||n.set(e.id,{...t,title:e.title,content:e.content,updateDatetime:e.updateDatetime,parentId:e.parentId??null,collapsed:e.collapsed});else{let t={...e,history:H(qe(e))};n.set(e.id,t),r.push(t)}}let i=new Set,a=[];for(let t of e){let e=n.get(t.id);e&&!i.has(t.id)&&(a.push(e),i.add(t.id))}for(let e of r)i.has(e.id)||(a.push(e),i.add(e.id));return a}function Ye(e){if(!e)return null;try{let t=JSON.parse(e),n=We(t)?t.token:null,r=Array.isArray(t)?t:We(t)?t.posts:null;if(!r?.length)return null;let i=r.filter(Ue).map(Ke);return i.length===0?null:{token:n,posts:i}}catch{return null}}function Xe(e){let t=null;for(let n of e)n.id&&(!t||W(n.updateDatetime)>=W(t.updateDatetime))&&(t=n);return t}function Ze(e){let t=He();if(typeof localStorage>`u`||e.length===0)return t;let n=[e],r=Xe(e);r&&e.length>1&&n.push([r]);for(let e of n)try{let n={token:t,posts:e.map(Ge)};return localStorage.setItem(U,JSON.stringify(n)),t}catch{}return t}function Qe(){if(typeof localStorage>`u`)return null;try{return Ye(localStorage.getItem(U))}catch{return null}}function G(e){if(typeof localStorage<`u`)try{if(e!==void 0){let t=Ye(localStorage.getItem(U));if(!t||t.token!==e)return}localStorage.removeItem(U)}catch{}}function $e(e){return{id:e.id,title:e.title,content:e.content,history:H(e.history),createDatetime:new Date(e.createDatetime).toISOString(),updateDatetime:new Date(e.updateDatetime).toISOString(),parentId:e.parentId??null,collapsed:e.collapsed}}function et(e){return{id:e.id,title:e.title,content:e.content,history:H(e.history),createDatetime:new Date(e.createDatetime),updateDatetime:new Date(e.updateDatetime),parentId:e.parentId??null,collapsed:e.collapsed}}var K=null,q=!1,tt=Promise.resolve();function nt(e){q=e}function rt(){return K}function J(e){let t=tt.then(e,e);return tt=t.then(()=>{},()=>{}),t}async function it(){let e=await V.get(A);if(!e)return[];try{let t=JSON.parse(e);return Array.isArray(t)?t.map((e,t)=>({...e,createDatetime:new Date(e.createDatetime??Date.now()+t),updateDatetime:new Date(e.updateDatetime??Date.now()+t),history:H(e.history)})):[]}catch{return[]}}async function Y(e){await V.setJSON(A,e),K=[...e]}async function at(e){let t=await L(),n=await t.getAllKeys(w),r=new Set(e.map(e=>e.id)),i=t.transaction(w,`readwrite`);await Promise.all([...e.map(e=>i.store.put($e(e))),...n.filter(e=>!r.has(String(e))).map(e=>i.store.delete(e))]),await i.done,K=[...e]}async function ot(e){if(await(await L()).put(w,$e(e)),K){let t=K.findIndex(t=>t.id===e.id);t===-1?K.push(e):K[t]=e}}async function st(){return q?it():(await(await L()).getAll(w)).map(et)}async function ct(e){let t=[];try{t=await st()}catch(t){return console.error(`[documentRepo] Failed to read posts before restoring backup:`,t),K=e.posts,e.posts}let n=Je(t,e.posts);try{q?await Y(n):await at(n),e.token?G(e.token):G()}catch(e){console.error(`[documentRepo] Failed to restore pagehide backup:`,e),K=n}return n}var X={async loadAll(){if(K)return K;let e=Qe();return e?(K=await ct(e),K):q?(K=await it(),K):(K=(await(await L()).getAll(w)).map(et),K)},async savePost(e){return J(async()=>{try{if(q){let t=K??await this.loadAll(),n=t.findIndex(t=>t.id===e.id);n===-1?t.push(e):t[n]=e,await Y(t);return}await ot(e)}catch(e){throw z(e)&&R(),console.error(`[documentRepo] savePost failed:`,e),e}})},async saveAll(e){return J(async()=>{try{if(q){await Y(e);return}await at(e)}catch(e){throw z(e)&&R(),console.error(`[documentRepo] saveAll failed:`,e),e}})},async deletePost(e){return J(async()=>{q?await Y((K??await this.loadAll()).filter(t=>t.id!==e)):(await(await L()).delete(w,e),K&&=K.filter(t=>t.id!==e))})},async clear(){return J(async()=>{q?(await V.remove(A),K=[]):(await(await L()).clear(w),K=[])})}};function lt(e){try{localStorage.removeItem(e)}catch{}}function ut(){let e=[];try{for(let t=0;t<localStorage.length;t++){let n=localStorage.key(t);n&&e.push(n)}}catch{}return e}function Z(e){try{return localStorage.getItem(e)}catch{return null}}function dt(e){let t=new Set;if(e?.length)for(let n of e)t.add(n);else for(let e of ut())Ee(e)&&t.add(e);t.add(A),t.add(C(`mp-profile`));for(let e of N)t.add(e);t.delete(U);let n=0;for(let e of t)Z(e)!==null&&(lt(e),n++);return n>0&&console.info(`[Storage] Removed ${n} migrated localStorage entries`),n}function ft(e){try{let t=JSON.parse(e);return Array.isArray(t)?t.map((e,t)=>{let n=Date.now();return{...e,createDatetime:new Date(e.createDatetime??n+t),updateDatetime:new Date(e.updateDatetime??n+t),history:H(e.history)}}):null}catch{return null}}async function pt(n){if(Z(P)!==null||await n.get(P)!==null||!N.some(e=>Z(e)!==null))return;let r=Z(De)??await n.get(De)??t.theme,i=Z(F)??await n.get(F),a=i?Ne(i,{}):{},o=e(),s={...a[r]??o},c=Z(`fonts`);c&&(s.fontFamily=c);let l=Z(`size`);l&&(s.fontSize=l);let u=Z(`color`);u&&(s.primaryColor=u);let d=Z(`codeBlockTheme`);d&&(s.codeBlockTheme=d);let f=Z(`headingStyles`);if(f)try{s.headingStyles=JSON.parse(f)}catch{}let p=Z(`isMacCodeBlock`);p!==null&&(s.isMacCodeBlock=p===`true`);let m=Z(`isShowLineNumber`);m!==null&&(s.isShowLineNumber=m===`true`);let ee={...a,[r]:s};await n.set(F,JSON.stringify(ee)),await n.set(P,`1`);for(let e of N)try{localStorage.removeItem(e)}catch{}}async function mt(e){if(await e.get(I)===`1`)return;let t=C(`mp-accounts`);if(await e.get(t)!==null){await e.set(I,`1`);return}let n=Z(C(`mp-profile`));if(!n)await e.set(I,`1`);else try{let r=JSON.parse(n);if(!r||!r.name&&!r.id){await e.set(I,`1`);return}let i=[{id:u(),mpId:r.id??``,name:r.name??``,logo:r.logo??``,desc:r.desc??``,serviceType:r.serviceType??`1`,verify:r.verify??`0`}];await e.set(t,JSON.stringify(i)),await e.set(C(`mp-current-account-id`),i[0].id)}catch{}finally{await e.set(I,`1`),lt(C(`mp-profile`))}}async function ht(e){let t=[];try{for(let e=0;e<localStorage.length;e++){let n=localStorage.key(e);n&&t.push(n)}}catch{}let n=Z(A);if(n!==null){let e=ft(n);if(e===null)return{ok:!1,keys:t};e.length&&await X.saveAll(e)}try{for(let n of t){if(n===A)continue;let t=Z(n);t!==null&&await e.set(n,Le(n,t))}return{ok:!0,keys:t}}catch(e){return console.error(`[Storage] KV migration failed:`,e),{ok:!1,keys:t}}}function gt(e){try{return V.supportsSyncRead()?V.getSync(e):localStorage.getItem(e)}catch{return null}}function _t(e,t){try{return V.set(e,t),!0}catch(e){return z(e)&&R(),!1}}function vt(e){try{return V.remove(e),!0}catch{return!1}}var Q=null;async function $(e){console.warn(`[Storage] ${e} — using localStorage fallback`),nt(!0),await V.remove(k),await V.restorePendingWrites(),await X.loadAll()}function yt(){return Q||(Q=(async()=>{if(typeof indexedDB>`u`)await $(`IndexedDB unavailable`);else try{let e=new Pe,t=await Ae(_e),n;if(t!==`1`){let t=await ht(e);if(!t.ok){console.error(`[Storage] localStorage migration failed; will retry on next launch`),await $(`Migration incomplete`);return}await je(_e,`1`),n=t.keys}await e.preload(),await pt(e),await mt(e),await e.remove(k),await Ae(ve)!==`1`&&(dt(n),await je(ve,`1`)),V.setEngine(e),await V.restorePendingWrites(),await X.loadAll()}catch(e){console.error(`[Storage] IndexedDB init failed:`,e),await $(`IndexedDB init error`)}})(),Q)}export{X as a,Ze as c,Re as d,V as f,u as h,_t as i,H as l,C as m,gt as n,rt as o,Ne as p,vt as r,G as s,yt as t,ze as u};
|