@marimo-team/islands 0.25.3-dev29 → 0.25.3-dev290
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-7EaP9VWb.js → ConnectedDataExplorerComponent-CErm132k.js} +116 -113
- package/dist/{ErrorBoundary-ysC54Xwn.js → ErrorBoundary-DwcFY0Nf.js} +76 -82
- package/dist/_baseSet-BfI5FjBM.js +328 -0
- package/dist/{abnfDiagram-VCTEODGH-z_OSynK8.js → abnfDiagram-VCTEODGH-d-Qn2fwb.js} +2 -2
- package/dist/any-language-editor-6k6F12Z3.js +75 -0
- package/dist/{architectureDiagram-5GKGNRK7-Cs8J8BZr.js → architectureDiagram-5GKGNRK7-DxragHYv.js} +1 -1
- package/dist/{arrays-CN1djC4k.js → arrays-DoQ-AILx.js} +15 -27
- package/dist/assertNever-B-YzWzbL.js +507 -0
- package/dist/assets/__vite-browser-external-BKBpimif.js +1 -0
- package/dist/assets/worker-CgoMtD-_.js +113 -0
- package/dist/{blockDiagram-I7D4REHJ-Cg25UrxT.js → blockDiagram-I7D4REHJ-Dkhe6_PP.js} +1 -1
- package/dist/{button-CvjkwdSk.js → button-DZuNnIZO.js} +56 -48
- package/dist/{capabilities-CQ5IjhzL.js → capabilities-D9FskwsK.js} +2 -2
- package/dist/{chat-ui-0udY4hpv.js → chat-ui-ByGe2rP1.js} +2100 -1810
- package/dist/{check-BMKBBrdc.js → check-XFzZeH-y.js} +1 -1
- package/dist/{chunk-IMKFNOWR-aoSFasqF.js → chunk-IMKFNOWR-C0x0feFg.js} +1 -1
- package/dist/{chunk-SHT3W25Y-CMaybO3O.js → chunk-SHT3W25Y-D0ZdASqB.js} +1 -1
- package/dist/{chunk-SVP7TREG-BNBrTAw1.js → chunk-SVP7TREG-BHjL96zx.js} +1 -1
- package/dist/{chunk-TICWLB2K-DXNxvUJn.js → chunk-TICWLB2K-CzcrwGfp.js} +1 -1
- package/dist/{classDiagram-ZZMXUADV-DXdCCDOg.js → classDiagram-ZZMXUADV-BTqFAZTP.js} +2 -2
- package/dist/{classDiagram-v2-VYDZK3BY-DyZqrtLP.js → classDiagram-v2-VYDZK3BY-EPXb0Elt.js} +2 -2
- package/dist/{code-visibility-CZmyRTO8.js → code-visibility-DSS4dPIe.js} +43 -50
- package/dist/{common-CCrzSQnL.js → common-CHNDbyF2.js} +10605 -10045
- package/dist/config-C8MFHQ2E.js +637 -0
- package/dist/{copy-icon-BgUO8jsi.js → copy-icon-CtllOdmg.js} +3 -3
- package/dist/createReducer-DRqwmaTc.js +67 -0
- package/dist/{cynefinDiagram-5FMLGOSQ-DWHuKJs8.js → cynefinDiagram-5FMLGOSQ-CBSD344q.js} +1 -1
- package/dist/{dagre-GXQ25YYZ-DYLu-OCU.js → dagre-GXQ25YYZ-JItjh3Ge.js} +3 -3
- package/dist/{dagre-BGSfXNEb.js → dagre-mqiMAsFY.js} +531 -680
- package/dist/{data-grid-overlay-editor-B141KnZO.js → data-grid-overlay-editor-8fOxyvQO.js} +1 -1
- package/dist/{debounce-C3jyATpc.js → debounce-DrhhziJv.js} +2 -2
- package/dist/{diagram-S7CK7UJ4-PwwcUOHP.js → diagram-S7CK7UJ4-CTD9xTVb.js} +1 -1
- package/dist/{diagram-UQ7AKVKN-CvJbL_IM.js → diagram-UQ7AKVKN-DTfnFai8.js} +1 -1
- package/dist/{diagram-VX7I27RA-B5RkqnzN.js → diagram-VX7I27RA-BcSnucV-.js} +1 -1
- package/dist/{diagram-Z3DM3KII-CyijwTR2.js → diagram-Z3DM3KII-C2ATIE8A.js} +1 -1
- package/dist/{dialog-Cc479ZEH.js → dialog-CaYm5imE.js} +32 -32
- package/dist/{dist-Bvs24R_E.js → dist-11T5wq3_.js} +31 -30
- package/dist/{dist-F8Ep36rk.js → dist-17ugwGZc.js} +59 -58
- package/dist/{dist-BMQf5zIS.js → dist-7cRjf--y.js} +123 -122
- package/dist/{dist-diIx5qJW.js → dist-B8pkfkzc.js} +31 -30
- package/dist/{dist-CN_BeG2I.js → dist-B9UoM_wq.js} +58 -57
- package/dist/{dist-CLdpGQVr.js → dist-BGuMTs1i.js} +118 -117
- package/dist/{dist-BK4Oj99o.js → dist-BHW11fni.js} +18 -17
- package/dist/dist-BLY4m1Wi.js +850 -0
- package/dist/{dist-PXYI_yuP.js → dist-BNlcVoxs.js} +24 -23
- package/dist/{dist-D6d86eNJ.js → dist-BQYe5Bju.js} +47 -46
- package/dist/{dist-CkTTIdBe.js → dist-BX1mn8na.js} +337 -337
- package/dist/{dist-DiDibOYr.js → dist-Bh0PTKUW.js} +151 -150
- package/dist/{dist-CSJ0MDRw.js → dist-CKaXK92p.js} +56 -55
- package/dist/{dist-C8fAKSH1.js → dist-CLhwfhpJ.js} +53 -52
- package/dist/{dist-DoE4XJBC.js → dist-CYeqK4Xw.js} +9801 -10649
- package/dist/{dist-BLfKmR-l.js → dist-Cxlp3WH6.js} +16 -15
- package/dist/{dist-D-wwqlzJ.js → dist-DSJPGj42.js} +158 -157
- package/dist/{dist-BorMD-uX.js → dist-DU9ICsWZ.js} +75 -74
- package/dist/{dist-DBtSl3sf.js → dist-DWv0ALBi.js} +47 -46
- package/dist/{dist-OR1OnN-y.js → dist-DiBpWEsB.js} +31 -30
- package/dist/{dist-CrSP_H1M.js → dist-DiLFTlnl.js} +242 -242
- package/dist/{dist-CN8zI-XC.js → dist-X9CsotJl.js} +239 -239
- package/dist/{dist-CSbh1PNP.js → dist-cVDV5IuI.js} +23 -22
- package/dist/{dist-BuaRHxOc.js → dist-fRfaOoq8.js} +44 -43
- package/dist/{dist-Cg7gzw-a.js → dist-gTTI-9Px.js} +78 -77
- package/dist/{dropdown-menu-BuE2b8Yb.js → dropdown-menu-Bb0bFOIk.js} +2904 -1493
- package/dist/{ebnfDiagram-PWID7BFC-DG90ELFp.js → ebnfDiagram-PWID7BFC-B7B9JPxc.js} +2 -2
- package/dist/{erDiagram-RLTQ6QDP-FMo_SpyX.js → erDiagram-RLTQ6QDP-v6hDno1O.js} +1 -1
- package/dist/{error-banner-CFPHFw4h.js → error-banner-CHCdHVFB.js} +87 -87
- package/dist/error-entries-9U4BFHjf.js +2586 -0
- package/dist/{esm-AMFssoNp.js → esm-BDqqT86j.js} +329 -329
- package/dist/{esm-D2gTsXEV.js → esm-BgKjMvWw.js} +530 -529
- package/dist/feedback-button-C7Wzdmjf.js +374 -0
- package/dist/{flowDiagram-HODETNUW-DQ4JuadE.js → flowDiagram-HODETNUW-aIFlAtOy.js} +2 -2
- package/dist/{formats-DRHUWwSK.js → formats-PzBQMUnr.js} +6 -6
- package/dist/{glide-data-editor-DLHbRbsj.js → glide-data-editor-BA2VyhpI.js} +6630 -2846
- package/dist/{glide-utils-pisbYVjH.js → glide-utils-BSQr4d90.js} +107 -76
- package/dist/{globals-D2g1BHQ0.js → globals-DLzuY2gk.js} +3 -3
- package/dist/{graphlib-BmY_CCV9.js → graphlib-nlwT3Wvy.js} +177 -220
- package/dist/hasIn-C20JsQ2m.js +28 -0
- package/dist/{error-entries-DgtRTNaG.js → html-to-image-BYh_MorV.js} +26294 -26451
- package/dist/{infoDiagram-27XIBGKW-CRSDtRrd.js → infoDiagram-27XIBGKW-D6YHLeCP.js} +1 -1
- package/dist/isArrayLikeObject-B-HXCsex.js +626 -0
- package/dist/isEmpty-CdX7MTE1.js +14 -0
- package/dist/{ishikawaDiagram-5VMMS53U-DxLEUldB.js → ishikawaDiagram-5VMMS53U-D1ZvprOX.js} +1 -1
- package/dist/{kanban-definition-UXKFOSKX-BLhvu8o4.js → kanban-definition-UXKFOSKX-Bna_3BMr.js} +1 -1
- package/dist/{loader-BPdQhmlq.js → loader-DZvtzQoD.js} +3 -3
- package/dist/main.js +10276 -8171
- package/dist/{mermaid-Bjm6C1qN.js → mermaid-A36unKXJ.js} +62 -62
- package/dist/{mindmap-definition-YA3MSWOX-g2LwxnYQ.js → mindmap-definition-YA3MSWOX-CyVCs__G.js} +1 -1
- package/dist/{now-jM8-M7IR.js → now-BKZCLE5P.js} +12 -13
- package/dist/{number-overlay-editor-DHqP6YVn.js → number-overlay-editor-BpuvB3ho.js} +1 -1
- package/dist/{objects-CzUgoMIF.js → objects-DCmMvZtn.js} +1 -3
- package/dist/{once-BtE-wKRL.js → once-NnpX_HnX.js} +1 -1
- package/dist/{pegDiagram-XKGWAZYB-CpMAt3Qs.js → pegDiagram-XKGWAZYB-9hNBD2wZ.js} +2 -2
- package/dist/pencil-DYUlSKxZ.js +10 -0
- package/dist/pick-tCszMUbm.js +35 -0
- package/dist/{pieDiagram-E7YTZNPT-CVTthoZo.js → pieDiagram-E7YTZNPT-8tr-NYo7.js} +1 -1
- package/dist/{process-output-CuIlhYwn.js → process-output-bS3MGJ3f.js} +4 -4
- package/dist/{railroadDiagram-O6MQD6OU-ao8cqqFB.js → railroadDiagram-O6MQD6OU-Dzg1dyyp.js} +2 -2
- package/dist/{react-vega-BDpbvBCb.js → react-vega-C4T9Rb_w.js} +1 -1
- package/dist/{requirementDiagram-BXWQKSXE--J8vyfm-.js → requirementDiagram-BXWQKSXE-B7sNqwGG.js} +1 -1
- package/dist/{reveal-component-DYHhtPqq.js → reveal-component-BKBSU4IA.js} +1151 -1128
- package/dist/select-DsoP1qe8.js +1200 -0
- package/dist/{sequenceDiagram-WJ2MYXX4-CiQbn62x.js → sequenceDiagram-WJ2MYXX4-oP9shbaG.js} +1 -1
- package/dist/{spec-D_u2ipzF.js → spec-BZMDxAu7.js} +41 -11
- package/dist/{stateDiagram-D77RDMKH-DVEeGs5b.js → stateDiagram-D77RDMKH-CjCv4ogv.js} +4 -4
- package/dist/{stateDiagram-v2-MP3YSRHH-1OQRe6iA.js → stateDiagram-v2-MP3YSRHH-BW9X162a.js} +2 -2
- package/dist/static-state-D-Q-Ajaa.js +72 -0
- package/dist/style.css +1 -1
- package/dist/{swimlanes-42K2YHIH-CqkGoGqn.js → swimlanes-42K2YHIH-Ckfs9Wrn.js} +1 -1
- package/dist/{swimlanesDiagram-VR7AAH4N-CszjkrKo.js → swimlanesDiagram-VR7AAH4N-DpTNG9YP.js} +2 -2
- package/dist/{swiper-component-DKntyn8p.js → swiper-component-DQbK_ZWm.js} +7 -7
- package/dist/{timeline-definition-24CTP7MA-DLRUNVAx.js → timeline-definition-24CTP7MA-BXaBlV6U.js} +1 -1
- package/dist/toast-BhjIy3Tq.js +491 -0
- package/dist/{tooltip-CtBZ5q8p.js → tooltip-DMMiOn2f.js} +321 -297
- package/dist/use-restore-focus-CosX7-gx.js +7568 -0
- package/dist/{useAsyncData-BneN349z.js → useAsyncData-Ci4AvJff.js} +18 -17
- package/dist/{useDateFormatter-DkajGwwd.js → useDateFormatter-CPlava52.js} +2 -2
- package/dist/{useDeepCompareMemoize-Z_7R8wTt.js → useDeepCompareMemoize-NaaWoFlX.js} +1 -1
- package/dist/useEvent-BRH-aCqi.js +19 -0
- package/dist/{useIframeCapabilities-DBETvvPl.js → useIframeCapabilities-BXhDDoCG.js} +1 -1
- package/dist/useLifecycle-SniivYmC.js +112 -0
- package/dist/{vega-component-1lFfDE_8.js → vega-component-DIxaDQNs.js} +161 -160
- package/dist/{vega-embed-container-BgKnsDbB.js → vega-embed-container--LYZqguO.js} +2 -2
- package/dist/{vega-loader.browser-CpbZAXub.js → vega-loader.browser-B9Pz0EGP.js} +1 -1
- package/dist/{vennDiagram-4TSXK5OY-CypgoBVZ.js → vennDiagram-4TSXK5OY-C-hQ4iNJ.js} +1 -1
- package/dist/{wardleyDiagram-VM6X3IG4-B6xjiQ_g.js → wardleyDiagram-VM6X3IG4-C2MQ_Umv.js} +1 -1
- package/dist/{xychartDiagram-S5SC5T6Z-e0PefDVs.js → xychartDiagram-S5SC5T6Z-BtTTBn7Q.js} +1 -1
- package/package.json +16 -20
- package/src/__mocks__/document.tsx +63 -0
- package/src/__mocks__/executions.ts +197 -0
- package/src/__mocks__/notebook.ts +3 -7
- package/src/__mocks__/partial.ts +26 -0
- package/src/__mocks__/requests.ts +1 -4
- package/src/__tests__/CellStatus.test.tsx +25 -26
- package/src/__tests__/fixtures/pair-config.ts +1 -1
- package/src/__tests__/main.test.tsx +24 -1
- package/src/__tests__/module-entry.test.ts +44 -0
- package/src/__tests__/mount.test.ts +1 -21
- package/src/__tests__/{host-imports.test.ts → replica-imports.test.ts} +12 -11
- package/src/components/ai/__tests__/ai-model-dropdown.test.tsx +63 -0
- package/src/components/ai/ai-model-dropdown.tsx +11 -6
- package/src/components/app-config/__tests__/state.test.tsx +50 -0
- package/src/components/app-config/ai-config.tsx +156 -150
- package/src/components/app-config/app-config-button.tsx +6 -5
- package/src/components/app-config/app-config-form.tsx +5 -9
- package/src/components/app-config/common.tsx +7 -9
- package/src/components/app-config/data-form.tsx +112 -113
- package/src/components/app-config/mcp-config.tsx +30 -53
- package/src/components/app-config/user-config-form.css +91 -0
- package/src/components/app-config/user-config-form.tsx +266 -349
- package/src/components/chat/__tests__/capabilities-popover.test.tsx +0 -1
- package/src/components/chat/__tests__/chat-display.test.tsx +196 -0
- package/src/components/chat/__tests__/chat-markdown.test.tsx +43 -0
- package/src/components/chat/__tests__/chat-utils.test.ts +93 -1
- package/src/components/chat/__tests__/message-queue.test.tsx +17 -0
- package/src/components/chat/__tests__/notebook-access-selector.test.tsx +64 -0
- package/src/components/chat/__tests__/turn-timing.test.ts +84 -0
- package/src/components/chat/__tests__/use-assistant-turn.test.ts +95 -0
- package/src/components/chat/__tests__/user-message.test.tsx +27 -0
- package/src/components/chat/acp/__tests__/agent-panel-initialization.test.tsx +1 -1
- package/src/components/chat/acp/__tests__/agent-panel.test.tsx +22 -17
- package/src/components/chat/acp/__tests__/session-tabs.test.tsx +43 -0
- package/src/components/chat/acp/__tests__/state.test.ts +2 -2
- package/src/components/chat/acp/agent-panel.tsx +6 -3
- package/src/components/chat/acp/blocks.tsx +13 -12
- package/src/components/chat/acp/common.tsx +4 -5
- package/src/components/chat/acp/model-selector.tsx +1 -1
- package/src/components/chat/acp/session-tabs.tsx +8 -3
- package/src/components/chat/agent-activity.tsx +132 -0
- package/src/components/chat/capabilities-popover.tsx +2 -11
- package/src/components/chat/chat-components.tsx +9 -4
- package/src/components/chat/chat-display.tsx +131 -57
- package/src/components/chat/chat-history-popover.tsx +6 -1
- package/src/components/chat/chat-markdown.tsx +15 -0
- package/src/components/chat/chat-panel.tsx +216 -294
- package/src/components/chat/chat-typography.css +108 -0
- package/src/components/chat/chat-utils.ts +24 -35
- package/src/components/chat/notebook-access-selector.stories.tsx +22 -0
- package/src/components/chat/notebook-access-selector.tsx +100 -0
- package/src/components/chat/tool-call/__tests__/tool-labels.test.ts +76 -0
- package/src/components/chat/tool-call/__tests__/tool-step.test.tsx +57 -0
- package/src/components/chat/tool-call/shared.ts +6 -0
- package/src/components/chat/tool-call/tool-call-view.tsx +22 -76
- package/src/components/chat/tool-call/tool-labels.ts +172 -0
- package/src/components/chat/tool-call/tool-result.tsx +1 -1
- package/src/components/chat/tool-call/tool-step.tsx +145 -0
- package/src/components/chat/turn-timing.ts +73 -0
- package/src/components/chat/use-assistant-turn.ts +65 -0
- package/src/components/chat/use-chat-generation.ts +20 -0
- package/src/components/chat/user-message.tsx +145 -0
- package/src/components/data-table/TableBottomBar.tsx +4 -1
- package/src/components/data-table/TableTopBar.tsx +2 -0
- package/src/components/data-table/__tests__/chart-spec-model.test.ts +195 -195
- package/src/components/data-table/__tests__/column-explorer.test.tsx +27 -1
- package/src/components/data-table/__tests__/columns.test.tsx +105 -0
- package/src/components/data-table/__tests__/context-menu-interaction.test.tsx +130 -0
- package/src/components/data-table/__tests__/data-table.test.tsx +1 -0
- package/src/components/data-table/__tests__/date-popover.test.tsx +72 -0
- package/src/components/data-table/__tests__/export-actions.test.tsx +105 -0
- package/src/components/data-table/__tests__/keyboard-selection.test.tsx +188 -0
- package/src/components/data-table/__tests__/pagination.test.tsx +28 -1
- package/src/components/data-table/__tests__/search-highlight.test.tsx +109 -0
- package/src/components/data-table/__tests__/url-detector.test.tsx +74 -0
- package/src/components/data-table/cell-selection/feature.ts +2 -2
- package/src/components/data-table/cell-selection/types.ts +2 -2
- package/src/components/data-table/charts/__tests__/chart-panel.test.tsx +74 -1
- package/src/components/data-table/charts/__tests__/spec-snapshot.test.ts +20 -20
- package/src/components/data-table/charts/__tests__/spec.test.ts +78 -52
- package/src/components/data-table/charts/__tests__/storage.test.ts +4 -1
- package/src/components/data-table/charts/chart-spec/spec.ts +68 -43
- package/src/components/data-table/charts/charts.tsx +40 -30
- package/src/components/data-table/charts/storage.ts +16 -5
- package/src/components/data-table/column-explorer-panel/column-explorer.tsx +1 -1
- package/src/components/data-table/column-formatting/types.ts +1 -2
- package/src/components/data-table/column-summary/chart-spec-model.tsx +23 -16
- package/src/components/data-table/column-summary/column-summary.tsx +2 -4
- package/src/components/data-table/column-visibility-dropdown.tsx +8 -13
- package/src/components/data-table/columns.tsx +45 -46
- package/src/components/data-table/context-menu.tsx +36 -20
- package/src/components/data-table/data-table.tsx +17 -1
- package/src/components/data-table/date-popover.tsx +6 -4
- package/src/components/data-table/export-actions.tsx +76 -48
- package/src/components/data-table/pagination.tsx +44 -33
- package/src/components/data-table/range-focus/atoms.ts +4 -6
- package/src/components/data-table/range-focus/use-cell-range-selection.ts +65 -38
- package/src/components/data-table/range-focus/use-scroll-into-view.ts +21 -2
- package/src/components/data-table/renderers.tsx +16 -7
- package/src/components/data-table/row-viewer-panel/__tests__/row-viewer.test.tsx +24 -1
- package/src/components/data-table/row-viewer-panel/row-viewer.tsx +4 -4
- package/src/components/data-table/search-highlight.tsx +79 -0
- package/src/components/data-table/types.ts +1 -0
- package/src/components/data-table/url-detector.tsx +49 -9
- package/src/components/datasources/__tests__/column-actions.test.tsx +97 -0
- package/src/components/datasources/__tests__/column-preview.test.tsx +96 -5
- package/src/components/datasources/__tests__/datasources-interactions.test.tsx +181 -0
- package/src/components/datasources/__tests__/table-list.test.tsx +118 -0
- package/src/components/datasources/__tests__/utils.test.ts +57 -6
- package/src/components/datasources/column-preview.tsx +17 -12
- package/src/components/datasources/datasources.tsx +56 -43
- package/src/components/datasources/utils.ts +32 -23
- package/src/components/debugger/debugger-code.tsx +5 -0
- package/src/components/dependency-graph/custom-node.tsx +1 -1
- package/src/components/dependency-graph/dependency-graph-tree.tsx +8 -8
- package/src/components/dependency-graph/elements.ts +24 -21
- package/src/components/dependency-graph/minimap-content.tsx +15 -20
- package/src/components/dependency-graph/panels.tsx +4 -2
- package/src/components/dependency-graph/utils/__tests__/layout.test.ts +18 -11
- package/src/components/editor/SortableCell.tsx +1 -3
- package/src/components/editor/__tests__/Output.test.tsx +50 -32
- package/src/{core/attachments/__tests__/toast.test.tsx → components/editor/__tests__/agent-toast.test.tsx} +1 -1
- package/src/components/editor/__tests__/data-attributes.test.tsx +28 -23
- package/src/components/editor/__tests__/dynamic-favicon.test.tsx +111 -18
- package/src/components/editor/__tests__/output-persistence.test.tsx +28 -9
- package/src/components/editor/__tests__/package-alert.test.tsx +22 -1
- package/src/components/editor/actions/__tests__/name-cell-input.test.tsx +69 -0
- package/src/components/editor/actions/__tests__/pair-with-agent-commands.test.ts +21 -40
- package/src/components/editor/actions/__tests__/pair-with-agent-modal.test.tsx +41 -14
- package/src/components/editor/actions/__tests__/pair-with-agent.test.tsx +6 -24
- package/src/components/editor/actions/__tests__/useCellActionButton.test.tsx +131 -0
- package/src/components/editor/actions/name-cell-input.tsx +4 -3
- package/src/components/editor/actions/pair-with-agent-commands.ts +10 -7
- package/src/components/editor/actions/pair-with-agent-modal.tsx +29 -30
- package/src/components/editor/actions/pair-with-agent.tsx +16 -39
- package/src/components/editor/actions/useCellActionButton.tsx +47 -35
- package/src/components/editor/actions/useConfigActions.tsx +3 -4
- package/src/components/editor/actions/useNotebookActions.tsx +25 -29
- package/src/components/editor/actions/useRestartKernel.tsx +1 -1
- package/src/components/editor/actions/useSetCodeVisibility.ts +11 -12
- package/src/components/editor/actions/useSetOutputsExpanded.ts +14 -19
- package/src/components/editor/ai/ai-completion-editor.tsx +2 -1
- package/src/components/editor/ai/completion-handlers.tsx +0 -37
- package/src/components/editor/ai/prompt-input.tsx +189 -0
- package/src/components/editor/alerts/__tests__/connection-notice.test.tsx +1 -1
- package/src/components/editor/alerts/connection-notice.tsx +1 -1
- package/src/components/editor/alerts/startup-logs-alert.tsx +1 -0
- package/src/components/editor/alerts/stdin-blocking-alert.tsx +4 -2
- package/src/components/editor/app-container.tsx +1 -1
- package/src/components/editor/boundary/__tests__/ErrorBoundary.test.tsx +1 -1
- package/src/components/editor/cell/CellStatus.tsx +28 -23
- package/src/components/editor/cell/CreateCellButton.tsx +15 -21
- package/src/components/editor/cell/DeleteButton.tsx +3 -2
- package/src/components/editor/cell/RunButton.tsx +18 -8
- package/src/components/editor/cell/StagedAICell.tsx +52 -137
- package/src/components/editor/cell/StopButton.tsx +2 -2
- package/src/components/editor/cell/__tests__/useRunCells.test.tsx +169 -0
- package/src/components/editor/cell/__tests__/useShouldShowInterrupt.test.ts +39 -0
- package/src/components/editor/cell/cell-actions.tsx +12 -1
- package/src/components/editor/cell/cell-context-menu.tsx +4 -1
- package/src/components/editor/cell/code/__tests__/language-toggle.test.tsx +54 -0
- package/src/components/editor/cell/code/cell-editor.tsx +65 -169
- package/src/components/editor/cell/code/language-toggle.tsx +8 -7
- package/src/components/editor/cell/collapse.tsx +16 -6
- package/src/components/editor/cell/useAddCell.ts +4 -8
- package/src/components/editor/cell/useDeleteCell.tsx +10 -36
- package/src/components/editor/cell/useRunCells.ts +49 -8
- package/src/components/editor/cell/useShouldShowInterrupt.ts +2 -12
- package/src/components/editor/cell/useSplitCell.tsx +10 -6
- package/src/components/editor/chrome/components/__tests__/feedback-button.test.tsx +1 -1
- package/src/components/editor/chrome/components/feedback-button.tsx +2 -8
- package/src/components/editor/chrome/panels/__tests__/packages-panel.test.tsx +31 -2
- package/src/components/editor/chrome/panels/__tests__/runtime-details.test.tsx +1 -1
- package/src/components/editor/chrome/panels/__tests__/sandbox-recovery.test.tsx +1 -1
- package/src/components/editor/chrome/panels/cache-panel.tsx +1 -0
- package/src/components/editor/chrome/panels/dependency-graph-panel.tsx +1 -1
- package/src/components/editor/chrome/panels/logs-panel.tsx +2 -1
- package/src/components/editor/chrome/panels/outline/__tests__/outline-keyboard.test.tsx +84 -0
- package/src/components/editor/chrome/panels/outline/floating-outline.tsx +39 -14
- package/src/components/editor/chrome/panels/outline/useActiveOutline.tsx +3 -2
- package/src/components/editor/chrome/panels/packages-panel.tsx +4 -7
- package/src/components/editor/chrome/panels/panel-header.tsx +13 -0
- package/src/components/editor/chrome/panels/secrets-panel.tsx +1 -0
- package/src/components/editor/chrome/panels/session-panel.tsx +1 -1
- package/src/components/editor/chrome/panels/snippets-panel.tsx +10 -12
- package/src/components/editor/chrome/panels/variable-panel.tsx +1 -5
- package/src/components/editor/chrome/types.ts +1 -1
- package/src/components/editor/chrome/wrapper/__tests__/attachment-status.test.tsx +7 -9
- package/src/components/editor/chrome/wrapper/__tests__/document-sync-status.test.tsx +92 -0
- package/src/components/editor/chrome/wrapper/__tests__/pending-ai-cells.test.tsx +265 -37
- package/src/components/editor/chrome/wrapper/__tests__/useAskAiAboutCell.test.tsx +58 -0
- package/src/components/editor/chrome/wrapper/app-chrome.tsx +91 -74
- package/src/components/editor/chrome/wrapper/footer-items/attachment-status.tsx +4 -4
- package/src/components/editor/chrome/wrapper/footer-items/backend-status.tsx +1 -1
- package/src/components/editor/chrome/wrapper/footer-items/document-sync-status.tsx +54 -0
- package/src/components/editor/chrome/wrapper/footer-items/lsp-status.tsx +1 -1
- package/src/components/editor/chrome/wrapper/footer-items/machine-stats.tsx +1 -1
- package/src/components/editor/chrome/wrapper/footer-items/runtime-settings.tsx +1 -7
- package/src/components/editor/chrome/wrapper/footer.tsx +2 -2
- package/src/components/editor/chrome/wrapper/minimap-state.ts +1 -1
- package/src/components/editor/chrome/wrapper/pending-ai-cells.tsx +143 -72
- package/src/components/editor/chrome/wrapper/pending-ai-changes-badge.tsx +25 -0
- package/src/components/editor/chrome/wrapper/sidebar.tsx +8 -4
- package/src/components/editor/chrome/wrapper/storage.ts +1 -1
- package/src/components/editor/chrome/wrapper/useAskAiAboutCell.ts +36 -0
- package/src/components/editor/columns/__tests__/cell-column.test.tsx +1 -1
- package/src/components/editor/columns/cell-column.tsx +1 -1
- package/src/components/editor/columns/sortable-column.tsx +2 -2
- package/src/components/editor/connections/components.tsx +5 -10
- package/src/components/editor/controls/Controls.tsx +4 -4
- package/src/components/editor/controls/__tests__/command-palette.test.tsx +53 -0
- package/src/components/editor/controls/__tests__/keyboard-shortcuts.test.tsx +61 -0
- package/src/components/editor/controls/__tests__/notebook-menu-dropdown.test.tsx +10 -4
- package/src/components/editor/controls/command-palette.tsx +22 -10
- package/src/components/editor/controls/keyboard-shortcuts.tsx +14 -5
- package/src/components/editor/documentation.css +34 -11
- package/src/components/editor/dynamic-favicon.tsx +21 -40
- package/src/components/editor/errors/__tests__/send-error-report-button.test.tsx +26 -22
- package/src/components/editor/errors/auto-fix.tsx +4 -8
- package/src/components/editor/errors/send-error-report-button.tsx +3 -6
- package/src/components/editor/file-tree/__tests__/file-explorer-interactions.test.tsx +6 -0
- package/src/components/editor/file-tree/__tests__/file-explorer-navigation.test.tsx +47 -0
- package/src/components/editor/file-tree/__tests__/use-file-search.test.tsx +91 -0
- package/src/components/editor/file-tree/file-explorer.tsx +48 -15
- package/src/components/editor/file-tree/file-name-input.tsx +1 -0
- package/src/components/editor/file-tree/file-viewer.tsx +4 -2
- package/src/components/editor/file-tree/use-file-search.ts +35 -21
- package/src/components/editor/header/__tests__/filename-form.test.tsx +1 -4
- package/src/components/editor/header/__tests__/status.test.tsx +5 -3
- package/src/components/editor/header/app-header.tsx +1 -1
- package/src/components/editor/header/filename-form.tsx +1 -1
- package/src/components/editor/header/status.tsx +44 -22
- package/src/components/editor/links/__tests__/cell-link.test.tsx +148 -0
- package/src/components/editor/links/cell-link-list.tsx +1 -1
- package/src/components/editor/links/cell-link.tsx +21 -11
- package/src/components/editor/navigation/__tests__/clipboard.test.ts +60 -38
- package/src/components/editor/navigation/__tests__/navigation.test.ts +108 -85
- package/src/components/editor/navigation/__tests__/selection.test.ts +43 -21
- package/src/components/editor/navigation/clipboard.ts +17 -14
- package/src/components/editor/navigation/focus-utils.ts +23 -4
- package/src/components/editor/navigation/multi-cell-action-toolbar.tsx +17 -33
- package/src/components/editor/navigation/navigation.ts +74 -72
- package/src/components/editor/navigation/selection.ts +30 -29
- package/src/components/editor/notebook-banner.tsx +1 -0
- package/src/components/editor/notebook-cell.tsx +126 -152
- package/src/components/editor/output/MarimoErrorOutput.tsx +2 -1
- package/src/components/editor/output/MarimoTracebackOutput.tsx +19 -17
- package/src/components/editor/output/Outputs.css +8 -0
- package/src/components/editor/output/VideoOutput.tsx +6 -0
- package/src/components/editor/output/__tests__/VideoOutput.test.tsx +131 -0
- package/src/components/editor/output/__tests__/traceback.test.tsx +27 -1
- package/src/components/editor/output/ansi-reduce.ts +33 -20
- package/src/components/editor/output/console/ConsoleOutput.tsx +19 -25
- package/src/components/editor/output/console/__tests__/ConsoleOutput.test.tsx +125 -69
- package/src/components/editor/package-alert.tsx +14 -7
- package/src/components/editor/renderers/__tests__/add-cell-buttons.test.tsx +18 -0
- package/src/components/editor/renderers/cell-array.tsx +32 -100
- package/src/components/editor/renderers/grid-layout/__tests__/grid-layout.test.tsx +75 -0
- package/src/components/editor/renderers/grid-layout/grid-layout.tsx +28 -22
- package/src/components/editor/renderers/slides-layout/__tests__/plugin.test.ts +0 -4
- package/src/components/editor/renderers/slides-layout/slides-layout.tsx +1 -1
- package/src/components/editor/renderers/vertical-layout/__tests__/useFocusFirstEditor.test.ts +4 -4
- package/src/components/editor/renderers/vertical-layout/sidebar/toggle.tsx +7 -1
- package/src/components/editor/renderers/vertical-layout/useFocusFirstEditor.ts +1 -1
- package/src/components/editor/renderers/vertical-layout/vertical-layout.tsx +19 -37
- package/src/components/editor/stdin-blocking-alert.tsx +4 -2
- package/src/components/home/components.tsx +17 -31
- package/src/components/icons/__tests__/large-spinner.test.tsx +39 -0
- package/src/components/icons/large-spinner.tsx +3 -14
- package/src/components/icons/spinner.tsx +1 -1
- package/src/components/markdown/markdown-renderer.tsx +39 -28
- package/src/components/mcp/mcp-status-indicator.tsx +18 -14
- package/src/components/pages/__tests__/home-page.test.tsx +116 -0
- package/src/components/pages/edit-page.tsx +19 -17
- package/src/components/pages/home-page.tsx +164 -91
- package/src/components/scratchpad/scratchpad.test.tsx +89 -0
- package/src/components/scratchpad/scratchpad.tsx +47 -33
- package/src/components/scratchpad/state.ts +7 -0
- package/src/components/slides/__tests__/minimap-actions.test.tsx +22 -29
- package/src/components/slides/__tests__/minimap.test.ts +38 -19
- package/src/components/slides/__tests__/slide-scroll-hint.test.tsx +37 -0
- package/src/components/slides/minimap.tsx +22 -14
- package/src/components/slides/reveal-component.tsx +73 -36
- package/src/components/slides/reveal-slides.css +5 -4
- package/src/components/slides/slide-cell-view.tsx +37 -34
- package/src/components/slides/slide-form.tsx +1 -0
- package/src/components/slides/slide-scroll-hint.tsx +3 -1
- package/src/components/slides/slide.tsx +3 -4
- package/src/components/sort/SortableCellsProvider.tsx +8 -25
- package/src/components/tracing/tracing-keyboard.test.tsx +85 -0
- package/src/components/tracing/tracing.tsx +46 -42
- package/src/components/ui/__tests__/draggable-popover.test.tsx +24 -0
- package/src/components/ui/__tests__/fullscreen.test.tsx +44 -2
- package/src/components/ui/__tests__/range-slider.test.tsx +165 -0
- package/src/components/ui/alert-dialog.tsx +1 -1
- package/src/components/ui/draggable-popover.tsx +24 -2
- package/src/components/ui/fullscreen.tsx +25 -1
- package/src/components/ui/range-slider.tsx +22 -9
- package/src/components/ui/toast.tsx +1 -1
- package/src/core/MarimoApp.tsx +3 -1
- package/src/core/ai/__tests__/staged-cells.test.ts +89 -608
- package/src/core/ai/context/context.ts +2 -0
- package/src/core/ai/context/providers/__tests__/cell-output.test.ts +8 -12
- package/src/core/ai/context/providers/__tests__/cell.test.ts +49 -0
- package/src/core/ai/context/providers/cell-output.ts +2 -2
- package/src/core/ai/context/providers/cell.ts +54 -0
- package/src/core/ai/context/providers/datasource.ts +6 -2
- package/src/core/ai/staged-cells.ts +56 -323
- package/src/core/ai/state.ts +3 -0
- package/src/core/ai/tools/__tests__/edit-notebook-tool.test.ts +40 -88
- package/src/core/ai/tools/__tests__/registry.test.ts +17 -0
- package/src/core/ai/tools/base.ts +18 -15
- package/src/core/ai/tools/edit-notebook-tool.ts +86 -80
- package/src/core/ai/tools/registry.ts +13 -10
- package/src/core/ai/tools/sample-tool.ts +6 -7
- package/src/core/cells/__tests__/__snapshots__/cells.test.ts.snap +4 -527
- package/src/core/cells/__tests__/actions.test.ts +623 -35
- package/src/core/cells/__tests__/add-missing-import.test.ts +7 -8
- package/src/core/cells/__tests__/arrange.test.ts +432 -0
- package/src/core/cells/__tests__/cell.test.ts +148 -150
- package/src/core/cells/__tests__/cells.test.ts +390 -2925
- package/src/core/cells/__tests__/collapseConsoleOutputs.test.ts +54 -0
- package/src/core/cells/__tests__/document.test.ts +158 -0
- package/src/core/cells/__tests__/editor.test.ts +57 -0
- package/src/core/cells/__tests__/flush-document.test.ts +40 -0
- package/src/core/cells/__tests__/harness.ts +106 -0
- package/src/core/cells/__tests__/layout.test.ts +176 -0
- package/src/core/cells/__tests__/logs.test.ts +0 -13
- package/src/core/cells/__tests__/notebook-outline.test.ts +122 -0
- package/src/core/cells/__tests__/outputs.test.tsx +71 -53
- package/src/core/cells/__tests__/pending-delete-service.test.tsx +11 -20
- package/src/core/cells/__tests__/session.test.ts +445 -211
- package/src/core/cells/__tests__/utils.test.ts +135 -337
- package/src/core/cells/actions.ts +677 -6
- package/src/core/cells/add-missing-import.ts +47 -43
- package/src/core/cells/arrange.ts +529 -0
- package/src/core/cells/cell.ts +78 -146
- package/src/core/cells/cells.ts +116 -1457
- package/src/core/cells/columns.ts +38 -0
- package/src/core/cells/document.ts +167 -0
- package/src/core/cells/edit.ts +30 -0
- package/src/core/cells/editor.ts +82 -0
- package/src/core/cells/focus.ts +27 -6
- package/src/core/cells/layout.ts +221 -0
- package/src/core/cells/outputs.ts +12 -28
- package/src/core/cells/pending-delete-service.ts +8 -14
- package/src/core/cells/scrollCellIntoView.ts +6 -0
- package/src/core/cells/session.ts +76 -53
- package/src/core/cells/types.ts +21 -51
- package/src/core/cells/utils.ts +85 -87
- package/src/core/codemirror/__tests__/format.test.ts +0 -34
- package/src/core/codemirror/__tests__/setup.test.ts +61 -29
- package/src/core/codemirror/ai/__tests__/resources.test.ts +117 -0
- package/src/core/codemirror/ai/resources.ts +1 -1
- package/src/core/codemirror/cells/__tests__/extensions.test.ts +2 -6
- package/src/core/codemirror/cells/extensions.ts +18 -30
- package/src/core/codemirror/cells/state.ts +2 -6
- package/src/core/codemirror/cm.ts +5 -1
- package/src/core/codemirror/config/types.ts +1 -1
- package/src/core/codemirror/copilot/__tests__/getCodes.test.ts +6 -7
- package/src/core/codemirror/copilot/getCodes.ts +2 -2
- package/src/core/codemirror/format.ts +6 -23
- package/src/core/codemirror/keymaps/vim.ts +4 -8
- package/src/core/codemirror/language/__tests__/sql.test.ts +22 -20
- package/src/core/codemirror/language/__tests__/utils.test.ts +187 -15
- package/src/core/codemirror/language/cell-code.ts +114 -0
- package/src/core/codemirror/language/extension.ts +52 -35
- package/src/core/codemirror/language/languages/markdown.ts +8 -6
- package/src/core/codemirror/language/languages/python.ts +19 -13
- package/src/core/codemirror/language/languages/sql/sql.ts +16 -24
- package/src/core/codemirror/language/panel/panel.tsx +1 -0
- package/src/core/codemirror/language/types.ts +7 -7
- package/src/core/codemirror/language/utils.ts +9 -39
- package/src/core/codemirror/lsp/__tests__/notebook-lsp.test.ts +1 -2
- package/src/core/codemirror/lsp/notebook-lsp.ts +6 -5
- package/src/core/codemirror/lsp/utils.ts +1 -1
- package/src/core/codemirror/misc/__tests__/paste.test.ts +3 -1
- package/src/core/codemirror/misc/paste.ts +1 -1
- package/src/core/codemirror/placeholder/__tests__/extensions.test.ts +75 -0
- package/src/core/codemirror/placeholder/extensions.ts +80 -19
- package/src/core/codemirror/readonly/__tests__/extension.test.ts +1 -1
- package/src/core/codemirror/readonly/extension.ts +2 -2
- package/src/core/codemirror/utils.ts +1 -0
- package/src/core/config/__tests__/app-config.test.ts +64 -0
- package/src/core/config/__tests__/config-schema.test.ts +56 -6
- package/src/core/config/config-schema.ts +17 -4
- package/src/core/config/config.ts +65 -20
- package/src/core/config/feature-flag.tsx +0 -2
- package/src/core/datasets/__tests__/data-source-discovery.test.ts +5 -5
- package/src/core/datasets/data-source-discovery.ts +4 -6
- package/src/core/documentation/doc-lookup.ts +1 -1
- package/src/core/edit-app.tsx +22 -28
- package/src/core/errors/__tests__/error-entries.test.ts +40 -1
- package/src/core/errors/error-entries.ts +6 -4
- package/src/core/executions/__tests__/atoms.test.ts +98 -0
- package/src/core/executions/__tests__/freshness.test.ts +482 -0
- package/src/core/executions/__tests__/hooks.test.tsx +106 -0
- package/src/core/executions/__tests__/select.test.ts +268 -0
- package/src/core/executions/atoms.ts +228 -0
- package/src/core/executions/freshness.ts +171 -0
- package/src/core/executions/hooks.ts +47 -0
- package/src/core/executions/index.ts +33 -0
- package/src/core/executions/select.ts +175 -0
- package/src/core/export/__tests__/hooks.test.ts +0 -5
- package/src/core/export/hooks.ts +1 -1
- package/src/core/export/layout.ts +2 -2
- package/src/core/hotkeys/actions.ts +2 -4
- package/src/core/hotkeys/hotkeys.ts +2 -1
- package/src/core/islands/__tests__/bootstrap.test.ts +69 -17
- package/src/core/islands/__tests__/bridge.test.ts +85 -27
- package/src/core/islands/bootstrap.ts +49 -54
- package/src/core/islands/bridge.ts +84 -25
- package/src/core/islands/components/__tests__/IslandControls.test.tsx +7 -5
- package/src/core/islands/components/__tests__/web-components.test.tsx +63 -0
- package/src/core/islands/components/output-wrapper.tsx +5 -5
- package/src/core/islands/components/web-components.tsx +12 -1
- package/src/core/islands/worker/__tests__/controller.test.ts +62 -4
- package/src/core/islands/worker/controller.ts +4 -10
- package/src/core/islands/worker/worker.tsx +33 -33
- package/src/core/kernel/__tests__/RuntimeState.test.ts +1 -1
- package/src/core/kernel/__tests__/handlers.test.ts +7 -157
- package/src/core/kernel/handlers.ts +13 -79
- package/src/core/kernel/state.ts +0 -15
- package/src/core/lifecycle/render-policy.ts +12 -26
- package/src/core/meta/__tests__/code-visibility.test.tsx +78 -70
- package/src/core/meta/code-visibility.ts +18 -9
- package/src/core/network/__tests__/connection.test.ts +1 -1
- package/src/core/network/__tests__/requests-lazy.test.ts +6 -8
- package/src/core/network/connection-notice.ts +1 -1
- package/src/core/network/connection.ts +1 -1
- package/src/core/network/requests-lazy.ts +5 -8
- package/src/core/network/requests-network.ts +5 -31
- package/src/core/network/requests-static.ts +1 -4
- package/src/core/network/requests-toasting.tsx +1 -4
- package/src/core/network/types.ts +6 -14
- package/src/core/network/useConnectionNotice.ts +8 -2
- package/src/core/notebook/__tests__/operations.test.ts +51 -0
- package/src/core/notebook/attachments.ts +38 -0
- package/src/core/notebook/document/__tests__/codemirror.test.ts +759 -0
- package/src/core/notebook/document/__tests__/draft.test.ts +363 -0
- package/src/core/notebook/document/__tests__/fixtures.ts +92 -0
- package/src/core/notebook/document/__tests__/hooks.test.tsx +391 -0
- package/src/core/notebook/document/__tests__/lifecycle-scenarios.test.ts +61 -0
- package/src/core/notebook/document/__tests__/model.test.ts +247 -0
- package/src/core/notebook/document/__tests__/protocol-fixtures.ts +38 -0
- package/src/core/notebook/document/__tests__/recovery-scenarios.test.ts +230 -0
- package/src/core/notebook/document/__tests__/scenario-fixture.ts +43 -0
- package/src/core/notebook/document/__tests__/scenarios.test.ts +205 -0
- package/src/core/notebook/document/__tests__/state.test.ts +459 -0
- package/src/core/notebook/document/__tests__/submission.test.ts +203 -0
- package/src/core/notebook/document/__tests__/test-host.test.ts +92 -0
- package/src/core/notebook/document/__tests__/test-host.ts +247 -0
- package/src/core/notebook/document/__tests__/test-notebook.ts +149 -0
- package/src/core/notebook/document/__tests__/user.ts +61 -0
- package/src/core/notebook/document/codemirror.ts +216 -0
- package/src/core/notebook/document/draft.ts +502 -0
- package/src/core/notebook/document/hooks.tsx +118 -0
- package/src/core/notebook/document/index.ts +24 -0
- package/src/core/notebook/document/model.ts +102 -0
- package/src/core/notebook/document/select.ts +41 -0
- package/src/core/notebook/document/state.ts +378 -0
- package/src/core/notebook/document/sync.ts +369 -0
- package/src/core/notebook/index.ts +19 -0
- package/src/core/notebook/operations.ts +30 -0
- package/src/core/notebook/replica/AGENTS.md +11 -0
- package/src/core/{host → notebook/replica}/__tests__/attachments.test.ts +9 -10
- package/src/core/{host → notebook/replica}/__tests__/document.test.ts +18 -16
- package/src/core/notebook/replica/__tests__/executions.test.ts +200 -0
- package/src/core/notebook/replica/__tests__/fixtures.ts +79 -0
- package/src/core/notebook/replica/__tests__/replica.test.ts +559 -0
- package/src/core/notebook/replica/__tests__/results.test.ts +193 -0
- package/src/core/notebook/replica/__tests__/runtime.test.ts +78 -0
- package/src/core/notebook/replica/backend.ts +19 -0
- package/src/core/notebook/replica/connection.ts +42 -0
- package/src/core/notebook/replica/index.ts +20 -0
- package/src/core/notebook/replica/replica.ts +336 -0
- package/src/core/{host → notebook/replica}/resources/attachments.ts +6 -3
- package/src/core/{host → notebook/replica}/resources/document.ts +3 -3
- package/src/core/notebook/replica/resources/executions.ts +157 -0
- package/src/core/notebook/replica/resources/results.ts +48 -0
- package/src/core/notebook/replica/resources/runtime.ts +14 -0
- package/src/core/packages/__tests__/useSandboxController.test.tsx +1 -1
- package/src/core/packages/useSandboxController.ts +1 -1
- package/src/core/run-app.tsx +49 -51
- package/src/core/runtime/__tests__/adapter.test.ts +4 -4
- package/src/core/runtime/__tests__/createWsUrl.test.ts +77 -7
- package/src/core/runtime/__tests__/runtime.test.ts +32 -74
- package/src/core/runtime/adapter.ts +5 -5
- package/src/core/runtime/config.ts +2 -2
- package/src/core/runtime/runtime.ts +33 -46
- package/src/core/runtime/types.ts +0 -2
- package/src/core/saving/__tests__/document.test.tsx +123 -0
- package/src/core/saving/__tests__/state.test.ts +111 -0
- package/src/core/saving/__tests__/useAutoSave.test.tsx +67 -0
- package/src/core/saving/document.ts +33 -0
- package/src/core/saving/filename.ts +1 -1
- package/src/core/saving/save-component.tsx +39 -60
- package/src/core/saving/state.ts +38 -39
- package/src/core/saving/useAutoSave.ts +17 -53
- package/src/core/session/__tests__/backend.test.ts +236 -0
- package/src/core/session/__tests__/useNotebookReplica.hook.test.tsx +186 -0
- package/src/core/{websocket → session}/__tests__/useNotebookSession.hook.test.tsx +245 -262
- package/src/core/session/active-notebook.ts +28 -0
- package/src/core/session/backend.ts +123 -0
- package/src/core/session/embedded.ts +7 -0
- package/src/core/{websocket → session}/types.ts +2 -2
- package/src/core/session/useNotebookReplica.ts +74 -0
- package/src/core/{websocket → session}/useNotebookSession.tsx +80 -67
- package/src/core/state/__tests__/jotai.test.tsx +108 -0
- package/src/core/state/jotai.ts +1 -1
- package/src/core/static/__tests__/files.test.ts +38 -10
- package/src/core/static/files.ts +2 -0
- package/src/core/{websocket → transports}/__tests__/connection-state.test.ts +1 -13
- package/src/core/transports/__tests__/server.test.ts +408 -0
- package/src/core/transports/__tests__/static.test.ts +306 -0
- package/src/core/transports/__tests__/wasm.test.ts +166 -0
- package/src/core/{websocket → transports}/connection-state.ts +9 -16
- package/src/core/transports/server.ts +152 -0
- package/src/core/transports/static.ts +166 -0
- package/src/core/transports/wasm.ts +97 -0
- package/src/core/vscode/__tests__/vscode-bindings.test.ts +125 -0
- package/src/core/vscode/vscode-bindings.ts +14 -2
- package/src/core/wasm/__tests__/bridge.test.ts +210 -64
- package/src/core/wasm/__tests__/worker.test.ts +188 -0
- package/src/core/wasm/bridge.ts +120 -73
- package/src/core/wasm/rpc.ts +15 -3
- package/src/core/wasm/store.ts +3 -3
- package/src/core/wasm/worker/bootstrap.ts +55 -51
- package/src/core/wasm/worker/getMarimoWheel.ts +1 -1
- package/src/core/wasm/worker/save-worker.ts +9 -10
- package/src/core/wasm/worker/types.ts +30 -18
- package/src/core/wasm/worker/worker.ts +118 -72
- package/src/css/app/Cell.css +7 -36
- package/src/css/app/codemirror.css +1 -1
- package/src/css/common.css +1 -1
- package/src/css/globals.css +72 -24
- package/src/hooks/__tests__/useAsyncData.test.tsx +148 -0
- package/src/hooks/__tests__/useDebounce.test.tsx +51 -0
- package/src/hooks/__tests__/useDeepCompareMemoize.test.tsx +39 -0
- package/src/hooks/__tests__/useDelayElapsed.test.tsx +28 -0
- package/src/hooks/__tests__/useInternalStateWithSync.test.tsx +20 -0
- package/src/hooks/__tests__/useScript.test.tsx +77 -0
- package/src/hooks/__tests__/useStateForKey.test.tsx +257 -0
- package/src/hooks/useAsyncData.ts +3 -3
- package/src/hooks/useDataSourceDiscovery.ts +6 -4
- package/src/hooks/useDebounce.ts +6 -10
- package/src/hooks/useDeepCompareMemoize.ts +1 -1
- package/src/hooks/useDelayElapsed.ts +14 -10
- package/src/hooks/useElapsedTime.ts +3 -3
- package/src/hooks/useEventListener.ts +1 -2
- package/src/hooks/useInputHistory.ts +4 -7
- package/src/hooks/useInternalStateWithSync.ts +6 -6
- package/src/hooks/useResizeObserver.ts +4 -7
- package/src/hooks/useScript.ts +67 -70
- package/src/hooks/useStateForKey.ts +93 -0
- package/src/mount.tsx +20 -15
- package/src/plugins/__tests__/plugin-object-schemas.test.ts +104 -0
- package/src/plugins/core/RenderHTML.tsx +3 -5
- package/src/plugins/core/__test__/RenderHTML-copy.test.tsx +60 -0
- package/src/plugins/core/registerReactComponent.tsx +5 -14
- package/src/plugins/impl/CodeEditorPlugin.tsx +1 -1
- package/src/plugins/impl/DataEditorPlugin.tsx +34 -13
- package/src/plugins/impl/DataTablePlugin.tsx +69 -37
- package/src/plugins/impl/DropdownPlugin.tsx +2 -6
- package/src/plugins/impl/FileBrowserPlugin.tsx +4 -16
- package/src/plugins/impl/FormPlugin.tsx +1 -1
- package/src/plugins/impl/RangeSliderPlugin.tsx +16 -2
- package/src/plugins/impl/RefreshPlugin.tsx +1 -0
- package/src/plugins/impl/SliderPlugin.tsx +6 -8
- package/src/plugins/impl/__tests__/DataEditorPlugin.test.ts +93 -4
- package/src/plugins/impl/__tests__/DataTablePlugin.test.tsx +387 -1
- package/src/plugins/impl/__tests__/FileBrowserPlugin.test.tsx +45 -0
- package/src/plugins/impl/__tests__/RangeSliderPlugin.test.tsx +109 -0
- package/src/plugins/impl/__tests__/SliderPlugin.test.tsx +24 -3
- package/src/plugins/impl/anywidget/__tests__/registry.test.ts +153 -0
- package/src/plugins/impl/anywidget/__tests__/widget-binding.test.ts +241 -2
- package/src/plugins/impl/anywidget/model.ts +3 -1
- package/src/plugins/impl/anywidget/registry.ts +18 -14
- package/src/plugins/impl/anywidget/runtime.ts +21 -9
- package/src/plugins/impl/anywidget/widget-binding.ts +160 -82
- package/src/plugins/impl/chat/__tests__/chat-prompts.test.tsx +93 -0
- package/src/plugins/impl/chat/chat-ui.tsx +17 -15
- package/src/plugins/impl/code/any-language-editor.tsx +2 -2
- package/src/plugins/impl/common/error-banner.tsx +5 -3
- package/src/plugins/impl/data-editor/__tests__/column-types.test.ts +42 -0
- package/src/plugins/impl/data-editor/__tests__/editor-state.test.ts +52 -1
- package/src/plugins/impl/data-editor/__tests__/glide-data-editor.test.tsx +120 -4
- package/src/plugins/impl/data-editor/__tests__/glide-utils.test.ts +116 -0
- package/src/plugins/impl/data-editor/column-types.ts +55 -0
- package/src/plugins/impl/data-editor/editor-state.ts +18 -2
- package/src/plugins/impl/data-editor/glide-data-editor.tsx +74 -12
- package/src/plugins/impl/data-editor/glide-utils.ts +39 -38
- package/src/plugins/impl/data-editor/types.ts +5 -0
- package/src/plugins/impl/data-explorer/ConnectedDataExplorerComponent.tsx +1 -1
- package/src/plugins/impl/data-explorer/components/column-summary.tsx +4 -2
- package/src/plugins/impl/data-explorer/state/reducer.ts +1 -1
- package/src/plugins/impl/data-frames/DataFramePlugin.tsx +1 -2
- package/src/plugins/impl/data-frames/__tests__/sidebar.test.tsx +160 -0
- package/src/plugins/impl/data-frames/forms/__tests__/__snapshots__/form.test.tsx.snap +66 -66
- package/src/plugins/impl/data-frames/panel.tsx +44 -16
- package/src/plugins/impl/mpl-interactive/MplInteractivePlugin.tsx +5 -3
- package/src/plugins/impl/panel/PanelPlugin.tsx +16 -17
- package/src/plugins/impl/panel/__tests__/utils.test.ts +39 -1
- package/src/plugins/impl/panel/utils.ts +17 -0
- package/src/plugins/impl/plotly/PlotlyPlugin.tsx +2 -5
- package/src/plugins/impl/plotly/selection.ts +25 -19
- package/src/plugins/impl/vega/VegaPlugin.tsx +2 -3
- package/src/plugins/impl/vega/make-selectable.ts +4 -7
- package/src/plugins/layout/DownloadPlugin.tsx +7 -11
- package/src/plugins/layout/RoutesPlugin.tsx +1 -1
- package/src/plugins/layout/__test__/DownloadPlugin.test.tsx +205 -0
- package/src/stories/__tests__/editor-story.test.tsx +33 -0
- package/src/stories/button.stories.tsx +1 -0
- package/src/stories/cell-status.stories.tsx +29 -24
- package/src/stories/cell.stories.tsx +46 -46
- package/src/stories/data-table.stories.tsx +31 -0
- package/src/stories/editor.stories.tsx +24 -17
- package/src/stories/form-wrapper.stories.tsx +2 -2
- package/src/stories/layout/vertical/one-column.stories.tsx +28 -42
- package/src/stories/runtime-story.tsx +23 -17
- package/src/stories/select.stories.tsx +2 -2
- package/src/stories/switchable-multi-select.stories.tsx +1 -1
- package/src/theme/__tests__/islands-theme.test.tsx +276 -0
- package/src/theme/namespace.tsx +4 -3
- package/src/theme/useTheme.ts +71 -41
- package/src/utils/__tests__/arrays.test.ts +35 -0
- package/src/utils/__tests__/batch-requests.test.ts +3 -3
- package/src/utils/__tests__/{createReducer.test.ts → createReducer.test.tsx} +127 -1
- package/src/utils/__tests__/download.test.tsx +183 -23
- package/src/utils/__tests__/numbers.test.ts +105 -1
- package/src/utils/__tests__/objects.test.ts +21 -0
- package/src/utils/arrays.ts +11 -2
- package/src/utils/blob.ts +1 -1
- package/src/utils/createReducer.ts +115 -79
- package/src/utils/download.ts +67 -6
- package/src/utils/maps.ts +0 -3
- package/src/utils/numbers.ts +79 -18
- package/src/utils/objects.ts +4 -9
- package/src/utils/time.ts +10 -0
- package/src/utils/tracer.ts +9 -5
- package/src/utils/zod-utils.ts +1 -3
- package/dist/_baseMerge-BiGRwuqv.js +0 -165
- package/dist/any-language-editor-D4q-IFcM.js +0 -76
- package/dist/assets/__vite-browser-external-BXYkiFsk.js +0 -1
- package/dist/assets/worker-HPY9fbhz.js +0 -114
- package/dist/feedback-button-CykZqHY-.js +0 -379
- package/dist/hasIn-o2Us0uVx.js +0 -132
- package/dist/html-to-image--r0l9wUy.js +0 -3251
- package/dist/isArrayLikeObject-BZl-15ir.js +0 -450
- package/dist/isEmpty-BSZ1LaUo.js +0 -35
- package/dist/isSymbol-kQcfYbNX.js +0 -8
- package/dist/label-DoysmLMW.js +0 -281
- package/dist/pick-CJeoxYOS.js +0 -51
- package/dist/select-DemoKT4G.js +0 -1344
- package/dist/toDate-gyi35XS2.js +0 -1185
- package/dist/toast-PkdZraM8.js +0 -1830
- package/dist/use-restore-focus-CKjfFjLM.js +0 -6369
- package/dist/useLifecycle-Dfq8UD-b.js +0 -169
- package/dist/useTheme-Bu5bBgrh.js +0 -904
- package/src/components/chat/reasoning-accordion.tsx +0 -61
- package/src/components/chat/tool-call/tool-error-card.tsx +0 -81
- package/src/components/chat/tool-call/tool-history-row.tsx +0 -174
- package/src/components/editor/ai/__tests__/staged-cell-submission.test.ts +0 -106
- package/src/components/editor/ai/add-cell-with-ai.tsx +0 -506
- package/src/components/editor/ai/staged-cell-submission.ts +0 -46
- package/src/components/editor/cell/__tests__/StagedAICell.test.tsx +0 -64
- package/src/components/editor/cell/code/__tests__/rtc-editor-config.test.ts +0 -50
- package/src/components/editor/chrome/wrapper/footer-items/rtc-status.tsx +0 -65
- package/src/components/editor/navigation/__tests__/state.test.ts +0 -81
- package/src/components/editor/navigation/state.ts +0 -65
- package/src/components/icons/loading-ellipsis.tsx +0 -46
- package/src/core/ai/tools/__tests__/run-cells-tool.test.ts +0 -656
- package/src/core/ai/tools/run-cells-tool.ts +0 -303
- package/src/core/attachments/state.ts +0 -18
- package/src/core/cells/__tests__/apply-transaction.test.ts +0 -991
- package/src/core/cells/__tests__/document-changes.test.ts +0 -1140
- package/src/core/cells/__tests__/document-roundtrip.test.ts +0 -392
- package/src/core/cells/document-changes.ts +0 -944
- package/src/core/codemirror/rtc/extension.ts +0 -453
- package/src/core/codemirror/rtc/loro/__tests__/sync.test.ts +0 -52
- package/src/core/codemirror/rtc/loro/awareness.ts +0 -531
- package/src/core/codemirror/rtc/loro/colors.ts +0 -38
- package/src/core/codemirror/rtc/loro/sync.ts +0 -168
- package/src/core/host/AGENTS.md +0 -11
- package/src/core/host/__tests__/events.test.ts +0 -46
- package/src/core/host/__tests__/fixtures.ts +0 -39
- package/src/core/host/__tests__/notebook-client.test.ts +0 -433
- package/src/core/host/__tests__/protocol.test.ts +0 -229
- package/src/core/host/__tests__/stream.test.ts +0 -209
- package/src/core/host/connection.ts +0 -81
- package/src/core/host/events.ts +0 -61
- package/src/core/host/notebook-client.ts +0 -290
- package/src/core/host/protocol.ts +0 -1948
- package/src/core/host/resources/resource.ts +0 -47
- package/src/core/host/stream.ts +0 -211
- package/src/core/rtc/state.ts +0 -34
- package/src/core/state/__tests__/jotai.test.ts +0 -25
- package/src/core/wasm/worker/message-buffer.ts +0 -33
- package/src/core/websocket/__tests__/createConnectionTransport.test.ts +0 -49
- package/src/core/websocket/__tests__/useNotebookClient.hook.test.tsx +0 -170
- package/src/core/websocket/state.ts +0 -7
- package/src/core/websocket/transports/__tests__/basic.test.ts +0 -275
- package/src/core/websocket/transports/__tests__/sse.test.ts +0 -335
- package/src/core/websocket/transports/__tests__/transport.test.ts +0 -308
- package/src/core/websocket/transports/__tests__/ws.test.ts +0 -125
- package/src/core/websocket/transports/basic.ts +0 -102
- package/src/core/websocket/transports/create.ts +0 -31
- package/src/core/websocket/transports/sse.ts +0 -308
- package/src/core/websocket/transports/transport.ts +0 -50
- package/src/core/websocket/transports/ws.ts +0 -98
- package/src/core/websocket/useNotebookClient.ts +0 -88
- package/src/utils/__tests__/id-tree.test.ts +0 -2145
- package/src/utils/id-tree.tsx +0 -1134
- /package/src/{core/attachments/toast.ts → components/editor/agent-toast.ts} +0 -0
- /package/src/core/{websocket → session}/connection-utils.ts +0 -0
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
import { a as e } from "./rolldown-runtime-Cb76FRpK.js";
|
|
2
|
-
import {
|
|
2
|
+
import { g as t, h as n, i as r, m as i, t as a } from "./button-DZuNnIZO.js";
|
|
3
3
|
import { t as o } from "./react-sHtZdjeP.js";
|
|
4
4
|
import { t as s } from "./compiler-runtime-CldRdSsv.js";
|
|
5
|
-
import { h as c, t as l } from "./tooltip-
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
5
|
+
import { h as c, t as l } from "./tooltip-DMMiOn2f.js";
|
|
6
|
+
import { $ as u, Q as d, _n as f, an as p, bn as m, et as h, gn as g, i as _, l as v, n as y, on as b, r as x, t as S, u as C } from "./common-CHNDbyF2.js";
|
|
7
|
+
import { M as w } from "./select-DsoP1qe8.js";
|
|
8
|
+
import { Y as T } from "./dropdown-menu-Bb0bFOIk.js";
|
|
9
|
+
import { Ft as E } from "./error-entries-9U4BFHjf.js";
|
|
10
|
+
import { t as D } from "./jsx-runtime-3BD1kT0s.js";
|
|
11
|
+
import { Ft as O, Rt as k, d as A, r as ee } from "./use-restore-focus-CosX7-gx.js";
|
|
12
|
+
import { t as j } from "./useEvent-BRH-aCqi.js";
|
|
13
|
+
import { o as te } from "./static-state-D-Q-Ajaa.js";
|
|
14
|
+
import { n as ne, t as re } from "./code-visibility-DSS4dPIe.js";
|
|
15
15
|
/* empty css */
|
|
16
|
-
var
|
|
16
|
+
var M = c("sticky-note", [["path", {
|
|
17
17
|
d: "M21 9a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 15 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2z",
|
|
18
18
|
key: "1dfntj"
|
|
19
19
|
}], ["path", {
|
|
20
20
|
d: "M15 3v5a1 1 0 0 0 1 1h5",
|
|
21
21
|
key: "6s6qgf"
|
|
22
|
-
}]]),
|
|
22
|
+
}]]), N = /* @__PURE__ */ e(o(), 1), ie = s(), ae = (e, t) => {
|
|
23
23
|
for (let n in t) e[n] = t[n];
|
|
24
24
|
return e;
|
|
25
|
-
}, P = (e, t) => Array.from(e.querySelectorAll(t)),
|
|
25
|
+
}, P = (e, t) => Array.from(e.querySelectorAll(t)), oe = (e, t, n) => {
|
|
26
26
|
n ? e.classList.add(t) : e.classList.remove(t);
|
|
27
|
-
},
|
|
27
|
+
}, se = (e) => {
|
|
28
28
|
if (typeof e == "string") {
|
|
29
29
|
if (e === "null") return null;
|
|
30
30
|
if (e === "true") return !0;
|
|
@@ -32,7 +32,7 @@ var j = c("sticky-note", [["path", {
|
|
|
32
32
|
if (e.match(/^-?[\d\.]+$/)) return parseFloat(e);
|
|
33
33
|
}
|
|
34
34
|
return e;
|
|
35
|
-
},
|
|
35
|
+
}, ce = (e, t) => {
|
|
36
36
|
e.style.transform = t;
|
|
37
37
|
}, F = (e, t) => {
|
|
38
38
|
let n = e.matches || e.matchesSelector || e.msMatchesSelector;
|
|
@@ -44,11 +44,11 @@ var j = c("sticky-note", [["path", {
|
|
|
44
44
|
e = e.parentElement;
|
|
45
45
|
}
|
|
46
46
|
return null;
|
|
47
|
-
},
|
|
47
|
+
}, le = (e) => {
|
|
48
48
|
e ||= document.documentElement;
|
|
49
49
|
let t = e.requestFullscreen || e.webkitRequestFullscreen || e.webkitRequestFullScreen || e.mozRequestFullScreen || e.msRequestFullscreen;
|
|
50
50
|
t && t.apply(e);
|
|
51
|
-
},
|
|
51
|
+
}, ue = (e, t, n, r = "") => {
|
|
52
52
|
let i = e.querySelectorAll("." + n);
|
|
53
53
|
for (let t = 0; t < i.length; t++) {
|
|
54
54
|
let n = i[t];
|
|
@@ -56,10 +56,10 @@ var j = c("sticky-note", [["path", {
|
|
|
56
56
|
}
|
|
57
57
|
let a = document.createElement(t);
|
|
58
58
|
return a.className = n, a.innerHTML = r, e.appendChild(a), a;
|
|
59
|
-
},
|
|
59
|
+
}, de = (e) => {
|
|
60
60
|
let t = document.createElement("style");
|
|
61
61
|
return e && e.length > 0 && t.appendChild(document.createTextNode(e)), document.head.appendChild(t), t;
|
|
62
|
-
},
|
|
62
|
+
}, fe = () => {
|
|
63
63
|
let e = {};
|
|
64
64
|
location.search.replace(/[A-Z0-9]+?=([\w\.%-]*)/gi, (t) => {
|
|
65
65
|
let n = t.split("=").shift(), r = t.split("=").pop();
|
|
@@ -67,27 +67,27 @@ var j = c("sticky-note", [["path", {
|
|
|
67
67
|
});
|
|
68
68
|
for (let t in e) {
|
|
69
69
|
let n = e[t];
|
|
70
|
-
e[t] =
|
|
70
|
+
e[t] = se(unescape(n));
|
|
71
71
|
}
|
|
72
72
|
return e.dependencies !== void 0 && delete e.dependencies, e;
|
|
73
|
-
},
|
|
73
|
+
}, pe = (e, t = 0) => {
|
|
74
74
|
if (e) {
|
|
75
75
|
let n, r = e.style.height;
|
|
76
76
|
return e.style.height = "0px", e.parentElement && (e.parentElement.style.height = "auto"), n = t - (e.parentElement?.offsetHeight || 0), e.style.height = r + "px", e.parentElement && e.parentElement.style.removeProperty("height"), n;
|
|
77
77
|
}
|
|
78
78
|
return t;
|
|
79
|
-
},
|
|
79
|
+
}, me = {
|
|
80
80
|
mp4: "video/mp4",
|
|
81
81
|
m4a: "video/mp4",
|
|
82
82
|
ogv: "video/ogg",
|
|
83
83
|
mpeg: "video/mpeg",
|
|
84
84
|
webm: "video/webm"
|
|
85
|
-
},
|
|
85
|
+
}, he = (e = "") => {
|
|
86
86
|
let t = e.split(".").pop();
|
|
87
|
-
return t ?
|
|
88
|
-
},
|
|
89
|
-
/chrome/i.test(
|
|
90
|
-
var
|
|
87
|
+
return t ? me[t] : void 0;
|
|
88
|
+
}, ge = (e = "") => encodeURI(e).replace(/%5B/g, "[").replace(/%5D/g, "]").replace(/[!'()*]/g, (e) => `%${e.charCodeAt(0).toString(16).toUpperCase()}`), _e = navigator.userAgent, ve = /(iphone|ipod|ipad|android)/gi.test(_e) || navigator.platform === "MacIntel" && navigator.maxTouchPoints > 1;
|
|
89
|
+
/chrome/i.test(_e) && /edge/i.test(_e);
|
|
90
|
+
var ye = /android/gi.test(_e), be = function(e) {
|
|
91
91
|
if (e) {
|
|
92
92
|
var t = function(e) {
|
|
93
93
|
return [].slice.call(e);
|
|
@@ -166,17 +166,17 @@ var R = /android/gi.test(me), ge = function(e) {
|
|
|
166
166
|
childList: !0,
|
|
167
167
|
characterData: !0
|
|
168
168
|
}
|
|
169
|
-
},
|
|
170
|
-
e.clearTimeout(
|
|
171
|
-
},
|
|
172
|
-
return Object.defineProperty(
|
|
169
|
+
}, w = null, T = function() {
|
|
170
|
+
e.clearTimeout(w), w = e.setTimeout(l(i), O.observeWindowDelay);
|
|
171
|
+
}, E = ["resize", "orientationchange"];
|
|
172
|
+
return Object.defineProperty(O, "observeWindow", { set: function(t) {
|
|
173
173
|
var n = `${t ? "add" : "remove"}EventListener`;
|
|
174
|
-
|
|
175
|
-
e[n](t,
|
|
174
|
+
E.forEach((function(t) {
|
|
175
|
+
e[n](t, T);
|
|
176
176
|
}));
|
|
177
|
-
} }),
|
|
177
|
+
} }), O.observeWindow = !0, O.observeWindowDelay = 100, O.fitAll = l(a), O;
|
|
178
178
|
}
|
|
179
|
-
function
|
|
179
|
+
function D(e, t) {
|
|
180
180
|
var n = Object.assign({}, C, t), r = e.map((function(e) {
|
|
181
181
|
var t = Object.assign({}, n, {
|
|
182
182
|
element: e,
|
|
@@ -198,44 +198,44 @@ var R = /android/gi.test(me), ge = function(e) {
|
|
|
198
198
|
}));
|
|
199
199
|
return c(), r;
|
|
200
200
|
}
|
|
201
|
-
function
|
|
201
|
+
function O(e) {
|
|
202
202
|
var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
203
|
-
return typeof e == "string" ?
|
|
203
|
+
return typeof e == "string" ? D(t(document.querySelectorAll(e)), n) : D([e], n)[0];
|
|
204
204
|
}
|
|
205
205
|
}(typeof window > "u" ? null : window);
|
|
206
|
-
function
|
|
206
|
+
function L(e) {
|
|
207
207
|
"@babel/helpers - typeof";
|
|
208
|
-
return
|
|
208
|
+
return L = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
209
209
|
return typeof e;
|
|
210
210
|
} : function(e) {
|
|
211
211
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
212
|
-
},
|
|
212
|
+
}, L(e);
|
|
213
213
|
}
|
|
214
|
-
function
|
|
215
|
-
if (
|
|
214
|
+
function xe(e, t) {
|
|
215
|
+
if (L(e) != "object" || !e) return e;
|
|
216
216
|
var n = e[Symbol.toPrimitive];
|
|
217
217
|
if (n !== void 0) {
|
|
218
218
|
var r = n.call(e, t || "default");
|
|
219
|
-
if (
|
|
219
|
+
if (L(r) != "object") return r;
|
|
220
220
|
throw TypeError("@@toPrimitive must return a primitive value.");
|
|
221
221
|
}
|
|
222
222
|
return (t === "string" ? String : Number)(e);
|
|
223
223
|
}
|
|
224
|
-
function
|
|
225
|
-
var t =
|
|
226
|
-
return
|
|
224
|
+
function Se(e) {
|
|
225
|
+
var t = xe(e, "string");
|
|
226
|
+
return L(t) == "symbol" ? t : t + "";
|
|
227
227
|
}
|
|
228
|
-
function
|
|
229
|
-
return (t =
|
|
228
|
+
function Ce(e, t, n) {
|
|
229
|
+
return (t = Se(t)) in e ? Object.defineProperty(e, t, {
|
|
230
230
|
value: n,
|
|
231
231
|
enumerable: !0,
|
|
232
232
|
configurable: !0,
|
|
233
233
|
writable: !0
|
|
234
234
|
}) : e[t] = n, e;
|
|
235
235
|
}
|
|
236
|
-
var
|
|
236
|
+
var R = class {
|
|
237
237
|
constructor(e) {
|
|
238
|
-
|
|
238
|
+
Ce(this, "allowedToPlayAudio", null), this.Reveal = e, this.startEmbeddedMedia = this.startEmbeddedMedia.bind(this), this.startEmbeddedIframe = this.startEmbeddedIframe.bind(this), this.preventIframeAutoFocus = this.preventIframeAutoFocus.bind(this), this.ensureMobileMediaPlaying = this.ensureMobileMediaPlaying.bind(this), this.failedAudioPlaybackTargets = /* @__PURE__ */ new Set(), this.failedVideoPlaybackTargets = /* @__PURE__ */ new Set(), this.failedMutedVideoPlaybackTargets = /* @__PURE__ */ new Set(), this.renderMediaPlayButton();
|
|
239
239
|
}
|
|
240
240
|
renderMediaPlayButton() {
|
|
241
241
|
this.mediaPlayButton = document.createElement("button"), this.mediaPlayButton.className = "r-overlay-button r-media-play-button", this.mediaPlayButton.addEventListener("click", () => {
|
|
@@ -266,7 +266,7 @@ var be = class {
|
|
|
266
266
|
let t = 0;
|
|
267
267
|
P(e, "source[data-src]").forEach((e) => {
|
|
268
268
|
e.setAttribute("src", e.getAttribute("data-src")), e.removeAttribute("data-src"), e.setAttribute("data-lazy-loaded", ""), t += 1;
|
|
269
|
-
}),
|
|
269
|
+
}), ve && e.tagName === "VIDEO" && e.setAttribute("playsinline", ""), t > 0 && e.load();
|
|
270
270
|
});
|
|
271
271
|
let r = e.slideBackgroundElement;
|
|
272
272
|
if (r) {
|
|
@@ -275,13 +275,13 @@ var be = class {
|
|
|
275
275
|
if (r.hasAttribute("data-loaded") === !1) {
|
|
276
276
|
r.setAttribute("data-loaded", "true");
|
|
277
277
|
let a = e.getAttribute("data-background-image"), o = e.getAttribute("data-background-video"), s = e.hasAttribute("data-background-video-loop"), c = e.hasAttribute("data-background-video-muted");
|
|
278
|
-
if (a) /^data:/.test(a.trim()) ? n.style.backgroundImage = `url(${a.trim()})` : n.style.backgroundImage = a.split(",").map((e) => `url(${
|
|
278
|
+
if (a) /^data:/.test(a.trim()) ? n.style.backgroundImage = `url(${a.trim()})` : n.style.backgroundImage = a.split(",").map((e) => `url(${ge(decodeURI(e.trim()))})`).join(",");
|
|
279
279
|
else if (o) {
|
|
280
280
|
let e = document.createElement("video");
|
|
281
|
-
s && e.setAttribute("loop", ""), (c || this.Reveal.isSpeakerNotes()) && (e.muted = !0),
|
|
281
|
+
s && e.setAttribute("loop", ""), (c || this.Reveal.isSpeakerNotes()) && (e.muted = !0), ve && e.setAttribute("playsinline", ""), o.split(",").forEach((t) => {
|
|
282
282
|
let n = document.createElement("source");
|
|
283
283
|
n.setAttribute("src", t);
|
|
284
|
-
let r =
|
|
284
|
+
let r = he(t);
|
|
285
285
|
r && n.setAttribute("type", r), e.appendChild(n);
|
|
286
286
|
}), n.appendChild(e);
|
|
287
287
|
} else if (i && t.excludeIframes !== !0) {
|
|
@@ -296,7 +296,7 @@ var be = class {
|
|
|
296
296
|
}
|
|
297
297
|
layout(e) {
|
|
298
298
|
Array.from(e.querySelectorAll(".r-fit-text")).forEach((e) => {
|
|
299
|
-
|
|
299
|
+
be(e, {
|
|
300
300
|
minSize: 24,
|
|
301
301
|
maxSize: this.Reveal.getConfig().height * .8,
|
|
302
302
|
observeMutations: !1,
|
|
@@ -334,7 +334,7 @@ var be = class {
|
|
|
334
334
|
let n = this.Reveal.getConfig().autoPlayMedia;
|
|
335
335
|
if (typeof n != "boolean" && (n = e.hasAttribute("data-autoplay") || !!I(e, ".slide-background")), n && typeof e.play == "function") {
|
|
336
336
|
if (t && !e.muted) return;
|
|
337
|
-
e.readyState > 1 ? this.startEmbeddedMedia({ target: e }) :
|
|
337
|
+
e.readyState > 1 ? this.startEmbeddedMedia({ target: e }) : ve ? (e.addEventListener("canplay", this.ensureMobileMediaPlaying), this.playMediaElement(e)) : (e.removeEventListener("loadeddata", this.startEmbeddedMedia), e.addEventListener("loadeddata", this.startEmbeddedMedia));
|
|
338
338
|
}
|
|
339
339
|
}), t || (P(e, "iframe[src]").forEach((e) => {
|
|
340
340
|
I(e, ".fragment") && !I(e, ".fragment.visible") || this.startEmbeddedIframe({ target: e });
|
|
@@ -381,8 +381,8 @@ var be = class {
|
|
|
381
381
|
}
|
|
382
382
|
}
|
|
383
383
|
stopEmbeddedContent(e, t = {}) {
|
|
384
|
-
t =
|
|
385
|
-
!e.hasAttribute("data-ignore") && typeof e.pause == "function" && (e.setAttribute("data-paused-by-reveal", ""), e.pause(),
|
|
384
|
+
t = ae({ unloadIframes: !0 }, t), e && e.parentNode && (P(e, "video, audio").forEach((e) => {
|
|
385
|
+
!e.hasAttribute("data-ignore") && typeof e.pause == "function" && (e.setAttribute("data-paused-by-reveal", ""), e.pause(), ve && e.removeEventListener("canplay", this.ensureMobileMediaPlaying));
|
|
386
386
|
}), P(e, "iframe").forEach((e) => {
|
|
387
387
|
e.contentWindow && e.contentWindow.postMessage("slide:stop", "*"), e.removeEventListener("load", this.preventIframeAutoFocus), e.removeEventListener("load", this.startEmbeddedIframe);
|
|
388
388
|
}), P(e, "iframe[src*=\"youtube.com/embed/\"]").forEach((e) => {
|
|
@@ -433,7 +433,7 @@ var be = class {
|
|
|
433
433
|
afterSlideChanged() {
|
|
434
434
|
this.clearMediaPlaybackErrors();
|
|
435
435
|
}
|
|
436
|
-
},
|
|
436
|
+
}, z = ".slides section", B = ".slides>section", we = ".slides>section.present>section", Te = ".backgrounds>.slide-background", Ee = /registerPlugin|registerKeyboardShortcut|addKeyBinding|addEventListener|showPreview|previewIframe/, De = class {
|
|
437
437
|
constructor(e) {
|
|
438
438
|
this.Reveal = e;
|
|
439
439
|
}
|
|
@@ -482,7 +482,7 @@ var be = class {
|
|
|
482
482
|
destroy() {
|
|
483
483
|
this.element.remove();
|
|
484
484
|
}
|
|
485
|
-
},
|
|
485
|
+
}, Oe = class {
|
|
486
486
|
constructor(e) {
|
|
487
487
|
this.Reveal = e, this.onInput = this.onInput.bind(this), this.onBlur = this.onBlur.bind(this), this.onKeyDown = this.onKeyDown.bind(this);
|
|
488
488
|
}
|
|
@@ -535,7 +535,7 @@ var be = class {
|
|
|
535
535
|
onBlur() {
|
|
536
536
|
setTimeout(() => this.hide(), 1);
|
|
537
537
|
}
|
|
538
|
-
},
|
|
538
|
+
}, V = (e) => {
|
|
539
539
|
let t = e.match(/^#([0-9a-f]{3})$/i);
|
|
540
540
|
if (t && t[1]) {
|
|
541
541
|
let e = t[1];
|
|
@@ -567,7 +567,7 @@ var be = class {
|
|
|
567
567
|
b: parseInt(i[3], 10),
|
|
568
568
|
a: parseFloat(i[4])
|
|
569
569
|
} : null;
|
|
570
|
-
},
|
|
570
|
+
}, ke = (e) => (typeof e == "string" && (e = V(e)), e ? (e.r * 299 + e.g * 587 + e.b * 114) / 1e3 : null), Ae = class {
|
|
571
571
|
constructor(e) {
|
|
572
572
|
this.Reveal = e;
|
|
573
573
|
}
|
|
@@ -610,13 +610,13 @@ var be = class {
|
|
|
610
610
|
}
|
|
611
611
|
getContrastClass(e) {
|
|
612
612
|
let t = e.slideBackgroundElement, n = e.getAttribute("data-background-color");
|
|
613
|
-
if (!n || !
|
|
613
|
+
if (!n || !V(n)) {
|
|
614
614
|
let e = window.getComputedStyle(t);
|
|
615
615
|
e && e.backgroundColor && (n = e.backgroundColor);
|
|
616
616
|
}
|
|
617
617
|
if (n) {
|
|
618
|
-
let e =
|
|
619
|
-
if (e && e.a !== 0) return
|
|
618
|
+
let e = V(n);
|
|
619
|
+
if (e && e.a !== 0) return ke(n) < 128 ? "has-dark-background" : "has-light-background";
|
|
620
620
|
}
|
|
621
621
|
return null;
|
|
622
622
|
}
|
|
@@ -672,7 +672,7 @@ var be = class {
|
|
|
672
672
|
destroy() {
|
|
673
673
|
this.element.remove();
|
|
674
674
|
}
|
|
675
|
-
},
|
|
675
|
+
}, je = 0, Me = class {
|
|
676
676
|
constructor(e) {
|
|
677
677
|
this.Reveal = e;
|
|
678
678
|
}
|
|
@@ -680,17 +680,17 @@ var be = class {
|
|
|
680
680
|
this.reset();
|
|
681
681
|
let n = this.Reveal.getSlides(), r = n.indexOf(t), i = n.indexOf(e);
|
|
682
682
|
if (e && t && e.hasAttribute("data-auto-animate") && t.hasAttribute("data-auto-animate") && e.getAttribute("data-auto-animate-id") === t.getAttribute("data-auto-animate-id") && !(r > i ? t : e).hasAttribute("data-auto-animate-restart")) {
|
|
683
|
-
this.autoAnimateStyleSheet = this.autoAnimateStyleSheet ||
|
|
683
|
+
this.autoAnimateStyleSheet = this.autoAnimateStyleSheet || de();
|
|
684
684
|
let n = this.getAutoAnimateOptions(t);
|
|
685
685
|
e.dataset.autoAnimate = "pending", t.dataset.autoAnimate = "pending", n.slideDirection = r > i ? "forward" : "backward";
|
|
686
686
|
let a = e.style.display === "none";
|
|
687
687
|
a && (e.style.display = this.Reveal.getConfig().display);
|
|
688
|
-
let o = this.getAutoAnimatableElements(e, t).map((e) => this.autoAnimateElements(e.from, e.to, e.options || {}, n,
|
|
688
|
+
let o = this.getAutoAnimatableElements(e, t).map((e) => this.autoAnimateElements(e.from, e.to, e.options || {}, n, je++));
|
|
689
689
|
if (a && (e.style.display = "none"), t.dataset.autoAnimateUnmatched !== "false" && this.Reveal.getConfig().autoAnimateUnmatched === !0) {
|
|
690
690
|
let e = n.duration * .8, r = n.duration * .2;
|
|
691
691
|
this.getUnmatchedAutoAnimateElements(t).forEach((e) => {
|
|
692
692
|
let t = this.getAutoAnimateOptions(e, n), r = "unmatched";
|
|
693
|
-
(t.duration !== n.duration || t.delay !== n.delay) && (r = "unmatched-" +
|
|
693
|
+
(t.duration !== n.duration || t.delay !== n.delay) && (r = "unmatched-" + je++, o.push(`[data-auto-animate="running"] [data-auto-animate-target="${r}"] { transition: opacity ${t.duration}s ease ${t.delay}s; }`)), e.dataset.autoAnimateTarget = r;
|
|
694
694
|
}, this), o.push(`[data-auto-animate="running"] [data-auto-animate-target="unmatched"] { transition: opacity ${e}s ease ${r}s; }`);
|
|
695
695
|
}
|
|
696
696
|
this.autoAnimateStyleSheet.innerHTML = o.join(""), requestAnimationFrame(() => {
|
|
@@ -749,7 +749,7 @@ var be = class {
|
|
|
749
749
|
duration: this.Reveal.getConfig().autoAnimateDuration,
|
|
750
750
|
delay: 0
|
|
751
751
|
};
|
|
752
|
-
if (n =
|
|
752
|
+
if (n = ae(n, t), e.parentNode) {
|
|
753
753
|
let t = I(e.parentNode, "[data-auto-animate-target]");
|
|
754
754
|
t && (n = this.getAutoAnimateOptions(t, n));
|
|
755
755
|
}
|
|
@@ -842,7 +842,7 @@ var be = class {
|
|
|
842
842
|
return !t.hasAttribute("data-auto-animate-target") && !n && e.push(t), t.querySelector("[data-auto-animate-target]") && (e = e.concat(this.getUnmatchedAutoAnimateElements(t))), e;
|
|
843
843
|
}, []);
|
|
844
844
|
}
|
|
845
|
-
},
|
|
845
|
+
}, Ne = 500, Pe = 4, Fe = 6, Ie = 8, Le = class {
|
|
846
846
|
constructor(e) {
|
|
847
847
|
this.Reveal = e, this.active = !1, this.activeProgressBarPage = null, this.activeProgressBarTrigger = null, this.activatedCallbacks = [], this.onScroll = this.onScroll.bind(this);
|
|
848
848
|
}
|
|
@@ -850,7 +850,7 @@ var be = class {
|
|
|
850
850
|
if (this.active) return;
|
|
851
851
|
let e = this.Reveal.getState();
|
|
852
852
|
this.active = !0, this.slideHTMLBeforeActivation = this.Reveal.getSlidesElement().innerHTML;
|
|
853
|
-
let t = P(this.Reveal.getRevealElement(),
|
|
853
|
+
let t = P(this.Reveal.getRevealElement(), B), n = P(this.Reveal.getRevealElement(), Te);
|
|
854
854
|
this.viewportElement.classList.add("loading-scroll-mode", "reveal-scroll");
|
|
855
855
|
let r, i = window.getComputedStyle(this.viewportElement);
|
|
856
856
|
i && i.background && (r = i.background);
|
|
@@ -975,9 +975,9 @@ var be = class {
|
|
|
975
975
|
e.progressBarSlide = null, e.scrollTriggers.forEach((e) => e.progressBarElement = null);
|
|
976
976
|
});
|
|
977
977
|
let e = this.viewportElement.scrollHeight, t = this.viewportElement.offsetHeight, n = t / e;
|
|
978
|
-
this.progressBarHeight = this.progressBarInner.offsetHeight, this.playheadHeight = Math.max(n * this.progressBarHeight,
|
|
979
|
-
let r = t / e * this.progressBarHeight, i = Math.min(r / 8,
|
|
980
|
-
this.progressBarPlayhead.style.height = this.playheadHeight - i + "px", r >
|
|
978
|
+
this.progressBarHeight = this.progressBarInner.offsetHeight, this.playheadHeight = Math.max(n * this.progressBarHeight, Ie), this.progressBarScrollableHeight = this.progressBarHeight - this.playheadHeight;
|
|
979
|
+
let r = t / e * this.progressBarHeight, i = Math.min(r / 8, Pe);
|
|
980
|
+
this.progressBarPlayhead.style.height = this.playheadHeight - i + "px", r > Fe && this.slideTriggers.forEach((e) => {
|
|
981
981
|
let { page: t } = e;
|
|
982
982
|
t.progressBarSlide = document.createElement("div"), t.progressBarSlide.className = "scrollbar-slide", t.progressBarSlide.style.top = e.range[0] * this.progressBarHeight + "px", t.progressBarSlide.style.height = (e.range[1] - e.range[0]) * this.progressBarHeight - i + "px", t.progressBarSlide.classList.toggle("has-triggers", t.scrollTriggers.length > 0), this.progressBarInner.appendChild(t.progressBarSlide), t.scrollTriggers.forEach((n, r) => {
|
|
983
983
|
let a = document.createElement("div");
|
|
@@ -1010,7 +1010,7 @@ var be = class {
|
|
|
1010
1010
|
showProgressBar() {
|
|
1011
1011
|
this.progressBar.classList.add("visible"), clearTimeout(this.hideProgressBarTimeout), this.Reveal.getConfig().scrollProgress === "auto" && !this.draggingProgressBar && (this.hideProgressBarTimeout = setTimeout(() => {
|
|
1012
1012
|
this.progressBar && this.progressBar.classList.remove("visible");
|
|
1013
|
-
},
|
|
1013
|
+
}, Ne));
|
|
1014
1014
|
}
|
|
1015
1015
|
prev() {
|
|
1016
1016
|
this.viewportElement.scrollTop -= this.scrollTriggerHeight;
|
|
@@ -1071,7 +1071,7 @@ var be = class {
|
|
|
1071
1071
|
return this.Reveal.getViewportElement();
|
|
1072
1072
|
}
|
|
1073
1073
|
};
|
|
1074
|
-
function
|
|
1074
|
+
function H(e, t, n, r, i, a, o) {
|
|
1075
1075
|
try {
|
|
1076
1076
|
var s = e[a](o), c = s.value;
|
|
1077
1077
|
} catch (e) {
|
|
@@ -1080,30 +1080,30 @@ function Ie(e, t, n, r, i, a, o) {
|
|
|
1080
1080
|
}
|
|
1081
1081
|
s.done ? t(c) : Promise.resolve(c).then(r, i);
|
|
1082
1082
|
}
|
|
1083
|
-
function
|
|
1083
|
+
function Re(e) {
|
|
1084
1084
|
return function() {
|
|
1085
1085
|
var t = this, n = arguments;
|
|
1086
1086
|
return new Promise(function(r, i) {
|
|
1087
1087
|
var a = e.apply(t, n);
|
|
1088
1088
|
function o(e) {
|
|
1089
|
-
|
|
1089
|
+
H(a, r, i, o, s, "next", e);
|
|
1090
1090
|
}
|
|
1091
1091
|
function s(e) {
|
|
1092
|
-
|
|
1092
|
+
H(a, r, i, o, s, "throw", e);
|
|
1093
1093
|
}
|
|
1094
1094
|
o(void 0);
|
|
1095
1095
|
});
|
|
1096
1096
|
};
|
|
1097
1097
|
}
|
|
1098
|
-
var
|
|
1098
|
+
var ze = class {
|
|
1099
1099
|
constructor(e) {
|
|
1100
1100
|
this.Reveal = e;
|
|
1101
1101
|
}
|
|
1102
1102
|
activate() {
|
|
1103
1103
|
var e = this;
|
|
1104
|
-
return
|
|
1105
|
-
let t = e.Reveal.getConfig(), n = P(e.Reveal.getRevealElement(),
|
|
1106
|
-
yield new Promise(requestAnimationFrame),
|
|
1104
|
+
return Re(function* () {
|
|
1105
|
+
let t = e.Reveal.getConfig(), n = P(e.Reveal.getRevealElement(), z), r = t.slideNumber && /all|print/i.test(t.showSlideNumber), i = e.Reveal.getComputedSlideSize(window.innerWidth, window.innerHeight), a = Math.floor(i.width * (1 + t.margin)), o = Math.floor(i.height * (1 + t.margin)), s = i.width, c = i.height;
|
|
1106
|
+
yield new Promise(requestAnimationFrame), de("@page{size:" + a + "px " + o + "px; margin: 0px;}"), de(".reveal section>img, .reveal section>video, .reveal section>iframe{max-width: " + s + "px; max-height:" + c + "px}"), document.documentElement.classList.add("reveal-print", "print-pdf"), document.body.style.width = a + "px", document.body.style.height = o + "px";
|
|
1107
1107
|
let l = e.Reveal.getViewportElement(), u;
|
|
1108
1108
|
if (l) {
|
|
1109
1109
|
let e = window.getComputedStyle(l);
|
|
@@ -1156,7 +1156,7 @@ var Re = class {
|
|
|
1156
1156
|
isActive() {
|
|
1157
1157
|
return this.Reveal.getConfig().view === "print";
|
|
1158
1158
|
}
|
|
1159
|
-
},
|
|
1159
|
+
}, Be = class {
|
|
1160
1160
|
constructor(e) {
|
|
1161
1161
|
this.Reveal = e;
|
|
1162
1162
|
}
|
|
@@ -1279,13 +1279,13 @@ var Re = class {
|
|
|
1279
1279
|
prev() {
|
|
1280
1280
|
return this.goto(null, -1);
|
|
1281
1281
|
}
|
|
1282
|
-
},
|
|
1282
|
+
}, Ve = class {
|
|
1283
1283
|
constructor(e) {
|
|
1284
1284
|
this.Reveal = e, this.active = !1, this.onSlideClicked = this.onSlideClicked.bind(this);
|
|
1285
1285
|
}
|
|
1286
1286
|
activate() {
|
|
1287
1287
|
if (this.Reveal.getConfig().overview && !this.Reveal.isScrollView() && !this.isActive()) {
|
|
1288
|
-
this.active = !0, this.Reveal.getRevealElement().classList.add("overview"), this.Reveal.cancelAutoSlide(), this.Reveal.getSlidesElement().appendChild(this.Reveal.getBackgroundsElement()), P(this.Reveal.getRevealElement(),
|
|
1288
|
+
this.active = !0, this.Reveal.getRevealElement().classList.add("overview"), this.Reveal.cancelAutoSlide(), this.Reveal.getSlidesElement().appendChild(this.Reveal.getBackgroundsElement()), P(this.Reveal.getRevealElement(), z).forEach((e) => {
|
|
1289
1289
|
e.classList.contains("stack") || e.addEventListener("click", this.onSlideClicked, !0);
|
|
1290
1290
|
});
|
|
1291
1291
|
let e = this.Reveal.getComputedSlideSize();
|
|
@@ -1303,12 +1303,12 @@ var Re = class {
|
|
|
1303
1303
|
}
|
|
1304
1304
|
layout() {
|
|
1305
1305
|
this.Reveal.getHorizontalSlides().forEach((e, t) => {
|
|
1306
|
-
e.setAttribute("data-index-h", t),
|
|
1307
|
-
e.setAttribute("data-index-h", t), e.setAttribute("data-index-v", n),
|
|
1306
|
+
e.setAttribute("data-index-h", t), ce(e, "translate3d(" + t * this.overviewSlideWidth + "px, 0, 0)"), e.classList.contains("stack") && P(e, "section").forEach((e, n) => {
|
|
1307
|
+
e.setAttribute("data-index-h", t), e.setAttribute("data-index-v", n), ce(e, "translate3d(0, " + n * this.overviewSlideHeight + "px, 0)");
|
|
1308
1308
|
});
|
|
1309
1309
|
}), Array.from(this.Reveal.getBackgroundsElement().childNodes).forEach((e, t) => {
|
|
1310
|
-
|
|
1311
|
-
|
|
1310
|
+
ce(e, "translate3d(" + t * this.overviewSlideWidth + "px, 0, 0)"), P(e, ".slide-background").forEach((e, t) => {
|
|
1311
|
+
ce(e, "translate3d(0, " + t * this.overviewSlideHeight + "px, 0)");
|
|
1312
1312
|
});
|
|
1313
1313
|
});
|
|
1314
1314
|
}
|
|
@@ -1324,10 +1324,10 @@ var Re = class {
|
|
|
1324
1324
|
if (this.Reveal.getConfig().overview) {
|
|
1325
1325
|
this.active = !1, this.Reveal.getRevealElement().classList.remove("overview"), this.Reveal.getRevealElement().classList.add("overview-deactivating"), setTimeout(() => {
|
|
1326
1326
|
this.Reveal.getRevealElement().classList.remove("overview-deactivating");
|
|
1327
|
-
}, 1), this.Reveal.getRevealElement().appendChild(this.Reveal.getBackgroundsElement()), P(this.Reveal.getRevealElement(),
|
|
1328
|
-
|
|
1327
|
+
}, 1), this.Reveal.getRevealElement().appendChild(this.Reveal.getBackgroundsElement()), P(this.Reveal.getRevealElement(), z).forEach((e) => {
|
|
1328
|
+
ce(e, ""), e.removeEventListener("click", this.onSlideClicked, !0);
|
|
1329
1329
|
}), P(this.Reveal.getBackgroundsElement(), ".slide-background").forEach((e) => {
|
|
1330
|
-
|
|
1330
|
+
ce(e, "");
|
|
1331
1331
|
}), this.Reveal.transformSlides({ overview: "" });
|
|
1332
1332
|
let e = this.Reveal.getIndices();
|
|
1333
1333
|
this.Reveal.slide(e.h, e.v), this.Reveal.layout(), this.Reveal.cueAutoSlide(), this.Reveal.dispatchEvent({
|
|
@@ -1357,7 +1357,7 @@ var Re = class {
|
|
|
1357
1357
|
}
|
|
1358
1358
|
}
|
|
1359
1359
|
}
|
|
1360
|
-
},
|
|
1360
|
+
}, He = class {
|
|
1361
1361
|
constructor(e) {
|
|
1362
1362
|
this.Reveal = e, this.shortcuts = {}, this.bindings = {}, this.onDocumentKeyDown = this.onDocumentKeyDown.bind(this);
|
|
1363
1363
|
}
|
|
@@ -1447,10 +1447,10 @@ var Re = class {
|
|
|
1447
1447
|
66,
|
|
1448
1448
|
86,
|
|
1449
1449
|
190
|
|
1450
|
-
].includes(n) || n === 191 && !e.shiftKey ? this.Reveal.togglePause() : n === 70 ?
|
|
1450
|
+
].includes(n) || n === 191 && !e.shiftKey ? this.Reveal.togglePause() : n === 70 ? le(t.embedded ? this.Reveal.getViewportElement() : document.documentElement) : n === 65 ? t.autoSlideStoppable && this.Reveal.toggleAutoSlide(r) : n === 71 ? t.jumpToSlide && this.Reveal.toggleJumpToSlide() : n === 67 && this.Reveal.isOverlayOpen() ? this.Reveal.closeOverlay() : (n === 63 || n === 191) && e.shiftKey || n === 112 ? this.Reveal.toggleHelp() : d = !1), d ? e.preventDefault && e.preventDefault() : n === 27 || n === 79 ? (this.Reveal.closeOverlay() === !1 && this.Reveal.overview.toggle(), e.preventDefault && e.preventDefault()) : n === 13 && this.Reveal.overview.isActive() && (this.Reveal.overview.deactivate(), e.preventDefault && e.preventDefault()), this.Reveal.cueAutoSlide();
|
|
1451
1451
|
}
|
|
1452
1452
|
};
|
|
1453
|
-
function
|
|
1453
|
+
function Ue(e, t) {
|
|
1454
1454
|
var n = Object.keys(e);
|
|
1455
1455
|
if (Object.getOwnPropertySymbols) {
|
|
1456
1456
|
var r = Object.getOwnPropertySymbols(e);
|
|
@@ -1463,17 +1463,17 @@ function H(e, t) {
|
|
|
1463
1463
|
function U(e) {
|
|
1464
1464
|
for (var t = 1; t < arguments.length; t++) {
|
|
1465
1465
|
var n = arguments[t] == null ? {} : arguments[t];
|
|
1466
|
-
t % 2 ?
|
|
1467
|
-
|
|
1468
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) :
|
|
1466
|
+
t % 2 ? Ue(Object(n), !0).forEach(function(t) {
|
|
1467
|
+
Ce(e, t, n[t]);
|
|
1468
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Ue(Object(n)).forEach(function(t) {
|
|
1469
1469
|
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
|
|
1470
1470
|
});
|
|
1471
1471
|
}
|
|
1472
1472
|
return e;
|
|
1473
1473
|
}
|
|
1474
|
-
var
|
|
1474
|
+
var We = class {
|
|
1475
1475
|
constructor(e) {
|
|
1476
|
-
|
|
1476
|
+
Ce(this, "MAX_REPLACE_STATE_FREQUENCY", 1e3), this.Reveal = e, this.writeURLTimeout = 0, this.replaceStateTimestamp = 0, this.onWindowHashChange = this.onWindowHashChange.bind(this);
|
|
1477
1477
|
}
|
|
1478
1478
|
bind() {
|
|
1479
1479
|
window.addEventListener("hashchange", this.onWindowHashChange, !1);
|
|
@@ -1533,7 +1533,7 @@ var He = class {
|
|
|
1533
1533
|
onWindowHashChange(e) {
|
|
1534
1534
|
this.readURL();
|
|
1535
1535
|
}
|
|
1536
|
-
},
|
|
1536
|
+
}, Ge = class {
|
|
1537
1537
|
constructor(e) {
|
|
1538
1538
|
this.Reveal = e, this.onNavigateLeftClicked = this.onNavigateLeftClicked.bind(this), this.onNavigateRightClicked = this.onNavigateRightClicked.bind(this), this.onNavigateUpClicked = this.onNavigateUpClicked.bind(this), this.onNavigateDownClicked = this.onNavigateDownClicked.bind(this), this.onNavigatePrevClicked = this.onNavigatePrevClicked.bind(this), this.onNavigateNextClicked = this.onNavigateNextClicked.bind(this), this.onEnterFullscreen = this.onEnterFullscreen.bind(this);
|
|
1539
1539
|
}
|
|
@@ -1550,7 +1550,7 @@ var He = class {
|
|
|
1550
1550
|
}
|
|
1551
1551
|
bind() {
|
|
1552
1552
|
let e = ["touchstart", "click"];
|
|
1553
|
-
|
|
1553
|
+
ye && (e = ["touchend"]), e.forEach((e) => {
|
|
1554
1554
|
this.controlsLeft.forEach((t) => t.addEventListener(e, this.onNavigateLeftClicked, !1)), this.controlsRight.forEach((t) => t.addEventListener(e, this.onNavigateRightClicked, !1)), this.controlsUp.forEach((t) => t.addEventListener(e, this.onNavigateUpClicked, !1)), this.controlsDown.forEach((t) => t.addEventListener(e, this.onNavigateDownClicked, !1)), this.controlsPrev.forEach((t) => t.addEventListener(e, this.onNavigatePrevClicked, !1)), this.controlsNext.forEach((t) => t.addEventListener(e, this.onNavigateNextClicked, !1)), this.controlsFullscreen.forEach((t) => t.addEventListener(e, this.onEnterFullscreen, !1));
|
|
1555
1555
|
});
|
|
1556
1556
|
}
|
|
@@ -1634,9 +1634,9 @@ var He = class {
|
|
|
1634
1634
|
}
|
|
1635
1635
|
onEnterFullscreen(e) {
|
|
1636
1636
|
let t = this.Reveal.getConfig(), n = this.Reveal.getViewportElement();
|
|
1637
|
-
|
|
1637
|
+
le(t.embedded ? n : n.parentElement);
|
|
1638
1638
|
}
|
|
1639
|
-
},
|
|
1639
|
+
}, Ke = class {
|
|
1640
1640
|
constructor(e) {
|
|
1641
1641
|
this.Reveal = e, this.onProgressClicked = this.onProgressClicked.bind(this);
|
|
1642
1642
|
}
|
|
@@ -1671,7 +1671,7 @@ var He = class {
|
|
|
1671
1671
|
destroy() {
|
|
1672
1672
|
this.element.remove();
|
|
1673
1673
|
}
|
|
1674
|
-
},
|
|
1674
|
+
}, qe = class {
|
|
1675
1675
|
constructor(e) {
|
|
1676
1676
|
this.Reveal = e, this.lastMouseWheelStep = 0, this.cursorHidden = !1, this.cursorInactiveTimeout = 0, this.onDocumentCursorActive = this.onDocumentCursorActive.bind(this), this.onDocumentMouseScroll = this.onDocumentMouseScroll.bind(this);
|
|
1677
1677
|
}
|
|
@@ -1697,7 +1697,7 @@ var He = class {
|
|
|
1697
1697
|
t > 0 ? this.Reveal.next() : t < 0 && this.Reveal.prev();
|
|
1698
1698
|
}
|
|
1699
1699
|
}
|
|
1700
|
-
},
|
|
1700
|
+
}, Je = (e, t) => {
|
|
1701
1701
|
let n = document.createElement("script");
|
|
1702
1702
|
n.type = "text/javascript", n.async = !1, n.defer = !1, n.src = e, typeof t == "function" && (n.onload = (e) => {
|
|
1703
1703
|
e.type === "load" && (n.onload = n.onerror = null, t());
|
|
@@ -1706,7 +1706,7 @@ var He = class {
|
|
|
1706
1706
|
});
|
|
1707
1707
|
let r = document.querySelector("head");
|
|
1708
1708
|
r && r.insertBefore(n, r.lastChild);
|
|
1709
|
-
},
|
|
1709
|
+
}, Ye = class {
|
|
1710
1710
|
constructor(e) {
|
|
1711
1711
|
this.Reveal = e, this.state = "idle", this.registeredPlugins = {}, this.asyncDependencies = [];
|
|
1712
1712
|
}
|
|
@@ -1721,7 +1721,7 @@ var He = class {
|
|
|
1721
1721
|
t && typeof t.callback == "function" && t.callback(), --r === 0 && this.initPlugins().then(e);
|
|
1722
1722
|
};
|
|
1723
1723
|
n.forEach((e) => {
|
|
1724
|
-
typeof e.id == "string" ? (this.registerPlugin(e), t(e)) : typeof e.src == "string" ?
|
|
1724
|
+
typeof e.id == "string" ? (this.registerPlugin(e), t(e)) : typeof e.src == "string" ? Je(e.src, () => t(e)) : (console.warn("Unrecognized plugin format", e), t());
|
|
1725
1725
|
});
|
|
1726
1726
|
} else this.initPlugins().then(e);
|
|
1727
1727
|
});
|
|
@@ -1746,7 +1746,7 @@ var He = class {
|
|
|
1746
1746
|
}
|
|
1747
1747
|
loadAsync() {
|
|
1748
1748
|
return this.state = "loaded", this.asyncDependencies.length && this.asyncDependencies.forEach((e) => {
|
|
1749
|
-
|
|
1749
|
+
Je(e.src, e.callback);
|
|
1750
1750
|
}), Promise.resolve();
|
|
1751
1751
|
}
|
|
1752
1752
|
registerPlugin(e) {
|
|
@@ -1768,7 +1768,7 @@ var He = class {
|
|
|
1768
1768
|
typeof e.destroy == "function" && e.destroy();
|
|
1769
1769
|
}), this.registeredPlugins = {}, this.asyncDependencies = [];
|
|
1770
1770
|
}
|
|
1771
|
-
},
|
|
1771
|
+
}, Xe = class {
|
|
1772
1772
|
constructor(e) {
|
|
1773
1773
|
this.Reveal = e, this.onSlidesClicked = this.onSlidesClicked.bind(this), this.iframeTriggerSelector = null, this.mediaTriggerSelector = "[data-preview-image], [data-preview-video]", this.stateProps = [
|
|
1774
1774
|
"previewIframe",
|
|
@@ -1916,7 +1916,7 @@ var He = class {
|
|
|
1916
1916
|
destroy() {
|
|
1917
1917
|
this.close();
|
|
1918
1918
|
}
|
|
1919
|
-
},
|
|
1919
|
+
}, Ze = 40, Qe = 1.03, $e = class {
|
|
1920
1920
|
constructor(e) {
|
|
1921
1921
|
this.Reveal = e, this.touchStartX = 0, this.touchStartY = 0, this.touchStartCount = 0, this.touchCaptured = !1, this.activePointers = /* @__PURE__ */ new Map(), this.onPointerDown = this.onPointerDown.bind(this), this.onPointerMove = this.onPointerMove.bind(this), this.onPointerUp = this.onPointerUp.bind(this), this.onPointerCancel = this.onPointerCancel.bind(this), this.onTouchStart = this.onTouchStart.bind(this), this.onTouchMove = this.onTouchMove.bind(this), this.onTouchEnd = this.onTouchEnd.bind(this);
|
|
1922
1922
|
}
|
|
@@ -1939,7 +1939,7 @@ var He = class {
|
|
|
1939
1939
|
isViewportZoomed() {
|
|
1940
1940
|
if (!window.visualViewport || typeof window.visualViewport.scale != "number") return !1;
|
|
1941
1941
|
let e = window.visualViewport.scale;
|
|
1942
|
-
return this.visualViewportBaseScale = this.visualViewportBaseScale === void 0 ? e : Math.min(this.visualViewportBaseScale, e), e / this.visualViewportBaseScale >
|
|
1942
|
+
return this.visualViewportBaseScale = this.visualViewportBaseScale === void 0 ? e : Math.min(this.visualViewportBaseScale, e), e / this.visualViewportBaseScale > Qe;
|
|
1943
1943
|
}
|
|
1944
1944
|
onTouchStart(e) {
|
|
1945
1945
|
if (this.touchCaptured = !1, this.isSwipePrevented(e.target)) return !0;
|
|
@@ -1948,13 +1948,13 @@ var He = class {
|
|
|
1948
1948
|
onTouchMove(e) {
|
|
1949
1949
|
if (this.isSwipePrevented(e.target)) return !0;
|
|
1950
1950
|
let t = this.Reveal.getConfig();
|
|
1951
|
-
if (this.touchCaptured)
|
|
1951
|
+
if (this.touchCaptured) ye && e.preventDefault();
|
|
1952
1952
|
else {
|
|
1953
1953
|
this.Reveal.onUserInput(e);
|
|
1954
1954
|
let n = e.touches[0].clientX, r = e.touches[0].clientY;
|
|
1955
1955
|
if (e.touches.length === 1 && this.touchStartCount !== 2) {
|
|
1956
1956
|
let i = this.Reveal.availableRoutes({ includeFragments: !0 }), a = n - this.touchStartX, o = r - this.touchStartY;
|
|
1957
|
-
a >
|
|
1957
|
+
a > Ze && Math.abs(a) > Math.abs(o) ? (this.touchCaptured = !0, t.navigationMode === "linear" ? t.rtl ? this.Reveal.next() : this.Reveal.prev() : this.Reveal.left()) : a < -40 && Math.abs(a) > Math.abs(o) ? (this.touchCaptured = !0, t.navigationMode === "linear" ? t.rtl ? this.Reveal.prev() : this.Reveal.next() : this.Reveal.right()) : o > Ze && i.up ? (this.touchCaptured = !0, t.navigationMode === "linear" ? this.Reveal.prev() : this.Reveal.up()) : o < -40 && i.down && (this.touchCaptured = !0, t.navigationMode === "linear" ? this.Reveal.next() : this.Reveal.down()), t.embedded ? (this.touchCaptured || this.Reveal.isVerticalSlide()) && e.preventDefault() : e.preventDefault();
|
|
1958
1958
|
}
|
|
1959
1959
|
}
|
|
1960
1960
|
}
|
|
@@ -1979,7 +1979,7 @@ var He = class {
|
|
|
1979
1979
|
onPointerCancel(e) {
|
|
1980
1980
|
e.pointerType === "touch" && (this.activePointers.delete(e.pointerId), e.touches = this.getActiveTouches(), this.onTouchEnd(e));
|
|
1981
1981
|
}
|
|
1982
|
-
},
|
|
1982
|
+
}, et = "focus", tt = "blur", nt = class {
|
|
1983
1983
|
constructor(e) {
|
|
1984
1984
|
this.Reveal = e, this.onRevealPointerDown = this.onRevealPointerDown.bind(this), this.onDocumentPointerDown = this.onDocumentPointerDown.bind(this);
|
|
1985
1985
|
}
|
|
@@ -1993,13 +1993,13 @@ var He = class {
|
|
|
1993
1993
|
this.Reveal.getRevealElement().removeEventListener("pointerdown", this.onRevealPointerDown, !1), document.removeEventListener("pointerdown", this.onDocumentPointerDown, !1);
|
|
1994
1994
|
}
|
|
1995
1995
|
focus() {
|
|
1996
|
-
this.state !==
|
|
1996
|
+
this.state !== et && (this.Reveal.getRevealElement().classList.add("focused"), document.addEventListener("pointerdown", this.onDocumentPointerDown, !1)), this.state = et;
|
|
1997
1997
|
}
|
|
1998
1998
|
blur() {
|
|
1999
|
-
this.state !==
|
|
1999
|
+
this.state !== tt && (this.Reveal.getRevealElement().classList.remove("focused"), document.removeEventListener("pointerdown", this.onDocumentPointerDown, !1)), this.state = tt;
|
|
2000
2000
|
}
|
|
2001
2001
|
isFocused() {
|
|
2002
|
-
return this.state ===
|
|
2002
|
+
return this.state === et;
|
|
2003
2003
|
}
|
|
2004
2004
|
destroy() {
|
|
2005
2005
|
this.Reveal.getRevealElement().classList.remove("focused");
|
|
@@ -2011,7 +2011,7 @@ var He = class {
|
|
|
2011
2011
|
let t = I(e.target, ".reveal");
|
|
2012
2012
|
(!t || t !== this.Reveal.getRevealElement()) && this.blur();
|
|
2013
2013
|
}
|
|
2014
|
-
},
|
|
2014
|
+
}, rt = class {
|
|
2015
2015
|
constructor(e) {
|
|
2016
2016
|
this.Reveal = e;
|
|
2017
2017
|
}
|
|
@@ -2041,7 +2041,7 @@ var He = class {
|
|
|
2041
2041
|
destroy() {
|
|
2042
2042
|
this.element.remove();
|
|
2043
2043
|
}
|
|
2044
|
-
},
|
|
2044
|
+
}, it = class {
|
|
2045
2045
|
constructor(e, t) {
|
|
2046
2046
|
this.diameter = 100, this.diameter2 = this.diameter / 2, this.thickness = 6, this.playing = !1, this.progress = 0, this.progressOffset = 1, this.container = e, this.progressCheck = t, this.canvas = document.createElement("canvas"), this.canvas.className = "playback", this.canvas.width = this.diameter, this.canvas.height = this.diameter, this.canvas.style.width = this.diameter2 + "px", this.canvas.style.height = this.diameter2 + "px", this.context = this.canvas.getContext("2d"), this.container.appendChild(this.canvas), this.render();
|
|
2047
2047
|
}
|
|
@@ -2068,7 +2068,7 @@ var He = class {
|
|
|
2068
2068
|
destroy() {
|
|
2069
2069
|
this.playing = !1, this.canvas.parentNode && this.container.removeChild(this.canvas);
|
|
2070
2070
|
}
|
|
2071
|
-
},
|
|
2071
|
+
}, at = {
|
|
2072
2072
|
width: 960,
|
|
2073
2073
|
height: 700,
|
|
2074
2074
|
margin: .04,
|
|
@@ -2158,8 +2158,8 @@ var He = class {
|
|
|
2158
2158
|
pdfPageHeightOffset: -1,
|
|
2159
2159
|
dependencies: [],
|
|
2160
2160
|
plugins: []
|
|
2161
|
-
},
|
|
2162
|
-
function
|
|
2161
|
+
}, ot = "6.0.2";
|
|
2162
|
+
function st(e, t) {
|
|
2163
2163
|
arguments.length < 2 && (t = arguments[0], e = document.querySelector(".reveal"));
|
|
2164
2164
|
let n = {}, r = {}, i = !1, a = !1, o, s, c, l, u = {
|
|
2165
2165
|
hasNavigatedHorizontally: !1,
|
|
@@ -2167,18 +2167,18 @@ function at(e, t) {
|
|
|
2167
2167
|
}, d = [], f = 1, p = {
|
|
2168
2168
|
layout: "",
|
|
2169
2169
|
overview: ""
|
|
2170
|
-
}, m = {}, h = "idle", g = 0, _, v = 0, y = -1, b = !1, x = new
|
|
2171
|
-
function
|
|
2170
|
+
}, m = {}, h = "idle", g = 0, _, v = 0, y = -1, b = !1, x = new R(n), S = new De(n), C = new Oe(n), w = new Me(n), T = new Ae(n), E = new Le(n), D = new ze(n), O = new Be(n), k = new Ve(n), A = new He(n), ee = new We(n), j = new Ge(n), te = new Ke(n), ne = new qe(n), re = new Ye(n), M = new Xe(n), N = new nt(n), ie = new $e(n), F = new rt(n);
|
|
2171
|
+
function le(a) {
|
|
2172
2172
|
if (!e) throw "Unable to find presentation root (<div class=\"reveal\">).";
|
|
2173
2173
|
if (i) throw "Reveal.js has already been initialized.";
|
|
2174
2174
|
if (i = !0, m.wrapper = e, m.slides = e.querySelector(".slides"), !m.slides) throw "Unable to find slides container (<div class=\"slides\">).";
|
|
2175
|
-
return r = U(U(U(U(U({},
|
|
2175
|
+
return r = U(U(U(U(U({}, at), r), t), a), fe()), /print-pdf/gi.test(window.location.search) && (r.view = "print"), de(), window.addEventListener("load", Je, !1), re.load(r.plugins, r.dependencies).then(me), new Promise((e) => n.on("ready", e));
|
|
2176
2176
|
}
|
|
2177
|
-
function
|
|
2177
|
+
function de() {
|
|
2178
2178
|
r.embedded === !0 ? m.viewport = I(e, ".reveal-viewport") || e : (m.viewport = document.body, document.documentElement.classList.add("reveal-full-page")), m.viewport.classList.add("reveal-viewport");
|
|
2179
2179
|
}
|
|
2180
|
-
function
|
|
2181
|
-
i !== !1 && (a = !0,
|
|
2180
|
+
function me() {
|
|
2181
|
+
i !== !1 && (a = !0, ge(), _e(), Te(), Se(), Ce(), St(), V(), T.update(!0), he(), ee.readURL(), setTimeout(() => {
|
|
2182
2182
|
m.slides.classList.remove("no-transition"), m.wrapper.classList.add("ready"), H({
|
|
2183
2183
|
type: "ready",
|
|
2184
2184
|
data: {
|
|
@@ -2189,27 +2189,27 @@ function at(e, t) {
|
|
|
2189
2189
|
});
|
|
2190
2190
|
}, 1));
|
|
2191
2191
|
}
|
|
2192
|
-
function
|
|
2192
|
+
function he() {
|
|
2193
2193
|
let e = r.view === "print", t = r.view === "scroll" || r.view === "reader";
|
|
2194
|
-
(e || t) && (e ?
|
|
2194
|
+
(e || t) && (e ? je() : ie.unbind(), m.viewport.classList.add("loading-scroll-mode"), e ? document.readyState === "complete" ? D.activate() : window.addEventListener("load", () => D.activate()) : E.activate());
|
|
2195
2195
|
}
|
|
2196
|
-
function
|
|
2196
|
+
function ge() {
|
|
2197
2197
|
r.showHiddenSlides || P(m.wrapper, "section[data-visibility=\"hidden\"]").forEach((e) => {
|
|
2198
2198
|
let t = e.parentNode;
|
|
2199
2199
|
t.childElementCount === 1 && /section/i.test(t.nodeName) ? t.remove() : e.remove();
|
|
2200
2200
|
});
|
|
2201
2201
|
}
|
|
2202
|
-
function ge() {
|
|
2203
|
-
m.slides.classList.add("no-transition"), he ? m.wrapper.classList.add("no-hover") : m.wrapper.classList.remove("no-hover"), w.render(), S.render(), C.render(), te.render(), ne.render(), L.render(), m.pauseOverlay = ce(m.wrapper, "div", "pause-overlay", r.controls ? "<button class=\"resume-button\">Resume presentation</button>" : null), m.statusElement = _e(), m.wrapper.setAttribute("role", "application");
|
|
2204
|
-
}
|
|
2205
2202
|
function _e() {
|
|
2203
|
+
m.slides.classList.add("no-transition"), ve ? m.wrapper.classList.add("no-hover") : m.wrapper.classList.remove("no-hover"), T.render(), S.render(), C.render(), j.render(), te.render(), F.render(), m.pauseOverlay = ue(m.wrapper, "div", "pause-overlay", r.controls ? "<button class=\"resume-button\">Resume presentation</button>" : null), m.statusElement = ye(), m.wrapper.setAttribute("role", "application");
|
|
2204
|
+
}
|
|
2205
|
+
function ye() {
|
|
2206
2206
|
let e = m.wrapper.querySelector(".aria-status");
|
|
2207
2207
|
return e || (e = document.createElement("div"), e.style.position = "absolute", e.style.height = "1px", e.style.width = "1px", e.style.overflow = "hidden", e.style.clip = "rect( 1px, 1px, 1px, 1px )", e.classList.add("aria-status"), e.setAttribute("aria-live", "polite"), e.setAttribute("aria-atomic", "true"), m.wrapper.appendChild(e)), e;
|
|
2208
2208
|
}
|
|
2209
|
-
function
|
|
2209
|
+
function be(e) {
|
|
2210
2210
|
m.statusElement.textContent = e;
|
|
2211
2211
|
}
|
|
2212
|
-
function
|
|
2212
|
+
function L(e) {
|
|
2213
2213
|
let t = "";
|
|
2214
2214
|
if (e.nodeType === 3) t += e.textContent.trim();
|
|
2215
2215
|
else if (e.nodeType === 1) {
|
|
@@ -2217,10 +2217,10 @@ function at(e, t) {
|
|
|
2217
2217
|
if (n !== "true" && !r) {
|
|
2218
2218
|
if (e.tagName === "IMG" || e.tagName === "VIDEO") {
|
|
2219
2219
|
let n = e.getAttribute("alt");
|
|
2220
|
-
n && (t +=
|
|
2220
|
+
n && (t += xe(n));
|
|
2221
2221
|
}
|
|
2222
2222
|
Array.from(e.childNodes).forEach((e) => {
|
|
2223
|
-
t +=
|
|
2223
|
+
t += L(e);
|
|
2224
2224
|
}), [
|
|
2225
2225
|
"P",
|
|
2226
2226
|
"DIV",
|
|
@@ -2234,57 +2234,57 @@ function at(e, t) {
|
|
|
2234
2234
|
"H5",
|
|
2235
2235
|
"H6",
|
|
2236
2236
|
"BLOCKQUOTE"
|
|
2237
|
-
].includes(e.tagName) && t.trim() !== "" && (t =
|
|
2237
|
+
].includes(e.tagName) && t.trim() !== "" && (t = xe(t));
|
|
2238
2238
|
}
|
|
2239
2239
|
}
|
|
2240
2240
|
return t = t.trim(), t === "" ? "" : t + " ";
|
|
2241
2241
|
}
|
|
2242
|
-
function
|
|
2242
|
+
function xe(e) {
|
|
2243
2243
|
let t = e.trim();
|
|
2244
2244
|
return t === "" ? e : /[.!?]$/.test(t) ? t : t + ".";
|
|
2245
2245
|
}
|
|
2246
|
-
function
|
|
2246
|
+
function Se() {
|
|
2247
2247
|
setInterval(() => {
|
|
2248
|
-
(!
|
|
2248
|
+
(!E.isActive() && m.wrapper.scrollTop !== 0 || m.wrapper.scrollLeft !== 0) && (m.wrapper.scrollTop = 0, m.wrapper.scrollLeft = 0);
|
|
2249
2249
|
}, 1e3);
|
|
2250
2250
|
}
|
|
2251
|
-
function
|
|
2252
|
-
document.addEventListener("fullscreenchange",
|
|
2251
|
+
function Ce() {
|
|
2252
|
+
document.addEventListener("fullscreenchange", nn), document.addEventListener("webkitfullscreenchange", nn);
|
|
2253
2253
|
}
|
|
2254
|
-
function
|
|
2255
|
-
r.postMessage && window.addEventListener("message",
|
|
2254
|
+
function Te() {
|
|
2255
|
+
r.postMessage && window.addEventListener("message", Zt, !1);
|
|
2256
2256
|
}
|
|
2257
|
-
function
|
|
2257
|
+
function V(e) {
|
|
2258
2258
|
let t = U({}, r);
|
|
2259
|
-
if (typeof e == "object" &&
|
|
2260
|
-
let i = m.wrapper.querySelectorAll(
|
|
2261
|
-
m.wrapper.classList.remove(t.transition), m.wrapper.classList.add(r.transition), m.wrapper.setAttribute("data-transition-speed", r.transitionSpeed), m.wrapper.setAttribute("data-background-transition", r.backgroundTransition), m.viewport.style.setProperty("--slide-width", typeof r.width == "string" ? r.width : r.width + "px"), m.viewport.style.setProperty("--slide-height", typeof r.height == "string" ? r.height : r.height + "px"), r.shuffle &&
|
|
2259
|
+
if (typeof e == "object" && ae(r, e), n.isReady() === !1) return;
|
|
2260
|
+
let i = m.wrapper.querySelectorAll(z).length;
|
|
2261
|
+
m.wrapper.classList.remove(t.transition), m.wrapper.classList.add(r.transition), m.wrapper.setAttribute("data-transition-speed", r.transitionSpeed), m.wrapper.setAttribute("data-background-transition", r.backgroundTransition), m.viewport.style.setProperty("--slide-width", typeof r.width == "string" ? r.width : r.width + "px"), m.viewport.style.setProperty("--slide-height", typeof r.height == "string" ? r.height : r.height + "px"), r.shuffle && Ct(), oe(m.wrapper, "embedded", r.embedded), oe(m.wrapper, "rtl", r.rtl), oe(m.wrapper, "center", r.center), r.pause === !1 && ft(), w.reset(), _ &&= (_.destroy(), null), i > 1 && r.autoSlide && r.autoSlideStoppable && (_ = new it(m.wrapper, () => Math.min(Math.max((Date.now() - y) / g, 0), 1)), _.on("click", rn), b = !1), r.navigationMode === "default" ? m.wrapper.removeAttribute("data-navigation-mode") : m.wrapper.setAttribute("data-navigation-mode", r.navigationMode), F.configure(r, t), N.configure(r, t), ne.configure(r, t), j.configure(r, t), te.configure(r, t), A.configure(r, t), O.configure(r, t), S.configure(r, t), bt();
|
|
2262
2262
|
}
|
|
2263
|
-
function
|
|
2264
|
-
window.addEventListener("resize",
|
|
2263
|
+
function ke() {
|
|
2264
|
+
window.addEventListener("resize", en, !1), r.touch && ie.bind(), r.keyboard && A.bind(), r.progress && te.bind(), r.respondToHashChanges && ee.bind(), j.bind(), N.bind(), m.slides.addEventListener("click", $t, !1), m.slides.addEventListener("transitionend", Qt, !1), m.pauseOverlay.addEventListener("click", ft, !1), r.focusBodyOnPageVisibilityChange && document.addEventListener("visibilitychange", tn, !1);
|
|
2265
2265
|
}
|
|
2266
|
-
function
|
|
2267
|
-
|
|
2266
|
+
function je() {
|
|
2267
|
+
ie.unbind(), N.unbind(), A.unbind(), j.unbind(), te.unbind(), ee.unbind(), window.removeEventListener("resize", en, !1), m.slides.removeEventListener("click", $t, !1), m.slides.removeEventListener("transitionend", Qt, !1), m.pauseOverlay.removeEventListener("click", ft, !1);
|
|
2268
2268
|
}
|
|
2269
2269
|
function Ne() {
|
|
2270
|
-
i = !1, a !== !1 && (
|
|
2270
|
+
i = !1, a !== !1 && (je(), Vt(), F.destroy(), N.destroy(), M.destroy(), re.destroy(), ne.destroy(), j.destroy(), te.destroy(), T.destroy(), S.destroy(), C.destroy(), document.removeEventListener("fullscreenchange", nn), document.removeEventListener("webkitfullscreenchange", nn), document.removeEventListener("visibilitychange", tn, !1), window.removeEventListener("message", Zt, !1), window.removeEventListener("load", Je, !1), m.pauseOverlay && m.pauseOverlay.remove(), m.statusElement && m.statusElement.remove(), document.documentElement.classList.remove("reveal-full-page"), m.wrapper.classList.remove("ready", "center", "has-horizontal-slides", "has-vertical-slides"), m.wrapper.removeAttribute("data-transition-speed"), m.wrapper.removeAttribute("data-background-transition"), m.viewport.classList.remove("reveal-viewport"), m.viewport.style.removeProperty("--slide-width"), m.viewport.style.removeProperty("--slide-height"), m.slides.style.removeProperty("width"), m.slides.style.removeProperty("height"), m.slides.style.removeProperty("zoom"), m.slides.style.removeProperty("left"), m.slides.style.removeProperty("top"), m.slides.style.removeProperty("bottom"), m.slides.style.removeProperty("right"), m.slides.style.removeProperty("transform"), Array.from(m.wrapper.querySelectorAll(z)).forEach((e) => {
|
|
2271
2271
|
e.style.removeProperty("display"), e.style.removeProperty("top"), e.removeAttribute("hidden"), e.removeAttribute("aria-hidden"), e.removeAttribute("inert");
|
|
2272
2272
|
}));
|
|
2273
2273
|
}
|
|
2274
2274
|
function Pe(t, n, r) {
|
|
2275
2275
|
e.addEventListener(t, n, r);
|
|
2276
2276
|
}
|
|
2277
|
-
function
|
|
2277
|
+
function Fe(t, n, r) {
|
|
2278
2278
|
e.removeEventListener(t, n, r);
|
|
2279
2279
|
}
|
|
2280
|
-
function
|
|
2281
|
-
typeof e.layout == "string" && (p.layout = e.layout), typeof e.overview == "string" && (p.overview = e.overview), p.layout ?
|
|
2280
|
+
function Ie(e) {
|
|
2281
|
+
typeof e.layout == "string" && (p.layout = e.layout), typeof e.overview == "string" && (p.overview = e.overview), p.layout ? ce(m.slides, p.layout + " " + p.overview) : ce(m.slides, p.overview);
|
|
2282
2282
|
}
|
|
2283
2283
|
function H({ target: e = m.wrapper, type: t, data: n, bubbles: r = !0 }) {
|
|
2284
2284
|
let i = document.createEvent("HTMLEvents", 1, 2);
|
|
2285
|
-
return i.initEvent(t, r, !0),
|
|
2285
|
+
return i.initEvent(t, r, !0), ae(i, n), e.dispatchEvent(i), e === m.wrapper && Ue(t), i;
|
|
2286
2286
|
}
|
|
2287
|
-
function
|
|
2287
|
+
function Re(e) {
|
|
2288
2288
|
H({
|
|
2289
2289
|
type: "slidechanged",
|
|
2290
2290
|
data: {
|
|
@@ -2296,24 +2296,24 @@ function at(e, t) {
|
|
|
2296
2296
|
}
|
|
2297
2297
|
});
|
|
2298
2298
|
}
|
|
2299
|
-
function
|
|
2299
|
+
function Ue(e, t) {
|
|
2300
2300
|
if (r.postMessageEvents && window.parent !== window.self) {
|
|
2301
2301
|
let n = {
|
|
2302
2302
|
namespace: "reveal",
|
|
2303
2303
|
eventName: e,
|
|
2304
|
-
state:
|
|
2304
|
+
state: Rt()
|
|
2305
2305
|
};
|
|
2306
|
-
|
|
2306
|
+
ae(n, t), window.parent.postMessage(JSON.stringify(n), "*");
|
|
2307
2307
|
}
|
|
2308
2308
|
}
|
|
2309
|
-
function
|
|
2310
|
-
if (m.wrapper && !
|
|
2309
|
+
function Je() {
|
|
2310
|
+
if (m.wrapper && !D.isActive()) {
|
|
2311
2311
|
let e = m.viewport.offsetWidth, t = m.viewport.offsetHeight;
|
|
2312
2312
|
if (!r.disableLayout) {
|
|
2313
|
-
|
|
2314
|
-
let n =
|
|
2315
|
-
|
|
2316
|
-
let a = Array.from(m.wrapper.querySelectorAll(
|
|
2313
|
+
ve && !r.embedded && document.documentElement.style.setProperty("--vh", window.innerHeight * .01 + "px");
|
|
2314
|
+
let n = E.isActive() ? et(e, t) : et(), i = f;
|
|
2315
|
+
Ze(r.width, r.height), m.slides.style.width = n.width + "px", m.slides.style.height = n.height + "px", f = Math.min(n.presentationWidth / n.width, n.presentationHeight / n.height), f = Math.max(f, r.minScale), f = Math.min(f, r.maxScale), f = Math.round(f * 100) / 100, f === 1 || E.isActive() ? (m.slides.style.zoom = "", m.slides.style.left = "", m.slides.style.top = "", m.slides.style.bottom = "", m.slides.style.right = "", Ie({ layout: "" })) : (m.slides.style.zoom = "", m.slides.style.left = "50%", m.slides.style.top = "50%", m.slides.style.bottom = "auto", m.slides.style.right = "auto", Ie({ layout: "translate(-50%, -50%) scale(" + f + ")" }));
|
|
2316
|
+
let a = Array.from(m.wrapper.querySelectorAll(z)).filter((e) => e.style.display !== "none"), o = Array(a.length);
|
|
2317
2317
|
for (let e = 0, t = a.length; e < t; e++) {
|
|
2318
2318
|
let t = a[e];
|
|
2319
2319
|
r.center || t.classList.contains("center") ? t.classList.contains("stack") ? o[e] = 0 : o[e] = Math.max((n.height - t.scrollHeight) / 2, 0) + "px" : o[e] = "";
|
|
@@ -2328,25 +2328,25 @@ function at(e, t) {
|
|
|
2328
2328
|
}
|
|
2329
2329
|
});
|
|
2330
2330
|
}
|
|
2331
|
-
|
|
2331
|
+
Qe(), m.viewport.style.setProperty("--slide-scale", f), m.viewport.style.setProperty("--viewport-width", e + "px"), m.viewport.style.setProperty("--viewport-height", t + "px"), E.layout(), te.update(), T.updateParallax(), k.isActive() && k.update();
|
|
2332
2332
|
}
|
|
2333
2333
|
}
|
|
2334
|
-
function
|
|
2334
|
+
function Ze(e, t) {
|
|
2335
2335
|
P(m.slides, "section > .stretch, section > .r-stretch").forEach((n) => {
|
|
2336
|
-
let r =
|
|
2336
|
+
let r = pe(n, t);
|
|
2337
2337
|
if (/(img|video)/gi.test(n.nodeName)) {
|
|
2338
2338
|
let t = n.naturalWidth || n.videoWidth, i = n.naturalHeight || n.videoHeight, a = Math.min(e / t, r / i);
|
|
2339
2339
|
n.style.width = t * a + "px", n.style.height = i * a + "px";
|
|
2340
2340
|
} else n.style.width = e + "px", n.style.height = r + "px";
|
|
2341
2341
|
});
|
|
2342
2342
|
}
|
|
2343
|
-
function
|
|
2344
|
-
if (m.wrapper && !r.disableLayout && !
|
|
2345
|
-
let e =
|
|
2346
|
-
e.presentationWidth > 0 && e.presentationWidth <= r.scrollActivationWidth ?
|
|
2343
|
+
function Qe() {
|
|
2344
|
+
if (m.wrapper && !r.disableLayout && !D.isActive() && typeof r.scrollActivationWidth == "number" && r.view !== "scroll") {
|
|
2345
|
+
let e = et();
|
|
2346
|
+
e.presentationWidth > 0 && e.presentationWidth <= r.scrollActivationWidth ? E.isActive() || (T.create(), E.activate()) : E.isActive() && E.deactivate();
|
|
2347
2347
|
}
|
|
2348
2348
|
}
|
|
2349
|
-
function
|
|
2349
|
+
function et(e, t) {
|
|
2350
2350
|
let n = r.width, i = r.height;
|
|
2351
2351
|
r.disableLayout && (n = m.slides.offsetWidth, i = m.slides.offsetHeight);
|
|
2352
2352
|
let a = {
|
|
@@ -2357,40 +2357,40 @@ function at(e, t) {
|
|
|
2357
2357
|
};
|
|
2358
2358
|
return a.presentationWidth -= a.presentationWidth * r.margin, a.presentationHeight -= a.presentationHeight * r.margin, typeof a.width == "string" && /%$/.test(a.width) && (a.width = parseInt(a.width, 10) / 100 * a.presentationWidth), typeof a.height == "string" && /%$/.test(a.height) && (a.height = parseInt(a.height, 10) / 100 * a.presentationHeight), a;
|
|
2359
2359
|
}
|
|
2360
|
-
function
|
|
2360
|
+
function tt(e, t) {
|
|
2361
2361
|
typeof e == "object" && typeof e.setAttribute == "function" && e.setAttribute("data-previous-indexv", t || 0);
|
|
2362
2362
|
}
|
|
2363
|
-
function
|
|
2363
|
+
function st(e) {
|
|
2364
2364
|
if (typeof e == "object" && typeof e.setAttribute == "function" && e.classList.contains("stack")) {
|
|
2365
2365
|
let t = e.hasAttribute("data-start-indexv") ? "data-start-indexv" : "data-previous-indexv";
|
|
2366
2366
|
return parseInt(e.getAttribute(t) || 0, 10);
|
|
2367
2367
|
}
|
|
2368
2368
|
return 0;
|
|
2369
2369
|
}
|
|
2370
|
-
function
|
|
2370
|
+
function W(e = l) {
|
|
2371
2371
|
return e && e.parentNode && !!e.parentNode.nodeName.match(/section/i);
|
|
2372
2372
|
}
|
|
2373
|
-
function
|
|
2373
|
+
function ct(e = l) {
|
|
2374
2374
|
return e.classList.contains(".stack") || e.querySelector("section") !== null;
|
|
2375
2375
|
}
|
|
2376
|
-
function
|
|
2377
|
-
return l &&
|
|
2376
|
+
function G() {
|
|
2377
|
+
return l && W(l) ? !l.nextElementSibling : !1;
|
|
2378
2378
|
}
|
|
2379
2379
|
function lt() {
|
|
2380
2380
|
return o === 0 && s === 0;
|
|
2381
2381
|
}
|
|
2382
2382
|
function ut() {
|
|
2383
|
-
return l ? !(l.nextElementSibling ||
|
|
2383
|
+
return l ? !(l.nextElementSibling || W(l) && l.parentNode.nextElementSibling) : !1;
|
|
2384
2384
|
}
|
|
2385
2385
|
function dt() {
|
|
2386
2386
|
if (r.pause) {
|
|
2387
2387
|
let e = m.wrapper.classList.contains("paused");
|
|
2388
|
-
|
|
2388
|
+
Vt(), m.wrapper.classList.add("paused"), e === !1 && H({ type: "paused" });
|
|
2389
2389
|
}
|
|
2390
2390
|
}
|
|
2391
2391
|
function ft() {
|
|
2392
2392
|
let e = m.wrapper.classList.contains("paused");
|
|
2393
|
-
m.wrapper.classList.remove("paused"),
|
|
2393
|
+
m.wrapper.classList.remove("paused"), Bt(), e && H({ type: "resumed" });
|
|
2394
2394
|
}
|
|
2395
2395
|
function pt(e) {
|
|
2396
2396
|
typeof e == "boolean" ? e ? dt() : ft() : mt() ? ft() : dt();
|
|
@@ -2402,7 +2402,7 @@ function at(e, t) {
|
|
|
2402
2402
|
typeof e == "boolean" ? e ? C.show() : C.hide() : C.isVisible() ? C.hide() : C.show();
|
|
2403
2403
|
}
|
|
2404
2404
|
function gt(e) {
|
|
2405
|
-
typeof e == "boolean" ? e ?
|
|
2405
|
+
typeof e == "boolean" ? e ? Ut() : Ht() : b ? Ut() : Ht();
|
|
2406
2406
|
}
|
|
2407
2407
|
function _t() {
|
|
2408
2408
|
return !!(g && !b);
|
|
@@ -2417,26 +2417,26 @@ function at(e, t) {
|
|
|
2417
2417
|
}
|
|
2418
2418
|
}).defaultPrevented) return;
|
|
2419
2419
|
c = l;
|
|
2420
|
-
let u = m.wrapper.querySelectorAll(
|
|
2421
|
-
if (
|
|
2422
|
-
let e =
|
|
2423
|
-
e &&
|
|
2420
|
+
let u = m.wrapper.querySelectorAll(B);
|
|
2421
|
+
if (E.isActive()) {
|
|
2422
|
+
let e = E.getSlideByIndices(t, n);
|
|
2423
|
+
e && E.scrollToSlide(e);
|
|
2424
2424
|
return;
|
|
2425
2425
|
}
|
|
2426
2426
|
if (u.length === 0) return;
|
|
2427
|
-
n === void 0 && !
|
|
2427
|
+
n === void 0 && !k.isActive() && (n = st(u[t])), c && c.parentNode && c.parentNode.classList.contains("stack") && tt(c.parentNode, s);
|
|
2428
2428
|
let f = d.concat();
|
|
2429
2429
|
d.length = 0;
|
|
2430
2430
|
let p = o || 0, g = s || 0;
|
|
2431
|
-
o =
|
|
2431
|
+
o = q(B, t === void 0 ? o : t), s = q(we, n === void 0 ? s : n);
|
|
2432
2432
|
let _ = o !== p || s !== g;
|
|
2433
2433
|
_ || (c = null);
|
|
2434
2434
|
let v = u[o], y = v.querySelectorAll("section");
|
|
2435
2435
|
e.classList.toggle("is-vertical-slide", y.length > 1), l = y[s] || v;
|
|
2436
2436
|
let b = !1;
|
|
2437
|
-
_ && c && l && !
|
|
2438
|
-
|
|
2439
|
-
|
|
2437
|
+
_ && c && l && !k.isActive() && (h = "running", b = vt(c, l, p, g), b && m.slides.classList.add("disable-slide-transitions")), Y(), Je(), k.isActive() && k.update(), i !== void 0 && O.goto(i), c && c !== l && (c.classList.remove("present"), c.setAttribute("aria-hidden", "true"), lt() && setTimeout(() => {
|
|
2438
|
+
jt().forEach((e) => {
|
|
2439
|
+
tt(e, 0);
|
|
2440
2440
|
});
|
|
2441
2441
|
}, 0));
|
|
2442
2442
|
stateLoop: for (let e = 0, t = d.length; e < t; e++) {
|
|
@@ -2447,11 +2447,11 @@ function at(e, t) {
|
|
|
2447
2447
|
m.viewport.classList.add(d[e]), H({ type: d[e] });
|
|
2448
2448
|
}
|
|
2449
2449
|
for (; f.length;) m.viewport.classList.remove(f.pop());
|
|
2450
|
-
_ && (x.afterSlideChanged(),
|
|
2451
|
-
|
|
2452
|
-
}),
|
|
2450
|
+
_ && (x.afterSlideChanged(), Re(a)), (_ || !c) && (x.stopEmbeddedContent(c), x.startEmbeddedContent(l)), requestAnimationFrame(() => {
|
|
2451
|
+
be(L(l));
|
|
2452
|
+
}), te.update(), j.update(), F.update(), T.update(), T.updateParallax(), S.update(), O.update(), ee.writeURL(), Bt(), b && (setTimeout(() => {
|
|
2453
2453
|
m.slides.classList.remove("disable-slide-transitions");
|
|
2454
|
-
}, 0), r.autoAnimate &&
|
|
2454
|
+
}, 0), r.autoAnimate && w.run(c, l));
|
|
2455
2455
|
}
|
|
2456
2456
|
function vt(e, t, n, r) {
|
|
2457
2457
|
return e.hasAttribute("data-auto-animate") && t.hasAttribute("data-auto-animate") && e.getAttribute("data-auto-animate-id") === t.getAttribute("data-auto-animate-id") && !(o > n || s > r ? t : e).hasAttribute("data-auto-animate-restart");
|
|
@@ -2460,45 +2460,45 @@ function at(e, t) {
|
|
|
2460
2460
|
let i = o || 0;
|
|
2461
2461
|
o = t, s = n;
|
|
2462
2462
|
let a = l !== e;
|
|
2463
|
-
c = l, l = e, l && c && r.autoAnimate && vt(c, l, i, s) &&
|
|
2464
|
-
|
|
2465
|
-
}),
|
|
2463
|
+
c = l, l = e, l && c && r.autoAnimate && vt(c, l, i, s) && w.run(c, l), a && (x.afterSlideChanged(), c && (x.stopEmbeddedContent(c), x.stopEmbeddedContent(c.slideBackgroundElement)), x.startEmbeddedContent(l), x.startEmbeddedContent(l.slideBackgroundElement)), requestAnimationFrame(() => {
|
|
2464
|
+
be(L(l));
|
|
2465
|
+
}), Re();
|
|
2466
2466
|
}
|
|
2467
|
-
function
|
|
2468
|
-
|
|
2467
|
+
function bt() {
|
|
2468
|
+
je(), ke(), Je(), g = r.autoSlide, Bt(), T.create(), ee.writeURL(), r.sortFragmentsOnSync === !0 && O.sortAll(), o !== void 0 && (o = q(B, o), s = q(we, s)), j.update(), te.update(), Y(), F.update(), F.updateVisibility(), M.update(), T.update(!0), S.update(), x.formatEmbeddedContent(), r.autoPlayMedia === !1 ? x.stopEmbeddedContent(l, { unloadIframes: !1 }) : x.startEmbeddedContent(l), k.isActive() && k.layout(), H({ type: "sync" });
|
|
2469
2469
|
}
|
|
2470
|
-
function
|
|
2471
|
-
|
|
2470
|
+
function xt(e = l) {
|
|
2471
|
+
T.sync(e), O.sync(e), x.load(e), T.update(), F.update(), H({
|
|
2472
2472
|
type: "slidesync",
|
|
2473
2473
|
data: { slide: e }
|
|
2474
2474
|
});
|
|
2475
2475
|
}
|
|
2476
|
-
function
|
|
2477
|
-
|
|
2476
|
+
function St() {
|
|
2477
|
+
kt().forEach((e) => {
|
|
2478
2478
|
P(e, "section").forEach((e, t) => {
|
|
2479
2479
|
t > 0 && (e.classList.remove("present"), e.classList.remove("past"), e.classList.add("future"), e.setAttribute("aria-hidden", "true"));
|
|
2480
2480
|
});
|
|
2481
2481
|
});
|
|
2482
2482
|
}
|
|
2483
|
-
function
|
|
2483
|
+
function Ct(e = kt()) {
|
|
2484
2484
|
e.forEach((t, n) => {
|
|
2485
2485
|
let r = e[Math.floor(Math.random() * e.length)];
|
|
2486
2486
|
r.parentNode === t.parentNode && t.parentNode.insertBefore(t, r);
|
|
2487
2487
|
let i = t.querySelectorAll("section");
|
|
2488
|
-
i.length &&
|
|
2488
|
+
i.length && Ct(i);
|
|
2489
2489
|
});
|
|
2490
2490
|
}
|
|
2491
|
-
function
|
|
2492
|
-
let n = P(m.wrapper, e), i = n.length, a =
|
|
2491
|
+
function q(e, t) {
|
|
2492
|
+
let n = P(m.wrapper, e), i = n.length, a = E.isActive() || D.isActive(), o = !1, s = !1;
|
|
2493
2493
|
if (i) {
|
|
2494
2494
|
r.loop && (t >= i && (o = !0), t %= i, t < 0 && (t = i + t, s = !0)), t = Math.max(Math.min(t, i - 1), 0);
|
|
2495
2495
|
for (let e = 0; e < i; e++) {
|
|
2496
|
-
let i = n[e], c = r.rtl && !
|
|
2496
|
+
let i = n[e], c = r.rtl && !W(i);
|
|
2497
2497
|
if (i.classList.remove("past"), i.classList.remove("present"), i.classList.remove("future"), i.setAttribute("hidden", ""), i.setAttribute("aria-hidden", "true"), i.querySelector("section") && i.classList.add("stack"), a) {
|
|
2498
2498
|
i.classList.add("present");
|
|
2499
2499
|
continue;
|
|
2500
2500
|
}
|
|
2501
|
-
e < t ? (i.classList.add(c ? "future" : "past"), r.fragments &&
|
|
2501
|
+
e < t ? (i.classList.add(c ? "future" : "past"), r.fragments && J(i)) : e > t ? (i.classList.add(c ? "past" : "future"), r.fragments && wt(i)) : e === t && r.fragments && (o ? wt(i) : s && J(i));
|
|
2502
2502
|
}
|
|
2503
2503
|
let e = n[t], c = e.classList.contains("present");
|
|
2504
2504
|
e.classList.add("present"), e.removeAttribute("hidden"), e.removeAttribute("aria-hidden"), c || H({
|
|
@@ -2511,47 +2511,47 @@ function at(e, t) {
|
|
|
2511
2511
|
} else t = 0;
|
|
2512
2512
|
return t;
|
|
2513
2513
|
}
|
|
2514
|
-
function
|
|
2514
|
+
function J(e) {
|
|
2515
2515
|
P(e, ".fragment").forEach((e) => {
|
|
2516
2516
|
e.classList.add("visible"), e.classList.remove("current-fragment");
|
|
2517
2517
|
});
|
|
2518
2518
|
}
|
|
2519
|
-
function
|
|
2519
|
+
function wt(e) {
|
|
2520
2520
|
P(e, ".fragment.visible").forEach((e) => {
|
|
2521
2521
|
e.classList.remove("visible", "current-fragment");
|
|
2522
2522
|
});
|
|
2523
2523
|
}
|
|
2524
|
-
function
|
|
2525
|
-
let e =
|
|
2524
|
+
function Y() {
|
|
2525
|
+
let e = kt(), t = e.length, n, i;
|
|
2526
2526
|
if (t && o !== void 0) {
|
|
2527
|
-
let a =
|
|
2528
|
-
|
|
2527
|
+
let a = k.isActive(), c = a ? 10 : r.viewDistance;
|
|
2528
|
+
ve && (c = a ? 6 : r.mobileViewDistance), D.isActive() && (c = Number.MAX_VALUE);
|
|
2529
2529
|
for (let l = 0; l < t; l++) {
|
|
2530
2530
|
let u = e[l], d = P(u, "section"), f = d.length;
|
|
2531
2531
|
if (n = Math.abs((o || 0) - l) || 0, r.loop && (n = Math.abs(((o || 0) - l) % (t - c)) || 0), n < c ? x.load(u) : x.unload(u), f) {
|
|
2532
|
-
let e = a ? 0 :
|
|
2532
|
+
let e = a ? 0 : st(u);
|
|
2533
2533
|
for (let t = 0; t < f; t++) {
|
|
2534
2534
|
let r = d[t];
|
|
2535
2535
|
i = Math.abs(l === (o || 0) ? (s || 0) - t : t - e), n + i < c ? x.load(r) : x.unload(r);
|
|
2536
2536
|
}
|
|
2537
2537
|
}
|
|
2538
2538
|
}
|
|
2539
|
-
|
|
2539
|
+
Nt() ? m.wrapper.classList.add("has-vertical-slides") : m.wrapper.classList.remove("has-vertical-slides"), Mt() ? m.wrapper.classList.add("has-horizontal-slides") : m.wrapper.classList.remove("has-horizontal-slides");
|
|
2540
2540
|
}
|
|
2541
|
-
let a =
|
|
2542
|
-
P(m.wrapper,
|
|
2541
|
+
let a = k.isActive() || E.isActive() || D.isActive();
|
|
2542
|
+
P(m.wrapper, z).forEach((e) => {
|
|
2543
2543
|
e.toggleAttribute("inert", !a && e !== l && !e.contains(l));
|
|
2544
2544
|
});
|
|
2545
2545
|
}
|
|
2546
|
-
function
|
|
2547
|
-
let t = m.wrapper.querySelectorAll(
|
|
2546
|
+
function X({ includeFragments: e = !1 } = {}) {
|
|
2547
|
+
let t = m.wrapper.querySelectorAll(B), n = m.wrapper.querySelectorAll(we), i = {
|
|
2548
2548
|
left: o > 0,
|
|
2549
2549
|
right: o < t.length - 1,
|
|
2550
2550
|
up: s > 0,
|
|
2551
2551
|
down: s < n.length - 1
|
|
2552
2552
|
};
|
|
2553
2553
|
if (r.loop && (t.length > 1 && (i.left = !0, i.right = !0), n.length > 1 && (i.up = !0, i.down = !0)), t.length > 1 && r.navigationMode === "linear" && (i.right = i.right || i.down, i.left = i.left || i.up), e === !0) {
|
|
2554
|
-
let e =
|
|
2554
|
+
let e = O.availableRoutes();
|
|
2555
2555
|
i.left = i.left || e.prev, i.up = i.up || e.prev, i.down = i.down || e.next, i.right = i.right || e.next;
|
|
2556
2556
|
}
|
|
2557
2557
|
if (r.rtl) {
|
|
@@ -2560,8 +2560,8 @@ function at(e, t) {
|
|
|
2560
2560
|
}
|
|
2561
2561
|
return i;
|
|
2562
2562
|
}
|
|
2563
|
-
function
|
|
2564
|
-
let t =
|
|
2563
|
+
function Tt(e = l) {
|
|
2564
|
+
let t = kt(), n = 0;
|
|
2565
2565
|
mainLoop: for (let r = 0; r < t.length; r++) {
|
|
2566
2566
|
let i = t[r], a = i.querySelectorAll("section");
|
|
2567
2567
|
for (let t = 0; t < a.length; t++) {
|
|
@@ -2573,8 +2573,8 @@ function at(e, t) {
|
|
|
2573
2573
|
}
|
|
2574
2574
|
return n;
|
|
2575
2575
|
}
|
|
2576
|
-
function
|
|
2577
|
-
let e =
|
|
2576
|
+
function Et() {
|
|
2577
|
+
let e = Ft(), t = Tt();
|
|
2578
2578
|
if (l) {
|
|
2579
2579
|
let e = l.querySelectorAll(".fragment");
|
|
2580
2580
|
if (e.length > 0) {
|
|
@@ -2584,12 +2584,12 @@ function at(e, t) {
|
|
|
2584
2584
|
}
|
|
2585
2585
|
return Math.min(t / (e - 1), 1);
|
|
2586
2586
|
}
|
|
2587
|
-
function
|
|
2587
|
+
function Dt(e) {
|
|
2588
2588
|
let t = o, n = s, r;
|
|
2589
2589
|
if (e) {
|
|
2590
|
-
if (
|
|
2590
|
+
if (E.isActive()) t = parseInt(e.getAttribute("data-index-h"), 10), e.getAttribute("data-index-v") && (n = parseInt(e.getAttribute("data-index-v"), 10));
|
|
2591
2591
|
else {
|
|
2592
|
-
let r =
|
|
2592
|
+
let r = W(e), i = r ? e.parentNode : e, a = kt();
|
|
2593
2593
|
t = Math.max(a.indexOf(i), 0), n = void 0, r && (n = Math.max(P(e.parentNode, "section").indexOf(e), 0));
|
|
2594
2594
|
}
|
|
2595
2595
|
}
|
|
@@ -2603,26 +2603,26 @@ function at(e, t) {
|
|
|
2603
2603
|
f: r
|
|
2604
2604
|
};
|
|
2605
2605
|
}
|
|
2606
|
+
function Ot() {
|
|
2607
|
+
return P(m.wrapper, z + ":not(.stack):not([data-visibility=\"uncounted\"])");
|
|
2608
|
+
}
|
|
2606
2609
|
function kt() {
|
|
2607
|
-
return P(m.wrapper, B
|
|
2610
|
+
return P(m.wrapper, B);
|
|
2608
2611
|
}
|
|
2609
2612
|
function At() {
|
|
2610
|
-
return P(m.wrapper,
|
|
2613
|
+
return P(m.wrapper, ".slides>section>section");
|
|
2611
2614
|
}
|
|
2612
2615
|
function jt() {
|
|
2613
|
-
return P(m.wrapper, ".
|
|
2616
|
+
return P(m.wrapper, B + ".stack");
|
|
2614
2617
|
}
|
|
2615
2618
|
function Mt() {
|
|
2616
|
-
return
|
|
2619
|
+
return kt().length > 1;
|
|
2617
2620
|
}
|
|
2618
2621
|
function Nt() {
|
|
2619
2622
|
return At().length > 1;
|
|
2620
2623
|
}
|
|
2621
2624
|
function Pt() {
|
|
2622
|
-
return
|
|
2623
|
-
}
|
|
2624
|
-
function Ft() {
|
|
2625
|
-
return kt().map((e) => {
|
|
2625
|
+
return Ot().map((e) => {
|
|
2626
2626
|
let t = {};
|
|
2627
2627
|
for (let n = 0; n < e.attributes.length; n++) {
|
|
2628
2628
|
let r = e.attributes[n];
|
|
@@ -2631,105 +2631,105 @@ function at(e, t) {
|
|
|
2631
2631
|
return t;
|
|
2632
2632
|
});
|
|
2633
2633
|
}
|
|
2634
|
-
function
|
|
2635
|
-
return
|
|
2634
|
+
function Ft() {
|
|
2635
|
+
return Ot().length;
|
|
2636
2636
|
}
|
|
2637
|
-
function
|
|
2638
|
-
let n =
|
|
2637
|
+
function It(e, t) {
|
|
2638
|
+
let n = kt()[e], r = n && n.querySelectorAll("section");
|
|
2639
2639
|
return r && r.length && typeof t == "number" ? r ? r[t] : void 0 : n;
|
|
2640
2640
|
}
|
|
2641
|
-
function
|
|
2642
|
-
let n = typeof e == "number" ?
|
|
2641
|
+
function Lt(e, t) {
|
|
2642
|
+
let n = typeof e == "number" ? It(e, t) : e;
|
|
2643
2643
|
if (n) return n.slideBackgroundElement;
|
|
2644
2644
|
}
|
|
2645
|
-
function
|
|
2646
|
-
let e =
|
|
2645
|
+
function Rt() {
|
|
2646
|
+
let e = Dt();
|
|
2647
2647
|
return U({
|
|
2648
2648
|
indexh: e.h,
|
|
2649
2649
|
indexv: e.v,
|
|
2650
2650
|
indexf: e.f,
|
|
2651
2651
|
paused: mt(),
|
|
2652
|
-
overview:
|
|
2653
|
-
},
|
|
2652
|
+
overview: k.isActive()
|
|
2653
|
+
}, M.getState());
|
|
2654
2654
|
}
|
|
2655
|
-
function
|
|
2655
|
+
function zt(e) {
|
|
2656
2656
|
if (typeof e == "object") {
|
|
2657
|
-
K(
|
|
2658
|
-
let t =
|
|
2659
|
-
typeof t == "boolean" && t !== mt() && pt(t), typeof n == "boolean" && n !==
|
|
2657
|
+
K(se(e.indexh), se(e.indexv), se(e.indexf));
|
|
2658
|
+
let t = se(e.paused), n = se(e.overview);
|
|
2659
|
+
typeof t == "boolean" && t !== mt() && pt(t), typeof n == "boolean" && n !== k.isActive() && k.toggle(n), M.setState(e);
|
|
2660
2660
|
}
|
|
2661
2661
|
}
|
|
2662
|
-
function
|
|
2663
|
-
if (
|
|
2662
|
+
function Bt() {
|
|
2663
|
+
if (Vt(), l && r.autoSlide !== !1) {
|
|
2664
2664
|
let e = l.querySelector(".current-fragment[data-autoslide]"), t = e ? e.getAttribute("data-autoslide") : null, n = l.parentNode ? l.parentNode.getAttribute("data-autoslide") : null, i = l.getAttribute("data-autoslide");
|
|
2665
2665
|
t ? g = parseInt(t, 10) : i ? g = parseInt(i, 10) : n ? g = parseInt(n, 10) : (g = r.autoSlide, l.querySelectorAll(".fragment").length === 0 && P(l, "video, audio").forEach((e) => {
|
|
2666
2666
|
e.hasAttribute("data-autoplay") && g && e.duration * 1e3 / e.playbackRate > g && (g = e.duration * 1e3 / e.playbackRate + 1e3);
|
|
2667
|
-
})), g && !b && !mt() && !
|
|
2668
|
-
typeof r.autoSlideMethod == "function" ? r.autoSlideMethod() :
|
|
2667
|
+
})), g && !b && !mt() && !k.isActive() && (!ut() || O.availableRoutes().next || r.loop === !0) && (v = setTimeout(() => {
|
|
2668
|
+
typeof r.autoSlideMethod == "function" ? r.autoSlideMethod() : Yt(), Bt();
|
|
2669
2669
|
}, g), y = Date.now()), _ && _.setPlaying(v !== -1);
|
|
2670
2670
|
}
|
|
2671
2671
|
}
|
|
2672
|
-
function
|
|
2672
|
+
function Vt() {
|
|
2673
2673
|
clearTimeout(v), v = -1;
|
|
2674
2674
|
}
|
|
2675
|
-
function
|
|
2675
|
+
function Ht() {
|
|
2676
2676
|
g && !b && (b = !0, H({ type: "autoslidepaused" }), clearTimeout(v), _ && _.setPlaying(!1));
|
|
2677
2677
|
}
|
|
2678
|
-
function
|
|
2679
|
-
g && b && (b = !1, H({ type: "autoslideresumed" }),
|
|
2678
|
+
function Ut() {
|
|
2679
|
+
g && b && (b = !1, H({ type: "autoslideresumed" }), Bt());
|
|
2680
|
+
}
|
|
2681
|
+
function Wt({ skipFragments: e = !1 } = {}) {
|
|
2682
|
+
if (u.hasNavigatedHorizontally = !0, E.isActive()) return E.prev();
|
|
2683
|
+
r.rtl ? (k.isActive() || e || O.next() === !1) && X().left && K(o + 1, r.navigationMode === "grid" ? s : void 0) : (k.isActive() || e || O.prev() === !1) && X().left && K(o - 1, r.navigationMode === "grid" ? s : void 0);
|
|
2680
2684
|
}
|
|
2681
2685
|
function Gt({ skipFragments: e = !1 } = {}) {
|
|
2682
|
-
if (u.hasNavigatedHorizontally = !0,
|
|
2683
|
-
r.rtl ? (
|
|
2686
|
+
if (u.hasNavigatedHorizontally = !0, E.isActive()) return E.next();
|
|
2687
|
+
r.rtl ? (k.isActive() || e || O.prev() === !1) && X().right && K(o - 1, r.navigationMode === "grid" ? s : void 0) : (k.isActive() || e || O.next() === !1) && X().right && K(o + 1, r.navigationMode === "grid" ? s : void 0);
|
|
2684
2688
|
}
|
|
2685
2689
|
function Kt({ skipFragments: e = !1 } = {}) {
|
|
2686
|
-
if (
|
|
2687
|
-
|
|
2690
|
+
if (E.isActive()) return E.prev();
|
|
2691
|
+
(k.isActive() || e || O.prev() === !1) && X().up && K(o, s - 1);
|
|
2688
2692
|
}
|
|
2689
2693
|
function qt({ skipFragments: e = !1 } = {}) {
|
|
2690
|
-
if (
|
|
2691
|
-
(
|
|
2694
|
+
if (u.hasNavigatedVertically = !0, E.isActive()) return E.next();
|
|
2695
|
+
(k.isActive() || e || O.next() === !1) && X().down && K(o, s + 1);
|
|
2692
2696
|
}
|
|
2693
2697
|
function Jt({ skipFragments: e = !1 } = {}) {
|
|
2694
|
-
if (
|
|
2695
|
-
(
|
|
2696
|
-
|
|
2697
|
-
function Yt({ skipFragments: e = !1 } = {}) {
|
|
2698
|
-
if (T.isActive()) return T.prev();
|
|
2699
|
-
if (e || D.prev() === !1) {
|
|
2700
|
-
if (Tt().up) qt({ skipFragments: e });
|
|
2698
|
+
if (E.isActive()) return E.prev();
|
|
2699
|
+
if (e || O.prev() === !1) {
|
|
2700
|
+
if (X().up) Kt({ skipFragments: e });
|
|
2701
2701
|
else {
|
|
2702
2702
|
let t;
|
|
2703
|
-
if (t = r.rtl ? P(m.wrapper,
|
|
2703
|
+
if (t = r.rtl ? P(m.wrapper, B + ".future").pop() : P(m.wrapper, B + ".past").pop(), t && t.classList.contains("stack")) {
|
|
2704
2704
|
let e = t.querySelectorAll("section").length - 1 || void 0;
|
|
2705
2705
|
K(o - 1, e);
|
|
2706
|
-
} else r.rtl ?
|
|
2706
|
+
} else r.rtl ? Gt({ skipFragments: e }) : Wt({ skipFragments: e });
|
|
2707
2707
|
}
|
|
2708
2708
|
}
|
|
2709
2709
|
}
|
|
2710
|
-
function
|
|
2711
|
-
if (u.hasNavigatedHorizontally = !0, u.hasNavigatedVertically = !0,
|
|
2712
|
-
if (e ||
|
|
2713
|
-
let t =
|
|
2714
|
-
t.down && t.right && r.loop &&
|
|
2710
|
+
function Yt({ skipFragments: e = !1 } = {}) {
|
|
2711
|
+
if (u.hasNavigatedHorizontally = !0, u.hasNavigatedVertically = !0, E.isActive()) return E.next();
|
|
2712
|
+
if (e || O.next() === !1) {
|
|
2713
|
+
let t = X();
|
|
2714
|
+
t.down && t.right && r.loop && G() && (t.down = !1), t.down ? qt({ skipFragments: e }) : r.rtl ? Wt({ skipFragments: e }) : Gt({ skipFragments: e });
|
|
2715
2715
|
}
|
|
2716
2716
|
}
|
|
2717
|
-
function
|
|
2718
|
-
r.autoSlideStoppable &&
|
|
2717
|
+
function Xt(e) {
|
|
2718
|
+
r.autoSlideStoppable && Ht();
|
|
2719
2719
|
}
|
|
2720
|
-
function
|
|
2720
|
+
function Zt(e) {
|
|
2721
2721
|
let t = e.data;
|
|
2722
2722
|
if (typeof t == "string" && t.charAt(0) === "{" && t.charAt(t.length - 1) === "}" && (t = JSON.parse(t), t.method && typeof n[t.method] == "function")) {
|
|
2723
|
-
if (
|
|
2723
|
+
if (Ee.test(t.method) === !1) {
|
|
2724
2724
|
let e = n[t.method].apply(n, t.args);
|
|
2725
|
-
|
|
2725
|
+
Ue("callback", {
|
|
2726
2726
|
method: t.method,
|
|
2727
2727
|
result: e
|
|
2728
2728
|
});
|
|
2729
2729
|
} else console.warn("reveal.js: \"" + t.method + "\" is is blacklisted from the postMessage API");
|
|
2730
2730
|
}
|
|
2731
2731
|
}
|
|
2732
|
-
function
|
|
2732
|
+
function Qt(e) {
|
|
2733
2733
|
h === "running" && /section/gi.test(e.target.nodeName) && (h = "idle", H({
|
|
2734
2734
|
type: "slidetransitionend",
|
|
2735
2735
|
data: {
|
|
@@ -2740,159 +2740,159 @@ function at(e, t) {
|
|
|
2740
2740
|
}
|
|
2741
2741
|
}));
|
|
2742
2742
|
}
|
|
2743
|
-
function
|
|
2743
|
+
function $t(e) {
|
|
2744
2744
|
let t = I(e.target, "a[href^=\"#\"]");
|
|
2745
2745
|
if (t) {
|
|
2746
|
-
let r = t.getAttribute("href"), i =
|
|
2746
|
+
let r = t.getAttribute("href"), i = ee.getIndicesFromHash(r);
|
|
2747
2747
|
i && (n.slide(i.h, i.v, i.f), e.preventDefault());
|
|
2748
2748
|
}
|
|
2749
2749
|
}
|
|
2750
|
-
function
|
|
2751
|
-
|
|
2750
|
+
function en(e) {
|
|
2751
|
+
Je();
|
|
2752
2752
|
}
|
|
2753
|
-
function
|
|
2753
|
+
function tn(e) {
|
|
2754
2754
|
document.hidden === !1 && document.activeElement !== document.body && (typeof document.activeElement.blur == "function" && document.activeElement.blur(), document.body.focus());
|
|
2755
2755
|
}
|
|
2756
|
-
function
|
|
2756
|
+
function nn(e) {
|
|
2757
2757
|
(document.fullscreenElement || document.webkitFullscreenElement) === m.wrapper && (e.stopImmediatePropagation(), setTimeout(() => {
|
|
2758
2758
|
n.layout(), n.focus.focus();
|
|
2759
2759
|
}, 1));
|
|
2760
2760
|
}
|
|
2761
|
-
function
|
|
2762
|
-
ut() && r.loop === !1 ? (K(0, 0),
|
|
2761
|
+
function rn(e) {
|
|
2762
|
+
ut() && r.loop === !1 ? (K(0, 0), Ut()) : b ? Ut() : Ht();
|
|
2763
2763
|
}
|
|
2764
|
-
let
|
|
2765
|
-
VERSION:
|
|
2766
|
-
initialize:
|
|
2767
|
-
configure:
|
|
2764
|
+
let an = {
|
|
2765
|
+
VERSION: ot,
|
|
2766
|
+
initialize: le,
|
|
2767
|
+
configure: V,
|
|
2768
2768
|
destroy: Ne,
|
|
2769
|
-
sync:
|
|
2770
|
-
syncSlide:
|
|
2771
|
-
syncFragments:
|
|
2769
|
+
sync: bt,
|
|
2770
|
+
syncSlide: xt,
|
|
2771
|
+
syncFragments: O.sync.bind(O),
|
|
2772
2772
|
slide: K,
|
|
2773
|
-
left:
|
|
2774
|
-
right:
|
|
2775
|
-
up:
|
|
2776
|
-
down:
|
|
2777
|
-
prev:
|
|
2778
|
-
next:
|
|
2779
|
-
navigateLeft:
|
|
2780
|
-
navigateRight:
|
|
2781
|
-
navigateUp:
|
|
2782
|
-
navigateDown:
|
|
2783
|
-
navigatePrev:
|
|
2784
|
-
navigateNext:
|
|
2785
|
-
navigateFragment:
|
|
2786
|
-
prevFragment:
|
|
2787
|
-
nextFragment:
|
|
2773
|
+
left: Wt,
|
|
2774
|
+
right: Gt,
|
|
2775
|
+
up: Kt,
|
|
2776
|
+
down: qt,
|
|
2777
|
+
prev: Jt,
|
|
2778
|
+
next: Yt,
|
|
2779
|
+
navigateLeft: Wt,
|
|
2780
|
+
navigateRight: Gt,
|
|
2781
|
+
navigateUp: Kt,
|
|
2782
|
+
navigateDown: qt,
|
|
2783
|
+
navigatePrev: Jt,
|
|
2784
|
+
navigateNext: Yt,
|
|
2785
|
+
navigateFragment: O.goto.bind(O),
|
|
2786
|
+
prevFragment: O.prev.bind(O),
|
|
2787
|
+
nextFragment: O.next.bind(O),
|
|
2788
2788
|
on: Pe,
|
|
2789
|
-
off:
|
|
2789
|
+
off: Fe,
|
|
2790
2790
|
addEventListener: Pe,
|
|
2791
|
-
removeEventListener:
|
|
2792
|
-
layout:
|
|
2793
|
-
shuffle:
|
|
2794
|
-
availableRoutes:
|
|
2795
|
-
availableFragments:
|
|
2796
|
-
toggleHelp:
|
|
2797
|
-
toggleOverview:
|
|
2798
|
-
toggleScrollView:
|
|
2791
|
+
removeEventListener: Fe,
|
|
2792
|
+
layout: Je,
|
|
2793
|
+
shuffle: Ct,
|
|
2794
|
+
availableRoutes: X,
|
|
2795
|
+
availableFragments: O.availableRoutes.bind(O),
|
|
2796
|
+
toggleHelp: M.toggleHelp.bind(M),
|
|
2797
|
+
toggleOverview: k.toggle.bind(k),
|
|
2798
|
+
toggleScrollView: E.toggle.bind(E),
|
|
2799
2799
|
togglePause: pt,
|
|
2800
2800
|
toggleAutoSlide: gt,
|
|
2801
2801
|
toggleJumpToSlide: ht,
|
|
2802
2802
|
isFirstSlide: lt,
|
|
2803
2803
|
isLastSlide: ut,
|
|
2804
|
-
isLastVerticalSlide:
|
|
2805
|
-
isVerticalSlide:
|
|
2806
|
-
isVerticalStack:
|
|
2804
|
+
isLastVerticalSlide: G,
|
|
2805
|
+
isVerticalSlide: W,
|
|
2806
|
+
isVerticalStack: ct,
|
|
2807
2807
|
isPaused: mt,
|
|
2808
2808
|
isAutoSliding: _t,
|
|
2809
|
-
isSpeakerNotes:
|
|
2810
|
-
isOverview:
|
|
2811
|
-
isFocused:
|
|
2812
|
-
isOverlayOpen:
|
|
2813
|
-
isScrollView:
|
|
2814
|
-
isPrintView:
|
|
2809
|
+
isSpeakerNotes: F.isSpeakerNotesWindow.bind(F),
|
|
2810
|
+
isOverview: k.isActive.bind(k),
|
|
2811
|
+
isFocused: N.isFocused.bind(N),
|
|
2812
|
+
isOverlayOpen: M.isOpen.bind(M),
|
|
2813
|
+
isScrollView: E.isActive.bind(E),
|
|
2814
|
+
isPrintView: D.isActive.bind(D),
|
|
2815
2815
|
isReady: () => a,
|
|
2816
2816
|
loadSlide: x.load.bind(x),
|
|
2817
2817
|
unloadSlide: x.unload.bind(x),
|
|
2818
2818
|
startEmbeddedContent: () => x.startEmbeddedContent(l),
|
|
2819
2819
|
stopEmbeddedContent: () => x.stopEmbeddedContent(l, { unloadIframes: !1 }),
|
|
2820
|
-
previewIframe:
|
|
2821
|
-
previewImage:
|
|
2822
|
-
previewVideo:
|
|
2823
|
-
showPreview:
|
|
2824
|
-
hidePreview:
|
|
2825
|
-
addEventListeners:
|
|
2826
|
-
removeEventListeners:
|
|
2820
|
+
previewIframe: M.previewIframe.bind(M),
|
|
2821
|
+
previewImage: M.previewImage.bind(M),
|
|
2822
|
+
previewVideo: M.previewVideo.bind(M),
|
|
2823
|
+
showPreview: M.previewIframe.bind(M),
|
|
2824
|
+
hidePreview: M.close.bind(M),
|
|
2825
|
+
addEventListeners: ke,
|
|
2826
|
+
removeEventListeners: je,
|
|
2827
2827
|
dispatchEvent: H,
|
|
2828
|
-
getState:
|
|
2829
|
-
setState:
|
|
2830
|
-
getProgress:
|
|
2831
|
-
getIndices:
|
|
2832
|
-
getSlidesAttributes:
|
|
2833
|
-
getSlidePastCount:
|
|
2834
|
-
getTotalSlides:
|
|
2835
|
-
getSlide:
|
|
2828
|
+
getState: Rt,
|
|
2829
|
+
setState: zt,
|
|
2830
|
+
getProgress: Et,
|
|
2831
|
+
getIndices: Dt,
|
|
2832
|
+
getSlidesAttributes: Pt,
|
|
2833
|
+
getSlidePastCount: Tt,
|
|
2834
|
+
getTotalSlides: Ft,
|
|
2835
|
+
getSlide: It,
|
|
2836
2836
|
getPreviousSlide: () => c,
|
|
2837
2837
|
getCurrentSlide: () => l,
|
|
2838
|
-
getSlideBackground:
|
|
2839
|
-
getSlideNotes:
|
|
2840
|
-
getSlides:
|
|
2841
|
-
getHorizontalSlides:
|
|
2842
|
-
getVerticalSlides:
|
|
2843
|
-
hasHorizontalSlides:
|
|
2844
|
-
hasVerticalSlides:
|
|
2838
|
+
getSlideBackground: Lt,
|
|
2839
|
+
getSlideNotes: F.getSlideNotes.bind(F),
|
|
2840
|
+
getSlides: Ot,
|
|
2841
|
+
getHorizontalSlides: kt,
|
|
2842
|
+
getVerticalSlides: At,
|
|
2843
|
+
hasHorizontalSlides: Mt,
|
|
2844
|
+
hasVerticalSlides: Nt,
|
|
2845
2845
|
hasNavigatedHorizontally: () => u.hasNavigatedHorizontally,
|
|
2846
2846
|
hasNavigatedVertically: () => u.hasNavigatedVertically,
|
|
2847
2847
|
shouldAutoAnimateBetween: vt,
|
|
2848
|
-
addKeyBinding:
|
|
2849
|
-
removeKeyBinding:
|
|
2850
|
-
triggerKey:
|
|
2851
|
-
registerKeyboardShortcut:
|
|
2852
|
-
getComputedSlideSize:
|
|
2848
|
+
addKeyBinding: A.addKeyBinding.bind(A),
|
|
2849
|
+
removeKeyBinding: A.removeKeyBinding.bind(A),
|
|
2850
|
+
triggerKey: A.triggerKey.bind(A),
|
|
2851
|
+
registerKeyboardShortcut: A.registerKeyboardShortcut.bind(A),
|
|
2852
|
+
getComputedSlideSize: et,
|
|
2853
2853
|
setCurrentScrollPage: yt,
|
|
2854
|
-
removeHiddenSlides:
|
|
2854
|
+
removeHiddenSlides: ge,
|
|
2855
2855
|
getScale: () => f,
|
|
2856
2856
|
getConfig: () => r,
|
|
2857
|
-
getQueryHash:
|
|
2858
|
-
getSlidePath:
|
|
2857
|
+
getQueryHash: fe,
|
|
2858
|
+
getSlidePath: ee.getHash.bind(ee),
|
|
2859
2859
|
getRevealElement: () => e,
|
|
2860
2860
|
getSlidesElement: () => m.slides,
|
|
2861
2861
|
getViewportElement: () => m.viewport,
|
|
2862
|
-
getBackgroundsElement: () =>
|
|
2863
|
-
registerPlugin:
|
|
2864
|
-
hasPlugin:
|
|
2865
|
-
getPlugin:
|
|
2866
|
-
getPlugins:
|
|
2862
|
+
getBackgroundsElement: () => T.element,
|
|
2863
|
+
registerPlugin: re.registerPlugin.bind(re),
|
|
2864
|
+
hasPlugin: re.hasPlugin.bind(re),
|
|
2865
|
+
getPlugin: re.getPlugin.bind(re),
|
|
2866
|
+
getPlugins: re.getRegisteredPlugins.bind(re)
|
|
2867
2867
|
};
|
|
2868
|
-
return
|
|
2869
|
-
announceStatus:
|
|
2870
|
-
getStatusText:
|
|
2871
|
-
focus:
|
|
2872
|
-
scroll:
|
|
2873
|
-
progress:
|
|
2874
|
-
controls:
|
|
2875
|
-
location:
|
|
2876
|
-
overview:
|
|
2877
|
-
keyboard:
|
|
2878
|
-
fragments:
|
|
2879
|
-
backgrounds:
|
|
2868
|
+
return ae(n, U(U({}, an), {}, {
|
|
2869
|
+
announceStatus: be,
|
|
2870
|
+
getStatusText: L,
|
|
2871
|
+
focus: N,
|
|
2872
|
+
scroll: E,
|
|
2873
|
+
progress: te,
|
|
2874
|
+
controls: j,
|
|
2875
|
+
location: ee,
|
|
2876
|
+
overview: k,
|
|
2877
|
+
keyboard: A,
|
|
2878
|
+
fragments: O,
|
|
2879
|
+
backgrounds: T,
|
|
2880
2880
|
slideContent: x,
|
|
2881
2881
|
slideNumber: S,
|
|
2882
|
-
onUserInput:
|
|
2883
|
-
closeOverlay:
|
|
2884
|
-
updateSlidesVisibility:
|
|
2885
|
-
layoutSlideContents:
|
|
2886
|
-
transformSlides:
|
|
2887
|
-
cueAutoSlide:
|
|
2888
|
-
cancelAutoSlide:
|
|
2889
|
-
})),
|
|
2882
|
+
onUserInput: Xt,
|
|
2883
|
+
closeOverlay: M.close.bind(M),
|
|
2884
|
+
updateSlidesVisibility: Y,
|
|
2885
|
+
layoutSlideContents: Ze,
|
|
2886
|
+
transformSlides: Ie,
|
|
2887
|
+
cueAutoSlide: Bt,
|
|
2888
|
+
cancelAutoSlide: Vt
|
|
2889
|
+
})), an;
|
|
2890
2890
|
}
|
|
2891
|
-
var W =
|
|
2891
|
+
var W = st, ct = [];
|
|
2892
2892
|
W.initialize = (e) => {
|
|
2893
2893
|
let t = document.querySelector(".reveal");
|
|
2894
2894
|
if (!(t instanceof HTMLElement)) throw Error("Unable to find presentation root (<div class=\"reveal\">).");
|
|
2895
|
-
return Object.assign(W, new
|
|
2895
|
+
return Object.assign(W, new st(t, e)), ct.map((e) => e(W)), W.initialize();
|
|
2896
2896
|
}, [
|
|
2897
2897
|
"configure",
|
|
2898
2898
|
"on",
|
|
@@ -2902,13 +2902,13 @@ W.initialize = (e) => {
|
|
|
2902
2902
|
"registerPlugin"
|
|
2903
2903
|
].forEach((e) => {
|
|
2904
2904
|
W[e] = (...t) => {
|
|
2905
|
-
|
|
2905
|
+
ct.push((n) => n[e].call(null, ...t));
|
|
2906
2906
|
};
|
|
2907
|
-
}), W.isReady = () => !1, W.VERSION =
|
|
2907
|
+
}), W.isReady = () => !1, W.VERSION = ot;
|
|
2908
2908
|
//#endregion
|
|
2909
2909
|
//#region ../node_modules/.pnpm/@revealjs+react@0.2.2_react-dom@19.3.0_react@19.3.0__react@19.3.0_reveal.js@6.0.2/node_modules/@revealjs/react/dist/index.mjs
|
|
2910
|
-
var G =
|
|
2911
|
-
function
|
|
2910
|
+
var G = D(), lt = (0, N.createContext)(null), ut = [];
|
|
2911
|
+
function dt(e, t) {
|
|
2912
2912
|
if (e === t) return !1;
|
|
2913
2913
|
if (!e || !t) return e !== t;
|
|
2914
2914
|
let n = Object.keys(e), r = Object.keys(t);
|
|
@@ -2916,43 +2916,43 @@ function lt(e, t) {
|
|
|
2916
2916
|
for (let r of n) if (!(r in t) || e[r] !== t[r]) return !0;
|
|
2917
2917
|
return !1;
|
|
2918
2918
|
}
|
|
2919
|
-
function
|
|
2919
|
+
function ft(e, t) {
|
|
2920
2920
|
e && (typeof e == "function" ? e(t) : e.current = t);
|
|
2921
2921
|
}
|
|
2922
|
-
function
|
|
2922
|
+
function pt(e) {
|
|
2923
2923
|
return e.tagName === "SECTION";
|
|
2924
2924
|
}
|
|
2925
|
-
function
|
|
2926
|
-
return Array.from(e.children).filter(
|
|
2925
|
+
function mt(e, t, n) {
|
|
2926
|
+
return Array.from(e.children).filter(pt).map((e) => {
|
|
2927
2927
|
let r = t.get(e);
|
|
2928
2928
|
r === void 0 && (r = n.current++, t.set(e, r));
|
|
2929
|
-
let i =
|
|
2929
|
+
let i = mt(e, t, n);
|
|
2930
2930
|
return i.length > 0 ? [r, i] : r;
|
|
2931
2931
|
});
|
|
2932
2932
|
}
|
|
2933
|
-
function
|
|
2934
|
-
return e ? JSON.stringify(
|
|
2933
|
+
function ht(e, t, n) {
|
|
2934
|
+
return e ? JSON.stringify(mt(e, t, n)) : "[]";
|
|
2935
2935
|
}
|
|
2936
|
-
function
|
|
2937
|
-
let _ = (0,
|
|
2938
|
-
return (0,
|
|
2939
|
-
if (
|
|
2936
|
+
function gt({ config: e, plugins: t = ut, onReady: n, onSync: r, onSlideSync: i, onSlideChange: a, onSlideTransitionEnd: o, onFragmentShown: s, onFragmentHidden: c, onOverviewShown: l, onOverviewHidden: u, onPaused: d, onResumed: f, deckRef: p, className: m, style: h, children: g }) {
|
|
2937
|
+
let _ = (0, N.useRef)(null), v = (0, N.useRef)(null), y = (0, N.useRef)(null), [b, x] = (0, N.useState)(null), S = (0, N.useRef)(t), C = (0, N.useRef)(!1), w = (0, N.useRef)(e), T = (0, N.useRef)(null), E = (0, N.useRef)(/* @__PURE__ */ new WeakMap()), D = (0, N.useRef)(1), O = (0, N.useRef)(!1), k = (0, N.useRef)(0);
|
|
2938
|
+
return (0, N.useEffect)(() => {
|
|
2939
|
+
if (O.current = !0, k.current += 1, y.current) y.current.isReady() && x(y.current);
|
|
2940
2940
|
else {
|
|
2941
2941
|
let t = new W(_.current, {
|
|
2942
2942
|
...e,
|
|
2943
2943
|
plugins: S.current
|
|
2944
2944
|
});
|
|
2945
|
-
|
|
2946
|
-
|
|
2945
|
+
w.current = e, y.current = t, t.initialize().then(() => {
|
|
2946
|
+
O.current && y.current === t && (x(t), n?.(t));
|
|
2947
2947
|
});
|
|
2948
2948
|
}
|
|
2949
2949
|
return () => {
|
|
2950
|
-
|
|
2950
|
+
O.current = !1;
|
|
2951
2951
|
let e = y.current;
|
|
2952
2952
|
if (!e) return;
|
|
2953
|
-
let t = ++
|
|
2953
|
+
let t = ++k.current;
|
|
2954
2954
|
Promise.resolve().then(() => {
|
|
2955
|
-
if (!(
|
|
2955
|
+
if (!(O.current || k.current !== t) && y.current === e) {
|
|
2956
2956
|
try {
|
|
2957
2957
|
e.destroy();
|
|
2958
2958
|
} catch {}
|
|
@@ -2960,7 +2960,7 @@ function mt({ config: e, plugins: t = ct, onReady: n, onSync: r, onSlideSync: i,
|
|
|
2960
2960
|
}
|
|
2961
2961
|
});
|
|
2962
2962
|
};
|
|
2963
|
-
}, []), (0,
|
|
2963
|
+
}, []), (0, N.useEffect)(() => (ft(p, b), () => ft(p, null)), [p, b]), (0, N.useEffect)(() => {
|
|
2964
2964
|
if (!b) return;
|
|
2965
2965
|
let e = [
|
|
2966
2966
|
["sync", r],
|
|
@@ -2990,18 +2990,18 @@ function mt({ config: e, plugins: t = ct, onReady: n, onSync: r, onSlideSync: i,
|
|
|
2990
2990
|
u,
|
|
2991
2991
|
d,
|
|
2992
2992
|
f
|
|
2993
|
-
]), (0,
|
|
2994
|
-
b && y.current?.isReady() &&
|
|
2995
|
-
}, [b, e]), (0,
|
|
2993
|
+
]), (0, N.useLayoutEffect)(() => {
|
|
2994
|
+
b && y.current?.isReady() && dt(w.current, e) && (C.current = !0, y.current.configure(e ?? {}), w.current = e);
|
|
2995
|
+
}, [b, e]), (0, N.useLayoutEffect)(() => {
|
|
2996
2996
|
let e = C.current;
|
|
2997
2997
|
C.current = !1;
|
|
2998
|
-
let t =
|
|
2998
|
+
let t = ht(v.current, E.current, D);
|
|
2999
2999
|
if (e) {
|
|
3000
|
-
|
|
3000
|
+
T.current = t;
|
|
3001
3001
|
return;
|
|
3002
3002
|
}
|
|
3003
|
-
y.current?.isReady() &&
|
|
3004
|
-
}), /* @__PURE__ */ (0, G.jsx)(
|
|
3003
|
+
y.current?.isReady() && T.current !== t && (y.current.sync(), T.current = t);
|
|
3004
|
+
}), /* @__PURE__ */ (0, G.jsx)(lt.Provider, {
|
|
3005
3005
|
value: b,
|
|
3006
3006
|
children: /* @__PURE__ */ (0, G.jsx)("div", {
|
|
3007
3007
|
className: m ? `reveal ${m}` : "reveal",
|
|
@@ -3015,7 +3015,7 @@ function mt({ config: e, plugins: t = ct, onReady: n, onSync: r, onSlideSync: i,
|
|
|
3015
3015
|
})
|
|
3016
3016
|
});
|
|
3017
3017
|
}
|
|
3018
|
-
var
|
|
3018
|
+
var _t = {
|
|
3019
3019
|
background: "data-background",
|
|
3020
3020
|
backgroundImage: "data-background-image",
|
|
3021
3021
|
backgroundVideo: "data-background-video",
|
|
@@ -3044,12 +3044,12 @@ var ht = {
|
|
|
3044
3044
|
backgroundInteractive: "data-background-interactive",
|
|
3045
3045
|
preload: "data-preload"
|
|
3046
3046
|
};
|
|
3047
|
-
function
|
|
3047
|
+
function K(e) {
|
|
3048
3048
|
return JSON.stringify(Object.entries(e).filter(([e]) => e.startsWith("data-")).sort(([e], [t]) => e.localeCompare(t)));
|
|
3049
3049
|
}
|
|
3050
|
-
function
|
|
3050
|
+
function vt(e, t) {
|
|
3051
3051
|
let n = { ...e }, r = n;
|
|
3052
|
-
for (let [e, n] of Object.entries(
|
|
3052
|
+
for (let [e, n] of Object.entries(_t)) {
|
|
3053
3053
|
if (r[n] !== void 0) continue;
|
|
3054
3054
|
let i = t[e];
|
|
3055
3055
|
if (i !== void 0) {
|
|
@@ -3062,8 +3062,8 @@ function _t(e, t) {
|
|
|
3062
3062
|
}
|
|
3063
3063
|
return n;
|
|
3064
3064
|
}
|
|
3065
|
-
function
|
|
3066
|
-
let
|
|
3065
|
+
function yt({ children: e, background: t, backgroundImage: n, backgroundVideo: r, backgroundVideoLoop: i, backgroundVideoMuted: a, backgroundIframe: o, backgroundColor: s, backgroundGradient: c, backgroundSize: l, backgroundPosition: u, backgroundRepeat: d, backgroundOpacity: f, backgroundTransition: p, visibility: m, autoAnimate: h, autoAnimateId: g, autoAnimateRestart: _, autoAnimateUnmatched: v, autoAnimateEasing: y, autoAnimateDuration: b, autoAnimateDelay: x, transition: S, transitionSpeed: C, autoSlide: w, notes: T, backgroundInteractive: E, preload: D, ...O }) {
|
|
3066
|
+
let k = (0, N.useContext)(lt), A = (0, N.useRef)(null), ee = (0, N.useRef)(null), j = (0, N.useRef)(null), te = vt(O, {
|
|
3067
3067
|
background: t,
|
|
3068
3068
|
backgroundImage: n,
|
|
3069
3069
|
backgroundVideo: r,
|
|
@@ -3087,35 +3087,35 @@ function K({ children: e, background: t, backgroundImage: n, backgroundVideo: r,
|
|
|
3087
3087
|
autoAnimateDelay: x,
|
|
3088
3088
|
transition: S,
|
|
3089
3089
|
transitionSpeed: C,
|
|
3090
|
-
autoSlide:
|
|
3091
|
-
notes:
|
|
3092
|
-
backgroundInteractive:
|
|
3093
|
-
preload:
|
|
3094
|
-
}),
|
|
3095
|
-
return (0,
|
|
3096
|
-
let e =
|
|
3097
|
-
if (!
|
|
3098
|
-
if (
|
|
3099
|
-
|
|
3090
|
+
autoSlide: w,
|
|
3091
|
+
notes: T,
|
|
3092
|
+
backgroundInteractive: E,
|
|
3093
|
+
preload: D
|
|
3094
|
+
}), ne = K(te);
|
|
3095
|
+
return (0, N.useLayoutEffect)(() => {
|
|
3096
|
+
let e = A.current;
|
|
3097
|
+
if (!k || !e || typeof k.syncSlide != "function") return;
|
|
3098
|
+
if (ee.current !== k) {
|
|
3099
|
+
ee.current = k, j.current = ne;
|
|
3100
3100
|
return;
|
|
3101
3101
|
}
|
|
3102
|
-
if (
|
|
3103
|
-
let t =
|
|
3104
|
-
t && n || (
|
|
3105
|
-
}, [
|
|
3106
|
-
ref:
|
|
3107
|
-
...
|
|
3102
|
+
if (ne === "[]") return;
|
|
3103
|
+
let t = ee.current === k, n = j.current === ne;
|
|
3104
|
+
t && n || (k.syncSlide(e), ee.current = k, j.current = ne);
|
|
3105
|
+
}, [k, ne]), /* @__PURE__ */ (0, G.jsx)("section", {
|
|
3106
|
+
ref: A,
|
|
3107
|
+
...te,
|
|
3108
3108
|
children: e
|
|
3109
3109
|
});
|
|
3110
3110
|
}
|
|
3111
|
-
function
|
|
3111
|
+
function bt({ className: e, style: t, children: n }) {
|
|
3112
3112
|
return /* @__PURE__ */ (0, G.jsx)("section", {
|
|
3113
3113
|
className: e,
|
|
3114
3114
|
style: t,
|
|
3115
3115
|
children: n
|
|
3116
3116
|
});
|
|
3117
3117
|
}
|
|
3118
|
-
function
|
|
3118
|
+
function xt() {
|
|
3119
3119
|
return {
|
|
3120
3120
|
async: !1,
|
|
3121
3121
|
breaks: !1,
|
|
@@ -3129,11 +3129,11 @@ function yt() {
|
|
|
3129
3129
|
walkTokens: null
|
|
3130
3130
|
};
|
|
3131
3131
|
}
|
|
3132
|
-
var
|
|
3133
|
-
function
|
|
3134
|
-
|
|
3132
|
+
var St = xt();
|
|
3133
|
+
function Ct(e) {
|
|
3134
|
+
St = e;
|
|
3135
3135
|
}
|
|
3136
|
-
var
|
|
3136
|
+
var q = { exec: () => null };
|
|
3137
3137
|
function J(e, t = "") {
|
|
3138
3138
|
let n = typeof e == "string" ? e : e.source, r = {
|
|
3139
3139
|
replace: (e, t) => {
|
|
@@ -3144,7 +3144,7 @@ function J(e, t = "") {
|
|
|
3144
3144
|
};
|
|
3145
3145
|
return r;
|
|
3146
3146
|
}
|
|
3147
|
-
var
|
|
3147
|
+
var wt = (() => {
|
|
3148
3148
|
try {
|
|
3149
3149
|
return !0;
|
|
3150
3150
|
} catch {
|
|
@@ -3207,96 +3207,96 @@ var St = (() => {
|
|
|
3207
3207
|
headingBeginRegex: (e) => RegExp(`^ {0,${Math.min(3, e - 1)}}#`),
|
|
3208
3208
|
htmlBeginRegex: (e) => RegExp(`^ {0,${Math.min(3, e - 1)}}<(?:[a-z].*>|!--)`, "i"),
|
|
3209
3209
|
blockquoteBeginRegex: (e) => RegExp(`^ {0,${Math.min(3, e - 1)}}>`)
|
|
3210
|
-
},
|
|
3211
|
-
blockquote: J(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",
|
|
3212
|
-
code:
|
|
3213
|
-
def:
|
|
3214
|
-
fences:
|
|
3215
|
-
heading:
|
|
3216
|
-
hr:
|
|
3217
|
-
html:
|
|
3218
|
-
lheading: At,
|
|
3219
|
-
list: It,
|
|
3220
|
-
newline: Ct,
|
|
3221
|
-
paragraph: Bt,
|
|
3222
|
-
table: xt,
|
|
3223
|
-
text: Nt
|
|
3224
|
-
}, Ht = J("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", Et).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", Lt).getRegex(), Ut = {
|
|
3225
|
-
...Vt,
|
|
3210
|
+
}, X = /^(?:[ \t]*(?:\n|$))+/, Tt = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, Et = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, Dt = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, Ot = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, kt = / {0,3}(?:[*+-]|\d{1,9}[.)])/, At = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, jt = J(At).replace(/bull/g, kt).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex(), Mt = J(At).replace(/bull/g, kt).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(), Nt = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, Pt = /^[^\n]+/, Ft = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, It = J(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", Ft).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), Lt = J(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, kt).getRegex(), Rt = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", zt = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, Bt = J("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))", "i").replace("comment", zt).replace("tag", Rt).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), Vt = J(Nt).replace("hr", Dt).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", Rt).getRegex(), Ht = {
|
|
3211
|
+
blockquote: J(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", Vt).getRegex(),
|
|
3212
|
+
code: Tt,
|
|
3213
|
+
def: It,
|
|
3214
|
+
fences: Et,
|
|
3215
|
+
heading: Ot,
|
|
3216
|
+
hr: Dt,
|
|
3217
|
+
html: Bt,
|
|
3226
3218
|
lheading: jt,
|
|
3227
|
-
|
|
3228
|
-
|
|
3229
|
-
|
|
3230
|
-
|
|
3231
|
-
|
|
3219
|
+
list: Lt,
|
|
3220
|
+
newline: X,
|
|
3221
|
+
paragraph: Vt,
|
|
3222
|
+
table: q,
|
|
3223
|
+
text: Pt
|
|
3224
|
+
}, Ut = J("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", Dt).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", Rt).getRegex(), Wt = {
|
|
3225
|
+
...Ht,
|
|
3226
|
+
lheading: Mt,
|
|
3227
|
+
table: Ut,
|
|
3228
|
+
paragraph: J(Nt).replace("hr", Dt).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", Ut).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", Rt).getRegex()
|
|
3229
|
+
}, Gt = {
|
|
3230
|
+
...Ht,
|
|
3231
|
+
html: J("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment", zt).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),
|
|
3232
3232
|
def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,
|
|
3233
3233
|
heading: /^(#{1,6})(.*)(?:\n+|$)/,
|
|
3234
|
-
fences:
|
|
3234
|
+
fences: q,
|
|
3235
3235
|
lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,
|
|
3236
|
-
paragraph: J(
|
|
3237
|
-
},
|
|
3238
|
-
_backpedal:
|
|
3239
|
-
anyPunctuation:
|
|
3240
|
-
autolink:
|
|
3241
|
-
blockSkip:
|
|
3242
|
-
br:
|
|
3243
|
-
code:
|
|
3244
|
-
del:
|
|
3245
|
-
delLDelim:
|
|
3246
|
-
delRDelim:
|
|
3247
|
-
emStrongLDelim: an,
|
|
3248
|
-
emStrongRDelimAst: cn,
|
|
3249
|
-
emStrongRDelimUnd: un,
|
|
3250
|
-
escape: Gt,
|
|
3251
|
-
link: vn,
|
|
3252
|
-
nolink: bn,
|
|
3253
|
-
punctuation: Qt,
|
|
3254
|
-
reflink: yn,
|
|
3255
|
-
reflinkSearch: xn,
|
|
3256
|
-
tag: gn,
|
|
3257
|
-
text: Jt,
|
|
3258
|
-
url: xt
|
|
3259
|
-
}, wn = {
|
|
3260
|
-
...Cn,
|
|
3261
|
-
link: J(/^!?\[(label)\]\((.*?)\)/).replace("label", _n).getRegex(),
|
|
3262
|
-
reflink: J(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", _n).getRegex()
|
|
3263
|
-
}, Tn = {
|
|
3264
|
-
...Cn,
|
|
3265
|
-
emStrongRDelimAst: ln,
|
|
3236
|
+
paragraph: J(Nt).replace("hr", Dt).replace("heading", " *#{1,6} *[^\n]").replace("lheading", jt).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex()
|
|
3237
|
+
}, Kt = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, qt = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, Jt = /^( {2,}|\\)\n(?!\s*$)/, Yt = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, Xt = /[\p{P}\p{S}]/u, Zt = /[\s\p{P}\p{S}]/u, Qt = /[^\s\p{P}\p{S}]/u, $t = J(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, Zt).getRegex(), en = /(?!~)[\p{P}\p{S}]/u, tn = /(?!~)[\s\p{P}\p{S}]/u, nn = /(?:[^\s\p{P}\p{S}]|~)/u, rn = J(/link|precode-code|html/, "g").replace("link", /\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-", wt ? "(?<!`)()" : "(^^|[^`])").replace("code", /(?<b>`+)[^`]+\k<b>(?!`)/).replace("html", /<(?! )[^<>]*?>/).getRegex(), an = /^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/, on = J(an, "u").replace(/punct/g, Xt).getRegex(), sn = J(an, "u").replace(/punct/g, en).getRegex(), cn = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", ln = J(cn, "gu").replace(/notPunctSpace/g, Qt).replace(/punctSpace/g, Zt).replace(/punct/g, Xt).getRegex(), un = J(cn, "gu").replace(/notPunctSpace/g, nn).replace(/punctSpace/g, tn).replace(/punct/g, en).getRegex(), dn = J("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, Qt).replace(/punctSpace/g, Zt).replace(/punct/g, Xt).getRegex(), fn = J(/^~~?(?:((?!~)punct)|[^\s~])/, "u").replace(/punct/g, Xt).getRegex(), pn = J("^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)", "gu").replace(/notPunctSpace/g, Qt).replace(/punctSpace/g, Zt).replace(/punct/g, Xt).getRegex(), mn = J(/\\(punct)/, "gu").replace(/punct/g, Xt).getRegex(), hn = J(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), gn = J(zt).replace("(?:-->|$)", "-->").getRegex(), _n = J("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", gn).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), vn = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/, yn = J(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label", vn).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), bn = J(/^!?\[(label)\]\[(ref)\]/).replace("label", vn).replace("ref", Ft).getRegex(), xn = J(/^!?\[(ref)\](?:\[\])?/).replace("ref", Ft).getRegex(), Sn = J("reflink|nolink(?!\\()", "g").replace("reflink", bn).replace("nolink", xn).getRegex(), Cn = /[hH][tT][tT][pP][sS]?|[fF][tT][pP]/, wn = {
|
|
3238
|
+
_backpedal: q,
|
|
3239
|
+
anyPunctuation: mn,
|
|
3240
|
+
autolink: hn,
|
|
3241
|
+
blockSkip: rn,
|
|
3242
|
+
br: Jt,
|
|
3243
|
+
code: qt,
|
|
3244
|
+
del: q,
|
|
3245
|
+
delLDelim: q,
|
|
3246
|
+
delRDelim: q,
|
|
3266
3247
|
emStrongLDelim: on,
|
|
3267
|
-
|
|
3268
|
-
|
|
3269
|
-
|
|
3248
|
+
emStrongRDelimAst: ln,
|
|
3249
|
+
emStrongRDelimUnd: dn,
|
|
3250
|
+
escape: Kt,
|
|
3251
|
+
link: yn,
|
|
3252
|
+
nolink: xn,
|
|
3253
|
+
punctuation: $t,
|
|
3254
|
+
reflink: bn,
|
|
3255
|
+
reflinkSearch: Sn,
|
|
3256
|
+
tag: _n,
|
|
3257
|
+
text: Yt,
|
|
3258
|
+
url: q
|
|
3259
|
+
}, Tn = {
|
|
3260
|
+
...wn,
|
|
3261
|
+
link: J(/^!?\[(label)\]\((.*?)\)/).replace("label", vn).getRegex(),
|
|
3262
|
+
reflink: J(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", vn).getRegex()
|
|
3263
|
+
}, En = {
|
|
3264
|
+
...wn,
|
|
3265
|
+
emStrongRDelimAst: un,
|
|
3266
|
+
emStrongLDelim: sn,
|
|
3267
|
+
delLDelim: fn,
|
|
3268
|
+
delRDelim: pn,
|
|
3269
|
+
url: J(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol", Cn).replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),
|
|
3270
3270
|
_backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,
|
|
3271
3271
|
del: /^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,
|
|
3272
|
-
text: J(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",
|
|
3273
|
-
}, En = {
|
|
3274
|
-
...Tn,
|
|
3275
|
-
br: J(qt).replace("{2,}", "*").getRegex(),
|
|
3276
|
-
text: J(Tn.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex()
|
|
3272
|
+
text: J(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol", Cn).getRegex()
|
|
3277
3273
|
}, Dn = {
|
|
3278
|
-
|
|
3279
|
-
|
|
3280
|
-
|
|
3274
|
+
...En,
|
|
3275
|
+
br: J(Jt).replace("{2,}", "*").getRegex(),
|
|
3276
|
+
text: J(En.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex()
|
|
3281
3277
|
}, On = {
|
|
3282
|
-
normal:
|
|
3283
|
-
gfm:
|
|
3284
|
-
|
|
3285
|
-
pedantic: wn
|
|
3278
|
+
normal: Ht,
|
|
3279
|
+
gfm: Wt,
|
|
3280
|
+
pedantic: Gt
|
|
3286
3281
|
}, kn = {
|
|
3282
|
+
normal: wn,
|
|
3283
|
+
gfm: En,
|
|
3284
|
+
breaks: Dn,
|
|
3285
|
+
pedantic: Tn
|
|
3286
|
+
}, An = {
|
|
3287
3287
|
"&": "&",
|
|
3288
3288
|
"<": "<",
|
|
3289
3289
|
">": ">",
|
|
3290
3290
|
"\"": """,
|
|
3291
3291
|
"'": "'"
|
|
3292
|
-
},
|
|
3293
|
-
function
|
|
3292
|
+
}, jn = (e) => An[e];
|
|
3293
|
+
function Mn(e, t) {
|
|
3294
3294
|
if (t) {
|
|
3295
|
-
if (Y.escapeTest.test(e)) return e.replace(Y.escapeReplace,
|
|
3296
|
-
} else if (Y.escapeTestNoEncode.test(e)) return e.replace(Y.escapeReplaceNoEncode,
|
|
3295
|
+
if (Y.escapeTest.test(e)) return e.replace(Y.escapeReplace, jn);
|
|
3296
|
+
} else if (Y.escapeTestNoEncode.test(e)) return e.replace(Y.escapeReplaceNoEncode, jn);
|
|
3297
3297
|
return e;
|
|
3298
3298
|
}
|
|
3299
|
-
function
|
|
3299
|
+
function Nn(e) {
|
|
3300
3300
|
try {
|
|
3301
3301
|
e = encodeURI(e).replace(Y.percentDecode, "%");
|
|
3302
3302
|
} catch {
|
|
@@ -3304,7 +3304,7 @@ function Mn(e) {
|
|
|
3304
3304
|
}
|
|
3305
3305
|
return e;
|
|
3306
3306
|
}
|
|
3307
|
-
function
|
|
3307
|
+
function Pn(e, t) {
|
|
3308
3308
|
let n = e.replace(Y.findPipe, (e, t, n) => {
|
|
3309
3309
|
let r = !1, i = t;
|
|
3310
3310
|
for (; --i >= 0 && n[i] === "\\";) r = !r;
|
|
@@ -3317,7 +3317,7 @@ function Nn(e, t) {
|
|
|
3317
3317
|
for (; r < n.length; r++) n[r] = n[r].trim().replace(Y.slashPipe, "|");
|
|
3318
3318
|
return n;
|
|
3319
3319
|
}
|
|
3320
|
-
function
|
|
3320
|
+
function Fn(e, t, n) {
|
|
3321
3321
|
let r = e.length;
|
|
3322
3322
|
if (r === 0) return "";
|
|
3323
3323
|
let i = 0;
|
|
@@ -3329,7 +3329,7 @@ function Pn(e, t, n) {
|
|
|
3329
3329
|
}
|
|
3330
3330
|
return e.slice(0, r - i);
|
|
3331
3331
|
}
|
|
3332
|
-
function
|
|
3332
|
+
function In(e, t) {
|
|
3333
3333
|
if (e.indexOf(t[1]) === -1) return -1;
|
|
3334
3334
|
let n = 0;
|
|
3335
3335
|
for (let r = 0; r < e.length; r++) if (e[r] === "\\") r++;
|
|
@@ -3337,7 +3337,7 @@ function Fn(e, t) {
|
|
|
3337
3337
|
else if (e[r] === t[1] && (n--, n < 0)) return r;
|
|
3338
3338
|
return n > 0 ? -2 : -1;
|
|
3339
3339
|
}
|
|
3340
|
-
function
|
|
3340
|
+
function Ln(e, t = 0) {
|
|
3341
3341
|
let n = t, r = "";
|
|
3342
3342
|
for (let t of e) if (t === " ") {
|
|
3343
3343
|
let e = 4 - n % 4;
|
|
@@ -3345,7 +3345,7 @@ function In(e, t = 0) {
|
|
|
3345
3345
|
} else r += t, n++;
|
|
3346
3346
|
return r;
|
|
3347
3347
|
}
|
|
3348
|
-
function
|
|
3348
|
+
function Rn(e, t, n, r, i) {
|
|
3349
3349
|
let a = t.href, o = t.title || null, s = e[1].replace(i.other.outputLinkReplace, "$1");
|
|
3350
3350
|
r.state.inLink = !0;
|
|
3351
3351
|
let c = {
|
|
@@ -3358,7 +3358,7 @@ function Ln(e, t, n, r, i) {
|
|
|
3358
3358
|
};
|
|
3359
3359
|
return r.state.inLink = !1, c;
|
|
3360
3360
|
}
|
|
3361
|
-
function
|
|
3361
|
+
function zn(e, t, n) {
|
|
3362
3362
|
let r = e.match(n.other.indentCodeCompensation);
|
|
3363
3363
|
if (r === null) return t;
|
|
3364
3364
|
let i = r[1];
|
|
@@ -3369,12 +3369,12 @@ function Rn(e, t, n) {
|
|
|
3369
3369
|
return r.length >= i.length ? e.slice(i.length) : e;
|
|
3370
3370
|
}).join("\n");
|
|
3371
3371
|
}
|
|
3372
|
-
var
|
|
3372
|
+
var Bn = class {
|
|
3373
3373
|
options;
|
|
3374
3374
|
rules;
|
|
3375
3375
|
lexer;
|
|
3376
3376
|
constructor(e) {
|
|
3377
|
-
this.options = e ||
|
|
3377
|
+
this.options = e || St;
|
|
3378
3378
|
}
|
|
3379
3379
|
space(e) {
|
|
3380
3380
|
let t = this.rules.block.newline.exec(e);
|
|
@@ -3391,14 +3391,14 @@ var zn = class {
|
|
|
3391
3391
|
type: "code",
|
|
3392
3392
|
raw: t[0],
|
|
3393
3393
|
codeBlockStyle: "indented",
|
|
3394
|
-
text: this.options.pedantic ? e :
|
|
3394
|
+
text: this.options.pedantic ? e : Fn(e, "\n")
|
|
3395
3395
|
};
|
|
3396
3396
|
}
|
|
3397
3397
|
}
|
|
3398
3398
|
fences(e) {
|
|
3399
3399
|
let t = this.rules.block.fences.exec(e);
|
|
3400
3400
|
if (t) {
|
|
3401
|
-
let e = t[0], n =
|
|
3401
|
+
let e = t[0], n = zn(e, t[3] || "", this.rules);
|
|
3402
3402
|
return {
|
|
3403
3403
|
type: "code",
|
|
3404
3404
|
raw: e,
|
|
@@ -3412,7 +3412,7 @@ var zn = class {
|
|
|
3412
3412
|
if (t) {
|
|
3413
3413
|
let e = t[2].trim();
|
|
3414
3414
|
if (this.rules.other.endingHash.test(e)) {
|
|
3415
|
-
let t =
|
|
3415
|
+
let t = Fn(e, "#");
|
|
3416
3416
|
(this.options.pedantic || !t || this.rules.other.endingSpaceChar.test(t)) && (e = t.trim());
|
|
3417
3417
|
}
|
|
3418
3418
|
return {
|
|
@@ -3428,13 +3428,13 @@ var zn = class {
|
|
|
3428
3428
|
let t = this.rules.block.hr.exec(e);
|
|
3429
3429
|
if (t) return {
|
|
3430
3430
|
type: "hr",
|
|
3431
|
-
raw:
|
|
3431
|
+
raw: Fn(t[0], "\n")
|
|
3432
3432
|
};
|
|
3433
3433
|
}
|
|
3434
3434
|
blockquote(e) {
|
|
3435
3435
|
let t = this.rules.block.blockquote.exec(e);
|
|
3436
3436
|
if (t) {
|
|
3437
|
-
let e =
|
|
3437
|
+
let e = Fn(t[0], "\n").split("\n"), n = "", r = "", i = [];
|
|
3438
3438
|
for (; e.length > 0;) {
|
|
3439
3439
|
let t = !1, a = [], o = 0;
|
|
3440
3440
|
for (; o < e.length; o++) if (this.rules.other.blockquoteStart.test(e[o])) a.push(e[o]), t = !0;
|
|
@@ -3485,7 +3485,7 @@ ${c}` : c;
|
|
|
3485
3485
|
let n = !1, r = "", s = "";
|
|
3486
3486
|
if (!(t = a.exec(e)) || this.rules.block.hr.test(e)) break;
|
|
3487
3487
|
r = t[0], e = e.substring(r.length);
|
|
3488
|
-
let c =
|
|
3488
|
+
let c = Ln(t[2].split("\n", 1)[0], t[1].length), l = e.split("\n", 1)[0], u = !c.trim(), d = 0;
|
|
3489
3489
|
if (this.options.pedantic ? (d = 2, s = c.trimStart()) : u ? d = t[1].length + 1 : (d = c.search(this.rules.other.nonSpaceChar), d = d > 4 ? 1 : d, s = c.slice(d), d += t[1].length), u && this.rules.other.blankLine.test(l) && (r += l + "\n", e = e.substring(l.length + 1), n = !0), !n) {
|
|
3490
3490
|
let t = this.rules.other.nextBulletRegex(d), n = this.rules.other.hrRegex(d), i = this.rules.other.fencesBeginRegex(d), a = this.rules.other.headingBeginRegex(d), o = this.rules.other.htmlBeginRegex(d), f = this.rules.other.blockquoteBeginRegex(d);
|
|
3491
3491
|
for (; e;) {
|
|
@@ -3574,7 +3574,7 @@ ${c}` : c;
|
|
|
3574
3574
|
table(e) {
|
|
3575
3575
|
let t = this.rules.block.table.exec(e);
|
|
3576
3576
|
if (!t || !this.rules.other.tableDelimiter.test(t[2])) return;
|
|
3577
|
-
let n =
|
|
3577
|
+
let n = Pn(t[1]), r = t[2].replace(this.rules.other.tableAlignChars, "").split("|"), i = t[3]?.trim() ? t[3].replace(this.rules.other.tableRowBlankLine, "").split("\n") : [], a = {
|
|
3578
3578
|
type: "table",
|
|
3579
3579
|
raw: t[0],
|
|
3580
3580
|
header: [],
|
|
@@ -3589,7 +3589,7 @@ ${c}` : c;
|
|
|
3589
3589
|
header: !0,
|
|
3590
3590
|
align: a.align[e]
|
|
3591
3591
|
});
|
|
3592
|
-
for (let e of i) a.rows.push(
|
|
3592
|
+
for (let e of i) a.rows.push(Pn(e, a.header.length).map((e, t) => ({
|
|
3593
3593
|
text: e,
|
|
3594
3594
|
tokens: this.lexer.inline(e),
|
|
3595
3595
|
header: !1,
|
|
@@ -3657,10 +3657,10 @@ ${c}` : c;
|
|
|
3657
3657
|
let e = t[2].trim();
|
|
3658
3658
|
if (!this.options.pedantic && this.rules.other.startAngleBracket.test(e)) {
|
|
3659
3659
|
if (!this.rules.other.endAngleBracket.test(e)) return;
|
|
3660
|
-
let t =
|
|
3660
|
+
let t = Fn(e.slice(0, -1), "\\");
|
|
3661
3661
|
if ((e.length - t.length) % 2 == 0) return;
|
|
3662
3662
|
} else {
|
|
3663
|
-
let e =
|
|
3663
|
+
let e = In(t[2], "()");
|
|
3664
3664
|
if (e === -2) return;
|
|
3665
3665
|
if (e > -1) {
|
|
3666
3666
|
let n = (t[0].indexOf("!") === 0 ? 5 : 4) + t[1].length + e;
|
|
@@ -3672,7 +3672,7 @@ ${c}` : c;
|
|
|
3672
3672
|
let e = this.rules.other.pedanticHrefTitle.exec(n);
|
|
3673
3673
|
e && (n = e[1], r = e[3]);
|
|
3674
3674
|
} else r = t[3] ? t[3].slice(1, -1) : "";
|
|
3675
|
-
return n = n.trim(), this.rules.other.startAngleBracket.test(n) && (n = this.options.pedantic && !this.rules.other.endAngleBracket.test(e) ? n.slice(1) : n.slice(1, -1)),
|
|
3675
|
+
return n = n.trim(), this.rules.other.startAngleBracket.test(n) && (n = this.options.pedantic && !this.rules.other.endAngleBracket.test(e) ? n.slice(1) : n.slice(1, -1)), Rn(t, {
|
|
3676
3676
|
href: n && n.replace(this.rules.inline.anyPunctuation, "$1"),
|
|
3677
3677
|
title: r && r.replace(this.rules.inline.anyPunctuation, "$1")
|
|
3678
3678
|
}, t[0], this.lexer, this.rules);
|
|
@@ -3690,7 +3690,7 @@ ${c}` : c;
|
|
|
3690
3690
|
text: e
|
|
3691
3691
|
};
|
|
3692
3692
|
}
|
|
3693
|
-
return
|
|
3693
|
+
return Rn(n, e, n[0], this.lexer, this.rules);
|
|
3694
3694
|
}
|
|
3695
3695
|
}
|
|
3696
3696
|
emStrong(e, t, n = "") {
|
|
@@ -3823,29 +3823,29 @@ ${c}` : c;
|
|
|
3823
3823
|
};
|
|
3824
3824
|
}
|
|
3825
3825
|
}
|
|
3826
|
-
},
|
|
3826
|
+
}, Vn = class e {
|
|
3827
3827
|
tokens;
|
|
3828
3828
|
options;
|
|
3829
3829
|
state;
|
|
3830
3830
|
inlineQueue;
|
|
3831
3831
|
tokenizer;
|
|
3832
3832
|
constructor(e) {
|
|
3833
|
-
this.tokens = [], this.tokens.links = Object.create(null), this.options = e ||
|
|
3833
|
+
this.tokens = [], this.tokens.links = Object.create(null), this.options = e || St, this.options.tokenizer = this.options.tokenizer || new Bn(), this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = {
|
|
3834
3834
|
inLink: !1,
|
|
3835
3835
|
inRawBlock: !1,
|
|
3836
3836
|
top: !0
|
|
3837
3837
|
};
|
|
3838
3838
|
let t = {
|
|
3839
3839
|
other: Y,
|
|
3840
|
-
block:
|
|
3841
|
-
inline:
|
|
3840
|
+
block: On.normal,
|
|
3841
|
+
inline: kn.normal
|
|
3842
3842
|
};
|
|
3843
|
-
this.options.pedantic ? (t.block =
|
|
3843
|
+
this.options.pedantic ? (t.block = On.pedantic, t.inline = kn.pedantic) : this.options.gfm && (t.block = On.gfm, t.inline = this.options.breaks ? kn.breaks : kn.gfm), this.tokenizer.rules = t;
|
|
3844
3844
|
}
|
|
3845
3845
|
static get rules() {
|
|
3846
3846
|
return {
|
|
3847
|
-
block:
|
|
3848
|
-
inline:
|
|
3847
|
+
block: On,
|
|
3848
|
+
inline: kn
|
|
3849
3849
|
};
|
|
3850
3850
|
}
|
|
3851
3851
|
static lex(t, n) {
|
|
@@ -4036,18 +4036,18 @@ ${c}` : c;
|
|
|
4036
4036
|
}
|
|
4037
4037
|
return t;
|
|
4038
4038
|
}
|
|
4039
|
-
},
|
|
4039
|
+
}, Hn = class {
|
|
4040
4040
|
options;
|
|
4041
4041
|
parser;
|
|
4042
4042
|
constructor(e) {
|
|
4043
|
-
this.options = e ||
|
|
4043
|
+
this.options = e || St;
|
|
4044
4044
|
}
|
|
4045
4045
|
space(e) {
|
|
4046
4046
|
return "";
|
|
4047
4047
|
}
|
|
4048
4048
|
code({ text: e, lang: t, escaped: n }) {
|
|
4049
4049
|
let r = (t || "").match(Y.notSpaceStart)?.[0], i = e.replace(Y.endingNewline, "") + "\n";
|
|
4050
|
-
return r ? "<pre><code class=\"language-" +
|
|
4050
|
+
return r ? "<pre><code class=\"language-" + Mn(r) + "\">" + (n ? i : Mn(i, !0)) + "</code></pre>\n" : "<pre><code>" + (n ? i : Mn(i, !0)) + "</code></pre>\n";
|
|
4051
4051
|
}
|
|
4052
4052
|
blockquote({ tokens: e }) {
|
|
4053
4053
|
return `<blockquote>
|
|
@@ -4117,7 +4117,7 @@ ${e}</tr>
|
|
|
4117
4117
|
return `<em>${this.parser.parseInline(e)}</em>`;
|
|
4118
4118
|
}
|
|
4119
4119
|
codespan({ text: e }) {
|
|
4120
|
-
return `<code>${
|
|
4120
|
+
return `<code>${Mn(e, !0)}</code>`;
|
|
4121
4121
|
}
|
|
4122
4122
|
br(e) {
|
|
4123
4123
|
return "<br>";
|
|
@@ -4126,24 +4126,24 @@ ${e}</tr>
|
|
|
4126
4126
|
return `<del>${this.parser.parseInline(e)}</del>`;
|
|
4127
4127
|
}
|
|
4128
4128
|
link({ href: e, title: t, tokens: n }) {
|
|
4129
|
-
let r = this.parser.parseInline(n), i =
|
|
4129
|
+
let r = this.parser.parseInline(n), i = Nn(e);
|
|
4130
4130
|
if (i === null) return r;
|
|
4131
4131
|
e = i;
|
|
4132
4132
|
let a = "<a href=\"" + e + "\"";
|
|
4133
|
-
return t && (a += " title=\"" +
|
|
4133
|
+
return t && (a += " title=\"" + Mn(t) + "\""), a += ">" + r + "</a>", a;
|
|
4134
4134
|
}
|
|
4135
4135
|
image({ href: e, title: t, text: n, tokens: r }) {
|
|
4136
4136
|
r && (n = this.parser.parseInline(r, this.parser.textRenderer));
|
|
4137
|
-
let i =
|
|
4138
|
-
if (i === null) return
|
|
4137
|
+
let i = Nn(e);
|
|
4138
|
+
if (i === null) return Mn(n);
|
|
4139
4139
|
e = i;
|
|
4140
|
-
let a = `<img src="${e}" alt="${
|
|
4141
|
-
return t && (a += ` title="${
|
|
4140
|
+
let a = `<img src="${e}" alt="${Mn(n)}"`;
|
|
4141
|
+
return t && (a += ` title="${Mn(t)}"`), a += ">", a;
|
|
4142
4142
|
}
|
|
4143
4143
|
text(e) {
|
|
4144
|
-
return "tokens" in e && e.tokens ? this.parser.parseInline(e.tokens) : "escaped" in e && e.escaped ? e.text :
|
|
4144
|
+
return "tokens" in e && e.tokens ? this.parser.parseInline(e.tokens) : "escaped" in e && e.escaped ? e.text : Mn(e.text);
|
|
4145
4145
|
}
|
|
4146
|
-
},
|
|
4146
|
+
}, Un = class {
|
|
4147
4147
|
strong({ text: e }) {
|
|
4148
4148
|
return e;
|
|
4149
4149
|
}
|
|
@@ -4174,12 +4174,12 @@ ${e}</tr>
|
|
|
4174
4174
|
checkbox({ raw: e }) {
|
|
4175
4175
|
return e;
|
|
4176
4176
|
}
|
|
4177
|
-
},
|
|
4177
|
+
}, Wn = class e {
|
|
4178
4178
|
options;
|
|
4179
4179
|
renderer;
|
|
4180
4180
|
textRenderer;
|
|
4181
4181
|
constructor(e) {
|
|
4182
|
-
this.options = e ||
|
|
4182
|
+
this.options = e || St, this.options.renderer = this.options.renderer || new Hn(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new Un();
|
|
4183
4183
|
}
|
|
4184
4184
|
static parse(t, n) {
|
|
4185
4185
|
return new e(n).parse(t);
|
|
@@ -4325,11 +4325,11 @@ ${e}</tr>
|
|
|
4325
4325
|
}
|
|
4326
4326
|
return n;
|
|
4327
4327
|
}
|
|
4328
|
-
},
|
|
4328
|
+
}, Gn = class {
|
|
4329
4329
|
options;
|
|
4330
4330
|
block;
|
|
4331
4331
|
constructor(e) {
|
|
4332
|
-
this.options = e ||
|
|
4332
|
+
this.options = e || St;
|
|
4333
4333
|
}
|
|
4334
4334
|
static passThroughHooks = /* @__PURE__ */ new Set([
|
|
4335
4335
|
"preprocess",
|
|
@@ -4355,22 +4355,22 @@ ${e}</tr>
|
|
|
4355
4355
|
return e;
|
|
4356
4356
|
}
|
|
4357
4357
|
provideLexer() {
|
|
4358
|
-
return this.block ?
|
|
4358
|
+
return this.block ? Vn.lex : Vn.lexInline;
|
|
4359
4359
|
}
|
|
4360
4360
|
provideParser() {
|
|
4361
|
-
return this.block ?
|
|
4361
|
+
return this.block ? Wn.parse : Wn.parseInline;
|
|
4362
4362
|
}
|
|
4363
|
-
},
|
|
4364
|
-
defaults =
|
|
4363
|
+
}, Kn = new class {
|
|
4364
|
+
defaults = xt();
|
|
4365
4365
|
options = this.setOptions;
|
|
4366
4366
|
parse = this.parseMarkdown(!0);
|
|
4367
4367
|
parseInline = this.parseMarkdown(!1);
|
|
4368
|
-
Parser =
|
|
4369
|
-
Renderer =
|
|
4370
|
-
TextRenderer =
|
|
4371
|
-
Lexer =
|
|
4372
|
-
Tokenizer =
|
|
4373
|
-
Hooks =
|
|
4368
|
+
Parser = Wn;
|
|
4369
|
+
Renderer = Hn;
|
|
4370
|
+
TextRenderer = Un;
|
|
4371
|
+
Lexer = Vn;
|
|
4372
|
+
Tokenizer = Bn;
|
|
4373
|
+
Hooks = Gn;
|
|
4374
4374
|
constructor(...e) {
|
|
4375
4375
|
this.use(...e);
|
|
4376
4376
|
}
|
|
@@ -4421,7 +4421,7 @@ ${e}</tr>
|
|
|
4421
4421
|
}
|
|
4422
4422
|
"childTokens" in e && e.childTokens && (t.childTokens[e.name] = e.childTokens);
|
|
4423
4423
|
}), n.extensions = t), e.renderer) {
|
|
4424
|
-
let t = this.defaults.renderer || new
|
|
4424
|
+
let t = this.defaults.renderer || new Hn(this.defaults);
|
|
4425
4425
|
for (let n in e.renderer) {
|
|
4426
4426
|
if (!(n in t)) throw Error(`renderer '${n}' does not exist`);
|
|
4427
4427
|
if (["options", "parser"].includes(n)) continue;
|
|
@@ -4434,7 +4434,7 @@ ${e}</tr>
|
|
|
4434
4434
|
n.renderer = t;
|
|
4435
4435
|
}
|
|
4436
4436
|
if (e.tokenizer) {
|
|
4437
|
-
let t = this.defaults.tokenizer || new
|
|
4437
|
+
let t = this.defaults.tokenizer || new Bn(this.defaults);
|
|
4438
4438
|
for (let n in e.tokenizer) {
|
|
4439
4439
|
if (!(n in t)) throw Error(`tokenizer '${n}' does not exist`);
|
|
4440
4440
|
if ([
|
|
@@ -4451,13 +4451,13 @@ ${e}</tr>
|
|
|
4451
4451
|
n.tokenizer = t;
|
|
4452
4452
|
}
|
|
4453
4453
|
if (e.hooks) {
|
|
4454
|
-
let t = this.defaults.hooks || new
|
|
4454
|
+
let t = this.defaults.hooks || new Gn();
|
|
4455
4455
|
for (let n in e.hooks) {
|
|
4456
4456
|
if (!(n in t)) throw Error(`hook '${n}' does not exist`);
|
|
4457
4457
|
if (["options", "block"].includes(n)) continue;
|
|
4458
4458
|
let r = n, i = e.hooks[r], a = t[r];
|
|
4459
|
-
t[r] =
|
|
4460
|
-
if (this.defaults.async &&
|
|
4459
|
+
t[r] = Gn.passThroughHooks.has(n) ? (e) => {
|
|
4460
|
+
if (this.defaults.async && Gn.passThroughHooksRespectAsync.has(n)) return (async () => {
|
|
4461
4461
|
let n = await i.call(t, e);
|
|
4462
4462
|
return a.call(t, n);
|
|
4463
4463
|
})();
|
|
@@ -4494,10 +4494,10 @@ ${e}</tr>
|
|
|
4494
4494
|
}, this;
|
|
4495
4495
|
}
|
|
4496
4496
|
lexer(e, t) {
|
|
4497
|
-
return
|
|
4497
|
+
return Vn.lex(e, t ?? this.defaults);
|
|
4498
4498
|
}
|
|
4499
4499
|
parser(e, t) {
|
|
4500
|
-
return
|
|
4500
|
+
return Wn.parse(e, t ?? this.defaults);
|
|
4501
4501
|
}
|
|
4502
4502
|
parseMarkdown(e) {
|
|
4503
4503
|
return (t, n) => {
|
|
@@ -4509,16 +4509,16 @@ ${e}</tr>
|
|
|
4509
4509
|
if (typeof t > "u" || t === null) return a(/* @__PURE__ */ Error("marked(): input parameter is undefined or null"));
|
|
4510
4510
|
if (typeof t != "string") return a(/* @__PURE__ */ Error("marked(): input parameter is of type " + Object.prototype.toString.call(t) + ", string expected"));
|
|
4511
4511
|
if (i.hooks && (i.hooks.options = i, i.hooks.block = e), i.async) return (async () => {
|
|
4512
|
-
let n = i.hooks ? await i.hooks.preprocess(t) : t, r = await (i.hooks ? await i.hooks.provideLexer() : e ?
|
|
4512
|
+
let n = i.hooks ? await i.hooks.preprocess(t) : t, r = await (i.hooks ? await i.hooks.provideLexer() : e ? Vn.lex : Vn.lexInline)(n, i), a = i.hooks ? await i.hooks.processAllTokens(r) : r;
|
|
4513
4513
|
i.walkTokens && await Promise.all(this.walkTokens(a, i.walkTokens));
|
|
4514
|
-
let o = await (i.hooks ? await i.hooks.provideParser() : e ?
|
|
4514
|
+
let o = await (i.hooks ? await i.hooks.provideParser() : e ? Wn.parse : Wn.parseInline)(a, i);
|
|
4515
4515
|
return i.hooks ? await i.hooks.postprocess(o) : o;
|
|
4516
4516
|
})().catch(a);
|
|
4517
4517
|
try {
|
|
4518
4518
|
i.hooks && (t = i.hooks.preprocess(t));
|
|
4519
|
-
let n = (i.hooks ? i.hooks.provideLexer() : e ?
|
|
4519
|
+
let n = (i.hooks ? i.hooks.provideLexer() : e ? Vn.lex : Vn.lexInline)(t, i);
|
|
4520
4520
|
i.hooks && (n = i.hooks.processAllTokens(n)), i.walkTokens && this.walkTokens(n, i.walkTokens);
|
|
4521
|
-
let r = (i.hooks ? i.hooks.provideParser() : e ?
|
|
4521
|
+
let r = (i.hooks ? i.hooks.provideParser() : e ? Wn.parse : Wn.parseInline)(n, i);
|
|
4522
4522
|
return i.hooks && (r = i.hooks.postprocess(r)), r;
|
|
4523
4523
|
} catch (e) {
|
|
4524
4524
|
return a(e);
|
|
@@ -4528,7 +4528,7 @@ ${e}</tr>
|
|
|
4528
4528
|
onError(e, t) {
|
|
4529
4529
|
return (n) => {
|
|
4530
4530
|
if (n.message += "\nPlease report this to https://github.com/markedjs/marked.", e) {
|
|
4531
|
-
let e = "<p>An error occurred:</p><pre>" +
|
|
4531
|
+
let e = "<p>An error occurred:</p><pre>" + Mn(n.message + "", !0) + "</pre>";
|
|
4532
4532
|
return t ? Promise.resolve(e) : e;
|
|
4533
4533
|
}
|
|
4534
4534
|
if (t) return Promise.reject(n);
|
|
@@ -4536,40 +4536,40 @@ ${e}</tr>
|
|
|
4536
4536
|
};
|
|
4537
4537
|
}
|
|
4538
4538
|
}();
|
|
4539
|
-
function
|
|
4540
|
-
return
|
|
4539
|
+
function Z(e, t) {
|
|
4540
|
+
return Kn.parse(e, t);
|
|
4541
4541
|
}
|
|
4542
|
-
|
|
4543
|
-
return
|
|
4544
|
-
},
|
|
4545
|
-
return
|
|
4546
|
-
},
|
|
4547
|
-
return
|
|
4548
|
-
},
|
|
4549
|
-
function
|
|
4542
|
+
Z.options = Z.setOptions = function(e) {
|
|
4543
|
+
return Kn.setOptions(e), Z.defaults = Kn.defaults, Ct(Z.defaults), Z;
|
|
4544
|
+
}, Z.getDefaults = xt, Z.defaults = St, Z.use = function(...e) {
|
|
4545
|
+
return Kn.use(...e), Z.defaults = Kn.defaults, Ct(Z.defaults), Z;
|
|
4546
|
+
}, Z.walkTokens = function(e, t) {
|
|
4547
|
+
return Kn.walkTokens(e, t);
|
|
4548
|
+
}, Z.parseInline = Kn.parseInline, Z.Parser = Wn, Z.parser = Wn.parse, Z.Renderer = Hn, Z.TextRenderer = Un, Z.Lexer = Vn, Z.lexer = Vn.lex, Z.Tokenizer = Bn, Z.Hooks = Gn, Z.parse = Z, Z.options, Z.setOptions, Z.use, Z.walkTokens, Z.parseInline, Wn.parse, Vn.lex;
|
|
4549
|
+
function qn(...e) {
|
|
4550
4550
|
return e.filter(Boolean).join(" ");
|
|
4551
4551
|
}
|
|
4552
|
-
function
|
|
4552
|
+
function Jn(e, t) {
|
|
4553
4553
|
return e ? t ? {
|
|
4554
4554
|
...e,
|
|
4555
4555
|
...t
|
|
4556
4556
|
} : e : t;
|
|
4557
4557
|
}
|
|
4558
|
-
function
|
|
4559
|
-
let s =
|
|
4558
|
+
function Yn({ animation: e, index: t, as: n, asChild: r, className: i, style: a, children: o }) {
|
|
4559
|
+
let s = qn("fragment", e, i);
|
|
4560
4560
|
if (r) {
|
|
4561
4561
|
let e;
|
|
4562
4562
|
try {
|
|
4563
|
-
e =
|
|
4563
|
+
e = N.Children.only(o);
|
|
4564
4564
|
} catch {
|
|
4565
4565
|
throw Error("Fragment with asChild expects exactly one React element child.");
|
|
4566
4566
|
}
|
|
4567
|
-
if (!(0,
|
|
4567
|
+
if (!(0, N.isValidElement)(e) || e.type === N.Fragment) throw Error("Fragment with asChild expects exactly one non-Fragment React element child.");
|
|
4568
4568
|
let n = {
|
|
4569
|
-
className:
|
|
4570
|
-
style:
|
|
4569
|
+
className: qn(e.props.className, s),
|
|
4570
|
+
style: Jn(e.props.style, a)
|
|
4571
4571
|
};
|
|
4572
|
-
return t !== void 0 && (n["data-fragment-index"] = t), (0,
|
|
4572
|
+
return t !== void 0 && (n["data-fragment-index"] = t), (0, N.cloneElement)(e, n);
|
|
4573
4573
|
}
|
|
4574
4574
|
return /* @__PURE__ */ (0, G.jsx)(n ?? "span", {
|
|
4575
4575
|
className: s,
|
|
@@ -4580,24 +4580,26 @@ function Jn({ animation: e, index: t, as: n, asChild: r, className: i, style: a,
|
|
|
4580
4580
|
}
|
|
4581
4581
|
//#endregion
|
|
4582
4582
|
//#region src/components/slides/slide-scroll-hint.tsx
|
|
4583
|
-
var
|
|
4584
|
-
function
|
|
4583
|
+
var Xn = 8, Zn = 1;
|
|
4584
|
+
function Qn(e) {
|
|
4585
4585
|
let { scrollHeight: t, clientHeight: n, scrollTop: r } = e;
|
|
4586
|
-
return t > n +
|
|
4586
|
+
return t > n + Zn && r <= Xn;
|
|
4587
4587
|
}
|
|
4588
|
-
function
|
|
4588
|
+
function $n(e) {
|
|
4589
4589
|
let t = e.querySelector(".fragment:not(.visible)");
|
|
4590
|
-
|
|
4590
|
+
if (!t) return e.scrollHeight;
|
|
4591
|
+
let n = e.getBoundingClientRect(), r = e.offsetHeight > 0 ? n.height / e.offsetHeight : 1;
|
|
4592
|
+
return (t.getBoundingClientRect().top - n.top) / (r || 1) + e.scrollTop;
|
|
4591
4593
|
}
|
|
4592
|
-
function
|
|
4593
|
-
let n = (0,
|
|
4594
|
+
function er(e, t) {
|
|
4595
|
+
let n = (0, ie.c)(4), [r, i] = (0, N.useState)(!1), a, o;
|
|
4594
4596
|
return n[0] !== t || n[1] !== e ? (a = () => {
|
|
4595
4597
|
let n = e.current, r = t.current;
|
|
4596
4598
|
if (!n || !r) return;
|
|
4597
4599
|
let a = 0, o = () => {
|
|
4598
4600
|
cancelAnimationFrame(a), a = requestAnimationFrame(() => {
|
|
4599
|
-
i(
|
|
4600
|
-
scrollHeight:
|
|
4601
|
+
i(Qn({
|
|
4602
|
+
scrollHeight: $n(n),
|
|
4601
4603
|
clientHeight: n.clientHeight,
|
|
4602
4604
|
scrollTop: n.scrollTop
|
|
4603
4605
|
}));
|
|
@@ -4614,17 +4616,17 @@ function $n(e, t) {
|
|
|
4614
4616
|
}), n.addEventListener("scroll", o, { passive: !0 }), () => {
|
|
4615
4617
|
cancelAnimationFrame(a), s.disconnect(), c?.disconnect(), n.removeEventListener("scroll", o);
|
|
4616
4618
|
};
|
|
4617
|
-
}, o = [e, t], n[0] = t, n[1] = e, n[2] = a, n[3] = o) : (a = n[2], o = n[3]), (0,
|
|
4619
|
+
}, o = [e, t], n[0] = t, n[1] = e, n[2] = a, n[3] = o) : (a = n[2], o = n[3]), (0, N.useEffect)(a, o), r;
|
|
4618
4620
|
}
|
|
4619
|
-
var
|
|
4620
|
-
let t = (0,
|
|
4621
|
-
t[0] ===
|
|
4621
|
+
var tr = (e) => {
|
|
4622
|
+
let t = (0, ie.c)(6), { className: r } = e, i;
|
|
4623
|
+
t[0] === r ? i = t[1] : (i = n("pointer-events-none absolute inset-x-0 bottom-0 z-10 flex flex-col items-center", "animate-in fade-in-0 duration-200", r), t[0] = r, t[1] = i);
|
|
4622
4624
|
let a;
|
|
4623
4625
|
t[2] === Symbol.for("react.memo_cache_sentinel") ? (a = /* @__PURE__ */ (0, G.jsx)("div", { className: "h-16 w-full bg-linear-to-t from-background via-background/80 to-transparent" }), t[2] = a) : a = t[2];
|
|
4624
4626
|
let o;
|
|
4625
4627
|
t[3] === Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */ (0, G.jsxs)("div", {
|
|
4626
4628
|
className: "absolute bottom-3 flex items-center gap-1 rounded-full border border-border/60 bg-background/90 px-2.5 py-1 text-xs text-muted-foreground shadow-sm backdrop-blur-sm",
|
|
4627
|
-
children: [/* @__PURE__ */ (0, G.jsx)(
|
|
4629
|
+
children: [/* @__PURE__ */ (0, G.jsx)(w, { className: "h-3.5 w-3.5" }), /* @__PURE__ */ (0, G.jsx)("span", { children: "Scroll for more" })]
|
|
4628
4630
|
}), t[3] = o) : o = t[3];
|
|
4629
4631
|
let s;
|
|
4630
4632
|
return t[4] === i ? s = t[5] : (s = /* @__PURE__ */ (0, G.jsxs)("div", {
|
|
@@ -4633,22 +4635,22 @@ var er = (e) => {
|
|
|
4633
4635
|
"aria-hidden": !0,
|
|
4634
4636
|
children: [a, o]
|
|
4635
4637
|
}), t[4] = i, t[5] = s), s;
|
|
4636
|
-
},
|
|
4637
|
-
let t = (0,
|
|
4638
|
-
t[0] === i ? c = t[1] : (c =
|
|
4638
|
+
}, nr = (e) => {
|
|
4639
|
+
let t = (0, ie.c)(10), { children: r, className: i } = e, a = (0, N.useRef)(null), o = (0, N.useRef)(null), s = er(a, o), c;
|
|
4640
|
+
t[0] === i ? c = t[1] : (c = n("relative h-full w-full", i), t[0] = i, t[1] = c);
|
|
4639
4641
|
let l;
|
|
4640
|
-
t[2] ===
|
|
4642
|
+
t[2] === r ? l = t[3] : (l = /* @__PURE__ */ (0, G.jsx)("div", {
|
|
4641
4643
|
ref: a,
|
|
4642
4644
|
className: "h-full w-full overflow-auto",
|
|
4643
4645
|
"data-testid": "slide-scroll-container",
|
|
4644
4646
|
children: /* @__PURE__ */ (0, G.jsx)("div", {
|
|
4645
4647
|
ref: o,
|
|
4646
4648
|
className: "flex w-full min-h-full",
|
|
4647
|
-
children:
|
|
4649
|
+
children: r
|
|
4648
4650
|
})
|
|
4649
|
-
}), t[2] =
|
|
4651
|
+
}), t[2] = r, t[3] = l);
|
|
4650
4652
|
let u;
|
|
4651
|
-
t[4] === s ? u = t[5] : (u = s && /* @__PURE__ */ (0, G.jsx)(
|
|
4653
|
+
t[4] === s ? u = t[5] : (u = s && /* @__PURE__ */ (0, G.jsx)(tr, {}), t[4] = s, t[5] = u);
|
|
4652
4654
|
let d;
|
|
4653
4655
|
return t[6] !== c || t[7] !== l || t[8] !== u ? (d = /* @__PURE__ */ (0, G.jsxs)("div", {
|
|
4654
4656
|
className: c,
|
|
@@ -4657,7 +4659,7 @@ var er = (e) => {
|
|
|
4657
4659
|
};
|
|
4658
4660
|
//#endregion
|
|
4659
4661
|
//#region src/components/slides/compose-slides.ts
|
|
4660
|
-
function
|
|
4662
|
+
function rr({ cells: e, getType: t }) {
|
|
4661
4663
|
let n = [], r = null, i = null, a = () => {
|
|
4662
4664
|
let e = { subslides: [] };
|
|
4663
4665
|
return n.push(e), r = e, i = null, e;
|
|
@@ -4683,7 +4685,7 @@ function nr({ cells: e, getType: t }) {
|
|
|
4683
4685
|
}
|
|
4684
4686
|
return { stacks: n };
|
|
4685
4687
|
}
|
|
4686
|
-
function
|
|
4688
|
+
function ir({ composition: e, cells: t, getId: n }) {
|
|
4687
4689
|
let r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Map();
|
|
4688
4690
|
for (let [e, r] of t.entries()) a.set(n(r), e);
|
|
4689
4691
|
return e.stacks.forEach((e, t) => {
|
|
@@ -4726,27 +4728,27 @@ function rr({ composition: e, cells: t, getId: n }) {
|
|
|
4726
4728
|
targetToCellIndex: i
|
|
4727
4729
|
};
|
|
4728
4730
|
}
|
|
4729
|
-
function
|
|
4731
|
+
function ar(e, t) {
|
|
4730
4732
|
let { h: n, v: r, f: i } = t;
|
|
4731
4733
|
return e.get(`${n},${r},${i}`) ?? e.get(`${n},${r},-1`);
|
|
4732
4734
|
}
|
|
4733
|
-
function
|
|
4735
|
+
function or({ start: e, stop: t, step: n, cells: r, cellToTarget: i, getId: a }) {
|
|
4734
4736
|
for (let o = e; o !== t; o += n) {
|
|
4735
4737
|
let e = i.get(a(r[o]));
|
|
4736
4738
|
if (e) return e;
|
|
4737
4739
|
}
|
|
4738
4740
|
}
|
|
4739
|
-
function
|
|
4741
|
+
function sr({ activeIndex: e, cells: t, cellToTarget: n, getId: r }) {
|
|
4740
4742
|
if (e == null) return;
|
|
4741
4743
|
let i = t[e];
|
|
4742
|
-
return i ? n.get(r(i)) || (
|
|
4744
|
+
return i ? n.get(r(i)) || (or({
|
|
4743
4745
|
start: e - 1,
|
|
4744
4746
|
stop: -1,
|
|
4745
4747
|
step: -1,
|
|
4746
4748
|
cells: t,
|
|
4747
4749
|
cellToTarget: n,
|
|
4748
4750
|
getId: r
|
|
4749
|
-
}) ??
|
|
4751
|
+
}) ?? or({
|
|
4750
4752
|
start: e + 1,
|
|
4751
4753
|
stop: t.length,
|
|
4752
4754
|
step: 1,
|
|
@@ -4755,7 +4757,7 @@ function or({ activeIndex: e, cells: t, cellToTarget: n, getId: r }) {
|
|
|
4755
4757
|
getId: r
|
|
4756
4758
|
})) : void 0;
|
|
4757
4759
|
}
|
|
4758
|
-
function
|
|
4760
|
+
function cr(e, t) {
|
|
4759
4761
|
let n = {
|
|
4760
4762
|
h: t.h,
|
|
4761
4763
|
v: t.v,
|
|
@@ -4765,22 +4767,22 @@ function sr(e, t) {
|
|
|
4765
4767
|
}
|
|
4766
4768
|
//#endregion
|
|
4767
4769
|
//#region src/core/islands/stubs/slide-cell-view.tsx
|
|
4768
|
-
var
|
|
4769
|
-
let t = (0,
|
|
4770
|
-
t[0] !==
|
|
4770
|
+
var lr = (e) => (t.warn("SlideCellView islands stub rendered; this should never happen in a read-only embed."), null), ur = (e) => (t.warn("SlideCellReadOnlyView islands stub rendered; this should never happen in a read-only embed."), null), dr = 300, fr = (e) => {
|
|
4771
|
+
let t = (0, ie.c)(25), { layout: r, setLayout: a, cellId: o, className: s } = e, c = o ? r.cells.get(o)?.speakerNotes ?? "" : "", [l, u] = (0, N.useState)(c), d = (0, N.useRef)(!1), f;
|
|
4772
|
+
t[0] !== r || t[1] !== a ? (f = (e, t) => {
|
|
4771
4773
|
d.current = !1;
|
|
4772
|
-
let
|
|
4773
|
-
if ((
|
|
4774
|
-
let i = new Map(
|
|
4774
|
+
let n = r.cells.get(e);
|
|
4775
|
+
if ((n?.speakerNotes ?? "") === t) return;
|
|
4776
|
+
let i = new Map(r.cells);
|
|
4775
4777
|
i.set(e, {
|
|
4776
|
-
...
|
|
4778
|
+
...n,
|
|
4777
4779
|
speakerNotes: t
|
|
4778
4780
|
}), a({
|
|
4779
|
-
...
|
|
4781
|
+
...r,
|
|
4780
4782
|
cells: i
|
|
4781
4783
|
});
|
|
4782
|
-
}, t[0] =
|
|
4783
|
-
let p =
|
|
4784
|
+
}, t[0] = r, t[1] = a, t[2] = f) : f = t[2];
|
|
4785
|
+
let p = j(f), m = T(p, dr), h = (0, N.useRef)(o), g, _;
|
|
4784
4786
|
t[3] !== o || t[4] !== l || t[5] !== c || t[6] !== m ? (g = () => {
|
|
4785
4787
|
if (h.current !== o) {
|
|
4786
4788
|
m.flush(), d.current = !1, u(c), h.current = o;
|
|
@@ -4792,21 +4794,21 @@ var cr = (e) => (n.warn("SlideCellView islands stub rendered; this should never
|
|
|
4792
4794
|
c,
|
|
4793
4795
|
l,
|
|
4794
4796
|
m
|
|
4795
|
-
], t[3] = o, t[4] = l, t[5] = c, t[6] = m, t[7] = g, t[8] = _) : (g = t[7], _ = t[8]), (0,
|
|
4797
|
+
], t[3] = o, t[4] = l, t[5] = c, t[6] = m, t[7] = g, t[8] = _) : (g = t[7], _ = t[8]), (0, N.useEffect)(g, _);
|
|
4796
4798
|
let v, y;
|
|
4797
4799
|
t[9] === m ? (v = t[10], y = t[11]) : (v = () => () => {
|
|
4798
4800
|
m.flush();
|
|
4799
|
-
}, y = [m], t[9] = m, t[10] = v, t[11] = y), (0,
|
|
4801
|
+
}, y = [m], t[9] = m, t[10] = v, t[11] = y), (0, N.useEffect)(v, y);
|
|
4800
4802
|
let b;
|
|
4801
4803
|
t[12] !== o || t[13] !== m ? (b = (e) => {
|
|
4802
4804
|
u(e), o && (d.current = !0, m(o, e));
|
|
4803
4805
|
}, t[12] = o, t[13] = m, t[14] = b) : b = t[14];
|
|
4804
4806
|
let x = b, S;
|
|
4805
|
-
t[15] === s ? S = t[16] : (S =
|
|
4807
|
+
t[15] === s ? S = t[16] : (S = n("h-full min-h-0 flex flex-col bg-muted/40 dark:bg-muted/20 border-t", s), t[15] = s, t[16] = S);
|
|
4806
4808
|
let C;
|
|
4807
4809
|
t[17] === Symbol.for("react.memo_cache_sentinel") ? (C = /* @__PURE__ */ (0, G.jsxs)("header", {
|
|
4808
4810
|
className: "flex items-center gap-1.5 px-3 h-8 shrink-0 text-xs font-medium uppercase tracking-wide text-muted-foreground",
|
|
4809
|
-
children: [/* @__PURE__ */ (0, G.jsx)(
|
|
4811
|
+
children: [/* @__PURE__ */ (0, G.jsx)(M, { className: "h-3.5 w-3.5" }), /* @__PURE__ */ (0, G.jsx)("span", { children: "Speaker notes" })]
|
|
4810
4812
|
}), t[17] = C) : C = t[17];
|
|
4811
4813
|
let w;
|
|
4812
4814
|
t[18] !== o || t[19] !== l || t[20] !== x ? (w = /* @__PURE__ */ (0, G.jsx)("div", {
|
|
@@ -4816,40 +4818,40 @@ var cr = (e) => (n.warn("SlideCellView islands stub rendered; this should never
|
|
|
4816
4818
|
onChange: (e) => x(e.target.value),
|
|
4817
4819
|
onClick: i.stopPropagation(),
|
|
4818
4820
|
placeholder: "Add notes for this slide. Visible to you in speaker view (press S during presentation).",
|
|
4819
|
-
className:
|
|
4821
|
+
className: n("h-full w-full resize-none rounded-sm border border-input/25 bg-background", "px-3 py-2 text-sm leading-relaxed text-foreground placeholder:text-muted-foreground", "ring-offset-background focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring focus-visible:border-accent"),
|
|
4820
4822
|
"aria-label": "Speaker notes for the current slide"
|
|
4821
4823
|
}) : /* @__PURE__ */ (0, G.jsx)("div", {
|
|
4822
4824
|
className: "h-full flex items-center justify-center text-xs text-muted-foreground",
|
|
4823
4825
|
children: "Select a slide to add notes."
|
|
4824
4826
|
})
|
|
4825
4827
|
}), t[18] = o, t[19] = l, t[20] = x, t[21] = w) : w = t[21];
|
|
4826
|
-
let
|
|
4827
|
-
return t[22] !== S || t[23] !== w ? (
|
|
4828
|
+
let E;
|
|
4829
|
+
return t[22] !== S || t[23] !== w ? (E = /* @__PURE__ */ (0, G.jsxs)("section", {
|
|
4828
4830
|
className: S,
|
|
4829
4831
|
"aria-label": "Speaker notes",
|
|
4830
|
-
onKeyDown:
|
|
4832
|
+
onKeyDown: pr,
|
|
4831
4833
|
children: [C, w]
|
|
4832
|
-
}), t[22] = S, t[23] = w, t[24] =
|
|
4834
|
+
}), t[22] = S, t[23] = w, t[24] = E) : E = t[24], E;
|
|
4833
4835
|
};
|
|
4834
|
-
function
|
|
4836
|
+
function pr(e) {
|
|
4835
4837
|
return e.stopPropagation();
|
|
4836
4838
|
}
|
|
4837
|
-
var
|
|
4838
|
-
let n = e.blocks.map((e) =>
|
|
4839
|
+
var mr = "\n\n---\n\n", hr = (e, t) => e.map((e) => t.get(e.id)?.speakerNotes ?? "").filter((e) => e.trim().length > 0).join("\n\n"), gr = (e, t) => {
|
|
4840
|
+
let n = e.blocks.map((e) => hr(e.cells, t)), r = e.blocks.map((e, t) => e.isFragment ? "" : n[t]).filter((e) => e.length > 0).join("\n\n"), i = /* @__PURE__ */ new Map(), a = [];
|
|
4839
4841
|
return e.blocks.forEach((e, t) => {
|
|
4840
4842
|
if (!e.isFragment) return;
|
|
4841
4843
|
let o = n[t];
|
|
4842
4844
|
o.length > 0 && a.push(o);
|
|
4843
|
-
let s = [r, ...a].filter((e) => e.length > 0).join(
|
|
4845
|
+
let s = [r, ...a].filter((e) => e.length > 0).join(mr);
|
|
4844
4846
|
s.length > 0 && i.set(t, s);
|
|
4845
4847
|
}), {
|
|
4846
4848
|
slideLevel: r,
|
|
4847
4849
|
cumulativeByBlock: i
|
|
4848
4850
|
};
|
|
4849
|
-
};
|
|
4851
|
+
}, _r = k(!1);
|
|
4850
4852
|
//#endregion
|
|
4851
4853
|
//#region ../node_modules/.pnpm/reveal.js@6.0.2/node_modules/reveal.js/dist/plugin/notes.mjs
|
|
4852
|
-
function
|
|
4854
|
+
function vr() {
|
|
4853
4855
|
return {
|
|
4854
4856
|
async: !1,
|
|
4855
4857
|
breaks: !1,
|
|
@@ -4863,28 +4865,28 @@ function gr() {
|
|
|
4863
4865
|
walkTokens: null
|
|
4864
4866
|
};
|
|
4865
4867
|
}
|
|
4866
|
-
var
|
|
4867
|
-
function
|
|
4868
|
-
|
|
4868
|
+
var yr = vr();
|
|
4869
|
+
function br(e) {
|
|
4870
|
+
yr = e;
|
|
4869
4871
|
}
|
|
4870
|
-
var
|
|
4871
|
-
function
|
|
4872
|
+
var xr = { exec: () => null };
|
|
4873
|
+
function Q(e, t = "") {
|
|
4872
4874
|
let n = typeof e == "string" ? e : e.source, r = {
|
|
4873
4875
|
replace: (e, t) => {
|
|
4874
4876
|
let i = typeof t == "string" ? t : t.source;
|
|
4875
|
-
return i = i.replace(
|
|
4877
|
+
return i = i.replace(Cr.caret, "$1"), n = n.replace(e, i), r;
|
|
4876
4878
|
},
|
|
4877
4879
|
getRegex: () => new RegExp(n, t)
|
|
4878
4880
|
};
|
|
4879
4881
|
return r;
|
|
4880
4882
|
}
|
|
4881
|
-
var
|
|
4883
|
+
var Sr = (() => {
|
|
4882
4884
|
try {
|
|
4883
4885
|
return !0;
|
|
4884
4886
|
} catch {
|
|
4885
4887
|
return !1;
|
|
4886
4888
|
}
|
|
4887
|
-
})(),
|
|
4889
|
+
})(), Cr = {
|
|
4888
4890
|
codeRemoveIndent: /^(?: {1,4}| {0,3}\t)/gm,
|
|
4889
4891
|
outputLinkReplace: /\\([\[\]])/g,
|
|
4890
4892
|
indentCodeCompensation: /^(\s+)(?:```)/,
|
|
@@ -4941,117 +4943,117 @@ var br = (() => {
|
|
|
4941
4943
|
headingBeginRegex: (e) => RegExp(`^ {0,${Math.min(3, e - 1)}}#`),
|
|
4942
4944
|
htmlBeginRegex: (e) => RegExp(`^ {0,${Math.min(3, e - 1)}}<(?:[a-z].*>|!--)`, "i"),
|
|
4943
4945
|
blockquoteBeginRegex: (e) => RegExp(`^ {0,${Math.min(3, e - 1)}}>`)
|
|
4944
|
-
},
|
|
4945
|
-
blockquote:
|
|
4946
|
-
code:
|
|
4947
|
-
def:
|
|
4948
|
-
fences:
|
|
4949
|
-
heading:
|
|
4950
|
-
hr:
|
|
4951
|
-
html:
|
|
4952
|
-
lheading:
|
|
4953
|
-
list:
|
|
4954
|
-
newline:
|
|
4955
|
-
paragraph:
|
|
4956
|
-
table:
|
|
4957
|
-
text:
|
|
4958
|
-
},
|
|
4959
|
-
...
|
|
4960
|
-
lheading:
|
|
4961
|
-
table:
|
|
4962
|
-
paragraph:
|
|
4963
|
-
},
|
|
4964
|
-
...
|
|
4965
|
-
html:
|
|
4946
|
+
}, wr = /^(?:[ \t]*(?:\n|$))+/, Tr = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, Er = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, Dr = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, Or = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, kr = / {0,3}(?:[*+-]|\d{1,9}[.)])/, Ar = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, jr = Q(Ar).replace(/bull/g, kr).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex(), Mr = Q(Ar).replace(/bull/g, kr).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(), Nr = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, Pr = /^[^\n]+/, Fr = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, Ir = Q(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", Fr).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), Lr = Q(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, kr).getRegex(), Rr = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", zr = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, Br = Q("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))", "i").replace("comment", zr).replace("tag", Rr).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), Vr = Q(Nr).replace("hr", Dr).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", Rr).getRegex(), Hr = {
|
|
4947
|
+
blockquote: Q(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", Vr).getRegex(),
|
|
4948
|
+
code: Tr,
|
|
4949
|
+
def: Ir,
|
|
4950
|
+
fences: Er,
|
|
4951
|
+
heading: Or,
|
|
4952
|
+
hr: Dr,
|
|
4953
|
+
html: Br,
|
|
4954
|
+
lheading: jr,
|
|
4955
|
+
list: Lr,
|
|
4956
|
+
newline: wr,
|
|
4957
|
+
paragraph: Vr,
|
|
4958
|
+
table: xr,
|
|
4959
|
+
text: Pr
|
|
4960
|
+
}, Ur = Q("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", Dr).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", Rr).getRegex(), Wr = {
|
|
4961
|
+
...Hr,
|
|
4962
|
+
lheading: Mr,
|
|
4963
|
+
table: Ur,
|
|
4964
|
+
paragraph: Q(Nr).replace("hr", Dr).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", Ur).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", Rr).getRegex()
|
|
4965
|
+
}, Gr = {
|
|
4966
|
+
...Hr,
|
|
4967
|
+
html: Q("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment", zr).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),
|
|
4966
4968
|
def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,
|
|
4967
4969
|
heading: /^(#{1,6})(.*)(?:\n+|$)/,
|
|
4968
|
-
fences:
|
|
4970
|
+
fences: xr,
|
|
4969
4971
|
lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,
|
|
4970
|
-
paragraph:
|
|
4971
|
-
},
|
|
4972
|
-
_backpedal:
|
|
4973
|
-
anyPunctuation:
|
|
4974
|
-
autolink:
|
|
4975
|
-
blockSkip:
|
|
4976
|
-
br:
|
|
4977
|
-
code:
|
|
4978
|
-
del:
|
|
4979
|
-
delLDelim:
|
|
4980
|
-
delRDelim:
|
|
4981
|
-
emStrongLDelim:
|
|
4982
|
-
emStrongRDelimAst:
|
|
4983
|
-
emStrongRDelimUnd:
|
|
4984
|
-
escape:
|
|
4985
|
-
link:
|
|
4986
|
-
nolink:
|
|
4987
|
-
punctuation:
|
|
4988
|
-
reflink:
|
|
4989
|
-
reflinkSearch:
|
|
4990
|
-
tag:
|
|
4991
|
-
text:
|
|
4992
|
-
url:
|
|
4993
|
-
}, xi = {
|
|
4994
|
-
...bi,
|
|
4995
|
-
link: Z(/^!?\[(label)\]\((.*?)\)/).replace("label", mi).getRegex(),
|
|
4996
|
-
reflink: Z(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", mi).getRegex()
|
|
4997
|
-
}, Si = {
|
|
4998
|
-
...bi,
|
|
4999
|
-
emStrongRDelimAst: oi,
|
|
5000
|
-
emStrongLDelim: ri,
|
|
5001
|
-
delLDelim: ci,
|
|
5002
|
-
delRDelim: li,
|
|
5003
|
-
url: Z(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol", yi).replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),
|
|
5004
|
-
_backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,
|
|
5005
|
-
del: /^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,
|
|
5006
|
-
text: Z(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol", yi).getRegex()
|
|
5007
|
-
}, Ci = {
|
|
5008
|
-
...Si,
|
|
5009
|
-
br: Z(Gr).replace("{2,}", "*").getRegex(),
|
|
5010
|
-
text: Z(Si.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex()
|
|
4972
|
+
paragraph: Q(Nr).replace("hr", Dr).replace("heading", " *#{1,6} *[^\n]").replace("lheading", jr).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex()
|
|
4973
|
+
}, Kr = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, qr = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, Jr = /^( {2,}|\\)\n(?!\s*$)/, Yr = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, Xr = /[\p{P}\p{S}]/u, Zr = /[\s\p{P}\p{S}]/u, Qr = /[^\s\p{P}\p{S}]/u, $r = Q(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, Zr).getRegex(), ei = /(?!~)[\p{P}\p{S}]/u, ti = /(?!~)[\s\p{P}\p{S}]/u, ni = /(?:[^\s\p{P}\p{S}]|~)/u, ri = Q(/link|precode-code|html/, "g").replace("link", /\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-", Sr ? "(?<!`)()" : "(^^|[^`])").replace("code", /(?<b>`+)[^`]+\k<b>(?!`)/).replace("html", /<(?! )[^<>]*?>/).getRegex(), ii = /^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/, ai = Q(ii, "u").replace(/punct/g, Xr).getRegex(), oi = Q(ii, "u").replace(/punct/g, ei).getRegex(), si = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", ci = Q(si, "gu").replace(/notPunctSpace/g, Qr).replace(/punctSpace/g, Zr).replace(/punct/g, Xr).getRegex(), li = Q(si, "gu").replace(/notPunctSpace/g, ni).replace(/punctSpace/g, ti).replace(/punct/g, ei).getRegex(), ui = Q("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, Qr).replace(/punctSpace/g, Zr).replace(/punct/g, Xr).getRegex(), di = Q(/^~~?(?:((?!~)punct)|[^\s~])/, "u").replace(/punct/g, Xr).getRegex(), fi = Q("^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)", "gu").replace(/notPunctSpace/g, Qr).replace(/punctSpace/g, Zr).replace(/punct/g, Xr).getRegex(), pi = Q(/\\(punct)/, "gu").replace(/punct/g, Xr).getRegex(), mi = Q(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), hi = Q(zr).replace("(?:-->|$)", "-->").getRegex(), gi = Q("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", hi).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), _i = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/, vi = Q(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label", _i).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), yi = Q(/^!?\[(label)\]\[(ref)\]/).replace("label", _i).replace("ref", Fr).getRegex(), bi = Q(/^!?\[(ref)\](?:\[\])?/).replace("ref", Fr).getRegex(), xi = Q("reflink|nolink(?!\\()", "g").replace("reflink", yi).replace("nolink", bi).getRegex(), Si = /[hH][tT][tT][pP][sS]?|[fF][tT][pP]/, Ci = {
|
|
4974
|
+
_backpedal: xr,
|
|
4975
|
+
anyPunctuation: pi,
|
|
4976
|
+
autolink: mi,
|
|
4977
|
+
blockSkip: ri,
|
|
4978
|
+
br: Jr,
|
|
4979
|
+
code: qr,
|
|
4980
|
+
del: xr,
|
|
4981
|
+
delLDelim: xr,
|
|
4982
|
+
delRDelim: xr,
|
|
4983
|
+
emStrongLDelim: ai,
|
|
4984
|
+
emStrongRDelimAst: ci,
|
|
4985
|
+
emStrongRDelimUnd: ui,
|
|
4986
|
+
escape: Kr,
|
|
4987
|
+
link: vi,
|
|
4988
|
+
nolink: bi,
|
|
4989
|
+
punctuation: $r,
|
|
4990
|
+
reflink: yi,
|
|
4991
|
+
reflinkSearch: xi,
|
|
4992
|
+
tag: gi,
|
|
4993
|
+
text: Yr,
|
|
4994
|
+
url: xr
|
|
5011
4995
|
}, wi = {
|
|
5012
|
-
|
|
5013
|
-
|
|
5014
|
-
|
|
4996
|
+
...Ci,
|
|
4997
|
+
link: Q(/^!?\[(label)\]\((.*?)\)/).replace("label", _i).getRegex(),
|
|
4998
|
+
reflink: Q(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", _i).getRegex()
|
|
5015
4999
|
}, Ti = {
|
|
5016
|
-
|
|
5017
|
-
|
|
5018
|
-
|
|
5019
|
-
|
|
5000
|
+
...Ci,
|
|
5001
|
+
emStrongRDelimAst: li,
|
|
5002
|
+
emStrongLDelim: oi,
|
|
5003
|
+
delLDelim: di,
|
|
5004
|
+
delRDelim: fi,
|
|
5005
|
+
url: Q(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol", Si).replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),
|
|
5006
|
+
_backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,
|
|
5007
|
+
del: /^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,
|
|
5008
|
+
text: Q(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol", Si).getRegex()
|
|
5020
5009
|
}, Ei = {
|
|
5010
|
+
...Ti,
|
|
5011
|
+
br: Q(Jr).replace("{2,}", "*").getRegex(),
|
|
5012
|
+
text: Q(Ti.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex()
|
|
5013
|
+
}, Di = {
|
|
5014
|
+
normal: Hr,
|
|
5015
|
+
gfm: Wr,
|
|
5016
|
+
pedantic: Gr
|
|
5017
|
+
}, Oi = {
|
|
5018
|
+
normal: Ci,
|
|
5019
|
+
gfm: Ti,
|
|
5020
|
+
breaks: Ei,
|
|
5021
|
+
pedantic: wi
|
|
5022
|
+
}, ki = {
|
|
5021
5023
|
"&": "&",
|
|
5022
5024
|
"<": "<",
|
|
5023
5025
|
">": ">",
|
|
5024
5026
|
"\"": """,
|
|
5025
5027
|
"'": "'"
|
|
5026
|
-
},
|
|
5027
|
-
function
|
|
5028
|
+
}, Ai = (e) => ki[e];
|
|
5029
|
+
function ji(e, t) {
|
|
5028
5030
|
if (t) {
|
|
5029
|
-
if (
|
|
5030
|
-
} else if (
|
|
5031
|
+
if (Cr.escapeTest.test(e)) return e.replace(Cr.escapeReplace, Ai);
|
|
5032
|
+
} else if (Cr.escapeTestNoEncode.test(e)) return e.replace(Cr.escapeReplaceNoEncode, Ai);
|
|
5031
5033
|
return e;
|
|
5032
5034
|
}
|
|
5033
|
-
function
|
|
5035
|
+
function Mi(e) {
|
|
5034
5036
|
try {
|
|
5035
|
-
e = encodeURI(e).replace(
|
|
5037
|
+
e = encodeURI(e).replace(Cr.percentDecode, "%");
|
|
5036
5038
|
} catch {
|
|
5037
5039
|
return null;
|
|
5038
5040
|
}
|
|
5039
5041
|
return e;
|
|
5040
5042
|
}
|
|
5041
|
-
function
|
|
5042
|
-
let n = e.replace(
|
|
5043
|
+
function Ni(e, t) {
|
|
5044
|
+
let n = e.replace(Cr.findPipe, (e, t, n) => {
|
|
5043
5045
|
let r = !1, i = t;
|
|
5044
5046
|
for (; --i >= 0 && n[i] === "\\";) r = !r;
|
|
5045
5047
|
return r ? "|" : " |";
|
|
5046
|
-
}).split(
|
|
5048
|
+
}).split(Cr.splitPipe), r = 0;
|
|
5047
5049
|
if (n[0].trim() || n.shift(), n.length > 0 && !n.at(-1)?.trim() && n.pop(), t) {
|
|
5048
5050
|
if (n.length > t) n.splice(t);
|
|
5049
5051
|
else for (; n.length < t;) n.push("");
|
|
5050
5052
|
}
|
|
5051
|
-
for (; r < n.length; r++) n[r] = n[r].trim().replace(
|
|
5053
|
+
for (; r < n.length; r++) n[r] = n[r].trim().replace(Cr.slashPipe, "|");
|
|
5052
5054
|
return n;
|
|
5053
5055
|
}
|
|
5054
|
-
function
|
|
5056
|
+
function Pi(e, t, n) {
|
|
5055
5057
|
let r = e.length;
|
|
5056
5058
|
if (r === 0) return "";
|
|
5057
5059
|
let i = 0;
|
|
@@ -5063,7 +5065,7 @@ function ji(e, t, n) {
|
|
|
5063
5065
|
}
|
|
5064
5066
|
return e.slice(0, r - i);
|
|
5065
5067
|
}
|
|
5066
|
-
function
|
|
5068
|
+
function Fi(e, t) {
|
|
5067
5069
|
if (e.indexOf(t[1]) === -1) return -1;
|
|
5068
5070
|
let n = 0;
|
|
5069
5071
|
for (let r = 0; r < e.length; r++) if (e[r] === "\\") r++;
|
|
@@ -5071,7 +5073,7 @@ function Mi(e, t) {
|
|
|
5071
5073
|
else if (e[r] === t[1] && (n--, n < 0)) return r;
|
|
5072
5074
|
return n > 0 ? -2 : -1;
|
|
5073
5075
|
}
|
|
5074
|
-
function
|
|
5076
|
+
function Ii(e, t = 0) {
|
|
5075
5077
|
let n = t, r = "";
|
|
5076
5078
|
for (let t of e) if (t === " ") {
|
|
5077
5079
|
let e = 4 - n % 4;
|
|
@@ -5079,7 +5081,7 @@ function Ni(e, t = 0) {
|
|
|
5079
5081
|
} else r += t, n++;
|
|
5080
5082
|
return r;
|
|
5081
5083
|
}
|
|
5082
|
-
function
|
|
5084
|
+
function Li(e, t, n, r, i) {
|
|
5083
5085
|
let a = t.href, o = t.title || null, s = e[1].replace(i.other.outputLinkReplace, "$1");
|
|
5084
5086
|
r.state.inLink = !0;
|
|
5085
5087
|
let c = {
|
|
@@ -5092,7 +5094,7 @@ function Pi(e, t, n, r, i) {
|
|
|
5092
5094
|
};
|
|
5093
5095
|
return r.state.inLink = !1, c;
|
|
5094
5096
|
}
|
|
5095
|
-
function
|
|
5097
|
+
function Ri(e, t, n) {
|
|
5096
5098
|
let r = e.match(n.other.indentCodeCompensation);
|
|
5097
5099
|
if (r === null) return t;
|
|
5098
5100
|
let i = r[1];
|
|
@@ -5103,12 +5105,12 @@ function Fi(e, t, n) {
|
|
|
5103
5105
|
return r.length >= i.length ? e.slice(i.length) : e;
|
|
5104
5106
|
}).join("\n");
|
|
5105
5107
|
}
|
|
5106
|
-
var
|
|
5108
|
+
var zi = class {
|
|
5107
5109
|
options;
|
|
5108
5110
|
rules;
|
|
5109
5111
|
lexer;
|
|
5110
5112
|
constructor(e) {
|
|
5111
|
-
this.options = e ||
|
|
5113
|
+
this.options = e || yr;
|
|
5112
5114
|
}
|
|
5113
5115
|
space(e) {
|
|
5114
5116
|
let t = this.rules.block.newline.exec(e);
|
|
@@ -5125,14 +5127,14 @@ var Ii = class {
|
|
|
5125
5127
|
type: "code",
|
|
5126
5128
|
raw: t[0],
|
|
5127
5129
|
codeBlockStyle: "indented",
|
|
5128
|
-
text: this.options.pedantic ? e :
|
|
5130
|
+
text: this.options.pedantic ? e : Pi(e, "\n")
|
|
5129
5131
|
};
|
|
5130
5132
|
}
|
|
5131
5133
|
}
|
|
5132
5134
|
fences(e) {
|
|
5133
5135
|
let t = this.rules.block.fences.exec(e);
|
|
5134
5136
|
if (t) {
|
|
5135
|
-
let e = t[0], n =
|
|
5137
|
+
let e = t[0], n = Ri(e, t[3] || "", this.rules);
|
|
5136
5138
|
return {
|
|
5137
5139
|
type: "code",
|
|
5138
5140
|
raw: e,
|
|
@@ -5146,7 +5148,7 @@ var Ii = class {
|
|
|
5146
5148
|
if (t) {
|
|
5147
5149
|
let e = t[2].trim();
|
|
5148
5150
|
if (this.rules.other.endingHash.test(e)) {
|
|
5149
|
-
let t =
|
|
5151
|
+
let t = Pi(e, "#");
|
|
5150
5152
|
(this.options.pedantic || !t || this.rules.other.endingSpaceChar.test(t)) && (e = t.trim());
|
|
5151
5153
|
}
|
|
5152
5154
|
return {
|
|
@@ -5162,13 +5164,13 @@ var Ii = class {
|
|
|
5162
5164
|
let t = this.rules.block.hr.exec(e);
|
|
5163
5165
|
if (t) return {
|
|
5164
5166
|
type: "hr",
|
|
5165
|
-
raw:
|
|
5167
|
+
raw: Pi(t[0], "\n")
|
|
5166
5168
|
};
|
|
5167
5169
|
}
|
|
5168
5170
|
blockquote(e) {
|
|
5169
5171
|
let t = this.rules.block.blockquote.exec(e);
|
|
5170
5172
|
if (t) {
|
|
5171
|
-
let e =
|
|
5173
|
+
let e = Pi(t[0], "\n").split("\n"), n = "", r = "", i = [];
|
|
5172
5174
|
for (; e.length > 0;) {
|
|
5173
5175
|
let t = !1, a = [], o;
|
|
5174
5176
|
for (o = 0; o < e.length; o++) if (this.rules.other.blockquoteStart.test(e[o])) a.push(e[o]), t = !0;
|
|
@@ -5219,7 +5221,7 @@ ${c}` : c;
|
|
|
5219
5221
|
let n = !1, r = "", s = "";
|
|
5220
5222
|
if (!(t = a.exec(e)) || this.rules.block.hr.test(e)) break;
|
|
5221
5223
|
r = t[0], e = e.substring(r.length);
|
|
5222
|
-
let c =
|
|
5224
|
+
let c = Ii(t[2].split("\n", 1)[0], t[1].length), l = e.split("\n", 1)[0], u = !c.trim(), d = 0;
|
|
5223
5225
|
if (this.options.pedantic ? (d = 2, s = c.trimStart()) : u ? d = t[1].length + 1 : (d = c.search(this.rules.other.nonSpaceChar), d = d > 4 ? 1 : d, s = c.slice(d), d += t[1].length), u && this.rules.other.blankLine.test(l) && (r += l + "\n", e = e.substring(l.length + 1), n = !0), !n) {
|
|
5224
5226
|
let t = this.rules.other.nextBulletRegex(d), n = this.rules.other.hrRegex(d), i = this.rules.other.fencesBeginRegex(d), a = this.rules.other.headingBeginRegex(d), o = this.rules.other.htmlBeginRegex(d), f = this.rules.other.blockquoteBeginRegex(d);
|
|
5225
5227
|
for (; e;) {
|
|
@@ -5308,7 +5310,7 @@ ${c}` : c;
|
|
|
5308
5310
|
table(e) {
|
|
5309
5311
|
let t = this.rules.block.table.exec(e);
|
|
5310
5312
|
if (!t || !this.rules.other.tableDelimiter.test(t[2])) return;
|
|
5311
|
-
let n =
|
|
5313
|
+
let n = Ni(t[1]), r = t[2].replace(this.rules.other.tableAlignChars, "").split("|"), i = t[3]?.trim() ? t[3].replace(this.rules.other.tableRowBlankLine, "").split("\n") : [], a = {
|
|
5312
5314
|
type: "table",
|
|
5313
5315
|
raw: t[0],
|
|
5314
5316
|
header: [],
|
|
@@ -5323,7 +5325,7 @@ ${c}` : c;
|
|
|
5323
5325
|
header: !0,
|
|
5324
5326
|
align: a.align[e]
|
|
5325
5327
|
});
|
|
5326
|
-
for (let e of i) a.rows.push(
|
|
5328
|
+
for (let e of i) a.rows.push(Ni(e, a.header.length).map((e, t) => ({
|
|
5327
5329
|
text: e,
|
|
5328
5330
|
tokens: this.lexer.inline(e),
|
|
5329
5331
|
header: !1,
|
|
@@ -5391,10 +5393,10 @@ ${c}` : c;
|
|
|
5391
5393
|
let e = t[2].trim();
|
|
5392
5394
|
if (!this.options.pedantic && this.rules.other.startAngleBracket.test(e)) {
|
|
5393
5395
|
if (!this.rules.other.endAngleBracket.test(e)) return;
|
|
5394
|
-
let t =
|
|
5396
|
+
let t = Pi(e.slice(0, -1), "\\");
|
|
5395
5397
|
if ((e.length - t.length) % 2 == 0) return;
|
|
5396
5398
|
} else {
|
|
5397
|
-
let e =
|
|
5399
|
+
let e = Fi(t[2], "()");
|
|
5398
5400
|
if (e === -2) return;
|
|
5399
5401
|
if (e > -1) {
|
|
5400
5402
|
let n = (t[0].indexOf("!") === 0 ? 5 : 4) + t[1].length + e;
|
|
@@ -5406,7 +5408,7 @@ ${c}` : c;
|
|
|
5406
5408
|
let e = this.rules.other.pedanticHrefTitle.exec(n);
|
|
5407
5409
|
e && (n = e[1], r = e[3]);
|
|
5408
5410
|
} else r = t[3] ? t[3].slice(1, -1) : "";
|
|
5409
|
-
return n = n.trim(), this.rules.other.startAngleBracket.test(n) && (n = this.options.pedantic && !this.rules.other.endAngleBracket.test(e) ? n.slice(1) : n.slice(1, -1)),
|
|
5411
|
+
return n = n.trim(), this.rules.other.startAngleBracket.test(n) && (n = this.options.pedantic && !this.rules.other.endAngleBracket.test(e) ? n.slice(1) : n.slice(1, -1)), Li(t, {
|
|
5410
5412
|
href: n && n.replace(this.rules.inline.anyPunctuation, "$1"),
|
|
5411
5413
|
title: r && r.replace(this.rules.inline.anyPunctuation, "$1")
|
|
5412
5414
|
}, t[0], this.lexer, this.rules);
|
|
@@ -5424,7 +5426,7 @@ ${c}` : c;
|
|
|
5424
5426
|
text: e
|
|
5425
5427
|
};
|
|
5426
5428
|
}
|
|
5427
|
-
return
|
|
5429
|
+
return Li(n, e, n[0], this.lexer, this.rules);
|
|
5428
5430
|
}
|
|
5429
5431
|
}
|
|
5430
5432
|
emStrong(e, t, n = "") {
|
|
@@ -5557,29 +5559,29 @@ ${c}` : c;
|
|
|
5557
5559
|
};
|
|
5558
5560
|
}
|
|
5559
5561
|
}
|
|
5560
|
-
},
|
|
5562
|
+
}, Bi = class e {
|
|
5561
5563
|
tokens;
|
|
5562
5564
|
options;
|
|
5563
5565
|
state;
|
|
5564
5566
|
inlineQueue;
|
|
5565
5567
|
tokenizer;
|
|
5566
5568
|
constructor(e) {
|
|
5567
|
-
this.tokens = [], this.tokens.links = Object.create(null), this.options = e ||
|
|
5569
|
+
this.tokens = [], this.tokens.links = Object.create(null), this.options = e || yr, this.options.tokenizer = this.options.tokenizer || new zi(), this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = {
|
|
5568
5570
|
inLink: !1,
|
|
5569
5571
|
inRawBlock: !1,
|
|
5570
5572
|
top: !0
|
|
5571
5573
|
};
|
|
5572
5574
|
let t = {
|
|
5573
|
-
other:
|
|
5574
|
-
block:
|
|
5575
|
-
inline:
|
|
5575
|
+
other: Cr,
|
|
5576
|
+
block: Di.normal,
|
|
5577
|
+
inline: Oi.normal
|
|
5576
5578
|
};
|
|
5577
|
-
this.options.pedantic ? (t.block =
|
|
5579
|
+
this.options.pedantic ? (t.block = Di.pedantic, t.inline = Oi.pedantic) : this.options.gfm && (t.block = Di.gfm, t.inline = this.options.breaks ? Oi.breaks : Oi.gfm), this.tokenizer.rules = t;
|
|
5578
5580
|
}
|
|
5579
5581
|
static get rules() {
|
|
5580
5582
|
return {
|
|
5581
|
-
block:
|
|
5582
|
-
inline:
|
|
5583
|
+
block: Di,
|
|
5584
|
+
inline: Oi
|
|
5583
5585
|
};
|
|
5584
5586
|
}
|
|
5585
5587
|
static lex(t, n) {
|
|
@@ -5589,7 +5591,7 @@ ${c}` : c;
|
|
|
5589
5591
|
return new e(n).inlineTokens(t);
|
|
5590
5592
|
}
|
|
5591
5593
|
lex(e) {
|
|
5592
|
-
e = e.replace(
|
|
5594
|
+
e = e.replace(Cr.carriageReturn, "\n"), this.blockTokens(e, this.tokens);
|
|
5593
5595
|
for (let e = 0; e < this.inlineQueue.length; e++) {
|
|
5594
5596
|
let t = this.inlineQueue[e];
|
|
5595
5597
|
this.inlineTokens(t.src, t.tokens);
|
|
@@ -5597,7 +5599,7 @@ ${c}` : c;
|
|
|
5597
5599
|
return this.inlineQueue = [], this.tokens;
|
|
5598
5600
|
}
|
|
5599
5601
|
blockTokens(e, t = [], n = !1) {
|
|
5600
|
-
for (this.tokenizer.lexer = this, this.options.pedantic && (e = e.replace(
|
|
5602
|
+
for (this.tokenizer.lexer = this, this.options.pedantic && (e = e.replace(Cr.tabCharGlobal, " ").replace(Cr.spaceLine, "")); e;) {
|
|
5601
5603
|
let r;
|
|
5602
5604
|
if (this.options.extensions?.block?.some((n) => (r = n.call({ lexer: this }, e, t)) ? (e = e.substring(r.raw.length), t.push(r), !0) : !1)) continue;
|
|
5603
5605
|
if (r = this.tokenizer.space(e)) {
|
|
@@ -5770,18 +5772,18 @@ ${c}` : c;
|
|
|
5770
5772
|
}
|
|
5771
5773
|
return t;
|
|
5772
5774
|
}
|
|
5773
|
-
},
|
|
5775
|
+
}, Vi = class {
|
|
5774
5776
|
options;
|
|
5775
5777
|
parser;
|
|
5776
5778
|
constructor(e) {
|
|
5777
|
-
this.options = e ||
|
|
5779
|
+
this.options = e || yr;
|
|
5778
5780
|
}
|
|
5779
5781
|
space(e) {
|
|
5780
5782
|
return "";
|
|
5781
5783
|
}
|
|
5782
5784
|
code({ text: e, lang: t, escaped: n }) {
|
|
5783
|
-
let r = (t || "").match(
|
|
5784
|
-
return r ? "<pre><code class=\"language-" +
|
|
5785
|
+
let r = (t || "").match(Cr.notSpaceStart)?.[0], i = e.replace(Cr.endingNewline, "") + "\n";
|
|
5786
|
+
return r ? "<pre><code class=\"language-" + ji(r) + "\">" + (n ? i : ji(i, !0)) + "</code></pre>\n" : "<pre><code>" + (n ? i : ji(i, !0)) + "</code></pre>\n";
|
|
5785
5787
|
}
|
|
5786
5788
|
blockquote({ tokens: e }) {
|
|
5787
5789
|
return `<blockquote>
|
|
@@ -5851,7 +5853,7 @@ ${e}</tr>
|
|
|
5851
5853
|
return `<em>${this.parser.parseInline(e)}</em>`;
|
|
5852
5854
|
}
|
|
5853
5855
|
codespan({ text: e }) {
|
|
5854
|
-
return `<code>${
|
|
5856
|
+
return `<code>${ji(e, !0)}</code>`;
|
|
5855
5857
|
}
|
|
5856
5858
|
br(e) {
|
|
5857
5859
|
return "<br>";
|
|
@@ -5860,24 +5862,24 @@ ${e}</tr>
|
|
|
5860
5862
|
return `<del>${this.parser.parseInline(e)}</del>`;
|
|
5861
5863
|
}
|
|
5862
5864
|
link({ href: e, title: t, tokens: n }) {
|
|
5863
|
-
let r = this.parser.parseInline(n), i =
|
|
5865
|
+
let r = this.parser.parseInline(n), i = Mi(e);
|
|
5864
5866
|
if (i === null) return r;
|
|
5865
5867
|
e = i;
|
|
5866
5868
|
let a = "<a href=\"" + e + "\"";
|
|
5867
|
-
return t && (a += " title=\"" +
|
|
5869
|
+
return t && (a += " title=\"" + ji(t) + "\""), a += ">" + r + "</a>", a;
|
|
5868
5870
|
}
|
|
5869
5871
|
image({ href: e, title: t, text: n, tokens: r }) {
|
|
5870
5872
|
r && (n = this.parser.parseInline(r, this.parser.textRenderer));
|
|
5871
|
-
let i =
|
|
5872
|
-
if (i === null) return
|
|
5873
|
+
let i = Mi(e);
|
|
5874
|
+
if (i === null) return ji(n);
|
|
5873
5875
|
e = i;
|
|
5874
|
-
let a = `<img src="${e}" alt="${
|
|
5875
|
-
return t && (a += ` title="${
|
|
5876
|
+
let a = `<img src="${e}" alt="${ji(n)}"`;
|
|
5877
|
+
return t && (a += ` title="${ji(t)}"`), a += ">", a;
|
|
5876
5878
|
}
|
|
5877
5879
|
text(e) {
|
|
5878
|
-
return "tokens" in e && e.tokens ? this.parser.parseInline(e.tokens) : "escaped" in e && e.escaped ? e.text :
|
|
5880
|
+
return "tokens" in e && e.tokens ? this.parser.parseInline(e.tokens) : "escaped" in e && e.escaped ? e.text : ji(e.text);
|
|
5879
5881
|
}
|
|
5880
|
-
},
|
|
5882
|
+
}, Hi = class {
|
|
5881
5883
|
strong({ text: e }) {
|
|
5882
5884
|
return e;
|
|
5883
5885
|
}
|
|
@@ -5908,12 +5910,12 @@ ${e}</tr>
|
|
|
5908
5910
|
checkbox({ raw: e }) {
|
|
5909
5911
|
return e;
|
|
5910
5912
|
}
|
|
5911
|
-
},
|
|
5913
|
+
}, Ui = class e {
|
|
5912
5914
|
options;
|
|
5913
5915
|
renderer;
|
|
5914
5916
|
textRenderer;
|
|
5915
5917
|
constructor(e) {
|
|
5916
|
-
this.options = e ||
|
|
5918
|
+
this.options = e || yr, this.options.renderer = this.options.renderer || new Vi(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new Hi();
|
|
5917
5919
|
}
|
|
5918
5920
|
static parse(t, n) {
|
|
5919
5921
|
return new e(n).parse(t);
|
|
@@ -6059,11 +6061,11 @@ ${e}</tr>
|
|
|
6059
6061
|
}
|
|
6060
6062
|
return n;
|
|
6061
6063
|
}
|
|
6062
|
-
},
|
|
6064
|
+
}, Wi = class {
|
|
6063
6065
|
options;
|
|
6064
6066
|
block;
|
|
6065
6067
|
constructor(e) {
|
|
6066
|
-
this.options = e ||
|
|
6068
|
+
this.options = e || yr;
|
|
6067
6069
|
}
|
|
6068
6070
|
static passThroughHooks = /* @__PURE__ */ new Set([
|
|
6069
6071
|
"preprocess",
|
|
@@ -6089,22 +6091,22 @@ ${e}</tr>
|
|
|
6089
6091
|
return e;
|
|
6090
6092
|
}
|
|
6091
6093
|
provideLexer() {
|
|
6092
|
-
return this.block ?
|
|
6094
|
+
return this.block ? Bi.lex : Bi.lexInline;
|
|
6093
6095
|
}
|
|
6094
6096
|
provideParser() {
|
|
6095
|
-
return this.block ?
|
|
6097
|
+
return this.block ? Ui.parse : Ui.parseInline;
|
|
6096
6098
|
}
|
|
6097
|
-
},
|
|
6098
|
-
defaults =
|
|
6099
|
+
}, Gi = new class {
|
|
6100
|
+
defaults = vr();
|
|
6099
6101
|
options = this.setOptions;
|
|
6100
6102
|
parse = this.parseMarkdown(!0);
|
|
6101
6103
|
parseInline = this.parseMarkdown(!1);
|
|
6102
|
-
Parser =
|
|
6103
|
-
Renderer =
|
|
6104
|
-
TextRenderer =
|
|
6105
|
-
Lexer =
|
|
6106
|
-
Tokenizer =
|
|
6107
|
-
Hooks =
|
|
6104
|
+
Parser = Ui;
|
|
6105
|
+
Renderer = Vi;
|
|
6106
|
+
TextRenderer = Hi;
|
|
6107
|
+
Lexer = Bi;
|
|
6108
|
+
Tokenizer = zi;
|
|
6109
|
+
Hooks = Wi;
|
|
6108
6110
|
constructor(...e) {
|
|
6109
6111
|
this.use(...e);
|
|
6110
6112
|
}
|
|
@@ -6155,7 +6157,7 @@ ${e}</tr>
|
|
|
6155
6157
|
}
|
|
6156
6158
|
"childTokens" in e && e.childTokens && (t.childTokens[e.name] = e.childTokens);
|
|
6157
6159
|
}), n.extensions = t), e.renderer) {
|
|
6158
|
-
let t = this.defaults.renderer || new
|
|
6160
|
+
let t = this.defaults.renderer || new Vi(this.defaults);
|
|
6159
6161
|
for (let n in e.renderer) {
|
|
6160
6162
|
if (!(n in t)) throw Error(`renderer '${n}' does not exist`);
|
|
6161
6163
|
if (["options", "parser"].includes(n)) continue;
|
|
@@ -6168,7 +6170,7 @@ ${e}</tr>
|
|
|
6168
6170
|
n.renderer = t;
|
|
6169
6171
|
}
|
|
6170
6172
|
if (e.tokenizer) {
|
|
6171
|
-
let t = this.defaults.tokenizer || new
|
|
6173
|
+
let t = this.defaults.tokenizer || new zi(this.defaults);
|
|
6172
6174
|
for (let n in e.tokenizer) {
|
|
6173
6175
|
if (!(n in t)) throw Error(`tokenizer '${n}' does not exist`);
|
|
6174
6176
|
if ([
|
|
@@ -6185,13 +6187,13 @@ ${e}</tr>
|
|
|
6185
6187
|
n.tokenizer = t;
|
|
6186
6188
|
}
|
|
6187
6189
|
if (e.hooks) {
|
|
6188
|
-
let t = this.defaults.hooks || new
|
|
6190
|
+
let t = this.defaults.hooks || new Wi();
|
|
6189
6191
|
for (let n in e.hooks) {
|
|
6190
6192
|
if (!(n in t)) throw Error(`hook '${n}' does not exist`);
|
|
6191
6193
|
if (["options", "block"].includes(n)) continue;
|
|
6192
6194
|
let r = n, i = e.hooks[r], a = t[r];
|
|
6193
|
-
t[r] =
|
|
6194
|
-
if (this.defaults.async &&
|
|
6195
|
+
t[r] = Wi.passThroughHooks.has(n) ? (e) => {
|
|
6196
|
+
if (this.defaults.async && Wi.passThroughHooksRespectAsync.has(n)) return (async () => {
|
|
6195
6197
|
let n = await i.call(t, e);
|
|
6196
6198
|
return a.call(t, n);
|
|
6197
6199
|
})();
|
|
@@ -6228,10 +6230,10 @@ ${e}</tr>
|
|
|
6228
6230
|
}, this;
|
|
6229
6231
|
}
|
|
6230
6232
|
lexer(e, t) {
|
|
6231
|
-
return
|
|
6233
|
+
return Bi.lex(e, t ?? this.defaults);
|
|
6232
6234
|
}
|
|
6233
6235
|
parser(e, t) {
|
|
6234
|
-
return
|
|
6236
|
+
return Ui.parse(e, t ?? this.defaults);
|
|
6235
6237
|
}
|
|
6236
6238
|
parseMarkdown(e) {
|
|
6237
6239
|
return (t, n) => {
|
|
@@ -6243,16 +6245,16 @@ ${e}</tr>
|
|
|
6243
6245
|
if (typeof t > "u" || t === null) return a(/* @__PURE__ */ Error("marked(): input parameter is undefined or null"));
|
|
6244
6246
|
if (typeof t != "string") return a(/* @__PURE__ */ Error("marked(): input parameter is of type " + Object.prototype.toString.call(t) + ", string expected"));
|
|
6245
6247
|
if (i.hooks && (i.hooks.options = i, i.hooks.block = e), i.async) return (async () => {
|
|
6246
|
-
let n = i.hooks ? await i.hooks.preprocess(t) : t, r = await (i.hooks ? await i.hooks.provideLexer() : e ?
|
|
6248
|
+
let n = i.hooks ? await i.hooks.preprocess(t) : t, r = await (i.hooks ? await i.hooks.provideLexer() : e ? Bi.lex : Bi.lexInline)(n, i), a = i.hooks ? await i.hooks.processAllTokens(r) : r;
|
|
6247
6249
|
i.walkTokens && await Promise.all(this.walkTokens(a, i.walkTokens));
|
|
6248
|
-
let o = await (i.hooks ? await i.hooks.provideParser() : e ?
|
|
6250
|
+
let o = await (i.hooks ? await i.hooks.provideParser() : e ? Ui.parse : Ui.parseInline)(a, i);
|
|
6249
6251
|
return i.hooks ? await i.hooks.postprocess(o) : o;
|
|
6250
6252
|
})().catch(a);
|
|
6251
6253
|
try {
|
|
6252
6254
|
i.hooks && (t = i.hooks.preprocess(t));
|
|
6253
|
-
let n = (i.hooks ? i.hooks.provideLexer() : e ?
|
|
6255
|
+
let n = (i.hooks ? i.hooks.provideLexer() : e ? Bi.lex : Bi.lexInline)(t, i);
|
|
6254
6256
|
i.hooks && (n = i.hooks.processAllTokens(n)), i.walkTokens && this.walkTokens(n, i.walkTokens);
|
|
6255
|
-
let r = (i.hooks ? i.hooks.provideParser() : e ?
|
|
6257
|
+
let r = (i.hooks ? i.hooks.provideParser() : e ? Ui.parse : Ui.parseInline)(n, i);
|
|
6256
6258
|
return i.hooks && (r = i.hooks.postprocess(r)), r;
|
|
6257
6259
|
} catch (e) {
|
|
6258
6260
|
return a(e);
|
|
@@ -6262,7 +6264,7 @@ ${e}</tr>
|
|
|
6262
6264
|
onError(e, t) {
|
|
6263
6265
|
return (n) => {
|
|
6264
6266
|
if (n.message += "\nPlease report this to https://github.com/markedjs/marked.", e) {
|
|
6265
|
-
let e = "<p>An error occurred:</p><pre>" +
|
|
6267
|
+
let e = "<p>An error occurred:</p><pre>" + ji(n.message + "", !0) + "</pre>";
|
|
6266
6268
|
return t ? Promise.resolve(e) : e;
|
|
6267
6269
|
}
|
|
6268
6270
|
if (t) return Promise.reject(n);
|
|
@@ -6271,16 +6273,16 @@ ${e}</tr>
|
|
|
6271
6273
|
}
|
|
6272
6274
|
}();
|
|
6273
6275
|
function $(e, t) {
|
|
6274
|
-
return
|
|
6276
|
+
return Gi.parse(e, t);
|
|
6275
6277
|
}
|
|
6276
6278
|
$.options = $.setOptions = function(e) {
|
|
6277
|
-
return
|
|
6278
|
-
}, $.getDefaults =
|
|
6279
|
-
return
|
|
6279
|
+
return Gi.setOptions(e), $.defaults = Gi.defaults, br($.defaults), $;
|
|
6280
|
+
}, $.getDefaults = vr, $.defaults = yr, $.use = function(...e) {
|
|
6281
|
+
return Gi.use(...e), $.defaults = Gi.defaults, br($.defaults), $;
|
|
6280
6282
|
}, $.walkTokens = function(e, t) {
|
|
6281
|
-
return
|
|
6282
|
-
}, $.parseInline =
|
|
6283
|
-
var
|
|
6283
|
+
return Gi.walkTokens(e, t);
|
|
6284
|
+
}, $.parseInline = Gi.parseInline, $.Parser = Ui, $.parser = Ui.parse, $.Renderer = Vi, $.TextRenderer = Hi, $.Lexer = Bi, $.lexer = Bi.lex, $.Tokenizer = zi, $.Hooks = Wi, $.parse = $, $.options, $.setOptions, $.use, $.walkTokens, $.parseInline, Ui.parse, Bi.lex;
|
|
6285
|
+
var Ki = () => {
|
|
6284
6286
|
let e, t = null, n;
|
|
6285
6287
|
function r() {
|
|
6286
6288
|
if (t && !t.closed) t.focus();
|
|
@@ -6367,61 +6369,61 @@ var Ui = () => {
|
|
|
6367
6369
|
},
|
|
6368
6370
|
open: r
|
|
6369
6371
|
};
|
|
6370
|
-
},
|
|
6371
|
-
function
|
|
6372
|
-
e.removeKeyBinding(
|
|
6373
|
-
keyCode:
|
|
6372
|
+
}, qi = 16 / 9, Ji = 1280, Yi = Ji / qi, Xi = 67;
|
|
6373
|
+
function Zi({ deck: e, enabled: t, onToggle: n }) {
|
|
6374
|
+
e.removeKeyBinding(Xi), t && e.addKeyBinding({
|
|
6375
|
+
keyCode: Xi,
|
|
6374
6376
|
key: "C",
|
|
6375
6377
|
description: "Toggle code editor"
|
|
6376
6378
|
}, n);
|
|
6377
6379
|
}
|
|
6378
|
-
function
|
|
6380
|
+
function Qi(e) {
|
|
6379
6381
|
let t = e.getSlidesElement();
|
|
6380
6382
|
if (t) for (let e of t.querySelectorAll("section.stack[data-previous-indexv]")) e.removeAttribute("data-previous-indexv");
|
|
6381
6383
|
}
|
|
6382
|
-
var
|
|
6384
|
+
var $i = /* @__PURE__ */ new Set([
|
|
6383
6385
|
" ",
|
|
6384
6386
|
"Spacebar",
|
|
6385
6387
|
"ArrowRight",
|
|
6386
6388
|
"ArrowDown",
|
|
6387
6389
|
"PageDown"
|
|
6388
|
-
]),
|
|
6390
|
+
]), ea = /* @__PURE__ */ new Set([
|
|
6389
6391
|
"ArrowLeft",
|
|
6390
6392
|
"ArrowUp",
|
|
6391
6393
|
"PageUp"
|
|
6392
6394
|
]);
|
|
6393
|
-
function
|
|
6394
|
-
return
|
|
6395
|
+
function ta(e) {
|
|
6396
|
+
return $i.has(e.key) ? 1 : ea.has(e.key) ? -1 : 0;
|
|
6395
6397
|
}
|
|
6396
|
-
function
|
|
6397
|
-
let t = (0,
|
|
6398
|
+
function na(e) {
|
|
6399
|
+
let t = (0, ie.c)(4), n;
|
|
6398
6400
|
t[0] === Symbol.for("react.memo_cache_sentinel") ? (n = {
|
|
6399
|
-
width:
|
|
6400
|
-
height:
|
|
6401
|
+
width: Ji,
|
|
6402
|
+
height: Yi
|
|
6401
6403
|
}, t[0] = n) : n = t[0];
|
|
6402
|
-
let [r, i] = (0,
|
|
6404
|
+
let [r, i] = (0, N.useState)(n), a, o;
|
|
6403
6405
|
return t[1] === e ? (a = t[2], o = t[3]) : (a = () => {
|
|
6404
6406
|
let t = e.current;
|
|
6405
6407
|
if (!t) return;
|
|
6406
6408
|
let n = new ResizeObserver((e) => {
|
|
6407
6409
|
let { width: t, height: n } = e[0].contentRect;
|
|
6408
6410
|
if (t <= 0 || n <= 0) return;
|
|
6409
|
-
let r = Math.min(t, n *
|
|
6411
|
+
let r = Math.min(t, n * qi), a = r / qi;
|
|
6410
6412
|
i({
|
|
6411
6413
|
width: Math.round(r),
|
|
6412
6414
|
height: Math.round(a)
|
|
6413
6415
|
});
|
|
6414
6416
|
});
|
|
6415
6417
|
return n.observe(t), () => n.disconnect();
|
|
6416
|
-
}, o = [e], t[1] = e, t[2] = a, t[3] = o), (0,
|
|
6418
|
+
}, o = [e], t[1] = e, t[2] = a, t[3] = o), (0, N.useEffect)(a, o), r;
|
|
6417
6419
|
}
|
|
6418
|
-
var
|
|
6419
|
-
let t = (0,
|
|
6420
|
+
var ra = (e) => {
|
|
6421
|
+
let t = (0, ie.c)(6), { text: n } = e, r, i;
|
|
6420
6422
|
if (t[0] !== n) {
|
|
6421
6423
|
let e = n.split("\n");
|
|
6422
6424
|
r = "notes", i = e.map((t, n) => {
|
|
6423
6425
|
let r = n === e.length - 1;
|
|
6424
|
-
return t === "---" ? /* @__PURE__ */ (0, G.jsx)("hr", {}, n) : /* @__PURE__ */ (0, G.jsxs)(
|
|
6426
|
+
return t === "---" ? /* @__PURE__ */ (0, G.jsx)("hr", {}, n) : /* @__PURE__ */ (0, G.jsxs)(N.Fragment, { children: [t, !r && /* @__PURE__ */ (0, G.jsx)("br", {})] }, n);
|
|
6425
6427
|
}), t[0] = n, t[1] = r, t[2] = i;
|
|
6426
6428
|
} else r = t[1], i = t[2];
|
|
6427
6429
|
let a;
|
|
@@ -6430,23 +6432,23 @@ var Qi = (e) => {
|
|
|
6430
6432
|
children: i
|
|
6431
6433
|
}), t[3] = r, t[4] = i, t[5] = a) : a = t[5], a;
|
|
6432
6434
|
};
|
|
6433
|
-
function
|
|
6435
|
+
function ia(e) {
|
|
6434
6436
|
let { cells: t, cellId: n, showCodeOverrides: r, codeAvailable: i } = e;
|
|
6435
6437
|
return n == null || !i ? !1 : (t.get(n)?.showCode ?? !1) || r.has(n);
|
|
6436
6438
|
}
|
|
6437
|
-
function
|
|
6439
|
+
function aa(e) {
|
|
6438
6440
|
let { cell: t, noOutputIds: n, heldEditCellId: r, slideConfigs: i } = e;
|
|
6439
6441
|
return n.has(t.id) || t.id === r ? "skip" : i.get(t.id)?.type ?? "slide";
|
|
6440
6442
|
}
|
|
6441
|
-
function
|
|
6442
|
-
let t = (0,
|
|
6443
|
+
function oa(e) {
|
|
6444
|
+
let t = (0, ie.c)(15), { activeCell: n, slideConfigs: r, noOutputIds: i } = e, a = n?.id ?? null, o;
|
|
6443
6445
|
t[0] !== n || t[1] !== i ? (o = n != null && i.has(n.id), t[0] = n, t[1] = i, t[2] = o) : o = t[2];
|
|
6444
6446
|
let s = o, c = n != null && r.get(n.id)?.type === "skip" || s, l;
|
|
6445
6447
|
t[3] === a ? l = t[4] : (l = {
|
|
6446
6448
|
activeCellId: a,
|
|
6447
6449
|
cellId: null
|
|
6448
6450
|
}, t[3] = a, t[4] = l);
|
|
6449
|
-
let [u, d] = (0,
|
|
6451
|
+
let [u, d] = (0, N.useState)(l), f = u.cellId;
|
|
6450
6452
|
u.activeCellId === a ? s && f !== a && (f = a, d({
|
|
6451
6453
|
activeCellId: a,
|
|
6452
6454
|
cellId: f
|
|
@@ -6459,14 +6461,14 @@ function ta(e) {
|
|
|
6459
6461
|
cellId: m,
|
|
6460
6462
|
show: !0
|
|
6461
6463
|
}, t[5] = m, t[6] = h);
|
|
6462
|
-
let [g, _] = (0,
|
|
6464
|
+
let [g, _] = (0, N.useState)(h), v = g.show;
|
|
6463
6465
|
g.cellId !== m && (v = !0, _({
|
|
6464
6466
|
cellId: m,
|
|
6465
6467
|
show: !0
|
|
6466
6468
|
}));
|
|
6467
6469
|
let y;
|
|
6468
|
-
t[7] === Symbol.for("react.memo_cache_sentinel") ? (y = () => _(
|
|
6469
|
-
let b =
|
|
6470
|
+
t[7] === Symbol.for("react.memo_cache_sentinel") ? (y = () => _(sa), t[7] = y) : y = t[7];
|
|
6471
|
+
let b = j(y), x = c || p ? n ?? null : null, S;
|
|
6470
6472
|
return t[8] !== m || t[9] !== v || t[10] !== p || t[11] !== s || t[12] !== x || t[13] !== b ? (S = {
|
|
6471
6473
|
parkedPreviewCell: x,
|
|
6472
6474
|
isHeldEdit: p,
|
|
@@ -6476,53 +6478,53 @@ function ta(e) {
|
|
|
6476
6478
|
toggleHeldShowsCode: b
|
|
6477
6479
|
}, t[8] = m, t[9] = v, t[10] = p, t[11] = s, t[12] = x, t[13] = b, t[14] = S) : S = t[14], S;
|
|
6478
6480
|
}
|
|
6479
|
-
function
|
|
6481
|
+
function sa(e) {
|
|
6480
6482
|
return {
|
|
6481
6483
|
...e,
|
|
6482
6484
|
show: !e.show
|
|
6483
6485
|
};
|
|
6484
6486
|
}
|
|
6485
|
-
function
|
|
6487
|
+
function ca(e) {
|
|
6486
6488
|
switch (e ?? "center") {
|
|
6487
6489
|
case "top": return { margin: "0 20px auto" };
|
|
6488
6490
|
case "bottom": return { margin: "auto 20px 0" };
|
|
6489
6491
|
default: return { margin: "auto 20px" };
|
|
6490
6492
|
}
|
|
6491
6493
|
}
|
|
6492
|
-
var
|
|
6493
|
-
let t = (0,
|
|
6494
|
-
t[0] !== n.id || t[1] !== n.name ? (
|
|
6495
|
-
let
|
|
6496
|
-
t[3]
|
|
6497
|
-
let
|
|
6498
|
-
t[
|
|
6499
|
-
cellId:
|
|
6500
|
-
status:
|
|
6501
|
-
output:
|
|
6502
|
-
stale:
|
|
6503
|
-
}), t[
|
|
6504
|
-
let
|
|
6505
|
-
return t[
|
|
6494
|
+
var la = (e) => {
|
|
6495
|
+
let t = (0, ie.c)(14), { cell: n } = e, r = p(n.id), i = b(n.id), a;
|
|
6496
|
+
t[0] !== n.id || t[1] !== n.name ? (a = S(n.id, n.name), t[0] = n.id, t[1] = n.name, t[2] = a) : a = t[2];
|
|
6497
|
+
let o = n.id, s = r.status, c = n.output, l;
|
|
6498
|
+
t[3] !== r || t[4] !== i ? (l = E(r, i, !1), t[3] = r, t[4] = i, t[5] = l) : l = t[5];
|
|
6499
|
+
let u;
|
|
6500
|
+
t[6] !== n.id || t[7] !== n.output || t[8] !== r.status || t[9] !== l ? (u = /* @__PURE__ */ (0, G.jsx)(C, {
|
|
6501
|
+
cellId: o,
|
|
6502
|
+
status: s,
|
|
6503
|
+
output: c,
|
|
6504
|
+
stale: l
|
|
6505
|
+
}), t[6] = n.id, t[7] = n.output, t[8] = r.status, t[9] = l, t[10] = u) : u = t[10];
|
|
6506
|
+
let d;
|
|
6507
|
+
return t[11] !== a || t[12] !== u ? (d = /* @__PURE__ */ (0, G.jsx)("div", {
|
|
6506
6508
|
className: "flex flex-col",
|
|
6507
|
-
...
|
|
6508
|
-
children:
|
|
6509
|
-
}), t[
|
|
6510
|
-
},
|
|
6511
|
-
let t = (0,
|
|
6509
|
+
...a,
|
|
6510
|
+
children: u
|
|
6511
|
+
}), t[11] = a, t[12] = u, t[13] = d) : d = t[13], d;
|
|
6512
|
+
}, ua = (e) => {
|
|
6513
|
+
let t = (0, ie.c)(24), { subslide: n, resolveShowCode: r, isEditable: i, slideConfigs: a, contentStyle: o } = e, s, c, l, u, d, f;
|
|
6512
6514
|
if (t[0] !== o || t[1] !== i || t[2] !== r || t[3] !== a || t[4] !== n) {
|
|
6513
|
-
let { slideLevel: e, cumulativeByBlock: p } =
|
|
6515
|
+
let { slideLevel: e, cumulativeByBlock: p } = gr(n, a);
|
|
6514
6516
|
l = e;
|
|
6515
6517
|
let m = n.blocks.some((e) => e.cells.some((e) => r(e.id)));
|
|
6516
|
-
c =
|
|
6517
|
-
let n = e.cells.map((e) => r(e.id) ? i ? /* @__PURE__ */ (0, G.jsx)(
|
|
6518
|
+
c = yt, s = nr, u = m ? "mo-slide-content flex flex-col gap-3" : "mo-slide-content", d = o, f = n.blocks.map((e, t) => {
|
|
6519
|
+
let n = e.cells.map((e) => r(e.id) ? i ? /* @__PURE__ */ (0, G.jsx)(lr, { cell: e }, e.id) : /* @__PURE__ */ (0, G.jsx)(ur, { cell: e }, e.id) : /* @__PURE__ */ (0, G.jsx)(la, { cell: e }, e.id));
|
|
6518
6520
|
if (e.isFragment) {
|
|
6519
|
-
let
|
|
6520
|
-
return /* @__PURE__ */ (0, G.jsxs)(
|
|
6521
|
+
let r = p.get(t);
|
|
6522
|
+
return /* @__PURE__ */ (0, G.jsxs)(Yn, {
|
|
6521
6523
|
as: "div",
|
|
6522
|
-
children: [n,
|
|
6523
|
-
},
|
|
6524
|
+
children: [n, r && /* @__PURE__ */ (0, G.jsx)(ra, { text: r })]
|
|
6525
|
+
}, e.cells[0].id);
|
|
6524
6526
|
}
|
|
6525
|
-
return /* @__PURE__ */ (0, G.jsx)(
|
|
6527
|
+
return /* @__PURE__ */ (0, G.jsx)(N.Fragment, { children: n }, e.cells[0].id);
|
|
6526
6528
|
}), t[0] = o, t[1] = i, t[2] = r, t[3] = a, t[4] = n, t[5] = s, t[6] = c, t[7] = l, t[8] = u, t[9] = d, t[10] = f;
|
|
6527
6529
|
} else s = t[5], c = t[6], l = t[7], u = t[8], d = t[9], f = t[10];
|
|
6528
6530
|
let p;
|
|
@@ -6534,255 +6536,276 @@ var ia = (e) => {
|
|
|
6534
6536
|
let m;
|
|
6535
6537
|
t[15] !== s || t[16] !== p ? (m = /* @__PURE__ */ (0, G.jsx)(s, { children: p }), t[15] = s, t[16] = p, t[17] = m) : m = t[17];
|
|
6536
6538
|
let h;
|
|
6537
|
-
t[18] === l ? h = t[19] : (h = l && /* @__PURE__ */ (0, G.jsx)(
|
|
6539
|
+
t[18] === l ? h = t[19] : (h = l && /* @__PURE__ */ (0, G.jsx)(ra, { text: l }), t[18] = l, t[19] = h);
|
|
6538
6540
|
let g;
|
|
6539
6541
|
return t[20] !== c || t[21] !== m || t[22] !== h ? (g = /* @__PURE__ */ (0, G.jsxs)(c, { children: [m, h] }), t[20] = c, t[21] = m, t[22] = h, t[23] = g) : g = t[23], g;
|
|
6540
6542
|
};
|
|
6541
|
-
function
|
|
6543
|
+
function da(e) {
|
|
6542
6544
|
let { isNoOutputPreview: t, isEditable: n, showCode: r } = e;
|
|
6543
6545
|
return t && n || r;
|
|
6544
6546
|
}
|
|
6545
|
-
var
|
|
6546
|
-
let t = (0,
|
|
6547
|
-
if (
|
|
6547
|
+
var fa = (e) => {
|
|
6548
|
+
let t = (0, ie.c)(5), { cell: n, isNoOutputPreview: r, isEditable: i, showCode: a } = e;
|
|
6549
|
+
if (da({
|
|
6548
6550
|
isNoOutputPreview: r,
|
|
6549
6551
|
isEditable: i,
|
|
6550
6552
|
showCode: a
|
|
6551
6553
|
})) {
|
|
6552
6554
|
let e;
|
|
6553
|
-
return t[0] !== n || t[1] !== i ? (e = i ? /* @__PURE__ */ (0, G.jsx)(
|
|
6555
|
+
return t[0] !== n || t[1] !== i ? (e = i ? /* @__PURE__ */ (0, G.jsx)(lr, { cell: n }) : /* @__PURE__ */ (0, G.jsx)(ur, { cell: n }), t[0] = n, t[1] = i, t[2] = e) : e = t[2], e;
|
|
6554
6556
|
}
|
|
6555
6557
|
let o;
|
|
6556
|
-
return t[3] === n ? o = t[4] : (o = /* @__PURE__ */ (0, G.jsx)(
|
|
6557
|
-
},
|
|
6558
|
-
let
|
|
6559
|
-
|
|
6560
|
-
|
|
6561
|
-
|
|
6562
|
-
|
|
6563
|
-
|
|
6564
|
-
|
|
6565
|
-
|
|
6558
|
+
return t[3] === n ? o = t[4] : (o = /* @__PURE__ */ (0, G.jsx)(la, { cell: n }), t[3] = n, t[4] = o), o;
|
|
6559
|
+
}, pa = (e) => {
|
|
6560
|
+
let t = (0, ie.c)(164), { slideCells: o, layout: s, setLayout: c, noOutputIds: p, activeIndex: b, onSlideChange: S, mode: C, configWidth: w, isEditable: T } = e, E = T !== void 0 && T, D = (0, N.useRef)(null), k = (0, N.useRef)(null), { width: M, height: ae } = na(D), P = ee() != null, [oe, se] = (0, N.useState)(1), ce;
|
|
6561
|
+
t[0] === Symbol.for("react.memo_cache_sentinel") ? (ce = () => {
|
|
6562
|
+
let e = requestAnimationFrame(() => {
|
|
6563
|
+
let e = k.current;
|
|
6564
|
+
e && (e.layout(), se(e.getScale()));
|
|
6565
|
+
});
|
|
6566
|
+
return () => cancelAnimationFrame(e);
|
|
6567
|
+
}, t[0] = ce) : ce = t[0];
|
|
6568
|
+
let F;
|
|
6569
|
+
t[1] !== ae || t[2] !== P || t[3] !== M ? (F = [
|
|
6570
|
+
M,
|
|
6571
|
+
ae,
|
|
6572
|
+
P
|
|
6573
|
+
], t[1] = ae, t[2] = P, t[3] = M, t[4] = F) : F = t[4], (0, N.useEffect)(ce, F);
|
|
6574
|
+
let I = O(te), le = O(ne).kind, ue = O(_r), de = le !== "wasm" || ue, fe;
|
|
6575
|
+
t[5] !== I || t[6] !== le ? (fe = I || !_(le) ? [] : [Ki], t[5] = I, t[6] = le, t[7] = fe) : fe = t[7];
|
|
6576
|
+
let pe = fe, [me, he] = (0, N.useState)(ma), ge = re(), _e;
|
|
6577
|
+
t[8] === ge ? _e = t[9] : (_e = !A() && ge, t[8] = ge, t[9] = _e);
|
|
6566
6578
|
let ve = _e, ye;
|
|
6567
|
-
|
|
6568
|
-
|
|
6579
|
+
t[10] === I ? ye = t[11] : (ye = x(I, window.location.search), t[10] = I, t[11] = ye);
|
|
6580
|
+
let be = !ye && ve, L = b == null ? void 0 : o[b], xe;
|
|
6581
|
+
t[12] !== L || t[13] !== o ? (xe = L ?? o.at(0), t[12] = L, t[13] = o, t[14] = xe) : xe = t[14];
|
|
6582
|
+
let Se = xe, Ce;
|
|
6583
|
+
t[15] !== L || t[16] !== s.cells || t[17] !== p ? (Ce = {
|
|
6584
|
+
activeCell: L,
|
|
6569
6585
|
slideConfigs: s.cells,
|
|
6570
|
-
noOutputIds:
|
|
6571
|
-
},
|
|
6572
|
-
let { parkedPreviewCell:
|
|
6573
|
-
|
|
6586
|
+
noOutputIds: p
|
|
6587
|
+
}, t[15] = L, t[16] = s.cells, t[17] = p, t[18] = Ce) : Ce = t[18];
|
|
6588
|
+
let { parkedPreviewCell: R, isHeldEdit: z, isNoOutputPreview: B, heldEditCellId: we, heldShowsCode: Te, toggleHeldShowsCode: Ee } = oa(Ce), De;
|
|
6589
|
+
t[19] !== ve || t[20] !== s.cells || t[21] !== me ? (De = (e) => ia({
|
|
6574
6590
|
cells: s.cells,
|
|
6575
6591
|
cellId: e,
|
|
6576
|
-
showCodeOverrides:
|
|
6577
|
-
codeAvailable:
|
|
6578
|
-
}),
|
|
6579
|
-
let
|
|
6580
|
-
|
|
6581
|
-
let
|
|
6582
|
-
|
|
6583
|
-
let
|
|
6584
|
-
|
|
6592
|
+
showCodeOverrides: me,
|
|
6593
|
+
codeAvailable: ve
|
|
6594
|
+
}), t[19] = ve, t[20] = s.cells, t[21] = me, t[22] = De) : De = t[22];
|
|
6595
|
+
let Oe = De, V = L?.id ?? Se?.id, ke;
|
|
6596
|
+
t[23] !== V || t[24] !== Te || t[25] !== z || t[26] !== Oe ? (ke = z ? Te : Oe(V), t[23] = V, t[24] = Te, t[25] = z, t[26] = Oe, t[27] = ke) : ke = t[27];
|
|
6597
|
+
let Ae = ke, je;
|
|
6598
|
+
t[28] !== V || t[29] !== ve || t[30] !== s.cells ? (je = ve && V != null && (s.cells.get(V)?.showCode ?? !1), t[28] = V, t[29] = ve, t[30] = s.cells, t[31] = je) : je = t[31];
|
|
6599
|
+
let Me = je, Ne;
|
|
6600
|
+
t[32] !== we || t[33] !== s.cells || t[34] !== p ? (Ne = (e) => aa({
|
|
6585
6601
|
cell: e,
|
|
6586
|
-
noOutputIds:
|
|
6587
|
-
heldEditCellId:
|
|
6602
|
+
noOutputIds: p,
|
|
6603
|
+
heldEditCellId: we,
|
|
6588
6604
|
slideConfigs: s.cells
|
|
6589
|
-
}),
|
|
6590
|
-
let
|
|
6591
|
-
|
|
6605
|
+
}), t[32] = we, t[33] = s.cells, t[34] = p, t[35] = Ne) : Ne = t[35];
|
|
6606
|
+
let Pe;
|
|
6607
|
+
t[36] !== o || t[37] !== Ne ? (Pe = rr({
|
|
6592
6608
|
cells: o,
|
|
6593
|
-
getType:
|
|
6594
|
-
}),
|
|
6595
|
-
let
|
|
6596
|
-
|
|
6597
|
-
composition:
|
|
6609
|
+
getType: Ne
|
|
6610
|
+
}), t[36] = o, t[37] = Ne, t[38] = Pe) : Pe = t[38];
|
|
6611
|
+
let Fe = Pe, Ie;
|
|
6612
|
+
t[39] !== Fe || t[40] !== o ? (Ie = ir({
|
|
6613
|
+
composition: Fe,
|
|
6598
6614
|
cells: o,
|
|
6599
|
-
getId:
|
|
6600
|
-
}),
|
|
6601
|
-
let { cellToTarget:
|
|
6602
|
-
|
|
6603
|
-
let
|
|
6604
|
-
|
|
6605
|
-
let
|
|
6606
|
-
|
|
6615
|
+
getId: ha
|
|
6616
|
+
}), t[39] = Fe, t[40] = o, t[41] = Ie) : Ie = t[41];
|
|
6617
|
+
let { cellToTarget: Le, targetToCellIndex: H } = Ie, Re = s.deck?.transition ?? "slide", ze = s.deck?.verticalAlign, Be;
|
|
6618
|
+
t[42] === ze ? Be = t[43] : (Be = ca(ze), t[42] = ze, t[43] = Be);
|
|
6619
|
+
let Ve = Be, He;
|
|
6620
|
+
t[44] === Symbol.for("react.memo_cache_sentinel") ? (He = y(window.location.href), t[44] = He) : He = t[44];
|
|
6621
|
+
let Ue = He, U;
|
|
6622
|
+
t[45] === Re ? U = t[46] : (U = {
|
|
6607
6623
|
embedded: !0,
|
|
6608
|
-
width:
|
|
6609
|
-
height:
|
|
6624
|
+
width: Ji,
|
|
6625
|
+
height: Yi,
|
|
6610
6626
|
center: !1,
|
|
6611
|
-
minScale:
|
|
6627
|
+
minScale: 0,
|
|
6612
6628
|
maxScale: 2,
|
|
6613
|
-
transition:
|
|
6614
|
-
keyboardCondition:
|
|
6615
|
-
url:
|
|
6629
|
+
transition: Re,
|
|
6630
|
+
keyboardCondition: ga,
|
|
6631
|
+
url: Ue,
|
|
6616
6632
|
scrollActivationWidth: 0
|
|
6617
|
-
},
|
|
6618
|
-
let
|
|
6619
|
-
|
|
6620
|
-
if (
|
|
6621
|
-
if (!
|
|
6622
|
-
window.dispatchEvent(new HashChangeEvent("hashchange")),
|
|
6633
|
+
}, t[45] = Re, t[46] = U);
|
|
6634
|
+
let We = U, Ge;
|
|
6635
|
+
t[47] !== b || t[48] !== de || t[49] !== Le || t[50] !== o ? (Ge = (e) => {
|
|
6636
|
+
if (b == null && window.location.hash.startsWith("#/")) {
|
|
6637
|
+
if (!de) return;
|
|
6638
|
+
window.dispatchEvent(new HashChangeEvent("hashchange")), Qi(e);
|
|
6623
6639
|
return;
|
|
6624
6640
|
}
|
|
6625
|
-
let t =
|
|
6626
|
-
activeIndex:
|
|
6641
|
+
let t = sr({
|
|
6642
|
+
activeIndex: b,
|
|
6627
6643
|
cells: o,
|
|
6628
|
-
cellToTarget:
|
|
6629
|
-
getId:
|
|
6630
|
-
}), n = t &&
|
|
6631
|
-
n && (e.slide(n.h, n.v, n.f),
|
|
6632
|
-
},
|
|
6633
|
-
let
|
|
6634
|
-
|
|
6635
|
-
let e =
|
|
6636
|
-
e != null &&
|
|
6637
|
-
},
|
|
6638
|
-
let
|
|
6639
|
-
|
|
6640
|
-
|
|
6641
|
-
|
|
6642
|
-
|
|
6644
|
+
cellToTarget: Le,
|
|
6645
|
+
getId: _a
|
|
6646
|
+
}), n = t && cr(e.getIndices(), t);
|
|
6647
|
+
n && (e.slide(n.h, n.v, n.f), Qi(e));
|
|
6648
|
+
}, t[47] = b, t[48] = de, t[49] = Le, t[50] = o, t[51] = Ge) : Ge = t[51];
|
|
6649
|
+
let Ke = j(Ge), qe;
|
|
6650
|
+
t[52] === Ke ? qe = t[53] : (qe = () => {
|
|
6651
|
+
let e = k.current;
|
|
6652
|
+
e != null && Ke(e);
|
|
6653
|
+
}, t[52] = Ke, t[53] = qe);
|
|
6654
|
+
let Je;
|
|
6655
|
+
t[54] !== b || t[55] !== de || t[56] !== Le || t[57] !== Ke || t[58] !== o ? (Je = [
|
|
6656
|
+
b,
|
|
6657
|
+
de,
|
|
6658
|
+
Le,
|
|
6643
6659
|
o,
|
|
6644
|
-
|
|
6645
|
-
],
|
|
6646
|
-
let
|
|
6647
|
-
|
|
6648
|
-
if (!(V == null ||
|
|
6649
|
-
if (
|
|
6650
|
-
|
|
6660
|
+
Ke
|
|
6661
|
+
], t[54] = b, t[55] = de, t[56] = Le, t[57] = Ke, t[58] = o, t[59] = Je) : Je = t[59], (0, N.useEffect)(qe, Je);
|
|
6662
|
+
let Ye;
|
|
6663
|
+
t[60] !== V || t[61] !== Me || t[62] !== z || t[63] !== Ee ? (Ye = () => {
|
|
6664
|
+
if (!(V == null || Me)) {
|
|
6665
|
+
if (z) {
|
|
6666
|
+
Ee();
|
|
6651
6667
|
return;
|
|
6652
6668
|
}
|
|
6653
|
-
(0,
|
|
6669
|
+
(0, N.startTransition)(() => he((e) => {
|
|
6654
6670
|
let t = new Set(e);
|
|
6655
6671
|
return t.has(V) ? t.delete(V) : t.add(V), t;
|
|
6656
6672
|
}));
|
|
6657
6673
|
}
|
|
6658
|
-
},
|
|
6659
|
-
let
|
|
6660
|
-
|
|
6661
|
-
let e =
|
|
6662
|
-
return e &&
|
|
6674
|
+
}, t[60] = V, t[61] = Me, t[62] = z, t[63] = Ee, t[64] = Ye) : Ye = t[64];
|
|
6675
|
+
let Xe = j(Ye), Ze, Qe;
|
|
6676
|
+
t[65] !== be || t[66] !== Xe ? (Ze = () => {
|
|
6677
|
+
let e = k.current;
|
|
6678
|
+
return e && Zi({
|
|
6663
6679
|
deck: e,
|
|
6664
|
-
enabled:
|
|
6665
|
-
onToggle:
|
|
6680
|
+
enabled: be,
|
|
6681
|
+
onToggle: Xe
|
|
6666
6682
|
}), () => {
|
|
6667
|
-
|
|
6683
|
+
k.current?.removeKeyBinding(Xi);
|
|
6668
6684
|
};
|
|
6669
|
-
},
|
|
6670
|
-
let
|
|
6671
|
-
|
|
6672
|
-
if (
|
|
6673
|
-
let t =
|
|
6685
|
+
}, Qe = [be, Xe], t[65] = be, t[66] = Xe, t[67] = Ze, t[68] = Qe) : (Ze = t[67], Qe = t[68]), (0, N.useEffect)(Ze, Qe);
|
|
6686
|
+
let $e;
|
|
6687
|
+
t[69] !== S || t[70] !== R || t[71] !== H ? ($e = (e) => {
|
|
6688
|
+
if (R != null) return;
|
|
6689
|
+
let t = ar(H, e.getIndices());
|
|
6674
6690
|
t != null && S?.(t);
|
|
6675
|
-
},
|
|
6676
|
-
let
|
|
6677
|
-
|
|
6678
|
-
let e =
|
|
6679
|
-
e &&
|
|
6680
|
-
},
|
|
6681
|
-
let
|
|
6682
|
-
|
|
6683
|
-
|
|
6691
|
+
}, t[69] = S, t[70] = R, t[71] = H, t[72] = $e) : $e = t[72];
|
|
6692
|
+
let et = j($e), tt;
|
|
6693
|
+
t[73] === et ? tt = t[74] : (tt = () => {
|
|
6694
|
+
let e = k.current;
|
|
6695
|
+
e && et(e);
|
|
6696
|
+
}, t[73] = et, t[74] = tt);
|
|
6697
|
+
let nt = j(tt), rt;
|
|
6698
|
+
t[75] !== de || t[76] !== be || t[77] !== Ke || t[78] !== et || t[79] !== Xe ? (rt = (e) => {
|
|
6699
|
+
se(e.getScale()), Ke(e), de && et(e), Zi({
|
|
6684
6700
|
deck: e,
|
|
6685
|
-
enabled:
|
|
6686
|
-
onToggle:
|
|
6701
|
+
enabled: be,
|
|
6702
|
+
onToggle: Xe
|
|
6687
6703
|
});
|
|
6688
6704
|
let t = e.getSlidesElement()?.closest(".reveal");
|
|
6689
6705
|
t instanceof HTMLElement && (t.tabIndex = -1, t.focus({ preventScroll: !0 }));
|
|
6690
|
-
},
|
|
6691
|
-
let
|
|
6692
|
-
|
|
6693
|
-
if (!
|
|
6694
|
-
let t =
|
|
6706
|
+
}, t[75] = de, t[76] = be, t[77] = Ke, t[78] = et, t[79] = Xe, t[80] = rt) : rt = t[80];
|
|
6707
|
+
let it = j(rt), at;
|
|
6708
|
+
t[81] !== b || t[82] !== S || t[83] !== R || t[84] !== o ? (at = (e) => {
|
|
6709
|
+
if (!R || b == null || i.fromInput(e)) return;
|
|
6710
|
+
let t = ta(e);
|
|
6695
6711
|
if (t === 0) return;
|
|
6696
6712
|
e.preventDefault(), e.stopPropagation();
|
|
6697
|
-
let n =
|
|
6713
|
+
let n = b + t;
|
|
6698
6714
|
n < 0 || n >= o.length || S?.(n);
|
|
6699
|
-
},
|
|
6700
|
-
let
|
|
6701
|
-
|
|
6702
|
-
|
|
6703
|
-
},
|
|
6704
|
-
let
|
|
6705
|
-
|
|
6706
|
-
let
|
|
6707
|
-
|
|
6708
|
-
let
|
|
6709
|
-
|
|
6715
|
+
}, t[81] = b, t[82] = S, t[83] = R, t[84] = o, t[85] = at) : at = t[85];
|
|
6716
|
+
let ot = j(at), st;
|
|
6717
|
+
t[86] === nt ? st = t[87] : (st = () => {
|
|
6718
|
+
nt();
|
|
6719
|
+
}, t[86] = nt, t[87] = st);
|
|
6720
|
+
let W = j(st), ct;
|
|
6721
|
+
t[88] === Symbol.for("react.memo_cache_sentinel") ? (ct = { capture: !0 }, t[88] = ct) : ct = t[88], r(document, "keydown", ot, ct);
|
|
6722
|
+
let lt = z ? null : B ? "Hidden as there is no output" : "Skipped in presentation", ut;
|
|
6723
|
+
t[89] !== Te || t[90] !== z || t[91] !== R?.id || t[92] !== Oe ? (ut = z ? Te : Oe(R?.id), t[89] = Te, t[90] = z, t[91] = R?.id, t[92] = Oe, t[93] = ut) : ut = t[93];
|
|
6724
|
+
let dt = ut, ft;
|
|
6725
|
+
t[94] !== E || t[95] !== B || t[96] !== dt ? (ft = da({
|
|
6710
6726
|
isNoOutputPreview: B,
|
|
6711
|
-
isEditable:
|
|
6712
|
-
showCode:
|
|
6713
|
-
}),
|
|
6714
|
-
let
|
|
6715
|
-
|
|
6716
|
-
width:
|
|
6727
|
+
isEditable: E,
|
|
6728
|
+
showCode: dt
|
|
6729
|
+
}), t[94] = E, t[95] = B, t[96] = dt, t[97] = ft) : ft = t[97];
|
|
6730
|
+
let pt = ft, mt;
|
|
6731
|
+
t[98] !== ae || t[99] !== M ? (mt = {
|
|
6732
|
+
width: M,
|
|
6717
6733
|
height: ae
|
|
6718
|
-
},
|
|
6719
|
-
let
|
|
6720
|
-
if (
|
|
6734
|
+
}, t[98] = ae, t[99] = M, t[100] = mt) : mt = t[100];
|
|
6735
|
+
let ht;
|
|
6736
|
+
if (t[101] !== Fe.stacks || t[102] !== E || t[103] !== s.cells || t[104] !== Oe || t[105] !== Ve) {
|
|
6721
6737
|
let e;
|
|
6722
|
-
|
|
6738
|
+
t[107] !== E || t[108] !== s.cells || t[109] !== Oe || t[110] !== Ve ? (e = (e, t) => e.subslides.length === 1 ? /* @__PURE__ */ (0, G.jsx)(ua, {
|
|
6723
6739
|
subslide: e.subslides[0],
|
|
6724
|
-
resolveShowCode:
|
|
6725
|
-
isEditable:
|
|
6740
|
+
resolveShowCode: Oe,
|
|
6741
|
+
isEditable: E,
|
|
6726
6742
|
slideConfigs: s.cells,
|
|
6727
|
-
contentStyle:
|
|
6728
|
-
}, t) : /* @__PURE__ */ (0, G.jsx)(
|
|
6743
|
+
contentStyle: Ve
|
|
6744
|
+
}, t) : /* @__PURE__ */ (0, G.jsx)(bt, { children: e.subslides.map((e, t) => /* @__PURE__ */ (0, G.jsx)(ua, {
|
|
6729
6745
|
subslide: e,
|
|
6730
|
-
resolveShowCode:
|
|
6731
|
-
isEditable:
|
|
6746
|
+
resolveShowCode: Oe,
|
|
6747
|
+
isEditable: E,
|
|
6732
6748
|
slideConfigs: s.cells,
|
|
6733
|
-
contentStyle:
|
|
6734
|
-
}, t)) }, t),
|
|
6735
|
-
} else
|
|
6736
|
-
let
|
|
6737
|
-
|
|
6738
|
-
deckRef:
|
|
6749
|
+
contentStyle: Ve
|
|
6750
|
+
}, t)) }, t), t[107] = E, t[108] = s.cells, t[109] = Oe, t[110] = Ve, t[111] = e) : e = t[111], ht = Fe.stacks.map(e), t[101] = Fe.stacks, t[102] = E, t[103] = s.cells, t[104] = Oe, t[105] = Ve, t[106] = ht;
|
|
6751
|
+
} else ht = t[106];
|
|
6752
|
+
let _t;
|
|
6753
|
+
t[112] !== pe || t[113] !== it || t[114] !== W || t[115] !== nt || t[116] !== We || t[117] !== ht ? (_t = /* @__PURE__ */ (0, G.jsx)(gt, {
|
|
6754
|
+
deckRef: k,
|
|
6739
6755
|
className: "aspect-video w-full overflow-hidden border rounded bg-background mo-slides-theme prose-slides focus:outline-hidden focus-visible:outline-hidden",
|
|
6740
|
-
config:
|
|
6741
|
-
onReady:
|
|
6742
|
-
onSlideChange:
|
|
6743
|
-
onFragmentShown:
|
|
6744
|
-
onFragmentHidden:
|
|
6745
|
-
plugins:
|
|
6746
|
-
children:
|
|
6747
|
-
}),
|
|
6748
|
-
let
|
|
6749
|
-
|
|
6756
|
+
config: We,
|
|
6757
|
+
onReady: it,
|
|
6758
|
+
onSlideChange: W,
|
|
6759
|
+
onFragmentShown: nt,
|
|
6760
|
+
onFragmentHidden: nt,
|
|
6761
|
+
plugins: pe,
|
|
6762
|
+
children: ht
|
|
6763
|
+
}), t[112] = pe, t[113] = it, t[114] = W, t[115] = nt, t[116] = We, t[117] = ht, t[118] = _t) : _t = t[118];
|
|
6764
|
+
let K;
|
|
6765
|
+
t[119] !== E || t[120] !== B || t[121] !== R || t[122] !== lt || t[123] !== dt || t[124] !== pt || t[125] !== Ve || t[126] !== oe ? (K = R && /* @__PURE__ */ (0, G.jsxs)("div", {
|
|
6750
6766
|
className: "absolute inset-0 z-10 border rounded bg-background flex flex-col overflow-hidden",
|
|
6751
|
-
"aria-label":
|
|
6752
|
-
children: [
|
|
6767
|
+
"aria-label": lt ?? void 0,
|
|
6768
|
+
children: [lt && /* @__PURE__ */ (0, G.jsxs)("div", {
|
|
6753
6769
|
className: "flex items-center gap-1.5 px-3 py-1.5 text-xs text-muted-foreground border-b bg-muted/40",
|
|
6754
|
-
children: [/* @__PURE__ */ (0, G.jsx)(
|
|
6770
|
+
children: [/* @__PURE__ */ (0, G.jsx)(g, { className: "h-3.5 w-3.5" }), /* @__PURE__ */ (0, G.jsx)("span", { children: lt })]
|
|
6755
6771
|
}), /* @__PURE__ */ (0, G.jsx)("div", {
|
|
6756
|
-
className: "
|
|
6757
|
-
|
|
6758
|
-
|
|
6759
|
-
|
|
6760
|
-
|
|
6761
|
-
|
|
6772
|
+
className: "reveal mo-slides-theme prose-slides absolute left-1/2 top-1/2",
|
|
6773
|
+
"data-testid": "slide-preview-canvas",
|
|
6774
|
+
style: {
|
|
6775
|
+
position: "absolute",
|
|
6776
|
+
width: Ji,
|
|
6777
|
+
height: Yi,
|
|
6778
|
+
transform: `translate(-50%, -50%) scale(${oe})`
|
|
6779
|
+
},
|
|
6780
|
+
children: /* @__PURE__ */ (0, G.jsx)(nr, { children: /* @__PURE__ */ (0, G.jsx)("div", {
|
|
6781
|
+
className: pt ? "mo-slide-content flex flex-col gap-3" : "mo-slide-content",
|
|
6782
|
+
style: Ve,
|
|
6783
|
+
children: /* @__PURE__ */ (0, G.jsx)(fa, {
|
|
6784
|
+
cell: R,
|
|
6762
6785
|
isNoOutputPreview: B,
|
|
6763
|
-
isEditable:
|
|
6764
|
-
showCode:
|
|
6786
|
+
isEditable: E,
|
|
6787
|
+
showCode: dt
|
|
6765
6788
|
})
|
|
6766
|
-
})
|
|
6789
|
+
}) })
|
|
6767
6790
|
})]
|
|
6768
|
-
},
|
|
6769
|
-
let
|
|
6770
|
-
|
|
6771
|
-
content:
|
|
6791
|
+
}, R.id), t[119] = E, t[120] = B, t[121] = R, t[122] = lt, t[123] = dt, t[124] = pt, t[125] = Ve, t[126] = oe, t[127] = K) : K = t[127];
|
|
6792
|
+
let vt;
|
|
6793
|
+
t[128] !== Ae || t[129] !== Me || t[130] !== be || t[131] !== Xe ? (vt = be && /* @__PURE__ */ (0, G.jsx)(l, {
|
|
6794
|
+
content: Me ? "Code is always shown for this slide" : Ae ? "Hide code (C)" : "Show code (C)",
|
|
6772
6795
|
children: /* @__PURE__ */ (0, G.jsx)(a, {
|
|
6773
6796
|
"data-testid": "marimo-plugin-slides-toggle-code",
|
|
6774
6797
|
variant: "ghost",
|
|
6775
6798
|
size: "icon",
|
|
6776
|
-
className:
|
|
6777
|
-
"aria-pressed":
|
|
6778
|
-
"aria-disabled":
|
|
6779
|
-
"aria-label":
|
|
6780
|
-
onClick:
|
|
6781
|
-
children: /* @__PURE__ */ (0, G.jsx)(
|
|
6799
|
+
className: n("text-muted-foreground h-7 w-7", Ae && "text-foreground bg-muted", Me && "opacity-50 cursor-not-allowed"),
|
|
6800
|
+
"aria-pressed": Ae,
|
|
6801
|
+
"aria-disabled": Me,
|
|
6802
|
+
"aria-label": Me ? "Code always shown" : Ae ? "Hide code" : "Show code",
|
|
6803
|
+
onClick: Xe,
|
|
6804
|
+
children: /* @__PURE__ */ (0, G.jsx)(m, { className: "h-4 w-4" })
|
|
6782
6805
|
})
|
|
6783
|
-
}),
|
|
6784
|
-
let
|
|
6785
|
-
|
|
6806
|
+
}), t[128] = Ae, t[129] = Me, t[130] = be, t[131] = Xe, t[132] = vt) : vt = t[132];
|
|
6807
|
+
let yt;
|
|
6808
|
+
t[133] === Symbol.for("react.memo_cache_sentinel") ? (yt = /* @__PURE__ */ (0, G.jsx)(l, {
|
|
6786
6809
|
content: "Fullscreen (F)",
|
|
6787
6810
|
children: /* @__PURE__ */ (0, G.jsx)(a, {
|
|
6788
6811
|
"data-testid": "marimo-plugin-slides-fullscreen",
|
|
@@ -6791,105 +6814,105 @@ var sa = (e) => {
|
|
|
6791
6814
|
className: "text-muted-foreground h-7 w-7",
|
|
6792
6815
|
"aria-label": "Enter fullscreen",
|
|
6793
6816
|
onClick: () => {
|
|
6794
|
-
|
|
6817
|
+
k.current?.getViewportElement()?.requestFullscreen().catch(va);
|
|
6795
6818
|
},
|
|
6796
|
-
children: /* @__PURE__ */ (0, G.jsx)(
|
|
6819
|
+
children: /* @__PURE__ */ (0, G.jsx)(f, { className: "h-4 w-4" })
|
|
6797
6820
|
})
|
|
6798
|
-
}),
|
|
6799
|
-
let
|
|
6800
|
-
|
|
6821
|
+
}), t[133] = yt) : yt = t[133];
|
|
6822
|
+
let xt;
|
|
6823
|
+
t[134] === vt ? xt = t[135] : (xt = /* @__PURE__ */ (0, G.jsxs)("div", {
|
|
6801
6824
|
className: "absolute top-2 right-2 z-20 opacity-0 group-hover:opacity-70 text-muted-foreground transition-opacity",
|
|
6802
|
-
children: [
|
|
6803
|
-
}),
|
|
6804
|
-
let
|
|
6805
|
-
|
|
6806
|
-
ref:
|
|
6825
|
+
children: [vt, yt]
|
|
6826
|
+
}), t[134] = vt, t[135] = xt);
|
|
6827
|
+
let St;
|
|
6828
|
+
t[136] !== mt || t[137] !== _t || t[138] !== K || t[139] !== xt ? (St = /* @__PURE__ */ (0, G.jsx)("div", {
|
|
6829
|
+
ref: D,
|
|
6807
6830
|
className: "h-full w-full min-w-0 flex items-center justify-center overflow-hidden",
|
|
6808
6831
|
children: /* @__PURE__ */ (0, G.jsxs)("div", {
|
|
6809
6832
|
className: "group relative",
|
|
6810
|
-
style:
|
|
6833
|
+
style: mt,
|
|
6811
6834
|
children: [
|
|
6812
|
-
|
|
6813
|
-
|
|
6814
|
-
|
|
6835
|
+
_t,
|
|
6836
|
+
K,
|
|
6837
|
+
xt
|
|
6815
6838
|
]
|
|
6816
6839
|
})
|
|
6817
|
-
}),
|
|
6818
|
-
let
|
|
6840
|
+
}), t[136] = mt, t[137] = _t, t[138] = K, t[139] = xt, t[140] = St) : St = t[140];
|
|
6841
|
+
let Ct = St;
|
|
6819
6842
|
if (C === "read") {
|
|
6820
6843
|
let e;
|
|
6821
|
-
return
|
|
6844
|
+
return t[141] === Ct ? e = t[142] : (e = /* @__PURE__ */ (0, G.jsx)("div", {
|
|
6822
6845
|
className: "flex-1 min-w-0 flex flex-row gap-3",
|
|
6823
|
-
children:
|
|
6824
|
-
}),
|
|
6846
|
+
children: Ct
|
|
6847
|
+
}), t[141] = Ct, t[142] = e), e;
|
|
6825
6848
|
}
|
|
6826
|
-
let
|
|
6827
|
-
|
|
6849
|
+
let q;
|
|
6850
|
+
t[143] === Ct ? q = t[144] : (q = /* @__PURE__ */ (0, G.jsx)(d, {
|
|
6828
6851
|
defaultSize: 92,
|
|
6829
6852
|
minSize: 60,
|
|
6830
|
-
children:
|
|
6831
|
-
}),
|
|
6832
|
-
let
|
|
6833
|
-
|
|
6853
|
+
children: Ct
|
|
6854
|
+
}), t[143] = Ct, t[144] = q);
|
|
6855
|
+
let J;
|
|
6856
|
+
t[145] === Symbol.for("react.memo_cache_sentinel") ? (J = {
|
|
6834
6857
|
coarse: 12,
|
|
6835
6858
|
fine: 4
|
|
6836
|
-
},
|
|
6837
|
-
let
|
|
6838
|
-
|
|
6859
|
+
}, t[145] = J) : J = t[145];
|
|
6860
|
+
let wt;
|
|
6861
|
+
t[146] === P ? wt = t[147] : (wt = /* @__PURE__ */ (0, G.jsx)(h, {
|
|
6839
6862
|
className: "mo-slides-notes-resize",
|
|
6840
|
-
hitAreaMargins:
|
|
6841
|
-
disabled:
|
|
6842
|
-
}),
|
|
6843
|
-
let
|
|
6844
|
-
|
|
6863
|
+
hitAreaMargins: J,
|
|
6864
|
+
disabled: P
|
|
6865
|
+
}), t[146] = P, t[147] = wt);
|
|
6866
|
+
let Y = Se?.id, X;
|
|
6867
|
+
t[148] !== s || t[149] !== c || t[150] !== Y ? (X = /* @__PURE__ */ (0, G.jsx)(d, {
|
|
6845
6868
|
defaultSize: 10,
|
|
6846
6869
|
minSize: 4,
|
|
6847
6870
|
collapsible: !0,
|
|
6848
6871
|
collapsedSize: 4,
|
|
6849
|
-
children: /* @__PURE__ */ (0, G.jsx)(
|
|
6872
|
+
children: /* @__PURE__ */ (0, G.jsx)(fr, {
|
|
6850
6873
|
layout: s,
|
|
6851
6874
|
setLayout: c,
|
|
6852
|
-
cellId:
|
|
6875
|
+
cellId: Y
|
|
6853
6876
|
})
|
|
6854
|
-
}),
|
|
6855
|
-
let
|
|
6856
|
-
|
|
6877
|
+
}), t[148] = s, t[149] = c, t[150] = Y, t[151] = X) : X = t[151];
|
|
6878
|
+
let Tt;
|
|
6879
|
+
t[152] !== q || t[153] !== wt || t[154] !== X ? (Tt = /* @__PURE__ */ (0, G.jsxs)(u, {
|
|
6857
6880
|
direction: "vertical",
|
|
6858
6881
|
autoSaveId: "marimo:slides:notes-panel",
|
|
6859
6882
|
className: "flex-1 min-w-0",
|
|
6860
6883
|
children: [
|
|
6861
|
-
|
|
6862
|
-
|
|
6863
|
-
|
|
6884
|
+
q,
|
|
6885
|
+
wt,
|
|
6886
|
+
X
|
|
6864
6887
|
]
|
|
6865
|
-
}),
|
|
6866
|
-
let
|
|
6867
|
-
|
|
6868
|
-
configWidth:
|
|
6888
|
+
}), t[152] = q, t[153] = wt, t[154] = X, t[155] = Tt) : Tt = t[155];
|
|
6889
|
+
let Et;
|
|
6890
|
+
t[156] !== Se || t[157] !== w || t[158] !== s || t[159] !== c ? (Et = /* @__PURE__ */ (0, G.jsx)(v, {
|
|
6891
|
+
configWidth: w,
|
|
6869
6892
|
layout: s,
|
|
6870
6893
|
setLayout: c,
|
|
6871
|
-
activeConfigCell:
|
|
6872
|
-
}),
|
|
6873
|
-
let
|
|
6874
|
-
return
|
|
6894
|
+
activeConfigCell: Se
|
|
6895
|
+
}), t[156] = Se, t[157] = w, t[158] = s, t[159] = c, t[160] = Et) : Et = t[160];
|
|
6896
|
+
let Dt;
|
|
6897
|
+
return t[161] !== Tt || t[162] !== Et ? (Dt = /* @__PURE__ */ (0, G.jsxs)("div", {
|
|
6875
6898
|
className: "flex-1 min-w-0 flex flex-row gap-3",
|
|
6876
|
-
children: [
|
|
6877
|
-
}),
|
|
6899
|
+
children: [Tt, Et]
|
|
6900
|
+
}), t[161] = Tt, t[162] = Et, t[163] = Dt) : Dt = t[163], Dt;
|
|
6878
6901
|
};
|
|
6879
|
-
function
|
|
6902
|
+
function ma() {
|
|
6880
6903
|
return /* @__PURE__ */ new Set();
|
|
6881
6904
|
}
|
|
6882
|
-
function
|
|
6905
|
+
function ha(e) {
|
|
6883
6906
|
return e.id;
|
|
6884
6907
|
}
|
|
6885
|
-
function
|
|
6908
|
+
function ga(e) {
|
|
6886
6909
|
return !i.fromInput(e);
|
|
6887
6910
|
}
|
|
6888
|
-
function
|
|
6911
|
+
function _a(e) {
|
|
6889
6912
|
return e.id;
|
|
6890
6913
|
}
|
|
6891
|
-
function
|
|
6892
|
-
|
|
6914
|
+
function va(e) {
|
|
6915
|
+
t.error("Failed to request fullscreen", e);
|
|
6893
6916
|
}
|
|
6894
6917
|
//#endregion
|
|
6895
|
-
export {
|
|
6918
|
+
export { la as CellOutputBlock, aa as deckSlideType, pa as default, da as parkedRendersSource, ia as shouldShowCode, Zi as syncCodeToggleKeyBinding, oa as useParkedPreview };
|