@uva-glass/component-library 3.55.3 → 3.55.5

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 (253) hide show
  1. package/dist/{Accordion-BpnBHYIx.js → Accordion-DvblEUVu.js} +16 -17
  2. package/dist/{Accordion-BpnBHYIx.js.map → Accordion-DvblEUVu.js.map} +1 -1
  3. package/dist/{AddCatalogueLinkForm-Cy6fPNvN.js → AddCatalogueLinkForm-rph4K9P0.js} +24 -25
  4. package/dist/{AddCatalogueLinkForm-Cy6fPNvN.js.map → AddCatalogueLinkForm-rph4K9P0.js.map} +1 -1
  5. package/dist/{CheckboxButtonBar-CalU0IYK.js → CheckboxButtonBar-5UMIFMKH.js} +2 -2
  6. package/dist/{CheckboxButtonBar-CalU0IYK.js.map → CheckboxButtonBar-5UMIFMKH.js.map} +1 -1
  7. package/dist/{ControlsButton-zemVxTlg.js → ControlsButton-B1XRpMUM.js} +15 -16
  8. package/dist/{ControlsButton-zemVxTlg.js.map → ControlsButton-B1XRpMUM.js.map} +1 -1
  9. package/dist/{Drawer-Ggofac6y.js → Drawer-e7UFHVg9.js} +29 -30
  10. package/dist/{Drawer-Ggofac6y.js.map → Drawer-e7UFHVg9.js.map} +1 -1
  11. package/dist/{FieldHint-D0HtbTnt.js → FieldHint-fxnEOsVZ.js} +2 -2
  12. package/dist/{FieldHint-D0HtbTnt.js.map → FieldHint-fxnEOsVZ.js.map} +1 -1
  13. package/dist/Fieldset-0LFsZ3Mz.js +22 -0
  14. package/dist/{Fieldset-CoNu_Owa.js.map → Fieldset-0LFsZ3Mz.js.map} +1 -1
  15. package/dist/{Lexical.prod-DIglXatJ.js → Lexical.prod-sbwgNRjw.js} +575 -568
  16. package/dist/Lexical.prod-sbwgNRjw.js.map +1 -0
  17. package/dist/{LexicalClipboard.prod-Bnzu0sh_.js → LexicalClipboard.prod-DdImsyd1.js} +82 -82
  18. package/dist/{LexicalClipboard.prod-Bnzu0sh_.js.map → LexicalClipboard.prod-DdImsyd1.js.map} +1 -1
  19. package/dist/{LexicalExtension.prod-COPHoPpX.js → LexicalExtension.prod-jTSDl1mh.js} +208 -198
  20. package/dist/LexicalExtension.prod-jTSDl1mh.js.map +1 -0
  21. package/dist/{LexicalLink.prod-Bf9JUdMv.js → LexicalLink.prod-BKLNLyu8.js} +155 -149
  22. package/dist/LexicalLink.prod-BKLNLyu8.js.map +1 -0
  23. package/dist/{LexicalList.prod-DRz8vsM9.js → LexicalList.prod-DEtc4lSr.js} +222 -222
  24. package/dist/{LexicalList.prod-DRz8vsM9.js.map → LexicalList.prod-DEtc4lSr.js.map} +1 -1
  25. package/dist/{LexicalTable.prod-D16GW-aZ.js → LexicalTable.prod-CpIPDW6z.js} +436 -428
  26. package/dist/LexicalTable.prod-CpIPDW6z.js.map +1 -0
  27. package/dist/LexicalUtils.prod-DjjGkphN.js +360 -0
  28. package/dist/LexicalUtils.prod-DjjGkphN.js.map +1 -0
  29. package/dist/{LinkContextMenu-m_CGQEiX.js → LinkContextMenu-CTkNPiIW.js} +2 -2
  30. package/dist/{LinkContextMenu-m_CGQEiX.js.map → LinkContextMenu-CTkNPiIW.js.map} +1 -1
  31. package/dist/{ModalDialog-HUkDdAJ-.js → ModalDialog-N50NGnd4.js} +2 -2
  32. package/dist/{ModalDialog-HUkDdAJ-.js.map → ModalDialog-N50NGnd4.js.map} +1 -1
  33. package/dist/{PageOverlay-D_wG2oie.js → PageOverlay-S4xsqJha.js} +2 -2
  34. package/dist/{PageOverlay-D_wG2oie.js.map → PageOverlay-S4xsqJha.js.map} +1 -1
  35. package/dist/{PasteHandlerPlugin-DjD1wryY.js → PasteHandlerPlugin-YpQruA-w.js} +4 -4
  36. package/dist/{PasteHandlerPlugin-DjD1wryY.js.map → PasteHandlerPlugin-YpQruA-w.js.map} +1 -1
  37. package/dist/{RteEditor.module-Jk80F1FA.js → RteEditor.module-BJLUYSpf.js} +9 -10
  38. package/dist/{RteEditor.module-Jk80F1FA.js.map → RteEditor.module-BJLUYSpf.js.map} +1 -1
  39. package/dist/{Sortable.module-BTUOSbOU.js → Sortable.module-8SoaHfuE.js} +6 -7
  40. package/dist/{Sortable.module-BTUOSbOU.js.map → Sortable.module-8SoaHfuE.js.map} +1 -1
  41. package/dist/{SortableProvider-Dc7hwkb5.js → SortableProvider-8HYiBXJS.js} +2 -2
  42. package/dist/{SortableProvider-Dc7hwkb5.js.map → SortableProvider-8HYiBXJS.js.map} +1 -1
  43. package/dist/Spinner-BpElTDIu.js +30 -0
  44. package/dist/{Spinner-D8tWqg9j.js.map → Spinner-BpElTDIu.js.map} +1 -1
  45. package/dist/{TableCellResizerPlugin-CgYsYsuY.js → TableCellResizerPlugin-Ceof6StD.js} +17 -17
  46. package/dist/{TableCellResizerPlugin-CgYsYsuY.js.map → TableCellResizerPlugin-Ceof6StD.js.map} +1 -1
  47. package/dist/{TextArea-DqKIpOfT.js → TextArea-CuASC9bX.js} +16 -17
  48. package/dist/{TextArea-DqKIpOfT.js.map → TextArea-CuASC9bX.js.map} +1 -1
  49. package/dist/{Tooltip-BzB3jznk.js → Tooltip-D27p9kh4.js} +13 -14
  50. package/dist/{Tooltip-BzB3jznk.js.map → Tooltip-D27p9kh4.js.map} +1 -1
  51. package/dist/{chunk-SZQXB3JV-D0XG4Tlp.js → chunk-SZQXB3JV-KiB8lSa9.js} +5 -5
  52. package/dist/{chunk-SZQXB3JV-D0XG4Tlp.js.map → chunk-SZQXB3JV-KiB8lSa9.js.map} +1 -1
  53. package/dist/{client-UU-mS47K.js → client-CHQ7u_QI.js} +9 -9
  54. package/dist/{client-UU-mS47K.js.map → client-CHQ7u_QI.js.map} +1 -1
  55. package/dist/components/Accordion/Accordion.js +1 -1
  56. package/dist/components/Accordion/Accordion.stories.js +1 -1
  57. package/dist/components/Accordion/Accordion.test.js +4 -7
  58. package/dist/components/Accordion/Accordion.test.js.map +1 -1
  59. package/dist/components/Accordion/index.js +1 -1
  60. package/dist/components/AccordionCard/AccordionCard.test.js +3 -6
  61. package/dist/components/AccordionCard/AccordionCard.test.js.map +1 -1
  62. package/dist/components/ActionList/ActionList.test.js +3 -6
  63. package/dist/components/ActionList/ActionList.test.js.map +1 -1
  64. package/dist/components/AppStatusBar/AppStatusBar.test.js +2 -5
  65. package/dist/components/AppStatusBar/AppStatusBar.test.js.map +1 -1
  66. package/dist/components/Attention/Attention.test.js +2 -5
  67. package/dist/components/Attention/Attention.test.js.map +1 -1
  68. package/dist/components/Backdrop/Backdrop.test.js +2 -5
  69. package/dist/components/Backdrop/Backdrop.test.js.map +1 -1
  70. package/dist/components/Buttons/Button.stories.js +1 -1
  71. package/dist/components/Buttons/Button.test.js +2 -5
  72. package/dist/components/Buttons/Button.test.js.map +1 -1
  73. package/dist/components/Buttons/LinkButton.stories.js +1 -1
  74. package/dist/components/Buttons/LinkButton.test.js +2 -5
  75. package/dist/components/Buttons/LinkButton.test.js.map +1 -1
  76. package/dist/components/Buttons/MenuButton.stories.js +1 -1
  77. package/dist/components/Buttons/MenuButton.test.js +2 -5
  78. package/dist/components/Buttons/MenuButton.test.js.map +1 -1
  79. package/dist/components/Card/Card.test.js +2 -5
  80. package/dist/components/Card/Card.test.js.map +1 -1
  81. package/dist/components/Checkbox/Checkbox.stories.js +1 -1
  82. package/dist/components/Checkbox/Checkbox.test.js +3 -6
  83. package/dist/components/Checkbox/Checkbox.test.js.map +1 -1
  84. package/dist/components/CheckboxButtonBar/CheckboxButtonBar.js +1 -1
  85. package/dist/components/CheckboxButtonBar/CheckboxButtonBar.stories.js +2 -2
  86. package/dist/components/CheckboxButtonBar/CheckboxButtonBar.test.js +3 -6
  87. package/dist/components/CheckboxButtonBar/CheckboxButtonBar.test.js.map +1 -1
  88. package/dist/components/CheckboxButtonBar/index.js +1 -1
  89. package/dist/components/CheckboxTree/CheckboxTree.js +1 -2
  90. package/dist/components/CheckboxTree/CheckboxTree.stories.js +3 -4
  91. package/dist/components/CheckboxTree/CheckboxTree.stories.js.map +1 -1
  92. package/dist/components/CheckboxTree/index.js +1 -2
  93. package/dist/components/Chip/Chip.stories.js +1 -1
  94. package/dist/components/ControlsButton/ControlsButton.js +1 -1
  95. package/dist/components/ControlsButton/ControlsButton.stories.js +2 -2
  96. package/dist/components/ControlsButton/index.js +1 -1
  97. package/dist/components/Drawer/Drawer.js +1 -1
  98. package/dist/components/Drawer/Drawer.stories.js +2 -2
  99. package/dist/components/Drawer/index.js +1 -1
  100. package/dist/components/FeedbackBar/FeedbackBar.test.js +2 -5
  101. package/dist/components/FeedbackBar/FeedbackBar.test.js.map +1 -1
  102. package/dist/components/FieldHint/FieldHint.js +1 -1
  103. package/dist/components/FieldHint/FieldHint.stories.js +1 -1
  104. package/dist/components/FieldHint/index.js +1 -1
  105. package/dist/components/Fieldset/Fieldset.js +1 -1
  106. package/dist/components/Fieldset/Fieldset.stories.js +1 -1
  107. package/dist/components/Fieldset/index.js +1 -1
  108. package/dist/components/FormInput/FormInput.js +1 -2
  109. package/dist/components/FormInput/FormInput.stories.js +2 -3
  110. package/dist/components/FormInput/FormInput.stories.js.map +1 -1
  111. package/dist/components/FormInput/index.js +1 -2
  112. package/dist/components/IconButton/IconButton.stories.js +6 -7
  113. package/dist/components/IconButton/IconButton.stories.js.map +1 -1
  114. package/dist/components/InputField/InputField.stories.js +1 -3
  115. package/dist/components/InputField/InputField.stories.js.map +1 -1
  116. package/dist/components/Label/Label.test.js +2 -5
  117. package/dist/components/Label/Label.test.js.map +1 -1
  118. package/dist/components/MetaDataBar/MetaDataBar.test.js +1 -4
  119. package/dist/components/MetaDataBar/MetaDataBar.test.js.map +1 -1
  120. package/dist/components/ModalDialog/ModalDialog.js +1 -1
  121. package/dist/components/ModalDialog/ModalDialog.stories.js +2 -2
  122. package/dist/components/ModalDialog/index.js +1 -1
  123. package/dist/components/MultiSelect/MultiSelect.js +1 -2
  124. package/dist/components/MultiSelect/MultiSelect.stories.js +2 -3
  125. package/dist/components/MultiSelect/MultiSelect.stories.js.map +1 -1
  126. package/dist/components/MultiSelect/components/MultiSelectHeader.js +1 -2
  127. package/dist/components/MultiSelect/index.js +1 -2
  128. package/dist/components/MultiSelectBox/MultiSelectBox.stories.js +1 -1
  129. package/dist/components/MultiSelectBox/MultiSelectBox.test.js +2 -5
  130. package/dist/components/MultiSelectBox/MultiSelectBox.test.js.map +1 -1
  131. package/dist/components/Notification/Notification.stories.js +1 -1
  132. package/dist/components/Notification/Notification.test.js +2 -5
  133. package/dist/components/Notification/Notification.test.js.map +1 -1
  134. package/dist/components/OverlayCloseButton/OverlayCloseButton.stories.js +6 -7
  135. package/dist/components/OverlayCloseButton/OverlayCloseButton.stories.js.map +1 -1
  136. package/dist/components/PageOverlay/PageOverlay.js +1 -1
  137. package/dist/components/PageOverlay/PageOverlay.stories.js +1 -1
  138. package/dist/components/PageOverlay/index.js +1 -1
  139. package/dist/components/PeriodSelector/PeriodSelector.js +1 -2
  140. package/dist/components/PeriodSelector/PeriodSelector.stories.js +2 -3
  141. package/dist/components/PeriodSelector/PeriodSelector.stories.js.map +1 -1
  142. package/dist/components/PeriodSelector/index.js +1 -2
  143. package/dist/components/ProgrammeCard/ProgrammeCard.stories.js +0 -2
  144. package/dist/components/ProgrammeCard/ProgrammeCard.stories.js.map +1 -1
  145. package/dist/components/RadioGroup/RadioGroup.stories.js +1 -1
  146. package/dist/components/RadioGroup/Radiogroup.test.js +2 -5
  147. package/dist/components/RadioGroup/Radiogroup.test.js.map +1 -1
  148. package/dist/components/RadioTabSelector/RadioTabSelector.js +1 -2
  149. package/dist/components/RadioTabSelector/RadioTabSelector.stories.js +2 -3
  150. package/dist/components/RadioTabSelector/RadioTabSelector.stories.js.map +1 -1
  151. package/dist/components/RadioTabSelector/index.js +1 -2
  152. package/dist/components/RteEditor/EditorHeader/EditorHeader.js +1 -2
  153. package/dist/components/RteEditor/EditorHeader/index.js +1 -2
  154. package/dist/components/RteEditor/Plugins/BlockFormatPlugin/BlockFormatPlugin.js +2 -2
  155. package/dist/components/RteEditor/Plugins/CourseCataloguePlugin/AddCatalogueLinkForm/AddCatalogueLinkForm.js +1 -1
  156. package/dist/components/RteEditor/Plugins/CourseCataloguePlugin/AddCatalogueLinkForm/index.js +1 -1
  157. package/dist/components/RteEditor/Plugins/CourseCataloguePlugin/CourseCataloguePlugin.js +30 -30
  158. package/dist/components/RteEditor/Plugins/HistoryPlugin/HistoryPlugin.js +1 -2
  159. package/dist/components/RteEditor/Plugins/HistoryPlugin/index.js +1 -2
  160. package/dist/components/RteEditor/Plugins/LinkPlugin/AddLinkForm/AddLinkFrom.js +1 -2
  161. package/dist/components/RteEditor/Plugins/LinkPlugin/LinkContextMenu/LinkContextMenu.js +1 -1
  162. package/dist/components/RteEditor/Plugins/LinkPlugin/LinkPlugin.js +1 -2
  163. package/dist/components/RteEditor/Plugins/LinkPlugin/helpers.js +1 -1
  164. package/dist/components/RteEditor/Plugins/LinkPlugin/index.js +1 -2
  165. package/dist/components/RteEditor/Plugins/ListPlugin/ListPlugin.js +6 -6
  166. package/dist/components/RteEditor/Plugins/PasteHandlerPlugin/PasteHandlerPlugin.js +1 -1
  167. package/dist/components/RteEditor/Plugins/PasteHandlerPlugin/index.js +1 -1
  168. package/dist/components/RteEditor/Plugins/TableCellResizerPlugin/TableCellResizerPlugin.js +1 -1
  169. package/dist/components/RteEditor/Plugins/TableCellResizerPlugin/index.js +1 -1
  170. package/dist/components/RteEditor/Plugins/TablePlugin/AddTableFrom.js +1 -2
  171. package/dist/components/RteEditor/Plugins/TablePlugin/TablePlugin.js +1 -2
  172. package/dist/components/RteEditor/Plugins/TablePlugin/helpers.js +16 -16
  173. package/dist/components/RteEditor/Plugins/TablePlugin/index.js +1 -2
  174. package/dist/components/RteEditor/Plugins/ToolbarPlugin/ToolbarPlugin.js +1 -2
  175. package/dist/components/RteEditor/Plugins/ToolbarPlugin/index.js +1 -2
  176. package/dist/components/RteEditor/Plugins/index.js +3 -3
  177. package/dist/components/RteEditor/RteEditor.js +1 -2
  178. package/dist/components/RteEditor/RteEditor.stories.js +1 -2
  179. package/dist/components/RteEditor/RteEditor.stories.js.map +1 -1
  180. package/dist/components/RteEditor/UvaTheme/UvaTheme.js +1 -1
  181. package/dist/components/RteEditor/helpers.js +5 -5
  182. package/dist/components/RteEditor/index.js +1 -2
  183. package/dist/components/RteEditor/nodes/CourseCatalogueNode/CourseCatalogueNode.js +14 -14
  184. package/dist/components/RteEditor/nodes/TableWrapperNode/TableWrapperNode.js +19 -19
  185. package/dist/components/SelectListbox/SelectListBox.stories.js +1 -1
  186. package/dist/components/Sortable/Sortable.js +1 -1
  187. package/dist/components/Sortable/Sortable.stories.js +1 -1
  188. package/dist/components/Sortable/SortableProvider.js +1 -1
  189. package/dist/components/Sortable/components/SortableContainer.js +1 -1
  190. package/dist/components/Sortable/components/SortableHandle.js +1 -1
  191. package/dist/components/Sortable/components/SortableItem.js +2 -2
  192. package/dist/components/Spinner/Spinner.js +1 -1
  193. package/dist/components/Spinner/Spinner.stories.js +1 -1
  194. package/dist/components/Spinner/index.js +1 -1
  195. package/dist/components/StatusBadge/StatusBadge.test.js +2 -5
  196. package/dist/components/StatusBadge/StatusBadge.test.js.map +1 -1
  197. package/dist/components/TextArea/TextArea.js +1 -1
  198. package/dist/components/TextArea/TextArea.stories.js +2 -2
  199. package/dist/components/TextArea/TextArea.test.js +4 -7
  200. package/dist/components/TextArea/TextArea.test.js.map +1 -1
  201. package/dist/components/TextArea/index.js +1 -1
  202. package/dist/components/ToggleSwitch/ToggleSwitch.stories.js +1 -1
  203. package/dist/components/Tooltip/Tooltip.js +1 -1
  204. package/dist/components/Tooltip/Tooltip.stories.js +1 -1
  205. package/dist/components/Tooltip/index.js +1 -1
  206. package/dist/components/VarIndicator/VarIndicator.stories.js +1 -1
  207. package/dist/components/VarIndicator/VarIndicator.test.js +3 -6
  208. package/dist/components/VarIndicator/VarIndicator.test.js.map +1 -1
  209. package/dist/components/index.js +12 -13
  210. package/dist/{components-C4MCdrDH.js → components-DAwjkky5.js} +436 -436
  211. package/dist/components-DAwjkky5.js.map +1 -0
  212. package/dist/{dist-2TKCXdYZ.js → dist-BIkFjHck.js} +181 -181
  213. package/dist/{dist-2TKCXdYZ.js.map → dist-BIkFjHck.js.map} +1 -1
  214. package/dist/{esm-UNe_gmRA.js → esm-ipAmzhQq.js} +4 -4
  215. package/dist/{esm-UNe_gmRA.js.map → esm-ipAmzhQq.js.map} +1 -1
  216. package/dist/{helpers-BBSxTGRl.js → helpers-MNJmfDe_.js} +7 -7
  217. package/dist/{helpers-BBSxTGRl.js.map → helpers-MNJmfDe_.js.map} +1 -1
  218. package/dist/index.js +12 -13
  219. package/dist/{react-18-CRbkdI-3.js → react-18-Dwpebadr.js} +2 -2
  220. package/dist/{react-18-CRbkdI-3.js.map → react-18-Dwpebadr.js.map} +1 -1
  221. package/dist/{react.esm-CzIhAqlo.js → react.esm-R7eBXTUI.js} +587 -587
  222. package/dist/{react.esm-CzIhAqlo.js.map → react.esm-R7eBXTUI.js.map} +1 -1
  223. package/dist/setupTests.js +1 -2
  224. package/dist/setupTests.js.map +1 -1
  225. package/dist/storybook__react.d.js +97 -97
  226. package/dist/storybook__react.d.js.map +1 -1
  227. package/dist/{test-DQruvi8i.js → test-Cr_l59hN.js} +12 -10
  228. package/dist/{test-DQruvi8i.js.map → test-Cr_l59hN.js.map} +1 -1
  229. package/package.json +27 -27
  230. package/dist/Fieldset-CoNu_Owa.js +0 -23
  231. package/dist/Lexical.prod-DIglXatJ.js.map +0 -1
  232. package/dist/LexicalExtension.prod-COPHoPpX.js.map +0 -1
  233. package/dist/LexicalLink.prod-Bf9JUdMv.js.map +0 -1
  234. package/dist/LexicalTable.prod-D16GW-aZ.js.map +0 -1
  235. package/dist/LexicalUtils.prod-BBTLliac.js +0 -360
  236. package/dist/LexicalUtils.prod-BBTLliac.js.map +0 -1
  237. package/dist/Spinner-D8tWqg9j.js +0 -31
  238. package/dist/components-C4MCdrDH.js.map +0 -1
  239. /package/dist/assets/favicon/{android-chrome-192x192.png → src/assets/favicon/android-chrome-192x192.png} +0 -0
  240. /package/dist/assets/favicon/{android-chrome-512x512.png → src/assets/favicon/android-chrome-512x512.png} +0 -0
  241. /package/dist/assets/favicon/{apple-touch-icon.png → src/assets/favicon/apple-touch-icon.png} +0 -0
  242. /package/dist/assets/favicon/{favicon-16x16.png → src/assets/favicon/favicon-16x16.png} +0 -0
  243. /package/dist/assets/favicon/{favicon-32x32.png → src/assets/favicon/favicon-32x32.png} +0 -0
  244. /package/dist/assets/favicon/{favicon.ico → src/assets/favicon/favicon.ico} +0 -0
  245. /package/dist/assets/favicon/{favicon.svg → src/assets/favicon/favicon.svg} +0 -0
  246. /package/dist/assets/favicon/{site.webmanifest → src/assets/favicon/site.webmanifest} +0 -0
  247. /package/dist/assets/fonts/{SourceSans3-Regular.otf.woff → src/assets/fonts/SourceSans3-Regular.otf.woff} +0 -0
  248. /package/dist/assets/fonts/{SourceSans3-Regular.otf.woff2 → src/assets/fonts/SourceSans3-Regular.otf.woff2} +0 -0
  249. /package/dist/assets/fonts/{SourceSans3-Semibold.otf.woff → src/assets/fonts/SourceSans3-Semibold.otf.woff} +0 -0
  250. /package/dist/assets/fonts/{SourceSans3-Semibold.otf.woff2 → src/assets/fonts/SourceSans3-Semibold.otf.woff2} +0 -0
  251. /package/dist/assets/{fonts.css → src/css/fonts.css} +0 -0
  252. /package/dist/assets/{globals.css → src/css/globals.css} +0 -0
  253. /package/dist/assets/{variables.css → src/css/variables.css} +0 -0
@@ -11,7 +11,7 @@ function t(e, ...t) {
11
11
  for (let e of t) r.append("v", e);
12
12
  n.search = r.toString(), console.warn(`Minified Lexical warning #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`);
13
13
  }
