@marimo-team/islands 0.25.3-dev99 → 0.26.1-dev0

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 (1005) hide show
  1. package/dist/{ConnectedDataExplorerComponent-Dhf5EGs5.js → ConnectedDataExplorerComponent-DtwVgVpX.js} +190 -214
  2. package/dist/ErrorBoundary-BAPXZkp8.js +213 -0
  3. package/dist/{ImageComparisonComponent-uU8FSKZE.js → ImageComparisonComponent-CoiwlCwG.js} +20 -20
  4. package/dist/{Plot-DdYOe1UK.js → Plot-BHJLG4xm.js} +2474 -3107
  5. package/dist/_baseSet-Bd5zh2yg.js +327 -0
  6. package/dist/{abnfDiagram-VCTEODGH-Di400kYu.js → abnfDiagram-VCTEODGH-BbZOIueZ.js} +5 -5
  7. package/dist/{any-language-editor-k2B8YI3Y.js → any-language-editor-yG-YmLaK.js} +9 -9
  8. package/dist/{apl-GEW9-ZP1.js → apl-stFrI2NB.js} +1 -1
  9. package/dist/{arc-7ra3iNdN.js → arc-4W6H62B5.js} +1 -1
  10. package/dist/architecture-7GRP2DOG-GlkXha5_.js +2 -0
  11. package/dist/{architectureDiagram-5GKGNRK7-BdTJcsNJ.js → architectureDiagram-5GKGNRK7-qjLjxapm.js} +48 -64
  12. package/dist/{arrays-R6JsImiT.js → arrays-DoQ-AILx.js} +7 -27
  13. package/dist/{asciiarmor-BWNxzkG7.js → asciiarmor-DHwFuaIC.js} +1 -1
  14. package/dist/{asn1-Bcn2QutK.js → asn1-KIH4fwAq.js} +1 -1
  15. package/dist/assertNever-DywGMo-S.js +507 -0
  16. package/dist/assets/__vite-browser-external-DZv_7F5P.js +1 -0
  17. package/dist/assets/worker-cHYZNFD4.js +171 -0
  18. package/dist/{blockDiagram-I7D4REHJ-Cg25UrxT.js → blockDiagram-I7D4REHJ-BoCyD5KO.js} +28 -39
  19. package/dist/{brainfuck-BQCYDheZ.js → brainfuck-UPAij4U9.js} +1 -1
  20. package/dist/{button-BxB3RDjN.js → button-qQhINE7z.js} +63 -63
  21. package/dist/{c4Diagram-7LVT6UL2-BxFgrnNV.js → c4Diagram-7LVT6UL2-DmcTtm4p.js} +8 -8
  22. package/dist/{capabilities-BgR0osfN.js → capabilities-DKqMqBzm.js} +2 -2
  23. package/dist/{channel-CPObtJXj.js → channel-B9eaiezW.js} +1 -1
  24. package/dist/{chat-ui-BIgPxfPP.js → chat-ui-D5YPIONI.js} +3110 -2917
  25. package/dist/{check-P35dc2dH.js → check-jchHMCfs.js} +1 -1
  26. package/dist/{chunk-4HAMMTFA-D4eFPyFh.js → chunk-4HAMMTFA-qKgadZwy.js} +6 -6
  27. package/dist/{chunk-75Z2AOVW-D7gxIs2Q.js → chunk-75Z2AOVW-76L6My3P.js} +4 -4
  28. package/dist/{chunk-YOKDWASO-DKplTrBY.js → chunk-7TTQLYRW-DBSfUUe5.js} +6253 -5835
  29. package/dist/{chunk-DU6HZSFF-BwiyaNpg.js → chunk-DU6HZSFF-4SDIhUTY.js} +14 -22
  30. package/dist/{chunk-F27PBJKO-ufseIn5y.js → chunk-F27PBJKO-COH2t-FO.js} +3 -3
  31. package/dist/{chunk-FOHPRMQF-BpYR8RqP.js → chunk-FOHPRMQF-ezmr_yWy.js} +49 -58
  32. package/dist/{chunk-GMAD6QVW-BhaJx0X3.js → chunk-GMAD6QVW-BJGF8QZL.js} +16 -75
  33. package/dist/{chunk-GVQU2GXP-Cwbt-lF0.js → chunk-GVQU2GXP-BkolpSXU.js} +3 -3
  34. package/dist/{chunk-IMKFNOWR-mtD7aJBw.js → chunk-IMKFNOWR-BzDY1_I7.js} +8 -8
  35. package/dist/{chunk-L3NEJ4N5-n-zgIVSy.js → chunk-L3NEJ4N5-B-BFQp9t.js} +6 -6
  36. package/dist/{chunk-OSK3NFVY-DXa-Cxbn.js → chunk-OSK3NFVY-BzfZ4VBG.js} +8 -8
  37. package/dist/{chunk-P2QGCYS3-B_Zd3-X0.js → chunk-P2QGCYS3-DJApLVdt.js} +1 -1
  38. package/dist/{chunk-POPQ4Y6H-hYOXbYH_.js → chunk-POPQ4Y6H-BFSZel4w.js} +2 -2
  39. package/dist/{chunk-PWAF6VOD-CQw5qATZ.js → chunk-PWAF6VOD-CRu_RGP2.js} +2 -2
  40. package/dist/{chunk-SHT3W25Y-DybB1ShH.js → chunk-SHT3W25Y-DbHsMKdo.js} +10 -10
  41. package/dist/{chunk-SVP7TREG-DNhhdCex.js → chunk-SVP7TREG-CtwnwAE6.js} +3 -3
  42. package/dist/{chunk-TICWLB2K-NhAQhlDf.js → chunk-TICWLB2K-C5Z5QMbO.js} +10 -10
  43. package/dist/{chunk-XXDRQBXY-Dnl5VBqG.js → chunk-XXDRQBXY-BM-YIt-_.js} +1 -1
  44. package/dist/classDiagram-ZZMXUADV-B8E5Hn78.js +30 -0
  45. package/dist/classDiagram-v2-VYDZK3BY-DeGsK9bT.js +30 -0
  46. package/dist/{clike-CxK9W55Z.js → clike-xU8sCVU1.js} +2 -6
  47. package/dist/{clojure-Dzcvwpxk.js → clojure-psoSEo36.js} +1 -1
  48. package/dist/{cmake-DYr-71zp.js → cmake-DDHBwlE7.js} +1 -1
  49. package/dist/{cobol-DC3g37Kq.js → cobol-C4qjDcIq.js} +1 -1
  50. package/dist/code-visibility-Ebrgx-u3.js +130 -0
  51. package/dist/{coffeescript-C-eFwH5N.js → coffeescript-D6UgrGgo.js} +1 -1
  52. package/dist/{common-iaqaS3Sy.js → common-Capdc2h_.js} +10975 -10314
  53. package/dist/{commonlisp-CyaNXrJR.js → commonlisp-B0ChVjnu.js} +1 -1
  54. package/dist/{compiler-runtime-CldRdSsv.js → compiler-runtime-C5KHtL5D.js} +3 -3
  55. package/dist/{toDate-DKH0_kMo.js → config-qTaTHnpE.js} +96 -180
  56. package/dist/{copy-icon-CPoxUG7G.js → copy-icon-BI7vZHEW.js} +46 -41
  57. package/dist/{cose-bilkent-JH36ORCC-_LyRKVqm.js → cose-bilkent-JH36ORCC-B_Oz4vMP.js} +58 -71
  58. package/dist/createReducer-DdSLRfBT.js +67 -0
  59. package/dist/{crystal-ih5ax5tQ.js → crystal-DZsc9Ue0.js} +1 -1
  60. package/dist/{css-CN_wP7_R.js → css-DkYRnQ9U.js} +1 -1
  61. package/dist/{cubic-OaEBhQPK.js → cubic-CA80xY_e.js} +6 -7
  62. package/dist/cynefin-OW5HDTMX-0-HehVvH.js +2 -0
  63. package/dist/{cynefinDiagram-5FMLGOSQ-CX22wa7c.js → cynefinDiagram-5FMLGOSQ-NDedRwsw.js} +5 -5
  64. package/dist/{cypher-CqGRcmZo.js → cypher-CpWPqgvy.js} +1 -1
  65. package/dist/{cytoscape.esm-jJhXJpLB.js → cytoscape.esm-BbeMznK5.js} +411 -512
  66. package/dist/{d-Cj0sOW2z.js → d-Bx2ggfYO.js} +1 -1
  67. package/dist/{dagre-BGSfXNEb.js → dagre-CpjuekF1.js} +550 -700
  68. package/dist/{dagre-GXQ25YYZ-Df6Pp-cl.js → dagre-GXQ25YYZ-De0sSZO7.js} +14 -16
  69. package/dist/{data-grid-overlay-editor-C_cWoUm0.js → data-grid-overlay-editor-CErEC4xn.js} +8 -8
  70. package/dist/{data-grid-types-0PJ-9N5n.js → data-grid-types-DIX_pCco.js} +2 -2
  71. package/dist/{debounce-C3jyATpc.js → debounce-DrhhziJv.js} +2 -2
  72. package/dist/{diagram-S7CK7UJ4-CctU9kVx.js → diagram-S7CK7UJ4-wBtVl61y.js} +7 -15
  73. package/dist/{diagram-UQ7AKVKN-FVHjCF9j.js → diagram-UQ7AKVKN-CKWE3c1T.js} +5 -5
  74. package/dist/{diagram-VSXAHHWV-BJWcVVJY.js → diagram-VSXAHHWV-LXjisZoM.js} +6 -6
  75. package/dist/{diagram-VX7I27RA-BSDbwFFv.js → diagram-VX7I27RA-D2Ac5198.js} +7 -7
  76. package/dist/{diagram-Z3DM3KII-BX8kW7Nc.js → diagram-Z3DM3KII-CYaFOQcI.js} +5 -5
  77. package/dist/{dialog-C1PcpCqX.js → dialog-Ic6dh09m.js} +25 -25
  78. package/dist/{diff-B_hUkiat.js → diff-DNXaJS8v.js} +1 -1
  79. package/dist/{dist-Bvs24R_E.js → dist-B1qu3Bez.js} +55 -54
  80. package/dist/{dist-D-wwqlzJ.js → dist-BEcpQbZa.js} +78 -77
  81. package/dist/{dist-CrSP_H1M.js → dist-BMz__bo5.js} +317 -317
  82. package/dist/{dist-Cg7gzw-a.js → dist-BagHbFqG.js} +70 -69
  83. package/dist/{dist-C8fAKSH1.js → dist-BdUitvVW.js} +65 -64
  84. package/dist/{dist-BuaRHxOc.js → dist-BfrgytDR.js} +45 -44
  85. package/dist/{dist-CSJ0MDRw.js → dist-BozTF_gH.js} +56 -55
  86. package/dist/{dist-DiDibOYr.js → dist-BreKIQqQ.js} +149 -148
  87. package/dist/{dist-CN8zI-XC.js → dist-BsE4gQHj.js} +555 -555
  88. package/dist/{dist-F8Ep36rk.js → dist-BunZKA_9.js} +60 -59
  89. package/dist/dist-BvZpdAuG.js +850 -0
  90. package/dist/{dist-DUAh96QY.js → dist-CB9MzCXv.js} +1 -1
  91. package/dist/{dist-BK4Oj99o.js → dist-CDVvitRS.js} +18 -17
  92. package/dist/{dist-CN_BeG2I.js → dist-CEomphG1.js} +59 -58
  93. package/dist/{dist-BMQf5zIS.js → dist-ChcBm3jk.js} +166 -165
  94. package/dist/{dist-Lm-D-Vr6.js → dist-CiSkXlAO.js} +3 -3
  95. package/dist/{dist-D6d86eNJ.js → dist-Cshl6jBw.js} +46 -45
  96. package/dist/{dist-DBtSl3sf.js → dist-D1D56-GS.js} +54 -56
  97. package/dist/{dist-DoE4XJBC.js → dist-D92tYjLc.js} +9845 -10688
  98. package/dist/{dist-OR1OnN-y.js → dist-D95Cd4xm.js} +53 -52
  99. package/dist/{dist-BorMD-uX.js → dist-DNkrY12t.js} +94 -93
  100. package/dist/{dist-BLfKmR-l.js → dist-DneeBk3K.js} +18 -17
  101. package/dist/{dist-diIx5qJW.js → dist-DpYpG8Yc.js} +37 -36
  102. package/dist/{dist-CkTTIdBe.js → dist-MggMo7OR.js} +243 -243
  103. package/dist/{dist-PXYI_yuP.js → dist-ObeTgSmf.js} +27 -26
  104. package/dist/{dist-CLdpGQVr.js → dist-OmeAz0fR.js} +114 -116
  105. package/dist/{dist-CSbh1PNP.js → dist-TGSwzj8a.js} +26 -25
  106. package/dist/dropdown-menu-Dhv4fcNl.js +5982 -0
  107. package/dist/{dtd-B8FGSWWe.js → dtd-D1YZQCVT.js} +1 -1
  108. package/dist/duckdb-keywords-CdzX4o33.js +3 -0
  109. package/dist/{dylan-DbIBYIrw.js → dylan-CxbG-PUm.js} +2 -2
  110. package/dist/{ebnfDiagram-PWID7BFC-DtapdLet.js → ebnfDiagram-PWID7BFC-Ds7f42dj.js} +5 -5
  111. package/dist/{ecl-DBmkdWAd.js → ecl-DIXH6vul.js} +1 -1
  112. package/dist/{eiffel-CcWSDDzK.js → eiffel-D0de-eQr.js} +1 -1
  113. package/dist/{elm-MC-b8a6C.js → elm-DrQrn4VD.js} +1 -1
  114. package/dist/{erDiagram-RLTQ6QDP-BAru9jHt.js → erDiagram-RLTQ6QDP-b58Sz2Mc.js} +14 -14
  115. package/dist/{erlang-AdO1-xtV.js → erlang-2KpKpfC7.js} +1 -1
  116. package/dist/{error-banner-Sl2FlSJ4.js → error-banner-CJVLr5_a.js} +147 -147
  117. package/dist/error-entries-BKlEsuk4.js +3255 -0
  118. package/dist/{esm-D2gTsXEV.js → esm-B9n0caHs.js} +643 -644
  119. package/dist/{esm-AMFssoNp.js → esm-Bwp_FHP0.js} +331 -331
  120. package/dist/{esm-G4Fhsgng.js → esm-DQtHTnHn.js} +640 -660
  121. package/dist/eventmodeling-NTZA5JFV-DoBvB4Lj.js +2 -0
  122. package/dist/{factor-Ys-13HOP.js → factor-Bwu3ZGOk.js} +1 -1
  123. package/dist/feedback-button-Bxokl7c-.js +370 -0
  124. package/dist/flowDiagram-HODETNUW-BH9U7VZK.js +15 -0
  125. package/dist/{formats-V8ifA0Bk.js → formats-BLNFWWhV.js} +9 -9
  126. package/dist/{forth-DiMuIXFe.js → forth-DYatDpr6.js} +2 -3
  127. package/dist/{fortran-hkrF2eM4.js → fortran-n8mcQPkL.js} +1 -1
  128. package/dist/{ganttDiagram-EL5Y4UJY-Dh_4cBJZ.js → ganttDiagram-EL5Y4UJY-YzTghq1V.js} +17 -17
  129. package/dist/{gas-DlhqN9k8.js → gas-BUZOHBVw.js} +1 -1
  130. package/dist/{gherkin-0SlhEZ3t.js → gherkin-CrSjX26K.js} +1 -1
  131. package/dist/gitGraph-4MIJSDKK-Ch7kj-d2.js +2 -0
  132. package/dist/{gitGraphDiagram-WWUBYQGX-D5nSIzdE.js → gitGraphDiagram-WWUBYQGX-CK66dT35.js} +4 -4
  133. package/dist/{glide-data-editor-BtpcH-zL.js → glide-data-editor-DkbmoSoO.js} +6717 -2965
  134. package/dist/{glide-utils-Bt8_pBa2.js → glide-utils-Cn2_NadX.js} +109 -78
  135. package/dist/{globals-BJP2vdQ8.js → globals-BZH2TwVV.js} +3 -3
  136. package/dist/{graphlib-BmY_CCV9.js → graphlib-nlwT3Wvy.js} +177 -220
  137. package/dist/{groovy-YhcTMyvX.js → groovy-IgGNjeU9.js} +1 -1
  138. package/dist/hasIn-C20JsQ2m.js +28 -0
  139. package/dist/{haskell-CodLxrtT.js → haskell-Bs1k3a9s.js} +1 -1
  140. package/dist/{haxe-CiRWNFkH.js → haxe-CQ8Yb3XF.js} +1 -1
  141. package/dist/highlighted-body-JLMTFACH-yt0ZZn80.js +42 -0
  142. package/dist/{error-entries-TAO6kEhF.js → html-to-image-CNM0ZSFD.js} +26321 -26406
  143. package/dist/{idl-DZgBq75I.js → idl-DjnxoAWx.js} +1 -1
  144. package/dist/info-A6RAGUB7-DCz_Egh9.js +2 -0
  145. package/dist/{infoDiagram-27XIBGKW-B1hmUggC.js → infoDiagram-27XIBGKW-xbjwrcNi.js} +4 -4
  146. package/dist/isArrayLikeObject-B-HXCsex.js +626 -0
  147. package/dist/isEmpty-CdX7MTE1.js +14 -0
  148. package/dist/{ishikawaDiagram-5VMMS53U-DUeT3t-d.js → ishikawaDiagram-5VMMS53U-DKtukhGS.js} +5 -7
  149. package/dist/{javascript-BfNytHiM.js → javascript-BQtCoAFy.js} +2 -2
  150. package/dist/{journeyDiagram-3NMN7TZE-BaLqn-dZ.js → journeyDiagram-3NMN7TZE-CYXsL3IE.js} +4 -4
  151. package/dist/{jsx-runtime-3BD1kT0s.js → jsx-runtime-D8btoEHk.js} +2 -2
  152. package/dist/{julia--tLIAG7q.js → julia-BfgtHJE5.js} +1 -1
  153. package/dist/{kanban-definition-UXKFOSKX-DEUnNNgc.js → kanban-definition-UXKFOSKX-BEhlkZBb.js} +10 -10
  154. package/dist/{katex-BIdZGsyO.js → katex-wAapZGrX.js} +793 -724
  155. package/dist/linear-TJTTbHM9.js +203 -0
  156. package/dist/{livescript-CVPfYnY_.js → livescript-gIdRPKtg.js} +1 -1
  157. package/dist/{loader-Bm8cy3e8.js → loader-Bin_dutt.js} +12 -12
  158. package/dist/lru-0OWJJMrW.js +41 -0
  159. package/dist/{lua-4Fa-T-qq.js → lua-CxFpWvnv.js} +2 -2
  160. package/dist/main.js +11758 -9367
  161. package/dist/{mathematica-CtYAy6GG.js → mathematica-QSveeEoW.js} +1 -1
  162. package/dist/{mbox-D0w9Ah1C.js → mbox-2JtaCPNT.js} +1 -1
  163. package/dist/{mermaid-B0fXpsNP.js → mermaid-D1CZDNoB.js} +1195 -1182
  164. package/dist/mermaid-WFAXDIZX-DHB2z13u.js +1 -0
  165. package/dist/{mermaid-parser.core-DxuSfYwJ.js → mermaid-parser.core-DtOnl7m4.js} +19 -25
  166. package/dist/{mhchem-CdWPJK6g.js → mhchem-CX8M7Ktl.js} +1 -1
  167. package/dist/{micromark-factory-space-DGxAzmw8.js → micromark-factory-space-C5soVmaM.js} +1 -1
  168. package/dist/{mindmap-definition-YA3MSWOX-CPexlhDQ.js → mindmap-definition-YA3MSWOX-DQcnJPcV.js} +13 -13
  169. package/dist/{mirc-De9aSAZM.js → mirc-BqD6ade4.js} +1 -1
  170. package/dist/{mllike-BbugeaY_.js → mllike-CT0hgEOO.js} +1 -1
  171. package/dist/{modelica-BjJwWw1F.js → modelica-DKKebcvq.js} +1 -1
  172. package/dist/{mscgen-DwiRH5ma.js → mscgen-BJCCsWjR.js} +1 -1
  173. package/dist/{mumps--plbDM9o.js → mumps-DVQAXZkU.js} +1 -1
  174. package/dist/{nginx-C4Df7REc.js → nginx-AP4LH2NN.js} +1 -1
  175. package/dist/{node-sql-parser-BiZOJ-FS.js → node-sql-parser-C9dndbfr.js} +7184 -7195
  176. package/dist/{now-jM8-M7IR.js → now-BKZCLE5P.js} +12 -13
  177. package/dist/{nsis-fiiOqLc3.js → nsis-Cah9xkdT.js} +1 -1
  178. package/dist/{ntriples-jV77I4k8.js → ntriples-CQoaLOV6.js} +2 -2
  179. package/dist/{number-overlay-editor-CTy6GMzT.js → number-overlay-editor-CkRxchEC.js} +17 -22
  180. package/dist/{octave-Cztd01tF.js → octave-CeDj2bTn.js} +1 -1
  181. package/dist/{once-eG8Vmvjd.js → once-NnpX_HnX.js} +1 -1
  182. package/dist/{oz-Bl8o3BDl.js → oz-BksQrg3k.js} +1 -1
  183. package/dist/packet-AYTQ26CC-DEMHgLPq.js +2 -0
  184. package/dist/{pascal-BO5JqysR.js → pascal-BKL17mpl.js} +1 -1
  185. package/dist/{pegDiagram-XKGWAZYB-CMpp1OOQ.js → pegDiagram-XKGWAZYB-BFQuPYfI.js} +5 -5
  186. package/dist/pencil-DVYzq-iR.js +10 -0
  187. package/dist/{perl-Drlh9s6m.js → perl-CacqJ-Ss.js} +1 -1
  188. package/dist/pick-DgpAbcwP.js +35 -0
  189. package/dist/pie-WAS4IAKB-DMjTEeHd.js +2 -0
  190. package/dist/{pieDiagram-E7YTZNPT-DlMWg5t1.js → pieDiagram-E7YTZNPT-l7aqNrem.js} +7 -7
  191. package/dist/{pig-BWGR8wZw.js → pig-CXSGZ_K9.js} +1 -1
  192. package/dist/{powershell-DT99xlz_.js → powershell-DY_yIxBM.js} +3 -6
  193. package/dist/precisionRound-DMIVQrt2.js +97 -0
  194. package/dist/{process-output-DD-oSvZk.js → process-output-DthYR2Te.js} +19 -30
  195. package/dist/{properties-Q-rkxld0.js → properties-Om0IDE07.js} +1 -1
  196. package/dist/{protobuf-DKyWZbs7.js → protobuf-B8nxxb4Q.js} +1 -1
  197. package/dist/{pug-42ZJUbEC.js → pug-lkUBPvVS.js} +3 -7
  198. package/dist/{puppet-B4UozHhh.js → puppet-DMkXsi4d.js} +1 -1
  199. package/dist/purify.es-DmnrIjg4.js +877 -0
  200. package/dist/{python-DREjAV__.js → python-JQVycMgr.js} +1 -1
  201. package/dist/{q-Bi63IpBO.js → q-DqE__nNB.js} +1 -1
  202. package/dist/{quadrantDiagram-AXDQQJYC-Blrm7V7_.js → quadrantDiagram-AXDQQJYC-nGFBFig7.js} +3 -3
  203. package/dist/{r-DSwXWKMR.js → r-Cbliap7Q.js} +1 -1
  204. package/dist/radar-RG4KPBEZ-9PwdCvai.js +2 -0
  205. package/dist/railroad-74A4TZTK-8N9kF5jl.js +2 -0
  206. package/dist/railroad-abnf-HS5TGJTU-Sg6YmzlR.js +2 -0
  207. package/dist/railroad-ebnf-LZEXJU2U-CYwp2Oee.js +2 -0
  208. package/dist/railroad-peg-WCYAUIDC-BfDkAuQ3.js +2 -0
  209. package/dist/{railroadDiagram-O6MQD6OU-DBJfseeO.js → railroadDiagram-O6MQD6OU-6R3C1lwQ.js} +5 -5
  210. package/dist/{react-sHtZdjeP.js → react-Bgs_wQh3.js} +3 -3
  211. package/dist/{react-dom-DUmH0GXv.js → react-dom-DdqGVp5N.js} +5 -5
  212. package/dist/{react-vega-C4T9Rb_w.js → react-vega-CGgQEf0O.js} +13800 -17236
  213. package/dist/{requirementDiagram-BXWQKSXE-BC7V639r.js → requirementDiagram-BXWQKSXE-DdWYu8fn.js} +13 -13
  214. package/dist/{reveal-component-C7puatnn.js → reveal-component-YJ4y0XIg.js} +1003 -1117
  215. package/dist/{rolldown-runtime-Cb76FRpK.js → rolldown-runtime-BPCzCO3I.js} +1 -1
  216. package/dist/{rpm-DPb1DeKM.js → rpm-DmT_LNpE.js} +1 -1
  217. package/dist/{ruby-U7fZA4DP.js → ruby-BHVZTtLW.js} +1 -1
  218. package/dist/{sankeyDiagram-P5KCCOFB-ELvOcnZH.js → sankeyDiagram-P5KCCOFB-CrOfyc2n.js} +2 -2
  219. package/dist/{sas-CLk1JpTn.js → sas-CrG5N1he.js} +1 -1
  220. package/dist/{scheme-CT-2k2Tl.js → scheme-BHUnz-IB.js} +1 -1
  221. package/dist/select-CDUxhHZg.js +1198 -0
  222. package/dist/{sequenceDiagram-WJ2MYXX4-CgesU6F-.js → sequenceDiagram-WJ2MYXX4-Dzp0dgRc.js} +6 -6
  223. package/dist/{shell-BLO7fcsk.js → shell-C5IBmRU5.js} +1 -1
  224. package/dist/{sieve-nG3C7WNH.js → sieve-BzCnt_E6.js} +2 -2
  225. package/dist/{sizeCapture-INFHLROL-Dx5SpkQF.js → sizeCapture-INFHLROL-DBeZ20mI.js} +1 -1
  226. package/dist/{smalltalk-BROcZybA.js → smalltalk-DQFAQul3.js} +1 -1
  227. package/dist/{solr-mVltHNc5.js → solr-BiapYPCk.js} +1 -1
  228. package/dist/{sparql-Cv1Ksr4v.js → sparql-BcUKO1is.js} +1 -1
  229. package/dist/{spec-CcT0slVc.js → spec-ZAt4P01J.js} +84 -57
  230. package/dist/{src-CA_m4ONl.js → src-D5uZaZib.js} +8 -14
  231. package/dist/{stateDiagram-D77RDMKH-lH_BUhs3.js → stateDiagram-D77RDMKH-BGnTUhFJ.js} +18 -18
  232. package/dist/stateDiagram-v2-MP3YSRHH-DsJbmDf1.js +30 -0
  233. package/dist/static-state-C4bAlKTU.js +68 -0
  234. package/dist/{stex-Btf3omL8.js → stex-CQ_aCGTF.js} +1 -1
  235. package/dist/style.css +1 -1
  236. package/dist/{stylus-Dt4VvLXL.js → stylus-D4gHF5lg.js} +1 -1
  237. package/dist/{swift-DHsn_CVI.js → swift-CnvIBnbt.js} +1 -1
  238. package/dist/{swimlanes-42K2YHIH-Cuf9B9kE.js → swimlanes-42K2YHIH-Bd4Bzh9r.js} +37 -59
  239. package/dist/swimlanesDiagram-VR7AAH4N-BlY12Jf6.js +30 -0
  240. package/dist/{swiper-component-DfhRvAFi.js → swiper-component-DTdNB9wg.js} +45 -78
  241. package/dist/{tcl-CV0OLBOl.js → tcl-DkOjjZYO.js} +1 -1
  242. package/dist/{textile-D320oKVM.js → textile-DgzBVSEW.js} +1 -1
  243. package/dist/{tiki-BF2aDPlB.js → tiki-MighF8A_.js} +1 -1
  244. package/dist/{time-BaMbJs4z.js → time-BlOl70lB.js} +19 -19
  245. package/dist/{timeline-definition-24CTP7MA-yzzw4TF4.js → timeline-definition-24CTP7MA-m0LanyCH.js} +5 -5
  246. package/dist/toast-U3NpO2x3.js +491 -0
  247. package/dist/{toml-CaUN7UHo.js → toml-B0B7UAba.js} +1 -1
  248. package/dist/{tooltip-CKO1pHJo.js → tooltip-UzJukb3F.js} +336 -312
  249. package/dist/treeView-Q6P3EWNA-BQywp0E1.js +2 -0
  250. package/dist/treemap-WGGIJYW6-P2ZJnldw.js +2 -0
  251. package/dist/{troff-DQUFcClZ.js → troff-B4IRX71y.js} +1 -1
  252. package/dist/{ttcn-CQL1duJS.js → ttcn-B4tpvdJD.js} +1 -1
  253. package/dist/{ttcn-cfg-BMmEFJPu.js → ttcn-cfg-pfE-1FV8.js} +1 -1
  254. package/dist/{turtle-C3esgsRr.js → turtle-Bc97ufp6.js} +1 -1
  255. package/dist/use-restore-focus-DaTVz6S6.js +7672 -0
  256. package/dist/{use-vega-container-remeasure-Bz4PZMtt.js → use-vega-container-remeasure-BrUpWQfF.js} +4 -8
  257. package/dist/{useAsyncData-D0mLJstx.js → useAsyncData-P5-Oovhq.js} +7 -7
  258. package/dist/{useDateFormatter-c_yJtkAe.js → useDateFormatter-LQNtoXyh.js} +5 -5
  259. package/dist/useDeepCompareMemoize-CmNbQ9TT.js +53 -0
  260. package/dist/useEvent-BoN7U38T.js +19 -0
  261. package/dist/{useIframeCapabilities-BkdeVdXC.js → useIframeCapabilities-HTZiVlGV.js} +2 -2
  262. package/dist/useLifecycle-DTMczKkf.js +112 -0
  263. package/dist/{vb-RK1eDXRl.js → vb-C5kpOY_q.js} +1 -1
  264. package/dist/{vbscript-BCOeM0de.js → vbscript-Ck0hgOg5.js} +1 -1
  265. package/dist/{vega-component-DgytCKrL.js → vega-component-ZTdbCcwI.js} +221 -227
  266. package/dist/{vega-embed-container--LYZqguO.js → vega-embed-container-DgpACsCB.js} +7 -7
  267. package/dist/{vega-loader.browser-B9Pz0EGP.js → vega-loader.browser-Co9gYE8Z.js} +637 -294
  268. package/dist/{velocity-CZKOFbOI.js → velocity-2Doc6dgJ.js} +1 -1
  269. package/dist/{vennDiagram-4TSXK5OY-eJOrTqqC.js → vennDiagram-4TSXK5OY-BJ7vqDmn.js} +4 -4
  270. package/dist/{verilog-DqQTzVn8.js → verilog-CmZmYe4R.js} +2 -2
  271. package/dist/{vhdl-vQr2bfmi.js → vhdl-esMnUHZm.js} +1 -1
  272. package/dist/wardley-WFR3VGLG-CIBJ6O2G.js +2 -0
  273. package/dist/{wardleyDiagram-VM6X3IG4-TILPvee6.js → wardleyDiagram-VM6X3IG4-D5kWacsn.js} +5 -5
  274. package/dist/{webidl-DzX7N40e.js → webidl-G_RlXG7G.js} +1 -1
  275. package/dist/{xquery-Cw_Q_hGR.js → xquery-IUQpMoMl.js} +1 -1
  276. package/dist/{xychartDiagram-S5SC5T6Z-DUPvRwwJ.js → xychartDiagram-S5SC5T6Z-gr15Ws_z.js} +8 -8
  277. package/dist/{yacas-DiC4jJBE.js → yacas-ObL0t2h9.js} +1 -1
  278. package/dist/{z80-CUOQDEJO.js → z80-jyuJhy0k.js} +1 -1
  279. package/package.json +38 -42
  280. package/src/__mocks__/document.tsx +64 -0
  281. package/src/__mocks__/executions.ts +301 -0
  282. package/src/__mocks__/notebook.ts +39 -46
  283. package/src/__mocks__/partial.ts +26 -0
  284. package/src/__mocks__/requests.ts +2 -8
  285. package/src/__tests__/CellStatus.test.tsx +25 -26
  286. package/src/__tests__/fixtures/pair-config.ts +1 -1
  287. package/src/__tests__/main.test.tsx +24 -1
  288. package/src/__tests__/module-entry.test.ts +44 -0
  289. package/src/__tests__/mount.test.ts +17 -58
  290. package/src/__tests__/{host-imports.test.ts → replica-imports.test.ts} +11 -11
  291. package/src/components/ai/__tests__/ai-model-dropdown.test.tsx +63 -0
  292. package/src/components/ai/__tests__/ai-utils.test.ts +8 -0
  293. package/src/components/ai/ai-model-dropdown.tsx +11 -6
  294. package/src/components/app-config/__tests__/add-model-discovery.test.tsx +255 -0
  295. package/src/components/app-config/__tests__/model-discovery.test.tsx +183 -0
  296. package/src/components/app-config/__tests__/state.test.tsx +50 -0
  297. package/src/components/app-config/ai-config.tsx +200 -187
  298. package/src/components/app-config/app-config-button.tsx +6 -5
  299. package/src/components/app-config/app-config-form.tsx +5 -9
  300. package/src/components/app-config/common.tsx +7 -9
  301. package/src/components/app-config/data-form.tsx +113 -116
  302. package/src/components/app-config/get-dirty-values.ts +4 -4
  303. package/src/components/app-config/mcp-config.tsx +30 -53
  304. package/src/components/app-config/model-discovery.tsx +157 -0
  305. package/src/components/app-config/model-provider-config.ts +25 -0
  306. package/src/components/app-config/state.ts +2 -0
  307. package/src/components/app-config/user-config-form.css +91 -0
  308. package/src/components/app-config/user-config-form.tsx +278 -350
  309. package/src/components/chat/__tests__/capabilities-popover.test.tsx +0 -1
  310. package/src/components/chat/__tests__/chat-display.test.tsx +196 -0
  311. package/src/components/chat/__tests__/chat-markdown.test.tsx +43 -0
  312. package/src/components/chat/__tests__/chat-utils.test.ts +141 -1
  313. package/src/components/chat/__tests__/message-queue.test.tsx +94 -1
  314. package/src/components/chat/__tests__/notebook-access-selector.test.tsx +64 -0
  315. package/src/components/chat/__tests__/notebook-context.test.ts +199 -0
  316. package/src/components/chat/__tests__/pending-chat-prompt.test.tsx +568 -0
  317. package/src/components/chat/__tests__/turn-timing.test.ts +84 -0
  318. package/src/components/chat/__tests__/use-assistant-turn.test.ts +95 -0
  319. package/src/components/chat/__tests__/useFileState.test.tsx +176 -15
  320. package/src/components/chat/__tests__/user-message.test.tsx +27 -0
  321. package/src/components/chat/acp/__tests__/agent-panel-initialization.test.tsx +1 -1
  322. package/src/components/chat/acp/__tests__/agent-panel.test.tsx +22 -17
  323. package/src/components/chat/acp/__tests__/session-tabs.test.tsx +43 -0
  324. package/src/components/chat/acp/agent-panel.tsx +6 -3
  325. package/src/components/chat/acp/blocks.tsx +11 -10
  326. package/src/components/chat/acp/common.tsx +4 -5
  327. package/src/components/chat/acp/model-selector.tsx +1 -1
  328. package/src/components/chat/acp/session-tabs.tsx +8 -3
  329. package/src/components/chat/agent-activity.tsx +132 -0
  330. package/src/components/chat/capabilities-popover.tsx +2 -11
  331. package/src/components/chat/chat-components.tsx +10 -6
  332. package/src/components/chat/chat-display.tsx +131 -57
  333. package/src/components/chat/chat-history-popover.tsx +6 -1
  334. package/src/components/chat/chat-markdown.tsx +15 -0
  335. package/src/components/chat/chat-panel.tsx +422 -358
  336. package/src/components/chat/chat-typography.css +108 -0
  337. package/src/components/chat/chat-utils.ts +168 -61
  338. package/src/components/chat/notebook-access-selector.stories.tsx +22 -0
  339. package/src/components/chat/notebook-access-selector.tsx +100 -0
  340. package/src/components/chat/notebook-context.ts +80 -0
  341. package/src/components/chat/tool-call/__tests__/tool-labels.test.ts +76 -0
  342. package/src/components/chat/tool-call/__tests__/tool-step.test.tsx +57 -0
  343. package/src/components/chat/tool-call/shared.ts +6 -0
  344. package/src/components/chat/tool-call/tool-call-view.tsx +22 -76
  345. package/src/components/chat/tool-call/tool-labels.ts +172 -0
  346. package/src/components/chat/tool-call/tool-result.tsx +1 -1
  347. package/src/components/chat/tool-call/tool-step.tsx +145 -0
  348. package/src/components/chat/turn-timing.ts +73 -0
  349. package/src/components/chat/use-assistant-turn.ts +65 -0
  350. package/src/components/chat/use-chat-generation.ts +20 -0
  351. package/src/components/chat/user-message.tsx +154 -0
  352. package/src/components/data-table/TableBottomBar.tsx +4 -1
  353. package/src/components/data-table/TableTopBar.tsx +2 -0
  354. package/src/components/data-table/__tests__/chart-spec-model.test.ts +195 -195
  355. package/src/components/data-table/__tests__/data-table.test.tsx +1 -0
  356. package/src/components/data-table/__tests__/keyboard-selection.test.tsx +188 -0
  357. package/src/components/data-table/__tests__/pagination.test.tsx +28 -1
  358. package/src/components/data-table/charts/__tests__/altair-generator.test.ts +42 -27
  359. package/src/components/data-table/charts/__tests__/spec-snapshot.test.ts +20 -20
  360. package/src/components/data-table/charts/__tests__/spec.test.ts +78 -52
  361. package/src/components/data-table/charts/chart-spec/altair-generator.ts +2 -6
  362. package/src/components/data-table/charts/chart-spec/spec.ts +68 -43
  363. package/src/components/data-table/charts/charts.tsx +5 -5
  364. package/src/components/data-table/column-formatting/types.ts +1 -2
  365. package/src/components/data-table/column-summary/chart-spec-model.tsx +23 -16
  366. package/src/components/data-table/data-table.tsx +10 -0
  367. package/src/components/data-table/pagination.tsx +44 -33
  368. package/src/components/data-table/range-focus/atoms.ts +4 -6
  369. package/src/components/data-table/range-focus/use-cell-range-selection.ts +65 -38
  370. package/src/components/data-table/range-focus/use-scroll-into-view.ts +21 -2
  371. package/src/components/data-table/renderers.tsx +16 -7
  372. package/src/components/data-table/row-viewer-panel/__tests__/row-viewer.test.tsx +24 -1
  373. package/src/components/data-table/row-viewer-panel/row-viewer.tsx +2 -2
  374. package/src/components/datasources/__tests__/column-preview.test.tsx +41 -11
  375. package/src/components/datasources/__tests__/datasources-interactions.test.tsx +334 -0
  376. package/src/components/datasources/__tests__/table-list.test.tsx +51 -1
  377. package/src/components/datasources/__tests__/utils.test.ts +117 -7
  378. package/src/components/datasources/column-preview.tsx +9 -10
  379. package/src/components/datasources/datasources.tsx +22 -22
  380. package/src/components/datasources/utils.ts +41 -27
  381. package/src/components/dependency-graph/__tests__/elements.test.ts +20 -11
  382. package/src/components/dependency-graph/custom-node.tsx +1 -1
  383. package/src/components/dependency-graph/dependency-graph-tree.tsx +23 -9
  384. package/src/components/dependency-graph/elements.ts +34 -44
  385. package/src/components/dependency-graph/minimap-content.tsx +15 -20
  386. package/src/components/dependency-graph/panels.tsx +2 -1
  387. package/src/components/dependency-graph/utils/__tests__/layout.test.ts +18 -11
  388. package/src/components/editor/Output.tsx +5 -4
  389. package/src/components/editor/__tests__/Output.test.tsx +50 -32
  390. package/src/{core/attachments/__tests__/toast.test.tsx → components/editor/__tests__/agent-toast.test.tsx} +1 -1
  391. package/src/components/editor/__tests__/data-attributes.test.tsx +39 -32
  392. package/src/components/editor/__tests__/dynamic-favicon.test.tsx +11 -16
  393. package/src/components/editor/__tests__/output-persistence.test.tsx +33 -32
  394. package/src/components/editor/__tests__/package-alert.test.tsx +22 -1
  395. package/src/components/editor/actions/__tests__/name-cell-input.test.tsx +70 -0
  396. package/src/components/editor/actions/__tests__/pair-with-agent-commands.test.ts +21 -40
  397. package/src/components/editor/actions/__tests__/pair-with-agent-modal.test.tsx +40 -14
  398. package/src/components/editor/actions/__tests__/pair-with-agent.test.tsx +6 -24
  399. package/src/components/editor/actions/__tests__/useCellActionButton.test.tsx +132 -0
  400. package/src/components/editor/actions/__tests__/useSetOutputsExpanded.test.ts +8 -9
  401. package/src/components/editor/actions/name-cell-input.tsx +4 -3
  402. package/src/components/editor/actions/pair-with-agent-commands.ts +10 -7
  403. package/src/components/editor/actions/pair-with-agent-modal.tsx +15 -18
  404. package/src/components/editor/actions/pair-with-agent.tsx +16 -39
  405. package/src/components/editor/actions/useCellActionButton.tsx +47 -35
  406. package/src/components/editor/actions/useConfigActions.tsx +3 -4
  407. package/src/components/editor/actions/useNotebookActions.tsx +25 -29
  408. package/src/components/editor/actions/useRestartKernel.tsx +0 -5
  409. package/src/components/editor/actions/useSetCodeVisibility.ts +11 -12
  410. package/src/components/editor/actions/useSetOutputsExpanded.ts +24 -24
  411. package/src/components/editor/ai/ai-completion-editor.tsx +1 -1
  412. package/src/components/editor/ai/completion-handlers.tsx +0 -37
  413. package/src/components/editor/ai/prompt-input.tsx +189 -0
  414. package/src/components/editor/alerts/__tests__/connection-notice.test.tsx +1 -1
  415. package/src/components/editor/alerts/connection-notice.tsx +1 -1
  416. package/src/components/editor/app-container.tsx +1 -1
  417. package/src/components/editor/boundary/ErrorBoundary.tsx +6 -2
  418. package/src/components/editor/boundary/__tests__/ErrorBoundary.test.tsx +5 -1
  419. package/src/components/editor/cell/CellStatus.tsx +47 -57
  420. package/src/components/editor/cell/CreateCellButton.tsx +7 -11
  421. package/src/components/editor/cell/DeleteButton.tsx +4 -4
  422. package/src/components/editor/cell/ReusableDefinitionBadge.tsx +62 -0
  423. package/src/components/editor/cell/RunButton.tsx +18 -8
  424. package/src/components/editor/cell/StagedAICell.tsx +52 -137
  425. package/src/components/editor/cell/StopButton.tsx +7 -7
  426. package/src/components/editor/cell/__tests__/useRunCells.test.tsx +149 -0
  427. package/src/components/editor/cell/cell-actions.tsx +12 -1
  428. package/src/components/editor/cell/cell-context-menu.tsx +24 -4
  429. package/src/components/editor/cell/code/__tests__/language-toggle.test.tsx +38 -1
  430. package/src/components/editor/cell/code/cell-editor.tsx +66 -169
  431. package/src/components/editor/cell/code/language-toggle.tsx +6 -4
  432. package/src/components/editor/cell/collapse.tsx +16 -6
  433. package/src/components/editor/cell/useAddCell.ts +4 -8
  434. package/src/components/editor/cell/useDeleteCell.tsx +10 -36
  435. package/src/components/editor/cell/useRunCells.ts +70 -59
  436. package/src/components/editor/cell/useSplitCell.tsx +10 -6
  437. package/src/components/editor/chrome/components/__tests__/feedback-button.test.tsx +1 -1
  438. package/src/components/editor/chrome/components/feedback-button.tsx +2 -8
  439. package/src/components/editor/chrome/panels/__tests__/packages-panel.test.tsx +1 -1
  440. package/src/components/editor/chrome/panels/__tests__/runtime-details.test.tsx +1 -1
  441. package/src/components/editor/chrome/panels/__tests__/sandbox-recovery.test.tsx +1 -1
  442. package/src/components/editor/chrome/panels/dependency-graph-panel.tsx +1 -1
  443. package/src/components/editor/chrome/panels/logs-panel.tsx +2 -1
  444. package/src/components/editor/chrome/panels/outline/__tests__/outline-keyboard.test.tsx +84 -0
  445. package/src/components/editor/chrome/panels/outline/floating-outline.tsx +39 -14
  446. package/src/components/editor/chrome/panels/outline/useActiveOutline.tsx +3 -2
  447. package/src/components/editor/chrome/panels/panel-header.tsx +13 -0
  448. package/src/components/editor/chrome/panels/secrets-panel.tsx +1 -0
  449. package/src/components/editor/chrome/panels/session-panel.tsx +1 -1
  450. package/src/components/editor/chrome/panels/snippets-panel.tsx +10 -12
  451. package/src/components/editor/chrome/panels/variable-panel.tsx +1 -5
  452. package/src/components/editor/chrome/types.ts +1 -1
  453. package/src/components/editor/chrome/wrapper/__tests__/attachment-status.test.tsx +8 -10
  454. package/src/components/editor/chrome/wrapper/__tests__/document-sync-status.test.tsx +97 -0
  455. package/src/components/editor/chrome/wrapper/__tests__/pending-ai-cells.test.tsx +230 -59
  456. package/src/components/editor/chrome/wrapper/__tests__/useAskAiAboutCell.test.tsx +58 -0
  457. package/src/components/editor/chrome/wrapper/app-chrome.tsx +91 -74
  458. package/src/components/editor/chrome/wrapper/footer-items/attachment-status.tsx +5 -5
  459. package/src/components/editor/chrome/wrapper/footer-items/backend-status.tsx +3 -17
  460. package/src/components/editor/chrome/wrapper/footer-items/document-sync-status.tsx +54 -0
  461. package/src/components/editor/chrome/wrapper/footer-items/lsp-status.tsx +1 -1
  462. package/src/components/editor/chrome/wrapper/footer-items/machine-stats.tsx +1 -1
  463. package/src/components/editor/chrome/wrapper/footer.tsx +2 -2
  464. package/src/components/editor/chrome/wrapper/minimap-state.ts +1 -1
  465. package/src/components/editor/chrome/wrapper/pending-ai-cells.tsx +143 -82
  466. package/src/components/editor/chrome/wrapper/pending-ai-changes-badge.tsx +25 -0
  467. package/src/components/editor/chrome/wrapper/sidebar.tsx +8 -4
  468. package/src/components/editor/chrome/wrapper/useAskAiAboutCell.ts +36 -0
  469. package/src/components/editor/columns/__tests__/cell-column.test.tsx +1 -1
  470. package/src/components/editor/columns/cell-column.tsx +1 -1
  471. package/src/components/editor/columns/sortable-column.tsx +2 -2
  472. package/src/components/editor/connections/components.tsx +4 -9
  473. package/src/components/editor/controls/Controls.tsx +9 -6
  474. package/src/components/editor/controls/__tests__/keyboard-shortcuts.test.tsx +61 -0
  475. package/src/components/editor/controls/__tests__/notebook-menu-dropdown.test.tsx +10 -4
  476. package/src/components/editor/controls/keyboard-shortcuts.tsx +14 -5
  477. package/src/components/editor/documentation.css +34 -11
  478. package/src/components/editor/errors/__tests__/send-error-report-button.test.tsx +106 -79
  479. package/src/components/editor/errors/auto-fix.tsx +4 -8
  480. package/src/components/editor/errors/send-error-report-button.tsx +3 -6
  481. package/src/components/editor/file-tree/__tests__/file-explorer-navigation.test.tsx +47 -0
  482. package/src/components/editor/file-tree/file-explorer.tsx +38 -10
  483. package/src/components/editor/file-tree/file-name-input.tsx +1 -0
  484. package/src/components/editor/header/__tests__/filename-form.test.tsx +1 -4
  485. package/src/components/editor/header/__tests__/status.test.tsx +5 -3
  486. package/src/components/editor/header/app-header.tsx +1 -1
  487. package/src/components/editor/header/filename-form.tsx +1 -1
  488. package/src/components/editor/header/status.tsx +44 -22
  489. package/src/components/editor/links/__tests__/cell-link.test.tsx +148 -0
  490. package/src/components/editor/links/cell-link-list.tsx +1 -1
  491. package/src/components/editor/links/cell-link.tsx +21 -11
  492. package/src/components/editor/navigation/__tests__/clipboard.test.ts +60 -38
  493. package/src/components/editor/navigation/__tests__/navigation.test.ts +109 -85
  494. package/src/components/editor/navigation/__tests__/selection.test.ts +43 -21
  495. package/src/components/editor/navigation/clipboard.ts +17 -14
  496. package/src/components/editor/navigation/focus-utils.ts +23 -4
  497. package/src/components/editor/navigation/multi-cell-action-toolbar.tsx +17 -33
  498. package/src/components/editor/navigation/navigation.ts +74 -72
  499. package/src/components/editor/navigation/selection.ts +30 -29
  500. package/src/components/editor/notebook-cell.tsx +143 -256
  501. package/src/components/editor/output/MarimoErrorOutput.tsx +41 -4
  502. package/src/components/editor/output/MarimoTracebackOutput.tsx +17 -15
  503. package/src/components/editor/output/Outputs.css +8 -0
  504. package/src/components/editor/output/VideoOutput.tsx +6 -0
  505. package/src/components/editor/output/__tests__/VideoOutput.test.tsx +131 -0
  506. package/src/components/editor/output/__tests__/traceback.test.tsx +27 -1
  507. package/src/components/editor/output/ansi-reduce.ts +126 -49
  508. package/src/components/editor/output/console/ConsoleOutput.tsx +34 -26
  509. package/src/components/editor/output/console/__tests__/ConsoleOutput.test.tsx +162 -102
  510. package/src/components/editor/output/console/process-output.ts +4 -2
  511. package/src/components/editor/package-alert.tsx +8 -3
  512. package/src/components/editor/renderers/__tests__/add-cell-buttons.test.tsx +18 -0
  513. package/src/components/editor/renderers/cell-array.tsx +38 -103
  514. package/src/components/editor/renderers/cells-renderer.tsx +2 -3
  515. package/src/components/editor/renderers/grid-layout/__tests__/grid-layout.test.tsx +69 -0
  516. package/src/components/editor/renderers/grid-layout/grid-layout.tsx +30 -28
  517. package/src/components/editor/renderers/slides-layout/__tests__/plugin.test.ts +0 -4
  518. package/src/components/editor/renderers/slides-layout/slides-layout.tsx +1 -1
  519. package/src/components/editor/renderers/types.ts +2 -2
  520. package/src/components/editor/renderers/vertical-layout/__tests__/useFocusFirstEditor.test.ts +47 -4
  521. package/src/components/editor/renderers/vertical-layout/useFocusFirstEditor.ts +9 -1
  522. package/src/components/editor/renderers/vertical-layout/utils.ts +4 -4
  523. package/src/components/editor/renderers/vertical-layout/vertical-layout.tsx +20 -46
  524. package/src/components/editor/stdin-blocking-alert.tsx +19 -16
  525. package/src/components/icons/__tests__/copy-icon.test.tsx +63 -0
  526. package/src/components/icons/copy-icon.tsx +9 -2
  527. package/src/components/markdown/__tests__/markdown-renderer.test.tsx +32 -2
  528. package/src/components/markdown/markdown-renderer.tsx +43 -28
  529. package/src/components/mcp/mcp-status-indicator.tsx +18 -14
  530. package/src/components/pages/edit-page.tsx +18 -17
  531. package/src/components/scratchpad/scratchpad.test.tsx +89 -0
  532. package/src/components/scratchpad/scratchpad.tsx +54 -37
  533. package/src/components/scratchpad/state.ts +7 -0
  534. package/src/components/slides/__tests__/cell-output-block.test.tsx +8 -9
  535. package/src/components/slides/__tests__/minimap-actions.test.tsx +25 -32
  536. package/src/components/slides/__tests__/minimap.test.ts +38 -19
  537. package/src/components/slides/__tests__/slide-cell-view.test.tsx +3 -2
  538. package/src/components/slides/__tests__/slide-scroll-hint.test.tsx +37 -0
  539. package/src/components/slides/minimap.tsx +21 -14
  540. package/src/components/slides/reveal-component.tsx +68 -34
  541. package/src/components/slides/reveal-slides.css +5 -4
  542. package/src/components/slides/slide-cell-view.tsx +36 -41
  543. package/src/components/slides/slide-scroll-hint.tsx +3 -1
  544. package/src/components/slides/slide.tsx +4 -5
  545. package/src/components/sort/SortableCellsProvider.tsx +8 -25
  546. package/src/components/static-html/__tests__/static-banner.test.tsx +1 -1
  547. package/src/components/tracing/tracing-keyboard.test.tsx +85 -0
  548. package/src/components/tracing/tracing-spec.ts +11 -1
  549. package/src/components/tracing/tracing.tsx +48 -40
  550. package/src/components/ui/__tests__/draggable-popover.test.tsx +24 -0
  551. package/src/components/ui/__tests__/fullscreen.test.tsx +99 -2
  552. package/src/components/ui/__tests__/range-slider.test.tsx +165 -0
  553. package/src/components/ui/__tests__/select.test.tsx +80 -0
  554. package/src/components/ui/draggable-popover.tsx +24 -2
  555. package/src/components/ui/fullscreen.tsx +43 -3
  556. package/src/components/ui/range-slider.tsx +22 -9
  557. package/src/components/ui/select.tsx +17 -15
  558. package/src/components/ui/slider.tsx +6 -2
  559. package/src/components/ui/toast.tsx +1 -1
  560. package/src/components/variables/__tests__/variables-table.test.tsx +75 -0
  561. package/src/components/variables/variables-table.tsx +18 -10
  562. package/src/core/MarimoApp.tsx +3 -1
  563. package/src/core/ai/__tests__/attachments.test.ts +153 -0
  564. package/src/core/ai/__tests__/staged-cells.test.ts +90 -609
  565. package/src/core/ai/attachments.ts +80 -0
  566. package/src/core/ai/context/__tests__/registry.test.ts +7 -11
  567. package/src/core/ai/context/context.ts +2 -0
  568. package/src/core/ai/context/providers/__tests__/cell-output.test.ts +116 -52
  569. package/src/core/ai/context/providers/__tests__/cell.test.ts +49 -0
  570. package/src/core/ai/context/providers/__tests__/error.test.ts +76 -219
  571. package/src/core/ai/context/providers/cell-output.ts +17 -20
  572. package/src/core/ai/context/providers/cell.ts +54 -0
  573. package/src/core/ai/staged-cells.ts +56 -323
  574. package/src/core/ai/state.ts +3 -0
  575. package/src/core/ai/tools/__tests__/edit-notebook-tool.test.ts +47 -93
  576. package/src/core/ai/tools/__tests__/registry.test.ts +17 -0
  577. package/src/core/ai/tools/base.ts +18 -15
  578. package/src/core/ai/tools/edit-notebook-tool.ts +86 -80
  579. package/src/core/ai/tools/registry.ts +13 -10
  580. package/src/core/ai/tools/sample-tool.ts +6 -7
  581. package/src/core/cells/__tests__/actions.test.ts +623 -35
  582. package/src/core/cells/__tests__/add-missing-import.test.ts +7 -8
  583. package/src/core/cells/__tests__/arrange.test.ts +432 -0
  584. package/src/core/cells/__tests__/cell.test.ts +56 -308
  585. package/src/core/cells/__tests__/cells.test.ts +327 -3808
  586. package/src/core/cells/__tests__/clear-outputs.test.ts +156 -0
  587. package/src/core/cells/__tests__/collapseConsoleOutputs.test.ts +86 -2
  588. package/src/core/cells/__tests__/document.test.ts +158 -0
  589. package/src/core/cells/__tests__/editor.test.ts +57 -0
  590. package/src/core/cells/__tests__/flush-document.test.ts +42 -0
  591. package/src/core/cells/__tests__/harness.ts +113 -0
  592. package/src/core/cells/__tests__/layout.test.ts +186 -0
  593. package/src/core/cells/__tests__/logs.test.ts +18 -42
  594. package/src/core/cells/__tests__/notebook-outline.test.ts +72 -57
  595. package/src/core/cells/__tests__/outputs.test.tsx +71 -53
  596. package/src/core/cells/__tests__/pending-delete-service.test.tsx +11 -20
  597. package/src/core/cells/__tests__/runs.test.ts +127 -430
  598. package/src/core/cells/__tests__/session.test.ts +560 -336
  599. package/src/core/cells/__tests__/utils.test.ts +166 -338
  600. package/src/core/cells/actions.ts +738 -6
  601. package/src/core/cells/add-missing-import.ts +48 -47
  602. package/src/core/cells/arrange.ts +529 -0
  603. package/src/core/cells/cell.ts +36 -225
  604. package/src/core/cells/cells.ts +245 -1549
  605. package/src/core/cells/collapseConsoleOutputs.tsx +71 -40
  606. package/src/core/cells/columns.ts +38 -0
  607. package/src/core/cells/command-console.ts +46 -0
  608. package/src/core/cells/document.ts +167 -0
  609. package/src/core/cells/edit.ts +30 -0
  610. package/src/core/cells/editor.ts +82 -0
  611. package/src/core/cells/execution-console.ts +236 -0
  612. package/src/core/cells/focus.ts +20 -14
  613. package/src/core/cells/layout.ts +228 -0
  614. package/src/core/cells/logs.ts +10 -2
  615. package/src/core/cells/outputs.ts +14 -30
  616. package/src/core/cells/pending-delete-service.ts +6 -8
  617. package/src/core/cells/reusable-definition.ts +25 -0
  618. package/src/core/cells/runs.ts +70 -118
  619. package/src/core/cells/scrollCellIntoView.ts +6 -0
  620. package/src/core/cells/session.ts +176 -101
  621. package/src/core/cells/types.ts +32 -64
  622. package/src/core/cells/useAnswerPrompt.ts +29 -0
  623. package/src/core/cells/utils.ts +113 -102
  624. package/src/core/codemirror/__tests__/format.test.ts +4 -36
  625. package/src/core/codemirror/__tests__/setup.test.ts +66 -33
  626. package/src/core/codemirror/ai/__tests__/resources.test.ts +113 -0
  627. package/src/core/codemirror/ai/resources.ts +1 -1
  628. package/src/core/codemirror/cells/__tests__/debugger-state.test.ts +0 -20
  629. package/src/core/codemirror/cells/__tests__/extensions.test.ts +2 -6
  630. package/src/core/codemirror/cells/debugger-state.ts +7 -11
  631. package/src/core/codemirror/cells/extensions.ts +18 -30
  632. package/src/core/codemirror/cells/state.ts +2 -6
  633. package/src/core/codemirror/cm.ts +5 -1
  634. package/src/core/codemirror/config/types.ts +1 -1
  635. package/src/core/codemirror/copilot/__tests__/completion-integration.test.ts +4 -0
  636. package/src/core/codemirror/copilot/__tests__/getCodes.test.ts +13 -12
  637. package/src/core/codemirror/copilot/extension.ts +0 -26
  638. package/src/core/codemirror/copilot/getCodes.ts +3 -3
  639. package/src/core/codemirror/format.ts +6 -23
  640. package/src/core/codemirror/keymaps/vim.ts +2 -2
  641. package/src/core/codemirror/language/__tests__/extension.test.ts +9 -7
  642. package/src/core/codemirror/language/__tests__/markdown.test.ts +7 -7
  643. package/src/core/codemirror/language/__tests__/sql-literals.test.ts +588 -0
  644. package/src/core/codemirror/language/__tests__/sql.test.ts +123 -28
  645. package/src/core/codemirror/language/__tests__/utils.test.ts +194 -19
  646. package/src/core/codemirror/language/cell-code.ts +114 -0
  647. package/src/core/codemirror/language/extension.ts +52 -35
  648. package/src/core/codemirror/language/languages/markdown.ts +8 -6
  649. package/src/core/codemirror/language/languages/python.ts +16 -10
  650. package/src/core/codemirror/language/languages/sql/completion-builder.ts +31 -14
  651. package/src/core/codemirror/language/languages/sql/completion-context.ts +197 -0
  652. package/src/core/codemirror/language/languages/sql/completion-sources.tsx +109 -0
  653. package/src/core/codemirror/language/languages/sql/sql.ts +21 -28
  654. package/src/core/codemirror/language/types.ts +7 -7
  655. package/src/core/codemirror/language/utils.ts +9 -39
  656. package/src/core/codemirror/lsp/__tests__/notebook-lsp.test.ts +1 -2
  657. package/src/core/codemirror/lsp/notebook-lsp.ts +6 -5
  658. package/src/core/codemirror/lsp/utils.ts +1 -1
  659. package/src/core/codemirror/misc/__tests__/paste.test.ts +3 -1
  660. package/src/core/codemirror/misc/paste.ts +1 -1
  661. package/src/core/codemirror/placeholder/__tests__/extensions.test.ts +75 -0
  662. package/src/core/codemirror/placeholder/extensions.ts +80 -19
  663. package/src/core/codemirror/readonly/__tests__/extension.test.ts +1 -1
  664. package/src/core/codemirror/readonly/extension.ts +2 -2
  665. package/src/core/codemirror/utils.ts +1 -0
  666. package/src/core/config/__tests__/app-config.test.ts +64 -0
  667. package/src/core/config/__tests__/config-schema.test.ts +195 -17
  668. package/src/core/config/config-schema.ts +138 -20
  669. package/src/core/config/config.ts +69 -20
  670. package/src/core/config/feature-flag.tsx +0 -2
  671. package/src/core/datasets/__tests__/data-source-discovery.test.ts +1 -1
  672. package/src/core/documentation/doc-lookup.ts +1 -1
  673. package/src/core/dom/__tests__/outline.test.ts +23 -0
  674. package/src/core/dom/outline.ts +4 -1
  675. package/src/core/edit-app.tsx +28 -38
  676. package/src/core/errors/__tests__/error-entries.test.ts +74 -1
  677. package/src/core/errors/error-entries.ts +28 -16
  678. package/src/core/executions/__tests__/atoms.test.ts +218 -0
  679. package/src/core/executions/__tests__/freshness.test.ts +503 -0
  680. package/src/core/executions/__tests__/hooks.test.tsx +198 -0
  681. package/src/core/executions/__tests__/input.test.ts +86 -0
  682. package/src/core/executions/__tests__/interrupt.test.ts +206 -0
  683. package/src/core/executions/__tests__/output-lifecycle.test.ts +260 -0
  684. package/src/core/executions/__tests__/output.test.ts +336 -0
  685. package/src/core/executions/__tests__/run.test.ts +396 -0
  686. package/src/core/executions/__tests__/select.test.ts +409 -0
  687. package/src/core/executions/atoms.ts +399 -0
  688. package/src/core/executions/freshness.ts +174 -0
  689. package/src/core/executions/hooks.ts +119 -0
  690. package/src/core/executions/index.ts +58 -0
  691. package/src/core/executions/input.ts +56 -0
  692. package/src/core/executions/interrupt.ts +49 -0
  693. package/src/core/executions/output.ts +337 -0
  694. package/src/core/executions/run.ts +107 -0
  695. package/src/core/executions/select.ts +271 -0
  696. package/src/core/export/__tests__/hooks.test.ts +18 -34
  697. package/src/core/export/hooks.ts +8 -10
  698. package/src/core/export/layout.ts +2 -2
  699. package/src/core/hotkeys/hotkeys.ts +2 -1
  700. package/src/core/islands/__tests__/bootstrap.test.ts +69 -17
  701. package/src/core/islands/__tests__/bridge.test.ts +163 -65
  702. package/src/core/islands/__tests__/iframe-resizer.test.ts +91 -0
  703. package/src/core/islands/__tests__/main.test.ts +17 -0
  704. package/src/core/islands/bootstrap.ts +70 -65
  705. package/src/core/islands/bridge.ts +156 -54
  706. package/src/core/islands/components/IslandControls.tsx +15 -7
  707. package/src/core/islands/components/__tests__/IslandControls.test.tsx +36 -51
  708. package/src/core/islands/components/__tests__/web-components.test.tsx +76 -15
  709. package/src/core/islands/components/output-wrapper.tsx +19 -24
  710. package/src/core/islands/components/web-components.tsx +12 -1
  711. package/src/core/islands/iframe-resizer.ts +38 -0
  712. package/src/core/islands/main.ts +3 -0
  713. package/src/core/islands/stubs/slide-cell-view.tsx +2 -5
  714. package/src/core/islands/worker/__tests__/controller.test.ts +62 -4
  715. package/src/core/islands/worker/controller.ts +4 -10
  716. package/src/core/islands/worker/worker.tsx +84 -52
  717. package/src/core/kernel/__tests__/handlers.test.ts +7 -159
  718. package/src/core/kernel/handlers.ts +12 -141
  719. package/src/core/kernel/messages.ts +0 -1
  720. package/src/core/kernel/state.ts +0 -15
  721. package/src/core/lifecycle/render-policy.ts +16 -27
  722. package/src/core/meta/__tests__/code-visibility.test.tsx +78 -70
  723. package/src/core/meta/code-visibility.ts +18 -9
  724. package/src/core/network/__tests__/ai.test.ts +41 -0
  725. package/src/core/network/__tests__/connection.test.ts +1 -1
  726. package/src/core/network/__tests__/requests-network.test.ts +0 -16
  727. package/src/core/network/__tests__/requests-toasting.test.tsx +7 -7
  728. package/src/core/network/ai.ts +12 -0
  729. package/src/core/network/connection-notice.ts +1 -1
  730. package/src/core/network/connection.ts +1 -6
  731. package/src/core/network/requests-network.ts +10 -64
  732. package/src/core/network/requests-static.ts +2 -11
  733. package/src/core/network/requests-toasting.tsx +3 -57
  734. package/src/core/network/resolve.ts +1 -5
  735. package/src/core/network/types.ts +7 -22
  736. package/src/core/notebook/__tests__/operations.test.ts +51 -0
  737. package/src/core/notebook/attachments.ts +38 -0
  738. package/src/core/notebook/document/__tests__/codemirror.test.ts +768 -0
  739. package/src/core/{document → notebook/document}/__tests__/draft.test.ts +71 -31
  740. package/src/core/{document → notebook/document}/__tests__/fixtures.ts +2 -2
  741. package/src/core/notebook/document/__tests__/hooks.test.tsx +392 -0
  742. package/src/core/notebook/document/__tests__/lifecycle-scenarios.test.ts +61 -0
  743. package/src/core/notebook/document/__tests__/model.test.ts +252 -0
  744. package/src/core/notebook/document/__tests__/protocol-fixtures.ts +38 -0
  745. package/src/core/notebook/document/__tests__/recovery-scenarios.test.ts +259 -0
  746. package/src/core/notebook/document/__tests__/scenario-fixture.ts +44 -0
  747. package/src/core/notebook/document/__tests__/scenarios.test.ts +279 -0
  748. package/src/core/{document/__tests__/model.test.ts → notebook/document/__tests__/state.test.ts} +48 -24
  749. package/src/core/notebook/document/__tests__/submission.test.ts +204 -0
  750. package/src/core/notebook/document/__tests__/test-host.test.ts +92 -0
  751. package/src/core/notebook/document/__tests__/test-host.ts +223 -0
  752. package/src/core/notebook/document/__tests__/test-notebook.ts +162 -0
  753. package/src/core/notebook/document/__tests__/user.ts +62 -0
  754. package/src/core/notebook/document/codemirror.ts +216 -0
  755. package/src/core/{document → notebook/document}/draft.ts +53 -30
  756. package/src/core/notebook/document/hooks.tsx +123 -0
  757. package/src/core/notebook/document/index.ts +25 -0
  758. package/src/core/notebook/document/model.ts +105 -0
  759. package/src/core/notebook/document/select.ts +41 -0
  760. package/src/core/{document/model.ts → notebook/document/state.ts} +77 -71
  761. package/src/core/notebook/document/sync.ts +378 -0
  762. package/src/core/notebook/index.ts +19 -0
  763. package/src/core/notebook/operations.ts +30 -0
  764. package/src/core/notebook/replica/AGENTS.md +11 -0
  765. package/src/core/{host → notebook/replica}/__tests__/document.test.ts +13 -8
  766. package/src/core/notebook/replica/__tests__/executions.test.ts +272 -0
  767. package/src/core/notebook/replica/__tests__/fixtures.ts +103 -0
  768. package/src/core/{host/__tests__/notebook-client.test.ts → notebook/replica/__tests__/replica.test.ts} +268 -25
  769. package/src/core/notebook/replica/__tests__/results.test.ts +232 -0
  770. package/src/core/notebook/replica/__tests__/runtime.test.ts +77 -0
  771. package/src/core/notebook/replica/backend.ts +21 -0
  772. package/src/core/{host → notebook/replica}/connection.ts +1 -5
  773. package/src/core/notebook/replica/execution-state.ts +43 -0
  774. package/src/core/notebook/replica/index.ts +31 -0
  775. package/src/core/notebook/replica/replica.ts +569 -0
  776. package/src/core/notebook/replica/resources/analysis.ts +9 -0
  777. package/src/core/{host → notebook/replica}/resources/document.ts +1 -1
  778. package/src/core/notebook/replica/resources/executions.ts +348 -0
  779. package/src/core/notebook/replica/resources/results.ts +66 -0
  780. package/src/core/notebook/replica/resources/runtime.ts +14 -0
  781. package/src/core/packages/__tests__/useSandboxController.test.tsx +1 -1
  782. package/src/core/packages/useSandboxController.ts +1 -1
  783. package/src/core/run-app.tsx +49 -52
  784. package/src/core/runtime/__tests__/adapter.test.ts +4 -4
  785. package/src/core/runtime/__tests__/createWsUrl.test.ts +5 -17
  786. package/src/core/runtime/__tests__/runtime.test.ts +68 -141
  787. package/src/core/runtime/adapter.ts +6 -13
  788. package/src/core/runtime/config.ts +4 -24
  789. package/src/core/runtime/runtime.ts +11 -16
  790. package/src/core/runtime/types.ts +0 -5
  791. package/src/core/saving/__tests__/document.test.tsx +113 -0
  792. package/src/core/saving/__tests__/state.test.ts +111 -0
  793. package/src/core/saving/__tests__/useAutoSave.test.tsx +67 -0
  794. package/src/core/saving/__tests__/useSaveNotebook.test.tsx +69 -0
  795. package/src/core/saving/document.ts +33 -0
  796. package/src/core/saving/filename.ts +1 -1
  797. package/src/core/saving/save-component.tsx +68 -60
  798. package/src/core/saving/state.ts +42 -37
  799. package/src/core/saving/useAutoSave.ts +17 -53
  800. package/src/core/session/__tests__/backend.test.ts +244 -0
  801. package/src/core/session/__tests__/useNotebookReplica.hook.test.tsx +187 -0
  802. package/src/core/session/__tests__/useNotebookSession.hook.test.tsx +1552 -0
  803. package/src/core/session/active-notebook.ts +35 -0
  804. package/src/core/session/backend.ts +125 -0
  805. package/src/core/{websocket → session}/connection-utils.ts +2 -14
  806. package/src/core/session/embedded.ts +7 -0
  807. package/src/core/{websocket → session}/types.ts +2 -2
  808. package/src/core/session/useNotebookReplica.ts +91 -0
  809. package/src/core/{websocket → session}/useNotebookSession.tsx +178 -106
  810. package/src/core/static/__tests__/files.test.ts +38 -10
  811. package/src/core/static/virtual-file-tracker.ts +41 -10
  812. package/src/core/{websocket → transports}/__tests__/connection-state.test.ts +1 -1
  813. package/src/core/{websocket/transports/__tests__/notebook.test.ts → transports/__tests__/server.test.ts} +29 -119
  814. package/src/core/transports/__tests__/static.test.ts +357 -0
  815. package/src/core/transports/__tests__/wasm.test.ts +166 -0
  816. package/src/core/{websocket → transports}/connection-state.ts +9 -6
  817. package/src/core/{websocket/transports/notebook.ts → transports/server.ts} +15 -76
  818. package/src/core/transports/static.ts +188 -0
  819. package/src/core/transports/wasm.ts +95 -0
  820. package/src/core/vscode/__tests__/vscode-bindings.test.ts +125 -0
  821. package/src/core/vscode/vscode-bindings.ts +14 -2
  822. package/src/core/wasm/PyodideLoader.tsx +2 -1
  823. package/src/core/wasm/__tests__/PyodideLoader.test.tsx +100 -0
  824. package/src/core/wasm/__tests__/bridge.test.ts +346 -64
  825. package/src/core/wasm/__tests__/worker.test.ts +191 -0
  826. package/src/core/wasm/bridge.ts +167 -85
  827. package/src/core/wasm/errors.ts +8 -0
  828. package/src/core/wasm/rpc.ts +15 -3
  829. package/src/core/wasm/worker/bootstrap.ts +54 -50
  830. package/src/core/wasm/worker/save-worker.ts +9 -10
  831. package/src/core/wasm/worker/types.ts +32 -19
  832. package/src/core/wasm/worker/worker.ts +126 -72
  833. package/src/css/app/Cell.css +7 -36
  834. package/src/css/app/codemirror.css +1 -32
  835. package/src/css/common.css +1 -1
  836. package/src/css/globals.css +67 -24
  837. package/src/css/katex.min.css +1 -1
  838. package/src/hooks/useDebounce.ts +1 -2
  839. package/src/hooks/useEventListener.ts +1 -2
  840. package/src/mount.tsx +22 -19
  841. package/src/plugins/__tests__/plugin-object-schemas.test.ts +104 -0
  842. package/src/plugins/core/RenderHTML.tsx +3 -5
  843. package/src/plugins/core/__test__/PluginSlot.test.tsx +202 -0
  844. package/src/plugins/core/__test__/RenderHTML-copy.test.tsx +60 -0
  845. package/src/plugins/core/__test__/registerReactComponent.test.ts +45 -0
  846. package/src/plugins/core/__test__/sanitize.test.ts +35 -0
  847. package/src/plugins/core/registerReactComponent.tsx +28 -28
  848. package/src/plugins/core/sanitize-html.ts +8 -1
  849. package/src/plugins/impl/DataEditorPlugin.tsx +60 -28
  850. package/src/plugins/impl/DataTablePlugin.tsx +55 -22
  851. package/src/plugins/impl/RangeSliderPlugin.tsx +17 -2
  852. package/src/plugins/impl/SliderPlugin.tsx +35 -3
  853. package/src/plugins/impl/__test__/slider-labels.test.tsx +30 -0
  854. package/src/plugins/impl/__tests__/DataEditorPlugin.test.ts +190 -10
  855. package/src/plugins/impl/__tests__/DataTablePlugin.test.tsx +270 -0
  856. package/src/plugins/impl/__tests__/RangeSliderPlugin.test.tsx +109 -0
  857. package/src/plugins/impl/__tests__/SliderPlugin.test.tsx +40 -0
  858. package/src/plugins/impl/anywidget/__tests__/registry.test.ts +151 -0
  859. package/src/plugins/impl/anywidget/model.ts +3 -1
  860. package/src/plugins/impl/anywidget/registry.ts +18 -14
  861. package/src/plugins/impl/chat/__tests__/chat-prompts.test.tsx +1 -1
  862. package/src/plugins/impl/chat/chat-ui.tsx +5 -5
  863. package/src/plugins/impl/common/error-banner.tsx +5 -3
  864. package/src/plugins/impl/data-editor/__tests__/column-types.test.ts +42 -0
  865. package/src/plugins/impl/data-editor/__tests__/editor-state.test.ts +52 -1
  866. package/src/plugins/impl/data-editor/__tests__/glide-data-editor.test.tsx +278 -7
  867. package/src/plugins/impl/data-editor/__tests__/glide-utils.test.ts +116 -0
  868. package/src/plugins/impl/data-editor/column-types.ts +55 -0
  869. package/src/plugins/impl/data-editor/editor-state.ts +18 -2
  870. package/src/plugins/impl/data-editor/glide-data-editor.tsx +97 -18
  871. package/src/plugins/impl/data-editor/glide-portal.tsx +5 -3
  872. package/src/plugins/impl/data-editor/glide-utils.ts +36 -37
  873. package/src/plugins/impl/data-editor/types.ts +5 -0
  874. package/src/plugins/impl/data-explorer/components/column-summary.tsx +4 -2
  875. package/src/plugins/impl/data-explorer/functions/types.ts +1 -5
  876. package/src/plugins/impl/data-frames/DataFramePlugin.tsx +1 -1
  877. package/src/plugins/impl/data-frames/__tests__/sidebar.test.tsx +160 -0
  878. package/src/plugins/impl/data-frames/forms/__tests__/__snapshots__/form.test.tsx.snap +66 -66
  879. package/src/plugins/impl/data-frames/panel.tsx +44 -16
  880. package/src/plugins/impl/plotly/PlotlyPlugin.tsx +2 -5
  881. package/src/plugins/impl/plotly/selection.ts +25 -19
  882. package/src/plugins/impl/vega/VegaPlugin.tsx +2 -3
  883. package/src/plugins/layout/AccordionPlugin.tsx +2 -1
  884. package/src/plugins/layout/DownloadPlugin.tsx +7 -11
  885. package/src/plugins/layout/LazyPlugin.tsx +7 -4
  886. package/src/plugins/layout/TexPlugin.tsx +0 -1
  887. package/src/plugins/layout/__test__/DownloadPlugin.test.tsx +205 -0
  888. package/src/plugins/layout/__test__/mermaid.test.tsx +256 -0
  889. package/src/plugins/layout/__tests__/AccordionPlugin.test.tsx +21 -0
  890. package/src/plugins/layout/__tests__/LazyPlugin.test.tsx +98 -0
  891. package/src/plugins/layout/mermaid/mermaid.tsx +63 -17
  892. package/src/stories/cell-status.stories.tsx +29 -24
  893. package/src/stories/cell.stories.tsx +72 -57
  894. package/src/stories/data-table.stories.tsx +31 -0
  895. package/src/stories/editor.stories.tsx +4 -1
  896. package/src/stories/layout/vertical/one-column.stories.tsx +60 -60
  897. package/src/stories/runtime-story.tsx +23 -17
  898. package/src/stories/theme.stories.tsx +4 -2
  899. package/src/theme/__tests__/islands-theme.test.tsx +276 -0
  900. package/src/theme/namespace.tsx +4 -3
  901. package/src/theme/useTheme.ts +71 -41
  902. package/src/utils/__tests__/{createReducer.test.ts → createReducer.test.tsx} +127 -1
  903. package/src/utils/__tests__/download.test.tsx +183 -23
  904. package/src/utils/__tests__/numbers.test.ts +57 -0
  905. package/src/utils/arrays.ts +1 -2
  906. package/src/utils/createReducer.ts +115 -79
  907. package/src/utils/download.ts +67 -6
  908. package/src/utils/errors.ts +0 -7
  909. package/src/utils/maps.ts +0 -3
  910. package/src/utils/numbers.ts +59 -9
  911. package/src/utils/objects.ts +1 -2
  912. package/src/utils/python-poet/poet.ts +12 -2
  913. package/src/utils/time.ts +10 -0
  914. package/src/utils/tracer.ts +9 -5
  915. package/dist/ErrorBoundary-D9enmz8P.js +0 -200
  916. package/dist/_baseMerge-BiGRwuqv.js +0 -165
  917. package/dist/architecture-7GRP2DOG-BWLylgiA.js +0 -3
  918. package/dist/assets/__vite-browser-external-35VXYmnw.js +0 -1
  919. package/dist/assets/worker-Dq8y-WM5.js +0 -114
  920. package/dist/classDiagram-ZZMXUADV-GTL0l5xS.js +0 -30
  921. package/dist/classDiagram-v2-VYDZK3BY-BWrM2ruI.js +0 -30
  922. package/dist/code-visibility-Bvoq03vz.js +0 -138
  923. package/dist/cynefin-OW5HDTMX-obq-i80l.js +0 -3
  924. package/dist/dropdown-menu-B_7xD2X4.js +0 -4686
  925. package/dist/duckdb-keywords-BGArYVVK.js +0 -3
  926. package/dist/eventmodeling-NTZA5JFV-D7nP7Uyu.js +0 -3
  927. package/dist/feedback-button-DqvOnyXT.js +0 -379
  928. package/dist/flowDiagram-HODETNUW-CjaeFeea.js +0 -16
  929. package/dist/gitGraph-4MIJSDKK-Dy9uQXGh.js +0 -3
  930. package/dist/hasIn-o2Us0uVx.js +0 -132
  931. package/dist/highlighted-body-KPVGNVTW-3Ziwfz-V.js +0 -38
  932. package/dist/html-to-image-CWdayGZU.js +0 -3251
  933. package/dist/info-A6RAGUB7-DKoayiHY.js +0 -3
  934. package/dist/isArrayLikeObject-BZl-15ir.js +0 -450
  935. package/dist/isEmpty-BSZ1LaUo.js +0 -35
  936. package/dist/isSymbol-kQcfYbNX.js +0 -8
  937. package/dist/label-BRnUC0NX.js +0 -281
  938. package/dist/linear-DWERh7eI.js +0 -252
  939. package/dist/mermaid-HWGCJPDP-Du3-HPQA.js +0 -2
  940. package/dist/packet-AYTQ26CC-Yw7ajchJ.js +0 -3
  941. package/dist/pick-CJeoxYOS.js +0 -51
  942. package/dist/pie-WAS4IAKB-BKdKOAkL.js +0 -3
  943. package/dist/precisionRound-DhAzeRcm.js +0 -49
  944. package/dist/purify.es-DMv5zIkJ.js +0 -866
  945. package/dist/radar-RG4KPBEZ-ScR_D_Ts.js +0 -3
  946. package/dist/railroad-74A4TZTK-DQvPSdo5.js +0 -3
  947. package/dist/railroad-abnf-HS5TGJTU-CsJQG2O8.js +0 -3
  948. package/dist/railroad-ebnf-LZEXJU2U-BgEobkSn.js +0 -3
  949. package/dist/railroad-peg-WCYAUIDC-DjLAjofI.js +0 -3
  950. package/dist/select-B0LRDH0g.js +0 -1344
  951. package/dist/semaphore-89jsoHtS.js +0 -44
  952. package/dist/stateDiagram-v2-MP3YSRHH-8LL6FrBe.js +0 -30
  953. package/dist/swimlanesDiagram-VR7AAH4N-BoMMtOPh.js +0 -30
  954. package/dist/toast-CFWpihJU.js +0 -1830
  955. package/dist/treeView-Q6P3EWNA-DuRV97YF.js +0 -3
  956. package/dist/treemap-WGGIJYW6-AsLq-uwC.js +0 -3
  957. package/dist/use-restore-focus-DBCITLeF.js +0 -6369
  958. package/dist/useDeepCompareMemoize-BpPWi3G3.js +0 -11
  959. package/dist/useLifecycle-Dum8WSXq.js +0 -169
  960. package/dist/useTheme-CfeaVw5D.js +0 -904
  961. package/dist/wardley-WFR3VGLG-Na-tFhQJ.js +0 -3
  962. package/src/components/chat/reasoning-accordion.tsx +0 -61
  963. package/src/components/chat/tool-call/tool-error-card.tsx +0 -81
  964. package/src/components/chat/tool-call/tool-history-row.tsx +0 -174
  965. package/src/components/editor/ai/__tests__/staged-cell-submission.test.ts +0 -106
  966. package/src/components/editor/ai/add-cell-with-ai.tsx +0 -506
  967. package/src/components/editor/ai/staged-cell-submission.ts +0 -46
  968. package/src/components/editor/alerts/connecting-alert.tsx +0 -27
  969. package/src/components/editor/alerts/stdin-blocking-alert.tsx +0 -61
  970. package/src/components/editor/cell/__tests__/StagedAICell.test.tsx +0 -64
  971. package/src/components/editor/cell/code/__tests__/rtc-editor-config.test.ts +0 -50
  972. package/src/components/editor/chrome/wrapper/footer-items/rtc-status.tsx +0 -65
  973. package/src/components/editor/navigation/__tests__/state.test.ts +0 -81
  974. package/src/components/editor/navigation/state.ts +0 -65
  975. package/src/components/icons/loading-ellipsis.tsx +0 -46
  976. package/src/core/ai/tools/__tests__/run-cells-tool.test.ts +0 -656
  977. package/src/core/ai/tools/run-cells-tool.ts +0 -303
  978. package/src/core/attachments/state.ts +0 -18
  979. package/src/core/cells/__tests__/__snapshots__/cells.test.ts.snap +0 -1325
  980. package/src/core/cells/__tests__/apply-transaction.test.ts +0 -991
  981. package/src/core/cells/__tests__/document-changes.test.ts +0 -1140
  982. package/src/core/cells/__tests__/document-roundtrip.test.ts +0 -392
  983. package/src/core/cells/document-changes.ts +0 -944
  984. package/src/core/codemirror/rtc/extension.ts +0 -453
  985. package/src/core/codemirror/rtc/loro/__tests__/sync.test.ts +0 -52
  986. package/src/core/codemirror/rtc/loro/awareness.ts +0 -531
  987. package/src/core/codemirror/rtc/loro/colors.ts +0 -38
  988. package/src/core/codemirror/rtc/loro/sync.ts +0 -168
  989. package/src/core/document/__tests__/submission.test.ts +0 -334
  990. package/src/core/host/AGENTS.md +0 -16
  991. package/src/core/host/__tests__/fixtures.ts +0 -41
  992. package/src/core/host/notebook-client.ts +0 -259
  993. package/src/core/network/__tests__/requests-lazy.test.ts +0 -334
  994. package/src/core/network/requests-lazy.ts +0 -226
  995. package/src/core/rtc/state.ts +0 -34
  996. package/src/core/wasm/worker/message-buffer.ts +0 -33
  997. package/src/core/websocket/__tests__/useNotebookClient.hook.test.tsx +0 -223
  998. package/src/core/websocket/__tests__/useNotebookSession.hook.test.tsx +0 -606
  999. package/src/core/websocket/state.ts +0 -7
  1000. package/src/core/websocket/useNotebookClient.ts +0 -89
  1001. package/src/utils/__tests__/id-tree.test.ts +0 -2145
  1002. package/src/utils/id-tree.tsx +0 -1134
  1003. /package/src/{core/attachments/toast.ts → components/editor/agent-toast.ts} +0 -0
  1004. /package/src/core/{host → notebook/replica}/__tests__/attachments.test.ts +0 -0
  1005. /package/src/core/{host → notebook/replica}/resources/attachments.ts +0 -0
