@marimo-team/islands 0.25.3-dev2 → 0.25.3-dev200

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.
Files changed (690) hide show
  1. package/dist/{ConnectedDataExplorerComponent-CNSxdKyJ.js → ConnectedDataExplorerComponent-BsWiIPFk.js} +22 -20
  2. package/dist/{ErrorBoundary-DWEpirf3.js → ErrorBoundary-UWARECs-.js} +19 -19
  3. package/dist/{abnfDiagram-VCTEODGH-DQDjNXt3.js → abnfDiagram-VCTEODGH-I2x4Yu25.js} +2 -2
  4. package/dist/any-language-editor-BVFHDDQ3.js +75 -0
  5. package/dist/{architectureDiagram-5GKGNRK7-Nmls7Wxn.js → architectureDiagram-5GKGNRK7-1bSQMKzK.js} +1 -1
  6. package/dist/{arrays-CN1djC4k.js → arrays-DoQ-AILx.js} +15 -27
  7. package/dist/assets/__vite-browser-external-BCJsx8QS.js +1 -0
  8. package/dist/assets/worker-DodjWT_Z.js +113 -0
  9. package/dist/{button-CvjkwdSk.js → button-BQRdqQi1.js} +199 -192
  10. package/dist/{capabilities-CQ5IjhzL.js → capabilities-C2QUNRXi.js} +2 -2
  11. package/dist/{chat-ui-BDpymeoe.js → chat-ui-DXDoSuS4.js} +667 -667
  12. package/dist/{check-EDwSwP89.js → check-C9Mp9eCK.js} +1 -1
  13. package/dist/{chunk-IMKFNOWR-CoIFEo-1.js → chunk-IMKFNOWR-fsCGAJ9G.js} +1 -1
  14. package/dist/{chunk-SHT3W25Y-lHiGx3ZC.js → chunk-SHT3W25Y-D2STW4hj.js} +1 -1
  15. package/dist/{chunk-SVP7TREG-BvsHIrY_.js → chunk-SVP7TREG-CiY7cQG-.js} +1 -1
  16. package/dist/{chunk-TICWLB2K-BC8YIm_n.js → chunk-TICWLB2K-C_t5RBp9.js} +1 -1
  17. package/dist/{chunk-YOKDWASO-DPZk8vhS.js → chunk-YOKDWASO-DKplTrBY.js} +20 -20
  18. package/dist/{classDiagram-ZZMXUADV-Bt98lkkv.js → classDiagram-ZZMXUADV-B2JvZAP4.js} +2 -2
  19. package/dist/{classDiagram-v2-VYDZK3BY-D9bfbcC3.js → classDiagram-v2-VYDZK3BY-L8VsZG5A.js} +2 -2
  20. package/dist/{code-visibility-CLNfgCjd.js → code-visibility-33fxfX1p.js} +45 -49
  21. package/dist/{common-fyD_6mT2.js → common-D09oJJ8Z.js} +7354 -6884
  22. package/dist/{copy-icon-Ft7t9bqz.js → copy-icon-De584pZ4.js} +3 -3
  23. package/dist/{cynefinDiagram-5FMLGOSQ-CgWra7wt.js → cynefinDiagram-5FMLGOSQ-DdllC264.js} +1 -1
  24. package/dist/{dagre-GXQ25YYZ-CFZ8-35c.js → dagre-GXQ25YYZ-BaWHw4_f.js} +1 -1
  25. package/dist/{data-grid-overlay-editor-BmqASKep.js → data-grid-overlay-editor-lGsInXfR.js} +5 -5
  26. package/dist/{data-grid-types-BH_r7g7l.js → data-grid-types-0PJ-9N5n.js} +1 -1
  27. package/dist/{diagram-S7CK7UJ4-lCNQrW7d.js → diagram-S7CK7UJ4-pFt-tUDe.js} +1 -1
  28. package/dist/{diagram-UQ7AKVKN-CQPQ6pP_.js → diagram-UQ7AKVKN-DqGJiBp4.js} +1 -1
  29. package/dist/{diagram-VX7I27RA-Cf3b0llz.js → diagram-VX7I27RA-Dr-yzMjf.js} +1 -1
  30. package/dist/{diagram-Z3DM3KII-Bt4QLrpn.js → diagram-Z3DM3KII-8xzJzv-w.js} +1 -1
  31. package/dist/{dialog-CEBFZNyc.js → dialog-DVRfQuhD.js} +25 -25
  32. package/dist/{dist-F8Ep36rk.js → dist-B1M0bGO3.js} +1 -1
  33. package/dist/{dist-D6d86eNJ.js → dist-BA13RJj5.js} +1 -1
  34. package/dist/{dist-Bvs24R_E.js → dist-BJtmSgcE.js} +48 -48
  35. package/dist/{dist-CN_BeG2I.js → dist-Ba2VIn1K.js} +53 -53
  36. package/dist/{dist-PXYI_yuP.js → dist-Bj4bmwUm.js} +12 -12
  37. package/dist/{dist-DoE4XJBC.js → dist-BmS-ZGjl.js} +8626 -8626
  38. package/dist/{dist-BorMD-uX.js → dist-Bzogh7CW.js} +87 -87
  39. package/dist/{dist-CN8zI-XC.js → dist-CThPVKaP.js} +1385 -1382
  40. package/dist/{dist-DiDibOYr.js → dist-CTi5FTiV.js} +87 -87
  41. package/dist/{dist-diIx5qJW.js → dist-Ck_C32ye.js} +2 -2
  42. package/dist/{dist-BLfKmR-l.js → dist-D1fnFp1J.js} +1 -1
  43. package/dist/{dist-OR1OnN-y.js → dist-D3x9__Fu.js} +46 -46
  44. package/dist/{dist-BMQf5zIS.js → dist-D7mrh5sO.js} +36 -36
  45. package/dist/{dist-CSJ0MDRw.js → dist-D9Q3xjiP.js} +1 -1
  46. package/dist/{dist-BuaRHxOc.js → dist-DP60Ubh8.js} +2 -2
  47. package/dist/{dist-CSbh1PNP.js → dist-DTv9KkpW.js} +12 -12
  48. package/dist/{dist-D-wwqlzJ.js → dist-DVVwOfrD.js} +109 -109
  49. package/dist/{dist-C8fAKSH1.js → dist-DYXM73-k.js} +36 -36
  50. package/dist/{dist-DBtSl3sf.js → dist-DjeybPOb.js} +1 -1
  51. package/dist/{dist-CrSP_H1M.js → dist-DtGn9N4h.js} +197 -197
  52. package/dist/{dist-CLdpGQVr.js → dist-KN80qWCP.js} +2 -2
  53. package/dist/{dist-DpBpA_n1.js → dist-Lm-D-Vr6.js} +3 -3
  54. package/dist/{dist-Cg7gzw-a.js → dist-O0qFpEJh.js} +56 -56
  55. package/dist/{dist-CkTTIdBe.js → dist-OUle2RT7.js} +207 -207
  56. package/dist/{dist-BK4Oj99o.js → dist-T5rh6JvL.js} +1 -1
  57. package/dist/{dropdown-menu-CP_qCYHC.js → dropdown-menu-NlnsmNA6.js} +1481 -1433
  58. package/dist/{ebnfDiagram-PWID7BFC-D3NAyPFY.js → ebnfDiagram-PWID7BFC-Br04Wy-E.js} +2 -2
  59. package/dist/{erDiagram-RLTQ6QDP-Tlu09_Nm.js → erDiagram-RLTQ6QDP-D5-XVgvv.js} +1 -1
  60. package/dist/{error-banner-Da600cwz.js → error-banner-DxJ3s8YO.js} +89 -84
  61. package/dist/{cells-C8iCYvLU.js → error-entries-C2Ux0Fjt.js} +7970 -8605
  62. package/dist/{esm-D2gTsXEV.js → esm-Bbw_Njjx.js} +575 -575
  63. package/dist/{esm-AMFssoNp.js → esm-mDQNEFe_.js} +354 -354
  64. package/dist/feedback-button-B0CMhVv7.js +374 -0
  65. package/dist/{flowDiagram-HODETNUW-CAYbpJmV.js → flowDiagram-HODETNUW-CVl2kREF.js} +2 -2
  66. package/dist/{formats-BGh2thRc.js → formats-BCYthwyc.js} +3 -3
  67. package/dist/{ganttDiagram-EL5Y4UJY-BQT16JSc.js → ganttDiagram-EL5Y4UJY-Dh_4cBJZ.js} +2 -2
  68. package/dist/{glide-data-editor-BkjP14aq.js → glide-data-editor-CL535A5q.js} +370 -368
  69. package/dist/{glide-utils-DJyqh0EM.js → glide-utils-D98laidb.js} +16 -16
  70. package/dist/{globals-BN2O0F8N.js → globals-Bsr6T2yD.js} +3 -3
  71. package/dist/{highlighted-body-KPVGNVTW-zwjq21tf.js → highlighted-body-KPVGNVTW-3Ziwfz-V.js} +2 -2
  72. package/dist/{html-to-image-CZY1pIZH.js → html-to-image-CkH7vdBZ.js} +478 -381
  73. package/dist/{infoDiagram-27XIBGKW-XrDxhr0x.js → infoDiagram-27XIBGKW-BJ4vNcZE.js} +1 -1
  74. package/dist/{ishikawaDiagram-5VMMS53U-CD1muzov.js → ishikawaDiagram-5VMMS53U-B_Jy1Dsm.js} +1 -1
  75. package/dist/{kanban-definition-UXKFOSKX-Dg9W142_.js → kanban-definition-UXKFOSKX-C6MkS9vw.js} +1 -1
  76. package/dist/{label-BDKF3Afc.js → label-Qvw1E97W.js} +3 -3
  77. package/dist/{linear-Cnaq3Tfb.js → linear-DWERh7eI.js} +121 -73
  78. package/dist/{loader-BQOfjTIJ.js → loader-DOVB0Syl.js} +12 -12
  79. package/dist/main.js +9706 -7708
  80. package/dist/{mermaid-CiAXjLpA.js → mermaid-Bh918qrq.js} +52 -52
  81. package/dist/mermaid-HWGCJPDP-Du3-HPQA.js +2 -0
  82. package/dist/{mindmap-definition-YA3MSWOX-DgCidgYJ.js → mindmap-definition-YA3MSWOX-BP3ZTuir.js} +1 -1
  83. package/dist/{number-overlay-editor-BEBWJnbL.js → number-overlay-editor-CzbkG4E2.js} +3 -3
  84. package/dist/{objects-CzUgoMIF.js → objects-DCmMvZtn.js} +1 -3
  85. package/dist/{once-BtE-wKRL.js → once-NnpX_HnX.js} +1 -1
  86. package/dist/{pegDiagram-XKGWAZYB-coOYYKB6.js → pegDiagram-XKGWAZYB-nNGOQtnt.js} +2 -2
  87. package/dist/{pieDiagram-E7YTZNPT-BnXTc3bj.js → pieDiagram-E7YTZNPT-CpRz5BZz.js} +1 -1
  88. package/dist/precisionRound-DhAzeRcm.js +49 -0
  89. package/dist/{process-output-e4jj9Ijt.js → process-output-OujAtFW4.js} +4 -4
  90. package/dist/{quadrantDiagram-AXDQQJYC-Ccw0xMjN.js → quadrantDiagram-AXDQQJYC-Blrm7V7_.js} +1 -1
  91. package/dist/{railroadDiagram-O6MQD6OU-B28-u83n.js → railroadDiagram-O6MQD6OU-BqOEN4I0.js} +2 -2
  92. package/dist/{react-vega-BED0DjiB.js → react-vega-C4T9Rb_w.js} +12284 -12270
  93. package/dist/{requirementDiagram-BXWQKSXE-CdYCTMu0.js → requirementDiagram-BXWQKSXE-CEfg6vu9.js} +1 -1
  94. package/dist/{reveal-component-DK69bOki.js → reveal-component-CbEK0sNX.js} +733 -710
  95. package/dist/{select-BButFi-d.js → select-2KOiReNY.js} +536 -457
  96. package/dist/{sequenceDiagram-WJ2MYXX4-CM3aRAe_.js → sequenceDiagram-WJ2MYXX4-IOmpQcOi.js} +1 -1
  97. package/dist/{spec-BwarBpUJ.js → spec-Dkp64vVQ.js} +41 -11
  98. package/dist/{stateDiagram-D77RDMKH-DOZUMVj8.js → stateDiagram-D77RDMKH-tgU-EY9_.js} +2 -2
  99. package/dist/{stateDiagram-v2-MP3YSRHH-CISYxma6.js → stateDiagram-v2-MP3YSRHH-BofhG6q1.js} +2 -2
  100. package/dist/style.css +1 -1
  101. package/dist/{swimlanes-42K2YHIH-BkSppxp8.js → swimlanes-42K2YHIH-DW4vWDBd.js} +1 -1
  102. package/dist/{swimlanesDiagram-VR7AAH4N-c8G5pGxC.js → swimlanesDiagram-VR7AAH4N-BJcrqUJr.js} +2 -2
  103. package/dist/{swiper-component-DKntyn8p.js → swiper-component-BVfnhbnt.js} +2 -2
  104. package/dist/{time-BieKwdYS.js → time-BaMbJs4z.js} +18 -18
  105. package/dist/{timeline-definition-24CTP7MA-CaMQayqK.js → timeline-definition-24CTP7MA-D_QU3NGs.js} +1 -1
  106. package/dist/{toDate-BNJf01u1.js → toDate-BNDEXbfV.js} +77 -74
  107. package/dist/{toast-B9UMEi8u.js → toast-B5t9o6s_.js} +219 -201
  108. package/dist/{tooltip-BO1REbqs.js → tooltip-s4zZxwKe.js} +325 -301
  109. package/dist/{use-restore-focus-BEM7sFWl.js → use-restore-focus-BgDTd2tc.js} +1482 -1433
  110. package/dist/{useAsyncData-Deh5kszT.js → useAsyncData-ASDni9vH.js} +15 -14
  111. package/dist/{useDateFormatter-D8XruNGG.js → useDateFormatter-D3Tkfzej.js} +2 -2
  112. package/dist/{useDeepCompareMemoize-DXwzRINI.js → useDeepCompareMemoize-B1Ogyf53.js} +1 -1
  113. package/dist/{useIframeCapabilities-DBETvvPl.js → useIframeCapabilities-6a_yDNXp.js} +1 -1
  114. package/dist/{useLifecycle-j7D9uD1o.js → useLifecycle-Bfpa2m7k.js} +28 -25
  115. package/dist/{useTheme-CRnjkku0.js → useTheme-5TwyOh3B.js} +522 -314
  116. package/dist/{vega-component-DG29TAB7.js → vega-component-BHS9UOtC.js} +158 -158
  117. package/dist/{vega-embed-container-BNHE18G9.js → vega-embed-container--LYZqguO.js} +2 -2
  118. package/dist/{vega-loader.browser-DNST6uVf.js → vega-loader.browser-B9Pz0EGP.js} +298 -507
  119. package/dist/{vennDiagram-4TSXK5OY-CF8pfaK3.js → vennDiagram-4TSXK5OY-YFYsNIAh.js} +1 -1
  120. package/dist/{wardleyDiagram-VM6X3IG4-dGPu39d-.js → wardleyDiagram-VM6X3IG4-i_n8mAWC.js} +1 -1
  121. package/dist/{xychartDiagram-S5SC5T6Z-CP6-9q56.js → xychartDiagram-S5SC5T6Z-BYGN95wW.js} +2 -2
  122. package/package.json +16 -16
  123. package/src/__mocks__/document.tsx +63 -0
  124. package/src/__mocks__/notebook.ts +3 -4
  125. package/src/__mocks__/partial.ts +26 -0
  126. package/src/__mocks__/requests.ts +0 -3
  127. package/src/__tests__/fixtures/{pair-preview.ts → pair-config.ts} +3 -2
  128. package/src/__tests__/main.test.tsx +24 -1
  129. package/src/__tests__/module-entry.test.ts +44 -0
  130. package/src/__tests__/mount.test.ts +9 -9
  131. package/src/__tests__/{host-imports.test.ts → replica-imports.test.ts} +12 -11
  132. package/src/components/ai/__tests__/ai-model-dropdown.test.tsx +63 -0
  133. package/src/components/ai/ai-model-dropdown.tsx +11 -6
  134. package/src/components/app-config/ai-config.tsx +7 -2
  135. package/src/components/app-config/app-config-form.tsx +5 -9
  136. package/src/components/app-config/user-config-form.tsx +35 -0
  137. package/src/components/chat/__tests__/message-queue.test.tsx +17 -0
  138. package/src/components/chat/__tests__/notebook-access-selector.test.tsx +64 -0
  139. package/src/components/chat/acp/__tests__/session-tabs.test.tsx +43 -0
  140. package/src/components/chat/acp/__tests__/state.test.ts +2 -2
  141. package/src/components/chat/acp/blocks.tsx +3 -2
  142. package/src/components/chat/acp/session-tabs.tsx +8 -3
  143. package/src/components/chat/chat-components.tsx +2 -0
  144. package/src/components/chat/chat-panel.tsx +20 -101
  145. package/src/components/chat/chat-utils.ts +4 -8
  146. package/src/components/chat/notebook-access-selector.stories.tsx +22 -0
  147. package/src/components/chat/notebook-access-selector.tsx +100 -0
  148. package/src/components/data-table/TableBottomBar.tsx +4 -1
  149. package/src/components/data-table/TableTopBar.tsx +2 -0
  150. package/src/components/data-table/__tests__/chart-spec-model.test.ts +195 -195
  151. package/src/components/data-table/__tests__/column-explorer.test.tsx +27 -1
  152. package/src/components/data-table/__tests__/columns.test.tsx +105 -0
  153. package/src/components/data-table/__tests__/context-menu-interaction.test.tsx +130 -0
  154. package/src/components/data-table/__tests__/context-menu.test.ts +176 -0
  155. package/src/components/data-table/__tests__/data-table.test.tsx +1 -0
  156. package/src/components/data-table/__tests__/date-filter-inputs.test.tsx +24 -1
  157. package/src/components/data-table/__tests__/date-popover.test.tsx +72 -0
  158. package/src/components/data-table/__tests__/export-actions.test.tsx +434 -6
  159. package/src/components/data-table/__tests__/keyboard-selection.test.tsx +188 -0
  160. package/src/components/data-table/__tests__/pagination.test.tsx +28 -1
  161. package/src/components/data-table/__tests__/search-highlight.test.tsx +109 -0
  162. package/src/components/data-table/__tests__/url-detector.test.tsx +74 -0
  163. package/src/components/data-table/cell-selection/feature.ts +2 -2
  164. package/src/components/data-table/cell-selection/types.ts +2 -2
  165. package/src/components/data-table/charts/__tests__/chart-panel.test.tsx +74 -1
  166. package/src/components/data-table/charts/__tests__/spec-snapshot.test.ts +20 -20
  167. package/src/components/data-table/charts/__tests__/spec.test.ts +78 -52
  168. package/src/components/data-table/charts/__tests__/storage.test.ts +4 -1
  169. package/src/components/data-table/charts/chart-spec/spec.ts +68 -43
  170. package/src/components/data-table/charts/charts.tsx +40 -30
  171. package/src/components/data-table/charts/storage.ts +16 -5
  172. package/src/components/data-table/column-explorer-panel/column-explorer.tsx +1 -1
  173. package/src/components/data-table/column-summary/chart-spec-model.tsx +23 -16
  174. package/src/components/data-table/column-summary/column-summary.tsx +2 -4
  175. package/src/components/data-table/column-visibility-dropdown.tsx +8 -13
  176. package/src/components/data-table/columns.tsx +45 -46
  177. package/src/components/data-table/context-menu.tsx +161 -46
  178. package/src/components/data-table/data-table.tsx +17 -1
  179. package/src/components/data-table/date-filter-inputs.tsx +15 -42
  180. package/src/components/data-table/date-popover.tsx +6 -4
  181. package/src/components/data-table/export-actions.tsx +267 -163
  182. package/src/components/data-table/pagination.tsx +44 -33
  183. package/src/components/data-table/range-focus/atoms.ts +4 -6
  184. package/src/components/data-table/range-focus/use-cell-range-selection.ts +65 -38
  185. package/src/components/data-table/range-focus/use-scroll-into-view.ts +21 -2
  186. package/src/components/data-table/renderers.tsx +16 -7
  187. package/src/components/data-table/row-viewer-panel/__tests__/row-viewer.test.tsx +24 -1
  188. package/src/components/data-table/row-viewer-panel/row-viewer.tsx +4 -4
  189. package/src/components/data-table/schemas.ts +14 -36
  190. package/src/components/data-table/search-highlight.tsx +79 -0
  191. package/src/components/data-table/types.ts +1 -0
  192. package/src/components/data-table/url-detector.tsx +49 -9
  193. package/src/components/data-table/utils.ts +18 -0
  194. package/src/components/datasources/__tests__/column-actions.test.tsx +97 -0
  195. package/src/components/datasources/__tests__/column-preview.test.tsx +96 -5
  196. package/src/components/datasources/__tests__/datasources-interactions.test.tsx +181 -0
  197. package/src/components/datasources/__tests__/table-list.test.tsx +118 -0
  198. package/src/components/datasources/__tests__/utils.test.ts +57 -6
  199. package/src/components/datasources/column-preview.tsx +17 -12
  200. package/src/components/datasources/datasources.tsx +56 -43
  201. package/src/components/datasources/utils.ts +32 -23
  202. package/src/components/debugger/debugger-code.tsx +5 -0
  203. package/src/components/dependency-graph/custom-node.tsx +1 -1
  204. package/src/components/dependency-graph/dependency-graph-tree.tsx +8 -8
  205. package/src/components/dependency-graph/elements.ts +24 -21
  206. package/src/components/dependency-graph/minimap-content.tsx +13 -19
  207. package/src/components/dependency-graph/panels.tsx +4 -2
  208. package/src/components/dependency-graph/utils/__tests__/layout.test.ts +18 -11
  209. package/src/components/editor/Output.tsx +9 -2
  210. package/src/components/editor/SortableCell.tsx +1 -3
  211. package/src/components/editor/__tests__/Output.test.tsx +50 -32
  212. package/src/components/editor/__tests__/agent-toast.test.tsx +58 -0
  213. package/src/components/editor/__tests__/data-attributes.test.tsx +28 -14
  214. package/src/components/editor/__tests__/dynamic-favicon.test.tsx +111 -18
  215. package/src/components/editor/__tests__/output-persistence.test.tsx +6 -2
  216. package/src/components/editor/__tests__/package-alert.test.tsx +22 -1
  217. package/src/components/editor/actions/__tests__/name-cell-input.test.tsx +69 -0
  218. package/src/components/editor/actions/__tests__/pair-with-agent-commands.test.ts +80 -252
  219. package/src/components/editor/actions/__tests__/pair-with-agent-modal.test.tsx +218 -40
  220. package/src/components/editor/actions/__tests__/pair-with-agent.test.tsx +2 -6
  221. package/src/components/editor/actions/name-cell-input.tsx +4 -3
  222. package/src/components/editor/actions/pair-with-agent-commands.ts +44 -53
  223. package/src/components/editor/actions/pair-with-agent-modal.tsx +101 -38
  224. package/src/components/editor/actions/useCellActionButton.tsx +26 -31
  225. package/src/components/editor/actions/useConfigActions.tsx +3 -4
  226. package/src/components/editor/actions/useNotebookActions.tsx +19 -23
  227. package/src/components/editor/actions/useRestartKernel.tsx +1 -1
  228. package/src/components/editor/actions/useSetCodeVisibility.ts +11 -12
  229. package/src/components/editor/actions/useSetOutputsExpanded.ts +14 -19
  230. package/src/components/editor/agent-toast.ts +15 -0
  231. package/src/components/editor/ai/add-cell-with-ai.tsx +3 -3
  232. package/src/components/editor/ai/ai-completion-editor.tsx +1 -0
  233. package/src/components/editor/alerts/__tests__/connection-notice.test.tsx +1 -1
  234. package/src/components/editor/alerts/connection-notice.tsx +1 -1
  235. package/src/components/editor/alerts/startup-logs-alert.tsx +1 -0
  236. package/src/components/editor/alerts/stdin-blocking-alert.tsx +1 -1
  237. package/src/components/editor/app-container.tsx +1 -1
  238. package/src/components/editor/boundary/__tests__/ErrorBoundary.test.tsx +1 -1
  239. package/src/components/editor/cell/CreateCellButton.tsx +15 -21
  240. package/src/components/editor/cell/DeleteButton.tsx +3 -2
  241. package/src/components/editor/cell/RunButton.tsx +2 -2
  242. package/src/components/editor/cell/StagedAICell.tsx +10 -2
  243. package/src/components/editor/cell/StopButton.tsx +2 -2
  244. package/src/components/editor/cell/__tests__/StagedAICell.test.tsx +3 -1
  245. package/src/components/editor/cell/__tests__/useShouldShowInterrupt.test.ts +39 -0
  246. package/src/components/editor/cell/cell-actions.tsx +12 -1
  247. package/src/components/editor/cell/code/__tests__/language-toggle.test.tsx +54 -0
  248. package/src/components/editor/cell/code/cell-editor.tsx +36 -43
  249. package/src/components/editor/cell/code/language-toggle.tsx +8 -7
  250. package/src/components/editor/cell/collapse.tsx +11 -4
  251. package/src/components/editor/cell/useAddCell.ts +4 -8
  252. package/src/components/editor/cell/useDeleteCell.tsx +10 -36
  253. package/src/components/editor/cell/useRunCells.ts +2 -5
  254. package/src/components/editor/cell/useShouldShowInterrupt.ts +2 -12
  255. package/src/components/editor/cell/useSplitCell.tsx +10 -6
  256. package/src/components/editor/chrome/components/__tests__/feedback-button.test.tsx +1 -1
  257. package/src/components/editor/chrome/components/feedback-button.tsx +2 -8
  258. package/src/components/editor/chrome/panels/__tests__/packages-panel.test.tsx +31 -2
  259. package/src/components/editor/chrome/panels/__tests__/runtime-details.test.tsx +1 -1
  260. package/src/components/editor/chrome/panels/__tests__/sandbox-recovery.test.tsx +1 -1
  261. package/src/components/editor/chrome/panels/cache-panel.tsx +1 -0
  262. package/src/components/editor/chrome/panels/dependency-graph-panel.tsx +1 -1
  263. package/src/components/editor/chrome/panels/error-panel.tsx +1 -0
  264. package/src/components/editor/chrome/panels/logs-panel.tsx +2 -1
  265. package/src/components/editor/chrome/panels/outline/__tests__/outline-keyboard.test.tsx +84 -0
  266. package/src/components/editor/chrome/panels/outline/floating-outline.tsx +39 -14
  267. package/src/components/editor/chrome/panels/outline/useActiveOutline.tsx +3 -2
  268. package/src/components/editor/chrome/panels/packages-panel.tsx +4 -7
  269. package/src/components/editor/chrome/panels/secrets-panel.tsx +1 -0
  270. package/src/components/editor/chrome/panels/session-panel.tsx +1 -1
  271. package/src/components/editor/chrome/panels/snippets-panel.tsx +10 -12
  272. package/src/components/editor/chrome/panels/variable-panel.tsx +1 -5
  273. package/src/components/editor/chrome/wrapper/__tests__/attachment-status.test.tsx +363 -0
  274. package/src/components/editor/chrome/wrapper/__tests__/document-sync-status.test.tsx +92 -0
  275. package/src/components/editor/chrome/wrapper/__tests__/pending-ai-cells.test.tsx +61 -2
  276. package/src/components/editor/chrome/wrapper/footer-item.tsx +32 -24
  277. package/src/components/editor/chrome/wrapper/footer-items/attachment-status.tsx +237 -0
  278. package/src/components/editor/chrome/wrapper/footer-items/backend-status.tsx +1 -1
  279. package/src/components/editor/chrome/wrapper/footer-items/document-sync-status.tsx +54 -0
  280. package/src/components/editor/chrome/wrapper/footer-items/lsp-status.tsx +1 -1
  281. package/src/components/editor/chrome/wrapper/footer-items/machine-stats.tsx +1 -1
  282. package/src/components/editor/chrome/wrapper/footer-items/runtime-settings.tsx +1 -7
  283. package/src/components/editor/chrome/wrapper/footer.tsx +4 -0
  284. package/src/components/editor/chrome/wrapper/minimap-state.ts +1 -1
  285. package/src/components/editor/chrome/wrapper/pending-ai-cells.tsx +12 -2
  286. package/src/components/editor/chrome/wrapper/storage.ts +1 -1
  287. package/src/components/editor/columns/__tests__/cell-column.test.tsx +1 -1
  288. package/src/components/editor/columns/cell-column.tsx +1 -1
  289. package/src/components/editor/columns/sortable-column.tsx +2 -2
  290. package/src/components/editor/connections/components.tsx +5 -10
  291. package/src/components/editor/controls/Controls.tsx +4 -4
  292. package/src/components/editor/controls/__tests__/command-palette.test.tsx +53 -0
  293. package/src/components/editor/controls/__tests__/keyboard-shortcuts.test.tsx +61 -0
  294. package/src/components/editor/controls/__tests__/notebook-menu-dropdown.test.tsx +10 -4
  295. package/src/components/editor/controls/command-palette.tsx +22 -10
  296. package/src/components/editor/controls/keyboard-shortcuts.tsx +14 -5
  297. package/src/components/editor/documentation.css +34 -11
  298. package/src/components/editor/dynamic-favicon.tsx +21 -40
  299. package/src/components/editor/errors/__tests__/send-error-report-button.test.tsx +536 -0
  300. package/src/components/editor/errors/auto-fix.tsx +4 -8
  301. package/src/components/editor/errors/send-error-report-button.tsx +66 -0
  302. package/src/components/editor/file-tree/__tests__/file-explorer-interactions.test.tsx +6 -0
  303. package/src/components/editor/file-tree/__tests__/file-explorer-navigation.test.tsx +47 -0
  304. package/src/components/editor/file-tree/__tests__/use-file-search.test.tsx +91 -0
  305. package/src/components/editor/file-tree/file-explorer.tsx +48 -15
  306. package/src/components/editor/file-tree/file-name-input.tsx +1 -0
  307. package/src/components/editor/file-tree/file-viewer.tsx +4 -2
  308. package/src/components/editor/file-tree/use-file-search.ts +35 -21
  309. package/src/components/editor/header/__tests__/status.test.tsx +5 -3
  310. package/src/components/editor/header/app-header.tsx +1 -1
  311. package/src/components/editor/header/status.tsx +40 -20
  312. package/src/components/editor/links/__tests__/cell-link.test.tsx +148 -0
  313. package/src/components/editor/links/cell-link-list.tsx +1 -1
  314. package/src/components/editor/links/cell-link.tsx +17 -7
  315. package/src/components/editor/navigation/__tests__/clipboard.test.ts +60 -38
  316. package/src/components/editor/navigation/__tests__/navigation.test.ts +108 -85
  317. package/src/components/editor/navigation/__tests__/selection.test.ts +43 -21
  318. package/src/components/editor/navigation/clipboard.ts +17 -14
  319. package/src/components/editor/navigation/focus-utils.ts +23 -4
  320. package/src/components/editor/navigation/multi-cell-action-toolbar.tsx +17 -33
  321. package/src/components/editor/navigation/navigation.ts +71 -70
  322. package/src/components/editor/navigation/selection.ts +30 -29
  323. package/src/components/editor/notebook-banner.tsx +1 -0
  324. package/src/components/editor/notebook-cell.tsx +29 -31
  325. package/src/components/editor/output/MarimoErrorOutput.tsx +23 -6
  326. package/src/components/editor/output/MarimoTracebackOutput.tsx +54 -37
  327. package/src/components/editor/output/Outputs.css +8 -0
  328. package/src/components/editor/output/__tests__/ansi-reduce.test.ts +18 -0
  329. package/src/components/editor/output/__tests__/traceback.test.tsx +27 -1
  330. package/src/components/editor/output/ansi-reduce.ts +36 -17
  331. package/src/components/editor/output/console/ConsoleOutput.tsx +19 -25
  332. package/src/components/editor/output/console/__tests__/ConsoleOutput.test.tsx +125 -69
  333. package/src/components/editor/package-alert.tsx +14 -7
  334. package/src/components/editor/renderers/cell-array.tsx +22 -33
  335. package/src/components/editor/renderers/grid-layout/grid-layout.tsx +12 -6
  336. package/src/components/editor/renderers/slides-layout/__tests__/plugin.test.ts +0 -1
  337. package/src/components/editor/renderers/slides-layout/slides-layout.tsx +1 -1
  338. package/src/components/editor/renderers/vertical-layout/__tests__/useFocusFirstEditor.test.ts +4 -4
  339. package/src/components/editor/renderers/vertical-layout/sidebar/toggle.tsx +7 -1
  340. package/src/components/editor/renderers/vertical-layout/useFocusFirstEditor.ts +1 -1
  341. package/src/components/editor/renderers/vertical-layout/vertical-layout.tsx +1 -1
  342. package/src/components/editor/stdin-blocking-alert.tsx +1 -1
  343. package/src/components/home/components.tsx +17 -31
  344. package/src/components/icons/__tests__/large-spinner.test.tsx +39 -0
  345. package/src/components/icons/large-spinner.tsx +3 -14
  346. package/src/components/icons/spinner.tsx +1 -1
  347. package/src/components/markdown/markdown-renderer.tsx +4 -8
  348. package/src/components/mcp/mcp-status-indicator.tsx +1 -1
  349. package/src/components/pages/__tests__/home-page.test.tsx +116 -0
  350. package/src/components/pages/edit-page.tsx +19 -17
  351. package/src/components/pages/home-page.tsx +164 -91
  352. package/src/components/scratchpad/scratchpad.test.tsx +97 -0
  353. package/src/components/scratchpad/scratchpad.tsx +20 -11
  354. package/src/components/slides/__tests__/minimap-actions.test.tsx +22 -29
  355. package/src/components/slides/__tests__/minimap.test.ts +38 -19
  356. package/src/components/slides/__tests__/slide-scroll-hint.test.tsx +37 -0
  357. package/src/components/slides/minimap.tsx +17 -12
  358. package/src/components/slides/reveal-component.tsx +58 -26
  359. package/src/components/slides/reveal-slides.css +5 -4
  360. package/src/components/slides/slide-cell-view.tsx +4 -5
  361. package/src/components/slides/slide-form.tsx +1 -0
  362. package/src/components/slides/slide-scroll-hint.tsx +3 -1
  363. package/src/components/sort/SortableCellsProvider.tsx +8 -25
  364. package/src/components/tracing/tracing-keyboard.test.tsx +85 -0
  365. package/src/components/tracing/tracing.tsx +46 -42
  366. package/src/components/ui/__tests__/draggable-popover.test.tsx +24 -0
  367. package/src/components/ui/__tests__/range-slider.test.tsx +165 -0
  368. package/src/components/ui/alert-dialog.tsx +1 -1
  369. package/src/components/ui/draggable-popover.tsx +24 -2
  370. package/src/components/ui/range-slider.tsx +22 -9
  371. package/src/core/MarimoApp.tsx +1 -1
  372. package/src/core/ai/__tests__/staged-cells.test.ts +27 -26
  373. package/src/core/ai/context/providers/__tests__/cell-output.test.ts +8 -12
  374. package/src/core/ai/context/providers/cell-output.ts +2 -2
  375. package/src/core/ai/context/providers/datasource.ts +6 -2
  376. package/src/core/ai/staged-cells.ts +15 -18
  377. package/src/core/ai/tools/__tests__/edit-notebook-tool.test.ts +40 -88
  378. package/src/core/ai/tools/__tests__/registry.test.ts +17 -0
  379. package/src/core/ai/tools/base.ts +18 -15
  380. package/src/core/ai/tools/edit-notebook-tool.ts +86 -80
  381. package/src/core/ai/tools/registry.ts +13 -10
  382. package/src/core/ai/tools/sample-tool.ts +6 -7
  383. package/src/core/cells/__tests__/__snapshots__/cells.test.ts.snap +4 -37
  384. package/src/core/cells/__tests__/actions.test.ts +624 -35
  385. package/src/core/cells/__tests__/add-missing-import.test.ts +7 -8
  386. package/src/core/cells/__tests__/arrange.test.ts +432 -0
  387. package/src/core/cells/__tests__/cell.test.ts +39 -0
  388. package/src/core/cells/__tests__/cells.test.ts +256 -2477
  389. package/src/core/cells/__tests__/collapseConsoleOutputs.test.ts +54 -0
  390. package/src/core/cells/__tests__/document.test.ts +341 -0
  391. package/src/core/cells/__tests__/editor.test.ts +57 -0
  392. package/src/core/cells/__tests__/error-report.test.ts +139 -0
  393. package/src/core/cells/__tests__/flush-document.test.ts +40 -0
  394. package/src/core/cells/__tests__/harness.ts +106 -0
  395. package/src/core/cells/__tests__/layout.test.ts +177 -0
  396. package/src/core/cells/__tests__/notebook-outline.test.ts +120 -0
  397. package/src/core/cells/__tests__/outputs.test.tsx +71 -53
  398. package/src/core/cells/__tests__/session.test.ts +493 -210
  399. package/src/core/cells/__tests__/utils.test.ts +9 -108
  400. package/src/core/cells/__tests__/with-document-save.test.ts +67 -0
  401. package/src/core/cells/actions.ts +636 -6
  402. package/src/core/cells/add-missing-import.ts +47 -43
  403. package/src/core/cells/arrange.ts +529 -0
  404. package/src/core/cells/cell.ts +14 -3
  405. package/src/core/cells/cells.ts +120 -1337
  406. package/src/core/cells/columns.ts +38 -0
  407. package/src/core/cells/document.ts +289 -0
  408. package/src/core/cells/edit.ts +30 -0
  409. package/src/core/cells/editor.ts +82 -0
  410. package/src/core/cells/error-report.ts +63 -0
  411. package/src/core/cells/layout.ts +221 -0
  412. package/src/core/cells/outputs.ts +12 -28
  413. package/src/core/cells/pending-delete-service.ts +3 -7
  414. package/src/core/cells/session.ts +104 -54
  415. package/src/core/cells/types.ts +22 -6
  416. package/src/core/cells/utils.ts +10 -8
  417. package/src/core/codemirror/__tests__/setup.test.ts +29 -29
  418. package/src/core/codemirror/ai/__tests__/resources.test.ts +117 -0
  419. package/src/core/codemirror/ai/resources.ts +1 -1
  420. package/src/core/codemirror/cells/__tests__/extensions.test.ts +42 -1
  421. package/src/core/codemirror/cells/extensions.ts +27 -9
  422. package/src/core/codemirror/cells/state.ts +1 -1
  423. package/src/core/codemirror/copilot/__tests__/getCodes.test.ts +6 -7
  424. package/src/core/codemirror/copilot/getCodes.ts +2 -2
  425. package/src/core/codemirror/format.ts +6 -5
  426. package/src/core/codemirror/keymaps/vim.ts +4 -8
  427. package/src/core/codemirror/language/__tests__/sql.test.ts +22 -20
  428. package/src/core/codemirror/language/__tests__/utils.test.ts +187 -15
  429. package/src/core/codemirror/language/cell-code.ts +114 -0
  430. package/src/core/codemirror/language/extension.ts +52 -35
  431. package/src/core/codemirror/language/languages/markdown.ts +8 -6
  432. package/src/core/codemirror/language/languages/python.ts +16 -10
  433. package/src/core/codemirror/language/languages/sql/sql.ts +16 -24
  434. package/src/core/codemirror/language/panel/panel.tsx +1 -0
  435. package/src/core/codemirror/language/types.ts +7 -7
  436. package/src/core/codemirror/language/utils.ts +9 -39
  437. package/src/core/codemirror/lsp/__tests__/notebook-lsp.test.ts +1 -2
  438. package/src/core/codemirror/lsp/notebook-lsp.ts +6 -5
  439. package/src/core/codemirror/lsp/utils.ts +1 -1
  440. package/src/core/codemirror/readonly/__tests__/extension.test.ts +1 -1
  441. package/src/core/codemirror/readonly/extension.ts +2 -2
  442. package/src/core/codemirror/rtc/extension.ts +24 -13
  443. package/src/core/codemirror/rtc/loro/awareness.ts +34 -19
  444. package/src/core/codemirror/rtc/loro/sync.ts +1 -0
  445. package/src/core/codemirror/utils.ts +1 -0
  446. package/src/core/config/__tests__/app-config.test.ts +64 -0
  447. package/src/core/config/__tests__/config-schema.test.ts +13 -6
  448. package/src/core/config/config-schema.ts +13 -3
  449. package/src/core/config/config.ts +26 -12
  450. package/src/core/config/pair.ts +5 -3
  451. package/src/core/datasets/__tests__/data-source-discovery.test.ts +5 -5
  452. package/src/core/datasets/data-source-discovery.ts +4 -6
  453. package/src/core/documentation/doc-lookup.ts +1 -1
  454. package/src/core/edit-app.tsx +21 -28
  455. package/src/core/errors/error-entries.ts +4 -1
  456. package/src/core/export/hooks.ts +1 -1
  457. package/src/core/export/layout.ts +2 -2
  458. package/src/core/hotkeys/actions.ts +2 -4
  459. package/src/core/islands/__tests__/bootstrap.test.ts +69 -17
  460. package/src/core/islands/__tests__/bridge.test.ts +72 -25
  461. package/src/core/islands/bootstrap.ts +46 -53
  462. package/src/core/islands/bridge.ts +74 -23
  463. package/src/core/islands/components/__tests__/IslandControls.test.tsx +7 -5
  464. package/src/core/islands/components/web-components.tsx +1 -1
  465. package/src/core/islands/worker/__tests__/controller.test.ts +62 -4
  466. package/src/core/islands/worker/controller.ts +4 -10
  467. package/src/core/islands/worker/worker.tsx +33 -33
  468. package/src/core/kernel/__tests__/RuntimeState.test.ts +1 -1
  469. package/src/core/kernel/__tests__/handlers.test.ts +7 -153
  470. package/src/core/kernel/handlers.ts +19 -72
  471. package/src/core/meta/__tests__/code-visibility.test.tsx +78 -70
  472. package/src/core/meta/code-visibility.ts +18 -9
  473. package/src/core/network/__tests__/connection.test.ts +1 -1
  474. package/src/core/network/__tests__/requests-lazy.test.ts +1 -3
  475. package/src/core/network/connection-notice.ts +1 -1
  476. package/src/core/network/connection.ts +5 -3
  477. package/src/core/network/requests-lazy.ts +1 -4
  478. package/src/core/network/requests-network.ts +0 -25
  479. package/src/core/network/requests-static.ts +0 -3
  480. package/src/core/network/requests-toasting.tsx +0 -3
  481. package/src/core/network/types.ts +0 -12
  482. package/src/core/network/useConnectionNotice.ts +8 -2
  483. package/src/core/notebook/__tests__/operations.test.ts +51 -0
  484. package/src/core/notebook/attachments.ts +38 -0
  485. package/src/core/notebook/document/__tests__/codemirror.test.ts +586 -0
  486. package/src/core/notebook/document/__tests__/draft.test.ts +363 -0
  487. package/src/core/notebook/document/__tests__/fixtures.ts +92 -0
  488. package/src/core/notebook/document/__tests__/hold.test.ts +88 -0
  489. package/src/core/notebook/document/__tests__/hooks.test.tsx +391 -0
  490. package/src/core/notebook/document/__tests__/lifecycle-scenarios.test.ts +61 -0
  491. package/src/core/notebook/document/__tests__/model.test.ts +247 -0
  492. package/src/core/notebook/document/__tests__/protocol-fixtures.ts +38 -0
  493. package/src/core/notebook/document/__tests__/recovery-scenarios.test.ts +230 -0
  494. package/src/core/notebook/document/__tests__/scenario-fixture.ts +43 -0
  495. package/src/core/notebook/document/__tests__/scenarios.test.ts +205 -0
  496. package/src/core/notebook/document/__tests__/state.test.ts +459 -0
  497. package/src/core/notebook/document/__tests__/submission.test.ts +203 -0
  498. package/src/core/notebook/document/__tests__/test-host.test.ts +92 -0
  499. package/src/core/notebook/document/__tests__/test-host.ts +247 -0
  500. package/src/core/notebook/document/__tests__/test-notebook.ts +149 -0
  501. package/src/core/notebook/document/__tests__/user.ts +61 -0
  502. package/src/core/notebook/document/codemirror.ts +216 -0
  503. package/src/core/notebook/document/draft.ts +502 -0
  504. package/src/core/notebook/document/hooks.tsx +118 -0
  505. package/src/core/notebook/document/index.ts +24 -0
  506. package/src/core/notebook/document/model.ts +105 -0
  507. package/src/core/notebook/document/select.ts +41 -0
  508. package/src/core/notebook/document/state.ts +378 -0
  509. package/src/core/notebook/document/sync.ts +418 -0
  510. package/src/core/notebook/index.ts +19 -0
  511. package/src/core/notebook/operations.ts +30 -0
  512. package/src/core/notebook/replica/AGENTS.md +11 -0
  513. package/src/core/notebook/replica/__tests__/attachments.test.ts +56 -0
  514. package/src/core/notebook/replica/__tests__/document.test.ts +126 -0
  515. package/src/core/notebook/replica/__tests__/fixtures.ts +79 -0
  516. package/src/core/notebook/replica/__tests__/replica.test.ts +550 -0
  517. package/src/core/notebook/replica/backend.ts +19 -0
  518. package/src/core/{websocket/types.ts → notebook/replica/connection.ts} +10 -15
  519. package/src/core/notebook/replica/index.ts +13 -0
  520. package/src/core/notebook/replica/replica.ts +286 -0
  521. package/src/core/notebook/replica/resources/attachments.ts +22 -0
  522. package/src/core/notebook/replica/resources/document.ts +101 -0
  523. package/src/core/packages/__tests__/useSandboxController.test.tsx +1 -1
  524. package/src/core/packages/useSandboxController.ts +1 -1
  525. package/src/core/run-app.tsx +48 -51
  526. package/src/core/runtime/__tests__/adapter.test.ts +1 -1
  527. package/src/core/runtime/__tests__/createWsUrl.test.ts +77 -7
  528. package/src/core/runtime/__tests__/runtime.test.ts +33 -15
  529. package/src/core/runtime/adapter.ts +1 -1
  530. package/src/core/runtime/config.ts +2 -2
  531. package/src/core/runtime/runtime.ts +39 -30
  532. package/src/core/saving/__tests__/state.test.ts +111 -0
  533. package/src/core/saving/__tests__/useAutoSave.test.tsx +67 -0
  534. package/src/core/saving/filename.ts +1 -1
  535. package/src/core/saving/save-component.tsx +28 -36
  536. package/src/core/saving/state.ts +38 -39
  537. package/src/core/saving/useAutoSave.ts +17 -53
  538. package/src/core/session/__tests__/backend.test.ts +236 -0
  539. package/src/core/session/__tests__/useNotebookReplica.hook.test.tsx +184 -0
  540. package/src/core/{websocket/__tests__/useMarimoKernelConnection.hook.test.tsx → session/__tests__/useNotebookSession.hook.test.tsx} +252 -185
  541. package/src/core/session/active-notebook.ts +22 -0
  542. package/src/core/session/backend.ts +123 -0
  543. package/src/core/session/embedded.ts +7 -0
  544. package/src/core/session/types.ts +17 -0
  545. package/src/core/session/useNotebookReplica.ts +74 -0
  546. package/src/core/{websocket/useMarimoKernelConnection.tsx → session/useNotebookSession.tsx} +120 -273
  547. package/src/core/state/__tests__/jotai.test.tsx +108 -0
  548. package/src/core/state/jotai.ts +1 -1
  549. package/src/core/static/__tests__/files.test.ts +38 -10
  550. package/src/core/static/files.ts +2 -0
  551. package/src/core/{websocket/__tests__/useMarimoKernelConnection.test.ts → transports/__tests__/connection-state.test.ts} +16 -30
  552. package/src/core/transports/__tests__/server.test.ts +408 -0
  553. package/src/core/transports/__tests__/static.test.ts +306 -0
  554. package/src/core/transports/__tests__/wasm.test.ts +166 -0
  555. package/src/core/transports/connection-state.ts +63 -0
  556. package/src/core/transports/server.ts +152 -0
  557. package/src/core/transports/static.ts +166 -0
  558. package/src/core/transports/wasm.ts +97 -0
  559. package/src/core/wasm/__tests__/bridge.test.ts +214 -50
  560. package/src/core/wasm/__tests__/worker.test.ts +187 -0
  561. package/src/core/wasm/bridge.ts +75 -69
  562. package/src/core/wasm/rpc.ts +15 -3
  563. package/src/core/wasm/store.ts +3 -3
  564. package/src/core/wasm/worker/bootstrap.ts +55 -51
  565. package/src/core/wasm/worker/getMarimoWheel.ts +1 -1
  566. package/src/core/wasm/worker/save-worker.ts +9 -10
  567. package/src/core/wasm/worker/types.ts +29 -18
  568. package/src/core/wasm/worker/worker.ts +88 -44
  569. package/src/css/globals.css +66 -22
  570. package/src/hooks/__tests__/useAsyncData.test.tsx +148 -0
  571. package/src/hooks/__tests__/useDebounce.test.tsx +51 -0
  572. package/src/hooks/__tests__/useDeepCompareMemoize.test.tsx +39 -0
  573. package/src/hooks/__tests__/useDelayElapsed.test.tsx +28 -0
  574. package/src/hooks/__tests__/useInternalStateWithSync.test.tsx +20 -0
  575. package/src/hooks/__tests__/useScript.test.tsx +77 -0
  576. package/src/hooks/__tests__/useStateForKey.test.tsx +257 -0
  577. package/src/hooks/useAsyncData.ts +3 -3
  578. package/src/hooks/useDataSourceDiscovery.ts +6 -4
  579. package/src/hooks/useDebounce.ts +6 -10
  580. package/src/hooks/useDeepCompareMemoize.ts +1 -1
  581. package/src/hooks/useDelayElapsed.ts +14 -10
  582. package/src/hooks/useElapsedTime.ts +3 -3
  583. package/src/hooks/useEventListener.ts +1 -2
  584. package/src/hooks/useInputHistory.ts +4 -7
  585. package/src/hooks/useInternalStateWithSync.ts +6 -6
  586. package/src/hooks/useResizeObserver.ts +4 -7
  587. package/src/hooks/useScript.ts +67 -70
  588. package/src/hooks/useStateForKey.ts +93 -0
  589. package/src/mount.tsx +23 -14
  590. package/src/plugins/__tests__/plugin-object-schemas.test.ts +104 -0
  591. package/src/plugins/core/registerReactComponent.tsx +1 -1
  592. package/src/plugins/impl/CodeEditorPlugin.tsx +1 -1
  593. package/src/plugins/impl/DataEditorPlugin.tsx +1 -1
  594. package/src/plugins/impl/DataTablePlugin.tsx +69 -37
  595. package/src/plugins/impl/DropdownPlugin.tsx +2 -6
  596. package/src/plugins/impl/FileBrowserPlugin.tsx +4 -16
  597. package/src/plugins/impl/FormPlugin.tsx +1 -1
  598. package/src/plugins/impl/RangeSliderPlugin.tsx +16 -2
  599. package/src/plugins/impl/RefreshPlugin.tsx +1 -0
  600. package/src/plugins/impl/SliderPlugin.tsx +6 -8
  601. package/src/plugins/impl/__tests__/DataTablePlugin.test.tsx +471 -1
  602. package/src/plugins/impl/__tests__/FileBrowserPlugin.test.tsx +45 -0
  603. package/src/plugins/impl/__tests__/RangeSliderPlugin.test.tsx +109 -0
  604. package/src/plugins/impl/__tests__/SliderPlugin.test.tsx +24 -3
  605. package/src/plugins/impl/anywidget/__tests__/registry.test.ts +153 -0
  606. package/src/plugins/impl/anywidget/__tests__/widget-binding.test.ts +241 -2
  607. package/src/plugins/impl/anywidget/model.ts +3 -1
  608. package/src/plugins/impl/anywidget/registry.ts +18 -14
  609. package/src/plugins/impl/anywidget/runtime.ts +21 -9
  610. package/src/plugins/impl/anywidget/widget-binding.ts +160 -82
  611. package/src/plugins/impl/chat/__tests__/chat-prompts.test.tsx +93 -0
  612. package/src/plugins/impl/chat/chat-ui.tsx +14 -11
  613. package/src/plugins/impl/code/any-language-editor.tsx +2 -2
  614. package/src/plugins/impl/data-editor/glide-data-editor.tsx +8 -5
  615. package/src/plugins/impl/data-editor/glide-utils.ts +3 -1
  616. package/src/plugins/impl/data-explorer/ConnectedDataExplorerComponent.tsx +1 -1
  617. package/src/plugins/impl/data-explorer/components/column-summary.tsx +4 -2
  618. package/src/plugins/impl/data-explorer/state/reducer.ts +1 -1
  619. package/src/plugins/impl/data-frames/DataFramePlugin.tsx +1 -2
  620. package/src/plugins/impl/data-frames/__tests__/sidebar.test.tsx +160 -0
  621. package/src/plugins/impl/data-frames/forms/__tests__/__snapshots__/form.test.tsx.snap +66 -66
  622. package/src/plugins/impl/data-frames/panel.tsx +43 -16
  623. package/src/plugins/impl/mpl-interactive/MplInteractivePlugin.tsx +5 -3
  624. package/src/plugins/impl/panel/PanelPlugin.tsx +16 -17
  625. package/src/plugins/impl/panel/__tests__/utils.test.ts +39 -1
  626. package/src/plugins/impl/panel/utils.ts +17 -0
  627. package/src/plugins/impl/plotly/PlotlyPlugin.tsx +2 -5
  628. package/src/plugins/impl/plotly/selection.ts +25 -19
  629. package/src/plugins/impl/vega/VegaPlugin.tsx +2 -3
  630. package/src/plugins/impl/vega/make-selectable.ts +4 -7
  631. package/src/plugins/layout/RoutesPlugin.tsx +1 -1
  632. package/src/stories/__tests__/editor-story.test.tsx +33 -0
  633. package/src/stories/button.stories.tsx +1 -0
  634. package/src/stories/cell.stories.tsx +2 -5
  635. package/src/stories/data-table.stories.tsx +31 -0
  636. package/src/stories/editor.stories.tsx +24 -17
  637. package/src/stories/form-wrapper.stories.tsx +2 -2
  638. package/src/stories/layout/vertical/one-column.stories.tsx +2 -5
  639. package/src/stories/runtime-story.tsx +23 -17
  640. package/src/stories/select.stories.tsx +2 -2
  641. package/src/stories/switchable-multi-select.stories.tsx +1 -1
  642. package/src/utils/__tests__/arrays.test.ts +35 -0
  643. package/src/utils/__tests__/batch-requests.test.ts +3 -3
  644. package/src/utils/__tests__/{createReducer.test.ts → createReducer.test.tsx} +29 -0
  645. package/src/utils/__tests__/dates.test.ts +116 -0
  646. package/src/utils/__tests__/numbers.test.ts +105 -1
  647. package/src/utils/__tests__/objects.test.ts +21 -0
  648. package/src/utils/arrays.ts +11 -2
  649. package/src/utils/blob.ts +1 -1
  650. package/src/utils/createReducer.ts +53 -26
  651. package/src/utils/dates.ts +94 -0
  652. package/src/utils/maps.ts +0 -3
  653. package/src/utils/numbers.ts +79 -18
  654. package/src/utils/objects.ts +4 -9
  655. package/src/utils/once.ts +19 -19
  656. package/src/utils/tracer.ts +9 -5
  657. package/src/utils/zod-utils.ts +1 -3
  658. package/dist/any-language-editor-B9REGlD9.js +0 -76
  659. package/dist/assets/__vite-browser-external-BXYkiFsk.js +0 -1
  660. package/dist/assets/worker-HPY9fbhz.js +0 -114
  661. package/dist/error-entries-CzoYkIQZ.js +0 -56
  662. package/dist/feedback-button-fND8YT59.js +0 -380
  663. package/dist/mermaid-HWGCJPDP-ByCsZnYF.js +0 -2
  664. package/dist/precisionRound-DMIVQrt2.js +0 -97
  665. package/src/components/editor/navigation/__tests__/state.test.ts +0 -81
  666. package/src/components/editor/navigation/state.ts +0 -65
  667. package/src/core/ai/tools/__tests__/run-cells-tool.test.ts +0 -656
  668. package/src/core/ai/tools/run-cells-tool.ts +0 -303
  669. package/src/core/cells/__tests__/apply-transaction.test.ts +0 -991
  670. package/src/core/cells/__tests__/document-changes.test.ts +0 -1140
  671. package/src/core/cells/__tests__/document-roundtrip.test.ts +0 -392
  672. package/src/core/cells/document-changes.ts +0 -944
  673. package/src/core/host/AGENTS.md +0 -6
  674. package/src/core/host/__tests__/protocol.test.ts +0 -214
  675. package/src/core/host/protocol.ts +0 -1943
  676. package/src/core/state/__tests__/jotai.test.ts +0 -25
  677. package/src/core/wasm/worker/message-buffer.ts +0 -33
  678. package/src/core/websocket/__tests__/useWebSocket.test.ts +0 -49
  679. package/src/core/websocket/transports/__tests__/basic.test.ts +0 -275
  680. package/src/core/websocket/transports/__tests__/sse.test.ts +0 -338
  681. package/src/core/websocket/transports/__tests__/transport.test.ts +0 -308
  682. package/src/core/websocket/transports/__tests__/ws.test.ts +0 -125
  683. package/src/core/websocket/transports/basic.ts +0 -102
  684. package/src/core/websocket/transports/sse.ts +0 -308
  685. package/src/core/websocket/transports/transport.ts +0 -61
  686. package/src/core/websocket/transports/ws.ts +0 -98
  687. package/src/core/websocket/useWebSocket.tsx +0 -88
  688. package/src/utils/__tests__/id-tree.test.ts +0 -2145
  689. package/src/utils/id-tree.tsx +0 -1134
  690. /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 { c as t, g as n, h as r, m as i, t as a } from "./button-CvjkwdSk.js";
