@inkeep/open-knowledge 0.77.8-beta.0 → 0.77.8-beta.1
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/cli.mjs +6 -6
- package/dist/constants-BFB3r1cZ.mjs +1 -0
- package/dist/index.mjs +1 -1
- package/dist/init-BMOQ0ZUD.mjs +693 -0
- package/dist/init-DE-JNzZM.mjs +1 -0
- package/dist/launch-json-removal-BjY6qTfw.mjs +1 -0
- package/dist/loader-B5ttnXZI.mjs +1 -0
- package/dist/loader-olXkVqIj.mjs +1 -0
- package/dist/preview-BZ-zLJzG.mjs +2 -0
- package/dist/preview-jh77MmBn.mjs +1 -0
- package/dist/public/assets/ActivityModeContent-M2k3YwfN.js +1 -0
- package/dist/public/assets/ActivityPanelDiffView-Cw3jARI1.js +1 -0
- package/dist/public/assets/AddPropertiesButton-CF3xs1vF.js +2 -0
- package/dist/public/assets/AgentDiffPane-COuPkRtG.js +2 -0
- package/dist/public/assets/AgentIconCluster-BNHmzy2N.js +1 -0
- package/dist/public/assets/AgentThreadClientBinder-CM_Hnzrg.js +1 -0
- package/dist/public/assets/AppMenubar-CugHlIEF.js +1 -0
- package/dist/public/assets/BugReportHistory-CpWgA9i6.js +1 -0
- package/dist/public/assets/BugReportHistoryDialog-Bh3IoStx.js +1 -0
- package/dist/public/assets/CodeMirrorEditor-UCMRAMCV-DLCuGDtS.js +1 -0
- package/dist/public/assets/CodeMirrorPropInput-IRKh744X.js +3 -0
- package/dist/public/assets/ConsentDialogBody-D9t5RNVy.js +2 -0
- package/dist/public/assets/DiffViewBoundary-8RVTpygC.js +29 -0
- package/dist/public/assets/DocumentContext-DN3lHA0f.js +39 -0
- package/dist/public/assets/EditorModeToggle-BNW3Mc3U.js +1 -0
- package/dist/public/assets/EnableSyncConfirmDialog-C5vyStvZ.js +1 -0
- package/dist/public/assets/ExcalidrawDocEditor-DJ1kVVQQ.js +1 -0
- package/dist/public/assets/FeedbackForm-B60zvRQ5.js +1 -0
- package/dist/public/assets/GraphPanel-C3eHn4gW.js +44 -0
- package/dist/public/assets/ImageAttachments-DSlR8TcI.js +1 -0
- package/dist/public/assets/ImportSkillDialog-ZHBp0kBI.js +1 -0
- package/dist/public/assets/LintConfigEditor-DGelEZH6.js +1 -0
- package/dist/public/assets/ManagedArtifactProperties-Bw8Ex5op.js +1 -0
- package/dist/public/assets/ManagedArtifactProperties-DWrCvKHd.js +1 -0
- package/dist/public/assets/McpConsentDialogBody-8e-ObxAg.js +1 -0
- package/dist/public/assets/Mermaid-DHu2w9uV.js +2 -0
- package/dist/public/assets/MermaidDocEditor-BGHacCHW.js +1 -0
- package/dist/public/assets/MultiFileDiff-D4AM_h2y.js +1 -0
- package/dist/public/assets/OpenInAgentMenuItem-D2wwOGYA.js +1 -0
- package/dist/public/assets/PropertyDisplayRow-BPvh08wu.js +2 -0
- package/dist/public/assets/RegisteredAgentIcon-9VM9CSSM.js +1 -0
- package/dist/public/assets/ReportBugDialogBody-DpKnchmQ.js +3 -0
- package/dist/public/assets/ReportBugMenuTrigger-DSs8yLxa.js +2 -0
- package/dist/public/assets/RowDisclosure-DJ3nqs6Y.js +1 -0
- package/dist/public/assets/SchemaConfigEditor-7DP1DDaJ.js +1 -0
- package/dist/public/assets/SessionsHost-Cgl3LOrn.js +2 -0
- package/dist/public/assets/SettingsDialogBody-0b_jtYPb.js +12 -0
- package/dist/public/assets/ShareBranchSwitchDialog-CTDAYuOX.js +1 -0
- package/dist/public/assets/ShareReceiveDialog-Cuf5ASDY.js +1 -0
- package/dist/public/assets/ShareReceiveMissDialog-BxhkG5Bj.js +1 -0
- package/dist/public/assets/SkillEditBanner-BycfTypX.js +1 -0
- package/dist/public/assets/SkillForkDialog-SINB-id1.js +1 -0
- package/dist/public/assets/SkillInstallMenu-DFjFfhRl.js +2 -0
- package/dist/public/assets/SkillOriginInline-Cgl8RIR-.js +2 -0
- package/dist/public/assets/SkillToolbarControls-BIOQTgH1.js +1 -0
- package/dist/public/assets/SkillUpdateConflictDialog-_FtQV05l.js +1 -0
- package/dist/public/assets/SourceEditor-CniCNTCo.js +1 -0
- package/dist/public/assets/TerminalPanel-BkLbM57Y.js +146 -0
- package/dist/public/assets/TerminalWindowApp-Dl09UNeQ.js +1 -0
- package/dist/public/assets/TextDocEditor-BmeCpFYS.js +1 -0
- package/dist/public/assets/ThreadView-BPAWyKRD.js +20 -0
- package/dist/public/assets/TimelineDiffPane-Dq31of3V.js +2 -0
- package/dist/public/assets/abnfDiagram-N423BO3Z-rZ14eGNY.js +1 -0
- package/dist/public/assets/agent-connection-status-CqhLenyQ.js +1 -0
- package/dist/public/assets/agent-diff-store-aummoA4y.js +1 -0
- package/dist/public/assets/angular-html-CP1Mtl49.js +1 -0
- package/dist/public/assets/angular-ts-BavDNamq.js +1 -0
- package/dist/public/assets/apl-CwY4ECmV.js +1 -0
- package/dist/public/assets/ar-SA-PQUY64WN-Cf3y4h_F.js +10 -0
- package/dist/public/assets/arc-Cb8qga6D.js +1 -0
- package/dist/public/assets/architecture-TIHT7OUA-C1pLiDqc.js +1 -0
- package/dist/public/assets/architectureDiagram-T3A2C74G-Ds3Z2SpG.js +36 -0
- package/dist/public/assets/astro-B6K1nuLY.js +1 -0
- package/dist/public/assets/auth-state-cache-lm2-OPjo.js +11 -0
- package/dist/public/assets/az-AZ-OXJXL76K-BSEOh_uA.js +1 -0
- package/dist/public/assets/bg-BG-W2GKIJDF-Y8VnAF_2.js +5 -0
- package/dist/public/assets/blade-Bp6pK5jj.js +1 -0
- package/dist/public/assets/blockDiagram-VBNYF7ZC-CSBpuBOt.js +132 -0
- package/dist/public/assets/bn-BD-TGL7M4PJ-yFyHqrho.js +3 -0
- package/dist/public/assets/bn-IN-BKETKYEH-ChcOXMze.js +3 -0
- package/dist/public/assets/bsl-32V029sh.js +1 -0
- package/dist/public/assets/bug-report-send-manager-Bmqwf2M5.js +1 -0
- package/dist/public/assets/c4Diagram-5PPSVZJV-BP_WoVSe.js +10 -0
- package/dist/public/assets/ca-ES-LD5SCRVV-CPS5oast.js +8 -0
- package/dist/public/assets/cairo-o-HrIt-U.js +1 -0
- package/dist/public/assets/calendar-DH4UeMHI.js +1 -0
- package/dist/public/assets/channel-6pU8Q8Gi.js +1 -0
- package/dist/public/assets/chunk-2GRJ4B5K-CFDQaHDR.js +1 -0
- package/dist/public/assets/chunk-2Q5K7J3B-C9tRIdM0.js +1 -0
- package/dist/public/assets/chunk-3NCLNEKW-DcH67JIX.js +1 -0
- package/dist/public/assets/chunk-4I5QYGJK-Bj6mWET0.js +1 -0
- package/dist/public/assets/chunk-5FCAYU7R-DwnzyNSB.js +1 -0
- package/dist/public/assets/chunk-5HE753X5-LZbvfCWx.js +1 -0
- package/dist/public/assets/chunk-5JV3BV7I-aDb0BKiq.js +1 -0
- package/dist/public/assets/chunk-5RXB4S5H-BJZ-Tl5_.js +231 -0
- package/dist/public/assets/chunk-5TONJI2A-CFkFFP0S.js +2 -0
- package/dist/public/assets/chunk-5VM5RSS4-LjzhGuuy.js +15 -0
- package/dist/public/assets/chunk-6Q2QTUOP-BVZILbkq.js +88 -0
- package/dist/public/assets/chunk-7BUUIJ7U-lDb_6iDm.js +1 -0
- package/dist/public/assets/chunk-7Z6QIM7H-CwVAvQR-.js +10 -0
- package/dist/public/assets/chunk-BIQX33UG-CZ9Id9SI.js +1 -0
- package/dist/public/assets/chunk-BO2N2NFS-C0xtDToB.js +103 -0
- package/dist/public/assets/chunk-CQNSW5MT-CG9Pl4cI.js +1 -0
- package/dist/public/assets/chunk-CYSBUYHQ-DkvnDBvT.js +1 -0
- package/dist/public/assets/chunk-EMLP6XTP-SRJUXgDp.js +1 -0
- package/dist/public/assets/chunk-GF5L2VYU-Dnb2WPRn.js +206 -0
- package/dist/public/assets/chunk-I66GZJ75-CaZJWhBB.js +127 -0
- package/dist/public/assets/chunk-J7OUQ5F2-DnB2_gaW.js +2 -0
- package/dist/public/assets/chunk-JG7HCLWE-CS_172FL.js +2 -0
- package/dist/public/assets/chunk-JQJVKLGR-feqZZz4U.js +156 -0
- package/dist/public/assets/chunk-JWPE2WC7-CAoEyrsi.js +1 -0
- package/dist/public/assets/chunk-KBJHAD2P-BwRe1DMX.js +1 -0
- package/dist/public/assets/chunk-MOZMSUNE-Cor0T3A_.js +1 -0
- package/dist/public/assets/chunk-NSK5VX7P-DH87SvdK.js +2 -0
- package/dist/public/assets/chunk-OSBZ3O6U-Bu3prE_J.js +1 -0
- package/dist/public/assets/chunk-QBLGF6JB-D7kO3ogb.js +1 -0
- package/dist/public/assets/chunk-QR6OTTB3-B9TBIcP3.js +62 -0
- package/dist/public/assets/chunk-R7FJI6CG-DZh7FnPp.js +1 -0
- package/dist/public/assets/chunk-RM4UPSZO-DOTPgt8P.js +35 -0
- package/dist/public/assets/chunk-RYQCIY6F-Cgx1TVBL.js +1 -0
- package/dist/public/assets/chunk-U6XO7XAA-BY-vcf-i.js +2 -0
- package/dist/public/assets/chunk-UBXNYLIW-DP3Ih57B.js +1 -0
- package/dist/public/assets/chunk-W5SLKNZC-C0M5YSmU.js +1 -0
- package/dist/public/assets/chunk-WRU74C26-HdWASCZy.js +70 -0
- package/dist/public/assets/chunk-XXDRQBXY-CXAMsDZf.js +1 -0
- package/dist/public/assets/chunk-YOTPTUD7-BRmjMAlO.js +1 -0
- package/dist/public/assets/chunk-Z5NKEFVG-DsHzhgWS.js +22 -0
- package/dist/public/assets/chunk-ZIRB5QZD-CCZkLoft.js +32 -0
- package/dist/public/assets/classDiagram-JCYQIIEL-BV824rB1.js +1 -0
- package/dist/public/assets/classDiagram-v2-OCEON4UE-CgG4K2nf.js +1 -0
- package/dist/public/assets/cm-theme-CwmFYVNi.js +1 -0
- package/dist/public/assets/cobol-BuWL4y-f.js +1 -0
- package/dist/public/assets/code-highlighter-impl-eIFcwxp_.js +1 -0
- package/dist/public/assets/coffee-B7YD86Y8.js +1 -0
- package/dist/public/assets/comment-chips-Da3EBbGr.js +5 -0
- package/dist/public/assets/config-provider-2QXsvFX3.js +4 -0
- package/dist/public/assets/cose-bilkent-JH36ORCC-_GRuV-Uv.js +1 -0
- package/dist/public/assets/cpp-Co5AvCwe.js +1 -0
- package/dist/public/assets/crystal-DBAVN_pI.js +1 -0
- package/dist/public/assets/cs-CZ-OFPU5DBV-BjXNOnvb.js +7 -0
- package/dist/public/assets/cynefin-VYW2F7L2-CNQh7ae5.js +1 -0
- package/dist/public/assets/cynefinDiagram-MW4NZA55-C6Z73TWC.js +62 -0
- package/dist/public/assets/da-DK-FRDJFYWF-CKbZ-9Cn.js +2 -0
- package/dist/public/assets/dagre-VZM6K2ZE-BIiMIqQp.js +4 -0
- package/dist/public/assets/dagre-vG_ZIpF2.js +1 -0
- package/dist/public/assets/de-CH-ZG7H3QK3-Db6TTrTg.js +11 -0
- package/dist/public/assets/de-DE-SIJYH4IH-DmuqCK1U.js +11 -0
- package/dist/public/assets/diagnostic-breadcrumb-BjDNQhui.js +1 -0
- package/dist/public/assets/diagram-7IWD3JNH-CUdJOUxC.js +30 -0
- package/dist/public/assets/diagram-B4RE2ZJO-jGSSHj0Z.js +3 -0
- package/dist/public/assets/diagram-LBJQPF4R-IpZPHU-d.js +24 -0
- package/dist/public/assets/diagram-Q27KOJAE-By7nL7U8.js +24 -0
- package/dist/public/assets/diagram-UB23O5K3-QsmWtlNS.js +41 -0
- package/dist/public/assets/dist-B-rOxt7_.js +19 -0
- package/dist/public/assets/dist-BVlXaanp.js +1 -0
- package/dist/public/assets/dist-Bn5WIaKA.js +1 -0
- package/dist/public/assets/dist-BrW_Vaw8.js +1 -0
- package/dist/public/assets/dist-C-_cB73G.js +1 -0
- package/dist/public/assets/dist-CKx7qIeD.js +6 -0
- package/dist/public/assets/dist-CVYbGDxf.js +23 -0
- package/dist/public/assets/dist-CoHX6EXK.js +1 -0
- package/dist/public/assets/dist-DD23qI37.js +1 -0
- package/dist/public/assets/dist-DDtYZwaK.js +1 -0
- package/dist/public/assets/dist-DQmlLKXk.js +1 -0
- package/dist/public/assets/dist-Dt26oMwk.js +1 -0
- package/dist/public/assets/dist-DzgSQ1Ui.js +1 -0
- package/dist/public/assets/dist-F74CvEkF.js +2 -0
- package/dist/public/assets/dist-kpg7slNG.js +9 -0
- package/dist/public/assets/dist-zgu6nv33.js +124 -0
- package/dist/public/assets/doc-undo-manager-oaq6VHBD.js +1 -0
- package/dist/public/assets/ebnfDiagram-BXEA7PRR-ByDMtLg2.js +1 -0
- package/dist/public/assets/edge-pl4gdtgE.js +1 -0
- package/dist/public/assets/el-GR-IEE2CGI2-BHLnyN1G.js +7 -0
- package/dist/public/assets/elixir-CbDsY8aJ.js +1 -0
- package/dist/public/assets/elm-VcCv3Ynn.js +1 -0
- package/dist/public/assets/en-SJ2YIMFF-BJvIUfmi.js +1 -0
- package/dist/public/assets/erDiagram-JOGREHBK-Derdr79g.js +85 -0
- package/dist/public/assets/erb-ebRlEcuE.js +1 -0
- package/dist/public/assets/erlang-Di3DOfq0.js +1 -0
- package/dist/public/assets/es-ES-TVVPWKV5-BBc3A9gg.js +12 -0
- package/dist/public/assets/eu-ES-CGBMFQDT-BSYX0P-c.js +8 -0
- package/dist/public/assets/eventmodeling-45OFAUF4-DMubwVZ2.js +1 -0
- package/dist/public/assets/fa-IR-IE6XAPR4-BH9PqoDH.js +9 -0
- package/dist/public/assets/fi-FI-P7TKNHRM-By0-YQix.js +6 -0
- package/dist/public/assets/file-tree-adapter-CrD2Zh_o.js +1 -0
- package/dist/public/assets/flowDiagram-UKHOOZJN-Hj6DsSbj.js +1 -0
- package/dist/public/assets/fortran-fixed-form-DL4N4DbJ.js +1 -0
- package/dist/public/assets/fr-FR-QI2XZNT7-D_IgZZbj.js +12 -0
- package/dist/public/assets/fsharp-IqXwEPW0.js +1 -0
- package/dist/public/assets/ganttDiagram-PKOTCBZU-Cf0lzFig.js +292 -0
- package/dist/public/assets/gdresource-BMZ65Z4O.js +1 -0
- package/dist/public/assets/git-commit-BTboO6zN.js +1 -0
- package/dist/public/assets/git-rebase-DFpAMrFQ.js +1 -0
- package/dist/public/assets/gitGraph-TEB2WS4Q-C8ClyCNz.js +1 -0
- package/dist/public/assets/gitGraphDiagram-DS77QQ5N-39NyGPSn.js +106 -0
- package/dist/public/assets/gl-ES-TLYCNOZZ-Vd21X1VX.js +6 -0
- package/dist/public/assets/glimmer-js-B64v5Ccu.js +1 -0
- package/dist/public/assets/glimmer-ts-3BT-lhmA.js +1 -0
- package/dist/public/assets/glsl-eayQssr_.js +1 -0
- package/dist/public/assets/graphlib-BuxGseI0.js +1 -0
- package/dist/public/assets/graphql-Bc6mT6eA.js +1 -0
- package/dist/public/assets/hack-5nd6xj4J.js +1 -0
- package/dist/public/assets/haml-DTYq44FV.js +1 -0
- package/dist/public/assets/handlebars-MhWmwyXW.js +1 -0
- package/dist/public/assets/he-IL-ZX43XLGP-CIFW1E-j.js +9 -0
- package/dist/public/assets/hi-IN-UTYRMTUF-B__oo3hV.js +3 -0
- package/dist/public/assets/highlighted-body-OFNGDK62-CHKfPvoh.js +1 -0
- package/dist/public/assets/html-CEwyO5au.js +1 -0
- package/dist/public/assets/html-derivative-B3OWdEJE.js +1 -0
- package/dist/public/assets/http-tVtAqPuz.js +1 -0
- package/dist/public/assets/hu-HU-AJOSEBW6-jnjAQMvn.js +3 -0
- package/dist/public/assets/hurl-disgV3HC.js +1 -0
- package/dist/public/assets/hxml-BzA03VZF.js +1 -0
- package/dist/public/assets/id-ID-ETLTVG6C-Cpr5tmb0.js +8 -0
- package/dist/public/assets/image-ZVKINSPA-BpfdJ5cL.js +1 -0
- package/dist/public/assets/index-m11UgwXb.js +2205 -0
- package/dist/public/assets/info-DKCQHKI2-DbyDDTJw.js +1 -0
- package/dist/public/assets/infoDiagram-6WML65LV-Dc0eyeuL.js +2 -0
- package/dist/public/assets/input-group-D2I6Z888.js +1 -0
- package/dist/public/assets/ishikawaDiagram-WSZJBQD7-BxCoecaZ.js +70 -0
- package/dist/public/assets/it-IT-B4B6TP6L-BpBsg82c.js +12 -0
- package/dist/public/assets/ja-JP-IYKVURR5-BDawe607.js +12 -0
- package/dist/public/assets/jinja-C7ubQhj3.js +1 -0
- package/dist/public/assets/jison-DntQ0i9o.js +1 -0
- package/dist/public/assets/journeyDiagram-NVQOT4AX-DeGHV9Ir.js +139 -0
- package/dist/public/assets/julia-BM41Xd_y.js +1 -0
- package/dist/public/assets/just-CISmca9E.js +1 -0
- package/dist/public/assets/kaa-SE2BUIKX-B7PBi5ly.js +1 -0
- package/dist/public/assets/kab-KAB-Y3GLKXLR-Cn9EBhN0.js +4 -0
- package/dist/public/assets/kanban-definition-27J2QSJJ-DmnsA8ms.js +89 -0
- package/dist/public/assets/kk-KZ-ABWUFVOH-juC3EbwA.js +1 -0
- package/dist/public/assets/km-KH-PCWDKPHP-DPS4hSj8.js +7 -0
- package/dist/public/assets/ko-KR-7JQDXKGM-Do_yR66q.js +5 -0
- package/dist/public/assets/ku-TR-NAH2Q5B7-CKfmYJpF.js +6 -0
- package/dist/public/assets/latex-Be-RzNrR.js +1 -0
- package/dist/public/assets/launch-agent-thread-BTIPj2wd.js +1 -0
- package/dist/public/assets/line-YVIy1wOD.js +1 -0
- package/dist/public/assets/linear-B2InR6dg.js +1 -0
- package/dist/public/assets/liquid-DVDdyrXe.js +1 -0
- package/dist/public/assets/lt-LT-VQFYRSNQ-BJNsspgd.js +3 -0
- package/dist/public/assets/lua-CSSEleUs.js +1 -0
- package/dist/public/assets/lv-LV-T62VSYUM-CQDr3iF9.js +4 -0
- package/dist/public/assets/map-CD98Ozq0.js +1 -0
- package/dist/public/assets/markdownlint-rule-browser-BoWbwkTH.js +1 -0
- package/dist/public/assets/marko-CSNj8OQd.js +1 -0
- package/dist/public/assets/mdc-CZwCt6pW.js +1 -0
- package/dist/public/assets/mermaid-GHXKKRXX-DkHg8G_u.js +1 -0
- package/dist/public/assets/mermaid-parser.core-DqE1g3lp.js +4 -0
- package/dist/public/assets/mermaid.core-B051Z60F.js +1 -0
- package/dist/public/assets/mermaid.core-BLEkvFrs.js +11 -0
- package/dist/public/assets/mindmap-definition-FAOFIHXS-BFX-ZdPB.js +96 -0
- package/dist/public/assets/mr-IN-V4FHLCJE-C988xPro.js +9 -0
- package/dist/public/assets/my-MM-E3SQ6E54-BAyOKJzL.js +1 -0
- package/dist/public/assets/navigation-targets-CvNinRyp.js +1 -0
- package/dist/public/assets/nb-NO-MLNOFN5H-Drpolmt1.js +8 -0
- package/dist/public/assets/nextflow-YbDX0-hA.js +1 -0
- package/dist/public/assets/nginx-BirRjk_C.js +1 -0
- package/dist/public/assets/nim-DPc5JOHm.js +1 -0
- package/dist/public/assets/nl-NL-D5L3ZV4M-CAnUp8jY.js +13 -0
- package/dist/public/assets/nn-NO-NNHDGPKB-CKhgeX-F.js +4 -0
- package/dist/public/assets/now-CW3CftQy.js +1 -0
- package/dist/public/assets/oc-FR-DWCRF55G-Bgzcsbgb.js +4 -0
- package/dist/public/assets/ordinal-CN-svfzK.js +1 -0
- package/dist/public/assets/pa-IN-3JSAY44M-Bz1QUH-5.js +4 -0
- package/dist/public/assets/packet-7NZHBO7P-DCclLwLQ.js +1 -0
- package/dist/public/assets/pegDiagram-VL7TDLO6-CSaClogP.js +1 -0
- package/dist/public/assets/pending-receive-nav-store-BLPPywaR.js +1 -0
- package/dist/public/assets/percentages-ETZPVQEE-QwfLjMJ6.js +1 -0
- package/dist/public/assets/perl-BFUmRKXF.js +1 -0
- package/dist/public/assets/php-39i11mGj.js +1 -0
- package/dist/public/assets/pie-RZYD4A2V-Cw9uCaVx.js +1 -0
- package/dist/public/assets/pieDiagram-7S7Q4E2Y-C3bP9bTv.js +39 -0
- package/dist/public/assets/pierre-theme-9p_fs-tU.js +1376 -0
- package/dist/public/assets/pl-PL-ACURYKP3-BtqOxby0.js +12 -0
- package/dist/public/assets/preferred-session-events-DgZTy0EL.js +1 -0
- package/dist/public/assets/prod-C_R-B8wD.js +137 -0
- package/dist/public/assets/progress-CbsOEU6k.js +9 -0
- package/dist/public/assets/project-paths-BwLVIblW.js +1 -0
- package/dist/public/assets/prop-types-DI-i5R8d.js +1 -0
- package/dist/public/assets/pt-BR-LOX7MLGD-BrT7JQvD.js +10 -0
- package/dist/public/assets/pt-PT-CZ2U2RFQ-DMcKaZQe.js +12 -0
- package/dist/public/assets/pug-CimIaSu0.js +1 -0
- package/dist/public/assets/qml-Bv9AoC75.js +1 -0
- package/dist/public/assets/quadrantDiagram-CIZ2JOQS-COCvsgdV.js +7 -0
- package/dist/public/assets/radar-I7S5WNFK-DAegoO3w.js +1 -0
- package/dist/public/assets/railroad-3IZDKUUU-BRT1hiU6.js +1 -0
- package/dist/public/assets/railroad-abnf-AHOZXSZD-B3IRo6Bt.js +1 -0
- package/dist/public/assets/railroad-ebnf-EBAXGLYW-DcVN2KRu.js +1 -0
- package/dist/public/assets/railroad-peg-LSFZ7HO6-DX8xFRrc.js +1 -0
- package/dist/public/assets/railroadDiagram-AXF67PYL-BuxO7nh8.js +1 -0
- package/dist/public/assets/razor-CXIgy4pb.js +1 -0
- package/dist/public/assets/requirementDiagram-LRYGKXZP-0wcI6Asd.js +84 -0
- package/dist/public/assets/ro-RO-2HECL2X6-DIW06lv0.js +12 -0
- package/dist/public/assets/rst--8Ov2Mb0.js +1 -0
- package/dist/public/assets/ru-RU-HAYNXO46-oZHwU2nj.js +10 -0
- package/dist/public/assets/ruby-Dut0pMXE.js +1 -0
- package/dist/public/assets/sankeyDiagram-W5VNT64P-C9g-FrhL.js +40 -0
- package/dist/public/assets/sas-DY8AiprC.js +1 -0
- package/dist/public/assets/scss-D5sbaF1c.js +1 -0
- package/dist/public/assets/selection-context-Djo41sqY.js +4 -0
- package/dist/public/assets/sequenceDiagram-SI44F4Z6-y_Vxvbfz.js +162 -0
- package/dist/public/assets/shaderlab-CQObPJaw.js +1 -0
- package/dist/public/assets/shellsession-D_eNs3bE.js +1 -0
- package/dist/public/assets/si-LK-W5KNS4H6-BqXVLoCL.js +1 -0
- package/dist/public/assets/sizeCapture-X5ZJPWSS-Jvvkqia3.js +1 -0
- package/dist/public/assets/sk-SK-7K2CFGDV-BvjpibKy.js +7 -0
- package/dist/public/assets/sl-SI-OXV2QZWW-BUga8Ktl.js +6 -0
- package/dist/public/assets/soy-7qeNzvQ-.js +1 -0
- package/dist/public/assets/sparql-B3kY7JWn.js +1 -0
- package/dist/public/assets/src-BmrKqIrD.js +2 -0
- package/dist/public/assets/src-DXPuodFp.js +1 -0
- package/dist/public/assets/startup-marks--VxxzHYd.js +1 -0
- package/dist/public/assets/stata-DvllnwWq.js +1 -0
- package/dist/public/assets/stateDiagram-OKZ733FA-DfuHN4bm.js +1 -0
- package/dist/public/assets/stateDiagram-v2-UEYNNEHI-DSD8B0YA.js +1 -0
- package/dist/public/assets/subset-shared.chunk-C9wphtWR.js +1 -0
- package/dist/public/assets/subset-worker.chunk-C8nyHhDh.js +1 -0
- package/dist/public/assets/surrealql-CRgMd6QC.js +1 -0
- package/dist/public/assets/sv-SE-JTOBZRGL-DGFmDyvk.js +12 -0
- package/dist/public/assets/svelte-C9eVKbbK.js +1 -0
- package/dist/public/assets/swimlanes-SLNWSIFB-C-VGSUTX.js +2 -0
- package/dist/public/assets/swimlanesDiagram-ULZ7WXOC-D1HG3hQV.js +8 -0
- package/dist/public/assets/ta-IN-KFAVKXGT-_r_hO-SX.js +6 -0
- package/dist/public/assets/tag-pill-input-L67HH_ro.js +1 -0
- package/dist/public/assets/target-navigation-intent-DAHHkidf.js +1 -0
- package/dist/public/assets/telemetry-impl-Ba0vOMCN.js +2 -0
- package/dist/public/assets/telemetry-startup-bvdTP93D.js +1 -0
- package/dist/public/assets/templ-D4thRGBp.js +1 -0
- package/dist/public/assets/terminal-launch-events-C87UeOVG.js +1 -0
- package/dist/public/assets/terminal-telemetry-rnrKpL-Q.js +1 -0
- package/dist/public/assets/tex-CdivdP-Y.js +1 -0
- package/dist/public/assets/text-viewer-languages-B0aVR_01.js +2 -0
- package/dist/public/assets/th-TH-VDMSCPDL-ityDdOua.js +1 -0
- package/dist/public/assets/timeline-definition-Z64GVDOM-BCjQEjPs.js +120 -0
- package/dist/public/assets/tr-TR-CEZ6GX45-D_r3pTQk.js +4 -0
- package/dist/public/assets/treeView-QDETBFTQ-DHf70Q-N.js +1 -0
- package/dist/public/assets/treemap-6X3UGDF4-DqVNy69_.js +1 -0
- package/dist/public/assets/ts-tags-Crcmhbt0.js +1 -0
- package/dist/public/assets/twig-NuiikSM7.js +1 -0
- package/dist/public/assets/typing-burst-detector-DMDqi5dA.js +8 -0
- package/dist/public/assets/uk-UA-Q3H3OXQC-CuveKljv.js +6 -0
- package/dist/public/assets/uninstall-CjAeJKDn.js +1 -0
- package/dist/public/assets/use-activity-panel-DC73mzAa.js +1 -0
- package/dist/public/assets/use-apply-config-language-7Y1kLw_A.js +2 -0
- package/dist/public/assets/use-live-xterm-theme-BDq8DzaU.js +1 -0
- package/dist/public/assets/use-open-skill-BBWxh7W0.js +1 -0
- package/dist/public/assets/use-skill-origin-B1YmBhKN.js +1 -0
- package/dist/public/assets/use-skills-CYMgz3tV.js +1 -0
- package/dist/public/assets/use-terminal-enabled-BhsY-vIc.js +1 -0
- package/dist/public/assets/use-timeline-entry-diff-DSNKKDKd.js +5 -0
- package/dist/public/assets/uz-UZ-NGCSWWPX-Dqsi2Oq4.js +1 -0
- package/dist/public/assets/vennDiagram-T6HMQDX7-HTVT56oY.js +34 -0
- package/dist/public/assets/vi-VN-P3NDEVPS-tIhiBLAT.js +7 -0
- package/dist/public/assets/vue-DvKjlWdX.js +1 -0
- package/dist/public/assets/vue-html-BMvKPpzh.js +1 -0
- package/dist/public/assets/vue-vine-Da_wNI8a.js +1 -0
- package/dist/public/assets/wardley-OPB4EBWU-AI6mcheA.js +1 -0
- package/dist/public/assets/wardleyDiagram-T6FBY63Y-CVEQjnbz.js +78 -0
- package/dist/public/assets/xml-Dc52HcSm.js +1 -0
- package/dist/public/assets/xsl-B-ccQehP.js +1 -0
- package/dist/public/assets/xychartDiagram-ELKLHX3M-fr8zjMkE.js +7 -0
- package/dist/public/assets/zh-CN-SS3O57GA-By1E_Y2f.js +11 -0
- package/dist/public/assets/zh-HK-LWJT3VCF-DcKeQdCC.js +1 -0
- package/dist/public/assets/zh-TW-VJXC72RT-BVAS5E62.js +13 -0
- package/dist/public/index.html +103 -102
- package/dist/public/uninstall.html +6 -6
- package/dist/registry-probes-DY7cv23M.mjs +17 -0
- package/dist/removal-file-path-cRE_JkoU.mjs +1 -0
- package/dist/repair-launch-json-CTyhVHJB.mjs +1 -0
- package/dist/repair-mcp-configs-DuNUZGcy.mjs +1 -0
- package/dist/src-B8oEEvIG.mjs +1 -0
- package/dist/src-DxDKir3c.mjs +11 -0
- package/dist/start-CMFC_nE6.mjs +5 -0
- package/dist/start-De9OZbwZ.mjs +1 -0
- package/package.json +4 -4
- package/dist/constants-Dfsa9Tly.mjs +0 -1
- package/dist/init-C8xK8YsJ.mjs +0 -693
- package/dist/init-D45tKYIg.mjs +0 -1
- package/dist/launch-json-removal-C_A2DphI.mjs +0 -1
- package/dist/loader-CN19l16Q.mjs +0 -1
- package/dist/loader-asslhshx.mjs +0 -1
- package/dist/preview-DRbZ1DMt.mjs +0 -1
- package/dist/preview-Du4mTEY7.mjs +0 -2
- package/dist/public/assets/ActivityModeContent-BgrL_tw0.js +0 -1
- package/dist/public/assets/ActivityPanelDiffView-DwiYWfsS.js +0 -1
- package/dist/public/assets/AddPropertiesButton-DKDibL69.js +0 -2
- package/dist/public/assets/AgentDiffPane-hZzBJMez.js +0 -2
- package/dist/public/assets/AgentIconCluster-cERwj1ys.js +0 -1
- package/dist/public/assets/AgentThreadClientBinder-CYSP4btM.js +0 -1
- package/dist/public/assets/AppMenubar-CZfNAtvi.js +0 -1
- package/dist/public/assets/BugReportHistory-BqVQCJMX.js +0 -1
- package/dist/public/assets/BugReportHistoryDialog-CBQmc7nD.js +0 -1
- package/dist/public/assets/CodeMirrorEditor-UCMRAMCV-DDtLB6bl.js +0 -1
- package/dist/public/assets/CodeMirrorPropInput-lKhM-DuQ.js +0 -3
- package/dist/public/assets/ConsentDialogBody--x6DttEH.js +0 -2
- package/dist/public/assets/DiffViewBoundary-CjVn-oce.js +0 -29
- package/dist/public/assets/DocumentContext-k7E9BUpN.js +0 -39
- package/dist/public/assets/EditorModeToggle-Dim82S3z.js +0 -1
- package/dist/public/assets/EnableSyncConfirmDialog-DSsid2mK.js +0 -1
- package/dist/public/assets/ExcalidrawDocEditor-DvI20tIO.js +0 -1
- package/dist/public/assets/FeedbackForm-CE65yJQc.js +0 -1
- package/dist/public/assets/GraphPanel-qgZVtAYl.js +0 -44
- package/dist/public/assets/ImageAttachments-BUEoak09.js +0 -1
- package/dist/public/assets/ImportSkillDialog-DmIceX9v.js +0 -1
- package/dist/public/assets/LintConfigEditor-Cv11Fis4.js +0 -1
- package/dist/public/assets/ManagedArtifactProperties-C-iPKFMo.js +0 -1
- package/dist/public/assets/ManagedArtifactProperties-Ufukx4Uo.js +0 -1
- package/dist/public/assets/McpConsentDialogBody-D6uKpnd7.js +0 -1
- package/dist/public/assets/Mermaid-DF-zF9ZQ.js +0 -2
- package/dist/public/assets/MermaidDocEditor-C3S6Pso8.js +0 -1
- package/dist/public/assets/MultiFileDiff-Blb8I6mV.js +0 -1
- package/dist/public/assets/OpenInAgentMenuItem-CGwHGCv5.js +0 -1
- package/dist/public/assets/PropertyDisplayRow-CnSByLHQ.js +0 -2
- package/dist/public/assets/RegisteredAgentIcon-C1-3G6U_.js +0 -1
- package/dist/public/assets/ReportBugDialogBody-m75G3xh-.js +0 -3
- package/dist/public/assets/ReportBugMenuTrigger-DeqAiH6B.js +0 -2
- package/dist/public/assets/RowDisclosure-DMbI1q_e.js +0 -1
- package/dist/public/assets/SchemaConfigEditor-DIFuSitJ.js +0 -1
- package/dist/public/assets/SessionsHost-BkRXbbP3.js +0 -2
- package/dist/public/assets/SettingsDialogBody-gwlWw6ee.js +0 -12
- package/dist/public/assets/ShareBranchSwitchDialog-CPQXouNs.js +0 -1
- package/dist/public/assets/ShareReceiveDialog-BOFHrMij.js +0 -1
- package/dist/public/assets/ShareReceiveMissDialog-DLscol0t.js +0 -1
- package/dist/public/assets/SkillEditBanner-D6Dtu8c8.js +0 -1
- package/dist/public/assets/SkillForkDialog-DmgM-ku1.js +0 -1
- package/dist/public/assets/SkillInstallMenu-ysiXTvdY.js +0 -2
- package/dist/public/assets/SkillOriginInline-Cg6SmepR.js +0 -2
- package/dist/public/assets/SkillToolbarControls-Dxooq3rz.js +0 -1
- package/dist/public/assets/SkillUpdateConflictDialog-DrD7rrxa.js +0 -1
- package/dist/public/assets/SourceEditor-hTmtFaNS.js +0 -1
- package/dist/public/assets/TerminalPanel-C-NyJi62.js +0 -146
- package/dist/public/assets/TerminalWindowApp-CtZg_kya.js +0 -1
- package/dist/public/assets/TextDocEditor-DvwmVIU_.js +0 -1
- package/dist/public/assets/ThreadView-Cmire9LW.js +0 -20
- package/dist/public/assets/TimelineDiffPane-c5Vsmuk-.js +0 -2
- package/dist/public/assets/abnfDiagram-N423BO3Z-DQ49-e1N.js +0 -1
- package/dist/public/assets/agent-connection-status-CeUzHEIL.js +0 -1
- package/dist/public/assets/agent-diff-store-CT9M8rFt.js +0 -1
- package/dist/public/assets/angular-html-tyhcvWsQ.js +0 -1
- package/dist/public/assets/angular-ts-BHZ4OQKw.js +0 -1
- package/dist/public/assets/apl-DqcPPf8D.js +0 -1
- package/dist/public/assets/ar-SA-PQUY64WN-YEiz9y0l.js +0 -10
- package/dist/public/assets/arc-gXDVqTiK.js +0 -1
- package/dist/public/assets/architecture-TIHT7OUA-CvFZ3nkz.js +0 -1
- package/dist/public/assets/architectureDiagram-T3A2C74G-CD_QVvnW.js +0 -36
- package/dist/public/assets/astro-Dkys2H-7.js +0 -1
- package/dist/public/assets/auth-state-cache-BE83fdOk.js +0 -11
- package/dist/public/assets/az-AZ-OXJXL76K-ClB6aj0L.js +0 -1
- package/dist/public/assets/bg-BG-W2GKIJDF-CDxnBgZO.js +0 -5
- package/dist/public/assets/blade-CR51HZVp.js +0 -1
- package/dist/public/assets/blockDiagram-VBNYF7ZC-BjfcdSuI.js +0 -132
- package/dist/public/assets/bn-BD-TGL7M4PJ-BIR4lN3h.js +0 -3
- package/dist/public/assets/bn-IN-BKETKYEH-DPztG3Wb.js +0 -3
- package/dist/public/assets/bsl-D3v8IZXP.js +0 -1
- package/dist/public/assets/bug-report-send-manager-C-miBdjz.js +0 -1
- package/dist/public/assets/c4Diagram-5PPSVZJV-DoUauXNb.js +0 -10
- package/dist/public/assets/ca-ES-LD5SCRVV-CEGdddhU.js +0 -8
- package/dist/public/assets/cairo-CHO9PFIl.js +0 -1
- package/dist/public/assets/calendar-Ds5kEtQm.js +0 -1
- package/dist/public/assets/channel-CYsDo3ez.js +0 -1
- package/dist/public/assets/chunk-2GRJ4B5K-BclpCc-b.js +0 -1
- package/dist/public/assets/chunk-2Q5K7J3B-BiC2MxHz.js +0 -1
- package/dist/public/assets/chunk-3NCLNEKW-BDcTgR2u.js +0 -1
- package/dist/public/assets/chunk-4I5QYGJK-Cs0_7suI.js +0 -1
- package/dist/public/assets/chunk-5FCAYU7R-Byi9fe6J.js +0 -1
- package/dist/public/assets/chunk-5HE753X5-DFfoFOPg.js +0 -1
- package/dist/public/assets/chunk-5JV3BV7I-DTlyoT1V.js +0 -1
- package/dist/public/assets/chunk-5RXB4S5H-BQaWgUQw.js +0 -231
- package/dist/public/assets/chunk-5TONJI2A-DVPLg1BO.js +0 -2
- package/dist/public/assets/chunk-5VM5RSS4-C9QH6fG6.js +0 -15
- package/dist/public/assets/chunk-6Q2QTUOP-CODZaw33.js +0 -88
- package/dist/public/assets/chunk-7BUUIJ7U-DQkU7wyM.js +0 -1
- package/dist/public/assets/chunk-7Z6QIM7H-CMYC6X6E.js +0 -10
- package/dist/public/assets/chunk-BIQX33UG-CkCtnkb_.js +0 -1
- package/dist/public/assets/chunk-BO2N2NFS-DKulHdwE.js +0 -103
- package/dist/public/assets/chunk-CQNSW5MT-CPnmdTxj.js +0 -1
- package/dist/public/assets/chunk-CYSBUYHQ-KeooFtrp.js +0 -1
- package/dist/public/assets/chunk-EMLP6XTP-Cpg6P_x_.js +0 -1
- package/dist/public/assets/chunk-GF5L2VYU-DqaldnvL.js +0 -206
- package/dist/public/assets/chunk-I66GZJ75-Bnx0TlxG.js +0 -127
- package/dist/public/assets/chunk-J7OUQ5F2-E_n0qxWa.js +0 -2
- package/dist/public/assets/chunk-JG7HCLWE-dkWcqv2s.js +0 -2
- package/dist/public/assets/chunk-JQJVKLGR-C92iji4t.js +0 -156
- package/dist/public/assets/chunk-JWPE2WC7-BXZpsuVb.js +0 -1
- package/dist/public/assets/chunk-KBJHAD2P-DGW5aUAs.js +0 -1
- package/dist/public/assets/chunk-MOZMSUNE-C77s7qb_.js +0 -1
- package/dist/public/assets/chunk-NSK5VX7P-D7muJB30.js +0 -2
- package/dist/public/assets/chunk-OSBZ3O6U-BHgffWEN.js +0 -1
- package/dist/public/assets/chunk-QBLGF6JB-CZjFXiTa.js +0 -1
- package/dist/public/assets/chunk-QR6OTTB3-B6K-lScb.js +0 -62
- package/dist/public/assets/chunk-R7FJI6CG-uPYx-WmN.js +0 -1
- package/dist/public/assets/chunk-RM4UPSZO-FoyUitTt.js +0 -35
- package/dist/public/assets/chunk-RYQCIY6F-Bx-mdUBi.js +0 -1
- package/dist/public/assets/chunk-U6XO7XAA-d-Ve4-u0.js +0 -2
- package/dist/public/assets/chunk-UBXNYLIW-CURQPEUA.js +0 -1
- package/dist/public/assets/chunk-W5SLKNZC-CVzlVUFy.js +0 -1
- package/dist/public/assets/chunk-WRU74C26-1oF6dXge.js +0 -70
- package/dist/public/assets/chunk-XXDRQBXY-DK-kAk0t.js +0 -1
- package/dist/public/assets/chunk-YOTPTUD7-D9Dulv6h.js +0 -1
- package/dist/public/assets/chunk-Z5NKEFVG-Col1gBNK.js +0 -22
- package/dist/public/assets/chunk-ZIRB5QZD-BrgOHb9l.js +0 -32
- package/dist/public/assets/classDiagram-JCYQIIEL-DHE995QS.js +0 -1
- package/dist/public/assets/classDiagram-v2-OCEON4UE-C6PI7WXf.js +0 -1
- package/dist/public/assets/cm-theme-DEecevl5.js +0 -1
- package/dist/public/assets/cobol-D47-sND6.js +0 -1
- package/dist/public/assets/code-highlighter-impl-CScE2iIc.js +0 -1
- package/dist/public/assets/coffee-TzG5ahFo.js +0 -1
- package/dist/public/assets/comment-chips-B4v46rIE.js +0 -5
- package/dist/public/assets/config-provider-D9Gr6Xo5.js +0 -4
- package/dist/public/assets/cose-bilkent-JH36ORCC-Duj7_9QH.js +0 -1
- package/dist/public/assets/cpp-cwvU5l8X.js +0 -1
- package/dist/public/assets/crystal-CK7i_bQ3.js +0 -1
- package/dist/public/assets/cs-CZ-OFPU5DBV-LKAjVQQA.js +0 -7
- package/dist/public/assets/cynefin-VYW2F7L2-BJ3bQ4x0.js +0 -1
- package/dist/public/assets/cynefinDiagram-MW4NZA55-3Rr5jQ2k.js +0 -62
- package/dist/public/assets/da-DK-FRDJFYWF-e08C5Y3e.js +0 -2
- package/dist/public/assets/dagre-CxxJ07l8.js +0 -1
- package/dist/public/assets/dagre-VZM6K2ZE-Bhjeh-Y6.js +0 -4
- package/dist/public/assets/de-CH-ZG7H3QK3-D-9OL981.js +0 -11
- package/dist/public/assets/de-DE-SIJYH4IH-DvU_Lndd.js +0 -11
- package/dist/public/assets/diagram-7IWD3JNH-CAGemw5c.js +0 -30
- package/dist/public/assets/diagram-B4RE2ZJO-DwDshuyi.js +0 -3
- package/dist/public/assets/diagram-LBJQPF4R-CaZkuIpw.js +0 -24
- package/dist/public/assets/diagram-Q27KOJAE-qC2fO3U6.js +0 -24
- package/dist/public/assets/diagram-UB23O5K3-DlrQdA03.js +0 -41
- package/dist/public/assets/dist-1_Q89fVt.js +0 -1
- package/dist/public/assets/dist-6gT1hn-u.js +0 -1
- package/dist/public/assets/dist-BGSsu1bg.js +0 -6
- package/dist/public/assets/dist-BHqBl3t2.js +0 -124
- package/dist/public/assets/dist-BISe9TCZ.js +0 -1
- package/dist/public/assets/dist-BWW5b2CT.js +0 -2
- package/dist/public/assets/dist-C6AdHsiT.js +0 -1
- package/dist/public/assets/dist-CXHxHLG6.js +0 -23
- package/dist/public/assets/dist-CfSqFgiI.js +0 -1
- package/dist/public/assets/dist-CpmzYutK.js +0 -1
- package/dist/public/assets/dist-D3w2UByS.js +0 -9
- package/dist/public/assets/dist-DRP7FFQ4.js +0 -1
- package/dist/public/assets/dist-DZStwcBj.js +0 -1
- package/dist/public/assets/dist-Dpls7qrX.js +0 -1
- package/dist/public/assets/dist-FrYyCZWh.js +0 -1
- package/dist/public/assets/dist-njfDE5pS.js +0 -19
- package/dist/public/assets/doc-undo-manager-B7qC3Ler.js +0 -1
- package/dist/public/assets/ebnfDiagram-BXEA7PRR-C7jscuyY.js +0 -1
- package/dist/public/assets/edge-QUNYnjn6.js +0 -1
- package/dist/public/assets/el-GR-IEE2CGI2-UMC51L04.js +0 -7
- package/dist/public/assets/elixir-BBYZYlaR.js +0 -1
- package/dist/public/assets/elm-BulIbDbE.js +0 -1
- package/dist/public/assets/en-SJ2YIMFF-Bg1W3dOl.js +0 -1
- package/dist/public/assets/erDiagram-JOGREHBK-Dhz6D7Yi.js +0 -85
- package/dist/public/assets/erb-Cj-_KKPz.js +0 -1
- package/dist/public/assets/erlang-ChbYC39i.js +0 -1
- package/dist/public/assets/es-ES-TVVPWKV5-CIMTZjx5.js +0 -12
- package/dist/public/assets/eu-ES-CGBMFQDT-BUUAVJHd.js +0 -8
- package/dist/public/assets/eventmodeling-45OFAUF4-CjmrBe_s.js +0 -1
- package/dist/public/assets/fa-IR-IE6XAPR4-Cl4DSWkI.js +0 -9
- package/dist/public/assets/fi-FI-P7TKNHRM-CD1XKxmZ.js +0 -6
- package/dist/public/assets/file-tree-adapter-Dkm2Hh29.js +0 -1
- package/dist/public/assets/flowDiagram-UKHOOZJN-B4aQ7zoj.js +0 -1
- package/dist/public/assets/fortran-fixed-form-DbeTrqpV.js +0 -1
- package/dist/public/assets/fr-FR-QI2XZNT7-BSh80zjd.js +0 -12
- package/dist/public/assets/fsharp-BJgju2zn.js +0 -1
- package/dist/public/assets/ganttDiagram-PKOTCBZU-DJdlja7K.js +0 -292
- package/dist/public/assets/gdresource-2U2JZ8ed.js +0 -1
- package/dist/public/assets/git-commit-lNkI1cNS.js +0 -1
- package/dist/public/assets/git-rebase-DNi6cpt4.js +0 -1
- package/dist/public/assets/gitGraph-TEB2WS4Q-BhEEVW8K.js +0 -1
- package/dist/public/assets/gitGraphDiagram-DS77QQ5N-bjer5YHj.js +0 -106
- package/dist/public/assets/gl-ES-TLYCNOZZ-CschwxRk.js +0 -6
- package/dist/public/assets/glimmer-js-CqWhrvRE.js +0 -1
- package/dist/public/assets/glimmer-ts-Cl4jc3Ay.js +0 -1
- package/dist/public/assets/glsl-BJrljcHy.js +0 -1
- package/dist/public/assets/graphlib-CMA9yu2j.js +0 -1
- package/dist/public/assets/graphql-CdiqWiCT.js +0 -1
- package/dist/public/assets/hack-BdIJzNBT.js +0 -1
- package/dist/public/assets/haml-BfrYqosC.js +0 -1
- package/dist/public/assets/handlebars-DLOJsZub.js +0 -1
- package/dist/public/assets/he-IL-ZX43XLGP-Dl0rpIPM.js +0 -9
- package/dist/public/assets/hi-IN-UTYRMTUF-CTiGmTvW.js +0 -3
- package/dist/public/assets/highlighted-body-OFNGDK62-C8NxHVz6.js +0 -1
- package/dist/public/assets/html-ILu4Ou2o.js +0 -1
- package/dist/public/assets/html-derivative-Bujn3YLR.js +0 -1
- package/dist/public/assets/http-BxVSK7Vq.js +0 -1
- package/dist/public/assets/hu-HU-AJOSEBW6-C3bePr4h.js +0 -3
- package/dist/public/assets/hurl-B1k8P-j4.js +0 -1
- package/dist/public/assets/hxml-Cx1LhVUb.js +0 -1
- package/dist/public/assets/id-ID-ETLTVG6C-DWPmW5VT.js +0 -8
- package/dist/public/assets/image-ZVKINSPA-CWKWE5kC.js +0 -1
- package/dist/public/assets/index-SRPfhcDV.js +0 -2205
- package/dist/public/assets/info-DKCQHKI2-BmxlO1aV.js +0 -1
- package/dist/public/assets/infoDiagram-6WML65LV-qsJadI-F.js +0 -2
- package/dist/public/assets/input-group-BJKbZdHx.js +0 -1
- package/dist/public/assets/ishikawaDiagram-WSZJBQD7-dCbaFzIw.js +0 -70
- package/dist/public/assets/it-IT-B4B6TP6L-CmevsSWA.js +0 -12
- package/dist/public/assets/ja-JP-IYKVURR5-Iy9X8e67.js +0 -12
- package/dist/public/assets/jinja-DcWeC1vM.js +0 -1
- package/dist/public/assets/jison-Cp3bC9rO.js +0 -1
- package/dist/public/assets/journeyDiagram-NVQOT4AX-wxOCyW_r.js +0 -139
- package/dist/public/assets/julia-DyO8dmF4.js +0 -1
- package/dist/public/assets/just-PXDPX-KM.js +0 -1
- package/dist/public/assets/kaa-SE2BUIKX-SnKihMic.js +0 -1
- package/dist/public/assets/kab-KAB-Y3GLKXLR-CKewUwoa.js +0 -4
- package/dist/public/assets/kanban-definition-27J2QSJJ-UYnusGKP.js +0 -89
- package/dist/public/assets/kk-KZ-ABWUFVOH-9pG9MlwC.js +0 -1
- package/dist/public/assets/km-KH-PCWDKPHP-BWqouJXL.js +0 -7
- package/dist/public/assets/ko-KR-7JQDXKGM-BIvUdfpO.js +0 -5
- package/dist/public/assets/ku-TR-NAH2Q5B7-vlVe4uZO.js +0 -6
- package/dist/public/assets/latex-B-ElOa2k.js +0 -1
- package/dist/public/assets/launch-agent-thread-DtoLB12k.js +0 -1
- package/dist/public/assets/line-CCYJ3qtm.js +0 -1
- package/dist/public/assets/linear-wLRk1Mk5.js +0 -1
- package/dist/public/assets/liquid-DSHdIKcn.js +0 -1
- package/dist/public/assets/lt-LT-VQFYRSNQ-wqaj_sVI.js +0 -3
- package/dist/public/assets/lua-uuut0le-.js +0 -1
- package/dist/public/assets/lv-LV-T62VSYUM-BNtyl2rQ.js +0 -4
- package/dist/public/assets/map-HibSw9rM.js +0 -1
- package/dist/public/assets/markdownlint-rule-browser-BkoFe8vh.js +0 -1
- package/dist/public/assets/marko-B2ItSRAE.js +0 -1
- package/dist/public/assets/mdc-D8f-QMCR.js +0 -1
- package/dist/public/assets/mermaid-GHXKKRXX-9eTibmB8.js +0 -1
- package/dist/public/assets/mermaid-parser.core-CrMB0N84.js +0 -4
- package/dist/public/assets/mermaid.core-2k0e7aqA.js +0 -11
- package/dist/public/assets/mermaid.core-BZJZtrEQ.js +0 -1
- package/dist/public/assets/mindmap-definition-FAOFIHXS-CCKcHUq5.js +0 -96
- package/dist/public/assets/mr-IN-V4FHLCJE-oMA3egg7.js +0 -9
- package/dist/public/assets/my-MM-E3SQ6E54-BZ-VT2s2.js +0 -1
- package/dist/public/assets/navigation-targets-DNz1-Mdq.js +0 -1
- package/dist/public/assets/nb-NO-MLNOFN5H-CrEw8ViA.js +0 -8
- package/dist/public/assets/nextflow-DU_40_1U.js +0 -1
- package/dist/public/assets/nginx-D6LaZx8i.js +0 -1
- package/dist/public/assets/nim-B_3GUpGU.js +0 -1
- package/dist/public/assets/nl-NL-D5L3ZV4M-DR9i1yif.js +0 -13
- package/dist/public/assets/nn-NO-NNHDGPKB-hPCJnr2h.js +0 -4
- package/dist/public/assets/now-uu92kaf4.js +0 -1
- package/dist/public/assets/oc-FR-DWCRF55G-Dsw7c95A.js +0 -4
- package/dist/public/assets/ordinal-DQysBR80.js +0 -1
- package/dist/public/assets/pa-IN-3JSAY44M-CMK2nRrE.js +0 -4
- package/dist/public/assets/packet-7NZHBO7P-B9z17m58.js +0 -1
- package/dist/public/assets/pegDiagram-VL7TDLO6-DnXF2pPV.js +0 -1
- package/dist/public/assets/pending-receive-nav-store-BBv0eZU0.js +0 -1
- package/dist/public/assets/percentages-ETZPVQEE-BDt5rRQM.js +0 -1
- package/dist/public/assets/perl-CLDNDCLQ.js +0 -1
- package/dist/public/assets/php-BSCAUT8n.js +0 -1
- package/dist/public/assets/pie-RZYD4A2V-CzDE8OGq.js +0 -1
- package/dist/public/assets/pieDiagram-7S7Q4E2Y-CLwunx0y.js +0 -39
- package/dist/public/assets/pierre-theme-DS0n_Eei.js +0 -1376
- package/dist/public/assets/pl-PL-ACURYKP3-s4w2ecZ9.js +0 -12
- package/dist/public/assets/preferred-session-events-DL2IsSJX.js +0 -1
- package/dist/public/assets/prod-DCL1bSJN.js +0 -137
- package/dist/public/assets/progress-ajRGyTS4.js +0 -9
- package/dist/public/assets/project-paths-CFjiYaQI.js +0 -1
- package/dist/public/assets/prop-types-Dp5EeAot.js +0 -1
- package/dist/public/assets/pt-BR-LOX7MLGD-PbsMD0Tk.js +0 -10
- package/dist/public/assets/pt-PT-CZ2U2RFQ-DqzWwPhF.js +0 -12
- package/dist/public/assets/pug-BtQ4rHoj.js +0 -1
- package/dist/public/assets/qml-PHkhd373.js +0 -1
- package/dist/public/assets/quadrantDiagram-CIZ2JOQS-rFSUD5aB.js +0 -7
- package/dist/public/assets/radar-I7S5WNFK-Wnr-Dxa-.js +0 -1
- package/dist/public/assets/railroad-3IZDKUUU-BlCehe-_.js +0 -1
- package/dist/public/assets/railroad-abnf-AHOZXSZD-WbWW6RBJ.js +0 -1
- package/dist/public/assets/railroad-ebnf-EBAXGLYW-BNpef_w9.js +0 -1
- package/dist/public/assets/railroad-peg-LSFZ7HO6-cqe3HjZY.js +0 -1
- package/dist/public/assets/railroadDiagram-AXF67PYL-Cb3qw3k2.js +0 -1
- package/dist/public/assets/razor-BoLMeGDL.js +0 -1
- package/dist/public/assets/requirementDiagram-LRYGKXZP-CeBifPIF.js +0 -84
- package/dist/public/assets/ro-RO-2HECL2X6-CPY5StG8.js +0 -12
- package/dist/public/assets/rst-Bu3gzIlQ.js +0 -1
- package/dist/public/assets/ru-RU-HAYNXO46-CC-zRU2y.js +0 -10
- package/dist/public/assets/ruby-CxMmoDCn.js +0 -1
- package/dist/public/assets/sankeyDiagram-W5VNT64P-DgSL0xBJ.js +0 -40
- package/dist/public/assets/sas-CMtpOcI8.js +0 -1
- package/dist/public/assets/scss-DxhCW7ZQ.js +0 -1
- package/dist/public/assets/selection-context-IrTsD024.js +0 -4
- package/dist/public/assets/sequenceDiagram-SI44F4Z6-BlbEYytU.js +0 -162
- package/dist/public/assets/shaderlab-CGbZvPgv.js +0 -1
- package/dist/public/assets/shellsession-BQfwaugQ.js +0 -1
- package/dist/public/assets/si-LK-W5KNS4H6-2INolAeD.js +0 -1
- package/dist/public/assets/sizeCapture-X5ZJPWSS-B4L05vz3.js +0 -1
- package/dist/public/assets/sk-SK-7K2CFGDV-Bx8NGrrt.js +0 -7
- package/dist/public/assets/sl-SI-OXV2QZWW-BQ_DBaBO.js +0 -6
- package/dist/public/assets/soy-BE086iUa.js +0 -1
- package/dist/public/assets/sparql-BxR905RN.js +0 -1
- package/dist/public/assets/src-3ELJ5te-.js +0 -1
- package/dist/public/assets/src-BlywHjNh.js +0 -2
- package/dist/public/assets/startup-marks-DMGltEeZ.js +0 -1
- package/dist/public/assets/stata-BDc5CzFy.js +0 -1
- package/dist/public/assets/stateDiagram-OKZ733FA-bl_yF4pA.js +0 -1
- package/dist/public/assets/stateDiagram-v2-UEYNNEHI-C_MMnQ2J.js +0 -1
- package/dist/public/assets/subset-shared.chunk-b-UXZLmT.js +0 -1
- package/dist/public/assets/subset-worker.chunk-qJFL5htu.js +0 -1
- package/dist/public/assets/surrealql-nI_-L93O.js +0 -1
- package/dist/public/assets/sv-SE-JTOBZRGL-CGxGHo-W.js +0 -12
- package/dist/public/assets/svelte-DnK2lskG.js +0 -1
- package/dist/public/assets/swimlanes-SLNWSIFB-BLdhvGln.js +0 -2
- package/dist/public/assets/swimlanesDiagram-ULZ7WXOC-gJ2u4kCv.js +0 -8
- package/dist/public/assets/ta-IN-KFAVKXGT-BS0hURfX.js +0 -6
- package/dist/public/assets/tag-pill-input-DZtyWe7m.js +0 -1
- package/dist/public/assets/target-navigation-intent-x6Cz30gq.js +0 -1
- package/dist/public/assets/telemetry-impl-CIOqNvHl.js +0 -2
- package/dist/public/assets/telemetry-startup-BcJfe6wF.js +0 -1
- package/dist/public/assets/templ-Cf13XiKX.js +0 -1
- package/dist/public/assets/terminal-launch-events-CD-f3rsR.js +0 -1
- package/dist/public/assets/terminal-telemetry-Bal4jOvO.js +0 -1
- package/dist/public/assets/tex-PmMtv69w.js +0 -1
- package/dist/public/assets/text-viewer-languages-DP8HzdKZ.js +0 -2
- package/dist/public/assets/th-TH-VDMSCPDL-C0yuJs1c.js +0 -1
- package/dist/public/assets/timeline-definition-Z64GVDOM-CPtNMIK4.js +0 -120
- package/dist/public/assets/tr-TR-CEZ6GX45-D1kPob6b.js +0 -4
- package/dist/public/assets/treeView-QDETBFTQ-BOn66Qic.js +0 -1
- package/dist/public/assets/treemap-6X3UGDF4-C6R78ixY.js +0 -1
- package/dist/public/assets/ts-tags-4L2CpVbC.js +0 -1
- package/dist/public/assets/twig-Cj5j8FyV.js +0 -1
- package/dist/public/assets/typing-burst-detector-DISwAsbE.js +0 -8
- package/dist/public/assets/uk-UA-Q3H3OXQC-BQRgGHnc.js +0 -6
- package/dist/public/assets/uninstall-B0BbTXcU.js +0 -1
- package/dist/public/assets/use-activity-panel-ycvxJw7e.js +0 -1
- package/dist/public/assets/use-apply-config-language-CGsU-KWQ.js +0 -2
- package/dist/public/assets/use-live-xterm-theme-p2XjXywO.js +0 -1
- package/dist/public/assets/use-open-skill-Cb3YbBrN.js +0 -1
- package/dist/public/assets/use-skill-origin-InKRgPZV.js +0 -1
- package/dist/public/assets/use-skills-BgxkrVNo.js +0 -1
- package/dist/public/assets/use-terminal-enabled-wvtXpU82.js +0 -1
- package/dist/public/assets/use-timeline-entry-diff-q_FFOgQp.js +0 -5
- package/dist/public/assets/uz-UZ-NGCSWWPX-BbJBLsmQ.js +0 -1
- package/dist/public/assets/vennDiagram-T6HMQDX7-Cmmm7-Ic.js +0 -34
- package/dist/public/assets/vi-VN-P3NDEVPS-BkxULfm2.js +0 -7
- package/dist/public/assets/vue-BydAoNhZ.js +0 -1
- package/dist/public/assets/vue-html-gTBk01uO.js +0 -1
- package/dist/public/assets/vue-vine-_qFJWw6a.js +0 -1
- package/dist/public/assets/wardley-OPB4EBWU-BQu8FNUe.js +0 -1
- package/dist/public/assets/wardleyDiagram-T6FBY63Y-57Ij_2ve.js +0 -78
- package/dist/public/assets/xml-DFyuqrlM.js +0 -1
- package/dist/public/assets/xsl-CoH6Ht1D.js +0 -1
- package/dist/public/assets/xychartDiagram-ELKLHX3M-DjQiN8rp.js +0 -7
- package/dist/public/assets/zh-CN-SS3O57GA-CFvPsriE.js +0 -11
- package/dist/public/assets/zh-HK-LWJT3VCF-WbAIkmVr.js +0 -1
- package/dist/public/assets/zh-TW-VJXC72RT-goxexaoR.js +0 -13
- package/dist/registry-probes-Di9JNX9z.mjs +0 -17
- package/dist/removal-file-path-CgAmb4fV.mjs +0 -1
- package/dist/repair-launch-json-DEvH6l3H.mjs +0 -1
- package/dist/repair-mcp-configs-C7fQk3ys.mjs +0 -1
- package/dist/src-CzKwMKKs.mjs +0 -11
- package/dist/src-DwAq2_3L.mjs +0 -1
- package/dist/start-CVtJofhF.mjs +0 -5
- package/dist/start-GgK0YR4m.mjs +0 -1
- /package/dist/public/assets/{ConfigSharingInfoTooltip-CK9XrP2K.js → ConfigSharingInfoTooltip-DTnyEAkk.js} +0 -0
- /package/dist/public/assets/{DeleteConfirmationDialog-D282MErq.js → DeleteConfirmationDialog-BhMILeeF.js} +0 -0
- /package/dist/public/assets/{SkillCostValue-CDByRGH8.js → SkillCostValue-BE6EBNfT.js} +0 -0
- /package/dist/public/assets/{SkillModeBanner-D9DKXr9n.js → SkillModeBanner-zy45N7wU.js} +0 -0
- /package/dist/public/assets/{SlidesToolbarControls-BIG_fk4x.js → SlidesToolbarControls-60y5ydf2.js} +0 -0
- /package/dist/public/assets/{TerminalStartingNotice-CMzG3ocb.js → TerminalStartingNotice-BfAeAYou.js} +0 -0
- /package/dist/public/assets/{__vite-browser-external-BCp-FgmU.js → __vite-browser-external-Dp1w7vup.js} +0 -0
- /package/dist/public/assets/{abap-B6G1O06E.js → abap-DPEeM0nz.js} +0 -0
- /package/dist/public/assets/{actionscript-3-DfcmY80m.js → actionscript-3-CDbCbcML.js} +0 -0
- /package/dist/public/assets/{ada-C9PNCWS1.js → ada-qDp3_kP9.js} +0 -0
- /package/dist/public/assets/{agent-launcher-labels-C68Xjdk5.js → agent-launcher-labels-DN_oIpF1.js} +0 -0
- /package/dist/public/assets/{agent-presence-B7da2Vup.js → agent-presence-CI_mKDt4.js} +0 -0
- /package/dist/public/assets/{alert-DY6-nRLe.js → alert-BxnW-ZlU.js} +0 -0
- /package/dist/public/assets/{andromeeda-BUZSJe6f.js → andromeeda-CDbyw6SK.js} +0 -0
- /package/dist/public/assets/{apache-BDRvsaKK.js → apache-qtljdixL.js} +0 -0
- /package/dist/public/assets/{apex-DkYAsEfY.js → apex-9hgne4ZQ.js} +0 -0
- /package/dist/public/assets/{app-menubar-gate-CzegIdbU.js → app-menubar-gate-Ctr6noRu.js} +0 -0
- /package/dist/public/assets/{applescript-D-xOb6mv.js → applescript-ropEX6c9.js} +0 -0
- /package/dist/public/assets/{ara-BlDreiOm.js → ara-Co-KWcrG.js} +0 -0
- /package/dist/public/assets/{array-Chjy1TEV.js → array-CptRW1Qx.js} +0 -0
- /package/dist/public/assets/{asciidoc-aLwH4Lg9.js → asciidoc-CZVjsvOa.js} +0 -0
- /package/dist/public/assets/{asm-SaDP0k_I.js → asm-BI7Ia2MB.js} +0 -0
- /package/dist/public/assets/{aurora-x-Dhh1uO8c.js → aurora-x-Bh5NI184.js} +0 -0
- /package/dist/public/assets/{auth-prompt-store-CoaumXOi.js → auth-prompt-store-BG1KGa5o.js} +0 -0
- /package/dist/public/assets/{awk-DZ1870od.js → awk-B5Fj3upK.js} +0 -0
- /package/dist/public/assets/{ayu-dark-BFkemmT0.js → ayu-dark-DuY7ZiFo.js} +0 -0
- /package/dist/public/assets/{ayu-light-DSmIl4MJ.js → ayu-light-D983_CFs.js} +0 -0
- /package/dist/public/assets/{ayu-mirage-BMcWqIAc.js → ayu-mirage-CM-XV3Bs.js} +0 -0
- /package/dist/public/assets/{badge-BGcBcbDV.js → badge-EmKkAvTN.js} +0 -0
- /package/dist/public/assets/{ballerina-BjDpKDuE.js → ballerina-Dtj3Gjn_.js} +0 -0
- /package/dist/public/assets/{bat-_3XIw4OE.js → bat-DuWzkiax.js} +0 -0
- /package/dist/public/assets/{beancount-UGm0jkC-.js → beancount-DRbNXhAj.js} +0 -0
- /package/dist/public/assets/{berry-CiF65Lpy.js → berry-DbfcebwT.js} +0 -0
- /package/dist/public/assets/{bibtex-Usxd7MiN.js → bibtex-B_82B4rg.js} +0 -0
- /package/dist/public/assets/{bicep-D_xuHYza.js → bicep-DxRWkojc.js} +0 -0
- /package/dist/public/assets/{bird2-BNd-ayKa.js → bird2-CfqsBtVU.js} +0 -0
- /package/dist/public/assets/{c-CP8wywea.js → c-C0_6aqUQ.js} +0 -0
- /package/dist/public/assets/{c3-CdPZvDob.js → c3-B1411BmU.js} +0 -0
- /package/dist/public/assets/{cadence-DWxxesSQ.js → cadence-B0wyF3hR.js} +0 -0
- /package/dist/public/assets/{catppuccin-frappe-BmPgnwqX.js → catppuccin-frappe-DyPdqe3p.js} +0 -0
- /package/dist/public/assets/{catppuccin-latte-BdvYcfh3.js → catppuccin-latte-CtluGetf.js} +0 -0
- /package/dist/public/assets/{catppuccin-macchiato-BlcPvcxU.js → catppuccin-macchiato-DW2ULqjb.js} +0 -0
- /package/dist/public/assets/{catppuccin-mocha-B22hMB1U.js → catppuccin-mocha-BcVgnbeQ.js} +0 -0
- /package/dist/public/assets/{chunk-7XWMRXBY-l8jqD2Vn.js → chunk-7XWMRXBY-VpqwGI73.js} +0 -0
- /package/dist/public/assets/{chunk-A66AFZZU-D_zGw-jZ.js → chunk-A66AFZZU-Yip-PrMD.js} +0 -0
- /package/dist/public/assets/{chunk-FLYJHZSQ-CdggMJA5.js → chunk-FLYJHZSQ-D0KYF_nu.js} +0 -0
- /package/dist/public/assets/{chunk-KEIR6QF5-DSxLjAUA.js → chunk-KEIR6QF5-CyCrZ67g.js} +0 -0
- /package/dist/public/assets/{chunk-SRAX5OIU-_Ipu9ItK.js → chunk-SRAX5OIU-BBgA7Nfy.js} +0 -0
- /package/dist/public/assets/{chunk-Y2CYZVJY-aKnyP-VT.js → chunk-Y2CYZVJY-Cp_w6nmo.js} +0 -0
- /package/dist/public/assets/{clarity-C0QzzeGV.js → clarity-DhXugHGq.js} +0 -0
- /package/dist/public/assets/{client-version-ol04LmN-.js → client-version-ChvQDp-z.js} +0 -0
- /package/dist/public/assets/{clike-7zPn0smO.js → clike-CIA0a2V1.js} +0 -0
- /package/dist/public/assets/{clipboard-adapter-3v18kDwB.js → clipboard-adapter-BcUyjgvn.js} +0 -0
- /package/dist/public/assets/{clojure-xscGagfk.js → clojure-CO53VZTK.js} +0 -0
- /package/dist/public/assets/{cmake-6QmxG3QP.js → cmake-Bz-mGLzr.js} +0 -0
- /package/dist/public/assets/{codeowners-f33Tw_h8.js → codeowners-DPs0MBVL.js} +0 -0
- /package/dist/public/assets/{codeql-Ds6IFKQo.js → codeql-C2t9dgQ-.js} +0 -0
- /package/dist/public/assets/{colors-CX5_yg89.js → colors-Btzkwby1.js} +0 -0
- /package/dist/public/assets/{common-lisp-EsM9BOl6.js → common-lisp-C7Pe81ix.js} +0 -0
- /package/dist/public/assets/{contact-email-store-Dom1z23f.js → contact-email-store-C7J4PhPO.js} +0 -0
- /package/dist/public/assets/{copilot-SyPOvrhq.js → copilot-Cm5ODIkW.js} +0 -0
- /package/dist/public/assets/{coq-D-4bZTKK.js → coq-D1JzbtxY.js} +0 -0
- /package/dist/public/assets/{csharp-ByOAtMr_.js → csharp-DBFp7Rw8.js} +0 -0
- /package/dist/public/assets/{css-B2oBx02a.js → css-D9nOW1gz.js} +0 -0
- /package/dist/public/assets/{css-color-to-hex-Ddd95JnW.js → css-color-to-hex-wMBAsSG3.js} +0 -0
- /package/dist/public/assets/{csv-C_KIA25A.js → csv-DAwWuGse.js} +0 -0
- /package/dist/public/assets/{cue-CCC6JMGx.js → cue-DJ-6thWU.js} +0 -0
- /package/dist/public/assets/{cursor-DnmFJny0.js → cursor-4hw-hwX-.js} +0 -0
- /package/dist/public/assets/{cypher-BV6ubiGS.js → cypher-HO1ntCcH.js} +0 -0
- /package/dist/public/assets/{cytoscape.esm-DxmLQTcx.js → cytoscape.esm-Bd1JUlwi.js} +0 -0
- /package/dist/public/assets/{d-CVl6vWco.js → d-DxDCR2RY.js} +0 -0
- /package/dist/public/assets/{dark-plus-C2zD35tS.js → dark-plus-C-BinfKO.js} +0 -0
- /package/dist/public/assets/{dart-a_8TYlPk.js → dart-DKOs13M4.js} +0 -0
- /package/dist/public/assets/{dax-D6av1cDO.js → dax-B4HLdCME.js} +0 -0
- /package/dist/public/assets/{defaultLocale-BTOUcNS-.js → defaultLocale-DvpxZUnT.js} +0 -0
- /package/dist/public/assets/{desktop-DCDlfvuk.js → desktop-B6iSWPQJ.js} +0 -0
- /package/dist/public/assets/{dialog-gPDFmQk-.js → dialog-Cv_pRVgB.js} +0 -0
- /package/dist/public/assets/{diff-D8kx8xdo.js → diff-Bmzfxlij.js} +0 -0
- /package/dist/public/assets/{diff-BnI_crp2.js → diff-Dtkja3mx.js} +0 -0
- /package/dist/public/assets/{dist-CLRN-Sf-.js → dist-AflZtDqw.js} +0 -0
- /package/dist/public/assets/{dist-Aa9c7yje.js → dist-DDVbnKWY.js} +0 -0
- /package/dist/public/assets/{dist-gZdRwFap.js → dist-DWixtctT.js} +0 -0
- /package/dist/public/assets/{docker-BQkPBbZo.js → docker-SyYRzWOA.js} +0 -0
- /package/dist/public/assets/{documents-fetch-sbhR-qg0.js → documents-fetch-BN5vQY0e.js} +0 -0
- /package/dist/public/assets/{dotenv-B9PltzQO.js → dotenv-CkU560BN.js} +0 -0
- /package/dist/public/assets/{dracula-C8YOCbJD.js → dracula-snm8AwlD.js} +0 -0
- /package/dist/public/assets/{dracula-soft-D_v_j4j3.js → dracula-soft-CAW8lBLS.js} +0 -0
- /package/dist/public/assets/{dream-maker-D6U2XrIN.js → dream-maker-CGqVx3lj.js} +0 -0
- /package/dist/public/assets/{emacs-lisp-CF5kgWp1.js → emacs-lisp-CcQds-Bo.js} +0 -0
- /package/dist/public/assets/{engine-compile-DM2DbcFO.js → engine-compile-Cgd-zCgy.js} +0 -0
- /package/dist/public/assets/{everforest-dark-Ce_9x7gy.js → everforest-dark-DgWEQXa5.js} +0 -0
- /package/dist/public/assets/{everforest-light-CpBXb568.js → everforest-light-WzUuSvtT.js} +0 -0
- /package/dist/public/assets/{excalidraw-scene-B8IkFuHe.js → excalidraw-scene-BStZkHyn.js} +0 -0
- /package/dist/public/assets/{external-link-C5LIdhIa.js → external-link-iDv4MHBU.js} +0 -0
- /package/dist/public/assets/{fennel-BL2It54o.js → fennel-Cozur1Qf.js} +0 -0
- /package/dist/public/assets/{field-bXEeLKBZ.js → field-CKJVhgvN.js} +0 -0
- /package/dist/public/assets/{file-tree-rename-validation-CaMw2nJs.js → file-tree-rename-validation-C0aGoscw.js} +0 -0
- /package/dist/public/assets/{file-tree-utils-6Y2CjVKd.js → file-tree-utils-elC-lbdd.js} +0 -0
- /package/dist/public/assets/{fish-3biEKwnx.js → fish-Cz__Is_v.js} +0 -0
- /package/dist/public/assets/{fluent-CRUqYV6F.js → fluent-eOqkWxfb.js} +0 -0
- /package/dist/public/assets/{form-C-BVpLsV.js → form-L3zDbeZR.js} +0 -0
- /package/dist/public/assets/{format-DOUMbUdu.js → format-D-TW7aYJ.js} +0 -0
- /package/dist/public/assets/{fortran-free-form-PCb3S0BH.js → fortran-free-form-DOc-uCH8.js} +0 -0
- /package/dist/public/assets/{gdscript-C0rIyVMl.js → gdscript-NSoMR6dX.js} +0 -0
- /package/dist/public/assets/{gdshader-_0-CZ7Hf.js → gdshader-CtuXPM-D.js} +0 -0
- /package/dist/public/assets/{genie-0Rq_SAdW.js → genie-CO7h5Vci.js} +0 -0
- /package/dist/public/assets/{gherkin-D0zUCQx9.js → gherkin-Cdd9Sa5b.js} +0 -0
- /package/dist/public/assets/{gherkin-Cdc3a_xv.js → gherkin-DcciNeMx.js} +0 -0
- /package/dist/public/assets/{github-dark-D98ZVxku.js → github-dark-BhW1tl4F.js} +0 -0
- /package/dist/public/assets/{github-dark-default-9J-5aEvp.js → github-dark-default-CkXQhFFQ.js} +0 -0
- /package/dist/public/assets/{github-dark-dimmed-9iqkTI51.js → github-dark-dimmed-CwtPEAjW.js} +0 -0
- /package/dist/public/assets/{github-dark-high-contrast-C9r61hWl.js → github-dark-high-contrast-DIdgxCsK.js} +0 -0
- /package/dist/public/assets/{github-light-DWgv_oJg.js → github-light-DLkccEgZ.js} +0 -0
- /package/dist/public/assets/{github-light-default-D82xHin5.js → github-light-default-BXac_QDn.js} +0 -0
- /package/dist/public/assets/{github-light-high-contrast-cCDh8RU1.js → github-light-high-contrast-DBfvZcri.js} +0 -0
- /package/dist/public/assets/{gleam-D3JrWHS1.js → gleam-BIm-lqIh.js} +0 -0
- /package/dist/public/assets/{gn-CKDc26Dt.js → gn-DEPR6fkU.js} +0 -0
- /package/dist/public/assets/{gnuplot-kxrYpuWz.js → gnuplot-Bv19JGhb.js} +0 -0
- /package/dist/public/assets/{go-Co3UuA4J.js → go-DIIQSsXN.js} +0 -0
- /package/dist/public/assets/{go-BmEgGOn9.js → go-dJvMroCu.js} +0 -0
- /package/dist/public/assets/{groovy-CaSl4Fdo.js → groovy-QRLCMic2.js} +0 -0
- /package/dist/public/assets/{gruvbox-dark-hard-Dhhz8TIz.js → gruvbox-dark-hard-CFbTicCD.js} +0 -0
- /package/dist/public/assets/{gruvbox-dark-medium-SvZjnxeC.js → gruvbox-dark-medium-DtHzLC_G.js} +0 -0
- /package/dist/public/assets/{gruvbox-dark-soft-B-oNL0KQ.js → gruvbox-dark-soft-BYlSgQwT.js} +0 -0
- /package/dist/public/assets/{gruvbox-light-hard-DqIVn_el.js → gruvbox-light-hard-nt_ZFDam.js} +0 -0
- /package/dist/public/assets/{gruvbox-light-medium-Bqe_jWIZ.js → gruvbox-light-medium-D1KFlXbq.js} +0 -0
- /package/dist/public/assets/{gruvbox-light-soft-CO1XsPWD.js → gruvbox-light-soft-fjAAaZbm.js} +0 -0
- /package/dist/public/assets/{haskell-Di8rWef8.js → haskell-MrmiRzxZ.js} +0 -0
- /package/dist/public/assets/{haxe-CgMzeTna.js → haxe-CG6XwjVB.js} +0 -0
- /package/dist/public/assets/{hcl-ChKQ7lpN.js → hcl-YKWaew7n.js} +0 -0
- /package/dist/public/assets/{hjson-48pvdtkI.js → hjson-CXoNFYEy.js} +0 -0
- /package/dist/public/assets/{hlsl-CR7CH9fv.js → hlsl-BBX3Pu1I.js} +0 -0
- /package/dist/public/assets/{horizon-DbRrwU2h.js → horizon-ChftiNLU.js} +0 -0
- /package/dist/public/assets/{horizon-bright-B4ag9vb-.js → horizon-bright-D_3Kauqj.js} +0 -0
- /package/dist/public/assets/{houston-BZPo8uAq.js → houston-DovfF3_X.js} +0 -0
- /package/dist/public/assets/{hy-BJy0eoIH.js → hy-Ci_jFuTf.js} +0 -0
- /package/dist/public/assets/{image-blob-reduce.esm-ClqAmlzn.js → image-blob-reduce.esm-D6mW2xi9.js} +0 -0
- /package/dist/public/assets/{imba-xgKqcNKB.js → imba-50mWIp4y.js} +0 -0
- /package/dist/public/assets/{ini-DKtEmc5B.js → ini-DH8r6S76.js} +0 -0
- /package/dist/public/assets/{init-BThtXcua.js → init-D5xl0SXZ.js} +0 -0
- /package/dist/public/assets/{input-f41fkc3m.js → input-6HnhfmYW.js} +0 -0
- /package/dist/public/assets/{isObject-D6RZweuV.js → isObject-DZDcBSCs.js} +0 -0
- /package/dist/public/assets/{java-CTx3zeAp.js → java-BiphkwM4.js} +0 -0
- /package/dist/public/assets/{javascript-DQmQ7Pmq.js → javascript-DlHDGilr.js} +0 -0
- /package/dist/public/assets/{json-Wb0KVxb4.js → json-DKmbqLQO.js} +0 -0
- /package/dist/public/assets/{json5-CDzqm5pH.js → json5-CbA7B19t.js} +0 -0
- /package/dist/public/assets/{jsonc-Bhm5u6Oy.js → jsonc-16gHT3lY.js} +0 -0
- /package/dist/public/assets/{jsonl-B1ujJxyU.js → jsonl-1P63S-da.js} +0 -0
- /package/dist/public/assets/{jsonnet-BPfLDi1N.js → jsonnet-St0SEDJA.js} +0 -0
- /package/dist/public/assets/{jssm-BMqya12L.js → jssm-D9pc8bT7.js} +0 -0
- /package/dist/public/assets/{jsx-CGt27cLy.js → jsx-CIgo9HJY.js} +0 -0
- /package/dist/public/assets/{kanagawa-dragon-BGI9LG6c.js → kanagawa-dragon-c5RVuQo2.js} +0 -0
- /package/dist/public/assets/{kanagawa-lotus-BMadzn_Y.js → kanagawa-lotus-Cj0-LcLV.js} +0 -0
- /package/dist/public/assets/{kanagawa-wave-BtoOe6QC.js → kanagawa-wave-CyKnp27K.js} +0 -0
- /package/dist/public/assets/{kdl-CB-Sq7Dx.js → kdl-DXLzn4yV.js} +0 -0
- /package/dist/public/assets/{known-skill-dirs-BKa6yUB3.js → known-skill-dirs-BZ8lUpY6.js} +0 -0
- /package/dist/public/assets/{kotlin-ByzvSoid.js → kotlin-CGdGXVk2.js} +0 -0
- /package/dist/public/assets/{kusto-CgkCu44m.js → kusto-D437SRfT.js} +0 -0
- /package/dist/public/assets/{laserwave-CW9egyLc.js → laserwave-fni2NBsl.js} +0 -0
- /package/dist/public/assets/{lean-DxL7tyqw.js → lean-nhnkt8KX.js} +0 -0
- /package/dist/public/assets/{less-DbVqUQOT.js → less-C1fn1Gyf.js} +0 -0
- /package/dist/public/assets/{libesm-Crzrznn_.js → libesm-BEUxPyRS.js} +0 -0
- /package/dist/public/assets/{light-plus-DH7FkSAc.js → light-plus-e-IzfJhg.js} +0 -0
- /package/dist/public/assets/{lint-config-client-KBVNMhL3.js → lint-config-client-DBFw6OHC.js} +0 -0
- /package/dist/public/assets/{llvm-CHmTBrGB.js → llvm-CSD_2XI7.js} +0 -0
- /package/dist/public/assets/{log-CzWM2UtE.js → log-DrimKCsQ.js} +0 -0
- /package/dist/public/assets/{logo-h8nVViI-.js → logo-Bll3l9KX.js} +0 -0
- /package/dist/public/assets/{lru-string-cache-16HpGUlE.js → lru-string-cache-DqO2nmU0.js} +0 -0
- /package/dist/public/assets/{lua-D7Iy94c5.js → lua-5sXwmXX7.js} +0 -0
- /package/dist/public/assets/{luau-CxDmBAjD.js → luau-BVQ1C7K8.js} +0 -0
- /package/dist/public/assets/{make-BHLB4QPh.js → make-x759WNaC.js} +0 -0
- /package/dist/public/assets/{markdown-BybTbn-K.js → markdown-BXZoSw-G.js} +0 -0
- /package/dist/public/assets/{material-theme-DySYnQpY.js → material-theme-ByrV5adO.js} +0 -0
- /package/dist/public/assets/{material-theme-darker-D0Xrm9hJ.js → material-theme-darker-CSQTKd9_.js} +0 -0
- /package/dist/public/assets/{material-theme-lighter-uORXTrUt.js → material-theme-lighter-DJvX3Onv.js} +0 -0
- /package/dist/public/assets/{material-theme-ocean-th1hTGS3.js → material-theme-ocean-AojpcjWK.js} +0 -0
- /package/dist/public/assets/{material-theme-palenight-BjC1SDEr.js → material-theme-palenight-BjCdzDgN.js} +0 -0
- /package/dist/public/assets/{matlab-xfdmVf5h.js → matlab-B51TUcta.js} +0 -0
- /package/dist/public/assets/{mdx-BGr4WQiV.js → mdx-BxWX6cgh.js} +0 -0
- /package/dist/public/assets/{mermaid-BxLF-buK.js → mermaid-BPL861OF.js} +0 -0
- /package/dist/public/assets/{messages-CMVUUHOC.js → messages-BW4p1NtB.js} +0 -0
- /package/dist/public/assets/{messages-CH85mC4z.js → messages-BbtT8UWj.js} +0 -0
- /package/dist/public/assets/{messages-DuiRtbNh.js → messages-C1VeyNl0.js} +0 -0
- /package/dist/public/assets/{messages-DJLSxeV6.js → messages-CMn1fNZK.js} +0 -0
- /package/dist/public/assets/{messages-CJQZ4pG6.js → messages-D6rUTZQ6.js} +0 -0
- /package/dist/public/assets/{messages-Dj4gUBL7.js → messages-DK3V0faN.js} +0 -0
- /package/dist/public/assets/{messages-BBuikFTN.js → messages-DNpYLZfq.js} +0 -0
- /package/dist/public/assets/{messages-DLxeITeT.js → messages-DVQlq8SU.js} +0 -0
- /package/dist/public/assets/{messages-BdMaFk9p.js → messages-D_2aHJUi.js} +0 -0
- /package/dist/public/assets/{messages-ALZVWgcA.js → messages-Dcr562Y0.js} +0 -0
- /package/dist/public/assets/{messages-Bn1_08f0.js → messages-DvaMLKsL.js} +0 -0
- /package/dist/public/assets/{messages-DZh_70lh.js → messages-Dz2z2MLj.js} +0 -0
- /package/dist/public/assets/{min-NTuZ-xsF.js → min-C17jSMaY.js} +0 -0
- /package/dist/public/assets/{min-dark-uiAKaQix.js → min-dark-0X0enwTy.js} +0 -0
- /package/dist/public/assets/{min-light-BoVyZrL-.js → min-light-hyqyiBhK.js} +0 -0
- /package/dist/public/assets/{mipsasm-BG1NuRJT.js → mipsasm-DZ-DerOW.js} +0 -0
- /package/dist/public/assets/{mojo-BFh2pV_5.js → mojo-xq-aQ13L.js} +0 -0
- /package/dist/public/assets/{monokai-bbBrCdcG.js → monokai-o2f7FRXT.js} +0 -0
- /package/dist/public/assets/{moonbit-DxIUBkBo.js → moonbit-Brt_BRZr.js} +0 -0
- /package/dist/public/assets/{move-BSmoqwC8.js → move-CMkSn4xI.js} +0 -0
- /package/dist/public/assets/{narrat-Bj-utHfk.js → narrat-Dawk8vJW.js} +0 -0
- /package/dist/public/assets/{nextflow-groovy-BfVhNrWa.js → nextflow-groovy-CTKdTV4p.js} +0 -0
- /package/dist/public/assets/{night-owl-CpHKdcX8.js → night-owl-Ci4RUF4G.js} +0 -0
- /package/dist/public/assets/{night-owl-light-LyhNs2M-.js → night-owl-light-BBVZScAw.js} +0 -0
- /package/dist/public/assets/{nix-ClFitmpR.js → nix-CU9UQov9.js} +0 -0
- /package/dist/public/assets/{nord-D1SVwnSs.js → nord-BWcVlsgT.js} +0 -0
- /package/dist/public/assets/{nushell-BHWLq_1I.js → nushell-DPcrz7g9.js} +0 -0
- /package/dist/public/assets/{objective-c-v_xN8GD3.js → objective-c-Bm4yYAj-.js} +0 -0
- /package/dist/public/assets/{objective-cpp-CibqCln4.js → objective-cpp-nfI96nBP.js} +0 -0
- /package/dist/public/assets/{ocaml-BY2V91uO.js → ocaml-B-_49PKI.js} +0 -0
- /package/dist/public/assets/{odin-CZtp0iiq.js → odin-CQf5tQ8Y.js} +0 -0
- /package/dist/public/assets/{ok-C8C0LnTP.js → ok-BOt5NZkI.js} +0 -0
- /package/dist/public/assets/{ok-syntax-theme-BmVEsR7C.js → ok-syntax-theme-BmEJWhRq.js} +0 -0
- /package/dist/public/assets/{one-dark-pro-B1zSH5mj.js → one-dark-pro-C3NcDchq.js} +0 -0
- /package/dist/public/assets/{one-light-xF5PB54d.js → one-light-CX2ZkaZr.js} +0 -0
- /package/dist/public/assets/{openscad-Yr3aaR7x.js → openscad-B03CWcpV.js} +0 -0
- /package/dist/public/assets/{page-list-cache-CiL3sHQ-.js → page-list-cache-DvhqPgdF.js} +0 -0
- /package/dist/public/assets/{panel-YWvIeRKP.js → panel-BZDa_Rdl.js} +0 -0
- /package/dist/public/assets/{panzoom.es-CdDoTOGj.js → panzoom.es-B5ta3IUI.js} +0 -0
- /package/dist/public/assets/{pascal-Di8o2txR.js → pascal-NJO6xQFP.js} +0 -0
- /package/dist/public/assets/{path-qsVnkQMi.js → path-Dxj0j-14.js} +0 -0
- /package/dist/public/assets/{pdf-B_KM6HrW.js → pdf-BRv3Az6X.js} +0 -0
- /package/dist/public/assets/{pdf.worker-BOK7dGS9.js → pdf.worker-Cf0_N8eX.js} +0 -0
- /package/dist/public/assets/{perl-Cowe37JI.js → perl-D5gLYqTZ.js} +0 -0
- /package/dist/public/assets/{pica-D5-eMd4K.js → pica-B_zwnX7t.js} +0 -0
- /package/dist/public/assets/{pierre-dark-protanopia-deuteranopia-ypH1ArvY.js → pierre-dark-protanopia-deuteranopia-B0ftdsPE.js} +0 -0
- /package/dist/public/assets/{pierre-dark-Do9UcwTK.js → pierre-dark-rrscqVQq.js} +0 -0
- /package/dist/public/assets/{pierre-dark-soft-aLCDRG1u.js → pierre-dark-soft-DZiwj92d.js} +0 -0
- /package/dist/public/assets/{pierre-dark-tritanopia-CoRiIfxz.js → pierre-dark-tritanopia-CixhAD2g.js} +0 -0
- /package/dist/public/assets/{pierre-dark-vibrant-abEkFOLj.js → pierre-dark-vibrant-A0FNdxyg.js} +0 -0
- /package/dist/public/assets/{pierre-light-B5mx-OO0.js → pierre-light-2JrT5RnW.js} +0 -0
- /package/dist/public/assets/{pierre-light-protanopia-deuteranopia-70WWPsZQ.js → pierre-light-protanopia-deuteranopia-Cvitf3nx.js} +0 -0
- /package/dist/public/assets/{pierre-light-soft-DtgFPpfM.js → pierre-light-soft-NBYL08mT.js} +0 -0
- /package/dist/public/assets/{pierre-light-tritanopia-y3mv-iNd.js → pierre-light-tritanopia-laSRy7Qz.js} +0 -0
- /package/dist/public/assets/{pierre-light-vibrant-B_Wjsn7F.js → pierre-light-vibrant-DMPpspFW.js} +0 -0
- /package/dist/public/assets/{pkl-4n_BVBGf.js → pkl-DBgHNK67.js} +0 -0
- /package/dist/public/assets/{plastic-Q50-QWnu.js → plastic-M_BFha8c.js} +0 -0
- /package/dist/public/assets/{platform-labels-_NqJVta7.js → platform-labels-E86pSHLg.js} +0 -0
- /package/dist/public/assets/{plsql-Buro9Xsa.js → plsql-BcAibH9g.js} +0 -0
- /package/dist/public/assets/{po-B55S9v9E.js → po-DLB9713I.js} +0 -0
- /package/dist/public/assets/{poimandres-CFtyxSUq.js → poimandres-ByORt5qI.js} +0 -0
- /package/dist/public/assets/{polar-hI68BkNA.js → polar-DMypDn9P.js} +0 -0
- /package/dist/public/assets/{popover-CBJqdXoA.js → popover-COZloETk.js} +0 -0
- /package/dist/public/assets/{postcss-DiEmoWz3.js → postcss-Ccgbw1zo.js} +0 -0
- /package/dist/public/assets/{powerquery-CGDKELfB.js → powerquery-CoYoPDhy.js} +0 -0
- /package/dist/public/assets/{powershell-7AE7XVcl.js → powershell-RM_jWTQ8.js} +0 -0
- /package/dist/public/assets/{prisma-_sy2hn7i.js → prisma-JgN60A4h.js} +0 -0
- /package/dist/public/assets/{prolog-TuU2vkl3.js → prolog-CYEW59_z.js} +0 -0
- /package/dist/public/assets/{properties-DZ8vtoOH.js → properties-CbGvo0aA.js} +0 -0
- /package/dist/public/assets/{proto-DFIx2oRg.js → proto-BrJJ_Fn2.js} +0 -0
- /package/dist/public/assets/{puppet-BLKSELnA.js → puppet-DuBIg4gn.js} +0 -0
- /package/dist/public/assets/{purescript-CTLwyr7N.js → purescript-Bv6XbmOm.js} +0 -0
- /package/dist/public/assets/{python-BcVv4oUw.js → python-CV47t8Gf.js} +0 -0
- /package/dist/public/assets/{qmldir-CilLbzOY.js → qmldir-Dasr3cc5.js} +0 -0
- /package/dist/public/assets/{qss-CEvN9Pus.js → qss-CQgMFeEI.js} +0 -0
- /package/dist/public/assets/{r-DWWMYyNY.js → r-BfYo7P4b.js} +0 -0
- /package/dist/public/assets/{r-ICgUvKY9.js → r-C_xjFlqJ.js} +0 -0
- /package/dist/public/assets/{racket-BX7l4Odg.js → racket-cwCCECwF.js} +0 -0
- /package/dist/public/assets/{raku-DCPbjCK4.js → raku-Bj0c2PoO.js} +0 -0
- /package/dist/public/assets/{receive-store-C-X75l3d.js → receive-store-Djrqwgcm.js} +0 -0
- /package/dist/public/assets/{red-CHJGKO14.js → red-BLXAVNUU.js} +0 -0
- /package/dist/public/assets/{reg-v1lYxIk4.js → reg-BJ4VhAqv.js} +0 -0
- /package/dist/public/assets/{regexp-DPa2YRJ0.js → regexp-DC_q-qQW.js} +0 -0
- /package/dist/public/assets/{rel-i2D2vbC1.js → rel-CYZiUXcT.js} +0 -0
- /package/dist/public/assets/{riscv-DDoWHn9e.js → riscv-BrxcwWCd.js} +0 -0
- /package/dist/public/assets/{ron-CIgWlySU.js → ron-BCYsybTe.js} +0 -0
- /package/dist/public/assets/{rose-pine-DbzmiSK0.js → rose-pine-CXf56REi.js} +0 -0
- /package/dist/public/assets/{rose-pine-dawn-CyDdbkC0.js → rose-pine-dawn-B7gldBeO.js} +0 -0
- /package/dist/public/assets/{rose-pine-moon-DVsWUxsc.js → rose-pine-moon-CNu7L6GE.js} +0 -0
- /package/dist/public/assets/{rosmsg-8bxj5Wxk.js → rosmsg-tEEe5NZR.js} +0 -0
- /package/dist/public/assets/{rough.esm-jZQkcmER.js → rough.esm-DE_lJ5Ge.js} +0 -0
- /package/dist/public/assets/{roundRect-qsjhvWa7.js → roundRect-Dj9Qe5Ji.js} +0 -0
- /package/dist/public/assets/{ruby-CV1cSk7y.js → ruby-BQqhxVtv.js} +0 -0
- /package/dist/public/assets/{rust-DunuSzmW.js → rust-C6z4oJOy.js} +0 -0
- /package/dist/public/assets/{sass-7yks5T8G.js → sass-BSRZawnQ.js} +0 -0
- /package/dist/public/assets/{scala-D3QLCSjK.js → scala-kprtgFrl.js} +0 -0
- /package/dist/public/assets/{schema-fields-view-intent-CNfwnNXG.js → schema-fields-view-intent-DelPzufU.js} +0 -0
- /package/dist/public/assets/{scheme-BKKX442g.js → scheme-RXjF-I-t.js} +0 -0
- /package/dist/public/assets/{sdbl-BO7gjAg3.js → sdbl-B_6tpzzW.js} +0 -0
- /package/dist/public/assets/{share-metadata-rows-p2fOHi_7.js → share-metadata-rows-iQiWNrX5.js} +0 -0
- /package/dist/public/assets/{shell-DMxyb7JZ.js → shell-CSNfdh9n.js} +0 -0
- /package/dist/public/assets/{shellscript-B7ivo3w2.js → shellscript-D5UuKqHK.js} +0 -0
- /package/dist/public/assets/{skeleton-BJMacgN3.js → skeleton-dNp6WrHl.js} +0 -0
- /package/dist/public/assets/{skill-scope-07jzWC6c.js → skill-scope-BnHkWlIp.js} +0 -0
- /package/dist/public/assets/{skills-api-Bdi9Sls8.js → skills-api-C9lYknem.js} +0 -0
- /package/dist/public/assets/{slack-dark-C4BAj0zG.js → slack-dark-CwjFnlVt.js} +0 -0
- /package/dist/public/assets/{slack-ochin-C7ZSz2re.js → slack-ochin-LzCvys6s.js} +0 -0
- /package/dist/public/assets/{smalltalk-BVg0n3PR.js → smalltalk-BBbACgl7.js} +0 -0
- /package/dist/public/assets/{snazzy-light-Cs5rak87.js → snazzy-light-NXcQ8sF0.js} +0 -0
- /package/dist/public/assets/{solarized-dark-D5tKhMKW.js → solarized-dark-B-VoNlUK.js} +0 -0
- /package/dist/public/assets/{solarized-light-Cfg4buFY.js → solarized-light-C8vl6MNh.js} +0 -0
- /package/dist/public/assets/{solidity-CNyVlel_.js → solidity-Ctalf8dM.js} +0 -0
- /package/dist/public/assets/{sortable.esm-BqXWcrem.js → sortable.esm-D50Gs9Eb.js} +0 -0
- /package/dist/public/assets/{splunk-CguydXwG.js → splunk-B_oMX2tE.js} +0 -0
- /package/dist/public/assets/{sql-Dc5_M3Jn.js → sql-CxtKvNAf.js} +0 -0
- /package/dist/public/assets/{sql-D0xFSArR.js → sql-EiNxeFWI.js} +0 -0
- /package/dist/public/assets/{src-CFCDRYHD.js → src-D90fZ1pT.js} +0 -0
- /package/dist/public/assets/{ssh-config-BzUb6Ldl.js → ssh-config-CLbibmz9.js} +0 -0
- /package/dist/public/assets/{stex-Bg195G9l.js → stex-D_W9RRx2.js} +0 -0
- /package/dist/public/assets/{stylus-CNDNun22.js → stylus-YEVMcPJ_.js} +0 -0
- /package/dist/public/assets/{swift-B58SmkpI.js → swift-Cf04WqN5.js} +0 -0
- /package/dist/public/assets/{swift-BM43jnQ4.js → swift-k2zMh0Sz.js} +0 -0
- /package/dist/public/assets/{synthwave-84-D0d2D2kc.js → synthwave-84-DlwiGpRE.js} +0 -0
- /package/dist/public/assets/{system-verilog-BefigMKC.js → system-verilog-BjzhvZci.js} +0 -0
- /package/dist/public/assets/{systemd-CicIMKx8.js → systemd-r4irDtOY.js} +0 -0
- /package/dist/public/assets/{tabs-B4yZ8H83.js → tabs-DWO28sb2.js} +0 -0
- /package/dist/public/assets/{talonscript-nw2ZOgZF.js → talonscript-y8AQFJDG.js} +0 -0
- /package/dist/public/assets/{tasl-B5MX0P1I.js → tasl-CXkTfQ-7.js} +0 -0
- /package/dist/public/assets/{tcl-DUJsrRHU.js → tcl-q0qwTP_T.js} +0 -0
- /package/dist/public/assets/{terminal-command-events-DaYZ4rvK.js → terminal-command-events-DonTra6W.js} +0 -0
- /package/dist/public/assets/{terraform-BurLtx7S.js → terraform-BTUgfdOT.js} +0 -0
- /package/dist/public/assets/{textarea-DkcNoPBJ.js → textarea-DUYJ_2l0.js} +0 -0
- /package/dist/public/assets/{thread-client-C1FOF8bU.js → thread-client-BS0s_MKD.js} +0 -0
- /package/dist/public/assets/{timeline-diff-store-C2db-_BF.js → timeline-diff-store-Dx1mFxgG.js} +0 -0
- /package/dist/public/assets/{tokyo-night-B2kArRer.js → tokyo-night-Di7IEaJD.js} +0 -0
- /package/dist/public/assets/{toml-Dx3bnRiA.js → toml-B2qVDGgJ.js} +0 -0
- /package/dist/public/assets/{toml-BKXsT_kJ.js → toml-CLlekQWz.js} +0 -0
- /package/dist/public/assets/{tool-list-format-CN0A1M0q.js → tool-list-format-C-Zu064J.js} +0 -0
- /package/dist/public/assets/{tsv-DxTSgXKD.js → tsv-D6S6-BAc.js} +0 -0
- /package/dist/public/assets/{tsx-C-TkkiIW.js → tsx-DZG4sVWZ.js} +0 -0
- /package/dist/public/assets/{turtle-CCyFdVnr.js → turtle-CznagvsP.js} +0 -0
- /package/dist/public/assets/{typescript-o1bu4XTI.js → typescript-D-0vhNzb.js} +0 -0
- /package/dist/public/assets/{typespec-CO9ZM9oq.js → typespec-CYnEOgpX.js} +0 -0
- /package/dist/public/assets/{typst-CtIB1Ee7.js → typst-DVNeljyd.js} +0 -0
- /package/dist/public/assets/{use-collab-url-BOYyAEAy.js → use-collab-url-DnDtI_86.js} +0 -0
- /package/dist/public/assets/{use-conflicts-CcUMLnH-.js → use-conflicts-DYvfJWip.js} +0 -0
- /package/dist/public/assets/{use-installed-clis-Cr9Uz3fy.js → use-installed-clis-DYoBxFbg.js} +0 -0
- /package/dist/public/assets/{useLintConfigViewMode-QafPWUQc.js → useLintConfigViewMode-C2RW74Gg.js} +0 -0
- /package/dist/public/assets/{v-C4oDod1z.js → v-VKcGmoG_.js} +0 -0
- /package/dist/public/assets/{vala-D5cfiTIx.js → vala-D6c66HHx.js} +0 -0
- /package/dist/public/assets/{vb-Bq3RHYwu.js → vb-DVrp7wo6.js} +0 -0
- /package/dist/public/assets/{verilog-BFXABkJw.js → verilog-BNTty9nX.js} +0 -0
- /package/dist/public/assets/{vesper-CIoTQeIf.js → vesper-Ce1c9RsC.js} +0 -0
- /package/dist/public/assets/{vhdl-CobdOxZ5.js → vhdl-CiHAZFu_.js} +0 -0
- /package/dist/public/assets/{viml-2wiKXwq9.js → viml-BAvXMdfj.js} +0 -0
- /package/dist/public/assets/{vitesse-black-BxU7Aa0j.js → vitesse-black-CRAYCNyL.js} +0 -0
- /package/dist/public/assets/{vitesse-dark-KgaxUars.js → vitesse-dark-C2ZAZDAH.js} +0 -0
- /package/dist/public/assets/{vitesse-light-mCXGgljU.js → vitesse-light-doROc42j.js} +0 -0
- /package/dist/public/assets/{vyper-CkAUfbkf.js → vyper-qlHqsgRr.js} +0 -0
- /package/dist/public/assets/{wasm-Cjb81IoX.js → wasm-0HIOaKHk.js} +0 -0
- /package/dist/public/assets/{wasm-D6eO1hWJ.js → wasm-BE0rLPn9.js} +0 -0
- /package/dist/public/assets/{wenyan-CYSV40hV.js → wenyan-C93oTLLt.js} +0 -0
- /package/dist/public/assets/{wgsl-fVQJ6W1J.js → wgsl-DInwu8sy.js} +0 -0
- /package/dist/public/assets/{wikitext-DqzFh5aG.js → wikitext-D4G3Dvdp.js} +0 -0
- /package/dist/public/assets/{wit-BRyAhOp-.js → wit-C6ULNp8j.js} +0 -0
- /package/dist/public/assets/{wolfram-B9tfv63T.js → wolfram-S9AeH3Rt.js} +0 -0
- /package/dist/public/assets/{yaml-CL_pb-41.js → yaml-BgLFzqoW.js} +0 -0
- /package/dist/public/assets/{zenscript-q_X5Icpd.js → zenscript-CahmDEEt.js} +0 -0
- /package/dist/public/assets/{zig-DIa2U638.js → zig-BZWJUFD7.js} +0 -0
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import{o as e}from"./chunk-CYidjpOJ.js";import{t}from"./jsx-runtime-BUgB2tll.js";import{t as n}from"./react-f2sANaYj.js";import{n as r}from"./dist-PQ5KMVDh.js";import{t as i}from"./compiler-runtime-BfE3aGVn.js";import{Bt as a,Ds as o,Dt as s,En as c,Fs as l,Ht as u,Is as d,Ns as f,On as p,Ps as ee,Rt as m,Ut as te,Vt as h,Wt as ne,Zo as g,bs as re,es as _,ki as ie,ws as ae,zt as oe}from"./dist-C_owXiVJ.js";import{n as se,r as ce}from"./use-apply-config-theme-B5w38X1P.js";import{r as le}from"./client-version-ChvQDp-z.js";import{c as ue,d as de,m as fe,n as pe,o as me,s as he,t as ge,y as _e}from"./css-color-to-hex-wMBAsSG3.js";import{i as ve}from"./use-apply-config-language-7Y1kLw_A.js";var ye=i(),v=e(n(),1),y=null,be=new Set;function xe(){return y}function Se(e){let t=e!==null&&e.length>0?e:null;if(t!==y){y=t;for(let e of be)try{e()}catch(e){console.warn(`[server-instance-store] subscriber threw:`,e)}}}function Ce(e){return be.add(e),()=>{be.delete(e)}}function we(){return(0,v.useSyncExternalStore)(Ce,xe,xe)}var b=()=>new Map,Te=e=>{let t=b();return e.forEach((e,n)=>{t.set(n,e)}),t},x=(e,t,n)=>{let r=e.get(t);return r===void 0&&e.set(t,r=n()),r},Ee=(e,t)=>{let n=[];for(let[r,i]of e)n.push(t(i,r));return n},De=(e,t)=>{for(let[n,r]of e)if(t(r,n))return!0;return!1},S=()=>new Set,Oe=e=>e[e.length-1],ke=(e,t)=>{for(let n=0;n<t.length;n++)e.push(t[n])},C=Array.from,Ae=(e,t)=>{for(let n=0;n<e.length;n++)if(!t(e[n],n,e))return!1;return!0},je=(e,t)=>{for(let n=0;n<e.length;n++)if(t(e[n],n,e))return!0;return!1},Me=(e,t)=>{let n=Array(e);for(let r=0;r<e;r++)n[r]=t(r,n);return n},Ne=Array.isArray,Pe=class{constructor(){this._observers=b()}on(e,t){return x(this._observers,e,S).add(t),t}once(e,t){let n=(...r)=>{this.off(e,n),t(...r)};this.on(e,n)}off(e,t){let n=this._observers.get(e);n!==void 0&&(n.delete(t),n.size===0&&this._observers.delete(e))}emit(e,t){return C((this._observers.get(e)||b()).values()).forEach(e=>e(...t))}destroy(){this._observers=b()}},Fe=class{constructor(){this._observers=b()}on(e,t){x(this._observers,e,S).add(t)}once(e,t){let n=(...r)=>{this.off(e,n),t(...r)};this.on(e,n)}off(e,t){let n=this._observers.get(e);n!==void 0&&(n.delete(t),n.size===0&&this._observers.delete(e))}emit(e,t){return C((this._observers.get(e)||b()).values()).forEach(e=>e(...t))}destroy(){this._observers=b()}},w=Math.floor,Ie=Math.abs,Le=(e,t)=>e<t?e:t,T=(e,t)=>e>t?e:t;Number.isNaN;var Re=e=>e===0?1/e<0:e<0,ze=1<<17,Be=1<<18,Ve=1<<19,He=1<<20,Ue=1<<21,We=1<<22,Ge=1<<23,Ke=1<<24,qe=1<<25,Je=1<<26,Ye=1<<27,Xe=1<<28,Ze=1<<29;ze-1,Be-1,Ve-1,He-1,Ue-1,We-1,Ge-1,Ke-1,qe-1,Je-1,Ye-1,Xe-1,Ze-1;var Qe=2**53-1,$e=-(2**53-1),et=Number.isInteger||(e=>typeof e==`number`&&isFinite(e)&&w(e)===e);Number.isNaN,Number.parseInt;var tt=String.fromCharCode;String.fromCodePoint,tt(65535);var nt=e=>e.toLowerCase(),rt=/^\s*/g,it=e=>e.replace(rt,``),at=/([A-Z])/g,ot=(e,t)=>it(e.replace(at,e=>`${t}${nt(e)}`)),st=e=>{let t=unescape(encodeURIComponent(e)),n=t.length,r=new Uint8Array(n);for(let e=0;e<n;e++)r[e]=t.codePointAt(e);return r},ct=typeof TextEncoder<`u`?new TextEncoder:null,lt=ct?e=>ct.encode(e):st,ut=typeof TextDecoder>`u`?null:new TextDecoder(`utf-8`,{fatal:!0,ignoreBOM:!0});ut&&ut.decode(new Uint8Array).length===1&&(ut=null);var dt=(e,t)=>Me(t,()=>e).join(``),ft=class{constructor(){this.cpos=0,this.cbuf=new Uint8Array(100),this.bufs=[]}},pt=()=>new ft,mt=e=>{let t=pt();return e(t),E(t)},ht=e=>{let t=e.cpos;for(let n=0;n<e.bufs.length;n++)t+=e.bufs[n].length;return t},E=e=>{let t=new Uint8Array(ht(e)),n=0;for(let r=0;r<e.bufs.length;r++){let i=e.bufs[r];t.set(i,n),n+=i.length}return t.set(new Uint8Array(e.cbuf.buffer,0,e.cpos),n),t},gt=(e,t)=>{let n=e.cbuf.length;n-e.cpos<t&&(e.bufs.push(new Uint8Array(e.cbuf.buffer,0,e.cpos)),e.cbuf=new Uint8Array(T(n,t)*2),e.cpos=0)},D=(e,t)=>{let n=e.cbuf.length;e.cpos===n&&(e.bufs.push(e.cbuf),e.cbuf=new Uint8Array(n*2),e.cpos=0),e.cbuf[e.cpos++]=t},_t=D,O=(e,t)=>{for(;t>127;)D(e,128|127&t),t=w(t/128);D(e,127&t)},vt=(e,t)=>{let n=Re(t);for(n&&(t=-t),D(e,(t>63?128:0)|(n?64:0)|63&t),t=w(t/64);t>0;)D(e,(t>127?128:0)|127&t),t=w(t/128)},yt=new Uint8Array(3e4),bt=yt.length/3,xt=ct&&ct.encodeInto?(e,t)=>{if(t.length<bt){let n=ct.encodeInto(t,yt).written||0;O(e,n);for(let t=0;t<n;t++)D(e,yt[t])}else k(e,lt(t))}:(e,t)=>{let n=unescape(encodeURIComponent(t)),r=n.length;O(e,r);for(let t=0;t<r;t++)D(e,n.codePointAt(t))},St=(e,t)=>{let n=e.cbuf.length,r=e.cpos,i=Le(n-r,t.length),a=t.length-i;e.cbuf.set(t.subarray(0,i),r),e.cpos+=i,a>0&&(e.bufs.push(e.cbuf),e.cbuf=new Uint8Array(T(n*2,a)),e.cbuf.set(t.subarray(i)),e.cpos=a)},k=(e,t)=>{O(e,t.byteLength),St(e,t)},Ct=(e,t)=>{gt(e,t);let n=new DataView(e.cbuf.buffer,e.cpos,t);return e.cpos+=t,n},wt=(e,t)=>Ct(e,4).setFloat32(0,t,!1),Tt=(e,t)=>Ct(e,8).setFloat64(0,t,!1),Et=(e,t)=>Ct(e,8).setBigInt64(0,t,!1),Dt=new DataView(new ArrayBuffer(4)),Ot=e=>(Dt.setFloat32(0,e),Dt.getFloat32(0)===e),kt=(e,t)=>{switch(typeof t){case`string`:D(e,119),xt(e,t);break;case`number`:et(t)&&Ie(t)<=2147483647?(D(e,125),vt(e,t)):Ot(t)?(D(e,124),wt(e,t)):(D(e,123),Tt(e,t));break;case`bigint`:D(e,122),Et(e,t);break;case`object`:if(t===null)D(e,126);else if(Ne(t)){D(e,117),O(e,t.length);for(let n=0;n<t.length;n++)kt(e,t[n])}else if(t instanceof Uint8Array)D(e,116),k(e,t);else{D(e,118);let n=Object.keys(t);O(e,n.length);for(let r=0;r<n.length;r++){let i=n[r];xt(e,i),kt(e,t[i])}}break;case`boolean`:D(e,t?120:121);break;default:D(e,127)}},At=class extends ft{constructor(e){super(),this.w=e,this.s=null,this.count=0}write(e){this.s===e?this.count++:(this.count>0&&O(this,this.count-1),this.count=1,this.w(this,e),this.s=e)}},jt=e=>{e.count>0&&(vt(e.encoder,e.count===1?e.s:-e.s),e.count>1&&O(e.encoder,e.count-2))},Mt=class{constructor(){this.encoder=new ft,this.s=0,this.count=0}write(e){this.s===e?this.count++:(jt(this),this.count=1,this.s=e)}toUint8Array(){return jt(this),E(this.encoder)}},Nt=e=>{if(e.count>0){let t=e.diff*2+(e.count===1?0:1);vt(e.encoder,t),e.count>1&&O(e.encoder,e.count-2)}},Pt=class{constructor(){this.encoder=new ft,this.s=0,this.count=0,this.diff=0}write(e){this.diff===e-this.s?(this.s=e,this.count++):(Nt(this),this.count=1,this.diff=e-this.s,this.s=e)}toUint8Array(){return Nt(this),E(this.encoder)}},Ft=class{constructor(){this.sarr=[],this.s=``,this.lensE=new Mt}write(e){this.s+=e,this.s.length>19&&(this.sarr.push(this.s),this.s=``),this.lensE.write(e.length)}toUint8Array(){let e=new ft;return this.sarr.push(this.s),this.s=``,xt(e,this.sarr.join(``)),St(e,this.lensE.toUint8Array()),E(e)}},A=e=>Error(e),j=()=>{throw A(`Method unimplemented`)},M=()=>{throw A(`Unexpected case`)},It=A(`Unexpected end of array`),Lt=A(`Integer out of Range`),Rt=class{constructor(e){this.arr=e,this.pos=0}},zt=e=>new Rt(e),Bt=e=>e.pos!==e.arr.length,Vt=(e,t)=>{let n=new Uint8Array(e.arr.buffer,e.pos+e.arr.byteOffset,t);return e.pos+=t,n},N=e=>Vt(e,P(e)),Ht=e=>e.arr[e.pos++],P=e=>{let t=0,n=1,r=e.arr.length;for(;e.pos<r;){let r=e.arr[e.pos++];if(t+=(r&127)*n,n*=128,r<128)return t;if(t>Qe)throw Lt}throw It},Ut=e=>{let t=e.arr[e.pos++],n=t&63,r=64,i=(t&64)>0?-1:1;if(!(t&128))return i*n;let a=e.arr.length;for(;e.pos<a;){if(t=e.arr[e.pos++],n+=(t&127)*r,r*=128,t<128)return i*n;if(n>Qe)throw Lt}throw It},Wt=ut?e=>ut.decode(N(e)):e=>{let t=P(e);if(t===0)return``;{let n=String.fromCodePoint(Ht(e));if(--t<100)for(;t--;)n+=String.fromCodePoint(Ht(e));else for(;t>0;){let r=t<1e4?t:1e4,i=e.arr.subarray(e.pos,e.pos+r);e.pos+=r,n+=String.fromCodePoint.apply(null,i),t-=r}return decodeURIComponent(escape(n))}},Gt=(e,t)=>{let n=new DataView(e.arr.buffer,e.arr.byteOffset+e.pos,t);return e.pos+=t,n},Kt=[e=>void 0,e=>null,Ut,e=>Gt(e,4).getFloat32(0,!1),e=>Gt(e,8).getFloat64(0,!1),e=>Gt(e,8).getBigInt64(0,!1),e=>!1,e=>!0,Wt,e=>{let t=P(e),n={};for(let r=0;r<t;r++){let t=Wt(e);n[t]=qt(e)}return n},e=>{let t=P(e),n=[];for(let r=0;r<t;r++)n.push(qt(e));return n},N],qt=e=>Kt[127-Ht(e)](e),Jt=class extends Rt{constructor(e,t){super(e),this.reader=t,this.s=null,this.count=0}read(){return this.count===0&&(this.s=this.reader(this),Bt(this)?this.count=P(this)+1:this.count=-1),this.count--,this.s}},Yt=class extends Rt{constructor(e){super(e),this.s=0,this.count=0}read(){if(this.count===0){this.s=Ut(this);let e=Re(this.s);this.count=1,e&&(this.s=-this.s,this.count=P(this)+2)}return this.count--,this.s}},Xt=class extends Rt{constructor(e){super(e),this.s=0,this.count=0,this.diff=0}read(){if(this.count===0){let e=Ut(this),t=e&1;this.diff=w(e/2),this.count=1,t&&(this.count=P(this)+2)}return this.s+=this.diff,this.count--,this.s}},Zt=class{constructor(e){this.decoder=new Yt(e),this.str=Wt(this.decoder),this.spos=0}read(){let e=this.spos+this.decoder.read(),t=this.str.slice(this.spos,e);return this.spos=e,t}};crypto.subtle;var Qt=crypto.getRandomValues.bind(crypto),$t=Math.random,en=()=>Qt(new Uint32Array(1))[0],tn=e=>e[w($t()*e.length)],nn=`10000000-1000-4000-8000-100000000000`,rn=()=>nn.replace(/[018]/g,e=>(e^en()&15>>e/4).toString(16)),an=Date.now,on=e=>new Promise(e);Promise.all.bind(Promise);var sn=e=>e===void 0?null:e,cn=new class{constructor(){this.map=new Map}setItem(e,t){this.map.set(e,t)}getItem(e){return this.map.get(e)}};try{typeof localStorage<`u`&&localStorage&&(cn=localStorage)}catch{}var ln=cn,un=Symbol(`Equality`),dn=(e,t)=>e===t||!!e?.[un]?.(t)||!1,fn=e=>typeof e==`object`,pn=Object.assign,mn=Object.keys,hn=(e,t)=>{for(let n in e)t(e[n],n)},gn=e=>mn(e).length,_n=e=>{for(let t in e)return!1;return!0},vn=(e,t)=>{for(let n in e)if(!t(e[n],n))return!1;return!0},yn=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),bn=(e,t)=>e===t||gn(e)===gn(t)&&vn(e,(e,n)=>(e!==void 0||yn(t,n))&&dn(t[n],e)),xn=Object.freeze,Sn=e=>{for(let t in e){let n=e[t];(typeof n==`object`||typeof n==`function`)&&Sn(e[t])}return xn(e)},Cn=(e,t,n=0)=>{try{for(;n<e.length;n++)e[n](...t)}finally{n<e.length&&Cn(e,t,n+1)}},wn=e=>e,Tn=(e,t)=>{if(e===t)return!0;if(e==null||t==null||e.constructor!==t.constructor&&(e.constructor||Object)!==(t.constructor||Object))return!1;if(e[un]!=null)return e[un](t);switch(e.constructor){case ArrayBuffer:e=new Uint8Array(e),t=new Uint8Array(t);case Uint8Array:if(e.byteLength!==t.byteLength)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;break;case Set:if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;break;case Map:if(e.size!==t.size)return!1;for(let n of e.keys())if(!t.has(n)||!Tn(e.get(n),t.get(n)))return!1;break;case void 0:case Object:if(gn(e)!==gn(t))return!1;for(let n in e)if(!yn(e,n)||!Tn(e[n],t[n]))return!1;break;case Array:if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!Tn(e[n],t[n]))return!1;break;default:return!1}return!0},En=(e,t)=>t.includes(e),Dn=typeof process<`u`&&process.release&&/node|io\.js/.test(process.release.name)&&Object.prototype.toString.call(typeof process<`u`?process:0)===`[object process]`,On=typeof window<`u`&&typeof document<`u`&&!Dn;typeof navigator<`u`&&/Mac/.test(navigator.platform);var F,kn=[],An=()=>{if(F===void 0)if(Dn){F=b();let e=process.argv,t=null;for(let n=0;n<e.length;n++){let r=e[n];r[0]===`-`?(t!==null&&F.set(t,``),t=r):t===null?kn.push(r):(F.set(t,r),t=null)}t!==null&&F.set(t,``)}else typeof location==`object`?(F=b(),(location.search||`?`).slice(1).split(`&`).forEach(e=>{if(e.length!==0){let[t,n]=e.split(`=`);F.set(`--${ot(t,`-`)}`,n),F.set(`-${ot(t,`-`)}`,n)}})):F=b();return F},jn=e=>An().has(e),Mn=e=>sn(Dn?{}[e.toUpperCase().replaceAll(`-`,`_`)]:ln.getItem(e)),Nn=e=>jn(`--`+e)||Mn(e)!==null,Pn=Nn(`production`),Fn=Dn&&En({}.FORCE_COLOR,[`true`,`1`,`2`])||!jn(`--no-colors`)&&!Nn(`no-color`)&&(!Dn||process.stdout.isTTY)&&(!Dn||jn(`--color`)||Mn(`COLORTERM`)!==null||(Mn(`TERM`)||``).includes(`color`)),In=e=>new Uint8Array(e),Ln=On?e=>{let t=``;for(let n=0;n<e.byteLength;n++)t+=tt(e[n]);return btoa(t)}:e=>Buffer.from(e.buffer,e.byteOffset,e.byteLength).toString(`base64`),Rn=e=>{let t=In(e.byteLength);return t.set(e),t},zn=e=>mt(t=>kt(t,e)),Bn=class{constructor(e,t){this.left=e,this.right=t}},Vn=(e,t)=>new Bn(e,t),Hn=(e,t)=>e.forEach(e=>t(e.left,e.right)),Un=e=>e.next()>=.5,Wn=(e,t,n)=>w(e.next()*(n+1-t)+t),Gn=(e,t,n)=>w(e.next()*(n+1-t)+t),Kn=(e,t,n)=>Gn(e,t,n),qn=e=>tt(Kn(e,97,122)),Jn=(e,t=0,n=20)=>{let r=Kn(e,t,n),i=``;for(let t=0;t<r;t++)i+=qn(e);return i},Yn=(e,t)=>t[Kn(e,0,t.length-1)],Xn=Symbol(`0schema`),Zn=class{constructor(){this._rerrs=[]}extend(e,t,n,r=null){this._rerrs.push({path:e,expected:t,has:n,message:r})}toString(){let e=[];for(let t=this._rerrs.length-1;t>0;t--){let n=this._rerrs[t];e.push(dt(` `,(this._rerrs.length-t)*2)+`${n.path==null?``:`[${n.path}] `}${n.has} doesn't match ${n.expected}. ${n.message}`)}return e.join(`
|
|
2
|
+
`)}},Qn=(e,t)=>e===t?!0:e==null||t==null||e.constructor!==t.constructor?!1:e[un]?dn(e,t):Ne(e)?Ae(e,e=>je(t,t=>Qn(e,t))):fn(e)?vn(e,(e,n)=>Qn(e,t[n])):!1,I=class{static _dilutes=!1;extends(e){let[t,n]=[this.shape,e.shape];return this.constructor._dilutes&&([n,t]=[t,n]),Qn(t,n)}equals(e){return this.constructor===e.constructor&&Tn(this.shape,e.shape)}[Xn](){return!0}[un](e){return this.equals(e)}validate(e){return this.check(e)}check(e,t){j()}get nullable(){return kr(this,Wr)}get optional(){return new sr(this)}cast(e){return Jr(e,this),e}expect(e){return Jr(e,this),e}},$n=class extends I{constructor(e,t){super(),this.shape=e,this._c=t}check(e,t=void 0){let n=e?.constructor===this.shape&&(this._c==null||this._c(e));return!n&&t?.extend(null,this.shape.name,e?.constructor.name,e?.constructor===this.shape?`Check failed`:`Constructor match failed`),n}},L=(e,t=null)=>new $n(e,t);L($n);var er=class extends I{constructor(e){super(),this.shape=e}check(e,t){let n=this.shape(e);return!n&&t?.extend(null,`custom prop`,e?.constructor.name,`failed to check custom prop`),n}},R=e=>new er(e);L(er);var tr=class extends I{constructor(e){super(),this.shape=e}check(e,t){let n=this.shape.some(t=>t===e);return!n&&t?.extend(null,this.shape.join(` | `),e.toString()),n}},nr=(...e)=>new tr(e),rr=L(tr),ir=RegExp.escape||(e=>e.replace(/[().|&,$^[\]]/g,e=>`\\`+e)),ar=e=>{if(zr.check(e))return[ir(e)];if(rr.check(e))return e.shape.map(e=>e+``);if(Rr.check(e))return[`[+-]?\\d+.?\\d*`];if(Br.check(e))return[`.*`];if(Ar.check(e))return e.shape.map(ar).flat(1);M()};L(class extends I{constructor(e){super(),this.shape=e,this._r=RegExp(`^`+e.map(ar).map(e=>`(${e.join(`|`)})`).join(``)+`$`)}check(e,t){let n=this._r.exec(e)!=null;return!n&&t?.extend(null,this._r.toString(),e.toString(),`String doesn't match string template.`),n}});var or=Symbol(`optional`),sr=class extends I{constructor(e){super(),this.shape=e}check(e,t){let n=e===void 0||this.shape.check(e);return!n&&t?.extend(null,`undefined (optional)`,`()`),n}get[or](){return!0}},cr=L(sr),lr=class extends I{check(e,t){return t?.extend(null,`never`,typeof e),!1}};new lr,L(lr);var ur=class e extends I{constructor(e,t=!1){super(),this.shape=e,this._isPartial=t}static _dilutes=!0;get partial(){return new e(this.shape,!0)}check(e,t){return e==null?(t?.extend(null,`object`,`null`),!1):vn(this.shape,(n,r)=>{let i=this._isPartial&&!yn(e,r)||n.check(e[r],t);return!i&&t?.extend(r.toString(),n.toString(),typeof e[r],`Object property does not match`),i})}},dr=e=>new ur(e),fr=L(ur),pr=R(e=>e!=null&&(e.constructor===Object||e.constructor==null)),mr=class extends I{constructor(e,t){super(),this.shape={keys:e,values:t}}check(e,t){return e!=null&&vn(e,(n,r)=>{let i=this.shape.keys.check(r,t);return!i&&t?.extend(r+``,`Record`,typeof e,i?`Key doesn't match schema`:`Value doesn't match value`),i&&this.shape.values.check(n,t)})}},hr=(e,t)=>new mr(e,t),gr=L(mr),_r=class extends I{constructor(e){super(),this.shape=e}check(e,t){return e!=null&&vn(this.shape,(n,r)=>{let i=n.check(e[r],t);return!i&&t?.extend(r.toString(),`Tuple`,typeof n),i})}},vr=(...e)=>new _r(e);L(_r);var yr=class extends I{constructor(e){super(),this.shape=e.length===1?e[0]:new Or(e)}check(e,t){let n=Ne(e)&&Ae(e,e=>this.shape.check(e));return!n&&t?.extend(null,`Array`,``),n}},br=(...e)=>new yr(e),xr=L(yr),Sr=R(e=>Ne(e)),Cr=class extends I{constructor(e,t){super(),this.shape=e,this._c=t}check(e,t){let n=e instanceof this.shape&&(this._c==null||this._c(e));return!n&&t?.extend(null,this.shape.name,e?.constructor.name),n}},wr=(e,t=null)=>new Cr(e,t);L(Cr);var Tr=wr(I),Er=L(class extends I{constructor(e){super(),this.len=e.length-1,this.args=vr(...e.slice(-1)),this.res=e[this.len]}check(e,t){let n=e.constructor===Function&&e.length<=this.len;return!n&&t?.extend(null,`function`,typeof e),n}}),Dr=R(e=>typeof e==`function`);L(class extends I{constructor(e){super(),this.shape=e}check(e,t){let n=Ae(this.shape,n=>n.check(e,t));return!n&&t?.extend(null,`Intersectinon`,typeof e),n}},e=>e.shape.length>0);var Or=class extends I{static _dilutes=!0;constructor(e){super(),this.shape=e}check(e,t){let n=je(this.shape,n=>n.check(e,t));return t?.extend(null,`Union`,typeof e),n}},kr=(...e)=>e.findIndex(e=>Ar.check(e))>=0?kr(...e.map(e=>qr(e)).map(e=>Ar.check(e)?e.shape:[e]).flat(1)):e.length===1?e[0]:new Or(e),Ar=L(Or),jr=()=>!0,Mr=R(jr),Nr=L(er,e=>e.shape===jr),Pr=R(e=>typeof e==`bigint`),Fr=R(e=>e===Pr),Ir=R(e=>typeof e==`symbol`);R(e=>e===Ir);var Lr=R(e=>typeof e==`number`),Rr=R(e=>e===Lr),zr=R(e=>typeof e==`string`),Br=R(e=>e===zr),Vr=R(e=>typeof e==`boolean`),Hr=R(e=>e===Vr),Ur=nr(void 0);L(tr,e=>e.shape.length===1&&e.shape[0]===void 0),nr(void 0);var Wr=nr(null),Gr=L(tr,e=>e.shape.length===1&&e.shape[0]===null);L(Uint8Array),L($n,e=>e.shape===Uint8Array);var Kr=kr(Lr,zr,Wr,Ur,Pr,Vr,Ir);(()=>{let e=br(Mr),t=hr(zr,Mr),n=kr(Lr,zr,Wr,Vr,e,t);return e.shape=n,t.shape.values=n,n})();var qr=e=>{if(Tr.check(e))return e;if(pr.check(e)){let t={};for(let n in e)t[n]=qr(e[n]);return dr(t)}else if(Sr.check(e))return kr(...e.map(qr));else if(Kr.check(e))return nr(e);else if(Dr.check(e))return L(e);M()},Jr=Pn?()=>{}:(e,t)=>{let n=new Zn;if(!t.check(e,n))throw A(`Expected value to be of type ${t.constructor.name}.\n${n.toString()}`)},Yr=class{constructor(e){this.patterns=[],this.$state=e}if(e,t){return this.patterns.push({if:qr(e),h:t}),this}else(e){return this.if(Mr,e)}done(){return(e,t)=>{for(let n=0;n<this.patterns.length;n++){let r=this.patterns[n];if(r.if.check(e))return r.h(e,t)}throw A(`Unhandled pattern`)}}},Xr=(e=>new Yr(e))(Mr).if(Rr,(e,t)=>Wn(t,$e,Qe)).if(Br,(e,t)=>Jn(t)).if(Hr,(e,t)=>Un(t)).if(Fr,(e,t)=>BigInt(Wn(t,$e,Qe))).if(Ar,(e,t)=>Zr(t,Yn(t,e.shape))).if(fr,(e,t)=>{let n={};for(let r in e.shape){let i=e.shape[r];if(cr.check(i)){if(Un(t))continue;i=i.shape}n[r]=Xr(i,t)}return n}).if(xr,(e,t)=>{let n=[],r=Gn(t,0,42);for(let i=0;i<r;i++)n.push(Zr(t,e.shape));return n}).if(rr,(e,t)=>Yn(t,e.shape)).if(Gr,(e,t)=>null).if(Er,(e,t)=>{let n=Zr(t,e.res);return()=>n}).if(Nr,(e,t)=>Zr(t,Yn(t,[Lr,zr,Wr,Ur,Pr,Vr,br(Lr),hr(kr(`a`,`b`,`c`),Lr)]))).if(gr,(e,t)=>{let n={},r=Wn(t,0,3);for(let i=0;i<r;i++){let r=Zr(t,e.shape.keys);n[r]=Zr(t,e.shape.values)}return n}).done(),Zr=(e,t)=>Xr(qr(t),e),z=typeof document<`u`?document:{},Qr=e=>z.createElement(e),$r=()=>z.createDocumentFragment();R(e=>e.nodeType===di);var ei=e=>z.createTextNode(e);typeof DOMParser<`u`&&new DOMParser;var ti=(e,t)=>(Hn(t,(t,n)=>{n===!1?e.removeAttribute(t):n===!0?e.setAttribute(t,``):e.setAttribute(t,n)}),e),ni=e=>{let t=$r();for(let n=0;n<e.length;n++)si(t,e[n]);return t},ri=(e,t)=>(si(e,ni(t)),e),ii=(e,t=[],n=[])=>ri(ti(Qr(e),t),n);R(e=>e.nodeType===ci);var ai=ei;R(e=>e.nodeType===li);var oi=e=>Ee(e,(e,t)=>`${t}:${e};`).join(``),si=(e,t)=>e.appendChild(t),ci=z.ELEMENT_NODE,li=z.TEXT_NODE;z.CDATA_SECTION_NODE,z.COMMENT_NODE;var ui=z.DOCUMENT_NODE;z.DOCUMENT_TYPE_NODE;var di=z.DOCUMENT_FRAGMENT_NODE;R(e=>e.nodeType===ui);var fi=(e=>class{constructor(e){this._=e}destroy(){e(this._)}})(clearTimeout),pi=(e,t)=>new fi(setTimeout(t,e)),mi=Symbol,hi=mi(),gi=mi(),_i=mi(),vi=mi(),yi=mi(),bi=mi(),xi=mi(),Si=mi(),Ci=mi(),wi=e=>{e.length===1&&e[0]?.constructor===Function&&(e=e[0]());let t=[],n=[],r=0;for(;r<e.length;r++){let n=e[r];if(n===void 0)break;if(n.constructor===String||n.constructor===Number)t.push(n);else if(n.constructor===Object)break}for(r>0&&n.push(t.join(``));r<e.length;r++){let t=e[r];t instanceof Symbol||n.push(t)}return n};an();var Ti={[hi]:Vn(`font-weight`,`bold`),[gi]:Vn(`font-weight`,`normal`),[_i]:Vn(`color`,`blue`),[yi]:Vn(`color`,`green`),[vi]:Vn(`color`,`grey`),[bi]:Vn(`color`,`red`),[xi]:Vn(`color`,`purple`),[Si]:Vn(`color`,`orange`),[Ci]:Vn(`color`,`black`)},Ei=Fn?e=>{e.length===1&&e[0]?.constructor===Function&&(e=e[0]());let t=[],n=[],r=b(),i=[],a=0;for(;a<e.length;a++){let i=e[a],o=Ti[i];if(o!==void 0)r.set(o.left,o.right);else{if(i===void 0)break;if(i.constructor===String||i.constructor===Number){let e=oi(r);a>0||e.length>0?(t.push(`%c`+i),n.push(e)):t.push(i)}else break}}for(a>0&&(i=n,i.unshift(t.join(``)));a<e.length;a++){let t=e[a];t instanceof Symbol||i.push(t)}return i}:wi,Di=(...e)=>{console.log(...Ei(e)),ki.forEach(t=>t.print(e))},Oi=(...e)=>{console.warn(...Ei(e)),e.unshift(Si),ki.forEach(t=>t.print(e))},ki=S(),Ai=e=>({[Symbol.iterator](){return this},next:e}),ji=(e,t)=>Ai(()=>{let n;do n=e.next();while(!n.done&&!t(n.value));return n}),Mi=(e,t)=>Ai(()=>{let{done:n,value:r}=e.next();return{done:n,value:n?void 0:t(r)}}),Ni=class{constructor(e,t){this.clock=e,this.len=t}},Pi=class{constructor(){this.clients=new Map}},Fi=(e,t,n)=>t.clients.forEach((t,r)=>{let i=e.doc.store.clients.get(r);if(i!=null){let r=i[i.length-1],a=r.id.clock+r.length;for(let r=0,o=t[r];r<t.length&&o.clock<a;o=t[++r])Xa(e,i,o.clock,o.len,n)}}),Ii=(e,t)=>{let n=0,r=e.length-1;for(;n<=r;){let i=w((n+r)/2),a=e[i],o=a.clock;if(o<=t){if(t<o+a.len)return i;n=i+1}else r=i-1}return null},Li=(e,t)=>{let n=e.clients.get(t.client);return n!==void 0&&Ii(n,t.clock)!==null},Ri=e=>{e.clients.forEach(e=>{e.sort((e,t)=>e.clock-t.clock);let t,n;for(t=1,n=1;t<e.length;t++){let r=e[n-1],i=e[t];r.clock+r.len>=i.clock?e[n-1]=new Ni(r.clock,T(r.len,i.clock+i.len-r.clock)):(n<t&&(e[n]=i),n++)}e.length=n})},zi=e=>{let t=new Pi;for(let n=0;n<e.length;n++)e[n].clients.forEach((r,i)=>{if(!t.clients.has(i)){let a=r.slice();for(let t=n+1;t<e.length;t++)ke(a,e[t].clients.get(i)||[]);t.clients.set(i,a)}});return Ri(t),t},Bi=(e,t,n,r)=>{x(e.clients,t,()=>[]).push(new Ni(n,r))},Vi=()=>new Pi,Hi=e=>{let t=Vi();return e.clients.forEach((e,n)=>{let r=[];for(let t=0;t<e.length;t++){let n=e[t];if(n.deleted){let i=n.id.clock,a=n.length;if(t+1<e.length)for(let n=e[t+1];t+1<e.length&&n.deleted;n=e[++t+1])a+=n.length;r.push(new Ni(i,a))}}r.length>0&&t.clients.set(n,r)}),t},Ui=(e,t)=>{O(e.restEncoder,t.clients.size),C(t.clients.entries()).sort((e,t)=>t[0]-e[0]).forEach(([t,n])=>{e.resetDsCurVal(),O(e.restEncoder,t);let r=n.length;O(e.restEncoder,r);for(let t=0;t<r;t++){let r=n[t];e.writeDsClock(r.clock),e.writeDsLen(r.len)}})},Wi=e=>{let t=new Pi,n=P(e.restDecoder);for(let r=0;r<n;r++){e.resetDsCurVal();let n=P(e.restDecoder),r=P(e.restDecoder);if(r>0){let i=x(t.clients,n,()=>[]);for(let t=0;t<r;t++)i.push(new Ni(e.readDsClock(),e.readDsLen()))}}return t},Gi=(e,t,n)=>{let r=new Pi,i=P(e.restDecoder);for(let a=0;a<i;a++){e.resetDsCurVal();let i=P(e.restDecoder),a=P(e.restDecoder),o=n.clients.get(i)||[],s=V(n,i);for(let n=0;n<a;n++){let n=e.readDsClock(),a=n+e.readDsLen();if(n<s){s<a&&Bi(r,i,s,a-s);let e=H(o,n),c=o[e];for(!c.deleted&&c.id.clock<n&&(o.splice(e+1,0,lc(t,c,n-c.id.clock)),e++);e<o.length&&(c=o[e++],c.id.clock<a);)c.deleted||(a<c.id.clock+c.length&&o.splice(e,0,lc(t,c,a-c.id.clock)),c.delete(t))}else Bi(r,i,n,a-n)}}if(r.clients.size>0){let e=new ta;return O(e.restEncoder,0),Ui(e,r),e.toUint8Array()}return null},Ki=en,qi=class e extends Pe{constructor({guid:e=rn(),collectionid:t=null,gc:n=!0,gcFilter:r=()=>!0,meta:i=null,autoLoad:a=!1,shouldLoad:o=!0}={}){super(),this.gc=n,this.gcFilter=r,this.clientID=Ki(),this.guid=e,this.collectionid=t,this.share=new Map,this.store=new Ua,this._transaction=null,this._transactionCleanups=[],this.subdocs=new Set,this._item=null,this.shouldLoad=o,this.autoLoad=a,this.meta=i,this.isLoaded=!1,this.isSynced=!1,this.isDestroyed=!1,this.whenLoaded=on(e=>{this.on(`load`,()=>{this.isLoaded=!0,e(this)})});let s=()=>on(e=>{let t=n=>{(n===void 0||n===!0)&&(this.off(`sync`,t),e())};this.on(`sync`,t)});this.on(`sync`,e=>{e===!1&&this.isSynced&&(this.whenSynced=s()),this.isSynced=e===void 0||e===!0,this.isSynced&&!this.isLoaded&&this.emit(`load`,[this])}),this.whenSynced=s()}load(){let e=this._item;e!==null&&!this.shouldLoad&&W(e.parent.doc,e=>{e.subdocsLoaded.add(this)},null,!0),this.shouldLoad=!0}getSubdocs(){return this.subdocs}getSubdocGuids(){return new Set(C(this.subdocs).map(e=>e.guid))}transact(e,t=null){return W(this,e,t)}get(e,t=K){let n=x(this.share,e,()=>{let e=new t;return e._integrate(this,null),e}),r=n.constructor;if(t!==K&&r!==t)if(r===K){let r=new t;r._map=n._map,n._map.forEach(e=>{for(;e!==null;e=e.left)e.parent=r}),r._start=n._start;for(let e=r._start;e!==null;e=e.right)e.parent=r;return r._length=n._length,this.share.set(e,r),r._integrate(this,null),r}else throw Error(`Type with the name ${e} has already been defined with a different constructor`);return n}getArray(e=``){return this.get(e,$o)}getText(e=``){return this.get(e,bs)}getMap(e=``){return this.get(e,ns)}getXmlElement(e=``){return this.get(e,Ts)}getXmlFragment(e=``){return this.get(e,Cs)}toJSON(){let e={};return this.share.forEach((t,n)=>{e[n]=t.toJSON()}),e}destroy(){this.isDestroyed=!0,C(this.subdocs).forEach(e=>e.destroy());let t=this._item;if(t!==null){this._item=null;let n=t.content;n.doc=new e({guid:this.guid,...n.opts,shouldLoad:!1}),n.doc._item=t,W(t.parent.doc,e=>{let r=n.doc;t.deleted||e.subdocsAdded.add(r),e.subdocsRemoved.add(this)},null,!0)}this.emit(`destroyed`,[!0]),this.emit(`destroy`,[this]),super.destroy()}},Ji=class{constructor(e){this.restDecoder=e}resetDsCurVal(){}readDsClock(){return P(this.restDecoder)}readDsLen(){return P(this.restDecoder)}},Yi=class extends Ji{readLeftID(){return B(P(this.restDecoder),P(this.restDecoder))}readRightID(){return B(P(this.restDecoder),P(this.restDecoder))}readClient(){return P(this.restDecoder)}readInfo(){return Ht(this.restDecoder)}readString(){return Wt(this.restDecoder)}readParentInfo(){return P(this.restDecoder)===1}readTypeRef(){return P(this.restDecoder)}readLen(){return P(this.restDecoder)}readAny(){return qt(this.restDecoder)}readBuf(){return Rn(N(this.restDecoder))}readJSON(){return JSON.parse(Wt(this.restDecoder))}readKey(){return Wt(this.restDecoder)}},Xi=class{constructor(e){this.dsCurrVal=0,this.restDecoder=e}resetDsCurVal(){this.dsCurrVal=0}readDsClock(){return this.dsCurrVal+=P(this.restDecoder),this.dsCurrVal}readDsLen(){let e=P(this.restDecoder)+1;return this.dsCurrVal+=e,e}},Zi=class extends Xi{constructor(e){super(e),this.keys=[],P(e),this.keyClockDecoder=new Xt(N(e)),this.clientDecoder=new Yt(N(e)),this.leftClockDecoder=new Xt(N(e)),this.rightClockDecoder=new Xt(N(e)),this.infoDecoder=new Jt(N(e),Ht),this.stringDecoder=new Zt(N(e)),this.parentInfoDecoder=new Jt(N(e),Ht),this.typeRefDecoder=new Yt(N(e)),this.lenDecoder=new Yt(N(e))}readLeftID(){return new wa(this.clientDecoder.read(),this.leftClockDecoder.read())}readRightID(){return new wa(this.clientDecoder.read(),this.rightClockDecoder.read())}readClient(){return this.clientDecoder.read()}readInfo(){return this.infoDecoder.read()}readString(){return this.stringDecoder.read()}readParentInfo(){return this.parentInfoDecoder.read()===1}readTypeRef(){return this.typeRefDecoder.read()}readLen(){return this.lenDecoder.read()}readAny(){return qt(this.restDecoder)}readBuf(){return N(this.restDecoder)}readJSON(){return qt(this.restDecoder)}readKey(){let e=this.keyClockDecoder.read();if(e<this.keys.length)return this.keys[e];{let e=this.stringDecoder.read();return this.keys.push(e),e}}},Qi=class{constructor(){this.restEncoder=pt()}toUint8Array(){return E(this.restEncoder)}resetDsCurVal(){}writeDsClock(e){O(this.restEncoder,e)}writeDsLen(e){O(this.restEncoder,e)}},$i=class extends Qi{writeLeftID(e){O(this.restEncoder,e.client),O(this.restEncoder,e.clock)}writeRightID(e){O(this.restEncoder,e.client),O(this.restEncoder,e.clock)}writeClient(e){O(this.restEncoder,e)}writeInfo(e){_t(this.restEncoder,e)}writeString(e){xt(this.restEncoder,e)}writeParentInfo(e){O(this.restEncoder,+!!e)}writeTypeRef(e){O(this.restEncoder,e)}writeLen(e){O(this.restEncoder,e)}writeAny(e){kt(this.restEncoder,e)}writeBuf(e){k(this.restEncoder,e)}writeJSON(e){xt(this.restEncoder,JSON.stringify(e))}writeKey(e){xt(this.restEncoder,e)}},ea=class{constructor(){this.restEncoder=pt(),this.dsCurrVal=0}toUint8Array(){return E(this.restEncoder)}resetDsCurVal(){this.dsCurrVal=0}writeDsClock(e){let t=e-this.dsCurrVal;this.dsCurrVal=e,O(this.restEncoder,t)}writeDsLen(e){e===0&&M(),O(this.restEncoder,e-1),this.dsCurrVal+=e}},ta=class extends ea{constructor(){super(),this.keyMap=new Map,this.keyClock=0,this.keyClockEncoder=new Pt,this.clientEncoder=new Mt,this.leftClockEncoder=new Pt,this.rightClockEncoder=new Pt,this.infoEncoder=new At(_t),this.stringEncoder=new Ft,this.parentInfoEncoder=new At(_t),this.typeRefEncoder=new Mt,this.lenEncoder=new Mt}toUint8Array(){let e=pt();return O(e,0),k(e,this.keyClockEncoder.toUint8Array()),k(e,this.clientEncoder.toUint8Array()),k(e,this.leftClockEncoder.toUint8Array()),k(e,this.rightClockEncoder.toUint8Array()),k(e,E(this.infoEncoder)),k(e,this.stringEncoder.toUint8Array()),k(e,E(this.parentInfoEncoder)),k(e,this.typeRefEncoder.toUint8Array()),k(e,this.lenEncoder.toUint8Array()),St(e,E(this.restEncoder)),E(e)}writeLeftID(e){this.clientEncoder.write(e.client),this.leftClockEncoder.write(e.clock)}writeRightID(e){this.clientEncoder.write(e.client),this.rightClockEncoder.write(e.clock)}writeClient(e){this.clientEncoder.write(e)}writeInfo(e){this.infoEncoder.write(e)}writeString(e){this.stringEncoder.write(e)}writeParentInfo(e){this.parentInfoEncoder.write(+!!e)}writeTypeRef(e){this.typeRefEncoder.write(e)}writeLen(e){this.lenEncoder.write(e)}writeAny(e){kt(this.restEncoder,e)}writeBuf(e){k(this.restEncoder,e)}writeJSON(e){kt(this.restEncoder,e)}writeKey(e){let t=this.keyMap.get(e);t===void 0?(this.keyClockEncoder.write(this.keyClock++),this.stringEncoder.write(e)):this.keyClockEncoder.write(t)}},na=(e,t,n,r)=>{r=T(r,t[0].id.clock);let i=H(t,r);O(e.restEncoder,t.length-i),e.writeClient(n),O(e.restEncoder,r);let a=t[i];a.write(e,r-a.id.clock);for(let n=i+1;n<t.length;n++)t[n].write(e,0)},ra=(e,t,n)=>{let r=new Map;n.forEach((e,n)=>{V(t,n)>e&&r.set(n,e)}),Wa(t).forEach((e,t)=>{n.has(t)||r.set(t,0)}),O(e.restEncoder,r.size),C(r.entries()).sort((e,t)=>t[0]-e[0]).forEach(([n,r])=>{na(e,t.clients.get(n),n,r)})},ia=(e,t)=>{let n=b(),r=P(e.restDecoder);for(let i=0;i<r;i++){let r=P(e.restDecoder),i=Array(r),a=e.readClient(),o=P(e.restDecoder);n.set(a,{i:0,refs:i});for(let n=0;n<r;n++){let r=e.readInfo();switch(31&r){case 0:{let t=e.readLen();i[n]=new q(B(a,o),t),o+=t;break}case 10:{let t=P(e.restDecoder);i[n]=new X(B(a,o),t),o+=t;break}default:{let s=(r&192)==0,c=new Y(B(a,o),null,(r&128)==128?e.readLeftID():null,null,(r&64)==64?e.readRightID():null,s?e.readParentInfo()?t.get(e.readString()):e.readLeftID():null,s&&(r&32)==32?e.readString():null,fc(e,r));i[n]=c,o+=c.length}}}}return n},aa=(e,t,n)=>{let r=[],i=C(n.keys()).sort((e,t)=>e-t);if(i.length===0)return null;let a=()=>{if(i.length===0)return null;let e=n.get(i[i.length-1]);for(;e.refs.length===e.i;)if(i.pop(),i.length>0)e=n.get(i[i.length-1]);else return null;return e},o=a();if(o===null)return null;let s=new Ua,c=new Map,l=(e,t)=>{let n=c.get(e);(n==null||n>t)&&c.set(e,t)},u=o.refs[o.i++],d=new Map,f=()=>{for(let e of r){let t=e.id.client,r=n.get(t);r?(r.i--,s.clients.set(t,r.refs.slice(r.i)),n.delete(t),r.i=0,r.refs=[]):s.clients.set(t,[e]),i=i.filter(e=>e!==t)}r.length=0};for(;;){if(u.constructor!==X){let i=x(d,u.id.client,()=>V(t,u.id.client))-u.id.clock;if(i<0)r.push(u),l(u.id.client,u.id.clock-1),f();else{let a=u.getMissing(e,t);if(a!==null){r.push(u);let e=n.get(a)||{refs:[],i:0};if(e.refs.length===e.i)l(a,V(t,a)),f();else{u=e.refs[e.i++];continue}}else (i===0||i<u.length)&&(u.integrate(e,i),d.set(u.id.client,u.id.clock+u.length))}}if(r.length>0)u=r.pop();else if(o!==null&&o.i<o.refs.length)u=o.refs[o.i++];else{if(o=a(),o===null)break;u=o.refs[o.i++]}}if(s.clients.size>0){let e=new ta;return ra(e,s,new Map),O(e.restEncoder,0),{missing:c,update:e.toUint8Array()}}return null},oa=(e,t)=>ra(e,t.doc.store,t.beforeState),sa=(e,t,n,r=new Zi(e))=>W(t,e=>{e.local=!1;let t=!1,n=e.doc,i=n.store,a=aa(e,i,ia(r,n)),o=i.pendingStructs;if(o){for(let[e,n]of o.missing)if(n<V(i,e)){t=!0;break}if(a){for(let[e,t]of a.missing){let n=o.missing.get(e);(n==null||n>t)&&o.missing.set(e,t)}o.update=mo([o.update,a.update])}}else i.pendingStructs=a;let s=Gi(r,e,i);if(i.pendingDs){let t=new Zi(zt(i.pendingDs));P(t.restDecoder);let n=Gi(t,e,i);s&&n?i.pendingDs=mo([s,n]):i.pendingDs=s||n}else i.pendingDs=s;if(t){let t=i.pendingStructs.update;i.pendingStructs=null,ca(e.doc,t)}},n,!1),ca=(e,t,n,r=Zi)=>{let i=zt(t);sa(i,e,n,new r(i))},la=(e,t,n)=>ca(e,t,n,Yi),ua=(e,t,n=new Map)=>{ra(e,t.store,n),Ui(e,Hi(t.store))},da=(e,t=new Uint8Array([0]),n=new ta)=>{ua(n,e,ma(t));let r=[n.toUint8Array()];if(e.store.pendingDs&&r.push(e.store.pendingDs),e.store.pendingStructs&&r.push(ho(e.store.pendingStructs.update,t)),r.length>1){if(n.constructor===$i)return fo(r.map((e,t)=>t===0?e:bo(e)));if(n.constructor===ta)return mo(r)}return r[0]},fa=(e,t)=>da(e,t,new $i),pa=e=>{let t=new Map,n=P(e.restDecoder);for(let r=0;r<n;r++){let n=P(e.restDecoder),r=P(e.restDecoder);t.set(n,r)}return t},ma=e=>pa(new Ji(zt(e))),ha=(e,t)=>(O(e.restEncoder,t.size),C(t.entries()).sort((e,t)=>t[0]-e[0]).forEach(([t,n])=>{O(e.restEncoder,t),O(e.restEncoder,n)}),e),ga=(e,t)=>ha(e,Wa(t.store)),_a=(e,t=new ea)=>(e instanceof Map?ha(t,e):ga(t,e),t.toUint8Array()),va=e=>_a(e,new Qi),ya=class{constructor(){this.l=[]}},ba=()=>new ya,xa=(e,t)=>e.l.push(t),Sa=(e,t)=>{let n=e.l,r=n.length;e.l=n.filter(e=>t!==e),r===e.l.length&&console.error(`[yjs] Tried to remove event handler that doesn't exist.`)},Ca=(e,t,n)=>Cn(e.l,[t,n]),wa=class{constructor(e,t){this.client=e,this.clock=t}},Ta=(e,t)=>e===t||e!==null&&t!==null&&e.client===t.client&&e.clock===t.clock,B=(e,t)=>new wa(e,t),Ea=e=>{for(let[t,n]of e.doc.share.entries())if(n===e)return t;throw M()},Da=(e,t)=>{for(;t!==null;){if(t.parent===e)return!0;t=t.parent._item}return!1},Oa=class{constructor(e,t,n,r=0){this.type=e,this.tname=t,this.item=n,this.assoc=r}},ka=e=>{let t={};return e.type&&(t.type=e.type),e.tname&&(t.tname=e.tname),e.item&&(t.item=e.item),e.assoc!=null&&(t.assoc=e.assoc),t},Aa=e=>new Oa(e.type==null?null:B(e.type.client,e.type.clock),e.tname??null,e.item==null?null:B(e.item.client,e.item.clock),e.assoc==null?0:e.assoc),ja=class{constructor(e,t,n=0){this.type=e,this.index=t,this.assoc=n}},Ma=(e,t,n=0)=>new ja(e,t,n),Na=(e,t,n)=>{let r=null,i=null;return e._item===null?i=Ea(e):r=B(e._item.id.client,e._item.id.clock),new Oa(r,i,t,n)},Pa=(e,t,n=0)=>{let r=e._start;if(n<0){if(t===0)return Na(e,null,n);t--}for(;r!==null;){if(!r.deleted&&r.countable){if(r.length>t)return Na(e,B(r.id.client,r.id.clock+t),n);t-=r.length}if(r.right===null&&n<0)return Na(e,r.lastId,n);r=r.right}return Na(e,null,n)},Fa=(e,t)=>{let n=Ka(e,t);return{item:n,diff:t.clock-n.id.clock}},Ia=(e,t,n=!0)=>{let r=t.store,i=e.item,a=e.type,o=e.tname,s=e.assoc,c=null,l=0;if(i!==null){if(V(r,i.client)<=i.clock)return null;let e=n?sc(r,i):Fa(r,i),t=e.item;if(!(t instanceof Y))return null;if(c=t.parent,c._item===null||!c._item.deleted){l=t.deleted||!t.countable?0:e.diff+(s>=0?0:1);let n=t.left;for(;n!==null;)!n.deleted&&n.countable&&(l+=n.length),n=n.left}}else{if(o!==null)c=t.get(o);else if(a!==null){if(V(r,a.client)<=a.clock)return null;let{item:e}=n?sc(r,a):{item:Ka(r,a)};if(e instanceof Y&&e.content instanceof ac)c=e.content.type;else return null}else throw M();l=s>=0?c._length:0}return Ma(c,l,e.assoc)},La=(e,t)=>e===t||e!==null&&t!==null&&e.tname===t.tname&&Ta(e.item,t.item)&&Ta(e.type,t.type)&&e.assoc===t.assoc,Ra=class{constructor(e,t){this.ds=e,this.sv=t}},za=(e,t)=>new Ra(e,t);za(Vi(),new Map);var Ba=e=>za(Hi(e.store),Wa(e.store)),Va=(e,t)=>t===void 0?!e.deleted:t.sv.has(e.id.client)&&(t.sv.get(e.id.client)||0)>e.id.clock&&!Li(t.ds,e.id),Ha=(e,t)=>{let n=x(e.meta,Ha,S),r=e.doc.store;n.has(t)||(t.sv.forEach((t,n)=>{t<V(r,n)&&U(e,B(n,t))}),Fi(e,t.ds,e=>{}),n.add(t))},Ua=class{constructor(){this.clients=new Map,this.pendingStructs=null,this.pendingDs=null}},Wa=e=>{let t=new Map;return e.clients.forEach((e,n)=>{let r=e[e.length-1];t.set(n,r.id.clock+r.length)}),t},V=(e,t)=>{let n=e.clients.get(t);if(n===void 0)return 0;let r=n[n.length-1];return r.id.clock+r.length},Ga=(e,t)=>{let n=e.clients.get(t.id.client);if(n===void 0)n=[],e.clients.set(t.id.client,n);else{let e=n[n.length-1];if(e.id.clock+e.length!==t.id.clock)throw M()}n.push(t)},H=(e,t)=>{let n=0,r=e.length-1,i=e[r],a=i.id.clock;if(a===t)return r;let o=w(t/(a+i.length-1)*r);for(;n<=r;){if(i=e[o],a=i.id.clock,a<=t){if(t<a+i.length)return o;n=o+1}else r=o-1;o=w((n+r)/2)}throw M()},Ka=(e,t)=>{let n=e.clients.get(t.client);return n[H(n,t.clock)]},qa=(e,t,n)=>{let r=H(t,n),i=t[r];return i.id.clock<n&&i instanceof Y?(t.splice(r+1,0,lc(e,i,n-i.id.clock)),r+1):r},U=(e,t)=>{let n=e.doc.store.clients.get(t.client);return n[qa(e,n,t.clock)]},Ja=(e,t,n)=>{let r=t.clients.get(n.client),i=H(r,n.clock),a=r[i];return n.clock!==a.id.clock+a.length-1&&a.constructor!==q&&r.splice(i+1,0,lc(e,a,n.clock-a.id.clock+1)),a},Ya=(e,t,n)=>{let r=e.clients.get(t.id.client);r[H(r,t.id.clock)]=n},Xa=(e,t,n,r,i)=>{if(r===0)return;let a=n+r,o=qa(e,t,n),s;do s=t[o++],a<s.id.clock+s.length&&qa(e,t,a),i(s);while(o<t.length&&t[o].id.clock<a)},Za=class{constructor(e,t,n){this.doc=e,this.deleteSet=new Pi,this.beforeState=Wa(e.store),this.afterState=new Map,this.changed=new Map,this.changedParentTypes=new Map,this._mergeStructs=[],this.origin=t,this.meta=new Map,this.local=n,this.subdocsAdded=new Set,this.subdocsRemoved=new Set,this.subdocsLoaded=new Set,this._needFormattingCleanup=!1}},Qa=(e,t)=>t.deleteSet.clients.size===0&&!De(t.afterState,(e,n)=>t.beforeState.get(n)!==e)?!1:(Ri(t.deleteSet),oa(e,t),Ui(e,t.deleteSet),!0),$a=(e,t,n)=>{let r=t._item;(r===null||r.id.clock<(e.beforeState.get(r.id.client)||0)&&!r.deleted)&&x(e.changed,t,S).add(n)},eo=(e,t)=>{let n=e[t],r=e[t-1],i=t;for(;i>0;n=r,r=e[--i-1]){if(r.deleted===n.deleted&&r.constructor===n.constructor&&r.mergeWith(n)){n instanceof Y&&n.parentSub!==null&&n.parent._map.get(n.parentSub)===n&&n.parent._map.set(n.parentSub,r);continue}break}let a=t-i;return a&&e.splice(t+1-a,a),a},to=(e,t,n)=>{for(let[r,i]of e.clients.entries()){let e=t.clients.get(r);for(let r=i.length-1;r>=0;r--){let a=i[r],o=a.clock+a.len;for(let r=H(e,a.clock),i=e[r];r<e.length&&i.id.clock<o;i=e[++r]){let i=e[r];if(a.clock+a.len<=i.id.clock)break;i instanceof Y&&i.deleted&&!i.keep&&n(i)&&i.gc(t,!1)}}}},no=(e,t)=>{e.clients.forEach((e,n)=>{let r=t.clients.get(n);for(let t=e.length-1;t>=0;t--){let n=e[t],i=Le(r.length-1,1+H(r,n.clock+n.len-1));for(let e=i,t=r[e];e>0&&t.id.clock>=n.clock;t=r[e])e-=1+eo(r,e)}})},ro=(e,t)=>{if(t<e.length){let n=e[t],r=n.doc,i=r.store,a=n.deleteSet,o=n._mergeStructs;try{Ri(a),n.afterState=Wa(n.doc.store),r.emit(`beforeObserverCalls`,[n,r]);let e=[];n.changed.forEach((t,r)=>e.push(()=>{(r._item===null||!r._item.deleted)&&r._callObserver(n,t)})),e.push(()=>{n.changedParentTypes.forEach((t,r)=>{r._dEH.l.length>0&&(r._item===null||!r._item.deleted)&&(t=t.filter(e=>e.target._item===null||!e.target._item.deleted),t.forEach(e=>{e.currentTarget=r,e._path=null}),t.sort((e,t)=>e.path.length-t.path.length),e.push(()=>{Ca(r._dEH,t,n)}))}),e.push(()=>r.emit(`afterTransaction`,[n,r])),e.push(()=>{n._needFormattingCleanup&&_s(n)})}),Cn(e,[])}finally{r.gc&&to(a,i,r.gcFilter),no(a,i),n.afterState.forEach((e,t)=>{let r=n.beforeState.get(t)||0;if(r!==e){let e=i.clients.get(t),n=T(H(e,r),1);for(let t=e.length-1;t>=n;)t-=1+eo(e,t)}});for(let e=o.length-1;e>=0;e--){let{client:t,clock:n}=o[e].id,r=i.clients.get(t),a=H(r,n);a+1<r.length&&eo(r,a+1)>1||a>0&&eo(r,a)}if(!n.local&&n.afterState.get(r.clientID)!==n.beforeState.get(r.clientID)&&(Di(Si,hi,`[yjs] `,gi,bi,`Changed the client-id because another client seems to be using it.`),r.clientID=Ki()),r.emit(`afterTransactionCleanup`,[n,r]),r._observers.has(`update`)){let e=new $i;Qa(e,n)&&r.emit(`update`,[e.toUint8Array(),n.origin,r,n])}if(r._observers.has(`updateV2`)){let e=new ta;Qa(e,n)&&r.emit(`updateV2`,[e.toUint8Array(),n.origin,r,n])}let{subdocsAdded:s,subdocsLoaded:c,subdocsRemoved:l}=n;(s.size>0||l.size>0||c.size>0)&&(s.forEach(e=>{e.clientID=r.clientID,e.collectionid??=r.collectionid,r.subdocs.add(e)}),l.forEach(e=>r.subdocs.delete(e)),r.emit(`subdocs`,[{loaded:c,added:s,removed:l},r,n]),l.forEach(e=>e.destroy())),e.length<=t+1?(r._transactionCleanups=[],r.emit(`afterAllTransactions`,[r,e])):ro(e,t+1)}}},W=(e,t,n=null,r=!0)=>{let i=e._transactionCleanups,a=!1,o=null;e._transaction===null&&(a=!0,e._transaction=new Za(e,n,r),i.push(e._transaction),i.length===1&&e.emit(`beforeAllTransactions`,[e]),e.emit(`beforeTransaction`,[e._transaction,e]));try{o=t(e._transaction)}finally{if(a){let t=e._transaction===i[0];e._transaction=null,t&&ro(i,0)}}return o},io=class{constructor(e,t){this.insertions=t,this.deletions=e,this.meta=new Map}},ao=(e,t,n)=>{Fi(e,n.deletions,n=>{n instanceof Y&&t.scope.some(t=>t===e.doc||Da(t,n))&&cc(n,!1)})},oo=(e,t,n)=>{let r=null,i=e.doc,a=e.scope;W(i,n=>{for(;t.length>0&&e.currStackItem===null;){let r=i.store,o=t.pop(),s=new Set,c=[],l=!1;Fi(n,o.insertions,e=>{if(e instanceof Y){if(e.redone!==null){let{item:t,diff:i}=sc(r,e.id);i>0&&(t=U(n,B(t.id.client,t.id.clock+i))),e=t}!e.deleted&&a.some(t=>t===n.doc||Da(t,e))&&c.push(e)}}),Fi(n,o.deletions,e=>{e instanceof Y&&a.some(t=>t===n.doc||Da(t,e))&&!Li(o.insertions,e.id)&&s.add(e)}),s.forEach(t=>{l=dc(n,t,s,o.insertions,e.ignoreRemoteMapChanges,e)!==null||l});for(let t=c.length-1;t>=0;t--){let r=c[t];e.deleteFilter(r)&&(r.delete(n),l=!0)}e.currStackItem=l?o:null}n.changed.forEach((e,t)=>{e.has(null)&&t._searchMarker&&(t._searchMarker.length=0)}),r=n},e);let o=e.currStackItem;if(o!=null){let t=r.changedParentTypes;e.emit(`stack-item-popped`,[{stackItem:o,type:n,changedParentTypes:t,origin:e},e]),e.currStackItem=null}return o},so=class extends Pe{constructor(e,{captureTimeout:t=500,captureTransaction:n=e=>!0,deleteFilter:r=()=>!0,trackedOrigins:i=new Set([null]),ignoreRemoteMapChanges:a=!1,doc:o=Ne(e)?e[0].doc:e instanceof qi?e:e.doc}={}){super(),this.scope=[],this.doc=o,this.addToScope(e),this.deleteFilter=r,i.add(this),this.trackedOrigins=i,this.captureTransaction=n,this.undoStack=[],this.redoStack=[],this.undoing=!1,this.redoing=!1,this.currStackItem=null,this.lastChange=0,this.ignoreRemoteMapChanges=a,this.captureTimeout=t,this.afterTransactionHandler=e=>{if(!this.captureTransaction(e)||!this.scope.some(t=>e.changedParentTypes.has(t)||t===this.doc)||!this.trackedOrigins.has(e.origin)&&(!e.origin||!this.trackedOrigins.has(e.origin.constructor)))return;let t=this.undoing,n=this.redoing,r=t?this.redoStack:this.undoStack;t?this.stopCapturing():n||this.clear(!1,!0);let i=new Pi;e.afterState.forEach((t,n)=>{let r=e.beforeState.get(n)||0,a=t-r;a>0&&Bi(i,n,r,a)});let a=an(),o=!1;if(this.lastChange>0&&a-this.lastChange<this.captureTimeout&&r.length>0&&!t&&!n){let t=r[r.length-1];t.deletions=zi([t.deletions,e.deleteSet]),t.insertions=zi([t.insertions,i])}else r.push(new io(e.deleteSet,i)),o=!0;!t&&!n&&(this.lastChange=a),Fi(e,e.deleteSet,t=>{t instanceof Y&&this.scope.some(n=>n===e.doc||Da(n,t))&&cc(t,!0)});let s=[{stackItem:r[r.length-1],origin:e.origin,type:t?`redo`:`undo`,changedParentTypes:e.changedParentTypes},this];o?this.emit(`stack-item-added`,s):this.emit(`stack-item-updated`,s)},this.doc.on(`afterTransaction`,this.afterTransactionHandler),this.doc.on(`destroy`,()=>{this.destroy()})}addToScope(e){let t=new Set(this.scope);e=Ne(e)?e:[e],e.forEach(e=>{t.has(e)||(t.add(e),(e instanceof K?e.doc!==this.doc:e!==this.doc)&&Oi(`[yjs#509] Not same Y.Doc`),this.scope.push(e))})}addTrackedOrigin(e){this.trackedOrigins.add(e)}removeTrackedOrigin(e){this.trackedOrigins.delete(e)}clear(e=!0,t=!0){(e&&this.canUndo()||t&&this.canRedo())&&this.doc.transact(n=>{e&&(this.undoStack.forEach(e=>ao(n,this,e)),this.undoStack=[]),t&&(this.redoStack.forEach(e=>ao(n,this,e)),this.redoStack=[]),this.emit(`stack-cleared`,[{undoStackCleared:e,redoStackCleared:t}])})}stopCapturing(){this.lastChange=0}undo(){this.undoing=!0;let e;try{e=oo(this,this.undoStack,`undo`)}finally{this.undoing=!1}return e}redo(){this.redoing=!0;let e;try{e=oo(this,this.redoStack,`redo`)}finally{this.redoing=!1}return e}canUndo(){return this.undoStack.length>0}canRedo(){return this.redoStack.length>0}destroy(){this.trackedOrigins.delete(this),this.doc.off(`afterTransaction`,this.afterTransactionHandler),super.destroy()}};function*co(e){let t=P(e.restDecoder);for(let n=0;n<t;n++){let t=P(e.restDecoder),n=e.readClient(),r=P(e.restDecoder);for(let i=0;i<t;i++){let t=e.readInfo();if(t===10){let t=P(e.restDecoder);yield new X(B(n,r),t),r+=t}else if(31&t){let i=(t&192)==0,a=new Y(B(n,r),null,(t&128)==128?e.readLeftID():null,null,(t&64)==64?e.readRightID():null,i?e.readParentInfo()?e.readString():e.readLeftID():null,i&&(t&32)==32?e.readString():null,fc(e,t));yield a,r+=a.length}else{let t=e.readLen();yield new q(B(n,r),t),r+=t}}}}var lo=class{constructor(e,t){this.gen=co(e),this.curr=null,this.done=!1,this.filterSkips=t,this.next()}next(){do this.curr=this.gen.next().value||null;while(this.filterSkips&&this.curr!==null&&this.curr.constructor===X);return this.curr}},uo=class{constructor(e){this.currClient=0,this.startClock=0,this.written=0,this.encoder=e,this.clientStructs=[]}},fo=e=>mo(e,Yi,$i),po=(e,t)=>{if(e.constructor===q){let{client:n,clock:r}=e.id;return new q(B(n,r+t),e.length-t)}else if(e.constructor===X){let{client:n,clock:r}=e.id;return new X(B(n,r+t),e.length-t)}else{let n=e,{client:r,clock:i}=n.id;return new Y(B(r,i+t),null,B(r,i+t-1),null,n.rightOrigin,n.parent,n.parentSub,n.content.splice(t))}},mo=(e,t=Zi,n=ta)=>{if(e.length===1)return e[0];let r=e.map(e=>new t(zt(e))),i=r.map(e=>new lo(e,!0)),a=null,o=new n,s=new uo(o);for(;i=i.filter(e=>e.curr!==null),i.sort((e,t)=>{if(e.curr.id.client===t.curr.id.client){let n=e.curr.id.clock-t.curr.id.clock;return n===0?e.curr.constructor===t.curr.constructor?0:e.curr.constructor===X?1:-1:n}else return t.curr.id.client-e.curr.id.client}),i.length!==0;){let e=i[0],t=e.curr.id.client;if(a!==null){let n=e.curr,r=!1;for(;n!==null&&n.id.clock+n.length<=a.struct.id.clock+a.struct.length&&n.id.client>=a.struct.id.client;)n=e.next(),r=!0;if(n===null||n.id.client!==t||r&&n.id.clock>a.struct.id.clock+a.struct.length)continue;if(t!==a.struct.id.client)_o(s,a.struct,a.offset),a={struct:n,offset:0},e.next();else if(a.struct.id.clock+a.struct.length<n.id.clock)if(a.struct.constructor===X)a.struct.length=n.id.clock+n.length-a.struct.id.clock;else{_o(s,a.struct,a.offset);let e=n.id.clock-a.struct.id.clock-a.struct.length;a={struct:new X(B(t,a.struct.id.clock+a.struct.length),e),offset:0}}else{let t=a.struct.id.clock+a.struct.length-n.id.clock;t>0&&(a.struct.constructor===X?a.struct.length-=t:n=po(n,t)),a.struct.mergeWith(n)||(_o(s,a.struct,a.offset),a={struct:n,offset:0},e.next())}}else a={struct:e.curr,offset:0},e.next();for(let n=e.curr;n!==null&&n.id.client===t&&n.id.clock===a.struct.id.clock+a.struct.length&&n.constructor!==X;n=e.next())_o(s,a.struct,a.offset),a={struct:n,offset:0}}return a!==null&&(_o(s,a.struct,a.offset),a=null),vo(s),Ui(o,zi(r.map(e=>Wi(e)))),o.toUint8Array()},ho=(e,t,n=Zi,r=ta)=>{let i=ma(t),a=new r,o=new uo(a),s=new n(zt(e)),c=new lo(s,!1);for(;c.curr;){let e=c.curr,t=e.id.client,n=i.get(t)||0;if(c.curr.constructor===X){c.next();continue}if(e.id.clock+e.length>n)for(_o(o,e,T(n-e.id.clock,0)),c.next();c.curr&&c.curr.id.client===t;)_o(o,c.curr,0),c.next();else for(;c.curr&&c.curr.id.client===t&&c.curr.id.clock+c.curr.length<=n;)c.next()}return vo(o),Ui(a,Wi(s)),a.toUint8Array()},go=e=>{e.written>0&&(e.clientStructs.push({written:e.written,restEncoder:E(e.encoder.restEncoder)}),e.encoder.restEncoder=pt(),e.written=0)},_o=(e,t,n)=>{e.written>0&&e.currClient!==t.id.client&&go(e),e.written===0&&(e.currClient=t.id.client,e.encoder.writeClient(t.id.client),O(e.encoder.restEncoder,t.id.clock+n)),t.write(e.encoder,n),e.written++},vo=e=>{go(e);let t=e.encoder.restEncoder;O(t,e.clientStructs.length);for(let n=0;n<e.clientStructs.length;n++){let r=e.clientStructs[n];O(t,r.written),St(t,r.restEncoder)}},yo=(e,t,n,r)=>{let i=new n(zt(e)),a=new lo(i,!1),o=new r,s=new uo(o);for(let e=a.curr;e!==null;e=a.next())_o(s,t(e),0);return vo(s),Ui(o,Wi(i)),o.toUint8Array()},bo=e=>yo(e,wn,Zi,$i),xo=`You must not compute changes after the event-handler fired.`,So=class{constructor(e,t){this.target=e,this.currentTarget=e,this.transaction=t,this._changes=null,this._keys=null,this._delta=null,this._path=null}get path(){return this._path||=Co(this.currentTarget,this.target)}deletes(e){return Li(this.transaction.deleteSet,e.id)}get keys(){if(this._keys===null){if(this.transaction.doc._transactionCleanups.length===0)throw A(xo);let e=new Map,t=this.target;this.transaction.changed.get(t).forEach(n=>{if(n!==null){let r=t._map.get(n),i,a;if(this.adds(r)){let e=r.left;for(;e!==null&&this.adds(e);)e=e.left;if(this.deletes(r))if(e!==null&&this.deletes(e))i=`delete`,a=Oe(e.content.getContent());else return;else e!==null&&this.deletes(e)?(i=`update`,a=Oe(e.content.getContent())):(i=`add`,a=void 0)}else if(this.deletes(r))i=`delete`,a=Oe(r.content.getContent());else return;e.set(n,{action:i,oldValue:a})}}),this._keys=e}return this._keys}get delta(){return this.changes.delta}adds(e){return e.id.clock>=(this.transaction.beforeState.get(e.id.client)||0)}get changes(){let e=this._changes;if(e===null){if(this.transaction.doc._transactionCleanups.length===0)throw A(xo);let t=this.target,n=S(),r=S(),i=[];if(e={added:n,deleted:r,delta:i,keys:this.keys},this.transaction.changed.get(t).has(null)){let e=null,a=()=>{e&&i.push(e)};for(let i=t._start;i!==null;i=i.right)i.deleted?this.deletes(i)&&!this.adds(i)&&((e===null||e.delete===void 0)&&(a(),e={delete:0}),e.delete+=i.length,r.add(i)):this.adds(i)?((e===null||e.insert===void 0)&&(a(),e={insert:[]}),e.insert=e.insert.concat(i.content.getContent()),n.add(i)):((e===null||e.retain===void 0)&&(a(),e={retain:0}),e.retain+=i.length);e!==null&&e.retain===void 0&&a()}this._changes=e}return e}},Co=(e,t)=>{let n=[];for(;t._item!==null&&t!==e;){if(t._item.parentSub!==null)n.unshift(t._item.parentSub);else{let e=0,r=t._item.parent._start;for(;r!==t._item&&r!==null;)!r.deleted&&r.countable&&(e+=r.length),r=r.right;n.unshift(e)}t=t._item.parent}return n},G=()=>{Oi(`Invalid access: Add Yjs type to a document before reading data.`)},wo=80,To=0,Eo=class{constructor(e,t){e.marker=!0,this.p=e,this.index=t,this.timestamp=To++}},Do=e=>{e.timestamp=To++},Oo=(e,t,n)=>{e.p.marker=!1,e.p=t,t.marker=!0,e.index=n,e.timestamp=To++},ko=(e,t,n)=>{if(e.length>=wo){let r=e.reduce((e,t)=>e.timestamp<t.timestamp?e:t);return Oo(r,t,n),r}else{let r=new Eo(t,n);return e.push(r),r}},Ao=(e,t)=>{if(e._start===null||t===0||e._searchMarker===null)return null;let n=e._searchMarker.length===0?null:e._searchMarker.reduce((e,n)=>Ie(t-e.index)<Ie(t-n.index)?e:n),r=e._start,i=0;for(n!==null&&(r=n.p,i=n.index,Do(n));r.right!==null&&i<t;){if(!r.deleted&&r.countable){if(t<i+r.length)break;i+=r.length}r=r.right}for(;r.left!==null&&i>t;)r=r.left,!r.deleted&&r.countable&&(i-=r.length);for(;r.left!==null&&r.left.id.client===r.id.client&&r.left.id.clock+r.left.length===r.id.clock;)r=r.left,!r.deleted&&r.countable&&(i-=r.length);return n!==null&&Ie(n.index-i)<r.parent.length/wo?(Oo(n,r,i),n):ko(e._searchMarker,r,i)},jo=(e,t,n)=>{for(let r=e.length-1;r>=0;r--){let i=e[r];if(n>0){let t=i.p;for(t.marker=!1;t&&(t.deleted||!t.countable);)t=t.left,t&&!t.deleted&&t.countable&&(i.index-=t.length);if(t===null||t.marker===!0){e.splice(r,1);continue}i.p=t,t.marker=!0}(t<i.index||n>0&&t===i.index)&&(i.index=T(t,i.index+n))}},Mo=(e,t,n)=>{let r=e,i=t.changedParentTypes;for(;x(i,e,()=>[]).push(n),e._item!==null;)e=e._item.parent;Ca(r._eH,n,t)},K=class{constructor(){this._item=null,this._map=new Map,this._start=null,this.doc=null,this._length=0,this._eH=ba(),this._dEH=ba(),this._searchMarker=null}get parent(){return this._item?this._item.parent:null}_integrate(e,t){this.doc=e,this._item=t}_copy(){throw j()}clone(){throw j()}_write(e){}get _first(){let e=this._start;for(;e!==null&&e.deleted;)e=e.right;return e}_callObserver(e,t){!e.local&&this._searchMarker&&(this._searchMarker.length=0)}observe(e){xa(this._eH,e)}observeDeep(e){xa(this._dEH,e)}unobserve(e){Sa(this._eH,e)}unobserveDeep(e){Sa(this._dEH,e)}toJSON(){}},No=(e,t,n)=>{e.doc??G(),t<0&&(t=e._length+t),n<0&&(n=e._length+n);let r=n-t,i=[],a=e._start;for(;a!==null&&r>0;){if(a.countable&&!a.deleted){let e=a.content.getContent();if(e.length<=t)t-=e.length;else{for(let n=t;n<e.length&&r>0;n++)i.push(e[n]),r--;t=0}}a=a.right}return i},Po=e=>{e.doc??G();let t=[],n=e._start;for(;n!==null;){if(n.countable&&!n.deleted){let e=n.content.getContent();for(let n=0;n<e.length;n++)t.push(e[n])}n=n.right}return t},Fo=(e,t)=>{let n=[],r=e._start;for(;r!==null;){if(r.countable&&Va(r,t)){let e=r.content.getContent();for(let t=0;t<e.length;t++)n.push(e[t])}r=r.right}return n},Io=(e,t)=>{let n=0,r=e._start;for(e.doc??G();r!==null;){if(r.countable&&!r.deleted){let i=r.content.getContent();for(let r=0;r<i.length;r++)t(i[r],n++,e)}r=r.right}},Lo=(e,t)=>{let n=[];return Io(e,(r,i)=>{n.push(t(r,i,e))}),n},Ro=e=>{let t=e._start,n=null,r=0;return{[Symbol.iterator](){return this},next:()=>{if(n===null){for(;t!==null&&t.deleted;)t=t.right;if(t===null)return{done:!0,value:void 0};n=t.content.getContent(),r=0,t=t.right}let e=n[r++];return n.length<=r&&(n=null),{done:!1,value:e}}}},zo=(e,t)=>{e.doc??G();let n=Ao(e,t),r=e._start;for(n!==null&&(r=n.p,t-=n.index);r!==null;r=r.right)if(!r.deleted&&r.countable){if(t<r.length)return r.content.getContent()[t];t-=r.length}},Bo=(e,t,n,r)=>{let i=n,a=e.doc,o=a.clientID,s=a.store,c=n===null?t._start:n.right,l=[],u=()=>{l.length>0&&(i=new Y(B(o,V(s,o)),i,i&&i.lastId,c,c&&c.id,t,null,new qs(l)),i.integrate(e,0),l=[])};r.forEach(n=>{if(n===null)l.push(n);else switch(n.constructor){case Number:case Object:case Boolean:case Array:case String:l.push(n);break;default:switch(u(),n.constructor){case Uint8Array:case ArrayBuffer:i=new Y(B(o,V(s,o)),i,i&&i.lastId,c,c&&c.id,t,null,new Ps(new Uint8Array(n))),i.integrate(e,0);break;case qi:i=new Y(B(o,V(s,o)),i,i&&i.lastId,c,c&&c.id,t,null,new zs(n)),i.integrate(e,0);break;default:if(n instanceof K)i=new Y(B(o,V(s,o)),i,i&&i.lastId,c,c&&c.id,t,null,new ac(n)),i.integrate(e,0);else throw Error(`Unexpected content type in insert operation`)}}}),u()},Vo=()=>A(`Length exceeded!`),Ho=(e,t,n,r)=>{if(n>t._length)throw Vo();if(n===0)return t._searchMarker&&jo(t._searchMarker,n,r.length),Bo(e,t,null,r);let i=n,a=Ao(t,n),o=t._start;for(a!==null&&(o=a.p,n-=a.index,n===0&&(o=o.prev,n+=o&&o.countable&&!o.deleted?o.length:0));o!==null;o=o.right)if(!o.deleted&&o.countable){if(n<=o.length){n<o.length&&U(e,B(o.id.client,o.id.clock+n));break}n-=o.length}return t._searchMarker&&jo(t._searchMarker,i,r.length),Bo(e,t,o,r)},Uo=(e,t,n)=>{let r=(t._searchMarker||[]).reduce((e,t)=>t.index>e.index?t:e,{index:0,p:t._start}).p;if(r)for(;r.right;)r=r.right;return Bo(e,t,r,n)},Wo=(e,t,n,r)=>{if(r===0)return;let i=n,a=r,o=Ao(t,n),s=t._start;for(o!==null&&(s=o.p,n-=o.index);s!==null&&n>0;s=s.right)!s.deleted&&s.countable&&(n<s.length&&U(e,B(s.id.client,s.id.clock+n)),n-=s.length);for(;r>0&&s!==null;)s.deleted||(r<s.length&&U(e,B(s.id.client,s.id.clock+r)),s.delete(e),r-=s.length),s=s.right;if(r>0)throw Vo();t._searchMarker&&jo(t._searchMarker,i,-a+r)},Go=(e,t,n)=>{let r=t._map.get(n);r!==void 0&&r.delete(e)},Ko=(e,t,n,r)=>{let i=t._map.get(n)||null,a=e.doc,o=a.clientID,s;if(r==null)s=new qs([r]);else switch(r.constructor){case Number:case Object:case Boolean:case Array:case String:case Date:case BigInt:s=new qs([r]);break;case Uint8Array:s=new Ps(r);break;case qi:s=new zs(r);break;default:if(r instanceof K)s=new ac(r);else throw Error(`Unexpected content type`)}new Y(B(o,V(a.store,o)),i,i&&i.lastId,null,null,t,n,s).integrate(e,0)},qo=(e,t)=>{e.doc??G();let n=e._map.get(t);return n!==void 0&&!n.deleted?n.content.getContent()[n.length-1]:void 0},Jo=e=>{let t={};return e.doc??G(),e._map.forEach((e,n)=>{e.deleted||(t[n]=e.content.getContent()[e.length-1])}),t},Yo=(e,t)=>{e.doc??G();let n=e._map.get(t);return n!==void 0&&!n.deleted},Xo=(e,t)=>{let n={};return e._map.forEach((e,r)=>{let i=e;for(;i!==null&&(!t.sv.has(i.id.client)||i.id.clock>=(t.sv.get(i.id.client)||0));)i=i.left;i!==null&&Va(i,t)&&(n[r]=i.content.getContent()[i.length-1])}),n},Zo=e=>(e.doc??G(),ji(e._map.entries(),e=>!e[1].deleted)),Qo=class extends So{},$o=class e extends K{constructor(){super(),this._prelimContent=[],this._searchMarker=[]}static from(t){let n=new e;return n.push(t),n}_integrate(e,t){super._integrate(e,t),this.insert(0,this._prelimContent),this._prelimContent=null}_copy(){return new e}clone(){let t=new e;return t.insert(0,this.toArray().map(e=>e instanceof K?e.clone():e)),t}get length(){return this.doc??G(),this._length}_callObserver(e,t){super._callObserver(e,t),Mo(this,e,new Qo(this,e))}insert(e,t){this.doc===null?this._prelimContent.splice(e,0,...t):W(this.doc,n=>{Ho(n,this,e,t)})}push(e){this.doc===null?this._prelimContent.push(...e):W(this.doc,t=>{Uo(t,this,e)})}unshift(e){this.insert(0,e)}delete(e,t=1){this.doc===null?this._prelimContent.splice(e,t):W(this.doc,n=>{Wo(n,this,e,t)})}get(e){return zo(this,e)}toArray(){return Po(this)}slice(e=0,t=this.length){return No(this,e,t)}toJSON(){return this.map(e=>e instanceof K?e.toJSON():e)}map(e){return Lo(this,e)}forEach(e){Io(this,e)}[Symbol.iterator](){return Ro(this)}_write(e){e.writeTypeRef(Qs)}},es=e=>new $o,ts=class extends So{constructor(e,t,n){super(e,t),this.keysChanged=n}},ns=class e extends K{constructor(e){super(),this._prelimContent=null,e===void 0?this._prelimContent=new Map:this._prelimContent=new Map(e)}_integrate(e,t){super._integrate(e,t),this._prelimContent.forEach((e,t)=>{this.set(t,e)}),this._prelimContent=null}_copy(){return new e}clone(){let t=new e;return this.forEach((e,n)=>{t.set(n,e instanceof K?e.clone():e)}),t}_callObserver(e,t){Mo(this,e,new ts(this,e,t))}toJSON(){this.doc??G();let e={};return this._map.forEach((t,n)=>{if(!t.deleted){let r=t.content.getContent()[t.length-1];e[n]=r instanceof K?r.toJSON():r}}),e}get size(){return[...Zo(this)].length}keys(){return Mi(Zo(this),e=>e[0])}values(){return Mi(Zo(this),e=>e[1].content.getContent()[e[1].length-1])}entries(){return Mi(Zo(this),e=>[e[0],e[1].content.getContent()[e[1].length-1]])}forEach(e){this.doc??G(),this._map.forEach((t,n)=>{t.deleted||e(t.content.getContent()[t.length-1],n,this)})}[Symbol.iterator](){return this.entries()}delete(e){this.doc===null?this._prelimContent.delete(e):W(this.doc,t=>{Go(t,this,e)})}set(e,t){return this.doc===null?this._prelimContent.set(e,t):W(this.doc,n=>{Ko(n,this,e,t)}),t}get(e){return qo(this,e)}has(e){return Yo(this,e)}clear(){this.doc===null?this._prelimContent.clear():W(this.doc,e=>{this.forEach(function(t,n,r){Go(e,r,n)})})}_write(e){e.writeTypeRef($s)}},rs=e=>new ns,is=(e,t)=>e===t||typeof e==`object`&&typeof t==`object`&&e&&t&&bn(e,t),as=class{constructor(e,t,n,r){this.left=e,this.right=t,this.index=n,this.currentAttributes=r}forward(){switch(this.right===null&&M(),this.right.content.constructor){case J:this.right.deleted||ls(this.currentAttributes,this.right.content);break;default:this.right.deleted||(this.index+=this.right.length);break}this.left=this.right,this.right=this.right.right}},os=(e,t,n)=>{for(;t.right!==null&&n>0;){switch(t.right.content.constructor){case J:t.right.deleted||ls(t.currentAttributes,t.right.content);break;default:t.right.deleted||(n<t.right.length&&U(e,B(t.right.id.client,t.right.id.clock+n)),t.index+=t.right.length,n-=t.right.length);break}t.left=t.right,t.right=t.right.right}return t},ss=(e,t,n,r)=>{let i=new Map,a=r?Ao(t,n):null;return a?os(e,new as(a.p.left,a.p,a.index,i),n-a.index):os(e,new as(null,t._start,0,i),n)},cs=(e,t,n,r)=>{for(;n.right!==null&&(n.right.deleted===!0||n.right.content.constructor===J&&is(r.get(n.right.content.key),n.right.content.value));)n.right.deleted||r.delete(n.right.content.key),n.forward();let i=e.doc,a=i.clientID;r.forEach((r,o)=>{let s=n.left,c=n.right,l=new Y(B(a,V(i.store,a)),s,s&&s.lastId,c,c&&c.id,t,null,new J(o,r));l.integrate(e,0),n.right=l,n.forward()})},ls=(e,t)=>{let{key:n,value:r}=t;r===null?e.delete(n):e.set(n,r)},us=(e,t)=>{for(;e.right!==null&&(e.right.deleted||e.right.content.constructor===J&&is(t[e.right.content.key]??null,e.right.content.value));)e.forward()},ds=(e,t,n,r)=>{let i=e.doc,a=i.clientID,o=new Map;for(let s in r){let c=r[s],l=n.currentAttributes.get(s)??null;if(!is(l,c)){o.set(s,l);let{left:r,right:u}=n;n.right=new Y(B(a,V(i.store,a)),r,r&&r.lastId,u,u&&u.id,t,null,new J(s,c)),n.right.integrate(e,0),n.forward()}}return o},fs=(e,t,n,r,i)=>{n.currentAttributes.forEach((e,t)=>{i[t]===void 0&&(i[t]=null)});let a=e.doc,o=a.clientID;us(n,i);let s=ds(e,t,n,i),c=r.constructor===String?new Ys(r):r instanceof K?new ac(r):new Vs(r),{left:l,right:u,index:d}=n;t._searchMarker&&jo(t._searchMarker,n.index,c.getLength()),u=new Y(B(o,V(a.store,o)),l,l&&l.lastId,u,u&&u.id,t,null,c),u.integrate(e,0),n.right=u,n.index=d,n.forward(),cs(e,t,n,s)},ps=(e,t,n,r,i)=>{let a=e.doc,o=a.clientID;us(n,i);let s=ds(e,t,n,i);iterationLoop:for(;n.right!==null&&(r>0||s.size>0&&(n.right.deleted||n.right.content.constructor===J));){if(!n.right.deleted)switch(n.right.content.constructor){case J:{let{key:t,value:a}=n.right.content,o=i[t];if(o!==void 0){if(is(o,a))s.delete(t);else{if(r===0)break iterationLoop;s.set(t,a)}n.right.delete(e)}else n.currentAttributes.set(t,a);break}default:r<n.right.length&&U(e,B(n.right.id.client,n.right.id.clock+r)),r-=n.right.length;break}n.forward()}if(r>0){let i=``;for(;r>0;r--)i+=`
|
|
3
|
+
`;n.right=new Y(B(o,V(a.store,o)),n.left,n.left&&n.left.lastId,n.right,n.right&&n.right.id,t,null,new Ys(i)),n.right.integrate(e,0),n.forward()}cs(e,t,n,s)},ms=(e,t,n,r,i)=>{let a=t,o=b();for(;a&&(!a.countable||a.deleted);){if(!a.deleted&&a.content.constructor===J){let e=a.content;o.set(e.key,e)}a=a.right}let s=0,c=!1;for(;t!==a;){if(n===t&&(c=!0),!t.deleted){let n=t.content;switch(n.constructor){case J:{let{key:a,value:l}=n,u=r.get(a)??null;(o.get(a)!==n||u===l)&&(t.delete(e),s++,!c&&(i.get(a)??null)===l&&u!==l&&(u===null?i.delete(a):i.set(a,u))),!c&&!t.deleted&&ls(i,n);break}}}t=t.right}return s},hs=(e,t)=>{for(;t&&t.right&&(t.right.deleted||!t.right.countable);)t=t.right;let n=new Set;for(;t&&(t.deleted||!t.countable);){if(!t.deleted&&t.content.constructor===J){let r=t.content.key;n.has(r)?t.delete(e):n.add(r)}t=t.left}},gs=e=>{let t=0;return W(e.doc,n=>{let r=e._start,i=e._start,a=b(),o=Te(a);for(;i;){if(i.deleted===!1)switch(i.content.constructor){case J:ls(o,i.content);break;default:t+=ms(n,r,i,a,o),a=Te(o),r=i;break}i=i.right}}),t},_s=e=>{let t=new Set,n=e.doc;for(let[r,i]of e.afterState.entries()){let a=e.beforeState.get(r)||0;i!==a&&Xa(e,n.store.clients.get(r),a,i,e=>{!e.deleted&&e.content.constructor===J&&e.constructor!==q&&t.add(e.parent)})}W(n,n=>{Fi(e,e.deleteSet,e=>{if(e instanceof q||!e.parent._hasFormatting||t.has(e.parent))return;let r=e.parent;e.content.constructor===J?t.add(r):hs(n,e)});for(let e of t)gs(e)})},vs=(e,t,n)=>{let r=n,i=Te(t.currentAttributes),a=t.right;for(;n>0&&t.right!==null;){if(t.right.deleted===!1)switch(t.right.content.constructor){case ac:case Vs:case Ys:n<t.right.length&&U(e,B(t.right.id.client,t.right.id.clock+n)),n-=t.right.length,t.right.delete(e);break}t.forward()}a&&ms(e,a,t.right,i,t.currentAttributes);let o=(t.left||t.right).parent;return o._searchMarker&&jo(o._searchMarker,t.index,-r+n),t},ys=class extends So{constructor(e,t,n){super(e,t),this.childListChanged=!1,this.keysChanged=new Set,n.forEach(e=>{e===null?this.childListChanged=!0:this.keysChanged.add(e)})}get changes(){return this._changes===null&&(this._changes={keys:this.keys,delta:this.delta,added:new Set,deleted:new Set}),this._changes}get delta(){if(this._delta===null){let e=this.target.doc,t=[];W(e,e=>{let n=new Map,r=new Map,i=this.target._start,a=null,o={},s=``,c=0,l=0,u=()=>{if(a!==null){let e=null;switch(a){case`delete`:l>0&&(e={delete:l}),l=0;break;case`insert`:(typeof s==`object`||s.length>0)&&(e={insert:s},n.size>0&&(e.attributes={},n.forEach((t,n)=>{t!==null&&(e.attributes[n]=t)}))),s=``;break;case`retain`:c>0&&(e={retain:c},_n(o)||(e.attributes=pn({},o))),c=0;break}e&&t.push(e),a=null}};for(;i!==null;){switch(i.content.constructor){case ac:case Vs:this.adds(i)?this.deletes(i)||(u(),a=`insert`,s=i.content.getContent()[0],u()):this.deletes(i)?(a!==`delete`&&(u(),a=`delete`),l+=1):i.deleted||(a!==`retain`&&(u(),a=`retain`),c+=1);break;case Ys:this.adds(i)?this.deletes(i)||(a!==`insert`&&(u(),a=`insert`),s+=i.content.str):this.deletes(i)?(a!==`delete`&&(u(),a=`delete`),l+=i.length):i.deleted||(a!==`retain`&&(u(),a=`retain`),c+=i.length);break;case J:{let{key:t,value:s}=i.content;if(this.adds(i))this.deletes(i)||(is(n.get(t)??null,s)?s!==null&&i.delete(e):(a===`retain`&&u(),is(s,r.get(t)??null)?delete o[t]:o[t]=s));else if(this.deletes(i)){r.set(t,s);let e=n.get(t)??null;is(e,s)||(a===`retain`&&u(),o[t]=e)}else if(!i.deleted){r.set(t,s);let n=o[t];n!==void 0&&(is(n,s)?n!==null&&i.delete(e):(a===`retain`&&u(),s===null?delete o[t]:o[t]=s))}i.deleted||(a===`insert`&&u(),ls(n,i.content));break}}i=i.right}for(u();t.length>0;){let e=t[t.length-1];if(e.retain!==void 0&&e.attributes===void 0)t.pop();else break}}),this._delta=t}return this._delta}},bs=class e extends K{constructor(e){super(),this._pending=e===void 0?[]:[()=>this.insert(0,e)],this._searchMarker=[],this._hasFormatting=!1}get length(){return this.doc??G(),this._length}_integrate(e,t){super._integrate(e,t);try{this._pending.forEach(e=>e())}catch(e){console.error(e)}this._pending=null}_copy(){return new e}clone(){let t=new e;return t.applyDelta(this.toDelta()),t}_callObserver(e,t){super._callObserver(e,t);let n=new ys(this,e,t);Mo(this,e,n),!e.local&&this._hasFormatting&&(e._needFormattingCleanup=!0)}toString(){this.doc??G();let e=``,t=this._start;for(;t!==null;)!t.deleted&&t.countable&&t.content.constructor===Ys&&(e+=t.content.str),t=t.right;return e}toJSON(){return this.toString()}applyDelta(e,{sanitize:t=!0}={}){this.doc===null?this._pending.push(()=>this.applyDelta(e)):W(this.doc,n=>{let r=new as(null,this._start,0,new Map);for(let i=0;i<e.length;i++){let a=e[i];if(a.insert!==void 0){let o=!t&&typeof a.insert==`string`&&i===e.length-1&&r.right===null&&a.insert.slice(-1)===`
|
|
4
|
+
`?a.insert.slice(0,-1):a.insert;(typeof o!=`string`||o.length>0)&&fs(n,this,r,o,a.attributes||{})}else a.retain===void 0?a.delete!==void 0&&vs(n,r,a.delete):ps(n,this,r,a.retain,a.attributes||{})}})}toDelta(e,t,n){this.doc??G();let r=[],i=new Map,a=this.doc,o=``,s=this._start;function c(){if(o.length>0){let e={},t=!1;i.forEach((n,r)=>{t=!0,e[r]=n});let n={insert:o};t&&(n.attributes=e),r.push(n),o=``}}let l=()=>{for(;s!==null;){if(Va(s,e)||t!==void 0&&Va(s,t))switch(s.content.constructor){case Ys:{let r=i.get(`ychange`);e!==void 0&&!Va(s,e)?(r===void 0||r.user!==s.id.client||r.type!==`removed`)&&(c(),i.set(`ychange`,n?n(`removed`,s.id):{type:`removed`})):t!==void 0&&!Va(s,t)?(r===void 0||r.user!==s.id.client||r.type!==`added`)&&(c(),i.set(`ychange`,n?n(`added`,s.id):{type:`added`})):r!==void 0&&(c(),i.delete(`ychange`)),o+=s.content.str;break}case ac:case Vs:{c();let e={insert:s.content.getContent()[0]};if(i.size>0){let t={};e.attributes=t,i.forEach((e,n)=>{t[n]=e})}r.push(e);break}case J:Va(s,e)&&(c(),ls(i,s.content));break}s=s.right}c()};return e||t?W(a,n=>{e&&Ha(n,e),t&&Ha(n,t),l()},`cleanup`):l(),r}insert(e,t,n){if(t.length<=0)return;let r=this.doc;r===null?this._pending.push(()=>this.insert(e,t,n)):W(r,r=>{let i=ss(r,this,e,!n);n||(n={},i.currentAttributes.forEach((e,t)=>{n[t]=e})),fs(r,this,i,t,n)})}insertEmbed(e,t,n){let r=this.doc;r===null?this._pending.push(()=>this.insertEmbed(e,t,n||{})):W(r,r=>{let i=ss(r,this,e,!n);fs(r,this,i,t,n||{})})}delete(e,t){if(t===0)return;let n=this.doc;n===null?this._pending.push(()=>this.delete(e,t)):W(n,n=>{vs(n,ss(n,this,e,!0),t)})}format(e,t,n){if(t===0)return;let r=this.doc;r===null?this._pending.push(()=>this.format(e,t,n)):W(r,r=>{let i=ss(r,this,e,!1);i.right!==null&&ps(r,this,i,t,n)})}removeAttribute(e){this.doc===null?this._pending.push(()=>this.removeAttribute(e)):W(this.doc,t=>{Go(t,this,e)})}setAttribute(e,t){this.doc===null?this._pending.push(()=>this.setAttribute(e,t)):W(this.doc,n=>{Ko(n,this,e,t)})}getAttribute(e){return qo(this,e)}getAttributes(){return Jo(this)}_write(e){e.writeTypeRef(ec)}},xs=e=>new bs,Ss=class{constructor(e,t=()=>!0){this._filter=t,this._root=e,this._currentNode=e._start,this._firstCall=!0,e.doc??G()}[Symbol.iterator](){return this}next(){let e=this._currentNode,t=e&&e.content&&e.content.type;if(e!==null&&(!this._firstCall||e.deleted||!this._filter(t)))do if(t=e.content.type,!e.deleted&&(t.constructor===Ts||t.constructor===Cs)&&t._start!==null)e=t._start;else for(;e!==null;){let t=e.next;if(t!==null){e=t;break}else e=e.parent===this._root?null:e.parent._item}while(e!==null&&(e.deleted||!this._filter(e.content.type)));return this._firstCall=!1,e===null?{value:void 0,done:!0}:(this._currentNode=e,{value:e.content.type,done:!1})}},Cs=class e extends K{constructor(){super(),this._prelimContent=[]}get firstChild(){let e=this._first;return e?e.content.getContent()[0]:null}_integrate(e,t){super._integrate(e,t),this.insert(0,this._prelimContent),this._prelimContent=null}_copy(){return new e}clone(){let t=new e;return t.insert(0,this.toArray().map(e=>e instanceof K?e.clone():e)),t}get length(){return this.doc??G(),this._prelimContent===null?this._length:this._prelimContent.length}createTreeWalker(e){return new Ss(this,e)}querySelector(e){e=e.toUpperCase();let t=new Ss(this,t=>t.nodeName&&t.nodeName.toUpperCase()===e).next();return t.done?null:t.value}querySelectorAll(e){return e=e.toUpperCase(),C(new Ss(this,t=>t.nodeName&&t.nodeName.toUpperCase()===e))}_callObserver(e,t){Mo(this,e,new Ds(this,t,e))}toString(){return Lo(this,e=>e.toString()).join(``)}toJSON(){return this.toString()}toDOM(e=document,t={},n){let r=e.createDocumentFragment();return n!==void 0&&n._createAssociation(r,this),Io(this,i=>{r.insertBefore(i.toDOM(e,t,n),null)}),r}insert(e,t){this.doc===null?this._prelimContent.splice(e,0,...t):W(this.doc,n=>{Ho(n,this,e,t)})}insertAfter(e,t){if(this.doc!==null)W(this.doc,n=>{let r=e&&e instanceof K?e._item:e;Bo(n,this,r,t)});else{let n=this._prelimContent,r=e===null?0:n.findIndex(t=>t===e)+1;if(r===0&&e!==null)throw A(`Reference item not found`);n.splice(r,0,...t)}}delete(e,t=1){this.doc===null?this._prelimContent.splice(e,t):W(this.doc,n=>{Wo(n,this,e,t)})}toArray(){return Po(this)}push(e){this.insert(this.length,e)}unshift(e){this.insert(0,e)}get(e){return zo(this,e)}slice(e=0,t=this.length){return No(this,e,t)}forEach(e){Io(this,e)}_write(e){e.writeTypeRef(nc)}},ws=e=>new Cs,Ts=class e extends Cs{constructor(e=`UNDEFINED`){super(),this.nodeName=e,this._prelimAttrs=new Map}get nextSibling(){let e=this._item?this._item.next:null;return e?e.content.type:null}get prevSibling(){let e=this._item?this._item.prev:null;return e?e.content.type:null}_integrate(e,t){super._integrate(e,t),this._prelimAttrs.forEach((e,t)=>{this.setAttribute(t,e)}),this._prelimAttrs=null}_copy(){return new e(this.nodeName)}clone(){let t=new e(this.nodeName);return hn(this.getAttributes(),(e,n)=>{t.setAttribute(n,e)}),t.insert(0,this.toArray().map(e=>e instanceof K?e.clone():e)),t}toString(){let e=this.getAttributes(),t=[],n=[];for(let t in e)n.push(t);n.sort();let r=n.length;for(let i=0;i<r;i++){let r=n[i];t.push(r+`="`+e[r]+`"`)}let i=this.nodeName.toLocaleLowerCase();return`<${i}${t.length>0?` `+t.join(` `):``}>${super.toString()}</${i}>`}removeAttribute(e){this.doc===null?this._prelimAttrs.delete(e):W(this.doc,t=>{Go(t,this,e)})}setAttribute(e,t){this.doc===null?this._prelimAttrs.set(e,t):W(this.doc,n=>{Ko(n,this,e,t)})}getAttribute(e){return qo(this,e)}hasAttribute(e){return Yo(this,e)}getAttributes(e){return e?Xo(this,e):Jo(this)}toDOM(e=document,t={},n){let r=e.createElement(this.nodeName),i=this.getAttributes();for(let e in i){let t=i[e];typeof t==`string`&&r.setAttribute(e,t)}return Io(this,i=>{r.appendChild(i.toDOM(e,t,n))}),n!==void 0&&n._createAssociation(r,this),r}_write(e){e.writeTypeRef(tc),e.writeKey(this.nodeName)}},Es=e=>new Ts(e.readKey()),Ds=class extends So{constructor(e,t,n){super(e,n),this.childListChanged=!1,this.attributesChanged=new Set,t.forEach(e=>{e===null?this.childListChanged=!0:this.attributesChanged.add(e)})}},Os=class e extends ns{constructor(e){super(),this.hookName=e}_copy(){return new e(this.hookName)}clone(){let t=new e(this.hookName);return this.forEach((e,n)=>{t.set(n,e)}),t}toDOM(e=document,t={},n){let r=t[this.hookName],i;return i=r===void 0?document.createElement(this.hookName):r.createDom(this),i.setAttribute(`data-yjs-hook`,this.hookName),n!==void 0&&n._createAssociation(i,this),i}_write(e){e.writeTypeRef(rc),e.writeKey(this.hookName)}},ks=e=>new Os(e.readKey()),As=class e extends bs{get nextSibling(){let e=this._item?this._item.next:null;return e?e.content.type:null}get prevSibling(){let e=this._item?this._item.prev:null;return e?e.content.type:null}_copy(){return new e}clone(){let t=new e;return t.applyDelta(this.toDelta()),t}toDOM(e=document,t,n){let r=e.createTextNode(this.toString());return n!==void 0&&n._createAssociation(r,this),r}toString(){return this.toDelta().map(e=>{let t=[];for(let n in e.attributes){let r=[];for(let t in e.attributes[n])r.push({key:t,value:e.attributes[n][t]});r.sort((e,t)=>e.key<t.key?-1:1),t.push({nodeName:n,attrs:r})}t.sort((e,t)=>e.nodeName<t.nodeName?-1:1);let n=``;for(let e=0;e<t.length;e++){let r=t[e];n+=`<${r.nodeName}`;for(let e=0;e<r.attrs.length;e++){let t=r.attrs[e];n+=` ${t.key}="${t.value}"`}n+=`>`}n+=e.insert;for(let e=t.length-1;e>=0;e--)n+=`</${t[e].nodeName}>`;return n}).join(``)}toJSON(){return this.toString()}_write(e){e.writeTypeRef(ic)}},js=e=>new As,Ms=class{constructor(e,t){this.id=e,this.length=t}get deleted(){throw j()}mergeWith(e){return!1}write(e,t,n){throw j()}integrate(e,t){throw j()}},Ns=0,q=class extends Ms{get deleted(){return!0}delete(){}mergeWith(e){return this.constructor===e.constructor?(this.length+=e.length,!0):!1}integrate(e,t){t>0&&(this.id.clock+=t,this.length-=t),Ga(e.doc.store,this)}write(e,t){e.writeInfo(Ns),e.writeLen(this.length-t)}getMissing(e,t){return null}},Ps=class e{constructor(e){this.content=e}getLength(){return 1}getContent(){return[this.content]}isCountable(){return!0}copy(){return new e(this.content)}splice(e){throw j()}mergeWith(e){return!1}integrate(e,t){}delete(e){}gc(e){}write(e,t){e.writeBuf(this.content)}getRef(){return 3}},Fs=e=>new Ps(e.readBuf()),Is=class e{constructor(e){this.len=e}getLength(){return this.len}getContent(){return[]}isCountable(){return!1}copy(){return new e(this.len)}splice(t){let n=new e(this.len-t);return this.len=t,n}mergeWith(e){return this.len+=e.len,!0}integrate(e,t){Bi(e.deleteSet,t.id.client,t.id.clock,this.len),t.markDeleted()}delete(e){}gc(e){}write(e,t){e.writeLen(this.len-t)}getRef(){return 1}},Ls=e=>new Is(e.readLen()),Rs=(e,t)=>new qi({guid:e,...t,shouldLoad:t.shouldLoad||t.autoLoad||!1}),zs=class e{constructor(e){e._item&&console.error(`This document was already integrated as a sub-document. You should create a second instance instead with the same guid.`),this.doc=e;let t={};this.opts=t,e.gc||(t.gc=!1),e.autoLoad&&(t.autoLoad=!0),e.meta!==null&&(t.meta=e.meta)}getLength(){return 1}getContent(){return[this.doc]}isCountable(){return!0}copy(){return new e(Rs(this.doc.guid,this.opts))}splice(e){throw j()}mergeWith(e){return!1}integrate(e,t){this.doc._item=t,e.subdocsAdded.add(this.doc),this.doc.shouldLoad&&e.subdocsLoaded.add(this.doc)}delete(e){e.subdocsAdded.has(this.doc)?e.subdocsAdded.delete(this.doc):e.subdocsRemoved.add(this.doc)}gc(e){}write(e,t){e.writeString(this.doc.guid),e.writeAny(this.opts)}getRef(){return 9}},Bs=e=>new zs(Rs(e.readString(),e.readAny())),Vs=class e{constructor(e){this.embed=e}getLength(){return 1}getContent(){return[this.embed]}isCountable(){return!0}copy(){return new e(this.embed)}splice(e){throw j()}mergeWith(e){return!1}integrate(e,t){}delete(e){}gc(e){}write(e,t){e.writeJSON(this.embed)}getRef(){return 5}},Hs=e=>new Vs(e.readJSON()),J=class e{constructor(e,t){this.key=e,this.value=t}getLength(){return 1}getContent(){return[]}isCountable(){return!1}copy(){return new e(this.key,this.value)}splice(e){throw j()}mergeWith(e){return!1}integrate(e,t){let n=t.parent;n._searchMarker=null,n._hasFormatting=!0}delete(e){}gc(e){}write(e,t){e.writeKey(this.key),e.writeJSON(this.value)}getRef(){return 6}},Us=e=>new J(e.readKey(),e.readJSON()),Ws=class e{constructor(e){this.arr=e}getLength(){return this.arr.length}getContent(){return this.arr}isCountable(){return!0}copy(){return new e(this.arr)}splice(t){let n=new e(this.arr.slice(t));return this.arr=this.arr.slice(0,t),n}mergeWith(e){return this.arr=this.arr.concat(e.arr),!0}integrate(e,t){}delete(e){}gc(e){}write(e,t){let n=this.arr.length;e.writeLen(n-t);for(let r=t;r<n;r++){let t=this.arr[r];e.writeString(t===void 0?`undefined`:JSON.stringify(t))}}getRef(){return 2}},Gs=e=>{let t=e.readLen(),n=[];for(let r=0;r<t;r++){let t=e.readString();t===`undefined`?n.push(void 0):n.push(JSON.parse(t))}return new Ws(n)},Ks=Mn(`node_env`)===`development`,qs=class e{constructor(e){this.arr=e,Ks&&Sn(e)}getLength(){return this.arr.length}getContent(){return this.arr}isCountable(){return!0}copy(){return new e(this.arr)}splice(t){let n=new e(this.arr.slice(t));return this.arr=this.arr.slice(0,t),n}mergeWith(e){return this.arr=this.arr.concat(e.arr),!0}integrate(e,t){}delete(e){}gc(e){}write(e,t){let n=this.arr.length;e.writeLen(n-t);for(let r=t;r<n;r++){let t=this.arr[r];e.writeAny(t)}}getRef(){return 8}},Js=e=>{let t=e.readLen(),n=[];for(let r=0;r<t;r++)n.push(e.readAny());return new qs(n)},Ys=class e{constructor(e){this.str=e}getLength(){return this.str.length}getContent(){return this.str.split(``)}isCountable(){return!0}copy(){return new e(this.str)}splice(t){let n=new e(this.str.slice(t));this.str=this.str.slice(0,t);let r=this.str.charCodeAt(t-1);return r>=55296&&r<=56319&&(this.str=this.str.slice(0,t-1)+`�`,n.str=`�`+n.str.slice(1)),n}mergeWith(e){return this.str+=e.str,!0}integrate(e,t){}delete(e){}gc(e){}write(e,t){e.writeString(t===0?this.str:this.str.slice(t))}getRef(){return 4}},Xs=e=>new Ys(e.readString()),Zs=[es,rs,xs,Es,ws,ks,js],Qs=0,$s=1,ec=2,tc=3,nc=4,rc=5,ic=6,ac=class e{constructor(e){this.type=e}getLength(){return 1}getContent(){return[this.type]}isCountable(){return!0}copy(){return new e(this.type._copy())}splice(e){throw j()}mergeWith(e){return!1}integrate(e,t){this.type._integrate(e.doc,t)}delete(e){let t=this.type._start;for(;t!==null;)t.deleted?t.id.clock<(e.beforeState.get(t.id.client)||0)&&e._mergeStructs.push(t):t.delete(e),t=t.right;this.type._map.forEach(t=>{t.deleted?t.id.clock<(e.beforeState.get(t.id.client)||0)&&e._mergeStructs.push(t):t.delete(e)}),e.changed.delete(this.type)}gc(e){let t=this.type._start;for(;t!==null;)t.gc(e,!0),t=t.right;this.type._start=null,this.type._map.forEach(t=>{for(;t!==null;)t.gc(e,!0),t=t.left}),this.type._map=new Map}write(e,t){this.type._write(e)}getRef(){return 7}},oc=e=>new ac(Zs[e.readTypeRef()](e)),sc=(e,t)=>{let n=t,r=0,i;do r>0&&(n=B(n.client,n.clock+r)),i=Ka(e,n),r=n.clock-i.id.clock,n=i.redone;while(n!==null&&i instanceof Y);return{item:i,diff:r}},cc=(e,t)=>{for(;e!==null&&e.keep!==t;)e.keep=t,e=e.parent._item},lc=(e,t,n)=>{let{client:r,clock:i}=t.id,a=new Y(B(r,i+n),t,B(r,i+n-1),t.right,t.rightOrigin,t.parent,t.parentSub,t.content.splice(n));return t.deleted&&a.markDeleted(),t.keep&&(a.keep=!0),t.redone!==null&&(a.redone=B(t.redone.client,t.redone.clock+n)),t.right=a,a.right!==null&&(a.right.left=a),e._mergeStructs.push(a),a.parentSub!==null&&a.right===null&&a.parent._map.set(a.parentSub,a),t.length=n,a},uc=(e,t)=>je(e,e=>Li(e.deletions,t)),dc=(e,t,n,r,i,a)=>{let o=e.doc,s=o.store,c=o.clientID,l=t.redone;if(l!==null)return U(e,l);let u=t.parent._item,d=null,f;if(u!==null&&u.deleted===!0){if(u.redone===null&&(!n.has(u)||dc(e,u,n,r,i,a)===null))return null;for(;u.redone!==null;)u=U(e,u.redone)}let p=u===null?t.parent:u.content.type;if(t.parentSub===null){for(d=t.left,f=t;d!==null;){let t=d;for(;t!==null&&t.parent._item!==u;)t=t.redone===null?null:U(e,t.redone);if(t!==null&&t.parent._item===u){d=t;break}d=d.left}for(;f!==null;){let t=f;for(;t!==null&&t.parent._item!==u;)t=t.redone===null?null:U(e,t.redone);if(t!==null&&t.parent._item===u){f=t;break}f=f.right}}else{if(f=null,t.right&&!i){for(d=t;d!==null&&d.right!==null&&(d.right.redone||Li(r,d.right.id)||uc(a.undoStack,d.right.id)||uc(a.redoStack,d.right.id));)for(d=d.right;d.redone;)d=U(e,d.redone);if(d&&d.right!==null)return null}else d=p._map.get(t.parentSub)||null;d!==null&&d.parent._item!==u&&(d=p._map.get(t.parentSub)||null)}let ee=B(c,V(s,c)),m=new Y(ee,d,d&&d.lastId,f,f&&f.id,p,t.parentSub,t.content.copy());return t.redone=ee,cc(m,!0),m.integrate(e,0),m},Y=class e extends Ms{constructor(e,t,n,r,i,a,o,s){super(e,s.getLength()),this.origin=n,this.left=t,this.right=r,this.rightOrigin=i,this.parent=a,this.parentSub=o,this.redone=null,this.content=s,this.info=this.content.isCountable()?2:0}set marker(e){(this.info&8)>0!==e&&(this.info^=8)}get marker(){return(this.info&8)>0}get keep(){return(this.info&1)>0}set keep(e){this.keep!==e&&(this.info^=1)}get countable(){return(this.info&2)>0}get deleted(){return(this.info&4)>0}set deleted(e){this.deleted!==e&&(this.info^=4)}markDeleted(){this.info|=4}getMissing(t,n){if(this.origin&&this.origin.client!==this.id.client&&this.origin.clock>=V(n,this.origin.client))return this.origin.client;if(this.rightOrigin&&this.rightOrigin.client!==this.id.client&&this.rightOrigin.clock>=V(n,this.rightOrigin.client))return this.rightOrigin.client;if(this.parent&&this.parent.constructor===wa&&this.id.client!==this.parent.client&&this.parent.clock>=V(n,this.parent.client))return this.parent.client;if(this.origin&&=(this.left=Ja(t,n,this.origin),this.left.lastId),this.rightOrigin&&=(this.right=U(t,this.rightOrigin),this.right.id),this.left&&this.left.constructor===q||this.right&&this.right.constructor===q)this.parent=null;else if(!this.parent)this.left&&this.left.constructor===e?(this.parent=this.left.parent,this.parentSub=this.left.parentSub):this.right&&this.right.constructor===e&&(this.parent=this.right.parent,this.parentSub=this.right.parentSub);else if(this.parent.constructor===wa){let e=Ka(n,this.parent);e.constructor===q?this.parent=null:this.parent=e.content.type}return null}integrate(e,t){if(t>0&&(this.id.clock+=t,this.left=Ja(e,e.doc.store,B(this.id.client,this.id.clock-1)),this.origin=this.left.lastId,this.content=this.content.splice(t),this.length-=t),this.parent){if(!this.left&&(!this.right||this.right.left!==null)||this.left&&this.left.right!==this.right){let t=this.left,n;if(t!==null)n=t.right;else if(this.parentSub!==null)for(n=this.parent._map.get(this.parentSub)||null;n!==null&&n.left!==null;)n=n.left;else n=this.parent._start;let r=new Set,i=new Set;for(;n!==null&&n!==this.right;){if(i.add(n),r.add(n),Ta(this.origin,n.origin)){if(n.id.client<this.id.client)t=n,r.clear();else if(Ta(this.rightOrigin,n.rightOrigin))break}else if(n.origin!==null&&i.has(Ka(e.doc.store,n.origin)))r.has(Ka(e.doc.store,n.origin))||(t=n,r.clear());else break;n=n.right}this.left=t}if(this.left!==null)this.right=this.left.right,this.left.right=this;else{let e;if(this.parentSub!==null)for(e=this.parent._map.get(this.parentSub)||null;e!==null&&e.left!==null;)e=e.left;else e=this.parent._start,this.parent._start=this;this.right=e}this.right===null?this.parentSub!==null&&(this.parent._map.set(this.parentSub,this),this.left!==null&&this.left.delete(e)):this.right.left=this,this.parentSub===null&&this.countable&&!this.deleted&&(this.parent._length+=this.length),Ga(e.doc.store,this),this.content.integrate(e,this),$a(e,this.parent,this.parentSub),(this.parent._item!==null&&this.parent._item.deleted||this.parentSub!==null&&this.right!==null)&&this.delete(e)}else new q(this.id,this.length).integrate(e,0)}get next(){let e=this.right;for(;e!==null&&e.deleted;)e=e.right;return e}get prev(){let e=this.left;for(;e!==null&&e.deleted;)e=e.left;return e}get lastId(){return this.length===1?this.id:B(this.id.client,this.id.clock+this.length-1)}mergeWith(e){if(this.constructor===e.constructor&&Ta(e.origin,this.lastId)&&this.right===e&&Ta(this.rightOrigin,e.rightOrigin)&&this.id.client===e.id.client&&this.id.clock+this.length===e.id.clock&&this.deleted===e.deleted&&this.redone===null&&e.redone===null&&this.content.constructor===e.content.constructor&&this.content.mergeWith(e.content)){let t=this.parent._searchMarker;return t&&t.forEach(t=>{t.p===e&&(t.p=this,!this.deleted&&this.countable&&(t.index-=this.length))}),e.keep&&(this.keep=!0),this.right=e.right,this.right!==null&&(this.right.left=this),this.length+=e.length,!0}return!1}delete(e){if(!this.deleted){let t=this.parent;this.countable&&this.parentSub===null&&(t._length-=this.length),this.markDeleted(),Bi(e.deleteSet,this.id.client,this.id.clock,this.length),$a(e,t,this.parentSub),this.content.delete(e)}}gc(e,t){if(!this.deleted)throw M();this.content.gc(e),t?Ya(e,this,new q(this.id,this.length)):this.content=new Is(this.length)}write(e,t){let n=t>0?B(this.id.client,this.id.clock+t-1):this.origin,r=this.rightOrigin,i=this.parentSub,a=this.content.getRef()&31|(n===null?0:128)|(r===null?0:64)|(i===null?0:32);if(e.writeInfo(a),n!==null&&e.writeLeftID(n),r!==null&&e.writeRightID(r),n===null&&r===null){let t=this.parent;if(t._item!==void 0){let n=t._item;if(n===null){let n=Ea(t);e.writeParentInfo(!0),e.writeString(n)}else e.writeParentInfo(!1),e.writeLeftID(n.id)}else t.constructor===String?(e.writeParentInfo(!0),e.writeString(t)):t.constructor===wa?(e.writeParentInfo(!1),e.writeLeftID(t)):M();i!==null&&e.writeString(i)}this.content.write(e,t)}},fc=(e,t)=>pc[t&31](e),pc=[()=>{M()},Ls,Gs,Fs,Xs,Hs,Us,oc,Js,Bs,()=>{M()}],mc=10,X=class extends Ms{get deleted(){return!0}delete(){}mergeWith(e){return this.constructor===e.constructor?(this.length+=e.length,!0):!1}integrate(e,t){M()}write(e,t){e.writeInfo(mc),O(e.restEncoder,this.length-t)}getMissing(e,t){return null}},hc=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:{},gc=`__ $YJS$ __`;hc[gc]===!0&&console.error(`Yjs was already imported. This breaks constructor checks and will lead to issues! - https://github.com/yjs/yjs/issues/438`),hc[gc]=!0;var _c=function(e){return e[e.Token=0]=`Token`,e[e.PermissionDenied=1]=`PermissionDenied`,e[e.Authenticated=2]=`Authenticated`,e}({}),vc=(e,t)=>{O(e,_c.Token),xt(e,t)},yc=(e,t,n,r)=>{switch(P(e)){case _c.Token:t();break;case _c.PermissionDenied:n(Wt(e));break;case _c.Authenticated:r(Wt(e));break;default:}},bc=e=>Array.from(e.entries()).map(([e,t])=>({clientId:e,...t})),xc=`\0`;function Sc(e,t){return e+xc+t}function Cc(e){let t=e.indexOf(xc);return t===-1?{documentName:e,sessionId:null}:{documentName:e.substring(0,t),sessionId:e.substring(t+1)}}var wc=function(e){return e[e.Connecting=0]=`Connecting`,e[e.Open=1]=`Open`,e[e.Closing=2]=`Closing`,e[e.Closed=3]=`Closed`,e}({});function Tc(e){return e||={},{delay:e.delay===void 0?200:e.delay,initialDelay:e.initialDelay===void 0?0:e.initialDelay,minDelay:e.minDelay===void 0?0:e.minDelay,maxDelay:e.maxDelay===void 0?0:e.maxDelay,factor:e.factor===void 0?0:e.factor,maxAttempts:e.maxAttempts===void 0?3:e.maxAttempts,timeout:e.timeout===void 0?0:e.timeout,jitter:e.jitter===!0,initialJitter:e.initialJitter===!0,handleError:e.handleError===void 0?null:e.handleError,handleTimeout:e.handleTimeout===void 0?null:e.handleTimeout,beforeAttempt:e.beforeAttempt===void 0?null:e.beforeAttempt,calculateDelay:e.calculateDelay===void 0?null:e.calculateDelay}}async function Ec(e){return new Promise(t=>setTimeout(t,e))}function Dc(e,t){let n=t.delay;if(n===0)return 0;if(t.factor&&(n*=t.factor**(e.attemptNum-1),t.maxDelay!==0&&(n=Math.min(n,t.maxDelay))),t.jitter){let e=Math.ceil(t.minDelay);n=Math.floor(Math.random()*(Math.floor(n)-e+1))+e}return Math.round(n)}async function Oc(e,t){let n=Tc(t);for(let e of[`delay`,`initialDelay`,`minDelay`,`maxDelay`,`maxAttempts`,`timeout`]){let t=n[e];if(!Number.isInteger(t)||t<0)throw Error(`Value for ${e} must be an integer greater than or equal to 0`)}if(n.factor.constructor!==Number||n.factor<0)throw Error(`Value for factor must be a number greater than or equal to 0`);if(n.delay<n.minDelay)throw Error(`delay cannot be less than minDelay (delay: ${n.delay}, minDelay: ${n.minDelay}`);let r={attemptNum:0,attemptsRemaining:n.maxAttempts?n.maxAttempts:-1,aborted:!1,abort(){r.aborted=!0}},i=n.calculateDelay||Dc;async function a(){if(n.beforeAttempt&&n.beforeAttempt(r,n),r.aborted){let e=Error(`Attempt aborted`);throw e.code=`ATTEMPT_ABORTED`,e}let t=async e=>{if(n.handleError&&await n.handleError(e,r,n),r.aborted||r.attemptsRemaining===0)throw e;r.attemptNum++;let t=i(r,n);return t&&await Ec(t),a()};return r.attemptsRemaining>0&&r.attemptsRemaining--,n.timeout?new Promise((i,a)=>{let o=setTimeout(()=>{if(n.handleTimeout)try{i(n.handleTimeout(r,n))}catch(e){a(e)}else{let e=Error(`Retry timeout (attemptNum: ${r.attemptNum}, timeout: ${n.timeout})`);e.code=`ATTEMPT_TIMEOUT`,a(e)}},n.timeout);e(r,n).then(e=>{clearTimeout(o),i(e)}).catch(e=>{clearTimeout(o),t(e).then(i).catch(a)})}):e(r,n).catch(t)}let o=n.calculateDelay?n.calculateDelay(r,n):n.initialDelay;if(o&&await Ec(o),r.attemptNum<1&&n.initialJitter){let e=i(r,n);e&&await Ec(e)}return a()}var kc=Math.floor,Ac=(e,t)=>e<t?e:t,jc=(e,t)=>e>t?e:t;Number.isNaN;var Mc=64,Nc=128,Pc=1<<17,Fc=1<<18,Ic=1<<19,Lc=1<<20,Rc=1<<21,zc=1<<22,Bc=1<<23,Vc=1<<24,Hc=1<<25,Uc=1<<26,Wc=1<<27,Gc=1<<28,Kc=1<<29,qc=1<<30,Jc=63,Yc=127;Pc-1,Fc-1,Ic-1,Lc-1,Rc-1,zc-1,Bc-1,Vc-1,Hc-1,Uc-1,Wc-1,Gc-1,Kc-1,qc-1;var Xc=2**53-1;Number.isInteger,Number.isNaN,Number.parseInt;var Zc=()=>new Set,Qc=Array.from;Array.isArray;var $c=String.fromCharCode;String.fromCodePoint,$c(65535);var el=e=>{let t=unescape(encodeURIComponent(e)),n=t.length,r=new Uint8Array(n);for(let e=0;e<n;e++)r[e]=t.codePointAt(e);return r},tl=typeof TextEncoder<`u`?new TextEncoder:null,nl=tl?e=>tl.encode(e):el,rl=typeof TextDecoder>`u`?null:new TextDecoder(`utf-8`,{fatal:!0,ignoreBOM:!0});rl&&rl.decode(new Uint8Array).length===1&&(rl=null);var il=class{constructor(){this.cpos=0,this.cbuf=new Uint8Array(100),this.bufs=[]}},al=()=>new il,ol=e=>{let t=e.cpos;for(let n=0;n<e.bufs.length;n++)t+=e.bufs[n].length;return t},sl=e=>{let t=new Uint8Array(ol(e)),n=0;for(let r=0;r<e.bufs.length;r++){let i=e.bufs[r];t.set(i,n),n+=i.length}return t.set(new Uint8Array(e.cbuf.buffer,0,e.cpos),n),t},cl=(e,t)=>{let n=e.cbuf.length;e.cpos===n&&(e.bufs.push(e.cbuf),e.cbuf=new Uint8Array(n*2),e.cpos=0),e.cbuf[e.cpos++]=t},Z=(e,t)=>{for(;t>Yc;)cl(e,Nc|Yc&t),t=kc(t/128);cl(e,Yc&t)},ll=new Uint8Array(3e4),ul=ll.length/3,dl=tl&&tl.encodeInto?(e,t)=>{if(t.length<ul){let n=tl.encodeInto(t,ll).written||0;Z(e,n);for(let t=0;t<n;t++)cl(e,ll[t])}else pl(e,nl(t))}:(e,t)=>{let n=unescape(encodeURIComponent(t)),r=n.length;Z(e,r);for(let t=0;t<r;t++)cl(e,n.codePointAt(t))},fl=(e,t)=>{let n=e.cbuf.length,r=e.cpos,i=Ac(n-r,t.length),a=t.length-i;e.cbuf.set(t.subarray(0,i),r),e.cpos+=i,a>0&&(e.bufs.push(e.cbuf),e.cbuf=new Uint8Array(jc(n*2,a)),e.cbuf.set(t.subarray(i)),e.cpos=a)},pl=(e,t)=>{Z(e,t.byteLength),fl(e,t)},ml=e=>Error(e),hl=ml(`Unexpected end of array`),gl=ml(`Integer out of Range`),_l=class{constructor(e){this.arr=e,this.pos=0}},vl=e=>new _l(e),yl=(e,t)=>{let n=new Uint8Array(e.arr.buffer,e.pos+e.arr.byteOffset,t);return e.pos+=t,n},bl=e=>yl(e,Sl(e)),xl=e=>e.arr[e.pos++],Sl=e=>{let t=0,n=1,r=e.arr.length;for(;e.pos<r;){let r=e.arr[e.pos++];if(t+=(r&Yc)*n,n*=128,r<Nc)return t;if(t>Xc)throw gl}throw hl},Cl=e=>{let t=e.arr[e.pos++],n=t&Jc,r=64,i=(t&Mc)>0?-1:1;if((t&Nc)===0)return i*n;let a=e.arr.length;for(;e.pos<a;){if(t=e.arr[e.pos++],n+=(t&Yc)*r,r*=128,t<Nc)return i*n;if(n>Xc)throw gl}throw hl},wl=rl?e=>rl.decode(bl(e)):e=>{let t=Sl(e);if(t===0)return``;{let n=String.fromCodePoint(xl(e));if(--t<100)for(;t--;)n+=String.fromCodePoint(xl(e));else for(;t>0;){let r=t<1e4?t:1e4,i=e.arr.subarray(e.pos,e.pos+r);e.pos+=r,n+=String.fromCodePoint.apply(null,i),t-=r}return decodeURIComponent(escape(n))}},Tl=e=>{let t=e.pos,n=wl(e);return e.pos=t,n},El=Date.now,Dl=()=>new Map,Ol=(e,t,n)=>{let r=e.get(t);return r===void 0&&e.set(t,r=n()),r},kl=class{constructor(){this._observers=Dl()}on(e,t){Ol(this._observers,e,Zc).add(t)}once(e,t){let n=(...r)=>{this.off(e,n),t(...r)};this.on(e,n)}off(e,t){let n=this._observers.get(e);n!==void 0&&(n.delete(t),n.size===0&&this._observers.delete(e))}emit(e,t){return Qc((this._observers.get(e)||Dl()).values()).forEach(e=>e(...t))}destroy(){this._observers=Dl()}},Al=Symbol(`Equality`),jl=Object.keys,Ml=e=>jl(e).length,Nl=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),Pl=(e,t)=>{if(e===t)return!0;if(e==null||t==null||e.constructor!==t.constructor&&(e.constructor||Object)!==(t.constructor||Object))return!1;if(e[Al]!=null)return e[Al](t);switch(e.constructor){case ArrayBuffer:e=new Uint8Array(e),t=new Uint8Array(t);case Uint8Array:if(e.byteLength!==t.byteLength)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;break;case Set:if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;break;case Map:if(e.size!==t.size)return!1;for(let n of e.keys())if(!t.has(n)||!Pl(e.get(n),t.get(n)))return!1;break;case void 0:case Object:if(Ml(e)!==Ml(t))return!1;for(let n in e)if(!Nl(e,n)||!Pl(e[n],t[n]))return!1;break;case Array:if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!Pl(e[n],t[n]))return!1;break;default:return!1}return!0},Fl=3e4,Il=class extends kl{constructor(e){super(),this.doc=e,this.clientID=e.clientID,this.states=new Map,this.meta=new Map,this._checkInterval=setInterval(()=>{let e=El();this.getLocalState()!==null&&Fl/2<=e-this.meta.get(this.clientID).lastUpdated&&this.setLocalState(this.getLocalState());let t=[];this.meta.forEach((n,r)=>{r!==this.clientID&&Fl<=e-n.lastUpdated&&this.states.has(r)&&t.push(r)}),t.length>0&&Ll(this,t,`timeout`)},kc(Fl/10)),e.on(`destroy`,()=>{this.destroy()}),this.setLocalState({})}destroy(){this.emit(`destroy`,[this]),this.setLocalState(null),super.destroy(),clearInterval(this._checkInterval)}getLocalState(){return this.states.get(this.clientID)||null}setLocalState(e){let t=this.clientID,n=this.meta.get(t),r=n===void 0?0:n.clock+1,i=this.states.get(t);e===null?this.states.delete(t):this.states.set(t,e),this.meta.set(t,{clock:r,lastUpdated:El()});let a=[],o=[],s=[],c=[];e===null?c.push(t):i==null?e!=null&&a.push(t):(o.push(t),Pl(i,e)||s.push(t)),(a.length>0||s.length>0||c.length>0)&&this.emit(`change`,[{added:a,updated:s,removed:c},`local`]),this.emit(`update`,[{added:a,updated:o,removed:c},`local`])}setLocalStateField(e,t){let n=this.getLocalState();n!==null&&this.setLocalState({...n,[e]:t})}getStates(){return this.states}},Ll=(e,t,n)=>{let r=[];for(let n=0;n<t.length;n++){let i=t[n];if(e.states.has(i)){if(e.states.delete(i),i===e.clientID){let t=e.meta.get(i);e.meta.set(i,{clock:t.clock+1,lastUpdated:El()})}r.push(i)}}r.length>0&&(e.emit(`change`,[{added:[],updated:[],removed:r},n]),e.emit(`update`,[{added:[],updated:[],removed:r},n]))},Rl=(e,t,n=e.states)=>{let r=t.length,i=al();Z(i,r);for(let a=0;a<r;a++){let r=t[a],o=n.get(r)||null,s=e.meta.get(r).clock;Z(i,r),Z(i,s),dl(i,JSON.stringify(o))}return sl(i)},zl=(e,t,n)=>{let r=vl(t),i=El(),a=[],o=[],s=[],c=[],l=Sl(r);for(let t=0;t<l;t++){let t=Sl(r),n=Sl(r),l=JSON.parse(wl(r)),u=e.meta.get(t),d=e.states.get(t),f=u===void 0?0:u.clock;(f<n||f===n&&l===null&&e.states.has(t))&&(l===null?t===e.clientID&&e.getLocalState()!=null?n++:e.states.delete(t):e.states.set(t,l),e.meta.set(t,{clock:n,lastUpdated:i}),u===void 0&&l!==null?a.push(t):u!==void 0&&l===null?c.push(t):l!==null&&(Pl(l,d)||s.push(t),o.push(t)))}(a.length>0||s.length>0||c.length>0)&&e.emit(`change`,[{added:a,updated:s,removed:c},n]),(a.length>0||o.length>0||c.length>0)&&e.emit(`update`,[{added:a,updated:o,removed:c},n])},Bl=class{constructor(){this.callbacks={}}on(e,t){return this.callbacks[e]||(this.callbacks[e]=[]),this.callbacks[e].push(t),this}emit(e,...t){let n=this.callbacks[e];return n&&n.forEach(e=>e.apply(this,t)),this}off(e,t){let n=this.callbacks[e];return n&&(t?this.callbacks[e]=n.filter(e=>e!==t):delete this.callbacks[e]),this}removeAllListeners(){this.callbacks={}}},Vl=class{constructor(e){this.data=e,this.encoder=al(),this.decoder=vl(new Uint8Array(this.data))}peekVarString(){return Tl(this.decoder)}readVarUint(){return Sl(this.decoder)}readVarString(){return wl(this.decoder)}readVarUint8Array(){return bl(this.decoder)}writeVarUint(e){return Z(this.encoder,e)}writeVarString(e){return dl(this.encoder,e)}writeVarUint8Array(e){return pl(this.encoder,e)}length(){return ol(this.encoder)}},Q=function(e){return e[e.Sync=0]=`Sync`,e[e.Awareness=1]=`Awareness`,e[e.Auth=2]=`Auth`,e[e.QueryAwareness=3]=`QueryAwareness`,e[e.Stateless=5]=`Stateless`,e[e.CLOSE=7]=`CLOSE`,e[e.SyncStatus=8]=`SyncStatus`,e[e.Ping=9]=`Ping`,e[e.Pong=10]=`Pong`,e}({}),$=function(e){return e.Connecting=`connecting`,e.Connected=`connected`,e.Disconnected=`disconnected`,e}({}),Hl=class{constructor(){this.encoder=al()}get(e){return e.encoder}toUint8Array(){return sl(this.encoder)}},Ul=class extends Hl{constructor(...e){super(...e),this.type=Q.CLOSE,this.description=`Ask the server to close the connection`}get(e){return dl(this.encoder,e.documentName),Z(this.encoder,this.type),this.encoder}},Wl=class e extends Bl{static{this.DEDUPLICATABLE_TYPES=new Set([Q.Awareness,Q.QueryAwareness])}constructor(e){super(),this.messageQueue=[],this.configuration={url:``,autoConnect:!0,preserveTrailingSlash:!1,document:void 0,WebSocketPolyfill:void 0,messageReconnectTimeout:3e4,delay:1e3,initialDelay:0,factor:2,maxAttempts:0,minDelay:1e3,maxDelay:3e4,jitter:!0,timeout:0,onOpen:()=>null,onConnect:()=>null,onMessage:()=>null,onOutgoingMessage:()=>null,onStatus:()=>null,onDisconnect:()=>null,onClose:()=>null,onDestroy:()=>null,onAwarenessUpdate:()=>null,onAwarenessChange:()=>null,handleTimeout:null,providerMap:new Map},this.webSocket=null,this.webSocketHandlers={},this.shouldConnect=!0,this.status=$.Disconnected,this.lastMessageReceived=0,this.identifier=0,this.intervals={connectionChecker:null},this.connectionAttempt=null,this.receivedOnOpenPayload=void 0,this.closeTries=0,this.setConfiguration(e),this.configuration.WebSocketPolyfill=e.WebSocketPolyfill?e.WebSocketPolyfill:WebSocket,this.on(`open`,this.configuration.onOpen),this.on(`open`,this.onOpen.bind(this)),this.on(`connect`,this.configuration.onConnect),this.on(`message`,this.configuration.onMessage),this.on(`outgoingMessage`,this.configuration.onOutgoingMessage),this.on(`status`,this.configuration.onStatus),this.on(`disconnect`,this.configuration.onDisconnect),this.on(`close`,this.configuration.onClose),this.on(`destroy`,this.configuration.onDestroy),this.on(`awarenessUpdate`,this.configuration.onAwarenessUpdate),this.on(`awarenessChange`,this.configuration.onAwarenessChange),this.on(`close`,this.onClose.bind(this)),this.on(`message`,this.onMessage.bind(this)),this.intervals.connectionChecker=setInterval(this.checkConnection.bind(this),this.configuration.messageReconnectTimeout/10),this.shouldConnect&&this.connect()}async onOpen(e){this.status=$.Connected,this.emit(`status`,{status:$.Connected}),this.cancelWebsocketRetry=void 0,this.receivedOnOpenPayload=e}attach(e){let t=e.effectiveName,n=this.configuration.providerMap.get(t);if(n&&n!==e&&n.isAuthenticated)throw Error(`Cannot attach two providers with the same effective name "${t}". Use sessionAwareness: true to multiplex providers with the same document name.`);this.configuration.providerMap.set(t,e),this.status===$.Disconnected&&this.shouldConnect&&this.connect(),this.receivedOnOpenPayload&&this.status===$.Connected&&e.onOpen(this.receivedOnOpenPayload)}detach(e){let t=e.effectiveName;this.configuration.providerMap.has(t)&&(e.send(Ul,{documentName:t}),this.configuration.providerMap.delete(t))}setConfiguration(e={}){this.configuration={...this.configuration,...e},this.configuration.autoConnect||(this.shouldConnect=!1)}async connect(){if(this.status===$.Connected)return;this.cancelWebsocketRetry&&=(this.cancelWebsocketRetry(),void 0),this.receivedOnOpenPayload=void 0,this.shouldConnect=!0;let{retryPromise:e,cancelFunc:t}=(()=>{let e=!1;return{retryPromise:Oc(this.createWebSocketConnection.bind(this),{delay:this.configuration.delay,initialDelay:this.configuration.initialDelay,factor:this.configuration.factor,maxAttempts:this.configuration.maxAttempts,minDelay:this.configuration.minDelay,maxDelay:this.configuration.maxDelay,jitter:this.configuration.jitter,timeout:this.configuration.timeout,handleTimeout:this.configuration.handleTimeout,beforeAttempt:t=>{(!this.shouldConnect||e)&&t.abort()}}).catch(e=>{if(e&&e.code!==`ATTEMPT_ABORTED`)throw e}),cancelFunc:()=>{e=!0}}})();return this.cancelWebsocketRetry=t,e}attachWebSocketListeners(e,t){let{identifier:n}=e,r=e=>this.emit(`message`,e),i=e=>this.emit(`close`,{event:e}),a=e=>this.emit(`open`,e),o=e=>{t(e)};this.webSocketHandlers[n]={message:r,close:i,open:a,error:o};let s=this.webSocketHandlers[e.identifier];Object.keys(s).forEach(t=>{e.addEventListener(t,s[t])})}cleanupWebSocket(){if(!this.webSocket)return;let{identifier:e}=this.webSocket,t=this.webSocketHandlers[e];Object.keys(t).forEach(n=>{this.webSocket?.removeEventListener(n,t[n]),delete this.webSocketHandlers[e]}),this.webSocket.close(),this.webSocket=null}createWebSocketConnection(){return new Promise((e,t)=>{this.webSocket&&(this.messageQueue=[],this.cleanupWebSocket()),this.lastMessageReceived=0,this.identifier+=1;let n=new this.configuration.WebSocketPolyfill(this.url);n.binaryType=`arraybuffer`,n.identifier=this.identifier,this.attachWebSocketListeners(n,t),this.webSocket=n,this.status=$.Connecting,this.emit(`status`,{status:$.Connecting}),this.connectionAttempt={resolve:e,reject:t}})}onMessage(e){this.resolveConnectionAttempt(),this.lastMessageReceived=El();let t=new Uint8Array(e.data);if(t.length===1&&t[0]===Q.Ping){this.sendPong();return}let n=new Vl(t).peekVarString();this.configuration.providerMap.get(n)?.onMessage(e)}sendPong(){let e=al();Z(e,Q.Pong),this.send(sl(e))}resolveConnectionAttempt(){this.connectionAttempt&&(this.connectionAttempt.resolve(),this.connectionAttempt=null,this.status=$.Connected,this.emit(`status`,{status:$.Connected}),this.emit(`connect`),this.messageQueue.forEach(e=>this.send(e)),this.messageQueue=[])}stopConnectionAttempt(){this.connectionAttempt=null}rejectConnectionAttempt(){this.connectionAttempt?.reject(),this.connectionAttempt=null}checkConnection(){this.status===$.Connected&&this.lastMessageReceived&&(this.configuration.messageReconnectTimeout>=El()-this.lastMessageReceived||(this.closeTries+=1,this.closeTries>2?(this.emit(`close`,{event:{code:4408,reason:`forced`}}),this.closeTries=0):(this.webSocket?.close(),this.messageQueue=[])))}get serverUrl(){if(this.configuration.preserveTrailingSlash)return this.configuration.url;let e=this.configuration.url;for(;e[e.length-1]===`/`;)e=e.slice(0,e.length-1);return e}get url(){return this.serverUrl}disconnect(){if(this.shouldConnect=!1,this.webSocket!==null)try{this.webSocket.close(),this.messageQueue=[]}catch(e){console.error(e)}}parseQueuedMessage(e){try{let t=vl(e);return{documentName:wl(t),messageType:Sl(t)}}catch{return null}}addToQueue(t){if(t instanceof Uint8Array){let n=this.parseQueuedMessage(t);n&&e.DEDUPLICATABLE_TYPES.has(n.messageType)&&(this.messageQueue=this.messageQueue.filter(e=>{if(!(e instanceof Uint8Array))return!0;let t=this.parseQueuedMessage(e);return t?!(t.documentName===n.documentName&&t.messageType===n.messageType):!0}))}this.messageQueue.push(t)}send(e){this.webSocket?.readyState===wc.Open?this.webSocket.send(e):this.addToQueue(e)}onClose({event:e}){this.closeTries=0,this.cleanupWebSocket(),this.connectionAttempt&&this.rejectConnectionAttempt(),this.status=$.Disconnected,this.emit(`status`,{status:$.Disconnected}),this.emit(`disconnect`,{event:e}),!this.cancelWebsocketRetry&&this.shouldConnect&&setTimeout(()=>{this.connect()},this.configuration.delay)}destroy(){this.emit(`destroy`),clearInterval(this.intervals.connectionChecker),this.stopConnectionAttempt(),this.disconnect(),this.removeAllListeners(),this.cleanupWebSocket()}},Gl=0,Kl=1,ql=2,Jl=(e,t)=>{Z(e,Gl),pl(e,va(t))},Yl=(e,t,n)=>{Z(e,Kl),pl(e,fa(t,n))},Xl=(e,t,n)=>Yl(t,n,bl(e)),Zl=(e,t,n,r)=>{try{la(t,bl(e),n)}catch(e){r?.(e),console.error(`Caught error while handling a Yjs update`,e)}},Ql=(e,t)=>{Z(e,ql),pl(e,t)},$l=Zl,eu=(e,t,n,r,i)=>{let a=Sl(e);switch(a){case Gl:Xl(e,t,n);break;case Kl:Zl(e,n,r,i);break;case ql:$l(e,n,r,i);break;default:throw Error(`Unknown message type`)}return a},tu=class{constructor(e){this.message=e}apply(e,t){let{message:n}=this,r=n.readVarUint(),i=n.length();switch(r){case Q.Sync:this.applySyncMessage(e,t);break;case Q.Awareness:this.applyAwarenessMessage(e);break;case Q.Auth:this.applyAuthMessage(e);break;case Q.QueryAwareness:this.applyQueryAwarenessMessage(e);break;case Q.Stateless:e.receiveStateless(wl(n.decoder));break;case Q.SyncStatus:this.applySyncStatusMessage(e,Cl(n.decoder)===1);break;case Q.CLOSE:let i={code:1e3,reason:wl(n.decoder)};e.onClose(),e.configuration.onClose({event:i}),e.forwardClose({event:i});break;default:console.error(`Can’t apply message of unknown type: ${r}`)}n.length()>i+1&&e.send(Hl,{encoder:n.encoder})}applySyncMessage(e,t){let{message:n}=this;n.writeVarUint(Q.Sync);let r=eu(n.decoder,n.encoder,e.document,e);t&&r===Kl&&(e.synced=!0)}applySyncStatusMessage(e,t){t&&e.decrementUnsyncedChanges()}applyAwarenessMessage(e){if(!e.awareness)return;let{message:t}=this;zl(e.awareness,t.readVarUint8Array(),e)}applyAuthMessage(e){let{message:t}=this;yc(t.decoder,e.sendToken.bind(e),e.permissionDeniedHandler.bind(e),e.authenticatedHandler.bind(e))}applyQueryAwarenessMessage(e){if(!e.awareness)return;let{message:t}=this;t.writeVarUint(Q.Awareness),t.writeVarUint8Array(Rl(e.awareness,Array.from(e.awareness.getStates().keys())))}},nu=class{constructor(e,t={}){this.message=new e,this.encoder=this.message.get(t)}create(){return sl(this.encoder)}send(e){e?.send(this.create())}},ru=`4.0.0-rc.1`,iu=class extends Hl{constructor(...e){super(...e),this.type=Q.Auth,this.description=`Authentication`}get(e){if(e.token===void 0)throw Error("The authentication message requires `token` as an argument.");return dl(this.encoder,e.documentName),Z(this.encoder,this.type),vc(this.encoder,e.token),dl(this.encoder,ru),this.encoder}},au=class extends Hl{constructor(...e){super(...e),this.type=Q.Awareness,this.description=`Awareness states update`}get(e){if(e.awareness===void 0)throw Error(`The awareness message requires awareness as an argument`);if(e.clients===void 0)throw Error(`The awareness message requires clients as an argument`);dl(this.encoder,e.documentName),Z(this.encoder,this.type);let t;return t=e.states===void 0?Rl(e.awareness,e.clients):Rl(e.awareness,e.clients,e.states),pl(this.encoder,t),this.encoder}},ou=class extends Hl{constructor(...e){super(...e),this.type=Q.Stateless,this.description=`A stateless message`}get(e){return dl(this.encoder,e.documentName),Z(this.encoder,this.type),dl(this.encoder,e.payload??``),this.encoder}},su=class extends Hl{constructor(...e){super(...e),this.type=Q.Sync,this.description=`First sync step`}get(e){if(e.document===void 0)throw Error(`The sync step one message requires document as an argument`);return dl(this.encoder,e.documentName),Z(this.encoder,this.type),Jl(this.encoder,e.document),this.encoder}},cu=class extends Hl{constructor(...e){super(...e),this.type=Q.Sync,this.description=`A document update`}get(e){return dl(this.encoder,e.documentName),Z(this.encoder,this.type),Ql(this.encoder,e.update),this.encoder}},lu=class extends Error{constructor(...e){super(...e),this.code=1001}},uu=class extends Bl{get effectiveName(){return this.configuration.sessionAwareness?Sc(this.configuration.name,this.sessionId):this.configuration.name}constructor(e){super(),this.configuration={name:``,document:void 0,awareness:void 0,token:null,sessionAwareness:!0,forceSyncInterval:!1,onAuthenticated:()=>null,onAuthenticationFailed:()=>null,onOpen:()=>null,onConnect:()=>null,onMessage:()=>null,onOutgoingMessage:()=>null,onSynced:()=>null,onStatus:()=>null,onDisconnect:()=>null,onClose:()=>null,onDestroy:()=>null,onAwarenessUpdate:()=>null,onAwarenessChange:()=>null,onStateless:()=>null,onUnsyncedChanges:()=>null},this.isSynced=!1,this.unsyncedChanges=0,this.isAuthenticated=!1,this.authorizedScope=void 0,this.manageSocket=!1,this._isAttached=!1,this.sessionId=Math.random().toString(36).slice(2),this.intervals={forceSync:null},this.boundDocumentUpdateHandler=this.documentUpdateHandler.bind(this),this.boundAwarenessUpdateHandler=this.awarenessUpdateHandler.bind(this),this.boundPageHide=this.pageHide.bind(this),this.boundOnOpen=this.onOpen.bind(this),this.boundOnClose=this.onClose.bind(this),this.forwardConnect=()=>this.emit(`connect`),this.forwardStatus=e=>this.emit(`status`,e),this.forwardClose=e=>this.emit(`close`,e),this.forwardDisconnect=e=>this.emit(`disconnect`,e),this.forwardDestroy=()=>this.emit(`destroy`),this.setConfiguration(e),this.configuration.document=e.document?e.document:new qi,this.configuration.awareness=e.awareness===void 0?new Il(this.document):e.awareness,this.on(`open`,this.configuration.onOpen),this.on(`message`,this.configuration.onMessage),this.on(`outgoingMessage`,this.configuration.onOutgoingMessage),this.on(`synced`,this.configuration.onSynced),this.on(`destroy`,this.configuration.onDestroy),this.on(`awarenessUpdate`,this.configuration.onAwarenessUpdate),this.on(`awarenessChange`,this.configuration.onAwarenessChange),this.on(`stateless`,this.configuration.onStateless),this.on(`unsyncedChanges`,this.configuration.onUnsyncedChanges),this.on(`authenticated`,this.configuration.onAuthenticated),this.on(`authenticationFailed`,this.configuration.onAuthenticationFailed),this.awareness?.on(`update`,()=>{this.emit(`awarenessUpdate`,{states:bc(this.awareness.getStates())})}),this.awareness?.on(`change`,()=>{this.emit(`awarenessChange`,{states:bc(this.awareness.getStates())})}),this.document.on(`update`,this.boundDocumentUpdateHandler),this.awareness?.on(`update`,this.boundAwarenessUpdateHandler),this.registerEventListeners(),this.configuration.forceSyncInterval&&typeof this.configuration.forceSyncInterval==`number`&&(this.intervals.forceSync=setInterval(this.forceSync.bind(this),this.configuration.forceSyncInterval)),this.manageSocket&&this.attach()}setConfiguration(e={}){e.websocketProvider||(this.manageSocket=!0,this.configuration.websocketProvider=new Wl(e)),this.configuration={...this.configuration,...e}}get document(){return this.configuration.document}get isAttached(){return this._isAttached}get awareness(){return this.configuration.awareness}get hasUnsyncedChanges(){return this.unsyncedChanges>0}resetUnsyncedChanges(){this.unsyncedChanges=1,this.emit(`unsyncedChanges`,{number:this.unsyncedChanges})}incrementUnsyncedChanges(){this.unsyncedChanges+=1,this.emit(`unsyncedChanges`,{number:this.unsyncedChanges})}decrementUnsyncedChanges(){this.unsyncedChanges>0&&--this.unsyncedChanges,this.unsyncedChanges===0&&(this.synced=!0),this.emit(`unsyncedChanges`,{number:this.unsyncedChanges})}forceSync(){this.resetUnsyncedChanges(),this.send(su,{document:this.document,documentName:this.effectiveName})}pageHide(){this.awareness&&Ll(this.awareness,[this.document.clientID],`page hide`)}registerEventListeners(){typeof window>`u`||!(`addEventListener`in window)||window.addEventListener(`pagehide`,this.boundPageHide)}sendStateless(e){this.send(ou,{documentName:this.effectiveName,payload:e})}async sendToken(){let e;try{e=await this.getToken()}catch(e){this.permissionDeniedHandler(`Failed to get token during sendToken(): ${e}`);return}this.send(iu,{token:e??``,documentName:this.effectiveName})}documentUpdateHandler(e,t){t!==this&&(this.incrementUnsyncedChanges(),this.send(cu,{update:e,documentName:this.effectiveName}))}awarenessUpdateHandler({added:e,updated:t,removed:n},r){let i=e.concat(t).concat(n);this.send(au,{awareness:this.awareness,clients:i,documentName:this.effectiveName})}get synced(){return this.isSynced}set synced(e){this.isSynced!==e&&(this.isSynced=e,e&&this.emit(`synced`,{state:e}))}receiveStateless(e){this.emit(`stateless`,{payload:e})}async connect(){if(this.manageSocket)return this.configuration.websocketProvider.connect();console.warn(`HocuspocusProvider::connect() is deprecated and does not do anything. Please connect/disconnect on the websocketProvider, or attach/deattach providers.`)}disconnect(){if(this.manageSocket)return this.configuration.websocketProvider.disconnect();console.warn(`HocuspocusProvider::disconnect() is deprecated and does not do anything. Please connect/disconnect on the websocketProvider, or attach/deattach providers.`)}async onOpen(e){this.isAuthenticated=!1,this.emit(`open`,{event:e}),await this.sendToken(),this.startSync()}async getToken(){return typeof this.configuration.token==`function`?await this.configuration.token():this.configuration.token}startSync(){this.resetUnsyncedChanges(),this.send(su,{document:this.document,documentName:this.effectiveName}),this.awareness&&this.awareness.getLocalState()!==null&&this.send(au,{awareness:this.awareness,clients:[this.document.clientID],documentName:this.effectiveName})}send(e,t){if(!this._isAttached)return;let n=new nu(e,t);this.emit(`outgoingMessage`,{message:n.message}),n.send(this.configuration.websocketProvider)}onMessage(e){let t=new Vl(e.data),{documentName:n}=Cc(t.readVarString());t.writeVarString(this.effectiveName),this.emit(`message`,{event:e,message:new Vl(e.data)}),new tu(t).apply(this,!0)}onClose(){this.isAuthenticated=!1,this.synced=!1,this.awareness&&Ll(this.awareness,Array.from(this.awareness.getStates().keys()).filter(e=>e!==this.document.clientID),this)}destroy(){this.emit(`destroy`),this.intervals.forceSync&&clearInterval(this.intervals.forceSync),this.awareness&&(Ll(this.awareness,[this.document.clientID],`provider destroy`),this.awareness.off(`update`,this.boundAwarenessUpdateHandler),this.awareness.destroy()),this.document.off(`update`,this.boundDocumentUpdateHandler),this.removeAllListeners(),this.detach(),this.manageSocket&&this.configuration.websocketProvider.destroy(),!(typeof window>`u`||!(`removeEventListener`in window))&&window.removeEventListener(`pagehide`,this.boundPageHide)}detach(){this.configuration.websocketProvider.off(`connect`,this.configuration.onConnect),this.configuration.websocketProvider.off(`connect`,this.forwardConnect),this.configuration.websocketProvider.off(`status`,this.forwardStatus),this.configuration.websocketProvider.off(`status`,this.configuration.onStatus),this.configuration.websocketProvider.off(`open`,this.boundOnOpen),this.configuration.websocketProvider.off(`close`,this.boundOnClose),this.configuration.websocketProvider.off(`close`,this.configuration.onClose),this.configuration.websocketProvider.off(`close`,this.forwardClose),this.configuration.websocketProvider.off(`disconnect`,this.configuration.onDisconnect),this.configuration.websocketProvider.off(`disconnect`,this.forwardDisconnect),this.configuration.websocketProvider.off(`destroy`,this.configuration.onDestroy),this.configuration.websocketProvider.off(`destroy`,this.forwardDestroy),this.configuration.websocketProvider.detach(this),this._isAttached=!1}attach(){this._isAttached||=(this.configuration.websocketProvider.on(`connect`,this.configuration.onConnect),this.configuration.websocketProvider.on(`connect`,this.forwardConnect),this.configuration.websocketProvider.on(`status`,this.configuration.onStatus),this.configuration.websocketProvider.on(`status`,this.forwardStatus),this.configuration.websocketProvider.on(`open`,this.boundOnOpen),this.configuration.websocketProvider.on(`close`,this.boundOnClose),this.configuration.websocketProvider.on(`close`,this.configuration.onClose),this.configuration.websocketProvider.on(`close`,this.forwardClose),this.configuration.websocketProvider.on(`disconnect`,this.configuration.onDisconnect),this.configuration.websocketProvider.on(`disconnect`,this.forwardDisconnect),this.configuration.websocketProvider.on(`destroy`,this.configuration.onDestroy),this.configuration.websocketProvider.on(`destroy`,this.forwardDestroy),this.configuration.websocketProvider.attach(this),!0)}permissionDeniedHandler(e){this.emit(`authenticationFailed`,{reason:e}),this.isAuthenticated=!1}authenticatedHandler(e){this.isAuthenticated=!0,this.authorizedScope=e,this.emit(`authenticated`,{scope:e})}setAwarenessField(e,t){if(!this.awareness)throw new lu(`Cannot set awareness field "${e}" to ${JSON.stringify(t)}. You have disabled Awareness for this provider by explicitly passing awareness: null in the provider configuration.`);this.awareness.setLocalStateField(e,t)}};function du(e,t,n=null,r=null){let i={...le()};return e!==null&&(i.principalId=e.principalId,i.tabSessionId=e.tabSessionId),t!==null&&t.length>0&&(i.expectedServerInstanceId=t),n!==null&&n.length>0&&(i.expectedBranch=n),r!==null&&r.length>0&&(i.expectedDocLineageEpoch=r),JSON.stringify(i)}function fu(e,t,n){let r=(0,ye.c)(5),i,a;r[0]!==e||r[1]!==t||r[2]!==n?(i=()=>{!e||!n||typeof e.setLanguagePreference==`function`&&e.setLanguagePreference(t??`system`).catch(e=>{console.warn(JSON.stringify({event:`language-preference-push-failed`,preference:t??`system`,error:e instanceof Error?e.message:String(e)}))})},a=[e,t,n],r[0]=e,r[1]=t,r[2]=n,r[3]=i,r[4]=a):(i=r[3],a=r[4]),(0,v.useEffect)(i,a)}function pu(e){let t=document.createElement(`span`);t.style.display=`none`,t.style.backgroundColor=`var(${e})`,document.body.appendChild(t);try{let e=getComputedStyle(t).backgroundColor;return!e||e===`rgba(0, 0, 0, 0)`||e.includes(`var(`)?null:ge(e)}finally{t.remove()}}function mu(){if(!(typeof document>`u`))try{let e=pu(`--sidebar`),t=pu(`--sidebar-foreground`);return!e||!t?void 0:{bg:e,symbol:t}}catch{return}}function hu(e,t,n){let r=(0,ye.c)(7),i=(0,v.useRef)(null),a;r[0]!==e||r[1]!==t?(a=()=>{if(t!==`light`&&t!==`dark`&&t!==`system`||!e)return;let n=!1,r=!1,a,o=window.matchMedia(`(prefers-reduced-transparency: reduce)`),s=()=>{if(n||!r||he())return;let t={reducedTransparency:o.matches,chrome:mu()},i=JSON.stringify(t);i!==a&&(e.signalThemeApplied(t),a=i)},c=pe(s);o.addEventListener(`change`,s);let l=()=>{n||(r=!0,s())},u=i.current;if(u?.bridge===e&&u.source===t)u.settled.then(l);else{let n={bridge:e,source:t,settled:e.setThemeSource(t).catch(e=>{i.current===n&&(i.current=null),console.warn(JSON.stringify({event:`theme-source-set-failed`,themeValue:t,error:e instanceof Error?e.message:String(e)}))})};i.current=n,n.settled.then(l)}return()=>{n=!0,c(),o.removeEventListener(`change`,s)}},r[0]=e,r[1]=t,r[2]=a):a=r[2];let o;r[3]!==e||r[4]!==n||r[5]!==t?(o=[e,n,t],r[3]=e,r[4]=n,r[5]=t,r[6]=o):o=r[6],(0,v.useEffect)(a,o)}function gu(e){return{authoritative:e,themes:g,warnings:[],truncated:!1}}function _u(e){let{scheme:t}=e;return{id:e.id,label:t.name,kind:t.variant,scheme:t,toTokens:()=>_(t)}}function vu(e,t){return{id:e,label:t.name,kind:t.variant,scheme:t,toTokens:()=>_(t)}}function yu(e,t,n={}){console.warn(JSON.stringify({event:`ok-saved-theme-request-failed`,action:e,result:t,...n.status===void 0?{}:{status:n.status},...n.error===void 0?{}:{errorName:n.error instanceof Error?n.error.name:`UnknownError`}}))}async function bu(e={}){let t=e.request??globalThis.fetch;try{let n=await t(`/api/saved-themes`,{signal:e.signal});if(!n.ok)return yu(`list`,`http-error`,{status:n.status}),gu(!1);let r=ne.safeParse(await n.json());if(!r.success)return console.warn(`[themes] saved-themes response failed schema validation`,r.error.issues),gu(!1);let i=[],a=[];for(let e of r.data.themes)e.ok?i.push(_u(e)):a.push({filename:e.filename,id:e.id,code:e.code,...e.conflictingFilenames?{conflictingFilenames:e.conflictingFilenames}:{}});return{authoritative:!0,themes:i.length===0?g:[...g,...i],warnings:a,truncated:r.data.truncated}}catch(t){return e.signal?.aborted||yu(`list`,`request-error`,{error:t}),gu(!1)}}function xu(e){switch(e.detail){case`empty`:case`too-long`:case`invalid-chars`:return e.detail;default:return}}async function Su(e,t={}){let n=oe.safeParse(e);if(!n.success)return{ok:!1,reason:`unexpected`};let r=t.request??globalThis.fetch;try{let e=await r(`/api/saved-theme`,{method:`POST`,headers:{"content-type":`application/json`},body:JSON.stringify(n.data)}),t=await e.json().catch(()=>null);if(e.ok){let e=a.safeParse(t);return e.success?{ok:!0,...e.data}:{ok:!1,reason:`unexpected`}}let i=s.safeParse(t);if(!i.success)return{ok:!1,reason:`unexpected`};if(i.data.type===`urn:ok:error:theme-name-taken`)return{ok:!1,reason:`name-taken`};if(i.data.type===`urn:ok:error:theme-name-invalid`){let e=xu(i.data);return e?{ok:!1,reason:`name-invalid`,detail:e}:{ok:!1,reason:`name-invalid`}}return{ok:!1,reason:`unexpected`}}catch(e){return yu(`save`,`request-error`,{error:e}),{ok:!1,reason:`unexpected`}}}async function Cu(e,t={}){let n=u.safeParse(e);if(!n.success)return{ok:!1,reason:`unexpected`};let r=t.request??globalThis.fetch;try{let e=await r(`/api/saved-theme`,{method:`PUT`,headers:{"content-type":`application/json`},body:JSON.stringify(n.data)}),t=await e.json().catch(()=>null);if(e.ok){let e=te.safeParse(t);return e.success?{ok:!0,...e.data}:{ok:!1,reason:`unexpected`}}let i=s.safeParse(t);return i.success&&i.data.type===`urn:ok:error:not-found`?{ok:!1,reason:`not-found`}:{ok:!1,reason:`unexpected`}}catch(e){return yu(`update`,`request-error`,{error:e}),{ok:!1,reason:`unexpected`}}}async function wu(e,t={}){if(!re(e).ok)return{ok:!1,reason:`unexpected`};let n=t.request??globalThis.fetch;try{let t=await n(`/api/saved-theme?${new URLSearchParams({id:e})}`,{method:`DELETE`}),r=await t.json().catch(()=>null);if(!t.ok)return{ok:!1,reason:`unexpected`};let i=m.safeParse(r);if(!i.success)return{ok:!1,reason:`unexpected`};if(!i.data.existed)return{ok:!0,existed:!1};let a=h.safeParse(i.data.scheme);return a.success?{ok:!0,existed:!0,filename:i.data.filename,scheme:a.data}:{ok:!1,reason:`unexpected`}}catch(e){return yu(`delete`,`request-error`,{error:e}),{ok:!1,reason:`unexpected`}}}var Tu=(0,v.createContext)(null);function Eu(e){let t=(0,ye.c)(20),{children:n}=e,r=we(),[i,a]=(0,v.useState)(ku),[o,s]=(0,v.useState)(!1),[c,l]=(0,v.useState)(!1),[u,d]=(0,v.useState)(`custom`),[f,p]=(0,v.useState)(!1),ee;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(ee={},t[0]=ee):ee=t[0];let m=(0,v.useRef)(ee),te;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(te={},t[1]=te):te=t[1];let[h,ne]=(0,v.useState)(te),g=(0,v.useRef)(0),re;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(re=()=>{let e=0,t=null,n=!1,r=null,i,o=[250,1e3,4e3],c=()=>{i!==void 0&&clearTimeout(i),i=void 0},u=()=>{if(t)return n=!0,t;let i=e,o=(async()=>{let t;do{n=!1;let o=g.current,u=new AbortController;r=u;let{authoritative:d,...f}=await bu({signal:u.signal});if(i!==e)return!1;t=d,d?(c(),o===g.current&&a(f),s(!0),l(!1)):l(!0)}while(n);return t})().finally(()=>{t===o&&(t=null)});return t=o,o};return{refresh:u,startAutomaticRetry:()=>{e+=1;let a=e;r?.abort(),r=null,t=null,n=!1,c();let s=async t=>{let n=await u();a!==e||n||t>=o.length||(i=setTimeout(()=>void s(t+1),o[t]))};return s(0),()=>{a===e&&(e+=1,r?.abort(),r=null,t=null,n=!1,c())}}}},t[2]=re):re=t[2];let[_]=(0,v.useState)(re),ie=_.refresh,ae;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(ae=()=>{let e=new Map,t=(t,n)=>{let r=(e.get(t)??Promise.resolve()).then(n,n),i=r.then(Ou,Du);return e.set(t,i),i.finally(()=>{e.get(t)===i&&e.delete(t)}),r},n=(e,t,n)=>{g.current+=1;let r=vu(e,t);a(t=>({...t,themes:t.themes.some(t=>t.id===e)?t.themes.map(t=>t.id===e?r:t):[...t.themes,r],warnings:t.warnings.filter(t=>t.id!==e&&(n===void 0||t.filename!==n))}))};return{updateTheme:e=>t(e.id,async()=>{let t=await Cu(e);return t.ok&&n(e.id,e.scheme,t.filename),t}),deleteTheme:e=>t(e,async()=>{let t=await wu(e);if(t.ok){let t={...m.current,[e]:(m.current[e]??0)+1};m.current=t,ne(t),g.current+=1,a(t=>({...t,themes:t.themes.filter(t=>t.id!==e),warnings:t.warnings.filter(t=>t.id!==e)}))}return t}),restoreTheme:e=>t(e.id,async()=>{let t=await Su({name:e.name,stem:e.stem,scheme:e.scheme,extension:e.extension});return t.ok&&n(t.id,e.scheme,t.filename),t})}},t[3]=ae):ae=t[3];let[oe]=(0,v.useState)(ae),se;t[4]===_?se=t[5]:(se=()=>_.startAutomaticRetry(),t[4]=_,t[5]=se);let ce;t[6]!==_||t[7]!==r?(ce=[_,r],t[6]=_,t[7]=r,t[8]=ce):ce=t[8],(0,v.useEffect)(se,ce);let le;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(le=function(e){if(e===null){p(!1);return}d(e),p(!0)},t[9]=le):le=t[9];let ue=le,de;return t[10]!==n||t[11]!==i||t[12]!==u||t[13]!==c||t[14]!==o||t[15]!==oe||t[16]!==ie||t[17]!==f||t[18]!==h?(de=(0,v.createElement)(Tu,{value:{...i,loaded:o,loadError:c,refresh:ie,...oe,editingThemeId:u,themeIncarnations:h,themeEditorOpen:f,selectThemeToEdit:ue}},n),t[10]=n,t[11]=i,t[12]=u,t[13]=c,t[14]=o,t[15]=oe,t[16]=ie,t[17]=f,t[18]=h,t[19]=de):de=t[19],de}function Du(){}function Ou(){}function ku(){return gu(!1)}function Au(){let e=(0,v.use)(Tu);if(!e)throw Error(`useSavedThemes must be used within <SavedThemesProvider />`);return e}var ju=t();function Mu(e,t,n,r){console.warn(JSON.stringify({event:`ok-${e}-${n}`,docName:t,code:r?.code,reason:r?.reason??void 0}))}function Nu(e,t,n,r){let i=new qi,a=new uu({url:e,name:t,document:i,token:du(null,r,null),onDisconnect:({event:e})=>Mu(`config-provider`,t,`disconnect`,e),onClose:({event:e})=>Mu(`config-provider`,t,`close`,e)}),o=c(a,n);return{binding:o,config:o.current(),cleanup:()=>{o.dispose(),a.destroy(),i.destroy()}}}function Pu(e,t){let n=new qi,r=new uu({url:e,name:f,document:n,token:du(null,t,null),onDisconnect:({event:e})=>Mu(`okignore-provider`,f,`disconnect`,e),onClose:({event:e})=>Mu(`okignore-provider`,f,`close`,e)}),i=p(r);return{binding:i,provider:r,cleanup:()=>{i.dispose(),r.destroy(),n.destroy()}}}function Fu(e){let t=(0,ye.c)(20),{collabUrl:n,collabTerminal:i,children:a}=e,s=i===void 0?!1:i,{themes:c,loaded:u,loadError:f}=Au(),p=we(),{systemTheme:m}=r(),te=m===`dark`,[h,ne]=(0,v.useState)(null),[g,re]=(0,v.useState)(null),[_,oe]=(0,v.useState)(null),[le,pe]=(0,v.useState)(null),he,ge;t[0]!==n||t[1]!==p?(he=()=>{if(n===null)return;let e=Nu(n,d,`user`,p),t=Nu(n,ee,`project`,p),r=Nu(n,l,`project-local`,p),i=Pu(n,p);ne({binding:e.binding,config:e.config,synced:e.binding.hasSynced()}),re({binding:t.binding,config:t.config,synced:t.binding.hasSynced()}),oe({binding:r.binding,config:r.config,synced:r.binding.hasSynced()}),pe({binding:i.binding,synced:!1});let a=e.binding.subscribe(t=>{ne(n=>n?.binding===e.binding?{...n,config:t}:n)}),o=e.binding.subscribeSynced(()=>{ne(t=>t?.binding===e.binding?{...t,config:e.binding.current(),synced:!0}:t)}),s=t.binding.subscribe(e=>{re(n=>n?.binding===t.binding?{...n,config:e}:n)}),c=t.binding.subscribeSynced(()=>{re(e=>e?.binding===t.binding?{...e,config:t.binding.current(),synced:!0}:e)}),u=r.binding.subscribe(e=>{oe(t=>t?.binding===r.binding?{...t,config:e}:t)}),f=r.binding.subscribeSynced(()=>{oe(e=>e?.binding===r.binding?{...e,config:r.binding.current(),synced:!0}:e)}),m=()=>{pe(e=>e?.binding===i.binding?{...e,synced:!0}:e)};return i.provider.on(`synced`,m),()=>{a(),o(),s(),c(),u(),f(),i.provider.off(`synced`,m);for(let n of[e,t,r,i])try{n.cleanup()}catch(e){console.warn(JSON.stringify({event:`ok-config-provider-cleanup-error`,error:String(e)}))}ne(t=>t?.binding===e.binding?null:t),re(e=>e?.binding===t.binding?null:e),oe(e=>e?.binding===r.binding?null:e),pe(e=>e?.binding===i.binding?null:e)}},ge=[n,p],t[0]=n,t[1]=p,t[2]=he,t[3]=ge):(he=t[2],ge=t[3]),(0,v.useEffect)(he,ge);let y=h&&g?ie(h.config,g.config,_?.config):null,be=y?.appearance?.theme,xe=y?.appearance?.customTheme,Se=y?.appearance?.colorThemeEnabled!==!1,Ce=n===null||h?.synced===!0&&g?.synced===!0&&_?.synced===!0,b=[y?.appearance?.colorThemeLight,y?.appearance?.colorThemeDark,y?.appearance?.colorTheme],Te=Se&&b.some(Iu),x=Ce&&(!Te||u),Ee=Ce&&(!Te||u||f),De=ae(y?.appearance,c),S=o(be,te),Oe=Se?De[S]:`default`,ke=Oe===`custom`?fe(_e(xe)):de(Oe,c)??be??(y?`system`:void 0);se(x?ke:void 0),me({selection:De,modePreference:be,slotMode:S,customSeed:xe,themes:c,enabled:Se,ready:x}),ue((n!==null||s)&&x),ve({preference:y?.appearance?.language,userConfigSynced:h?.synced??!1}),fu(typeof window<`u`?window.okDesktop:void 0,y?.appearance?.language,h?.synced??!1);let C=Oe.startsWith(`saved-`)?c.find(e=>e.id===Oe)?.scheme:void 0,Ae=Oe===`custom`?JSON.stringify(xe??null):C?JSON.stringify(C):``;hu(Ee&&typeof window<`u`?window.okDesktop:void 0,Ee?be??`system`:void 0,`${Oe}:${Ae}`);let je=h?.binding??null,Me=h?.synced??!1,Ne=g?.binding??null,Pe=_?.binding??null,Fe=le?.binding??null,w=le?.synced??!1,Ie=h?.config??null,Le=g?.config??null,T=g?.synced??!1,Re=_?.config??null,ze=_?.synced??!1,Be;t[4]!==y||t[5]!==Ie||t[6]!==Le||t[7]!==T||t[8]!==Re||t[9]!==ze||t[10]!==je||t[11]!==Me||t[12]!==Ne||t[13]!==Pe||t[14]!==Fe||t[15]!==w?(Be={userBinding:je,userSynced:Me,projectBinding:Ne,projectLocalBinding:Pe,okignoreBinding:Fe,okignoreSynced:w,userConfig:Ie,projectConfig:Le,projectSynced:T,projectLocalConfig:Re,projectLocalSynced:ze,merged:y},t[4]=y,t[5]=Ie,t[6]=Le,t[7]=T,t[8]=Re,t[9]=ze,t[10]=je,t[11]=Me,t[12]=Ne,t[13]=Pe,t[14]=Fe,t[15]=w,t[16]=Be):Be=t[16];let Ve=Be,He;return t[17]!==a||t[18]!==Ve?(He=(0,ju.jsx)(ce,{value:Ve,children:a}),t[17]=a,t[18]=Ve,t[19]=He):He=t[19],He}function Iu(e){return typeof e==`string`&&e.startsWith(`saved-`)}function Lu(e){let t=(0,ye.c)(2),n;return t[0]===e?n=t[1]:(n=(0,ju.jsx)(Eu,{children:(0,ju.jsx)(Fu,{...e})}),t[0]=e,t[1]=n),n}export{Ze as $,Ea as A,ii as B,Aa as C,fa as D,ma as E,Ba as F,On as G,Vn as H,W as I,on as J,vn as K,Fo as L,Da as M,Fi as N,va as O,ka as P,M as Q,pi as R,B as S,za as T,zn as U,ai as V,Ln as W,A as X,tn as Y,j as Z,la as _,uu as a,x as at,Ia as b,ac as c,Oa as d,T as et,Ra as f,As as g,Ts as h,du as i,b as it,Li as j,H as k,qi as l,bs as m,Au as n,Fe as nt,J as o,Se as ot,so as p,mn as q,hu as r,S as rt,Ys as s,Lu as t,Le as tt,Y as u,ca as v,Pa as w,Vi as x,La as y,z};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{o as e,t}from"./chunk-CYidjpOJ.js";import{n}from"./chunk-Y2CYZVJY-Cp_w6nmo.js";import{t as r}from"./src-DXPuodFp.js";import{C as i}from"./src-D90fZ1pT.js";import{t as a}from"./cytoscape.esm-Bd1JUlwi.js";var o=t(((e,t)=>{(function(n,r){typeof e==`object`&&typeof t==`object`?t.exports=r():typeof define==`function`&&define.amd?define([],r):typeof e==`object`?e.layoutBase=r():n.layoutBase=r()})(e,function(){return(function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.i=function(e){return e},n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,`a`,t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p=``,n(n.s=26)})([(function(e,t,n){function r(){}r.QUALITY=1,r.DEFAULT_CREATE_BENDS_AS_NEEDED=!1,r.DEFAULT_INCREMENTAL=!1,r.DEFAULT_ANIMATION_ON_LAYOUT=!0,r.DEFAULT_ANIMATION_DURING_LAYOUT=!1,r.DEFAULT_ANIMATION_PERIOD=50,r.DEFAULT_UNIFORM_LEAF_NODE_SIZES=!1,r.DEFAULT_GRAPH_MARGIN=15,r.NODE_DIMENSIONS_INCLUDE_LABELS=!1,r.SIMPLE_NODE_SIZE=40,r.SIMPLE_NODE_HALF_SIZE=r.SIMPLE_NODE_SIZE/2,r.EMPTY_COMPOUND_NODE_SIZE=40,r.MIN_EDGE_LENGTH=1,r.WORLD_BOUNDARY=1e6,r.INITIAL_WORLD_BOUNDARY=r.WORLD_BOUNDARY/1e3,r.WORLD_CENTER_X=1200,r.WORLD_CENTER_Y=900,e.exports=r}),(function(e,t,n){var r=n(2),i=n(8),a=n(9);function o(e,t,n){r.call(this,n),this.isOverlapingSourceAndTarget=!1,this.vGraphObject=n,this.bendpoints=[],this.source=e,this.target=t}for(var s in o.prototype=Object.create(r.prototype),r)o[s]=r[s];o.prototype.getSource=function(){return this.source},o.prototype.getTarget=function(){return this.target},o.prototype.isInterGraph=function(){return this.isInterGraph},o.prototype.getLength=function(){return this.length},o.prototype.isOverlapingSourceAndTarget=function(){return this.isOverlapingSourceAndTarget},o.prototype.getBendpoints=function(){return this.bendpoints},o.prototype.getLca=function(){return this.lca},o.prototype.getSourceInLca=function(){return this.sourceInLca},o.prototype.getTargetInLca=function(){return this.targetInLca},o.prototype.getOtherEnd=function(e){if(this.source===e)return this.target;if(this.target===e)return this.source;throw`Node is not incident with this edge`},o.prototype.getOtherEndInGraph=function(e,t){for(var n=this.getOtherEnd(e),r=t.getGraphManager().getRoot();;){if(n.getOwner()==t)return n;if(n.getOwner()==r)break;n=n.getOwner().getParent()}return null},o.prototype.updateLength=function(){var e=[,,,,];this.isOverlapingSourceAndTarget=i.getIntersection(this.target.getRect(),this.source.getRect(),e),this.isOverlapingSourceAndTarget||(this.lengthX=e[0]-e[2],this.lengthY=e[1]-e[3],Math.abs(this.lengthX)<1&&(this.lengthX=a.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=a.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY))},o.prototype.updateLengthSimple=function(){this.lengthX=this.target.getCenterX()-this.source.getCenterX(),this.lengthY=this.target.getCenterY()-this.source.getCenterY(),Math.abs(this.lengthX)<1&&(this.lengthX=a.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=a.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY)},e.exports=o}),(function(e,t,n){function r(e){this.vGraphObject=e}e.exports=r}),(function(e,t,n){var r=n(2),i=n(10),a=n(13),o=n(0),s=n(16),c=n(4);function l(e,t,n,o){n==null&&o==null&&(o=t),r.call(this,o),e.graphManager!=null&&(e=e.graphManager),this.estimatedSize=i.MIN_VALUE,this.inclusionTreeDepth=i.MAX_VALUE,this.vGraphObject=o,this.edges=[],this.graphManager=e,n!=null&&t!=null?this.rect=new a(t.x,t.y,n.width,n.height):this.rect=new a}for(var u in l.prototype=Object.create(r.prototype),r)l[u]=r[u];l.prototype.getEdges=function(){return this.edges},l.prototype.getChild=function(){return this.child},l.prototype.getOwner=function(){return this.owner},l.prototype.getWidth=function(){return this.rect.width},l.prototype.setWidth=function(e){this.rect.width=e},l.prototype.getHeight=function(){return this.rect.height},l.prototype.setHeight=function(e){this.rect.height=e},l.prototype.getCenterX=function(){return this.rect.x+this.rect.width/2},l.prototype.getCenterY=function(){return this.rect.y+this.rect.height/2},l.prototype.getCenter=function(){return new c(this.rect.x+this.rect.width/2,this.rect.y+this.rect.height/2)},l.prototype.getLocation=function(){return new c(this.rect.x,this.rect.y)},l.prototype.getRect=function(){return this.rect},l.prototype.getDiagonal=function(){return Math.sqrt(this.rect.width*this.rect.width+this.rect.height*this.rect.height)},l.prototype.getHalfTheDiagonal=function(){return Math.sqrt(this.rect.height*this.rect.height+this.rect.width*this.rect.width)/2},l.prototype.setRect=function(e,t){this.rect.x=e.x,this.rect.y=e.y,this.rect.width=t.width,this.rect.height=t.height},l.prototype.setCenter=function(e,t){this.rect.x=e-this.rect.width/2,this.rect.y=t-this.rect.height/2},l.prototype.setLocation=function(e,t){this.rect.x=e,this.rect.y=t},l.prototype.moveBy=function(e,t){this.rect.x+=e,this.rect.y+=t},l.prototype.getEdgeListToNode=function(e){var t=[],n=this;return n.edges.forEach(function(r){if(r.target==e){if(r.source!=n)throw`Incorrect edge source!`;t.push(r)}}),t},l.prototype.getEdgesBetween=function(e){var t=[],n=this;return n.edges.forEach(function(r){if(!(r.source==n||r.target==n))throw`Incorrect edge source and/or target`;(r.target==e||r.source==e)&&t.push(r)}),t},l.prototype.getNeighborsList=function(){var e=new Set,t=this;return t.edges.forEach(function(n){if(n.source==t)e.add(n.target);else{if(n.target!=t)throw`Incorrect incidency!`;e.add(n.source)}}),e},l.prototype.withChildren=function(){var e=new Set,t,n;if(e.add(this),this.child!=null)for(var r=this.child.getNodes(),i=0;i<r.length;i++)t=r[i],n=t.withChildren(),n.forEach(function(t){e.add(t)});return e},l.prototype.getNoOfChildren=function(){var e=0,t;if(this.child==null)e=1;else for(var n=this.child.getNodes(),r=0;r<n.length;r++)t=n[r],e+=t.getNoOfChildren();return e==0&&(e=1),e},l.prototype.getEstimatedSize=function(){if(this.estimatedSize==i.MIN_VALUE)throw`assert failed`;return this.estimatedSize},l.prototype.calcEstimatedSize=function(){return this.child==null?this.estimatedSize=(this.rect.width+this.rect.height)/2:(this.estimatedSize=this.child.calcEstimatedSize(),this.rect.width=this.estimatedSize,this.rect.height=this.estimatedSize,this.estimatedSize)},l.prototype.scatter=function(){var e,t,n=-o.INITIAL_WORLD_BOUNDARY,r=o.INITIAL_WORLD_BOUNDARY;e=o.WORLD_CENTER_X+s.nextDouble()*(r-n)+n;var i=-o.INITIAL_WORLD_BOUNDARY,a=o.INITIAL_WORLD_BOUNDARY;t=o.WORLD_CENTER_Y+s.nextDouble()*(a-i)+i,this.rect.x=e,this.rect.y=t},l.prototype.updateBounds=function(){if(this.getChild()==null)throw`assert failed`;if(this.getChild().getNodes().length!=0){var e=this.getChild();if(e.updateBounds(!0),this.rect.x=e.getLeft(),this.rect.y=e.getTop(),this.setWidth(e.getRight()-e.getLeft()),this.setHeight(e.getBottom()-e.getTop()),o.NODE_DIMENSIONS_INCLUDE_LABELS){var t=e.getRight()-e.getLeft(),n=e.getBottom()-e.getTop();this.labelWidth>t&&(this.rect.x-=(this.labelWidth-t)/2,this.setWidth(this.labelWidth)),this.labelHeight>n&&(this.labelPos==`center`?this.rect.y-=(this.labelHeight-n)/2:this.labelPos==`top`&&(this.rect.y-=this.labelHeight-n),this.setHeight(this.labelHeight))}}},l.prototype.getInclusionTreeDepth=function(){if(this.inclusionTreeDepth==i.MAX_VALUE)throw`assert failed`;return this.inclusionTreeDepth},l.prototype.transform=function(e){var t=this.rect.x;t>o.WORLD_BOUNDARY?t=o.WORLD_BOUNDARY:t<-o.WORLD_BOUNDARY&&(t=-o.WORLD_BOUNDARY);var n=this.rect.y;n>o.WORLD_BOUNDARY?n=o.WORLD_BOUNDARY:n<-o.WORLD_BOUNDARY&&(n=-o.WORLD_BOUNDARY);var r=new c(t,n),i=e.inverseTransformPoint(r);this.setLocation(i.x,i.y)},l.prototype.getLeft=function(){return this.rect.x},l.prototype.getRight=function(){return this.rect.x+this.rect.width},l.prototype.getTop=function(){return this.rect.y},l.prototype.getBottom=function(){return this.rect.y+this.rect.height},l.prototype.getParent=function(){return this.owner==null?null:this.owner.getParent()},e.exports=l}),(function(e,t,n){function r(e,t){e==null&&t==null?(this.x=0,this.y=0):(this.x=e,this.y=t)}r.prototype.getX=function(){return this.x},r.prototype.getY=function(){return this.y},r.prototype.setX=function(e){this.x=e},r.prototype.setY=function(e){this.y=e},r.prototype.getDifference=function(e){return new DimensionD(this.x-e.x,this.y-e.y)},r.prototype.getCopy=function(){return new r(this.x,this.y)},r.prototype.translate=function(e){return this.x+=e.width,this.y+=e.height,this},e.exports=r}),(function(e,t,n){var r=n(2),i=n(10),a=n(0),o=n(6),s=n(3),c=n(1),l=n(13),u=n(12),d=n(11);function f(e,t,n){r.call(this,n),this.estimatedSize=i.MIN_VALUE,this.margin=a.DEFAULT_GRAPH_MARGIN,this.edges=[],this.nodes=[],this.isConnected=!1,this.parent=e,t!=null&&t instanceof o?this.graphManager=t:t!=null&&t instanceof Layout&&(this.graphManager=t.graphManager)}for(var p in f.prototype=Object.create(r.prototype),r)f[p]=r[p];f.prototype.getNodes=function(){return this.nodes},f.prototype.getEdges=function(){return this.edges},f.prototype.getGraphManager=function(){return this.graphManager},f.prototype.getParent=function(){return this.parent},f.prototype.getLeft=function(){return this.left},f.prototype.getRight=function(){return this.right},f.prototype.getTop=function(){return this.top},f.prototype.getBottom=function(){return this.bottom},f.prototype.isConnected=function(){return this.isConnected},f.prototype.add=function(e,t,n){if(t==null&&n==null){var r=e;if(this.graphManager==null)throw`Graph has no graph mgr!`;if(this.getNodes().indexOf(r)>-1)throw`Node already in graph!`;return r.owner=this,this.getNodes().push(r),r}else{var i=e;if(!(this.getNodes().indexOf(t)>-1&&this.getNodes().indexOf(n)>-1))throw`Source or target not in graph!`;if(!(t.owner==n.owner&&t.owner==this))throw`Both owners must be this graph!`;return t.owner==n.owner?(i.source=t,i.target=n,i.isInterGraph=!1,this.getEdges().push(i),t.edges.push(i),n!=t&&n.edges.push(i),i):null}},f.prototype.remove=function(e){var t=e;if(e instanceof s){if(t==null)throw`Node is null!`;if(!(t.owner!=null&&t.owner==this))throw`Owner graph is invalid!`;if(this.graphManager==null)throw`Owner graph manager is invalid!`;for(var n=t.edges.slice(),r,i=n.length,a=0;a<i;a++)r=n[a],r.isInterGraph?this.graphManager.remove(r):r.source.owner.remove(r);var o=this.nodes.indexOf(t);if(o==-1)throw`Node not in owner node list!`;this.nodes.splice(o,1)}else if(e instanceof c){var r=e;if(r==null)throw`Edge is null!`;if(!(r.source!=null&&r.target!=null))throw`Source and/or target is null!`;if(!(r.source.owner!=null&&r.target.owner!=null&&r.source.owner==this&&r.target.owner==this))throw`Source and/or target owner is invalid!`;var l=r.source.edges.indexOf(r),u=r.target.edges.indexOf(r);if(!(l>-1&&u>-1))throw`Source and/or target doesn't know this edge!`;r.source.edges.splice(l,1),r.target!=r.source&&r.target.edges.splice(u,1);var o=r.source.owner.getEdges().indexOf(r);if(o==-1)throw`Not in owner's edge list!`;r.source.owner.getEdges().splice(o,1)}},f.prototype.updateLeftTop=function(){for(var e=i.MAX_VALUE,t=i.MAX_VALUE,n,r,a,o=this.getNodes(),s=o.length,c=0;c<s;c++){var l=o[c];n=l.getTop(),r=l.getLeft(),e>n&&(e=n),t>r&&(t=r)}return e==i.MAX_VALUE?null:(a=o[0].getParent().paddingLeft==null?this.margin:o[0].getParent().paddingLeft,this.left=t-a,this.top=e-a,new u(this.left,this.top))},f.prototype.updateBounds=function(e){for(var t=i.MAX_VALUE,n=-i.MAX_VALUE,r=i.MAX_VALUE,a=-i.MAX_VALUE,o,s,c,u,d,f=this.nodes,p=f.length,m=0;m<p;m++){var h=f[m];e&&h.child!=null&&h.updateBounds(),o=h.getLeft(),s=h.getRight(),c=h.getTop(),u=h.getBottom(),t>o&&(t=o),n<s&&(n=s),r>c&&(r=c),a<u&&(a=u)}var g=new l(t,r,n-t,a-r);t==i.MAX_VALUE&&(this.left=this.parent.getLeft(),this.right=this.parent.getRight(),this.top=this.parent.getTop(),this.bottom=this.parent.getBottom()),d=f[0].getParent().paddingLeft==null?this.margin:f[0].getParent().paddingLeft,this.left=g.x-d,this.right=g.x+g.width+d,this.top=g.y-d,this.bottom=g.y+g.height+d},f.calculateBounds=function(e){for(var t=i.MAX_VALUE,n=-i.MAX_VALUE,r=i.MAX_VALUE,a=-i.MAX_VALUE,o,s,c,u,d=e.length,f=0;f<d;f++){var p=e[f];o=p.getLeft(),s=p.getRight(),c=p.getTop(),u=p.getBottom(),t>o&&(t=o),n<s&&(n=s),r>c&&(r=c),a<u&&(a=u)}return new l(t,r,n-t,a-r)},f.prototype.getInclusionTreeDepth=function(){return this==this.graphManager.getRoot()?1:this.parent.getInclusionTreeDepth()},f.prototype.getEstimatedSize=function(){if(this.estimatedSize==i.MIN_VALUE)throw`assert failed`;return this.estimatedSize},f.prototype.calcEstimatedSize=function(){for(var e=0,t=this.nodes,n=t.length,r=0;r<n;r++){var i=t[r];e+=i.calcEstimatedSize()}return e==0?this.estimatedSize=a.EMPTY_COMPOUND_NODE_SIZE:this.estimatedSize=e/Math.sqrt(this.nodes.length),this.estimatedSize},f.prototype.updateConnected=function(){var e=this;if(this.nodes.length==0){this.isConnected=!0;return}var t=new d,n=new Set,r=this.nodes[0],i,a;for(r.withChildren().forEach(function(e){t.push(e),n.add(e)});t.length!==0;){r=t.shift(),i=r.getEdges();for(var o=i.length,s=0;s<o;s++)a=i[s].getOtherEndInGraph(r,this),a!=null&&!n.has(a)&&a.withChildren().forEach(function(e){t.push(e),n.add(e)})}if(this.isConnected=!1,n.size>=this.nodes.length){var c=0;n.forEach(function(t){t.owner==e&&c++}),c==this.nodes.length&&(this.isConnected=!0)}},e.exports=f}),(function(e,t,n){var r,i=n(1);function a(e){r=n(5),this.layout=e,this.graphs=[],this.edges=[]}a.prototype.addRoot=function(){var e=this.layout.newGraph(),t=this.layout.newNode(null),n=this.add(e,t);return this.setRootGraph(n),this.rootGraph},a.prototype.add=function(e,t,n,r,i){if(n==null&&r==null&&i==null){if(e==null)throw`Graph is null!`;if(t==null)throw`Parent node is null!`;if(this.graphs.indexOf(e)>-1)throw`Graph already in this graph mgr!`;if(this.graphs.push(e),e.parent!=null)throw`Already has a parent!`;if(t.child!=null)throw`Already has a child!`;return e.parent=t,t.child=e,e}else{i=n,r=t,n=e;var a=r.getOwner(),o=i.getOwner();if(!(a!=null&&a.getGraphManager()==this))throw`Source not in this graph mgr!`;if(!(o!=null&&o.getGraphManager()==this))throw`Target not in this graph mgr!`;if(a==o)return n.isInterGraph=!1,a.add(n,r,i);if(n.isInterGraph=!0,n.source=r,n.target=i,this.edges.indexOf(n)>-1)throw`Edge already in inter-graph edge list!`;if(this.edges.push(n),!(n.source!=null&&n.target!=null))throw`Edge source and/or target is null!`;if(!(n.source.edges.indexOf(n)==-1&&n.target.edges.indexOf(n)==-1))throw`Edge already in source and/or target incidency list!`;return n.source.edges.push(n),n.target.edges.push(n),n}},a.prototype.remove=function(e){if(e instanceof r){var t=e;if(t.getGraphManager()!=this)throw`Graph not in this graph mgr`;if(!(t==this.rootGraph||t.parent!=null&&t.parent.graphManager==this))throw`Invalid parent node!`;var n=[];n=n.concat(t.getEdges());for(var a,o=n.length,s=0;s<o;s++)a=n[s],t.remove(a);var c=[];c=c.concat(t.getNodes());var l;o=c.length;for(var s=0;s<o;s++)l=c[s],t.remove(l);t==this.rootGraph&&this.setRootGraph(null);var u=this.graphs.indexOf(t);this.graphs.splice(u,1),t.parent=null}else if(e instanceof i){if(a=e,a==null)throw`Edge is null!`;if(!a.isInterGraph)throw`Not an inter-graph edge!`;if(!(a.source!=null&&a.target!=null))throw`Source and/or target is null!`;if(!(a.source.edges.indexOf(a)!=-1&&a.target.edges.indexOf(a)!=-1))throw`Source and/or target doesn't know this edge!`;var u=a.source.edges.indexOf(a);if(a.source.edges.splice(u,1),u=a.target.edges.indexOf(a),a.target.edges.splice(u,1),!(a.source.owner!=null&&a.source.owner.getGraphManager()!=null))throw`Edge owner graph or owner graph manager is null!`;if(a.source.owner.getGraphManager().edges.indexOf(a)==-1)throw`Not in owner graph manager's edge list!`;var u=a.source.owner.getGraphManager().edges.indexOf(a);a.source.owner.getGraphManager().edges.splice(u,1)}},a.prototype.updateBounds=function(){this.rootGraph.updateBounds(!0)},a.prototype.getGraphs=function(){return this.graphs},a.prototype.getAllNodes=function(){if(this.allNodes==null){for(var e=[],t=this.getGraphs(),n=t.length,r=0;r<n;r++)e=e.concat(t[r].getNodes());this.allNodes=e}return this.allNodes},a.prototype.resetAllNodes=function(){this.allNodes=null},a.prototype.resetAllEdges=function(){this.allEdges=null},a.prototype.resetAllNodesToApplyGravitation=function(){this.allNodesToApplyGravitation=null},a.prototype.getAllEdges=function(){if(this.allEdges==null){var e=[],t=this.getGraphs();t.length;for(var n=0;n<t.length;n++)e=e.concat(t[n].getEdges());e=e.concat(this.edges),this.allEdges=e}return this.allEdges},a.prototype.getAllNodesToApplyGravitation=function(){return this.allNodesToApplyGravitation},a.prototype.setAllNodesToApplyGravitation=function(e){if(this.allNodesToApplyGravitation!=null)throw`assert failed`;this.allNodesToApplyGravitation=e},a.prototype.getRoot=function(){return this.rootGraph},a.prototype.setRootGraph=function(e){if(e.getGraphManager()!=this)throw`Root not in this graph mgr!`;this.rootGraph=e,e.parent??=this.layout.newNode(`Root node`)},a.prototype.getLayout=function(){return this.layout},a.prototype.isOneAncestorOfOther=function(e,t){if(!(e!=null&&t!=null))throw`assert failed`;if(e==t)return!0;var n=e.getOwner(),r;do{if(r=n.getParent(),r==null)break;if(r==t)return!0;if(n=r.getOwner(),n==null)break}while(!0);n=t.getOwner();do{if(r=n.getParent(),r==null)break;if(r==e)return!0;if(n=r.getOwner(),n==null)break}while(!0);return!1},a.prototype.calcLowestCommonAncestors=function(){for(var e,t,n,r,i,a=this.getAllEdges(),o=a.length,s=0;s<o;s++){if(e=a[s],t=e.source,n=e.target,e.lca=null,e.sourceInLca=t,e.targetInLca=n,t==n){e.lca=t.getOwner();continue}for(r=t.getOwner();e.lca==null;){for(e.targetInLca=n,i=n.getOwner();e.lca==null;){if(i==r){e.lca=i;break}if(i==this.rootGraph)break;if(e.lca!=null)throw`assert failed`;e.targetInLca=i.getParent(),i=e.targetInLca.getOwner()}if(r==this.rootGraph)break;e.lca??(e.sourceInLca=r.getParent(),r=e.sourceInLca.getOwner())}if(e.lca==null)throw`assert failed`}},a.prototype.calcLowestCommonAncestor=function(e,t){if(e==t)return e.getOwner();var n=e.getOwner();do{if(n==null)break;var r=t.getOwner();do{if(r==null)break;if(r==n)return r;r=r.getParent().getOwner()}while(!0);n=n.getParent().getOwner()}while(!0);return n},a.prototype.calcInclusionTreeDepths=function(e,t){e==null&&t==null&&(e=this.rootGraph,t=1);for(var n,r=e.getNodes(),i=r.length,a=0;a<i;a++)n=r[a],n.inclusionTreeDepth=t,n.child!=null&&this.calcInclusionTreeDepths(n.child,t+1)},a.prototype.includesInvalidEdge=function(){for(var e,t=this.edges.length,n=0;n<t;n++)if(e=this.edges[n],this.isOneAncestorOfOther(e.source,e.target))return!0;return!1},e.exports=a}),(function(e,t,n){var r=n(0);function i(){}for(var a in r)i[a]=r[a];i.MAX_ITERATIONS=2500,i.DEFAULT_EDGE_LENGTH=50,i.DEFAULT_SPRING_STRENGTH=.45,i.DEFAULT_REPULSION_STRENGTH=4500,i.DEFAULT_GRAVITY_STRENGTH=.4,i.DEFAULT_COMPOUND_GRAVITY_STRENGTH=1,i.DEFAULT_GRAVITY_RANGE_FACTOR=3.8,i.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=1.5,i.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION=!0,i.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION=!0,i.DEFAULT_COOLING_FACTOR_INCREMENTAL=.3,i.COOLING_ADAPTATION_FACTOR=.33,i.ADAPTATION_LOWER_NODE_LIMIT=1e3,i.ADAPTATION_UPPER_NODE_LIMIT=5e3,i.MAX_NODE_DISPLACEMENT_INCREMENTAL=100,i.MAX_NODE_DISPLACEMENT=i.MAX_NODE_DISPLACEMENT_INCREMENTAL*3,i.MIN_REPULSION_DIST=i.DEFAULT_EDGE_LENGTH/10,i.CONVERGENCE_CHECK_PERIOD=100,i.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=.1,i.MIN_EDGE_LENGTH=1,i.GRID_CALCULATION_CHECK_PERIOD=10,e.exports=i}),(function(e,t,n){var r=n(12);function i(){}i.calcSeparationAmount=function(e,t,n,r){if(!e.intersects(t))throw`assert failed`;var i=[,,];this.decideDirectionsForOverlappingNodes(e,t,i),n[0]=Math.min(e.getRight(),t.getRight())-Math.max(e.x,t.x),n[1]=Math.min(e.getBottom(),t.getBottom())-Math.max(e.y,t.y),e.getX()<=t.getX()&&e.getRight()>=t.getRight()?n[0]+=Math.min(t.getX()-e.getX(),e.getRight()-t.getRight()):t.getX()<=e.getX()&&t.getRight()>=e.getRight()&&(n[0]+=Math.min(e.getX()-t.getX(),t.getRight()-e.getRight())),e.getY()<=t.getY()&&e.getBottom()>=t.getBottom()?n[1]+=Math.min(t.getY()-e.getY(),e.getBottom()-t.getBottom()):t.getY()<=e.getY()&&t.getBottom()>=e.getBottom()&&(n[1]+=Math.min(e.getY()-t.getY(),t.getBottom()-e.getBottom()));var a=Math.abs((t.getCenterY()-e.getCenterY())/(t.getCenterX()-e.getCenterX()));t.getCenterY()===e.getCenterY()&&t.getCenterX()===e.getCenterX()&&(a=1);var o=a*n[0],s=n[1]/a;n[0]<s?s=n[0]:o=n[1],n[0]=-1*i[0]*(s/2+r),n[1]=-1*i[1]*(o/2+r)},i.decideDirectionsForOverlappingNodes=function(e,t,n){e.getCenterX()<t.getCenterX()?n[0]=-1:n[0]=1,e.getCenterY()<t.getCenterY()?n[1]=-1:n[1]=1},i.getIntersection2=function(e,t,n){var r=e.getCenterX(),i=e.getCenterY(),a=t.getCenterX(),o=t.getCenterY();if(e.intersects(t))return n[0]=r,n[1]=i,n[2]=a,n[3]=o,!0;var s=e.getX(),c=e.getY(),l=e.getRight(),u=e.getX(),d=e.getBottom(),f=e.getRight(),p=e.getWidthHalf(),m=e.getHeightHalf(),h=t.getX(),g=t.getY(),_=t.getRight(),v=t.getX(),y=t.getBottom(),b=t.getRight(),x=t.getWidthHalf(),S=t.getHeightHalf(),C=!1,w=!1;if(r===a){if(i>o)return n[0]=r,n[1]=c,n[2]=a,n[3]=y,!1;if(i<o)return n[0]=r,n[1]=d,n[2]=a,n[3]=g,!1}else if(i===o){if(r>a)return n[0]=s,n[1]=i,n[2]=_,n[3]=o,!1;if(r<a)return n[0]=l,n[1]=i,n[2]=h,n[3]=o,!1}else{var T=e.height/e.width,E=t.height/t.width,D=(o-i)/(a-r),O=void 0,k=void 0,A=void 0,j=void 0,M=void 0,N=void 0;if(-T===D?r>a?(n[0]=u,n[1]=d,C=!0):(n[0]=l,n[1]=c,C=!0):T===D&&(r>a?(n[0]=s,n[1]=c,C=!0):(n[0]=f,n[1]=d,C=!0)),-E===D?a>r?(n[2]=v,n[3]=y,w=!0):(n[2]=_,n[3]=g,w=!0):E===D&&(a>r?(n[2]=h,n[3]=g,w=!0):(n[2]=b,n[3]=y,w=!0)),C&&w)return!1;if(r>a?i>o?(O=this.getCardinalDirection(T,D,4),k=this.getCardinalDirection(E,D,2)):(O=this.getCardinalDirection(-T,D,3),k=this.getCardinalDirection(-E,D,1)):i>o?(O=this.getCardinalDirection(-T,D,1),k=this.getCardinalDirection(-E,D,3)):(O=this.getCardinalDirection(T,D,2),k=this.getCardinalDirection(E,D,4)),!C)switch(O){case 1:j=c,A=r+-m/D,n[0]=A,n[1]=j;break;case 2:A=f,j=i+p*D,n[0]=A,n[1]=j;break;case 3:j=d,A=r+m/D,n[0]=A,n[1]=j;break;case 4:A=u,j=i+-p*D,n[0]=A,n[1]=j;break}if(!w)switch(k){case 1:N=g,M=a+-S/D,n[2]=M,n[3]=N;break;case 2:M=b,N=o+x*D,n[2]=M,n[3]=N;break;case 3:N=y,M=a+S/D,n[2]=M,n[3]=N;break;case 4:M=v,N=o+-x*D,n[2]=M,n[3]=N;break}}return!1},i.getCardinalDirection=function(e,t,n){return e>t?n:1+n%4},i.getIntersection=function(e,t,n,i){if(i==null)return this.getIntersection2(e,t,n);var a=e.x,o=e.y,s=t.x,c=t.y,l=n.x,u=n.y,d=i.x,f=i.y,p=void 0,m=void 0,h=void 0,g=void 0,_=void 0,v=void 0,y=void 0,b=void 0,x=void 0;return h=c-o,_=a-s,y=s*o-a*c,g=f-u,v=l-d,b=d*u-l*f,x=h*v-g*_,x===0?null:(p=(_*b-v*y)/x,m=(g*y-h*b)/x,new r(p,m))},i.angleOfVector=function(e,t,n,r){var i=void 0;return e===n?i=r<t?this.ONE_AND_HALF_PI:this.HALF_PI:(i=Math.atan((r-t)/(n-e)),n<e?i+=Math.PI:r<t&&(i+=this.TWO_PI)),i},i.doIntersect=function(e,t,n,r){var i=e.x,a=e.y,o=t.x,s=t.y,c=n.x,l=n.y,u=r.x,d=r.y,f=(o-i)*(d-l)-(u-c)*(s-a);if(f===0)return!1;var p=((d-l)*(u-i)+(c-u)*(d-a))/f,m=((a-s)*(u-i)+(o-i)*(d-a))/f;return 0<p&&p<1&&0<m&&m<1},i.HALF_PI=.5*Math.PI,i.ONE_AND_HALF_PI=1.5*Math.PI,i.TWO_PI=2*Math.PI,i.THREE_PI=3*Math.PI,e.exports=i}),(function(e,t,n){function r(){}r.sign=function(e){return e>0?1:e<0?-1:0},r.floor=function(e){return e<0?Math.ceil(e):Math.floor(e)},r.ceil=function(e){return e<0?Math.floor(e):Math.ceil(e)},e.exports=r}),(function(e,t,n){function r(){}r.MAX_VALUE=2147483647,r.MIN_VALUE=-2147483648,e.exports=r}),(function(e,t,n){var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function i(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}var a=function(e){return{value:e,next:null,prev:null}},o=function(e,t,n,r){return e===null?r.head=t:e.next=t,n===null?r.tail=t:n.prev=t,t.prev=e,t.next=n,r.length++,t},s=function(e,t){var n=e.prev,r=e.next;return n===null?t.head=r:n.next=r,r===null?t.tail=n:r.prev=n,e.prev=e.next=null,t.length--,e};e.exports=function(){function e(t){var n=this;i(this,e),this.length=0,this.head=null,this.tail=null,t?.forEach(function(e){return n.push(e)})}return r(e,[{key:`size`,value:function(){return this.length}},{key:`insertBefore`,value:function(e,t){return o(t.prev,a(e),t,this)}},{key:`insertAfter`,value:function(e,t){return o(t,a(e),t.next,this)}},{key:`insertNodeBefore`,value:function(e,t){return o(t.prev,e,t,this)}},{key:`insertNodeAfter`,value:function(e,t){return o(t,e,t.next,this)}},{key:`push`,value:function(e){return o(this.tail,a(e),null,this)}},{key:`unshift`,value:function(e){return o(null,a(e),this.head,this)}},{key:`remove`,value:function(e){return s(e,this)}},{key:`pop`,value:function(){return s(this.tail,this).value}},{key:`popNode`,value:function(){return s(this.tail,this)}},{key:`shift`,value:function(){return s(this.head,this).value}},{key:`shiftNode`,value:function(){return s(this.head,this)}},{key:`get_object_at`,value:function(e){if(e<=this.length()){for(var t=1,n=this.head;t<e;)n=n.next,t++;return n.value}}},{key:`set_object_at`,value:function(e,t){if(e<=this.length()){for(var n=1,r=this.head;n<e;)r=r.next,n++;r.value=t}}}]),e}()}),(function(e,t,n){function r(e,t,n){this.x=null,this.y=null,e==null&&t==null&&n==null?(this.x=0,this.y=0):typeof e==`number`&&typeof t==`number`&&n==null?(this.x=e,this.y=t):e.constructor.name==`Point`&&t==null&&n==null&&(n=e,this.x=n.x,this.y=n.y)}r.prototype.getX=function(){return this.x},r.prototype.getY=function(){return this.y},r.prototype.getLocation=function(){return new r(this.x,this.y)},r.prototype.setLocation=function(e,t,n){e.constructor.name==`Point`&&t==null&&n==null?(n=e,this.setLocation(n.x,n.y)):typeof e==`number`&&typeof t==`number`&&n==null&&(parseInt(e)==e&&parseInt(t)==t?this.move(e,t):(this.x=Math.floor(e+.5),this.y=Math.floor(t+.5)))},r.prototype.move=function(e,t){this.x=e,this.y=t},r.prototype.translate=function(e,t){this.x+=e,this.y+=t},r.prototype.equals=function(e){if(e.constructor.name==`Point`){var t=e;return this.x==t.x&&this.y==t.y}return this==e},r.prototype.toString=function(){return new r().constructor.name+`[x=`+this.x+`,y=`+this.y+`]`},e.exports=r}),(function(e,t,n){function r(e,t,n,r){this.x=0,this.y=0,this.width=0,this.height=0,e!=null&&t!=null&&n!=null&&r!=null&&(this.x=e,this.y=t,this.width=n,this.height=r)}r.prototype.getX=function(){return this.x},r.prototype.setX=function(e){this.x=e},r.prototype.getY=function(){return this.y},r.prototype.setY=function(e){this.y=e},r.prototype.getWidth=function(){return this.width},r.prototype.setWidth=function(e){this.width=e},r.prototype.getHeight=function(){return this.height},r.prototype.setHeight=function(e){this.height=e},r.prototype.getRight=function(){return this.x+this.width},r.prototype.getBottom=function(){return this.y+this.height},r.prototype.intersects=function(e){return!(this.getRight()<e.x||this.getBottom()<e.y||e.getRight()<this.x||e.getBottom()<this.y)},r.prototype.getCenterX=function(){return this.x+this.width/2},r.prototype.getMinX=function(){return this.getX()},r.prototype.getMaxX=function(){return this.getX()+this.width},r.prototype.getCenterY=function(){return this.y+this.height/2},r.prototype.getMinY=function(){return this.getY()},r.prototype.getMaxY=function(){return this.getY()+this.height},r.prototype.getWidthHalf=function(){return this.width/2},r.prototype.getHeightHalf=function(){return this.height/2},e.exports=r}),(function(e,t,n){var r=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e};function i(){}i.lastID=0,i.createID=function(e){return i.isPrimitive(e)?e:e.uniqueID==null?(e.uniqueID=i.getString(),i.lastID++,e.uniqueID):e.uniqueID},i.getString=function(e){return e??=i.lastID,`Object#`+e},i.isPrimitive=function(e){var t=e===void 0?`undefined`:r(e);return e==null||t!=`object`&&t!=`function`},e.exports=i}),(function(e,t,n){function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}else return Array.from(e)}var i=n(0),a=n(6),o=n(3),s=n(1),c=n(5),l=n(4),u=n(17),d=n(27);function f(e){d.call(this),this.layoutQuality=i.QUALITY,this.createBendsAsNeeded=i.DEFAULT_CREATE_BENDS_AS_NEEDED,this.incremental=i.DEFAULT_INCREMENTAL,this.animationOnLayout=i.DEFAULT_ANIMATION_ON_LAYOUT,this.animationDuringLayout=i.DEFAULT_ANIMATION_DURING_LAYOUT,this.animationPeriod=i.DEFAULT_ANIMATION_PERIOD,this.uniformLeafNodeSizes=i.DEFAULT_UNIFORM_LEAF_NODE_SIZES,this.edgeToDummyNodes=new Map,this.graphManager=new a(this),this.isLayoutFinished=!1,this.isSubLayout=!1,this.isRemoteUse=!1,e!=null&&(this.isRemoteUse=e)}f.RANDOM_SEED=1,f.prototype=Object.create(d.prototype),f.prototype.getGraphManager=function(){return this.graphManager},f.prototype.getAllNodes=function(){return this.graphManager.getAllNodes()},f.prototype.getAllEdges=function(){return this.graphManager.getAllEdges()},f.prototype.getAllNodesToApplyGravitation=function(){return this.graphManager.getAllNodesToApplyGravitation()},f.prototype.newGraphManager=function(){var e=new a(this);return this.graphManager=e,e},f.prototype.newGraph=function(e){return new c(null,this.graphManager,e)},f.prototype.newNode=function(e){return new o(this.graphManager,e)},f.prototype.newEdge=function(e){return new s(null,null,e)},f.prototype.checkLayoutSuccess=function(){return this.graphManager.getRoot()==null||this.graphManager.getRoot().getNodes().length==0||this.graphManager.includesInvalidEdge()},f.prototype.runLayout=function(){this.isLayoutFinished=!1,this.tilingPreLayout&&this.tilingPreLayout(),this.initParameters();var e=this.checkLayoutSuccess()?!1:this.layout();return i.ANIMATE===`during`?!1:(e&&(this.isSubLayout||this.doPostLayout()),this.tilingPostLayout&&this.tilingPostLayout(),this.isLayoutFinished=!0,e)},f.prototype.doPostLayout=function(){this.incremental||this.transform(),this.update()},f.prototype.update2=function(){if(this.createBendsAsNeeded&&(this.createBendpointsFromDummyNodes(),this.graphManager.resetAllEdges()),!this.isRemoteUse){for(var e=this.graphManager.getAllEdges(),t=0;t<e.length;t++)e[t];for(var n=this.graphManager.getRoot().getNodes(),t=0;t<n.length;t++)n[t];this.update(this.graphManager.getRoot())}},f.prototype.update=function(e){if(e==null)this.update2();else if(e instanceof o){var t=e;if(t.getChild()!=null)for(var n=t.getChild().getNodes(),r=0;r<n.length;r++)update(n[r]);t.vGraphObject!=null&&t.vGraphObject.update(t)}else if(e instanceof s){var i=e;i.vGraphObject!=null&&i.vGraphObject.update(i)}else if(e instanceof c){var a=e;a.vGraphObject!=null&&a.vGraphObject.update(a)}},f.prototype.initParameters=function(){this.isSubLayout||(this.layoutQuality=i.QUALITY,this.animationDuringLayout=i.DEFAULT_ANIMATION_DURING_LAYOUT,this.animationPeriod=i.DEFAULT_ANIMATION_PERIOD,this.animationOnLayout=i.DEFAULT_ANIMATION_ON_LAYOUT,this.incremental=i.DEFAULT_INCREMENTAL,this.createBendsAsNeeded=i.DEFAULT_CREATE_BENDS_AS_NEEDED,this.uniformLeafNodeSizes=i.DEFAULT_UNIFORM_LEAF_NODE_SIZES),this.animationDuringLayout&&(this.animationOnLayout=!1)},f.prototype.transform=function(e){if(e==null)this.transform(new l(0,0));else{var t=new u,n=this.graphManager.getRoot().updateLeftTop();if(n!=null){t.setWorldOrgX(e.x),t.setWorldOrgY(e.y),t.setDeviceOrgX(n.x),t.setDeviceOrgY(n.y);for(var r=this.getAllNodes(),i,a=0;a<r.length;a++)i=r[a],i.transform(t)}}},f.prototype.positionNodesRandomly=function(e){if(e==null)this.positionNodesRandomly(this.getGraphManager().getRoot()),this.getGraphManager().getRoot().updateBounds(!0);else for(var t,n,r=e.getNodes(),i=0;i<r.length;i++)t=r[i],n=t.getChild(),n==null||n.getNodes().length==0?t.scatter():(this.positionNodesRandomly(n),t.updateBounds())},f.prototype.getFlatForest=function(){for(var e=[],t=!0,n=this.graphManager.getRoot().getNodes(),i=!0,a=0;a<n.length;a++)n[a].getChild()!=null&&(i=!1);if(!i)return e;var o=new Set,s=[],c=new Map,l=[];for(l=l.concat(n);l.length>0&&t;){for(s.push(l[0]);s.length>0&&t;){var u=s[0];s.splice(0,1),o.add(u);for(var d=u.getEdges(),a=0;a<d.length;a++){var f=d[a].getOtherEnd(u);if(c.get(u)!=f)if(!o.has(f))s.push(f),c.set(f,u);else{t=!1;break}}}if(!t)e=[];else{var p=[].concat(r(o));e.push(p);for(var a=0;a<p.length;a++){var m=p[a],h=l.indexOf(m);h>-1&&l.splice(h,1)}o=new Set,c=new Map}}return e},f.prototype.createDummyNodesForBendpoints=function(e){for(var t=[],n=e.source,r=this.graphManager.calcLowestCommonAncestor(e.source,e.target),i=0;i<e.bendpoints.length;i++){var a=this.newNode(null);a.setRect(new Point(0,0),new Dimension(1,1)),r.add(a);var o=this.newEdge(null);this.graphManager.add(o,n,a),t.add(a),n=a}var o=this.newEdge(null);return this.graphManager.add(o,n,e.target),this.edgeToDummyNodes.set(e,t),e.isInterGraph()?this.graphManager.remove(e):r.remove(e),t},f.prototype.createBendpointsFromDummyNodes=function(){var e=[];e=e.concat(this.graphManager.getAllEdges()),e=[].concat(r(this.edgeToDummyNodes.keys()),e);for(var t=0;t<e.length;t++){var n=e[t];if(n.bendpoints.length>0){for(var i=this.edgeToDummyNodes.get(n),a=0;a<i.length;a++){var o=i[a],s=new l(o.getCenterX(),o.getCenterY()),c=n.bendpoints.get(a);c.x=s.x,c.y=s.y,o.getOwner().remove(o)}this.graphManager.add(n,n.source,n.target)}}},f.transform=function(e,t,n,r){if(n!=null&&r!=null){var i=t;if(e<=50){var a=t/n;i-=(t-a)/50*(50-e)}else{var o=t*r;i+=(o-t)/50*(e-50)}return i}else{var s,c;return e<=50?(s=9*t/500,c=t/10):(s=9*t/50,c=-8*t),s*e+c}},f.findCenterOfTree=function(e){var t=[];t=t.concat(e);var n=[],r=new Map,i=!1,a=null;(t.length==1||t.length==2)&&(i=!0,a=t[0]);for(var o=0;o<t.length;o++){var s=t[o],c=s.getNeighborsList().size;r.set(s,s.getNeighborsList().size),c==1&&n.push(s)}var l=[];for(l=l.concat(n);!i;){var u=[];u=u.concat(l),l=[];for(var o=0;o<t.length;o++){var s=t[o],d=t.indexOf(s);d>=0&&t.splice(d,1),s.getNeighborsList().forEach(function(e){if(n.indexOf(e)<0){var t=r.get(e)-1;t==1&&l.push(e),r.set(e,t)}})}n=n.concat(l),(t.length==1||t.length==2)&&(i=!0,a=t[0])}return a},f.prototype.setGraphManager=function(e){this.graphManager=e},e.exports=f}),(function(e,t,n){function r(){}r.seed=1,r.x=0,r.nextDouble=function(){return r.x=Math.sin(r.seed++)*1e4,r.x-Math.floor(r.x)},e.exports=r}),(function(e,t,n){var r=n(4);function i(e,t){this.lworldOrgX=0,this.lworldOrgY=0,this.ldeviceOrgX=0,this.ldeviceOrgY=0,this.lworldExtX=1,this.lworldExtY=1,this.ldeviceExtX=1,this.ldeviceExtY=1}i.prototype.getWorldOrgX=function(){return this.lworldOrgX},i.prototype.setWorldOrgX=function(e){this.lworldOrgX=e},i.prototype.getWorldOrgY=function(){return this.lworldOrgY},i.prototype.setWorldOrgY=function(e){this.lworldOrgY=e},i.prototype.getWorldExtX=function(){return this.lworldExtX},i.prototype.setWorldExtX=function(e){this.lworldExtX=e},i.prototype.getWorldExtY=function(){return this.lworldExtY},i.prototype.setWorldExtY=function(e){this.lworldExtY=e},i.prototype.getDeviceOrgX=function(){return this.ldeviceOrgX},i.prototype.setDeviceOrgX=function(e){this.ldeviceOrgX=e},i.prototype.getDeviceOrgY=function(){return this.ldeviceOrgY},i.prototype.setDeviceOrgY=function(e){this.ldeviceOrgY=e},i.prototype.getDeviceExtX=function(){return this.ldeviceExtX},i.prototype.setDeviceExtX=function(e){this.ldeviceExtX=e},i.prototype.getDeviceExtY=function(){return this.ldeviceExtY},i.prototype.setDeviceExtY=function(e){this.ldeviceExtY=e},i.prototype.transformX=function(e){var t=0,n=this.lworldExtX;return n!=0&&(t=this.ldeviceOrgX+(e-this.lworldOrgX)*this.ldeviceExtX/n),t},i.prototype.transformY=function(e){var t=0,n=this.lworldExtY;return n!=0&&(t=this.ldeviceOrgY+(e-this.lworldOrgY)*this.ldeviceExtY/n),t},i.prototype.inverseTransformX=function(e){var t=0,n=this.ldeviceExtX;return n!=0&&(t=this.lworldOrgX+(e-this.ldeviceOrgX)*this.lworldExtX/n),t},i.prototype.inverseTransformY=function(e){var t=0,n=this.ldeviceExtY;return n!=0&&(t=this.lworldOrgY+(e-this.ldeviceOrgY)*this.lworldExtY/n),t},i.prototype.inverseTransformPoint=function(e){return new r(this.inverseTransformX(e.x),this.inverseTransformY(e.y))},e.exports=i}),(function(e,t,n){function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}else return Array.from(e)}var i=n(15),a=n(7),o=n(0),s=n(8),c=n(9);function l(){i.call(this),this.useSmartIdealEdgeLengthCalculation=a.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION,this.idealEdgeLength=a.DEFAULT_EDGE_LENGTH,this.springConstant=a.DEFAULT_SPRING_STRENGTH,this.repulsionConstant=a.DEFAULT_REPULSION_STRENGTH,this.gravityConstant=a.DEFAULT_GRAVITY_STRENGTH,this.compoundGravityConstant=a.DEFAULT_COMPOUND_GRAVITY_STRENGTH,this.gravityRangeFactor=a.DEFAULT_GRAVITY_RANGE_FACTOR,this.compoundGravityRangeFactor=a.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR,this.displacementThresholdPerNode=3*a.DEFAULT_EDGE_LENGTH/100,this.coolingFactor=a.DEFAULT_COOLING_FACTOR_INCREMENTAL,this.initialCoolingFactor=a.DEFAULT_COOLING_FACTOR_INCREMENTAL,this.totalDisplacement=0,this.oldTotalDisplacement=0,this.maxIterations=a.MAX_ITERATIONS}for(var u in l.prototype=Object.create(i.prototype),i)l[u]=i[u];l.prototype.initParameters=function(){i.prototype.initParameters.call(this,arguments),this.totalIterations=0,this.notAnimatedIterations=0,this.useFRGridVariant=a.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION,this.grid=[]},l.prototype.calcIdealEdgeLengths=function(){for(var e,t,n,r,i,s,c=this.getGraphManager().getAllEdges(),l=0;l<c.length;l++)e=c[l],e.idealLength=this.idealEdgeLength,e.isInterGraph&&(n=e.getSource(),r=e.getTarget(),i=e.getSourceInLca().getEstimatedSize(),s=e.getTargetInLca().getEstimatedSize(),this.useSmartIdealEdgeLengthCalculation&&(e.idealLength+=i+s-2*o.SIMPLE_NODE_SIZE),t=e.getLca().getInclusionTreeDepth(),e.idealLength+=a.DEFAULT_EDGE_LENGTH*a.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR*(n.getInclusionTreeDepth()+r.getInclusionTreeDepth()-2*t))},l.prototype.initSpringEmbedder=function(){var e=this.getAllNodes().length;this.incremental?(e>a.ADAPTATION_LOWER_NODE_LIMIT&&(this.coolingFactor=Math.max(this.coolingFactor*a.COOLING_ADAPTATION_FACTOR,this.coolingFactor-(e-a.ADAPTATION_LOWER_NODE_LIMIT)/(a.ADAPTATION_UPPER_NODE_LIMIT-a.ADAPTATION_LOWER_NODE_LIMIT)*this.coolingFactor*(1-a.COOLING_ADAPTATION_FACTOR))),this.maxNodeDisplacement=a.MAX_NODE_DISPLACEMENT_INCREMENTAL):(e>a.ADAPTATION_LOWER_NODE_LIMIT?this.coolingFactor=Math.max(a.COOLING_ADAPTATION_FACTOR,1-(e-a.ADAPTATION_LOWER_NODE_LIMIT)/(a.ADAPTATION_UPPER_NODE_LIMIT-a.ADAPTATION_LOWER_NODE_LIMIT)*(1-a.COOLING_ADAPTATION_FACTOR)):this.coolingFactor=1,this.initialCoolingFactor=this.coolingFactor,this.maxNodeDisplacement=a.MAX_NODE_DISPLACEMENT),this.maxIterations=Math.max(this.getAllNodes().length*5,this.maxIterations),this.totalDisplacementThreshold=this.displacementThresholdPerNode*this.getAllNodes().length,this.repulsionRange=this.calcRepulsionRange()},l.prototype.calcSpringForces=function(){for(var e=this.getAllEdges(),t,n=0;n<e.length;n++)t=e[n],this.calcSpringForce(t,t.idealLength)},l.prototype.calcRepulsionForces=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n,r,i,o,s=this.getAllNodes(),c;if(this.useFRGridVariant)for(this.totalIterations%a.GRID_CALCULATION_CHECK_PERIOD==1&&e&&this.updateGrid(),c=new Set,n=0;n<s.length;n++)i=s[n],this.calculateRepulsionForceOfANode(i,c,e,t),c.add(i);else for(n=0;n<s.length;n++)for(i=s[n],r=n+1;r<s.length;r++)o=s[r],i.getOwner()==o.getOwner()&&this.calcRepulsionForce(i,o)},l.prototype.calcGravitationalForces=function(){for(var e,t=this.getAllNodesToApplyGravitation(),n=0;n<t.length;n++)e=t[n],this.calcGravitationalForce(e)},l.prototype.moveNodes=function(){for(var e=this.getAllNodes(),t,n=0;n<e.length;n++)t=e[n],t.move()},l.prototype.calcSpringForce=function(e,t){var n=e.getSource(),r=e.getTarget(),i,a,o,s;if(this.uniformLeafNodeSizes&&n.getChild()==null&&r.getChild()==null)e.updateLengthSimple();else if(e.updateLength(),e.isOverlapingSourceAndTarget)return;i=e.getLength(),i!=0&&(a=this.springConstant*(i-t),o=a*(e.lengthX/i),s=a*(e.lengthY/i),n.springForceX+=o,n.springForceY+=s,r.springForceX-=o,r.springForceY-=s)},l.prototype.calcRepulsionForce=function(e,t){var n=e.getRect(),r=t.getRect(),i=[,,],o=[,,,,],l,u,d,f,p,m,h;if(n.intersects(r)){s.calcSeparationAmount(n,r,i,a.DEFAULT_EDGE_LENGTH/2),m=2*i[0],h=2*i[1];var g=e.noOfChildren*t.noOfChildren/(e.noOfChildren+t.noOfChildren);e.repulsionForceX-=g*m,e.repulsionForceY-=g*h,t.repulsionForceX+=g*m,t.repulsionForceY+=g*h}else this.uniformLeafNodeSizes&&e.getChild()==null&&t.getChild()==null?(l=r.getCenterX()-n.getCenterX(),u=r.getCenterY()-n.getCenterY()):(s.getIntersection(n,r,o),l=o[2]-o[0],u=o[3]-o[1]),Math.abs(l)<a.MIN_REPULSION_DIST&&(l=c.sign(l)*a.MIN_REPULSION_DIST),Math.abs(u)<a.MIN_REPULSION_DIST&&(u=c.sign(u)*a.MIN_REPULSION_DIST),d=l*l+u*u,f=Math.sqrt(d),p=this.repulsionConstant*e.noOfChildren*t.noOfChildren/d,m=p*l/f,h=p*u/f,e.repulsionForceX-=m,e.repulsionForceY-=h,t.repulsionForceX+=m,t.repulsionForceY+=h},l.prototype.calcGravitationalForce=function(e){var t=e.getOwner(),n=(t.getRight()+t.getLeft())/2,r=(t.getTop()+t.getBottom())/2,i=e.getCenterX()-n,a=e.getCenterY()-r,o=Math.abs(i)+e.getWidth()/2,s=Math.abs(a)+e.getHeight()/2,c;e.getOwner()==this.graphManager.getRoot()?(c=t.getEstimatedSize()*this.gravityRangeFactor,(o>c||s>c)&&(e.gravitationForceX=-this.gravityConstant*i,e.gravitationForceY=-this.gravityConstant*a)):(c=t.getEstimatedSize()*this.compoundGravityRangeFactor,(o>c||s>c)&&(e.gravitationForceX=-this.gravityConstant*i*this.compoundGravityConstant,e.gravitationForceY=-this.gravityConstant*a*this.compoundGravityConstant))},l.prototype.isConverged=function(){var e,t=!1;return this.totalIterations>this.maxIterations/3&&(t=Math.abs(this.totalDisplacement-this.oldTotalDisplacement)<2),e=this.totalDisplacement<this.totalDisplacementThreshold,this.oldTotalDisplacement=this.totalDisplacement,e||t},l.prototype.animate=function(){this.animationDuringLayout&&!this.isSubLayout&&(this.notAnimatedIterations==this.animationPeriod?(this.update(),this.notAnimatedIterations=0):this.notAnimatedIterations++)},l.prototype.calcNoOfChildrenForAllNodes=function(){for(var e,t=this.graphManager.getAllNodes(),n=0;n<t.length;n++)e=t[n],e.noOfChildren=e.getNoOfChildren()},l.prototype.calcGrid=function(e){var t=0,n=0;t=parseInt(Math.ceil((e.getRight()-e.getLeft())/this.repulsionRange)),n=parseInt(Math.ceil((e.getBottom()-e.getTop())/this.repulsionRange));for(var r=Array(t),i=0;i<t;i++)r[i]=Array(n);for(var i=0;i<t;i++)for(var a=0;a<n;a++)r[i][a]=[];return r},l.prototype.addNodeToGrid=function(e,t,n){var r=0,i=0,a=0,o=0;r=parseInt(Math.floor((e.getRect().x-t)/this.repulsionRange)),i=parseInt(Math.floor((e.getRect().width+e.getRect().x-t)/this.repulsionRange)),a=parseInt(Math.floor((e.getRect().y-n)/this.repulsionRange)),o=parseInt(Math.floor((e.getRect().height+e.getRect().y-n)/this.repulsionRange));for(var s=r;s<=i;s++)for(var c=a;c<=o;c++)this.grid[s][c].push(e),e.setGridCoordinates(r,i,a,o)},l.prototype.updateGrid=function(){var e,t,n=this.getAllNodes();for(this.grid=this.calcGrid(this.graphManager.getRoot()),e=0;e<n.length;e++)t=n[e],this.addNodeToGrid(t,this.graphManager.getRoot().getLeft(),this.graphManager.getRoot().getTop())},l.prototype.calculateRepulsionForceOfANode=function(e,t,n,i){if(this.totalIterations%a.GRID_CALCULATION_CHECK_PERIOD==1&&n||i){var o=new Set;e.surrounding=[];for(var s,c=this.grid,l=e.startX-1;l<e.finishX+2;l++)for(var u=e.startY-1;u<e.finishY+2;u++)if(!(l<0||u<0||l>=c.length||u>=c[0].length)){for(var d=0;d<c[l][u].length;d++)if(s=c[l][u][d],!(e.getOwner()!=s.getOwner()||e==s)&&!t.has(s)&&!o.has(s)){var f=Math.abs(e.getCenterX()-s.getCenterX())-(e.getWidth()/2+s.getWidth()/2),p=Math.abs(e.getCenterY()-s.getCenterY())-(e.getHeight()/2+s.getHeight()/2);f<=this.repulsionRange&&p<=this.repulsionRange&&o.add(s)}}e.surrounding=[].concat(r(o))}for(l=0;l<e.surrounding.length;l++)this.calcRepulsionForce(e,e.surrounding[l])},l.prototype.calcRepulsionRange=function(){return 0},e.exports=l}),(function(e,t,n){var r=n(1),i=n(7);function a(e,t,n){r.call(this,e,t,n),this.idealLength=i.DEFAULT_EDGE_LENGTH}for(var o in a.prototype=Object.create(r.prototype),r)a[o]=r[o];e.exports=a}),(function(e,t,n){var r=n(3);function i(e,t,n,i){r.call(this,e,t,n,i),this.springForceX=0,this.springForceY=0,this.repulsionForceX=0,this.repulsionForceY=0,this.gravitationForceX=0,this.gravitationForceY=0,this.displacementX=0,this.displacementY=0,this.startX=0,this.finishX=0,this.startY=0,this.finishY=0,this.surrounding=[]}for(var a in i.prototype=Object.create(r.prototype),r)i[a]=r[a];i.prototype.setGridCoordinates=function(e,t,n,r){this.startX=e,this.finishX=t,this.startY=n,this.finishY=r},e.exports=i}),(function(e,t,n){function r(e,t){this.width=0,this.height=0,e!==null&&t!==null&&(this.height=t,this.width=e)}r.prototype.getWidth=function(){return this.width},r.prototype.setWidth=function(e){this.width=e},r.prototype.getHeight=function(){return this.height},r.prototype.setHeight=function(e){this.height=e},e.exports=r}),(function(e,t,n){var r=n(14);function i(){this.map={},this.keys=[]}i.prototype.put=function(e,t){var n=r.createID(e);this.contains(n)||(this.map[n]=t,this.keys.push(e))},i.prototype.contains=function(e){return r.createID(e),this.map[e]!=null},i.prototype.get=function(e){var t=r.createID(e);return this.map[t]},i.prototype.keySet=function(){return this.keys},e.exports=i}),(function(e,t,n){var r=n(14);function i(){this.set={}}i.prototype.add=function(e){var t=r.createID(e);this.contains(t)||(this.set[t]=e)},i.prototype.remove=function(e){delete this.set[r.createID(e)]},i.prototype.clear=function(){this.set={}},i.prototype.contains=function(e){return this.set[r.createID(e)]==e},i.prototype.isEmpty=function(){return this.size()===0},i.prototype.size=function(){return Object.keys(this.set).length},i.prototype.addAllTo=function(e){for(var t=Object.keys(this.set),n=t.length,r=0;r<n;r++)e.push(this.set[t[r]])},i.prototype.size=function(){return Object.keys(this.set).length},i.prototype.addAll=function(e){for(var t=e.length,n=0;n<t;n++){var r=e[n];this.add(r)}},e.exports=i}),(function(e,t,n){var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function i(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}var a=n(11);e.exports=function(){function e(t,n){i(this,e),(n!==null||n!==void 0)&&(this.compareFunction=this._defaultCompareFunction);var r=void 0;r=t instanceof a?t.size():t.length,this._quicksort(t,0,r-1)}return r(e,[{key:`_quicksort`,value:function(e,t,n){if(t<n){var r=this._partition(e,t,n);this._quicksort(e,t,r),this._quicksort(e,r+1,n)}}},{key:`_partition`,value:function(e,t,n){for(var r=this._get(e,t),i=t,a=n;;){for(;this.compareFunction(r,this._get(e,a));)a--;for(;this.compareFunction(this._get(e,i),r);)i++;if(i<a)this._swap(e,i,a),i++,a--;else return a}}},{key:`_get`,value:function(e,t){return e instanceof a?e.get_object_at(t):e[t]}},{key:`_set`,value:function(e,t,n){e instanceof a?e.set_object_at(t,n):e[t]=n}},{key:`_swap`,value:function(e,t,n){var r=this._get(e,t);this._set(e,t,this._get(e,n)),this._set(e,n,r)}},{key:`_defaultCompareFunction`,value:function(e,t){return t>e}}]),e}()}),(function(e,t,n){var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function i(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}e.exports=function(){function e(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:-1,o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1;i(this,e),this.sequence1=t,this.sequence2=n,this.match_score=r,this.mismatch_penalty=a,this.gap_penalty=o,this.iMax=t.length+1,this.jMax=n.length+1,this.grid=Array(this.iMax);for(var s=0;s<this.iMax;s++){this.grid[s]=Array(this.jMax);for(var c=0;c<this.jMax;c++)this.grid[s][c]=0}this.tracebackGrid=Array(this.iMax);for(var l=0;l<this.iMax;l++){this.tracebackGrid[l]=Array(this.jMax);for(var u=0;u<this.jMax;u++)this.tracebackGrid[l][u]=[null,null,null]}this.alignments=[],this.score=-1,this.computeGrids()}return r(e,[{key:`getScore`,value:function(){return this.score}},{key:`getAlignments`,value:function(){return this.alignments}},{key:`computeGrids`,value:function(){for(var e=1;e<this.jMax;e++)this.grid[0][e]=this.grid[0][e-1]+this.gap_penalty,this.tracebackGrid[0][e]=[!1,!1,!0];for(var t=1;t<this.iMax;t++)this.grid[t][0]=this.grid[t-1][0]+this.gap_penalty,this.tracebackGrid[t][0]=[!1,!0,!1];for(var n=1;n<this.iMax;n++)for(var r=1;r<this.jMax;r++){var i=void 0;i=this.sequence1[n-1]===this.sequence2[r-1]?this.grid[n-1][r-1]+this.match_score:this.grid[n-1][r-1]+this.mismatch_penalty;var a=this.grid[n-1][r]+this.gap_penalty,o=this.grid[n][r-1]+this.gap_penalty,s=[i,a,o],c=this.arrayAllMaxIndexes(s);this.grid[n][r]=s[c[0]],this.tracebackGrid[n][r]=[c.includes(0),c.includes(1),c.includes(2)]}this.score=this.grid[this.iMax-1][this.jMax-1]}},{key:`alignmentTraceback`,value:function(){var e=[];for(e.push({pos:[this.sequence1.length,this.sequence2.length],seq1:``,seq2:``});e[0];){var t=e[0],n=this.tracebackGrid[t.pos[0]][t.pos[1]];n[0]&&e.push({pos:[t.pos[0]-1,t.pos[1]-1],seq1:this.sequence1[t.pos[0]-1]+t.seq1,seq2:this.sequence2[t.pos[1]-1]+t.seq2}),n[1]&&e.push({pos:[t.pos[0]-1,t.pos[1]],seq1:this.sequence1[t.pos[0]-1]+t.seq1,seq2:`-`+t.seq2}),n[2]&&e.push({pos:[t.pos[0],t.pos[1]-1],seq1:`-`+t.seq1,seq2:this.sequence2[t.pos[1]-1]+t.seq2}),t.pos[0]===0&&t.pos[1]===0&&this.alignments.push({sequence1:t.seq1,sequence2:t.seq2}),e.shift()}return this.alignments}},{key:`getAllIndexes`,value:function(e,t){for(var n=[],r=-1;(r=e.indexOf(t,r+1))!==-1;)n.push(r);return n}},{key:`arrayAllMaxIndexes`,value:function(e){return this.getAllIndexes(e,Math.max.apply(null,e))}}]),e}()}),(function(e,t,n){var r=function(){};r.FDLayout=n(18),r.FDLayoutConstants=n(7),r.FDLayoutEdge=n(19),r.FDLayoutNode=n(20),r.DimensionD=n(21),r.HashMap=n(22),r.HashSet=n(23),r.IGeometry=n(8),r.IMath=n(9),r.Integer=n(10),r.Point=n(12),r.PointD=n(4),r.RandomSeed=n(16),r.RectangleD=n(13),r.Transform=n(17),r.UniqueIDGeneretor=n(14),r.Quicksort=n(24),r.LinkedList=n(11),r.LGraphObject=n(2),r.LGraph=n(5),r.LEdge=n(1),r.LGraphManager=n(6),r.LNode=n(3),r.Layout=n(15),r.LayoutConstants=n(0),r.NeedlemanWunsch=n(25),e.exports=r}),(function(e,t,n){function r(){this.listeners=[]}var i=r.prototype;i.addListener=function(e,t){this.listeners.push({event:e,callback:t})},i.removeListener=function(e,t){for(var n=this.listeners.length;n>=0;n--){var r=this.listeners[n];r.event===e&&r.callback===t&&this.listeners.splice(n,1)}},i.emit=function(e,t){for(var n=0;n<this.listeners.length;n++){var r=this.listeners[n];e===r.event&&r.callback(t)}},e.exports=r})])})})),s=t(((e,t)=>{(function(n,r){typeof e==`object`&&typeof t==`object`?t.exports=r(o()):typeof define==`function`&&define.amd?define([`layout-base`],r):typeof e==`object`?e.coseBase=r(o()):n.coseBase=r(n.layoutBase)})(e,function(e){return(function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.i=function(e){return e},n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,`a`,t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p=``,n(n.s=7)})([(function(t,n){t.exports=e}),(function(e,t,n){var r=n(0).FDLayoutConstants;function i(){}for(var a in r)i[a]=r[a];i.DEFAULT_USE_MULTI_LEVEL_SCALING=!1,i.DEFAULT_RADIAL_SEPARATION=r.DEFAULT_EDGE_LENGTH,i.DEFAULT_COMPONENT_SEPERATION=60,i.TILE=!0,i.TILING_PADDING_VERTICAL=10,i.TILING_PADDING_HORIZONTAL=10,i.TREE_REDUCTION_ON_INCREMENTAL=!1,e.exports=i}),(function(e,t,n){var r=n(0).FDLayoutEdge;function i(e,t,n){r.call(this,e,t,n)}for(var a in i.prototype=Object.create(r.prototype),r)i[a]=r[a];e.exports=i}),(function(e,t,n){var r=n(0).LGraph;function i(e,t,n){r.call(this,e,t,n)}for(var a in i.prototype=Object.create(r.prototype),r)i[a]=r[a];e.exports=i}),(function(e,t,n){var r=n(0).LGraphManager;function i(e){r.call(this,e)}for(var a in i.prototype=Object.create(r.prototype),r)i[a]=r[a];e.exports=i}),(function(e,t,n){var r=n(0).FDLayoutNode,i=n(0).IMath;function a(e,t,n,i){r.call(this,e,t,n,i)}for(var o in a.prototype=Object.create(r.prototype),r)a[o]=r[o];a.prototype.move=function(){var e=this.graphManager.getLayout();this.displacementX=e.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.noOfChildren,this.displacementY=e.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.noOfChildren,Math.abs(this.displacementX)>e.coolingFactor*e.maxNodeDisplacement&&(this.displacementX=e.coolingFactor*e.maxNodeDisplacement*i.sign(this.displacementX)),Math.abs(this.displacementY)>e.coolingFactor*e.maxNodeDisplacement&&(this.displacementY=e.coolingFactor*e.maxNodeDisplacement*i.sign(this.displacementY)),this.child==null||this.child.getNodes().length==0?this.moveBy(this.displacementX,this.displacementY):this.propogateDisplacementToChildren(this.displacementX,this.displacementY),e.totalDisplacement+=Math.abs(this.displacementX)+Math.abs(this.displacementY),this.springForceX=0,this.springForceY=0,this.repulsionForceX=0,this.repulsionForceY=0,this.gravitationForceX=0,this.gravitationForceY=0,this.displacementX=0,this.displacementY=0},a.prototype.propogateDisplacementToChildren=function(e,t){for(var n=this.getChild().getNodes(),r,i=0;i<n.length;i++)r=n[i],r.getChild()==null?(r.moveBy(e,t),r.displacementX+=e,r.displacementY+=t):r.propogateDisplacementToChildren(e,t)},a.prototype.setPred1=function(e){this.pred1=e},a.prototype.getPred1=function(){return pred1},a.prototype.getPred2=function(){return pred2},a.prototype.setNext=function(e){this.next=e},a.prototype.getNext=function(){return next},a.prototype.setProcessed=function(e){this.processed=e},a.prototype.isProcessed=function(){return processed},e.exports=a}),(function(e,t,n){var r=n(0).FDLayout,i=n(4),a=n(3),o=n(5),s=n(2),c=n(1),l=n(0).FDLayoutConstants,u=n(0).LayoutConstants,d=n(0).Point,f=n(0).PointD,p=n(0).Layout,m=n(0).Integer,h=n(0).IGeometry,g=n(0).LGraph,_=n(0).Transform;function v(){r.call(this),this.toBeTiled={}}for(var y in v.prototype=Object.create(r.prototype),r)v[y]=r[y];v.prototype.newGraphManager=function(){var e=new i(this);return this.graphManager=e,e},v.prototype.newGraph=function(e){return new a(null,this.graphManager,e)},v.prototype.newNode=function(e){return new o(this.graphManager,e)},v.prototype.newEdge=function(e){return new s(null,null,e)},v.prototype.initParameters=function(){r.prototype.initParameters.call(this,arguments),this.isSubLayout||(c.DEFAULT_EDGE_LENGTH<10?this.idealEdgeLength=10:this.idealEdgeLength=c.DEFAULT_EDGE_LENGTH,this.useSmartIdealEdgeLengthCalculation=c.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION,this.springConstant=l.DEFAULT_SPRING_STRENGTH,this.repulsionConstant=l.DEFAULT_REPULSION_STRENGTH,this.gravityConstant=l.DEFAULT_GRAVITY_STRENGTH,this.compoundGravityConstant=l.DEFAULT_COMPOUND_GRAVITY_STRENGTH,this.gravityRangeFactor=l.DEFAULT_GRAVITY_RANGE_FACTOR,this.compoundGravityRangeFactor=l.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR,this.prunedNodesAll=[],this.growTreeIterations=0,this.afterGrowthIterations=0,this.isTreeGrowing=!1,this.isGrowthFinished=!1,this.coolingCycle=0,this.maxCoolingCycle=this.maxIterations/l.CONVERGENCE_CHECK_PERIOD,this.finalTemperature=l.CONVERGENCE_CHECK_PERIOD/this.maxIterations,this.coolingAdjuster=1)},v.prototype.layout=function(){return u.DEFAULT_CREATE_BENDS_AS_NEEDED&&(this.createBendpoints(),this.graphManager.resetAllEdges()),this.level=0,this.classicLayout()},v.prototype.classicLayout=function(){if(this.nodesWithGravity=this.calculateNodesToApplyGravitationTo(),this.graphManager.setAllNodesToApplyGravitation(this.nodesWithGravity),this.calcNoOfChildrenForAllNodes(),this.graphManager.calcLowestCommonAncestors(),this.graphManager.calcInclusionTreeDepths(),this.graphManager.getRoot().calcEstimatedSize(),this.calcIdealEdgeLengths(),!this.incremental){var e=this.getFlatForest();if(e.length>0)this.positionNodesRadially(e);else{this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var t=new Set(this.getAllNodes()),n=this.nodesWithGravity.filter(function(e){return t.has(e)});this.graphManager.setAllNodesToApplyGravitation(n),this.positionNodesRandomly()}}else if(c.TREE_REDUCTION_ON_INCREMENTAL){this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var t=new Set(this.getAllNodes()),n=this.nodesWithGravity.filter(function(e){return t.has(e)});this.graphManager.setAllNodesToApplyGravitation(n)}return this.initSpringEmbedder(),this.runSpringEmbedder(),!0},v.prototype.tick=function(){if(this.totalIterations++,this.totalIterations===this.maxIterations&&!this.isTreeGrowing&&!this.isGrowthFinished)if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;if(this.totalIterations%l.CONVERGENCE_CHECK_PERIOD==0&&!this.isTreeGrowing&&!this.isGrowthFinished){if(this.isConverged())if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;this.coolingCycle++,this.layoutQuality==0?this.coolingAdjuster=this.coolingCycle:this.layoutQuality==1&&(this.coolingAdjuster=this.coolingCycle/3),this.coolingFactor=Math.max(this.initialCoolingFactor-this.coolingCycle**+(Math.log(100*(this.initialCoolingFactor-this.finalTemperature))/Math.log(this.maxCoolingCycle))/100*this.coolingAdjuster,this.finalTemperature),this.animationPeriod=Math.ceil(this.initialAnimationPeriod*Math.sqrt(this.coolingFactor))}if(this.isTreeGrowing){if(this.growTreeIterations%10==0)if(this.prunedNodesAll.length>0){this.graphManager.updateBounds(),this.updateGrid(),this.growTree(this.prunedNodesAll),this.graphManager.resetAllNodesToApplyGravitation();var e=new Set(this.getAllNodes()),t=this.nodesWithGravity.filter(function(t){return e.has(t)});this.graphManager.setAllNodesToApplyGravitation(t),this.graphManager.updateBounds(),this.updateGrid(),this.coolingFactor=l.DEFAULT_COOLING_FACTOR_INCREMENTAL}else this.isTreeGrowing=!1,this.isGrowthFinished=!0;this.growTreeIterations++}if(this.isGrowthFinished){if(this.isConverged())return!0;this.afterGrowthIterations%10==0&&(this.graphManager.updateBounds(),this.updateGrid()),this.coolingFactor=l.DEFAULT_COOLING_FACTOR_INCREMENTAL*((100-this.afterGrowthIterations)/100),this.afterGrowthIterations++}var n=!this.isTreeGrowing&&!this.isGrowthFinished,r=this.growTreeIterations%10==1&&this.isTreeGrowing||this.afterGrowthIterations%10==1&&this.isGrowthFinished;return this.totalDisplacement=0,this.graphManager.updateBounds(),this.calcSpringForces(),this.calcRepulsionForces(n,r),this.calcGravitationalForces(),this.moveNodes(),this.animate(),!1},v.prototype.getPositionsData=function(){for(var e=this.graphManager.getAllNodes(),t={},n=0;n<e.length;n++){var r=e[n].rect,i=e[n].id;t[i]={id:i,x:r.getCenterX(),y:r.getCenterY(),w:r.width,h:r.height}}return t},v.prototype.runSpringEmbedder=function(){this.initialAnimationPeriod=25,this.animationPeriod=this.initialAnimationPeriod;var e=!1;if(l.ANIMATE===`during`)this.emit(`layoutstarted`);else{for(;!e;)e=this.tick();this.graphManager.updateBounds()}},v.prototype.calculateNodesToApplyGravitationTo=function(){var e=[],t,n=this.graphManager.getGraphs(),r=n.length,i;for(i=0;i<r;i++)t=n[i],t.updateConnected(),t.isConnected||(e=e.concat(t.getNodes()));return e},v.prototype.createBendpoints=function(){var e=[];e=e.concat(this.graphManager.getAllEdges());var t=new Set,n;for(n=0;n<e.length;n++){var r=e[n];if(!t.has(r)){var i=r.getSource(),a=r.getTarget();if(i==a)r.getBendpoints().push(new f),r.getBendpoints().push(new f),this.createDummyNodesForBendpoints(r),t.add(r);else{var o=[];if(o=o.concat(i.getEdgeListToNode(a)),o=o.concat(a.getEdgeListToNode(i)),!t.has(o[0])){if(o.length>1){var s;for(s=0;s<o.length;s++){var c=o[s];c.getBendpoints().push(new f),this.createDummyNodesForBendpoints(c)}}o.forEach(function(e){t.add(e)})}}}if(t.size==e.length)break}},v.prototype.positionNodesRadially=function(e){for(var t=new d(0,0),n=Math.ceil(Math.sqrt(e.length)),r=0,i=0,a=0,o=new f(0,0),s=0;s<e.length;s++){s%n==0&&(a=0,i=r,s!=0&&(i+=c.DEFAULT_COMPONENT_SEPERATION),r=0);var l=e[s],m=p.findCenterOfTree(l);t.x=a,t.y=i,o=v.radialLayout(l,m,t),o.y>r&&(r=Math.floor(o.y)),a=Math.floor(o.x+c.DEFAULT_COMPONENT_SEPERATION)}this.transform(new f(u.WORLD_CENTER_X-o.x/2,u.WORLD_CENTER_Y-o.y/2))},v.radialLayout=function(e,t,n){var r=Math.max(this.maxDiagonalInTree(e),c.DEFAULT_RADIAL_SEPARATION);v.branchRadialLayout(t,null,0,359,0,r);var i=g.calculateBounds(e),a=new _;a.setDeviceOrgX(i.getMinX()),a.setDeviceOrgY(i.getMinY()),a.setWorldOrgX(n.x),a.setWorldOrgY(n.y);for(var o=0;o<e.length;o++)e[o].transform(a);var s=new f(i.getMaxX(),i.getMaxY());return a.inverseTransformPoint(s)},v.branchRadialLayout=function(e,t,n,r,i,a){var o=(r-n+1)/2;o<0&&(o+=180);var s=(o+n)%360*h.TWO_PI/360,c=i*Math.cos(s),l=i*Math.sin(s);e.setCenter(c,l);var u=[];u=u.concat(e.getEdges());var d=u.length;t!=null&&d--;for(var f=0,p=u.length,m,g=e.getEdgesBetween(t);g.length>1;){var _=g[0];g.splice(0,1);var y=u.indexOf(_);y>=0&&u.splice(y,1),p--,d--}m=t==null?0:(u.indexOf(g[0])+1)%p;for(var b=Math.abs(r-n)/d,x=m;f!=d;x=++x%p){var S=u[x].getOtherEnd(e);if(S!=t){var C=(n+f*b)%360,w=(C+b)%360;v.branchRadialLayout(S,e,C,w,i+a,a),f++}}},v.maxDiagonalInTree=function(e){for(var t=m.MIN_VALUE,n=0;n<e.length;n++){var r=e[n].getDiagonal();r>t&&(t=r)}return t},v.prototype.calcRepulsionRange=function(){return 2*(this.level+1)*this.idealEdgeLength},v.prototype.groupZeroDegreeMembers=function(){var e=this,t={};this.memberGroups={},this.idToDummyNode={};for(var n=[],r=this.graphManager.getAllNodes(),i=0;i<r.length;i++){var a=r[i],s=a.getParent();this.getNodeDegreeWithChildren(a)===0&&(s.id==null||!this.getToBeTiled(s))&&n.push(a)}for(var i=0;i<n.length;i++){var a=n[i],c=a.getParent().id;t[c]===void 0&&(t[c]=[]),t[c]=t[c].concat(a)}Object.keys(t).forEach(function(n){if(t[n].length>1){var r=`DummyCompound_`+n;e.memberGroups[r]=t[n];var i=t[n][0].getParent(),a=new o(e.graphManager);a.id=r,a.paddingLeft=i.paddingLeft||0,a.paddingRight=i.paddingRight||0,a.paddingBottom=i.paddingBottom||0,a.paddingTop=i.paddingTop||0,e.idToDummyNode[r]=a;var s=e.getGraphManager().add(e.newGraph(),a),c=i.getChild();c.add(a);for(var l=0;l<t[n].length;l++){var u=t[n][l];c.remove(u),s.add(u)}}})},v.prototype.clearCompounds=function(){var e={},t={};this.performDFSOnCompounds();for(var n=0;n<this.compoundOrder.length;n++)t[this.compoundOrder[n].id]=this.compoundOrder[n],e[this.compoundOrder[n].id]=[].concat(this.compoundOrder[n].getChild().getNodes()),this.graphManager.remove(this.compoundOrder[n].getChild()),this.compoundOrder[n].child=null;this.graphManager.resetAllNodes(),this.tileCompoundMembers(e,t)},v.prototype.clearZeroDegreeMembers=function(){var e=this,t=this.tiledZeroDegreePack=[];Object.keys(this.memberGroups).forEach(function(n){var r=e.idToDummyNode[n];t[n]=e.tileNodes(e.memberGroups[n],r.paddingLeft+r.paddingRight),r.rect.width=t[n].width,r.rect.height=t[n].height})},v.prototype.repopulateCompounds=function(){for(var e=this.compoundOrder.length-1;e>=0;e--){var t=this.compoundOrder[e],n=t.id,r=t.paddingLeft,i=t.paddingTop;this.adjustLocations(this.tiledMemberPack[n],t.rect.x,t.rect.y,r,i)}},v.prototype.repopulateZeroDegreeMembers=function(){var e=this,t=this.tiledZeroDegreePack;Object.keys(t).forEach(function(n){var r=e.idToDummyNode[n],i=r.paddingLeft,a=r.paddingTop;e.adjustLocations(t[n],r.rect.x,r.rect.y,i,a)})},v.prototype.getToBeTiled=function(e){var t=e.id;if(this.toBeTiled[t]!=null)return this.toBeTiled[t];var n=e.getChild();if(n==null)return this.toBeTiled[t]=!1,!1;for(var r=n.getNodes(),i=0;i<r.length;i++){var a=r[i];if(this.getNodeDegree(a)>0)return this.toBeTiled[t]=!1,!1;if(a.getChild()==null){this.toBeTiled[a.id]=!1;continue}if(!this.getToBeTiled(a))return this.toBeTiled[t]=!1,!1}return this.toBeTiled[t]=!0,!0},v.prototype.getNodeDegree=function(e){e.id;for(var t=e.getEdges(),n=0,r=0;r<t.length;r++){var i=t[r];i.getSource().id!==i.getTarget().id&&(n+=1)}return n},v.prototype.getNodeDegreeWithChildren=function(e){var t=this.getNodeDegree(e);if(e.getChild()==null)return t;for(var n=e.getChild().getNodes(),r=0;r<n.length;r++){var i=n[r];t+=this.getNodeDegreeWithChildren(i)}return t},v.prototype.performDFSOnCompounds=function(){this.compoundOrder=[],this.fillCompexOrderByDFS(this.graphManager.getRoot().getNodes())},v.prototype.fillCompexOrderByDFS=function(e){for(var t=0;t<e.length;t++){var n=e[t];n.getChild()!=null&&this.fillCompexOrderByDFS(n.getChild().getNodes()),this.getToBeTiled(n)&&this.compoundOrder.push(n)}},v.prototype.adjustLocations=function(e,t,n,r,i){t+=r,n+=i;for(var a=t,o=0;o<e.rows.length;o++){var s=e.rows[o];t=a;for(var c=0,l=0;l<s.length;l++){var u=s[l];u.rect.x=t,u.rect.y=n,t+=u.rect.width+e.horizontalPadding,u.rect.height>c&&(c=u.rect.height)}n+=c+e.verticalPadding}},v.prototype.tileCompoundMembers=function(e,t){var n=this;this.tiledMemberPack=[],Object.keys(e).forEach(function(r){var i=t[r];n.tiledMemberPack[r]=n.tileNodes(e[r],i.paddingLeft+i.paddingRight),i.rect.width=n.tiledMemberPack[r].width,i.rect.height=n.tiledMemberPack[r].height})},v.prototype.tileNodes=function(e,t){var n={rows:[],rowWidth:[],rowHeight:[],width:0,height:t,verticalPadding:c.TILING_PADDING_VERTICAL,horizontalPadding:c.TILING_PADDING_HORIZONTAL};e.sort(function(e,t){return e.rect.width*e.rect.height>t.rect.width*t.rect.height?-1:+(e.rect.width*e.rect.height<t.rect.width*t.rect.height)});for(var r=0;r<e.length;r++){var i=e[r];n.rows.length==0?this.insertNodeToRow(n,i,0,t):this.canAddHorizontal(n,i.rect.width,i.rect.height)?this.insertNodeToRow(n,i,this.getShortestRowIndex(n),t):this.insertNodeToRow(n,i,n.rows.length,t),this.shiftToLastRow(n)}return n},v.prototype.insertNodeToRow=function(e,t,n,r){var i=r;n==e.rows.length&&(e.rows.push([]),e.rowWidth.push(i),e.rowHeight.push(0));var a=e.rowWidth[n]+t.rect.width;e.rows[n].length>0&&(a+=e.horizontalPadding),e.rowWidth[n]=a,e.width<a&&(e.width=a);var o=t.rect.height;n>0&&(o+=e.verticalPadding);var s=0;o>e.rowHeight[n]&&(s=e.rowHeight[n],e.rowHeight[n]=o,s=e.rowHeight[n]-s),e.height+=s,e.rows[n].push(t)},v.prototype.getShortestRowIndex=function(e){for(var t=-1,n=Number.MAX_VALUE,r=0;r<e.rows.length;r++)e.rowWidth[r]<n&&(t=r,n=e.rowWidth[r]);return t},v.prototype.getLongestRowIndex=function(e){for(var t=-1,n=Number.MIN_VALUE,r=0;r<e.rows.length;r++)e.rowWidth[r]>n&&(t=r,n=e.rowWidth[r]);return t},v.prototype.canAddHorizontal=function(e,t,n){var r=this.getShortestRowIndex(e);if(r<0)return!0;var i=e.rowWidth[r];if(i+e.horizontalPadding+t<=e.width)return!0;var a=0;e.rowHeight[r]<n&&r>0&&(a=n+e.verticalPadding-e.rowHeight[r]);var o=e.width-i>=t+e.horizontalPadding?(e.height+a)/(i+t+e.horizontalPadding):(e.height+a)/e.width;a=n+e.verticalPadding;var s=e.width<t?(e.height+a)/t:(e.height+a)/e.width;return s<1&&(s=1/s),o<1&&(o=1/o),o<s},v.prototype.shiftToLastRow=function(e){var t=this.getLongestRowIndex(e),n=e.rowWidth.length-1,r=e.rows[t],i=r[r.length-1],a=i.width+e.horizontalPadding;if(e.width-e.rowWidth[n]>a&&t!=n){r.splice(-1,1),e.rows[n].push(i),e.rowWidth[t]=e.rowWidth[t]-a,e.rowWidth[n]=e.rowWidth[n]+a,e.width=e.rowWidth[instance.getLongestRowIndex(e)];for(var o=Number.MIN_VALUE,s=0;s<r.length;s++)r[s].height>o&&(o=r[s].height);t>0&&(o+=e.verticalPadding);var c=e.rowHeight[t]+e.rowHeight[n];e.rowHeight[t]=o,e.rowHeight[n]<i.height+e.verticalPadding&&(e.rowHeight[n]=i.height+e.verticalPadding);var l=e.rowHeight[t]+e.rowHeight[n];e.height+=l-c,this.shiftToLastRow(e)}},v.prototype.tilingPreLayout=function(){c.TILE&&(this.groupZeroDegreeMembers(),this.clearCompounds(),this.clearZeroDegreeMembers())},v.prototype.tilingPostLayout=function(){c.TILE&&(this.repopulateZeroDegreeMembers(),this.repopulateCompounds())},v.prototype.reduceTrees=function(){for(var e=[],t=!0,n;t;){var r=this.graphManager.getAllNodes(),i=[];t=!1;for(var a=0;a<r.length;a++)n=r[a],n.getEdges().length==1&&!n.getEdges()[0].isInterGraph&&n.getChild()==null&&(i.push([n,n.getEdges()[0],n.getOwner()]),t=!0);if(t==1){for(var o=[],s=0;s<i.length;s++)i[s][0].getEdges().length==1&&(o.push(i[s]),i[s][0].getOwner().remove(i[s][0]));e.push(o),this.graphManager.resetAllNodes(),this.graphManager.resetAllEdges()}}this.prunedNodesAll=e},v.prototype.growTree=function(e){for(var t=e[e.length-1],n,r=0;r<t.length;r++)n=t[r],this.findPlaceforPrunedNode(n),n[2].add(n[0]),n[2].add(n[1],n[1].source,n[1].target);e.splice(e.length-1,1),this.graphManager.resetAllNodes(),this.graphManager.resetAllEdges()},v.prototype.findPlaceforPrunedNode=function(e){var t,n,r=e[0];n=r==e[1].source?e[1].target:e[1].source;var i=n.startX,a=n.finishX,o=n.startY,s=n.finishY,c=[0,0,0,0];if(o>0)for(var u=i;u<=a;u++)c[0]+=this.grid[u][o-1].length+this.grid[u][o].length-1;if(a<this.grid.length-1)for(var u=o;u<=s;u++)c[1]+=this.grid[a+1][u].length+this.grid[a][u].length-1;if(s<this.grid[0].length-1)for(var u=i;u<=a;u++)c[2]+=this.grid[u][s+1].length+this.grid[u][s].length-1;if(i>0)for(var u=o;u<=s;u++)c[3]+=this.grid[i-1][u].length+this.grid[i][u].length-1;for(var d=m.MAX_VALUE,f,p,h=0;h<c.length;h++)c[h]<d?(d=c[h],f=1,p=h):c[h]==d&&f++;if(f==3&&d==0)c[0]==0&&c[1]==0&&c[2]==0?t=1:c[0]==0&&c[1]==0&&c[3]==0?t=0:c[0]==0&&c[2]==0&&c[3]==0?t=3:c[1]==0&&c[2]==0&&c[3]==0&&(t=2);else if(f==2&&d==0){var g=Math.floor(Math.random()*2);t=c[0]==0&&c[1]==0?g==0?0:1:c[0]==0&&c[2]==0?g==0?0:2:c[0]==0&&c[3]==0?g==0?0:3:c[1]==0&&c[2]==0?g==0?1:2:c[1]==0&&c[3]==0?g==0?1:3:g==0?2:3}else if(f==4&&d==0){var g=Math.floor(Math.random()*4);t=g}else t=p;t==0?r.setCenter(n.getCenterX(),n.getCenterY()-n.getHeight()/2-l.DEFAULT_EDGE_LENGTH-r.getHeight()/2):t==1?r.setCenter(n.getCenterX()+n.getWidth()/2+l.DEFAULT_EDGE_LENGTH+r.getWidth()/2,n.getCenterY()):t==2?r.setCenter(n.getCenterX(),n.getCenterY()+n.getHeight()/2+l.DEFAULT_EDGE_LENGTH+r.getHeight()/2):r.setCenter(n.getCenterX()-n.getWidth()/2-l.DEFAULT_EDGE_LENGTH-r.getWidth()/2,n.getCenterY())},e.exports=v}),(function(e,t,n){var r={};r.layoutBase=n(0),r.CoSEConstants=n(1),r.CoSEEdge=n(2),r.CoSEGraph=n(3),r.CoSEGraphManager=n(4),r.CoSELayout=n(6),r.CoSENode=n(5),e.exports=r})])})})),c=e(t(((e,t)=>{(function(n,r){typeof e==`object`&&typeof t==`object`?t.exports=r(s()):typeof define==`function`&&define.amd?define([`cose-base`],r):typeof e==`object`?e.cytoscapeCoseBilkent=r(s()):n.cytoscapeCoseBilkent=r(n.coseBase)})(e,function(e){return(function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.i=function(e){return e},n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,`a`,t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p=``,n(n.s=1)})([(function(t,n){t.exports=e}),(function(e,t,n){var r=n(0).layoutBase.LayoutConstants,i=n(0).layoutBase.FDLayoutConstants,a=n(0).CoSEConstants,o=n(0).CoSELayout,s=n(0).CoSENode,c=n(0).layoutBase.PointD,l=n(0).layoutBase.DimensionD,u={ready:function(){},stop:function(){},quality:`default`,nodeDimensionsIncludeLabels:!1,refresh:30,fit:!0,padding:10,randomize:!0,nodeRepulsion:4500,idealEdgeLength:50,edgeElasticity:.45,nestingFactor:.1,gravity:.25,numIter:2500,tile:!0,animate:`end`,animationDuration:500,tilingPaddingVertical:10,tilingPaddingHorizontal:10,gravityRangeCompound:1.5,gravityCompound:1,gravityRange:3.8,initialEnergyOnIncremental:.5};function d(e,t){var n={};for(var r in e)n[r]=e[r];for(var r in t)n[r]=t[r];return n}function f(e){this.options=d(u,e),p(this.options)}var p=function(e){e.nodeRepulsion!=null&&(a.DEFAULT_REPULSION_STRENGTH=i.DEFAULT_REPULSION_STRENGTH=e.nodeRepulsion),e.idealEdgeLength!=null&&(a.DEFAULT_EDGE_LENGTH=i.DEFAULT_EDGE_LENGTH=e.idealEdgeLength),e.edgeElasticity!=null&&(a.DEFAULT_SPRING_STRENGTH=i.DEFAULT_SPRING_STRENGTH=e.edgeElasticity),e.nestingFactor!=null&&(a.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=i.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=e.nestingFactor),e.gravity!=null&&(a.DEFAULT_GRAVITY_STRENGTH=i.DEFAULT_GRAVITY_STRENGTH=e.gravity),e.numIter!=null&&(a.MAX_ITERATIONS=i.MAX_ITERATIONS=e.numIter),e.gravityRange!=null&&(a.DEFAULT_GRAVITY_RANGE_FACTOR=i.DEFAULT_GRAVITY_RANGE_FACTOR=e.gravityRange),e.gravityCompound!=null&&(a.DEFAULT_COMPOUND_GRAVITY_STRENGTH=i.DEFAULT_COMPOUND_GRAVITY_STRENGTH=e.gravityCompound),e.gravityRangeCompound!=null&&(a.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=i.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=e.gravityRangeCompound),e.initialEnergyOnIncremental!=null&&(a.DEFAULT_COOLING_FACTOR_INCREMENTAL=i.DEFAULT_COOLING_FACTOR_INCREMENTAL=e.initialEnergyOnIncremental),e.quality==`draft`?r.QUALITY=0:e.quality==`proof`?r.QUALITY=2:r.QUALITY=1,a.NODE_DIMENSIONS_INCLUDE_LABELS=i.NODE_DIMENSIONS_INCLUDE_LABELS=r.NODE_DIMENSIONS_INCLUDE_LABELS=e.nodeDimensionsIncludeLabels,a.DEFAULT_INCREMENTAL=i.DEFAULT_INCREMENTAL=r.DEFAULT_INCREMENTAL=!e.randomize,a.ANIMATE=i.ANIMATE=r.ANIMATE=e.animate,a.TILE=e.tile,a.TILING_PADDING_VERTICAL=typeof e.tilingPaddingVertical==`function`?e.tilingPaddingVertical.call():e.tilingPaddingVertical,a.TILING_PADDING_HORIZONTAL=typeof e.tilingPaddingHorizontal==`function`?e.tilingPaddingHorizontal.call():e.tilingPaddingHorizontal};f.prototype.run=function(){var e,t,n=this.options;this.idToLNode={};var r=this.layout=new o,i=this;i.stopped=!1,this.cy=this.options.cy,this.cy.trigger({type:`layoutstart`,layout:this});var a=r.newGraphManager();this.gm=a;var s=this.options.eles.nodes(),c=this.options.eles.edges();this.root=a.addRoot(),this.processChildrenList(this.root,this.getTopMostNodes(s),r);for(var l=0;l<c.length;l++){var u=c[l],d=this.idToLNode[u.data(`source`)],f=this.idToLNode[u.data(`target`)];if(d!==f&&d.getEdgesBetween(f).length==0){var p=a.add(r.newEdge(),d,f);p.id=u.id()}}var m=function(e,t){typeof e==`number`&&(e=t);var n=e.data(`id`),r=i.idToLNode[n];return{x:r.getRect().getCenterX(),y:r.getRect().getCenterY()}},h=function a(){for(var o=function(){n.fit&&n.cy.fit(n.eles,n.padding),e||(e=!0,i.cy.one(`layoutready`,n.ready),i.cy.trigger({type:`layoutready`,layout:i}))},s=i.options.refresh,c,l=0;l<s&&!c;l++)c=i.stopped||i.layout.tick();if(c){r.checkLayoutSuccess()&&!r.isSubLayout&&r.doPostLayout(),r.tilingPostLayout&&r.tilingPostLayout(),r.isLayoutFinished=!0,i.options.eles.nodes().positions(m),o(),i.cy.one(`layoutstop`,i.options.stop),i.cy.trigger({type:`layoutstop`,layout:i}),t&&cancelAnimationFrame(t),e=!1;return}var u=i.layout.getPositionsData();n.eles.nodes().positions(function(e,t){if(typeof e==`number`&&(e=t),!e.isParent()){for(var n=e.id(),r=u[n],i=e;r==null&&(r=u[i.data(`parent`)]||u[`DummyCompound_`+i.data(`parent`)],u[n]=r,i=i.parent()[0],i!=null););return r==null?{x:e.position(`x`),y:e.position(`y`)}:{x:r.x,y:r.y}}}),o(),t=requestAnimationFrame(a)};return r.addListener(`layoutstarted`,function(){i.options.animate===`during`&&(t=requestAnimationFrame(h))}),r.runLayout(),this.options.animate!==`during`&&(i.options.eles.nodes().not(`:parent`).layoutPositions(i,i.options,m),e=!1),this},f.prototype.getTopMostNodes=function(e){for(var t={},n=0;n<e.length;n++)t[e[n].id()]=!0;return e.filter(function(e,n){typeof e==`number`&&(e=n);for(var r=e.parent()[0];r!=null;){if(t[r.id()])return!1;r=r.parent()[0]}return!0})},f.prototype.processChildrenList=function(e,t,n){for(var r=t.length,i=0;i<r;i++){var a=t[i],o=a.children(),u,d=a.layoutDimensions({nodeDimensionsIncludeLabels:this.options.nodeDimensionsIncludeLabels});if(u=a.outerWidth()!=null&&a.outerHeight()!=null?e.add(new s(n.graphManager,new c(a.position(`x`)-d.w/2,a.position(`y`)-d.h/2),new l(parseFloat(d.w),parseFloat(d.h)))):e.add(new s(this.graphManager)),u.id=a.data(`id`),u.paddingLeft=parseInt(a.css(`padding`)),u.paddingTop=parseInt(a.css(`padding`)),u.paddingRight=parseInt(a.css(`padding`)),u.paddingBottom=parseInt(a.css(`padding`)),this.options.nodeDimensionsIncludeLabels&&a.isParent()){var f=a.boundingBox({includeLabels:!0,includeNodes:!1}).w,p=a.boundingBox({includeLabels:!0,includeNodes:!1}).h,m=a.css(`text-halign`);u.labelWidth=f,u.labelHeight=p,u.labelPos=m}if(this.idToLNode[a.data(`id`)]=u,isNaN(u.rect.x)&&(u.rect.x=0),isNaN(u.rect.y)&&(u.rect.y=0),o!=null&&o.length>0){var h=n.getGraphManager().add(n.newGraph(),u);this.processChildrenList(h,o,n)}}},f.prototype.stop=function(){return this.stopped=!0,this};var m=function(e){e(`layout`,`cose-bilkent`,f)};typeof cytoscape<`u`&&m(cytoscape),e.exports=m})])})}))(),1);a.use(c.default);function l(e,t){e.forEach(e=>{let n={id:e.id,labelText:e.label,height:e.height,width:e.width,padding:e.padding??0};Object.keys(e).forEach(t=>{[`id`,`label`,`height`,`width`,`padding`,`x`,`y`].includes(t)||(n[t]=e[t])}),t.add({group:`nodes`,data:n,position:{x:e.x??0,y:e.y??0}})})}n(l,`addNodes`);function u(e,t){e.forEach(e=>{let n={id:e.id,source:e.start,target:e.end};Object.keys(e).forEach(t=>{[`id`,`start`,`end`].includes(t)||(n[t]=e[t])}),t.add({group:`edges`,data:n})})}n(u,`addEdges`);function d(e){return new Promise(t=>{let n=i(`body`).append(`div`).attr(`id`,`cy`).attr(`style`,`display:none`),o=a({container:document.getElementById(`cy`),style:[{selector:`edge`,style:{"curve-style":`bezier`}}]});n.remove(),l(e.nodes,o),u(e.edges,o),o.nodes().forEach(function(e){e.layoutDimensions=()=>{let t=e.data();return{w:t.width,h:t.height}}}),o.layout({name:`cose-bilkent`,quality:`proof`,styleEnabled:!1,animate:!1}).run(),o.ready(e=>{r.info(`Cytoscape ready`,e),t(o)})})}n(d,`createCytoscapeInstance`);function f(e){return e.nodes().map(e=>{let t=e.data(),n=e.position(),r={id:t.id,x:n.x,y:n.y};return Object.keys(t).forEach(e=>{e!==`id`&&(r[e]=t[e])}),r})}n(f,`extractPositionedNodes`);function p(e){return e.edges().map(e=>{let t=e.data(),n=e._private.rscratch,r={id:t.id,source:t.source,target:t.target,startX:n.startX,startY:n.startY,midX:n.midX,midY:n.midY,endX:n.endX,endY:n.endY};return Object.keys(t).forEach(e=>{[`id`,`source`,`target`].includes(e)||(r[e]=t[e])}),r})}n(p,`extractPositionedEdges`);async function m(e,t){r.debug(`Starting cose-bilkent layout algorithm`);try{h(e);let t=await d(e),n=f(t),i=p(t);return r.debug(`Layout completed: ${n.length} nodes, ${i.length} edges`),{nodes:n,edges:i}}catch(e){throw r.error(`Error in cose-bilkent layout algorithm:`,e),e}}n(m,`executeCoseBilkentLayout`);function h(e){if(!e)throw Error(`Layout data is required`);if(!e.config)throw Error(`Configuration is required in layout data`);if(!e.rootNode)throw Error(`Root node is required`);if(!e.nodes||!Array.isArray(e.nodes))throw Error(`No nodes found in layout data`);if(!Array.isArray(e.edges))throw Error(`Edges array is required in layout data`);return!0}n(h,`validateLayoutData`);var g=n(async(e,t,{insertCluster:n,insertEdge:r,insertEdgeLabel:i,insertMarkers:a,insertNode:o,log:s,positionEdgeLabel:c},{algorithm:l})=>{let u={},d={},f=t.select(`g`);a(f,e.markers,e.type,e.diagramId);let p=f.insert(`g`).attr(`class`,`subgraphs`),h=f.insert(`g`).attr(`class`,`edgePaths`),g=f.insert(`g`).attr(`class`,`edgeLabels`),_=f.insert(`g`).attr(`class`,`nodes`);s.debug(`Inserting nodes into DOM for dimension calculation`),await Promise.all(e.nodes.map(async t=>{if(t.isGroup){let e={...t};d[t.id]=e,u[t.id]=e,await n(p,t)}else{let n={...t};u[t.id]=n;let r=await o(_,t,{config:e.config,dir:e.direction||`TB`}),i=r.node().getBBox();n.width=i.width,n.height=i.height,n.domId=r,s.debug(`Node ${t.id} dimensions: ${i.width}x${i.height}`)}})),s.debug(`Running cose-bilkent layout algorithm`);let v=await m({...e,nodes:e.nodes.map(e=>{let t=u[e.id];return{...e,width:t.width,height:t.height}})},e.config);s.debug(`Positioning nodes based on layout results`),v.nodes.forEach(e=>{let t=u[e.id];t?.domId&&(t.domId.attr(`transform`,`translate(${e.x}, ${e.y})`),t.x=e.x,t.y=e.y,s.debug(`Positioned node ${t.id} at center (${e.x}, ${e.y})`))}),v.edges.forEach(t=>{let n=e.edges.find(e=>e.id===t.id);n&&(n.points=[{x:t.startX,y:t.startY},{x:t.midX,y:t.midY},{x:t.endX,y:t.endY}])}),s.debug(`Inserting and positioning edges`),await Promise.all(e.edges.map(async t=>{await i(g,t);let n=u[t.start??``],a=u[t.end??``];if(n&&a){let i=v.edges.find(e=>e.id===t.id);if(i){s.debug(`APA01 positionedEdge`,i);let o={...t};c(o,r(h,o,d,e.type,n,a,e.diagramId))}else{let i={...t,points:[{x:n.x||0,y:n.y||0},{x:a.x||0,y:a.y||0}]};c(i,r(h,i,d,e.type,n,a,e.diagramId))}}})),s.debug(`Cose-bilkent rendering completed`)},`render`);export{g as render};
|