14
- var n = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, r = n && "documentMode" in document ? document.documentMode : null, i = n && /Mac|iPod|iPhone|iPad/.test(navigator.platform), a = n && /^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent), o = !(!n || !("InputEvent" in window) || r) && "getTargetRanges" in new window.InputEvent("input"), s = n && /Version\/[\d.]+.*Safari/.test(navigator.userAgent), c = n && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream, l = n && /Android/.test(navigator.userAgent), u = n && /^(?=.*Chrome).*/i.test(navigator.userAgent), d = n && l && u, f = n && /AppleWebKit\/[\d.]+/.test(navigator.userAgent) && i && !u, p = 0, m = 1, h = 2, g = 1, _ = 2, v = 3, ee = 4, y = 5, b = 6, x = s || c || f ? "\xA0" : "​", te = "\n\n", ne = a ? "\xA0" : x, S = {
14
+ var n = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, r = n && "documentMode" in document ? document.documentMode : null, i = n && /Mac|iPod|iPhone|iPad/.test(navigator.platform), a = n && /^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent), o = !(!n || !("InputEvent" in window) || r) && "getTargetRanges" in new window.InputEvent("input"), s = n && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream, c = n && /Android/.test(navigator.userAgent), l = n && /Version\/[\d.]+.*Safari/.test(navigator.userAgent) && !c, u = n && /^(?=.*Chrome).*/i.test(navigator.userAgent), d = n && c && u, f = n && /AppleWebKit\/[\d.]+/.test(navigator.userAgent) && i && !u, p = 0, m = 1, h = 2, g = 1, _ = 2, v = 3, ee = 4, y = 5, b = 6, x = l || s || f ? "\xA0" : "​", te = "\n\n", ne = a ? "\xA0" : x, S = {
15
15
  bold: 1,
16
16
  capitalize: 1024,
17
17
  code: 16,
@@ -62,28 +62,28 @@ function fe(e) {
62
62
  }
63
63
  function pe(e, t, n) {
64
64
  let r = e.nodeName === "BR", i = t.__lexicalLineBreak;
65
- return i && (e === i || r && e.previousSibling === i) || r && ga(e, n) !== void 0;
65
+ return i && (e === i || r && e.previousSibling === i) || r && _a(e, n) !== void 0;
66
66
  }
67
67
  function me(e, t, n) {
68
68
  let r = Y(J(n)), i = null, a = null;
69
69
  r !== null && r.anchorNode === e && (i = r.anchorOffset, a = r.focusOffset);
70
70
  let o = e.nodeValue;
71
- o !== null && Da(t, o, i, a, !1);
71
+ o !== null && Oa(t, o, i, a, !1);
72
72
  }
73
73
  function he(e, t, n) {
74
74
  if (j(e)) {
75
75
  let t = e.anchor.getNode();
76
76
  if (t.is(n) && e.format !== t.getFormat()) return !1;
77
77
  }
78
- return oa(t) && n.isAttached();
78
+ return sa(t) && n.isAttached();
79
79
  }
80
80
  function ge(e, t, n, r) {
81
- for (let i = e; i && !yo(i); i = Ha(i)) {
82
- let e = ga(i, t);
81
+ for (let i = e; i && !bo(i); i = Ua(i)) {
82
+ let e = _a(i, t);
83
83
  if (e !== void 0) {
84
84
  let t = U(e, n);
85
85
  if (t) return B(t) || !X(i) ? void 0 : [i, t];
86
- } else if (i === r) return [r, ba(n)];
86
+ } else if (i === r) return [r, xa(n)];
87
87
  }
88
88
  }
89
89
  function _e(e, t, n) {
@@ -101,12 +101,12 @@ function _e(e, t, n) {
101
101
  let f = t[n], p = f.type, m = f.target, h = ge(m, e, c, s);
102
102
  if (!h) continue;
103
103
  let [g, _] = h;
104
- if (p === "characterData") r && k(_) && oa(m) && he(i, m, _) && me(m, _, e);
104
+ if (p === "characterData") r && k(_) && sa(m) && he(i, m, _) && me(m, _, e);
105
105
  else if (p === "childList") {
106
106
  u = !0;
107
107
  let t = f.addedNodes;
108
108
  for (let n = 0; n < t.length; n++) {
109
- let r = t[n], i = ha(r), o = r.parentNode;
109
+ let r = t[n], i = ga(r), o = r.parentNode;
110
110
  if (o != null && r !== l && i === null && !pe(r, o, e)) {
111
111
  if (a) {
112
112
  let e = (X(r) ? r.innerText : null) || r.nodeValue;
@@ -138,7 +138,7 @@ function _e(e, t, n) {
138
138
  }
139
139
  n.takeRecords();
140
140
  }
141
- i !== null && (u && G(i), a && Ba(e) && i.insertRawText(d));
141
+ i !== null && (u && G(i), a && Va(e) && i.insertRawText(d));
142
142
  });
143
143
  } finally {
144
144
  ue = !1;
@@ -185,7 +185,7 @@ function Ce(e, t, n) {
185
185
  function we(e) {
186
186
  let t = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Set();
187
187
  for (let r = typeof e == "function" ? e : e.replace; r.prototype && r.prototype.getType !== void 0; r = Object.getPrototypeOf(r)) {
188
- let { ownNodeConfig: e } = xo(r);
188
+ let { ownNodeConfig: e } = So(r);
189
189
  if (e && e.stateConfigs) for (let r of e.stateConfigs) {
190
190
  let e;
191
191
  "stateConfig" in r ? (e = r.stateConfig, r.flat && n.add(e.key)) : e = r, t.set(e.key, e);
@@ -271,7 +271,7 @@ function Ee(e) {
271
271
  return t.__state = n, n;
272
272
  }
273
273
  function De(e) {
274
- return e.__state ? e.__state.sharedNodeState : Yi(uo(), e.getType()).sharedNodeState;
274
+ return e.__state ? e.__state.sharedNodeState : Xi(fo(), e.getType()).sharedNodeState;
275
275
  }
276
276
  function Oe(e) {
277
277
  if (e) for (let t in e) return e;
@@ -303,7 +303,6 @@ function Ne(e, t) {
303
303
  let n = e.__mode, r = e.__format, i = e.__style, a = t.__mode, o = t.__format, s = t.__style, c = e.__state, l = t.__state;
304
304
  return (n === null || n === a) && (r === null || r === o) && (i === null || i === s) && (e.__state === null || c === l || function(e, t) {
305
305
  if (e === t) return !0;
306
- if (e && t && e.size !== t.size) return !1;
307
306
  let n = /* @__PURE__ */ new Set();
308
307
  return !(e && Ae(n, e, t) || t && Ae(n, t, e) || e && je(n, e, t) || t && je(n, t, e));
309
308
  }(c, l));
@@ -362,7 +361,7 @@ function Xe(e, t) {
362
361
  let e = ct(n, Ue);
363
362
  Ze(e, 0, e.length - 1, null);
364
363
  }
365
- n !== void 0 && La(Ge, ze, Be, n, "destroyed");
364
+ n !== void 0 && Ra(Ge, ze, Be, n, "destroyed");
366
365
  }
367
366
  function Ze(e, t, n, r) {
368
367
  for (let i = t; i <= n; ++i) {
@@ -424,7 +423,7 @@ function rt(t, n) {
424
423
  }
425
424
  T += e;
426
425
  }
427
- return n !== null && n.insertChild(i), La(Ge, ze, Be, r, "created"), i;
426
+ return n !== null && n.insertChild(i), Ra(Ge, ze, Be, r, "created"), i;
428
427
  }
429
428
  function it(e, t, n, r, i) {
430
429
  let a = T;
@@ -500,7 +499,7 @@ function st(t, n, r) {
500
499
  continue;
501
500
  }
502
501
  if (c.has(r)) {
503
- let e = Va(C, r);
502
+ let e = Ha(C, r);
504
503
  e !== u && a.withBefore(u).insertChild(e), u = dt(lt(r, a.element)), d++, f++;
505
504
  } else rt(r, a.withBefore(u)), f++;
506
505
  }
@@ -530,7 +529,7 @@ function ct(t, n) {
530
529
  function lt(t, n) {
531
530
  let r = Ue.get(t), i = w.get(t);
532
531
  r !== void 0 && i !== void 0 || e(61);
533
- let a = Je || He.has(t) || Ve.has(t), o = Va(C, t);
532
+ let a = Je || He.has(t) || Ve.has(t), o = Ha(C, t);
534
533
  if (r === i && !a) {
535
534
  let e;
536
535
  if (z(r)) {
@@ -539,7 +538,7 @@ function lt(t, n) {
539
538
  } else e = r.getTextContent();
540
539
  return T += e, o;
541
540
  }
542
- if (r !== i && a && La(Ge, ze, Be, i, "updated"), i.updateDOM(r, o, Re)) {
541
+ if (r !== i && a && Ra(Ge, ze, Be, i, "updated"), i.updateDOM(r, o, Re)) {
543
542
  let r = rt(t, null);
544
543
  return n === null && e(62), n.replaceChild(r, o), Xe(t, null), r;
545
544
  }
@@ -553,7 +552,7 @@ function lt(t, n) {
553
552
  let e = o.__lexicalTextContent, t;
554
553
  typeof e == "string" ? t = e : (t = r.getTextContent(), o.__lexicalTextContent = t), T += t;
555
554
  }
556
- if ((Je || i.__dir !== r.__dir) && (nt(o, i), V(i) && !Je)) for (let e of i.getChildren()) z(e) && nt(Va(C, e.getKey()), e);
555
+ if ((Je || i.__dir !== r.__dir) && (nt(o, i), V(i) && !Je)) for (let e of i.getChildren()) z(e) && nt(Ha(C, e.getKey()), e);
557
556
  } else {
558
557
  let e = i.getTextContent();
559
558
  if (B(i)) {
@@ -572,7 +571,7 @@ function ut(e, t) {
572
571
  let n = C._pendingDecorators, r = C._decorators;
573
572
  if (n === null) {
574
573
  if (r[e] === t) return;
575
- n = va(C);
574
+ n = ya(C);
576
575
  }
577
576
  n[e] = t;
578
577
  }
@@ -603,15 +602,15 @@ var ht = E("SELECTION_CHANGE_COMMAND"), gt = E("SELECTION_INSERT_CLIPBOARD_NODES
603
602
  }],
604
603
  ["pointerdown", function(e, t) {
605
604
  let n = e.target, r = e.pointerType;
606
- ao(n) && r !== "touch" && r !== "pen" && e.button === 0 && R(t, () => {
607
- Qi(n) || (bn = !0);
605
+ oo(n) && r !== "touch" && r !== "pen" && e.button === 0 && R(t, () => {
606
+ $i(n) || (bn = !0);
608
607
  });
609
608
  }],
610
609
  ["compositionstart", function(e, t) {
611
610
  q(t, bt, e);
612
611
  }],
613
612
  ["compositionend", function(e, t) {
614
- a ? Sn = !0 : c || !s && !f ? q(t, xt, e) : (Cn = !0, wn = e.data);
613
+ a ? Sn = !0 : s || !l && !f ? q(t, xt, e) : (Cn = !0, wn = e.data);
615
614
  }],
616
615
  ["input", function(e, t) {
617
616
  e.stopPropagation(), R(t, () => {
@@ -626,12 +625,12 @@ var ht = E("SELECTION_CHANGE_COMMAND"), gt = E("SELECTION_INSERT_CLIPBOARD_NODES
626
625
  let t = n.anchor, a = t.getNode();
627
626
  if (t.type === "element" && t.offset === 0 && n.isCollapsed() && !V(a) && W().getChildrenSize() === 1 && a.getTopLevelElementOrThrow().isEmpty() && i !== null && n.is(i)) r.removeAllRanges(), n.dirty = !0;
628
627
  else if (e.detail === 3 && !n.isCollapsed() && a !== n.focus.getNode()) {
629
- let e = Co(a, (e) => z(e) && !e.isInline());
628
+ let e = wo(a, (e) => z(e) && !e.isInline());
630
629
  z(e) && e.select(0);
631
630
  }
632
631
  } else if (e.pointerType === "touch" || e.pointerType === "pen") {
633
632
  let n = r.anchorNode;
634
- (X(n) || oa(n)) && G(qr(i, r, t, e));
633
+ (X(n) || sa(n)) && G(qr(i, r, t, e));
635
634
  }
636
635
  }
637
636
  q(t, _t, e);
@@ -649,7 +648,7 @@ var ht = E("SELECTION_CHANGE_COMMAND"), gt = E("SELECTION_INSERT_CLIPBOARD_NODES
649
648
  ];
650
649
  o && fn.push(["beforeinput", (e, t) => function(e, t) {
651
650
  let n = e.inputType;
652
- n === "deleteCompositionText" || a && Ba(t) || n !== "insertCompositionText" && q(t, vt, e);
651
+ n === "deleteCompositionText" || a && Va(t) || n !== "insertCompositionText" && q(t, vt, e);
653
652
  }(e, t)]);
654
653
  var pn = 0, mn = null, hn = 0, gn = null, _n = /* @__PURE__ */ new WeakMap(), vn = /* @__PURE__ */ new WeakMap(), yn = !1, bn = !1, xn = !1, Sn = !1, Cn = !1, wn = "", Tn = null, En = [
655
654
  0,
@@ -660,10 +659,10 @@ var pn = 0, mn = null, hn = 0, gn = null, _n = /* @__PURE__ */ new WeakMap(), vn
660
659
  ];
661
660
  function Dn(e, t, n, r, i) {
662
661
  let a = e.anchor, s = e.focus, c = a.getNode(), l = L(), u = Y(J(l)), d = u === null ? null : u.anchorNode, f = a.key, p = l.getElementByKey(f), m = n.length;
663
- return f !== s.key || !k(c) || (!i && (!o || hn < r + 50) || c.isDirty() && m < 2 || Sa(n)) && a.offset !== s.offset && !c.isComposing() || aa(c) || c.isDirty() && m > 1 || (i || !o) && p !== null && !c.isComposing() && d !== ca(p) || u !== null && t !== null && (!t.collapsed || t.startContainer !== u.anchorNode || t.startOffset !== u.anchorOffset) || !c.isComposing() && (c.getFormat() !== e.format || c.getStyle() !== e.style) || function(e, t) {
662
+ return f !== s.key || !k(c) || (!i && (!o || hn < r + 50) || c.isDirty() && m < 2 || Ca(n)) && a.offset !== s.offset && !c.isComposing() || oa(c) || c.isDirty() && m > 1 || (i || !o) && p !== null && !c.isComposing() && d !== la(p) || u !== null && t !== null && (!t.collapsed || t.startContainer !== u.anchorNode || t.startOffset !== u.anchorOffset) || !c.isComposing() && (c.getFormat() !== e.format || c.getStyle() !== e.style) || function(e, t) {
664
663
  if (t.isSegmented()) return !0;
665
664
  if (!e.isCollapsed()) return !1;
666
- let n = e.anchor.offset, r = t.getParentOrThrow(), i = ia(t);
665
+ let n = e.anchor.offset, r = t.getParentOrThrow(), i = aa(t);
667
666
  return n === 0 ? !t.canInsertTextBefore() || !r.canInsertTextBefore() && !t.isComposing() || i || function(e) {
668
667
  let t = e.getPreviousSibling();
669
668
  return (k(t) || z(t) && t.isInline()) && !t.canInsertTextAfter();
@@ -671,13 +670,13 @@ function Dn(e, t, n, r, i) {
671
670
  }(e, c);
672
671
  }
673
672
  function On(e, t) {
674
- return oa(e) && e.nodeValue !== null && t !== 0 && t !== e.nodeValue.length;
673
+ return sa(e) && e.nodeValue !== null && t !== 0 && t !== e.nodeValue.length;
675
674
  }
676
675
  function kn(t, n, r) {
677
676
  let { anchorNode: i, anchorOffset: a, focusNode: o, focusOffset: s } = t;
678
677
  yn && (yn = !1, On(i, a) && On(o, s) && !Tn) || R(n, () => {
679
678
  if (!r) return void G(null);
680
- if (!ea(n, i, o)) return;
679
+ if (!ta(n, i, o)) return;
681
680
  let c = M();
682
681
  if (Tn && j(c) && c.isCollapsed()) {
683
682
  let e = c.anchor, t = Tn.anchor;
@@ -742,7 +741,7 @@ function Nn(t) {
742
741
  } else {
743
742
  H(null), t.preventDefault();
744
743
  let e = a.anchor.getNode(), r = e.getTextContent(), o = e.canInsertTextAfter(), s = a.anchor.offset === 0 && a.focus.offset === r.length, c = d && n && !s && o;
745
- if (c && a.isCollapsed() && (c = !B(za(a.anchor, !0))), !c) {
744
+ if (c && a.isCollapsed() && (c = !B(Ba(a.anchor, !0))), !c) {
746
745
  q(i, St, !0);
747
746
  let e = M();
748
747
  d && j(e) && e.isCollapsed() && (Tn = e, setTimeout(() => Tn = null));
@@ -753,16 +752,16 @@ function Nn(t) {
753
752
  }
754
753
  var o;
755
754
  if (!j(a)) return !0;
756
- let s = t.data;
757
- gn !== null && Ea(!1, i, gn), a.dirty && gn === null || !a.isCollapsed() || V(a.anchor.getNode()) || r === null || a.applyDOMRange(r), gn = null;
755
+ let c = t.data;
756
+ gn !== null && Da(!1, i, gn), a.dirty && gn === null || !a.isCollapsed() || V(a.anchor.getNode()) || r === null || a.applyDOMRange(r), gn = null;
758
757
  let l = a.anchor, u = a.focus, f = l.getNode(), p = u.getNode();
759
758
  if (n === "insertText" || n === "insertTranspose") {
760
- if (s === "\n") t.preventDefault(), q(i, Ct, !1);
761
- else if (s === te) t.preventDefault(), q(i, wt, void 0);
762
- else if (s == null && t.dataTransfer) {
759
+ if (c === "\n") t.preventDefault(), q(i, Ct, !1);
760
+ else if (c === te) t.preventDefault(), q(i, wt, void 0);
761
+ else if (c == null && t.dataTransfer) {
763
762
  let e = t.dataTransfer.getData("text/plain");
764
763
  t.preventDefault(), a.insertRawText(e);
765
- } else s != null && Dn(a, r, s, t.timeStamp, !0) ? (t.preventDefault(), q(i, Tt, s)) : gn = s;
764
+ } else c != null && Dn(a, r, c, t.timeStamp, !0) ? (t.preventDefault(), q(i, Tt, c)) : gn = c;
766
765
  return hn = t.timeStamp, !0;
767
766
  }
768
767
  switch (t.preventDefault(), n) {
@@ -778,7 +777,7 @@ function Nn(t) {
778
777
  H(null), q(i, Ct, !1);
779
778
  break;
780
779
  case "insertParagraph":
781
- H(null), xn && !c ? (xn = !1, q(i, Ct, !1)) : q(i, wt, void 0);
780
+ H(null), xn && !s ? (xn = !1, q(i, Ct, !1)) : q(i, wt, void 0);
782
781
  break;
783
782
  case "insertFromPaste":
784
783
  case "insertFromPasteAsQuotation":
@@ -786,7 +785,7 @@ function Nn(t) {
786
785
  break;
787
786
  case "deleteByComposition":
788
787
  (function(e, t) {
789
- return e !== t || z(e) || z(t) || !ia(e) || !ia(t);
788
+ return e !== t || z(e) || z(t) || !aa(e) || !aa(t);
790
789
  })(f, p) && q(i, Dt, t);
791
790
  break;
792
791
  case "deleteByDrag":
@@ -831,17 +830,17 @@ function Nn(t) {
831
830
  return !0;
832
831
  }
833
832
  function Pn(e) {
834
- if (X(e.target) && Qi(e.target)) return !0;
833
+ if (X(e.target) && $i(e.target)) return !0;
835
834
  let t = L(), n = M(), r = e.data, i = Mn(e);
836
835
  if (r != null && j(n) && Dn(n, i, r, e.timeStamp, !1)) {
837
836
  Sn &&= (Ln(t, r), !1);
838
837
  let i = n.anchor.getNode(), s = Y(J(t));
839
838
  if (s === null) return !0;
840
839
  let c = n.isBackward(), l = c ? n.anchor.offset : n.focus.offset, u = c ? n.focus.offset : n.anchor.offset;
841
- o && !n.isCollapsed() && k(i) && s.anchorNode !== null && i.getTextContent().slice(0, l) + r + i.getTextContent().slice(l + u) === Ta(s.anchorNode) || q(t, Tt, r);
840
+ o && !n.isCollapsed() && k(i) && s.anchorNode !== null && i.getTextContent().slice(0, l) + r + i.getTextContent().slice(l + u) === Ea(s.anchorNode) || q(t, Tt, r);
842
841
  let f = r.length;
843
842
  a && f > 1 && e.inputType === "insertCompositionText" && !t.isComposing() && (n.anchor.offset -= f), d && t.isComposing() && (pn = 0, H(null));
844
- } else Ea(!1, t, r === null ? void 0 : r), Sn &&= (Ln(t, r || void 0), !1);
843
+ } else Da(!1, t, r === null ? void 0 : r), Sn &&= (Ln(t, r || void 0), !1);
845
844
  return function() {
846
845
  I(), ve(L());
847
846
  }(), !0;
@@ -850,21 +849,21 @@ function Fn(e) {
850
849
  let t = L(), n = M();
851
850
  if (j(n) && !t.isComposing()) {
852
851
  let r = n.anchor, i = n.anchor.getNode();
853
- H(r.key), Wa(tr), (e.timeStamp < pn + 30 || r.type === "element" || !n.isCollapsed() || i.getFormat() !== n.format || k(i) && i.getStyle() !== n.style) && q(t, Tt, ne);
852
+ H(r.key), Ga(tr), (e.timeStamp < pn + 30 || r.type === "element" || !n.isCollapsed() || i.getFormat() !== n.format || k(i) && i.getStyle() !== n.style) && q(t, Tt, ne);
854
853
  }
855
854
  return !0;
856
855
  }
857
856
  function In(e) {
858
- return Ln(L(), e.data), Wa(nr), !0;
857
+ return Ln(L(), e.data), Ga(nr), !0;
859
858
  }
860
859
  function Ln(e, t) {
861
860
  let n = e._compositionKey;
862
861
  if (H(null), n !== null && t != null) {
863
862
  if (t === "") {
864
- let t = U(n), r = ca(e.getElementByKey(n));
863
+ let t = U(n), r = la(e.getElementByKey(n));
865
864
  if (r !== null && r.nodeValue !== null && k(t)) {
866
865
  let n = Y(J(e)), i = null, a = null;
867
- n !== null && n.anchorNode === r && (i = n.anchorOffset, a = n.focusOffset), Da(t, r.nodeValue, i, a, !0);
866
+ n !== null && n.anchorNode === r && (i = n.anchorOffset, a = n.focusOffset), Oa(t, r.nodeValue, i, a, !0);
868
867
  }
869
868
  return;
870
869
  }
@@ -880,13 +879,13 @@ function Ln(e, t) {
880
879
  }
881
880
  }
882
881
  }
883
- Ea(!0, e, t);
882
+ Da(!0, e, t);
884
883
  }
885
884
  function Rn(e) {
886
885
  let t = L();
887
886
  if (e.key == null) return !0;
888
887
  if (Cn) {
889
- if (Na(e)) return R(t, () => {
888
+ if (Pa(e)) return R(t, () => {
890
889
  Ln(t, wn);
891
890
  }), Cn = !1, wn = "", !0;
892
891
  Cn = !1, wn = "";
@@ -895,13 +894,13 @@ function Rn(e) {
895
894
  return K(e, "ArrowRight", { shiftKey: "any" });
896
895
  }(e)) q(t, Pt, e);
897
896
  else if (function(e) {
898
- return K(e, "ArrowRight", ja);
897
+ return K(e, "ArrowRight", Ma);
899
898
  }(e)) q(t, Ft, e);
900
899
  else if (function(e) {
901
900
  return K(e, "ArrowLeft", { shiftKey: "any" });
902
901
  }(e)) q(t, It, e);
903
902
  else if (function(e) {
904
- return K(e, "ArrowLeft", ja);
903
+ return K(e, "ArrowLeft", Ma);
905
904
  }(e)) q(t, Lt, e);
906
905
  else if (function(e) {
907
906
  return K(e, "ArrowUp", {
@@ -938,7 +937,7 @@ function Rn(e) {
938
937
  }(e)) xn = !1, q(t, Bt, e);
939
938
  else if (function(e) {
940
939
  return K(e, "Backspace", { shiftKey: "any" }) || i && K(e, "h", { ctrlKey: !0 });
941
- }(e)) Na(e) ? q(t, Ht, e) : (e.preventDefault(), q(t, St, !0));
940
+ }(e)) Pa(e) ? q(t, Ht, e) : (e.preventDefault(), q(t, St, !0));
942
941
  else if (function(e) {
943
942
  return e.key === "Escape";
944
943
  }(e)) q(t, Ut, e);
@@ -948,10 +947,10 @@ function Rn(e) {
948
947
  return e.key === "Delete";
949
948
  })(e) ? q(t, Wt, e) : (e.preventDefault(), q(t, St, !1));
950
949
  else if (function(e) {
951
- return K(e, "Backspace", Ma);
950
+ return K(e, "Backspace", Na);
952
951
  }(e)) e.preventDefault(), q(t, Ot, !0);
953
952
  else if (function(e) {
954
- return K(e, "Delete", Ma);
953
+ return K(e, "Delete", Na);
955
954
  }(e)) e.preventDefault(), q(t, Ot, !1);
956
955
  else if (function(e) {
957
956
  return i && K(e, "Backspace", { metaKey: !0 });
@@ -960,19 +959,19 @@ function Rn(e) {
960
959
  return i && (K(e, "Delete", { metaKey: !0 }) || K(e, "k", { ctrlKey: !0 }));
961
960
  }(e)) e.preventDefault(), q(t, kt, !1);
962
961
  else if (function(e) {
963
- return K(e, "b", ja);
962
+ return K(e, "b", Ma);
964
963
  }(e)) e.preventDefault(), q(t, At, "bold");
965
964
  else if (function(e) {
966
- return K(e, "u", ja);
965
+ return K(e, "u", Ma);
967
966
  }(e)) e.preventDefault(), q(t, At, "underline");
968
967
  else if (function(e) {
969
- return K(e, "i", ja);
968
+ return K(e, "i", Ma);
970
969
  }(e)) e.preventDefault(), q(t, At, "italic");
971
970
  else if (function(e) {
972
971
  return K(e, "Tab", { shiftKey: "any" });
973
972
  }(e)) q(t, Gt, e);
974
973
  else if (function(e) {
975
- return K(e, "z", ja);
974
+ return K(e, "z", Ma);
976
975
  }(e)) e.preventDefault(), q(t, jt, void 0);
977
976
  else if (function(e) {
978
977
  return i ? K(e, "z", {
@@ -985,11 +984,11 @@ function Rn(e) {
985
984
  }(e)) e.preventDefault(), q(t, Mt, void 0);
986
985
  else {
987
986
  let n = t._editorState._selection;
988
- n === null || j(n) ? Pa(e) && (e.preventDefault(), q(t, nn, e)) : function(e) {
989
- return K(e, "c", ja);
987
+ n === null || j(n) ? Fa(e) && (e.preventDefault(), q(t, nn, e)) : function(e) {
988
+ return K(e, "c", Ma);
990
989
  }(e) ? (e.preventDefault(), q(t, en, e)) : function(e) {
991
- return K(e, "x", ja);
992
- }(e) ? (e.preventDefault(), q(t, tn, e)) : Pa(e) && (e.preventDefault(), q(t, nn, e));
990
+ return K(e, "x", Ma);
991
+ }(e) ? (e.preventDefault(), q(t, tn, e)) : Fa(e) && (e.preventDefault(), q(t, nn, e));
993
992
  }
994
993
  return function(e) {
995
994
  return e.ctrlKey || e.shiftKey || e.altKey || e.metaKey;
@@ -1001,15 +1000,15 @@ function zn(e) {
1001
1000
  }
1002
1001
  var Bn = /* @__PURE__ */ new Map();
1003
1002
  function Vn(e) {
1004
- let t = ro(e.target);
1003
+ let t = io(e.target);
1005
1004
  if (t === null) return;
1006
- let n = na(t.anchorNode);
1005
+ let n = ra(t.anchorNode);
1007
1006
  if (n === null) return;
1008
1007
  bn && (bn = !1, R(n, () => {
1009
1008
  let r = Jr(), i = t.anchorNode;
1010
- (X(i) || oa(i)) && G(qr(r, t, n, e));
1009
+ (X(i) || sa(i)) && G(qr(r, t, n, e));
1011
1010
  }));
1012
- let r = Ca(n), i = r[r.length - 1], a = i._key, o = Bn.get(a), s = o || i;
1011
+ let r = wa(n), i = r[r.length - 1], a = i._key, o = Bn.get(a), s = o || i;
1013
1012
  s !== n && kn(t, s, !1), kn(t, n, !0), n === i ? o && Bn.delete(a) : Bn.set(a, n);
1014
1013
  }
1015
1014
  function Hn(e) {
@@ -1025,10 +1024,10 @@ function Wn(t) {
1025
1024
  if (r === void 0) return;
1026
1025
  let i = r - 1;
1027
1026
  i >= 0 || e(164), _n.delete(t), vn.set(n, i), i === 0 && n.removeEventListener("selectionchange", Vn);
1028
- let a = ra(t);
1029
- ta(a) ? (function(e) {
1027
+ let a = ia(t);
1028
+ na(a) ? (function(e) {
1030
1029
  if (e._parentEditor !== null) {
1031
- let t = Ca(e), n = t[t.length - 1]._key;
1030
+ let t = wa(e), n = t[t.length - 1]._key;
1032
1031
  Bn.get(n) === e && Bn.delete(n);
1033
1032
  } else Bn.delete(e._key);
1034
1033
  }(a), t.__lexicalEditor = null) : a && e(198);
@@ -1044,7 +1043,7 @@ function Gn(e, t, n) {
1044
1043
  let t = M();
1045
1044
  if (!j(t) || !z(e)) return t;
1046
1045
  let { anchor: n, focus: r } = t, i = n.getNode(), a = r.getNode();
1047
- return Ka(i, e) && n.set(e.__key, 0, "element"), Ka(a, e) && r.set(e.__key, 0, "element"), t;
1046
+ return qa(i, e) && n.set(e.__key, 0, "element"), qa(a, e) && r.set(e.__key, 0, "element"), t;
1048
1047
  }(e), o = !1;
1049
1048
  if (j(a) && t) {
1050
1049
  let t = a.anchor, n = a.focus;
@@ -1052,9 +1051,9 @@ function Gn(e, t, n) {
1052
1051
  } else Mr(a) && t && e.isSelected() && e.selectPrevious();
1053
1052
  if (j(a) && t && !o) {
1054
1053
  let t = e.getIndexWithinParent();
1055
- fa(e), Yr(a, i, t, -1);
1056
- } else fa(e);
1057
- n || Xa(i) || i.canBeEmpty() || !i.isEmpty() || Gn(i, t), t && a && V(i) && i.isEmpty() && i.selectEnd();
1054
+ pa(e), Yr(a, i, t, -1);
1055
+ } else pa(e);
1056
+ n || Za(i) || i.canBeEmpty() || !i.isEmpty() || Gn(i, t), t && a && V(i) && i.isEmpty() && i.selectEnd();
1058
1057
  }
1059
1058
  function Kn(e) {
1060
1059
  return e;
@@ -1071,7 +1070,7 @@ var D = class {
1071
1070
  __next;
1072
1071
  __state;
1073
1072
  static getType() {
1074
- let { ownNodeType: t } = xo(this);
1073
+ let { ownNodeType: t } = So(this);
1075
1074
  return t === void 0 && e(64, this.name), t;
1076
1075
  }
1077
1076
  static clone(t) {
@@ -1100,7 +1099,7 @@ var D = class {
1100
1099
  enumerable: !1,
1101
1100
  value: void 0,
1102
1101
  writable: !0
1103
- }), da(this, e);
1102
+ }), fa(this, e);
1104
1103
  }
1105
1104
  getType() {
1106
1105
  return this.__type;
@@ -1158,7 +1157,7 @@ var D = class {
1158
1157
  let t = this;
1159
1158
  for (; t !== null;) {
1160
1159
  let n = t.getParent();
1161
- if (Xa(n)) return z(t) || t === this && B(t) || e(194), t;
1160
+ if (Za(n)) return z(t) || t === this && B(t) || e(194), t;
1162
1161
  t = n;
1163
1162
  }
1164
1163
  return null;
@@ -1198,18 +1197,18 @@ var D = class {
1198
1197
  return e;
1199
1198
  }
1200
1199
  getCommonAncestor(e) {
1201
- let t = z(this) ? this : this.getParent(), n = z(e) ? e : e.getParent(), r = t && n ? $o(t, n) : null;
1200
+ let t = z(this) ? this : this.getParent(), n = z(e) ? e : e.getParent(), r = t && n ? es(t, n) : null;
1202
1201
  return r ? r.commonAncestor : null;
1203
1202
  }
1204
1203
  is(e) {
1205
1204
  return e != null && this.__key === e.__key;
1206
1205
  }
1207
1206
  isBefore(t) {
1208
- let n = $o(this, t);
1209
- return n !== null && (n.type === "descendant" || (n.type === "branch" ? Xo(n) === -1 : (n.type !== "same" && n.type !== "ancestor" && e(279), !1)));
1207
+ let n = es(this, t);
1208
+ return n !== null && (n.type === "descendant" || (n.type === "branch" ? Zo(n) === -1 : (n.type !== "same" && n.type !== "ancestor" && e(279), !1)));
1210
1209
  }
1211
1210
  isParentOf(e) {
1212
- let t = $o(this, e);
1211
+ let t = es(this, e);
1213
1212
  return t !== null && t.type === "ancestor";
1214
1213
  }
1215
1214
  getNodesBetween(t) {
@@ -1251,9 +1250,9 @@ var D = class {
1251
1250
  if (Jn(this)) return this;
1252
1251
  I();
1253
1252
  let e = di(), t = L(), n = e._nodeMap, r = this.__key, i = this.getLatest(), a = t._cloneNotNeeded, o = M();
1254
- if (o !== null && o.setCachedNodes(null), a.has(r)) return pa(i), i;
1255
- let s = ho(i);
1256
- return a.add(r), pa(s), n.set(r, s), s;
1253
+ if (o !== null && o.setCachedNodes(null), a.has(r)) return ma(i), i;
1254
+ let s = go(i);
1255
+ return a.add(r), ma(s), n.set(r, s), s;
1257
1256
  }
1258
1257
  getTextContent() {
1259
1258
  return "";
@@ -1297,9 +1296,9 @@ var D = class {
1297
1296
  replace(t, n) {
1298
1297
  I();
1299
1298
  let r = M();
1300
- r !== null && (r = r.clone()), $a(this, t);
1299
+ r !== null && (r = r.clone()), eo(this, t);
1301
1300
  let i = this.getLatest(), a = this.__key, o = t.__key, s = t.getWritable(), c = this.getParentOrThrow().getWritable(), l = c.__size;
1302
- fa(s);
1301
+ pa(s);
1303
1302
  let u = i.getPreviousSibling(), d = i.getNextSibling(), f = i.__prev, p = i.__next, m = i.__parent;
1304
1303
  if (Gn(i, !1, !0), u === null ? c.__first = o : u.getWritable().__next = o, s.__prev = f, d === null ? c.__last = o : d.getWritable().__prev = o, s.__next = p, s.__parent = m, c.__size = l, n && (z(this) && z(s) || e(139), this.getChildren().forEach((e) => {
1305
1304
  s.append(e);
@@ -1308,14 +1307,14 @@ var D = class {
1308
1307
  let e = r.anchor, t = r.focus;
1309
1308
  e.key === a && kr(e, s), t.key === a && kr(t, s);
1310
1309
  }
1311
- return ma() === a && H(o), s;
1310
+ return ha() === a && H(o), s;
1312
1311
  }
1313
1312
  insertAfter(e, t = !0) {
1314
- I(), $a(this, e);
1313
+ I(), eo(this, e);
1315
1314
  let n = this.getWritable(), r = e.getWritable(), i = r.getParent(), a = M(), o = !1, s = !1;
1316
1315
  if (i !== null) {
1317
1316
  let t = e.getIndexWithinParent();
1318
- if (fa(r), j(a)) {
1317
+ if (pa(r), j(a)) {
1319
1318
  let e = i.__key, n = a.anchor, r = a.focus;
1320
1319
  o = n.type === "element" && n.key === e && n.offset === t + 1, s = r.type === "element" && r.key === e && r.offset === t + 1;
1321
1320
  }
@@ -1330,9 +1329,9 @@ var D = class {
1330
1329
  return e;
1331
1330
  }
1332
1331
  insertBefore(e, t = !0) {
1333
- I(), $a(this, e);
1332
+ I(), eo(this, e);
1334
1333
  let n = this.getWritable(), r = e.getWritable(), i = r.__key;
1335
- fa(r);
1334
+ pa(r);
1336
1335
  let a = this.getPreviousSibling(), o = this.getParentOrThrow().getWritable(), s = n.__prev, c = this.getIndexWithinParent();
1337
1336
  a === null ? o.__first = i : a.getWritable().__next = i, o.__size++, n.__prev = i, r.__prev = s, r.__next = n.__key, r.__parent = n.__parent;
1338
1337
  let l = M();
@@ -1342,7 +1341,7 @@ var D = class {
1342
1341
  return !1;
1343
1342
  }
1344
1343
  createParentElementNode() {
1345
- return Ri();
1344
+ return zi();
1346
1345
  }
1347
1346
  selectStart() {
1348
1347
  return this.selectPrevious();
@@ -1403,7 +1402,7 @@ var D = class {
1403
1402
  static importDOM() {
1404
1403
  return { br: (e) => function(e) {
1405
1404
  let t = e.parentElement;
1406
- if (t !== null && co(t)) {
1405
+ if (t !== null && lo(t)) {
1407
1406
  let n = t.firstChild;
1408
1407
  if (n === e || n.nextSibling === e && sr(n)) {
1409
1408
  let n = t.lastChild;
@@ -1413,7 +1412,7 @@ var D = class {
1413
1412
  return !1;
1414
1413
  }(e) || function(e) {
1415
1414
  let t = e.parentElement;
1416
- if (t !== null && co(t)) {
1415
+ if (t !== null && lo(t)) {
1417
1416
  let n = t.firstChild;
1418
1417
  if (n === e || n.nextSibling === e && sr(n)) return !1;
1419
1418
  let r = t.lastChild;
@@ -1433,13 +1432,13 @@ function ir(e) {
1433
1432
  return { node: ar() };
1434
1433
  }
1435
1434
  function ar() {
1436
- return Qa(new rr());
1435
+ return $a(new rr());
1437
1436
  }
1438
1437
  function or(e) {
1439
1438
  return e instanceof rr;
1440
1439
  }
1441
1440
  function sr(e) {
1442
- return oa(e) && /^( |\t|\r?\n)+$/.test(e.textContent || "");
1441
+ return sa(e) && /^( |\t|\r?\n)+$/.test(e.textContent || "");
1443
1442
  }
1444
1443
  function cr(e, t) {
1445
1444
  return 16 & t ? "code" : t & 128 ? "mark" : 32 & t ? "sub" : 64 & t ? "sup" : null;
@@ -1448,13 +1447,13 @@ function lr(e, t) {
1448
1447
  return 1 & t ? "strong" : 2 & t ? "em" : "span";
1449
1448
  }
1450
1449
  function ur(e, t, n, r, i) {
1451
- let a = r.classList, o = Ia(i, "base");
1452
- o !== void 0 && a.add(...o), o = Ia(i, "underlineStrikethrough");
1450
+ let a = r.classList, o = La(i, "base");
1451
+ o !== void 0 && a.add(...o), o = La(i, "underlineStrikethrough");
1453
1452
  let s = !1, c = 8 & t && 4 & t;
1454
1453
  o !== void 0 && (8 & n && 4 & n ? (s = !0, c || a.add(...o)) : c && a.remove(...o));
1455
1454
  for (let e in S) {
1456
1455
  let r = S[e];
1457
- if (o = Ia(i, e), o !== void 0) if (n & r) {
1456
+ if (o = La(i, e), o !== void 0) if (n & r) {
1458
1457
  if (s && (e === "underline" || e === "strikethrough")) {
1459
1458
  t & r && a.remove(...o);
1460
1459
  continue;
@@ -1526,7 +1525,7 @@ var mr = class t extends D {
1526
1525
  return this.getLatest().__mode === 1;
1527
1526
  }
1528
1527
  isComposing() {
1529
- return this.__key === ma();
1528
+ return this.__key === ha();
1530
1529
  }
1531
1530
  isSegmented() {
1532
1531
  return this.getLatest().__mode === 2;
@@ -1548,7 +1547,7 @@ var mr = class t extends D {
1548
1547
  return this.getLatest().__text;
1549
1548
  }
1550
1549
  getFormatFlags(e, t) {
1551
- return la(this.getLatest().__format, e, t);
1550
+ return ua(this.getLatest().__format, e, t);
1552
1551
  }
1553
1552
  canHaveFormat() {
1554
1553
  return !0;
@@ -1664,7 +1663,7 @@ var mr = class t extends D {
1664
1663
  return t.__style = e, t;
1665
1664
  }
1666
1665
  toggleFormat(e) {
1667
- let t = la(this.getFormat(), e, null);
1666
+ let t = ua(this.getFormat(), e, null);
1668
1667
  return this.setFormat(t);
1669
1668
  }
1670
1669
  toggleDirectionless() {
@@ -1695,7 +1694,7 @@ var mr = class t extends D {
1695
1694
  } else n = 0, r = 0;
1696
1695
  if (!j(i)) return Ur(o, n, o, r, "text", "text");
1697
1696
  {
1698
- let e = ma();
1697
+ let e = ha();
1699
1698
  e !== i.anchor.key && e !== i.focus.key || H(o), i.setTextNodeRange(this, n, this, r);
1700
1699
  }
1701
1700
  return i;
@@ -1727,7 +1726,7 @@ var mr = class t extends D {
1727
1726
  I();
1728
1727
  let t = this.getLatest(), n = t.getTextContent();
1729
1728
  if (n === "") return [];
1730
- let r = t.__key, i = ma(), a = n.length;
1729
+ let r = t.__key, i = ha(), a = n.length;
1731
1730
  e.sort((e, t) => e - t), e.push(a);
1732
1731
  let o = [], s = e.length;
1733
1732
  for (let t = 0, r = 0; t < a && r <= s; r++) {
@@ -1762,7 +1761,7 @@ var mr = class t extends D {
1762
1761
  if (u !== null) {
1763
1762
  (function(e) {
1764
1763
  let t = e.getPreviousSibling(), n = e.getNextSibling();
1765
- t !== null && pa(t), n !== null && pa(n);
1764
+ t !== null && ma(t), n !== null && ma(n);
1766
1765
  })(this);
1767
1766
  let e = u.getWritable(), t = this.getIndexWithinParent();
1768
1767
  h ? (e.splice(t, 0, ee), this.remove()) : e.splice(t, 1, ee), j(v) && Yr(v, u, t, c - 1);
@@ -1773,7 +1772,7 @@ var mr = class t extends D {
1773
1772
  let n = t === this.getPreviousSibling();
1774
1773
  n || t === this.getNextSibling() || e(50);
1775
1774
  let r = this.__key, i = t.__key, a = this.__text, o = a.length;
1776
- ma() === i && H(r);
1775
+ ha() === i && H(r);
1777
1776
  let s = M();
1778
1777
  if (j(s)) {
1779
1778
  let e = s.anchor, a = s.focus;
@@ -1859,11 +1858,11 @@ function br(e, t) {
1859
1858
  }
1860
1859
  if (n = e, X(n)) {
1861
1860
  let e = n.style.display;
1862
- if (e === "" && !so(n) || e !== "" && !e.startsWith("inline")) return null;
1861
+ if (e === "" && !co(n) || e !== "" && !e.startsWith("inline")) return null;
1863
1862
  }
1864
1863
  let r = n;
1865
1864
  for (; (r = t ? n.firstChild : n.lastChild) !== null;) n = r;
1866
- if (oa(n)) return n;
1865
+ if (sa(n)) return n;
1867
1866
  if (n.nodeName === "BR") return null;
1868
1867
  }
1869
1868
  }
@@ -1886,7 +1885,7 @@ function Sr(e) {
1886
1885
  };
1887
1886
  }
1888
1887
  function O(e = "") {
1889
- return Qa(new mr(e));
1888
+ return $a(new mr(e));
1890
1889
  }
1891
1890
  function k(e) {
1892
1891
  return e instanceof mr;
@@ -1909,7 +1908,7 @@ var wr = class n extends mr {
1909
1908
  return null;
1910
1909
  }
1911
1910
  createDOM(e) {
1912
- let t = super.createDOM(e), n = Ia(e.theme, "tab");
1911
+ let t = super.createDOM(e), n = La(e.theme, "tab");
1913
1912
  return n !== void 0 && t.classList.add(...n), t;
1914
1913
  }
1915
1914
  static importJSON(e) {
@@ -1935,7 +1934,7 @@ var wr = class n extends mr {
1935
1934
  }
1936
1935
  };
1937
1936
  function Tr() {
1938
- return Qa(new wr());
1937
+ return $a(new wr());
1939
1938
  }
1940
1939
  function Er(e) {
1941
1940
  return e instanceof wr;
@@ -1952,7 +1951,7 @@ var Dr = class {
1952
1951
  return this.key === e.key && this.offset === e.offset && this.type === e.type;
1953
1952
  }
1954
1953
  isBefore(e) {
1955
- return this.key === e.key ? this.offset < e.offset : Yo($(es(this, "next")), $(es(e, "next"))) < 0;
1954
+ return this.key === e.key ? this.offset < e.offset : Xo($(ts(this, "next")), $(ts(e, "next"))) < 0;
1956
1955
  }
1957
1956
  getNode() {
1958
1957
  let t = U(this.key);
@@ -1960,7 +1959,7 @@ var Dr = class {
1960
1959
  }
1961
1960
  set(e, t, n, r) {
1962
1961
  let i = this._selection, a = this.key;
1963
- r && this.key === e && this.offset === t && this.type === n || (this.key = e, this.offset = t, this.type = n, li() || (ma() === a && H(e), i !== null && (i.setCachedNodes(null), i.dirty = !0)));
1962
+ r && this.key === e && this.offset === t && this.type === n || (this.key = e, this.offset = t, this.type = n, li() || (ha() === a && H(e), i !== null && (i.setCachedNodes(null), i.dirty = !0)));
1964
1963
  }
1965
1964
  };
1966
1965
  function A(e, t, n) {
@@ -2064,7 +2063,7 @@ var Ar = class e {
2064
2063
  let e = this.getNodes();
2065
2064
  if ((M() || Jr()) === this && e[0]) {
2066
2065
  let t = Q(e[0], "next");
2067
- ns(qo(t, t));
2066
+ rs(Jo(t, t));
2068
2067
  }
2069
2068
  for (let t of e) t.remove();
2070
2069
  }
@@ -2108,18 +2107,18 @@ var jr = class t {
2108
2107
  let { origin: e } = n;
2109
2108
  z(e) && a.has(e) || t.push(e);
2110
2109
  }
2111
- if (r && t.push(r.caret.origin), No(e.focus) && z(e.focus.origin) && e.focus.getNodeAtCaret() === null) for (let n = Bo(e.focus.origin, "previous"); Z(n) && i.has(n.origin) && !n.origin.isEmpty() && n.origin.is(t[t.length - 1]); n = Ho(n)) i.delete(n.origin), t.pop();
2110
+ if (r && t.push(r.caret.origin), Po(e.focus) && z(e.focus.origin) && e.focus.getNodeAtCaret() === null) for (let n = Vo(e.focus.origin, "previous"); Z(n) && i.has(n.origin) && !n.origin.isEmpty() && n.origin.is(t[t.length - 1]); n = Uo(n)) i.delete(n.origin), t.pop();
2112
2111
  for (; t.length > 1;) {
2113
2112
  let e = t[t.length - 1];
2114
2113
  if (!z(e) || a.has(e) || e.isEmpty() || i.has(e)) break;
2115
2114
  t.pop();
2116
2115
  }
2117
2116
  if (t.length === 0 && e.isCollapsed()) {
2118
- let n = $(e.anchor), r = $(e.anchor.getFlipped()), i = (e) => Mo(e) ? e.origin : e.getNodeAtCaret(), a = i(n) || i(r) || (e.anchor.getNodeAtCaret() ? n.origin : r.origin);
2117
+ let n = $(e.anchor), r = $(e.anchor.getFlipped()), i = (e) => No(e) ? e.origin : e.getNodeAtCaret(), a = i(n) || i(r) || (e.anchor.getNodeAtCaret() ? n.origin : r.origin);
2119
2118
  t.push(a);
2120
2119
  }
2121
2120
  return t;
2122
- }(ds(is(this), "next"));
2121
+ }(fs(as(this), "next"));
2123
2122
  return li() || (this._cachedNodes = t), t;
2124
2123
  }
2125
2124
  setTextNodeRange(e, t, n, r) {
@@ -2150,7 +2149,7 @@ var jr = class t {
2150
2149
  return new t(A(e.key, e.offset, e.type), A(n.key, n.offset, n.type), this.format, this.style);
2151
2150
  }
2152
2151
  toggleFormat(e) {
2153
- this.format = la(this.format, e, null), this.dirty = !0;
2152
+ this.format = ua(this.format, e, null), this.dirty = !0;
2154
2153
  }
2155
2154
  setFormat(e) {
2156
2155
  this.format = e, this.dirty = !0;
@@ -2174,22 +2173,22 @@ var jr = class t {
2174
2173
  let n = this.anchor, r = this.focus, i = this.format, a = this.style, o = n, s = r;
2175
2174
  !this.isCollapsed() && r.isBefore(n) && (o = r, s = n), o.type === "element" && function(e, t, n, r) {
2176
2175
  let i = e.getNode(), a = i.getChildAtIndex(e.offset), o = O();
2177
- if (o.setFormat(n), o.setStyle(r), zi(a)) a.splice(0, 0, [o]);
2176
+ if (o.setFormat(n), o.setStyle(r), Bi(a)) a.splice(0, 0, [o]);
2178
2177
  else {
2179
- let e = V(i) ? Ri().append(o) : o;
2178
+ let e = V(i) ? zi().append(o) : o;
2180
2179
  a === null ? i.append(e) : a.insertBefore(e);
2181
2180
  }
2182
2181
  e.is(t) && t.set(o.__key, 0, "text"), e.set(o.__key, 0, "text");
2183
- }(o, s, i, a), s.type === "element" && ts(s, $(es(s, "next")));
2182
+ }(o, s, i, a), s.type === "element" && ns(s, $(ts(s, "next")));
2184
2183
  let c = o.offset, l = s.offset, u = this.getNodes(), d = u.length, f = u[0];
2185
2184
  k(f) || e(26);
2186
2185
  let p = f.getTextContent().length, m = f.getParentOrThrow(), h = u[d - 1];
2187
- if (d === 1 && s.type === "element" && (l = p, s.set(o.key, l, "text")), this.isCollapsed() && c === p && (aa(f) || !f.canInsertTextAfter() || !m.canInsertTextAfter() && f.getNextSibling() === null)) {
2186
+ if (d === 1 && s.type === "element" && (l = p, s.set(o.key, l, "text")), this.isCollapsed() && c === p && (oa(f) || !f.canInsertTextAfter() || !m.canInsertTextAfter() && f.getNextSibling() === null)) {
2188
2187
  let e = f.getNextSibling();
2189
- if (k(e) && e.canInsertTextBefore() && !aa(e) || (e = O(), e.setFormat(i), e.setStyle(a), m.canInsertTextAfter() ? f.insertAfter(e) : m.insertAfter(e)), e.select(0, 0), f = e, t !== "") return void this.insertText(t);
2190
- } else if (this.isCollapsed() && c === 0 && (aa(f) || !f.canInsertTextBefore() || !m.canInsertTextBefore() && f.getPreviousSibling() === null)) {
2188
+ if (k(e) && e.canInsertTextBefore() && !oa(e) || (e = O(), e.setFormat(i), e.setStyle(a), m.canInsertTextAfter() ? f.insertAfter(e) : m.insertAfter(e)), e.select(0, 0), f = e, t !== "") return void this.insertText(t);
2189
+ } else if (this.isCollapsed() && c === 0 && (oa(f) || !f.canInsertTextBefore() || !m.canInsertTextBefore() && f.getPreviousSibling() === null)) {
2191
2190
  let e = f.getPreviousSibling();
2192
- if (k(e) && !aa(e) || (e = O(), e.setFormat(i), m.canInsertTextBefore() ? f.insertBefore(e) : m.insertBefore(e)), e.select(), f = e, t !== "") return void this.insertText(t);
2191
+ if (k(e) && !oa(e) || (e = O(), e.setFormat(i), m.canInsertTextBefore() ? f.insertBefore(e) : m.insertBefore(e)), e.select(), f = e, t !== "") return void this.insertText(t);
2193
2192
  } else if (f.isSegmented() && c !== p) {
2194
2193
  let e = O(f.getTextContent());
2195
2194
  e.setFormat(i), f.replace(e), f = e;
@@ -2198,7 +2197,7 @@ var jr = class t {
2198
2197
  if (!m.canInsertTextBefore() || !m.canInsertTextAfter() || z(e) && (!e.canInsertTextBefore() || !e.canInsertTextAfter())) return this.insertText(""), Br(this.anchor, this.focus), void this.insertText(t);
2199
2198
  }
2200
2199
  if (d === 1) {
2201
- if (ia(f)) {
2200
+ if (aa(f)) {
2202
2201
  let e = O(t);
2203
2202
  e.select(), f.replace(e);
2204
2203
  return;
@@ -2230,7 +2229,7 @@ var jr = class t {
2230
2229
  if (!n.is(r) && r.isInline()) do
2231
2230
  i = r, r = r.getParentOrThrow();
2232
2231
  while (r.isInline());
2233
- if (s.type === "text" && (l !== 0 || h.getTextContent() === "") || s.type === "element" && h.getIndexWithinParent() < l) if (k(h) && !ia(h) && l !== h.getTextContentSize()) {
2232
+ if (s.type === "text" && (l !== 0 || h.getTextContent() === "") || s.type === "element" && h.getIndexWithinParent() < l) if (k(h) && !aa(h) && l !== h.getTextContentSize()) {
2234
2233
  if (h.isSegmented()) {
2235
2234
  let e = O(h.getTextContent());
2236
2235
  h.replace(e), h = e;
@@ -2254,7 +2253,7 @@ var jr = class t {
2254
2253
  (i === 0 || r[i - 1].is(n)) && (e.delete(t.__key), n = t), t = t.getParent();
2255
2254
  }
2256
2255
  }
2257
- if (ia(f)) if (c === p) f.select();
2256
+ if (aa(f)) if (c === p) f.select();
2258
2257
  else {
2259
2258
  let e = O(t);
2260
2259
  e.select(), f.replace(e);
@@ -2268,7 +2267,7 @@ var jr = class t {
2268
2267
  }
2269
2268
  removeText() {
2270
2269
  let e = M() === this;
2271
- rs(this, cs(is(this))), e && M() !== this && G(this);
2270
+ is(this, ls(as(this))), e && M() !== this && G(this);
2272
2271
  }
2273
2272
  formatText(e, t = null) {
2274
2273
  if (this.isCollapsed()) return this.toggleFormat(e), void H(null);
@@ -2290,7 +2289,7 @@ var jr = class t {
2290
2289
  let h = a - 1, g = r[h], _ = u.type === "text" ? u.offset : g.getTextContentSize();
2291
2290
  if (f.is(g)) {
2292
2291
  if (p === _) return;
2293
- if (aa(f) || p === 0 && _ === f.getTextContentSize()) f.setFormat(m);
2292
+ if (oa(f) || p === 0 && _ === f.getTextContentSize()) f.setFormat(m);
2294
2293
  else {
2295
2294
  let e = f.splitText(p, _), t = p === 0 ? e[0] : e[1];
2296
2295
  t.setFormat(m), l.type === "text" && l.set(t.__key, 0, "text"), u.type === "text" && u.set(t.__key, _ - p, "text");
@@ -2298,9 +2297,9 @@ var jr = class t {
2298
2297
  this.format = m;
2299
2298
  return;
2300
2299
  }
2301
- p === 0 || aa(f) || ([, f] = f.splitText(p), p = 0), f.setFormat(m);
2300
+ p === 0 || oa(f) || ([, f] = f.splitText(p), p = 0), f.setFormat(m);
2302
2301
  let v = g.getFormatFlags(e, m);
2303
- _ > 0 && (_ === g.getTextContentSize() || aa(g) || ([g] = g.splitText(_)), g.setFormat(v));
2302
+ _ > 0 && (_ === g.getTextContentSize() || oa(g) || ([g] = g.splitText(_)), g.setFormat(v));
2304
2303
  for (let t = d + 1; t < h; t++) {
2305
2304
  let n = r[t], i = n.getFormatFlags(e, v);
2306
2305
  n.setFormat(i);
@@ -2314,7 +2313,7 @@ var jr = class t {
2314
2313
  let n = M();
2315
2314
  return j(n) || e(134), n.insertNodes(t);
2316
2315
  }
2317
- let n = (this.isBackward() ? this.focus : this.anchor).getNode(), r = Co(n, lo), i = t[t.length - 1];
2316
+ let n = (this.isBackward() ? this.focus : this.anchor).getNode(), r = wo(n, uo), i = t[t.length - 1];
2318
2317
  if (z(r) && "__language" in r) {
2319
2318
  if ("__language" in t[0]) this.insertText(t[0].getTextContent());
2320
2319
  else {
@@ -2330,7 +2329,7 @@ var jr = class t {
2330
2329
  return;
2331
2330
  }
2332
2331
  let a = function(e) {
2333
- let t = Ri(), n = null;
2332
+ let t = zi(), n = null;
2334
2333
  for (let r = 0; r < e.length; r++) {
2335
2334
  let i = e[r], a = or(i);
2336
2335
  if (a || B(i) && i.isInline() || z(i) && i.isInline() || k(i) || i.isParentRequired()) {
@@ -2341,23 +2340,23 @@ var jr = class t {
2341
2340
  return t;
2342
2341
  }(t), o = a.getLastDescendant(), s = a.getChildren(), c = !z(r) || !r.isEmpty() ? this.insertParagraph() : null, l = s[s.length - 1], u = s[0];
2343
2342
  var d;
2344
- z(d = u) && lo(d) && !d.isEmpty() && z(r) && (!r.isEmpty() || r.canMergeWhenEmpty()) && (z(r) || e(211, n.constructor.name, n.getType()), r.append(...u.getChildren()), u = s[1]), u && (r === null && e(212, n.constructor.name, n.getType()), function(t, n) {
2343
+ z(d = u) && uo(d) && !d.isEmpty() && z(r) && (!r.isEmpty() || r.canMergeWhenEmpty()) && (z(r) || e(211, n.constructor.name, n.getType()), r.append(...u.getChildren()), u = s[1]), u && (r === null && e(212, n.constructor.name, n.getType()), function(t, n) {
2345
2344
  let r = n.getParentOrThrow().getLastChild(), i = n, a = [n];
2346
2345
  for (; i !== r;) i.getNextSibling() || e(140), i = i.getNextSibling(), a.push(i);
2347
2346
  let o = t;
2348
2347
  for (let e of a) o = o.insertAfter(e);
2349
2348
  }(r, u));
2350
- let f = Co(o, lo);
2351
- c && z(f) && (c.canMergeWhenEmpty() || lo(l)) && (f.append(...c.getChildren()), c.remove()), z(r) && r.isEmpty() && r.remove(), o.selectEnd();
2349
+ let f = wo(o, uo);
2350
+ c && z(f) && (c.canMergeWhenEmpty() || uo(l)) && (f.append(...c.getChildren()), c.remove()), z(r) && r.isEmpty() && r.remove(), o.selectEnd();
2352
2351
  let p = z(r) ? r.getLastChild() : null;
2353
2352
  or(p) && f !== r && p.remove();
2354
2353
  }
2355
2354
  insertParagraph() {
2356
2355
  if (this.anchor.key === "root") {
2357
- let e = Ri();
2356
+ let e = zi();
2358
2357
  return W().splice(this.anchor.offset, 0, [e]), e.select(), e;
2359
2358
  }
2360
- let t = ri(this), n = Co(this.anchor.getNode(), lo);
2359
+ let t = ri(this), n = wo(this.anchor.getNode(), uo);
2361
2360
  z(n) || e(213);
2362
2361
  let r = n.getChildAtIndex(t), i = r ? [r, ...r.getNextSiblings()] : [], a = n.insertNewAfter(this, !1);
2363
2362
  return a ? (a.append(...i), a.selectStart(), a) : null;
@@ -2390,19 +2389,19 @@ var jr = class t {
2390
2389
  let r = e === "move", i = L(), a = Y(J(i));
2391
2390
  if (!a) return;
2392
2391
  let o = i._blockCursorElement, s = i._rootElement, c = this.focus.getNode();
2393
- if (s === null || o === null || !z(c) || c.isInline() || c.canBeEmpty() || no(o, i, s), this.dirty) {
2394
- let e = Va(i, this.anchor.key), t = Va(i, this.focus.key);
2395
- this.anchor.type === "text" && (e = ca(e)), this.focus.type === "text" && (t = ca(t)), e && t && $r(a, e, this.anchor.offset, t, this.focus.offset);
2392
+ if (s === null || o === null || !z(c) || c.isInline() || c.canBeEmpty() || ro(o, i, s), this.dirty) {
2393
+ let e = Ha(i, this.anchor.key), t = Ha(i, this.focus.key);
2394
+ this.anchor.type === "text" && (e = la(e)), this.focus.type === "text" && (t = la(t)), e && t && $r(a, e, this.anchor.offset, t, this.focus.offset);
2396
2395
  }
2397
2396
  if (function(e, t, n, r) {
2398
2397
  e.modify(t, n, r);
2399
2398
  }(a, e, t ? "backward" : "forward", n), a.rangeCount > 0) {
2400
- let e = a.getRangeAt(0), n = this.anchor.getNode(), i = V(n) ? n : Ya(n);
2399
+ let e = a.getRangeAt(0), n = this.anchor.getNode(), i = V(n) ? n : Xa(n);
2401
2400
  if (this.applyDOMRange(e), this.dirty = !0, !r) {
2402
2401
  let n = this.getNodes(), r = [], o = !1;
2403
2402
  for (let e = 0; e < n.length; e++) {
2404
2403
  let t = n[e];
2405
- Ka(t, i) ? r.push(t) : o = !0;
2404
+ qa(t, i) ? r.push(t) : o = !0;
2406
2405
  }
2407
2406
  if (o && r.length > 0) if (t) {
2408
2407
  let e = r[0];
@@ -2431,7 +2430,7 @@ var jr = class t {
2431
2430
  if (this.isCollapsed()) {
2432
2431
  let t = this.anchor, n = t.getNode();
2433
2432
  if (this.forwardDeletion(t, n, e)) return;
2434
- let r = Go(es(t, e ? "previous" : "next"));
2433
+ let r = Ko(ts(t, e ? "previous" : "next"));
2435
2434
  if (r.getTextSlices().every((e) => e === null || e.distance === 0)) {
2436
2435
  let e = { type: "initial" };
2437
2436
  for (let t of r.iterNodeCarets("shadowRoot")) if (Z(t)) {
@@ -2440,7 +2439,7 @@ var jr = class t {
2440
2439
  if (e.type === "merge-block") break;
2441
2440
  if (z(r.anchor.origin) && r.anchor.origin.isEmpty()) {
2442
2441
  let e = $(t);
2443
- rs(this, qo(e, e)), r.anchor.origin.remove();
2442
+ is(this, Jo(e, e)), r.anchor.origin.remove();
2444
2443
  }
2445
2444
  return;
2446
2445
  }
@@ -2452,7 +2451,7 @@ var jr = class t {
2452
2451
  }
2453
2452
  } else {
2454
2453
  if (e.type === "merge-block") break;
2455
- if (No(t)) {
2454
+ if (Po(t)) {
2456
2455
  if (z(t.origin)) {
2457
2456
  if (t.origin.isInline()) {
2458
2457
  if (!t.origin.isParentOf(r.anchor.origin)) break;
@@ -2475,7 +2474,7 @@ var jr = class t {
2475
2474
  }
2476
2475
  if (e.type === "merge-block") {
2477
2476
  let { caret: t, block: n } = e;
2478
- return rs(this, qo(!t.origin.isEmpty() && n.isEmpty() ? as(Q(n, t.direction)) : r.anchor, t)), this.removeText();
2477
+ return is(this, Jo(!t.origin.isEmpty() && n.isEmpty() ? os(Q(n, t.direction)) : r.anchor, t)), this.removeText();
2479
2478
  }
2480
2479
  }
2481
2480
  let i = this.focus;
@@ -2495,7 +2494,7 @@ var jr = class t {
2495
2494
  if (i === r.getNode() && n.type === "text" && r.type === "text") {
2496
2495
  let e = n.offset, a = r.offset, o = e < a, s = o ? e : a, c = o ? a : e, l = c - 1;
2497
2496
  s !== l && (function(e) {
2498
- return !(Sa(e) || Ir(e));
2497
+ return !(Ca(e) || Ir(e));
2499
2498
  })(i.getTextContent().slice(s, c)) && (t ? r.set(r.key, l, r.type) : n.set(n.key, l, n.type));
2500
2499
  }
2501
2500
  })(this, e);
@@ -2543,7 +2542,7 @@ function Fr(e, t) {
2543
2542
  for (let n = t; n; n = n.getParent()) {
2544
2543
  if (z(n)) {
2545
2544
  if (n.collapseAtStart(e)) return !0;
2546
- if (Xa(n)) break;
2545
+ if (Za(n)) break;
2547
2546
  }
2548
2547
  if (n.getPreviousSibling()) break;
2549
2548
  }
@@ -2579,9 +2578,9 @@ function Rr(t, n, r, i) {
2579
2578
  let e = u.parentNode;
2580
2579
  t === e && n > Array.prototype.indexOf.call(e.children, u) && o--;
2581
2580
  }
2582
- if (a = xa(d), k(a)) o = Ro(a, s ? "next" : "previous");
2581
+ if (a = Sa(d), k(a)) o = zo(a, s ? "next" : "previous");
2583
2582
  else {
2584
- let c = xa(t);
2583
+ let c = Sa(t);
2585
2584
  if (c === null) return null;
2586
2585
  if (z(c)) {
2587
2586
  let l = i.getElementByKey(c.getKey());
@@ -2596,15 +2595,15 @@ function Rr(t, n, r, i) {
2596
2595
  let e = s ? d.getLastDescendant() : d.getFirstDescendant();
2597
2596
  e === null ? c = d : (d = e, c = z(d) ? d : d.getParentOrThrow()), o = 0;
2598
2597
  }
2599
- k(d) ? (a = d, c = null, o = Ro(d, s ? "next" : "previous")) : d !== c && s && !f && (z(c) || e(216), o = Math.min(c.getChildrenSize(), o + 1));
2598
+ k(d) ? (a = d, c = null, o = zo(d, s ? "next" : "previous")) : d !== c && s && !f && (z(c) || e(216), o = Math.min(c.getChildrenSize(), o + 1));
2600
2599
  } else {
2601
2600
  let e = c.getIndexWithinParent();
2602
- o = n === 0 && B(c) && xa(t) === c ? e : e + 1, c = c.getParentOrThrow();
2601
+ o = n === 0 && B(c) && Sa(t) === c ? e : e + 1, c = c.getParentOrThrow();
2603
2602
  }
2604
2603
  if (z(c)) return A(c.__key, o, "element");
2605
2604
  }
2606
- } else a = xa(t);
2607
- return k(a) ? A(a.__key, Ro(a, o, "clamp"), "text") : null;
2605
+ } else a = Sa(t);
2606
+ return k(a) ? A(a.__key, zo(a, o, "clamp"), "text") : null;
2608
2607
  }
2609
2608
  function zr(e, t, n) {
2610
2609
  let r = e.offset, i = e.getNode();
@@ -2632,13 +2631,13 @@ function Br(e, t, n) {
2632
2631
  }
2633
2632
  }
2634
2633
  function Vr(e, t, n, r, i, a) {
2635
- if (e === null || n === null || !ea(i, e, n)) return null;
2634
+ if (e === null || n === null || !ta(i, e, n)) return null;
2636
2635
  let o = Rr(e, t, j(a) ? a.anchor : null, i);
2637
2636
  if (o === null) return null;
2638
2637
  let s = Rr(n, r, j(a) ? a.focus : null, i);
2639
2638
  if (s === null) return null;
2640
2639
  if (o.type === "element" && s.type === "element") {
2641
- let t = xa(e), r = xa(n);
2640
+ let t = Sa(e), r = Sa(n);
2642
2641
  if (B(t) && B(r)) return null;
2643
2642
  }
2644
2643
  return Br(o, s), [o, s];
@@ -2665,7 +2664,7 @@ function qr(e, t, n, r) {
2665
2664
  let a = r || i.event, o = a ? a.type : void 0, s = o === "selectionchange", c = !ue && (s || o === "beforeinput" || o === "compositionstart" || o === "compositionend" || o === "click" && a && a.detail === 3 || o === "drop" || o === void 0), l, u, d, f;
2666
2665
  if (j(e) && !c) return e.clone();
2667
2666
  if (t === null) return null;
2668
- if (l = t.anchorNode, u = t.focusNode, d = t.anchorOffset, f = t.focusOffset, (s || o === void 0) && j(e) && !ea(n, l, u)) return e.clone();
2667
+ if (l = t.anchorNode, u = t.focusNode, d = t.anchorOffset, f = t.focusOffset, (s || o === void 0) && j(e) && !ta(n, l, u)) return e.clone();
2669
2668
  let p = Vr(l, d, u, f, n, e);
2670
2669
  if (p === null) return null;
2671
2670
  let [m, h] = p, g = 0, _ = "";
@@ -2747,7 +2746,7 @@ function $r(e, t, n, r, i) {
2747
2746
  } catch {}
2748
2747
  }
2749
2748
  function ei(e, t, n) {
2750
- let r = Va(e, t.getKey());
2749
+ let r = Ha(e, t.getKey());
2751
2750
  if (z(t)) {
2752
2751
  let e = t.getDOMSlot(r);
2753
2752
  return [e.element, n + e.getFirstChildOffset()];
@@ -2756,11 +2755,11 @@ function ei(e, t, n) {
2756
2755
  }
2757
2756
  function ti(e, t, n, r, i, o, s) {
2758
2757
  let c = r.anchorNode, l = r.focusNode, u = r.anchorOffset, d = r.focusOffset, f = document.activeElement;
2759
- if (i.has("collaboration") && f !== o || f !== null && $i(f)) return;
2760
- if (!j(t)) return void (e !== null && ea(n, c, l) && r.removeAllRanges());
2758
+ if (i.has("collaboration") && f !== o || f !== null && ea(f)) return;
2759
+ if (!j(t)) return void (e !== null && ta(n, c, l) && r.removeAllRanges());
2761
2760
  let p = t.anchor, m = t.focus, h = p.getNode(), g = m.getNode(), [_, v] = ei(n, h, p.offset), [ee, y] = ei(n, g, m.offset), b = t.format, x = t.style, te = t.isCollapsed(), ne = _, S = ee, re = !1;
2762
2761
  var ie, ae, oe, se, ce;
2763
- if ((p.type === "text" ? (ne = ca(_), re = h.getFormat() !== b || h.getStyle() !== x) : j(e) && e.anchor.type === "text" && (re = !0), m.type === "text" && (S = ca(ee)), ne !== null && S !== null) && (te && (e === null || re || j(e) && (e.format !== b || e.style !== x)) && (ie = b, ae = x, oe = v, se = p.key, ce = performance.now(), En = [
2762
+ if ((p.type === "text" ? (ne = la(_), re = h.getFormat() !== b || h.getStyle() !== x) : j(e) && e.anchor.type === "text" && (re = !0), m.type === "text" && (S = la(ee)), ne !== null && S !== null) && (te && (e === null || re || j(e) && (e.format !== b || e.style !== x)) && (ie = b, ae = x, oe = v, se = p.key, ce = performance.now(), En = [
2764
2763
  ie,
2765
2764
  ae,
2766
2765
  oe,
@@ -2776,7 +2775,7 @@ function ti(e, t, n, r, i, o, s) {
2776
2775
  n.selectNode(e), t = n.getBoundingClientRect();
2777
2776
  } else t = e.getBoundingClientRect();
2778
2777
  (function(e, t, n) {
2779
- let r = Ua(n), i = qa(r);
2778
+ let r = Wa(n), i = Ja(r);
2780
2779
  if (r === null || i === null) return;
2781
2780
  let { top: a, bottom: o } = t, s = 0, c = 0, l = n;
2782
2781
  for (; l !== null;) {
@@ -2798,7 +2797,7 @@ function ti(e, t, n, r, i, o, s) {
2798
2797
  a -= t, o -= t;
2799
2798
  }
2800
2799
  if (t) break;
2801
- l = Ha(l);
2800
+ l = Ua(l);
2802
2801
  }
2803
2802
  })(n, t, o);
2804
2803
  }
@@ -2816,7 +2815,7 @@ function ri(t) {
2816
2815
  let r = M();
2817
2816
  j(r) && (n = r), j(n) || e(161);
2818
2817
  let i = n.anchor, a = i.getNode(), o = i.offset;
2819
- for (; !lo(a);) {
2818
+ for (; !uo(a);) {
2820
2819
  let e = a;
2821
2820
  if ([a, o] = ii(a, o), e.is(a)) break;
2822
2821
  }
@@ -2825,7 +2824,7 @@ function ri(t) {
2825
2824
  function ii(e, t) {
2826
2825
  let n = e.getParent();
2827
2826
  if (!n) {
2828
- let e = Ri();
2827
+ let e = zi();
2829
2828
  return W().append(e), e.select(), [W(), 0];
2830
2829
  }
2831
2830
  if (k(e)) {
@@ -2847,14 +2846,14 @@ function ai(e, t, n, r, i = "decorators-and-blocks") {
2847
2846
  let [t, r] = n === e.isBackward() ? [e.focus, e.anchor] : [e.anchor, e.focus];
2848
2847
  return r.set(t.key, t.offset, t.type), !0;
2849
2848
  }
2850
- let a = es(e.focus, n ? "previous" : "next"), o = r === "lineboundary", s = t === "move", c = a, l = i === "decorators-and-blocks";
2851
- if (!ls(c)) {
2849
+ let a = ts(e.focus, n ? "previous" : "next"), o = r === "lineboundary", s = t === "move", c = a, l = i === "decorators-and-blocks";
2850
+ if (!us(c)) {
2852
2851
  for (let e of c) {
2853
2852
  l = !1;
2854
2853
  let { origin: t } = e;
2855
2854
  if (!B(t) || t.isIsolated() || (c = e, !o || !t.isInline())) break;
2856
2855
  }
2857
- if (l) for (let e of Go(a).iterNodeCarets(t === "extend" ? "shadowRoot" : "root")) {
2856
+ if (l) for (let e of Ko(a).iterNodeCarets(t === "extend" ? "shadowRoot" : "root")) {
2858
2857
  if (Z(e)) e.origin.isInline() || (c = e);
2859
2858
  else {
2860
2859
  if (z(e.origin)) continue;
@@ -2868,7 +2867,7 @@ function ai(e, t, n, r, i = "decorators-and-blocks") {
2868
2867
  let e = Gr();
2869
2868
  return e.add(c.origin.getKey()), G(e), !0;
2870
2869
  }
2871
- return c = $(c), s && ts(e.anchor, c), ts(e.focus, c), l || !o;
2870
+ return c = $(c), s && ns(e.anchor, c), ns(e.focus, c), l || !o;
2872
2871
  }
2873
2872
  var N = null, P = null, F = !1, oi = !1, si = 0, ci = {
2874
2873
  characterData: !0,
@@ -2891,10 +2890,10 @@ function L() {
2891
2890
  return P === null && e(196, fi()), P;
2892
2891
  }
2893
2892
  function fi() {
2894
- let e = 0, t = /* @__PURE__ */ new Set(), n = Gi.version;
2893
+ let e = 0, t = /* @__PURE__ */ new Set(), n = Ki.version;
2895
2894
  if (typeof window < "u") for (let r of document.querySelectorAll("[contenteditable]")) {
2896
- let i = ra(r);
2897
- if (ta(i)) e++;
2895
+ let i = ia(r);
2896
+ if (na(i)) e++;
2898
2897
  else if (i) {
2899
2898
  let e = String(i.constructor.version || "<0.17.1");
2900
2899
  e === n && (e += " (separately built, likely a bundler configuration issue)"), t.add(e);
@@ -2907,7 +2906,7 @@ function pi() {
2907
2906
  return P;
2908
2907
  }
2909
2908
  function mi(e, t, n) {
2910
- let r = t.__type, i = Yi(e, r), a = n.get(r);
2909
+ let r = t.__type, i = Xi(e, r), a = n.get(r);
2911
2910
  a === void 0 && (a = Array.from(i.transforms), n.set(r, a));
2912
2911
  let o = a.length;
2913
2912
  for (let e = 0; e < o && (a[e](t), t.isAttached()); e++);
@@ -2956,7 +2955,7 @@ function bi(e, t) {
2956
2955
  p.disconnect(), m = pt(a, n, e, t, r, i);
2957
2956
  } catch (t) {
2958
2957
  if (t instanceof Error && e._onError(t), oi) throw t;
2959
- Bi(e, null, r, n), ye(e), e._dirtyType = 2, oi = !0, bi(e, a), oi = !1;
2958
+ Vi(e, null, r, n), ye(e), e._dirtyType = 2, oi = !0, bi(e, a), oi = !1;
2960
2959
  return;
2961
2960
  } finally {
2962
2961
  p.observe(r, ci), e._updating = f, N = l, F = u, P = d;
@@ -2966,7 +2965,7 @@ function bi(e, t) {
2966
2965
  let h = e._dirtyLeaves, g = e._dirtyElements, _ = e._normalizedNodes, v = e._updateTags, ee = e._deferred;
2967
2966
  c && (e._dirtyType = 0, e._cloneNotNeeded.clear(), e._dirtyLeaves = /* @__PURE__ */ new Set(), e._dirtyElements = /* @__PURE__ */ new Map(), e._normalizedNodes = /* @__PURE__ */ new Set(), e._updateTags = /* @__PURE__ */ new Set()), function(e, t) {
2968
2967
  let n = e._decorators, r = e._pendingDecorators || n, i = t._nodeMap, a;
2969
- for (a in r) i.has(a) || (r === n && (r = va(e)), delete r[a]);
2968
+ for (a in r) i.has(a) || (r === n && (r = ya(e)), delete r[a]);
2970
2969
  }(e, n);
2971
2970
  let y = i ? null : Y(J(e));
2972
2971
  if (e._editable && y !== null && (c || s === null || s.dirty || !s.is(o)) && r !== null && !v.has("skip-dom-selection")) {
@@ -2974,18 +2973,18 @@ function bi(e, t) {
2974
2973
  try {
2975
2974
  if (p !== null && p.disconnect(), c || s === null || s.dirty) {
2976
2975
  let t = e._blockCursorElement;
2977
- t !== null && no(t, e, r), ti(o, s, e, y, v, r);
2976
+ t !== null && ro(t, e, r), ti(o, s, e, y, v, r);
2978
2977
  }
2979
2978
  (function(e, t, n) {
2980
2979
  let r = e._blockCursorElement;
2981
2980
  if (j(n) && n.isCollapsed() && n.anchor.type === "element" && t.contains(document.activeElement)) {
2982
2981
  let i = n.anchor, a = i.getNode(), o = i.offset, s = !1, c = null;
2983
- if (o === a.getChildrenSize()) to(a.getChildAtIndex(o - 1)) && (s = !0);
2982
+ if (o === a.getChildrenSize()) no(a.getChildAtIndex(o - 1)) && (s = !0);
2984
2983
  else {
2985
2984
  let t = a.getChildAtIndex(o);
2986
- if (t !== null && to(t)) {
2985
+ if (t !== null && no(t)) {
2987
2986
  let n = t.getPreviousSibling();
2988
- (n === null || to(n)) && (s = !0, c = e.getElementByKey(t.__key));
2987
+ (n === null || no(n)) && (s = !0, c = e.getElementByKey(t.__key));
2989
2988
  }
2990
2989
  }
2991
2990
  if (s) {
@@ -2994,12 +2993,12 @@ function bi(e, t) {
2994
2993
  let t = e.theme, n = document.createElement("div");
2995
2994
  n.contentEditable = "false", n.setAttribute("data-lexical-cursor", "true");
2996
2995
  let r = t.blockCursor;
2997
- return r !== void 0 && (typeof r == "string" && (r = t.blockCursor = xs(r)), r !== void 0 && n.classList.add(...r)), n;
2996
+ return r !== void 0 && (typeof r == "string" && (r = t.blockCursor = Ss(r)), r !== void 0 && n.classList.add(...r)), n;
2998
2997
  }(e._config)), t.style.caretColor = "transparent", c === null ? n.appendChild(r) : n.insertBefore(r, c);
2999
2998
  return;
3000
2999
  }
3001
3000
  }
3002
- r !== null && no(r, e, t);
3001
+ r !== null && ro(r, e, t);
3003
3002
  })(e, r, s);
3004
3003
  } finally {
3005
3004
  p !== null && p.observe(r, ci), P = d, N = l;
@@ -3021,7 +3020,7 @@ function bi(e, t) {
3021
3020
  }(e, m, v, h, a), j(s) || s === null || o !== null && o.is(s) || e.dispatchCommand(ht, void 0);
3022
3021
  let b = e._pendingDecorators;
3023
3022
  b !== null && (e._decorators = b, e._pendingDecorators = null, xi("decorator", e, !0, b)), function(e, t, n) {
3024
- let r = ya(t), i = ya(n);
3023
+ let r = ba(t), i = ba(n);
3025
3024
  r !== i && xi("textcontent", e, !0, i);
3026
3025
  }(e, t || a, n), xi("update", e, !0, {
3027
3026
  dirtyElements: g,
@@ -3047,7 +3046,7 @@ function bi(e, t) {
3047
3046
  let n = t.shift();
3048
3047
  if (n) {
3049
3048
  let [t, r] = n;
3050
- Ci(e, t, r);
3049
+ wi(e, t, r);
3051
3050
  }
3052
3051
  }
3053
3052
  }(e);
@@ -3066,33 +3065,56 @@ function xi(e, t, n, ...r) {
3066
3065
  t._updating = i;
3067
3066
  }
3068
3067
  }
3069
- function Si(t, n) {
3068
+ function Si(e, t, n, r) {
3069
+ let i = wa(e), a;
3070
+ for (let e = 4; e >= 0; e--) for (let o = 0; o < i.length; o++) {
3071
+ let s = i[o];
3072
+ if (o > 0 && s._updating) {
3073
+ a = s;
3074
+ break;
3075
+ }
3076
+ let c = s._commands.get(t);
3077
+ if (c !== void 0) {
3078
+ let t = c[e];
3079
+ if (t !== void 0) {
3080
+ let e = Array.from(t), i = e.length, a = !1;
3081
+ if (R(s, () => {
3082
+ for (let t = 0; t < i; t++) if (e[t](n, r)) return void (a = !0);
3083
+ }), a) return a;
3084
+ }
3085
+ }
3086
+ }
3087
+ return a && a.update(() => {
3088
+ Si(a, t, n, r);
3089
+ }), !1;
3090
+ }
3091
+ function Ci(t, n) {
3070
3092
  let r = t._updates, i = n || !1;
3071
3093
  for (; r.length !== 0;) {
3072
3094
  let n = r.shift();
3073
3095
  if (n) {
3074
3096
  let [r, a] = n, o = t._pendingEditorState, s;
3075
- a !== void 0 && (s = a.onUpdate, a.skipTransforms && (i = !0), a.discrete && (o === null && e(191), o._flushSync = !0), s && t._deferred.push(s), gi(t, a.tag)), o == null ? Ci(t, r, a) : r();
3097
+ a !== void 0 && (s = a.onUpdate, a.skipTransforms && (i = !0), a.discrete && (o === null && e(191), o._flushSync = !0), s && t._deferred.push(s), gi(t, a.tag)), o == null ? wi(t, r, a) : r();
3076
3098
  }
3077
3099
  }
3078
3100
  return i;
3079
3101
  }
3080
- function Ci(t, n, r) {
3102
+ function wi(t, n, r) {
3081
3103
  let i = t._updateTags, a, o = !1, s = !1;
3082
3104
  r !== void 0 && (a = r.onUpdate, gi(t, r.tag), o = r.skipTransforms || !1, s = r.discrete || !1), a && t._deferred.push(a);
3083
3105
  let c = t._editorState, l = t._pendingEditorState, u = !1;
3084
- (l === null || l._readOnly) && (l = t._pendingEditorState = Ai(l || c), u = !0), l._flushSync = s;
3106
+ (l === null || l._readOnly) && (l = t._pendingEditorState = ji(l || c), u = !0), l._flushSync = s;
3085
3107
  let d = N, f = F, p = P, m = t._updating;
3086
3108
  N = l, F = !1, t._updating = !0, P = t;
3087
3109
  let h = t._headless || t.getRootElement() === null;
3088
- qi(null);
3110
+ Ji(null);
3089
3111
  try {
3090
3112
  u && (h ? c._selection !== null && (l._selection = c._selection.clone()) : l._selection = function(e, t) {
3091
3113
  let n = e.getEditorState()._selection, r = Y(J(e));
3092
3114
  return j(n) || n == null ? qr(n, r, e, t) : n.clone();
3093
3115
  }(t, r && r.event || null));
3094
3116
  let i = t._compositionKey;
3095
- n(), o = Si(t, o), function(e, t) {
3117
+ n(), o = Ci(t, o), function(e, t) {
3096
3118
  let n = t.getEditorState()._selection, r = e._selection;
3097
3119
  if (j(r)) {
3098
3120
  let e = r.anchor, t = r.focus, i;
@@ -3108,7 +3130,7 @@ function Ci(t, n, r) {
3108
3130
  k(t) && t.isAttached() && t.isSimpleText() && !t.isUnmergeable() && Fe(t);
3109
3131
  }
3110
3132
  }(l, t) : function(e, t) {
3111
- let n = t._dirtyLeaves, r = t._dirtyElements, i = e._nodeMap, a = ma(), o = /* @__PURE__ */ new Map(), s = n, c = s.size, l = r, u = l.size;
3133
+ let n = t._dirtyLeaves, r = t._dirtyElements, i = e._nodeMap, a = ha(), o = /* @__PURE__ */ new Map(), s = n, c = s.size, l = r, u = l.size;
3112
3134
  for (; c > 0 || u > 0;) {
3113
3135
  if (c > 0) {
3114
3136
  t._dirtyLeaves = /* @__PURE__ */ new Set();
@@ -3131,7 +3153,7 @@ function Ci(t, n, r) {
3131
3153
  s = t._dirtyLeaves, c = s.size, l = t._dirtyElements, u = l.size, si++;
3132
3154
  }
3133
3155
  t._dirtyLeaves = n, t._dirtyElements = r;
3134
- }(l, t), Si(t), function(e, t, n, r) {
3156
+ }(l, t), Ci(t), function(e, t, n, r) {
3135
3157
  let i = e._nodeMap, a = t._nodeMap, o = [];
3136
3158
  for (let [e] of r) {
3137
3159
  let t = a.get(e);
@@ -3160,14 +3182,14 @@ function Ci(t, n, r) {
3160
3182
  if (r.dirty || !r.is(n)) return !0;
3161
3183
  } else if (n !== null) return !0;
3162
3184
  return !1;
3163
- }(l, t) ? l._flushSync ? (l._flushSync = !1, bi(t)) : u && Zi(() => {
3185
+ }(l, t) ? l._flushSync ? (l._flushSync = !1, bi(t)) : u && Qi(() => {
3164
3186
  bi(t);
3165
3187
  }) : (l._flushSync = !1, u && (i.clear(), t._deferred = [], t._pendingEditorState = null));
3166
3188
  }
3167
3189
  function R(e, t, n) {
3168
- P === e && n === void 0 ? t() : Ci(e, t, n);
3190
+ P === e && n === void 0 ? t() : wi(e, t, n);
3169
3191
  }
3170
- var wi = class t {
3192
+ var Ti = class t {
3171
3193
  element;
3172
3194
  before;
3173
3195
  after;
@@ -3203,7 +3225,7 @@ var wi = class t {
3203
3225
  setManagedLineBreak(e) {
3204
3226
  if (e === null) this.removeManagedLineBreak();
3205
3227
  else {
3206
- let t = e === "decorator" && (f || c || s);
3228
+ let t = e === "decorator" && (f || s || l);
3207
3229
  this.insertManagedLineBreak(t);
3208
3230
  }
3209
3231
  }
@@ -3236,9 +3258,9 @@ var wi = class t {
3236
3258
  let t = this.getFirstChildOffset();
3237
3259
  return [e, Math.min(t + e.getChildrenSize(), Math.max(t, r))];
3238
3260
  }
3239
- let i = Ti(t, n);
3261
+ let i = Ei(t, n);
3240
3262
  i.push(r);
3241
- let a = Ti(t, this.element), o = e.getIndexWithinParent();
3263
+ let a = Ei(t, this.element), o = e.getIndexWithinParent();
3242
3264
  for (let e = 0; e < a.length; e++) {
3243
3265
  let t = i[e], n = a[e];
3244
3266
  if (t === void 0 || t < n) break;
@@ -3250,7 +3272,7 @@ var wi = class t {
3250
3272
  return [e.getParentOrThrow(), o];
3251
3273
  }
3252
3274
  };
3253
- function Ti(t, n) {
3275
+ function Ei(t, n) {
3254
3276
  let r = [], i = n;
3255
3277
  for (; i !== t && i !== null; i = i.parentNode) {
3256
3278
  let e = 0;
@@ -3259,7 +3281,7 @@ function Ti(t, n) {
3259
3281
  }
3260
3282
  return i !== t && e(225), r.reverse();
3261
3283
  }
3262
- var Ei = class extends D {
3284
+ var Di = class extends D {
3263
3285
  __first;
3264
3286
  __last;
3265
3287
  __size;
@@ -3414,7 +3436,7 @@ var Ei = class extends D {
3414
3436
  return (this.getTextFormat() & t) !== 0;
3415
3437
  }
3416
3438
  getFormatFlags(e, t) {
3417
- return la(this.getLatest().__textFormat, e, t);
3439
+ return ua(this.getLatest().__textFormat, e, t);
3418
3440
  }
3419
3441
  getTextStyle() {
3420
3442
  return this.getLatest().__textStyle;
@@ -3486,14 +3508,14 @@ var Ei = class extends D {
3486
3508
  for (let r = 0; r < n; r++) {
3487
3509
  t === null && e(100);
3488
3510
  let n = t.getNextSibling(), r = t.__key;
3489
- fa(t.getWritable()), c.push(r), t = n;
3511
+ pa(t.getWritable()), c.push(r), t = n;
3490
3512
  }
3491
3513
  }
3492
3514
  let f = u;
3493
3515
  for (let t of r) {
3494
3516
  f !== null && t.is(f) && (u = f = f.getPreviousSibling());
3495
3517
  let n = t.getWritable();
3496
- n.__parent === o && d--, fa(n);
3518
+ n.__parent === o && d--, pa(n);
3497
3519
  let r = t.__key;
3498
3520
  if (f === null) a.__first = r, n.__prev = null;
3499
3521
  else {
@@ -3514,13 +3536,13 @@ var Ei = class extends D {
3514
3536
  let e = M();
3515
3537
  if (j(e)) {
3516
3538
  let t = new Set(c), n = new Set(s), { anchor: r, focus: i } = e;
3517
- Di(r, t, n) && Zr(r, r.getNode(), this, u, l), Di(i, t, n) && Zr(i, i.getNode(), this, u, l), d !== 0 || this.canBeEmpty() || Xa(this) || this.remove();
3539
+ Oi(r, t, n) && Zr(r, r.getNode(), this, u, l), Oi(i, t, n) && Zr(i, i.getNode(), this, u, l), d !== 0 || this.canBeEmpty() || Za(this) || this.remove();
3518
3540
  }
3519
3541
  }
3520
3542
  return a;
3521
3543
  }
3522
3544
  getDOMSlot(e) {
3523
- return new wi(e);
3545
+ return new Ti(e);
3524
3546
  }
3525
3547
  exportDOM(e) {
3526
3548
  let { element: t } = super.exportDOM(e);
@@ -3540,7 +3562,7 @@ var Ei = class extends D {
3540
3562
  indent: this.getIndent(),
3541
3563
  ...super.exportJSON()
3542
3564
  }, t = this.getTextFormat(), n = this.getTextStyle();
3543
- return t === 0 && n === "" || Xa(this) || this.getChildren().some(k) || (t !== 0 && (e.textFormat = t), n !== "" && (e.textStyle = n)), e;
3565
+ return t === 0 && n === "" || Za(this) || this.getChildren().some(k) || (t !== 0 && (e.textFormat = t), n !== "" && (e.textStyle = n)), e;
3544
3566
  }
3545
3567
  updateFromJSON(e) {
3546
3568
  return super.updateFromJSON(e).setFormat(e.format).setIndent(e.indent).setDirection(e.direction).setTextFormat(e.textFormat || 0).setTextStyle(e.textStyle || "");
@@ -3596,9 +3618,9 @@ var Ei = class extends D {
3596
3618
  }
3597
3619
  };
3598
3620
  function z(e) {
3599
- return e instanceof Ei;
3621
+ return e instanceof Di;
3600
3622
  }
3601
- function Di(e, t, n) {
3623
+ function Oi(e, t, n) {
3602
3624
  let r = e.getNode();
3603
3625
  for (; r;) {
3604
3626
  let e = r.__key;
@@ -3607,7 +3629,7 @@ function Di(e, t, n) {
3607
3629
  }
3608
3630
  return !1;
3609
3631
  }
3610
- var Oi = class extends D {
3632
+ var ki = class extends D {
3611
3633
  decorate(e, t) {
3612
3634
  return null;
3613
3635
  }
@@ -3622,9 +3644,9 @@ var Oi = class extends D {
3622
3644
  }
3623
3645
  };
3624
3646
  function B(e) {
3625
- return e instanceof Oi;
3647
+ return e instanceof ki;
3626
3648
  }
3627
- var ki = class t extends Ei {
3649
+ var Ai = class t extends Di {
3628
3650
  __cachedText;
3629
3651
  static getType() {
3630
3652
  return "root";
@@ -3669,31 +3691,31 @@ var ki = class t extends Ei {
3669
3691
  }
3670
3692
  };
3671
3693
  function V(e) {
3672
- return e instanceof ki;
3694
+ return e instanceof Ai;
3673
3695
  }
3674
- function Ai(e) {
3675
- return new Pi(new Map(e._nodeMap));
3696
+ function ji(e) {
3697
+ return new Fi(new Map(e._nodeMap));
3676
3698
  }
3677
- function ji() {
3678
- return new Pi(new Map([["root", new ki()]]));
3699
+ function Mi() {
3700
+ return new Fi(new Map([["root", new Ai()]]));
3679
3701
  }
3680
- function Mi(t) {
3702
+ function Ni(t) {
3681
3703
  let n = t.exportJSON(), r = t.constructor;
3682
3704
  if (n.type !== r.getType() && e(130, r.name), z(t)) {
3683
3705
  let i = n.children;
3684
3706
  Array.isArray(i) || e(59, r.name);
3685
3707
  let a = t.getChildren();
3686
3708
  for (let e = 0; e < a.length; e++) {
3687
- let t = Mi(a[e]);
3709
+ let t = Ni(a[e]);
3688
3710
  i.push(t);
3689
3711
  }
3690
3712
  }
3691
3713
  return n;
3692
3714
  }
3693
- function Ni(e) {
3694
- return e instanceof Pi;
3715
+ function Pi(e) {
3716
+ return e instanceof Fi;
3695
3717
  }
3696
- var Pi = class e {
3718
+ var Fi = class e {
3697
3719
  _nodeMap;
3698
3720
  _selection;
3699
3721
  _flushSync;
@@ -3712,16 +3734,16 @@ var Pi = class e {
3712
3734
  return n._readOnly = !0, n;
3713
3735
  }
3714
3736
  toJSON() {
3715
- return yi(null, this, () => ({ root: Mi(W()) }));
3737
+ return yi(null, this, () => ({ root: Ni(W()) }));
3716
3738
  }
3717
- }, Fi = class extends Ei {
3739
+ }, Ii = class extends Di {
3718
3740
  static getType() {
3719
3741
  return "artificial";
3720
3742
  }
3721
3743
  createDOM(e) {
3722
3744
  return document.createElement("div");
3723
3745
  }
3724
- }, Ii = class e extends Ei {
3746
+ }, Li = class e extends Di {
3725
3747
  static getType() {
3726
3748
  return "paragraph";
3727
3749
  }
@@ -3729,7 +3751,7 @@ var Pi = class e {
3729
3751
  return new e(t.__key);
3730
3752
  }
3731
3753
  createDOM(e) {
3732
- let t = document.createElement("p"), n = Ia(e.theme, "paragraph");
3754
+ let t = document.createElement("p"), n = La(e.theme, "paragraph");
3733
3755
  return n !== void 0 && t.classList.add(...n), t;
3734
3756
  }
3735
3757
  updateDOM(e, t, n) {
@@ -3737,7 +3759,7 @@ var Pi = class e {
3737
3759
  }
3738
3760
  static importDOM() {
3739
3761
  return { p: (e) => ({
3740
- conversion: Li,
3762
+ conversion: Ri,
3741
3763
  priority: 0
3742
3764
  }) };
3743
3765
  }
@@ -3751,7 +3773,7 @@ var Pi = class e {
3751
3773
  return { element: t };
3752
3774
  }
3753
3775
  static importJSON(e) {
3754
- return Ri().updateFromJSON(e);
3776
+ return zi().updateFromJSON(e);
3755
3777
  }
3756
3778
  exportJSON() {
3757
3779
  let e = super.exportJSON();
@@ -3762,7 +3784,7 @@ var Pi = class e {
3762
3784
  return e;
3763
3785
  }
3764
3786
  insertNewAfter(e, t) {
3765
- let n = Ri();
3787
+ let n = zi();
3766
3788
  n.setTextFormat(e.format), n.setTextStyle(e.style);
3767
3789
  let r = this.getDirection();
3768
3790
  return n.setDirection(r), n.setFormat(this.getFormatType()), n.setStyle(this.getStyle()), this.insertAfter(n, t), n;
@@ -3776,30 +3798,30 @@ var Pi = class e {
3776
3798
  return !1;
3777
3799
  }
3778
3800
  };
3779
- function Li(e) {
3780
- let t = Ri();
3781
- if (e.style && (t.setFormat(e.style.textAlign), _o(e, t)), t.getFormatType() === "") {
3801
+ function Ri(e) {
3802
+ let t = zi();
3803
+ if (e.style && (t.setFormat(e.style.textAlign), vo(e, t)), t.getFormatType() === "") {
3782
3804
  let n = e.getAttribute("align");
3783
3805
  n && n && n in ie && t.setFormat(n);
3784
3806
  }
3785
3807
  return { node: t };
3786
3808
  }
3787
- function Ri() {
3788
- return Qa(new Ii());
3809
+ function zi() {
3810
+ return $a(new Li());
3789
3811
  }
3790
- function zi(e) {
3791
- return e instanceof Ii;
3812
+ function Bi(e) {
3813
+ return e instanceof Li;
3792
3814
  }
3793
- function Bi(e, t, n, r) {
3815
+ function Vi(e, t, n, r) {
3794
3816
  let i = e._keyToDOMMap;
3795
- i.clear(), e._editorState = ji(), e._pendingEditorState = r, e._compositionKey = null, e._dirtyType = 0, e._cloneNotNeeded.clear(), e._dirtyLeaves = /* @__PURE__ */ new Set(), e._dirtyElements.clear(), e._normalizedNodes = /* @__PURE__ */ new Set(), e._updateTags = /* @__PURE__ */ new Set(), e._updates = [], e._blockCursorElement = null;
3817
+ i.clear(), e._editorState = Mi(), e._pendingEditorState = r, e._compositionKey = null, e._dirtyType = 0, e._cloneNotNeeded.clear(), e._dirtyLeaves = /* @__PURE__ */ new Set(), e._dirtyElements.clear(), e._normalizedNodes = /* @__PURE__ */ new Set(), e._updateTags = /* @__PURE__ */ new Set(), e._updates = [], e._blockCursorElement = null;
3796
3818
  let a = e._observer;
3797
3819
  a !== null && (a.disconnect(), e._observer = null), t !== null && (t.textContent = ""), n !== null && (n.textContent = "", i.set("root", n));
3798
3820
  }
3799
- function Vi(e) {
3821
+ function Hi(e) {
3800
3822
  let t = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set(), r = e;
3801
3823
  for (; r;) {
3802
- let { ownNodeConfig: e } = xo(r), i = r.transform;
3824
+ let { ownNodeConfig: e } = So(r), i = r.transform;
3803
3825
  if (!n.has(i)) {
3804
3826
  n.add(i);
3805
3827
  let e = r.transform();
@@ -3815,14 +3837,14 @@ function Vi(e) {
3815
3837
  }
3816
3838
  return t;
3817
3839
  }
3818
- function Hi(e) {
3819
- let t = e || {}, n = pi(), r = t.theme || {}, i = e === void 0 ? n : t.parentEditor || null, a = t.disableEvents || !1, o = ji(), s = t.namespace || (i === null ? wa() : i._config.namespace), c = t.editorState, l = [
3820
- ki,
3840
+ function Ui(e) {
3841
+ let t = e || {}, n = pi(), r = t.theme || {}, i = e === void 0 ? n : t.parentEditor || null, a = t.disableEvents || !1, o = Mi(), s = t.namespace || (i === null ? Ta() : i._config.namespace), c = t.editorState, l = [
3842
+ Ai,
3821
3843
  mr,
3822
3844
  rr,
3823
3845
  wr,
3846
+ Li,
3824
3847
  Ii,
3825
- Fi,
3826
3848
  ...t.nodes || []
3827
3849
  ], { onError: u, html: d } = t, f = t.editable === void 0 || t.editable, p;
3828
3850
  if (e === void 0 && n !== null) p = n._nodes;
@@ -3834,8 +3856,8 @@ function Hi(e) {
3834
3856
  let e = t;
3835
3857
  t = e.replace, n = e.with, r = e.withKlass || null;
3836
3858
  }
3837
- xo(t);
3838
- let i = t.getType(), a = Vi(t);
3859
+ So(t);
3860
+ let i = t.getType(), a = Hi(t);
3839
3861
  p.set(i, {
3840
3862
  exportDOM: d && d.export ? d.export.get(t) : void 0,
3841
3863
  klass: t,
@@ -3846,7 +3868,7 @@ function Hi(e) {
3846
3868
  });
3847
3869
  }
3848
3870
  }
3849
- let m = new Gi(o, i, p, {
3871
+ let m = new Ki(o, i, p, {
3850
3872
  disableEvents: a,
3851
3873
  namespace: s,
3852
3874
  theme: r
@@ -3869,14 +3891,14 @@ function Hi(e) {
3869
3891
  e.registerCommand(vt, Nn, 0), e.registerCommand(yt, Pn, 0), e.registerCommand(bt, Fn, 0), e.registerCommand(xt, In, 0), e.registerCommand(Nt, Rn, 0);
3870
3892
  }(m), m;
3871
3893
  }
3872
- function Ui(e, t) {
3894
+ function Wi(e, t) {
3873
3895
  let n = e.get(t);
3874
3896
  e.delete(t), n && n();
3875
3897
  }
3876
- function Wi(e, t, n) {
3877
- return e.set(t, n), Ui.bind(null, e, t);
3898
+ function Gi(e, t, n) {
3899
+ return e.set(t, n), Wi.bind(null, e, t);
3878
3900
  }
3879
- var Gi = class {
3901
+ var Ki = class {
3880
3902
  static version;
3881
3903
  _headless;
3882
3904
  _parentEditor;
@@ -3916,26 +3938,26 @@ var Gi = class {
3916
3938
  root: /* @__PURE__ */ new Map(),
3917
3939
  textcontent: /* @__PURE__ */ new Map(),
3918
3940
  update: /* @__PURE__ */ new Map()
3919
- }, this._commands = /* @__PURE__ */ new Map(), this._config = r, this._nodes = n, this._decorators = {}, this._pendingDecorators = null, this._dirtyType = 0, this._cloneNotNeeded = /* @__PURE__ */ new Set(), this._dirtyLeaves = /* @__PURE__ */ new Set(), this._dirtyElements = /* @__PURE__ */ new Map(), this._normalizedNodes = /* @__PURE__ */ new Set(), this._updateTags = /* @__PURE__ */ new Set(), this._observer = null, this._key = wa(), this._onError = i, this._htmlConversions = a, this._editable = o, this._headless = t !== null && t._headless, this._window = null, this._blockCursorElement = null;
3941
+ }, this._commands = /* @__PURE__ */ new Map(), this._config = r, this._nodes = n, this._decorators = {}, this._pendingDecorators = null, this._dirtyType = 0, this._cloneNotNeeded = /* @__PURE__ */ new Set(), this._dirtyLeaves = /* @__PURE__ */ new Set(), this._dirtyElements = /* @__PURE__ */ new Map(), this._normalizedNodes = /* @__PURE__ */ new Set(), this._updateTags = /* @__PURE__ */ new Set(), this._observer = null, this._key = Ta(), this._onError = i, this._htmlConversions = a, this._editable = o, this._headless = t !== null && t._headless, this._window = null, this._blockCursorElement = null;
3920
3942
  }
3921
3943
  isComposing() {
3922
3944
  return this._compositionKey != null;
3923
3945
  }
3924
3946
  registerUpdateListener(e) {
3925
- return Wi(this._listeners.update, e);
3947
+ return Gi(this._listeners.update, e);
3926
3948
  }
3927
3949
  registerEditableListener(e) {
3928
- return Wi(this._listeners.editable, e);
3950
+ return Gi(this._listeners.editable, e);
3929
3951
  }
3930
3952
  registerDecoratorListener(e) {
3931
- return Wi(this._listeners.decorator, e);
3953
+ return Gi(this._listeners.decorator, e);
3932
3954
  }
3933
3955
  registerTextContentListener(e) {
3934
- return Wi(this._listeners.textcontent, e);
3956
+ return Gi(this._listeners.textcontent, e);
3935
3957
  }
3936
3958
  registerRootListener(e) {
3937
3959
  let t = this._listeners.root;
3938
- return ws(Wi(t, e, e(this._rootElement, null) || void 0), () => function(e, t, n) {
3960
+ return Ts(Gi(t, e, e(this._rootElement, null) || void 0), () => function(e, t, n) {
3939
3961
  let r = e.get(t);
3940
3962
  r && r(), e.set(t, t(...n) || void 0);
3941
3963
  }(t, e, [null, this._rootElement]));
@@ -3974,7 +3996,7 @@ var Gi = class {
3974
3996
  return e;
3975
3997
  }
3976
3998
  initializeMutationListener(e, t) {
3977
- let n = this._editorState, r = mo(n).get(t.getType());
3999
+ let n = this._editorState, r = ho(n).get(t.getType());
3978
4000
  if (!r) return;
3979
4001
  let i = /* @__PURE__ */ new Map();
3980
4002
  for (let e of r.keys()) i.set(e, "created");
@@ -3995,7 +4017,7 @@ var Gi = class {
3995
4017
  r.push(e);
3996
4018
  }
3997
4019
  return function(e, t) {
3998
- let n = mo(e.getEditorState()), r = [];
4020
+ let n = ho(e.getEditorState()), r = [];
3999
4021
  for (let e of t) {
4000
4022
  let t = n.get(e);
4001
4023
  t && r.push(t);
@@ -4031,9 +4053,9 @@ var Gi = class {
4031
4053
  setRootElement(e) {
4032
4054
  let t = this._rootElement;
4033
4055
  if (e !== t) {
4034
- let n = Ia(this._config.theme, "root"), r = this._pendingEditorState || this._editorState;
4035
- if (this._rootElement = e, Bi(this, t, e, r), t !== null && (this._config.disableEvents || Wn(t), n != null && t.classList.remove(...n)), e !== null) {
4036
- let t = qa(e), r = e.style;
4056
+ let n = La(this._config.theme, "root"), r = this._pendingEditorState || this._editorState;
4057
+ if (this._rootElement = e, Vi(this, t, e, r), t !== null && (this._config.disableEvents || Wn(t), n != null && t.classList.remove(...n)), e !== null) {
4058
+ let t = Ja(e), r = e.style;
4037
4059
  r.userSelect = "text", r.whiteSpace = "pre-wrap", r.wordBreak = "break-word", e.setAttribute("data-lexical-editor", "true"), this._window = t, this._dirtyType = 2, ye(this), this._updateTags.add(Zn), bi(this), this._config.disableEvents || function(e, t) {
4038
4060
  let n = e.ownerDocument;
4039
4061
  _n.set(e, n);
@@ -4077,14 +4099,14 @@ var Gi = class {
4077
4099
  setEditorState(t, n) {
4078
4100
  t.isEmpty() && e(38);
4079
4101
  let r = t;
4080
- r._readOnly && (r = Ai(t), r._selection = t._selection ? t._selection.clone() : null), ve(this);
4102
+ r._readOnly && (r = ji(t), r._selection = t._selection ? t._selection.clone() : null), ve(this);
4081
4103
  let i = this._pendingEditorState, a = this._updateTags, o = n === void 0 ? null : n.tag;
4082
4104
  i === null || i.isEmpty() || (o != null && a.add(o), bi(this)), this._pendingEditorState = r, this._dirtyType = 2, this._dirtyElements.set("root", !1), this._compositionKey = null, o != null && a.add(o), this._updating || bi(this);
4083
4105
  }
4084
4106
  parseEditorState(e, t) {
4085
4107
  return function(e, t, n) {
4086
- let r = ji(), i = N, a = F, o = P, s = t._dirtyElements, c = t._dirtyLeaves, l = t._cloneNotNeeded, u = t._dirtyType;
4087
- t._dirtyElements = /* @__PURE__ */ new Map(), t._dirtyLeaves = /* @__PURE__ */ new Set(), t._cloneNotNeeded = /* @__PURE__ */ new Set(), t._dirtyType = 0, N = r, F = !1, P = t, qi(null);
4108
+ let r = Mi(), i = N, a = F, o = P, s = t._dirtyElements, c = t._dirtyLeaves, l = t._cloneNotNeeded, u = t._dirtyType;
4109
+ t._dirtyElements = /* @__PURE__ */ new Map(), t._dirtyLeaves = /* @__PURE__ */ new Set(), t._cloneNotNeeded = /* @__PURE__ */ new Set(), t._dirtyType = 0, N = r, F = !1, P = t, Ji(null);
4088
4110
  try {
4089
4111
  let i = t._nodes;
4090
4112
  vi(e.root, i), n && n(), r._readOnly = !0;
@@ -4101,14 +4123,14 @@ var Gi = class {
4101
4123
  }
4102
4124
  update(e, t) {
4103
4125
  (function(e, t, n) {
4104
- e._updating ? e._updates.push([t, n]) : Ci(e, t, n);
4126
+ e._updating ? e._updates.push([t, n]) : wi(e, t, n);
4105
4127
  })(this, e, t);
4106
4128
  }
4107
4129
  focus(e, t = {}) {
4108
4130
  let n = this._rootElement;
4109
4131
  n !== null && (n.setAttribute("autocapitalize", "off"), R(this, () => {
4110
4132
  let r = M(), i = W();
4111
- r === null ? i.getChildrenSize() !== 0 && (t.defaultSelection === "rootStart" ? i.selectStart() : i.selectEnd()) : r.dirty || G(r.clone()), Wa("focus"), Ga(() => {
4133
+ r === null ? i.getChildrenSize() !== 0 && (t.defaultSelection === "rootStart" ? i.selectStart() : i.selectEnd()) : r.dirty || G(r.clone()), Ga("focus"), Ka(() => {
4112
4134
  n.removeAttribute("autocapitalize"), e && e();
4113
4135
  });
4114
4136
  }), this._pendingEditorState === null && n.removeAttribute("autocapitalize"));
@@ -4129,101 +4151,101 @@ var Gi = class {
4129
4151
  return { editorState: this._editorState.toJSON() };
4130
4152
  }
4131
4153
  };
4132
- Gi.version = "0.42.0+prod.esm";
4133
- var Ki = null;
4134
- function qi(e) {
4135
- Ki = e;
4136
- }
4137
- var Ji = 1;
4138
- function Yi(t, n) {
4139
- let r = Xi(t, n);
4154
+ Ki.version = "0.43.0+prod.esm";
4155
+ var qi = null;
4156
+ function Ji(e) {
4157
+ qi = e;
4158
+ }
4159
+ var Yi = 1;
4160
+ function Xi(t, n) {
4161
+ let r = Zi(t, n);
4140
4162
  return r === void 0 && e(30, n), r;
4141
4163
  }
4142
- function Xi(e, t) {
4164
+ function Zi(e, t) {
4143
4165
  return e._nodes.get(t);
4144
4166
  }
4145
- var Zi = typeof queueMicrotask == "function" ? queueMicrotask : (e) => {
4167
+ var Qi = typeof queueMicrotask == "function" ? queueMicrotask : (e) => {
4146
4168
  Promise.resolve().then(e);
4147
4169
  };
4148
- function Qi(e) {
4149
- return B(_a(e));
4150
- }
4151
4170
  function $i(e) {
4171
+ return B(va(e));
4172
+ }
4173
+ function ea(e) {
4152
4174
  let t = document.activeElement;
4153
4175
  if (!X(t)) return !1;
4154
4176
  let n = t.nodeName;
4155
- return B(_a(e)) && (n === "INPUT" || n === "TEXTAREA" || t.contentEditable === "true" && ra(t) == null);
4177
+ return B(va(e)) && (n === "INPUT" || n === "TEXTAREA" || t.contentEditable === "true" && ia(t) == null);
4156
4178
  }
4157
- function ea(e, t, n) {
4179
+ function ta(e, t, n) {
4158
4180
  let r = e.getRootElement();
4159
4181
  try {
4160
- return r !== null && r.contains(t) && r.contains(n) && t !== null && !$i(t) && na(t) === e;
4182
+ return r !== null && r.contains(t) && r.contains(n) && t !== null && !ea(t) && ra(t) === e;
4161
4183
  } catch {
4162
4184
  return !1;
4163
4185
  }
4164
4186
  }
4165
- function ta(e) {
4166
- return e instanceof Gi;
4167
- }
4168
4187
  function na(e) {
4188
+ return e instanceof Ki;
4189
+ }
4190
+ function ra(e) {
4169
4191
  let t = e;
4170
4192
  for (; t != null;) {
4171
- let e = ra(t);
4172
- if (ta(e)) return e;
4173
- t = Ha(t);
4193
+ let e = ia(t);
4194
+ if (na(e)) return e;
4195
+ t = Ua(t);
4174
4196
  }
4175
4197
  return null;
4176
4198
  }
4177
- function ra(e) {
4178
- return e ? e.__lexicalEditor : null;
4179
- }
4180
4199
  function ia(e) {
4181
- return Er(e) || e.isToken();
4200
+ return e ? e.__lexicalEditor : null;
4182
4201
  }
4183
4202
  function aa(e) {
4184
- return ia(e) || e.isSegmented();
4203
+ return Er(e) || e.isToken();
4185
4204
  }
4186
4205
  function oa(e) {
4187
- return ao(e) && e.nodeType === 3;
4206
+ return aa(e) || e.isSegmented();
4188
4207
  }
4189
4208
  function sa(e) {
4190
- return ao(e) && e.nodeType === 9;
4209
+ return oo(e) && e.nodeType === 3;
4191
4210
  }
4192
4211
  function ca(e) {
4212
+ return oo(e) && e.nodeType === 9;
4213
+ }
4214
+ function la(e) {
4193
4215
  let t = e;
4194
4216
  for (; t != null;) {
4195
- if (oa(t)) return t;
4217
+ if (sa(t)) return t;
4196
4218
  t = t.firstChild;
4197
4219
  }
4198
4220
  return null;
4199
4221
  }
4200
- function la(e, t, n) {
4222
+ function ua(e, t, n) {
4201
4223
  let r = S[t];
4202
4224
  if (n !== null && (e & r) === (n & r)) return e;
4203
4225
  let i = e ^ r;
4204
4226
  return t === "subscript" ? i &= ~S.superscript : t === "superscript" ? i &= ~S.subscript : t === "lowercase" ? (i &= ~S.uppercase, i &= ~S.capitalize) : t === "uppercase" ? (i &= ~S.lowercase, i &= ~S.capitalize) : t === "capitalize" && (i &= ~S.lowercase, i &= ~S.uppercase), i;
4205
4227
  }
4206
- function ua(e) {
4228
+ function da(e) {
4207
4229
  return k(e) || or(e) || B(e);
4208
4230
  }
4209
- function da(e, t) {
4231
+ function fa(e, t) {
4210
4232
  let n = function() {
4211
- let e = Ki;
4212
- return Ki = null, e;
4233
+ let e = qi;
4234
+ return qi = null, e;
4213
4235
  }();
4214
4236
  if ((t ||= n && n.__key) != null) return void (e.__key = t);
4215
4237
  I(), ui();
4216
- let r = L(), i = di(), a = "" + Ji++;
4238
+ let r = L(), i = di(), a = "" + Yi++;
4217
4239
  i._nodeMap.set(a, e), z(e) ? r._dirtyElements.set(a, !0) : r._dirtyLeaves.add(a), r._cloneNotNeeded.add(a), r._dirtyType = 1, e.__key = a;
4218
4240
  }
4219
- function fa(e) {
4241
+ function pa(e) {
4220
4242
  let t = e.getParent();
4221
4243
  if (t !== null) {
4222
4244
  let n = e.getWritable(), r = t.getWritable(), i = e.getPreviousSibling(), a = e.getNextSibling(), o = a === null ? null : a.__key, s = i === null ? null : i.__key, c = i === null ? null : i.getWritable(), l = a === null ? null : a.getWritable();
4223
4245
  i === null && (r.__first = o), a === null && (r.__last = s), c !== null && (c.__next = o), l !== null && (l.__prev = s), n.__prev = null, n.__next = null, n.__parent = null, r.__size--;
4224
4246
  }
4225
4247
  }
4226
- function pa(t) {
4248
+ function ma(t) {
4227
4249
  ui(), Jn(t) && e(323, t.__key, t.__type);
4228
4250
  let n = t.getLatest(), r = n.__parent, i = di(), a = L(), o = i._nodeMap, s = a._dirtyElements;
4229
4251
  r !== null && function(e, t, n) {
@@ -4252,40 +4274,40 @@ function H(e) {
4252
4274
  }
4253
4275
  }
4254
4276
  }
4255
- function ma() {
4277
+ function ha() {
4256
4278
  return li() ? null : L()._compositionKey;
4257
4279
  }
4258
4280
  function U(e, t) {
4259
4281
  let n = (t || di())._nodeMap.get(e);
4260
4282
  return n === void 0 ? null : n;
4261
4283
  }
4262
- function ha(e, t) {
4263
- let n = ga(e, L());
4284
+ function ga(e, t) {
4285
+ let n = _a(e, L());
4264
4286
  return n === void 0 ? null : U(n, t);
4265
4287
  }
4266
- function ga(e, t) {
4288
+ function _a(e, t) {
4267
4289
  return e[`__lexicalKey_${t._key}`];
4268
4290
  }
4269
- function _a(e, t) {
4291
+ function va(e, t) {
4270
4292
  let n = e;
4271
4293
  for (; n != null;) {
4272
- let e = ha(n, t);
4294
+ let e = ga(n, t);
4273
4295
  if (e !== null) return e;
4274
- n = Ha(n);
4296
+ n = Ua(n);
4275
4297
  }
4276
4298
  return null;
4277
4299
  }
4278
- function va(e) {
4300
+ function ya(e) {
4279
4301
  let t = e._decorators, n = Object.assign({}, t);
4280
4302
  return e._pendingDecorators = n, n;
4281
4303
  }
4282
- function ya(e) {
4304
+ function ba(e) {
4283
4305
  return e.read(() => W().getTextContent());
4284
4306
  }
4285
4307
  function W() {
4286
- return ba(di());
4308
+ return xa(di());
4287
4309
  }
4288
- function ba(e) {
4310
+ function xa(e) {
4289
4311
  return e._nodeMap.get("root");
4290
4312
  }
4291
4313
  function G(e) {
@@ -4293,59 +4315,59 @@ function G(e) {
4293
4315
  let t = di();
4294
4316
  e !== null && (e.dirty = !0, e.setCachedNodes(null)), t._selection = e;
4295
4317
  }
4296
- function xa(e) {
4318
+ function Sa(e) {
4297
4319
  let t = L(), n = function(e, t) {
4298
4320
  let n = e;
4299
4321
  for (; n != null;) {
4300
- let e = ga(n, t);
4322
+ let e = _a(n, t);
4301
4323
  if (e !== void 0) return e;
4302
- n = Ha(n);
4324
+ n = Ua(n);
4303
4325
  }
4304
4326
  return null;
4305
4327
  }(e, t);
4306
4328
  return n === null ? e === t.getRootElement() ? U("root") : null : U(n);
4307
4329
  }
4308
- function Sa(e) {
4330
+ function Ca(e) {
4309
4331
  return /[\uD800-\uDBFF][\uDC00-\uDFFF]/g.test(e);
4310
4332
  }
4311
- function Ca(e) {
4333
+ function wa(e) {
4312
4334
  let t = [];
4313
- for (let n = e; n !== null; n = n._updating ? null : n._parentEditor) t.push(n);
4335
+ for (let n = e; n !== null; n = n._parentEditor) t.push(n);
4314
4336
  return t;
4315
4337
  }
4316
- function wa() {
4338
+ function Ta() {
4317
4339
  return Math.random().toString(36).replace(/[^a-z]+/g, "").substring(0, 5);
4318
4340
  }
4319
- function Ta(e) {
4320
- return oa(e) ? e.nodeValue : null;
4341
+ function Ea(e) {
4342
+ return sa(e) ? e.nodeValue : null;
4321
4343
  }
4322
- function Ea(e, t, n) {
4344
+ function Da(e, t, n) {
4323
4345
  let r = Y(J(t));
4324
4346
  if (r === null) return;
4325
4347
  let i = r.anchorNode, { anchorOffset: a, focusOffset: o } = r;
4326
4348
  if (i !== null) {
4327
- let t = Ta(i), r = _a(i);
4349
+ let t = Ea(i), r = va(i);
4328
4350
  if (t !== null && k(r)) {
4329
4351
  if ((t === x || t === ne) && n) {
4330
4352
  let e = n.length;
4331
4353
  t = n, a = e, o = e;
4332
4354
  }
4333
- t !== null && Da(r, t, a, o, e);
4355
+ t !== null && Oa(r, t, a, o, e);
4334
4356
  }
4335
4357
  }
4336
4358
  }
4337
- function Da(e, t, n, r, i) {
4359
+ function Oa(e, t, n, r, i) {
4338
4360
  let a = e;
4339
4361
  if (a.isAttached() && (i || !a.isDirty())) {
4340
- let o = a.isComposing(), l = t;
4341
- if ((o || i) && (t.endsWith(x) && (l = t.slice(0, -x.length)), i)) {
4362
+ let o = a.isComposing(), c = t;
4363
+ if ((o || i) && (t.endsWith(x) && (c = t.slice(0, -x.length)), i)) {
4342
4364
  let e = ne, t;
4343
- for (; (t = l.indexOf(e)) !== -1;) l = l.slice(0, t) + l.slice(t + e.length), n !== null && n > t && (n = Math.max(t, n - e.length)), r !== null && r > t && (r = Math.max(t, r - e.length));
4365
+ for (; (t = c.indexOf(e)) !== -1;) c = c.slice(0, t) + c.slice(t + e.length), n !== null && n > t && (n = Math.max(t, n - e.length)), r !== null && r > t && (r = Math.max(t, r - e.length));
4344
4366
  }
4345
4367
  let u = a.getTextContent();
4346
- if (i || l !== u) {
4347
- if (l === "") {
4348
- if (H(null), s || c || f) a.remove();
4368
+ if (i || c !== u) {
4369
+ if (c === "") {
4370
+ if (H(null), l || s || f) a.remove();
4349
4371
  else {
4350
4372
  let e = L();
4351
4373
  setTimeout(() => {
@@ -4356,55 +4378,55 @@ function Da(e, t, n, r, i) {
4356
4378
  }
4357
4379
  return;
4358
4380
  }
4359
- let t = a.getParent(), i = Jr(), u = a.getTextContentSize(), d = ma(), p = a.getKey();
4381
+ let t = a.getParent(), i = Jr(), u = a.getTextContentSize(), d = ha(), p = a.getKey();
4360
4382
  if (a.isToken() || d !== null && p === d && !o || j(i) && (t !== null && !t.canInsertTextBefore() && i.anchor.offset === 0 || i.anchor.key === e.__key && i.anchor.offset === 0 && !a.canInsertTextBefore() && !o || i.focus.key === e.__key && i.focus.offset === u && !a.canInsertTextAfter() && !o)) return void a.markDirty();
4361
4383
  let m = M();
4362
- if (!j(m) || n === null || r === null) return void Oa(a, l, m);
4384
+ if (!j(m) || n === null || r === null) return void ka(a, c, m);
4363
4385
  if (m.setTextNodeRange(a, n, a, r), a.isSegmented()) {
4364
4386
  let e = O(a.getTextContent());
4365
4387
  a.replace(e), a = e;
4366
4388
  }
4367
- Oa(a, l, m);
4389
+ ka(a, c, m);
4368
4390
  }
4369
4391
  }
4370
4392
  }
4371
- function Oa(e, t, n) {
4393
+ function ka(e, t, n) {
4372
4394
  if (e.setTextContent(t), j(n)) {
4373
4395
  let t = e.getKey();
4374
4396
  for (let r of ["anchor", "focus"]) {
4375
4397
  let i = n[r];
4376
- i.type === "text" && i.key === t && (i.offset = Ro(e, i.offset, "clamp"));
4398
+ i.type === "text" && i.key === t && (i.offset = zo(e, i.offset, "clamp"));
4377
4399
  }
4378
4400
  }
4379
4401
  }
4380
- function ka(e, t, n) {
4402
+ function Aa(e, t, n) {
4381
4403
  let r = t[n] || !1;
4382
4404
  return r === "any" || r === e[n];
4383
4405
  }
4384
- function Aa(e, t) {
4385
- return ka(e, t, "altKey") && ka(e, t, "ctrlKey") && ka(e, t, "shiftKey") && ka(e, t, "metaKey");
4406
+ function ja(e, t) {
4407
+ return Aa(e, t, "altKey") && Aa(e, t, "ctrlKey") && Aa(e, t, "shiftKey") && Aa(e, t, "metaKey");
4386
4408
  }
4387
4409
  function K(e, t, n) {
4388
- if (!Aa(e, n)) return !1;
4410
+ if (!ja(e, n)) return !1;
4389
4411
  if (e.key.toLowerCase() === t.toLowerCase()) return !0;
4390
4412
  if (t.length > 1 || e.key.length === 1 && e.key.charCodeAt(0) <= 127) return !1;
4391
4413
  let r = "Key" + t.toUpperCase();
4392
4414
  return e.code === r;
4393
4415
  }
4394
- var ja = {
4416
+ var Ma = {
4395
4417
  ctrlKey: !i,
4396
4418
  metaKey: i
4397
- }, Ma = {
4419
+ }, Na = {
4398
4420
  altKey: i,
4399
4421
  ctrlKey: !i
4400
4422
  };
4401
- function Na(e) {
4402
- return e.key === "Backspace";
4403
- }
4404
4423
  function Pa(e) {
4405
- return K(e, "a", ja);
4424
+ return e.key === "Backspace";
4406
4425
  }
4407
4426
  function Fa(e) {
4427
+ return K(e, "a", Ma);
4428
+ }
4429
+ function Ia(e) {
4408
4430
  let t = W();
4409
4431
  if (j(e)) {
4410
4432
  let t = e.anchor, n = e.focus, r = t.getNode().getTopLevelElementOrThrow().getParentOrThrow();
@@ -4415,18 +4437,18 @@ function Fa(e) {
4415
4437
  return G(Ie(e)), e;
4416
4438
  }
4417
4439
  }
4418
- function Ia(e, t) {
4440
+ function La(e, t) {
4419
4441
  e.__lexicalClassNameCache === void 0 && (e.__lexicalClassNameCache = {});
4420
4442
  let n = e.__lexicalClassNameCache, r = n[t];
4421
4443
  if (r !== void 0) return r;
4422
4444
  let i = e[t];
4423
4445
  if (typeof i == "string") {
4424
- let e = xs(i);
4446
+ let e = Ss(i);
4425
4447
  return n[t] = e, e;
4426
4448
  }
4427
4449
  return i;
4428
4450
  }
4429
- function La(t, n, r, i, a) {
4451
+ function Ra(t, n, r, i, a) {
4430
4452
  if (r.size === 0) return;
4431
4453
  let o = i.__type, s = i.__key, c = n.get(o);
4432
4454
  c === void 0 && e(33, o);
@@ -4435,62 +4457,47 @@ function La(t, n, r, i, a) {
4435
4457
  let d = u.get(s), f = d === "destroyed" && a === "created";
4436
4458
  (d === void 0 || f) && u.set(s, f ? "updated" : a);
4437
4459
  }
4438
- function Ra(e, t, n) {
4460
+ function za(e, t, n) {
4439
4461
  let r = e.getParent(), i = n, a = e;
4440
4462
  return r !== null && (t && n === 0 ? (i = a.getIndexWithinParent(), a = r) : t || n !== a.getChildrenSize() || (i = a.getIndexWithinParent() + 1, a = r)), a.getChildAtIndex(t ? i - 1 : i);
4441
4463
  }
4442
- function za(e, t) {
4464
+ function Ba(e, t) {
4443
4465
  let n = e.offset;
4444
- if (e.type === "element") return Ra(e.getNode(), t, n);
4466
+ if (e.type === "element") return za(e.getNode(), t, n);
4445
4467
  {
4446
4468
  let r = e.getNode();
4447
4469
  if (t && n === 0 || !t && n === r.getTextContentSize()) {
4448
4470
  let e = t ? r.getPreviousSibling() : r.getNextSibling();
4449
- return e === null ? Ra(r.getParentOrThrow(), t, r.getIndexWithinParent() + (t ? 0 : 1)) : e;
4471
+ return e === null ? za(r.getParentOrThrow(), t, r.getIndexWithinParent() + +!t) : e;
4450
4472
  }
4451
4473
  }
4452
4474
  return null;
4453
4475
  }
4454
- function Ba(e) {
4476
+ function Va(e) {
4455
4477
  let t = J(e).event, n = t && t.inputType;
4456
4478
  return n === "insertFromPaste" || n === "insertFromPasteAsQuotation";
4457
4479
  }
4458
4480
  function q(e, t, n) {
4459
- return function(e, t, n) {
4460
- let r = Ca(e);
4461
- for (let i = 4; i >= 0; i--) for (let a = 0; a < r.length; a++) {
4462
- let o = r[a], s = o._commands.get(t);
4463
- if (s !== void 0) {
4464
- let t = s[i];
4465
- if (t !== void 0) {
4466
- let r = Array.from(t), i = r.length, a = !1;
4467
- if (R(o, () => {
4468
- for (let t = 0; t < i; t++) if (r[t](n, e)) return void (a = !0);
4469
- }), a) return a;
4470
- }
4471
- }
4472
- }
4473
- return !1;
4474
- }(e, t, n);
4481
+ return Si(e, t, n, e);
4475
4482
  }
4476
- function Va(t, n) {
4483
+ function Ha(t, n) {
4477
4484
  let r = t._keyToDOMMap.get(n);
4478
4485
  return r === void 0 && e(75, n), r;
4479
4486
  }
4480
- function Ha(e) {
4481
- let t = e.assignedSlot || e.parentElement;
4482
- return oo(t) ? t.host : t;
4483
- }
4484
4487
  function Ua(e) {
4485
- return sa(e) ? e : X(e) ? e.ownerDocument : null;
4488
+ let t = e.assignedSlot || e.parentElement;
4489
+ return so(t) ? t.host : t;
4486
4490
  }
4487
4491
  function Wa(e) {
4488
- I(), L()._updateTags.add(e);
4492
+ return ca(e) ? e : X(e) ? e.ownerDocument : null;
4489
4493
  }
4490
4494
  function Ga(e) {
4495
+ I(), L()._updateTags.add(e);
4496
+ }
4497
+ function Ka(e) {
4491
4498
  I(), L()._deferred.push(e);
4492
4499
  }
4493
- function Ka(e, t) {
4500
+ function qa(e, t) {
4494
4501
  let n = e.getParent();
4495
4502
  for (; n !== null;) {
4496
4503
  if (n.is(t)) return !0;
@@ -4498,34 +4505,34 @@ function Ka(e, t) {
4498
4505
  }
4499
4506
  return !1;
4500
4507
  }
4501
- function qa(e) {
4502
- let t = Ua(e);
4508
+ function Ja(e) {
4509
+ let t = Wa(e);
4503
4510
  return t ? t.defaultView : null;
4504
4511
  }
4505
4512
  function J(t) {
4506
4513
  let n = t._window;
4507
4514
  return n === null && e(78), n;
4508
4515
  }
4509
- function Ja(e) {
4516
+ function Ya(e) {
4510
4517
  return z(e) && e.isInline() || B(e) && e.isInline();
4511
4518
  }
4512
- function Ya(e) {
4519
+ function Xa(e) {
4513
4520
  let t = e.getParentOrThrow();
4514
4521
  for (; t !== null;) {
4515
- if (Xa(t)) return t;
4522
+ if (Za(t)) return t;
4516
4523
  t = t.getParentOrThrow();
4517
4524
  }
4518
4525
  return t;
4519
4526
  }
4520
- function Xa(e) {
4527
+ function Za(e) {
4521
4528
  return V(e) || z(e) && e.isShadowRoot();
4522
4529
  }
4523
- function Za(e, t = !1) {
4530
+ function Qa(e, t = !1) {
4524
4531
  let n = e.constructor.clone(e);
4525
- return da(n, null), n.afterCloneFrom(e), t || n.resetOnCopyNodeFrom(e), n;
4532
+ return fa(n, null), n.afterCloneFrom(e), t || n.resetOnCopyNodeFrom(e), n;
4526
4533
  }
4527
- function Qa(t) {
4528
- let n = L(), r = t.getType(), i = Xi(n, r);
4534
+ function $a(t) {
4535
+ let n = L(), r = t.getType(), i = Zi(n, r);
4529
4536
  i === void 0 && e(200, t.constructor.name, r);
4530
4537
  let { replace: a, replaceWithKlass: o } = i;
4531
4538
  if (a !== null) {
@@ -4534,17 +4541,17 @@ function Qa(t) {
4534
4541
  }
4535
4542
  return t;
4536
4543
  }
4537
- function $a(t, n) {
4544
+ function eo(t, n) {
4538
4545
  !V(t.getParent()) || z(n) || B(n) || e(99);
4539
4546
  }
4540
- function eo(t) {
4547
+ function to(t) {
4541
4548
  let n = U(t);
4542
4549
  return n === null && e(63, t), n;
4543
4550
  }
4544
- function to(e) {
4551
+ function no(e) {
4545
4552
  return (B(e) || z(e) && !e.canBeEmpty()) && !e.isInline();
4546
4553
  }
4547
- function no(e, t, n) {
4554
+ function ro(e, t, n) {
4548
4555
  n.style.removeProperty("caret-color"), t._blockCursorElement = null;
4549
4556
  let r = e.parentElement;
4550
4557
  r !== null && r.removeChild(e);
@@ -4552,44 +4559,44 @@ function no(e, t, n) {
4552
4559
  function Y(e) {
4553
4560
  return n ? (e || window).getSelection() : null;
4554
4561
  }
4555
- function ro(e) {
4556
- let t = qa(e);
4562
+ function io(e) {
4563
+ let t = Ja(e);
4557
4564
  return t ? t.getSelection() : null;
4558
4565
  }
4559
- function io(e) {
4566
+ function ao(e) {
4560
4567
  return X(e) && e.tagName === "A";
4561
4568
  }
4562
4569
  function X(e) {
4563
- return ao(e) && e.nodeType === 1;
4564
- }
4565
- function ao(e) {
4566
- return typeof e == "object" && !!e && "nodeType" in e && typeof e.nodeType == "number";
4570
+ return oo(e) && e.nodeType === 1;
4567
4571
  }
4568
4572
  function oo(e) {
4569
- return ao(e) && e.nodeType === 11;
4573
+ return typeof e == "object" && !!e && "nodeType" in e && typeof e.nodeType == "number";
4570
4574
  }
4571
4575
  function so(e) {
4576
+ return oo(e) && e.nodeType === 11;
4577
+ }
4578
+ function co(e) {
4572
4579
  let t = /* @__PURE__ */ new RegExp(/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|mark|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var|#text)$/, "i");
4573
4580
  return e.nodeName.match(t) !== null;
4574
4581
  }
4575
- function co(e) {
4582
+ function lo(e) {
4576
4583
  let t = /* @__PURE__ */ new RegExp(/^(address|article|aside|blockquote|canvas|dd|div|dl|dt|fieldset|figcaption|figure|footer|form|h1|h2|h3|h4|h5|h6|header|hr|li|main|nav|noscript|ol|p|pre|section|table|td|tfoot|ul|video)$/, "i");
4577
4584
  return e.nodeName.match(t) !== null;
4578
4585
  }
4579
- function lo(e) {
4586
+ function uo(e) {
4580
4587
  if (B(e) && !e.isInline()) return !0;
4581
- if (!z(e) || Xa(e)) return !1;
4588
+ if (!z(e) || Za(e)) return !1;
4582
4589
  let t = e.getFirstChild(), n = t === null || or(t) || k(t) || t.isInline();
4583
4590
  return !e.isInline() && !1 !== e.canBeEmpty() && n;
4584
4591
  }
4585
- function uo() {
4592
+ function fo() {
4586
4593
  return L();
4587
4594
  }
4588
- var fo = /* @__PURE__ */ new WeakMap(), po = /* @__PURE__ */ new Map();
4589
- function mo(t) {
4590
- if (!t._readOnly && t.isEmpty()) return po;
4595
+ var po = /* @__PURE__ */ new WeakMap(), mo = /* @__PURE__ */ new Map();
4596
+ function ho(t) {
4597
+ if (!t._readOnly && t.isEmpty()) return mo;
4591
4598
  t._readOnly || e(192);
4592
- let n = fo.get(t);
4599
+ let n = po.get(t);
4593
4600
  return n || (n = function(e) {
4594
4601
  let t = /* @__PURE__ */ new Map();
4595
4602
  for (let [n, r] of e._nodeMap) {
@@ -4597,32 +4604,32 @@ function mo(t) {
4597
4604
  i || (i = /* @__PURE__ */ new Map(), t.set(e, i)), i.set(n, r);
4598
4605
  }
4599
4606
  return t;
4600
- }(t), fo.set(t, n)), n;
4607
+ }(t), po.set(t, n)), n;
4601
4608
  }
4602
- function ho(e) {
4609
+ function go(e) {
4603
4610
  let t = e.constructor.clone(e);
4604
4611
  return t.afterCloneFrom(e), t;
4605
4612
  }
4606
- function go(e) {
4607
- return (t = ho(e))[qn] = !0, t;
4613
+ function _o(e) {
4614
+ return (t = go(e))[qn] = !0, t;
4608
4615
  var t;
4609
4616
  }
4610
- function _o(e, t) {
4617
+ function vo(e, t) {
4611
4618
  let n = parseInt(e.style.paddingInlineStart, 10) || 0, r = Math.round(n / 40);
4612
4619
  t.setIndent(r);
4613
4620
  }
4614
- function vo(e) {
4621
+ function yo(e) {
4615
4622
  e.__lexicalUnmanaged = !0;
4616
4623
  }
4617
- function yo(e) {
4624
+ function bo(e) {
4618
4625
  return !0 === e.__lexicalUnmanaged;
4619
4626
  }
4620
- function bo(e, t) {
4627
+ function xo(e, t) {
4621
4628
  return function(e, t) {
4622
4629
  return Object.prototype.hasOwnProperty.call(e, t);
4623
4630
  }(e, t) && e[t] !== D[t];
4624
4631
  }
4625
- function xo(t) {
4632
+ function So(t) {
4626
4633
  let n = ce in t.prototype ? t.prototype[ce]() : void 0, r = function(t) {
4627
4634
  if (!(t === D || t.prototype instanceof D)) {
4628
4635
  let n = "<unknown>", r = "<unknown>";
@@ -4630,15 +4637,15 @@ function xo(t) {
4630
4637
  n = t.getType();
4631
4638
  } catch {}
4632
4639
  try {
4633
- Gi.version && (r = JSON.parse(Gi.version));
4640
+ Ki.version && (r = JSON.parse(Ki.version));
4634
4641
  } catch {}
4635
4642
  e(290, t.name, n, r);
4636
4643
  }
4637
- return t === Oi || t === Ei || t === D;
4638
- }(t), i = !r && bo(t, "getType") ? t.getType() : void 0, a, o = i;
4644
+ return t === ki || t === Di || t === D;
4645
+ }(t), i = !r && xo(t, "getType") ? t.getType() : void 0, a, o = i;
4639
4646
  if (n) if (i) a = n[i];
4640
4647
  else for (let [e, t] of Object.entries(n)) o = e, a = t;
4641
- if (!r && o && (bo(t, "getType") || (t.getType = () => o), bo(t, "clone") || (t.clone = (e) => (qi(e), new t())), bo(t, "importJSON") || (t.importJSON = a && a.$importJSON || ((e) => new t().updateFromJSON(e))), !bo(t, "importDOM") && a)) {
4648
+ if (!r && o && (xo(t, "getType") || (t.getType = () => o), xo(t, "clone") || (t.clone = (e) => (Ji(e), new t())), xo(t, "importJSON") || (t.importJSON = a && a.$importJSON || ((e) => new t().updateFromJSON(e))), !xo(t, "importDOM") && a)) {
4642
4649
  let { importDOM: e } = a;
4643
4650
  e && (t.importDOM = () => e);
4644
4651
  }
@@ -4647,28 +4654,28 @@ function xo(t) {
4647
4654
  ownNodeType: o
4648
4655
  };
4649
4656
  }
4650
- function So(e) {
4651
- let t = uo();
4657
+ function Co(e) {
4658
+ let t = fo();
4652
4659
  return I(), new (t.resolveRegisteredNodeAfterReplacements(t.getRegisteredNode(e))).klass();
4653
4660
  }
4654
- var Co = (e, t) => {
4661
+ var wo = (e, t) => {
4655
4662
  let n = e;
4656
4663
  for (; n != null && !V(n);) {
4657
4664
  if (t(n)) return n;
4658
4665
  n = n.getParent();
4659
4666
  }
4660
4667
  return null;
4661
- }, wo = {
4668
+ }, To = {
4662
4669
  next: "previous",
4663
4670
  previous: "next"
4664
- }, To = class {
4671
+ }, Eo = class {
4665
4672
  origin;
4666
4673
  constructor(e) {
4667
4674
  this.origin = e;
4668
4675
  }
4669
4676
  [Symbol.iterator]() {
4670
- return Jo({
4671
- hasNext: No,
4677
+ return Yo({
4678
+ hasNext: Po,
4672
4679
  initial: this.getAdjacentCaret(),
4673
4680
  map: (e) => e,
4674
4681
  step: (e) => e.getAdjacentCaret()
@@ -4709,18 +4716,18 @@ var Co = (e, t) => {
4709
4716
  for (let e of s.values()) e.remove();
4710
4717
  return this;
4711
4718
  }
4712
- }, Eo = class e extends To {
4719
+ }, Do = class e extends Eo {
4713
4720
  type = "child";
4714
4721
  getLatest() {
4715
4722
  let e = this.origin.getLatest();
4716
- return e === this.origin ? this : Bo(e, this.direction);
4723
+ return e === this.origin ? this : Vo(e, this.direction);
4717
4724
  }
4718
4725
  getParentCaret(e = "root") {
4719
- return Q(ko(this.getParentAtCaret(), e), this.direction);
4726
+ return Q(Ao(this.getParentAtCaret(), e), this.direction);
4720
4727
  }
4721
4728
  getFlipped() {
4722
- let e = Oo(this.direction);
4723
- return Q(this.getNodeAtCaret(), e) || Bo(this.origin, e);
4729
+ let e = ko(this.direction);
4730
+ return Q(this.getNodeAtCaret(), e) || Vo(this.origin, e);
4724
4731
  }
4725
4732
  getParentAtCaret() {
4726
4733
  return this.origin;
@@ -4734,17 +4741,17 @@ var Co = (e, t) => {
4734
4741
  isSamePointCaret(e) {
4735
4742
  return this.isSameNodeCaret(e);
4736
4743
  }
4737
- }, Do = {
4744
+ }, Oo = {
4738
4745
  root: V,
4739
- shadowRoot: Xa
4746
+ shadowRoot: Za
4740
4747
  };
4741
- function Oo(e) {
4742
- return wo[e];
4748
+ function ko(e) {
4749
+ return To[e];
4743
4750
  }
4744
- function ko(e, t = "root") {
4745
- return Do[t](e) ? null : e;
4751
+ function Ao(e, t = "root") {
4752
+ return Oo[t](e) ? null : e;
4746
4753
  }
4747
- var Ao = class e extends To {
4754
+ var jo = class e extends Eo {
4748
4755
  type = "sibling";
4749
4756
  getLatest() {
4750
4757
  let e = this.origin.getLatest();
@@ -4757,22 +4764,22 @@ var Ao = class e extends To {
4757
4764
  return this.origin.getParent();
4758
4765
  }
4759
4766
  getChildCaret() {
4760
- return z(this.origin) ? Bo(this.origin, this.direction) : null;
4767
+ return z(this.origin) ? Vo(this.origin, this.direction) : null;
4761
4768
  }
4762
4769
  getParentCaret(e = "root") {
4763
- return Q(ko(this.getParentAtCaret(), e), this.direction);
4770
+ return Q(Ao(this.getParentAtCaret(), e), this.direction);
4764
4771
  }
4765
4772
  getFlipped() {
4766
- let e = Oo(this.direction);
4767
- return Q(this.getNodeAtCaret(), e) || Bo(this.origin.getParentOrThrow(), e);
4773
+ let e = ko(this.direction);
4774
+ return Q(this.getNodeAtCaret(), e) || Vo(this.origin.getParentOrThrow(), e);
4768
4775
  }
4769
4776
  isSamePointCaret(t) {
4770
4777
  return t instanceof e && this.direction === t.direction && this.origin.is(t.origin);
4771
4778
  }
4772
4779
  isSameNodeCaret(t) {
4773
- return (t instanceof e || t instanceof jo) && this.direction === t.direction && this.origin.is(t.origin);
4780
+ return (t instanceof e || t instanceof Mo) && this.direction === t.direction && this.origin.is(t.origin);
4774
4781
  }
4775
- }, jo = class e extends To {
4782
+ }, Mo = class e extends Eo {
4776
4783
  type = "text";
4777
4784
  offset;
4778
4785
  constructor(e, t) {
@@ -4780,7 +4787,7 @@ var Ao = class e extends To {
4780
4787
  }
4781
4788
  getLatest() {
4782
4789
  let e = this.origin.getLatest();
4783
- return e === this.origin ? this : Lo(e, this.direction, this.offset);
4790
+ return e === this.origin ? this : Ro(e, this.direction, this.offset);
4784
4791
  }
4785
4792
  getParentAtCaret() {
4786
4793
  return this.origin.getParent();
@@ -4789,32 +4796,32 @@ var Ao = class e extends To {
4789
4796
  return null;
4790
4797
  }
4791
4798
  getParentCaret(e = "root") {
4792
- return Q(ko(this.getParentAtCaret(), e), this.direction);
4799
+ return Q(Ao(this.getParentAtCaret(), e), this.direction);
4793
4800
  }
4794
4801
  getFlipped() {
4795
- return Lo(this.origin, Oo(this.direction), this.offset);
4802
+ return Ro(this.origin, ko(this.direction), this.offset);
4796
4803
  }
4797
4804
  isSamePointCaret(t) {
4798
4805
  return t instanceof e && this.direction === t.direction && this.origin.is(t.origin) && this.offset === t.offset;
4799
4806
  }
4800
4807
  isSameNodeCaret(t) {
4801
- return (t instanceof Ao || t instanceof e) && this.direction === t.direction && this.origin.is(t.origin);
4808
+ return (t instanceof jo || t instanceof e) && this.direction === t.direction && this.origin.is(t.origin);
4802
4809
  }
4803
4810
  getSiblingCaret() {
4804
4811
  return Q(this.origin, this.direction);
4805
4812
  }
4806
4813
  };
4807
- function Mo(e) {
4808
- return e instanceof jo;
4809
- }
4810
4814
  function No(e) {
4811
- return e instanceof Ao;
4815
+ return e instanceof Mo;
4816
+ }
4817
+ function Po(e) {
4818
+ return e instanceof jo;
4812
4819
  }
4813
4820
  function Z(e) {
4814
- return e instanceof Eo;
4821
+ return e instanceof Do;
4815
4822
  }
4816
- var Po = {
4817
- next: class extends jo {
4823
+ var Fo = {
4824
+ next: class extends Mo {
4818
4825
  direction = "next";
4819
4826
  getNodeAtCaret() {
4820
4827
  return this.origin.getNextSibling();
@@ -4823,7 +4830,7 @@ var Po = {
4823
4830
  return this.origin.insertAfter(e), this;
4824
4831
  }
4825
4832
  },
4826
- previous: class extends jo {
4833
+ previous: class extends Mo {
4827
4834
  direction = "previous";
4828
4835
  getNodeAtCaret() {
4829
4836
  return this.origin.getPreviousSibling();
@@ -4832,8 +4839,8 @@ var Po = {
4832
4839
  return this.origin.insertBefore(e), this;
4833
4840
  }
4834
4841
  }
4835
- }, Fo = {
4836
- next: class extends Ao {
4842
+ }, Io = {
4843
+ next: class extends jo {
4837
4844
  direction = "next";
4838
4845
  getNodeAtCaret() {
4839
4846
  return this.origin.getNextSibling();
@@ -4842,7 +4849,7 @@ var Po = {
4842
4849
  return this.origin.insertAfter(e), this;
4843
4850
  }
4844
4851
  },
4845
- previous: class extends Ao {
4852
+ previous: class extends jo {
4846
4853
  direction = "previous";
4847
4854
  getNodeAtCaret() {
4848
4855
  return this.origin.getPreviousSibling();
@@ -4851,8 +4858,8 @@ var Po = {
4851
4858
  return this.origin.insertBefore(e), this;
4852
4859
  }
4853
4860
  }
4854
- }, Io = {
4855
- next: class extends Eo {
4861
+ }, Lo = {
4862
+ next: class extends Do {
4856
4863
  direction = "next";
4857
4864
  getNodeAtCaret() {
4858
4865
  return this.origin.getFirstChild();
@@ -4861,7 +4868,7 @@ var Po = {
4861
4868
  return this.origin.splice(0, 0, [e]), this;
4862
4869
  }
4863
4870
  },
4864
- previous: class extends Eo {
4871
+ previous: class extends Do {
4865
4872
  direction = "previous";
4866
4873
  getNodeAtCaret() {
4867
4874
  return this.origin.getLastChild();
@@ -4872,28 +4879,28 @@ var Po = {
4872
4879
  }
4873
4880
  };
4874
4881
  function Q(e, t) {
4875
- return e ? new Fo[t](e) : null;
4882
+ return e ? new Io[t](e) : null;
4876
4883
  }
4877
- function Lo(e, t, n) {
4878
- return e ? new Po[t](e, Ro(e, n)) : null;
4884
+ function Ro(e, t, n) {
4885
+ return e ? new Fo[t](e, zo(e, n)) : null;
4879
4886
  }
4880
- function Ro(e, n, r = "error") {
4887
+ function zo(e, n, r = "error") {
4881
4888
  let i = e.getTextContentSize(), a = n === "next" ? i : n === "previous" ? 0 : n;
4882
4889
  return (a < 0 || a > i) && (r !== "clamp" && t(284, String(n), String(i), e.getKey()), a = a < 0 ? 0 : i), a;
4883
4890
  }
4884
- function zo(e, t) {
4885
- return new Wo(e, t);
4886
- }
4887
4891
  function Bo(e, t) {
4888
- return z(e) ? new Io[t](e) : null;
4892
+ return new Go(e, t);
4889
4893
  }
4890
- function Vo(e) {
4891
- return e && e.getChildCaret() || e;
4894
+ function Vo(e, t) {
4895
+ return z(e) ? new Lo[t](e) : null;
4892
4896
  }
4893
4897
  function Ho(e) {
4894
- return e && Vo(e.getAdjacentCaret());
4898
+ return e && e.getChildCaret() || e;
4899
+ }
4900
+ function Uo(e) {
4901
+ return e && Ho(e.getAdjacentCaret());
4895
4902
  }
4896
- var Uo = class e {
4903
+ var Wo = class e {
4897
4904
  type = "node-caret-range";
4898
4905
  direction;
4899
4906
  anchor;
@@ -4911,20 +4918,20 @@ var Uo = class e {
4911
4918
  getTextSlices() {
4912
4919
  let e = (e) => {
4913
4920
  let t = this[e].getLatest();
4914
- return Mo(t) ? function(e, t) {
4921
+ return No(t) ? function(e, t) {
4915
4922
  let { direction: n, origin: r } = e;
4916
- return zo(e, Ro(r, t === "focus" ? Oo(n) : n) - e.offset);
4923
+ return Bo(e, zo(r, t === "focus" ? ko(n) : n) - e.offset);
4917
4924
  }(t, e) : null;
4918
4925
  }, t = e("anchor"), n = e("focus");
4919
4926
  if (t && n) {
4920
4927
  let { caret: e } = t, { caret: r } = n;
4921
- if (e.isSameNodeCaret(r)) return [zo(e, r.offset - e.offset), null];
4928
+ if (e.isSameNodeCaret(r)) return [Bo(e, r.offset - e.offset), null];
4922
4929
  }
4923
4930
  return [t, n];
4924
4931
  }
4925
4932
  iterNodeCarets(e = "root") {
4926
- let t = Mo(this.anchor) ? this.anchor.getSiblingCaret() : this.anchor.getLatest(), n = this.focus.getLatest(), r = Mo(n), i = (t) => t.isSameNodeCaret(n) ? null : Ho(t) || t.getParentCaret(e);
4927
- return Jo({
4933
+ let t = No(this.anchor) ? this.anchor.getSiblingCaret() : this.anchor.getLatest(), n = this.focus.getLatest(), r = No(n), i = (t) => t.isSameNodeCaret(n) ? null : Uo(t) || t.getParentCaret(e);
4934
+ return Yo({
4928
4935
  hasNext: (e) => e !== null && !(r && n.isSameNodeCaret(e)),
4929
4936
  initial: t.isSameNodeCaret(n) ? null : i(t),
4930
4937
  map: (e) => e,
@@ -4934,7 +4941,7 @@ var Uo = class e {
4934
4941
  [Symbol.iterator]() {
4935
4942
  return this.iterNodeCarets("root");
4936
4943
  }
4937
- }, Wo = class {
4944
+ }, Go = class {
4938
4945
  type = "slice";
4939
4946
  caret;
4940
4947
  distance;
@@ -4954,19 +4961,19 @@ var Uo = class e {
4954
4961
  }
4955
4962
  removeTextSlice() {
4956
4963
  let { caret: { origin: e, direction: t } } = this, [n, r] = this.getSliceIndices(), i = e.getTextContent();
4957
- return Lo(e.setTextContent(i.slice(0, n) + i.slice(r)), t, n);
4964
+ return Ro(e.setTextContent(i.slice(0, n) + i.slice(r)), t, n);
4958
4965
  }
4959
4966
  };
4960
- function Go(e) {
4961
- return qo(e, Q(W(), e.direction));
4962
- }
4963
4967
  function Ko(e) {
4964
- return qo(e, e);
4968
+ return Jo(e, Q(W(), e.direction));
4969
+ }
4970
+ function qo(e) {
4971
+ return Jo(e, e);
4965
4972
  }
4966
- function qo(t, n) {
4967
- return t.direction !== n.direction && e(265), new Uo(t, n, t.direction);
4973
+ function Jo(t, n) {
4974
+ return t.direction !== n.direction && e(265), new Wo(t, n, t.direction);
4968
4975
  }
4969
- function Jo(e) {
4976
+ function Yo(e) {
4970
4977
  let { initial: t, hasNext: n, step: r, map: i } = e, a = t;
4971
4978
  return {
4972
4979
  [Symbol.iterator]() {
@@ -4985,8 +4992,8 @@ function Jo(e) {
4985
4992
  }
4986
4993
  };
4987
4994
  }
4988
- function Yo(t, n) {
4989
- let r = $o(t.origin, n.origin);
4995
+ function Xo(t, n) {
4996
+ let r = es(t.origin, n.origin);
4990
4997
  switch (r === null && e(275, t.origin.getKey(), n.origin.getKey()), r.type) {
4991
4998
  case "same": {
4992
4999
  let e = t.type === "text", r = n.type === "text";
@@ -4996,10 +5003,10 @@ function Yo(t, n) {
4996
5003
  }
4997
5004
  case "ancestor": return t.type === "child" ? -1 : 1;
4998
5005
  case "descendant": return n.type === "child" ? 1 : -1;
4999
- case "branch": return Xo(r);
5006
+ case "branch": return Zo(r);
5000
5007
  }
5001
5008
  }
5002
- function Xo(e) {
5009
+ function Zo(e) {
5003
5010
  let { a: t, b: n } = e, r = t.__key, i = n.__key, a = t, o = n;
5004
5011
  for (; a && o; a = a.getNextSibling(), o = o.getNextSibling()) {
5005
5012
  if (a.__key === i) return -1;
@@ -5007,28 +5014,28 @@ function Xo(e) {
5007
5014
  }
5008
5015
  return a === null ? 1 : -1;
5009
5016
  }
5010
- function Zo(e, t) {
5017
+ function Qo(e, t) {
5011
5018
  return t.is(e);
5012
5019
  }
5013
- function Qo(e) {
5020
+ function $o(e) {
5014
5021
  return z(e) ? [e.getLatest(), null] : [e.getParent(), e.getLatest()];
5015
5022
  }
5016
- function $o(t, n) {
5023
+ function es(t, n) {
5017
5024
  if (t.is(n)) return {
5018
5025
  commonAncestor: t,
5019
5026
  type: "same"
5020
5027
  };
5021
5028
  let r = /* @__PURE__ */ new Map();
5022
- for (let [e, n] = Qo(t); e; n = e, e = e.getParent()) r.set(e, n);
5023
- for (let [i, a] = Qo(n); i; a = i, i = i.getParent()) {
5029
+ for (let [e, n] = $o(t); e; n = e, e = e.getParent()) r.set(e, n);
5030
+ for (let [i, a] = $o(n); i; a = i, i = i.getParent()) {
5024
5031
  let o = r.get(i);
5025
- if (o !== void 0) return o === null ? (Zo(t, i) || e(276), {
5032
+ if (o !== void 0) return o === null ? (Qo(t, i) || e(276), {
5026
5033
  commonAncestor: i,
5027
5034
  type: "ancestor"
5028
- }) : a === null ? (Zo(n, i) || e(277), {
5035
+ }) : a === null ? (Qo(n, i) || e(277), {
5029
5036
  commonAncestor: i,
5030
5037
  type: "descendant"
5031
- }) : ((z(o) || Zo(t, o)) && (z(a) || Zo(n, a)) && i.is(o.getParent()) && i.is(a.getParent()) || e(278), {
5038
+ }) : ((z(o) || Qo(t, o)) && (z(a) || Qo(n, a)) && i.is(o.getParent()) && i.is(a.getParent()) || e(278), {
5032
5039
  a: o,
5033
5040
  b: a,
5034
5041
  commonAncestor: i,
@@ -5037,66 +5044,66 @@ function $o(t, n) {
5037
5044
  }
5038
5045
  return null;
5039
5046
  }
5040
- function es(t, n) {
5041
- let { type: r, key: i, offset: a } = t, o = eo(t.key);
5042
- return r === "text" ? (k(o) || e(266, o.getType(), i), Lo(o, n, a)) : (z(o) || e(267, o.getType(), i), fs(o, t.offset, n));
5043
- }
5044
5047
  function ts(t, n) {
5048
+ let { type: r, key: i, offset: a } = t, o = to(t.key);
5049
+ return r === "text" ? (k(o) || e(266, o.getType(), i), Ro(o, n, a)) : (z(o) || e(267, o.getType(), i), ps(o, t.offset, n));
5050
+ }
5051
+ function ns(t, n) {
5045
5052
  let { origin: r, direction: i } = n, a = i === "next";
5046
- Mo(n) ? t.set(r.getKey(), n.offset, "text") : No(n) ? k(r) ? t.set(r.getKey(), Ro(r, i), "text") : t.set(r.getParentOrThrow().getKey(), r.getIndexWithinParent() + (a ? 1 : 0), "element") : (Z(n) && z(r) || e(268), t.set(r.getKey(), a ? 0 : r.getChildrenSize(), "element"));
5053
+ No(n) ? t.set(r.getKey(), n.offset, "text") : Po(n) ? k(r) ? t.set(r.getKey(), zo(r, i), "text") : t.set(r.getParentOrThrow().getKey(), r.getIndexWithinParent() + +!!a, "element") : (Z(n) && z(r) || e(268), t.set(r.getKey(), a ? 0 : r.getChildrenSize(), "element"));
5047
5054
  }
5048
- function ns(e) {
5055
+ function rs(e) {
5049
5056
  let t = M(), n = j(t) ? t : Wr();
5050
- return rs(n, e), G(n), n;
5057
+ return is(n, e), G(n), n;
5051
5058
  }
5052
- function rs(e, t) {
5053
- ts(e.anchor, t.anchor), ts(e.focus, t.focus);
5054
- }
5055
- function is(e) {
5056
- let { anchor: t, focus: n } = e, r = es(t, "next"), i = es(n, "next"), a = Yo(r, i) <= 0 ? "next" : "previous";
5057
- return qo(us(r, a), us(i, a));
5059
+ function is(e, t) {
5060
+ ns(e.anchor, t.anchor), ns(e.focus, t.focus);
5058
5061
  }
5059
5062
  function as(e) {
5060
- let { direction: t, origin: n } = e, r = Q(n, Oo(t)).getNodeAtCaret();
5061
- return r ? Q(r, t) : Bo(n.getParentOrThrow(), t);
5063
+ let { anchor: t, focus: n } = e, r = ts(t, "next"), i = ts(n, "next"), a = Xo(r, i) <= 0 ? "next" : "previous";
5064
+ return Jo(ds(r, a), ds(i, a));
5065
+ }
5066
+ function os(e) {
5067
+ let { direction: t, origin: n } = e, r = Q(n, ko(t)).getNodeAtCaret();
5068
+ return r ? Q(r, t) : Vo(n.getParentOrThrow(), t);
5062
5069
  }
5063
- function os(e, t = "root") {
5070
+ function ss(e, t = "root") {
5064
5071
  let n = [e];
5065
- for (let r = Z(e) ? e.getParentCaret(t) : e.getSiblingCaret(); r !== null; r = r.getParentCaret(t)) n.push(as(r));
5072
+ for (let r = Z(e) ? e.getParentCaret(t) : e.getSiblingCaret(); r !== null; r = r.getParentCaret(t)) n.push(os(r));
5066
5073
  return n;
5067
5074
  }
5068
- function ss(e) {
5075
+ function cs(e) {
5069
5076
  return !!e && e.origin.isAttached();
5070
5077
  }
5071
- function cs(t, n = "removeEmptySlices") {
5078
+ function ls(t, n = "removeEmptySlices") {
5072
5079
  if (t.isCollapsed()) return t;
5073
- let r = "root", i = "next", a = n, o = ds(t, i), s = os(o.anchor, r), c = os(o.focus.getFlipped(), r), l = /* @__PURE__ */ new Set(), u = [];
5080
+ let r = "root", i = "next", a = n, o = fs(t, i), s = ss(o.anchor, r), c = ss(o.focus.getFlipped(), r), l = /* @__PURE__ */ new Set(), u = [];
5074
5081
  for (let e of o.iterNodeCarets(r)) if (Z(e)) l.add(e.origin.getKey());
5075
- else if (No(e)) {
5082
+ else if (Po(e)) {
5076
5083
  let { origin: t } = e;
5077
5084
  z(t) && !l.has(t.getKey()) || u.push(t);
5078
5085
  }
5079
5086
  for (let e of u) e.remove();
5080
5087
  for (let e of o.getTextSlices()) {
5081
5088
  if (!e) continue;
5082
- let { origin: t } = e.caret, n = t.getTextContentSize(), r = as(Q(t, i)), o = t.getMode();
5089
+ let { origin: t } = e.caret, n = t.getTextContentSize(), r = os(Q(t, i)), o = t.getMode();
5083
5090
  if (Math.abs(e.distance) === n && a === "removeEmptySlices" || o === "token" && e.distance !== 0) r.remove();
5084
5091
  else if (e.distance !== 0) {
5085
5092
  a = "removeEmptySlices";
5086
5093
  let t = e.removeTextSlice(), n = e.caret.origin;
5087
5094
  if (o === "segmented") {
5088
5095
  let e = t.origin, n = O(e.getTextContent()).setStyle(e.getStyle()).setFormat(e.getFormat());
5089
- r.replaceOrInsert(n), t = Lo(n, i, t.offset);
5096
+ r.replaceOrInsert(n), t = Ro(n, i, t.offset);
5090
5097
  }
5091
5098
  n.is(s[0].origin) && (s[0] = t), n.is(c[0].origin) && (c[0] = t.getFlipped());
5092
5099
  }
5093
5100
  }
5094
5101
  let d, f;
5095
- for (let e of s) if (ss(e)) {
5102
+ for (let e of s) if (cs(e)) {
5096
5103
  d = $(e);
5097
5104
  break;
5098
5105
  }
5099
- for (let e of c) if (ss(e)) {
5106
+ for (let e of c) if (cs(e)) {
5100
5107
  f = $(e);
5101
5108
  break;
5102
5109
  }
@@ -5114,16 +5121,16 @@ function cs(t, n = "removeEmptySlices") {
5114
5121
  let n;
5115
5122
  for (let r = c; r < e.length; r++) {
5116
5123
  let i = e[r];
5117
- if (Xa(i)) return;
5124
+ if (Za(i)) return;
5118
5125
  !n && t(i) && (n = i);
5119
5126
  }
5120
5127
  return n;
5121
- }, u = l(a, lo), d = u && l(o, (e) => n.has(e.getKey()) && lo(e));
5128
+ }, u = l(a, uo), d = u && l(o, (e) => n.has(e.getKey()) && uo(e));
5122
5129
  return u && d ? [u, d] : null;
5123
5130
  }(d, f, l);
5124
5131
  if (p) {
5125
5132
  let [e, t] = p;
5126
- Bo(e, "previous").splice(0, t.getChildren());
5133
+ Vo(e, "previous").splice(0, t.getChildren());
5127
5134
  let n = t.getParent();
5128
5135
  for (t.remove(!0); n && n.isEmpty();) {
5129
5136
  let e = n;
@@ -5135,66 +5142,66 @@ function cs(t, n = "removeEmptySlices") {
5135
5142
  f,
5136
5143
  ...s,
5137
5144
  ...c
5138
- ].find(ss);
5139
- if (m) return Ko(us($(m), t.direction));
5145
+ ].find(cs);
5146
+ if (m) return qo(ds($(m), t.direction));
5140
5147
  e(269, JSON.stringify(s.map((e) => e.origin.__key)));
5141
5148
  }
5142
5149
  function $(e) {
5143
5150
  let t = function(e) {
5144
5151
  let t = e;
5145
5152
  for (; Z(t);) {
5146
- let e = Ho(t);
5153
+ let e = Uo(t);
5147
5154
  if (!Z(e)) break;
5148
5155
  t = e;
5149
5156
  }
5150
5157
  return t;
5151
5158
  }(e.getLatest()), { direction: n } = t;
5152
- if (k(t.origin)) return Mo(t) ? t : Lo(t.origin, n, n);
5159
+ if (k(t.origin)) return No(t) ? t : Ro(t.origin, n, n);
5153
5160
  let r = t.getAdjacentCaret();
5154
- return No(r) && k(r.origin) ? Lo(r.origin, n, Oo(n)) : t;
5161
+ return Po(r) && k(r.origin) ? Ro(r.origin, n, ko(n)) : t;
5155
5162
  }
5156
- function ls(e) {
5157
- return Mo(e) && e.offset !== Ro(e.origin, e.direction);
5163
+ function us(e) {
5164
+ return No(e) && e.offset !== zo(e.origin, e.direction);
5158
5165
  }
5159
- function us(e, t) {
5166
+ function ds(e, t) {
5160
5167
  return e.direction === t ? e : e.getFlipped();
5161
5168
  }
5162
- function ds(e, t) {
5163
- return e.direction === t ? e : qo(us(e.focus, t), us(e.anchor, t));
5169
+ function fs(e, t) {
5170
+ return e.direction === t ? e : Jo(ds(e.focus, t), ds(e.anchor, t));
5164
5171
  }
5165
- function fs(e, t, n) {
5166
- let r = Bo(e, "next");
5172
+ function ps(e, t, n) {
5173
+ let r = Vo(e, "next");
5167
5174
  for (let e = 0; e < t; e++) {
5168
5175
  let e = r.getAdjacentCaret();
5169
5176
  if (e === null) break;
5170
5177
  r = e;
5171
5178
  }
5172
- return us(r, n);
5179
+ return ds(r, n);
5173
5180
  }
5174
- function ps(e, t = "root") {
5175
- let n = 0, r = e, i = Ho(r);
5181
+ function ms(e, t = "root") {
5182
+ let n = 0, r = e, i = Uo(r);
5176
5183
  for (; i === null;) {
5177
5184
  if (n--, i = r.getParentCaret(t), !i) return null;
5178
- r = i, i = Ho(r);
5185
+ r = i, i = Uo(r);
5179
5186
  }
5180
5187
  return i && [i, n];
5181
5188
  }
5182
- function ms(t) {
5189
+ function hs(t) {
5183
5190
  let { origin: n, offset: r, direction: i } = t;
5184
- if (r === Ro(n, i)) return t.getSiblingCaret();
5185
- if (r === Ro(n, Oo(i))) return as(t.getSiblingCaret());
5191
+ if (r === zo(n, i)) return t.getSiblingCaret();
5192
+ if (r === zo(n, ko(i))) return os(t.getSiblingCaret());
5186
5193
  let [a] = n.splitText(r);
5187
- return k(a) || e(281), us(Q(a, "next"), i);
5194
+ return k(a) || e(281), ds(Q(a, "next"), i);
5188
5195
  }
5189
- function hs(e, t) {
5196
+ function gs(e, t) {
5190
5197
  return !0;
5191
5198
  }
5192
- function gs(e, { $copyElementNode: t = Za, $splitTextPointCaretNext: n = ms, rootMode: r = "shadowRoot", $shouldSplit: i = hs } = {}) {
5193
- if (Mo(e)) return n(e);
5199
+ function _s(e, { $copyElementNode: t = Qa, $splitTextPointCaretNext: n = hs, rootMode: r = "shadowRoot", $shouldSplit: i = gs } = {}) {
5200
+ if (No(e)) return n(e);
5194
5201
  let a = e.getParentCaret(r);
5195
5202
  if (a) {
5196
5203
  let { origin: n } = a;
5197
- if (Z(e) && (!n.canBeEmpty() || !i(n, "first"))) return as(a);
5204
+ if (Z(e) && (!n.canBeEmpty() || !i(n, "first"))) return os(a);
5198
5205
  let r = function(e) {
5199
5206
  let t = [];
5200
5207
  for (let n = e.getAdjacentCaret(); n; n = n.getAdjacentCaret()) t.push(n.origin);
@@ -5204,16 +5211,16 @@ function gs(e, { $copyElementNode: t = Za, $splitTextPointCaretNext: n = ms, roo
5204
5211
  }
5205
5212
  return a;
5206
5213
  }
5207
- function _s(e) {
5214
+ function vs(e) {
5208
5215
  return e;
5209
5216
  }
5210
- function vs(...e) {
5217
+ function ys(...e) {
5211
5218
  return e;
5212
5219
  }
5213
- function ys(e) {
5220
+ function bs(e) {
5214
5221
  return e;
5215
5222
  }
5216
- function bs(e, t) {
5223
+ function xs(e, t) {
5217
5224
  if (!t || e === t) return e;
5218
5225
  for (let n in t) if (e[n] !== t[n]) return {
5219
5226
  ...e,
@@ -5221,26 +5228,26 @@ function bs(e, t) {
5221
5228
  };
5222
5229
  return e;
5223
5230
  }
5224
- function xs(...e) {
5231
+ function Ss(...e) {
5225
5232
  let t = [];
5226
5233
  for (let n of e) if (n && typeof n == "string") for (let [e] of n.matchAll(/\S+/g)) t.push(e);
5227
5234
  return t;
5228
5235
  }
5229
- function Ss(e, ...t) {
5230
- let n = xs(...t);
5236
+ function Cs(e, ...t) {
5237
+ let n = Ss(...t);
5231
5238
  n.length > 0 && e.classList.add(...n);
5232
5239
  }
5233
- function Cs(e, ...t) {
5234
- let n = xs(...t);
5240
+ function ws(e, ...t) {
5241
+ let n = Ss(...t);
5235
5242
  n.length > 0 && e.classList.remove(...n);
5236
5243
  }
5237
- function ws(...e) {
5244
+ function Ts(...e) {
5238
5245
  return () => {
5239
5246
  for (let t = e.length - 1; t >= 0; t--) e[t]();
5240
5247
  e.length = 0;
5241
5248
  };
5242
5249
  }
5243
5250
  //#endregion
5244
- export { Vt as $, Kr as $t, _s as A, Go as An, zi as At, Gr as B, k as Bn, Q as Bt, Kt as C, ws as Cn, $n as Ct, rr as D, St as Dn, Zn as Dt, vs as E, ni as En, ls as Et, as as F, wr as Fn, ea as Ft, B as G, Et as Gt, V as H, Xt as Hn, Hi as Ht, co as I, Ja as In, Rt as It, so as J, Tt as Jt, Kn as K, $i as Kt, en as L, kt as Ln, ua as Lt, So as M, zt as Mn, bs as Mt, Jt as N, j as Nn, or as Nt, Co as O, Xi as On, Wr as Ot, ki as P, jt as Pn, Dt as Pt, eo as Q, Fi as Qt, us as R, Vo as Rn, Z as Rt, Y as S, tr as Sn, Ri as St, oo as T, xs as Tn, Ni as Tt, lo as U, W as Un, Ct as Ut, Yt as V, S as Vn, Ss as Vt, qt as W, uo as Wn, li as Wt, Jo as X, xe as Xt, Ht as Y, gt as Yt, la as Z, tn as Zt, Gt as _, Ot as _n, ca as _t, Ut as a, No as an, X as at, ao as b, sn as bn, _o as bt, Pr as c, Ce as cn, Zt as ct, $ as d, Cs as dn, Nt as dt, go as en, Mr as et, Xn as f, E as fn, _i as ft, Ie as g, Se as gn, qo as gt, Tr as h, Mo as hn, It as ht, vo as i, Qa as in, U as it, nr as j, Za as jn, er as jt, cn as k, Pt as kn, on as kt, io as l, At as ln, Yn as lt, Mt as m, _t as mn, Xa as mt, ps as n, sa as nn, z as nt, Ei as o, mr as on, ys as ot, G as p, Fa as pn, aa as pt, _a as q, Wa as qt, M as r, A as rn, ts as rt, es as s, za as sn, ar as st, rn as t, Ko as tn, Wt as tt, Qt as u, Ho as un, Hr as ut, ns as v, Bo as vn, nn as vt, Oi as w, ht as wn, Jr as wt, Bt as x, gs as xn, an as xt, ha as y, O as yn, Ii as yt, Qn as z, na as zn, wt as zt };
5251
+ export { Di as $, xe as $t, B as A, oa as An, er as At, os as B, k as Bn, to as Bt, vs as C, ht as Cn, Zn as Ct, _s as D, ni as Dn, wo as Dt, cn as E, xs as En, ys as Et, us as F, jt as Fn, Ga as Ft, so as G, Ct as Gt, qt as H, Xt as Hn, Ba as Ht, Qn as I, Uo as In, Z as It, la as J, Et as Jt, Ht as K, li as Kt, Gr as L, wr as Ln, Rt as Lt, co as M, zt as Mn, or as Mt, en as N, da as Nn, Dt as Nt, nr as O, St as On, on as Ot, Pi as P, j as Pn, ea as Pt, Wt as Q, gt as Qt, Yt as R, kt as Rn, Yo as Rt, oo as S, ws as Sn, $ as St, Co as T, No as Tn, Wr as Tt, ki as U, V as Un, wt as Ut, lo as V, S as Vn, Po as Vt, Kn as W, uo as Wn, Ss as Wt, Mr as X, Q as Xt, Vt as Y, Tt as Yt, Y as Z, Ts as Zt, X as _, ta as _n, an as _t, Ut as a, Qa as an, W as at, rs as b, Bi as bn, Jr as bt, Xn as c, At as cn, Nt as ct, Ya as d, Cs as dn, qo as dt, tn as en, ts as et, Ie as f, E as fn, ca as ft, U as g, Ot as gn, _o as gt, ns as h, Se as hn, Ii as ht, vo as i, A as in, Yn as it, va as j, Za as jn, bs as jt, Jt as k, Pt as kn, zi as kt, Mt as l, Ho as ln, _i as lt, z as m, _t as mn, nn as mt, Li as n, Kr as nn, ar as nt, Pr as o, mr as on, Hr as ot, Gt as p, Ui as pn, $a as pt, Jo as q, Zi as qt, M as r, Ko as rn, Zt as rt, Qt as s, Ce as sn, fo as st, rn as t, ds as tn, ao as tt, Tr as u, ra as un, It as ut, Bt as v, O as vn, ms as vt, rr as w, Ia as wn, G as wt, ga as x, tr as xn, yo as xt, Kt as y, sn as yn, $n as yt, Ai as z, Vo as zn, ua as zt };
5245
5252
 
5246
- //# sourceMappingURL=Lexical.prod-DIglXatJ.js.map
5253
+ //# sourceMappingURL=Lexical.prod-sbwgNRjw.js.map