2
+ import { c as t, g as n, h as r, m as i, t as a } from "./button-BQRdqQi1.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-BO1REbqs.js";
6
- import { w as u } from "./cells-C8iCYvLU.js";
7
- import { $ as d, Q as f, Z as p, an as m, i as h, l as g, ln as _, n as v, on as y, r as b, t as x, u as S } from "./common-fyD_6mT2.js";
8
- import { M as C } from "./select-BButFi-d.js";
9
- import { q as ee } from "./dropdown-menu-CP_qCYHC.js";
10
- import { g as w } from "./toDate-BNJf01u1.js";
5
+ import { m as c, t as l } from "./tooltip-s4zZxwKe.js";
6
+ import { Zt as u } from "./error-entries-C2Ux0Fjt.js";
7
+ import { $ as d, Q as f, Z as p, an as m, i as h, l as g, ln as _, n as v, on as y, r as b, t as x, u as S } from "./common-D09oJJ8Z.js";
8
+ import { M as C } from "./select-2KOiReNY.js";
9
+ import { J as ee } from "./dropdown-menu-NlnsmNA6.js";
10
+ import { _ as w } from "./toDate-BNDEXbfV.js";
11
11
  import { t as T } from "./jsx-runtime-3BD1kT0s.js";
12
- import { q as E } from "./use-restore-focus-BEM7sFWl.js";
13
- import { A as D, C as O, b as k } from "./useTheme-CRnjkku0.js";
14
- import { a as A, n as te, t as ne } from "./code-visibility-CLNfgCjd.js";
12
+ import { X as te } from "./use-restore-focus-BgDTd2tc.js";
13
+ import { M as E, R as D, o as O } from "./useTheme-5TwyOh3B.js";
14
+ import { a as k, n as ne, t as re } from "./code-visibility-33fxfX1p.js";
15
15
  /* empty css */