@@ -1,28 +1,27 @@
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-BxB3RDjN.js";
3
- import { t as o } from "./react-sHtZdjeP.js";
4
- import { t as s } from "./compiler-runtime-CldRdSsv.js";
5
- import { h as c, t as l } from "./tooltip-CKO1pHJo.js";
6
- import { O as u } from "./error-entries-TAO6kEhF.js";
7
- import { Q as d, X as f, Z as p, an as m, cn as h, i as g, in as _, l as v, n as y, r as b, t as x, u as S } from "./common-iaqaS3Sy.js";
8
- import { M as C } from "./select-B0LRDH0g.js";
9
- import { q as ee } from "./dropdown-menu-B_7xD2X4.js";
10
- import { _ as w } from "./toDate-DKH0_kMo.js";
11
- import { t as T } from "./jsx-runtime-3BD1kT0s.js";
12
- import { q as E } from "./use-restore-focus-DBCITLeF.js";
13
- import { A as D, C as O, b as k } from "./useTheme-CfeaVw5D.js";
14
- import { a as A, n as te, t as ne } from "./code-visibility-Bvoq03vz.js";
1
+ import { a as e } from "./rolldown-runtime-BPCzCO3I.js";
2
+ import { g as t, h as n, i as r, m as i, t as a } from "./button-qQhINE7z.js";
3
+ import { t as o } from "./react-Bgs_wQh3.js";
4
+ import { t as s } from "./compiler-runtime-C5KHtL5D.js";
5
+ import { h as c, t as l } from "./tooltip-UzJukb3F.js";
6
+ import { Cn as u, En as d, Sn as f, dn as p, et as m, f as h, i as g, l as _, n as v, nt as y, r as b, t as x, tt as S, u as C } from "./common-Capdc2h_.js";
7
+ import { M as w } from "./select-CDUxhHZg.js";
8
+ import { X as T } from "./dropdown-menu-Dhv4fcNl.js";
9
+ import { t as E } from "./jsx-runtime-D8btoEHk.js";
10
+ import { Ht as D, f as O, i as k, zt as A } from "./use-restore-focus-DaTVz6S6.js";
11
+ import { t as j } from "./useEvent-BoN7U38T.js";
12
+ import { o as ee } from "./static-state-C4bAlKTU.js";
13
+ import { n as te, t as ne } from "./code-visibility-Ebrgx-u3.js";
15
14
  /* empty css */
