@marimo-team/islands 0.24.3-dev3 → 0.24.3-dev31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{ConnectedDataExplorerComponent-qIKbwYin.js → ConnectedDataExplorerComponent-BLO7UDpo.js} +18 -18
- package/dist/{ErrorBoundary-CR-ZQN_c.js → ErrorBoundary-B7uSdDUm.js} +6 -6
- package/dist/{ImageComparisonComponent-2a9TMMm2.js → ImageComparisonComponent-RspMflu6.js} +3 -3
- package/dist/{Plot-C-9MQeGP.js → Plot-CTyjbQDT.js} +21032 -20666
- package/dist/_baseMerge-Bnytch8P.js +165 -0
- package/dist/{abnfDiagram-N423BO3Z-CQKwzX8t.js → abnfDiagram-VCTEODGH-DCb2K_RB.js} +17 -18
- package/dist/{any-language-editor-CpTnK43-.js → any-language-editor-C0dftc2Z.js} +8 -8
- package/dist/arc-7ra3iNdN.js +81 -0
- package/dist/architecture-7GRP2DOG-BWLylgiA.js +3 -0
- package/dist/{architectureDiagram-T3A2C74G-CncrDpfa.js → architectureDiagram-5GKGNRK7-Bb_n642s.js} +25 -25
- package/dist/assets/__vite-browser-external-BajL8aoc.js +1 -0
- package/dist/assets/worker-BemUy60C.js +109 -0
- package/dist/blockDiagram-I7D4REHJ-BbXEXJRu.js +1922 -0
- package/dist/{button-CKBkqR9J.js → button-DdXAm8iz.js} +5 -5
- package/dist/{c4Diagram-5PPSVZJV-DarUk3Yq.js → c4Diagram-7LVT6UL2-DcLsbQmR.js} +696 -668
- package/dist/{capabilities-CMBBJTcc.js → capabilities-B3ce_GNu.js} +1 -1
- package/dist/{channel-CyiYUzJv.js → channel-B5XnTarr.js} +1 -1
- package/dist/chat-ui-DiMxe-GH.js +5835 -0
- package/dist/{check-CHig47QV.js → check-mcQyZmFG.js} +1 -1
- package/dist/{chunk-2Q5K7J3B-BMuJl2jB.js → chunk-2Q5K7J3B-BMkUkeuy.js} +2 -2
- package/dist/chunk-4HAMMTFA-D2qv8E0X.js +4188 -0
- package/dist/{chunk-5VM5RSS4-Bcq0ftdy.js → chunk-5VM5RSS4-DKsmPCL6.js} +2 -2
- package/dist/{chunk-NSK5VX7P-CDTMcJB0.js → chunk-75Z2AOVW-5_HsvXwr.js} +23 -23
- package/dist/{chunk-I66GZJ75-BqyTCAPf.js → chunk-DU6HZSFF-BUgAHvnM.js} +21 -4
- package/dist/{chunk-2GRJ4B5K-DgO8Qudq.js → chunk-F27PBJKO-DHmYWZXr.js} +4 -4
- package/dist/{chunk-KEIR6QF5-C4KX3XYh.js → chunk-FOHPRMQF-BpYR8RqP.js} +4 -4
- package/dist/{chunk-WRU74C26-BpWsbiDK.js → chunk-GMAD6QVW-Czynz8aA.js} +486 -258
- package/dist/chunk-GVQU2GXP-yQEdulRS.js +37 -0
- package/dist/{chunk-5RXB4S5H-tLNUVDdO.js → chunk-IMKFNOWR-Du9BN2Ul.js} +11 -11
- package/dist/{chunk-JWPE2WC7-BJwjGUnF.js → chunk-JWPE2WC7-DJvv1t8U.js} +2 -2
- package/dist/chunk-L3NEJ4N5-DwRWnDDK.js +245 -0
- package/dist/{chunk-7Z6QIM7H-Dc18hFxH.js → chunk-OSK3NFVY-BBKU_Ign.js} +222 -144
- package/dist/{chunk-W5SLKNZC-DLnvpEtV.js → chunk-P2QGCYS3-C0iGU29N.js} +20 -20
- package/dist/{chunk-KBJHAD2P-BuqWqkcW.js → chunk-POPQ4Y6H-BCbS3Ozc.js} +4 -4
- package/dist/{chunk-4I5QYGJK-DpytHuZQ.js → chunk-PWAF6VOD-CTFCL0jI.js} +4 -4
- package/dist/{chunk-JQJVKLGR-CgqCwe8E.js → chunk-SHT3W25Y-tUelricH.js} +109 -63
- package/dist/{chunk-6Q2QTUOP-DmTcEBMn.js → chunk-SVP7TREG-DK3egkfQ.js} +5 -5
- package/dist/{chunk-GF5L2VYU-B0wgCQgS.js → chunk-TICWLB2K-DRANTdnp.js} +13 -13
- package/dist/{chunk-XXDRQBXY-D73H4IN0.js → chunk-XXDRQBXY-Dnl5VBqG.js} +3 -3
- package/dist/{chunk-Y2CYZVJY-DoegUj_e.js → chunk-Y2CYZVJY-DKKS1VyV.js} +1 -1
- package/dist/{chunk-5FQGJX7Z-B85XCPv6.js → chunk-YOKDWASO-DrWbKnxA.js} +6925 -5460
- package/dist/classDiagram-ZZMXUADV-7wCSVH7o.js +30 -0
- package/dist/classDiagram-v2-VYDZK3BY-QwnvcnhB.js +30 -0
- package/dist/{common-CwJerb7K.js → common-BTmw6ocq.js} +7398 -6912
- package/dist/{compiler-runtime-CAH9RLw2.js → compiler-runtime-Cj8ZWiNS.js} +2 -2
- package/dist/{copy-CD7S58CY.js → copy-C0N4m1lm.js} +4 -4
- package/dist/{cose-bilkent-JH36ORCC-FUWHkXFX.js → cose-bilkent-JH36ORCC-_LyRKVqm.js} +2 -2
- package/dist/cubic-OaEBhQPK.js +1404 -0
- package/dist/cynefin-OW5HDTMX-obq-i80l.js +3 -0
- package/dist/{cynefinDiagram-MW4NZA55-BXSFK93J.js → cynefinDiagram-5FMLGOSQ-CB7O4IZB.js} +10 -10
- package/dist/{dagre-CGyalH38.js → dagre-DfYd3btw.js} +678 -537
- package/dist/dagre-GXQ25YYZ-C-a95ISW.js +425 -0
- package/dist/{data-grid-overlay-editor-DZM4BAaI.js → data-grid-overlay-editor-C5eUZVTo.js} +8 -9
- package/dist/{data-grid-types-BnZwWG8z.js → data-grid-types-BucVmDDp.js} +1 -1
- package/dist/{defaultLocale-DKaU_opG.js → defaultLocale-JI_lnoCe.js} +1 -1
- package/dist/{diagram-7IWD3JNH-BjfzDNvj.js → diagram-S7CK7UJ4-BsKLYQaH.js} +40 -39
- package/dist/{diagram-UB23O5K3-DDg-7wLA.js → diagram-UQ7AKVKN-ppYdvuTN.js} +10 -10
- package/dist/{diagram-B4RE2ZJO-CKccR9eE.js → diagram-VSXAHHWV-BKpmG23x.js} +10 -10
- package/dist/{diagram-Q27KOJAE-Zhz01ss7.js → diagram-VX7I27RA-CAMK2l0E.js} +21 -21
- package/dist/{diagram-LBJQPF4R-CJ-bOruh.js → diagram-Z3DM3KII-CxQ7MggT.js} +10 -10
- package/dist/{dist-dAqZAPcF.js → dist-1HDa70oE.js} +3 -3
- package/dist/{dist-3_o3T78I.js → dist-6ChWbo8z.js} +13 -13
- package/dist/{dist-Re9sOPOx.js → dist-9x1ZRe-e.js} +2 -2
- package/dist/{dist-DEeLqRlU.js → dist-B1vYLK28.js} +1 -1
- package/dist/{dist-C5Bn52W4.js → dist-B8D7McG3.js} +3 -3
- package/dist/{dist-_XvgytiS.js → dist-BHCHt1NI.js} +1 -1
- package/dist/{dist-CRjAdnqF.js → dist-BRxfaJgs.js} +3 -3
- package/dist/{dist-Byj2bV8o.js → dist-BVGtK7Ht.js} +1 -1
- package/dist/{dist-BIN5LKyE.js → dist-BaHjhkpZ.js} +2 -2
- package/dist/{dist-DVFbIwc5.js → dist-BtKIs9N-.js} +1 -1
- package/dist/{dist-BrQGcfQ9.js → dist-C2KzV-vf.js} +2 -2
- package/dist/{dist-DJFiGP2k.js → dist-C2wDlYdD.js} +2 -2
- package/dist/{dist-BVRM2y1P.js → dist-C8xMLVYi.js} +2 -2
- package/dist/dist-CMh_W4y4.js +538 -0
- package/dist/{dist-BzN60Z2s.js → dist-CPGxfVGX.js} +1 -1
- package/dist/{dist-C7v-9nUK.js → dist-Cm3iAFMD.js} +3 -3
- package/dist/{dist-CGAxEiaM.js → dist-Cs2FijYk.js} +2 -2
- package/dist/{dist-hXd65f0_.js → dist-D1PpnuZB.js} +1 -1
- package/dist/{dist-VdvbxG72.js → dist-DHOTQar0.js} +1 -1
- package/dist/{dist-DcgzXCfy.js → dist-DPcEtqmG.js} +2 -2
- package/dist/{dist-D4Z_qdP4.js → dist-Df0wKI0F.js} +1 -1
- package/dist/{dist-qhLI-SHd.js → dist-DszxuxS1.js} +2 -2
- package/dist/{dist-BEmkrGoQ.js → dist-Kxgjxakw.js} +1 -1
- package/dist/{dist-BbSMhhD2.js → dist-KzZ7WELx.js} +2 -2
- package/dist/{dist-jWUab2d1.js → dist-lA1Cttkb.js} +1 -1
- package/dist/{dropdown-menu-DhCfcscX.js → dropdown-menu-C73aTomr.js} +184 -184
- package/dist/{ebnfDiagram-BXEA7PRR-Dm75pCAS.js → ebnfDiagram-PWID7BFC-DzybELvk.js} +17 -18
- package/dist/{erDiagram-JOGREHBK-rVDG3VSQ.js → erDiagram-RLTQ6QDP-BVxV97ld.js} +1037 -798
- package/dist/{error-banner-WDhUzJyg.js → error-banner-hCaH06e3.js} +207 -207
- package/dist/{esm-CR1nhb1c.js → esm-BElI3qKH.js} +22 -22
- package/dist/{esm-C1d0g6Bv.js → esm-G4Fhsgng.js} +51 -37
- package/dist/{esm-CesmlDrs.js → esm-blALgIVy.js} +332 -319
- package/dist/eventmodeling-NTZA5JFV-D7nP7Uyu.js +3 -0
- package/dist/{extends-BPB6_lTK.js → extends-Do6pRuJa.js} +8 -8
- package/dist/flowDiagram-HODETNUW-BKvXsWYX.js +16 -0
- package/dist/{formats-CJMVUfb3.js → formats-vDAoRpYs.js} +8 -8
- package/dist/{ganttDiagram-PKOTCBZU-9D-LXF6P.js → ganttDiagram-EL5Y4UJY-DbzEBLbl.js} +15 -15
- package/dist/gitGraph-4MIJSDKK-Dy9uQXGh.js +3 -0
- package/dist/{gitGraphDiagram-DS77QQ5N-BfpsXTLf.js → gitGraphDiagram-WWUBYQGX-BMf0iKi1.js} +10 -10
- package/dist/{glide-data-editor-sPZ8fUFn.js → glide-data-editor-Bcy8iaZa.js} +2785 -2562
- package/dist/{glide-utils-NShAPPtn.js → glide-utils-BMnFm0vZ.js} +4 -4
- package/dist/highlighted-body-KPVGNVTW-Ad3MKZ18.js +38 -0
- package/dist/{html-to-image-BTYnN4ev.js → html-to-image-mVIbKn_Y.js} +5720 -5452
- package/dist/info-A6RAGUB7-DKoayiHY.js +3 -0
- package/dist/{infoDiagram-6WML65LV-DqCTXHVy.js → infoDiagram-27XIBGKW-B_ucqo-U.js} +7 -7
- package/dist/{ishikawaDiagram-WSZJBQD7-BCUYmZ1v.js → ishikawaDiagram-5VMMS53U-BZFx9b-o.js} +8 -8
- package/dist/{journeyDiagram-NVQOT4AX-BXB6M4zN.js → journeyDiagram-3NMN7TZE-D2LcKDUO.js} +8 -8
- package/dist/{jsx-runtime-CpoKNRgu.js → jsx-runtime-DgDPJV9S.js} +1 -1
- package/dist/{kanban-definition-27J2QSJJ-CGRhrDUX.js → kanban-definition-UXKFOSKX-BpIfcu3G.js} +29 -29
- package/dist/katex-DFBiSucW.js +21840 -0
- package/dist/{label-lwzzBHUW.js → label-e37ixur5.js} +6 -6
- package/dist/{linear-D5r_1YqD.js → linear-Cnaq3Tfb.js} +4 -4
- package/dist/{loader-VZ__bv4g.js → loader-D2W4oM-3.js} +15 -15
- package/dist/main.js +7018 -12382
- package/dist/mermaid-B1Jb9HfY.js +3084 -0
- package/dist/mermaid-HWGCJPDP-DYCzSILp.js +2 -0
- package/dist/mermaid-parser.core-DxuSfYwJ.js +638 -0
- package/dist/{mhchem-BjwrxcV-.js → mhchem-DWCF06w9.js} +1 -1
- package/dist/{micromark-factory-space-DruVGzeG.js → micromark-factory-space-DGxAzmw8.js} +2 -2
- package/dist/{mindmap-definition-FAOFIHXS-C9gRhzZq.js → mindmap-definition-YA3MSWOX-CmpAfv8K.js} +17 -17
- package/dist/{node-sql-parser-DesT1xNw.js → node-sql-parser-BiZOJ-FS.js} +0 -3
- package/dist/{number-overlay-editor-De2CabLL.js → number-overlay-editor-CFofZaOi.js} +5 -5
- package/dist/packet-AYTQ26CC-Yw7ajchJ.js +3 -0
- package/dist/{pegDiagram-VL7TDLO6-Df9IUjMD.js → pegDiagram-XKGWAZYB-DO-0Q8SE.js} +19 -20
- package/dist/{pick-SnHlmIBN.js → pick-B7vX8zxG.js} +1 -1
- package/dist/pie-WAS4IAKB-BKdKOAkL.js +3 -0
- package/dist/{pieDiagram-7S7Q4E2Y-BmRzQ8ZP.js → pieDiagram-E7YTZNPT-B1MbuA_g.js} +29 -31
- package/dist/{process-output-CsALk6tp.js → process-output-Cr6U5ULK.js} +4 -4
- package/dist/purify.es-DgKyQviY.js +805 -0
- package/dist/{quadrantDiagram-CIZ2JOQS-wFBvWcxS.js → quadrantDiagram-AXDQQJYC-DftINo6g.js} +5 -5
- package/dist/radar-RG4KPBEZ-ScR_D_Ts.js +3 -0
- package/dist/railroad-74A4TZTK-DQvPSdo5.js +3 -0
- package/dist/railroad-abnf-HS5TGJTU-CsJQG2O8.js +3 -0
- package/dist/railroad-ebnf-LZEXJU2U-BgEobkSn.js +3 -0
- package/dist/railroad-peg-WCYAUIDC-DjLAjofI.js +3 -0
- package/dist/{railroadDiagram-AXF67PYL-DxbIatiN.js → railroadDiagram-O6MQD6OU-DPVOQUXC.js} +17 -18
- package/dist/{react-dom-C94wmq5w.js → react-dom-BUgJ-ab_.js} +3 -3
- package/dist/{react-DMWcHin-.js → react-ofJbxM4x.js} +2 -2
- package/dist/{react-vega-DSD5aT7_.js → react-vega-5AcMW8gG.js} +10012 -9369
- package/dist/{requirementDiagram-LRYGKXZP-X_x-Y713.js → requirementDiagram-BXWQKSXE-CC7wZ-tM.js} +20 -19
- package/dist/{reveal-component-DVMzBxwv.js → reveal-component-BK1wyO-B.js} +1171 -1105
- package/dist/{sankeyDiagram-W5VNT64P-BYJALbbm.js → sankeyDiagram-P5KCCOFB-CDKR5TJH.js} +4 -4
- package/dist/schemas-BDZr-nP0.js +5727 -0
- package/dist/{select-3qHpFKF9.js → select-UMOSCa3W.js} +246 -246
- package/dist/{sequenceDiagram-SI44F4Z6-BiPBe3Sv.js → sequenceDiagram-WJ2MYXX4-DomSyoJI.js} +11 -11
- package/dist/{sizeCapture-X5ZJPWSS-BKLDeh5H.js → sizeCapture-INFHLROL-Dx5SpkQF.js} +2 -2
- package/dist/{spec-CutWdqo3.js → spec-g740fOWu.js} +4 -4
- package/dist/{src-C31ngt98.js → src-CA_m4ONl.js} +298 -303
- package/dist/{stateDiagram-OKZ733FA-B7QyNBxH.js → stateDiagram-D77RDMKH-SQLLjdtF.js} +19 -20
- package/dist/stateDiagram-v2-MP3YSRHH-Dup4KkIr.js +30 -0
- package/dist/style.css +2 -2
- package/dist/{swimlanes-SLNWSIFB-B4f8VP3b.js → swimlanes-42K2YHIH-ZXbhyGv6.js} +1501 -1591
- package/dist/swimlanesDiagram-VR7AAH4N-CluwxV0g.js +30 -0
- package/dist/{swiper-component-C90YjhaV.js → swiper-component-IOUowglM.js} +39 -26
- package/dist/{time-aWGfjN8x.js → time-BieKwdYS.js} +42 -42
- package/dist/{timeline-definition-Z64GVDOM-Dacq_5lr.js → timeline-definition-24CTP7MA-B8i6B9RR.js} +7 -7
- package/dist/{toDate-D-Rx3ux5.js → toDate-C3JOXlJT.js} +10 -9
- package/dist/{tooltip-Dt77sBeT.js → tooltip-CdE8k0pS.js} +42 -42
- package/dist/treeView-Q6P3EWNA-DuRV97YF.js +3 -0
- package/dist/treemap-WGGIJYW6-AsLq-uwC.js +3 -0
- package/dist/{use-vega-container-remeasure-DUW4tRxq.js → use-vega-container-remeasure-4DwJbPWu.js} +2 -2
- package/dist/{useAsyncData-CH6-CgJF.js → useAsyncData-C0f7qnnN.js} +3 -3
- package/dist/{useDateFormatter-Cp9Jdxls.js → useDateFormatter-BKpQHt-W.js} +8 -8
- package/dist/{useDeepCompareMemoize-JC87C_jO.js → useDeepCompareMemoize-QCa0HbWB.js} +2 -2
- package/dist/{useIframeCapabilities-De3C-9b4.js → useIframeCapabilities-CVtNkI3Y.js} +2 -2
- package/dist/{useLifecycle-B4RGlyf0.js → useLifecycle-BGRBkTFT.js} +6 -6
- package/dist/useTheme-iQ0VoptU.js +904 -0
- package/dist/{vega-component-D-IXRnlx.js → vega-component-DRI4BDLQ.js} +15 -15
- package/dist/{vega-embed-container-TJ5z5dZw.js → vega-embed-container-CbnTccZi.js} +6 -6
- package/dist/vega-loader.browser-D95WfUcj.js +1139 -0
- package/dist/{vennDiagram-T6HMQDX7-D-Rcq3Iu.js → vennDiagram-4TSXK5OY-CS7lHhxI.js} +9 -9
- package/dist/wardley-WFR3VGLG-Na-tFhQJ.js +3 -0
- package/dist/{wardleyDiagram-T6FBY63Y-Z-Og7_Wd.js → wardleyDiagram-VM6X3IG4-BSm-L8JI.js} +10 -10
- package/dist/{xychartDiagram-ELKLHX3M-BDJ2dITA.js → xychartDiagram-S5SC5T6Z-8fKCJGrJ.js} +248 -139
- package/package.json +52 -52
- package/src/__mocks__/requests.ts +7 -2
- package/src/__tests__/__snapshots__/CellStatus.test.tsx.snap +12 -12
- package/src/components/chat/acp/__tests__/agent-panel.test.tsx +270 -0
- package/src/components/chat/acp/agent-panel.tsx +45 -44
- package/src/components/data-table/column-explorer-panel/column-explorer.tsx +2 -6
- package/src/components/data-table/column-visibility-dropdown.tsx +9 -3
- package/src/components/datasources/components.tsx +4 -2
- package/src/components/editor/RecoveryButton.tsx +1 -0
- package/src/components/editor/chrome/components/feedback-button.tsx +10 -9
- package/src/components/editor/chrome/panels/__tests__/packages-panel.test.tsx +143 -0
- package/src/components/editor/chrome/panels/packages-panel.tsx +145 -51
- package/src/components/editor/code/__tests__/readonly-diff.test.tsx +65 -0
- package/src/components/editor/code/readonly-diff.tsx +1 -1
- package/src/components/editor/file-tree/__tests__/tree-actions.test.tsx +54 -0
- package/src/components/editor/file-tree/tree-actions.tsx +11 -14
- package/src/components/editor/notebook-cell.tsx +4 -2
- package/src/components/editor/output/Outputs.css +1 -0
- package/src/components/editor/package-alert.tsx +25 -1
- package/src/components/home/components.tsx +17 -0
- package/src/components/pages/gallery-page.tsx +2 -4
- package/src/components/pages/home-page.tsx +2 -4
- package/src/components/slides/slide-form.tsx +1 -0
- package/src/components/slides/slide-notes-editor.tsx +1 -0
- package/src/components/terminal/terminal.tsx +4 -4
- package/src/components/tracing/tracing-spec.ts +1 -1
- package/src/components/ui/table.tsx +1 -1
- package/src/core/cells/__tests__/cell.test.ts +61 -0
- package/src/core/cells/cell.ts +9 -1
- package/src/core/cells/pending-delete-service.ts +12 -16
- package/src/core/codemirror/language/__tests__/sql.test.ts +70 -2
- package/src/core/codemirror/language/languages/sql/sql.ts +16 -1
- package/src/core/codemirror/rtc/extension.ts +5 -2
- package/src/core/datasets/__tests__/data-source.test.ts +2 -0
- package/src/core/datasets/data-source-connections.ts +15 -10
- package/src/core/islands/__tests__/parse.test.ts +140 -7
- package/src/core/islands/parse.ts +20 -0
- package/src/core/packages/__tests__/useInstallPackage.test.tsx +47 -1
- package/src/core/packages/toast-components.tsx +26 -0
- package/src/core/packages/useInstallPackage.ts +7 -2
- package/src/core/runtime/__tests__/runtime.test.ts +11 -0
- package/src/core/runtime/runtime.ts +7 -2
- package/src/core/wasm/bridge.ts +1 -0
- package/src/core/websocket/transports/transport.ts +1 -1
- package/src/core/websocket/transports/ws.ts +1 -1
- package/src/css/app/Cell.css +2 -0
- package/src/plugins/core/RenderHTML.tsx +22 -2
- package/src/plugins/core/__test__/RenderHTML.test.ts +187 -0
- package/src/plugins/impl/data-frames/panel.tsx +1 -0
- package/src/plugins/layout/AccordionPlugin.tsx +7 -2
- package/src/plugins/layout/__test__/AccordionPlugin.test.tsx +66 -0
- package/dist/_baseMerge-Dv8bBloN.js +0 -73
- package/dist/_initCloneObject---vediN2.js +0 -95
- package/dist/arc-DOVLrCPd.js +0 -82
- package/dist/architecture-TIHT7OUA-MiJpPpQW.js +0 -3
- package/dist/array-CApNbSU9.js +0 -6
- package/dist/assets/__vite-browser-external-BdKGjRZ4.js +0 -1
- package/dist/assets/worker-DlIBfp9S.js +0 -98
- package/dist/blockDiagram-VBNYF7ZC-Bc--I65C.js +0 -3158
- package/dist/chat-ui-DttQ-5Ut.js +0 -8455
- package/dist/chunk-3NCLNEKW-BIp_lB_4.js +0 -14
- package/dist/chunk-5FCAYU7R-C_HO9A1J.js +0 -23
- package/dist/chunk-5HE753X5-Bixm_MV-.js +0 -38
- package/dist/chunk-5JV3BV7I-CH5J3iZY.js +0 -54
- package/dist/chunk-5TONJI2A-DG6gDiSS.js +0 -62
- package/dist/chunk-7BUUIJ7U-5afmIPeo.js +0 -82
- package/dist/chunk-BIQX33UG-7TMBUf89.js +0 -23
- package/dist/chunk-CQNSW5MT-Cnqqsxt-.js +0 -38
- package/dist/chunk-CYSBUYHQ-BAbymFHR.js +0 -23
- package/dist/chunk-EMLP6XTP-Bsz-QL77.js +0 -23
- package/dist/chunk-J7OUQ5F2-CM_meqZH.js +0 -57
- package/dist/chunk-JG7HCLWE-DUnCDgPk.js +0 -62
- package/dist/chunk-MOZMSUNE-BG6IHvzT.js +0 -35
- package/dist/chunk-OSBZ3O6U-CYwj_bvR.js +0 -23
- package/dist/chunk-QBLGF6JB-B4vJ4j8J.js +0 -23
- package/dist/chunk-QR6OTTB3-D4wH2ldi.js +0 -3738
- package/dist/chunk-R7FJI6CG-Blf8FcmZ.js +0 -64
- package/dist/chunk-RYQCIY6F-BWbIlBIH.js +0 -241
- package/dist/chunk-U6XO7XAA-COw445DS.js +0 -63
- package/dist/chunk-UBXNYLIW-BHigVU4H.js +0 -32
- package/dist/chunk-YOTPTUD7-Dn044Q_d.js +0 -30
- package/dist/chunk-ZIRB5QZD-BR4TMfOa.js +0 -1153
- package/dist/classDiagram-JCYQIIEL-DmXSLxe_.js +0 -30
- package/dist/classDiagram-v2-OCEON4UE-CooqVexA.js +0 -30
- package/dist/click-outside-container-D_URcm3D.js +0 -167
- package/dist/code-block-37QAKDTI-CQrzBOr-.js +0 -107
- package/dist/cynefin-VYW2F7L2-CeHAxOEX.js +0 -3
- package/dist/dagre-VZM6K2ZE-CJggWPTJ.js +0 -328
- package/dist/dist-ABQjhuek.js +0 -64
- package/dist/dist-CO5R6VMi.js +0 -538
- package/dist/eventmodeling-45OFAUF4-B_lWZ-Pd.js +0 -3
- package/dist/flowDiagram-UKHOOZJN-g1AmrZzM.js +0 -17
- package/dist/gitGraph-TEB2WS4Q-Dj-eXUph.js +0 -3
- package/dist/info-DKCQHKI2-Bhb-pe2e.js +0 -3
- package/dist/line-CuKjIQa1.js +0 -34
- package/dist/map-BJpOfPlL.js +0 -149
- package/dist/math-BXtKgYah.js +0 -10
- package/dist/mermaid-4DMBBIKO-Ddp9TgNp.js +0 -2
- package/dist/mermaid-BsHdQeQf.js +0 -1173
- package/dist/mermaid-parser.core-Din9FvSi.js +0 -99
- package/dist/packet-7NZHBO7P-fbkIIyKE.js +0 -3
- package/dist/path-BNHuHZP8.js +0 -87
- package/dist/pie-RZYD4A2V-CLRIsxY1.js +0 -3
- package/dist/purify.es-CB-YO1Hn.js +0 -774
- package/dist/radar-I7S5WNFK-BGzCbgXu.js +0 -3
- package/dist/railroad-3IZDKUUU-CvQIIcuU.js +0 -3
- package/dist/railroad-abnf-AHOZXSZD-CMwtlNtu.js +0 -3
- package/dist/railroad-ebnf-EBAXGLYW-n1QUOAsh.js +0 -3
- package/dist/railroad-peg-LSFZ7HO6-PjnrpmCs.js +0 -3
- package/dist/schemas-DzK6U94N.js +0 -6057
- package/dist/stateDiagram-v2-UEYNNEHI-BTRUs8Il.js +0 -30
- package/dist/step-CKczO72Q.js +0 -670
- package/dist/swimlanesDiagram-ULZ7WXOC-NBmgBl9G.js +0 -31
- package/dist/timer-DpDyj9G0.js +0 -596
- package/dist/treeView-QDETBFTQ-DU8LwHuf.js +0 -3
- package/dist/treemap-6X3UGDF4-DUk4-k_O.js +0 -3
- package/dist/useTheme-CVJ0UOf2.js +0 -841
- package/dist/vega-loader.browser-DEggZzni.js +0 -1083
- package/dist/wardley-OPB4EBWU-Db-AaGas.js +0 -3
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { a as e } from "./rolldown-runtime-Cb76FRpK.js";
|
|
2
|
-
import { t } from "./react-
|
|
3
|
-
import { t as n } from "./jsx-runtime-
|
|
4
|
-
import { l as r, o as i, r as a, s as o, t as s, u as c } from "./extends-
|
|
5
|
-
import { $ as l, At as u, C as d, Ct as f, Dt as p, F as m, Ft as h, Gt as g, H as _, Ht as v, Kt as
|
|
6
|
-
import { a as
|
|
2
|
+
import { t } from "./react-ofJbxM4x.js";
|
|
3
|
+
import { t as n } from "./jsx-runtime-DgDPJV9S.js";
|
|
4
|
+
import { l as r, o as i, r as a, s as o, t as s, u as c } from "./extends-Do6pRuJa.js";
|
|
5
|
+
import { $ as l, At as u, C as d, Ct as f, Dt as p, F as m, Ft as h, Gt as g, H as _, Ht as v, Kt as ee, Lt as y, Nt as b, Rt as te, Ut as x, Vt as ne, Z as S, _t as C, a as re, at as w, bt as ie, dt as T, ft as E, g as D, ht as O, it as k, j as A, jt as j, k as ae, kt as M, mt as N, ot as P, p as oe, st as se, tt as F, ut as I, vt as ce, wt as L, x as R, xt as z, yt as B } from "./dist-Kxgjxakw.js";
|
|
6
|
+
import { a as le, c as ue, i as de, r as V } from "./dist-B1vYLK28.js";
|
|
7
7
|
//#region ../node_modules/.pnpm/@codemirror+search@6.7.1/node_modules/@codemirror/search/dist/index.js
|
|
8
|
-
var
|
|
8
|
+
var H = /* @__PURE__ */ e(t()), fe = typeof String.prototype.normalize == "function" ? (e) => e.normalize("NFKD") : (e) => e, U = class {
|
|
9
9
|
constructor(e, t, n = 0, r = e.length, i, a) {
|
|
10
10
|
this.test = a, this.value = {
|
|
11
11
|
from: 0,
|
|
12
12
|
to: 0,
|
|
13
13
|
precise: !1
|
|
14
|
-
}, this.done = !1, this.matches = [], this.buffer = "", this.bufferPos = 0, this.iter = e.iterRange(n, r), this.bufferStart = n, this.normalize = i ? (e) => i(
|
|
14
|
+
}, this.done = !1, this.matches = [], this.buffer = "", this.bufferPos = 0, this.iter = e.iterRange(n, r), this.bufferStart = n, this.normalize = i ? (e) => i(fe(e)) : fe, this.query = this.normalize(t);
|
|
15
15
|
}
|
|
16
16
|
peek() {
|
|
17
17
|
if (this.bufferPos == this.buffer.length) {
|
|
18
18
|
if (this.bufferStart += this.buffer.length, this.iter.next(), this.iter.done) return -1;
|
|
19
19
|
this.bufferPos = 0, this.buffer = this.iter.value;
|
|
20
20
|
}
|
|
21
|
-
return
|
|
21
|
+
return ne(this.buffer, this.bufferPos);
|
|
22
22
|
}
|
|
23
23
|
next() {
|
|
24
24
|
for (; this.matches.length;) this.matches.pop();
|
|
@@ -28,7 +28,7 @@ var I = /* @__PURE__ */ e(t()), ve = typeof String.prototype.normalize == "funct
|
|
|
28
28
|
for (;;) {
|
|
29
29
|
let e = this.peek();
|
|
30
30
|
if (e < 0) return this.done = !0, this;
|
|
31
|
-
let t =
|
|
31
|
+
let t = ee(e), n = this.bufferStart + this.bufferPos;
|
|
32
32
|
this.bufferPos += v(e);
|
|
33
33
|
let r = this.normalize(t);
|
|
34
34
|
if (r.length) for (let e = 0, i = n, a = !0;; e++) {
|
|
@@ -60,20 +60,20 @@ var I = /* @__PURE__ */ e(t()), ve = typeof String.prototype.normalize == "funct
|
|
|
60
60
|
})), a && this.test && !this.test(a.from, a.to, this.buffer, this.bufferStart) && (a = null), a;
|
|
61
61
|
}
|
|
62
62
|
};
|
|
63
|
-
typeof Symbol < "u" && (
|
|
63
|
+
typeof Symbol < "u" && (U.prototype[Symbol.iterator] = function() {
|
|
64
64
|
return this;
|
|
65
65
|
});
|
|
66
|
-
var
|
|
66
|
+
var pe = {
|
|
67
67
|
from: -1,
|
|
68
68
|
to: -1,
|
|
69
69
|
match: /*@__PURE__*/ /.*/.exec(""),
|
|
70
70
|
precise: !0
|
|
71
|
-
},
|
|
71
|
+
}, me = "gm" + (/x/.unicode == null ? "" : "u"), he = class {
|
|
72
72
|
constructor(e, t, n, r = 0, i = e.length) {
|
|
73
|
-
if (this.text = e, this.to = i, this.curLine = "", this.done = !1, this.value =
|
|
74
|
-
this.re = new RegExp(t,
|
|
73
|
+
if (this.text = e, this.to = i, this.curLine = "", this.done = !1, this.value = pe, /\\[sWDnr]|\n|\r|\[\^/.test(t)) return new ve(e, t, n, r, i);
|
|
74
|
+
this.re = new RegExp(t, me + (n?.ignoreCase ? "i" : "")), this.test = n?.test, this.iter = e.iter();
|
|
75
75
|
let a = e.lineAt(r);
|
|
76
|
-
this.curLineStart = a.from, this.matchPos =
|
|
76
|
+
this.curLineStart = a.from, this.matchPos = W(e, r), this.getLine(this.curLineStart);
|
|
77
77
|
}
|
|
78
78
|
getLine(e) {
|
|
79
79
|
this.iter.next(e), this.iter.lineBreak ? this.curLine = "" : (this.curLine = this.iter.value, this.curLineStart + this.curLine.length > this.to && (this.curLine = this.curLine.slice(0, this.to - this.curLineStart)), this.iter.next());
|
|
@@ -87,7 +87,7 @@ var ye = {
|
|
|
87
87
|
let t = this.matchPos <= this.to && this.re.exec(this.curLine);
|
|
88
88
|
if (t) {
|
|
89
89
|
let n = this.curLineStart + t.index, r = n + t[0].length;
|
|
90
|
-
if (this.matchPos =
|
|
90
|
+
if (this.matchPos = W(this.text, r + +(n == r)), n == this.curLineStart + this.curLine.length && this.nextLine(), (n < r || n > this.value.to) && (!this.test || this.test(n, r, t))) return this.value = {
|
|
91
91
|
from: n,
|
|
92
92
|
to: r,
|
|
93
93
|
precise: !0,
|
|
@@ -98,7 +98,7 @@ var ye = {
|
|
|
98
98
|
else return this.done = !0, this;
|
|
99
99
|
}
|
|
100
100
|
}
|
|
101
|
-
},
|
|
101
|
+
}, ge = /*@__PURE__*/ new WeakMap(), _e = class e {
|
|
102
102
|
constructor(e, t) {
|
|
103
103
|
this.from = e, this.text = t;
|
|
104
104
|
}
|
|
@@ -106,18 +106,18 @@ var ye = {
|
|
|
106
106
|
return this.from + this.text.length;
|
|
107
107
|
}
|
|
108
108
|
static get(t, n, r) {
|
|
109
|
-
let i =
|
|
109
|
+
let i = ge.get(t);
|
|
110
110
|
if (!i || i.from >= r || i.to <= n) {
|
|
111
111
|
let i = new e(n, t.sliceString(n, r));
|
|
112
|
-
return
|
|
112
|
+
return ge.set(t, i), i;
|
|
113
113
|
}
|
|
114
114
|
if (i.from == n && i.to == r) return i;
|
|
115
115
|
let { text: a, from: o } = i;
|
|
116
|
-
return o > n && (a = t.sliceString(n, o) + a, o = n), i.to < r && (a += t.sliceString(i.to, r)),
|
|
116
|
+
return o > n && (a = t.sliceString(n, o) + a, o = n), i.to < r && (a += t.sliceString(i.to, r)), ge.set(t, new e(o, a)), new e(n, a.slice(n - o, r - o));
|
|
117
117
|
}
|
|
118
|
-
},
|
|
118
|
+
}, ve = class {
|
|
119
119
|
constructor(e, t, n, r, i) {
|
|
120
|
-
this.text = e, this.to = i, this.done = !1, this.value =
|
|
120
|
+
this.text = e, this.to = i, this.done = !1, this.value = pe, this.matchPos = W(e, r), this.re = new RegExp(t, me + (n?.ignoreCase ? "i" : "")), this.test = n?.test, this.flat = _e.get(e, r, this.chunkEnd(r + 5e3));
|
|
121
121
|
}
|
|
122
122
|
chunkEnd(e) {
|
|
123
123
|
return e >= this.to ? this.to : this.text.lineAt(e).to;
|
|
@@ -132,31 +132,31 @@ var ye = {
|
|
|
132
132
|
to: n,
|
|
133
133
|
precise: !0,
|
|
134
134
|
match: t
|
|
135
|
-
}, this.matchPos =
|
|
135
|
+
}, this.matchPos = W(this.text, n + +(e == n)), this;
|
|
136
136
|
}
|
|
137
137
|
if (this.flat.to == this.to) return this.done = !0, this;
|
|
138
|
-
this.flat =
|
|
138
|
+
this.flat = _e.get(this.text, this.flat.from, this.chunkEnd(this.flat.from + this.flat.text.length * 2));
|
|
139
139
|
}
|
|
140
140
|
}
|
|
141
141
|
};
|
|
142
|
-
typeof Symbol < "u" && (
|
|
142
|
+
typeof Symbol < "u" && (he.prototype[Symbol.iterator] = ve.prototype[Symbol.iterator] = function() {
|
|
143
143
|
return this;
|
|
144
144
|
});
|
|
145
|
-
function
|
|
145
|
+
function ye(e) {
|
|
146
146
|
try {
|
|
147
|
-
return new RegExp(e,
|
|
147
|
+
return new RegExp(e, me), !0;
|
|
148
148
|
} catch {
|
|
149
149
|
return !1;
|
|
150
150
|
}
|
|
151
151
|
}
|
|
152
|
-
function
|
|
152
|
+
function W(e, t) {
|
|
153
153
|
if (t >= e.length) return t;
|
|
154
154
|
let n = e.lineAt(t), r;
|
|
155
155
|
for (; t < n.to && (r = n.text.charCodeAt(t - n.from)) >= 56320 && r < 57344;) t++;
|
|
156
156
|
return t;
|
|
157
157
|
}
|
|
158
|
-
var
|
|
159
|
-
let { state: t } = e, n = String(t.doc.lineAt(e.state.selection.main.head).number), { close: r, result: i } =
|
|
158
|
+
var be = (e) => {
|
|
159
|
+
let { state: t } = e, n = String(t.doc.lineAt(e.state.selection.main.head).number), { close: r, result: i } = ie(e, {
|
|
160
160
|
label: t.phrase("Go to line"),
|
|
161
161
|
input: {
|
|
162
162
|
type: "text",
|
|
@@ -177,36 +177,36 @@ var Te = (e) => {
|
|
|
177
177
|
let e = f / 100;
|
|
178
178
|
o && (e = e * (o == "-" ? -1 : 1) + a.number / t.doc.lines), f = Math.round(t.doc.lines * e);
|
|
179
179
|
} else s && o && (f = f * (o == "-" ? -1 : 1) + a.number);
|
|
180
|
-
let p = t.doc.line(Math.max(1, Math.min(t.doc.lines, f))), m =
|
|
180
|
+
let p = t.doc.line(Math.max(1, Math.min(t.doc.lines, f))), m = M.cursor(p.from + Math.max(0, Math.min(d, p.length)));
|
|
181
181
|
e.dispatch({
|
|
182
182
|
effects: [r, l.scrollIntoView(m.from, { y: "center" })],
|
|
183
183
|
selection: m
|
|
184
184
|
});
|
|
185
185
|
}), !0;
|
|
186
|
-
},
|
|
186
|
+
}, xe = {
|
|
187
187
|
highlightWordAroundCursor: !1,
|
|
188
188
|
minSelectionLength: 1,
|
|
189
189
|
maxMatches: 100,
|
|
190
190
|
wholeWords: !1
|
|
191
|
-
},
|
|
192
|
-
return
|
|
191
|
+
}, Se = /*@__PURE__*/ j.define({ combine(e) {
|
|
192
|
+
return x(e, xe, {
|
|
193
193
|
highlightWordAroundCursor: (e, t) => e || t,
|
|
194
194
|
minSelectionLength: Math.min,
|
|
195
195
|
maxMatches: Math.min
|
|
196
196
|
});
|
|
197
197
|
} });
|
|
198
|
-
function
|
|
199
|
-
let t = [
|
|
200
|
-
return e && t.push(
|
|
198
|
+
function Ce(e) {
|
|
199
|
+
let t = [ke, Oe];
|
|
200
|
+
return e && t.push(Se.of(e)), t;
|
|
201
201
|
}
|
|
202
|
-
var
|
|
203
|
-
function
|
|
202
|
+
var we = /*@__PURE__*/ S.mark({ class: "cm-selectionMatch" }), Te = /*@__PURE__*/ S.mark({ class: "cm-selectionMatch cm-selectionMatch-main" });
|
|
203
|
+
function Ee(e, t, n, r) {
|
|
204
204
|
return (n == 0 || e(t.sliceDoc(n - 1, n)) != p.Word) && (r == t.doc.length || e(t.sliceDoc(r, r + 1)) != p.Word);
|
|
205
205
|
}
|
|
206
|
-
function
|
|
206
|
+
function De(e, t, n, r) {
|
|
207
207
|
return e(t.sliceDoc(n, n + 1)) == p.Word && e(t.sliceDoc(r - 1, r)) == p.Word;
|
|
208
208
|
}
|
|
209
|
-
var
|
|
209
|
+
var Oe = /*@__PURE__*/ F.fromClass(class {
|
|
210
210
|
constructor(e) {
|
|
211
211
|
this.decorations = this.getDeco(e);
|
|
212
212
|
}
|
|
@@ -214,43 +214,43 @@ var Ne = /*@__PURE__*/ se.fromClass(class {
|
|
|
214
214
|
(e.selectionSet || e.docChanged || e.viewportChanged) && (this.decorations = this.getDeco(e.view));
|
|
215
215
|
}
|
|
216
216
|
getDeco(e) {
|
|
217
|
-
let t = e.state.facet(
|
|
218
|
-
if (r.ranges.length > 1) return
|
|
217
|
+
let t = e.state.facet(Se), { state: n } = e, r = n.selection;
|
|
218
|
+
if (r.ranges.length > 1) return S.none;
|
|
219
219
|
let i = r.main, a, o = null;
|
|
220
220
|
if (i.empty) {
|
|
221
|
-
if (!t.highlightWordAroundCursor) return
|
|
221
|
+
if (!t.highlightWordAroundCursor) return S.none;
|
|
222
222
|
let e = n.wordAt(i.head);
|
|
223
|
-
if (!e) return
|
|
223
|
+
if (!e) return S.none;
|
|
224
224
|
o = n.charCategorizer(i.head), a = n.sliceDoc(e.from, e.to);
|
|
225
225
|
} else {
|
|
226
226
|
let e = i.to - i.from;
|
|
227
|
-
if (e < t.minSelectionLength || e > 200) return
|
|
227
|
+
if (e < t.minSelectionLength || e > 200) return S.none;
|
|
228
228
|
if (t.wholeWords) {
|
|
229
|
-
if (a = n.sliceDoc(i.from, i.to), o = n.charCategorizer(i.head), !(
|
|
230
|
-
} else if (a = n.sliceDoc(i.from, i.to), !a) return
|
|
229
|
+
if (a = n.sliceDoc(i.from, i.to), o = n.charCategorizer(i.head), !(Ee(o, n, i.from, i.to) && De(o, n, i.from, i.to))) return S.none;
|
|
230
|
+
} else if (a = n.sliceDoc(i.from, i.to), !a) return S.none;
|
|
231
231
|
}
|
|
232
232
|
let s = [];
|
|
233
233
|
for (let r of e.visibleRanges) {
|
|
234
|
-
let e = new
|
|
234
|
+
let e = new U(n.doc, a, r.from, r.to);
|
|
235
235
|
for (; !e.next().done;) {
|
|
236
236
|
let { from: r, to: a } = e.value;
|
|
237
|
-
if ((!o ||
|
|
237
|
+
if ((!o || Ee(o, n, r, a)) && (i.empty && r <= i.from && a >= i.to ? s.push(Te.range(r, a)) : (r >= i.to || a <= i.from) && s.push(we.range(r, a)), s.length > t.maxMatches)) return S.none;
|
|
238
238
|
}
|
|
239
239
|
}
|
|
240
|
-
return
|
|
240
|
+
return S.set(s);
|
|
241
241
|
}
|
|
242
|
-
}, { decorations: (e) => e.decorations }),
|
|
242
|
+
}, { decorations: (e) => e.decorations }), ke = /*@__PURE__*/ l.baseTheme({
|
|
243
243
|
".cm-selectionMatch": { backgroundColor: "#99ff7780" },
|
|
244
244
|
".cm-searchMatch .cm-selectionMatch": { backgroundColor: "transparent" }
|
|
245
|
-
}),
|
|
246
|
-
let { selection: n } = e, r =
|
|
245
|
+
}), Ae = ({ state: e, dispatch: t }) => {
|
|
246
|
+
let { selection: n } = e, r = M.create(n.ranges.map((t) => e.wordAt(t.head) || M.cursor(t.head)), n.mainIndex);
|
|
247
247
|
return !r.eq(n) && (t(e.update({ selection: r })), !0);
|
|
248
248
|
};
|
|
249
|
-
function
|
|
249
|
+
function je(e, t) {
|
|
250
250
|
let { main: n, ranges: r } = e.selection, i = e.wordAt(n.head), a = i && i.from == n.from && i.to == n.to;
|
|
251
|
-
for (let n = !1, i = new
|
|
251
|
+
for (let n = !1, i = new U(e.doc, t, r[r.length - 1].to);;) if (i.next(), i.done) {
|
|
252
252
|
if (n) return null;
|
|
253
|
-
i = new
|
|
253
|
+
i = new U(e.doc, t, 0, Math.max(0, r[r.length - 1].from - 1)), n = !0;
|
|
254
254
|
} else {
|
|
255
255
|
if (n && r.some((e) => e.from == i.value.from)) continue;
|
|
256
256
|
if (a) {
|
|
@@ -260,32 +260,32 @@ function Ie(e, t) {
|
|
|
260
260
|
return i.value;
|
|
261
261
|
}
|
|
262
262
|
}
|
|
263
|
-
var
|
|
263
|
+
var Me = ({ state: e, dispatch: t }) => {
|
|
264
264
|
let { ranges: n } = e.selection;
|
|
265
|
-
if (n.some((e) => e.from === e.to)) return
|
|
265
|
+
if (n.some((e) => e.from === e.to)) return Ae({
|
|
266
266
|
state: e,
|
|
267
267
|
dispatch: t
|
|
268
268
|
});
|
|
269
269
|
let r = e.sliceDoc(n[0].from, n[0].to);
|
|
270
270
|
if (e.selection.ranges.some((t) => e.sliceDoc(t.from, t.to) != r)) return !1;
|
|
271
|
-
let i =
|
|
271
|
+
let i = je(e, r);
|
|
272
272
|
return i ? (t(e.update({
|
|
273
|
-
selection: e.selection.addRange(
|
|
273
|
+
selection: e.selection.addRange(M.range(i.from, i.to), !1),
|
|
274
274
|
effects: l.scrollIntoView(i.to)
|
|
275
275
|
})), !0) : !1;
|
|
276
|
-
},
|
|
277
|
-
return
|
|
276
|
+
}, G = /*@__PURE__*/ j.define({ combine(e) {
|
|
277
|
+
return x(e, {
|
|
278
278
|
top: !1,
|
|
279
279
|
caseSensitive: !1,
|
|
280
280
|
literal: !1,
|
|
281
281
|
regexp: !1,
|
|
282
282
|
wholeWord: !1,
|
|
283
|
-
createPanel: (e) => new
|
|
283
|
+
createPanel: (e) => new at(e),
|
|
284
284
|
scrollToMatch: (e) => l.scrollIntoView(e)
|
|
285
285
|
});
|
|
286
|
-
} }),
|
|
286
|
+
} }), Ne = class {
|
|
287
287
|
constructor(e) {
|
|
288
|
-
this.search = e.search, this.caseSensitive = !!e.caseSensitive, this.literal = !!e.literal, this.regexp = !!e.regexp, this.replace = e.replace || "", this.valid = !!this.search && (!this.regexp ||
|
|
288
|
+
this.search = e.search, this.caseSensitive = !!e.caseSensitive, this.literal = !!e.literal, this.regexp = !!e.regexp, this.replace = e.replace || "", this.valid = !!this.search && (!this.regexp || ye(this.search)), this.unquoted = this.unquote(this.search), this.wholeWord = !!e.wholeWord, this.test = e.test;
|
|
289
289
|
}
|
|
290
290
|
unquote(e) {
|
|
291
291
|
return this.literal ? e : e.replace(/\\([nrt\\])/g, (e, t) => t == "n" ? "\n" : t == "r" ? "\r" : t == "t" ? " " : "\\");
|
|
@@ -294,42 +294,42 @@ var Le = ({ state: e, dispatch: t }) => {
|
|
|
294
294
|
return this.search == e.search && this.replace == e.replace && this.caseSensitive == e.caseSensitive && this.regexp == e.regexp && this.wholeWord == e.wholeWord && this.test == e.test;
|
|
295
295
|
}
|
|
296
296
|
create() {
|
|
297
|
-
return this.regexp ? new
|
|
297
|
+
return this.regexp ? new Ve(this) : new Le(this);
|
|
298
298
|
}
|
|
299
299
|
getCursor(e, t = 0, n) {
|
|
300
300
|
let r = e.doc ? e : u.create({ doc: e });
|
|
301
|
-
return n ??= r.doc.length, this.regexp ?
|
|
301
|
+
return n ??= r.doc.length, this.regexp ? q(this, r, t, n) : K(this, r, t, n);
|
|
302
302
|
}
|
|
303
|
-
},
|
|
303
|
+
}, Pe = class {
|
|
304
304
|
constructor(e) {
|
|
305
305
|
this.spec = e;
|
|
306
306
|
}
|
|
307
307
|
};
|
|
308
|
-
function
|
|
308
|
+
function Fe(e, t, n) {
|
|
309
309
|
return (r, i, a, o) => n && !n(r, i, a, o) ? !1 : e(r >= o && i <= o + a.length ? a.slice(r - o, i - o) : t.doc.sliceString(r, i), t, r, i);
|
|
310
310
|
}
|
|
311
|
-
function
|
|
311
|
+
function K(e, t, n, r) {
|
|
312
312
|
let i;
|
|
313
|
-
return e.wholeWord && (i =
|
|
313
|
+
return e.wholeWord && (i = Ie(t.doc, t.charCategorizer(t.selection.main.head))), e.test && (i = Fe(e.test, t, i)), new U(t.doc, e.unquoted, n, r, e.caseSensitive ? void 0 : (e) => e.toLowerCase(), i);
|
|
314
314
|
}
|
|
315
|
-
function
|
|
316
|
-
return (n, r, i, a) => ((a > n || a + i.length < r) && (a = Math.max(0, n - 2), i = e.sliceString(a, Math.min(e.length, r + 2))), (t(
|
|
315
|
+
function Ie(e, t) {
|
|
316
|
+
return (n, r, i, a) => ((a > n || a + i.length < r) && (a = Math.max(0, n - 2), i = e.sliceString(a, Math.min(e.length, r + 2))), (t(J(i, n - a)) != p.Word || t(ze(i, n - a)) != p.Word) && (t(ze(i, r - a)) != p.Word || t(J(i, r - a)) != p.Word));
|
|
317
317
|
}
|
|
318
|
-
var
|
|
318
|
+
var Le = class extends Pe {
|
|
319
319
|
constructor(e) {
|
|
320
320
|
super(e);
|
|
321
321
|
}
|
|
322
322
|
nextMatch(e, t, n) {
|
|
323
|
-
let r =
|
|
323
|
+
let r = K(this.spec, e, n, e.doc.length).nextOverlapping();
|
|
324
324
|
if (r.done) {
|
|
325
325
|
let n = Math.min(e.doc.length, t + this.spec.unquoted.length);
|
|
326
|
-
r =
|
|
326
|
+
r = K(this.spec, e, 0, n).nextOverlapping();
|
|
327
327
|
}
|
|
328
328
|
return r.done || r.value.from == t && r.value.to == n ? null : r.value;
|
|
329
329
|
}
|
|
330
330
|
prevMatchInRange(e, t, n) {
|
|
331
331
|
for (let r = n;;) {
|
|
332
|
-
let n = Math.max(t, r - 1e4 - this.spec.unquoted.length), i =
|
|
332
|
+
let n = Math.max(t, r - 1e4 - this.spec.unquoted.length), i = K(this.spec, e, n, r), a = null;
|
|
333
333
|
for (; !i.nextOverlapping().done;) a = i.value;
|
|
334
334
|
if (a) return a;
|
|
335
335
|
if (n == t) return null;
|
|
@@ -344,7 +344,7 @@ var He = class extends ze {
|
|
|
344
344
|
return this.spec.unquote(this.spec.replace);
|
|
345
345
|
}
|
|
346
346
|
matchAll(e, t) {
|
|
347
|
-
let n =
|
|
347
|
+
let n = K(this.spec, e, 0, e.doc.length), r = [];
|
|
348
348
|
for (; !n.next().done;) {
|
|
349
349
|
if (r.length >= t) return null;
|
|
350
350
|
r.push(n.value);
|
|
@@ -352,37 +352,37 @@ var He = class extends ze {
|
|
|
352
352
|
return r;
|
|
353
353
|
}
|
|
354
354
|
highlight(e, t, n, r) {
|
|
355
|
-
let i =
|
|
355
|
+
let i = K(this.spec, e, Math.max(0, t - this.spec.unquoted.length), Math.min(n + this.spec.unquoted.length, e.doc.length));
|
|
356
356
|
for (; !i.next().done;) r(i.value.from, i.value.to);
|
|
357
357
|
}
|
|
358
358
|
};
|
|
359
|
-
function
|
|
359
|
+
function Re(e, t, n) {
|
|
360
360
|
return (r, i, a) => (!n || n(r, i, a)) && e(a[0], t, r, i);
|
|
361
361
|
}
|
|
362
|
-
function
|
|
362
|
+
function q(e, t, n, r) {
|
|
363
363
|
let i;
|
|
364
|
-
return e.wholeWord && (i =
|
|
364
|
+
return e.wholeWord && (i = Be(t.charCategorizer(t.selection.main.head))), e.test && (i = Re(e.test, t, i)), new he(t.doc, e.search, {
|
|
365
365
|
ignoreCase: !e.caseSensitive,
|
|
366
366
|
test: i
|
|
367
367
|
}, n, r);
|
|
368
368
|
}
|
|
369
|
-
function
|
|
369
|
+
function J(e, t) {
|
|
370
370
|
return e.slice(g(e, t, !1), t);
|
|
371
371
|
}
|
|
372
|
-
function
|
|
372
|
+
function ze(e, t) {
|
|
373
373
|
return e.slice(t, g(e, t));
|
|
374
374
|
}
|
|
375
|
-
function
|
|
376
|
-
return (t, n, r) => !r[0].length || (e(
|
|
375
|
+
function Be(e) {
|
|
376
|
+
return (t, n, r) => !r[0].length || (e(J(r.input, r.index)) != p.Word || e(ze(r.input, r.index)) != p.Word) && (e(ze(r.input, r.index + r[0].length)) != p.Word || e(J(r.input, r.index + r[0].length)) != p.Word);
|
|
377
377
|
}
|
|
378
|
-
var
|
|
378
|
+
var Ve = class extends Pe {
|
|
379
379
|
nextMatch(e, t, n) {
|
|
380
|
-
let r =
|
|
381
|
-
return r.done && (r =
|
|
380
|
+
let r = q(this.spec, e, n, e.doc.length).next();
|
|
381
|
+
return r.done && (r = q(this.spec, e, 0, t).next()), r.done ? null : r.value;
|
|
382
382
|
}
|
|
383
383
|
prevMatchInRange(e, t, n) {
|
|
384
384
|
for (let r = 1;; r++) {
|
|
385
|
-
let i = Math.max(t, n - r * 1e4), a =
|
|
385
|
+
let i = Math.max(t, n - r * 1e4), a = q(this.spec, e, i, n), o = null;
|
|
386
386
|
for (; !a.next().done;) o = a.value;
|
|
387
387
|
if (o && (i == t || o.from > i + 10)) return o;
|
|
388
388
|
if (i == t) return null;
|
|
@@ -403,7 +403,7 @@ var Ge = class extends ze {
|
|
|
403
403
|
});
|
|
404
404
|
}
|
|
405
405
|
matchAll(e, t) {
|
|
406
|
-
let n =
|
|
406
|
+
let n = q(this.spec, e, 0, e.doc.length), r = [];
|
|
407
407
|
for (; !n.next().done;) {
|
|
408
408
|
if (r.length >= t) return null;
|
|
409
409
|
r.push(n.value);
|
|
@@ -411,87 +411,87 @@ var Ge = class extends ze {
|
|
|
411
411
|
return r;
|
|
412
412
|
}
|
|
413
413
|
highlight(e, t, n, r) {
|
|
414
|
-
let i =
|
|
414
|
+
let i = q(this.spec, e, Math.max(0, t - 250), Math.min(n + 250, e.doc.length));
|
|
415
415
|
for (; !i.next().done;) r(i.value.from, i.value.to);
|
|
416
416
|
}
|
|
417
|
-
},
|
|
417
|
+
}, Y = /*@__PURE__*/ y.define(), He = /*@__PURE__*/ y.define(), X = /*@__PURE__*/ te.define({
|
|
418
418
|
create(e) {
|
|
419
|
-
return new
|
|
419
|
+
return new Ue($e(e).create(), null);
|
|
420
420
|
},
|
|
421
421
|
update(e, t) {
|
|
422
|
-
for (let n of t.effects) n.is(
|
|
422
|
+
for (let n of t.effects) n.is(Y) ? e = new Ue(n.value.create(), e.panel) : n.is(He) && (e = new Ue(e.query, n.value ? Qe : null));
|
|
423
423
|
return e;
|
|
424
424
|
},
|
|
425
|
-
provide: (e) =>
|
|
426
|
-
}),
|
|
425
|
+
provide: (e) => z.from(e, (e) => e.panel)
|
|
426
|
+
}), Ue = class {
|
|
427
427
|
constructor(e, t) {
|
|
428
428
|
this.query = e, this.panel = t;
|
|
429
429
|
}
|
|
430
|
-
},
|
|
430
|
+
}, We = /*@__PURE__*/ S.mark({ class: "cm-searchMatch" }), Ge = /*@__PURE__*/ S.mark({ class: "cm-searchMatch cm-searchMatch-selected" }), Ke = /*@__PURE__*/ F.fromClass(class {
|
|
431
431
|
constructor(e) {
|
|
432
|
-
this.view = e, this.decorations = this.highlight(e.state.field(
|
|
432
|
+
this.view = e, this.decorations = this.highlight(e.state.field(X));
|
|
433
433
|
}
|
|
434
434
|
update(e) {
|
|
435
|
-
let t = e.state.field(
|
|
436
|
-
(t != e.startState.field(
|
|
435
|
+
let t = e.state.field(X);
|
|
436
|
+
(t != e.startState.field(X) || e.docChanged || e.selectionSet || e.viewportChanged) && (this.decorations = this.highlight(t));
|
|
437
437
|
}
|
|
438
438
|
highlight({ query: e, panel: t }) {
|
|
439
|
-
if (!t || !e.spec.valid) return
|
|
439
|
+
if (!t || !e.spec.valid) return S.none;
|
|
440
440
|
let { view: n } = this, r = new h();
|
|
441
441
|
for (let t = 0, i = n.visibleRanges, a = i.length; t < a; t++) {
|
|
442
442
|
let { from: o, to: s } = i[t];
|
|
443
443
|
for (; t < a - 1 && s > i[t + 1].from - 500;) s = i[++t].to;
|
|
444
444
|
e.highlight(n.state, o, s, (e, t) => {
|
|
445
445
|
let i = n.state.selection.ranges.some((n) => n.from == e && n.to == t);
|
|
446
|
-
r.add(e, t, i ?
|
|
446
|
+
r.add(e, t, i ? Ge : We);
|
|
447
447
|
});
|
|
448
448
|
}
|
|
449
449
|
return r.finish();
|
|
450
450
|
}
|
|
451
451
|
}, { decorations: (e) => e.decorations });
|
|
452
|
-
function
|
|
452
|
+
function Z(e) {
|
|
453
453
|
return (t) => {
|
|
454
|
-
let n = t.state.field(
|
|
455
|
-
return n && n.query.spec.valid ? e(t, n) :
|
|
454
|
+
let n = t.state.field(X, !1);
|
|
455
|
+
return n && n.query.spec.valid ? e(t, n) : nt(t);
|
|
456
456
|
};
|
|
457
457
|
}
|
|
458
|
-
var
|
|
458
|
+
var Q = /*@__PURE__*/ Z((e, { query: t }) => {
|
|
459
459
|
let { to: n } = e.state.selection.main, r = t.nextMatch(e.state, n, n);
|
|
460
460
|
if (!r) return !1;
|
|
461
|
-
let i =
|
|
461
|
+
let i = M.single(r.from, r.to), a = e.state.facet(G);
|
|
462
462
|
return e.dispatch({
|
|
463
463
|
selection: i,
|
|
464
|
-
effects: [
|
|
464
|
+
effects: [ct(e, r), a.scrollToMatch(i.main, e)],
|
|
465
465
|
userEvent: "select.search"
|
|
466
|
-
}),
|
|
467
|
-
}),
|
|
466
|
+
}), tt(e), !0;
|
|
467
|
+
}), qe = /*@__PURE__*/ Z((e, { query: t }) => {
|
|
468
468
|
let { state: n } = e, { from: r } = n.selection.main, i = t.prevMatch(n, r, r);
|
|
469
469
|
if (!i) return !1;
|
|
470
|
-
let a =
|
|
470
|
+
let a = M.single(i.from, i.to), o = e.state.facet(G);
|
|
471
471
|
return e.dispatch({
|
|
472
472
|
selection: a,
|
|
473
|
-
effects: [
|
|
473
|
+
effects: [ct(e, i), o.scrollToMatch(a.main, e)],
|
|
474
474
|
userEvent: "select.search"
|
|
475
|
-
}),
|
|
476
|
-
}),
|
|
475
|
+
}), tt(e), !0;
|
|
476
|
+
}), Je = /*@__PURE__*/ Z((e, { query: t }) => {
|
|
477
477
|
let n = t.matchAll(e.state, 1e3);
|
|
478
478
|
return !n || !n.length ? !1 : (e.dispatch({
|
|
479
|
-
selection:
|
|
479
|
+
selection: M.create(n.map((e) => M.range(e.from, e.to))),
|
|
480
480
|
userEvent: "select.search.matches"
|
|
481
481
|
}), !0);
|
|
482
|
-
}),
|
|
482
|
+
}), Ye = ({ state: e, dispatch: t }) => {
|
|
483
483
|
let n = e.selection;
|
|
484
484
|
if (n.ranges.length > 1 || n.main.empty) return !1;
|
|
485
485
|
let { from: r, to: i } = n.main, a = [], o = 0;
|
|
486
|
-
for (let t = new
|
|
486
|
+
for (let t = new U(e.doc, e.sliceDoc(r, i)); !t.next().done;) {
|
|
487
487
|
if (a.length > 1e3) return !1;
|
|
488
|
-
t.value.from == r && (o = a.length), a.push(
|
|
488
|
+
t.value.from == r && (o = a.length), a.push(M.range(t.value.from, t.value.to));
|
|
489
489
|
}
|
|
490
490
|
return t(e.update({
|
|
491
|
-
selection:
|
|
491
|
+
selection: M.create(a, o),
|
|
492
492
|
userEvent: "select.search.matches"
|
|
493
493
|
})), !0;
|
|
494
|
-
},
|
|
494
|
+
}, Xe = /*@__PURE__*/ Z((e, { query: t }) => {
|
|
495
495
|
let { state: n } = e, { from: r, to: i } = n.selection.main;
|
|
496
496
|
if (n.readOnly) return !1;
|
|
497
497
|
let a = t.nextMatch(n, r, r);
|
|
@@ -503,13 +503,13 @@ var J = /*@__PURE__*/ q((e, { query: t }) => {
|
|
|
503
503
|
insert: u
|
|
504
504
|
}), o = t.nextMatch(n, o.from, o.to), d.push(l.announce.of(n.phrase("replaced match on line $", n.doc.lineAt(r).number) + "."))) : o = t.nextMatch(n, o.from, o.to);
|
|
505
505
|
let f = e.state.changes(s);
|
|
506
|
-
return o && (c =
|
|
506
|
+
return o && (c = M.single(o.from, o.to).map(f), d.push(ct(e, o)), d.push(n.facet(G).scrollToMatch(c.main, e))), e.dispatch({
|
|
507
507
|
changes: f,
|
|
508
508
|
selection: c,
|
|
509
509
|
effects: d,
|
|
510
510
|
userEvent: "input.replace"
|
|
511
511
|
}), !0;
|
|
512
|
-
}),
|
|
512
|
+
}), Ze = /*@__PURE__*/ Z((e, { query: t }) => {
|
|
513
513
|
if (e.state.readOnly) return !1;
|
|
514
514
|
let n = [];
|
|
515
515
|
for (let r of t.matchAll(e.state, 1e9)) {
|
|
@@ -528,14 +528,14 @@ var J = /*@__PURE__*/ q((e, { query: t }) => {
|
|
|
528
528
|
userEvent: "input.replace.all"
|
|
529
529
|
}), !0;
|
|
530
530
|
});
|
|
531
|
-
function
|
|
532
|
-
return e.state.facet(
|
|
531
|
+
function Qe(e) {
|
|
532
|
+
return e.state.facet(G).createPanel(e);
|
|
533
533
|
}
|
|
534
|
-
function
|
|
534
|
+
function $e(e, t) {
|
|
535
535
|
let n = e.selection.main, r = n.empty || n.to > n.from + 100 ? "" : e.sliceDoc(n.from, n.to);
|
|
536
536
|
if (t && !r) return t;
|
|
537
|
-
let i = e.facet(
|
|
538
|
-
return new
|
|
537
|
+
let i = e.facet(G);
|
|
538
|
+
return new Ne({
|
|
539
539
|
search: t?.literal ?? i.literal ? r : r.replace(/\n/g, "\\n"),
|
|
540
540
|
caseSensitive: t?.caseSensitive ?? i.caseSensitive,
|
|
541
541
|
literal: t?.literal ?? i.literal,
|
|
@@ -543,75 +543,75 @@ function nt(e, t) {
|
|
|
543
543
|
wholeWord: t?.wholeWord ?? i.wholeWord
|
|
544
544
|
});
|
|
545
545
|
}
|
|
546
|
-
function
|
|
547
|
-
let t =
|
|
546
|
+
function et(e) {
|
|
547
|
+
let t = se(e, Qe);
|
|
548
548
|
return t && t.dom.querySelector("[main-field]");
|
|
549
549
|
}
|
|
550
|
-
function
|
|
551
|
-
let t =
|
|
550
|
+
function tt(e) {
|
|
551
|
+
let t = et(e);
|
|
552
552
|
t && t == e.root.activeElement && t.select();
|
|
553
553
|
}
|
|
554
|
-
var
|
|
555
|
-
let t = e.state.field(
|
|
554
|
+
var nt = (e) => {
|
|
555
|
+
let t = e.state.field(X, !1);
|
|
556
556
|
if (t && t.panel) {
|
|
557
|
-
let n =
|
|
557
|
+
let n = et(e);
|
|
558
558
|
if (n && n != e.root.activeElement) {
|
|
559
|
-
let r =
|
|
560
|
-
r.valid && e.dispatch({ effects:
|
|
559
|
+
let r = $e(e.state, t.query.spec);
|
|
560
|
+
r.valid && e.dispatch({ effects: Y.of(r) }), n.focus(), n.select();
|
|
561
561
|
}
|
|
562
|
-
} else e.dispatch({ effects: [
|
|
562
|
+
} else e.dispatch({ effects: [He.of(!0), t ? Y.of($e(e.state, t.query.spec)) : y.appendConfig.of(ut)] });
|
|
563
563
|
return !0;
|
|
564
|
-
},
|
|
565
|
-
let t = e.state.field(
|
|
564
|
+
}, rt = (e) => {
|
|
565
|
+
let t = e.state.field(X, !1);
|
|
566
566
|
if (!t || !t.panel) return !1;
|
|
567
|
-
let n =
|
|
568
|
-
return n && n.dom.contains(e.root.activeElement) && e.focus(), e.dispatch({ effects:
|
|
569
|
-
},
|
|
567
|
+
let n = se(e, Qe);
|
|
568
|
+
return n && n.dom.contains(e.root.activeElement) && e.focus(), e.dispatch({ effects: He.of(!1) }), !0;
|
|
569
|
+
}, it = [
|
|
570
570
|
{
|
|
571
571
|
key: "Mod-f",
|
|
572
|
-
run:
|
|
572
|
+
run: nt,
|
|
573
573
|
scope: "editor search-panel"
|
|
574
574
|
},
|
|
575
575
|
{
|
|
576
576
|
key: "F3",
|
|
577
|
-
run:
|
|
578
|
-
shift:
|
|
577
|
+
run: Q,
|
|
578
|
+
shift: qe,
|
|
579
579
|
scope: "editor search-panel",
|
|
580
580
|
preventDefault: !0
|
|
581
581
|
},
|
|
582
582
|
{
|
|
583
583
|
key: "Mod-g",
|
|
584
|
-
run:
|
|
585
|
-
shift:
|
|
584
|
+
run: Q,
|
|
585
|
+
shift: qe,
|
|
586
586
|
scope: "editor search-panel",
|
|
587
587
|
preventDefault: !0
|
|
588
588
|
},
|
|
589
589
|
{
|
|
590
590
|
key: "Escape",
|
|
591
|
-
run:
|
|
591
|
+
run: rt,
|
|
592
592
|
scope: "editor search-panel"
|
|
593
593
|
},
|
|
594
594
|
{
|
|
595
595
|
key: "Mod-Shift-l",
|
|
596
|
-
run:
|
|
596
|
+
run: Ye
|
|
597
597
|
},
|
|
598
598
|
{
|
|
599
599
|
key: "Mod-Alt-g",
|
|
600
|
-
run:
|
|
600
|
+
run: be
|
|
601
601
|
},
|
|
602
602
|
{
|
|
603
603
|
key: "Mod-d",
|
|
604
|
-
run:
|
|
604
|
+
run: Me,
|
|
605
605
|
preventDefault: !0
|
|
606
606
|
}
|
|
607
|
-
],
|
|
607
|
+
], at = class {
|
|
608
608
|
constructor(e) {
|
|
609
609
|
this.view = e;
|
|
610
|
-
let t = this.query = e.state.field(
|
|
610
|
+
let t = this.query = e.state.field(X).query.spec;
|
|
611
611
|
this.commit = this.commit.bind(this), this.searchField = f("input", {
|
|
612
612
|
value: t.search,
|
|
613
|
-
placeholder:
|
|
614
|
-
"aria-label":
|
|
613
|
+
placeholder: $(e, "Find"),
|
|
614
|
+
"aria-label": $(e, "Find"),
|
|
615
615
|
class: "cm-textfield",
|
|
616
616
|
name: "search",
|
|
617
617
|
form: "",
|
|
@@ -620,8 +620,8 @@ var at = (e) => {
|
|
|
620
620
|
onkeyup: this.commit
|
|
621
621
|
}), this.replaceField = f("input", {
|
|
622
622
|
value: t.replace,
|
|
623
|
-
placeholder:
|
|
624
|
-
"aria-label":
|
|
623
|
+
placeholder: $(e, "Replace"),
|
|
624
|
+
"aria-label": $(e, "Replace"),
|
|
625
625
|
class: "cm-textfield",
|
|
626
626
|
name: "replace",
|
|
627
627
|
form: "",
|
|
@@ -659,41 +659,41 @@ var at = (e) => {
|
|
|
659
659
|
class: "cm-search"
|
|
660
660
|
}, [
|
|
661
661
|
this.searchField,
|
|
662
|
-
n("next", () =>
|
|
663
|
-
n("prev", () =>
|
|
664
|
-
n("select", () =>
|
|
665
|
-
f("label", null, [this.caseField,
|
|
666
|
-
f("label", null, [this.reField,
|
|
667
|
-
f("label", null, [this.wordField,
|
|
662
|
+
n("next", () => Q(e), [$(e, "next")]),
|
|
663
|
+
n("prev", () => qe(e), [$(e, "previous")]),
|
|
664
|
+
n("select", () => Je(e), [$(e, "all")]),
|
|
665
|
+
f("label", null, [this.caseField, $(e, "match case")]),
|
|
666
|
+
f("label", null, [this.reField, $(e, "regexp")]),
|
|
667
|
+
f("label", null, [this.wordField, $(e, "by word")]),
|
|
668
668
|
...e.state.readOnly ? [] : [
|
|
669
669
|
f("br"),
|
|
670
670
|
this.replaceField,
|
|
671
|
-
n("replace", () =>
|
|
672
|
-
n("replaceAll", () =>
|
|
671
|
+
n("replace", () => Xe(e), [$(e, "replace")]),
|
|
672
|
+
n("replaceAll", () => Ze(e), [$(e, "replace all")])
|
|
673
673
|
],
|
|
674
674
|
f("button", {
|
|
675
675
|
name: "close",
|
|
676
|
-
onclick: () =>
|
|
677
|
-
"aria-label":
|
|
676
|
+
onclick: () => rt(e),
|
|
677
|
+
"aria-label": $(e, "close"),
|
|
678
678
|
type: "button"
|
|
679
679
|
}, ["×"])
|
|
680
680
|
]);
|
|
681
681
|
}
|
|
682
682
|
commit() {
|
|
683
|
-
let e = new
|
|
683
|
+
let e = new Ne({
|
|
684
684
|
search: this.searchField.value,
|
|
685
685
|
caseSensitive: this.caseField.checked,
|
|
686
686
|
regexp: this.reField.checked,
|
|
687
687
|
wholeWord: this.wordField.checked,
|
|
688
688
|
replace: this.replaceField.value
|
|
689
689
|
});
|
|
690
|
-
e.eq(this.query) || (this.query = e, this.view.dispatch({ effects:
|
|
690
|
+
e.eq(this.query) || (this.query = e, this.view.dispatch({ effects: Y.of(e) }));
|
|
691
691
|
}
|
|
692
692
|
keydown(e) {
|
|
693
|
-
|
|
693
|
+
B(this.view, e, "search-panel") ? e.preventDefault() : e.keyCode == 13 && e.target == this.searchField ? (e.preventDefault(), (e.shiftKey ? qe : Q)(this.view)) : e.keyCode == 13 && e.target == this.replaceField && (e.preventDefault(), Xe(this.view));
|
|
694
694
|
}
|
|
695
695
|
update(e) {
|
|
696
|
-
for (let t of e.transactions) for (let e of t.effects) e.is(
|
|
696
|
+
for (let t of e.transactions) for (let e of t.effects) e.is(Y) && !e.value.eq(this.query) && this.setQuery(e.value);
|
|
697
697
|
}
|
|
698
698
|
setQuery(e) {
|
|
699
699
|
this.query = e, this.searchField.value = e.search, this.replaceField.value = e.replace, this.caseField.checked = e.caseSensitive, this.reField.checked = e.regexp, this.wordField.checked = e.wholeWord;
|
|
@@ -705,30 +705,30 @@ var at = (e) => {
|
|
|
705
705
|
return 80;
|
|
706
706
|
}
|
|
707
707
|
get top() {
|
|
708
|
-
return this.view.state.facet(
|
|
708
|
+
return this.view.state.facet(G).top;
|
|
709
709
|
}
|
|
710
710
|
};
|
|
711
|
-
function
|
|
711
|
+
function $(e, t) {
|
|
712
712
|
return e.state.phrase(t);
|
|
713
713
|
}
|
|
714
|
-
var
|
|
715
|
-
function
|
|
716
|
-
let r = e.state.doc.lineAt(t), i = e.state.doc.lineAt(n).to, a = Math.max(r.from, t -
|
|
714
|
+
var ot = 30, st = /[\s\.,:;?!]/;
|
|
715
|
+
function ct(e, { from: t, to: n }) {
|
|
716
|
+
let r = e.state.doc.lineAt(t), i = e.state.doc.lineAt(n).to, a = Math.max(r.from, t - ot), o = Math.min(i, n + ot), s = e.state.sliceDoc(a, o);
|
|
717
717
|
if (a != r.from) {
|
|
718
|
-
for (let e = 0; e <
|
|
718
|
+
for (let e = 0; e < ot; e++) if (!st.test(s[e + 1]) && st.test(s[e])) {
|
|
719
719
|
s = s.slice(e);
|
|
720
720
|
break;
|
|
721
721
|
}
|
|
722
722
|
}
|
|
723
723
|
if (o != i) {
|
|
724
|
-
for (let e = s.length - 1; e > s.length -
|
|
724
|
+
for (let e = s.length - 1; e > s.length - ot; e--) if (!st.test(s[e - 1]) && st.test(s[e])) {
|
|
725
725
|
s = s.slice(0, e);
|
|
726
726
|
break;
|
|
727
727
|
}
|
|
728
728
|
}
|
|
729
729
|
return l.announce.of(`${e.state.phrase("current match")}. ${s} ${e.state.phrase("on line")} ${r.number}.`);
|
|
730
730
|
}
|
|
731
|
-
var
|
|
731
|
+
var lt = /*@__PURE__*/ l.baseTheme({
|
|
732
732
|
".cm-panel.cm-search": {
|
|
733
733
|
padding: "2px 6px 4px",
|
|
734
734
|
position: "relative",
|
|
@@ -753,14 +753,14 @@ var ut = /*@__PURE__*/ l.baseTheme({
|
|
|
753
753
|
"&dark .cm-searchMatch": { backgroundColor: "#00ffff8a" },
|
|
754
754
|
"&light .cm-searchMatch-selected": { backgroundColor: "#ff6a0054" },
|
|
755
755
|
"&dark .cm-searchMatch-selected": { backgroundColor: "#ff00ff8a" }
|
|
756
|
-
}),
|
|
757
|
-
|
|
758
|
-
/*@__PURE__*/
|
|
759
|
-
|
|
756
|
+
}), ut = [
|
|
757
|
+
X,
|
|
758
|
+
/*@__PURE__*/ b.low(Ke),
|
|
759
|
+
lt
|
|
760
760
|
];
|
|
761
761
|
//#endregion
|
|
762
762
|
//#region ../node_modules/.pnpm/@babel+runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
|
|
763
|
-
function
|
|
763
|
+
function dt(e, t) {
|
|
764
764
|
if (e == null) return {};
|
|
765
765
|
var n = {};
|
|
766
766
|
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
|
|
@@ -770,22 +770,22 @@ function ft(e, t) {
|
|
|
770
770
|
return n;
|
|
771
771
|
}
|
|
772
772
|
//#endregion
|
|
773
|
-
//#region ../node_modules/.pnpm/@uiw+codemirror-extensions-basic-setup@4.25.
|
|
774
|
-
var
|
|
773
|
+
//#region ../node_modules/.pnpm/@uiw+codemirror-extensions-basic-setup@4.25.11_@codemirror+autocomplete@6.20.3_@codemir_3d8ccf8815e3a97c6d75b59d2740160b/node_modules/@uiw/codemirror-extensions-basic-setup/esm/index.js
|
|
774
|
+
var ft = function(e) {
|
|
775
775
|
e === void 0 && (e = {});
|
|
776
|
-
var
|
|
777
|
-
e.closeBracketsKeymap !== !1 && (
|
|
778
|
-
var
|
|
779
|
-
return e.lineNumbers !== !1 &&
|
|
780
|
-
},
|
|
776
|
+
var t = e.crosshairCursor, n = t !== void 0 && t, s = [];
|
|
777
|
+
e.closeBracketsKeymap !== !1 && (s = s.concat(le)), e.defaultKeymap !== !1 && (s = s.concat(i)), e.searchKeymap !== !1 && (s = s.concat(it)), e.historyKeymap !== !1 && (s = s.concat(r)), e.foldKeymap !== !1 && (s = s.concat(d)), e.completionKeymap !== !1 && (s = s.concat(ue)), e.lintKeymap !== !1 && (s = s.concat(a));
|
|
778
|
+
var c = [];
|
|
779
|
+
return e.lineNumbers !== !1 && c.push(O()), e.highlightActiveLineGutter !== !1 && c.push(T()), e.highlightSpecialChars !== !1 && c.push(E()), e.history !== !1 && c.push(o()), e.foldGutter !== !1 && c.push(R()), e.drawSelection !== !1 && c.push(w()), e.dropCursor !== !1 && c.push(P()), e.allowMultipleSelections !== !1 && c.push(u.allowMultipleSelections.of(!0)), e.indentOnInput !== !1 && c.push(ae()), e.syntaxHighlighting !== !1 && c.push(m(D, { fallback: !0 })), e.bracketMatching !== !1 && c.push(oe()), e.closeBrackets !== !1 && c.push(de()), e.autocompletion !== !1 && c.push(V()), e.rectangularSelection !== !1 && c.push(ce()), n !== !1 && c.push(k()), e.highlightActiveLine !== !1 && c.push(I()), e.highlightSelectionMatches !== !1 && c.push(Ce()), e.tabSize && typeof e.tabSize == "number" && c.push(A.of(" ".repeat(e.tabSize))), c.concat([N.of(s.flat())]).filter(Boolean);
|
|
780
|
+
}, pt = function(e) {
|
|
781
781
|
e === void 0 && (e = {});
|
|
782
782
|
var t = [];
|
|
783
783
|
e.defaultKeymap !== !1 && (t = t.concat(i)), e.historyKeymap !== !1 && (t = t.concat(r));
|
|
784
784
|
var n = [];
|
|
785
|
-
return e.highlightSpecialChars !== !1 && n.push(
|
|
786
|
-
},
|
|
785
|
+
return e.highlightSpecialChars !== !1 && n.push(E()), e.history !== !1 && n.push(o()), e.drawSelection !== !1 && n.push(w()), e.syntaxHighlighting !== !1 && n.push(m(D, { fallback: !0 })), n.concat([N.of(t.flat())]).filter(Boolean);
|
|
786
|
+
}, mt = "#e5c07b", ht = "#e06c75", gt = "#56b6c2", _t = "#ffffff", vt = "#abb2bf", yt = "#7d8799", bt = "#61afef", xt = "#98c379", St = "#d19a66", Ct = "#c678dd", wt = "#21252b", Tt = "#2c313a", Et = "#282c34", Dt = "#353a42", Ot = "#3E4451", kt = "#528bff", At = /*@__PURE__*/ l.theme({
|
|
787
787
|
"&": {
|
|
788
|
-
color:
|
|
788
|
+
color: vt,
|
|
789
789
|
backgroundColor: Et
|
|
790
790
|
},
|
|
791
791
|
".cm-content": { caretColor: kt },
|
|
@@ -793,7 +793,7 @@ var pt = function(e) {
|
|
|
793
793
|
"&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection": { backgroundColor: Ot },
|
|
794
794
|
".cm-panels": {
|
|
795
795
|
backgroundColor: wt,
|
|
796
|
-
color:
|
|
796
|
+
color: vt
|
|
797
797
|
},
|
|
798
798
|
".cm-panels.cm-panels-top": { borderBottom: "2px solid black" },
|
|
799
799
|
".cm-panels.cm-panels-bottom": { borderTop: "2px solid black" },
|
|
@@ -830,9 +830,9 @@ var pt = function(e) {
|
|
|
830
830
|
},
|
|
831
831
|
".cm-tooltip-autocomplete": { "& > ul > li[aria-selected]": {
|
|
832
832
|
backgroundColor: Tt,
|
|
833
|
-
color:
|
|
833
|
+
color: vt
|
|
834
834
|
} }
|
|
835
|
-
}, { dark: !0 }), jt = /*@__PURE__*/
|
|
835
|
+
}, { dark: !0 }), jt = /*@__PURE__*/ re.define([
|
|
836
836
|
{
|
|
837
837
|
tag: _.keyword,
|
|
838
838
|
color: Ct
|
|
@@ -845,7 +845,7 @@ var pt = function(e) {
|
|
|
845
845
|
_.propertyName,
|
|
846
846
|
_.macroName
|
|
847
847
|
],
|
|
848
|
-
color:
|
|
848
|
+
color: ht
|
|
849
849
|
},
|
|
850
850
|
{
|
|
851
851
|
tag: [/*@__PURE__*/ _.function(_.variableName), _.labelName],
|
|
@@ -861,7 +861,7 @@ var pt = function(e) {
|
|
|
861
861
|
},
|
|
862
862
|
{
|
|
863
863
|
tag: [/*@__PURE__*/ _.definition(_.name), _.separator],
|
|
864
|
-
color:
|
|
864
|
+
color: vt
|
|
865
865
|
},
|
|
866
866
|
{
|
|
867
867
|
tag: [
|
|
@@ -874,7 +874,7 @@ var pt = function(e) {
|
|
|
874
874
|
_.self,
|
|
875
875
|
_.namespace
|
|
876
876
|
],
|
|
877
|
-
color:
|
|
877
|
+
color: mt
|
|
878
878
|
},
|
|
879
879
|
{
|
|
880
880
|
tag: [
|
|
@@ -886,7 +886,7 @@ var pt = function(e) {
|
|
|
886
886
|
_.link,
|
|
887
887
|
/*@__PURE__*/ _.special(_.string)
|
|
888
888
|
],
|
|
889
|
-
color:
|
|
889
|
+
color: gt
|
|
890
890
|
},
|
|
891
891
|
{
|
|
892
892
|
tag: [_.meta, _.comment],
|
|
@@ -912,7 +912,7 @@ var pt = function(e) {
|
|
|
912
912
|
{
|
|
913
913
|
tag: _.heading,
|
|
914
914
|
fontWeight: "bold",
|
|
915
|
-
color:
|
|
915
|
+
color: ht
|
|
916
916
|
},
|
|
917
917
|
{
|
|
918
918
|
tag: [
|
|
@@ -932,22 +932,22 @@ var pt = function(e) {
|
|
|
932
932
|
},
|
|
933
933
|
{
|
|
934
934
|
tag: _.invalid,
|
|
935
|
-
color:
|
|
935
|
+
color: _t
|
|
936
936
|
}
|
|
937
937
|
]), Mt = [At, /*@__PURE__*/ m(jt)], Nt = l.theme({ "&": { backgroundColor: "#fff" } }, { dark: !1 }), Pt = function(e) {
|
|
938
938
|
e === void 0 && (e = {});
|
|
939
|
-
var
|
|
940
|
-
switch (
|
|
939
|
+
var t = e, n = t.indentWithTab, r = n === void 0 || n, i = t.editable, a = i === void 0 || i, o = t.readOnly, s = o !== void 0 && o, d = t.theme, f = d === void 0 ? "light" : d, p = t.placeholder, m = p === void 0 ? "" : p, h = t.basicSetup, g = h === void 0 || h, _ = [];
|
|
940
|
+
switch (r && _.unshift(N.of([c])), g && (typeof g == "boolean" ? _.unshift(ft()) : _.unshift(ft(g))), m && _.unshift(C(m)), f) {
|
|
941
941
|
case "light":
|
|
942
|
-
|
|
942
|
+
_.push(Nt);
|
|
943
943
|
break;
|
|
944
944
|
case "dark":
|
|
945
|
-
|
|
945
|
+
_.push(Mt);
|
|
946
946
|
break;
|
|
947
947
|
case "none": break;
|
|
948
|
-
default:
|
|
948
|
+
default: _.push(f);
|
|
949
949
|
}
|
|
950
|
-
return
|
|
950
|
+
return a === !1 && _.push(l.editable.of(!1)), s && _.push(u.readOnly.of(!0)), [..._];
|
|
951
951
|
}, Ft = (e) => ({
|
|
952
952
|
line: e.state.doc.lineAt(e.state.selection.main.from),
|
|
953
953
|
lineCount: e.state.doc.lines,
|
|
@@ -1007,110 +1007,123 @@ var pt = function(e) {
|
|
|
1007
1007
|
stop() {
|
|
1008
1008
|
this.interval !== null && (clearInterval(this.interval), this.interval = null);
|
|
1009
1009
|
}
|
|
1010
|
-
}, Rt = null, zt = () => typeof window > "u" ? new Lt() : (Rt ||= new Lt(), Rt), Bt =
|
|
1011
|
-
function Ut(e) {
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1010
|
+
}, Rt = null, zt = () => typeof window > "u" ? new Lt() : (Rt ||= new Lt(), Rt), Bt = l.theme({ "& .cm-scroller": { height: "100% !important" } }), Vt = null, Ht = null;
|
|
1011
|
+
function Ut(e, t, n, r, i, a) {
|
|
1012
|
+
if (!e && !t && !n && !r && !i && !a) return null;
|
|
1013
|
+
var o = JSON.stringify({
|
|
1014
|
+
height: e,
|
|
1015
|
+
minHeight: t,
|
|
1016
|
+
maxHeight: n,
|
|
1017
|
+
width: r,
|
|
1018
|
+
minWidth: i,
|
|
1019
|
+
maxWidth: a
|
|
1020
|
+
});
|
|
1021
|
+
return o === Vt ? Ht : (Vt = o, Ht = l.theme({ "&": {
|
|
1022
|
+
height: e,
|
|
1023
|
+
minHeight: t,
|
|
1024
|
+
maxHeight: n,
|
|
1025
|
+
width: r,
|
|
1026
|
+
minWidth: i,
|
|
1027
|
+
maxWidth: a
|
|
1028
|
+
} }), Ht);
|
|
1029
|
+
}
|
|
1030
|
+
//#endregion
|
|
1031
|
+
//#region ../node_modules/.pnpm/@uiw+react-codemirror@4.25.11_@babel+runtime@7.27.6_@codemirror+autocomplete@6.20.3_@co_623c1289eb80a5520a7e784eefdad0eb/node_modules/@uiw/react-codemirror/esm/useCodeMirror.js
|
|
1032
|
+
var Wt = L.define(), Gt = 200, Kt = [];
|
|
1033
|
+
function qt(e) {
|
|
1034
|
+
var t = e.value, n = e.selection, r = e.onChange, i = e.onStatistics, a = e.onCreateEditor, o = e.onUpdate, s = e.extensions, c = s === void 0 ? Kt : s, d = e.autoFocus, f = e.theme, p = f === void 0 ? "light" : f, m = e.height, h = m === void 0 ? null : m, g = e.minHeight, _ = g === void 0 ? null : g, v = e.maxHeight, ee = v === void 0 ? null : v, b = e.width, te = b === void 0 ? null : b, x = e.minWidth, ne = x === void 0 ? null : x, S = e.maxWidth, C = S === void 0 ? null : S, re = e.placeholder, w = re === void 0 ? "" : re, ie = e.editable, T = ie === void 0 || ie, E = e.readOnly, D = E !== void 0 && E, O = e.indentWithTab, k = O === void 0 || O, A = e.basicSetup, j = A === void 0 || A, ae = e.root, M = e.initialState, N = (0, H.useState)(), P = N[0], oe = N[1], se = (0, H.useState)(), F = se[0], I = se[1], ce = (0, H.useState)(), L = ce[0], R = ce[1], z = (0, H.useState)(() => ({ current: null }))[0], B = (0, H.useState)(() => ({ current: null }))[0], le = Ut(h, _, ee, te, ne, C), ue = l.updateListener.of((e) => {
|
|
1035
|
+
e.docChanged && typeof r == "function" && !e.transactions.some((e) => e.annotation(Wt)) && (z.current ? z.current.reset() : (z.current = new It(() => {
|
|
1036
|
+
if (B.current) {
|
|
1037
|
+
var e = B.current;
|
|
1038
|
+
B.current = null, e();
|
|
1039
|
+
}
|
|
1040
|
+
z.current = null;
|
|
1041
|
+
}, Gt), zt().add(z.current)), r(e.state.doc.toString(), e)), i && i(Ft(e));
|
|
1042
|
+
}), de = Pt({
|
|
1043
|
+
theme: p,
|
|
1044
|
+
editable: T,
|
|
1045
|
+
readOnly: D,
|
|
1046
|
+
placeholder: w,
|
|
1047
|
+
indentWithTab: k,
|
|
1048
|
+
basicSetup: j
|
|
1049
|
+
}), V = [
|
|
1050
|
+
ue,
|
|
1051
|
+
...le ? [le] : [],
|
|
1052
|
+
Bt,
|
|
1053
|
+
...de
|
|
1041
1054
|
];
|
|
1042
|
-
return o && typeof o == "function" &&
|
|
1043
|
-
if (
|
|
1055
|
+
return o && typeof o == "function" && V.push(l.updateListener.of(o)), V = V.concat(c), (0, H.useLayoutEffect)(() => {
|
|
1056
|
+
if (P && !L) {
|
|
1044
1057
|
var e = {
|
|
1045
1058
|
doc: t,
|
|
1046
1059
|
selection: n,
|
|
1047
|
-
extensions:
|
|
1048
|
-
}, r =
|
|
1049
|
-
if (
|
|
1060
|
+
extensions: V
|
|
1061
|
+
}, r = M ? u.fromJSON(M.json, e, M.fields) : u.create(e);
|
|
1062
|
+
if (R(r), !F) {
|
|
1050
1063
|
var i = new l({
|
|
1051
1064
|
state: r,
|
|
1052
|
-
parent:
|
|
1053
|
-
root:
|
|
1065
|
+
parent: P,
|
|
1066
|
+
root: ae
|
|
1054
1067
|
});
|
|
1055
|
-
|
|
1068
|
+
I(i), a && a(i, r);
|
|
1056
1069
|
}
|
|
1057
1070
|
}
|
|
1058
1071
|
return () => {
|
|
1059
|
-
|
|
1072
|
+
F && (R(void 0), I(void 0));
|
|
1060
1073
|
};
|
|
1061
|
-
}, [
|
|
1062
|
-
e.container &&
|
|
1063
|
-
}, [e.container]), (0,
|
|
1064
|
-
|
|
1065
|
-
}, [
|
|
1066
|
-
|
|
1067
|
-
}, [
|
|
1068
|
-
|
|
1074
|
+
}, [P, L]), (0, H.useEffect)(() => {
|
|
1075
|
+
e.container && oe(e.container);
|
|
1076
|
+
}, [e.container]), (0, H.useEffect)(() => () => {
|
|
1077
|
+
F && (F.destroy(), I(void 0)), z.current &&= (z.current.cancel(), null);
|
|
1078
|
+
}, [F]), (0, H.useEffect)(() => {
|
|
1079
|
+
d && F && F.focus();
|
|
1080
|
+
}, [d, F]), (0, H.useEffect)(() => {
|
|
1081
|
+
F && F.dispatch({ effects: y.reconfigure.of(V) });
|
|
1069
1082
|
}, [
|
|
1070
|
-
d,
|
|
1071
|
-
s,
|
|
1072
|
-
f,
|
|
1073
1083
|
p,
|
|
1074
|
-
|
|
1084
|
+
c,
|
|
1075
1085
|
h,
|
|
1076
|
-
g,
|
|
1077
1086
|
_,
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
S,
|
|
1087
|
+
ee,
|
|
1088
|
+
te,
|
|
1089
|
+
ne,
|
|
1082
1090
|
C,
|
|
1091
|
+
w,
|
|
1092
|
+
T,
|
|
1093
|
+
D,
|
|
1094
|
+
k,
|
|
1095
|
+
j,
|
|
1083
1096
|
r,
|
|
1084
1097
|
o
|
|
1085
|
-
]), (0,
|
|
1098
|
+
]), (0, H.useEffect)(() => {
|
|
1086
1099
|
if (t !== void 0) {
|
|
1087
|
-
var e =
|
|
1088
|
-
if (
|
|
1089
|
-
var n =
|
|
1090
|
-
|
|
1100
|
+
var e = F ? F.state.doc.toString() : "";
|
|
1101
|
+
if (F && t !== e) {
|
|
1102
|
+
var n = z.current && !z.current.isDone, r = () => {
|
|
1103
|
+
F && t !== F.state.doc.toString() && F.dispatch({
|
|
1091
1104
|
changes: {
|
|
1092
1105
|
from: 0,
|
|
1093
|
-
to:
|
|
1106
|
+
to: F.state.doc.toString().length,
|
|
1094
1107
|
insert: t || ""
|
|
1095
1108
|
},
|
|
1096
|
-
annotations: [
|
|
1109
|
+
annotations: [Wt.of(!0)]
|
|
1097
1110
|
});
|
|
1098
1111
|
};
|
|
1099
|
-
n ?
|
|
1112
|
+
n ? B.current = r : r();
|
|
1100
1113
|
}
|
|
1101
1114
|
}
|
|
1102
|
-
}, [t,
|
|
1103
|
-
state:
|
|
1104
|
-
setState:
|
|
1105
|
-
view:
|
|
1106
|
-
setView:
|
|
1107
|
-
container:
|
|
1108
|
-
setContainer:
|
|
1115
|
+
}, [t, F]), {
|
|
1116
|
+
state: L,
|
|
1117
|
+
setState: R,
|
|
1118
|
+
view: F,
|
|
1119
|
+
setView: I,
|
|
1120
|
+
container: P,
|
|
1121
|
+
setContainer: oe
|
|
1109
1122
|
};
|
|
1110
1123
|
}
|
|
1111
1124
|
//#endregion
|
|
1112
|
-
//#region ../node_modules/.pnpm/@uiw+react-codemirror@4.25.
|
|
1113
|
-
var
|
|
1125
|
+
//#region ../node_modules/.pnpm/@uiw+react-codemirror@4.25.11_@babel+runtime@7.27.6_@codemirror+autocomplete@6.20.3_@co_623c1289eb80a5520a7e784eefdad0eb/node_modules/@uiw/react-codemirror/esm/index.js
|
|
1126
|
+
var Jt = n(), Yt = [
|
|
1114
1127
|
"className",
|
|
1115
1128
|
"value",
|
|
1116
1129
|
"selection",
|
|
@@ -1134,51 +1147,51 @@ var Wt = n(), Gt = [
|
|
|
1134
1147
|
"readOnly",
|
|
1135
1148
|
"root",
|
|
1136
1149
|
"initialState"
|
|
1137
|
-
],
|
|
1138
|
-
var
|
|
1139
|
-
root:
|
|
1140
|
-
value:
|
|
1141
|
-
autoFocus:
|
|
1142
|
-
theme:
|
|
1143
|
-
height:
|
|
1144
|
-
minHeight:
|
|
1145
|
-
maxHeight:
|
|
1146
|
-
width:
|
|
1147
|
-
minWidth:
|
|
1148
|
-
maxWidth:
|
|
1149
|
-
basicSetup:
|
|
1150
|
-
placeholder:
|
|
1151
|
-
indentWithTab:
|
|
1150
|
+
], Xt = /*#__PURE__*/ (0, H.forwardRef)((e, t) => {
|
|
1151
|
+
var n = e.className, r = e.value, i = r === void 0 ? "" : r, a = e.selection, o = e.extensions, c = o === void 0 ? [] : o, l = e.onChange, u = e.onStatistics, d = e.onCreateEditor, f = e.onUpdate, p = e.autoFocus, m = e.theme, h = m === void 0 ? "light" : m, g = e.height, _ = e.minHeight, v = e.maxHeight, ee = e.width, y = e.minWidth, b = e.maxWidth, te = e.basicSetup, x = e.placeholder, ne = e.indentWithTab, S = e.editable, C = e.readOnly, re = e.root, w = e.initialState, ie = dt(e, Yt), T = (0, H.useRef)(null), E = qt({
|
|
1152
|
+
root: re,
|
|
1153
|
+
value: i,
|
|
1154
|
+
autoFocus: p,
|
|
1155
|
+
theme: h,
|
|
1156
|
+
height: g,
|
|
1157
|
+
minHeight: _,
|
|
1158
|
+
maxHeight: v,
|
|
1159
|
+
width: ee,
|
|
1160
|
+
minWidth: y,
|
|
1161
|
+
maxWidth: b,
|
|
1162
|
+
basicSetup: te,
|
|
1163
|
+
placeholder: x,
|
|
1164
|
+
indentWithTab: ne,
|
|
1152
1165
|
editable: S,
|
|
1153
1166
|
readOnly: C,
|
|
1154
|
-
selection:
|
|
1155
|
-
onChange:
|
|
1156
|
-
onStatistics:
|
|
1157
|
-
onCreateEditor:
|
|
1158
|
-
onUpdate:
|
|
1159
|
-
extensions:
|
|
1167
|
+
selection: a,
|
|
1168
|
+
onChange: l,
|
|
1169
|
+
onStatistics: u,
|
|
1170
|
+
onCreateEditor: d,
|
|
1171
|
+
onUpdate: f,
|
|
1172
|
+
extensions: c,
|
|
1160
1173
|
initialState: w
|
|
1161
|
-
});
|
|
1162
|
-
(0,
|
|
1163
|
-
editor:
|
|
1174
|
+
}), D = E.state, O = E.view, k = E.container, A = E.setContainer;
|
|
1175
|
+
(0, H.useImperativeHandle)(t, () => ({
|
|
1176
|
+
editor: T.current,
|
|
1164
1177
|
state: D,
|
|
1165
1178
|
view: O
|
|
1166
1179
|
}), [
|
|
1167
|
-
|
|
1180
|
+
T,
|
|
1168
1181
|
k,
|
|
1169
1182
|
D,
|
|
1170
1183
|
O
|
|
1171
1184
|
]);
|
|
1172
|
-
var j = (0,
|
|
1173
|
-
|
|
1185
|
+
var j = (0, H.useCallback)((e) => {
|
|
1186
|
+
T.current = e, A(e);
|
|
1174
1187
|
}, [A]);
|
|
1175
|
-
if (typeof
|
|
1176
|
-
var
|
|
1177
|
-
return /*#__PURE__*/ (0,
|
|
1188
|
+
if (typeof i != "string") throw Error("value must be typeof string but got " + typeof i);
|
|
1189
|
+
var ae = typeof h == "string" ? "cm-theme-" + h : "cm-theme";
|
|
1190
|
+
return /*#__PURE__*/ (0, Jt.jsx)("div", s({
|
|
1178
1191
|
ref: j,
|
|
1179
|
-
className: "" +
|
|
1180
|
-
},
|
|
1192
|
+
className: "" + ae + (n ? " " + n : "")
|
|
1193
|
+
}, ie));
|
|
1181
1194
|
});
|
|
1182
|
-
|
|
1195
|
+
Xt.displayName = "CodeMirror";
|
|
1183
1196
|
//#endregion
|
|
1184
|
-
export {
|
|
1197
|
+
export { pt as n, Xt as t };
|