16
- var j = c("sticky-note", [["path", {
16
+ var A = 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
- }]]), M = /* @__PURE__ */ e(o(), 1), N = s(), re = (e, t) => {
22
+ }]]), j = /* @__PURE__ */ e(o(), 1), M = s(), ie = (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)), ie = (e, t, n) => {
25
+ }, N = (e, t) => Array.from(e.querySelectorAll(t)), ae = (e, t, n) => {
26
26
  n ? e.classList.add(t) : e.classList.remove(t);
27
- }, ae = (e) => {
27
+ }, oe = (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
- }, oe = (e, t) => {
35
+ }, P = (e, t) => {
36
36
  e.style.transform = t;
37
37
  }, F = (e, t) => {
38
38
  let n = e.matches || e.matchesSelector || e.msMatchesSelector;
@@ -67,7 +67,7 @@ var j = c("sticky-note", [["path", {
67
67
  });
68
68
  for (let t in e) {
69
69
  let n = e[t];
70
- e[t] = ae(unescape(n));
70
+ e[t] = oe(unescape(n));
71
71
  }
72
72
  return e.dependencies !== void 0 && delete e.dependencies, e;
73
73
  }, ue = (e, t = 0) => {
@@ -87,7 +87,7 @@ var j = c("sticky-note", [["path", {
87
87
  return t ? de[t] : void 0;
88
88
  }, pe = (e = "") => encodeURI(e).replace(/%5B/g, "[").replace(/%5D/g, "]").replace(/[!'()*]/g, (e) => `%${e.charCodeAt(0).toString(16).toUpperCase()}`), me = navigator.userAgent, he = /(iphone|ipod|ipad|android)/gi.test(me) || navigator.platform === "MacIntel" && navigator.maxTouchPoints > 1;
89
89
  /chrome/i.test(me) && /edge/i.test(me);
90
- var R = /android/gi.test(me), ge = function(e) {
90
+ var ge = /android/gi.test(me), _e = function(e) {
91
91
  if (e) {
92
92
  var t = function(e) {
93
93
  return [].slice.call(e);
@@ -167,16 +167,16 @@ var R = /android/gi.test(me), ge = function(e) {
167
167
  characterData: !0
168
168
  }
169
169
  }, ee = null, w = function() {
170
- e.clearTimeout(ee), ee = e.setTimeout(l(i), D.observeWindowDelay);
170
+ e.clearTimeout(ee), ee = e.setTimeout(l(i), E.observeWindowDelay);
171
171
  }, T = ["resize", "orientationchange"];
172
- return Object.defineProperty(D, "observeWindow", { set: function(t) {
172
+ return Object.defineProperty(E, "observeWindow", { set: function(t) {
173
173
  var n = `${t ? "add" : "remove"}EventListener`;
174
174
  T.forEach((function(t) {
175
175
  e[n](t, w);
176
176
  }));
177
- } }), D.observeWindow = !0, D.observeWindowDelay = 100, D.fitAll = l(a), D;
177
+ } }), E.observeWindow = !0, E.observeWindowDelay = 100, E.fitAll = l(a), E;
178
178
  }
179
- function E(e, t) {
179
+ function te(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 D(e) {
201
+ function E(e) {
202
202
  var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
203
- return typeof e == "string" ? E(t(document.querySelectorAll(e)), n) : E([e], n)[0];
203
+ return typeof e == "string" ? te(t(document.querySelectorAll(e)), n) : te([e], n)[0];
204
204
  }
205
205
  }(typeof window > "u" ? null : window);
206
- function _e(e) {
206
+ function ve(e) {
207
207
  "@babel/helpers - typeof";
208
- return _e = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
208
+ return ve = 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
- }, _e(e);
212
+ }, ve(e);
213
213
  }
214
- function ve(e, t) {
215
- if (_e(e) != "object" || !e) return e;
214
+ function ye(e, t) {
215
+ if (ve(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 (_e(r) != "object") return r;
219
+ if (ve(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 ye(e) {
225
- var t = ve(e, "string");
226
- return _e(t) == "symbol" ? t : t + "";
224
+ function R(e) {
225
+ var t = ye(e, "string");
226
+ return ve(t) == "symbol" ? t : t + "";
227
227
  }
228
- function z(e, t, n) {
229
- return (t = ye(t)) in e ? Object.defineProperty(e, t, {
228
+ function be(e, t, n) {
229
+ return (t = R(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 be = class {
236
+ var xe = class {
237
237
  constructor(e) {
238
- z(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();
238
+ be(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", () => {
@@ -259,12 +259,12 @@ var be = class {
259
259
  let t = n.replace(/\s*!important\s*$/, "").trim();
260
260
  e.style.setProperty("display", t, "important");
261
261
  } else e.style.display = n;
262
- P(e, "img[data-src], video[data-src], audio[data-src], iframe[data-src]").forEach((e) => {
262
+ N(e, "img[data-src], video[data-src], audio[data-src], iframe[data-src]").forEach((e) => {
263
263
  let t = e.tagName === "IFRAME";
264
264
  (!t || this.shouldPreload(e)) && (e.setAttribute("src", e.getAttribute("data-src")), e.setAttribute("data-lazy-loaded", ""), e.removeAttribute("data-src"), t && e.addEventListener("load", this.preventIframeAutoFocus));
265
- }), P(e, "video, audio").forEach((e) => {
265
+ }), N(e, "video, audio").forEach((e) => {
266
266
  let t = 0;
267
- P(e, "source[data-src]").forEach((e) => {
267
+ N(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
  }), he && e.tagName === "VIDEO" && e.setAttribute("playsinline", ""), t > 0 && e.load();
270
270
  });
@@ -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
- ge(e, {
299
+ _e(e, {
300
300
  minSize: 24,
301
301
  maxSize: this.Reveal.getConfig().height * .8,
302
302
  observeMutations: !1,
@@ -307,17 +307,17 @@ var be = class {
307
307
  unload(e) {
308
308
  e.style.display = "none";
309
309
  let t = this.Reveal.getSlideBackground(e);
310
- t && (t.style.display = "none", P(t, "iframe[src]").forEach((e) => {
310
+ t && (t.style.display = "none", N(t, "iframe[src]").forEach((e) => {
311
311
  e.removeAttribute("src");
312
- })), P(e, "video[data-lazy-loaded][src], audio[data-lazy-loaded][src], iframe[data-lazy-loaded][src]").forEach((e) => {
312
+ })), N(e, "video[data-lazy-loaded][src], audio[data-lazy-loaded][src], iframe[data-lazy-loaded][src]").forEach((e) => {
313
313
  e.setAttribute("data-src", e.getAttribute("src")), e.removeAttribute("src");
314
- }), P(e, "video[data-lazy-loaded] source[src], audio source[src]").forEach((e) => {
314
+ }), N(e, "video[data-lazy-loaded] source[src], audio source[src]").forEach((e) => {
315
315
  e.setAttribute("data-src", e.getAttribute("src")), e.removeAttribute("src");
316
316
  });
317
317
  }
318
318
  formatEmbeddedContent() {
319
319
  let e = (e, t, n) => {
320
- P(this.Reveal.getSlidesElement(), "iframe[" + e + "*=\"" + t + "\"]").forEach((t) => {
320
+ N(this.Reveal.getSlidesElement(), "iframe[" + e + "*=\"" + t + "\"]").forEach((t) => {
321
321
  let r = t.getAttribute(e);
322
322
  r && r.indexOf(n) === -1 && t.setAttribute(e, r + (/\?/.test(r) ? "&" : "?") + n);
323
323
  });
@@ -327,18 +327,18 @@ var be = class {
327
327
  startEmbeddedContent(e) {
328
328
  if (e) {
329
329
  let t = this.Reveal.isSpeakerNotes();
330
- P(e, "img[src$=\".gif\"]").forEach((e) => {
330
+ N(e, "img[src$=\".gif\"]").forEach((e) => {
331
331
  e.setAttribute("src", e.getAttribute("src"));
332
- }), P(e, "video, audio").forEach((e) => {
332
+ }), N(e, "video, audio").forEach((e) => {
333
333
  if (I(e, ".fragment") && !I(e, ".fragment.visible")) return;
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
337
  e.readyState > 1 ? this.startEmbeddedMedia({ target: e }) : he ? (e.addEventListener("canplay", this.ensureMobileMediaPlaying), this.playMediaElement(e)) : (e.removeEventListener("loadeddata", this.startEmbeddedMedia), e.addEventListener("loadeddata", this.startEmbeddedMedia));
338
338
  }
339
- }), t || (P(e, "iframe[src]").forEach((e) => {
339
+ }), t || (N(e, "iframe[src]").forEach((e) => {
340
340
  I(e, ".fragment") && !I(e, ".fragment.visible") || this.startEmbeddedIframe({ target: e });
341
- }), P(e, "iframe[data-src]").forEach((e) => {
341
+ }), N(e, "iframe[data-src]").forEach((e) => {
342
342
  I(e, ".fragment") && !I(e, ".fragment.visible") || e.getAttribute("src") !== e.getAttribute("data-src") && (e.removeEventListener("load", this.startEmbeddedIframe), e.addEventListener("load", this.startEmbeddedIframe), e.setAttribute("src", e.getAttribute("data-src")));
343
343
  }));
344
344
  }
@@ -381,15 +381,15 @@ var be = class {
381
381
  }
382
382
  }
383
383
  stopEmbeddedContent(e, t = {}) {
384
- t = re({ unloadIframes: !0 }, t), e && e.parentNode && (P(e, "video, audio").forEach((e) => {
384
+ t = ie({ unloadIframes: !0 }, t), e && e.parentNode && (N(e, "video, audio").forEach((e) => {
385
385
  !e.hasAttribute("data-ignore") && typeof e.pause == "function" && (e.setAttribute("data-paused-by-reveal", ""), e.pause(), he && e.removeEventListener("canplay", this.ensureMobileMediaPlaying));
386
- }), P(e, "iframe").forEach((e) => {
386
+ }), N(e, "iframe").forEach((e) => {
387
387
  e.contentWindow && e.contentWindow.postMessage("slide:stop", "*"), e.removeEventListener("load", this.preventIframeAutoFocus), e.removeEventListener("load", this.startEmbeddedIframe);
388
- }), P(e, "iframe[src*=\"youtube.com/embed/\"]").forEach((e) => {
388
+ }), N(e, "iframe[src*=\"youtube.com/embed/\"]").forEach((e) => {
389
389
  !e.hasAttribute("data-ignore") && e.contentWindow && typeof e.contentWindow.postMessage == "function" && e.contentWindow.postMessage("{\"event\":\"command\",\"func\":\"pauseVideo\",\"args\":\"\"}", "*");
390
- }), P(e, "iframe[src*=\"player.vimeo.com/\"]").forEach((e) => {
390
+ }), N(e, "iframe[src*=\"player.vimeo.com/\"]").forEach((e) => {
391
391
  !e.hasAttribute("data-ignore") && e.contentWindow && typeof e.contentWindow.postMessage == "function" && e.contentWindow.postMessage("{\"method\":\"pause\"}", "*");
392
- }), t.unloadIframes === !0 && P(e, "iframe[data-src]").forEach((e) => {
392
+ }), t.unloadIframes === !0 && N(e, "iframe[data-src]").forEach((e) => {
393
393
  e.setAttribute("src", "about:blank"), e.removeAttribute("src");
394
394
  }));
395
395
  }
@@ -433,7 +433,7 @@ var be = class {
433
433
  afterSlideChanged() {
434
434
  this.clearMediaPlaybackErrors();
435
435
  }
436
- }, B = ".slides section", xe = ".slides>section", Se = ".slides>section.present>section", Ce = ".backgrounds>.slide-background", we = /registerPlugin|registerKeyboardShortcut|addKeyBinding|addEventListener|showPreview|previewIframe/, Te = class {
436
+ }, Se = ".slides section", Ce = ".slides>section", z = ".slides>section.present>section", we = ".backgrounds>.slide-background", Te = /registerPlugin|registerKeyboardShortcut|addKeyBinding|addEventListener|showPreview|previewIframe/, Ee = 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
- }, V = class {
485
+ }, De = 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
- }, Ee = (e) => {
538
+ }, Oe = (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
- }, De = (e) => (typeof e == "string" && (e = Ee(e)), e ? (e.r * 299 + e.g * 587 + e.b * 114) / 1e3 : null), Oe = class {
570
+ }, ke = (e) => (typeof e == "string" && (e = Oe(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
  }
@@ -577,7 +577,7 @@ var be = class {
577
577
  create() {
578
578
  this.element.innerHTML = "", this.element.classList.add("no-transition"), this.Reveal.getHorizontalSlides().forEach((e) => {
579
579
  let t = this.createBackground(e, this.element);
580
- P(e, "section").forEach((e) => {
580
+ N(e, "section").forEach((e) => {
581
581
  this.createBackground(e, t), t.classList.add("stack");
582
582
  });
583
583
  }), this.Reveal.getConfig().parallaxBackgroundImage ? (this.element.style.backgroundImage = "url(\"" + this.Reveal.getConfig().parallaxBackgroundImage + "\")", this.element.style.backgroundSize = this.Reveal.getConfig().parallaxBackgroundSize, this.element.style.backgroundRepeat = this.Reveal.getConfig().parallaxBackgroundRepeat, this.element.style.backgroundPosition = this.Reveal.getConfig().parallaxBackgroundPosition, setTimeout(() => {
@@ -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 || !Ee(n)) {
613
+ if (!n || !Oe(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 = Ee(n);
619
- if (e && e.a !== 0) return De(n) < 128 ? "has-dark-background" : "has-light-background";
618
+ let e = Oe(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
  }
@@ -628,7 +628,7 @@ var be = class {
628
628
  update(e = !1) {
629
629
  let t = this.Reveal.getConfig(), n = this.Reveal.getCurrentSlide(), r = this.Reveal.getIndices(), i = null, a = t.rtl ? "future" : "past", o = t.rtl ? "past" : "future";
630
630
  if (Array.from(this.element.childNodes).forEach((t, n) => {
631
- t.classList.remove("past", "present", "future"), n < r.h ? t.classList.add(a) : n > r.h ? t.classList.add(o) : (t.classList.add("present"), i = t), (e || n === r.h) && P(t, ".slide-background").forEach((e, t) => {
631
+ t.classList.remove("past", "present", "future"), n < r.h ? t.classList.add(a) : n > r.h ? t.classList.add(o) : (t.classList.add("present"), i = t), (e || n === r.h) && N(t, ".slide-background").forEach((e, t) => {
632
632
  e.classList.remove("past", "present", "future");
633
633
  let a = typeof r.v == "number" ? r.v : 0;
634
634
  t < a ? e.classList.add("past") : t > a ? e.classList.add("future") : (e.classList.add("present"), n === r.h && (i = e));
@@ -672,7 +672,7 @@ var be = class {
672
672
  destroy() {
673
673
  this.element.remove();
674
674
  }
675
- }, ke = 0, Ae = class {
675
+ }, B = 0, je = class {
676
676
  constructor(e) {
677
677
  this.Reveal = e;
678
678
  }
@@ -685,12 +685,12 @@ var be = class {
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, ke++));
688
+ let o = this.getAutoAnimatableElements(e, t).map((e) => this.autoAnimateElements(e.from, e.to, e.options || {}, n, B++));
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-" + ke++, o.push(`[data-auto-animate="running"] [data-auto-animate-target="${r}"] { transition: opacity ${t.duration}s ease ${t.delay}s; }`)), e.dataset.autoAnimateTarget = r;
693
+ (t.duration !== n.duration || t.delay !== n.delay) && (r = "unmatched-" + B++, 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(() => {
@@ -706,9 +706,9 @@ var be = class {
706
706
  }
707
707
  }
708
708
  reset() {
709
- P(this.Reveal.getRevealElement(), "[data-auto-animate]:not([data-auto-animate=\"\"])").forEach((e) => {
709
+ N(this.Reveal.getRevealElement(), "[data-auto-animate]:not([data-auto-animate=\"\"])").forEach((e) => {
710
710
  e.dataset.autoAnimate = "";
711
- }), P(this.Reveal.getRevealElement(), "[data-auto-animate-target]").forEach((e) => {
711
+ }), N(this.Reveal.getRevealElement(), "[data-auto-animate-target]").forEach((e) => {
712
712
  delete e.dataset.autoAnimateTarget;
713
713
  }), this.autoAnimateStyleSheet && this.autoAnimateStyleSheet.parentNode && (this.autoAnimateStyleSheet.parentNode.removeChild(this.autoAnimateStyleSheet), this.autoAnimateStyleSheet = null);
714
714
  }
@@ -749,7 +749,7 @@ var be = class {
749
749
  duration: this.Reveal.getConfig().autoAnimateDuration,
750
750
  delay: 0
751
751
  };
752
- if (n = re(n, t), e.parentNode) {
752
+ if (n = ie(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
- }, je = 500, Me = 4, Ne = 6, Pe = 8, Fe = class {
845
+ }, Me = 500, Ne = 4, Pe = 6, Fe = 8, Ie = 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(), xe), n = P(this.Reveal.getRevealElement(), Ce);
853
+ let t = N(this.Reveal.getRevealElement(), Ce), n = N(this.Reveal.getRevealElement(), we);
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);
@@ -872,7 +872,7 @@ var be = class {
872
872
  this.Reveal.isVerticalStack(e) ? e.querySelectorAll("section").forEach((e, n) => {
873
873
  c(e, t, n, !0);
874
874
  }) : c(e, t, 0);
875
- }, this), this.createProgressBar(), P(this.Reveal.getRevealElement(), ".stack").forEach((e) => e.remove()), a.forEach((e) => o.appendChild(e)), this.Reveal.slideContent.layout(this.Reveal.getSlidesElement()), this.Reveal.layout(), this.Reveal.setState(e), this.activatedCallbacks.forEach((e) => e()), this.activatedCallbacks = [], this.restoreScrollPosition(), this.viewportElement.classList.remove("loading-scroll-mode"), this.viewportElement.addEventListener("scroll", this.onScroll, { passive: !0 });
875
+ }, this), this.createProgressBar(), N(this.Reveal.getRevealElement(), ".stack").forEach((e) => e.remove()), a.forEach((e) => o.appendChild(e)), this.Reveal.slideContent.layout(this.Reveal.getSlidesElement()), this.Reveal.layout(), this.Reveal.setState(e), this.activatedCallbacks.forEach((e) => e()), this.activatedCallbacks = [], this.restoreScrollPosition(), this.viewportElement.classList.remove("loading-scroll-mode"), this.viewportElement.addEventListener("scroll", this.onScroll, { passive: !0 });
876
876
  }
877
877
  deactivate() {
878
878
  if (!this.active) return;
@@ -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, Pe), this.progressBarScrollableHeight = this.progressBarHeight - this.playheadHeight;
979
- let r = t / e * this.progressBarHeight, i = Math.min(r / 8, Me);
980
- this.progressBarPlayhead.style.height = this.playheadHeight - i + "px", r > Ne && this.slideTriggers.forEach((e) => {
978
+ this.progressBarHeight = this.progressBarInner.offsetHeight, this.playheadHeight = Math.max(n * this.progressBarHeight, Fe), this.progressBarScrollableHeight = this.progressBarHeight - this.playheadHeight;
979
+ let r = t / e * this.progressBarHeight, i = Math.min(r / 8, Ne);
980
+ this.progressBarPlayhead.style.height = this.playheadHeight - i + "px", r > Pe && 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
- }, je));
1013
+ }, Me));
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 Ie(e, t, n, r, i, a, o) {
1074
+ function Le(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,29 +1080,29 @@ 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 Le(e) {
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
- Ie(a, r, i, o, s, "next", e);
1089
+ Le(a, r, i, o, s, "next", e);
1090
1090
  }
1091
1091
  function s(e) {
1092
- Ie(a, r, i, o, s, "throw", e);
1092
+ Le(a, r, i, o, s, "throw", e);
1093
1093
  }
1094
1094
  o(void 0);
1095
1095
  });
1096
1096
  };
1097
1097
  }
1098
- var Re = class {
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 Le(function* () {
1105
- let t = e.Reveal.getConfig(), n = P(e.Reveal.getRevealElement(), B), 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;
1104
+ return Re(function* () {
1105
+ let t = e.Reveal.getConfig(), n = N(e.Reveal.getRevealElement(), Se), 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
1106
  yield new Promise(requestAnimationFrame), L("@page{size:" + a + "px " + o + "px; margin: 0px;}"), L(".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) {
@@ -1146,7 +1146,7 @@ var Re = class {
1146
1146
  e.classList.remove("visible", "current-fragment");
1147
1147
  });
1148
1148
  });
1149
- } else P(g, ".fragment:not(.fade-out)").forEach(function(e) {
1149
+ } else N(g, ".fragment:not(.fade-out)").forEach(function(e) {
1150
1150
  e.classList.add("visible");
1151
1151
  });
1152
1152
  }
@@ -1156,7 +1156,7 @@ var Re = class {
1156
1156
  isActive() {
1157
1157
  return this.Reveal.getConfig().view === "print";
1158
1158
  }
1159
- }, ze = class {
1159
+ }, Be = class {
1160
1160
  constructor(e) {
1161
1161
  this.Reveal = e;
1162
1162
  }
@@ -1164,12 +1164,12 @@ var Re = class {
1164
1164
  e.fragments === !1 ? this.disable() : t.fragments === !1 && this.enable();
1165
1165
  }
1166
1166
  disable() {
1167
- P(this.Reveal.getSlidesElement(), ".fragment").forEach((e) => {
1167
+ N(this.Reveal.getSlidesElement(), ".fragment").forEach((e) => {
1168
1168
  e.classList.add("visible"), e.classList.remove("current-fragment");
1169
1169
  });
1170
1170
  }
1171
1171
  enable() {
1172
- P(this.Reveal.getSlidesElement(), ".fragment").forEach((e) => {
1172
+ N(this.Reveal.getSlidesElement(), ".fragment").forEach((e) => {
1173
1173
  e.classList.remove("visible"), e.classList.remove("current-fragment");
1174
1174
  });
1175
1175
  }
@@ -1205,7 +1205,7 @@ var Re = class {
1205
1205
  }
1206
1206
  sortAll() {
1207
1207
  this.Reveal.getHorizontalSlides().forEach((e) => {
1208
- let t = P(e, "section");
1208
+ let t = N(e, "section");
1209
1209
  t.forEach((e, t) => {
1210
1210
  this.sort(e.querySelectorAll(".fragment"));
1211
1211
  }, this), t.length === 0 && this.sort(e.querySelectorAll(".fragment"));
@@ -1279,13 +1279,13 @@ var Re = class {
1279
1279
  prev() {
1280
1280
  return this.goto(null, -1);
1281
1281
  }
1282
- }, Be = class {
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(), B).forEach((e) => {
1288
+ this.active = !0, this.Reveal.getRevealElement().classList.add("overview"), this.Reveal.cancelAutoSlide(), this.Reveal.getSlidesElement().appendChild(this.Reveal.getBackgroundsElement()), N(this.Reveal.getRevealElement(), Se).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), oe(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), oe(e, "translate3d(0, " + n * this.overviewSlideHeight + "px, 0)");
1306
+ e.setAttribute("data-index-h", t), P(e, "translate3d(" + t * this.overviewSlideWidth + "px, 0, 0)"), e.classList.contains("stack") && N(e, "section").forEach((e, n) => {
1307
+ e.setAttribute("data-index-h", t), e.setAttribute("data-index-v", n), P(e, "translate3d(0, " + n * this.overviewSlideHeight + "px, 0)");
1308
1308
  });
1309
1309
  }), Array.from(this.Reveal.getBackgroundsElement().childNodes).forEach((e, t) => {
1310
- oe(e, "translate3d(" + t * this.overviewSlideWidth + "px, 0, 0)"), P(e, ".slide-background").forEach((e, t) => {
1311
- oe(e, "translate3d(0, " + t * this.overviewSlideHeight + "px, 0)");
1310
+ P(e, "translate3d(" + t * this.overviewSlideWidth + "px, 0, 0)"), N(e, ".slide-background").forEach((e, t) => {
1311
+ P(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(), B).forEach((e) => {
1328
- oe(e, ""), e.removeEventListener("click", this.onSlideClicked, !0);
1329
- }), P(this.Reveal.getBackgroundsElement(), ".slide-background").forEach((e) => {
1330
- oe(e, "");
1327
+ }, 1), this.Reveal.getRevealElement().appendChild(this.Reveal.getBackgroundsElement()), N(this.Reveal.getRevealElement(), Se).forEach((e) => {
1328
+ P(e, ""), e.removeEventListener("click", this.onSlideClicked, !0);
1329
+ }), N(this.Reveal.getBackgroundsElement(), ".slide-background").forEach((e) => {
1330
+ P(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
- }, Ve = class {
1360
+ }, He = class {
1361
1361
  constructor(e) {
1362
1362
  this.Reveal = e, this.shortcuts = {}, this.bindings = {}, this.onDocumentKeyDown = this.onDocumentKeyDown.bind(this);
1363
1363
  }
@@ -1450,7 +1450,7 @@ var Re = class {
1450
1450
  ].includes(n) || n === 191 && !e.shiftKey ? this.Reveal.togglePause() : n === 70 ? se(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 H(e, t) {
1453
+ function V(e, t) {
1454
1454
  var n = Object.keys(e);
1455
1455
  if (Object.getOwnPropertySymbols) {
1456
1456
  var r = Object.getOwnPropertySymbols(e);
@@ -1460,20 +1460,20 @@ function H(e, t) {
1460
1460
  }
1461
1461
  return n;
1462
1462
  }
1463
- function U(e) {
1463
+ function H(e) {
1464
1464
  for (var t = 1; t < arguments.length; t++) {
1465
1465
  var n = arguments[t] == null ? {} : arguments[t];
1466
- t % 2 ? H(Object(n), !0).forEach(function(t) {
1467
- z(e, t, n[t]);
1468
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : H(Object(n)).forEach(function(t) {
1466
+ t % 2 ? V(Object(n), !0).forEach(function(t) {
1467
+ be(e, t, n[t]);
1468
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : V(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 He = class {
1474
+ var Ue = class {
1475
1475
  constructor(e) {
1476
- z(this, "MAX_REPLACE_STATE_FREQUENCY", 1e3), this.Reveal = e, this.writeURLTimeout = 0, this.replaceStateTimestamp = 0, this.onWindowHashChange = this.onWindowHashChange.bind(this);
1476
+ be(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);
@@ -1490,7 +1490,7 @@ var He = class {
1490
1490
  let t = decodeURIComponent(n);
1491
1491
  e = (document.getElementById(t) || document.querySelector(`[data-id="${t}"]`)).closest(".slides section");
1492
1492
  } catch {}
1493
- if (e) return U(U({}, this.Reveal.getIndices(e)), {}, { f: t });
1493
+ if (e) return H(H({}, this.Reveal.getIndices(e)), {}, { f: t });
1494
1494
  } else {
1495
1495
  let e = this.Reveal.getConfig(), n = e.hashOneBasedIndex || t.oneBasedIndex ? 1 : 0, i = parseInt(r[0], 10) - n || 0, a = parseInt(r[1], 10) - n || 0, o;
1496
1496
  return e.fragmentInURL && (o = parseInt(r[2], 10), isNaN(o) && (o = void 0)), {
@@ -1533,7 +1533,7 @@ var He = class {
1533
1533
  onWindowHashChange(e) {
1534
1534
  this.readURL();
1535
1535
  }
1536
- }, Ue = class {
1536
+ }, We = 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
  }
@@ -1542,7 +1542,7 @@ var He = class {
1542
1542
  this.element = document.createElement("aside"), this.element.className = "controls", this.element.innerHTML = `<button class="navigate-left" aria-label="${e ? "next slide" : "previous slide"}"><div class="controls-arrow"></div></button>
1543
1543
  <button class="navigate-right" aria-label="${e ? "previous slide" : "next slide"}"><div class="controls-arrow"></div></button>
1544
1544
  <button class="navigate-up" aria-label="above slide"><div class="controls-arrow"></div></button>
1545
- <button class="navigate-down" aria-label="below slide"><div class="controls-arrow"></div></button>`, this.Reveal.getRevealElement().appendChild(this.element), this.controlsLeft = P(t, ".navigate-left"), this.controlsRight = P(t, ".navigate-right"), this.controlsUp = P(t, ".navigate-up"), this.controlsDown = P(t, ".navigate-down"), this.controlsPrev = P(t, ".navigate-prev"), this.controlsNext = P(t, ".navigate-next"), this.controlsFullscreen = P(t, ".enter-fullscreen"), this.controlsRightArrow = this.element.querySelector(".navigate-right"), this.controlsLeftArrow = this.element.querySelector(".navigate-left"), this.controlsDownArrow = this.element.querySelector(".navigate-down");
1545
+ <button class="navigate-down" aria-label="below slide"><div class="controls-arrow"></div></button>`, this.Reveal.getRevealElement().appendChild(this.element), this.controlsLeft = N(t, ".navigate-left"), this.controlsRight = N(t, ".navigate-right"), this.controlsUp = N(t, ".navigate-up"), this.controlsDown = N(t, ".navigate-down"), this.controlsPrev = N(t, ".navigate-prev"), this.controlsNext = N(t, ".navigate-next"), this.controlsFullscreen = N(t, ".enter-fullscreen"), this.controlsRightArrow = this.element.querySelector(".navigate-right"), this.controlsLeftArrow = this.element.querySelector(".navigate-left"), this.controlsDownArrow = this.element.querySelector(".navigate-down");
1546
1546
  }
1547
1547
  configure(e, t) {
1548
1548
  let n = e.controls === "speaker" || e.controls === "speaker-only";
@@ -1550,7 +1550,7 @@ var He = class {
1550
1550
  }
1551
1551
  bind() {
1552
1552
  let e = ["touchstart", "click"];
1553
- R && (e = ["touchend"]), e.forEach((e) => {
1553
+ ge && (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
  }
@@ -1636,7 +1636,7 @@ var He = class {
1636
1636
  let t = this.Reveal.getConfig(), n = this.Reveal.getViewportElement();
1637
1637
  se(t.embedded ? n : n.parentElement);
1638
1638
  }
1639
- }, We = class {
1639
+ }, Ge = 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
- }, Ge = class {
1674
+ }, Ke = 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
- }, Ke = (e, t) => {
1700
+ }, qe = (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
- }, qe = class {
1709
+ }, Je = 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" ? Ke(e.src, () => t(e)) : (console.warn("Unrecognized plugin format", e), t());
1724
+ typeof e.id == "string" ? (this.registerPlugin(e), t(e)) : typeof e.src == "string" ? qe(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
- Ke(e.src, e.callback);
1749
+ qe(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
- }, Je = class {
1771
+ }, Ye = 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
- }, Ye = 40, Xe = 1.03, Ze = class {
1919
+ }, Xe = 40, Ze = 1.03, Qe = 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 > Xe;
1942
+ return this.visualViewportBaseScale = this.visualViewportBaseScale === void 0 ? e : Math.min(this.visualViewportBaseScale, e), e / this.visualViewportBaseScale > Ze;
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) R && e.preventDefault();
1951
+ if (this.touchCaptured) ge && 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 > Ye && 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 > Ye && 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();
1957
+ a > Xe && 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 > Xe && 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
- }, Qe = "focus", $e = "blur", et = class {
1982
+ }, $e = "focus", et = "blur", tt = 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 !== Qe && (this.Reveal.getRevealElement().classList.add("focused"), document.addEventListener("pointerdown", this.onDocumentPointerDown, !1)), this.state = Qe;
1996
+ this.state !== $e && (this.Reveal.getRevealElement().classList.add("focused"), document.addEventListener("pointerdown", this.onDocumentPointerDown, !1)), this.state = $e;
1997
1997
  }
1998
1998
  blur() {
1999
- this.state !== $e && (this.Reveal.getRevealElement().classList.remove("focused"), document.removeEventListener("pointerdown", this.onDocumentPointerDown, !1)), this.state = $e;
1999
+ this.state !== et && (this.Reveal.getRevealElement().classList.remove("focused"), document.removeEventListener("pointerdown", this.onDocumentPointerDown, !1)), this.state = et;
2000
2000
  }
2001
2001
  isFocused() {
2002
- return this.state === Qe;
2002
+ return this.state === $e;
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
- }, tt = class {
2014
+ }, nt = 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
- }, nt = class {
2044
+ }, rt = 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
- }, rt = {
2071
+ }, it = {
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
- }, it = "6.0.2";
2162
- function at(e, t) {
2161
+ }, at = "6.0.2";
2162
+ function ot(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,19 +2167,19 @@ 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 be(n), S = new Te(n), C = new V(n), ee = new Ae(n), w = new Oe(n), T = new Fe(n), E = new Re(n), D = new ze(n), O = new Be(n), k = new Ve(n), A = new He(n), te = new Ue(n), ne = new We(n), j = new Ge(n), M = new qe(n), N = new Je(n), F = new et(n), se = new Ze(n), L = new tt(n);
2170
+ }, m = {}, h = "idle", g = 0, _, v = 0, y = -1, b = !1, x = new xe(n), S = new Ee(n), C = new De(n), ee = new je(n), w = new Ae(n), T = new Ie(n), te = new ze(n), E = new Be(n), D = new Ve(n), O = new He(n), k = new Ue(n), ne = new We(n), re = new Ge(n), A = new Ke(n), j = new Je(n), M = new Ye(n), F = new tt(n), se = new Qe(n), L = new nt(n);
2171
2171
  function de(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({}, rt), r), t), a), le()), /print-pdf/gi.test(window.location.search) && (r.view = "print"), fe(), window.addEventListener("load", Xe, !1), M.load(r.plugins, r.dependencies).then(pe), new Promise((e) => n.on("ready", e));
2175
+ return r = H(H(H(H(H({}, it), r), t), a), le()), /print-pdf/gi.test(window.location.search) && (r.view = "print"), fe(), window.addEventListener("load", Ze, !1), j.load(r.plugins, r.dependencies).then(pe), new Promise((e) => n.on("ready", e));
2176
2176
  }
2177
2177
  function fe() {
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
2180
  function pe() {
2181
- i !== !1 && (a = !0, R(), ge(), De(), Ce(), Ee(), xt(), ke(), w.update(!0), me(), A.readURL(), setTimeout(() => {
2182
- m.slides.classList.remove("no-transition"), m.wrapper.classList.add("ready"), H({
2181
+ i !== !1 && (a = !0, ge(), _e(), ke(), we(), Oe(), q(), B(), w.update(!0), me(), k.readURL(), setTimeout(() => {
2182
+ m.slides.classList.remove("no-transition"), m.wrapper.classList.add("ready"), V({
2183
2183
  type: "ready",
2184
2184
  data: {
2185
2185
  indexh: o,
@@ -2191,25 +2191,25 @@ function at(e, t) {
2191
2191
  }
2192
2192
  function me() {
2193
2193
  let e = r.view === "print", t = r.view === "scroll" || r.view === "reader";
2194
- (e || t) && (e ? Me() : se.unbind(), m.viewport.classList.add("loading-scroll-mode"), e ? document.readyState === "complete" ? E.activate() : window.addEventListener("load", () => E.activate()) : T.activate());
2194
+ (e || t) && (e ? Ne() : se.unbind(), m.viewport.classList.add("loading-scroll-mode"), e ? document.readyState === "complete" ? te.activate() : window.addEventListener("load", () => te.activate()) : T.activate());
2195
2195
  }
2196
- function R() {
2197
- r.showHiddenSlides || P(m.wrapper, "section[data-visibility=\"hidden\"]").forEach((e) => {
2196
+ function ge() {
2197
+ r.showHiddenSlides || N(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"), he ? m.wrapper.classList.add("no-hover") : m.wrapper.classList.remove("no-hover"), w.render(), S.render(), C.render(), ne.render(), re.render(), L.render(), m.pauseOverlay = ce(m.wrapper, "div", "pause-overlay", r.controls ? "<button class=\"resume-button\">Resume presentation</button>" : null), m.statusElement = ve(), m.wrapper.setAttribute("role", "application");
2204
+ }
2205
+ function ve() {
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 ve(e) {
2209
+ function ye(e) {
2210
2210
  m.statusElement.textContent = e;
2211
2211
  }
2212
- function ye(e) {
2212
+ function R(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 += z(n));
2220
+ n && (t += be(n));
2221
2221
  }
2222
2222
  Array.from(e.childNodes).forEach((e) => {
2223
- t += ye(e);
2223
+ t += R(e);
2224
2224
  }), [
2225
2225
  "P",
2226
2226
  "DIV",
@@ -2234,58 +2234,58 @@ function at(e, t) {
2234
2234
  "H5",
2235
2235
  "H6",
2236
2236
  "BLOCKQUOTE"
2237
- ].includes(e.tagName) && t.trim() !== "" && (t = z(t));
2237
+ ].includes(e.tagName) && t.trim() !== "" && (t = be(t));
2238
2238
  }
2239
2239
  }
2240
2240
  return t = t.trim(), t === "" ? "" : t + " ";
2241
2241
  }
2242
- function z(e) {
2242
+ function be(e) {
2243
2243
  let t = e.trim();
2244
2244
  return t === "" ? e : /[.!?]$/.test(t) ? t : t + ".";
2245
2245
  }
2246
- function Ce() {
2246
+ function we() {
2247
2247
  setInterval(() => {
2248
2248
  (!T.isActive() && m.wrapper.scrollTop !== 0 || m.wrapper.scrollLeft !== 0) && (m.wrapper.scrollTop = 0, m.wrapper.scrollLeft = 0);
2249
2249
  }, 1e3);
2250
2250
  }
2251
- function Ee() {
2251
+ function Oe() {
2252
2252
  document.addEventListener("fullscreenchange", rn), document.addEventListener("webkitfullscreenchange", rn);
2253
2253
  }
2254
- function De() {
2254
+ function ke() {
2255
2255
  r.postMessage && window.addEventListener("message", Qt, !1);
2256
2256
  }
2257
- function ke(e) {
2258
- let t = U({}, r);
2259
- if (typeof e == "object" && re(r, e), n.isReady() === !1) return;
2260
- let i = m.wrapper.querySelectorAll(B).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 && J(), ie(m.wrapper, "embedded", r.embedded), ie(m.wrapper, "rtl", r.rtl), ie(m.wrapper, "center", r.center), r.pause === !1 && ft(), ee.reset(), _ &&= (_.destroy(), null), i > 1 && r.autoSlide && r.autoSlideStoppable && (_ = new nt(m.wrapper, () => Math.min(Math.max((Date.now() - y) / g, 0), 1)), _.on("click", an), b = !1), r.navigationMode === "default" ? m.wrapper.removeAttribute("data-navigation-mode") : m.wrapper.setAttribute("data-navigation-mode", r.navigationMode), L.configure(r, t), F.configure(r, t), j.configure(r, t), te.configure(r, t), ne.configure(r, t), k.configure(r, t), D.configure(r, t), S.configure(r, t), q();
2262
- }
2263
- function je() {
2264
- window.addEventListener("resize", tn, !1), r.touch && se.bind(), r.keyboard && k.bind(), r.progress && ne.bind(), r.respondToHashChanges && A.bind(), te.bind(), F.bind(), m.slides.addEventListener("click", en, !1), m.slides.addEventListener("transitionend", $t, !1), m.pauseOverlay.addEventListener("click", ft, !1), r.focusBodyOnPageVisibilityChange && document.addEventListener("visibilitychange", nn, !1);
2257
+ function B(e) {
2258
+ let t = H({}, r);
2259
+ if (typeof e == "object" && ie(r, e), n.isReady() === !1) return;
2260
+ let i = m.wrapper.querySelectorAll(Se).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 && J(), ae(m.wrapper, "embedded", r.embedded), ae(m.wrapper, "rtl", r.rtl), ae(m.wrapper, "center", r.center), r.pause === !1 && pt(), ee.reset(), _ &&= (_.destroy(), null), i > 1 && r.autoSlide && r.autoSlideStoppable && (_ = new rt(m.wrapper, () => Math.min(Math.max((Date.now() - y) / g, 0), 1)), _.on("click", an), b = !1), r.navigationMode === "default" ? m.wrapper.removeAttribute("data-navigation-mode") : m.wrapper.setAttribute("data-navigation-mode", r.navigationMode), L.configure(r, t), F.configure(r, t), A.configure(r, t), ne.configure(r, t), re.configure(r, t), O.configure(r, t), E.configure(r, t), S.configure(r, t), K();
2265
2262
  }
2266
2263
  function Me() {
2267
- se.unbind(), F.unbind(), k.unbind(), te.unbind(), ne.unbind(), A.unbind(), window.removeEventListener("resize", tn, !1), m.slides.removeEventListener("click", en, !1), m.slides.removeEventListener("transitionend", $t, !1), m.pauseOverlay.removeEventListener("click", ft, !1);
2264
+ window.addEventListener("resize", tn, !1), r.touch && se.bind(), r.keyboard && O.bind(), r.progress && re.bind(), r.respondToHashChanges && k.bind(), ne.bind(), F.bind(), m.slides.addEventListener("click", en, !1), m.slides.addEventListener("transitionend", $t, !1), m.pauseOverlay.addEventListener("click", pt, !1), r.focusBodyOnPageVisibilityChange && document.addEventListener("visibilitychange", nn, !1);
2268
2265
  }
2269
2266
  function Ne() {
2270
- i = !1, a !== !1 && (Me(), Ht(), L.destroy(), F.destroy(), N.destroy(), M.destroy(), j.destroy(), te.destroy(), ne.destroy(), w.destroy(), S.destroy(), C.destroy(), document.removeEventListener("fullscreenchange", rn), document.removeEventListener("webkitfullscreenchange", rn), document.removeEventListener("visibilitychange", nn, !1), window.removeEventListener("message", Qt, !1), window.removeEventListener("load", Xe, !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(B)).forEach((e) => {
2267
+ se.unbind(), F.unbind(), O.unbind(), ne.unbind(), re.unbind(), k.unbind(), window.removeEventListener("resize", tn, !1), m.slides.removeEventListener("click", en, !1), m.slides.removeEventListener("transitionend", $t, !1), m.pauseOverlay.removeEventListener("click", pt, !1);
2268
+ }
2269
+ function Pe() {
2270
+ i = !1, a !== !1 && (Ne(), Ht(), L.destroy(), F.destroy(), M.destroy(), j.destroy(), A.destroy(), ne.destroy(), re.destroy(), w.destroy(), S.destroy(), C.destroy(), document.removeEventListener("fullscreenchange", rn), document.removeEventListener("webkitfullscreenchange", rn), document.removeEventListener("visibilitychange", nn, !1), window.removeEventListener("message", Qt, !1), window.removeEventListener("load", Ze, !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(Se)).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
- function Pe(t, n, r) {
2274
+ function Fe(t, n, r) {
2275
2275
  e.addEventListener(t, n, r);
2276
2276
  }
2277
- function Ie(t, n, r) {
2277
+ function Le(t, n, r) {
2278
2278
  e.removeEventListener(t, n, r);
2279
2279
  }
2280
- function Le(e) {
2281
- typeof e.layout == "string" && (p.layout = e.layout), typeof e.overview == "string" && (p.overview = e.overview), p.layout ? oe(m.slides, p.layout + " " + p.overview) : oe(m.slides, p.overview);
2280
+ function Re(e) {
2281
+ typeof e.layout == "string" && (p.layout = e.layout), typeof e.overview == "string" && (p.overview = e.overview), p.layout ? P(m.slides, p.layout + " " + p.overview) : P(m.slides, p.overview);
2282
2282
  }
2283
- function H({ target: e = m.wrapper, type: t, data: n, bubbles: r = !0 }) {
2283
+ function V({ 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), re(i, n), e.dispatchEvent(i), e === m.wrapper && Ye(t), i;
2285
+ return i.initEvent(t, r, !0), ie(i, n), e.dispatchEvent(i), e === m.wrapper && Xe(t), i;
2286
2286
  }
2287
- function Ke(e) {
2288
- H({
2287
+ function qe(e) {
2288
+ V({
2289
2289
  type: "slidechanged",
2290
2290
  data: {
2291
2291
  indexh: o,
@@ -2296,30 +2296,30 @@ function at(e, t) {
2296
2296
  }
2297
2297
  });
2298
2298
  }
2299
- function Ye(e, t) {
2299
+ function Xe(e, t) {
2300
2300
  if (r.postMessageEvents && window.parent !== window.self) {
2301
2301
  let n = {
2302
2302
  namespace: "reveal",
2303
2303
  eventName: e,
2304
2304
  state: zt()
2305
2305
  };
2306
- re(n, t), window.parent.postMessage(JSON.stringify(n), "*");
2306
+ ie(n, t), window.parent.postMessage(JSON.stringify(n), "*");
2307
2307
  }
2308
2308
  }
2309
- function Xe() {
2310
- if (m.wrapper && !E.isActive()) {
2309
+ function Ze() {
2310
+ if (m.wrapper && !te.isActive()) {
2311
2311
  let e = m.viewport.offsetWidth, t = m.viewport.offsetHeight;
2312
2312
  if (!r.disableLayout) {
2313
2313
  he && !r.embedded && document.documentElement.style.setProperty("--vh", window.innerHeight * .01 + "px");
2314
- let n = T.isActive() ? at(e, t) : at(), i = f;
2315
- Qe(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 || T.isActive() ? (m.slides.style.zoom = "", m.slides.style.left = "", m.slides.style.top = "", m.slides.style.bottom = "", m.slides.style.right = "", Le({ 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", Le({ layout: "translate(-50%, -50%) scale(" + f + ")" }));
2316
- let a = Array.from(m.wrapper.querySelectorAll(B)).filter((e) => e.style.display !== "none"), o = Array(a.length);
2314
+ let n = T.isActive() ? ot(e, t) : ot(), i = f;
2315
+ $e(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 || T.isActive() ? (m.slides.style.zoom = "", m.slides.style.left = "", m.slides.style.top = "", m.slides.style.bottom = "", m.slides.style.right = "", Re({ 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", Re({ layout: "translate(-50%, -50%) scale(" + f + ")" }));
2316
+ let a = Array.from(m.wrapper.querySelectorAll(Se)).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] = "";
2320
2320
  }
2321
2321
  for (let e = 0, t = a.length; e < t; e++) a[e].style.top = o[e];
2322
- i !== f && H({
2322
+ i !== f && V({
2323
2323
  type: "resize",
2324
2324
  data: {
2325
2325
  oldScale: i,
@@ -2328,11 +2328,11 @@ function at(e, t) {
2328
2328
  }
2329
2329
  });
2330
2330
  }
2331
- $e(), m.viewport.style.setProperty("--slide-scale", f), m.viewport.style.setProperty("--viewport-width", e + "px"), m.viewport.style.setProperty("--viewport-height", t + "px"), T.layout(), ne.update(), w.updateParallax(), O.isActive() && O.update();
2331
+ et(), m.viewport.style.setProperty("--slide-scale", f), m.viewport.style.setProperty("--viewport-width", e + "px"), m.viewport.style.setProperty("--viewport-height", t + "px"), T.layout(), re.update(), w.updateParallax(), D.isActive() && D.update();
2332
2332
  }
2333
2333
  }
2334
- function Qe(e, t) {
2335
- P(m.slides, "section > .stretch, section > .r-stretch").forEach((n) => {
2334
+ function $e(e, t) {
2335
+ N(m.slides, "section > .stretch, section > .r-stretch").forEach((n) => {
2336
2336
  let r = ue(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);
@@ -2340,13 +2340,13 @@ function at(e, t) {
2340
2340
  } else n.style.width = e + "px", n.style.height = r + "px";
2341
2341
  });
2342
2342
  }
2343
- function $e() {
2344
- if (m.wrapper && !r.disableLayout && !E.isActive() && typeof r.scrollActivationWidth == "number" && r.view !== "scroll") {
2345
- let e = at();
2343
+ function et() {
2344
+ if (m.wrapper && !r.disableLayout && !te.isActive() && typeof r.scrollActivationWidth == "number" && r.view !== "scroll") {
2345
+ let e = ot();
2346
2346
  e.presentationWidth > 0 && e.presentationWidth <= r.scrollActivationWidth ? T.isActive() || (w.create(), T.activate()) : T.isActive() && T.deactivate();
2347
2347
  }
2348
2348
  }
2349
- function at(e, t) {
2349
+ function ot(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,58 +2357,58 @@ 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 W(e, t) {
2360
+ function U(e, t) {
2361
2361
  typeof e == "object" && typeof e.setAttribute == "function" && e.setAttribute("data-previous-indexv", t || 0);
2362
2362
  }
2363
- function ot(e) {
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 G(e = l) {
2370
+ function W(e = l) {
2371
2371
  return e && e.parentNode && !!e.parentNode.nodeName.match(/section/i);
2372
2372
  }
2373
- function st(e = l) {
2373
+ function ct(e = l) {
2374
2374
  return e.classList.contains(".stack") || e.querySelector("section") !== null;
2375
2375
  }
2376
- function ct() {
2377
- return l && G(l) ? !l.nextElementSibling : !1;
2378
- }
2379
2376
  function lt() {
2380
- return o === 0 && s === 0;
2377
+ return l && W(l) ? !l.nextElementSibling : !1;
2381
2378
  }
2382
2379
  function ut() {
2383
- return l ? !(l.nextElementSibling || G(l) && l.parentNode.nextElementSibling) : !1;
2380
+ return o === 0 && s === 0;
2384
2381
  }
2385
2382
  function dt() {
2383
+ return l ? !(l.nextElementSibling || W(l) && l.parentNode.nextElementSibling) : !1;
2384
+ }
2385
+ function ft() {
2386
2386
  if (r.pause) {
2387
2387
  let e = m.wrapper.classList.contains("paused");
2388
- Ht(), m.wrapper.classList.add("paused"), e === !1 && H({ type: "paused" });
2388
+ Ht(), m.wrapper.classList.add("paused"), e === !1 && V({ type: "paused" });
2389
2389
  }
2390
2390
  }
2391
- function ft() {
2391
+ function pt() {
2392
2392
  let e = m.wrapper.classList.contains("paused");
2393
- m.wrapper.classList.remove("paused"), Vt(), e && H({ type: "resumed" });
2393
+ m.wrapper.classList.remove("paused"), Vt(), e && V({ type: "resumed" });
2394
2394
  }
2395
- function pt(e) {
2396
- typeof e == "boolean" ? e ? dt() : ft() : mt() ? ft() : dt();
2395
+ function mt(e) {
2396
+ typeof e == "boolean" ? e ? ft() : pt() : ht() ? pt() : ft();
2397
2397
  }
2398
- function mt() {
2398
+ function ht() {
2399
2399
  return m.wrapper.classList.contains("paused");
2400
2400
  }
2401
- function ht(e) {
2401
+ function gt(e) {
2402
2402
  typeof e == "boolean" ? e ? C.show() : C.hide() : C.isVisible() ? C.hide() : C.show();
2403
2403
  }
2404
- function gt(e) {
2404
+ function _t(e) {
2405
2405
  typeof e == "boolean" ? e ? Wt() : Ut() : b ? Wt() : Ut();
2406
2406
  }
2407
- function _t() {
2407
+ function vt() {
2408
2408
  return !!(g && !b);
2409
2409
  }
2410
- function K(t, n, i, a) {
2411
- if (H({
2410
+ function G(t, n, i, a) {
2411
+ if (V({
2412
2412
  type: "beforeslidechange",
2413
2413
  data: {
2414
2414
  indexh: t === void 0 ? o : t,
@@ -2417,26 +2417,26 @@ function at(e, t) {
2417
2417
  }
2418
2418
  }).defaultPrevented) return;
2419
2419
  c = l;
2420
- let u = m.wrapper.querySelectorAll(xe);
2420
+ let u = m.wrapper.querySelectorAll(Ce);
2421
2421
  if (T.isActive()) {
2422
2422
  let e = T.getSlideByIndices(t, n);
2423
2423
  e && T.scrollToSlide(e);
2424
2424
  return;
2425
2425
  }
2426
2426
  if (u.length === 0) return;
2427
- n === void 0 && !O.isActive() && (n = ot(u[t])), c && c.parentNode && c.parentNode.classList.contains("stack") && W(c.parentNode, s);
2427
+ n === void 0 && !D.isActive() && (n = st(u[t])), c && c.parentNode && c.parentNode.classList.contains("stack") && U(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 = St(xe, t === void 0 ? o : t), s = St(Se, n === void 0 ? s : n);
2431
+ o = St(Ce, t === void 0 ? o : t), s = St(z, 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 && !O.isActive() && (h = "running", b = vt(c, l, p, g), b && m.slides.classList.add("disable-slide-transitions")), wt(), Xe(), O.isActive() && O.update(), i !== void 0 && D.goto(i), c && c !== l && (c.classList.remove("present"), c.setAttribute("aria-hidden", "true"), lt() && setTimeout(() => {
2437
+ _ && c && l && !D.isActive() && (h = "running", b = yt(c, l, p, g), b && m.slides.classList.add("disable-slide-transitions")), wt(), Ze(), D.isActive() && D.update(), i !== void 0 && E.goto(i), c && c !== l && (c.classList.remove("present"), c.setAttribute("aria-hidden", "true"), ut() && setTimeout(() => {
2438
2438
  Mt().forEach((e) => {
2439
- W(e, 0);
2439
+ U(e, 0);
2440
2440
  });
2441
2441
  }, 0));
2442
2442
  stateLoop: for (let e = 0, t = d.length; e < t; e++) {
@@ -2444,38 +2444,38 @@ function at(e, t) {
2444
2444
  f.splice(t, 1);
2445
2445
  continue stateLoop;
2446
2446
  }
2447
- m.viewport.classList.add(d[e]), H({ type: d[e] });
2447
+ m.viewport.classList.add(d[e]), V({ type: d[e] });
2448
2448
  }
2449
2449
  for (; f.length;) m.viewport.classList.remove(f.pop());
2450
- _ && (x.afterSlideChanged(), Ke(a)), (_ || !c) && (x.stopEmbeddedContent(c), x.startEmbeddedContent(l)), requestAnimationFrame(() => {
2451
- ve(ye(l));
2452
- }), ne.update(), te.update(), L.update(), w.update(), w.updateParallax(), S.update(), D.update(), A.writeURL(), Vt(), b && (setTimeout(() => {
2450
+ _ && (x.afterSlideChanged(), qe(a)), (_ || !c) && (x.stopEmbeddedContent(c), x.startEmbeddedContent(l)), requestAnimationFrame(() => {
2451
+ ye(R(l));
2452
+ }), re.update(), ne.update(), L.update(), w.update(), w.updateParallax(), S.update(), E.update(), k.writeURL(), Vt(), b && (setTimeout(() => {
2453
2453
  m.slides.classList.remove("disable-slide-transitions");
2454
2454
  }, 0), r.autoAnimate && ee.run(c, l));
2455
2455
  }
2456
- function vt(e, t, n, r) {
2456
+ function yt(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");
2458
2458
  }
2459
- function yt(e, t, n) {
2459
+ function bt(e, t, n) {
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) && ee.run(c, l), a && (x.afterSlideChanged(), c && (x.stopEmbeddedContent(c), x.stopEmbeddedContent(c.slideBackgroundElement)), x.startEmbeddedContent(l), x.startEmbeddedContent(l.slideBackgroundElement)), requestAnimationFrame(() => {
2464
- ve(ye(l));
2465
- }), Ke();
2463
+ c = l, l = e, l && c && r.autoAnimate && yt(c, l, i, s) && ee.run(c, l), a && (x.afterSlideChanged(), c && (x.stopEmbeddedContent(c), x.stopEmbeddedContent(c.slideBackgroundElement)), x.startEmbeddedContent(l), x.startEmbeddedContent(l.slideBackgroundElement)), requestAnimationFrame(() => {
2464
+ ye(R(l));
2465
+ }), qe();
2466
2466
  }
2467
- function q() {
2468
- Me(), je(), Xe(), g = r.autoSlide, Vt(), w.create(), A.writeURL(), r.sortFragmentsOnSync === !0 && D.sortAll(), o !== void 0 && (o = St(xe, o), s = St(Se, s)), te.update(), ne.update(), wt(), L.update(), L.updateVisibility(), N.update(), w.update(!0), S.update(), x.formatEmbeddedContent(), r.autoPlayMedia === !1 ? x.stopEmbeddedContent(l, { unloadIframes: !1 }) : x.startEmbeddedContent(l), O.isActive() && O.layout(), H({ type: "sync" });
2467
+ function K() {
2468
+ Ne(), Me(), Ze(), g = r.autoSlide, Vt(), w.create(), k.writeURL(), r.sortFragmentsOnSync === !0 && E.sortAll(), o !== void 0 && (o = St(Ce, o), s = St(z, s)), ne.update(), re.update(), wt(), L.update(), L.updateVisibility(), M.update(), w.update(!0), S.update(), x.formatEmbeddedContent(), r.autoPlayMedia === !1 ? x.stopEmbeddedContent(l, { unloadIframes: !1 }) : x.startEmbeddedContent(l), D.isActive() && D.layout(), V({ type: "sync" });
2469
2469
  }
2470
- function bt(e = l) {
2471
- w.sync(e), D.sync(e), x.load(e), w.update(), L.update(), H({
2470
+ function xt(e = l) {
2471
+ w.sync(e), E.sync(e), x.load(e), w.update(), L.update(), V({
2472
2472
  type: "slidesync",
2473
2473
  data: { slide: e }
2474
2474
  });
2475
2475
  }
2476
- function xt() {
2476
+ function q() {
2477
2477
  At().forEach((e) => {
2478
- P(e, "section").forEach((e, t) => {
2478
+ N(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
  });
@@ -2489,11 +2489,11 @@ function at(e, t) {
2489
2489
  });
2490
2490
  }
2491
2491
  function St(e, t) {
2492
- let n = P(m.wrapper, e), i = n.length, a = T.isActive() || E.isActive(), o = !1, s = !1;
2492
+ let n = N(m.wrapper, e), i = n.length, a = T.isActive() || te.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 && !G(i);
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;
@@ -2501,7 +2501,7 @@ function at(e, t) {
2501
2501
  e < t ? (i.classList.add(c ? "future" : "past"), r.fragments && Y(i)) : e > t ? (i.classList.add(c ? "past" : "future"), r.fragments && Ct(i)) : e === t && r.fragments && (o ? Ct(i) : s && Y(i));
2502
2502
  }
2503
2503
  let e = n[t], c = e.classList.contains("present");
2504
- e.classList.add("present"), e.removeAttribute("hidden"), e.removeAttribute("aria-hidden"), c || H({
2504
+ e.classList.add("present"), e.removeAttribute("hidden"), e.removeAttribute("aria-hidden"), c || V({
2505
2505
  target: e,
2506
2506
  type: "visible",
2507
2507
  bubbles: !1
@@ -2512,24 +2512,24 @@ function at(e, t) {
2512
2512
  return t;
2513
2513
  }
2514
2514
  function Y(e) {
2515
- P(e, ".fragment").forEach((e) => {
2515
+ N(e, ".fragment").forEach((e) => {
2516
2516
  e.classList.add("visible"), e.classList.remove("current-fragment");
2517
2517
  });
2518
2518
  }
2519
2519
  function Ct(e) {
2520
- P(e, ".fragment.visible").forEach((e) => {
2520
+ N(e, ".fragment.visible").forEach((e) => {
2521
2521
  e.classList.remove("visible", "current-fragment");
2522
2522
  });
2523
2523
  }
2524
2524
  function wt() {
2525
2525
  let e = At(), t = e.length, n, i;
2526
2526
  if (t && o !== void 0) {
2527
- let a = O.isActive(), c = a ? 10 : r.viewDistance;
2528
- he && (c = a ? 6 : r.mobileViewDistance), E.isActive() && (c = Number.MAX_VALUE);
2527
+ let a = D.isActive(), c = a ? 10 : r.viewDistance;
2528
+ he && (c = a ? 6 : r.mobileViewDistance), te.isActive() && (c = Number.MAX_VALUE);
2529
2529
  for (let l = 0; l < t; l++) {
2530
- let u = e[l], d = P(u, "section"), f = d.length;
2530
+ let u = e[l], d = N(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 : ot(u);
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);
@@ -2538,20 +2538,20 @@ function at(e, t) {
2538
2538
  }
2539
2539
  Pt() ? m.wrapper.classList.add("has-vertical-slides") : m.wrapper.classList.remove("has-vertical-slides"), Nt() ? m.wrapper.classList.add("has-horizontal-slides") : m.wrapper.classList.remove("has-horizontal-slides");
2540
2540
  }
2541
- let a = O.isActive() || T.isActive() || E.isActive();
2542
- P(m.wrapper, B).forEach((e) => {
2541
+ let a = D.isActive() || T.isActive() || te.isActive();
2542
+ N(m.wrapper, Se).forEach((e) => {
2543
2543
  e.toggleAttribute("inert", !a && e !== l && !e.contains(l));
2544
2544
  });
2545
2545
  }
2546
2546
  function Tt({ includeFragments: e = !1 } = {}) {
2547
- let t = m.wrapper.querySelectorAll(xe), n = m.wrapper.querySelectorAll(Se), i = {
2547
+ let t = m.wrapper.querySelectorAll(Ce), n = m.wrapper.querySelectorAll(z), 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 = D.availableRoutes();
2554
+ let e = E.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) {
@@ -2589,8 +2589,8 @@ function at(e, t) {
2589
2589
  if (e) {
2590
2590
  if (T.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 = G(e), i = r ? e.parentNode : e, a = At();
2593
- t = Math.max(a.indexOf(i), 0), n = void 0, r && (n = Math.max(P(e.parentNode, "section").indexOf(e), 0));
2592
+ let r = W(e), i = r ? e.parentNode : e, a = At();
2593
+ t = Math.max(a.indexOf(i), 0), n = void 0, r && (n = Math.max(N(e.parentNode, "section").indexOf(e), 0));
2594
2594
  }
2595
2595
  }
2596
2596
  if (!e && l && l.querySelectorAll(".fragment").length > 0) {
@@ -2604,16 +2604,16 @@ function at(e, t) {
2604
2604
  };
2605
2605
  }
2606
2606
  function kt() {
2607
- return P(m.wrapper, B + ":not(.stack):not([data-visibility=\"uncounted\"])");
2607
+ return N(m.wrapper, Se + ":not(.stack):not([data-visibility=\"uncounted\"])");
2608
2608
  }
2609
2609
  function At() {
2610
- return P(m.wrapper, xe);
2610
+ return N(m.wrapper, Ce);
2611
2611
  }
2612
2612
  function jt() {
2613
- return P(m.wrapper, ".slides>section>section");
2613
+ return N(m.wrapper, ".slides>section>section");
2614
2614
  }
2615
2615
  function Mt() {
2616
- return P(m.wrapper, xe + ".stack");
2616
+ return N(m.wrapper, Ce + ".stack");
2617
2617
  }
2618
2618
  function Nt() {
2619
2619
  return At().length > 1;
@@ -2644,27 +2644,27 @@ function at(e, t) {
2644
2644
  }
2645
2645
  function zt() {
2646
2646
  let e = Ot();
2647
- return U({
2647
+ return H({
2648
2648
  indexh: e.h,
2649
2649
  indexv: e.v,
2650
2650
  indexf: e.f,
2651
- paused: mt(),
2652
- overview: O.isActive()
2653
- }, N.getState());
2651
+ paused: ht(),
2652
+ overview: D.isActive()
2653
+ }, M.getState());
2654
2654
  }
2655
2655
  function Bt(e) {
2656
2656
  if (typeof e == "object") {
2657
- K(ae(e.indexh), ae(e.indexv), ae(e.indexf));
2658
- let t = ae(e.paused), n = ae(e.overview);
2659
- typeof t == "boolean" && t !== mt() && pt(t), typeof n == "boolean" && n !== O.isActive() && O.toggle(n), N.setState(e);
2657
+ G(oe(e.indexh), oe(e.indexv), oe(e.indexf));
2658
+ let t = oe(e.paused), n = oe(e.overview);
2659
+ typeof t == "boolean" && t !== ht() && mt(t), typeof n == "boolean" && n !== D.isActive() && D.toggle(n), M.setState(e);
2660
2660
  }
2661
2661
  }
2662
2662
  function Vt() {
2663
2663
  if (Ht(), 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
- 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) => {
2665
+ t ? g = parseInt(t, 10) : i ? g = parseInt(i, 10) : n ? g = parseInt(n, 10) : (g = r.autoSlide, l.querySelectorAll(".fragment").length === 0 && N(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() && !O.isActive() && (!ut() || D.availableRoutes().next || r.loop === !0) && (v = setTimeout(() => {
2667
+ })), g && !b && !ht() && !D.isActive() && (!dt() || E.availableRoutes().next || r.loop === !0) && (v = setTimeout(() => {
2668
2668
  typeof r.autoSlideMethod == "function" ? r.autoSlideMethod() : Xt(), Vt();
2669
2669
  }, g), y = Date.now()), _ && _.setPlaying(v !== -1);
2670
2670
  }
@@ -2673,45 +2673,45 @@ function at(e, t) {
2673
2673
  clearTimeout(v), v = -1;
2674
2674
  }
2675
2675
  function Ut() {
2676
- g && !b && (b = !0, H({ type: "autoslidepaused" }), clearTimeout(v), _ && _.setPlaying(!1));
2676
+ g && !b && (b = !0, V({ type: "autoslidepaused" }), clearTimeout(v), _ && _.setPlaying(!1));
2677
2677
  }
2678
2678
  function Wt() {
2679
- g && b && (b = !1, H({ type: "autoslideresumed" }), Vt());
2679
+ g && b && (b = !1, V({ type: "autoslideresumed" }), Vt());
2680
2680
  }
2681
2681
  function Gt({ skipFragments: e = !1 } = {}) {
2682
2682
  if (u.hasNavigatedHorizontally = !0, T.isActive()) return T.prev();
2683
- r.rtl ? (O.isActive() || e || D.next() === !1) && Tt().left && K(o + 1, r.navigationMode === "grid" ? s : void 0) : (O.isActive() || e || D.prev() === !1) && Tt().left && K(o - 1, r.navigationMode === "grid" ? s : void 0);
2683
+ r.rtl ? (D.isActive() || e || E.next() === !1) && Tt().left && G(o + 1, r.navigationMode === "grid" ? s : void 0) : (D.isActive() || e || E.prev() === !1) && Tt().left && G(o - 1, r.navigationMode === "grid" ? s : void 0);
2684
2684
  }
2685
2685
  function Kt({ skipFragments: e = !1 } = {}) {
2686
2686
  if (u.hasNavigatedHorizontally = !0, T.isActive()) return T.next();
2687
- r.rtl ? (O.isActive() || e || D.prev() === !1) && Tt().right && K(o - 1, r.navigationMode === "grid" ? s : void 0) : (O.isActive() || e || D.next() === !1) && Tt().right && K(o + 1, r.navigationMode === "grid" ? s : void 0);
2687
+ r.rtl ? (D.isActive() || e || E.prev() === !1) && Tt().right && G(o - 1, r.navigationMode === "grid" ? s : void 0) : (D.isActive() || e || E.next() === !1) && Tt().right && G(o + 1, r.navigationMode === "grid" ? s : void 0);
2688
2688
  }
2689
2689
  function qt({ skipFragments: e = !1 } = {}) {
2690
2690
  if (T.isActive()) return T.prev();
2691
- (O.isActive() || e || D.prev() === !1) && Tt().up && K(o, s - 1);
2691
+ (D.isActive() || e || E.prev() === !1) && Tt().up && G(o, s - 1);
2692
2692
  }
2693
2693
  function Jt({ skipFragments: e = !1 } = {}) {
2694
2694
  if (u.hasNavigatedVertically = !0, T.isActive()) return T.next();
2695
- (O.isActive() || e || D.next() === !1) && Tt().down && K(o, s + 1);
2695
+ (D.isActive() || e || E.next() === !1) && Tt().down && G(o, s + 1);
2696
2696
  }
2697
2697
  function Yt({ skipFragments: e = !1 } = {}) {
2698
2698
  if (T.isActive()) return T.prev();
2699
- if (e || D.prev() === !1) {
2699
+ if (e || E.prev() === !1) {
2700
2700
  if (Tt().up) qt({ skipFragments: e });
2701
2701
  else {
2702
2702
  let t;
2703
- if (t = r.rtl ? P(m.wrapper, xe + ".future").pop() : P(m.wrapper, xe + ".past").pop(), t && t.classList.contains("stack")) {
2703
+ if (t = r.rtl ? N(m.wrapper, Ce + ".future").pop() : N(m.wrapper, Ce + ".past").pop(), t && t.classList.contains("stack")) {
2704
2704
  let e = t.querySelectorAll("section").length - 1 || void 0;
2705
- K(o - 1, e);
2705
+ G(o - 1, e);
2706
2706
  } else r.rtl ? Kt({ skipFragments: e }) : Gt({ skipFragments: e });
2707
2707
  }
2708
2708
  }
2709
2709
  }
2710
2710
  function Xt({ skipFragments: e = !1 } = {}) {
2711
2711
  if (u.hasNavigatedHorizontally = !0, u.hasNavigatedVertically = !0, T.isActive()) return T.next();
2712
- if (e || D.next() === !1) {
2712
+ if (e || E.next() === !1) {
2713
2713
  let t = Tt();
2714
- t.down && t.right && r.loop && ct() && (t.down = !1), t.down ? Jt({ skipFragments: e }) : r.rtl ? Gt({ skipFragments: e }) : Kt({ skipFragments: e });
2714
+ t.down && t.right && r.loop && lt() && (t.down = !1), t.down ? Jt({ skipFragments: e }) : r.rtl ? Gt({ skipFragments: e }) : Kt({ skipFragments: e });
2715
2715
  }
2716
2716
  }
2717
2717
  function Zt(e) {
@@ -2720,9 +2720,9 @@ function at(e, t) {
2720
2720
  function Qt(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 (we.test(t.method) === !1) {
2723
+ if (Te.test(t.method) === !1) {
2724
2724
  let e = n[t.method].apply(n, t.args);
2725
- Ye("callback", {
2725
+ Xe("callback", {
2726
2726
  method: t.method,
2727
2727
  result: e
2728
2728
  });
@@ -2730,7 +2730,7 @@ function at(e, t) {
2730
2730
  }
2731
2731
  }
2732
2732
  function $t(e) {
2733
- h === "running" && /section/gi.test(e.target.nodeName) && (h = "idle", H({
2733
+ h === "running" && /section/gi.test(e.target.nodeName) && (h = "idle", V({
2734
2734
  type: "slidetransitionend",
2735
2735
  data: {
2736
2736
  indexh: o,
@@ -2743,12 +2743,12 @@ function at(e, t) {
2743
2743
  function en(e) {
2744
2744
  let t = I(e.target, "a[href^=\"#\"]");
2745
2745
  if (t) {
2746
- let r = t.getAttribute("href"), i = A.getIndicesFromHash(r);
2746
+ let r = t.getAttribute("href"), i = k.getIndicesFromHash(r);
2747
2747
  i && (n.slide(i.h, i.v, i.f), e.preventDefault());
2748
2748
  }
2749
2749
  }
2750
2750
  function tn(e) {
2751
- Xe();
2751
+ Ze();
2752
2752
  }
2753
2753
  function nn(e) {
2754
2754
  document.hidden === !1 && document.activeElement !== document.body && (typeof document.activeElement.blur == "function" && document.activeElement.blur(), document.body.focus());
@@ -2759,17 +2759,17 @@ function at(e, t) {
2759
2759
  }, 1));
2760
2760
  }
2761
2761
  function an(e) {
2762
- ut() && r.loop === !1 ? (K(0, 0), Wt()) : b ? Wt() : Ut();
2762
+ dt() && r.loop === !1 ? (G(0, 0), Wt()) : b ? Wt() : Ut();
2763
2763
  }
2764
2764
  let on = {
2765
- VERSION: it,
2765
+ VERSION: at,
2766
2766
  initialize: de,
2767
- configure: ke,
2768
- destroy: Ne,
2769
- sync: q,
2770
- syncSlide: bt,
2771
- syncFragments: D.sync.bind(D),
2772
- slide: K,
2767
+ configure: B,
2768
+ destroy: Pe,
2769
+ sync: K,
2770
+ syncSlide: xt,
2771
+ syncFragments: E.sync.bind(E),
2772
+ slide: G,
2773
2773
  left: Gt,
2774
2774
  right: Kt,
2775
2775
  up: qt,
@@ -2782,49 +2782,49 @@ function at(e, t) {
2782
2782
  navigateDown: Jt,
2783
2783
  navigatePrev: Yt,
2784
2784
  navigateNext: Xt,
2785
- navigateFragment: D.goto.bind(D),
2786
- prevFragment: D.prev.bind(D),
2787
- nextFragment: D.next.bind(D),
2788
- on: Pe,
2789
- off: Ie,
2790
- addEventListener: Pe,
2791
- removeEventListener: Ie,
2792
- layout: Xe,
2785
+ navigateFragment: E.goto.bind(E),
2786
+ prevFragment: E.prev.bind(E),
2787
+ nextFragment: E.next.bind(E),
2788
+ on: Fe,
2789
+ off: Le,
2790
+ addEventListener: Fe,
2791
+ removeEventListener: Le,
2792
+ layout: Ze,
2793
2793
  shuffle: J,
2794
2794
  availableRoutes: Tt,
2795
- availableFragments: D.availableRoutes.bind(D),
2796
- toggleHelp: N.toggleHelp.bind(N),
2797
- toggleOverview: O.toggle.bind(O),
2795
+ availableFragments: E.availableRoutes.bind(E),
2796
+ toggleHelp: M.toggleHelp.bind(M),
2797
+ toggleOverview: D.toggle.bind(D),
2798
2798
  toggleScrollView: T.toggle.bind(T),
2799
- togglePause: pt,
2800
- toggleAutoSlide: gt,
2801
- toggleJumpToSlide: ht,
2802
- isFirstSlide: lt,
2803
- isLastSlide: ut,
2804
- isLastVerticalSlide: ct,
2805
- isVerticalSlide: G,
2806
- isVerticalStack: st,
2807
- isPaused: mt,
2808
- isAutoSliding: _t,
2799
+ togglePause: mt,
2800
+ toggleAutoSlide: _t,
2801
+ toggleJumpToSlide: gt,
2802
+ isFirstSlide: ut,
2803
+ isLastSlide: dt,
2804
+ isLastVerticalSlide: lt,
2805
+ isVerticalSlide: W,
2806
+ isVerticalStack: ct,
2807
+ isPaused: ht,
2808
+ isAutoSliding: vt,
2809
2809
  isSpeakerNotes: L.isSpeakerNotesWindow.bind(L),
2810
- isOverview: O.isActive.bind(O),
2810
+ isOverview: D.isActive.bind(D),
2811
2811
  isFocused: F.isFocused.bind(F),
2812
- isOverlayOpen: N.isOpen.bind(N),
2812
+ isOverlayOpen: M.isOpen.bind(M),
2813
2813
  isScrollView: T.isActive.bind(T),
2814
- isPrintView: E.isActive.bind(E),
2814
+ isPrintView: te.isActive.bind(te),
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: N.previewIframe.bind(N),
2821
- previewImage: N.previewImage.bind(N),
2822
- previewVideo: N.previewVideo.bind(N),
2823
- showPreview: N.previewIframe.bind(N),
2824
- hidePreview: N.close.bind(N),
2825
- addEventListeners: je,
2826
- removeEventListeners: Me,
2827
- dispatchEvent: H,
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: Me,
2826
+ removeEventListeners: Ne,
2827
+ dispatchEvent: V,
2828
2828
  getState: zt,
2829
2829
  setState: Bt,
2830
2830
  getProgress: Dt,
@@ -2844,55 +2844,55 @@ function at(e, t) {
2844
2844
  hasVerticalSlides: Pt,
2845
2845
  hasNavigatedHorizontally: () => u.hasNavigatedHorizontally,
2846
2846
  hasNavigatedVertically: () => u.hasNavigatedVertically,
2847
- shouldAutoAnimateBetween: vt,
2848
- addKeyBinding: k.addKeyBinding.bind(k),
2849
- removeKeyBinding: k.removeKeyBinding.bind(k),
2850
- triggerKey: k.triggerKey.bind(k),
2851
- registerKeyboardShortcut: k.registerKeyboardShortcut.bind(k),
2852
- getComputedSlideSize: at,
2853
- setCurrentScrollPage: yt,
2854
- removeHiddenSlides: R,
2847
+ shouldAutoAnimateBetween: yt,
2848
+ addKeyBinding: O.addKeyBinding.bind(O),
2849
+ removeKeyBinding: O.removeKeyBinding.bind(O),
2850
+ triggerKey: O.triggerKey.bind(O),
2851
+ registerKeyboardShortcut: O.registerKeyboardShortcut.bind(O),
2852
+ getComputedSlideSize: ot,
2853
+ setCurrentScrollPage: bt,
2854
+ removeHiddenSlides: ge,
2855
2855
  getScale: () => f,
2856
2856
  getConfig: () => r,
2857
2857
  getQueryHash: le,
2858
- getSlidePath: A.getHash.bind(A),
2858
+ getSlidePath: k.getHash.bind(k),
2859
2859
  getRevealElement: () => e,
2860
2860
  getSlidesElement: () => m.slides,
2861
2861
  getViewportElement: () => m.viewport,
2862
2862
  getBackgroundsElement: () => w.element,
2863
- registerPlugin: M.registerPlugin.bind(M),
2864
- hasPlugin: M.hasPlugin.bind(M),
2865
- getPlugin: M.getPlugin.bind(M),
2866
- getPlugins: M.getRegisteredPlugins.bind(M)
2863
+ registerPlugin: j.registerPlugin.bind(j),
2864
+ hasPlugin: j.hasPlugin.bind(j),
2865
+ getPlugin: j.getPlugin.bind(j),
2866
+ getPlugins: j.getRegisteredPlugins.bind(j)
2867
2867
  };
2868
- return re(n, U(U({}, on), {}, {
2869
- announceStatus: ve,
2870
- getStatusText: ye,
2868
+ return ie(n, H(H({}, on), {}, {
2869
+ announceStatus: ye,
2870
+ getStatusText: R,
2871
2871
  focus: F,
2872
2872
  scroll: T,
2873
- progress: ne,
2874
- controls: te,
2875
- location: A,
2876
- overview: O,
2877
- keyboard: k,
2878
- fragments: D,
2873
+ progress: re,
2874
+ controls: ne,
2875
+ location: k,
2876
+ overview: D,
2877
+ keyboard: O,
2878
+ fragments: E,
2879
2879
  backgrounds: w,
2880
2880
  slideContent: x,
2881
2881
  slideNumber: S,
2882
2882
  onUserInput: Zt,
2883
- closeOverlay: N.close.bind(N),
2883
+ closeOverlay: M.close.bind(M),
2884
2884
  updateSlidesVisibility: wt,
2885
- layoutSlideContents: Qe,
2886
- transformSlides: Le,
2885
+ layoutSlideContents: $e,
2886
+ transformSlides: Re,
2887
2887
  cueAutoSlide: Vt,
2888
2888
  cancelAutoSlide: Ht
2889
2889
  })), on;
2890
2890
  }
2891
- var W = at, ot = [];
2892
- W.initialize = (e) => {
2891
+ var U = ot, st = [];
2892
+ U.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 at(t, e)), ot.map((e) => e(W)), W.initialize();
2895
+ return Object.assign(U, new ot(t, e)), st.map((e) => e(U)), U.initialize();
2896
2896
  }, [
2897
2897
  "configure",
2898
2898
  "on",
@@ -2901,14 +2901,14 @@ W.initialize = (e) => {
2901
2901
  "removeEventListener",
2902
2902
  "registerPlugin"
2903
2903
  ].forEach((e) => {
2904
- W[e] = (...t) => {
2905
- ot.push((n) => n[e].call(null, ...t));
2904
+ U[e] = (...t) => {
2905
+ st.push((n) => n[e].call(null, ...t));
2906
2906
  };
2907
- }), W.isReady = () => !1, W.VERSION = it;
2907
+ }), U.isReady = () => !1, U.VERSION = at;
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 = T(), st = (0, M.createContext)(null), ct = [];
2911
- function lt(e, t) {
2910
+ var W = T(), ct = (0, j.createContext)(null), lt = [];
2911
+ function ut(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 ut(e, t) {
2919
+ function dt(e, t) {
2920
2920
  e && (typeof e == "function" ? e(t) : e.current = t);
2921
2921
  }
2922
- function dt(e) {
2922
+ function ft(e) {
2923
2923
  return e.tagName === "SECTION";
2924
2924
  }
2925
- function ft(e, t, n) {
2926
- return Array.from(e.children).filter(dt).map((e) => {
2925
+ function pt(e, t, n) {
2926
+ return Array.from(e.children).filter(ft).map((e) => {
2927
2927
  let r = t.get(e);
2928
2928
  r === void 0 && (r = n.current++, t.set(e, r));
2929
- let i = ft(e, t, n);
2929
+ let i = pt(e, t, n);
2930
2930
  return i.length > 0 ? [r, i] : r;
2931
2931
  });
2932
2932
  }
2933
- function pt(e, t, n) {
2934
- return e ? JSON.stringify(ft(e, t, n)) : "[]";
2933
+ function mt(e, t, n) {
2934
+ return e ? JSON.stringify(pt(e, t, n)) : "[]";
2935
2935
  }
2936
- function mt({ config: e, plugins: t = ct, 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, M.useRef)(null), v = (0, M.useRef)(null), y = (0, M.useRef)(null), [b, x] = (0, M.useState)(null), S = (0, M.useRef)(t), C = (0, M.useRef)(!1), ee = (0, M.useRef)(e), w = (0, M.useRef)(null), T = (0, M.useRef)(/* @__PURE__ */ new WeakMap()), E = (0, M.useRef)(1), D = (0, M.useRef)(!1), O = (0, M.useRef)(0);
2938
- return (0, M.useEffect)(() => {
2939
- if (D.current = !0, O.current += 1, y.current) y.current.isReady() && x(y.current);
2936
+ function ht({ config: e, plugins: t = lt, 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, j.useRef)(null), v = (0, j.useRef)(null), y = (0, j.useRef)(null), [b, x] = (0, j.useState)(null), S = (0, j.useRef)(t), C = (0, j.useRef)(!1), ee = (0, j.useRef)(e), w = (0, j.useRef)(null), T = (0, j.useRef)(/* @__PURE__ */ new WeakMap()), te = (0, j.useRef)(1), E = (0, j.useRef)(!1), D = (0, j.useRef)(0);
2938
+ return (0, j.useEffect)(() => {
2939
+ if (E.current = !0, D.current += 1, y.current) y.current.isReady() && x(y.current);
2940
2940
  else {
2941
- let t = new W(_.current, {
2941
+ let t = new U(_.current, {
2942
2942
  ...e,
2943
2943
  plugins: S.current
2944
2944
  });
2945
2945
  ee.current = e, y.current = t, t.initialize().then(() => {
2946
- D.current && y.current === t && (x(t), n?.(t));
2946
+ E.current && y.current === t && (x(t), n?.(t));
2947
2947
  });
2948
2948
  }
2949
2949
  return () => {
2950
- D.current = !1;
2950
+ E.current = !1;
2951
2951
  let e = y.current;
2952
2952
  if (!e) return;
2953
- let t = ++O.current;
2953
+ let t = ++D.current;
2954
2954
  Promise.resolve().then(() => {
2955
- if (!(D.current || O.current !== t) && y.current === e) {
2955
+ if (!(E.current || D.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, M.useEffect)(() => (ut(p, b), () => ut(p, null)), [p, b]), (0, M.useEffect)(() => {
2963
+ }, []), (0, j.useEffect)(() => (dt(p, b), () => dt(p, null)), [p, b]), (0, j.useEffect)(() => {
2964
2964
  if (!b) return;
2965
2965
  let e = [
2966
2966
  ["sync", r],
@@ -2990,24 +2990,24 @@ function mt({ config: e, plugins: t = ct, onReady: n, onSync: r, onSlideSync: i,
2990
2990
  u,
2991
2991
  d,
2992
2992
  f
2993
- ]), (0, M.useLayoutEffect)(() => {
2994
- b && y.current?.isReady() && lt(ee.current, e) && (C.current = !0, y.current.configure(e ?? {}), ee.current = e);
2995
- }, [b, e]), (0, M.useLayoutEffect)(() => {
2993
+ ]), (0, j.useLayoutEffect)(() => {
2994
+ b && y.current?.isReady() && ut(ee.current, e) && (C.current = !0, y.current.configure(e ?? {}), ee.current = e);
2995
+ }, [b, e]), (0, j.useLayoutEffect)(() => {
2996
2996
  let e = C.current;
2997
2997
  C.current = !1;
2998
- let t = pt(v.current, T.current, E);
2998
+ let t = mt(v.current, T.current, te);
2999
2999
  if (e) {
3000
3000
  w.current = t;
3001
3001
  return;
3002
3002
  }
3003
3003
  y.current?.isReady() && w.current !== t && (y.current.sync(), w.current = t);
3004
- }), /* @__PURE__ */ (0, G.jsx)(st.Provider, {
3004
+ }), /* @__PURE__ */ (0, W.jsx)(ct.Provider, {
3005
3005
  value: b,
3006
- children: /* @__PURE__ */ (0, G.jsx)("div", {
3006
+ children: /* @__PURE__ */ (0, W.jsx)("div", {
3007
3007
  className: m ? `reveal ${m}` : "reveal",
3008
3008
  style: h,
3009
3009
  ref: _,
3010
- children: /* @__PURE__ */ (0, G.jsx)("div", {
3010
+ children: /* @__PURE__ */ (0, W.jsx)("div", {
3011
3011
  className: "slides",
3012
3012
  ref: v,
3013
3013
  children: g
@@ -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 ht = {
3018
+ var gt = {
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 gt(e) {
3047
+ function _t(e) {
3048
3048
  return JSON.stringify(Object.entries(e).filter(([e]) => e.startsWith("data-")).sort(([e], [t]) => e.localeCompare(t)));
3049
3049
  }
3050
- function _t(e, t) {
3050
+ function vt(e, t) {
3051
3051
  let n = { ...e }, r = n;
3052
- for (let [e, n] of Object.entries(ht)) {
3052
+ for (let [e, n] of Object.entries(gt)) {
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 K({ 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: ee, notes: w, backgroundInteractive: T, preload: E, ...D }) {
3066
- let O = (0, M.useContext)(st), k = (0, M.useRef)(null), A = (0, M.useRef)(null), te = (0, M.useRef)(null), ne = _t(D, {
3065
+ function G({ 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: ee, notes: w, backgroundInteractive: T, preload: te, ...E }) {
3066
+ let D = (0, j.useContext)(ct), O = (0, j.useRef)(null), k = (0, j.useRef)(null), ne = (0, j.useRef)(null), re = vt(E, {
3067
3067
  background: t,
3068
3068
  backgroundImage: n,
3069
3069
  backgroundVideo: r,
@@ -3090,32 +3090,32 @@ function K({ children: e, background: t, backgroundImage: n, backgroundVideo: r,
3090
3090
  autoSlide: ee,
3091
3091
  notes: w,
3092
3092
  backgroundInteractive: T,
3093
- preload: E
3094
- }), j = gt(ne);
3095
- return (0, M.useLayoutEffect)(() => {
3096
- let e = k.current;
3097
- if (!O || !e || typeof O.syncSlide != "function") return;
3098
- if (A.current !== O) {
3099
- A.current = O, te.current = j;
3093
+ preload: te
3094
+ }), A = _t(re);
3095
+ return (0, j.useLayoutEffect)(() => {
3096
+ let e = O.current;
3097
+ if (!D || !e || typeof D.syncSlide != "function") return;
3098
+ if (k.current !== D) {
3099
+ k.current = D, ne.current = A;
3100
3100
  return;
3101
3101
  }
3102
- if (j === "[]") return;
3103
- let t = A.current === O, n = te.current === j;
3104
- t && n || (O.syncSlide(e), A.current = O, te.current = j);
3105
- }, [O, j]), /* @__PURE__ */ (0, G.jsx)("section", {
3106
- ref: k,
3107
- ...ne,
3102
+ if (A === "[]") return;
3103
+ let t = k.current === D, n = ne.current === A;
3104
+ t && n || (D.syncSlide(e), k.current = D, ne.current = A);
3105
+ }, [D, A]), /* @__PURE__ */ (0, W.jsx)("section", {
3106
+ ref: O,
3107
+ ...re,
3108
3108
  children: e
3109
3109
  });
3110
3110
  }
3111
- function vt({ className: e, style: t, children: n }) {
3112
- return /* @__PURE__ */ (0, G.jsx)("section", {
3111
+ function yt({ className: e, style: t, children: n }) {
3112
+ return /* @__PURE__ */ (0, W.jsx)("section", {
3113
3113
  className: e,
3114
3114
  style: t,
3115
3115
  children: n
3116
3116
  });
3117
3117
  }
3118
- function yt() {
3118
+ function bt() {
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 q = yt();
3133
- function bt(e) {
3134
- q = e;
3132
+ var K = bt();
3133
+ function xt(e) {
3134
+ K = e;
3135
3135
  }
3136
- var xt = { exec: () => null };
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) => {
@@ -3219,7 +3219,7 @@ var St = (() => {
3219
3219
  list: It,
3220
3220
  newline: Ct,
3221
3221
  paragraph: Bt,
3222
- table: xt,
3222
+ table: q,
3223
3223
  text: Nt
3224
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
3225
  ...Vt,
@@ -3231,19 +3231,19 @@ var St = (() => {
3231
3231
  html: J("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment", Rt).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: xt,
3234
+ fences: q,
3235
3235
  lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,
3236
3236
  paragraph: J(Mt).replace("hr", Et).replace("heading", " *#{1,6} *[^\n]").replace("lheading", At).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex()
3237
3237
  }, Gt = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, Kt = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, qt = /^( {2,}|\\)\n(?!\s*$)/, Jt = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, Yt = /[\p{P}\p{S}]/u, Xt = /[\s\p{P}\p{S}]/u, Zt = /[^\s\p{P}\p{S}]/u, Qt = J(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, Xt).getRegex(), $t = /(?!~)[\p{P}\p{S}]/u, en = /(?!~)[\s\p{P}\p{S}]/u, tn = /(?:[^\s\p{P}\p{S}]|~)/u, nn = J(/link|precode-code|html/, "g").replace("link", /\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-", St ? "(?<!`)()" : "(^^|[^`])").replace("code", /(?<b>`+)[^`]+\k<b>(?!`)/).replace("html", /<(?! )[^<>]*?>/).getRegex(), rn = /^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/, an = J(rn, "u").replace(/punct/g, Yt).getRegex(), on = J(rn, "u").replace(/punct/g, $t).getRegex(), sn = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", cn = J(sn, "gu").replace(/notPunctSpace/g, Zt).replace(/punctSpace/g, Xt).replace(/punct/g, Yt).getRegex(), ln = J(sn, "gu").replace(/notPunctSpace/g, tn).replace(/punctSpace/g, en).replace(/punct/g, $t).getRegex(), un = J("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, Zt).replace(/punctSpace/g, Xt).replace(/punct/g, Yt).getRegex(), dn = J(/^~~?(?:((?!~)punct)|[^\s~])/, "u").replace(/punct/g, Yt).getRegex(), fn = J("^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)", "gu").replace(/notPunctSpace/g, Zt).replace(/punctSpace/g, Xt).replace(/punct/g, Yt).getRegex(), pn = J(/\\(punct)/, "gu").replace(/punct/g, Yt).getRegex(), mn = 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(), hn = J(Rt).replace("(?:-->|$)", "-->").getRegex(), gn = 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", hn).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), _n = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/, vn = J(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label", _n).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), yn = J(/^!?\[(label)\]\[(ref)\]/).replace("label", _n).replace("ref", Pt).getRegex(), bn = J(/^!?\[(ref)\](?:\[\])?/).replace("ref", Pt).getRegex(), xn = J("reflink|nolink(?!\\()", "g").replace("reflink", yn).replace("nolink", bn).getRegex(), Sn = /[hH][tT][tT][pP][sS]?|[fF][tT][pP]/, Cn = {
3238
- _backpedal: xt,
3238
+ _backpedal: q,
3239
3239
  anyPunctuation: pn,
3240
3240
  autolink: mn,
3241
3241
  blockSkip: nn,
3242
3242
  br: qt,
3243
3243
  code: Kt,
3244
- del: xt,
3245
- delLDelim: xt,
3246
- delRDelim: xt,
3244
+ del: q,
3245
+ delLDelim: q,
3246
+ delRDelim: q,
3247
3247
  emStrongLDelim: an,
3248
3248
  emStrongRDelimAst: cn,
3249
3249
  emStrongRDelimUnd: un,
@@ -3255,7 +3255,7 @@ var St = (() => {
3255
3255
  reflinkSearch: xn,
3256
3256
  tag: gn,
3257
3257
  text: Jt,
3258
- url: xt
3258
+ url: q
3259
3259
  }, wn = {
3260
3260
  ...Cn,
3261
3261
  link: J(/^!?\[(label)\]\((.*?)\)/).replace("label", _n).getRegex(),
@@ -3374,7 +3374,7 @@ var zn = class {
3374
3374
  rules;
3375
3375
  lexer;
3376
3376
  constructor(e) {
3377
- this.options = e || q;
3377
+ this.options = e || K;
3378
3378
  }
3379
3379
  space(e) {
3380
3380
  let t = this.rules.block.newline.exec(e);
@@ -3830,7 +3830,7 @@ ${c}` : c;
3830
3830
  inlineQueue;
3831
3831
  tokenizer;
3832
3832
  constructor(e) {
3833
- this.tokens = [], this.tokens.links = Object.create(null), this.options = e || q, this.options.tokenizer = this.options.tokenizer || new zn(), this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = {
3833
+ this.tokens = [], this.tokens.links = Object.create(null), this.options = e || K, this.options.tokenizer = this.options.tokenizer || new zn(), 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
@@ -4040,7 +4040,7 @@ ${c}` : c;
4040
4040
  options;
4041
4041
  parser;
4042
4042
  constructor(e) {
4043
- this.options = e || q;
4043
+ this.options = e || K;
4044
4044
  }
4045
4045
  space(e) {
4046
4046
  return "";
@@ -4179,7 +4179,7 @@ ${e}</tr>
4179
4179
  renderer;
4180
4180
  textRenderer;
4181
4181
  constructor(e) {
4182
- this.options = e || q, this.options.renderer = this.options.renderer || new Vn(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new Hn();
4182
+ this.options = e || K, this.options.renderer = this.options.renderer || new Vn(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new Hn();
4183
4183
  }
4184
4184
  static parse(t, n) {
4185
4185
  return new e(n).parse(t);
@@ -4329,7 +4329,7 @@ ${e}</tr>
4329
4329
  options;
4330
4330
  block;
4331
4331
  constructor(e) {
4332
- this.options = e || q;
4332
+ this.options = e || K;
4333
4333
  }
4334
4334
  static passThroughHooks = /* @__PURE__ */ new Set([
4335
4335
  "preprocess",
@@ -4361,7 +4361,7 @@ ${e}</tr>
4361
4361
  return this.block ? Un.parse : Un.parseInline;
4362
4362
  }
4363
4363
  }, Gn = new class {
4364
- defaults = yt();
4364
+ defaults = bt();
4365
4365
  options = this.setOptions;
4366
4366
  parse = this.parseMarkdown(!0);
4367
4367
  parseInline = this.parseMarkdown(!1);
@@ -4540,9 +4540,9 @@ function X(e, t) {
4540
4540
  return Gn.parse(e, t);
4541
4541
  }
4542
4542
  X.options = X.setOptions = function(e) {
4543
- return Gn.setOptions(e), X.defaults = Gn.defaults, bt(X.defaults), X;
4544
- }, X.getDefaults = yt, X.defaults = q, X.use = function(...e) {
4545
- return Gn.use(...e), X.defaults = Gn.defaults, bt(X.defaults), X;
4543
+ return Gn.setOptions(e), X.defaults = Gn.defaults, xt(X.defaults), X;
4544
+ }, X.getDefaults = bt, X.defaults = K, X.use = function(...e) {
4545
+ return Gn.use(...e), X.defaults = Gn.defaults, xt(X.defaults), X;
4546
4546
  }, X.walkTokens = function(e, t) {
4547
4547
  return Gn.walkTokens(e, t);
4548
4548
  }, X.parseInline = Gn.parseInline, X.Parser = Un, X.parser = Un.parse, X.Renderer = Vn, X.TextRenderer = Hn, X.Lexer = Bn, X.lexer = Bn.lex, X.Tokenizer = zn, X.Hooks = Wn, X.parse = X, X.options, X.setOptions, X.use, X.walkTokens, X.parseInline, Un.parse, Bn.lex;
@@ -4560,18 +4560,18 @@ function Jn({ animation: e, index: t, as: n, asChild: r, className: i, style: a,
4560
4560
  if (r) {
4561
4561
  let e;
4562
4562
  try {
4563
- e = M.Children.only(o);
4563
+ e = j.Children.only(o);
4564
4564
  } catch {
4565
4565
  throw Error("Fragment with asChild expects exactly one React element child.");
4566
4566
  }
4567
- if (!(0, M.isValidElement)(e) || e.type === M.Fragment) throw Error("Fragment with asChild expects exactly one non-Fragment React element child.");
4567
+ if (!(0, j.isValidElement)(e) || e.type === j.Fragment) throw Error("Fragment with asChild expects exactly one non-Fragment React element child.");
4568
4568
  let n = {
4569
4569
  className: Kn(e.props.className, s),
4570
4570
  style: qn(e.props.style, a)
4571
4571
  };
4572
- return t !== void 0 && (n["data-fragment-index"] = t), (0, M.cloneElement)(e, n);
4572
+ return t !== void 0 && (n["data-fragment-index"] = t), (0, j.cloneElement)(e, n);
4573
4573
  }
4574
- return /* @__PURE__ */ (0, G.jsx)(n ?? "span", {
4574
+ return /* @__PURE__ */ (0, W.jsx)(n ?? "span", {
4575
4575
  className: s,
4576
4576
  style: a,
4577
4577
  "data-fragment-index": t,
@@ -4587,10 +4587,12 @@ function Zn(e) {
4587
4587
  }
4588
4588
  function Qn(e) {
4589
4589
  let t = e.querySelector(".fragment:not(.visible)");
4590
- return t ? t.getBoundingClientRect().top - e.getBoundingClientRect().top + e.scrollTop : e.scrollHeight;
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
4594
  function $n(e, t) {
4593
- let n = (0, N.c)(4), [r, i] = (0, M.useState)(!1), a, o;
4595
+ let n = (0, M.c)(4), [r, i] = (0, j.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;
@@ -4614,43 +4616,43 @@ 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, M.useEffect)(a, o), r;
4619
+ }, o = [e, t], n[0] = t, n[1] = e, n[2] = a, n[3] = o) : (a = n[2], o = n[3]), (0, j.useEffect)(a, o), r;
4618
4620
  }
4619
4621
  var er = (e) => {
4620
- let t = (0, N.c)(6), { className: n } = e, i;
4622
+ let t = (0, M.c)(6), { className: n } = e, i;
4621
4623
  t[0] === n ? i = t[1] : (i = r("pointer-events-none absolute inset-x-0 bottom-0 z-10 flex flex-col items-center", "animate-in fade-in-0 duration-200", n), t[0] = n, t[1] = i);
4622
4624
  let a;
4623
- 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];
4625
+ t[2] === Symbol.for("react.memo_cache_sentinel") ? (a = /* @__PURE__ */ (0, W.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
- t[3] === Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */ (0, G.jsxs)("div", {
4627
+ t[3] === Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */ (0, W.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)(C, { className: "h-3.5 w-3.5" }), /* @__PURE__ */ (0, G.jsx)("span", { children: "Scroll for more" })]
4629
+ children: [/* @__PURE__ */ (0, W.jsx)(C, { className: "h-3.5 w-3.5" }), /* @__PURE__ */ (0, W.jsx)("span", { children: "Scroll for more" })]
4628
4630
  }), t[3] = o) : o = t[3];
4629
4631
  let s;
4630
- return t[4] === i ? s = t[5] : (s = /* @__PURE__ */ (0, G.jsxs)("div", {
4632
+ return t[4] === i ? s = t[5] : (s = /* @__PURE__ */ (0, W.jsxs)("div", {
4631
4633
  className: i,
4632
4634
  "data-testid": "slide-scroll-hint",
4633
4635
  "aria-hidden": !0,
4634
4636
  children: [a, o]
4635
4637
  }), t[4] = i, t[5] = s), s;
4636
4638
  }, tr = (e) => {
4637
- let t = (0, N.c)(10), { children: n, className: i } = e, a = (0, M.useRef)(null), o = (0, M.useRef)(null), s = $n(a, o), c;
4639
+ let t = (0, M.c)(10), { children: n, className: i } = e, a = (0, j.useRef)(null), o = (0, j.useRef)(null), s = $n(a, o), c;
4638
4640
  t[0] === i ? c = t[1] : (c = r("relative h-full w-full", i), t[0] = i, t[1] = c);
4639
4641
  let l;
4640
- t[2] === n ? l = t[3] : (l = /* @__PURE__ */ (0, G.jsx)("div", {
4642
+ t[2] === n ? l = t[3] : (l = /* @__PURE__ */ (0, W.jsx)("div", {
4641
4643
  ref: a,
4642
4644
  className: "h-full w-full overflow-auto",
4643
4645
  "data-testid": "slide-scroll-container",
4644
- children: /* @__PURE__ */ (0, G.jsx)("div", {
4646
+ children: /* @__PURE__ */ (0, W.jsx)("div", {
4645
4647
  ref: o,
4646
4648
  className: "flex w-full min-h-full",
4647
4649
  children: n
4648
4650
  })
4649
4651
  }), t[2] = n, t[3] = l);
4650
4652
  let u;
4651
- t[4] === s ? u = t[5] : (u = s && /* @__PURE__ */ (0, G.jsx)(er, {}), t[4] = s, t[5] = u);
4653
+ t[4] === s ? u = t[5] : (u = s && /* @__PURE__ */ (0, W.jsx)(er, {}), t[4] = s, t[5] = u);
4652
4654
  let d;
4653
- return t[6] !== c || t[7] !== l || t[8] !== u ? (d = /* @__PURE__ */ (0, G.jsxs)("div", {
4655
+ return t[6] !== c || t[7] !== l || t[8] !== u ? (d = /* @__PURE__ */ (0, W.jsxs)("div", {
4654
4656
  className: c,
4655
4657
  children: [l, u]
4656
4658
  }), t[6] = c, t[7] = l, t[8] = u, t[9] = d) : d = t[9], d;
@@ -4766,7 +4768,7 @@ function sr(e, t) {
4766
4768
  //#endregion
4767
4769
  //#region src/core/islands/stubs/slide-cell-view.tsx
4768
4770
  var cr = (e) => (n.warn("SlideCellView islands stub rendered; this should never happen in a read-only embed."), null), lr = (e) => (n.warn("SlideCellReadOnlyView islands stub rendered; this should never happen in a read-only embed."), null), ur = 300, dr = (e) => {
4769
- let t = (0, N.c)(25), { layout: n, setLayout: a, cellId: o, className: s } = e, c = o ? n.cells.get(o)?.speakerNotes ?? "" : "", [l, u] = (0, M.useState)(c), d = (0, M.useRef)(!1), f;
4771
+ let t = (0, M.c)(25), { layout: n, setLayout: a, cellId: o, className: s } = e, c = o ? n.cells.get(o)?.speakerNotes ?? "" : "", [l, u] = (0, j.useState)(c), d = (0, j.useRef)(!1), f;
4770
4772
  t[0] !== n || t[1] !== a ? (f = (e, t) => {
4771
4773
  d.current = !1;
4772
4774
  let r = n.cells.get(e);
@@ -4780,7 +4782,7 @@ var cr = (e) => (n.warn("SlideCellView islands stub rendered; this should never
4780
4782
  cells: i
4781
4783
  });
4782
4784
  }, t[0] = n, t[1] = a, t[2] = f) : f = t[2];
4783
- let p = D(f), m = ee(p, ur), h = (0, M.useRef)(o), g, _;
4785
+ let p = D(f), m = ee(p, ur), h = (0, j.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,11 +4794,11 @@ 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, M.useEffect)(g, _);
4797
+ ], t[3] = o, t[4] = l, t[5] = c, t[6] = m, t[7] = g, t[8] = _) : (g = t[7], _ = t[8]), (0, j.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, M.useEffect)(v, y);
4801
+ }, y = [m], t[9] = m, t[10] = v, t[11] = y), (0, j.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));
@@ -4804,27 +4806,27 @@ var cr = (e) => (n.warn("SlideCellView islands stub rendered; this should never
4804
4806
  let x = b, S;
4805
4807
  t[15] === s ? S = t[16] : (S = r("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
- t[17] === Symbol.for("react.memo_cache_sentinel") ? (C = /* @__PURE__ */ (0, G.jsxs)("header", {
4809
+ t[17] === Symbol.for("react.memo_cache_sentinel") ? (C = /* @__PURE__ */ (0, W.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)(j, { className: "h-3.5 w-3.5" }), /* @__PURE__ */ (0, G.jsx)("span", { children: "Speaker notes" })]
4811
+ children: [/* @__PURE__ */ (0, W.jsx)(A, { className: "h-3.5 w-3.5" }), /* @__PURE__ */ (0, W.jsx)("span", { children: "Speaker notes" })]
4810
4812
  }), t[17] = C) : C = t[17];
4811
4813
  let w;
4812
- t[18] !== o || t[19] !== l || t[20] !== x ? (w = /* @__PURE__ */ (0, G.jsx)("div", {
4814
+ t[18] !== o || t[19] !== l || t[20] !== x ? (w = /* @__PURE__ */ (0, W.jsx)("div", {
4813
4815
  className: "flex-1 min-h-0 p-2",
4814
- children: o ? /* @__PURE__ */ (0, G.jsx)("textarea", {
4816
+ children: o ? /* @__PURE__ */ (0, W.jsx)("textarea", {
4815
4817
  value: l,
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
4821
  className: r("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
- }) : /* @__PURE__ */ (0, G.jsx)("div", {
4823
+ }) : /* @__PURE__ */ (0, W.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
4828
  let T;
4827
- return t[22] !== S || t[23] !== w ? (T = /* @__PURE__ */ (0, G.jsxs)("section", {
4829
+ return t[22] !== S || t[23] !== w ? (T = /* @__PURE__ */ (0, W.jsxs)("section", {
4828
4830
  className: S,
4829
4831
  "aria-label": "Speaker notes",
4830
4832
  onKeyDown: fr,
@@ -6367,39 +6369,39 @@ var Ui = () => {
6367
6369
  },
6368
6370
  open: r
6369
6371
  };
6370
- }, Wi = 16 / 9, Gi = 67;
6371
- function Ki({ deck: e, enabled: t, onToggle: n }) {
6372
- e.removeKeyBinding(Gi), t && e.addKeyBinding({
6373
- keyCode: Gi,
6372
+ }, Wi = 16 / 9, Gi = 1280, Ki = Gi / Wi, qi = 67;
6373
+ function Ji({ deck: e, enabled: t, onToggle: n }) {
6374
+ e.removeKeyBinding(qi), t && e.addKeyBinding({
6375
+ keyCode: qi,
6374
6376
  key: "C",
6375
6377
  description: "Toggle code editor"
6376
6378
  }, n);
6377
6379
  }
6378
- function qi(e) {
6380
+ function Yi(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 Ji = /* @__PURE__ */ new Set([
6384
+ var Xi = /* @__PURE__ */ new Set([
6383
6385
  " ",
6384
6386
  "Spacebar",
6385
6387
  "ArrowRight",
6386
6388
  "ArrowDown",
6387
6389
  "PageDown"
6388
- ]), Yi = /* @__PURE__ */ new Set([
6390
+ ]), Zi = /* @__PURE__ */ new Set([
6389
6391
  "ArrowLeft",
6390
6392
  "ArrowUp",
6391
6393
  "PageUp"
6392
6394
  ]);
6393
- function Xi(e) {
6394
- return Ji.has(e.key) ? 1 : Yi.has(e.key) ? -1 : 0;
6395
+ function Qi(e) {
6396
+ return Xi.has(e.key) ? 1 : Zi.has(e.key) ? -1 : 0;
6395
6397
  }
6396
- function Zi(e) {
6397
- let t = (0, N.c)(4), n;
6398
+ function $i(e) {
6399
+ let t = (0, M.c)(4), n;
6398
6400
  t[0] === Symbol.for("react.memo_cache_sentinel") ? (n = {
6399
- width: 960,
6400
- height: 540
6401
+ width: Gi,
6402
+ height: Ki
6401
6403
  }, t[0] = n) : n = t[0];
6402
- let [r, i] = (0, M.useState)(n), a, o;
6404
+ let [r, i] = (0, j.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;
@@ -6413,40 +6415,40 @@ function Zi(e) {
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, M.useEffect)(a, o), r;
6418
+ }, o = [e], t[1] = e, t[2] = a, t[3] = o), (0, j.useEffect)(a, o), r;
6417
6419
  }
6418
- var Qi = (e) => {
6419
- let t = (0, N.c)(6), { text: n } = e, r, i;
6420
+ var ea = (e) => {
6421
+ let t = (0, M.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)(M.Fragment, { children: [t, !r && /* @__PURE__ */ (0, G.jsx)("br", {})] }, n);
6426
+ return t === "---" ? /* @__PURE__ */ (0, W.jsx)("hr", {}, n) : /* @__PURE__ */ (0, W.jsxs)(j.Fragment, { children: [t, !r && /* @__PURE__ */ (0, W.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;
6428
- return t[3] !== r || t[4] !== i ? (a = /* @__PURE__ */ (0, G.jsx)("aside", {
6430
+ return t[3] !== r || t[4] !== i ? (a = /* @__PURE__ */ (0, W.jsx)("aside", {
6429
6431
  className: r,
6430
6432
  children: i
6431
6433
  }), t[3] = r, t[4] = i, t[5] = a) : a = t[5], a;
6432
6434
  };
6433
- function $i(e) {
6435
+ function ta(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 ea(e) {
6439
+ function na(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 ta(e) {
6442
- let t = (0, N.c)(15), { activeCell: n, slideConfigs: r, noOutputIds: i } = e, a = n?.id ?? null, o;
6443
+ function ra(e) {
6444
+ let t = (0, M.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, M.useState)(l), f = u.cellId;
6451
+ let [u, d] = (0, j.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,13 +6461,13 @@ function ta(e) {
6459
6461
  cellId: m,
6460
6462
  show: !0
6461
6463
  }, t[5] = m, t[6] = h);
6462
- let [g, _] = (0, M.useState)(h), v = g.show;
6464
+ let [g, _] = (0, j.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 = () => _(na), t[7] = y) : y = t[7];
6470
+ t[7] === Symbol.for("react.memo_cache_sentinel") ? (y = () => _(ia), t[7] = y) : y = t[7];
6469
6471
  let b = D(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,
@@ -6476,420 +6478,441 @@ 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 na(e) {
6481
+ function ia(e) {
6480
6482
  return {
6481
6483
  ...e,
6482
6484
  show: !e.show
6483
6485
  };
6484
6486
  }
6485
- function ra(e) {
6487
+ function aa(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 ia = (e) => {
6493
- let t = (0, N.c)(13), { cell: n } = e, r;
6494
+ var oa = (e) => {
6495
+ let t = (0, M.c)(13), { cell: n } = e, r;
6494
6496
  t[0] !== n.id || t[1] !== n.name ? (r = x(n.id, n.name), t[0] = n.id, t[1] = n.name, t[2] = r) : r = t[2];
6495
6497
  let i = n.id, a = n.status, o = n.output, s;
6496
6498
  t[3] === n ? s = t[4] : (s = u(n, !1), t[3] = n, t[4] = s);
6497
6499
  let c;
6498
- t[5] !== n.id || t[6] !== n.output || t[7] !== n.status || t[8] !== s ? (c = /* @__PURE__ */ (0, G.jsx)(S, {
6500
+ t[5] !== n.id || t[6] !== n.output || t[7] !== n.status || t[8] !== s ? (c = /* @__PURE__ */ (0, W.jsx)(S, {
6499
6501
  cellId: i,
6500
6502
  status: a,
6501
6503
  output: o,
6502
6504
  stale: s
6503
6505
  }), t[5] = n.id, t[6] = n.output, t[7] = n.status, t[8] = s, t[9] = c) : c = t[9];
6504
6506
  let l;
6505
- return t[10] !== r || t[11] !== c ? (l = /* @__PURE__ */ (0, G.jsx)("div", {
6507
+ return t[10] !== r || t[11] !== c ? (l = /* @__PURE__ */ (0, W.jsx)("div", {
6506
6508
  className: "flex flex-col",
6507
6509
  ...r,
6508
6510
  children: c
6509
6511
  }), t[10] = r, t[11] = c, t[12] = l) : l = t[12], l;
6510
- }, aa = (e) => {
6511
- let t = (0, N.c)(24), { subslide: n, resolveShowCode: r, isEditable: i, slideConfigs: a, contentStyle: o } = e, s, c, l, u, d, f;
6512
+ }, sa = (e) => {
6513
+ let t = (0, M.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
6515
  let { slideLevel: e, cumulativeByBlock: p } = hr(n, a);
6514
6516
  l = e;
6515
6517
  let m = n.blocks.some((e) => e.cells.some((e) => r(e.id)));
6516
- c = K, s = tr, u = m ? "mo-slide-content flex flex-col gap-3" : "mo-slide-content", d = o, f = n.blocks.map((e, t) => {
6517
- let n = e.cells.map((e) => r(e.id) ? i ? /* @__PURE__ */ (0, G.jsx)(cr, { cell: e }, e.id) : /* @__PURE__ */ (0, G.jsx)(lr, { cell: e }, e.id) : /* @__PURE__ */ (0, G.jsx)(ia, { cell: e }, e.id));
6518
+ c = G, s = tr, 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, W.jsx)(cr, { cell: e }, e.id) : /* @__PURE__ */ (0, W.jsx)(lr, { cell: e }, e.id) : /* @__PURE__ */ (0, W.jsx)(oa, { cell: e }, e.id));
6518
6520
  if (e.isFragment) {
6519
- let e = p.get(t);
6520
- return /* @__PURE__ */ (0, G.jsxs)(Jn, {
6521
+ let r = p.get(t);
6522
+ return /* @__PURE__ */ (0, W.jsxs)(Jn, {
6521
6523
  as: "div",
6522
- children: [n, e && /* @__PURE__ */ (0, G.jsx)(Qi, { text: e })]
6523
- }, t);
6524
+ children: [n, r && /* @__PURE__ */ (0, W.jsx)(ea, { text: r })]
6525
+ }, e.cells[0].id);
6524
6526
  }
6525
- return /* @__PURE__ */ (0, G.jsx)(M.Fragment, { children: n }, t);
6527
+ return /* @__PURE__ */ (0, W.jsx)(j.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;
6529
- t[11] !== u || t[12] !== d || t[13] !== f ? (p = /* @__PURE__ */ (0, G.jsx)("div", {
6531
+ t[11] !== u || t[12] !== d || t[13] !== f ? (p = /* @__PURE__ */ (0, W.jsx)("div", {
6530
6532
  className: u,
6531
6533
  style: d,
6532
6534
  children: f
6533
6535
  }), t[11] = u, t[12] = d, t[13] = f, t[14] = p) : p = t[14];
6534
6536
  let m;
6535
- 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];
6537
+ t[15] !== s || t[16] !== p ? (m = /* @__PURE__ */ (0, W.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)(Qi, { text: l }), t[18] = l, t[19] = h);
6539
+ t[18] === l ? h = t[19] : (h = l && /* @__PURE__ */ (0, W.jsx)(ea, { text: l }), t[18] = l, t[19] = h);
6538
6540
  let g;
6539
- 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;
6541
+ return t[20] !== c || t[21] !== m || t[22] !== h ? (g = /* @__PURE__ */ (0, W.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 oa(e) {
6543
+ function ca(e) {
6542
6544
  let { isNoOutputPreview: t, isEditable: n, showCode: r } = e;
6543
6545
  return t && n || r;
6544
6546
  }
6545
- var sa = (e) => {
6546
- let t = (0, N.c)(5), { cell: n, isNoOutputPreview: r, isEditable: i, showCode: a } = e;
6547
- if (oa({
6547
+ var la = (e) => {
6548
+ let t = (0, M.c)(5), { cell: n, isNoOutputPreview: r, isEditable: i, showCode: a } = e;
6549
+ if (ca({
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)(cr, { cell: n }) : /* @__PURE__ */ (0, G.jsx)(lr, { cell: n }), t[0] = n, t[1] = i, t[2] = e) : e = t[2], e;
6555
+ return t[0] !== n || t[1] !== i ? (e = i ? /* @__PURE__ */ (0, W.jsx)(cr, { cell: n }) : /* @__PURE__ */ (0, W.jsx)(lr, { 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)(ia, { cell: n }), t[3] = n, t[4] = o), o;
6557
- }, ca = (e) => {
6558
- let n = (0, N.c)(160), { slideCells: o, layout: s, setLayout: c, noOutputIds: u, activeIndex: x, onSlideChange: S, mode: C, configWidth: ee, isEditable: T } = e, j = T !== void 0 && T, re = (0, M.useRef)(null), P = (0, M.useRef)(null), { width: ie, height: ae } = Zi(re), oe = E() != null, F = O(w), I = O(te).kind, se = O(A), ce = I !== "wasm" || se, L;
6559
- n[0] !== F || n[1] !== I ? (L = F || !h(I) ? [] : [Ui], n[0] = F, n[1] = I, n[2] = L) : L = n[2];
6560
- let le = L, [ue, de] = (0, M.useState)(la), fe = ne(o), pe;
6561
- n[3] === fe ? pe = n[4] : (pe = !k() && fe, n[3] = fe, n[4] = pe);
6562
- let me = pe, he;
6563
- n[5] === F ? he = n[6] : (he = b(F, window.location.search), n[5] = F, n[6] = he);
6564
- let R = !he && me, ge = x == null ? void 0 : o[x], _e;
6565
- n[7] !== ge || n[8] !== o ? (_e = ge ?? o.at(0), n[7] = ge, n[8] = o, n[9] = _e) : _e = n[9];
6558
+ return t[3] === n ? o = t[4] : (o = /* @__PURE__ */ (0, W.jsx)(oa, { cell: n }), t[3] = n, t[4] = o), o;
6559
+ }, ua = (e) => {
6560
+ let n = (0, M.c)(164), { slideCells: o, layout: s, setLayout: c, noOutputIds: u, activeIndex: x, onSlideChange: S, mode: C, configWidth: ee, isEditable: T } = e, A = T !== void 0 && T, ie = (0, j.useRef)(null), N = (0, j.useRef)(null), { width: ae, height: oe } = $i(ie), P = te() != null, [F, I] = (0, j.useState)(1), se;
6561
+ n[0] === Symbol.for("react.memo_cache_sentinel") ? (se = () => {
6562
+ let e = requestAnimationFrame(() => {
6563
+ let e = N.current;
6564
+ e && (e.layout(), I(e.getScale()));
6565
+ });
6566
+ return () => cancelAnimationFrame(e);
6567
+ }, n[0] = se) : se = n[0];
6568
+ let ce;
6569
+ n[1] !== oe || n[2] !== P || n[3] !== ae ? (ce = [
6570
+ ae,
6571
+ oe,
6572
+ P
6573
+ ], n[1] = oe, n[2] = P, n[3] = ae, n[4] = ce) : ce = n[4], (0, j.useEffect)(se, ce);
6574
+ let L = E(w), le = E(ne).kind, ue = E(k), de = le !== "wasm" || ue, fe;
6575
+ n[5] !== L || n[6] !== le ? (fe = L || !h(le) ? [] : [Ui], n[5] = L, n[6] = le, n[7] = fe) : fe = n[7];
6576
+ let pe = fe, [me, he] = (0, j.useState)(da), ge = re(), _e;
6577
+ n[8] === ge ? _e = n[9] : (_e = !O() && ge, n[8] = ge, n[9] = _e);
6566
6578
  let ve = _e, ye;
6567
- n[10] !== ge || n[11] !== s.cells || n[12] !== u ? (ye = {
6568
- activeCell: ge,
6579
+ n[10] === L ? ye = n[11] : (ye = b(L, window.location.search), n[10] = L, n[11] = ye);
6580
+ let R = !ye && ve, be = x == null ? void 0 : o[x], xe;
6581
+ n[12] !== be || n[13] !== o ? (xe = be ?? o.at(0), n[12] = be, n[13] = o, n[14] = xe) : xe = n[14];
6582
+ let Se = xe, Ce;
6583
+ n[15] !== be || n[16] !== s.cells || n[17] !== u ? (Ce = {
6584
+ activeCell: be,
6569
6585
  slideConfigs: s.cells,
6570
6586
  noOutputIds: u
6571
- }, n[10] = ge, n[11] = s.cells, n[12] = u, n[13] = ye) : ye = n[13];
6572
- let { parkedPreviewCell: z, isHeldEdit: be, isNoOutputPreview: B, heldEditCellId: xe, heldShowsCode: Se, toggleHeldShowsCode: Ce } = ta(ye), we;
6573
- n[14] !== me || n[15] !== s.cells || n[16] !== ue ? (we = (e) => $i({
6587
+ }, n[15] = be, n[16] = s.cells, n[17] = u, n[18] = Ce) : Ce = n[18];
6588
+ let { parkedPreviewCell: z, isHeldEdit: we, isNoOutputPreview: Te, heldEditCellId: Ee, heldShowsCode: De, toggleHeldShowsCode: Oe } = ra(Ce), ke;
6589
+ n[19] !== ve || n[20] !== s.cells || n[21] !== me ? (ke = (e) => ta({
6574
6590
  cells: s.cells,
6575
6591
  cellId: e,
6576
- showCodeOverrides: ue,
6577
- codeAvailable: me
6578
- }), n[14] = me, n[15] = s.cells, n[16] = ue, n[17] = we) : we = n[17];
6579
- let Te = we, V = ge?.id ?? ve?.id, Ee;
6580
- n[18] !== V || n[19] !== Se || n[20] !== be || n[21] !== Te ? (Ee = be ? Se : Te(V), n[18] = V, n[19] = Se, n[20] = be, n[21] = Te, n[22] = Ee) : Ee = n[22];
6581
- let De = Ee, Oe;
6582
- n[23] !== V || n[24] !== me || n[25] !== s.cells ? (Oe = me && V != null && (s.cells.get(V)?.showCode ?? !1), n[23] = V, n[24] = me, n[25] = s.cells, n[26] = Oe) : Oe = n[26];
6583
- let ke = Oe, Ae;
6584
- n[27] !== xe || n[28] !== s.cells || n[29] !== u ? (Ae = (e) => ea({
6592
+ showCodeOverrides: me,
6593
+ codeAvailable: ve
6594
+ }), n[19] = ve, n[20] = s.cells, n[21] = me, n[22] = ke) : ke = n[22];
6595
+ let Ae = ke, B = be?.id ?? Se?.id, je;
6596
+ n[23] !== B || n[24] !== De || n[25] !== we || n[26] !== Ae ? (je = we ? De : Ae(B), n[23] = B, n[24] = De, n[25] = we, n[26] = Ae, n[27] = je) : je = n[27];
6597
+ let Me = je, Ne;
6598
+ n[28] !== B || n[29] !== ve || n[30] !== s.cells ? (Ne = ve && B != null && (s.cells.get(B)?.showCode ?? !1), n[28] = B, n[29] = ve, n[30] = s.cells, n[31] = Ne) : Ne = n[31];
6599
+ let Pe = Ne, Fe;
6600
+ n[32] !== Ee || n[33] !== s.cells || n[34] !== u ? (Fe = (e) => na({
6585
6601
  cell: e,
6586
6602
  noOutputIds: u,
6587
- heldEditCellId: xe,
6603
+ heldEditCellId: Ee,
6588
6604
  slideConfigs: s.cells
6589
- }), n[27] = xe, n[28] = s.cells, n[29] = u, n[30] = Ae) : Ae = n[30];
6590
- let je;
6591
- n[31] !== o || n[32] !== Ae ? (je = nr({
6605
+ }), n[32] = Ee, n[33] = s.cells, n[34] = u, n[35] = Fe) : Fe = n[35];
6606
+ let Ie;
6607
+ n[36] !== o || n[37] !== Fe ? (Ie = nr({
6592
6608
  cells: o,
6593
- getType: Ae
6594
- }), n[31] = o, n[32] = Ae, n[33] = je) : je = n[33];
6595
- let Me = je, Ne;
6596
- n[34] !== Me || n[35] !== o ? (Ne = rr({
6597
- composition: Me,
6609
+ getType: Fe
6610
+ }), n[36] = o, n[37] = Fe, n[38] = Ie) : Ie = n[38];
6611
+ let Le = Ie, Re;
6612
+ n[39] !== Le || n[40] !== o ? (Re = rr({
6613
+ composition: Le,
6598
6614
  cells: o,
6599
- getId: ua
6600
- }), n[34] = Me, n[35] = o, n[36] = Ne) : Ne = n[36];
6601
- let { cellToTarget: Pe, targetToCellIndex: Fe } = Ne, Ie = s.deck?.transition ?? "slide", Le = s.deck?.verticalAlign, Re;
6602
- n[37] === Le ? Re = n[38] : (Re = ra(Le), n[37] = Le, n[38] = Re);
6603
- let ze = Re, Be;
6604
- n[39] === Symbol.for("react.memo_cache_sentinel") ? (Be = v(window.location.href), n[39] = Be) : Be = n[39];
6605
- let Ve = Be, H;
6606
- n[40] !== Ie || n[41] !== ae || n[42] !== ie ? (H = {
6615
+ getId: fa
6616
+ }), n[39] = Le, n[40] = o, n[41] = Re) : Re = n[41];
6617
+ let { cellToTarget: ze, targetToCellIndex: Be } = Re, Ve = s.deck?.transition ?? "slide", He = s.deck?.verticalAlign, V;
6618
+ n[42] === He ? V = n[43] : (V = aa(He), n[42] = He, n[43] = V);
6619
+ let H = V, Ue;
6620
+ n[44] === Symbol.for("react.memo_cache_sentinel") ? (Ue = v(window.location.href), n[44] = Ue) : Ue = n[44];
6621
+ let We = Ue, Ge;
6622
+ n[45] === Ve ? Ge = n[46] : (Ge = {
6607
6623
  embedded: !0,
6608
- width: ie,
6609
- height: ae,
6624
+ width: Gi,
6625
+ height: Ki,
6610
6626
  center: !1,
6611
- minScale: .2,
6627
+ minScale: 0,
6612
6628
  maxScale: 2,
6613
- transition: Ie,
6614
- keyboardCondition: da,
6615
- url: Ve,
6629
+ transition: Ve,
6630
+ keyboardCondition: pa,
6631
+ url: We,
6616
6632
  scrollActivationWidth: 0
6617
- }, n[40] = Ie, n[41] = ae, n[42] = ie, n[43] = H) : H = n[43];
6618
- let U = H, He;
6619
- n[44] !== x || n[45] !== ce || n[46] !== Pe || n[47] !== o ? (He = (e) => {
6633
+ }, n[45] = Ve, n[46] = Ge);
6634
+ let Ke = Ge, qe;
6635
+ n[47] !== x || n[48] !== de || n[49] !== ze || n[50] !== o ? (qe = (e) => {
6620
6636
  if (x == null && window.location.hash.startsWith("#/")) {
6621
- if (!ce) return;
6622
- window.dispatchEvent(new HashChangeEvent("hashchange")), qi(e);
6637
+ if (!de) return;
6638
+ window.dispatchEvent(new HashChangeEvent("hashchange")), Yi(e);
6623
6639
  return;
6624
6640
  }
6625
6641
  let t = or({
6626
6642
  activeIndex: x,
6627
6643
  cells: o,
6628
- cellToTarget: Pe,
6629
- getId: fa
6644
+ cellToTarget: ze,
6645
+ getId: ma
6630
6646
  }), n = t && sr(e.getIndices(), t);
6631
- n && (e.slide(n.h, n.v, n.f), qi(e));
6632
- }, n[44] = x, n[45] = ce, n[46] = Pe, n[47] = o, n[48] = He) : He = n[48];
6633
- let Ue = D(He), We;
6634
- n[49] === Ue ? We = n[50] : (We = () => {
6635
- let e = P.current;
6636
- e != null && Ue(e);
6637
- }, n[49] = Ue, n[50] = We);
6638
- let Ge;
6639
- n[51] !== x || n[52] !== ce || n[53] !== Pe || n[54] !== Ue || n[55] !== o ? (Ge = [
6647
+ n && (e.slide(n.h, n.v, n.f), Yi(e));
6648
+ }, n[47] = x, n[48] = de, n[49] = ze, n[50] = o, n[51] = qe) : qe = n[51];
6649
+ let Je = D(qe), Ye;
6650
+ n[52] === Je ? Ye = n[53] : (Ye = () => {
6651
+ let e = N.current;
6652
+ e != null && Je(e);
6653
+ }, n[52] = Je, n[53] = Ye);
6654
+ let Xe;
6655
+ n[54] !== x || n[55] !== de || n[56] !== ze || n[57] !== Je || n[58] !== o ? (Xe = [
6640
6656
  x,
6641
- ce,
6642
- Pe,
6657
+ de,
6658
+ ze,
6643
6659
  o,
6644
- Ue
6645
- ], n[51] = x, n[52] = ce, n[53] = Pe, n[54] = Ue, n[55] = o, n[56] = Ge) : Ge = n[56], (0, M.useEffect)(We, Ge);
6646
- let Ke;
6647
- n[57] !== V || n[58] !== ke || n[59] !== be || n[60] !== Ce ? (Ke = () => {
6648
- if (!(V == null || ke)) {
6649
- if (be) {
6650
- Ce();
6660
+ Je
6661
+ ], n[54] = x, n[55] = de, n[56] = ze, n[57] = Je, n[58] = o, n[59] = Xe) : Xe = n[59], (0, j.useEffect)(Ye, Xe);
6662
+ let Ze;
6663
+ n[60] !== B || n[61] !== Pe || n[62] !== we || n[63] !== Oe ? (Ze = () => {
6664
+ if (!(B == null || Pe)) {
6665
+ if (we) {
6666
+ Oe();
6651
6667
  return;
6652
6668
  }
6653
- (0, M.startTransition)(() => de((e) => {
6669
+ (0, j.startTransition)(() => he((e) => {
6654
6670
  let t = new Set(e);
6655
- return t.has(V) ? t.delete(V) : t.add(V), t;
6671
+ return t.has(B) ? t.delete(B) : t.add(B), t;
6656
6672
  }));
6657
6673
  }
6658
- }, n[57] = V, n[58] = ke, n[59] = be, n[60] = Ce, n[61] = Ke) : Ke = n[61];
6659
- let qe = D(Ke), Je, Ye;
6660
- n[62] !== R || n[63] !== qe ? (Je = () => {
6661
- let e = P.current;
6662
- return e && Ki({
6674
+ }, n[60] = B, n[61] = Pe, n[62] = we, n[63] = Oe, n[64] = Ze) : Ze = n[64];
6675
+ let Qe = D(Ze), $e, et;
6676
+ n[65] !== R || n[66] !== Qe ? ($e = () => {
6677
+ let e = N.current;
6678
+ return e && Ji({
6663
6679
  deck: e,
6664
6680
  enabled: R,
6665
- onToggle: qe
6681
+ onToggle: Qe
6666
6682
  }), () => {
6667
- P.current?.removeKeyBinding(Gi);
6683
+ N.current?.removeKeyBinding(qi);
6668
6684
  };
6669
- }, Ye = [R, qe], n[62] = R, n[63] = qe, n[64] = Je, n[65] = Ye) : (Je = n[64], Ye = n[65]), (0, M.useEffect)(Je, Ye);
6670
- let Xe;
6671
- n[66] !== S || n[67] !== z || n[68] !== Fe ? (Xe = (e) => {
6685
+ }, et = [R, Qe], n[65] = R, n[66] = Qe, n[67] = $e, n[68] = et) : ($e = n[67], et = n[68]), (0, j.useEffect)($e, et);
6686
+ let tt;
6687
+ n[69] !== S || n[70] !== z || n[71] !== Be ? (tt = (e) => {
6672
6688
  if (z != null) return;
6673
- let t = ir(Fe, e.getIndices());
6689
+ let t = ir(Be, e.getIndices());
6674
6690
  t != null && S?.(t);
6675
- }, n[66] = S, n[67] = z, n[68] = Fe, n[69] = Xe) : Xe = n[69];
6676
- let Ze = D(Xe), Qe;
6677
- n[70] === Ze ? Qe = n[71] : (Qe = () => {
6678
- let e = P.current;
6679
- e && Ze(e);
6680
- }, n[70] = Ze, n[71] = Qe);
6681
- let $e = D(Qe), et;
6682
- n[72] !== ce || n[73] !== R || n[74] !== Ue || n[75] !== Ze || n[76] !== qe ? (et = (e) => {
6683
- Ue(e), ce && Ze(e), Ki({
6691
+ }, n[69] = S, n[70] = z, n[71] = Be, n[72] = tt) : tt = n[72];
6692
+ let nt = D(tt), rt;
6693
+ n[73] === nt ? rt = n[74] : (rt = () => {
6694
+ let e = N.current;
6695
+ e && nt(e);
6696
+ }, n[73] = nt, n[74] = rt);
6697
+ let it = D(rt), at;
6698
+ n[75] !== de || n[76] !== R || n[77] !== Je || n[78] !== nt || n[79] !== Qe ? (at = (e) => {
6699
+ I(e.getScale()), Je(e), de && nt(e), Ji({
6684
6700
  deck: e,
6685
6701
  enabled: R,
6686
- onToggle: qe
6702
+ onToggle: Qe
6687
6703
  });
6688
6704
  let t = e.getSlidesElement()?.closest(".reveal");
6689
6705
  t instanceof HTMLElement && (t.tabIndex = -1, t.focus({ preventScroll: !0 }));
6690
- }, n[72] = ce, n[73] = R, n[74] = Ue, n[75] = Ze, n[76] = qe, n[77] = et) : et = n[77];
6691
- let tt = D(et), nt;
6692
- n[78] !== x || n[79] !== S || n[80] !== z || n[81] !== o ? (nt = (e) => {
6706
+ }, n[75] = de, n[76] = R, n[77] = Je, n[78] = nt, n[79] = Qe, n[80] = at) : at = n[80];
6707
+ let ot = D(at), U;
6708
+ n[81] !== x || n[82] !== S || n[83] !== z || n[84] !== o ? (U = (e) => {
6693
6709
  if (!z || x == null || i.fromInput(e)) return;
6694
- let t = Xi(e);
6710
+ let t = Qi(e);
6695
6711
  if (t === 0) return;
6696
6712
  e.preventDefault(), e.stopPropagation();
6697
6713
  let n = x + t;
6698
6714
  n < 0 || n >= o.length || S?.(n);
6699
- }, n[78] = x, n[79] = S, n[80] = z, n[81] = o, n[82] = nt) : nt = n[82];
6700
- let rt = D(nt), it;
6701
- n[83] === $e ? it = n[84] : (it = () => {
6702
- $e();
6703
- }, n[83] = $e, n[84] = it);
6704
- let at = D(it), W;
6705
- n[85] === Symbol.for("react.memo_cache_sentinel") ? (W = { capture: !0 }, n[85] = W) : W = n[85], t(document, "keydown", rt, W);
6706
- let ot = be ? null : B ? "Hidden as there is no output" : "Skipped in presentation", st;
6707
- n[86] !== Se || n[87] !== be || n[88] !== z?.id || n[89] !== Te ? (st = be ? Se : Te(z?.id), n[86] = Se, n[87] = be, n[88] = z?.id, n[89] = Te, n[90] = st) : st = n[90];
6708
- let ct = st, lt;
6709
- n[91] !== j || n[92] !== B || n[93] !== ct ? (lt = oa({
6710
- isNoOutputPreview: B,
6711
- isEditable: j,
6712
- showCode: ct
6713
- }), n[91] = j, n[92] = B, n[93] = ct, n[94] = lt) : lt = n[94];
6714
- let ut = lt, dt;
6715
- n[95] !== ae || n[96] !== ie ? (dt = {
6716
- width: ie,
6717
- height: ae
6718
- }, n[95] = ae, n[96] = ie, n[97] = dt) : dt = n[97];
6719
- let ft;
6720
- if (n[98] !== Me.stacks || n[99] !== j || n[100] !== s.cells || n[101] !== Te || n[102] !== ze) {
6715
+ }, n[81] = x, n[82] = S, n[83] = z, n[84] = o, n[85] = U) : U = n[85];
6716
+ let st = D(U), ct;
6717
+ n[86] === it ? ct = n[87] : (ct = () => {
6718
+ it();
6719
+ }, n[86] = it, n[87] = ct);
6720
+ let lt = D(ct), ut;
6721
+ n[88] === Symbol.for("react.memo_cache_sentinel") ? (ut = { capture: !0 }, n[88] = ut) : ut = n[88], t(document, "keydown", st, ut);
6722
+ let dt = we ? null : Te ? "Hidden as there is no output" : "Skipped in presentation", ft;
6723
+ n[89] !== De || n[90] !== we || n[91] !== z?.id || n[92] !== Ae ? (ft = we ? De : Ae(z?.id), n[89] = De, n[90] = we, n[91] = z?.id, n[92] = Ae, n[93] = ft) : ft = n[93];
6724
+ let pt = ft, mt;
6725
+ n[94] !== A || n[95] !== Te || n[96] !== pt ? (mt = ca({
6726
+ isNoOutputPreview: Te,
6727
+ isEditable: A,
6728
+ showCode: pt
6729
+ }), n[94] = A, n[95] = Te, n[96] = pt, n[97] = mt) : mt = n[97];
6730
+ let gt = mt, _t;
6731
+ n[98] !== oe || n[99] !== ae ? (_t = {
6732
+ width: ae,
6733
+ height: oe
6734
+ }, n[98] = oe, n[99] = ae, n[100] = _t) : _t = n[100];
6735
+ let vt;
6736
+ if (n[101] !== Le.stacks || n[102] !== A || n[103] !== s.cells || n[104] !== Ae || n[105] !== H) {
6721
6737
  let e;
6722
- n[104] !== j || n[105] !== s.cells || n[106] !== Te || n[107] !== ze ? (e = (e, t) => e.subslides.length === 1 ? /* @__PURE__ */ (0, G.jsx)(aa, {
6738
+ n[107] !== A || n[108] !== s.cells || n[109] !== Ae || n[110] !== H ? (e = (e, t) => e.subslides.length === 1 ? /* @__PURE__ */ (0, W.jsx)(sa, {
6723
6739
  subslide: e.subslides[0],
6724
- resolveShowCode: Te,
6725
- isEditable: j,
6740
+ resolveShowCode: Ae,
6741
+ isEditable: A,
6726
6742
  slideConfigs: s.cells,
6727
- contentStyle: ze
6728
- }, t) : /* @__PURE__ */ (0, G.jsx)(vt, { children: e.subslides.map((e, t) => /* @__PURE__ */ (0, G.jsx)(aa, {
6743
+ contentStyle: H
6744
+ }, t) : /* @__PURE__ */ (0, W.jsx)(yt, { children: e.subslides.map((e, t) => /* @__PURE__ */ (0, W.jsx)(sa, {
6729
6745
  subslide: e,
6730
- resolveShowCode: Te,
6731
- isEditable: j,
6746
+ resolveShowCode: Ae,
6747
+ isEditable: A,
6732
6748
  slideConfigs: s.cells,
6733
- contentStyle: ze
6734
- }, t)) }, t), n[104] = j, n[105] = s.cells, n[106] = Te, n[107] = ze, n[108] = e) : e = n[108], ft = Me.stacks.map(e), n[98] = Me.stacks, n[99] = j, n[100] = s.cells, n[101] = Te, n[102] = ze, n[103] = ft;
6735
- } else ft = n[103];
6736
- let pt;
6737
- n[109] !== le || n[110] !== tt || n[111] !== at || n[112] !== $e || n[113] !== U || n[114] !== ft ? (pt = /* @__PURE__ */ (0, G.jsx)(mt, {
6738
- deckRef: P,
6749
+ contentStyle: H
6750
+ }, t)) }, t), n[107] = A, n[108] = s.cells, n[109] = Ae, n[110] = H, n[111] = e) : e = n[111], vt = Le.stacks.map(e), n[101] = Le.stacks, n[102] = A, n[103] = s.cells, n[104] = Ae, n[105] = H, n[106] = vt;
6751
+ } else vt = n[106];
6752
+ let G;
6753
+ n[112] !== pe || n[113] !== ot || n[114] !== lt || n[115] !== it || n[116] !== Ke || n[117] !== vt ? (G = /* @__PURE__ */ (0, W.jsx)(ht, {
6754
+ deckRef: N,
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: U,
6741
- onReady: tt,
6742
- onSlideChange: at,
6743
- onFragmentShown: $e,
6744
- onFragmentHidden: $e,
6745
- plugins: le,
6746
- children: ft
6747
- }), n[109] = le, n[110] = tt, n[111] = at, n[112] = $e, n[113] = U, n[114] = ft, n[115] = pt) : pt = n[115];
6748
- let ht;
6749
- n[116] !== j || n[117] !== B || n[118] !== z || n[119] !== ot || n[120] !== ct || n[121] !== ut || n[122] !== ze ? (ht = z && /* @__PURE__ */ (0, G.jsxs)("div", {
6756
+ config: Ke,
6757
+ onReady: ot,
6758
+ onSlideChange: lt,
6759
+ onFragmentShown: it,
6760
+ onFragmentHidden: it,
6761
+ plugins: pe,
6762
+ children: vt
6763
+ }), n[112] = pe, n[113] = ot, n[114] = lt, n[115] = it, n[116] = Ke, n[117] = vt, n[118] = G) : G = n[118];
6764
+ let bt;
6765
+ n[119] !== A || n[120] !== Te || n[121] !== z || n[122] !== dt || n[123] !== pt || n[124] !== gt || n[125] !== H || n[126] !== F ? (bt = z && /* @__PURE__ */ (0, W.jsxs)("div", {
6750
6766
  className: "absolute inset-0 z-10 border rounded bg-background flex flex-col overflow-hidden",
6751
- "aria-label": ot ?? void 0,
6752
- children: [ot && /* @__PURE__ */ (0, G.jsxs)("div", {
6767
+ "aria-label": dt ?? void 0,
6768
+ children: [dt && /* @__PURE__ */ (0, W.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)(m, { className: "h-3.5 w-3.5" }), /* @__PURE__ */ (0, G.jsx)("span", { children: ot })]
6755
- }), /* @__PURE__ */ (0, G.jsx)("div", {
6756
- className: "flex-1 overflow-auto flex",
6757
- children: /* @__PURE__ */ (0, G.jsx)("div", {
6758
- className: ut ? "mo-slide-content flex flex-col gap-3" : "mo-slide-content",
6759
- style: ze,
6760
- children: /* @__PURE__ */ (0, G.jsx)(sa, {
6770
+ children: [/* @__PURE__ */ (0, W.jsx)(m, { className: "h-3.5 w-3.5" }), /* @__PURE__ */ (0, W.jsx)("span", { children: dt })]
6771
+ }), /* @__PURE__ */ (0, W.jsx)("div", {
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: Gi,
6777
+ height: Ki,
6778
+ transform: `translate(-50%, -50%) scale(${F})`
6779
+ },
6780
+ children: /* @__PURE__ */ (0, W.jsx)(tr, { children: /* @__PURE__ */ (0, W.jsx)("div", {
6781
+ className: gt ? "mo-slide-content flex flex-col gap-3" : "mo-slide-content",
6782
+ style: H,
6783
+ children: /* @__PURE__ */ (0, W.jsx)(la, {
6761
6784
  cell: z,
6762
- isNoOutputPreview: B,
6763
- isEditable: j,
6764
- showCode: ct
6785
+ isNoOutputPreview: Te,
6786
+ isEditable: A,
6787
+ showCode: pt
6765
6788
  })
6766
- })
6789
+ }) })
6767
6790
  })]
6768
- }, z.id), n[116] = j, n[117] = B, n[118] = z, n[119] = ot, n[120] = ct, n[121] = ut, n[122] = ze, n[123] = ht) : ht = n[123];
6769
- let gt;
6770
- n[124] !== De || n[125] !== ke || n[126] !== R || n[127] !== qe ? (gt = R && /* @__PURE__ */ (0, G.jsx)(l, {
6771
- content: ke ? "Code is always shown for this slide" : De ? "Hide code (C)" : "Show code (C)",
6772
- children: /* @__PURE__ */ (0, G.jsx)(a, {
6791
+ }, z.id), n[119] = A, n[120] = Te, n[121] = z, n[122] = dt, n[123] = pt, n[124] = gt, n[125] = H, n[126] = F, n[127] = bt) : bt = n[127];
6792
+ let K;
6793
+ n[128] !== Me || n[129] !== Pe || n[130] !== R || n[131] !== Qe ? (K = R && /* @__PURE__ */ (0, W.jsx)(l, {
6794
+ content: Pe ? "Code is always shown for this slide" : Me ? "Hide code (C)" : "Show code (C)",
6795
+ children: /* @__PURE__ */ (0, W.jsx)(a, {
6773
6796
  "data-testid": "marimo-plugin-slides-toggle-code",
6774
6797
  variant: "ghost",
6775
6798
  size: "icon",
6776
- className: r("text-muted-foreground h-7 w-7", De && "text-foreground bg-muted", ke && "opacity-50 cursor-not-allowed"),
6777
- "aria-pressed": De,
6778
- "aria-disabled": ke,
6779
- "aria-label": ke ? "Code always shown" : De ? "Hide code" : "Show code",
6780
- onClick: qe,
6781
- children: /* @__PURE__ */ (0, G.jsx)(_, { className: "h-4 w-4" })
6799
+ className: r("text-muted-foreground h-7 w-7", Me && "text-foreground bg-muted", Pe && "opacity-50 cursor-not-allowed"),
6800
+ "aria-pressed": Me,
6801
+ "aria-disabled": Pe,
6802
+ "aria-label": Pe ? "Code always shown" : Me ? "Hide code" : "Show code",
6803
+ onClick: Qe,
6804
+ children: /* @__PURE__ */ (0, W.jsx)(_, { className: "h-4 w-4" })
6782
6805
  })
6783
- }), n[124] = De, n[125] = ke, n[126] = R, n[127] = qe, n[128] = gt) : gt = n[128];
6784
- let _t;
6785
- n[129] === Symbol.for("react.memo_cache_sentinel") ? (_t = /* @__PURE__ */ (0, G.jsx)(l, {
6806
+ }), n[128] = Me, n[129] = Pe, n[130] = R, n[131] = Qe, n[132] = K) : K = n[132];
6807
+ let xt;
6808
+ n[133] === Symbol.for("react.memo_cache_sentinel") ? (xt = /* @__PURE__ */ (0, W.jsx)(l, {
6786
6809
  content: "Fullscreen (F)",
6787
- children: /* @__PURE__ */ (0, G.jsx)(a, {
6810
+ children: /* @__PURE__ */ (0, W.jsx)(a, {
6788
6811
  "data-testid": "marimo-plugin-slides-fullscreen",
6789
6812
  variant: "ghost",
6790
6813
  size: "icon",
6791
6814
  className: "text-muted-foreground h-7 w-7",
6792
6815
  "aria-label": "Enter fullscreen",
6793
6816
  onClick: () => {
6794
- P.current?.getViewportElement()?.requestFullscreen().catch(pa);
6817
+ N.current?.getViewportElement()?.requestFullscreen().catch(ha);
6795
6818
  },
6796
- children: /* @__PURE__ */ (0, G.jsx)(y, { className: "h-4 w-4" })
6819
+ children: /* @__PURE__ */ (0, W.jsx)(y, { className: "h-4 w-4" })
6797
6820
  })
6798
- }), n[129] = _t) : _t = n[129];
6799
- let K;
6800
- n[130] === gt ? K = n[131] : (K = /* @__PURE__ */ (0, G.jsxs)("div", {
6821
+ }), n[133] = xt) : xt = n[133];
6822
+ let q;
6823
+ n[134] === K ? q = n[135] : (q = /* @__PURE__ */ (0, W.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: [gt, _t]
6803
- }), n[130] = gt, n[131] = K);
6804
- let yt;
6805
- n[132] !== dt || n[133] !== pt || n[134] !== ht || n[135] !== K ? (yt = /* @__PURE__ */ (0, G.jsx)("div", {
6806
- ref: re,
6825
+ children: [K, xt]
6826
+ }), n[134] = K, n[135] = q);
6827
+ let J;
6828
+ n[136] !== _t || n[137] !== G || n[138] !== bt || n[139] !== q ? (J = /* @__PURE__ */ (0, W.jsx)("div", {
6829
+ ref: ie,
6807
6830
  className: "h-full w-full min-w-0 flex items-center justify-center overflow-hidden",
6808
- children: /* @__PURE__ */ (0, G.jsxs)("div", {
6831
+ children: /* @__PURE__ */ (0, W.jsxs)("div", {
6809
6832
  className: "group relative",
6810
- style: dt,
6833
+ style: _t,
6811
6834
  children: [
6812
- pt,
6813
- ht,
6814
- K
6835
+ G,
6836
+ bt,
6837
+ q
6815
6838
  ]
6816
6839
  })
6817
- }), n[132] = dt, n[133] = pt, n[134] = ht, n[135] = K, n[136] = yt) : yt = n[136];
6818
- let q = yt;
6840
+ }), n[136] = _t, n[137] = G, n[138] = bt, n[139] = q, n[140] = J) : J = n[140];
6841
+ let St = J;
6819
6842
  if (C === "read") {
6820
6843
  let e;
6821
- return n[137] === q ? e = n[138] : (e = /* @__PURE__ */ (0, G.jsx)("div", {
6844
+ return n[141] === St ? e = n[142] : (e = /* @__PURE__ */ (0, W.jsx)("div", {
6822
6845
  className: "flex-1 min-w-0 flex flex-row gap-3",
6823
- children: q
6824
- }), n[137] = q, n[138] = e), e;
6846
+ children: St
6847
+ }), n[141] = St, n[142] = e), e;
6825
6848
  }
6826
- let bt;
6827
- n[139] === q ? bt = n[140] : (bt = /* @__PURE__ */ (0, G.jsx)(p, {
6849
+ let Y;
6850
+ n[143] === St ? Y = n[144] : (Y = /* @__PURE__ */ (0, W.jsx)(p, {
6828
6851
  defaultSize: 92,
6829
6852
  minSize: 60,
6830
- children: q
6831
- }), n[139] = q, n[140] = bt);
6832
- let xt;
6833
- n[141] === Symbol.for("react.memo_cache_sentinel") ? (xt = {
6853
+ children: St
6854
+ }), n[143] = St, n[144] = Y);
6855
+ let Ct;
6856
+ n[145] === Symbol.for("react.memo_cache_sentinel") ? (Ct = {
6834
6857
  coarse: 12,
6835
6858
  fine: 4
6836
- }, n[141] = xt) : xt = n[141];
6837
- let J;
6838
- n[142] === oe ? J = n[143] : (J = /* @__PURE__ */ (0, G.jsx)(d, {
6859
+ }, n[145] = Ct) : Ct = n[145];
6860
+ let wt;
6861
+ n[146] === P ? wt = n[147] : (wt = /* @__PURE__ */ (0, W.jsx)(d, {
6839
6862
  className: "mo-slides-notes-resize",
6840
- hitAreaMargins: xt,
6841
- disabled: oe
6842
- }), n[142] = oe, n[143] = J);
6843
- let St = ve?.id, Y;
6844
- n[144] !== s || n[145] !== c || n[146] !== St ? (Y = /* @__PURE__ */ (0, G.jsx)(p, {
6863
+ hitAreaMargins: Ct,
6864
+ disabled: P
6865
+ }), n[146] = P, n[147] = wt);
6866
+ let Tt = Se?.id, Et;
6867
+ n[148] !== s || n[149] !== c || n[150] !== Tt ? (Et = /* @__PURE__ */ (0, W.jsx)(p, {
6845
6868
  defaultSize: 10,
6846
6869
  minSize: 4,
6847
6870
  collapsible: !0,
6848
6871
  collapsedSize: 4,
6849
- children: /* @__PURE__ */ (0, G.jsx)(dr, {
6872
+ children: /* @__PURE__ */ (0, W.jsx)(dr, {
6850
6873
  layout: s,
6851
6874
  setLayout: c,
6852
- cellId: St
6875
+ cellId: Tt
6853
6876
  })
6854
- }), n[144] = s, n[145] = c, n[146] = St, n[147] = Y) : Y = n[147];
6855
- let Ct;
6856
- n[148] !== bt || n[149] !== J || n[150] !== Y ? (Ct = /* @__PURE__ */ (0, G.jsxs)(f, {
6877
+ }), n[148] = s, n[149] = c, n[150] = Tt, n[151] = Et) : Et = n[151];
6878
+ let Dt;
6879
+ n[152] !== Y || n[153] !== wt || n[154] !== Et ? (Dt = /* @__PURE__ */ (0, W.jsxs)(f, {
6857
6880
  direction: "vertical",
6858
6881
  autoSaveId: "marimo:slides:notes-panel",
6859
6882
  className: "flex-1 min-w-0",
6860
6883
  children: [
6861
- bt,
6862
- J,
6863
- Y
6884
+ Y,
6885
+ wt,
6886
+ Et
6864
6887
  ]
6865
- }), n[148] = bt, n[149] = J, n[150] = Y, n[151] = Ct) : Ct = n[151];
6866
- let wt;
6867
- n[152] !== ve || n[153] !== ee || n[154] !== s || n[155] !== c ? (wt = /* @__PURE__ */ (0, G.jsx)(g, {
6888
+ }), n[152] = Y, n[153] = wt, n[154] = Et, n[155] = Dt) : Dt = n[155];
6889
+ let Ot;
6890
+ n[156] !== Se || n[157] !== ee || n[158] !== s || n[159] !== c ? (Ot = /* @__PURE__ */ (0, W.jsx)(g, {
6868
6891
  configWidth: ee,
6869
6892
  layout: s,
6870
6893
  setLayout: c,
6871
- activeConfigCell: ve
6872
- }), n[152] = ve, n[153] = ee, n[154] = s, n[155] = c, n[156] = wt) : wt = n[156];
6873
- let Tt;
6874
- return n[157] !== Ct || n[158] !== wt ? (Tt = /* @__PURE__ */ (0, G.jsxs)("div", {
6894
+ activeConfigCell: Se
6895
+ }), n[156] = Se, n[157] = ee, n[158] = s, n[159] = c, n[160] = Ot) : Ot = n[160];
6896
+ let kt;
6897
+ return n[161] !== Dt || n[162] !== Ot ? (kt = /* @__PURE__ */ (0, W.jsxs)("div", {
6875
6898
  className: "flex-1 min-w-0 flex flex-row gap-3",
6876
- children: [Ct, wt]
6877
- }), n[157] = Ct, n[158] = wt, n[159] = Tt) : Tt = n[159], Tt;
6899
+ children: [Dt, Ot]
6900
+ }), n[161] = Dt, n[162] = Ot, n[163] = kt) : kt = n[163], kt;
6878
6901
  };
6879
- function la() {
6902
+ function da() {
6880
6903
  return /* @__PURE__ */ new Set();
6881
6904
  }
6882
- function ua(e) {
6905
+ function fa(e) {
6883
6906
  return e.id;
6884
6907
  }
6885
- function da(e) {
6908
+ function pa(e) {
6886
6909
  return !i.fromInput(e);
6887
6910
  }
6888
- function fa(e) {
6911
+ function ma(e) {
6889
6912
  return e.id;
6890
6913
  }
6891
- function pa(e) {
6914
+ function ha(e) {
6892
6915
  n.error("Failed to request fullscreen", e);
6893
6916
  }
6894
6917
  //#endregion
6895
- export { ia as CellOutputBlock, ea as deckSlideType, ca as default, oa as parkedRendersSource, $i as shouldShowCode, Ki as syncCodeToggleKeyBinding, ta as useParkedPreview };
6918
+ export { oa as CellOutputBlock, na as deckSlideType, ua as default, ca as parkedRendersSource, ta as shouldShowCode, Ji as syncCodeToggleKeyBinding, ra as useParkedPreview };