16
- var j = c("sticky-note", [["path", {
15
+ var M = c("sticky-note", [["path", {
17
16
  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
17
  key: "1dfntj"
19
18
  }], ["path", {
20
19
  d: "M15 3v5a1 1 0 0 0 1 1h5",
21
20
  key: "6s6qgf"
22
- }]]), M = /* @__PURE__ */ e(o(), 1), N = s(), re = (e, t) => {
21
+ }]]), N = /* @__PURE__ */ e(o(), 1), P = s(), re = (e, t) => {
23
22
  for (let n in t) e[n] = t[n];
24
23
  return e;
25
- }, P = (e, t) => Array.from(e.querySelectorAll(t)), ie = (e, t, n) => {
24
+ }, F = (e, t) => Array.from(e.querySelectorAll(t)), ie = (e, t, n) => {
26
25
  n ? e.classList.add(t) : e.classList.remove(t);
27
26
  }, ae = (e) => {
28
27
  if (typeof e == "string") {
@@ -34,17 +33,17 @@ var j = c("sticky-note", [["path", {
34
33
  return e;
35
34
  }, oe = (e, t) => {
36
35
  e.style.transform = t;
37
- }, F = (e, t) => {
36
+ }, se = (e, t) => {
38
37
  let n = e.matches || e.matchesSelector || e.msMatchesSelector;
39
38
  return !!(n && n.call(e, t));
40
39
  }, I = (e, t) => {
41
40
  if (e && typeof e.closest == "function") return e.closest(t);
42
41
  for (; e;) {
43
- if (F(e, t)) return e;
42
+ if (se(e, t)) return e;
44
43
  e = e.parentElement;
45
44
  }
46
45
  return null;
47
- }, se = (e) => {
46
+ }, L = (e) => {
48
47
  e ||= document.documentElement;
49
48
  let t = e.requestFullscreen || e.webkitRequestFullscreen || e.webkitRequestFullScreen || e.mozRequestFullScreen || e.msRequestFullscreen;
50
49
  t && t.apply(e);
@@ -56,10 +55,10 @@ var j = c("sticky-note", [["path", {
56
55
  }
57
56
  let a = document.createElement(t);
58
57
  return a.className = n, a.innerHTML = r, e.appendChild(a), a;
59
- }, L = (e) => {
58
+ }, le = (e) => {
60
59
  let t = document.createElement("style");
61
60
  return e && e.length > 0 && t.appendChild(document.createTextNode(e)), document.head.appendChild(t), t;
62
- }, le = () => {
61
+ }, ue = () => {
63
62
  let e = {};
64
63
  location.search.replace(/[A-Z0-9]+?=([\w\.%-]*)/gi, (t) => {
65
64
  let n = t.split("=").shift(), r = t.split("=").pop();
@@ -70,24 +69,24 @@ var j = c("sticky-note", [["path", {
70
69
  e[t] = ae(unescape(n));
71
70
  }
72
71
  return e.dependencies !== void 0 && delete e.dependencies, e;
73
- }, ue = (e, t = 0) => {
72
+ }, de = (e, t = 0) => {
74
73
  if (e) {
75
74
  let n, r = e.style.height;
76
75
  return e.style.height = "0px", e.parentElement && (e.parentElement.style.height = "auto"), n = t - (e.parentElement?.offsetHeight || 0), e.style.height = r + "px", e.parentElement && e.parentElement.style.removeProperty("height"), n;
77
76
  }
78
77
  return t;
79
- }, de = {
78
+ }, fe = {
80
79
  mp4: "video/mp4",
81
80
  m4a: "video/mp4",
82
81
  ogv: "video/ogg",
83
82
  mpeg: "video/mpeg",
84
83
  webm: "video/webm"
85
- }, fe = (e = "") => {
84
+ }, pe = (e = "") => {
86
85
  let t = e.split(".").pop();
87
- return t ? de[t] : void 0;
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
- /chrome/i.test(me) && /edge/i.test(me);
90
- var R = /android/gi.test(me), ge = function(e) {
86
+ return t ? fe[t] : void 0;
87
+ }, me = (e = "") => encodeURI(e).replace(/%5B/g, "[").replace(/%5D/g, "]").replace(/[!'()*]/g, (e) => `%${e.charCodeAt(0).toString(16).toUpperCase()}`), he = navigator.userAgent, ge = /(iphone|ipod|ipad|android)/gi.test(he) || navigator.platform === "MacIntel" && navigator.maxTouchPoints > 1;
88
+ /chrome/i.test(he) && /edge/i.test(he);
89
+ var _e = /android/gi.test(he), ve = function(e) {
91
90
  if (e) {
92
91
  var t = function(e) {
93
92
  return [].slice.call(e);
@@ -166,17 +165,17 @@ var R = /android/gi.test(me), ge = function(e) {
166
165
  childList: !0,
167
166
  characterData: !0
168
167
  }
169
- }, ee = null, w = function() {
170
- e.clearTimeout(ee), ee = e.setTimeout(l(i), D.observeWindowDelay);
171
- }, T = ["resize", "orientationchange"];
172
- return Object.defineProperty(D, "observeWindow", { set: function(t) {
168
+ }, w = null, T = function() {
169
+ e.clearTimeout(w), w = e.setTimeout(l(i), O.observeWindowDelay);
170
+ }, E = ["resize", "orientationchange"];
171
+ return Object.defineProperty(O, "observeWindow", { set: function(t) {
173
172
  var n = `${t ? "add" : "remove"}EventListener`;
174
- T.forEach((function(t) {
175
- e[n](t, w);
173
+ E.forEach((function(t) {
174
+ e[n](t, T);
176
175
  }));
177
- } }), D.observeWindow = !0, D.observeWindowDelay = 100, D.fitAll = l(a), D;
176
+ } }), O.observeWindow = !0, O.observeWindowDelay = 100, O.fitAll = l(a), O;
178
177
  }
179
- function E(e, t) {
178
+ function D(e, t) {
180
179
  var n = Object.assign({}, C, t), r = e.map((function(e) {
181
180
  var t = Object.assign({}, n, {
182
181
  element: e,
@@ -198,44 +197,44 @@ var R = /android/gi.test(me), ge = function(e) {
198
197
  }));
199
198
  return c(), r;
200
199
  }
201
- function D(e) {
200
+ function O(e) {
202
201
  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];
202
+ return typeof e == "string" ? D(t(document.querySelectorAll(e)), n) : D([e], n)[0];
204
203
  }
205
204
  }(typeof window > "u" ? null : window);
206
- function _e(e) {
205
+ function R(e) {
207
206
  "@babel/helpers - typeof";
208
- return _e = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
207
+ return R = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
209
208
  return typeof e;
210
209
  } : function(e) {
211
210
  return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
212
- }, _e(e);
211
+ }, R(e);
213
212
  }
214
- function ve(e, t) {
215
- if (_e(e) != "object" || !e) return e;
213
+ function ye(e, t) {
214
+ if (R(e) != "object" || !e) return e;
216
215
  var n = e[Symbol.toPrimitive];
217
216
  if (n !== void 0) {
218
217
  var r = n.call(e, t || "default");
219
- if (_e(r) != "object") return r;
218
+ if (R(r) != "object") return r;
220
219
  throw TypeError("@@toPrimitive must return a primitive value.");
221
220
  }
222
221
  return (t === "string" ? String : Number)(e);
223
222
  }
224
- function ye(e) {
225
- var t = ve(e, "string");
226
- return _e(t) == "symbol" ? t : t + "";
223
+ function be(e) {
224
+ var t = ye(e, "string");
225
+ return R(t) == "symbol" ? t : t + "";
227
226
  }
228
- function z(e, t, n) {
229
- return (t = ye(t)) in e ? Object.defineProperty(e, t, {
227
+ function xe(e, t, n) {
228
+ return (t = be(t)) in e ? Object.defineProperty(e, t, {
230
229
  value: n,
231
230
  enumerable: !0,
232
231
  configurable: !0,
233
232
  writable: !0
234
233
  }) : e[t] = n, e;
235
234
  }
236
- var be = class {
235
+ var Se = class {
237
236
  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();
237
+ xe(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
238
  }
240
239
  renderMediaPlayButton() {
241
240
  this.mediaPlayButton = document.createElement("button"), this.mediaPlayButton.className = "r-overlay-button r-media-play-button", this.mediaPlayButton.addEventListener("click", () => {
@@ -259,14 +258,14 @@ var be = class {
259
258
  let t = n.replace(/\s*!important\s*$/, "").trim();
260
259
  e.style.setProperty("display", t, "important");
261
260
  } else e.style.display = n;
262
- P(e, "img[data-src], video[data-src], audio[data-src], iframe[data-src]").forEach((e) => {
261
+ F(e, "img[data-src], video[data-src], audio[data-src], iframe[data-src]").forEach((e) => {
263
262
  let t = e.tagName === "IFRAME";
264
263
  (!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) => {
264
+ }), F(e, "video, audio").forEach((e) => {
266
265
  let t = 0;
267
- P(e, "source[data-src]").forEach((e) => {
266
+ F(e, "source[data-src]").forEach((e) => {
268
267
  e.setAttribute("src", e.getAttribute("data-src")), e.removeAttribute("data-src"), e.setAttribute("data-lazy-loaded", ""), t += 1;
269
- }), he && e.tagName === "VIDEO" && e.setAttribute("playsinline", ""), t > 0 && e.load();
268
+ }), ge && e.tagName === "VIDEO" && e.setAttribute("playsinline", ""), t > 0 && e.load();
270
269
  });
271
270
  let r = e.slideBackgroundElement;
272
271
  if (r) {
@@ -275,13 +274,13 @@ var be = class {
275
274
  if (r.hasAttribute("data-loaded") === !1) {
276
275
  r.setAttribute("data-loaded", "true");
277
276
  let a = e.getAttribute("data-background-image"), o = e.getAttribute("data-background-video"), s = e.hasAttribute("data-background-video-loop"), c = e.hasAttribute("data-background-video-muted");
278
- if (a) /^data:/.test(a.trim()) ? n.style.backgroundImage = `url(${a.trim()})` : n.style.backgroundImage = a.split(",").map((e) => `url(${pe(decodeURI(e.trim()))})`).join(",");
277
+ if (a) /^data:/.test(a.trim()) ? n.style.backgroundImage = `url(${a.trim()})` : n.style.backgroundImage = a.split(",").map((e) => `url(${me(decodeURI(e.trim()))})`).join(",");
279
278
  else if (o) {
280
279
  let e = document.createElement("video");
281
- s && e.setAttribute("loop", ""), (c || this.Reveal.isSpeakerNotes()) && (e.muted = !0), he && e.setAttribute("playsinline", ""), o.split(",").forEach((t) => {
280
+ s && e.setAttribute("loop", ""), (c || this.Reveal.isSpeakerNotes()) && (e.muted = !0), ge && e.setAttribute("playsinline", ""), o.split(",").forEach((t) => {
282
281
  let n = document.createElement("source");
283
282
  n.setAttribute("src", t);
284
- let r = fe(t);
283
+ let r = pe(t);
285
284
  r && n.setAttribute("type", r), e.appendChild(n);
286
285
  }), n.appendChild(e);
287
286
  } else if (i && t.excludeIframes !== !0) {
@@ -296,7 +295,7 @@ var be = class {
296
295
  }
297
296
  layout(e) {
298
297
  Array.from(e.querySelectorAll(".r-fit-text")).forEach((e) => {
299
- ge(e, {
298
+ ve(e, {
300
299
  minSize: 24,
301
300
  maxSize: this.Reveal.getConfig().height * .8,
302
301
  observeMutations: !1,
@@ -307,17 +306,17 @@ var be = class {
307
306
  unload(e) {
308
307
  e.style.display = "none";
309
308
  let t = this.Reveal.getSlideBackground(e);
310
- t && (t.style.display = "none", P(t, "iframe[src]").forEach((e) => {
309
+ t && (t.style.display = "none", F(t, "iframe[src]").forEach((e) => {
311
310
  e.removeAttribute("src");
312
- })), P(e, "video[data-lazy-loaded][src], audio[data-lazy-loaded][src], iframe[data-lazy-loaded][src]").forEach((e) => {
311
+ })), F(e, "video[data-lazy-loaded][src], audio[data-lazy-loaded][src], iframe[data-lazy-loaded][src]").forEach((e) => {
313
312
  e.setAttribute("data-src", e.getAttribute("src")), e.removeAttribute("src");
314
- }), P(e, "video[data-lazy-loaded] source[src], audio source[src]").forEach((e) => {
313
+ }), F(e, "video[data-lazy-loaded] source[src], audio source[src]").forEach((e) => {
315
314
  e.setAttribute("data-src", e.getAttribute("src")), e.removeAttribute("src");
316
315
  });
317
316
  }
318
317
  formatEmbeddedContent() {
319
318
  let e = (e, t, n) => {
320
- P(this.Reveal.getSlidesElement(), "iframe[" + e + "*=\"" + t + "\"]").forEach((t) => {
319
+ F(this.Reveal.getSlidesElement(), "iframe[" + e + "*=\"" + t + "\"]").forEach((t) => {
321
320
  let r = t.getAttribute(e);
322
321
  r && r.indexOf(n) === -1 && t.setAttribute(e, r + (/\?/.test(r) ? "&" : "?") + n);
323
322
  });
@@ -327,18 +326,18 @@ var be = class {
327
326
  startEmbeddedContent(e) {
328
327
  if (e) {
329
328
  let t = this.Reveal.isSpeakerNotes();
330
- P(e, "img[src$=\".gif\"]").forEach((e) => {
329
+ F(e, "img[src$=\".gif\"]").forEach((e) => {
331
330
  e.setAttribute("src", e.getAttribute("src"));
332
- }), P(e, "video, audio").forEach((e) => {
331
+ }), F(e, "video, audio").forEach((e) => {
333
332
  if (I(e, ".fragment") && !I(e, ".fragment.visible")) return;
334
333
  let n = this.Reveal.getConfig().autoPlayMedia;
335
334
  if (typeof n != "boolean" && (n = e.hasAttribute("data-autoplay") || !!I(e, ".slide-background")), n && typeof e.play == "function") {
336
335
  if (t && !e.muted) return;
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));
336
+ e.readyState > 1 ? this.startEmbeddedMedia({ target: e }) : ge ? (e.addEventListener("canplay", this.ensureMobileMediaPlaying), this.playMediaElement(e)) : (e.removeEventListener("loadeddata", this.startEmbeddedMedia), e.addEventListener("loadeddata", this.startEmbeddedMedia));
338
337
  }
339
- }), t || (P(e, "iframe[src]").forEach((e) => {
338
+ }), t || (F(e, "iframe[src]").forEach((e) => {
340
339
  I(e, ".fragment") && !I(e, ".fragment.visible") || this.startEmbeddedIframe({ target: e });
341
- }), P(e, "iframe[data-src]").forEach((e) => {
340
+ }), F(e, "iframe[data-src]").forEach((e) => {
342
341
  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
342
  }));
344
343
  }
@@ -381,15 +380,15 @@ var be = class {
381
380
  }
382
381
  }
383
382
  stopEmbeddedContent(e, t = {}) {
384
- t = re({ unloadIframes: !0 }, t), e && e.parentNode && (P(e, "video, audio").forEach((e) => {
385
- !e.hasAttribute("data-ignore") && typeof e.pause == "function" && (e.setAttribute("data-paused-by-reveal", ""), e.pause(), he && e.removeEventListener("canplay", this.ensureMobileMediaPlaying));
386
- }), P(e, "iframe").forEach((e) => {
383
+ t = re({ unloadIframes: !0 }, t), e && e.parentNode && (F(e, "video, audio").forEach((e) => {
384
+ !e.hasAttribute("data-ignore") && typeof e.pause == "function" && (e.setAttribute("data-paused-by-reveal", ""), e.pause(), ge && e.removeEventListener("canplay", this.ensureMobileMediaPlaying));
385
+ }), F(e, "iframe").forEach((e) => {
387
386
  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) => {
387
+ }), F(e, "iframe[src*=\"youtube.com/embed/\"]").forEach((e) => {
389
388
  !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) => {
389
+ }), F(e, "iframe[src*=\"player.vimeo.com/\"]").forEach((e) => {
391
390
  !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) => {
391
+ }), t.unloadIframes === !0 && F(e, "iframe[data-src]").forEach((e) => {
393
392
  e.setAttribute("src", "about:blank"), e.removeAttribute("src");
394
393
  }));
395
394
  }
@@ -433,7 +432,7 @@ var be = class {
433
432
  afterSlideChanged() {
434
433
  this.clearMediaPlaybackErrors();
435
434
  }
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 {
435
+ }, z = ".slides section", B = ".slides>section", Ce = ".slides>section.present>section", we = ".backgrounds>.slide-background", Te = /registerPlugin|registerKeyboardShortcut|addKeyBinding|addEventListener|showPreview|previewIframe/, Ee = class {
437
436
  constructor(e) {
438
437
  this.Reveal = e;
439
438
  }
@@ -482,7 +481,7 @@ var be = class {
482
481
  destroy() {
483
482
  this.element.remove();
484
483
  }
485
- }, V = class {
484
+ }, De = class {
486
485
  constructor(e) {
487
486
  this.Reveal = e, this.onInput = this.onInput.bind(this), this.onBlur = this.onBlur.bind(this), this.onKeyDown = this.onKeyDown.bind(this);
488
487
  }
@@ -535,7 +534,7 @@ var be = class {
535
534
  onBlur() {
536
535
  setTimeout(() => this.hide(), 1);
537
536
  }
538
- }, Ee = (e) => {
537
+ }, V = (e) => {
539
538
  let t = e.match(/^#([0-9a-f]{3})$/i);
540
539
  if (t && t[1]) {
541
540
  let e = t[1];
@@ -567,7 +566,7 @@ var be = class {
567
566
  b: parseInt(i[3], 10),
568
567
  a: parseFloat(i[4])
569
568
  } : null;
570
- }, De = (e) => (typeof e == "string" && (e = Ee(e)), e ? (e.r * 299 + e.g * 587 + e.b * 114) / 1e3 : null), Oe = class {
569
+ }, H = (e) => (typeof e == "string" && (e = V(e)), e ? (e.r * 299 + e.g * 587 + e.b * 114) / 1e3 : null), Oe = class {
571
570
  constructor(e) {
572
571
  this.Reveal = e;
573
572
  }
@@ -577,7 +576,7 @@ var be = class {
577
576
  create() {
578
577
  this.element.innerHTML = "", this.element.classList.add("no-transition"), this.Reveal.getHorizontalSlides().forEach((e) => {
579
578
  let t = this.createBackground(e, this.element);
580
- P(e, "section").forEach((e) => {
579
+ F(e, "section").forEach((e) => {
581
580
  this.createBackground(e, t), t.classList.add("stack");
582
581
  });
583
582
  }), 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 +609,13 @@ var be = class {
610
609
  }
611
610
  getContrastClass(e) {
612
611
  let t = e.slideBackgroundElement, n = e.getAttribute("data-background-color");
613
- if (!n || !Ee(n)) {
612
+ if (!n || !V(n)) {
614
613
  let e = window.getComputedStyle(t);
615
614
  e && e.backgroundColor && (n = e.backgroundColor);
616
615
  }
617
616
  if (n) {
618
- let e = Ee(n);
619
- if (e && e.a !== 0) return De(n) < 128 ? "has-dark-background" : "has-light-background";
617
+ let e = V(n);
618
+ if (e && e.a !== 0) return H(n) < 128 ? "has-dark-background" : "has-light-background";
620
619
  }
621
620
  return null;
622
621
  }
@@ -628,7 +627,7 @@ var be = class {
628
627
  update(e = !1) {
629
628
  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
629
  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) => {
630
+ 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) && F(t, ".slide-background").forEach((e, t) => {
632
631
  e.classList.remove("past", "present", "future");
633
632
  let a = typeof r.v == "number" ? r.v : 0;
634
633
  t < a ? e.classList.add("past") : t > a ? e.classList.add("future") : (e.classList.add("present"), n === r.h && (i = e));
@@ -680,7 +679,7 @@ var be = class {
680
679
  this.reset();
681
680
  let n = this.Reveal.getSlides(), r = n.indexOf(t), i = n.indexOf(e);
682
681
  if (e && t && e.hasAttribute("data-auto-animate") && t.hasAttribute("data-auto-animate") && e.getAttribute("data-auto-animate-id") === t.getAttribute("data-auto-animate-id") && !(r > i ? t : e).hasAttribute("data-auto-animate-restart")) {
683
- this.autoAnimateStyleSheet = this.autoAnimateStyleSheet || L();
682
+ this.autoAnimateStyleSheet = this.autoAnimateStyleSheet || le();
684
683
  let n = this.getAutoAnimateOptions(t);
685
684
  e.dataset.autoAnimate = "pending", t.dataset.autoAnimate = "pending", n.slideDirection = r > i ? "forward" : "backward";
686
685
  let a = e.style.display === "none";
@@ -706,9 +705,9 @@ var be = class {
706
705
  }
707
706
  }
708
707
  reset() {
709
- P(this.Reveal.getRevealElement(), "[data-auto-animate]:not([data-auto-animate=\"\"])").forEach((e) => {
708
+ F(this.Reveal.getRevealElement(), "[data-auto-animate]:not([data-auto-animate=\"\"])").forEach((e) => {
710
709
  e.dataset.autoAnimate = "";
711
- }), P(this.Reveal.getRevealElement(), "[data-auto-animate-target]").forEach((e) => {
710
+ }), F(this.Reveal.getRevealElement(), "[data-auto-animate-target]").forEach((e) => {
712
711
  delete e.dataset.autoAnimateTarget;
713
712
  }), this.autoAnimateStyleSheet && this.autoAnimateStyleSheet.parentNode && (this.autoAnimateStyleSheet.parentNode.removeChild(this.autoAnimateStyleSheet), this.autoAnimateStyleSheet = null);
714
713
  }
@@ -793,7 +792,7 @@ var be = class {
793
792
  getAutoAnimatePairs(e, t) {
794
793
  let n = [], r = "h1, h2, h3, h4, h5, h6, p, li";
795
794
  return this.findAutoAnimateMatches(n, e, t, "[data-id]", (e) => e.nodeName + ":::" + e.getAttribute("data-id")), this.findAutoAnimateMatches(n, e, t, r, (e) => e.nodeName + ":::" + e.textContent.trim()), this.findAutoAnimateMatches(n, e, t, "img, video, iframe", (e) => e.nodeName + ":::" + (e.getAttribute("src") || e.getAttribute("data-src"))), this.findAutoAnimateMatches(n, e, t, "pre", (e) => e.nodeName + ":::" + e.textContent.trim()), n.forEach((e) => {
796
- F(e.from, r) ? e.options = { scale: !1 } : F(e.from, "pre") && (e.options = {
795
+ se(e.from, r) ? e.options = { scale: !1 } : se(e.from, "pre") && (e.options = {
797
796
  scale: !1,
798
797
  styles: ["width", "height"]
799
798
  }, this.findAutoAnimateMatches(n, e.from, e.to, ".hljs .hljs-ln-code", (e) => e.textContent, {
@@ -850,7 +849,7 @@ var be = class {
850
849
  if (this.active) return;
851
850
  let e = this.Reveal.getState();
852
851
  this.active = !0, this.slideHTMLBeforeActivation = this.Reveal.getSlidesElement().innerHTML;
853
- let t = P(this.Reveal.getRevealElement(), xe), n = P(this.Reveal.getRevealElement(), Ce);
852
+ let t = F(this.Reveal.getRevealElement(), B), n = F(this.Reveal.getRevealElement(), we);
854
853
  this.viewportElement.classList.add("loading-scroll-mode", "reveal-scroll");
855
854
  let r, i = window.getComputedStyle(this.viewportElement);
856
855
  i && i.background && (r = i.background);
@@ -872,7 +871,7 @@ var be = class {
872
871
  this.Reveal.isVerticalStack(e) ? e.querySelectorAll("section").forEach((e, n) => {
873
872
  c(e, t, n, !0);
874
873
  }) : 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 });
874
+ }, this), this.createProgressBar(), F(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
875
  }
877
876
  deactivate() {
878
877
  if (!this.active) return;
@@ -1080,7 +1079,7 @@ function Ie(e, t, n, r, i, a, o) {
1080
1079
  }
1081
1080
  s.done ? t(c) : Promise.resolve(c).then(r, i);
1082
1081
  }
1083
- function Le(e) {
1082
+ function U(e) {
1084
1083
  return function() {
1085
1084
  var t = this, n = arguments;
1086
1085
  return new Promise(function(r, i) {
@@ -1095,15 +1094,15 @@ function Le(e) {
1095
1094
  });
1096
1095
  };
1097
1096
  }
1098
- var Re = class {
1097
+ var Le = class {
1099
1098
  constructor(e) {
1100
1099
  this.Reveal = e;
1101
1100
  }
1102
1101
  activate() {
1103
1102
  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;
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";
1103
+ return U(function* () {
1104
+ let t = e.Reveal.getConfig(), n = F(e.Reveal.getRevealElement(), z), r = t.slideNumber && /all|print/i.test(t.showSlideNumber), i = e.Reveal.getComputedSlideSize(window.innerWidth, window.innerHeight), a = Math.floor(i.width * (1 + t.margin)), o = Math.floor(i.height * (1 + t.margin)), s = i.width, c = i.height;
1105
+ yield new Promise(requestAnimationFrame), le("@page{size:" + a + "px " + o + "px; margin: 0px;}"), le(".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
1106
  let l = e.Reveal.getViewportElement(), u;
1108
1107
  if (l) {
1109
1108
  let e = window.getComputedStyle(l);
@@ -1146,7 +1145,7 @@ var Re = class {
1146
1145
  e.classList.remove("visible", "current-fragment");
1147
1146
  });
1148
1147
  });
1149
- } else P(g, ".fragment:not(.fade-out)").forEach(function(e) {
1148
+ } else F(g, ".fragment:not(.fade-out)").forEach(function(e) {
1150
1149
  e.classList.add("visible");
1151
1150
  });
1152
1151
  }
@@ -1156,7 +1155,7 @@ var Re = class {
1156
1155
  isActive() {
1157
1156
  return this.Reveal.getConfig().view === "print";
1158
1157
  }
1159
- }, ze = class {
1158
+ }, Re = class {
1160
1159
  constructor(e) {
1161
1160
  this.Reveal = e;
1162
1161
  }
@@ -1164,12 +1163,12 @@ var Re = class {
1164
1163
  e.fragments === !1 ? this.disable() : t.fragments === !1 && this.enable();
1165
1164
  }
1166
1165
  disable() {
1167
- P(this.Reveal.getSlidesElement(), ".fragment").forEach((e) => {
1166
+ F(this.Reveal.getSlidesElement(), ".fragment").forEach((e) => {
1168
1167
  e.classList.add("visible"), e.classList.remove("current-fragment");
1169
1168
  });
1170
1169
  }
1171
1170
  enable() {
1172
- P(this.Reveal.getSlidesElement(), ".fragment").forEach((e) => {
1171
+ F(this.Reveal.getSlidesElement(), ".fragment").forEach((e) => {
1173
1172
  e.classList.remove("visible"), e.classList.remove("current-fragment");
1174
1173
  });
1175
1174
  }
@@ -1205,7 +1204,7 @@ var Re = class {
1205
1204
  }
1206
1205
  sortAll() {
1207
1206
  this.Reveal.getHorizontalSlides().forEach((e) => {
1208
- let t = P(e, "section");
1207
+ let t = F(e, "section");
1209
1208
  t.forEach((e, t) => {
1210
1209
  this.sort(e.querySelectorAll(".fragment"));
1211
1210
  }, this), t.length === 0 && this.sort(e.querySelectorAll(".fragment"));
@@ -1279,13 +1278,13 @@ var Re = class {
1279
1278
  prev() {
1280
1279
  return this.goto(null, -1);
1281
1280
  }
1282
- }, Be = class {
1281
+ }, ze = class {
1283
1282
  constructor(e) {
1284
1283
  this.Reveal = e, this.active = !1, this.onSlideClicked = this.onSlideClicked.bind(this);
1285
1284
  }
1286
1285
  activate() {
1287
1286
  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) => {
1287
+ this.active = !0, this.Reveal.getRevealElement().classList.add("overview"), this.Reveal.cancelAutoSlide(), this.Reveal.getSlidesElement().appendChild(this.Reveal.getBackgroundsElement()), F(this.Reveal.getRevealElement(), z).forEach((e) => {
1289
1288
  e.classList.contains("stack") || e.addEventListener("click", this.onSlideClicked, !0);
1290
1289
  });
1291
1290
  let e = this.Reveal.getComputedSlideSize();
@@ -1303,11 +1302,11 @@ var Re = class {
1303
1302
  }
1304
1303
  layout() {
1305
1304
  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) => {
1305
+ e.setAttribute("data-index-h", t), oe(e, "translate3d(" + t * this.overviewSlideWidth + "px, 0, 0)"), e.classList.contains("stack") && F(e, "section").forEach((e, n) => {
1307
1306
  e.setAttribute("data-index-h", t), e.setAttribute("data-index-v", n), oe(e, "translate3d(0, " + n * this.overviewSlideHeight + "px, 0)");
1308
1307
  });
1309
1308
  }), 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) => {
1309
+ oe(e, "translate3d(" + t * this.overviewSlideWidth + "px, 0, 0)"), F(e, ".slide-background").forEach((e, t) => {
1311
1310
  oe(e, "translate3d(0, " + t * this.overviewSlideHeight + "px, 0)");
1312
1311
  });
1313
1312
  });
@@ -1324,9 +1323,9 @@ var Re = class {
1324
1323
  if (this.Reveal.getConfig().overview) {
1325
1324
  this.active = !1, this.Reveal.getRevealElement().classList.remove("overview"), this.Reveal.getRevealElement().classList.add("overview-deactivating"), setTimeout(() => {
1326
1325
  this.Reveal.getRevealElement().classList.remove("overview-deactivating");
1327
- }, 1), this.Reveal.getRevealElement().appendChild(this.Reveal.getBackgroundsElement()), P(this.Reveal.getRevealElement(), B).forEach((e) => {
1326
+ }, 1), this.Reveal.getRevealElement().appendChild(this.Reveal.getBackgroundsElement()), F(this.Reveal.getRevealElement(), z).forEach((e) => {
1328
1327
  oe(e, ""), e.removeEventListener("click", this.onSlideClicked, !0);
1329
- }), P(this.Reveal.getBackgroundsElement(), ".slide-background").forEach((e) => {
1328
+ }), F(this.Reveal.getBackgroundsElement(), ".slide-background").forEach((e) => {
1330
1329
  oe(e, "");
1331
1330
  }), this.Reveal.transformSlides({ overview: "" });
1332
1331
  let e = this.Reveal.getIndices();
@@ -1357,7 +1356,7 @@ var Re = class {
1357
1356
  }
1358
1357
  }
1359
1358
  }
1360
- }, Ve = class {
1359
+ }, Be = class {
1361
1360
  constructor(e) {
1362
1361
  this.Reveal = e, this.shortcuts = {}, this.bindings = {}, this.onDocumentKeyDown = this.onDocumentKeyDown.bind(this);
1363
1362
  }
@@ -1447,10 +1446,10 @@ var Re = class {
1447
1446
  66,
1448
1447
  86,
1449
1448
  190
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();
1449
+ ].includes(n) || n === 191 && !e.shiftKey ? this.Reveal.togglePause() : n === 70 ? L(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
1450
  }
1452
1451
  };
1453
- function H(e, t) {
1452
+ function Ve(e, t) {
1454
1453
  var n = Object.keys(e);
1455
1454
  if (Object.getOwnPropertySymbols) {
1456
1455
  var r = Object.getOwnPropertySymbols(e);
@@ -1460,20 +1459,20 @@ function H(e, t) {
1460
1459
  }
1461
1460
  return n;
1462
1461
  }
1463
- function U(e) {
1462
+ function He(e) {
1464
1463
  for (var t = 1; t < arguments.length; t++) {
1465
1464
  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) {
1465
+ t % 2 ? Ve(Object(n), !0).forEach(function(t) {
1466
+ xe(e, t, n[t]);
1467
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Ve(Object(n)).forEach(function(t) {
1469
1468
  Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
1470
1469
  });
1471
1470
  }
1472
1471
  return e;
1473
1472
  }
1474
- var He = class {
1473
+ var Ue = class {
1475
1474
  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);
1475
+ xe(this, "MAX_REPLACE_STATE_FREQUENCY", 1e3), this.Reveal = e, this.writeURLTimeout = 0, this.replaceStateTimestamp = 0, this.onWindowHashChange = this.onWindowHashChange.bind(this);
1477
1476
  }
1478
1477
  bind() {
1479
1478
  window.addEventListener("hashchange", this.onWindowHashChange, !1);
@@ -1490,7 +1489,7 @@ var He = class {
1490
1489
  let t = decodeURIComponent(n);
1491
1490
  e = (document.getElementById(t) || document.querySelector(`[data-id="${t}"]`)).closest(".slides section");
1492
1491
  } catch {}
1493
- if (e) return U(U({}, this.Reveal.getIndices(e)), {}, { f: t });
1492
+ if (e) return He(He({}, this.Reveal.getIndices(e)), {}, { f: t });
1494
1493
  } else {
1495
1494
  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
1495
  return e.fragmentInURL && (o = parseInt(r[2], 10), isNaN(o) && (o = void 0)), {
@@ -1533,7 +1532,7 @@ var He = class {
1533
1532
  onWindowHashChange(e) {
1534
1533
  this.readURL();
1535
1534
  }
1536
- }, Ue = class {
1535
+ }, We = class {
1537
1536
  constructor(e) {
1538
1537
  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
1538
  }
@@ -1542,7 +1541,7 @@ var He = class {
1542
1541
  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
1542
  <button class="navigate-right" aria-label="${e ? "previous slide" : "next slide"}"><div class="controls-arrow"></div></button>
1544
1543
  <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");
1544
+ <button class="navigate-down" aria-label="below slide"><div class="controls-arrow"></div></button>`, this.Reveal.getRevealElement().appendChild(this.element), this.controlsLeft = F(t, ".navigate-left"), this.controlsRight = F(t, ".navigate-right"), this.controlsUp = F(t, ".navigate-up"), this.controlsDown = F(t, ".navigate-down"), this.controlsPrev = F(t, ".navigate-prev"), this.controlsNext = F(t, ".navigate-next"), this.controlsFullscreen = F(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
1545
  }
1547
1546
  configure(e, t) {
1548
1547
  let n = e.controls === "speaker" || e.controls === "speaker-only";
@@ -1550,7 +1549,7 @@ var He = class {
1550
1549
  }
1551
1550
  bind() {
1552
1551
  let e = ["touchstart", "click"];
1553
- R && (e = ["touchend"]), e.forEach((e) => {
1552
+ _e && (e = ["touchend"]), e.forEach((e) => {
1554
1553
  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
1554
  });
1556
1555
  }
@@ -1634,9 +1633,9 @@ var He = class {
1634
1633
  }
1635
1634
  onEnterFullscreen(e) {
1636
1635
  let t = this.Reveal.getConfig(), n = this.Reveal.getViewportElement();
1637
- se(t.embedded ? n : n.parentElement);
1636
+ L(t.embedded ? n : n.parentElement);
1638
1637
  }
1639
- }, We = class {
1638
+ }, Ge = class {
1640
1639
  constructor(e) {
1641
1640
  this.Reveal = e, this.onProgressClicked = this.onProgressClicked.bind(this);
1642
1641
  }
@@ -1671,7 +1670,7 @@ var He = class {
1671
1670
  destroy() {
1672
1671
  this.element.remove();
1673
1672
  }
1674
- }, Ge = class {
1673
+ }, Ke = class {
1675
1674
  constructor(e) {
1676
1675
  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
1676
  }
@@ -1697,7 +1696,7 @@ var He = class {
1697
1696
  t > 0 ? this.Reveal.next() : t < 0 && this.Reveal.prev();
1698
1697
  }
1699
1698
  }
1700
- }, Ke = (e, t) => {
1699
+ }, qe = (e, t) => {
1701
1700
  let n = document.createElement("script");
1702
1701
  n.type = "text/javascript", n.async = !1, n.defer = !1, n.src = e, typeof t == "function" && (n.onload = (e) => {
1703
1702
  e.type === "load" && (n.onload = n.onerror = null, t());
@@ -1706,7 +1705,7 @@ var He = class {
1706
1705
  });
1707
1706
  let r = document.querySelector("head");
1708
1707
  r && r.insertBefore(n, r.lastChild);
1709
- }, qe = class {
1708
+ }, Je = class {
1710
1709
  constructor(e) {
1711
1710
  this.Reveal = e, this.state = "idle", this.registeredPlugins = {}, this.asyncDependencies = [];
1712
1711
  }
@@ -1721,7 +1720,7 @@ var He = class {
1721
1720
  t && typeof t.callback == "function" && t.callback(), --r === 0 && this.initPlugins().then(e);
1722
1721
  };
1723
1722
  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());
1723
+ 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
1724
  });
1726
1725
  } else this.initPlugins().then(e);
1727
1726
  });
@@ -1746,7 +1745,7 @@ var He = class {
1746
1745
  }
1747
1746
  loadAsync() {
1748
1747
  return this.state = "loaded", this.asyncDependencies.length && this.asyncDependencies.forEach((e) => {
1749
- Ke(e.src, e.callback);
1748
+ qe(e.src, e.callback);
1750
1749
  }), Promise.resolve();
1751
1750
  }
1752
1751
  registerPlugin(e) {
@@ -1768,7 +1767,7 @@ var He = class {
1768
1767
  typeof e.destroy == "function" && e.destroy();
1769
1768
  }), this.registeredPlugins = {}, this.asyncDependencies = [];
1770
1769
  }
1771
- }, Je = class {
1770
+ }, Ye = class {
1772
1771
  constructor(e) {
1773
1772
  this.Reveal = e, this.onSlidesClicked = this.onSlidesClicked.bind(this), this.iframeTriggerSelector = null, this.mediaTriggerSelector = "[data-preview-image], [data-preview-video]", this.stateProps = [
1774
1773
  "previewIframe",
@@ -1916,7 +1915,7 @@ var He = class {
1916
1915
  destroy() {
1917
1916
  this.close();
1918
1917
  }
1919
- }, Ye = 40, Xe = 1.03, Ze = class {
1918
+ }, W = 40, Xe = 1.03, Ze = class {
1920
1919
  constructor(e) {
1921
1920
  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
1921
  }
@@ -1929,7 +1928,7 @@ var He = class {
1929
1928
  e.removeEventListener("pointerdown", this.onPointerDown, !1), e.removeEventListener("pointermove", this.onPointerMove, !1), e.removeEventListener("pointerup", this.onPointerUp, !1), e.removeEventListener("pointercancel", this.onPointerCancel, !1), e.removeEventListener("touchstart", this.onTouchStart, !1), e.removeEventListener("touchmove", this.onTouchMove, !1), e.removeEventListener("touchend", this.onTouchEnd, !1);
1930
1929
  }
1931
1930
  isSwipePrevented(e) {
1932
- if (F(e, "video[controls], audio[controls]")) return !0;
1931
+ if (se(e, "video[controls], audio[controls]")) return !0;
1933
1932
  for (; e && typeof e.hasAttribute == "function";) {
1934
1933
  if (e.hasAttribute("data-prevent-swipe")) return !0;
1935
1934
  e = e.parentNode;
@@ -1948,13 +1947,13 @@ var He = class {
1948
1947
  onTouchMove(e) {
1949
1948
  if (this.isSwipePrevented(e.target)) return !0;
1950
1949
  let t = this.Reveal.getConfig();
1951
- if (this.touchCaptured) R && e.preventDefault();
1950
+ if (this.touchCaptured) _e && e.preventDefault();
1952
1951
  else {
1953
1952
  this.Reveal.onUserInput(e);
1954
1953
  let n = e.touches[0].clientX, r = e.touches[0].clientY;
1955
1954
  if (e.touches.length === 1 && this.touchStartCount !== 2) {
1956
1955
  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();
1956
+ a > W && 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 > W && 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
1957
  }
1959
1958
  }
1960
1959
  }
@@ -2167,19 +2166,19 @@ function at(e, t) {
2167
2166
  }, d = [], f = 1, p = {
2168
2167
  layout: "",
2169
2168
  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);
2171
- function de(a) {
2169
+ }, m = {}, h = "idle", g = 0, _, v = 0, y = -1, b = !1, x = new Se(n), S = new Ee(n), C = new De(n), w = new Ae(n), T = new Oe(n), E = new Fe(n), D = new Le(n), O = new Re(n), k = new ze(n), A = new Be(n), j = new Ue(n), ee = new We(n), te = new Ge(n), ne = new Ke(n), M = new Je(n), N = new Ye(n), P = new et(n), se = new Ze(n), L = new tt(n);
2170
+ function le(a) {
2172
2171
  if (!e) throw "Unable to find presentation root (<div class=\"reveal\">).";
2173
2172
  if (i) throw "Reveal.js has already been initialized.";
2174
2173
  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));
2174
+ return r = He(He(He(He(He({}, rt), r), t), a), ue()), /print-pdf/gi.test(window.location.search) && (r.view = "print"), fe(), window.addEventListener("load", W, !1), M.load(r.plugins, r.dependencies).then(pe), new Promise((e) => n.on("ready", e));
2176
2175
  }
2177
2176
  function fe() {
2178
2177
  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
2178
  }
2180
2179
  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({
2180
+ i !== !1 && (a = !0, he(), _e(), V(), xe(), we(), St(), H(), T.update(!0), me(), j.readURL(), setTimeout(() => {
2181
+ m.slides.classList.remove("no-transition"), m.wrapper.classList.add("ready"), U({
2183
2182
  type: "ready",
2184
2183
  data: {
2185
2184
  indexh: o,
@@ -2191,22 +2190,22 @@ function at(e, t) {
2191
2190
  }
2192
2191
  function me() {
2193
2192
  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());
2193
+ (e || t) && (e ? je() : se.unbind(), m.viewport.classList.add("loading-scroll-mode"), e ? document.readyState === "complete" ? D.activate() : window.addEventListener("load", () => D.activate()) : E.activate());
2195
2194
  }
2196
- function R() {
2197
- r.showHiddenSlides || P(m.wrapper, "section[data-visibility=\"hidden\"]").forEach((e) => {
2195
+ function he() {
2196
+ r.showHiddenSlides || F(m.wrapper, "section[data-visibility=\"hidden\"]").forEach((e) => {
2198
2197
  let t = e.parentNode;
2199
2198
  t.childElementCount === 1 && /section/i.test(t.nodeName) ? t.remove() : e.remove();
2200
2199
  });
2201
2200
  }
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
2201
  function _e() {
2202
+ m.slides.classList.add("no-transition"), ge ? m.wrapper.classList.add("no-hover") : m.wrapper.classList.remove("no-hover"), T.render(), S.render(), C.render(), ee.render(), te.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");
2203
+ }
2204
+ function ve() {
2206
2205
  let e = m.wrapper.querySelector(".aria-status");
2207
2206
  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
2207
  }
2209
- function ve(e) {
2208
+ function R(e) {
2210
2209
  m.statusElement.textContent = e;
2211
2210
  }
2212
2211
  function ye(e) {
@@ -2217,7 +2216,7 @@ function at(e, t) {
2217
2216
  if (n !== "true" && !r) {
2218
2217
  if (e.tagName === "IMG" || e.tagName === "VIDEO") {
2219
2218
  let n = e.getAttribute("alt");
2220
- n && (t += z(n));
2219
+ n && (t += be(n));
2221
2220
  }
2222
2221
  Array.from(e.childNodes).forEach((e) => {
2223
2222
  t += ye(e);
@@ -2234,58 +2233,58 @@ function at(e, t) {
2234
2233
  "H5",
2235
2234
  "H6",
2236
2235
  "BLOCKQUOTE"
2237
- ].includes(e.tagName) && t.trim() !== "" && (t = z(t));
2236
+ ].includes(e.tagName) && t.trim() !== "" && (t = be(t));
2238
2237
  }
2239
2238
  }
2240
2239
  return t = t.trim(), t === "" ? "" : t + " ";
2241
2240
  }
2242
- function z(e) {
2241
+ function be(e) {
2243
2242
  let t = e.trim();
2244
2243
  return t === "" ? e : /[.!?]$/.test(t) ? t : t + ".";
2245
2244
  }
2246
- function Ce() {
2245
+ function xe() {
2247
2246
  setInterval(() => {
2248
- (!T.isActive() && m.wrapper.scrollTop !== 0 || m.wrapper.scrollLeft !== 0) && (m.wrapper.scrollTop = 0, m.wrapper.scrollLeft = 0);
2247
+ (!E.isActive() && m.wrapper.scrollTop !== 0 || m.wrapper.scrollLeft !== 0) && (m.wrapper.scrollTop = 0, m.wrapper.scrollLeft = 0);
2249
2248
  }, 1e3);
2250
2249
  }
2251
- function Ee() {
2252
- document.addEventListener("fullscreenchange", rn), document.addEventListener("webkitfullscreenchange", rn);
2250
+ function we() {
2251
+ document.addEventListener("fullscreenchange", nn), document.addEventListener("webkitfullscreenchange", nn);
2253
2252
  }
2254
- function De() {
2255
- r.postMessage && window.addEventListener("message", Qt, !1);
2253
+ function V() {
2254
+ r.postMessage && window.addEventListener("message", Zt, !1);
2256
2255
  }
2257
- function ke(e) {
2258
- let t = U({}, r);
2256
+ function H(e) {
2257
+ let t = He({}, r);
2259
2258
  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();
2259
+ let i = m.wrapper.querySelectorAll(z).length;
2260
+ 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 && q(), ie(m.wrapper, "embedded", r.embedded), ie(m.wrapper, "rtl", r.rtl), ie(m.wrapper, "center", r.center), r.pause === !1 && ft(), w.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", rn), b = !1), r.navigationMode === "default" ? m.wrapper.removeAttribute("data-navigation-mode") : m.wrapper.setAttribute("data-navigation-mode", r.navigationMode), L.configure(r, t), P.configure(r, t), ne.configure(r, t), ee.configure(r, t), te.configure(r, t), A.configure(r, t), O.configure(r, t), S.configure(r, t), bt();
2261
+ }
2262
+ function ke() {
2263
+ window.addEventListener("resize", en, !1), r.touch && se.bind(), r.keyboard && A.bind(), r.progress && te.bind(), r.respondToHashChanges && j.bind(), ee.bind(), P.bind(), m.slides.addEventListener("click", $t, !1), m.slides.addEventListener("transitionend", Qt, !1), m.pauseOverlay.addEventListener("click", ft, !1), r.focusBodyOnPageVisibilityChange && document.addEventListener("visibilitychange", tn, !1);
2262
2264
  }
2263
2265
  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);
2266
+ se.unbind(), P.unbind(), A.unbind(), ee.unbind(), te.unbind(), j.unbind(), window.removeEventListener("resize", en, !1), m.slides.removeEventListener("click", $t, !1), m.slides.removeEventListener("transitionend", Qt, !1), m.pauseOverlay.removeEventListener("click", ft, !1);
2265
2267
  }
2266
2268
  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);
2268
- }
2269
- 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) => {
2269
+ i = !1, a !== !1 && (je(), Vt(), L.destroy(), P.destroy(), N.destroy(), M.destroy(), ne.destroy(), ee.destroy(), te.destroy(), T.destroy(), S.destroy(), C.destroy(), document.removeEventListener("fullscreenchange", nn), document.removeEventListener("webkitfullscreenchange", nn), document.removeEventListener("visibilitychange", tn, !1), window.removeEventListener("message", Zt, !1), window.removeEventListener("load", W, !1), m.pauseOverlay && m.pauseOverlay.remove(), m.statusElement && m.statusElement.remove(), document.documentElement.classList.remove("reveal-full-page"), m.wrapper.classList.remove("ready", "center", "has-horizontal-slides", "has-vertical-slides"), m.wrapper.removeAttribute("data-transition-speed"), m.wrapper.removeAttribute("data-background-transition"), m.viewport.classList.remove("reveal-viewport"), m.viewport.style.removeProperty("--slide-width"), m.viewport.style.removeProperty("--slide-height"), m.slides.style.removeProperty("width"), m.slides.style.removeProperty("height"), m.slides.style.removeProperty("zoom"), m.slides.style.removeProperty("left"), m.slides.style.removeProperty("top"), m.slides.style.removeProperty("bottom"), m.slides.style.removeProperty("right"), m.slides.style.removeProperty("transform"), Array.from(m.wrapper.querySelectorAll(z)).forEach((e) => {
2271
2270
  e.style.removeProperty("display"), e.style.removeProperty("top"), e.removeAttribute("hidden"), e.removeAttribute("aria-hidden"), e.removeAttribute("inert");
2272
2271
  }));
2273
2272
  }
2274
- function Pe(t, n, r) {
2273
+ function Ne(t, n, r) {
2275
2274
  e.addEventListener(t, n, r);
2276
2275
  }
2277
- function Ie(t, n, r) {
2276
+ function Pe(t, n, r) {
2278
2277
  e.removeEventListener(t, n, r);
2279
2278
  }
2280
- function Le(e) {
2279
+ function Ie(e) {
2281
2280
  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);
2282
2281
  }
2283
- function H({ target: e = m.wrapper, type: t, data: n, bubbles: r = !0 }) {
2282
+ function U({ target: e = m.wrapper, type: t, data: n, bubbles: r = !0 }) {
2284
2283
  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;
2284
+ return i.initEvent(t, r, !0), re(i, n), e.dispatchEvent(i), e === m.wrapper && qe(t), i;
2286
2285
  }
2287
- function Ke(e) {
2288
- H({
2286
+ function Ve(e) {
2287
+ U({
2289
2288
  type: "slidechanged",
2290
2289
  data: {
2291
2290
  indexh: o,
@@ -2296,30 +2295,30 @@ function at(e, t) {
2296
2295
  }
2297
2296
  });
2298
2297
  }
2299
- function Ye(e, t) {
2298
+ function qe(e, t) {
2300
2299
  if (r.postMessageEvents && window.parent !== window.self) {
2301
2300
  let n = {
2302
2301
  namespace: "reveal",
2303
2302
  eventName: e,
2304
- state: zt()
2303
+ state: Rt()
2305
2304
  };
2306
2305
  re(n, t), window.parent.postMessage(JSON.stringify(n), "*");
2307
2306
  }
2308
2307
  }
2309
- function Xe() {
2310
- if (m.wrapper && !E.isActive()) {
2308
+ function W() {
2309
+ if (m.wrapper && !D.isActive()) {
2311
2310
  let e = m.viewport.offsetWidth, t = m.viewport.offsetHeight;
2312
2311
  if (!r.disableLayout) {
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);
2312
+ ge && !r.embedded && document.documentElement.style.setProperty("--vh", window.innerHeight * .01 + "px");
2313
+ let n = E.isActive() ? $e(e, t) : $e(), i = f;
2314
+ Xe(r.width, r.height), m.slides.style.width = n.width + "px", m.slides.style.height = n.height + "px", f = Math.min(n.presentationWidth / n.width, n.presentationHeight / n.height), f = Math.max(f, r.minScale), f = Math.min(f, r.maxScale), f = Math.round(f * 100) / 100, f === 1 || E.isActive() ? (m.slides.style.zoom = "", m.slides.style.left = "", m.slides.style.top = "", m.slides.style.bottom = "", m.slides.style.right = "", Ie({ layout: "" })) : (m.slides.style.zoom = "", m.slides.style.left = "50%", m.slides.style.top = "50%", m.slides.style.bottom = "auto", m.slides.style.right = "auto", Ie({ layout: "translate(-50%, -50%) scale(" + f + ")" }));
2315
+ let a = Array.from(m.wrapper.querySelectorAll(z)).filter((e) => e.style.display !== "none"), o = Array(a.length);
2317
2316
  for (let e = 0, t = a.length; e < t; e++) {
2318
2317
  let t = a[e];
2319
2318
  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
2319
  }
2321
2320
  for (let e = 0, t = a.length; e < t; e++) a[e].style.top = o[e];
2322
- i !== f && H({
2321
+ i !== f && U({
2323
2322
  type: "resize",
2324
2323
  data: {
2325
2324
  oldScale: i,
@@ -2328,25 +2327,25 @@ function at(e, t) {
2328
2327
  }
2329
2328
  });
2330
2329
  }
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();
2330
+ Qe(), m.viewport.style.setProperty("--slide-scale", f), m.viewport.style.setProperty("--viewport-width", e + "px"), m.viewport.style.setProperty("--viewport-height", t + "px"), E.layout(), te.update(), T.updateParallax(), k.isActive() && k.update();
2332
2331
  }
2333
2332
  }
2334
- function Qe(e, t) {
2335
- P(m.slides, "section > .stretch, section > .r-stretch").forEach((n) => {
2336
- let r = ue(n, t);
2333
+ function Xe(e, t) {
2334
+ F(m.slides, "section > .stretch, section > .r-stretch").forEach((n) => {
2335
+ let r = de(n, t);
2337
2336
  if (/(img|video)/gi.test(n.nodeName)) {
2338
2337
  let t = n.naturalWidth || n.videoWidth, i = n.naturalHeight || n.videoHeight, a = Math.min(e / t, r / i);
2339
2338
  n.style.width = t * a + "px", n.style.height = i * a + "px";
2340
2339
  } else n.style.width = e + "px", n.style.height = r + "px";
2341
2340
  });
2342
2341
  }
2343
- function $e() {
2344
- if (m.wrapper && !r.disableLayout && !E.isActive() && typeof r.scrollActivationWidth == "number" && r.view !== "scroll") {
2345
- let e = at();
2346
- e.presentationWidth > 0 && e.presentationWidth <= r.scrollActivationWidth ? T.isActive() || (w.create(), T.activate()) : T.isActive() && T.deactivate();
2342
+ function Qe() {
2343
+ if (m.wrapper && !r.disableLayout && !D.isActive() && typeof r.scrollActivationWidth == "number" && r.view !== "scroll") {
2344
+ let e = $e();
2345
+ e.presentationWidth > 0 && e.presentationWidth <= r.scrollActivationWidth ? E.isActive() || (T.create(), E.activate()) : E.isActive() && E.deactivate();
2347
2346
  }
2348
2347
  }
2349
- function at(e, t) {
2348
+ function $e(e, t) {
2350
2349
  let n = r.width, i = r.height;
2351
2350
  r.disableLayout && (n = m.slides.offsetWidth, i = m.slides.offsetHeight);
2352
2351
  let a = {
@@ -2357,7 +2356,7 @@ function at(e, t) {
2357
2356
  };
2358
2357
  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
2358
  }
2360
- function W(e, t) {
2359
+ function at(e, t) {
2361
2360
  typeof e == "object" && typeof e.setAttribute == "function" && e.setAttribute("data-previous-indexv", t || 0);
2362
2361
  }
2363
2362
  function ot(e) {
@@ -2367,30 +2366,30 @@ function at(e, t) {
2367
2366
  }
2368
2367
  return 0;
2369
2368
  }
2370
- function G(e = l) {
2369
+ function st(e = l) {
2371
2370
  return e && e.parentNode && !!e.parentNode.nodeName.match(/section/i);
2372
2371
  }
2373
- function st(e = l) {
2372
+ function G(e = l) {
2374
2373
  return e.classList.contains(".stack") || e.querySelector("section") !== null;
2375
2374
  }
2376
2375
  function ct() {
2377
- return l && G(l) ? !l.nextElementSibling : !1;
2376
+ return l && st(l) ? !l.nextElementSibling : !1;
2378
2377
  }
2379
2378
  function lt() {
2380
2379
  return o === 0 && s === 0;
2381
2380
  }
2382
2381
  function ut() {
2383
- return l ? !(l.nextElementSibling || G(l) && l.parentNode.nextElementSibling) : !1;
2382
+ return l ? !(l.nextElementSibling || st(l) && l.parentNode.nextElementSibling) : !1;
2384
2383
  }
2385
2384
  function dt() {
2386
2385
  if (r.pause) {
2387
2386
  let e = m.wrapper.classList.contains("paused");
2388
- Ht(), m.wrapper.classList.add("paused"), e === !1 && H({ type: "paused" });
2387
+ Vt(), m.wrapper.classList.add("paused"), e === !1 && U({ type: "paused" });
2389
2388
  }
2390
2389
  }
2391
2390
  function ft() {
2392
2391
  let e = m.wrapper.classList.contains("paused");
2393
- m.wrapper.classList.remove("paused"), Vt(), e && H({ type: "resumed" });
2392
+ m.wrapper.classList.remove("paused"), Bt(), e && U({ type: "resumed" });
2394
2393
  }
2395
2394
  function pt(e) {
2396
2395
  typeof e == "boolean" ? e ? dt() : ft() : mt() ? ft() : dt();
@@ -2402,13 +2401,13 @@ function at(e, t) {
2402
2401
  typeof e == "boolean" ? e ? C.show() : C.hide() : C.isVisible() ? C.hide() : C.show();
2403
2402
  }
2404
2403
  function gt(e) {
2405
- typeof e == "boolean" ? e ? Wt() : Ut() : b ? Wt() : Ut();
2404
+ typeof e == "boolean" ? e ? Ut() : Ht() : b ? Ut() : Ht();
2406
2405
  }
2407
2406
  function _t() {
2408
- return !!(g && !b);
2407
+ return !(!g || b);
2409
2408
  }
2410
2409
  function K(t, n, i, a) {
2411
- if (H({
2410
+ if (U({
2412
2411
  type: "beforeslidechange",
2413
2412
  data: {
2414
2413
  indexh: t === void 0 ? o : t,
@@ -2417,26 +2416,26 @@ function at(e, t) {
2417
2416
  }
2418
2417
  }).defaultPrevented) return;
2419
2418
  c = l;
2420
- let u = m.wrapper.querySelectorAll(xe);
2421
- if (T.isActive()) {
2422
- let e = T.getSlideByIndices(t, n);
2423
- e && T.scrollToSlide(e);
2419
+ let u = m.wrapper.querySelectorAll(B);
2420
+ if (E.isActive()) {
2421
+ let e = E.getSlideByIndices(t, n);
2422
+ e && E.scrollToSlide(e);
2424
2423
  return;
2425
2424
  }
2426
2425
  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);
2426
+ n === void 0 && !k.isActive() && (n = ot(u[t])), c && c.parentNode && c.parentNode.classList.contains("stack") && at(c.parentNode, s);
2428
2427
  let f = d.concat();
2429
2428
  d.length = 0;
2430
2429
  let p = o || 0, g = s || 0;
2431
- o = St(xe, t === void 0 ? o : t), s = St(Se, n === void 0 ? s : n);
2430
+ o = J(B, t === void 0 ? o : t), s = J(Ce, n === void 0 ? s : n);
2432
2431
  let _ = o !== p || s !== g;
2433
2432
  _ || (c = null);
2434
2433
  let v = u[o], y = v.querySelectorAll("section");
2435
2434
  e.classList.toggle("is-vertical-slide", y.length > 1), l = y[s] || v;
2436
2435
  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(() => {
2438
- Mt().forEach((e) => {
2439
- W(e, 0);
2436
+ _ && c && l && !k.isActive() && (h = "running", b = vt(c, l, p, g), b && m.slides.classList.add("disable-slide-transitions")), wt(), W(), k.isActive() && k.update(), i !== void 0 && O.goto(i), c && c !== l && (c.classList.remove("present"), c.setAttribute("aria-hidden", "true"), lt() && setTimeout(() => {
2437
+ jt().forEach((e) => {
2438
+ at(e, 0);
2440
2439
  });
2441
2440
  }, 0));
2442
2441
  stateLoop: for (let e = 0, t = d.length; e < t; e++) {
@@ -2444,14 +2443,14 @@ function at(e, t) {
2444
2443
  f.splice(t, 1);
2445
2444
  continue stateLoop;
2446
2445
  }
2447
- m.viewport.classList.add(d[e]), H({ type: d[e] });
2446
+ m.viewport.classList.add(d[e]), U({ type: d[e] });
2448
2447
  }
2449
2448
  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(() => {
2449
+ _ && (x.afterSlideChanged(), Ve(a)), (_ || !c) && (x.stopEmbeddedContent(c), x.startEmbeddedContent(l)), requestAnimationFrame(() => {
2450
+ R(ye(l));
2451
+ }), te.update(), ee.update(), L.update(), T.update(), T.updateParallax(), S.update(), O.update(), j.writeURL(), Bt(), b && (setTimeout(() => {
2453
2452
  m.slides.classList.remove("disable-slide-transitions");
2454
- }, 0), r.autoAnimate && ee.run(c, l));
2453
+ }, 0), r.autoAnimate && w.run(c, l));
2455
2454
  }
2456
2455
  function vt(e, t, n, r) {
2457
2456
  return e.hasAttribute("data-auto-animate") && t.hasAttribute("data-auto-animate") && e.getAttribute("data-auto-animate-id") === t.getAttribute("data-auto-animate-id") && !(o > n || s > r ? t : e).hasAttribute("data-auto-animate-restart");
@@ -2460,48 +2459,44 @@ function at(e, t) {
2460
2459
  let i = o || 0;
2461
2460
  o = t, s = n;
2462
2461
  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();
2462
+ c = l, l = e, l && c && r.autoAnimate && vt(c, l, i, s) && w.run(c, l), a && (x.afterSlideChanged(), c && (x.stopEmbeddedContent(c), x.stopEmbeddedContent(c.slideBackgroundElement)), x.startEmbeddedContent(l), x.startEmbeddedContent(l.slideBackgroundElement)), requestAnimationFrame(() => {
2463
+ R(ye(l));
2464
+ }), Ve();
2466
2465
  }
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" });
2466
+ function bt() {
2467
+ je(), ke(), W(), g = r.autoSlide, Bt(), T.create(), j.writeURL(), r.sortFragmentsOnSync === !0 && O.sortAll(), o !== void 0 && (o = J(B, o), s = J(Ce, s)), ee.update(), te.update(), wt(), L.update(), L.updateVisibility(), N.update(), T.update(!0), S.update(), x.formatEmbeddedContent(), r.autoPlayMedia === !1 ? x.stopEmbeddedContent(l, { unloadIframes: !1 }) : x.startEmbeddedContent(l), k.isActive() && k.layout(), U({ type: "sync" });
2469
2468
  }
2470
- function bt(e = l) {
2471
- w.sync(e), D.sync(e), x.load(e), w.update(), L.update(), H({
2469
+ function xt(e = l) {
2470
+ T.sync(e), O.sync(e), x.load(e), T.update(), L.update(), U({
2472
2471
  type: "slidesync",
2473
2472
  data: { slide: e }
2474
2473
  });
2475
2474
  }
2476
- function xt() {
2477
- At().forEach((e) => {
2478
- P(e, "section").forEach((e, t) => {
2475
+ function St() {
2476
+ kt().forEach((e) => {
2477
+ F(e, "section").forEach((e, t) => {
2479
2478
  t > 0 && (e.classList.remove("present"), e.classList.remove("past"), e.classList.add("future"), e.setAttribute("aria-hidden", "true"));
2480
2479
  });
2481
2480
  });
2482
2481
  }
2483
- function J(e = At()) {
2482
+ function q(e = kt()) {
2484
2483
  e.forEach((t, n) => {
2485
2484
  let r = e[Math.floor(Math.random() * e.length)];
2486
2485
  r.parentNode === t.parentNode && t.parentNode.insertBefore(t, r);
2487
2486
  let i = t.querySelectorAll("section");
2488
- i.length && J(i);
2487
+ i.length && q(i);
2489
2488
  });
2490
2489
  }
2491
- function St(e, t) {
2492
- let n = P(m.wrapper, e), i = n.length, a = T.isActive() || E.isActive(), o = !1, s = !1;
2490
+ function J(e, t) {
2491
+ let n = F(m.wrapper, e), i = n.length, a = E.isActive() || D.isActive(), o = !1, s = !1;
2493
2492
  if (i) {
2494
2493
  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
2494
  for (let e = 0; e < i; e++) {
2496
- let i = n[e], c = r.rtl && !G(i);
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
- i.classList.add("present");
2499
- continue;
2500
- }
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));
2495
+ let i = n[e], c = r.rtl && !st(i);
2496
+ 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 ? i.classList.add("present") : e < t ? (i.classList.add(c ? "future" : "past"), r.fragments && Ct(i)) : e > t ? (i.classList.add(c ? "past" : "future"), r.fragments && Y(i)) : e === t && r.fragments && (o ? Y(i) : s && Ct(i));
2502
2497
  }
2503
2498
  let e = n[t], c = e.classList.contains("present");
2504
- e.classList.add("present"), e.removeAttribute("hidden"), e.removeAttribute("aria-hidden"), c || H({
2499
+ e.classList.add("present"), e.removeAttribute("hidden"), e.removeAttribute("aria-hidden"), c || U({
2505
2500
  target: e,
2506
2501
  type: "visible",
2507
2502
  bubbles: !1
@@ -2511,23 +2506,23 @@ function at(e, t) {
2511
2506
  } else t = 0;
2512
2507
  return t;
2513
2508
  }
2514
- function Y(e) {
2515
- P(e, ".fragment").forEach((e) => {
2509
+ function Ct(e) {
2510
+ F(e, ".fragment").forEach((e) => {
2516
2511
  e.classList.add("visible"), e.classList.remove("current-fragment");
2517
2512
  });
2518
2513
  }
2519
- function Ct(e) {
2520
- P(e, ".fragment.visible").forEach((e) => {
2514
+ function Y(e) {
2515
+ F(e, ".fragment.visible").forEach((e) => {
2521
2516
  e.classList.remove("visible", "current-fragment");
2522
2517
  });
2523
2518
  }
2524
2519
  function wt() {
2525
- let e = At(), t = e.length, n, i;
2520
+ let e = kt(), t = e.length, n, i;
2526
2521
  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);
2522
+ let a = k.isActive(), c = a ? 10 : r.viewDistance;
2523
+ ge && (c = a ? 6 : r.mobileViewDistance), D.isActive() && (c = Number.MAX_VALUE);
2529
2524
  for (let l = 0; l < t; l++) {
2530
- let u = e[l], d = P(u, "section"), f = d.length;
2525
+ let u = e[l], d = F(u, "section"), f = d.length;
2531
2526
  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
2527
  let e = a ? 0 : ot(u);
2533
2528
  for (let t = 0; t < f; t++) {
@@ -2536,22 +2531,22 @@ function at(e, t) {
2536
2531
  }
2537
2532
  }
2538
2533
  }
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");
2534
+ Nt() ? m.wrapper.classList.add("has-vertical-slides") : m.wrapper.classList.remove("has-vertical-slides"), Mt() ? m.wrapper.classList.add("has-horizontal-slides") : m.wrapper.classList.remove("has-horizontal-slides");
2540
2535
  }
2541
- let a = O.isActive() || T.isActive() || E.isActive();
2542
- P(m.wrapper, B).forEach((e) => {
2536
+ let a = k.isActive() || E.isActive() || D.isActive();
2537
+ F(m.wrapper, z).forEach((e) => {
2543
2538
  e.toggleAttribute("inert", !a && e !== l && !e.contains(l));
2544
2539
  });
2545
2540
  }
2546
- function Tt({ includeFragments: e = !1 } = {}) {
2547
- let t = m.wrapper.querySelectorAll(xe), n = m.wrapper.querySelectorAll(Se), i = {
2541
+ function X({ includeFragments: e = !1 } = {}) {
2542
+ let t = m.wrapper.querySelectorAll(B), n = m.wrapper.querySelectorAll(Ce), i = {
2548
2543
  left: o > 0,
2549
2544
  right: o < t.length - 1,
2550
2545
  up: s > 0,
2551
2546
  down: s < n.length - 1
2552
2547
  };
2553
2548
  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();
2549
+ let e = O.availableRoutes();
2555
2550
  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
2551
  }
2557
2552
  if (r.rtl) {
@@ -2560,8 +2555,8 @@ function at(e, t) {
2560
2555
  }
2561
2556
  return i;
2562
2557
  }
2563
- function Et(e = l) {
2564
- let t = At(), n = 0;
2558
+ function Tt(e = l) {
2559
+ let t = kt(), n = 0;
2565
2560
  mainLoop: for (let r = 0; r < t.length; r++) {
2566
2561
  let i = t[r], a = i.querySelectorAll("section");
2567
2562
  for (let t = 0; t < a.length; t++) {
@@ -2573,8 +2568,8 @@ function at(e, t) {
2573
2568
  }
2574
2569
  return n;
2575
2570
  }
2576
- function Dt() {
2577
- let e = It(), t = Et();
2571
+ function Et() {
2572
+ let e = Ft(), t = Tt();
2578
2573
  if (l) {
2579
2574
  let e = l.querySelectorAll(".fragment");
2580
2575
  if (e.length > 0) {
@@ -2584,13 +2579,13 @@ function at(e, t) {
2584
2579
  }
2585
2580
  return Math.min(t / (e - 1), 1);
2586
2581
  }
2587
- function Ot(e) {
2582
+ function Dt(e) {
2588
2583
  let t = o, n = s, r;
2589
2584
  if (e) {
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));
2585
+ if (E.isActive()) t = parseInt(e.getAttribute("data-index-h"), 10), e.getAttribute("data-index-v") && (n = parseInt(e.getAttribute("data-index-v"), 10));
2591
2586
  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));
2587
+ let r = st(e), i = r ? e.parentNode : e, a = kt();
2588
+ t = Math.max(a.indexOf(i), 0), n = void 0, r && (n = Math.max(F(e.parentNode, "section").indexOf(e), 0));
2594
2589
  }
2595
2590
  }
2596
2591
  if (!e && l && l.querySelectorAll(".fragment").length > 0) {
@@ -2603,26 +2598,26 @@ function at(e, t) {
2603
2598
  f: r
2604
2599
  };
2605
2600
  }
2601
+ function Ot() {
2602
+ return F(m.wrapper, z + ":not(.stack):not([data-visibility=\"uncounted\"])");
2603
+ }
2606
2604
  function kt() {
2607
- return P(m.wrapper, B + ":not(.stack):not([data-visibility=\"uncounted\"])");
2605
+ return F(m.wrapper, B);
2608
2606
  }
2609
2607
  function At() {
2610
- return P(m.wrapper, xe);
2608
+ return F(m.wrapper, ".slides>section>section");
2611
2609
  }
2612
2610
  function jt() {
2613
- return P(m.wrapper, ".slides>section>section");
2611
+ return F(m.wrapper, B + ".stack");
2614
2612
  }
2615
2613
  function Mt() {
2616
- return P(m.wrapper, xe + ".stack");
2614
+ return kt().length > 1;
2617
2615
  }
2618
2616
  function Nt() {
2619
2617
  return At().length > 1;
2620
2618
  }
2621
2619
  function Pt() {
2622
- return jt().length > 1;
2623
- }
2624
- function Ft() {
2625
- return kt().map((e) => {
2620
+ return Ot().map((e) => {
2626
2621
  let t = {};
2627
2622
  for (let n = 0; n < e.attributes.length; n++) {
2628
2623
  let r = e.attributes[n];
@@ -2631,106 +2626,106 @@ function at(e, t) {
2631
2626
  return t;
2632
2627
  });
2633
2628
  }
2634
- function It() {
2635
- return kt().length;
2629
+ function Ft() {
2630
+ return Ot().length;
2636
2631
  }
2637
- function Lt(e, t) {
2638
- let n = At()[e], r = n && n.querySelectorAll("section");
2632
+ function It(e, t) {
2633
+ let n = kt()[e], r = n && n.querySelectorAll("section");
2639
2634
  return r && r.length && typeof t == "number" ? r ? r[t] : void 0 : n;
2640
2635
  }
2641
- function Rt(e, t) {
2642
- let n = typeof e == "number" ? Lt(e, t) : e;
2636
+ function Lt(e, t) {
2637
+ let n = typeof e == "number" ? It(e, t) : e;
2643
2638
  if (n) return n.slideBackgroundElement;
2644
2639
  }
2645
- function zt() {
2646
- let e = Ot();
2647
- return U({
2640
+ function Rt() {
2641
+ let e = Dt();
2642
+ return He({
2648
2643
  indexh: e.h,
2649
2644
  indexv: e.v,
2650
2645
  indexf: e.f,
2651
2646
  paused: mt(),
2652
- overview: O.isActive()
2647
+ overview: k.isActive()
2653
2648
  }, N.getState());
2654
2649
  }
2655
- function Bt(e) {
2650
+ function zt(e) {
2656
2651
  if (typeof e == "object") {
2657
2652
  K(ae(e.indexh), ae(e.indexv), ae(e.indexf));
2658
2653
  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);
2654
+ typeof t == "boolean" && t !== mt() && pt(t), typeof n == "boolean" && n !== k.isActive() && k.toggle(n), N.setState(e);
2660
2655
  }
2661
2656
  }
2662
- function Vt() {
2663
- if (Ht(), l && r.autoSlide !== !1) {
2657
+ function Bt() {
2658
+ if (Vt(), l && r.autoSlide !== !1) {
2664
2659
  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) => {
2660
+ t ? g = parseInt(t, 10) : i ? g = parseInt(i, 10) : n ? g = parseInt(n, 10) : (g = r.autoSlide, l.querySelectorAll(".fragment").length === 0 && F(l, "video, audio").forEach((e) => {
2666
2661
  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(() => {
2668
- typeof r.autoSlideMethod == "function" ? r.autoSlideMethod() : Xt(), Vt();
2662
+ })), g && !b && !mt() && !k.isActive() && (!ut() || O.availableRoutes().next || r.loop === !0) && (v = setTimeout(() => {
2663
+ typeof r.autoSlideMethod == "function" ? r.autoSlideMethod() : Yt(), Bt();
2669
2664
  }, g), y = Date.now()), _ && _.setPlaying(v !== -1);
2670
2665
  }
2671
2666
  }
2672
- function Ht() {
2667
+ function Vt() {
2673
2668
  clearTimeout(v), v = -1;
2674
2669
  }
2670
+ function Ht() {
2671
+ g && !b && (b = !0, U({ type: "autoslidepaused" }), clearTimeout(v), _ && _.setPlaying(!1));
2672
+ }
2675
2673
  function Ut() {
2676
- g && !b && (b = !0, H({ type: "autoslidepaused" }), clearTimeout(v), _ && _.setPlaying(!1));
2674
+ g && b && (b = !1, U({ type: "autoslideresumed" }), Bt());
2677
2675
  }
2678
- function Wt() {
2679
- g && b && (b = !1, H({ type: "autoslideresumed" }), Vt());
2676
+ function Wt({ skipFragments: e = !1 } = {}) {
2677
+ if (u.hasNavigatedHorizontally = !0, E.isActive()) return E.prev();
2678
+ r.rtl ? (k.isActive() || e || O.next() === !1) && X().left && K(o + 1, r.navigationMode === "grid" ? s : void 0) : (k.isActive() || e || O.prev() === !1) && X().left && K(o - 1, r.navigationMode === "grid" ? s : void 0);
2680
2679
  }
2681
2680
  function Gt({ skipFragments: e = !1 } = {}) {
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);
2681
+ if (u.hasNavigatedHorizontally = !0, E.isActive()) return E.next();
2682
+ r.rtl ? (k.isActive() || e || O.prev() === !1) && X().right && K(o - 1, r.navigationMode === "grid" ? s : void 0) : (k.isActive() || e || O.next() === !1) && X().right && K(o + 1, r.navigationMode === "grid" ? s : void 0);
2684
2683
  }
2685
2684
  function Kt({ skipFragments: e = !1 } = {}) {
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);
2685
+ if (E.isActive()) return E.prev();
2686
+ (k.isActive() || e || O.prev() === !1) && X().up && K(o, s - 1);
2688
2687
  }
2689
2688
  function qt({ skipFragments: e = !1 } = {}) {
2690
- if (T.isActive()) return T.prev();
2691
- (O.isActive() || e || D.prev() === !1) && Tt().up && K(o, s - 1);
2689
+ if (u.hasNavigatedVertically = !0, E.isActive()) return E.next();
2690
+ (k.isActive() || e || O.next() === !1) && X().down && K(o, s + 1);
2692
2691
  }
2693
2692
  function Jt({ skipFragments: e = !1 } = {}) {
2694
- if (u.hasNavigatedVertically = !0, T.isActive()) return T.next();
2695
- (O.isActive() || e || D.next() === !1) && Tt().down && K(o, s + 1);
2696
- }
2697
- function Yt({ skipFragments: e = !1 } = {}) {
2698
- if (T.isActive()) return T.prev();
2699
- if (e || D.prev() === !1) {
2700
- if (Tt().up) qt({ skipFragments: e });
2693
+ if (E.isActive()) return E.prev();
2694
+ if (e || O.prev() === !1) {
2695
+ if (X().up) Kt({ skipFragments: e });
2701
2696
  else {
2702
2697
  let t;
2703
- if (t = r.rtl ? P(m.wrapper, xe + ".future").pop() : P(m.wrapper, xe + ".past").pop(), t && t.classList.contains("stack")) {
2698
+ if (t = r.rtl ? F(m.wrapper, B + ".future").pop() : F(m.wrapper, B + ".past").pop(), t && t.classList.contains("stack")) {
2704
2699
  let e = t.querySelectorAll("section").length - 1 || void 0;
2705
2700
  K(o - 1, e);
2706
- } else r.rtl ? Kt({ skipFragments: e }) : Gt({ skipFragments: e });
2701
+ } else r.rtl ? Gt({ skipFragments: e }) : Wt({ skipFragments: e });
2707
2702
  }
2708
2703
  }
2709
2704
  }
2710
- function Xt({ skipFragments: e = !1 } = {}) {
2711
- if (u.hasNavigatedHorizontally = !0, u.hasNavigatedVertically = !0, T.isActive()) return T.next();
2712
- if (e || D.next() === !1) {
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 });
2705
+ function Yt({ skipFragments: e = !1 } = {}) {
2706
+ if (u.hasNavigatedHorizontally = !0, u.hasNavigatedVertically = !0, E.isActive()) return E.next();
2707
+ if (e || O.next() === !1) {
2708
+ let t = X();
2709
+ t.down && t.right && r.loop && ct() && (t.down = !1), t.down ? qt({ skipFragments: e }) : r.rtl ? Wt({ skipFragments: e }) : Gt({ skipFragments: e });
2715
2710
  }
2716
2711
  }
2717
- function Zt(e) {
2718
- r.autoSlideStoppable && Ut();
2712
+ function Xt(e) {
2713
+ r.autoSlideStoppable && Ht();
2719
2714
  }
2720
- function Qt(e) {
2715
+ function Zt(e) {
2721
2716
  let t = e.data;
2722
2717
  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) {
2718
+ if (Te.test(t.method) === !1) {
2724
2719
  let e = n[t.method].apply(n, t.args);
2725
- Ye("callback", {
2720
+ qe("callback", {
2726
2721
  method: t.method,
2727
2722
  result: e
2728
2723
  });
2729
2724
  } else console.warn("reveal.js: \"" + t.method + "\" is is blacklisted from the postMessage API");
2730
2725
  }
2731
2726
  }
2732
- function $t(e) {
2733
- h === "running" && /section/gi.test(e.target.nodeName) && (h = "idle", H({
2727
+ function Qt(e) {
2728
+ h === "running" && /section/gi.test(e.target.nodeName) && (h = "idle", U({
2734
2729
  type: "slidetransitionend",
2735
2730
  data: {
2736
2731
  indexh: o,
@@ -2740,78 +2735,78 @@ function at(e, t) {
2740
2735
  }
2741
2736
  }));
2742
2737
  }
2743
- function en(e) {
2738
+ function $t(e) {
2744
2739
  let t = I(e.target, "a[href^=\"#\"]");
2745
2740
  if (t) {
2746
- let r = t.getAttribute("href"), i = A.getIndicesFromHash(r);
2741
+ let r = t.getAttribute("href"), i = j.getIndicesFromHash(r);
2747
2742
  i && (n.slide(i.h, i.v, i.f), e.preventDefault());
2748
2743
  }
2749
2744
  }
2750
- function tn(e) {
2751
- Xe();
2745
+ function en(e) {
2746
+ W();
2752
2747
  }
2753
- function nn(e) {
2748
+ function tn(e) {
2754
2749
  document.hidden === !1 && document.activeElement !== document.body && (typeof document.activeElement.blur == "function" && document.activeElement.blur(), document.body.focus());
2755
2750
  }
2756
- function rn(e) {
2751
+ function nn(e) {
2757
2752
  (document.fullscreenElement || document.webkitFullscreenElement) === m.wrapper && (e.stopImmediatePropagation(), setTimeout(() => {
2758
2753
  n.layout(), n.focus.focus();
2759
2754
  }, 1));
2760
2755
  }
2761
- function an(e) {
2762
- ut() && r.loop === !1 ? (K(0, 0), Wt()) : b ? Wt() : Ut();
2756
+ function rn(e) {
2757
+ ut() && r.loop === !1 ? (K(0, 0), Ut()) : b ? Ut() : Ht();
2763
2758
  }
2764
- let on = {
2759
+ let an = {
2765
2760
  VERSION: it,
2766
- initialize: de,
2767
- configure: ke,
2768
- destroy: Ne,
2769
- sync: q,
2770
- syncSlide: bt,
2771
- syncFragments: D.sync.bind(D),
2761
+ initialize: le,
2762
+ configure: H,
2763
+ destroy: Me,
2764
+ sync: bt,
2765
+ syncSlide: xt,
2766
+ syncFragments: O.sync.bind(O),
2772
2767
  slide: K,
2773
- left: Gt,
2774
- right: Kt,
2775
- up: qt,
2776
- down: Jt,
2777
- prev: Yt,
2778
- next: Xt,
2779
- navigateLeft: Gt,
2780
- navigateRight: Kt,
2781
- navigateUp: qt,
2782
- navigateDown: Jt,
2783
- navigatePrev: Yt,
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,
2793
- shuffle: J,
2794
- availableRoutes: Tt,
2795
- availableFragments: D.availableRoutes.bind(D),
2768
+ left: Wt,
2769
+ right: Gt,
2770
+ up: Kt,
2771
+ down: qt,
2772
+ prev: Jt,
2773
+ next: Yt,
2774
+ navigateLeft: Wt,
2775
+ navigateRight: Gt,
2776
+ navigateUp: Kt,
2777
+ navigateDown: qt,
2778
+ navigatePrev: Jt,
2779
+ navigateNext: Yt,
2780
+ navigateFragment: O.goto.bind(O),
2781
+ prevFragment: O.prev.bind(O),
2782
+ nextFragment: O.next.bind(O),
2783
+ on: Ne,
2784
+ off: Pe,
2785
+ addEventListener: Ne,
2786
+ removeEventListener: Pe,
2787
+ layout: W,
2788
+ shuffle: q,
2789
+ availableRoutes: X,
2790
+ availableFragments: O.availableRoutes.bind(O),
2796
2791
  toggleHelp: N.toggleHelp.bind(N),
2797
- toggleOverview: O.toggle.bind(O),
2798
- toggleScrollView: T.toggle.bind(T),
2792
+ toggleOverview: k.toggle.bind(k),
2793
+ toggleScrollView: E.toggle.bind(E),
2799
2794
  togglePause: pt,
2800
2795
  toggleAutoSlide: gt,
2801
2796
  toggleJumpToSlide: ht,
2802
2797
  isFirstSlide: lt,
2803
2798
  isLastSlide: ut,
2804
2799
  isLastVerticalSlide: ct,
2805
- isVerticalSlide: G,
2806
- isVerticalStack: st,
2800
+ isVerticalSlide: st,
2801
+ isVerticalStack: G,
2807
2802
  isPaused: mt,
2808
2803
  isAutoSliding: _t,
2809
2804
  isSpeakerNotes: L.isSpeakerNotesWindow.bind(L),
2810
- isOverview: O.isActive.bind(O),
2811
- isFocused: F.isFocused.bind(F),
2805
+ isOverview: k.isActive.bind(k),
2806
+ isFocused: P.isFocused.bind(P),
2812
2807
  isOverlayOpen: N.isOpen.bind(N),
2813
- isScrollView: T.isActive.bind(T),
2814
- isPrintView: E.isActive.bind(E),
2808
+ isScrollView: E.isActive.bind(E),
2809
+ isPrintView: D.isActive.bind(D),
2815
2810
  isReady: () => a,
2816
2811
  loadSlide: x.load.bind(x),
2817
2812
  unloadSlide: x.unload.bind(x),
@@ -2822,77 +2817,77 @@ function at(e, t) {
2822
2817
  previewVideo: N.previewVideo.bind(N),
2823
2818
  showPreview: N.previewIframe.bind(N),
2824
2819
  hidePreview: N.close.bind(N),
2825
- addEventListeners: je,
2826
- removeEventListeners: Me,
2827
- dispatchEvent: H,
2828
- getState: zt,
2829
- setState: Bt,
2830
- getProgress: Dt,
2831
- getIndices: Ot,
2832
- getSlidesAttributes: Ft,
2833
- getSlidePastCount: Et,
2834
- getTotalSlides: It,
2835
- getSlide: Lt,
2820
+ addEventListeners: ke,
2821
+ removeEventListeners: je,
2822
+ dispatchEvent: U,
2823
+ getState: Rt,
2824
+ setState: zt,
2825
+ getProgress: Et,
2826
+ getIndices: Dt,
2827
+ getSlidesAttributes: Pt,
2828
+ getSlidePastCount: Tt,
2829
+ getTotalSlides: Ft,
2830
+ getSlide: It,
2836
2831
  getPreviousSlide: () => c,
2837
2832
  getCurrentSlide: () => l,
2838
- getSlideBackground: Rt,
2833
+ getSlideBackground: Lt,
2839
2834
  getSlideNotes: L.getSlideNotes.bind(L),
2840
- getSlides: kt,
2841
- getHorizontalSlides: At,
2842
- getVerticalSlides: jt,
2843
- hasHorizontalSlides: Nt,
2844
- hasVerticalSlides: Pt,
2835
+ getSlides: Ot,
2836
+ getHorizontalSlides: kt,
2837
+ getVerticalSlides: At,
2838
+ hasHorizontalSlides: Mt,
2839
+ hasVerticalSlides: Nt,
2845
2840
  hasNavigatedHorizontally: () => u.hasNavigatedHorizontally,
2846
2841
  hasNavigatedVertically: () => u.hasNavigatedVertically,
2847
2842
  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,
2843
+ addKeyBinding: A.addKeyBinding.bind(A),
2844
+ removeKeyBinding: A.removeKeyBinding.bind(A),
2845
+ triggerKey: A.triggerKey.bind(A),
2846
+ registerKeyboardShortcut: A.registerKeyboardShortcut.bind(A),
2847
+ getComputedSlideSize: $e,
2853
2848
  setCurrentScrollPage: yt,
2854
- removeHiddenSlides: R,
2849
+ removeHiddenSlides: he,
2855
2850
  getScale: () => f,
2856
2851
  getConfig: () => r,
2857
- getQueryHash: le,
2858
- getSlidePath: A.getHash.bind(A),
2852
+ getQueryHash: ue,
2853
+ getSlidePath: j.getHash.bind(j),
2859
2854
  getRevealElement: () => e,
2860
2855
  getSlidesElement: () => m.slides,
2861
2856
  getViewportElement: () => m.viewport,
2862
- getBackgroundsElement: () => w.element,
2857
+ getBackgroundsElement: () => T.element,
2863
2858
  registerPlugin: M.registerPlugin.bind(M),
2864
2859
  hasPlugin: M.hasPlugin.bind(M),
2865
2860
  getPlugin: M.getPlugin.bind(M),
2866
2861
  getPlugins: M.getRegisteredPlugins.bind(M)
2867
2862
  };
2868
- return re(n, U(U({}, on), {}, {
2869
- announceStatus: ve,
2863
+ return re(n, He(He({}, an), {}, {
2864
+ announceStatus: R,
2870
2865
  getStatusText: ye,
2871
- focus: F,
2872
- scroll: T,
2873
- progress: ne,
2874
- controls: te,
2875
- location: A,
2876
- overview: O,
2877
- keyboard: k,
2878
- fragments: D,
2879
- backgrounds: w,
2866
+ focus: P,
2867
+ scroll: E,
2868
+ progress: te,
2869
+ controls: ee,
2870
+ location: j,
2871
+ overview: k,
2872
+ keyboard: A,
2873
+ fragments: O,
2874
+ backgrounds: T,
2880
2875
  slideContent: x,
2881
2876
  slideNumber: S,
2882
- onUserInput: Zt,
2877
+ onUserInput: Xt,
2883
2878
  closeOverlay: N.close.bind(N),
2884
2879
  updateSlidesVisibility: wt,
2885
- layoutSlideContents: Qe,
2886
- transformSlides: Le,
2887
- cueAutoSlide: Vt,
2888
- cancelAutoSlide: Ht
2889
- })), on;
2880
+ layoutSlideContents: Xe,
2881
+ transformSlides: Ie,
2882
+ cueAutoSlide: Bt,
2883
+ cancelAutoSlide: Vt
2884
+ })), an;
2890
2885
  }
2891
- var W = at, ot = [];
2892
- W.initialize = (e) => {
2886
+ var ot = at, st = [];
2887
+ ot.initialize = (e) => {
2893
2888
  let t = document.querySelector(".reveal");
2894
2889
  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();
2890
+ return Object.assign(ot, new at(t, e)), st.map((e) => e(ot)), ot.initialize();
2896
2891
  }, [
2897
2892
  "configure",
2898
2893
  "on",
@@ -2901,14 +2896,14 @@ W.initialize = (e) => {
2901
2896
  "removeEventListener",
2902
2897
  "registerPlugin"
2903
2898
  ].forEach((e) => {
2904
- W[e] = (...t) => {
2905
- ot.push((n) => n[e].call(null, ...t));
2899
+ ot[e] = (...t) => {
2900
+ st.push((n) => n[e].call(null, ...t));
2906
2901
  };
2907
- }), W.isReady = () => !1, W.VERSION = it;
2902
+ }), ot.isReady = () => !1, ot.VERSION = it;
2908
2903
  //#endregion
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) {
2904
+ //#region ../node_modules/.pnpm/@revealjs+react@0.2.2_react-dom@19.3.1_react@19.3.1__react@19.3.1_reveal.js@6.0.2/node_modules/@revealjs/react/dist/index.mjs
2905
+ var G = E(), ct = (0, N.createContext)(null), lt = [];
2906
+ function ut(e, t) {
2912
2907
  if (e === t) return !1;
2913
2908
  if (!e || !t) return e !== t;
2914
2909
  let n = Object.keys(e), r = Object.keys(t);
@@ -2916,43 +2911,43 @@ function lt(e, t) {
2916
2911
  for (let r of n) if (!(r in t) || e[r] !== t[r]) return !0;
2917
2912
  return !1;
2918
2913
  }
2919
- function ut(e, t) {
2914
+ function dt(e, t) {
2920
2915
  e && (typeof e == "function" ? e(t) : e.current = t);
2921
2916
  }
2922
- function dt(e) {
2917
+ function ft(e) {
2923
2918
  return e.tagName === "SECTION";
2924
2919
  }
2925
- function ft(e, t, n) {
2926
- return Array.from(e.children).filter(dt).map((e) => {
2920
+ function pt(e, t, n) {
2921
+ return Array.from(e.children).filter(ft).map((e) => {
2927
2922
  let r = t.get(e);
2928
2923
  r === void 0 && (r = n.current++, t.set(e, r));
2929
- let i = ft(e, t, n);
2924
+ let i = pt(e, t, n);
2930
2925
  return i.length > 0 ? [r, i] : r;
2931
2926
  });
2932
2927
  }
2933
- function pt(e, t, n) {
2934
- return e ? JSON.stringify(ft(e, t, n)) : "[]";
2928
+ function mt(e, t, n) {
2929
+ return e ? JSON.stringify(pt(e, t, n)) : "[]";
2935
2930
  }
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);
2931
+ 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 }) {
2932
+ let _ = (0, N.useRef)(null), v = (0, N.useRef)(null), y = (0, N.useRef)(null), [b, x] = (0, N.useState)(null), S = (0, N.useRef)(t), C = (0, N.useRef)(!1), w = (0, N.useRef)(e), T = (0, N.useRef)(null), E = (0, N.useRef)(/* @__PURE__ */ new WeakMap()), D = (0, N.useRef)(1), O = (0, N.useRef)(!1), k = (0, N.useRef)(0);
2933
+ return (0, N.useEffect)(() => {
2934
+ if (O.current = !0, k.current += 1, y.current) y.current.isReady() && x(y.current);
2940
2935
  else {
2941
- let t = new W(_.current, {
2936
+ let t = new ot(_.current, {
2942
2937
  ...e,
2943
2938
  plugins: S.current
2944
2939
  });
2945
- ee.current = e, y.current = t, t.initialize().then(() => {
2946
- D.current && y.current === t && (x(t), n?.(t));
2940
+ w.current = e, y.current = t, t.initialize().then(() => {
2941
+ O.current && y.current === t && (x(t), n?.(t));
2947
2942
  });
2948
2943
  }
2949
2944
  return () => {
2950
- D.current = !1;
2945
+ O.current = !1;
2951
2946
  let e = y.current;
2952
2947
  if (!e) return;
2953
- let t = ++O.current;
2948
+ let t = ++k.current;
2954
2949
  Promise.resolve().then(() => {
2955
- if (!(D.current || O.current !== t) && y.current === e) {
2950
+ if (!(O.current || k.current !== t) && y.current === e) {
2956
2951
  try {
2957
2952
  e.destroy();
2958
2953
  } catch {}
@@ -2960,7 +2955,7 @@ function mt({ config: e, plugins: t = ct, onReady: n, onSync: r, onSlideSync: i,
2960
2955
  }
2961
2956
  });
2962
2957
  };
2963
- }, []), (0, M.useEffect)(() => (ut(p, b), () => ut(p, null)), [p, b]), (0, M.useEffect)(() => {
2958
+ }, []), (0, N.useEffect)(() => (dt(p, b), () => dt(p, null)), [p, b]), (0, N.useEffect)(() => {
2964
2959
  if (!b) return;
2965
2960
  let e = [
2966
2961
  ["sync", r],
@@ -2990,18 +2985,14 @@ function mt({ config: e, plugins: t = ct, onReady: n, onSync: r, onSlideSync: i,
2990
2985
  u,
2991
2986
  d,
2992
2987
  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)(() => {
2988
+ ]), (0, N.useLayoutEffect)(() => {
2989
+ b && y.current?.isReady() && ut(w.current, e) && (C.current = !0, y.current.configure(e ?? {}), w.current = e);
2990
+ }, [b, e]), (0, N.useLayoutEffect)(() => {
2996
2991
  let e = C.current;
2997
2992
  C.current = !1;
2998
- let t = pt(v.current, T.current, E);
2999
- if (e) {
3000
- w.current = t;
3001
- return;
3002
- }
3003
- y.current?.isReady() && w.current !== t && (y.current.sync(), w.current = t);
3004
- }), /* @__PURE__ */ (0, G.jsx)(st.Provider, {
2993
+ let t = mt(v.current, E.current, D);
2994
+ e ? T.current = t : y.current?.isReady() && T.current !== t && (y.current.sync(), T.current = t);
2995
+ }), /* @__PURE__ */ (0, G.jsx)(ct.Provider, {
3005
2996
  value: b,
3006
2997
  children: /* @__PURE__ */ (0, G.jsx)("div", {
3007
2998
  className: m ? `reveal ${m}` : "reveal",
@@ -3015,7 +3006,7 @@ function mt({ config: e, plugins: t = ct, onReady: n, onSync: r, onSlideSync: i,
3015
3006
  })
3016
3007
  });
3017
3008
  }
3018
- var ht = {
3009
+ var gt = {
3019
3010
  background: "data-background",
3020
3011
  backgroundImage: "data-background-image",
3021
3012
  backgroundVideo: "data-background-video",
@@ -3044,12 +3035,12 @@ var ht = {
3044
3035
  backgroundInteractive: "data-background-interactive",
3045
3036
  preload: "data-preload"
3046
3037
  };
3047
- function gt(e) {
3038
+ function _t(e) {
3048
3039
  return JSON.stringify(Object.entries(e).filter(([e]) => e.startsWith("data-")).sort(([e], [t]) => e.localeCompare(t)));
3049
3040
  }
3050
- function _t(e, t) {
3041
+ function K(e, t) {
3051
3042
  let n = { ...e }, r = n;
3052
- for (let [e, n] of Object.entries(ht)) {
3043
+ for (let [e, n] of Object.entries(gt)) {
3053
3044
  if (r[n] !== void 0) continue;
3054
3045
  let i = t[e];
3055
3046
  if (i !== void 0) {
@@ -3062,8 +3053,8 @@ function _t(e, t) {
3062
3053
  }
3063
3054
  return n;
3064
3055
  }
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, {
3056
+ function vt({ children: e, background: t, backgroundImage: n, backgroundVideo: r, backgroundVideoLoop: i, backgroundVideoMuted: a, backgroundIframe: o, backgroundColor: s, backgroundGradient: c, backgroundSize: l, backgroundPosition: u, backgroundRepeat: d, backgroundOpacity: f, backgroundTransition: p, visibility: m, autoAnimate: h, autoAnimateId: g, autoAnimateRestart: _, autoAnimateUnmatched: v, autoAnimateEasing: y, autoAnimateDuration: b, autoAnimateDelay: x, transition: S, transitionSpeed: C, autoSlide: w, notes: T, backgroundInteractive: E, preload: D, ...O }) {
3057
+ let k = (0, N.useContext)(ct), A = (0, N.useRef)(null), j = (0, N.useRef)(null), ee = (0, N.useRef)(null), te = K(O, {
3067
3058
  background: t,
3068
3059
  backgroundImage: n,
3069
3060
  backgroundVideo: r,
@@ -3087,35 +3078,35 @@ function K({ children: e, background: t, backgroundImage: n, backgroundVideo: r,
3087
3078
  autoAnimateDelay: x,
3088
3079
  transition: S,
3089
3080
  transitionSpeed: C,
3090
- autoSlide: ee,
3091
- notes: w,
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;
3081
+ autoSlide: w,
3082
+ notes: T,
3083
+ backgroundInteractive: E,
3084
+ preload: D
3085
+ }), ne = _t(te);
3086
+ return (0, N.useLayoutEffect)(() => {
3087
+ let e = A.current;
3088
+ if (!k || !e || typeof k.syncSlide != "function") return;
3089
+ if (j.current !== k) {
3090
+ j.current = k, ee.current = ne;
3100
3091
  return;
3101
3092
  }
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,
3093
+ if (ne === "[]") return;
3094
+ let t = j.current === k, n = ee.current === ne;
3095
+ t && n || (k.syncSlide(e), j.current = k, ee.current = ne);
3096
+ }, [k, ne]), /* @__PURE__ */ (0, G.jsx)("section", {
3097
+ ref: A,
3098
+ ...te,
3108
3099
  children: e
3109
3100
  });
3110
3101
  }
3111
- function vt({ className: e, style: t, children: n }) {
3102
+ function yt({ className: e, style: t, children: n }) {
3112
3103
  return /* @__PURE__ */ (0, G.jsx)("section", {
3113
3104
  className: e,
3114
3105
  style: t,
3115
3106
  children: n
3116
3107
  });
3117
3108
  }
3118
- function yt() {
3109
+ function bt() {
3119
3110
  return {
3120
3111
  async: !1,
3121
3112
  breaks: !1,
@@ -3129,11 +3120,11 @@ function yt() {
3129
3120
  walkTokens: null
3130
3121
  };
3131
3122
  }
3132
- var q = yt();
3133
- function bt(e) {
3134
- q = e;
3123
+ var xt = bt();
3124
+ function St(e) {
3125
+ xt = e;
3135
3126
  }
3136
- var xt = { exec: () => null };
3127
+ var q = { exec: () => null };
3137
3128
  function J(e, t = "") {
3138
3129
  let n = typeof e == "string" ? e : e.source, r = {
3139
3130
  replace: (e, t) => {
@@ -3144,7 +3135,7 @@ function J(e, t = "") {
3144
3135
  };
3145
3136
  return r;
3146
3137
  }
3147
- var St = (() => {
3138
+ var Ct = (() => {
3148
3139
  try {
3149
3140
  return !0;
3150
3141
  } catch {
@@ -3207,9 +3198,9 @@ var St = (() => {
3207
3198
  headingBeginRegex: (e) => RegExp(`^ {0,${Math.min(3, e - 1)}}#`),
3208
3199
  htmlBeginRegex: (e) => RegExp(`^ {0,${Math.min(3, e - 1)}}<(?:[a-z].*>|!--)`, "i"),
3209
3200
  blockquoteBeginRegex: (e) => RegExp(`^ {0,${Math.min(3, e - 1)}}>`)
3210
- }, Ct = /^(?:[ \t]*(?:\n|$))+/, wt = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, Tt = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, Et = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, Dt = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, Ot = / {0,3}(?:[*+-]|\d{1,9}[.)])/, kt = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, At = J(kt).replace(/bull/g, Ot).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex(), jt = J(kt).replace(/bull/g, Ot).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(), Mt = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, Nt = /^[^\n]+/, Pt = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, Ft = J(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", Pt).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), It = J(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, Ot).getRegex(), Lt = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", Rt = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, zt = J("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))", "i").replace("comment", Rt).replace("tag", Lt).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), Bt = J(Mt).replace("hr", Et).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", Lt).getRegex(), Vt = {
3201
+ }, wt = /^(?:[ \t]*(?:\n|$))+/, X = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, Tt = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, Et = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, Dt = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, Ot = / {0,3}(?:[*+-]|\d{1,9}[.)])/, kt = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, At = J(kt).replace(/bull/g, Ot).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex(), jt = J(kt).replace(/bull/g, Ot).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(), Mt = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, Nt = /^[^\n]+/, Pt = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, Ft = J(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", Pt).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), It = J(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, Ot).getRegex(), Lt = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", Rt = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, zt = J("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))", "i").replace("comment", Rt).replace("tag", Lt).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), Bt = J(Mt).replace("hr", Et).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", Lt).getRegex(), Vt = {
3211
3202
  blockquote: J(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", Bt).getRegex(),
3212
- code: wt,
3203
+ code: X,
3213
3204
  def: Ft,
3214
3205
  fences: Tt,
3215
3206
  heading: Dt,
@@ -3217,9 +3208,9 @@ var St = (() => {
3217
3208
  html: zt,
3218
3209
  lheading: At,
3219
3210
  list: It,
3220
- newline: Ct,
3211
+ newline: wt,
3221
3212
  paragraph: Bt,
3222
- table: xt,
3213
+ table: q,
3223
3214
  text: Nt
3224
3215
  }, 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
3216
  ...Vt,
@@ -3231,19 +3222,19 @@ var St = (() => {
3231
3222
  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
3223
  def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,
3233
3224
  heading: /^(#{1,6})(.*)(?:\n+|$)/,
3234
- fences: xt,
3225
+ fences: q,
3235
3226
  lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,
3236
3227
  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
- }, 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,
3228
+ }, 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-", Ct ? "(?<!`)()" : "(^^|[^`])").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 = {
3229
+ _backpedal: q,
3239
3230
  anyPunctuation: pn,
3240
3231
  autolink: mn,
3241
3232
  blockSkip: nn,
3242
3233
  br: qt,
3243
3234
  code: Kt,
3244
- del: xt,
3245
- delLDelim: xt,
3246
- delRDelim: xt,
3235
+ del: q,
3236
+ delLDelim: q,
3237
+ delRDelim: q,
3247
3238
  emStrongLDelim: an,
3248
3239
  emStrongRDelimAst: cn,
3249
3240
  emStrongRDelimUnd: un,
@@ -3255,7 +3246,7 @@ var St = (() => {
3255
3246
  reflinkSearch: xn,
3256
3247
  tag: gn,
3257
3248
  text: Jt,
3258
- url: xt
3249
+ url: q
3259
3250
  }, wn = {
3260
3251
  ...Cn,
3261
3252
  link: J(/^!?\[(label)\]\((.*?)\)/).replace("label", _n).getRegex(),
@@ -3374,7 +3365,7 @@ var zn = class {
3374
3365
  rules;
3375
3366
  lexer;
3376
3367
  constructor(e) {
3377
- this.options = e || q;
3368
+ this.options = e || xt;
3378
3369
  }
3379
3370
  space(e) {
3380
3371
  let t = this.rules.block.newline.exec(e);
@@ -3457,7 +3448,6 @@ ${c}` : c;
3457
3448
  if (u?.type === "list") {
3458
3449
  let t = u, a = t.raw + "\n" + e.join("\n"), o = this.list(a);
3459
3450
  i[i.length - 1] = o, n = n.substring(0, n.length - u.raw.length) + o.raw, r = r.substring(0, r.length - t.raw.length) + o.raw, e = a.substring(i.at(-1).raw.length).split("\n");
3460
- continue;
3461
3451
  }
3462
3452
  }
3463
3453
  return {
@@ -3830,7 +3820,7 @@ ${c}` : c;
3830
3820
  inlineQueue;
3831
3821
  tokenizer;
3832
3822
  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 = {
3823
+ this.tokens = [], this.tokens.links = Object.create(null), this.options = e || xt, 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
3824
  inLink: !1,
3835
3825
  inRawBlock: !1,
3836
3826
  top: !0
@@ -3878,27 +3868,7 @@ ${c}` : c;
3878
3868
  n?.type === "paragraph" || n?.type === "text" ? (n.raw += (n.raw.endsWith("\n") ? "" : "\n") + r.raw, n.text += "\n" + r.text, this.inlineQueue.at(-1).src = n.text) : t.push(r);
3879
3869
  continue;
3880
3870
  }
3881
- if (r = this.tokenizer.fences(e)) {
3882
- e = e.substring(r.raw.length), t.push(r);
3883
- continue;
3884
- }
3885
- if (r = this.tokenizer.heading(e)) {
3886
- e = e.substring(r.raw.length), t.push(r);
3887
- continue;
3888
- }
3889
- if (r = this.tokenizer.hr(e)) {
3890
- e = e.substring(r.raw.length), t.push(r);
3891
- continue;
3892
- }
3893
- if (r = this.tokenizer.blockquote(e)) {
3894
- e = e.substring(r.raw.length), t.push(r);
3895
- continue;
3896
- }
3897
- if (r = this.tokenizer.list(e)) {
3898
- e = e.substring(r.raw.length), t.push(r);
3899
- continue;
3900
- }
3901
- if (r = this.tokenizer.html(e)) {
3871
+ if ((r = this.tokenizer.fences(e)) || (r = this.tokenizer.heading(e)) || (r = this.tokenizer.hr(e)) || (r = this.tokenizer.blockquote(e)) || (r = this.tokenizer.list(e)) || (r = this.tokenizer.html(e))) {
3902
3872
  e = e.substring(r.raw.length), t.push(r);
3903
3873
  continue;
3904
3874
  }
@@ -3911,11 +3881,7 @@ ${c}` : c;
3911
3881
  }, t.push(r));
3912
3882
  continue;
3913
3883
  }
3914
- if (r = this.tokenizer.table(e)) {
3915
- e = e.substring(r.raw.length), t.push(r);
3916
- continue;
3917
- }
3918
- if (r = this.tokenizer.lheading(e)) {
3884
+ if ((r = this.tokenizer.table(e)) || (r = this.tokenizer.lheading(e))) {
3919
3885
  e = e.substring(r.raw.length), t.push(r);
3920
3886
  continue;
3921
3887
  }
@@ -3929,15 +3895,11 @@ ${c}` : c;
3929
3895
  if (this.state.top && (r = this.tokenizer.paragraph(i))) {
3930
3896
  let a = t.at(-1);
3931
3897
  n && a?.type === "paragraph" ? (a.raw += (a.raw.endsWith("\n") ? "" : "\n") + r.raw, a.text += "\n" + r.text, this.inlineQueue.pop(), this.inlineQueue.at(-1).src = a.text) : t.push(r), n = i.length !== e.length, e = e.substring(r.raw.length);
3932
- continue;
3933
- }
3934
- if (r = this.tokenizer.text(e)) {
3898
+ } else if (r = this.tokenizer.text(e)) {
3935
3899
  e = e.substring(r.raw.length);
3936
3900
  let n = t.at(-1);
3937
3901
  n?.type === "text" ? (n.raw += (n.raw.endsWith("\n") ? "" : "\n") + r.raw, n.text += "\n" + r.text, this.inlineQueue.pop(), this.inlineQueue.at(-1).src = n.text) : t.push(r);
3938
- continue;
3939
- }
3940
- if (e) {
3902
+ } else if (e) {
3941
3903
  let t = "Infinite loop on byte: " + e.charCodeAt(0);
3942
3904
  if (this.options.silent) {
3943
3905
  console.error(t);
@@ -3970,15 +3932,7 @@ ${c}` : c;
3970
3932
  a || (o = ""), a = !1;
3971
3933
  let r;
3972
3934
  if (this.options.extensions?.inline?.some((n) => (r = n.call({ lexer: this }, e, t)) ? (e = e.substring(r.raw.length), t.push(r), !0) : !1)) continue;
3973
- if (r = this.tokenizer.escape(e)) {
3974
- e = e.substring(r.raw.length), t.push(r);
3975
- continue;
3976
- }
3977
- if (r = this.tokenizer.tag(e)) {
3978
- e = e.substring(r.raw.length), t.push(r);
3979
- continue;
3980
- }
3981
- if (r = this.tokenizer.link(e)) {
3935
+ if ((r = this.tokenizer.escape(e)) || (r = this.tokenizer.tag(e)) || (r = this.tokenizer.link(e))) {
3982
3936
  e = e.substring(r.raw.length), t.push(r);
3983
3937
  continue;
3984
3938
  }
@@ -3988,27 +3942,7 @@ ${c}` : c;
3988
3942
  r.type === "text" && n?.type === "text" ? (n.raw += r.raw, n.text += r.text) : t.push(r);
3989
3943
  continue;
3990
3944
  }
3991
- if (r = this.tokenizer.emStrong(e, n, o)) {
3992
- e = e.substring(r.raw.length), t.push(r);
3993
- continue;
3994
- }
3995
- if (r = this.tokenizer.codespan(e)) {
3996
- e = e.substring(r.raw.length), t.push(r);
3997
- continue;
3998
- }
3999
- if (r = this.tokenizer.br(e)) {
4000
- e = e.substring(r.raw.length), t.push(r);
4001
- continue;
4002
- }
4003
- if (r = this.tokenizer.del(e, n, o)) {
4004
- e = e.substring(r.raw.length), t.push(r);
4005
- continue;
4006
- }
4007
- if (r = this.tokenizer.autolink(e)) {
4008
- e = e.substring(r.raw.length), t.push(r);
4009
- continue;
4010
- }
4011
- if (!this.state.inLink && (r = this.tokenizer.url(e))) {
3945
+ if ((r = this.tokenizer.emStrong(e, n, o)) || (r = this.tokenizer.codespan(e)) || (r = this.tokenizer.br(e)) || (r = this.tokenizer.del(e, n, o)) || (r = this.tokenizer.autolink(e)) || !this.state.inLink && (r = this.tokenizer.url(e))) {
4012
3946
  e = e.substring(r.raw.length), t.push(r);
4013
3947
  continue;
4014
3948
  }
@@ -4023,9 +3957,7 @@ ${c}` : c;
4023
3957
  e = e.substring(r.raw.length), r.raw.slice(-1) !== "_" && (o = r.raw.slice(-1)), a = !0;
4024
3958
  let n = t.at(-1);
4025
3959
  n?.type === "text" ? (n.raw += r.raw, n.text += r.text) : t.push(r);
4026
- continue;
4027
- }
4028
- if (e) {
3960
+ } else if (e) {
4029
3961
  let t = "Infinite loop on byte: " + e.charCodeAt(0);
4030
3962
  if (this.options.silent) {
4031
3963
  console.error(t);
@@ -4040,7 +3972,7 @@ ${c}` : c;
4040
3972
  options;
4041
3973
  parser;
4042
3974
  constructor(e) {
4043
- this.options = e || q;
3975
+ this.options = e || xt;
4044
3976
  }
4045
3977
  space(e) {
4046
3978
  return "";
@@ -4179,7 +4111,7 @@ ${e}</tr>
4179
4111
  renderer;
4180
4112
  textRenderer;
4181
4113
  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();
4114
+ this.options = e || xt, 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
4115
  }
4184
4116
  static parse(t, n) {
4185
4117
  return new e(n).parse(t);
@@ -4329,7 +4261,7 @@ ${e}</tr>
4329
4261
  options;
4330
4262
  block;
4331
4263
  constructor(e) {
4332
- this.options = e || q;
4264
+ this.options = e || xt;
4333
4265
  }
4334
4266
  static passThroughHooks = /* @__PURE__ */ new Set([
4335
4267
  "preprocess",
@@ -4361,7 +4293,7 @@ ${e}</tr>
4361
4293
  return this.block ? Un.parse : Un.parseInline;
4362
4294
  }
4363
4295
  }, Gn = new class {
4364
- defaults = yt();
4296
+ defaults = bt();
4365
4297
  options = this.setOptions;
4366
4298
  parse = this.parseMarkdown(!0);
4367
4299
  parseInline = this.parseMarkdown(!1);
@@ -4536,16 +4468,16 @@ ${e}</tr>
4536
4468
  };
4537
4469
  }
4538
4470
  }();
4539
- function X(e, t) {
4471
+ function Z(e, t) {
4540
4472
  return Gn.parse(e, t);
4541
4473
  }
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;
4546
- }, X.walkTokens = function(e, t) {
4474
+ Z.options = Z.setOptions = function(e) {
4475
+ return Gn.setOptions(e), Z.defaults = Gn.defaults, St(Z.defaults), Z;
4476
+ }, Z.getDefaults = bt, Z.defaults = xt, Z.use = function(...e) {
4477
+ return Gn.use(...e), Z.defaults = Gn.defaults, St(Z.defaults), Z;
4478
+ }, Z.walkTokens = function(e, t) {
4547
4479
  return Gn.walkTokens(e, t);
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;
4480
+ }, Z.parseInline = Gn.parseInline, Z.Parser = Un, Z.parser = Un.parse, Z.Renderer = Vn, Z.TextRenderer = Hn, Z.Lexer = Bn, Z.lexer = Bn.lex, Z.Tokenizer = zn, Z.Hooks = Wn, Z.parse = Z, Z.options, Z.setOptions, Z.use, Z.walkTokens, Z.parseInline, Un.parse, Bn.lex;
4549
4481
  function Kn(...e) {
4550
4482
  return e.filter(Boolean).join(" ");
4551
4483
  }
@@ -4560,16 +4492,16 @@ function Jn({ animation: e, index: t, as: n, asChild: r, className: i, style: a,
4560
4492
  if (r) {
4561
4493
  let e;
4562
4494
  try {
4563
- e = M.Children.only(o);
4495
+ e = N.Children.only(o);
4564
4496
  } catch {
4565
4497
  throw Error("Fragment with asChild expects exactly one React element child.");
4566
4498
  }
4567
- if (!(0, M.isValidElement)(e) || e.type === M.Fragment) throw Error("Fragment with asChild expects exactly one non-Fragment React element child.");
4499
+ if (!(0, N.isValidElement)(e) || e.type === N.Fragment) throw Error("Fragment with asChild expects exactly one non-Fragment React element child.");
4568
4500
  let n = {
4569
4501
  className: Kn(e.props.className, s),
4570
4502
  style: qn(e.props.style, a)
4571
4503
  };
4572
- return t !== void 0 && (n["data-fragment-index"] = t), (0, M.cloneElement)(e, n);
4504
+ return t !== void 0 && (n["data-fragment-index"] = t), (0, N.cloneElement)(e, n);
4573
4505
  }
4574
4506
  return /* @__PURE__ */ (0, G.jsx)(n ?? "span", {
4575
4507
  className: s,
@@ -4587,10 +4519,12 @@ function Zn(e) {
4587
4519
  }
4588
4520
  function Qn(e) {
4589
4521
  let t = e.querySelector(".fragment:not(.visible)");
4590
- return t ? t.getBoundingClientRect().top - e.getBoundingClientRect().top + e.scrollTop : e.scrollHeight;
4522
+ if (!t) return e.scrollHeight;
4523
+ let n = e.getBoundingClientRect(), r = e.offsetHeight > 0 ? n.height / e.offsetHeight : 1;
4524
+ return (t.getBoundingClientRect().top - n.top) / (r || 1) + e.scrollTop;
4591
4525
  }
4592
4526
  function $n(e, t) {
4593
- let n = (0, N.c)(4), [r, i] = (0, M.useState)(!1), a, o;
4527
+ let n = (0, P.c)(4), [r, i] = (0, N.useState)(!1), a, o;
4594
4528
  return n[0] !== t || n[1] !== e ? (a = () => {
4595
4529
  let n = e.current, r = t.current;
4596
4530
  if (!n || !r) return;
@@ -4614,17 +4548,17 @@ function $n(e, t) {
4614
4548
  }), n.addEventListener("scroll", o, { passive: !0 }), () => {
4615
4549
  cancelAnimationFrame(a), s.disconnect(), c?.disconnect(), n.removeEventListener("scroll", o);
4616
4550
  };
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;
4551
+ }, o = [e, t], n[0] = t, n[1] = e, n[2] = a, n[3] = o) : (a = n[2], o = n[3]), (0, N.useEffect)(a, o), r;
4618
4552
  }
4619
4553
  var er = (e) => {
4620
- let t = (0, N.c)(6), { className: n } = e, i;
4621
- 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);
4554
+ let t = (0, P.c)(6), { className: r } = e, i;
4555
+ t[0] === r ? i = t[1] : (i = n("pointer-events-none absolute inset-x-0 bottom-0 z-10 flex flex-col items-center", "animate-in fade-in-0 duration-200", r), t[0] = r, t[1] = i);
4622
4556
  let a;
4623
4557
  t[2] === Symbol.for("react.memo_cache_sentinel") ? (a = /* @__PURE__ */ (0, G.jsx)("div", { className: "h-16 w-full bg-linear-to-t from-background via-background/80 to-transparent" }), t[2] = a) : a = t[2];
4624
4558
  let o;
4625
4559
  t[3] === Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */ (0, G.jsxs)("div", {
4626
4560
  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" })]
4561
+ children: [/* @__PURE__ */ (0, G.jsx)(w, { className: "h-3.5 w-3.5" }), /* @__PURE__ */ (0, G.jsx)("span", { children: "Scroll for more" })]
4628
4562
  }), t[3] = o) : o = t[3];
4629
4563
  let s;
4630
4564
  return t[4] === i ? s = t[5] : (s = /* @__PURE__ */ (0, G.jsxs)("div", {
@@ -4634,19 +4568,19 @@ var er = (e) => {
4634
4568
  children: [a, o]
4635
4569
  }), t[4] = i, t[5] = s), s;
4636
4570
  }, 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;
4638
- t[0] === i ? c = t[1] : (c = r("relative h-full w-full", i), t[0] = i, t[1] = c);
4571
+ let t = (0, P.c)(10), { children: r, className: i } = e, a = (0, N.useRef)(null), o = (0, N.useRef)(null), s = $n(a, o), c;
4572
+ t[0] === i ? c = t[1] : (c = n("relative h-full w-full", i), t[0] = i, t[1] = c);
4639
4573
  let l;
4640
- t[2] === n ? l = t[3] : (l = /* @__PURE__ */ (0, G.jsx)("div", {
4574
+ t[2] === r ? l = t[3] : (l = /* @__PURE__ */ (0, G.jsx)("div", {
4641
4575
  ref: a,
4642
4576
  className: "h-full w-full overflow-auto",
4643
4577
  "data-testid": "slide-scroll-container",
4644
4578
  children: /* @__PURE__ */ (0, G.jsx)("div", {
4645
4579
  ref: o,
4646
4580
  className: "flex w-full min-h-full",
4647
- children: n
4581
+ children: r
4648
4582
  })
4649
- }), t[2] = n, t[3] = l);
4583
+ }), t[2] = r, t[3] = l);
4650
4584
  let u;
4651
4585
  t[4] === s ? u = t[5] : (u = s && /* @__PURE__ */ (0, G.jsx)(er, {}), t[4] = s, t[5] = u);
4652
4586
  let d;
@@ -4765,48 +4699,44 @@ function sr(e, t) {
4765
4699
  }
4766
4700
  //#endregion
4767
4701
  //#region src/core/islands/stubs/slide-cell-view.tsx
4768
- 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;
4770
- t[0] !== n || t[1] !== a ? (f = (e, t) => {
4702
+ var cr = (e) => (t.warn("SlideCellView islands stub rendered; this should never happen in a read-only embed."), null), lr = (e) => (t.warn("SlideCellReadOnlyView islands stub rendered; this should never happen in a read-only embed."), null), ur = 300, dr = (e) => {
4703
+ let t = (0, P.c)(25), { layout: r, setLayout: a, cellId: o, className: s } = e, c = o ? r.cells.get(o)?.speakerNotes ?? "" : "", [l, u] = (0, N.useState)(c), d = (0, N.useRef)(!1), f;
4704
+ t[0] !== r || t[1] !== a ? (f = (e, t) => {
4771
4705
  d.current = !1;
4772
- let r = n.cells.get(e);
4773
- if ((r?.speakerNotes ?? "") === t) return;
4774
- let i = new Map(n.cells);
4706
+ let n = r.cells.get(e);
4707
+ if ((n?.speakerNotes ?? "") === t) return;
4708
+ let i = new Map(r.cells);
4775
4709
  i.set(e, {
4776
- ...r,
4710
+ ...n,
4777
4711
  speakerNotes: t
4778
4712
  }), a({
4779
- ...n,
4713
+ ...r,
4780
4714
  cells: i
4781
4715
  });
4782
- }, 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, _;
4716
+ }, t[0] = r, t[1] = a, t[2] = f) : f = t[2];
4717
+ let p = j(f), m = T(p, ur), h = (0, N.useRef)(o), g, _;
4784
4718
  t[3] !== o || t[4] !== l || t[5] !== c || t[6] !== m ? (g = () => {
4785
- if (h.current !== o) {
4786
- m.flush(), d.current = !1, u(c), h.current = o;
4787
- return;
4788
- }
4789
- !d.current && c !== l && u(c);
4719
+ h.current === o ? !d.current && c !== l && u(c) : (m.flush(), d.current = !1, u(c), h.current = o);
4790
4720
  }, _ = [
4791
4721
  o,
4792
4722
  c,
4793
4723
  l,
4794
4724
  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, _);
4725
+ ], t[3] = o, t[4] = l, t[5] = c, t[6] = m, t[7] = g, t[8] = _) : (g = t[7], _ = t[8]), (0, N.useEffect)(g, _);
4796
4726
  let v, y;
4797
4727
  t[9] === m ? (v = t[10], y = t[11]) : (v = () => () => {
4798
4728
  m.flush();
4799
- }, y = [m], t[9] = m, t[10] = v, t[11] = y), (0, M.useEffect)(v, y);
4729
+ }, y = [m], t[9] = m, t[10] = v, t[11] = y), (0, N.useEffect)(v, y);
4800
4730
  let b;
4801
4731
  t[12] !== o || t[13] !== m ? (b = (e) => {
4802
4732
  u(e), o && (d.current = !0, m(o, e));
4803
4733
  }, t[12] = o, t[13] = m, t[14] = b) : b = t[14];
4804
4734
  let x = b, S;
4805
- 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);
4735
+ t[15] === s ? S = t[16] : (S = n("h-full min-h-0 flex flex-col bg-muted/40 dark:bg-muted/20 border-t", s), t[15] = s, t[16] = S);
4806
4736
  let C;
4807
4737
  t[17] === Symbol.for("react.memo_cache_sentinel") ? (C = /* @__PURE__ */ (0, G.jsxs)("header", {
4808
4738
  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" })]
4739
+ children: [/* @__PURE__ */ (0, G.jsx)(M, { className: "h-3.5 w-3.5" }), /* @__PURE__ */ (0, G.jsx)("span", { children: "Speaker notes" })]
4810
4740
  }), t[17] = C) : C = t[17];
4811
4741
  let w;
4812
4742
  t[18] !== o || t[19] !== l || t[20] !== x ? (w = /* @__PURE__ */ (0, G.jsx)("div", {
@@ -4816,20 +4746,20 @@ var cr = (e) => (n.warn("SlideCellView islands stub rendered; this should never
4816
4746
  onChange: (e) => x(e.target.value),
4817
4747
  onClick: i.stopPropagation(),
4818
4748
  placeholder: "Add notes for this slide. Visible to you in speaker view (press S during presentation).",
4819
- 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"),
4749
+ className: n("h-full w-full resize-none rounded-sm border border-input/25 bg-background", "px-3 py-2 text-sm leading-relaxed text-foreground placeholder:text-muted-foreground", "ring-offset-background focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring focus-visible:border-accent"),
4820
4750
  "aria-label": "Speaker notes for the current slide"
4821
4751
  }) : /* @__PURE__ */ (0, G.jsx)("div", {
4822
4752
  className: "h-full flex items-center justify-center text-xs text-muted-foreground",
4823
4753
  children: "Select a slide to add notes."
4824
4754
  })
4825
4755
  }), t[18] = o, t[19] = l, t[20] = x, t[21] = w) : w = t[21];
4826
- let T;
4827
- return t[22] !== S || t[23] !== w ? (T = /* @__PURE__ */ (0, G.jsxs)("section", {
4756
+ let E;
4757
+ return t[22] !== S || t[23] !== w ? (E = /* @__PURE__ */ (0, G.jsxs)("section", {
4828
4758
  className: S,
4829
4759
  "aria-label": "Speaker notes",
4830
4760
  onKeyDown: fr,
4831
4761
  children: [C, w]
4832
- }), t[22] = S, t[23] = w, t[24] = T) : T = t[24], T;
4762
+ }), t[22] = S, t[23] = w, t[24] = E) : E = t[24], E;
4833
4763
  };
4834
4764
  function fr(e) {
4835
4765
  return e.stopPropagation();
@@ -4846,10 +4776,10 @@ var pr = "\n\n---\n\n", mr = (e, t) => e.map((e) => t.get(e.id)?.speakerNotes ??
4846
4776
  slideLevel: r,
4847
4777
  cumulativeByBlock: i
4848
4778
  };
4849
- };
4779
+ }, gr = D(!1);
4850
4780
  //#endregion
4851
4781
  //#region ../node_modules/.pnpm/reveal.js@6.0.2/node_modules/reveal.js/dist/plugin/notes.mjs
4852
- function gr() {
4782
+ function _r() {
4853
4783
  return {
4854
4784
  async: !1,
4855
4785
  breaks: !1,
@@ -4863,28 +4793,28 @@ function gr() {
4863
4793
  walkTokens: null
4864
4794
  };
4865
4795
  }
4866
- var _r = gr();
4867
- function vr(e) {
4868
- _r = e;
4796
+ var vr = _r();
4797
+ function yr(e) {
4798
+ vr = e;
4869
4799
  }
4870
- var yr = { exec: () => null };
4871
- function Z(e, t = "") {
4800
+ var br = { exec: () => null };
4801
+ function Q(e, t = "") {
4872
4802
  let n = typeof e == "string" ? e : e.source, r = {
4873
4803
  replace: (e, t) => {
4874
4804
  let i = typeof t == "string" ? t : t.source;
4875
- return i = i.replace(Q.caret, "$1"), n = n.replace(e, i), r;
4805
+ return i = i.replace(Sr.caret, "$1"), n = n.replace(e, i), r;
4876
4806
  },
4877
4807
  getRegex: () => new RegExp(n, t)
4878
4808
  };
4879
4809
  return r;
4880
4810
  }
4881
- var br = (() => {
4811
+ var xr = (() => {
4882
4812
  try {
4883
4813
  return !0;
4884
4814
  } catch {
4885
4815
  return !1;
4886
4816
  }
4887
- })(), Q = {
4817
+ })(), Sr = {
4888
4818
  codeRemoveIndent: /^(?: {1,4}| {0,3}\t)/gm,
4889
4819
  outputLinkReplace: /\\([\[\]])/g,
4890
4820
  indentCodeCompensation: /^(\s+)(?:```)/,
@@ -4941,117 +4871,117 @@ var br = (() => {
4941
4871
  headingBeginRegex: (e) => RegExp(`^ {0,${Math.min(3, e - 1)}}#`),
4942
4872
  htmlBeginRegex: (e) => RegExp(`^ {0,${Math.min(3, e - 1)}}<(?:[a-z].*>|!--)`, "i"),
4943
4873
  blockquoteBeginRegex: (e) => RegExp(`^ {0,${Math.min(3, e - 1)}}>`)
4944
- }, xr = /^(?:[ \t]*(?:\n|$))+/, Sr = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, Cr = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, wr = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, Tr = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, Er = / {0,3}(?:[*+-]|\d{1,9}[.)])/, Dr = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, Or = Z(Dr).replace(/bull/g, Er).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex(), kr = Z(Dr).replace(/bull/g, Er).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(), Ar = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, jr = /^[^\n]+/, Mr = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, Nr = Z(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", Mr).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), Pr = Z(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, Er).getRegex(), Fr = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", Ir = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, Lr = Z("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))", "i").replace("comment", Ir).replace("tag", Fr).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), Rr = Z(Ar).replace("hr", wr).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", Fr).getRegex(), zr = {
4945
- blockquote: Z(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", Rr).getRegex(),
4946
- code: Sr,
4947
- def: Nr,
4948
- fences: Cr,
4949
- heading: Tr,
4950
- hr: wr,
4951
- html: Lr,
4952
- lheading: Or,
4953
- list: Pr,
4954
- newline: xr,
4955
- paragraph: Rr,
4956
- table: yr,
4957
- text: jr
4958
- }, Br = Z("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", wr).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", Fr).getRegex(), Vr = {
4959
- ...zr,
4960
- lheading: kr,
4961
- table: Br,
4962
- paragraph: Z(Ar).replace("hr", wr).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", Br).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", Fr).getRegex()
4963
- }, Hr = {
4964
- ...zr,
4965
- html: Z("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment", Ir).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(),
4874
+ }, Cr = /^(?:[ \t]*(?:\n|$))+/, wr = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, Tr = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, Er = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, Dr = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, Or = / {0,3}(?:[*+-]|\d{1,9}[.)])/, kr = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, Ar = Q(kr).replace(/bull/g, Or).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex(), jr = Q(kr).replace(/bull/g, Or).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(), Mr = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, Nr = /^[^\n]+/, Pr = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, Fr = Q(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", Pr).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), Ir = Q(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, Or).getRegex(), Lr = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", Rr = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, zr = Q("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))", "i").replace("comment", Rr).replace("tag", Lr).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), Br = Q(Mr).replace("hr", Er).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", Lr).getRegex(), Vr = {
4875
+ blockquote: Q(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", Br).getRegex(),
4876
+ code: wr,
4877
+ def: Fr,
4878
+ fences: Tr,
4879
+ heading: Dr,
4880
+ hr: Er,
4881
+ html: zr,
4882
+ lheading: Ar,
4883
+ list: Ir,
4884
+ newline: Cr,
4885
+ paragraph: Br,
4886
+ table: br,
4887
+ text: Nr
4888
+ }, Hr = Q("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", Er).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", Lr).getRegex(), Ur = {
4889
+ ...Vr,
4890
+ lheading: jr,
4891
+ table: Hr,
4892
+ paragraph: Q(Mr).replace("hr", Er).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", Hr).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", Lr).getRegex()
4893
+ }, Wr = {
4894
+ ...Vr,
4895
+ html: Q("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment", Rr).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),
4966
4896
  def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,
4967
4897
  heading: /^(#{1,6})(.*)(?:\n+|$)/,
4968
- fences: yr,
4898
+ fences: br,
4969
4899
  lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,
4970
- paragraph: Z(Ar).replace("hr", wr).replace("heading", " *#{1,6} *[^\n]").replace("lheading", Or).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex()
4971
- }, Ur = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, Wr = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, Gr = /^( {2,}|\\)\n(?!\s*$)/, Kr = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, qr = /[\p{P}\p{S}]/u, Jr = /[\s\p{P}\p{S}]/u, Yr = /[^\s\p{P}\p{S}]/u, Xr = Z(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, Jr).getRegex(), Zr = /(?!~)[\p{P}\p{S}]/u, Qr = /(?!~)[\s\p{P}\p{S}]/u, $r = /(?:[^\s\p{P}\p{S}]|~)/u, ei = Z(/link|precode-code|html/, "g").replace("link", /\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-", br ? "(?<!`)()" : "(^^|[^`])").replace("code", /(?<b>`+)[^`]+\k<b>(?!`)/).replace("html", /<(?! )[^<>]*?>/).getRegex(), ti = /^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/, ni = Z(ti, "u").replace(/punct/g, qr).getRegex(), ri = Z(ti, "u").replace(/punct/g, Zr).getRegex(), ii = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", ai = Z(ii, "gu").replace(/notPunctSpace/g, Yr).replace(/punctSpace/g, Jr).replace(/punct/g, qr).getRegex(), oi = Z(ii, "gu").replace(/notPunctSpace/g, $r).replace(/punctSpace/g, Qr).replace(/punct/g, Zr).getRegex(), si = Z("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, Yr).replace(/punctSpace/g, Jr).replace(/punct/g, qr).getRegex(), ci = Z(/^~~?(?:((?!~)punct)|[^\s~])/, "u").replace(/punct/g, qr).getRegex(), li = Z("^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)", "gu").replace(/notPunctSpace/g, Yr).replace(/punctSpace/g, Jr).replace(/punct/g, qr).getRegex(), ui = Z(/\\(punct)/, "gu").replace(/punct/g, qr).getRegex(), di = Z(/^<(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(), fi = Z(Ir).replace("(?:-->|$)", "-->").getRegex(), pi = Z("^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", fi).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), mi = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/, hi = Z(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label", mi).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), gi = Z(/^!?\[(label)\]\[(ref)\]/).replace("label", mi).replace("ref", Mr).getRegex(), _i = Z(/^!?\[(ref)\](?:\[\])?/).replace("ref", Mr).getRegex(), vi = Z("reflink|nolink(?!\\()", "g").replace("reflink", gi).replace("nolink", _i).getRegex(), yi = /[hH][tT][tT][pP][sS]?|[fF][tT][pP]/, bi = {
4972
- _backpedal: yr,
4973
- anyPunctuation: ui,
4974
- autolink: di,
4975
- blockSkip: ei,
4976
- br: Gr,
4977
- code: Wr,
4978
- del: yr,
4979
- delLDelim: yr,
4980
- delRDelim: yr,
4981
- emStrongLDelim: ni,
4982
- emStrongRDelimAst: ai,
4983
- emStrongRDelimUnd: si,
4984
- escape: Ur,
4985
- link: hi,
4986
- nolink: _i,
4987
- punctuation: Xr,
4988
- reflink: gi,
4989
- reflinkSearch: vi,
4990
- tag: pi,
4991
- text: Kr,
4992
- url: yr
4993
- }, xi = {
4994
- ...bi,
4995
- link: Z(/^!?\[(label)\]\((.*?)\)/).replace("label", mi).getRegex(),
4996
- reflink: Z(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", mi).getRegex()
4997
- }, Si = {
4998
- ...bi,
4999
- emStrongRDelimAst: oi,
5000
- emStrongLDelim: ri,
5001
- delLDelim: ci,
5002
- delRDelim: li,
5003
- url: Z(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol", yi).replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),
5004
- _backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,
5005
- del: /^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,
5006
- text: Z(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol", yi).getRegex()
4900
+ paragraph: Q(Mr).replace("hr", Er).replace("heading", " *#{1,6} *[^\n]").replace("lheading", Ar).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex()
4901
+ }, Gr = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, Kr = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, qr = /^( {2,}|\\)\n(?!\s*$)/, Jr = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, Yr = /[\p{P}\p{S}]/u, Xr = /[\s\p{P}\p{S}]/u, Zr = /[^\s\p{P}\p{S}]/u, Qr = Q(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, Xr).getRegex(), $r = /(?!~)[\p{P}\p{S}]/u, ei = /(?!~)[\s\p{P}\p{S}]/u, ti = /(?:[^\s\p{P}\p{S}]|~)/u, ni = Q(/link|precode-code|html/, "g").replace("link", /\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-", xr ? "(?<!`)()" : "(^^|[^`])").replace("code", /(?<b>`+)[^`]+\k<b>(?!`)/).replace("html", /<(?! )[^<>]*?>/).getRegex(), ri = /^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/, ii = Q(ri, "u").replace(/punct/g, Yr).getRegex(), ai = Q(ri, "u").replace(/punct/g, $r).getRegex(), oi = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", si = Q(oi, "gu").replace(/notPunctSpace/g, Zr).replace(/punctSpace/g, Xr).replace(/punct/g, Yr).getRegex(), ci = Q(oi, "gu").replace(/notPunctSpace/g, ti).replace(/punctSpace/g, ei).replace(/punct/g, $r).getRegex(), li = Q("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, Zr).replace(/punctSpace/g, Xr).replace(/punct/g, Yr).getRegex(), ui = Q(/^~~?(?:((?!~)punct)|[^\s~])/, "u").replace(/punct/g, Yr).getRegex(), di = Q("^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)", "gu").replace(/notPunctSpace/g, Zr).replace(/punctSpace/g, Xr).replace(/punct/g, Yr).getRegex(), fi = Q(/\\(punct)/, "gu").replace(/punct/g, Yr).getRegex(), pi = Q(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), mi = Q(Rr).replace("(?:-->|$)", "-->").getRegex(), hi = Q("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", mi).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), gi = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/, _i = Q(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label", gi).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), vi = Q(/^!?\[(label)\]\[(ref)\]/).replace("label", gi).replace("ref", Pr).getRegex(), yi = Q(/^!?\[(ref)\](?:\[\])?/).replace("ref", Pr).getRegex(), bi = Q("reflink|nolink(?!\\()", "g").replace("reflink", vi).replace("nolink", yi).getRegex(), xi = /[hH][tT][tT][pP][sS]?|[fF][tT][pP]/, Si = {
4902
+ _backpedal: br,
4903
+ anyPunctuation: fi,
4904
+ autolink: pi,
4905
+ blockSkip: ni,
4906
+ br: qr,
4907
+ code: Kr,
4908
+ del: br,
4909
+ delLDelim: br,
4910
+ delRDelim: br,
4911
+ emStrongLDelim: ii,
4912
+ emStrongRDelimAst: si,
4913
+ emStrongRDelimUnd: li,
4914
+ escape: Gr,
4915
+ link: _i,
4916
+ nolink: yi,
4917
+ punctuation: Qr,
4918
+ reflink: vi,
4919
+ reflinkSearch: bi,
4920
+ tag: hi,
4921
+ text: Jr,
4922
+ url: br
5007
4923
  }, Ci = {
5008
4924
  ...Si,
5009
- br: Z(Gr).replace("{2,}", "*").getRegex(),
5010
- text: Z(Si.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex()
4925
+ link: Q(/^!?\[(label)\]\((.*?)\)/).replace("label", gi).getRegex(),
4926
+ reflink: Q(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", gi).getRegex()
5011
4927
  }, wi = {
5012
- normal: zr,
5013
- gfm: Vr,
5014
- pedantic: Hr
4928
+ ...Si,
4929
+ emStrongRDelimAst: ci,
4930
+ emStrongLDelim: ai,
4931
+ delLDelim: ui,
4932
+ delRDelim: di,
4933
+ url: Q(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol", xi).replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),
4934
+ _backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,
4935
+ del: /^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,
4936
+ text: Q(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol", xi).getRegex()
5015
4937
  }, Ti = {
5016
- normal: bi,
5017
- gfm: Si,
5018
- breaks: Ci,
5019
- pedantic: xi
4938
+ ...wi,
4939
+ br: Q(qr).replace("{2,}", "*").getRegex(),
4940
+ text: Q(wi.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex()
5020
4941
  }, Ei = {
4942
+ normal: Vr,
4943
+ gfm: Ur,
4944
+ pedantic: Wr
4945
+ }, Di = {
4946
+ normal: Si,
4947
+ gfm: wi,
4948
+ breaks: Ti,
4949
+ pedantic: Ci
4950
+ }, Oi = {
5021
4951
  "&": "&amp;",
5022
4952
  "<": "&lt;",
5023
4953
  ">": "&gt;",
5024
4954
  "\"": "&quot;",
5025
4955
  "'": "&#39;"
5026
- }, Di = (e) => Ei[e];
5027
- function Oi(e, t) {
4956
+ }, ki = (e) => Oi[e];
4957
+ function Ai(e, t) {
5028
4958
  if (t) {
5029
- if (Q.escapeTest.test(e)) return e.replace(Q.escapeReplace, Di);
5030
- } else if (Q.escapeTestNoEncode.test(e)) return e.replace(Q.escapeReplaceNoEncode, Di);
4959
+ if (Sr.escapeTest.test(e)) return e.replace(Sr.escapeReplace, ki);
4960
+ } else if (Sr.escapeTestNoEncode.test(e)) return e.replace(Sr.escapeReplaceNoEncode, ki);
5031
4961
  return e;
5032
4962
  }
5033
- function ki(e) {
4963
+ function ji(e) {
5034
4964
  try {
5035
- e = encodeURI(e).replace(Q.percentDecode, "%");
4965
+ e = encodeURI(e).replace(Sr.percentDecode, "%");
5036
4966
  } catch {
5037
4967
  return null;
5038
4968
  }
5039
4969
  return e;
5040
4970
  }
5041
- function Ai(e, t) {
5042
- let n = e.replace(Q.findPipe, (e, t, n) => {
4971
+ function Mi(e, t) {
4972
+ let n = e.replace(Sr.findPipe, (e, t, n) => {
5043
4973
  let r = !1, i = t;
5044
4974
  for (; --i >= 0 && n[i] === "\\";) r = !r;
5045
4975
  return r ? "|" : " |";
5046
- }).split(Q.splitPipe), r = 0;
4976
+ }).split(Sr.splitPipe), r = 0;
5047
4977
  if (n[0].trim() || n.shift(), n.length > 0 && !n.at(-1)?.trim() && n.pop(), t) {
5048
4978
  if (n.length > t) n.splice(t);
5049
4979
  else for (; n.length < t;) n.push("");
5050
4980
  }
5051
- for (; r < n.length; r++) n[r] = n[r].trim().replace(Q.slashPipe, "|");
4981
+ for (; r < n.length; r++) n[r] = n[r].trim().replace(Sr.slashPipe, "|");
5052
4982
  return n;
5053
4983
  }
5054
- function ji(e, t, n) {
4984
+ function Ni(e, t, n) {
5055
4985
  let r = e.length;
5056
4986
  if (r === 0) return "";
5057
4987
  let i = 0;
@@ -5063,7 +4993,7 @@ function ji(e, t, n) {
5063
4993
  }
5064
4994
  return e.slice(0, r - i);
5065
4995
  }
5066
- function Mi(e, t) {
4996
+ function Pi(e, t) {
5067
4997
  if (e.indexOf(t[1]) === -1) return -1;
5068
4998
  let n = 0;
5069
4999
  for (let r = 0; r < e.length; r++) if (e[r] === "\\") r++;
@@ -5071,7 +5001,7 @@ function Mi(e, t) {
5071
5001
  else if (e[r] === t[1] && (n--, n < 0)) return r;
5072
5002
  return n > 0 ? -2 : -1;
5073
5003
  }
5074
- function Ni(e, t = 0) {
5004
+ function Fi(e, t = 0) {
5075
5005
  let n = t, r = "";
5076
5006
  for (let t of e) if (t === " ") {
5077
5007
  let e = 4 - n % 4;
@@ -5079,7 +5009,7 @@ function Ni(e, t = 0) {
5079
5009
  } else r += t, n++;
5080
5010
  return r;
5081
5011
  }
5082
- function Pi(e, t, n, r, i) {
5012
+ function Ii(e, t, n, r, i) {
5083
5013
  let a = t.href, o = t.title || null, s = e[1].replace(i.other.outputLinkReplace, "$1");
5084
5014
  r.state.inLink = !0;
5085
5015
  let c = {
@@ -5092,7 +5022,7 @@ function Pi(e, t, n, r, i) {
5092
5022
  };
5093
5023
  return r.state.inLink = !1, c;
5094
5024
  }
5095
- function Fi(e, t, n) {
5025
+ function Li(e, t, n) {
5096
5026
  let r = e.match(n.other.indentCodeCompensation);
5097
5027
  if (r === null) return t;
5098
5028
  let i = r[1];
@@ -5103,12 +5033,12 @@ function Fi(e, t, n) {
5103
5033
  return r.length >= i.length ? e.slice(i.length) : e;
5104
5034
  }).join("\n");
5105
5035
  }
5106
- var Ii = class {
5036
+ var Ri = class {
5107
5037
  options;
5108
5038
  rules;
5109
5039
  lexer;
5110
5040
  constructor(e) {
5111
- this.options = e || _r;
5041
+ this.options = e || vr;
5112
5042
  }
5113
5043
  space(e) {
5114
5044
  let t = this.rules.block.newline.exec(e);
@@ -5125,14 +5055,14 @@ var Ii = class {
5125
5055
  type: "code",
5126
5056
  raw: t[0],
5127
5057
  codeBlockStyle: "indented",
5128
- text: this.options.pedantic ? e : ji(e, "\n")
5058
+ text: this.options.pedantic ? e : Ni(e, "\n")
5129
5059
  };
5130
5060
  }
5131
5061
  }
5132
5062
  fences(e) {
5133
5063
  let t = this.rules.block.fences.exec(e);
5134
5064
  if (t) {
5135
- let e = t[0], n = Fi(e, t[3] || "", this.rules);
5065
+ let e = t[0], n = Li(e, t[3] || "", this.rules);
5136
5066
  return {
5137
5067
  type: "code",
5138
5068
  raw: e,
@@ -5146,7 +5076,7 @@ var Ii = class {
5146
5076
  if (t) {
5147
5077
  let e = t[2].trim();
5148
5078
  if (this.rules.other.endingHash.test(e)) {
5149
- let t = ji(e, "#");
5079
+ let t = Ni(e, "#");
5150
5080
  (this.options.pedantic || !t || this.rules.other.endingSpaceChar.test(t)) && (e = t.trim());
5151
5081
  }
5152
5082
  return {
@@ -5162,16 +5092,16 @@ var Ii = class {
5162
5092
  let t = this.rules.block.hr.exec(e);
5163
5093
  if (t) return {
5164
5094
  type: "hr",
5165
- raw: ji(t[0], "\n")
5095
+ raw: Ni(t[0], "\n")
5166
5096
  };
5167
5097
  }
5168
5098
  blockquote(e) {
5169
5099
  let t = this.rules.block.blockquote.exec(e);
5170
5100
  if (t) {
5171
- let e = ji(t[0], "\n").split("\n"), n = "", r = "", i = [];
5101
+ let e = Ni(t[0], "\n").split("\n"), n = "", r = "", i = [];
5172
5102
  for (; e.length > 0;) {
5173
- let t = !1, a = [], o;
5174
- for (o = 0; o < e.length; o++) if (this.rules.other.blockquoteStart.test(e[o])) a.push(e[o]), t = !0;
5103
+ let t = !1, a = [], o = 0;
5104
+ for (; o < e.length; o++) if (this.rules.other.blockquoteStart.test(e[o])) a.push(e[o]), t = !0;
5175
5105
  else if (!t) a.push(e[o]);
5176
5106
  else break;
5177
5107
  e = e.slice(o);
@@ -5191,7 +5121,6 @@ ${c}` : c;
5191
5121
  if (u?.type === "list") {
5192
5122
  let t = u, a = t.raw + "\n" + e.join("\n"), o = this.list(a);
5193
5123
  i[i.length - 1] = o, n = n.substring(0, n.length - u.raw.length) + o.raw, r = r.substring(0, r.length - t.raw.length) + o.raw, e = a.substring(i.at(-1).raw.length).split("\n");
5194
- continue;
5195
5124
  }
5196
5125
  }
5197
5126
  return {
@@ -5219,7 +5148,7 @@ ${c}` : c;
5219
5148
  let n = !1, r = "", s = "";
5220
5149
  if (!(t = a.exec(e)) || this.rules.block.hr.test(e)) break;
5221
5150
  r = t[0], e = e.substring(r.length);
5222
- let c = Ni(t[2].split("\n", 1)[0], t[1].length), l = e.split("\n", 1)[0], u = !c.trim(), d = 0;
5151
+ let c = Fi(t[2].split("\n", 1)[0], t[1].length), l = e.split("\n", 1)[0], u = !c.trim(), d = 0;
5223
5152
  if (this.options.pedantic ? (d = 2, s = c.trimStart()) : u ? d = t[1].length + 1 : (d = c.search(this.rules.other.nonSpaceChar), d = d > 4 ? 1 : d, s = c.slice(d), d += t[1].length), u && this.rules.other.blankLine.test(l) && (r += l + "\n", e = e.substring(l.length + 1), n = !0), !n) {
5224
5153
  let t = this.rules.other.nextBulletRegex(d), n = this.rules.other.hrRegex(d), i = this.rules.other.fencesBeginRegex(d), a = this.rules.other.headingBeginRegex(d), o = this.rules.other.htmlBeginRegex(d), f = this.rules.other.blockquoteBeginRegex(d);
5225
5154
  for (; e;) {
@@ -5308,7 +5237,7 @@ ${c}` : c;
5308
5237
  table(e) {
5309
5238
  let t = this.rules.block.table.exec(e);
5310
5239
  if (!t || !this.rules.other.tableDelimiter.test(t[2])) return;
5311
- let n = Ai(t[1]), r = t[2].replace(this.rules.other.tableAlignChars, "").split("|"), i = t[3]?.trim() ? t[3].replace(this.rules.other.tableRowBlankLine, "").split("\n") : [], a = {
5240
+ let n = Mi(t[1]), r = t[2].replace(this.rules.other.tableAlignChars, "").split("|"), i = t[3]?.trim() ? t[3].replace(this.rules.other.tableRowBlankLine, "").split("\n") : [], a = {
5312
5241
  type: "table",
5313
5242
  raw: t[0],
5314
5243
  header: [],
@@ -5323,7 +5252,7 @@ ${c}` : c;
5323
5252
  header: !0,
5324
5253
  align: a.align[e]
5325
5254
  });
5326
- for (let e of i) a.rows.push(Ai(e, a.header.length).map((e, t) => ({
5255
+ for (let e of i) a.rows.push(Mi(e, a.header.length).map((e, t) => ({
5327
5256
  text: e,
5328
5257
  tokens: this.lexer.inline(e),
5329
5258
  header: !1,
@@ -5391,10 +5320,10 @@ ${c}` : c;
5391
5320
  let e = t[2].trim();
5392
5321
  if (!this.options.pedantic && this.rules.other.startAngleBracket.test(e)) {
5393
5322
  if (!this.rules.other.endAngleBracket.test(e)) return;
5394
- let t = ji(e.slice(0, -1), "\\");
5323
+ let t = Ni(e.slice(0, -1), "\\");
5395
5324
  if ((e.length - t.length) % 2 == 0) return;
5396
5325
  } else {
5397
- let e = Mi(t[2], "()");
5326
+ let e = Pi(t[2], "()");
5398
5327
  if (e === -2) return;
5399
5328
  if (e > -1) {
5400
5329
  let n = (t[0].indexOf("!") === 0 ? 5 : 4) + t[1].length + e;
@@ -5406,7 +5335,7 @@ ${c}` : c;
5406
5335
  let e = this.rules.other.pedanticHrefTitle.exec(n);
5407
5336
  e && (n = e[1], r = e[3]);
5408
5337
  } else r = t[3] ? t[3].slice(1, -1) : "";
5409
- return n = n.trim(), this.rules.other.startAngleBracket.test(n) && (n = this.options.pedantic && !this.rules.other.endAngleBracket.test(e) ? n.slice(1) : n.slice(1, -1)), Pi(t, {
5338
+ return n = n.trim(), this.rules.other.startAngleBracket.test(n) && (n = this.options.pedantic && !this.rules.other.endAngleBracket.test(e) ? n.slice(1) : n.slice(1, -1)), Ii(t, {
5410
5339
  href: n && n.replace(this.rules.inline.anyPunctuation, "$1"),
5411
5340
  title: r && r.replace(this.rules.inline.anyPunctuation, "$1")
5412
5341
  }, t[0], this.lexer, this.rules);
@@ -5424,7 +5353,7 @@ ${c}` : c;
5424
5353
  text: e
5425
5354
  };
5426
5355
  }
5427
- return Pi(n, e, n[0], this.lexer, this.rules);
5356
+ return Ii(n, e, n[0], this.lexer, this.rules);
5428
5357
  }
5429
5358
  }
5430
5359
  emStrong(e, t, n = "") {
@@ -5557,29 +5486,29 @@ ${c}` : c;
5557
5486
  };
5558
5487
  }
5559
5488
  }
5560
- }, Li = class e {
5489
+ }, zi = class e {
5561
5490
  tokens;
5562
5491
  options;
5563
5492
  state;
5564
5493
  inlineQueue;
5565
5494
  tokenizer;
5566
5495
  constructor(e) {
5567
- this.tokens = [], this.tokens.links = Object.create(null), this.options = e || _r, this.options.tokenizer = this.options.tokenizer || new Ii(), this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = {
5496
+ this.tokens = [], this.tokens.links = Object.create(null), this.options = e || vr, this.options.tokenizer = this.options.tokenizer || new Ri(), this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = {
5568
5497
  inLink: !1,
5569
5498
  inRawBlock: !1,
5570
5499
  top: !0
5571
5500
  };
5572
5501
  let t = {
5573
- other: Q,
5574
- block: wi.normal,
5575
- inline: Ti.normal
5502
+ other: Sr,
5503
+ block: Ei.normal,
5504
+ inline: Di.normal
5576
5505
  };
5577
- this.options.pedantic ? (t.block = wi.pedantic, t.inline = Ti.pedantic) : this.options.gfm && (t.block = wi.gfm, t.inline = this.options.breaks ? Ti.breaks : Ti.gfm), this.tokenizer.rules = t;
5506
+ this.options.pedantic ? (t.block = Ei.pedantic, t.inline = Di.pedantic) : this.options.gfm && (t.block = Ei.gfm, t.inline = this.options.breaks ? Di.breaks : Di.gfm), this.tokenizer.rules = t;
5578
5507
  }
5579
5508
  static get rules() {
5580
5509
  return {
5581
- block: wi,
5582
- inline: Ti
5510
+ block: Ei,
5511
+ inline: Di
5583
5512
  };
5584
5513
  }
5585
5514
  static lex(t, n) {
@@ -5589,7 +5518,7 @@ ${c}` : c;
5589
5518
  return new e(n).inlineTokens(t);
5590
5519
  }
5591
5520
  lex(e) {
5592
- e = e.replace(Q.carriageReturn, "\n"), this.blockTokens(e, this.tokens);
5521
+ e = e.replace(Sr.carriageReturn, "\n"), this.blockTokens(e, this.tokens);
5593
5522
  for (let e = 0; e < this.inlineQueue.length; e++) {
5594
5523
  let t = this.inlineQueue[e];
5595
5524
  this.inlineTokens(t.src, t.tokens);
@@ -5597,7 +5526,7 @@ ${c}` : c;
5597
5526
  return this.inlineQueue = [], this.tokens;
5598
5527
  }
5599
5528
  blockTokens(e, t = [], n = !1) {
5600
- for (this.tokenizer.lexer = this, this.options.pedantic && (e = e.replace(Q.tabCharGlobal, " ").replace(Q.spaceLine, "")); e;) {
5529
+ for (this.tokenizer.lexer = this, this.options.pedantic && (e = e.replace(Sr.tabCharGlobal, " ").replace(Sr.spaceLine, "")); e;) {
5601
5530
  let r;
5602
5531
  if (this.options.extensions?.block?.some((n) => (r = n.call({ lexer: this }, e, t)) ? (e = e.substring(r.raw.length), t.push(r), !0) : !1)) continue;
5603
5532
  if (r = this.tokenizer.space(e)) {
@@ -5612,27 +5541,7 @@ ${c}` : c;
5612
5541
  n?.type === "paragraph" || n?.type === "text" ? (n.raw += (n.raw.endsWith("\n") ? "" : "\n") + r.raw, n.text += "\n" + r.text, this.inlineQueue.at(-1).src = n.text) : t.push(r);
5613
5542
  continue;
5614
5543
  }
5615
- if (r = this.tokenizer.fences(e)) {
5616
- e = e.substring(r.raw.length), t.push(r);
5617
- continue;
5618
- }
5619
- if (r = this.tokenizer.heading(e)) {
5620
- e = e.substring(r.raw.length), t.push(r);
5621
- continue;
5622
- }
5623
- if (r = this.tokenizer.hr(e)) {
5624
- e = e.substring(r.raw.length), t.push(r);
5625
- continue;
5626
- }
5627
- if (r = this.tokenizer.blockquote(e)) {
5628
- e = e.substring(r.raw.length), t.push(r);
5629
- continue;
5630
- }
5631
- if (r = this.tokenizer.list(e)) {
5632
- e = e.substring(r.raw.length), t.push(r);
5633
- continue;
5634
- }
5635
- if (r = this.tokenizer.html(e)) {
5544
+ if ((r = this.tokenizer.fences(e)) || (r = this.tokenizer.heading(e)) || (r = this.tokenizer.hr(e)) || (r = this.tokenizer.blockquote(e)) || (r = this.tokenizer.list(e)) || (r = this.tokenizer.html(e))) {
5636
5545
  e = e.substring(r.raw.length), t.push(r);
5637
5546
  continue;
5638
5547
  }
@@ -5645,11 +5554,7 @@ ${c}` : c;
5645
5554
  }, t.push(r));
5646
5555
  continue;
5647
5556
  }
5648
- if (r = this.tokenizer.table(e)) {
5649
- e = e.substring(r.raw.length), t.push(r);
5650
- continue;
5651
- }
5652
- if (r = this.tokenizer.lheading(e)) {
5557
+ if ((r = this.tokenizer.table(e)) || (r = this.tokenizer.lheading(e))) {
5653
5558
  e = e.substring(r.raw.length), t.push(r);
5654
5559
  continue;
5655
5560
  }
@@ -5663,15 +5568,11 @@ ${c}` : c;
5663
5568
  if (this.state.top && (r = this.tokenizer.paragraph(i))) {
5664
5569
  let a = t.at(-1);
5665
5570
  n && a?.type === "paragraph" ? (a.raw += (a.raw.endsWith("\n") ? "" : "\n") + r.raw, a.text += "\n" + r.text, this.inlineQueue.pop(), this.inlineQueue.at(-1).src = a.text) : t.push(r), n = i.length !== e.length, e = e.substring(r.raw.length);
5666
- continue;
5667
- }
5668
- if (r = this.tokenizer.text(e)) {
5571
+ } else if (r = this.tokenizer.text(e)) {
5669
5572
  e = e.substring(r.raw.length);
5670
5573
  let n = t.at(-1);
5671
5574
  n?.type === "text" ? (n.raw += (n.raw.endsWith("\n") ? "" : "\n") + r.raw, n.text += "\n" + r.text, this.inlineQueue.pop(), this.inlineQueue.at(-1).src = n.text) : t.push(r);
5672
- continue;
5673
- }
5674
- if (e) {
5575
+ } else if (e) {
5675
5576
  let t = "Infinite loop on byte: " + e.charCodeAt(0);
5676
5577
  if (this.options.silent) {
5677
5578
  console.error(t);
@@ -5704,15 +5605,7 @@ ${c}` : c;
5704
5605
  a || (o = ""), a = !1;
5705
5606
  let r;
5706
5607
  if (this.options.extensions?.inline?.some((n) => (r = n.call({ lexer: this }, e, t)) ? (e = e.substring(r.raw.length), t.push(r), !0) : !1)) continue;
5707
- if (r = this.tokenizer.escape(e)) {
5708
- e = e.substring(r.raw.length), t.push(r);
5709
- continue;
5710
- }
5711
- if (r = this.tokenizer.tag(e)) {
5712
- e = e.substring(r.raw.length), t.push(r);
5713
- continue;
5714
- }
5715
- if (r = this.tokenizer.link(e)) {
5608
+ if ((r = this.tokenizer.escape(e)) || (r = this.tokenizer.tag(e)) || (r = this.tokenizer.link(e))) {
5716
5609
  e = e.substring(r.raw.length), t.push(r);
5717
5610
  continue;
5718
5611
  }
@@ -5722,27 +5615,7 @@ ${c}` : c;
5722
5615
  r.type === "text" && n?.type === "text" ? (n.raw += r.raw, n.text += r.text) : t.push(r);
5723
5616
  continue;
5724
5617
  }
5725
- if (r = this.tokenizer.emStrong(e, n, o)) {
5726
- e = e.substring(r.raw.length), t.push(r);
5727
- continue;
5728
- }
5729
- if (r = this.tokenizer.codespan(e)) {
5730
- e = e.substring(r.raw.length), t.push(r);
5731
- continue;
5732
- }
5733
- if (r = this.tokenizer.br(e)) {
5734
- e = e.substring(r.raw.length), t.push(r);
5735
- continue;
5736
- }
5737
- if (r = this.tokenizer.del(e, n, o)) {
5738
- e = e.substring(r.raw.length), t.push(r);
5739
- continue;
5740
- }
5741
- if (r = this.tokenizer.autolink(e)) {
5742
- e = e.substring(r.raw.length), t.push(r);
5743
- continue;
5744
- }
5745
- if (!this.state.inLink && (r = this.tokenizer.url(e))) {
5618
+ if ((r = this.tokenizer.emStrong(e, n, o)) || (r = this.tokenizer.codespan(e)) || (r = this.tokenizer.br(e)) || (r = this.tokenizer.del(e, n, o)) || (r = this.tokenizer.autolink(e)) || !this.state.inLink && (r = this.tokenizer.url(e))) {
5746
5619
  e = e.substring(r.raw.length), t.push(r);
5747
5620
  continue;
5748
5621
  }
@@ -5757,9 +5630,7 @@ ${c}` : c;
5757
5630
  e = e.substring(r.raw.length), r.raw.slice(-1) !== "_" && (o = r.raw.slice(-1)), a = !0;
5758
5631
  let n = t.at(-1);
5759
5632
  n?.type === "text" ? (n.raw += r.raw, n.text += r.text) : t.push(r);
5760
- continue;
5761
- }
5762
- if (e) {
5633
+ } else if (e) {
5763
5634
  let t = "Infinite loop on byte: " + e.charCodeAt(0);
5764
5635
  if (this.options.silent) {
5765
5636
  console.error(t);
@@ -5770,18 +5641,18 @@ ${c}` : c;
5770
5641
  }
5771
5642
  return t;
5772
5643
  }
5773
- }, Ri = class {
5644
+ }, Bi = class {
5774
5645
  options;
5775
5646
  parser;
5776
5647
  constructor(e) {
5777
- this.options = e || _r;
5648
+ this.options = e || vr;
5778
5649
  }
5779
5650
  space(e) {
5780
5651
  return "";
5781
5652
  }
5782
5653
  code({ text: e, lang: t, escaped: n }) {
5783
- let r = (t || "").match(Q.notSpaceStart)?.[0], i = e.replace(Q.endingNewline, "") + "\n";
5784
- return r ? "<pre><code class=\"language-" + Oi(r) + "\">" + (n ? i : Oi(i, !0)) + "</code></pre>\n" : "<pre><code>" + (n ? i : Oi(i, !0)) + "</code></pre>\n";
5654
+ let r = (t || "").match(Sr.notSpaceStart)?.[0], i = e.replace(Sr.endingNewline, "") + "\n";
5655
+ return r ? "<pre><code class=\"language-" + Ai(r) + "\">" + (n ? i : Ai(i, !0)) + "</code></pre>\n" : "<pre><code>" + (n ? i : Ai(i, !0)) + "</code></pre>\n";
5785
5656
  }
5786
5657
  blockquote({ tokens: e }) {
5787
5658
  return `<blockquote>
@@ -5851,7 +5722,7 @@ ${e}</tr>
5851
5722
  return `<em>${this.parser.parseInline(e)}</em>`;
5852
5723
  }
5853
5724
  codespan({ text: e }) {
5854
- return `<code>${Oi(e, !0)}</code>`;
5725
+ return `<code>${Ai(e, !0)}</code>`;
5855
5726
  }
5856
5727
  br(e) {
5857
5728
  return "<br>";
@@ -5860,24 +5731,24 @@ ${e}</tr>
5860
5731
  return `<del>${this.parser.parseInline(e)}</del>`;
5861
5732
  }
5862
5733
  link({ href: e, title: t, tokens: n }) {
5863
- let r = this.parser.parseInline(n), i = ki(e);
5734
+ let r = this.parser.parseInline(n), i = ji(e);
5864
5735
  if (i === null) return r;
5865
5736
  e = i;
5866
5737
  let a = "<a href=\"" + e + "\"";
5867
- return t && (a += " title=\"" + Oi(t) + "\""), a += ">" + r + "</a>", a;
5738
+ return t && (a += " title=\"" + Ai(t) + "\""), a += ">" + r + "</a>", a;
5868
5739
  }
5869
5740
  image({ href: e, title: t, text: n, tokens: r }) {
5870
5741
  r && (n = this.parser.parseInline(r, this.parser.textRenderer));
5871
- let i = ki(e);
5872
- if (i === null) return Oi(n);
5742
+ let i = ji(e);
5743
+ if (i === null) return Ai(n);
5873
5744
  e = i;
5874
- let a = `<img src="${e}" alt="${Oi(n)}"`;
5875
- return t && (a += ` title="${Oi(t)}"`), a += ">", a;
5745
+ let a = `<img src="${e}" alt="${Ai(n)}"`;
5746
+ return t && (a += ` title="${Ai(t)}"`), a += ">", a;
5876
5747
  }
5877
5748
  text(e) {
5878
- return "tokens" in e && e.tokens ? this.parser.parseInline(e.tokens) : "escaped" in e && e.escaped ? e.text : Oi(e.text);
5749
+ return "tokens" in e && e.tokens ? this.parser.parseInline(e.tokens) : "escaped" in e && e.escaped ? e.text : Ai(e.text);
5879
5750
  }
5880
- }, zi = class {
5751
+ }, Vi = class {
5881
5752
  strong({ text: e }) {
5882
5753
  return e;
5883
5754
  }
@@ -5908,12 +5779,12 @@ ${e}</tr>
5908
5779
  checkbox({ raw: e }) {
5909
5780
  return e;
5910
5781
  }
5911
- }, Bi = class e {
5782
+ }, Hi = class e {
5912
5783
  options;
5913
5784
  renderer;
5914
5785
  textRenderer;
5915
5786
  constructor(e) {
5916
- this.options = e || _r, this.options.renderer = this.options.renderer || new Ri(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new zi();
5787
+ this.options = e || vr, this.options.renderer = this.options.renderer || new Bi(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new Vi();
5917
5788
  }
5918
5789
  static parse(t, n) {
5919
5790
  return new e(n).parse(t);
@@ -6059,11 +5930,11 @@ ${e}</tr>
6059
5930
  }
6060
5931
  return n;
6061
5932
  }
6062
- }, Vi = class {
5933
+ }, Ui = class {
6063
5934
  options;
6064
5935
  block;
6065
5936
  constructor(e) {
6066
- this.options = e || _r;
5937
+ this.options = e || vr;
6067
5938
  }
6068
5939
  static passThroughHooks = /* @__PURE__ */ new Set([
6069
5940
  "preprocess",
@@ -6089,22 +5960,22 @@ ${e}</tr>
6089
5960
  return e;
6090
5961
  }
6091
5962
  provideLexer() {
6092
- return this.block ? Li.lex : Li.lexInline;
5963
+ return this.block ? zi.lex : zi.lexInline;
6093
5964
  }
6094
5965
  provideParser() {
6095
- return this.block ? Bi.parse : Bi.parseInline;
5966
+ return this.block ? Hi.parse : Hi.parseInline;
6096
5967
  }
6097
- }, Hi = new class {
6098
- defaults = gr();
5968
+ }, Wi = new class {
5969
+ defaults = _r();
6099
5970
  options = this.setOptions;
6100
5971
  parse = this.parseMarkdown(!0);
6101
5972
  parseInline = this.parseMarkdown(!1);
6102
- Parser = Bi;
6103
- Renderer = Ri;
6104
- TextRenderer = zi;
6105
- Lexer = Li;
6106
- Tokenizer = Ii;
6107
- Hooks = Vi;
5973
+ Parser = Hi;
5974
+ Renderer = Bi;
5975
+ TextRenderer = Vi;
5976
+ Lexer = zi;
5977
+ Tokenizer = Ri;
5978
+ Hooks = Ui;
6108
5979
  constructor(...e) {
6109
5980
  this.use(...e);
6110
5981
  }
@@ -6155,7 +6026,7 @@ ${e}</tr>
6155
6026
  }
6156
6027
  "childTokens" in e && e.childTokens && (t.childTokens[e.name] = e.childTokens);
6157
6028
  }), n.extensions = t), e.renderer) {
6158
- let t = this.defaults.renderer || new Ri(this.defaults);
6029
+ let t = this.defaults.renderer || new Bi(this.defaults);
6159
6030
  for (let n in e.renderer) {
6160
6031
  if (!(n in t)) throw Error(`renderer '${n}' does not exist`);
6161
6032
  if (["options", "parser"].includes(n)) continue;
@@ -6168,7 +6039,7 @@ ${e}</tr>
6168
6039
  n.renderer = t;
6169
6040
  }
6170
6041
  if (e.tokenizer) {
6171
- let t = this.defaults.tokenizer || new Ii(this.defaults);
6042
+ let t = this.defaults.tokenizer || new Ri(this.defaults);
6172
6043
  for (let n in e.tokenizer) {
6173
6044
  if (!(n in t)) throw Error(`tokenizer '${n}' does not exist`);
6174
6045
  if ([
@@ -6185,13 +6056,13 @@ ${e}</tr>
6185
6056
  n.tokenizer = t;
6186
6057
  }
6187
6058
  if (e.hooks) {
6188
- let t = this.defaults.hooks || new Vi();
6059
+ let t = this.defaults.hooks || new Ui();
6189
6060
  for (let n in e.hooks) {
6190
6061
  if (!(n in t)) throw Error(`hook '${n}' does not exist`);
6191
6062
  if (["options", "block"].includes(n)) continue;
6192
6063
  let r = n, i = e.hooks[r], a = t[r];
6193
- t[r] = Vi.passThroughHooks.has(n) ? (e) => {
6194
- if (this.defaults.async && Vi.passThroughHooksRespectAsync.has(n)) return (async () => {
6064
+ t[r] = Ui.passThroughHooks.has(n) ? (e) => {
6065
+ if (this.defaults.async && Ui.passThroughHooksRespectAsync.has(n)) return (async () => {
6195
6066
  let n = await i.call(t, e);
6196
6067
  return a.call(t, n);
6197
6068
  })();
@@ -6228,10 +6099,10 @@ ${e}</tr>
6228
6099
  }, this;
6229
6100
  }
6230
6101
  lexer(e, t) {
6231
- return Li.lex(e, t ?? this.defaults);
6102
+ return zi.lex(e, t ?? this.defaults);
6232
6103
  }
6233
6104
  parser(e, t) {
6234
- return Bi.parse(e, t ?? this.defaults);
6105
+ return Hi.parse(e, t ?? this.defaults);
6235
6106
  }
6236
6107
  parseMarkdown(e) {
6237
6108
  return (t, n) => {
@@ -6243,16 +6114,16 @@ ${e}</tr>
6243
6114
  if (typeof t > "u" || t === null) return a(/* @__PURE__ */ Error("marked(): input parameter is undefined or null"));
6244
6115
  if (typeof t != "string") return a(/* @__PURE__ */ Error("marked(): input parameter is of type " + Object.prototype.toString.call(t) + ", string expected"));
6245
6116
  if (i.hooks && (i.hooks.options = i, i.hooks.block = e), i.async) return (async () => {
6246
- let n = i.hooks ? await i.hooks.preprocess(t) : t, r = await (i.hooks ? await i.hooks.provideLexer() : e ? Li.lex : Li.lexInline)(n, i), a = i.hooks ? await i.hooks.processAllTokens(r) : r;
6117
+ let n = i.hooks ? await i.hooks.preprocess(t) : t, r = await (i.hooks ? await i.hooks.provideLexer() : e ? zi.lex : zi.lexInline)(n, i), a = i.hooks ? await i.hooks.processAllTokens(r) : r;
6247
6118
  i.walkTokens && await Promise.all(this.walkTokens(a, i.walkTokens));
6248
- let o = await (i.hooks ? await i.hooks.provideParser() : e ? Bi.parse : Bi.parseInline)(a, i);
6119
+ let o = await (i.hooks ? await i.hooks.provideParser() : e ? Hi.parse : Hi.parseInline)(a, i);
6249
6120
  return i.hooks ? await i.hooks.postprocess(o) : o;
6250
6121
  })().catch(a);
6251
6122
  try {
6252
6123
  i.hooks && (t = i.hooks.preprocess(t));
6253
- let n = (i.hooks ? i.hooks.provideLexer() : e ? Li.lex : Li.lexInline)(t, i);
6124
+ let n = (i.hooks ? i.hooks.provideLexer() : e ? zi.lex : zi.lexInline)(t, i);
6254
6125
  i.hooks && (n = i.hooks.processAllTokens(n)), i.walkTokens && this.walkTokens(n, i.walkTokens);
6255
- let r = (i.hooks ? i.hooks.provideParser() : e ? Bi.parse : Bi.parseInline)(n, i);
6126
+ let r = (i.hooks ? i.hooks.provideParser() : e ? Hi.parse : Hi.parseInline)(n, i);
6256
6127
  return i.hooks && (r = i.hooks.postprocess(r)), r;
6257
6128
  } catch (e) {
6258
6129
  return a(e);
@@ -6262,7 +6133,7 @@ ${e}</tr>
6262
6133
  onError(e, t) {
6263
6134
  return (n) => {
6264
6135
  if (n.message += "\nPlease report this to https://github.com/markedjs/marked.", e) {
6265
- let e = "<p>An error occurred:</p><pre>" + Oi(n.message + "", !0) + "</pre>";
6136
+ let e = "<p>An error occurred:</p><pre>" + Ai(n.message + "", !0) + "</pre>";
6266
6137
  return t ? Promise.resolve(e) : e;
6267
6138
  }
6268
6139
  if (t) return Promise.reject(n);
@@ -6271,16 +6142,16 @@ ${e}</tr>
6271
6142
  }
6272
6143
  }();
6273
6144
  function $(e, t) {
6274
- return Hi.parse(e, t);
6145
+ return Wi.parse(e, t);
6275
6146
  }
6276
6147
  $.options = $.setOptions = function(e) {
6277
- return Hi.setOptions(e), $.defaults = Hi.defaults, vr($.defaults), $;
6278
- }, $.getDefaults = gr, $.defaults = _r, $.use = function(...e) {
6279
- return Hi.use(...e), $.defaults = Hi.defaults, vr($.defaults), $;
6148
+ return Wi.setOptions(e), $.defaults = Wi.defaults, yr($.defaults), $;
6149
+ }, $.getDefaults = _r, $.defaults = vr, $.use = function(...e) {
6150
+ return Wi.use(...e), $.defaults = Wi.defaults, yr($.defaults), $;
6280
6151
  }, $.walkTokens = function(e, t) {
6281
- return Hi.walkTokens(e, t);
6282
- }, $.parseInline = Hi.parseInline, $.Parser = Bi, $.parser = Bi.parse, $.Renderer = Ri, $.TextRenderer = zi, $.Lexer = Li, $.lexer = Li.lex, $.Tokenizer = Ii, $.Hooks = Vi, $.parse = $, $.options, $.setOptions, $.use, $.walkTokens, $.parseInline, Bi.parse, Li.lex;
6283
- var Ui = () => {
6152
+ return Wi.walkTokens(e, t);
6153
+ }, $.parseInline = Wi.parseInline, $.Parser = Hi, $.parser = Hi.parse, $.Renderer = Bi, $.TextRenderer = Vi, $.Lexer = zi, $.lexer = zi.lex, $.Tokenizer = Ri, $.Hooks = Ui, $.parse = $, $.options, $.setOptions, $.use, $.walkTokens, $.parseInline, Hi.parse, zi.lex;
6154
+ var Gi = () => {
6284
6155
  let e, t = null, n;
6285
6156
  function r() {
6286
6157
  if (t && !t.closed) t.focus();
@@ -6367,61 +6238,61 @@ var Ui = () => {
6367
6238
  },
6368
6239
  open: r
6369
6240
  };
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,
6241
+ }, Ki = 16 / 9, qi = 1280, Ji = qi / Ki, Yi = 67;
6242
+ function Xi({ deck: e, enabled: t, onToggle: n }) {
6243
+ e.removeKeyBinding(Yi), t && e.addKeyBinding({
6244
+ keyCode: Yi,
6374
6245
  key: "C",
6375
6246
  description: "Toggle code editor"
6376
6247
  }, n);
6377
6248
  }
6378
- function qi(e) {
6249
+ function Zi(e) {
6379
6250
  let t = e.getSlidesElement();
6380
6251
  if (t) for (let e of t.querySelectorAll("section.stack[data-previous-indexv]")) e.removeAttribute("data-previous-indexv");
6381
6252
  }
6382
- var Ji = /* @__PURE__ */ new Set([
6253
+ var Qi = /* @__PURE__ */ new Set([
6383
6254
  " ",
6384
6255
  "Spacebar",
6385
6256
  "ArrowRight",
6386
6257
  "ArrowDown",
6387
6258
  "PageDown"
6388
- ]), Yi = /* @__PURE__ */ new Set([
6259
+ ]), $i = /* @__PURE__ */ new Set([
6389
6260
  "ArrowLeft",
6390
6261
  "ArrowUp",
6391
6262
  "PageUp"
6392
6263
  ]);
6393
- function Xi(e) {
6394
- return Ji.has(e.key) ? 1 : Yi.has(e.key) ? -1 : 0;
6264
+ function ea(e) {
6265
+ return Qi.has(e.key) ? 1 : $i.has(e.key) ? -1 : 0;
6395
6266
  }
6396
- function Zi(e) {
6397
- let t = (0, N.c)(4), n;
6267
+ function ta(e) {
6268
+ let t = (0, P.c)(4), n;
6398
6269
  t[0] === Symbol.for("react.memo_cache_sentinel") ? (n = {
6399
- width: 960,
6400
- height: 540
6270
+ width: qi,
6271
+ height: Ji
6401
6272
  }, t[0] = n) : n = t[0];
6402
- let [r, i] = (0, M.useState)(n), a, o;
6273
+ let [r, i] = (0, N.useState)(n), a, o;
6403
6274
  return t[1] === e ? (a = t[2], o = t[3]) : (a = () => {
6404
6275
  let t = e.current;
6405
6276
  if (!t) return;
6406
6277
  let n = new ResizeObserver((e) => {
6407
6278
  let { width: t, height: n } = e[0].contentRect;
6408
6279
  if (t <= 0 || n <= 0) return;
6409
- let r = Math.min(t, n * Wi), a = r / Wi;
6280
+ let r = Math.min(t, n * Ki), a = r / Ki;
6410
6281
  i({
6411
6282
  width: Math.round(r),
6412
6283
  height: Math.round(a)
6413
6284
  });
6414
6285
  });
6415
6286
  return n.observe(t), () => n.disconnect();
6416
- }, o = [e], t[1] = e, t[2] = a, t[3] = o), (0, M.useEffect)(a, o), r;
6287
+ }, o = [e], t[1] = e, t[2] = a, t[3] = o), (0, N.useEffect)(a, o), r;
6417
6288
  }
6418
- var Qi = (e) => {
6419
- let t = (0, N.c)(6), { text: n } = e, r, i;
6289
+ var na = (e) => {
6290
+ let t = (0, P.c)(6), { text: n } = e, r, i;
6420
6291
  if (t[0] !== n) {
6421
6292
  let e = n.split("\n");
6422
6293
  r = "notes", i = e.map((t, n) => {
6423
6294
  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);
6295
+ return t === "---" ? /* @__PURE__ */ (0, G.jsx)("hr", {}, n) : /* @__PURE__ */ (0, G.jsxs)(N.Fragment, { children: [t, !r && /* @__PURE__ */ (0, G.jsx)("br", {})] }, n);
6425
6296
  }), t[0] = n, t[1] = r, t[2] = i;
6426
6297
  } else r = t[1], i = t[2];
6427
6298
  let a;
@@ -6430,23 +6301,23 @@ var Qi = (e) => {
6430
6301
  children: i
6431
6302
  }), t[3] = r, t[4] = i, t[5] = a) : a = t[5], a;
6432
6303
  };
6433
- function $i(e) {
6304
+ function ra(e) {
6434
6305
  let { cells: t, cellId: n, showCodeOverrides: r, codeAvailable: i } = e;
6435
6306
  return n == null || !i ? !1 : (t.get(n)?.showCode ?? !1) || r.has(n);
6436
6307
  }
6437
- function ea(e) {
6308
+ function ia(e) {
6438
6309
  let { cell: t, noOutputIds: n, heldEditCellId: r, slideConfigs: i } = e;
6439
6310
  return n.has(t.id) || t.id === r ? "skip" : i.get(t.id)?.type ?? "slide";
6440
6311
  }
6441
- function ta(e) {
6442
- let t = (0, N.c)(15), { activeCell: n, slideConfigs: r, noOutputIds: i } = e, a = n?.id ?? null, o;
6312
+ function aa(e) {
6313
+ let t = (0, P.c)(15), { activeCell: n, slideConfigs: r, noOutputIds: i } = e, a = n?.id ?? null, o;
6443
6314
  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
6315
  let s = o, c = n != null && r.get(n.id)?.type === "skip" || s, l;
6445
6316
  t[3] === a ? l = t[4] : (l = {
6446
6317
  activeCellId: a,
6447
6318
  cellId: null
6448
6319
  }, t[3] = a, t[4] = l);
6449
- let [u, d] = (0, M.useState)(l), f = u.cellId;
6320
+ let [u, d] = (0, N.useState)(l), f = u.cellId;
6450
6321
  u.activeCellId === a ? s && f !== a && (f = a, d({
6451
6322
  activeCellId: a,
6452
6323
  cellId: f
@@ -6459,14 +6330,14 @@ function ta(e) {
6459
6330
  cellId: m,
6460
6331
  show: !0
6461
6332
  }, t[5] = m, t[6] = h);
6462
- let [g, _] = (0, M.useState)(h), v = g.show;
6333
+ let [g, _] = (0, N.useState)(h), v = g.show;
6463
6334
  g.cellId !== m && (v = !0, _({
6464
6335
  cellId: m,
6465
6336
  show: !0
6466
6337
  }));
6467
6338
  let y;
6468
- t[7] === Symbol.for("react.memo_cache_sentinel") ? (y = () => _(na), t[7] = y) : y = t[7];
6469
- let b = D(y), x = c || p ? n ?? null : null, S;
6339
+ t[7] === Symbol.for("react.memo_cache_sentinel") ? (y = () => _(oa), t[7] = y) : y = t[7];
6340
+ let b = j(y), x = c || p ? n ?? null : null, S;
6470
6341
  return t[8] !== m || t[9] !== v || t[10] !== p || t[11] !== s || t[12] !== x || t[13] !== b ? (S = {
6471
6342
  parkedPreviewCell: x,
6472
6343
  isHeldEdit: p,
@@ -6476,53 +6347,53 @@ function ta(e) {
6476
6347
  toggleHeldShowsCode: b
6477
6348
  }, 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
6349
  }
6479
- function na(e) {
6350
+ function oa(e) {
6480
6351
  return {
6481
6352
  ...e,
6482
6353
  show: !e.show
6483
6354
  };
6484
6355
  }
6485
- function ra(e) {
6356
+ function sa(e) {
6486
6357
  switch (e ?? "center") {
6487
6358
  case "top": return { margin: "0 20px auto" };
6488
6359
  case "bottom": return { margin: "auto 20px 0" };
6489
6360
  default: return { margin: "auto 20px" };
6490
6361
  }
6491
6362
  }
6492
- var ia = (e) => {
6493
- let t = (0, N.c)(13), { cell: n } = e, r;
6494
- 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
- let i = n.id, a = n.status, o = n.output, s;
6496
- t[3] === n ? s = t[4] : (s = u(n, !1), t[3] = n, t[4] = s);
6497
- let c;
6498
- t[5] !== n.id || t[6] !== n.output || t[7] !== n.status || t[8] !== s ? (c = /* @__PURE__ */ (0, G.jsx)(S, {
6499
- cellId: i,
6500
- status: a,
6501
- output: o,
6502
- stale: s
6503
- }), t[5] = n.id, t[6] = n.output, t[7] = n.status, t[8] = s, t[9] = c) : c = t[9];
6504
- let l;
6505
- return t[10] !== r || t[11] !== c ? (l = /* @__PURE__ */ (0, G.jsx)("div", {
6363
+ var ca = (e) => {
6364
+ let t = (0, P.c)(14), { cell: n } = e, { execution: r, freshness: i } = p(n.id), a;
6365
+ t[0] !== n.id || t[1] !== n.name ? (a = x(n.id, n.name), t[0] = n.id, t[1] = n.name, t[2] = a) : a = t[2];
6366
+ let o = n.id, s = r.status, c = n.output, l;
6367
+ t[3] !== r || t[4] !== i ? (l = h(r, i, !1), t[3] = r, t[4] = i, t[5] = l) : l = t[5];
6368
+ let u;
6369
+ t[6] !== n.id || t[7] !== n.output || t[8] !== r.status || t[9] !== l ? (u = /* @__PURE__ */ (0, G.jsx)(C, {
6370
+ cellId: o,
6371
+ status: s,
6372
+ output: c,
6373
+ stale: l
6374
+ }), t[6] = n.id, t[7] = n.output, t[8] = r.status, t[9] = l, t[10] = u) : u = t[10];
6375
+ let d;
6376
+ return t[11] !== a || t[12] !== u ? (d = /* @__PURE__ */ (0, G.jsx)("div", {
6506
6377
  className: "flex flex-col",
6507
- ...r,
6508
- children: c
6509
- }), 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;
6378
+ ...a,
6379
+ children: u
6380
+ }), t[11] = a, t[12] = u, t[13] = d) : d = t[13], d;
6381
+ }, la = (e) => {
6382
+ let t = (0, P.c)(24), { subslide: n, resolveShowCode: r, isEditable: i, slideConfigs: a, contentStyle: o } = e, s, c, l, u, d, f;
6512
6383
  if (t[0] !== o || t[1] !== i || t[2] !== r || t[3] !== a || t[4] !== n) {
6513
6384
  let { slideLevel: e, cumulativeByBlock: p } = hr(n, a);
6514
6385
  l = e;
6515
6386
  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));
6387
+ c = vt, s = tr, u = m ? "mo-slide-content flex flex-col gap-3" : "mo-slide-content", d = o, f = n.blocks.map((e, t) => {
6388
+ 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)(ca, { cell: e }, e.id));
6518
6389
  if (e.isFragment) {
6519
6390
  let r = p.get(t);
6520
6391
  return /* @__PURE__ */ (0, G.jsxs)(Jn, {
6521
6392
  as: "div",
6522
- children: [n, r && /* @__PURE__ */ (0, G.jsx)(Qi, { text: r })]
6393
+ children: [n, r && /* @__PURE__ */ (0, G.jsx)(na, { text: r })]
6523
6394
  }, e.cells[0].id);
6524
6395
  }
6525
- return /* @__PURE__ */ (0, G.jsx)(M.Fragment, { children: n }, e.cells[0].id);
6396
+ return /* @__PURE__ */ (0, G.jsx)(N.Fragment, { children: n }, e.cells[0].id);
6526
6397
  }), 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
6398
  } else s = t[5], c = t[6], l = t[7], u = t[8], d = t[9], f = t[10];
6528
6399
  let p;
@@ -6534,17 +6405,17 @@ var ia = (e) => {
6534
6405
  let m;
6535
6406
  t[15] !== s || t[16] !== p ? (m = /* @__PURE__ */ (0, G.jsx)(s, { children: p }), t[15] = s, t[16] = p, t[17] = m) : m = t[17];
6536
6407
  let h;
6537
- t[18] === l ? h = t[19] : (h = l && /* @__PURE__ */ (0, G.jsx)(Qi, { text: l }), t[18] = l, t[19] = h);
6408
+ t[18] === l ? h = t[19] : (h = l && /* @__PURE__ */ (0, G.jsx)(na, { text: l }), t[18] = l, t[19] = h);
6538
6409
  let g;
6539
6410
  return t[20] !== c || t[21] !== m || t[22] !== h ? (g = /* @__PURE__ */ (0, G.jsxs)(c, { children: [m, h] }), t[20] = c, t[21] = m, t[22] = h, t[23] = g) : g = t[23], g;
6540
6411
  };
6541
- function oa(e) {
6412
+ function ua(e) {
6542
6413
  let { isNoOutputPreview: t, isEditable: n, showCode: r } = e;
6543
6414
  return t && n || r;
6544
6415
  }
6545
- var sa = (e) => {
6546
- let t = (0, N.c)(5), { cell: n, isNoOutputPreview: r, isEditable: i, showCode: a } = e;
6547
- if (oa({
6416
+ var da = (e) => {
6417
+ let t = (0, P.c)(5), { cell: n, isNoOutputPreview: r, isEditable: i, showCode: a } = e;
6418
+ if (ua({
6548
6419
  isNoOutputPreview: r,
6549
6420
  isEditable: i,
6550
6421
  showCode: a
@@ -6553,236 +6424,251 @@ var sa = (e) => {
6553
6424
  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;
6554
6425
  }
6555
6426
  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 || !g(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];
6566
- let ve = _e, ye;
6567
- n[10] !== ge || n[11] !== s.cells || n[12] !== u ? (ye = {
6568
- activeCell: ge,
6427
+ return t[3] === n ? o = t[4] : (o = /* @__PURE__ */ (0, G.jsx)(ca, { cell: n }), t[3] = n, t[4] = o), o;
6428
+ }, fa = (e) => {
6429
+ let t = (0, P.c)(164), { slideCells: o, layout: s, setLayout: c, noOutputIds: p, activeIndex: h, onSlideChange: x, mode: C, configWidth: w, isEditable: T } = e, E = T !== void 0 && T, D = (0, N.useRef)(null), M = (0, N.useRef)(null), { width: re, height: F } = ta(D), ie = k() != null, [ae, oe] = (0, N.useState)(1), se;
6430
+ t[0] === Symbol.for("react.memo_cache_sentinel") ? (se = () => {
6431
+ let e = requestAnimationFrame(() => {
6432
+ let e = M.current;
6433
+ e && (e.layout(), oe(e.getScale()));
6434
+ });
6435
+ return () => cancelAnimationFrame(e);
6436
+ }, t[0] = se) : se = t[0];
6437
+ let I;
6438
+ t[1] !== F || t[2] !== ie || t[3] !== re ? (I = [
6439
+ re,
6440
+ F,
6441
+ ie
6442
+ ], t[1] = F, t[2] = ie, t[3] = re, t[4] = I) : I = t[4], (0, N.useEffect)(se, I);
6443
+ let L = A(ee), ce = A(te).kind, le = A(gr), ue = ce !== "wasm" || le, de;
6444
+ t[5] !== L || t[6] !== ce ? (de = L || !g(ce) ? [] : [Gi], t[5] = L, t[6] = ce, t[7] = de) : de = t[7];
6445
+ let fe = de, [pe, me] = (0, N.useState)(pa), he = ne(), ge;
6446
+ t[8] === he ? ge = t[9] : (ge = !O() && he, t[8] = he, t[9] = ge);
6447
+ let _e = ge, ve;
6448
+ t[10] === L ? ve = t[11] : (ve = b(L, window.location.search), t[10] = L, t[11] = ve);
6449
+ let R = !ve && _e, ye = h == null ? void 0 : o[h], be;
6450
+ t[12] !== ye || t[13] !== o ? (be = ye ?? o.at(0), t[12] = ye, t[13] = o, t[14] = be) : be = t[14];
6451
+ let xe = be, Se;
6452
+ t[15] !== ye || t[16] !== s.cells || t[17] !== p ? (Se = {
6453
+ activeCell: ye,
6569
6454
  slideConfigs: s.cells,
6570
- 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({
6455
+ noOutputIds: p
6456
+ }, t[15] = ye, t[16] = s.cells, t[17] = p, t[18] = Se) : Se = t[18];
6457
+ let { parkedPreviewCell: z, isHeldEdit: B, isNoOutputPreview: Ce, heldEditCellId: we, heldShowsCode: Te, toggleHeldShowsCode: Ee } = aa(Se), De;
6458
+ t[19] !== _e || t[20] !== s.cells || t[21] !== pe ? (De = (e) => ra({
6574
6459
  cells: s.cells,
6575
6460
  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];
6461
+ showCodeOverrides: pe,
6462
+ codeAvailable: _e
6463
+ }), t[19] = _e, t[20] = s.cells, t[21] = pe, t[22] = De) : De = t[22];
6464
+ let V = De, H = ye?.id ?? xe?.id, Oe;
6465
+ t[23] !== H || t[24] !== Te || t[25] !== B || t[26] !== V ? (Oe = B ? Te : V(H), t[23] = H, t[24] = Te, t[25] = B, t[26] = V, t[27] = Oe) : Oe = t[27];
6583
6466
  let ke = Oe, Ae;
6584
- n[27] !== xe || n[28] !== s.cells || n[29] !== u ? (Ae = (e) => ea({
6467
+ t[28] !== H || t[29] !== _e || t[30] !== s.cells ? (Ae = _e && H != null && (s.cells.get(H)?.showCode ?? !1), t[28] = H, t[29] = _e, t[30] = s.cells, t[31] = Ae) : Ae = t[31];
6468
+ let je = Ae, Me;
6469
+ t[32] !== we || t[33] !== s.cells || t[34] !== p ? (Me = (e) => ia({
6585
6470
  cell: e,
6586
- noOutputIds: u,
6587
- heldEditCellId: xe,
6471
+ noOutputIds: p,
6472
+ heldEditCellId: we,
6588
6473
  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({
6474
+ }), t[32] = we, t[33] = s.cells, t[34] = p, t[35] = Me) : Me = t[35];
6475
+ let Ne;
6476
+ t[36] !== o || t[37] !== Me ? (Ne = nr({
6592
6477
  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,
6478
+ getType: Me
6479
+ }), t[36] = o, t[37] = Me, t[38] = Ne) : Ne = t[38];
6480
+ let Pe = Ne, Fe;
6481
+ t[39] !== Pe || t[40] !== o ? (Fe = rr({
6482
+ composition: Pe,
6598
6483
  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 = y(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 = {
6484
+ getId: ma
6485
+ }), t[39] = Pe, t[40] = o, t[41] = Fe) : Fe = t[41];
6486
+ let { cellToTarget: Ie, targetToCellIndex: U } = Fe, Le = s.deck?.transition ?? "slide", Re = s.deck?.verticalAlign, ze;
6487
+ t[42] === Re ? ze = t[43] : (ze = sa(Re), t[42] = Re, t[43] = ze);
6488
+ let Be = ze, Ve;
6489
+ t[44] === Symbol.for("react.memo_cache_sentinel") ? (Ve = v(window.location.href), t[44] = Ve) : Ve = t[44];
6490
+ let He = Ve, Ue;
6491
+ t[45] === Le ? Ue = t[46] : (Ue = {
6607
6492
  embedded: !0,
6608
- width: ie,
6609
- height: ae,
6493
+ width: qi,
6494
+ height: Ji,
6610
6495
  center: !1,
6611
- minScale: .2,
6496
+ minScale: 0,
6612
6497
  maxScale: 2,
6613
- transition: Ie,
6614
- keyboardCondition: da,
6615
- url: Ve,
6498
+ transition: Le,
6499
+ keyboardCondition: ha,
6500
+ url: He,
6616
6501
  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) => {
6620
- if (x == null && window.location.hash.startsWith("#/")) {
6621
- if (!ce) return;
6622
- window.dispatchEvent(new HashChangeEvent("hashchange")), qi(e);
6502
+ }, t[45] = Le, t[46] = Ue);
6503
+ let We = Ue, Ge;
6504
+ t[47] !== h || t[48] !== ue || t[49] !== Ie || t[50] !== o ? (Ge = (e) => {
6505
+ if (h == null && window.location.hash.startsWith("#/")) {
6506
+ if (!ue) return;
6507
+ window.dispatchEvent(new HashChangeEvent("hashchange")), Zi(e);
6623
6508
  return;
6624
6509
  }
6625
6510
  let t = or({
6626
- activeIndex: x,
6511
+ activeIndex: h,
6627
6512
  cells: o,
6628
- cellToTarget: Pe,
6629
- getId: fa
6513
+ cellToTarget: Ie,
6514
+ getId: ga
6630
6515
  }), 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 = [
6640
- x,
6641
- ce,
6642
- Pe,
6516
+ n && (e.slide(n.h, n.v, n.f), Zi(e));
6517
+ }, t[47] = h, t[48] = ue, t[49] = Ie, t[50] = o, t[51] = Ge) : Ge = t[51];
6518
+ let Ke = j(Ge), qe;
6519
+ t[52] === Ke ? qe = t[53] : (qe = () => {
6520
+ let e = M.current;
6521
+ e != null && Ke(e);
6522
+ }, t[52] = Ke, t[53] = qe);
6523
+ let Je;
6524
+ t[54] !== h || t[55] !== ue || t[56] !== Ie || t[57] !== Ke || t[58] !== o ? (Je = [
6525
+ h,
6526
+ ue,
6527
+ Ie,
6643
6528
  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();
6651
- return;
6652
- }
6653
- (0, M.startTransition)(() => de((e) => {
6654
- let t = new Set(e);
6655
- return t.has(V) ? t.delete(V) : t.add(V), t;
6656
- }));
6657
- }
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({
6529
+ Ke
6530
+ ], t[54] = h, t[55] = ue, t[56] = Ie, t[57] = Ke, t[58] = o, t[59] = Je) : Je = t[59], (0, N.useEffect)(qe, Je);
6531
+ let Ye;
6532
+ t[60] !== H || t[61] !== je || t[62] !== B || t[63] !== Ee ? (Ye = () => {
6533
+ H == null || je || (B ? Ee() : (0, N.startTransition)(() => me((e) => {
6534
+ let t = new Set(e);
6535
+ return t.has(H) ? t.delete(H) : t.add(H), t;
6536
+ })));
6537
+ }, t[60] = H, t[61] = je, t[62] = B, t[63] = Ee, t[64] = Ye) : Ye = t[64];
6538
+ let W = j(Ye), Xe, Ze;
6539
+ t[65] !== R || t[66] !== W ? (Xe = () => {
6540
+ let e = M.current;
6541
+ return e && Xi({
6663
6542
  deck: e,
6664
6543
  enabled: R,
6665
- onToggle: qe
6544
+ onToggle: W
6666
6545
  }), () => {
6667
- P.current?.removeKeyBinding(Gi);
6546
+ M.current?.removeKeyBinding(Yi);
6668
6547
  };
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) => {
6548
+ }, Ze = [R, W], t[65] = R, t[66] = W, t[67] = Xe, t[68] = Ze) : (Xe = t[67], Ze = t[68]), (0, N.useEffect)(Xe, Ze);
6549
+ let Qe;
6550
+ t[69] !== x || t[70] !== z || t[71] !== U ? (Qe = (e) => {
6672
6551
  if (z != null) return;
6673
- let t = ir(Fe, e.getIndices());
6674
- 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({
6552
+ let t = ir(U, e.getIndices());
6553
+ t != null && x?.(t);
6554
+ }, t[69] = x, t[70] = z, t[71] = U, t[72] = Qe) : Qe = t[72];
6555
+ let $e = j(Qe), et;
6556
+ t[73] === $e ? et = t[74] : (et = () => {
6557
+ let e = M.current;
6558
+ e && $e(e);
6559
+ }, t[73] = $e, t[74] = et);
6560
+ let tt = j(et), nt;
6561
+ t[75] !== ue || t[76] !== R || t[77] !== Ke || t[78] !== $e || t[79] !== W ? (nt = (e) => {
6562
+ oe(e.getScale()), Ke(e), ue && $e(e), Xi({
6684
6563
  deck: e,
6685
6564
  enabled: R,
6686
- onToggle: qe
6565
+ onToggle: W
6687
6566
  });
6688
6567
  let t = e.getSlidesElement()?.closest(".reveal");
6689
6568
  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) => {
6693
- if (!z || x == null || i.fromInput(e)) return;
6694
- let t = Xi(e);
6569
+ }, t[75] = ue, t[76] = R, t[77] = Ke, t[78] = $e, t[79] = W, t[80] = nt) : nt = t[80];
6570
+ let rt = j(nt), it;
6571
+ t[81] !== h || t[82] !== x || t[83] !== z || t[84] !== o ? (it = (e) => {
6572
+ if (!z || h == null || i.fromInput(e)) return;
6573
+ let t = ea(e);
6695
6574
  if (t === 0) return;
6696
6575
  e.preventDefault(), e.stopPropagation();
6697
- let n = x + t;
6698
- 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) {
6576
+ let n = h + t;
6577
+ n < 0 || n >= o.length || x?.(n);
6578
+ }, t[81] = h, t[82] = x, t[83] = z, t[84] = o, t[85] = it) : it = t[85];
6579
+ let at = j(it), ot;
6580
+ t[86] === tt ? ot = t[87] : (ot = () => {
6581
+ tt();
6582
+ }, t[86] = tt, t[87] = ot);
6583
+ let st = j(ot), ct;
6584
+ t[88] === Symbol.for("react.memo_cache_sentinel") ? (ct = { capture: !0 }, t[88] = ct) : ct = t[88], r(document, "keydown", at, ct);
6585
+ let lt = B ? null : Ce ? "Hidden as there is no output" : "Skipped in presentation", ut;
6586
+ t[89] !== Te || t[90] !== B || t[91] !== z?.id || t[92] !== V ? (ut = B ? Te : V(z?.id), t[89] = Te, t[90] = B, t[91] = z?.id, t[92] = V, t[93] = ut) : ut = t[93];
6587
+ let dt = ut, ft;
6588
+ t[94] !== E || t[95] !== Ce || t[96] !== dt ? (ft = ua({
6589
+ isNoOutputPreview: Ce,
6590
+ isEditable: E,
6591
+ showCode: dt
6592
+ }), t[94] = E, t[95] = Ce, t[96] = dt, t[97] = ft) : ft = t[97];
6593
+ let pt = ft, mt;
6594
+ t[98] !== F || t[99] !== re ? (mt = {
6595
+ width: re,
6596
+ height: F
6597
+ }, t[98] = F, t[99] = re, t[100] = mt) : mt = t[100];
6598
+ let gt;
6599
+ if (t[101] !== Pe.stacks || t[102] !== E || t[103] !== s.cells || t[104] !== V || t[105] !== Be) {
6721
6600
  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, {
6601
+ t[107] !== E || t[108] !== s.cells || t[109] !== V || t[110] !== Be ? (e = (e, t) => e.subslides.length === 1 ? /* @__PURE__ */ (0, G.jsx)(la, {
6723
6602
  subslide: e.subslides[0],
6724
- resolveShowCode: Te,
6725
- isEditable: j,
6603
+ resolveShowCode: V,
6604
+ isEditable: E,
6726
6605
  slideConfigs: s.cells,
6727
- contentStyle: ze
6728
- }, t) : /* @__PURE__ */ (0, G.jsx)(vt, { children: e.subslides.map((e, t) => /* @__PURE__ */ (0, G.jsx)(aa, {
6606
+ contentStyle: Be
6607
+ }, t) : /* @__PURE__ */ (0, G.jsx)(yt, { children: e.subslides.map((e, t) => /* @__PURE__ */ (0, G.jsx)(la, {
6729
6608
  subslide: e,
6730
- resolveShowCode: Te,
6731
- isEditable: j,
6609
+ resolveShowCode: V,
6610
+ isEditable: E,
6732
6611
  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,
6612
+ contentStyle: Be
6613
+ }, t)) }, t), t[107] = E, t[108] = s.cells, t[109] = V, t[110] = Be, t[111] = e) : e = t[111], gt = Pe.stacks.map(e), t[101] = Pe.stacks, t[102] = E, t[103] = s.cells, t[104] = V, t[105] = Be, t[106] = gt;
6614
+ } else gt = t[106];
6615
+ let _t;
6616
+ t[112] !== fe || t[113] !== rt || t[114] !== st || t[115] !== tt || t[116] !== We || t[117] !== gt ? (_t = /* @__PURE__ */ (0, G.jsx)(ht, {
6617
+ deckRef: M,
6739
6618
  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", {
6619
+ config: We,
6620
+ onReady: rt,
6621
+ onSlideChange: st,
6622
+ onFragmentShown: tt,
6623
+ onFragmentHidden: tt,
6624
+ plugins: fe,
6625
+ children: gt
6626
+ }), t[112] = fe, t[113] = rt, t[114] = st, t[115] = tt, t[116] = We, t[117] = gt, t[118] = _t) : _t = t[118];
6627
+ let K;
6628
+ t[119] !== E || t[120] !== Ce || t[121] !== z || t[122] !== lt || t[123] !== dt || t[124] !== pt || t[125] !== Be || t[126] !== ae ? (K = z && /* @__PURE__ */ (0, G.jsxs)("div", {
6750
6629
  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", {
6630
+ "aria-label": lt ?? void 0,
6631
+ children: [lt && /* @__PURE__ */ (0, G.jsxs)("div", {
6753
6632
  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)(_, { className: "h-3.5 w-3.5" }), /* @__PURE__ */ (0, G.jsx)("span", { children: ot })]
6633
+ children: [/* @__PURE__ */ (0, G.jsx)(f, { className: "h-3.5 w-3.5" }), /* @__PURE__ */ (0, G.jsx)("span", { children: lt })]
6755
6634
  }), /* @__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, {
6635
+ className: "reveal mo-slides-theme prose-slides absolute left-1/2 top-1/2",
6636
+ "data-testid": "slide-preview-canvas",
6637
+ style: {
6638
+ position: "absolute",
6639
+ width: qi,
6640
+ height: Ji,
6641
+ transform: `translate(-50%, -50%) scale(${ae})`
6642
+ },
6643
+ children: /* @__PURE__ */ (0, G.jsx)(tr, { children: /* @__PURE__ */ (0, G.jsx)("div", {
6644
+ className: pt ? "mo-slide-content flex flex-col gap-3" : "mo-slide-content",
6645
+ style: Be,
6646
+ children: /* @__PURE__ */ (0, G.jsx)(da, {
6761
6647
  cell: z,
6762
- isNoOutputPreview: B,
6763
- isEditable: j,
6764
- showCode: ct
6648
+ isNoOutputPreview: Ce,
6649
+ isEditable: E,
6650
+ showCode: dt
6765
6651
  })
6766
- })
6652
+ }) })
6767
6653
  })]
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)",
6654
+ }, z.id), t[119] = E, t[120] = Ce, t[121] = z, t[122] = lt, t[123] = dt, t[124] = pt, t[125] = Be, t[126] = ae, t[127] = K) : K = t[127];
6655
+ let vt;
6656
+ t[128] !== ke || t[129] !== je || t[130] !== R || t[131] !== W ? (vt = R && /* @__PURE__ */ (0, G.jsx)(l, {
6657
+ content: je ? "Code is always shown for this slide" : ke ? "Hide code (C)" : "Show code (C)",
6772
6658
  children: /* @__PURE__ */ (0, G.jsx)(a, {
6773
6659
  "data-testid": "marimo-plugin-slides-toggle-code",
6774
6660
  variant: "ghost",
6775
6661
  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)(h, { className: "h-4 w-4" })
6662
+ className: n("text-muted-foreground h-7 w-7", ke && "text-foreground bg-muted", je && "opacity-50 cursor-not-allowed"),
6663
+ "aria-pressed": ke,
6664
+ "aria-disabled": je,
6665
+ "aria-label": je ? "Code always shown" : ke ? "Hide code" : "Show code",
6666
+ onClick: W,
6667
+ children: /* @__PURE__ */ (0, G.jsx)(d, { className: "h-4 w-4" })
6782
6668
  })
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, {
6669
+ }), t[128] = ke, t[129] = je, t[130] = R, t[131] = W, t[132] = vt) : vt = t[132];
6670
+ let bt;
6671
+ t[133] === Symbol.for("react.memo_cache_sentinel") ? (bt = /* @__PURE__ */ (0, G.jsx)(l, {
6786
6672
  content: "Fullscreen (F)",
6787
6673
  children: /* @__PURE__ */ (0, G.jsx)(a, {
6788
6674
  "data-testid": "marimo-plugin-slides-fullscreen",
@@ -6791,57 +6677,57 @@ var sa = (e) => {
6791
6677
  className: "text-muted-foreground h-7 w-7",
6792
6678
  "aria-label": "Enter fullscreen",
6793
6679
  onClick: () => {
6794
- P.current?.getViewportElement()?.requestFullscreen().catch(pa);
6680
+ M.current?.getViewportElement()?.requestFullscreen().catch(_a);
6795
6681
  },
6796
- children: /* @__PURE__ */ (0, G.jsx)(m, { className: "h-4 w-4" })
6682
+ children: /* @__PURE__ */ (0, G.jsx)(u, { className: "h-4 w-4" })
6797
6683
  })
6798
- }), n[129] = _t) : _t = n[129];
6799
- let K;
6800
- n[130] === gt ? K = n[131] : (K = /* @__PURE__ */ (0, G.jsxs)("div", {
6684
+ }), t[133] = bt) : bt = t[133];
6685
+ let xt;
6686
+ t[134] === vt ? xt = t[135] : (xt = /* @__PURE__ */ (0, G.jsxs)("div", {
6801
6687
  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,
6688
+ children: [vt, bt]
6689
+ }), t[134] = vt, t[135] = xt);
6690
+ let St;
6691
+ t[136] !== mt || t[137] !== _t || t[138] !== K || t[139] !== xt ? (St = /* @__PURE__ */ (0, G.jsx)("div", {
6692
+ ref: D,
6807
6693
  className: "h-full w-full min-w-0 flex items-center justify-center overflow-hidden",
6808
6694
  children: /* @__PURE__ */ (0, G.jsxs)("div", {
6809
6695
  className: "group relative",
6810
- style: dt,
6696
+ style: mt,
6811
6697
  children: [
6812
- pt,
6813
- ht,
6814
- K
6698
+ _t,
6699
+ K,
6700
+ xt
6815
6701
  ]
6816
6702
  })
6817
- }), n[132] = dt, n[133] = pt, n[134] = ht, n[135] = K, n[136] = yt) : yt = n[136];
6818
- let q = yt;
6703
+ }), t[136] = mt, t[137] = _t, t[138] = K, t[139] = xt, t[140] = St) : St = t[140];
6704
+ let q = St;
6819
6705
  if (C === "read") {
6820
6706
  let e;
6821
- return n[137] === q ? e = n[138] : (e = /* @__PURE__ */ (0, G.jsx)("div", {
6707
+ return t[141] === q ? e = t[142] : (e = /* @__PURE__ */ (0, G.jsx)("div", {
6822
6708
  className: "flex-1 min-w-0 flex flex-row gap-3",
6823
6709
  children: q
6824
- }), n[137] = q, n[138] = e), e;
6710
+ }), t[141] = q, t[142] = e), e;
6825
6711
  }
6826
- let bt;
6827
- n[139] === q ? bt = n[140] : (bt = /* @__PURE__ */ (0, G.jsx)(f, {
6712
+ let J;
6713
+ t[143] === q ? J = t[144] : (J = /* @__PURE__ */ (0, G.jsx)(m, {
6828
6714
  defaultSize: 92,
6829
6715
  minSize: 60,
6830
6716
  children: q
6831
- }), n[139] = q, n[140] = bt);
6832
- let xt;
6833
- n[141] === Symbol.for("react.memo_cache_sentinel") ? (xt = {
6717
+ }), t[143] = q, t[144] = J);
6718
+ let Ct;
6719
+ t[145] === Symbol.for("react.memo_cache_sentinel") ? (Ct = {
6834
6720
  coarse: 12,
6835
6721
  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, {
6722
+ }, t[145] = Ct) : Ct = t[145];
6723
+ let Y;
6724
+ t[146] === ie ? Y = t[147] : (Y = /* @__PURE__ */ (0, G.jsx)(y, {
6839
6725
  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)(f, {
6726
+ hitAreaMargins: Ct,
6727
+ disabled: ie
6728
+ }), t[146] = ie, t[147] = Y);
6729
+ let wt = xe?.id, X;
6730
+ t[148] !== s || t[149] !== c || t[150] !== wt ? (X = /* @__PURE__ */ (0, G.jsx)(m, {
6845
6731
  defaultSize: 10,
6846
6732
  minSize: 4,
6847
6733
  collapsible: !0,
@@ -6849,47 +6735,47 @@ var sa = (e) => {
6849
6735
  children: /* @__PURE__ */ (0, G.jsx)(dr, {
6850
6736
  layout: s,
6851
6737
  setLayout: c,
6852
- cellId: St
6738
+ cellId: wt
6853
6739
  })
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)(p, {
6740
+ }), t[148] = s, t[149] = c, t[150] = wt, t[151] = X) : X = t[151];
6741
+ let Tt;
6742
+ t[152] !== J || t[153] !== Y || t[154] !== X ? (Tt = /* @__PURE__ */ (0, G.jsxs)(S, {
6857
6743
  direction: "vertical",
6858
6744
  autoSaveId: "marimo:slides:notes-panel",
6859
6745
  className: "flex-1 min-w-0",
6860
6746
  children: [
6861
- bt,
6862
6747
  J,
6863
- Y
6748
+ Y,
6749
+ X
6864
6750
  ]
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)(v, {
6868
- configWidth: ee,
6751
+ }), t[152] = J, t[153] = Y, t[154] = X, t[155] = Tt) : Tt = t[155];
6752
+ let Et;
6753
+ t[156] !== xe || t[157] !== w || t[158] !== s || t[159] !== c ? (Et = /* @__PURE__ */ (0, G.jsx)(_, {
6754
+ configWidth: w,
6869
6755
  layout: s,
6870
6756
  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", {
6757
+ activeConfigCell: xe
6758
+ }), t[156] = xe, t[157] = w, t[158] = s, t[159] = c, t[160] = Et) : Et = t[160];
6759
+ let Dt;
6760
+ return t[161] !== Tt || t[162] !== Et ? (Dt = /* @__PURE__ */ (0, G.jsxs)("div", {
6875
6761
  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;
6762
+ children: [Tt, Et]
6763
+ }), t[161] = Tt, t[162] = Et, t[163] = Dt) : Dt = t[163], Dt;
6878
6764
  };
6879
- function la() {
6765
+ function pa() {
6880
6766
  return /* @__PURE__ */ new Set();
6881
6767
  }
6882
- function ua(e) {
6768
+ function ma(e) {
6883
6769
  return e.id;
6884
6770
  }
6885
- function da(e) {
6771
+ function ha(e) {
6886
6772
  return !i.fromInput(e);
6887
6773
  }
6888
- function fa(e) {
6774
+ function ga(e) {
6889
6775
  return e.id;
6890
6776
  }
6891
- function pa(e) {
6892
- n.error("Failed to request fullscreen", e);
6777
+ function _a(e) {
6778
+ t.error("Failed to request fullscreen", e);
6893
6779
  }
6894
6780
  //#endregion
6895
- export { ia as CellOutputBlock, ea as deckSlideType, ca as default, oa as parkedRendersSource, $i as shouldShowCode, Ki as syncCodeToggleKeyBinding, ta as useParkedPreview };
6781
+ export { ca as CellOutputBlock, ia as deckSlideType, fa as default, ua as parkedRendersSource, ra as shouldShowCode, Xi as syncCodeToggleKeyBinding, aa as useParkedPreview };