@marimo-team/islands 0.24.3-dev9 → 0.25.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{ConnectedDataExplorerComponent-C9OF_75w.js → ConnectedDataExplorerComponent-KVhjDMSe.js} +1066 -1066
- package/dist/ErrorBoundary-DnNkbB_U.js +200 -0
- package/dist/{ImageComparisonComponent-2a9TMMm2.js → ImageComparisonComponent-Dlm5aWnH.js} +4 -4
- package/dist/{Plot-C-9MQeGP.js → Plot-CTyjbQDT.js} +21032 -20666
- package/dist/_baseMerge-BiGRwuqv.js +165 -0
- package/dist/{abnfDiagram-N423BO3Z-CQKwzX8t.js → abnfDiagram-VCTEODGH-CpN0FRda.js} +17 -18
- package/dist/{any-language-editor-DmQ7dyCx.js → any-language-editor-CycIVIeP.js} +17 -17
- package/dist/arc-7ra3iNdN.js +81 -0
- package/dist/architecture-7GRP2DOG-BWLylgiA.js +3 -0
- package/dist/{architectureDiagram-T3A2C74G-CncrDpfa.js → architectureDiagram-5GKGNRK7-DDyj5SRB.js} +25 -25
- package/dist/assets/__vite-browser-external-C9iR87Zl.js +1 -0
- package/dist/assets/worker-D7hWi02M.js +109 -0
- package/dist/blockDiagram-I7D4REHJ-BbXEXJRu.js +1922 -0
- package/dist/{button-CKBkqR9J.js → button-DdXAm8iz.js} +5 -5
- package/dist/{c4Diagram-5PPSVZJV-DarUk3Yq.js → c4Diagram-7LVT6UL2-DcLsbQmR.js} +696 -668
- package/dist/{capabilities-CMBBJTcc.js → capabilities-B3ce_GNu.js} +1 -1
- package/dist/{html-to-image-BtFMe_Nq.js → cells-DYIkSxs6.js} +6757 -10137
- package/dist/{channel-CyiYUzJv.js → channel-B5XnTarr.js} +1 -1
- package/dist/chat-ui-BXj3uYjy.js +5786 -0
- package/dist/{check-CHig47QV.js → check-B7cIK6gb.js} +1 -1
- package/dist/{chunk-2Q5K7J3B-BMuJl2jB.js → chunk-2Q5K7J3B-BMkUkeuy.js} +2 -2
- package/dist/chunk-4HAMMTFA-D2qv8E0X.js +4188 -0
- package/dist/{chunk-5VM5RSS4-Bcq0ftdy.js → chunk-5VM5RSS4-DKsmPCL6.js} +2 -2
- package/dist/{chunk-NSK5VX7P-CDTMcJB0.js → chunk-75Z2AOVW-5_HsvXwr.js} +23 -23
- package/dist/{chunk-I66GZJ75-BqyTCAPf.js → chunk-DU6HZSFF-BUgAHvnM.js} +21 -4
- package/dist/{chunk-2GRJ4B5K-DgO8Qudq.js → chunk-F27PBJKO-DHmYWZXr.js} +4 -4
- package/dist/{chunk-KEIR6QF5-C4KX3XYh.js → chunk-FOHPRMQF-BpYR8RqP.js} +4 -4
- package/dist/{chunk-WRU74C26-BpWsbiDK.js → chunk-GMAD6QVW-Czynz8aA.js} +486 -258
- package/dist/chunk-GVQU2GXP-yQEdulRS.js +37 -0
- package/dist/{chunk-5RXB4S5H-tLNUVDdO.js → chunk-IMKFNOWR-BfwTebD0.js} +11 -11
- package/dist/{chunk-JWPE2WC7-BJwjGUnF.js → chunk-JWPE2WC7-DJvv1t8U.js} +2 -2
- package/dist/chunk-L3NEJ4N5-DwRWnDDK.js +245 -0
- package/dist/{chunk-7Z6QIM7H-Dc18hFxH.js → chunk-OSK3NFVY-BBKU_Ign.js} +222 -144
- package/dist/{chunk-W5SLKNZC-DLnvpEtV.js → chunk-P2QGCYS3-C0iGU29N.js} +20 -20
- package/dist/{chunk-KBJHAD2P-BuqWqkcW.js → chunk-POPQ4Y6H-BCbS3Ozc.js} +4 -4
- package/dist/{chunk-4I5QYGJK-DpytHuZQ.js → chunk-PWAF6VOD-CTFCL0jI.js} +4 -4
- package/dist/{chunk-JQJVKLGR-CgqCwe8E.js → chunk-SHT3W25Y-BspJEJ5H.js} +109 -63
- package/dist/{chunk-6Q2QTUOP-DmTcEBMn.js → chunk-SVP7TREG-DX3rFNTe.js} +5 -5
- package/dist/{chunk-GF5L2VYU-B0wgCQgS.js → chunk-TICWLB2K-fVF7Uujg.js} +13 -13
- package/dist/{chunk-XXDRQBXY-D73H4IN0.js → chunk-XXDRQBXY-Dnl5VBqG.js} +3 -3
- package/dist/{chunk-Y2CYZVJY-DoegUj_e.js → chunk-Y2CYZVJY-DKKS1VyV.js} +1 -1
- package/dist/{chunk-5FQGJX7Z-B85XCPv6.js → chunk-YOKDWASO-DrWbKnxA.js} +6925 -5460
- package/dist/classDiagram-ZZMXUADV-Fe-V14Sc.js +30 -0
- package/dist/classDiagram-v2-VYDZK3BY-xTDg7lOs.js +30 -0
- package/dist/code-visibility-DElzk_hh.js +138 -0
- package/dist/{common-Cv-4hMa0.js → common-B4-ih9IA.js} +8838 -12645
- package/dist/{compiler-runtime-CAH9RLw2.js → compiler-runtime-Cj8ZWiNS.js} +2 -2
- package/dist/copy-icon-CLdENY__.js +190 -0
- package/dist/{cose-bilkent-JH36ORCC-FUWHkXFX.js → cose-bilkent-JH36ORCC-_LyRKVqm.js} +2 -2
- package/dist/cubic-OaEBhQPK.js +1404 -0
- package/dist/cynefin-OW5HDTMX-obq-i80l.js +3 -0
- package/dist/{cynefinDiagram-MW4NZA55-BXSFK93J.js → cynefinDiagram-5FMLGOSQ-CFQrqzSX.js} +10 -10
- package/dist/{dagre-CGyalH38.js → dagre-BGSfXNEb.js} +678 -537
- package/dist/dagre-GXQ25YYZ-xHNAUTyG.js +425 -0
- package/dist/{data-grid-overlay-editor-DZM4BAaI.js → data-grid-overlay-editor-CRH6JQPE.js} +8 -9
- package/dist/{data-grid-types-BnZwWG8z.js → data-grid-types-BucVmDDp.js} +1 -1
- package/dist/{defaultLocale-DKaU_opG.js → defaultLocale-JI_lnoCe.js} +1 -1
- package/dist/{diagram-7IWD3JNH-BjfzDNvj.js → diagram-S7CK7UJ4-Bt1rPbAx.js} +40 -39
- package/dist/{diagram-UB23O5K3-DDg-7wLA.js → diagram-UQ7AKVKN-D1sq5FoZ.js} +10 -10
- package/dist/{diagram-B4RE2ZJO-CKccR9eE.js → diagram-VSXAHHWV-BKpmG23x.js} +10 -10
- package/dist/{diagram-Q27KOJAE-Zhz01ss7.js → diagram-VX7I27RA-BMwGFVD6.js} +21 -21
- package/dist/{diagram-LBJQPF4R-CJ-bOruh.js → diagram-Z3DM3KII--KLDR9Pl.js} +10 -10
- package/dist/dialog-CgNq6y9-.js +94 -0
- package/dist/{dist-dAqZAPcF.js → dist-1HDa70oE.js} +3 -3
- package/dist/{dist-Re9sOPOx.js → dist-9x1ZRe-e.js} +2 -2
- package/dist/{dist-DEeLqRlU.js → dist-B1vYLK28.js} +1 -1
- package/dist/{dist-C5Bn52W4.js → dist-B8D7McG3.js} +3 -3
- package/dist/{dist-_XvgytiS.js → dist-BHCHt1NI.js} +1 -1
- package/dist/{dist-CRjAdnqF.js → dist-BRxfaJgs.js} +3 -3
- package/dist/{dist-Byj2bV8o.js → dist-BVGtK7Ht.js} +1 -1
- package/dist/{dist-BIN5LKyE.js → dist-BaHjhkpZ.js} +2 -2
- package/dist/{dist-DVFbIwc5.js → dist-BtKIs9N-.js} +1 -1
- package/dist/{dist-BrQGcfQ9.js → dist-C2KzV-vf.js} +2 -2
- package/dist/{dist-DJFiGP2k.js → dist-C2wDlYdD.js} +2 -2
- package/dist/{dist-BVRM2y1P.js → dist-C8xMLVYi.js} +2 -2
- package/dist/dist-CMh_W4y4.js +538 -0
- package/dist/{extends-BPB6_lTK.js → dist-CO1AwwG_.js} +516 -561
- package/dist/{dist-BzN60Z2s.js → dist-CPGxfVGX.js} +1 -1
- package/dist/{dist-C7v-9nUK.js → dist-Cm3iAFMD.js} +3 -3
- package/dist/{dist-CGAxEiaM.js → dist-Cs2FijYk.js} +2 -2
- package/dist/{dist-hXd65f0_.js → dist-D1PpnuZB.js} +1 -1
- package/dist/{dist-VdvbxG72.js → dist-DHOTQar0.js} +1 -1
- package/dist/{dist-DcgzXCfy.js → dist-DPcEtqmG.js} +2 -2
- package/dist/{dist-D4Z_qdP4.js → dist-Df0wKI0F.js} +1 -1
- package/dist/{dist-qhLI-SHd.js → dist-DszxuxS1.js} +2 -2
- package/dist/{dist-BEmkrGoQ.js → dist-Kxgjxakw.js} +1 -1
- package/dist/{dist-BbSMhhD2.js → dist-KzZ7WELx.js} +2 -2
- package/dist/{dist-jWUab2d1.js → dist-lA1Cttkb.js} +1 -1
- package/dist/dropdown-menu-CZgjYSAh.js +4502 -0
- package/dist/{ebnfDiagram-BXEA7PRR-Dm75pCAS.js → ebnfDiagram-PWID7BFC-WnG4cvSQ.js} +17 -18
- package/dist/{erDiagram-JOGREHBK-rVDG3VSQ.js → erDiagram-RLTQ6QDP-DhzKiYHc.js} +1037 -798
- package/dist/error-banner-B94dcDmP.js +391 -0
- package/dist/error-entries-C0NsUqXl.js +56 -0
- package/dist/{esm-CR1nhb1c.js → esm-BElI3qKH.js} +22 -22
- package/dist/{esm-C1d0g6Bv.js → esm-G4Fhsgng.js} +51 -37
- package/dist/{esm-CesmlDrs.js → esm-h8f7-1CJ.js} +423 -423
- package/dist/eventmodeling-NTZA5JFV-D7nP7Uyu.js +3 -0
- package/dist/feedback-button-cQcMqpEP.js +380 -0
- package/dist/flowDiagram-HODETNUW-6dMdB8pR.js +16 -0
- package/dist/{formats-CslNOKy0.js → formats-BR5iGb4s.js} +8 -8
- package/dist/{ganttDiagram-PKOTCBZU-9D-LXF6P.js → ganttDiagram-EL5Y4UJY-DbzEBLbl.js} +15 -15
- package/dist/gitGraph-4MIJSDKK-Dy9uQXGh.js +3 -0
- package/dist/{gitGraphDiagram-DS77QQ5N-BfpsXTLf.js → gitGraphDiagram-WWUBYQGX-BMf0iKi1.js} +10 -10
- package/dist/{glide-data-editor-sPZ8fUFn.js → glide-data-editor-DYOxfSzI.js} +2143 -1910
- package/dist/{glide-utils-NShAPPtn.js → glide-utils-B3rUT5PI.js} +15 -15
- package/dist/globals-BOoLHa7X.js +19 -0
- package/dist/highlighted-body-KPVGNVTW-Ad3MKZ18.js +38 -0
- package/dist/html-to-image-CeYYvQNb.js +3272 -0
- package/dist/info-A6RAGUB7-DKoayiHY.js +3 -0
- package/dist/{infoDiagram-6WML65LV-DqCTXHVy.js → infoDiagram-27XIBGKW-BagtCX_5.js} +7 -7
- package/dist/{ishikawaDiagram-WSZJBQD7-BCUYmZ1v.js → ishikawaDiagram-5VMMS53U-DByDehYy.js} +8 -8
- package/dist/{journeyDiagram-NVQOT4AX-BXB6M4zN.js → journeyDiagram-3NMN7TZE-D2LcKDUO.js} +8 -8
- package/dist/{jsx-runtime-CpoKNRgu.js → jsx-runtime-DgDPJV9S.js} +1 -1
- package/dist/{kanban-definition-27J2QSJJ-CGRhrDUX.js → kanban-definition-UXKFOSKX-BxwkbBI_.js} +29 -29
- package/dist/katex-DFBiSucW.js +21840 -0
- package/dist/{label-lwzzBHUW.js → label-BJ49YTvk.js} +6 -6
- package/dist/{linear-D5r_1YqD.js → linear-Cnaq3Tfb.js} +4 -4
- package/dist/{loader-VZ__bv4g.js → loader-D2W4oM-3.js} +15 -15
- package/dist/main.js +8113 -13475
- package/dist/mermaid-DPNuhemn.js +3084 -0
- package/dist/mermaid-HWGCJPDP-DYCzSILp.js +2 -0
- package/dist/mermaid-parser.core-DxuSfYwJ.js +638 -0
- package/dist/{mhchem-BjwrxcV-.js → mhchem-DWCF06w9.js} +1 -1
- package/dist/{micromark-factory-space-DruVGzeG.js → micromark-factory-space-DGxAzmw8.js} +2 -2
- package/dist/{mindmap-definition-FAOFIHXS-C9gRhzZq.js → mindmap-definition-YA3MSWOX-Cgvojw3y.js} +17 -17
- package/dist/{node-sql-parser-DesT1xNw.js → node-sql-parser-BiZOJ-FS.js} +0 -3
- package/dist/{number-overlay-editor-De2CabLL.js → number-overlay-editor-DZp5bEmI.js} +5 -5
- package/dist/objectWithoutPropertiesLoose-BRDcTsfB.js +23 -0
- package/dist/packet-AYTQ26CC-Yw7ajchJ.js +3 -0
- package/dist/{pegDiagram-VL7TDLO6-Df9IUjMD.js → pegDiagram-XKGWAZYB-DahHhYyN.js} +19 -20
- package/dist/{pick-SnHlmIBN.js → pick-CJeoxYOS.js} +1 -1
- package/dist/pie-WAS4IAKB-BKdKOAkL.js +3 -0
- package/dist/{pieDiagram-7S7Q4E2Y-BmRzQ8ZP.js → pieDiagram-E7YTZNPT-CCtX0oCK.js} +29 -31
- package/dist/{process-output-CPy0YKUe.js → process-output-BCTjlyuH.js} +7 -6
- package/dist/purify.es-DgKyQviY.js +805 -0
- package/dist/{quadrantDiagram-CIZ2JOQS-wFBvWcxS.js → quadrantDiagram-AXDQQJYC-DftINo6g.js} +5 -5
- package/dist/radar-RG4KPBEZ-ScR_D_Ts.js +3 -0
- package/dist/railroad-74A4TZTK-DQvPSdo5.js +3 -0
- package/dist/railroad-abnf-HS5TGJTU-CsJQG2O8.js +3 -0
- package/dist/railroad-ebnf-LZEXJU2U-BgEobkSn.js +3 -0
- package/dist/railroad-peg-WCYAUIDC-DjLAjofI.js +3 -0
- package/dist/{railroadDiagram-AXF67PYL-DxbIatiN.js → railroadDiagram-O6MQD6OU-Du5NsPUb.js} +17 -18
- package/dist/{react-dom-C94wmq5w.js → react-dom-BUgJ-ab_.js} +3 -3
- package/dist/{react-DMWcHin-.js → react-ofJbxM4x.js} +2 -2
- package/dist/{react-vega-DSD5aT7_.js → react-vega-5AcMW8gG.js} +10012 -9369
- package/dist/{requirementDiagram-LRYGKXZP-X_x-Y713.js → requirementDiagram-BXWQKSXE-0pmmxL6_.js} +20 -19
- package/dist/{reveal-component-CVsYlb9J.js → reveal-component-C9h2Lubu.js} +1303 -1237
- package/dist/{sankeyDiagram-W5VNT64P-BYJALbbm.js → sankeyDiagram-P5KCCOFB-CDKR5TJH.js} +4 -4
- package/dist/{select-3qHpFKF9.js → select-C6plhmZr.js} +317 -562
- package/dist/{sequenceDiagram-SI44F4Z6-BiPBe3Sv.js → sequenceDiagram-WJ2MYXX4-DB-ChWwU.js} +11 -11
- package/dist/{sizeCapture-X5ZJPWSS-BKLDeh5H.js → sizeCapture-INFHLROL-Dx5SpkQF.js} +2 -2
- package/dist/{spec-CutWdqo3.js → spec-CAYwFeV6.js} +4 -4
- package/dist/{src-C31ngt98.js → src-CA_m4ONl.js} +298 -303
- package/dist/{stateDiagram-OKZ733FA-B7QyNBxH.js → stateDiagram-D77RDMKH-orN6AwMx.js} +19 -20
- package/dist/stateDiagram-v2-MP3YSRHH-o05_rJN8.js +30 -0
- package/dist/style.css +2 -2
- package/dist/{swimlanes-SLNWSIFB-B4f8VP3b.js → swimlanes-42K2YHIH-BkSDcqDT.js} +1501 -1591
- package/dist/swimlanesDiagram-VR7AAH4N-D_nFQfRc.js +30 -0
- package/dist/{swiper-component-C90YjhaV.js → swiper-component-IOUowglM.js} +39 -26
- package/dist/{time-aWGfjN8x.js → time-BieKwdYS.js} +42 -42
- package/dist/{timeline-definition-Z64GVDOM-Dacq_5lr.js → timeline-definition-24CTP7MA-BuqJUIRZ.js} +7 -7
- package/dist/{toDate-CpXBeDq0.js → toDate-WXg1yLcI.js} +7 -7
- package/dist/toast-DvY70eFX.js +1834 -0
- package/dist/tooltip-qB8NlSqV.js +1742 -0
- package/dist/treeView-Q6P3EWNA-DuRV97YF.js +3 -0
- package/dist/treemap-WGGIJYW6-AsLq-uwC.js +3 -0
- package/dist/use-restore-focus-D5D9xEjZ.js +5946 -0
- package/dist/{use-vega-container-remeasure-DUW4tRxq.js → use-vega-container-remeasure-4DwJbPWu.js} +2 -2
- package/dist/{useAsyncData-CH6-CgJF.js → useAsyncData-BD6AStMt.js} +3 -3
- package/dist/{useDateFormatter-Cp9Jdxls.js → useDateFormatter-BRTPsUK7.js} +8 -8
- package/dist/{useDeepCompareMemoize-JC87C_jO.js → useDeepCompareMemoize-D_HNdyvI.js} +2 -2
- package/dist/{useIframeCapabilities-De3C-9b4.js → useIframeCapabilities-CVtNkI3Y.js} +2 -2
- package/dist/{useLifecycle-B4RGlyf0.js → useLifecycle-DPgiiwwU.js} +6 -6
- package/dist/useNumberFormatter-BfDpa21j.js +251 -0
- package/dist/useTheme-DzXmYZ5V.js +904 -0
- package/dist/{vega-component-ovBXgp91.js → vega-component-D0QXopU8.js} +34 -34
- package/dist/{vega-embed-container-TJ5z5dZw.js → vega-embed-container-CbnTccZi.js} +6 -6
- package/dist/vega-loader.browser-D95WfUcj.js +1139 -0
- package/dist/{vennDiagram-T6HMQDX7-D-Rcq3Iu.js → vennDiagram-4TSXK5OY-CTUlJ2PK.js} +9 -9
- package/dist/wardley-WFR3VGLG-Na-tFhQJ.js +3 -0
- package/dist/{wardleyDiagram-T6FBY63Y-Z-Og7_Wd.js → wardleyDiagram-VM6X3IG4-3evLUb0M.js} +10 -10
- package/dist/{xychartDiagram-ELKLHX3M-BDJ2dITA.js → xychartDiagram-S5SC5T6Z-DL2E3K8-.js} +248 -139
- package/package.json +54 -57
- package/src/__mocks__/notebook.ts +1 -0
- package/src/__mocks__/requests.ts +7 -0
- package/src/__tests__/__snapshots__/CellStatus.test.tsx.snap +12 -12
- package/src/__tests__/fixtures/pair-preview.ts +19 -0
- package/src/__tests__/mount.test.ts +18 -0
- package/src/components/app-config/optional-features.tsx +6 -0
- package/src/components/chat/acp/__tests__/agent-panel-initialization.test.tsx +394 -0
- package/src/components/chat/acp/__tests__/agent-panel.test.tsx +272 -0
- package/src/components/chat/acp/__tests__/state.test.ts +2 -2
- package/src/components/chat/acp/agent-panel.tsx +115 -74
- package/src/components/chat/acp/state.ts +1 -1
- package/src/components/data-table/__tests__/filters.test.ts +21 -21
- package/src/components/data-table/charts/__tests__/spec.test.ts +5 -10
- package/src/components/data-table/column-explorer-panel/column-explorer.tsx +2 -6
- package/src/components/data-table/column-summary/chart-spec-model.tsx +1 -1
- package/src/components/data-table/columns.tsx +64 -67
- package/src/components/editor/RecoveryButton.tsx +1 -0
- package/src/components/editor/__tests__/dynamic-favicon.test.tsx +36 -2
- package/src/components/editor/actions/__tests__/pair-with-agent-commands.test.ts +115 -0
- package/src/components/editor/actions/__tests__/pair-with-agent-modal.test.tsx +218 -0
- package/src/components/editor/actions/pair-with-agent-commands.ts +46 -9
- package/src/components/editor/actions/pair-with-agent-modal.tsx +49 -23
- package/src/components/editor/ai/add-cell-with-ai.tsx +1 -0
- package/src/components/editor/ai/ai-completion-editor.tsx +3 -1
- package/src/components/editor/alerts/__tests__/connection-notice.test.tsx +186 -0
- package/src/components/editor/alerts/__tests__/startup-progress.test.tsx +185 -0
- package/src/components/editor/alerts/connecting-alert.tsx +1 -66
- package/src/components/editor/alerts/connection-notice.tsx +186 -0
- package/src/components/editor/alerts/startup-output.tsx +173 -0
- package/src/components/editor/alerts/startup-progress.tsx +204 -0
- package/src/components/editor/app-container.tsx +9 -3
- package/src/components/editor/boundary/ErrorBoundary.tsx +38 -16
- package/src/components/editor/boundary/__tests__/ErrorBoundary.test.tsx +311 -0
- package/src/components/editor/cell/__tests__/toolbar.test.tsx +73 -0
- package/src/components/editor/cell/code/__tests__/rtc-editor-config.test.ts +50 -0
- package/src/components/editor/cell/code/cell-editor.tsx +41 -42
- package/src/components/editor/cell/toolbar.tsx +11 -0
- package/src/components/editor/chrome/components/__tests__/feedback-button.test.tsx +94 -0
- package/src/components/editor/chrome/components/feedback-button.tsx +63 -42
- package/src/components/editor/chrome/panels/__tests__/packages-panel.test.tsx +164 -8
- package/src/components/editor/chrome/panels/__tests__/sandbox-details.test.tsx +358 -0
- package/src/components/editor/chrome/panels/__tests__/sandbox-recovery.test.tsx +168 -0
- package/src/components/editor/chrome/panels/packages-panel.tsx +113 -175
- package/src/components/editor/chrome/panels/sandbox-controller.tsx +106 -0
- package/src/components/editor/chrome/panels/sandbox-details-state.ts +38 -0
- package/src/components/editor/chrome/panels/sandbox-panel.tsx +230 -0
- package/src/components/editor/chrome/panels/sandbox-toggle.tsx +52 -0
- package/src/components/editor/chrome/wrapper/app-chrome.tsx +7 -0
- package/src/components/editor/chrome/wrapper/footer-items/backend-status.tsx +3 -1
- package/src/components/editor/code/__tests__/readonly-diff.test.tsx +65 -0
- package/src/components/editor/code/readonly-diff.tsx +1 -1
- package/src/components/editor/connections/database/__tests__/__snapshots__/as-code.test.ts.snap +98 -98
- package/src/components/editor/connections/database/__tests__/as-code.test.ts +11 -5
- package/src/components/editor/dynamic-favicon.tsx +17 -10
- package/src/components/editor/file-tree/__tests__/file-explorer-navigation.test.tsx +13 -11
- package/src/components/editor/file-tree/__tests__/tree-actions.test.tsx +54 -0
- package/src/components/editor/file-tree/tree-actions.tsx +11 -14
- package/src/components/editor/header/__tests__/status.test.tsx +8 -20
- package/src/components/editor/header/filename-input.tsx +2 -0
- package/src/components/editor/header/status.tsx +5 -3
- package/src/components/editor/navigation/clipboard.ts +1 -0
- package/src/components/editor/notebook-cell.tsx +4 -2
- package/src/components/editor/output/JsonOutput.tsx +182 -632
- package/src/components/editor/output/Outputs.css +49 -17
- package/src/components/editor/output/__tests__/JsonOutput-interactions.test.tsx +254 -0
- package/src/components/editor/output/__tests__/JsonOutput-mimetype.test.tsx +41 -46
- package/src/components/editor/output/__tests__/{json-output.test.ts → json-output-formatting.test.ts} +113 -75
- package/src/components/editor/output/__tests__/json-output-pagination.test.ts +252 -0
- package/src/components/editor/output/json-output/formatting.ts +167 -0
- package/src/components/editor/output/json-output/pagination.ts +155 -0
- package/src/components/editor/output/json-output/renderers.tsx +196 -0
- package/src/components/editor/output/json-output/themes.ts +52 -0
- package/src/components/editor/package-alert.tsx +112 -66
- package/src/components/editor/renderers/cell-array.tsx +1 -5
- package/src/components/editor/renderers/slides-layout/__tests__/plugin.test.ts +3 -7
- package/src/components/slides/slide-form.tsx +1 -0
- package/src/components/slides/slide-notes-editor.tsx +1 -0
- package/src/components/tracing/tracing-spec.ts +1 -1
- package/src/components/ui/__tests__/badge.test.ts +6 -4
- package/src/components/ui/use-toast.ts +8 -0
- package/src/core/MarimoApp.tsx +0 -2
- package/src/core/ai/context/providers/__tests__/error.test.ts +16 -22
- package/src/core/alerts/__tests__/environment.test.ts +183 -0
- package/src/core/alerts/__tests__/state.test.tsx +240 -0
- package/src/core/alerts/environment.ts +57 -0
- package/src/core/alerts/state.ts +155 -99
- package/src/core/cells/__tests__/__snapshots__/cells.test.ts.snap +296 -259
- package/src/core/cells/__tests__/apply-transaction.test.ts +34 -0
- package/src/core/cells/__tests__/cell.test.ts +61 -0
- package/src/core/cells/__tests__/cells.test.ts +182 -37
- package/src/core/cells/__tests__/document-changes.test.ts +39 -1
- package/src/core/cells/__tests__/outputs.test.tsx +117 -0
- package/src/core/cells/__tests__/pending-delete-service.test.tsx +4 -3
- package/src/core/cells/__tests__/session.test.ts +7 -0
- package/src/core/cells/cell.ts +9 -1
- package/src/core/cells/cells.ts +13 -18
- package/src/core/cells/document-changes.ts +11 -1
- package/src/core/cells/outputs.ts +66 -9
- package/src/core/cells/pending-delete-service.ts +12 -16
- package/src/core/cells/session.ts +2 -0
- package/src/core/cells/types.ts +2 -0
- package/src/core/codemirror/find-replace/__tests__/navigate.test.ts +8 -16
- package/src/core/codemirror/language/__tests__/sql.test.ts +70 -2
- package/src/core/codemirror/language/embedded/__tests__/embedded-python.test.ts +4 -8
- package/src/core/codemirror/language/languages/sql/sql.ts +16 -1
- package/src/core/codemirror/rtc/extension.ts +5 -2
- package/src/core/config/pair.ts +19 -0
- package/src/core/datasets/__tests__/data-source.test.ts +2 -0
- package/src/core/datasets/data-source-connections.ts +15 -10
- package/src/core/edit-app.tsx +8 -5
- package/src/core/errors/state.ts +1 -2
- package/src/core/export/__tests__/hooks.test.ts +1 -6
- package/src/core/islands/bootstrap.ts +3 -1
- package/src/core/islands/bridge.ts +3 -0
- package/src/core/islands/worker-factory.ts +2 -12
- package/src/core/kernel/messages.ts +2 -2
- package/src/core/network/__tests__/requests-network.test.ts +4 -3
- package/src/core/network/connection-notice.ts +117 -0
- package/src/core/network/connection.ts +19 -0
- package/src/core/network/requests-lazy.ts +3 -0
- package/src/core/network/requests-network.ts +12 -0
- package/src/core/network/requests-static.ts +3 -0
- package/src/core/network/requests-toasting.tsx +3 -0
- package/src/core/network/resolve.ts +2 -1
- package/src/core/network/types.ts +7 -0
- package/src/core/network/useConnectionNotice.ts +53 -0
- package/src/core/packages/__tests__/usePackageAction.test.tsx +129 -0
- package/src/core/packages/__tests__/useSandboxController.test.tsx +246 -0
- package/src/core/packages/package-data.ts +35 -0
- package/src/core/packages/sandbox-state.ts +67 -0
- package/src/core/packages/toast-components.tsx +11 -0
- package/src/core/packages/useInstallPackage.ts +1 -1
- package/src/core/packages/usePackageAction.ts +51 -0
- package/src/core/packages/usePackageDependencies.ts +22 -0
- package/src/core/packages/useSandboxController.ts +208 -0
- package/src/core/run-app.tsx +2 -0
- package/src/core/static/__tests__/files.test.ts +12 -30
- package/src/core/wasm/__tests__/bootstrap.test.ts +63 -0
- package/src/core/wasm/__tests__/bridge.test.ts +13 -4
- package/src/core/wasm/__tests__/fs.test.ts +22 -0
- package/src/core/wasm/__tests__/runtime-config.test.ts +65 -0
- package/src/core/wasm/bridge.ts +35 -23
- package/src/core/wasm/rpc.ts +2 -0
- package/src/core/wasm/runtime-config.ts +31 -0
- package/src/core/wasm/worker/bootstrap.ts +21 -11
- package/src/core/wasm/worker/constants.ts +1 -0
- package/src/core/wasm/worker/fs.ts +4 -0
- package/src/core/wasm/worker/getController.ts +3 -1
- package/src/core/wasm/worker/save-worker.ts +10 -9
- package/src/core/wasm/worker/types.ts +6 -4
- package/src/core/wasm/worker/worker.ts +9 -9
- package/src/core/websocket/__tests__/useMarimoKernelConnection.hook.test.tsx +404 -3
- package/src/core/websocket/__tests__/useMarimoKernelConnection.test.ts +8 -6
- package/src/core/websocket/transports/transport.ts +1 -1
- package/src/core/websocket/transports/ws.ts +1 -1
- package/src/core/websocket/types.ts +11 -1
- package/src/core/websocket/useMarimoKernelConnection.tsx +63 -16
- package/src/hooks/useDebounce.ts +2 -0
- package/src/mount.tsx +3 -0
- package/src/plugins/core/BadPlugin.tsx +3 -14
- package/src/plugins/core/RenderHTML.tsx +22 -2
- package/src/plugins/core/__test__/RenderHTML.test.ts +187 -0
- package/src/plugins/core/registerReactComponent.tsx +0 -1
- package/src/plugins/impl/FileBrowserPlugin.tsx +10 -4
- package/src/plugins/impl/FormPlugin.tsx +2 -0
- package/src/plugins/impl/MatrixPlugin.tsx +2 -0
- package/src/plugins/impl/RangeSliderPlugin.tsx +2 -0
- package/src/plugins/impl/SliderPlugin.tsx +2 -0
- package/src/plugins/impl/__tests__/FileBrowserPlugin.test.tsx +50 -1
- package/src/plugins/impl/data-editor/__tests__/glide-data-editor.test.tsx +23 -18
- package/src/plugins/impl/data-frames/panel.tsx +1 -0
- package/src/plugins/impl/image-comparison/ImageComparisonComponent.tsx +1 -1
- package/src/plugins/impl/image-comparison/__tests__/ImageComparisonComponent.test.tsx +15 -0
- package/src/plugins/impl/vega/__tests__/make-selectable.test.ts +42 -48
- package/src/plugins/layout/AccordionPlugin.tsx +7 -2
- package/src/plugins/layout/JsonOutputPlugin.tsx +7 -10
- package/src/plugins/layout/__test__/AccordionPlugin.test.tsx +66 -0
- package/src/stories/sandbox.stories.tsx +488 -0
- package/src/utils/__tests__/path.test.ts +6 -5
- package/src/utils/__tests__/worker.test.ts +81 -0
- package/src/utils/worker.ts +22 -0
- package/dist/ErrorBoundary-CR-ZQN_c.js +0 -125
- package/dist/_baseMerge-Dv8bBloN.js +0 -73
- package/dist/_initCloneObject---vediN2.js +0 -95
- package/dist/arc-DOVLrCPd.js +0 -82
- package/dist/architecture-TIHT7OUA-MiJpPpQW.js +0 -3
- package/dist/array-CApNbSU9.js +0 -6
- package/dist/assets/__vite-browser-external-BdKGjRZ4.js +0 -1
- package/dist/assets/worker-DlIBfp9S.js +0 -98
- package/dist/blockDiagram-VBNYF7ZC-Bc--I65C.js +0 -3158
- package/dist/chat-ui-BSwr409J.js +0 -8455
- package/dist/chunk-3NCLNEKW-BIp_lB_4.js +0 -14
- package/dist/chunk-5FCAYU7R-C_HO9A1J.js +0 -23
- package/dist/chunk-5HE753X5-Bixm_MV-.js +0 -38
- package/dist/chunk-5JV3BV7I-CH5J3iZY.js +0 -54
- package/dist/chunk-5TONJI2A-DG6gDiSS.js +0 -62
- package/dist/chunk-7BUUIJ7U-5afmIPeo.js +0 -82
- package/dist/chunk-BIQX33UG-7TMBUf89.js +0 -23
- package/dist/chunk-CQNSW5MT-Cnqqsxt-.js +0 -38
- package/dist/chunk-CYSBUYHQ-BAbymFHR.js +0 -23
- package/dist/chunk-EMLP6XTP-Bsz-QL77.js +0 -23
- package/dist/chunk-J7OUQ5F2-CM_meqZH.js +0 -57
- package/dist/chunk-JG7HCLWE-DUnCDgPk.js +0 -62
- package/dist/chunk-MOZMSUNE-BG6IHvzT.js +0 -35
- package/dist/chunk-OSBZ3O6U-CYwj_bvR.js +0 -23
- package/dist/chunk-QBLGF6JB-B4vJ4j8J.js +0 -23
- package/dist/chunk-QR6OTTB3-D4wH2ldi.js +0 -3738
- package/dist/chunk-R7FJI6CG-Blf8FcmZ.js +0 -64
- package/dist/chunk-RYQCIY6F-BWbIlBIH.js +0 -241
- package/dist/chunk-U6XO7XAA-COw445DS.js +0 -63
- package/dist/chunk-UBXNYLIW-BHigVU4H.js +0 -32
- package/dist/chunk-YOTPTUD7-Dn044Q_d.js +0 -30
- package/dist/chunk-ZIRB5QZD-BR4TMfOa.js +0 -1153
- package/dist/classDiagram-JCYQIIEL-DmXSLxe_.js +0 -30
- package/dist/classDiagram-v2-OCEON4UE-CooqVexA.js +0 -30
- package/dist/click-outside-container-D_URcm3D.js +0 -167
- package/dist/code-block-37QAKDTI-CQrzBOr-.js +0 -107
- package/dist/copy-CD7S58CY.js +0 -141
- package/dist/cynefin-VYW2F7L2-CeHAxOEX.js +0 -3
- package/dist/dagre-VZM6K2ZE-CJggWPTJ.js +0 -328
- package/dist/dist-3_o3T78I.js +0 -1360
- package/dist/dist-ABQjhuek.js +0 -64
- package/dist/dist-CO5R6VMi.js +0 -538
- package/dist/dropdown-menu-DhCfcscX.js +0 -5858
- package/dist/emotion-is-prop-valid.esm-M57VsT8j.js +0 -14
- package/dist/error-banner-CsXbEEjo.js +0 -611
- package/dist/eventmodeling-45OFAUF4-B_lWZ-Pd.js +0 -3
- package/dist/flowDiagram-UKHOOZJN-g1AmrZzM.js +0 -17
- package/dist/gitGraph-TEB2WS4Q-Dj-eXUph.js +0 -3
- package/dist/info-DKCQHKI2-Bhb-pe2e.js +0 -3
- package/dist/line-CuKjIQa1.js +0 -34
- package/dist/map-BJpOfPlL.js +0 -149
- package/dist/math-BXtKgYah.js +0 -10
- package/dist/mermaid-4DMBBIKO-Ddp9TgNp.js +0 -2
- package/dist/mermaid-Bi23Ibnw.js +0 -1173
- package/dist/mermaid-parser.core-Din9FvSi.js +0 -99
- package/dist/packet-7NZHBO7P-fbkIIyKE.js +0 -3
- package/dist/path-BNHuHZP8.js +0 -87
- package/dist/pie-RZYD4A2V-CLRIsxY1.js +0 -3
- package/dist/purify.es-CB-YO1Hn.js +0 -774
- package/dist/radar-I7S5WNFK-BGzCbgXu.js +0 -3
- package/dist/railroad-3IZDKUUU-CvQIIcuU.js +0 -3
- package/dist/railroad-abnf-AHOZXSZD-CMwtlNtu.js +0 -3
- package/dist/railroad-ebnf-EBAXGLYW-n1QUOAsh.js +0 -3
- package/dist/railroad-peg-LSFZ7HO6-PjnrpmCs.js +0 -3
- package/dist/schemas-DzK6U94N.js +0 -6057
- package/dist/stateDiagram-v2-UEYNNEHI-BTRUs8Il.js +0 -30
- package/dist/step-CKczO72Q.js +0 -670
- package/dist/swimlanesDiagram-ULZ7WXOC-NBmgBl9G.js +0 -31
- package/dist/timer-DpDyj9G0.js +0 -596
- package/dist/tooltip-Dt77sBeT.js +0 -390
- package/dist/treeView-QDETBFTQ-DU8LwHuf.js +0 -3
- package/dist/treemap-6X3UGDF4-DUk4-k_O.js +0 -3
- package/dist/useTheme-CVJ0UOf2.js +0 -841
- package/dist/vega-loader.browser-DEggZzni.js +0 -1083
- package/dist/wardley-OPB4EBWU-Db-AaGas.js +0 -3
- package/src/components/editor/output/EmotionCacheProvider.tsx +0 -32
|
@@ -0,0 +1,3084 @@
|
|
|
1
|
+
import { a as e, r as t } from "./rolldown-runtime-Cb76FRpK.js";
|
|
2
|
+
import { g as n } from "./button-DdXAm8iz.js";
|
|
3
|
+
import { t as r } from "./react-ofJbxM4x.js";
|
|
4
|
+
import { t as i } from "./compiler-runtime-Cj8ZWiNS.js";
|
|
5
|
+
import { t as a } from "./jsx-runtime-DgDPJV9S.js";
|
|
6
|
+
import { n as o } from "./error-banner-B94dcDmP.js";
|
|
7
|
+
import { t as s } from "./graphlib-BmY_CCV9.js";
|
|
8
|
+
import { n as c } from "./useTheme-DzXmYZ5V.js";
|
|
9
|
+
import { t as l } from "./useAsyncData-BD6AStMt.js";
|
|
10
|
+
import { t as u } from "./purify.es-DgKyQviY.js";
|
|
11
|
+
import { S as d, a as f, d as p, f as m, g as h, h as g, i as _, o as v, v as y, x as b, y as x } from "./chunk-75Z2AOVW-5_HsvXwr.js";
|
|
12
|
+
import { n as S, r as C, t as w } from "./src-CA_m4ONl.js";
|
|
13
|
+
import { n as T } from "./chunk-Y2CYZVJY-DKKS1VyV.js";
|
|
14
|
+
import { C as E, E as D, I as O, L as k, N as A, P as j, Q as M, S as N, T as ee, V as P, W as F, X as I, Z as L, _ as R, b as z, c as te, g as ne, l as re, m as ie, n as ae, p as oe, q as se, r as ce, s as le, t as ue, u as de, x as fe } from "./chunk-DU6HZSFF-BUgAHvnM.js";
|
|
15
|
+
import "./chunk-P2QGCYS3-C0iGU29N.js";
|
|
16
|
+
import { r as B } from "./chunk-PWAF6VOD-CTFCL0jI.js";
|
|
17
|
+
import { i as pe } from "./chunk-GMAD6QVW-Czynz8aA.js";
|
|
18
|
+
import { a as me } from "./chunk-4HAMMTFA-D2qv8E0X.js";
|
|
19
|
+
import { i as he, n as ge, r as _e, t as ve } from "./chunk-GVQU2GXP-yQEdulRS.js";
|
|
20
|
+
import { n as ye, t as be } from "./chunk-L3NEJ4N5-DwRWnDDK.js";
|
|
21
|
+
import { a as xe, c as Se, i as Ce, l as we, n as Te, r as Ee, s as De, t as Oe } from "./chunk-OSK3NFVY-BBKU_Ign.js";
|
|
22
|
+
//#region ../node_modules/.pnpm/mermaid@11.17.2/node_modules/mermaid/dist/chunks/mermaid.core/chunk-CLGD4ZFX.mjs
|
|
23
|
+
var ke = i(), Ae = /* @__PURE__ */ T((e) => {
|
|
24
|
+
let { securityLevel: t } = fe(), n = w("body");
|
|
25
|
+
if (t === "sandbox") {
|
|
26
|
+
let t = w(`#i${e}`).node()?.contentDocument ?? document;
|
|
27
|
+
n = w(t.body);
|
|
28
|
+
}
|
|
29
|
+
return n.select(`#${e}`);
|
|
30
|
+
}, "selectSvgElement");
|
|
31
|
+
//#endregion
|
|
32
|
+
//#region ../node_modules/.pnpm/es-toolkit@1.50.0/node_modules/es-toolkit/dist/compat/_internal/isPrototype.mjs
|
|
33
|
+
function je(e) {
|
|
34
|
+
let t = e?.constructor;
|
|
35
|
+
return e === (typeof t == "function" ? t.prototype : Object.prototype);
|
|
36
|
+
}
|
|
37
|
+
//#endregion
|
|
38
|
+
//#region ../node_modules/.pnpm/es-toolkit@1.50.0/node_modules/es-toolkit/dist/compat/predicate/isEmpty.mjs
|
|
39
|
+
function Me(e) {
|
|
40
|
+
if (e == null) return !0;
|
|
41
|
+
if (b(e)) return typeof e.splice != "function" && typeof e != "string" && !d(e) && !y(e) && !x(e) ? !1 : e.length === 0;
|
|
42
|
+
if (typeof e == "object" || typeof e == "function") {
|
|
43
|
+
if (e instanceof Map || e instanceof Set) return e.size === 0;
|
|
44
|
+
let t = Object.keys(e);
|
|
45
|
+
return je(e) ? t.filter((e) => e !== "constructor").length === 0 : t.length === 0;
|
|
46
|
+
}
|
|
47
|
+
return !0;
|
|
48
|
+
}
|
|
49
|
+
//#endregion
|
|
50
|
+
//#region ../node_modules/.pnpm/mermaid@11.17.2/node_modules/mermaid/dist/chunks/mermaid.core/chunk-2E4U76K2.mjs
|
|
51
|
+
function Ne(e, { edgePathsClass: t = "edges edgePaths" } = {}) {
|
|
52
|
+
let n = e.insert("g").attr("class", "root");
|
|
53
|
+
return {
|
|
54
|
+
clusters: n.insert("g").attr("class", "clusters"),
|
|
55
|
+
edgePaths: n.insert("g").attr("class", t),
|
|
56
|
+
edgeLabels: n.insert("g").attr("class", "edgeLabels"),
|
|
57
|
+
nodes: n.insert("g").attr("class", "nodes"),
|
|
58
|
+
rootGroups: n
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
T(Ne, "createLayoutElementGroups");
|
|
62
|
+
async function Pe(e, t) {
|
|
63
|
+
if (t.label) {
|
|
64
|
+
let { shapeSvg: n, bbox: r } = await me(e, t);
|
|
65
|
+
t.labelBBox = {
|
|
66
|
+
width: r.width,
|
|
67
|
+
height: r.height
|
|
68
|
+
}, n.remove();
|
|
69
|
+
} else t.labelBBox = {
|
|
70
|
+
width: 0,
|
|
71
|
+
height: 0
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
T(Pe, "measureGroupLabel");
|
|
75
|
+
async function Fe(e, t, n) {
|
|
76
|
+
let r = await _e(e, t, n), i = r.node()?.getBBox() ?? {
|
|
77
|
+
width: 0,
|
|
78
|
+
height: 0
|
|
79
|
+
};
|
|
80
|
+
return t.width = i.width, t.height = i.height, r;
|
|
81
|
+
}
|
|
82
|
+
T(Fe, "insertMeasuredNode");
|
|
83
|
+
async function Ie(e, t) {
|
|
84
|
+
let n = new s({
|
|
85
|
+
multigraph: !0,
|
|
86
|
+
compound: !0
|
|
87
|
+
}), r = [...t.edges], i = fe(), a = Ne(e), { edgeLabels: o, nodes: c } = a, l = /* @__PURE__ */ new Map(), u = e.node() != null;
|
|
88
|
+
await Promise.all(t.nodes.map(async (e) => {
|
|
89
|
+
if (e.isGroup) u && await Pe(c, e), n.setNode(e.id, { ...e });
|
|
90
|
+
else {
|
|
91
|
+
if (u) {
|
|
92
|
+
let t = await Fe(c, e, {
|
|
93
|
+
config: i,
|
|
94
|
+
dir: e.dir
|
|
95
|
+
});
|
|
96
|
+
l.set(e.id, t);
|
|
97
|
+
}
|
|
98
|
+
n.setNode(e.id, { ...e });
|
|
99
|
+
}
|
|
100
|
+
}));
|
|
101
|
+
for (let e of r) u && Ee(e) && await xe(o, e), n.setEdge(e.start, e.end, { ...e }, e.id), t.edges.some((t) => t.id === e.id) || t.edges.push(e);
|
|
102
|
+
if (globalThis.mermaidCaptureSizes) {
|
|
103
|
+
let { captureNodeSizes: n } = await import("./sizeCapture-INFHLROL-Dx5SpkQF.js");
|
|
104
|
+
n(e, t);
|
|
105
|
+
}
|
|
106
|
+
return {
|
|
107
|
+
graph: n,
|
|
108
|
+
groups: a,
|
|
109
|
+
nodeElements: l
|
|
110
|
+
};
|
|
111
|
+
}
|
|
112
|
+
T(Ie, "createGraphWithElements");
|
|
113
|
+
var V = /* @__PURE__ */ new Map(), H = /* @__PURE__ */ new Map(), Le = /* @__PURE__ */ new Map(), Re = /* @__PURE__ */ T(() => {
|
|
114
|
+
H.clear(), Le.clear(), V.clear();
|
|
115
|
+
}, "clear"), ze = /* @__PURE__ */ T((e, t) => {
|
|
116
|
+
let n = H.get(t) || [];
|
|
117
|
+
return S.trace("In isDescendant", t, " ", e, " = ", n.includes(e)), n.includes(e);
|
|
118
|
+
}, "isDescendant"), Be = /* @__PURE__ */ T((e, t) => {
|
|
119
|
+
let n = H.get(t) || [];
|
|
120
|
+
return S.info("Descendants of ", t, " is ", n), S.info("Edge is ", e), e.v === t || e.w === t ? !1 : n ? n.includes(e.v) || ze(e.v, t) || ze(e.w, t) || n.includes(e.w) : (S.debug("Tilt, ", t, ",not in descendants"), !1);
|
|
121
|
+
}, "edgeInCluster"), Ve = /* @__PURE__ */ T((e, t, n, r) => {
|
|
122
|
+
S.debug("Copying children of ", e, "root", r, "data", t.node(e), r);
|
|
123
|
+
let i = t.children(e) || [];
|
|
124
|
+
e !== r && i.push(e), S.debug("Copying (nodes) clusterId", e, "nodes", i), i.forEach((i) => {
|
|
125
|
+
if (t.children(i).length > 0) Ve(i, t, n, r);
|
|
126
|
+
else {
|
|
127
|
+
let a = t.node(i);
|
|
128
|
+
S.info("cp ", i, " to ", r, " with parent ", e), n.setNode(i, a), r !== t.parent(i) && (S.debug("Setting parent", i, t.parent(i)), n.setParent(i, t.parent(i))), e !== r && i !== e ? (S.debug("Setting parent", i, e), n.setParent(i, e)) : (S.info("In copy ", e, "root", r, "data", t.node(e), r), S.debug("Not Setting parent for node=", i, "cluster!==rootId", e !== r, "node!==clusterId", i !== e));
|
|
129
|
+
let o = t.edges(i);
|
|
130
|
+
S.debug("Copying Edges", o), o.forEach((i) => {
|
|
131
|
+
S.info("Edge", i);
|
|
132
|
+
let a = t.edge(i.v, i.w, i.name);
|
|
133
|
+
S.info("Edge data", a, r);
|
|
134
|
+
try {
|
|
135
|
+
Be(i, r) ? (S.info("Copying as ", i.v, i.w, a, i.name), n.setEdge(i.v, i.w, a, i.name), S.info("newGraph edges ", n.edges(), n.edge(n.edges()[0]))) : S.info("Skipping copy of edge ", i.v, "-->", i.w, " rootId: ", r, " clusterId:", e);
|
|
136
|
+
} catch (e) {
|
|
137
|
+
S.error(e);
|
|
138
|
+
}
|
|
139
|
+
});
|
|
140
|
+
}
|
|
141
|
+
S.debug("Removing node", i), t.removeNode(i);
|
|
142
|
+
});
|
|
143
|
+
}, "copy"), He = /* @__PURE__ */ T((e, t) => {
|
|
144
|
+
let n = t.children(e), r = [...n];
|
|
145
|
+
for (let i of n) Le.set(i, e), r = [...r, ...He(i, t)];
|
|
146
|
+
return r;
|
|
147
|
+
}, "extractDescendants"), Ue = /* @__PURE__ */ T((e, t, n) => {
|
|
148
|
+
let r = e.edges().filter((e) => e.v === t || e.w === t), i = e.edges().filter((e) => e.v === n || e.w === n), a = r.map((e) => ({
|
|
149
|
+
v: e.v === t ? n : e.v,
|
|
150
|
+
w: e.w === t ? t : e.w
|
|
151
|
+
})), o = i.map((e) => ({
|
|
152
|
+
v: e.v,
|
|
153
|
+
w: e.w
|
|
154
|
+
}));
|
|
155
|
+
return a.filter((e) => o.some((t) => e.v === t.v && e.w === t.w));
|
|
156
|
+
}, "findCommonEdges"), We = /* @__PURE__ */ T((e, t, n) => {
|
|
157
|
+
let r = t.children(e);
|
|
158
|
+
if (S.trace("Searching children of id ", e, r), r.length < 1) return e;
|
|
159
|
+
let i;
|
|
160
|
+
for (let e of r) {
|
|
161
|
+
let r = We(e, t, n), a = Ue(t, n, r);
|
|
162
|
+
if (r) {
|
|
163
|
+
if (a.length > 0) i = r;
|
|
164
|
+
else return r;
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
return i;
|
|
168
|
+
}, "findNonClusterChild"), Ge = /* @__PURE__ */ T((e) => !V.has(e) || !V.get(e).externalConnections ? e : V.has(e) ? V.get(e).id : e, "getAnchorId"), Ke = /* @__PURE__ */ T((e, t) => {
|
|
169
|
+
if (!e || t > 10) {
|
|
170
|
+
S.debug("Opting out, no graph ");
|
|
171
|
+
return;
|
|
172
|
+
}
|
|
173
|
+
S.debug("Opting in, graph "), e.nodes().forEach(function(t) {
|
|
174
|
+
e.children(t).length > 0 && (S.debug("Cluster identified", t, " Replacement id in edges: ", We(t, e, t)), H.set(t, He(t, e)), V.set(t, {
|
|
175
|
+
id: We(t, e, t),
|
|
176
|
+
clusterData: e.node(t)
|
|
177
|
+
}));
|
|
178
|
+
}), e.nodes().forEach(function(t) {
|
|
179
|
+
let n = e.children(t), r = e.edges();
|
|
180
|
+
n.length > 0 ? (S.debug("Cluster identified", t, H), r.forEach((e) => {
|
|
181
|
+
ze(e.v, t) ^ ze(e.w, t) && (S.debug("Edge: ", e, " leaves cluster ", t), S.debug("Descendants of XXX ", t, ": ", H.get(t)), V.get(t).externalConnections = !0);
|
|
182
|
+
})) : S.debug("Not a cluster ", t, H);
|
|
183
|
+
});
|
|
184
|
+
for (let t of V.keys()) {
|
|
185
|
+
let n = V.get(t).id, r = e.parent(n);
|
|
186
|
+
r !== t && V.has(r) && !V.get(r).externalConnections && (V.get(t).id = r);
|
|
187
|
+
let i = e.edges().some((e) => e.v === t);
|
|
188
|
+
if (n && V.get(t)?.externalConnections && i && Xe(e, n, t)) {
|
|
189
|
+
let r = Ze(e, t, e.parent(n));
|
|
190
|
+
r && (V.get(t).id = r);
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
e.edges().forEach(function(t) {
|
|
194
|
+
let n = e.edge(t);
|
|
195
|
+
S.debug("Edge " + t.v + " -> " + t.w + ": " + JSON.stringify(t)), S.debug("Edge " + t.v + " -> " + t.w + ": " + JSON.stringify(e.edge(t)));
|
|
196
|
+
let r = t.v, i = t.w;
|
|
197
|
+
if (S.debug("Fix XXX", V, "ids:", t.v, t.w, "Translating: ", V.get(t.v), " --- ", V.get(t.w)), V.get(t.v) || V.get(t.w)) {
|
|
198
|
+
if (S.debug("Fixing and trying - removing XXX", t.v, t.w, t.name), r = Ge(t.v), i = Ge(t.w), e.removeEdge(t.v, t.w, t.name), r !== t.v) {
|
|
199
|
+
let i = e.parent(r);
|
|
200
|
+
V.get(i).externalConnections = !0, n.fromCluster = t.v;
|
|
201
|
+
}
|
|
202
|
+
if (i !== t.w) {
|
|
203
|
+
let r = e.parent(i);
|
|
204
|
+
V.get(r).externalConnections = !0, n.toCluster = t.w;
|
|
205
|
+
}
|
|
206
|
+
S.debug("Fix Replacing with XXX", r, i, t.name), e.setEdge(r, i, n, t.name);
|
|
207
|
+
}
|
|
208
|
+
}), qe(e, 0), S.trace(V);
|
|
209
|
+
}, "adjustClustersAndEdges"), qe = /* @__PURE__ */ T((e, t) => {
|
|
210
|
+
if (t > 10) {
|
|
211
|
+
S.error("Bailing out");
|
|
212
|
+
return;
|
|
213
|
+
}
|
|
214
|
+
let n = e.nodes(), r = !1;
|
|
215
|
+
for (let t of n) {
|
|
216
|
+
let n = e.children(t);
|
|
217
|
+
r ||= n.length > 0;
|
|
218
|
+
}
|
|
219
|
+
if (!r) {
|
|
220
|
+
S.debug("Done, no node has children", e.nodes());
|
|
221
|
+
return;
|
|
222
|
+
}
|
|
223
|
+
S.debug("Nodes = ", n, t);
|
|
224
|
+
for (let r of n) if (S.debug("Extracting node", r, V, V.has(r) && !V.get(r).externalConnections, !e.parent(r), e.node(r), e.children("D"), " Depth ", t), !V.has(r)) S.debug("Not a cluster", r, t);
|
|
225
|
+
else if (!V.get(r).externalConnections && e.children(r) && e.children(r).length > 0) {
|
|
226
|
+
S.debug("Cluster without external connections, without a parent and with children", r, t);
|
|
227
|
+
let n = e.graph().rankdir === "TB" ? "LR" : "TB";
|
|
228
|
+
V.get(r)?.clusterData?.dir && (n = V.get(r).clusterData.dir, S.debug("Fixing dir", V.get(r).clusterData.dir, n));
|
|
229
|
+
let i = new s({
|
|
230
|
+
multigraph: !0,
|
|
231
|
+
compound: !0
|
|
232
|
+
}).setGraph({
|
|
233
|
+
rankdir: n,
|
|
234
|
+
nodesep: 50,
|
|
235
|
+
ranksep: 50,
|
|
236
|
+
marginx: 8,
|
|
237
|
+
marginy: 8
|
|
238
|
+
}).setDefaultEdgeLabel(function() {
|
|
239
|
+
return {};
|
|
240
|
+
});
|
|
241
|
+
Ve(r, e, i, r), e.setNode(r, {
|
|
242
|
+
clusterNode: !0,
|
|
243
|
+
id: r,
|
|
244
|
+
clusterData: V.get(r).clusterData,
|
|
245
|
+
label: V.get(r).label,
|
|
246
|
+
graph: i
|
|
247
|
+
});
|
|
248
|
+
} else S.debug("Cluster ** ", r, " **not meeting the criteria !externalConnections:", !V.get(r).externalConnections, " no parent: ", !e.parent(r), " children ", e.children(r) && e.children(r).length > 0, e.children("D"), t), S.debug(V);
|
|
249
|
+
n = e.nodes(), S.debug("New list of nodes", n);
|
|
250
|
+
for (let r of n) {
|
|
251
|
+
let n = e.node(r);
|
|
252
|
+
S.debug(" Now next level", r, n), n?.clusterNode && qe(n.graph, t + 1);
|
|
253
|
+
}
|
|
254
|
+
}, "extractor"), Je = /* @__PURE__ */ T((e, t) => {
|
|
255
|
+
if (t.length === 0) return [];
|
|
256
|
+
let n = Object.assign([], t);
|
|
257
|
+
return t.forEach((t) => {
|
|
258
|
+
let r = Je(e, e.children(t));
|
|
259
|
+
n = [...n, ...r];
|
|
260
|
+
}), n;
|
|
261
|
+
}, "sorter"), Ye = /* @__PURE__ */ T((e) => Je(e, e.children()), "sortNodesByHierarchy"), Xe = /* @__PURE__ */ T((e, t, n) => {
|
|
262
|
+
let r = e.parent(t);
|
|
263
|
+
for (; r && r !== n;) {
|
|
264
|
+
let t = V.get(r);
|
|
265
|
+
if (t && !t.externalConnections) return !0;
|
|
266
|
+
r = e.parent(r);
|
|
267
|
+
}
|
|
268
|
+
return !1;
|
|
269
|
+
}, "isNodeInExtractableCluster"), Ze = /* @__PURE__ */ T((e, t, n) => {
|
|
270
|
+
let r = e.children(t) ?? [];
|
|
271
|
+
for (let i of r) {
|
|
272
|
+
if (i === n || ze(i, n)) continue;
|
|
273
|
+
let r = We(i, e, t);
|
|
274
|
+
if (r && !Xe(e, r, t)) return r;
|
|
275
|
+
}
|
|
276
|
+
return null;
|
|
277
|
+
}, "findSafeAnchorNode");
|
|
278
|
+
function Qe({ prepareLayout: e, measureLayout: t, runLayoutCore: n, paintLayout: r, afterPaint: i, paintOptions: a }) {
|
|
279
|
+
let o = t ?? et;
|
|
280
|
+
return /* @__PURE__ */ T(async function(t, s, c, l) {
|
|
281
|
+
let u = s.select("g");
|
|
282
|
+
(c?.insertMarkers ?? De)(u, t.markers, t.type, t.diagramId), $e();
|
|
283
|
+
let d = {
|
|
284
|
+
element: u,
|
|
285
|
+
helpers: c,
|
|
286
|
+
options: l
|
|
287
|
+
};
|
|
288
|
+
d.preparedLayout = await e?.(t, d);
|
|
289
|
+
let f = await o(t, d), p = await n(t, d), m = {
|
|
290
|
+
...d,
|
|
291
|
+
measure: f
|
|
292
|
+
};
|
|
293
|
+
r ? await r(t, m, p) : await tt(t, m, a), await i?.(t, m, p);
|
|
294
|
+
}, "render");
|
|
295
|
+
}
|
|
296
|
+
T(Qe, "createCommonLayoutRenderer");
|
|
297
|
+
function $e() {
|
|
298
|
+
ve(), Oe(), be(), Re();
|
|
299
|
+
}
|
|
300
|
+
T($e, "clearLayoutRenderState");
|
|
301
|
+
async function et(e, { element: t }) {
|
|
302
|
+
return await Ie(t, e);
|
|
303
|
+
}
|
|
304
|
+
T(et, "defaultMeasureLayout");
|
|
305
|
+
async function tt(e, t, n = {}) {
|
|
306
|
+
let { measure: r } = t, { groups: i } = r;
|
|
307
|
+
for (let r of n.getNodes?.(e, t) ?? e.nodes) n.skipNode?.(r, t) || await nt(i, r, t, n);
|
|
308
|
+
let a = it(e.nodes);
|
|
309
|
+
for (let r of e.edges) at(r, n) || await ot(i, r, a, e, n, t);
|
|
310
|
+
}
|
|
311
|
+
T(tt, "paintLayoutData");
|
|
312
|
+
async function nt(e, t, n, r) {
|
|
313
|
+
t.clusterNode ? he(t) : rt(t, n, r) ? await ye(e.clusters, t) : he(t);
|
|
314
|
+
}
|
|
315
|
+
T(nt, "paintLayoutNode");
|
|
316
|
+
function rt(e, t, n) {
|
|
317
|
+
return e.isGroup === !0 && (n.isCluster?.(e, t) ?? !0);
|
|
318
|
+
}
|
|
319
|
+
T(rt, "shouldPaintAsCluster");
|
|
320
|
+
function it(e) {
|
|
321
|
+
let t = /* @__PURE__ */ new Map();
|
|
322
|
+
for (let n of e) n?.id && t.set(n.id, n);
|
|
323
|
+
return t;
|
|
324
|
+
}
|
|
325
|
+
T(it, "buildNodeLookup");
|
|
326
|
+
function at(e, t) {
|
|
327
|
+
return e.isLayoutOnly || !!t.skipEdge?.(e);
|
|
328
|
+
}
|
|
329
|
+
T(at, "shouldSkipPaintEdge");
|
|
330
|
+
async function ot(e, t, n, r, i, a) {
|
|
331
|
+
let o = Ce(e.edgePaths, { ...t }, i.clusterDb ?? /* @__PURE__ */ new Map(), r.type, st(t.start, t, n, a, i), st(t.end, t, n, a, i), r.diagramId, ct(t, i));
|
|
332
|
+
Ee(t) && (Te.has(t.id) || await xe(e.edgeLabels, t), lt(t, o));
|
|
333
|
+
}
|
|
334
|
+
T(ot, "paintLayoutEdge");
|
|
335
|
+
function st(e, t, n, r, i) {
|
|
336
|
+
return i.getEdgeNode?.(e, t, r) ?? (e ? n.get(e) ?? {} : {});
|
|
337
|
+
}
|
|
338
|
+
T(st, "getRenderedNode");
|
|
339
|
+
function ct(e, t) {
|
|
340
|
+
return typeof t.skipIntersect == "function" ? t.skipIntersect(e) : t.skipIntersect ?? !1;
|
|
341
|
+
}
|
|
342
|
+
T(ct, "shouldSkipIntersect");
|
|
343
|
+
function lt(e, t) {
|
|
344
|
+
let n = t?.updatedPath ?? t?.originalPath, r = z(), { subGraphTitleTotalMargin: i } = ge({ flowchart: r.flowchart ?? {} });
|
|
345
|
+
if (e.label) {
|
|
346
|
+
let r = Te.get(e.id), a = e.x, o = e.y;
|
|
347
|
+
if (n) {
|
|
348
|
+
let r = h.calcLabelPosition(n);
|
|
349
|
+
S.debug("Moving label " + e.label + " from (", a, ",", o, ") to (", r.x, ",", r.y, ") abc88"), t?.updatedPath && (a = r.x, o = r.y);
|
|
350
|
+
}
|
|
351
|
+
r.attr("transform", `translate(${a}, ${o + i / 2})`);
|
|
352
|
+
}
|
|
353
|
+
if (e?.startLabelLeft) {
|
|
354
|
+
let t = we.get(e.id).startLeft, r = e?.x, i = e?.y;
|
|
355
|
+
if (n) {
|
|
356
|
+
let t = h.calcTerminalLabelPosition(e.arrowTypeStart ? 10 : 0, "start_left", n);
|
|
357
|
+
r = t.x, i = t.y;
|
|
358
|
+
}
|
|
359
|
+
t.attr("transform", `translate(${r}, ${i})`);
|
|
360
|
+
}
|
|
361
|
+
if (e.startLabelRight) {
|
|
362
|
+
let t = we.get(e.id).startRight, r = e.x, i = e.y;
|
|
363
|
+
if (n) {
|
|
364
|
+
let t = h.calcTerminalLabelPosition(e.arrowTypeStart ? 10 : 0, "start_right", n);
|
|
365
|
+
r = t.x, i = t.y;
|
|
366
|
+
}
|
|
367
|
+
t.attr("transform", `translate(${r}, ${i})`);
|
|
368
|
+
}
|
|
369
|
+
if (e.endLabelLeft) {
|
|
370
|
+
let t = we.get(e.id).endLeft, r = e.x, i = e.y;
|
|
371
|
+
if (n) {
|
|
372
|
+
let t = h.calcTerminalLabelPosition(e.arrowTypeEnd ? 10 : 0, "end_left", n);
|
|
373
|
+
r = t.x, i = t.y;
|
|
374
|
+
}
|
|
375
|
+
t.attr("transform", `translate(${r}, ${i})`);
|
|
376
|
+
}
|
|
377
|
+
if (e.endLabelRight) {
|
|
378
|
+
let t = we.get(e.id).endRight, r = e.x, i = e.y;
|
|
379
|
+
if (n) {
|
|
380
|
+
let t = h.calcTerminalLabelPosition(e.arrowTypeEnd ? 10 : 0, "end_right", n);
|
|
381
|
+
r = t.x, i = t.y;
|
|
382
|
+
}
|
|
383
|
+
t.attr("transform", `translate(${r}, ${i})`);
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
T(lt, "positionRenderedEdgeLabel");
|
|
387
|
+
//#endregion
|
|
388
|
+
//#region ../node_modules/.pnpm/mermaid@11.17.2/node_modules/mermaid/dist/chunks/mermaid.core/chunk-LNGE3PJU.mjs
|
|
389
|
+
function ut(e) {
|
|
390
|
+
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
391
|
+
}
|
|
392
|
+
T(ut, "getDefaultExportFromCjs");
|
|
393
|
+
var U = {}, dt = {}, W = {}, ft;
|
|
394
|
+
function G() {
|
|
395
|
+
if (ft) return W;
|
|
396
|
+
ft = 1;
|
|
397
|
+
function e(e) {
|
|
398
|
+
return e == null;
|
|
399
|
+
}
|
|
400
|
+
T(e, "isNothing");
|
|
401
|
+
function t(e) {
|
|
402
|
+
return typeof e == "object" && !!e;
|
|
403
|
+
}
|
|
404
|
+
T(t, "isObject");
|
|
405
|
+
function n(t) {
|
|
406
|
+
return Array.isArray(t) ? t : e(t) ? [] : [t];
|
|
407
|
+
}
|
|
408
|
+
T(n, "toArray");
|
|
409
|
+
function r(e, t) {
|
|
410
|
+
if (t) {
|
|
411
|
+
let n = Object.keys(t);
|
|
412
|
+
for (let r = 0, i = n.length; r < i; r += 1) {
|
|
413
|
+
let i = n[r];
|
|
414
|
+
e[i] = t[i];
|
|
415
|
+
}
|
|
416
|
+
}
|
|
417
|
+
return e;
|
|
418
|
+
}
|
|
419
|
+
T(r, "extend");
|
|
420
|
+
function i(e, t) {
|
|
421
|
+
let n = "";
|
|
422
|
+
for (let r = 0; r < t; r += 1) n += e;
|
|
423
|
+
return n;
|
|
424
|
+
}
|
|
425
|
+
T(i, "repeat");
|
|
426
|
+
function a(e) {
|
|
427
|
+
return e === 0 && 1 / e == -Infinity;
|
|
428
|
+
}
|
|
429
|
+
return T(a, "isNegativeZero"), W.isNothing = e, W.isObject = t, W.toArray = n, W.repeat = i, W.isNegativeZero = a, W.extend = r, W;
|
|
430
|
+
}
|
|
431
|
+
T(G, "requireCommon");
|
|
432
|
+
var pt, mt;
|
|
433
|
+
function ht() {
|
|
434
|
+
if (mt) return pt;
|
|
435
|
+
mt = 1;
|
|
436
|
+
function e(e, t) {
|
|
437
|
+
let n = "", r = e.reason || "(unknown reason)";
|
|
438
|
+
return e.mark ? (e.mark.name && (n += "in \"" + e.mark.name + "\" "), n += "(" + (e.mark.line + 1) + ":" + (e.mark.column + 1) + ")", !t && e.mark.snippet && (n += "\n\n" + e.mark.snippet), r + " " + n) : r;
|
|
439
|
+
}
|
|
440
|
+
T(e, "formatError");
|
|
441
|
+
function t(t, n) {
|
|
442
|
+
Error.call(this), this.name = "YAMLException", this.reason = t, this.mark = n, this.message = e(this, !1), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = (/* @__PURE__ */ Error()).stack || "";
|
|
443
|
+
}
|
|
444
|
+
return T(t, "YAMLException2"), t.prototype = Object.create(Error.prototype), t.prototype.constructor = t, t.prototype.toString = /* @__PURE__ */ T(function(t) {
|
|
445
|
+
return this.name + ": " + e(this, t);
|
|
446
|
+
}, "toString"), pt = t, pt;
|
|
447
|
+
}
|
|
448
|
+
T(ht, "requireException");
|
|
449
|
+
var gt, _t;
|
|
450
|
+
function vt() {
|
|
451
|
+
if (_t) return gt;
|
|
452
|
+
_t = 1;
|
|
453
|
+
let e = G();
|
|
454
|
+
function t(e, t, n, r, i) {
|
|
455
|
+
let a = "", o = "", s = Math.floor(i / 2) - 1;
|
|
456
|
+
return r - t > s && (a = " ... ", t = r - s + a.length), n - r > s && (o = " ...", n = r + s - o.length), {
|
|
457
|
+
str: a + e.slice(t, n).replace(/\t/g, "→") + o,
|
|
458
|
+
pos: r - t + a.length
|
|
459
|
+
};
|
|
460
|
+
}
|
|
461
|
+
T(t, "getLine");
|
|
462
|
+
function n(t, n) {
|
|
463
|
+
return e.repeat(" ", n - t.length) + t;
|
|
464
|
+
}
|
|
465
|
+
T(n, "padStart");
|
|
466
|
+
function r(r, i) {
|
|
467
|
+
if (i = Object.create(i || null), !r.buffer) return null;
|
|
468
|
+
i.maxLength || (i.maxLength = 79), typeof i.indent != "number" && (i.indent = 1), typeof i.linesBefore != "number" && (i.linesBefore = 3), typeof i.linesAfter != "number" && (i.linesAfter = 2);
|
|
469
|
+
let a = /\r?\n|\r|\0/g, o = [0], s = [], c, l = -1;
|
|
470
|
+
for (; c = a.exec(r.buffer);) s.push(c.index), o.push(c.index + c[0].length), r.position <= c.index && l < 0 && (l = o.length - 2);
|
|
471
|
+
l < 0 && (l = o.length - 1);
|
|
472
|
+
let u = "", d = Math.min(r.line + i.linesAfter, s.length).toString().length, f = i.maxLength - (i.indent + d + 3);
|
|
473
|
+
for (let a = 1; a <= i.linesBefore && !(l - a < 0); a++) {
|
|
474
|
+
let c = t(r.buffer, o[l - a], s[l - a], r.position - (o[l] - o[l - a]), f);
|
|
475
|
+
u = e.repeat(" ", i.indent) + n((r.line - a + 1).toString(), d) + " | " + c.str + "\n" + u;
|
|
476
|
+
}
|
|
477
|
+
let p = t(r.buffer, o[l], s[l], r.position, f);
|
|
478
|
+
u += e.repeat(" ", i.indent) + n((r.line + 1).toString(), d) + " | " + p.str + "\n", u += e.repeat("-", i.indent + d + 3 + p.pos) + "^\n";
|
|
479
|
+
for (let a = 1; a <= i.linesAfter && !(l + a >= s.length); a++) {
|
|
480
|
+
let c = t(r.buffer, o[l + a], s[l + a], r.position - (o[l] - o[l + a]), f);
|
|
481
|
+
u += e.repeat(" ", i.indent) + n((r.line + a + 1).toString(), d) + " | " + c.str + "\n";
|
|
482
|
+
}
|
|
483
|
+
return u.replace(/\n$/, "");
|
|
484
|
+
}
|
|
485
|
+
return T(r, "makeSnippet"), gt = r, gt;
|
|
486
|
+
}
|
|
487
|
+
T(vt, "requireSnippet");
|
|
488
|
+
var yt, bt;
|
|
489
|
+
function K() {
|
|
490
|
+
if (bt) return yt;
|
|
491
|
+
bt = 1;
|
|
492
|
+
let e = ht(), t = [
|
|
493
|
+
"kind",
|
|
494
|
+
"multi",
|
|
495
|
+
"resolve",
|
|
496
|
+
"construct",
|
|
497
|
+
"instanceOf",
|
|
498
|
+
"predicate",
|
|
499
|
+
"represent",
|
|
500
|
+
"representName",
|
|
501
|
+
"defaultStyle",
|
|
502
|
+
"styleAliases"
|
|
503
|
+
], n = [
|
|
504
|
+
"scalar",
|
|
505
|
+
"sequence",
|
|
506
|
+
"mapping"
|
|
507
|
+
];
|
|
508
|
+
function r(e) {
|
|
509
|
+
let t = {};
|
|
510
|
+
return e !== null && Object.keys(e).forEach(function(n) {
|
|
511
|
+
e[n].forEach(function(e) {
|
|
512
|
+
t[String(e)] = n;
|
|
513
|
+
});
|
|
514
|
+
}), t;
|
|
515
|
+
}
|
|
516
|
+
T(r, "compileStyleAliases");
|
|
517
|
+
function i(i, a) {
|
|
518
|
+
if (a ||= {}, Object.keys(a).forEach(function(n) {
|
|
519
|
+
if (t.indexOf(n) === -1) throw new e("Unknown option \"" + n + "\" is met in definition of \"" + i + "\" YAML type.");
|
|
520
|
+
}), this.options = a, this.tag = i, this.kind = a.kind || null, this.resolve = a.resolve || function() {
|
|
521
|
+
return !0;
|
|
522
|
+
}, this.construct = a.construct || function(e) {
|
|
523
|
+
return e;
|
|
524
|
+
}, this.instanceOf = a.instanceOf || null, this.predicate = a.predicate || null, this.represent = a.represent || null, this.representName = a.representName || null, this.defaultStyle = a.defaultStyle || null, this.multi = a.multi || !1, this.styleAliases = r(a.styleAliases || null), n.indexOf(this.kind) === -1) throw new e("Unknown kind \"" + this.kind + "\" is specified for \"" + i + "\" YAML type.");
|
|
525
|
+
}
|
|
526
|
+
return T(i, "Type2"), yt = i, yt;
|
|
527
|
+
}
|
|
528
|
+
T(K, "requireType");
|
|
529
|
+
var xt, St;
|
|
530
|
+
function Ct() {
|
|
531
|
+
if (St) return xt;
|
|
532
|
+
St = 1;
|
|
533
|
+
let e = ht(), t = K();
|
|
534
|
+
function n(e, t) {
|
|
535
|
+
let n = [];
|
|
536
|
+
return e[t].forEach(function(e) {
|
|
537
|
+
let t = n.length;
|
|
538
|
+
n.forEach(function(n, r) {
|
|
539
|
+
n.tag === e.tag && n.kind === e.kind && n.multi === e.multi && (t = r);
|
|
540
|
+
}), n[t] = e;
|
|
541
|
+
}), n;
|
|
542
|
+
}
|
|
543
|
+
T(n, "compileList");
|
|
544
|
+
function r() {
|
|
545
|
+
let e = {
|
|
546
|
+
scalar: {},
|
|
547
|
+
sequence: {},
|
|
548
|
+
mapping: {},
|
|
549
|
+
fallback: {},
|
|
550
|
+
multi: {
|
|
551
|
+
scalar: [],
|
|
552
|
+
sequence: [],
|
|
553
|
+
mapping: [],
|
|
554
|
+
fallback: []
|
|
555
|
+
}
|
|
556
|
+
};
|
|
557
|
+
function t(t) {
|
|
558
|
+
t.multi ? (e.multi[t.kind].push(t), e.multi.fallback.push(t)) : e[t.kind][t.tag] = e.fallback[t.tag] = t;
|
|
559
|
+
}
|
|
560
|
+
T(t, "collectType");
|
|
561
|
+
for (let e = 0, n = arguments.length; e < n; e += 1) arguments[e].forEach(t);
|
|
562
|
+
return e;
|
|
563
|
+
}
|
|
564
|
+
T(r, "compileMap");
|
|
565
|
+
function i(e) {
|
|
566
|
+
return this.extend(e);
|
|
567
|
+
}
|
|
568
|
+
return T(i, "Schema2"), i.prototype.extend = /* @__PURE__ */ T(function(a) {
|
|
569
|
+
let o = [], s = [];
|
|
570
|
+
if (a instanceof t) s.push(a);
|
|
571
|
+
else if (Array.isArray(a)) s = s.concat(a);
|
|
572
|
+
else if (a && (Array.isArray(a.implicit) || Array.isArray(a.explicit))) a.implicit && (o = o.concat(a.implicit)), a.explicit && (s = s.concat(a.explicit));
|
|
573
|
+
else throw new e("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");
|
|
574
|
+
o.forEach(function(n) {
|
|
575
|
+
if (!(n instanceof t)) throw new e("Specified list of YAML types (or a single Type object) contains a non-Type object.");
|
|
576
|
+
if (n.loadKind && n.loadKind !== "scalar") throw new e("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");
|
|
577
|
+
if (n.multi) throw new e("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.");
|
|
578
|
+
}), s.forEach(function(n) {
|
|
579
|
+
if (!(n instanceof t)) throw new e("Specified list of YAML types (or a single Type object) contains a non-Type object.");
|
|
580
|
+
});
|
|
581
|
+
let c = Object.create(i.prototype);
|
|
582
|
+
return c.implicit = (this.implicit || []).concat(o), c.explicit = (this.explicit || []).concat(s), c.compiledImplicit = n(c, "implicit"), c.compiledExplicit = n(c, "explicit"), c.compiledTypeMap = r(c.compiledImplicit, c.compiledExplicit), c;
|
|
583
|
+
}, "extend"), xt = i, xt;
|
|
584
|
+
}
|
|
585
|
+
T(Ct, "requireSchema");
|
|
586
|
+
var wt, Tt;
|
|
587
|
+
function Et() {
|
|
588
|
+
return Tt ? wt : (Tt = 1, wt = new (K())("tag:yaml.org,2002:str", {
|
|
589
|
+
kind: "scalar",
|
|
590
|
+
construct: /* @__PURE__ */ T(function(e) {
|
|
591
|
+
return e === null ? "" : e;
|
|
592
|
+
}, "construct")
|
|
593
|
+
}), wt);
|
|
594
|
+
}
|
|
595
|
+
T(Et, "requireStr");
|
|
596
|
+
var Dt, Ot;
|
|
597
|
+
function kt() {
|
|
598
|
+
return Ot ? Dt : (Ot = 1, Dt = new (K())("tag:yaml.org,2002:seq", {
|
|
599
|
+
kind: "sequence",
|
|
600
|
+
construct: /* @__PURE__ */ T(function(e) {
|
|
601
|
+
return e === null ? [] : e;
|
|
602
|
+
}, "construct")
|
|
603
|
+
}), Dt);
|
|
604
|
+
}
|
|
605
|
+
T(kt, "requireSeq");
|
|
606
|
+
var At, jt;
|
|
607
|
+
function Mt() {
|
|
608
|
+
return jt ? At : (jt = 1, At = new (K())("tag:yaml.org,2002:map", {
|
|
609
|
+
kind: "mapping",
|
|
610
|
+
construct: /* @__PURE__ */ T(function(e) {
|
|
611
|
+
return e === null ? {} : e;
|
|
612
|
+
}, "construct")
|
|
613
|
+
}), At);
|
|
614
|
+
}
|
|
615
|
+
T(Mt, "requireMap");
|
|
616
|
+
var Nt, Pt;
|
|
617
|
+
function Ft() {
|
|
618
|
+
return Pt ? Nt : (Pt = 1, Nt = new (Ct())({ explicit: [
|
|
619
|
+
Et(),
|
|
620
|
+
kt(),
|
|
621
|
+
Mt()
|
|
622
|
+
] }), Nt);
|
|
623
|
+
}
|
|
624
|
+
T(Ft, "requireFailsafe");
|
|
625
|
+
var It, Lt;
|
|
626
|
+
function Rt() {
|
|
627
|
+
if (Lt) return It;
|
|
628
|
+
Lt = 1;
|
|
629
|
+
let e = K();
|
|
630
|
+
function t(e) {
|
|
631
|
+
if (e === null) return !0;
|
|
632
|
+
let t = e.length;
|
|
633
|
+
return t === 1 && e === "~" || t === 4 && (e === "null" || e === "Null" || e === "NULL");
|
|
634
|
+
}
|
|
635
|
+
T(t, "resolveYamlNull");
|
|
636
|
+
function n() {
|
|
637
|
+
return null;
|
|
638
|
+
}
|
|
639
|
+
T(n, "constructYamlNull");
|
|
640
|
+
function r(e) {
|
|
641
|
+
return e === null;
|
|
642
|
+
}
|
|
643
|
+
return T(r, "isNull"), It = new e("tag:yaml.org,2002:null", {
|
|
644
|
+
kind: "scalar",
|
|
645
|
+
resolve: t,
|
|
646
|
+
construct: n,
|
|
647
|
+
predicate: r,
|
|
648
|
+
represent: {
|
|
649
|
+
canonical: /* @__PURE__ */ T(function() {
|
|
650
|
+
return "~";
|
|
651
|
+
}, "canonical"),
|
|
652
|
+
lowercase: /* @__PURE__ */ T(function() {
|
|
653
|
+
return "null";
|
|
654
|
+
}, "lowercase"),
|
|
655
|
+
uppercase: /* @__PURE__ */ T(function() {
|
|
656
|
+
return "NULL";
|
|
657
|
+
}, "uppercase"),
|
|
658
|
+
camelcase: /* @__PURE__ */ T(function() {
|
|
659
|
+
return "Null";
|
|
660
|
+
}, "camelcase"),
|
|
661
|
+
empty: /* @__PURE__ */ T(function() {
|
|
662
|
+
return "";
|
|
663
|
+
}, "empty")
|
|
664
|
+
},
|
|
665
|
+
defaultStyle: "lowercase"
|
|
666
|
+
}), It;
|
|
667
|
+
}
|
|
668
|
+
T(Rt, "require_null");
|
|
669
|
+
var zt, Bt;
|
|
670
|
+
function Vt() {
|
|
671
|
+
if (Bt) return zt;
|
|
672
|
+
Bt = 1;
|
|
673
|
+
let e = K();
|
|
674
|
+
function t(e) {
|
|
675
|
+
if (e === null) return !1;
|
|
676
|
+
let t = e.length;
|
|
677
|
+
return t === 4 && (e === "true" || e === "True" || e === "TRUE") || t === 5 && (e === "false" || e === "False" || e === "FALSE");
|
|
678
|
+
}
|
|
679
|
+
T(t, "resolveYamlBoolean");
|
|
680
|
+
function n(e) {
|
|
681
|
+
return e === "true" || e === "True" || e === "TRUE";
|
|
682
|
+
}
|
|
683
|
+
T(n, "constructYamlBoolean");
|
|
684
|
+
function r(e) {
|
|
685
|
+
return Object.prototype.toString.call(e) === "[object Boolean]";
|
|
686
|
+
}
|
|
687
|
+
return T(r, "isBoolean"), zt = new e("tag:yaml.org,2002:bool", {
|
|
688
|
+
kind: "scalar",
|
|
689
|
+
resolve: t,
|
|
690
|
+
construct: n,
|
|
691
|
+
predicate: r,
|
|
692
|
+
represent: {
|
|
693
|
+
lowercase: /* @__PURE__ */ T(function(e) {
|
|
694
|
+
return e ? "true" : "false";
|
|
695
|
+
}, "lowercase"),
|
|
696
|
+
uppercase: /* @__PURE__ */ T(function(e) {
|
|
697
|
+
return e ? "TRUE" : "FALSE";
|
|
698
|
+
}, "uppercase"),
|
|
699
|
+
camelcase: /* @__PURE__ */ T(function(e) {
|
|
700
|
+
return e ? "True" : "False";
|
|
701
|
+
}, "camelcase")
|
|
702
|
+
},
|
|
703
|
+
defaultStyle: "lowercase"
|
|
704
|
+
}), zt;
|
|
705
|
+
}
|
|
706
|
+
T(Vt, "requireBool");
|
|
707
|
+
var Ht, Ut;
|
|
708
|
+
function Wt() {
|
|
709
|
+
if (Ut) return Ht;
|
|
710
|
+
Ut = 1;
|
|
711
|
+
let e = G(), t = K();
|
|
712
|
+
function n(e) {
|
|
713
|
+
return e >= 48 && e <= 57 || e >= 65 && e <= 70 || e >= 97 && e <= 102;
|
|
714
|
+
}
|
|
715
|
+
T(n, "isHexCode");
|
|
716
|
+
function r(e) {
|
|
717
|
+
return e >= 48 && e <= 55;
|
|
718
|
+
}
|
|
719
|
+
T(r, "isOctCode");
|
|
720
|
+
function i(e) {
|
|
721
|
+
return e >= 48 && e <= 57;
|
|
722
|
+
}
|
|
723
|
+
T(i, "isDecCode");
|
|
724
|
+
function a(e) {
|
|
725
|
+
if (e === null) return !1;
|
|
726
|
+
let t = e.length, a = 0, s = !1;
|
|
727
|
+
if (!t) return !1;
|
|
728
|
+
let c = e[a];
|
|
729
|
+
if ((c === "-" || c === "+") && (c = e[++a]), c === "0") {
|
|
730
|
+
if (a + 1 === t) return !0;
|
|
731
|
+
if (c = e[++a], c === "b") {
|
|
732
|
+
for (a++; a < t; a++) {
|
|
733
|
+
if (c = e[a], c !== "0" && c !== "1") return !1;
|
|
734
|
+
s = !0;
|
|
735
|
+
}
|
|
736
|
+
return s && isFinite(o(e));
|
|
737
|
+
}
|
|
738
|
+
if (c === "x") {
|
|
739
|
+
for (a++; a < t; a++) {
|
|
740
|
+
if (!n(e.charCodeAt(a))) return !1;
|
|
741
|
+
s = !0;
|
|
742
|
+
}
|
|
743
|
+
return s && isFinite(o(e));
|
|
744
|
+
}
|
|
745
|
+
if (c === "o") {
|
|
746
|
+
for (a++; a < t; a++) {
|
|
747
|
+
if (!r(e.charCodeAt(a))) return !1;
|
|
748
|
+
s = !0;
|
|
749
|
+
}
|
|
750
|
+
return s && isFinite(o(e));
|
|
751
|
+
}
|
|
752
|
+
}
|
|
753
|
+
for (; a < t; a++) {
|
|
754
|
+
if (!i(e.charCodeAt(a))) return !1;
|
|
755
|
+
s = !0;
|
|
756
|
+
}
|
|
757
|
+
return s ? isFinite(o(e)) : !1;
|
|
758
|
+
}
|
|
759
|
+
T(a, "resolveYamlInteger");
|
|
760
|
+
function o(e) {
|
|
761
|
+
let t = e, n = 1, r = t[0];
|
|
762
|
+
if ((r === "-" || r === "+") && (r === "-" && (n = -1), t = t.slice(1), r = t[0]), t === "0") return 0;
|
|
763
|
+
if (r === "0") {
|
|
764
|
+
if (t[1] === "b") return n * parseInt(t.slice(2), 2);
|
|
765
|
+
if (t[1] === "x") return n * parseInt(t.slice(2), 16);
|
|
766
|
+
if (t[1] === "o") return n * parseInt(t.slice(2), 8);
|
|
767
|
+
}
|
|
768
|
+
return n * parseInt(t, 10);
|
|
769
|
+
}
|
|
770
|
+
T(o, "parseYamlInteger");
|
|
771
|
+
function s(e) {
|
|
772
|
+
return o(e);
|
|
773
|
+
}
|
|
774
|
+
T(s, "constructYamlInteger");
|
|
775
|
+
function c(t) {
|
|
776
|
+
return Object.prototype.toString.call(t) === "[object Number]" && t % 1 == 0 && !e.isNegativeZero(t);
|
|
777
|
+
}
|
|
778
|
+
return T(c, "isInteger"), Ht = new t("tag:yaml.org,2002:int", {
|
|
779
|
+
kind: "scalar",
|
|
780
|
+
resolve: a,
|
|
781
|
+
construct: s,
|
|
782
|
+
predicate: c,
|
|
783
|
+
represent: {
|
|
784
|
+
binary: /* @__PURE__ */ T(function(e) {
|
|
785
|
+
return e >= 0 ? "0b" + e.toString(2) : "-0b" + e.toString(2).slice(1);
|
|
786
|
+
}, "binary"),
|
|
787
|
+
octal: /* @__PURE__ */ T(function(e) {
|
|
788
|
+
return e >= 0 ? "0o" + e.toString(8) : "-0o" + e.toString(8).slice(1);
|
|
789
|
+
}, "octal"),
|
|
790
|
+
decimal: /* @__PURE__ */ T(function(e) {
|
|
791
|
+
return e.toString(10);
|
|
792
|
+
}, "decimal"),
|
|
793
|
+
hexadecimal: /* @__PURE__ */ T(function(e) {
|
|
794
|
+
return e >= 0 ? "0x" + e.toString(16).toUpperCase() : "-0x" + e.toString(16).toUpperCase().slice(1);
|
|
795
|
+
}, "hexadecimal")
|
|
796
|
+
},
|
|
797
|
+
defaultStyle: "decimal",
|
|
798
|
+
styleAliases: {
|
|
799
|
+
binary: [2, "bin"],
|
|
800
|
+
octal: [8, "oct"],
|
|
801
|
+
decimal: [10, "dec"],
|
|
802
|
+
hexadecimal: [16, "hex"]
|
|
803
|
+
}
|
|
804
|
+
}), Ht;
|
|
805
|
+
}
|
|
806
|
+
T(Wt, "requireInt");
|
|
807
|
+
var Gt, Kt;
|
|
808
|
+
function qt() {
|
|
809
|
+
if (Kt) return Gt;
|
|
810
|
+
Kt = 1;
|
|
811
|
+
let e = G(), t = K(), n = /* @__PURE__ */ RegExp("^(?:[-+]?(?:[0-9]+)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"), r = /* @__PURE__ */ RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");
|
|
812
|
+
function i(e) {
|
|
813
|
+
return e === null || !n.test(e) ? !1 : isFinite(parseFloat(e, 10)) ? !0 : r.test(e);
|
|
814
|
+
}
|
|
815
|
+
T(i, "resolveYamlFloat");
|
|
816
|
+
function a(e) {
|
|
817
|
+
let t = e.toLowerCase(), n = t[0] === "-" ? -1 : 1;
|
|
818
|
+
return "+-".indexOf(t[0]) >= 0 && (t = t.slice(1)), t === ".inf" ? n === 1 ? Infinity : -Infinity : t === ".nan" ? NaN : n * parseFloat(t, 10);
|
|
819
|
+
}
|
|
820
|
+
T(a, "constructYamlFloat");
|
|
821
|
+
let o = /^[-+]?[0-9]+e/;
|
|
822
|
+
function s(t, n) {
|
|
823
|
+
if (isNaN(t)) switch (n) {
|
|
824
|
+
case "lowercase": return ".nan";
|
|
825
|
+
case "uppercase": return ".NAN";
|
|
826
|
+
case "camelcase": return ".NaN";
|
|
827
|
+
}
|
|
828
|
+
else if (t === Infinity) switch (n) {
|
|
829
|
+
case "lowercase": return ".inf";
|
|
830
|
+
case "uppercase": return ".INF";
|
|
831
|
+
case "camelcase": return ".Inf";
|
|
832
|
+
}
|
|
833
|
+
else if (t === -Infinity) switch (n) {
|
|
834
|
+
case "lowercase": return "-.inf";
|
|
835
|
+
case "uppercase": return "-.INF";
|
|
836
|
+
case "camelcase": return "-.Inf";
|
|
837
|
+
}
|
|
838
|
+
else if (e.isNegativeZero(t)) return "-0.0";
|
|
839
|
+
let r = t.toString(10);
|
|
840
|
+
return o.test(r) ? r.replace("e", ".e") : r;
|
|
841
|
+
}
|
|
842
|
+
T(s, "representYamlFloat");
|
|
843
|
+
function c(t) {
|
|
844
|
+
return Object.prototype.toString.call(t) === "[object Number]" && (t % 1 != 0 || e.isNegativeZero(t));
|
|
845
|
+
}
|
|
846
|
+
return T(c, "isFloat"), Gt = new t("tag:yaml.org,2002:float", {
|
|
847
|
+
kind: "scalar",
|
|
848
|
+
resolve: i,
|
|
849
|
+
construct: a,
|
|
850
|
+
predicate: c,
|
|
851
|
+
represent: s,
|
|
852
|
+
defaultStyle: "lowercase"
|
|
853
|
+
}), Gt;
|
|
854
|
+
}
|
|
855
|
+
T(qt, "requireFloat");
|
|
856
|
+
var Jt, Yt;
|
|
857
|
+
function Xt() {
|
|
858
|
+
return Yt ? Jt : (Yt = 1, Jt = Ft().extend({ implicit: [
|
|
859
|
+
Rt(),
|
|
860
|
+
Vt(),
|
|
861
|
+
Wt(),
|
|
862
|
+
qt()
|
|
863
|
+
] }), Jt);
|
|
864
|
+
}
|
|
865
|
+
T(Xt, "requireJson");
|
|
866
|
+
var Zt, Qt;
|
|
867
|
+
function $t() {
|
|
868
|
+
return Qt ? Zt : (Qt = 1, Zt = Xt(), Zt);
|
|
869
|
+
}
|
|
870
|
+
T($t, "requireCore");
|
|
871
|
+
var en, tn;
|
|
872
|
+
function nn() {
|
|
873
|
+
if (tn) return en;
|
|
874
|
+
tn = 1;
|
|
875
|
+
let e = K(), t = /* @__PURE__ */ RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"), n = /* @__PURE__ */ RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");
|
|
876
|
+
function r(e) {
|
|
877
|
+
return e === null ? !1 : t.exec(e) !== null || n.exec(e) !== null;
|
|
878
|
+
}
|
|
879
|
+
T(r, "resolveYamlTimestamp");
|
|
880
|
+
function i(e) {
|
|
881
|
+
let r = 0, i = null, a = t.exec(e);
|
|
882
|
+
if (a === null && (a = n.exec(e)), a === null) throw Error("Date resolve error");
|
|
883
|
+
let o = +a[1], s = a[2] - 1, c = +a[3];
|
|
884
|
+
if (!a[4]) return new Date(Date.UTC(o, s, c));
|
|
885
|
+
let l = +a[4], u = +a[5], d = +a[6];
|
|
886
|
+
if (a[7]) {
|
|
887
|
+
for (r = a[7].slice(0, 3); r.length < 3;) r += "0";
|
|
888
|
+
r = +r;
|
|
889
|
+
}
|
|
890
|
+
if (a[9]) {
|
|
891
|
+
let e = +a[10], t = +(a[11] || 0);
|
|
892
|
+
i = (e * 60 + t) * 6e4, a[9] === "-" && (i = -i);
|
|
893
|
+
}
|
|
894
|
+
let f = new Date(Date.UTC(o, s, c, l, u, d, r));
|
|
895
|
+
return i && f.setTime(f.getTime() - i), f;
|
|
896
|
+
}
|
|
897
|
+
T(i, "constructYamlTimestamp");
|
|
898
|
+
function a(e) {
|
|
899
|
+
return e.toISOString();
|
|
900
|
+
}
|
|
901
|
+
return T(a, "representYamlTimestamp"), en = new e("tag:yaml.org,2002:timestamp", {
|
|
902
|
+
kind: "scalar",
|
|
903
|
+
resolve: r,
|
|
904
|
+
construct: i,
|
|
905
|
+
instanceOf: Date,
|
|
906
|
+
represent: a
|
|
907
|
+
}), en;
|
|
908
|
+
}
|
|
909
|
+
T(nn, "requireTimestamp");
|
|
910
|
+
var rn, an;
|
|
911
|
+
function on() {
|
|
912
|
+
if (an) return rn;
|
|
913
|
+
an = 1;
|
|
914
|
+
let e = K();
|
|
915
|
+
function t(e) {
|
|
916
|
+
return e === "<<" || e === null;
|
|
917
|
+
}
|
|
918
|
+
return T(t, "resolveYamlMerge"), rn = new e("tag:yaml.org,2002:merge", {
|
|
919
|
+
kind: "scalar",
|
|
920
|
+
resolve: t
|
|
921
|
+
}), rn;
|
|
922
|
+
}
|
|
923
|
+
T(on, "requireMerge");
|
|
924
|
+
var sn, cn;
|
|
925
|
+
function ln() {
|
|
926
|
+
if (cn) return sn;
|
|
927
|
+
cn = 1;
|
|
928
|
+
let e = K();
|
|
929
|
+
function t(e) {
|
|
930
|
+
if (e === null) return !1;
|
|
931
|
+
let t = 0, n = e.length;
|
|
932
|
+
for (let r = 0; r < n; r++) {
|
|
933
|
+
let n = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r".indexOf(e.charAt(r));
|
|
934
|
+
if (!(n > 64)) {
|
|
935
|
+
if (n < 0) return !1;
|
|
936
|
+
t += 6;
|
|
937
|
+
}
|
|
938
|
+
}
|
|
939
|
+
return t % 8 == 0;
|
|
940
|
+
}
|
|
941
|
+
T(t, "resolveYamlBinary");
|
|
942
|
+
function n(e) {
|
|
943
|
+
let t = e.replace(/[\r\n=]/g, ""), n = t.length, r = 0, i = [];
|
|
944
|
+
for (let e = 0; e < n; e++) e % 4 == 0 && e && (i.push(r >> 16 & 255), i.push(r >> 8 & 255), i.push(r & 255)), r = r << 6 | "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r".indexOf(t.charAt(e));
|
|
945
|
+
let a = n % 4 * 6;
|
|
946
|
+
return a === 0 ? (i.push(r >> 16 & 255), i.push(r >> 8 & 255), i.push(r & 255)) : a === 18 ? (i.push(r >> 10 & 255), i.push(r >> 2 & 255)) : a === 12 && i.push(r >> 4 & 255), new Uint8Array(i);
|
|
947
|
+
}
|
|
948
|
+
T(n, "constructYamlBinary");
|
|
949
|
+
function r(e) {
|
|
950
|
+
let t = "", n = 0, r = e.length, i = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";
|
|
951
|
+
for (let a = 0; a < r; a++) a % 3 == 0 && a && (t += i[n >> 18 & 63], t += i[n >> 12 & 63], t += i[n >> 6 & 63], t += i[n & 63]), n = (n << 8) + e[a];
|
|
952
|
+
let a = r % 3;
|
|
953
|
+
return a === 0 ? (t += i[n >> 18 & 63], t += i[n >> 12 & 63], t += i[n >> 6 & 63], t += i[n & 63]) : a === 2 ? (t += i[n >> 10 & 63], t += i[n >> 4 & 63], t += i[n << 2 & 63], t += i[64]) : a === 1 && (t += i[n >> 2 & 63], t += i[n << 4 & 63], t += i[64], t += i[64]), t;
|
|
954
|
+
}
|
|
955
|
+
T(r, "representYamlBinary");
|
|
956
|
+
function i(e) {
|
|
957
|
+
return Object.prototype.toString.call(e) === "[object Uint8Array]";
|
|
958
|
+
}
|
|
959
|
+
return T(i, "isBinary"), sn = new e("tag:yaml.org,2002:binary", {
|
|
960
|
+
kind: "scalar",
|
|
961
|
+
resolve: t,
|
|
962
|
+
construct: n,
|
|
963
|
+
predicate: i,
|
|
964
|
+
represent: r
|
|
965
|
+
}), sn;
|
|
966
|
+
}
|
|
967
|
+
T(ln, "requireBinary");
|
|
968
|
+
var un, dn;
|
|
969
|
+
function fn() {
|
|
970
|
+
if (dn) return un;
|
|
971
|
+
dn = 1;
|
|
972
|
+
let e = K(), t = Object.prototype.hasOwnProperty, n = Object.prototype.toString;
|
|
973
|
+
function r(e) {
|
|
974
|
+
if (e === null) return !0;
|
|
975
|
+
let r = [], i = e;
|
|
976
|
+
for (let e = 0, a = i.length; e < a; e += 1) {
|
|
977
|
+
let a = i[e], o = !1;
|
|
978
|
+
if (n.call(a) !== "[object Object]") return !1;
|
|
979
|
+
let s;
|
|
980
|
+
for (s in a) if (t.call(a, s)) {
|
|
981
|
+
if (!o) o = !0;
|
|
982
|
+
else return !1;
|
|
983
|
+
}
|
|
984
|
+
if (!o) return !1;
|
|
985
|
+
if (r.indexOf(s) === -1) r.push(s);
|
|
986
|
+
else return !1;
|
|
987
|
+
}
|
|
988
|
+
return !0;
|
|
989
|
+
}
|
|
990
|
+
T(r, "resolveYamlOmap");
|
|
991
|
+
function i(e) {
|
|
992
|
+
return e === null ? [] : e;
|
|
993
|
+
}
|
|
994
|
+
return T(i, "constructYamlOmap"), un = new e("tag:yaml.org,2002:omap", {
|
|
995
|
+
kind: "sequence",
|
|
996
|
+
resolve: r,
|
|
997
|
+
construct: i
|
|
998
|
+
}), un;
|
|
999
|
+
}
|
|
1000
|
+
T(fn, "requireOmap");
|
|
1001
|
+
var pn, mn;
|
|
1002
|
+
function hn() {
|
|
1003
|
+
if (mn) return pn;
|
|
1004
|
+
mn = 1;
|
|
1005
|
+
let e = K(), t = Object.prototype.toString;
|
|
1006
|
+
function n(e) {
|
|
1007
|
+
if (e === null) return !0;
|
|
1008
|
+
let n = e, r = Array(n.length);
|
|
1009
|
+
for (let e = 0, i = n.length; e < i; e += 1) {
|
|
1010
|
+
let i = n[e];
|
|
1011
|
+
if (t.call(i) !== "[object Object]") return !1;
|
|
1012
|
+
let a = Object.keys(i);
|
|
1013
|
+
if (a.length !== 1) return !1;
|
|
1014
|
+
r[e] = [a[0], i[a[0]]];
|
|
1015
|
+
}
|
|
1016
|
+
return !0;
|
|
1017
|
+
}
|
|
1018
|
+
T(n, "resolveYamlPairs");
|
|
1019
|
+
function r(e) {
|
|
1020
|
+
if (e === null) return [];
|
|
1021
|
+
let t = e, n = Array(t.length);
|
|
1022
|
+
for (let e = 0, r = t.length; e < r; e += 1) {
|
|
1023
|
+
let r = t[e], i = Object.keys(r);
|
|
1024
|
+
n[e] = [i[0], r[i[0]]];
|
|
1025
|
+
}
|
|
1026
|
+
return n;
|
|
1027
|
+
}
|
|
1028
|
+
return T(r, "constructYamlPairs"), pn = new e("tag:yaml.org,2002:pairs", {
|
|
1029
|
+
kind: "sequence",
|
|
1030
|
+
resolve: n,
|
|
1031
|
+
construct: r
|
|
1032
|
+
}), pn;
|
|
1033
|
+
}
|
|
1034
|
+
T(hn, "requirePairs");
|
|
1035
|
+
var gn, _n;
|
|
1036
|
+
function vn() {
|
|
1037
|
+
if (_n) return gn;
|
|
1038
|
+
_n = 1;
|
|
1039
|
+
let e = K(), t = Object.prototype.hasOwnProperty;
|
|
1040
|
+
function n(e) {
|
|
1041
|
+
if (e === null) return !0;
|
|
1042
|
+
let n = e;
|
|
1043
|
+
for (let e in n) if (t.call(n, e) && n[e] !== null) return !1;
|
|
1044
|
+
return !0;
|
|
1045
|
+
}
|
|
1046
|
+
T(n, "resolveYamlSet");
|
|
1047
|
+
function r(e) {
|
|
1048
|
+
return e === null ? {} : e;
|
|
1049
|
+
}
|
|
1050
|
+
return T(r, "constructYamlSet"), gn = new e("tag:yaml.org,2002:set", {
|
|
1051
|
+
kind: "mapping",
|
|
1052
|
+
resolve: n,
|
|
1053
|
+
construct: r
|
|
1054
|
+
}), gn;
|
|
1055
|
+
}
|
|
1056
|
+
T(vn, "requireSet");
|
|
1057
|
+
var yn, bn;
|
|
1058
|
+
function xn() {
|
|
1059
|
+
return bn ? yn : (bn = 1, yn = $t().extend({
|
|
1060
|
+
implicit: [nn(), on()],
|
|
1061
|
+
explicit: [
|
|
1062
|
+
ln(),
|
|
1063
|
+
fn(),
|
|
1064
|
+
hn(),
|
|
1065
|
+
vn()
|
|
1066
|
+
]
|
|
1067
|
+
}), yn);
|
|
1068
|
+
}
|
|
1069
|
+
T(xn, "require_default");
|
|
1070
|
+
var Sn;
|
|
1071
|
+
function Cn() {
|
|
1072
|
+
if (Sn) return dt;
|
|
1073
|
+
Sn = 1;
|
|
1074
|
+
let e = G(), t = ht(), n = vt(), r = xn(), i = Object.prototype.hasOwnProperty, a = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, o = /[\x85\u2028\u2029]/, s = /[,\[\]{}]/, c = /^(?:!|!!|![0-9A-Za-z-]+!)$/, l = /^(?:!|[^,\[\]{}])(?:%[0-9a-f]{2}|[0-9a-z\-#;/?:@&=+$,_.!~*'()\[\]])*$/i;
|
|
1075
|
+
function u(e) {
|
|
1076
|
+
return Object.prototype.toString.call(e);
|
|
1077
|
+
}
|
|
1078
|
+
T(u, "_class");
|
|
1079
|
+
function d(e) {
|
|
1080
|
+
return e === 10 || e === 13;
|
|
1081
|
+
}
|
|
1082
|
+
T(d, "isEol");
|
|
1083
|
+
function f(e) {
|
|
1084
|
+
return e === 9 || e === 32;
|
|
1085
|
+
}
|
|
1086
|
+
T(f, "isWhiteSpace");
|
|
1087
|
+
function p(e) {
|
|
1088
|
+
return e === 9 || e === 32 || e === 10 || e === 13;
|
|
1089
|
+
}
|
|
1090
|
+
T(p, "isWsOrEol");
|
|
1091
|
+
function m(e) {
|
|
1092
|
+
return e === 44 || e === 91 || e === 93 || e === 123 || e === 125;
|
|
1093
|
+
}
|
|
1094
|
+
T(m, "isFlowIndicator");
|
|
1095
|
+
function h(e) {
|
|
1096
|
+
if (e >= 48 && e <= 57) return e - 48;
|
|
1097
|
+
let t = e | 32;
|
|
1098
|
+
return t >= 97 && t <= 102 ? t - 97 + 10 : -1;
|
|
1099
|
+
}
|
|
1100
|
+
T(h, "fromHexCode");
|
|
1101
|
+
function g(e) {
|
|
1102
|
+
return e === 120 ? 2 : e === 117 ? 4 : e === 85 ? 8 : 0;
|
|
1103
|
+
}
|
|
1104
|
+
T(g, "escapedHexLen");
|
|
1105
|
+
function _(e) {
|
|
1106
|
+
return e >= 48 && e <= 57 ? e - 48 : -1;
|
|
1107
|
+
}
|
|
1108
|
+
T(_, "fromDecimalCode");
|
|
1109
|
+
function v(e) {
|
|
1110
|
+
switch (e) {
|
|
1111
|
+
case 48: return "\0";
|
|
1112
|
+
case 97: return "\x07";
|
|
1113
|
+
case 98: return "\b";
|
|
1114
|
+
case 116: return " ";
|
|
1115
|
+
case 9: return " ";
|
|
1116
|
+
case 110: return "\n";
|
|
1117
|
+
case 118: return "\v";
|
|
1118
|
+
case 102: return "\f";
|
|
1119
|
+
case 114: return "\r";
|
|
1120
|
+
case 101: return "\x1B";
|
|
1121
|
+
case 32: return " ";
|
|
1122
|
+
case 34: return "\"";
|
|
1123
|
+
case 47: return "/";
|
|
1124
|
+
case 92: return "\\";
|
|
1125
|
+
case 78: return "
";
|
|
1126
|
+
case 95: return "\xA0";
|
|
1127
|
+
case 76: return "\u2028";
|
|
1128
|
+
case 80: return "\u2029";
|
|
1129
|
+
default: return "";
|
|
1130
|
+
}
|
|
1131
|
+
}
|
|
1132
|
+
T(v, "simpleEscapeSequence");
|
|
1133
|
+
function y(e) {
|
|
1134
|
+
return e <= 65535 ? String.fromCharCode(e) : String.fromCharCode((e - 65536 >> 10) + 55296, (e - 65536 & 1023) + 56320);
|
|
1135
|
+
}
|
|
1136
|
+
T(y, "charFromCodepoint");
|
|
1137
|
+
function b(e, t, n) {
|
|
1138
|
+
t === "__proto__" ? Object.defineProperty(e, t, {
|
|
1139
|
+
configurable: !0,
|
|
1140
|
+
enumerable: !0,
|
|
1141
|
+
writable: !0,
|
|
1142
|
+
value: n
|
|
1143
|
+
}) : e[t] = n;
|
|
1144
|
+
}
|
|
1145
|
+
T(b, "setProperty");
|
|
1146
|
+
let x = Array(256), S = Array(256);
|
|
1147
|
+
for (let e = 0; e < 256; e++) x[e] = +!!v(e), S[e] = v(e);
|
|
1148
|
+
function C(e, t) {
|
|
1149
|
+
this.input = e, this.filename = t.filename || null, this.schema = t.schema || r, this.onWarning = t.onWarning || null, this.legacy = t.legacy || !1, this.json = t.json || !1, this.listener = t.listener || null, this.maxDepth = typeof t.maxDepth == "number" ? t.maxDepth : 100, this.maxTotalMergeKeys = typeof t.maxTotalMergeKeys == "number" ? t.maxTotalMergeKeys : 1e4, this.implicitTypes = this.schema.compiledImplicit, this.typeMap = this.schema.compiledTypeMap, this.length = e.length, this.position = 0, this.line = 0, this.lineStart = 0, this.lineIndent = 0, this.depth = 0, this.totalMergeKeys = 0, this.firstTabInLine = -1, this.documents = [], this.anchorMapTransactions = [];
|
|
1150
|
+
}
|
|
1151
|
+
T(C, "State");
|
|
1152
|
+
function w(e, r) {
|
|
1153
|
+
let i = {
|
|
1154
|
+
name: e.filename,
|
|
1155
|
+
buffer: e.input.slice(0, -1),
|
|
1156
|
+
position: e.position,
|
|
1157
|
+
line: e.line,
|
|
1158
|
+
column: e.position - e.lineStart
|
|
1159
|
+
};
|
|
1160
|
+
return i.snippet = n(i), new t(r, i);
|
|
1161
|
+
}
|
|
1162
|
+
T(w, "generateError");
|
|
1163
|
+
function E(e, t) {
|
|
1164
|
+
throw w(e, t);
|
|
1165
|
+
}
|
|
1166
|
+
T(E, "throwError");
|
|
1167
|
+
function D(e, t) {
|
|
1168
|
+
e.onWarning && e.onWarning.call(null, w(e, t));
|
|
1169
|
+
}
|
|
1170
|
+
T(D, "throwWarning");
|
|
1171
|
+
function O(e, t, n) {
|
|
1172
|
+
let r = e.anchorMapTransactions;
|
|
1173
|
+
if (r.length !== 0) {
|
|
1174
|
+
let n = r[r.length - 1];
|
|
1175
|
+
i.call(n, t) || (n[t] = {
|
|
1176
|
+
existed: i.call(e.anchorMap, t),
|
|
1177
|
+
value: e.anchorMap[t]
|
|
1178
|
+
});
|
|
1179
|
+
}
|
|
1180
|
+
e.anchorMap[t] = n;
|
|
1181
|
+
}
|
|
1182
|
+
T(O, "storeAnchor");
|
|
1183
|
+
function k(e) {
|
|
1184
|
+
e.anchorMapTransactions.push(/* @__PURE__ */ Object.create(null));
|
|
1185
|
+
}
|
|
1186
|
+
T(k, "beginAnchorTransaction");
|
|
1187
|
+
function A(e) {
|
|
1188
|
+
let t = e.anchorMapTransactions.pop(), n = e.anchorMapTransactions;
|
|
1189
|
+
if (n.length === 0) return;
|
|
1190
|
+
let r = n[n.length - 1], a = Object.keys(t);
|
|
1191
|
+
for (let e = 0, n = a.length; e < n; e += 1) {
|
|
1192
|
+
let n = a[e];
|
|
1193
|
+
i.call(r, n) || (r[n] = t[n]);
|
|
1194
|
+
}
|
|
1195
|
+
}
|
|
1196
|
+
T(A, "commitAnchorTransaction");
|
|
1197
|
+
function j(e) {
|
|
1198
|
+
let t = e.anchorMapTransactions.pop(), n = Object.keys(t);
|
|
1199
|
+
for (let r = n.length - 1; r >= 0; --r) {
|
|
1200
|
+
let i = t[n[r]];
|
|
1201
|
+
i.existed ? e.anchorMap[n[r]] = i.value : delete e.anchorMap[n[r]];
|
|
1202
|
+
}
|
|
1203
|
+
}
|
|
1204
|
+
T(j, "rollbackAnchorTransaction");
|
|
1205
|
+
function M(e) {
|
|
1206
|
+
return {
|
|
1207
|
+
position: e.position,
|
|
1208
|
+
line: e.line,
|
|
1209
|
+
lineStart: e.lineStart,
|
|
1210
|
+
lineIndent: e.lineIndent,
|
|
1211
|
+
firstTabInLine: e.firstTabInLine,
|
|
1212
|
+
tag: e.tag,
|
|
1213
|
+
anchor: e.anchor,
|
|
1214
|
+
kind: e.kind,
|
|
1215
|
+
result: e.result
|
|
1216
|
+
};
|
|
1217
|
+
}
|
|
1218
|
+
T(M, "snapshotState");
|
|
1219
|
+
function N(e, t) {
|
|
1220
|
+
e.position = t.position, e.line = t.line, e.lineStart = t.lineStart, e.lineIndent = t.lineIndent, e.firstTabInLine = t.firstTabInLine, e.tag = t.tag, e.anchor = t.anchor, e.kind = t.kind, e.result = t.result;
|
|
1221
|
+
}
|
|
1222
|
+
T(N, "restoreState");
|
|
1223
|
+
let ee = {
|
|
1224
|
+
YAML: /* @__PURE__ */ T(function(e, t, n) {
|
|
1225
|
+
e.version !== null && E(e, "duplication of %YAML directive"), n.length !== 1 && E(e, "YAML directive accepts exactly one argument");
|
|
1226
|
+
let r = /^([0-9]+)\.([0-9]+)$/.exec(n[0]);
|
|
1227
|
+
r === null && E(e, "ill-formed argument of the YAML directive");
|
|
1228
|
+
let i = parseInt(r[1], 10), a = parseInt(r[2], 10);
|
|
1229
|
+
i !== 1 && E(e, "unacceptable YAML version of the document"), e.version = n[0], e.checkLineBreaks = a < 2, a !== 1 && a !== 2 && D(e, "unsupported YAML version of the document");
|
|
1230
|
+
}, "handleYamlDirective"),
|
|
1231
|
+
TAG: /* @__PURE__ */ T(function(e, t, n) {
|
|
1232
|
+
let r;
|
|
1233
|
+
n.length !== 2 && E(e, "TAG directive accepts exactly two arguments");
|
|
1234
|
+
let a = n[0];
|
|
1235
|
+
r = n[1], c.test(a) || E(e, "ill-formed tag handle (first argument) of the TAG directive"), i.call(e.tagMap, a) && E(e, "there is a previously declared suffix for \"" + a + "\" tag handle"), l.test(r) || E(e, "ill-formed tag prefix (second argument) of the TAG directive");
|
|
1236
|
+
try {
|
|
1237
|
+
r = decodeURIComponent(r);
|
|
1238
|
+
} catch {
|
|
1239
|
+
E(e, "tag prefix is malformed: " + r);
|
|
1240
|
+
}
|
|
1241
|
+
e.tagMap[a] = r;
|
|
1242
|
+
}, "handleTagDirective")
|
|
1243
|
+
};
|
|
1244
|
+
function P(e, t, n, r) {
|
|
1245
|
+
if (t < n) {
|
|
1246
|
+
let i = e.input.slice(t, n);
|
|
1247
|
+
if (r) for (let t = 0, n = i.length; t < n; t += 1) {
|
|
1248
|
+
let n = i.charCodeAt(t);
|
|
1249
|
+
n === 9 || n >= 32 && n <= 1114111 || E(e, "expected valid JSON character");
|
|
1250
|
+
}
|
|
1251
|
+
else a.test(i) && E(e, "the stream contains non-printable characters");
|
|
1252
|
+
e.result += i;
|
|
1253
|
+
}
|
|
1254
|
+
}
|
|
1255
|
+
T(P, "captureSegment");
|
|
1256
|
+
function F(t, n, r, a) {
|
|
1257
|
+
e.isObject(r) || E(t, "cannot merge mappings; the provided source object is unacceptable");
|
|
1258
|
+
let o = Object.keys(r);
|
|
1259
|
+
for (let e = 0, s = o.length; e < s; e += 1) {
|
|
1260
|
+
let s = o[e];
|
|
1261
|
+
t.maxTotalMergeKeys !== -1 && ++t.totalMergeKeys > t.maxTotalMergeKeys && E(t, "merge keys exceeded maxTotalMergeKeys (" + t.maxTotalMergeKeys + ")"), i.call(n, s) || (b(n, s, r[s]), a[s] = !0);
|
|
1262
|
+
}
|
|
1263
|
+
}
|
|
1264
|
+
T(F, "mergeMappings");
|
|
1265
|
+
function I(e, t, n, r, a, o, s, c, l) {
|
|
1266
|
+
if (Array.isArray(a)) {
|
|
1267
|
+
a = Array.prototype.slice.call(a);
|
|
1268
|
+
for (let t = 0, n = a.length; t < n; t += 1) Array.isArray(a[t]) && E(e, "nested arrays are not supported inside keys"), typeof a == "object" && u(a[t]) === "[object Object]" && (a[t] = "[object Object]");
|
|
1269
|
+
}
|
|
1270
|
+
if (typeof a == "object" && u(a) === "[object Object]" && (a = "[object Object]"), a = String(a), t === null && (t = {}), r === "tag:yaml.org,2002:merge") {
|
|
1271
|
+
if (Array.isArray(o)) for (let r = 0, i = o.length; r < i; r += 1) F(e, t, o[r], n);
|
|
1272
|
+
else F(e, t, o, n);
|
|
1273
|
+
} else !e.json && !i.call(n, a) && i.call(t, a) && (e.line = s || e.line, e.lineStart = c || e.lineStart, e.position = l || e.position, E(e, "duplicated mapping key")), b(t, a, o), delete n[a];
|
|
1274
|
+
return t;
|
|
1275
|
+
}
|
|
1276
|
+
T(I, "storeMappingPair");
|
|
1277
|
+
function L(e) {
|
|
1278
|
+
let t = e.input.charCodeAt(e.position);
|
|
1279
|
+
t === 10 ? e.position++ : t === 13 ? (e.position++, e.input.charCodeAt(e.position) === 10 && e.position++) : E(e, "a line break is expected"), e.line += 1, e.lineStart = e.position, e.firstTabInLine = -1;
|
|
1280
|
+
}
|
|
1281
|
+
T(L, "readLineBreak");
|
|
1282
|
+
function R(e, t, n) {
|
|
1283
|
+
let r = 0, i = e.input.charCodeAt(e.position);
|
|
1284
|
+
for (; i !== 0;) {
|
|
1285
|
+
for (; f(i);) i === 9 && e.firstTabInLine === -1 && (e.firstTabInLine = e.position), i = e.input.charCodeAt(++e.position);
|
|
1286
|
+
if (t && i === 35) do
|
|
1287
|
+
i = e.input.charCodeAt(++e.position);
|
|
1288
|
+
while (i !== 10 && i !== 13 && i !== 0);
|
|
1289
|
+
if (d(i)) for (L(e), i = e.input.charCodeAt(e.position), r++, e.lineIndent = 0; i === 32;) e.lineIndent++, i = e.input.charCodeAt(++e.position);
|
|
1290
|
+
else break;
|
|
1291
|
+
}
|
|
1292
|
+
return n !== -1 && r !== 0 && e.lineIndent < n && D(e, "deficient indentation"), r;
|
|
1293
|
+
}
|
|
1294
|
+
T(R, "skipSeparationSpace");
|
|
1295
|
+
function z(e) {
|
|
1296
|
+
let t = e.position, n = e.input.charCodeAt(t);
|
|
1297
|
+
return !!((n === 45 || n === 46) && n === e.input.charCodeAt(t + 1) && n === e.input.charCodeAt(t + 2) && (t += 3, n = e.input.charCodeAt(t), n === 0 || p(n)));
|
|
1298
|
+
}
|
|
1299
|
+
T(z, "testDocumentSeparator");
|
|
1300
|
+
function te(t, n) {
|
|
1301
|
+
n === 1 ? t.result += " " : n > 1 && (t.result += e.repeat("\n", n - 1));
|
|
1302
|
+
}
|
|
1303
|
+
T(te, "writeFoldedLines");
|
|
1304
|
+
function ne(e, t, n) {
|
|
1305
|
+
let r, i, a, o, s, c, l = e.kind, u = e.result, h = e.input.charCodeAt(e.position);
|
|
1306
|
+
if (p(h) || m(h) || h === 35 || h === 38 || h === 42 || h === 33 || h === 124 || h === 62 || h === 39 || h === 34 || h === 37 || h === 64 || h === 96) return !1;
|
|
1307
|
+
if (h === 63 || h === 45) {
|
|
1308
|
+
let t = e.input.charCodeAt(e.position + 1);
|
|
1309
|
+
if (p(t) || n && m(t)) return !1;
|
|
1310
|
+
}
|
|
1311
|
+
for (e.kind = "scalar", e.result = "", r = i = e.position, a = !1; h !== 0;) {
|
|
1312
|
+
if (h === 58) {
|
|
1313
|
+
let t = e.input.charCodeAt(e.position + 1);
|
|
1314
|
+
if (p(t) || n && m(t)) break;
|
|
1315
|
+
} else if (h === 35) {
|
|
1316
|
+
if (p(e.input.charCodeAt(e.position - 1))) break;
|
|
1317
|
+
} else if (e.position === e.lineStart && z(e) || n && m(h)) break;
|
|
1318
|
+
else if (d(h)) {
|
|
1319
|
+
if (o = e.line, s = e.lineStart, c = e.lineIndent, R(e, !1, -1), e.lineIndent >= t) {
|
|
1320
|
+
a = !0, h = e.input.charCodeAt(e.position);
|
|
1321
|
+
continue;
|
|
1322
|
+
}
|
|
1323
|
+
e.position = i, e.line = o, e.lineStart = s, e.lineIndent = c;
|
|
1324
|
+
break;
|
|
1325
|
+
}
|
|
1326
|
+
a &&= (P(e, r, i, !1), te(e, e.line - o), r = i = e.position, !1), f(h) || (i = e.position + 1), h = e.input.charCodeAt(++e.position);
|
|
1327
|
+
}
|
|
1328
|
+
return P(e, r, i, !1), e.result ? !0 : (e.kind = l, e.result = u, !1);
|
|
1329
|
+
}
|
|
1330
|
+
T(ne, "readPlainScalar");
|
|
1331
|
+
function re(e, t) {
|
|
1332
|
+
let n, r, i = e.input.charCodeAt(e.position);
|
|
1333
|
+
if (i !== 39) return !1;
|
|
1334
|
+
for (e.kind = "scalar", e.result = "", e.position++, n = r = e.position; (i = e.input.charCodeAt(e.position)) !== 0;) if (i === 39) {
|
|
1335
|
+
if (P(e, n, e.position, !0), i = e.input.charCodeAt(++e.position), i === 39) n = e.position, e.position++, r = e.position;
|
|
1336
|
+
else return !0;
|
|
1337
|
+
} else d(i) ? (P(e, n, r, !0), te(e, R(e, !1, t)), n = r = e.position) : e.position === e.lineStart && z(e) ? E(e, "unexpected end of the document within a single quoted scalar") : (e.position++, f(i) || (r = e.position));
|
|
1338
|
+
E(e, "unexpected end of the stream within a single quoted scalar");
|
|
1339
|
+
}
|
|
1340
|
+
T(re, "readSingleQuotedScalar");
|
|
1341
|
+
function ie(e, t) {
|
|
1342
|
+
let n, r, i, a = e.input.charCodeAt(e.position);
|
|
1343
|
+
if (a !== 34) return !1;
|
|
1344
|
+
for (e.kind = "scalar", e.result = "", e.position++, n = r = e.position; (a = e.input.charCodeAt(e.position)) !== 0;) if (a === 34) return P(e, n, e.position, !0), e.position++, !0;
|
|
1345
|
+
else if (a === 92) {
|
|
1346
|
+
if (P(e, n, e.position, !0), a = e.input.charCodeAt(++e.position), d(a)) R(e, !1, t);
|
|
1347
|
+
else if (a < 256 && x[a]) e.result += S[a], e.position++;
|
|
1348
|
+
else if ((i = g(a)) > 0) {
|
|
1349
|
+
let t = i, n = 0;
|
|
1350
|
+
for (; t > 0; t--) a = e.input.charCodeAt(++e.position), (i = h(a)) >= 0 ? n = (n << 4) + i : E(e, "expected hexadecimal character");
|
|
1351
|
+
e.result += y(n), e.position++;
|
|
1352
|
+
} else E(e, "unknown escape sequence");
|
|
1353
|
+
n = r = e.position;
|
|
1354
|
+
} else d(a) ? (P(e, n, r, !0), te(e, R(e, !1, t)), n = r = e.position) : e.position === e.lineStart && z(e) ? E(e, "unexpected end of the document within a double quoted scalar") : (e.position++, f(a) || (r = e.position));
|
|
1355
|
+
E(e, "unexpected end of the stream within a double quoted scalar");
|
|
1356
|
+
}
|
|
1357
|
+
T(ie, "readDoubleQuotedScalar");
|
|
1358
|
+
function ae(e, t) {
|
|
1359
|
+
let n = !0, r, i, a, o = e.tag, s, c = e.anchor, l, u, d, f, m = /* @__PURE__ */ Object.create(null), h, g, _, v = e.input.charCodeAt(e.position);
|
|
1360
|
+
if (v === 91) l = 93, f = !1, s = [];
|
|
1361
|
+
else if (v === 123) l = 125, f = !0, s = {};
|
|
1362
|
+
else return !1;
|
|
1363
|
+
for (e.anchor !== null && O(e, e.anchor, s), v = e.input.charCodeAt(++e.position); v !== 0;) {
|
|
1364
|
+
if (R(e, !0, t), v = e.input.charCodeAt(e.position), v === l) return e.position++, e.tag = o, e.anchor = c, e.kind = f ? "mapping" : "sequence", e.result = s, !0;
|
|
1365
|
+
n ? v === 44 && E(e, "expected the node content, but found ','") : E(e, "missed comma between flow collection entries"), g = h = _ = null, u = d = !1, v === 63 && p(e.input.charCodeAt(e.position + 1)) && (u = d = !0, e.position++, R(e, !0, t)), r = e.line, i = e.lineStart, a = e.position, B(e, t, 1, !1, !0), g = e.tag, h = e.result, R(e, !0, t), v = e.input.charCodeAt(e.position), (d || e.line === r) && v === 58 && (u = !0, v = e.input.charCodeAt(++e.position), R(e, !0, t), B(e, t, 1, !1, !0), _ = e.result), f ? I(e, s, m, g, h, _, r, i, a) : u ? s.push(I(e, null, m, g, h, _, r, i, a)) : s.push(h), R(e, !0, t), v = e.input.charCodeAt(e.position), v === 44 ? (n = !0, v = e.input.charCodeAt(++e.position)) : n = !1;
|
|
1366
|
+
}
|
|
1367
|
+
E(e, "unexpected end of the stream within a flow collection");
|
|
1368
|
+
}
|
|
1369
|
+
T(ae, "readFlowCollection");
|
|
1370
|
+
function oe(t, n) {
|
|
1371
|
+
let r, i = 1, a = !1, o = !1, s = n, c = 0, l = !1, u, p = t.input.charCodeAt(t.position);
|
|
1372
|
+
if (p === 124) r = !1;
|
|
1373
|
+
else if (p === 62) r = !0;
|
|
1374
|
+
else return !1;
|
|
1375
|
+
for (t.kind = "scalar", t.result = ""; p !== 0;) if (p = t.input.charCodeAt(++t.position), p === 43 || p === 45) i === 1 ? i = p === 43 ? 3 : 2 : E(t, "repeat of a chomping mode identifier");
|
|
1376
|
+
else if ((u = _(p)) >= 0) u === 0 ? E(t, "bad explicit indentation width of a block scalar; it cannot be less than one") : o ? E(t, "repeat of an indentation width identifier") : (s = n + u - 1, o = !0);
|
|
1377
|
+
else break;
|
|
1378
|
+
if (f(p)) {
|
|
1379
|
+
do
|
|
1380
|
+
p = t.input.charCodeAt(++t.position);
|
|
1381
|
+
while (f(p));
|
|
1382
|
+
if (p === 35) do
|
|
1383
|
+
p = t.input.charCodeAt(++t.position);
|
|
1384
|
+
while (!d(p) && p !== 0);
|
|
1385
|
+
}
|
|
1386
|
+
for (; p !== 0;) {
|
|
1387
|
+
for (L(t), t.lineIndent = 0, p = t.input.charCodeAt(t.position); (!o || t.lineIndent < s) && p === 32;) t.lineIndent++, p = t.input.charCodeAt(++t.position);
|
|
1388
|
+
if (!o && t.lineIndent > s && (s = t.lineIndent), d(p)) {
|
|
1389
|
+
c++;
|
|
1390
|
+
continue;
|
|
1391
|
+
}
|
|
1392
|
+
if (!o && s === 0 && E(t, "missing indentation for block scalar"), t.lineIndent < s) {
|
|
1393
|
+
i === 3 ? t.result += e.repeat("\n", a ? 1 + c : c) : i === 1 && a && (t.result += "\n");
|
|
1394
|
+
break;
|
|
1395
|
+
}
|
|
1396
|
+
r ? f(p) ? (l = !0, t.result += e.repeat("\n", a ? 1 + c : c)) : l ? (l = !1, t.result += e.repeat("\n", c + 1)) : c === 0 ? a && (t.result += " ") : t.result += e.repeat("\n", c) : t.result += e.repeat("\n", a ? 1 + c : c), a = !0, o = !0, c = 0;
|
|
1397
|
+
let n = t.position;
|
|
1398
|
+
for (; !d(p) && p !== 0;) p = t.input.charCodeAt(++t.position);
|
|
1399
|
+
P(t, n, t.position, !1);
|
|
1400
|
+
}
|
|
1401
|
+
return !0;
|
|
1402
|
+
}
|
|
1403
|
+
T(oe, "readBlockScalar");
|
|
1404
|
+
function se(e, t) {
|
|
1405
|
+
let n = e.tag, r = e.anchor, i = [], a = !1;
|
|
1406
|
+
if (e.firstTabInLine !== -1) return !1;
|
|
1407
|
+
e.anchor !== null && O(e, e.anchor, i);
|
|
1408
|
+
let o = e.input.charCodeAt(e.position);
|
|
1409
|
+
for (; o !== 0 && (e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, E(e, "tab characters must not be used in indentation")), !(o !== 45 || !p(e.input.charCodeAt(e.position + 1))));) {
|
|
1410
|
+
if (a = !0, e.position++, R(e, !0, -1) && e.lineIndent <= t) {
|
|
1411
|
+
i.push(null), o = e.input.charCodeAt(e.position);
|
|
1412
|
+
continue;
|
|
1413
|
+
}
|
|
1414
|
+
let n = e.line;
|
|
1415
|
+
if (B(e, t, 3, !1, !0), i.push(e.result), R(e, !0, -1), o = e.input.charCodeAt(e.position), (e.line === n || e.lineIndent > t) && o !== 0) E(e, "bad indentation of a sequence entry");
|
|
1416
|
+
else if (e.lineIndent < t) break;
|
|
1417
|
+
}
|
|
1418
|
+
return a ? (e.tag = n, e.anchor = r, e.kind = "sequence", e.result = i, !0) : !1;
|
|
1419
|
+
}
|
|
1420
|
+
T(se, "readBlockSequence");
|
|
1421
|
+
function ce(e, t, n) {
|
|
1422
|
+
let r, i, a, o, s = e.tag, c = e.anchor, l = {}, u = /* @__PURE__ */ Object.create(null), d = null, m = null, h = null, g = !1, _ = !1;
|
|
1423
|
+
if (e.firstTabInLine !== -1) return !1;
|
|
1424
|
+
e.anchor !== null && O(e, e.anchor, l);
|
|
1425
|
+
let v = e.input.charCodeAt(e.position);
|
|
1426
|
+
for (; v !== 0;) {
|
|
1427
|
+
!g && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, E(e, "tab characters must not be used in indentation"));
|
|
1428
|
+
let y = e.input.charCodeAt(e.position + 1), b = e.line;
|
|
1429
|
+
if ((v === 63 || v === 58) && p(y)) v === 63 ? (g && (I(e, l, u, d, m, null, i, a, o), d = m = h = null), _ = !0, g = !0, r = !0) : g ? (g = !1, r = !0) : E(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, v = y;
|
|
1430
|
+
else {
|
|
1431
|
+
if (i = e.line, a = e.lineStart, o = e.position, !B(e, n, 2, !1, !0)) break;
|
|
1432
|
+
if (e.line === b) {
|
|
1433
|
+
for (v = e.input.charCodeAt(e.position); f(v);) v = e.input.charCodeAt(++e.position);
|
|
1434
|
+
if (v === 58) v = e.input.charCodeAt(++e.position), p(v) || E(e, "a whitespace character is expected after the key-value separator within a block mapping"), g && (I(e, l, u, d, m, null, i, a, o), d = m = h = null), _ = !0, g = !1, r = !1, d = e.tag, m = e.result;
|
|
1435
|
+
else if (_) E(e, "can not read an implicit mapping pair; a colon is missed");
|
|
1436
|
+
else return e.tag = s, e.anchor = c, !0;
|
|
1437
|
+
} else if (_) E(e, "can not read a block mapping entry; a multiline key may not be an implicit key");
|
|
1438
|
+
else return e.tag = s, e.anchor = c, !0;
|
|
1439
|
+
}
|
|
1440
|
+
if ((e.line === b || e.lineIndent > t) && (g && (i = e.line, a = e.lineStart, o = e.position), B(e, t, 4, !0, r) && (g ? m = e.result : h = e.result), g || (I(e, l, u, d, m, h, i, a, o), d = m = h = null), R(e, !0, -1), v = e.input.charCodeAt(e.position)), (e.line === b || e.lineIndent > t) && v !== 0) E(e, "bad indentation of a mapping entry");
|
|
1441
|
+
else if (e.lineIndent < t) break;
|
|
1442
|
+
}
|
|
1443
|
+
return g && I(e, l, u, d, m, null, i, a, o), _ && (e.tag = s, e.anchor = c, e.kind = "mapping", e.result = l), _;
|
|
1444
|
+
}
|
|
1445
|
+
T(ce, "readBlockMapping");
|
|
1446
|
+
function le(e) {
|
|
1447
|
+
let t = !1, n = !1, r, a, o = e.input.charCodeAt(e.position);
|
|
1448
|
+
if (o !== 33) return !1;
|
|
1449
|
+
e.tag !== null && E(e, "duplication of a tag property"), o = e.input.charCodeAt(++e.position), o === 60 ? (t = !0, o = e.input.charCodeAt(++e.position)) : o === 33 ? (n = !0, r = "!!", o = e.input.charCodeAt(++e.position)) : r = "!";
|
|
1450
|
+
let u = e.position;
|
|
1451
|
+
if (t) {
|
|
1452
|
+
do
|
|
1453
|
+
o = e.input.charCodeAt(++e.position);
|
|
1454
|
+
while (o !== 0 && o !== 62);
|
|
1455
|
+
e.position < e.length ? (a = e.input.slice(u, e.position), o = e.input.charCodeAt(++e.position)) : E(e, "unexpected end of the stream within a verbatim tag");
|
|
1456
|
+
} else {
|
|
1457
|
+
for (; o !== 0 && !p(o);) o === 33 && (n ? E(e, "tag suffix cannot contain exclamation marks") : (r = e.input.slice(u - 1, e.position + 1), c.test(r) || E(e, "named tag handle cannot contain such characters"), n = !0, u = e.position + 1)), o = e.input.charCodeAt(++e.position);
|
|
1458
|
+
a = e.input.slice(u, e.position), s.test(a) && E(e, "tag suffix cannot contain flow indicator characters");
|
|
1459
|
+
}
|
|
1460
|
+
a && !l.test(a) && E(e, "tag name cannot contain such characters: " + a);
|
|
1461
|
+
try {
|
|
1462
|
+
a = decodeURIComponent(a);
|
|
1463
|
+
} catch {
|
|
1464
|
+
E(e, "tag name is malformed: " + a);
|
|
1465
|
+
}
|
|
1466
|
+
return t ? e.tag = a : i.call(e.tagMap, r) ? e.tag = e.tagMap[r] + a : r === "!" ? e.tag = "!" + a : r === "!!" ? e.tag = "tag:yaml.org,2002:" + a : E(e, "undeclared tag handle \"" + r + "\""), !0;
|
|
1467
|
+
}
|
|
1468
|
+
T(le, "readTagProperty");
|
|
1469
|
+
function ue(e) {
|
|
1470
|
+
let t = e.input.charCodeAt(e.position);
|
|
1471
|
+
if (t !== 38) return !1;
|
|
1472
|
+
e.anchor !== null && E(e, "duplication of an anchor property"), t = e.input.charCodeAt(++e.position);
|
|
1473
|
+
let n = e.position;
|
|
1474
|
+
for (; t !== 0 && !p(t) && !m(t);) t = e.input.charCodeAt(++e.position);
|
|
1475
|
+
return e.position === n && E(e, "name of an anchor node must contain at least one character"), e.anchor = e.input.slice(n, e.position), !0;
|
|
1476
|
+
}
|
|
1477
|
+
T(ue, "readAnchorProperty");
|
|
1478
|
+
function de(e) {
|
|
1479
|
+
let t = e.input.charCodeAt(e.position);
|
|
1480
|
+
if (t !== 42) return !1;
|
|
1481
|
+
t = e.input.charCodeAt(++e.position);
|
|
1482
|
+
let n = e.position;
|
|
1483
|
+
for (; t !== 0 && !p(t) && !m(t);) t = e.input.charCodeAt(++e.position);
|
|
1484
|
+
e.position === n && E(e, "name of an alias node must contain at least one character");
|
|
1485
|
+
let r = e.input.slice(n, e.position);
|
|
1486
|
+
return i.call(e.anchorMap, r) || E(e, "unidentified alias \"" + r + "\""), e.result = e.anchorMap[r], R(e, !0, -1), !0;
|
|
1487
|
+
}
|
|
1488
|
+
T(de, "readAlias");
|
|
1489
|
+
function fe(e, t, n, r) {
|
|
1490
|
+
let i = M(e);
|
|
1491
|
+
return k(e), N(e, t), e.tag = null, e.anchor = null, e.kind = null, e.result = null, ce(e, n, r) && e.kind === "mapping" ? (A(e), !0) : (j(e), N(e, i), !1);
|
|
1492
|
+
}
|
|
1493
|
+
T(fe, "tryReadBlockMappingFromProperty");
|
|
1494
|
+
function B(e, t, n, r, a) {
|
|
1495
|
+
let o, s, c = 1, l = !1, u = !1, d = null, f, p, m;
|
|
1496
|
+
e.depth >= e.maxDepth && E(e, "nesting exceeded maxDepth (" + e.maxDepth + ")"), e.depth += 1, e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null;
|
|
1497
|
+
let h = o = s = n === 4 || n === 3;
|
|
1498
|
+
if (r && R(e, !0, -1) && (l = !0, e.lineIndent > t ? c = 1 : e.lineIndent === t ? c = 0 : e.lineIndent < t && (c = -1)), c === 1) for (;;) {
|
|
1499
|
+
let n = e.input.charCodeAt(e.position), r = M(e);
|
|
1500
|
+
if (l && (n === 33 && e.tag !== null || n === 38 && e.anchor !== null) || !le(e) && !ue(e)) break;
|
|
1501
|
+
d === null && (d = r), R(e, !0, -1) ? (l = !0, s = h, e.lineIndent > t ? c = 1 : e.lineIndent === t ? c = 0 : e.lineIndent < t && (c = -1)) : s = !1;
|
|
1502
|
+
}
|
|
1503
|
+
if (s &&= l || a, c === 1 || n === 4) {
|
|
1504
|
+
if (p = n === 1 || n === 2 ? t : t + 1, m = e.position - e.lineStart, c === 1) {
|
|
1505
|
+
if (s && (se(e, m) || ce(e, m, p)) || ae(e, p)) u = !0;
|
|
1506
|
+
else {
|
|
1507
|
+
let t = e.input.charCodeAt(e.position);
|
|
1508
|
+
d !== null && h && !s && t !== 124 && t !== 62 && fe(e, d, d.position - d.lineStart, p) || o && oe(e, p) || re(e, p) || ie(e, p) ? u = !0 : de(e) ? (u = !0, (e.tag !== null || e.anchor !== null) && E(e, "alias node should not have any properties")) : ne(e, p, n === 1) && (u = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && O(e, e.anchor, e.result);
|
|
1509
|
+
}
|
|
1510
|
+
} else c === 0 && (u = s && se(e, m));
|
|
1511
|
+
}
|
|
1512
|
+
if (e.tag === null) e.anchor !== null && O(e, e.anchor, e.result);
|
|
1513
|
+
else if (e.tag === "?") {
|
|
1514
|
+
e.result !== null && e.kind !== "scalar" && E(e, "unacceptable node kind for !<?> tag; it should be \"scalar\", not \"" + e.kind + "\"");
|
|
1515
|
+
for (let t = 0, n = e.implicitTypes.length; t < n; t += 1) if (f = e.implicitTypes[t], f.resolve(e.result)) {
|
|
1516
|
+
e.result = f.construct(e.result), e.tag = f.tag, e.anchor !== null && O(e, e.anchor, e.result);
|
|
1517
|
+
break;
|
|
1518
|
+
}
|
|
1519
|
+
} else if (e.tag !== "!") {
|
|
1520
|
+
if (i.call(e.typeMap[e.kind || "fallback"], e.tag)) f = e.typeMap[e.kind || "fallback"][e.tag];
|
|
1521
|
+
else {
|
|
1522
|
+
f = null;
|
|
1523
|
+
let t = e.typeMap.multi[e.kind || "fallback"];
|
|
1524
|
+
for (let n = 0, r = t.length; n < r; n += 1) if (e.tag.slice(0, t[n].tag.length) === t[n].tag) {
|
|
1525
|
+
f = t[n];
|
|
1526
|
+
break;
|
|
1527
|
+
}
|
|
1528
|
+
}
|
|
1529
|
+
f || E(e, "unknown tag !<" + e.tag + ">"), e.result !== null && f.kind !== e.kind && E(e, "unacceptable node kind for !<" + e.tag + "> tag; it should be \"" + f.kind + "\", not \"" + e.kind + "\""), f.resolve(e.result, e.tag) ? (e.result = f.construct(e.result, e.tag), e.anchor !== null && O(e, e.anchor, e.result)) : E(e, "cannot resolve a node with !<" + e.tag + "> explicit tag");
|
|
1530
|
+
}
|
|
1531
|
+
return e.listener !== null && e.listener("close", e), --e.depth, e.tag !== null || e.anchor !== null || u;
|
|
1532
|
+
}
|
|
1533
|
+
T(B, "composeNode");
|
|
1534
|
+
function pe(e) {
|
|
1535
|
+
let t = e.position, n = !1, r;
|
|
1536
|
+
for (e.version = null, e.checkLineBreaks = e.legacy, e.tagMap = /* @__PURE__ */ Object.create(null), e.anchorMap = /* @__PURE__ */ Object.create(null); (r = e.input.charCodeAt(e.position)) !== 0 && (R(e, !0, -1), r = e.input.charCodeAt(e.position), !(e.lineIndent > 0 || r !== 37));) {
|
|
1537
|
+
n = !0, r = e.input.charCodeAt(++e.position);
|
|
1538
|
+
let t = e.position;
|
|
1539
|
+
for (; r !== 0 && !p(r);) r = e.input.charCodeAt(++e.position);
|
|
1540
|
+
let a = e.input.slice(t, e.position), o = [];
|
|
1541
|
+
for (a.length < 1 && E(e, "directive name must not be less than one character in length"); r !== 0;) {
|
|
1542
|
+
for (; f(r);) r = e.input.charCodeAt(++e.position);
|
|
1543
|
+
if (r === 35) {
|
|
1544
|
+
do
|
|
1545
|
+
r = e.input.charCodeAt(++e.position);
|
|
1546
|
+
while (r !== 0 && !d(r));
|
|
1547
|
+
break;
|
|
1548
|
+
}
|
|
1549
|
+
if (d(r)) break;
|
|
1550
|
+
for (t = e.position; r !== 0 && !p(r);) r = e.input.charCodeAt(++e.position);
|
|
1551
|
+
o.push(e.input.slice(t, e.position));
|
|
1552
|
+
}
|
|
1553
|
+
r !== 0 && L(e), i.call(ee, a) ? ee[a](e, a, o) : D(e, "unknown document directive \"" + a + "\"");
|
|
1554
|
+
}
|
|
1555
|
+
if (R(e, !0, -1), e.lineIndent === 0 && e.input.charCodeAt(e.position) === 45 && e.input.charCodeAt(e.position + 1) === 45 && e.input.charCodeAt(e.position + 2) === 45 ? (e.position += 3, R(e, !0, -1)) : n && E(e, "directives end mark is expected"), B(e, e.lineIndent - 1, 4, !1, !0), R(e, !0, -1), e.checkLineBreaks && o.test(e.input.slice(t, e.position)) && D(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && z(e)) {
|
|
1556
|
+
e.input.charCodeAt(e.position) === 46 && (e.position += 3, R(e, !0, -1));
|
|
1557
|
+
return;
|
|
1558
|
+
}
|
|
1559
|
+
e.position < e.length - 1 && E(e, "end of the stream or a document separator is expected");
|
|
1560
|
+
}
|
|
1561
|
+
T(pe, "readDocument");
|
|
1562
|
+
function me(e, t) {
|
|
1563
|
+
e = String(e), t ||= {}, e.length !== 0 && (e.charCodeAt(e.length - 1) !== 10 && e.charCodeAt(e.length - 1) !== 13 && (e += "\n"), e.charCodeAt(0) === 65279 && (e = e.slice(1)));
|
|
1564
|
+
let n = new C(e, t), r = e.indexOf("\0");
|
|
1565
|
+
for (r !== -1 && (n.position = r, E(n, "null byte is not allowed in input")), n.input += "\0"; n.input.charCodeAt(n.position) === 32;) n.lineIndent += 1, n.position += 1;
|
|
1566
|
+
for (; n.position < n.length - 1;) pe(n);
|
|
1567
|
+
return n.documents;
|
|
1568
|
+
}
|
|
1569
|
+
T(me, "loadDocuments");
|
|
1570
|
+
function he(e, t, n) {
|
|
1571
|
+
typeof t == "object" && t && n === void 0 && (n = t, t = null);
|
|
1572
|
+
let r = me(e, n);
|
|
1573
|
+
if (typeof t != "function") return r;
|
|
1574
|
+
for (let e = 0, n = r.length; e < n; e += 1) t(r[e]);
|
|
1575
|
+
}
|
|
1576
|
+
T(he, "loadAll2");
|
|
1577
|
+
function ge(e, n) {
|
|
1578
|
+
let r = me(e, n);
|
|
1579
|
+
if (r.length !== 0) {
|
|
1580
|
+
if (r.length === 1) return r[0];
|
|
1581
|
+
throw new t("expected a single document in the stream, but found more");
|
|
1582
|
+
}
|
|
1583
|
+
}
|
|
1584
|
+
return T(ge, "load2"), dt.loadAll = he, dt.load = ge, dt;
|
|
1585
|
+
}
|
|
1586
|
+
T(Cn, "requireLoader");
|
|
1587
|
+
var wn = {}, Tn;
|
|
1588
|
+
function En() {
|
|
1589
|
+
if (Tn) return wn;
|
|
1590
|
+
Tn = 1;
|
|
1591
|
+
let e = G(), t = ht(), n = xn(), r = Object.prototype.toString, i = Object.prototype.hasOwnProperty, a = 65279, o = {};
|
|
1592
|
+
o[0] = "\\0", o[7] = "\\a", o[8] = "\\b", o[9] = "\\t", o[10] = "\\n", o[11] = "\\v", o[12] = "\\f", o[13] = "\\r", o[27] = "\\e", o[34] = "\\\"", o[92] = "\\\\", o[133] = "\\N", o[160] = "\\_", o[8232] = "\\L", o[8233] = "\\P";
|
|
1593
|
+
let s = [
|
|
1594
|
+
"y",
|
|
1595
|
+
"Y",
|
|
1596
|
+
"yes",
|
|
1597
|
+
"Yes",
|
|
1598
|
+
"YES",
|
|
1599
|
+
"on",
|
|
1600
|
+
"On",
|
|
1601
|
+
"ON",
|
|
1602
|
+
"n",
|
|
1603
|
+
"N",
|
|
1604
|
+
"no",
|
|
1605
|
+
"No",
|
|
1606
|
+
"NO",
|
|
1607
|
+
"off",
|
|
1608
|
+
"Off",
|
|
1609
|
+
"OFF"
|
|
1610
|
+
], c = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
|
|
1611
|
+
function l(e, t) {
|
|
1612
|
+
if (t === null) return {};
|
|
1613
|
+
let n = {}, r = Object.keys(t);
|
|
1614
|
+
for (let a = 0, o = r.length; a < o; a += 1) {
|
|
1615
|
+
let o = r[a], s = String(t[o]);
|
|
1616
|
+
o.slice(0, 2) === "!!" && (o = "tag:yaml.org,2002:" + o.slice(2));
|
|
1617
|
+
let c = e.compiledTypeMap.fallback[o];
|
|
1618
|
+
c && i.call(c.styleAliases, s) && (s = c.styleAliases[s]), n[o] = s;
|
|
1619
|
+
}
|
|
1620
|
+
return n;
|
|
1621
|
+
}
|
|
1622
|
+
T(l, "compileStyleMap");
|
|
1623
|
+
function u(n) {
|
|
1624
|
+
let r, i, a = n.toString(16).toUpperCase();
|
|
1625
|
+
if (n <= 255) r = "x", i = 2;
|
|
1626
|
+
else if (n <= 65535) r = "u", i = 4;
|
|
1627
|
+
else if (n <= 4294967295) r = "U", i = 8;
|
|
1628
|
+
else throw new t("code point within a string may not be greater than 0xFFFFFFFF");
|
|
1629
|
+
return "\\" + r + e.repeat("0", i - a.length) + a;
|
|
1630
|
+
}
|
|
1631
|
+
T(u, "encodeHex");
|
|
1632
|
+
function d(t) {
|
|
1633
|
+
this.schema = t.schema || n, this.indent = Math.max(1, t.indent || 2), this.noArrayIndent = t.noArrayIndent || !1, this.skipInvalid = t.skipInvalid || !1, this.flowLevel = e.isNothing(t.flowLevel) ? -1 : t.flowLevel, this.styleMap = l(this.schema, t.styles || null), this.sortKeys = t.sortKeys || !1, this.lineWidth = t.lineWidth || 80, this.noRefs = t.noRefs || !1, this.noCompatMode = t.noCompatMode || !1, this.condenseFlow = t.condenseFlow || !1, this.quotingType = t.quotingType === "\"" ? 2 : 1, this.forceQuotes = t.forceQuotes || !1, this.replacer = typeof t.replacer == "function" ? t.replacer : null, this.implicitTypes = this.schema.compiledImplicit, this.explicitTypes = this.schema.compiledExplicit, this.tag = null, this.result = "", this.duplicates = [], this.usedDuplicates = null;
|
|
1634
|
+
}
|
|
1635
|
+
T(d, "State");
|
|
1636
|
+
function f(t, n) {
|
|
1637
|
+
let r = e.repeat(" ", n), i = 0, a = "", o = t.length;
|
|
1638
|
+
for (; i < o;) {
|
|
1639
|
+
let e, n = t.indexOf("\n", i);
|
|
1640
|
+
n === -1 ? (e = t.slice(i), i = o) : (e = t.slice(i, n + 1), i = n + 1), e.length && e !== "\n" && (a += r), a += e;
|
|
1641
|
+
}
|
|
1642
|
+
return a;
|
|
1643
|
+
}
|
|
1644
|
+
T(f, "indentString");
|
|
1645
|
+
function p(t, n) {
|
|
1646
|
+
return "\n" + e.repeat(" ", t.indent * n);
|
|
1647
|
+
}
|
|
1648
|
+
T(p, "generateNextLine");
|
|
1649
|
+
function m(e, t) {
|
|
1650
|
+
for (let n = 0, r = e.implicitTypes.length; n < r; n += 1) if (e.implicitTypes[n].resolve(t)) return !0;
|
|
1651
|
+
return !1;
|
|
1652
|
+
}
|
|
1653
|
+
T(m, "testImplicitResolving");
|
|
1654
|
+
function h(e) {
|
|
1655
|
+
return e === 32 || e === 9;
|
|
1656
|
+
}
|
|
1657
|
+
T(h, "isWhitespace");
|
|
1658
|
+
function g(e) {
|
|
1659
|
+
return e >= 32 && e <= 126 || e >= 161 && e <= 55295 && e !== 8232 && e !== 8233 || e >= 57344 && e <= 65533 && e !== a || e >= 65536 && e <= 1114111;
|
|
1660
|
+
}
|
|
1661
|
+
T(g, "isPrintable");
|
|
1662
|
+
function _(e) {
|
|
1663
|
+
return g(e) && e !== a && e !== 13 && e !== 10;
|
|
1664
|
+
}
|
|
1665
|
+
T(_, "isNsCharOrWhitespace");
|
|
1666
|
+
function v(e, t, n) {
|
|
1667
|
+
let r = _(e), i = r && !h(e);
|
|
1668
|
+
return (n ? r : r && e !== 44 && e !== 91 && e !== 93 && e !== 123 && e !== 125) && e !== 35 && !(t === 58 && !i) || _(t) && !h(t) && e === 35 || t === 58 && i;
|
|
1669
|
+
}
|
|
1670
|
+
T(v, "isPlainSafe");
|
|
1671
|
+
function y(e) {
|
|
1672
|
+
return g(e) && e !== a && !h(e) && e !== 45 && e !== 63 && e !== 58 && e !== 44 && e !== 91 && e !== 93 && e !== 123 && e !== 125 && e !== 35 && e !== 38 && e !== 42 && e !== 33 && e !== 124 && e !== 61 && e !== 62 && e !== 39 && e !== 34 && e !== 37 && e !== 64 && e !== 96;
|
|
1673
|
+
}
|
|
1674
|
+
T(y, "isPlainSafeFirst");
|
|
1675
|
+
function b(e) {
|
|
1676
|
+
return !h(e) && e !== 58;
|
|
1677
|
+
}
|
|
1678
|
+
T(b, "isPlainSafeLast");
|
|
1679
|
+
function x(e, t) {
|
|
1680
|
+
let n = e.charCodeAt(t), r;
|
|
1681
|
+
return n >= 55296 && n <= 56319 && t + 1 < e.length && (r = e.charCodeAt(t + 1), r >= 56320 && r <= 57343) ? (n - 55296) * 1024 + r - 56320 + 65536 : n;
|
|
1682
|
+
}
|
|
1683
|
+
T(x, "codePointAt");
|
|
1684
|
+
function S(e) {
|
|
1685
|
+
return /^\n* /.test(e);
|
|
1686
|
+
}
|
|
1687
|
+
T(S, "needIndentIndicator");
|
|
1688
|
+
function C(e, t, n, r, i, a, o, s) {
|
|
1689
|
+
let c, l = 0, u = null, d = !1, f = !1, p = r !== -1, m = -1, h = y(x(e, 0)) && b(x(e, e.length - 1));
|
|
1690
|
+
if (t || o) for (c = 0; c < e.length; l >= 65536 ? c += 2 : c++) {
|
|
1691
|
+
if (l = x(e, c), !g(l)) return 5;
|
|
1692
|
+
h &&= v(l, u, s), u = l;
|
|
1693
|
+
}
|
|
1694
|
+
else {
|
|
1695
|
+
for (c = 0; c < e.length; l >= 65536 ? c += 2 : c++) {
|
|
1696
|
+
if (l = x(e, c), l === 10) d = !0, p && (f ||= c - m - 1 > r && e[m + 1] !== " ", m = c);
|
|
1697
|
+
else if (!g(l)) return 5;
|
|
1698
|
+
h &&= v(l, u, s), u = l;
|
|
1699
|
+
}
|
|
1700
|
+
f ||= p && c - m - 1 > r && e[m + 1] !== " ";
|
|
1701
|
+
}
|
|
1702
|
+
return !d && !f ? h && !o && !i(e) ? 1 : a === 2 ? 5 : 2 : n > 9 && S(e) ? 5 : o ? a === 2 ? 5 : 2 : f ? 4 : 3;
|
|
1703
|
+
}
|
|
1704
|
+
T(C, "chooseScalarStyle");
|
|
1705
|
+
function w(e, n, r, i, a) {
|
|
1706
|
+
e.dump = (function() {
|
|
1707
|
+
if (n.length === 0) return e.quotingType === 2 ? "\"\"" : "''";
|
|
1708
|
+
if (!e.noCompatMode && (s.indexOf(n) !== -1 || c.test(n))) return e.quotingType === 2 ? "\"" + n + "\"" : "'" + n + "'";
|
|
1709
|
+
let o = e.indent * Math.max(1, r), l = e.lineWidth === -1 ? -1 : Math.max(Math.min(e.lineWidth, 40), e.lineWidth - o), u = i || e.flowLevel > -1 && r >= e.flowLevel;
|
|
1710
|
+
function d(t) {
|
|
1711
|
+
return m(e, t);
|
|
1712
|
+
}
|
|
1713
|
+
switch (T(d, "testAmbiguity"), C(n, u, e.indent, l, d, e.quotingType, e.forceQuotes && !i, a)) {
|
|
1714
|
+
case 1: return n;
|
|
1715
|
+
case 2: return "'" + n.replace(/'/g, "''") + "'";
|
|
1716
|
+
case 3: return "|" + E(n, e.indent) + D(f(n, o));
|
|
1717
|
+
case 4: return ">" + E(n, e.indent) + D(f(O(n, l), o));
|
|
1718
|
+
case 5: return "\"" + A(n) + "\"";
|
|
1719
|
+
default: throw new t("impossible error: invalid scalar style");
|
|
1720
|
+
}
|
|
1721
|
+
})();
|
|
1722
|
+
}
|
|
1723
|
+
T(w, "writeScalar");
|
|
1724
|
+
function E(e, t) {
|
|
1725
|
+
let n = S(e) ? String(t) : "", r = e[e.length - 1] === "\n";
|
|
1726
|
+
return n + (r && (e[e.length - 2] === "\n" || e === "\n") ? "+" : r ? "" : "-") + "\n";
|
|
1727
|
+
}
|
|
1728
|
+
T(E, "blockHeader");
|
|
1729
|
+
function D(e) {
|
|
1730
|
+
return e[e.length - 1] === "\n" ? e.slice(0, -1) : e;
|
|
1731
|
+
}
|
|
1732
|
+
T(D, "dropEndingNewline");
|
|
1733
|
+
function O(e, t) {
|
|
1734
|
+
let n = /(\n+)([^\n]*)/g, r = (function() {
|
|
1735
|
+
let r = e.indexOf("\n");
|
|
1736
|
+
return r = r === -1 ? e.length : r, n.lastIndex = r, k(e.slice(0, r), t);
|
|
1737
|
+
})(), i = e[0] === "\n" || e[0] === " ", a, o;
|
|
1738
|
+
for (; o = n.exec(e);) {
|
|
1739
|
+
let e = o[1], n = o[2];
|
|
1740
|
+
a = n[0] === " ", r += e + (!i && !a && n !== "" ? "\n" : "") + k(n, t), i = a;
|
|
1741
|
+
}
|
|
1742
|
+
return r;
|
|
1743
|
+
}
|
|
1744
|
+
T(O, "foldString");
|
|
1745
|
+
function k(e, t) {
|
|
1746
|
+
if (e === "" || e[0] === " ") return e;
|
|
1747
|
+
let n = / [^ ]/g, r, i = 0, a, o = 0, s = 0, c = "";
|
|
1748
|
+
for (; r = n.exec(e);) s = r.index, s - i > t && (a = o > i ? o : s, c += "\n" + e.slice(i, a), i = a + 1), o = s;
|
|
1749
|
+
return c += "\n", e.length - i > t && o > i ? c += e.slice(i, o) + "\n" + e.slice(o + 1) : c += e.slice(i), c.slice(1);
|
|
1750
|
+
}
|
|
1751
|
+
T(k, "foldLine");
|
|
1752
|
+
function A(e) {
|
|
1753
|
+
let t = "", n = 0;
|
|
1754
|
+
for (let r = 0; r < e.length; n >= 65536 ? r += 2 : r++) {
|
|
1755
|
+
n = x(e, r);
|
|
1756
|
+
let i = o[n];
|
|
1757
|
+
!i && g(n) ? (t += e[r], n >= 65536 && (t += e[r + 1])) : t += i || u(n);
|
|
1758
|
+
}
|
|
1759
|
+
return t;
|
|
1760
|
+
}
|
|
1761
|
+
T(A, "escapeString");
|
|
1762
|
+
function j(e, t, n) {
|
|
1763
|
+
let r = "", i = e.tag;
|
|
1764
|
+
for (let i = 0, a = n.length; i < a; i += 1) {
|
|
1765
|
+
let a = n[i];
|
|
1766
|
+
e.replacer && (a = e.replacer.call(n, String(i), a)), (F(e, t, a, !1, !1) || a === void 0 && F(e, t, null, !1, !1)) && (r !== "" && (r += "," + (e.condenseFlow ? "" : " ")), r += e.dump);
|
|
1767
|
+
}
|
|
1768
|
+
e.tag = i, e.dump = "[" + r + "]";
|
|
1769
|
+
}
|
|
1770
|
+
T(j, "writeFlowSequence");
|
|
1771
|
+
function M(e, t, n, r) {
|
|
1772
|
+
let i = "", a = e.tag;
|
|
1773
|
+
for (let a = 0, o = n.length; a < o; a += 1) {
|
|
1774
|
+
let o = n[a];
|
|
1775
|
+
e.replacer && (o = e.replacer.call(n, String(a), o)), (F(e, t + 1, o, !0, !0, !1, !0) || o === void 0 && F(e, t + 1, null, !0, !0, !1, !0)) && ((!r || i !== "") && (i += p(e, t)), e.dump && e.dump.charCodeAt(0) === 10 ? i += "-" : i += "- ", i += e.dump);
|
|
1776
|
+
}
|
|
1777
|
+
e.tag = a, e.dump = i || "[]";
|
|
1778
|
+
}
|
|
1779
|
+
T(M, "writeBlockSequence");
|
|
1780
|
+
function N(e, t, n) {
|
|
1781
|
+
let r = "", i = e.tag, a = Object.keys(n);
|
|
1782
|
+
for (let i = 0, o = a.length; i < o; i += 1) {
|
|
1783
|
+
let o = "";
|
|
1784
|
+
r !== "" && (o += ", "), e.condenseFlow && (o += "\"");
|
|
1785
|
+
let s = a[i], c = n[s];
|
|
1786
|
+
e.replacer && (c = e.replacer.call(n, s, c)), F(e, t, s, !1, !1) && (e.dump.length > 1024 && (o += "? "), o += e.dump + (e.condenseFlow ? "\"" : "") + ":" + (e.condenseFlow ? "" : " "), F(e, t, c, !1, !1) && (o += e.dump, r += o));
|
|
1787
|
+
}
|
|
1788
|
+
e.tag = i, e.dump = "{" + r + "}";
|
|
1789
|
+
}
|
|
1790
|
+
T(N, "writeFlowMapping");
|
|
1791
|
+
function ee(e, n, r, i) {
|
|
1792
|
+
let a = "", o = e.tag, s = Object.keys(r);
|
|
1793
|
+
if (e.sortKeys === !0) s.sort();
|
|
1794
|
+
else if (typeof e.sortKeys == "function") s.sort(e.sortKeys);
|
|
1795
|
+
else if (e.sortKeys) throw new t("sortKeys must be a boolean or a function");
|
|
1796
|
+
for (let t = 0, o = s.length; t < o; t += 1) {
|
|
1797
|
+
let o = "";
|
|
1798
|
+
(!i || a !== "") && (o += p(e, n));
|
|
1799
|
+
let c = s[t], l = r[c];
|
|
1800
|
+
if (e.replacer && (l = e.replacer.call(r, c, l)), !F(e, n + 1, c, !0, !0, !0)) continue;
|
|
1801
|
+
let u = e.tag !== null && e.tag !== "?" || e.dump && e.dump.length > 1024;
|
|
1802
|
+
u && (e.dump && e.dump.charCodeAt(0) === 10 ? o += "?" : o += "? "), o += e.dump, u && (o += p(e, n)), F(e, n + 1, l, !0, u) && (e.dump && e.dump.charCodeAt(0) === 10 ? o += ":" : o += ": ", o += e.dump, a += o);
|
|
1803
|
+
}
|
|
1804
|
+
e.tag = o, e.dump = a || "{}";
|
|
1805
|
+
}
|
|
1806
|
+
T(ee, "writeBlockMapping");
|
|
1807
|
+
function P(e, n, a) {
|
|
1808
|
+
let o = a ? e.explicitTypes : e.implicitTypes;
|
|
1809
|
+
for (let s = 0, c = o.length; s < c; s += 1) {
|
|
1810
|
+
let c = o[s];
|
|
1811
|
+
if ((c.instanceOf || c.predicate) && (!c.instanceOf || typeof n == "object" && n instanceof c.instanceOf) && (!c.predicate || c.predicate(n))) {
|
|
1812
|
+
if (e.tag = a ? c.multi && c.representName ? c.representName(n) : c.tag : "?", c.represent) {
|
|
1813
|
+
let a = e.styleMap[c.tag] || c.defaultStyle, o;
|
|
1814
|
+
if (r.call(c.represent) === "[object Function]") o = c.represent(n, a);
|
|
1815
|
+
else if (i.call(c.represent, a)) o = c.represent[a](n, a);
|
|
1816
|
+
else throw new t("!<" + c.tag + "> tag resolver accepts not \"" + a + "\" style");
|
|
1817
|
+
e.dump = o;
|
|
1818
|
+
}
|
|
1819
|
+
return !0;
|
|
1820
|
+
}
|
|
1821
|
+
}
|
|
1822
|
+
return !1;
|
|
1823
|
+
}
|
|
1824
|
+
T(P, "detectType");
|
|
1825
|
+
function F(e, n, i, a, o, s, c) {
|
|
1826
|
+
e.tag = null, e.dump = i, P(e, i, !1) || P(e, i, !0);
|
|
1827
|
+
let l = r.call(e.dump), u = a;
|
|
1828
|
+
a &&= e.flowLevel < 0 || e.flowLevel > n;
|
|
1829
|
+
let d = l === "[object Object]" || l === "[object Array]", f, p;
|
|
1830
|
+
if (d && (f = e.duplicates.indexOf(i), p = f !== -1), (e.tag !== null && e.tag !== "?" || p || e.indent !== 2 && n > 0) && (o = !1), p && e.usedDuplicates[f]) e.dump = "*ref_" + f;
|
|
1831
|
+
else {
|
|
1832
|
+
if (d && p && !e.usedDuplicates[f] && (e.usedDuplicates[f] = !0), l === "[object Object]") a && Object.keys(e.dump).length !== 0 ? (ee(e, n, e.dump, o), p && (e.dump = "&ref_" + f + e.dump)) : (N(e, n, e.dump), p && (e.dump = "&ref_" + f + " " + e.dump));
|
|
1833
|
+
else if (l === "[object Array]") a && e.dump.length !== 0 ? (e.noArrayIndent && !c && n > 0 ? M(e, n - 1, e.dump, o) : M(e, n, e.dump, o), p && (e.dump = "&ref_" + f + e.dump)) : (j(e, n, e.dump), p && (e.dump = "&ref_" + f + " " + e.dump));
|
|
1834
|
+
else if (l === "[object String]") e.tag !== "?" && w(e, e.dump, n, s, u);
|
|
1835
|
+
else if (l === "[object Undefined]") return !1;
|
|
1836
|
+
else {
|
|
1837
|
+
if (e.skipInvalid) return !1;
|
|
1838
|
+
throw new t("unacceptable kind of an object to dump " + l);
|
|
1839
|
+
}
|
|
1840
|
+
if (e.tag !== null && e.tag !== "?") {
|
|
1841
|
+
let t = encodeURI(e.tag[0] === "!" ? e.tag.slice(1) : e.tag).replace(/!/g, "%21");
|
|
1842
|
+
t = e.tag[0] === "!" ? "!" + t : t.slice(0, 18) === "tag:yaml.org,2002:" ? "!!" + t.slice(18) : "!<" + t + ">", e.dump = t + " " + e.dump;
|
|
1843
|
+
}
|
|
1844
|
+
}
|
|
1845
|
+
return !0;
|
|
1846
|
+
}
|
|
1847
|
+
T(F, "writeNode");
|
|
1848
|
+
function I(e, t) {
|
|
1849
|
+
let n = [], r = [];
|
|
1850
|
+
L(e, n, r);
|
|
1851
|
+
let i = r.length;
|
|
1852
|
+
for (let e = 0; e < i; e += 1) t.duplicates.push(n[r[e]]);
|
|
1853
|
+
t.usedDuplicates = Array(i);
|
|
1854
|
+
}
|
|
1855
|
+
T(I, "getDuplicateReferences");
|
|
1856
|
+
function L(e, t, n) {
|
|
1857
|
+
if (typeof e == "object" && e) {
|
|
1858
|
+
let r = t.indexOf(e);
|
|
1859
|
+
if (r !== -1) n.indexOf(r) === -1 && n.push(r);
|
|
1860
|
+
else if (t.push(e), Array.isArray(e)) for (let r = 0, i = e.length; r < i; r += 1) L(e[r], t, n);
|
|
1861
|
+
else {
|
|
1862
|
+
let r = Object.keys(e);
|
|
1863
|
+
for (let i = 0, a = r.length; i < a; i += 1) L(e[r[i]], t, n);
|
|
1864
|
+
}
|
|
1865
|
+
}
|
|
1866
|
+
}
|
|
1867
|
+
T(L, "inspectNode");
|
|
1868
|
+
function R(e, t) {
|
|
1869
|
+
t ||= {};
|
|
1870
|
+
let n = new d(t);
|
|
1871
|
+
n.noRefs || I(e, n);
|
|
1872
|
+
let r = e;
|
|
1873
|
+
return n.replacer && (r = n.replacer.call({ "": r }, "", r)), F(n, 0, r, !0, !0) ? n.dump + "\n" : "";
|
|
1874
|
+
}
|
|
1875
|
+
return T(R, "dump2"), wn.dump = R, wn;
|
|
1876
|
+
}
|
|
1877
|
+
T(En, "requireDumper");
|
|
1878
|
+
var Dn;
|
|
1879
|
+
function On() {
|
|
1880
|
+
if (Dn) return U;
|
|
1881
|
+
Dn = 1;
|
|
1882
|
+
let e = Cn(), t = En();
|
|
1883
|
+
function n(e, t) {
|
|
1884
|
+
return function() {
|
|
1885
|
+
throw Error("Function yaml." + e + " is removed in js-yaml 4. Use yaml." + t + " instead, which is now safe by default.");
|
|
1886
|
+
};
|
|
1887
|
+
}
|
|
1888
|
+
return T(n, "renamed"), U.Type = K(), U.Schema = Ct(), U.FAILSAFE_SCHEMA = Ft(), U.JSON_SCHEMA = Xt(), U.CORE_SCHEMA = $t(), U.DEFAULT_SCHEMA = xn(), U.load = e.load, U.loadAll = e.loadAll, U.dump = t.dump, U.YAMLException = ht(), U.types = {
|
|
1889
|
+
binary: ln(),
|
|
1890
|
+
float: qt(),
|
|
1891
|
+
map: Mt(),
|
|
1892
|
+
null: Rt(),
|
|
1893
|
+
pairs: hn(),
|
|
1894
|
+
set: vn(),
|
|
1895
|
+
timestamp: nn(),
|
|
1896
|
+
bool: Vt(),
|
|
1897
|
+
int: Wt(),
|
|
1898
|
+
merge: on(),
|
|
1899
|
+
omap: fn(),
|
|
1900
|
+
seq: kt(),
|
|
1901
|
+
str: Et()
|
|
1902
|
+
}, U.safeLoad = n("safeLoad", "load"), U.safeLoadAll = n("safeLoadAll", "loadAll"), U.safeDump = n("safeDump", "dump"), U;
|
|
1903
|
+
}
|
|
1904
|
+
T(On, "requireJsYaml");
|
|
1905
|
+
var { Type: kn, Schema: An, FAILSAFE_SCHEMA: jn, JSON_SCHEMA: Mn, CORE_SCHEMA: Nn, DEFAULT_SCHEMA: Pn, load: Fn, loadAll: In, dump: Ln, YAMLException: Rn, types: zn, safeLoad: Bn, safeLoadAll: Vn, safeDump: Hn } = /* @__PURE__ */ ut(On()), Un = {
|
|
1906
|
+
common: le,
|
|
1907
|
+
getConfig: z,
|
|
1908
|
+
insertCluster: ye,
|
|
1909
|
+
insertEdge: Ce,
|
|
1910
|
+
insertEdgeLabel: xe,
|
|
1911
|
+
insertMarkers: De,
|
|
1912
|
+
insertNode: _e,
|
|
1913
|
+
interpolateToCurve: p,
|
|
1914
|
+
labelHelper: me,
|
|
1915
|
+
log: S,
|
|
1916
|
+
positionEdgeLabel: Se
|
|
1917
|
+
}, Wn = {}, Gn = /* @__PURE__ */ T((e) => {
|
|
1918
|
+
for (let t of e) Wn[t.name] = t;
|
|
1919
|
+
}, "registerLayoutLoaders");
|
|
1920
|
+
(/* @__PURE__ */ T(() => {
|
|
1921
|
+
Gn([
|
|
1922
|
+
{
|
|
1923
|
+
name: "dagre",
|
|
1924
|
+
loader: /* @__PURE__ */ T(async () => await import("./dagre-GXQ25YYZ-xHNAUTyG.js"), "loader")
|
|
1925
|
+
},
|
|
1926
|
+
{
|
|
1927
|
+
name: "swimlane",
|
|
1928
|
+
loader: /* @__PURE__ */ T(async () => await import("./swimlanes-42K2YHIH-BkSDcqDT.js"), "loader")
|
|
1929
|
+
},
|
|
1930
|
+
{
|
|
1931
|
+
name: "cose-bilkent",
|
|
1932
|
+
loader: /* @__PURE__ */ T(async () => await import("./cose-bilkent-JH36ORCC-_LyRKVqm.js"), "loader")
|
|
1933
|
+
}
|
|
1934
|
+
]);
|
|
1935
|
+
}, "registerDefaultLayoutLoaders"))();
|
|
1936
|
+
var Kn = /* @__PURE__ */ T(async (e, t) => {
|
|
1937
|
+
if (!(e.layoutAlgorithm in Wn)) throw Error(`Unknown layout algorithm: ${e.layoutAlgorithm}`);
|
|
1938
|
+
if (e.diagramId) for (let t of e.nodes) {
|
|
1939
|
+
let n = t.domId || t.id;
|
|
1940
|
+
t.domId = `${e.diagramId}-${n}`;
|
|
1941
|
+
}
|
|
1942
|
+
let n = Wn[e.layoutAlgorithm], r = await n.loader(), { theme: i, themeVariables: a } = e.config, { useGradient: o, gradientStart: s, gradientStop: c } = a, l = t.attr("id");
|
|
1943
|
+
if (t.append("defs").append("filter").attr("id", `${l}-drop-shadow`).attr("height", "130%").attr("width", "130%").append("feDropShadow").attr("dx", "4").attr("dy", "4").attr("stdDeviation", 0).attr("flood-opacity", "0.06").attr("flood-color", `${i?.includes("dark") ? "#FFFFFF" : "#000000"}`), t.append("defs").append("filter").attr("id", `${l}-drop-shadow-small`).attr("height", "150%").attr("width", "150%").append("feDropShadow").attr("dx", "2").attr("dy", "2").attr("stdDeviation", 0).attr("flood-opacity", "0.06").attr("flood-color", `${i?.includes("dark") ? "#FFFFFF" : "#000000"}`), o) {
|
|
1944
|
+
let e = t.append("linearGradient").attr("id", t.attr("id") + "-gradient").attr("gradientUnits", "objectBoundingBox").attr("x1", "0%").attr("y1", "0%").attr("x2", "100%").attr("y2", "0%");
|
|
1945
|
+
e.append("svg:stop").attr("offset", "0%").attr("stop-color", s).attr("stop-opacity", 1), e.append("svg:stop").attr("offset", "100%").attr("stop-color", c).attr("stop-opacity", 1);
|
|
1946
|
+
}
|
|
1947
|
+
return r.render(e, t, Un, { algorithm: n.algorithm });
|
|
1948
|
+
}, "render"), qn = /* @__PURE__ */ T((e = "", { fallback: t = "dagre" } = {}) => {
|
|
1949
|
+
if (e in Wn) return e;
|
|
1950
|
+
if (t in Wn) return S.warn(`Layout algorithm ${e} is not registered. Using ${t} as fallback.`), t;
|
|
1951
|
+
throw Error(`Both layout algorithms ${e} and ${t} are not registered.`);
|
|
1952
|
+
}, "getRegisteredLayoutAlgorithm"), Jn = "comm", Yn = "rule", Xn = "decl", Zn = "@import", Qn = "@namespace", $n = "@keyframes", er = "@layer", tr = Math.abs, nr = String.fromCharCode;
|
|
1953
|
+
function rr(e) {
|
|
1954
|
+
return e.trim();
|
|
1955
|
+
}
|
|
1956
|
+
function ir(e, t, n) {
|
|
1957
|
+
return e.replace(t, n);
|
|
1958
|
+
}
|
|
1959
|
+
function ar(e, t) {
|
|
1960
|
+
return e.charCodeAt(t) | 0;
|
|
1961
|
+
}
|
|
1962
|
+
function or(e, t, n) {
|
|
1963
|
+
return e.slice(t, n);
|
|
1964
|
+
}
|
|
1965
|
+
function q(e) {
|
|
1966
|
+
return e.length;
|
|
1967
|
+
}
|
|
1968
|
+
function sr(e) {
|
|
1969
|
+
return e.length;
|
|
1970
|
+
}
|
|
1971
|
+
function cr(e, t) {
|
|
1972
|
+
return t.push(e), e;
|
|
1973
|
+
}
|
|
1974
|
+
//#endregion
|
|
1975
|
+
//#region ../node_modules/.pnpm/stylis@4.4.0/node_modules/stylis/src/Tokenizer.js
|
|
1976
|
+
var lr = 1, ur = 1, dr = 0, J = 0, Y = 0, fr = "";
|
|
1977
|
+
function pr(e, t, n, r, i, a, o, s) {
|
|
1978
|
+
return {
|
|
1979
|
+
value: e,
|
|
1980
|
+
root: t,
|
|
1981
|
+
parent: n,
|
|
1982
|
+
type: r,
|
|
1983
|
+
props: i,
|
|
1984
|
+
children: a,
|
|
1985
|
+
line: lr,
|
|
1986
|
+
column: ur,
|
|
1987
|
+
length: o,
|
|
1988
|
+
return: "",
|
|
1989
|
+
siblings: s
|
|
1990
|
+
};
|
|
1991
|
+
}
|
|
1992
|
+
function mr() {
|
|
1993
|
+
return Y;
|
|
1994
|
+
}
|
|
1995
|
+
function hr() {
|
|
1996
|
+
return Y = J > 0 ? ar(fr, --J) : 0, ur--, Y === 10 && (ur = 1, lr--), Y;
|
|
1997
|
+
}
|
|
1998
|
+
function X() {
|
|
1999
|
+
return Y = J < dr ? ar(fr, J++) : 0, ur++, Y === 10 && (ur = 1, lr++), Y;
|
|
2000
|
+
}
|
|
2001
|
+
function Z() {
|
|
2002
|
+
return ar(fr, J);
|
|
2003
|
+
}
|
|
2004
|
+
function gr() {
|
|
2005
|
+
return J;
|
|
2006
|
+
}
|
|
2007
|
+
function _r(e, t) {
|
|
2008
|
+
return or(fr, e, t);
|
|
2009
|
+
}
|
|
2010
|
+
function vr(e) {
|
|
2011
|
+
switch (e) {
|
|
2012
|
+
case 0:
|
|
2013
|
+
case 9:
|
|
2014
|
+
case 10:
|
|
2015
|
+
case 13:
|
|
2016
|
+
case 32: return 5;
|
|
2017
|
+
case 33:
|
|
2018
|
+
case 43:
|
|
2019
|
+
case 44:
|
|
2020
|
+
case 47:
|
|
2021
|
+
case 62:
|
|
2022
|
+
case 64:
|
|
2023
|
+
case 126:
|
|
2024
|
+
case 59:
|
|
2025
|
+
case 123:
|
|
2026
|
+
case 125: return 4;
|
|
2027
|
+
case 58: return 3;
|
|
2028
|
+
case 34:
|
|
2029
|
+
case 39:
|
|
2030
|
+
case 40:
|
|
2031
|
+
case 91: return 2;
|
|
2032
|
+
case 41:
|
|
2033
|
+
case 93: return 1;
|
|
2034
|
+
}
|
|
2035
|
+
return 0;
|
|
2036
|
+
}
|
|
2037
|
+
function yr(e) {
|
|
2038
|
+
return lr = ur = 1, dr = q(fr = e), J = 0, [];
|
|
2039
|
+
}
|
|
2040
|
+
function br(e) {
|
|
2041
|
+
return fr = "", e;
|
|
2042
|
+
}
|
|
2043
|
+
function xr(e) {
|
|
2044
|
+
return rr(_r(J - 1, wr(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
|
|
2045
|
+
}
|
|
2046
|
+
function Sr(e) {
|
|
2047
|
+
for (; (Y = Z()) && Y < 33;) X();
|
|
2048
|
+
return vr(e) > 2 || vr(Y) > 3 ? "" : " ";
|
|
2049
|
+
}
|
|
2050
|
+
function Cr(e, t) {
|
|
2051
|
+
for (; --t && X() && !(Y < 48 || Y > 102 || Y > 57 && Y < 65 || Y > 70 && Y < 97););
|
|
2052
|
+
return _r(e, gr() + (t < 6 && Z() == 32 && X() == 32));
|
|
2053
|
+
}
|
|
2054
|
+
function wr(e) {
|
|
2055
|
+
for (; X();) switch (Y) {
|
|
2056
|
+
case e: return J;
|
|
2057
|
+
case 34:
|
|
2058
|
+
case 39:
|
|
2059
|
+
e !== 34 && e !== 39 && wr(Y);
|
|
2060
|
+
break;
|
|
2061
|
+
case 40:
|
|
2062
|
+
e === 41 && wr(e);
|
|
2063
|
+
break;
|
|
2064
|
+
case 92: X();
|
|
2065
|
+
}
|
|
2066
|
+
return J;
|
|
2067
|
+
}
|
|
2068
|
+
function Tr(e, t) {
|
|
2069
|
+
for (; X() && e + Y !== 57 && (e + Y !== 84 || Z() !== 47););
|
|
2070
|
+
return "/*" + _r(t, J - 1) + "*" + nr(e === 47 ? e : X());
|
|
2071
|
+
}
|
|
2072
|
+
function Er(e) {
|
|
2073
|
+
for (; !vr(Z());) X();
|
|
2074
|
+
return _r(e, J);
|
|
2075
|
+
}
|
|
2076
|
+
//#endregion
|
|
2077
|
+
//#region ../node_modules/.pnpm/stylis@4.4.0/node_modules/stylis/src/Parser.js
|
|
2078
|
+
function Dr(e) {
|
|
2079
|
+
return br(Or("", null, null, null, [""], e = yr(e), 0, [0], e));
|
|
2080
|
+
}
|
|
2081
|
+
function Or(e, t, n, r, i, a, o, s, c) {
|
|
2082
|
+
for (var l = 0, u = 0, d = o, f = 0, p = 0, m = 0, h = 1, g = 1, _ = 1, v = 0, y = 0, b = "", x = i, S = a, C = r, w = b; g;) switch (m = y, y = X()) {
|
|
2083
|
+
case 40:
|
|
2084
|
+
m != 108 && ar(w, d - 1) == 58 ? (v++, w += "(") : w += xr(y);
|
|
2085
|
+
break;
|
|
2086
|
+
case 41:
|
|
2087
|
+
v--, w += ")";
|
|
2088
|
+
break;
|
|
2089
|
+
case 34:
|
|
2090
|
+
case 39:
|
|
2091
|
+
case 91:
|
|
2092
|
+
w += xr(y);
|
|
2093
|
+
break;
|
|
2094
|
+
case 9:
|
|
2095
|
+
case 10:
|
|
2096
|
+
case 13:
|
|
2097
|
+
case 32:
|
|
2098
|
+
if (v > 0) {
|
|
2099
|
+
w += nr(y);
|
|
2100
|
+
break;
|
|
2101
|
+
}
|
|
2102
|
+
w += Sr(m);
|
|
2103
|
+
break;
|
|
2104
|
+
case 92:
|
|
2105
|
+
w += Cr(gr() - 1, 7);
|
|
2106
|
+
continue;
|
|
2107
|
+
case 47:
|
|
2108
|
+
switch (Z()) {
|
|
2109
|
+
case 42:
|
|
2110
|
+
case 47:
|
|
2111
|
+
cr(Ar(Tr(X(), gr()), t, n, c), c), (vr(m || 1) == 5 || vr(Z() || 1) == 5) && q(w) && or(w, -1, void 0) !== " " && (w += " ");
|
|
2112
|
+
break;
|
|
2113
|
+
default: w += "/";
|
|
2114
|
+
}
|
|
2115
|
+
break;
|
|
2116
|
+
case 123 * h: s[l++] = q(w) * _;
|
|
2117
|
+
case 125 * h:
|
|
2118
|
+
case 59:
|
|
2119
|
+
case 0:
|
|
2120
|
+
if (v > 0 && y) {
|
|
2121
|
+
w += nr(y);
|
|
2122
|
+
break;
|
|
2123
|
+
}
|
|
2124
|
+
switch (y) {
|
|
2125
|
+
case 0:
|
|
2126
|
+
case 125: g = 0;
|
|
2127
|
+
case 59 + u:
|
|
2128
|
+
_ == -1 && (w = ir(w, /\f/g, "")), p > 0 && (q(w) - d || h === 0) && cr(p > 32 ? jr(w + ";", r, n, d - 1, c) : jr(ir(w, " ", "") + ";", r, n, d - 2, c), c);
|
|
2129
|
+
break;
|
|
2130
|
+
case 59: w += ";";
|
|
2131
|
+
default: if (cr(C = kr(w, t, n, l, u, i, s, b, x = [], S = [], d, a), a), y === 123) {
|
|
2132
|
+
if (u === 0) Or(w, t, C, C, x, a, d, s, S);
|
|
2133
|
+
else {
|
|
2134
|
+
switch (f) {
|
|
2135
|
+
case 99: if (ar(w, 3) === 110) break;
|
|
2136
|
+
case 108: if (ar(w, 2) === 97) break;
|
|
2137
|
+
default: u = 0;
|
|
2138
|
+
case 100:
|
|
2139
|
+
case 109:
|
|
2140
|
+
case 115:
|
|
2141
|
+
}
|
|
2142
|
+
u ? Or(e, C, C, r && cr(kr(e, C, C, 0, 0, i, s, b, i, x = [], d, S), S), i, S, d, s, r ? x : S) : Or(w, C, C, C, [""], S, 0, s, S);
|
|
2143
|
+
}
|
|
2144
|
+
}
|
|
2145
|
+
}
|
|
2146
|
+
l = u = p = 0, h = _ = 1, b = w = "", d = o;
|
|
2147
|
+
break;
|
|
2148
|
+
case 58: d = 1 + q(w), p = m;
|
|
2149
|
+
default:
|
|
2150
|
+
if (h < 1) {
|
|
2151
|
+
if (y == 123) --h;
|
|
2152
|
+
else if (y == 125 && h++ == 0 && hr() == 125) continue;
|
|
2153
|
+
}
|
|
2154
|
+
switch (w += nr(y), y * h) {
|
|
2155
|
+
case 38:
|
|
2156
|
+
_ = u > 0 ? 1 : (w += "\f", -1);
|
|
2157
|
+
break;
|
|
2158
|
+
case 44:
|
|
2159
|
+
if (v > 0) break;
|
|
2160
|
+
s[l++] = (q(w) - 1) * _, _ = 1;
|
|
2161
|
+
break;
|
|
2162
|
+
case 64:
|
|
2163
|
+
Z() === 45 && (w += xr(X())), f = Z(), u = d = q(b = w += Er(gr())), y++;
|
|
2164
|
+
break;
|
|
2165
|
+
case 45: m === 45 && q(w) == 2 && (h = 0);
|
|
2166
|
+
}
|
|
2167
|
+
}
|
|
2168
|
+
return a;
|
|
2169
|
+
}
|
|
2170
|
+
function kr(e, t, n, r, i, a, o, s, c, l, u, d) {
|
|
2171
|
+
for (var f = i - 1, p = i === 0 ? a : [""], m = sr(p), h = 0, g = 0, _ = 0; h < r; ++h) for (var v = 0, y = or(e, f + 1, f = tr(g = o[h])), b = e; v < m; ++v) (b = rr(g > 0 ? p[v] + " " + y : ir(y, /&\f/g, p[v]))) && (c[_++] = b);
|
|
2172
|
+
return pr(e, t, n, i === 0 ? Yn : s, c, l, u, d);
|
|
2173
|
+
}
|
|
2174
|
+
function Ar(e, t, n, r) {
|
|
2175
|
+
return pr(e, t, n, Jn, nr(mr()), or(e, 2, -2), 0, r);
|
|
2176
|
+
}
|
|
2177
|
+
function jr(e, t, n, r, i) {
|
|
2178
|
+
return pr(e, t, n, Xn, or(e, 0, r), or(e, r + 1, -1), r, i);
|
|
2179
|
+
}
|
|
2180
|
+
//#endregion
|
|
2181
|
+
//#region ../node_modules/.pnpm/stylis@4.4.0/node_modules/stylis/src/Serializer.js
|
|
2182
|
+
function Mr(e, t) {
|
|
2183
|
+
for (var n = "", r = 0; r < e.length; r++) n += t(e[r], r, e, t) || "";
|
|
2184
|
+
return n;
|
|
2185
|
+
}
|
|
2186
|
+
function Nr(e, t, n, r) {
|
|
2187
|
+
switch (e.type) {
|
|
2188
|
+
case er: if (e.children.length) break;
|
|
2189
|
+
case Zn:
|
|
2190
|
+
case Qn:
|
|
2191
|
+
case Xn: return e.return = e.return || e.value;
|
|
2192
|
+
case Jn: return "";
|
|
2193
|
+
case $n: return e.return = e.value + "{" + Mr(e.children, r) + "}";
|
|
2194
|
+
case Yn: if (!q(e.value = e.props.join(","))) return "";
|
|
2195
|
+
}
|
|
2196
|
+
return q(n = Mr(e.children, r)) ? e.return = e.value + "{" + n + "}" : "";
|
|
2197
|
+
}
|
|
2198
|
+
//#endregion
|
|
2199
|
+
//#region ../node_modules/.pnpm/stylis@4.4.0/node_modules/stylis/src/Middleware.js
|
|
2200
|
+
function Pr(e) {
|
|
2201
|
+
var t = sr(e);
|
|
2202
|
+
return function(n, r, i, a) {
|
|
2203
|
+
for (var o = "", s = 0; s < t; s++) o += e[s](n, r, i, a) || "";
|
|
2204
|
+
return o;
|
|
2205
|
+
};
|
|
2206
|
+
}
|
|
2207
|
+
//#endregion
|
|
2208
|
+
//#region ../node_modules/.pnpm/mermaid@11.17.2/node_modules/mermaid/dist/mermaid.core.mjs
|
|
2209
|
+
var Fr = "c4", Ir = {
|
|
2210
|
+
id: Fr,
|
|
2211
|
+
detector: /* @__PURE__ */ T((e) => /^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(e), "detector"),
|
|
2212
|
+
loader: /* @__PURE__ */ T(async () => {
|
|
2213
|
+
let { diagram: e } = await import("./c4Diagram-7LVT6UL2-DcLsbQmR.js");
|
|
2214
|
+
return {
|
|
2215
|
+
id: Fr,
|
|
2216
|
+
diagram: e
|
|
2217
|
+
};
|
|
2218
|
+
}, "loader")
|
|
2219
|
+
}, Lr = "flowchart", Rr = {
|
|
2220
|
+
id: Lr,
|
|
2221
|
+
detector: /* @__PURE__ */ T((e, t) => t?.flowchart?.defaultRenderer === "dagre-wrapper" || t?.flowchart?.defaultRenderer === "elk" ? !1 : /^\s*graph/.test(e), "detector"),
|
|
2222
|
+
loader: /* @__PURE__ */ T(async () => {
|
|
2223
|
+
let { diagram: e } = await import("./flowDiagram-HODETNUW-6dMdB8pR.js");
|
|
2224
|
+
return {
|
|
2225
|
+
id: Lr,
|
|
2226
|
+
diagram: e
|
|
2227
|
+
};
|
|
2228
|
+
}, "loader")
|
|
2229
|
+
}, zr = "flowchart-v2", Br = {
|
|
2230
|
+
id: zr,
|
|
2231
|
+
detector: /* @__PURE__ */ T((e, t) => t?.flowchart?.defaultRenderer !== "dagre-d3" && (t?.flowchart?.defaultRenderer === "elk" && (t.layout = "elk"), /^\s*graph/.test(e) && t?.flowchart?.defaultRenderer === "dagre-wrapper" ? !0 : /^\s*flowchart/.test(e)), "detector"),
|
|
2232
|
+
loader: /* @__PURE__ */ T(async () => {
|
|
2233
|
+
let { diagram: e } = await import("./flowDiagram-HODETNUW-6dMdB8pR.js");
|
|
2234
|
+
return {
|
|
2235
|
+
id: zr,
|
|
2236
|
+
diagram: e
|
|
2237
|
+
};
|
|
2238
|
+
}, "loader")
|
|
2239
|
+
}, Vr = "swimlane", Hr = {
|
|
2240
|
+
id: Vr,
|
|
2241
|
+
detector: /* @__PURE__ */ T((e) => /^\s*swimlane-beta\b/.test(e), "detector"),
|
|
2242
|
+
loader: /* @__PURE__ */ T(async () => {
|
|
2243
|
+
let { diagram: e } = await import("./swimlanesDiagram-VR7AAH4N-D_nFQfRc.js");
|
|
2244
|
+
return {
|
|
2245
|
+
id: Vr,
|
|
2246
|
+
diagram: e
|
|
2247
|
+
};
|
|
2248
|
+
}, "loader")
|
|
2249
|
+
}, Ur = "er", Wr = {
|
|
2250
|
+
id: Ur,
|
|
2251
|
+
detector: /* @__PURE__ */ T((e) => /^\s*erDiagram/.test(e), "detector"),
|
|
2252
|
+
loader: /* @__PURE__ */ T(async () => {
|
|
2253
|
+
let { diagram: e } = await import("./erDiagram-RLTQ6QDP-DhzKiYHc.js");
|
|
2254
|
+
return {
|
|
2255
|
+
id: Ur,
|
|
2256
|
+
diagram: e
|
|
2257
|
+
};
|
|
2258
|
+
}, "loader")
|
|
2259
|
+
}, Gr = "gitGraph", Kr = {
|
|
2260
|
+
id: Gr,
|
|
2261
|
+
detector: /* @__PURE__ */ T((e) => /^\s*gitGraph/.test(e), "detector"),
|
|
2262
|
+
loader: /* @__PURE__ */ T(async () => {
|
|
2263
|
+
let { diagram: e } = await import("./gitGraphDiagram-WWUBYQGX-BMf0iKi1.js");
|
|
2264
|
+
return {
|
|
2265
|
+
id: Gr,
|
|
2266
|
+
diagram: e
|
|
2267
|
+
};
|
|
2268
|
+
}, "loader")
|
|
2269
|
+
}, qr = "gantt", Jr = {
|
|
2270
|
+
id: qr,
|
|
2271
|
+
detector: /* @__PURE__ */ T((e) => /^\s*gantt/.test(e), "detector"),
|
|
2272
|
+
loader: /* @__PURE__ */ T(async () => {
|
|
2273
|
+
let { diagram: e } = await import("./ganttDiagram-EL5Y4UJY-DbzEBLbl.js");
|
|
2274
|
+
return {
|
|
2275
|
+
id: qr,
|
|
2276
|
+
diagram: e
|
|
2277
|
+
};
|
|
2278
|
+
}, "loader")
|
|
2279
|
+
}, Yr = "info", Xr = {
|
|
2280
|
+
id: Yr,
|
|
2281
|
+
detector: /* @__PURE__ */ T((e) => /^\s*info/.test(e), "detector"),
|
|
2282
|
+
loader: /* @__PURE__ */ T(async () => {
|
|
2283
|
+
let { diagram: e } = await import("./infoDiagram-27XIBGKW-BagtCX_5.js");
|
|
2284
|
+
return {
|
|
2285
|
+
id: Yr,
|
|
2286
|
+
diagram: e
|
|
2287
|
+
};
|
|
2288
|
+
}, "loader")
|
|
2289
|
+
}, Zr = "pie", Qr = {
|
|
2290
|
+
id: Zr,
|
|
2291
|
+
detector: /* @__PURE__ */ T((e) => /^\s*pie/.test(e), "detector"),
|
|
2292
|
+
loader: /* @__PURE__ */ T(async () => {
|
|
2293
|
+
let { diagram: e } = await import("./pieDiagram-E7YTZNPT-CCtX0oCK.js");
|
|
2294
|
+
return {
|
|
2295
|
+
id: Zr,
|
|
2296
|
+
diagram: e
|
|
2297
|
+
};
|
|
2298
|
+
}, "loader")
|
|
2299
|
+
}, $r = "quadrantChart", ei = {
|
|
2300
|
+
id: $r,
|
|
2301
|
+
detector: /* @__PURE__ */ T((e) => /^\s*quadrantChart/.test(e), "detector"),
|
|
2302
|
+
loader: /* @__PURE__ */ T(async () => {
|
|
2303
|
+
let { diagram: e } = await import("./quadrantDiagram-AXDQQJYC-DftINo6g.js");
|
|
2304
|
+
return {
|
|
2305
|
+
id: $r,
|
|
2306
|
+
diagram: e
|
|
2307
|
+
};
|
|
2308
|
+
}, "loader")
|
|
2309
|
+
}, ti = "xychart", ni = {
|
|
2310
|
+
id: ti,
|
|
2311
|
+
detector: /* @__PURE__ */ T((e) => /^\s*xychart(-beta)?/.test(e), "detector"),
|
|
2312
|
+
loader: /* @__PURE__ */ T(async () => {
|
|
2313
|
+
let { diagram: e } = await import("./xychartDiagram-S5SC5T6Z-DL2E3K8-.js");
|
|
2314
|
+
return {
|
|
2315
|
+
id: ti,
|
|
2316
|
+
diagram: e
|
|
2317
|
+
};
|
|
2318
|
+
}, "loader")
|
|
2319
|
+
}, ri = "requirement", ii = {
|
|
2320
|
+
id: ri,
|
|
2321
|
+
detector: /* @__PURE__ */ T((e) => /^\s*requirement(Diagram)?/.test(e), "detector"),
|
|
2322
|
+
loader: /* @__PURE__ */ T(async () => {
|
|
2323
|
+
let { diagram: e } = await import("./requirementDiagram-BXWQKSXE-0pmmxL6_.js");
|
|
2324
|
+
return {
|
|
2325
|
+
id: ri,
|
|
2326
|
+
diagram: e
|
|
2327
|
+
};
|
|
2328
|
+
}, "loader")
|
|
2329
|
+
}, ai = "sequence", oi = {
|
|
2330
|
+
id: ai,
|
|
2331
|
+
detector: /* @__PURE__ */ T((e) => /^\s*sequenceDiagram/.test(e), "detector"),
|
|
2332
|
+
loader: /* @__PURE__ */ T(async () => {
|
|
2333
|
+
let { diagram: e } = await import("./sequenceDiagram-WJ2MYXX4-DB-ChWwU.js");
|
|
2334
|
+
return {
|
|
2335
|
+
id: ai,
|
|
2336
|
+
diagram: e
|
|
2337
|
+
};
|
|
2338
|
+
}, "loader")
|
|
2339
|
+
}, si = "class", ci = {
|
|
2340
|
+
id: si,
|
|
2341
|
+
detector: /* @__PURE__ */ T((e, t) => t?.class?.defaultRenderer !== "dagre-wrapper" && /^\s*classDiagram/.test(e), "detector"),
|
|
2342
|
+
loader: /* @__PURE__ */ T(async () => {
|
|
2343
|
+
let { diagram: e } = await import("./classDiagram-ZZMXUADV-Fe-V14Sc.js");
|
|
2344
|
+
return {
|
|
2345
|
+
id: si,
|
|
2346
|
+
diagram: e
|
|
2347
|
+
};
|
|
2348
|
+
}, "loader")
|
|
2349
|
+
}, li = "classDiagram", ui = {
|
|
2350
|
+
id: li,
|
|
2351
|
+
detector: /* @__PURE__ */ T((e, t) => /^\s*classDiagram/.test(e) && t?.class?.defaultRenderer === "dagre-wrapper" ? !0 : /^\s*classDiagram-v2/.test(e), "detector"),
|
|
2352
|
+
loader: /* @__PURE__ */ T(async () => {
|
|
2353
|
+
let { diagram: e } = await import("./classDiagram-v2-VYDZK3BY-xTDg7lOs.js");
|
|
2354
|
+
return {
|
|
2355
|
+
id: li,
|
|
2356
|
+
diagram: e
|
|
2357
|
+
};
|
|
2358
|
+
}, "loader")
|
|
2359
|
+
}, di = "state", fi = {
|
|
2360
|
+
id: di,
|
|
2361
|
+
detector: /* @__PURE__ */ T((e, t) => t?.state?.defaultRenderer !== "dagre-wrapper" && /^\s*stateDiagram/.test(e), "detector"),
|
|
2362
|
+
loader: /* @__PURE__ */ T(async () => {
|
|
2363
|
+
let { diagram: e } = await import("./stateDiagram-D77RDMKH-orN6AwMx.js");
|
|
2364
|
+
return {
|
|
2365
|
+
id: di,
|
|
2366
|
+
diagram: e
|
|
2367
|
+
};
|
|
2368
|
+
}, "loader")
|
|
2369
|
+
}, pi = "stateDiagram", mi = {
|
|
2370
|
+
id: pi,
|
|
2371
|
+
detector: /* @__PURE__ */ T((e, t) => !!(/^\s*stateDiagram-v2/.test(e) || /^\s*stateDiagram/.test(e) && t?.state?.defaultRenderer === "dagre-wrapper"), "detector"),
|
|
2372
|
+
loader: /* @__PURE__ */ T(async () => {
|
|
2373
|
+
let { diagram: e } = await import("./stateDiagram-v2-MP3YSRHH-o05_rJN8.js");
|
|
2374
|
+
return {
|
|
2375
|
+
id: pi,
|
|
2376
|
+
diagram: e
|
|
2377
|
+
};
|
|
2378
|
+
}, "loader")
|
|
2379
|
+
}, hi = "journey", gi = {
|
|
2380
|
+
id: hi,
|
|
2381
|
+
detector: /* @__PURE__ */ T((e) => /^\s*journey/.test(e), "detector"),
|
|
2382
|
+
loader: /* @__PURE__ */ T(async () => {
|
|
2383
|
+
let { diagram: e } = await import("./journeyDiagram-3NMN7TZE-D2LcKDUO.js");
|
|
2384
|
+
return {
|
|
2385
|
+
id: hi,
|
|
2386
|
+
diagram: e
|
|
2387
|
+
};
|
|
2388
|
+
}, "loader")
|
|
2389
|
+
}, _i = { draw: /* @__PURE__ */ T((e, t, n) => {
|
|
2390
|
+
S.debug("rendering svg for syntax error\n");
|
|
2391
|
+
let r = Ae(t), i = r.append("g");
|
|
2392
|
+
r.attr("viewBox", "0 0 2412 512"), te(r, 100, 512, !0), i.append("path").attr("class", "error-icon").attr("d", "m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"), i.append("path").attr("class", "error-icon").attr("d", "m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"), i.append("path").attr("class", "error-icon").attr("d", "m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"), i.append("path").attr("class", "error-icon").attr("d", "m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"), i.append("path").attr("class", "error-icon").attr("d", "m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"), i.append("path").attr("class", "error-icon").attr("d", "m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"), i.append("text").attr("class", "error-text").attr("x", 1440).attr("y", 250).attr("font-size", "150px").style("text-anchor", "middle").text("Syntax error in text"), i.append("text").attr("class", "error-text").attr("x", 1250).attr("y", 400).attr("font-size", "100px").style("text-anchor", "middle").text(`mermaid version ${n}`);
|
|
2393
|
+
}, "draw") }, vi = _i, yi = {
|
|
2394
|
+
db: {},
|
|
2395
|
+
renderer: _i,
|
|
2396
|
+
parser: { parse: /* @__PURE__ */ T(() => {}, "parse") }
|
|
2397
|
+
}, bi = "flowchart-elk", xi = {
|
|
2398
|
+
id: bi,
|
|
2399
|
+
detector: /* @__PURE__ */ T((e, t = {}) => /^\s*flowchart-elk/.test(e) || /^\s*(flowchart|graph)/.test(e) && t?.flowchart?.defaultRenderer === "elk" ? (t.layout = "elk", !0) : !1, "detector"),
|
|
2400
|
+
loader: /* @__PURE__ */ T(async () => {
|
|
2401
|
+
let { diagram: e } = await import("./flowDiagram-HODETNUW-6dMdB8pR.js");
|
|
2402
|
+
return {
|
|
2403
|
+
id: bi,
|
|
2404
|
+
diagram: e
|
|
2405
|
+
};
|
|
2406
|
+
}, "loader")
|
|
2407
|
+
}, Si = "timeline", Ci = {
|
|
2408
|
+
id: Si,
|
|
2409
|
+
detector: /* @__PURE__ */ T((e) => /^\s*timeline/.test(e), "detector"),
|
|
2410
|
+
loader: /* @__PURE__ */ T(async () => {
|
|
2411
|
+
let { diagram: e } = await import("./timeline-definition-24CTP7MA-BuqJUIRZ.js");
|
|
2412
|
+
return {
|
|
2413
|
+
id: Si,
|
|
2414
|
+
diagram: e
|
|
2415
|
+
};
|
|
2416
|
+
}, "loader")
|
|
2417
|
+
}, wi = "mindmap", Ti = {
|
|
2418
|
+
id: wi,
|
|
2419
|
+
detector: /* @__PURE__ */ T((e) => /^\s*mindmap/.test(e), "detector"),
|
|
2420
|
+
loader: /* @__PURE__ */ T(async () => {
|
|
2421
|
+
let { diagram: e } = await import("./mindmap-definition-YA3MSWOX-Cgvojw3y.js");
|
|
2422
|
+
return {
|
|
2423
|
+
id: wi,
|
|
2424
|
+
diagram: e
|
|
2425
|
+
};
|
|
2426
|
+
}, "loader")
|
|
2427
|
+
}, Ei = "kanban", Di = {
|
|
2428
|
+
id: Ei,
|
|
2429
|
+
detector: /* @__PURE__ */ T((e) => /^\s*kanban/.test(e), "detector"),
|
|
2430
|
+
loader: /* @__PURE__ */ T(async () => {
|
|
2431
|
+
let { diagram: e } = await import("./kanban-definition-UXKFOSKX-BxwkbBI_.js");
|
|
2432
|
+
return {
|
|
2433
|
+
id: Ei,
|
|
2434
|
+
diagram: e
|
|
2435
|
+
};
|
|
2436
|
+
}, "loader")
|
|
2437
|
+
}, Oi = "sankey", ki = {
|
|
2438
|
+
id: Oi,
|
|
2439
|
+
detector: /* @__PURE__ */ T((e) => /^\s*sankey(-beta)?/.test(e), "detector"),
|
|
2440
|
+
loader: /* @__PURE__ */ T(async () => {
|
|
2441
|
+
let { diagram: e } = await import("./sankeyDiagram-P5KCCOFB-CDKR5TJH.js");
|
|
2442
|
+
return {
|
|
2443
|
+
id: Oi,
|
|
2444
|
+
diagram: e
|
|
2445
|
+
};
|
|
2446
|
+
}, "loader")
|
|
2447
|
+
}, Ai = "packet", ji = {
|
|
2448
|
+
id: Ai,
|
|
2449
|
+
detector: /* @__PURE__ */ T((e) => /^\s*packet(-beta)?/.test(e), "detector"),
|
|
2450
|
+
loader: /* @__PURE__ */ T(async () => {
|
|
2451
|
+
let { diagram: e } = await import("./diagram-Z3DM3KII--KLDR9Pl.js");
|
|
2452
|
+
return {
|
|
2453
|
+
id: Ai,
|
|
2454
|
+
diagram: e
|
|
2455
|
+
};
|
|
2456
|
+
}, "loader")
|
|
2457
|
+
}, Mi = "radar", Ni = {
|
|
2458
|
+
id: Mi,
|
|
2459
|
+
detector: /* @__PURE__ */ T((e) => /^\s*radar-beta/.test(e), "detector"),
|
|
2460
|
+
loader: /* @__PURE__ */ T(async () => {
|
|
2461
|
+
let { diagram: e } = await import("./diagram-UQ7AKVKN-D1sq5FoZ.js");
|
|
2462
|
+
return {
|
|
2463
|
+
id: Mi,
|
|
2464
|
+
diagram: e
|
|
2465
|
+
};
|
|
2466
|
+
}, "loader")
|
|
2467
|
+
}, Pi = "block", Fi = {
|
|
2468
|
+
id: Pi,
|
|
2469
|
+
detector: /* @__PURE__ */ T((e) => /^\s*block(-beta)?/.test(e), "detector"),
|
|
2470
|
+
loader: /* @__PURE__ */ T(async () => {
|
|
2471
|
+
let { diagram: e } = await import("./blockDiagram-I7D4REHJ-BbXEXJRu.js");
|
|
2472
|
+
return {
|
|
2473
|
+
id: Pi,
|
|
2474
|
+
diagram: e
|
|
2475
|
+
};
|
|
2476
|
+
}, "loader")
|
|
2477
|
+
}, Ii = "treeView", Li = {
|
|
2478
|
+
id: Ii,
|
|
2479
|
+
detector: /* @__PURE__ */ T((e) => /^\s*treeView-beta/.test(e), "detector"),
|
|
2480
|
+
loader: /* @__PURE__ */ T(async () => {
|
|
2481
|
+
let { diagram: e } = await import("./diagram-S7CK7UJ4-Bt1rPbAx.js");
|
|
2482
|
+
return {
|
|
2483
|
+
id: Ii,
|
|
2484
|
+
diagram: e
|
|
2485
|
+
};
|
|
2486
|
+
}, "loader")
|
|
2487
|
+
}, Ri = "architecture", zi = {
|
|
2488
|
+
id: Ri,
|
|
2489
|
+
detector: /* @__PURE__ */ T((e) => /^\s*architecture/.test(e), "detector"),
|
|
2490
|
+
loader: /* @__PURE__ */ T(async () => {
|
|
2491
|
+
let { diagram: e } = await import("./architectureDiagram-5GKGNRK7-DDyj5SRB.js");
|
|
2492
|
+
return {
|
|
2493
|
+
id: Ri,
|
|
2494
|
+
diagram: e
|
|
2495
|
+
};
|
|
2496
|
+
}, "loader")
|
|
2497
|
+
}, Bi = "eventmodeling", Vi = {
|
|
2498
|
+
id: Bi,
|
|
2499
|
+
detector: /* @__PURE__ */ T((e) => /^\s*eventmodeling/.test(e), "detector"),
|
|
2500
|
+
loader: /* @__PURE__ */ T(async () => {
|
|
2501
|
+
let { diagram: e } = await import("./diagram-VSXAHHWV-BKpmG23x.js");
|
|
2502
|
+
return {
|
|
2503
|
+
id: Bi,
|
|
2504
|
+
diagram: e
|
|
2505
|
+
};
|
|
2506
|
+
}, "loader")
|
|
2507
|
+
}, Hi = "ishikawa", Ui = {
|
|
2508
|
+
id: Hi,
|
|
2509
|
+
detector: /* @__PURE__ */ T((e) => /^\s*ishikawa(-beta)?\b/i.test(e), "detector"),
|
|
2510
|
+
loader: /* @__PURE__ */ T(async () => {
|
|
2511
|
+
let { diagram: e } = await import("./ishikawaDiagram-5VMMS53U-DByDehYy.js");
|
|
2512
|
+
return {
|
|
2513
|
+
id: Hi,
|
|
2514
|
+
diagram: e
|
|
2515
|
+
};
|
|
2516
|
+
}, "loader")
|
|
2517
|
+
}, Wi = "venn", Gi = {
|
|
2518
|
+
id: Wi,
|
|
2519
|
+
detector: /* @__PURE__ */ T((e) => /^\s*venn-beta/.test(e), "detector"),
|
|
2520
|
+
loader: /* @__PURE__ */ T(async () => {
|
|
2521
|
+
let { diagram: e } = await import("./vennDiagram-4TSXK5OY-CTUlJ2PK.js");
|
|
2522
|
+
return {
|
|
2523
|
+
id: Wi,
|
|
2524
|
+
diagram: e
|
|
2525
|
+
};
|
|
2526
|
+
}, "loader")
|
|
2527
|
+
}, Ki = "treemap", qi = {
|
|
2528
|
+
id: Ki,
|
|
2529
|
+
detector: /* @__PURE__ */ T((e) => /^\s*treemap/.test(e), "detector"),
|
|
2530
|
+
loader: /* @__PURE__ */ T(async () => {
|
|
2531
|
+
let { diagram: e } = await import("./diagram-VX7I27RA-BMwGFVD6.js");
|
|
2532
|
+
return {
|
|
2533
|
+
id: Ki,
|
|
2534
|
+
diagram: e
|
|
2535
|
+
};
|
|
2536
|
+
}, "loader")
|
|
2537
|
+
}, Ji = "wardley", Yi = {
|
|
2538
|
+
id: Ji,
|
|
2539
|
+
detector: /* @__PURE__ */ T((e) => /^\s*wardley-beta/i.test(e), "detector"),
|
|
2540
|
+
loader: /* @__PURE__ */ T(async () => {
|
|
2541
|
+
let { diagram: e } = await import("./wardleyDiagram-VM6X3IG4-3evLUb0M.js");
|
|
2542
|
+
return {
|
|
2543
|
+
id: Ji,
|
|
2544
|
+
diagram: e
|
|
2545
|
+
};
|
|
2546
|
+
}, "loader")
|
|
2547
|
+
}, Xi = "cynefin", Zi = {
|
|
2548
|
+
id: Xi,
|
|
2549
|
+
detector: /* @__PURE__ */ T((e) => /^\s*cynefin-beta(?:[\s:]|$)/.test(e), "detector"),
|
|
2550
|
+
loader: /* @__PURE__ */ T(async () => {
|
|
2551
|
+
let { diagram: e } = await import("./cynefinDiagram-5FMLGOSQ-CFQrqzSX.js");
|
|
2552
|
+
return {
|
|
2553
|
+
id: Xi,
|
|
2554
|
+
diagram: e
|
|
2555
|
+
};
|
|
2556
|
+
}, "loader")
|
|
2557
|
+
}, Qi = "railroad", $i = {
|
|
2558
|
+
id: Qi,
|
|
2559
|
+
detector: /* @__PURE__ */ T((e) => /^\s*railroad-beta/i.test(e), "detector"),
|
|
2560
|
+
loader: /* @__PURE__ */ T(async () => {
|
|
2561
|
+
let { diagram: e } = await import("./railroadDiagram-O6MQD6OU-Du5NsPUb.js");
|
|
2562
|
+
return {
|
|
2563
|
+
id: Qi,
|
|
2564
|
+
diagram: e
|
|
2565
|
+
};
|
|
2566
|
+
}, "loader")
|
|
2567
|
+
}, ea = "railroadEbnf", ta = {
|
|
2568
|
+
id: ea,
|
|
2569
|
+
detector: /* @__PURE__ */ T((e) => /^\s*railroad-ebnf-beta/i.test(e), "detector"),
|
|
2570
|
+
loader: /* @__PURE__ */ T(async () => {
|
|
2571
|
+
let { diagram: e } = await import("./ebnfDiagram-PWID7BFC-WnG4cvSQ.js");
|
|
2572
|
+
return {
|
|
2573
|
+
id: ea,
|
|
2574
|
+
diagram: e
|
|
2575
|
+
};
|
|
2576
|
+
}, "loader")
|
|
2577
|
+
}, na = "railroadAbnf", ra = {
|
|
2578
|
+
id: na,
|
|
2579
|
+
detector: /* @__PURE__ */ T((e) => /^\s*railroad-abnf-beta/i.test(e), "detector"),
|
|
2580
|
+
loader: /* @__PURE__ */ T(async () => {
|
|
2581
|
+
let { diagram: e } = await import("./abnfDiagram-VCTEODGH-CpN0FRda.js");
|
|
2582
|
+
return {
|
|
2583
|
+
id: na,
|
|
2584
|
+
diagram: e
|
|
2585
|
+
};
|
|
2586
|
+
}, "loader")
|
|
2587
|
+
}, ia = "railroadPeg", aa = {
|
|
2588
|
+
id: ia,
|
|
2589
|
+
detector: /* @__PURE__ */ T((e) => /^\s*railroad-peg-beta/i.test(e), "detector"),
|
|
2590
|
+
loader: /* @__PURE__ */ T(async () => {
|
|
2591
|
+
let { diagram: e } = await import("./pegDiagram-XKGWAZYB-DahHhYyN.js");
|
|
2592
|
+
return {
|
|
2593
|
+
id: ia,
|
|
2594
|
+
diagram: e
|
|
2595
|
+
};
|
|
2596
|
+
}, "loader")
|
|
2597
|
+
}, oa = !1, sa = /* @__PURE__ */ T(() => {
|
|
2598
|
+
oa || (oa = !0, A("error", yi, (e) => e.toLowerCase().trim() === "error"), A("---", {
|
|
2599
|
+
db: { clear: /* @__PURE__ */ T(() => {}, "clear") },
|
|
2600
|
+
styles: {},
|
|
2601
|
+
renderer: { draw: /* @__PURE__ */ T(() => {}, "draw") },
|
|
2602
|
+
parser: { parse: /* @__PURE__ */ T(() => {
|
|
2603
|
+
throw Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks");
|
|
2604
|
+
}, "parse") },
|
|
2605
|
+
init: /* @__PURE__ */ T(() => null, "init")
|
|
2606
|
+
}, (e) => e.toLowerCase().trimStart().startsWith("---")), j(xi, Ti, zi), j(Ir, Di, ui, ci, Wr, Jr, Xr, Qr, ii, oi, Hr, Br, Rr, Ci, Kr, mi, fi, gi, ei, ki, ji, ni, Fi, Vi, Li, Ni, Ui, qi, $i, ta, ra, aa, Gi, Yi, Zi));
|
|
2607
|
+
}, "addDiagrams"), ca = /* @__PURE__ */ T(async () => {
|
|
2608
|
+
S.debug("Loading registered diagrams");
|
|
2609
|
+
let e = (await Promise.allSettled(Object.entries(ie).map(async ([e, { detector: t, loader: n }]) => {
|
|
2610
|
+
if (n) try {
|
|
2611
|
+
N(e);
|
|
2612
|
+
} catch {
|
|
2613
|
+
try {
|
|
2614
|
+
let { diagram: e, id: r } = await n();
|
|
2615
|
+
A(r, e, t);
|
|
2616
|
+
} catch (t) {
|
|
2617
|
+
throw S.error(`Failed to load external diagram with key ${e}. Removing from detectors.`), delete ie[e], t;
|
|
2618
|
+
}
|
|
2619
|
+
}
|
|
2620
|
+
}))).filter((e) => e.status === "rejected");
|
|
2621
|
+
if (e.length > 0) {
|
|
2622
|
+
S.error(`Failed to load ${e.length} external diagrams`);
|
|
2623
|
+
for (let t of e) S.error(t);
|
|
2624
|
+
throw Error(`Failed to load ${e.length} external diagrams`);
|
|
2625
|
+
}
|
|
2626
|
+
}, "loadRegisteredDiagrams"), la = "graphics-document document";
|
|
2627
|
+
function ua(e, t) {
|
|
2628
|
+
e.attr("role", la), t !== "" && e.attr("aria-roledescription", t);
|
|
2629
|
+
}
|
|
2630
|
+
T(ua, "setA11yDiagramInfo");
|
|
2631
|
+
function da(e, t, n, r) {
|
|
2632
|
+
if (e.insert !== void 0) {
|
|
2633
|
+
if (n) {
|
|
2634
|
+
let t = `chart-desc-${r}`;
|
|
2635
|
+
e.attr("aria-describedby", t), e.insert("desc", ":first-child").attr("id", t).text(n);
|
|
2636
|
+
}
|
|
2637
|
+
if (t) {
|
|
2638
|
+
let n = `chart-title-${r}`;
|
|
2639
|
+
e.attr("aria-labelledby", n), e.insert("title", ":first-child").attr("id", n).text(t);
|
|
2640
|
+
}
|
|
2641
|
+
}
|
|
2642
|
+
}
|
|
2643
|
+
T(da, "addSVGa11yTitleDescription");
|
|
2644
|
+
var fa = class e {
|
|
2645
|
+
constructor(e, t, n, r, i) {
|
|
2646
|
+
this.type = e, this.text = t, this.db = n, this.parser = r, this.renderer = i;
|
|
2647
|
+
}
|
|
2648
|
+
static {
|
|
2649
|
+
T(this, "Diagram");
|
|
2650
|
+
}
|
|
2651
|
+
static async fromText(t, n = {}) {
|
|
2652
|
+
let r = z(), i = oe(t, r);
|
|
2653
|
+
t = v(t) + "\n";
|
|
2654
|
+
try {
|
|
2655
|
+
N(i);
|
|
2656
|
+
} catch {
|
|
2657
|
+
let e = E(i);
|
|
2658
|
+
if (!e) throw new ue(`Diagram ${i} not found.`);
|
|
2659
|
+
let { id: t, diagram: n } = await e();
|
|
2660
|
+
A(t, n);
|
|
2661
|
+
}
|
|
2662
|
+
let { db: a, parser: o, renderer: s, init: c } = N(i);
|
|
2663
|
+
return o.parser && (o.parser.yy = a), a.clear?.(), c?.(r), n.title && a.setDiagramTitle?.(n.title), await o.parse(t), new e(i, t, a, o, s);
|
|
2664
|
+
}
|
|
2665
|
+
async render(e, t) {
|
|
2666
|
+
await this.renderer.draw(this.text, e, t, this);
|
|
2667
|
+
}
|
|
2668
|
+
getParser() {
|
|
2669
|
+
return this.parser;
|
|
2670
|
+
}
|
|
2671
|
+
getType() {
|
|
2672
|
+
return this.type;
|
|
2673
|
+
}
|
|
2674
|
+
}, pa = [], ma = /* @__PURE__ */ T(() => {
|
|
2675
|
+
pa.forEach((e) => {
|
|
2676
|
+
e();
|
|
2677
|
+
}), pa = [];
|
|
2678
|
+
}, "attachFunctions"), ha = /* @__PURE__ */ T((e) => e.replace(/^\s*%%(?!{)[^\n]+\n?/gm, "").trimStart(), "cleanupComments");
|
|
2679
|
+
function ga(e) {
|
|
2680
|
+
let t = e.match(R);
|
|
2681
|
+
if (!t) return {
|
|
2682
|
+
text: e,
|
|
2683
|
+
metadata: {}
|
|
2684
|
+
};
|
|
2685
|
+
let n = t[1], r = Fn(n ? t[2].split("\n").map((e) => e.startsWith(n) ? e.slice(n.length) : e).join("\n") : t[2], { schema: Mn }) ?? {};
|
|
2686
|
+
r = typeof r == "object" && !Array.isArray(r) ? r : {};
|
|
2687
|
+
let i = {};
|
|
2688
|
+
return r.displayMode && (i.displayMode = r.displayMode.toString()), r.title && (i.title = r.title.toString()), r.config && (i.config = r.config), {
|
|
2689
|
+
text: e.slice(t[0].length),
|
|
2690
|
+
metadata: i
|
|
2691
|
+
};
|
|
2692
|
+
}
|
|
2693
|
+
T(ga, "extractFrontMatter");
|
|
2694
|
+
var _a = /* @__PURE__ */ T((e) => e.replace(/\r\n?/g, "\n").replace(/<(\w+)([^>]*)>/g, (e, t, n) => "<" + t + n.replace(/="([^"]*)"/g, "='$1'") + ">"), "cleanupText"), va = /* @__PURE__ */ T((e) => {
|
|
2695
|
+
let { text: t, metadata: n } = ga(e), { displayMode: r, title: i, config: a = {} } = n;
|
|
2696
|
+
return r && (a.gantt ||= {}, a.gantt.displayMode = r), {
|
|
2697
|
+
title: i,
|
|
2698
|
+
config: a,
|
|
2699
|
+
text: t
|
|
2700
|
+
};
|
|
2701
|
+
}, "processFrontmatter"), ya = /* @__PURE__ */ T((e) => {
|
|
2702
|
+
let t = h.detectInit(e) ?? {}, n = h.detectDirective(e, "wrap");
|
|
2703
|
+
return Array.isArray(n) ? t.wrap = n.some(({ type: e }) => e === "wrap") : n?.type === "wrap" && (t.wrap = !0), {
|
|
2704
|
+
text: g(e),
|
|
2705
|
+
directive: t
|
|
2706
|
+
};
|
|
2707
|
+
}, "processDirectives");
|
|
2708
|
+
function ba(e) {
|
|
2709
|
+
let t = va(_a(e)), n = ya(t.text), r = _(t.config, n.directive);
|
|
2710
|
+
return e = ha(n.text), {
|
|
2711
|
+
code: e,
|
|
2712
|
+
title: t.title,
|
|
2713
|
+
config: r
|
|
2714
|
+
};
|
|
2715
|
+
}
|
|
2716
|
+
T(ba, "preprocessDiagram");
|
|
2717
|
+
function xa(e) {
|
|
2718
|
+
let t = new TextEncoder().encode(e), n = Array.from(t, (e) => String.fromCodePoint(e)).join("");
|
|
2719
|
+
return btoa(n);
|
|
2720
|
+
}
|
|
2721
|
+
T(xa, "toBase64");
|
|
2722
|
+
var Sa = 5e4, Ca = "graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa", wa = "sandbox", Ta = "loose", Ea = "http://www.w3.org/2000/svg", Da = "http://www.w3.org/1999/xlink", Oa = "http://www.w3.org/1999/xhtml", ka = "100%", Aa = "100%", ja = "border:0;margin:0;", Ma = "margin:0", Na = "allow-top-navigation-by-user-activation allow-popups", Pa = "The \"iframe\" tag is not supported by your browser.", Fa = ["foreignobject"], Ia = ["dominant-baseline"];
|
|
2723
|
+
function La(e) {
|
|
2724
|
+
let t = ba(e);
|
|
2725
|
+
return O(), ae(t.config ?? {}), t;
|
|
2726
|
+
}
|
|
2727
|
+
T(La, "processAndSetConfigs");
|
|
2728
|
+
async function Ra(e, t) {
|
|
2729
|
+
sa();
|
|
2730
|
+
try {
|
|
2731
|
+
let { code: t, config: n } = La(e);
|
|
2732
|
+
return {
|
|
2733
|
+
diagramType: (await Xa(t)).type,
|
|
2734
|
+
config: n
|
|
2735
|
+
};
|
|
2736
|
+
} catch (e) {
|
|
2737
|
+
if (t?.suppressErrors) return !1;
|
|
2738
|
+
throw e;
|
|
2739
|
+
}
|
|
2740
|
+
}
|
|
2741
|
+
T(Ra, "parse");
|
|
2742
|
+
var za = /* @__PURE__ */ T((e, t, n = []) => `.${e} ${t} ${k(`{ ${n.join(" !important; ")} !important; }`)}`, "cssImportantStyles"), Ba = /* @__PURE__ */ T((e, t = /* @__PURE__ */ new Map()) => {
|
|
2743
|
+
let n = new CSSStyleSheet();
|
|
2744
|
+
if (e.fontFamily !== void 0 && n.insertRule(`:root { --mermaid-font-family: ${e.fontFamily}}`, n.cssRules.length), e.altFontFamily !== void 0 && n.insertRule(`:root { --mermaid-alt-font-family: ${e.altFontFamily}}`, n.cssRules.length), t instanceof Map) {
|
|
2745
|
+
let r = ee(e) ? ["> *", "span"] : [
|
|
2746
|
+
"rect",
|
|
2747
|
+
"polygon",
|
|
2748
|
+
"ellipse",
|
|
2749
|
+
"circle",
|
|
2750
|
+
"path"
|
|
2751
|
+
];
|
|
2752
|
+
t.forEach((e) => {
|
|
2753
|
+
Me(e.styles) || r.forEach((t) => {
|
|
2754
|
+
n.insertRule(za(e.id, t, e.styles), n.cssRules.length);
|
|
2755
|
+
}), Me(e.textStyles) || n.insertRule(za(e.id, "tspan", (e?.textStyles || []).map((e) => e.replace("color", "fill"))), n.cssRules.length);
|
|
2756
|
+
});
|
|
2757
|
+
}
|
|
2758
|
+
let r = "";
|
|
2759
|
+
if (e.themeCSS !== void 0) {
|
|
2760
|
+
if (typeof n.replaceSync == "function") {
|
|
2761
|
+
let t = new CSSStyleSheet();
|
|
2762
|
+
t.replaceSync(e.themeCSS), r = re(t) + "\n";
|
|
2763
|
+
} else r += `${e.themeCSS}
|
|
2764
|
+
`;
|
|
2765
|
+
}
|
|
2766
|
+
return r + re(n);
|
|
2767
|
+
}, "createCssStyles"), Va = /* @__PURE__ */ T((e, t) => Mr(Dr(`${e}{${t}}`), Pr([/* @__PURE__ */ T(function(t, n, r, i) {
|
|
2768
|
+
if (t.type === "rule" && Array.isArray(t.props)) {
|
|
2769
|
+
if (t.parent && t.parent.type === "@keyframes") return;
|
|
2770
|
+
t.props = t.props.map((n) => n === e && Array.isArray(t.children) && t.children.every((e) => e.type === "decl" && (/* @__PURE__ */ new Set([
|
|
2771
|
+
"font-family",
|
|
2772
|
+
"font-size",
|
|
2773
|
+
"fill"
|
|
2774
|
+
])).has(e.props)) || (n.startsWith(`${e} `) || n.startsWith(`${e}>`)) && !n.startsWith(`${e} ||`) ? n : `${e} ${n}`);
|
|
2775
|
+
} else t.type.startsWith("@") && ([
|
|
2776
|
+
"@media",
|
|
2777
|
+
"@supports",
|
|
2778
|
+
"@layer",
|
|
2779
|
+
"@scope",
|
|
2780
|
+
"@container",
|
|
2781
|
+
"@starting-style",
|
|
2782
|
+
"@keyframes"
|
|
2783
|
+
].includes(t.type) || (S.warn(`Removing unsupported at-rule ${t.type} from CSS`), t.type = Jn));
|
|
2784
|
+
}, "addNamespace"), Nr])), "compileCSS"), Ha = /* @__PURE__ */ T((e, t, n, r) => {
|
|
2785
|
+
let i = Ba(e, n);
|
|
2786
|
+
return Va(r, I(t, i, {
|
|
2787
|
+
...e.themeVariables,
|
|
2788
|
+
theme: e.theme,
|
|
2789
|
+
look: e.look
|
|
2790
|
+
}, r));
|
|
2791
|
+
}, "createUserStyles"), Ua = /* @__PURE__ */ T((e = "", t, n) => {
|
|
2792
|
+
let r = e;
|
|
2793
|
+
return !n && !t && (r = r.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g, "marker-end=\"url(#")), r = f(r), r = r.replace(/<br>/g, "<br/>"), r;
|
|
2794
|
+
}, "cleanUpSvgCode"), Wa = /* @__PURE__ */ T((e = "", t) => `<iframe style="width:${ka};height:${t?.viewBox?.baseVal?.height ? t.viewBox.baseVal.height + "px" : Aa};${ja}" src="data:text/html;charset=UTF-8;base64,${xa(`<body style="${Ma}">${e}</body>`)}" sandbox="${Na}">
|
|
2795
|
+
${Pa}
|
|
2796
|
+
</iframe>`, "putIntoIFrame"), Ga = /* @__PURE__ */ T((e, t, n, r, i) => {
|
|
2797
|
+
let a = e.append("div");
|
|
2798
|
+
a.attr("id", n), r && a.attr("style", r);
|
|
2799
|
+
let o = a.append("svg").attr("id", t).attr("width", "100%").attr("xmlns", Ea);
|
|
2800
|
+
return i && o.attr("xmlns:xlink", i), o.append("g"), e;
|
|
2801
|
+
}, "appendDivSvgG");
|
|
2802
|
+
function Ka(e, t) {
|
|
2803
|
+
return e.append("iframe").attr("id", t).attr("style", "width: 100%; height: 100%;").attr("sandbox", "");
|
|
2804
|
+
}
|
|
2805
|
+
T(Ka, "sandboxedIframe");
|
|
2806
|
+
var qa = /* @__PURE__ */ T((e, t, n, r) => {
|
|
2807
|
+
e.getElementById(t)?.remove(), e.getElementById(n)?.remove(), e.getElementById(r)?.remove();
|
|
2808
|
+
}, "removeExistingElements"), Ja = /* @__PURE__ */ T(async function(e, t, n) {
|
|
2809
|
+
sa();
|
|
2810
|
+
let r = La(t);
|
|
2811
|
+
t = r.code;
|
|
2812
|
+
let i = z();
|
|
2813
|
+
S.debug(i), t.length > (i?.maxTextSize ?? Sa) && (t = Ca);
|
|
2814
|
+
let a = `#${e}`, o = "i" + e, s = "#" + o, c = "d" + e, l = "#" + c, d = /* @__PURE__ */ T(() => {
|
|
2815
|
+
let e = w(p ? s : l).node();
|
|
2816
|
+
e && "remove" in e && e.remove();
|
|
2817
|
+
}, "removeTempElements"), f = w(document.body), p = i.securityLevel === wa, m = i.securityLevel === Ta, h = i.fontFamily;
|
|
2818
|
+
if (n !== void 0) {
|
|
2819
|
+
if (n && (n.innerHTML = ""), p) {
|
|
2820
|
+
let e = Ka(w(n), o);
|
|
2821
|
+
f = w(e.nodes()[0].contentDocument.body), f.node().style.margin = "0";
|
|
2822
|
+
} else f = w(n);
|
|
2823
|
+
Ga(f, e, c, `font-family: ${h}`, Da);
|
|
2824
|
+
} else {
|
|
2825
|
+
if (qa(document, e, c, o), p) {
|
|
2826
|
+
let e = Ka(w(document.body), o);
|
|
2827
|
+
f = w(e.nodes()[0].contentDocument.body), f.node().style.margin = "0";
|
|
2828
|
+
} else f = w("body");
|
|
2829
|
+
Ga(f, e, c);
|
|
2830
|
+
}
|
|
2831
|
+
let g, _;
|
|
2832
|
+
try {
|
|
2833
|
+
g = await fa.fromText(t, { title: r.title });
|
|
2834
|
+
} catch (e) {
|
|
2835
|
+
if (i.suppressErrorRendering) throw d(), e;
|
|
2836
|
+
g = await fa.fromText("error"), _ = e;
|
|
2837
|
+
}
|
|
2838
|
+
let v = f.select(l).node(), y = g.type, b = v.firstChild, x = b.firstChild, C = g.renderer.getClasses?.(t, g), E = Ha(i, y, C, a), D = document.createElement("style");
|
|
2839
|
+
D.innerHTML = E, b.insertBefore(D, x);
|
|
2840
|
+
try {
|
|
2841
|
+
await g.renderer.draw(t, e, "11.17.2", g);
|
|
2842
|
+
} catch (n) {
|
|
2843
|
+
throw i.suppressErrorRendering ? d() : vi.draw(t, e, "11.17.2"), n;
|
|
2844
|
+
}
|
|
2845
|
+
let O = f.select(`${l} svg`), k = g.db.getAccTitle?.(), A = g.db.getAccDescription?.();
|
|
2846
|
+
Za(y, O, k, A);
|
|
2847
|
+
let j = (/* @__PURE__ */ T(() => {
|
|
2848
|
+
f.select(`[id="${e}"]`).selectAll("foreignobject > *").attr("xmlns", Oa);
|
|
2849
|
+
let t = f.select(l).node().innerHTML;
|
|
2850
|
+
if (S.debug("config.arrowMarkerAbsolute", i.arrowMarkerAbsolute), t = Ua(t, p, ne(i.arrowMarkerAbsolute)), p) {
|
|
2851
|
+
let e = f.select(l + " svg").node();
|
|
2852
|
+
t = Wa(t, e);
|
|
2853
|
+
} else m || (t = u.sanitize(t, {
|
|
2854
|
+
ADD_TAGS: Fa,
|
|
2855
|
+
ADD_ATTR: Ia,
|
|
2856
|
+
HTML_INTEGRATION_POINTS: { foreignobject: !0 }
|
|
2857
|
+
}));
|
|
2858
|
+
return ma(), t;
|
|
2859
|
+
}, "serializeSvg"))();
|
|
2860
|
+
if (_) throw _;
|
|
2861
|
+
return d(), {
|
|
2862
|
+
diagramType: y,
|
|
2863
|
+
svg: j,
|
|
2864
|
+
bindFunctions: g.db.bindFunctions
|
|
2865
|
+
};
|
|
2866
|
+
}, "render");
|
|
2867
|
+
function Ya(e = {}) {
|
|
2868
|
+
let t = ce({}, e);
|
|
2869
|
+
t?.fontFamily && !t.themeVariables?.fontFamily && (t.themeVariables ||= {}, t.themeVariables.fontFamily = t.fontFamily), P(t), t?.theme && t.theme in L ? t.themeVariables = L[t.theme].getThemeVariables(t.themeVariables) : t && (t.themeVariables = L.default.getThemeVariables(t.themeVariables));
|
|
2870
|
+
let n = typeof t == "object" ? se(t) : D();
|
|
2871
|
+
C(n.logLevel), sa();
|
|
2872
|
+
}
|
|
2873
|
+
T(Ya, "initialize");
|
|
2874
|
+
var Xa = /* @__PURE__ */ T((e, t = {}) => {
|
|
2875
|
+
let { code: n } = ba(e);
|
|
2876
|
+
return fa.fromText(n, t);
|
|
2877
|
+
}, "getDiagramFromText");
|
|
2878
|
+
function Za(e, t, n, r) {
|
|
2879
|
+
ua(t, e), da(t, n, r, t.attr("id"));
|
|
2880
|
+
}
|
|
2881
|
+
T(Za, "addA11yInfo");
|
|
2882
|
+
var Q = Object.freeze({
|
|
2883
|
+
render: Ja,
|
|
2884
|
+
parse: Ra,
|
|
2885
|
+
getDiagramFromText: Xa,
|
|
2886
|
+
initialize: Ya,
|
|
2887
|
+
getConfig: z,
|
|
2888
|
+
setConfig: F,
|
|
2889
|
+
getSiteConfig: D,
|
|
2890
|
+
updateSiteConfig: M,
|
|
2891
|
+
reset: /* @__PURE__ */ T(() => {
|
|
2892
|
+
O();
|
|
2893
|
+
}, "reset"),
|
|
2894
|
+
globalReset: /* @__PURE__ */ T(() => {
|
|
2895
|
+
O(de);
|
|
2896
|
+
}, "globalReset"),
|
|
2897
|
+
defaultConfig: de
|
|
2898
|
+
});
|
|
2899
|
+
C(z().logLevel), O(z());
|
|
2900
|
+
var Qa = /* @__PURE__ */ T((e, t, n) => {
|
|
2901
|
+
S.warn(e), m(e) ? (n && n(e.str, e.hash), t.push({
|
|
2902
|
+
...e,
|
|
2903
|
+
message: e.str,
|
|
2904
|
+
error: e
|
|
2905
|
+
})) : (n && n(e), e instanceof Error && t.push({
|
|
2906
|
+
str: e.message,
|
|
2907
|
+
message: e.message,
|
|
2908
|
+
hash: e.name,
|
|
2909
|
+
error: e
|
|
2910
|
+
}));
|
|
2911
|
+
}, "handleError"), $a = /* @__PURE__ */ T(async function(e = { querySelector: ".mermaid" }) {
|
|
2912
|
+
try {
|
|
2913
|
+
await eo(e);
|
|
2914
|
+
} catch (t) {
|
|
2915
|
+
if (m(t) && S.error(t.str), $.parseError && $.parseError(t), !e.suppressErrors) throw S.error("Use the suppressErrors option to suppress these errors"), t;
|
|
2916
|
+
}
|
|
2917
|
+
}, "run"), eo = /* @__PURE__ */ T(async function({ postRenderCallback: e, querySelector: t, nodes: n } = { querySelector: ".mermaid" }) {
|
|
2918
|
+
let r = Q.getConfig();
|
|
2919
|
+
S.debug(`${e ? "" : "No "}Callback function found`);
|
|
2920
|
+
let i;
|
|
2921
|
+
if (n) i = n;
|
|
2922
|
+
else if (t) i = document.querySelectorAll(t);
|
|
2923
|
+
else throw Error("Nodes and querySelector are both undefined");
|
|
2924
|
+
S.debug(`Found ${i.length} diagrams`), r?.startOnLoad !== void 0 && (S.debug("Start On Load: " + r?.startOnLoad), Q.updateSiteConfig({ startOnLoad: r?.startOnLoad }));
|
|
2925
|
+
let a = new h.InitIDGenerator(r.deterministicIds, r.deterministicIDSeed), o, s = [];
|
|
2926
|
+
for (let t of Array.from(i)) {
|
|
2927
|
+
if (S.info("Rendering diagram: " + t.id), t.getAttribute("data-processed")) continue;
|
|
2928
|
+
t.setAttribute("data-processed", "true");
|
|
2929
|
+
let n = `mermaid-${a.next()}`;
|
|
2930
|
+
o = t.innerHTML, o = pe(h.entityDecode(o)).trim().replace(/<br\s*\/?>/gi, "<br/>");
|
|
2931
|
+
let r = h.detectInit(o);
|
|
2932
|
+
r && S.debug("Detected early reinit: ", r);
|
|
2933
|
+
try {
|
|
2934
|
+
let { svg: r, bindFunctions: i } = await uo(n, o, t);
|
|
2935
|
+
t.innerHTML = r, e && await e(n), i && i(t);
|
|
2936
|
+
} catch (e) {
|
|
2937
|
+
Qa(e, s, $.parseError);
|
|
2938
|
+
}
|
|
2939
|
+
}
|
|
2940
|
+
if (s.length > 0) throw s[0];
|
|
2941
|
+
}, "runThrowsErrors"), to = /* @__PURE__ */ T(function(e) {
|
|
2942
|
+
Q.initialize(e);
|
|
2943
|
+
}, "initialize"), no = /* @__PURE__ */ T(async function(e, t, n) {
|
|
2944
|
+
S.warn("mermaid.init is deprecated. Please use run instead."), e && to(e);
|
|
2945
|
+
let r = {
|
|
2946
|
+
postRenderCallback: n,
|
|
2947
|
+
querySelector: ".mermaid"
|
|
2948
|
+
};
|
|
2949
|
+
typeof t == "string" ? r.querySelector = t : t && (r.nodes = t instanceof HTMLElement ? [t] : t), await $a(r);
|
|
2950
|
+
}, "init"), ro = /* @__PURE__ */ T(async (e, { lazyLoad: t = !0 } = {}) => {
|
|
2951
|
+
sa(), j(...e), t === !1 && await ca();
|
|
2952
|
+
}, "registerExternalDiagrams"), io = /* @__PURE__ */ T(function() {
|
|
2953
|
+
if ($.startOnLoad) {
|
|
2954
|
+
let { startOnLoad: e } = Q.getConfig();
|
|
2955
|
+
e && $.run().catch((e) => S.error("Mermaid failed to initialize", e));
|
|
2956
|
+
}
|
|
2957
|
+
}, "contentLoaded");
|
|
2958
|
+
typeof document < "u" && window.addEventListener("load", io, !1);
|
|
2959
|
+
var ao = /* @__PURE__ */ T(function(e) {
|
|
2960
|
+
$.parseError = e;
|
|
2961
|
+
}, "setParseErrorHandler"), oo = [], so = !1, co = /* @__PURE__ */ T(async () => {
|
|
2962
|
+
if (!so) {
|
|
2963
|
+
for (so = !0; oo.length > 0;) {
|
|
2964
|
+
let e = oo.shift();
|
|
2965
|
+
if (e) try {
|
|
2966
|
+
await e();
|
|
2967
|
+
} catch (e) {
|
|
2968
|
+
S.error("Error executing queue", e);
|
|
2969
|
+
}
|
|
2970
|
+
}
|
|
2971
|
+
so = !1;
|
|
2972
|
+
}
|
|
2973
|
+
}, "executeQueue"), lo = /* @__PURE__ */ T(async (e, t) => new Promise((n, r) => {
|
|
2974
|
+
let i = /* @__PURE__ */ T(() => new Promise((i, a) => {
|
|
2975
|
+
Q.parse(e, t).then((e) => {
|
|
2976
|
+
i(e), n(e);
|
|
2977
|
+
}, (e) => {
|
|
2978
|
+
S.error("Error parsing", e), $.parseError?.(e), a(e), r(e);
|
|
2979
|
+
});
|
|
2980
|
+
}), "performCall");
|
|
2981
|
+
oo.push(i), co().catch(r);
|
|
2982
|
+
}), "parse"), uo = /* @__PURE__ */ T((e, t, n) => new Promise((r, i) => {
|
|
2983
|
+
let a = /* @__PURE__ */ T(() => new Promise((a, o) => {
|
|
2984
|
+
Q.render(e, t, n).then((e) => {
|
|
2985
|
+
a(e), r(e);
|
|
2986
|
+
}, (e) => {
|
|
2987
|
+
S.error("Error parsing", e), $.parseError?.(e), o(e), i(e);
|
|
2988
|
+
});
|
|
2989
|
+
}), "performCall");
|
|
2990
|
+
oo.push(a), co().catch(i);
|
|
2991
|
+
}), "render"), $ = {
|
|
2992
|
+
startOnLoad: !0,
|
|
2993
|
+
mermaidAPI: Q,
|
|
2994
|
+
parse: lo,
|
|
2995
|
+
render: uo,
|
|
2996
|
+
init: no,
|
|
2997
|
+
run: $a,
|
|
2998
|
+
registerExternalDiagrams: ro,
|
|
2999
|
+
registerLayoutLoaders: Gn,
|
|
3000
|
+
initialize: to,
|
|
3001
|
+
parseError: void 0,
|
|
3002
|
+
contentLoaded: io,
|
|
3003
|
+
setParseErrorHandler: ao,
|
|
3004
|
+
detectType: oe,
|
|
3005
|
+
registerIconPacks: B,
|
|
3006
|
+
getRegisteredDiagramsMetadata: /* @__PURE__ */ T(() => Object.keys(ie).map((e) => ({ id: e })), "getRegisteredDiagramsMetadata")
|
|
3007
|
+
}, fo = $, po = /* @__PURE__ */ t({ default: () => vo }), mo = /* @__PURE__ */ e(r(), 1), ho = a(), go = {
|
|
3008
|
+
startOnLoad: !0,
|
|
3009
|
+
theme: "forest",
|
|
3010
|
+
logLevel: "fatal",
|
|
3011
|
+
securityLevel: "strict",
|
|
3012
|
+
fontFamily: "var(--text-font)",
|
|
3013
|
+
arrowMarkerAbsolute: !1,
|
|
3014
|
+
flowchart: {
|
|
3015
|
+
htmlLabels: !0,
|
|
3016
|
+
curve: "linear"
|
|
3017
|
+
},
|
|
3018
|
+
sequence: {
|
|
3019
|
+
diagramMarginX: 50,
|
|
3020
|
+
diagramMarginY: 10,
|
|
3021
|
+
actorMargin: 50,
|
|
3022
|
+
width: 150,
|
|
3023
|
+
height: 65,
|
|
3024
|
+
boxMargin: 10,
|
|
3025
|
+
boxTextMargin: 5,
|
|
3026
|
+
noteMargin: 10,
|
|
3027
|
+
messageMargin: 35,
|
|
3028
|
+
mirrorActors: !0,
|
|
3029
|
+
bottomMarginAdj: 1,
|
|
3030
|
+
useMaxWidth: !0,
|
|
3031
|
+
rightAngles: !1,
|
|
3032
|
+
showSequenceNumbers: !1
|
|
3033
|
+
},
|
|
3034
|
+
gantt: {
|
|
3035
|
+
titleTopMargin: 25,
|
|
3036
|
+
barHeight: 20,
|
|
3037
|
+
barGap: 4,
|
|
3038
|
+
topPadding: 50,
|
|
3039
|
+
leftPadding: 75,
|
|
3040
|
+
gridLineStartPadding: 35,
|
|
3041
|
+
fontSize: 11,
|
|
3042
|
+
numberSectionStyles: 4,
|
|
3043
|
+
axisFormat: "%Y-%m-%d"
|
|
3044
|
+
}
|
|
3045
|
+
};
|
|
3046
|
+
function _o() {
|
|
3047
|
+
return Array.from({ length: 6 }, () => "abcdefghijklmnopqrstuvwxyz"[Math.floor(Math.random() * 26)]).join("");
|
|
3048
|
+
}
|
|
3049
|
+
var vo = (e) => {
|
|
3050
|
+
let t = (0, ke.c)(15), { diagram: r, theme: i, themeVariables: a } = e, [s] = (0, mo.useState)(yo), u = c().theme === "dark", d = i ?? (u ? "dark" : "forest");
|
|
3051
|
+
fo.initialize({
|
|
3052
|
+
...go,
|
|
3053
|
+
theme: d,
|
|
3054
|
+
themeVariables: a,
|
|
3055
|
+
darkMode: u
|
|
3056
|
+
});
|
|
3057
|
+
let f;
|
|
3058
|
+
t[0] === r ? f = t[1] : (f = r.trim(), t[0] = r, t[1] = f);
|
|
3059
|
+
let p = f, m;
|
|
3060
|
+
t[2] !== s || t[3] !== p ? (m = async () => (await fo.render(s, p, void 0).catch((e) => {
|
|
3061
|
+
throw document.getElementById(s)?.remove(), n.warn("Failed to render mermaid diagram", e), e;
|
|
3062
|
+
})).svg, t[2] = s, t[3] = p, t[4] = m) : m = t[4];
|
|
3063
|
+
let h;
|
|
3064
|
+
t[5] !== u || t[6] !== s || t[7] !== d || t[8] !== a || t[9] !== p ? (h = [
|
|
3065
|
+
p,
|
|
3066
|
+
s,
|
|
3067
|
+
u,
|
|
3068
|
+
d,
|
|
3069
|
+
a
|
|
3070
|
+
], t[5] = u, t[6] = s, t[7] = d, t[8] = a, t[9] = p, t[10] = h) : h = t[10];
|
|
3071
|
+
let { data: g, error: _ } = l(m, h);
|
|
3072
|
+
if (_) {
|
|
3073
|
+
let e;
|
|
3074
|
+
return t[11] === _ ? e = t[12] : (e = /* @__PURE__ */ (0, ho.jsx)(o, { error: _ }), t[11] = _, t[12] = e), e;
|
|
3075
|
+
}
|
|
3076
|
+
if (!g) return null;
|
|
3077
|
+
let v;
|
|
3078
|
+
return t[13] === g ? v = t[14] : (v = /* @__PURE__ */ (0, ho.jsx)("div", { dangerouslySetInnerHTML: { __html: g } }), t[13] = g, t[14] = v), v;
|
|
3079
|
+
};
|
|
3080
|
+
function yo() {
|
|
3081
|
+
return _o();
|
|
3082
|
+
}
|
|
3083
|
+
//#endregion
|
|
3084
|
+
export { Fn as a, Qe as c, Fe as d, vo as default, Ye as f, Mn as i, Ne as l, qn as n, Ke as o, Ae as p, Kn as r, V as s, po as t, We as u };
|