@hubstr/kit 0.1.0

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 (6699) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +29 -0
  3. package/analytics/src/base.ts +108 -0
  4. package/analytics/src/config.ts +74 -0
  5. package/analytics/src/global.ts +280 -0
  6. package/analytics/src/index.test.ts +556 -0
  7. package/analytics/src/index.ts +48 -0
  8. package/analytics/src/manager.ts +210 -0
  9. package/analytics/src/providers/ga4.ts +264 -0
  10. package/analytics/src/providers/posthog-node.ts +301 -0
  11. package/analytics/src/providers/posthog.test.ts +57 -0
  12. package/analytics/src/providers/posthog.ts +242 -0
  13. package/analytics/src/providers/xads.test.ts +235 -0
  14. package/analytics/src/providers/xads.ts +285 -0
  15. package/analytics/src/react/hooks.ts +117 -0
  16. package/analytics/src/react/index.ts +23 -0
  17. package/analytics/src/react/provider.tsx +289 -0
  18. package/analytics/src/server.ts +88 -0
  19. package/analytics/src/types.ts +127 -0
  20. package/assets-logo/assets/logo-flat.svg +1 -0
  21. package/assets-logo/assets/logo-high-contrast.svg +1 -0
  22. package/assets-logo/assets/logo-text.svg +1 -0
  23. package/assets-logo/assets/logo.png +0 -0
  24. package/charts/src/AccuracyBarChart/demos/index.tsx +91 -0
  25. package/charts/src/AccuracyBarChart/index.md +50 -0
  26. package/charts/src/AccuracyBarChart/index.tsx +529 -0
  27. package/charts/src/AccuracyBarChart/styles.ts +67 -0
  28. package/charts/src/AreaChart/demos/axis.tsx +81 -0
  29. package/charts/src/AreaChart/demos/clickEvent.tsx +85 -0
  30. package/charts/src/AreaChart/demos/customColors.tsx +65 -0
  31. package/charts/src/AreaChart/demos/customTooltip.tsx +66 -0
  32. package/charts/src/AreaChart/demos/example.tsx +84 -0
  33. package/charts/src/AreaChart/demos/index.tsx +131 -0
  34. package/charts/src/AreaChart/index.md +42 -0
  35. package/charts/src/AreaChart/index.tsx +466 -0
  36. package/charts/src/AreaChart/styles.ts +24 -0
  37. package/charts/src/BarChart/demos/axis.tsx +52 -0
  38. package/charts/src/BarChart/demos/clickEvent.tsx +84 -0
  39. package/charts/src/BarChart/demos/customColors.tsx +65 -0
  40. package/charts/src/BarChart/demos/customTooltip.tsx +85 -0
  41. package/charts/src/BarChart/demos/example.tsx +50 -0
  42. package/charts/src/BarChart/demos/groups.tsx +58 -0
  43. package/charts/src/BarChart/demos/index.tsx +101 -0
  44. package/charts/src/BarChart/demos/loading.tsx +5 -0
  45. package/charts/src/BarChart/demos/noData.tsx +5 -0
  46. package/charts/src/BarChart/demos/xAxisLabelFormatter.tsx +45 -0
  47. package/charts/src/BarChart/index.md +62 -0
  48. package/charts/src/BarChart/index.tsx +407 -0
  49. package/charts/src/BarChart/renderShape.tsx +35 -0
  50. package/charts/src/BarChart/styles.ts +24 -0
  51. package/charts/src/BarList/demos/clickEvent.tsx +21 -0
  52. package/charts/src/BarList/demos/customColors.tsx +14 -0
  53. package/charts/src/BarList/demos/example.tsx +45 -0
  54. package/charts/src/BarList/demos/index.tsx +29 -0
  55. package/charts/src/BarList/index.md +29 -0
  56. package/charts/src/BarList/index.tsx +181 -0
  57. package/charts/src/BarList/styles.ts +60 -0
  58. package/charts/src/ComposedChart/demos/axis.tsx +33 -0
  59. package/charts/src/ComposedChart/demos/domain.tsx +46 -0
  60. package/charts/src/ComposedChart/demos/example.tsx +29 -0
  61. package/charts/src/ComposedChart/demos/index.tsx +74 -0
  62. package/charts/src/ComposedChart/demos/loading.tsx +13 -0
  63. package/charts/src/ComposedChart/demos/noData.tsx +12 -0
  64. package/charts/src/ComposedChart/index.md +36 -0
  65. package/charts/src/ComposedChart/index.tsx +344 -0
  66. package/charts/src/ComposedChart/styles.ts +24 -0
  67. package/charts/src/ComposedChart/types.ts +74 -0
  68. package/charts/src/DataBars/CategoryBar.tsx +204 -0
  69. package/charts/src/DataBars/DeltaBar.tsx +133 -0
  70. package/charts/src/DataBars/MarkerBar.tsx +105 -0
  71. package/charts/src/DataBars/ProgressBar.tsx +76 -0
  72. package/charts/src/DataBars/demos/CategoryBar.tsx +13 -0
  73. package/charts/src/DataBars/demos/DeltaBar.tsx +12 -0
  74. package/charts/src/DataBars/demos/MarkerBar.tsx +16 -0
  75. package/charts/src/DataBars/demos/ProgressBar.tsx +7 -0
  76. package/charts/src/DataBars/index.md +26 -0
  77. package/charts/src/DataBars/index.tsx +4 -0
  78. package/charts/src/DataBars/styles.ts +27 -0
  79. package/charts/src/DonutChart/DonutChartTooltip.tsx +38 -0
  80. package/charts/src/DonutChart/demos/clickEvent.tsx +47 -0
  81. package/charts/src/DonutChart/demos/customColors.tsx +41 -0
  82. package/charts/src/DonutChart/demos/customTooltip.tsx +72 -0
  83. package/charts/src/DonutChart/demos/example.tsx +51 -0
  84. package/charts/src/DonutChart/demos/index.tsx +62 -0
  85. package/charts/src/DonutChart/demos/withLegend.tsx +37 -0
  86. package/charts/src/DonutChart/index.md +41 -0
  87. package/charts/src/DonutChart/index.tsx +249 -0
  88. package/charts/src/DonutChart/inputParser.ts +12 -0
  89. package/charts/src/DonutChart/renderInactiveShape.tsx +22 -0
  90. package/charts/src/DonutChart/styles.ts +24 -0
  91. package/charts/src/FunnelChart/ArrowRightIcon.tsx +9 -0
  92. package/charts/src/FunnelChart/demos/CalculateFrom.tsx +30 -0
  93. package/charts/src/FunnelChart/demos/index.tsx +45 -0
  94. package/charts/src/FunnelChart/index.md +18 -0
  95. package/charts/src/FunnelChart/index.tsx +635 -0
  96. package/charts/src/FunnelChart/styles.ts +24 -0
  97. package/charts/src/FunnelChart/types.ts +30 -0
  98. package/charts/src/Heatmaps/Calendar.tsx +245 -0
  99. package/charts/src/Heatmaps/ChartLabels.tsx +168 -0
  100. package/charts/src/Heatmaps/Footer.tsx +138 -0
  101. package/charts/src/Heatmaps/demos/activityLevels.tsx +5 -0
  102. package/charts/src/Heatmaps/demos/clickEvent.tsx +17 -0
  103. package/charts/src/Heatmaps/demos/customColors.tsx +25 -0
  104. package/charts/src/Heatmaps/demos/customTooltip.tsx +34 -0
  105. package/charts/src/Heatmaps/demos/customization.tsx +7 -0
  106. package/charts/src/Heatmaps/demos/data.ts +2590 -0
  107. package/charts/src/Heatmaps/demos/dataRanges.tsx +12 -0
  108. package/charts/src/Heatmaps/demos/example.tsx +5 -0
  109. package/charts/src/Heatmaps/demos/i18n.tsx +32 -0
  110. package/charts/src/Heatmaps/demos/index.tsx +60 -0
  111. package/charts/src/Heatmaps/demos/loading.tsx +5 -0
  112. package/charts/src/Heatmaps/index.md +59 -0
  113. package/charts/src/Heatmaps/index.tsx +260 -0
  114. package/charts/src/Heatmaps/styles.ts +43 -0
  115. package/charts/src/Legend/LegendItem.tsx +81 -0
  116. package/charts/src/Legend/ScrollButton.tsx +59 -0
  117. package/charts/src/Legend/demos/index.tsx +17 -0
  118. package/charts/src/Legend/index.md +11 -0
  119. package/charts/src/Legend/index.tsx +207 -0
  120. package/charts/src/LineChart/demos/axis.tsx +81 -0
  121. package/charts/src/LineChart/demos/clickEvent.tsx +85 -0
  122. package/charts/src/LineChart/demos/customColors.tsx +65 -0
  123. package/charts/src/LineChart/demos/customTooltip.tsx +66 -0
  124. package/charts/src/LineChart/demos/example.tsx +84 -0
  125. package/charts/src/LineChart/demos/index.tsx +120 -0
  126. package/charts/src/LineChart/index.md +42 -0
  127. package/charts/src/LineChart/index.tsx +411 -0
  128. package/charts/src/LineChart/styles.ts +24 -0
  129. package/charts/src/ScatterChart/ScatterChartTooltip.tsx +85 -0
  130. package/charts/src/ScatterChart/ScatterChartTooltipRow.tsx +33 -0
  131. package/charts/src/ScatterChart/demos/axis.tsx +154 -0
  132. package/charts/src/ScatterChart/demos/clickEvent.tsx +162 -0
  133. package/charts/src/ScatterChart/demos/customColors.tsx +80 -0
  134. package/charts/src/ScatterChart/demos/customTooltip.tsx +118 -0
  135. package/charts/src/ScatterChart/demos/example.tsx +152 -0
  136. package/charts/src/ScatterChart/demos/index.tsx +192 -0
  137. package/charts/src/ScatterChart/index.md +42 -0
  138. package/charts/src/ScatterChart/index.tsx +397 -0
  139. package/charts/src/ScatterChart/renderShape.tsx +27 -0
  140. package/charts/src/ScatterChart/styles.ts +24 -0
  141. package/charts/src/SparkChart/SparkAreaChart.tsx +135 -0
  142. package/charts/src/SparkChart/SparkBarChart.tsx +92 -0
  143. package/charts/src/SparkChart/SparkLineChart.tsx +94 -0
  144. package/charts/src/SparkChart/demos/SparkAreaChart.tsx +43 -0
  145. package/charts/src/SparkChart/demos/SparkBarChart.tsx +43 -0
  146. package/charts/src/SparkChart/demos/SparkLineChart.tsx +43 -0
  147. package/charts/src/SparkChart/index.md +22 -0
  148. package/charts/src/SparkChart/index.tsx +3 -0
  149. package/charts/src/Tracker/TrackerBlock.tsx +67 -0
  150. package/charts/src/Tracker/demos/clickEvent.tsx +40 -0
  151. package/charts/src/Tracker/demos/customColors.tsx +27 -0
  152. package/charts/src/Tracker/demos/customTooltip.tsx +77 -0
  153. package/charts/src/Tracker/demos/example.tsx +30 -0
  154. package/charts/src/Tracker/demos/index.tsx +55 -0
  155. package/charts/src/Tracker/index.md +35 -0
  156. package/charts/src/Tracker/index.tsx +102 -0
  157. package/charts/src/Tracker/styles.ts +20 -0
  158. package/charts/src/common/BaseAnimationTimingProps.tsx +8 -0
  159. package/charts/src/common/BaseChartProps.tsx +65 -0
  160. package/charts/src/common/BaseSparkChartProps.tsx +18 -0
  161. package/charts/src/common/ChartLegend.tsx +45 -0
  162. package/charts/src/common/ChartTooltip/ChartTooltipFrame.tsx +25 -0
  163. package/charts/src/common/ChartTooltip/ChartTooltipRow.tsx +37 -0
  164. package/charts/src/common/ChartTooltip/index.tsx +71 -0
  165. package/charts/src/common/CustomTooltipProps.tsx +14 -0
  166. package/charts/src/common/CustomYAxisTick.tsx +42 -0
  167. package/charts/src/common/NoData.tsx +50 -0
  168. package/charts/src/common/utils.ts +63 -0
  169. package/charts/src/hooks/useOnWindowResize.ts +16 -0
  170. package/charts/src/hooks/usePrefersReducedMotion.ts +27 -0
  171. package/charts/src/hooks/useThemeColorRange.ts +28 -0
  172. package/charts/src/index.ts +24 -0
  173. package/charts/src/types/charts.ts +119 -0
  174. package/charts/src/types/global.d.ts +9 -0
  175. package/charts/src/utils/calendar.ts +255 -0
  176. package/charts/src/utils/getMaxLabelLength.ts +80 -0
  177. package/charts/src/utils/index.ts +29 -0
  178. package/charts/src/utils/theme.ts +49 -0
  179. package/cli-ui/dist/index.d.ts +447 -0
  180. package/cli-ui/dist/index.js +1 -0
  181. package/commitlint-config/dist/index.cjs +14 -0
  182. package/commitlint-config/dist/index.d.cts +10 -0
  183. package/commitlint-config/dist/index.d.cts.map +1 -0
  184. package/commitlint-config/dist/index.d.ts +10 -0
  185. package/commitlint-config/dist/index.d.ts.map +1 -0
  186. package/commitlint-config/dist/index.js +13 -0
  187. package/commitlint-config/dist/index.js.map +1 -0
  188. package/editor/patches/lexical@0.42.0.patch +82 -0
  189. package/editor/scripts/postinstall-lexical-patch.cjs +243 -0
  190. package/editor/src/codemirror/components/CopyButton.tsx +27 -0
  191. package/editor/src/codemirror/components/LanguageSelect.tsx +73 -0
  192. package/editor/src/codemirror/components/MoreOptions.tsx +60 -0
  193. package/editor/src/codemirror/components/Toolbar.tsx +64 -0
  194. package/editor/src/codemirror/components/style.ts +7 -0
  195. package/editor/src/codemirror/constants.ts +204 -0
  196. package/editor/src/codemirror/index.ts +21 -0
  197. package/editor/src/codemirror/loader.ts +168 -0
  198. package/editor/src/codemirror/style.ts +82 -0
  199. package/editor/src/codemirror/theme.ts +131 -0
  200. package/editor/src/codemirror/types.ts +55 -0
  201. package/editor/src/common/__tests__/sys.test.ts +63 -0
  202. package/editor/src/common/canUseDOM.ts +12 -0
  203. package/editor/src/common/sys.ts +34 -0
  204. package/editor/src/const/hotkey.ts +78 -0
  205. package/editor/src/editor-kernel/__tests__/basic-kernel.test.ts +196 -0
  206. package/editor/src/editor-kernel/__tests__/data-source.test.ts +160 -0
  207. package/editor/src/editor-kernel/__tests__/decorator-registration.test.ts +103 -0
  208. package/editor/src/editor-kernel/__tests__/event.test.ts +24 -0
  209. package/editor/src/editor-kernel/__tests__/lexical-patch.test.ts +115 -0
  210. package/editor/src/editor-kernel/__tests__/node.test.ts +106 -0
  211. package/editor/src/editor-kernel/__tests__/plugin.test.ts +280 -0
  212. package/editor/src/editor-kernel/__tests__/utils.test.ts +197 -0
  213. package/editor/src/editor-kernel/data-source.ts +22 -0
  214. package/editor/src/editor-kernel/event.ts +14 -0
  215. package/editor/src/editor-kernel/index.ts +21 -0
  216. package/editor/src/editor-kernel/inode/helper.ts +97 -0
  217. package/editor/src/editor-kernel/inode/i-element-node.ts +3 -0
  218. package/editor/src/editor-kernel/inode/i-node.ts +3 -0
  219. package/editor/src/editor-kernel/inode/index.ts +5 -0
  220. package/editor/src/editor-kernel/inode/paragraph-node.ts +7 -0
  221. package/editor/src/editor-kernel/inode/root-node.ts +6 -0
  222. package/editor/src/editor-kernel/inode/text-node.ts +6 -0
  223. package/editor/src/editor-kernel/kernel.ts +989 -0
  224. package/editor/src/editor-kernel/plugin.ts +70 -0
  225. package/editor/src/editor-kernel/react/LexicalErrorBoundary.tsx +38 -0
  226. package/editor/src/editor-kernel/react/PortalAnchor.tsx +22 -0
  227. package/editor/src/editor-kernel/react/PortalContainer.tsx +46 -0
  228. package/editor/src/editor-kernel/react/index.ts +5 -0
  229. package/editor/src/editor-kernel/react/react-context.ts +51 -0
  230. package/editor/src/editor-kernel/react/react-editor.tsx +65 -0
  231. package/editor/src/editor-kernel/react/useAnchor.ts +21 -0
  232. package/editor/src/editor-kernel/react/useDecorators.tsx +125 -0
  233. package/editor/src/editor-kernel/react/useEditable.ts +28 -0
  234. package/editor/src/editor-kernel/react/useLexicalEditor.ts +28 -0
  235. package/editor/src/editor-kernel/react/useLexicalNodeSelection.ts +129 -0
  236. package/editor/src/editor-kernel/react/useTranslation.ts +18 -0
  237. package/editor/src/editor-kernel/types.ts +0 -0
  238. package/editor/src/editor-kernel/utils.ts +219 -0
  239. package/editor/src/global.d.ts +14 -0
  240. package/editor/src/headless/__tests__/extract-media-from-editor-state.test.ts +211 -0
  241. package/editor/src/headless/__tests__/headless-editor.test.ts +445 -0
  242. package/editor/src/headless/extract-media-from-editor-state.ts +90 -0
  243. package/editor/src/headless/index.ts +388 -0
  244. package/editor/src/index.ts +73 -0
  245. package/editor/src/locale/index.ts +62 -0
  246. package/editor/src/plugins/__tests__/basic-plugin.test.ts +230 -0
  247. package/editor/src/plugins/auto-complete/index.ts +2 -0
  248. package/editor/src/plugins/auto-complete/node/placeholderNode.ts +124 -0
  249. package/editor/src/plugins/auto-complete/plugin/index.ts +651 -0
  250. package/editor/src/plugins/auto-complete/react/ReactAutoCompletePlugin.tsx +73 -0
  251. package/editor/src/plugins/auto-complete/react/index.ts +1 -0
  252. package/editor/src/plugins/auto-complete/react/style.ts +10 -0
  253. package/editor/src/plugins/auto-complete/react/type.ts +23 -0
  254. package/editor/src/plugins/block/command/index.ts +273 -0
  255. package/editor/src/plugins/block/index.ts +4 -0
  256. package/editor/src/plugins/block/plugin/index.ts +278 -0
  257. package/editor/src/plugins/block/react/ReactBlockPlugin.tsx +968 -0
  258. package/editor/src/plugins/block/react/core/constants.ts +4 -0
  259. package/editor/src/plugins/block/react/core/runtime-context.ts +40 -0
  260. package/editor/src/plugins/block/react/core/types.ts +18 -0
  261. package/editor/src/plugins/block/react/drag/drag-session.ts +425 -0
  262. package/editor/src/plugins/block/react/drag/drag-utils.ts +188 -0
  263. package/editor/src/plugins/block/react/index.ts +3 -0
  264. package/editor/src/plugins/block/react/style.ts +71 -0
  265. package/editor/src/plugins/block/service/i-block-menu-service.ts +186 -0
  266. package/editor/src/plugins/block/service/index.ts +1 -0
  267. package/editor/src/plugins/code/__tests__/litexml.test.ts +34 -0
  268. package/editor/src/plugins/code/command/index.ts +53 -0
  269. package/editor/src/plugins/code/demos/data.json +132 -0
  270. package/editor/src/plugins/code/demos/index.tsx +14 -0
  271. package/editor/src/plugins/code/index.md +188 -0
  272. package/editor/src/plugins/code/index.ts +3 -0
  273. package/editor/src/plugins/code/node/code.ts +153 -0
  274. package/editor/src/plugins/code/plugin/index.ts +112 -0
  275. package/editor/src/plugins/code/plugin/registry.ts +66 -0
  276. package/editor/src/plugins/code/react/CodeReactPlugin.tsx +29 -0
  277. package/editor/src/plugins/code/react/index.tsx +1 -0
  278. package/editor/src/plugins/code/react/style.ts +21 -0
  279. package/editor/src/plugins/code/react/type.ts +4 -0
  280. package/editor/src/plugins/codeblock/__tests__/litexml.test.ts +33 -0
  281. package/editor/src/plugins/codeblock/command/index.ts +58 -0
  282. package/editor/src/plugins/codeblock/command/symbols.ts +5 -0
  283. package/editor/src/plugins/codeblock/demos/data.json +158 -0
  284. package/editor/src/plugins/codeblock/demos/index.tsx +19 -0
  285. package/editor/src/plugins/codeblock/index.md +160 -0
  286. package/editor/src/plugins/codeblock/index.ts +4 -0
  287. package/editor/src/plugins/codeblock/plugin/CodeHighlighterShiki.ts +926 -0
  288. package/editor/src/plugins/codeblock/plugin/FacadeShiki.ts +411 -0
  289. package/editor/src/plugins/codeblock/plugin/index.ts +328 -0
  290. package/editor/src/plugins/codeblock/plugin/invariant.ts +22 -0
  291. package/editor/src/plugins/codeblock/react/ReactCodeblockPlugin.tsx +30 -0
  292. package/editor/src/plugins/codeblock/react/index.tsx +2 -0
  293. package/editor/src/plugins/codeblock/react/style.ts +56 -0
  294. package/editor/src/plugins/codeblock/react/type.ts +6 -0
  295. package/editor/src/plugins/codeblock/utils/language.ts +13 -0
  296. package/editor/src/plugins/codemirror-block/__tests__/litexml.test.ts +67 -0
  297. package/editor/src/plugins/codemirror-block/command/index.ts +133 -0
  298. package/editor/src/plugins/codemirror-block/index.ts +10 -0
  299. package/editor/src/plugins/codemirror-block/lib/index.ts +8 -0
  300. package/editor/src/plugins/codemirror-block/lib/mode.ts +37 -0
  301. package/editor/src/plugins/codemirror-block/node/CodeMirrorNode.ts +361 -0
  302. package/editor/src/plugins/codemirror-block/plugin/index.ts +116 -0
  303. package/editor/src/plugins/codemirror-block/react/CodemirrorNode.tsx +342 -0
  304. package/editor/src/plugins/codemirror-block/react/ReactCodemirrorNode.tsx +28 -0
  305. package/editor/src/plugins/codemirror-block/react/index.ts +1 -0
  306. package/editor/src/plugins/codemirror-block/react/type.ts +3 -0
  307. package/editor/src/plugins/common/command/index.ts +46 -0
  308. package/editor/src/plugins/common/data-source/json-data-source.ts +221 -0
  309. package/editor/src/plugins/common/data-source/text-data-source.ts +37 -0
  310. package/editor/src/plugins/common/demos/data.json +85 -0
  311. package/editor/src/plugins/common/demos/index.tsx +13 -0
  312. package/editor/src/plugins/common/index.md +83 -0
  313. package/editor/src/plugins/common/index.ts +10 -0
  314. package/editor/src/plugins/common/node/ElementDOMSlot.ts +43 -0
  315. package/editor/src/plugins/common/node/cursor.ts +309 -0
  316. package/editor/src/plugins/common/plugin/__test__/litexml.test.ts +79 -0
  317. package/editor/src/plugins/common/plugin/__test__/markdown.test.ts +54 -0
  318. package/editor/src/plugins/common/plugin/index.ts +660 -0
  319. package/editor/src/plugins/common/plugin/mdReader.ts +98 -0
  320. package/editor/src/plugins/common/plugin/paste-handler.ts +138 -0
  321. package/editor/src/plugins/common/plugin/register.ts +504 -0
  322. package/editor/src/plugins/common/react/Placeholder/index.tsx +108 -0
  323. package/editor/src/plugins/common/react/Placeholder/style.ts +21 -0
  324. package/editor/src/plugins/common/react/ReactEditorContent.tsx +13 -0
  325. package/editor/src/plugins/common/react/ReactPlainText.tsx +258 -0
  326. package/editor/src/plugins/common/react/index.ts +3 -0
  327. package/editor/src/plugins/common/react/style.ts +213 -0
  328. package/editor/src/plugins/common/react/type.ts +82 -0
  329. package/editor/src/plugins/common/utils/__test__/utils.test.ts +749 -0
  330. package/editor/src/plugins/common/utils/index.ts +222 -0
  331. package/editor/src/plugins/content-blocks/data-source/content-blocks-data-source.ts +31 -0
  332. package/editor/src/plugins/content-blocks/demos/data.json +81 -0
  333. package/editor/src/plugins/content-blocks/demos/headless.tsx +125 -0
  334. package/editor/src/plugins/content-blocks/demos/index.tsx +105 -0
  335. package/editor/src/plugins/content-blocks/index.md +273 -0
  336. package/editor/src/plugins/content-blocks/index.ts +16 -0
  337. package/editor/src/plugins/content-blocks/plugin/index.ts +40 -0
  338. package/editor/src/plugins/content-blocks/types.ts +39 -0
  339. package/editor/src/plugins/content-blocks/utils/__tests__/extract-media-lists.test.ts +59 -0
  340. package/editor/src/plugins/content-blocks/utils/__tests__/extract.test.ts +274 -0
  341. package/editor/src/plugins/content-blocks/utils/extract-media-lists.ts +35 -0
  342. package/editor/src/plugins/content-blocks/utils/extract.ts +290 -0
  343. package/editor/src/plugins/file/command/index.ts +50 -0
  344. package/editor/src/plugins/file/demos/data.json +30 -0
  345. package/editor/src/plugins/file/demos/index.tsx +23 -0
  346. package/editor/src/plugins/file/index.md +315 -0
  347. package/editor/src/plugins/file/index.ts +3 -0
  348. package/editor/src/plugins/file/node/FileNode.ts +190 -0
  349. package/editor/src/plugins/file/plugin/index.ts +165 -0
  350. package/editor/src/plugins/file/react/ReactFilePlugin.tsx +47 -0
  351. package/editor/src/plugins/file/react/components/ReactFile.tsx +60 -0
  352. package/editor/src/plugins/file/react/index.ts +2 -0
  353. package/editor/src/plugins/file/react/style.ts +33 -0
  354. package/editor/src/plugins/file/react/type.ts +12 -0
  355. package/editor/src/plugins/file/utils/index.ts +36 -0
  356. package/editor/src/plugins/hr/command/index.ts +21 -0
  357. package/editor/src/plugins/hr/demos/data.json +55 -0
  358. package/editor/src/plugins/hr/demos/index.tsx +14 -0
  359. package/editor/src/plugins/hr/index.md +323 -0
  360. package/editor/src/plugins/hr/index.ts +3 -0
  361. package/editor/src/plugins/hr/node/HorizontalRuleNode.ts +88 -0
  362. package/editor/src/plugins/hr/plugin/index.ts +103 -0
  363. package/editor/src/plugins/hr/react/ReactHRPlugin.tsx +30 -0
  364. package/editor/src/plugins/hr/react/components/HRNode.tsx +53 -0
  365. package/editor/src/plugins/hr/react/index.tsx +2 -0
  366. package/editor/src/plugins/hr/react/style.ts +32 -0
  367. package/editor/src/plugins/hr/react/type.ts +3 -0
  368. package/editor/src/plugins/image/__test__/litexml.test.ts +37 -0
  369. package/editor/src/plugins/image/command/index.ts +87 -0
  370. package/editor/src/plugins/image/demos/data.json +53 -0
  371. package/editor/src/plugins/image/demos/index.tsx +82 -0
  372. package/editor/src/plugins/image/index.md +261 -0
  373. package/editor/src/plugins/image/index.ts +3 -0
  374. package/editor/src/plugins/image/node/basie-image-node.ts +137 -0
  375. package/editor/src/plugins/image/node/block-image-node.tsx +189 -0
  376. package/editor/src/plugins/image/node/image-node.tsx +174 -0
  377. package/editor/src/plugins/image/plugin/index.ts +262 -0
  378. package/editor/src/plugins/image/react/ReactImagePlugin.tsx +78 -0
  379. package/editor/src/plugins/image/react/components/BrokenImage.tsx +23 -0
  380. package/editor/src/plugins/image/react/components/Image.tsx +262 -0
  381. package/editor/src/plugins/image/react/components/ImageEditPopover.tsx +202 -0
  382. package/editor/src/plugins/image/react/components/LazyImage.tsx +114 -0
  383. package/editor/src/plugins/image/react/components/ResizeHandle.tsx +106 -0
  384. package/editor/src/plugins/image/react/components/__tests__/Image.test.tsx +138 -0
  385. package/editor/src/plugins/image/react/components/style.ts +140 -0
  386. package/editor/src/plugins/image/react/components/useSupenseImage.ts +21 -0
  387. package/editor/src/plugins/image/react/index.ts +2 -0
  388. package/editor/src/plugins/image/react/style.ts +33 -0
  389. package/editor/src/plugins/image/react/type.ts +16 -0
  390. package/editor/src/plugins/inode/index.ts +3 -0
  391. package/editor/src/plugins/inode/plugin/index.ts +41 -0
  392. package/editor/src/plugins/inode/react/index.tsx +21 -0
  393. package/editor/src/plugins/inode/service/index.ts +30 -0
  394. package/editor/src/plugins/link/__test__/litexml.test.ts +37 -0
  395. package/editor/src/plugins/link/command/index.ts +62 -0
  396. package/editor/src/plugins/link/demos/data.json +44 -0
  397. package/editor/src/plugins/link/demos/index.tsx +14 -0
  398. package/editor/src/plugins/link/index.md +291 -0
  399. package/editor/src/plugins/link/index.ts +4 -0
  400. package/editor/src/plugins/link/node/LinkNode.ts +703 -0
  401. package/editor/src/plugins/link/plugin/index.ts +161 -0
  402. package/editor/src/plugins/link/plugin/registry.ts +126 -0
  403. package/editor/src/plugins/link/react/ReactLinkPlugin.tsx +58 -0
  404. package/editor/src/plugins/link/react/components/LinkEdit.tsx +283 -0
  405. package/editor/src/plugins/link/react/components/LinkToolbar.tsx +208 -0
  406. package/editor/src/plugins/link/react/index.tsx +2 -0
  407. package/editor/src/plugins/link/react/style.ts +40 -0
  408. package/editor/src/plugins/link/react/type.ts +11 -0
  409. package/editor/src/plugins/link/service/i-link-service.ts +25 -0
  410. package/editor/src/plugins/link/utils/index.ts +55 -0
  411. package/editor/src/plugins/link-highlight/command/index.ts +60 -0
  412. package/editor/src/plugins/link-highlight/demos/data.json +68 -0
  413. package/editor/src/plugins/link-highlight/demos/index.tsx +19 -0
  414. package/editor/src/plugins/link-highlight/index.md +443 -0
  415. package/editor/src/plugins/link-highlight/index.ts +4 -0
  416. package/editor/src/plugins/link-highlight/node/link-highlight.ts +173 -0
  417. package/editor/src/plugins/link-highlight/plugin/index.ts +218 -0
  418. package/editor/src/plugins/link-highlight/plugin/registry.ts +63 -0
  419. package/editor/src/plugins/link-highlight/react/ReactLinkHighlightPlugin.tsx +32 -0
  420. package/editor/src/plugins/link-highlight/react/index.tsx +1 -0
  421. package/editor/src/plugins/link-highlight/react/style.ts +14 -0
  422. package/editor/src/plugins/link-highlight/react/type.ts +13 -0
  423. package/editor/src/plugins/link-highlight/utils/index.ts +43 -0
  424. package/editor/src/plugins/list/__test__/litexml.test.ts +37 -0
  425. package/editor/src/plugins/list/command/index.ts +7 -0
  426. package/editor/src/plugins/list/demos/data.json +241 -0
  427. package/editor/src/plugins/list/demos/index.tsx +14 -0
  428. package/editor/src/plugins/list/index.md +301 -0
  429. package/editor/src/plugins/list/index.ts +3 -0
  430. package/editor/src/plugins/list/plugin/checkList.ts +264 -0
  431. package/editor/src/plugins/list/plugin/index.test.ts +36 -0
  432. package/editor/src/plugins/list/plugin/index.ts +266 -0
  433. package/editor/src/plugins/list/plugin/registry.ts +151 -0
  434. package/editor/src/plugins/list/react/ReactListPlugin.tsx +28 -0
  435. package/editor/src/plugins/list/react/index.ts +2 -0
  436. package/editor/src/plugins/list/react/style.ts +123 -0
  437. package/editor/src/plugins/list/react/type.ts +4 -0
  438. package/editor/src/plugins/list/utils/index.ts +98 -0
  439. package/editor/src/plugins/litexml/__test__/command.test.ts +319 -0
  440. package/editor/src/plugins/litexml/__test__/secondary_diff.test.ts +387 -0
  441. package/editor/src/plugins/litexml/command/diffCommand.ts +134 -0
  442. package/editor/src/plugins/litexml/command/index.ts +544 -0
  443. package/editor/src/plugins/litexml/command/symbols.ts +78 -0
  444. package/editor/src/plugins/litexml/data-source/litexml-data-source.ts +397 -0
  445. package/editor/src/plugins/litexml/index.ts +23 -0
  446. package/editor/src/plugins/litexml/node/DiffNode.ts +153 -0
  447. package/editor/src/plugins/litexml/plugin/index.ts +179 -0
  448. package/editor/src/plugins/litexml/react/DiffNodeToolbar/index.tsx +73 -0
  449. package/editor/src/plugins/litexml/react/DiffNodeToolbar/style.ts +22 -0
  450. package/editor/src/plugins/litexml/react/hooks/useHasDiffNode.ts +53 -0
  451. package/editor/src/plugins/litexml/react/index.tsx +28 -0
  452. package/editor/src/plugins/litexml/react/style.ts +124 -0
  453. package/editor/src/plugins/litexml/service/litexml-service.ts +142 -0
  454. package/editor/src/plugins/litexml/utils/index.ts +109 -0
  455. package/editor/src/plugins/markdown/command/__tests__/command.test.ts +612 -0
  456. package/editor/src/plugins/markdown/command/index.ts +131 -0
  457. package/editor/src/plugins/markdown/data-source/markdown/parse.test.ts +173 -0
  458. package/editor/src/plugins/markdown/data-source/markdown/parse.ts +325 -0
  459. package/editor/src/plugins/markdown/data-source/markdown/supersub.ts +17 -0
  460. package/editor/src/plugins/markdown/data-source/markdown-data-source.ts +236 -0
  461. package/editor/src/plugins/markdown/data-source/markdown-writer-context.ts +64 -0
  462. package/editor/src/plugins/markdown/index.md +396 -0
  463. package/editor/src/plugins/markdown/index.ts +13 -0
  464. package/editor/src/plugins/markdown/plugin/__tests__/paste.test.ts +122 -0
  465. package/editor/src/plugins/markdown/plugin/index.ts +461 -0
  466. package/editor/src/plugins/markdown/react/index.tsx +37 -0
  467. package/editor/src/plugins/markdown/service/shortcut.ts +286 -0
  468. package/editor/src/plugins/markdown/service/transformers.ts +378 -0
  469. package/editor/src/plugins/markdown/utils/detectLanguage.ts +310 -0
  470. package/editor/src/plugins/markdown/utils/index.ts +243 -0
  471. package/editor/src/plugins/markdown/utils/logger.ts +3 -0
  472. package/editor/src/plugins/markdown/utils/url-validator.ts +6 -0
  473. package/editor/src/plugins/math/__tests__/litexml.test.ts +37 -0
  474. package/editor/src/plugins/math/__tests__/math.test.ts +111 -0
  475. package/editor/src/plugins/math/__tests__/utils.test.ts +40 -0
  476. package/editor/src/plugins/math/command/index.ts +79 -0
  477. package/editor/src/plugins/math/demos/data.json +149 -0
  478. package/editor/src/plugins/math/demos/index.tsx +14 -0
  479. package/editor/src/plugins/math/index.md +377 -0
  480. package/editor/src/plugins/math/index.ts +3 -0
  481. package/editor/src/plugins/math/node/index.ts +234 -0
  482. package/editor/src/plugins/math/plugin/index.ts +175 -0
  483. package/editor/src/plugins/math/react/components/MathEditor.tsx +280 -0
  484. package/editor/src/plugins/math/react/components/MathEditorContainer.tsx +126 -0
  485. package/editor/src/plugins/math/react/components/MathEditorContent.tsx +199 -0
  486. package/editor/src/plugins/math/react/components/MathInline.tsx +139 -0
  487. package/editor/src/plugins/math/react/components/Placeholder.tsx +36 -0
  488. package/editor/src/plugins/math/react/index.tsx +30 -0
  489. package/editor/src/plugins/math/react/style.ts +102 -0
  490. package/editor/src/plugins/math/react/type.ts +11 -0
  491. package/editor/src/plugins/math/utils/index.ts +27 -0
  492. package/editor/src/plugins/mention/__test__/litexml.test.ts +68 -0
  493. package/editor/src/plugins/mention/command/index.ts +35 -0
  494. package/editor/src/plugins/mention/demos/data.json +39 -0
  495. package/editor/src/plugins/mention/demos/index.tsx +68 -0
  496. package/editor/src/plugins/mention/index.md +100 -0
  497. package/editor/src/plugins/mention/index.ts +4 -0
  498. package/editor/src/plugins/mention/node/MentionNode.ts +136 -0
  499. package/editor/src/plugins/mention/plugin/__tests__/mention.test.ts +60 -0
  500. package/editor/src/plugins/mention/plugin/index.ts +115 -0
  501. package/editor/src/plugins/mention/plugin/register.ts +38 -0
  502. package/editor/src/plugins/mention/react/ReactMentionPlugin.tsx +32 -0
  503. package/editor/src/plugins/mention/react/components/Mention.tsx +45 -0
  504. package/editor/src/plugins/mention/react/index.ts +2 -0
  505. package/editor/src/plugins/mention/react/style.ts +35 -0
  506. package/editor/src/plugins/mention/react/type.ts +9 -0
  507. package/editor/src/plugins/slash/demos/index.tsx +55 -0
  508. package/editor/src/plugins/slash/index.md +204 -0
  509. package/editor/src/plugins/slash/index.ts +4 -0
  510. package/editor/src/plugins/slash/plugin/index.ts +295 -0
  511. package/editor/src/plugins/slash/react/ReactSlashOption.tsx +13 -0
  512. package/editor/src/plugins/slash/react/ReactSlashPlugin.tsx +300 -0
  513. package/editor/src/plugins/slash/react/components/DefaultSlashMenu.tsx +174 -0
  514. package/editor/src/plugins/slash/react/components/SlashMenu.tsx +71 -0
  515. package/editor/src/plugins/slash/react/index.ts +4 -0
  516. package/editor/src/plugins/slash/react/style.ts +8 -0
  517. package/editor/src/plugins/slash/react/type.ts +113 -0
  518. package/editor/src/plugins/slash/react/utils.ts +32 -0
  519. package/editor/src/plugins/slash/service/i-slash-service.ts +134 -0
  520. package/editor/src/plugins/slash/utils/utils.ts +236 -0
  521. package/editor/src/plugins/table/__test__/litexml.test.ts +48 -0
  522. package/editor/src/plugins/table/command/index.ts +508 -0
  523. package/editor/src/plugins/table/demos/data.json +345 -0
  524. package/editor/src/plugins/table/demos/index.tsx +14 -0
  525. package/editor/src/plugins/table/demos/scrollable.json +2454 -0
  526. package/editor/src/plugins/table/demos/scrollable.tsx +14 -0
  527. package/editor/src/plugins/table/index.md +228 -0
  528. package/editor/src/plugins/table/index.ts +9 -0
  529. package/editor/src/plugins/table/node/index.ts +236 -0
  530. package/editor/src/plugins/table/plugin/index.ts +482 -0
  531. package/editor/src/plugins/table/react/TableActionMenu/ActionMenu.tsx +464 -0
  532. package/editor/src/plugins/table/react/TableActionMenu/index.tsx +229 -0
  533. package/editor/src/plugins/table/react/TableActionMenu/style.ts +18 -0
  534. package/editor/src/plugins/table/react/TableActionMenu/utils.ts +62 -0
  535. package/editor/src/plugins/table/react/TableColController.tsx +507 -0
  536. package/editor/src/plugins/table/react/TableController/hooks.ts +300 -0
  537. package/editor/src/plugins/table/react/TableController/style.ts +263 -0
  538. package/editor/src/plugins/table/react/TableController/utils.ts +22 -0
  539. package/editor/src/plugins/table/react/TableControllerButton.tsx +146 -0
  540. package/editor/src/plugins/table/react/TableControllerMenu.tsx +196 -0
  541. package/editor/src/plugins/table/react/TableHoverActions/index.tsx +248 -0
  542. package/editor/src/plugins/table/react/TableHoverActions/style.ts +14 -0
  543. package/editor/src/plugins/table/react/TableHoverActions/utils.ts +65 -0
  544. package/editor/src/plugins/table/react/TableInsertButton.tsx +42 -0
  545. package/editor/src/plugins/table/react/TableResize/index.tsx +573 -0
  546. package/editor/src/plugins/table/react/TableResize/style.ts +17 -0
  547. package/editor/src/plugins/table/react/TableResize/utils.ts +20 -0
  548. package/editor/src/plugins/table/react/TableRowController.tsx +500 -0
  549. package/editor/src/plugins/table/react/hooks.ts +148 -0
  550. package/editor/src/plugins/table/react/index.tsx +271 -0
  551. package/editor/src/plugins/table/react/style.ts +154 -0
  552. package/editor/src/plugins/table/react/type.ts +9 -0
  553. package/editor/src/plugins/table/react/useAutoFitPastedTable.ts +360 -0
  554. package/editor/src/plugins/table/service/i-table-controller-menu-service.ts +81 -0
  555. package/editor/src/plugins/table/service/index.ts +1 -0
  556. package/editor/src/plugins/table/utils/autoFitColumnWidth.ts +132 -0
  557. package/editor/src/plugins/table/utils/distributeColumnWidth.ts +67 -0
  558. package/editor/src/plugins/table/utils/index.ts +298 -0
  559. package/editor/src/plugins/toolbar/command/index.ts +34 -0
  560. package/editor/src/plugins/toolbar/index.ts +2 -0
  561. package/editor/src/plugins/toolbar/react/index.tsx +178 -0
  562. package/editor/src/plugins/toolbar/react/style.ts +53 -0
  563. package/editor/src/plugins/toolbar/react/type.ts +6 -0
  564. package/editor/src/plugins/toolbar/utils/getDOMRangeRect.ts +24 -0
  565. package/editor/src/plugins/toolbar/utils/setFloatingElemPosition.ts +85 -0
  566. package/editor/src/plugins/upload/index.md +375 -0
  567. package/editor/src/plugins/upload/index.ts +7 -0
  568. package/editor/src/plugins/upload/plugin/index.ts +72 -0
  569. package/editor/src/plugins/upload/service/i-upload-service.ts +56 -0
  570. package/editor/src/plugins/upload/utils/index.ts +23 -0
  571. package/editor/src/plugins/virtual-block/index.ts +2 -0
  572. package/editor/src/plugins/virtual-block/plugin/index.ts +32 -0
  573. package/editor/src/plugins/virtual-block/plugin/register.ts +327 -0
  574. package/editor/src/plugins/virtual-block/react/ReactVirtualBlock.tsx +21 -0
  575. package/editor/src/plugins/virtual-block/react/index.tsx +1 -0
  576. package/editor/src/react/ChatInput/ChatInput.tsx +148 -0
  577. package/editor/src/react/ChatInput/demos/ActionToolbar.tsx +114 -0
  578. package/editor/src/react/ChatInput/demos/Container.tsx +61 -0
  579. package/editor/src/react/ChatInput/demos/InputEditor.tsx +191 -0
  580. package/editor/src/react/ChatInput/demos/TypoToolbar.tsx +167 -0
  581. package/editor/src/react/ChatInput/demos/data.ts +117 -0
  582. package/editor/src/react/ChatInput/demos/index.tsx +122 -0
  583. package/editor/src/react/ChatInput/index.md +40 -0
  584. package/editor/src/react/ChatInput/index.ts +2 -0
  585. package/editor/src/react/ChatInput/style.ts +119 -0
  586. package/editor/src/react/ChatInput/type.ts +29 -0
  587. package/editor/src/react/ChatInputActionBar/ChatInputActionBar.tsx +36 -0
  588. package/editor/src/react/ChatInputActionBar/demos/index.tsx +86 -0
  589. package/editor/src/react/ChatInputActionBar/index.md +29 -0
  590. package/editor/src/react/ChatInputActionBar/index.ts +2 -0
  591. package/editor/src/react/ChatInputActionBar/style.ts +7 -0
  592. package/editor/src/react/ChatInputActionBar/type.ts +7 -0
  593. package/editor/src/react/ChatInputActions/ChatInputActions.tsx +97 -0
  594. package/editor/src/react/ChatInputActions/components/ActionItem.tsx +82 -0
  595. package/editor/src/react/ChatInputActions/components/ActionRender.tsx +58 -0
  596. package/editor/src/react/ChatInputActions/components/CollapsedActions.tsx +81 -0
  597. package/editor/src/react/ChatInputActions/components/useDisplayActionCount.ts +59 -0
  598. package/editor/src/react/ChatInputActions/demos/Collapse.tsx +74 -0
  599. package/editor/src/react/ChatInputActions/demos/index.tsx +69 -0
  600. package/editor/src/react/ChatInputActions/index.md +83 -0
  601. package/editor/src/react/ChatInputActions/index.ts +2 -0
  602. package/editor/src/react/ChatInputActions/style.ts +18 -0
  603. package/editor/src/react/ChatInputActions/type.ts +48 -0
  604. package/editor/src/react/CodeLanguageSelect/CodeLanguageSelect.tsx +78 -0
  605. package/editor/src/react/CodeLanguageSelect/demos/index.tsx +5 -0
  606. package/editor/src/react/CodeLanguageSelect/index.md +34 -0
  607. package/editor/src/react/CodeLanguageSelect/index.ts +2 -0
  608. package/editor/src/react/CodeLanguageSelect/style.ts +7 -0
  609. package/editor/src/react/CodeLanguageSelect/type.ts +3 -0
  610. package/editor/src/react/Editor/Editor.tsx +154 -0
  611. package/editor/src/react/Editor/demos/Container.tsx +120 -0
  612. package/editor/src/react/Editor/demos/Toolbar.tsx +238 -0
  613. package/editor/src/react/Editor/demos/XmlModifier.tsx +101 -0
  614. package/editor/src/react/Editor/demos/actions.ts +29 -0
  615. package/editor/src/react/Editor/demos/data.json +546 -0
  616. package/editor/src/react/Editor/demos/disableMakrdownData.json +272 -0
  617. package/editor/src/react/Editor/demos/disableMarkdown.tsx +221 -0
  618. package/editor/src/react/Editor/demos/editable.tsx +54 -0
  619. package/editor/src/react/Editor/demos/index.tsx +379 -0
  620. package/editor/src/react/Editor/demos/pasteAsPlainText.tsx +365 -0
  621. package/editor/src/react/Editor/demos/useToolbarItems.tsx +195 -0
  622. package/editor/src/react/Editor/index.md +392 -0
  623. package/editor/src/react/Editor/index.ts +24 -0
  624. package/editor/src/react/Editor/type.ts +67 -0
  625. package/editor/src/react/Editor/utils.ts +8 -0
  626. package/editor/src/react/EditorProvider/demos/index.tsx +40 -0
  627. package/editor/src/react/EditorProvider/index.md +109 -0
  628. package/editor/src/react/EditorProvider/index.tsx +41 -0
  629. package/editor/src/react/FloatActions/FloatActions.tsx +55 -0
  630. package/editor/src/react/FloatActions/components/ActionItem.tsx +80 -0
  631. package/editor/src/react/FloatActions/components/ActionRender.tsx +58 -0
  632. package/editor/src/react/FloatActions/components/CollapsedActions.tsx +81 -0
  633. package/editor/src/react/FloatActions/demos/Collapse.tsx +74 -0
  634. package/editor/src/react/FloatActions/demos/index.tsx +69 -0
  635. package/editor/src/react/FloatActions/index.md +82 -0
  636. package/editor/src/react/FloatActions/index.ts +2 -0
  637. package/editor/src/react/FloatActions/style.ts +17 -0
  638. package/editor/src/react/FloatActions/type.ts +45 -0
  639. package/editor/src/react/FloatMenu/FloatMenu.tsx +55 -0
  640. package/editor/src/react/FloatMenu/index.ts +2 -0
  641. package/editor/src/react/FloatMenu/style.ts +26 -0
  642. package/editor/src/react/FloatMenu/type.ts +22 -0
  643. package/editor/src/react/SendButton/SendButton.tsx +153 -0
  644. package/editor/src/react/SendButton/components/SendIcon.tsx +35 -0
  645. package/editor/src/react/SendButton/components/StopIcon.tsx +57 -0
  646. package/editor/src/react/SendButton/demos/index.tsx +58 -0
  647. package/editor/src/react/SendButton/index.md +31 -0
  648. package/editor/src/react/SendButton/index.ts +2 -0
  649. package/editor/src/react/SendButton/style.ts +67 -0
  650. package/editor/src/react/SendButton/type.ts +9 -0
  651. package/editor/src/react/SlashMenu/SlashMenu.tsx +69 -0
  652. package/editor/src/react/SlashMenu/index.ts +2 -0
  653. package/editor/src/react/SlashMenu/type.ts +15 -0
  654. package/editor/src/react/hooks/useEditor.ts +8 -0
  655. package/editor/src/react/hooks/useEditorState/index.ts +612 -0
  656. package/editor/src/react/hooks/useEditorState/utils.ts +50 -0
  657. package/editor/src/react/hooks/useSize.ts +75 -0
  658. package/editor/src/react/index.ts +22 -0
  659. package/editor/src/renderer/LexicalDiff/demos/borderless.tsx +41 -0
  660. package/editor/src/renderer/LexicalDiff/demos/complex-document.tsx +44 -0
  661. package/editor/src/renderer/LexicalDiff/demos/diff-node.tsx +29 -0
  662. package/editor/src/renderer/LexicalDiff/demos/fixtures.ts +148 -0
  663. package/editor/src/renderer/LexicalDiff/demos/index.tsx +134 -0
  664. package/editor/src/renderer/LexicalDiff/demos/inline-modifications.tsx +32 -0
  665. package/editor/src/renderer/LexicalDiff/demos/list-diff.tsx +39 -0
  666. package/editor/src/renderer/LexicalDiff/demos/renderers.tsx +184 -0
  667. package/editor/src/renderer/LexicalDiff/index.md +62 -0
  668. package/editor/src/renderer/LexicalDiff.tsx +166 -0
  669. package/editor/src/renderer/LexicalRenderer/demos/compare.tsx +174 -0
  670. package/editor/src/renderer/LexicalRenderer/demos/data.json +1670 -0
  671. package/editor/src/renderer/LexicalRenderer/demos/fixture.json +886 -0
  672. package/editor/src/renderer/LexicalRenderer/demos/index.tsx +13 -0
  673. package/editor/src/renderer/LexicalRenderer/demos/mermaid.json +62 -0
  674. package/editor/src/renderer/LexicalRenderer/demos/paperParagraph.json +34 -0
  675. package/editor/src/renderer/LexicalRenderer/index.md +34 -0
  676. package/editor/src/renderer/LexicalRenderer.tsx +61 -0
  677. package/editor/src/renderer/__tests__/LexicalDiff.test.tsx +380 -0
  678. package/editor/src/renderer/__tests__/LexicalRenderer.test.tsx +439 -0
  679. package/editor/src/renderer/__tests__/benchmark.bench.tsx +86 -0
  680. package/editor/src/renderer/__tests__/render-builtin-node.test.tsx +110 -0
  681. package/editor/src/renderer/__tests__/render-text-node.test.tsx +72 -0
  682. package/editor/src/renderer/diff/compute.ts +584 -0
  683. package/editor/src/renderer/diff/style.ts +123 -0
  684. package/editor/src/renderer/diff/types.ts +32 -0
  685. package/editor/src/renderer/engine/render-builtin-node.tsx +312 -0
  686. package/editor/src/renderer/engine/render-text-node.tsx +47 -0
  687. package/editor/src/renderer/engine/render-tree.ts +74 -0
  688. package/editor/src/renderer/engine/shiki.ts +32 -0
  689. package/editor/src/renderer/engine/utils.ts +15 -0
  690. package/editor/src/renderer/index.ts +22 -0
  691. package/editor/src/renderer/nodes/index.ts +47 -0
  692. package/editor/src/renderer/renderers/codeblock.tsx +26 -0
  693. package/editor/src/renderer/renderers/file.tsx +30 -0
  694. package/editor/src/renderer/renderers/horizontalrule.tsx +27 -0
  695. package/editor/src/renderer/renderers/image.tsx +31 -0
  696. package/editor/src/renderer/renderers/index.ts +20 -0
  697. package/editor/src/renderer/renderers/math.tsx +20 -0
  698. package/editor/src/renderer/renderers/mention.tsx +12 -0
  699. package/editor/src/renderer/renderers/mermaid.tsx +21 -0
  700. package/editor/src/renderer/style.ts +63 -0
  701. package/editor/src/renderer/types.ts +35 -0
  702. package/editor/src/types/global.d.ts +88 -0
  703. package/editor/src/types/hotkey.ts +97 -0
  704. package/editor/src/types/index.ts +2 -0
  705. package/editor/src/types/kernel.ts +425 -0
  706. package/editor/src/types/locale.ts +25 -0
  707. package/editor/src/utils/cx.ts +3 -0
  708. package/editor/src/utils/debug.ts +306 -0
  709. package/editor/src/utils/hotkey/isHotkeyMatch.ts +14 -0
  710. package/editor/src/utils/hotkey/parseHotkeys.ts +56 -0
  711. package/editor/src/utils/hotkey/registerHotkey.ts +46 -0
  712. package/editor/src/utils/scrollIntoView.ts +47 -0
  713. package/editor/src/utils/updatePosition.ts +43 -0
  714. package/editor/src/utils/url.ts +56 -0
  715. package/emojilib/README.md +73 -0
  716. package/emojilib/index.json +1872 -0
  717. package/emojilib/package.json +27 -0
  718. package/eslint-config/dist/eslint-typegen.d.ts +10213 -0
  719. package/eslint-config/dist/index.cjs +600 -0
  720. package/eslint-config/dist/index.d.cts +98 -0
  721. package/eslint-config/dist/index.d.cts.map +1 -0
  722. package/eslint-config/dist/index.d.ts +98 -0
  723. package/eslint-config/dist/index.d.ts.map +1 -0
  724. package/eslint-config/dist/index.js +565 -0
  725. package/eslint-config/dist/index.js.map +1 -0
  726. package/fluent-emoji/es/FluentEmoji/index.d.ts +13 -0
  727. package/fluent-emoji/es/FluentEmoji/index.js +86 -0
  728. package/fluent-emoji/es/FluentEmoji/style.d.ts +3 -0
  729. package/fluent-emoji/es/FluentEmoji/style.js +9 -0
  730. package/fluent-emoji/es/getEmojiByCharacter/index.d.ts +2 -0
  731. package/fluent-emoji/es/getEmojiByCharacter/index.js +14 -0
  732. package/fluent-emoji/es/getFluentEmojiCDN/demo.d.ts +2 -0
  733. package/fluent-emoji/es/getFluentEmojiCDN/demo.js +46 -0
  734. package/fluent-emoji/es/getFluentEmojiCDN/index.d.ts +6 -0
  735. package/fluent-emoji/es/getFluentEmojiCDN/index.js +22 -0
  736. package/fluent-emoji/es/getFluentEmojiCDN/utils.d.ts +8 -0
  737. package/fluent-emoji/es/getFluentEmojiCDN/utils.js +68 -0
  738. package/fluent-emoji/es/index.d.ts +3 -0
  739. package/fluent-emoji/es/index.js +3 -0
  740. package/i18n-cli/dist/cli.js +22 -0
  741. package/i18n-cli/dist/index.cjs +1 -0
  742. package/i18n-cli/dist/index.d.cts +303 -0
  743. package/i18n-cli/dist/index.d.mts +303 -0
  744. package/i18n-cli/dist/index.mjs +1 -0
  745. package/icons/es/Ace/components/Avatar.d.ts +5 -0
  746. package/icons/es/Ace/components/Avatar.js +25 -0
  747. package/icons/es/Ace/components/Combine.d.ts +5 -0
  748. package/icons/es/Ace/components/Combine.js +26 -0
  749. package/icons/es/Ace/components/Mono.d.ts +3 -0
  750. package/icons/es/Ace/components/Mono.js +40 -0
  751. package/icons/es/Ace/components/Text.d.ts +3 -0
  752. package/icons/es/Ace/components/Text.js +39 -0
  753. package/icons/es/Ace/index.d.ts +13 -0
  754. package/icons/es/Ace/index.js +12 -0
  755. package/icons/es/Ace/style.d.ts +7 -0
  756. package/icons/es/Ace/style.js +9 -0
  757. package/icons/es/Adobe/components/Avatar.d.ts +5 -0
  758. package/icons/es/Adobe/components/Avatar.js +25 -0
  759. package/icons/es/Adobe/components/Color.d.ts +3 -0
  760. package/icons/es/Adobe/components/Color.js +39 -0
  761. package/icons/es/Adobe/components/Combine.d.ts +7 -0
  762. package/icons/es/Adobe/components/Combine.js +32 -0
  763. package/icons/es/Adobe/components/Mono.d.ts +3 -0
  764. package/icons/es/Adobe/components/Mono.js +40 -0
  765. package/icons/es/Adobe/components/Text.d.ts +3 -0
  766. package/icons/es/Adobe/components/Text.js +39 -0
  767. package/icons/es/Adobe/index.d.ts +15 -0
  768. package/icons/es/Adobe/index.js +14 -0
  769. package/icons/es/Adobe/style.d.ts +7 -0
  770. package/icons/es/Adobe/style.js +9 -0
  771. package/icons/es/AdobeFirefly/components/Avatar.d.ts +5 -0
  772. package/icons/es/AdobeFirefly/components/Avatar.js +25 -0
  773. package/icons/es/AdobeFirefly/components/Color.d.ts +3 -0
  774. package/icons/es/AdobeFirefly/components/Color.js +40 -0
  775. package/icons/es/AdobeFirefly/components/Combine.d.ts +5 -0
  776. package/icons/es/AdobeFirefly/components/Combine.js +32 -0
  777. package/icons/es/AdobeFirefly/components/Mono.d.ts +3 -0
  778. package/icons/es/AdobeFirefly/components/Mono.js +40 -0
  779. package/icons/es/AdobeFirefly/components/Text.d.ts +3 -0
  780. package/icons/es/AdobeFirefly/components/Text.js +39 -0
  781. package/icons/es/AdobeFirefly/index.d.ts +15 -0
  782. package/icons/es/AdobeFirefly/index.js +14 -0
  783. package/icons/es/AdobeFirefly/style.d.ts +7 -0
  784. package/icons/es/AdobeFirefly/style.js +9 -0
  785. package/icons/es/AgentVoice/components/Avatar.d.ts +5 -0
  786. package/icons/es/AgentVoice/components/Avatar.js +25 -0
  787. package/icons/es/AgentVoice/components/Color.d.ts +3 -0
  788. package/icons/es/AgentVoice/components/Color.js +39 -0
  789. package/icons/es/AgentVoice/components/Combine.d.ts +7 -0
  790. package/icons/es/AgentVoice/components/Combine.js +32 -0
  791. package/icons/es/AgentVoice/components/Mono.d.ts +3 -0
  792. package/icons/es/AgentVoice/components/Mono.js +40 -0
  793. package/icons/es/AgentVoice/components/Text.d.ts +3 -0
  794. package/icons/es/AgentVoice/components/Text.js +40 -0
  795. package/icons/es/AgentVoice/index.d.ts +15 -0
  796. package/icons/es/AgentVoice/index.js +14 -0
  797. package/icons/es/AgentVoice/style.d.ts +7 -0
  798. package/icons/es/AgentVoice/style.js +9 -0
  799. package/icons/es/Agui/components/Avatar.d.ts +5 -0
  800. package/icons/es/Agui/components/Avatar.js +25 -0
  801. package/icons/es/Agui/components/Combine.d.ts +5 -0
  802. package/icons/es/Agui/components/Combine.js +26 -0
  803. package/icons/es/Agui/components/Mono.d.ts +3 -0
  804. package/icons/es/Agui/components/Mono.js +41 -0
  805. package/icons/es/Agui/components/Text.d.ts +3 -0
  806. package/icons/es/Agui/components/Text.js +39 -0
  807. package/icons/es/Agui/index.d.ts +13 -0
  808. package/icons/es/Agui/index.js +12 -0
  809. package/icons/es/Agui/style.d.ts +7 -0
  810. package/icons/es/Agui/style.js +9 -0
  811. package/icons/es/Ai2/components/Avatar.d.ts +5 -0
  812. package/icons/es/Ai2/components/Avatar.js +25 -0
  813. package/icons/es/Ai2/components/Color.d.ts +3 -0
  814. package/icons/es/Ai2/components/Color.js +39 -0
  815. package/icons/es/Ai2/components/Combine.d.ts +7 -0
  816. package/icons/es/Ai2/components/Combine.js +32 -0
  817. package/icons/es/Ai2/components/Mono.d.ts +3 -0
  818. package/icons/es/Ai2/components/Mono.js +40 -0
  819. package/icons/es/Ai2/components/Text.d.ts +3 -0
  820. package/icons/es/Ai2/components/Text.js +39 -0
  821. package/icons/es/Ai2/index.d.ts +16 -0
  822. package/icons/es/Ai2/index.js +14 -0
  823. package/icons/es/Ai2/style.d.ts +7 -0
  824. package/icons/es/Ai2/style.js +9 -0
  825. package/icons/es/Ai21/components/Avatar.d.ts +5 -0
  826. package/icons/es/Ai21/components/Avatar.js +28 -0
  827. package/icons/es/Ai21/components/Brand.d.ts +1 -0
  828. package/icons/es/Ai21/components/Brand.js +1 -0
  829. package/icons/es/Ai21/components/BrandColor.d.ts +3 -0
  830. package/icons/es/Ai21/components/BrandColor.js +42 -0
  831. package/icons/es/Ai21/components/Combine.d.ts +7 -0
  832. package/icons/es/Ai21/components/Combine.js +29 -0
  833. package/icons/es/Ai21/components/Mono.d.ts +3 -0
  834. package/icons/es/Ai21/components/Mono.js +40 -0
  835. package/icons/es/Ai21/components/Text.d.ts +3 -0
  836. package/icons/es/Ai21/components/Text.js +41 -0
  837. package/icons/es/Ai21/index.d.ts +18 -0
  838. package/icons/es/Ai21/index.js +17 -0
  839. package/icons/es/Ai21/style.d.ts +8 -0
  840. package/icons/es/Ai21/style.js +10 -0
  841. package/icons/es/Ai302/components/Avatar.d.ts +5 -0
  842. package/icons/es/Ai302/components/Avatar.js +24 -0
  843. package/icons/es/Ai302/components/Color.d.ts +3 -0
  844. package/icons/es/Ai302/components/Color.js +45 -0
  845. package/icons/es/Ai302/components/Combine.d.ts +7 -0
  846. package/icons/es/Ai302/components/Combine.js +32 -0
  847. package/icons/es/Ai302/components/Inner.d.ts +3 -0
  848. package/icons/es/Ai302/components/Inner.js +40 -0
  849. package/icons/es/Ai302/components/Mono.d.ts +3 -0
  850. package/icons/es/Ai302/components/Mono.js +48 -0
  851. package/icons/es/Ai302/components/Text.d.ts +3 -0
  852. package/icons/es/Ai302/components/Text.js +40 -0
  853. package/icons/es/Ai302/index.d.ts +15 -0
  854. package/icons/es/Ai302/index.js +14 -0
  855. package/icons/es/Ai302/style.d.ts +7 -0
  856. package/icons/es/Ai302/style.js +9 -0
  857. package/icons/es/Ai360/components/Avatar.d.ts +5 -0
  858. package/icons/es/Ai360/components/Avatar.js +25 -0
  859. package/icons/es/Ai360/components/Color.d.ts +3 -0
  860. package/icons/es/Ai360/components/Color.js +134 -0
  861. package/icons/es/Ai360/components/Combine.d.ts +7 -0
  862. package/icons/es/Ai360/components/Combine.js +32 -0
  863. package/icons/es/Ai360/components/Mono.d.ts +3 -0
  864. package/icons/es/Ai360/components/Mono.js +49 -0
  865. package/icons/es/Ai360/components/Text.d.ts +3 -0
  866. package/icons/es/Ai360/components/Text.js +42 -0
  867. package/icons/es/Ai360/index.d.ts +16 -0
  868. package/icons/es/Ai360/index.js +15 -0
  869. package/icons/es/Ai360/style.d.ts +8 -0
  870. package/icons/es/Ai360/style.js +10 -0
  871. package/icons/es/AiHubMix/components/Avatar.d.ts +5 -0
  872. package/icons/es/AiHubMix/components/Avatar.js +25 -0
  873. package/icons/es/AiHubMix/components/Color.d.ts +3 -0
  874. package/icons/es/AiHubMix/components/Color.js +44 -0
  875. package/icons/es/AiHubMix/components/Combine.d.ts +7 -0
  876. package/icons/es/AiHubMix/components/Combine.js +32 -0
  877. package/icons/es/AiHubMix/components/Inner.d.ts +3 -0
  878. package/icons/es/AiHubMix/components/Inner.js +41 -0
  879. package/icons/es/AiHubMix/components/Mono.d.ts +3 -0
  880. package/icons/es/AiHubMix/components/Mono.js +41 -0
  881. package/icons/es/AiHubMix/components/Text.d.ts +3 -0
  882. package/icons/es/AiHubMix/components/Text.js +40 -0
  883. package/icons/es/AiHubMix/index.d.ts +15 -0
  884. package/icons/es/AiHubMix/index.js +14 -0
  885. package/icons/es/AiHubMix/style.d.ts +7 -0
  886. package/icons/es/AiHubMix/style.js +9 -0
  887. package/icons/es/AiMass/components/Avatar.d.ts +5 -0
  888. package/icons/es/AiMass/components/Avatar.js +25 -0
  889. package/icons/es/AiMass/components/Color.d.ts +3 -0
  890. package/icons/es/AiMass/components/Color.js +42 -0
  891. package/icons/es/AiMass/components/Combine.d.ts +7 -0
  892. package/icons/es/AiMass/components/Combine.js +32 -0
  893. package/icons/es/AiMass/components/Mono.d.ts +3 -0
  894. package/icons/es/AiMass/components/Mono.js +42 -0
  895. package/icons/es/AiMass/components/Text.d.ts +3 -0
  896. package/icons/es/AiMass/components/Text.js +50 -0
  897. package/icons/es/AiMass/index.d.ts +15 -0
  898. package/icons/es/AiMass/index.js +14 -0
  899. package/icons/es/AiMass/style.d.ts +7 -0
  900. package/icons/es/AiMass/style.js +9 -0
  901. package/icons/es/AiStudio/components/Avatar.d.ts +5 -0
  902. package/icons/es/AiStudio/components/Avatar.js +25 -0
  903. package/icons/es/AiStudio/components/Combine.d.ts +5 -0
  904. package/icons/es/AiStudio/components/Combine.js +26 -0
  905. package/icons/es/AiStudio/components/Mono.d.ts +3 -0
  906. package/icons/es/AiStudio/components/Mono.js +42 -0
  907. package/icons/es/AiStudio/components/Text.d.ts +3 -0
  908. package/icons/es/AiStudio/components/Text.js +39 -0
  909. package/icons/es/AiStudio/index.d.ts +13 -0
  910. package/icons/es/AiStudio/index.js +12 -0
  911. package/icons/es/AiStudio/style.d.ts +7 -0
  912. package/icons/es/AiStudio/style.js +9 -0
  913. package/icons/es/AionLabs/components/Avatar.d.ts +5 -0
  914. package/icons/es/AionLabs/components/Avatar.js +25 -0
  915. package/icons/es/AionLabs/components/Color.d.ts +3 -0
  916. package/icons/es/AionLabs/components/Color.js +216 -0
  917. package/icons/es/AionLabs/components/Combine.d.ts +7 -0
  918. package/icons/es/AionLabs/components/Combine.js +32 -0
  919. package/icons/es/AionLabs/components/Mono.d.ts +3 -0
  920. package/icons/es/AionLabs/components/Mono.js +42 -0
  921. package/icons/es/AionLabs/components/Text.d.ts +3 -0
  922. package/icons/es/AionLabs/components/Text.js +39 -0
  923. package/icons/es/AionLabs/index.d.ts +15 -0
  924. package/icons/es/AionLabs/index.js +14 -0
  925. package/icons/es/AionLabs/style.d.ts +7 -0
  926. package/icons/es/AionLabs/style.js +9 -0
  927. package/icons/es/AirJelly/components/Avatar.d.ts +5 -0
  928. package/icons/es/AirJelly/components/Avatar.js +25 -0
  929. package/icons/es/AirJelly/components/Color.d.ts +3 -0
  930. package/icons/es/AirJelly/components/Color.js +39 -0
  931. package/icons/es/AirJelly/components/Combine.d.ts +7 -0
  932. package/icons/es/AirJelly/components/Combine.js +32 -0
  933. package/icons/es/AirJelly/components/Mono.d.ts +3 -0
  934. package/icons/es/AirJelly/components/Mono.js +40 -0
  935. package/icons/es/AirJelly/components/Text.d.ts +3 -0
  936. package/icons/es/AirJelly/components/Text.js +39 -0
  937. package/icons/es/AirJelly/index.d.ts +15 -0
  938. package/icons/es/AirJelly/index.js +14 -0
  939. package/icons/es/AirJelly/style.d.ts +7 -0
  940. package/icons/es/AirJelly/style.js +9 -0
  941. package/icons/es/AkashChat/components/Avatar.d.ts +5 -0
  942. package/icons/es/AkashChat/components/Avatar.js +25 -0
  943. package/icons/es/AkashChat/components/Color.d.ts +3 -0
  944. package/icons/es/AkashChat/components/Color.js +65 -0
  945. package/icons/es/AkashChat/components/Combine.d.ts +7 -0
  946. package/icons/es/AkashChat/components/Combine.js +32 -0
  947. package/icons/es/AkashChat/components/Mono.d.ts +3 -0
  948. package/icons/es/AkashChat/components/Mono.js +47 -0
  949. package/icons/es/AkashChat/components/Text.d.ts +3 -0
  950. package/icons/es/AkashChat/components/Text.js +43 -0
  951. package/icons/es/AkashChat/index.d.ts +15 -0
  952. package/icons/es/AkashChat/index.js +14 -0
  953. package/icons/es/AkashChat/style.d.ts +7 -0
  954. package/icons/es/AkashChat/style.js +9 -0
  955. package/icons/es/AlephAlpha/components/Avatar.d.ts +5 -0
  956. package/icons/es/AlephAlpha/components/Avatar.js +25 -0
  957. package/icons/es/AlephAlpha/components/Combine.d.ts +5 -0
  958. package/icons/es/AlephAlpha/components/Combine.js +26 -0
  959. package/icons/es/AlephAlpha/components/Mono.d.ts +3 -0
  960. package/icons/es/AlephAlpha/components/Mono.js +40 -0
  961. package/icons/es/AlephAlpha/components/Text.d.ts +3 -0
  962. package/icons/es/AlephAlpha/components/Text.js +43 -0
  963. package/icons/es/AlephAlpha/index.d.ts +13 -0
  964. package/icons/es/AlephAlpha/index.js +12 -0
  965. package/icons/es/AlephAlpha/style.d.ts +7 -0
  966. package/icons/es/AlephAlpha/style.js +9 -0
  967. package/icons/es/Alibaba/components/Avatar.d.ts +5 -0
  968. package/icons/es/Alibaba/components/Avatar.js +25 -0
  969. package/icons/es/Alibaba/components/BrandColor.d.ts +3 -0
  970. package/icons/es/Alibaba/components/BrandColor.js +39 -0
  971. package/icons/es/Alibaba/components/BrandMono.d.ts +3 -0
  972. package/icons/es/Alibaba/components/BrandMono.js +39 -0
  973. package/icons/es/Alibaba/components/Color.d.ts +3 -0
  974. package/icons/es/Alibaba/components/Color.js +40 -0
  975. package/icons/es/Alibaba/components/Mono.d.ts +3 -0
  976. package/icons/es/Alibaba/components/Mono.js +40 -0
  977. package/icons/es/Alibaba/components/Text.d.ts +3 -0
  978. package/icons/es/Alibaba/components/Text.js +39 -0
  979. package/icons/es/Alibaba/components/TextCn.d.ts +3 -0
  980. package/icons/es/Alibaba/components/TextCn.js +39 -0
  981. package/icons/es/Alibaba/index.d.ts +19 -0
  982. package/icons/es/Alibaba/index.js +18 -0
  983. package/icons/es/Alibaba/style.d.ts +5 -0
  984. package/icons/es/Alibaba/style.js +7 -0
  985. package/icons/es/AlibabaCloud/components/Avatar.d.ts +5 -0
  986. package/icons/es/AlibabaCloud/components/Avatar.js +25 -0
  987. package/icons/es/AlibabaCloud/components/Color.d.ts +3 -0
  988. package/icons/es/AlibabaCloud/components/Color.js +42 -0
  989. package/icons/es/AlibabaCloud/components/Combine.d.ts +7 -0
  990. package/icons/es/AlibabaCloud/components/Combine.js +32 -0
  991. package/icons/es/AlibabaCloud/components/Mono.d.ts +3 -0
  992. package/icons/es/AlibabaCloud/components/Mono.js +42 -0
  993. package/icons/es/AlibabaCloud/components/Text.d.ts +3 -0
  994. package/icons/es/AlibabaCloud/components/Text.js +39 -0
  995. package/icons/es/AlibabaCloud/components/TextCn.d.ts +3 -0
  996. package/icons/es/AlibabaCloud/components/TextCn.js +47 -0
  997. package/icons/es/AlibabaCloud/index.d.ts +17 -0
  998. package/icons/es/AlibabaCloud/index.js +16 -0
  999. package/icons/es/AlibabaCloud/style.d.ts +7 -0
  1000. package/icons/es/AlibabaCloud/style.js +9 -0
  1001. package/icons/es/Amp/components/Avatar.d.ts +5 -0
  1002. package/icons/es/Amp/components/Avatar.js +25 -0
  1003. package/icons/es/Amp/components/Color.d.ts +3 -0
  1004. package/icons/es/Amp/components/Color.js +45 -0
  1005. package/icons/es/Amp/components/Combine.d.ts +7 -0
  1006. package/icons/es/Amp/components/Combine.js +32 -0
  1007. package/icons/es/Amp/components/Mono.d.ts +3 -0
  1008. package/icons/es/Amp/components/Mono.js +44 -0
  1009. package/icons/es/Amp/components/Text.d.ts +3 -0
  1010. package/icons/es/Amp/components/Text.js +39 -0
  1011. package/icons/es/Amp/index.d.ts +15 -0
  1012. package/icons/es/Amp/index.js +14 -0
  1013. package/icons/es/Amp/style.d.ts +7 -0
  1014. package/icons/es/Amp/style.js +9 -0
  1015. package/icons/es/AntGroup/components/Avatar.d.ts +5 -0
  1016. package/icons/es/AntGroup/components/Avatar.js +25 -0
  1017. package/icons/es/AntGroup/components/BrandColor.d.ts +3 -0
  1018. package/icons/es/AntGroup/components/BrandColor.js +119 -0
  1019. package/icons/es/AntGroup/components/BrandMono.d.ts +3 -0
  1020. package/icons/es/AntGroup/components/BrandMono.js +45 -0
  1021. package/icons/es/AntGroup/components/Color.d.ts +3 -0
  1022. package/icons/es/AntGroup/components/Color.js +110 -0
  1023. package/icons/es/AntGroup/components/Mono.d.ts +3 -0
  1024. package/icons/es/AntGroup/components/Mono.js +40 -0
  1025. package/icons/es/AntGroup/components/Text.d.ts +3 -0
  1026. package/icons/es/AntGroup/components/Text.js +39 -0
  1027. package/icons/es/AntGroup/components/TextCn.d.ts +3 -0
  1028. package/icons/es/AntGroup/components/TextCn.js +39 -0
  1029. package/icons/es/AntGroup/index.d.ts +19 -0
  1030. package/icons/es/AntGroup/index.js +18 -0
  1031. package/icons/es/AntGroup/style.d.ts +5 -0
  1032. package/icons/es/AntGroup/style.js +7 -0
  1033. package/icons/es/Anthropic/components/Avatar.d.ts +5 -0
  1034. package/icons/es/Anthropic/components/Avatar.js +25 -0
  1035. package/icons/es/Anthropic/components/Mono.d.ts +3 -0
  1036. package/icons/es/Anthropic/components/Mono.js +40 -0
  1037. package/icons/es/Anthropic/components/Text.d.ts +3 -0
  1038. package/icons/es/Anthropic/components/Text.js +39 -0
  1039. package/icons/es/Anthropic/index.d.ts +11 -0
  1040. package/icons/es/Anthropic/index.js +10 -0
  1041. package/icons/es/Anthropic/style.d.ts +7 -0
  1042. package/icons/es/Anthropic/style.js +9 -0
  1043. package/icons/es/Antigravity/components/Avatar.d.ts +5 -0
  1044. package/icons/es/Antigravity/components/Avatar.js +25 -0
  1045. package/icons/es/Antigravity/components/Color.d.ts +3 -0
  1046. package/icons/es/Antigravity/components/Color.js +348 -0
  1047. package/icons/es/Antigravity/components/Combine.d.ts +7 -0
  1048. package/icons/es/Antigravity/components/Combine.js +32 -0
  1049. package/icons/es/Antigravity/components/Mono.d.ts +3 -0
  1050. package/icons/es/Antigravity/components/Mono.js +40 -0
  1051. package/icons/es/Antigravity/components/Text.d.ts +3 -0
  1052. package/icons/es/Antigravity/components/Text.js +39 -0
  1053. package/icons/es/Antigravity/index.d.ts +16 -0
  1054. package/icons/es/Antigravity/index.js +14 -0
  1055. package/icons/es/Antigravity/style.d.ts +7 -0
  1056. package/icons/es/Antigravity/style.js +9 -0
  1057. package/icons/es/Anyscale/components/Avatar.d.ts +5 -0
  1058. package/icons/es/Anyscale/components/Avatar.js +25 -0
  1059. package/icons/es/Anyscale/components/Color.d.ts +3 -0
  1060. package/icons/es/Anyscale/components/Color.js +39 -0
  1061. package/icons/es/Anyscale/components/Combine.d.ts +7 -0
  1062. package/icons/es/Anyscale/components/Combine.js +32 -0
  1063. package/icons/es/Anyscale/components/Mono.d.ts +3 -0
  1064. package/icons/es/Anyscale/components/Mono.js +40 -0
  1065. package/icons/es/Anyscale/components/Text.d.ts +3 -0
  1066. package/icons/es/Anyscale/components/Text.js +39 -0
  1067. package/icons/es/Anyscale/index.d.ts +15 -0
  1068. package/icons/es/Anyscale/index.js +14 -0
  1069. package/icons/es/Anyscale/style.d.ts +7 -0
  1070. package/icons/es/Anyscale/style.js +9 -0
  1071. package/icons/es/Apertis/components/Avatar.d.ts +5 -0
  1072. package/icons/es/Apertis/components/Avatar.js +25 -0
  1073. package/icons/es/Apertis/components/Color.d.ts +3 -0
  1074. package/icons/es/Apertis/components/Color.js +136 -0
  1075. package/icons/es/Apertis/components/Combine.d.ts +7 -0
  1076. package/icons/es/Apertis/components/Combine.js +32 -0
  1077. package/icons/es/Apertis/components/Mono.d.ts +3 -0
  1078. package/icons/es/Apertis/components/Mono.js +49 -0
  1079. package/icons/es/Apertis/components/Text.d.ts +3 -0
  1080. package/icons/es/Apertis/components/Text.js +39 -0
  1081. package/icons/es/Apertis/index.d.ts +15 -0
  1082. package/icons/es/Apertis/index.js +14 -0
  1083. package/icons/es/Apertis/style.d.ts +7 -0
  1084. package/icons/es/Apertis/style.js +9 -0
  1085. package/icons/es/Apple/components/Avatar.d.ts +5 -0
  1086. package/icons/es/Apple/components/Avatar.js +25 -0
  1087. package/icons/es/Apple/components/Combine.d.ts +5 -0
  1088. package/icons/es/Apple/components/Combine.js +26 -0
  1089. package/icons/es/Apple/components/Mono.d.ts +3 -0
  1090. package/icons/es/Apple/components/Mono.js +40 -0
  1091. package/icons/es/Apple/components/Text.d.ts +3 -0
  1092. package/icons/es/Apple/components/Text.js +39 -0
  1093. package/icons/es/Apple/index.d.ts +13 -0
  1094. package/icons/es/Apple/index.js +12 -0
  1095. package/icons/es/Apple/style.d.ts +7 -0
  1096. package/icons/es/Apple/style.js +9 -0
  1097. package/icons/es/Arcee/components/Avatar.d.ts +5 -0
  1098. package/icons/es/Arcee/components/Avatar.js +25 -0
  1099. package/icons/es/Arcee/components/Color.d.ts +3 -0
  1100. package/icons/es/Arcee/components/Color.js +39 -0
  1101. package/icons/es/Arcee/components/Combine.d.ts +7 -0
  1102. package/icons/es/Arcee/components/Combine.js +32 -0
  1103. package/icons/es/Arcee/components/Mono.d.ts +3 -0
  1104. package/icons/es/Arcee/components/Mono.js +40 -0
  1105. package/icons/es/Arcee/components/Text.d.ts +3 -0
  1106. package/icons/es/Arcee/components/Text.js +39 -0
  1107. package/icons/es/Arcee/index.d.ts +16 -0
  1108. package/icons/es/Arcee/index.js +14 -0
  1109. package/icons/es/Arcee/style.d.ts +7 -0
  1110. package/icons/es/Arcee/style.js +9 -0
  1111. package/icons/es/AskVerdict/components/Avatar.d.ts +5 -0
  1112. package/icons/es/AskVerdict/components/Avatar.js +25 -0
  1113. package/icons/es/AskVerdict/components/Color.d.ts +3 -0
  1114. package/icons/es/AskVerdict/components/Color.js +77 -0
  1115. package/icons/es/AskVerdict/components/Combine.d.ts +7 -0
  1116. package/icons/es/AskVerdict/components/Combine.js +32 -0
  1117. package/icons/es/AskVerdict/components/Mono.d.ts +3 -0
  1118. package/icons/es/AskVerdict/components/Mono.js +52 -0
  1119. package/icons/es/AskVerdict/components/Text.d.ts +3 -0
  1120. package/icons/es/AskVerdict/components/Text.js +39 -0
  1121. package/icons/es/AskVerdict/index.d.ts +15 -0
  1122. package/icons/es/AskVerdict/index.js +14 -0
  1123. package/icons/es/AskVerdict/style.d.ts +7 -0
  1124. package/icons/es/AskVerdict/style.js +9 -0
  1125. package/icons/es/AssemblyAI/components/Avatar.d.ts +5 -0
  1126. package/icons/es/AssemblyAI/components/Avatar.js +25 -0
  1127. package/icons/es/AssemblyAI/components/Color.d.ts +3 -0
  1128. package/icons/es/AssemblyAI/components/Color.js +42 -0
  1129. package/icons/es/AssemblyAI/components/Combine.d.ts +7 -0
  1130. package/icons/es/AssemblyAI/components/Combine.js +32 -0
  1131. package/icons/es/AssemblyAI/components/Mono.d.ts +3 -0
  1132. package/icons/es/AssemblyAI/components/Mono.js +42 -0
  1133. package/icons/es/AssemblyAI/components/Text.d.ts +3 -0
  1134. package/icons/es/AssemblyAI/components/Text.js +39 -0
  1135. package/icons/es/AssemblyAI/index.d.ts +15 -0
  1136. package/icons/es/AssemblyAI/index.js +14 -0
  1137. package/icons/es/AssemblyAI/style.d.ts +7 -0
  1138. package/icons/es/AssemblyAI/style.js +9 -0
  1139. package/icons/es/AtlasCloud/components/Avatar.d.ts +5 -0
  1140. package/icons/es/AtlasCloud/components/Avatar.js +25 -0
  1141. package/icons/es/AtlasCloud/components/Combine.d.ts +4 -0
  1142. package/icons/es/AtlasCloud/components/Combine.js +24 -0
  1143. package/icons/es/AtlasCloud/components/Mono.d.ts +3 -0
  1144. package/icons/es/AtlasCloud/components/Mono.js +40 -0
  1145. package/icons/es/AtlasCloud/components/Text.d.ts +3 -0
  1146. package/icons/es/AtlasCloud/components/Text.js +40 -0
  1147. package/icons/es/AtlasCloud/index.d.ts +13 -0
  1148. package/icons/es/AtlasCloud/index.js +12 -0
  1149. package/icons/es/AtlasCloud/style.d.ts +7 -0
  1150. package/icons/es/AtlasCloud/style.js +7 -0
  1151. package/icons/es/Automatic/components/Avatar.d.ts +5 -0
  1152. package/icons/es/Automatic/components/Avatar.js +25 -0
  1153. package/icons/es/Automatic/components/Color.d.ts +3 -0
  1154. package/icons/es/Automatic/components/Color.js +51 -0
  1155. package/icons/es/Automatic/components/Combine.d.ts +7 -0
  1156. package/icons/es/Automatic/components/Combine.js +32 -0
  1157. package/icons/es/Automatic/components/Mono.d.ts +3 -0
  1158. package/icons/es/Automatic/components/Mono.js +52 -0
  1159. package/icons/es/Automatic/components/Text.d.ts +1 -0
  1160. package/icons/es/Automatic/components/Text.js +1 -0
  1161. package/icons/es/Automatic/index.d.ts +15 -0
  1162. package/icons/es/Automatic/index.js +14 -0
  1163. package/icons/es/Automatic/style.d.ts +7 -0
  1164. package/icons/es/Automatic/style.js +9 -0
  1165. package/icons/es/Aws/components/Avatar.d.ts +5 -0
  1166. package/icons/es/Aws/components/Avatar.js +25 -0
  1167. package/icons/es/Aws/components/BrandColor.d.ts +3 -0
  1168. package/icons/es/Aws/components/BrandColor.js +42 -0
  1169. package/icons/es/Aws/components/BrandMono.d.ts +3 -0
  1170. package/icons/es/Aws/components/BrandMono.js +41 -0
  1171. package/icons/es/Aws/components/Color.d.ts +3 -0
  1172. package/icons/es/Aws/components/Color.js +43 -0
  1173. package/icons/es/Aws/components/Combine.d.ts +7 -0
  1174. package/icons/es/Aws/components/Combine.js +32 -0
  1175. package/icons/es/Aws/components/Mono.d.ts +3 -0
  1176. package/icons/es/Aws/components/Mono.js +42 -0
  1177. package/icons/es/Aws/components/Text.d.ts +3 -0
  1178. package/icons/es/Aws/components/Text.js +39 -0
  1179. package/icons/es/Aws/index.d.ts +19 -0
  1180. package/icons/es/Aws/index.js +18 -0
  1181. package/icons/es/Aws/style.d.ts +7 -0
  1182. package/icons/es/Aws/style.js +9 -0
  1183. package/icons/es/Aya/components/Avatar.d.ts +5 -0
  1184. package/icons/es/Aya/components/Avatar.js +25 -0
  1185. package/icons/es/Aya/components/Color.d.ts +3 -0
  1186. package/icons/es/Aya/components/Color.js +39 -0
  1187. package/icons/es/Aya/components/Combine.d.ts +7 -0
  1188. package/icons/es/Aya/components/Combine.js +32 -0
  1189. package/icons/es/Aya/components/Mono.d.ts +3 -0
  1190. package/icons/es/Aya/components/Mono.js +40 -0
  1191. package/icons/es/Aya/components/Text.d.ts +3 -0
  1192. package/icons/es/Aya/components/Text.js +39 -0
  1193. package/icons/es/Aya/index.d.ts +15 -0
  1194. package/icons/es/Aya/index.js +14 -0
  1195. package/icons/es/Aya/style.d.ts +7 -0
  1196. package/icons/es/Aya/style.js +9 -0
  1197. package/icons/es/Azure/components/Avatar.d.ts +5 -0
  1198. package/icons/es/Azure/components/Avatar.js +25 -0
  1199. package/icons/es/Azure/components/Color.d.ts +3 -0
  1200. package/icons/es/Azure/components/Color.js +110 -0
  1201. package/icons/es/Azure/components/Combine.d.ts +7 -0
  1202. package/icons/es/Azure/components/Combine.js +32 -0
  1203. package/icons/es/Azure/components/Mono.d.ts +3 -0
  1204. package/icons/es/Azure/components/Mono.js +46 -0
  1205. package/icons/es/Azure/components/Text.d.ts +3 -0
  1206. package/icons/es/Azure/components/Text.js +39 -0
  1207. package/icons/es/Azure/index.d.ts +15 -0
  1208. package/icons/es/Azure/index.js +14 -0
  1209. package/icons/es/Azure/style.d.ts +7 -0
  1210. package/icons/es/Azure/style.js +9 -0
  1211. package/icons/es/AzureAI/components/Avatar.d.ts +5 -0
  1212. package/icons/es/AzureAI/components/Avatar.js +25 -0
  1213. package/icons/es/AzureAI/components/Color.d.ts +3 -0
  1214. package/icons/es/AzureAI/components/Color.js +177 -0
  1215. package/icons/es/AzureAI/components/Combine.d.ts +7 -0
  1216. package/icons/es/AzureAI/components/Combine.js +32 -0
  1217. package/icons/es/AzureAI/components/Mono.d.ts +3 -0
  1218. package/icons/es/AzureAI/components/Mono.js +47 -0
  1219. package/icons/es/AzureAI/components/Text.d.ts +3 -0
  1220. package/icons/es/AzureAI/components/Text.js +43 -0
  1221. package/icons/es/AzureAI/index.d.ts +15 -0
  1222. package/icons/es/AzureAI/index.js +14 -0
  1223. package/icons/es/AzureAI/style.d.ts +7 -0
  1224. package/icons/es/AzureAI/style.js +9 -0
  1225. package/icons/es/BAAI/components/Avatar.d.ts +5 -0
  1226. package/icons/es/BAAI/components/Avatar.js +25 -0
  1227. package/icons/es/BAAI/components/Combine.d.ts +5 -0
  1228. package/icons/es/BAAI/components/Combine.js +26 -0
  1229. package/icons/es/BAAI/components/Mono.d.ts +3 -0
  1230. package/icons/es/BAAI/components/Mono.js +41 -0
  1231. package/icons/es/BAAI/components/Text.d.ts +3 -0
  1232. package/icons/es/BAAI/components/Text.js +39 -0
  1233. package/icons/es/BAAI/index.d.ts +13 -0
  1234. package/icons/es/BAAI/index.js +12 -0
  1235. package/icons/es/BAAI/style.d.ts +7 -0
  1236. package/icons/es/BAAI/style.js +9 -0
  1237. package/icons/es/Baichuan/components/Avatar.d.ts +5 -0
  1238. package/icons/es/Baichuan/components/Avatar.js +25 -0
  1239. package/icons/es/Baichuan/components/Color.d.ts +3 -0
  1240. package/icons/es/Baichuan/components/Color.js +59 -0
  1241. package/icons/es/Baichuan/components/Combine.d.ts +7 -0
  1242. package/icons/es/Baichuan/components/Combine.js +36 -0
  1243. package/icons/es/Baichuan/components/Mono.d.ts +3 -0
  1244. package/icons/es/Baichuan/components/Mono.js +40 -0
  1245. package/icons/es/Baichuan/components/Text.d.ts +3 -0
  1246. package/icons/es/Baichuan/components/Text.js +39 -0
  1247. package/icons/es/Baichuan/index.d.ts +16 -0
  1248. package/icons/es/Baichuan/index.js +15 -0
  1249. package/icons/es/Baichuan/style.d.ts +8 -0
  1250. package/icons/es/Baichuan/style.js +10 -0
  1251. package/icons/es/Baidu/components/Avatar.d.ts +5 -0
  1252. package/icons/es/Baidu/components/Avatar.js +25 -0
  1253. package/icons/es/Baidu/components/BrandColor.d.ts +3 -0
  1254. package/icons/es/Baidu/components/BrandColor.js +41 -0
  1255. package/icons/es/Baidu/components/BrandMono.d.ts +3 -0
  1256. package/icons/es/Baidu/components/BrandMono.js +41 -0
  1257. package/icons/es/Baidu/components/Color.d.ts +3 -0
  1258. package/icons/es/Baidu/components/Color.js +40 -0
  1259. package/icons/es/Baidu/components/Mono.d.ts +3 -0
  1260. package/icons/es/Baidu/components/Mono.js +40 -0
  1261. package/icons/es/Baidu/components/Text.d.ts +3 -0
  1262. package/icons/es/Baidu/components/Text.js +39 -0
  1263. package/icons/es/Baidu/components/TextCn.d.ts +3 -0
  1264. package/icons/es/Baidu/components/TextCn.js +39 -0
  1265. package/icons/es/Baidu/index.d.ts +19 -0
  1266. package/icons/es/Baidu/index.js +18 -0
  1267. package/icons/es/Baidu/style.d.ts +5 -0
  1268. package/icons/es/Baidu/style.js +7 -0
  1269. package/icons/es/BaiduCloud/components/Avatar.d.ts +5 -0
  1270. package/icons/es/BaiduCloud/components/Avatar.js +25 -0
  1271. package/icons/es/BaiduCloud/components/Color.d.ts +3 -0
  1272. package/icons/es/BaiduCloud/components/Color.js +45 -0
  1273. package/icons/es/BaiduCloud/components/Combine.d.ts +7 -0
  1274. package/icons/es/BaiduCloud/components/Combine.js +32 -0
  1275. package/icons/es/BaiduCloud/components/Mono.d.ts +3 -0
  1276. package/icons/es/BaiduCloud/components/Mono.js +44 -0
  1277. package/icons/es/BaiduCloud/components/Text.d.ts +3 -0
  1278. package/icons/es/BaiduCloud/components/Text.js +52 -0
  1279. package/icons/es/BaiduCloud/index.d.ts +15 -0
  1280. package/icons/es/BaiduCloud/index.js +14 -0
  1281. package/icons/es/BaiduCloud/style.d.ts +7 -0
  1282. package/icons/es/BaiduCloud/style.js +9 -0
  1283. package/icons/es/Bailian/components/Avatar.d.ts +5 -0
  1284. package/icons/es/Bailian/components/Avatar.js +25 -0
  1285. package/icons/es/Bailian/components/Color.d.ts +3 -0
  1286. package/icons/es/Bailian/components/Color.js +57 -0
  1287. package/icons/es/Bailian/components/Combine.d.ts +7 -0
  1288. package/icons/es/Bailian/components/Combine.js +32 -0
  1289. package/icons/es/Bailian/components/Mono.d.ts +3 -0
  1290. package/icons/es/Bailian/components/Mono.js +57 -0
  1291. package/icons/es/Bailian/components/Text.d.ts +3 -0
  1292. package/icons/es/Bailian/components/Text.js +39 -0
  1293. package/icons/es/Bailian/index.d.ts +15 -0
  1294. package/icons/es/Bailian/index.js +14 -0
  1295. package/icons/es/Bailian/style.d.ts +7 -0
  1296. package/icons/es/Bailian/style.js +9 -0
  1297. package/icons/es/Baseten/components/Avatar.d.ts +5 -0
  1298. package/icons/es/Baseten/components/Avatar.js +25 -0
  1299. package/icons/es/Baseten/components/Combine.d.ts +5 -0
  1300. package/icons/es/Baseten/components/Combine.js +26 -0
  1301. package/icons/es/Baseten/components/Mono.d.ts +3 -0
  1302. package/icons/es/Baseten/components/Mono.js +40 -0
  1303. package/icons/es/Baseten/components/Text.d.ts +3 -0
  1304. package/icons/es/Baseten/components/Text.js +39 -0
  1305. package/icons/es/Baseten/index.d.ts +13 -0
  1306. package/icons/es/Baseten/index.js +12 -0
  1307. package/icons/es/Baseten/style.d.ts +7 -0
  1308. package/icons/es/Baseten/style.js +9 -0
  1309. package/icons/es/Bedrock/components/Avatar.d.ts +5 -0
  1310. package/icons/es/Bedrock/components/Avatar.js +25 -0
  1311. package/icons/es/Bedrock/components/Color.d.ts +3 -0
  1312. package/icons/es/Bedrock/components/Color.js +62 -0
  1313. package/icons/es/Bedrock/components/Combine.d.ts +7 -0
  1314. package/icons/es/Bedrock/components/Combine.js +32 -0
  1315. package/icons/es/Bedrock/components/Mono.d.ts +3 -0
  1316. package/icons/es/Bedrock/components/Mono.js +40 -0
  1317. package/icons/es/Bedrock/components/Text.d.ts +3 -0
  1318. package/icons/es/Bedrock/components/Text.js +39 -0
  1319. package/icons/es/Bedrock/index.d.ts +16 -0
  1320. package/icons/es/Bedrock/index.js +15 -0
  1321. package/icons/es/Bedrock/style.d.ts +8 -0
  1322. package/icons/es/Bedrock/style.js +10 -0
  1323. package/icons/es/Bfl/components/Avatar.d.ts +5 -0
  1324. package/icons/es/Bfl/components/Avatar.js +25 -0
  1325. package/icons/es/Bfl/components/Combine.d.ts +5 -0
  1326. package/icons/es/Bfl/components/Combine.js +26 -0
  1327. package/icons/es/Bfl/components/Mono.d.ts +3 -0
  1328. package/icons/es/Bfl/components/Mono.js +40 -0
  1329. package/icons/es/Bfl/components/Text.d.ts +3 -0
  1330. package/icons/es/Bfl/components/Text.js +39 -0
  1331. package/icons/es/Bfl/index.d.ts +13 -0
  1332. package/icons/es/Bfl/index.js +12 -0
  1333. package/icons/es/Bfl/style.d.ts +7 -0
  1334. package/icons/es/Bfl/style.js +9 -0
  1335. package/icons/es/Bilibili/components/Avatar.d.ts +5 -0
  1336. package/icons/es/Bilibili/components/Avatar.js +25 -0
  1337. package/icons/es/Bilibili/components/Color.d.ts +3 -0
  1338. package/icons/es/Bilibili/components/Color.js +41 -0
  1339. package/icons/es/Bilibili/components/Combine.d.ts +7 -0
  1340. package/icons/es/Bilibili/components/Combine.js +32 -0
  1341. package/icons/es/Bilibili/components/Mono.d.ts +3 -0
  1342. package/icons/es/Bilibili/components/Mono.js +41 -0
  1343. package/icons/es/Bilibili/components/Text.d.ts +3 -0
  1344. package/icons/es/Bilibili/components/Text.js +39 -0
  1345. package/icons/es/Bilibili/index.d.ts +15 -0
  1346. package/icons/es/Bilibili/index.js +14 -0
  1347. package/icons/es/Bilibili/style.d.ts +7 -0
  1348. package/icons/es/Bilibili/style.js +9 -0
  1349. package/icons/es/BilibiliIndex/components/Avatar.d.ts +5 -0
  1350. package/icons/es/BilibiliIndex/components/Avatar.js +25 -0
  1351. package/icons/es/BilibiliIndex/components/Combine.d.ts +5 -0
  1352. package/icons/es/BilibiliIndex/components/Combine.js +26 -0
  1353. package/icons/es/BilibiliIndex/components/Mono.d.ts +3 -0
  1354. package/icons/es/BilibiliIndex/components/Mono.js +40 -0
  1355. package/icons/es/BilibiliIndex/components/Text.d.ts +3 -0
  1356. package/icons/es/BilibiliIndex/components/Text.js +39 -0
  1357. package/icons/es/BilibiliIndex/index.d.ts +13 -0
  1358. package/icons/es/BilibiliIndex/index.js +12 -0
  1359. package/icons/es/BilibiliIndex/style.d.ts +7 -0
  1360. package/icons/es/BilibiliIndex/style.js +9 -0
  1361. package/icons/es/Bing/components/Avatar.d.ts +5 -0
  1362. package/icons/es/Bing/components/Avatar.js +28 -0
  1363. package/icons/es/Bing/components/Color.d.ts +3 -0
  1364. package/icons/es/Bing/components/Color.js +104 -0
  1365. package/icons/es/Bing/components/Combine.d.ts +7 -0
  1366. package/icons/es/Bing/components/Combine.js +32 -0
  1367. package/icons/es/Bing/components/Mono.d.ts +3 -0
  1368. package/icons/es/Bing/components/Mono.js +40 -0
  1369. package/icons/es/Bing/components/Text.d.ts +3 -0
  1370. package/icons/es/Bing/components/Text.js +39 -0
  1371. package/icons/es/Bing/index.d.ts +16 -0
  1372. package/icons/es/Bing/index.js +15 -0
  1373. package/icons/es/Bing/style.d.ts +8 -0
  1374. package/icons/es/Bing/style.js +10 -0
  1375. package/icons/es/BriaAI/components/Avatar.d.ts +5 -0
  1376. package/icons/es/BriaAI/components/Avatar.js +25 -0
  1377. package/icons/es/BriaAI/components/Color.d.ts +3 -0
  1378. package/icons/es/BriaAI/components/Color.js +57 -0
  1379. package/icons/es/BriaAI/components/Combine.d.ts +7 -0
  1380. package/icons/es/BriaAI/components/Combine.js +32 -0
  1381. package/icons/es/BriaAI/components/Mono.d.ts +3 -0
  1382. package/icons/es/BriaAI/components/Mono.js +52 -0
  1383. package/icons/es/BriaAI/components/Text.d.ts +3 -0
  1384. package/icons/es/BriaAI/components/Text.js +42 -0
  1385. package/icons/es/BriaAI/index.d.ts +15 -0
  1386. package/icons/es/BriaAI/index.js +14 -0
  1387. package/icons/es/BriaAI/style.d.ts +7 -0
  1388. package/icons/es/BriaAI/style.js +9 -0
  1389. package/icons/es/BurnCloud/components/Avatar.d.ts +5 -0
  1390. package/icons/es/BurnCloud/components/Avatar.js +25 -0
  1391. package/icons/es/BurnCloud/components/Color.d.ts +3 -0
  1392. package/icons/es/BurnCloud/components/Color.js +57 -0
  1393. package/icons/es/BurnCloud/components/Combine.d.ts +7 -0
  1394. package/icons/es/BurnCloud/components/Combine.js +32 -0
  1395. package/icons/es/BurnCloud/components/Mono.d.ts +3 -0
  1396. package/icons/es/BurnCloud/components/Mono.js +40 -0
  1397. package/icons/es/BurnCloud/components/Text.d.ts +3 -0
  1398. package/icons/es/BurnCloud/components/Text.js +40 -0
  1399. package/icons/es/BurnCloud/index.d.ts +15 -0
  1400. package/icons/es/BurnCloud/index.js +14 -0
  1401. package/icons/es/BurnCloud/style.d.ts +7 -0
  1402. package/icons/es/BurnCloud/style.js +9 -0
  1403. package/icons/es/ByteDance/components/Avatar.d.ts +5 -0
  1404. package/icons/es/ByteDance/components/Avatar.js +25 -0
  1405. package/icons/es/ByteDance/components/BrandColor.d.ts +3 -0
  1406. package/icons/es/ByteDance/components/BrandColor.js +54 -0
  1407. package/icons/es/ByteDance/components/BrandMono.d.ts +3 -0
  1408. package/icons/es/ByteDance/components/BrandMono.js +47 -0
  1409. package/icons/es/ByteDance/components/Color.d.ts +3 -0
  1410. package/icons/es/ByteDance/components/Color.js +51 -0
  1411. package/icons/es/ByteDance/components/Mono.d.ts +3 -0
  1412. package/icons/es/ByteDance/components/Mono.js +46 -0
  1413. package/icons/es/ByteDance/components/Text.d.ts +3 -0
  1414. package/icons/es/ByteDance/components/Text.js +39 -0
  1415. package/icons/es/ByteDance/components/TextCn.d.ts +3 -0
  1416. package/icons/es/ByteDance/components/TextCn.js +39 -0
  1417. package/icons/es/ByteDance/index.d.ts +19 -0
  1418. package/icons/es/ByteDance/index.js +18 -0
  1419. package/icons/es/ByteDance/style.d.ts +5 -0
  1420. package/icons/es/ByteDance/style.js +7 -0
  1421. package/icons/es/CapCut/components/Avatar.d.ts +5 -0
  1422. package/icons/es/CapCut/components/Avatar.js +25 -0
  1423. package/icons/es/CapCut/components/Combine.d.ts +5 -0
  1424. package/icons/es/CapCut/components/Combine.js +29 -0
  1425. package/icons/es/CapCut/components/Mono.d.ts +3 -0
  1426. package/icons/es/CapCut/components/Mono.js +40 -0
  1427. package/icons/es/CapCut/components/Text.d.ts +3 -0
  1428. package/icons/es/CapCut/components/Text.js +39 -0
  1429. package/icons/es/CapCut/index.d.ts +13 -0
  1430. package/icons/es/CapCut/index.js +12 -0
  1431. package/icons/es/CapCut/style.d.ts +7 -0
  1432. package/icons/es/CapCut/style.js +9 -0
  1433. package/icons/es/CentML/components/Avatar.d.ts +5 -0
  1434. package/icons/es/CentML/components/Avatar.js +25 -0
  1435. package/icons/es/CentML/components/BrandColor.d.ts +3 -0
  1436. package/icons/es/CentML/components/BrandColor.js +45 -0
  1437. package/icons/es/CentML/components/BrandMono.d.ts +3 -0
  1438. package/icons/es/CentML/components/BrandMono.js +46 -0
  1439. package/icons/es/CentML/components/Color.d.ts +3 -0
  1440. package/icons/es/CentML/components/Color.js +42 -0
  1441. package/icons/es/CentML/components/Combine.d.ts +7 -0
  1442. package/icons/es/CentML/components/Combine.js +30 -0
  1443. package/icons/es/CentML/components/Mono.d.ts +3 -0
  1444. package/icons/es/CentML/components/Mono.js +42 -0
  1445. package/icons/es/CentML/components/Text.d.ts +3 -0
  1446. package/icons/es/CentML/components/Text.js +46 -0
  1447. package/icons/es/CentML/index.d.ts +19 -0
  1448. package/icons/es/CentML/index.js +18 -0
  1449. package/icons/es/CentML/style.d.ts +7 -0
  1450. package/icons/es/CentML/style.js +9 -0
  1451. package/icons/es/Cerebras/components/Avatar.d.ts +5 -0
  1452. package/icons/es/Cerebras/components/Avatar.js +25 -0
  1453. package/icons/es/Cerebras/components/BrandColor.d.ts +3 -0
  1454. package/icons/es/Cerebras/components/BrandColor.js +45 -0
  1455. package/icons/es/Cerebras/components/BrandMono.d.ts +3 -0
  1456. package/icons/es/Cerebras/components/BrandMono.js +44 -0
  1457. package/icons/es/Cerebras/components/Color.d.ts +3 -0
  1458. package/icons/es/Cerebras/components/Color.js +44 -0
  1459. package/icons/es/Cerebras/components/Combine.d.ts +7 -0
  1460. package/icons/es/Cerebras/components/Combine.js +30 -0
  1461. package/icons/es/Cerebras/components/Mono.d.ts +3 -0
  1462. package/icons/es/Cerebras/components/Mono.js +43 -0
  1463. package/icons/es/Cerebras/components/Text.d.ts +3 -0
  1464. package/icons/es/Cerebras/components/Text.js +52 -0
  1465. package/icons/es/Cerebras/index.d.ts +19 -0
  1466. package/icons/es/Cerebras/index.js +18 -0
  1467. package/icons/es/Cerebras/style.d.ts +7 -0
  1468. package/icons/es/Cerebras/style.js +9 -0
  1469. package/icons/es/ChatGLM/components/Avatar.d.ts +5 -0
  1470. package/icons/es/ChatGLM/components/Avatar.js +28 -0
  1471. package/icons/es/ChatGLM/components/Color.d.ts +3 -0
  1472. package/icons/es/ChatGLM/components/Color.js +59 -0
  1473. package/icons/es/ChatGLM/components/Combine.d.ts +7 -0
  1474. package/icons/es/ChatGLM/components/Combine.js +32 -0
  1475. package/icons/es/ChatGLM/components/Mono.d.ts +3 -0
  1476. package/icons/es/ChatGLM/components/Mono.js +40 -0
  1477. package/icons/es/ChatGLM/components/Text.d.ts +3 -0
  1478. package/icons/es/ChatGLM/components/Text.js +39 -0
  1479. package/icons/es/ChatGLM/index.d.ts +16 -0
  1480. package/icons/es/ChatGLM/index.js +15 -0
  1481. package/icons/es/ChatGLM/style.d.ts +8 -0
  1482. package/icons/es/ChatGLM/style.js +10 -0
  1483. package/icons/es/CherryStudio/components/Avatar.d.ts +5 -0
  1484. package/icons/es/CherryStudio/components/Avatar.js +25 -0
  1485. package/icons/es/CherryStudio/components/Color.d.ts +3 -0
  1486. package/icons/es/CherryStudio/components/Color.js +45 -0
  1487. package/icons/es/CherryStudio/components/Combine.d.ts +7 -0
  1488. package/icons/es/CherryStudio/components/Combine.js +32 -0
  1489. package/icons/es/CherryStudio/components/Mono.d.ts +3 -0
  1490. package/icons/es/CherryStudio/components/Mono.js +44 -0
  1491. package/icons/es/CherryStudio/components/Text.d.ts +3 -0
  1492. package/icons/es/CherryStudio/components/Text.js +57 -0
  1493. package/icons/es/CherryStudio/index.d.ts +15 -0
  1494. package/icons/es/CherryStudio/index.js +14 -0
  1495. package/icons/es/CherryStudio/style.d.ts +7 -0
  1496. package/icons/es/CherryStudio/style.js +9 -0
  1497. package/icons/es/Civitai/components/Avatar.d.ts +5 -0
  1498. package/icons/es/Civitai/components/Avatar.js +25 -0
  1499. package/icons/es/Civitai/components/Color.d.ts +3 -0
  1500. package/icons/es/Civitai/components/Color.js +85 -0
  1501. package/icons/es/Civitai/components/Combine.d.ts +7 -0
  1502. package/icons/es/Civitai/components/Combine.js +33 -0
  1503. package/icons/es/Civitai/components/Mono.d.ts +3 -0
  1504. package/icons/es/Civitai/components/Mono.js +42 -0
  1505. package/icons/es/Civitai/components/Text.d.ts +3 -0
  1506. package/icons/es/Civitai/components/Text.js +41 -0
  1507. package/icons/es/Civitai/components/TextColor.d.ts +3 -0
  1508. package/icons/es/Civitai/components/TextColor.js +42 -0
  1509. package/icons/es/Civitai/index.d.ts +17 -0
  1510. package/icons/es/Civitai/index.js +16 -0
  1511. package/icons/es/Civitai/style.d.ts +7 -0
  1512. package/icons/es/Civitai/style.js +9 -0
  1513. package/icons/es/Claude/components/Avatar.d.ts +5 -0
  1514. package/icons/es/Claude/components/Avatar.js +25 -0
  1515. package/icons/es/Claude/components/Color.d.ts +3 -0
  1516. package/icons/es/Claude/components/Color.js +40 -0
  1517. package/icons/es/Claude/components/Combine.d.ts +7 -0
  1518. package/icons/es/Claude/components/Combine.js +32 -0
  1519. package/icons/es/Claude/components/Mono.d.ts +3 -0
  1520. package/icons/es/Claude/components/Mono.js +40 -0
  1521. package/icons/es/Claude/components/Text.d.ts +3 -0
  1522. package/icons/es/Claude/components/Text.js +39 -0
  1523. package/icons/es/Claude/index.d.ts +15 -0
  1524. package/icons/es/Claude/index.js +14 -0
  1525. package/icons/es/Claude/style.d.ts +7 -0
  1526. package/icons/es/Claude/style.js +9 -0
  1527. package/icons/es/ClaudeCode/components/Avatar.d.ts +5 -0
  1528. package/icons/es/ClaudeCode/components/Avatar.js +25 -0
  1529. package/icons/es/ClaudeCode/components/Color.d.ts +3 -0
  1530. package/icons/es/ClaudeCode/components/Color.js +41 -0
  1531. package/icons/es/ClaudeCode/components/Combine.d.ts +7 -0
  1532. package/icons/es/ClaudeCode/components/Combine.js +32 -0
  1533. package/icons/es/ClaudeCode/components/Mono.d.ts +3 -0
  1534. package/icons/es/ClaudeCode/components/Mono.js +41 -0
  1535. package/icons/es/ClaudeCode/components/Text.d.ts +3 -0
  1536. package/icons/es/ClaudeCode/components/Text.js +40 -0
  1537. package/icons/es/ClaudeCode/index.d.ts +16 -0
  1538. package/icons/es/ClaudeCode/index.js +14 -0
  1539. package/icons/es/ClaudeCode/style.d.ts +7 -0
  1540. package/icons/es/ClaudeCode/style.js +9 -0
  1541. package/icons/es/Cline/components/Avatar.d.ts +5 -0
  1542. package/icons/es/Cline/components/Avatar.js +25 -0
  1543. package/icons/es/Cline/components/Combine.d.ts +5 -0
  1544. package/icons/es/Cline/components/Combine.js +29 -0
  1545. package/icons/es/Cline/components/Mono.d.ts +3 -0
  1546. package/icons/es/Cline/components/Mono.js +42 -0
  1547. package/icons/es/Cline/components/Text.d.ts +3 -0
  1548. package/icons/es/Cline/components/Text.js +39 -0
  1549. package/icons/es/Cline/index.d.ts +13 -0
  1550. package/icons/es/Cline/index.js +12 -0
  1551. package/icons/es/Cline/style.d.ts +7 -0
  1552. package/icons/es/Cline/style.js +9 -0
  1553. package/icons/es/Clipdrop/components/Avatar.d.ts +5 -0
  1554. package/icons/es/Clipdrop/components/Avatar.js +25 -0
  1555. package/icons/es/Clipdrop/components/Combine.d.ts +5 -0
  1556. package/icons/es/Clipdrop/components/Combine.js +29 -0
  1557. package/icons/es/Clipdrop/components/Mono.d.ts +3 -0
  1558. package/icons/es/Clipdrop/components/Mono.js +41 -0
  1559. package/icons/es/Clipdrop/components/Text.d.ts +3 -0
  1560. package/icons/es/Clipdrop/components/Text.js +39 -0
  1561. package/icons/es/Clipdrop/index.d.ts +13 -0
  1562. package/icons/es/Clipdrop/index.js +12 -0
  1563. package/icons/es/Clipdrop/style.d.ts +7 -0
  1564. package/icons/es/Clipdrop/style.js +9 -0
  1565. package/icons/es/Cloudflare/components/Avatar.d.ts +5 -0
  1566. package/icons/es/Cloudflare/components/Avatar.js +25 -0
  1567. package/icons/es/Cloudflare/components/Color.d.ts +3 -0
  1568. package/icons/es/Cloudflare/components/Color.js +42 -0
  1569. package/icons/es/Cloudflare/components/Combine.d.ts +7 -0
  1570. package/icons/es/Cloudflare/components/Combine.js +32 -0
  1571. package/icons/es/Cloudflare/components/Mono.d.ts +3 -0
  1572. package/icons/es/Cloudflare/components/Mono.js +42 -0
  1573. package/icons/es/Cloudflare/components/Text.d.ts +3 -0
  1574. package/icons/es/Cloudflare/components/Text.js +39 -0
  1575. package/icons/es/Cloudflare/index.d.ts +15 -0
  1576. package/icons/es/Cloudflare/index.js +14 -0
  1577. package/icons/es/Cloudflare/style.d.ts +7 -0
  1578. package/icons/es/Cloudflare/style.js +9 -0
  1579. package/icons/es/CodeBuddy/components/Avatar.d.ts +5 -0
  1580. package/icons/es/CodeBuddy/components/Avatar.js +25 -0
  1581. package/icons/es/CodeBuddy/components/Color.d.ts +3 -0
  1582. package/icons/es/CodeBuddy/components/Color.js +64 -0
  1583. package/icons/es/CodeBuddy/components/Combine.d.ts +7 -0
  1584. package/icons/es/CodeBuddy/components/Combine.js +32 -0
  1585. package/icons/es/CodeBuddy/components/Mono.d.ts +3 -0
  1586. package/icons/es/CodeBuddy/components/Mono.js +42 -0
  1587. package/icons/es/CodeBuddy/components/Text.d.ts +3 -0
  1588. package/icons/es/CodeBuddy/components/Text.js +49 -0
  1589. package/icons/es/CodeBuddy/index.d.ts +16 -0
  1590. package/icons/es/CodeBuddy/index.js +15 -0
  1591. package/icons/es/CodeBuddy/style.d.ts +8 -0
  1592. package/icons/es/CodeBuddy/style.js +10 -0
  1593. package/icons/es/CodeFlicker/components/Avatar.d.ts +5 -0
  1594. package/icons/es/CodeFlicker/components/Avatar.js +25 -0
  1595. package/icons/es/CodeFlicker/components/Color.d.ts +3 -0
  1596. package/icons/es/CodeFlicker/components/Color.js +185 -0
  1597. package/icons/es/CodeFlicker/components/Combine.d.ts +7 -0
  1598. package/icons/es/CodeFlicker/components/Combine.js +32 -0
  1599. package/icons/es/CodeFlicker/components/Mono.d.ts +3 -0
  1600. package/icons/es/CodeFlicker/components/Mono.js +42 -0
  1601. package/icons/es/CodeFlicker/components/Text.d.ts +3 -0
  1602. package/icons/es/CodeFlicker/components/Text.js +43 -0
  1603. package/icons/es/CodeFlicker/index.d.ts +15 -0
  1604. package/icons/es/CodeFlicker/index.js +14 -0
  1605. package/icons/es/CodeFlicker/style.d.ts +7 -0
  1606. package/icons/es/CodeFlicker/style.js +9 -0
  1607. package/icons/es/CodeGeeX/components/Avatar.d.ts +5 -0
  1608. package/icons/es/CodeGeeX/components/Avatar.js +25 -0
  1609. package/icons/es/CodeGeeX/components/Color.d.ts +3 -0
  1610. package/icons/es/CodeGeeX/components/Color.js +42 -0
  1611. package/icons/es/CodeGeeX/components/Combine.d.ts +7 -0
  1612. package/icons/es/CodeGeeX/components/Combine.js +36 -0
  1613. package/icons/es/CodeGeeX/components/Mono.d.ts +3 -0
  1614. package/icons/es/CodeGeeX/components/Mono.js +42 -0
  1615. package/icons/es/CodeGeeX/components/Text.d.ts +3 -0
  1616. package/icons/es/CodeGeeX/components/Text.js +52 -0
  1617. package/icons/es/CodeGeeX/index.d.ts +16 -0
  1618. package/icons/es/CodeGeeX/index.js +15 -0
  1619. package/icons/es/CodeGeeX/style.d.ts +8 -0
  1620. package/icons/es/CodeGeeX/style.js +10 -0
  1621. package/icons/es/Codex/components/Avatar.d.ts +5 -0
  1622. package/icons/es/Codex/components/Avatar.js +25 -0
  1623. package/icons/es/Codex/components/Color.d.ts +3 -0
  1624. package/icons/es/Codex/components/Color.js +64 -0
  1625. package/icons/es/Codex/components/Combine.d.ts +7 -0
  1626. package/icons/es/Codex/components/Combine.js +32 -0
  1627. package/icons/es/Codex/components/Inner.d.ts +3 -0
  1628. package/icons/es/Codex/components/Inner.js +63 -0
  1629. package/icons/es/Codex/components/Mono.d.ts +3 -0
  1630. package/icons/es/Codex/components/Mono.js +41 -0
  1631. package/icons/es/Codex/components/Text.d.ts +3 -0
  1632. package/icons/es/Codex/components/Text.js +39 -0
  1633. package/icons/es/Codex/index.d.ts +15 -0
  1634. package/icons/es/Codex/index.js +14 -0
  1635. package/icons/es/Codex/style.d.ts +7 -0
  1636. package/icons/es/Codex/style.js +9 -0
  1637. package/icons/es/CogVideo/components/Avatar.d.ts +5 -0
  1638. package/icons/es/CogVideo/components/Avatar.js +25 -0
  1639. package/icons/es/CogVideo/components/Color.d.ts +3 -0
  1640. package/icons/es/CogVideo/components/Color.js +476 -0
  1641. package/icons/es/CogVideo/components/Combine.d.ts +7 -0
  1642. package/icons/es/CogVideo/components/Combine.js +32 -0
  1643. package/icons/es/CogVideo/components/Mono.d.ts +3 -0
  1644. package/icons/es/CogVideo/components/Mono.js +27 -0
  1645. package/icons/es/CogVideo/components/Text.d.ts +3 -0
  1646. package/icons/es/CogVideo/components/Text.js +40 -0
  1647. package/icons/es/CogVideo/index.d.ts +16 -0
  1648. package/icons/es/CogVideo/index.js +14 -0
  1649. package/icons/es/CogVideo/style.d.ts +7 -0
  1650. package/icons/es/CogVideo/style.js +9 -0
  1651. package/icons/es/CogView/components/Avatar.d.ts +5 -0
  1652. package/icons/es/CogView/components/Avatar.js +25 -0
  1653. package/icons/es/CogView/components/Color.d.ts +3 -0
  1654. package/icons/es/CogView/components/Color.js +594 -0
  1655. package/icons/es/CogView/components/Combine.d.ts +7 -0
  1656. package/icons/es/CogView/components/Combine.js +32 -0
  1657. package/icons/es/CogView/components/Mono.d.ts +3 -0
  1658. package/icons/es/CogView/components/Mono.js +27 -0
  1659. package/icons/es/CogView/components/Text.d.ts +3 -0
  1660. package/icons/es/CogView/components/Text.js +40 -0
  1661. package/icons/es/CogView/index.d.ts +16 -0
  1662. package/icons/es/CogView/index.js +14 -0
  1663. package/icons/es/CogView/style.d.ts +7 -0
  1664. package/icons/es/CogView/style.js +9 -0
  1665. package/icons/es/Cohere/components/Avatar.d.ts +5 -0
  1666. package/icons/es/Cohere/components/Avatar.js +25 -0
  1667. package/icons/es/Cohere/components/Color.d.ts +3 -0
  1668. package/icons/es/Cohere/components/Color.js +49 -0
  1669. package/icons/es/Cohere/components/Combine.d.ts +7 -0
  1670. package/icons/es/Cohere/components/Combine.js +36 -0
  1671. package/icons/es/Cohere/components/Mono.d.ts +3 -0
  1672. package/icons/es/Cohere/components/Mono.js +46 -0
  1673. package/icons/es/Cohere/components/Text.d.ts +3 -0
  1674. package/icons/es/Cohere/components/Text.js +39 -0
  1675. package/icons/es/Cohere/index.d.ts +15 -0
  1676. package/icons/es/Cohere/index.js +14 -0
  1677. package/icons/es/Cohere/style.d.ts +7 -0
  1678. package/icons/es/Cohere/style.js +9 -0
  1679. package/icons/es/Colab/components/Avatar.d.ts +5 -0
  1680. package/icons/es/Colab/components/Avatar.js +25 -0
  1681. package/icons/es/Colab/components/Color.d.ts +3 -0
  1682. package/icons/es/Colab/components/Color.js +45 -0
  1683. package/icons/es/Colab/components/Combine.d.ts +7 -0
  1684. package/icons/es/Colab/components/Combine.js +36 -0
  1685. package/icons/es/Colab/components/Mono.d.ts +3 -0
  1686. package/icons/es/Colab/components/Mono.js +40 -0
  1687. package/icons/es/Colab/components/Text.d.ts +3 -0
  1688. package/icons/es/Colab/components/Text.js +39 -0
  1689. package/icons/es/Colab/index.d.ts +15 -0
  1690. package/icons/es/Colab/index.js +14 -0
  1691. package/icons/es/Colab/style.d.ts +8 -0
  1692. package/icons/es/Colab/style.js +10 -0
  1693. package/icons/es/CometAPI/components/Avatar.d.ts +5 -0
  1694. package/icons/es/CometAPI/components/Avatar.js +25 -0
  1695. package/icons/es/CometAPI/components/Color.d.ts +3 -0
  1696. package/icons/es/CometAPI/components/Color.js +48 -0
  1697. package/icons/es/CometAPI/components/Combine.d.ts +7 -0
  1698. package/icons/es/CometAPI/components/Combine.js +32 -0
  1699. package/icons/es/CometAPI/components/Mono.d.ts +3 -0
  1700. package/icons/es/CometAPI/components/Mono.js +42 -0
  1701. package/icons/es/CometAPI/components/Text.d.ts +3 -0
  1702. package/icons/es/CometAPI/components/Text.js +39 -0
  1703. package/icons/es/CometAPI/index.d.ts +15 -0
  1704. package/icons/es/CometAPI/index.js +14 -0
  1705. package/icons/es/CometAPI/style.d.ts +7 -0
  1706. package/icons/es/CometAPI/style.js +9 -0
  1707. package/icons/es/ComfyUI/components/Avatar.d.ts +5 -0
  1708. package/icons/es/ComfyUI/components/Avatar.js +25 -0
  1709. package/icons/es/ComfyUI/components/Color.d.ts +3 -0
  1710. package/icons/es/ComfyUI/components/Color.js +39 -0
  1711. package/icons/es/ComfyUI/components/Combine.d.ts +7 -0
  1712. package/icons/es/ComfyUI/components/Combine.js +29 -0
  1713. package/icons/es/ComfyUI/components/Mono.d.ts +3 -0
  1714. package/icons/es/ComfyUI/components/Mono.js +40 -0
  1715. package/icons/es/ComfyUI/components/Text.d.ts +3 -0
  1716. package/icons/es/ComfyUI/components/Text.js +39 -0
  1717. package/icons/es/ComfyUI/index.d.ts +15 -0
  1718. package/icons/es/ComfyUI/index.js +14 -0
  1719. package/icons/es/ComfyUI/style.d.ts +7 -0
  1720. package/icons/es/ComfyUI/style.js +9 -0
  1721. package/icons/es/CommandA/components/Avatar.d.ts +5 -0
  1722. package/icons/es/CommandA/components/Avatar.js +25 -0
  1723. package/icons/es/CommandA/components/Color.d.ts +3 -0
  1724. package/icons/es/CommandA/components/Color.js +49 -0
  1725. package/icons/es/CommandA/components/Combine.d.ts +7 -0
  1726. package/icons/es/CommandA/components/Combine.js +32 -0
  1727. package/icons/es/CommandA/components/Mono.d.ts +3 -0
  1728. package/icons/es/CommandA/components/Mono.js +46 -0
  1729. package/icons/es/CommandA/components/Text.d.ts +3 -0
  1730. package/icons/es/CommandA/components/Text.js +41 -0
  1731. package/icons/es/CommandA/index.d.ts +15 -0
  1732. package/icons/es/CommandA/index.js +14 -0
  1733. package/icons/es/CommandA/style.d.ts +7 -0
  1734. package/icons/es/CommandA/style.js +9 -0
  1735. package/icons/es/Copilot/components/Avatar.d.ts +5 -0
  1736. package/icons/es/Copilot/components/Avatar.js +25 -0
  1737. package/icons/es/Copilot/components/Color.d.ts +3 -0
  1738. package/icons/es/Copilot/components/Color.js +178 -0
  1739. package/icons/es/Copilot/components/Combine.d.ts +7 -0
  1740. package/icons/es/Copilot/components/Combine.js +32 -0
  1741. package/icons/es/Copilot/components/Mono.d.ts +3 -0
  1742. package/icons/es/Copilot/components/Mono.js +40 -0
  1743. package/icons/es/Copilot/components/Text.d.ts +3 -0
  1744. package/icons/es/Copilot/components/Text.js +39 -0
  1745. package/icons/es/Copilot/index.d.ts +15 -0
  1746. package/icons/es/Copilot/index.js +14 -0
  1747. package/icons/es/Copilot/style.d.ts +7 -0
  1748. package/icons/es/Copilot/style.js +9 -0
  1749. package/icons/es/CopilotKit/components/Avatar.d.ts +5 -0
  1750. package/icons/es/CopilotKit/components/Avatar.js +25 -0
  1751. package/icons/es/CopilotKit/components/Color.d.ts +3 -0
  1752. package/icons/es/CopilotKit/components/Color.js +133 -0
  1753. package/icons/es/CopilotKit/components/Combine.d.ts +7 -0
  1754. package/icons/es/CopilotKit/components/Combine.js +33 -0
  1755. package/icons/es/CopilotKit/components/Mono.d.ts +3 -0
  1756. package/icons/es/CopilotKit/components/Mono.js +52 -0
  1757. package/icons/es/CopilotKit/components/Text.d.ts +3 -0
  1758. package/icons/es/CopilotKit/components/Text.js +39 -0
  1759. package/icons/es/CopilotKit/index.d.ts +15 -0
  1760. package/icons/es/CopilotKit/index.js +14 -0
  1761. package/icons/es/CopilotKit/style.d.ts +7 -0
  1762. package/icons/es/CopilotKit/style.js +9 -0
  1763. package/icons/es/Coqui/components/Avatar.d.ts +5 -0
  1764. package/icons/es/Coqui/components/Avatar.js +25 -0
  1765. package/icons/es/Coqui/components/Color.d.ts +3 -0
  1766. package/icons/es/Coqui/components/Color.js +42 -0
  1767. package/icons/es/Coqui/components/Combine.d.ts +7 -0
  1768. package/icons/es/Coqui/components/Combine.js +32 -0
  1769. package/icons/es/Coqui/components/Mono.d.ts +3 -0
  1770. package/icons/es/Coqui/components/Mono.js +42 -0
  1771. package/icons/es/Coqui/components/Text.d.ts +3 -0
  1772. package/icons/es/Coqui/components/Text.js +44 -0
  1773. package/icons/es/Coqui/index.d.ts +15 -0
  1774. package/icons/es/Coqui/index.js +14 -0
  1775. package/icons/es/Coqui/style.d.ts +7 -0
  1776. package/icons/es/Coqui/style.js +9 -0
  1777. package/icons/es/Coze/components/Avatar.d.ts +5 -0
  1778. package/icons/es/Coze/components/Avatar.js +25 -0
  1779. package/icons/es/Coze/components/Combine.d.ts +5 -0
  1780. package/icons/es/Coze/components/Combine.js +29 -0
  1781. package/icons/es/Coze/components/Mono.d.ts +3 -0
  1782. package/icons/es/Coze/components/Mono.js +41 -0
  1783. package/icons/es/Coze/components/Text.d.ts +3 -0
  1784. package/icons/es/Coze/components/Text.js +42 -0
  1785. package/icons/es/Coze/index.d.ts +13 -0
  1786. package/icons/es/Coze/index.js +12 -0
  1787. package/icons/es/Coze/style.d.ts +7 -0
  1788. package/icons/es/Coze/style.js +9 -0
  1789. package/icons/es/CrewAI/components/Avatar.d.ts +5 -0
  1790. package/icons/es/CrewAI/components/Avatar.js +25 -0
  1791. package/icons/es/CrewAI/components/Brand.d.ts +3 -0
  1792. package/icons/es/CrewAI/components/Brand.js +45 -0
  1793. package/icons/es/CrewAI/components/BrandColor.d.ts +3 -0
  1794. package/icons/es/CrewAI/components/BrandColor.js +48 -0
  1795. package/icons/es/CrewAI/components/Color.d.ts +3 -0
  1796. package/icons/es/CrewAI/components/Color.js +42 -0
  1797. package/icons/es/CrewAI/components/Combine.d.ts +7 -0
  1798. package/icons/es/CrewAI/components/Combine.js +32 -0
  1799. package/icons/es/CrewAI/components/Mono.d.ts +3 -0
  1800. package/icons/es/CrewAI/components/Mono.js +41 -0
  1801. package/icons/es/CrewAI/components/Text.d.ts +3 -0
  1802. package/icons/es/CrewAI/components/Text.js +39 -0
  1803. package/icons/es/CrewAI/index.d.ts +19 -0
  1804. package/icons/es/CrewAI/index.js +18 -0
  1805. package/icons/es/CrewAI/style.d.ts +7 -0
  1806. package/icons/es/CrewAI/style.js +9 -0
  1807. package/icons/es/Crusoe/components/Avatar.d.ts +5 -0
  1808. package/icons/es/Crusoe/components/Avatar.js +25 -0
  1809. package/icons/es/Crusoe/components/Color.d.ts +3 -0
  1810. package/icons/es/Crusoe/components/Color.js +64 -0
  1811. package/icons/es/Crusoe/components/Combine.d.ts +7 -0
  1812. package/icons/es/Crusoe/components/Combine.js +32 -0
  1813. package/icons/es/Crusoe/components/Mono.d.ts +3 -0
  1814. package/icons/es/Crusoe/components/Mono.js +61 -0
  1815. package/icons/es/Crusoe/components/Text.d.ts +3 -0
  1816. package/icons/es/Crusoe/components/Text.js +40 -0
  1817. package/icons/es/Crusoe/index.d.ts +15 -0
  1818. package/icons/es/Crusoe/index.js +14 -0
  1819. package/icons/es/Crusoe/style.d.ts +7 -0
  1820. package/icons/es/Crusoe/style.js +9 -0
  1821. package/icons/es/Cursor/components/Avatar.d.ts +5 -0
  1822. package/icons/es/Cursor/components/Avatar.js +25 -0
  1823. package/icons/es/Cursor/components/Combine.d.ts +5 -0
  1824. package/icons/es/Cursor/components/Combine.js +26 -0
  1825. package/icons/es/Cursor/components/Mono.d.ts +3 -0
  1826. package/icons/es/Cursor/components/Mono.js +40 -0
  1827. package/icons/es/Cursor/components/Text.d.ts +3 -0
  1828. package/icons/es/Cursor/components/Text.js +39 -0
  1829. package/icons/es/Cursor/index.d.ts +18 -0
  1830. package/icons/es/Cursor/index.js +12 -0
  1831. package/icons/es/Cursor/style.d.ts +7 -0
  1832. package/icons/es/Cursor/style.js +9 -0
  1833. package/icons/es/CyberCut/components/Avatar.d.ts +5 -0
  1834. package/icons/es/CyberCut/components/Avatar.js +25 -0
  1835. package/icons/es/CyberCut/components/Combine.d.ts +5 -0
  1836. package/icons/es/CyberCut/components/Combine.js +27 -0
  1837. package/icons/es/CyberCut/components/Mono.d.ts +3 -0
  1838. package/icons/es/CyberCut/components/Mono.js +64 -0
  1839. package/icons/es/CyberCut/components/Text.d.ts +3 -0
  1840. package/icons/es/CyberCut/components/Text.js +42 -0
  1841. package/icons/es/CyberCut/index.d.ts +13 -0
  1842. package/icons/es/CyberCut/index.js +12 -0
  1843. package/icons/es/CyberCut/style.d.ts +7 -0
  1844. package/icons/es/CyberCut/style.js +9 -0
  1845. package/icons/es/Dalle/components/Avatar.d.ts +5 -0
  1846. package/icons/es/Dalle/components/Avatar.js +23 -0
  1847. package/icons/es/Dalle/components/Color.d.ts +3 -0
  1848. package/icons/es/Dalle/components/Color.js +51 -0
  1849. package/icons/es/Dalle/components/Combine.d.ts +5 -0
  1850. package/icons/es/Dalle/components/Combine.js +36 -0
  1851. package/icons/es/Dalle/components/Mono.d.ts +3 -0
  1852. package/icons/es/Dalle/components/Mono.js +53 -0
  1853. package/icons/es/Dalle/components/Text.d.ts +3 -0
  1854. package/icons/es/Dalle/components/Text.js +39 -0
  1855. package/icons/es/Dalle/index.d.ts +16 -0
  1856. package/icons/es/Dalle/index.js +15 -0
  1857. package/icons/es/Dalle/style.d.ts +8 -0
  1858. package/icons/es/Dalle/style.js +10 -0
  1859. package/icons/es/Dbrx/components/Avatar.d.ts +5 -0
  1860. package/icons/es/Dbrx/components/Avatar.js +25 -0
  1861. package/icons/es/Dbrx/components/BrandColor.d.ts +3 -0
  1862. package/icons/es/Dbrx/components/BrandColor.js +42 -0
  1863. package/icons/es/Dbrx/components/BrandMono.d.ts +3 -0
  1864. package/icons/es/Dbrx/components/BrandMono.js +41 -0
  1865. package/icons/es/Dbrx/components/Color.d.ts +3 -0
  1866. package/icons/es/Dbrx/components/Color.js +40 -0
  1867. package/icons/es/Dbrx/components/Combine.d.ts +7 -0
  1868. package/icons/es/Dbrx/components/Combine.js +32 -0
  1869. package/icons/es/Dbrx/components/Mono.d.ts +3 -0
  1870. package/icons/es/Dbrx/components/Mono.js +40 -0
  1871. package/icons/es/Dbrx/components/Text.d.ts +3 -0
  1872. package/icons/es/Dbrx/components/Text.js +39 -0
  1873. package/icons/es/Dbrx/index.d.ts +19 -0
  1874. package/icons/es/Dbrx/index.js +18 -0
  1875. package/icons/es/Dbrx/style.d.ts +7 -0
  1876. package/icons/es/Dbrx/style.js +9 -0
  1877. package/icons/es/DeepAI/components/Avatar.d.ts +5 -0
  1878. package/icons/es/DeepAI/components/Avatar.js +25 -0
  1879. package/icons/es/DeepAI/components/Combine.d.ts +5 -0
  1880. package/icons/es/DeepAI/components/Combine.js +26 -0
  1881. package/icons/es/DeepAI/components/Mono.d.ts +3 -0
  1882. package/icons/es/DeepAI/components/Mono.js +40 -0
  1883. package/icons/es/DeepAI/components/Text.d.ts +3 -0
  1884. package/icons/es/DeepAI/components/Text.js +39 -0
  1885. package/icons/es/DeepAI/index.d.ts +13 -0
  1886. package/icons/es/DeepAI/index.js +12 -0
  1887. package/icons/es/DeepAI/style.d.ts +7 -0
  1888. package/icons/es/DeepAI/style.js +9 -0
  1889. package/icons/es/DeepCogito/components/Avatar.d.ts +5 -0
  1890. package/icons/es/DeepCogito/components/Avatar.js +25 -0
  1891. package/icons/es/DeepCogito/components/Color.d.ts +3 -0
  1892. package/icons/es/DeepCogito/components/Color.js +39 -0
  1893. package/icons/es/DeepCogito/components/Combine.d.ts +7 -0
  1894. package/icons/es/DeepCogito/components/Combine.js +32 -0
  1895. package/icons/es/DeepCogito/components/Mono.d.ts +3 -0
  1896. package/icons/es/DeepCogito/components/Mono.js +40 -0
  1897. package/icons/es/DeepCogito/components/Text.d.ts +3 -0
  1898. package/icons/es/DeepCogito/components/Text.js +39 -0
  1899. package/icons/es/DeepCogito/index.d.ts +16 -0
  1900. package/icons/es/DeepCogito/index.js +14 -0
  1901. package/icons/es/DeepCogito/style.d.ts +7 -0
  1902. package/icons/es/DeepCogito/style.js +9 -0
  1903. package/icons/es/DeepInfra/components/Avatar.d.ts +5 -0
  1904. package/icons/es/DeepInfra/components/Avatar.js +25 -0
  1905. package/icons/es/DeepInfra/components/Color.d.ts +3 -0
  1906. package/icons/es/DeepInfra/components/Color.js +42 -0
  1907. package/icons/es/DeepInfra/components/Combine.d.ts +7 -0
  1908. package/icons/es/DeepInfra/components/Combine.js +32 -0
  1909. package/icons/es/DeepInfra/components/Mono.d.ts +3 -0
  1910. package/icons/es/DeepInfra/components/Mono.js +42 -0
  1911. package/icons/es/DeepInfra/components/Text.d.ts +3 -0
  1912. package/icons/es/DeepInfra/components/Text.js +41 -0
  1913. package/icons/es/DeepInfra/index.d.ts +15 -0
  1914. package/icons/es/DeepInfra/index.js +14 -0
  1915. package/icons/es/DeepInfra/style.d.ts +7 -0
  1916. package/icons/es/DeepInfra/style.js +9 -0
  1917. package/icons/es/DeepL/components/Avatar.d.ts +5 -0
  1918. package/icons/es/DeepL/components/Avatar.js +25 -0
  1919. package/icons/es/DeepL/components/Color.d.ts +3 -0
  1920. package/icons/es/DeepL/components/Color.js +43 -0
  1921. package/icons/es/DeepL/components/Combine.d.ts +7 -0
  1922. package/icons/es/DeepL/components/Combine.js +32 -0
  1923. package/icons/es/DeepL/components/Mono.d.ts +3 -0
  1924. package/icons/es/DeepL/components/Mono.js +43 -0
  1925. package/icons/es/DeepL/components/Text.d.ts +3 -0
  1926. package/icons/es/DeepL/components/Text.js +39 -0
  1927. package/icons/es/DeepL/index.d.ts +15 -0
  1928. package/icons/es/DeepL/index.js +14 -0
  1929. package/icons/es/DeepL/style.d.ts +7 -0
  1930. package/icons/es/DeepL/style.js +9 -0
  1931. package/icons/es/DeepMind/components/Avatar.d.ts +5 -0
  1932. package/icons/es/DeepMind/components/Avatar.js +25 -0
  1933. package/icons/es/DeepMind/components/Color.d.ts +3 -0
  1934. package/icons/es/DeepMind/components/Color.js +40 -0
  1935. package/icons/es/DeepMind/components/Combine.d.ts +7 -0
  1936. package/icons/es/DeepMind/components/Combine.js +32 -0
  1937. package/icons/es/DeepMind/components/Mono.d.ts +3 -0
  1938. package/icons/es/DeepMind/components/Mono.js +40 -0
  1939. package/icons/es/DeepMind/components/Text.d.ts +3 -0
  1940. package/icons/es/DeepMind/components/Text.js +39 -0
  1941. package/icons/es/DeepMind/index.d.ts +15 -0
  1942. package/icons/es/DeepMind/index.js +14 -0
  1943. package/icons/es/DeepMind/style.d.ts +7 -0
  1944. package/icons/es/DeepMind/style.js +9 -0
  1945. package/icons/es/DeepSeek/components/Avatar.d.ts +5 -0
  1946. package/icons/es/DeepSeek/components/Avatar.js +25 -0
  1947. package/icons/es/DeepSeek/components/Color.d.ts +3 -0
  1948. package/icons/es/DeepSeek/components/Color.js +39 -0
  1949. package/icons/es/DeepSeek/components/Combine.d.ts +7 -0
  1950. package/icons/es/DeepSeek/components/Combine.js +32 -0
  1951. package/icons/es/DeepSeek/components/Mono.d.ts +3 -0
  1952. package/icons/es/DeepSeek/components/Mono.js +40 -0
  1953. package/icons/es/DeepSeek/components/Text.d.ts +3 -0
  1954. package/icons/es/DeepSeek/components/Text.js +39 -0
  1955. package/icons/es/DeepSeek/index.d.ts +15 -0
  1956. package/icons/es/DeepSeek/index.js +14 -0
  1957. package/icons/es/DeepSeek/style.d.ts +7 -0
  1958. package/icons/es/DeepSeek/style.js +9 -0
  1959. package/icons/es/Devin/components/Avatar.d.ts +5 -0
  1960. package/icons/es/Devin/components/Avatar.js +25 -0
  1961. package/icons/es/Devin/components/Color.d.ts +3 -0
  1962. package/icons/es/Devin/components/Color.js +45 -0
  1963. package/icons/es/Devin/components/Combine.d.ts +7 -0
  1964. package/icons/es/Devin/components/Combine.js +32 -0
  1965. package/icons/es/Devin/components/Mono.d.ts +3 -0
  1966. package/icons/es/Devin/components/Mono.js +44 -0
  1967. package/icons/es/Devin/components/Text.d.ts +3 -0
  1968. package/icons/es/Devin/components/Text.js +38 -0
  1969. package/icons/es/Devin/index.d.ts +15 -0
  1970. package/icons/es/Devin/index.js +14 -0
  1971. package/icons/es/Devin/style.d.ts +7 -0
  1972. package/icons/es/Devin/style.js +9 -0
  1973. package/icons/es/Dify/components/Avatar.d.ts +5 -0
  1974. package/icons/es/Dify/components/Avatar.js +25 -0
  1975. package/icons/es/Dify/components/Color.d.ts +3 -0
  1976. package/icons/es/Dify/components/Color.js +42 -0
  1977. package/icons/es/Dify/components/Combine.d.ts +7 -0
  1978. package/icons/es/Dify/components/Combine.js +29 -0
  1979. package/icons/es/Dify/components/Mono.d.ts +3 -0
  1980. package/icons/es/Dify/components/Mono.js +42 -0
  1981. package/icons/es/Dify/components/Text.d.ts +3 -0
  1982. package/icons/es/Dify/components/Text.js +45 -0
  1983. package/icons/es/Dify/components/TextColor.d.ts +3 -0
  1984. package/icons/es/Dify/components/TextColor.js +47 -0
  1985. package/icons/es/Dify/index.d.ts +16 -0
  1986. package/icons/es/Dify/index.js +14 -0
  1987. package/icons/es/Dify/style.d.ts +7 -0
  1988. package/icons/es/Dify/style.js +9 -0
  1989. package/icons/es/Doc2X/components/Avatar.d.ts +5 -0
  1990. package/icons/es/Doc2X/components/Avatar.js +25 -0
  1991. package/icons/es/Doc2X/components/Color.d.ts +3 -0
  1992. package/icons/es/Doc2X/components/Color.js +42 -0
  1993. package/icons/es/Doc2X/components/Combine.d.ts +7 -0
  1994. package/icons/es/Doc2X/components/Combine.js +32 -0
  1995. package/icons/es/Doc2X/components/Mono.d.ts +3 -0
  1996. package/icons/es/Doc2X/components/Mono.js +43 -0
  1997. package/icons/es/Doc2X/components/Text.d.ts +3 -0
  1998. package/icons/es/Doc2X/components/Text.js +39 -0
  1999. package/icons/es/Doc2X/index.d.ts +15 -0
  2000. package/icons/es/Doc2X/index.js +14 -0
  2001. package/icons/es/Doc2X/style.d.ts +7 -0
  2002. package/icons/es/Doc2X/style.js +9 -0
  2003. package/icons/es/DocSearch/components/Avatar.d.ts +5 -0
  2004. package/icons/es/DocSearch/components/Avatar.js +25 -0
  2005. package/icons/es/DocSearch/components/Color.d.ts +3 -0
  2006. package/icons/es/DocSearch/components/Color.js +42 -0
  2007. package/icons/es/DocSearch/components/Combine.d.ts +7 -0
  2008. package/icons/es/DocSearch/components/Combine.js +32 -0
  2009. package/icons/es/DocSearch/components/Mono.d.ts +3 -0
  2010. package/icons/es/DocSearch/components/Mono.js +42 -0
  2011. package/icons/es/DocSearch/components/Text.d.ts +3 -0
  2012. package/icons/es/DocSearch/components/Text.js +39 -0
  2013. package/icons/es/DocSearch/index.d.ts +15 -0
  2014. package/icons/es/DocSearch/index.js +14 -0
  2015. package/icons/es/DocSearch/style.d.ts +7 -0
  2016. package/icons/es/DocSearch/style.js +9 -0
  2017. package/icons/es/Dolphin/components/Avatar.d.ts +5 -0
  2018. package/icons/es/Dolphin/components/Avatar.js +25 -0
  2019. package/icons/es/Dolphin/components/Combine.d.ts +5 -0
  2020. package/icons/es/Dolphin/components/Combine.js +26 -0
  2021. package/icons/es/Dolphin/components/Mono.d.ts +3 -0
  2022. package/icons/es/Dolphin/components/Mono.js +40 -0
  2023. package/icons/es/Dolphin/components/Text.d.ts +3 -0
  2024. package/icons/es/Dolphin/components/Text.js +39 -0
  2025. package/icons/es/Dolphin/index.d.ts +13 -0
  2026. package/icons/es/Dolphin/index.js +12 -0
  2027. package/icons/es/Dolphin/style.d.ts +7 -0
  2028. package/icons/es/Dolphin/style.js +9 -0
  2029. package/icons/es/Doubao/components/Avatar.d.ts +5 -0
  2030. package/icons/es/Doubao/components/Avatar.js +25 -0
  2031. package/icons/es/Doubao/components/Color.d.ts +3 -0
  2032. package/icons/es/Doubao/components/Color.js +48 -0
  2033. package/icons/es/Doubao/components/Combine.d.ts +7 -0
  2034. package/icons/es/Doubao/components/Combine.js +32 -0
  2035. package/icons/es/Doubao/components/Mono.d.ts +3 -0
  2036. package/icons/es/Doubao/components/Mono.js +46 -0
  2037. package/icons/es/Doubao/components/Text.d.ts +3 -0
  2038. package/icons/es/Doubao/components/Text.js +40 -0
  2039. package/icons/es/Doubao/index.d.ts +15 -0
  2040. package/icons/es/Doubao/index.js +14 -0
  2041. package/icons/es/Doubao/style.d.ts +7 -0
  2042. package/icons/es/Doubao/style.js +9 -0
  2043. package/icons/es/DreamMachine/components/Avatar.d.ts +5 -0
  2044. package/icons/es/DreamMachine/components/Avatar.js +25 -0
  2045. package/icons/es/DreamMachine/components/Combine.d.ts +5 -0
  2046. package/icons/es/DreamMachine/components/Combine.js +29 -0
  2047. package/icons/es/DreamMachine/components/Mono.d.ts +3 -0
  2048. package/icons/es/DreamMachine/components/Mono.js +44 -0
  2049. package/icons/es/DreamMachine/components/Text.d.ts +3 -0
  2050. package/icons/es/DreamMachine/components/Text.js +39 -0
  2051. package/icons/es/DreamMachine/index.d.ts +13 -0
  2052. package/icons/es/DreamMachine/index.js +12 -0
  2053. package/icons/es/DreamMachine/style.d.ts +7 -0
  2054. package/icons/es/DreamMachine/style.js +9 -0
  2055. package/icons/es/ElevenLabs/components/Avatar.d.ts +5 -0
  2056. package/icons/es/ElevenLabs/components/Avatar.js +25 -0
  2057. package/icons/es/ElevenLabs/components/Combine.d.ts +5 -0
  2058. package/icons/es/ElevenLabs/components/Combine.js +24 -0
  2059. package/icons/es/ElevenLabs/components/Mono.d.ts +3 -0
  2060. package/icons/es/ElevenLabs/components/Mono.js +40 -0
  2061. package/icons/es/ElevenLabs/components/Text.d.ts +3 -0
  2062. package/icons/es/ElevenLabs/components/Text.js +44 -0
  2063. package/icons/es/ElevenLabs/index.d.ts +13 -0
  2064. package/icons/es/ElevenLabs/index.js +12 -0
  2065. package/icons/es/ElevenLabs/style.d.ts +7 -0
  2066. package/icons/es/ElevenLabs/style.js +9 -0
  2067. package/icons/es/ElevenX/components/Avatar.d.ts +5 -0
  2068. package/icons/es/ElevenX/components/Avatar.js +25 -0
  2069. package/icons/es/ElevenX/components/Combine.d.ts +5 -0
  2070. package/icons/es/ElevenX/components/Combine.js +26 -0
  2071. package/icons/es/ElevenX/components/Mono.d.ts +3 -0
  2072. package/icons/es/ElevenX/components/Mono.js +40 -0
  2073. package/icons/es/ElevenX/components/Text.d.ts +3 -0
  2074. package/icons/es/ElevenX/components/Text.js +39 -0
  2075. package/icons/es/ElevenX/index.d.ts +13 -0
  2076. package/icons/es/ElevenX/index.js +12 -0
  2077. package/icons/es/ElevenX/style.d.ts +7 -0
  2078. package/icons/es/ElevenX/style.js +9 -0
  2079. package/icons/es/EssentialAI/components/Avatar.d.ts +5 -0
  2080. package/icons/es/EssentialAI/components/Avatar.js +25 -0
  2081. package/icons/es/EssentialAI/components/Color.d.ts +3 -0
  2082. package/icons/es/EssentialAI/components/Color.js +58 -0
  2083. package/icons/es/EssentialAI/components/Combine.d.ts +7 -0
  2084. package/icons/es/EssentialAI/components/Combine.js +32 -0
  2085. package/icons/es/EssentialAI/components/Mono.d.ts +3 -0
  2086. package/icons/es/EssentialAI/components/Mono.js +40 -0
  2087. package/icons/es/EssentialAI/components/Text.d.ts +3 -0
  2088. package/icons/es/EssentialAI/components/Text.js +39 -0
  2089. package/icons/es/EssentialAI/index.d.ts +16 -0
  2090. package/icons/es/EssentialAI/index.js +15 -0
  2091. package/icons/es/EssentialAI/style.d.ts +8 -0
  2092. package/icons/es/EssentialAI/style.js +10 -0
  2093. package/icons/es/Exa/components/Avatar.d.ts +5 -0
  2094. package/icons/es/Exa/components/Avatar.js +25 -0
  2095. package/icons/es/Exa/components/Color.d.ts +3 -0
  2096. package/icons/es/Exa/components/Color.js +41 -0
  2097. package/icons/es/Exa/components/Combine.d.ts +7 -0
  2098. package/icons/es/Exa/components/Combine.js +32 -0
  2099. package/icons/es/Exa/components/Mono.d.ts +3 -0
  2100. package/icons/es/Exa/components/Mono.js +41 -0
  2101. package/icons/es/Exa/components/Text.d.ts +3 -0
  2102. package/icons/es/Exa/components/Text.js +39 -0
  2103. package/icons/es/Exa/index.d.ts +15 -0
  2104. package/icons/es/Exa/index.js +14 -0
  2105. package/icons/es/Exa/style.d.ts +7 -0
  2106. package/icons/es/Exa/style.js +9 -0
  2107. package/icons/es/Fal/components/Avatar.d.ts +5 -0
  2108. package/icons/es/Fal/components/Avatar.js +25 -0
  2109. package/icons/es/Fal/components/Color.d.ts +3 -0
  2110. package/icons/es/Fal/components/Color.js +41 -0
  2111. package/icons/es/Fal/components/Combine.d.ts +5 -0
  2112. package/icons/es/Fal/components/Combine.js +26 -0
  2113. package/icons/es/Fal/components/Mono.d.ts +3 -0
  2114. package/icons/es/Fal/components/Mono.js +41 -0
  2115. package/icons/es/Fal/components/Text.d.ts +3 -0
  2116. package/icons/es/Fal/components/Text.js +42 -0
  2117. package/icons/es/Fal/index.d.ts +15 -0
  2118. package/icons/es/Fal/index.js +14 -0
  2119. package/icons/es/Fal/style.d.ts +7 -0
  2120. package/icons/es/Fal/style.js +9 -0
  2121. package/icons/es/FastGPT/components/Avatar.d.ts +5 -0
  2122. package/icons/es/FastGPT/components/Avatar.js +25 -0
  2123. package/icons/es/FastGPT/components/Color.d.ts +3 -0
  2124. package/icons/es/FastGPT/components/Color.js +81 -0
  2125. package/icons/es/FastGPT/components/Combine.d.ts +7 -0
  2126. package/icons/es/FastGPT/components/Combine.js +32 -0
  2127. package/icons/es/FastGPT/components/Mono.d.ts +3 -0
  2128. package/icons/es/FastGPT/components/Mono.js +42 -0
  2129. package/icons/es/FastGPT/components/Text.d.ts +3 -0
  2130. package/icons/es/FastGPT/components/Text.js +39 -0
  2131. package/icons/es/FastGPT/index.d.ts +15 -0
  2132. package/icons/es/FastGPT/index.js +14 -0
  2133. package/icons/es/FastGPT/style.d.ts +7 -0
  2134. package/icons/es/FastGPT/style.js +9 -0
  2135. package/icons/es/Featherless/components/Avatar.d.ts +5 -0
  2136. package/icons/es/Featherless/components/Avatar.js +29 -0
  2137. package/icons/es/Featherless/components/Color.d.ts +3 -0
  2138. package/icons/es/Featherless/components/Color.js +39 -0
  2139. package/icons/es/Featherless/components/Combine.d.ts +7 -0
  2140. package/icons/es/Featherless/components/Combine.js +32 -0
  2141. package/icons/es/Featherless/components/Mono.d.ts +3 -0
  2142. package/icons/es/Featherless/components/Mono.js +40 -0
  2143. package/icons/es/Featherless/components/Text.d.ts +3 -0
  2144. package/icons/es/Featherless/components/Text.js +39 -0
  2145. package/icons/es/Featherless/index.d.ts +15 -0
  2146. package/icons/es/Featherless/index.js +14 -0
  2147. package/icons/es/Featherless/style.d.ts +7 -0
  2148. package/icons/es/Featherless/style.js +9 -0
  2149. package/icons/es/Figma/components/Avatar.d.ts +5 -0
  2150. package/icons/es/Figma/components/Avatar.js +25 -0
  2151. package/icons/es/Figma/components/Color.d.ts +3 -0
  2152. package/icons/es/Figma/components/Color.js +51 -0
  2153. package/icons/es/Figma/components/Combine.d.ts +7 -0
  2154. package/icons/es/Figma/components/Combine.js +32 -0
  2155. package/icons/es/Figma/components/Mono.d.ts +3 -0
  2156. package/icons/es/Figma/components/Mono.js +41 -0
  2157. package/icons/es/Figma/components/Text.d.ts +3 -0
  2158. package/icons/es/Figma/components/Text.js +39 -0
  2159. package/icons/es/Figma/index.d.ts +15 -0
  2160. package/icons/es/Figma/index.js +14 -0
  2161. package/icons/es/Figma/style.d.ts +7 -0
  2162. package/icons/es/Figma/style.js +9 -0
  2163. package/icons/es/Fireworks/components/Avatar.d.ts +5 -0
  2164. package/icons/es/Fireworks/components/Avatar.js +25 -0
  2165. package/icons/es/Fireworks/components/Color.d.ts +3 -0
  2166. package/icons/es/Fireworks/components/Color.js +41 -0
  2167. package/icons/es/Fireworks/components/Combine.d.ts +7 -0
  2168. package/icons/es/Fireworks/components/Combine.js +32 -0
  2169. package/icons/es/Fireworks/components/Mono.d.ts +3 -0
  2170. package/icons/es/Fireworks/components/Mono.js +41 -0
  2171. package/icons/es/Fireworks/components/Text.d.ts +3 -0
  2172. package/icons/es/Fireworks/components/Text.js +39 -0
  2173. package/icons/es/Fireworks/index.d.ts +15 -0
  2174. package/icons/es/Fireworks/index.js +14 -0
  2175. package/icons/es/Fireworks/style.d.ts +7 -0
  2176. package/icons/es/Fireworks/style.js +9 -0
  2177. package/icons/es/FishAudio/components/Avatar.d.ts +5 -0
  2178. package/icons/es/FishAudio/components/Avatar.js +25 -0
  2179. package/icons/es/FishAudio/components/Combine.d.ts +5 -0
  2180. package/icons/es/FishAudio/components/Combine.js +26 -0
  2181. package/icons/es/FishAudio/components/Mono.d.ts +3 -0
  2182. package/icons/es/FishAudio/components/Mono.js +43 -0
  2183. package/icons/es/FishAudio/components/Text.d.ts +3 -0
  2184. package/icons/es/FishAudio/components/Text.js +39 -0
  2185. package/icons/es/FishAudio/index.d.ts +13 -0
  2186. package/icons/es/FishAudio/index.js +12 -0
  2187. package/icons/es/FishAudio/style.d.ts +7 -0
  2188. package/icons/es/FishAudio/style.js +9 -0
  2189. package/icons/es/Flora/components/Avatar.d.ts +5 -0
  2190. package/icons/es/Flora/components/Avatar.js +25 -0
  2191. package/icons/es/Flora/components/Combine.d.ts +5 -0
  2192. package/icons/es/Flora/components/Combine.js +29 -0
  2193. package/icons/es/Flora/components/Mono.d.ts +3 -0
  2194. package/icons/es/Flora/components/Mono.js +40 -0
  2195. package/icons/es/Flora/components/Text.d.ts +3 -0
  2196. package/icons/es/Flora/components/Text.js +40 -0
  2197. package/icons/es/Flora/index.d.ts +13 -0
  2198. package/icons/es/Flora/index.js +12 -0
  2199. package/icons/es/Flora/style.d.ts +7 -0
  2200. package/icons/es/Flora/style.js +9 -0
  2201. package/icons/es/Flowith/components/Avatar.d.ts +5 -0
  2202. package/icons/es/Flowith/components/Avatar.js +25 -0
  2203. package/icons/es/Flowith/components/Combine.d.ts +5 -0
  2204. package/icons/es/Flowith/components/Combine.js +26 -0
  2205. package/icons/es/Flowith/components/Mono.d.ts +3 -0
  2206. package/icons/es/Flowith/components/Mono.js +41 -0
  2207. package/icons/es/Flowith/components/Text.d.ts +3 -0
  2208. package/icons/es/Flowith/components/Text.js +39 -0
  2209. package/icons/es/Flowith/index.d.ts +13 -0
  2210. package/icons/es/Flowith/index.js +12 -0
  2211. package/icons/es/Flowith/style.d.ts +7 -0
  2212. package/icons/es/Flowith/style.js +9 -0
  2213. package/icons/es/Flux/components/Avatar.d.ts +5 -0
  2214. package/icons/es/Flux/components/Avatar.js +25 -0
  2215. package/icons/es/Flux/components/Combine.d.ts +5 -0
  2216. package/icons/es/Flux/components/Combine.js +26 -0
  2217. package/icons/es/Flux/components/Mono.d.ts +3 -0
  2218. package/icons/es/Flux/components/Mono.js +42 -0
  2219. package/icons/es/Flux/components/Text.d.ts +3 -0
  2220. package/icons/es/Flux/components/Text.js +39 -0
  2221. package/icons/es/Flux/index.d.ts +13 -0
  2222. package/icons/es/Flux/index.js +12 -0
  2223. package/icons/es/Flux/style.d.ts +7 -0
  2224. package/icons/es/Flux/style.js +9 -0
  2225. package/icons/es/Friendli/components/Avatar.d.ts +5 -0
  2226. package/icons/es/Friendli/components/Avatar.js +25 -0
  2227. package/icons/es/Friendli/components/Combine.d.ts +5 -0
  2228. package/icons/es/Friendli/components/Combine.js +26 -0
  2229. package/icons/es/Friendli/components/Mono.d.ts +3 -0
  2230. package/icons/es/Friendli/components/Mono.js +44 -0
  2231. package/icons/es/Friendli/components/Text.d.ts +3 -0
  2232. package/icons/es/Friendli/components/Text.js +39 -0
  2233. package/icons/es/Friendli/index.d.ts +13 -0
  2234. package/icons/es/Friendli/index.js +12 -0
  2235. package/icons/es/Friendli/style.d.ts +7 -0
  2236. package/icons/es/Friendli/style.js +9 -0
  2237. package/icons/es/GLMV/components/Avatar.d.ts +5 -0
  2238. package/icons/es/GLMV/components/Avatar.js +25 -0
  2239. package/icons/es/GLMV/components/Color.d.ts +3 -0
  2240. package/icons/es/GLMV/components/Color.js +51 -0
  2241. package/icons/es/GLMV/components/Combine.d.ts +7 -0
  2242. package/icons/es/GLMV/components/Combine.js +32 -0
  2243. package/icons/es/GLMV/components/Mono.d.ts +3 -0
  2244. package/icons/es/GLMV/components/Mono.js +48 -0
  2245. package/icons/es/GLMV/components/Text.d.ts +3 -0
  2246. package/icons/es/GLMV/components/Text.js +39 -0
  2247. package/icons/es/GLMV/index.d.ts +15 -0
  2248. package/icons/es/GLMV/index.js +14 -0
  2249. package/icons/es/GLMV/style.d.ts +7 -0
  2250. package/icons/es/GLMV/style.js +9 -0
  2251. package/icons/es/Gemini/components/Avatar.d.ts +5 -0
  2252. package/icons/es/Gemini/components/Avatar.js +25 -0
  2253. package/icons/es/Gemini/components/Color.d.ts +3 -0
  2254. package/icons/es/Gemini/components/Color.js +104 -0
  2255. package/icons/es/Gemini/components/Combine.d.ts +7 -0
  2256. package/icons/es/Gemini/components/Combine.js +32 -0
  2257. package/icons/es/Gemini/components/Mono.d.ts +3 -0
  2258. package/icons/es/Gemini/components/Mono.js +40 -0
  2259. package/icons/es/Gemini/components/Text.d.ts +3 -0
  2260. package/icons/es/Gemini/components/Text.js +39 -0
  2261. package/icons/es/Gemini/index.d.ts +16 -0
  2262. package/icons/es/Gemini/index.js +14 -0
  2263. package/icons/es/Gemini/style.d.ts +7 -0
  2264. package/icons/es/Gemini/style.js +9 -0
  2265. package/icons/es/GeminiCLI/components/Avatar.d.ts +5 -0
  2266. package/icons/es/GeminiCLI/components/Avatar.js +25 -0
  2267. package/icons/es/GeminiCLI/components/Color.d.ts +3 -0
  2268. package/icons/es/GeminiCLI/components/Color.js +66 -0
  2269. package/icons/es/GeminiCLI/components/Combine.d.ts +7 -0
  2270. package/icons/es/GeminiCLI/components/Combine.js +32 -0
  2271. package/icons/es/GeminiCLI/components/Mono.d.ts +3 -0
  2272. package/icons/es/GeminiCLI/components/Mono.js +43 -0
  2273. package/icons/es/GeminiCLI/components/Text.d.ts +3 -0
  2274. package/icons/es/GeminiCLI/components/Text.js +39 -0
  2275. package/icons/es/GeminiCLI/index.d.ts +16 -0
  2276. package/icons/es/GeminiCLI/index.js +14 -0
  2277. package/icons/es/GeminiCLI/style.d.ts +7 -0
  2278. package/icons/es/GeminiCLI/style.js +9 -0
  2279. package/icons/es/Gemma/components/Avatar.d.ts +5 -0
  2280. package/icons/es/Gemma/components/Avatar.js +25 -0
  2281. package/icons/es/Gemma/components/Color.d.ts +3 -0
  2282. package/icons/es/Gemma/components/Color.js +62 -0
  2283. package/icons/es/Gemma/components/Combine.d.ts +7 -0
  2284. package/icons/es/Gemma/components/Combine.js +32 -0
  2285. package/icons/es/Gemma/components/Mono.d.ts +3 -0
  2286. package/icons/es/Gemma/components/Mono.js +40 -0
  2287. package/icons/es/Gemma/components/Simple.d.ts +3 -0
  2288. package/icons/es/Gemma/components/Simple.js +39 -0
  2289. package/icons/es/Gemma/components/Text.d.ts +3 -0
  2290. package/icons/es/Gemma/components/Text.js +39 -0
  2291. package/icons/es/Gemma/index.d.ts +17 -0
  2292. package/icons/es/Gemma/index.js +17 -0
  2293. package/icons/es/Gemma/style.d.ts +8 -0
  2294. package/icons/es/Gemma/style.js +10 -0
  2295. package/icons/es/GiteeAI/components/Avatar.d.ts +5 -0
  2296. package/icons/es/GiteeAI/components/Avatar.js +25 -0
  2297. package/icons/es/GiteeAI/components/Combine.d.ts +5 -0
  2298. package/icons/es/GiteeAI/components/Combine.js +26 -0
  2299. package/icons/es/GiteeAI/components/Mono.d.ts +3 -0
  2300. package/icons/es/GiteeAI/components/Mono.js +41 -0
  2301. package/icons/es/GiteeAI/components/Text.d.ts +3 -0
  2302. package/icons/es/GiteeAI/components/Text.js +39 -0
  2303. package/icons/es/GiteeAI/index.d.ts +13 -0
  2304. package/icons/es/GiteeAI/index.js +12 -0
  2305. package/icons/es/GiteeAI/style.d.ts +7 -0
  2306. package/icons/es/GiteeAI/style.js +9 -0
  2307. package/icons/es/Github/components/Avatar.d.ts +5 -0
  2308. package/icons/es/Github/components/Avatar.js +25 -0
  2309. package/icons/es/Github/components/Combine.d.ts +5 -0
  2310. package/icons/es/Github/components/Combine.js +26 -0
  2311. package/icons/es/Github/components/Mono.d.ts +3 -0
  2312. package/icons/es/Github/components/Mono.js +40 -0
  2313. package/icons/es/Github/components/Text.d.ts +3 -0
  2314. package/icons/es/Github/components/Text.js +39 -0
  2315. package/icons/es/Github/index.d.ts +13 -0
  2316. package/icons/es/Github/index.js +12 -0
  2317. package/icons/es/Github/style.d.ts +7 -0
  2318. package/icons/es/Github/style.js +9 -0
  2319. package/icons/es/GithubCopilot/components/Avatar.d.ts +5 -0
  2320. package/icons/es/GithubCopilot/components/Avatar.js +25 -0
  2321. package/icons/es/GithubCopilot/components/Combine.d.ts +5 -0
  2322. package/icons/es/GithubCopilot/components/Combine.js +26 -0
  2323. package/icons/es/GithubCopilot/components/Mono.d.ts +3 -0
  2324. package/icons/es/GithubCopilot/components/Mono.js +40 -0
  2325. package/icons/es/GithubCopilot/components/Text.d.ts +3 -0
  2326. package/icons/es/GithubCopilot/components/Text.js +39 -0
  2327. package/icons/es/GithubCopilot/index.d.ts +13 -0
  2328. package/icons/es/GithubCopilot/index.js +12 -0
  2329. package/icons/es/GithubCopilot/style.d.ts +7 -0
  2330. package/icons/es/GithubCopilot/style.js +9 -0
  2331. package/icons/es/Glama/components/Avatar.d.ts +5 -0
  2332. package/icons/es/Glama/components/Avatar.js +25 -0
  2333. package/icons/es/Glama/components/Combine.d.ts +5 -0
  2334. package/icons/es/Glama/components/Combine.js +26 -0
  2335. package/icons/es/Glama/components/Mono.d.ts +3 -0
  2336. package/icons/es/Glama/components/Mono.js +44 -0
  2337. package/icons/es/Glama/components/Text.d.ts +3 -0
  2338. package/icons/es/Glama/components/Text.js +39 -0
  2339. package/icons/es/Glama/index.d.ts +13 -0
  2340. package/icons/es/Glama/index.js +12 -0
  2341. package/icons/es/Glama/style.d.ts +7 -0
  2342. package/icons/es/Glama/style.js +9 -0
  2343. package/icons/es/Glif/components/Avatar.d.ts +5 -0
  2344. package/icons/es/Glif/components/Avatar.js +25 -0
  2345. package/icons/es/Glif/components/Mono.d.ts +3 -0
  2346. package/icons/es/Glif/components/Mono.js +40 -0
  2347. package/icons/es/Glif/components/Text.d.ts +3 -0
  2348. package/icons/es/Glif/components/Text.js +43 -0
  2349. package/icons/es/Glif/index.d.ts +11 -0
  2350. package/icons/es/Glif/index.js +10 -0
  2351. package/icons/es/Glif/style.d.ts +7 -0
  2352. package/icons/es/Glif/style.js +9 -0
  2353. package/icons/es/Google/components/Avatar.d.ts +5 -0
  2354. package/icons/es/Google/components/Avatar.js +25 -0
  2355. package/icons/es/Google/components/BrandColor.d.ts +3 -0
  2356. package/icons/es/Google/components/BrandColor.js +54 -0
  2357. package/icons/es/Google/components/BrandMono.d.ts +3 -0
  2358. package/icons/es/Google/components/BrandMono.js +39 -0
  2359. package/icons/es/Google/components/Color.d.ts +3 -0
  2360. package/icons/es/Google/components/Color.js +48 -0
  2361. package/icons/es/Google/components/Mono.d.ts +3 -0
  2362. package/icons/es/Google/components/Mono.js +46 -0
  2363. package/icons/es/Google/index.d.ts +15 -0
  2364. package/icons/es/Google/index.js +14 -0
  2365. package/icons/es/Google/style.d.ts +5 -0
  2366. package/icons/es/Google/style.js +7 -0
  2367. package/icons/es/GoogleCloud/components/Avatar.d.ts +5 -0
  2368. package/icons/es/GoogleCloud/components/Avatar.js +25 -0
  2369. package/icons/es/GoogleCloud/components/BrandColor.d.ts +3 -0
  2370. package/icons/es/GoogleCloud/components/BrandColor.js +57 -0
  2371. package/icons/es/GoogleCloud/components/BrandMono.d.ts +3 -0
  2372. package/icons/es/GoogleCloud/components/BrandMono.js +51 -0
  2373. package/icons/es/GoogleCloud/components/Color.d.ts +3 -0
  2374. package/icons/es/GoogleCloud/components/Color.js +48 -0
  2375. package/icons/es/GoogleCloud/components/Mono.d.ts +3 -0
  2376. package/icons/es/GoogleCloud/components/Mono.js +41 -0
  2377. package/icons/es/GoogleCloud/index.d.ts +15 -0
  2378. package/icons/es/GoogleCloud/index.js +14 -0
  2379. package/icons/es/GoogleCloud/style.d.ts +5 -0
  2380. package/icons/es/GoogleCloud/style.js +7 -0
  2381. package/icons/es/Goose/components/Avatar.d.ts +5 -0
  2382. package/icons/es/Goose/components/Avatar.js +25 -0
  2383. package/icons/es/Goose/components/Combine.d.ts +5 -0
  2384. package/icons/es/Goose/components/Combine.js +29 -0
  2385. package/icons/es/Goose/components/Mono.d.ts +3 -0
  2386. package/icons/es/Goose/components/Mono.js +40 -0
  2387. package/icons/es/Goose/components/Text.d.ts +3 -0
  2388. package/icons/es/Goose/components/Text.js +39 -0
  2389. package/icons/es/Goose/index.d.ts +13 -0
  2390. package/icons/es/Goose/index.js +12 -0
  2391. package/icons/es/Goose/style.d.ts +7 -0
  2392. package/icons/es/Goose/style.js +9 -0
  2393. package/icons/es/Gradio/components/Avatar.d.ts +5 -0
  2394. package/icons/es/Gradio/components/Avatar.js +25 -0
  2395. package/icons/es/Gradio/components/Color.d.ts +3 -0
  2396. package/icons/es/Gradio/components/Color.js +104 -0
  2397. package/icons/es/Gradio/components/Combine.d.ts +7 -0
  2398. package/icons/es/Gradio/components/Combine.js +32 -0
  2399. package/icons/es/Gradio/components/Mono.d.ts +3 -0
  2400. package/icons/es/Gradio/components/Mono.js +47 -0
  2401. package/icons/es/Gradio/components/Text.d.ts +3 -0
  2402. package/icons/es/Gradio/components/Text.js +39 -0
  2403. package/icons/es/Gradio/index.d.ts +15 -0
  2404. package/icons/es/Gradio/index.js +14 -0
  2405. package/icons/es/Gradio/style.d.ts +7 -0
  2406. package/icons/es/Gradio/style.js +9 -0
  2407. package/icons/es/Greptile/components/Avatar.d.ts +5 -0
  2408. package/icons/es/Greptile/components/Avatar.js +25 -0
  2409. package/icons/es/Greptile/components/Color.d.ts +3 -0
  2410. package/icons/es/Greptile/components/Color.js +41 -0
  2411. package/icons/es/Greptile/components/Combine.d.ts +7 -0
  2412. package/icons/es/Greptile/components/Combine.js +32 -0
  2413. package/icons/es/Greptile/components/Mono.d.ts +3 -0
  2414. package/icons/es/Greptile/components/Mono.js +41 -0
  2415. package/icons/es/Greptile/components/Text.d.ts +3 -0
  2416. package/icons/es/Greptile/components/Text.js +39 -0
  2417. package/icons/es/Greptile/index.d.ts +15 -0
  2418. package/icons/es/Greptile/index.js +14 -0
  2419. package/icons/es/Greptile/style.d.ts +7 -0
  2420. package/icons/es/Greptile/style.js +9 -0
  2421. package/icons/es/Grok/components/Avatar.d.ts +5 -0
  2422. package/icons/es/Grok/components/Avatar.js +25 -0
  2423. package/icons/es/Grok/components/Combine.d.ts +5 -0
  2424. package/icons/es/Grok/components/Combine.js +26 -0
  2425. package/icons/es/Grok/components/Mono.d.ts +3 -0
  2426. package/icons/es/Grok/components/Mono.js +40 -0
  2427. package/icons/es/Grok/components/Text.d.ts +3 -0
  2428. package/icons/es/Grok/components/Text.js +39 -0
  2429. package/icons/es/Grok/index.d.ts +13 -0
  2430. package/icons/es/Grok/index.js +12 -0
  2431. package/icons/es/Grok/style.d.ts +7 -0
  2432. package/icons/es/Grok/style.js +9 -0
  2433. package/icons/es/Groq/components/Avatar.d.ts +5 -0
  2434. package/icons/es/Groq/components/Avatar.js +25 -0
  2435. package/icons/es/Groq/components/Combine.d.ts +4 -0
  2436. package/icons/es/Groq/components/Combine.js +24 -0
  2437. package/icons/es/Groq/components/Mono.d.ts +3 -0
  2438. package/icons/es/Groq/components/Mono.js +40 -0
  2439. package/icons/es/Groq/components/Text.d.ts +3 -0
  2440. package/icons/es/Groq/components/Text.js +39 -0
  2441. package/icons/es/Groq/index.d.ts +13 -0
  2442. package/icons/es/Groq/index.js +12 -0
  2443. package/icons/es/Groq/style.d.ts +7 -0
  2444. package/icons/es/Groq/style.js +9 -0
  2445. package/icons/es/Hailuo/components/Avatar.d.ts +5 -0
  2446. package/icons/es/Hailuo/components/Avatar.js +25 -0
  2447. package/icons/es/Hailuo/components/Color.d.ts +3 -0
  2448. package/icons/es/Hailuo/components/Color.js +68 -0
  2449. package/icons/es/Hailuo/components/Combine.d.ts +7 -0
  2450. package/icons/es/Hailuo/components/Combine.js +32 -0
  2451. package/icons/es/Hailuo/components/Mono.d.ts +3 -0
  2452. package/icons/es/Hailuo/components/Mono.js +40 -0
  2453. package/icons/es/Hailuo/components/Text.d.ts +3 -0
  2454. package/icons/es/Hailuo/components/Text.js +39 -0
  2455. package/icons/es/Hailuo/index.d.ts +16 -0
  2456. package/icons/es/Hailuo/index.js +15 -0
  2457. package/icons/es/Hailuo/style.d.ts +8 -0
  2458. package/icons/es/Hailuo/style.js +10 -0
  2459. package/icons/es/Haiper/components/Avatar.d.ts +5 -0
  2460. package/icons/es/Haiper/components/Avatar.js +25 -0
  2461. package/icons/es/Haiper/components/Combine.d.ts +5 -0
  2462. package/icons/es/Haiper/components/Combine.js +29 -0
  2463. package/icons/es/Haiper/components/Mono.d.ts +3 -0
  2464. package/icons/es/Haiper/components/Mono.js +41 -0
  2465. package/icons/es/Haiper/components/Text.d.ts +3 -0
  2466. package/icons/es/Haiper/components/Text.js +39 -0
  2467. package/icons/es/Haiper/index.d.ts +13 -0
  2468. package/icons/es/Haiper/index.js +12 -0
  2469. package/icons/es/Haiper/style.d.ts +7 -0
  2470. package/icons/es/Haiper/style.js +9 -0
  2471. package/icons/es/Hedra/components/Avatar.d.ts +5 -0
  2472. package/icons/es/Hedra/components/Avatar.js +25 -0
  2473. package/icons/es/Hedra/components/Combine.d.ts +5 -0
  2474. package/icons/es/Hedra/components/Combine.js +29 -0
  2475. package/icons/es/Hedra/components/Mono.d.ts +3 -0
  2476. package/icons/es/Hedra/components/Mono.js +40 -0
  2477. package/icons/es/Hedra/components/Text.d.ts +3 -0
  2478. package/icons/es/Hedra/components/Text.js +40 -0
  2479. package/icons/es/Hedra/index.d.ts +13 -0
  2480. package/icons/es/Hedra/index.js +12 -0
  2481. package/icons/es/Hedra/style.d.ts +7 -0
  2482. package/icons/es/Hedra/style.js +9 -0
  2483. package/icons/es/HermesAgent/components/Avatar.d.ts +5 -0
  2484. package/icons/es/HermesAgent/components/Avatar.js +25 -0
  2485. package/icons/es/HermesAgent/components/Combine.d.ts +5 -0
  2486. package/icons/es/HermesAgent/components/Combine.js +26 -0
  2487. package/icons/es/HermesAgent/components/Mono.d.ts +3 -0
  2488. package/icons/es/HermesAgent/components/Mono.js +45 -0
  2489. package/icons/es/HermesAgent/components/Text.d.ts +3 -0
  2490. package/icons/es/HermesAgent/components/Text.js +39 -0
  2491. package/icons/es/HermesAgent/index.d.ts +13 -0
  2492. package/icons/es/HermesAgent/index.js +12 -0
  2493. package/icons/es/HermesAgent/style.d.ts +7 -0
  2494. package/icons/es/HermesAgent/style.js +9 -0
  2495. package/icons/es/Higress/components/Avatar.d.ts +5 -0
  2496. package/icons/es/Higress/components/Avatar.js +25 -0
  2497. package/icons/es/Higress/components/Color.d.ts +3 -0
  2498. package/icons/es/Higress/components/Color.js +90 -0
  2499. package/icons/es/Higress/components/Combine.d.ts +7 -0
  2500. package/icons/es/Higress/components/Combine.js +22 -0
  2501. package/icons/es/Higress/components/Mono.d.ts +3 -0
  2502. package/icons/es/Higress/components/Mono.js +48 -0
  2503. package/icons/es/Higress/components/Text.d.ts +3 -0
  2504. package/icons/es/Higress/components/Text.js +51 -0
  2505. package/icons/es/Higress/components/TextColor.d.ts +3 -0
  2506. package/icons/es/Higress/components/TextColor.js +97 -0
  2507. package/icons/es/Higress/index.d.ts +16 -0
  2508. package/icons/es/Higress/index.js +15 -0
  2509. package/icons/es/Higress/style.d.ts +8 -0
  2510. package/icons/es/Higress/style.js +10 -0
  2511. package/icons/es/Huawei/components/Avatar.d.ts +5 -0
  2512. package/icons/es/Huawei/components/Avatar.js +25 -0
  2513. package/icons/es/Huawei/components/Color.d.ts +3 -0
  2514. package/icons/es/Huawei/components/Color.js +39 -0
  2515. package/icons/es/Huawei/components/Combine.d.ts +7 -0
  2516. package/icons/es/Huawei/components/Combine.js +32 -0
  2517. package/icons/es/Huawei/components/Mono.d.ts +3 -0
  2518. package/icons/es/Huawei/components/Mono.js +40 -0
  2519. package/icons/es/Huawei/components/Text.d.ts +3 -0
  2520. package/icons/es/Huawei/components/Text.js +39 -0
  2521. package/icons/es/Huawei/components/TextCn.d.ts +3 -0
  2522. package/icons/es/Huawei/components/TextCn.js +39 -0
  2523. package/icons/es/Huawei/index.d.ts +17 -0
  2524. package/icons/es/Huawei/index.js +16 -0
  2525. package/icons/es/Huawei/style.d.ts +7 -0
  2526. package/icons/es/Huawei/style.js +9 -0
  2527. package/icons/es/HuaweiCloud/components/Avatar.d.ts +5 -0
  2528. package/icons/es/HuaweiCloud/components/Avatar.js +25 -0
  2529. package/icons/es/HuaweiCloud/components/Color.d.ts +3 -0
  2530. package/icons/es/HuaweiCloud/components/Color.js +39 -0
  2531. package/icons/es/HuaweiCloud/components/Combine.d.ts +7 -0
  2532. package/icons/es/HuaweiCloud/components/Combine.js +32 -0
  2533. package/icons/es/HuaweiCloud/components/Mono.d.ts +3 -0
  2534. package/icons/es/HuaweiCloud/components/Mono.js +40 -0
  2535. package/icons/es/HuaweiCloud/components/Text.d.ts +3 -0
  2536. package/icons/es/HuaweiCloud/components/Text.js +39 -0
  2537. package/icons/es/HuaweiCloud/components/TextCn.d.ts +3 -0
  2538. package/icons/es/HuaweiCloud/components/TextCn.js +39 -0
  2539. package/icons/es/HuaweiCloud/index.d.ts +17 -0
  2540. package/icons/es/HuaweiCloud/index.js +16 -0
  2541. package/icons/es/HuaweiCloud/style.d.ts +7 -0
  2542. package/icons/es/HuaweiCloud/style.js +9 -0
  2543. package/icons/es/Hubstr/components/Avatar.d.ts +5 -0
  2544. package/icons/es/Hubstr/components/Avatar.js +25 -0
  2545. package/icons/es/Hubstr/components/Color.d.ts +3 -0
  2546. package/icons/es/Hubstr/components/Color.js +20 -0
  2547. package/icons/es/Hubstr/components/Combine.d.ts +7 -0
  2548. package/icons/es/Hubstr/components/Combine.js +32 -0
  2549. package/icons/es/Hubstr/components/Mono.d.ts +3 -0
  2550. package/icons/es/Hubstr/components/Mono.js +15 -0
  2551. package/icons/es/Hubstr/components/Morden.d.ts +3 -0
  2552. package/icons/es/Hubstr/components/Morden.js +3 -0
  2553. package/icons/es/Hubstr/components/Text.d.ts +3 -0
  2554. package/icons/es/Hubstr/components/Text.js +34 -0
  2555. package/icons/es/Hubstr/index.d.ts +17 -0
  2556. package/icons/es/Hubstr/index.js +16 -0
  2557. package/icons/es/Hubstr/style.d.ts +7 -0
  2558. package/icons/es/Hubstr/style.js +9 -0
  2559. package/icons/es/HuggingFace/components/Avatar.d.ts +5 -0
  2560. package/icons/es/HuggingFace/components/Avatar.js +25 -0
  2561. package/icons/es/HuggingFace/components/Color.d.ts +3 -0
  2562. package/icons/es/HuggingFace/components/Color.js +54 -0
  2563. package/icons/es/HuggingFace/components/Combine.d.ts +7 -0
  2564. package/icons/es/HuggingFace/components/Combine.js +32 -0
  2565. package/icons/es/HuggingFace/components/Mono.d.ts +3 -0
  2566. package/icons/es/HuggingFace/components/Mono.js +40 -0
  2567. package/icons/es/HuggingFace/components/Text.d.ts +3 -0
  2568. package/icons/es/HuggingFace/components/Text.js +39 -0
  2569. package/icons/es/HuggingFace/index.d.ts +15 -0
  2570. package/icons/es/HuggingFace/index.js +14 -0
  2571. package/icons/es/HuggingFace/style.d.ts +7 -0
  2572. package/icons/es/HuggingFace/style.js +9 -0
  2573. package/icons/es/Hunyuan/components/Avatar.d.ts +5 -0
  2574. package/icons/es/Hunyuan/components/Avatar.js +25 -0
  2575. package/icons/es/Hunyuan/components/Color.d.ts +3 -0
  2576. package/icons/es/Hunyuan/components/Color.js +53 -0
  2577. package/icons/es/Hunyuan/components/Combine.d.ts +7 -0
  2578. package/icons/es/Hunyuan/components/Combine.js +32 -0
  2579. package/icons/es/Hunyuan/components/Mono.d.ts +3 -0
  2580. package/icons/es/Hunyuan/components/Mono.js +40 -0
  2581. package/icons/es/Hunyuan/components/Text.d.ts +3 -0
  2582. package/icons/es/Hunyuan/components/Text.js +39 -0
  2583. package/icons/es/Hunyuan/index.d.ts +15 -0
  2584. package/icons/es/Hunyuan/index.js +14 -0
  2585. package/icons/es/Hunyuan/style.d.ts +7 -0
  2586. package/icons/es/Hunyuan/style.js +9 -0
  2587. package/icons/es/Hyperbolic/components/Avatar.d.ts +5 -0
  2588. package/icons/es/Hyperbolic/components/Avatar.js +25 -0
  2589. package/icons/es/Hyperbolic/components/Color.d.ts +3 -0
  2590. package/icons/es/Hyperbolic/components/Color.js +39 -0
  2591. package/icons/es/Hyperbolic/components/Combine.d.ts +7 -0
  2592. package/icons/es/Hyperbolic/components/Combine.js +32 -0
  2593. package/icons/es/Hyperbolic/components/Mono.d.ts +3 -0
  2594. package/icons/es/Hyperbolic/components/Mono.js +40 -0
  2595. package/icons/es/Hyperbolic/components/Text.d.ts +3 -0
  2596. package/icons/es/Hyperbolic/components/Text.js +39 -0
  2597. package/icons/es/Hyperbolic/index.d.ts +15 -0
  2598. package/icons/es/Hyperbolic/index.js +14 -0
  2599. package/icons/es/Hyperbolic/style.d.ts +7 -0
  2600. package/icons/es/Hyperbolic/style.js +9 -0
  2601. package/icons/es/IBM/components/Avatar.d.ts +5 -0
  2602. package/icons/es/IBM/components/Avatar.js +25 -0
  2603. package/icons/es/IBM/components/Combine.d.ts +5 -0
  2604. package/icons/es/IBM/components/Combine.js +24 -0
  2605. package/icons/es/IBM/components/Mono.d.ts +3 -0
  2606. package/icons/es/IBM/components/Mono.js +41 -0
  2607. package/icons/es/IBM/components/Text.d.ts +3 -0
  2608. package/icons/es/IBM/components/Text.js +40 -0
  2609. package/icons/es/IBM/index.d.ts +13 -0
  2610. package/icons/es/IBM/index.js +12 -0
  2611. package/icons/es/IBM/style.d.ts +7 -0
  2612. package/icons/es/IBM/style.js +9 -0
  2613. package/icons/es/IFlyTekCloud/components/Avatar.d.ts +5 -0
  2614. package/icons/es/IFlyTekCloud/components/Avatar.js +25 -0
  2615. package/icons/es/IFlyTekCloud/components/Color.d.ts +3 -0
  2616. package/icons/es/IFlyTekCloud/components/Color.js +39 -0
  2617. package/icons/es/IFlyTekCloud/components/Combine.d.ts +7 -0
  2618. package/icons/es/IFlyTekCloud/components/Combine.js +32 -0
  2619. package/icons/es/IFlyTekCloud/components/Mono.d.ts +3 -0
  2620. package/icons/es/IFlyTekCloud/components/Mono.js +40 -0
  2621. package/icons/es/IFlyTekCloud/components/Text.d.ts +3 -0
  2622. package/icons/es/IFlyTekCloud/components/Text.js +39 -0
  2623. package/icons/es/IFlyTekCloud/index.d.ts +15 -0
  2624. package/icons/es/IFlyTekCloud/index.js +14 -0
  2625. package/icons/es/IFlyTekCloud/style.d.ts +7 -0
  2626. package/icons/es/IFlyTekCloud/style.js +9 -0
  2627. package/icons/es/Ideogram/components/Avatar.d.ts +5 -0
  2628. package/icons/es/Ideogram/components/Avatar.js +25 -0
  2629. package/icons/es/Ideogram/components/Combine.d.ts +5 -0
  2630. package/icons/es/Ideogram/components/Combine.js +26 -0
  2631. package/icons/es/Ideogram/components/Mono.d.ts +3 -0
  2632. package/icons/es/Ideogram/components/Mono.js +40 -0
  2633. package/icons/es/Ideogram/components/Text.d.ts +3 -0
  2634. package/icons/es/Ideogram/components/Text.js +39 -0
  2635. package/icons/es/Ideogram/index.d.ts +13 -0
  2636. package/icons/es/Ideogram/index.js +12 -0
  2637. package/icons/es/Ideogram/style.d.ts +7 -0
  2638. package/icons/es/Ideogram/style.js +9 -0
  2639. package/icons/es/Inception/components/Avatar.d.ts +5 -0
  2640. package/icons/es/Inception/components/Avatar.js +25 -0
  2641. package/icons/es/Inception/components/Combine.d.ts +5 -0
  2642. package/icons/es/Inception/components/Combine.js +26 -0
  2643. package/icons/es/Inception/components/Mono.d.ts +3 -0
  2644. package/icons/es/Inception/components/Mono.js +40 -0
  2645. package/icons/es/Inception/components/Text.d.ts +3 -0
  2646. package/icons/es/Inception/components/Text.js +47 -0
  2647. package/icons/es/Inception/index.d.ts +13 -0
  2648. package/icons/es/Inception/index.js +12 -0
  2649. package/icons/es/Inception/style.d.ts +7 -0
  2650. package/icons/es/Inception/style.js +9 -0
  2651. package/icons/es/Inference/components/Avatar.d.ts +5 -0
  2652. package/icons/es/Inference/components/Avatar.js +25 -0
  2653. package/icons/es/Inference/components/Combine.d.ts +5 -0
  2654. package/icons/es/Inference/components/Combine.js +24 -0
  2655. package/icons/es/Inference/components/Mono.d.ts +3 -0
  2656. package/icons/es/Inference/components/Mono.js +40 -0
  2657. package/icons/es/Inference/components/Text.d.ts +3 -0
  2658. package/icons/es/Inference/components/Text.js +39 -0
  2659. package/icons/es/Inference/index.d.ts +13 -0
  2660. package/icons/es/Inference/index.js +12 -0
  2661. package/icons/es/Inference/style.d.ts +7 -0
  2662. package/icons/es/Inference/style.js +9 -0
  2663. package/icons/es/Infermatic/components/Avatar.d.ts +5 -0
  2664. package/icons/es/Infermatic/components/Avatar.js +25 -0
  2665. package/icons/es/Infermatic/components/Color.d.ts +3 -0
  2666. package/icons/es/Infermatic/components/Color.js +39 -0
  2667. package/icons/es/Infermatic/components/Combine.d.ts +7 -0
  2668. package/icons/es/Infermatic/components/Combine.js +32 -0
  2669. package/icons/es/Infermatic/components/Mono.d.ts +3 -0
  2670. package/icons/es/Infermatic/components/Mono.js +40 -0
  2671. package/icons/es/Infermatic/components/Text.d.ts +3 -0
  2672. package/icons/es/Infermatic/components/Text.js +39 -0
  2673. package/icons/es/Infermatic/index.d.ts +15 -0
  2674. package/icons/es/Infermatic/index.js +14 -0
  2675. package/icons/es/Infermatic/style.d.ts +7 -0
  2676. package/icons/es/Infermatic/style.js +9 -0
  2677. package/icons/es/Infinigence/components/Avatar.d.ts +5 -0
  2678. package/icons/es/Infinigence/components/Avatar.js +25 -0
  2679. package/icons/es/Infinigence/components/Color.d.ts +3 -0
  2680. package/icons/es/Infinigence/components/Color.js +42 -0
  2681. package/icons/es/Infinigence/components/Combine.d.ts +7 -0
  2682. package/icons/es/Infinigence/components/Combine.js +32 -0
  2683. package/icons/es/Infinigence/components/Mono.d.ts +3 -0
  2684. package/icons/es/Infinigence/components/Mono.js +42 -0
  2685. package/icons/es/Infinigence/components/Text.d.ts +3 -0
  2686. package/icons/es/Infinigence/components/Text.js +43 -0
  2687. package/icons/es/Infinigence/components/TextCn.d.ts +3 -0
  2688. package/icons/es/Infinigence/components/TextCn.js +43 -0
  2689. package/icons/es/Infinigence/index.d.ts +17 -0
  2690. package/icons/es/Infinigence/index.js +16 -0
  2691. package/icons/es/Infinigence/style.d.ts +7 -0
  2692. package/icons/es/Infinigence/style.js +9 -0
  2693. package/icons/es/Inflection/components/Avatar.d.ts +5 -0
  2694. package/icons/es/Inflection/components/Avatar.js +25 -0
  2695. package/icons/es/Inflection/components/Combine.d.ts +5 -0
  2696. package/icons/es/Inflection/components/Combine.js +24 -0
  2697. package/icons/es/Inflection/components/Mono.d.ts +3 -0
  2698. package/icons/es/Inflection/components/Mono.js +40 -0
  2699. package/icons/es/Inflection/components/Text.d.ts +3 -0
  2700. package/icons/es/Inflection/components/Text.js +39 -0
  2701. package/icons/es/Inflection/index.d.ts +13 -0
  2702. package/icons/es/Inflection/index.js +12 -0
  2703. package/icons/es/Inflection/style.d.ts +7 -0
  2704. package/icons/es/Inflection/style.js +9 -0
  2705. package/icons/es/InternLM/components/Avatar.d.ts +5 -0
  2706. package/icons/es/InternLM/components/Avatar.js +25 -0
  2707. package/icons/es/InternLM/components/Color.d.ts +3 -0
  2708. package/icons/es/InternLM/components/Color.js +77 -0
  2709. package/icons/es/InternLM/components/Combine.d.ts +7 -0
  2710. package/icons/es/InternLM/components/Combine.js +36 -0
  2711. package/icons/es/InternLM/components/Mono.d.ts +3 -0
  2712. package/icons/es/InternLM/components/Mono.js +67 -0
  2713. package/icons/es/InternLM/components/Text.d.ts +3 -0
  2714. package/icons/es/InternLM/components/Text.js +42 -0
  2715. package/icons/es/InternLM/index.d.ts +15 -0
  2716. package/icons/es/InternLM/index.js +14 -0
  2717. package/icons/es/InternLM/style.d.ts +7 -0
  2718. package/icons/es/InternLM/style.js +9 -0
  2719. package/icons/es/Jimeng/components/Avatar.d.ts +5 -0
  2720. package/icons/es/Jimeng/components/Avatar.js +25 -0
  2721. package/icons/es/Jimeng/components/Color.d.ts +3 -0
  2722. package/icons/es/Jimeng/components/Color.js +182 -0
  2723. package/icons/es/Jimeng/components/Combine.d.ts +7 -0
  2724. package/icons/es/Jimeng/components/Combine.js +32 -0
  2725. package/icons/es/Jimeng/components/Mono.d.ts +3 -0
  2726. package/icons/es/Jimeng/components/Mono.js +40 -0
  2727. package/icons/es/Jimeng/components/Text.d.ts +3 -0
  2728. package/icons/es/Jimeng/components/Text.js +39 -0
  2729. package/icons/es/Jimeng/index.d.ts +15 -0
  2730. package/icons/es/Jimeng/index.js +14 -0
  2731. package/icons/es/Jimeng/style.d.ts +7 -0
  2732. package/icons/es/Jimeng/style.js +9 -0
  2733. package/icons/es/Jina/components/Avatar.d.ts +5 -0
  2734. package/icons/es/Jina/components/Avatar.js +25 -0
  2735. package/icons/es/Jina/components/Mono.d.ts +3 -0
  2736. package/icons/es/Jina/components/Mono.js +40 -0
  2737. package/icons/es/Jina/components/Text.d.ts +3 -0
  2738. package/icons/es/Jina/components/Text.js +43 -0
  2739. package/icons/es/Jina/index.d.ts +11 -0
  2740. package/icons/es/Jina/index.js +10 -0
  2741. package/icons/es/Jina/style.d.ts +7 -0
  2742. package/icons/es/Jina/style.js +9 -0
  2743. package/icons/es/Junie/components/Avatar.d.ts +5 -0
  2744. package/icons/es/Junie/components/Avatar.js +25 -0
  2745. package/icons/es/Junie/components/Color.d.ts +3 -0
  2746. package/icons/es/Junie/components/Color.js +39 -0
  2747. package/icons/es/Junie/components/Combine.d.ts +7 -0
  2748. package/icons/es/Junie/components/Combine.js +32 -0
  2749. package/icons/es/Junie/components/Mono.d.ts +3 -0
  2750. package/icons/es/Junie/components/Mono.js +40 -0
  2751. package/icons/es/Junie/components/Text.d.ts +3 -0
  2752. package/icons/es/Junie/components/Text.js +39 -0
  2753. package/icons/es/Junie/index.d.ts +15 -0
  2754. package/icons/es/Junie/index.js +14 -0
  2755. package/icons/es/Junie/style.d.ts +7 -0
  2756. package/icons/es/Junie/style.js +9 -0
  2757. package/icons/es/KiloCode/components/Avatar.d.ts +5 -0
  2758. package/icons/es/KiloCode/components/Avatar.js +25 -0
  2759. package/icons/es/KiloCode/components/Combine.d.ts +5 -0
  2760. package/icons/es/KiloCode/components/Combine.js +26 -0
  2761. package/icons/es/KiloCode/components/Inner.d.ts +3 -0
  2762. package/icons/es/KiloCode/components/Inner.js +40 -0
  2763. package/icons/es/KiloCode/components/Mono.d.ts +3 -0
  2764. package/icons/es/KiloCode/components/Mono.js +40 -0
  2765. package/icons/es/KiloCode/components/Text.d.ts +3 -0
  2766. package/icons/es/KiloCode/components/Text.js +39 -0
  2767. package/icons/es/KiloCode/index.d.ts +13 -0
  2768. package/icons/es/KiloCode/index.js +12 -0
  2769. package/icons/es/KiloCode/style.d.ts +7 -0
  2770. package/icons/es/KiloCode/style.js +9 -0
  2771. package/icons/es/Kimi/components/Avatar.d.ts +5 -0
  2772. package/icons/es/Kimi/components/Avatar.js +25 -0
  2773. package/icons/es/Kimi/components/Color.d.ts +3 -0
  2774. package/icons/es/Kimi/components/Color.js +42 -0
  2775. package/icons/es/Kimi/components/Combine.d.ts +5 -0
  2776. package/icons/es/Kimi/components/Combine.js +32 -0
  2777. package/icons/es/Kimi/components/Mono.d.ts +3 -0
  2778. package/icons/es/Kimi/components/Mono.js +42 -0
  2779. package/icons/es/Kimi/components/Text.d.ts +3 -0
  2780. package/icons/es/Kimi/components/Text.js +39 -0
  2781. package/icons/es/Kimi/index.d.ts +15 -0
  2782. package/icons/es/Kimi/index.js +14 -0
  2783. package/icons/es/Kimi/style.d.ts +7 -0
  2784. package/icons/es/Kimi/style.js +9 -0
  2785. package/icons/es/Kiro/components/Avatar.d.ts +5 -0
  2786. package/icons/es/Kiro/components/Avatar.js +25 -0
  2787. package/icons/es/Kiro/components/Color.d.ts +3 -0
  2788. package/icons/es/Kiro/components/Color.js +45 -0
  2789. package/icons/es/Kiro/components/Combine.d.ts +7 -0
  2790. package/icons/es/Kiro/components/Combine.js +32 -0
  2791. package/icons/es/Kiro/components/Mono.d.ts +3 -0
  2792. package/icons/es/Kiro/components/Mono.js +40 -0
  2793. package/icons/es/Kiro/components/Text.d.ts +3 -0
  2794. package/icons/es/Kiro/components/Text.js +43 -0
  2795. package/icons/es/Kiro/index.d.ts +15 -0
  2796. package/icons/es/Kiro/index.js +14 -0
  2797. package/icons/es/Kiro/style.d.ts +7 -0
  2798. package/icons/es/Kiro/style.js +9 -0
  2799. package/icons/es/Kling/components/Avatar.d.ts +5 -0
  2800. package/icons/es/Kling/components/Avatar.js +25 -0
  2801. package/icons/es/Kling/components/Color.d.ts +3 -0
  2802. package/icons/es/Kling/components/Color.js +129 -0
  2803. package/icons/es/Kling/components/Combine.d.ts +7 -0
  2804. package/icons/es/Kling/components/Combine.js +32 -0
  2805. package/icons/es/Kling/components/Mono.d.ts +3 -0
  2806. package/icons/es/Kling/components/Mono.js +41 -0
  2807. package/icons/es/Kling/components/Text.d.ts +3 -0
  2808. package/icons/es/Kling/components/Text.js +39 -0
  2809. package/icons/es/Kling/index.d.ts +16 -0
  2810. package/icons/es/Kling/index.js +15 -0
  2811. package/icons/es/Kling/style.d.ts +8 -0
  2812. package/icons/es/Kling/style.js +10 -0
  2813. package/icons/es/Kluster/components/Avatar.d.ts +5 -0
  2814. package/icons/es/Kluster/components/Avatar.js +25 -0
  2815. package/icons/es/Kluster/components/Color.d.ts +3 -0
  2816. package/icons/es/Kluster/components/Color.js +42 -0
  2817. package/icons/es/Kluster/components/Combine.d.ts +7 -0
  2818. package/icons/es/Kluster/components/Combine.js +32 -0
  2819. package/icons/es/Kluster/components/Mono.d.ts +3 -0
  2820. package/icons/es/Kluster/components/Mono.js +42 -0
  2821. package/icons/es/Kluster/components/Text.d.ts +3 -0
  2822. package/icons/es/Kluster/components/Text.js +39 -0
  2823. package/icons/es/Kluster/index.d.ts +15 -0
  2824. package/icons/es/Kluster/index.js +14 -0
  2825. package/icons/es/Kluster/style.d.ts +7 -0
  2826. package/icons/es/Kluster/style.js +9 -0
  2827. package/icons/es/Kolors/components/Avatar.d.ts +5 -0
  2828. package/icons/es/Kolors/components/Avatar.js +25 -0
  2829. package/icons/es/Kolors/components/Color.d.ts +3 -0
  2830. package/icons/es/Kolors/components/Color.js +61 -0
  2831. package/icons/es/Kolors/components/Combine.d.ts +7 -0
  2832. package/icons/es/Kolors/components/Combine.js +32 -0
  2833. package/icons/es/Kolors/components/Mono.d.ts +3 -0
  2834. package/icons/es/Kolors/components/Mono.js +41 -0
  2835. package/icons/es/Kolors/components/Text.d.ts +3 -0
  2836. package/icons/es/Kolors/components/Text.js +39 -0
  2837. package/icons/es/Kolors/index.d.ts +16 -0
  2838. package/icons/es/Kolors/index.js +15 -0
  2839. package/icons/es/Kolors/style.d.ts +8 -0
  2840. package/icons/es/Kolors/style.js +10 -0
  2841. package/icons/es/Krea/components/Avatar.d.ts +5 -0
  2842. package/icons/es/Krea/components/Avatar.js +25 -0
  2843. package/icons/es/Krea/components/Combine.d.ts +5 -0
  2844. package/icons/es/Krea/components/Combine.js +29 -0
  2845. package/icons/es/Krea/components/Mono.d.ts +3 -0
  2846. package/icons/es/Krea/components/Mono.js +42 -0
  2847. package/icons/es/Krea/components/Text.d.ts +3 -0
  2848. package/icons/es/Krea/components/Text.js +39 -0
  2849. package/icons/es/Krea/index.d.ts +13 -0
  2850. package/icons/es/Krea/index.js +12 -0
  2851. package/icons/es/Krea/style.d.ts +7 -0
  2852. package/icons/es/Krea/style.js +9 -0
  2853. package/icons/es/KwaiKAT/components/Avatar.d.ts +5 -0
  2854. package/icons/es/KwaiKAT/components/Avatar.js +25 -0
  2855. package/icons/es/KwaiKAT/components/Combine.d.ts +7 -0
  2856. package/icons/es/KwaiKAT/components/Combine.js +30 -0
  2857. package/icons/es/KwaiKAT/components/Mono.d.ts +3 -0
  2858. package/icons/es/KwaiKAT/components/Mono.js +42 -0
  2859. package/icons/es/KwaiKAT/components/Text.d.ts +3 -0
  2860. package/icons/es/KwaiKAT/components/Text.js +44 -0
  2861. package/icons/es/KwaiKAT/components/TextColor.d.ts +3 -0
  2862. package/icons/es/KwaiKAT/components/TextColor.js +46 -0
  2863. package/icons/es/KwaiKAT/index.d.ts +15 -0
  2864. package/icons/es/KwaiKAT/index.js +14 -0
  2865. package/icons/es/KwaiKAT/style.d.ts +7 -0
  2866. package/icons/es/KwaiKAT/style.js +9 -0
  2867. package/icons/es/Kwaipilot/components/Avatar.d.ts +5 -0
  2868. package/icons/es/Kwaipilot/components/Avatar.js +25 -0
  2869. package/icons/es/Kwaipilot/components/Color.d.ts +3 -0
  2870. package/icons/es/Kwaipilot/components/Color.js +82 -0
  2871. package/icons/es/Kwaipilot/components/Combine.d.ts +7 -0
  2872. package/icons/es/Kwaipilot/components/Combine.js +32 -0
  2873. package/icons/es/Kwaipilot/components/Mono.d.ts +3 -0
  2874. package/icons/es/Kwaipilot/components/Mono.js +41 -0
  2875. package/icons/es/Kwaipilot/components/Text.d.ts +3 -0
  2876. package/icons/es/Kwaipilot/components/Text.js +47 -0
  2877. package/icons/es/Kwaipilot/index.d.ts +15 -0
  2878. package/icons/es/Kwaipilot/index.js +14 -0
  2879. package/icons/es/Kwaipilot/style.d.ts +7 -0
  2880. package/icons/es/Kwaipilot/style.js +9 -0
  2881. package/icons/es/LG/components/Avatar.d.ts +5 -0
  2882. package/icons/es/LG/components/Avatar.js +24 -0
  2883. package/icons/es/LG/components/Color.d.ts +3 -0
  2884. package/icons/es/LG/components/Color.js +39 -0
  2885. package/icons/es/LG/components/Combine.d.ts +7 -0
  2886. package/icons/es/LG/components/Combine.js +32 -0
  2887. package/icons/es/LG/components/Inner.d.ts +3 -0
  2888. package/icons/es/LG/components/Inner.js +40 -0
  2889. package/icons/es/LG/components/Mono.d.ts +3 -0
  2890. package/icons/es/LG/components/Mono.js +40 -0
  2891. package/icons/es/LG/components/Text.d.ts +3 -0
  2892. package/icons/es/LG/components/Text.js +39 -0
  2893. package/icons/es/LG/index.d.ts +15 -0
  2894. package/icons/es/LG/index.js +14 -0
  2895. package/icons/es/LG/style.d.ts +7 -0
  2896. package/icons/es/LG/style.js +9 -0
  2897. package/icons/es/LLaVA/components/Avatar.d.ts +5 -0
  2898. package/icons/es/LLaVA/components/Avatar.js +25 -0
  2899. package/icons/es/LLaVA/components/Color.d.ts +3 -0
  2900. package/icons/es/LLaVA/components/Color.js +371 -0
  2901. package/icons/es/LLaVA/components/Combine.d.ts +7 -0
  2902. package/icons/es/LLaVA/components/Combine.js +36 -0
  2903. package/icons/es/LLaVA/components/Mono.d.ts +3 -0
  2904. package/icons/es/LLaVA/components/Mono.js +40 -0
  2905. package/icons/es/LLaVA/components/Text.d.ts +3 -0
  2906. package/icons/es/LLaVA/components/Text.js +39 -0
  2907. package/icons/es/LLaVA/index.d.ts +16 -0
  2908. package/icons/es/LLaVA/index.js +15 -0
  2909. package/icons/es/LLaVA/style.d.ts +8 -0
  2910. package/icons/es/LLaVA/style.js +10 -0
  2911. package/icons/es/Lambda/components/Avatar.d.ts +5 -0
  2912. package/icons/es/Lambda/components/Avatar.js +25 -0
  2913. package/icons/es/Lambda/components/Combine.d.ts +5 -0
  2914. package/icons/es/Lambda/components/Combine.js +26 -0
  2915. package/icons/es/Lambda/components/Mono.d.ts +3 -0
  2916. package/icons/es/Lambda/components/Mono.js +40 -0
  2917. package/icons/es/Lambda/components/Text.d.ts +3 -0
  2918. package/icons/es/Lambda/components/Text.js +39 -0
  2919. package/icons/es/Lambda/index.d.ts +13 -0
  2920. package/icons/es/Lambda/index.js +12 -0
  2921. package/icons/es/Lambda/style.d.ts +7 -0
  2922. package/icons/es/Lambda/style.js +9 -0
  2923. package/icons/es/LangChain/components/Avatar.d.ts +5 -0
  2924. package/icons/es/LangChain/components/Avatar.js +25 -0
  2925. package/icons/es/LangChain/components/Color.d.ts +3 -0
  2926. package/icons/es/LangChain/components/Color.js +39 -0
  2927. package/icons/es/LangChain/components/Combine.d.ts +7 -0
  2928. package/icons/es/LangChain/components/Combine.js +32 -0
  2929. package/icons/es/LangChain/components/Mono.d.ts +3 -0
  2930. package/icons/es/LangChain/components/Mono.js +40 -0
  2931. package/icons/es/LangChain/components/Text.d.ts +3 -0
  2932. package/icons/es/LangChain/components/Text.js +39 -0
  2933. package/icons/es/LangChain/index.d.ts +15 -0
  2934. package/icons/es/LangChain/index.js +14 -0
  2935. package/icons/es/LangChain/style.d.ts +7 -0
  2936. package/icons/es/LangChain/style.js +9 -0
  2937. package/icons/es/LangGraph/components/Avatar.d.ts +5 -0
  2938. package/icons/es/LangGraph/components/Avatar.js +25 -0
  2939. package/icons/es/LangGraph/components/Color.d.ts +3 -0
  2940. package/icons/es/LangGraph/components/Color.js +41 -0
  2941. package/icons/es/LangGraph/components/Combine.d.ts +7 -0
  2942. package/icons/es/LangGraph/components/Combine.js +32 -0
  2943. package/icons/es/LangGraph/components/Mono.d.ts +3 -0
  2944. package/icons/es/LangGraph/components/Mono.js +41 -0
  2945. package/icons/es/LangGraph/components/Text.d.ts +3 -0
  2946. package/icons/es/LangGraph/components/Text.js +39 -0
  2947. package/icons/es/LangGraph/index.d.ts +15 -0
  2948. package/icons/es/LangGraph/index.js +14 -0
  2949. package/icons/es/LangGraph/style.d.ts +7 -0
  2950. package/icons/es/LangGraph/style.js +9 -0
  2951. package/icons/es/LangSmith/components/Avatar.d.ts +5 -0
  2952. package/icons/es/LangSmith/components/Avatar.js +25 -0
  2953. package/icons/es/LangSmith/components/Color.d.ts +3 -0
  2954. package/icons/es/LangSmith/components/Color.js +39 -0
  2955. package/icons/es/LangSmith/components/Combine.d.ts +7 -0
  2956. package/icons/es/LangSmith/components/Combine.js +32 -0
  2957. package/icons/es/LangSmith/components/Mono.d.ts +3 -0
  2958. package/icons/es/LangSmith/components/Mono.js +40 -0
  2959. package/icons/es/LangSmith/components/Text.d.ts +3 -0
  2960. package/icons/es/LangSmith/components/Text.js +39 -0
  2961. package/icons/es/LangSmith/index.d.ts +15 -0
  2962. package/icons/es/LangSmith/index.js +14 -0
  2963. package/icons/es/LangSmith/style.d.ts +7 -0
  2964. package/icons/es/LangSmith/style.js +9 -0
  2965. package/icons/es/Langfuse/components/Avatar.d.ts +5 -0
  2966. package/icons/es/Langfuse/components/Avatar.js +25 -0
  2967. package/icons/es/Langfuse/components/Color.d.ts +3 -0
  2968. package/icons/es/Langfuse/components/Color.js +45 -0
  2969. package/icons/es/Langfuse/components/Combine.d.ts +7 -0
  2970. package/icons/es/Langfuse/components/Combine.js +32 -0
  2971. package/icons/es/Langfuse/components/Mono.d.ts +3 -0
  2972. package/icons/es/Langfuse/components/Mono.js +44 -0
  2973. package/icons/es/Langfuse/components/Text.d.ts +3 -0
  2974. package/icons/es/Langfuse/components/Text.js +39 -0
  2975. package/icons/es/Langfuse/index.d.ts +15 -0
  2976. package/icons/es/Langfuse/index.js +14 -0
  2977. package/icons/es/Langfuse/style.d.ts +7 -0
  2978. package/icons/es/Langfuse/style.js +9 -0
  2979. package/icons/es/LeptonAI/components/Avatar.d.ts +5 -0
  2980. package/icons/es/LeptonAI/components/Avatar.js +25 -0
  2981. package/icons/es/LeptonAI/components/Color.d.ts +3 -0
  2982. package/icons/es/LeptonAI/components/Color.js +49 -0
  2983. package/icons/es/LeptonAI/components/Combine.d.ts +7 -0
  2984. package/icons/es/LeptonAI/components/Combine.js +32 -0
  2985. package/icons/es/LeptonAI/components/Mono.d.ts +3 -0
  2986. package/icons/es/LeptonAI/components/Mono.js +46 -0
  2987. package/icons/es/LeptonAI/components/Text.d.ts +3 -0
  2988. package/icons/es/LeptonAI/components/Text.js +39 -0
  2989. package/icons/es/LeptonAI/index.d.ts +15 -0
  2990. package/icons/es/LeptonAI/index.js +14 -0
  2991. package/icons/es/LeptonAI/style.d.ts +7 -0
  2992. package/icons/es/LeptonAI/style.js +9 -0
  2993. package/icons/es/Lightricks/components/Avatar.d.ts +5 -0
  2994. package/icons/es/Lightricks/components/Avatar.js +25 -0
  2995. package/icons/es/Lightricks/components/Combine.d.ts +5 -0
  2996. package/icons/es/Lightricks/components/Combine.js +29 -0
  2997. package/icons/es/Lightricks/components/Mono.d.ts +3 -0
  2998. package/icons/es/Lightricks/components/Mono.js +40 -0
  2999. package/icons/es/Lightricks/components/Text.d.ts +3 -0
  3000. package/icons/es/Lightricks/components/Text.js +39 -0
  3001. package/icons/es/Lightricks/index.d.ts +13 -0
  3002. package/icons/es/Lightricks/index.js +12 -0
  3003. package/icons/es/Lightricks/style.d.ts +7 -0
  3004. package/icons/es/Lightricks/style.js +9 -0
  3005. package/icons/es/Liquid/components/Avatar.d.ts +5 -0
  3006. package/icons/es/Liquid/components/Avatar.js +25 -0
  3007. package/icons/es/Liquid/components/Combine.d.ts +5 -0
  3008. package/icons/es/Liquid/components/Combine.js +26 -0
  3009. package/icons/es/Liquid/components/Mono.d.ts +3 -0
  3010. package/icons/es/Liquid/components/Mono.js +40 -0
  3011. package/icons/es/Liquid/components/Text.d.ts +3 -0
  3012. package/icons/es/Liquid/components/Text.js +39 -0
  3013. package/icons/es/Liquid/index.d.ts +13 -0
  3014. package/icons/es/Liquid/index.js +12 -0
  3015. package/icons/es/Liquid/style.d.ts +7 -0
  3016. package/icons/es/Liquid/style.js +9 -0
  3017. package/icons/es/LiveKit/components/Avatar.d.ts +5 -0
  3018. package/icons/es/LiveKit/components/Avatar.js +25 -0
  3019. package/icons/es/LiveKit/components/Color.d.ts +3 -0
  3020. package/icons/es/LiveKit/components/Color.js +42 -0
  3021. package/icons/es/LiveKit/components/Combine.d.ts +7 -0
  3022. package/icons/es/LiveKit/components/Combine.js +32 -0
  3023. package/icons/es/LiveKit/components/Mono.d.ts +3 -0
  3024. package/icons/es/LiveKit/components/Mono.js +42 -0
  3025. package/icons/es/LiveKit/components/Text.d.ts +3 -0
  3026. package/icons/es/LiveKit/components/Text.js +39 -0
  3027. package/icons/es/LiveKit/index.d.ts +15 -0
  3028. package/icons/es/LiveKit/index.js +14 -0
  3029. package/icons/es/LiveKit/style.d.ts +7 -0
  3030. package/icons/es/LiveKit/style.js +9 -0
  3031. package/icons/es/LlamaIndex/components/Avatar.d.ts +5 -0
  3032. package/icons/es/LlamaIndex/components/Avatar.js +25 -0
  3033. package/icons/es/LlamaIndex/components/Color.d.ts +3 -0
  3034. package/icons/es/LlamaIndex/components/Color.js +65 -0
  3035. package/icons/es/LlamaIndex/components/Combine.d.ts +7 -0
  3036. package/icons/es/LlamaIndex/components/Combine.js +29 -0
  3037. package/icons/es/LlamaIndex/components/Mono.d.ts +3 -0
  3038. package/icons/es/LlamaIndex/components/Mono.js +40 -0
  3039. package/icons/es/LlamaIndex/components/Text.d.ts +3 -0
  3040. package/icons/es/LlamaIndex/components/Text.js +54 -0
  3041. package/icons/es/LlamaIndex/index.d.ts +15 -0
  3042. package/icons/es/LlamaIndex/index.js +14 -0
  3043. package/icons/es/LlamaIndex/style.d.ts +7 -0
  3044. package/icons/es/LlamaIndex/style.js +9 -0
  3045. package/icons/es/LlmApi/components/Avatar.d.ts +5 -0
  3046. package/icons/es/LlmApi/components/Avatar.js +25 -0
  3047. package/icons/es/LlmApi/components/Color.d.ts +3 -0
  3048. package/icons/es/LlmApi/components/Color.js +58 -0
  3049. package/icons/es/LlmApi/components/Combine.d.ts +7 -0
  3050. package/icons/es/LlmApi/components/Combine.js +32 -0
  3051. package/icons/es/LlmApi/components/Mono.d.ts +3 -0
  3052. package/icons/es/LlmApi/components/Mono.js +43 -0
  3053. package/icons/es/LlmApi/components/Text.d.ts +3 -0
  3054. package/icons/es/LlmApi/components/Text.js +40 -0
  3055. package/icons/es/LlmApi/index.d.ts +15 -0
  3056. package/icons/es/LlmApi/index.js +14 -0
  3057. package/icons/es/LlmApi/style.d.ts +7 -0
  3058. package/icons/es/LlmApi/style.js +7 -0
  3059. package/icons/es/LmStudio/components/Avatar.d.ts +5 -0
  3060. package/icons/es/LmStudio/components/Avatar.js +25 -0
  3061. package/icons/es/LmStudio/components/Combine.d.ts +7 -0
  3062. package/icons/es/LmStudio/components/Combine.js +35 -0
  3063. package/icons/es/LmStudio/components/Mono.d.ts +3 -0
  3064. package/icons/es/LmStudio/components/Mono.js +43 -0
  3065. package/icons/es/LmStudio/components/Text.d.ts +3 -0
  3066. package/icons/es/LmStudio/components/Text.js +44 -0
  3067. package/icons/es/LmStudio/index.d.ts +14 -0
  3068. package/icons/es/LmStudio/index.js +13 -0
  3069. package/icons/es/LmStudio/style.d.ts +8 -0
  3070. package/icons/es/LmStudio/style.js +10 -0
  3071. package/icons/es/LongCat/components/Avatar.d.ts +5 -0
  3072. package/icons/es/LongCat/components/Avatar.js +25 -0
  3073. package/icons/es/LongCat/components/Color.d.ts +3 -0
  3074. package/icons/es/LongCat/components/Color.js +44 -0
  3075. package/icons/es/LongCat/components/Combine.d.ts +7 -0
  3076. package/icons/es/LongCat/components/Combine.js +32 -0
  3077. package/icons/es/LongCat/components/Mono.d.ts +3 -0
  3078. package/icons/es/LongCat/components/Mono.js +43 -0
  3079. package/icons/es/LongCat/components/Text.d.ts +3 -0
  3080. package/icons/es/LongCat/components/Text.js +40 -0
  3081. package/icons/es/LongCat/index.d.ts +15 -0
  3082. package/icons/es/LongCat/index.js +14 -0
  3083. package/icons/es/LongCat/style.d.ts +7 -0
  3084. package/icons/es/LongCat/style.js +9 -0
  3085. package/icons/es/Lovable/components/Avatar.d.ts +5 -0
  3086. package/icons/es/Lovable/components/Avatar.js +25 -0
  3087. package/icons/es/Lovable/components/Color.d.ts +3 -0
  3088. package/icons/es/Lovable/components/Color.js +70 -0
  3089. package/icons/es/Lovable/components/Combine.d.ts +7 -0
  3090. package/icons/es/Lovable/components/Combine.js +32 -0
  3091. package/icons/es/Lovable/components/Mono.d.ts +3 -0
  3092. package/icons/es/Lovable/components/Mono.js +41 -0
  3093. package/icons/es/Lovable/components/Text.d.ts +3 -0
  3094. package/icons/es/Lovable/components/Text.js +39 -0
  3095. package/icons/es/Lovable/index.d.ts +15 -0
  3096. package/icons/es/Lovable/index.js +14 -0
  3097. package/icons/es/Lovable/style.d.ts +7 -0
  3098. package/icons/es/Lovable/style.js +9 -0
  3099. package/icons/es/Lovart/components/Avatar.d.ts +5 -0
  3100. package/icons/es/Lovart/components/Avatar.js +25 -0
  3101. package/icons/es/Lovart/components/Combine.d.ts +5 -0
  3102. package/icons/es/Lovart/components/Combine.js +26 -0
  3103. package/icons/es/Lovart/components/Inner.d.ts +3 -0
  3104. package/icons/es/Lovart/components/Inner.js +45 -0
  3105. package/icons/es/Lovart/components/Mono.d.ts +3 -0
  3106. package/icons/es/Lovart/components/Mono.js +40 -0
  3107. package/icons/es/Lovart/components/Text.d.ts +3 -0
  3108. package/icons/es/Lovart/components/Text.js +39 -0
  3109. package/icons/es/Lovart/index.d.ts +13 -0
  3110. package/icons/es/Lovart/index.js +12 -0
  3111. package/icons/es/Lovart/style.d.ts +7 -0
  3112. package/icons/es/Lovart/style.js +9 -0
  3113. package/icons/es/Luma/components/Avatar.d.ts +5 -0
  3114. package/icons/es/Luma/components/Avatar.js +25 -0
  3115. package/icons/es/Luma/components/Color.d.ts +3 -0
  3116. package/icons/es/Luma/components/Color.js +144 -0
  3117. package/icons/es/Luma/components/Combine.d.ts +7 -0
  3118. package/icons/es/Luma/components/Combine.js +32 -0
  3119. package/icons/es/Luma/components/Mono.d.ts +3 -0
  3120. package/icons/es/Luma/components/Mono.js +44 -0
  3121. package/icons/es/Luma/components/Text.d.ts +3 -0
  3122. package/icons/es/Luma/components/Text.js +39 -0
  3123. package/icons/es/Luma/index.d.ts +16 -0
  3124. package/icons/es/Luma/index.js +14 -0
  3125. package/icons/es/Luma/style.d.ts +7 -0
  3126. package/icons/es/Luma/style.js +9 -0
  3127. package/icons/es/MCP/components/Avatar.d.ts +5 -0
  3128. package/icons/es/MCP/components/Avatar.js +25 -0
  3129. package/icons/es/MCP/components/Combine.d.ts +5 -0
  3130. package/icons/es/MCP/components/Combine.js +29 -0
  3131. package/icons/es/MCP/components/Mono.d.ts +3 -0
  3132. package/icons/es/MCP/components/Mono.js +42 -0
  3133. package/icons/es/MCP/components/Text.d.ts +3 -0
  3134. package/icons/es/MCP/components/Text.js +39 -0
  3135. package/icons/es/MCP/index.d.ts +13 -0
  3136. package/icons/es/MCP/index.js +12 -0
  3137. package/icons/es/MCP/style.d.ts +7 -0
  3138. package/icons/es/MCP/style.js +9 -0
  3139. package/icons/es/Magic/components/Avatar.d.ts +5 -0
  3140. package/icons/es/Magic/components/Avatar.js +25 -0
  3141. package/icons/es/Magic/components/Combine.d.ts +5 -0
  3142. package/icons/es/Magic/components/Combine.js +26 -0
  3143. package/icons/es/Magic/components/Mono.d.ts +3 -0
  3144. package/icons/es/Magic/components/Mono.js +42 -0
  3145. package/icons/es/Magic/components/Text.d.ts +3 -0
  3146. package/icons/es/Magic/components/Text.js +39 -0
  3147. package/icons/es/Magic/index.d.ts +13 -0
  3148. package/icons/es/Magic/index.js +12 -0
  3149. package/icons/es/Magic/style.d.ts +7 -0
  3150. package/icons/es/Magic/style.js +9 -0
  3151. package/icons/es/Make/components/Avatar.d.ts +5 -0
  3152. package/icons/es/Make/components/Avatar.js +25 -0
  3153. package/icons/es/Make/components/Color.d.ts +3 -0
  3154. package/icons/es/Make/components/Color.js +134 -0
  3155. package/icons/es/Make/components/Combine.d.ts +7 -0
  3156. package/icons/es/Make/components/Combine.js +32 -0
  3157. package/icons/es/Make/components/Mono.d.ts +3 -0
  3158. package/icons/es/Make/components/Mono.js +44 -0
  3159. package/icons/es/Make/components/Text.d.ts +3 -0
  3160. package/icons/es/Make/components/Text.js +41 -0
  3161. package/icons/es/Make/index.d.ts +15 -0
  3162. package/icons/es/Make/index.js +14 -0
  3163. package/icons/es/Make/style.d.ts +7 -0
  3164. package/icons/es/Make/style.js +9 -0
  3165. package/icons/es/Manus/components/Avatar.d.ts +5 -0
  3166. package/icons/es/Manus/components/Avatar.js +25 -0
  3167. package/icons/es/Manus/components/Combine.d.ts +5 -0
  3168. package/icons/es/Manus/components/Combine.js +26 -0
  3169. package/icons/es/Manus/components/Mono.d.ts +3 -0
  3170. package/icons/es/Manus/components/Mono.js +45 -0
  3171. package/icons/es/Manus/components/Text.d.ts +3 -0
  3172. package/icons/es/Manus/components/Text.js +39 -0
  3173. package/icons/es/Manus/index.d.ts +13 -0
  3174. package/icons/es/Manus/index.js +12 -0
  3175. package/icons/es/Manus/style.d.ts +7 -0
  3176. package/icons/es/Manus/style.js +9 -0
  3177. package/icons/es/Mastra/components/Avatar.d.ts +5 -0
  3178. package/icons/es/Mastra/components/Avatar.js +25 -0
  3179. package/icons/es/Mastra/components/Combine.d.ts +5 -0
  3180. package/icons/es/Mastra/components/Combine.js +26 -0
  3181. package/icons/es/Mastra/components/Mono.d.ts +3 -0
  3182. package/icons/es/Mastra/components/Mono.js +43 -0
  3183. package/icons/es/Mastra/components/Text.d.ts +3 -0
  3184. package/icons/es/Mastra/components/Text.js +39 -0
  3185. package/icons/es/Mastra/index.d.ts +13 -0
  3186. package/icons/es/Mastra/index.js +12 -0
  3187. package/icons/es/Mastra/style.d.ts +7 -0
  3188. package/icons/es/Mastra/style.js +9 -0
  3189. package/icons/es/McpSo/components/Avatar.d.ts +5 -0
  3190. package/icons/es/McpSo/components/Avatar.js +25 -0
  3191. package/icons/es/McpSo/components/Color.d.ts +3 -0
  3192. package/icons/es/McpSo/components/Color.js +42 -0
  3193. package/icons/es/McpSo/components/Combine.d.ts +7 -0
  3194. package/icons/es/McpSo/components/Combine.js +32 -0
  3195. package/icons/es/McpSo/components/Mono.d.ts +3 -0
  3196. package/icons/es/McpSo/components/Mono.js +42 -0
  3197. package/icons/es/McpSo/components/Text.d.ts +3 -0
  3198. package/icons/es/McpSo/components/Text.js +39 -0
  3199. package/icons/es/McpSo/index.d.ts +15 -0
  3200. package/icons/es/McpSo/index.js +14 -0
  3201. package/icons/es/McpSo/style.d.ts +7 -0
  3202. package/icons/es/McpSo/style.js +9 -0
  3203. package/icons/es/Menlo/components/Avatar.d.ts +5 -0
  3204. package/icons/es/Menlo/components/Avatar.js +25 -0
  3205. package/icons/es/Menlo/components/Color.d.ts +3 -0
  3206. package/icons/es/Menlo/components/Color.js +39 -0
  3207. package/icons/es/Menlo/components/Combine.d.ts +7 -0
  3208. package/icons/es/Menlo/components/Combine.js +29 -0
  3209. package/icons/es/Menlo/components/Mono.d.ts +3 -0
  3210. package/icons/es/Menlo/components/Mono.js +40 -0
  3211. package/icons/es/Menlo/components/Text.d.ts +3 -0
  3212. package/icons/es/Menlo/components/Text.js +39 -0
  3213. package/icons/es/Menlo/index.d.ts +15 -0
  3214. package/icons/es/Menlo/index.js +14 -0
  3215. package/icons/es/Menlo/style.d.ts +7 -0
  3216. package/icons/es/Menlo/style.js +9 -0
  3217. package/icons/es/Meshy/components/Avatar.d.ts +5 -0
  3218. package/icons/es/Meshy/components/Avatar.js +25 -0
  3219. package/icons/es/Meshy/components/Color.d.ts +3 -0
  3220. package/icons/es/Meshy/components/Color.js +106 -0
  3221. package/icons/es/Meshy/components/Combine.d.ts +7 -0
  3222. package/icons/es/Meshy/components/Combine.js +32 -0
  3223. package/icons/es/Meshy/components/Mono.d.ts +3 -0
  3224. package/icons/es/Meshy/components/Mono.js +42 -0
  3225. package/icons/es/Meshy/components/Text.d.ts +3 -0
  3226. package/icons/es/Meshy/components/Text.js +39 -0
  3227. package/icons/es/Meshy/index.d.ts +15 -0
  3228. package/icons/es/Meshy/index.js +14 -0
  3229. package/icons/es/Meshy/style.d.ts +7 -0
  3230. package/icons/es/Meshy/style.js +9 -0
  3231. package/icons/es/Meta/components/Avatar.d.ts +5 -0
  3232. package/icons/es/Meta/components/Avatar.js +25 -0
  3233. package/icons/es/Meta/components/BrandColor.d.ts +3 -0
  3234. package/icons/es/Meta/components/BrandColor.js +293 -0
  3235. package/icons/es/Meta/components/BrandMono.d.ts +3 -0
  3236. package/icons/es/Meta/components/BrandMono.js +39 -0
  3237. package/icons/es/Meta/components/Color.d.ts +3 -0
  3238. package/icons/es/Meta/components/Color.js +277 -0
  3239. package/icons/es/Meta/components/Combine.d.ts +7 -0
  3240. package/icons/es/Meta/components/Combine.js +32 -0
  3241. package/icons/es/Meta/components/Mono.d.ts +3 -0
  3242. package/icons/es/Meta/components/Mono.js +40 -0
  3243. package/icons/es/Meta/components/Text.d.ts +3 -0
  3244. package/icons/es/Meta/components/Text.js +39 -0
  3245. package/icons/es/Meta/index.d.ts +20 -0
  3246. package/icons/es/Meta/index.js +19 -0
  3247. package/icons/es/Meta/style.d.ts +8 -0
  3248. package/icons/es/Meta/style.js +10 -0
  3249. package/icons/es/MetaAI/components/Avatar.d.ts +5 -0
  3250. package/icons/es/MetaAI/components/Avatar.js +25 -0
  3251. package/icons/es/MetaAI/components/Color.d.ts +3 -0
  3252. package/icons/es/MetaAI/components/Color.js +190 -0
  3253. package/icons/es/MetaAI/components/Combine.d.ts +7 -0
  3254. package/icons/es/MetaAI/components/Combine.js +32 -0
  3255. package/icons/es/MetaAI/components/Mono.d.ts +3 -0
  3256. package/icons/es/MetaAI/components/Mono.js +40 -0
  3257. package/icons/es/MetaAI/components/Text.d.ts +3 -0
  3258. package/icons/es/MetaAI/components/Text.js +39 -0
  3259. package/icons/es/MetaAI/index.d.ts +15 -0
  3260. package/icons/es/MetaAI/index.js +14 -0
  3261. package/icons/es/MetaAI/style.d.ts +7 -0
  3262. package/icons/es/MetaAI/style.js +9 -0
  3263. package/icons/es/MetaGPT/components/Avatar.d.ts +5 -0
  3264. package/icons/es/MetaGPT/components/Avatar.js +25 -0
  3265. package/icons/es/MetaGPT/components/Combine.d.ts +5 -0
  3266. package/icons/es/MetaGPT/components/Combine.js +26 -0
  3267. package/icons/es/MetaGPT/components/Mono.d.ts +3 -0
  3268. package/icons/es/MetaGPT/components/Mono.js +46 -0
  3269. package/icons/es/MetaGPT/components/Text.d.ts +3 -0
  3270. package/icons/es/MetaGPT/components/Text.js +39 -0
  3271. package/icons/es/MetaGPT/index.d.ts +13 -0
  3272. package/icons/es/MetaGPT/index.js +12 -0
  3273. package/icons/es/MetaGPT/style.d.ts +7 -0
  3274. package/icons/es/MetaGPT/style.js +9 -0
  3275. package/icons/es/Microsoft/components/Avatar.d.ts +5 -0
  3276. package/icons/es/Microsoft/components/Avatar.js +25 -0
  3277. package/icons/es/Microsoft/components/Color.d.ts +3 -0
  3278. package/icons/es/Microsoft/components/Color.js +48 -0
  3279. package/icons/es/Microsoft/components/Combine.d.ts +7 -0
  3280. package/icons/es/Microsoft/components/Combine.js +32 -0
  3281. package/icons/es/Microsoft/components/Mono.d.ts +3 -0
  3282. package/icons/es/Microsoft/components/Mono.js +46 -0
  3283. package/icons/es/Microsoft/components/Text.d.ts +3 -0
  3284. package/icons/es/Microsoft/components/Text.js +40 -0
  3285. package/icons/es/Microsoft/index.d.ts +15 -0
  3286. package/icons/es/Microsoft/index.js +14 -0
  3287. package/icons/es/Microsoft/style.d.ts +7 -0
  3288. package/icons/es/Microsoft/style.js +9 -0
  3289. package/icons/es/Midjourney/components/Avatar.d.ts +5 -0
  3290. package/icons/es/Midjourney/components/Avatar.js +25 -0
  3291. package/icons/es/Midjourney/components/Combine.d.ts +5 -0
  3292. package/icons/es/Midjourney/components/Combine.js +26 -0
  3293. package/icons/es/Midjourney/components/Mono.d.ts +3 -0
  3294. package/icons/es/Midjourney/components/Mono.js +40 -0
  3295. package/icons/es/Midjourney/components/Text.d.ts +3 -0
  3296. package/icons/es/Midjourney/components/Text.js +39 -0
  3297. package/icons/es/Midjourney/index.d.ts +13 -0
  3298. package/icons/es/Midjourney/index.js +12 -0
  3299. package/icons/es/Midjourney/style.d.ts +7 -0
  3300. package/icons/es/Midjourney/style.js +9 -0
  3301. package/icons/es/Minimax/components/Avatar.d.ts +5 -0
  3302. package/icons/es/Minimax/components/Avatar.js +28 -0
  3303. package/icons/es/Minimax/components/Color.d.ts +3 -0
  3304. package/icons/es/Minimax/components/Color.js +59 -0
  3305. package/icons/es/Minimax/components/Combine.d.ts +7 -0
  3306. package/icons/es/Minimax/components/Combine.js +36 -0
  3307. package/icons/es/Minimax/components/Mono.d.ts +3 -0
  3308. package/icons/es/Minimax/components/Mono.js +40 -0
  3309. package/icons/es/Minimax/components/Text.d.ts +3 -0
  3310. package/icons/es/Minimax/components/Text.js +39 -0
  3311. package/icons/es/Minimax/index.d.ts +16 -0
  3312. package/icons/es/Minimax/index.js +15 -0
  3313. package/icons/es/Minimax/style.d.ts +8 -0
  3314. package/icons/es/Minimax/style.js +10 -0
  3315. package/icons/es/Mistral/components/Avatar.d.ts +5 -0
  3316. package/icons/es/Mistral/components/Avatar.js +25 -0
  3317. package/icons/es/Mistral/components/Color.d.ts +3 -0
  3318. package/icons/es/Mistral/components/Color.js +51 -0
  3319. package/icons/es/Mistral/components/Combine.d.ts +7 -0
  3320. package/icons/es/Mistral/components/Combine.js +32 -0
  3321. package/icons/es/Mistral/components/Mono.d.ts +3 -0
  3322. package/icons/es/Mistral/components/Mono.js +41 -0
  3323. package/icons/es/Mistral/components/Text.d.ts +3 -0
  3324. package/icons/es/Mistral/components/Text.js +39 -0
  3325. package/icons/es/Mistral/index.d.ts +15 -0
  3326. package/icons/es/Mistral/index.js +14 -0
  3327. package/icons/es/Mistral/style.d.ts +7 -0
  3328. package/icons/es/Mistral/style.js +9 -0
  3329. package/icons/es/ModelScope/components/Avatar.d.ts +5 -0
  3330. package/icons/es/ModelScope/components/Avatar.js +25 -0
  3331. package/icons/es/ModelScope/components/Color.d.ts +3 -0
  3332. package/icons/es/ModelScope/components/Color.js +48 -0
  3333. package/icons/es/ModelScope/components/Combine.d.ts +7 -0
  3334. package/icons/es/ModelScope/components/Combine.js +32 -0
  3335. package/icons/es/ModelScope/components/Mono.d.ts +3 -0
  3336. package/icons/es/ModelScope/components/Mono.js +45 -0
  3337. package/icons/es/ModelScope/components/Text.d.ts +3 -0
  3338. package/icons/es/ModelScope/components/Text.js +40 -0
  3339. package/icons/es/ModelScope/index.d.ts +16 -0
  3340. package/icons/es/ModelScope/index.js +14 -0
  3341. package/icons/es/ModelScope/style.d.ts +7 -0
  3342. package/icons/es/ModelScope/style.js +9 -0
  3343. package/icons/es/Monica/components/Avatar.d.ts +5 -0
  3344. package/icons/es/Monica/components/Avatar.js +25 -0
  3345. package/icons/es/Monica/components/Color.d.ts +3 -0
  3346. package/icons/es/Monica/components/Color.js +72 -0
  3347. package/icons/es/Monica/components/Combine.d.ts +7 -0
  3348. package/icons/es/Monica/components/Combine.js +32 -0
  3349. package/icons/es/Monica/components/Mono.d.ts +3 -0
  3350. package/icons/es/Monica/components/Mono.js +43 -0
  3351. package/icons/es/Monica/components/Text.d.ts +3 -0
  3352. package/icons/es/Monica/components/Text.js +39 -0
  3353. package/icons/es/Monica/index.d.ts +16 -0
  3354. package/icons/es/Monica/index.js +15 -0
  3355. package/icons/es/Monica/style.d.ts +8 -0
  3356. package/icons/es/Monica/style.js +10 -0
  3357. package/icons/es/Moonshot/components/Avatar.d.ts +5 -0
  3358. package/icons/es/Moonshot/components/Avatar.js +25 -0
  3359. package/icons/es/Moonshot/components/Combine.d.ts +5 -0
  3360. package/icons/es/Moonshot/components/Combine.js +26 -0
  3361. package/icons/es/Moonshot/components/Mono.d.ts +3 -0
  3362. package/icons/es/Moonshot/components/Mono.js +40 -0
  3363. package/icons/es/Moonshot/components/Text.d.ts +3 -0
  3364. package/icons/es/Moonshot/components/Text.js +39 -0
  3365. package/icons/es/Moonshot/index.d.ts +13 -0
  3366. package/icons/es/Moonshot/index.js +12 -0
  3367. package/icons/es/Moonshot/style.d.ts +7 -0
  3368. package/icons/es/Moonshot/style.js +9 -0
  3369. package/icons/es/Morph/components/Avatar.d.ts +5 -0
  3370. package/icons/es/Morph/components/Avatar.js +25 -0
  3371. package/icons/es/Morph/components/Color.d.ts +3 -0
  3372. package/icons/es/Morph/components/Color.js +39 -0
  3373. package/icons/es/Morph/components/Combine.d.ts +7 -0
  3374. package/icons/es/Morph/components/Combine.js +32 -0
  3375. package/icons/es/Morph/components/Mono.d.ts +3 -0
  3376. package/icons/es/Morph/components/Mono.js +40 -0
  3377. package/icons/es/Morph/components/Text.d.ts +3 -0
  3378. package/icons/es/Morph/components/Text.js +42 -0
  3379. package/icons/es/Morph/index.d.ts +16 -0
  3380. package/icons/es/Morph/index.js +14 -0
  3381. package/icons/es/Morph/style.d.ts +7 -0
  3382. package/icons/es/Morph/style.js +9 -0
  3383. package/icons/es/Moxt/components/Avatar.d.ts +5 -0
  3384. package/icons/es/Moxt/components/Avatar.js +25 -0
  3385. package/icons/es/Moxt/components/Color.d.ts +3 -0
  3386. package/icons/es/Moxt/components/Color.js +44 -0
  3387. package/icons/es/Moxt/components/Combine.d.ts +7 -0
  3388. package/icons/es/Moxt/components/Combine.js +32 -0
  3389. package/icons/es/Moxt/components/Mono.d.ts +3 -0
  3390. package/icons/es/Moxt/components/Mono.js +43 -0
  3391. package/icons/es/Moxt/components/Text.d.ts +3 -0
  3392. package/icons/es/Moxt/components/Text.js +39 -0
  3393. package/icons/es/Moxt/index.d.ts +15 -0
  3394. package/icons/es/Moxt/index.js +14 -0
  3395. package/icons/es/Moxt/style.d.ts +7 -0
  3396. package/icons/es/Moxt/style.js +9 -0
  3397. package/icons/es/MyShell/components/Avatar.d.ts +5 -0
  3398. package/icons/es/MyShell/components/Avatar.js +25 -0
  3399. package/icons/es/MyShell/components/Color.d.ts +3 -0
  3400. package/icons/es/MyShell/components/Color.js +84 -0
  3401. package/icons/es/MyShell/components/Combine.d.ts +7 -0
  3402. package/icons/es/MyShell/components/Combine.js +32 -0
  3403. package/icons/es/MyShell/components/Mono.d.ts +3 -0
  3404. package/icons/es/MyShell/components/Mono.js +43 -0
  3405. package/icons/es/MyShell/components/Text.d.ts +3 -0
  3406. package/icons/es/MyShell/components/Text.js +39 -0
  3407. package/icons/es/MyShell/index.d.ts +15 -0
  3408. package/icons/es/MyShell/index.js +14 -0
  3409. package/icons/es/MyShell/style.d.ts +7 -0
  3410. package/icons/es/MyShell/style.js +9 -0
  3411. package/icons/es/N8n/components/Avatar.d.ts +5 -0
  3412. package/icons/es/N8n/components/Avatar.js +25 -0
  3413. package/icons/es/N8n/components/Color.d.ts +3 -0
  3414. package/icons/es/N8n/components/Color.js +41 -0
  3415. package/icons/es/N8n/components/Combine.d.ts +7 -0
  3416. package/icons/es/N8n/components/Combine.js +32 -0
  3417. package/icons/es/N8n/components/Mono.d.ts +3 -0
  3418. package/icons/es/N8n/components/Mono.js +41 -0
  3419. package/icons/es/N8n/components/Text.d.ts +3 -0
  3420. package/icons/es/N8n/components/Text.js +39 -0
  3421. package/icons/es/N8n/index.d.ts +15 -0
  3422. package/icons/es/N8n/index.js +14 -0
  3423. package/icons/es/N8n/style.d.ts +7 -0
  3424. package/icons/es/N8n/style.js +9 -0
  3425. package/icons/es/NPLCloud/components/Avatar.d.ts +5 -0
  3426. package/icons/es/NPLCloud/components/Avatar.js +25 -0
  3427. package/icons/es/NPLCloud/components/Color.d.ts +3 -0
  3428. package/icons/es/NPLCloud/components/Color.js +39 -0
  3429. package/icons/es/NPLCloud/components/Combine.d.ts +7 -0
  3430. package/icons/es/NPLCloud/components/Combine.js +32 -0
  3431. package/icons/es/NPLCloud/components/Mono.d.ts +3 -0
  3432. package/icons/es/NPLCloud/components/Mono.js +40 -0
  3433. package/icons/es/NPLCloud/components/Text.d.ts +3 -0
  3434. package/icons/es/NPLCloud/components/Text.js +39 -0
  3435. package/icons/es/NPLCloud/index.d.ts +15 -0
  3436. package/icons/es/NPLCloud/index.js +14 -0
  3437. package/icons/es/NPLCloud/style.d.ts +7 -0
  3438. package/icons/es/NPLCloud/style.js +9 -0
  3439. package/icons/es/NanoBanana/components/Avatar.d.ts +5 -0
  3440. package/icons/es/NanoBanana/components/Avatar.js +25 -0
  3441. package/icons/es/NanoBanana/components/Color.d.ts +3 -0
  3442. package/icons/es/NanoBanana/components/Color.js +56 -0
  3443. package/icons/es/NanoBanana/components/Combine.d.ts +7 -0
  3444. package/icons/es/NanoBanana/components/Combine.js +32 -0
  3445. package/icons/es/NanoBanana/components/Inner.d.ts +3 -0
  3446. package/icons/es/NanoBanana/components/Inner.js +59 -0
  3447. package/icons/es/NanoBanana/components/Mono.d.ts +3 -0
  3448. package/icons/es/NanoBanana/components/Mono.js +40 -0
  3449. package/icons/es/NanoBanana/components/Text.d.ts +3 -0
  3450. package/icons/es/NanoBanana/components/Text.js +39 -0
  3451. package/icons/es/NanoBanana/index.d.ts +16 -0
  3452. package/icons/es/NanoBanana/index.js +14 -0
  3453. package/icons/es/NanoBanana/style.d.ts +7 -0
  3454. package/icons/es/NanoBanana/style.js +9 -0
  3455. package/icons/es/Nebius/components/Avatar.d.ts +5 -0
  3456. package/icons/es/Nebius/components/Avatar.js +25 -0
  3457. package/icons/es/Nebius/components/Mono.d.ts +3 -0
  3458. package/icons/es/Nebius/components/Mono.js +42 -0
  3459. package/icons/es/Nebius/components/Text.d.ts +3 -0
  3460. package/icons/es/Nebius/components/Text.js +46 -0
  3461. package/icons/es/Nebius/index.d.ts +11 -0
  3462. package/icons/es/Nebius/index.js +10 -0
  3463. package/icons/es/Nebius/style.d.ts +5 -0
  3464. package/icons/es/Nebius/style.js +7 -0
  3465. package/icons/es/NewAPI/components/Avatar.d.ts +5 -0
  3466. package/icons/es/NewAPI/components/Avatar.js +25 -0
  3467. package/icons/es/NewAPI/components/Color.d.ts +3 -0
  3468. package/icons/es/NewAPI/components/Color.js +100 -0
  3469. package/icons/es/NewAPI/components/Combine.d.ts +7 -0
  3470. package/icons/es/NewAPI/components/Combine.js +32 -0
  3471. package/icons/es/NewAPI/components/Mono.d.ts +3 -0
  3472. package/icons/es/NewAPI/components/Mono.js +44 -0
  3473. package/icons/es/NewAPI/components/Text.d.ts +3 -0
  3474. package/icons/es/NewAPI/components/Text.js +39 -0
  3475. package/icons/es/NewAPI/index.d.ts +15 -0
  3476. package/icons/es/NewAPI/index.js +14 -0
  3477. package/icons/es/NewAPI/style.d.ts +7 -0
  3478. package/icons/es/NewAPI/style.js +9 -0
  3479. package/icons/es/NotebookLM/components/Avatar.d.ts +5 -0
  3480. package/icons/es/NotebookLM/components/Avatar.js +25 -0
  3481. package/icons/es/NotebookLM/components/Combine.d.ts +5 -0
  3482. package/icons/es/NotebookLM/components/Combine.js +29 -0
  3483. package/icons/es/NotebookLM/components/Mono.d.ts +3 -0
  3484. package/icons/es/NotebookLM/components/Mono.js +40 -0
  3485. package/icons/es/NotebookLM/components/Text.d.ts +3 -0
  3486. package/icons/es/NotebookLM/components/Text.js +39 -0
  3487. package/icons/es/NotebookLM/index.d.ts +13 -0
  3488. package/icons/es/NotebookLM/index.js +12 -0
  3489. package/icons/es/NotebookLM/style.d.ts +7 -0
  3490. package/icons/es/NotebookLM/style.js +9 -0
  3491. package/icons/es/Notion/components/Avatar.d.ts +5 -0
  3492. package/icons/es/Notion/components/Avatar.js +25 -0
  3493. package/icons/es/Notion/components/Combine.d.ts +5 -0
  3494. package/icons/es/Notion/components/Combine.js +26 -0
  3495. package/icons/es/Notion/components/Mono.d.ts +3 -0
  3496. package/icons/es/Notion/components/Mono.js +41 -0
  3497. package/icons/es/Notion/components/Text.d.ts +3 -0
  3498. package/icons/es/Notion/components/Text.js +39 -0
  3499. package/icons/es/Notion/index.d.ts +13 -0
  3500. package/icons/es/Notion/index.js +12 -0
  3501. package/icons/es/Notion/style.d.ts +7 -0
  3502. package/icons/es/Notion/style.js +9 -0
  3503. package/icons/es/NousResearch/components/Avatar.d.ts +5 -0
  3504. package/icons/es/NousResearch/components/Avatar.js +25 -0
  3505. package/icons/es/NousResearch/components/Combine.d.ts +5 -0
  3506. package/icons/es/NousResearch/components/Combine.js +26 -0
  3507. package/icons/es/NousResearch/components/Mono.d.ts +3 -0
  3508. package/icons/es/NousResearch/components/Mono.js +45 -0
  3509. package/icons/es/NousResearch/components/Text.d.ts +3 -0
  3510. package/icons/es/NousResearch/components/Text.js +39 -0
  3511. package/icons/es/NousResearch/index.d.ts +13 -0
  3512. package/icons/es/NousResearch/index.js +12 -0
  3513. package/icons/es/NousResearch/style.d.ts +7 -0
  3514. package/icons/es/NousResearch/style.js +9 -0
  3515. package/icons/es/Nova/components/Avatar.d.ts +5 -0
  3516. package/icons/es/Nova/components/Avatar.js +25 -0
  3517. package/icons/es/Nova/components/Color.d.ts +3 -0
  3518. package/icons/es/Nova/components/Color.js +103 -0
  3519. package/icons/es/Nova/components/Combine.d.ts +7 -0
  3520. package/icons/es/Nova/components/Combine.js +32 -0
  3521. package/icons/es/Nova/components/Mono.d.ts +3 -0
  3522. package/icons/es/Nova/components/Mono.js +40 -0
  3523. package/icons/es/Nova/components/Text.d.ts +3 -0
  3524. package/icons/es/Nova/components/Text.js +39 -0
  3525. package/icons/es/Nova/index.d.ts +16 -0
  3526. package/icons/es/Nova/index.js +15 -0
  3527. package/icons/es/Nova/style.d.ts +8 -0
  3528. package/icons/es/Nova/style.js +10 -0
  3529. package/icons/es/NovelAI/components/Avatar.d.ts +5 -0
  3530. package/icons/es/NovelAI/components/Avatar.js +25 -0
  3531. package/icons/es/NovelAI/components/Combine.d.ts +5 -0
  3532. package/icons/es/NovelAI/components/Combine.js +26 -0
  3533. package/icons/es/NovelAI/components/Mono.d.ts +3 -0
  3534. package/icons/es/NovelAI/components/Mono.js +41 -0
  3535. package/icons/es/NovelAI/components/Text.d.ts +3 -0
  3536. package/icons/es/NovelAI/components/Text.js +43 -0
  3537. package/icons/es/NovelAI/index.d.ts +13 -0
  3538. package/icons/es/NovelAI/index.js +12 -0
  3539. package/icons/es/NovelAI/style.d.ts +7 -0
  3540. package/icons/es/NovelAI/style.js +9 -0
  3541. package/icons/es/Novita/components/Avatar.d.ts +5 -0
  3542. package/icons/es/Novita/components/Avatar.js +25 -0
  3543. package/icons/es/Novita/components/Color.d.ts +3 -0
  3544. package/icons/es/Novita/components/Color.js +41 -0
  3545. package/icons/es/Novita/components/Combine.d.ts +7 -0
  3546. package/icons/es/Novita/components/Combine.js +32 -0
  3547. package/icons/es/Novita/components/Mono.d.ts +3 -0
  3548. package/icons/es/Novita/components/Mono.js +41 -0
  3549. package/icons/es/Novita/components/Text.d.ts +3 -0
  3550. package/icons/es/Novita/components/Text.js +40 -0
  3551. package/icons/es/Novita/index.d.ts +15 -0
  3552. package/icons/es/Novita/index.js +14 -0
  3553. package/icons/es/Novita/style.d.ts +7 -0
  3554. package/icons/es/Novita/style.js +9 -0
  3555. package/icons/es/Nvidia/components/Avatar.d.ts +5 -0
  3556. package/icons/es/Nvidia/components/Avatar.js +25 -0
  3557. package/icons/es/Nvidia/components/Color.d.ts +3 -0
  3558. package/icons/es/Nvidia/components/Color.js +40 -0
  3559. package/icons/es/Nvidia/components/Combine.d.ts +7 -0
  3560. package/icons/es/Nvidia/components/Combine.js +32 -0
  3561. package/icons/es/Nvidia/components/Mono.d.ts +3 -0
  3562. package/icons/es/Nvidia/components/Mono.js +40 -0
  3563. package/icons/es/Nvidia/components/Text.d.ts +3 -0
  3564. package/icons/es/Nvidia/components/Text.js +39 -0
  3565. package/icons/es/Nvidia/index.d.ts +15 -0
  3566. package/icons/es/Nvidia/index.js +14 -0
  3567. package/icons/es/Nvidia/style.d.ts +7 -0
  3568. package/icons/es/Nvidia/style.js +9 -0
  3569. package/icons/es/Obsidian/components/Avatar.d.ts +5 -0
  3570. package/icons/es/Obsidian/components/Avatar.js +25 -0
  3571. package/icons/es/Obsidian/components/Color.d.ts +3 -0
  3572. package/icons/es/Obsidian/components/Color.js +45 -0
  3573. package/icons/es/Obsidian/components/Combine.d.ts +7 -0
  3574. package/icons/es/Obsidian/components/Combine.js +32 -0
  3575. package/icons/es/Obsidian/components/Mono.d.ts +3 -0
  3576. package/icons/es/Obsidian/components/Mono.js +44 -0
  3577. package/icons/es/Obsidian/components/Text.d.ts +3 -0
  3578. package/icons/es/Obsidian/components/Text.js +39 -0
  3579. package/icons/es/Obsidian/index.d.ts +16 -0
  3580. package/icons/es/Obsidian/index.js +14 -0
  3581. package/icons/es/Obsidian/style.d.ts +7 -0
  3582. package/icons/es/Obsidian/style.js +9 -0
  3583. package/icons/es/Ollama/components/Avatar.d.ts +5 -0
  3584. package/icons/es/Ollama/components/Avatar.js +25 -0
  3585. package/icons/es/Ollama/components/Combine.d.ts +5 -0
  3586. package/icons/es/Ollama/components/Combine.js +26 -0
  3587. package/icons/es/Ollama/components/Mono.d.ts +3 -0
  3588. package/icons/es/Ollama/components/Mono.js +40 -0
  3589. package/icons/es/Ollama/components/Text.d.ts +3 -0
  3590. package/icons/es/Ollama/components/Text.js +39 -0
  3591. package/icons/es/Ollama/index.d.ts +13 -0
  3592. package/icons/es/Ollama/index.js +12 -0
  3593. package/icons/es/Ollama/style.d.ts +7 -0
  3594. package/icons/es/Ollama/style.js +9 -0
  3595. package/icons/es/OpenAI/components/Avatar.d.ts +7 -0
  3596. package/icons/es/OpenAI/components/Avatar.js +62 -0
  3597. package/icons/es/OpenAI/components/Combine.d.ts +5 -0
  3598. package/icons/es/OpenAI/components/Combine.js +32 -0
  3599. package/icons/es/OpenAI/components/Mono.d.ts +3 -0
  3600. package/icons/es/OpenAI/components/Mono.js +40 -0
  3601. package/icons/es/OpenAI/components/Text.d.ts +3 -0
  3602. package/icons/es/OpenAI/components/Text.js +39 -0
  3603. package/icons/es/OpenAI/index.d.ts +20 -0
  3604. package/icons/es/OpenAI/index.js +19 -0
  3605. package/icons/es/OpenAI/style.d.ts +13 -0
  3606. package/icons/es/OpenAI/style.js +15 -0
  3607. package/icons/es/OpenChat/components/Avatar.d.ts +5 -0
  3608. package/icons/es/OpenChat/components/Avatar.js +25 -0
  3609. package/icons/es/OpenChat/components/Color.d.ts +3 -0
  3610. package/icons/es/OpenChat/components/Color.js +81 -0
  3611. package/icons/es/OpenChat/components/Combine.d.ts +7 -0
  3612. package/icons/es/OpenChat/components/Combine.js +36 -0
  3613. package/icons/es/OpenChat/components/Mono.d.ts +3 -0
  3614. package/icons/es/OpenChat/components/Mono.js +42 -0
  3615. package/icons/es/OpenChat/components/Text.d.ts +3 -0
  3616. package/icons/es/OpenChat/components/Text.js +39 -0
  3617. package/icons/es/OpenChat/index.d.ts +15 -0
  3618. package/icons/es/OpenChat/index.js +14 -0
  3619. package/icons/es/OpenChat/style.d.ts +7 -0
  3620. package/icons/es/OpenChat/style.js +9 -0
  3621. package/icons/es/OpenClaw/components/Avatar.d.ts +5 -0
  3622. package/icons/es/OpenClaw/components/Avatar.js +25 -0
  3623. package/icons/es/OpenClaw/components/Color.d.ts +3 -0
  3624. package/icons/es/OpenClaw/components/Color.js +107 -0
  3625. package/icons/es/OpenClaw/components/Combine.d.ts +7 -0
  3626. package/icons/es/OpenClaw/components/Combine.js +32 -0
  3627. package/icons/es/OpenClaw/components/Mono.d.ts +3 -0
  3628. package/icons/es/OpenClaw/components/Mono.js +124 -0
  3629. package/icons/es/OpenClaw/components/Text.d.ts +3 -0
  3630. package/icons/es/OpenClaw/components/Text.js +39 -0
  3631. package/icons/es/OpenClaw/index.d.ts +15 -0
  3632. package/icons/es/OpenClaw/index.js +14 -0
  3633. package/icons/es/OpenClaw/style.d.ts +7 -0
  3634. package/icons/es/OpenClaw/style.js +9 -0
  3635. package/icons/es/OpenCode/components/Avatar.d.ts +5 -0
  3636. package/icons/es/OpenCode/components/Avatar.js +25 -0
  3637. package/icons/es/OpenCode/components/Combine.d.ts +5 -0
  3638. package/icons/es/OpenCode/components/Combine.js +24 -0
  3639. package/icons/es/OpenCode/components/Mono.d.ts +3 -0
  3640. package/icons/es/OpenCode/components/Mono.js +40 -0
  3641. package/icons/es/OpenCode/components/Text.d.ts +3 -0
  3642. package/icons/es/OpenCode/components/Text.js +81 -0
  3643. package/icons/es/OpenCode/index.d.ts +13 -0
  3644. package/icons/es/OpenCode/index.js +12 -0
  3645. package/icons/es/OpenCode/style.d.ts +7 -0
  3646. package/icons/es/OpenCode/style.js +9 -0
  3647. package/icons/es/OpenHands/components/Avatar.d.ts +5 -0
  3648. package/icons/es/OpenHands/components/Avatar.js +25 -0
  3649. package/icons/es/OpenHands/components/Color.d.ts +3 -0
  3650. package/icons/es/OpenHands/components/Color.js +47 -0
  3651. package/icons/es/OpenHands/components/Combine.d.ts +7 -0
  3652. package/icons/es/OpenHands/components/Combine.js +32 -0
  3653. package/icons/es/OpenHands/components/Mono.d.ts +3 -0
  3654. package/icons/es/OpenHands/components/Mono.js +43 -0
  3655. package/icons/es/OpenHands/components/Text.d.ts +3 -0
  3656. package/icons/es/OpenHands/components/Text.js +39 -0
  3657. package/icons/es/OpenHands/index.d.ts +15 -0
  3658. package/icons/es/OpenHands/index.js +14 -0
  3659. package/icons/es/OpenHands/style.d.ts +7 -0
  3660. package/icons/es/OpenHands/style.js +9 -0
  3661. package/icons/es/OpenHuman/components/Avatar.d.ts +5 -0
  3662. package/icons/es/OpenHuman/components/Avatar.js +25 -0
  3663. package/icons/es/OpenHuman/components/Combine.d.ts +5 -0
  3664. package/icons/es/OpenHuman/components/Combine.js +29 -0
  3665. package/icons/es/OpenHuman/components/Mono.d.ts +3 -0
  3666. package/icons/es/OpenHuman/components/Mono.js +40 -0
  3667. package/icons/es/OpenHuman/components/Text.d.ts +3 -0
  3668. package/icons/es/OpenHuman/components/Text.js +39 -0
  3669. package/icons/es/OpenHuman/index.d.ts +13 -0
  3670. package/icons/es/OpenHuman/index.js +12 -0
  3671. package/icons/es/OpenHuman/style.d.ts +7 -0
  3672. package/icons/es/OpenHuman/style.js +9 -0
  3673. package/icons/es/OpenRouter/components/Avatar.d.ts +5 -0
  3674. package/icons/es/OpenRouter/components/Avatar.js +25 -0
  3675. package/icons/es/OpenRouter/components/Combine.d.ts +7 -0
  3676. package/icons/es/OpenRouter/components/Combine.js +34 -0
  3677. package/icons/es/OpenRouter/components/Mono.d.ts +3 -0
  3678. package/icons/es/OpenRouter/components/Mono.js +40 -0
  3679. package/icons/es/OpenRouter/components/Text.d.ts +3 -0
  3680. package/icons/es/OpenRouter/components/Text.js +39 -0
  3681. package/icons/es/OpenRouter/index.d.ts +13 -0
  3682. package/icons/es/OpenRouter/index.js +12 -0
  3683. package/icons/es/OpenRouter/style.d.ts +7 -0
  3684. package/icons/es/OpenRouter/style.js +9 -0
  3685. package/icons/es/OpenWebUI/components/Avatar.d.ts +5 -0
  3686. package/icons/es/OpenWebUI/components/Avatar.js +25 -0
  3687. package/icons/es/OpenWebUI/components/Combine.d.ts +5 -0
  3688. package/icons/es/OpenWebUI/components/Combine.js +26 -0
  3689. package/icons/es/OpenWebUI/components/Mono.d.ts +3 -0
  3690. package/icons/es/OpenWebUI/components/Mono.js +43 -0
  3691. package/icons/es/OpenWebUI/components/Text.d.ts +3 -0
  3692. package/icons/es/OpenWebUI/components/Text.js +39 -0
  3693. package/icons/es/OpenWebUI/index.d.ts +13 -0
  3694. package/icons/es/OpenWebUI/index.js +12 -0
  3695. package/icons/es/OpenWebUI/style.d.ts +7 -0
  3696. package/icons/es/OpenWebUI/style.js +9 -0
  3697. package/icons/es/PPIO/components/Avatar.d.ts +5 -0
  3698. package/icons/es/PPIO/components/Avatar.js +25 -0
  3699. package/icons/es/PPIO/components/Color.d.ts +3 -0
  3700. package/icons/es/PPIO/components/Color.js +41 -0
  3701. package/icons/es/PPIO/components/Combine.d.ts +7 -0
  3702. package/icons/es/PPIO/components/Combine.js +32 -0
  3703. package/icons/es/PPIO/components/Mono.d.ts +3 -0
  3704. package/icons/es/PPIO/components/Mono.js +41 -0
  3705. package/icons/es/PPIO/components/Text.d.ts +3 -0
  3706. package/icons/es/PPIO/components/Text.js +40 -0
  3707. package/icons/es/PPIO/components/TextCn.d.ts +3 -0
  3708. package/icons/es/PPIO/components/TextCn.js +40 -0
  3709. package/icons/es/PPIO/index.d.ts +17 -0
  3710. package/icons/es/PPIO/index.js +16 -0
  3711. package/icons/es/PPIO/style.d.ts +7 -0
  3712. package/icons/es/PPIO/style.js +9 -0
  3713. package/icons/es/PaLM/components/Avatar.d.ts +5 -0
  3714. package/icons/es/PaLM/components/Avatar.js +25 -0
  3715. package/icons/es/PaLM/components/Color.d.ts +3 -0
  3716. package/icons/es/PaLM/components/Color.js +57 -0
  3717. package/icons/es/PaLM/components/Combine.d.ts +7 -0
  3718. package/icons/es/PaLM/components/Combine.js +32 -0
  3719. package/icons/es/PaLM/components/Mono.d.ts +3 -0
  3720. package/icons/es/PaLM/components/Mono.js +52 -0
  3721. package/icons/es/PaLM/components/Text.d.ts +3 -0
  3722. package/icons/es/PaLM/components/Text.js +39 -0
  3723. package/icons/es/PaLM/index.d.ts +15 -0
  3724. package/icons/es/PaLM/index.js +14 -0
  3725. package/icons/es/PaLM/style.d.ts +7 -0
  3726. package/icons/es/PaLM/style.js +9 -0
  3727. package/icons/es/Parasail/components/Avatar.d.ts +5 -0
  3728. package/icons/es/Parasail/components/Avatar.js +25 -0
  3729. package/icons/es/Parasail/components/Combine.d.ts +5 -0
  3730. package/icons/es/Parasail/components/Combine.js +27 -0
  3731. package/icons/es/Parasail/components/Mono.d.ts +3 -0
  3732. package/icons/es/Parasail/components/Mono.js +43 -0
  3733. package/icons/es/Parasail/components/Text.d.ts +3 -0
  3734. package/icons/es/Parasail/components/Text.js +39 -0
  3735. package/icons/es/Parasail/index.d.ts +13 -0
  3736. package/icons/es/Parasail/index.js +12 -0
  3737. package/icons/es/Parasail/style.d.ts +7 -0
  3738. package/icons/es/Parasail/style.js +9 -0
  3739. package/icons/es/Perplexity/components/Avatar.d.ts +5 -0
  3740. package/icons/es/Perplexity/components/Avatar.js +25 -0
  3741. package/icons/es/Perplexity/components/Color.d.ts +3 -0
  3742. package/icons/es/Perplexity/components/Color.js +40 -0
  3743. package/icons/es/Perplexity/components/Combine.d.ts +7 -0
  3744. package/icons/es/Perplexity/components/Combine.js +32 -0
  3745. package/icons/es/Perplexity/components/Mono.d.ts +3 -0
  3746. package/icons/es/Perplexity/components/Mono.js +40 -0
  3747. package/icons/es/Perplexity/components/Text.d.ts +3 -0
  3748. package/icons/es/Perplexity/components/Text.js +39 -0
  3749. package/icons/es/Perplexity/index.d.ts +15 -0
  3750. package/icons/es/Perplexity/index.js +14 -0
  3751. package/icons/es/Perplexity/style.d.ts +7 -0
  3752. package/icons/es/Perplexity/style.js +9 -0
  3753. package/icons/es/Phidata/components/Avatar.d.ts +5 -0
  3754. package/icons/es/Phidata/components/Avatar.js +25 -0
  3755. package/icons/es/Phidata/components/Color.d.ts +3 -0
  3756. package/icons/es/Phidata/components/Color.js +41 -0
  3757. package/icons/es/Phidata/components/Combine.d.ts +7 -0
  3758. package/icons/es/Phidata/components/Combine.js +32 -0
  3759. package/icons/es/Phidata/components/Mono.d.ts +3 -0
  3760. package/icons/es/Phidata/components/Mono.js +41 -0
  3761. package/icons/es/Phidata/components/Text.d.ts +3 -0
  3762. package/icons/es/Phidata/components/Text.js +39 -0
  3763. package/icons/es/Phidata/index.d.ts +15 -0
  3764. package/icons/es/Phidata/index.js +14 -0
  3765. package/icons/es/Phidata/style.d.ts +7 -0
  3766. package/icons/es/Phidata/style.js +9 -0
  3767. package/icons/es/Phind/components/Avatar.d.ts +5 -0
  3768. package/icons/es/Phind/components/Avatar.js +25 -0
  3769. package/icons/es/Phind/components/Combine.d.ts +5 -0
  3770. package/icons/es/Phind/components/Combine.js +24 -0
  3771. package/icons/es/Phind/components/Mono.d.ts +3 -0
  3772. package/icons/es/Phind/components/Mono.js +40 -0
  3773. package/icons/es/Phind/components/Text.d.ts +3 -0
  3774. package/icons/es/Phind/components/Text.js +49 -0
  3775. package/icons/es/Phind/index.d.ts +13 -0
  3776. package/icons/es/Phind/index.js +12 -0
  3777. package/icons/es/Phind/style.d.ts +7 -0
  3778. package/icons/es/Phind/style.js +9 -0
  3779. package/icons/es/Pika/components/Avatar.d.ts +5 -0
  3780. package/icons/es/Pika/components/Avatar.js +25 -0
  3781. package/icons/es/Pika/components/Combine.d.ts +5 -0
  3782. package/icons/es/Pika/components/Combine.js +29 -0
  3783. package/icons/es/Pika/components/Mono.d.ts +3 -0
  3784. package/icons/es/Pika/components/Mono.js +40 -0
  3785. package/icons/es/Pika/components/Text.d.ts +3 -0
  3786. package/icons/es/Pika/components/Text.js +39 -0
  3787. package/icons/es/Pika/index.d.ts +13 -0
  3788. package/icons/es/Pika/index.js +12 -0
  3789. package/icons/es/Pika/style.d.ts +7 -0
  3790. package/icons/es/Pika/style.js +9 -0
  3791. package/icons/es/PixVerse/components/Avatar.d.ts +5 -0
  3792. package/icons/es/PixVerse/components/Avatar.js +25 -0
  3793. package/icons/es/PixVerse/components/Color.d.ts +3 -0
  3794. package/icons/es/PixVerse/components/Color.js +89 -0
  3795. package/icons/es/PixVerse/components/Combine.d.ts +7 -0
  3796. package/icons/es/PixVerse/components/Combine.js +32 -0
  3797. package/icons/es/PixVerse/components/Mono.d.ts +3 -0
  3798. package/icons/es/PixVerse/components/Mono.js +44 -0
  3799. package/icons/es/PixVerse/components/Text.d.ts +3 -0
  3800. package/icons/es/PixVerse/components/Text.js +53 -0
  3801. package/icons/es/PixVerse/index.d.ts +16 -0
  3802. package/icons/es/PixVerse/index.js +14 -0
  3803. package/icons/es/PixVerse/style.d.ts +7 -0
  3804. package/icons/es/PixVerse/style.js +9 -0
  3805. package/icons/es/Player2/components/Avatar.d.ts +5 -0
  3806. package/icons/es/Player2/components/Avatar.js +25 -0
  3807. package/icons/es/Player2/components/Color.d.ts +3 -0
  3808. package/icons/es/Player2/components/Color.js +44 -0
  3809. package/icons/es/Player2/components/Combine.d.ts +7 -0
  3810. package/icons/es/Player2/components/Combine.js +32 -0
  3811. package/icons/es/Player2/components/Mono.d.ts +3 -0
  3812. package/icons/es/Player2/components/Mono.js +42 -0
  3813. package/icons/es/Player2/components/Text.d.ts +3 -0
  3814. package/icons/es/Player2/components/Text.js +39 -0
  3815. package/icons/es/Player2/index.d.ts +15 -0
  3816. package/icons/es/Player2/index.js +14 -0
  3817. package/icons/es/Player2/style.d.ts +7 -0
  3818. package/icons/es/Player2/style.js +9 -0
  3819. package/icons/es/Poe/components/Avatar.d.ts +5 -0
  3820. package/icons/es/Poe/components/Avatar.js +25 -0
  3821. package/icons/es/Poe/components/Color.d.ts +3 -0
  3822. package/icons/es/Poe/components/Color.js +87 -0
  3823. package/icons/es/Poe/components/Combine.d.ts +7 -0
  3824. package/icons/es/Poe/components/Combine.js +32 -0
  3825. package/icons/es/Poe/components/Mono.d.ts +3 -0
  3826. package/icons/es/Poe/components/Mono.js +46 -0
  3827. package/icons/es/Poe/components/Text.d.ts +3 -0
  3828. package/icons/es/Poe/components/Text.js +39 -0
  3829. package/icons/es/Poe/index.d.ts +15 -0
  3830. package/icons/es/Poe/index.js +14 -0
  3831. package/icons/es/Poe/style.d.ts +7 -0
  3832. package/icons/es/Poe/style.js +9 -0
  3833. package/icons/es/Pollinations/components/Avatar.d.ts +5 -0
  3834. package/icons/es/Pollinations/components/Avatar.js +25 -0
  3835. package/icons/es/Pollinations/components/Combine.d.ts +5 -0
  3836. package/icons/es/Pollinations/components/Combine.js +26 -0
  3837. package/icons/es/Pollinations/components/Mono.d.ts +3 -0
  3838. package/icons/es/Pollinations/components/Mono.js +40 -0
  3839. package/icons/es/Pollinations/components/Text.d.ts +3 -0
  3840. package/icons/es/Pollinations/components/Text.js +39 -0
  3841. package/icons/es/Pollinations/index.d.ts +13 -0
  3842. package/icons/es/Pollinations/index.js +12 -0
  3843. package/icons/es/Pollinations/style.d.ts +7 -0
  3844. package/icons/es/Pollinations/style.js +9 -0
  3845. package/icons/es/PrunaAI/components/Avatar.d.ts +5 -0
  3846. package/icons/es/PrunaAI/components/Avatar.js +25 -0
  3847. package/icons/es/PrunaAI/components/Color.d.ts +3 -0
  3848. package/icons/es/PrunaAI/components/Color.js +153 -0
  3849. package/icons/es/PrunaAI/components/Combine.d.ts +7 -0
  3850. package/icons/es/PrunaAI/components/Combine.js +32 -0
  3851. package/icons/es/PrunaAI/components/Mono.d.ts +3 -0
  3852. package/icons/es/PrunaAI/components/Mono.js +54 -0
  3853. package/icons/es/PrunaAI/components/Text.d.ts +3 -0
  3854. package/icons/es/PrunaAI/components/Text.js +39 -0
  3855. package/icons/es/PrunaAI/index.d.ts +15 -0
  3856. package/icons/es/PrunaAI/index.js +14 -0
  3857. package/icons/es/PrunaAI/style.d.ts +7 -0
  3858. package/icons/es/PrunaAI/style.js +9 -0
  3859. package/icons/es/PydanticAI/components/Avatar.d.ts +5 -0
  3860. package/icons/es/PydanticAI/components/Avatar.js +25 -0
  3861. package/icons/es/PydanticAI/components/Color.d.ts +3 -0
  3862. package/icons/es/PydanticAI/components/Color.js +54 -0
  3863. package/icons/es/PydanticAI/components/Combine.d.ts +7 -0
  3864. package/icons/es/PydanticAI/components/Combine.js +32 -0
  3865. package/icons/es/PydanticAI/components/Mono.d.ts +3 -0
  3866. package/icons/es/PydanticAI/components/Mono.js +50 -0
  3867. package/icons/es/PydanticAI/components/Text.d.ts +3 -0
  3868. package/icons/es/PydanticAI/components/Text.js +39 -0
  3869. package/icons/es/PydanticAI/index.d.ts +15 -0
  3870. package/icons/es/PydanticAI/index.js +14 -0
  3871. package/icons/es/PydanticAI/style.d.ts +7 -0
  3872. package/icons/es/PydanticAI/style.js +9 -0
  3873. package/icons/es/Qingyan/components/Avatar.d.ts +5 -0
  3874. package/icons/es/Qingyan/components/Avatar.js +25 -0
  3875. package/icons/es/Qingyan/components/Color.d.ts +3 -0
  3876. package/icons/es/Qingyan/components/Color.js +42 -0
  3877. package/icons/es/Qingyan/components/Combine.d.ts +7 -0
  3878. package/icons/es/Qingyan/components/Combine.js +32 -0
  3879. package/icons/es/Qingyan/components/Mono.d.ts +3 -0
  3880. package/icons/es/Qingyan/components/Mono.js +42 -0
  3881. package/icons/es/Qingyan/components/Text.d.ts +3 -0
  3882. package/icons/es/Qingyan/components/Text.js +39 -0
  3883. package/icons/es/Qingyan/index.d.ts +15 -0
  3884. package/icons/es/Qingyan/index.js +14 -0
  3885. package/icons/es/Qingyan/style.d.ts +7 -0
  3886. package/icons/es/Qingyan/style.js +9 -0
  3887. package/icons/es/Qiniu/components/Avatar.d.ts +5 -0
  3888. package/icons/es/Qiniu/components/Avatar.js +25 -0
  3889. package/icons/es/Qiniu/components/Color.d.ts +3 -0
  3890. package/icons/es/Qiniu/components/Color.js +39 -0
  3891. package/icons/es/Qiniu/components/Combine.d.ts +7 -0
  3892. package/icons/es/Qiniu/components/Combine.js +32 -0
  3893. package/icons/es/Qiniu/components/Mono.d.ts +3 -0
  3894. package/icons/es/Qiniu/components/Mono.js +40 -0
  3895. package/icons/es/Qiniu/components/Text.d.ts +3 -0
  3896. package/icons/es/Qiniu/components/Text.js +40 -0
  3897. package/icons/es/Qiniu/index.d.ts +15 -0
  3898. package/icons/es/Qiniu/index.js +14 -0
  3899. package/icons/es/Qiniu/style.d.ts +7 -0
  3900. package/icons/es/Qiniu/style.js +9 -0
  3901. package/icons/es/Qoder/components/Avatar.d.ts +5 -0
  3902. package/icons/es/Qoder/components/Avatar.js +25 -0
  3903. package/icons/es/Qoder/components/Color.d.ts +3 -0
  3904. package/icons/es/Qoder/components/Color.js +42 -0
  3905. package/icons/es/Qoder/components/Combine.d.ts +7 -0
  3906. package/icons/es/Qoder/components/Combine.js +32 -0
  3907. package/icons/es/Qoder/components/Mono.d.ts +3 -0
  3908. package/icons/es/Qoder/components/Mono.js +43 -0
  3909. package/icons/es/Qoder/components/Text.d.ts +3 -0
  3910. package/icons/es/Qoder/components/Text.js +39 -0
  3911. package/icons/es/Qoder/index.d.ts +15 -0
  3912. package/icons/es/Qoder/index.js +14 -0
  3913. package/icons/es/Qoder/style.d.ts +7 -0
  3914. package/icons/es/Qoder/style.js +7 -0
  3915. package/icons/es/Qwen/components/Avatar.d.ts +5 -0
  3916. package/icons/es/Qwen/components/Avatar.js +25 -0
  3917. package/icons/es/Qwen/components/Color.d.ts +3 -0
  3918. package/icons/es/Qwen/components/Color.js +61 -0
  3919. package/icons/es/Qwen/components/Combine.d.ts +7 -0
  3920. package/icons/es/Qwen/components/Combine.js +36 -0
  3921. package/icons/es/Qwen/components/Mono.d.ts +3 -0
  3922. package/icons/es/Qwen/components/Mono.js +40 -0
  3923. package/icons/es/Qwen/components/Text.d.ts +3 -0
  3924. package/icons/es/Qwen/components/Text.js +39 -0
  3925. package/icons/es/Qwen/index.d.ts +16 -0
  3926. package/icons/es/Qwen/index.js +15 -0
  3927. package/icons/es/Qwen/style.d.ts +8 -0
  3928. package/icons/es/Qwen/style.js +10 -0
  3929. package/icons/es/RSSHub/components/Avatar.d.ts +5 -0
  3930. package/icons/es/RSSHub/components/Avatar.js +25 -0
  3931. package/icons/es/RSSHub/components/Color.d.ts +3 -0
  3932. package/icons/es/RSSHub/components/Color.js +51 -0
  3933. package/icons/es/RSSHub/components/Combine.d.ts +7 -0
  3934. package/icons/es/RSSHub/components/Combine.js +32 -0
  3935. package/icons/es/RSSHub/components/Mono.d.ts +3 -0
  3936. package/icons/es/RSSHub/components/Mono.js +52 -0
  3937. package/icons/es/RSSHub/components/Text.d.ts +3 -0
  3938. package/icons/es/RSSHub/components/Text.js +39 -0
  3939. package/icons/es/RSSHub/index.d.ts +15 -0
  3940. package/icons/es/RSSHub/index.js +14 -0
  3941. package/icons/es/RSSHub/style.d.ts +7 -0
  3942. package/icons/es/RSSHub/style.js +9 -0
  3943. package/icons/es/Railway/components/Avatar.d.ts +5 -0
  3944. package/icons/es/Railway/components/Avatar.js +25 -0
  3945. package/icons/es/Railway/components/Combine.d.ts +5 -0
  3946. package/icons/es/Railway/components/Combine.js +26 -0
  3947. package/icons/es/Railway/components/Mono.d.ts +3 -0
  3948. package/icons/es/Railway/components/Mono.js +42 -0
  3949. package/icons/es/Railway/components/Text.d.ts +3 -0
  3950. package/icons/es/Railway/components/Text.js +39 -0
  3951. package/icons/es/Railway/index.d.ts +14 -0
  3952. package/icons/es/Railway/index.js +13 -0
  3953. package/icons/es/Railway/style.d.ts +8 -0
  3954. package/icons/es/Railway/style.js +10 -0
  3955. package/icons/es/Recraft/components/Avatar.d.ts +5 -0
  3956. package/icons/es/Recraft/components/Avatar.js +25 -0
  3957. package/icons/es/Recraft/components/Combine.d.ts +5 -0
  3958. package/icons/es/Recraft/components/Combine.js +32 -0
  3959. package/icons/es/Recraft/components/Mono.d.ts +3 -0
  3960. package/icons/es/Recraft/components/Mono.js +42 -0
  3961. package/icons/es/Recraft/components/Text.d.ts +3 -0
  3962. package/icons/es/Recraft/components/Text.js +39 -0
  3963. package/icons/es/Recraft/index.d.ts +13 -0
  3964. package/icons/es/Recraft/index.js +12 -0
  3965. package/icons/es/Recraft/style.d.ts +7 -0
  3966. package/icons/es/Recraft/style.js +9 -0
  3967. package/icons/es/Relace/components/Avatar.d.ts +5 -0
  3968. package/icons/es/Relace/components/Avatar.js +25 -0
  3969. package/icons/es/Relace/components/Combine.d.ts +5 -0
  3970. package/icons/es/Relace/components/Combine.js +26 -0
  3971. package/icons/es/Relace/components/Mono.d.ts +3 -0
  3972. package/icons/es/Relace/components/Mono.js +40 -0
  3973. package/icons/es/Relace/components/Text.d.ts +3 -0
  3974. package/icons/es/Relace/components/Text.js +39 -0
  3975. package/icons/es/Relace/index.d.ts +13 -0
  3976. package/icons/es/Relace/index.js +12 -0
  3977. package/icons/es/Relace/style.d.ts +7 -0
  3978. package/icons/es/Relace/style.js +9 -0
  3979. package/icons/es/Replicate/components/Avatar.d.ts +5 -0
  3980. package/icons/es/Replicate/components/Avatar.js +25 -0
  3981. package/icons/es/Replicate/components/BrandMono.d.ts +3 -0
  3982. package/icons/es/Replicate/components/BrandMono.js +39 -0
  3983. package/icons/es/Replicate/components/Mono.d.ts +3 -0
  3984. package/icons/es/Replicate/components/Mono.js +40 -0
  3985. package/icons/es/Replicate/index.d.ts +12 -0
  3986. package/icons/es/Replicate/index.js +11 -0
  3987. package/icons/es/Replicate/style.d.ts +7 -0
  3988. package/icons/es/Replicate/style.js +9 -0
  3989. package/icons/es/Replit/components/Avatar.d.ts +5 -0
  3990. package/icons/es/Replit/components/Avatar.js +25 -0
  3991. package/icons/es/Replit/components/Color.d.ts +3 -0
  3992. package/icons/es/Replit/components/Color.js +39 -0
  3993. package/icons/es/Replit/components/Combine.d.ts +7 -0
  3994. package/icons/es/Replit/components/Combine.js +32 -0
  3995. package/icons/es/Replit/components/Mono.d.ts +3 -0
  3996. package/icons/es/Replit/components/Mono.js +40 -0
  3997. package/icons/es/Replit/components/Text.d.ts +3 -0
  3998. package/icons/es/Replit/components/Text.js +39 -0
  3999. package/icons/es/Replit/index.d.ts +15 -0
  4000. package/icons/es/Replit/index.js +14 -0
  4001. package/icons/es/Replit/style.d.ts +7 -0
  4002. package/icons/es/Replit/style.js +9 -0
  4003. package/icons/es/Reve/components/Avatar.d.ts +5 -0
  4004. package/icons/es/Reve/components/Avatar.js +25 -0
  4005. package/icons/es/Reve/components/Combine.d.ts +5 -0
  4006. package/icons/es/Reve/components/Combine.js +26 -0
  4007. package/icons/es/Reve/components/Mono.d.ts +3 -0
  4008. package/icons/es/Reve/components/Mono.js +40 -0
  4009. package/icons/es/Reve/components/Text.d.ts +3 -0
  4010. package/icons/es/Reve/components/Text.js +41 -0
  4011. package/icons/es/Reve/index.d.ts +13 -0
  4012. package/icons/es/Reve/index.js +12 -0
  4013. package/icons/es/Reve/style.d.ts +7 -0
  4014. package/icons/es/Reve/style.js +9 -0
  4015. package/icons/es/RooCode/components/Avatar.d.ts +5 -0
  4016. package/icons/es/RooCode/components/Avatar.js +25 -0
  4017. package/icons/es/RooCode/components/Combine.d.ts +5 -0
  4018. package/icons/es/RooCode/components/Combine.js +26 -0
  4019. package/icons/es/RooCode/components/Mono.d.ts +3 -0
  4020. package/icons/es/RooCode/components/Mono.js +40 -0
  4021. package/icons/es/RooCode/components/Text.d.ts +3 -0
  4022. package/icons/es/RooCode/components/Text.js +39 -0
  4023. package/icons/es/RooCode/index.d.ts +13 -0
  4024. package/icons/es/RooCode/index.js +12 -0
  4025. package/icons/es/RooCode/style.d.ts +7 -0
  4026. package/icons/es/RooCode/style.js +9 -0
  4027. package/icons/es/Runway/components/Avatar.d.ts +5 -0
  4028. package/icons/es/Runway/components/Avatar.js +25 -0
  4029. package/icons/es/Runway/components/Combine.d.ts +5 -0
  4030. package/icons/es/Runway/components/Combine.js +26 -0
  4031. package/icons/es/Runway/components/Mono.d.ts +3 -0
  4032. package/icons/es/Runway/components/Mono.js +40 -0
  4033. package/icons/es/Runway/components/Text.d.ts +3 -0
  4034. package/icons/es/Runway/components/Text.js +39 -0
  4035. package/icons/es/Runway/index.d.ts +13 -0
  4036. package/icons/es/Runway/index.js +12 -0
  4037. package/icons/es/Runway/style.d.ts +7 -0
  4038. package/icons/es/Runway/style.js +9 -0
  4039. package/icons/es/Rwkv/components/Avatar.d.ts +5 -0
  4040. package/icons/es/Rwkv/components/Avatar.js +25 -0
  4041. package/icons/es/Rwkv/components/Color.d.ts +3 -0
  4042. package/icons/es/Rwkv/components/Color.js +62 -0
  4043. package/icons/es/Rwkv/components/Combine.d.ts +7 -0
  4044. package/icons/es/Rwkv/components/Combine.js +36 -0
  4045. package/icons/es/Rwkv/components/Mono.d.ts +3 -0
  4046. package/icons/es/Rwkv/components/Mono.js +58 -0
  4047. package/icons/es/Rwkv/components/Text.d.ts +3 -0
  4048. package/icons/es/Rwkv/components/Text.js +39 -0
  4049. package/icons/es/Rwkv/index.d.ts +16 -0
  4050. package/icons/es/Rwkv/index.js +15 -0
  4051. package/icons/es/Rwkv/style.d.ts +8 -0
  4052. package/icons/es/Rwkv/style.js +10 -0
  4053. package/icons/es/SambaNova/components/Avatar.d.ts +5 -0
  4054. package/icons/es/SambaNova/components/Avatar.js +25 -0
  4055. package/icons/es/SambaNova/components/Color.d.ts +3 -0
  4056. package/icons/es/SambaNova/components/Color.js +45 -0
  4057. package/icons/es/SambaNova/components/Combine.d.ts +7 -0
  4058. package/icons/es/SambaNova/components/Combine.js +32 -0
  4059. package/icons/es/SambaNova/components/Mono.d.ts +3 -0
  4060. package/icons/es/SambaNova/components/Mono.js +44 -0
  4061. package/icons/es/SambaNova/components/Text.d.ts +3 -0
  4062. package/icons/es/SambaNova/components/Text.js +39 -0
  4063. package/icons/es/SambaNova/index.d.ts +15 -0
  4064. package/icons/es/SambaNova/index.js +14 -0
  4065. package/icons/es/SambaNova/style.d.ts +7 -0
  4066. package/icons/es/SambaNova/style.js +9 -0
  4067. package/icons/es/Search1API/components/Avatar.d.ts +5 -0
  4068. package/icons/es/Search1API/components/Avatar.js +25 -0
  4069. package/icons/es/Search1API/components/Color.d.ts +3 -0
  4070. package/icons/es/Search1API/components/Color.js +41 -0
  4071. package/icons/es/Search1API/components/Combine.d.ts +7 -0
  4072. package/icons/es/Search1API/components/Combine.js +32 -0
  4073. package/icons/es/Search1API/components/Inner.d.ts +3 -0
  4074. package/icons/es/Search1API/components/Inner.js +40 -0
  4075. package/icons/es/Search1API/components/Mono.d.ts +3 -0
  4076. package/icons/es/Search1API/components/Mono.js +41 -0
  4077. package/icons/es/Search1API/components/Text.d.ts +3 -0
  4078. package/icons/es/Search1API/components/Text.js +39 -0
  4079. package/icons/es/Search1API/index.d.ts +15 -0
  4080. package/icons/es/Search1API/index.js +14 -0
  4081. package/icons/es/Search1API/style.d.ts +7 -0
  4082. package/icons/es/Search1API/style.js +9 -0
  4083. package/icons/es/SearchApi/components/Avatar.d.ts +5 -0
  4084. package/icons/es/SearchApi/components/Avatar.js +25 -0
  4085. package/icons/es/SearchApi/components/Combine.d.ts +5 -0
  4086. package/icons/es/SearchApi/components/Combine.js +29 -0
  4087. package/icons/es/SearchApi/components/Mono.d.ts +3 -0
  4088. package/icons/es/SearchApi/components/Mono.js +40 -0
  4089. package/icons/es/SearchApi/components/Text.d.ts +3 -0
  4090. package/icons/es/SearchApi/components/Text.js +39 -0
  4091. package/icons/es/SearchApi/index.d.ts +13 -0
  4092. package/icons/es/SearchApi/index.js +12 -0
  4093. package/icons/es/SearchApi/style.d.ts +7 -0
  4094. package/icons/es/SearchApi/style.js +9 -0
  4095. package/icons/es/SenseNova/components/Avatar.d.ts +5 -0
  4096. package/icons/es/SenseNova/components/Avatar.js +25 -0
  4097. package/icons/es/SenseNova/components/BrandColor.d.ts +3 -0
  4098. package/icons/es/SenseNova/components/BrandColor.js +93 -0
  4099. package/icons/es/SenseNova/components/BrandMono.d.ts +3 -0
  4100. package/icons/es/SenseNova/components/BrandMono.js +76 -0
  4101. package/icons/es/SenseNova/components/Color.d.ts +3 -0
  4102. package/icons/es/SenseNova/components/Color.js +51 -0
  4103. package/icons/es/SenseNova/components/Combine.d.ts +7 -0
  4104. package/icons/es/SenseNova/components/Combine.js +32 -0
  4105. package/icons/es/SenseNova/components/Mono.d.ts +3 -0
  4106. package/icons/es/SenseNova/components/Mono.js +50 -0
  4107. package/icons/es/SenseNova/components/Text.d.ts +3 -0
  4108. package/icons/es/SenseNova/components/Text.js +49 -0
  4109. package/icons/es/SenseNova/index.d.ts +19 -0
  4110. package/icons/es/SenseNova/index.js +18 -0
  4111. package/icons/es/SenseNova/style.d.ts +7 -0
  4112. package/icons/es/SenseNova/style.js +9 -0
  4113. package/icons/es/SiliconCloud/components/Avatar.d.ts +5 -0
  4114. package/icons/es/SiliconCloud/components/Avatar.js +25 -0
  4115. package/icons/es/SiliconCloud/components/Color.d.ts +3 -0
  4116. package/icons/es/SiliconCloud/components/Color.js +41 -0
  4117. package/icons/es/SiliconCloud/components/Combine.d.ts +7 -0
  4118. package/icons/es/SiliconCloud/components/Combine.js +36 -0
  4119. package/icons/es/SiliconCloud/components/Mono.d.ts +3 -0
  4120. package/icons/es/SiliconCloud/components/Mono.js +41 -0
  4121. package/icons/es/SiliconCloud/components/Text.d.ts +3 -0
  4122. package/icons/es/SiliconCloud/components/Text.js +40 -0
  4123. package/icons/es/SiliconCloud/index.d.ts +15 -0
  4124. package/icons/es/SiliconCloud/index.js +14 -0
  4125. package/icons/es/SiliconCloud/style.d.ts +7 -0
  4126. package/icons/es/SiliconCloud/style.js +9 -0
  4127. package/icons/es/SillyTavern/components/Avatar.d.ts +5 -0
  4128. package/icons/es/SillyTavern/components/Avatar.js +25 -0
  4129. package/icons/es/SillyTavern/components/Color.d.ts +3 -0
  4130. package/icons/es/SillyTavern/components/Color.js +42 -0
  4131. package/icons/es/SillyTavern/components/Combine.d.ts +7 -0
  4132. package/icons/es/SillyTavern/components/Combine.js +32 -0
  4133. package/icons/es/SillyTavern/components/Mono.d.ts +3 -0
  4134. package/icons/es/SillyTavern/components/Mono.js +45 -0
  4135. package/icons/es/SillyTavern/components/Text.d.ts +3 -0
  4136. package/icons/es/SillyTavern/components/Text.js +39 -0
  4137. package/icons/es/SillyTavern/index.d.ts +15 -0
  4138. package/icons/es/SillyTavern/index.js +14 -0
  4139. package/icons/es/SillyTavern/style.d.ts +7 -0
  4140. package/icons/es/SillyTavern/style.js +9 -0
  4141. package/icons/es/Skywork/components/Avatar.d.ts +5 -0
  4142. package/icons/es/Skywork/components/Avatar.js +25 -0
  4143. package/icons/es/Skywork/components/Color.d.ts +3 -0
  4144. package/icons/es/Skywork/components/Color.js +42 -0
  4145. package/icons/es/Skywork/components/Combine.d.ts +7 -0
  4146. package/icons/es/Skywork/components/Combine.js +32 -0
  4147. package/icons/es/Skywork/components/Mono.d.ts +3 -0
  4148. package/icons/es/Skywork/components/Mono.js +42 -0
  4149. package/icons/es/Skywork/components/Text.d.ts +3 -0
  4150. package/icons/es/Skywork/components/Text.js +39 -0
  4151. package/icons/es/Skywork/index.d.ts +15 -0
  4152. package/icons/es/Skywork/index.js +14 -0
  4153. package/icons/es/Skywork/style.d.ts +7 -0
  4154. package/icons/es/Skywork/style.js +9 -0
  4155. package/icons/es/Slock/components/Avatar.d.ts +5 -0
  4156. package/icons/es/Slock/components/Avatar.js +25 -0
  4157. package/icons/es/Slock/components/Combine.d.ts +5 -0
  4158. package/icons/es/Slock/components/Combine.js +29 -0
  4159. package/icons/es/Slock/components/Inner.d.ts +3 -0
  4160. package/icons/es/Slock/components/Inner.js +42 -0
  4161. package/icons/es/Slock/components/Mono.d.ts +3 -0
  4162. package/icons/es/Slock/components/Mono.js +40 -0
  4163. package/icons/es/Slock/components/Text.d.ts +3 -0
  4164. package/icons/es/Slock/components/Text.js +39 -0
  4165. package/icons/es/Slock/index.d.ts +13 -0
  4166. package/icons/es/Slock/index.js +12 -0
  4167. package/icons/es/Slock/style.d.ts +7 -0
  4168. package/icons/es/Slock/style.js +9 -0
  4169. package/icons/es/Smithery/components/Avatar.d.ts +5 -0
  4170. package/icons/es/Smithery/components/Avatar.js +25 -0
  4171. package/icons/es/Smithery/components/Color.d.ts +3 -0
  4172. package/icons/es/Smithery/components/Color.js +42 -0
  4173. package/icons/es/Smithery/components/Combine.d.ts +7 -0
  4174. package/icons/es/Smithery/components/Combine.js +32 -0
  4175. package/icons/es/Smithery/components/Mono.d.ts +3 -0
  4176. package/icons/es/Smithery/components/Mono.js +40 -0
  4177. package/icons/es/Smithery/components/Text.d.ts +3 -0
  4178. package/icons/es/Smithery/components/Text.js +39 -0
  4179. package/icons/es/Smithery/index.d.ts +15 -0
  4180. package/icons/es/Smithery/index.js +14 -0
  4181. package/icons/es/Smithery/style.d.ts +7 -0
  4182. package/icons/es/Smithery/style.js +9 -0
  4183. package/icons/es/Snowflake/components/Avatar.d.ts +5 -0
  4184. package/icons/es/Snowflake/components/Avatar.js +25 -0
  4185. package/icons/es/Snowflake/components/Color.d.ts +3 -0
  4186. package/icons/es/Snowflake/components/Color.js +41 -0
  4187. package/icons/es/Snowflake/components/Combine.d.ts +7 -0
  4188. package/icons/es/Snowflake/components/Combine.js +32 -0
  4189. package/icons/es/Snowflake/components/Mono.d.ts +3 -0
  4190. package/icons/es/Snowflake/components/Mono.js +41 -0
  4191. package/icons/es/Snowflake/components/Text.d.ts +3 -0
  4192. package/icons/es/Snowflake/components/Text.js +40 -0
  4193. package/icons/es/Snowflake/index.d.ts +15 -0
  4194. package/icons/es/Snowflake/index.js +14 -0
  4195. package/icons/es/Snowflake/style.d.ts +7 -0
  4196. package/icons/es/Snowflake/style.js +9 -0
  4197. package/icons/es/SophNet/components/Avatar.d.ts +5 -0
  4198. package/icons/es/SophNet/components/Avatar.js +25 -0
  4199. package/icons/es/SophNet/components/Color.d.ts +3 -0
  4200. package/icons/es/SophNet/components/Color.js +48 -0
  4201. package/icons/es/SophNet/components/Combine.d.ts +7 -0
  4202. package/icons/es/SophNet/components/Combine.js +32 -0
  4203. package/icons/es/SophNet/components/Mono.d.ts +3 -0
  4204. package/icons/es/SophNet/components/Mono.js +46 -0
  4205. package/icons/es/SophNet/components/Text.d.ts +3 -0
  4206. package/icons/es/SophNet/components/Text.js +39 -0
  4207. package/icons/es/SophNet/index.d.ts +15 -0
  4208. package/icons/es/SophNet/index.js +14 -0
  4209. package/icons/es/SophNet/style.d.ts +7 -0
  4210. package/icons/es/SophNet/style.js +9 -0
  4211. package/icons/es/Sora/components/Avatar.d.ts +5 -0
  4212. package/icons/es/Sora/components/Avatar.js +25 -0
  4213. package/icons/es/Sora/components/Color.d.ts +3 -0
  4214. package/icons/es/Sora/components/Color.js +155 -0
  4215. package/icons/es/Sora/components/Combine.d.ts +7 -0
  4216. package/icons/es/Sora/components/Combine.js +32 -0
  4217. package/icons/es/Sora/components/Inner.d.ts +3 -0
  4218. package/icons/es/Sora/components/Inner.js +138 -0
  4219. package/icons/es/Sora/components/Mono.d.ts +3 -0
  4220. package/icons/es/Sora/components/Mono.js +51 -0
  4221. package/icons/es/Sora/components/Text.d.ts +3 -0
  4222. package/icons/es/Sora/components/Text.js +39 -0
  4223. package/icons/es/Sora/index.d.ts +16 -0
  4224. package/icons/es/Sora/index.js +15 -0
  4225. package/icons/es/Sora/style.d.ts +8 -0
  4226. package/icons/es/Sora/style.js +10 -0
  4227. package/icons/es/Spark/components/Avatar.d.ts +5 -0
  4228. package/icons/es/Spark/components/Avatar.js +25 -0
  4229. package/icons/es/Spark/components/Color.d.ts +3 -0
  4230. package/icons/es/Spark/components/Color.js +47 -0
  4231. package/icons/es/Spark/components/Combine.d.ts +7 -0
  4232. package/icons/es/Spark/components/Combine.js +32 -0
  4233. package/icons/es/Spark/components/Mono.d.ts +3 -0
  4234. package/icons/es/Spark/components/Mono.js +42 -0
  4235. package/icons/es/Spark/components/Text.d.ts +3 -0
  4236. package/icons/es/Spark/components/Text.js +48 -0
  4237. package/icons/es/Spark/index.d.ts +15 -0
  4238. package/icons/es/Spark/index.js +14 -0
  4239. package/icons/es/Spark/style.d.ts +7 -0
  4240. package/icons/es/Spark/style.js +9 -0
  4241. package/icons/es/SpeedAI/components/Avatar.d.ts +5 -0
  4242. package/icons/es/SpeedAI/components/Avatar.js +25 -0
  4243. package/icons/es/SpeedAI/components/Color.d.ts +3 -0
  4244. package/icons/es/SpeedAI/components/Color.js +39 -0
  4245. package/icons/es/SpeedAI/components/Combine.d.ts +7 -0
  4246. package/icons/es/SpeedAI/components/Combine.js +32 -0
  4247. package/icons/es/SpeedAI/components/Mono.d.ts +3 -0
  4248. package/icons/es/SpeedAI/components/Mono.js +40 -0
  4249. package/icons/es/SpeedAI/components/Text.d.ts +3 -0
  4250. package/icons/es/SpeedAI/components/Text.js +39 -0
  4251. package/icons/es/SpeedAI/index.d.ts +15 -0
  4252. package/icons/es/SpeedAI/index.js +14 -0
  4253. package/icons/es/SpeedAI/style.d.ts +7 -0
  4254. package/icons/es/SpeedAI/style.js +9 -0
  4255. package/icons/es/Stability/components/Avatar.d.ts +5 -0
  4256. package/icons/es/Stability/components/Avatar.js +25 -0
  4257. package/icons/es/Stability/components/BrandColor.d.ts +3 -0
  4258. package/icons/es/Stability/components/BrandColor.js +60 -0
  4259. package/icons/es/Stability/components/BrandMono.d.ts +3 -0
  4260. package/icons/es/Stability/components/BrandMono.js +41 -0
  4261. package/icons/es/Stability/components/Color.d.ts +3 -0
  4262. package/icons/es/Stability/components/Color.js +61 -0
  4263. package/icons/es/Stability/components/Combine.d.ts +7 -0
  4264. package/icons/es/Stability/components/Combine.js +32 -0
  4265. package/icons/es/Stability/components/Mono.d.ts +3 -0
  4266. package/icons/es/Stability/components/Mono.js +42 -0
  4267. package/icons/es/Stability/components/Text.d.ts +3 -0
  4268. package/icons/es/Stability/components/Text.js +39 -0
  4269. package/icons/es/Stability/index.d.ts +20 -0
  4270. package/icons/es/Stability/index.js +19 -0
  4271. package/icons/es/Stability/style.d.ts +8 -0
  4272. package/icons/es/Stability/style.js +10 -0
  4273. package/icons/es/StateCloud/components/Avatar.d.ts +5 -0
  4274. package/icons/es/StateCloud/components/Avatar.js +25 -0
  4275. package/icons/es/StateCloud/components/Color.d.ts +3 -0
  4276. package/icons/es/StateCloud/components/Color.js +41 -0
  4277. package/icons/es/StateCloud/components/Combine.d.ts +7 -0
  4278. package/icons/es/StateCloud/components/Combine.js +32 -0
  4279. package/icons/es/StateCloud/components/Mono.d.ts +3 -0
  4280. package/icons/es/StateCloud/components/Mono.js +41 -0
  4281. package/icons/es/StateCloud/components/Text.d.ts +3 -0
  4282. package/icons/es/StateCloud/components/Text.js +40 -0
  4283. package/icons/es/StateCloud/index.d.ts +15 -0
  4284. package/icons/es/StateCloud/index.js +14 -0
  4285. package/icons/es/StateCloud/style.d.ts +7 -0
  4286. package/icons/es/StateCloud/style.js +9 -0
  4287. package/icons/es/Stepfun/components/Avatar.d.ts +5 -0
  4288. package/icons/es/Stepfun/components/Avatar.js +25 -0
  4289. package/icons/es/Stepfun/components/Color.d.ts +3 -0
  4290. package/icons/es/Stepfun/components/Color.js +59 -0
  4291. package/icons/es/Stepfun/components/Combine.d.ts +7 -0
  4292. package/icons/es/Stepfun/components/Combine.js +36 -0
  4293. package/icons/es/Stepfun/components/Mono.d.ts +3 -0
  4294. package/icons/es/Stepfun/components/Mono.js +40 -0
  4295. package/icons/es/Stepfun/components/Text.d.ts +3 -0
  4296. package/icons/es/Stepfun/components/Text.js +48 -0
  4297. package/icons/es/Stepfun/index.d.ts +16 -0
  4298. package/icons/es/Stepfun/index.js +15 -0
  4299. package/icons/es/Stepfun/style.d.ts +8 -0
  4300. package/icons/es/Stepfun/style.js +10 -0
  4301. package/icons/es/Straico/components/Avatar.d.ts +5 -0
  4302. package/icons/es/Straico/components/Avatar.js +25 -0
  4303. package/icons/es/Straico/components/Color.d.ts +3 -0
  4304. package/icons/es/Straico/components/Color.js +39 -0
  4305. package/icons/es/Straico/components/Combine.d.ts +7 -0
  4306. package/icons/es/Straico/components/Combine.js +36 -0
  4307. package/icons/es/Straico/components/Mono.d.ts +3 -0
  4308. package/icons/es/Straico/components/Mono.js +40 -0
  4309. package/icons/es/Straico/components/Text.d.ts +3 -0
  4310. package/icons/es/Straico/components/Text.js +40 -0
  4311. package/icons/es/Straico/index.d.ts +15 -0
  4312. package/icons/es/Straico/index.js +14 -0
  4313. package/icons/es/Straico/style.d.ts +7 -0
  4314. package/icons/es/Straico/style.js +9 -0
  4315. package/icons/es/StreamLake/components/Avatar.d.ts +5 -0
  4316. package/icons/es/StreamLake/components/Avatar.js +25 -0
  4317. package/icons/es/StreamLake/components/Color.d.ts +3 -0
  4318. package/icons/es/StreamLake/components/Color.js +39 -0
  4319. package/icons/es/StreamLake/components/Combine.d.ts +7 -0
  4320. package/icons/es/StreamLake/components/Combine.js +32 -0
  4321. package/icons/es/StreamLake/components/Mono.d.ts +3 -0
  4322. package/icons/es/StreamLake/components/Mono.js +40 -0
  4323. package/icons/es/StreamLake/components/Text.d.ts +3 -0
  4324. package/icons/es/StreamLake/components/Text.js +39 -0
  4325. package/icons/es/StreamLake/index.d.ts +15 -0
  4326. package/icons/es/StreamLake/index.js +14 -0
  4327. package/icons/es/StreamLake/style.d.ts +7 -0
  4328. package/icons/es/StreamLake/style.js +9 -0
  4329. package/icons/es/SubModel/components/Avatar.d.ts +5 -0
  4330. package/icons/es/SubModel/components/Avatar.js +25 -0
  4331. package/icons/es/SubModel/components/Color.d.ts +3 -0
  4332. package/icons/es/SubModel/components/Color.js +100 -0
  4333. package/icons/es/SubModel/components/Combine.d.ts +7 -0
  4334. package/icons/es/SubModel/components/Combine.js +36 -0
  4335. package/icons/es/SubModel/components/Mono.d.ts +3 -0
  4336. package/icons/es/SubModel/components/Mono.js +41 -0
  4337. package/icons/es/SubModel/components/Text.d.ts +3 -0
  4338. package/icons/es/SubModel/components/Text.js +39 -0
  4339. package/icons/es/SubModel/index.d.ts +15 -0
  4340. package/icons/es/SubModel/index.js +14 -0
  4341. package/icons/es/SubModel/style.d.ts +7 -0
  4342. package/icons/es/SubModel/style.js +9 -0
  4343. package/icons/es/Suno/components/Avatar.d.ts +5 -0
  4344. package/icons/es/Suno/components/Avatar.js +25 -0
  4345. package/icons/es/Suno/components/Combine.d.ts +5 -0
  4346. package/icons/es/Suno/components/Combine.js +26 -0
  4347. package/icons/es/Suno/components/Mono.d.ts +3 -0
  4348. package/icons/es/Suno/components/Mono.js +40 -0
  4349. package/icons/es/Suno/components/Text.d.ts +3 -0
  4350. package/icons/es/Suno/components/Text.js +39 -0
  4351. package/icons/es/Suno/index.d.ts +13 -0
  4352. package/icons/es/Suno/index.js +12 -0
  4353. package/icons/es/Suno/style.d.ts +7 -0
  4354. package/icons/es/Suno/style.js +9 -0
  4355. package/icons/es/Sync/components/Avatar.d.ts +5 -0
  4356. package/icons/es/Sync/components/Avatar.js +25 -0
  4357. package/icons/es/Sync/components/Combine.d.ts +5 -0
  4358. package/icons/es/Sync/components/Combine.js +29 -0
  4359. package/icons/es/Sync/components/Mono.d.ts +3 -0
  4360. package/icons/es/Sync/components/Mono.js +40 -0
  4361. package/icons/es/Sync/components/Text.d.ts +3 -0
  4362. package/icons/es/Sync/components/Text.js +39 -0
  4363. package/icons/es/Sync/index.d.ts +13 -0
  4364. package/icons/es/Sync/index.js +12 -0
  4365. package/icons/es/Sync/style.d.ts +7 -0
  4366. package/icons/es/Sync/style.js +9 -0
  4367. package/icons/es/TII/components/Avatar.d.ts +5 -0
  4368. package/icons/es/TII/components/Avatar.js +25 -0
  4369. package/icons/es/TII/components/Color.d.ts +3 -0
  4370. package/icons/es/TII/components/Color.js +42 -0
  4371. package/icons/es/TII/components/Combine.d.ts +7 -0
  4372. package/icons/es/TII/components/Combine.js +32 -0
  4373. package/icons/es/TII/components/Mono.d.ts +3 -0
  4374. package/icons/es/TII/components/Mono.js +42 -0
  4375. package/icons/es/TII/components/Text.d.ts +3 -0
  4376. package/icons/es/TII/components/Text.js +39 -0
  4377. package/icons/es/TII/index.d.ts +15 -0
  4378. package/icons/es/TII/index.js +14 -0
  4379. package/icons/es/TII/style.d.ts +7 -0
  4380. package/icons/es/TII/style.js +9 -0
  4381. package/icons/es/Targon/components/Avatar.d.ts +5 -0
  4382. package/icons/es/Targon/components/Avatar.js +25 -0
  4383. package/icons/es/Targon/components/Color.d.ts +3 -0
  4384. package/icons/es/Targon/components/Color.js +44 -0
  4385. package/icons/es/Targon/components/Combine.d.ts +7 -0
  4386. package/icons/es/Targon/components/Combine.js +32 -0
  4387. package/icons/es/Targon/components/Inner.d.ts +3 -0
  4388. package/icons/es/Targon/components/Inner.js +41 -0
  4389. package/icons/es/Targon/components/Mono.d.ts +3 -0
  4390. package/icons/es/Targon/components/Mono.js +41 -0
  4391. package/icons/es/Targon/components/Text.d.ts +3 -0
  4392. package/icons/es/Targon/components/Text.js +39 -0
  4393. package/icons/es/Targon/index.d.ts +15 -0
  4394. package/icons/es/Targon/index.js +14 -0
  4395. package/icons/es/Targon/style.d.ts +7 -0
  4396. package/icons/es/Targon/style.js +9 -0
  4397. package/icons/es/Tavily/components/Avatar.d.ts +5 -0
  4398. package/icons/es/Tavily/components/Avatar.js +25 -0
  4399. package/icons/es/Tavily/components/Color.d.ts +3 -0
  4400. package/icons/es/Tavily/components/Color.js +54 -0
  4401. package/icons/es/Tavily/components/Combine.d.ts +7 -0
  4402. package/icons/es/Tavily/components/Combine.js +32 -0
  4403. package/icons/es/Tavily/components/Mono.d.ts +3 -0
  4404. package/icons/es/Tavily/components/Mono.js +40 -0
  4405. package/icons/es/Tavily/components/Text.d.ts +3 -0
  4406. package/icons/es/Tavily/components/Text.js +39 -0
  4407. package/icons/es/Tavily/index.d.ts +15 -0
  4408. package/icons/es/Tavily/index.js +14 -0
  4409. package/icons/es/Tavily/style.d.ts +7 -0
  4410. package/icons/es/Tavily/style.js +9 -0
  4411. package/icons/es/Tencent/components/Avatar.d.ts +5 -0
  4412. package/icons/es/Tencent/components/Avatar.js +25 -0
  4413. package/icons/es/Tencent/components/BrandColor.d.ts +3 -0
  4414. package/icons/es/Tencent/components/BrandColor.js +39 -0
  4415. package/icons/es/Tencent/components/BrandMono.d.ts +3 -0
  4416. package/icons/es/Tencent/components/BrandMono.js +39 -0
  4417. package/icons/es/Tencent/components/Color.d.ts +3 -0
  4418. package/icons/es/Tencent/components/Color.js +40 -0
  4419. package/icons/es/Tencent/components/Mono.d.ts +3 -0
  4420. package/icons/es/Tencent/components/Mono.js +40 -0
  4421. package/icons/es/Tencent/components/Text.d.ts +3 -0
  4422. package/icons/es/Tencent/components/Text.js +39 -0
  4423. package/icons/es/Tencent/components/TextCn.d.ts +3 -0
  4424. package/icons/es/Tencent/components/TextCn.js +39 -0
  4425. package/icons/es/Tencent/index.d.ts +19 -0
  4426. package/icons/es/Tencent/index.js +18 -0
  4427. package/icons/es/Tencent/style.d.ts +5 -0
  4428. package/icons/es/Tencent/style.js +7 -0
  4429. package/icons/es/TencentCloud/components/Avatar.d.ts +5 -0
  4430. package/icons/es/TencentCloud/components/Avatar.js +25 -0
  4431. package/icons/es/TencentCloud/components/Color.d.ts +3 -0
  4432. package/icons/es/TencentCloud/components/Color.js +45 -0
  4433. package/icons/es/TencentCloud/components/Combine.d.ts +7 -0
  4434. package/icons/es/TencentCloud/components/Combine.js +32 -0
  4435. package/icons/es/TencentCloud/components/Mono.d.ts +3 -0
  4436. package/icons/es/TencentCloud/components/Mono.js +44 -0
  4437. package/icons/es/TencentCloud/components/Text.d.ts +3 -0
  4438. package/icons/es/TencentCloud/components/Text.js +53 -0
  4439. package/icons/es/TencentCloud/index.d.ts +15 -0
  4440. package/icons/es/TencentCloud/index.js +14 -0
  4441. package/icons/es/TencentCloud/style.d.ts +7 -0
  4442. package/icons/es/TencentCloud/style.js +9 -0
  4443. package/icons/es/Tiangong/components/Avatar.d.ts +5 -0
  4444. package/icons/es/Tiangong/components/Avatar.js +25 -0
  4445. package/icons/es/Tiangong/components/Color.d.ts +3 -0
  4446. package/icons/es/Tiangong/components/Color.js +98 -0
  4447. package/icons/es/Tiangong/components/Combine.d.ts +7 -0
  4448. package/icons/es/Tiangong/components/Combine.js +32 -0
  4449. package/icons/es/Tiangong/components/Mono.d.ts +3 -0
  4450. package/icons/es/Tiangong/components/Mono.js +44 -0
  4451. package/icons/es/Tiangong/components/Text.d.ts +3 -0
  4452. package/icons/es/Tiangong/components/Text.js +39 -0
  4453. package/icons/es/Tiangong/index.d.ts +16 -0
  4454. package/icons/es/Tiangong/index.js +15 -0
  4455. package/icons/es/Tiangong/style.d.ts +8 -0
  4456. package/icons/es/Tiangong/style.js +10 -0
  4457. package/icons/es/Together/components/Avatar.d.ts +5 -0
  4458. package/icons/es/Together/components/Avatar.js +25 -0
  4459. package/icons/es/Together/components/Color.d.ts +3 -0
  4460. package/icons/es/Together/components/Color.js +45 -0
  4461. package/icons/es/Together/components/Combine.d.ts +7 -0
  4462. package/icons/es/Together/components/Combine.js +32 -0
  4463. package/icons/es/Together/components/Mono.d.ts +3 -0
  4464. package/icons/es/Together/components/Mono.js +44 -0
  4465. package/icons/es/Together/components/Text.d.ts +3 -0
  4466. package/icons/es/Together/components/Text.js +50 -0
  4467. package/icons/es/Together/index.d.ts +15 -0
  4468. package/icons/es/Together/index.js +14 -0
  4469. package/icons/es/Together/style.d.ts +7 -0
  4470. package/icons/es/Together/style.js +9 -0
  4471. package/icons/es/TopazLabs/components/Avatar.d.ts +5 -0
  4472. package/icons/es/TopazLabs/components/Avatar.js +25 -0
  4473. package/icons/es/TopazLabs/components/Combine.d.ts +5 -0
  4474. package/icons/es/TopazLabs/components/Combine.js +29 -0
  4475. package/icons/es/TopazLabs/components/Mono.d.ts +3 -0
  4476. package/icons/es/TopazLabs/components/Mono.js +40 -0
  4477. package/icons/es/TopazLabs/components/Text.d.ts +3 -0
  4478. package/icons/es/TopazLabs/components/Text.js +47 -0
  4479. package/icons/es/TopazLabs/index.d.ts +13 -0
  4480. package/icons/es/TopazLabs/index.js +12 -0
  4481. package/icons/es/TopazLabs/style.d.ts +7 -0
  4482. package/icons/es/TopazLabs/style.js +9 -0
  4483. package/icons/es/Trae/components/Avatar.d.ts +5 -0
  4484. package/icons/es/Trae/components/Avatar.js +25 -0
  4485. package/icons/es/Trae/components/Color.d.ts +3 -0
  4486. package/icons/es/Trae/components/Color.js +39 -0
  4487. package/icons/es/Trae/components/Combine.d.ts +7 -0
  4488. package/icons/es/Trae/components/Combine.js +32 -0
  4489. package/icons/es/Trae/components/Mono.d.ts +3 -0
  4490. package/icons/es/Trae/components/Mono.js +40 -0
  4491. package/icons/es/Trae/components/Text.d.ts +3 -0
  4492. package/icons/es/Trae/components/Text.js +39 -0
  4493. package/icons/es/Trae/index.d.ts +15 -0
  4494. package/icons/es/Trae/index.js +14 -0
  4495. package/icons/es/Trae/style.d.ts +7 -0
  4496. package/icons/es/Trae/style.js +9 -0
  4497. package/icons/es/Tripo/components/Avatar.d.ts +5 -0
  4498. package/icons/es/Tripo/components/Avatar.js +25 -0
  4499. package/icons/es/Tripo/components/Color.d.ts +3 -0
  4500. package/icons/es/Tripo/components/Color.js +43 -0
  4501. package/icons/es/Tripo/components/Combine.d.ts +7 -0
  4502. package/icons/es/Tripo/components/Combine.js +32 -0
  4503. package/icons/es/Tripo/components/Mono.d.ts +3 -0
  4504. package/icons/es/Tripo/components/Mono.js +42 -0
  4505. package/icons/es/Tripo/components/Text.d.ts +3 -0
  4506. package/icons/es/Tripo/components/Text.js +39 -0
  4507. package/icons/es/Tripo/index.d.ts +15 -0
  4508. package/icons/es/Tripo/index.js +14 -0
  4509. package/icons/es/Tripo/style.d.ts +7 -0
  4510. package/icons/es/Tripo/style.js +9 -0
  4511. package/icons/es/TuriX/components/Avatar.d.ts +5 -0
  4512. package/icons/es/TuriX/components/Avatar.js +25 -0
  4513. package/icons/es/TuriX/components/Combine.d.ts +4 -0
  4514. package/icons/es/TuriX/components/Combine.js +26 -0
  4515. package/icons/es/TuriX/components/Mono.d.ts +3 -0
  4516. package/icons/es/TuriX/components/Mono.js +40 -0
  4517. package/icons/es/TuriX/components/Text.d.ts +3 -0
  4518. package/icons/es/TuriX/components/Text.js +40 -0
  4519. package/icons/es/TuriX/index.d.ts +14 -0
  4520. package/icons/es/TuriX/index.js +13 -0
  4521. package/icons/es/TuriX/style.d.ts +8 -0
  4522. package/icons/es/TuriX/style.js +10 -0
  4523. package/icons/es/Udio/components/Avatar.d.ts +5 -0
  4524. package/icons/es/Udio/components/Avatar.js +25 -0
  4525. package/icons/es/Udio/components/Color.d.ts +3 -0
  4526. package/icons/es/Udio/components/Color.js +39 -0
  4527. package/icons/es/Udio/components/Combine.d.ts +7 -0
  4528. package/icons/es/Udio/components/Combine.js +36 -0
  4529. package/icons/es/Udio/components/Mono.d.ts +3 -0
  4530. package/icons/es/Udio/components/Mono.js +40 -0
  4531. package/icons/es/Udio/components/Text.d.ts +3 -0
  4532. package/icons/es/Udio/components/Text.js +47 -0
  4533. package/icons/es/Udio/index.d.ts +13 -0
  4534. package/icons/es/Udio/index.js +12 -0
  4535. package/icons/es/Udio/style.d.ts +7 -0
  4536. package/icons/es/Udio/style.js +9 -0
  4537. package/icons/es/Unstructured/components/Avatar.d.ts +5 -0
  4538. package/icons/es/Unstructured/components/Avatar.js +25 -0
  4539. package/icons/es/Unstructured/components/Color.d.ts +3 -0
  4540. package/icons/es/Unstructured/components/Color.js +44 -0
  4541. package/icons/es/Unstructured/components/Combine.d.ts +7 -0
  4542. package/icons/es/Unstructured/components/Combine.js +32 -0
  4543. package/icons/es/Unstructured/components/Inner.d.ts +3 -0
  4544. package/icons/es/Unstructured/components/Inner.js +40 -0
  4545. package/icons/es/Unstructured/components/Mono.d.ts +3 -0
  4546. package/icons/es/Unstructured/components/Mono.js +41 -0
  4547. package/icons/es/Unstructured/components/Text.d.ts +3 -0
  4548. package/icons/es/Unstructured/components/Text.js +39 -0
  4549. package/icons/es/Unstructured/index.d.ts +15 -0
  4550. package/icons/es/Unstructured/index.js +14 -0
  4551. package/icons/es/Unstructured/style.d.ts +7 -0
  4552. package/icons/es/Unstructured/style.js +9 -0
  4553. package/icons/es/Upstage/components/Avatar.d.ts +5 -0
  4554. package/icons/es/Upstage/components/Avatar.js +25 -0
  4555. package/icons/es/Upstage/components/Color.d.ts +3 -0
  4556. package/icons/es/Upstage/components/Color.js +58 -0
  4557. package/icons/es/Upstage/components/Combine.d.ts +7 -0
  4558. package/icons/es/Upstage/components/Combine.js +33 -0
  4559. package/icons/es/Upstage/components/Mono.d.ts +3 -0
  4560. package/icons/es/Upstage/components/Mono.js +60 -0
  4561. package/icons/es/Upstage/components/Text.d.ts +3 -0
  4562. package/icons/es/Upstage/components/Text.js +39 -0
  4563. package/icons/es/Upstage/index.d.ts +16 -0
  4564. package/icons/es/Upstage/index.js +15 -0
  4565. package/icons/es/Upstage/style.d.ts +8 -0
  4566. package/icons/es/Upstage/style.js +10 -0
  4567. package/icons/es/V0/components/Avatar.d.ts +5 -0
  4568. package/icons/es/V0/components/Avatar.js +25 -0
  4569. package/icons/es/V0/components/Mono.d.ts +3 -0
  4570. package/icons/es/V0/components/Mono.js +41 -0
  4571. package/icons/es/V0/index.d.ts +9 -0
  4572. package/icons/es/V0/index.js +8 -0
  4573. package/icons/es/V0/style.d.ts +7 -0
  4574. package/icons/es/V0/style.js +9 -0
  4575. package/icons/es/VectorizerAI/components/Avatar.d.ts +5 -0
  4576. package/icons/es/VectorizerAI/components/Avatar.js +25 -0
  4577. package/icons/es/VectorizerAI/components/Combine.d.ts +7 -0
  4578. package/icons/es/VectorizerAI/components/Combine.js +29 -0
  4579. package/icons/es/VectorizerAI/components/Mono.d.ts +3 -0
  4580. package/icons/es/VectorizerAI/components/Mono.js +40 -0
  4581. package/icons/es/VectorizerAI/components/Text.d.ts +3 -0
  4582. package/icons/es/VectorizerAI/components/Text.js +39 -0
  4583. package/icons/es/VectorizerAI/index.d.ts +13 -0
  4584. package/icons/es/VectorizerAI/index.js +12 -0
  4585. package/icons/es/VectorizerAI/style.d.ts +7 -0
  4586. package/icons/es/VectorizerAI/style.js +9 -0
  4587. package/icons/es/Venice/components/Avatar.d.ts +5 -0
  4588. package/icons/es/Venice/components/Avatar.js +25 -0
  4589. package/icons/es/Venice/components/Color.d.ts +3 -0
  4590. package/icons/es/Venice/components/Color.js +46 -0
  4591. package/icons/es/Venice/components/Combine.d.ts +7 -0
  4592. package/icons/es/Venice/components/Combine.js +32 -0
  4593. package/icons/es/Venice/components/Mono.d.ts +3 -0
  4594. package/icons/es/Venice/components/Mono.js +44 -0
  4595. package/icons/es/Venice/components/Text.d.ts +3 -0
  4596. package/icons/es/Venice/components/Text.js +43 -0
  4597. package/icons/es/Venice/index.d.ts +15 -0
  4598. package/icons/es/Venice/index.js +14 -0
  4599. package/icons/es/Venice/style.d.ts +7 -0
  4600. package/icons/es/Venice/style.js +9 -0
  4601. package/icons/es/Vercel/components/Avatar.d.ts +5 -0
  4602. package/icons/es/Vercel/components/Avatar.js +25 -0
  4603. package/icons/es/Vercel/components/Combine.d.ts +5 -0
  4604. package/icons/es/Vercel/components/Combine.js +26 -0
  4605. package/icons/es/Vercel/components/Mono.d.ts +3 -0
  4606. package/icons/es/Vercel/components/Mono.js +40 -0
  4607. package/icons/es/Vercel/components/Text.d.ts +3 -0
  4608. package/icons/es/Vercel/components/Text.js +39 -0
  4609. package/icons/es/Vercel/index.d.ts +13 -0
  4610. package/icons/es/Vercel/index.js +12 -0
  4611. package/icons/es/Vercel/style.d.ts +7 -0
  4612. package/icons/es/Vercel/style.js +9 -0
  4613. package/icons/es/VertexAI/components/Avatar.d.ts +5 -0
  4614. package/icons/es/VertexAI/components/Avatar.js +25 -0
  4615. package/icons/es/VertexAI/components/Color.d.ts +3 -0
  4616. package/icons/es/VertexAI/components/Color.js +64 -0
  4617. package/icons/es/VertexAI/components/Combine.d.ts +7 -0
  4618. package/icons/es/VertexAI/components/Combine.js +32 -0
  4619. package/icons/es/VertexAI/components/Mono.d.ts +3 -0
  4620. package/icons/es/VertexAI/components/Mono.js +56 -0
  4621. package/icons/es/VertexAI/components/Text.d.ts +3 -0
  4622. package/icons/es/VertexAI/components/Text.js +52 -0
  4623. package/icons/es/VertexAI/index.d.ts +15 -0
  4624. package/icons/es/VertexAI/index.js +14 -0
  4625. package/icons/es/VertexAI/style.d.ts +7 -0
  4626. package/icons/es/VertexAI/style.js +9 -0
  4627. package/icons/es/Vidu/components/Avatar.d.ts +5 -0
  4628. package/icons/es/Vidu/components/Avatar.js +25 -0
  4629. package/icons/es/Vidu/components/Color.d.ts +3 -0
  4630. package/icons/es/Vidu/components/Color.js +73 -0
  4631. package/icons/es/Vidu/components/Combine.d.ts +7 -0
  4632. package/icons/es/Vidu/components/Combine.js +32 -0
  4633. package/icons/es/Vidu/components/Mono.d.ts +3 -0
  4634. package/icons/es/Vidu/components/Mono.js +40 -0
  4635. package/icons/es/Vidu/components/Text.d.ts +3 -0
  4636. package/icons/es/Vidu/components/Text.js +40 -0
  4637. package/icons/es/Vidu/index.d.ts +16 -0
  4638. package/icons/es/Vidu/index.js +15 -0
  4639. package/icons/es/Vidu/style.d.ts +8 -0
  4640. package/icons/es/Vidu/style.js +10 -0
  4641. package/icons/es/Viggle/components/Avatar.d.ts +5 -0
  4642. package/icons/es/Viggle/components/Avatar.js +25 -0
  4643. package/icons/es/Viggle/components/Combine.d.ts +5 -0
  4644. package/icons/es/Viggle/components/Combine.js +26 -0
  4645. package/icons/es/Viggle/components/Mono.d.ts +3 -0
  4646. package/icons/es/Viggle/components/Mono.js +41 -0
  4647. package/icons/es/Viggle/components/Text.d.ts +3 -0
  4648. package/icons/es/Viggle/components/Text.js +39 -0
  4649. package/icons/es/Viggle/index.d.ts +13 -0
  4650. package/icons/es/Viggle/index.js +12 -0
  4651. package/icons/es/Viggle/style.d.ts +7 -0
  4652. package/icons/es/Viggle/style.js +9 -0
  4653. package/icons/es/Vllm/components/Avatar.d.ts +5 -0
  4654. package/icons/es/Vllm/components/Avatar.js +25 -0
  4655. package/icons/es/Vllm/components/Color.d.ts +3 -0
  4656. package/icons/es/Vllm/components/Color.js +42 -0
  4657. package/icons/es/Vllm/components/Combine.d.ts +7 -0
  4658. package/icons/es/Vllm/components/Combine.js +32 -0
  4659. package/icons/es/Vllm/components/Mono.d.ts +3 -0
  4660. package/icons/es/Vllm/components/Mono.js +42 -0
  4661. package/icons/es/Vllm/components/Text.d.ts +3 -0
  4662. package/icons/es/Vllm/components/Text.js +39 -0
  4663. package/icons/es/Vllm/index.d.ts +15 -0
  4664. package/icons/es/Vllm/index.js +14 -0
  4665. package/icons/es/Vllm/style.d.ts +7 -0
  4666. package/icons/es/Vllm/style.js +9 -0
  4667. package/icons/es/Volcengine/components/Avatar.d.ts +5 -0
  4668. package/icons/es/Volcengine/components/Avatar.js +25 -0
  4669. package/icons/es/Volcengine/components/Color.d.ts +3 -0
  4670. package/icons/es/Volcengine/components/Color.js +48 -0
  4671. package/icons/es/Volcengine/components/Combine.d.ts +7 -0
  4672. package/icons/es/Volcengine/components/Combine.js +32 -0
  4673. package/icons/es/Volcengine/components/Mono.d.ts +3 -0
  4674. package/icons/es/Volcengine/components/Mono.js +52 -0
  4675. package/icons/es/Volcengine/components/Text.d.ts +3 -0
  4676. package/icons/es/Volcengine/components/Text.js +47 -0
  4677. package/icons/es/Volcengine/index.d.ts +15 -0
  4678. package/icons/es/Volcengine/index.js +14 -0
  4679. package/icons/es/Volcengine/style.d.ts +7 -0
  4680. package/icons/es/Volcengine/style.js +9 -0
  4681. package/icons/es/Voyage/components/Avatar.d.ts +5 -0
  4682. package/icons/es/Voyage/components/Avatar.js +25 -0
  4683. package/icons/es/Voyage/components/Color.d.ts +3 -0
  4684. package/icons/es/Voyage/components/Color.js +39 -0
  4685. package/icons/es/Voyage/components/Mono.d.ts +3 -0
  4686. package/icons/es/Voyage/components/Mono.js +40 -0
  4687. package/icons/es/Voyage/components/Text.d.ts +3 -0
  4688. package/icons/es/Voyage/components/Text.js +39 -0
  4689. package/icons/es/Voyage/index.d.ts +13 -0
  4690. package/icons/es/Voyage/index.js +12 -0
  4691. package/icons/es/Voyage/style.d.ts +7 -0
  4692. package/icons/es/Voyage/style.js +9 -0
  4693. package/icons/es/Wenxin/components/Avatar.d.ts +5 -0
  4694. package/icons/es/Wenxin/components/Avatar.js +25 -0
  4695. package/icons/es/Wenxin/components/Color.d.ts +3 -0
  4696. package/icons/es/Wenxin/components/Color.js +61 -0
  4697. package/icons/es/Wenxin/components/Combine.d.ts +7 -0
  4698. package/icons/es/Wenxin/components/Combine.js +32 -0
  4699. package/icons/es/Wenxin/components/Mono.d.ts +3 -0
  4700. package/icons/es/Wenxin/components/Mono.js +40 -0
  4701. package/icons/es/Wenxin/components/Text.d.ts +3 -0
  4702. package/icons/es/Wenxin/components/Text.js +39 -0
  4703. package/icons/es/Wenxin/index.d.ts +16 -0
  4704. package/icons/es/Wenxin/index.js +15 -0
  4705. package/icons/es/Wenxin/style.d.ts +8 -0
  4706. package/icons/es/Wenxin/style.js +10 -0
  4707. package/icons/es/Windsurf/components/Avatar.d.ts +5 -0
  4708. package/icons/es/Windsurf/components/Avatar.js +25 -0
  4709. package/icons/es/Windsurf/components/Combine.d.ts +5 -0
  4710. package/icons/es/Windsurf/components/Combine.js +29 -0
  4711. package/icons/es/Windsurf/components/Mono.d.ts +3 -0
  4712. package/icons/es/Windsurf/components/Mono.js +41 -0
  4713. package/icons/es/Windsurf/components/Text.d.ts +3 -0
  4714. package/icons/es/Windsurf/components/Text.js +40 -0
  4715. package/icons/es/Windsurf/index.d.ts +13 -0
  4716. package/icons/es/Windsurf/index.js +12 -0
  4717. package/icons/es/Windsurf/style.d.ts +7 -0
  4718. package/icons/es/Windsurf/style.js +9 -0
  4719. package/icons/es/WorkersAI/components/Avatar.d.ts +5 -0
  4720. package/icons/es/WorkersAI/components/Avatar.js +25 -0
  4721. package/icons/es/WorkersAI/components/Color.d.ts +3 -0
  4722. package/icons/es/WorkersAI/components/Color.js +41 -0
  4723. package/icons/es/WorkersAI/components/Combine.d.ts +7 -0
  4724. package/icons/es/WorkersAI/components/Combine.js +32 -0
  4725. package/icons/es/WorkersAI/components/Mono.d.ts +3 -0
  4726. package/icons/es/WorkersAI/components/Mono.js +41 -0
  4727. package/icons/es/WorkersAI/components/Text.d.ts +3 -0
  4728. package/icons/es/WorkersAI/components/Text.js +39 -0
  4729. package/icons/es/WorkersAI/index.d.ts +15 -0
  4730. package/icons/es/WorkersAI/index.js +14 -0
  4731. package/icons/es/WorkersAI/style.d.ts +7 -0
  4732. package/icons/es/WorkersAI/style.js +9 -0
  4733. package/icons/es/WorldRouter/components/Avatar.d.ts +5 -0
  4734. package/icons/es/WorldRouter/components/Avatar.js +25 -0
  4735. package/icons/es/WorldRouter/components/Combine.d.ts +5 -0
  4736. package/icons/es/WorldRouter/components/Combine.js +26 -0
  4737. package/icons/es/WorldRouter/components/Mono.d.ts +3 -0
  4738. package/icons/es/WorldRouter/components/Mono.js +40 -0
  4739. package/icons/es/WorldRouter/components/Text.d.ts +3 -0
  4740. package/icons/es/WorldRouter/components/Text.js +38 -0
  4741. package/icons/es/WorldRouter/index.d.ts +13 -0
  4742. package/icons/es/WorldRouter/index.js +12 -0
  4743. package/icons/es/WorldRouter/style.d.ts +7 -0
  4744. package/icons/es/WorldRouter/style.js +9 -0
  4745. package/icons/es/XAI/components/Avatar.d.ts +5 -0
  4746. package/icons/es/XAI/components/Avatar.js +25 -0
  4747. package/icons/es/XAI/components/Combine.d.ts +5 -0
  4748. package/icons/es/XAI/components/Combine.js +29 -0
  4749. package/icons/es/XAI/components/Mono.d.ts +3 -0
  4750. package/icons/es/XAI/components/Mono.js +40 -0
  4751. package/icons/es/XAI/components/Text.d.ts +3 -0
  4752. package/icons/es/XAI/components/Text.js +39 -0
  4753. package/icons/es/XAI/index.d.ts +13 -0
  4754. package/icons/es/XAI/index.js +12 -0
  4755. package/icons/es/XAI/style.d.ts +7 -0
  4756. package/icons/es/XAI/style.js +9 -0
  4757. package/icons/es/XiaomiMiMo/components/Avatar.d.ts +5 -0
  4758. package/icons/es/XiaomiMiMo/components/Avatar.js +25 -0
  4759. package/icons/es/XiaomiMiMo/components/Mono.d.ts +3 -0
  4760. package/icons/es/XiaomiMiMo/components/Mono.js +40 -0
  4761. package/icons/es/XiaomiMiMo/components/Text.d.ts +3 -0
  4762. package/icons/es/XiaomiMiMo/components/Text.js +42 -0
  4763. package/icons/es/XiaomiMiMo/index.d.ts +11 -0
  4764. package/icons/es/XiaomiMiMo/index.js +10 -0
  4765. package/icons/es/XiaomiMiMo/style.d.ts +7 -0
  4766. package/icons/es/XiaomiMiMo/style.js +9 -0
  4767. package/icons/es/Xinference/components/Avatar.d.ts +5 -0
  4768. package/icons/es/Xinference/components/Avatar.js +25 -0
  4769. package/icons/es/Xinference/components/Color.d.ts +3 -0
  4770. package/icons/es/Xinference/components/Color.js +100 -0
  4771. package/icons/es/Xinference/components/Combine.d.ts +7 -0
  4772. package/icons/es/Xinference/components/Combine.js +32 -0
  4773. package/icons/es/Xinference/components/Mono.d.ts +3 -0
  4774. package/icons/es/Xinference/components/Mono.js +44 -0
  4775. package/icons/es/Xinference/components/Text.d.ts +3 -0
  4776. package/icons/es/Xinference/components/Text.js +39 -0
  4777. package/icons/es/Xinference/index.d.ts +15 -0
  4778. package/icons/es/Xinference/index.js +14 -0
  4779. package/icons/es/Xinference/style.d.ts +7 -0
  4780. package/icons/es/Xinference/style.js +9 -0
  4781. package/icons/es/Xpay/components/Avatar.d.ts +5 -0
  4782. package/icons/es/Xpay/components/Avatar.js +25 -0
  4783. package/icons/es/Xpay/components/Color.d.ts +3 -0
  4784. package/icons/es/Xpay/components/Color.js +45 -0
  4785. package/icons/es/Xpay/components/Combine.d.ts +7 -0
  4786. package/icons/es/Xpay/components/Combine.js +32 -0
  4787. package/icons/es/Xpay/components/Mono.d.ts +3 -0
  4788. package/icons/es/Xpay/components/Mono.js +44 -0
  4789. package/icons/es/Xpay/components/Text.d.ts +3 -0
  4790. package/icons/es/Xpay/components/Text.js +39 -0
  4791. package/icons/es/Xpay/index.d.ts +15 -0
  4792. package/icons/es/Xpay/index.js +14 -0
  4793. package/icons/es/Xpay/style.d.ts +7 -0
  4794. package/icons/es/Xpay/style.js +9 -0
  4795. package/icons/es/Xuanyuan/components/Avatar.d.ts +5 -0
  4796. package/icons/es/Xuanyuan/components/Avatar.js +25 -0
  4797. package/icons/es/Xuanyuan/components/Color.d.ts +3 -0
  4798. package/icons/es/Xuanyuan/components/Color.js +42 -0
  4799. package/icons/es/Xuanyuan/components/Combine.d.ts +7 -0
  4800. package/icons/es/Xuanyuan/components/Combine.js +32 -0
  4801. package/icons/es/Xuanyuan/components/Mono.d.ts +3 -0
  4802. package/icons/es/Xuanyuan/components/Mono.js +42 -0
  4803. package/icons/es/Xuanyuan/components/Text.d.ts +3 -0
  4804. package/icons/es/Xuanyuan/components/Text.js +40 -0
  4805. package/icons/es/Xuanyuan/index.d.ts +15 -0
  4806. package/icons/es/Xuanyuan/index.js +14 -0
  4807. package/icons/es/Xuanyuan/style.d.ts +7 -0
  4808. package/icons/es/Xuanyuan/style.js +9 -0
  4809. package/icons/es/Yandex/components/Avatar.d.ts +5 -0
  4810. package/icons/es/Yandex/components/Avatar.js +25 -0
  4811. package/icons/es/Yandex/components/Mono.d.ts +3 -0
  4812. package/icons/es/Yandex/components/Mono.js +40 -0
  4813. package/icons/es/Yandex/components/Text.d.ts +3 -0
  4814. package/icons/es/Yandex/components/Text.js +39 -0
  4815. package/icons/es/Yandex/index.d.ts +11 -0
  4816. package/icons/es/Yandex/index.js +10 -0
  4817. package/icons/es/Yandex/style.d.ts +7 -0
  4818. package/icons/es/Yandex/style.js +9 -0
  4819. package/icons/es/Yi/components/Avatar.d.ts +5 -0
  4820. package/icons/es/Yi/components/Avatar.js +25 -0
  4821. package/icons/es/Yi/components/Color.d.ts +3 -0
  4822. package/icons/es/Yi/components/Color.js +46 -0
  4823. package/icons/es/Yi/components/Combine.d.ts +7 -0
  4824. package/icons/es/Yi/components/Combine.js +32 -0
  4825. package/icons/es/Yi/components/Mono.d.ts +3 -0
  4826. package/icons/es/Yi/components/Mono.js +45 -0
  4827. package/icons/es/Yi/components/Text.d.ts +1 -0
  4828. package/icons/es/Yi/components/Text.js +1 -0
  4829. package/icons/es/Yi/index.d.ts +15 -0
  4830. package/icons/es/Yi/index.js +14 -0
  4831. package/icons/es/Yi/style.d.ts +7 -0
  4832. package/icons/es/Yi/style.js +9 -0
  4833. package/icons/es/YouMind/components/Avatar.d.ts +5 -0
  4834. package/icons/es/YouMind/components/Avatar.js +25 -0
  4835. package/icons/es/YouMind/components/Combine.d.ts +5 -0
  4836. package/icons/es/YouMind/components/Combine.js +29 -0
  4837. package/icons/es/YouMind/components/Mono.d.ts +3 -0
  4838. package/icons/es/YouMind/components/Mono.js +41 -0
  4839. package/icons/es/YouMind/components/Text.d.ts +3 -0
  4840. package/icons/es/YouMind/components/Text.js +39 -0
  4841. package/icons/es/YouMind/index.d.ts +13 -0
  4842. package/icons/es/YouMind/index.js +12 -0
  4843. package/icons/es/YouMind/style.d.ts +7 -0
  4844. package/icons/es/YouMind/style.js +9 -0
  4845. package/icons/es/Yuanbao/components/Avatar.d.ts +5 -0
  4846. package/icons/es/Yuanbao/components/Avatar.js +25 -0
  4847. package/icons/es/Yuanbao/components/Color.d.ts +3 -0
  4848. package/icons/es/Yuanbao/components/Color.js +45 -0
  4849. package/icons/es/Yuanbao/components/Combine.d.ts +7 -0
  4850. package/icons/es/Yuanbao/components/Combine.js +32 -0
  4851. package/icons/es/Yuanbao/components/Mono.d.ts +3 -0
  4852. package/icons/es/Yuanbao/components/Mono.js +42 -0
  4853. package/icons/es/Yuanbao/components/Text.d.ts +3 -0
  4854. package/icons/es/Yuanbao/components/Text.js +39 -0
  4855. package/icons/es/Yuanbao/index.d.ts +15 -0
  4856. package/icons/es/Yuanbao/index.js +14 -0
  4857. package/icons/es/Yuanbao/style.d.ts +7 -0
  4858. package/icons/es/Yuanbao/style.js +9 -0
  4859. package/icons/es/ZAI/components/Avatar.d.ts +5 -0
  4860. package/icons/es/ZAI/components/Avatar.js +25 -0
  4861. package/icons/es/ZAI/components/Combine.d.ts +5 -0
  4862. package/icons/es/ZAI/components/Combine.js +26 -0
  4863. package/icons/es/ZAI/components/Mono.d.ts +3 -0
  4864. package/icons/es/ZAI/components/Mono.js +40 -0
  4865. package/icons/es/ZAI/components/Text.d.ts +3 -0
  4866. package/icons/es/ZAI/components/Text.js +39 -0
  4867. package/icons/es/ZAI/index.d.ts +13 -0
  4868. package/icons/es/ZAI/index.js +12 -0
  4869. package/icons/es/ZAI/style.d.ts +7 -0
  4870. package/icons/es/ZAI/style.js +9 -0
  4871. package/icons/es/Zapier/components/Avatar.d.ts +5 -0
  4872. package/icons/es/Zapier/components/Avatar.js +25 -0
  4873. package/icons/es/Zapier/components/Color.d.ts +3 -0
  4874. package/icons/es/Zapier/components/Color.js +39 -0
  4875. package/icons/es/Zapier/components/Combine.d.ts +7 -0
  4876. package/icons/es/Zapier/components/Combine.js +32 -0
  4877. package/icons/es/Zapier/components/Mono.d.ts +3 -0
  4878. package/icons/es/Zapier/components/Mono.js +40 -0
  4879. package/icons/es/Zapier/components/Text.d.ts +3 -0
  4880. package/icons/es/Zapier/components/Text.js +39 -0
  4881. package/icons/es/Zapier/index.d.ts +15 -0
  4882. package/icons/es/Zapier/index.js +14 -0
  4883. package/icons/es/Zapier/style.d.ts +7 -0
  4884. package/icons/es/Zapier/style.js +9 -0
  4885. package/icons/es/Zeabur/components/Avatar.d.ts +5 -0
  4886. package/icons/es/Zeabur/components/Avatar.js +25 -0
  4887. package/icons/es/Zeabur/components/Color.d.ts +3 -0
  4888. package/icons/es/Zeabur/components/Color.js +46 -0
  4889. package/icons/es/Zeabur/components/Combine.d.ts +7 -0
  4890. package/icons/es/Zeabur/components/Combine.js +32 -0
  4891. package/icons/es/Zeabur/components/Mono.d.ts +3 -0
  4892. package/icons/es/Zeabur/components/Mono.js +43 -0
  4893. package/icons/es/Zeabur/components/Text.d.ts +3 -0
  4894. package/icons/es/Zeabur/components/Text.js +39 -0
  4895. package/icons/es/Zeabur/index.d.ts +15 -0
  4896. package/icons/es/Zeabur/index.js +14 -0
  4897. package/icons/es/Zeabur/style.d.ts +7 -0
  4898. package/icons/es/Zeabur/style.js +9 -0
  4899. package/icons/es/ZenMux/components/Avatar.d.ts +5 -0
  4900. package/icons/es/ZenMux/components/Avatar.js +25 -0
  4901. package/icons/es/ZenMux/components/Combine.d.ts +4 -0
  4902. package/icons/es/ZenMux/components/Combine.js +26 -0
  4903. package/icons/es/ZenMux/components/Mono.d.ts +3 -0
  4904. package/icons/es/ZenMux/components/Mono.js +45 -0
  4905. package/icons/es/ZenMux/components/Text.d.ts +3 -0
  4906. package/icons/es/ZenMux/components/Text.js +52 -0
  4907. package/icons/es/ZenMux/index.d.ts +13 -0
  4908. package/icons/es/ZenMux/index.js +12 -0
  4909. package/icons/es/ZenMux/style.d.ts +7 -0
  4910. package/icons/es/ZenMux/style.js +9 -0
  4911. package/icons/es/Zencoder/components/Avatar.d.ts +5 -0
  4912. package/icons/es/Zencoder/components/Avatar.js +25 -0
  4913. package/icons/es/Zencoder/components/Color.d.ts +3 -0
  4914. package/icons/es/Zencoder/components/Color.js +39 -0
  4915. package/icons/es/Zencoder/components/Combine.d.ts +7 -0
  4916. package/icons/es/Zencoder/components/Combine.js +32 -0
  4917. package/icons/es/Zencoder/components/Mono.d.ts +3 -0
  4918. package/icons/es/Zencoder/components/Mono.js +40 -0
  4919. package/icons/es/Zencoder/components/Text.d.ts +3 -0
  4920. package/icons/es/Zencoder/components/Text.js +39 -0
  4921. package/icons/es/Zencoder/index.d.ts +15 -0
  4922. package/icons/es/Zencoder/index.js +14 -0
  4923. package/icons/es/Zencoder/style.d.ts +7 -0
  4924. package/icons/es/Zencoder/style.js +9 -0
  4925. package/icons/es/ZeroOne/components/Avatar.d.ts +5 -0
  4926. package/icons/es/ZeroOne/components/Avatar.js +25 -0
  4927. package/icons/es/ZeroOne/components/Color.d.ts +3 -0
  4928. package/icons/es/ZeroOne/components/Color.js +46 -0
  4929. package/icons/es/ZeroOne/components/Combine.d.ts +7 -0
  4930. package/icons/es/ZeroOne/components/Combine.js +29 -0
  4931. package/icons/es/ZeroOne/components/Mono.d.ts +3 -0
  4932. package/icons/es/ZeroOne/components/Mono.js +43 -0
  4933. package/icons/es/ZeroOne/components/Text.d.ts +3 -0
  4934. package/icons/es/ZeroOne/components/Text.js +39 -0
  4935. package/icons/es/ZeroOne/index.d.ts +15 -0
  4936. package/icons/es/ZeroOne/index.js +14 -0
  4937. package/icons/es/ZeroOne/style.d.ts +7 -0
  4938. package/icons/es/ZeroOne/style.js +9 -0
  4939. package/icons/es/Zhipu/components/Avatar.d.ts +5 -0
  4940. package/icons/es/Zhipu/components/Avatar.js +25 -0
  4941. package/icons/es/Zhipu/components/Color.d.ts +3 -0
  4942. package/icons/es/Zhipu/components/Color.js +40 -0
  4943. package/icons/es/Zhipu/components/Combine.d.ts +7 -0
  4944. package/icons/es/Zhipu/components/Combine.js +32 -0
  4945. package/icons/es/Zhipu/components/Mono.d.ts +3 -0
  4946. package/icons/es/Zhipu/components/Mono.js +40 -0
  4947. package/icons/es/Zhipu/components/Text.d.ts +3 -0
  4948. package/icons/es/Zhipu/components/Text.js +39 -0
  4949. package/icons/es/Zhipu/index.d.ts +15 -0
  4950. package/icons/es/Zhipu/index.js +14 -0
  4951. package/icons/es/Zhipu/style.d.ts +7 -0
  4952. package/icons/es/Zhipu/style.js +9 -0
  4953. package/icons/es/components/AgentGuideCard/index.d.ts +26 -0
  4954. package/icons/es/components/AgentGuideCard/index.js +108 -0
  4955. package/icons/es/components/ColorPreview/index.d.ts +6 -0
  4956. package/icons/es/components/ColorPreview/index.js +35 -0
  4957. package/icons/es/components/Dashboard/IconItem.d.ts +9 -0
  4958. package/icons/es/components/Dashboard/IconItem.js +141 -0
  4959. package/icons/es/components/Dashboard/Text.d.ts +5 -0
  4960. package/icons/es/components/Dashboard/Text.js +66 -0
  4961. package/icons/es/components/Dashboard/index.d.ts +3 -0
  4962. package/icons/es/components/Dashboard/index.js +103 -0
  4963. package/icons/es/components/Dashboard/utils.d.ts +1 -0
  4964. package/icons/es/components/Dashboard/utils.js +11 -0
  4965. package/icons/es/components/DownloadButton/index.d.ts +9 -0
  4966. package/icons/es/components/DownloadButton/index.js +28 -0
  4967. package/icons/es/components/Editor/Color.d.ts +9 -0
  4968. package/icons/es/components/Editor/Color.js +47 -0
  4969. package/icons/es/components/Editor/Mono.d.ts +8 -0
  4970. package/icons/es/components/Editor/Mono.js +45 -0
  4971. package/icons/es/components/Editor/Preview.d.ts +9 -0
  4972. package/icons/es/components/Editor/Preview.js +54 -0
  4973. package/icons/es/components/Editor/Text.d.ts +8 -0
  4974. package/icons/es/components/Editor/Text.js +45 -0
  4975. package/icons/es/components/Editor/data.d.ts +1 -0
  4976. package/icons/es/components/Editor/data.js +1 -0
  4977. package/icons/es/components/Editor/index.d.ts +2 -0
  4978. package/icons/es/components/Editor/index.js +136 -0
  4979. package/icons/es/components/Editor/svgo.d.ts +76 -0
  4980. package/icons/es/components/Editor/svgo.js +83 -0
  4981. package/icons/es/components/Editor/useSvgo.d.ts +6 -0
  4982. package/icons/es/components/Editor/useSvgo.js +58 -0
  4983. package/icons/es/components/IconPreview/ColorPreview.d.ts +6 -0
  4984. package/icons/es/components/IconPreview/ColorPreview.js +38 -0
  4985. package/icons/es/components/IconPreview/index.d.ts +8 -0
  4986. package/icons/es/components/IconPreview/index.js +67 -0
  4987. package/icons/es/features/AgentIcon/DefaultAvatar.d.ts +4 -0
  4988. package/icons/es/features/AgentIcon/DefaultAvatar.js +40 -0
  4989. package/icons/es/features/AgentIcon/DefaultIcon.d.ts +9 -0
  4990. package/icons/es/features/AgentIcon/DefaultIcon.js +26 -0
  4991. package/icons/es/features/AgentIcon/index.d.ts +11 -0
  4992. package/icons/es/features/AgentIcon/index.js +95 -0
  4993. package/icons/es/features/IconAvatar/index.d.ts +15 -0
  4994. package/icons/es/features/IconAvatar/index.js +55 -0
  4995. package/icons/es/features/IconAvatar/util.d.ts +2 -0
  4996. package/icons/es/features/IconAvatar/util.js +12 -0
  4997. package/icons/es/features/IconCombine/index.d.ts +21 -0
  4998. package/icons/es/features/IconCombine/index.js +73 -0
  4999. package/icons/es/features/ModelIcon/DefaultAvatar.d.ts +4 -0
  5000. package/icons/es/features/ModelIcon/DefaultAvatar.js +40 -0
  5001. package/icons/es/features/ModelIcon/DefaultIcon.d.ts +9 -0
  5002. package/icons/es/features/ModelIcon/DefaultIcon.js +26 -0
  5003. package/icons/es/features/ModelIcon/index.d.ts +11 -0
  5004. package/icons/es/features/ModelIcon/index.js +95 -0
  5005. package/icons/es/features/ModelTag/index.d.ts +8 -0
  5006. package/icons/es/features/ModelTag/index.js +29 -0
  5007. package/icons/es/features/ProviderCombine/Combine.d.ts +8 -0
  5008. package/icons/es/features/ProviderCombine/Combine.js +36 -0
  5009. package/icons/es/features/ProviderCombine/index.d.ts +10 -0
  5010. package/icons/es/features/ProviderCombine/index.js +66 -0
  5011. package/icons/es/features/ProviderIcon/DefaultAvatar.d.ts +4 -0
  5012. package/icons/es/features/ProviderIcon/DefaultAvatar.js +40 -0
  5013. package/icons/es/features/ProviderIcon/DefaultIcon.d.ts +9 -0
  5014. package/icons/es/features/ProviderIcon/DefaultIcon.js +26 -0
  5015. package/icons/es/features/ProviderIcon/index.d.ts +13 -0
  5016. package/icons/es/features/ProviderIcon/index.js +101 -0
  5017. package/icons/es/features/agentConfig.d.ts +19 -0
  5018. package/icons/es/features/agentConfig.js +173 -0
  5019. package/icons/es/features/getHubstrIconCDN/index.d.ts +7 -0
  5020. package/icons/es/features/getHubstrIconCDN/index.js +56 -0
  5021. package/icons/es/features/index.d.ts +12 -0
  5022. package/icons/es/features/index.js +12 -0
  5023. package/icons/es/features/modelConfig.d.ts +19 -0
  5024. package/icons/es/features/modelConfig.js +417 -0
  5025. package/icons/es/features/providerConfig.d.ts +25 -0
  5026. package/icons/es/features/providerConfig.js +761 -0
  5027. package/icons/es/features/providerEnum.d.ts +151 -0
  5028. package/icons/es/features/providerEnum.js +151 -0
  5029. package/icons/es/hooks/useFillId.d.ts +8 -0
  5030. package/icons/es/hooks/useFillId.js +26 -0
  5031. package/icons/es/icons.d.ts +309 -0
  5032. package/icons/es/icons.js +309 -0
  5033. package/icons/es/index.d.ts +5 -0
  5034. package/icons/es/index.js +4 -0
  5035. package/icons/es/toc.d.ts +4 -0
  5036. package/icons/es/toc.js +3 -0
  5037. package/icons/es/toc.json +1 -0
  5038. package/icons/es/types/index.d.ts +6 -0
  5039. package/icons/es/types/index.js +1 -0
  5040. package/icons/es/types/toc.d.ts +20 -0
  5041. package/icons/es/types/toc.js +1 -0
  5042. package/lint/dist/index.cjs +99 -0
  5043. package/lint/dist/index.d.cts +9 -0
  5044. package/lint/dist/index.d.ts +9 -0
  5045. package/lint/dist/index.js +10 -0
  5046. package/market-sdk/dist/index.d.mts +8441 -0
  5047. package/market-sdk/dist/index.mjs +6390 -0
  5048. package/market-sdk/dist/index.mjs.map +1 -0
  5049. package/market-types/dist/index.d.mts +2406 -0
  5050. package/market-types/dist/index.mjs +229 -0
  5051. package/market-types/dist/index.mjs.map +1 -0
  5052. package/package.json +308 -0
  5053. package/prettier-config/dist/index.cjs +30 -0
  5054. package/prettier-config/dist/index.d.cts +8 -0
  5055. package/prettier-config/dist/index.d.cts.map +1 -0
  5056. package/prettier-config/dist/index.d.ts +8 -0
  5057. package/prettier-config/dist/index.d.ts.map +1 -0
  5058. package/prettier-config/dist/index.js +29 -0
  5059. package/prettier-config/dist/index.js.map +1 -0
  5060. package/remarklint-config/dist/index.cjs +135 -0
  5061. package/remarklint-config/dist/index.d.cts +26 -0
  5062. package/remarklint-config/dist/index.d.cts.map +1 -0
  5063. package/remarklint-config/dist/index.d.ts +26 -0
  5064. package/remarklint-config/dist/index.d.ts.map +1 -0
  5065. package/remarklint-config/dist/index.js +112 -0
  5066. package/remarklint-config/dist/index.js.map +1 -0
  5067. package/semantic-release-config/dist/changelog.cjs +27 -0
  5068. package/semantic-release-config/dist/changelog.d.cts +25 -0
  5069. package/semantic-release-config/dist/changelog.d.cts.map +1 -0
  5070. package/semantic-release-config/dist/changelog.d.ts +25 -0
  5071. package/semantic-release-config/dist/changelog.d.ts.map +1 -0
  5072. package/semantic-release-config/dist/changelog.js +26 -0
  5073. package/semantic-release-config/dist/changelog.js.map +1 -0
  5074. package/semantic-release-config/dist/index.cjs +5 -0
  5075. package/semantic-release-config/dist/index.d.cts +22 -0
  5076. package/semantic-release-config/dist/index.d.cts.map +1 -0
  5077. package/semantic-release-config/dist/index.d.ts +22 -0
  5078. package/semantic-release-config/dist/index.d.ts.map +1 -0
  5079. package/semantic-release-config/dist/index.js +3 -0
  5080. package/semantic-release-config/dist/monorepo.cjs +13 -0
  5081. package/semantic-release-config/dist/monorepo.d.cts +20 -0
  5082. package/semantic-release-config/dist/monorepo.d.cts.map +1 -0
  5083. package/semantic-release-config/dist/monorepo.d.ts +20 -0
  5084. package/semantic-release-config/dist/monorepo.d.ts.map +1 -0
  5085. package/semantic-release-config/dist/monorepo.js +13 -0
  5086. package/semantic-release-config/dist/monorepo.js.map +1 -0
  5087. package/semantic-release-config/dist/src-B_KP4Lzb.js +102 -0
  5088. package/semantic-release-config/dist/src-B_KP4Lzb.js.map +1 -0
  5089. package/semantic-release-config/dist/src-BkbAH-yB.cjs +142 -0
  5090. package/seo-cli/dist/cli.cjs +53 -0
  5091. package/seo-cli/dist/cli.js +54 -0
  5092. package/seo-cli/dist/cli.mjs +53 -0
  5093. package/seo-cli/dist/index.cjs +1 -0
  5094. package/seo-cli/dist/index.d.cts +153 -0
  5095. package/seo-cli/dist/index.d.mts +153 -0
  5096. package/seo-cli/dist/index.js +1 -0
  5097. package/seo-cli/dist/index.mjs +1 -0
  5098. package/stylelint-config/dist/index.cjs +41 -0
  5099. package/stylelint-config/dist/index.d.cts +8 -0
  5100. package/stylelint-config/dist/index.d.cts.map +1 -0
  5101. package/stylelint-config/dist/index.d.ts +8 -0
  5102. package/stylelint-config/dist/index.d.ts.map +1 -0
  5103. package/stylelint-config/dist/index.js +40 -0
  5104. package/stylelint-config/dist/index.js.map +1 -0
  5105. package/tts/src/core/EdgeSpeechTTS/createEdgeSpeech.ts +129 -0
  5106. package/tts/src/core/EdgeSpeechTTS/edgeVoiceList.ts +33 -0
  5107. package/tts/src/core/EdgeSpeechTTS/index.ts +63 -0
  5108. package/tts/src/core/EdgeSpeechTTS/options.ts +14 -0
  5109. package/tts/src/core/MicrosoftSpeechTTS/createMicrosoftSpeech.ts +63 -0
  5110. package/tts/src/core/MicrosoftSpeechTTS/index.ts +61 -0
  5111. package/tts/src/core/MicrosoftSpeechTTS/voiceList.ts +176 -0
  5112. package/tts/src/core/OpenAISTT/index.ts +102 -0
  5113. package/tts/src/core/OpenAITTS/index.ts +87 -0
  5114. package/tts/src/core/OpenAITTS/voiceList.ts +8 -0
  5115. package/tts/src/core/SpeechSynthesisTTS/index.ts +18 -0
  5116. package/tts/src/core/SpeechSynthesisTTS/options.ts +31 -0
  5117. package/tts/src/core/SpeechSynthesisTTS/voiceList.ts +94 -0
  5118. package/tts/src/core/VoiceList.ts +31 -0
  5119. package/tts/src/core/const/api.ts +5 -0
  5120. package/tts/src/core/const/polyfill.ts +32 -0
  5121. package/tts/src/core/data/locales.ts +13 -0
  5122. package/tts/src/core/data/styleList.ts +13 -0
  5123. package/tts/src/core/data/voiceList.ts +149 -0
  5124. package/tts/src/core/index.ts +17 -0
  5125. package/tts/src/core/utils/arrayBufferConvert.ts +4 -0
  5126. package/tts/src/core/utils/audioBufferToBlob.ts +96 -0
  5127. package/tts/src/core/utils/cleanContent.ts +23 -0
  5128. package/tts/src/core/utils/genSSML.ts +45 -0
  5129. package/tts/src/core/utils/genSendContent.ts +8 -0
  5130. package/tts/src/core/utils/getHeadersAndData.ts +8 -0
  5131. package/tts/src/core/utils/getRecordMineType.ts +23 -0
  5132. package/tts/src/core/utils/getSHA256.ts +112 -0
  5133. package/tts/src/core/utils/getVoiceList.ts +7 -0
  5134. package/tts/src/core/utils/playAudioBlob.ts +8 -0
  5135. package/tts/src/core/utils/secondsToMinutesAndSeconds.ts +10 -0
  5136. package/tts/src/core/utils/splitTextIntoSegments.ts +65 -0
  5137. package/tts/src/index.ts +1 -0
  5138. package/tts/src/react/AudioPlayer/demos/index.tsx +31 -0
  5139. package/tts/src/react/AudioPlayer/index.md +11 -0
  5140. package/tts/src/react/AudioPlayer/index.tsx +170 -0
  5141. package/tts/src/react/AudioVisualizer/Visualizer.tsx +38 -0
  5142. package/tts/src/react/AudioVisualizer/demos/index.tsx +66 -0
  5143. package/tts/src/react/AudioVisualizer/index.md +11 -0
  5144. package/tts/src/react/AudioVisualizer/index.tsx +47 -0
  5145. package/tts/src/react/_util/api.ts +2 -0
  5146. package/tts/src/react/_util/leva.ts +7 -0
  5147. package/tts/src/react/hooks/useAudioPlayer.ts +146 -0
  5148. package/tts/src/react/hooks/useAudioVisualizer.ts +77 -0
  5149. package/tts/src/react/hooks/useBlobUrl.ts +45 -0
  5150. package/tts/src/react/hooks/useStreamAudioPlayer.ts +157 -0
  5151. package/tts/src/react/index.ts +14 -0
  5152. package/tts/src/react/useAudioRecorder/demos/index.tsx +22 -0
  5153. package/tts/src/react/useAudioRecorder/index.md +11 -0
  5154. package/tts/src/react/useAudioRecorder/index.ts +79 -0
  5155. package/tts/src/react/useEdgeSpeech/demos/index.tsx +54 -0
  5156. package/tts/src/react/useEdgeSpeech/index.md +11 -0
  5157. package/tts/src/react/useEdgeSpeech/index.ts +32 -0
  5158. package/tts/src/react/useMicrosoftSpeech/demos/index.tsx +67 -0
  5159. package/tts/src/react/useMicrosoftSpeech/index.md +13 -0
  5160. package/tts/src/react/useMicrosoftSpeech/index.ts +37 -0
  5161. package/tts/src/react/useOpenAISTT/demos/AutoStop.tsx +58 -0
  5162. package/tts/src/react/useOpenAISTT/demos/index.tsx +58 -0
  5163. package/tts/src/react/useOpenAISTT/index.md +17 -0
  5164. package/tts/src/react/useOpenAISTT/index.ts +12 -0
  5165. package/tts/src/react/useOpenAISTT/useOpenAISTTAutoStop.ts +101 -0
  5166. package/tts/src/react/useOpenAISTT/useOpenAISTTCore.ts +21 -0
  5167. package/tts/src/react/useOpenAISTT/useOpenAISTTInteractive.ts +104 -0
  5168. package/tts/src/react/useOpenAISTT/useOpenAISTTRecorder.ts +92 -0
  5169. package/tts/src/react/useOpenAITTS/demos/index.tsx +60 -0
  5170. package/tts/src/react/useOpenAITTS/index.md +13 -0
  5171. package/tts/src/react/useOpenAITTS/index.ts +30 -0
  5172. package/tts/src/react/useSpeechRecognition/demos/AutoStop.tsx +36 -0
  5173. package/tts/src/react/useSpeechRecognition/demos/index.tsx +34 -0
  5174. package/tts/src/react/useSpeechRecognition/index.md +15 -0
  5175. package/tts/src/react/useSpeechRecognition/index.ts +17 -0
  5176. package/tts/src/react/useSpeechRecognition/useSpeechRecognitionAutoStop.ts +66 -0
  5177. package/tts/src/react/useSpeechRecognition/useSpeechRecognitionCore.ts +101 -0
  5178. package/tts/src/react/useSpeechRecognition/useSpeechRecognitionInteractive.ts +76 -0
  5179. package/tts/src/react/useSpeechSynthes/demos/index.tsx +52 -0
  5180. package/tts/src/react/useSpeechSynthes/index.md +11 -0
  5181. package/tts/src/react/useSpeechSynthes/index.ts +56 -0
  5182. package/tts/src/react/useTTS/index.ts +101 -0
  5183. package/tts/src/server/createOpenaiAudioSpeech.ts +24 -0
  5184. package/tts/src/server/createOpenaiAudioTranscriptions.ts +30 -0
  5185. package/tts/src/server/index.ts +8 -0
  5186. package/ui/src/A/index.tsx +21 -0
  5187. package/ui/src/Accordion/Accordion.test.tsx +80 -0
  5188. package/ui/src/Accordion/Accordion.tsx +170 -0
  5189. package/ui/src/Accordion/AccordionItem.tsx +519 -0
  5190. package/ui/src/Accordion/ArrowIcon.tsx +23 -0
  5191. package/ui/src/Accordion/context.tsx +87 -0
  5192. package/ui/src/Accordion/demos/Action.tsx +162 -0
  5193. package/ui/src/Accordion/demos/Padding.tsx +59 -0
  5194. package/ui/src/Accordion/demos/Standalone.tsx +75 -0
  5195. package/ui/src/Accordion/demos/data.tsx +37 -0
  5196. package/ui/src/Accordion/demos/index.tsx +92 -0
  5197. package/ui/src/Accordion/index.md +109 -0
  5198. package/ui/src/Accordion/index.ts +3 -0
  5199. package/ui/src/Accordion/style.ts +62 -0
  5200. package/ui/src/Accordion/type.ts +158 -0
  5201. package/ui/src/ActionIcon/ActionIcon.tsx +115 -0
  5202. package/ui/src/ActionIcon/components/utils.ts +50 -0
  5203. package/ui/src/ActionIcon/demos/CustomSize.tsx +42 -0
  5204. package/ui/src/ActionIcon/demos/DropdownMenu.tsx +18 -0
  5205. package/ui/src/ActionIcon/demos/Size.tsx +15 -0
  5206. package/ui/src/ActionIcon/demos/Variant.tsx +15 -0
  5207. package/ui/src/ActionIcon/demos/index.tsx +37 -0
  5208. package/ui/src/ActionIcon/index.md +73 -0
  5209. package/ui/src/ActionIcon/index.ts +2 -0
  5210. package/ui/src/ActionIcon/style.ts +105 -0
  5211. package/ui/src/ActionIcon/type.ts +29 -0
  5212. package/ui/src/ActionIconGroup/ActionIconGroup.tsx +105 -0
  5213. package/ui/src/ActionIconGroup/demos/data.tsx +40 -0
  5214. package/ui/src/ActionIconGroup/demos/index.tsx +35 -0
  5215. package/ui/src/ActionIconGroup/index.md +39 -0
  5216. package/ui/src/ActionIconGroup/index.ts +2 -0
  5217. package/ui/src/ActionIconGroup/style.ts +48 -0
  5218. package/ui/src/ActionIconGroup/type.ts +23 -0
  5219. package/ui/src/Alert/Alert.tsx +163 -0
  5220. package/ui/src/Alert/demos/Extra.tsx +56 -0
  5221. package/ui/src/Alert/demos/index.tsx +32 -0
  5222. package/ui/src/Alert/index.md +38 -0
  5223. package/ui/src/Alert/index.ts +2 -0
  5224. package/ui/src/Alert/style.ts +347 -0
  5225. package/ui/src/Alert/type.ts +34 -0
  5226. package/ui/src/AutoComplete/Select.tsx +27 -0
  5227. package/ui/src/AutoComplete/demos/index.tsx +42 -0
  5228. package/ui/src/AutoComplete/index.md +19 -0
  5229. package/ui/src/AutoComplete/index.ts +2 -0
  5230. package/ui/src/AutoComplete/style.ts +57 -0
  5231. package/ui/src/AutoComplete/type.ts +5 -0
  5232. package/ui/src/Avatar/Avatar.tsx +169 -0
  5233. package/ui/src/Avatar/AvatarGroup/index.tsx +101 -0
  5234. package/ui/src/Avatar/AvatarGroup/style.ts +19 -0
  5235. package/ui/src/Avatar/demos/Bordered.tsx +18 -0
  5236. package/ui/src/Avatar/demos/ErrorFallback.tsx +13 -0
  5237. package/ui/src/Avatar/demos/Group.tsx +49 -0
  5238. package/ui/src/Avatar/demos/Text.tsx +15 -0
  5239. package/ui/src/Avatar/demos/index.tsx +38 -0
  5240. package/ui/src/Avatar/index.md +76 -0
  5241. package/ui/src/Avatar/index.ts +17 -0
  5242. package/ui/src/Avatar/style.ts +70 -0
  5243. package/ui/src/Avatar/type.ts +60 -0
  5244. package/ui/src/Avatar/utils.ts +69 -0
  5245. package/ui/src/Block/Block.tsx +34 -0
  5246. package/ui/src/Block/demos/index.tsx +26 -0
  5247. package/ui/src/Block/index.md +22 -0
  5248. package/ui/src/Block/index.ts +2 -0
  5249. package/ui/src/Block/style.ts +70 -0
  5250. package/ui/src/Block/type.ts +11 -0
  5251. package/ui/src/Burger/Burger.tsx +94 -0
  5252. package/ui/src/Burger/demos/index.tsx +37 -0
  5253. package/ui/src/Burger/index.md +28 -0
  5254. package/ui/src/Burger/index.ts +2 -0
  5255. package/ui/src/Burger/style.ts +141 -0
  5256. package/ui/src/Burger/type.ts +23 -0
  5257. package/ui/src/Button/Button.tsx +75 -0
  5258. package/ui/src/Button/demos/Variant.tsx +119 -0
  5259. package/ui/src/Button/demos/index.tsx +43 -0
  5260. package/ui/src/Button/index.md +36 -0
  5261. package/ui/src/Button/index.ts +2 -0
  5262. package/ui/src/Button/style.ts +38 -0
  5263. package/ui/src/Button/type.ts +12 -0
  5264. package/ui/src/Checkbox/Checkbox.tsx +127 -0
  5265. package/ui/src/Checkbox/CheckboxGroup.tsx +71 -0
  5266. package/ui/src/Checkbox/demos/CheckboxGroup.tsx +35 -0
  5267. package/ui/src/Checkbox/demos/CheckboxGroupDisabled.tsx +38 -0
  5268. package/ui/src/Checkbox/demos/CheckboxGroupOptions.tsx +26 -0
  5269. package/ui/src/Checkbox/demos/CheckboxGroupUsage.tsx +39 -0
  5270. package/ui/src/Checkbox/demos/Indeterminate.tsx +33 -0
  5271. package/ui/src/Checkbox/demos/Size.tsx +17 -0
  5272. package/ui/src/Checkbox/demos/WithText.tsx +14 -0
  5273. package/ui/src/Checkbox/demos/index.tsx +29 -0
  5274. package/ui/src/Checkbox/index.md +102 -0
  5275. package/ui/src/Checkbox/index.ts +17 -0
  5276. package/ui/src/Checkbox/style.ts +30 -0
  5277. package/ui/src/Checkbox/type.ts +44 -0
  5278. package/ui/src/CodeDiff/CodeDiff.tsx +129 -0
  5279. package/ui/src/CodeDiff/DiffPanel.tsx +153 -0
  5280. package/ui/src/CodeDiff/PatchDiff.tsx +97 -0
  5281. package/ui/src/CodeDiff/demos/ActionsRender.tsx +35 -0
  5282. package/ui/src/CodeDiff/demos/FullFeatured.tsx +59 -0
  5283. package/ui/src/CodeDiff/demos/Patch.tsx +26 -0
  5284. package/ui/src/CodeDiff/demos/PatchFullFeatured.tsx +50 -0
  5285. package/ui/src/CodeDiff/demos/Unified.tsx +43 -0
  5286. package/ui/src/CodeDiff/demos/Variants.tsx +34 -0
  5287. package/ui/src/CodeDiff/demos/index.tsx +59 -0
  5288. package/ui/src/CodeDiff/index.md +71 -0
  5289. package/ui/src/CodeDiff/index.ts +3 -0
  5290. package/ui/src/CodeDiff/style.ts +200 -0
  5291. package/ui/src/CodeDiff/theme.ts +65 -0
  5292. package/ui/src/CodeDiff/type.ts +138 -0
  5293. package/ui/src/CodeEditor/CodeEditor.tsx +90 -0
  5294. package/ui/src/CodeEditor/demos/data.ts +201 -0
  5295. package/ui/src/CodeEditor/demos/index.tsx +28 -0
  5296. package/ui/src/CodeEditor/index.md +28 -0
  5297. package/ui/src/CodeEditor/index.ts +2 -0
  5298. package/ui/src/CodeEditor/style.ts +101 -0
  5299. package/ui/src/CodeEditor/type.ts +24 -0
  5300. package/ui/src/Collapse/Collapse.tsx +118 -0
  5301. package/ui/src/Collapse/demos/Padding.tsx +19 -0
  5302. package/ui/src/Collapse/demos/data.tsx +33 -0
  5303. package/ui/src/Collapse/demos/index.tsx +36 -0
  5304. package/ui/src/Collapse/index.md +39 -0
  5305. package/ui/src/Collapse/index.ts +2 -0
  5306. package/ui/src/Collapse/style.ts +205 -0
  5307. package/ui/src/Collapse/type.ts +35 -0
  5308. package/ui/src/ColorSwatches/ColorSwatches.tsx +152 -0
  5309. package/ui/src/ColorSwatches/demos/index.tsx +92 -0
  5310. package/ui/src/ColorSwatches/index.md +35 -0
  5311. package/ui/src/ColorSwatches/index.ts +2 -0
  5312. package/ui/src/ColorSwatches/style.ts +88 -0
  5313. package/ui/src/ColorSwatches/type.ts +25 -0
  5314. package/ui/src/ConfigProvider/demos/index.tsx +11 -0
  5315. package/ui/src/ConfigProvider/index.md +116 -0
  5316. package/ui/src/ConfigProvider/index.tsx +133 -0
  5317. package/ui/src/ContextMenu/demos/checkbox.tsx +82 -0
  5318. package/ui/src/ContextMenu/demos/desc.tsx +65 -0
  5319. package/ui/src/ContextMenu/demos/emptySubmenu.tsx +60 -0
  5320. package/ui/src/ContextMenu/demos/header-footer-scroll.tsx +43 -0
  5321. package/ui/src/ContextMenu/demos/header-footer.tsx +55 -0
  5322. package/ui/src/ContextMenu/demos/iconSpaceMode.tsx +135 -0
  5323. package/ui/src/ContextMenu/demos/imperative.tsx +115 -0
  5324. package/ui/src/ContextMenu/demos/switch.tsx +82 -0
  5325. package/ui/src/ContextMenu/demos/trigger.tsx +58 -0
  5326. package/ui/src/ContextMenu/demos/uploader.tsx +180 -0
  5327. package/ui/src/ContextMenu/index.md +79 -0
  5328. package/ui/src/ContextMenu/index.ts +1 -0
  5329. package/ui/src/CopyButton/CopyButton.tsx +38 -0
  5330. package/ui/src/CopyButton/demos/index.tsx +5 -0
  5331. package/ui/src/CopyButton/index.md +22 -0
  5332. package/ui/src/CopyButton/index.ts +2 -0
  5333. package/ui/src/CopyButton/type.ts +5 -0
  5334. package/ui/src/DatePicker/DatePicker.tsx +27 -0
  5335. package/ui/src/DatePicker/demos/index.tsx +29 -0
  5336. package/ui/src/DatePicker/index.md +18 -0
  5337. package/ui/src/DatePicker/index.ts +2 -0
  5338. package/ui/src/DatePicker/style.ts +33 -0
  5339. package/ui/src/DatePicker/type.ts +5 -0
  5340. package/ui/src/DownloadButton/DownloadButton.tsx +34 -0
  5341. package/ui/src/DownloadButton/demos/customFile.tsx +107 -0
  5342. package/ui/src/DownloadButton/demos/index.tsx +10 -0
  5343. package/ui/src/DownloadButton/index.md +28 -0
  5344. package/ui/src/DownloadButton/index.ts +2 -0
  5345. package/ui/src/DownloadButton/type.ts +7 -0
  5346. package/ui/src/DraggablePanel/DraggablePanel.tsx +566 -0
  5347. package/ui/src/DraggablePanel/components/DraggablePanelBody.tsx +19 -0
  5348. package/ui/src/DraggablePanel/components/DraggablePanelContainer.tsx +19 -0
  5349. package/ui/src/DraggablePanel/components/DraggablePanelFooter.tsx +29 -0
  5350. package/ui/src/DraggablePanel/components/DraggablePanelHeader.tsx +60 -0
  5351. package/ui/src/DraggablePanel/components/style.ts +31 -0
  5352. package/ui/src/DraggablePanel/demos/DragToCollapse.tsx +32 -0
  5353. package/ui/src/DraggablePanel/demos/Layout.tsx +48 -0
  5354. package/ui/src/DraggablePanel/demos/StableLayout.tsx +189 -0
  5355. package/ui/src/DraggablePanel/demos/index.tsx +67 -0
  5356. package/ui/src/DraggablePanel/index.md +51 -0
  5357. package/ui/src/DraggablePanel/index.ts +44 -0
  5358. package/ui/src/DraggablePanel/style.ts +471 -0
  5359. package/ui/src/DraggablePanel/type.ts +51 -0
  5360. package/ui/src/DraggablePanel/utils.ts +18 -0
  5361. package/ui/src/DraggableSideNav/DraggableSideNav.tsx +562 -0
  5362. package/ui/src/DraggableSideNav/demos/Body.tsx +84 -0
  5363. package/ui/src/DraggableSideNav/demos/Footer.tsx +7 -0
  5364. package/ui/src/DraggableSideNav/demos/Header.tsx +74 -0
  5365. package/ui/src/DraggableSideNav/demos/data.tsx +145 -0
  5366. package/ui/src/DraggableSideNav/demos/index.tsx +123 -0
  5367. package/ui/src/DraggableSideNav/index.md +63 -0
  5368. package/ui/src/DraggableSideNav/index.ts +2 -0
  5369. package/ui/src/DraggableSideNav/style.ts +263 -0
  5370. package/ui/src/DraggableSideNav/type.ts +122 -0
  5371. package/ui/src/Drawer/Drawer.tsx +203 -0
  5372. package/ui/src/Drawer/demos/Sidebar.tsx +91 -0
  5373. package/ui/src/Drawer/demos/index.tsx +40 -0
  5374. package/ui/src/Drawer/index.md +37 -0
  5375. package/ui/src/Drawer/index.ts +2 -0
  5376. package/ui/src/Drawer/type.ts +27 -0
  5377. package/ui/src/Dropdown/Dropdown.tsx +44 -0
  5378. package/ui/src/Dropdown/demos/ContextMenu.tsx +19 -0
  5379. package/ui/src/Dropdown/demos/data.tsx +27 -0
  5380. package/ui/src/Dropdown/demos/index.tsx +11 -0
  5381. package/ui/src/Dropdown/index.md +40 -0
  5382. package/ui/src/Dropdown/index.ts +2 -0
  5383. package/ui/src/Dropdown/type.ts +11 -0
  5384. package/ui/src/DropdownMenu/demos/atoms.tsx +66 -0
  5385. package/ui/src/DropdownMenu/demos/checkbox.tsx +40 -0
  5386. package/ui/src/DropdownMenu/demos/custom-trigger.tsx +68 -0
  5387. package/ui/src/DropdownMenu/demos/danger.tsx +11 -0
  5388. package/ui/src/DropdownMenu/demos/data.tsx +142 -0
  5389. package/ui/src/DropdownMenu/demos/desc.tsx +78 -0
  5390. package/ui/src/DropdownMenu/demos/group.tsx +11 -0
  5391. package/ui/src/DropdownMenu/demos/header-footer-scroll.tsx +46 -0
  5392. package/ui/src/DropdownMenu/demos/header-footer.tsx +43 -0
  5393. package/ui/src/DropdownMenu/demos/hover.tsx +11 -0
  5394. package/ui/src/DropdownMenu/demos/iconAlign.tsx +84 -0
  5395. package/ui/src/DropdownMenu/demos/iconSpaceMode.tsx +112 -0
  5396. package/ui/src/DropdownMenu/demos/index.tsx +52 -0
  5397. package/ui/src/DropdownMenu/demos/lazy.tsx +17 -0
  5398. package/ui/src/DropdownMenu/demos/link-label.tsx +64 -0
  5399. package/ui/src/DropdownMenu/demos/plus-action-submenu.tsx +384 -0
  5400. package/ui/src/DropdownMenu/demos/submenu.tsx +11 -0
  5401. package/ui/src/DropdownMenu/demos/switch-mixed.tsx +45 -0
  5402. package/ui/src/DropdownMenu/demos/switch.tsx +42 -0
  5403. package/ui/src/DropdownMenu/demos/tooltip-hover-stay.tsx +73 -0
  5404. package/ui/src/DropdownMenu/demos/uploader.tsx +184 -0
  5405. package/ui/src/DropdownMenu/index.md +148 -0
  5406. package/ui/src/DropdownMenu/index.ts +2 -0
  5407. package/ui/src/EditableText/ControlInput.tsx +124 -0
  5408. package/ui/src/EditableText/EditableText.tsx +129 -0
  5409. package/ui/src/EditableText/demos/index.tsx +16 -0
  5410. package/ui/src/EditableText/index.md +30 -0
  5411. package/ui/src/EditableText/index.ts +2 -0
  5412. package/ui/src/EditableText/type.ts +49 -0
  5413. package/ui/src/EditorSlashMenu/EditorSlashMenu.tsx +236 -0
  5414. package/ui/src/EditorSlashMenu/MenuItemRenderer.tsx +63 -0
  5415. package/ui/src/EditorSlashMenu/atoms.tsx +188 -0
  5416. package/ui/src/EditorSlashMenu/demos/index.tsx +243 -0
  5417. package/ui/src/EditorSlashMenu/index.md +10 -0
  5418. package/ui/src/EditorSlashMenu/index.ts +20 -0
  5419. package/ui/src/EditorSlashMenu/style.ts +26 -0
  5420. package/ui/src/EditorSlashMenu/type.ts +56 -0
  5421. package/ui/src/EditorSlashMenu/useKeyboardNavigation.ts +53 -0
  5422. package/ui/src/EditorSlashMenu/useNormalizedItems.ts +44 -0
  5423. package/ui/src/EditorSlashMenu/utils.ts +21 -0
  5424. package/ui/src/EmojiPicker/AvatarUploader.tsx +132 -0
  5425. package/ui/src/EmojiPicker/EmojiPicker.tsx +253 -0
  5426. package/ui/src/EmojiPicker/demos/Control.tsx +14 -0
  5427. package/ui/src/EmojiPicker/demos/CustomEmoji.tsx +27 -0
  5428. package/ui/src/EmojiPicker/demos/CustomTabs.tsx +22 -0
  5429. package/ui/src/EmojiPicker/demos/ModelAvatar.tsx +3 -0
  5430. package/ui/src/EmojiPicker/demos/Upload.tsx +21 -0
  5431. package/ui/src/EmojiPicker/demos/index.tsx +3 -0
  5432. package/ui/src/EmojiPicker/index.md +68 -0
  5433. package/ui/src/EmojiPicker/index.ts +2 -0
  5434. package/ui/src/EmojiPicker/style.ts +42 -0
  5435. package/ui/src/EmojiPicker/type.ts +75 -0
  5436. package/ui/src/Empty/Empty.tsx +110 -0
  5437. package/ui/src/Empty/demos/WithAction.tsx +9 -0
  5438. package/ui/src/Empty/demos/WithEmoji.tsx +3 -0
  5439. package/ui/src/Empty/demos/WithIcon.tsx +6 -0
  5440. package/ui/src/Empty/demos/index.tsx +57 -0
  5441. package/ui/src/Empty/index.md +42 -0
  5442. package/ui/src/Empty/index.ts +2 -0
  5443. package/ui/src/Empty/type.ts +22 -0
  5444. package/ui/src/FileTypeIcon/FileTypeIcon.tsx +97 -0
  5445. package/ui/src/FileTypeIcon/components/FileIcon.tsx +66 -0
  5446. package/ui/src/FileTypeIcon/components/FolderIcon.tsx +60 -0
  5447. package/ui/src/FileTypeIcon/demos/Icon.tsx +83 -0
  5448. package/ui/src/FileTypeIcon/demos/index.tsx +31 -0
  5449. package/ui/src/FileTypeIcon/index.md +25 -0
  5450. package/ui/src/FileTypeIcon/index.ts +2 -0
  5451. package/ui/src/FileTypeIcon/style.ts +18 -0
  5452. package/ui/src/FileTypeIcon/type.ts +15 -0
  5453. package/ui/src/Flex/Center.tsx +12 -0
  5454. package/ui/src/Flex/FlexBasic.tsx +85 -0
  5455. package/ui/src/Flex/Flexbox.tsx +2 -0
  5456. package/ui/src/Flex/demos/alignment.tsx +78 -0
  5457. package/ui/src/Flex/demos/basic.tsx +11 -0
  5458. package/ui/src/Flex/demos/center.tsx +27 -0
  5459. package/ui/src/Flex/demos/direction.tsx +34 -0
  5460. package/ui/src/Flex/demos/gap.tsx +34 -0
  5461. package/ui/src/Flex/demos/wrap.tsx +52 -0
  5462. package/ui/src/Flex/index.md +104 -0
  5463. package/ui/src/Flex/index.ts +10 -0
  5464. package/ui/src/Flex/style.css +36 -0
  5465. package/ui/src/Flex/type.ts +153 -0
  5466. package/ui/src/Flex/utils.ts +40 -0
  5467. package/ui/src/FluentEmoji/FluentEmoji.tsx +64 -0
  5468. package/ui/src/FluentEmoji/demos/index.tsx +38 -0
  5469. package/ui/src/FluentEmoji/index.md +34 -0
  5470. package/ui/src/FluentEmoji/index.ts +2 -0
  5471. package/ui/src/FluentEmoji/style.ts +11 -0
  5472. package/ui/src/FluentEmoji/type.ts +12 -0
  5473. package/ui/src/FluentEmoji/utils.ts +68 -0
  5474. package/ui/src/FontLoader/index.md +12 -0
  5475. package/ui/src/FontLoader/index.tsx +43 -0
  5476. package/ui/src/Footer/Footer.tsx +48 -0
  5477. package/ui/src/Footer/demos/index.tsx +48 -0
  5478. package/ui/src/Footer/index.md +21 -0
  5479. package/ui/src/Footer/index.ts +2 -0
  5480. package/ui/src/Footer/style.ts +211 -0
  5481. package/ui/src/Footer/type.ts +11 -0
  5482. package/ui/src/Form/Form.tsx +146 -0
  5483. package/ui/src/Form/components/FormDivider.tsx +33 -0
  5484. package/ui/src/Form/components/FormFlatGroup.tsx +29 -0
  5485. package/ui/src/Form/components/FormFooter.tsx +29 -0
  5486. package/ui/src/Form/components/FormGroup.tsx +84 -0
  5487. package/ui/src/Form/components/FormItem.tsx +65 -0
  5488. package/ui/src/Form/components/FormProvider.tsx +22 -0
  5489. package/ui/src/Form/components/FormSubmitFooter.tsx +175 -0
  5490. package/ui/src/Form/components/FormTitle.tsx +55 -0
  5491. package/ui/src/Form/components/merge.ts +78 -0
  5492. package/ui/src/Form/demos/Flat.tsx +68 -0
  5493. package/ui/src/Form/demos/StateControl.tsx +147 -0
  5494. package/ui/src/Form/demos/SubmitFooter.tsx +52 -0
  5495. package/ui/src/Form/demos/data.tsx +87 -0
  5496. package/ui/src/Form/demos/index.tsx +50 -0
  5497. package/ui/src/Form/index.md +72 -0
  5498. package/ui/src/Form/index.ts +37 -0
  5499. package/ui/src/Form/style.ts +312 -0
  5500. package/ui/src/Form/type.ts +125 -0
  5501. package/ui/src/FormModal/FormModal.tsx +144 -0
  5502. package/ui/src/FormModal/demos/Error.tsx +125 -0
  5503. package/ui/src/FormModal/demos/Flat.tsx +96 -0
  5504. package/ui/src/FormModal/demos/MultiForm.tsx +86 -0
  5505. package/ui/src/FormModal/demos/data.tsx +77 -0
  5506. package/ui/src/FormModal/demos/index.tsx +67 -0
  5507. package/ui/src/FormModal/index.md +53 -0
  5508. package/ui/src/FormModal/index.ts +2 -0
  5509. package/ui/src/FormModal/style.ts +42 -0
  5510. package/ui/src/FormModal/type.ts +48 -0
  5511. package/ui/src/Freeze/Freeze.test.tsx +72 -0
  5512. package/ui/src/Freeze/Freeze.tsx +98 -0
  5513. package/ui/src/Freeze/demos/index.tsx +29 -0
  5514. package/ui/src/Freeze/index.md +20 -0
  5515. package/ui/src/Freeze/index.ts +2 -0
  5516. package/ui/src/Freeze/type.ts +6 -0
  5517. package/ui/src/Grid/Grid.tsx +51 -0
  5518. package/ui/src/Grid/demos/index.tsx +36 -0
  5519. package/ui/src/Grid/index.md +23 -0
  5520. package/ui/src/Grid/index.ts +2 -0
  5521. package/ui/src/Grid/style.ts +18 -0
  5522. package/ui/src/Grid/type.ts +10 -0
  5523. package/ui/src/GroupAvatar/GroupAvatar.tsx +87 -0
  5524. package/ui/src/GroupAvatar/demos/CornerShape.tsx +45 -0
  5525. package/ui/src/GroupAvatar/demos/index.tsx +77 -0
  5526. package/ui/src/GroupAvatar/index.md +59 -0
  5527. package/ui/src/GroupAvatar/index.ts +2 -0
  5528. package/ui/src/GroupAvatar/style.ts +51 -0
  5529. package/ui/src/GroupAvatar/type.ts +16 -0
  5530. package/ui/src/GuideCard/GuideCard.tsx +85 -0
  5531. package/ui/src/GuideCard/demos/index.tsx +28 -0
  5532. package/ui/src/GuideCard/index.md +32 -0
  5533. package/ui/src/GuideCard/index.tsx +2 -0
  5534. package/ui/src/GuideCard/style.ts +85 -0
  5535. package/ui/src/GuideCard/type.ts +31 -0
  5536. package/ui/src/Header/Header.tsx +94 -0
  5537. package/ui/src/Header/demos/index.tsx +6 -0
  5538. package/ui/src/Header/index.md +26 -0
  5539. package/ui/src/Header/index.ts +2 -0
  5540. package/ui/src/Header/style.ts +41 -0
  5541. package/ui/src/Header/type.ts +16 -0
  5542. package/ui/src/Highlighter/FullFeatured.tsx +198 -0
  5543. package/ui/src/Highlighter/Highlighter.tsx +165 -0
  5544. package/ui/src/Highlighter/LangSelect.tsx +77 -0
  5545. package/ui/src/Highlighter/SyntaxHighlighter/StaticRenderer.tsx +60 -0
  5546. package/ui/src/Highlighter/SyntaxHighlighter/StreamRenderer.tsx +109 -0
  5547. package/ui/src/Highlighter/SyntaxHighlighter/index.tsx +69 -0
  5548. package/ui/src/Highlighter/SyntaxHighlighter/style.ts +170 -0
  5549. package/ui/src/Highlighter/const.ts +56 -0
  5550. package/ui/src/Highlighter/demos/ActionsRender.tsx +27 -0
  5551. package/ui/src/Highlighter/demos/FullFeatured.tsx +38 -0
  5552. package/ui/src/Highlighter/demos/data.ts +78 -0
  5553. package/ui/src/Highlighter/demos/index.tsx +36 -0
  5554. package/ui/src/Highlighter/index.md +52 -0
  5555. package/ui/src/Highlighter/index.ts +4 -0
  5556. package/ui/src/Highlighter/style.ts +198 -0
  5557. package/ui/src/Highlighter/theme/hubstr-theme.ts +527 -0
  5558. package/ui/src/Highlighter/type.ts +53 -0
  5559. package/ui/src/Hotkey/Hotkey.tsx +157 -0
  5560. package/ui/src/Hotkey/const.ts +36 -0
  5561. package/ui/src/Hotkey/demos/InverseTheme.tsx +12 -0
  5562. package/ui/src/Hotkey/demos/MacStyle.tsx +30 -0
  5563. package/ui/src/Hotkey/demos/Mouse.tsx +15 -0
  5564. package/ui/src/Hotkey/demos/index.tsx +24 -0
  5565. package/ui/src/Hotkey/index.md +93 -0
  5566. package/ui/src/Hotkey/index.ts +4 -0
  5567. package/ui/src/Hotkey/style.ts +76 -0
  5568. package/ui/src/Hotkey/type.ts +17 -0
  5569. package/ui/src/Hotkey/utils.test.ts +99 -0
  5570. package/ui/src/Hotkey/utils.ts +57 -0
  5571. package/ui/src/HotkeyInput/HotkeyInput.tsx +306 -0
  5572. package/ui/src/HotkeyInput/demos/index.tsx +45 -0
  5573. package/ui/src/HotkeyInput/index.md +43 -0
  5574. package/ui/src/HotkeyInput/index.ts +2 -0
  5575. package/ui/src/HotkeyInput/style.ts +84 -0
  5576. package/ui/src/HotkeyInput/type.ts +30 -0
  5577. package/ui/src/HtmlPreview/HtmlPreview.tsx +507 -0
  5578. package/ui/src/HtmlPreview/Iframe.tsx +242 -0
  5579. package/ui/src/HtmlPreview/buildShellSrcDoc.test.ts +42 -0
  5580. package/ui/src/HtmlPreview/buildShellSrcDoc.ts +239 -0
  5581. package/ui/src/HtmlPreview/buildStaticSrcDoc.test.ts +48 -0
  5582. package/ui/src/HtmlPreview/buildStaticSrcDoc.ts +64 -0
  5583. package/ui/src/HtmlPreview/const.test.ts +54 -0
  5584. package/ui/src/HtmlPreview/const.ts +61 -0
  5585. package/ui/src/HtmlPreview/demos/HeadResources.tsx +194 -0
  5586. package/ui/src/HtmlPreview/demos/InMarkdown.tsx +40 -0
  5587. package/ui/src/HtmlPreview/demos/Report.tsx +9 -0
  5588. package/ui/src/HtmlPreview/demos/SlowStream.tsx +65 -0
  5589. package/ui/src/HtmlPreview/demos/Streaming.tsx +80 -0
  5590. package/ui/src/HtmlPreview/demos/data.tsx +60 -0
  5591. package/ui/src/HtmlPreview/demos/index.tsx +35 -0
  5592. package/ui/src/HtmlPreview/demos/jesusTimelineHtml.ts +324 -0
  5593. package/ui/src/HtmlPreview/demos/reportHtml.ts +331 -0
  5594. package/ui/src/HtmlPreview/index.md +113 -0
  5595. package/ui/src/HtmlPreview/index.ts +11 -0
  5596. package/ui/src/HtmlPreview/injectAutoHeightScript.ts +33 -0
  5597. package/ui/src/HtmlPreview/injectStorageShim.ts +57 -0
  5598. package/ui/src/HtmlPreview/type.ts +114 -0
  5599. package/ui/src/Icon/Icon.tsx +75 -0
  5600. package/ui/src/Icon/components/IconProvider.tsx +19 -0
  5601. package/ui/src/Icon/components/utils.ts +41 -0
  5602. package/ui/src/Icon/demos/CustomSize.tsx +30 -0
  5603. package/ui/src/Icon/demos/index.tsx +27 -0
  5604. package/ui/src/Icon/index.md +70 -0
  5605. package/ui/src/Icon/index.ts +3 -0
  5606. package/ui/src/Icon/style.ts +32 -0
  5607. package/ui/src/Icon/type.ts +22 -0
  5608. package/ui/src/Image/Image.tsx +95 -0
  5609. package/ui/src/Image/PreviewGroup.tsx +25 -0
  5610. package/ui/src/Image/components/Preview.tsx +28 -0
  5611. package/ui/src/Image/components/Toolbar.tsx +140 -0
  5612. package/ui/src/Image/components/usePreview.tsx +69 -0
  5613. package/ui/src/Image/components/usePreviewGroup.tsx +67 -0
  5614. package/ui/src/Image/demos/CustomActions.tsx +13 -0
  5615. package/ui/src/Image/demos/Fallback.tsx +7 -0
  5616. package/ui/src/Image/demos/Gallery.tsx +22 -0
  5617. package/ui/src/Image/demos/index.tsx +23 -0
  5618. package/ui/src/Image/index.md +63 -0
  5619. package/ui/src/Image/index.ts +17 -0
  5620. package/ui/src/Image/style.ts +168 -0
  5621. package/ui/src/Image/type.ts +43 -0
  5622. package/ui/src/ImageSelect/ImageSelect.tsx +76 -0
  5623. package/ui/src/ImageSelect/demos/index.tsx +26 -0
  5624. package/ui/src/ImageSelect/index.md +38 -0
  5625. package/ui/src/ImageSelect/index.tsx +2 -0
  5626. package/ui/src/ImageSelect/styles.ts +32 -0
  5627. package/ui/src/ImageSelect/type.ts +32 -0
  5628. package/ui/src/Img/index.tsx +29 -0
  5629. package/ui/src/Input/Input.tsx +28 -0
  5630. package/ui/src/Input/InputNumber.tsx +28 -0
  5631. package/ui/src/Input/InputOPT.tsx +28 -0
  5632. package/ui/src/Input/InputPassword.tsx +28 -0
  5633. package/ui/src/Input/TextArea.tsx +34 -0
  5634. package/ui/src/Input/demos/InputNumber.tsx +23 -0
  5635. package/ui/src/Input/demos/InputOPT.tsx +22 -0
  5636. package/ui/src/Input/demos/InputPassword.tsx +23 -0
  5637. package/ui/src/Input/demos/TextArea.tsx +24 -0
  5638. package/ui/src/Input/demos/index.tsx +23 -0
  5639. package/ui/src/Input/index.md +76 -0
  5640. package/ui/src/Input/index.tsx +6 -0
  5641. package/ui/src/Input/style.ts +104 -0
  5642. package/ui/src/Input/type.ts +36 -0
  5643. package/ui/src/Layout/Layout.tsx +64 -0
  5644. package/ui/src/Layout/components/LayoutFooter.tsx +19 -0
  5645. package/ui/src/Layout/components/LayoutHeader.tsx +28 -0
  5646. package/ui/src/Layout/components/LayoutMain.tsx +19 -0
  5647. package/ui/src/Layout/components/LayoutSidebar.tsx +28 -0
  5648. package/ui/src/Layout/components/LayoutSidebarInner.tsx +23 -0
  5649. package/ui/src/Layout/components/LayoutToc.tsx +25 -0
  5650. package/ui/src/Layout/demos/index.tsx +44 -0
  5651. package/ui/src/Layout/index.md +47 -0
  5652. package/ui/src/Layout/index.ts +38 -0
  5653. package/ui/src/Layout/style.ts +48 -0
  5654. package/ui/src/Layout/type.ts +35 -0
  5655. package/ui/src/List/List.tsx +50 -0
  5656. package/ui/src/List/ListItem/index.tsx +135 -0
  5657. package/ui/src/List/ListItem/style.ts +67 -0
  5658. package/ui/src/List/ListItem/time.ts +9 -0
  5659. package/ui/src/List/demos/index.tsx +86 -0
  5660. package/ui/src/List/index.md +11 -0
  5661. package/ui/src/List/index.ts +18 -0
  5662. package/ui/src/List/type.ts +50 -0
  5663. package/ui/src/Markdown/Markdown.tsx +130 -0
  5664. package/ui/src/Markdown/SyntaxMarkdown/CachedMarkdown.tsx +122 -0
  5665. package/ui/src/Markdown/SyntaxMarkdown/MarkdownRender.tsx +34 -0
  5666. package/ui/src/Markdown/SyntaxMarkdown/StreamdownRender.tsx +463 -0
  5667. package/ui/src/Markdown/SyntaxMarkdown/fenceState.test.ts +55 -0
  5668. package/ui/src/Markdown/SyntaxMarkdown/fenceState.ts +37 -0
  5669. package/ui/src/Markdown/SyntaxMarkdown/index.tsx +2 -0
  5670. package/ui/src/Markdown/SyntaxMarkdown/streamAnimationMeta.test.ts +44 -0
  5671. package/ui/src/Markdown/SyntaxMarkdown/streamAnimationMeta.ts +36 -0
  5672. package/ui/src/Markdown/SyntaxMarkdown/style.ts +30 -0
  5673. package/ui/src/Markdown/SyntaxMarkdown/useSmoothStreamContent.ts +459 -0
  5674. package/ui/src/Markdown/SyntaxMarkdown/useStreamQueue.ts +120 -0
  5675. package/ui/src/Markdown/Typography.tsx +45 -0
  5676. package/ui/src/Markdown/components/CodeBlock.tsx +97 -0
  5677. package/ui/src/Markdown/components/Footnotes.tsx +105 -0
  5678. package/ui/src/Markdown/components/MarkdownProvider.tsx +27 -0
  5679. package/ui/src/Markdown/components/MarkdownTable/hastTableToMarkdown.test.ts +73 -0
  5680. package/ui/src/Markdown/components/MarkdownTable/hastTableToMarkdown.ts +148 -0
  5681. package/ui/src/Markdown/components/MarkdownTable/index.tsx +86 -0
  5682. package/ui/src/Markdown/components/SearchResultCards/SearchResultCard.tsx +70 -0
  5683. package/ui/src/Markdown/components/SearchResultCards/index.tsx +47 -0
  5684. package/ui/src/Markdown/components/SearchResultCards/style.ts +20 -0
  5685. package/ui/src/Markdown/components/useDelayedAnimated.ts +23 -0
  5686. package/ui/src/Markdown/demos/StreamingPlayground.tsx +463 -0
  5687. package/ui/src/Markdown/demos/advanced/alerts.tsx +37 -0
  5688. package/ui/src/Markdown/demos/advanced/htmlPreview.tsx +44 -0
  5689. package/ui/src/Markdown/demos/advanced/htmlPreviewArticle.tsx +153 -0
  5690. package/ui/src/Markdown/demos/advanced/htmlPreviewReport.tsx +81 -0
  5691. package/ui/src/Markdown/demos/advanced/htmlPreviewStream.tsx +81 -0
  5692. package/ui/src/Markdown/demos/advanced/math.tsx +91 -0
  5693. package/ui/src/Markdown/demos/advanced/mermaid.tsx +30 -0
  5694. package/ui/src/Markdown/demos/basic/br.tsx +75 -0
  5695. package/ui/src/Markdown/demos/basic/headings.tsx +55 -0
  5696. package/ui/src/Markdown/demos/basic/links.tsx +58 -0
  5697. package/ui/src/Markdown/demos/basic/lists/basic-lists.tsx +80 -0
  5698. package/ui/src/Markdown/demos/basic/lists/task-lists.tsx +60 -0
  5699. package/ui/src/Markdown/demos/basic/paragraphs.tsx +66 -0
  5700. package/ui/src/Markdown/demos/basic/quotes.tsx +49 -0
  5701. package/ui/src/Markdown/demos/basic/stylingText.tsx +61 -0
  5702. package/ui/src/Markdown/demos/basic/tables.tsx +58 -0
  5703. package/ui/src/Markdown/demos/code/code.tsx +59 -0
  5704. package/ui/src/Markdown/demos/code/codeBlocks.tsx +77 -0
  5705. package/ui/src/Markdown/demos/code/colors.tsx +46 -0
  5706. package/ui/src/Markdown/demos/code/customHighlight.tsx +55 -0
  5707. package/ui/src/Markdown/demos/code/transformer.tsx +69 -0
  5708. package/ui/src/Markdown/demos/content.ts +204 -0
  5709. package/ui/src/Markdown/demos/createLocalStream.ts +75 -0
  5710. package/ui/src/Markdown/demos/custom/citations/cases.ts +115 -0
  5711. package/ui/src/Markdown/demos/custom/citations/index.tsx +53 -0
  5712. package/ui/src/Markdown/demos/custom/components.tsx +43 -0
  5713. package/ui/src/Markdown/demos/custom/plugins/MarkdownElements/AntArtifact/Component.tsx +71 -0
  5714. package/ui/src/Markdown/demos/custom/plugins/MarkdownElements/AntArtifact/index.tsx +10 -0
  5715. package/ui/src/Markdown/demos/custom/plugins/MarkdownElements/AntArtifact/rehypePlugin.ts +53 -0
  5716. package/ui/src/Markdown/demos/custom/plugins/MarkdownElements/AntThinking/Component.tsx +77 -0
  5717. package/ui/src/Markdown/demos/custom/plugins/MarkdownElements/AntThinking/index.tsx +10 -0
  5718. package/ui/src/Markdown/demos/custom/plugins/MarkdownElements/AntThinking/rehypePlugin.test.ts +172 -0
  5719. package/ui/src/Markdown/demos/custom/plugins/MarkdownElements/AntThinking/rehypePlugin.ts +32 -0
  5720. package/ui/src/Markdown/demos/custom/plugins/MarkdownElements/index.ts +4 -0
  5721. package/ui/src/Markdown/demos/custom/plugins/index.tsx +60 -0
  5722. package/ui/src/Markdown/demos/custom/plugins/utils.test.ts +50 -0
  5723. package/ui/src/Markdown/demos/custom/plugins/utils.ts +8 -0
  5724. package/ui/src/Markdown/demos/custom/thinking/content.ts +82 -0
  5725. package/ui/src/Markdown/demos/custom/thinking/index.tsx +34 -0
  5726. package/ui/src/Markdown/demos/custom/thinking/remarkPlugin.ts +72 -0
  5727. package/ui/src/Markdown/demos/footnotes/customFootnotes.tsx +31 -0
  5728. package/ui/src/Markdown/demos/footnotes/footnotes.tsx +51 -0
  5729. package/ui/src/Markdown/demos/index.tsx +152 -0
  5730. package/ui/src/Markdown/demos/media/images.tsx +26 -0
  5731. package/ui/src/Markdown/demos/media/videos.tsx +46 -0
  5732. package/ui/src/Markdown/demos/streaming.tsx +5 -0
  5733. package/ui/src/Markdown/demos/streamingAnimationRepro.tsx +364 -0
  5734. package/ui/src/Markdown/demos/streamingBench.tsx +81 -0
  5735. package/ui/src/Markdown/demos/streamingProfiler.tsx +5 -0
  5736. package/ui/src/Markdown/demos/variant.tsx +27 -0
  5737. package/ui/src/Markdown/index.md +329 -0
  5738. package/ui/src/Markdown/index.ts +3 -0
  5739. package/ui/src/Markdown/markdown.style.ts +406 -0
  5740. package/ui/src/Markdown/plugins/rehypeCustomFootnotes.ts +35 -0
  5741. package/ui/src/Markdown/plugins/rehypeKatexDir.ts +13 -0
  5742. package/ui/src/Markdown/plugins/rehypeStreamAnimated.test.ts +103 -0
  5743. package/ui/src/Markdown/plugins/rehypeStreamAnimated.ts +180 -0
  5744. package/ui/src/Markdown/plugins/remarkBr.ts +84 -0
  5745. package/ui/src/Markdown/plugins/remarkColor.ts +175 -0
  5746. package/ui/src/Markdown/plugins/remarkCustomFootnotes.ts +39 -0
  5747. package/ui/src/Markdown/plugins/remarkGfmPlus.ts +148 -0
  5748. package/ui/src/Markdown/plugins/remarkVideo.ts +169 -0
  5749. package/ui/src/Markdown/streamProfiler/StreamdownProfilerPanel.tsx +472 -0
  5750. package/ui/src/Markdown/streamProfiler/StreamdownProfilerProvider.tsx +23 -0
  5751. package/ui/src/Markdown/streamProfiler/index.ts +21 -0
  5752. package/ui/src/Markdown/streamProfiler/profiler.test.ts +168 -0
  5753. package/ui/src/Markdown/streamProfiler/profiler.ts +610 -0
  5754. package/ui/src/Markdown/style.ts +220 -0
  5755. package/ui/src/Markdown/type.ts +70 -0
  5756. package/ui/src/MaskShadow/MaskShadow.tsx +38 -0
  5757. package/ui/src/MaskShadow/demos/index.tsx +32 -0
  5758. package/ui/src/MaskShadow/index.md +18 -0
  5759. package/ui/src/MaskShadow/index.ts +2 -0
  5760. package/ui/src/MaskShadow/style.ts +65 -0
  5761. package/ui/src/MaskShadow/type.ts +7 -0
  5762. package/ui/src/MaterialFileTypeIcon/MaterialFileTypeIcon.tsx +78 -0
  5763. package/ui/src/MaterialFileTypeIcon/demos/index.tsx +31 -0
  5764. package/ui/src/MaterialFileTypeIcon/icon-map.json +4915 -0
  5765. package/ui/src/MaterialFileTypeIcon/index.md +21 -0
  5766. package/ui/src/MaterialFileTypeIcon/index.ts +2 -0
  5767. package/ui/src/MaterialFileTypeIcon/type.ts +16 -0
  5768. package/ui/src/MaterialFileTypeIcon/utils.ts +80 -0
  5769. package/ui/src/Menu/Menu.tsx +71 -0
  5770. package/ui/src/Menu/baseItem.ts +74 -0
  5771. package/ui/src/Menu/checkboxItem.ts +23 -0
  5772. package/ui/src/Menu/demos/data.tsx +70 -0
  5773. package/ui/src/Menu/demos/index.tsx +52 -0
  5774. package/ui/src/Menu/index.md +36 -0
  5775. package/ui/src/Menu/index.ts +17 -0
  5776. package/ui/src/Menu/renderUtils.tsx +81 -0
  5777. package/ui/src/Menu/style.ts +71 -0
  5778. package/ui/src/Menu/switchItem.ts +23 -0
  5779. package/ui/src/Menu/type.ts +66 -0
  5780. package/ui/src/Menu/utils.tsx +29 -0
  5781. package/ui/src/Mermaid/FullFeatured.tsx +152 -0
  5782. package/ui/src/Mermaid/Mermaid.tsx +126 -0
  5783. package/ui/src/Mermaid/SyntaxMermaid/StaticMermaid.tsx +117 -0
  5784. package/ui/src/Mermaid/SyntaxMermaid/StreamMermaid.tsx +123 -0
  5785. package/ui/src/Mermaid/SyntaxMermaid/index.tsx +69 -0
  5786. package/ui/src/Mermaid/SyntaxMermaid/style.ts +87 -0
  5787. package/ui/src/Mermaid/const.ts +37 -0
  5788. package/ui/src/Mermaid/demos/ActionsRender.tsx +27 -0
  5789. package/ui/src/Mermaid/demos/FullFeatured.tsx +34 -0
  5790. package/ui/src/Mermaid/demos/data.tsx +5 -0
  5791. package/ui/src/Mermaid/demos/index.tsx +34 -0
  5792. package/ui/src/Mermaid/index.md +404 -0
  5793. package/ui/src/Mermaid/index.ts +4 -0
  5794. package/ui/src/Mermaid/postProcessMermaidSvg.test.ts +223 -0
  5795. package/ui/src/Mermaid/postProcessMermaidSvg.ts +367 -0
  5796. package/ui/src/Mermaid/type.ts +48 -0
  5797. package/ui/src/Modal/Modal.tsx +187 -0
  5798. package/ui/src/Modal/ModalProvider.tsx +21 -0
  5799. package/ui/src/Modal/ModalStackItem.tsx +64 -0
  5800. package/ui/src/Modal/RawModalStackItem.tsx +57 -0
  5801. package/ui/src/Modal/demos/imperative.tsx +39 -0
  5802. package/ui/src/Modal/demos/index.tsx +29 -0
  5803. package/ui/src/Modal/demos/raw.tsx +39 -0
  5804. package/ui/src/Modal/imperative.tsx +277 -0
  5805. package/ui/src/Modal/index.md +106 -0
  5806. package/ui/src/Modal/index.ts +4 -0
  5807. package/ui/src/Modal/style.ts +57 -0
  5808. package/ui/src/Modal/type.ts +59 -0
  5809. package/ui/src/MotionProvider/index.md +74 -0
  5810. package/ui/src/MotionProvider/index.tsx +26 -0
  5811. package/ui/src/NeuralNetworkLoading/NeuralNetworkLoading.tsx +146 -0
  5812. package/ui/src/NeuralNetworkLoading/demos/index.tsx +18 -0
  5813. package/ui/src/NeuralNetworkLoading/index.md +18 -0
  5814. package/ui/src/NeuralNetworkLoading/index.ts +2 -0
  5815. package/ui/src/NeuralNetworkLoading/type.ts +8 -0
  5816. package/ui/src/Popover/index.ts +2 -0
  5817. package/ui/src/Provider.tsx +7 -0
  5818. package/ui/src/ScrollArea/ScrollArea.tsx +37 -0
  5819. package/ui/src/ScrollArea/atoms.tsx +120 -0
  5820. package/ui/src/ScrollArea/demos/background.tsx +79 -0
  5821. package/ui/src/ScrollArea/demos/both.tsx +63 -0
  5822. package/ui/src/ScrollArea/demos/content-fit-overflow.tsx +91 -0
  5823. package/ui/src/ScrollArea/demos/fade-both.tsx +63 -0
  5824. package/ui/src/ScrollArea/demos/horizontal.tsx +59 -0
  5825. package/ui/src/ScrollArea/demos/index.tsx +30 -0
  5826. package/ui/src/ScrollArea/globalStyle.ts +27 -0
  5827. package/ui/src/ScrollArea/index.md +297 -0
  5828. package/ui/src/ScrollArea/index.ts +1 -0
  5829. package/ui/src/ScrollArea/style.ts +321 -0
  5830. package/ui/src/ScrollArea/type.ts +30 -0
  5831. package/ui/src/ScrollShadow/ScrollShadow.tsx +135 -0
  5832. package/ui/src/ScrollShadow/demos/index.tsx +44 -0
  5833. package/ui/src/ScrollShadow/index.md +22 -0
  5834. package/ui/src/ScrollShadow/index.ts +2 -0
  5835. package/ui/src/ScrollShadow/style.ts +112 -0
  5836. package/ui/src/ScrollShadow/type.ts +19 -0
  5837. package/ui/src/ScrollShadow/useScrollOverflow.test.tsx +62 -0
  5838. package/ui/src/ScrollShadow/useScrollOverflow.ts +101 -0
  5839. package/ui/src/SearchBar/SearchBar.tsx +117 -0
  5840. package/ui/src/SearchBar/demos/index.tsx +27 -0
  5841. package/ui/src/SearchBar/index.md +27 -0
  5842. package/ui/src/SearchBar/index.ts +2 -0
  5843. package/ui/src/SearchBar/style.ts +28 -0
  5844. package/ui/src/SearchBar/type.ts +22 -0
  5845. package/ui/src/Segmented/Segmented.tsx +28 -0
  5846. package/ui/src/Segmented/demos/index.tsx +45 -0
  5847. package/ui/src/Segmented/demos/tooltip.tsx +52 -0
  5848. package/ui/src/Segmented/index.md +15 -0
  5849. package/ui/src/Segmented/index.ts +2 -0
  5850. package/ui/src/Segmented/style.ts +45 -0
  5851. package/ui/src/Segmented/type.ts +13 -0
  5852. package/ui/src/Select/Select.tsx +47 -0
  5853. package/ui/src/Select/demos/index.tsx +67 -0
  5854. package/ui/src/Select/index.md +23 -0
  5855. package/ui/src/Select/index.ts +2 -0
  5856. package/ui/src/Select/style.ts +65 -0
  5857. package/ui/src/Select/type.ts +11 -0
  5858. package/ui/src/SideNav/SideNav.tsx +35 -0
  5859. package/ui/src/SideNav/demos/index.tsx +31 -0
  5860. package/ui/src/SideNav/index.md +18 -0
  5861. package/ui/src/SideNav/index.ts +2 -0
  5862. package/ui/src/SideNav/style.ts +14 -0
  5863. package/ui/src/SideNav/type.ts +9 -0
  5864. package/ui/src/Skeleton/Skeleton.tsx +96 -0
  5865. package/ui/src/Skeleton/SkeletonAvatar.tsx +41 -0
  5866. package/ui/src/Skeleton/SkeletonBlock.tsx +31 -0
  5867. package/ui/src/Skeleton/SkeletonButton.tsx +58 -0
  5868. package/ui/src/Skeleton/SkeletonParagraph.tsx +63 -0
  5869. package/ui/src/Skeleton/SkeletonTags.tsx +73 -0
  5870. package/ui/src/Skeleton/SkeletonTitle.tsx +44 -0
  5871. package/ui/src/Skeleton/demos/Avatar.tsx +24 -0
  5872. package/ui/src/Skeleton/demos/Block.tsx +11 -0
  5873. package/ui/src/Skeleton/demos/Button.tsx +30 -0
  5874. package/ui/src/Skeleton/demos/Custom.tsx +9 -0
  5875. package/ui/src/Skeleton/demos/Paragraph.tsx +21 -0
  5876. package/ui/src/Skeleton/demos/Tags.tsx +23 -0
  5877. package/ui/src/Skeleton/demos/Title.tsx +14 -0
  5878. package/ui/src/Skeleton/demos/WithAvatar.tsx +3 -0
  5879. package/ui/src/Skeleton/demos/index.tsx +21 -0
  5880. package/ui/src/Skeleton/index.md +119 -0
  5881. package/ui/src/Skeleton/index.ts +39 -0
  5882. package/ui/src/Skeleton/style.ts +47 -0
  5883. package/ui/src/Skeleton/type.ts +62 -0
  5884. package/ui/src/SliderWithInput/SliderWithInput.tsx +84 -0
  5885. package/ui/src/SliderWithInput/demos/index.tsx +16 -0
  5886. package/ui/src/SliderWithInput/index.md +28 -0
  5887. package/ui/src/SliderWithInput/index.ts +2 -0
  5888. package/ui/src/SliderWithInput/type.ts +22 -0
  5889. package/ui/src/Snippet/Snippet.tsx +49 -0
  5890. package/ui/src/Snippet/demos/index.tsx +27 -0
  5891. package/ui/src/Snippet/index.md +22 -0
  5892. package/ui/src/Snippet/index.ts +2 -0
  5893. package/ui/src/Snippet/style.ts +55 -0
  5894. package/ui/src/Snippet/type.ts +14 -0
  5895. package/ui/src/SortableList/SortableList.tsx +97 -0
  5896. package/ui/src/SortableList/components/DragHandle.tsx +32 -0
  5897. package/ui/src/SortableList/components/SortableItem.tsx +77 -0
  5898. package/ui/src/SortableList/components/SortableOverlay.tsx +24 -0
  5899. package/ui/src/SortableList/demos/index.tsx +77 -0
  5900. package/ui/src/SortableList/index.md +34 -0
  5901. package/ui/src/SortableList/index.ts +2 -0
  5902. package/ui/src/SortableList/style.ts +50 -0
  5903. package/ui/src/SortableList/type.ts +22 -0
  5904. package/ui/src/Tabs/Tabs.tsx +52 -0
  5905. package/ui/src/Tabs/demos/index.tsx +51 -0
  5906. package/ui/src/Tabs/index.md +38 -0
  5907. package/ui/src/Tabs/index.ts +2 -0
  5908. package/ui/src/Tabs/style.ts +171 -0
  5909. package/ui/src/Tabs/type.ts +6 -0
  5910. package/ui/src/Tag/Tag.tsx +115 -0
  5911. package/ui/src/Tag/demos/Color.tsx +74 -0
  5912. package/ui/src/Tag/demos/index.tsx +55 -0
  5913. package/ui/src/Tag/index.md +58 -0
  5914. package/ui/src/Tag/index.tsx +2 -0
  5915. package/ui/src/Tag/styles.ts +117 -0
  5916. package/ui/src/Tag/type.ts +10 -0
  5917. package/ui/src/Tag/utils.ts +41 -0
  5918. package/ui/src/Text/Text.tsx +128 -0
  5919. package/ui/src/Text/demos/TooltipWhenOverflow.tsx +31 -0
  5920. package/ui/src/Text/demos/index.tsx +102 -0
  5921. package/ui/src/Text/index.md +97 -0
  5922. package/ui/src/Text/index.ts +2 -0
  5923. package/ui/src/Text/styles.ts +141 -0
  5924. package/ui/src/Text/type.ts +45 -0
  5925. package/ui/src/ThemeProvider/AppElementContext.tsx +11 -0
  5926. package/ui/src/ThemeProvider/ConfigProvider.tsx +43 -0
  5927. package/ui/src/ThemeProvider/GlobalStyle/antdOverride.ts +110 -0
  5928. package/ui/src/ThemeProvider/GlobalStyle/global.ts +159 -0
  5929. package/ui/src/ThemeProvider/GlobalStyle/index.ts +10 -0
  5930. package/ui/src/ThemeProvider/Meta.tsx +62 -0
  5931. package/ui/src/ThemeProvider/ThemeProvider.tsx +156 -0
  5932. package/ui/src/ThemeProvider/constants.ts +1 -0
  5933. package/ui/src/ThemeProvider/demos/CustomFonts.tsx +32 -0
  5934. package/ui/src/ThemeProvider/demos/index.tsx +12 -0
  5935. package/ui/src/ThemeProvider/index.md +69 -0
  5936. package/ui/src/ThemeProvider/index.ts +5 -0
  5937. package/ui/src/ThemeProvider/type.ts +28 -0
  5938. package/ui/src/ThemeSwitch/ThemeSwitch.tsx +91 -0
  5939. package/ui/src/ThemeSwitch/demos/index.tsx +32 -0
  5940. package/ui/src/ThemeSwitch/index.md +21 -0
  5941. package/ui/src/ThemeSwitch/index.ts +2 -0
  5942. package/ui/src/ThemeSwitch/type.ts +17 -0
  5943. package/ui/src/Toast/index.ts +1 -0
  5944. package/ui/src/Toc/Toc.tsx +48 -0
  5945. package/ui/src/Toc/TocMobile.tsx +63 -0
  5946. package/ui/src/Toc/demos/index.tsx +28 -0
  5947. package/ui/src/Toc/index.md +30 -0
  5948. package/ui/src/Toc/index.ts +2 -0
  5949. package/ui/src/Toc/style.ts +77 -0
  5950. package/ui/src/Toc/type.ts +20 -0
  5951. package/ui/src/Toc/utils.ts +13 -0
  5952. package/ui/src/Tooltip/index.ts +2 -0
  5953. package/ui/src/Video/demos/index.tsx +22 -0
  5954. package/ui/src/Video/index.md +35 -0
  5955. package/ui/src/Video/index.tsx +182 -0
  5956. package/ui/src/Video/style.ts +75 -0
  5957. package/ui/src/awesome/AuroraBackground/AuroraBackground.tsx +34 -0
  5958. package/ui/src/awesome/AuroraBackground/demos/index.tsx +3 -0
  5959. package/ui/src/awesome/AuroraBackground/index.md +23 -0
  5960. package/ui/src/awesome/AuroraBackground/index.ts +2 -0
  5961. package/ui/src/awesome/AuroraBackground/style.ts +143 -0
  5962. package/ui/src/awesome/AuroraBackground/type.ts +15 -0
  5963. package/ui/src/awesome/BottomGradientButton/BottomGradientButton.tsx +34 -0
  5964. package/ui/src/awesome/BottomGradientButton/demos/index.tsx +23 -0
  5965. package/ui/src/awesome/BottomGradientButton/index.md +15 -0
  5966. package/ui/src/awesome/BottomGradientButton/index.ts +2 -0
  5967. package/ui/src/awesome/BottomGradientButton/style.ts +38 -0
  5968. package/ui/src/awesome/BottomGradientButton/type.ts +3 -0
  5969. package/ui/src/awesome/Features/FeatureItem.tsx +102 -0
  5970. package/ui/src/awesome/Features/Features.tsx +30 -0
  5971. package/ui/src/awesome/Features/demos/index.tsx +27 -0
  5972. package/ui/src/awesome/Features/index.md +43 -0
  5973. package/ui/src/awesome/Features/index.ts +2 -0
  5974. package/ui/src/awesome/Features/style.ts +164 -0
  5975. package/ui/src/awesome/Features/type.ts +30 -0
  5976. package/ui/src/awesome/Giscus/Giscus.tsx +44 -0
  5977. package/ui/src/awesome/Giscus/demos/index.tsx +14 -0
  5978. package/ui/src/awesome/Giscus/index.md +25 -0
  5979. package/ui/src/awesome/Giscus/index.ts +2 -0
  5980. package/ui/src/awesome/Giscus/style.ts +152 -0
  5981. package/ui/src/awesome/Giscus/type.ts +7 -0
  5982. package/ui/src/awesome/GradientButton/GradientButton.tsx +62 -0
  5983. package/ui/src/awesome/GradientButton/demos/index.tsx +23 -0
  5984. package/ui/src/awesome/GradientButton/index.md +22 -0
  5985. package/ui/src/awesome/GradientButton/index.ts +2 -0
  5986. package/ui/src/awesome/GradientButton/style.ts +114 -0
  5987. package/ui/src/awesome/GradientButton/type.ts +5 -0
  5988. package/ui/src/awesome/GridBackground/GridBackground.tsx +123 -0
  5989. package/ui/src/awesome/GridBackground/GridShowcase.tsx +44 -0
  5990. package/ui/src/awesome/GridBackground/components/Grid.tsx +86 -0
  5991. package/ui/src/awesome/GridBackground/demos/Showcase.tsx +12 -0
  5992. package/ui/src/awesome/GridBackground/demos/index.tsx +40 -0
  5993. package/ui/src/awesome/GridBackground/index.md +45 -0
  5994. package/ui/src/awesome/GridBackground/index.ts +3 -0
  5995. package/ui/src/awesome/GridBackground/style.ts +90 -0
  5996. package/ui/src/awesome/GridBackground/type.ts +20 -0
  5997. package/ui/src/awesome/Hero/Hero.tsx +95 -0
  5998. package/ui/src/awesome/Hero/demos/index.tsx +24 -0
  5999. package/ui/src/awesome/Hero/index.md +33 -0
  6000. package/ui/src/awesome/Hero/index.ts +2 -0
  6001. package/ui/src/awesome/Hero/style.ts +70 -0
  6002. package/ui/src/awesome/Hero/type.ts +16 -0
  6003. package/ui/src/awesome/Spline/ParentSize.tsx +140 -0
  6004. package/ui/src/awesome/Spline/Spine.tsx +134 -0
  6005. package/ui/src/awesome/Spline/index.ts +2 -0
  6006. package/ui/src/awesome/Spline/type.ts +21 -0
  6007. package/ui/src/awesome/Spotlight/Spotlight.tsx +44 -0
  6008. package/ui/src/awesome/Spotlight/demos/index.tsx +34 -0
  6009. package/ui/src/awesome/Spotlight/index.md +22 -0
  6010. package/ui/src/awesome/Spotlight/index.ts +2 -0
  6011. package/ui/src/awesome/Spotlight/style.ts +79 -0
  6012. package/ui/src/awesome/Spotlight/type.ts +5 -0
  6013. package/ui/src/awesome/Spotlight/useMouseOffset.ts +32 -0
  6014. package/ui/src/awesome/SpotlightCard/SpotlightCard.tsx +87 -0
  6015. package/ui/src/awesome/SpotlightCard/SpotlightCardItem.tsx +41 -0
  6016. package/ui/src/awesome/SpotlightCard/demos/data.ts +43 -0
  6017. package/ui/src/awesome/SpotlightCard/demos/index.tsx +20 -0
  6018. package/ui/src/awesome/SpotlightCard/index.md +29 -0
  6019. package/ui/src/awesome/SpotlightCard/index.ts +2 -0
  6020. package/ui/src/awesome/SpotlightCard/style.ts +138 -0
  6021. package/ui/src/awesome/SpotlightCard/type.ts +19 -0
  6022. package/ui/src/awesome/TypewriterEffect/TypewriterEffect.tsx +296 -0
  6023. package/ui/src/awesome/TypewriterEffect/demos/advanced.tsx +17 -0
  6024. package/ui/src/awesome/TypewriterEffect/demos/callback.tsx +19 -0
  6025. package/ui/src/awesome/TypewriterEffect/demos/colors.tsx +22 -0
  6026. package/ui/src/awesome/TypewriterEffect/demos/cursorBehavior.tsx +33 -0
  6027. package/ui/src/awesome/TypewriterEffect/demos/cursorStyles.tsx +18 -0
  6028. package/ui/src/awesome/TypewriterEffect/demos/customSpeed.tsx +23 -0
  6029. package/ui/src/awesome/TypewriterEffect/demos/emoji.tsx +20 -0
  6030. package/ui/src/awesome/TypewriterEffect/demos/index.tsx +79 -0
  6031. package/ui/src/awesome/TypewriterEffect/demos/initialDelay.tsx +13 -0
  6032. package/ui/src/awesome/TypewriterEffect/demos/segmentModes.tsx +28 -0
  6033. package/ui/src/awesome/TypewriterEffect/demos/variableSpeed.tsx +15 -0
  6034. package/ui/src/awesome/TypewriterEffect/index.md +85 -0
  6035. package/ui/src/awesome/TypewriterEffect/index.ts +2 -0
  6036. package/ui/src/awesome/TypewriterEffect/style.ts +81 -0
  6037. package/ui/src/awesome/TypewriterEffect/type.ts +126 -0
  6038. package/ui/src/awesome/index.ts +24 -0
  6039. package/ui/src/base-ui/Button/Button.tsx +175 -0
  6040. package/ui/src/base-ui/Button/demos/icons.tsx +69 -0
  6041. package/ui/src/base-ui/Button/demos/index.tsx +70 -0
  6042. package/ui/src/base-ui/Button/demos/sizes.tsx +47 -0
  6043. package/ui/src/base-ui/Button/index.md +49 -0
  6044. package/ui/src/base-ui/Button/index.ts +4 -0
  6045. package/ui/src/base-ui/Button/style.ts +246 -0
  6046. package/ui/src/base-ui/Button/type.ts +44 -0
  6047. package/ui/src/base-ui/ContextMenu/ContextMenuHost.tsx +95 -0
  6048. package/ui/src/base-ui/ContextMenu/ContextMenuTrigger.tsx +89 -0
  6049. package/ui/src/base-ui/ContextMenu/__tests__/slots.test.tsx +110 -0
  6050. package/ui/src/base-ui/ContextMenu/imperative.tsx +3 -0
  6051. package/ui/src/base-ui/ContextMenu/index.md +84 -0
  6052. package/ui/src/base-ui/ContextMenu/index.ts +11 -0
  6053. package/ui/src/base-ui/ContextMenu/renderItems.tsx +375 -0
  6054. package/ui/src/base-ui/ContextMenu/store.ts +121 -0
  6055. package/ui/src/base-ui/ContextMenu/style.ts +1 -0
  6056. package/ui/src/base-ui/ContextMenu/type.ts +7 -0
  6057. package/ui/src/base-ui/DropdownMenu/DropdownMenu.tsx +150 -0
  6058. package/ui/src/base-ui/DropdownMenu/__tests__/slots.test.tsx +112 -0
  6059. package/ui/src/base-ui/DropdownMenu/atoms.tsx +423 -0
  6060. package/ui/src/base-ui/DropdownMenu/index.md +153 -0
  6061. package/ui/src/base-ui/DropdownMenu/index.ts +55 -0
  6062. package/ui/src/base-ui/DropdownMenu/renderItems.tsx +293 -0
  6063. package/ui/src/base-ui/DropdownMenu/sharedStyle.ts +292 -0
  6064. package/ui/src/base-ui/DropdownMenu/type.ts +63 -0
  6065. package/ui/src/base-ui/FloatingSheet/FloatingSheet.tsx +297 -0
  6066. package/ui/src/base-ui/FloatingSheet/FloatingSheetHeader.tsx +36 -0
  6067. package/ui/src/base-ui/FloatingSheet/__tests__/FloatingSheet.test.tsx +76 -0
  6068. package/ui/src/base-ui/FloatingSheet/__tests__/helpers.test.ts +61 -0
  6069. package/ui/src/base-ui/FloatingSheet/__tests__/useSheetDrag.test.ts +106 -0
  6070. package/ui/src/base-ui/FloatingSheet/__tests__/useSnapPoints.test.ts +209 -0
  6071. package/ui/src/base-ui/FloatingSheet/demos/index.tsx +445 -0
  6072. package/ui/src/base-ui/FloatingSheet/demos/inline.tsx +236 -0
  6073. package/ui/src/base-ui/FloatingSheet/demos/playground.tsx +341 -0
  6074. package/ui/src/base-ui/FloatingSheet/helpers.ts +27 -0
  6075. package/ui/src/base-ui/FloatingSheet/index.md +23 -0
  6076. package/ui/src/base-ui/FloatingSheet/index.ts +2 -0
  6077. package/ui/src/base-ui/FloatingSheet/style.ts +91 -0
  6078. package/ui/src/base-ui/FloatingSheet/type.ts +22 -0
  6079. package/ui/src/base-ui/FloatingSheet/useSheetDrag.ts +72 -0
  6080. package/ui/src/base-ui/FloatingSheet/useSnapPoints.ts +115 -0
  6081. package/ui/src/base-ui/Modal/Modal.tsx +338 -0
  6082. package/ui/src/base-ui/Modal/ModalLayerContext.tsx +13 -0
  6083. package/ui/src/base-ui/Modal/atoms.tsx +339 -0
  6084. package/ui/src/base-ui/Modal/constants.ts +28 -0
  6085. package/ui/src/base-ui/Modal/context.ts +12 -0
  6086. package/ui/src/base-ui/Modal/demos/atoms.tsx +104 -0
  6087. package/ui/src/base-ui/Modal/demos/business.tsx +427 -0
  6088. package/ui/src/base-ui/Modal/demos/imperative.tsx +122 -0
  6089. package/ui/src/base-ui/Modal/demos/index.tsx +316 -0
  6090. package/ui/src/base-ui/Modal/demos/nested.tsx +60 -0
  6091. package/ui/src/base-ui/Modal/demos/zindex-dropdown-in-modal.tsx +74 -0
  6092. package/ui/src/base-ui/Modal/demos/zindex-with-dropdown.tsx +84 -0
  6093. package/ui/src/base-ui/Modal/imperative.tsx +288 -0
  6094. package/ui/src/base-ui/Modal/index.md +250 -0
  6095. package/ui/src/base-ui/Modal/index.ts +40 -0
  6096. package/ui/src/base-ui/Modal/style.ts +271 -0
  6097. package/ui/src/base-ui/Modal/type.ts +111 -0
  6098. package/ui/src/base-ui/Popover/ArrowIcon.tsx +8 -0
  6099. package/ui/src/base-ui/Popover/Popover.tsx +27 -0
  6100. package/ui/src/base-ui/Popover/PopoverGroup.tsx +151 -0
  6101. package/ui/src/base-ui/Popover/PopoverInGroup.tsx +87 -0
  6102. package/ui/src/base-ui/Popover/PopoverPortal.tsx +11 -0
  6103. package/ui/src/base-ui/Popover/PopoverStandalone.tsx +234 -0
  6104. package/ui/src/base-ui/Popover/atoms.tsx +219 -0
  6105. package/ui/src/base-ui/Popover/context.tsx +28 -0
  6106. package/ui/src/base-ui/Popover/demos/atoms.tsx +64 -0
  6107. package/ui/src/base-ui/Popover/demos/context.tsx +72 -0
  6108. package/ui/src/base-ui/Popover/demos/controlled.tsx +133 -0
  6109. package/ui/src/base-ui/Popover/demos/dropdown-menu.tsx +50 -0
  6110. package/ui/src/base-ui/Popover/demos/group.tsx +73 -0
  6111. package/ui/src/base-ui/Popover/demos/index.tsx +56 -0
  6112. package/ui/src/base-ui/Popover/demos/native-button.tsx +179 -0
  6113. package/ui/src/base-ui/Popover/demos/placement.tsx +148 -0
  6114. package/ui/src/base-ui/Popover/demos/popover-wrapping-tooltip-group.tsx +55 -0
  6115. package/ui/src/base-ui/Popover/demos/popover-wrapping-tooltip.tsx +33 -0
  6116. package/ui/src/base-ui/Popover/demos/tooltip-hover-stay.tsx +55 -0
  6117. package/ui/src/base-ui/Popover/demos/tooltip-inside.tsx +40 -0
  6118. package/ui/src/base-ui/Popover/demos/trigger.tsx +298 -0
  6119. package/ui/src/base-ui/Popover/groupContext.ts +34 -0
  6120. package/ui/src/base-ui/Popover/index.md +130 -0
  6121. package/ui/src/base-ui/Popover/index.ts +32 -0
  6122. package/ui/src/base-ui/Popover/style.ts +233 -0
  6123. package/ui/src/base-ui/Popover/type.ts +199 -0
  6124. package/ui/src/base-ui/Popover/useMergedPopoverProps.ts +120 -0
  6125. package/ui/src/base-ui/ScrollArea/ScrollArea.tsx +42 -0
  6126. package/ui/src/base-ui/ScrollArea/atoms.tsx +120 -0
  6127. package/ui/src/base-ui/ScrollArea/globalStyle.ts +27 -0
  6128. package/ui/src/base-ui/ScrollArea/index.md +302 -0
  6129. package/ui/src/base-ui/ScrollArea/index.ts +18 -0
  6130. package/ui/src/base-ui/ScrollArea/style.ts +319 -0
  6131. package/ui/src/base-ui/ScrollArea/type.ts +39 -0
  6132. package/ui/src/base-ui/Select/Select.tsx +296 -0
  6133. package/ui/src/base-ui/Select/atoms.tsx +294 -0
  6134. package/ui/src/base-ui/Select/demos/atoms.tsx +108 -0
  6135. package/ui/src/base-ui/Select/demos/index.tsx +121 -0
  6136. package/ui/src/base-ui/Select/demos/indicator.tsx +49 -0
  6137. package/ui/src/base-ui/Select/demos/render.tsx +107 -0
  6138. package/ui/src/base-ui/Select/demos/virtual.tsx +47 -0
  6139. package/ui/src/base-ui/Select/helpers.ts +45 -0
  6140. package/ui/src/base-ui/Select/hooks.tsx +458 -0
  6141. package/ui/src/base-ui/Select/index.md +118 -0
  6142. package/ui/src/base-ui/Select/index.ts +48 -0
  6143. package/ui/src/base-ui/Select/parts.tsx +230 -0
  6144. package/ui/src/base-ui/Select/renderOptions.tsx +98 -0
  6145. package/ui/src/base-ui/Select/style.ts +331 -0
  6146. package/ui/src/base-ui/Select/type.ts +116 -0
  6147. package/ui/src/base-ui/SubmenuArrowIcon.tsx +12 -0
  6148. package/ui/src/base-ui/Switch/Switch.tsx +96 -0
  6149. package/ui/src/base-ui/Switch/atoms.tsx +209 -0
  6150. package/ui/src/base-ui/Switch/demos/atoms.tsx +43 -0
  6151. package/ui/src/base-ui/Switch/demos/index.tsx +46 -0
  6152. package/ui/src/base-ui/Switch/index.md +19 -0
  6153. package/ui/src/base-ui/Switch/index.ts +15 -0
  6154. package/ui/src/base-ui/Switch/style.ts +177 -0
  6155. package/ui/src/base-ui/Switch/type.ts +150 -0
  6156. package/ui/src/base-ui/Tabs/Tabs.tsx +78 -0
  6157. package/ui/src/base-ui/Tabs/atoms.tsx +98 -0
  6158. package/ui/src/base-ui/Tabs/demos/atoms.tsx +44 -0
  6159. package/ui/src/base-ui/Tabs/demos/index.tsx +59 -0
  6160. package/ui/src/base-ui/Tabs/index.md +51 -0
  6161. package/ui/src/base-ui/Tabs/index.ts +24 -0
  6162. package/ui/src/base-ui/Tabs/style.ts +226 -0
  6163. package/ui/src/base-ui/Tabs/type.ts +75 -0
  6164. package/ui/src/base-ui/Toast/Toast.tsx +175 -0
  6165. package/ui/src/base-ui/Toast/context.ts +17 -0
  6166. package/ui/src/base-ui/Toast/demos/actions.tsx +108 -0
  6167. package/ui/src/base-ui/Toast/demos/index.tsx +154 -0
  6168. package/ui/src/base-ui/Toast/demos/position.tsx +94 -0
  6169. package/ui/src/base-ui/Toast/demos/promise.tsx +130 -0
  6170. package/ui/src/base-ui/Toast/imperative.tsx +315 -0
  6171. package/ui/src/base-ui/Toast/index.md +156 -0
  6172. package/ui/src/base-ui/Toast/index.ts +2 -0
  6173. package/ui/src/base-ui/Toast/style.ts +429 -0
  6174. package/ui/src/base-ui/Toast/type.ts +160 -0
  6175. package/ui/src/base-ui/Tooltip/ArrowIcon.tsx +8 -0
  6176. package/ui/src/base-ui/Tooltip/Tooltip.tsx +22 -0
  6177. package/ui/src/base-ui/Tooltip/TooltipContent.tsx +32 -0
  6178. package/ui/src/base-ui/Tooltip/TooltipGroup.tsx +167 -0
  6179. package/ui/src/base-ui/Tooltip/TooltipInGroup.tsx +181 -0
  6180. package/ui/src/base-ui/Tooltip/TooltipStandalone.tsx +285 -0
  6181. package/ui/src/base-ui/Tooltip/demos/group-children-preserve.tsx +87 -0
  6182. package/ui/src/base-ui/Tooltip/demos/group-remove-trigger.tsx +173 -0
  6183. package/ui/src/base-ui/Tooltip/demos/group-shared.tsx +25 -0
  6184. package/ui/src/base-ui/Tooltip/demos/group.tsx +32 -0
  6185. package/ui/src/base-ui/Tooltip/demos/index.tsx +22 -0
  6186. package/ui/src/base-ui/Tooltip/groupContext.ts +24 -0
  6187. package/ui/src/base-ui/Tooltip/index.md +87 -0
  6188. package/ui/src/base-ui/Tooltip/index.tsx +11 -0
  6189. package/ui/src/base-ui/Tooltip/style.ts +238 -0
  6190. package/ui/src/base-ui/Tooltip/type.ts +219 -0
  6191. package/ui/src/base-ui/Tooltip/useMergedTooltipProps.ts +135 -0
  6192. package/ui/src/base-ui/index.ts +36 -0
  6193. package/ui/src/base-ui/zIndex/constants.ts +8 -0
  6194. package/ui/src/base-ui/zIndex/index.ts +3 -0
  6195. package/ui/src/base-ui/zIndex/manager.test.ts +75 -0
  6196. package/ui/src/base-ui/zIndex/manager.ts +35 -0
  6197. package/ui/src/base-ui/zIndex/useLayerZIndex.test.tsx +105 -0
  6198. package/ui/src/base-ui/zIndex/useLayerZIndex.tsx +103 -0
  6199. package/ui/src/brand/BrandLoading/index.md +33 -0
  6200. package/ui/src/brand/BrandLoading/index.tsx +18 -0
  6201. package/ui/src/brand/Hubstr/index.md +40 -0
  6202. package/ui/src/brand/Hubstr/index.tsx +89 -0
  6203. package/ui/src/brand/Hubstr/style.ts +10 -0
  6204. package/ui/src/brand/HubstrChat/index.md +40 -0
  6205. package/ui/src/brand/HubstrChat/index.tsx +88 -0
  6206. package/ui/src/brand/HubstrChatText/index.md +17 -0
  6207. package/ui/src/brand/HubstrChatText/index.tsx +36 -0
  6208. package/ui/src/brand/HubstrText/index.md +17 -0
  6209. package/ui/src/brand/HubstrText/index.tsx +36 -0
  6210. package/ui/src/brand/Logo3d/index.md +29 -0
  6211. package/ui/src/brand/Logo3d/index.tsx +20 -0
  6212. package/ui/src/brand/LogoFlat/index.md +17 -0
  6213. package/ui/src/brand/LogoFlat/index.tsx +19 -0
  6214. package/ui/src/brand/LogoMark.tsx +29 -0
  6215. package/ui/src/brand/LogoMono/index.md +17 -0
  6216. package/ui/src/brand/LogoMono/index.tsx +19 -0
  6217. package/ui/src/brand/LogoThree/Loading.tsx +15 -0
  6218. package/ui/src/brand/LogoThree/LogoSpline.tsx +26 -0
  6219. package/ui/src/brand/LogoThree/demos/LogoSpline.tsx +29 -0
  6220. package/ui/src/brand/LogoThree/demos/index.tsx +23 -0
  6221. package/ui/src/brand/LogoThree/index.md +29 -0
  6222. package/ui/src/brand/LogoThree/index.tsx +28 -0
  6223. package/ui/src/brand/assets/hubstr-ai.png +0 -0
  6224. package/ui/src/brand/components/Divider.tsx +22 -0
  6225. package/ui/src/brand/index.ts +10 -0
  6226. package/ui/src/chat/BackBottom/BackBottom.tsx +53 -0
  6227. package/ui/src/chat/BackBottom/demos/index.tsx +18 -0
  6228. package/ui/src/chat/BackBottom/index.md +25 -0
  6229. package/ui/src/chat/BackBottom/index.ts +2 -0
  6230. package/ui/src/chat/BackBottom/style.ts +38 -0
  6231. package/ui/src/chat/BackBottom/type.ts +12 -0
  6232. package/ui/src/chat/Bubble/Bubble.tsx +23 -0
  6233. package/ui/src/chat/Bubble/index.tsx +2 -0
  6234. package/ui/src/chat/Bubble/style.ts +41 -0
  6235. package/ui/src/chat/Bubble/type.ts +9 -0
  6236. package/ui/src/chat/ChatHeader/ChatHeader.tsx +83 -0
  6237. package/ui/src/chat/ChatHeader/ChatHeaderTitle.tsx +35 -0
  6238. package/ui/src/chat/ChatHeader/demos/index.tsx +18 -0
  6239. package/ui/src/chat/ChatHeader/index.md +37 -0
  6240. package/ui/src/chat/ChatHeader/index.ts +18 -0
  6241. package/ui/src/chat/ChatHeader/style.ts +80 -0
  6242. package/ui/src/chat/ChatHeader/type.ts +31 -0
  6243. package/ui/src/chat/ChatInputArea/ChatInputArea.tsx +62 -0
  6244. package/ui/src/chat/ChatInputArea/components/ChatInputActionBar.tsx +49 -0
  6245. package/ui/src/chat/ChatInputArea/components/ChatInputAreaInner.tsx +66 -0
  6246. package/ui/src/chat/ChatInputArea/components/ChatSendButton.tsx +67 -0
  6247. package/ui/src/chat/ChatInputArea/demos/index.tsx +27 -0
  6248. package/ui/src/chat/ChatInputArea/index.md +55 -0
  6249. package/ui/src/chat/ChatInputArea/index.ts +26 -0
  6250. package/ui/src/chat/ChatInputArea/style.ts +44 -0
  6251. package/ui/src/chat/ChatInputArea/type.ts +55 -0
  6252. package/ui/src/chat/ChatItem/ChatItem.tsx +219 -0
  6253. package/ui/src/chat/ChatItem/components/Actions.tsx +43 -0
  6254. package/ui/src/chat/ChatItem/components/Avatar.tsx +65 -0
  6255. package/ui/src/chat/ChatItem/components/BorderSpacing.tsx +13 -0
  6256. package/ui/src/chat/ChatItem/components/ErrorContent.tsx +23 -0
  6257. package/ui/src/chat/ChatItem/components/Loading.tsx +29 -0
  6258. package/ui/src/chat/ChatItem/components/MessageContent.tsx +90 -0
  6259. package/ui/src/chat/ChatItem/components/Title.tsx +32 -0
  6260. package/ui/src/chat/ChatItem/demos/Alert.tsx +48 -0
  6261. package/ui/src/chat/ChatItem/demos/AlertWithContent.tsx +52 -0
  6262. package/ui/src/chat/ChatItem/demos/AlertWithDefaultMessagePlacehoder.tsx +52 -0
  6263. package/ui/src/chat/ChatItem/demos/Editing.tsx +13 -0
  6264. package/ui/src/chat/ChatItem/demos/code.ts +344 -0
  6265. package/ui/src/chat/ChatItem/demos/code.tsx +33 -0
  6266. package/ui/src/chat/ChatItem/demos/data.tsx +38 -0
  6267. package/ui/src/chat/ChatItem/demos/index.tsx +58 -0
  6268. package/ui/src/chat/ChatItem/demos/table.tsx +42 -0
  6269. package/ui/src/chat/ChatItem/index.md +55 -0
  6270. package/ui/src/chat/ChatItem/index.ts +2 -0
  6271. package/ui/src/chat/ChatItem/style.ts +346 -0
  6272. package/ui/src/chat/ChatItem/type.ts +91 -0
  6273. package/ui/src/chat/ChatList/ChatList.tsx +69 -0
  6274. package/ui/src/chat/ChatList/components/ChatActionsBar.tsx +20 -0
  6275. package/ui/src/chat/ChatList/components/ChatListItem.tsx +168 -0
  6276. package/ui/src/chat/ChatList/components/HistoryDivider.tsx +25 -0
  6277. package/ui/src/chat/ChatList/components/useChatListActionsBar.tsx +50 -0
  6278. package/ui/src/chat/ChatList/demos/data.ts +30 -0
  6279. package/ui/src/chat/ChatList/demos/index.tsx +35 -0
  6280. package/ui/src/chat/ChatList/index.md +59 -0
  6281. package/ui/src/chat/ChatList/index.ts +3 -0
  6282. package/ui/src/chat/ChatList/style.ts +9 -0
  6283. package/ui/src/chat/ChatList/type.ts +97 -0
  6284. package/ui/src/chat/EditableMessage/EditableMessage.tsx +122 -0
  6285. package/ui/src/chat/EditableMessage/demos/index.tsx +114 -0
  6286. package/ui/src/chat/EditableMessage/index.md +40 -0
  6287. package/ui/src/chat/EditableMessage/index.ts +2 -0
  6288. package/ui/src/chat/EditableMessage/type.ts +39 -0
  6289. package/ui/src/chat/EditableMessageList/EditableMessageList.tsx +104 -0
  6290. package/ui/src/chat/EditableMessageList/demos/data.ts +43 -0
  6291. package/ui/src/chat/EditableMessageList/demos/index.tsx +5 -0
  6292. package/ui/src/chat/EditableMessageList/index.md +32 -0
  6293. package/ui/src/chat/EditableMessageList/index.ts +2 -0
  6294. package/ui/src/chat/EditableMessageList/messageReducer.ts +84 -0
  6295. package/ui/src/chat/EditableMessageList/type.ts +16 -0
  6296. package/ui/src/chat/LoadingDots/LoadingDots.tsx +90 -0
  6297. package/ui/src/chat/LoadingDots/demos/index.tsx +30 -0
  6298. package/ui/src/chat/LoadingDots/index.md +18 -0
  6299. package/ui/src/chat/LoadingDots/index.tsx +2 -0
  6300. package/ui/src/chat/LoadingDots/style.ts +166 -0
  6301. package/ui/src/chat/LoadingDots/type.ts +29 -0
  6302. package/ui/src/chat/MessageInput/MessageInput.tsx +119 -0
  6303. package/ui/src/chat/MessageInput/demos/index.tsx +21 -0
  6304. package/ui/src/chat/MessageInput/index.md +30 -0
  6305. package/ui/src/chat/MessageInput/index.ts +2 -0
  6306. package/ui/src/chat/MessageInput/style.ts +13 -0
  6307. package/ui/src/chat/MessageInput/type.ts +27 -0
  6308. package/ui/src/chat/MessageModal/MessageModal.tsx +133 -0
  6309. package/ui/src/chat/MessageModal/TextArea.tsx +27 -0
  6310. package/ui/src/chat/MessageModal/demos/edit.tsx +33 -0
  6311. package/ui/src/chat/MessageModal/demos/index.tsx +20 -0
  6312. package/ui/src/chat/MessageModal/index.md +35 -0
  6313. package/ui/src/chat/MessageModal/index.ts +2 -0
  6314. package/ui/src/chat/MessageModal/type.ts +25 -0
  6315. package/ui/src/chat/TokenTag/TokenTag.tsx +80 -0
  6316. package/ui/src/chat/TokenTag/demos/index.tsx +34 -0
  6317. package/ui/src/chat/TokenTag/index.md +18 -0
  6318. package/ui/src/chat/TokenTag/index.tsx +2 -0
  6319. package/ui/src/chat/TokenTag/type.ts +13 -0
  6320. package/ui/src/chat/index.ts +42 -0
  6321. package/ui/src/chat/types/chatMessage.ts +52 -0
  6322. package/ui/src/chat/types/error.ts +28 -0
  6323. package/ui/src/chat/types/index.ts +4 -0
  6324. package/ui/src/chat/types/llm.ts +52 -0
  6325. package/ui/src/chat/types/meta.ts +28 -0
  6326. package/ui/src/color/ColorScales/ScaleRow.tsx +70 -0
  6327. package/ui/src/color/ColorScales/index.md +168 -0
  6328. package/ui/src/color/ColorScales/index.tsx +71 -0
  6329. package/ui/src/color/ColorScales/style.ts +42 -0
  6330. package/ui/src/color/CssVar/ScaleRow.tsx +54 -0
  6331. package/ui/src/color/CssVar/VarRow.tsx +47 -0
  6332. package/ui/src/color/CssVar/index.md +163 -0
  6333. package/ui/src/color/CssVar/index.tsx +83 -0
  6334. package/ui/src/color/CssVar/style.ts +42 -0
  6335. package/ui/src/color/colors/blue.ts +66 -0
  6336. package/ui/src/color/colors/blueGeekblueMix.ts +66 -0
  6337. package/ui/src/color/colors/cyan.ts +66 -0
  6338. package/ui/src/color/colors/geekblue.ts +66 -0
  6339. package/ui/src/color/colors/gold.ts +66 -0
  6340. package/ui/src/color/colors/gray.ts +66 -0
  6341. package/ui/src/color/colors/green.ts +66 -0
  6342. package/ui/src/color/colors/index.ts +66 -0
  6343. package/ui/src/color/colors/lime.ts +66 -0
  6344. package/ui/src/color/colors/magenta.ts +66 -0
  6345. package/ui/src/color/colors/orange.ts +66 -0
  6346. package/ui/src/color/colors/primary.ts +66 -0
  6347. package/ui/src/color/colors/purple.ts +66 -0
  6348. package/ui/src/color/colors/red.ts +66 -0
  6349. package/ui/src/color/colors/volcano.ts +66 -0
  6350. package/ui/src/color/colors/yellow.ts +66 -0
  6351. package/ui/src/color/index.ts +5 -0
  6352. package/ui/src/color/neutrals/index.ts +30 -0
  6353. package/ui/src/color/neutrals/mauve.ts +66 -0
  6354. package/ui/src/color/neutrals/olive.ts +66 -0
  6355. package/ui/src/color/neutrals/sage.ts +66 -0
  6356. package/ui/src/color/neutrals/sand.ts +66 -0
  6357. package/ui/src/color/neutrals/slate.ts +66 -0
  6358. package/ui/src/color/types.ts +21 -0
  6359. package/ui/src/hooks/useCopied.ts +23 -0
  6360. package/ui/src/hooks/useEventCallback.ts +13 -0
  6361. package/ui/src/hooks/useFloatingLayer.tsx +24 -0
  6362. package/ui/src/hooks/useHighlight.ts +222 -0
  6363. package/ui/src/hooks/useIsClient.ts +12 -0
  6364. package/ui/src/hooks/useMarkdown/index.tsx +4 -0
  6365. package/ui/src/hooks/useMarkdown/latex.test.ts +1072 -0
  6366. package/ui/src/hooks/useMarkdown/latex.ts +566 -0
  6367. package/ui/src/hooks/useMarkdown/useMarkdownComponents.tsx +155 -0
  6368. package/ui/src/hooks/useMarkdown/useMarkdownContent.ts +63 -0
  6369. package/ui/src/hooks/useMarkdown/useMarkdownRehypePlugins.ts +39 -0
  6370. package/ui/src/hooks/useMarkdown/useMarkdownRemarkPlugins.ts +48 -0
  6371. package/ui/src/hooks/useMarkdown/utils.test.ts +131 -0
  6372. package/ui/src/hooks/useMarkdown/utils.ts +140 -0
  6373. package/ui/src/hooks/useMermaid.ts +198 -0
  6374. package/ui/src/hooks/useNativeButton.ts +158 -0
  6375. package/ui/src/hooks/useStableValue.ts +29 -0
  6376. package/ui/src/hooks/useStreamHighlight.ts +336 -0
  6377. package/ui/src/hooks/useStreamMermaid.ts +131 -0
  6378. package/ui/src/hooks/useTextOverflow.ts +43 -0
  6379. package/ui/src/i18n/context.tsx +31 -0
  6380. package/ui/src/i18n/demos/ConfigProvider.tsx +121 -0
  6381. package/ui/src/i18n/demos/DynamicImport.tsx +106 -0
  6382. package/ui/src/i18n/demos/index.tsx +132 -0
  6383. package/ui/src/i18n/index.md +138 -0
  6384. package/ui/src/i18n/index.ts +13 -0
  6385. package/ui/src/i18n/resources/en/chat.ts +7 -0
  6386. package/ui/src/i18n/resources/en/common.ts +7 -0
  6387. package/ui/src/i18n/resources/en/editableMessage.ts +9 -0
  6388. package/ui/src/i18n/resources/en/emojiPicker.ts +8 -0
  6389. package/ui/src/i18n/resources/en/form.ts +6 -0
  6390. package/ui/src/i18n/resources/en/hotkey.ts +8 -0
  6391. package/ui/src/i18n/resources/en/image.ts +14 -0
  6392. package/ui/src/i18n/resources/en/index.ts +9 -0
  6393. package/ui/src/i18n/resources/en/messageModal.ts +5 -0
  6394. package/ui/src/i18n/resources/en/sideNav.ts +17 -0
  6395. package/ui/src/i18n/resources/index.ts +3 -0
  6396. package/ui/src/i18n/resources/zhCn/chat.ts +7 -0
  6397. package/ui/src/i18n/resources/zhCn/common.ts +7 -0
  6398. package/ui/src/i18n/resources/zhCn/editableMessage.ts +9 -0
  6399. package/ui/src/i18n/resources/zhCn/emojiPicker.ts +8 -0
  6400. package/ui/src/i18n/resources/zhCn/form.ts +6 -0
  6401. package/ui/src/i18n/resources/zhCn/hotkey.ts +7 -0
  6402. package/ui/src/i18n/resources/zhCn/image.ts +14 -0
  6403. package/ui/src/i18n/resources/zhCn/index.ts +9 -0
  6404. package/ui/src/i18n/resources/zhCn/messageModal.ts +5 -0
  6405. package/ui/src/i18n/resources/zhCn/sideNav.ts +17 -0
  6406. package/ui/src/i18n/types.ts +32 -0
  6407. package/ui/src/i18n/useTranslation.ts +20 -0
  6408. package/ui/src/icons/Auth0/components/Avatar.tsx +23 -0
  6409. package/ui/src/icons/Auth0/components/Mono.tsx +26 -0
  6410. package/ui/src/icons/Auth0/index.md +34 -0
  6411. package/ui/src/icons/Auth0/index.ts +18 -0
  6412. package/ui/src/icons/Auth0/style.ts +2 -0
  6413. package/ui/src/icons/Authelia/components/Avatar.tsx +23 -0
  6414. package/ui/src/icons/Authelia/components/Color.tsx +101 -0
  6415. package/ui/src/icons/Authelia/components/Mono.tsx +30 -0
  6416. package/ui/src/icons/Authelia/index.md +44 -0
  6417. package/ui/src/icons/Authelia/index.ts +20 -0
  6418. package/ui/src/icons/Authelia/style.ts +2 -0
  6419. package/ui/src/icons/Authentik/components/Avatar.tsx +23 -0
  6420. package/ui/src/icons/Authentik/components/Color.tsx +29 -0
  6421. package/ui/src/icons/Authentik/components/Mono.tsx +29 -0
  6422. package/ui/src/icons/Authentik/index.md +44 -0
  6423. package/ui/src/icons/Authentik/index.ts +20 -0
  6424. package/ui/src/icons/Authentik/style.ts +2 -0
  6425. package/ui/src/icons/Casdoor/components/Avatar.tsx +23 -0
  6426. package/ui/src/icons/Casdoor/components/Color.tsx +62 -0
  6427. package/ui/src/icons/Casdoor/components/Mono.tsx +28 -0
  6428. package/ui/src/icons/Casdoor/index.md +44 -0
  6429. package/ui/src/icons/Casdoor/index.ts +20 -0
  6430. package/ui/src/icons/Casdoor/style.ts +2 -0
  6431. package/ui/src/icons/Clerk/components/Avatar.tsx +23 -0
  6432. package/ui/src/icons/Clerk/components/Color.tsx +32 -0
  6433. package/ui/src/icons/Clerk/components/Mono.tsx +30 -0
  6434. package/ui/src/icons/Clerk/index.md +44 -0
  6435. package/ui/src/icons/Clerk/index.ts +20 -0
  6436. package/ui/src/icons/Clerk/style.ts +2 -0
  6437. package/ui/src/icons/Cloudflare/index.md +34 -0
  6438. package/ui/src/icons/DingTalk/components/Avatar.tsx +23 -0
  6439. package/ui/src/icons/DingTalk/components/Color.tsx +27 -0
  6440. package/ui/src/icons/DingTalk/components/Mono.tsx +26 -0
  6441. package/ui/src/icons/DingTalk/index.md +44 -0
  6442. package/ui/src/icons/DingTalk/index.ts +20 -0
  6443. package/ui/src/icons/DingTalk/style.ts +2 -0
  6444. package/ui/src/icons/Discord/components/Avatar.tsx +23 -0
  6445. package/ui/src/icons/Discord/components/Color.tsx +27 -0
  6446. package/ui/src/icons/Discord/components/Mono.tsx +26 -0
  6447. package/ui/src/icons/Discord/index.md +44 -0
  6448. package/ui/src/icons/Discord/index.ts +20 -0
  6449. package/ui/src/icons/Discord/style.ts +2 -0
  6450. package/ui/src/icons/Github/index.md +34 -0
  6451. package/ui/src/icons/GoogleChat/components/Avatar.tsx +24 -0
  6452. package/ui/src/icons/GoogleChat/components/Color.tsx +57 -0
  6453. package/ui/src/icons/GoogleChat/components/Mono.tsx +26 -0
  6454. package/ui/src/icons/GoogleChat/index.md +44 -0
  6455. package/ui/src/icons/GoogleChat/index.ts +20 -0
  6456. package/ui/src/icons/GoogleChat/style.ts +2 -0
  6457. package/ui/src/icons/IMessage/components/Avatar.tsx +24 -0
  6458. package/ui/src/icons/IMessage/components/Color.tsx +27 -0
  6459. package/ui/src/icons/IMessage/components/Inner.tsx +26 -0
  6460. package/ui/src/icons/IMessage/components/Mono.tsx +26 -0
  6461. package/ui/src/icons/IMessage/index.md +44 -0
  6462. package/ui/src/icons/IMessage/index.ts +20 -0
  6463. package/ui/src/icons/IMessage/style.ts +2 -0
  6464. package/ui/src/icons/Lark/components/Avatar.tsx +23 -0
  6465. package/ui/src/icons/Lark/components/Color.tsx +35 -0
  6466. package/ui/src/icons/Lark/components/Mono.tsx +29 -0
  6467. package/ui/src/icons/Lark/index.md +44 -0
  6468. package/ui/src/icons/Lark/index.ts +20 -0
  6469. package/ui/src/icons/Lark/style.ts +2 -0
  6470. package/ui/src/icons/Line/components/Avatar.tsx +23 -0
  6471. package/ui/src/icons/Line/components/Color.tsx +27 -0
  6472. package/ui/src/icons/Line/components/Mono.tsx +26 -0
  6473. package/ui/src/icons/Line/index.md +44 -0
  6474. package/ui/src/icons/Line/index.ts +20 -0
  6475. package/ui/src/icons/Line/style.ts +2 -0
  6476. package/ui/src/icons/Logto/components/Avatar.tsx +23 -0
  6477. package/ui/src/icons/Logto/components/Color.tsx +43 -0
  6478. package/ui/src/icons/Logto/components/Mono.tsx +29 -0
  6479. package/ui/src/icons/Logto/index.md +44 -0
  6480. package/ui/src/icons/Logto/index.ts +20 -0
  6481. package/ui/src/icons/Logto/style.ts +2 -0
  6482. package/ui/src/icons/MicrosoftEntra/components/Avatar.tsx +22 -0
  6483. package/ui/src/icons/MicrosoftEntra/components/Color.tsx +41 -0
  6484. package/ui/src/icons/MicrosoftEntra/components/Mono.tsx +30 -0
  6485. package/ui/src/icons/MicrosoftEntra/index.md +44 -0
  6486. package/ui/src/icons/MicrosoftEntra/index.ts +20 -0
  6487. package/ui/src/icons/MicrosoftEntra/style.ts +2 -0
  6488. package/ui/src/icons/MicrosoftTeams/components/Avatar.tsx +23 -0
  6489. package/ui/src/icons/MicrosoftTeams/components/Color.tsx +41 -0
  6490. package/ui/src/icons/MicrosoftTeams/components/Mono.tsx +31 -0
  6491. package/ui/src/icons/MicrosoftTeams/index.md +44 -0
  6492. package/ui/src/icons/MicrosoftTeams/index.ts +20 -0
  6493. package/ui/src/icons/MicrosoftTeams/style.ts +2 -0
  6494. package/ui/src/icons/NextAuth/components/Avatar.tsx +23 -0
  6495. package/ui/src/icons/NextAuth/components/Color.tsx +78 -0
  6496. package/ui/src/icons/NextAuth/components/Mono.tsx +29 -0
  6497. package/ui/src/icons/NextAuth/index.md +44 -0
  6498. package/ui/src/icons/NextAuth/index.ts +20 -0
  6499. package/ui/src/icons/NextAuth/style.ts +2 -0
  6500. package/ui/src/icons/QQ/components/Avatar.tsx +23 -0
  6501. package/ui/src/icons/QQ/components/Color.tsx +55 -0
  6502. package/ui/src/icons/QQ/components/Mono.tsx +26 -0
  6503. package/ui/src/icons/QQ/index.md +44 -0
  6504. package/ui/src/icons/QQ/index.ts +20 -0
  6505. package/ui/src/icons/QQ/style.ts +2 -0
  6506. package/ui/src/icons/Slack/components/Avatar.tsx +23 -0
  6507. package/ui/src/icons/Slack/components/Color.tsx +39 -0
  6508. package/ui/src/icons/Slack/components/Mono.tsx +29 -0
  6509. package/ui/src/icons/Slack/index.md +44 -0
  6510. package/ui/src/icons/Slack/index.ts +20 -0
  6511. package/ui/src/icons/Slack/style.ts +2 -0
  6512. package/ui/src/icons/Telegram/components/Avatar.tsx +24 -0
  6513. package/ui/src/icons/Telegram/components/Color.tsx +27 -0
  6514. package/ui/src/icons/Telegram/components/Inner.tsx +26 -0
  6515. package/ui/src/icons/Telegram/components/Mono.tsx +26 -0
  6516. package/ui/src/icons/Telegram/index.md +44 -0
  6517. package/ui/src/icons/Telegram/index.ts +20 -0
  6518. package/ui/src/icons/Telegram/style.ts +2 -0
  6519. package/ui/src/icons/WeChat/components/Avatar.tsx +23 -0
  6520. package/ui/src/icons/WeChat/components/Color.tsx +27 -0
  6521. package/ui/src/icons/WeChat/components/Mono.tsx +26 -0
  6522. package/ui/src/icons/WeChat/index.md +44 -0
  6523. package/ui/src/icons/WeChat/index.ts +20 -0
  6524. package/ui/src/icons/WeChat/style.ts +2 -0
  6525. package/ui/src/icons/WhatsApp/components/Avatar.tsx +24 -0
  6526. package/ui/src/icons/WhatsApp/components/Color.tsx +27 -0
  6527. package/ui/src/icons/WhatsApp/components/Mono.tsx +26 -0
  6528. package/ui/src/icons/WhatsApp/index.md +44 -0
  6529. package/ui/src/icons/WhatsApp/index.ts +20 -0
  6530. package/ui/src/icons/WhatsApp/style.ts +2 -0
  6531. package/ui/src/icons/Zitadel/components/Avatar.tsx +23 -0
  6532. package/ui/src/icons/Zitadel/components/Color.tsx +156 -0
  6533. package/ui/src/icons/Zitadel/components/Mono.tsx +57 -0
  6534. package/ui/src/icons/Zitadel/index.md +44 -0
  6535. package/ui/src/icons/Zitadel/index.ts +20 -0
  6536. package/ui/src/icons/Zitadel/style.ts +2 -0
  6537. package/ui/src/icons/index.ts +29 -0
  6538. package/ui/src/icons/lucideExtra/AndroidIcon.tsx +15 -0
  6539. package/ui/src/icons/lucideExtra/AppleIcon.tsx +15 -0
  6540. package/ui/src/icons/lucideExtra/AppstoreIcon.tsx +15 -0
  6541. package/ui/src/icons/lucideExtra/BotPromptIcon.tsx +15 -0
  6542. package/ui/src/icons/lucideExtra/BrainOffIcon.tsx +43 -0
  6543. package/ui/src/icons/lucideExtra/ChromeIcon.tsx +15 -0
  6544. package/ui/src/icons/lucideExtra/CodepenIcon.tsx +15 -0
  6545. package/ui/src/icons/lucideExtra/CodesandboxIcon.tsx +15 -0
  6546. package/ui/src/icons/lucideExtra/CreateBotIcon.tsx +15 -0
  6547. package/ui/src/icons/lucideExtra/DiscordIcon.tsx +22 -0
  6548. package/ui/src/icons/lucideExtra/FacebookIcon.tsx +15 -0
  6549. package/ui/src/icons/lucideExtra/FigmaIcon.tsx +15 -0
  6550. package/ui/src/icons/lucideExtra/FramerIcon.tsx +15 -0
  6551. package/ui/src/icons/lucideExtra/GithubIcon.tsx +15 -0
  6552. package/ui/src/icons/lucideExtra/GitlabIcon.tsx +15 -0
  6553. package/ui/src/icons/lucideExtra/GlobeOffIcon.tsx +22 -0
  6554. package/ui/src/icons/lucideExtra/GooglePlayIcon.tsx +15 -0
  6555. package/ui/src/icons/lucideExtra/GroupBotIcon.tsx +29 -0
  6556. package/ui/src/icons/lucideExtra/GroupBotSquareIcon.tsx +22 -0
  6557. package/ui/src/icons/lucideExtra/InstagramIcon.tsx +15 -0
  6558. package/ui/src/icons/lucideExtra/LeftClickIcon.tsx +22 -0
  6559. package/ui/src/icons/lucideExtra/LeftDoubleClickIcon.tsx +15 -0
  6560. package/ui/src/icons/lucideExtra/LinkedinIcon.tsx +15 -0
  6561. package/ui/src/icons/lucideExtra/McpIcon.tsx +22 -0
  6562. package/ui/src/icons/lucideExtra/NotionIcon.tsx +29 -0
  6563. package/ui/src/icons/lucideExtra/PocketIcon.tsx +15 -0
  6564. package/ui/src/icons/lucideExtra/ProviderIcon.tsx +36 -0
  6565. package/ui/src/icons/lucideExtra/RailSymbolIcon.tsx +15 -0
  6566. package/ui/src/icons/lucideExtra/RedditIcon.tsx +36 -0
  6567. package/ui/src/icons/lucideExtra/RightClickIcon.tsx +22 -0
  6568. package/ui/src/icons/lucideExtra/RightDoubleClickIcon.tsx +22 -0
  6569. package/ui/src/icons/lucideExtra/ShapesUploadIcon.tsx +15 -0
  6570. package/ui/src/icons/lucideExtra/SkillsIcon.tsx +22 -0
  6571. package/ui/src/icons/lucideExtra/SlackIcon.tsx +15 -0
  6572. package/ui/src/icons/lucideExtra/ThinkIcon.tsx +22 -0
  6573. package/ui/src/icons/lucideExtra/TreeDownRightIcon.tsx +15 -0
  6574. package/ui/src/icons/lucideExtra/TreeUpDownRightIcon.tsx +15 -0
  6575. package/ui/src/icons/lucideExtra/demos/index.tsx +24 -0
  6576. package/ui/src/icons/lucideExtra/index.md +13 -0
  6577. package/ui/src/icons/lucideExtra/index.ts +37 -0
  6578. package/ui/src/index.ts +370 -0
  6579. package/ui/src/mdx/Callout/demos/Story.tsx +25 -0
  6580. package/ui/src/mdx/Callout/demos/index.tsx +22 -0
  6581. package/ui/src/mdx/Callout/index.md +30 -0
  6582. package/ui/src/mdx/Callout/index.tsx +76 -0
  6583. package/ui/src/mdx/Callout/style.ts +33 -0
  6584. package/ui/src/mdx/Cards/Card.tsx +143 -0
  6585. package/ui/src/mdx/Cards/demos/Rows.tsx +35 -0
  6586. package/ui/src/mdx/Cards/demos/index.tsx +69 -0
  6587. package/ui/src/mdx/Cards/index.md +45 -0
  6588. package/ui/src/mdx/Cards/index.tsx +27 -0
  6589. package/ui/src/mdx/Cards/style.ts +13 -0
  6590. package/ui/src/mdx/FileTree/File.tsx +25 -0
  6591. package/ui/src/mdx/FileTree/Folder.tsx +38 -0
  6592. package/ui/src/mdx/FileTree/demos/index.tsx +19 -0
  6593. package/ui/src/mdx/FileTree/index.md +45 -0
  6594. package/ui/src/mdx/FileTree/index.tsx +22 -0
  6595. package/ui/src/mdx/FileTree/style.ts +26 -0
  6596. package/ui/src/mdx/Mdx/demos/data.ts +12 -0
  6597. package/ui/src/mdx/Mdx/demos/index.tsx +28 -0
  6598. package/ui/src/mdx/Mdx/index.md +35 -0
  6599. package/ui/src/mdx/Mdx/index.tsx +153 -0
  6600. package/ui/src/mdx/Steps/demos/index.tsx +13 -0
  6601. package/ui/src/mdx/Steps/index.md +25 -0
  6602. package/ui/src/mdx/Steps/index.tsx +20 -0
  6603. package/ui/src/mdx/Steps/style.ts +61 -0
  6604. package/ui/src/mdx/Tabs/Tab.tsx +22 -0
  6605. package/ui/src/mdx/Tabs/demos/index.tsx +12 -0
  6606. package/ui/src/mdx/Tabs/index.md +36 -0
  6607. package/ui/src/mdx/Tabs/index.tsx +52 -0
  6608. package/ui/src/mdx/Tabs/style.ts +19 -0
  6609. package/ui/src/mdx/index.ts +16 -0
  6610. package/ui/src/mdx/mdxComponents/Citation/PopoverPanel.tsx +81 -0
  6611. package/ui/src/mdx/mdxComponents/Citation/index.tsx +70 -0
  6612. package/ui/src/mdx/mdxComponents/Citation/style.ts +34 -0
  6613. package/ui/src/mdx/mdxComponents/CodeBlock.tsx +66 -0
  6614. package/ui/src/mdx/mdxComponents/Image.tsx +24 -0
  6615. package/ui/src/mdx/mdxComponents/Link.tsx +53 -0
  6616. package/ui/src/mdx/mdxComponents/Pre/style.ts +10 -0
  6617. package/ui/src/mdx/mdxComponents/Pre.tsx +128 -0
  6618. package/ui/src/mdx/mdxComponents/Section.tsx +25 -0
  6619. package/ui/src/mdx/mdxComponents/Video.tsx +25 -0
  6620. package/ui/src/mdx/mdxComponents/index.md +43 -0
  6621. package/ui/src/mdx/mdxComponents/index.ts +28 -0
  6622. package/ui/src/mobile/ChatHeader/ChatHeader.tsx +88 -0
  6623. package/ui/src/mobile/ChatHeader/ChatHeaderTitle.tsx +39 -0
  6624. package/ui/src/mobile/ChatHeader/demos/index.tsx +31 -0
  6625. package/ui/src/mobile/ChatHeader/index.md +15 -0
  6626. package/ui/src/mobile/ChatHeader/index.ts +18 -0
  6627. package/ui/src/mobile/ChatHeader/style.ts +71 -0
  6628. package/ui/src/mobile/ChatHeader/type.ts +34 -0
  6629. package/ui/src/mobile/ChatInputArea/ChatInputArea.tsx +138 -0
  6630. package/ui/src/mobile/ChatInputArea/components/ChatSendButton.tsx +32 -0
  6631. package/ui/src/mobile/ChatInputArea/demos/index.tsx +32 -0
  6632. package/ui/src/mobile/ChatInputArea/index.md +16 -0
  6633. package/ui/src/mobile/ChatInputArea/index.ts +18 -0
  6634. package/ui/src/mobile/ChatInputArea/style.ts +29 -0
  6635. package/ui/src/mobile/ChatInputArea/type.ts +22 -0
  6636. package/ui/src/mobile/SafeArea/SafeArea.tsx +15 -0
  6637. package/ui/src/mobile/SafeArea/demos/index.tsx +13 -0
  6638. package/ui/src/mobile/SafeArea/index.md +15 -0
  6639. package/ui/src/mobile/SafeArea/index.tsx +2 -0
  6640. package/ui/src/mobile/SafeArea/style.ts +17 -0
  6641. package/ui/src/mobile/SafeArea/type.ts +5 -0
  6642. package/ui/src/mobile/TabBar/TabBar.tsx +64 -0
  6643. package/ui/src/mobile/TabBar/demos/index.tsx +25 -0
  6644. package/ui/src/mobile/TabBar/index.md +15 -0
  6645. package/ui/src/mobile/TabBar/index.ts +2 -0
  6646. package/ui/src/mobile/TabBar/style.ts +49 -0
  6647. package/ui/src/mobile/TabBar/type.ts +19 -0
  6648. package/ui/src/mobile/index.ts +14 -0
  6649. package/ui/src/storybook/StoryBook/demos/index.tsx +29 -0
  6650. package/ui/src/storybook/StoryBook/index.md +16 -0
  6651. package/ui/src/storybook/StoryBook/index.tsx +51 -0
  6652. package/ui/src/storybook/StoryBook/style.ts +68 -0
  6653. package/ui/src/storybook/index.ts +6 -0
  6654. package/ui/src/styles/animations.ts +10 -0
  6655. package/ui/src/styles/classNames.ts +4 -0
  6656. package/ui/src/styles/customTheme.ts +70 -0
  6657. package/ui/src/styles/index.ts +5 -0
  6658. package/ui/src/styles/theme/algorithms/darkAlgorithm.ts +43 -0
  6659. package/ui/src/styles/theme/algorithms/lightAlgorithm.ts +40 -0
  6660. package/ui/src/styles/theme/antdTheme.ts +62 -0
  6661. package/ui/src/styles/theme/customStylish.ts +159 -0
  6662. package/ui/src/styles/theme/customStylishStatic.ts +191 -0
  6663. package/ui/src/styles/theme/customToken.ts +89 -0
  6664. package/ui/src/styles/theme/generateColorPalette.ts +59 -0
  6665. package/ui/src/styles/theme/token/base.ts +59 -0
  6666. package/ui/src/styles/theme/token/dark.ts +60 -0
  6667. package/ui/src/styles/theme/token/light.ts +60 -0
  6668. package/ui/src/types/citation.ts +6 -0
  6669. package/ui/src/types/customStylish.ts +20 -0
  6670. package/ui/src/types/customToken.ts +67 -0
  6671. package/ui/src/types/global.d.ts +15 -0
  6672. package/ui/src/types/index.ts +21 -0
  6673. package/ui/src/types/trigger.ts +4 -0
  6674. package/ui/src/utils/blobToPng.ts +56 -0
  6675. package/ui/src/utils/composeEventHandlers.ts +29 -0
  6676. package/ui/src/utils/copyToClipboard.test.ts +66 -0
  6677. package/ui/src/utils/copyToClipboard.ts +13 -0
  6678. package/ui/src/utils/destroyOnInvalidActiveTriggerElement.ts +137 -0
  6679. package/ui/src/utils/devSingleton.ts +85 -0
  6680. package/ui/src/utils/dom.ts +33 -0
  6681. package/ui/src/utils/downloadBlob.ts +18 -0
  6682. package/ui/src/utils/formatTime.test.ts +53 -0
  6683. package/ui/src/utils/formatTime.ts +14 -0
  6684. package/ui/src/utils/genCdnUrl.test.ts +100 -0
  6685. package/ui/src/utils/genCdnUrl.ts +25 -0
  6686. package/ui/src/utils/getNow.ts +3 -0
  6687. package/ui/src/utils/isDeepEqual.test.ts +55 -0
  6688. package/ui/src/utils/isDeepEqual.ts +33 -0
  6689. package/ui/src/utils/parseTrigger.ts +20 -0
  6690. package/ui/src/utils/placement.ts +124 -0
  6691. package/ui/src/utils/platform.ts +4 -0
  6692. package/ui/src/utils/safeParseJSON.test.ts +53 -0
  6693. package/ui/src/utils/safeParseJSON.ts +12 -0
  6694. package/ui/src/utils/safeReadableColor.ts +11 -0
  6695. package/ui/src/utils/smoothCorners.ts +140 -0
  6696. package/webfont-geist/css/index-full.css +175 -0
  6697. package/webfont-geist/css/index.css +38 -0
  6698. package/webfont-geist-mono/css/index-full.css +44 -0
  6699. package/webfont-geist-mono/css/index.css +44 -0
@@ -0,0 +1,82 @@
1
+ diff --git a/Lexical.dev.js b/Lexical.dev.js
2
+ index 0aa553c4ce0dc568f21518b1914bc5b8c674ecd7..40120a08bc33990a26159f465855f14df44b28ff 100644
3
+ --- a/Lexical.dev.js
4
+ +++ b/Lexical.dev.js
5
+ @@ -8426,7 +8426,7 @@ function parseEditorState(serializedEditorState, editor, updateFn) {
6
+ const serializedNode = serializedEditorState.root;
7
+ $parseSerializedNodeImpl(serializedNode, registeredNodes);
8
+ if (updateFn) {
9
+ - updateFn();
10
+ + updateFn(editorState);
11
+ }
12
+
13
+ // Make the editorState immutable
14
+ @@ -11040,10 +11040,14 @@ function getPendingNodeToClone() {
15
+ return node;
16
+ }
17
+ let keyCounter = 1;
18
+ -function resetRandomKey() {
19
+ - keyCounter = 1;
20
+ +function resetRandomKey(targetId) {
21
+ + if (targetId !== undefined) {
22
+ + keyCounter = targetId;
23
+ + } else {
24
+ + keyCounter = 1;
25
+ + }
26
+ }
27
+ -function generateRandomKey() {
28
+ +function generateRandomKey() {
29
+ return '' + keyCounter++;
30
+ }
31
+
32
+ diff --git a/Lexical.dev.mjs b/Lexical.dev.mjs
33
+ index 3ed2dd7c6ab17c623b76fe7abb7826cf71ee087f..67ea7c9565207829f9cc758220f745b82fcc0401 100644
34
+ --- a/Lexical.dev.mjs
35
+ +++ b/Lexical.dev.mjs
36
+ @@ -8424,7 +8424,7 @@ function parseEditorState(serializedEditorState, editor, updateFn) {
37
+ const serializedNode = serializedEditorState.root;
38
+ $parseSerializedNodeImpl(serializedNode, registeredNodes);
39
+ if (updateFn) {
40
+ - updateFn();
41
+ + updateFn(editorState);
42
+ }
43
+
44
+ // Make the editorState immutable
45
+ @@ -11038,10 +11038,14 @@ function getPendingNodeToClone() {
46
+ return node;
47
+ }
48
+ let keyCounter = 1;
49
+ -function resetRandomKey() {
50
+ - keyCounter = 1;
51
+ +function resetRandomKey(targetId) {
52
+ + if (targetId !== undefined) {
53
+ + keyCounter = targetId;
54
+ + } else {
55
+ + keyCounter = 1;
56
+ + }
57
+ }
58
+ -function generateRandomKey() {
59
+ +function generateRandomKey() {
60
+ return '' + keyCounter++;
61
+ }
62
+
63
+ diff --git a/Lexical.prod.js b/Lexical.prod.js
64
+ index 6398f9761e56278d7a98139bfe9f79ea96ae054a..f03c23fa56b2b28005f70578e4c0542140b1a46e 100644
65
+ --- a/Lexical.prod.js
66
+ +++ b/Lexical.prod.js
67
+ @@ -6,4 +6,4 @@
68
+ *
69
+ */
70
+
71
+ -"use strict";function t(t,...e){const n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",t);for(const t of e)r.append("v",t);throw n.search=r.toString(),Error(`Minified Lexical error #${t}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function e(t,...e){const n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",t);for(const t of e)r.append("v",t);n.search=r.toString(),console.warn(`Minified Lexical warning #${t}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}const n="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,r=n&&"documentMode"in document?document.documentMode:null,o=n&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),i=n&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),s=!(!n||!("InputEvent"in window)||r)&&"getTargetRanges"in new window.InputEvent("input"),l=n&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),a=n&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,c=n&&/Android/.test(navigator.userAgent),u=n&&/^(?=.*Chrome).*/i.test(navigator.userAgent),f=n&&c&&u,d=n&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&o&&!u,h=0,g=1,_=2,p=128,y=1,m=2,x=3,C=4,S=5,N=6,T=l||a||d?"\xa0":"\u200b",v="\n\n",k=i?"\xa0":T,E="\u0591-\u07ff\ufb1d-\ufdfd\ufe70-\ufefc",O="A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u02b8\u0300-\u0590\u0800-\u1fff\u200e\u2c00-\ufb1c\ufe00-\ufe6f\ufefd-\uffff",M=new RegExp("^[^"+O+"]*["+E+"]"),b=new RegExp("^[^"+E+"]*["+O+"]"),A={bold:1,capitalize:1024,code:16,highlight:p,italic:2,lowercase:256,strikethrough:4,subscript:32,superscript:64,underline:8,uppercase:512},w={directionless:1,unmergeable:2},D={center:2,end:6,justify:4,left:1,right:3,start:5},P={[m]:"center",[N]:"end",[C]:"justify",[y]:"left",[x]:"right",[S]:"start"},I={normal:0,segmented:2,token:1},F={[h]:"normal",[_]:"segmented",[g]:"token"},L="$config";function R(t,e,n,r,o,i){let s=t.getFirstChild();for(;null!==s;){const t=s.__key;s.__parent===e&&(uo(s)&&R(s,t,n,r,o,i),n.has(t)||i.delete(t),o.push(t)),s=s.getNextSibling()}}let K=!1,B=0;function z(t){B=t.timeStamp}function W(t,e,n){const r="BR"===t.nodeName,o=e.__lexicalLineBreak;return o&&(t===o||r&&t.previousSibling===o)||r&&void 0!==ri(t,n)}function $(t,e,n){const r=Hi(Ki(n));let o=null,i=null;null!==r&&r.anchorNode===t&&(o=r.anchorOffset,i=r.focusOffset);const s=t.nodeValue;null!==s&&pi(e,s,o,i,!1)}function U(t,e,n){if(ur(t)){const e=t.anchor.getNode();if(e.is(n)&&t.format!==e.getFormat())return!1}return jo(e)&&n.isAttached()}function J(t,e,n,r){for(let o=t;o&&!ls(o);o=Di(o)){const t=ri(o,e);if(void 0!==t){const e=ei(t,n);if(e)return go(e)||!Gi(o)?void 0:[o,e]}else if(o===r)return[r,ai(n)]}}function Y(t,e,n){K=!0;const r=performance.now()-B>100;try{so(t,()=>{const o=Er()||function(t){return t.getEditorState().read(()=>{const t=Er();return null!==t?t.clone():null})}(t),s=new Map,l=t.getRootElement(),a=t._editorState,c=t._blockCursorElement;let u=!1,f="";for(let n=0;n<e.length;n++){const d=e[n],h=d.type,g=d.target,_=J(g,t,a,l);if(!_)continue;const[p,y]=_;if("characterData"===h)r&&tr(y)&&jo(g)&&U(o,g,y)&&$(g,y,t);else if("childList"===h){u=!0;const e=d.addedNodes;for(let n=0;n<e.length;n++){const r=e[n],o=ni(r),s=r.parentNode;if(null!=s&&r!==c&&null===o&&!W(r,s,t)){if(i){const t=(Gi(r)?r.innerText:null)||r.nodeValue;t&&(f+=t)}s.removeChild(r)}}const n=d.removedNodes,r=n.length;if(r>0){let e=0;for(let o=0;o<r;o++){const r=n[o];(W(r,g,t)||c===r)&&(g.appendChild(r),e++)}r!==e&&s.set(p,y)}}}if(s.size>0)for(const[e,n]of s)n.reconcileObservedMutation(e,t);const d=n.takeRecords();if(d.length>0){for(let e=0;e<d.length;e++){const n=d[e],r=n.addedNodes,o=n.target;for(let e=0;e<r.length;e++){const n=r[e],i=n.parentNode;null==i||"BR"!==n.nodeName||W(n,o,t)||i.removeChild(n)}}n.takeRecords()}null!==o&&(u&&ci(o),i&&bi(t)&&o.insertRawText(f))})}finally{K=!1}}function j(t){const e=t._observer;if(null!==e){Y(t,e.takeRecords(),e)}}function H(t){!function(t){0===B&&Ki(t).addEventListener("textInput",z,!0)}(t),t._observer=new MutationObserver((e,n)=>{Y(t,e,n)})}class V{key;parse;unparse;isEqual;defaultValue;resetOnCopyNode;constructor(t,e){this.key=t,this.parse=e.parse.bind(e),this.unparse=(e.unparse||et).bind(e),this.isEqual=(e.isEqual||Object.is).bind(e),this.defaultValue=this.parse(void 0),this.resetOnCopyNode=e.resetOnCopyNode||!1}}function G(t,e,n="latest"){const r=("latest"===n?t.getLatest():t).__state;return r?r.getValue(e):e.defaultValue}function q(t){const e=new Map,n=new Set;for(let r="function"==typeof t?t:t.replace;r.prototype&&void 0!==r.prototype.getType;r=Object.getPrototypeOf(r)){const{ownNodeConfig:t}=cs(r);if(t&&t.stateConfigs)for(const r of t.stateConfigs){let t;"stateConfig"in r?(t=r.stateConfig,r.flat&&n.add(t.key)):t=r,e.set(t.key,t)}}return{flatKeys:n,sharedConfigMap:e}}class X{node;knownState;unknownState;sharedNodeState;size;constructor(t,e,n=void 0,r=new Map,o=void 0){this.node=t,this.sharedNodeState=e,this.unknownState=n,this.knownState=r;const{sharedConfigMap:i}=this.sharedNodeState,s=void 0!==o?o:function(t,e,n){let r=n.size;if(e)for(const o in e){const e=t.get(o);e&&n.has(e)||r++}return r}(i,n,r);this.size=s}getValue(t){const e=this.knownState.get(t);if(void 0!==e)return e;this.sharedNodeState.sharedConfigMap.set(t.key,t);let n=t.defaultValue;if(this.unknownState&&t.key in this.unknownState){const e=this.unknownState[t.key];void 0!==e&&(n=t.parse(e)),this.updateFromKnown(t,n)}return n}getInternalState(){return[this.unknownState,this.knownState]}toJSON(){const t={...this.unknownState},e={};for(const[e,n]of this.knownState)e.isEqual(n,e.defaultValue)?delete t[e.key]:t[e.key]=e.unparse(n);for(const n of this.sharedNodeState.flatKeys)n in t&&(e[n]=t[n],delete t[n]);return tt(t)&&(e.$=t),e}getWritable(t){if(this.node===t)return this;const{sharedNodeState:e,unknownState:n}=this,r=new Map(this.knownState);return new X(t,e,function(t,e,n){let r;if(n)for(const[o,i]of Object.entries(n)){const n=t.get(o);n?e.has(n)||e.set(n,n.parse(i)):(r=r||{},r[o]=i)}return r}(e.sharedConfigMap,r,n),r,this.size)}resetOnCopyNode(){for(const t of this.knownState.keys())t.resetOnCopyNode&&this.knownState.set(t,t.defaultValue);return this}updateFromKnown(t,e){const n=t.key;this.sharedNodeState.sharedConfigMap.set(n,t);const{knownState:r,unknownState:o}=this;r.has(t)||o&&n in o||(o&&(delete o[n],this.unknownState=tt(o)),this.size++),r.set(t,e)}updateFromUnknown(t,e){const n=this.sharedNodeState.sharedConfigMap.get(t);n?this.updateFromKnown(n,n.parse(e)):(this.unknownState=this.unknownState||{},t in this.unknownState||this.size++,this.unknownState[t]=e)}updateFromJSON(t){const{knownState:e}=this;for(const t of e.keys())e.set(t,t.defaultValue);if(this.size=e.size,this.unknownState=void 0,t)for(const[e,n]of Object.entries(t))this.updateFromUnknown(e,n)}}function Q(t){const e=t.getWritable(),n=e.__state?e.__state.getWritable(e):new X(e,Z(e));return e.__state=n,n}function Z(t){return t.__state?t.__state.sharedNodeState:Fo(es(),t.getType()).sharedNodeState}function tt(t){if(t)for(const e in t)return t}function et(t){return t}function nt(t,e,n){for(const[r,o]of e.knownState){if(t.has(r.key))continue;t.add(r.key);const e=n?n.getValue(r):r.defaultValue;if(e!==o&&!r.isEqual(e,o))return!0}return!1}function rt(t,e,n){const{unknownState:r}=e,o=n?n.unknownState:void 0;if(r)for(const[e,n]of Object.entries(r)){if(t.has(e))continue;t.add(e);if(n!==(o?o[e]:void 0))return!0}return!1}function ot(t,e){const n=t.__state;return n&&n.node===t?n.getWritable(e):n}function it(t,e){const n=t.__mode,r=t.__format,o=t.__style,i=e.__mode,s=e.__format,l=e.__style,a=t.__state,c=e.__state;return(null===n||n===i)&&(null===r||r===s)&&(null===o||o===l)&&(null===t.__state||a===c||function(t,e){if(t===e)return!0;if(t&&e&&t.size!==e.size)return!1;const n=new Set;return!(t&&nt(n,t,e)||e&&nt(n,e,t)||t&&rt(n,t,e)||e&&rt(n,e,t))}(a,c))}function st(t,e){const n=t.mergeWithSibling(e),r=Vr()._normalizedNodes;return r.add(t.__key),r.add(e.__key),n}function lt(t){let e,n,r=t;if(""!==r.__text||!r.isSimpleText()||r.isUnmergeable()){for(;null!==(e=r.getPreviousSibling())&&tr(e)&&e.isSimpleText()&&!e.isUnmergeable();){if(""!==e.__text){if(it(e,r)){r=st(e,r);break}break}e.remove()}for(;null!==(n=r.getNextSibling())&&tr(n)&&n.isSimpleText()&&!n.isUnmergeable();){if(""!==n.__text){if(it(r,n)){r=st(r,n);break}break}n.remove()}}else r.remove()}function at(t){return ct(t.anchor),ct(t.focus),t}function ct(t){for(;"element"===t.type;){const e=t.getNode(),n=t.offset;let r,o;if(n===e.getChildrenSize()?(r=e.getChildAtIndex(n-1),o=!0):(r=e.getChildAtIndex(n),o=!1),tr(r)){t.set(r.__key,o?r.getTextContentSize():0,"text",!0);break}if(!uo(r))break;t.set(r.__key,o?r.getChildrenSize():0,"element",!0)}}let ut,ft,dt,ht,gt,_t,pt,yt,mt,xt,Ct="",St=null,Nt=null,Tt=!1,vt=!1;function kt(t,e){const n=pt.get(t);if(null!==e){const n=Ut(t);n.parentNode===e&&e.removeChild(n)}if(yt.has(t)||ft._keyToDOMMap.delete(t),uo(n)){const t=Rt(n,pt);Et(t,0,t.length-1,null)}void 0!==n&&Ei(xt,dt,ht,n,"destroyed")}function Et(t,e,n,r){for(let o=e;o<=n;++o){const e=t[o];void 0!==e&&kt(e,r)}}function Ot(t,e){t.setProperty("text-align",e)}const Mt="40px";function bt(t,e){const n=ut.theme.indent;if("string"==typeof n){const r=t.classList.contains(n);e>0&&!r?t.classList.add(n):e<1&&r&&t.classList.remove(n)}if(0===e)return void t.style.setProperty("padding-inline-start","");const r=getComputedStyle(ft._rootElement||t).getPropertyValue("--lexical-indent-base-value")||Mt;t.style.setProperty("padding-inline-start",`calc(${e} * ${r})`)}function At(t,e){const n=t.style;0===e?Ot(n,""):1===e?Ot(n,"left"):2===e?Ot(n,"center"):3===e?Ot(n,"right"):4===e?Ot(n,"justify"):5===e?Ot(n,"start"):6===e&&Ot(n,"end")}function wt(t,e){const n=function(t){const e=t.__dir;if(null!==e)return e;if(po(t))return null;const n=t.getParentOrThrow();return po(n)&&null===n.__dir?"auto":null}(e);null!==n?t.dir=n:t.removeAttribute("dir")}function Dt(e,n){const r=yt.get(e);void 0===r&&t(60);const o=r.createDOM(ut,ft);if(function(t,e,n){const r=n._keyToDOMMap;(function(t,e,n){const r=`__lexicalKey_${e._key}`;t[r]=n})(e,n,t),r.set(t,e)}(e,o,ft),tr(r)?o.setAttribute("data-lexical-text","true"):go(r)&&o.setAttribute("data-lexical-decorator","true"),uo(r)){const t=r.__indent,e=r.__size;if(wt(o,r),0!==t&&bt(o,t),0!==e){const t=e-1;Pt(Rt(r,yt),r,0,t,r.getDOMSlot(o))}const n=r.__format;0!==n&&At(o,n),r.isInline()||Ft(null,r,o)}else{const t=r.getTextContent();if(go(r)){const t=r.decorate(ft,ut);null!==t&&Bt(e,t),o.contentEditable="false"}Ct+=t}return null!==n&&n.insertChild(o),Ei(xt,dt,ht,r,"created"),o}function Pt(t,e,n,r,o){const i=Ct;Ct="";let s=n;for(;s<=r;++s){Dt(t[s],o);const e=yt.get(t[s]);null!==e&&tr(e)?null===St&&(St=e.getFormat(),Nt=e.getStyle()):uo(e)&&s<r&&!e.isInline()&&(Ct+=v)}o.element.__lexicalTextContent=Ct,Ct=i+Ct}function It(t,e){if(t){const n=t.__last;if(n){const t=e.get(n);if(t)return Ln(t)?"line-break":go(t)&&t.isInline()?"decorator":null}return"empty"}return null}function Ft(t,e,n){const r=It(t,pt),o=It(e,yt);r!==o&&e.getDOMSlot(n).setManagedLineBreak(o)}function Lt(e,n,r){var o;St=null,Nt=null,function(e,n,r){const o=Ct,i=e.__size,s=n.__size;Ct="";const l=r.element;if(1===i&&1===s){const t=e.__first,r=n.__first;if(t===r)Kt(t,l);else{const e=Ut(t),n=Dt(r,null);try{l.replaceChild(n,e)}catch(o){if("object"==typeof o&&null!=o){const i=`${o.toString()} Parent: ${l.tagName}, new child: {tag: ${n.tagName} key: ${r}}, old child: {tag: ${e.tagName}, key: ${t}}.`;throw new Error(i)}throw o}kt(t,null)}const o=yt.get(r);tr(o)&&null===St&&(St=o.getFormat(),Nt=o.getStyle())}else{const o=Rt(e,pt),a=Rt(n,yt);if(o.length!==i&&t(227),a.length!==s&&t(228),0===i)0!==s&&Pt(a,0,0,s-1,r);else if(0===s){if(0!==i){const t=null==r.after&&null==r.before&&null==r.element.__lexicalLineBreak;Et(o,0,i-1,t?null:l),t&&(l.textContent="")}}else!function(t,e,n,r,o,i){const s=r-1,l=o-1;let a,c,u=i.getFirstChild(),f=0,d=0;for(;f<=s&&d<=l;){const t=e[f],r=n[d];if(t===r)u=zt(Kt(r,i.element)),f++,d++;else{if(void 0===c&&(c=Wt(n,d)),void 0===a)a=Wt(e,f);else if(!a.has(t)){f++;continue}if(!c.has(t)){u=zt(Ut(t)),kt(t,i.element),f++,a.delete(t);continue}if(a.has(r)){const t=wi(ft,r);t!==u&&i.withBefore(u).insertChild(t),u=zt(Kt(r,i.element)),f++,d++}else Dt(r,i.withBefore(u)),d++}const o=yt.get(r);null!==o&&tr(o)?null===St&&(St=o.getFormat(),Nt=o.getStyle()):uo(o)&&d<=l&&!o.isInline()&&(Ct+=v)}const h=f>s,g=d>l;if(h&&!g){const t=n[l+1],e=void 0===t?null:ft.getElementByKey(t);Pt(n,0,d,l,i.withBefore(e))}else g&&!h&&Et(e,f,s,i.element)}(0,o,a,i,s,r)}l.__lexicalTextContent=Ct,Ct=o+Ct}(e,n,n.getDOMSlot(r)),o=n,null==St||St===o.__textFormat||vt||o.setTextFormat(St),function(t){null==Nt||Nt===t.__textStyle||vt||t.setTextStyle(Nt)}(n)}function Rt(e,n){const r=[];let o=e.__first;for(;null!==o;){const e=n.get(o);void 0===e&&t(101),r.push(o),o=e.__next}return r}function Kt(e,n){const r=pt.get(e);let o=yt.get(e);void 0!==r&&void 0!==o||t(61);const i=Tt||_t.has(e)||gt.has(e),s=wi(ft,e);if(r===o&&!i){let t;if(uo(r)){const e=s.__lexicalTextContent;"string"==typeof e?t=e:(t=r.getTextContent(),s.__lexicalTextContent=t)}else t=r.getTextContent();return Ct+=t,s}if(r!==o&&i&&Ei(xt,dt,ht,o,"updated"),o.updateDOM(r,s,ut)){const r=Dt(e,null);return null===n&&t(62),n.replaceChild(r,s),kt(e,null),r}if(uo(r)){uo(o)||t(334,e);const n=o.__indent;(Tt||n!==r.__indent)&&bt(s,n);const l=o.__format;if((Tt||l!==r.__format)&&At(s,l),i)Lt(r,o,s),po(o)||o.isInline()||Ft(r,o,s);else{const t=s.__lexicalTextContent;let e;"string"==typeof t?e=t:(e=r.getTextContent(),s.__lexicalTextContent=e),Ct+=e}if((Tt||o.__dir!==r.__dir)&&(wt(s,o),po(o)&&!Tt))for(const t of o.getChildren())if(uo(t)){wt(wi(ft,t.getKey()),t)}}else{const t=o.getTextContent();if(go(o)){const t=o.decorate(ft,ut);null!==t&&Bt(e,t)}Ct+=t}if(!vt&&po(o)&&o.__cachedText!==Ct){const t=o.getWritable();t.__cachedText=Ct,o=t}return s}function Bt(t,e){let n=ft._pendingDecorators;const r=ft._decorators;if(null===n){if(r[t]===e)return;n=ii(ft)}n[t]=e}function zt(t){let e=t.nextSibling;return null!==e&&e===ft._blockCursorElement&&(e=e.nextSibling),e}function Wt(t,e){const n=new Set;for(let r=e;r<t.length;r++)n.add(t[r]);return n}function $t(t,e,n,r,o,i){Ct="",Tt=2===r,ft=n,ut=n._config,dt=n._nodes,ht=ft._listeners.mutation,gt=o,_t=i,pt=t._nodeMap,yt=e._nodeMap,vt=e._readOnly,mt=new Map(n._keyToDOMMap);const s=new Map;return xt=s,Kt("root",null),ft=void 0,dt=void 0,gt=void 0,_t=void 0,pt=void 0,yt=void 0,ut=void 0,mt=void 0,xt=void 0,s}function Ut(e){const n=mt.get(e);return void 0===n&&t(75,e),n}function Jt(t){return{type:t}}const Yt=Jt("SELECTION_CHANGE_COMMAND"),jt=Jt("SELECTION_INSERT_CLIPBOARD_NODES_COMMAND"),Ht=Jt("CLICK_COMMAND"),Vt=Jt("BEFORE_INPUT_COMMAND"),Gt=Jt("INPUT_COMMAND"),qt=Jt("COMPOSITION_START_COMMAND"),Xt=Jt("COMPOSITION_END_COMMAND"),Qt=Jt("DELETE_CHARACTER_COMMAND"),Zt=Jt("INSERT_LINE_BREAK_COMMAND"),te=Jt("INSERT_PARAGRAPH_COMMAND"),ee=Jt("CONTROLLED_TEXT_INSERTION_COMMAND"),ne=Jt("PASTE_COMMAND"),re=Jt("REMOVE_TEXT_COMMAND"),oe=Jt("DELETE_WORD_COMMAND"),ie=Jt("DELETE_LINE_COMMAND"),se=Jt("FORMAT_TEXT_COMMAND"),le=Jt("UNDO_COMMAND"),ae=Jt("REDO_COMMAND"),ce=Jt("KEYDOWN_COMMAND"),ue=Jt("KEY_ARROW_RIGHT_COMMAND"),fe=Jt("MOVE_TO_END"),de=Jt("KEY_ARROW_LEFT_COMMAND"),he=Jt("MOVE_TO_START"),ge=Jt("KEY_ARROW_UP_COMMAND"),_e=Jt("KEY_ARROW_DOWN_COMMAND"),pe=Jt("KEY_ENTER_COMMAND"),ye=Jt("KEY_SPACE_COMMAND"),me=Jt("KEY_BACKSPACE_COMMAND"),xe=Jt("KEY_ESCAPE_COMMAND"),Ce=Jt("KEY_DELETE_COMMAND"),Se=Jt("KEY_TAB_COMMAND"),Ne=Jt("INSERT_TAB_COMMAND"),Te=Jt("INDENT_CONTENT_COMMAND"),ve=Jt("OUTDENT_CONTENT_COMMAND"),ke=Jt("DROP_COMMAND"),Ee=Jt("FORMAT_ELEMENT_COMMAND"),Oe=Jt("DRAGSTART_COMMAND"),Me=Jt("DRAGOVER_COMMAND"),be=Jt("DRAGEND_COMMAND"),Ae=Jt("COPY_COMMAND"),we=Jt("CUT_COMMAND"),De=Jt("SELECT_ALL_COMMAND"),Pe=Jt("CLEAR_EDITOR_COMMAND"),Ie=Jt("CLEAR_HISTORY_COMMAND"),Fe=Jt("CAN_REDO_COMMAND"),Le=Jt("CAN_UNDO_COMMAND"),Re=Jt("FOCUS_COMMAND"),Ke=Jt("BLUR_COMMAND"),Be=Jt("KEY_MODIFIER_COMMAND"),ze=Object.freeze({}),We=[["keydown",function(t,e){if($e=t.timeStamp,Ue=t.key,e.isComposing())return;Ai(e,ce,t)}],["pointerdown",function(t,e){const n=t.target,r=t.pointerType;qi(n)&&"touch"!==r&&"pen"!==r&&0===t.button&&so(e,()=>{Ko(n)||(Ge=!0)})}],["compositionstart",function(t,e){Ai(e,qt,t)}],["compositionend",function(t,e){i?Xe=!0:a||!l&&!d?Ai(e,Xt,t):(Qe=!0,Ze=t.data)}],["input",function(t,e){t.stopPropagation(),so(e,()=>{e.dispatchCommand(Gt,t)},{event:t}),Ye=null}],["click",function(t,e){so(e,()=>{const n=Er(),r=Hi(Ki(e)),o=Or();if(r)if(ur(n)){const e=n.anchor,i=e.getNode();if("element"===e.type&&0===e.offset&&n.isCollapsed()&&!po(i)&&1===li().getChildrenSize()&&i.getTopLevelElementOrThrow().isEmpty()&&null!==o&&n.is(o))r.removeAllRanges(),n.dirty=!0;else if(3===t.detail&&!n.isCollapsed()){if(i!==n.focus.getNode()){const t=us(i,t=>uo(t)&&!t.isInline());uo(t)&&t.select(0)}}}else if("touch"===t.pointerType||"pen"===t.pointerType){const n=r.anchorNode;if(Gi(n)||jo(n)){ci(kr(o,r,e,t))}}Ai(e,Ht,t)})}],["cut",ze],["copy",ze],["dragstart",ze],["dragover",ze],["dragend",ze],["paste",ze],["focus",ze],["blur",ze],["drop",ze]];s&&We.push(["beforeinput",(t,e)=>function(t,e){const n=t.inputType;if("deleteCompositionText"===n||i&&bi(e))return;if("insertCompositionText"===n)return;Ai(e,Vt,t)}(t,e)]);let $e=0,Ue=null,Je=0,Ye=null;const je=new WeakMap,He=new WeakMap;let Ve=!1,Ge=!1,qe=!1,Xe=!1,Qe=!1,Ze="",tn=null,en=[0,"",0,"root",0];function nn(t,e,n,r,o){const i=t.anchor,l=t.focus,a=i.getNode(),c=Vr(),u=Hi(Ki(c)),f=null!==u?u.anchorNode:null,d=i.key,h=c.getElementByKey(d),g=n.length;return d!==l.key||!tr(a)||(!o&&(!s||Je<r+50)||a.isDirty()&&g<2||fi(n))&&i.offset!==l.offset&&!a.isComposing()||Yo(a)||a.isDirty()&&g>1||(o||!s)&&null!==h&&!a.isComposing()&&f!==Vo(h)||null!==u&&null!==e&&(!e.collapsed||e.startContainer!==u.anchorNode||e.startOffset!==u.anchorOffset)||!a.isComposing()&&(a.getFormat()!==t.format||a.getStyle()!==t.style)||function(t,e){if(e.isSegmented())return!0;if(!t.isCollapsed())return!1;const n=t.anchor.offset,r=e.getParentOrThrow(),o=Jo(e);return 0===n?!e.canInsertTextBefore()||!r.canInsertTextBefore()&&!e.isComposing()||o||function(t){const e=t.getPreviousSibling();return(tr(e)||uo(e)&&e.isInline())&&!e.canInsertTextAfter()}(e):n===e.getTextContentSize()&&(!e.canInsertTextAfter()||!r.canInsertTextAfter()&&!e.isComposing()||o)}(t,a)}function rn(t,e){return jo(t)&&null!==t.nodeValue&&0!==e&&e!==t.nodeValue.length}function on(e,n,r){const{anchorNode:o,anchorOffset:i,focusNode:s,focusOffset:l}=e;Ve&&(Ve=!1,rn(o,i)&&rn(s,l)&&!tn)||so(n,()=>{if(!r)return void ci(null);if(!zo(n,o,s))return;let a=Er();if(tn&&ur(a)&&a.isCollapsed()){const t=a.anchor,e=tn.anchor;(t.key===e.key&&t.offset===e.offset+1||1===t.offset&&e.getNode().is(t.getNode().getPreviousSibling()))&&(a=tn.clone(),ci(a))}if(tn=null,ur(a)){const r=a.anchor,o=r.getNode();if(a.isCollapsed()){"Range"===e.type&&e.anchorNode===e.focusNode&&(a.dirty=!0);const i=Ki(n).event,s=i?i.timeStamp:performance.now(),[l,c,u,f,d]=en,h=li(),g=!1===n.isComposing()&&""===h.getTextContent();if(s<d+200&&r.offset===u&&r.key===f)sn(a,l,c);else if("text"===r.type)tr(o)||t(141),ln(a,o);else if("element"===r.type&&!g){uo(o)||t(259);const e=r.getNode();e.isEmpty()?function(t,e){const n=e.getTextFormat(),r=e.getTextStyle();sn(t,n,r)}(a,e):sn(a,a.format,"")}}else{const t=r.key,e=a.focus.key,n=a.getNodes(),o=n.length,s=a.isBackward(),c=s?l:i,u=s?i:l,f=s?e:t,d=s?t:e;let h=2047,g=!1;for(let t=0;t<o;t++){const e=n[t],r=e.getTextContentSize();if(tr(e)&&0!==r&&!(0===t&&e.__key===f&&c===r||t===o-1&&e.__key===d&&0===u)&&(g=!0,h&=e.getFormat(),0===h))break}a.format=g?h:0}}Ai(n,Yt,void 0)})}function sn(t,e,n){t.format===e&&t.style===n||(t.format=e,t.style=n,t.dirty=!0)}function ln(t,e){sn(t,e.getFormat(),e.getStyle())}function an(t){if(!t.getTargetRanges)return null;const e=t.getTargetRanges();return 0===e.length?null:e[0]}function cn(e){const n=e.inputType,r=an(e),o=Vr(),i=Er();if("deleteContentBackward"===n){if(null===i){const t=Or();if(!ur(t))return!0;ci(t.clone())}if(ur(i)){const n=i.anchor.key===i.focus.key;if(s=e.timeStamp,"MediaLast"===Ue&&s<$e+30&&o.isComposing()&&n){if(Zo(null),$e=0,setTimeout(()=>{so(o,()=>{Zo(null)})},30),ur(i)){const e=i.anchor.getNode();e.markDirty(),tr(e)||t(142),ln(i,e)}}else{Zo(null),e.preventDefault();const t=i.anchor.getNode(),r=t.getTextContent(),s=t.canInsertTextAfter(),l=0===i.anchor.offset&&i.focus.offset===r.length;let a=f&&n&&!l&&s;if(a&&i.isCollapsed()&&(a=!go(Mi(i.anchor,!0))),!a){Ai(o,Qt,!0);const t=Er();f&&ur(t)&&t.isCollapsed()&&(tn=t,setTimeout(()=>tn=null))}}return!0}}var s;if(!ur(i))return!0;const l=e.data;null!==Ye&&_i(!1,o,Ye),i.dirty&&null===Ye||!i.isCollapsed()||po(i.anchor.getNode())||null===r||i.applyDOMRange(r),Ye=null;const c=i.anchor,u=i.focus,d=c.getNode(),h=u.getNode();if("insertText"===n||"insertTranspose"===n){if("\n"===l)e.preventDefault(),Ai(o,Zt,!1);else if(l===v)e.preventDefault(),Ai(o,te,void 0);else if(null==l&&e.dataTransfer){const t=e.dataTransfer.getData("text/plain");e.preventDefault(),i.insertRawText(t)}else null!=l&&nn(i,r,l,e.timeStamp,!0)?(e.preventDefault(),Ai(o,ee,l)):Ye=l;return Je=e.timeStamp,!0}switch(e.preventDefault(),n){case"insertFromYank":case"insertFromDrop":case"insertReplacementText":Ai(o,ee,e);break;case"insertFromComposition":Zo(null),Ai(o,ee,e);break;case"insertLineBreak":Zo(null),Ai(o,Zt,!1);break;case"insertParagraph":Zo(null),qe&&!a?(qe=!1,Ai(o,Zt,!1)):Ai(o,te,void 0);break;case"insertFromPaste":case"insertFromPasteAsQuotation":Ai(o,ne,e);break;case"deleteByComposition":(function(t,e){return t!==e||uo(t)||uo(e)||!Jo(t)||!Jo(e)})(d,h)&&Ai(o,re,e);break;case"deleteByDrag":case"deleteByCut":Ai(o,re,e);break;case"deleteContent":Ai(o,Qt,!1);break;case"deleteWordBackward":Ai(o,oe,!0);break;case"deleteWordForward":Ai(o,oe,!1);break;case"deleteHardLineBackward":case"deleteSoftLineBackward":Ai(o,ie,!0);break;case"deleteContentForward":case"deleteHardLineForward":case"deleteSoftLineForward":Ai(o,ie,!1);break;case"formatStrikeThrough":Ai(o,se,"strikethrough");break;case"formatBold":Ai(o,se,"bold");break;case"formatItalic":Ai(o,se,"italic");break;case"formatUnderline":Ai(o,se,"underline");break;case"historyUndo":Ai(o,le,void 0);break;case"historyRedo":Ai(o,ae,void 0)}return!0}function un(t){if(Gi(t.target)&&Ko(t.target))return!0;const e=Vr(),n=Er(),r=t.data,o=an(t);if(null!=r&&ur(n)&&nn(n,o,r,t.timeStamp,!1)){Xe&&(hn(e,r),Xe=!1);const o=n.anchor.getNode(),l=Hi(Ki(e));if(null===l)return!0;const a=n.isBackward(),c=a?n.anchor.offset:n.focus.offset,u=a?n.focus.offset:n.anchor.offset;s&&!n.isCollapsed()&&tr(o)&&null!==l.anchorNode&&o.getTextContent().slice(0,c)+r+o.getTextContent().slice(c+u)===gi(l.anchorNode)||Ai(e,ee,r);const d=r.length;i&&d>1&&"insertCompositionText"===t.inputType&&!e.isComposing()&&(n.anchor.offset-=d),f&&e.isComposing()&&($e=0,Zo(null))}else{_i(!1,e,null!==r?r:void 0),Xe&&(hn(e,r||void 0),Xe=!1)}return function(){Yr();const t=Vr();j(t)}(),!0}function fn(t){const e=Vr(),n=Er();if(ur(n)&&!e.isComposing()){const r=n.anchor,o=n.anchor.getNode();Zo(r.key),Ii(wn),(t.timeStamp<$e+30||"element"===r.type||!n.isCollapsed()||o.getFormat()!==n.format||tr(o)&&o.getStyle()!==n.style)&&Ai(e,ee,k)}return!0}function dn(t){return hn(Vr(),t.data),Ii(Dn),!0}function hn(t,e){const n=t._compositionKey;if(Zo(null),null!==n&&null!=e){if(""===e){const e=ei(n),r=Vo(t.getElementByKey(n));if(null!==r&&null!==r.nodeValue&&tr(e)){const n=Hi(Ki(t));let o=null,i=null;null!==n&&n.anchorNode===r&&(o=n.anchorOffset,i=n.focusOffset),pi(e,r.nodeValue,o,i,!0)}return}if("\n"===e[e.length-1]){const e=Er();if(ur(e)||dr(e)){if(ur(e)){const t=e.focus;e.anchor.set(t.key,t.offset,t.type)}return void Ai(t,pe,null)}}}_i(!0,t,e)}function gn(t){const e=Vr();if(null==t.key)return!0;if(Qe){if(Ti(t))return so(e,()=>{hn(e,Ze)}),Qe=!1,Ze="",!0;Qe=!1,Ze=""}if(function(t){return Ci(t,"ArrowRight",{shiftKey:"any"})}(t))Ai(e,ue,t);else if(function(t){return Ci(t,"ArrowRight",Si)}(t))Ai(e,fe,t);else if(function(t){return Ci(t,"ArrowLeft",{shiftKey:"any"})}(t))Ai(e,de,t);else if(function(t){return Ci(t,"ArrowLeft",Si)}(t))Ai(e,he,t);else if(function(t){return Ci(t,"ArrowUp",{altKey:"any",shiftKey:"any"})}(t))Ai(e,ge,t);else if(function(t){return Ci(t,"ArrowDown",{altKey:"any",shiftKey:"any"})}(t))Ai(e,_e,t);else if(function(t){return Ci(t,"Enter",{altKey:"any",ctrlKey:"any",metaKey:"any",shiftKey:!0})}(t))qe=!0,Ai(e,pe,t);else if(function(t){return" "===t.key}(t))Ai(e,ye,t);else if(function(t){return o&&Ci(t,"o",{ctrlKey:!0})}(t))t.preventDefault(),qe=!0,Ai(e,Zt,!0);else if(function(t){return Ci(t,"Enter",{altKey:"any",ctrlKey:"any",metaKey:"any"})}(t))qe=!1,Ai(e,pe,t);else if(function(t){return Ci(t,"Backspace",{shiftKey:"any"})||o&&Ci(t,"h",{ctrlKey:!0})}(t))Ti(t)?Ai(e,me,t):(t.preventDefault(),Ai(e,Qt,!0));else if(function(t){return"Escape"===t.key}(t))Ai(e,xe,t);else if(function(t){return Ci(t,"Delete",{})||o&&Ci(t,"d",{ctrlKey:!0})}(t))!function(t){return"Delete"===t.key}(t)?(t.preventDefault(),Ai(e,Qt,!1)):Ai(e,Ce,t);else if(function(t){return Ci(t,"Backspace",Ni)}(t))t.preventDefault(),Ai(e,oe,!0);else if(function(t){return Ci(t,"Delete",Ni)}(t))t.preventDefault(),Ai(e,oe,!1);else if(function(t){return o&&Ci(t,"Backspace",{metaKey:!0})}(t))t.preventDefault(),Ai(e,ie,!0);else if(function(t){return o&&(Ci(t,"Delete",{metaKey:!0})||Ci(t,"k",{ctrlKey:!0}))}(t))t.preventDefault(),Ai(e,ie,!1);else if(function(t){return Ci(t,"b",Si)}(t))t.preventDefault(),Ai(e,se,"bold");else if(function(t){return Ci(t,"u",Si)}(t))t.preventDefault(),Ai(e,se,"underline");else if(function(t){return Ci(t,"i",Si)}(t))t.preventDefault(),Ai(e,se,"italic");else if(function(t){return Ci(t,"Tab",{shiftKey:"any"})}(t))Ai(e,Se,t);else if(function(t){return Ci(t,"z",Si)}(t))t.preventDefault(),Ai(e,le,void 0);else if(function(t){if(o)return Ci(t,"z",{metaKey:!0,shiftKey:!0});return Ci(t,"y",{ctrlKey:!0})||Ci(t,"z",{ctrlKey:!0,shiftKey:!0})}(t))t.preventDefault(),Ai(e,ae,void 0);else{const n=e._editorState._selection;null===n||ur(n)?vi(t)&&(t.preventDefault(),Ai(e,De,t)):!function(t){return Ci(t,"c",Si)}(t)?!function(t){return Ci(t,"x",Si)}(t)?vi(t)&&(t.preventDefault(),Ai(e,De,t)):(t.preventDefault(),Ai(e,we,t)):(t.preventDefault(),Ai(e,Ae,t))}return function(t){return t.ctrlKey||t.shiftKey||t.altKey||t.metaKey}(t)&&e.dispatchCommand(Be,t),!0}function _n(t){let e=t.__lexicalEventHandles;return void 0===e&&(e=[],t.__lexicalEventHandles=e),e}const pn=new Map;function yn(t){const e=Vi(t.target);if(null===e)return;const n=$o(e.anchorNode);if(null===n)return;Ge&&(Ge=!1,so(n,()=>{const r=Or(),o=e.anchorNode;if(Gi(o)||jo(o)){ci(kr(r,e,n,t))}}));const r=di(n),o=r[r.length-1],i=o._key,s=pn.get(i),l=s||o;l!==n&&on(e,l,!1),on(e,n,!0),n!==o?pn.set(i,n):s&&pn.delete(i)}function mn(t){t._lexicalHandled=!0}function xn(t){return!0===t._lexicalHandled}const Cn=()=>{};function Sn(e){const n=je.get(e);if(void 0===n)return void Cn();const r=He.get(n);if(void 0===r)return void Cn();const o=r-1;o>=0||t(164),je.delete(e),He.set(n,o),0===o&&n.removeEventListener("selectionchange",yn);const i=Uo(e);Wo(i)?(!function(t){if(null!==t._parentEditor){const e=di(t),n=e[e.length-1]._key;pn.get(n)===t&&pn.delete(n)}else pn.delete(t._key)}(i),e.__lexicalEditor=null):i&&t(198);const s=_n(e);for(let t=0;t<s.length;t++)s[t]();e.__lexicalEventHandles=[]}function Nn(t,e,n){Yr();const r=t.__key,o=t.getParent();if(null===o)return;const i=function(t){const e=Er();if(!ur(e)||!uo(t))return e;const{anchor:n,focus:r}=e,o=n.getNode(),i=r.getNode();Li(o,t)&&n.set(t.__key,0,"element");Li(i,t)&&r.set(t.__key,0,"element");return e}(t);let s=!1;if(ur(i)&&e){const e=i.anchor,n=i.focus;e.key===r&&(Ar(e,t,o,t.getPreviousSibling(),t.getNextSibling()),s=!0),n.key===r&&(Ar(n,t,o,t.getPreviousSibling(),t.getNextSibling()),s=!0)}else dr(i)&&e&&t.isSelected()&&t.selectPrevious();if(ur(i)&&e&&!s){const e=t.getIndexWithinParent();Xo(t),Mr(i,o,e,-1)}else Xo(t);n||zi(o)||o.canBeEmpty()||!o.isEmpty()||Nn(o,e),e&&i&&po(o)&&o.isEmpty()&&o.selectEnd()}const Tn=Symbol.for("ephemeral");function vn(t){return t[Tn]||!1}class kn{__type;__key;__parent;__prev;__next;__state;static getType(){const{ownNodeType:e}=cs(this);return void 0===e&&t(64,this.name),e}static clone(e){t(65,this.name)}$config(){return{}}config(t,e){const n=e.extends||Object.getPrototypeOf(this.constructor);return Object.assign(e,{extends:n,type:t}),{[t]:e}}afterCloneFrom(t){this.__key===t.__key?(this.__parent=t.__parent,this.__next=t.__next,this.__prev=t.__prev,this.__state=t.__state):t.__state&&(this.__state=t.__state.getWritable(this))}resetOnCopyNodeFrom(t){this.__state&&(this.__state=this.__state.getWritable(this).resetOnCopyNode())}static importDOM;constructor(t){this.__type=this.constructor.getType(),this.__parent=null,this.__prev=null,this.__next=null,Object.defineProperty(this,"__state",{configurable:!0,enumerable:!1,value:void 0,writable:!0}),qo(this,t)}getType(){return this.__type}isInline(){t(137,this.constructor.name)}isAttached(){let t=this.__key;for(;null!==t;){if("root"===t)return!0;const e=ei(t);if(null===e)break;t=e.__parent}return!1}isSelected(t){const e=t||Er();if(null==e)return!1;const n=e.getNodes().some(t=>t.__key===this.__key);if(tr(this))return n;if(ur(e)&&"element"===e.anchor.type&&"element"===e.focus.type){if(e.isCollapsed())return!1;const t=this.getParent();if(go(this)&&this.isInline()&&t){const n=e.isBackward()?e.focus:e.anchor;if(t.is(n.getNode())&&n.offset===t.getChildrenSize()&&this.is(t.getLastChild()))return!1}}return n}getKey(){return this.__key}getIndexWithinParent(){const t=this.getParent();if(null===t)return-1;let e=t.getFirstChild(),n=0;for(;null!==e;){if(this.is(e))return n;n++,e=e.getNextSibling()}return-1}getParent(){const t=this.getLatest().__parent;return null===t?null:ei(t)}getParentOrThrow(){const e=this.getParent();return null===e&&t(66,this.__key),e}getTopLevelElement(){let e=this;for(;null!==e;){const n=e.getParent();if(zi(n))return uo(e)||e===this&&go(e)||t(194),e;e=n}return null}getTopLevelElementOrThrow(){const e=this.getTopLevelElement();return null===e&&t(67,this.__key),e}getParents(){const t=[];let e=this.getParent();for(;null!==e;)t.push(e),e=e.getParent();return t}getParentKeys(){const t=[];let e=this.getParent();for(;null!==e;)t.push(e.__key),e=e.getParent();return t}getPreviousSibling(){const t=this.getLatest().__prev;return null===t?null:ei(t)}getPreviousSiblings(){const t=[],e=this.getParent();if(null===e)return t;let n=e.getFirstChild();for(;null!==n&&!n.is(this);)t.push(n),n=n.getNextSibling();return t}getNextSibling(){const t=this.getLatest().__next;return null===t?null:ei(t)}getNextSiblings(){const t=[];let e=this.getNextSibling();for(;null!==e;)t.push(e),e=e.getNextSibling();return t}getCommonAncestor(t){const e=uo(this)?this:this.getParent(),n=uo(t)?t:t.getParent(),r=e&&n?$s(e,n):null;return r?r.commonAncestor:null}is(t){return null!=t&&this.__key===t.__key}isBefore(e){const n=$s(this,e);return null!==n&&("descendant"===n.type||("branch"===n.type?-1===Bs(n):("same"!==n.type&&"ancestor"!==n.type&&t(279),!1)))}isParentOf(t){const e=$s(this,t);return null!==e&&"ancestor"===e.type}getNodesBetween(e){const n=this.isBefore(e),r=[],o=new Set;let i=this;for(;null!==i;){const s=i.__key;if(o.has(s)||(o.add(s),r.push(i)),i===e)break;const l=uo(i)?n?i.getFirstChild():i.getLastChild():null;if(null!==l){i=l;continue}const a=n?i.getNextSibling():i.getPreviousSibling();if(null!==a){i=a;continue}const c=i.getParentOrThrow();if(o.has(c.__key)||r.push(c),c===e)break;let u=null,f=c;do{if(null===f&&t(68),u=n?f.getNextSibling():f.getPreviousSibling(),f=f.getParent(),null===f)break;null!==u||o.has(f.__key)||r.push(f)}while(null===u);i=u}return n||r.reverse(),r}isDirty(){const t=Vr()._dirtyLeaves;return null!==t&&t.has(this.__key)}getLatest(){if(vn(this))return this;const e=ei(this.__key);return null===e&&t(113),e}getWritable(){if(vn(this))return this;Yr();const t=Hr(),e=Vr(),n=t._nodeMap,r=this.__key,o=this.getLatest(),i=e._cloneNotNeeded,s=Er();if(null!==s&&s.setCachedNodes(null),i.has(r))return Qo(o),o;const l=is(o);return i.add(r),Qo(l),n.set(r,l),l}getTextContent(){return""}getTextContentSize(){return this.getTextContent().length}createDOM(e,n){t(70)}updateDOM(e,n,r){t(71)}exportDOM(t){return{element:this.createDOM(t._config,t)}}exportJSON(){const t=this.__state?this.__state.toJSON():void 0;return{type:this.__type,version:1,...t}}static importJSON(e){t(18,this.name)}updateFromJSON(t){return function(t,e){const n=t.getWritable(),r=e.$;let o=r;for(const t of Z(n).flatKeys)t in e&&(void 0!==o&&o!==r||(o={...r}),o[t]=e[t]);return(n.__state||o)&&Q(t).updateFromJSON(o),n}(this,t)}static transform(){return null}remove(t){Nn(this,!0,t)}replace(e,n){Yr();let r=Er();null!==r&&(r=r.clone()),Ui(this,e);const o=this.getLatest(),i=this.__key,s=e.__key,l=e.getWritable(),a=this.getParentOrThrow().getWritable(),c=a.__size;Xo(l);const u=o.getPreviousSibling(),f=o.getNextSibling(),d=o.__prev,h=o.__next,g=o.__parent;if(Nn(o,!1,!0),null===u)a.__first=s;else{u.getWritable().__next=s}if(l.__prev=d,null===f)a.__last=s;else{f.getWritable().__prev=s}if(l.__next=h,l.__parent=g,a.__size=c,n&&(uo(this)&&uo(l)||t(139),this.getChildren().forEach(t=>{l.append(t)})),ur(r)){ci(r);const t=r.anchor,e=r.focus;t.key===i&&ar(t,l),e.key===i&&ar(e,l)}return ti()===i&&Zo(s),l}insertAfter(t,e=!0){Yr(),Ui(this,t);const n=this.getWritable(),r=t.getWritable(),o=r.getParent(),i=Er();let s=!1,l=!1;if(null!==o){const e=t.getIndexWithinParent();if(Xo(r),ur(i)){const t=o.__key,n=i.anchor,r=i.focus;s="element"===n.type&&n.key===t&&n.offset===e+1,l="element"===r.type&&r.key===t&&r.offset===e+1}}const a=this.getNextSibling(),c=this.getParentOrThrow().getWritable(),u=r.__key,f=n.__next;if(null===a)c.__last=u;else{a.getWritable().__prev=u}if(c.__size++,n.__next=u,r.__next=f,r.__prev=n.__key,r.__parent=n.__parent,e&&ur(i)){const t=this.getIndexWithinParent();Mr(i,c,t+1);const e=c.__key;s&&i.anchor.set(e,t+2,"element"),l&&i.focus.set(e,t+2,"element")}return t}insertBefore(t,e=!0){Yr(),Ui(this,t);const n=this.getWritable(),r=t.getWritable(),o=r.__key;Xo(r);const i=this.getPreviousSibling(),s=this.getParentOrThrow().getWritable(),l=n.__prev,a=this.getIndexWithinParent();if(null===i)s.__first=o;else{i.getWritable().__next=o}s.__size++,n.__prev=o,r.__prev=l,r.__next=n.__key,r.__parent=n.__parent;const c=Er();if(e&&ur(c)){Mr(c,this.getParentOrThrow(),a)}return t}isParentRequired(){return!1}createParentElementNode(){return vo()}selectStart(){return this.selectPrevious()}selectEnd(){return this.selectNext(0,0)}selectPrevious(t,e){Yr();const n=this.getPreviousSibling(),r=this.getParentOrThrow();if(null===n)return r.select(0,0);if(uo(n))return n.select();if(!tr(n)){const t=n.getIndexWithinParent()+1;return r.select(t,t)}return n.select(t,e)}selectNext(t,e){Yr();const n=this.getNextSibling(),r=this.getParentOrThrow();if(null===n)return r.select();if(uo(n))return n.select(0,0);if(!tr(n)){const t=n.getIndexWithinParent();return r.select(t,t)}return n.select(t,e)}markDirty(){this.getWritable()}reconcileObservedMutation(t,e){this.markDirty()}}const En="history-merge",On="collaboration",Mn="skip-scroll-into-view",bn="skip-dom-selection",An="skip-selection-focus",wn="composition-start",Dn="composition-end";class Pn extends kn{static getType(){return"linebreak"}static clone(t){return new Pn(t.__key)}constructor(t){super(t)}getTextContent(){return"\n"}createDOM(){return document.createElement("br")}updateDOM(){return!1}isInline(){return!0}static importDOM(){return{br:t=>function(t){const e=t.parentElement;if(null!==e&&Zi(e)){const n=e.firstChild;if(n===t||n.nextSibling===t&&Rn(n)){const n=e.lastChild;if(n===t||n.previousSibling===t&&Rn(n))return!0}}return!1}(t)||function(t){const e=t.parentElement;if(null!==e&&Zi(e)){const n=e.firstChild;if(n===t||n.nextSibling===t&&Rn(n))return!1;const r=e.lastChild;if(r===t||r.previousSibling===t&&Rn(r))return!0}return!1}(t)?null:{conversion:In,priority:0}}}static importJSON(t){return Fn().updateFromJSON(t)}}function In(t){return{node:Fn()}}function Fn(){return $i(new Pn)}function Ln(t){return t instanceof Pn}function Rn(t){return jo(t)&&/^( |\t|\r?\n)+$/.test(t.textContent||"")}function Kn(t,e){return 16&e?"code":e&p?"mark":32&e?"sub":64&e?"sup":null}function Bn(t,e){return 1&e?"strong":2&e?"em":"span"}function zn(t,e,n,r,o){const i=r.classList;let s=ki(o,"base");void 0!==s&&i.add(...s),s=ki(o,"underlineStrikethrough");let l=!1;const a=8&e&&4&e;void 0!==s&&(8&n&&4&n?(l=!0,a||i.add(...s)):a&&i.remove(...s));for(const t in A){const r=A[t];if(s=ki(o,t),void 0!==s)if(n&r){if(l&&("underline"===t||"strikethrough"===t)){e&r&&i.remove(...s);continue}(0===(e&r)||a&&"underline"===t||"strikethrough"===t)&&i.add(...s)}else e&r&&i.remove(...s)}}function Wn(t,e,n){const r=e.firstChild,o=n.isComposing(),s=t+(o?T:"");if(null==r)e.textContent=s;else{const t=r.nodeValue;if(t!==s)if(o||i){const[e,n,o]=function(t,e){const n=t.length,r=e.length;let o=0,i=0;for(;o<n&&o<r&&t[o]===e[o];)o++;for(;i+o<n&&i+o<r&&t[n-i-1]===e[r-i-1];)i++;return[o,n-o-i,e.slice(o,r-i)]}(t,s);0!==n&&r.deleteData(e,n),r.insertData(e,o)}else r.nodeValue=s}}function $n(t,e,n,r,o,i){Wn(o,t,e);const s=i.theme.text;void 0!==s&&zn(0,0,r,t,s)}function Un(t,e){const n=document.createElement(e);return n.appendChild(t),n}class Jn extends kn{__text;__format;__style;__mode;__detail;static getType(){return"text"}static clone(t){return new Jn(t.__text,t.__key)}afterCloneFrom(t){super.afterCloneFrom(t),this.__text=t.__text,this.__format=t.__format,this.__style=t.__style,this.__mode=t.__mode,this.__detail=t.__detail}constructor(t="",e){super(e),this.__text=t,this.__format=0,this.__style="",this.__mode=0,this.__detail=0}getFormat(){return this.getLatest().__format}getDetail(){return this.getLatest().__detail}getMode(){const t=this.getLatest();return F[t.__mode]}getStyle(){return this.getLatest().__style}isToken(){return 1===this.getLatest().__mode}isComposing(){return this.__key===ti()}isSegmented(){return 2===this.getLatest().__mode}isDirectionless(){return!!(1&this.getLatest().__detail)}isUnmergeable(){return!!(2&this.getLatest().__detail)}hasFormat(t){const e=A[t];return 0!==(this.getFormat()&e)}isSimpleText(){return"text"===this.__type&&0===this.__mode}getTextContent(){return this.getLatest().__text}getFormatFlags(t,e){return Go(this.getLatest().__format,t,e)}canHaveFormat(){return!0}isInline(){return!0}createDOM(t,e){const n=this.__format,r=Kn(0,n),o=Bn(0,n),i=null===r?o:r,s=document.createElement(i);let l=s;this.hasFormat("code")&&s.setAttribute("spellcheck","false"),null!==r&&(l=document.createElement(o),s.appendChild(l));$n(l,this,0,n,this.__text,t);const a=this.__style;return""!==a&&(s.style.cssText=a),s}updateDOM(e,n,r){const o=this.__text,i=e.__format,s=this.__format,l=Kn(0,i),a=Kn(0,s),c=Bn(0,i),u=Bn(0,s);if((null===l?c:l)!==(null===a?u:a))return!0;if(l===a&&c!==u){const e=n.firstChild;null==e&&t(48);const i=document.createElement(u);return $n(i,this,0,s,o,r),n.replaceChild(i,e),!1}let f=n;null!==a&&null!==l&&(f=n.firstChild,null==f&&t(49)),Wn(o,f,this);const d=r.theme.text;void 0!==d&&i!==s&&zn(0,i,s,f,d);const h=e.__style,g=this.__style;return h!==g&&(n.style.cssText=g),!1}static importDOM(){return{"#text":()=>({conversion:Gn,priority:0}),b:()=>({conversion:jn,priority:0}),code:()=>({conversion:Qn,priority:0}),em:()=>({conversion:Qn,priority:0}),i:()=>({conversion:Qn,priority:0}),mark:()=>({conversion:Qn,priority:0}),s:()=>({conversion:Qn,priority:0}),span:()=>({conversion:Yn,priority:0}),strong:()=>({conversion:Qn,priority:0}),sub:()=>({conversion:Qn,priority:0}),sup:()=>({conversion:Qn,priority:0}),u:()=>({conversion:Qn,priority:0})}}static importJSON(t){return Zn().updateFromJSON(t)}updateFromJSON(t){return super.updateFromJSON(t).setTextContent(t.text).setFormat(t.format).setDetail(t.detail).setMode(t.mode).setStyle(t.style)}exportDOM(e){let{element:n}=super.exportDOM(e);return Gi(n)||t(132),n.style.whiteSpace="pre-wrap",this.hasFormat("lowercase")?n.style.textTransform="lowercase":this.hasFormat("uppercase")?n.style.textTransform="uppercase":this.hasFormat("capitalize")&&(n.style.textTransform="capitalize"),this.hasFormat("bold")&&(n=Un(n,"b")),this.hasFormat("italic")&&(n=Un(n,"i")),this.hasFormat("strikethrough")&&(n=Un(n,"s")),this.hasFormat("underline")&&(n=Un(n,"u")),{element:n}}exportJSON(){return{detail:this.getDetail(),format:this.getFormat(),mode:this.getMode(),style:this.getStyle(),text:this.getTextContent(),...super.exportJSON()}}selectionTransform(t,e){}setFormat(t){const e=this.getWritable();return e.__format="string"==typeof t?A[t]:t,e}setDetail(t){const e=this.getWritable();return e.__detail="string"==typeof t?w[t]:t,e}setStyle(t){const e=this.getWritable();return e.__style=t,e}toggleFormat(t){const e=Go(this.getFormat(),t,null);return this.setFormat(e)}toggleDirectionless(){const t=this.getWritable();return t.__detail^=1,t}toggleUnmergeable(){const t=this.getWritable();return t.__detail^=2,t}setMode(t){const e=I[t];if(this.__mode===e)return this;const n=this.getWritable();return n.__mode=e,n}setTextContent(t){if(this.__text===t)return this;const e=this.getWritable();return e.__text=t,e}select(t,e){Yr();let n=t,r=e;const o=Er(),i=this.getTextContent(),s=this.__key;if("string"==typeof i){const t=i.length;void 0===n&&(n=t),void 0===r&&(r=t)}else n=0,r=0;if(!ur(o))return Nr(s,n,s,r,"text","text");{const t=ti();t!==o.anchor.key&&t!==o.focus.key||Zo(s),o.setTextNodeRange(this,n,this,r)}return o}selectStart(){return this.select(0,0)}selectEnd(){const t=this.getTextContentSize();return this.select(t,t)}spliceText(t,e,n,r){const o=this.getWritable(),i=o.__text,s=n.length;let l=t;l<0&&(l=s+l,l<0&&(l=0));const a=Er();if(r&&ur(a)){const e=t+s;a.setTextNodeRange(o,e,o,e)}const c=i.slice(0,l)+n+i.slice(l+e);return o.__text=c,o}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}splitText(...t){Yr();const e=this.getLatest(),n=e.getTextContent();if(""===n)return[];const r=e.__key,o=ti(),i=n.length;t.sort((t,e)=>t-e),t.push(i);const s=[],l=t.length;for(let e=0,r=0;e<i&&r<=l;r++){const o=t[r];o>e&&(s.push(n.slice(e,o)),e=o)}const a=s.length;if(1===a)return[e];const c=s[0],u=e.getParent();let f;const d=e.getFormat(),h=e.getStyle(),g=e.__detail;let _=!1,p=null,y=null;const m=Er();if(ur(m)){const[t,e]=m.isBackward()?[m.focus,m.anchor]:[m.anchor,m.focus];"text"===t.type&&t.key===r&&(p=t),"text"===e.type&&e.key===r&&(y=e)}e.isSegmented()?(f=Zn(c),f.__format=d,f.__style=h,f.__detail=g,f.__state=ot(e,f),_=!0):f=e.setTextContent(c);const x=[f];for(let t=1;t<a;t++){const n=Zn(s[t]);n.__format=d,n.__style=h,n.__detail=g,n.__state=ot(e,n);const i=n.__key;o===r&&Zo(i),x.push(n)}const C=p?p.offset:null,S=y?y.offset:null;let N=0;for(const t of x){if(!p&&!y)break;const e=N+t.getTextContentSize();if(null!==p&&null!==C&&C<=e&&C>=N&&(p.set(t.getKey(),C-N,"text"),C<e&&(p=null)),null!==y&&null!==S&&S<=e&&S>=N){y.set(t.getKey(),S-N,"text");break}N=e}if(null!==u){!function(t){const e=t.getPreviousSibling(),n=t.getNextSibling();null!==e&&Qo(e);null!==n&&Qo(n)}(this);const t=u.getWritable(),e=this.getIndexWithinParent();_?(t.splice(e,0,x),this.remove()):t.splice(e,1,x),ur(m)&&Mr(m,u,e,a-1)}return x}mergeWithSibling(e){const n=e===this.getPreviousSibling();n||e===this.getNextSibling()||t(50);const r=this.__key,o=e.__key,i=this.__text,s=i.length;ti()===o&&Zo(r);const l=Er();if(ur(l)){const t=l.anchor,i=l.focus;null!==t&&t.key===o&&wr(t,n,r,e,s),null!==i&&i.key===o&&wr(i,n,r,e,s)}const a=e.__text,c=n?a+i:i+a;this.setTextContent(c);const u=this.getWritable();return e.remove(),u}isTextEntity(){return!1}}function Yn(t){return{forChild:er(t.style),node:null}}function jn(t){const e=t,n="normal"===e.style.fontWeight;return{forChild:er(e.style,n?void 0:"bold"),node:null}}const Hn=new WeakMap;function Vn(t){if(!Gi(t))return!1;if("PRE"===t.nodeName)return!0;const e=t.style.whiteSpace;return"string"==typeof e&&e.startsWith("pre")}function Gn(e){const n=e;null===e.parentElement&&t(129);let r=n.textContent||"";if(null!==function(t){let e,n=t.parentNode;const r=[t];for(;null!==n&&void 0===(e=Hn.get(n))&&!Vn(n);)r.push(n),n=n.parentNode;const o=void 0===e?n:e;for(let t=0;t<r.length;t++)Hn.set(r[t],o);return o}(n)){const t=r.split(/(\r?\n|\t)/),e=[],n=t.length;for(let r=0;r<n;r++){const n=t[r];"\n"===n||"\r\n"===n?e.push(Fn()):"\t"===n?e.push(rr()):""!==n&&e.push(Zn(n))}return{node:e}}if(r=r.replace(/\r/g,"").replace(/[ \t\n]+/g," "),""===r)return{node:null};if(" "===r[0]){let t=n,e=!0;for(;null!==t&&null!==(t=qn(t,!1));){const n=t.textContent||"";if(n.length>0){/[ \t\n]$/.test(n)&&(r=r.slice(1)),e=!1;break}}e&&(r=r.slice(1))}if(" "===r[r.length-1]){let t=n,e=!0;for(;null!==t&&null!==(t=qn(t,!0));){if((t.textContent||"").replace(/^( |\t|\r?\n)+/,"").length>0){e=!1;break}}e&&(r=r.slice(0,r.length-1))}return""===r?{node:null}:{node:Zn(r)}}function qn(t,e){let n=t;for(;;){let t;for(;null===(t=e?n.nextSibling:n.previousSibling);){const t=n.parentElement;if(null===t)return null;n=t}if(n=t,Gi(n)){const t=n.style.display;if(""===t&&!Qi(n)||""!==t&&!t.startsWith("inline"))return null}let r=n;for(;null!==(r=e?n.firstChild:n.lastChild);)n=r;if(jo(n))return n;if("BR"===n.nodeName)return null}}const Xn={code:"code",em:"italic",i:"italic",mark:"highlight",s:"strikethrough",strong:"bold",sub:"subscript",sup:"superscript",u:"underline"};function Qn(t){const e=Xn[t.nodeName.toLowerCase()];return void 0===e?{node:null}:{forChild:er(t.style,e),node:null}}function Zn(t=""){return $i(new Jn(t))}function tr(t){return t instanceof Jn}function er(t,e){const n=t.fontWeight,r=t.textDecoration.split(" "),o="700"===n||"bold"===n,i=r.includes("line-through"),s="italic"===t.fontStyle,l=r.includes("underline"),a=t.verticalAlign;return t=>tr(t)?(o&&!t.hasFormat("bold")&&t.toggleFormat("bold"),i&&!t.hasFormat("strikethrough")&&t.toggleFormat("strikethrough"),s&&!t.hasFormat("italic")&&t.toggleFormat("italic"),l&&!t.hasFormat("underline")&&t.toggleFormat("underline"),"sub"!==a||t.hasFormat("subscript")||t.toggleFormat("subscript"),"super"!==a||t.hasFormat("superscript")||t.toggleFormat("superscript"),e&&!t.hasFormat(e)&&t.toggleFormat(e),t):t}class nr extends Jn{static getType(){return"tab"}static clone(t){return new nr(t.__key)}constructor(t){super("\t",t),this.__detail=2}static importDOM(){return null}createDOM(t){const e=super.createDOM(t),n=ki(t.theme,"tab");if(void 0!==n){e.classList.add(...n)}return e}static importJSON(t){return rr().updateFromJSON(t)}setTextContent(t){return"\t"!==t&&""!==t&&e(126),super.setTextContent("\t")}spliceText(e,n,r,o){return""===r&&0===n||"\t"===r&&1===n||t(286),this}setDetail(e){return 2!==e&&t(127),this}setMode(e){return"normal"!==e&&t(128),this}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}}function rr(){return $i(new nr)}function or(t){return t instanceof nr}class ir{key;offset;type;_selection;constructor(t,e,n){this._selection=null,this.key=t,this.offset=e,this.type=n}is(t){return this.key===t.key&&this.offset===t.offset&&this.type===t.type}isBefore(t){if(this.key===t.key)return this.offset<t.offset;return Ks(Qs(Us(this,"next")),Qs(Us(t,"next")))<0}getNode(){const e=ei(this.key);return null===e&&t(20),e}set(t,e,n,r){const o=this._selection,i=this.key;r&&this.key===t&&this.offset===e&&this.type===n||(this.key=t,this.offset=e,this.type=n,Jr()||(ti()===i&&Zo(t),null!==o&&(o.setCachedNodes(null),o.dirty=!0)))}}function sr(t,e,n){return new ir(t,e,n)}function lr(t,e){let n=e.__key,r=t.offset,o="element";if(tr(e)){o="text";const t=e.getTextContentSize();r>t&&(r=t)}else if(!uo(e)){const t=e.getNextSibling();if(tr(t))n=t.__key,r=0,o="text";else{const t=e.getParent();t&&(n=t.__key,r=e.getIndexWithinParent()+1)}}t.set(n,r,o)}function ar(t,e){if(uo(e)){const n=e.getLastDescendant();uo(n)||tr(n)?lr(t,n):lr(t,e)}else lr(t,e)}class cr{_nodes;_cachedNodes;dirty;constructor(t){this._cachedNodes=null,this._nodes=t,this.dirty=!1}getCachedNodes(){return this._cachedNodes}setCachedNodes(t){this._cachedNodes=t}is(t){if(!dr(t))return!1;const e=this._nodes,n=t._nodes;return e.size===n.size&&Array.from(e).every(t=>n.has(t))}isCollapsed(){return!1}isBackward(){return!1}getStartEndPoints(){return null}add(t){this.dirty=!0,this._nodes.add(t),this._cachedNodes=null}delete(t){this.dirty=!0,this._nodes.delete(t),this._cachedNodes=null}clear(){this.dirty=!0,this._nodes.clear(),this._cachedNodes=null}has(t){return this._nodes.has(t)}clone(){return new cr(new Set(this._nodes))}extract(){return this.getNodes()}insertRawText(t){}insertText(){}insertNodes(t){const e=this.getNodes(),n=e.length,r=e[n-1];let o;if(tr(r))o=r.select();else{const t=r.getIndexWithinParent()+1;o=r.getParentOrThrow().select(t,t)}o.insertNodes(t);for(let t=0;t<n;t++)e[t].remove()}getNodes(){const t=this._cachedNodes;if(null!==t)return t;const e=this._nodes,n=[];for(const t of e){const e=ei(t);null!==e&&n.push(e)}return Jr()||(this._cachedNodes=n),n}getTextContent(){const t=this.getNodes();let e="";for(let n=0;n<t.length;n++)e+=t[n].getTextContent();return e}deleteNodes(){const t=this.getNodes();if((Er()||Or())===this&&t[0]){const e=ks(t[0],"next");Ys(Ls(e,e))}for(const e of t)e.remove()}}function ur(t){return t instanceof fr}class fr{format;style;anchor;focus;_cachedNodes;dirty;constructor(t,e,n,r){this.anchor=t,this.focus=e,t._selection=this,e._selection=this,this._cachedNodes=null,this.format=n,this.style=r,this.dirty=!1}getCachedNodes(){return this._cachedNodes}setCachedNodes(t){this._cachedNodes=t}is(t){return!!ur(t)&&(this.anchor.is(t.anchor)&&this.focus.is(t.focus)&&this.format===t.format&&this.style===t.style)}isCollapsed(){return this.anchor.is(this.focus)}getNodes(){const t=this._cachedNodes;if(null!==t)return t;const e=function(t){const e=[],[n,r]=t.getTextSlices();n&&e.push(n.caret.origin);const o=new Set,i=new Set;for(const n of t)if(Ss(n)){const{origin:t}=n;0===e.length?o.add(t):(i.add(t),e.push(t))}else{const{origin:t}=n;uo(t)&&i.has(t)||e.push(t)}r&&e.push(r.caret.origin);if(Cs(t.focus)&&uo(t.focus.origin)&&null===t.focus.getNodeAtCaret())for(let n=bs(t.focus.origin,"previous");Ss(n)&&o.has(n.origin)&&!n.origin.isEmpty()&&n.origin.is(e[e.length-1]);n=ws(n))o.delete(n.origin),e.pop();for(;e.length>1;){const t=e[e.length-1];if(!uo(t)||i.has(t)||t.isEmpty()||o.has(t))break;e.pop()}if(0===e.length&&t.isCollapsed()){const n=Qs(t.anchor),r=Qs(t.anchor.getFlipped()),o=t=>xs(t)?t.origin:t.getNodeAtCaret(),i=o(n)||o(r)||(t.anchor.getNodeAtCaret()?n.origin:r.origin);e.push(i)}return e}(el(Hs(this),"next"));return Jr()||(this._cachedNodes=e),e}setTextNodeRange(t,e,n,r){this.anchor.set(t.__key,e,"text"),this.focus.set(n.__key,r,"text")}getTextContent(){const t=this.getNodes();if(0===t.length)return"";const e=t[0],n=t[t.length-1],r=this.anchor,o=this.focus,i=r.isBefore(o),[s,l]=gr(this);let a="",c=!0;for(let u=0;u<t.length;u++){const f=t[u];if(uo(f)&&!f.isInline())c||(a+="\n"),c=!f.isEmpty();else if(c=!1,tr(f)){let t=f.getTextContent();f===e?f===n?"element"===r.type&&"element"===o.type&&o.offset!==r.offset||(t=s<l?t.slice(s,l):t.slice(l,s)):t=i?t.slice(s):t.slice(l):f===n&&(t=i?t.slice(0,l):t.slice(0,s)),a+=t}else!go(f)&&!Ln(f)||f===n&&this.isCollapsed()||(a+=f.getTextContent())}return a}applyDOMRange(t){const e=Vr(),n=e.getEditorState()._selection,r=Sr(t.startContainer,t.startOffset,t.endContainer,t.endOffset,e,n);if(null===r)return;const[o,i]=r;this.anchor.set(o.key,o.offset,o.type,!0),this.focus.set(i.key,i.offset,i.type,!0),at(this)}clone(){const t=this.anchor,e=this.focus;return new fr(sr(t.key,t.offset,t.type),sr(e.key,e.offset,e.type),this.format,this.style)}toggleFormat(t){this.format=Go(this.format,t,null),this.dirty=!0}setFormat(t){this.format=t,this.dirty=!0}setStyle(t){this.style=t,this.dirty=!0}hasFormat(t){const e=A[t];return 0!==(this.format&e)}insertRawText(t){const e=t.split(/(\r?\n|\t)/),n=[],r=e.length;for(let t=0;t<r;t++){const r=e[t];"\n"===r||"\r\n"===r?n.push(Fn()):"\t"===r?n.push(rr()):n.push(Zn(r))}this.insertNodes(n)}insertText(e){const n=this.anchor,r=this.focus,o=this.format,i=this.style;let s=n,l=r;!this.isCollapsed()&&r.isBefore(n)&&(s=r,l=n),"element"===s.type&&function(t,e,n,r){const o=t.getNode(),i=o.getChildAtIndex(t.offset),s=Zn();if(s.setFormat(n),s.setStyle(r),ko(i))i.splice(0,0,[s]);else{const t=po(o)?vo().append(s):s;null===i?o.append(t):i.insertBefore(t)}t.is(e)&&e.set(s.__key,0,"text"),t.set(s.__key,0,"text")}(s,l,o,i),"element"===l.type&&Js(l,Qs(Us(l,"next")));const a=s.offset;let c=l.offset;const u=this.getNodes(),f=u.length;let d=u[0];tr(d)||t(26);const h=d.getTextContent().length,g=d.getParentOrThrow();let _=u[f-1];if(1===f&&"element"===l.type&&(c=h,l.set(s.key,c,"text")),this.isCollapsed()&&a===h&&(Yo(d)||!d.canInsertTextAfter()||!g.canInsertTextAfter()&&null===d.getNextSibling())){let t=d.getNextSibling();if(tr(t)&&t.canInsertTextBefore()&&!Yo(t)||(t=Zn(),t.setFormat(o),t.setStyle(i),g.canInsertTextAfter()?d.insertAfter(t):g.insertAfter(t)),t.select(0,0),d=t,""!==e)return void this.insertText(e)}else if(this.isCollapsed()&&0===a&&(Yo(d)||!d.canInsertTextBefore()||!g.canInsertTextBefore()&&null===d.getPreviousSibling())){let t=d.getPreviousSibling();if(tr(t)&&!Yo(t)||(t=Zn(),t.setFormat(o),g.canInsertTextBefore()?d.insertBefore(t):g.insertBefore(t)),t.select(),d=t,""!==e)return void this.insertText(e)}else if(d.isSegmented()&&a!==h){const t=Zn(d.getTextContent());t.setFormat(o),d.replace(t),d=t}else if(!this.isCollapsed()&&""!==e){const t=_.getParent();if(!g.canInsertTextBefore()||!g.canInsertTextAfter()||uo(t)&&(!t.canInsertTextBefore()||!t.canInsertTextAfter()))return this.insertText(""),Cr(this.anchor,this.focus),void this.insertText(e)}if(1===f){if(Jo(d)){const t=Zn(e);return t.select(),void d.replace(t)}const t=d.getFormat(),n=d.getStyle();if(a!==c||t===o&&n===i){if(or(d)){const t=Zn(e);return t.setFormat(o),t.setStyle(i),t.select(),void d.replace(t)}}else{if(""!==d.getTextContent()){const t=Zn(e);if(t.setFormat(o),t.setStyle(i),t.select(),0===a)d.insertBefore(t,!1);else{const[e]=d.splitText(a);e.insertAfter(t,!1)}return void(t.isComposing()&&"text"===this.anchor.type&&(this.anchor.offset-=e.length))}d.setFormat(o),d.setStyle(i)}const r=c-a;d=d.spliceText(a,r,e,!0),""===d.getTextContent()?d.remove():"text"===this.anchor.type&&(this.format=t,this.style=n,d.isComposing()&&(this.anchor.offset-=e.length))}else{const t=new Set([...d.getParentKeys(),..._.getParentKeys()]),n=uo(d)?d:d.getParentOrThrow();let r=uo(_)?_:_.getParentOrThrow(),o=_;if(!n.is(r)&&r.isInline())do{o=r,r=r.getParentOrThrow()}while(r.isInline());if("text"===l.type&&(0!==c||""===_.getTextContent())||"element"===l.type&&_.getIndexWithinParent()<c)if(tr(_)&&!Jo(_)&&c!==_.getTextContentSize()){if(_.isSegmented()){const t=Zn(_.getTextContent());_.replace(t),_=t}po(l.getNode())||"text"!==l.type||(_=_.spliceText(0,c,"")),t.add(_.__key)}else{const t=_.getParentOrThrow();t.canBeEmpty()||1!==t.getChildrenSize()?_.remove():t.remove()}else t.add(_.__key);const i=r.getChildren(),s=new Set(u),g=n.is(r),p=n.isInline()&&null===d.getNextSibling()?n:d;for(let t=i.length-1;t>=0;t--){const e=i[t];if(e.is(d)||uo(e)&&e.isParentOf(d))break;e.isAttached()&&(!s.has(e)||e.is(o)?g||p.insertAfter(e,!1):e.remove())}if(!g){let e=r,n=null;for(;null!==e;){const r=e.getChildren(),o=r.length;(0===o||r[o-1].is(n))&&(t.delete(e.__key),n=e),e=e.getParent()}}if(Jo(d))if(a===h)d.select();else{const t=Zn(e);t.select(),d.replace(t)}else d=d.spliceText(a,h-a,e,!0),""===d.getTextContent()?d.remove():"text"===this.anchor.type&&(this.format=d.getFormat(),this.style=d.getStyle(),d.isComposing()&&(this.anchor.offset-=e.length));for(let e=1;e<f;e++){const n=u[e],r=n.__key;t.has(r)||n.remove()}}}removeText(){const t=Er()===this;js(this,Xs(Hs(this))),t&&Er()!==this&&ci(this)}formatText(t,e=null){if(this.isCollapsed())return this.toggleFormat(t),void Zo(null);const n=this.getNodes(),r=[];for(const t of n)tr(t)&&r.push(t);const o=e=>{n.forEach(n=>{if(uo(n)){const r=n.getFormatFlags(t,e);n.setTextFormat(r)}})},i=r.length;if(0===i)return this.toggleFormat(t),Zo(null),void o(e);const s=this.anchor,l=this.focus,a=this.isBackward(),c=a?l:s,u=a?s:l;let f=0,d=r[0],h="element"===c.type?0:c.offset;if("text"===c.type&&h===d.getTextContentSize()&&(f=1,d=r[1],h=0),null==d)return;const g=d.getFormatFlags(t,e);o(g);const _=i-1;let p=r[_];const y="text"===u.type?u.offset:p.getTextContentSize();if(d.is(p)){if(h===y)return;if(Yo(d)||0===h&&y===d.getTextContentSize())d.setFormat(g);else{const t=d.splitText(h,y),e=0===h?t[0]:t[1];e.setFormat(g),"text"===c.type&&c.set(e.__key,0,"text"),"text"===u.type&&u.set(e.__key,y-h,"text")}return void(this.format=g)}0===h||Yo(d)||([,d]=d.splitText(h),h=0),d.setFormat(g);const m=p.getFormatFlags(t,g);y>0&&(y===p.getTextContentSize()||Yo(p)||([p]=p.splitText(y)),p.setFormat(m));for(let e=f+1;e<_;e++){const n=r[e],o=n.getFormatFlags(t,m);n.setFormat(o)}"text"===c.type&&c.set(d.__key,h,"text"),"text"===u.type&&u.set(p.__key,y,"text"),this.format=g|m}insertNodes(e){if(0===e.length)return;if(this.isCollapsed()||this.removeText(),"root"===this.anchor.key){this.insertParagraph();const n=Er();return ur(n)||t(134),n.insertNodes(e)}const n=(this.isBackward()?this.focus:this.anchor).getNode(),r=us(n,ts),o=e[e.length-1];if(uo(r)&&"__language"in r){if("__language"in e[0])this.insertText(e[0].getTextContent());else{const t=Fr(this);r.splice(t,0,e),o.selectEnd()}return}if(!e.some(t=>(uo(t)||go(t))&&!t.isInline())){uo(r)||t(211,n.constructor.name,n.getType());const i=Fr(this);return r.splice(i,0,e),void o.selectEnd()}const i=function(t){const e=vo();let n=null;for(let r=0;r<t.length;r++){const o=t[r],i=Ln(o);if(i||go(o)&&o.isInline()||uo(o)&&o.isInline()||tr(o)||o.isParentRequired()){if(null===n&&(n=o.createParentElementNode(),e.append(n),i))continue;null!==n&&n.append(o)}else e.append(o),n=null}return e}(e),s=i.getLastDescendant(),l=i.getChildren(),a=!uo(r)||!r.isEmpty()?this.insertParagraph():null,c=l[l.length-1];let u=l[0];var f;uo(f=u)&&ts(f)&&!f.isEmpty()&&uo(r)&&(!r.isEmpty()||r.canMergeWhenEmpty())&&(uo(r)||t(211,n.constructor.name,n.getType()),r.append(...u.getChildren()),u=l[1]),u&&(null===r&&t(212,n.constructor.name,n.getType()),function(e,n){const r=n.getParentOrThrow().getLastChild();let o=n;const i=[n];for(;o!==r;)o.getNextSibling()||t(140),o=o.getNextSibling(),i.push(o);let s=e;for(const t of i)s=s.insertAfter(t)}(r,u));const d=us(s,ts);a&&uo(d)&&(a.canMergeWhenEmpty()||ts(c))&&(d.append(...a.getChildren()),a.remove()),uo(r)&&r.isEmpty()&&r.remove(),s.selectEnd();const h=uo(r)?r.getLastChild():null;Ln(h)&&d!==r&&h.remove()}insertParagraph(){if("root"===this.anchor.key){const t=vo();return li().splice(this.anchor.offset,0,[t]),t.select(),t}const e=Fr(this),n=us(this.anchor.getNode(),ts);uo(n)||t(213);const r=n.getChildAtIndex(e),o=r?[r,...r.getNextSiblings()]:[],i=n.insertNewAfter(this,!1);return i?(i.append(...o),i.selectStart(),i):null}insertLineBreak(t){const e=Fn();if(this.insertNodes([e]),t){const t=e.getParentOrThrow(),n=e.getIndexWithinParent();t.select(n,n)}}extract(){const t=[...this.getNodes()],e=t.length;let n=t[0],r=t[e-1];const[o,i]=gr(this),s=this.isBackward(),[l,a]=s?[this.focus,this.anchor]:[this.anchor,this.focus],[c,u]=s?[i,o]:[o,i];if(0===e)return[];if(1===e){if(tr(n)&&!this.isCollapsed()){const t=n.splitText(c,u),e=0===c?t[0]:t[1];return e?(l.set(e.getKey(),0,"text"),a.set(e.getKey(),e.getTextContentSize(),"text"),[e]):[]}return[n]}if(tr(n)&&(c===n.getTextContentSize()?t.shift():0!==c&&([,n]=n.splitText(c),t[0]=n,l.set(n.getKey(),0,"text"))),tr(r)){const e=r.getTextContent().length;0===u?t.pop():u!==e&&([r]=r.splitText(u),t[t.length-1]=r,a.set(r.getKey(),r.getTextContentSize(),"text"))}return t}modify(t,e,n){if(Rr(this,t,e,n))return;const r="move"===t,o=Vr(),i=Hi(Ki(o));if(!i)return;const s=o._blockCursorElement,l=o._rootElement,a=this.focus.getNode();if(null===l||null===s||!uo(a)||a.isInline()||a.canBeEmpty()||ji(s,o,l),this.dirty){let t=wi(o,this.anchor.key),e=wi(o,this.focus.key);"text"===this.anchor.type&&(t=Vo(t)),"text"===this.focus.type&&(e=Vo(e)),t&&e&&Dr(i,t,this.anchor.offset,e,this.focus.offset)}if(function(t,e,n,r){t.modify(e,n,r)}(i,t,e?"backward":"forward",n),i.rangeCount>0){const t=i.getRangeAt(0),n=this.anchor.getNode(),o=po(n)?n:Bi(n);if(this.applyDOMRange(t),this.dirty=!0,!r){const n=this.getNodes(),r=[];let s=!1;for(let t=0;t<n.length;t++){const e=n[t];Li(e,o)?r.push(e):s=!0}if(s&&r.length>0)if(e){const t=r[0];uo(t)?t.selectStart():t.getParentOrThrow().selectStart()}else{const t=r[r.length-1];uo(t)?t.selectEnd():t.getParentOrThrow().selectEnd()}i.anchorNode===t.startContainer&&i.anchorOffset===t.startOffset||function(t){const e=t.focus,n=t.anchor,r=n.key,o=n.offset,i=n.type;n.set(e.key,e.offset,e.type,!0),e.set(r,o,i,!0)}(this)}}"lineboundary"===n&&Rr(this,t,e,n,"decorators")}forwardDeletion(t,e,n){if(!n&&("element"===t.type&&uo(e)&&t.offset===e.getChildrenSize()||"text"===t.type&&t.offset===e.getTextContentSize())){const t=e.getParent(),n=e.getNextSibling()||(null===t?null:t.getNextSibling());if(uo(n)&&n.isShadowRoot())return!0}return!1}deleteCharacter(t){const e=this.isCollapsed();if(this.isCollapsed()){const e=this.anchor;let n=e.getNode();if(this.forwardDeletion(e,n,t))return;const r=Is(Us(e,t?"previous":"next"));if(r.getTextSlices().every(t=>null===t||0===t.distance)){let t={type:"initial"};for(const e of r.iterNodeCarets("shadowRoot"))if(Ss(e))if(e.origin.isInline());else{if(e.origin.isShadowRoot()){if("merge-block"===t.type)break;if(uo(r.anchor.origin)&&r.anchor.origin.isEmpty()){const t=Qs(e);js(this,Ls(t,t)),r.anchor.origin.remove()}return}"merge-next-block"!==t.type&&"merge-block"!==t.type||(t={block:t.block,caret:e,type:"merge-block"})}else{if("merge-block"===t.type)break;if(Cs(e)){if(uo(e.origin)){if(e.origin.isInline()){if(!e.origin.isParentOf(r.anchor.origin))break}else t={block:e.origin,type:"merge-next-block"};continue}if(go(e.origin)){if(e.origin.isIsolated());else if("merge-next-block"===t.type&&(e.origin.isKeyboardSelectable()||!e.origin.isInline())&&uo(r.anchor.origin)&&r.anchor.origin.isEmpty()){r.anchor.origin.remove();const t=vr();t.add(e.origin.getKey()),ci(t)}else e.origin.remove();return}break}}if("merge-block"===t.type){const{caret:e,block:n}=t;return js(this,Ls(!e.origin.isEmpty()&&n.isEmpty()?Vs(ks(n,e.direction)):r.anchor,e)),this.removeText()}}const o=this.focus;if(this.modify("extend",t,"character"),this.isCollapsed()){if(t&&0===e.offset&&_r(this,e.getNode()))return}else{const r="text"===o.type?o.getNode():null;if(n="text"===e.type?e.getNode():null,null!==r&&r.isSegmented()){const e=o.offset,i=r.getTextContentSize();if(r.is(n)||t&&e!==i||!t&&0!==e)return void yr(r,t,e)}else if(null!==n&&n.isSegmented()){const o=e.offset,i=n.getTextContentSize();if(n.is(r)||t&&0!==o||!t&&o!==i)return void yr(n,t,o)}!function(t,e){const n=t.anchor,r=t.focus,o=n.getNode(),i=r.getNode();if(o===i&&"text"===n.type&&"text"===r.type){const t=n.offset,i=r.offset,s=t<i,l=s?t:i,a=s?i:t,c=a-1;if(l!==c){(function(t){return!(fi(t)||pr(t))})(o.getTextContent().slice(l,a))&&(e?r.set(r.key,c,r.type):n.set(n.key,c,n.type))}}}(this,t)}}if(this.removeText(),t&&!e&&this.isCollapsed()&&"element"===this.anchor.type&&0===this.anchor.offset){const t=this.anchor.getNode();t.isEmpty()&&po(t.getParent())&&null===t.getPreviousSibling()&&_r(this,t)}}deleteLine(t){this.isCollapsed()&&this.modify("extend",t,"lineboundary"),this.isCollapsed()?this.deleteCharacter(t):this.removeText()}deleteWord(t){if(this.isCollapsed()){const e=this.anchor,n=e.getNode();if(this.forwardDeletion(e,n,t))return;this.modify("extend",t,"word")}this.isCollapsed()?this.deleteCharacter(t):this.removeText()}isBackward(){return this.focus.isBefore(this.anchor)}getStartEndPoints(){return[this.anchor,this.focus]}}function dr(t){return t instanceof cr}function hr(t){const e=t.offset;if("text"===t.type)return e;const n=t.getNode();return e===n.getChildrenSize()?n.getTextContent().length:0}function gr(t){const e=t.getStartEndPoints();if(null===e)return[0,0];const[n,r]=e;return"element"===n.type&&"element"===r.type&&n.key===r.key&&n.offset===r.offset?[0,0]:[hr(n),hr(r)]}function _r(t,e){for(let n=e;n;n=n.getParent()){if(uo(n)){if(n.collapseAtStart(t))return!0;if(zi(n))break}if(n.getPreviousSibling())break}return!1}const pr=(()=>{try{const t=new RegExp("\\p{Emoji}","u"),e=t.test.bind(t);if(e("\u2764\ufe0f")&&e("#\ufe0f\u20e3")&&e("\u{1f44d}"))return e}catch(t){}return()=>!1})();function yr(t,e,n){const r=t,o=r.getTextContent().split(/(?=\s)/g),i=o.length;let s=0,l=0;for(let t=0;t<i;t++){const r=t===i-1;if(l=s,s+=o[t].length,e&&s===n||s>n||r){o.splice(t,1),r&&(l=void 0);break}}const a=o.join("").trim();""===a?r.remove():(r.setTextContent(a),r.select(l,l))}function mr(e,n,r,o){let i,s=n;if(Gi(e)){let l=!1;const a=e.childNodes,c=a.length,u=o._blockCursorElement;s===c&&(l=!0,s=c-1);let f=a[s],d=!1;if(f===u)f=a[s+1],d=!0;else if(null!==u){const t=u.parentNode;if(e===t){n>Array.prototype.indexOf.call(t.children,u)&&s--}}if(i=ui(f),tr(i))s=Os(i,l?"next":"previous");else{let a=ui(e);if(null===a)return null;if(uo(a)){const c=o.getElementByKey(a.getKey());null===c&&t(214);const u=a.getDOMSlot(c);[a,s]=u.resolveChildIndex(a,c,e,n),uo(a)||t(215),l&&s>=a.getChildrenSize()&&(s=Math.max(0,a.getChildrenSize()-1));let f=a.getChildAtIndex(s);if(uo(f)&&function(t,e,n){const r=t.getParent();return null===n||null===r||!r.canBeEmpty()||r!==n.getNode()}(f,0,r)){const t=l?f.getLastDescendant():f.getFirstDescendant();null===t?a=f:(f=t,a=uo(f)?f:f.getParentOrThrow()),s=0}tr(f)?(i=f,a=null,s=Os(f,l?"next":"previous")):f!==a&&l&&!d&&(uo(a)||t(216),s=Math.min(a.getChildrenSize(),s+1))}else{const t=a.getIndexWithinParent();s=0===n&&go(a)&&ui(e)===a?t:t+1,a=a.getParentOrThrow()}if(uo(a))return sr(a.__key,s,"element")}}else i=ui(e);return tr(i)?sr(i.__key,Os(i,s,"clamp"),"text"):null}function xr(t,e,n){const r=t.offset,o=t.getNode();if(0===r){const r=o.getPreviousSibling(),i=o.getParent();if(e){if((n||!e)&&null===r&&uo(i)&&i.isInline()){const e=i.getPreviousSibling();tr(e)&&t.set(e.__key,e.getTextContent().length,"text")}}else uo(r)&&!n&&r.isInline()?t.set(r.__key,r.getChildrenSize(),"element"):tr(r)&&t.set(r.__key,r.getTextContent().length,"text")}else if(r===o.getTextContent().length){const r=o.getNextSibling(),i=o.getParent();if(e&&uo(r)&&r.isInline())t.set(r.__key,0,"element");else if((n||e)&&null===r&&uo(i)&&i.isInline()&&!i.canInsertTextAfter()){const e=i.getNextSibling();tr(e)&&t.set(e.__key,0,"text")}}}function Cr(t,e,n){if("text"===t.type&&"text"===e.type){const n=t.isBefore(e),r=t.is(e);xr(t,n,r),xr(e,!n,r),r&&e.set(t.key,t.offset,t.type)}}function Sr(t,e,n,r,o,i){if(null===t||null===n||!zo(o,t,n))return null;const s=mr(t,e,ur(i)?i.anchor:null,o);if(null===s)return null;const l=mr(n,r,ur(i)?i.focus:null,o);if(null===l)return null;if("element"===s.type&&"element"===l.type){const e=ui(t),r=ui(n);if(go(e)&&go(r))return null}return Cr(s,l),[s,l]}function Nr(t,e,n,r,o,i){const s=Hr(),l=new fr(sr(t,e,o),sr(n,r,i),0,"");return l.dirty=!0,s._selection=l,l}function Tr(){const t=sr("root",0,"element"),e=sr("root",0,"element");return new fr(t,e,0,"")}function vr(){return new cr(new Set)}function kr(t,e,n,r){const o=n._window;if(null===o)return null;const i=r||o.event,s=i?i.type:void 0,l="selectionchange"===s,a=!K&&(l||"beforeinput"===s||"compositionstart"===s||"compositionend"===s||"click"===s&&i&&3===i.detail||"drop"===s||void 0===s);let c,u,f,d;if(ur(t)&&!a)return t.clone();if(null===e)return null;if(c=e.anchorNode,u=e.focusNode,f=e.anchorOffset,d=e.focusOffset,(l||void 0===s)&&ur(t)&&!zo(n,c,u))return t.clone();const h=Sr(c,f,u,d,n,t);if(null===h)return null;const[g,_]=h;let p=0,y="";if(ur(t)){const e=t.anchor;if(g.key===e.key)p=t.format,y=t.style;else{const t=g.getNode();tr(t)?(p=t.getFormat(),y=t.getStyle()):uo(t)&&(p=t.getTextFormat(),y=t.getTextStyle())}}return new fr(g,_,p,y)}function Er(){return Hr()._selection}function Or(){return Vr()._editorState._selection}function Mr(t,e,n,r=1){const o=t.anchor,i=t.focus,s=o.getNode(),l=i.getNode();if(!e.is(s)&&!e.is(l))return;const a=e.__key;if(t.isCollapsed()){const e=o.offset;if(n<=e&&r>0||n<e&&r<0){const n=Math.max(0,e+r);o.set(a,n,"element"),i.set(a,n,"element"),br(t)}}else{const s=t.isBackward(),l=s?i:o,c=l.getNode(),u=s?o:i,f=u.getNode();if(e.is(c)){const t=l.offset;(n<=t&&r>0||n<t&&r<0)&&l.set(a,Math.max(0,t+r),"element")}if(e.is(f)){const t=u.offset;(n<=t&&r>0||n<t&&r<0)&&u.set(a,Math.max(0,t+r),"element")}}br(t)}function br(t){const e=t.anchor,n=e.offset,r=t.focus,o=r.offset,i=e.getNode(),s=r.getNode();if(t.isCollapsed()){if(!uo(i))return;const t=i.getChildrenSize(),o=n>=t,s=o?i.getChildAtIndex(t-1):i.getChildAtIndex(n);if(tr(s)){let t=0;o&&(t=s.getTextContentSize()),e.set(s.__key,t,"text"),r.set(s.__key,t,"text")}return}if(uo(i)){const t=i.getChildrenSize(),r=n>=t,o=r?i.getChildAtIndex(t-1):i.getChildAtIndex(n);if(tr(o)){let t=0;r&&(t=o.getTextContentSize()),e.set(o.__key,t,"text")}}if(uo(s)){const t=s.getChildrenSize(),e=o>=t,n=e?s.getChildAtIndex(t-1):s.getChildAtIndex(o);if(tr(n)){let t=0;e&&(t=n.getTextContentSize()),r.set(n.__key,t,"text")}}}function Ar(t,e,n,r,o){let i=null,s=0,l=null;null!==r?(i=r.__key,tr(r)?(s=r.getTextContentSize(),l="text"):uo(r)&&(s=r.getChildrenSize(),l="element")):null!==o&&(i=o.__key,tr(o)?l="text":uo(o)&&(l="element")),null!==i&&null!==l?t.set(i,s,l):(s=e.getIndexWithinParent(),-1===s&&(s=n.getChildrenSize()),t.set(n.__key,s,"element"))}function wr(t,e,n,r,o){"text"===t.type?t.set(n,t.offset+(e?0:o),"text"):t.offset>r.getIndexWithinParent()&&t.set(t.key,t.offset-1,"element")}function Dr(t,e,n,r,o){try{t.setBaseAndExtent(e,n,r,o)}catch(t){}}function Pr(t,e,n){const r=wi(t,e.getKey());if(uo(e)){const t=e.getDOMSlot(r);return[t.element,n+t.getFirstChildOffset()]}return[r,n]}function Ir(t,e,n,r,o,s,l){const a=r.anchorNode,c=r.focusNode,u=r.anchorOffset,f=r.focusOffset,d=document.activeElement;if(o.has(On)&&d!==s||null!==d&&Bo(d))return;if(!ur(e))return void(null!==t&&zo(n,a,c)&&r.removeAllRanges());const h=e.anchor,g=e.focus,_=h.getNode(),p=g.getNode(),[y,m]=Pr(n,_,h.offset),[x,C]=Pr(n,p,g.offset),S=e.format,N=e.style,T=e.isCollapsed();let v=y,k=x,E=!1;var O,M,b,A,w;if(("text"===h.type?(v=Vo(y),E=_.getFormat()!==S||_.getStyle()!==N):ur(t)&&"text"===t.anchor.type&&(E=!0),"text"===g.type&&(k=Vo(x)),null!==v&&null!==k)&&(T&&(null===t||E||ur(t)&&(t.format!==S||t.style!==N))&&(O=S,M=N,b=m,A=h.key,w=performance.now(),en=[O,M,b,A,w]),u!==m||f!==C||a!==v||c!==k||"Range"===r.type&&T||(null!==d&&s.contains(d)||o.has(An)||s.focus({preventScroll:!0}),"element"===h.type))){if(Dr(r,v,m,k,C),!i||!e.isCollapsed()||null===s||o.has(An)||null!==document.activeElement&&s.contains(document.activeElement)||s.focus({preventScroll:!0}),!o.has(Mn)&&e.isCollapsed()&&null!==s&&s===document.activeElement){const t=ur(e)&&"element"===e.anchor.type?v.childNodes[m]||null:r.rangeCount>0?r.getRangeAt(0):null;if(null!==t){let e;if(t instanceof Text){const n=document.createRange();n.selectNode(t),e=n.getBoundingClientRect()}else e=t.getBoundingClientRect();!function(t,e,n){const r=Pi(n),o=Ri(r);if(null===r||null===o)return;let{top:i,bottom:s}=e,l=0,a=0,c=n;for(;null!==c;){const e=c===r.body;if(e){l=0,a=Ki(t).innerHeight;const e=o.getComputedStyle(r.documentElement),n=parseFloat(e.scrollPaddingTop),i=parseFloat(e.scrollPaddingBottom);isFinite(n)&&(l+=n),isFinite(i)&&(a-=i)}else{const t=c.getBoundingClientRect();l=t.top,a=t.bottom}let n=0;if(i<l?n=-(l-i):s>a&&(n=s-a),0!==n)if(e)o.scrollBy(0,n);else{const t=c.scrollTop;c.scrollTop+=n;const e=c.scrollTop-t;i-=e,s-=e}if(e)break;c=Di(c)}}(n,e,s)}}Ve=!0}}function Fr(e){let n=e;e.isCollapsed()||n.removeText();const r=Er();ur(r)&&(n=r),ur(n)||t(161);const o=n.anchor;let i=o.getNode(),s=o.offset;for(;!ts(i);){const t=i;if([i,s]=Lr(i,s),t.is(i))break}return s}function Lr(t,e){const n=t.getParent();if(!n){const t=vo();return li().append(t),t.select(),[li(),0]}if(tr(t)){const r=t.splitText(e);if(0===r.length)return[n,t.getIndexWithinParent()];const o=0===e?0:1;return[n,r[0].getIndexWithinParent()+o]}if(!uo(t)||0===e)return[n,t.getIndexWithinParent()];const r=t.getChildAtIndex(e);if(r){const n=new fr(sr(t.__key,e,"element"),sr(t.__key,e,"element"),0,""),o=t.insertNewAfter(n);o&&o.append(r,...r.getNextSiblings())}return[n,t.getIndexWithinParent()+1]}function Rr(t,e,n,r,o="decorators-and-blocks"){if("move"===e&&"character"===r&&!t.isCollapsed()){const[e,r]=n===t.isBackward()?[t.focus,t.anchor]:[t.anchor,t.focus];return r.set(e.key,e.offset,e.type),!0}const i=Us(t.focus,n?"previous":"next"),s="lineboundary"===r,l="move"===e;let a=i,c="decorators-and-blocks"===o;if(!Zs(a)){for(const t of a){c=!1;const{origin:e}=t;if(!go(e)||e.isIsolated()||(a=t,!s||!e.isInline()))break}if(c)for(const t of Is(i).iterNodeCarets("extend"===e?"shadowRoot":"root")){if(Ss(t))t.origin.isInline()||(a=t);else{if(uo(t.origin))continue;go(t.origin)&&!t.origin.isInline()&&(a=t)}break}}if(a===i)return!1;if(l&&!s&&go(a.origin)&&a.origin.isKeyboardSelectable()){const t=vr();return t.add(a.origin.getKey()),ci(t),!0}return a=Qs(a),l&&Js(t.anchor,a),Js(t.focus,a),c||!s}let Kr=null,Br=null,zr=!1,Wr=!1,$r=0;const Ur={characterData:!0,childList:!0,subtree:!0};function Jr(){return zr||null!==Kr&&Kr._readOnly}function Yr(){zr&&t(13)}function jr(){$r>99&&t(14)}function Hr(){return null===Kr&&t(195,Gr()),Kr}function Vr(){return null===Br&&t(196,Gr()),Br}function Gr(){let t=0;const e=new Set,n=wo.version;if("undefined"!=typeof window)for(const r of document.querySelectorAll("[contenteditable]")){const o=Uo(r);if(Wo(o))t++;else if(o){let t=String(o.constructor.version||"<0.17.1");t===n&&(t+=" (separately built, likely a bundler configuration issue)"),e.add(t)}}let r=` Detected on the page: ${t} compatible editor(s) with version ${n}`;return e.size&&(r+=` and incompatible editors with versions ${Array.from(e).join(", ")}`),r}function qr(){return Br}function Xr(t,e,n){const r=e.__type,o=Fo(t,r);let i=n.get(r);void 0===i&&(i=Array.from(o.transforms),n.set(r,i));const s=i.length;for(let t=0;t<s&&(i[t](e),e.isAttached());t++);}function Qr(t,e){return void 0!==t&&t.__key!==e&&t.isAttached()}function Zr(t,e){if(!e)return;const n=t._updateTags;let r=e;Array.isArray(e)||(r=[e]);for(const t of r)n.add(t)}function to(e,n){const r=e.type,o=n.get(r);void 0===o&&t(17,r);const i=o.klass;e.type!==i.getType()&&t(18,i.name);const s=i.importJSON(e),l=e.children;if(uo(s)&&Array.isArray(l))for(let t=0;t<l.length;t++){const e=to(l[t],n);s.append(e)}return s}function eo(t,e,n){const r=Kr,o=zr,i=Br;Kr=e,zr=!0,Br=t;try{return n()}finally{Kr=r,zr=o,Br=i}}function no(t,e){const n=t._pendingEditorState,r=t._rootElement,o=t._headless||null===r;if(null===n)return;const i=t._editorState,s=i._selection,l=n._selection,a=0!==t._dirtyType,c=Kr,u=zr,f=Br,d=t._updating,h=t._observer;let g=null;if(t._pendingEditorState=null,t._editorState=n,!o&&a&&null!==h){Br=t,Kr=n,zr=!1,t._updating=!0;try{const e=t._dirtyType,r=t._dirtyElements,o=t._dirtyLeaves;h.disconnect(),g=$t(i,n,t,e,r,o)}catch(e){if(e instanceof Error&&t._onError(e),Wr)throw e;return Oo(t,null,r,n),H(t),t._dirtyType=2,Wr=!0,no(t,i),void(Wr=!1)}finally{h.observe(r,Ur),t._updating=d,Kr=c,zr=u,Br=f}}n._readOnly||(n._readOnly=!0);const _=t._dirtyLeaves,p=t._dirtyElements,y=t._normalizedNodes,m=t._updateTags,x=t._deferred;a&&(t._dirtyType=0,t._cloneNotNeeded.clear(),t._dirtyLeaves=new Set,t._dirtyElements=new Map,t._normalizedNodes=new Set,t._updateTags=new Set),function(t,e){const n=t._decorators;let r=t._pendingDecorators||n;const o=e._nodeMap;let i;for(i in r)o.has(i)||(r===n&&(r=ii(t)),delete r[i])}(t,n);const C=o?null:Hi(Ki(t));if(t._editable&&null!==C&&(a||null===l||l.dirty||!l.is(s))&&null!==r&&!m.has(bn)){Br=t,Kr=n;try{if(null!==h&&h.disconnect(),a||null===l||l.dirty){const e=t._blockCursorElement;null!==e&&ji(e,t,r),Ir(s,l,t,C,m,r)}!function(t,e,n){let r=t._blockCursorElement;if(ur(n)&&n.isCollapsed()&&"element"===n.anchor.type&&e.contains(document.activeElement)){const o=n.anchor,i=o.getNode(),s=o.offset;let l=!1,a=null;if(s===i.getChildrenSize()){Yi(i.getChildAtIndex(s-1))&&(l=!0)}else{const e=i.getChildAtIndex(s);if(null!==e&&Yi(e)){const n=e.getPreviousSibling();(null===n||Yi(n))&&(l=!0,a=t.getElementByKey(e.__key))}}if(l){const n=t.getElementByKey(i.__key);return null===r&&(t._blockCursorElement=r=function(t){const e=t.theme,n=document.createElement("div");n.contentEditable="false",n.setAttribute("data-lexical-cursor","true");let r=e.blockCursor;if(void 0!==r){if("string"==typeof r){const t=il(r);r=e.blockCursor=t}void 0!==r&&n.classList.add(...r)}return n}(t._config)),e.style.caretColor="transparent",void(null===a?n.appendChild(r):n.insertBefore(r,a))}}null!==r&&ji(r,t,e)}(t,r,l)}finally{null!==h&&h.observe(r,Ur),Br=f,Kr=c}}null!==g&&function(t,e,n,r,o){const i=Array.from(t._listeners.mutation),s=i.length;for(let t=0;t<s;t++){const[s,l]=i[t];for(const t of l){const i=e.get(t);void 0!==i&&s(i,{dirtyLeaves:r,prevEditorState:o,updateTags:n})}}}(t,g,m,_,i),ur(l)||null===l||null!==s&&s.is(l)||t.dispatchCommand(Yt,void 0);const S=t._pendingDecorators;null!==S&&(t._decorators=S,t._pendingDecorators=null,ro("decorator",t,!0,S)),function(t,e,n){const r=si(e),o=si(n);r!==o&&ro("textcontent",t,!0,o)}(t,e||i,n),ro("update",t,!0,{dirtyElements:p,dirtyLeaves:_,editorState:n,mutatedNodes:g,normalizedNodes:y,prevEditorState:e||i,tags:m}),function(t,e){if(t._deferred=[],0!==e.length){const n=t._updating;t._updating=!0;try{for(let t=0;t<e.length;t++)e[t]()}finally{t._updating=n}}}(t,x),function(t){const e=t._updates;if(0!==e.length){const n=e.shift();if(n){const[e,r]=n;io(t,e,r)}}}(t)}function ro(t,e,n,...r){const o=e._updating;e._updating=n;try{const n=e._listeners[t],o=Array.from(n);for(const[t,e]of o){e&&e();const o=t(...r);n.has(t)?n.set(t,o):o&&o()}}finally{e._updating=o}}function oo(e,n){const r=e._updates;let o=n||!1;for(;0!==r.length;){const n=r.shift();if(n){const[r,i]=n,s=e._pendingEditorState;let l;void 0!==i&&(l=i.onUpdate,i.skipTransforms&&(o=!0),i.discrete&&(null===s&&t(191),s._flushSync=!0),l&&e._deferred.push(l),Zr(e,i.tag)),null==s?io(e,r,i):r()}}return o}function io(e,n,r){const o=e._updateTags;let i,s=!1,l=!1;void 0!==r&&(i=r.onUpdate,Zr(e,r.tag),s=r.skipTransforms||!1,l=r.discrete||!1),i&&e._deferred.push(i);const a=e._editorState;let c=e._pendingEditorState,u=!1;(null===c||c._readOnly)&&(c=e._pendingEditorState=yo(c||a),u=!0),c._flushSync=l;const f=Kr,d=zr,h=Br,g=e._updating;Kr=c,zr=!1,e._updating=!0,Br=e;const _=e._headless||null===e.getRootElement();Po(null);try{u&&(_?null!==a._selection&&(c._selection=a._selection.clone()):c._selection=function(t,e){const n=t.getEditorState()._selection,r=Hi(Ki(t));return ur(n)||null==n?kr(n,r,t,e):n.clone()}(e,r&&r.event||null));const o=e._compositionKey;n(),s=oo(e,s),function(t,e){const n=e.getEditorState()._selection,r=t._selection;if(ur(r)){const t=r.anchor,e=r.focus;let o;if("text"===t.type&&(o=t.getNode(),o.selectionTransform(n,r)),"text"===e.type){const t=e.getNode();o!==t&&t.selectionTransform(n,r)}}}(c,e),0!==e._dirtyType&&(s?function(t,e){const n=e._dirtyLeaves,r=t._nodeMap;for(const t of n){const e=r.get(t);tr(e)&&e.isAttached()&&e.isSimpleText()&&!e.isUnmergeable()&&lt(e)}}(c,e):function(t,e){const n=e._dirtyLeaves,r=e._dirtyElements,o=t._nodeMap,i=ti(),s=new Map;let l=n,a=l.size,c=r,u=c.size;for(;a>0||u>0;){if(a>0){e._dirtyLeaves=new Set;for(const t of l){const r=o.get(t);tr(r)&&r.isAttached()&&r.isSimpleText()&&!r.isUnmergeable()&&lt(r),void 0!==r&&Qr(r,i)&&Xr(e,r,s),n.add(t)}if(l=e._dirtyLeaves,a=l.size,a>0){$r++;continue}}e._dirtyLeaves=new Set,e._dirtyElements=new Map,c.delete("root")&&c.set("root",!0);for(const t of c){const n=t[0],l=t[1];if(r.set(n,l),!l)continue;const a=o.get(n);void 0!==a&&Qr(a,i)&&Xr(e,a,s)}l=e._dirtyLeaves,a=l.size,c=e._dirtyElements,u=c.size,$r++}e._dirtyLeaves=n,e._dirtyElements=r}(c,e),oo(e),function(t,e,n,r){const o=t._nodeMap,i=e._nodeMap,s=[];for(const[t]of r){const e=i.get(t);void 0!==e&&(e.isAttached()||(uo(e)&&R(e,t,o,i,s,r),o.has(t)||r.delete(t),s.push(t)))}for(const t of s)i.delete(t);for(const t of n){const e=i.get(t);void 0===e||e.isAttached()||(o.has(t)||n.delete(t),i.delete(t))}}(a,c,e._dirtyLeaves,e._dirtyElements));o!==e._compositionKey&&(c._flushSync=!0);const i=c._selection;if(ur(i)){const e=c._nodeMap,n=i.anchor.key,r=i.focus.key;void 0!==e.get(n)&&void 0!==e.get(r)||t(19)}else dr(i)&&0===i._nodes.size&&(c._selection=null)}catch(t){return t instanceof Error&&e._onError(t),e._pendingEditorState=a,e._dirtyType=2,e._cloneNotNeeded.clear(),e._dirtyLeaves=new Set,e._dirtyElements.clear(),void no(e)}finally{Kr=f,zr=d,Br=h,e._updating=g,$r=0}const p=0!==e._dirtyType||e._deferred.length>0||function(t,e){const n=e.getEditorState()._selection,r=t._selection;if(null!==r){if(r.dirty||!r.is(n))return!0}else if(null!==n)return!0;return!1}(c,e);p?c._flushSync?(c._flushSync=!1,no(e)):u&&Ro(()=>{no(e)}):(c._flushSync=!1,u&&(o.clear(),e._deferred=[],e._pendingEditorState=null))}function so(t,e,n){Br===t&&void 0===n?e():io(t,e,n)}class lo{element;before;after;constructor(t,e,n){this.element=t,this.before=e||null,this.after=n||null}withBefore(t){return new lo(this.element,t,this.after)}withAfter(t){return new lo(this.element,this.before,t)}withElement(t){return this.element===t?this:new lo(t,this.before,this.after)}insertChild(e){const n=this.before||this.getManagedLineBreak();return null!==n&&n.parentElement!==this.element&&t(222),this.element.insertBefore(e,n),this}removeChild(e){return e.parentElement!==this.element&&t(223),this.element.removeChild(e),this}replaceChild(e,n){return n.parentElement!==this.element&&t(224),this.element.replaceChild(e,n),this}getFirstChild(){const t=this.after?this.after.nextSibling:this.element.firstChild;return t===this.before||t===this.getManagedLineBreak()?null:t}getManagedLineBreak(){return this.element.__lexicalLineBreak||null}setManagedLineBreak(t){if(null===t)this.removeManagedLineBreak();else{const e="decorator"===t&&(d||a||l);this.insertManagedLineBreak(e)}}removeManagedLineBreak(){const t=this.getManagedLineBreak();if(t){const e=this.element,n="IMG"===t.nodeName?t.nextSibling:null;n&&e.removeChild(n),e.removeChild(t),e.__lexicalLineBreak=void 0}}insertManagedLineBreak(t){const e=this.getManagedLineBreak();if(e){if(t===("IMG"===e.nodeName))return;this.removeManagedLineBreak()}const n=this.element,r=this.before,o=document.createElement("br");if(n.insertBefore(o,r),t){const t=document.createElement("img");t.setAttribute("data-lexical-linebreak","true"),t.style.cssText="display: inline !important; border: 0px !important; margin: 0px !important;",t.alt="",n.insertBefore(t,o),n.__lexicalLineBreak=t}else n.__lexicalLineBreak=o}getFirstChildOffset(){let t=0;for(let e=this.after;null!==e;e=e.previousSibling)t++;return t}resolveChildIndex(t,e,n,r){if(n===this.element){const e=this.getFirstChildOffset();return[t,Math.min(e+t.getChildrenSize(),Math.max(e,r))]}const o=ao(e,n);o.push(r);const i=ao(e,this.element);let s=t.getIndexWithinParent();for(let t=0;t<i.length;t++){const e=o[t],n=i[t];if(void 0===e||e<n)break;if(e>n){s+=1;break}}return[t.getParentOrThrow(),s]}}function ao(e,n){const r=[];let o=n;for(;o!==e&&null!==o;o=o.parentNode){let t=0;for(let e=o.previousSibling;null!==e;e=e.previousSibling)t++;r.push(t)}return o!==e&&t(225),r.reverse()}class co extends kn{__first;__last;__size;__format;__style;__indent;__dir;__textFormat;__textStyle;constructor(t){super(t),this.__first=null,this.__last=null,this.__size=0,this.__format=0,this.__style="",this.__indent=0,this.__dir=null,this.__textFormat=0,this.__textStyle=""}afterCloneFrom(t){super.afterCloneFrom(t),this.__key===t.__key&&(this.__first=t.__first,this.__last=t.__last,this.__size=t.__size),this.__indent=t.__indent,this.__format=t.__format,this.__style=t.__style,this.__dir=t.__dir,this.__textFormat=t.__textFormat,this.__textStyle=t.__textStyle}getFormat(){return this.getLatest().__format}getFormatType(){const t=this.getFormat();return P[t]||""}getStyle(){return this.getLatest().__style}getIndent(){return this.getLatest().__indent}getChildren(){const t=[];let e=this.getFirstChild();for(;null!==e;)t.push(e),e=e.getNextSibling();return t}getChildrenKeys(){const t=[];let e=this.getFirstChild();for(;null!==e;)t.push(e.__key),e=e.getNextSibling();return t}getChildrenSize(){return this.getLatest().__size}isEmpty(){return 0===this.getChildrenSize()}isDirty(){const t=Vr()._dirtyElements;return null!==t&&t.has(this.__key)}isLastChild(){const t=this.getLatest(),e=this.getParentOrThrow().getLastChild();return null!==e&&e.is(t)}getAllTextNodes(){const t=[];let e=this.getFirstChild();for(;null!==e;){if(tr(e)&&t.push(e),uo(e)){const n=e.getAllTextNodes();t.push(...n)}e=e.getNextSibling()}return t}getFirstDescendant(){let t=this.getFirstChild();for(;uo(t);){const e=t.getFirstChild();if(null===e)break;t=e}return t}getLastDescendant(){let t=this.getLastChild();for(;uo(t);){const e=t.getLastChild();if(null===e)break;t=e}return t}getDescendantByIndex(t){const e=this.getChildren(),n=e.length;if(t>=n){const t=e[n-1];return uo(t)&&t.getLastDescendant()||t||null}const r=e[t];return uo(r)&&r.getFirstDescendant()||r||null}getFirstChild(){const t=this.getLatest().__first;return null===t?null:ei(t)}getFirstChildOrThrow(){const e=this.getFirstChild();return null===e&&t(45,this.__key),e}getLastChild(){const t=this.getLatest().__last;return null===t?null:ei(t)}getLastChildOrThrow(){const e=this.getLastChild();return null===e&&t(96,this.__key),e}getChildAtIndex(t){const e=this.getChildrenSize();let n,r;if(t<e/2){for(n=this.getFirstChild(),r=0;null!==n&&r<=t;){if(r===t)return n;n=n.getNextSibling(),r++}return null}for(n=this.getLastChild(),r=e-1;null!==n&&r>=t;){if(r===t)return n;n=n.getPreviousSibling(),r--}return null}getTextContent(){let t="";const e=this.getChildren(),n=e.length;for(let r=0;r<n;r++){const o=e[r];t+=o.getTextContent(),uo(o)&&r!==n-1&&!o.isInline()&&(t+=v)}return t}getTextContentSize(){let t=0;const e=this.getChildren(),n=e.length;for(let r=0;r<n;r++){const o=e[r];t+=o.getTextContentSize(),uo(o)&&r!==n-1&&!o.isInline()&&(t+=2)}return t}getDirection(){return this.getLatest().__dir}getTextFormat(){return this.getLatest().__textFormat}hasFormat(t){if(""!==t){const e=D[t];return 0!==(this.getFormat()&e)}return!1}hasTextFormat(t){const e=A[t];return 0!==(this.getTextFormat()&e)}getFormatFlags(t,e){return Go(this.getLatest().__textFormat,t,e)}getTextStyle(){return this.getLatest().__textStyle}select(t,e){Yr();const n=Er();let r=t,o=e;const i=this.getChildrenSize();if(!this.canBeEmpty())if(0===t&&0===e){const t=this.getFirstChild();if(tr(t)||uo(t))return t.select(0,0)}else if(!(void 0!==t&&t!==i||void 0!==e&&e!==i)){const t=this.getLastChild();if(tr(t)||uo(t))return t.select()}void 0===r&&(r=i),void 0===o&&(o=i);const s=this.__key;return ur(n)?(n.anchor.set(s,r,"element"),n.focus.set(s,o,"element"),n.dirty=!0,n):Nr(s,r,s,o,"element","element")}selectStart(){const t=this.getFirstDescendant();return t?t.selectStart():this.select()}selectEnd(){const t=this.getLastDescendant();return t?t.selectEnd():this.select()}clear(){const t=this.getWritable();return this.getChildren().forEach(t=>t.remove()),t}append(...t){return this.splice(this.getChildrenSize(),0,t)}setDirection(t){const e=this.getWritable();return e.__dir=t,e}setFormat(t){return this.getWritable().__format=""!==t?D[t]:0,this}setStyle(t){return this.getWritable().__style=t||"",this}setTextFormat(t){const e=this.getWritable();return e.__textFormat=t,e}setTextStyle(t){const e=this.getWritable();return e.__textStyle=t,e}setIndent(t){return this.getWritable().__indent=t,this}splice(e,n,r){vn(this)&&t(324,this.__key,this.__type);const o=this.getChildrenSize(),i=this.getWritable();e+n<=o||t(226,String(e),String(n),String(o));const s=i.__key,l=[],a=[],c=this.getChildAtIndex(e+n);let u=null,f=o-n+r.length;if(0!==e)if(e===o)u=this.getLastChild();else{const t=this.getChildAtIndex(e);null!==t&&(u=t.getPreviousSibling())}if(n>0){let e=null===u?this.getFirstChild():u.getNextSibling();for(let r=0;r<n;r++){null===e&&t(100);const n=e.getNextSibling(),r=e.__key;Xo(e.getWritable()),a.push(r),e=n}}let d=u;for(const e of r){null!==d&&e.is(d)&&(u=d=d.getPreviousSibling());const n=e.getWritable();n.__parent===s&&f--,Xo(n);const r=e.__key;if(null===d)i.__first=r,n.__prev=null;else{const t=d.getWritable();t.__next=r,n.__prev=t.__key}e.__key===s&&t(76),n.__parent=s,l.push(r),d=e}if(e+n===o){if(null!==d){d.getWritable().__next=null,i.__last=d.__key}}else if(null!==c){const t=c.getWritable();if(null!==d){const e=d.getWritable();t.__prev=d.__key,e.__next=c.__key}else t.__prev=null}if(i.__size=f,a.length){const t=Er();if(ur(t)){const e=new Set(a),n=new Set(l),{anchor:r,focus:o}=t;fo(r,e,n)&&Ar(r,r.getNode(),this,u,c),fo(o,e,n)&&Ar(o,o.getNode(),this,u,c),0!==f||this.canBeEmpty()||zi(this)||this.remove()}}return i}getDOMSlot(t){return new lo(t)}exportDOM(t){const{element:e}=super.exportDOM(t);if(Gi(e)){const t=this.getIndent();t>0&&(e.style.paddingInlineStart=40*t+"px");const n=this.getDirection();n&&(e.dir=n)}return{element:e}}exportJSON(){const t={children:[],direction:this.getDirection(),format:this.getFormatType(),indent:this.getIndent(),...super.exportJSON()},e=this.getTextFormat(),n=this.getTextStyle();return 0===e&&""===n||zi(this)||this.getChildren().some(tr)||(0!==e&&(t.textFormat=e),""!==n&&(t.textStyle=n)),t}updateFromJSON(t){return super.updateFromJSON(t).setFormat(t.format).setIndent(t.indent).setDirection(t.direction).setTextFormat(t.textFormat||0).setTextStyle(t.textStyle||"")}insertNewAfter(t,e){return null}canIndent(){return!0}collapseAtStart(t){return!1}excludeFromCopy(t){return!1}canReplaceWith(t){return!0}canInsertAfter(t){return!0}canBeEmpty(){return!0}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}isInline(){return!1}isShadowRoot(){return!1}canMergeWith(t){return!1}extractWithChild(t,e,n){return!1}canMergeWhenEmpty(){return!1}reconcileObservedMutation(t,e){const n=this.getDOMSlot(t);let r=n.getFirstChild();for(let t=this.getFirstChild();t;t=t.getNextSibling()){const o=e.getElementByKey(t.getKey());null!==o&&(null==r?(n.insertChild(o),r=o):r!==o&&n.replaceChild(o,r),r=r.nextSibling)}}}function uo(t){return t instanceof co}function fo(t,e,n){let r=t.getNode();for(;r;){const t=r.__key;if(e.has(t)&&!n.has(t))return!0;r=r.getParent()}return!1}class ho extends kn{decorate(t,e){return null}isIsolated(){return!1}isInline(){return!0}isKeyboardSelectable(){return!0}}function go(t){return t instanceof ho}class _o extends co{__cachedText;static getType(){return"root"}static clone(){return new _o}constructor(){super("root"),this.__cachedText=null}getTopLevelElementOrThrow(){t(51)}getTextContent(){const t=this.__cachedText;return!Jr()&&0!==Vr()._dirtyType||null===t?super.getTextContent():t}remove(){t(52)}replace(e){t(53)}insertBefore(e){t(54)}insertAfter(e){t(55)}updateDOM(t,e){return!1}splice(e,n,r){for(const e of r)uo(e)||go(e)||t(282);return super.splice(e,n,r)}static importJSON(t){return li().updateFromJSON(t)}collapseAtStart(){return!0}}function po(t){return t instanceof _o}function yo(t){return new Co(new Map(t._nodeMap))}function mo(){return new Co(new Map([["root",new _o]]))}function xo(e){const n=e.exportJSON(),r=e.constructor;if(n.type!==r.getType()&&t(130,r.name),uo(e)){const o=n.children;Array.isArray(o)||t(59,r.name);const i=e.getChildren();for(let t=0;t<i.length;t++){const e=xo(i[t]);o.push(e)}}return n}class Co{_nodeMap;_selection;_flushSync;_readOnly;constructor(t,e){this._nodeMap=t,this._selection=e||null,this._flushSync=!1,this._readOnly=!1}isEmpty(){return 1===this._nodeMap.size&&null===this._selection}read(t,e){return eo(e&&e.editor||null,this,t)}clone(t){const e=new Co(this._nodeMap,void 0===t?this._selection:t);return e._readOnly=!0,e}toJSON(){return eo(null,this,()=>({root:xo(li())}))}}class So extends co{static getType(){return"artificial"}createDOM(t){return document.createElement("div")}}class No extends co{static getType(){return"paragraph"}static clone(t){return new No(t.__key)}createDOM(t){const e=document.createElement("p"),n=ki(t.theme,"paragraph");if(void 0!==n){e.classList.add(...n)}return e}updateDOM(t,e,n){return!1}static importDOM(){return{p:t=>({conversion:To,priority:0})}}exportDOM(t){const{element:e}=super.exportDOM(t);if(Gi(e)){this.isEmpty()&&e.append(document.createElement("br"));const t=this.getFormatType();t&&(e.style.textAlign=t)}return{element:e}}static importJSON(t){return vo().updateFromJSON(t)}exportJSON(){const t=super.exportJSON();if(void 0===t.textFormat||void 0===t.textStyle){const e=this.getChildren().find(tr);e?(t.textFormat=e.getFormat(),t.textStyle=e.getStyle()):(t.textFormat=this.getTextFormat(),t.textStyle=this.getTextStyle())}return t}insertNewAfter(t,e){const n=vo();n.setTextFormat(t.format),n.setTextStyle(t.style);const r=this.getDirection();return n.setDirection(r),n.setFormat(this.getFormatType()),n.setStyle(this.getStyle()),this.insertAfter(n,e),n}collapseAtStart(){const t=this.getChildren();if(0===t.length||tr(t[0])&&""===t[0].getTextContent().trim()){if(null!==this.getNextSibling())return this.selectNext(),this.remove(),!0;if(null!==this.getPreviousSibling())return this.selectPrevious(),this.remove(),!0}return!1}}function To(t){const e=vo();if(t.style&&(e.setFormat(t.style.textAlign),ss(t,e)),""===e.getFormatType()){const n=t.getAttribute("align");n&&n&&n in D&&e.setFormat(n)}return{node:e}}function vo(){return $i(new No)}function ko(t){return t instanceof No}const Eo=0;function Oo(t,e,n,r){const o=t._keyToDOMMap;o.clear(),t._editorState=mo(),t._pendingEditorState=r,t._compositionKey=null,t._dirtyType=0,t._cloneNotNeeded.clear(),t._dirtyLeaves=new Set,t._dirtyElements.clear(),t._normalizedNodes=new Set,t._updateTags=new Set,t._updates=[],t._blockCursorElement=null;const i=t._observer;null!==i&&(i.disconnect(),t._observer=null),null!==e&&(e.textContent=""),null!==n&&(n.textContent="",o.set("root",n))}function Mo(t){const e=new Set,n=new Set;let r=t;for(;r;){const{ownNodeConfig:t}=cs(r),o=r.transform;if(!n.has(o)){n.add(o);const t=r.transform();t&&e.add(t)}if(t){const n=t.$transform;n&&e.add(n),r=t.extends}else{const t=Object.getPrototypeOf(r);r=t.prototype instanceof kn&&t!==kn?t:void 0}}return e}function bo(t,e){const n=t.get(e);t.delete(e),n&&n()}function Ao(t,e,n){return t.set(e,n),bo.bind(null,t,e)}class wo{static version;_headless;_parentEditor;_rootElement;_editorState;_pendingEditorState;_compositionKey;_deferred;_keyToDOMMap;_updates;_updating;_listeners;_commands;_nodes;_decorators;_pendingDecorators;_config;_dirtyType;_cloneNotNeeded;_dirtyLeaves;_dirtyElements;_normalizedNodes;_updateTags;_observer;_key;_onError;_htmlConversions;_window;_editable;_blockCursorElement;_createEditorArgs;constructor(t,e,n,r,o,i,s,l){this._createEditorArgs=l,this._parentEditor=e,this._rootElement=null,this._editorState=t,this._pendingEditorState=null,this._compositionKey=null,this._deferred=[],this._keyToDOMMap=new Map,this._updates=[],this._updating=!1,this._listeners={decorator:new Map,editable:new Map,mutation:new Map,root:new Map,textcontent:new Map,update:new Map},this._commands=new Map,this._config=r,this._nodes=n,this._decorators={},this._pendingDecorators=null,this._dirtyType=0,this._cloneNotNeeded=new Set,this._dirtyLeaves=new Set,this._dirtyElements=new Map,this._normalizedNodes=new Set,this._updateTags=new Set,this._observer=null,this._key=hi(),this._onError=o,this._htmlConversions=i,this._editable=s,this._headless=null!==e&&e._headless,this._window=null,this._blockCursorElement=null}isComposing(){return null!=this._compositionKey}registerUpdateListener(t){return Ao(this._listeners.update,t)}registerEditableListener(t){return Ao(this._listeners.editable,t)}registerDecoratorListener(t){return Ao(this._listeners.decorator,t)}registerTextContentListener(t){return Ao(this._listeners.textcontent,t)}registerRootListener(t){const e=this._listeners.root;return sl(Ao(e,t,t(this._rootElement,null)||void 0),()=>function(t,e,n){const r=t.get(e);r&&r(),t.set(e,e(...n)||void 0)}(e,t,[null,this._rootElement]))}registerCommand(e,n,r){void 0===r&&t(35);const o=this._commands;o.has(e)||o.set(e,[new Set,new Set,new Set,new Set,new Set]);const i=o.get(e);void 0===i&&t(36,String(e));const s=i[r];return s.add(n),()=>{s.delete(n),i.every(t=>0===t.size)&&o.delete(e)}}registerMutationListener(t,e,n){const r=this.resolveRegisteredNodeAfterReplacements(this.getRegisteredNode(t)).klass,o=this._listeners.mutation;let i=o.get(e);void 0===i&&(i=new Set,o.set(e,i)),i.add(r);const s=n&&n.skipInitialization;return void 0!==s&&s||this.initializeMutationListener(e,r),()=>{i.delete(r),0===i.size&&o.delete(e)}}getRegisteredNode(e){const n=this._nodes.get(e.getType());return void 0===n&&t(37,e.name),n}resolveRegisteredNodeAfterReplacements(t){for(;t.replaceWithKlass;)t=this.getRegisteredNode(t.replaceWithKlass);return t}initializeMutationListener(t,e){const n=this._editorState,r=os(n).get(e.getType());if(!r)return;const o=new Map;for(const t of r.keys())o.set(t,"created");o.size>0&&t(o,{dirtyLeaves:new Set,prevEditorState:n,updateTags:new Set(["registerMutationListener"])})}registerNodeTransformToKlass(t,e){const n=this.getRegisteredNode(t);return n.transforms.add(e),n}registerNodeTransform(t,e){const n=this.registerNodeTransformToKlass(t,e),r=[n],o=n.replaceWithKlass;if(null!=o){const t=this.registerNodeTransformToKlass(o,e);r.push(t)}return function(t,e){const n=os(t.getEditorState()),r=[];for(const t of e){const e=n.get(t);e&&r.push(e)}if(0===r.length)return;t.update(()=>{for(const t of r)for(const e of t.keys()){const t=ei(e);t&&t.markDirty()}},null===t._pendingEditorState?{tag:En}:void 0)}(this,r.map(t=>t.klass.getType())),()=>{r.forEach(t=>t.transforms.delete(e))}}hasNode(t){return this._nodes.has(t.getType())}hasNodes(t){return t.every(this.hasNode.bind(this))}dispatchCommand(t,e){return Ai(this,t,e)}getDecorators(){return this._decorators}getRootElement(){return this._rootElement}getKey(){return this._key}setRootElement(t){const e=this._rootElement;if(t!==e){const n=ki(this._config.theme,"root"),r=this._pendingEditorState||this._editorState;if(this._rootElement=t,Oo(this,e,t,r),null!==e&&(this._config.disableEvents||Sn(e),null!=n&&e.classList.remove(...n)),null!==t){const e=Ri(t),r=t.style;r.userSelect="text",r.whiteSpace="pre-wrap",r.wordBreak="break-word",t.setAttribute("data-lexical-editor","true"),this._window=e,this._dirtyType=2,H(this),this._updateTags.add(En),no(this),this._config.disableEvents||function(t,e){const n=t.ownerDocument;je.set(t,n);const r=He.get(n)??0;r<1&&n.addEventListener("selectionchange",yn),He.set(n,r+1),t.__lexicalEditor=e;const o=_n(t);for(let n=0;n<We.length;n++){const[r,i]=We[n],s="function"==typeof i?t=>{xn(t)||(mn(t),(e.isEditable()||"click"===r)&&i(t,e))}:t=>{if(xn(t))return;mn(t);const n=e.isEditable();switch(r){case"cut":return n&&Ai(e,we,t);case"copy":return Ai(e,Ae,t);case"paste":return n&&Ai(e,ne,t);case"dragstart":return n&&Ai(e,Oe,t);case"dragover":return n&&Ai(e,Me,t);case"dragend":return n&&Ai(e,be,t);case"focus":return n&&Ai(e,Re,t);case"blur":return n&&Ai(e,Ke,t);case"drop":return n&&Ai(e,ke,t)}};t.addEventListener(r,s),o.push(()=>{t.removeEventListener(r,s)})}}(t,this),null!=n&&t.classList.add(...n)}else this._window=null,this._updateTags.add(En),no(this);ro("root",this,!1,t,e)}}getElementByKey(t){return this._keyToDOMMap.get(t)||null}getEditorState(){return this._editorState}setEditorState(e,n){e.isEmpty()&&t(38);let r=e;r._readOnly&&(r=yo(e),r._selection=e._selection?e._selection.clone():null),j(this);const o=this._pendingEditorState,i=this._updateTags,s=void 0!==n?n.tag:null;null===o||o.isEmpty()||(null!=s&&i.add(s),no(this)),this._pendingEditorState=r,this._dirtyType=2,this._dirtyElements.set("root",!1),this._compositionKey=null,null!=s&&i.add(s),this._updating||no(this)}parseEditorState(t,e){return function(t,e,n){const r=mo(),o=Kr,i=zr,s=Br,l=e._dirtyElements,a=e._dirtyLeaves,c=e._cloneNotNeeded,u=e._dirtyType;e._dirtyElements=new Map,e._dirtyLeaves=new Set,e._cloneNotNeeded=new Set,e._dirtyType=0,Kr=r,zr=!1,Br=e,Po(null);try{const o=e._nodes;to(t.root,o),n&&n(),r._readOnly=!0}catch(t){t instanceof Error&&e._onError(t)}finally{e._dirtyElements=l,e._dirtyLeaves=a,e._cloneNotNeeded=c,e._dirtyType=u,Kr=o,zr=i,Br=s}return r}("string"==typeof t?JSON.parse(t):t,this,e)}read(t){return no(this),this.getEditorState().read(t,{editor:this})}update(t,e){!function(t,e,n){t._updating?t._updates.push([e,n]):io(t,e,n)}(this,t,e)}focus(t,e={}){const n=this._rootElement;null!==n&&(n.setAttribute("autocapitalize","off"),so(this,()=>{const r=Er(),o=li();null!==r?r.dirty||ci(r.clone()):0!==o.getChildrenSize()&&("rootStart"===e.defaultSelection?o.selectStart():o.selectEnd()),Ii("focus"),Fi(()=>{n.removeAttribute("autocapitalize"),t&&t()})}),null===this._pendingEditorState&&n.removeAttribute("autocapitalize"))}blur(){const t=this._rootElement;null!==t&&t.blur();const e=Hi(this._window);null!==e&&e.removeAllRanges()}isEditable(){return this._editable}setEditable(t){this._editable!==t&&(this._editable=t,ro("editable",this,!0,t))}toJSON(){return{editorState:this._editorState.toJSON()}}}wo.version="0.42.0+prod.cjs";let Do=null;function Po(t){Do=t}let Io=1;function Fo(e,n){const r=Lo(e,n);return void 0===r&&t(30,n),r}function Lo(t,e){return t._nodes.get(e)}const Ro="function"==typeof queueMicrotask?queueMicrotask:t=>{Promise.resolve().then(t)};function Ko(t){return go(oi(t))}function Bo(t){const e=document.activeElement;if(!Gi(e))return!1;const n=e.nodeName;return go(oi(t))&&("INPUT"===n||"TEXTAREA"===n||"true"===e.contentEditable&&null==Uo(e))}function zo(t,e,n){const r=t.getRootElement();try{return null!==r&&r.contains(e)&&r.contains(n)&&null!==e&&!Bo(e)&&$o(e)===t}catch(t){return!1}}function Wo(t){return t instanceof wo}function $o(t){let e=t;for(;null!=e;){const t=Uo(e);if(Wo(t))return t;e=Di(e)}return null}function Uo(t){return t?t.__lexicalEditor:null}function Jo(t){return or(t)||t.isToken()}function Yo(t){return Jo(t)||t.isSegmented()}function jo(t){return qi(t)&&3===t.nodeType}function Ho(t){return qi(t)&&9===t.nodeType}function Vo(t){let e=t;for(;null!=e;){if(jo(e))return e;e=e.firstChild}return null}function Go(t,e,n){const r=A[e];if(null!==n&&(t&r)===(n&r))return t;let o=t^r;return"subscript"===e?o&=~A.superscript:"superscript"===e?o&=~A.subscript:"lowercase"===e?(o&=~A.uppercase,o&=~A.capitalize):"uppercase"===e?(o&=~A.lowercase,o&=~A.capitalize):"capitalize"===e&&(o&=~A.lowercase,o&=~A.uppercase),o}function qo(t,e){const n=function(){const t=Do;return Do=null,t}();if(null!=(e=e||n&&n.__key))return void(t.__key=e);Yr(),jr();const r=Vr(),o=Hr(),i=""+Io++;o._nodeMap.set(i,t),uo(t)?r._dirtyElements.set(i,!0):r._dirtyLeaves.add(i),r._cloneNotNeeded.add(i),r._dirtyType=1,t.__key=i}function Xo(t){const e=t.getParent();if(null!==e){const n=t.getWritable(),r=e.getWritable(),o=t.getPreviousSibling(),i=t.getNextSibling(),s=null!==i?i.__key:null,l=null!==o?o.__key:null,a=null!==o?o.getWritable():null,c=null!==i?i.getWritable():null;null===o&&(r.__first=s),null===i&&(r.__last=l),null!==a&&(a.__next=s),null!==c&&(c.__prev=l),n.__prev=null,n.__next=null,n.__parent=null,r.__size--}}function Qo(e){jr(),vn(e)&&t(323,e.__key,e.__type);const n=e.getLatest(),r=n.__parent,o=Hr(),i=Vr(),s=o._nodeMap,l=i._dirtyElements;null!==r&&function(t,e,n){let r=t;for(;null!==r;){if(n.has(r))return;const t=e.get(r);if(void 0===t)break;n.set(r,!1),r=t.__parent}}(r,s,l);const a=n.__key;i._dirtyType=1,uo(e)?l.set(a,!0):i._dirtyLeaves.add(a)}function Zo(t){Yr();const e=Vr(),n=e._compositionKey;if(t!==n){if(e._compositionKey=t,null!==n){const t=ei(n);null!==t&&t.getWritable()}if(null!==t){const e=ei(t);null!==e&&e.getWritable()}}}function ti(){if(Jr())return null;return Vr()._compositionKey}function ei(t,e){const n=(e||Hr())._nodeMap.get(t);return void 0===n?null:n}function ni(t,e){const n=ri(t,Vr());return void 0!==n?ei(n,e):null}function ri(t,e){return t[`__lexicalKey_${e._key}`]}function oi(t,e){let n=t;for(;null!=n;){const t=ni(n,e);if(null!==t)return t;n=Di(n)}return null}function ii(t){const e=t._decorators,n=Object.assign({},e);return t._pendingDecorators=n,n}function si(t){return t.read(()=>li().getTextContent())}function li(){return ai(Hr())}function ai(t){return t._nodeMap.get("root")}function ci(t){Yr();const e=Hr();null!==t&&(t.dirty=!0,t.setCachedNodes(null)),e._selection=t}function ui(t){const e=Vr(),n=function(t,e){let n=t;for(;null!=n;){const t=ri(n,e);if(void 0!==t)return t;n=Di(n)}return null}(t,e);if(null===n){return t===e.getRootElement()?ei("root"):null}return ei(n)}function fi(t){return/[\uD800-\uDBFF][\uDC00-\uDFFF]/g.test(t)}function di(t){const e=[];for(let n=t;null!==n;n=n._updating?null:n._parentEditor)e.push(n);return e}function hi(){return Math.random().toString(36).replace(/[^a-z]+/g,"").substring(0,5)}function gi(t){return jo(t)?t.nodeValue:null}function _i(t,e,n){const r=Hi(Ki(e));if(null===r)return;const o=r.anchorNode;let{anchorOffset:i,focusOffset:s}=r;if(null!==o){let e=gi(o);const r=oi(o);if(null!==e&&tr(r)){if((e===T||e===k)&&n){const t=n.length;e=n,i=t,s=t}null!==e&&pi(r,e,i,s,t)}}}function pi(t,e,n,r,o){let i=t;if(i.isAttached()&&(o||!i.isDirty())){const s=i.isComposing();let c=e;if((s||o)&&(e.endsWith(T)&&(c=e.slice(0,-T.length)),o)){const t=k;let e;for(;-1!==(e=c.indexOf(t));)c=c.slice(0,e)+c.slice(e+t.length),null!==n&&n>e&&(n=Math.max(e,n-t.length)),null!==r&&r>e&&(r=Math.max(e,r-t.length))}const u=i.getTextContent();if(o||c!==u){if(""===c){if(Zo(null),l||a||d)i.remove();else{const t=Vr();setTimeout(()=>{t.update(()=>{i.isAttached()&&i.remove()})},20)}return}const e=i.getParent(),o=Or(),u=i.getTextContentSize(),f=ti(),h=i.getKey();if(i.isToken()||null!==f&&h===f&&!s||ur(o)&&(null!==e&&!e.canInsertTextBefore()&&0===o.anchor.offset||o.anchor.key===t.__key&&0===o.anchor.offset&&!i.canInsertTextBefore()&&!s||o.focus.key===t.__key&&o.focus.offset===u&&!i.canInsertTextAfter()&&!s))return void i.markDirty();const g=Er();if(!ur(g)||null===n||null===r)return void yi(i,c,g);if(g.setTextNodeRange(i,n,i,r),i.isSegmented()){const t=Zn(i.getTextContent());i.replace(t),i=t}yi(i,c,g)}}}function yi(t,e,n){if(t.setTextContent(e),ur(n)){const e=t.getKey();for(const r of["anchor","focus"]){const o=n[r];"text"===o.type&&o.key===e&&(o.offset=Os(t,o.offset,"clamp"))}}}function mi(t,e,n){const r=e[n]||!1;return"any"===r||r===t[n]}function xi(t,e){return mi(t,e,"altKey")&&mi(t,e,"ctrlKey")&&mi(t,e,"shiftKey")&&mi(t,e,"metaKey")}function Ci(t,e,n){if(!xi(t,n))return!1;if(t.key.toLowerCase()===e.toLowerCase())return!0;if(e.length>1)return!1;if(1===t.key.length&&t.key.charCodeAt(0)<=127)return!1;const r="Key"+e.toUpperCase();return t.code===r}const Si={ctrlKey:!o,metaKey:o},Ni={altKey:o,ctrlKey:!o};function Ti(t){return"Backspace"===t.key}function vi(t){return Ci(t,"a",Si)}function ki(t,e){void 0===t.__lexicalClassNameCache&&(t.__lexicalClassNameCache={});const n=t.__lexicalClassNameCache,r=n[e];if(void 0!==r)return r;const o=t[e];if("string"==typeof o){const t=il(o);return n[e]=t,t}return o}function Ei(e,n,r,o,i){if(0===r.size)return;const s=o.__type,l=o.__key,a=n.get(s);void 0===a&&t(33,s);const c=a.klass;let u=e.get(c);void 0===u&&(u=new Map,e.set(c,u));const f=u.get(l),d="destroyed"===f&&"created"===i;(void 0===f||d)&&u.set(l,d?"updated":i)}function Oi(t,e,n){const r=t.getParent();let o=n,i=t;return null!==r&&(e&&0===n?(o=i.getIndexWithinParent(),i=r):e||n!==i.getChildrenSize()||(o=i.getIndexWithinParent()+1,i=r)),i.getChildAtIndex(e?o-1:o)}function Mi(t,e){const n=t.offset;if("element"===t.type){return Oi(t.getNode(),e,n)}{const r=t.getNode();if(e&&0===n||!e&&n===r.getTextContentSize()){const t=e?r.getPreviousSibling():r.getNextSibling();return null===t?Oi(r.getParentOrThrow(),e,r.getIndexWithinParent()+(e?0:1)):t}}return null}function bi(t){const e=Ki(t).event,n=e&&e.inputType;return"insertFromPaste"===n||"insertFromPasteAsQuotation"===n}function Ai(t,e,n){return function(t,e,n){const r=di(t);for(let o=4;o>=0;o--)for(let i=0;i<r.length;i++){const s=r[i],l=s._commands.get(e);if(void 0!==l){const e=l[o];if(void 0!==e){const r=Array.from(e),o=r.length;let i=!1;if(so(s,()=>{for(let e=0;e<o;e++)if(r[e](n,t))return void(i=!0)}),i)return i}}}return!1}(t,e,n)}function wi(e,n){const r=e._keyToDOMMap.get(n);return void 0===r&&t(75,n),r}function Di(t){const e=t.assignedSlot||t.parentElement;return Xi(e)?e.host:e}function Pi(t){return Ho(t)?t:Gi(t)?t.ownerDocument:null}function Ii(t){Yr();Vr()._updateTags.add(t)}function Fi(t){Yr();Vr()._deferred.push(t)}function Li(t,e){let n=t.getParent();for(;null!==n;){if(n.is(e))return!0;n=n.getParent()}return!1}function Ri(t){const e=Pi(t);return e?e.defaultView:null}function Ki(e){const n=e._window;return null===n&&t(78),n}function Bi(t){let e=t.getParentOrThrow();for(;null!==e;){if(zi(e))return e;e=e.getParentOrThrow()}return e}function zi(t){return po(t)||uo(t)&&t.isShadowRoot()}function Wi(t,e=!1){const n=t.constructor.clone(t);return qo(n,null),n.afterCloneFrom(t),e||n.resetOnCopyNodeFrom(t),n}function $i(e){const n=Vr(),r=e.getType(),o=Lo(n,r);void 0===o&&t(200,e.constructor.name,r);const{replace:i,replaceWithKlass:s}=o;if(null!==i){const n=i(e),o=n.constructor;return null!==s?n instanceof s||t(201,s.name,s.getType(),o.name,o.getType(),e.constructor.name,r):n instanceof e.constructor&&o!==e.constructor||t(202,o.name,o.getType(),e.constructor.name,r),n.__key===e.__key&&t(203,e.constructor.name,r,o.name,o.getType()),n}return e}function Ui(e,n){!po(e.getParent())||uo(n)||go(n)||t(99)}function Ji(e){const n=ei(e);return null===n&&t(63,e),n}function Yi(t){return(go(t)||uo(t)&&!t.canBeEmpty())&&!t.isInline()}function ji(t,e,n){n.style.removeProperty("caret-color"),e._blockCursorElement=null;const r=t.parentElement;null!==r&&r.removeChild(t)}function Hi(t){return n?(t||window).getSelection():null}function Vi(t){const e=Ri(t);return e?e.getSelection():null}function Gi(t){return qi(t)&&1===t.nodeType}function qi(t){return"object"==typeof t&&null!==t&&"nodeType"in t&&"number"==typeof t.nodeType}function Xi(t){return qi(t)&&11===t.nodeType}function Qi(t){const e=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");return null!==t.nodeName.match(e)}function Zi(t){const e=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");return null!==t.nodeName.match(e)}function ts(t){if(go(t)&&!t.isInline())return!0;if(!uo(t)||zi(t))return!1;const e=t.getFirstChild(),n=null===e||Ln(e)||tr(e)||e.isInline();return!t.isInline()&&!1!==t.canBeEmpty()&&n}function es(){return Vr()}const ns=new WeakMap,rs=new Map;function os(e){if(!e._readOnly&&e.isEmpty())return rs;e._readOnly||t(192);let n=ns.get(e);return n||(n=function(t){const e=new Map;for(const[n,r]of t._nodeMap){const t=r.__type;let o=e.get(t);o||(o=new Map,e.set(t,o)),o.set(n,r)}return e}(e),ns.set(e,n)),n}function is(t){const e=t.constructor.clone(t);return e.afterCloneFrom(t),e}function ss(t,e){const n=parseInt(t.style.paddingInlineStart,10)||0,r=Math.round(n/40);e.setIndent(r)}function ls(t){return!0===t.__lexicalUnmanaged}function as(t,e){return function(t,e){return Object.prototype.hasOwnProperty.call(t,e)}(t,e)&&t[e]!==kn[e]}function cs(e){const n=L in e.prototype?e.prototype[L]():void 0,r=function(e){if(!(e===kn||e.prototype instanceof kn)){let n="<unknown>",r="<unknown>";try{n=e.getType()}catch(t){}try{wo.version&&(r=JSON.parse(wo.version))}catch(t){}t(290,e.name,n,r)}return e===ho||e===co||e===kn}(e),o=!r&&as(e,"getType")?e.getType():void 0;let i,s=o;if(n)if(o)i=n[o];else for(const[t,e]of Object.entries(n))s=t,i=e;if(!r&&s&&(as(e,"getType")||(e.getType=()=>s),as(e,"clone")||(e.clone=t=>(Po(t),new e)),as(e,"importJSON")||(e.importJSON=i&&i.$importJSON||(t=>(new e).updateFromJSON(t))),!as(e,"importDOM")&&i)){const{importDOM:t}=i;t&&(e.importDOM=()=>t)}return{ownNodeConfig:i,ownNodeType:s}}const us=(t,e)=>{let n=t;for(;null!=n&&!po(n);){if(e(n))return n;n=n.getParent()}return null},fs={next:"previous",previous:"next"};class ds{origin;constructor(t){this.origin=t}[Symbol.iterator](){return Rs({hasNext:Cs,initial:this.getAdjacentCaret(),map:t=>t,step:t=>t.getAdjacentCaret()})}getAdjacentCaret(){return ks(this.getNodeAtCaret(),this.direction)}getSiblingCaret(){return ks(this.origin,this.direction)}remove(){const t=this.getNodeAtCaret();return t&&t.remove(),this}replaceOrInsert(t,e){const n=this.getNodeAtCaret();return t.is(this.origin)||t.is(n)||(null===n?this.insert(t):n.replace(t,e)),this}splice(e,n,r="next"){const o=r===this.direction?n:Array.from(n).reverse();let i=this;const s=this.getParentAtCaret(),l=new Map;for(let t=i.getAdjacentCaret();null!==t&&l.size<e;t=t.getAdjacentCaret()){const e=t.origin.getWritable();l.set(e.getKey(),e)}for(const e of o){if(l.size>0){const n=i.getNodeAtCaret();if(n)if(l.delete(n.getKey()),l.delete(e.getKey()),n.is(e)||i.origin.is(e));else{const t=e.getParent();t&&t.is(s)&&e.remove(),n.replace(e)}else null===n&&t(263,Array.from(l).join(" "))}else i.insert(e);i=ks(e,this.direction)}for(const t of l.values())t.remove();return this}}class hs extends ds{type="child";getLatest(){const t=this.origin.getLatest();return t===this.origin?this:bs(t,this.direction)}getParentCaret(t="root"){return ks(ps(this.getParentAtCaret(),t),this.direction)}getFlipped(){const t=_s(this.direction);return ks(this.getNodeAtCaret(),t)||bs(this.origin,t)}getParentAtCaret(){return this.origin}getChildCaret(){return this}isSameNodeCaret(t){return t instanceof hs&&this.direction===t.direction&&this.origin.is(t.origin)}isSamePointCaret(t){return this.isSameNodeCaret(t)}}const gs={root:po,shadowRoot:zi};function _s(t){return fs[t]}function ps(t,e="root"){return gs[e](t)?null:t}class ys extends ds{type="sibling";getLatest(){const t=this.origin.getLatest();return t===this.origin?this:ks(t,this.direction)}getSiblingCaret(){return this}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return uo(this.origin)?bs(this.origin,this.direction):null}getParentCaret(t="root"){return ks(ps(this.getParentAtCaret(),t),this.direction)}getFlipped(){const t=_s(this.direction);return ks(this.getNodeAtCaret(),t)||bs(this.origin.getParentOrThrow(),t)}isSamePointCaret(t){return t instanceof ys&&this.direction===t.direction&&this.origin.is(t.origin)}isSameNodeCaret(t){return(t instanceof ys||t instanceof ms)&&this.direction===t.direction&&this.origin.is(t.origin)}}class ms extends ds{type="text";offset;constructor(t,e){super(t),this.offset=e}getLatest(){const t=this.origin.getLatest();return t===this.origin?this:Es(t,this.direction,this.offset)}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return null}getParentCaret(t="root"){return ks(ps(this.getParentAtCaret(),t),this.direction)}getFlipped(){return Es(this.origin,_s(this.direction),this.offset)}isSamePointCaret(t){return t instanceof ms&&this.direction===t.direction&&this.origin.is(t.origin)&&this.offset===t.offset}isSameNodeCaret(t){return(t instanceof ys||t instanceof ms)&&this.direction===t.direction&&this.origin.is(t.origin)}getSiblingCaret(){return ks(this.origin,this.direction)}}function xs(t){return t instanceof ms}function Cs(t){return t instanceof ys}function Ss(t){return t instanceof hs}const Ns={next:class extends ms{direction="next";getNodeAtCaret(){return this.origin.getNextSibling()}insert(t){return this.origin.insertAfter(t),this}},previous:class extends ms{direction="previous";getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(t){return this.origin.insertBefore(t),this}}},Ts={next:class extends ys{direction="next";getNodeAtCaret(){return this.origin.getNextSibling()}insert(t){return this.origin.insertAfter(t),this}},previous:class extends ys{direction="previous";getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(t){return this.origin.insertBefore(t),this}}},vs={next:class extends hs{direction="next";getNodeAtCaret(){return this.origin.getFirstChild()}insert(t){return this.origin.splice(0,0,[t]),this}},previous:class extends hs{direction="previous";getNodeAtCaret(){return this.origin.getLastChild()}insert(t){return this.origin.splice(this.origin.getChildrenSize(),0,[t]),this}}};function ks(t,e){return t?new Ts[e](t):null}function Es(t,e,n){return t?new Ns[e](t,Os(t,n)):null}function Os(t,n,r="error"){const o=t.getTextContentSize();let i="next"===n?o:"previous"===n?0:n;return(i<0||i>o)&&("clamp"!==r&&e(284,String(n),String(o),t.getKey()),i=i<0?0:o),i}function Ms(t,e){return new Ps(t,e)}function bs(t,e){return uo(t)?new vs[e](t):null}function As(t){return t&&t.getChildCaret()||t}function ws(t){return t&&As(t.getAdjacentCaret())}class Ds{type="node-caret-range";direction;anchor;focus;constructor(t,e,n){this.anchor=t,this.focus=e,this.direction=n}getLatest(){const t=this.anchor.getLatest(),e=this.focus.getLatest();return t===this.anchor&&e===this.focus?this:new Ds(t,e,this.direction)}isCollapsed(){return this.anchor.isSamePointCaret(this.focus)}getTextSlices(){const t=t=>{const e=this[t].getLatest();return xs(e)?function(t,e){const{direction:n,origin:r}=t,o=Os(r,"focus"===e?_s(n):n);return Ms(t,o-t.offset)}(e,t):null},e=t("anchor"),n=t("focus");if(e&&n){const{caret:t}=e,{caret:r}=n;if(t.isSameNodeCaret(r))return[Ms(t,r.offset-t.offset),null]}return[e,n]}iterNodeCarets(t="root"){const e=xs(this.anchor)?this.anchor.getSiblingCaret():this.anchor.getLatest(),n=this.focus.getLatest(),r=xs(n),o=e=>e.isSameNodeCaret(n)?null:ws(e)||e.getParentCaret(t);return Rs({hasNext:t=>null!==t&&!(r&&n.isSameNodeCaret(t)),initial:e.isSameNodeCaret(n)?null:o(e),map:t=>t,step:o})}[Symbol.iterator](){return this.iterNodeCarets("root")}}class Ps{type="slice";caret;distance;constructor(t,e){this.caret=t,this.distance=e}getSliceIndices(){const{distance:t,caret:{offset:e}}=this,n=e+t;return n<e?[n,e]:[e,n]}getTextContent(){const[t,e]=this.getSliceIndices();return this.caret.origin.getTextContent().slice(t,e)}getTextContentSize(){return Math.abs(this.distance)}removeTextSlice(){const{caret:{origin:t,direction:e}}=this,[n,r]=this.getSliceIndices(),o=t.getTextContent();return Es(t.setTextContent(o.slice(0,n)+o.slice(r)),e,n)}}function Is(t){return Ls(t,ks(li(),t.direction))}function Fs(t){return Ls(t,t)}function Ls(e,n){return e.direction!==n.direction&&t(265),new Ds(e,n,e.direction)}function Rs(t){const{initial:e,hasNext:n,step:r,map:o}=t;let i=e;return{[Symbol.iterator](){return this},next(){if(!n(i))return{done:!0,value:void 0};const t={done:!1,value:o(i)};return i=r(i),t}}}function Ks(e,n){const r=$s(e.origin,n.origin);switch(null===r&&t(275,e.origin.getKey(),n.origin.getKey()),r.type){case"same":{const t="text"===e.type,r="text"===n.type;return t&&r?function(t,e){return Math.sign(t-e)}(e.offset,n.offset):e.type===n.type?0:t?-1:r?1:"child"===e.type?-1:1}case"ancestor":return"child"===e.type?-1:1;case"descendant":return"child"===n.type?1:-1;case"branch":return Bs(r)}}function Bs(t){const{a:e,b:n}=t,r=e.__key,o=n.__key;let i=e,s=n;for(;i&&s;i=i.getNextSibling(),s=s.getNextSibling()){if(i.__key===o)return-1;if(s.__key===r)return 1}return null===i?1:-1}function zs(t,e){return e.is(t)}function Ws(t){return uo(t)?[t.getLatest(),null]:[t.getParent(),t.getLatest()]}function $s(e,n){if(e.is(n))return{commonAncestor:e,type:"same"};const r=new Map;for(let[t,n]=Ws(e);t;n=t,t=t.getParent())r.set(t,n);for(let[o,i]=Ws(n);o;i=o,o=o.getParent()){const s=r.get(o);if(void 0!==s)return null===s?(zs(e,o)||t(276),{commonAncestor:o,type:"ancestor"}):null===i?(zs(n,o)||t(277),{commonAncestor:o,type:"descendant"}):((uo(s)||zs(e,s))&&(uo(i)||zs(n,i))&&o.is(s.getParent())&&o.is(i.getParent())||t(278),{a:s,b:i,commonAncestor:o,type:"branch"})}return null}function Us(e,n){const{type:r,key:o,offset:i}=e,s=Ji(e.key);return"text"===r?(tr(s)||t(266,s.getType(),o),Es(s,n,i)):(uo(s)||t(267,s.getType(),o),nl(s,e.offset,n))}function Js(e,n){const{origin:r,direction:o}=n,i="next"===o;xs(n)?e.set(r.getKey(),n.offset,"text"):Cs(n)?tr(r)?e.set(r.getKey(),Os(r,o),"text"):e.set(r.getParentOrThrow().getKey(),r.getIndexWithinParent()+(i?1:0),"element"):(Ss(n)&&uo(r)||t(268),e.set(r.getKey(),i?0:r.getChildrenSize(),"element"))}function Ys(t){const e=Er(),n=ur(e)?e:Tr();return js(n,t),ci(n),n}function js(t,e){Js(t.anchor,e.anchor),Js(t.focus,e.focus)}function Hs(t){const{anchor:e,focus:n}=t,r=Us(e,"next"),o=Us(n,"next"),i=Ks(r,o)<=0?"next":"previous";return Ls(tl(r,i),tl(o,i))}function Vs(t){const{direction:e,origin:n}=t,r=ks(n,_s(e)).getNodeAtCaret();return r?ks(r,e):bs(n.getParentOrThrow(),e)}function Gs(t,e="root"){const n=[t];for(let r=Ss(t)?t.getParentCaret(e):t.getSiblingCaret();null!==r;r=r.getParentCaret(e))n.push(Vs(r));return n}function qs(t){return!!t&&t.origin.isAttached()}function Xs(e,n="removeEmptySlices"){if(e.isCollapsed())return e;const r="root",o="next";let i=n;const s=el(e,o),l=Gs(s.anchor,r),a=Gs(s.focus.getFlipped(),r),c=new Set,u=[];for(const t of s.iterNodeCarets(r))if(Ss(t))c.add(t.origin.getKey());else if(Cs(t)){const{origin:e}=t;uo(e)&&!c.has(e.getKey())||u.push(e)}for(const t of u)t.remove();for(const t of s.getTextSlices()){if(!t)continue;const{origin:e}=t.caret,n=e.getTextContentSize(),r=Vs(ks(e,o)),s=e.getMode();if(Math.abs(t.distance)===n&&"removeEmptySlices"===i||"token"===s&&0!==t.distance)r.remove();else if(0!==t.distance){i="removeEmptySlices";let e=t.removeTextSlice();const n=t.caret.origin;if("segmented"===s){const t=e.origin,n=Zn(t.getTextContent()).setStyle(t.getStyle()).setFormat(t.getFormat());r.replaceOrInsert(n),e=Es(n,o,e.offset)}n.is(l[0].origin)&&(l[0]=e),n.is(a[0].origin)&&(a[0]=e.getFlipped())}}let f,d;for(const t of l)if(qs(t)){f=Qs(t);break}for(const t of a)if(qs(t)){d=Qs(t);break}const h=function(t,e,n){if(!t||!e)return null;const r=t.getParentAtCaret(),o=e.getParentAtCaret();if(!r||!o)return null;const i=r.getParents().reverse();i.push(r);const s=o.getParents().reverse();s.push(o);const l=Math.min(i.length,s.length);let a;for(a=0;a<l&&i[a]===s[a];a++);const c=(t,e)=>{let n;for(let r=a;r<t.length;r++){const o=t[r];if(zi(o))return;!n&&e(o)&&(n=o)}return n},u=c(i,ts),f=u&&c(s,t=>n.has(t.getKey())&&ts(t));return u&&f?[u,f]:null}(f,d,c);if(h){const[t,e]=h;bs(t,"previous").splice(0,e.getChildren());let n=e.getParent();for(e.remove(!0);n&&n.isEmpty();){const t=n;n=n.getParent(),t.remove(!0)}}const g=[f,d,...l,...a].find(qs);if(g){return Fs(tl(Qs(g),e.direction))}t(269,JSON.stringify(l.map(t=>t.origin.__key)))}function Qs(t){const e=function(t){let e=t;for(;Ss(e);){const t=ws(e);if(!Ss(t))break;e=t}return e}(t.getLatest()),{direction:n}=e;if(tr(e.origin))return xs(e)?e:Es(e.origin,n,n);const r=e.getAdjacentCaret();return Cs(r)&&tr(r.origin)?Es(r.origin,n,_s(n)):e}function Zs(t){return xs(t)&&t.offset!==Os(t.origin,t.direction)}function tl(t,e){return t.direction===e?t:t.getFlipped()}function el(t,e){return t.direction===e?t:Ls(tl(t.focus,e),tl(t.anchor,e))}function nl(t,e,n){let r=bs(t,"next");for(let t=0;t<e;t++){const t=r.getAdjacentCaret();if(null===t)break;r=t}return tl(r,n)}function rl(e){const{origin:n,offset:r,direction:o}=e;if(r===Os(n,o))return e.getSiblingCaret();if(r===Os(n,_s(o)))return Vs(e.getSiblingCaret());const[i]=n.splitText(r);return tr(i)||t(281),tl(ks(i,"next"),o)}function ol(t,e){return!0}function il(...t){const e=[];for(const n of t)if(n&&"string"==typeof n)for(const[t]of n.matchAll(/\S+/g))e.push(t);return e}function sl(...t){return()=>{for(let e=t.length-1;e>=0;e--)t[e]();t.length=0}}exports.$addUpdateTag=Ii,exports.$applyNodeReplacement=$i,exports.$caretFromPoint=Us,exports.$caretRangeFromSelection=Hs,exports.$cloneWithProperties=is,exports.$cloneWithPropertiesEphemeral=function(t){return(e=is(t))[Tn]=!0,e;var e},exports.$comparePointCaretNext=Ks,exports.$copyNode=Wi,exports.$create=function(t){const e=es();return Yr(),new(e.resolveRegisteredNodeAfterReplacements(e.getRegisteredNode(t)).klass)},exports.$createLineBreakNode=Fn,exports.$createNodeSelection=vr,exports.$createParagraphNode=vo,exports.$createPoint=sr,exports.$createRangeSelection=Tr,exports.$createRangeSelectionFromDom=function(t,e){return kr(null,t,e,null)},exports.$createTabNode=rr,exports.$createTextNode=Zn,exports.$extendCaretToRange=Is,exports.$findMatchingParent=us,exports.$getAdjacentChildCaret=ws,exports.$getAdjacentNode=Mi,exports.$getAdjacentSiblingOrParentSiblingCaret=function(t,e="root"){let n=0,r=t,o=ws(r);for(;null===o;){if(n--,o=r.getParentCaret(e),!o)return null;r=o,o=ws(r)}return o&&[o,n]},exports.$getCaretInDirection=tl,exports.$getCaretRange=Ls,exports.$getCaretRangeInDirection=el,exports.$getCharacterOffsets=gr,exports.$getChildCaret=bs,exports.$getChildCaretAtIndex=nl,exports.$getChildCaretOrSelf=As,exports.$getCollapsedCaretRange=Fs,exports.$getCommonAncestor=$s,exports.$getCommonAncestorResultBranchOrder=Bs,exports.$getEditor=es,exports.$getNearestNodeFromDOMNode=oi,exports.$getNearestRootOrShadowRoot=Bi,exports.$getNodeByKey=ei,exports.$getNodeByKeyOrThrow=Ji,exports.$getNodeFromDOMNode=ni,exports.$getPreviousSelection=Or,exports.$getRoot=li,exports.$getSelection=Er,exports.$getSiblingCaret=ks,exports.$getState=G,exports.$getStateChange=function(t,e,n){const r=G(t,n,"direct"),o=G(e,n,"direct");return n.isEqual(r,o)?null:[r,o]},exports.$getTextContent=function(){const t=Er();return null===t?"":t.getTextContent()},exports.$getTextNodeOffset=Os,exports.$getTextPointCaret=Es,exports.$getTextPointCaretSlice=Ms,exports.$getWritableNodeState=Q,exports.$hasAncestor=Li,exports.$hasUpdateTag=function(t){return Vr()._updateTags.has(t)},exports.$insertNodes=function(t){let e=Er()||Or();null===e&&(e=li().selectEnd()),e.insertNodes(t)},exports.$isBlockElementNode=function(t){return uo(t)&&!t.isInline()},exports.$isChildCaret=Ss,exports.$isDecoratorNode=go,exports.$isEditorState=function(t){return t instanceof Co},exports.$isElementNode=uo,exports.$isExtendableTextPointCaret=Zs,exports.$isInlineElementOrDecoratorNode=function(t){return uo(t)&&t.isInline()||go(t)&&t.isInline()},exports.$isLeafNode=function(t){return tr(t)||Ln(t)||go(t)},exports.$isLineBreakNode=Ln,exports.$isNodeCaret=function(t){return t instanceof ds},exports.$isNodeSelection=dr,exports.$isParagraphNode=ko,exports.$isRangeSelection=ur,exports.$isRootNode=po,exports.$isRootOrShadowRoot=zi,exports.$isSiblingCaret=Cs,exports.$isTabNode=or,exports.$isTextNode=tr,exports.$isTextPointCaret=xs,exports.$isTextPointCaretSlice=function(t){return t instanceof Ps},exports.$isTokenOrSegmented=Yo,exports.$isTokenOrTab=Jo,exports.$nodesOfType=function(t){const e=t.getType(),n=Hr();if(n._readOnly){const t=os(n).get(e);return t?Array.from(t.values()):[]}const r=n._nodeMap,o=[];for(const[,n]of r)n instanceof t&&n.__type===e&&n.isAttached()&&o.push(n);return o},exports.$normalizeCaret=Qs,exports.$normalizeSelection__EXPERIMENTAL=at,exports.$onUpdate=Fi,exports.$parseSerializedNode=function(t){return to(t,Vr()._nodes)},exports.$removeTextFromCaretRange=Xs,exports.$rewindSiblingCaret=Vs,exports.$selectAll=function(t){const e=li();if(ur(t)){const e=t.anchor,n=t.focus,r=e.getNode().getTopLevelElementOrThrow().getParentOrThrow();return e.set(r.getKey(),0,"element"),n.set(r.getKey(),r.getChildrenSize(),"element"),at(t),t}{const t=e.select(0,e.getChildrenSize());return ci(at(t)),t}},exports.$setCompositionKey=Zo,exports.$setPointFromCaret=Js,exports.$setSelection=ci,exports.$setSelectionFromCaretRange=Ys,exports.$setState=function(t,e,n){let r;if(Yr(),"function"==typeof n){const o=t.getLatest(),i=G(o,e);if(r=n(i),e.isEqual(i,r))return o}else r=n;const o=t.getWritable();return Q(o).updateFromKnown(e,r),o},exports.$splitAtPointCaretNext=function(t,{$copyElementNode:e=Wi,$splitTextPointCaretNext:n=rl,rootMode:r="shadowRoot",$shouldSplit:o=ol}={}){if(xs(t))return n(t);const i=t.getParentCaret(r);if(i){const{origin:n}=i;if(Ss(t)&&(!n.canBeEmpty()||!o(n,"first")))return Vs(i);const r=function(t){const e=[];for(let n=t.getAdjacentCaret();n;n=n.getAdjacentCaret())e.push(n.origin);return e}(t);(r.length>0||n.canBeEmpty()&&o(n,"last"))&&i.insert(e(n).splice(0,0,r))}return i},exports.$splitNode=function(e,n){let r=e.getChildAtIndex(n);null==r&&(r=e),zi(e)&&t(102);const o=e=>{const n=e.getParentOrThrow(),i=zi(n),s=e!==r||i?Wi(e):e;if(i)return uo(e)&&uo(s)||t(133),e.insertAfter(s),[e,s,s];{const[t,r,i]=o(n),l=e.getNextSiblings();return i.append(s,...l),[t,r,s]}},[i,s]=o(r);return[i,s]},exports.$updateRangeSelectionFromCaretRange=js,exports.ArtificialNode__DO_NOT_USE=So,exports.BEFORE_INPUT_COMMAND=Vt,exports.BLUR_COMMAND=Ke,exports.CAN_REDO_COMMAND=Fe,exports.CAN_UNDO_COMMAND=Le,exports.CLEAR_EDITOR_COMMAND=Pe,exports.CLEAR_HISTORY_COMMAND=Ie,exports.CLICK_COMMAND=Ht,exports.COLLABORATION_TAG=On,exports.COMMAND_PRIORITY_CRITICAL=4,exports.COMMAND_PRIORITY_EDITOR=Eo,exports.COMMAND_PRIORITY_HIGH=3,exports.COMMAND_PRIORITY_LOW=1,exports.COMMAND_PRIORITY_NORMAL=2,exports.COMPOSITION_END_COMMAND=Xt,exports.COMPOSITION_END_TAG=Dn,exports.COMPOSITION_START_COMMAND=qt,exports.COMPOSITION_START_TAG=wn,exports.CONTROLLED_TEXT_INSERTION_COMMAND=ee,exports.COPY_COMMAND=Ae,exports.CUT_COMMAND=we,exports.DELETE_CHARACTER_COMMAND=Qt,exports.DELETE_LINE_COMMAND=ie,exports.DELETE_WORD_COMMAND=oe,exports.DRAGEND_COMMAND=be,exports.DRAGOVER_COMMAND=Me,exports.DRAGSTART_COMMAND=Oe,exports.DROP_COMMAND=ke,exports.DecoratorNode=ho,exports.ElementNode=co,exports.FOCUS_COMMAND=Re,exports.FORMAT_ELEMENT_COMMAND=Ee,exports.FORMAT_TEXT_COMMAND=se,exports.HISTORIC_TAG="historic",exports.HISTORY_MERGE_TAG=En,exports.HISTORY_PUSH_TAG="history-push",exports.INDENT_CONTENT_COMMAND=Te,exports.INPUT_COMMAND=Gt,exports.INSERT_LINE_BREAK_COMMAND=Zt,exports.INSERT_PARAGRAPH_COMMAND=te,exports.INSERT_TAB_COMMAND=Ne,exports.INTERNAL_$isBlock=ts,exports.IS_ALL_FORMATTING=2047,exports.IS_BOLD=1,exports.IS_CODE=16,exports.IS_HIGHLIGHT=p,exports.IS_ITALIC=2,exports.IS_STRIKETHROUGH=4,exports.IS_SUBSCRIPT=32,exports.IS_SUPERSCRIPT=64,exports.IS_UNDERLINE=8,exports.KEY_ARROW_DOWN_COMMAND=_e,exports.KEY_ARROW_LEFT_COMMAND=de,exports.KEY_ARROW_RIGHT_COMMAND=ue,exports.KEY_ARROW_UP_COMMAND=ge,exports.KEY_BACKSPACE_COMMAND=me,exports.KEY_DELETE_COMMAND=Ce,exports.KEY_DOWN_COMMAND=ce,exports.KEY_ENTER_COMMAND=pe,exports.KEY_ESCAPE_COMMAND=xe,exports.KEY_MODIFIER_COMMAND=Be,exports.KEY_SPACE_COMMAND=ye,exports.KEY_TAB_COMMAND=Se,exports.LineBreakNode=Pn,exports.MOVE_TO_END=fe,exports.MOVE_TO_START=he,exports.NODE_STATE_KEY="$",exports.OUTDENT_CONTENT_COMMAND=ve,exports.PASTE_COMMAND=ne,exports.PASTE_TAG="paste",exports.ParagraphNode=No,exports.REDO_COMMAND=ae,exports.REMOVE_TEXT_COMMAND=re,exports.RootNode=_o,exports.SELECTION_CHANGE_COMMAND=Yt,exports.SELECTION_INSERT_CLIPBOARD_NODES_COMMAND=jt,exports.SELECT_ALL_COMMAND=De,exports.SKIP_COLLAB_TAG="skip-collab",exports.SKIP_DOM_SELECTION_TAG=bn,exports.SKIP_SCROLL_INTO_VIEW_TAG=Mn,exports.SKIP_SELECTION_FOCUS_TAG=An,exports.TEXT_TYPE_TO_FORMAT=A,exports.TabNode=nr,exports.TextNode=Jn,exports.UNDO_COMMAND=le,exports.addClassNamesToElement=function(t,...e){const n=il(...e);n.length>0&&t.classList.add(...n)},exports.buildImportMap=function(t){return t},exports.configExtension=function(...t){return t},exports.createCommand=Jt,exports.createEditor=function(t){const e=t||{},n=qr(),r=e.theme||{},o=void 0===t?n:e.parentEditor||null,i=e.disableEvents||!1,s=mo(),l=e.namespace||(null!==o?o._config.namespace:hi()),a=e.editorState,c=[_o,Jn,Pn,nr,No,So,...e.nodes||[]],{onError:u,html:f}=e,d=void 0===e.editable||e.editable;let h;if(void 0===t&&null!==n)h=n._nodes;else{h=new Map;for(let t=0;t<c.length;t++){let e=c[t],n=null,r=null;if("function"!=typeof e){const t=e;e=t.replace,n=t.with,r=t.withKlass||null}cs(e);const o=e.getType(),i=Mo(e);h.set(o,{exportDOM:f&&f.export?f.export.get(e):void 0,klass:e,replace:n,replaceWithKlass:r,sharedNodeState:q(c[t]),transforms:i})}}const g=new wo(s,o,h,{disableEvents:i,namespace:l,theme:r},u||console.error,function(t,e){const n=new Map,r=new Set,o=t=>{Object.keys(t).forEach(e=>{let r=n.get(e);void 0===r&&(r=[],n.set(e,r)),r.push(t[e])})};return t.forEach(t=>{const e=t.klass.importDOM;if(null==e||r.has(e))return;r.add(e);const n=e.call(t.klass);null!==n&&o(n)}),e&&o(e),n}(h,f?f.import:void 0),d,t);return void 0!==a&&(g._pendingEditorState=a,g._dirtyType=2),function(t){t.registerCommand(Vt,cn,Eo),t.registerCommand(Gt,un,Eo),t.registerCommand(qt,fn,Eo),t.registerCommand(Xt,dn,Eo),t.registerCommand(ce,gn,Eo)}(g),g},exports.createSharedNodeState=q,exports.createState=function(t,e){return new V(t,e)},exports.declarePeerDependency=function(t,e){return[t,e]},exports.defineExtension=function(t){return t},exports.flipDirection=_s,exports.getDOMOwnerDocument=Pi,exports.getDOMSelection=Hi,exports.getDOMSelectionFromTarget=Vi,exports.getDOMTextNode=Vo,exports.getEditorPropertyFromDOMNode=Uo,exports.getNearestEditorFromDOMNode=$o,exports.getRegisteredNode=Lo,exports.getRegisteredNodeOrThrow=Fo,exports.getStaticNodeConfig=cs,exports.getTextDirection=function(t){return M.test(t)?"rtl":b.test(t)?"ltr":null},exports.getTransformSetFromKlass=Mo,exports.isBlockDomNode=Zi,exports.isCurrentlyReadOnlyMode=Jr,exports.isDOMDocumentNode=Ho,exports.isDOMNode=qi,exports.isDOMTextNode=jo,exports.isDOMUnmanaged=ls,exports.isDocumentFragment=Xi,exports.isExactShortcutMatch=Ci,exports.isHTMLAnchorElement=function(t){return Gi(t)&&"A"===t.tagName},exports.isHTMLElement=Gi,exports.isInlineDomNode=Qi,exports.isLexicalEditor=Wo,exports.isModifierMatch=xi,exports.isSelectionCapturedInDecoratorInput=Bo,exports.isSelectionWithinEditor=zo,exports.makeStepwiseIterator=Rs,exports.mergeRegister=sl,exports.normalizeClassNames=il,exports.removeClassNamesFromElement=function(t,...e){const n=il(...e);n.length>0&&t.classList.remove(...n)},exports.removeFromParent=Xo,exports.resetRandomKey=function(){Io=1},exports.safeCast=function(t){return t},exports.setDOMUnmanaged=function(t){t.__lexicalUnmanaged=!0},exports.setNodeIndentFromDOM=ss,exports.shallowMergeConfig=function(t,e){if(!e||t===e)return t;for(const n in e)if(t[n]!==e[n])return{...t,...e};return t},exports.toggleTextFormatType=Go;
72
+ +"use strict";function t(t,...e){const n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",t);for(const t of e)r.append("v",t);throw n.search=r.toString(),Error(`Minified Lexical error #${t}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function e(t,...e){const n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",t);for(const t of e)r.append("v",t);n.search=r.toString(),console.warn(`Minified Lexical warning #${t}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}const n="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,r=n&&"documentMode"in document?document.documentMode:null,o=n&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),i=n&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),s=!(!n||!("InputEvent"in window)||r)&&"getTargetRanges"in new window.InputEvent("input"),l=n&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),a=n&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,c=n&&/Android/.test(navigator.userAgent),u=n&&/^(?=.*Chrome).*/i.test(navigator.userAgent),f=n&&c&&u,d=n&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&o&&!u,h=0,g=1,_=2,p=128,y=1,m=2,x=3,C=4,S=5,N=6,T=l||a||d?"\xa0":"\u200b",v="\n\n",k=i?"\xa0":T,E="\u0591-\u07ff\ufb1d-\ufdfd\ufe70-\ufefc",O="A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u02b8\u0300-\u0590\u0800-\u1fff\u200e\u2c00-\ufb1c\ufe00-\ufe6f\ufefd-\uffff",M=new RegExp("^[^"+O+"]*["+E+"]"),b=new RegExp("^[^"+E+"]*["+O+"]"),A={bold:1,capitalize:1024,code:16,highlight:p,italic:2,lowercase:256,strikethrough:4,subscript:32,superscript:64,underline:8,uppercase:512},w={directionless:1,unmergeable:2},D={center:2,end:6,justify:4,left:1,right:3,start:5},P={[m]:"center",[N]:"end",[C]:"justify",[y]:"left",[x]:"right",[S]:"start"},I={normal:0,segmented:2,token:1},F={[h]:"normal",[_]:"segmented",[g]:"token"},L="$config";function R(t,e,n,r,o,i){let s=t.getFirstChild();for(;null!==s;){const t=s.__key;s.__parent===e&&(uo(s)&&R(s,t,n,r,o,i),n.has(t)||i.delete(t),o.push(t)),s=s.getNextSibling()}}let K=!1,B=0;function z(t){B=t.timeStamp}function W(t,e,n){const r="BR"===t.nodeName,o=e.__lexicalLineBreak;return o&&(t===o||r&&t.previousSibling===o)||r&&void 0!==ri(t,n)}function $(t,e,n){const r=Hi(Ki(n));let o=null,i=null;null!==r&&r.anchorNode===t&&(o=r.anchorOffset,i=r.focusOffset);const s=t.nodeValue;null!==s&&pi(e,s,o,i,!1)}function U(t,e,n){if(ur(t)){const e=t.anchor.getNode();if(e.is(n)&&t.format!==e.getFormat())return!1}return jo(e)&&n.isAttached()}function J(t,e,n,r){for(let o=t;o&&!ls(o);o=Di(o)){const t=ri(o,e);if(void 0!==t){const e=ei(t,n);if(e)return go(e)||!Gi(o)?void 0:[o,e]}else if(o===r)return[r,ai(n)]}}function Y(t,e,n){K=!0;const r=performance.now()-B>100;try{so(t,()=>{const o=Er()||function(t){return t.getEditorState().read(()=>{const t=Er();return null!==t?t.clone():null})}(t),s=new Map,l=t.getRootElement(),a=t._editorState,c=t._blockCursorElement;let u=!1,f="";for(let n=0;n<e.length;n++){const d=e[n],h=d.type,g=d.target,_=J(g,t,a,l);if(!_)continue;const[p,y]=_;if("characterData"===h)r&&tr(y)&&jo(g)&&U(o,g,y)&&$(g,y,t);else if("childList"===h){u=!0;const e=d.addedNodes;for(let n=0;n<e.length;n++){const r=e[n],o=ni(r),s=r.parentNode;if(null!=s&&r!==c&&null===o&&!W(r,s,t)){if(i){const t=(Gi(r)?r.innerText:null)||r.nodeValue;t&&(f+=t)}s.removeChild(r)}}const n=d.removedNodes,r=n.length;if(r>0){let e=0;for(let o=0;o<r;o++){const r=n[o];(W(r,g,t)||c===r)&&(g.appendChild(r),e++)}r!==e&&s.set(p,y)}}}if(s.size>0)for(const[e,n]of s)n.reconcileObservedMutation(e,t);const d=n.takeRecords();if(d.length>0){for(let e=0;e<d.length;e++){const n=d[e],r=n.addedNodes,o=n.target;for(let e=0;e<r.length;e++){const n=r[e],i=n.parentNode;null==i||"BR"!==n.nodeName||W(n,o,t)||i.removeChild(n)}}n.takeRecords()}null!==o&&(u&&ci(o),i&&bi(t)&&o.insertRawText(f))})}finally{K=!1}}function j(t){const e=t._observer;if(null!==e){Y(t,e.takeRecords(),e)}}function H(t){!function(t){0===B&&Ki(t).addEventListener("textInput",z,!0)}(t),t._observer=new MutationObserver((e,n)=>{Y(t,e,n)})}class V{key;parse;unparse;isEqual;defaultValue;resetOnCopyNode;constructor(t,e){this.key=t,this.parse=e.parse.bind(e),this.unparse=(e.unparse||et).bind(e),this.isEqual=(e.isEqual||Object.is).bind(e),this.defaultValue=this.parse(void 0),this.resetOnCopyNode=e.resetOnCopyNode||!1}}function G(t,e,n="latest"){const r=("latest"===n?t.getLatest():t).__state;return r?r.getValue(e):e.defaultValue}function q(t){const e=new Map,n=new Set;for(let r="function"==typeof t?t:t.replace;r.prototype&&void 0!==r.prototype.getType;r=Object.getPrototypeOf(r)){const{ownNodeConfig:t}=cs(r);if(t&&t.stateConfigs)for(const r of t.stateConfigs){let t;"stateConfig"in r?(t=r.stateConfig,r.flat&&n.add(t.key)):t=r,e.set(t.key,t)}}return{flatKeys:n,sharedConfigMap:e}}class X{node;knownState;unknownState;sharedNodeState;size;constructor(t,e,n=void 0,r=new Map,o=void 0){this.node=t,this.sharedNodeState=e,this.unknownState=n,this.knownState=r;const{sharedConfigMap:i}=this.sharedNodeState,s=void 0!==o?o:function(t,e,n){let r=n.size;if(e)for(const o in e){const e=t.get(o);e&&n.has(e)||r++}return r}(i,n,r);this.size=s}getValue(t){const e=this.knownState.get(t);if(void 0!==e)return e;this.sharedNodeState.sharedConfigMap.set(t.key,t);let n=t.defaultValue;if(this.unknownState&&t.key in this.unknownState){const e=this.unknownState[t.key];void 0!==e&&(n=t.parse(e)),this.updateFromKnown(t,n)}return n}getInternalState(){return[this.unknownState,this.knownState]}toJSON(){const t={...this.unknownState},e={};for(const[e,n]of this.knownState)e.isEqual(n,e.defaultValue)?delete t[e.key]:t[e.key]=e.unparse(n);for(const n of this.sharedNodeState.flatKeys)n in t&&(e[n]=t[n],delete t[n]);return tt(t)&&(e.$=t),e}getWritable(t){if(this.node===t)return this;const{sharedNodeState:e,unknownState:n}=this,r=new Map(this.knownState);return new X(t,e,function(t,e,n){let r;if(n)for(const[o,i]of Object.entries(n)){const n=t.get(o);n?e.has(n)||e.set(n,n.parse(i)):(r=r||{},r[o]=i)}return r}(e.sharedConfigMap,r,n),r,this.size)}resetOnCopyNode(){for(const t of this.knownState.keys())t.resetOnCopyNode&&this.knownState.set(t,t.defaultValue);return this}updateFromKnown(t,e){const n=t.key;this.sharedNodeState.sharedConfigMap.set(n,t);const{knownState:r,unknownState:o}=this;r.has(t)||o&&n in o||(o&&(delete o[n],this.unknownState=tt(o)),this.size++),r.set(t,e)}updateFromUnknown(t,e){const n=this.sharedNodeState.sharedConfigMap.get(t);n?this.updateFromKnown(n,n.parse(e)):(this.unknownState=this.unknownState||{},t in this.unknownState||this.size++,this.unknownState[t]=e)}updateFromJSON(t){const{knownState:e}=this;for(const t of e.keys())e.set(t,t.defaultValue);if(this.size=e.size,this.unknownState=void 0,t)for(const[e,n]of Object.entries(t))this.updateFromUnknown(e,n)}}function Q(t){const e=t.getWritable(),n=e.__state?e.__state.getWritable(e):new X(e,Z(e));return e.__state=n,n}function Z(t){return t.__state?t.__state.sharedNodeState:Fo(es(),t.getType()).sharedNodeState}function tt(t){if(t)for(const e in t)return t}function et(t){return t}function nt(t,e,n){for(const[r,o]of e.knownState){if(t.has(r.key))continue;t.add(r.key);const e=n?n.getValue(r):r.defaultValue;if(e!==o&&!r.isEqual(e,o))return!0}return!1}function rt(t,e,n){const{unknownState:r}=e,o=n?n.unknownState:void 0;if(r)for(const[e,n]of Object.entries(r)){if(t.has(e))continue;t.add(e);if(n!==(o?o[e]:void 0))return!0}return!1}function ot(t,e){const n=t.__state;return n&&n.node===t?n.getWritable(e):n}function it(t,e){const n=t.__mode,r=t.__format,o=t.__style,i=e.__mode,s=e.__format,l=e.__style,a=t.__state,c=e.__state;return(null===n||n===i)&&(null===r||r===s)&&(null===o||o===l)&&(null===t.__state||a===c||function(t,e){if(t===e)return!0;if(t&&e&&t.size!==e.size)return!1;const n=new Set;return!(t&&nt(n,t,e)||e&&nt(n,e,t)||t&&rt(n,t,e)||e&&rt(n,e,t))}(a,c))}function st(t,e){const n=t.mergeWithSibling(e),r=Vr()._normalizedNodes;return r.add(t.__key),r.add(e.__key),n}function lt(t){let e,n,r=t;if(""!==r.__text||!r.isSimpleText()||r.isUnmergeable()){for(;null!==(e=r.getPreviousSibling())&&tr(e)&&e.isSimpleText()&&!e.isUnmergeable();){if(""!==e.__text){if(it(e,r)){r=st(e,r);break}break}e.remove()}for(;null!==(n=r.getNextSibling())&&tr(n)&&n.isSimpleText()&&!n.isUnmergeable();){if(""!==n.__text){if(it(r,n)){r=st(r,n);break}break}n.remove()}}else r.remove()}function at(t){return ct(t.anchor),ct(t.focus),t}function ct(t){for(;"element"===t.type;){const e=t.getNode(),n=t.offset;let r,o;if(n===e.getChildrenSize()?(r=e.getChildAtIndex(n-1),o=!0):(r=e.getChildAtIndex(n),o=!1),tr(r)){t.set(r.__key,o?r.getTextContentSize():0,"text",!0);break}if(!uo(r))break;t.set(r.__key,o?r.getChildrenSize():0,"element",!0)}}let ut,ft,dt,ht,gt,_t,pt,yt,mt,xt,Ct="",St=null,Nt=null,Tt=!1,vt=!1;function kt(t,e){const n=pt.get(t);if(null!==e){const n=Ut(t);n.parentNode===e&&e.removeChild(n)}if(yt.has(t)||ft._keyToDOMMap.delete(t),uo(n)){const t=Rt(n,pt);Et(t,0,t.length-1,null)}void 0!==n&&Ei(xt,dt,ht,n,"destroyed")}function Et(t,e,n,r){for(let o=e;o<=n;++o){const e=t[o];void 0!==e&&kt(e,r)}}function Ot(t,e){t.setProperty("text-align",e)}const Mt="40px";function bt(t,e){const n=ut.theme.indent;if("string"==typeof n){const r=t.classList.contains(n);e>0&&!r?t.classList.add(n):e<1&&r&&t.classList.remove(n)}if(0===e)return void t.style.setProperty("padding-inline-start","");const r=getComputedStyle(ft._rootElement||t).getPropertyValue("--lexical-indent-base-value")||Mt;t.style.setProperty("padding-inline-start",`calc(${e} * ${r})`)}function At(t,e){const n=t.style;0===e?Ot(n,""):1===e?Ot(n,"left"):2===e?Ot(n,"center"):3===e?Ot(n,"right"):4===e?Ot(n,"justify"):5===e?Ot(n,"start"):6===e&&Ot(n,"end")}function wt(t,e){const n=function(t){const e=t.__dir;if(null!==e)return e;if(po(t))return null;const n=t.getParentOrThrow();return po(n)&&null===n.__dir?"auto":null}(e);null!==n?t.dir=n:t.removeAttribute("dir")}function Dt(e,n){const r=yt.get(e);void 0===r&&t(60);const o=r.createDOM(ut,ft);if(function(t,e,n){const r=n._keyToDOMMap;(function(t,e,n){const r=`__lexicalKey_${e._key}`;t[r]=n})(e,n,t),r.set(t,e)}(e,o,ft),tr(r)?o.setAttribute("data-lexical-text","true"):go(r)&&o.setAttribute("data-lexical-decorator","true"),uo(r)){const t=r.__indent,e=r.__size;if(wt(o,r),0!==t&&bt(o,t),0!==e){const t=e-1;Pt(Rt(r,yt),r,0,t,r.getDOMSlot(o))}const n=r.__format;0!==n&&At(o,n),r.isInline()||Ft(null,r,o)}else{const t=r.getTextContent();if(go(r)){const t=r.decorate(ft,ut);null!==t&&Bt(e,t),o.contentEditable="false"}Ct+=t}return null!==n&&n.insertChild(o),Ei(xt,dt,ht,r,"created"),o}function Pt(t,e,n,r,o){const i=Ct;Ct="";let s=n;for(;s<=r;++s){Dt(t[s],o);const e=yt.get(t[s]);null!==e&&tr(e)?null===St&&(St=e.getFormat(),Nt=e.getStyle()):uo(e)&&s<r&&!e.isInline()&&(Ct+=v)}o.element.__lexicalTextContent=Ct,Ct=i+Ct}function It(t,e){if(t){const n=t.__last;if(n){const t=e.get(n);if(t)return Ln(t)?"line-break":go(t)&&t.isInline()?"decorator":null}return"empty"}return null}function Ft(t,e,n){const r=It(t,pt),o=It(e,yt);r!==o&&e.getDOMSlot(n).setManagedLineBreak(o)}function Lt(e,n,r){var o;St=null,Nt=null,function(e,n,r){const o=Ct,i=e.__size,s=n.__size;Ct="";const l=r.element;if(1===i&&1===s){const t=e.__first,r=n.__first;if(t===r)Kt(t,l);else{const e=Ut(t),n=Dt(r,null);try{l.replaceChild(n,e)}catch(o){if("object"==typeof o&&null!=o){const i=`${o.toString()} Parent: ${l.tagName}, new child: {tag: ${n.tagName} key: ${r}}, old child: {tag: ${e.tagName}, key: ${t}}.`;throw new Error(i)}throw o}kt(t,null)}const o=yt.get(r);tr(o)&&null===St&&(St=o.getFormat(),Nt=o.getStyle())}else{const o=Rt(e,pt),a=Rt(n,yt);if(o.length!==i&&t(227),a.length!==s&&t(228),0===i)0!==s&&Pt(a,0,0,s-1,r);else if(0===s){if(0!==i){const t=null==r.after&&null==r.before&&null==r.element.__lexicalLineBreak;Et(o,0,i-1,t?null:l),t&&(l.textContent="")}}else!function(t,e,n,r,o,i){const s=r-1,l=o-1;let a,c,u=i.getFirstChild(),f=0,d=0;for(;f<=s&&d<=l;){const t=e[f],r=n[d];if(t===r)u=zt(Kt(r,i.element)),f++,d++;else{if(void 0===c&&(c=Wt(n,d)),void 0===a)a=Wt(e,f);else if(!a.has(t)){f++;continue}if(!c.has(t)){u=zt(Ut(t)),kt(t,i.element),f++,a.delete(t);continue}if(a.has(r)){const t=wi(ft,r);t!==u&&i.withBefore(u).insertChild(t),u=zt(Kt(r,i.element)),f++,d++}else Dt(r,i.withBefore(u)),d++}const o=yt.get(r);null!==o&&tr(o)?null===St&&(St=o.getFormat(),Nt=o.getStyle()):uo(o)&&d<=l&&!o.isInline()&&(Ct+=v)}const h=f>s,g=d>l;if(h&&!g){const t=n[l+1],e=void 0===t?null:ft.getElementByKey(t);Pt(n,0,d,l,i.withBefore(e))}else g&&!h&&Et(e,f,s,i.element)}(0,o,a,i,s,r)}l.__lexicalTextContent=Ct,Ct=o+Ct}(e,n,n.getDOMSlot(r)),o=n,null==St||St===o.__textFormat||vt||o.setTextFormat(St),function(t){null==Nt||Nt===t.__textStyle||vt||t.setTextStyle(Nt)}(n)}function Rt(e,n){const r=[];let o=e.__first;for(;null!==o;){const e=n.get(o);void 0===e&&t(101),r.push(o),o=e.__next}return r}function Kt(e,n){const r=pt.get(e);let o=yt.get(e);void 0!==r&&void 0!==o||t(61);const i=Tt||_t.has(e)||gt.has(e),s=wi(ft,e);if(r===o&&!i){let t;if(uo(r)){const e=s.__lexicalTextContent;"string"==typeof e?t=e:(t=r.getTextContent(),s.__lexicalTextContent=t)}else t=r.getTextContent();return Ct+=t,s}if(r!==o&&i&&Ei(xt,dt,ht,o,"updated"),o.updateDOM(r,s,ut)){const r=Dt(e,null);return null===n&&t(62),n.replaceChild(r,s),kt(e,null),r}if(uo(r)){uo(o)||t(334,e);const n=o.__indent;(Tt||n!==r.__indent)&&bt(s,n);const l=o.__format;if((Tt||l!==r.__format)&&At(s,l),i)Lt(r,o,s),po(o)||o.isInline()||Ft(r,o,s);else{const t=s.__lexicalTextContent;let e;"string"==typeof t?e=t:(e=r.getTextContent(),s.__lexicalTextContent=e),Ct+=e}if((Tt||o.__dir!==r.__dir)&&(wt(s,o),po(o)&&!Tt))for(const t of o.getChildren())if(uo(t)){wt(wi(ft,t.getKey()),t)}}else{const t=o.getTextContent();if(go(o)){const t=o.decorate(ft,ut);null!==t&&Bt(e,t)}Ct+=t}if(!vt&&po(o)&&o.__cachedText!==Ct){const t=o.getWritable();t.__cachedText=Ct,o=t}return s}function Bt(t,e){let n=ft._pendingDecorators;const r=ft._decorators;if(null===n){if(r[t]===e)return;n=ii(ft)}n[t]=e}function zt(t){let e=t.nextSibling;return null!==e&&e===ft._blockCursorElement&&(e=e.nextSibling),e}function Wt(t,e){const n=new Set;for(let r=e;r<t.length;r++)n.add(t[r]);return n}function $t(t,e,n,r,o,i){Ct="",Tt=2===r,ft=n,ut=n._config,dt=n._nodes,ht=ft._listeners.mutation,gt=o,_t=i,pt=t._nodeMap,yt=e._nodeMap,vt=e._readOnly,mt=new Map(n._keyToDOMMap);const s=new Map;return xt=s,Kt("root",null),ft=void 0,dt=void 0,gt=void 0,_t=void 0,pt=void 0,yt=void 0,ut=void 0,mt=void 0,xt=void 0,s}function Ut(e){const n=mt.get(e);return void 0===n&&t(75,e),n}function Jt(t){return{type:t}}const Yt=Jt("SELECTION_CHANGE_COMMAND"),jt=Jt("SELECTION_INSERT_CLIPBOARD_NODES_COMMAND"),Ht=Jt("CLICK_COMMAND"),Vt=Jt("BEFORE_INPUT_COMMAND"),Gt=Jt("INPUT_COMMAND"),qt=Jt("COMPOSITION_START_COMMAND"),Xt=Jt("COMPOSITION_END_COMMAND"),Qt=Jt("DELETE_CHARACTER_COMMAND"),Zt=Jt("INSERT_LINE_BREAK_COMMAND"),te=Jt("INSERT_PARAGRAPH_COMMAND"),ee=Jt("CONTROLLED_TEXT_INSERTION_COMMAND"),ne=Jt("PASTE_COMMAND"),re=Jt("REMOVE_TEXT_COMMAND"),oe=Jt("DELETE_WORD_COMMAND"),ie=Jt("DELETE_LINE_COMMAND"),se=Jt("FORMAT_TEXT_COMMAND"),le=Jt("UNDO_COMMAND"),ae=Jt("REDO_COMMAND"),ce=Jt("KEYDOWN_COMMAND"),ue=Jt("KEY_ARROW_RIGHT_COMMAND"),fe=Jt("MOVE_TO_END"),de=Jt("KEY_ARROW_LEFT_COMMAND"),he=Jt("MOVE_TO_START"),ge=Jt("KEY_ARROW_UP_COMMAND"),_e=Jt("KEY_ARROW_DOWN_COMMAND"),pe=Jt("KEY_ENTER_COMMAND"),ye=Jt("KEY_SPACE_COMMAND"),me=Jt("KEY_BACKSPACE_COMMAND"),xe=Jt("KEY_ESCAPE_COMMAND"),Ce=Jt("KEY_DELETE_COMMAND"),Se=Jt("KEY_TAB_COMMAND"),Ne=Jt("INSERT_TAB_COMMAND"),Te=Jt("INDENT_CONTENT_COMMAND"),ve=Jt("OUTDENT_CONTENT_COMMAND"),ke=Jt("DROP_COMMAND"),Ee=Jt("FORMAT_ELEMENT_COMMAND"),Oe=Jt("DRAGSTART_COMMAND"),Me=Jt("DRAGOVER_COMMAND"),be=Jt("DRAGEND_COMMAND"),Ae=Jt("COPY_COMMAND"),we=Jt("CUT_COMMAND"),De=Jt("SELECT_ALL_COMMAND"),Pe=Jt("CLEAR_EDITOR_COMMAND"),Ie=Jt("CLEAR_HISTORY_COMMAND"),Fe=Jt("CAN_REDO_COMMAND"),Le=Jt("CAN_UNDO_COMMAND"),Re=Jt("FOCUS_COMMAND"),Ke=Jt("BLUR_COMMAND"),Be=Jt("KEY_MODIFIER_COMMAND"),ze=Object.freeze({}),We=[["keydown",function(t,e){if($e=t.timeStamp,Ue=t.key,e.isComposing())return;Ai(e,ce,t)}],["pointerdown",function(t,e){const n=t.target,r=t.pointerType;qi(n)&&"touch"!==r&&"pen"!==r&&0===t.button&&so(e,()=>{Ko(n)||(Ge=!0)})}],["compositionstart",function(t,e){Ai(e,qt,t)}],["compositionend",function(t,e){i?Xe=!0:a||!l&&!d?Ai(e,Xt,t):(Qe=!0,Ze=t.data)}],["input",function(t,e){t.stopPropagation(),so(e,()=>{e.dispatchCommand(Gt,t)},{event:t}),Ye=null}],["click",function(t,e){so(e,()=>{const n=Er(),r=Hi(Ki(e)),o=Or();if(r)if(ur(n)){const e=n.anchor,i=e.getNode();if("element"===e.type&&0===e.offset&&n.isCollapsed()&&!po(i)&&1===li().getChildrenSize()&&i.getTopLevelElementOrThrow().isEmpty()&&null!==o&&n.is(o))r.removeAllRanges(),n.dirty=!0;else if(3===t.detail&&!n.isCollapsed()){if(i!==n.focus.getNode()){const t=us(i,t=>uo(t)&&!t.isInline());uo(t)&&t.select(0)}}}else if("touch"===t.pointerType||"pen"===t.pointerType){const n=r.anchorNode;if(Gi(n)||jo(n)){ci(kr(o,r,e,t))}}Ai(e,Ht,t)})}],["cut",ze],["copy",ze],["dragstart",ze],["dragover",ze],["dragend",ze],["paste",ze],["focus",ze],["blur",ze],["drop",ze]];s&&We.push(["beforeinput",(t,e)=>function(t,e){const n=t.inputType;if("deleteCompositionText"===n||i&&bi(e))return;if("insertCompositionText"===n)return;Ai(e,Vt,t)}(t,e)]);let $e=0,Ue=null,Je=0,Ye=null;const je=new WeakMap,He=new WeakMap;let Ve=!1,Ge=!1,qe=!1,Xe=!1,Qe=!1,Ze="",tn=null,en=[0,"",0,"root",0];function nn(t,e,n,r,o){const i=t.anchor,l=t.focus,a=i.getNode(),c=Vr(),u=Hi(Ki(c)),f=null!==u?u.anchorNode:null,d=i.key,h=c.getElementByKey(d),g=n.length;return d!==l.key||!tr(a)||(!o&&(!s||Je<r+50)||a.isDirty()&&g<2||fi(n))&&i.offset!==l.offset&&!a.isComposing()||Yo(a)||a.isDirty()&&g>1||(o||!s)&&null!==h&&!a.isComposing()&&f!==Vo(h)||null!==u&&null!==e&&(!e.collapsed||e.startContainer!==u.anchorNode||e.startOffset!==u.anchorOffset)||!a.isComposing()&&(a.getFormat()!==t.format||a.getStyle()!==t.style)||function(t,e){if(e.isSegmented())return!0;if(!t.isCollapsed())return!1;const n=t.anchor.offset,r=e.getParentOrThrow(),o=Jo(e);return 0===n?!e.canInsertTextBefore()||!r.canInsertTextBefore()&&!e.isComposing()||o||function(t){const e=t.getPreviousSibling();return(tr(e)||uo(e)&&e.isInline())&&!e.canInsertTextAfter()}(e):n===e.getTextContentSize()&&(!e.canInsertTextAfter()||!r.canInsertTextAfter()&&!e.isComposing()||o)}(t,a)}function rn(t,e){return jo(t)&&null!==t.nodeValue&&0!==e&&e!==t.nodeValue.length}function on(e,n,r){const{anchorNode:o,anchorOffset:i,focusNode:s,focusOffset:l}=e;Ve&&(Ve=!1,rn(o,i)&&rn(s,l)&&!tn)||so(n,()=>{if(!r)return void ci(null);if(!zo(n,o,s))return;let a=Er();if(tn&&ur(a)&&a.isCollapsed()){const t=a.anchor,e=tn.anchor;(t.key===e.key&&t.offset===e.offset+1||1===t.offset&&e.getNode().is(t.getNode().getPreviousSibling()))&&(a=tn.clone(),ci(a))}if(tn=null,ur(a)){const r=a.anchor,o=r.getNode();if(a.isCollapsed()){"Range"===e.type&&e.anchorNode===e.focusNode&&(a.dirty=!0);const i=Ki(n).event,s=i?i.timeStamp:performance.now(),[l,c,u,f,d]=en,h=li(),g=!1===n.isComposing()&&""===h.getTextContent();if(s<d+200&&r.offset===u&&r.key===f)sn(a,l,c);else if("text"===r.type)tr(o)||t(141),ln(a,o);else if("element"===r.type&&!g){uo(o)||t(259);const e=r.getNode();e.isEmpty()?function(t,e){const n=e.getTextFormat(),r=e.getTextStyle();sn(t,n,r)}(a,e):sn(a,a.format,"")}}else{const t=r.key,e=a.focus.key,n=a.getNodes(),o=n.length,s=a.isBackward(),c=s?l:i,u=s?i:l,f=s?e:t,d=s?t:e;let h=2047,g=!1;for(let t=0;t<o;t++){const e=n[t],r=e.getTextContentSize();if(tr(e)&&0!==r&&!(0===t&&e.__key===f&&c===r||t===o-1&&e.__key===d&&0===u)&&(g=!0,h&=e.getFormat(),0===h))break}a.format=g?h:0}}Ai(n,Yt,void 0)})}function sn(t,e,n){t.format===e&&t.style===n||(t.format=e,t.style=n,t.dirty=!0)}function ln(t,e){sn(t,e.getFormat(),e.getStyle())}function an(t){if(!t.getTargetRanges)return null;const e=t.getTargetRanges();return 0===e.length?null:e[0]}function cn(e){const n=e.inputType,r=an(e),o=Vr(),i=Er();if("deleteContentBackward"===n){if(null===i){const t=Or();if(!ur(t))return!0;ci(t.clone())}if(ur(i)){const n=i.anchor.key===i.focus.key;if(s=e.timeStamp,"MediaLast"===Ue&&s<$e+30&&o.isComposing()&&n){if(Zo(null),$e=0,setTimeout(()=>{so(o,()=>{Zo(null)})},30),ur(i)){const e=i.anchor.getNode();e.markDirty(),tr(e)||t(142),ln(i,e)}}else{Zo(null),e.preventDefault();const t=i.anchor.getNode(),r=t.getTextContent(),s=t.canInsertTextAfter(),l=0===i.anchor.offset&&i.focus.offset===r.length;let a=f&&n&&!l&&s;if(a&&i.isCollapsed()&&(a=!go(Mi(i.anchor,!0))),!a){Ai(o,Qt,!0);const t=Er();f&&ur(t)&&t.isCollapsed()&&(tn=t,setTimeout(()=>tn=null))}}return!0}}var s;if(!ur(i))return!0;const l=e.data;null!==Ye&&_i(!1,o,Ye),i.dirty&&null===Ye||!i.isCollapsed()||po(i.anchor.getNode())||null===r||i.applyDOMRange(r),Ye=null;const c=i.anchor,u=i.focus,d=c.getNode(),h=u.getNode();if("insertText"===n||"insertTranspose"===n){if("\n"===l)e.preventDefault(),Ai(o,Zt,!1);else if(l===v)e.preventDefault(),Ai(o,te,void 0);else if(null==l&&e.dataTransfer){const t=e.dataTransfer.getData("text/plain");e.preventDefault(),i.insertRawText(t)}else null!=l&&nn(i,r,l,e.timeStamp,!0)?(e.preventDefault(),Ai(o,ee,l)):Ye=l;return Je=e.timeStamp,!0}switch(e.preventDefault(),n){case"insertFromYank":case"insertFromDrop":case"insertReplacementText":Ai(o,ee,e);break;case"insertFromComposition":Zo(null),Ai(o,ee,e);break;case"insertLineBreak":Zo(null),Ai(o,Zt,!1);break;case"insertParagraph":Zo(null),qe&&!a?(qe=!1,Ai(o,Zt,!1)):Ai(o,te,void 0);break;case"insertFromPaste":case"insertFromPasteAsQuotation":Ai(o,ne,e);break;case"deleteByComposition":(function(t,e){return t!==e||uo(t)||uo(e)||!Jo(t)||!Jo(e)})(d,h)&&Ai(o,re,e);break;case"deleteByDrag":case"deleteByCut":Ai(o,re,e);break;case"deleteContent":Ai(o,Qt,!1);break;case"deleteWordBackward":Ai(o,oe,!0);break;case"deleteWordForward":Ai(o,oe,!1);break;case"deleteHardLineBackward":case"deleteSoftLineBackward":Ai(o,ie,!0);break;case"deleteContentForward":case"deleteHardLineForward":case"deleteSoftLineForward":Ai(o,ie,!1);break;case"formatStrikeThrough":Ai(o,se,"strikethrough");break;case"formatBold":Ai(o,se,"bold");break;case"formatItalic":Ai(o,se,"italic");break;case"formatUnderline":Ai(o,se,"underline");break;case"historyUndo":Ai(o,le,void 0);break;case"historyRedo":Ai(o,ae,void 0)}return!0}function un(t){if(Gi(t.target)&&Ko(t.target))return!0;const e=Vr(),n=Er(),r=t.data,o=an(t);if(null!=r&&ur(n)&&nn(n,o,r,t.timeStamp,!1)){Xe&&(hn(e,r),Xe=!1);const o=n.anchor.getNode(),l=Hi(Ki(e));if(null===l)return!0;const a=n.isBackward(),c=a?n.anchor.offset:n.focus.offset,u=a?n.focus.offset:n.anchor.offset;s&&!n.isCollapsed()&&tr(o)&&null!==l.anchorNode&&o.getTextContent().slice(0,c)+r+o.getTextContent().slice(c+u)===gi(l.anchorNode)||Ai(e,ee,r);const d=r.length;i&&d>1&&"insertCompositionText"===t.inputType&&!e.isComposing()&&(n.anchor.offset-=d),f&&e.isComposing()&&($e=0,Zo(null))}else{_i(!1,e,null!==r?r:void 0),Xe&&(hn(e,r||void 0),Xe=!1)}return function(){Yr();const t=Vr();j(t)}(),!0}function fn(t){const e=Vr(),n=Er();if(ur(n)&&!e.isComposing()){const r=n.anchor,o=n.anchor.getNode();Zo(r.key),Ii(wn),(t.timeStamp<$e+30||"element"===r.type||!n.isCollapsed()||o.getFormat()!==n.format||tr(o)&&o.getStyle()!==n.style)&&Ai(e,ee,k)}return!0}function dn(t){return hn(Vr(),t.data),Ii(Dn),!0}function hn(t,e){const n=t._compositionKey;if(Zo(null),null!==n&&null!=e){if(""===e){const e=ei(n),r=Vo(t.getElementByKey(n));if(null!==r&&null!==r.nodeValue&&tr(e)){const n=Hi(Ki(t));let o=null,i=null;null!==n&&n.anchorNode===r&&(o=n.anchorOffset,i=n.focusOffset),pi(e,r.nodeValue,o,i,!0)}return}if("\n"===e[e.length-1]){const e=Er();if(ur(e)||dr(e)){if(ur(e)){const t=e.focus;e.anchor.set(t.key,t.offset,t.type)}return void Ai(t,pe,null)}}}_i(!0,t,e)}function gn(t){const e=Vr();if(null==t.key)return!0;if(Qe){if(Ti(t))return so(e,()=>{hn(e,Ze)}),Qe=!1,Ze="",!0;Qe=!1,Ze=""}if(function(t){return Ci(t,"ArrowRight",{shiftKey:"any"})}(t))Ai(e,ue,t);else if(function(t){return Ci(t,"ArrowRight",Si)}(t))Ai(e,fe,t);else if(function(t){return Ci(t,"ArrowLeft",{shiftKey:"any"})}(t))Ai(e,de,t);else if(function(t){return Ci(t,"ArrowLeft",Si)}(t))Ai(e,he,t);else if(function(t){return Ci(t,"ArrowUp",{altKey:"any",shiftKey:"any"})}(t))Ai(e,ge,t);else if(function(t){return Ci(t,"ArrowDown",{altKey:"any",shiftKey:"any"})}(t))Ai(e,_e,t);else if(function(t){return Ci(t,"Enter",{altKey:"any",ctrlKey:"any",metaKey:"any",shiftKey:!0})}(t))qe=!0,Ai(e,pe,t);else if(function(t){return" "===t.key}(t))Ai(e,ye,t);else if(function(t){return o&&Ci(t,"o",{ctrlKey:!0})}(t))t.preventDefault(),qe=!0,Ai(e,Zt,!0);else if(function(t){return Ci(t,"Enter",{altKey:"any",ctrlKey:"any",metaKey:"any"})}(t))qe=!1,Ai(e,pe,t);else if(function(t){return Ci(t,"Backspace",{shiftKey:"any"})||o&&Ci(t,"h",{ctrlKey:!0})}(t))Ti(t)?Ai(e,me,t):(t.preventDefault(),Ai(e,Qt,!0));else if(function(t){return"Escape"===t.key}(t))Ai(e,xe,t);else if(function(t){return Ci(t,"Delete",{})||o&&Ci(t,"d",{ctrlKey:!0})}(t))!function(t){return"Delete"===t.key}(t)?(t.preventDefault(),Ai(e,Qt,!1)):Ai(e,Ce,t);else if(function(t){return Ci(t,"Backspace",Ni)}(t))t.preventDefault(),Ai(e,oe,!0);else if(function(t){return Ci(t,"Delete",Ni)}(t))t.preventDefault(),Ai(e,oe,!1);else if(function(t){return o&&Ci(t,"Backspace",{metaKey:!0})}(t))t.preventDefault(),Ai(e,ie,!0);else if(function(t){return o&&(Ci(t,"Delete",{metaKey:!0})||Ci(t,"k",{ctrlKey:!0}))}(t))t.preventDefault(),Ai(e,ie,!1);else if(function(t){return Ci(t,"b",Si)}(t))t.preventDefault(),Ai(e,se,"bold");else if(function(t){return Ci(t,"u",Si)}(t))t.preventDefault(),Ai(e,se,"underline");else if(function(t){return Ci(t,"i",Si)}(t))t.preventDefault(),Ai(e,se,"italic");else if(function(t){return Ci(t,"Tab",{shiftKey:"any"})}(t))Ai(e,Se,t);else if(function(t){return Ci(t,"z",Si)}(t))t.preventDefault(),Ai(e,le,void 0);else if(function(t){if(o)return Ci(t,"z",{metaKey:!0,shiftKey:!0});return Ci(t,"y",{ctrlKey:!0})||Ci(t,"z",{ctrlKey:!0,shiftKey:!0})}(t))t.preventDefault(),Ai(e,ae,void 0);else{const n=e._editorState._selection;null===n||ur(n)?vi(t)&&(t.preventDefault(),Ai(e,De,t)):!function(t){return Ci(t,"c",Si)}(t)?!function(t){return Ci(t,"x",Si)}(t)?vi(t)&&(t.preventDefault(),Ai(e,De,t)):(t.preventDefault(),Ai(e,we,t)):(t.preventDefault(),Ai(e,Ae,t))}return function(t){return t.ctrlKey||t.shiftKey||t.altKey||t.metaKey}(t)&&e.dispatchCommand(Be,t),!0}function _n(t){let e=t.__lexicalEventHandles;return void 0===e&&(e=[],t.__lexicalEventHandles=e),e}const pn=new Map;function yn(t){const e=Vi(t.target);if(null===e)return;const n=$o(e.anchorNode);if(null===n)return;Ge&&(Ge=!1,so(n,()=>{const r=Or(),o=e.anchorNode;if(Gi(o)||jo(o)){ci(kr(r,e,n,t))}}));const r=di(n),o=r[r.length-1],i=o._key,s=pn.get(i),l=s||o;l!==n&&on(e,l,!1),on(e,n,!0),n!==o?pn.set(i,n):s&&pn.delete(i)}function mn(t){t._lexicalHandled=!0}function xn(t){return!0===t._lexicalHandled}const Cn=()=>{};function Sn(e){const n=je.get(e);if(void 0===n)return void Cn();const r=He.get(n);if(void 0===r)return void Cn();const o=r-1;o>=0||t(164),je.delete(e),He.set(n,o),0===o&&n.removeEventListener("selectionchange",yn);const i=Uo(e);Wo(i)?(!function(t){if(null!==t._parentEditor){const e=di(t),n=e[e.length-1]._key;pn.get(n)===t&&pn.delete(n)}else pn.delete(t._key)}(i),e.__lexicalEditor=null):i&&t(198);const s=_n(e);for(let t=0;t<s.length;t++)s[t]();e.__lexicalEventHandles=[]}function Nn(t,e,n){Yr();const r=t.__key,o=t.getParent();if(null===o)return;const i=function(t){const e=Er();if(!ur(e)||!uo(t))return e;const{anchor:n,focus:r}=e,o=n.getNode(),i=r.getNode();Li(o,t)&&n.set(t.__key,0,"element");Li(i,t)&&r.set(t.__key,0,"element");return e}(t);let s=!1;if(ur(i)&&e){const e=i.anchor,n=i.focus;e.key===r&&(Ar(e,t,o,t.getPreviousSibling(),t.getNextSibling()),s=!0),n.key===r&&(Ar(n,t,o,t.getPreviousSibling(),t.getNextSibling()),s=!0)}else dr(i)&&e&&t.isSelected()&&t.selectPrevious();if(ur(i)&&e&&!s){const e=t.getIndexWithinParent();Xo(t),Mr(i,o,e,-1)}else Xo(t);n||zi(o)||o.canBeEmpty()||!o.isEmpty()||Nn(o,e),e&&i&&po(o)&&o.isEmpty()&&o.selectEnd()}const Tn=Symbol.for("ephemeral");function vn(t){return t[Tn]||!1}class kn{__type;__key;__parent;__prev;__next;__state;static getType(){const{ownNodeType:e}=cs(this);return void 0===e&&t(64,this.name),e}static clone(e){t(65,this.name)}$config(){return{}}config(t,e){const n=e.extends||Object.getPrototypeOf(this.constructor);return Object.assign(e,{extends:n,type:t}),{[t]:e}}afterCloneFrom(t){this.__key===t.__key?(this.__parent=t.__parent,this.__next=t.__next,this.__prev=t.__prev,this.__state=t.__state):t.__state&&(this.__state=t.__state.getWritable(this))}resetOnCopyNodeFrom(t){this.__state&&(this.__state=this.__state.getWritable(this).resetOnCopyNode())}static importDOM;constructor(t){this.__type=this.constructor.getType(),this.__parent=null,this.__prev=null,this.__next=null,Object.defineProperty(this,"__state",{configurable:!0,enumerable:!1,value:void 0,writable:!0}),qo(this,t)}getType(){return this.__type}isInline(){t(137,this.constructor.name)}isAttached(){let t=this.__key;for(;null!==t;){if("root"===t)return!0;const e=ei(t);if(null===e)break;t=e.__parent}return!1}isSelected(t){const e=t||Er();if(null==e)return!1;const n=e.getNodes().some(t=>t.__key===this.__key);if(tr(this))return n;if(ur(e)&&"element"===e.anchor.type&&"element"===e.focus.type){if(e.isCollapsed())return!1;const t=this.getParent();if(go(this)&&this.isInline()&&t){const n=e.isBackward()?e.focus:e.anchor;if(t.is(n.getNode())&&n.offset===t.getChildrenSize()&&this.is(t.getLastChild()))return!1}}return n}getKey(){return this.__key}getIndexWithinParent(){const t=this.getParent();if(null===t)return-1;let e=t.getFirstChild(),n=0;for(;null!==e;){if(this.is(e))return n;n++,e=e.getNextSibling()}return-1}getParent(){const t=this.getLatest().__parent;return null===t?null:ei(t)}getParentOrThrow(){const e=this.getParent();return null===e&&t(66,this.__key),e}getTopLevelElement(){let e=this;for(;null!==e;){const n=e.getParent();if(zi(n))return uo(e)||e===this&&go(e)||t(194),e;e=n}return null}getTopLevelElementOrThrow(){const e=this.getTopLevelElement();return null===e&&t(67,this.__key),e}getParents(){const t=[];let e=this.getParent();for(;null!==e;)t.push(e),e=e.getParent();return t}getParentKeys(){const t=[];let e=this.getParent();for(;null!==e;)t.push(e.__key),e=e.getParent();return t}getPreviousSibling(){const t=this.getLatest().__prev;return null===t?null:ei(t)}getPreviousSiblings(){const t=[],e=this.getParent();if(null===e)return t;let n=e.getFirstChild();for(;null!==n&&!n.is(this);)t.push(n),n=n.getNextSibling();return t}getNextSibling(){const t=this.getLatest().__next;return null===t?null:ei(t)}getNextSiblings(){const t=[];let e=this.getNextSibling();for(;null!==e;)t.push(e),e=e.getNextSibling();return t}getCommonAncestor(t){const e=uo(this)?this:this.getParent(),n=uo(t)?t:t.getParent(),r=e&&n?$s(e,n):null;return r?r.commonAncestor:null}is(t){return null!=t&&this.__key===t.__key}isBefore(e){const n=$s(this,e);return null!==n&&("descendant"===n.type||("branch"===n.type?-1===Bs(n):("same"!==n.type&&"ancestor"!==n.type&&t(279),!1)))}isParentOf(t){const e=$s(this,t);return null!==e&&"ancestor"===e.type}getNodesBetween(e){const n=this.isBefore(e),r=[],o=new Set;let i=this;for(;null!==i;){const s=i.__key;if(o.has(s)||(o.add(s),r.push(i)),i===e)break;const l=uo(i)?n?i.getFirstChild():i.getLastChild():null;if(null!==l){i=l;continue}const a=n?i.getNextSibling():i.getPreviousSibling();if(null!==a){i=a;continue}const c=i.getParentOrThrow();if(o.has(c.__key)||r.push(c),c===e)break;let u=null,f=c;do{if(null===f&&t(68),u=n?f.getNextSibling():f.getPreviousSibling(),f=f.getParent(),null===f)break;null!==u||o.has(f.__key)||r.push(f)}while(null===u);i=u}return n||r.reverse(),r}isDirty(){const t=Vr()._dirtyLeaves;return null!==t&&t.has(this.__key)}getLatest(){if(vn(this))return this;const e=ei(this.__key);return null===e&&t(113),e}getWritable(){if(vn(this))return this;Yr();const t=Hr(),e=Vr(),n=t._nodeMap,r=this.__key,o=this.getLatest(),i=e._cloneNotNeeded,s=Er();if(null!==s&&s.setCachedNodes(null),i.has(r))return Qo(o),o;const l=is(o);return i.add(r),Qo(l),n.set(r,l),l}getTextContent(){return""}getTextContentSize(){return this.getTextContent().length}createDOM(e,n){t(70)}updateDOM(e,n,r){t(71)}exportDOM(t){return{element:this.createDOM(t._config,t)}}exportJSON(){const t=this.__state?this.__state.toJSON():void 0;return{type:this.__type,version:1,...t}}static importJSON(e){t(18,this.name)}updateFromJSON(t){return function(t,e){const n=t.getWritable(),r=e.$;let o=r;for(const t of Z(n).flatKeys)t in e&&(void 0!==o&&o!==r||(o={...r}),o[t]=e[t]);return(n.__state||o)&&Q(t).updateFromJSON(o),n}(this,t)}static transform(){return null}remove(t){Nn(this,!0,t)}replace(e,n){Yr();let r=Er();null!==r&&(r=r.clone()),Ui(this,e);const o=this.getLatest(),i=this.__key,s=e.__key,l=e.getWritable(),a=this.getParentOrThrow().getWritable(),c=a.__size;Xo(l);const u=o.getPreviousSibling(),f=o.getNextSibling(),d=o.__prev,h=o.__next,g=o.__parent;if(Nn(o,!1,!0),null===u)a.__first=s;else{u.getWritable().__next=s}if(l.__prev=d,null===f)a.__last=s;else{f.getWritable().__prev=s}if(l.__next=h,l.__parent=g,a.__size=c,n&&(uo(this)&&uo(l)||t(139),this.getChildren().forEach(t=>{l.append(t)})),ur(r)){ci(r);const t=r.anchor,e=r.focus;t.key===i&&ar(t,l),e.key===i&&ar(e,l)}return ti()===i&&Zo(s),l}insertAfter(t,e=!0){Yr(),Ui(this,t);const n=this.getWritable(),r=t.getWritable(),o=r.getParent(),i=Er();let s=!1,l=!1;if(null!==o){const e=t.getIndexWithinParent();if(Xo(r),ur(i)){const t=o.__key,n=i.anchor,r=i.focus;s="element"===n.type&&n.key===t&&n.offset===e+1,l="element"===r.type&&r.key===t&&r.offset===e+1}}const a=this.getNextSibling(),c=this.getParentOrThrow().getWritable(),u=r.__key,f=n.__next;if(null===a)c.__last=u;else{a.getWritable().__prev=u}if(c.__size++,n.__next=u,r.__next=f,r.__prev=n.__key,r.__parent=n.__parent,e&&ur(i)){const t=this.getIndexWithinParent();Mr(i,c,t+1);const e=c.__key;s&&i.anchor.set(e,t+2,"element"),l&&i.focus.set(e,t+2,"element")}return t}insertBefore(t,e=!0){Yr(),Ui(this,t);const n=this.getWritable(),r=t.getWritable(),o=r.__key;Xo(r);const i=this.getPreviousSibling(),s=this.getParentOrThrow().getWritable(),l=n.__prev,a=this.getIndexWithinParent();if(null===i)s.__first=o;else{i.getWritable().__next=o}s.__size++,n.__prev=o,r.__prev=l,r.__next=n.__key,r.__parent=n.__parent;const c=Er();if(e&&ur(c)){Mr(c,this.getParentOrThrow(),a)}return t}isParentRequired(){return!1}createParentElementNode(){return vo()}selectStart(){return this.selectPrevious()}selectEnd(){return this.selectNext(0,0)}selectPrevious(t,e){Yr();const n=this.getPreviousSibling(),r=this.getParentOrThrow();if(null===n)return r.select(0,0);if(uo(n))return n.select();if(!tr(n)){const t=n.getIndexWithinParent()+1;return r.select(t,t)}return n.select(t,e)}selectNext(t,e){Yr();const n=this.getNextSibling(),r=this.getParentOrThrow();if(null===n)return r.select();if(uo(n))return n.select(0,0);if(!tr(n)){const t=n.getIndexWithinParent();return r.select(t,t)}return n.select(t,e)}markDirty(){this.getWritable()}reconcileObservedMutation(t,e){this.markDirty()}}const En="history-merge",On="collaboration",Mn="skip-scroll-into-view",bn="skip-dom-selection",An="skip-selection-focus",wn="composition-start",Dn="composition-end";class Pn extends kn{static getType(){return"linebreak"}static clone(t){return new Pn(t.__key)}constructor(t){super(t)}getTextContent(){return"\n"}createDOM(){return document.createElement("br")}updateDOM(){return!1}isInline(){return!0}static importDOM(){return{br:t=>function(t){const e=t.parentElement;if(null!==e&&Zi(e)){const n=e.firstChild;if(n===t||n.nextSibling===t&&Rn(n)){const n=e.lastChild;if(n===t||n.previousSibling===t&&Rn(n))return!0}}return!1}(t)||function(t){const e=t.parentElement;if(null!==e&&Zi(e)){const n=e.firstChild;if(n===t||n.nextSibling===t&&Rn(n))return!1;const r=e.lastChild;if(r===t||r.previousSibling===t&&Rn(r))return!0}return!1}(t)?null:{conversion:In,priority:0}}}static importJSON(t){return Fn().updateFromJSON(t)}}function In(t){return{node:Fn()}}function Fn(){return $i(new Pn)}function Ln(t){return t instanceof Pn}function Rn(t){return jo(t)&&/^( |\t|\r?\n)+$/.test(t.textContent||"")}function Kn(t,e){return 16&e?"code":e&p?"mark":32&e?"sub":64&e?"sup":null}function Bn(t,e){return 1&e?"strong":2&e?"em":"span"}function zn(t,e,n,r,o){const i=r.classList;let s=ki(o,"base");void 0!==s&&i.add(...s),s=ki(o,"underlineStrikethrough");let l=!1;const a=8&e&&4&e;void 0!==s&&(8&n&&4&n?(l=!0,a||i.add(...s)):a&&i.remove(...s));for(const t in A){const r=A[t];if(s=ki(o,t),void 0!==s)if(n&r){if(l&&("underline"===t||"strikethrough"===t)){e&r&&i.remove(...s);continue}(0===(e&r)||a&&"underline"===t||"strikethrough"===t)&&i.add(...s)}else e&r&&i.remove(...s)}}function Wn(t,e,n){const r=e.firstChild,o=n.isComposing(),s=t+(o?T:"");if(null==r)e.textContent=s;else{const t=r.nodeValue;if(t!==s)if(o||i){const[e,n,o]=function(t,e){const n=t.length,r=e.length;let o=0,i=0;for(;o<n&&o<r&&t[o]===e[o];)o++;for(;i+o<n&&i+o<r&&t[n-i-1]===e[r-i-1];)i++;return[o,n-o-i,e.slice(o,r-i)]}(t,s);0!==n&&r.deleteData(e,n),r.insertData(e,o)}else r.nodeValue=s}}function $n(t,e,n,r,o,i){Wn(o,t,e);const s=i.theme.text;void 0!==s&&zn(0,0,r,t,s)}function Un(t,e){const n=document.createElement(e);return n.appendChild(t),n}class Jn extends kn{__text;__format;__style;__mode;__detail;static getType(){return"text"}static clone(t){return new Jn(t.__text,t.__key)}afterCloneFrom(t){super.afterCloneFrom(t),this.__text=t.__text,this.__format=t.__format,this.__style=t.__style,this.__mode=t.__mode,this.__detail=t.__detail}constructor(t="",e){super(e),this.__text=t,this.__format=0,this.__style="",this.__mode=0,this.__detail=0}getFormat(){return this.getLatest().__format}getDetail(){return this.getLatest().__detail}getMode(){const t=this.getLatest();return F[t.__mode]}getStyle(){return this.getLatest().__style}isToken(){return 1===this.getLatest().__mode}isComposing(){return this.__key===ti()}isSegmented(){return 2===this.getLatest().__mode}isDirectionless(){return!!(1&this.getLatest().__detail)}isUnmergeable(){return!!(2&this.getLatest().__detail)}hasFormat(t){const e=A[t];return 0!==(this.getFormat()&e)}isSimpleText(){return"text"===this.__type&&0===this.__mode}getTextContent(){return this.getLatest().__text}getFormatFlags(t,e){return Go(this.getLatest().__format,t,e)}canHaveFormat(){return!0}isInline(){return!0}createDOM(t,e){const n=this.__format,r=Kn(0,n),o=Bn(0,n),i=null===r?o:r,s=document.createElement(i);let l=s;this.hasFormat("code")&&s.setAttribute("spellcheck","false"),null!==r&&(l=document.createElement(o),s.appendChild(l));$n(l,this,0,n,this.__text,t);const a=this.__style;return""!==a&&(s.style.cssText=a),s}updateDOM(e,n,r){const o=this.__text,i=e.__format,s=this.__format,l=Kn(0,i),a=Kn(0,s),c=Bn(0,i),u=Bn(0,s);if((null===l?c:l)!==(null===a?u:a))return!0;if(l===a&&c!==u){const e=n.firstChild;null==e&&t(48);const i=document.createElement(u);return $n(i,this,0,s,o,r),n.replaceChild(i,e),!1}let f=n;null!==a&&null!==l&&(f=n.firstChild,null==f&&t(49)),Wn(o,f,this);const d=r.theme.text;void 0!==d&&i!==s&&zn(0,i,s,f,d);const h=e.__style,g=this.__style;return h!==g&&(n.style.cssText=g),!1}static importDOM(){return{"#text":()=>({conversion:Gn,priority:0}),b:()=>({conversion:jn,priority:0}),code:()=>({conversion:Qn,priority:0}),em:()=>({conversion:Qn,priority:0}),i:()=>({conversion:Qn,priority:0}),mark:()=>({conversion:Qn,priority:0}),s:()=>({conversion:Qn,priority:0}),span:()=>({conversion:Yn,priority:0}),strong:()=>({conversion:Qn,priority:0}),sub:()=>({conversion:Qn,priority:0}),sup:()=>({conversion:Qn,priority:0}),u:()=>({conversion:Qn,priority:0})}}static importJSON(t){return Zn().updateFromJSON(t)}updateFromJSON(t){return super.updateFromJSON(t).setTextContent(t.text).setFormat(t.format).setDetail(t.detail).setMode(t.mode).setStyle(t.style)}exportDOM(e){let{element:n}=super.exportDOM(e);return Gi(n)||t(132),n.style.whiteSpace="pre-wrap",this.hasFormat("lowercase")?n.style.textTransform="lowercase":this.hasFormat("uppercase")?n.style.textTransform="uppercase":this.hasFormat("capitalize")&&(n.style.textTransform="capitalize"),this.hasFormat("bold")&&(n=Un(n,"b")),this.hasFormat("italic")&&(n=Un(n,"i")),this.hasFormat("strikethrough")&&(n=Un(n,"s")),this.hasFormat("underline")&&(n=Un(n,"u")),{element:n}}exportJSON(){return{detail:this.getDetail(),format:this.getFormat(),mode:this.getMode(),style:this.getStyle(),text:this.getTextContent(),...super.exportJSON()}}selectionTransform(t,e){}setFormat(t){const e=this.getWritable();return e.__format="string"==typeof t?A[t]:t,e}setDetail(t){const e=this.getWritable();return e.__detail="string"==typeof t?w[t]:t,e}setStyle(t){const e=this.getWritable();return e.__style=t,e}toggleFormat(t){const e=Go(this.getFormat(),t,null);return this.setFormat(e)}toggleDirectionless(){const t=this.getWritable();return t.__detail^=1,t}toggleUnmergeable(){const t=this.getWritable();return t.__detail^=2,t}setMode(t){const e=I[t];if(this.__mode===e)return this;const n=this.getWritable();return n.__mode=e,n}setTextContent(t){if(this.__text===t)return this;const e=this.getWritable();return e.__text=t,e}select(t,e){Yr();let n=t,r=e;const o=Er(),i=this.getTextContent(),s=this.__key;if("string"==typeof i){const t=i.length;void 0===n&&(n=t),void 0===r&&(r=t)}else n=0,r=0;if(!ur(o))return Nr(s,n,s,r,"text","text");{const t=ti();t!==o.anchor.key&&t!==o.focus.key||Zo(s),o.setTextNodeRange(this,n,this,r)}return o}selectStart(){return this.select(0,0)}selectEnd(){const t=this.getTextContentSize();return this.select(t,t)}spliceText(t,e,n,r){const o=this.getWritable(),i=o.__text,s=n.length;let l=t;l<0&&(l=s+l,l<0&&(l=0));const a=Er();if(r&&ur(a)){const e=t+s;a.setTextNodeRange(o,e,o,e)}const c=i.slice(0,l)+n+i.slice(l+e);return o.__text=c,o}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}splitText(...t){Yr();const e=this.getLatest(),n=e.getTextContent();if(""===n)return[];const r=e.__key,o=ti(),i=n.length;t.sort((t,e)=>t-e),t.push(i);const s=[],l=t.length;for(let e=0,r=0;e<i&&r<=l;r++){const o=t[r];o>e&&(s.push(n.slice(e,o)),e=o)}const a=s.length;if(1===a)return[e];const c=s[0],u=e.getParent();let f;const d=e.getFormat(),h=e.getStyle(),g=e.__detail;let _=!1,p=null,y=null;const m=Er();if(ur(m)){const[t,e]=m.isBackward()?[m.focus,m.anchor]:[m.anchor,m.focus];"text"===t.type&&t.key===r&&(p=t),"text"===e.type&&e.key===r&&(y=e)}e.isSegmented()?(f=Zn(c),f.__format=d,f.__style=h,f.__detail=g,f.__state=ot(e,f),_=!0):f=e.setTextContent(c);const x=[f];for(let t=1;t<a;t++){const n=Zn(s[t]);n.__format=d,n.__style=h,n.__detail=g,n.__state=ot(e,n);const i=n.__key;o===r&&Zo(i),x.push(n)}const C=p?p.offset:null,S=y?y.offset:null;let N=0;for(const t of x){if(!p&&!y)break;const e=N+t.getTextContentSize();if(null!==p&&null!==C&&C<=e&&C>=N&&(p.set(t.getKey(),C-N,"text"),C<e&&(p=null)),null!==y&&null!==S&&S<=e&&S>=N){y.set(t.getKey(),S-N,"text");break}N=e}if(null!==u){!function(t){const e=t.getPreviousSibling(),n=t.getNextSibling();null!==e&&Qo(e);null!==n&&Qo(n)}(this);const t=u.getWritable(),e=this.getIndexWithinParent();_?(t.splice(e,0,x),this.remove()):t.splice(e,1,x),ur(m)&&Mr(m,u,e,a-1)}return x}mergeWithSibling(e){const n=e===this.getPreviousSibling();n||e===this.getNextSibling()||t(50);const r=this.__key,o=e.__key,i=this.__text,s=i.length;ti()===o&&Zo(r);const l=Er();if(ur(l)){const t=l.anchor,i=l.focus;null!==t&&t.key===o&&wr(t,n,r,e,s),null!==i&&i.key===o&&wr(i,n,r,e,s)}const a=e.__text,c=n?a+i:i+a;this.setTextContent(c);const u=this.getWritable();return e.remove(),u}isTextEntity(){return!1}}function Yn(t){return{forChild:er(t.style),node:null}}function jn(t){const e=t,n="normal"===e.style.fontWeight;return{forChild:er(e.style,n?void 0:"bold"),node:null}}const Hn=new WeakMap;function Vn(t){if(!Gi(t))return!1;if("PRE"===t.nodeName)return!0;const e=t.style.whiteSpace;return"string"==typeof e&&e.startsWith("pre")}function Gn(e){const n=e;null===e.parentElement&&t(129);let r=n.textContent||"";if(null!==function(t){let e,n=t.parentNode;const r=[t];for(;null!==n&&void 0===(e=Hn.get(n))&&!Vn(n);)r.push(n),n=n.parentNode;const o=void 0===e?n:e;for(let t=0;t<r.length;t++)Hn.set(r[t],o);return o}(n)){const t=r.split(/(\r?\n|\t)/),e=[],n=t.length;for(let r=0;r<n;r++){const n=t[r];"\n"===n||"\r\n"===n?e.push(Fn()):"\t"===n?e.push(rr()):""!==n&&e.push(Zn(n))}return{node:e}}if(r=r.replace(/\r/g,"").replace(/[ \t\n]+/g," "),""===r)return{node:null};if(" "===r[0]){let t=n,e=!0;for(;null!==t&&null!==(t=qn(t,!1));){const n=t.textContent||"";if(n.length>0){/[ \t\n]$/.test(n)&&(r=r.slice(1)),e=!1;break}}e&&(r=r.slice(1))}if(" "===r[r.length-1]){let t=n,e=!0;for(;null!==t&&null!==(t=qn(t,!0));){if((t.textContent||"").replace(/^( |\t|\r?\n)+/,"").length>0){e=!1;break}}e&&(r=r.slice(0,r.length-1))}return""===r?{node:null}:{node:Zn(r)}}function qn(t,e){let n=t;for(;;){let t;for(;null===(t=e?n.nextSibling:n.previousSibling);){const t=n.parentElement;if(null===t)return null;n=t}if(n=t,Gi(n)){const t=n.style.display;if(""===t&&!Qi(n)||""!==t&&!t.startsWith("inline"))return null}let r=n;for(;null!==(r=e?n.firstChild:n.lastChild);)n=r;if(jo(n))return n;if("BR"===n.nodeName)return null}}const Xn={code:"code",em:"italic",i:"italic",mark:"highlight",s:"strikethrough",strong:"bold",sub:"subscript",sup:"superscript",u:"underline"};function Qn(t){const e=Xn[t.nodeName.toLowerCase()];return void 0===e?{node:null}:{forChild:er(t.style,e),node:null}}function Zn(t=""){return $i(new Jn(t))}function tr(t){return t instanceof Jn}function er(t,e){const n=t.fontWeight,r=t.textDecoration.split(" "),o="700"===n||"bold"===n,i=r.includes("line-through"),s="italic"===t.fontStyle,l=r.includes("underline"),a=t.verticalAlign;return t=>tr(t)?(o&&!t.hasFormat("bold")&&t.toggleFormat("bold"),i&&!t.hasFormat("strikethrough")&&t.toggleFormat("strikethrough"),s&&!t.hasFormat("italic")&&t.toggleFormat("italic"),l&&!t.hasFormat("underline")&&t.toggleFormat("underline"),"sub"!==a||t.hasFormat("subscript")||t.toggleFormat("subscript"),"super"!==a||t.hasFormat("superscript")||t.toggleFormat("superscript"),e&&!t.hasFormat(e)&&t.toggleFormat(e),t):t}class nr extends Jn{static getType(){return"tab"}static clone(t){return new nr(t.__key)}constructor(t){super("\t",t),this.__detail=2}static importDOM(){return null}createDOM(t){const e=super.createDOM(t),n=ki(t.theme,"tab");if(void 0!==n){e.classList.add(...n)}return e}static importJSON(t){return rr().updateFromJSON(t)}setTextContent(t){return"\t"!==t&&""!==t&&e(126),super.setTextContent("\t")}spliceText(e,n,r,o){return""===r&&0===n||"\t"===r&&1===n||t(286),this}setDetail(e){return 2!==e&&t(127),this}setMode(e){return"normal"!==e&&t(128),this}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}}function rr(){return $i(new nr)}function or(t){return t instanceof nr}class ir{key;offset;type;_selection;constructor(t,e,n){this._selection=null,this.key=t,this.offset=e,this.type=n}is(t){return this.key===t.key&&this.offset===t.offset&&this.type===t.type}isBefore(t){if(this.key===t.key)return this.offset<t.offset;return Ks(Qs(Us(this,"next")),Qs(Us(t,"next")))<0}getNode(){const e=ei(this.key);return null===e&&t(20),e}set(t,e,n,r){const o=this._selection,i=this.key;r&&this.key===t&&this.offset===e&&this.type===n||(this.key=t,this.offset=e,this.type=n,Jr()||(ti()===i&&Zo(t),null!==o&&(o.setCachedNodes(null),o.dirty=!0)))}}function sr(t,e,n){return new ir(t,e,n)}function lr(t,e){let n=e.__key,r=t.offset,o="element";if(tr(e)){o="text";const t=e.getTextContentSize();r>t&&(r=t)}else if(!uo(e)){const t=e.getNextSibling();if(tr(t))n=t.__key,r=0,o="text";else{const t=e.getParent();t&&(n=t.__key,r=e.getIndexWithinParent()+1)}}t.set(n,r,o)}function ar(t,e){if(uo(e)){const n=e.getLastDescendant();uo(n)||tr(n)?lr(t,n):lr(t,e)}else lr(t,e)}class cr{_nodes;_cachedNodes;dirty;constructor(t){this._cachedNodes=null,this._nodes=t,this.dirty=!1}getCachedNodes(){return this._cachedNodes}setCachedNodes(t){this._cachedNodes=t}is(t){if(!dr(t))return!1;const e=this._nodes,n=t._nodes;return e.size===n.size&&Array.from(e).every(t=>n.has(t))}isCollapsed(){return!1}isBackward(){return!1}getStartEndPoints(){return null}add(t){this.dirty=!0,this._nodes.add(t),this._cachedNodes=null}delete(t){this.dirty=!0,this._nodes.delete(t),this._cachedNodes=null}clear(){this.dirty=!0,this._nodes.clear(),this._cachedNodes=null}has(t){return this._nodes.has(t)}clone(){return new cr(new Set(this._nodes))}extract(){return this.getNodes()}insertRawText(t){}insertText(){}insertNodes(t){const e=this.getNodes(),n=e.length,r=e[n-1];let o;if(tr(r))o=r.select();else{const t=r.getIndexWithinParent()+1;o=r.getParentOrThrow().select(t,t)}o.insertNodes(t);for(let t=0;t<n;t++)e[t].remove()}getNodes(){const t=this._cachedNodes;if(null!==t)return t;const e=this._nodes,n=[];for(const t of e){const e=ei(t);null!==e&&n.push(e)}return Jr()||(this._cachedNodes=n),n}getTextContent(){const t=this.getNodes();let e="";for(let n=0;n<t.length;n++)e+=t[n].getTextContent();return e}deleteNodes(){const t=this.getNodes();if((Er()||Or())===this&&t[0]){const e=ks(t[0],"next");Ys(Ls(e,e))}for(const e of t)e.remove()}}function ur(t){return t instanceof fr}class fr{format;style;anchor;focus;_cachedNodes;dirty;constructor(t,e,n,r){this.anchor=t,this.focus=e,t._selection=this,e._selection=this,this._cachedNodes=null,this.format=n,this.style=r,this.dirty=!1}getCachedNodes(){return this._cachedNodes}setCachedNodes(t){this._cachedNodes=t}is(t){return!!ur(t)&&(this.anchor.is(t.anchor)&&this.focus.is(t.focus)&&this.format===t.format&&this.style===t.style)}isCollapsed(){return this.anchor.is(this.focus)}getNodes(){const t=this._cachedNodes;if(null!==t)return t;const e=function(t){const e=[],[n,r]=t.getTextSlices();n&&e.push(n.caret.origin);const o=new Set,i=new Set;for(const n of t)if(Ss(n)){const{origin:t}=n;0===e.length?o.add(t):(i.add(t),e.push(t))}else{const{origin:t}=n;uo(t)&&i.has(t)||e.push(t)}r&&e.push(r.caret.origin);if(Cs(t.focus)&&uo(t.focus.origin)&&null===t.focus.getNodeAtCaret())for(let n=bs(t.focus.origin,"previous");Ss(n)&&o.has(n.origin)&&!n.origin.isEmpty()&&n.origin.is(e[e.length-1]);n=ws(n))o.delete(n.origin),e.pop();for(;e.length>1;){const t=e[e.length-1];if(!uo(t)||i.has(t)||t.isEmpty()||o.has(t))break;e.pop()}if(0===e.length&&t.isCollapsed()){const n=Qs(t.anchor),r=Qs(t.anchor.getFlipped()),o=t=>xs(t)?t.origin:t.getNodeAtCaret(),i=o(n)||o(r)||(t.anchor.getNodeAtCaret()?n.origin:r.origin);e.push(i)}return e}(el(Hs(this),"next"));return Jr()||(this._cachedNodes=e),e}setTextNodeRange(t,e,n,r){this.anchor.set(t.__key,e,"text"),this.focus.set(n.__key,r,"text")}getTextContent(){const t=this.getNodes();if(0===t.length)return"";const e=t[0],n=t[t.length-1],r=this.anchor,o=this.focus,i=r.isBefore(o),[s,l]=gr(this);let a="",c=!0;for(let u=0;u<t.length;u++){const f=t[u];if(uo(f)&&!f.isInline())c||(a+="\n"),c=!f.isEmpty();else if(c=!1,tr(f)){let t=f.getTextContent();f===e?f===n?"element"===r.type&&"element"===o.type&&o.offset!==r.offset||(t=s<l?t.slice(s,l):t.slice(l,s)):t=i?t.slice(s):t.slice(l):f===n&&(t=i?t.slice(0,l):t.slice(0,s)),a+=t}else!go(f)&&!Ln(f)||f===n&&this.isCollapsed()||(a+=f.getTextContent())}return a}applyDOMRange(t){const e=Vr(),n=e.getEditorState()._selection,r=Sr(t.startContainer,t.startOffset,t.endContainer,t.endOffset,e,n);if(null===r)return;const[o,i]=r;this.anchor.set(o.key,o.offset,o.type,!0),this.focus.set(i.key,i.offset,i.type,!0),at(this)}clone(){const t=this.anchor,e=this.focus;return new fr(sr(t.key,t.offset,t.type),sr(e.key,e.offset,e.type),this.format,this.style)}toggleFormat(t){this.format=Go(this.format,t,null),this.dirty=!0}setFormat(t){this.format=t,this.dirty=!0}setStyle(t){this.style=t,this.dirty=!0}hasFormat(t){const e=A[t];return 0!==(this.format&e)}insertRawText(t){const e=t.split(/(\r?\n|\t)/),n=[],r=e.length;for(let t=0;t<r;t++){const r=e[t];"\n"===r||"\r\n"===r?n.push(Fn()):"\t"===r?n.push(rr()):n.push(Zn(r))}this.insertNodes(n)}insertText(e){const n=this.anchor,r=this.focus,o=this.format,i=this.style;let s=n,l=r;!this.isCollapsed()&&r.isBefore(n)&&(s=r,l=n),"element"===s.type&&function(t,e,n,r){const o=t.getNode(),i=o.getChildAtIndex(t.offset),s=Zn();if(s.setFormat(n),s.setStyle(r),ko(i))i.splice(0,0,[s]);else{const t=po(o)?vo().append(s):s;null===i?o.append(t):i.insertBefore(t)}t.is(e)&&e.set(s.__key,0,"text"),t.set(s.__key,0,"text")}(s,l,o,i),"element"===l.type&&Js(l,Qs(Us(l,"next")));const a=s.offset;let c=l.offset;const u=this.getNodes(),f=u.length;let d=u[0];tr(d)||t(26);const h=d.getTextContent().length,g=d.getParentOrThrow();let _=u[f-1];if(1===f&&"element"===l.type&&(c=h,l.set(s.key,c,"text")),this.isCollapsed()&&a===h&&(Yo(d)||!d.canInsertTextAfter()||!g.canInsertTextAfter()&&null===d.getNextSibling())){let t=d.getNextSibling();if(tr(t)&&t.canInsertTextBefore()&&!Yo(t)||(t=Zn(),t.setFormat(o),t.setStyle(i),g.canInsertTextAfter()?d.insertAfter(t):g.insertAfter(t)),t.select(0,0),d=t,""!==e)return void this.insertText(e)}else if(this.isCollapsed()&&0===a&&(Yo(d)||!d.canInsertTextBefore()||!g.canInsertTextBefore()&&null===d.getPreviousSibling())){let t=d.getPreviousSibling();if(tr(t)&&!Yo(t)||(t=Zn(),t.setFormat(o),g.canInsertTextBefore()?d.insertBefore(t):g.insertBefore(t)),t.select(),d=t,""!==e)return void this.insertText(e)}else if(d.isSegmented()&&a!==h){const t=Zn(d.getTextContent());t.setFormat(o),d.replace(t),d=t}else if(!this.isCollapsed()&&""!==e){const t=_.getParent();if(!g.canInsertTextBefore()||!g.canInsertTextAfter()||uo(t)&&(!t.canInsertTextBefore()||!t.canInsertTextAfter()))return this.insertText(""),Cr(this.anchor,this.focus),void this.insertText(e)}if(1===f){if(Jo(d)){const t=Zn(e);return t.select(),void d.replace(t)}const t=d.getFormat(),n=d.getStyle();if(a!==c||t===o&&n===i){if(or(d)){const t=Zn(e);return t.setFormat(o),t.setStyle(i),t.select(),void d.replace(t)}}else{if(""!==d.getTextContent()){const t=Zn(e);if(t.setFormat(o),t.setStyle(i),t.select(),0===a)d.insertBefore(t,!1);else{const[e]=d.splitText(a);e.insertAfter(t,!1)}return void(t.isComposing()&&"text"===this.anchor.type&&(this.anchor.offset-=e.length))}d.setFormat(o),d.setStyle(i)}const r=c-a;d=d.spliceText(a,r,e,!0),""===d.getTextContent()?d.remove():"text"===this.anchor.type&&(this.format=t,this.style=n,d.isComposing()&&(this.anchor.offset-=e.length))}else{const t=new Set([...d.getParentKeys(),..._.getParentKeys()]),n=uo(d)?d:d.getParentOrThrow();let r=uo(_)?_:_.getParentOrThrow(),o=_;if(!n.is(r)&&r.isInline())do{o=r,r=r.getParentOrThrow()}while(r.isInline());if("text"===l.type&&(0!==c||""===_.getTextContent())||"element"===l.type&&_.getIndexWithinParent()<c)if(tr(_)&&!Jo(_)&&c!==_.getTextContentSize()){if(_.isSegmented()){const t=Zn(_.getTextContent());_.replace(t),_=t}po(l.getNode())||"text"!==l.type||(_=_.spliceText(0,c,"")),t.add(_.__key)}else{const t=_.getParentOrThrow();t.canBeEmpty()||1!==t.getChildrenSize()?_.remove():t.remove()}else t.add(_.__key);const i=r.getChildren(),s=new Set(u),g=n.is(r),p=n.isInline()&&null===d.getNextSibling()?n:d;for(let t=i.length-1;t>=0;t--){const e=i[t];if(e.is(d)||uo(e)&&e.isParentOf(d))break;e.isAttached()&&(!s.has(e)||e.is(o)?g||p.insertAfter(e,!1):e.remove())}if(!g){let e=r,n=null;for(;null!==e;){const r=e.getChildren(),o=r.length;(0===o||r[o-1].is(n))&&(t.delete(e.__key),n=e),e=e.getParent()}}if(Jo(d))if(a===h)d.select();else{const t=Zn(e);t.select(),d.replace(t)}else d=d.spliceText(a,h-a,e,!0),""===d.getTextContent()?d.remove():"text"===this.anchor.type&&(this.format=d.getFormat(),this.style=d.getStyle(),d.isComposing()&&(this.anchor.offset-=e.length));for(let e=1;e<f;e++){const n=u[e],r=n.__key;t.has(r)||n.remove()}}}removeText(){const t=Er()===this;js(this,Xs(Hs(this))),t&&Er()!==this&&ci(this)}formatText(t,e=null){if(this.isCollapsed())return this.toggleFormat(t),void Zo(null);const n=this.getNodes(),r=[];for(const t of n)tr(t)&&r.push(t);const o=e=>{n.forEach(n=>{if(uo(n)){const r=n.getFormatFlags(t,e);n.setTextFormat(r)}})},i=r.length;if(0===i)return this.toggleFormat(t),Zo(null),void o(e);const s=this.anchor,l=this.focus,a=this.isBackward(),c=a?l:s,u=a?s:l;let f=0,d=r[0],h="element"===c.type?0:c.offset;if("text"===c.type&&h===d.getTextContentSize()&&(f=1,d=r[1],h=0),null==d)return;const g=d.getFormatFlags(t,e);o(g);const _=i-1;let p=r[_];const y="text"===u.type?u.offset:p.getTextContentSize();if(d.is(p)){if(h===y)return;if(Yo(d)||0===h&&y===d.getTextContentSize())d.setFormat(g);else{const t=d.splitText(h,y),e=0===h?t[0]:t[1];e.setFormat(g),"text"===c.type&&c.set(e.__key,0,"text"),"text"===u.type&&u.set(e.__key,y-h,"text")}return void(this.format=g)}0===h||Yo(d)||([,d]=d.splitText(h),h=0),d.setFormat(g);const m=p.getFormatFlags(t,g);y>0&&(y===p.getTextContentSize()||Yo(p)||([p]=p.splitText(y)),p.setFormat(m));for(let e=f+1;e<_;e++){const n=r[e],o=n.getFormatFlags(t,m);n.setFormat(o)}"text"===c.type&&c.set(d.__key,h,"text"),"text"===u.type&&u.set(p.__key,y,"text"),this.format=g|m}insertNodes(e){if(0===e.length)return;if(this.isCollapsed()||this.removeText(),"root"===this.anchor.key){this.insertParagraph();const n=Er();return ur(n)||t(134),n.insertNodes(e)}const n=(this.isBackward()?this.focus:this.anchor).getNode(),r=us(n,ts),o=e[e.length-1];if(uo(r)&&"__language"in r){if("__language"in e[0])this.insertText(e[0].getTextContent());else{const t=Fr(this);r.splice(t,0,e),o.selectEnd()}return}if(!e.some(t=>(uo(t)||go(t))&&!t.isInline())){uo(r)||t(211,n.constructor.name,n.getType());const i=Fr(this);return r.splice(i,0,e),void o.selectEnd()}const i=function(t){const e=vo();let n=null;for(let r=0;r<t.length;r++){const o=t[r],i=Ln(o);if(i||go(o)&&o.isInline()||uo(o)&&o.isInline()||tr(o)||o.isParentRequired()){if(null===n&&(n=o.createParentElementNode(),e.append(n),i))continue;null!==n&&n.append(o)}else e.append(o),n=null}return e}(e),s=i.getLastDescendant(),l=i.getChildren(),a=!uo(r)||!r.isEmpty()?this.insertParagraph():null,c=l[l.length-1];let u=l[0];var f;uo(f=u)&&ts(f)&&!f.isEmpty()&&uo(r)&&(!r.isEmpty()||r.canMergeWhenEmpty())&&(uo(r)||t(211,n.constructor.name,n.getType()),r.append(...u.getChildren()),u=l[1]),u&&(null===r&&t(212,n.constructor.name,n.getType()),function(e,n){const r=n.getParentOrThrow().getLastChild();let o=n;const i=[n];for(;o!==r;)o.getNextSibling()||t(140),o=o.getNextSibling(),i.push(o);let s=e;for(const t of i)s=s.insertAfter(t)}(r,u));const d=us(s,ts);a&&uo(d)&&(a.canMergeWhenEmpty()||ts(c))&&(d.append(...a.getChildren()),a.remove()),uo(r)&&r.isEmpty()&&r.remove(),s.selectEnd();const h=uo(r)?r.getLastChild():null;Ln(h)&&d!==r&&h.remove()}insertParagraph(){if("root"===this.anchor.key){const t=vo();return li().splice(this.anchor.offset,0,[t]),t.select(),t}const e=Fr(this),n=us(this.anchor.getNode(),ts);uo(n)||t(213);const r=n.getChildAtIndex(e),o=r?[r,...r.getNextSiblings()]:[],i=n.insertNewAfter(this,!1);return i?(i.append(...o),i.selectStart(),i):null}insertLineBreak(t){const e=Fn();if(this.insertNodes([e]),t){const t=e.getParentOrThrow(),n=e.getIndexWithinParent();t.select(n,n)}}extract(){const t=[...this.getNodes()],e=t.length;let n=t[0],r=t[e-1];const[o,i]=gr(this),s=this.isBackward(),[l,a]=s?[this.focus,this.anchor]:[this.anchor,this.focus],[c,u]=s?[i,o]:[o,i];if(0===e)return[];if(1===e){if(tr(n)&&!this.isCollapsed()){const t=n.splitText(c,u),e=0===c?t[0]:t[1];return e?(l.set(e.getKey(),0,"text"),a.set(e.getKey(),e.getTextContentSize(),"text"),[e]):[]}return[n]}if(tr(n)&&(c===n.getTextContentSize()?t.shift():0!==c&&([,n]=n.splitText(c),t[0]=n,l.set(n.getKey(),0,"text"))),tr(r)){const e=r.getTextContent().length;0===u?t.pop():u!==e&&([r]=r.splitText(u),t[t.length-1]=r,a.set(r.getKey(),r.getTextContentSize(),"text"))}return t}modify(t,e,n){if(Rr(this,t,e,n))return;const r="move"===t,o=Vr(),i=Hi(Ki(o));if(!i)return;const s=o._blockCursorElement,l=o._rootElement,a=this.focus.getNode();if(null===l||null===s||!uo(a)||a.isInline()||a.canBeEmpty()||ji(s,o,l),this.dirty){let t=wi(o,this.anchor.key),e=wi(o,this.focus.key);"text"===this.anchor.type&&(t=Vo(t)),"text"===this.focus.type&&(e=Vo(e)),t&&e&&Dr(i,t,this.anchor.offset,e,this.focus.offset)}if(function(t,e,n,r){t.modify(e,n,r)}(i,t,e?"backward":"forward",n),i.rangeCount>0){const t=i.getRangeAt(0),n=this.anchor.getNode(),o=po(n)?n:Bi(n);if(this.applyDOMRange(t),this.dirty=!0,!r){const n=this.getNodes(),r=[];let s=!1;for(let t=0;t<n.length;t++){const e=n[t];Li(e,o)?r.push(e):s=!0}if(s&&r.length>0)if(e){const t=r[0];uo(t)?t.selectStart():t.getParentOrThrow().selectStart()}else{const t=r[r.length-1];uo(t)?t.selectEnd():t.getParentOrThrow().selectEnd()}i.anchorNode===t.startContainer&&i.anchorOffset===t.startOffset||function(t){const e=t.focus,n=t.anchor,r=n.key,o=n.offset,i=n.type;n.set(e.key,e.offset,e.type,!0),e.set(r,o,i,!0)}(this)}}"lineboundary"===n&&Rr(this,t,e,n,"decorators")}forwardDeletion(t,e,n){if(!n&&("element"===t.type&&uo(e)&&t.offset===e.getChildrenSize()||"text"===t.type&&t.offset===e.getTextContentSize())){const t=e.getParent(),n=e.getNextSibling()||(null===t?null:t.getNextSibling());if(uo(n)&&n.isShadowRoot())return!0}return!1}deleteCharacter(t){const e=this.isCollapsed();if(this.isCollapsed()){const e=this.anchor;let n=e.getNode();if(this.forwardDeletion(e,n,t))return;const r=Is(Us(e,t?"previous":"next"));if(r.getTextSlices().every(t=>null===t||0===t.distance)){let t={type:"initial"};for(const e of r.iterNodeCarets("shadowRoot"))if(Ss(e))if(e.origin.isInline());else{if(e.origin.isShadowRoot()){if("merge-block"===t.type)break;if(uo(r.anchor.origin)&&r.anchor.origin.isEmpty()){const t=Qs(e);js(this,Ls(t,t)),r.anchor.origin.remove()}return}"merge-next-block"!==t.type&&"merge-block"!==t.type||(t={block:t.block,caret:e,type:"merge-block"})}else{if("merge-block"===t.type)break;if(Cs(e)){if(uo(e.origin)){if(e.origin.isInline()){if(!e.origin.isParentOf(r.anchor.origin))break}else t={block:e.origin,type:"merge-next-block"};continue}if(go(e.origin)){if(e.origin.isIsolated());else if("merge-next-block"===t.type&&(e.origin.isKeyboardSelectable()||!e.origin.isInline())&&uo(r.anchor.origin)&&r.anchor.origin.isEmpty()){r.anchor.origin.remove();const t=vr();t.add(e.origin.getKey()),ci(t)}else e.origin.remove();return}break}}if("merge-block"===t.type){const{caret:e,block:n}=t;return js(this,Ls(!e.origin.isEmpty()&&n.isEmpty()?Vs(ks(n,e.direction)):r.anchor,e)),this.removeText()}}const o=this.focus;if(this.modify("extend",t,"character"),this.isCollapsed()){if(t&&0===e.offset&&_r(this,e.getNode()))return}else{const r="text"===o.type?o.getNode():null;if(n="text"===e.type?e.getNode():null,null!==r&&r.isSegmented()){const e=o.offset,i=r.getTextContentSize();if(r.is(n)||t&&e!==i||!t&&0!==e)return void yr(r,t,e)}else if(null!==n&&n.isSegmented()){const o=e.offset,i=n.getTextContentSize();if(n.is(r)||t&&0!==o||!t&&o!==i)return void yr(n,t,o)}!function(t,e){const n=t.anchor,r=t.focus,o=n.getNode(),i=r.getNode();if(o===i&&"text"===n.type&&"text"===r.type){const t=n.offset,i=r.offset,s=t<i,l=s?t:i,a=s?i:t,c=a-1;if(l!==c){(function(t){return!(fi(t)||pr(t))})(o.getTextContent().slice(l,a))&&(e?r.set(r.key,c,r.type):n.set(n.key,c,n.type))}}}(this,t)}}if(this.removeText(),t&&!e&&this.isCollapsed()&&"element"===this.anchor.type&&0===this.anchor.offset){const t=this.anchor.getNode();t.isEmpty()&&po(t.getParent())&&null===t.getPreviousSibling()&&_r(this,t)}}deleteLine(t){this.isCollapsed()&&this.modify("extend",t,"lineboundary"),this.isCollapsed()?this.deleteCharacter(t):this.removeText()}deleteWord(t){if(this.isCollapsed()){const e=this.anchor,n=e.getNode();if(this.forwardDeletion(e,n,t))return;this.modify("extend",t,"word")}this.isCollapsed()?this.deleteCharacter(t):this.removeText()}isBackward(){return this.focus.isBefore(this.anchor)}getStartEndPoints(){return[this.anchor,this.focus]}}function dr(t){return t instanceof cr}function hr(t){const e=t.offset;if("text"===t.type)return e;const n=t.getNode();return e===n.getChildrenSize()?n.getTextContent().length:0}function gr(t){const e=t.getStartEndPoints();if(null===e)return[0,0];const[n,r]=e;return"element"===n.type&&"element"===r.type&&n.key===r.key&&n.offset===r.offset?[0,0]:[hr(n),hr(r)]}function _r(t,e){for(let n=e;n;n=n.getParent()){if(uo(n)){if(n.collapseAtStart(t))return!0;if(zi(n))break}if(n.getPreviousSibling())break}return!1}const pr=(()=>{try{const t=new RegExp("\\p{Emoji}","u"),e=t.test.bind(t);if(e("\u2764\ufe0f")&&e("#\ufe0f\u20e3")&&e("\u{1f44d}"))return e}catch(t){}return()=>!1})();function yr(t,e,n){const r=t,o=r.getTextContent().split(/(?=\s)/g),i=o.length;let s=0,l=0;for(let t=0;t<i;t++){const r=t===i-1;if(l=s,s+=o[t].length,e&&s===n||s>n||r){o.splice(t,1),r&&(l=void 0);break}}const a=o.join("").trim();""===a?r.remove():(r.setTextContent(a),r.select(l,l))}function mr(e,n,r,o){let i,s=n;if(Gi(e)){let l=!1;const a=e.childNodes,c=a.length,u=o._blockCursorElement;s===c&&(l=!0,s=c-1);let f=a[s],d=!1;if(f===u)f=a[s+1],d=!0;else if(null!==u){const t=u.parentNode;if(e===t){n>Array.prototype.indexOf.call(t.children,u)&&s--}}if(i=ui(f),tr(i))s=Os(i,l?"next":"previous");else{let a=ui(e);if(null===a)return null;if(uo(a)){const c=o.getElementByKey(a.getKey());null===c&&t(214);const u=a.getDOMSlot(c);[a,s]=u.resolveChildIndex(a,c,e,n),uo(a)||t(215),l&&s>=a.getChildrenSize()&&(s=Math.max(0,a.getChildrenSize()-1));let f=a.getChildAtIndex(s);if(uo(f)&&function(t,e,n){const r=t.getParent();return null===n||null===r||!r.canBeEmpty()||r!==n.getNode()}(f,0,r)){const t=l?f.getLastDescendant():f.getFirstDescendant();null===t?a=f:(f=t,a=uo(f)?f:f.getParentOrThrow()),s=0}tr(f)?(i=f,a=null,s=Os(f,l?"next":"previous")):f!==a&&l&&!d&&(uo(a)||t(216),s=Math.min(a.getChildrenSize(),s+1))}else{const t=a.getIndexWithinParent();s=0===n&&go(a)&&ui(e)===a?t:t+1,a=a.getParentOrThrow()}if(uo(a))return sr(a.__key,s,"element")}}else i=ui(e);return tr(i)?sr(i.__key,Os(i,s,"clamp"),"text"):null}function xr(t,e,n){const r=t.offset,o=t.getNode();if(0===r){const r=o.getPreviousSibling(),i=o.getParent();if(e){if((n||!e)&&null===r&&uo(i)&&i.isInline()){const e=i.getPreviousSibling();tr(e)&&t.set(e.__key,e.getTextContent().length,"text")}}else uo(r)&&!n&&r.isInline()?t.set(r.__key,r.getChildrenSize(),"element"):tr(r)&&t.set(r.__key,r.getTextContent().length,"text")}else if(r===o.getTextContent().length){const r=o.getNextSibling(),i=o.getParent();if(e&&uo(r)&&r.isInline())t.set(r.__key,0,"element");else if((n||e)&&null===r&&uo(i)&&i.isInline()&&!i.canInsertTextAfter()){const e=i.getNextSibling();tr(e)&&t.set(e.__key,0,"text")}}}function Cr(t,e,n){if("text"===t.type&&"text"===e.type){const n=t.isBefore(e),r=t.is(e);xr(t,n,r),xr(e,!n,r),r&&e.set(t.key,t.offset,t.type)}}function Sr(t,e,n,r,o,i){if(null===t||null===n||!zo(o,t,n))return null;const s=mr(t,e,ur(i)?i.anchor:null,o);if(null===s)return null;const l=mr(n,r,ur(i)?i.focus:null,o);if(null===l)return null;if("element"===s.type&&"element"===l.type){const e=ui(t),r=ui(n);if(go(e)&&go(r))return null}return Cr(s,l),[s,l]}function Nr(t,e,n,r,o,i){const s=Hr(),l=new fr(sr(t,e,o),sr(n,r,i),0,"");return l.dirty=!0,s._selection=l,l}function Tr(){const t=sr("root",0,"element"),e=sr("root",0,"element");return new fr(t,e,0,"")}function vr(){return new cr(new Set)}function kr(t,e,n,r){const o=n._window;if(null===o)return null;const i=r||o.event,s=i?i.type:void 0,l="selectionchange"===s,a=!K&&(l||"beforeinput"===s||"compositionstart"===s||"compositionend"===s||"click"===s&&i&&3===i.detail||"drop"===s||void 0===s);let c,u,f,d;if(ur(t)&&!a)return t.clone();if(null===e)return null;if(c=e.anchorNode,u=e.focusNode,f=e.anchorOffset,d=e.focusOffset,(l||void 0===s)&&ur(t)&&!zo(n,c,u))return t.clone();const h=Sr(c,f,u,d,n,t);if(null===h)return null;const[g,_]=h;let p=0,y="";if(ur(t)){const e=t.anchor;if(g.key===e.key)p=t.format,y=t.style;else{const t=g.getNode();tr(t)?(p=t.getFormat(),y=t.getStyle()):uo(t)&&(p=t.getTextFormat(),y=t.getTextStyle())}}return new fr(g,_,p,y)}function Er(){return Hr()._selection}function Or(){return Vr()._editorState._selection}function Mr(t,e,n,r=1){const o=t.anchor,i=t.focus,s=o.getNode(),l=i.getNode();if(!e.is(s)&&!e.is(l))return;const a=e.__key;if(t.isCollapsed()){const e=o.offset;if(n<=e&&r>0||n<e&&r<0){const n=Math.max(0,e+r);o.set(a,n,"element"),i.set(a,n,"element"),br(t)}}else{const s=t.isBackward(),l=s?i:o,c=l.getNode(),u=s?o:i,f=u.getNode();if(e.is(c)){const t=l.offset;(n<=t&&r>0||n<t&&r<0)&&l.set(a,Math.max(0,t+r),"element")}if(e.is(f)){const t=u.offset;(n<=t&&r>0||n<t&&r<0)&&u.set(a,Math.max(0,t+r),"element")}}br(t)}function br(t){const e=t.anchor,n=e.offset,r=t.focus,o=r.offset,i=e.getNode(),s=r.getNode();if(t.isCollapsed()){if(!uo(i))return;const t=i.getChildrenSize(),o=n>=t,s=o?i.getChildAtIndex(t-1):i.getChildAtIndex(n);if(tr(s)){let t=0;o&&(t=s.getTextContentSize()),e.set(s.__key,t,"text"),r.set(s.__key,t,"text")}return}if(uo(i)){const t=i.getChildrenSize(),r=n>=t,o=r?i.getChildAtIndex(t-1):i.getChildAtIndex(n);if(tr(o)){let t=0;r&&(t=o.getTextContentSize()),e.set(o.__key,t,"text")}}if(uo(s)){const t=s.getChildrenSize(),e=o>=t,n=e?s.getChildAtIndex(t-1):s.getChildAtIndex(o);if(tr(n)){let t=0;e&&(t=n.getTextContentSize()),r.set(n.__key,t,"text")}}}function Ar(t,e,n,r,o){let i=null,s=0,l=null;null!==r?(i=r.__key,tr(r)?(s=r.getTextContentSize(),l="text"):uo(r)&&(s=r.getChildrenSize(),l="element")):null!==o&&(i=o.__key,tr(o)?l="text":uo(o)&&(l="element")),null!==i&&null!==l?t.set(i,s,l):(s=e.getIndexWithinParent(),-1===s&&(s=n.getChildrenSize()),t.set(n.__key,s,"element"))}function wr(t,e,n,r,o){"text"===t.type?t.set(n,t.offset+(e?0:o),"text"):t.offset>r.getIndexWithinParent()&&t.set(t.key,t.offset-1,"element")}function Dr(t,e,n,r,o){try{t.setBaseAndExtent(e,n,r,o)}catch(t){}}function Pr(t,e,n){const r=wi(t,e.getKey());if(uo(e)){const t=e.getDOMSlot(r);return[t.element,n+t.getFirstChildOffset()]}return[r,n]}function Ir(t,e,n,r,o,s,l){const a=r.anchorNode,c=r.focusNode,u=r.anchorOffset,f=r.focusOffset,d=document.activeElement;if(o.has(On)&&d!==s||null!==d&&Bo(d))return;if(!ur(e))return void(null!==t&&zo(n,a,c)&&r.removeAllRanges());const h=e.anchor,g=e.focus,_=h.getNode(),p=g.getNode(),[y,m]=Pr(n,_,h.offset),[x,C]=Pr(n,p,g.offset),S=e.format,N=e.style,T=e.isCollapsed();let v=y,k=x,E=!1;var O,M,b,A,w;if(("text"===h.type?(v=Vo(y),E=_.getFormat()!==S||_.getStyle()!==N):ur(t)&&"text"===t.anchor.type&&(E=!0),"text"===g.type&&(k=Vo(x)),null!==v&&null!==k)&&(T&&(null===t||E||ur(t)&&(t.format!==S||t.style!==N))&&(O=S,M=N,b=m,A=h.key,w=performance.now(),en=[O,M,b,A,w]),u!==m||f!==C||a!==v||c!==k||"Range"===r.type&&T||(null!==d&&s.contains(d)||o.has(An)||s.focus({preventScroll:!0}),"element"===h.type))){if(Dr(r,v,m,k,C),!i||!e.isCollapsed()||null===s||o.has(An)||null!==document.activeElement&&s.contains(document.activeElement)||s.focus({preventScroll:!0}),!o.has(Mn)&&e.isCollapsed()&&null!==s&&s===document.activeElement){const t=ur(e)&&"element"===e.anchor.type?v.childNodes[m]||null:r.rangeCount>0?r.getRangeAt(0):null;if(null!==t){let e;if(t instanceof Text){const n=document.createRange();n.selectNode(t),e=n.getBoundingClientRect()}else e=t.getBoundingClientRect();!function(t,e,n){const r=Pi(n),o=Ri(r);if(null===r||null===o)return;let{top:i,bottom:s}=e,l=0,a=0,c=n;for(;null!==c;){const e=c===r.body;if(e){l=0,a=Ki(t).innerHeight;const e=o.getComputedStyle(r.documentElement),n=parseFloat(e.scrollPaddingTop),i=parseFloat(e.scrollPaddingBottom);isFinite(n)&&(l+=n),isFinite(i)&&(a-=i)}else{const t=c.getBoundingClientRect();l=t.top,a=t.bottom}let n=0;if(i<l?n=-(l-i):s>a&&(n=s-a),0!==n)if(e)o.scrollBy(0,n);else{const t=c.scrollTop;c.scrollTop+=n;const e=c.scrollTop-t;i-=e,s-=e}if(e)break;c=Di(c)}}(n,e,s)}}Ve=!0}}function Fr(e){let n=e;e.isCollapsed()||n.removeText();const r=Er();ur(r)&&(n=r),ur(n)||t(161);const o=n.anchor;let i=o.getNode(),s=o.offset;for(;!ts(i);){const t=i;if([i,s]=Lr(i,s),t.is(i))break}return s}function Lr(t,e){const n=t.getParent();if(!n){const t=vo();return li().append(t),t.select(),[li(),0]}if(tr(t)){const r=t.splitText(e);if(0===r.length)return[n,t.getIndexWithinParent()];const o=0===e?0:1;return[n,r[0].getIndexWithinParent()+o]}if(!uo(t)||0===e)return[n,t.getIndexWithinParent()];const r=t.getChildAtIndex(e);if(r){const n=new fr(sr(t.__key,e,"element"),sr(t.__key,e,"element"),0,""),o=t.insertNewAfter(n);o&&o.append(r,...r.getNextSiblings())}return[n,t.getIndexWithinParent()+1]}function Rr(t,e,n,r,o="decorators-and-blocks"){if("move"===e&&"character"===r&&!t.isCollapsed()){const[e,r]=n===t.isBackward()?[t.focus,t.anchor]:[t.anchor,t.focus];return r.set(e.key,e.offset,e.type),!0}const i=Us(t.focus,n?"previous":"next"),s="lineboundary"===r,l="move"===e;let a=i,c="decorators-and-blocks"===o;if(!Zs(a)){for(const t of a){c=!1;const{origin:e}=t;if(!go(e)||e.isIsolated()||(a=t,!s||!e.isInline()))break}if(c)for(const t of Is(i).iterNodeCarets("extend"===e?"shadowRoot":"root")){if(Ss(t))t.origin.isInline()||(a=t);else{if(uo(t.origin))continue;go(t.origin)&&!t.origin.isInline()&&(a=t)}break}}if(a===i)return!1;if(l&&!s&&go(a.origin)&&a.origin.isKeyboardSelectable()){const t=vr();return t.add(a.origin.getKey()),ci(t),!0}return a=Qs(a),l&&Js(t.anchor,a),Js(t.focus,a),c||!s}let Kr=null,Br=null,zr=!1,Wr=!1,$r=0;const Ur={characterData:!0,childList:!0,subtree:!0};function Jr(){return zr||null!==Kr&&Kr._readOnly}function Yr(){zr&&t(13)}function jr(){$r>99&&t(14)}function Hr(){return null===Kr&&t(195,Gr()),Kr}function Vr(){return null===Br&&t(196,Gr()),Br}function Gr(){let t=0;const e=new Set,n=wo.version;if("undefined"!=typeof window)for(const r of document.querySelectorAll("[contenteditable]")){const o=Uo(r);if(Wo(o))t++;else if(o){let t=String(o.constructor.version||"<0.17.1");t===n&&(t+=" (separately built, likely a bundler configuration issue)"),e.add(t)}}let r=` Detected on the page: ${t} compatible editor(s) with version ${n}`;return e.size&&(r+=` and incompatible editors with versions ${Array.from(e).join(", ")}`),r}function qr(){return Br}function Xr(t,e,n){const r=e.__type,o=Fo(t,r);let i=n.get(r);void 0===i&&(i=Array.from(o.transforms),n.set(r,i));const s=i.length;for(let t=0;t<s&&(i[t](e),e.isAttached());t++);}function Qr(t,e){return void 0!==t&&t.__key!==e&&t.isAttached()}function Zr(t,e){if(!e)return;const n=t._updateTags;let r=e;Array.isArray(e)||(r=[e]);for(const t of r)n.add(t)}function to(e,n){const r=e.type,o=n.get(r);void 0===o&&t(17,r);const i=o.klass;e.type!==i.getType()&&t(18,i.name);const s=i.importJSON(e),l=e.children;if(uo(s)&&Array.isArray(l))for(let t=0;t<l.length;t++){const e=to(l[t],n);s.append(e)}return s}function eo(t,e,n){const r=Kr,o=zr,i=Br;Kr=e,zr=!0,Br=t;try{return n()}finally{Kr=r,zr=o,Br=i}}function no(t,e){const n=t._pendingEditorState,r=t._rootElement,o=t._headless||null===r;if(null===n)return;const i=t._editorState,s=i._selection,l=n._selection,a=0!==t._dirtyType,c=Kr,u=zr,f=Br,d=t._updating,h=t._observer;let g=null;if(t._pendingEditorState=null,t._editorState=n,!o&&a&&null!==h){Br=t,Kr=n,zr=!1,t._updating=!0;try{const e=t._dirtyType,r=t._dirtyElements,o=t._dirtyLeaves;h.disconnect(),g=$t(i,n,t,e,r,o)}catch(e){if(e instanceof Error&&t._onError(e),Wr)throw e;return Oo(t,null,r,n),H(t),t._dirtyType=2,Wr=!0,no(t,i),void(Wr=!1)}finally{h.observe(r,Ur),t._updating=d,Kr=c,zr=u,Br=f}}n._readOnly||(n._readOnly=!0);const _=t._dirtyLeaves,p=t._dirtyElements,y=t._normalizedNodes,m=t._updateTags,x=t._deferred;a&&(t._dirtyType=0,t._cloneNotNeeded.clear(),t._dirtyLeaves=new Set,t._dirtyElements=new Map,t._normalizedNodes=new Set,t._updateTags=new Set),function(t,e){const n=t._decorators;let r=t._pendingDecorators||n;const o=e._nodeMap;let i;for(i in r)o.has(i)||(r===n&&(r=ii(t)),delete r[i])}(t,n);const C=o?null:Hi(Ki(t));if(t._editable&&null!==C&&(a||null===l||l.dirty||!l.is(s))&&null!==r&&!m.has(bn)){Br=t,Kr=n;try{if(null!==h&&h.disconnect(),a||null===l||l.dirty){const e=t._blockCursorElement;null!==e&&ji(e,t,r),Ir(s,l,t,C,m,r)}!function(t,e,n){let r=t._blockCursorElement;if(ur(n)&&n.isCollapsed()&&"element"===n.anchor.type&&e.contains(document.activeElement)){const o=n.anchor,i=o.getNode(),s=o.offset;let l=!1,a=null;if(s===i.getChildrenSize()){Yi(i.getChildAtIndex(s-1))&&(l=!0)}else{const e=i.getChildAtIndex(s);if(null!==e&&Yi(e)){const n=e.getPreviousSibling();(null===n||Yi(n))&&(l=!0,a=t.getElementByKey(e.__key))}}if(l){const n=t.getElementByKey(i.__key);return null===r&&(t._blockCursorElement=r=function(t){const e=t.theme,n=document.createElement("div");n.contentEditable="false",n.setAttribute("data-lexical-cursor","true");let r=e.blockCursor;if(void 0!==r){if("string"==typeof r){const t=il(r);r=e.blockCursor=t}void 0!==r&&n.classList.add(...r)}return n}(t._config)),e.style.caretColor="transparent",void(null===a?n.appendChild(r):n.insertBefore(r,a))}}null!==r&&ji(r,t,e)}(t,r,l)}finally{null!==h&&h.observe(r,Ur),Br=f,Kr=c}}null!==g&&function(t,e,n,r,o){const i=Array.from(t._listeners.mutation),s=i.length;for(let t=0;t<s;t++){const[s,l]=i[t];for(const t of l){const i=e.get(t);void 0!==i&&s(i,{dirtyLeaves:r,prevEditorState:o,updateTags:n})}}}(t,g,m,_,i),ur(l)||null===l||null!==s&&s.is(l)||t.dispatchCommand(Yt,void 0);const S=t._pendingDecorators;null!==S&&(t._decorators=S,t._pendingDecorators=null,ro("decorator",t,!0,S)),function(t,e,n){const r=si(e),o=si(n);r!==o&&ro("textcontent",t,!0,o)}(t,e||i,n),ro("update",t,!0,{dirtyElements:p,dirtyLeaves:_,editorState:n,mutatedNodes:g,normalizedNodes:y,prevEditorState:e||i,tags:m}),function(t,e){if(t._deferred=[],0!==e.length){const n=t._updating;t._updating=!0;try{for(let t=0;t<e.length;t++)e[t]()}finally{t._updating=n}}}(t,x),function(t){const e=t._updates;if(0!==e.length){const n=e.shift();if(n){const[e,r]=n;io(t,e,r)}}}(t)}function ro(t,e,n,...r){const o=e._updating;e._updating=n;try{const n=e._listeners[t],o=Array.from(n);for(const[t,e]of o){e&&e();const o=t(...r);n.has(t)?n.set(t,o):o&&o()}}finally{e._updating=o}}function oo(e,n){const r=e._updates;let o=n||!1;for(;0!==r.length;){const n=r.shift();if(n){const[r,i]=n,s=e._pendingEditorState;let l;void 0!==i&&(l=i.onUpdate,i.skipTransforms&&(o=!0),i.discrete&&(null===s&&t(191),s._flushSync=!0),l&&e._deferred.push(l),Zr(e,i.tag)),null==s?io(e,r,i):r()}}return o}function io(e,n,r){const o=e._updateTags;let i,s=!1,l=!1;void 0!==r&&(i=r.onUpdate,Zr(e,r.tag),s=r.skipTransforms||!1,l=r.discrete||!1),i&&e._deferred.push(i);const a=e._editorState;let c=e._pendingEditorState,u=!1;(null===c||c._readOnly)&&(c=e._pendingEditorState=yo(c||a),u=!0),c._flushSync=l;const f=Kr,d=zr,h=Br,g=e._updating;Kr=c,zr=!1,e._updating=!0,Br=e;const _=e._headless||null===e.getRootElement();Po(null);try{u&&(_?null!==a._selection&&(c._selection=a._selection.clone()):c._selection=function(t,e){const n=t.getEditorState()._selection,r=Hi(Ki(t));return ur(n)||null==n?kr(n,r,t,e):n.clone()}(e,r&&r.event||null));const o=e._compositionKey;n(),s=oo(e,s),function(t,e){const n=e.getEditorState()._selection,r=t._selection;if(ur(r)){const t=r.anchor,e=r.focus;let o;if("text"===t.type&&(o=t.getNode(),o.selectionTransform(n,r)),"text"===e.type){const t=e.getNode();o!==t&&t.selectionTransform(n,r)}}}(c,e),0!==e._dirtyType&&(s?function(t,e){const n=e._dirtyLeaves,r=t._nodeMap;for(const t of n){const e=r.get(t);tr(e)&&e.isAttached()&&e.isSimpleText()&&!e.isUnmergeable()&&lt(e)}}(c,e):function(t,e){const n=e._dirtyLeaves,r=e._dirtyElements,o=t._nodeMap,i=ti(),s=new Map;let l=n,a=l.size,c=r,u=c.size;for(;a>0||u>0;){if(a>0){e._dirtyLeaves=new Set;for(const t of l){const r=o.get(t);tr(r)&&r.isAttached()&&r.isSimpleText()&&!r.isUnmergeable()&&lt(r),void 0!==r&&Qr(r,i)&&Xr(e,r,s),n.add(t)}if(l=e._dirtyLeaves,a=l.size,a>0){$r++;continue}}e._dirtyLeaves=new Set,e._dirtyElements=new Map,c.delete("root")&&c.set("root",!0);for(const t of c){const n=t[0],l=t[1];if(r.set(n,l),!l)continue;const a=o.get(n);void 0!==a&&Qr(a,i)&&Xr(e,a,s)}l=e._dirtyLeaves,a=l.size,c=e._dirtyElements,u=c.size,$r++}e._dirtyLeaves=n,e._dirtyElements=r}(c,e),oo(e),function(t,e,n,r){const o=t._nodeMap,i=e._nodeMap,s=[];for(const[t]of r){const e=i.get(t);void 0!==e&&(e.isAttached()||(uo(e)&&R(e,t,o,i,s,r),o.has(t)||r.delete(t),s.push(t)))}for(const t of s)i.delete(t);for(const t of n){const e=i.get(t);void 0===e||e.isAttached()||(o.has(t)||n.delete(t),i.delete(t))}}(a,c,e._dirtyLeaves,e._dirtyElements));o!==e._compositionKey&&(c._flushSync=!0);const i=c._selection;if(ur(i)){const e=c._nodeMap,n=i.anchor.key,r=i.focus.key;void 0!==e.get(n)&&void 0!==e.get(r)||t(19)}else dr(i)&&0===i._nodes.size&&(c._selection=null)}catch(t){return t instanceof Error&&e._onError(t),e._pendingEditorState=a,e._dirtyType=2,e._cloneNotNeeded.clear(),e._dirtyLeaves=new Set,e._dirtyElements.clear(),void no(e)}finally{Kr=f,zr=d,Br=h,e._updating=g,$r=0}const p=0!==e._dirtyType||e._deferred.length>0||function(t,e){const n=e.getEditorState()._selection,r=t._selection;if(null!==r){if(r.dirty||!r.is(n))return!0}else if(null!==n)return!0;return!1}(c,e);p?c._flushSync?(c._flushSync=!1,no(e)):u&&Ro(()=>{no(e)}):(c._flushSync=!1,u&&(o.clear(),e._deferred=[],e._pendingEditorState=null))}function so(t,e,n){Br===t&&void 0===n?e():io(t,e,n)}class lo{element;before;after;constructor(t,e,n){this.element=t,this.before=e||null,this.after=n||null}withBefore(t){return new lo(this.element,t,this.after)}withAfter(t){return new lo(this.element,this.before,t)}withElement(t){return this.element===t?this:new lo(t,this.before,this.after)}insertChild(e){const n=this.before||this.getManagedLineBreak();return null!==n&&n.parentElement!==this.element&&t(222),this.element.insertBefore(e,n),this}removeChild(e){return e.parentElement!==this.element&&t(223),this.element.removeChild(e),this}replaceChild(e,n){return n.parentElement!==this.element&&t(224),this.element.replaceChild(e,n),this}getFirstChild(){const t=this.after?this.after.nextSibling:this.element.firstChild;return t===this.before||t===this.getManagedLineBreak()?null:t}getManagedLineBreak(){return this.element.__lexicalLineBreak||null}setManagedLineBreak(t){if(null===t)this.removeManagedLineBreak();else{const e="decorator"===t&&(d||a||l);this.insertManagedLineBreak(e)}}removeManagedLineBreak(){const t=this.getManagedLineBreak();if(t){const e=this.element,n="IMG"===t.nodeName?t.nextSibling:null;n&&e.removeChild(n),e.removeChild(t),e.__lexicalLineBreak=void 0}}insertManagedLineBreak(t){const e=this.getManagedLineBreak();if(e){if(t===("IMG"===e.nodeName))return;this.removeManagedLineBreak()}const n=this.element,r=this.before,o=document.createElement("br");if(n.insertBefore(o,r),t){const t=document.createElement("img");t.setAttribute("data-lexical-linebreak","true"),t.style.cssText="display: inline !important; border: 0px !important; margin: 0px !important;",t.alt="",n.insertBefore(t,o),n.__lexicalLineBreak=t}else n.__lexicalLineBreak=o}getFirstChildOffset(){let t=0;for(let e=this.after;null!==e;e=e.previousSibling)t++;return t}resolveChildIndex(t,e,n,r){if(n===this.element){const e=this.getFirstChildOffset();return[t,Math.min(e+t.getChildrenSize(),Math.max(e,r))]}const o=ao(e,n);o.push(r);const i=ao(e,this.element);let s=t.getIndexWithinParent();for(let t=0;t<i.length;t++){const e=o[t],n=i[t];if(void 0===e||e<n)break;if(e>n){s+=1;break}}return[t.getParentOrThrow(),s]}}function ao(e,n){const r=[];let o=n;for(;o!==e&&null!==o;o=o.parentNode){let t=0;for(let e=o.previousSibling;null!==e;e=e.previousSibling)t++;r.push(t)}return o!==e&&t(225),r.reverse()}class co extends kn{__first;__last;__size;__format;__style;__indent;__dir;__textFormat;__textStyle;constructor(t){super(t),this.__first=null,this.__last=null,this.__size=0,this.__format=0,this.__style="",this.__indent=0,this.__dir=null,this.__textFormat=0,this.__textStyle=""}afterCloneFrom(t){super.afterCloneFrom(t),this.__key===t.__key&&(this.__first=t.__first,this.__last=t.__last,this.__size=t.__size),this.__indent=t.__indent,this.__format=t.__format,this.__style=t.__style,this.__dir=t.__dir,this.__textFormat=t.__textFormat,this.__textStyle=t.__textStyle}getFormat(){return this.getLatest().__format}getFormatType(){const t=this.getFormat();return P[t]||""}getStyle(){return this.getLatest().__style}getIndent(){return this.getLatest().__indent}getChildren(){const t=[];let e=this.getFirstChild();for(;null!==e;)t.push(e),e=e.getNextSibling();return t}getChildrenKeys(){const t=[];let e=this.getFirstChild();for(;null!==e;)t.push(e.__key),e=e.getNextSibling();return t}getChildrenSize(){return this.getLatest().__size}isEmpty(){return 0===this.getChildrenSize()}isDirty(){const t=Vr()._dirtyElements;return null!==t&&t.has(this.__key)}isLastChild(){const t=this.getLatest(),e=this.getParentOrThrow().getLastChild();return null!==e&&e.is(t)}getAllTextNodes(){const t=[];let e=this.getFirstChild();for(;null!==e;){if(tr(e)&&t.push(e),uo(e)){const n=e.getAllTextNodes();t.push(...n)}e=e.getNextSibling()}return t}getFirstDescendant(){let t=this.getFirstChild();for(;uo(t);){const e=t.getFirstChild();if(null===e)break;t=e}return t}getLastDescendant(){let t=this.getLastChild();for(;uo(t);){const e=t.getLastChild();if(null===e)break;t=e}return t}getDescendantByIndex(t){const e=this.getChildren(),n=e.length;if(t>=n){const t=e[n-1];return uo(t)&&t.getLastDescendant()||t||null}const r=e[t];return uo(r)&&r.getFirstDescendant()||r||null}getFirstChild(){const t=this.getLatest().__first;return null===t?null:ei(t)}getFirstChildOrThrow(){const e=this.getFirstChild();return null===e&&t(45,this.__key),e}getLastChild(){const t=this.getLatest().__last;return null===t?null:ei(t)}getLastChildOrThrow(){const e=this.getLastChild();return null===e&&t(96,this.__key),e}getChildAtIndex(t){const e=this.getChildrenSize();let n,r;if(t<e/2){for(n=this.getFirstChild(),r=0;null!==n&&r<=t;){if(r===t)return n;n=n.getNextSibling(),r++}return null}for(n=this.getLastChild(),r=e-1;null!==n&&r>=t;){if(r===t)return n;n=n.getPreviousSibling(),r--}return null}getTextContent(){let t="";const e=this.getChildren(),n=e.length;for(let r=0;r<n;r++){const o=e[r];t+=o.getTextContent(),uo(o)&&r!==n-1&&!o.isInline()&&(t+=v)}return t}getTextContentSize(){let t=0;const e=this.getChildren(),n=e.length;for(let r=0;r<n;r++){const o=e[r];t+=o.getTextContentSize(),uo(o)&&r!==n-1&&!o.isInline()&&(t+=2)}return t}getDirection(){return this.getLatest().__dir}getTextFormat(){return this.getLatest().__textFormat}hasFormat(t){if(""!==t){const e=D[t];return 0!==(this.getFormat()&e)}return!1}hasTextFormat(t){const e=A[t];return 0!==(this.getTextFormat()&e)}getFormatFlags(t,e){return Go(this.getLatest().__textFormat,t,e)}getTextStyle(){return this.getLatest().__textStyle}select(t,e){Yr();const n=Er();let r=t,o=e;const i=this.getChildrenSize();if(!this.canBeEmpty())if(0===t&&0===e){const t=this.getFirstChild();if(tr(t)||uo(t))return t.select(0,0)}else if(!(void 0!==t&&t!==i||void 0!==e&&e!==i)){const t=this.getLastChild();if(tr(t)||uo(t))return t.select()}void 0===r&&(r=i),void 0===o&&(o=i);const s=this.__key;return ur(n)?(n.anchor.set(s,r,"element"),n.focus.set(s,o,"element"),n.dirty=!0,n):Nr(s,r,s,o,"element","element")}selectStart(){const t=this.getFirstDescendant();return t?t.selectStart():this.select()}selectEnd(){const t=this.getLastDescendant();return t?t.selectEnd():this.select()}clear(){const t=this.getWritable();return this.getChildren().forEach(t=>t.remove()),t}append(...t){return this.splice(this.getChildrenSize(),0,t)}setDirection(t){const e=this.getWritable();return e.__dir=t,e}setFormat(t){return this.getWritable().__format=""!==t?D[t]:0,this}setStyle(t){return this.getWritable().__style=t||"",this}setTextFormat(t){const e=this.getWritable();return e.__textFormat=t,e}setTextStyle(t){const e=this.getWritable();return e.__textStyle=t,e}setIndent(t){return this.getWritable().__indent=t,this}splice(e,n,r){vn(this)&&t(324,this.__key,this.__type);const o=this.getChildrenSize(),i=this.getWritable();e+n<=o||t(226,String(e),String(n),String(o));const s=i.__key,l=[],a=[],c=this.getChildAtIndex(e+n);let u=null,f=o-n+r.length;if(0!==e)if(e===o)u=this.getLastChild();else{const t=this.getChildAtIndex(e);null!==t&&(u=t.getPreviousSibling())}if(n>0){let e=null===u?this.getFirstChild():u.getNextSibling();for(let r=0;r<n;r++){null===e&&t(100);const n=e.getNextSibling(),r=e.__key;Xo(e.getWritable()),a.push(r),e=n}}let d=u;for(const e of r){null!==d&&e.is(d)&&(u=d=d.getPreviousSibling());const n=e.getWritable();n.__parent===s&&f--,Xo(n);const r=e.__key;if(null===d)i.__first=r,n.__prev=null;else{const t=d.getWritable();t.__next=r,n.__prev=t.__key}e.__key===s&&t(76),n.__parent=s,l.push(r),d=e}if(e+n===o){if(null!==d){d.getWritable().__next=null,i.__last=d.__key}}else if(null!==c){const t=c.getWritable();if(null!==d){const e=d.getWritable();t.__prev=d.__key,e.__next=c.__key}else t.__prev=null}if(i.__size=f,a.length){const t=Er();if(ur(t)){const e=new Set(a),n=new Set(l),{anchor:r,focus:o}=t;fo(r,e,n)&&Ar(r,r.getNode(),this,u,c),fo(o,e,n)&&Ar(o,o.getNode(),this,u,c),0!==f||this.canBeEmpty()||zi(this)||this.remove()}}return i}getDOMSlot(t){return new lo(t)}exportDOM(t){const{element:e}=super.exportDOM(t);if(Gi(e)){const t=this.getIndent();t>0&&(e.style.paddingInlineStart=40*t+"px");const n=this.getDirection();n&&(e.dir=n)}return{element:e}}exportJSON(){const t={children:[],direction:this.getDirection(),format:this.getFormatType(),indent:this.getIndent(),...super.exportJSON()},e=this.getTextFormat(),n=this.getTextStyle();return 0===e&&""===n||zi(this)||this.getChildren().some(tr)||(0!==e&&(t.textFormat=e),""!==n&&(t.textStyle=n)),t}updateFromJSON(t){return super.updateFromJSON(t).setFormat(t.format).setIndent(t.indent).setDirection(t.direction).setTextFormat(t.textFormat||0).setTextStyle(t.textStyle||"")}insertNewAfter(t,e){return null}canIndent(){return!0}collapseAtStart(t){return!1}excludeFromCopy(t){return!1}canReplaceWith(t){return!0}canInsertAfter(t){return!0}canBeEmpty(){return!0}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}isInline(){return!1}isShadowRoot(){return!1}canMergeWith(t){return!1}extractWithChild(t,e,n){return!1}canMergeWhenEmpty(){return!1}reconcileObservedMutation(t,e){const n=this.getDOMSlot(t);let r=n.getFirstChild();for(let t=this.getFirstChild();t;t=t.getNextSibling()){const o=e.getElementByKey(t.getKey());null!==o&&(null==r?(n.insertChild(o),r=o):r!==o&&n.replaceChild(o,r),r=r.nextSibling)}}}function uo(t){return t instanceof co}function fo(t,e,n){let r=t.getNode();for(;r;){const t=r.__key;if(e.has(t)&&!n.has(t))return!0;r=r.getParent()}return!1}class ho extends kn{decorate(t,e){return null}isIsolated(){return!1}isInline(){return!0}isKeyboardSelectable(){return!0}}function go(t){return t instanceof ho}class _o extends co{__cachedText;static getType(){return"root"}static clone(){return new _o}constructor(){super("root"),this.__cachedText=null}getTopLevelElementOrThrow(){t(51)}getTextContent(){const t=this.__cachedText;return!Jr()&&0!==Vr()._dirtyType||null===t?super.getTextContent():t}remove(){t(52)}replace(e){t(53)}insertBefore(e){t(54)}insertAfter(e){t(55)}updateDOM(t,e){return!1}splice(e,n,r){for(const e of r)uo(e)||go(e)||t(282);return super.splice(e,n,r)}static importJSON(t){return li().updateFromJSON(t)}collapseAtStart(){return!0}}function po(t){return t instanceof _o}function yo(t){return new Co(new Map(t._nodeMap))}function mo(){return new Co(new Map([["root",new _o]]))}function xo(e){const n=e.exportJSON(),r=e.constructor;if(n.type!==r.getType()&&t(130,r.name),uo(e)){const o=n.children;Array.isArray(o)||t(59,r.name);const i=e.getChildren();for(let t=0;t<i.length;t++){const e=xo(i[t]);o.push(e)}}return n}class Co{_nodeMap;_selection;_flushSync;_readOnly;constructor(t,e){this._nodeMap=t,this._selection=e||null,this._flushSync=!1,this._readOnly=!1}isEmpty(){return 1===this._nodeMap.size&&null===this._selection}read(t,e){return eo(e&&e.editor||null,this,t)}clone(t){const e=new Co(this._nodeMap,void 0===t?this._selection:t);return e._readOnly=!0,e}toJSON(){return eo(null,this,()=>({root:xo(li())}))}}class So extends co{static getType(){return"artificial"}createDOM(t){return document.createElement("div")}}class No extends co{static getType(){return"paragraph"}static clone(t){return new No(t.__key)}createDOM(t){const e=document.createElement("p"),n=ki(t.theme,"paragraph");if(void 0!==n){e.classList.add(...n)}return e}updateDOM(t,e,n){return!1}static importDOM(){return{p:t=>({conversion:To,priority:0})}}exportDOM(t){const{element:e}=super.exportDOM(t);if(Gi(e)){this.isEmpty()&&e.append(document.createElement("br"));const t=this.getFormatType();t&&(e.style.textAlign=t)}return{element:e}}static importJSON(t){return vo().updateFromJSON(t)}exportJSON(){const t=super.exportJSON();if(void 0===t.textFormat||void 0===t.textStyle){const e=this.getChildren().find(tr);e?(t.textFormat=e.getFormat(),t.textStyle=e.getStyle()):(t.textFormat=this.getTextFormat(),t.textStyle=this.getTextStyle())}return t}insertNewAfter(t,e){const n=vo();n.setTextFormat(t.format),n.setTextStyle(t.style);const r=this.getDirection();return n.setDirection(r),n.setFormat(this.getFormatType()),n.setStyle(this.getStyle()),this.insertAfter(n,e),n}collapseAtStart(){const t=this.getChildren();if(0===t.length||tr(t[0])&&""===t[0].getTextContent().trim()){if(null!==this.getNextSibling())return this.selectNext(),this.remove(),!0;if(null!==this.getPreviousSibling())return this.selectPrevious(),this.remove(),!0}return!1}}function To(t){const e=vo();if(t.style&&(e.setFormat(t.style.textAlign),ss(t,e)),""===e.getFormatType()){const n=t.getAttribute("align");n&&n&&n in D&&e.setFormat(n)}return{node:e}}function vo(){return $i(new No)}function ko(t){return t instanceof No}const Eo=0;function Oo(t,e,n,r){const o=t._keyToDOMMap;o.clear(),t._editorState=mo(),t._pendingEditorState=r,t._compositionKey=null,t._dirtyType=0,t._cloneNotNeeded.clear(),t._dirtyLeaves=new Set,t._dirtyElements.clear(),t._normalizedNodes=new Set,t._updateTags=new Set,t._updates=[],t._blockCursorElement=null;const i=t._observer;null!==i&&(i.disconnect(),t._observer=null),null!==e&&(e.textContent=""),null!==n&&(n.textContent="",o.set("root",n))}function Mo(t){const e=new Set,n=new Set;let r=t;for(;r;){const{ownNodeConfig:t}=cs(r),o=r.transform;if(!n.has(o)){n.add(o);const t=r.transform();t&&e.add(t)}if(t){const n=t.$transform;n&&e.add(n),r=t.extends}else{const t=Object.getPrototypeOf(r);r=t.prototype instanceof kn&&t!==kn?t:void 0}}return e}function bo(t,e){const n=t.get(e);t.delete(e),n&&n()}function Ao(t,e,n){return t.set(e,n),bo.bind(null,t,e)}class wo{static version;_headless;_parentEditor;_rootElement;_editorState;_pendingEditorState;_compositionKey;_deferred;_keyToDOMMap;_updates;_updating;_listeners;_commands;_nodes;_decorators;_pendingDecorators;_config;_dirtyType;_cloneNotNeeded;_dirtyLeaves;_dirtyElements;_normalizedNodes;_updateTags;_observer;_key;_onError;_htmlConversions;_window;_editable;_blockCursorElement;_createEditorArgs;constructor(t,e,n,r,o,i,s,l){this._createEditorArgs=l,this._parentEditor=e,this._rootElement=null,this._editorState=t,this._pendingEditorState=null,this._compositionKey=null,this._deferred=[],this._keyToDOMMap=new Map,this._updates=[],this._updating=!1,this._listeners={decorator:new Map,editable:new Map,mutation:new Map,root:new Map,textcontent:new Map,update:new Map},this._commands=new Map,this._config=r,this._nodes=n,this._decorators={},this._pendingDecorators=null,this._dirtyType=0,this._cloneNotNeeded=new Set,this._dirtyLeaves=new Set,this._dirtyElements=new Map,this._normalizedNodes=new Set,this._updateTags=new Set,this._observer=null,this._key=hi(),this._onError=o,this._htmlConversions=i,this._editable=s,this._headless=null!==e&&e._headless,this._window=null,this._blockCursorElement=null}isComposing(){return null!=this._compositionKey}registerUpdateListener(t){return Ao(this._listeners.update,t)}registerEditableListener(t){return Ao(this._listeners.editable,t)}registerDecoratorListener(t){return Ao(this._listeners.decorator,t)}registerTextContentListener(t){return Ao(this._listeners.textcontent,t)}registerRootListener(t){const e=this._listeners.root;return sl(Ao(e,t,t(this._rootElement,null)||void 0),()=>function(t,e,n){const r=t.get(e);r&&r(),t.set(e,e(...n)||void 0)}(e,t,[null,this._rootElement]))}registerCommand(e,n,r){void 0===r&&t(35);const o=this._commands;o.has(e)||o.set(e,[new Set,new Set,new Set,new Set,new Set]);const i=o.get(e);void 0===i&&t(36,String(e));const s=i[r];return s.add(n),()=>{s.delete(n),i.every(t=>0===t.size)&&o.delete(e)}}registerMutationListener(t,e,n){const r=this.resolveRegisteredNodeAfterReplacements(this.getRegisteredNode(t)).klass,o=this._listeners.mutation;let i=o.get(e);void 0===i&&(i=new Set,o.set(e,i)),i.add(r);const s=n&&n.skipInitialization;return void 0!==s&&s||this.initializeMutationListener(e,r),()=>{i.delete(r),0===i.size&&o.delete(e)}}getRegisteredNode(e){const n=this._nodes.get(e.getType());return void 0===n&&t(37,e.name),n}resolveRegisteredNodeAfterReplacements(t){for(;t.replaceWithKlass;)t=this.getRegisteredNode(t.replaceWithKlass);return t}initializeMutationListener(t,e){const n=this._editorState,r=os(n).get(e.getType());if(!r)return;const o=new Map;for(const t of r.keys())o.set(t,"created");o.size>0&&t(o,{dirtyLeaves:new Set,prevEditorState:n,updateTags:new Set(["registerMutationListener"])})}registerNodeTransformToKlass(t,e){const n=this.getRegisteredNode(t);return n.transforms.add(e),n}registerNodeTransform(t,e){const n=this.registerNodeTransformToKlass(t,e),r=[n],o=n.replaceWithKlass;if(null!=o){const t=this.registerNodeTransformToKlass(o,e);r.push(t)}return function(t,e){const n=os(t.getEditorState()),r=[];for(const t of e){const e=n.get(t);e&&r.push(e)}if(0===r.length)return;t.update(()=>{for(const t of r)for(const e of t.keys()){const t=ei(e);t&&t.markDirty()}},null===t._pendingEditorState?{tag:En}:void 0)}(this,r.map(t=>t.klass.getType())),()=>{r.forEach(t=>t.transforms.delete(e))}}hasNode(t){return this._nodes.has(t.getType())}hasNodes(t){return t.every(this.hasNode.bind(this))}dispatchCommand(t,e){return Ai(this,t,e)}getDecorators(){return this._decorators}getRootElement(){return this._rootElement}getKey(){return this._key}setRootElement(t){const e=this._rootElement;if(t!==e){const n=ki(this._config.theme,"root"),r=this._pendingEditorState||this._editorState;if(this._rootElement=t,Oo(this,e,t,r),null!==e&&(this._config.disableEvents||Sn(e),null!=n&&e.classList.remove(...n)),null!==t){const e=Ri(t),r=t.style;r.userSelect="text",r.whiteSpace="pre-wrap",r.wordBreak="break-word",t.setAttribute("data-lexical-editor","true"),this._window=e,this._dirtyType=2,H(this),this._updateTags.add(En),no(this),this._config.disableEvents||function(t,e){const n=t.ownerDocument;je.set(t,n);const r=He.get(n)??0;r<1&&n.addEventListener("selectionchange",yn),He.set(n,r+1),t.__lexicalEditor=e;const o=_n(t);for(let n=0;n<We.length;n++){const[r,i]=We[n],s="function"==typeof i?t=>{xn(t)||(mn(t),(e.isEditable()||"click"===r)&&i(t,e))}:t=>{if(xn(t))return;mn(t);const n=e.isEditable();switch(r){case"cut":return n&&Ai(e,we,t);case"copy":return Ai(e,Ae,t);case"paste":return n&&Ai(e,ne,t);case"dragstart":return n&&Ai(e,Oe,t);case"dragover":return n&&Ai(e,Me,t);case"dragend":return n&&Ai(e,be,t);case"focus":return n&&Ai(e,Re,t);case"blur":return n&&Ai(e,Ke,t);case"drop":return n&&Ai(e,ke,t)}};t.addEventListener(r,s),o.push(()=>{t.removeEventListener(r,s)})}}(t,this),null!=n&&t.classList.add(...n)}else this._window=null,this._updateTags.add(En),no(this);ro("root",this,!1,t,e)}}getElementByKey(t){return this._keyToDOMMap.get(t)||null}getEditorState(){return this._editorState}setEditorState(e,n){e.isEmpty()&&t(38);let r=e;r._readOnly&&(r=yo(e),r._selection=e._selection?e._selection.clone():null),j(this);const o=this._pendingEditorState,i=this._updateTags,s=void 0!==n?n.tag:null;null===o||o.isEmpty()||(null!=s&&i.add(s),no(this)),this._pendingEditorState=r,this._dirtyType=2,this._dirtyElements.set("root",!1),this._compositionKey=null,null!=s&&i.add(s),this._updating||no(this)}parseEditorState(t,e){return function(t,e,n){const r=mo(),o=Kr,i=zr,s=Br,l=e._dirtyElements,a=e._dirtyLeaves,c=e._cloneNotNeeded,u=e._dirtyType;e._dirtyElements=new Map,e._dirtyLeaves=new Set,e._cloneNotNeeded=new Set,e._dirtyType=0,Kr=r,zr=!1,Br=e,Po(null);try{const o=e._nodes;to(t.root,o),n&&n(r),r._readOnly=!0}catch(t){t instanceof Error&&e._onError(t)}finally{e._dirtyElements=l,e._dirtyLeaves=a,e._cloneNotNeeded=c,e._dirtyType=u,Kr=o,zr=i,Br=s}return r}("string"==typeof t?JSON.parse(t):t,this,e)}read(t){return no(this),this.getEditorState().read(t,{editor:this})}update(t,e){!function(t,e,n){t._updating?t._updates.push([e,n]):io(t,e,n)}(this,t,e)}focus(t,e={}){const n=this._rootElement;null!==n&&(n.setAttribute("autocapitalize","off"),so(this,()=>{const r=Er(),o=li();null!==r?r.dirty||ci(r.clone()):0!==o.getChildrenSize()&&("rootStart"===e.defaultSelection?o.selectStart():o.selectEnd()),Ii("focus"),Fi(()=>{n.removeAttribute("autocapitalize"),t&&t()})}),null===this._pendingEditorState&&n.removeAttribute("autocapitalize"))}blur(){const t=this._rootElement;null!==t&&t.blur();const e=Hi(this._window);null!==e&&e.removeAllRanges()}isEditable(){return this._editable}setEditable(t){this._editable!==t&&(this._editable=t,ro("editable",this,!0,t))}toJSON(){return{editorState:this._editorState.toJSON()}}}wo.version="0.42.0+prod.cjs";let Do=null;function Po(t){Do=t}let Io=1;function Fo(e,n){const r=Lo(e,n);return void 0===r&&t(30,n),r}function Lo(t,e){return t._nodes.get(e)}const Ro="function"==typeof queueMicrotask?queueMicrotask:t=>{Promise.resolve().then(t)};function Ko(t){return go(oi(t))}function Bo(t){const e=document.activeElement;if(!Gi(e))return!1;const n=e.nodeName;return go(oi(t))&&("INPUT"===n||"TEXTAREA"===n||"true"===e.contentEditable&&null==Uo(e))}function zo(t,e,n){const r=t.getRootElement();try{return null!==r&&r.contains(e)&&r.contains(n)&&null!==e&&!Bo(e)&&$o(e)===t}catch(t){return!1}}function Wo(t){return t instanceof wo}function $o(t){let e=t;for(;null!=e;){const t=Uo(e);if(Wo(t))return t;e=Di(e)}return null}function Uo(t){return t?t.__lexicalEditor:null}function Jo(t){return or(t)||t.isToken()}function Yo(t){return Jo(t)||t.isSegmented()}function jo(t){return qi(t)&&3===t.nodeType}function Ho(t){return qi(t)&&9===t.nodeType}function Vo(t){let e=t;for(;null!=e;){if(jo(e))return e;e=e.firstChild}return null}function Go(t,e,n){const r=A[e];if(null!==n&&(t&r)===(n&r))return t;let o=t^r;return"subscript"===e?o&=~A.superscript:"superscript"===e?o&=~A.subscript:"lowercase"===e?(o&=~A.uppercase,o&=~A.capitalize):"uppercase"===e?(o&=~A.lowercase,o&=~A.capitalize):"capitalize"===e&&(o&=~A.lowercase,o&=~A.uppercase),o}function qo(t,e){const n=function(){const t=Do;return Do=null,t}();if(null!=(e=e||n&&n.__key))return void(t.__key=e);Yr(),jr();const r=Vr(),o=Hr(),i=""+Io++;o._nodeMap.set(i,t),uo(t)?r._dirtyElements.set(i,!0):r._dirtyLeaves.add(i),r._cloneNotNeeded.add(i),r._dirtyType=1,t.__key=i}function Xo(t){const e=t.getParent();if(null!==e){const n=t.getWritable(),r=e.getWritable(),o=t.getPreviousSibling(),i=t.getNextSibling(),s=null!==i?i.__key:null,l=null!==o?o.__key:null,a=null!==o?o.getWritable():null,c=null!==i?i.getWritable():null;null===o&&(r.__first=s),null===i&&(r.__last=l),null!==a&&(a.__next=s),null!==c&&(c.__prev=l),n.__prev=null,n.__next=null,n.__parent=null,r.__size--}}function Qo(e){jr(),vn(e)&&t(323,e.__key,e.__type);const n=e.getLatest(),r=n.__parent,o=Hr(),i=Vr(),s=o._nodeMap,l=i._dirtyElements;null!==r&&function(t,e,n){let r=t;for(;null!==r;){if(n.has(r))return;const t=e.get(r);if(void 0===t)break;n.set(r,!1),r=t.__parent}}(r,s,l);const a=n.__key;i._dirtyType=1,uo(e)?l.set(a,!0):i._dirtyLeaves.add(a)}function Zo(t){Yr();const e=Vr(),n=e._compositionKey;if(t!==n){if(e._compositionKey=t,null!==n){const t=ei(n);null!==t&&t.getWritable()}if(null!==t){const e=ei(t);null!==e&&e.getWritable()}}}function ti(){if(Jr())return null;return Vr()._compositionKey}function ei(t,e){const n=(e||Hr())._nodeMap.get(t);return void 0===n?null:n}function ni(t,e){const n=ri(t,Vr());return void 0!==n?ei(n,e):null}function ri(t,e){return t[`__lexicalKey_${e._key}`]}function oi(t,e){let n=t;for(;null!=n;){const t=ni(n,e);if(null!==t)return t;n=Di(n)}return null}function ii(t){const e=t._decorators,n=Object.assign({},e);return t._pendingDecorators=n,n}function si(t){return t.read(()=>li().getTextContent())}function li(){return ai(Hr())}function ai(t){return t._nodeMap.get("root")}function ci(t){Yr();const e=Hr();null!==t&&(t.dirty=!0,t.setCachedNodes(null)),e._selection=t}function ui(t){const e=Vr(),n=function(t,e){let n=t;for(;null!=n;){const t=ri(n,e);if(void 0!==t)return t;n=Di(n)}return null}(t,e);if(null===n){return t===e.getRootElement()?ei("root"):null}return ei(n)}function fi(t){return/[\uD800-\uDBFF][\uDC00-\uDFFF]/g.test(t)}function di(t){const e=[];for(let n=t;null!==n;n=n._updating?null:n._parentEditor)e.push(n);return e}function hi(){return Math.random().toString(36).replace(/[^a-z]+/g,"").substring(0,5)}function gi(t){return jo(t)?t.nodeValue:null}function _i(t,e,n){const r=Hi(Ki(e));if(null===r)return;const o=r.anchorNode;let{anchorOffset:i,focusOffset:s}=r;if(null!==o){let e=gi(o);const r=oi(o);if(null!==e&&tr(r)){if((e===T||e===k)&&n){const t=n.length;e=n,i=t,s=t}null!==e&&pi(r,e,i,s,t)}}}function pi(t,e,n,r,o){let i=t;if(i.isAttached()&&(o||!i.isDirty())){const s=i.isComposing();let c=e;if((s||o)&&(e.endsWith(T)&&(c=e.slice(0,-T.length)),o)){const t=k;let e;for(;-1!==(e=c.indexOf(t));)c=c.slice(0,e)+c.slice(e+t.length),null!==n&&n>e&&(n=Math.max(e,n-t.length)),null!==r&&r>e&&(r=Math.max(e,r-t.length))}const u=i.getTextContent();if(o||c!==u){if(""===c){if(Zo(null),l||a||d)i.remove();else{const t=Vr();setTimeout(()=>{t.update(()=>{i.isAttached()&&i.remove()})},20)}return}const e=i.getParent(),o=Or(),u=i.getTextContentSize(),f=ti(),h=i.getKey();if(i.isToken()||null!==f&&h===f&&!s||ur(o)&&(null!==e&&!e.canInsertTextBefore()&&0===o.anchor.offset||o.anchor.key===t.__key&&0===o.anchor.offset&&!i.canInsertTextBefore()&&!s||o.focus.key===t.__key&&o.focus.offset===u&&!i.canInsertTextAfter()&&!s))return void i.markDirty();const g=Er();if(!ur(g)||null===n||null===r)return void yi(i,c,g);if(g.setTextNodeRange(i,n,i,r),i.isSegmented()){const t=Zn(i.getTextContent());i.replace(t),i=t}yi(i,c,g)}}}function yi(t,e,n){if(t.setTextContent(e),ur(n)){const e=t.getKey();for(const r of["anchor","focus"]){const o=n[r];"text"===o.type&&o.key===e&&(o.offset=Os(t,o.offset,"clamp"))}}}function mi(t,e,n){const r=e[n]||!1;return"any"===r||r===t[n]}function xi(t,e){return mi(t,e,"altKey")&&mi(t,e,"ctrlKey")&&mi(t,e,"shiftKey")&&mi(t,e,"metaKey")}function Ci(t,e,n){if(!xi(t,n))return!1;if(t.key.toLowerCase()===e.toLowerCase())return!0;if(e.length>1)return!1;if(1===t.key.length&&t.key.charCodeAt(0)<=127)return!1;const r="Key"+e.toUpperCase();return t.code===r}const Si={ctrlKey:!o,metaKey:o},Ni={altKey:o,ctrlKey:!o};function Ti(t){return"Backspace"===t.key}function vi(t){return Ci(t,"a",Si)}function ki(t,e){void 0===t.__lexicalClassNameCache&&(t.__lexicalClassNameCache={});const n=t.__lexicalClassNameCache,r=n[e];if(void 0!==r)return r;const o=t[e];if("string"==typeof o){const t=il(o);return n[e]=t,t}return o}function Ei(e,n,r,o,i){if(0===r.size)return;const s=o.__type,l=o.__key,a=n.get(s);void 0===a&&t(33,s);const c=a.klass;let u=e.get(c);void 0===u&&(u=new Map,e.set(c,u));const f=u.get(l),d="destroyed"===f&&"created"===i;(void 0===f||d)&&u.set(l,d?"updated":i)}function Oi(t,e,n){const r=t.getParent();let o=n,i=t;return null!==r&&(e&&0===n?(o=i.getIndexWithinParent(),i=r):e||n!==i.getChildrenSize()||(o=i.getIndexWithinParent()+1,i=r)),i.getChildAtIndex(e?o-1:o)}function Mi(t,e){const n=t.offset;if("element"===t.type){return Oi(t.getNode(),e,n)}{const r=t.getNode();if(e&&0===n||!e&&n===r.getTextContentSize()){const t=e?r.getPreviousSibling():r.getNextSibling();return null===t?Oi(r.getParentOrThrow(),e,r.getIndexWithinParent()+(e?0:1)):t}}return null}function bi(t){const e=Ki(t).event,n=e&&e.inputType;return"insertFromPaste"===n||"insertFromPasteAsQuotation"===n}function Ai(t,e,n){return function(t,e,n){const r=di(t);for(let o=4;o>=0;o--)for(let i=0;i<r.length;i++){const s=r[i],l=s._commands.get(e);if(void 0!==l){const e=l[o];if(void 0!==e){const r=Array.from(e),o=r.length;let i=!1;if(so(s,()=>{for(let e=0;e<o;e++)if(r[e](n,t))return void(i=!0)}),i)return i}}}return!1}(t,e,n)}function wi(e,n){const r=e._keyToDOMMap.get(n);return void 0===r&&t(75,n),r}function Di(t){const e=t.assignedSlot||t.parentElement;return Xi(e)?e.host:e}function Pi(t){return Ho(t)?t:Gi(t)?t.ownerDocument:null}function Ii(t){Yr();Vr()._updateTags.add(t)}function Fi(t){Yr();Vr()._deferred.push(t)}function Li(t,e){let n=t.getParent();for(;null!==n;){if(n.is(e))return!0;n=n.getParent()}return!1}function Ri(t){const e=Pi(t);return e?e.defaultView:null}function Ki(e){const n=e._window;return null===n&&t(78),n}function Bi(t){let e=t.getParentOrThrow();for(;null!==e;){if(zi(e))return e;e=e.getParentOrThrow()}return e}function zi(t){return po(t)||uo(t)&&t.isShadowRoot()}function Wi(t,e=!1){const n=t.constructor.clone(t);return qo(n,null),n.afterCloneFrom(t),e||n.resetOnCopyNodeFrom(t),n}function $i(e){const n=Vr(),r=e.getType(),o=Lo(n,r);void 0===o&&t(200,e.constructor.name,r);const{replace:i,replaceWithKlass:s}=o;if(null!==i){const n=i(e),o=n.constructor;return null!==s?n instanceof s||t(201,s.name,s.getType(),o.name,o.getType(),e.constructor.name,r):n instanceof e.constructor&&o!==e.constructor||t(202,o.name,o.getType(),e.constructor.name,r),n.__key===e.__key&&t(203,e.constructor.name,r,o.name,o.getType()),n}return e}function Ui(e,n){!po(e.getParent())||uo(n)||go(n)||t(99)}function Ji(e){const n=ei(e);return null===n&&t(63,e),n}function Yi(t){return(go(t)||uo(t)&&!t.canBeEmpty())&&!t.isInline()}function ji(t,e,n){n.style.removeProperty("caret-color"),e._blockCursorElement=null;const r=t.parentElement;null!==r&&r.removeChild(t)}function Hi(t){return n?(t||window).getSelection():null}function Vi(t){const e=Ri(t);return e?e.getSelection():null}function Gi(t){return qi(t)&&1===t.nodeType}function qi(t){return"object"==typeof t&&null!==t&&"nodeType"in t&&"number"==typeof t.nodeType}function Xi(t){return qi(t)&&11===t.nodeType}function Qi(t){const e=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");return null!==t.nodeName.match(e)}function Zi(t){const e=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");return null!==t.nodeName.match(e)}function ts(t){if(go(t)&&!t.isInline())return!0;if(!uo(t)||zi(t))return!1;const e=t.getFirstChild(),n=null===e||Ln(e)||tr(e)||e.isInline();return!t.isInline()&&!1!==t.canBeEmpty()&&n}function es(){return Vr()}const ns=new WeakMap,rs=new Map;function os(e){if(!e._readOnly&&e.isEmpty())return rs;e._readOnly||t(192);let n=ns.get(e);return n||(n=function(t){const e=new Map;for(const[n,r]of t._nodeMap){const t=r.__type;let o=e.get(t);o||(o=new Map,e.set(t,o)),o.set(n,r)}return e}(e),ns.set(e,n)),n}function is(t){const e=t.constructor.clone(t);return e.afterCloneFrom(t),e}function ss(t,e){const n=parseInt(t.style.paddingInlineStart,10)||0,r=Math.round(n/40);e.setIndent(r)}function ls(t){return!0===t.__lexicalUnmanaged}function as(t,e){return function(t,e){return Object.prototype.hasOwnProperty.call(t,e)}(t,e)&&t[e]!==kn[e]}function cs(e){const n=L in e.prototype?e.prototype[L]():void 0,r=function(e){if(!(e===kn||e.prototype instanceof kn)){let n="<unknown>",r="<unknown>";try{n=e.getType()}catch(t){}try{wo.version&&(r=JSON.parse(wo.version))}catch(t){}t(290,e.name,n,r)}return e===ho||e===co||e===kn}(e),o=!r&&as(e,"getType")?e.getType():void 0;let i,s=o;if(n)if(o)i=n[o];else for(const[t,e]of Object.entries(n))s=t,i=e;if(!r&&s&&(as(e,"getType")||(e.getType=()=>s),as(e,"clone")||(e.clone=t=>(Po(t),new e)),as(e,"importJSON")||(e.importJSON=i&&i.$importJSON||(t=>(new e).updateFromJSON(t))),!as(e,"importDOM")&&i)){const{importDOM:t}=i;t&&(e.importDOM=()=>t)}return{ownNodeConfig:i,ownNodeType:s}}const us=(t,e)=>{let n=t;for(;null!=n&&!po(n);){if(e(n))return n;n=n.getParent()}return null},fs={next:"previous",previous:"next"};class ds{origin;constructor(t){this.origin=t}[Symbol.iterator](){return Rs({hasNext:Cs,initial:this.getAdjacentCaret(),map:t=>t,step:t=>t.getAdjacentCaret()})}getAdjacentCaret(){return ks(this.getNodeAtCaret(),this.direction)}getSiblingCaret(){return ks(this.origin,this.direction)}remove(){const t=this.getNodeAtCaret();return t&&t.remove(),this}replaceOrInsert(t,e){const n=this.getNodeAtCaret();return t.is(this.origin)||t.is(n)||(null===n?this.insert(t):n.replace(t,e)),this}splice(e,n,r="next"){const o=r===this.direction?n:Array.from(n).reverse();let i=this;const s=this.getParentAtCaret(),l=new Map;for(let t=i.getAdjacentCaret();null!==t&&l.size<e;t=t.getAdjacentCaret()){const e=t.origin.getWritable();l.set(e.getKey(),e)}for(const e of o){if(l.size>0){const n=i.getNodeAtCaret();if(n)if(l.delete(n.getKey()),l.delete(e.getKey()),n.is(e)||i.origin.is(e));else{const t=e.getParent();t&&t.is(s)&&e.remove(),n.replace(e)}else null===n&&t(263,Array.from(l).join(" "))}else i.insert(e);i=ks(e,this.direction)}for(const t of l.values())t.remove();return this}}class hs extends ds{type="child";getLatest(){const t=this.origin.getLatest();return t===this.origin?this:bs(t,this.direction)}getParentCaret(t="root"){return ks(ps(this.getParentAtCaret(),t),this.direction)}getFlipped(){const t=_s(this.direction);return ks(this.getNodeAtCaret(),t)||bs(this.origin,t)}getParentAtCaret(){return this.origin}getChildCaret(){return this}isSameNodeCaret(t){return t instanceof hs&&this.direction===t.direction&&this.origin.is(t.origin)}isSamePointCaret(t){return this.isSameNodeCaret(t)}}const gs={root:po,shadowRoot:zi};function _s(t){return fs[t]}function ps(t,e="root"){return gs[e](t)?null:t}class ys extends ds{type="sibling";getLatest(){const t=this.origin.getLatest();return t===this.origin?this:ks(t,this.direction)}getSiblingCaret(){return this}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return uo(this.origin)?bs(this.origin,this.direction):null}getParentCaret(t="root"){return ks(ps(this.getParentAtCaret(),t),this.direction)}getFlipped(){const t=_s(this.direction);return ks(this.getNodeAtCaret(),t)||bs(this.origin.getParentOrThrow(),t)}isSamePointCaret(t){return t instanceof ys&&this.direction===t.direction&&this.origin.is(t.origin)}isSameNodeCaret(t){return(t instanceof ys||t instanceof ms)&&this.direction===t.direction&&this.origin.is(t.origin)}}class ms extends ds{type="text";offset;constructor(t,e){super(t),this.offset=e}getLatest(){const t=this.origin.getLatest();return t===this.origin?this:Es(t,this.direction,this.offset)}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return null}getParentCaret(t="root"){return ks(ps(this.getParentAtCaret(),t),this.direction)}getFlipped(){return Es(this.origin,_s(this.direction),this.offset)}isSamePointCaret(t){return t instanceof ms&&this.direction===t.direction&&this.origin.is(t.origin)&&this.offset===t.offset}isSameNodeCaret(t){return(t instanceof ys||t instanceof ms)&&this.direction===t.direction&&this.origin.is(t.origin)}getSiblingCaret(){return ks(this.origin,this.direction)}}function xs(t){return t instanceof ms}function Cs(t){return t instanceof ys}function Ss(t){return t instanceof hs}const Ns={next:class extends ms{direction="next";getNodeAtCaret(){return this.origin.getNextSibling()}insert(t){return this.origin.insertAfter(t),this}},previous:class extends ms{direction="previous";getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(t){return this.origin.insertBefore(t),this}}},Ts={next:class extends ys{direction="next";getNodeAtCaret(){return this.origin.getNextSibling()}insert(t){return this.origin.insertAfter(t),this}},previous:class extends ys{direction="previous";getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(t){return this.origin.insertBefore(t),this}}},vs={next:class extends hs{direction="next";getNodeAtCaret(){return this.origin.getFirstChild()}insert(t){return this.origin.splice(0,0,[t]),this}},previous:class extends hs{direction="previous";getNodeAtCaret(){return this.origin.getLastChild()}insert(t){return this.origin.splice(this.origin.getChildrenSize(),0,[t]),this}}};function ks(t,e){return t?new Ts[e](t):null}function Es(t,e,n){return t?new Ns[e](t,Os(t,n)):null}function Os(t,n,r="error"){const o=t.getTextContentSize();let i="next"===n?o:"previous"===n?0:n;return(i<0||i>o)&&("clamp"!==r&&e(284,String(n),String(o),t.getKey()),i=i<0?0:o),i}function Ms(t,e){return new Ps(t,e)}function bs(t,e){return uo(t)?new vs[e](t):null}function As(t){return t&&t.getChildCaret()||t}function ws(t){return t&&As(t.getAdjacentCaret())}class Ds{type="node-caret-range";direction;anchor;focus;constructor(t,e,n){this.anchor=t,this.focus=e,this.direction=n}getLatest(){const t=this.anchor.getLatest(),e=this.focus.getLatest();return t===this.anchor&&e===this.focus?this:new Ds(t,e,this.direction)}isCollapsed(){return this.anchor.isSamePointCaret(this.focus)}getTextSlices(){const t=t=>{const e=this[t].getLatest();return xs(e)?function(t,e){const{direction:n,origin:r}=t,o=Os(r,"focus"===e?_s(n):n);return Ms(t,o-t.offset)}(e,t):null},e=t("anchor"),n=t("focus");if(e&&n){const{caret:t}=e,{caret:r}=n;if(t.isSameNodeCaret(r))return[Ms(t,r.offset-t.offset),null]}return[e,n]}iterNodeCarets(t="root"){const e=xs(this.anchor)?this.anchor.getSiblingCaret():this.anchor.getLatest(),n=this.focus.getLatest(),r=xs(n),o=e=>e.isSameNodeCaret(n)?null:ws(e)||e.getParentCaret(t);return Rs({hasNext:t=>null!==t&&!(r&&n.isSameNodeCaret(t)),initial:e.isSameNodeCaret(n)?null:o(e),map:t=>t,step:o})}[Symbol.iterator](){return this.iterNodeCarets("root")}}class Ps{type="slice";caret;distance;constructor(t,e){this.caret=t,this.distance=e}getSliceIndices(){const{distance:t,caret:{offset:e}}=this,n=e+t;return n<e?[n,e]:[e,n]}getTextContent(){const[t,e]=this.getSliceIndices();return this.caret.origin.getTextContent().slice(t,e)}getTextContentSize(){return Math.abs(this.distance)}removeTextSlice(){const{caret:{origin:t,direction:e}}=this,[n,r]=this.getSliceIndices(),o=t.getTextContent();return Es(t.setTextContent(o.slice(0,n)+o.slice(r)),e,n)}}function Is(t){return Ls(t,ks(li(),t.direction))}function Fs(t){return Ls(t,t)}function Ls(e,n){return e.direction!==n.direction&&t(265),new Ds(e,n,e.direction)}function Rs(t){const{initial:e,hasNext:n,step:r,map:o}=t;let i=e;return{[Symbol.iterator](){return this},next(){if(!n(i))return{done:!0,value:void 0};const t={done:!1,value:o(i)};return i=r(i),t}}}function Ks(e,n){const r=$s(e.origin,n.origin);switch(null===r&&t(275,e.origin.getKey(),n.origin.getKey()),r.type){case"same":{const t="text"===e.type,r="text"===n.type;return t&&r?function(t,e){return Math.sign(t-e)}(e.offset,n.offset):e.type===n.type?0:t?-1:r?1:"child"===e.type?-1:1}case"ancestor":return"child"===e.type?-1:1;case"descendant":return"child"===n.type?1:-1;case"branch":return Bs(r)}}function Bs(t){const{a:e,b:n}=t,r=e.__key,o=n.__key;let i=e,s=n;for(;i&&s;i=i.getNextSibling(),s=s.getNextSibling()){if(i.__key===o)return-1;if(s.__key===r)return 1}return null===i?1:-1}function zs(t,e){return e.is(t)}function Ws(t){return uo(t)?[t.getLatest(),null]:[t.getParent(),t.getLatest()]}function $s(e,n){if(e.is(n))return{commonAncestor:e,type:"same"};const r=new Map;for(let[t,n]=Ws(e);t;n=t,t=t.getParent())r.set(t,n);for(let[o,i]=Ws(n);o;i=o,o=o.getParent()){const s=r.get(o);if(void 0!==s)return null===s?(zs(e,o)||t(276),{commonAncestor:o,type:"ancestor"}):null===i?(zs(n,o)||t(277),{commonAncestor:o,type:"descendant"}):((uo(s)||zs(e,s))&&(uo(i)||zs(n,i))&&o.is(s.getParent())&&o.is(i.getParent())||t(278),{a:s,b:i,commonAncestor:o,type:"branch"})}return null}function Us(e,n){const{type:r,key:o,offset:i}=e,s=Ji(e.key);return"text"===r?(tr(s)||t(266,s.getType(),o),Es(s,n,i)):(uo(s)||t(267,s.getType(),o),nl(s,e.offset,n))}function Js(e,n){const{origin:r,direction:o}=n,i="next"===o;xs(n)?e.set(r.getKey(),n.offset,"text"):Cs(n)?tr(r)?e.set(r.getKey(),Os(r,o),"text"):e.set(r.getParentOrThrow().getKey(),r.getIndexWithinParent()+(i?1:0),"element"):(Ss(n)&&uo(r)||t(268),e.set(r.getKey(),i?0:r.getChildrenSize(),"element"))}function Ys(t){const e=Er(),n=ur(e)?e:Tr();return js(n,t),ci(n),n}function js(t,e){Js(t.anchor,e.anchor),Js(t.focus,e.focus)}function Hs(t){const{anchor:e,focus:n}=t,r=Us(e,"next"),o=Us(n,"next"),i=Ks(r,o)<=0?"next":"previous";return Ls(tl(r,i),tl(o,i))}function Vs(t){const{direction:e,origin:n}=t,r=ks(n,_s(e)).getNodeAtCaret();return r?ks(r,e):bs(n.getParentOrThrow(),e)}function Gs(t,e="root"){const n=[t];for(let r=Ss(t)?t.getParentCaret(e):t.getSiblingCaret();null!==r;r=r.getParentCaret(e))n.push(Vs(r));return n}function qs(t){return!!t&&t.origin.isAttached()}function Xs(e,n="removeEmptySlices"){if(e.isCollapsed())return e;const r="root",o="next";let i=n;const s=el(e,o),l=Gs(s.anchor,r),a=Gs(s.focus.getFlipped(),r),c=new Set,u=[];for(const t of s.iterNodeCarets(r))if(Ss(t))c.add(t.origin.getKey());else if(Cs(t)){const{origin:e}=t;uo(e)&&!c.has(e.getKey())||u.push(e)}for(const t of u)t.remove();for(const t of s.getTextSlices()){if(!t)continue;const{origin:e}=t.caret,n=e.getTextContentSize(),r=Vs(ks(e,o)),s=e.getMode();if(Math.abs(t.distance)===n&&"removeEmptySlices"===i||"token"===s&&0!==t.distance)r.remove();else if(0!==t.distance){i="removeEmptySlices";let e=t.removeTextSlice();const n=t.caret.origin;if("segmented"===s){const t=e.origin,n=Zn(t.getTextContent()).setStyle(t.getStyle()).setFormat(t.getFormat());r.replaceOrInsert(n),e=Es(n,o,e.offset)}n.is(l[0].origin)&&(l[0]=e),n.is(a[0].origin)&&(a[0]=e.getFlipped())}}let f,d;for(const t of l)if(qs(t)){f=Qs(t);break}for(const t of a)if(qs(t)){d=Qs(t);break}const h=function(t,e,n){if(!t||!e)return null;const r=t.getParentAtCaret(),o=e.getParentAtCaret();if(!r||!o)return null;const i=r.getParents().reverse();i.push(r);const s=o.getParents().reverse();s.push(o);const l=Math.min(i.length,s.length);let a;for(a=0;a<l&&i[a]===s[a];a++);const c=(t,e)=>{let n;for(let r=a;r<t.length;r++){const o=t[r];if(zi(o))return;!n&&e(o)&&(n=o)}return n},u=c(i,ts),f=u&&c(s,t=>n.has(t.getKey())&&ts(t));return u&&f?[u,f]:null}(f,d,c);if(h){const[t,e]=h;bs(t,"previous").splice(0,e.getChildren());let n=e.getParent();for(e.remove(!0);n&&n.isEmpty();){const t=n;n=n.getParent(),t.remove(!0)}}const g=[f,d,...l,...a].find(qs);if(g){return Fs(tl(Qs(g),e.direction))}t(269,JSON.stringify(l.map(t=>t.origin.__key)))}function Qs(t){const e=function(t){let e=t;for(;Ss(e);){const t=ws(e);if(!Ss(t))break;e=t}return e}(t.getLatest()),{direction:n}=e;if(tr(e.origin))return xs(e)?e:Es(e.origin,n,n);const r=e.getAdjacentCaret();return Cs(r)&&tr(r.origin)?Es(r.origin,n,_s(n)):e}function Zs(t){return xs(t)&&t.offset!==Os(t.origin,t.direction)}function tl(t,e){return t.direction===e?t:t.getFlipped()}function el(t,e){return t.direction===e?t:Ls(tl(t.focus,e),tl(t.anchor,e))}function nl(t,e,n){let r=bs(t,"next");for(let t=0;t<e;t++){const t=r.getAdjacentCaret();if(null===t)break;r=t}return tl(r,n)}function rl(e){const{origin:n,offset:r,direction:o}=e;if(r===Os(n,o))return e.getSiblingCaret();if(r===Os(n,_s(o)))return Vs(e.getSiblingCaret());const[i]=n.splitText(r);return tr(i)||t(281),tl(ks(i,"next"),o)}function ol(t,e){return!0}function il(...t){const e=[];for(const n of t)if(n&&"string"==typeof n)for(const[t]of n.matchAll(/\S+/g))e.push(t);return e}function sl(...t){return()=>{for(let e=t.length-1;e>=0;e--)t[e]();t.length=0}}exports.$addUpdateTag=Ii,exports.$applyNodeReplacement=$i,exports.$caretFromPoint=Us,exports.$caretRangeFromSelection=Hs,exports.$cloneWithProperties=is,exports.$cloneWithPropertiesEphemeral=function(t){return(e=is(t))[Tn]=!0,e;var e},exports.$comparePointCaretNext=Ks,exports.$copyNode=Wi,exports.$create=function(t){const e=es();return Yr(),new(e.resolveRegisteredNodeAfterReplacements(e.getRegisteredNode(t)).klass)},exports.$createLineBreakNode=Fn,exports.$createNodeSelection=vr,exports.$createParagraphNode=vo,exports.$createPoint=sr,exports.$createRangeSelection=Tr,exports.$createRangeSelectionFromDom=function(t,e){return kr(null,t,e,null)},exports.$createTabNode=rr,exports.$createTextNode=Zn,exports.$extendCaretToRange=Is,exports.$findMatchingParent=us,exports.$getAdjacentChildCaret=ws,exports.$getAdjacentNode=Mi,exports.$getAdjacentSiblingOrParentSiblingCaret=function(t,e="root"){let n=0,r=t,o=ws(r);for(;null===o;){if(n--,o=r.getParentCaret(e),!o)return null;r=o,o=ws(r)}return o&&[o,n]},exports.$getCaretInDirection=tl,exports.$getCaretRange=Ls,exports.$getCaretRangeInDirection=el,exports.$getCharacterOffsets=gr,exports.$getChildCaret=bs,exports.$getChildCaretAtIndex=nl,exports.$getChildCaretOrSelf=As,exports.$getCollapsedCaretRange=Fs,exports.$getCommonAncestor=$s,exports.$getCommonAncestorResultBranchOrder=Bs,exports.$getEditor=es,exports.$getNearestNodeFromDOMNode=oi,exports.$getNearestRootOrShadowRoot=Bi,exports.$getNodeByKey=ei,exports.$getNodeByKeyOrThrow=Ji,exports.$getNodeFromDOMNode=ni,exports.$getPreviousSelection=Or,exports.$getRoot=li,exports.$getSelection=Er,exports.$getSiblingCaret=ks,exports.$getState=G,exports.$getStateChange=function(t,e,n){const r=G(t,n,"direct"),o=G(e,n,"direct");return n.isEqual(r,o)?null:[r,o]},exports.$getTextContent=function(){const t=Er();return null===t?"":t.getTextContent()},exports.$getTextNodeOffset=Os,exports.$getTextPointCaret=Es,exports.$getTextPointCaretSlice=Ms,exports.$getWritableNodeState=Q,exports.$hasAncestor=Li,exports.$hasUpdateTag=function(t){return Vr()._updateTags.has(t)},exports.$insertNodes=function(t){let e=Er()||Or();null===e&&(e=li().selectEnd()),e.insertNodes(t)},exports.$isBlockElementNode=function(t){return uo(t)&&!t.isInline()},exports.$isChildCaret=Ss,exports.$isDecoratorNode=go,exports.$isEditorState=function(t){return t instanceof Co},exports.$isElementNode=uo,exports.$isExtendableTextPointCaret=Zs,exports.$isInlineElementOrDecoratorNode=function(t){return uo(t)&&t.isInline()||go(t)&&t.isInline()},exports.$isLeafNode=function(t){return tr(t)||Ln(t)||go(t)},exports.$isLineBreakNode=Ln,exports.$isNodeCaret=function(t){return t instanceof ds},exports.$isNodeSelection=dr,exports.$isParagraphNode=ko,exports.$isRangeSelection=ur,exports.$isRootNode=po,exports.$isRootOrShadowRoot=zi,exports.$isSiblingCaret=Cs,exports.$isTabNode=or,exports.$isTextNode=tr,exports.$isTextPointCaret=xs,exports.$isTextPointCaretSlice=function(t){return t instanceof Ps},exports.$isTokenOrSegmented=Yo,exports.$isTokenOrTab=Jo,exports.$nodesOfType=function(t){const e=t.getType(),n=Hr();if(n._readOnly){const t=os(n).get(e);return t?Array.from(t.values()):[]}const r=n._nodeMap,o=[];for(const[,n]of r)n instanceof t&&n.__type===e&&n.isAttached()&&o.push(n);return o},exports.$normalizeCaret=Qs,exports.$normalizeSelection__EXPERIMENTAL=at,exports.$onUpdate=Fi,exports.$parseSerializedNode=function(t){return to(t,Vr()._nodes)},exports.$removeTextFromCaretRange=Xs,exports.$rewindSiblingCaret=Vs,exports.$selectAll=function(t){const e=li();if(ur(t)){const e=t.anchor,n=t.focus,r=e.getNode().getTopLevelElementOrThrow().getParentOrThrow();return e.set(r.getKey(),0,"element"),n.set(r.getKey(),r.getChildrenSize(),"element"),at(t),t}{const t=e.select(0,e.getChildrenSize());return ci(at(t)),t}},exports.$setCompositionKey=Zo,exports.$setPointFromCaret=Js,exports.$setSelection=ci,exports.$setSelectionFromCaretRange=Ys,exports.$setState=function(t,e,n){let r;if(Yr(),"function"==typeof n){const o=t.getLatest(),i=G(o,e);if(r=n(i),e.isEqual(i,r))return o}else r=n;const o=t.getWritable();return Q(o).updateFromKnown(e,r),o},exports.$splitAtPointCaretNext=function(t,{$copyElementNode:e=Wi,$splitTextPointCaretNext:n=rl,rootMode:r="shadowRoot",$shouldSplit:o=ol}={}){if(xs(t))return n(t);const i=t.getParentCaret(r);if(i){const{origin:n}=i;if(Ss(t)&&(!n.canBeEmpty()||!o(n,"first")))return Vs(i);const r=function(t){const e=[];for(let n=t.getAdjacentCaret();n;n=n.getAdjacentCaret())e.push(n.origin);return e}(t);(r.length>0||n.canBeEmpty()&&o(n,"last"))&&i.insert(e(n).splice(0,0,r))}return i},exports.$splitNode=function(e,n){let r=e.getChildAtIndex(n);null==r&&(r=e),zi(e)&&t(102);const o=e=>{const n=e.getParentOrThrow(),i=zi(n),s=e!==r||i?Wi(e):e;if(i)return uo(e)&&uo(s)||t(133),e.insertAfter(s),[e,s,s];{const[t,r,i]=o(n),l=e.getNextSiblings();return i.append(s,...l),[t,r,s]}},[i,s]=o(r);return[i,s]},exports.$updateRangeSelectionFromCaretRange=js,exports.ArtificialNode__DO_NOT_USE=So,exports.BEFORE_INPUT_COMMAND=Vt,exports.BLUR_COMMAND=Ke,exports.CAN_REDO_COMMAND=Fe,exports.CAN_UNDO_COMMAND=Le,exports.CLEAR_EDITOR_COMMAND=Pe,exports.CLEAR_HISTORY_COMMAND=Ie,exports.CLICK_COMMAND=Ht,exports.COLLABORATION_TAG=On,exports.COMMAND_PRIORITY_CRITICAL=4,exports.COMMAND_PRIORITY_EDITOR=Eo,exports.COMMAND_PRIORITY_HIGH=3,exports.COMMAND_PRIORITY_LOW=1,exports.COMMAND_PRIORITY_NORMAL=2,exports.COMPOSITION_END_COMMAND=Xt,exports.COMPOSITION_END_TAG=Dn,exports.COMPOSITION_START_COMMAND=qt,exports.COMPOSITION_START_TAG=wn,exports.CONTROLLED_TEXT_INSERTION_COMMAND=ee,exports.COPY_COMMAND=Ae,exports.CUT_COMMAND=we,exports.DELETE_CHARACTER_COMMAND=Qt,exports.DELETE_LINE_COMMAND=ie,exports.DELETE_WORD_COMMAND=oe,exports.DRAGEND_COMMAND=be,exports.DRAGOVER_COMMAND=Me,exports.DRAGSTART_COMMAND=Oe,exports.DROP_COMMAND=ke,exports.DecoratorNode=ho,exports.ElementNode=co,exports.FOCUS_COMMAND=Re,exports.FORMAT_ELEMENT_COMMAND=Ee,exports.FORMAT_TEXT_COMMAND=se,exports.HISTORIC_TAG="historic",exports.HISTORY_MERGE_TAG=En,exports.HISTORY_PUSH_TAG="history-push",exports.INDENT_CONTENT_COMMAND=Te,exports.INPUT_COMMAND=Gt,exports.INSERT_LINE_BREAK_COMMAND=Zt,exports.INSERT_PARAGRAPH_COMMAND=te,exports.INSERT_TAB_COMMAND=Ne,exports.INTERNAL_$isBlock=ts,exports.IS_ALL_FORMATTING=2047,exports.IS_BOLD=1,exports.IS_CODE=16,exports.IS_HIGHLIGHT=p,exports.IS_ITALIC=2,exports.IS_STRIKETHROUGH=4,exports.IS_SUBSCRIPT=32,exports.IS_SUPERSCRIPT=64,exports.IS_UNDERLINE=8,exports.KEY_ARROW_DOWN_COMMAND=_e,exports.KEY_ARROW_LEFT_COMMAND=de,exports.KEY_ARROW_RIGHT_COMMAND=ue,exports.KEY_ARROW_UP_COMMAND=ge,exports.KEY_BACKSPACE_COMMAND=me,exports.KEY_DELETE_COMMAND=Ce,exports.KEY_DOWN_COMMAND=ce,exports.KEY_ENTER_COMMAND=pe,exports.KEY_ESCAPE_COMMAND=xe,exports.KEY_MODIFIER_COMMAND=Be,exports.KEY_SPACE_COMMAND=ye,exports.KEY_TAB_COMMAND=Se,exports.LineBreakNode=Pn,exports.MOVE_TO_END=fe,exports.MOVE_TO_START=he,exports.NODE_STATE_KEY="$",exports.OUTDENT_CONTENT_COMMAND=ve,exports.PASTE_COMMAND=ne,exports.PASTE_TAG="paste",exports.ParagraphNode=No,exports.REDO_COMMAND=ae,exports.REMOVE_TEXT_COMMAND=re,exports.RootNode=_o,exports.SELECTION_CHANGE_COMMAND=Yt,exports.SELECTION_INSERT_CLIPBOARD_NODES_COMMAND=jt,exports.SELECT_ALL_COMMAND=De,exports.SKIP_COLLAB_TAG="skip-collab",exports.SKIP_DOM_SELECTION_TAG=bn,exports.SKIP_SCROLL_INTO_VIEW_TAG=Mn,exports.SKIP_SELECTION_FOCUS_TAG=An,exports.TEXT_TYPE_TO_FORMAT=A,exports.TabNode=nr,exports.TextNode=Jn,exports.UNDO_COMMAND=le,exports.addClassNamesToElement=function(t,...e){const n=il(...e);n.length>0&&t.classList.add(...n)},exports.buildImportMap=function(t){return t},exports.configExtension=function(...t){return t},exports.createCommand=Jt,exports.createEditor=function(t){const e=t||{},n=qr(),r=e.theme||{},o=void 0===t?n:e.parentEditor||null,i=e.disableEvents||!1,s=mo(),l=e.namespace||(null!==o?o._config.namespace:hi()),a=e.editorState,c=[_o,Jn,Pn,nr,No,So,...e.nodes||[]],{onError:u,html:f}=e,d=void 0===e.editable||e.editable;let h;if(void 0===t&&null!==n)h=n._nodes;else{h=new Map;for(let t=0;t<c.length;t++){let e=c[t],n=null,r=null;if("function"!=typeof e){const t=e;e=t.replace,n=t.with,r=t.withKlass||null}cs(e);const o=e.getType(),i=Mo(e);h.set(o,{exportDOM:f&&f.export?f.export.get(e):void 0,klass:e,replace:n,replaceWithKlass:r,sharedNodeState:q(c[t]),transforms:i})}}const g=new wo(s,o,h,{disableEvents:i,namespace:l,theme:r},u||console.error,function(t,e){const n=new Map,r=new Set,o=t=>{Object.keys(t).forEach(e=>{let r=n.get(e);void 0===r&&(r=[],n.set(e,r)),r.push(t[e])})};return t.forEach(t=>{const e=t.klass.importDOM;if(null==e||r.has(e))return;r.add(e);const n=e.call(t.klass);null!==n&&o(n)}),e&&o(e),n}(h,f?f.import:void 0),d,t);return void 0!==a&&(g._pendingEditorState=a,g._dirtyType=2),function(t){t.registerCommand(Vt,cn,Eo),t.registerCommand(Gt,un,Eo),t.registerCommand(qt,fn,Eo),t.registerCommand(Xt,dn,Eo),t.registerCommand(ce,gn,Eo)}(g),g},exports.createSharedNodeState=q,exports.createState=function(t,e){return new V(t,e)},exports.declarePeerDependency=function(t,e){return[t,e]},exports.defineExtension=function(t){return t},exports.flipDirection=_s,exports.getDOMOwnerDocument=Pi,exports.getDOMSelection=Hi,exports.getDOMSelectionFromTarget=Vi,exports.getDOMTextNode=Vo,exports.getEditorPropertyFromDOMNode=Uo,exports.getNearestEditorFromDOMNode=$o,exports.getRegisteredNode=Lo,exports.getRegisteredNodeOrThrow=Fo,exports.getStaticNodeConfig=cs,exports.getTextDirection=function(t){return M.test(t)?"rtl":b.test(t)?"ltr":null},exports.getTransformSetFromKlass=Mo,exports.isBlockDomNode=Zi,exports.isCurrentlyReadOnlyMode=Jr,exports.isDOMDocumentNode=Ho,exports.isDOMNode=qi,exports.isDOMTextNode=jo,exports.isDOMUnmanaged=ls,exports.isDocumentFragment=Xi,exports.isExactShortcutMatch=Ci,exports.isHTMLAnchorElement=function(t){return Gi(t)&&"A"===t.tagName},exports.isHTMLElement=Gi,exports.isInlineDomNode=Qi,exports.isLexicalEditor=Wo,exports.isModifierMatch=xi,exports.isSelectionCapturedInDecoratorInput=Bo,exports.isSelectionWithinEditor=zo,exports.makeStepwiseIterator=Rs,exports.mergeRegister=sl,exports.normalizeClassNames=il,exports.removeClassNamesFromElement=function(t,...e){const n=il(...e);n.length>0&&t.classList.remove(...n)},exports.removeFromParent=Xo,exports.resetRandomKey=function(t){Io=void 0!==t?t:1},exports.safeCast=function(t){return t},exports.setDOMUnmanaged=function(t){t.__lexicalUnmanaged=!0},exports.setNodeIndentFromDOM=ss,exports.shallowMergeConfig=function(t,e){if(!e||t===e)return t;for(const n in e)if(t[n]!==e[n])return{...t,...e};return t},exports.toggleTextFormatType=Go;
73
+ diff --git a/Lexical.prod.mjs b/Lexical.prod.mjs
74
+ index 855715f8a5b097fb4cf1b961cee0d6ac75cca2b3..348689ba66dceb88918666dc5cbe4e0aa8d329b5 100644
75
+ --- a/Lexical.prod.mjs
76
+ +++ b/Lexical.prod.mjs
77
+ @@ -6,4 +6,4 @@
78
+ *
79
+ */
80
+
81
+ -function t(t,...e){const n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",t);for(const t of e)r.append("v",t);throw n.search=r.toString(),Error(`Minified Lexical error #${t}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function e(t,...e){const n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",t);for(const t of e)r.append("v",t);n.search=r.toString(),console.warn(`Minified Lexical warning #${t}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}const n="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,r=n&&"documentMode"in document?document.documentMode:null,i=n&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),o=n&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),s=!(!n||!("InputEvent"in window)||r)&&"getTargetRanges"in new window.InputEvent("input"),l=n&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),c=n&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,a=n&&/Android/.test(navigator.userAgent),u=n&&/^(?=.*Chrome).*/i.test(navigator.userAgent),f=n&&a&&u,d=n&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&i&&!u,h=0,g=1,_=2,p=1,y=2,m=4,x=8,C=16,S=32,v=64,k=128,T=2047,N=1,b=2,w=3,E=4,O=5,M=6,A=l||c||d?"\xa0":"\u200b",P="\n\n",D=o?"\xa0":A,F="\u0591-\u07ff\ufb1d-\ufdfd\ufe70-\ufefc",L="A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u02b8\u0300-\u0590\u0800-\u1fff\u200e\u2c00-\ufb1c\ufe00-\ufe6f\ufefd-\uffff",I=new RegExp("^[^"+L+"]*["+F+"]"),K=new RegExp("^[^"+F+"]*["+L+"]"),z={bold:1,capitalize:1024,code:16,highlight:k,italic:2,lowercase:256,strikethrough:4,subscript:32,superscript:64,underline:8,uppercase:512},R={directionless:1,unmergeable:2},B={center:2,end:6,justify:4,left:1,right:3,start:5},W={[b]:"center",[M]:"end",[E]:"justify",[N]:"left",[w]:"right",[O]:"start"},J={normal:0,segmented:2,token:1},j={[h]:"normal",[_]:"segmented",[g]:"token"},U="$",$="$config";function V(t,e,n,r,i,o){let s=t.getFirstChild();for(;null!==s;){const t=s.__key;s.__parent===e&&(Pi(s)&&V(s,t,n,r,i,o),n.has(t)||o.delete(t),i.push(t)),s=s.getNextSibling()}}let Y=!1,q=0;function H(t){q=t.timeStamp}function G(t,e,n){const r="BR"===t.nodeName,i=e.__lexicalLineBreak;return i&&(t===i||r&&t.previousSibling===i)||r&&void 0!==Fo(t,n)}function X(t,e,n){const r=Es(ms(n));let i=null,o=null;null!==r&&r.anchorNode===t&&(i=r.anchorOffset,o=r.focusOffset);const s=t.nodeValue;null!==s&&Yo(e,s,i,o,!1)}function Q(t,e,n){if(wr(t)){const e=t.anchor.getNode();if(e.is(n)&&t.format!==e.getFormat())return!1}return vo(e)&&n.isAttached()}function Z(t,e,n,r){for(let i=t;i&&!Vs(i);i=fs(i)){const t=Fo(i,e);if(void 0!==t){const e=Po(t,n);if(e)return Li(e)||!Ps(i)?void 0:[i,e]}else if(i===r)return[r,Ro(n)]}}function tt(t,e,n){Y=!0;const r=performance.now()-q>100;try{Ei(t,()=>{const i=$r()||function(t){return t.getEditorState().read(()=>{const t=$r();return null!==t?t.clone():null})}(t),s=new Map,l=t.getRootElement(),c=t._editorState,a=t._blockCursorElement;let u=!1,f="";for(let n=0;n<e.length;n++){const d=e[n],h=d.type,g=d.target,_=Z(g,t,c,l);if(!_)continue;const[p,y]=_;if("characterData"===h)r&&yr(y)&&vo(g)&&Q(i,g,y)&&X(g,y,t);else if("childList"===h){u=!0;const e=d.addedNodes;for(let n=0;n<e.length;n++){const r=e[n],i=Do(r),s=r.parentNode;if(null!=s&&r!==a&&null===i&&!G(r,s,t)){if(o){const t=(Ps(r)?r.innerText:null)||r.nodeValue;t&&(f+=t)}s.removeChild(r)}}const n=d.removedNodes,r=n.length;if(r>0){let e=0;for(let i=0;i<r;i++){const r=n[i];(G(r,g,t)||a===r)&&(g.appendChild(r),e++)}r!==e&&s.set(p,y)}}}if(s.size>0)for(const[e,n]of s)n.reconcileObservedMutation(e,t);const d=n.takeRecords();if(d.length>0){for(let e=0;e<d.length;e++){const n=d[e],r=n.addedNodes,i=n.target;for(let e=0;e<r.length;e++){const n=r[e],o=n.parentNode;null==o||"BR"!==n.nodeName||G(n,i,t)||o.removeChild(n)}}n.takeRecords()}null!==i&&(u&&Bo(i),o&&cs(t)&&i.insertRawText(f))})}finally{Y=!1}}function et(t){const e=t._observer;if(null!==e){tt(t,e.takeRecords(),e)}}function nt(t){!function(t){0===q&&ms(t).addEventListener("textInput",H,!0)}(t),t._observer=new MutationObserver((e,n)=>{tt(t,e,n)})}class rt{key;parse;unparse;isEqual;defaultValue;resetOnCopyNode;constructor(t,e){this.key=t,this.parse=e.parse.bind(e),this.unparse=(e.unparse||ht).bind(e),this.isEqual=(e.isEqual||Object.is).bind(e),this.defaultValue=this.parse(void 0),this.resetOnCopyNode=e.resetOnCopyNode||!1}}function it(t,e){return new rt(t,e)}function ot(t,e,n="latest"){const r=("latest"===n?t.getLatest():t).__state;return r?r.getValue(e):e.defaultValue}function st(t,e,n){const r=ot(t,n,"direct"),i=ot(e,n,"direct");return n.isEqual(r,i)?null:[r,i]}function lt(t,e,n){let r;if(di(),"function"==typeof n){const i=t.getLatest(),o=ot(i,e);if(r=n(o),e.isEqual(o,r))return i}else r=n;const i=t.getWritable();return ut(i).updateFromKnown(e,r),i}function ct(t){const e=new Map,n=new Set;for(let r="function"==typeof t?t:t.replace;r.prototype&&void 0!==r.prototype.getType;r=Object.getPrototypeOf(r)){const{ownNodeConfig:t}=qs(r);if(t&&t.stateConfigs)for(const r of t.stateConfigs){let t;"stateConfig"in r?(t=r.stateConfig,r.flat&&n.add(t.key)):t=r,e.set(t.key,t)}}return{flatKeys:n,sharedConfigMap:e}}class at{node;knownState;unknownState;sharedNodeState;size;constructor(t,e,n=void 0,r=new Map,i=void 0){this.node=t,this.sharedNodeState=e,this.unknownState=n,this.knownState=r;const{sharedConfigMap:o}=this.sharedNodeState,s=void 0!==i?i:function(t,e,n){let r=n.size;if(e)for(const i in e){const e=t.get(i);e&&n.has(e)||r++}return r}(o,n,r);this.size=s}getValue(t){const e=this.knownState.get(t);if(void 0!==e)return e;this.sharedNodeState.sharedConfigMap.set(t.key,t);let n=t.defaultValue;if(this.unknownState&&t.key in this.unknownState){const e=this.unknownState[t.key];void 0!==e&&(n=t.parse(e)),this.updateFromKnown(t,n)}return n}getInternalState(){return[this.unknownState,this.knownState]}toJSON(){const t={...this.unknownState},e={};for(const[e,n]of this.knownState)e.isEqual(n,e.defaultValue)?delete t[e.key]:t[e.key]=e.unparse(n);for(const n of this.sharedNodeState.flatKeys)n in t&&(e[n]=t[n],delete t[n]);return dt(t)&&(e.$=t),e}getWritable(t){if(this.node===t)return this;const{sharedNodeState:e,unknownState:n}=this,r=new Map(this.knownState);return new at(t,e,function(t,e,n){let r;if(n)for(const[i,o]of Object.entries(n)){const n=t.get(i);n?e.has(n)||e.set(n,n.parse(o)):(r=r||{},r[i]=o)}return r}(e.sharedConfigMap,r,n),r,this.size)}resetOnCopyNode(){for(const t of this.knownState.keys())t.resetOnCopyNode&&this.knownState.set(t,t.defaultValue);return this}updateFromKnown(t,e){const n=t.key;this.sharedNodeState.sharedConfigMap.set(n,t);const{knownState:r,unknownState:i}=this;r.has(t)||i&&n in i||(i&&(delete i[n],this.unknownState=dt(i)),this.size++),r.set(t,e)}updateFromUnknown(t,e){const n=this.sharedNodeState.sharedConfigMap.get(t);n?this.updateFromKnown(n,n.parse(e)):(this.unknownState=this.unknownState||{},t in this.unknownState||this.size++,this.unknownState[t]=e)}updateFromJSON(t){const{knownState:e}=this;for(const t of e.keys())e.set(t,t.defaultValue);if(this.size=e.size,this.unknownState=void 0,t)for(const[e,n]of Object.entries(t))this.updateFromUnknown(e,n)}}function ut(t){const e=t.getWritable(),n=e.__state?e.__state.getWritable(e):new at(e,ft(e));return e.__state=n,n}function ft(t){return t.__state?t.__state.sharedNodeState:ao(zs(),t.getType()).sharedNodeState}function dt(t){if(t)for(const e in t)return t}function ht(t){return t}function gt(t,e,n){for(const[r,i]of e.knownState){if(t.has(r.key))continue;t.add(r.key);const e=n?n.getValue(r):r.defaultValue;if(e!==i&&!r.isEqual(e,i))return!0}return!1}function _t(t,e,n){const{unknownState:r}=e,i=n?n.unknownState:void 0;if(r)for(const[e,n]of Object.entries(r)){if(t.has(e))continue;t.add(e);if(n!==(i?i[e]:void 0))return!0}return!1}function pt(t,e){const n=t.__state;return n&&n.node===t?n.getWritable(e):n}function yt(t,e){const n=t.__mode,r=t.__format,i=t.__style,o=e.__mode,s=e.__format,l=e.__style,c=t.__state,a=e.__state;return(null===n||n===o)&&(null===r||r===s)&&(null===i||i===l)&&(null===t.__state||c===a||function(t,e){if(t===e)return!0;if(t&&e&&t.size!==e.size)return!1;const n=new Set;return!(t&&gt(n,t,e)||e&&gt(n,e,t)||t&&_t(n,t,e)||e&&_t(n,e,t))}(c,a))}function mt(t,e){const n=t.mergeWithSibling(e),r=_i()._normalizedNodes;return r.add(t.__key),r.add(e.__key),n}function xt(t){let e,n,r=t;if(""!==r.__text||!r.isSimpleText()||r.isUnmergeable()){for(;null!==(e=r.getPreviousSibling())&&yr(e)&&e.isSimpleText()&&!e.isUnmergeable();){if(""!==e.__text){if(yt(e,r)){r=mt(e,r);break}break}e.remove()}for(;null!==(n=r.getNextSibling())&&yr(n)&&n.isSimpleText()&&!n.isUnmergeable();){if(""!==n.__text){if(yt(r,n)){r=mt(r,n);break}break}n.remove()}}else r.remove()}function Ct(t){return St(t.anchor),St(t.focus),t}function St(t){for(;"element"===t.type;){const e=t.getNode(),n=t.offset;let r,i;if(n===e.getChildrenSize()?(r=e.getChildAtIndex(n-1),i=!0):(r=e.getChildAtIndex(n),i=!1),yr(r)){t.set(r.__key,i?r.getTextContentSize():0,"text",!0);break}if(!Pi(r))break;t.set(r.__key,i?r.getChildrenSize():0,"element",!0)}}let vt,kt,Tt,Nt,bt,wt,Et,Ot,Mt,At,Pt="",Dt=null,Ft=null,Lt=!1,It=!1;function Kt(t,e){const n=Et.get(t);if(null!==e){const n=ee(t);n.parentNode===e&&e.removeChild(n)}if(Ot.has(t)||kt._keyToDOMMap.delete(t),Pi(n)){const t=Ht(n,Et);zt(t,0,t.length-1,null)}void 0!==n&&is(At,Tt,Nt,n,"destroyed")}function zt(t,e,n,r){for(let i=e;i<=n;++i){const e=t[i];void 0!==e&&Kt(e,r)}}function Rt(t,e){t.setProperty("text-align",e)}const Bt="40px";function Wt(t,e){const n=vt.theme.indent;if("string"==typeof n){const r=t.classList.contains(n);e>0&&!r?t.classList.add(n):e<1&&r&&t.classList.remove(n)}if(0===e)return void t.style.setProperty("padding-inline-start","");const r=getComputedStyle(kt._rootElement||t).getPropertyValue("--lexical-indent-base-value")||Bt;t.style.setProperty("padding-inline-start",`calc(${e} * ${r})`)}function Jt(t,e){const n=t.style;0===e?Rt(n,""):1===e?Rt(n,"left"):2===e?Rt(n,"center"):3===e?Rt(n,"right"):4===e?Rt(n,"justify"):5===e?Rt(n,"start"):6===e&&Rt(n,"end")}function jt(t,e){const n=function(t){const e=t.__dir;if(null!==e)return e;if(Ki(t))return null;const n=t.getParentOrThrow();return Ki(n)&&null===n.__dir?"auto":null}(e);null!==n?t.dir=n:t.removeAttribute("dir")}function Ut(e,n){const r=Ot.get(e);void 0===r&&t(60);const i=r.createDOM(vt,kt);if(function(t,e,n){const r=n._keyToDOMMap;(function(t,e,n){const r=`__lexicalKey_${e._key}`;t[r]=n})(e,n,t),r.set(t,e)}(e,i,kt),yr(r)?i.setAttribute("data-lexical-text","true"):Li(r)&&i.setAttribute("data-lexical-decorator","true"),Pi(r)){const t=r.__indent,e=r.__size;if(jt(i,r),0!==t&&Wt(i,t),0!==e){const t=e-1;$t(Ht(r,Ot),r,0,t,r.getDOMSlot(i))}const n=r.__format;0!==n&&Jt(i,n),r.isInline()||Yt(null,r,i)}else{const t=r.getTextContent();if(Li(r)){const t=r.decorate(kt,vt);null!==t&&Xt(e,t),i.contentEditable="false"}Pt+=t}return null!==n&&n.insertChild(i),is(At,Tt,Nt,r,"created"),i}function $t(t,e,n,r,i){const o=Pt;Pt="";let s=n;for(;s<=r;++s){Ut(t[s],i);const e=Ot.get(t[s]);null!==e&&yr(e)?null===Dt&&(Dt=e.getFormat(),Ft=e.getStyle()):Pi(e)&&s<r&&!e.isInline()&&(Pt+=P)}i.element.__lexicalTextContent=Pt,Pt=o+Pt}function Vt(t,e){if(t){const n=t.__last;if(n){const t=e.get(n);if(t)return Zn(t)?"line-break":Li(t)&&t.isInline()?"decorator":null}return"empty"}return null}function Yt(t,e,n){const r=Vt(t,Et),i=Vt(e,Ot);r!==i&&e.getDOMSlot(n).setManagedLineBreak(i)}function qt(e,n,r){var i;Dt=null,Ft=null,function(e,n,r){const i=Pt,o=e.__size,s=n.__size;Pt="";const l=r.element;if(1===o&&1===s){const t=e.__first,r=n.__first;if(t===r)Gt(t,l);else{const e=ee(t),n=Ut(r,null);try{l.replaceChild(n,e)}catch(i){if("object"==typeof i&&null!=i){const o=`${i.toString()} Parent: ${l.tagName}, new child: {tag: ${n.tagName} key: ${r}}, old child: {tag: ${e.tagName}, key: ${t}}.`;throw new Error(o)}throw i}Kt(t,null)}const i=Ot.get(r);yr(i)&&null===Dt&&(Dt=i.getFormat(),Ft=i.getStyle())}else{const i=Ht(e,Et),c=Ht(n,Ot);if(i.length!==o&&t(227),c.length!==s&&t(228),0===o)0!==s&&$t(c,0,0,s-1,r);else if(0===s){if(0!==o){const t=null==r.after&&null==r.before&&null==r.element.__lexicalLineBreak;zt(i,0,o-1,t?null:l),t&&(l.textContent="")}}else!function(t,e,n,r,i,o){const s=r-1,l=i-1;let c,a,u=o.getFirstChild(),f=0,d=0;for(;f<=s&&d<=l;){const t=e[f],r=n[d];if(t===r)u=Qt(Gt(r,o.element)),f++,d++;else{if(void 0===a&&(a=Zt(n,d)),void 0===c)c=Zt(e,f);else if(!c.has(t)){f++;continue}if(!a.has(t)){u=Qt(ee(t)),Kt(t,o.element),f++,c.delete(t);continue}if(c.has(r)){const t=us(kt,r);t!==u&&o.withBefore(u).insertChild(t),u=Qt(Gt(r,o.element)),f++,d++}else Ut(r,o.withBefore(u)),d++}const i=Ot.get(r);null!==i&&yr(i)?null===Dt&&(Dt=i.getFormat(),Ft=i.getStyle()):Pi(i)&&d<=l&&!i.isInline()&&(Pt+=P)}const h=f>s,g=d>l;if(h&&!g){const t=n[l+1],e=void 0===t?null:kt.getElementByKey(t);$t(n,0,d,l,o.withBefore(e))}else g&&!h&&zt(e,f,s,o.element)}(0,i,c,o,s,r)}l.__lexicalTextContent=Pt,Pt=i+Pt}(e,n,n.getDOMSlot(r)),i=n,null==Dt||Dt===i.__textFormat||It||i.setTextFormat(Dt),function(t){null==Ft||Ft===t.__textStyle||It||t.setTextStyle(Ft)}(n)}function Ht(e,n){const r=[];let i=e.__first;for(;null!==i;){const e=n.get(i);void 0===e&&t(101),r.push(i),i=e.__next}return r}function Gt(e,n){const r=Et.get(e);let i=Ot.get(e);void 0!==r&&void 0!==i||t(61);const o=Lt||wt.has(e)||bt.has(e),s=us(kt,e);if(r===i&&!o){let t;if(Pi(r)){const e=s.__lexicalTextContent;"string"==typeof e?t=e:(t=r.getTextContent(),s.__lexicalTextContent=t)}else t=r.getTextContent();return Pt+=t,s}if(r!==i&&o&&is(At,Tt,Nt,i,"updated"),i.updateDOM(r,s,vt)){const r=Ut(e,null);return null===n&&t(62),n.replaceChild(r,s),Kt(e,null),r}if(Pi(r)){Pi(i)||t(334,e);const n=i.__indent;(Lt||n!==r.__indent)&&Wt(s,n);const l=i.__format;if((Lt||l!==r.__format)&&Jt(s,l),o)qt(r,i,s),Ki(i)||i.isInline()||Yt(r,i,s);else{const t=s.__lexicalTextContent;let e;"string"==typeof t?e=t:(e=r.getTextContent(),s.__lexicalTextContent=e),Pt+=e}if((Lt||i.__dir!==r.__dir)&&(jt(s,i),Ki(i)&&!Lt))for(const t of i.getChildren())if(Pi(t)){jt(us(kt,t.getKey()),t)}}else{const t=i.getTextContent();if(Li(i)){const t=i.decorate(kt,vt);null!==t&&Xt(e,t)}Pt+=t}if(!It&&Ki(i)&&i.__cachedText!==Pt){const t=i.getWritable();t.__cachedText=Pt,i=t}return s}function Xt(t,e){let n=kt._pendingDecorators;const r=kt._decorators;if(null===n){if(r[t]===e)return;n=Io(kt)}n[t]=e}function Qt(t){let e=t.nextSibling;return null!==e&&e===kt._blockCursorElement&&(e=e.nextSibling),e}function Zt(t,e){const n=new Set;for(let r=e;r<t.length;r++)n.add(t[r]);return n}function te(t,e,n,r,i,o){Pt="",Lt=2===r,kt=n,vt=n._config,Tt=n._nodes,Nt=kt._listeners.mutation,bt=i,wt=o,Et=t._nodeMap,Ot=e._nodeMap,It=e._readOnly,Mt=new Map(n._keyToDOMMap);const s=new Map;return At=s,Gt("root",null),kt=void 0,Tt=void 0,bt=void 0,wt=void 0,Et=void 0,Ot=void 0,vt=void 0,Mt=void 0,At=void 0,s}function ee(e){const n=Mt.get(e);return void 0===n&&t(75,e),n}function ne(t){return{type:t}}const re=ne("SELECTION_CHANGE_COMMAND"),ie=ne("SELECTION_INSERT_CLIPBOARD_NODES_COMMAND"),oe=ne("CLICK_COMMAND"),se=ne("BEFORE_INPUT_COMMAND"),le=ne("INPUT_COMMAND"),ce=ne("COMPOSITION_START_COMMAND"),ae=ne("COMPOSITION_END_COMMAND"),ue=ne("DELETE_CHARACTER_COMMAND"),fe=ne("INSERT_LINE_BREAK_COMMAND"),de=ne("INSERT_PARAGRAPH_COMMAND"),he=ne("CONTROLLED_TEXT_INSERTION_COMMAND"),ge=ne("PASTE_COMMAND"),_e=ne("REMOVE_TEXT_COMMAND"),pe=ne("DELETE_WORD_COMMAND"),ye=ne("DELETE_LINE_COMMAND"),me=ne("FORMAT_TEXT_COMMAND"),xe=ne("UNDO_COMMAND"),Ce=ne("REDO_COMMAND"),Se=ne("KEYDOWN_COMMAND"),ve=ne("KEY_ARROW_RIGHT_COMMAND"),ke=ne("MOVE_TO_END"),Te=ne("KEY_ARROW_LEFT_COMMAND"),Ne=ne("MOVE_TO_START"),be=ne("KEY_ARROW_UP_COMMAND"),we=ne("KEY_ARROW_DOWN_COMMAND"),Ee=ne("KEY_ENTER_COMMAND"),Oe=ne("KEY_SPACE_COMMAND"),Me=ne("KEY_BACKSPACE_COMMAND"),Ae=ne("KEY_ESCAPE_COMMAND"),Pe=ne("KEY_DELETE_COMMAND"),De=ne("KEY_TAB_COMMAND"),Fe=ne("INSERT_TAB_COMMAND"),Le=ne("INDENT_CONTENT_COMMAND"),Ie=ne("OUTDENT_CONTENT_COMMAND"),Ke=ne("DROP_COMMAND"),ze=ne("FORMAT_ELEMENT_COMMAND"),Re=ne("DRAGSTART_COMMAND"),Be=ne("DRAGOVER_COMMAND"),We=ne("DRAGEND_COMMAND"),Je=ne("COPY_COMMAND"),je=ne("CUT_COMMAND"),Ue=ne("SELECT_ALL_COMMAND"),$e=ne("CLEAR_EDITOR_COMMAND"),Ve=ne("CLEAR_HISTORY_COMMAND"),Ye=ne("CAN_REDO_COMMAND"),qe=ne("CAN_UNDO_COMMAND"),He=ne("FOCUS_COMMAND"),Ge=ne("BLUR_COMMAND"),Xe=ne("KEY_MODIFIER_COMMAND"),Qe=Object.freeze({}),Ze=[["keydown",function(t,e){if(tn=t.timeStamp,en=t.key,e.isComposing())return;as(e,Se,t)}],["pointerdown",function(t,e){const n=t.target,r=t.pointerType;Ds(n)&&"touch"!==r&&"pen"!==r&&0===t.button&&Ei(e,()=>{ho(n)||(cn=!0)})}],["compositionstart",function(t,e){as(e,ce,t)}],["compositionend",function(t,e){o?un=!0:c||!l&&!d?as(e,ae,t):(fn=!0,dn=t.data)}],["input",function(t,e){t.stopPropagation(),Ei(e,()=>{e.dispatchCommand(le,t)},{event:t}),rn=null}],["click",function(t,e){Ei(e,()=>{const n=$r(),r=Es(ms(e)),i=Vr();if(r)if(wr(n)){const e=n.anchor,o=e.getNode();if("element"===e.type&&0===e.offset&&n.isCollapsed()&&!Ki(o)&&1===zo().getChildrenSize()&&o.getTopLevelElementOrThrow().isEmpty()&&null!==i&&n.is(i))r.removeAllRanges(),n.dirty=!0;else if(3===t.detail&&!n.isCollapsed()){if(o!==n.focus.getNode()){const t=Gs(o,t=>Pi(t)&&!t.isInline());Pi(t)&&t.select(0)}}}else if("touch"===t.pointerType||"pen"===t.pointerType){const n=r.anchorNode;if(Ps(n)||vo(n)){Bo(Ur(i,r,e,t))}}as(e,oe,t)})}],["cut",Qe],["copy",Qe],["dragstart",Qe],["dragover",Qe],["dragend",Qe],["paste",Qe],["focus",Qe],["blur",Qe],["drop",Qe]];s&&Ze.push(["beforeinput",(t,e)=>function(t,e){const n=t.inputType;if("deleteCompositionText"===n||o&&cs(e))return;if("insertCompositionText"===n)return;as(e,se,t)}(t,e)]);let tn=0,en=null,nn=0,rn=null;const on=new WeakMap,sn=new WeakMap;let ln=!1,cn=!1,an=!1,un=!1,fn=!1,dn="",hn=null,gn=[0,"",0,"root",0];function _n(t,e,n,r,i){const o=t.anchor,l=t.focus,c=o.getNode(),a=_i(),u=Es(ms(a)),f=null!==u?u.anchorNode:null,d=o.key,h=a.getElementByKey(d),g=n.length;return d!==l.key||!yr(c)||(!i&&(!s||nn<r+50)||c.isDirty()&&g<2||Jo(n))&&o.offset!==l.offset&&!c.isComposing()||So(c)||c.isDirty()&&g>1||(i||!s)&&null!==h&&!c.isComposing()&&f!==To(h)||null!==u&&null!==e&&(!e.collapsed||e.startContainer!==u.anchorNode||e.startOffset!==u.anchorOffset)||!c.isComposing()&&(c.getFormat()!==t.format||c.getStyle()!==t.style)||function(t,e){if(e.isSegmented())return!0;if(!t.isCollapsed())return!1;const n=t.anchor.offset,r=e.getParentOrThrow(),i=Co(e);return 0===n?!e.canInsertTextBefore()||!r.canInsertTextBefore()&&!e.isComposing()||i||function(t){const e=t.getPreviousSibling();return(yr(e)||Pi(e)&&e.isInline())&&!e.canInsertTextAfter()}(e):n===e.getTextContentSize()&&(!e.canInsertTextAfter()||!r.canInsertTextAfter()&&!e.isComposing()||i)}(t,c)}function pn(t,e){return vo(t)&&null!==t.nodeValue&&0!==e&&e!==t.nodeValue.length}function yn(e,n,r){const{anchorNode:i,anchorOffset:o,focusNode:s,focusOffset:l}=e;ln&&(ln=!1,pn(i,o)&&pn(s,l)&&!hn)||Ei(n,()=>{if(!r)return void Bo(null);if(!_o(n,i,s))return;let c=$r();if(hn&&wr(c)&&c.isCollapsed()){const t=c.anchor,e=hn.anchor;(t.key===e.key&&t.offset===e.offset+1||1===t.offset&&e.getNode().is(t.getNode().getPreviousSibling()))&&(c=hn.clone(),Bo(c))}if(hn=null,wr(c)){const r=c.anchor,i=r.getNode();if(c.isCollapsed()){"Range"===e.type&&e.anchorNode===e.focusNode&&(c.dirty=!0);const o=ms(n).event,s=o?o.timeStamp:performance.now(),[l,a,u,f,d]=gn,h=zo(),g=!1===n.isComposing()&&""===h.getTextContent();if(s<d+200&&r.offset===u&&r.key===f)mn(c,l,a);else if("text"===r.type)yr(i)||t(141),xn(c,i);else if("element"===r.type&&!g){Pi(i)||t(259);const e=r.getNode();e.isEmpty()?function(t,e){const n=e.getTextFormat(),r=e.getTextStyle();mn(t,n,r)}(c,e):mn(c,c.format,"")}}else{const t=r.key,e=c.focus.key,n=c.getNodes(),i=n.length,s=c.isBackward(),a=s?l:o,u=s?o:l,f=s?e:t,d=s?t:e;let h=2047,g=!1;for(let t=0;t<i;t++){const e=n[t],r=e.getTextContentSize();if(yr(e)&&0!==r&&!(0===t&&e.__key===f&&a===r||t===i-1&&e.__key===d&&0===u)&&(g=!0,h&=e.getFormat(),0===h))break}c.format=g?h:0}}as(n,re,void 0)})}function mn(t,e,n){t.format===e&&t.style===n||(t.format=e,t.style=n,t.dirty=!0)}function xn(t,e){mn(t,e.getFormat(),e.getStyle())}function Cn(t){if(!t.getTargetRanges)return null;const e=t.getTargetRanges();return 0===e.length?null:e[0]}function Sn(e){const n=e.inputType,r=Cn(e),i=_i(),o=$r();if("deleteContentBackward"===n){if(null===o){const t=Vr();if(!wr(t))return!0;Bo(t.clone())}if(wr(o)){const n=o.anchor.key===o.focus.key;if(s=e.timeStamp,"MediaLast"===en&&s<tn+30&&i.isComposing()&&n){if(Mo(null),tn=0,setTimeout(()=>{Ei(i,()=>{Mo(null)})},30),wr(o)){const e=o.anchor.getNode();e.markDirty(),yr(e)||t(142),xn(o,e)}}else{Mo(null),e.preventDefault();const t=o.anchor.getNode(),r=t.getTextContent(),s=t.canInsertTextAfter(),l=0===o.anchor.offset&&o.focus.offset===r.length;let c=f&&n&&!l&&s;if(c&&o.isCollapsed()&&(c=!Li(ls(o.anchor,!0))),!c){as(i,ue,!0);const t=$r();f&&wr(t)&&t.isCollapsed()&&(hn=t,setTimeout(()=>hn=null))}}return!0}}var s;if(!wr(o))return!0;const l=e.data;null!==rn&&Vo(!1,i,rn),o.dirty&&null===rn||!o.isCollapsed()||Ki(o.anchor.getNode())||null===r||o.applyDOMRange(r),rn=null;const a=o.anchor,u=o.focus,d=a.getNode(),h=u.getNode();if("insertText"===n||"insertTranspose"===n){if("\n"===l)e.preventDefault(),as(i,fe,!1);else if(l===P)e.preventDefault(),as(i,de,void 0);else if(null==l&&e.dataTransfer){const t=e.dataTransfer.getData("text/plain");e.preventDefault(),o.insertRawText(t)}else null!=l&&_n(o,r,l,e.timeStamp,!0)?(e.preventDefault(),as(i,he,l)):rn=l;return nn=e.timeStamp,!0}switch(e.preventDefault(),n){case"insertFromYank":case"insertFromDrop":case"insertReplacementText":as(i,he,e);break;case"insertFromComposition":Mo(null),as(i,he,e);break;case"insertLineBreak":Mo(null),as(i,fe,!1);break;case"insertParagraph":Mo(null),an&&!c?(an=!1,as(i,fe,!1)):as(i,de,void 0);break;case"insertFromPaste":case"insertFromPasteAsQuotation":as(i,ge,e);break;case"deleteByComposition":(function(t,e){return t!==e||Pi(t)||Pi(e)||!Co(t)||!Co(e)})(d,h)&&as(i,_e,e);break;case"deleteByDrag":case"deleteByCut":as(i,_e,e);break;case"deleteContent":as(i,ue,!1);break;case"deleteWordBackward":as(i,pe,!0);break;case"deleteWordForward":as(i,pe,!1);break;case"deleteHardLineBackward":case"deleteSoftLineBackward":as(i,ye,!0);break;case"deleteContentForward":case"deleteHardLineForward":case"deleteSoftLineForward":as(i,ye,!1);break;case"formatStrikeThrough":as(i,me,"strikethrough");break;case"formatBold":as(i,me,"bold");break;case"formatItalic":as(i,me,"italic");break;case"formatUnderline":as(i,me,"underline");break;case"historyUndo":as(i,xe,void 0);break;case"historyRedo":as(i,Ce,void 0)}return!0}function vn(t){if(Ps(t.target)&&ho(t.target))return!0;const e=_i(),n=$r(),r=t.data,i=Cn(t);if(null!=r&&wr(n)&&_n(n,i,r,t.timeStamp,!1)){un&&(Nn(e,r),un=!1);const i=n.anchor.getNode(),l=Es(ms(e));if(null===l)return!0;const c=n.isBackward(),a=c?n.anchor.offset:n.focus.offset,u=c?n.focus.offset:n.anchor.offset;s&&!n.isCollapsed()&&yr(i)&&null!==l.anchorNode&&i.getTextContent().slice(0,a)+r+i.getTextContent().slice(a+u)===$o(l.anchorNode)||as(e,he,r);const d=r.length;o&&d>1&&"insertCompositionText"===t.inputType&&!e.isComposing()&&(n.anchor.offset-=d),f&&e.isComposing()&&(tn=0,Mo(null))}else{Vo(!1,e,null!==r?r:void 0),un&&(Nn(e,r||void 0),un=!1)}return function(){di();const t=_i();et(t)}(),!0}function kn(t){const e=_i(),n=$r();if(wr(n)&&!e.isComposing()){const r=n.anchor,i=n.anchor.getNode();Mo(r.key),gs(qn),(t.timeStamp<tn+30||"element"===r.type||!n.isCollapsed()||i.getFormat()!==n.format||yr(i)&&i.getStyle()!==n.style)&&as(e,he,D)}return!0}function Tn(t){return Nn(_i(),t.data),gs(Hn),!0}function Nn(t,e){const n=t._compositionKey;if(Mo(null),null!==n&&null!=e){if(""===e){const e=Po(n),r=To(t.getElementByKey(n));if(null!==r&&null!==r.nodeValue&&yr(e)){const n=Es(ms(t));let i=null,o=null;null!==n&&n.anchorNode===r&&(i=n.anchorOffset,o=n.focusOffset),Yo(e,r.nodeValue,i,o,!0)}return}if("\n"===e[e.length-1]){const e=$r();if(wr(e)||Or(e)){if(wr(e)){const t=e.focus;e.anchor.set(t.key,t.offset,t.type)}return void as(t,Ee,null)}}}Vo(!0,t,e)}function bn(t){const e=_i();if(null==t.key)return!0;if(fn){if(ts(t))return Ei(e,()=>{Nn(e,dn)}),fn=!1,dn="",!0;fn=!1,dn=""}if(function(t){return Xo(t,"ArrowRight",{shiftKey:"any"})}(t))as(e,ve,t);else if(function(t){return Xo(t,"ArrowRight",Qo)}(t))as(e,ke,t);else if(function(t){return Xo(t,"ArrowLeft",{shiftKey:"any"})}(t))as(e,Te,t);else if(function(t){return Xo(t,"ArrowLeft",Qo)}(t))as(e,Ne,t);else if(function(t){return Xo(t,"ArrowUp",{altKey:"any",shiftKey:"any"})}(t))as(e,be,t);else if(function(t){return Xo(t,"ArrowDown",{altKey:"any",shiftKey:"any"})}(t))as(e,we,t);else if(function(t){return Xo(t,"Enter",{altKey:"any",ctrlKey:"any",metaKey:"any",shiftKey:!0})}(t))an=!0,as(e,Ee,t);else if(function(t){return" "===t.key}(t))as(e,Oe,t);else if(function(t){return i&&Xo(t,"o",{ctrlKey:!0})}(t))t.preventDefault(),an=!0,as(e,fe,!0);else if(function(t){return Xo(t,"Enter",{altKey:"any",ctrlKey:"any",metaKey:"any"})}(t))an=!1,as(e,Ee,t);else if(function(t){return Xo(t,"Backspace",{shiftKey:"any"})||i&&Xo(t,"h",{ctrlKey:!0})}(t))ts(t)?as(e,Me,t):(t.preventDefault(),as(e,ue,!0));else if(function(t){return"Escape"===t.key}(t))as(e,Ae,t);else if(function(t){return Xo(t,"Delete",{})||i&&Xo(t,"d",{ctrlKey:!0})}(t))!function(t){return"Delete"===t.key}(t)?(t.preventDefault(),as(e,ue,!1)):as(e,Pe,t);else if(function(t){return Xo(t,"Backspace",Zo)}(t))t.preventDefault(),as(e,pe,!0);else if(function(t){return Xo(t,"Delete",Zo)}(t))t.preventDefault(),as(e,pe,!1);else if(function(t){return i&&Xo(t,"Backspace",{metaKey:!0})}(t))t.preventDefault(),as(e,ye,!0);else if(function(t){return i&&(Xo(t,"Delete",{metaKey:!0})||Xo(t,"k",{ctrlKey:!0}))}(t))t.preventDefault(),as(e,ye,!1);else if(function(t){return Xo(t,"b",Qo)}(t))t.preventDefault(),as(e,me,"bold");else if(function(t){return Xo(t,"u",Qo)}(t))t.preventDefault(),as(e,me,"underline");else if(function(t){return Xo(t,"i",Qo)}(t))t.preventDefault(),as(e,me,"italic");else if(function(t){return Xo(t,"Tab",{shiftKey:"any"})}(t))as(e,De,t);else if(function(t){return Xo(t,"z",Qo)}(t))t.preventDefault(),as(e,xe,void 0);else if(function(t){if(i)return Xo(t,"z",{metaKey:!0,shiftKey:!0});return Xo(t,"y",{ctrlKey:!0})||Xo(t,"z",{ctrlKey:!0,shiftKey:!0})}(t))t.preventDefault(),as(e,Ce,void 0);else{const n=e._editorState._selection;null===n||wr(n)?es(t)&&(t.preventDefault(),as(e,Ue,t)):!function(t){return Xo(t,"c",Qo)}(t)?!function(t){return Xo(t,"x",Qo)}(t)?es(t)&&(t.preventDefault(),as(e,Ue,t)):(t.preventDefault(),as(e,je,t)):(t.preventDefault(),as(e,Je,t))}return function(t){return t.ctrlKey||t.shiftKey||t.altKey||t.metaKey}(t)&&e.dispatchCommand(Xe,t),!0}function wn(t){let e=t.__lexicalEventHandles;return void 0===e&&(e=[],t.__lexicalEventHandles=e),e}const En=new Map;function On(t){const e=Os(t.target);if(null===e)return;const n=yo(e.anchorNode);if(null===n)return;cn&&(cn=!1,Ei(n,()=>{const r=Vr(),i=e.anchorNode;if(Ps(i)||vo(i)){Bo(Ur(r,e,n,t))}}));const r=jo(n),i=r[r.length-1],o=i._key,s=En.get(o),l=s||i;l!==n&&yn(e,l,!1),yn(e,n,!0),n!==i?En.set(o,n):s&&En.delete(o)}function Mn(t){t._lexicalHandled=!0}function An(t){return!0===t._lexicalHandled}const Pn=()=>{};function Dn(e){const n=on.get(e);if(void 0===n)return void Pn();const r=sn.get(n);if(void 0===r)return void Pn();const i=r-1;i>=0||t(164),on.delete(e),sn.set(n,i),0===i&&n.removeEventListener("selectionchange",On);const o=mo(e);po(o)?(!function(t){if(null!==t._parentEditor){const e=jo(t),n=e[e.length-1]._key;En.get(n)===t&&En.delete(n)}else En.delete(t._key)}(o),e.__lexicalEditor=null):o&&t(198);const s=wn(e);for(let t=0;t<s.length;t++)s[t]();e.__lexicalEventHandles=[]}function Fn(t,e,n){di();const r=t.__key,i=t.getParent();if(null===i)return;const o=function(t){const e=$r();if(!wr(e)||!Pi(t))return e;const{anchor:n,focus:r}=e,i=n.getNode(),o=r.getNode();ps(i,t)&&n.set(t.__key,0,"element");ps(o,t)&&r.set(t.__key,0,"element");return e}(t);let s=!1;if(wr(o)&&e){const e=o.anchor,n=o.focus;e.key===r&&(Hr(e,t,i,t.getPreviousSibling(),t.getNextSibling()),s=!0),n.key===r&&(Hr(n,t,i,t.getPreviousSibling(),t.getNextSibling()),s=!0)}else Or(o)&&e&&t.isSelected()&&t.selectPrevious();if(wr(o)&&e&&!s){const e=t.getIndexWithinParent();Eo(t),Yr(o,i,e,-1)}else Eo(t);n||Ss(i)||i.canBeEmpty()||!i.isEmpty()||Fn(i,e),e&&o&&Ki(i)&&i.isEmpty()&&i.selectEnd()}function Ln(t){return t}const In=Symbol.for("ephemeral");function Kn(t){return t[In]||!1}class zn{__type;__key;__parent;__prev;__next;__state;static getType(){const{ownNodeType:e}=qs(this);return void 0===e&&t(64,this.name),e}static clone(e){t(65,this.name)}$config(){return{}}config(t,e){const n=e.extends||Object.getPrototypeOf(this.constructor);return Object.assign(e,{extends:n,type:t}),{[t]:e}}afterCloneFrom(t){this.__key===t.__key?(this.__parent=t.__parent,this.__next=t.__next,this.__prev=t.__prev,this.__state=t.__state):t.__state&&(this.__state=t.__state.getWritable(this))}resetOnCopyNodeFrom(t){this.__state&&(this.__state=this.__state.getWritable(this).resetOnCopyNode())}static importDOM;constructor(t){this.__type=this.constructor.getType(),this.__parent=null,this.__prev=null,this.__next=null,Object.defineProperty(this,"__state",{configurable:!0,enumerable:!1,value:void 0,writable:!0}),wo(this,t)}getType(){return this.__type}isInline(){t(137,this.constructor.name)}isAttached(){let t=this.__key;for(;null!==t;){if("root"===t)return!0;const e=Po(t);if(null===e)break;t=e.__parent}return!1}isSelected(t){const e=t||$r();if(null==e)return!1;const n=e.getNodes().some(t=>t.__key===this.__key);if(yr(this))return n;if(wr(e)&&"element"===e.anchor.type&&"element"===e.focus.type){if(e.isCollapsed())return!1;const t=this.getParent();if(Li(this)&&this.isInline()&&t){const n=e.isBackward()?e.focus:e.anchor;if(t.is(n.getNode())&&n.offset===t.getChildrenSize()&&this.is(t.getLastChild()))return!1}}return n}getKey(){return this.__key}getIndexWithinParent(){const t=this.getParent();if(null===t)return-1;let e=t.getFirstChild(),n=0;for(;null!==e;){if(this.is(e))return n;n++,e=e.getNextSibling()}return-1}getParent(){const t=this.getLatest().__parent;return null===t?null:Po(t)}getParentOrThrow(){const e=this.getParent();return null===e&&t(66,this.__key),e}getTopLevelElement(){let e=this;for(;null!==e;){const n=e.getParent();if(Ss(n))return Pi(e)||e===this&&Li(e)||t(194),e;e=n}return null}getTopLevelElementOrThrow(){const e=this.getTopLevelElement();return null===e&&t(67,this.__key),e}getParents(){const t=[];let e=this.getParent();for(;null!==e;)t.push(e),e=e.getParent();return t}getParentKeys(){const t=[];let e=this.getParent();for(;null!==e;)t.push(e.__key),e=e.getParent();return t}getPreviousSibling(){const t=this.getLatest().__prev;return null===t?null:Po(t)}getPreviousSiblings(){const t=[],e=this.getParent();if(null===e)return t;let n=e.getFirstChild();for(;null!==n&&!n.is(this);)t.push(n),n=n.getNextSibling();return t}getNextSibling(){const t=this.getLatest().__next;return null===t?null:Po(t)}getNextSiblings(){const t=[];let e=this.getNextSibling();for(;null!==e;)t.push(e),e=e.getNextSibling();return t}getCommonAncestor(t){const e=Pi(this)?this:this.getParent(),n=Pi(t)?t:t.getParent(),r=e&&n?Ml(e,n):null;return r?r.commonAncestor:null}is(t){return null!=t&&this.__key===t.__key}isBefore(e){const n=Ml(this,e);return null!==n&&("descendant"===n.type||("branch"===n.type?-1===wl(n):("same"!==n.type&&"ancestor"!==n.type&&t(279),!1)))}isParentOf(t){const e=Ml(this,t);return null!==e&&"ancestor"===e.type}getNodesBetween(e){const n=this.isBefore(e),r=[],i=new Set;let o=this;for(;null!==o;){const s=o.__key;if(i.has(s)||(i.add(s),r.push(o)),o===e)break;const l=Pi(o)?n?o.getFirstChild():o.getLastChild():null;if(null!==l){o=l;continue}const c=n?o.getNextSibling():o.getPreviousSibling();if(null!==c){o=c;continue}const a=o.getParentOrThrow();if(i.has(a.__key)||r.push(a),a===e)break;let u=null,f=a;do{if(null===f&&t(68),u=n?f.getNextSibling():f.getPreviousSibling(),f=f.getParent(),null===f)break;null!==u||i.has(f.__key)||r.push(f)}while(null===u);o=u}return n||r.reverse(),r}isDirty(){const t=_i()._dirtyLeaves;return null!==t&&t.has(this.__key)}getLatest(){if(Kn(this))return this;const e=Po(this.__key);return null===e&&t(113),e}getWritable(){if(Kn(this))return this;di();const t=gi(),e=_i(),n=t._nodeMap,r=this.__key,i=this.getLatest(),o=e._cloneNotNeeded,s=$r();if(null!==s&&s.setCachedNodes(null),o.has(r))return Oo(i),i;const l=Js(i);return o.add(r),Oo(l),n.set(r,l),l}getTextContent(){return""}getTextContentSize(){return this.getTextContent().length}createDOM(e,n){t(70)}updateDOM(e,n,r){t(71)}exportDOM(t){return{element:this.createDOM(t._config,t)}}exportJSON(){const t=this.__state?this.__state.toJSON():void 0;return{type:this.__type,version:1,...t}}static importJSON(e){t(18,this.name)}updateFromJSON(t){return function(t,e){const n=t.getWritable(),r=e.$;let i=r;for(const t of ft(n).flatKeys)t in e&&(void 0!==i&&i!==r||(i={...r}),i[t]=e[t]);return(n.__state||i)&&ut(t).updateFromJSON(i),n}(this,t)}static transform(){return null}remove(t){Fn(this,!0,t)}replace(e,n){di();let r=$r();null!==r&&(r=r.clone()),Ts(this,e);const i=this.getLatest(),o=this.__key,s=e.__key,l=e.getWritable(),c=this.getParentOrThrow().getWritable(),a=c.__size;Eo(l);const u=i.getPreviousSibling(),f=i.getNextSibling(),d=i.__prev,h=i.__next,g=i.__parent;if(Fn(i,!1,!0),null===u)c.__first=s;else{u.getWritable().__next=s}if(l.__prev=d,null===f)c.__last=s;else{f.getWritable().__prev=s}if(l.__next=h,l.__parent=g,c.__size=a,n&&(Pi(this)&&Pi(l)||t(139),this.getChildren().forEach(t=>{l.append(t)})),wr(r)){Bo(r);const t=r.anchor,e=r.focus;t.key===o&&Nr(t,l),e.key===o&&Nr(e,l)}return Ao()===o&&Mo(s),l}insertAfter(t,e=!0){di(),Ts(this,t);const n=this.getWritable(),r=t.getWritable(),i=r.getParent(),o=$r();let s=!1,l=!1;if(null!==i){const e=t.getIndexWithinParent();if(Eo(r),wr(o)){const t=i.__key,n=o.anchor,r=o.focus;s="element"===n.type&&n.key===t&&n.offset===e+1,l="element"===r.type&&r.key===t&&r.offset===e+1}}const c=this.getNextSibling(),a=this.getParentOrThrow().getWritable(),u=r.__key,f=n.__next;if(null===c)a.__last=u;else{c.getWritable().__prev=u}if(a.__size++,n.__next=u,r.__next=f,r.__prev=n.__key,r.__parent=n.__parent,e&&wr(o)){const t=this.getIndexWithinParent();Yr(o,a,t+1);const e=a.__key;s&&o.anchor.set(e,t+2,"element"),l&&o.focus.set(e,t+2,"element")}return t}insertBefore(t,e=!0){di(),Ts(this,t);const n=this.getWritable(),r=t.getWritable(),i=r.__key;Eo(r);const o=this.getPreviousSibling(),s=this.getParentOrThrow().getWritable(),l=n.__prev,c=this.getIndexWithinParent();if(null===o)s.__first=i;else{o.getWritable().__next=i}s.__size++,n.__prev=i,r.__prev=l,r.__next=n.__key,r.__parent=n.__parent;const a=$r();if(e&&wr(a)){Yr(a,this.getParentOrThrow(),c)}return t}isParentRequired(){return!1}createParentElementNode(){return Vi()}selectStart(){return this.selectPrevious()}selectEnd(){return this.selectNext(0,0)}selectPrevious(t,e){di();const n=this.getPreviousSibling(),r=this.getParentOrThrow();if(null===n)return r.select(0,0);if(Pi(n))return n.select();if(!yr(n)){const t=n.getIndexWithinParent()+1;return r.select(t,t)}return n.select(t,e)}selectNext(t,e){di();const n=this.getNextSibling(),r=this.getParentOrThrow();if(null===n)return r.select();if(Pi(n))return n.select(0,0);if(!yr(n)){const t=n.getIndexWithinParent();return r.select(t,t)}return n.select(t,e)}markDirty(){this.getWritable()}reconcileObservedMutation(t,e){this.markDirty()}}const Rn="historic",Bn="history-push",Wn="history-merge",Jn="paste",jn="collaboration",Un="skip-collab",$n="skip-scroll-into-view",Vn="skip-dom-selection",Yn="skip-selection-focus",qn="composition-start",Hn="composition-end";class Gn extends zn{static getType(){return"linebreak"}static clone(t){return new Gn(t.__key)}constructor(t){super(t)}getTextContent(){return"\n"}createDOM(){return document.createElement("br")}updateDOM(){return!1}isInline(){return!0}static importDOM(){return{br:t=>function(t){const e=t.parentElement;if(null!==e&&Is(e)){const n=e.firstChild;if(n===t||n.nextSibling===t&&tr(n)){const n=e.lastChild;if(n===t||n.previousSibling===t&&tr(n))return!0}}return!1}(t)||function(t){const e=t.parentElement;if(null!==e&&Is(e)){const n=e.firstChild;if(n===t||n.nextSibling===t&&tr(n))return!1;const r=e.lastChild;if(r===t||r.previousSibling===t&&tr(r))return!0}return!1}(t)?null:{conversion:Xn,priority:0}}}static importJSON(t){return Qn().updateFromJSON(t)}}function Xn(t){return{node:Qn()}}function Qn(){return ks(new Gn)}function Zn(t){return t instanceof Gn}function tr(t){return vo(t)&&/^( |\t|\r?\n)+$/.test(t.textContent||"")}function er(t,e){return 16&e?"code":e&k?"mark":32&e?"sub":64&e?"sup":null}function nr(t,e){return 1&e?"strong":2&e?"em":"span"}function rr(t,e,n,r,i){const o=r.classList;let s=rs(i,"base");void 0!==s&&o.add(...s),s=rs(i,"underlineStrikethrough");let l=!1;const c=8&e&&4&e;void 0!==s&&(8&n&&4&n?(l=!0,c||o.add(...s)):c&&o.remove(...s));for(const t in z){const r=z[t];if(s=rs(i,t),void 0!==s)if(n&r){if(l&&("underline"===t||"strikethrough"===t)){e&r&&o.remove(...s);continue}(0===(e&r)||c&&"underline"===t||"strikethrough"===t)&&o.add(...s)}else e&r&&o.remove(...s)}}function ir(t,e,n){const r=e.firstChild,i=n.isComposing(),s=t+(i?A:"");if(null==r)e.textContent=s;else{const t=r.nodeValue;if(t!==s)if(i||o){const[e,n,i]=function(t,e){const n=t.length,r=e.length;let i=0,o=0;for(;i<n&&i<r&&t[i]===e[i];)i++;for(;o+i<n&&o+i<r&&t[n-o-1]===e[r-o-1];)o++;return[i,n-i-o,e.slice(i,r-o)]}(t,s);0!==n&&r.deleteData(e,n),r.insertData(e,i)}else r.nodeValue=s}}function or(t,e,n,r,i,o){ir(i,t,e);const s=o.theme.text;void 0!==s&&rr(0,0,r,t,s)}function sr(t,e){const n=document.createElement(e);return n.appendChild(t),n}class lr extends zn{__text;__format;__style;__mode;__detail;static getType(){return"text"}static clone(t){return new lr(t.__text,t.__key)}afterCloneFrom(t){super.afterCloneFrom(t),this.__text=t.__text,this.__format=t.__format,this.__style=t.__style,this.__mode=t.__mode,this.__detail=t.__detail}constructor(t="",e){super(e),this.__text=t,this.__format=0,this.__style="",this.__mode=0,this.__detail=0}getFormat(){return this.getLatest().__format}getDetail(){return this.getLatest().__detail}getMode(){const t=this.getLatest();return j[t.__mode]}getStyle(){return this.getLatest().__style}isToken(){return 1===this.getLatest().__mode}isComposing(){return this.__key===Ao()}isSegmented(){return 2===this.getLatest().__mode}isDirectionless(){return!!(1&this.getLatest().__detail)}isUnmergeable(){return!!(2&this.getLatest().__detail)}hasFormat(t){const e=z[t];return 0!==(this.getFormat()&e)}isSimpleText(){return"text"===this.__type&&0===this.__mode}getTextContent(){return this.getLatest().__text}getFormatFlags(t,e){return No(this.getLatest().__format,t,e)}canHaveFormat(){return!0}isInline(){return!0}createDOM(t,e){const n=this.__format,r=er(0,n),i=nr(0,n),o=null===r?i:r,s=document.createElement(o);let l=s;this.hasFormat("code")&&s.setAttribute("spellcheck","false"),null!==r&&(l=document.createElement(i),s.appendChild(l));or(l,this,0,n,this.__text,t);const c=this.__style;return""!==c&&(s.style.cssText=c),s}updateDOM(e,n,r){const i=this.__text,o=e.__format,s=this.__format,l=er(0,o),c=er(0,s),a=nr(0,o),u=nr(0,s);if((null===l?a:l)!==(null===c?u:c))return!0;if(l===c&&a!==u){const e=n.firstChild;null==e&&t(48);const o=document.createElement(u);return or(o,this,0,s,i,r),n.replaceChild(o,e),!1}let f=n;null!==c&&null!==l&&(f=n.firstChild,null==f&&t(49)),ir(i,f,this);const d=r.theme.text;void 0!==d&&o!==s&&rr(0,o,s,f,d);const h=e.__style,g=this.__style;return h!==g&&(n.style.cssText=g),!1}static importDOM(){return{"#text":()=>({conversion:dr,priority:0}),b:()=>({conversion:ar,priority:0}),code:()=>({conversion:_r,priority:0}),em:()=>({conversion:_r,priority:0}),i:()=>({conversion:_r,priority:0}),mark:()=>({conversion:_r,priority:0}),s:()=>({conversion:_r,priority:0}),span:()=>({conversion:cr,priority:0}),strong:()=>({conversion:_r,priority:0}),sub:()=>({conversion:_r,priority:0}),sup:()=>({conversion:_r,priority:0}),u:()=>({conversion:_r,priority:0})}}static importJSON(t){return pr().updateFromJSON(t)}updateFromJSON(t){return super.updateFromJSON(t).setTextContent(t.text).setFormat(t.format).setDetail(t.detail).setMode(t.mode).setStyle(t.style)}exportDOM(e){let{element:n}=super.exportDOM(e);return Ps(n)||t(132),n.style.whiteSpace="pre-wrap",this.hasFormat("lowercase")?n.style.textTransform="lowercase":this.hasFormat("uppercase")?n.style.textTransform="uppercase":this.hasFormat("capitalize")&&(n.style.textTransform="capitalize"),this.hasFormat("bold")&&(n=sr(n,"b")),this.hasFormat("italic")&&(n=sr(n,"i")),this.hasFormat("strikethrough")&&(n=sr(n,"s")),this.hasFormat("underline")&&(n=sr(n,"u")),{element:n}}exportJSON(){return{detail:this.getDetail(),format:this.getFormat(),mode:this.getMode(),style:this.getStyle(),text:this.getTextContent(),...super.exportJSON()}}selectionTransform(t,e){}setFormat(t){const e=this.getWritable();return e.__format="string"==typeof t?z[t]:t,e}setDetail(t){const e=this.getWritable();return e.__detail="string"==typeof t?R[t]:t,e}setStyle(t){const e=this.getWritable();return e.__style=t,e}toggleFormat(t){const e=No(this.getFormat(),t,null);return this.setFormat(e)}toggleDirectionless(){const t=this.getWritable();return t.__detail^=1,t}toggleUnmergeable(){const t=this.getWritable();return t.__detail^=2,t}setMode(t){const e=J[t];if(this.__mode===e)return this;const n=this.getWritable();return n.__mode=e,n}setTextContent(t){if(this.__text===t)return this;const e=this.getWritable();return e.__text=t,e}select(t,e){di();let n=t,r=e;const i=$r(),o=this.getTextContent(),s=this.__key;if("string"==typeof o){const t=o.length;void 0===n&&(n=t),void 0===r&&(r=t)}else n=0,r=0;if(!wr(i))return Br(s,n,s,r,"text","text");{const t=Ao();t!==i.anchor.key&&t!==i.focus.key||Mo(s),i.setTextNodeRange(this,n,this,r)}return i}selectStart(){return this.select(0,0)}selectEnd(){const t=this.getTextContentSize();return this.select(t,t)}spliceText(t,e,n,r){const i=this.getWritable(),o=i.__text,s=n.length;let l=t;l<0&&(l=s+l,l<0&&(l=0));const c=$r();if(r&&wr(c)){const e=t+s;c.setTextNodeRange(i,e,i,e)}const a=o.slice(0,l)+n+o.slice(l+e);return i.__text=a,i}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}splitText(...t){di();const e=this.getLatest(),n=e.getTextContent();if(""===n)return[];const r=e.__key,i=Ao(),o=n.length;t.sort((t,e)=>t-e),t.push(o);const s=[],l=t.length;for(let e=0,r=0;e<o&&r<=l;r++){const i=t[r];i>e&&(s.push(n.slice(e,i)),e=i)}const c=s.length;if(1===c)return[e];const a=s[0],u=e.getParent();let f;const d=e.getFormat(),h=e.getStyle(),g=e.__detail;let _=!1,p=null,y=null;const m=$r();if(wr(m)){const[t,e]=m.isBackward()?[m.focus,m.anchor]:[m.anchor,m.focus];"text"===t.type&&t.key===r&&(p=t),"text"===e.type&&e.key===r&&(y=e)}e.isSegmented()?(f=pr(a),f.__format=d,f.__style=h,f.__detail=g,f.__state=pt(e,f),_=!0):f=e.setTextContent(a);const x=[f];for(let t=1;t<c;t++){const n=pr(s[t]);n.__format=d,n.__style=h,n.__detail=g,n.__state=pt(e,n);const o=n.__key;i===r&&Mo(o),x.push(n)}const C=p?p.offset:null,S=y?y.offset:null;let v=0;for(const t of x){if(!p&&!y)break;const e=v+t.getTextContentSize();if(null!==p&&null!==C&&C<=e&&C>=v&&(p.set(t.getKey(),C-v,"text"),C<e&&(p=null)),null!==y&&null!==S&&S<=e&&S>=v){y.set(t.getKey(),S-v,"text");break}v=e}if(null!==u){!function(t){const e=t.getPreviousSibling(),n=t.getNextSibling();null!==e&&Oo(e);null!==n&&Oo(n)}(this);const t=u.getWritable(),e=this.getIndexWithinParent();_?(t.splice(e,0,x),this.remove()):t.splice(e,1,x),wr(m)&&Yr(m,u,e,c-1)}return x}mergeWithSibling(e){const n=e===this.getPreviousSibling();n||e===this.getNextSibling()||t(50);const r=this.__key,i=e.__key,o=this.__text,s=o.length;Ao()===i&&Mo(r);const l=$r();if(wr(l)){const t=l.anchor,o=l.focus;null!==t&&t.key===i&&Gr(t,n,r,e,s),null!==o&&o.key===i&&Gr(o,n,r,e,s)}const c=e.__text,a=n?c+o:o+c;this.setTextContent(a);const u=this.getWritable();return e.remove(),u}isTextEntity(){return!1}}function cr(t){return{forChild:mr(t.style),node:null}}function ar(t){const e=t,n="normal"===e.style.fontWeight;return{forChild:mr(e.style,n?void 0:"bold"),node:null}}const ur=new WeakMap;function fr(t){if(!Ps(t))return!1;if("PRE"===t.nodeName)return!0;const e=t.style.whiteSpace;return"string"==typeof e&&e.startsWith("pre")}function dr(e){const n=e;null===e.parentElement&&t(129);let r=n.textContent||"";if(null!==function(t){let e,n=t.parentNode;const r=[t];for(;null!==n&&void 0===(e=ur.get(n))&&!fr(n);)r.push(n),n=n.parentNode;const i=void 0===e?n:e;for(let t=0;t<r.length;t++)ur.set(r[t],i);return i}(n)){const t=r.split(/(\r?\n|\t)/),e=[],n=t.length;for(let r=0;r<n;r++){const n=t[r];"\n"===n||"\r\n"===n?e.push(Qn()):"\t"===n?e.push(Cr()):""!==n&&e.push(pr(n))}return{node:e}}if(r=r.replace(/\r/g,"").replace(/[ \t\n]+/g," "),""===r)return{node:null};if(" "===r[0]){let t=n,e=!0;for(;null!==t&&null!==(t=hr(t,!1));){const n=t.textContent||"";if(n.length>0){/[ \t\n]$/.test(n)&&(r=r.slice(1)),e=!1;break}}e&&(r=r.slice(1))}if(" "===r[r.length-1]){let t=n,e=!0;for(;null!==t&&null!==(t=hr(t,!0));){if((t.textContent||"").replace(/^( |\t|\r?\n)+/,"").length>0){e=!1;break}}e&&(r=r.slice(0,r.length-1))}return""===r?{node:null}:{node:pr(r)}}function hr(t,e){let n=t;for(;;){let t;for(;null===(t=e?n.nextSibling:n.previousSibling);){const t=n.parentElement;if(null===t)return null;n=t}if(n=t,Ps(n)){const t=n.style.display;if(""===t&&!Ls(n)||""!==t&&!t.startsWith("inline"))return null}let r=n;for(;null!==(r=e?n.firstChild:n.lastChild);)n=r;if(vo(n))return n;if("BR"===n.nodeName)return null}}const gr={code:"code",em:"italic",i:"italic",mark:"highlight",s:"strikethrough",strong:"bold",sub:"subscript",sup:"superscript",u:"underline"};function _r(t){const e=gr[t.nodeName.toLowerCase()];return void 0===e?{node:null}:{forChild:mr(t.style,e),node:null}}function pr(t=""){return ks(new lr(t))}function yr(t){return t instanceof lr}function mr(t,e){const n=t.fontWeight,r=t.textDecoration.split(" "),i="700"===n||"bold"===n,o=r.includes("line-through"),s="italic"===t.fontStyle,l=r.includes("underline"),c=t.verticalAlign;return t=>yr(t)?(i&&!t.hasFormat("bold")&&t.toggleFormat("bold"),o&&!t.hasFormat("strikethrough")&&t.toggleFormat("strikethrough"),s&&!t.hasFormat("italic")&&t.toggleFormat("italic"),l&&!t.hasFormat("underline")&&t.toggleFormat("underline"),"sub"!==c||t.hasFormat("subscript")||t.toggleFormat("subscript"),"super"!==c||t.hasFormat("superscript")||t.toggleFormat("superscript"),e&&!t.hasFormat(e)&&t.toggleFormat(e),t):t}class xr extends lr{static getType(){return"tab"}static clone(t){return new xr(t.__key)}constructor(t){super("\t",t),this.__detail=2}static importDOM(){return null}createDOM(t){const e=super.createDOM(t),n=rs(t.theme,"tab");if(void 0!==n){e.classList.add(...n)}return e}static importJSON(t){return Cr().updateFromJSON(t)}setTextContent(t){return"\t"!==t&&""!==t&&e(126),super.setTextContent("\t")}spliceText(e,n,r,i){return""===r&&0===n||"\t"===r&&1===n||t(286),this}setDetail(e){return 2!==e&&t(127),this}setMode(e){return"normal"!==e&&t(128),this}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}}function Cr(){return ks(new xr)}function Sr(t){return t instanceof xr}class vr{key;offset;type;_selection;constructor(t,e,n){this._selection=null,this.key=t,this.offset=e,this.type=n}is(t){return this.key===t.key&&this.offset===t.offset&&this.type===t.type}isBefore(t){if(this.key===t.key)return this.offset<t.offset;return bl(Bl(Al(this,"next")),Bl(Al(t,"next")))<0}getNode(){const e=Po(this.key);return null===e&&t(20),e}set(t,e,n,r){const i=this._selection,o=this.key;r&&this.key===t&&this.offset===e&&this.type===n||(this.key=t,this.offset=e,this.type=n,fi()||(Ao()===o&&Mo(t),null!==i&&(i.setCachedNodes(null),i.dirty=!0)))}}function kr(t,e,n){return new vr(t,e,n)}function Tr(t,e){let n=e.__key,r=t.offset,i="element";if(yr(e)){i="text";const t=e.getTextContentSize();r>t&&(r=t)}else if(!Pi(e)){const t=e.getNextSibling();if(yr(t))n=t.__key,r=0,i="text";else{const t=e.getParent();t&&(n=t.__key,r=e.getIndexWithinParent()+1)}}t.set(n,r,i)}function Nr(t,e){if(Pi(e)){const n=e.getLastDescendant();Pi(n)||yr(n)?Tr(t,n):Tr(t,e)}else Tr(t,e)}class br{_nodes;_cachedNodes;dirty;constructor(t){this._cachedNodes=null,this._nodes=t,this.dirty=!1}getCachedNodes(){return this._cachedNodes}setCachedNodes(t){this._cachedNodes=t}is(t){if(!Or(t))return!1;const e=this._nodes,n=t._nodes;return e.size===n.size&&Array.from(e).every(t=>n.has(t))}isCollapsed(){return!1}isBackward(){return!1}getStartEndPoints(){return null}add(t){this.dirty=!0,this._nodes.add(t),this._cachedNodes=null}delete(t){this.dirty=!0,this._nodes.delete(t),this._cachedNodes=null}clear(){this.dirty=!0,this._nodes.clear(),this._cachedNodes=null}has(t){return this._nodes.has(t)}clone(){return new br(new Set(this._nodes))}extract(){return this.getNodes()}insertRawText(t){}insertText(){}insertNodes(t){const e=this.getNodes(),n=e.length,r=e[n-1];let i;if(yr(r))i=r.select();else{const t=r.getIndexWithinParent()+1;i=r.getParentOrThrow().select(t,t)}i.insertNodes(t);for(let t=0;t<n;t++)e[t].remove()}getNodes(){const t=this._cachedNodes;if(null!==t)return t;const e=this._nodes,n=[];for(const t of e){const e=Po(t);null!==e&&n.push(e)}return fi()||(this._cachedNodes=n),n}getTextContent(){const t=this.getNodes();let e="";for(let n=0;n<t.length;n++)e+=t[n].getTextContent();return e}deleteNodes(){const t=this.getNodes();if(($r()||Vr())===this&&t[0]){const e=dl(t[0],"next");Dl(Tl(e,e))}for(const e of t)e.remove()}}function wr(t){return t instanceof Er}class Er{format;style;anchor;focus;_cachedNodes;dirty;constructor(t,e,n,r){this.anchor=t,this.focus=e,t._selection=this,e._selection=this,this._cachedNodes=null,this.format=n,this.style=r,this.dirty=!1}getCachedNodes(){return this._cachedNodes}setCachedNodes(t){this._cachedNodes=t}is(t){return!!wr(t)&&(this.anchor.is(t.anchor)&&this.focus.is(t.focus)&&this.format===t.format&&this.style===t.style)}isCollapsed(){return this.anchor.is(this.focus)}getNodes(){const t=this._cachedNodes;if(null!==t)return t;const e=function(t){const e=[],[n,r]=t.getTextSlices();n&&e.push(n.caret.origin);const i=new Set,o=new Set;for(const n of t)if(cl(n)){const{origin:t}=n;0===e.length?i.add(t):(o.add(t),e.push(t))}else{const{origin:t}=n;Pi(t)&&o.has(t)||e.push(t)}r&&e.push(r.caret.origin);if(ll(t.focus)&&Pi(t.focus.origin)&&null===t.focus.getNodeAtCaret())for(let n=pl(t.focus.origin,"previous");cl(n)&&i.has(n.origin)&&!n.origin.isEmpty()&&n.origin.is(e[e.length-1]);n=ml(n))i.delete(n.origin),e.pop();for(;e.length>1;){const t=e[e.length-1];if(!Pi(t)||o.has(t)||t.isEmpty()||i.has(t))break;e.pop()}if(0===e.length&&t.isCollapsed()){const n=Bl(t.anchor),r=Bl(t.anchor.getFlipped()),i=t=>ol(t)?t.origin:t.getNodeAtCaret(),o=i(n)||i(r)||(t.anchor.getNodeAtCaret()?n.origin:r.origin);e.push(o)}return e}(jl(Ll(this),"next"));return fi()||(this._cachedNodes=e),e}setTextNodeRange(t,e,n,r){this.anchor.set(t.__key,e,"text"),this.focus.set(n.__key,r,"text")}getTextContent(){const t=this.getNodes();if(0===t.length)return"";const e=t[0],n=t[t.length-1],r=this.anchor,i=this.focus,o=r.isBefore(i),[s,l]=Ar(this);let c="",a=!0;for(let u=0;u<t.length;u++){const f=t[u];if(Pi(f)&&!f.isInline())a||(c+="\n"),a=!f.isEmpty();else if(a=!1,yr(f)){let t=f.getTextContent();f===e?f===n?"element"===r.type&&"element"===i.type&&i.offset!==r.offset||(t=s<l?t.slice(s,l):t.slice(l,s)):t=o?t.slice(s):t.slice(l):f===n&&(t=o?t.slice(0,l):t.slice(0,s)),c+=t}else!Li(f)&&!Zn(f)||f===n&&this.isCollapsed()||(c+=f.getTextContent())}return c}applyDOMRange(t){const e=_i(),n=e.getEditorState()._selection,r=zr(t.startContainer,t.startOffset,t.endContainer,t.endOffset,e,n);if(null===r)return;const[i,o]=r;this.anchor.set(i.key,i.offset,i.type,!0),this.focus.set(o.key,o.offset,o.type,!0),Ct(this)}clone(){const t=this.anchor,e=this.focus;return new Er(kr(t.key,t.offset,t.type),kr(e.key,e.offset,e.type),this.format,this.style)}toggleFormat(t){this.format=No(this.format,t,null),this.dirty=!0}setFormat(t){this.format=t,this.dirty=!0}setStyle(t){this.style=t,this.dirty=!0}hasFormat(t){const e=z[t];return 0!==(this.format&e)}insertRawText(t){const e=t.split(/(\r?\n|\t)/),n=[],r=e.length;for(let t=0;t<r;t++){const r=e[t];"\n"===r||"\r\n"===r?n.push(Qn()):"\t"===r?n.push(Cr()):n.push(pr(r))}this.insertNodes(n)}insertText(e){const n=this.anchor,r=this.focus,i=this.format,o=this.style;let s=n,l=r;!this.isCollapsed()&&r.isBefore(n)&&(s=r,l=n),"element"===s.type&&function(t,e,n,r){const i=t.getNode(),o=i.getChildAtIndex(t.offset),s=pr();if(s.setFormat(n),s.setStyle(r),Yi(o))o.splice(0,0,[s]);else{const t=Ki(i)?Vi().append(s):s;null===o?i.append(t):o.insertBefore(t)}t.is(e)&&e.set(s.__key,0,"text"),t.set(s.__key,0,"text")}(s,l,i,o),"element"===l.type&&Pl(l,Bl(Al(l,"next")));const c=s.offset;let a=l.offset;const u=this.getNodes(),f=u.length;let d=u[0];yr(d)||t(26);const h=d.getTextContent().length,g=d.getParentOrThrow();let _=u[f-1];if(1===f&&"element"===l.type&&(a=h,l.set(s.key,a,"text")),this.isCollapsed()&&c===h&&(So(d)||!d.canInsertTextAfter()||!g.canInsertTextAfter()&&null===d.getNextSibling())){let t=d.getNextSibling();if(yr(t)&&t.canInsertTextBefore()&&!So(t)||(t=pr(),t.setFormat(i),t.setStyle(o),g.canInsertTextAfter()?d.insertAfter(t):g.insertAfter(t)),t.select(0,0),d=t,""!==e)return void this.insertText(e)}else if(this.isCollapsed()&&0===c&&(So(d)||!d.canInsertTextBefore()||!g.canInsertTextBefore()&&null===d.getPreviousSibling())){let t=d.getPreviousSibling();if(yr(t)&&!So(t)||(t=pr(),t.setFormat(i),g.canInsertTextBefore()?d.insertBefore(t):g.insertBefore(t)),t.select(),d=t,""!==e)return void this.insertText(e)}else if(d.isSegmented()&&c!==h){const t=pr(d.getTextContent());t.setFormat(i),d.replace(t),d=t}else if(!this.isCollapsed()&&""!==e){const t=_.getParent();if(!g.canInsertTextBefore()||!g.canInsertTextAfter()||Pi(t)&&(!t.canInsertTextBefore()||!t.canInsertTextAfter()))return this.insertText(""),Kr(this.anchor,this.focus),void this.insertText(e)}if(1===f){if(Co(d)){const t=pr(e);return t.select(),void d.replace(t)}const t=d.getFormat(),n=d.getStyle();if(c!==a||t===i&&n===o){if(Sr(d)){const t=pr(e);return t.setFormat(i),t.setStyle(o),t.select(),void d.replace(t)}}else{if(""!==d.getTextContent()){const t=pr(e);if(t.setFormat(i),t.setStyle(o),t.select(),0===c)d.insertBefore(t,!1);else{const[e]=d.splitText(c);e.insertAfter(t,!1)}return void(t.isComposing()&&"text"===this.anchor.type&&(this.anchor.offset-=e.length))}d.setFormat(i),d.setStyle(o)}const r=a-c;d=d.spliceText(c,r,e,!0),""===d.getTextContent()?d.remove():"text"===this.anchor.type&&(this.format=t,this.style=n,d.isComposing()&&(this.anchor.offset-=e.length))}else{const t=new Set([...d.getParentKeys(),..._.getParentKeys()]),n=Pi(d)?d:d.getParentOrThrow();let r=Pi(_)?_:_.getParentOrThrow(),i=_;if(!n.is(r)&&r.isInline())do{i=r,r=r.getParentOrThrow()}while(r.isInline());if("text"===l.type&&(0!==a||""===_.getTextContent())||"element"===l.type&&_.getIndexWithinParent()<a)if(yr(_)&&!Co(_)&&a!==_.getTextContentSize()){if(_.isSegmented()){const t=pr(_.getTextContent());_.replace(t),_=t}Ki(l.getNode())||"text"!==l.type||(_=_.spliceText(0,a,"")),t.add(_.__key)}else{const t=_.getParentOrThrow();t.canBeEmpty()||1!==t.getChildrenSize()?_.remove():t.remove()}else t.add(_.__key);const o=r.getChildren(),s=new Set(u),g=n.is(r),p=n.isInline()&&null===d.getNextSibling()?n:d;for(let t=o.length-1;t>=0;t--){const e=o[t];if(e.is(d)||Pi(e)&&e.isParentOf(d))break;e.isAttached()&&(!s.has(e)||e.is(i)?g||p.insertAfter(e,!1):e.remove())}if(!g){let e=r,n=null;for(;null!==e;){const r=e.getChildren(),i=r.length;(0===i||r[i-1].is(n))&&(t.delete(e.__key),n=e),e=e.getParent()}}if(Co(d))if(c===h)d.select();else{const t=pr(e);t.select(),d.replace(t)}else d=d.spliceText(c,h-c,e,!0),""===d.getTextContent()?d.remove():"text"===this.anchor.type&&(this.format=d.getFormat(),this.style=d.getStyle(),d.isComposing()&&(this.anchor.offset-=e.length));for(let e=1;e<f;e++){const n=u[e],r=n.__key;t.has(r)||n.remove()}}}removeText(){const t=$r()===this;Fl(this,Rl(Ll(this))),t&&$r()!==this&&Bo(this)}formatText(t,e=null){if(this.isCollapsed())return this.toggleFormat(t),void Mo(null);const n=this.getNodes(),r=[];for(const t of n)yr(t)&&r.push(t);const i=e=>{n.forEach(n=>{if(Pi(n)){const r=n.getFormatFlags(t,e);n.setTextFormat(r)}})},o=r.length;if(0===o)return this.toggleFormat(t),Mo(null),void i(e);const s=this.anchor,l=this.focus,c=this.isBackward(),a=c?l:s,u=c?s:l;let f=0,d=r[0],h="element"===a.type?0:a.offset;if("text"===a.type&&h===d.getTextContentSize()&&(f=1,d=r[1],h=0),null==d)return;const g=d.getFormatFlags(t,e);i(g);const _=o-1;let p=r[_];const y="text"===u.type?u.offset:p.getTextContentSize();if(d.is(p)){if(h===y)return;if(So(d)||0===h&&y===d.getTextContentSize())d.setFormat(g);else{const t=d.splitText(h,y),e=0===h?t[0]:t[1];e.setFormat(g),"text"===a.type&&a.set(e.__key,0,"text"),"text"===u.type&&u.set(e.__key,y-h,"text")}return void(this.format=g)}0===h||So(d)||([,d]=d.splitText(h),h=0),d.setFormat(g);const m=p.getFormatFlags(t,g);y>0&&(y===p.getTextContentSize()||So(p)||([p]=p.splitText(y)),p.setFormat(m));for(let e=f+1;e<_;e++){const n=r[e],i=n.getFormatFlags(t,m);n.setFormat(i)}"text"===a.type&&a.set(d.__key,h,"text"),"text"===u.type&&u.set(p.__key,y,"text"),this.format=g|m}insertNodes(e){if(0===e.length)return;if(this.isCollapsed()||this.removeText(),"root"===this.anchor.key){this.insertParagraph();const n=$r();return wr(n)||t(134),n.insertNodes(e)}const n=(this.isBackward()?this.focus:this.anchor).getNode(),r=Gs(n,Ks),i=e[e.length-1];if(Pi(r)&&"__language"in r){if("__language"in e[0])this.insertText(e[0].getTextContent());else{const t=ni(this);r.splice(t,0,e),i.selectEnd()}return}if(!e.some(t=>(Pi(t)||Li(t))&&!t.isInline())){Pi(r)||t(211,n.constructor.name,n.getType());const o=ni(this);return r.splice(o,0,e),void i.selectEnd()}const o=function(t){const e=Vi();let n=null;for(let r=0;r<t.length;r++){const i=t[r],o=Zn(i);if(o||Li(i)&&i.isInline()||Pi(i)&&i.isInline()||yr(i)||i.isParentRequired()){if(null===n&&(n=i.createParentElementNode(),e.append(n),o))continue;null!==n&&n.append(i)}else e.append(i),n=null}return e}(e),s=o.getLastDescendant(),l=o.getChildren(),c=!Pi(r)||!r.isEmpty()?this.insertParagraph():null,a=l[l.length-1];let u=l[0];var f;Pi(f=u)&&Ks(f)&&!f.isEmpty()&&Pi(r)&&(!r.isEmpty()||r.canMergeWhenEmpty())&&(Pi(r)||t(211,n.constructor.name,n.getType()),r.append(...u.getChildren()),u=l[1]),u&&(null===r&&t(212,n.constructor.name,n.getType()),function(e,n){const r=n.getParentOrThrow().getLastChild();let i=n;const o=[n];for(;i!==r;)i.getNextSibling()||t(140),i=i.getNextSibling(),o.push(i);let s=e;for(const t of o)s=s.insertAfter(t)}(r,u));const d=Gs(s,Ks);c&&Pi(d)&&(c.canMergeWhenEmpty()||Ks(a))&&(d.append(...c.getChildren()),c.remove()),Pi(r)&&r.isEmpty()&&r.remove(),s.selectEnd();const h=Pi(r)?r.getLastChild():null;Zn(h)&&d!==r&&h.remove()}insertParagraph(){if("root"===this.anchor.key){const t=Vi();return zo().splice(this.anchor.offset,0,[t]),t.select(),t}const e=ni(this),n=Gs(this.anchor.getNode(),Ks);Pi(n)||t(213);const r=n.getChildAtIndex(e),i=r?[r,...r.getNextSiblings()]:[],o=n.insertNewAfter(this,!1);return o?(o.append(...i),o.selectStart(),o):null}insertLineBreak(t){const e=Qn();if(this.insertNodes([e]),t){const t=e.getParentOrThrow(),n=e.getIndexWithinParent();t.select(n,n)}}extract(){const t=[...this.getNodes()],e=t.length;let n=t[0],r=t[e-1];const[i,o]=Ar(this),s=this.isBackward(),[l,c]=s?[this.focus,this.anchor]:[this.anchor,this.focus],[a,u]=s?[o,i]:[i,o];if(0===e)return[];if(1===e){if(yr(n)&&!this.isCollapsed()){const t=n.splitText(a,u),e=0===a?t[0]:t[1];return e?(l.set(e.getKey(),0,"text"),c.set(e.getKey(),e.getTextContentSize(),"text"),[e]):[]}return[n]}if(yr(n)&&(a===n.getTextContentSize()?t.shift():0!==a&&([,n]=n.splitText(a),t[0]=n,l.set(n.getKey(),0,"text"))),yr(r)){const e=r.getTextContent().length;0===u?t.pop():u!==e&&([r]=r.splitText(u),t[t.length-1]=r,c.set(r.getKey(),r.getTextContentSize(),"text"))}return t}modify(t,e,n){if(ii(this,t,e,n))return;const r="move"===t,i=_i(),o=Es(ms(i));if(!o)return;const s=i._blockCursorElement,l=i._rootElement,c=this.focus.getNode();if(null===l||null===s||!Pi(c)||c.isInline()||c.canBeEmpty()||ws(s,i,l),this.dirty){let t=us(i,this.anchor.key),e=us(i,this.focus.key);"text"===this.anchor.type&&(t=To(t)),"text"===this.focus.type&&(e=To(e)),t&&e&&Xr(o,t,this.anchor.offset,e,this.focus.offset)}if(function(t,e,n,r){t.modify(e,n,r)}(o,t,e?"backward":"forward",n),o.rangeCount>0){const t=o.getRangeAt(0),n=this.anchor.getNode(),i=Ki(n)?n:Cs(n);if(this.applyDOMRange(t),this.dirty=!0,!r){const n=this.getNodes(),r=[];let s=!1;for(let t=0;t<n.length;t++){const e=n[t];ps(e,i)?r.push(e):s=!0}if(s&&r.length>0)if(e){const t=r[0];Pi(t)?t.selectStart():t.getParentOrThrow().selectStart()}else{const t=r[r.length-1];Pi(t)?t.selectEnd():t.getParentOrThrow().selectEnd()}o.anchorNode===t.startContainer&&o.anchorOffset===t.startOffset||function(t){const e=t.focus,n=t.anchor,r=n.key,i=n.offset,o=n.type;n.set(e.key,e.offset,e.type,!0),e.set(r,i,o,!0)}(this)}}"lineboundary"===n&&ii(this,t,e,n,"decorators")}forwardDeletion(t,e,n){if(!n&&("element"===t.type&&Pi(e)&&t.offset===e.getChildrenSize()||"text"===t.type&&t.offset===e.getTextContentSize())){const t=e.getParent(),n=e.getNextSibling()||(null===t?null:t.getNextSibling());if(Pi(n)&&n.isShadowRoot())return!0}return!1}deleteCharacter(t){const e=this.isCollapsed();if(this.isCollapsed()){const e=this.anchor;let n=e.getNode();if(this.forwardDeletion(e,n,t))return;const r=vl(Al(e,t?"previous":"next"));if(r.getTextSlices().every(t=>null===t||0===t.distance)){let t={type:"initial"};for(const e of r.iterNodeCarets("shadowRoot"))if(cl(e))if(e.origin.isInline());else{if(e.origin.isShadowRoot()){if("merge-block"===t.type)break;if(Pi(r.anchor.origin)&&r.anchor.origin.isEmpty()){const t=Bl(e);Fl(this,Tl(t,t)),r.anchor.origin.remove()}return}"merge-next-block"!==t.type&&"merge-block"!==t.type||(t={block:t.block,caret:e,type:"merge-block"})}else{if("merge-block"===t.type)break;if(ll(e)){if(Pi(e.origin)){if(e.origin.isInline()){if(!e.origin.isParentOf(r.anchor.origin))break}else t={block:e.origin,type:"merge-next-block"};continue}if(Li(e.origin)){if(e.origin.isIsolated());else if("merge-next-block"===t.type&&(e.origin.isKeyboardSelectable()||!e.origin.isInline())&&Pi(r.anchor.origin)&&r.anchor.origin.isEmpty()){r.anchor.origin.remove();const t=Jr();t.add(e.origin.getKey()),Bo(t)}else e.origin.remove();return}break}}if("merge-block"===t.type){const{caret:e,block:n}=t;return Fl(this,Tl(!e.origin.isEmpty()&&n.isEmpty()?Il(dl(n,e.direction)):r.anchor,e)),this.removeText()}}const i=this.focus;if(this.modify("extend",t,"character"),this.isCollapsed()){if(t&&0===e.offset&&Pr(this,e.getNode()))return}else{const r="text"===i.type?i.getNode():null;if(n="text"===e.type?e.getNode():null,null!==r&&r.isSegmented()){const e=i.offset,o=r.getTextContentSize();if(r.is(n)||t&&e!==o||!t&&0!==e)return void Fr(r,t,e)}else if(null!==n&&n.isSegmented()){const i=e.offset,o=n.getTextContentSize();if(n.is(r)||t&&0!==i||!t&&i!==o)return void Fr(n,t,i)}!function(t,e){const n=t.anchor,r=t.focus,i=n.getNode(),o=r.getNode();if(i===o&&"text"===n.type&&"text"===r.type){const t=n.offset,o=r.offset,s=t<o,l=s?t:o,c=s?o:t,a=c-1;if(l!==a){(function(t){return!(Jo(t)||Dr(t))})(i.getTextContent().slice(l,c))&&(e?r.set(r.key,a,r.type):n.set(n.key,a,n.type))}}}(this,t)}}if(this.removeText(),t&&!e&&this.isCollapsed()&&"element"===this.anchor.type&&0===this.anchor.offset){const t=this.anchor.getNode();t.isEmpty()&&Ki(t.getParent())&&null===t.getPreviousSibling()&&Pr(this,t)}}deleteLine(t){this.isCollapsed()&&this.modify("extend",t,"lineboundary"),this.isCollapsed()?this.deleteCharacter(t):this.removeText()}deleteWord(t){if(this.isCollapsed()){const e=this.anchor,n=e.getNode();if(this.forwardDeletion(e,n,t))return;this.modify("extend",t,"word")}this.isCollapsed()?this.deleteCharacter(t):this.removeText()}isBackward(){return this.focus.isBefore(this.anchor)}getStartEndPoints(){return[this.anchor,this.focus]}}function Or(t){return t instanceof br}function Mr(t){const e=t.offset;if("text"===t.type)return e;const n=t.getNode();return e===n.getChildrenSize()?n.getTextContent().length:0}function Ar(t){const e=t.getStartEndPoints();if(null===e)return[0,0];const[n,r]=e;return"element"===n.type&&"element"===r.type&&n.key===r.key&&n.offset===r.offset?[0,0]:[Mr(n),Mr(r)]}function Pr(t,e){for(let n=e;n;n=n.getParent()){if(Pi(n)){if(n.collapseAtStart(t))return!0;if(Ss(n))break}if(n.getPreviousSibling())break}return!1}const Dr=(()=>{try{const t=new RegExp("\\p{Emoji}","u"),e=t.test.bind(t);if(e("\u2764\ufe0f")&&e("#\ufe0f\u20e3")&&e("\u{1f44d}"))return e}catch(t){}return()=>!1})();function Fr(t,e,n){const r=t,i=r.getTextContent().split(/(?=\s)/g),o=i.length;let s=0,l=0;for(let t=0;t<o;t++){const r=t===o-1;if(l=s,s+=i[t].length,e&&s===n||s>n||r){i.splice(t,1),r&&(l=void 0);break}}const c=i.join("").trim();""===c?r.remove():(r.setTextContent(c),r.select(l,l))}function Lr(e,n,r,i){let o,s=n;if(Ps(e)){let l=!1;const c=e.childNodes,a=c.length,u=i._blockCursorElement;s===a&&(l=!0,s=a-1);let f=c[s],d=!1;if(f===u)f=c[s+1],d=!0;else if(null!==u){const t=u.parentNode;if(e===t){n>Array.prototype.indexOf.call(t.children,u)&&s--}}if(o=Wo(f),yr(o))s=gl(o,l?"next":"previous");else{let c=Wo(e);if(null===c)return null;if(Pi(c)){const a=i.getElementByKey(c.getKey());null===a&&t(214);const u=c.getDOMSlot(a);[c,s]=u.resolveChildIndex(c,a,e,n),Pi(c)||t(215),l&&s>=c.getChildrenSize()&&(s=Math.max(0,c.getChildrenSize()-1));let f=c.getChildAtIndex(s);if(Pi(f)&&function(t,e,n){const r=t.getParent();return null===n||null===r||!r.canBeEmpty()||r!==n.getNode()}(f,0,r)){const t=l?f.getLastDescendant():f.getFirstDescendant();null===t?c=f:(f=t,c=Pi(f)?f:f.getParentOrThrow()),s=0}yr(f)?(o=f,c=null,s=gl(f,l?"next":"previous")):f!==c&&l&&!d&&(Pi(c)||t(216),s=Math.min(c.getChildrenSize(),s+1))}else{const t=c.getIndexWithinParent();s=0===n&&Li(c)&&Wo(e)===c?t:t+1,c=c.getParentOrThrow()}if(Pi(c))return kr(c.__key,s,"element")}}else o=Wo(e);return yr(o)?kr(o.__key,gl(o,s,"clamp"),"text"):null}function Ir(t,e,n){const r=t.offset,i=t.getNode();if(0===r){const r=i.getPreviousSibling(),o=i.getParent();if(e){if((n||!e)&&null===r&&Pi(o)&&o.isInline()){const e=o.getPreviousSibling();yr(e)&&t.set(e.__key,e.getTextContent().length,"text")}}else Pi(r)&&!n&&r.isInline()?t.set(r.__key,r.getChildrenSize(),"element"):yr(r)&&t.set(r.__key,r.getTextContent().length,"text")}else if(r===i.getTextContent().length){const r=i.getNextSibling(),o=i.getParent();if(e&&Pi(r)&&r.isInline())t.set(r.__key,0,"element");else if((n||e)&&null===r&&Pi(o)&&o.isInline()&&!o.canInsertTextAfter()){const e=o.getNextSibling();yr(e)&&t.set(e.__key,0,"text")}}}function Kr(t,e,n){if("text"===t.type&&"text"===e.type){const n=t.isBefore(e),r=t.is(e);Ir(t,n,r),Ir(e,!n,r),r&&e.set(t.key,t.offset,t.type)}}function zr(t,e,n,r,i,o){if(null===t||null===n||!_o(i,t,n))return null;const s=Lr(t,e,wr(o)?o.anchor:null,i);if(null===s)return null;const l=Lr(n,r,wr(o)?o.focus:null,i);if(null===l)return null;if("element"===s.type&&"element"===l.type){const e=Wo(t),r=Wo(n);if(Li(e)&&Li(r))return null}return Kr(s,l),[s,l]}function Rr(t){return Pi(t)&&!t.isInline()}function Br(t,e,n,r,i,o){const s=gi(),l=new Er(kr(t,e,i),kr(n,r,o),0,"");return l.dirty=!0,s._selection=l,l}function Wr(){const t=kr("root",0,"element"),e=kr("root",0,"element");return new Er(t,e,0,"")}function Jr(){return new br(new Set)}function jr(t,e){return Ur(null,t,e,null)}function Ur(t,e,n,r){const i=n._window;if(null===i)return null;const o=r||i.event,s=o?o.type:void 0,l="selectionchange"===s,c=!Y&&(l||"beforeinput"===s||"compositionstart"===s||"compositionend"===s||"click"===s&&o&&3===o.detail||"drop"===s||void 0===s);let a,u,f,d;if(wr(t)&&!c)return t.clone();if(null===e)return null;if(a=e.anchorNode,u=e.focusNode,f=e.anchorOffset,d=e.focusOffset,(l||void 0===s)&&wr(t)&&!_o(n,a,u))return t.clone();const h=zr(a,f,u,d,n,t);if(null===h)return null;const[g,_]=h;let p=0,y="";if(wr(t)){const e=t.anchor;if(g.key===e.key)p=t.format,y=t.style;else{const t=g.getNode();yr(t)?(p=t.getFormat(),y=t.getStyle()):Pi(t)&&(p=t.getTextFormat(),y=t.getTextStyle())}}return new Er(g,_,p,y)}function $r(){return gi()._selection}function Vr(){return _i()._editorState._selection}function Yr(t,e,n,r=1){const i=t.anchor,o=t.focus,s=i.getNode(),l=o.getNode();if(!e.is(s)&&!e.is(l))return;const c=e.__key;if(t.isCollapsed()){const e=i.offset;if(n<=e&&r>0||n<e&&r<0){const n=Math.max(0,e+r);i.set(c,n,"element"),o.set(c,n,"element"),qr(t)}}else{const s=t.isBackward(),l=s?o:i,a=l.getNode(),u=s?i:o,f=u.getNode();if(e.is(a)){const t=l.offset;(n<=t&&r>0||n<t&&r<0)&&l.set(c,Math.max(0,t+r),"element")}if(e.is(f)){const t=u.offset;(n<=t&&r>0||n<t&&r<0)&&u.set(c,Math.max(0,t+r),"element")}}qr(t)}function qr(t){const e=t.anchor,n=e.offset,r=t.focus,i=r.offset,o=e.getNode(),s=r.getNode();if(t.isCollapsed()){if(!Pi(o))return;const t=o.getChildrenSize(),i=n>=t,s=i?o.getChildAtIndex(t-1):o.getChildAtIndex(n);if(yr(s)){let t=0;i&&(t=s.getTextContentSize()),e.set(s.__key,t,"text"),r.set(s.__key,t,"text")}return}if(Pi(o)){const t=o.getChildrenSize(),r=n>=t,i=r?o.getChildAtIndex(t-1):o.getChildAtIndex(n);if(yr(i)){let t=0;r&&(t=i.getTextContentSize()),e.set(i.__key,t,"text")}}if(Pi(s)){const t=s.getChildrenSize(),e=i>=t,n=e?s.getChildAtIndex(t-1):s.getChildAtIndex(i);if(yr(n)){let t=0;e&&(t=n.getTextContentSize()),r.set(n.__key,t,"text")}}}function Hr(t,e,n,r,i){let o=null,s=0,l=null;null!==r?(o=r.__key,yr(r)?(s=r.getTextContentSize(),l="text"):Pi(r)&&(s=r.getChildrenSize(),l="element")):null!==i&&(o=i.__key,yr(i)?l="text":Pi(i)&&(l="element")),null!==o&&null!==l?t.set(o,s,l):(s=e.getIndexWithinParent(),-1===s&&(s=n.getChildrenSize()),t.set(n.__key,s,"element"))}function Gr(t,e,n,r,i){"text"===t.type?t.set(n,t.offset+(e?0:i),"text"):t.offset>r.getIndexWithinParent()&&t.set(t.key,t.offset-1,"element")}function Xr(t,e,n,r,i){try{t.setBaseAndExtent(e,n,r,i)}catch(t){}}function Qr(t,e,n){const r=us(t,e.getKey());if(Pi(e)){const t=e.getDOMSlot(r);return[t.element,n+t.getFirstChildOffset()]}return[r,n]}function Zr(t,e,n,r,i,s,l){const c=r.anchorNode,a=r.focusNode,u=r.anchorOffset,f=r.focusOffset,d=document.activeElement;if(i.has(jn)&&d!==s||null!==d&&go(d))return;if(!wr(e))return void(null!==t&&_o(n,c,a)&&r.removeAllRanges());const h=e.anchor,g=e.focus,_=h.getNode(),p=g.getNode(),[y,m]=Qr(n,_,h.offset),[x,C]=Qr(n,p,g.offset),S=e.format,v=e.style,k=e.isCollapsed();let T=y,N=x,b=!1;var w,E,O,M,A;if(("text"===h.type?(T=To(y),b=_.getFormat()!==S||_.getStyle()!==v):wr(t)&&"text"===t.anchor.type&&(b=!0),"text"===g.type&&(N=To(x)),null!==T&&null!==N)&&(k&&(null===t||b||wr(t)&&(t.format!==S||t.style!==v))&&(w=S,E=v,O=m,M=h.key,A=performance.now(),gn=[w,E,O,M,A]),u!==m||f!==C||c!==T||a!==N||"Range"===r.type&&k||(null!==d&&s.contains(d)||i.has(Yn)||s.focus({preventScroll:!0}),"element"===h.type))){if(Xr(r,T,m,N,C),!o||!e.isCollapsed()||null===s||i.has(Yn)||null!==document.activeElement&&s.contains(document.activeElement)||s.focus({preventScroll:!0}),!i.has($n)&&e.isCollapsed()&&null!==s&&s===document.activeElement){const t=wr(e)&&"element"===e.anchor.type?T.childNodes[m]||null:r.rangeCount>0?r.getRangeAt(0):null;if(null!==t){let e;if(t instanceof Text){const n=document.createRange();n.selectNode(t),e=n.getBoundingClientRect()}else e=t.getBoundingClientRect();!function(t,e,n){const r=ds(n),i=ys(r);if(null===r||null===i)return;let{top:o,bottom:s}=e,l=0,c=0,a=n;for(;null!==a;){const e=a===r.body;if(e){l=0,c=ms(t).innerHeight;const e=i.getComputedStyle(r.documentElement),n=parseFloat(e.scrollPaddingTop),o=parseFloat(e.scrollPaddingBottom);isFinite(n)&&(l+=n),isFinite(o)&&(c-=o)}else{const t=a.getBoundingClientRect();l=t.top,c=t.bottom}let n=0;if(o<l?n=-(l-o):s>c&&(n=s-c),0!==n)if(e)i.scrollBy(0,n);else{const t=a.scrollTop;a.scrollTop+=n;const e=a.scrollTop-t;o-=e,s-=e}if(e)break;a=fs(a)}}(n,e,s)}}ln=!0}}function ti(t){let e=$r()||Vr();null===e&&(e=zo().selectEnd()),e.insertNodes(t)}function ei(){const t=$r();return null===t?"":t.getTextContent()}function ni(e){let n=e;e.isCollapsed()||n.removeText();const r=$r();wr(r)&&(n=r),wr(n)||t(161);const i=n.anchor;let o=i.getNode(),s=i.offset;for(;!Ks(o);){const t=o;if([o,s]=ri(o,s),t.is(o))break}return s}function ri(t,e){const n=t.getParent();if(!n){const t=Vi();return zo().append(t),t.select(),[zo(),0]}if(yr(t)){const r=t.splitText(e);if(0===r.length)return[n,t.getIndexWithinParent()];const i=0===e?0:1;return[n,r[0].getIndexWithinParent()+i]}if(!Pi(t)||0===e)return[n,t.getIndexWithinParent()];const r=t.getChildAtIndex(e);if(r){const n=new Er(kr(t.__key,e,"element"),kr(t.__key,e,"element"),0,""),i=t.insertNewAfter(n);i&&i.append(r,...r.getNextSiblings())}return[n,t.getIndexWithinParent()+1]}function ii(t,e,n,r,i="decorators-and-blocks"){if("move"===e&&"character"===r&&!t.isCollapsed()){const[e,r]=n===t.isBackward()?[t.focus,t.anchor]:[t.anchor,t.focus];return r.set(e.key,e.offset,e.type),!0}const o=Al(t.focus,n?"previous":"next"),s="lineboundary"===r,l="move"===e;let c=o,a="decorators-and-blocks"===i;if(!Wl(c)){for(const t of c){a=!1;const{origin:e}=t;if(!Li(e)||e.isIsolated()||(c=t,!s||!e.isInline()))break}if(a)for(const t of vl(o).iterNodeCarets("extend"===e?"shadowRoot":"root")){if(cl(t))t.origin.isInline()||(c=t);else{if(Pi(t.origin))continue;Li(t.origin)&&!t.origin.isInline()&&(c=t)}break}}if(c===o)return!1;if(l&&!s&&Li(c.origin)&&c.origin.isKeyboardSelectable()){const t=Jr();return t.add(c.origin.getKey()),Bo(t),!0}return c=Bl(c),l&&Pl(t.anchor,c),Pl(t.focus,c),a||!s}let oi=null,si=null,li=!1,ci=!1,ai=0;const ui={characterData:!0,childList:!0,subtree:!0};function fi(){return li||null!==oi&&oi._readOnly}function di(){li&&t(13)}function hi(){ai>99&&t(14)}function gi(){return null===oi&&t(195,pi()),oi}function _i(){return null===si&&t(196,pi()),si}function pi(){let t=0;const e=new Set,n=io.version;if("undefined"!=typeof window)for(const r of document.querySelectorAll("[contenteditable]")){const i=mo(r);if(po(i))t++;else if(i){let t=String(i.constructor.version||"<0.17.1");t===n&&(t+=" (separately built, likely a bundler configuration issue)"),e.add(t)}}let r=` Detected on the page: ${t} compatible editor(s) with version ${n}`;return e.size&&(r+=` and incompatible editors with versions ${Array.from(e).join(", ")}`),r}function yi(){return si}function mi(t,e,n){const r=e.__type,i=ao(t,r);let o=n.get(r);void 0===o&&(o=Array.from(i.transforms),n.set(r,o));const s=o.length;for(let t=0;t<s&&(o[t](e),e.isAttached());t++);}function xi(t,e){return void 0!==t&&t.__key!==e&&t.isAttached()}function Ci(t,e){if(!e)return;const n=t._updateTags;let r=e;Array.isArray(e)||(r=[e]);for(const t of r)n.add(t)}function Si(t){return vi(t,_i()._nodes)}function vi(e,n){const r=e.type,i=n.get(r);void 0===i&&t(17,r);const o=i.klass;e.type!==o.getType()&&t(18,o.name);const s=o.importJSON(e),l=e.children;if(Pi(s)&&Array.isArray(l))for(let t=0;t<l.length;t++){const e=vi(l[t],n);s.append(e)}return s}function ki(t,e,n){const r=oi,i=li,o=si;oi=e,li=!0,si=t;try{return n()}finally{oi=r,li=i,si=o}}function Ti(t,e){const n=t._pendingEditorState,r=t._rootElement,i=t._headless||null===r;if(null===n)return;const o=t._editorState,s=o._selection,l=n._selection,c=0!==t._dirtyType,a=oi,u=li,f=si,d=t._updating,h=t._observer;let g=null;if(t._pendingEditorState=null,t._editorState=n,!i&&c&&null!==h){si=t,oi=n,li=!1,t._updating=!0;try{const e=t._dirtyType,r=t._dirtyElements,i=t._dirtyLeaves;h.disconnect(),g=te(o,n,t,e,r,i)}catch(e){if(e instanceof Error&&t._onError(e),ci)throw e;return Zi(t,null,r,n),nt(t),t._dirtyType=2,ci=!0,Ti(t,o),void(ci=!1)}finally{h.observe(r,ui),t._updating=d,oi=a,li=u,si=f}}n._readOnly||(n._readOnly=!0);const _=t._dirtyLeaves,p=t._dirtyElements,y=t._normalizedNodes,m=t._updateTags,x=t._deferred;c&&(t._dirtyType=0,t._cloneNotNeeded.clear(),t._dirtyLeaves=new Set,t._dirtyElements=new Map,t._normalizedNodes=new Set,t._updateTags=new Set),function(t,e){const n=t._decorators;let r=t._pendingDecorators||n;const i=e._nodeMap;let o;for(o in r)i.has(o)||(r===n&&(r=Io(t)),delete r[o])}(t,n);const C=i?null:Es(ms(t));if(t._editable&&null!==C&&(c||null===l||l.dirty||!l.is(s))&&null!==r&&!m.has(Vn)){si=t,oi=n;try{if(null!==h&&h.disconnect(),c||null===l||l.dirty){const e=t._blockCursorElement;null!==e&&ws(e,t,r),Zr(s,l,t,C,m,r)}!function(t,e,n){let r=t._blockCursorElement;if(wr(n)&&n.isCollapsed()&&"element"===n.anchor.type&&e.contains(document.activeElement)){const i=n.anchor,o=i.getNode(),s=i.offset;let l=!1,c=null;if(s===o.getChildrenSize()){bs(o.getChildAtIndex(s-1))&&(l=!0)}else{const e=o.getChildAtIndex(s);if(null!==e&&bs(e)){const n=e.getPreviousSibling();(null===n||bs(n))&&(l=!0,c=t.getElementByKey(e.__key))}}if(l){const n=t.getElementByKey(o.__key);return null===r&&(t._blockCursorElement=r=function(t){const e=t.theme,n=document.createElement("div");n.contentEditable="false",n.setAttribute("data-lexical-cursor","true");let r=e.blockCursor;if(void 0!==r){if("string"==typeof r){const t=tc(r);r=e.blockCursor=t}void 0!==r&&n.classList.add(...r)}return n}(t._config)),e.style.caretColor="transparent",void(null===c?n.appendChild(r):n.insertBefore(r,c))}}null!==r&&ws(r,t,e)}(t,r,l)}finally{null!==h&&h.observe(r,ui),si=f,oi=a}}null!==g&&function(t,e,n,r,i){const o=Array.from(t._listeners.mutation),s=o.length;for(let t=0;t<s;t++){const[s,l]=o[t];for(const t of l){const o=e.get(t);void 0!==o&&s(o,{dirtyLeaves:r,prevEditorState:i,updateTags:n})}}}(t,g,m,_,o),wr(l)||null===l||null!==s&&s.is(l)||t.dispatchCommand(re,void 0);const S=t._pendingDecorators;null!==S&&(t._decorators=S,t._pendingDecorators=null,Ni("decorator",t,!0,S)),function(t,e,n){const r=Ko(e),i=Ko(n);r!==i&&Ni("textcontent",t,!0,i)}(t,e||o,n),Ni("update",t,!0,{dirtyElements:p,dirtyLeaves:_,editorState:n,mutatedNodes:g,normalizedNodes:y,prevEditorState:e||o,tags:m}),function(t,e){if(t._deferred=[],0!==e.length){const n=t._updating;t._updating=!0;try{for(let t=0;t<e.length;t++)e[t]()}finally{t._updating=n}}}(t,x),function(t){const e=t._updates;if(0!==e.length){const n=e.shift();if(n){const[e,r]=n;wi(t,e,r)}}}(t)}function Ni(t,e,n,...r){const i=e._updating;e._updating=n;try{const n=e._listeners[t],i=Array.from(n);for(const[t,e]of i){e&&e();const i=t(...r);n.has(t)?n.set(t,i):i&&i()}}finally{e._updating=i}}function bi(e,n){const r=e._updates;let i=n||!1;for(;0!==r.length;){const n=r.shift();if(n){const[r,o]=n,s=e._pendingEditorState;let l;void 0!==o&&(l=o.onUpdate,o.skipTransforms&&(i=!0),o.discrete&&(null===s&&t(191),s._flushSync=!0),l&&e._deferred.push(l),Ci(e,o.tag)),null==s?wi(e,r,o):r()}}return i}function wi(e,n,r){const i=e._updateTags;let o,s=!1,l=!1;void 0!==r&&(o=r.onUpdate,Ci(e,r.tag),s=r.skipTransforms||!1,l=r.discrete||!1),o&&e._deferred.push(o);const c=e._editorState;let a=e._pendingEditorState,u=!1;(null===a||a._readOnly)&&(a=e._pendingEditorState=zi(a||c),u=!0),a._flushSync=l;const f=oi,d=li,h=si,g=e._updating;oi=a,li=!1,e._updating=!0,si=e;const _=e._headless||null===e.getRootElement();so(null);try{u&&(_?null!==c._selection&&(a._selection=c._selection.clone()):a._selection=function(t,e){const n=t.getEditorState()._selection,r=Es(ms(t));return wr(n)||null==n?Ur(n,r,t,e):n.clone()}(e,r&&r.event||null));const i=e._compositionKey;n(),s=bi(e,s),function(t,e){const n=e.getEditorState()._selection,r=t._selection;if(wr(r)){const t=r.anchor,e=r.focus;let i;if("text"===t.type&&(i=t.getNode(),i.selectionTransform(n,r)),"text"===e.type){const t=e.getNode();i!==t&&t.selectionTransform(n,r)}}}(a,e),0!==e._dirtyType&&(s?function(t,e){const n=e._dirtyLeaves,r=t._nodeMap;for(const t of n){const e=r.get(t);yr(e)&&e.isAttached()&&e.isSimpleText()&&!e.isUnmergeable()&&xt(e)}}(a,e):function(t,e){const n=e._dirtyLeaves,r=e._dirtyElements,i=t._nodeMap,o=Ao(),s=new Map;let l=n,c=l.size,a=r,u=a.size;for(;c>0||u>0;){if(c>0){e._dirtyLeaves=new Set;for(const t of l){const r=i.get(t);yr(r)&&r.isAttached()&&r.isSimpleText()&&!r.isUnmergeable()&&xt(r),void 0!==r&&xi(r,o)&&mi(e,r,s),n.add(t)}if(l=e._dirtyLeaves,c=l.size,c>0){ai++;continue}}e._dirtyLeaves=new Set,e._dirtyElements=new Map,a.delete("root")&&a.set("root",!0);for(const t of a){const n=t[0],l=t[1];if(r.set(n,l),!l)continue;const c=i.get(n);void 0!==c&&xi(c,o)&&mi(e,c,s)}l=e._dirtyLeaves,c=l.size,a=e._dirtyElements,u=a.size,ai++}e._dirtyLeaves=n,e._dirtyElements=r}(a,e),bi(e),function(t,e,n,r){const i=t._nodeMap,o=e._nodeMap,s=[];for(const[t]of r){const e=o.get(t);void 0!==e&&(e.isAttached()||(Pi(e)&&V(e,t,i,o,s,r),i.has(t)||r.delete(t),s.push(t)))}for(const t of s)o.delete(t);for(const t of n){const e=o.get(t);void 0===e||e.isAttached()||(i.has(t)||n.delete(t),o.delete(t))}}(c,a,e._dirtyLeaves,e._dirtyElements));i!==e._compositionKey&&(a._flushSync=!0);const o=a._selection;if(wr(o)){const e=a._nodeMap,n=o.anchor.key,r=o.focus.key;void 0!==e.get(n)&&void 0!==e.get(r)||t(19)}else Or(o)&&0===o._nodes.size&&(a._selection=null)}catch(t){return t instanceof Error&&e._onError(t),e._pendingEditorState=c,e._dirtyType=2,e._cloneNotNeeded.clear(),e._dirtyLeaves=new Set,e._dirtyElements.clear(),void Ti(e)}finally{oi=f,li=d,si=h,e._updating=g,ai=0}const p=0!==e._dirtyType||e._deferred.length>0||function(t,e){const n=e.getEditorState()._selection,r=t._selection;if(null!==r){if(r.dirty||!r.is(n))return!0}else if(null!==n)return!0;return!1}(a,e);p?a._flushSync?(a._flushSync=!1,Ti(e)):u&&fo(()=>{Ti(e)}):(a._flushSync=!1,u&&(i.clear(),e._deferred=[],e._pendingEditorState=null))}function Ei(t,e,n){si===t&&void 0===n?e():wi(t,e,n)}class Oi{element;before;after;constructor(t,e,n){this.element=t,this.before=e||null,this.after=n||null}withBefore(t){return new Oi(this.element,t,this.after)}withAfter(t){return new Oi(this.element,this.before,t)}withElement(t){return this.element===t?this:new Oi(t,this.before,this.after)}insertChild(e){const n=this.before||this.getManagedLineBreak();return null!==n&&n.parentElement!==this.element&&t(222),this.element.insertBefore(e,n),this}removeChild(e){return e.parentElement!==this.element&&t(223),this.element.removeChild(e),this}replaceChild(e,n){return n.parentElement!==this.element&&t(224),this.element.replaceChild(e,n),this}getFirstChild(){const t=this.after?this.after.nextSibling:this.element.firstChild;return t===this.before||t===this.getManagedLineBreak()?null:t}getManagedLineBreak(){return this.element.__lexicalLineBreak||null}setManagedLineBreak(t){if(null===t)this.removeManagedLineBreak();else{const e="decorator"===t&&(d||c||l);this.insertManagedLineBreak(e)}}removeManagedLineBreak(){const t=this.getManagedLineBreak();if(t){const e=this.element,n="IMG"===t.nodeName?t.nextSibling:null;n&&e.removeChild(n),e.removeChild(t),e.__lexicalLineBreak=void 0}}insertManagedLineBreak(t){const e=this.getManagedLineBreak();if(e){if(t===("IMG"===e.nodeName))return;this.removeManagedLineBreak()}const n=this.element,r=this.before,i=document.createElement("br");if(n.insertBefore(i,r),t){const t=document.createElement("img");t.setAttribute("data-lexical-linebreak","true"),t.style.cssText="display: inline !important; border: 0px !important; margin: 0px !important;",t.alt="",n.insertBefore(t,i),n.__lexicalLineBreak=t}else n.__lexicalLineBreak=i}getFirstChildOffset(){let t=0;for(let e=this.after;null!==e;e=e.previousSibling)t++;return t}resolveChildIndex(t,e,n,r){if(n===this.element){const e=this.getFirstChildOffset();return[t,Math.min(e+t.getChildrenSize(),Math.max(e,r))]}const i=Mi(e,n);i.push(r);const o=Mi(e,this.element);let s=t.getIndexWithinParent();for(let t=0;t<o.length;t++){const e=i[t],n=o[t];if(void 0===e||e<n)break;if(e>n){s+=1;break}}return[t.getParentOrThrow(),s]}}function Mi(e,n){const r=[];let i=n;for(;i!==e&&null!==i;i=i.parentNode){let t=0;for(let e=i.previousSibling;null!==e;e=e.previousSibling)t++;r.push(t)}return i!==e&&t(225),r.reverse()}class Ai extends zn{__first;__last;__size;__format;__style;__indent;__dir;__textFormat;__textStyle;constructor(t){super(t),this.__first=null,this.__last=null,this.__size=0,this.__format=0,this.__style="",this.__indent=0,this.__dir=null,this.__textFormat=0,this.__textStyle=""}afterCloneFrom(t){super.afterCloneFrom(t),this.__key===t.__key&&(this.__first=t.__first,this.__last=t.__last,this.__size=t.__size),this.__indent=t.__indent,this.__format=t.__format,this.__style=t.__style,this.__dir=t.__dir,this.__textFormat=t.__textFormat,this.__textStyle=t.__textStyle}getFormat(){return this.getLatest().__format}getFormatType(){const t=this.getFormat();return W[t]||""}getStyle(){return this.getLatest().__style}getIndent(){return this.getLatest().__indent}getChildren(){const t=[];let e=this.getFirstChild();for(;null!==e;)t.push(e),e=e.getNextSibling();return t}getChildrenKeys(){const t=[];let e=this.getFirstChild();for(;null!==e;)t.push(e.__key),e=e.getNextSibling();return t}getChildrenSize(){return this.getLatest().__size}isEmpty(){return 0===this.getChildrenSize()}isDirty(){const t=_i()._dirtyElements;return null!==t&&t.has(this.__key)}isLastChild(){const t=this.getLatest(),e=this.getParentOrThrow().getLastChild();return null!==e&&e.is(t)}getAllTextNodes(){const t=[];let e=this.getFirstChild();for(;null!==e;){if(yr(e)&&t.push(e),Pi(e)){const n=e.getAllTextNodes();t.push(...n)}e=e.getNextSibling()}return t}getFirstDescendant(){let t=this.getFirstChild();for(;Pi(t);){const e=t.getFirstChild();if(null===e)break;t=e}return t}getLastDescendant(){let t=this.getLastChild();for(;Pi(t);){const e=t.getLastChild();if(null===e)break;t=e}return t}getDescendantByIndex(t){const e=this.getChildren(),n=e.length;if(t>=n){const t=e[n-1];return Pi(t)&&t.getLastDescendant()||t||null}const r=e[t];return Pi(r)&&r.getFirstDescendant()||r||null}getFirstChild(){const t=this.getLatest().__first;return null===t?null:Po(t)}getFirstChildOrThrow(){const e=this.getFirstChild();return null===e&&t(45,this.__key),e}getLastChild(){const t=this.getLatest().__last;return null===t?null:Po(t)}getLastChildOrThrow(){const e=this.getLastChild();return null===e&&t(96,this.__key),e}getChildAtIndex(t){const e=this.getChildrenSize();let n,r;if(t<e/2){for(n=this.getFirstChild(),r=0;null!==n&&r<=t;){if(r===t)return n;n=n.getNextSibling(),r++}return null}for(n=this.getLastChild(),r=e-1;null!==n&&r>=t;){if(r===t)return n;n=n.getPreviousSibling(),r--}return null}getTextContent(){let t="";const e=this.getChildren(),n=e.length;for(let r=0;r<n;r++){const i=e[r];t+=i.getTextContent(),Pi(i)&&r!==n-1&&!i.isInline()&&(t+=P)}return t}getTextContentSize(){let t=0;const e=this.getChildren(),n=e.length;for(let r=0;r<n;r++){const i=e[r];t+=i.getTextContentSize(),Pi(i)&&r!==n-1&&!i.isInline()&&(t+=2)}return t}getDirection(){return this.getLatest().__dir}getTextFormat(){return this.getLatest().__textFormat}hasFormat(t){if(""!==t){const e=B[t];return 0!==(this.getFormat()&e)}return!1}hasTextFormat(t){const e=z[t];return 0!==(this.getTextFormat()&e)}getFormatFlags(t,e){return No(this.getLatest().__textFormat,t,e)}getTextStyle(){return this.getLatest().__textStyle}select(t,e){di();const n=$r();let r=t,i=e;const o=this.getChildrenSize();if(!this.canBeEmpty())if(0===t&&0===e){const t=this.getFirstChild();if(yr(t)||Pi(t))return t.select(0,0)}else if(!(void 0!==t&&t!==o||void 0!==e&&e!==o)){const t=this.getLastChild();if(yr(t)||Pi(t))return t.select()}void 0===r&&(r=o),void 0===i&&(i=o);const s=this.__key;return wr(n)?(n.anchor.set(s,r,"element"),n.focus.set(s,i,"element"),n.dirty=!0,n):Br(s,r,s,i,"element","element")}selectStart(){const t=this.getFirstDescendant();return t?t.selectStart():this.select()}selectEnd(){const t=this.getLastDescendant();return t?t.selectEnd():this.select()}clear(){const t=this.getWritable();return this.getChildren().forEach(t=>t.remove()),t}append(...t){return this.splice(this.getChildrenSize(),0,t)}setDirection(t){const e=this.getWritable();return e.__dir=t,e}setFormat(t){return this.getWritable().__format=""!==t?B[t]:0,this}setStyle(t){return this.getWritable().__style=t||"",this}setTextFormat(t){const e=this.getWritable();return e.__textFormat=t,e}setTextStyle(t){const e=this.getWritable();return e.__textStyle=t,e}setIndent(t){return this.getWritable().__indent=t,this}splice(e,n,r){Kn(this)&&t(324,this.__key,this.__type);const i=this.getChildrenSize(),o=this.getWritable();e+n<=i||t(226,String(e),String(n),String(i));const s=o.__key,l=[],c=[],a=this.getChildAtIndex(e+n);let u=null,f=i-n+r.length;if(0!==e)if(e===i)u=this.getLastChild();else{const t=this.getChildAtIndex(e);null!==t&&(u=t.getPreviousSibling())}if(n>0){let e=null===u?this.getFirstChild():u.getNextSibling();for(let r=0;r<n;r++){null===e&&t(100);const n=e.getNextSibling(),r=e.__key;Eo(e.getWritable()),c.push(r),e=n}}let d=u;for(const e of r){null!==d&&e.is(d)&&(u=d=d.getPreviousSibling());const n=e.getWritable();n.__parent===s&&f--,Eo(n);const r=e.__key;if(null===d)o.__first=r,n.__prev=null;else{const t=d.getWritable();t.__next=r,n.__prev=t.__key}e.__key===s&&t(76),n.__parent=s,l.push(r),d=e}if(e+n===i){if(null!==d){d.getWritable().__next=null,o.__last=d.__key}}else if(null!==a){const t=a.getWritable();if(null!==d){const e=d.getWritable();t.__prev=d.__key,e.__next=a.__key}else t.__prev=null}if(o.__size=f,c.length){const t=$r();if(wr(t)){const e=new Set(c),n=new Set(l),{anchor:r,focus:i}=t;Di(r,e,n)&&Hr(r,r.getNode(),this,u,a),Di(i,e,n)&&Hr(i,i.getNode(),this,u,a),0!==f||this.canBeEmpty()||Ss(this)||this.remove()}}return o}getDOMSlot(t){return new Oi(t)}exportDOM(t){const{element:e}=super.exportDOM(t);if(Ps(e)){const t=this.getIndent();t>0&&(e.style.paddingInlineStart=40*t+"px");const n=this.getDirection();n&&(e.dir=n)}return{element:e}}exportJSON(){const t={children:[],direction:this.getDirection(),format:this.getFormatType(),indent:this.getIndent(),...super.exportJSON()},e=this.getTextFormat(),n=this.getTextStyle();return 0===e&&""===n||Ss(this)||this.getChildren().some(yr)||(0!==e&&(t.textFormat=e),""!==n&&(t.textStyle=n)),t}updateFromJSON(t){return super.updateFromJSON(t).setFormat(t.format).setIndent(t.indent).setDirection(t.direction).setTextFormat(t.textFormat||0).setTextStyle(t.textStyle||"")}insertNewAfter(t,e){return null}canIndent(){return!0}collapseAtStart(t){return!1}excludeFromCopy(t){return!1}canReplaceWith(t){return!0}canInsertAfter(t){return!0}canBeEmpty(){return!0}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}isInline(){return!1}isShadowRoot(){return!1}canMergeWith(t){return!1}extractWithChild(t,e,n){return!1}canMergeWhenEmpty(){return!1}reconcileObservedMutation(t,e){const n=this.getDOMSlot(t);let r=n.getFirstChild();for(let t=this.getFirstChild();t;t=t.getNextSibling()){const i=e.getElementByKey(t.getKey());null!==i&&(null==r?(n.insertChild(i),r=i):r!==i&&n.replaceChild(i,r),r=r.nextSibling)}}}function Pi(t){return t instanceof Ai}function Di(t,e,n){let r=t.getNode();for(;r;){const t=r.__key;if(e.has(t)&&!n.has(t))return!0;r=r.getParent()}return!1}class Fi extends zn{decorate(t,e){return null}isIsolated(){return!1}isInline(){return!0}isKeyboardSelectable(){return!0}}function Li(t){return t instanceof Fi}class Ii extends Ai{__cachedText;static getType(){return"root"}static clone(){return new Ii}constructor(){super("root"),this.__cachedText=null}getTopLevelElementOrThrow(){t(51)}getTextContent(){const t=this.__cachedText;return!fi()&&0!==_i()._dirtyType||null===t?super.getTextContent():t}remove(){t(52)}replace(e){t(53)}insertBefore(e){t(54)}insertAfter(e){t(55)}updateDOM(t,e){return!1}splice(e,n,r){for(const e of r)Pi(e)||Li(e)||t(282);return super.splice(e,n,r)}static importJSON(t){return zo().updateFromJSON(t)}collapseAtStart(){return!0}}function Ki(t){return t instanceof Ii}function zi(t){return new Ji(new Map(t._nodeMap))}function Ri(){return new Ji(new Map([["root",new Ii]]))}function Bi(e){const n=e.exportJSON(),r=e.constructor;if(n.type!==r.getType()&&t(130,r.name),Pi(e)){const i=n.children;Array.isArray(i)||t(59,r.name);const o=e.getChildren();for(let t=0;t<o.length;t++){const e=Bi(o[t]);i.push(e)}}return n}function Wi(t){return t instanceof Ji}class Ji{_nodeMap;_selection;_flushSync;_readOnly;constructor(t,e){this._nodeMap=t,this._selection=e||null,this._flushSync=!1,this._readOnly=!1}isEmpty(){return 1===this._nodeMap.size&&null===this._selection}read(t,e){return ki(e&&e.editor||null,this,t)}clone(t){const e=new Ji(this._nodeMap,void 0===t?this._selection:t);return e._readOnly=!0,e}toJSON(){return ki(null,this,()=>({root:Bi(zo())}))}}class ji extends Ai{static getType(){return"artificial"}createDOM(t){return document.createElement("div")}}class Ui extends Ai{static getType(){return"paragraph"}static clone(t){return new Ui(t.__key)}createDOM(t){const e=document.createElement("p"),n=rs(t.theme,"paragraph");if(void 0!==n){e.classList.add(...n)}return e}updateDOM(t,e,n){return!1}static importDOM(){return{p:t=>({conversion:$i,priority:0})}}exportDOM(t){const{element:e}=super.exportDOM(t);if(Ps(e)){this.isEmpty()&&e.append(document.createElement("br"));const t=this.getFormatType();t&&(e.style.textAlign=t)}return{element:e}}static importJSON(t){return Vi().updateFromJSON(t)}exportJSON(){const t=super.exportJSON();if(void 0===t.textFormat||void 0===t.textStyle){const e=this.getChildren().find(yr);e?(t.textFormat=e.getFormat(),t.textStyle=e.getStyle()):(t.textFormat=this.getTextFormat(),t.textStyle=this.getTextStyle())}return t}insertNewAfter(t,e){const n=Vi();n.setTextFormat(t.format),n.setTextStyle(t.style);const r=this.getDirection();return n.setDirection(r),n.setFormat(this.getFormatType()),n.setStyle(this.getStyle()),this.insertAfter(n,e),n}collapseAtStart(){const t=this.getChildren();if(0===t.length||yr(t[0])&&""===t[0].getTextContent().trim()){if(null!==this.getNextSibling())return this.selectNext(),this.remove(),!0;if(null!==this.getPreviousSibling())return this.selectPrevious(),this.remove(),!0}return!1}}function $i(t){const e=Vi();if(t.style&&(e.setFormat(t.style.textAlign),Us(t,e)),""===e.getFormatType()){const n=t.getAttribute("align");n&&n&&n in B&&e.setFormat(n)}return{node:e}}function Vi(){return ks(new Ui)}function Yi(t){return t instanceof Ui}const qi=0,Hi=1,Gi=2,Xi=3,Qi=4;function Zi(t,e,n,r){const i=t._keyToDOMMap;i.clear(),t._editorState=Ri(),t._pendingEditorState=r,t._compositionKey=null,t._dirtyType=0,t._cloneNotNeeded.clear(),t._dirtyLeaves=new Set,t._dirtyElements.clear(),t._normalizedNodes=new Set,t._updateTags=new Set,t._updates=[],t._blockCursorElement=null;const o=t._observer;null!==o&&(o.disconnect(),t._observer=null),null!==e&&(e.textContent=""),null!==n&&(n.textContent="",i.set("root",n))}function to(t){const e=new Set,n=new Set;let r=t;for(;r;){const{ownNodeConfig:t}=qs(r),i=r.transform;if(!n.has(i)){n.add(i);const t=r.transform();t&&e.add(t)}if(t){const n=t.$transform;n&&e.add(n),r=t.extends}else{const t=Object.getPrototypeOf(r);r=t.prototype instanceof zn&&t!==zn?t:void 0}}return e}function eo(t){const e=t||{},n=yi(),r=e.theme||{},i=void 0===t?n:e.parentEditor||null,o=e.disableEvents||!1,s=Ri(),l=e.namespace||(null!==i?i._config.namespace:Uo()),c=e.editorState,a=[Ii,lr,Gn,xr,Ui,ji,...e.nodes||[]],{onError:u,html:f}=e,d=void 0===e.editable||e.editable;let h;if(void 0===t&&null!==n)h=n._nodes;else{h=new Map;for(let t=0;t<a.length;t++){let e=a[t],n=null,r=null;if("function"!=typeof e){const t=e;e=t.replace,n=t.with,r=t.withKlass||null}qs(e);const i=e.getType(),o=to(e);h.set(i,{exportDOM:f&&f.export?f.export.get(e):void 0,klass:e,replace:n,replaceWithKlass:r,sharedNodeState:ct(a[t]),transforms:o})}}const g=new io(s,i,h,{disableEvents:o,namespace:l,theme:r},u||console.error,function(t,e){const n=new Map,r=new Set,i=t=>{Object.keys(t).forEach(e=>{let r=n.get(e);void 0===r&&(r=[],n.set(e,r)),r.push(t[e])})};return t.forEach(t=>{const e=t.klass.importDOM;if(null==e||r.has(e))return;r.add(e);const n=e.call(t.klass);null!==n&&i(n)}),e&&i(e),n}(h,f?f.import:void 0),d,t);return void 0!==c&&(g._pendingEditorState=c,g._dirtyType=2),function(t){t.registerCommand(se,Sn,qi),t.registerCommand(le,vn,qi),t.registerCommand(ce,kn,qi),t.registerCommand(ae,Tn,qi),t.registerCommand(Se,bn,qi)}(g),g}function no(t,e){const n=t.get(e);t.delete(e),n&&n()}function ro(t,e,n){return t.set(e,n),no.bind(null,t,e)}class io{static version;_headless;_parentEditor;_rootElement;_editorState;_pendingEditorState;_compositionKey;_deferred;_keyToDOMMap;_updates;_updating;_listeners;_commands;_nodes;_decorators;_pendingDecorators;_config;_dirtyType;_cloneNotNeeded;_dirtyLeaves;_dirtyElements;_normalizedNodes;_updateTags;_observer;_key;_onError;_htmlConversions;_window;_editable;_blockCursorElement;_createEditorArgs;constructor(t,e,n,r,i,o,s,l){this._createEditorArgs=l,this._parentEditor=e,this._rootElement=null,this._editorState=t,this._pendingEditorState=null,this._compositionKey=null,this._deferred=[],this._keyToDOMMap=new Map,this._updates=[],this._updating=!1,this._listeners={decorator:new Map,editable:new Map,mutation:new Map,root:new Map,textcontent:new Map,update:new Map},this._commands=new Map,this._config=r,this._nodes=n,this._decorators={},this._pendingDecorators=null,this._dirtyType=0,this._cloneNotNeeded=new Set,this._dirtyLeaves=new Set,this._dirtyElements=new Map,this._normalizedNodes=new Set,this._updateTags=new Set,this._observer=null,this._key=Uo(),this._onError=i,this._htmlConversions=o,this._editable=s,this._headless=null!==e&&e._headless,this._window=null,this._blockCursorElement=null}isComposing(){return null!=this._compositionKey}registerUpdateListener(t){return ro(this._listeners.update,t)}registerEditableListener(t){return ro(this._listeners.editable,t)}registerDecoratorListener(t){return ro(this._listeners.decorator,t)}registerTextContentListener(t){return ro(this._listeners.textcontent,t)}registerRootListener(t){const e=this._listeners.root;return rc(ro(e,t,t(this._rootElement,null)||void 0),()=>function(t,e,n){const r=t.get(e);r&&r(),t.set(e,e(...n)||void 0)}(e,t,[null,this._rootElement]))}registerCommand(e,n,r){void 0===r&&t(35);const i=this._commands;i.has(e)||i.set(e,[new Set,new Set,new Set,new Set,new Set]);const o=i.get(e);void 0===o&&t(36,String(e));const s=o[r];return s.add(n),()=>{s.delete(n),o.every(t=>0===t.size)&&i.delete(e)}}registerMutationListener(t,e,n){const r=this.resolveRegisteredNodeAfterReplacements(this.getRegisteredNode(t)).klass,i=this._listeners.mutation;let o=i.get(e);void 0===o&&(o=new Set,i.set(e,o)),o.add(r);const s=n&&n.skipInitialization;return void 0!==s&&s||this.initializeMutationListener(e,r),()=>{o.delete(r),0===o.size&&i.delete(e)}}getRegisteredNode(e){const n=this._nodes.get(e.getType());return void 0===n&&t(37,e.name),n}resolveRegisteredNodeAfterReplacements(t){for(;t.replaceWithKlass;)t=this.getRegisteredNode(t.replaceWithKlass);return t}initializeMutationListener(t,e){const n=this._editorState,r=Ws(n).get(e.getType());if(!r)return;const i=new Map;for(const t of r.keys())i.set(t,"created");i.size>0&&t(i,{dirtyLeaves:new Set,prevEditorState:n,updateTags:new Set(["registerMutationListener"])})}registerNodeTransformToKlass(t,e){const n=this.getRegisteredNode(t);return n.transforms.add(e),n}registerNodeTransform(t,e){const n=this.registerNodeTransformToKlass(t,e),r=[n],i=n.replaceWithKlass;if(null!=i){const t=this.registerNodeTransformToKlass(i,e);r.push(t)}return function(t,e){const n=Ws(t.getEditorState()),r=[];for(const t of e){const e=n.get(t);e&&r.push(e)}if(0===r.length)return;t.update(()=>{for(const t of r)for(const e of t.keys()){const t=Po(e);t&&t.markDirty()}},null===t._pendingEditorState?{tag:Wn}:void 0)}(this,r.map(t=>t.klass.getType())),()=>{r.forEach(t=>t.transforms.delete(e))}}hasNode(t){return this._nodes.has(t.getType())}hasNodes(t){return t.every(this.hasNode.bind(this))}dispatchCommand(t,e){return as(this,t,e)}getDecorators(){return this._decorators}getRootElement(){return this._rootElement}getKey(){return this._key}setRootElement(t){const e=this._rootElement;if(t!==e){const n=rs(this._config.theme,"root"),r=this._pendingEditorState||this._editorState;if(this._rootElement=t,Zi(this,e,t,r),null!==e&&(this._config.disableEvents||Dn(e),null!=n&&e.classList.remove(...n)),null!==t){const e=ys(t),r=t.style;r.userSelect="text",r.whiteSpace="pre-wrap",r.wordBreak="break-word",t.setAttribute("data-lexical-editor","true"),this._window=e,this._dirtyType=2,nt(this),this._updateTags.add(Wn),Ti(this),this._config.disableEvents||function(t,e){const n=t.ownerDocument;on.set(t,n);const r=sn.get(n)??0;r<1&&n.addEventListener("selectionchange",On),sn.set(n,r+1),t.__lexicalEditor=e;const i=wn(t);for(let n=0;n<Ze.length;n++){const[r,o]=Ze[n],s="function"==typeof o?t=>{An(t)||(Mn(t),(e.isEditable()||"click"===r)&&o(t,e))}:t=>{if(An(t))return;Mn(t);const n=e.isEditable();switch(r){case"cut":return n&&as(e,je,t);case"copy":return as(e,Je,t);case"paste":return n&&as(e,ge,t);case"dragstart":return n&&as(e,Re,t);case"dragover":return n&&as(e,Be,t);case"dragend":return n&&as(e,We,t);case"focus":return n&&as(e,He,t);case"blur":return n&&as(e,Ge,t);case"drop":return n&&as(e,Ke,t)}};t.addEventListener(r,s),i.push(()=>{t.removeEventListener(r,s)})}}(t,this),null!=n&&t.classList.add(...n)}else this._window=null,this._updateTags.add(Wn),Ti(this);Ni("root",this,!1,t,e)}}getElementByKey(t){return this._keyToDOMMap.get(t)||null}getEditorState(){return this._editorState}setEditorState(e,n){e.isEmpty()&&t(38);let r=e;r._readOnly&&(r=zi(e),r._selection=e._selection?e._selection.clone():null),et(this);const i=this._pendingEditorState,o=this._updateTags,s=void 0!==n?n.tag:null;null===i||i.isEmpty()||(null!=s&&o.add(s),Ti(this)),this._pendingEditorState=r,this._dirtyType=2,this._dirtyElements.set("root",!1),this._compositionKey=null,null!=s&&o.add(s),this._updating||Ti(this)}parseEditorState(t,e){return function(t,e,n){const r=Ri(),i=oi,o=li,s=si,l=e._dirtyElements,c=e._dirtyLeaves,a=e._cloneNotNeeded,u=e._dirtyType;e._dirtyElements=new Map,e._dirtyLeaves=new Set,e._cloneNotNeeded=new Set,e._dirtyType=0,oi=r,li=!1,si=e,so(null);try{const i=e._nodes;vi(t.root,i),n&&n(),r._readOnly=!0}catch(t){t instanceof Error&&e._onError(t)}finally{e._dirtyElements=l,e._dirtyLeaves=c,e._cloneNotNeeded=a,e._dirtyType=u,oi=i,li=o,si=s}return r}("string"==typeof t?JSON.parse(t):t,this,e)}read(t){return Ti(this),this.getEditorState().read(t,{editor:this})}update(t,e){!function(t,e,n){t._updating?t._updates.push([e,n]):wi(t,e,n)}(this,t,e)}focus(t,e={}){const n=this._rootElement;null!==n&&(n.setAttribute("autocapitalize","off"),Ei(this,()=>{const r=$r(),i=zo();null!==r?r.dirty||Bo(r.clone()):0!==i.getChildrenSize()&&("rootStart"===e.defaultSelection?i.selectStart():i.selectEnd()),gs("focus"),_s(()=>{n.removeAttribute("autocapitalize"),t&&t()})}),null===this._pendingEditorState&&n.removeAttribute("autocapitalize"))}blur(){const t=this._rootElement;null!==t&&t.blur();const e=Es(this._window);null!==e&&e.removeAllRanges()}isEditable(){return this._editable}setEditable(t){this._editable!==t&&(this._editable=t,Ni("editable",this,!0,t))}toJSON(){return{editorState:this._editorState.toJSON()}}}io.version="0.42.0+prod.esm";let oo=null;function so(t){oo=t}let lo=1;function co(){lo=1}function ao(e,n){const r=uo(e,n);return void 0===r&&t(30,n),r}function uo(t,e){return t._nodes.get(e)}const fo="function"==typeof queueMicrotask?queueMicrotask:t=>{Promise.resolve().then(t)};function ho(t){return Li(Lo(t))}function go(t){const e=document.activeElement;if(!Ps(e))return!1;const n=e.nodeName;return Li(Lo(t))&&("INPUT"===n||"TEXTAREA"===n||"true"===e.contentEditable&&null==mo(e))}function _o(t,e,n){const r=t.getRootElement();try{return null!==r&&r.contains(e)&&r.contains(n)&&null!==e&&!go(e)&&yo(e)===t}catch(t){return!1}}function po(t){return t instanceof io}function yo(t){let e=t;for(;null!=e;){const t=mo(e);if(po(t))return t;e=fs(e)}return null}function mo(t){return t?t.__lexicalEditor:null}function xo(t){return I.test(t)?"rtl":K.test(t)?"ltr":null}function Co(t){return Sr(t)||t.isToken()}function So(t){return Co(t)||t.isSegmented()}function vo(t){return Ds(t)&&3===t.nodeType}function ko(t){return Ds(t)&&9===t.nodeType}function To(t){let e=t;for(;null!=e;){if(vo(e))return e;e=e.firstChild}return null}function No(t,e,n){const r=z[e];if(null!==n&&(t&r)===(n&r))return t;let i=t^r;return"subscript"===e?i&=~z.superscript:"superscript"===e?i&=~z.subscript:"lowercase"===e?(i&=~z.uppercase,i&=~z.capitalize):"uppercase"===e?(i&=~z.lowercase,i&=~z.capitalize):"capitalize"===e&&(i&=~z.lowercase,i&=~z.uppercase),i}function bo(t){return yr(t)||Zn(t)||Li(t)}function wo(t,e){const n=function(){const t=oo;return oo=null,t}();if(null!=(e=e||n&&n.__key))return void(t.__key=e);di(),hi();const r=_i(),i=gi(),o=""+lo++;i._nodeMap.set(o,t),Pi(t)?r._dirtyElements.set(o,!0):r._dirtyLeaves.add(o),r._cloneNotNeeded.add(o),r._dirtyType=1,t.__key=o}function Eo(t){const e=t.getParent();if(null!==e){const n=t.getWritable(),r=e.getWritable(),i=t.getPreviousSibling(),o=t.getNextSibling(),s=null!==o?o.__key:null,l=null!==i?i.__key:null,c=null!==i?i.getWritable():null,a=null!==o?o.getWritable():null;null===i&&(r.__first=s),null===o&&(r.__last=l),null!==c&&(c.__next=s),null!==a&&(a.__prev=l),n.__prev=null,n.__next=null,n.__parent=null,r.__size--}}function Oo(e){hi(),Kn(e)&&t(323,e.__key,e.__type);const n=e.getLatest(),r=n.__parent,i=gi(),o=_i(),s=i._nodeMap,l=o._dirtyElements;null!==r&&function(t,e,n){let r=t;for(;null!==r;){if(n.has(r))return;const t=e.get(r);if(void 0===t)break;n.set(r,!1),r=t.__parent}}(r,s,l);const c=n.__key;o._dirtyType=1,Pi(e)?l.set(c,!0):o._dirtyLeaves.add(c)}function Mo(t){di();const e=_i(),n=e._compositionKey;if(t!==n){if(e._compositionKey=t,null!==n){const t=Po(n);null!==t&&t.getWritable()}if(null!==t){const e=Po(t);null!==e&&e.getWritable()}}}function Ao(){if(fi())return null;return _i()._compositionKey}function Po(t,e){const n=(e||gi())._nodeMap.get(t);return void 0===n?null:n}function Do(t,e){const n=Fo(t,_i());return void 0!==n?Po(n,e):null}function Fo(t,e){return t[`__lexicalKey_${e._key}`]}function Lo(t,e){let n=t;for(;null!=n;){const t=Do(n,e);if(null!==t)return t;n=fs(n)}return null}function Io(t){const e=t._decorators,n=Object.assign({},e);return t._pendingDecorators=n,n}function Ko(t){return t.read(()=>zo().getTextContent())}function zo(){return Ro(gi())}function Ro(t){return t._nodeMap.get("root")}function Bo(t){di();const e=gi();null!==t&&(t.dirty=!0,t.setCachedNodes(null)),e._selection=t}function Wo(t){const e=_i(),n=function(t,e){let n=t;for(;null!=n;){const t=Fo(n,e);if(void 0!==t)return t;n=fs(n)}return null}(t,e);if(null===n){return t===e.getRootElement()?Po("root"):null}return Po(n)}function Jo(t){return/[\uD800-\uDBFF][\uDC00-\uDFFF]/g.test(t)}function jo(t){const e=[];for(let n=t;null!==n;n=n._updating?null:n._parentEditor)e.push(n);return e}function Uo(){return Math.random().toString(36).replace(/[^a-z]+/g,"").substring(0,5)}function $o(t){return vo(t)?t.nodeValue:null}function Vo(t,e,n){const r=Es(ms(e));if(null===r)return;const i=r.anchorNode;let{anchorOffset:o,focusOffset:s}=r;if(null!==i){let e=$o(i);const r=Lo(i);if(null!==e&&yr(r)){if((e===A||e===D)&&n){const t=n.length;e=n,o=t,s=t}null!==e&&Yo(r,e,o,s,t)}}}function Yo(t,e,n,r,i){let o=t;if(o.isAttached()&&(i||!o.isDirty())){const s=o.isComposing();let a=e;if((s||i)&&(e.endsWith(A)&&(a=e.slice(0,-A.length)),i)){const t=D;let e;for(;-1!==(e=a.indexOf(t));)a=a.slice(0,e)+a.slice(e+t.length),null!==n&&n>e&&(n=Math.max(e,n-t.length)),null!==r&&r>e&&(r=Math.max(e,r-t.length))}const u=o.getTextContent();if(i||a!==u){if(""===a){if(Mo(null),l||c||d)o.remove();else{const t=_i();setTimeout(()=>{t.update(()=>{o.isAttached()&&o.remove()})},20)}return}const e=o.getParent(),i=Vr(),u=o.getTextContentSize(),f=Ao(),h=o.getKey();if(o.isToken()||null!==f&&h===f&&!s||wr(i)&&(null!==e&&!e.canInsertTextBefore()&&0===i.anchor.offset||i.anchor.key===t.__key&&0===i.anchor.offset&&!o.canInsertTextBefore()&&!s||i.focus.key===t.__key&&i.focus.offset===u&&!o.canInsertTextAfter()&&!s))return void o.markDirty();const g=$r();if(!wr(g)||null===n||null===r)return void qo(o,a,g);if(g.setTextNodeRange(o,n,o,r),o.isSegmented()){const t=pr(o.getTextContent());o.replace(t),o=t}qo(o,a,g)}}}function qo(t,e,n){if(t.setTextContent(e),wr(n)){const e=t.getKey();for(const r of["anchor","focus"]){const i=n[r];"text"===i.type&&i.key===e&&(i.offset=gl(t,i.offset,"clamp"))}}}function Ho(t,e,n){const r=e[n]||!1;return"any"===r||r===t[n]}function Go(t,e){return Ho(t,e,"altKey")&&Ho(t,e,"ctrlKey")&&Ho(t,e,"shiftKey")&&Ho(t,e,"metaKey")}function Xo(t,e,n){if(!Go(t,n))return!1;if(t.key.toLowerCase()===e.toLowerCase())return!0;if(e.length>1)return!1;if(1===t.key.length&&t.key.charCodeAt(0)<=127)return!1;const r="Key"+e.toUpperCase();return t.code===r}const Qo={ctrlKey:!i,metaKey:i},Zo={altKey:i,ctrlKey:!i};function ts(t){return"Backspace"===t.key}function es(t){return Xo(t,"a",Qo)}function ns(t){const e=zo();if(wr(t)){const e=t.anchor,n=t.focus,r=e.getNode().getTopLevelElementOrThrow().getParentOrThrow();return e.set(r.getKey(),0,"element"),n.set(r.getKey(),r.getChildrenSize(),"element"),Ct(t),t}{const t=e.select(0,e.getChildrenSize());return Bo(Ct(t)),t}}function rs(t,e){void 0===t.__lexicalClassNameCache&&(t.__lexicalClassNameCache={});const n=t.__lexicalClassNameCache,r=n[e];if(void 0!==r)return r;const i=t[e];if("string"==typeof i){const t=tc(i);return n[e]=t,t}return i}function is(e,n,r,i,o){if(0===r.size)return;const s=i.__type,l=i.__key,c=n.get(s);void 0===c&&t(33,s);const a=c.klass;let u=e.get(a);void 0===u&&(u=new Map,e.set(a,u));const f=u.get(l),d="destroyed"===f&&"created"===o;(void 0===f||d)&&u.set(l,d?"updated":o)}function os(t){const e=t.getType(),n=gi();if(n._readOnly){const t=Ws(n).get(e);return t?Array.from(t.values()):[]}const r=n._nodeMap,i=[];for(const[,n]of r)n instanceof t&&n.__type===e&&n.isAttached()&&i.push(n);return i}function ss(t,e,n){const r=t.getParent();let i=n,o=t;return null!==r&&(e&&0===n?(i=o.getIndexWithinParent(),o=r):e||n!==o.getChildrenSize()||(i=o.getIndexWithinParent()+1,o=r)),o.getChildAtIndex(e?i-1:i)}function ls(t,e){const n=t.offset;if("element"===t.type){return ss(t.getNode(),e,n)}{const r=t.getNode();if(e&&0===n||!e&&n===r.getTextContentSize()){const t=e?r.getPreviousSibling():r.getNextSibling();return null===t?ss(r.getParentOrThrow(),e,r.getIndexWithinParent()+(e?0:1)):t}}return null}function cs(t){const e=ms(t).event,n=e&&e.inputType;return"insertFromPaste"===n||"insertFromPasteAsQuotation"===n}function as(t,e,n){return function(t,e,n){const r=jo(t);for(let i=4;i>=0;i--)for(let o=0;o<r.length;o++){const s=r[o],l=s._commands.get(e);if(void 0!==l){const e=l[i];if(void 0!==e){const r=Array.from(e),i=r.length;let o=!1;if(Ei(s,()=>{for(let e=0;e<i;e++)if(r[e](n,t))return void(o=!0)}),o)return o}}}return!1}(t,e,n)}function us(e,n){const r=e._keyToDOMMap.get(n);return void 0===r&&t(75,n),r}function fs(t){const e=t.assignedSlot||t.parentElement;return Fs(e)?e.host:e}function ds(t){return ko(t)?t:Ps(t)?t.ownerDocument:null}function hs(t){return _i()._updateTags.has(t)}function gs(t){di();_i()._updateTags.add(t)}function _s(t){di();_i()._deferred.push(t)}function ps(t,e){let n=t.getParent();for(;null!==n;){if(n.is(e))return!0;n=n.getParent()}return!1}function ys(t){const e=ds(t);return e?e.defaultView:null}function ms(e){const n=e._window;return null===n&&t(78),n}function xs(t){return Pi(t)&&t.isInline()||Li(t)&&t.isInline()}function Cs(t){let e=t.getParentOrThrow();for(;null!==e;){if(Ss(e))return e;e=e.getParentOrThrow()}return e}function Ss(t){return Ki(t)||Pi(t)&&t.isShadowRoot()}function vs(t,e=!1){const n=t.constructor.clone(t);return wo(n,null),n.afterCloneFrom(t),e||n.resetOnCopyNodeFrom(t),n}function ks(e){const n=_i(),r=e.getType(),i=uo(n,r);void 0===i&&t(200,e.constructor.name,r);const{replace:o,replaceWithKlass:s}=i;if(null!==o){const n=o(e),i=n.constructor;return null!==s?n instanceof s||t(201,s.name,s.getType(),i.name,i.getType(),e.constructor.name,r):n instanceof e.constructor&&i!==e.constructor||t(202,i.name,i.getType(),e.constructor.name,r),n.__key===e.__key&&t(203,e.constructor.name,r,i.name,i.getType()),n}return e}function Ts(e,n){!Ki(e.getParent())||Pi(n)||Li(n)||t(99)}function Ns(e){const n=Po(e);return null===n&&t(63,e),n}function bs(t){return(Li(t)||Pi(t)&&!t.canBeEmpty())&&!t.isInline()}function ws(t,e,n){n.style.removeProperty("caret-color"),e._blockCursorElement=null;const r=t.parentElement;null!==r&&r.removeChild(t)}function Es(t){return n?(t||window).getSelection():null}function Os(t){const e=ys(t);return e?e.getSelection():null}function Ms(e,n){let r=e.getChildAtIndex(n);null==r&&(r=e),Ss(e)&&t(102);const i=e=>{const n=e.getParentOrThrow(),o=Ss(n),s=e!==r||o?vs(e):e;if(o)return Pi(e)&&Pi(s)||t(133),e.insertAfter(s),[e,s,s];{const[t,r,o]=i(n),l=e.getNextSiblings();return o.append(s,...l),[t,r,s]}},[o,s]=i(r);return[o,s]}function As(t){return Ps(t)&&"A"===t.tagName}function Ps(t){return Ds(t)&&1===t.nodeType}function Ds(t){return"object"==typeof t&&null!==t&&"nodeType"in t&&"number"==typeof t.nodeType}function Fs(t){return Ds(t)&&11===t.nodeType}function Ls(t){const e=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");return null!==t.nodeName.match(e)}function Is(t){const e=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");return null!==t.nodeName.match(e)}function Ks(t){if(Li(t)&&!t.isInline())return!0;if(!Pi(t)||Ss(t))return!1;const e=t.getFirstChild(),n=null===e||Zn(e)||yr(e)||e.isInline();return!t.isInline()&&!1!==t.canBeEmpty()&&n}function zs(){return _i()}const Rs=new WeakMap,Bs=new Map;function Ws(e){if(!e._readOnly&&e.isEmpty())return Bs;e._readOnly||t(192);let n=Rs.get(e);return n||(n=function(t){const e=new Map;for(const[n,r]of t._nodeMap){const t=r.__type;let i=e.get(t);i||(i=new Map,e.set(t,i)),i.set(n,r)}return e}(e),Rs.set(e,n)),n}function Js(t){const e=t.constructor.clone(t);return e.afterCloneFrom(t),e}function js(t){return(e=Js(t))[In]=!0,e;var e}function Us(t,e){const n=parseInt(t.style.paddingInlineStart,10)||0,r=Math.round(n/40);e.setIndent(r)}function $s(t){t.__lexicalUnmanaged=!0}function Vs(t){return!0===t.__lexicalUnmanaged}function Ys(t,e){return function(t,e){return Object.prototype.hasOwnProperty.call(t,e)}(t,e)&&t[e]!==zn[e]}function qs(e){const n=$ in e.prototype?e.prototype[$]():void 0,r=function(e){if(!(e===zn||e.prototype instanceof zn)){let n="<unknown>",r="<unknown>";try{n=e.getType()}catch(t){}try{io.version&&(r=JSON.parse(io.version))}catch(t){}t(290,e.name,n,r)}return e===Fi||e===Ai||e===zn}(e),i=!r&&Ys(e,"getType")?e.getType():void 0;let o,s=i;if(n)if(i)o=n[i];else for(const[t,e]of Object.entries(n))s=t,o=e;if(!r&&s&&(Ys(e,"getType")||(e.getType=()=>s),Ys(e,"clone")||(e.clone=t=>(so(t),new e)),Ys(e,"importJSON")||(e.importJSON=o&&o.$importJSON||(t=>(new e).updateFromJSON(t))),!Ys(e,"importDOM")&&o)){const{importDOM:t}=o;t&&(e.importDOM=()=>t)}return{ownNodeConfig:o,ownNodeType:s}}function Hs(t){const e=zs();di();return new(e.resolveRegisteredNodeAfterReplacements(e.getRegisteredNode(t)).klass)}const Gs=(t,e)=>{let n=t;for(;null!=n&&!Ki(n);){if(e(n))return n;n=n.getParent()}return null},Xs={next:"previous",previous:"next"};class Qs{origin;constructor(t){this.origin=t}[Symbol.iterator](){return Nl({hasNext:ll,initial:this.getAdjacentCaret(),map:t=>t,step:t=>t.getAdjacentCaret()})}getAdjacentCaret(){return dl(this.getNodeAtCaret(),this.direction)}getSiblingCaret(){return dl(this.origin,this.direction)}remove(){const t=this.getNodeAtCaret();return t&&t.remove(),this}replaceOrInsert(t,e){const n=this.getNodeAtCaret();return t.is(this.origin)||t.is(n)||(null===n?this.insert(t):n.replace(t,e)),this}splice(e,n,r="next"){const i=r===this.direction?n:Array.from(n).reverse();let o=this;const s=this.getParentAtCaret(),l=new Map;for(let t=o.getAdjacentCaret();null!==t&&l.size<e;t=t.getAdjacentCaret()){const e=t.origin.getWritable();l.set(e.getKey(),e)}for(const e of i){if(l.size>0){const n=o.getNodeAtCaret();if(n)if(l.delete(n.getKey()),l.delete(e.getKey()),n.is(e)||o.origin.is(e));else{const t=e.getParent();t&&t.is(s)&&e.remove(),n.replace(e)}else null===n&&t(263,Array.from(l).join(" "))}else o.insert(e);o=dl(e,this.direction)}for(const t of l.values())t.remove();return this}}class Zs extends Qs{type="child";getLatest(){const t=this.origin.getLatest();return t===this.origin?this:pl(t,this.direction)}getParentCaret(t="root"){return dl(nl(this.getParentAtCaret(),t),this.direction)}getFlipped(){const t=el(this.direction);return dl(this.getNodeAtCaret(),t)||pl(this.origin,t)}getParentAtCaret(){return this.origin}getChildCaret(){return this}isSameNodeCaret(t){return t instanceof Zs&&this.direction===t.direction&&this.origin.is(t.origin)}isSamePointCaret(t){return this.isSameNodeCaret(t)}}const tl={root:Ki,shadowRoot:Ss};function el(t){return Xs[t]}function nl(t,e="root"){return tl[e](t)?null:t}class rl extends Qs{type="sibling";getLatest(){const t=this.origin.getLatest();return t===this.origin?this:dl(t,this.direction)}getSiblingCaret(){return this}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return Pi(this.origin)?pl(this.origin,this.direction):null}getParentCaret(t="root"){return dl(nl(this.getParentAtCaret(),t),this.direction)}getFlipped(){const t=el(this.direction);return dl(this.getNodeAtCaret(),t)||pl(this.origin.getParentOrThrow(),t)}isSamePointCaret(t){return t instanceof rl&&this.direction===t.direction&&this.origin.is(t.origin)}isSameNodeCaret(t){return(t instanceof rl||t instanceof il)&&this.direction===t.direction&&this.origin.is(t.origin)}}class il extends Qs{type="text";offset;constructor(t,e){super(t),this.offset=e}getLatest(){const t=this.origin.getLatest();return t===this.origin?this:hl(t,this.direction,this.offset)}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return null}getParentCaret(t="root"){return dl(nl(this.getParentAtCaret(),t),this.direction)}getFlipped(){return hl(this.origin,el(this.direction),this.offset)}isSamePointCaret(t){return t instanceof il&&this.direction===t.direction&&this.origin.is(t.origin)&&this.offset===t.offset}isSameNodeCaret(t){return(t instanceof rl||t instanceof il)&&this.direction===t.direction&&this.origin.is(t.origin)}getSiblingCaret(){return dl(this.origin,this.direction)}}function ol(t){return t instanceof il}function sl(t){return t instanceof Qs}function ll(t){return t instanceof rl}function cl(t){return t instanceof Zs}const al={next:class extends il{direction="next";getNodeAtCaret(){return this.origin.getNextSibling()}insert(t){return this.origin.insertAfter(t),this}},previous:class extends il{direction="previous";getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(t){return this.origin.insertBefore(t),this}}},ul={next:class extends rl{direction="next";getNodeAtCaret(){return this.origin.getNextSibling()}insert(t){return this.origin.insertAfter(t),this}},previous:class extends rl{direction="previous";getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(t){return this.origin.insertBefore(t),this}}},fl={next:class extends Zs{direction="next";getNodeAtCaret(){return this.origin.getFirstChild()}insert(t){return this.origin.splice(0,0,[t]),this}},previous:class extends Zs{direction="previous";getNodeAtCaret(){return this.origin.getLastChild()}insert(t){return this.origin.splice(this.origin.getChildrenSize(),0,[t]),this}}};function dl(t,e){return t?new ul[e](t):null}function hl(t,e,n){return t?new al[e](t,gl(t,n)):null}function gl(t,n,r="error"){const i=t.getTextContentSize();let o="next"===n?i:"previous"===n?0:n;return(o<0||o>i)&&("clamp"!==r&&e(284,String(n),String(i),t.getKey()),o=o<0?0:i),o}function _l(t,e){return new Cl(t,e)}function pl(t,e){return Pi(t)?new fl[e](t):null}function yl(t){return t&&t.getChildCaret()||t}function ml(t){return t&&yl(t.getAdjacentCaret())}class xl{type="node-caret-range";direction;anchor;focus;constructor(t,e,n){this.anchor=t,this.focus=e,this.direction=n}getLatest(){const t=this.anchor.getLatest(),e=this.focus.getLatest();return t===this.anchor&&e===this.focus?this:new xl(t,e,this.direction)}isCollapsed(){return this.anchor.isSamePointCaret(this.focus)}getTextSlices(){const t=t=>{const e=this[t].getLatest();return ol(e)?function(t,e){const{direction:n,origin:r}=t,i=gl(r,"focus"===e?el(n):n);return _l(t,i-t.offset)}(e,t):null},e=t("anchor"),n=t("focus");if(e&&n){const{caret:t}=e,{caret:r}=n;if(t.isSameNodeCaret(r))return[_l(t,r.offset-t.offset),null]}return[e,n]}iterNodeCarets(t="root"){const e=ol(this.anchor)?this.anchor.getSiblingCaret():this.anchor.getLatest(),n=this.focus.getLatest(),r=ol(n),i=e=>e.isSameNodeCaret(n)?null:ml(e)||e.getParentCaret(t);return Nl({hasNext:t=>null!==t&&!(r&&n.isSameNodeCaret(t)),initial:e.isSameNodeCaret(n)?null:i(e),map:t=>t,step:i})}[Symbol.iterator](){return this.iterNodeCarets("root")}}class Cl{type="slice";caret;distance;constructor(t,e){this.caret=t,this.distance=e}getSliceIndices(){const{distance:t,caret:{offset:e}}=this,n=e+t;return n<e?[n,e]:[e,n]}getTextContent(){const[t,e]=this.getSliceIndices();return this.caret.origin.getTextContent().slice(t,e)}getTextContentSize(){return Math.abs(this.distance)}removeTextSlice(){const{caret:{origin:t,direction:e}}=this,[n,r]=this.getSliceIndices(),i=t.getTextContent();return hl(t.setTextContent(i.slice(0,n)+i.slice(r)),e,n)}}function Sl(t){return t instanceof Cl}function vl(t){return Tl(t,dl(zo(),t.direction))}function kl(t){return Tl(t,t)}function Tl(e,n){return e.direction!==n.direction&&t(265),new xl(e,n,e.direction)}function Nl(t){const{initial:e,hasNext:n,step:r,map:i}=t;let o=e;return{[Symbol.iterator](){return this},next(){if(!n(o))return{done:!0,value:void 0};const t={done:!1,value:i(o)};return o=r(o),t}}}function bl(e,n){const r=Ml(e.origin,n.origin);switch(null===r&&t(275,e.origin.getKey(),n.origin.getKey()),r.type){case"same":{const t="text"===e.type,r="text"===n.type;return t&&r?function(t,e){return Math.sign(t-e)}(e.offset,n.offset):e.type===n.type?0:t?-1:r?1:"child"===e.type?-1:1}case"ancestor":return"child"===e.type?-1:1;case"descendant":return"child"===n.type?1:-1;case"branch":return wl(r)}}function wl(t){const{a:e,b:n}=t,r=e.__key,i=n.__key;let o=e,s=n;for(;o&&s;o=o.getNextSibling(),s=s.getNextSibling()){if(o.__key===i)return-1;if(s.__key===r)return 1}return null===o?1:-1}function El(t,e){return e.is(t)}function Ol(t){return Pi(t)?[t.getLatest(),null]:[t.getParent(),t.getLatest()]}function Ml(e,n){if(e.is(n))return{commonAncestor:e,type:"same"};const r=new Map;for(let[t,n]=Ol(e);t;n=t,t=t.getParent())r.set(t,n);for(let[i,o]=Ol(n);i;o=i,i=i.getParent()){const s=r.get(i);if(void 0!==s)return null===s?(El(e,i)||t(276),{commonAncestor:i,type:"ancestor"}):null===o?(El(n,i)||t(277),{commonAncestor:i,type:"descendant"}):((Pi(s)||El(e,s))&&(Pi(o)||El(n,o))&&i.is(s.getParent())&&i.is(o.getParent())||t(278),{a:s,b:o,commonAncestor:i,type:"branch"})}return null}function Al(e,n){const{type:r,key:i,offset:o}=e,s=Ns(e.key);return"text"===r?(yr(s)||t(266,s.getType(),i),hl(s,n,o)):(Pi(s)||t(267,s.getType(),i),Ul(s,e.offset,n))}function Pl(e,n){const{origin:r,direction:i}=n,o="next"===i;ol(n)?e.set(r.getKey(),n.offset,"text"):ll(n)?yr(r)?e.set(r.getKey(),gl(r,i),"text"):e.set(r.getParentOrThrow().getKey(),r.getIndexWithinParent()+(o?1:0),"element"):(cl(n)&&Pi(r)||t(268),e.set(r.getKey(),o?0:r.getChildrenSize(),"element"))}function Dl(t){const e=$r(),n=wr(e)?e:Wr();return Fl(n,t),Bo(n),n}function Fl(t,e){Pl(t.anchor,e.anchor),Pl(t.focus,e.focus)}function Ll(t){const{anchor:e,focus:n}=t,r=Al(e,"next"),i=Al(n,"next"),o=bl(r,i)<=0?"next":"previous";return Tl(Jl(r,o),Jl(i,o))}function Il(t){const{direction:e,origin:n}=t,r=dl(n,el(e)).getNodeAtCaret();return r?dl(r,e):pl(n.getParentOrThrow(),e)}function Kl(t,e="root"){const n=[t];for(let r=cl(t)?t.getParentCaret(e):t.getSiblingCaret();null!==r;r=r.getParentCaret(e))n.push(Il(r));return n}function zl(t){return!!t&&t.origin.isAttached()}function Rl(e,n="removeEmptySlices"){if(e.isCollapsed())return e;const r="root",i="next";let o=n;const s=jl(e,i),l=Kl(s.anchor,r),c=Kl(s.focus.getFlipped(),r),a=new Set,u=[];for(const t of s.iterNodeCarets(r))if(cl(t))a.add(t.origin.getKey());else if(ll(t)){const{origin:e}=t;Pi(e)&&!a.has(e.getKey())||u.push(e)}for(const t of u)t.remove();for(const t of s.getTextSlices()){if(!t)continue;const{origin:e}=t.caret,n=e.getTextContentSize(),r=Il(dl(e,i)),s=e.getMode();if(Math.abs(t.distance)===n&&"removeEmptySlices"===o||"token"===s&&0!==t.distance)r.remove();else if(0!==t.distance){o="removeEmptySlices";let e=t.removeTextSlice();const n=t.caret.origin;if("segmented"===s){const t=e.origin,n=pr(t.getTextContent()).setStyle(t.getStyle()).setFormat(t.getFormat());r.replaceOrInsert(n),e=hl(n,i,e.offset)}n.is(l[0].origin)&&(l[0]=e),n.is(c[0].origin)&&(c[0]=e.getFlipped())}}let f,d;for(const t of l)if(zl(t)){f=Bl(t);break}for(const t of c)if(zl(t)){d=Bl(t);break}const h=function(t,e,n){if(!t||!e)return null;const r=t.getParentAtCaret(),i=e.getParentAtCaret();if(!r||!i)return null;const o=r.getParents().reverse();o.push(r);const s=i.getParents().reverse();s.push(i);const l=Math.min(o.length,s.length);let c;for(c=0;c<l&&o[c]===s[c];c++);const a=(t,e)=>{let n;for(let r=c;r<t.length;r++){const i=t[r];if(Ss(i))return;!n&&e(i)&&(n=i)}return n},u=a(o,Ks),f=u&&a(s,t=>n.has(t.getKey())&&Ks(t));return u&&f?[u,f]:null}(f,d,a);if(h){const[t,e]=h;pl(t,"previous").splice(0,e.getChildren());let n=e.getParent();for(e.remove(!0);n&&n.isEmpty();){const t=n;n=n.getParent(),t.remove(!0)}}const g=[f,d,...l,...c].find(zl);if(g){return kl(Jl(Bl(g),e.direction))}t(269,JSON.stringify(l.map(t=>t.origin.__key)))}function Bl(t){const e=function(t){let e=t;for(;cl(e);){const t=ml(e);if(!cl(t))break;e=t}return e}(t.getLatest()),{direction:n}=e;if(yr(e.origin))return ol(e)?e:hl(e.origin,n,n);const r=e.getAdjacentCaret();return ll(r)&&yr(r.origin)?hl(r.origin,n,el(n)):e}function Wl(t){return ol(t)&&t.offset!==gl(t.origin,t.direction)}function Jl(t,e){return t.direction===e?t:t.getFlipped()}function jl(t,e){return t.direction===e?t:Tl(Jl(t.focus,e),Jl(t.anchor,e))}function Ul(t,e,n){let r=pl(t,"next");for(let t=0;t<e;t++){const t=r.getAdjacentCaret();if(null===t)break;r=t}return Jl(r,n)}function $l(t,e="root"){let n=0,r=t,i=ml(r);for(;null===i;){if(n--,i=r.getParentCaret(e),!i)return null;r=i,i=ml(r)}return i&&[i,n]}function Vl(e){const{origin:n,offset:r,direction:i}=e;if(r===gl(n,i))return e.getSiblingCaret();if(r===gl(n,el(i)))return Il(e.getSiblingCaret());const[o]=n.splitText(r);return yr(o)||t(281),Jl(dl(o,"next"),i)}function Yl(t,e){return!0}function ql(t,{$copyElementNode:e=vs,$splitTextPointCaretNext:n=Vl,rootMode:r="shadowRoot",$shouldSplit:i=Yl}={}){if(ol(t))return n(t);const o=t.getParentCaret(r);if(o){const{origin:n}=o;if(cl(t)&&(!n.canBeEmpty()||!i(n,"first")))return Il(o);const r=function(t){const e=[];for(let n=t.getAdjacentCaret();n;n=n.getAdjacentCaret())e.push(n.origin);return e}(t);(r.length>0||n.canBeEmpty()&&i(n,"last"))&&o.insert(e(n).splice(0,0,r))}return o}function Hl(t){return t}function Gl(...t){return t}function Xl(t,e){return[t,e]}function Ql(t){return t}function Zl(t,e){if(!e||t===e)return t;for(const n in e)if(t[n]!==e[n])return{...t,...e};return t}function tc(...t){const e=[];for(const n of t)if(n&&"string"==typeof n)for(const[t]of n.matchAll(/\S+/g))e.push(t);return e}function ec(t,...e){const n=tc(...e);n.length>0&&t.classList.add(...n)}function nc(t,...e){const n=tc(...e);n.length>0&&t.classList.remove(...n)}function rc(...t){return()=>{for(let e=t.length-1;e>=0;e--)t[e]();t.length=0}}export{gs as $addUpdateTag,ks as $applyNodeReplacement,Al as $caretFromPoint,Ll as $caretRangeFromSelection,Js as $cloneWithProperties,js as $cloneWithPropertiesEphemeral,bl as $comparePointCaretNext,vs as $copyNode,Hs as $create,Qn as $createLineBreakNode,Jr as $createNodeSelection,Vi as $createParagraphNode,kr as $createPoint,Wr as $createRangeSelection,jr as $createRangeSelectionFromDom,Cr as $createTabNode,pr as $createTextNode,vl as $extendCaretToRange,Gs as $findMatchingParent,ml as $getAdjacentChildCaret,ls as $getAdjacentNode,$l as $getAdjacentSiblingOrParentSiblingCaret,Jl as $getCaretInDirection,Tl as $getCaretRange,jl as $getCaretRangeInDirection,Ar as $getCharacterOffsets,pl as $getChildCaret,Ul as $getChildCaretAtIndex,yl as $getChildCaretOrSelf,kl as $getCollapsedCaretRange,Ml as $getCommonAncestor,wl as $getCommonAncestorResultBranchOrder,zs as $getEditor,Lo as $getNearestNodeFromDOMNode,Cs as $getNearestRootOrShadowRoot,Po as $getNodeByKey,Ns as $getNodeByKeyOrThrow,Do as $getNodeFromDOMNode,Vr as $getPreviousSelection,zo as $getRoot,$r as $getSelection,dl as $getSiblingCaret,ot as $getState,st as $getStateChange,ei as $getTextContent,gl as $getTextNodeOffset,hl as $getTextPointCaret,_l as $getTextPointCaretSlice,ut as $getWritableNodeState,ps as $hasAncestor,hs as $hasUpdateTag,ti as $insertNodes,Rr as $isBlockElementNode,cl as $isChildCaret,Li as $isDecoratorNode,Wi as $isEditorState,Pi as $isElementNode,Wl as $isExtendableTextPointCaret,xs as $isInlineElementOrDecoratorNode,bo as $isLeafNode,Zn as $isLineBreakNode,sl as $isNodeCaret,Or as $isNodeSelection,Yi as $isParagraphNode,wr as $isRangeSelection,Ki as $isRootNode,Ss as $isRootOrShadowRoot,ll as $isSiblingCaret,Sr as $isTabNode,yr as $isTextNode,ol as $isTextPointCaret,Sl as $isTextPointCaretSlice,So as $isTokenOrSegmented,Co as $isTokenOrTab,os as $nodesOfType,Bl as $normalizeCaret,Ct as $normalizeSelection__EXPERIMENTAL,_s as $onUpdate,Si as $parseSerializedNode,Rl as $removeTextFromCaretRange,Il as $rewindSiblingCaret,ns as $selectAll,Mo as $setCompositionKey,Pl as $setPointFromCaret,Bo as $setSelection,Dl as $setSelectionFromCaretRange,lt as $setState,ql as $splitAtPointCaretNext,Ms as $splitNode,Fl as $updateRangeSelectionFromCaretRange,ji as ArtificialNode__DO_NOT_USE,se as BEFORE_INPUT_COMMAND,Ge as BLUR_COMMAND,Ye as CAN_REDO_COMMAND,qe as CAN_UNDO_COMMAND,$e as CLEAR_EDITOR_COMMAND,Ve as CLEAR_HISTORY_COMMAND,oe as CLICK_COMMAND,jn as COLLABORATION_TAG,Qi as COMMAND_PRIORITY_CRITICAL,qi as COMMAND_PRIORITY_EDITOR,Xi as COMMAND_PRIORITY_HIGH,Hi as COMMAND_PRIORITY_LOW,Gi as COMMAND_PRIORITY_NORMAL,ae as COMPOSITION_END_COMMAND,Hn as COMPOSITION_END_TAG,ce as COMPOSITION_START_COMMAND,qn as COMPOSITION_START_TAG,he as CONTROLLED_TEXT_INSERTION_COMMAND,Je as COPY_COMMAND,je as CUT_COMMAND,ue as DELETE_CHARACTER_COMMAND,ye as DELETE_LINE_COMMAND,pe as DELETE_WORD_COMMAND,We as DRAGEND_COMMAND,Be as DRAGOVER_COMMAND,Re as DRAGSTART_COMMAND,Ke as DROP_COMMAND,Fi as DecoratorNode,Ai as ElementNode,He as FOCUS_COMMAND,ze as FORMAT_ELEMENT_COMMAND,me as FORMAT_TEXT_COMMAND,Rn as HISTORIC_TAG,Wn as HISTORY_MERGE_TAG,Bn as HISTORY_PUSH_TAG,Le as INDENT_CONTENT_COMMAND,le as INPUT_COMMAND,fe as INSERT_LINE_BREAK_COMMAND,de as INSERT_PARAGRAPH_COMMAND,Fe as INSERT_TAB_COMMAND,Ks as INTERNAL_$isBlock,T as IS_ALL_FORMATTING,p as IS_BOLD,C as IS_CODE,k as IS_HIGHLIGHT,y as IS_ITALIC,m as IS_STRIKETHROUGH,S as IS_SUBSCRIPT,v as IS_SUPERSCRIPT,x as IS_UNDERLINE,we as KEY_ARROW_DOWN_COMMAND,Te as KEY_ARROW_LEFT_COMMAND,ve as KEY_ARROW_RIGHT_COMMAND,be as KEY_ARROW_UP_COMMAND,Me as KEY_BACKSPACE_COMMAND,Pe as KEY_DELETE_COMMAND,Se as KEY_DOWN_COMMAND,Ee as KEY_ENTER_COMMAND,Ae as KEY_ESCAPE_COMMAND,Xe as KEY_MODIFIER_COMMAND,Oe as KEY_SPACE_COMMAND,De as KEY_TAB_COMMAND,Gn as LineBreakNode,ke as MOVE_TO_END,Ne as MOVE_TO_START,U as NODE_STATE_KEY,Ie as OUTDENT_CONTENT_COMMAND,ge as PASTE_COMMAND,Jn as PASTE_TAG,Ui as ParagraphNode,Ce as REDO_COMMAND,_e as REMOVE_TEXT_COMMAND,Ii as RootNode,re as SELECTION_CHANGE_COMMAND,ie as SELECTION_INSERT_CLIPBOARD_NODES_COMMAND,Ue as SELECT_ALL_COMMAND,Un as SKIP_COLLAB_TAG,Vn as SKIP_DOM_SELECTION_TAG,$n as SKIP_SCROLL_INTO_VIEW_TAG,Yn as SKIP_SELECTION_FOCUS_TAG,z as TEXT_TYPE_TO_FORMAT,xr as TabNode,lr as TextNode,xe as UNDO_COMMAND,ec as addClassNamesToElement,Ln as buildImportMap,Gl as configExtension,ne as createCommand,eo as createEditor,ct as createSharedNodeState,it as createState,Xl as declarePeerDependency,Hl as defineExtension,el as flipDirection,ds as getDOMOwnerDocument,Es as getDOMSelection,Os as getDOMSelectionFromTarget,To as getDOMTextNode,mo as getEditorPropertyFromDOMNode,yo as getNearestEditorFromDOMNode,uo as getRegisteredNode,ao as getRegisteredNodeOrThrow,qs as getStaticNodeConfig,xo as getTextDirection,to as getTransformSetFromKlass,Is as isBlockDomNode,fi as isCurrentlyReadOnlyMode,ko as isDOMDocumentNode,Ds as isDOMNode,vo as isDOMTextNode,Vs as isDOMUnmanaged,Fs as isDocumentFragment,Xo as isExactShortcutMatch,As as isHTMLAnchorElement,Ps as isHTMLElement,Ls as isInlineDomNode,po as isLexicalEditor,Go as isModifierMatch,go as isSelectionCapturedInDecoratorInput,_o as isSelectionWithinEditor,Nl as makeStepwiseIterator,rc as mergeRegister,tc as normalizeClassNames,nc as removeClassNamesFromElement,Eo as removeFromParent,co as resetRandomKey,Ql as safeCast,$s as setDOMUnmanaged,Us as setNodeIndentFromDOM,Zl as shallowMergeConfig,No as toggleTextFormatType};
82
+ +function t(t,...e){const n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",t);for(const t of e)r.append("v",t);throw n.search=r.toString(),Error(`Minified Lexical error #${t}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function e(t,...e){const n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",t);for(const t of e)r.append("v",t);n.search=r.toString(),console.warn(`Minified Lexical warning #${t}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}const n="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,r=n&&"documentMode"in document?document.documentMode:null,i=n&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),o=n&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),s=!(!n||!("InputEvent"in window)||r)&&"getTargetRanges"in new window.InputEvent("input"),l=n&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),c=n&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,a=n&&/Android/.test(navigator.userAgent),u=n&&/^(?=.*Chrome).*/i.test(navigator.userAgent),f=n&&a&&u,d=n&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&i&&!u,h=0,g=1,_=2,p=1,y=2,m=4,x=8,C=16,S=32,v=64,k=128,T=2047,N=1,b=2,w=3,E=4,O=5,M=6,A=l||c||d?"\xa0":"\u200b",P="\n\n",D=o?"\xa0":A,F="\u0591-\u07ff\ufb1d-\ufdfd\ufe70-\ufefc",L="A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u02b8\u0300-\u0590\u0800-\u1fff\u200e\u2c00-\ufb1c\ufe00-\ufe6f\ufefd-\uffff",I=new RegExp("^[^"+L+"]*["+F+"]"),K=new RegExp("^[^"+F+"]*["+L+"]"),z={bold:1,capitalize:1024,code:16,highlight:k,italic:2,lowercase:256,strikethrough:4,subscript:32,superscript:64,underline:8,uppercase:512},R={directionless:1,unmergeable:2},B={center:2,end:6,justify:4,left:1,right:3,start:5},W={[b]:"center",[M]:"end",[E]:"justify",[N]:"left",[w]:"right",[O]:"start"},J={normal:0,segmented:2,token:1},j={[h]:"normal",[_]:"segmented",[g]:"token"},U="$",$="$config";function V(t,e,n,r,i,o){let s=t.getFirstChild();for(;null!==s;){const t=s.__key;s.__parent===e&&(Pi(s)&&V(s,t,n,r,i,o),n.has(t)||o.delete(t),i.push(t)),s=s.getNextSibling()}}let Y=!1,q=0;function H(t){q=t.timeStamp}function G(t,e,n){const r="BR"===t.nodeName,i=e.__lexicalLineBreak;return i&&(t===i||r&&t.previousSibling===i)||r&&void 0!==Fo(t,n)}function X(t,e,n){const r=Es(ms(n));let i=null,o=null;null!==r&&r.anchorNode===t&&(i=r.anchorOffset,o=r.focusOffset);const s=t.nodeValue;null!==s&&Yo(e,s,i,o,!1)}function Q(t,e,n){if(wr(t)){const e=t.anchor.getNode();if(e.is(n)&&t.format!==e.getFormat())return!1}return vo(e)&&n.isAttached()}function Z(t,e,n,r){for(let i=t;i&&!Vs(i);i=fs(i)){const t=Fo(i,e);if(void 0!==t){const e=Po(t,n);if(e)return Li(e)||!Ps(i)?void 0:[i,e]}else if(i===r)return[r,Ro(n)]}}function tt(t,e,n){Y=!0;const r=performance.now()-q>100;try{Ei(t,()=>{const i=$r()||function(t){return t.getEditorState().read(()=>{const t=$r();return null!==t?t.clone():null})}(t),s=new Map,l=t.getRootElement(),c=t._editorState,a=t._blockCursorElement;let u=!1,f="";for(let n=0;n<e.length;n++){const d=e[n],h=d.type,g=d.target,_=Z(g,t,c,l);if(!_)continue;const[p,y]=_;if("characterData"===h)r&&yr(y)&&vo(g)&&Q(i,g,y)&&X(g,y,t);else if("childList"===h){u=!0;const e=d.addedNodes;for(let n=0;n<e.length;n++){const r=e[n],i=Do(r),s=r.parentNode;if(null!=s&&r!==a&&null===i&&!G(r,s,t)){if(o){const t=(Ps(r)?r.innerText:null)||r.nodeValue;t&&(f+=t)}s.removeChild(r)}}const n=d.removedNodes,r=n.length;if(r>0){let e=0;for(let i=0;i<r;i++){const r=n[i];(G(r,g,t)||a===r)&&(g.appendChild(r),e++)}r!==e&&s.set(p,y)}}}if(s.size>0)for(const[e,n]of s)n.reconcileObservedMutation(e,t);const d=n.takeRecords();if(d.length>0){for(let e=0;e<d.length;e++){const n=d[e],r=n.addedNodes,i=n.target;for(let e=0;e<r.length;e++){const n=r[e],o=n.parentNode;null==o||"BR"!==n.nodeName||G(n,i,t)||o.removeChild(n)}}n.takeRecords()}null!==i&&(u&&Bo(i),o&&cs(t)&&i.insertRawText(f))})}finally{Y=!1}}function et(t){const e=t._observer;if(null!==e){tt(t,e.takeRecords(),e)}}function nt(t){!function(t){0===q&&ms(t).addEventListener("textInput",H,!0)}(t),t._observer=new MutationObserver((e,n)=>{tt(t,e,n)})}class rt{key;parse;unparse;isEqual;defaultValue;resetOnCopyNode;constructor(t,e){this.key=t,this.parse=e.parse.bind(e),this.unparse=(e.unparse||ht).bind(e),this.isEqual=(e.isEqual||Object.is).bind(e),this.defaultValue=this.parse(void 0),this.resetOnCopyNode=e.resetOnCopyNode||!1}}function it(t,e){return new rt(t,e)}function ot(t,e,n="latest"){const r=("latest"===n?t.getLatest():t).__state;return r?r.getValue(e):e.defaultValue}function st(t,e,n){const r=ot(t,n,"direct"),i=ot(e,n,"direct");return n.isEqual(r,i)?null:[r,i]}function lt(t,e,n){let r;if(di(),"function"==typeof n){const i=t.getLatest(),o=ot(i,e);if(r=n(o),e.isEqual(o,r))return i}else r=n;const i=t.getWritable();return ut(i).updateFromKnown(e,r),i}function ct(t){const e=new Map,n=new Set;for(let r="function"==typeof t?t:t.replace;r.prototype&&void 0!==r.prototype.getType;r=Object.getPrototypeOf(r)){const{ownNodeConfig:t}=qs(r);if(t&&t.stateConfigs)for(const r of t.stateConfigs){let t;"stateConfig"in r?(t=r.stateConfig,r.flat&&n.add(t.key)):t=r,e.set(t.key,t)}}return{flatKeys:n,sharedConfigMap:e}}class at{node;knownState;unknownState;sharedNodeState;size;constructor(t,e,n=void 0,r=new Map,i=void 0){this.node=t,this.sharedNodeState=e,this.unknownState=n,this.knownState=r;const{sharedConfigMap:o}=this.sharedNodeState,s=void 0!==i?i:function(t,e,n){let r=n.size;if(e)for(const i in e){const e=t.get(i);e&&n.has(e)||r++}return r}(o,n,r);this.size=s}getValue(t){const e=this.knownState.get(t);if(void 0!==e)return e;this.sharedNodeState.sharedConfigMap.set(t.key,t);let n=t.defaultValue;if(this.unknownState&&t.key in this.unknownState){const e=this.unknownState[t.key];void 0!==e&&(n=t.parse(e)),this.updateFromKnown(t,n)}return n}getInternalState(){return[this.unknownState,this.knownState]}toJSON(){const t={...this.unknownState},e={};for(const[e,n]of this.knownState)e.isEqual(n,e.defaultValue)?delete t[e.key]:t[e.key]=e.unparse(n);for(const n of this.sharedNodeState.flatKeys)n in t&&(e[n]=t[n],delete t[n]);return dt(t)&&(e.$=t),e}getWritable(t){if(this.node===t)return this;const{sharedNodeState:e,unknownState:n}=this,r=new Map(this.knownState);return new at(t,e,function(t,e,n){let r;if(n)for(const[i,o]of Object.entries(n)){const n=t.get(i);n?e.has(n)||e.set(n,n.parse(o)):(r=r||{},r[i]=o)}return r}(e.sharedConfigMap,r,n),r,this.size)}resetOnCopyNode(){for(const t of this.knownState.keys())t.resetOnCopyNode&&this.knownState.set(t,t.defaultValue);return this}updateFromKnown(t,e){const n=t.key;this.sharedNodeState.sharedConfigMap.set(n,t);const{knownState:r,unknownState:i}=this;r.has(t)||i&&n in i||(i&&(delete i[n],this.unknownState=dt(i)),this.size++),r.set(t,e)}updateFromUnknown(t,e){const n=this.sharedNodeState.sharedConfigMap.get(t);n?this.updateFromKnown(n,n.parse(e)):(this.unknownState=this.unknownState||{},t in this.unknownState||this.size++,this.unknownState[t]=e)}updateFromJSON(t){const{knownState:e}=this;for(const t of e.keys())e.set(t,t.defaultValue);if(this.size=e.size,this.unknownState=void 0,t)for(const[e,n]of Object.entries(t))this.updateFromUnknown(e,n)}}function ut(t){const e=t.getWritable(),n=e.__state?e.__state.getWritable(e):new at(e,ft(e));return e.__state=n,n}function ft(t){return t.__state?t.__state.sharedNodeState:ao(zs(),t.getType()).sharedNodeState}function dt(t){if(t)for(const e in t)return t}function ht(t){return t}function gt(t,e,n){for(const[r,i]of e.knownState){if(t.has(r.key))continue;t.add(r.key);const e=n?n.getValue(r):r.defaultValue;if(e!==i&&!r.isEqual(e,i))return!0}return!1}function _t(t,e,n){const{unknownState:r}=e,i=n?n.unknownState:void 0;if(r)for(const[e,n]of Object.entries(r)){if(t.has(e))continue;t.add(e);if(n!==(i?i[e]:void 0))return!0}return!1}function pt(t,e){const n=t.__state;return n&&n.node===t?n.getWritable(e):n}function yt(t,e){const n=t.__mode,r=t.__format,i=t.__style,o=e.__mode,s=e.__format,l=e.__style,c=t.__state,a=e.__state;return(null===n||n===o)&&(null===r||r===s)&&(null===i||i===l)&&(null===t.__state||c===a||function(t,e){if(t===e)return!0;if(t&&e&&t.size!==e.size)return!1;const n=new Set;return!(t&&gt(n,t,e)||e&&gt(n,e,t)||t&&_t(n,t,e)||e&&_t(n,e,t))}(c,a))}function mt(t,e){const n=t.mergeWithSibling(e),r=_i()._normalizedNodes;return r.add(t.__key),r.add(e.__key),n}function xt(t){let e,n,r=t;if(""!==r.__text||!r.isSimpleText()||r.isUnmergeable()){for(;null!==(e=r.getPreviousSibling())&&yr(e)&&e.isSimpleText()&&!e.isUnmergeable();){if(""!==e.__text){if(yt(e,r)){r=mt(e,r);break}break}e.remove()}for(;null!==(n=r.getNextSibling())&&yr(n)&&n.isSimpleText()&&!n.isUnmergeable();){if(""!==n.__text){if(yt(r,n)){r=mt(r,n);break}break}n.remove()}}else r.remove()}function Ct(t){return St(t.anchor),St(t.focus),t}function St(t){for(;"element"===t.type;){const e=t.getNode(),n=t.offset;let r,i;if(n===e.getChildrenSize()?(r=e.getChildAtIndex(n-1),i=!0):(r=e.getChildAtIndex(n),i=!1),yr(r)){t.set(r.__key,i?r.getTextContentSize():0,"text",!0);break}if(!Pi(r))break;t.set(r.__key,i?r.getChildrenSize():0,"element",!0)}}let vt,kt,Tt,Nt,bt,wt,Et,Ot,Mt,At,Pt="",Dt=null,Ft=null,Lt=!1,It=!1;function Kt(t,e){const n=Et.get(t);if(null!==e){const n=ee(t);n.parentNode===e&&e.removeChild(n)}if(Ot.has(t)||kt._keyToDOMMap.delete(t),Pi(n)){const t=Ht(n,Et);zt(t,0,t.length-1,null)}void 0!==n&&is(At,Tt,Nt,n,"destroyed")}function zt(t,e,n,r){for(let i=e;i<=n;++i){const e=t[i];void 0!==e&&Kt(e,r)}}function Rt(t,e){t.setProperty("text-align",e)}const Bt="40px";function Wt(t,e){const n=vt.theme.indent;if("string"==typeof n){const r=t.classList.contains(n);e>0&&!r?t.classList.add(n):e<1&&r&&t.classList.remove(n)}if(0===e)return void t.style.setProperty("padding-inline-start","");const r=getComputedStyle(kt._rootElement||t).getPropertyValue("--lexical-indent-base-value")||Bt;t.style.setProperty("padding-inline-start",`calc(${e} * ${r})`)}function Jt(t,e){const n=t.style;0===e?Rt(n,""):1===e?Rt(n,"left"):2===e?Rt(n,"center"):3===e?Rt(n,"right"):4===e?Rt(n,"justify"):5===e?Rt(n,"start"):6===e&&Rt(n,"end")}function jt(t,e){const n=function(t){const e=t.__dir;if(null!==e)return e;if(Ki(t))return null;const n=t.getParentOrThrow();return Ki(n)&&null===n.__dir?"auto":null}(e);null!==n?t.dir=n:t.removeAttribute("dir")}function Ut(e,n){const r=Ot.get(e);void 0===r&&t(60);const i=r.createDOM(vt,kt);if(function(t,e,n){const r=n._keyToDOMMap;(function(t,e,n){const r=`__lexicalKey_${e._key}`;t[r]=n})(e,n,t),r.set(t,e)}(e,i,kt),yr(r)?i.setAttribute("data-lexical-text","true"):Li(r)&&i.setAttribute("data-lexical-decorator","true"),Pi(r)){const t=r.__indent,e=r.__size;if(jt(i,r),0!==t&&Wt(i,t),0!==e){const t=e-1;$t(Ht(r,Ot),r,0,t,r.getDOMSlot(i))}const n=r.__format;0!==n&&Jt(i,n),r.isInline()||Yt(null,r,i)}else{const t=r.getTextContent();if(Li(r)){const t=r.decorate(kt,vt);null!==t&&Xt(e,t),i.contentEditable="false"}Pt+=t}return null!==n&&n.insertChild(i),is(At,Tt,Nt,r,"created"),i}function $t(t,e,n,r,i){const o=Pt;Pt="";let s=n;for(;s<=r;++s){Ut(t[s],i);const e=Ot.get(t[s]);null!==e&&yr(e)?null===Dt&&(Dt=e.getFormat(),Ft=e.getStyle()):Pi(e)&&s<r&&!e.isInline()&&(Pt+=P)}i.element.__lexicalTextContent=Pt,Pt=o+Pt}function Vt(t,e){if(t){const n=t.__last;if(n){const t=e.get(n);if(t)return Zn(t)?"line-break":Li(t)&&t.isInline()?"decorator":null}return"empty"}return null}function Yt(t,e,n){const r=Vt(t,Et),i=Vt(e,Ot);r!==i&&e.getDOMSlot(n).setManagedLineBreak(i)}function qt(e,n,r){var i;Dt=null,Ft=null,function(e,n,r){const i=Pt,o=e.__size,s=n.__size;Pt="";const l=r.element;if(1===o&&1===s){const t=e.__first,r=n.__first;if(t===r)Gt(t,l);else{const e=ee(t),n=Ut(r,null);try{l.replaceChild(n,e)}catch(i){if("object"==typeof i&&null!=i){const o=`${i.toString()} Parent: ${l.tagName}, new child: {tag: ${n.tagName} key: ${r}}, old child: {tag: ${e.tagName}, key: ${t}}.`;throw new Error(o)}throw i}Kt(t,null)}const i=Ot.get(r);yr(i)&&null===Dt&&(Dt=i.getFormat(),Ft=i.getStyle())}else{const i=Ht(e,Et),c=Ht(n,Ot);if(i.length!==o&&t(227),c.length!==s&&t(228),0===o)0!==s&&$t(c,0,0,s-1,r);else if(0===s){if(0!==o){const t=null==r.after&&null==r.before&&null==r.element.__lexicalLineBreak;zt(i,0,o-1,t?null:l),t&&(l.textContent="")}}else!function(t,e,n,r,i,o){const s=r-1,l=i-1;let c,a,u=o.getFirstChild(),f=0,d=0;for(;f<=s&&d<=l;){const t=e[f],r=n[d];if(t===r)u=Qt(Gt(r,o.element)),f++,d++;else{if(void 0===a&&(a=Zt(n,d)),void 0===c)c=Zt(e,f);else if(!c.has(t)){f++;continue}if(!a.has(t)){u=Qt(ee(t)),Kt(t,o.element),f++,c.delete(t);continue}if(c.has(r)){const t=us(kt,r);t!==u&&o.withBefore(u).insertChild(t),u=Qt(Gt(r,o.element)),f++,d++}else Ut(r,o.withBefore(u)),d++}const i=Ot.get(r);null!==i&&yr(i)?null===Dt&&(Dt=i.getFormat(),Ft=i.getStyle()):Pi(i)&&d<=l&&!i.isInline()&&(Pt+=P)}const h=f>s,g=d>l;if(h&&!g){const t=n[l+1],e=void 0===t?null:kt.getElementByKey(t);$t(n,0,d,l,o.withBefore(e))}else g&&!h&&zt(e,f,s,o.element)}(0,i,c,o,s,r)}l.__lexicalTextContent=Pt,Pt=i+Pt}(e,n,n.getDOMSlot(r)),i=n,null==Dt||Dt===i.__textFormat||It||i.setTextFormat(Dt),function(t){null==Ft||Ft===t.__textStyle||It||t.setTextStyle(Ft)}(n)}function Ht(e,n){const r=[];let i=e.__first;for(;null!==i;){const e=n.get(i);void 0===e&&t(101),r.push(i),i=e.__next}return r}function Gt(e,n){const r=Et.get(e);let i=Ot.get(e);void 0!==r&&void 0!==i||t(61);const o=Lt||wt.has(e)||bt.has(e),s=us(kt,e);if(r===i&&!o){let t;if(Pi(r)){const e=s.__lexicalTextContent;"string"==typeof e?t=e:(t=r.getTextContent(),s.__lexicalTextContent=t)}else t=r.getTextContent();return Pt+=t,s}if(r!==i&&o&&is(At,Tt,Nt,i,"updated"),i.updateDOM(r,s,vt)){const r=Ut(e,null);return null===n&&t(62),n.replaceChild(r,s),Kt(e,null),r}if(Pi(r)){Pi(i)||t(334,e);const n=i.__indent;(Lt||n!==r.__indent)&&Wt(s,n);const l=i.__format;if((Lt||l!==r.__format)&&Jt(s,l),o)qt(r,i,s),Ki(i)||i.isInline()||Yt(r,i,s);else{const t=s.__lexicalTextContent;let e;"string"==typeof t?e=t:(e=r.getTextContent(),s.__lexicalTextContent=e),Pt+=e}if((Lt||i.__dir!==r.__dir)&&(jt(s,i),Ki(i)&&!Lt))for(const t of i.getChildren())if(Pi(t)){jt(us(kt,t.getKey()),t)}}else{const t=i.getTextContent();if(Li(i)){const t=i.decorate(kt,vt);null!==t&&Xt(e,t)}Pt+=t}if(!It&&Ki(i)&&i.__cachedText!==Pt){const t=i.getWritable();t.__cachedText=Pt,i=t}return s}function Xt(t,e){let n=kt._pendingDecorators;const r=kt._decorators;if(null===n){if(r[t]===e)return;n=Io(kt)}n[t]=e}function Qt(t){let e=t.nextSibling;return null!==e&&e===kt._blockCursorElement&&(e=e.nextSibling),e}function Zt(t,e){const n=new Set;for(let r=e;r<t.length;r++)n.add(t[r]);return n}function te(t,e,n,r,i,o){Pt="",Lt=2===r,kt=n,vt=n._config,Tt=n._nodes,Nt=kt._listeners.mutation,bt=i,wt=o,Et=t._nodeMap,Ot=e._nodeMap,It=e._readOnly,Mt=new Map(n._keyToDOMMap);const s=new Map;return At=s,Gt("root",null),kt=void 0,Tt=void 0,bt=void 0,wt=void 0,Et=void 0,Ot=void 0,vt=void 0,Mt=void 0,At=void 0,s}function ee(e){const n=Mt.get(e);return void 0===n&&t(75,e),n}function ne(t){return{type:t}}const re=ne("SELECTION_CHANGE_COMMAND"),ie=ne("SELECTION_INSERT_CLIPBOARD_NODES_COMMAND"),oe=ne("CLICK_COMMAND"),se=ne("BEFORE_INPUT_COMMAND"),le=ne("INPUT_COMMAND"),ce=ne("COMPOSITION_START_COMMAND"),ae=ne("COMPOSITION_END_COMMAND"),ue=ne("DELETE_CHARACTER_COMMAND"),fe=ne("INSERT_LINE_BREAK_COMMAND"),de=ne("INSERT_PARAGRAPH_COMMAND"),he=ne("CONTROLLED_TEXT_INSERTION_COMMAND"),ge=ne("PASTE_COMMAND"),_e=ne("REMOVE_TEXT_COMMAND"),pe=ne("DELETE_WORD_COMMAND"),ye=ne("DELETE_LINE_COMMAND"),me=ne("FORMAT_TEXT_COMMAND"),xe=ne("UNDO_COMMAND"),Ce=ne("REDO_COMMAND"),Se=ne("KEYDOWN_COMMAND"),ve=ne("KEY_ARROW_RIGHT_COMMAND"),ke=ne("MOVE_TO_END"),Te=ne("KEY_ARROW_LEFT_COMMAND"),Ne=ne("MOVE_TO_START"),be=ne("KEY_ARROW_UP_COMMAND"),we=ne("KEY_ARROW_DOWN_COMMAND"),Ee=ne("KEY_ENTER_COMMAND"),Oe=ne("KEY_SPACE_COMMAND"),Me=ne("KEY_BACKSPACE_COMMAND"),Ae=ne("KEY_ESCAPE_COMMAND"),Pe=ne("KEY_DELETE_COMMAND"),De=ne("KEY_TAB_COMMAND"),Fe=ne("INSERT_TAB_COMMAND"),Le=ne("INDENT_CONTENT_COMMAND"),Ie=ne("OUTDENT_CONTENT_COMMAND"),Ke=ne("DROP_COMMAND"),ze=ne("FORMAT_ELEMENT_COMMAND"),Re=ne("DRAGSTART_COMMAND"),Be=ne("DRAGOVER_COMMAND"),We=ne("DRAGEND_COMMAND"),Je=ne("COPY_COMMAND"),je=ne("CUT_COMMAND"),Ue=ne("SELECT_ALL_COMMAND"),$e=ne("CLEAR_EDITOR_COMMAND"),Ve=ne("CLEAR_HISTORY_COMMAND"),Ye=ne("CAN_REDO_COMMAND"),qe=ne("CAN_UNDO_COMMAND"),He=ne("FOCUS_COMMAND"),Ge=ne("BLUR_COMMAND"),Xe=ne("KEY_MODIFIER_COMMAND"),Qe=Object.freeze({}),Ze=[["keydown",function(t,e){if(tn=t.timeStamp,en=t.key,e.isComposing())return;as(e,Se,t)}],["pointerdown",function(t,e){const n=t.target,r=t.pointerType;Ds(n)&&"touch"!==r&&"pen"!==r&&0===t.button&&Ei(e,()=>{ho(n)||(cn=!0)})}],["compositionstart",function(t,e){as(e,ce,t)}],["compositionend",function(t,e){o?un=!0:c||!l&&!d?as(e,ae,t):(fn=!0,dn=t.data)}],["input",function(t,e){t.stopPropagation(),Ei(e,()=>{e.dispatchCommand(le,t)},{event:t}),rn=null}],["click",function(t,e){Ei(e,()=>{const n=$r(),r=Es(ms(e)),i=Vr();if(r)if(wr(n)){const e=n.anchor,o=e.getNode();if("element"===e.type&&0===e.offset&&n.isCollapsed()&&!Ki(o)&&1===zo().getChildrenSize()&&o.getTopLevelElementOrThrow().isEmpty()&&null!==i&&n.is(i))r.removeAllRanges(),n.dirty=!0;else if(3===t.detail&&!n.isCollapsed()){if(o!==n.focus.getNode()){const t=Gs(o,t=>Pi(t)&&!t.isInline());Pi(t)&&t.select(0)}}}else if("touch"===t.pointerType||"pen"===t.pointerType){const n=r.anchorNode;if(Ps(n)||vo(n)){Bo(Ur(i,r,e,t))}}as(e,oe,t)})}],["cut",Qe],["copy",Qe],["dragstart",Qe],["dragover",Qe],["dragend",Qe],["paste",Qe],["focus",Qe],["blur",Qe],["drop",Qe]];s&&Ze.push(["beforeinput",(t,e)=>function(t,e){const n=t.inputType;if("deleteCompositionText"===n||o&&cs(e))return;if("insertCompositionText"===n)return;as(e,se,t)}(t,e)]);let tn=0,en=null,nn=0,rn=null;const on=new WeakMap,sn=new WeakMap;let ln=!1,cn=!1,an=!1,un=!1,fn=!1,dn="",hn=null,gn=[0,"",0,"root",0];function _n(t,e,n,r,i){const o=t.anchor,l=t.focus,c=o.getNode(),a=_i(),u=Es(ms(a)),f=null!==u?u.anchorNode:null,d=o.key,h=a.getElementByKey(d),g=n.length;return d!==l.key||!yr(c)||(!i&&(!s||nn<r+50)||c.isDirty()&&g<2||Jo(n))&&o.offset!==l.offset&&!c.isComposing()||So(c)||c.isDirty()&&g>1||(i||!s)&&null!==h&&!c.isComposing()&&f!==To(h)||null!==u&&null!==e&&(!e.collapsed||e.startContainer!==u.anchorNode||e.startOffset!==u.anchorOffset)||!c.isComposing()&&(c.getFormat()!==t.format||c.getStyle()!==t.style)||function(t,e){if(e.isSegmented())return!0;if(!t.isCollapsed())return!1;const n=t.anchor.offset,r=e.getParentOrThrow(),i=Co(e);return 0===n?!e.canInsertTextBefore()||!r.canInsertTextBefore()&&!e.isComposing()||i||function(t){const e=t.getPreviousSibling();return(yr(e)||Pi(e)&&e.isInline())&&!e.canInsertTextAfter()}(e):n===e.getTextContentSize()&&(!e.canInsertTextAfter()||!r.canInsertTextAfter()&&!e.isComposing()||i)}(t,c)}function pn(t,e){return vo(t)&&null!==t.nodeValue&&0!==e&&e!==t.nodeValue.length}function yn(e,n,r){const{anchorNode:i,anchorOffset:o,focusNode:s,focusOffset:l}=e;ln&&(ln=!1,pn(i,o)&&pn(s,l)&&!hn)||Ei(n,()=>{if(!r)return void Bo(null);if(!_o(n,i,s))return;let c=$r();if(hn&&wr(c)&&c.isCollapsed()){const t=c.anchor,e=hn.anchor;(t.key===e.key&&t.offset===e.offset+1||1===t.offset&&e.getNode().is(t.getNode().getPreviousSibling()))&&(c=hn.clone(),Bo(c))}if(hn=null,wr(c)){const r=c.anchor,i=r.getNode();if(c.isCollapsed()){"Range"===e.type&&e.anchorNode===e.focusNode&&(c.dirty=!0);const o=ms(n).event,s=o?o.timeStamp:performance.now(),[l,a,u,f,d]=gn,h=zo(),g=!1===n.isComposing()&&""===h.getTextContent();if(s<d+200&&r.offset===u&&r.key===f)mn(c,l,a);else if("text"===r.type)yr(i)||t(141),xn(c,i);else if("element"===r.type&&!g){Pi(i)||t(259);const e=r.getNode();e.isEmpty()?function(t,e){const n=e.getTextFormat(),r=e.getTextStyle();mn(t,n,r)}(c,e):mn(c,c.format,"")}}else{const t=r.key,e=c.focus.key,n=c.getNodes(),i=n.length,s=c.isBackward(),a=s?l:o,u=s?o:l,f=s?e:t,d=s?t:e;let h=2047,g=!1;for(let t=0;t<i;t++){const e=n[t],r=e.getTextContentSize();if(yr(e)&&0!==r&&!(0===t&&e.__key===f&&a===r||t===i-1&&e.__key===d&&0===u)&&(g=!0,h&=e.getFormat(),0===h))break}c.format=g?h:0}}as(n,re,void 0)})}function mn(t,e,n){t.format===e&&t.style===n||(t.format=e,t.style=n,t.dirty=!0)}function xn(t,e){mn(t,e.getFormat(),e.getStyle())}function Cn(t){if(!t.getTargetRanges)return null;const e=t.getTargetRanges();return 0===e.length?null:e[0]}function Sn(e){const n=e.inputType,r=Cn(e),i=_i(),o=$r();if("deleteContentBackward"===n){if(null===o){const t=Vr();if(!wr(t))return!0;Bo(t.clone())}if(wr(o)){const n=o.anchor.key===o.focus.key;if(s=e.timeStamp,"MediaLast"===en&&s<tn+30&&i.isComposing()&&n){if(Mo(null),tn=0,setTimeout(()=>{Ei(i,()=>{Mo(null)})},30),wr(o)){const e=o.anchor.getNode();e.markDirty(),yr(e)||t(142),xn(o,e)}}else{Mo(null),e.preventDefault();const t=o.anchor.getNode(),r=t.getTextContent(),s=t.canInsertTextAfter(),l=0===o.anchor.offset&&o.focus.offset===r.length;let c=f&&n&&!l&&s;if(c&&o.isCollapsed()&&(c=!Li(ls(o.anchor,!0))),!c){as(i,ue,!0);const t=$r();f&&wr(t)&&t.isCollapsed()&&(hn=t,setTimeout(()=>hn=null))}}return!0}}var s;if(!wr(o))return!0;const l=e.data;null!==rn&&Vo(!1,i,rn),o.dirty&&null===rn||!o.isCollapsed()||Ki(o.anchor.getNode())||null===r||o.applyDOMRange(r),rn=null;const a=o.anchor,u=o.focus,d=a.getNode(),h=u.getNode();if("insertText"===n||"insertTranspose"===n){if("\n"===l)e.preventDefault(),as(i,fe,!1);else if(l===P)e.preventDefault(),as(i,de,void 0);else if(null==l&&e.dataTransfer){const t=e.dataTransfer.getData("text/plain");e.preventDefault(),o.insertRawText(t)}else null!=l&&_n(o,r,l,e.timeStamp,!0)?(e.preventDefault(),as(i,he,l)):rn=l;return nn=e.timeStamp,!0}switch(e.preventDefault(),n){case"insertFromYank":case"insertFromDrop":case"insertReplacementText":as(i,he,e);break;case"insertFromComposition":Mo(null),as(i,he,e);break;case"insertLineBreak":Mo(null),as(i,fe,!1);break;case"insertParagraph":Mo(null),an&&!c?(an=!1,as(i,fe,!1)):as(i,de,void 0);break;case"insertFromPaste":case"insertFromPasteAsQuotation":as(i,ge,e);break;case"deleteByComposition":(function(t,e){return t!==e||Pi(t)||Pi(e)||!Co(t)||!Co(e)})(d,h)&&as(i,_e,e);break;case"deleteByDrag":case"deleteByCut":as(i,_e,e);break;case"deleteContent":as(i,ue,!1);break;case"deleteWordBackward":as(i,pe,!0);break;case"deleteWordForward":as(i,pe,!1);break;case"deleteHardLineBackward":case"deleteSoftLineBackward":as(i,ye,!0);break;case"deleteContentForward":case"deleteHardLineForward":case"deleteSoftLineForward":as(i,ye,!1);break;case"formatStrikeThrough":as(i,me,"strikethrough");break;case"formatBold":as(i,me,"bold");break;case"formatItalic":as(i,me,"italic");break;case"formatUnderline":as(i,me,"underline");break;case"historyUndo":as(i,xe,void 0);break;case"historyRedo":as(i,Ce,void 0)}return!0}function vn(t){if(Ps(t.target)&&ho(t.target))return!0;const e=_i(),n=$r(),r=t.data,i=Cn(t);if(null!=r&&wr(n)&&_n(n,i,r,t.timeStamp,!1)){un&&(Nn(e,r),un=!1);const i=n.anchor.getNode(),l=Es(ms(e));if(null===l)return!0;const c=n.isBackward(),a=c?n.anchor.offset:n.focus.offset,u=c?n.focus.offset:n.anchor.offset;s&&!n.isCollapsed()&&yr(i)&&null!==l.anchorNode&&i.getTextContent().slice(0,a)+r+i.getTextContent().slice(a+u)===$o(l.anchorNode)||as(e,he,r);const d=r.length;o&&d>1&&"insertCompositionText"===t.inputType&&!e.isComposing()&&(n.anchor.offset-=d),f&&e.isComposing()&&(tn=0,Mo(null))}else{Vo(!1,e,null!==r?r:void 0),un&&(Nn(e,r||void 0),un=!1)}return function(){di();const t=_i();et(t)}(),!0}function kn(t){const e=_i(),n=$r();if(wr(n)&&!e.isComposing()){const r=n.anchor,i=n.anchor.getNode();Mo(r.key),gs(qn),(t.timeStamp<tn+30||"element"===r.type||!n.isCollapsed()||i.getFormat()!==n.format||yr(i)&&i.getStyle()!==n.style)&&as(e,he,D)}return!0}function Tn(t){return Nn(_i(),t.data),gs(Hn),!0}function Nn(t,e){const n=t._compositionKey;if(Mo(null),null!==n&&null!=e){if(""===e){const e=Po(n),r=To(t.getElementByKey(n));if(null!==r&&null!==r.nodeValue&&yr(e)){const n=Es(ms(t));let i=null,o=null;null!==n&&n.anchorNode===r&&(i=n.anchorOffset,o=n.focusOffset),Yo(e,r.nodeValue,i,o,!0)}return}if("\n"===e[e.length-1]){const e=$r();if(wr(e)||Or(e)){if(wr(e)){const t=e.focus;e.anchor.set(t.key,t.offset,t.type)}return void as(t,Ee,null)}}}Vo(!0,t,e)}function bn(t){const e=_i();if(null==t.key)return!0;if(fn){if(ts(t))return Ei(e,()=>{Nn(e,dn)}),fn=!1,dn="",!0;fn=!1,dn=""}if(function(t){return Xo(t,"ArrowRight",{shiftKey:"any"})}(t))as(e,ve,t);else if(function(t){return Xo(t,"ArrowRight",Qo)}(t))as(e,ke,t);else if(function(t){return Xo(t,"ArrowLeft",{shiftKey:"any"})}(t))as(e,Te,t);else if(function(t){return Xo(t,"ArrowLeft",Qo)}(t))as(e,Ne,t);else if(function(t){return Xo(t,"ArrowUp",{altKey:"any",shiftKey:"any"})}(t))as(e,be,t);else if(function(t){return Xo(t,"ArrowDown",{altKey:"any",shiftKey:"any"})}(t))as(e,we,t);else if(function(t){return Xo(t,"Enter",{altKey:"any",ctrlKey:"any",metaKey:"any",shiftKey:!0})}(t))an=!0,as(e,Ee,t);else if(function(t){return" "===t.key}(t))as(e,Oe,t);else if(function(t){return i&&Xo(t,"o",{ctrlKey:!0})}(t))t.preventDefault(),an=!0,as(e,fe,!0);else if(function(t){return Xo(t,"Enter",{altKey:"any",ctrlKey:"any",metaKey:"any"})}(t))an=!1,as(e,Ee,t);else if(function(t){return Xo(t,"Backspace",{shiftKey:"any"})||i&&Xo(t,"h",{ctrlKey:!0})}(t))ts(t)?as(e,Me,t):(t.preventDefault(),as(e,ue,!0));else if(function(t){return"Escape"===t.key}(t))as(e,Ae,t);else if(function(t){return Xo(t,"Delete",{})||i&&Xo(t,"d",{ctrlKey:!0})}(t))!function(t){return"Delete"===t.key}(t)?(t.preventDefault(),as(e,ue,!1)):as(e,Pe,t);else if(function(t){return Xo(t,"Backspace",Zo)}(t))t.preventDefault(),as(e,pe,!0);else if(function(t){return Xo(t,"Delete",Zo)}(t))t.preventDefault(),as(e,pe,!1);else if(function(t){return i&&Xo(t,"Backspace",{metaKey:!0})}(t))t.preventDefault(),as(e,ye,!0);else if(function(t){return i&&(Xo(t,"Delete",{metaKey:!0})||Xo(t,"k",{ctrlKey:!0}))}(t))t.preventDefault(),as(e,ye,!1);else if(function(t){return Xo(t,"b",Qo)}(t))t.preventDefault(),as(e,me,"bold");else if(function(t){return Xo(t,"u",Qo)}(t))t.preventDefault(),as(e,me,"underline");else if(function(t){return Xo(t,"i",Qo)}(t))t.preventDefault(),as(e,me,"italic");else if(function(t){return Xo(t,"Tab",{shiftKey:"any"})}(t))as(e,De,t);else if(function(t){return Xo(t,"z",Qo)}(t))t.preventDefault(),as(e,xe,void 0);else if(function(t){if(i)return Xo(t,"z",{metaKey:!0,shiftKey:!0});return Xo(t,"y",{ctrlKey:!0})||Xo(t,"z",{ctrlKey:!0,shiftKey:!0})}(t))t.preventDefault(),as(e,Ce,void 0);else{const n=e._editorState._selection;null===n||wr(n)?es(t)&&(t.preventDefault(),as(e,Ue,t)):!function(t){return Xo(t,"c",Qo)}(t)?!function(t){return Xo(t,"x",Qo)}(t)?es(t)&&(t.preventDefault(),as(e,Ue,t)):(t.preventDefault(),as(e,je,t)):(t.preventDefault(),as(e,Je,t))}return function(t){return t.ctrlKey||t.shiftKey||t.altKey||t.metaKey}(t)&&e.dispatchCommand(Xe,t),!0}function wn(t){let e=t.__lexicalEventHandles;return void 0===e&&(e=[],t.__lexicalEventHandles=e),e}const En=new Map;function On(t){const e=Os(t.target);if(null===e)return;const n=yo(e.anchorNode);if(null===n)return;cn&&(cn=!1,Ei(n,()=>{const r=Vr(),i=e.anchorNode;if(Ps(i)||vo(i)){Bo(Ur(r,e,n,t))}}));const r=jo(n),i=r[r.length-1],o=i._key,s=En.get(o),l=s||i;l!==n&&yn(e,l,!1),yn(e,n,!0),n!==i?En.set(o,n):s&&En.delete(o)}function Mn(t){t._lexicalHandled=!0}function An(t){return!0===t._lexicalHandled}const Pn=()=>{};function Dn(e){const n=on.get(e);if(void 0===n)return void Pn();const r=sn.get(n);if(void 0===r)return void Pn();const i=r-1;i>=0||t(164),on.delete(e),sn.set(n,i),0===i&&n.removeEventListener("selectionchange",On);const o=mo(e);po(o)?(!function(t){if(null!==t._parentEditor){const e=jo(t),n=e[e.length-1]._key;En.get(n)===t&&En.delete(n)}else En.delete(t._key)}(o),e.__lexicalEditor=null):o&&t(198);const s=wn(e);for(let t=0;t<s.length;t++)s[t]();e.__lexicalEventHandles=[]}function Fn(t,e,n){di();const r=t.__key,i=t.getParent();if(null===i)return;const o=function(t){const e=$r();if(!wr(e)||!Pi(t))return e;const{anchor:n,focus:r}=e,i=n.getNode(),o=r.getNode();ps(i,t)&&n.set(t.__key,0,"element");ps(o,t)&&r.set(t.__key,0,"element");return e}(t);let s=!1;if(wr(o)&&e){const e=o.anchor,n=o.focus;e.key===r&&(Hr(e,t,i,t.getPreviousSibling(),t.getNextSibling()),s=!0),n.key===r&&(Hr(n,t,i,t.getPreviousSibling(),t.getNextSibling()),s=!0)}else Or(o)&&e&&t.isSelected()&&t.selectPrevious();if(wr(o)&&e&&!s){const e=t.getIndexWithinParent();Eo(t),Yr(o,i,e,-1)}else Eo(t);n||Ss(i)||i.canBeEmpty()||!i.isEmpty()||Fn(i,e),e&&o&&Ki(i)&&i.isEmpty()&&i.selectEnd()}function Ln(t){return t}const In=Symbol.for("ephemeral");function Kn(t){return t[In]||!1}class zn{__type;__key;__parent;__prev;__next;__state;static getType(){const{ownNodeType:e}=qs(this);return void 0===e&&t(64,this.name),e}static clone(e){t(65,this.name)}$config(){return{}}config(t,e){const n=e.extends||Object.getPrototypeOf(this.constructor);return Object.assign(e,{extends:n,type:t}),{[t]:e}}afterCloneFrom(t){this.__key===t.__key?(this.__parent=t.__parent,this.__next=t.__next,this.__prev=t.__prev,this.__state=t.__state):t.__state&&(this.__state=t.__state.getWritable(this))}resetOnCopyNodeFrom(t){this.__state&&(this.__state=this.__state.getWritable(this).resetOnCopyNode())}static importDOM;constructor(t){this.__type=this.constructor.getType(),this.__parent=null,this.__prev=null,this.__next=null,Object.defineProperty(this,"__state",{configurable:!0,enumerable:!1,value:void 0,writable:!0}),wo(this,t)}getType(){return this.__type}isInline(){t(137,this.constructor.name)}isAttached(){let t=this.__key;for(;null!==t;){if("root"===t)return!0;const e=Po(t);if(null===e)break;t=e.__parent}return!1}isSelected(t){const e=t||$r();if(null==e)return!1;const n=e.getNodes().some(t=>t.__key===this.__key);if(yr(this))return n;if(wr(e)&&"element"===e.anchor.type&&"element"===e.focus.type){if(e.isCollapsed())return!1;const t=this.getParent();if(Li(this)&&this.isInline()&&t){const n=e.isBackward()?e.focus:e.anchor;if(t.is(n.getNode())&&n.offset===t.getChildrenSize()&&this.is(t.getLastChild()))return!1}}return n}getKey(){return this.__key}getIndexWithinParent(){const t=this.getParent();if(null===t)return-1;let e=t.getFirstChild(),n=0;for(;null!==e;){if(this.is(e))return n;n++,e=e.getNextSibling()}return-1}getParent(){const t=this.getLatest().__parent;return null===t?null:Po(t)}getParentOrThrow(){const e=this.getParent();return null===e&&t(66,this.__key),e}getTopLevelElement(){let e=this;for(;null!==e;){const n=e.getParent();if(Ss(n))return Pi(e)||e===this&&Li(e)||t(194),e;e=n}return null}getTopLevelElementOrThrow(){const e=this.getTopLevelElement();return null===e&&t(67,this.__key),e}getParents(){const t=[];let e=this.getParent();for(;null!==e;)t.push(e),e=e.getParent();return t}getParentKeys(){const t=[];let e=this.getParent();for(;null!==e;)t.push(e.__key),e=e.getParent();return t}getPreviousSibling(){const t=this.getLatest().__prev;return null===t?null:Po(t)}getPreviousSiblings(){const t=[],e=this.getParent();if(null===e)return t;let n=e.getFirstChild();for(;null!==n&&!n.is(this);)t.push(n),n=n.getNextSibling();return t}getNextSibling(){const t=this.getLatest().__next;return null===t?null:Po(t)}getNextSiblings(){const t=[];let e=this.getNextSibling();for(;null!==e;)t.push(e),e=e.getNextSibling();return t}getCommonAncestor(t){const e=Pi(this)?this:this.getParent(),n=Pi(t)?t:t.getParent(),r=e&&n?Ml(e,n):null;return r?r.commonAncestor:null}is(t){return null!=t&&this.__key===t.__key}isBefore(e){const n=Ml(this,e);return null!==n&&("descendant"===n.type||("branch"===n.type?-1===wl(n):("same"!==n.type&&"ancestor"!==n.type&&t(279),!1)))}isParentOf(t){const e=Ml(this,t);return null!==e&&"ancestor"===e.type}getNodesBetween(e){const n=this.isBefore(e),r=[],i=new Set;let o=this;for(;null!==o;){const s=o.__key;if(i.has(s)||(i.add(s),r.push(o)),o===e)break;const l=Pi(o)?n?o.getFirstChild():o.getLastChild():null;if(null!==l){o=l;continue}const c=n?o.getNextSibling():o.getPreviousSibling();if(null!==c){o=c;continue}const a=o.getParentOrThrow();if(i.has(a.__key)||r.push(a),a===e)break;let u=null,f=a;do{if(null===f&&t(68),u=n?f.getNextSibling():f.getPreviousSibling(),f=f.getParent(),null===f)break;null!==u||i.has(f.__key)||r.push(f)}while(null===u);o=u}return n||r.reverse(),r}isDirty(){const t=_i()._dirtyLeaves;return null!==t&&t.has(this.__key)}getLatest(){if(Kn(this))return this;const e=Po(this.__key);return null===e&&t(113),e}getWritable(){if(Kn(this))return this;di();const t=gi(),e=_i(),n=t._nodeMap,r=this.__key,i=this.getLatest(),o=e._cloneNotNeeded,s=$r();if(null!==s&&s.setCachedNodes(null),o.has(r))return Oo(i),i;const l=Js(i);return o.add(r),Oo(l),n.set(r,l),l}getTextContent(){return""}getTextContentSize(){return this.getTextContent().length}createDOM(e,n){t(70)}updateDOM(e,n,r){t(71)}exportDOM(t){return{element:this.createDOM(t._config,t)}}exportJSON(){const t=this.__state?this.__state.toJSON():void 0;return{type:this.__type,version:1,...t}}static importJSON(e){t(18,this.name)}updateFromJSON(t){return function(t,e){const n=t.getWritable(),r=e.$;let i=r;for(const t of ft(n).flatKeys)t in e&&(void 0!==i&&i!==r||(i={...r}),i[t]=e[t]);return(n.__state||i)&&ut(t).updateFromJSON(i),n}(this,t)}static transform(){return null}remove(t){Fn(this,!0,t)}replace(e,n){di();let r=$r();null!==r&&(r=r.clone()),Ts(this,e);const i=this.getLatest(),o=this.__key,s=e.__key,l=e.getWritable(),c=this.getParentOrThrow().getWritable(),a=c.__size;Eo(l);const u=i.getPreviousSibling(),f=i.getNextSibling(),d=i.__prev,h=i.__next,g=i.__parent;if(Fn(i,!1,!0),null===u)c.__first=s;else{u.getWritable().__next=s}if(l.__prev=d,null===f)c.__last=s;else{f.getWritable().__prev=s}if(l.__next=h,l.__parent=g,c.__size=a,n&&(Pi(this)&&Pi(l)||t(139),this.getChildren().forEach(t=>{l.append(t)})),wr(r)){Bo(r);const t=r.anchor,e=r.focus;t.key===o&&Nr(t,l),e.key===o&&Nr(e,l)}return Ao()===o&&Mo(s),l}insertAfter(t,e=!0){di(),Ts(this,t);const n=this.getWritable(),r=t.getWritable(),i=r.getParent(),o=$r();let s=!1,l=!1;if(null!==i){const e=t.getIndexWithinParent();if(Eo(r),wr(o)){const t=i.__key,n=o.anchor,r=o.focus;s="element"===n.type&&n.key===t&&n.offset===e+1,l="element"===r.type&&r.key===t&&r.offset===e+1}}const c=this.getNextSibling(),a=this.getParentOrThrow().getWritable(),u=r.__key,f=n.__next;if(null===c)a.__last=u;else{c.getWritable().__prev=u}if(a.__size++,n.__next=u,r.__next=f,r.__prev=n.__key,r.__parent=n.__parent,e&&wr(o)){const t=this.getIndexWithinParent();Yr(o,a,t+1);const e=a.__key;s&&o.anchor.set(e,t+2,"element"),l&&o.focus.set(e,t+2,"element")}return t}insertBefore(t,e=!0){di(),Ts(this,t);const n=this.getWritable(),r=t.getWritable(),i=r.__key;Eo(r);const o=this.getPreviousSibling(),s=this.getParentOrThrow().getWritable(),l=n.__prev,c=this.getIndexWithinParent();if(null===o)s.__first=i;else{o.getWritable().__next=i}s.__size++,n.__prev=i,r.__prev=l,r.__next=n.__key,r.__parent=n.__parent;const a=$r();if(e&&wr(a)){Yr(a,this.getParentOrThrow(),c)}return t}isParentRequired(){return!1}createParentElementNode(){return Vi()}selectStart(){return this.selectPrevious()}selectEnd(){return this.selectNext(0,0)}selectPrevious(t,e){di();const n=this.getPreviousSibling(),r=this.getParentOrThrow();if(null===n)return r.select(0,0);if(Pi(n))return n.select();if(!yr(n)){const t=n.getIndexWithinParent()+1;return r.select(t,t)}return n.select(t,e)}selectNext(t,e){di();const n=this.getNextSibling(),r=this.getParentOrThrow();if(null===n)return r.select();if(Pi(n))return n.select(0,0);if(!yr(n)){const t=n.getIndexWithinParent();return r.select(t,t)}return n.select(t,e)}markDirty(){this.getWritable()}reconcileObservedMutation(t,e){this.markDirty()}}const Rn="historic",Bn="history-push",Wn="history-merge",Jn="paste",jn="collaboration",Un="skip-collab",$n="skip-scroll-into-view",Vn="skip-dom-selection",Yn="skip-selection-focus",qn="composition-start",Hn="composition-end";class Gn extends zn{static getType(){return"linebreak"}static clone(t){return new Gn(t.__key)}constructor(t){super(t)}getTextContent(){return"\n"}createDOM(){return document.createElement("br")}updateDOM(){return!1}isInline(){return!0}static importDOM(){return{br:t=>function(t){const e=t.parentElement;if(null!==e&&Is(e)){const n=e.firstChild;if(n===t||n.nextSibling===t&&tr(n)){const n=e.lastChild;if(n===t||n.previousSibling===t&&tr(n))return!0}}return!1}(t)||function(t){const e=t.parentElement;if(null!==e&&Is(e)){const n=e.firstChild;if(n===t||n.nextSibling===t&&tr(n))return!1;const r=e.lastChild;if(r===t||r.previousSibling===t&&tr(r))return!0}return!1}(t)?null:{conversion:Xn,priority:0}}}static importJSON(t){return Qn().updateFromJSON(t)}}function Xn(t){return{node:Qn()}}function Qn(){return ks(new Gn)}function Zn(t){return t instanceof Gn}function tr(t){return vo(t)&&/^( |\t|\r?\n)+$/.test(t.textContent||"")}function er(t,e){return 16&e?"code":e&k?"mark":32&e?"sub":64&e?"sup":null}function nr(t,e){return 1&e?"strong":2&e?"em":"span"}function rr(t,e,n,r,i){const o=r.classList;let s=rs(i,"base");void 0!==s&&o.add(...s),s=rs(i,"underlineStrikethrough");let l=!1;const c=8&e&&4&e;void 0!==s&&(8&n&&4&n?(l=!0,c||o.add(...s)):c&&o.remove(...s));for(const t in z){const r=z[t];if(s=rs(i,t),void 0!==s)if(n&r){if(l&&("underline"===t||"strikethrough"===t)){e&r&&o.remove(...s);continue}(0===(e&r)||c&&"underline"===t||"strikethrough"===t)&&o.add(...s)}else e&r&&o.remove(...s)}}function ir(t,e,n){const r=e.firstChild,i=n.isComposing(),s=t+(i?A:"");if(null==r)e.textContent=s;else{const t=r.nodeValue;if(t!==s)if(i||o){const[e,n,i]=function(t,e){const n=t.length,r=e.length;let i=0,o=0;for(;i<n&&i<r&&t[i]===e[i];)i++;for(;o+i<n&&o+i<r&&t[n-o-1]===e[r-o-1];)o++;return[i,n-i-o,e.slice(i,r-o)]}(t,s);0!==n&&r.deleteData(e,n),r.insertData(e,i)}else r.nodeValue=s}}function or(t,e,n,r,i,o){ir(i,t,e);const s=o.theme.text;void 0!==s&&rr(0,0,r,t,s)}function sr(t,e){const n=document.createElement(e);return n.appendChild(t),n}class lr extends zn{__text;__format;__style;__mode;__detail;static getType(){return"text"}static clone(t){return new lr(t.__text,t.__key)}afterCloneFrom(t){super.afterCloneFrom(t),this.__text=t.__text,this.__format=t.__format,this.__style=t.__style,this.__mode=t.__mode,this.__detail=t.__detail}constructor(t="",e){super(e),this.__text=t,this.__format=0,this.__style="",this.__mode=0,this.__detail=0}getFormat(){return this.getLatest().__format}getDetail(){return this.getLatest().__detail}getMode(){const t=this.getLatest();return j[t.__mode]}getStyle(){return this.getLatest().__style}isToken(){return 1===this.getLatest().__mode}isComposing(){return this.__key===Ao()}isSegmented(){return 2===this.getLatest().__mode}isDirectionless(){return!!(1&this.getLatest().__detail)}isUnmergeable(){return!!(2&this.getLatest().__detail)}hasFormat(t){const e=z[t];return 0!==(this.getFormat()&e)}isSimpleText(){return"text"===this.__type&&0===this.__mode}getTextContent(){return this.getLatest().__text}getFormatFlags(t,e){return No(this.getLatest().__format,t,e)}canHaveFormat(){return!0}isInline(){return!0}createDOM(t,e){const n=this.__format,r=er(0,n),i=nr(0,n),o=null===r?i:r,s=document.createElement(o);let l=s;this.hasFormat("code")&&s.setAttribute("spellcheck","false"),null!==r&&(l=document.createElement(i),s.appendChild(l));or(l,this,0,n,this.__text,t);const c=this.__style;return""!==c&&(s.style.cssText=c),s}updateDOM(e,n,r){const i=this.__text,o=e.__format,s=this.__format,l=er(0,o),c=er(0,s),a=nr(0,o),u=nr(0,s);if((null===l?a:l)!==(null===c?u:c))return!0;if(l===c&&a!==u){const e=n.firstChild;null==e&&t(48);const o=document.createElement(u);return or(o,this,0,s,i,r),n.replaceChild(o,e),!1}let f=n;null!==c&&null!==l&&(f=n.firstChild,null==f&&t(49)),ir(i,f,this);const d=r.theme.text;void 0!==d&&o!==s&&rr(0,o,s,f,d);const h=e.__style,g=this.__style;return h!==g&&(n.style.cssText=g),!1}static importDOM(){return{"#text":()=>({conversion:dr,priority:0}),b:()=>({conversion:ar,priority:0}),code:()=>({conversion:_r,priority:0}),em:()=>({conversion:_r,priority:0}),i:()=>({conversion:_r,priority:0}),mark:()=>({conversion:_r,priority:0}),s:()=>({conversion:_r,priority:0}),span:()=>({conversion:cr,priority:0}),strong:()=>({conversion:_r,priority:0}),sub:()=>({conversion:_r,priority:0}),sup:()=>({conversion:_r,priority:0}),u:()=>({conversion:_r,priority:0})}}static importJSON(t){return pr().updateFromJSON(t)}updateFromJSON(t){return super.updateFromJSON(t).setTextContent(t.text).setFormat(t.format).setDetail(t.detail).setMode(t.mode).setStyle(t.style)}exportDOM(e){let{element:n}=super.exportDOM(e);return Ps(n)||t(132),n.style.whiteSpace="pre-wrap",this.hasFormat("lowercase")?n.style.textTransform="lowercase":this.hasFormat("uppercase")?n.style.textTransform="uppercase":this.hasFormat("capitalize")&&(n.style.textTransform="capitalize"),this.hasFormat("bold")&&(n=sr(n,"b")),this.hasFormat("italic")&&(n=sr(n,"i")),this.hasFormat("strikethrough")&&(n=sr(n,"s")),this.hasFormat("underline")&&(n=sr(n,"u")),{element:n}}exportJSON(){return{detail:this.getDetail(),format:this.getFormat(),mode:this.getMode(),style:this.getStyle(),text:this.getTextContent(),...super.exportJSON()}}selectionTransform(t,e){}setFormat(t){const e=this.getWritable();return e.__format="string"==typeof t?z[t]:t,e}setDetail(t){const e=this.getWritable();return e.__detail="string"==typeof t?R[t]:t,e}setStyle(t){const e=this.getWritable();return e.__style=t,e}toggleFormat(t){const e=No(this.getFormat(),t,null);return this.setFormat(e)}toggleDirectionless(){const t=this.getWritable();return t.__detail^=1,t}toggleUnmergeable(){const t=this.getWritable();return t.__detail^=2,t}setMode(t){const e=J[t];if(this.__mode===e)return this;const n=this.getWritable();return n.__mode=e,n}setTextContent(t){if(this.__text===t)return this;const e=this.getWritable();return e.__text=t,e}select(t,e){di();let n=t,r=e;const i=$r(),o=this.getTextContent(),s=this.__key;if("string"==typeof o){const t=o.length;void 0===n&&(n=t),void 0===r&&(r=t)}else n=0,r=0;if(!wr(i))return Br(s,n,s,r,"text","text");{const t=Ao();t!==i.anchor.key&&t!==i.focus.key||Mo(s),i.setTextNodeRange(this,n,this,r)}return i}selectStart(){return this.select(0,0)}selectEnd(){const t=this.getTextContentSize();return this.select(t,t)}spliceText(t,e,n,r){const i=this.getWritable(),o=i.__text,s=n.length;let l=t;l<0&&(l=s+l,l<0&&(l=0));const c=$r();if(r&&wr(c)){const e=t+s;c.setTextNodeRange(i,e,i,e)}const a=o.slice(0,l)+n+o.slice(l+e);return i.__text=a,i}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}splitText(...t){di();const e=this.getLatest(),n=e.getTextContent();if(""===n)return[];const r=e.__key,i=Ao(),o=n.length;t.sort((t,e)=>t-e),t.push(o);const s=[],l=t.length;for(let e=0,r=0;e<o&&r<=l;r++){const i=t[r];i>e&&(s.push(n.slice(e,i)),e=i)}const c=s.length;if(1===c)return[e];const a=s[0],u=e.getParent();let f;const d=e.getFormat(),h=e.getStyle(),g=e.__detail;let _=!1,p=null,y=null;const m=$r();if(wr(m)){const[t,e]=m.isBackward()?[m.focus,m.anchor]:[m.anchor,m.focus];"text"===t.type&&t.key===r&&(p=t),"text"===e.type&&e.key===r&&(y=e)}e.isSegmented()?(f=pr(a),f.__format=d,f.__style=h,f.__detail=g,f.__state=pt(e,f),_=!0):f=e.setTextContent(a);const x=[f];for(let t=1;t<c;t++){const n=pr(s[t]);n.__format=d,n.__style=h,n.__detail=g,n.__state=pt(e,n);const o=n.__key;i===r&&Mo(o),x.push(n)}const C=p?p.offset:null,S=y?y.offset:null;let v=0;for(const t of x){if(!p&&!y)break;const e=v+t.getTextContentSize();if(null!==p&&null!==C&&C<=e&&C>=v&&(p.set(t.getKey(),C-v,"text"),C<e&&(p=null)),null!==y&&null!==S&&S<=e&&S>=v){y.set(t.getKey(),S-v,"text");break}v=e}if(null!==u){!function(t){const e=t.getPreviousSibling(),n=t.getNextSibling();null!==e&&Oo(e);null!==n&&Oo(n)}(this);const t=u.getWritable(),e=this.getIndexWithinParent();_?(t.splice(e,0,x),this.remove()):t.splice(e,1,x),wr(m)&&Yr(m,u,e,c-1)}return x}mergeWithSibling(e){const n=e===this.getPreviousSibling();n||e===this.getNextSibling()||t(50);const r=this.__key,i=e.__key,o=this.__text,s=o.length;Ao()===i&&Mo(r);const l=$r();if(wr(l)){const t=l.anchor,o=l.focus;null!==t&&t.key===i&&Gr(t,n,r,e,s),null!==o&&o.key===i&&Gr(o,n,r,e,s)}const c=e.__text,a=n?c+o:o+c;this.setTextContent(a);const u=this.getWritable();return e.remove(),u}isTextEntity(){return!1}}function cr(t){return{forChild:mr(t.style),node:null}}function ar(t){const e=t,n="normal"===e.style.fontWeight;return{forChild:mr(e.style,n?void 0:"bold"),node:null}}const ur=new WeakMap;function fr(t){if(!Ps(t))return!1;if("PRE"===t.nodeName)return!0;const e=t.style.whiteSpace;return"string"==typeof e&&e.startsWith("pre")}function dr(e){const n=e;null===e.parentElement&&t(129);let r=n.textContent||"";if(null!==function(t){let e,n=t.parentNode;const r=[t];for(;null!==n&&void 0===(e=ur.get(n))&&!fr(n);)r.push(n),n=n.parentNode;const i=void 0===e?n:e;for(let t=0;t<r.length;t++)ur.set(r[t],i);return i}(n)){const t=r.split(/(\r?\n|\t)/),e=[],n=t.length;for(let r=0;r<n;r++){const n=t[r];"\n"===n||"\r\n"===n?e.push(Qn()):"\t"===n?e.push(Cr()):""!==n&&e.push(pr(n))}return{node:e}}if(r=r.replace(/\r/g,"").replace(/[ \t\n]+/g," "),""===r)return{node:null};if(" "===r[0]){let t=n,e=!0;for(;null!==t&&null!==(t=hr(t,!1));){const n=t.textContent||"";if(n.length>0){/[ \t\n]$/.test(n)&&(r=r.slice(1)),e=!1;break}}e&&(r=r.slice(1))}if(" "===r[r.length-1]){let t=n,e=!0;for(;null!==t&&null!==(t=hr(t,!0));){if((t.textContent||"").replace(/^( |\t|\r?\n)+/,"").length>0){e=!1;break}}e&&(r=r.slice(0,r.length-1))}return""===r?{node:null}:{node:pr(r)}}function hr(t,e){let n=t;for(;;){let t;for(;null===(t=e?n.nextSibling:n.previousSibling);){const t=n.parentElement;if(null===t)return null;n=t}if(n=t,Ps(n)){const t=n.style.display;if(""===t&&!Ls(n)||""!==t&&!t.startsWith("inline"))return null}let r=n;for(;null!==(r=e?n.firstChild:n.lastChild);)n=r;if(vo(n))return n;if("BR"===n.nodeName)return null}}const gr={code:"code",em:"italic",i:"italic",mark:"highlight",s:"strikethrough",strong:"bold",sub:"subscript",sup:"superscript",u:"underline"};function _r(t){const e=gr[t.nodeName.toLowerCase()];return void 0===e?{node:null}:{forChild:mr(t.style,e),node:null}}function pr(t=""){return ks(new lr(t))}function yr(t){return t instanceof lr}function mr(t,e){const n=t.fontWeight,r=t.textDecoration.split(" "),i="700"===n||"bold"===n,o=r.includes("line-through"),s="italic"===t.fontStyle,l=r.includes("underline"),c=t.verticalAlign;return t=>yr(t)?(i&&!t.hasFormat("bold")&&t.toggleFormat("bold"),o&&!t.hasFormat("strikethrough")&&t.toggleFormat("strikethrough"),s&&!t.hasFormat("italic")&&t.toggleFormat("italic"),l&&!t.hasFormat("underline")&&t.toggleFormat("underline"),"sub"!==c||t.hasFormat("subscript")||t.toggleFormat("subscript"),"super"!==c||t.hasFormat("superscript")||t.toggleFormat("superscript"),e&&!t.hasFormat(e)&&t.toggleFormat(e),t):t}class xr extends lr{static getType(){return"tab"}static clone(t){return new xr(t.__key)}constructor(t){super("\t",t),this.__detail=2}static importDOM(){return null}createDOM(t){const e=super.createDOM(t),n=rs(t.theme,"tab");if(void 0!==n){e.classList.add(...n)}return e}static importJSON(t){return Cr().updateFromJSON(t)}setTextContent(t){return"\t"!==t&&""!==t&&e(126),super.setTextContent("\t")}spliceText(e,n,r,i){return""===r&&0===n||"\t"===r&&1===n||t(286),this}setDetail(e){return 2!==e&&t(127),this}setMode(e){return"normal"!==e&&t(128),this}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}}function Cr(){return ks(new xr)}function Sr(t){return t instanceof xr}class vr{key;offset;type;_selection;constructor(t,e,n){this._selection=null,this.key=t,this.offset=e,this.type=n}is(t){return this.key===t.key&&this.offset===t.offset&&this.type===t.type}isBefore(t){if(this.key===t.key)return this.offset<t.offset;return bl(Bl(Al(this,"next")),Bl(Al(t,"next")))<0}getNode(){const e=Po(this.key);return null===e&&t(20),e}set(t,e,n,r){const i=this._selection,o=this.key;r&&this.key===t&&this.offset===e&&this.type===n||(this.key=t,this.offset=e,this.type=n,fi()||(Ao()===o&&Mo(t),null!==i&&(i.setCachedNodes(null),i.dirty=!0)))}}function kr(t,e,n){return new vr(t,e,n)}function Tr(t,e){let n=e.__key,r=t.offset,i="element";if(yr(e)){i="text";const t=e.getTextContentSize();r>t&&(r=t)}else if(!Pi(e)){const t=e.getNextSibling();if(yr(t))n=t.__key,r=0,i="text";else{const t=e.getParent();t&&(n=t.__key,r=e.getIndexWithinParent()+1)}}t.set(n,r,i)}function Nr(t,e){if(Pi(e)){const n=e.getLastDescendant();Pi(n)||yr(n)?Tr(t,n):Tr(t,e)}else Tr(t,e)}class br{_nodes;_cachedNodes;dirty;constructor(t){this._cachedNodes=null,this._nodes=t,this.dirty=!1}getCachedNodes(){return this._cachedNodes}setCachedNodes(t){this._cachedNodes=t}is(t){if(!Or(t))return!1;const e=this._nodes,n=t._nodes;return e.size===n.size&&Array.from(e).every(t=>n.has(t))}isCollapsed(){return!1}isBackward(){return!1}getStartEndPoints(){return null}add(t){this.dirty=!0,this._nodes.add(t),this._cachedNodes=null}delete(t){this.dirty=!0,this._nodes.delete(t),this._cachedNodes=null}clear(){this.dirty=!0,this._nodes.clear(),this._cachedNodes=null}has(t){return this._nodes.has(t)}clone(){return new br(new Set(this._nodes))}extract(){return this.getNodes()}insertRawText(t){}insertText(){}insertNodes(t){const e=this.getNodes(),n=e.length,r=e[n-1];let i;if(yr(r))i=r.select();else{const t=r.getIndexWithinParent()+1;i=r.getParentOrThrow().select(t,t)}i.insertNodes(t);for(let t=0;t<n;t++)e[t].remove()}getNodes(){const t=this._cachedNodes;if(null!==t)return t;const e=this._nodes,n=[];for(const t of e){const e=Po(t);null!==e&&n.push(e)}return fi()||(this._cachedNodes=n),n}getTextContent(){const t=this.getNodes();let e="";for(let n=0;n<t.length;n++)e+=t[n].getTextContent();return e}deleteNodes(){const t=this.getNodes();if(($r()||Vr())===this&&t[0]){const e=dl(t[0],"next");Dl(Tl(e,e))}for(const e of t)e.remove()}}function wr(t){return t instanceof Er}class Er{format;style;anchor;focus;_cachedNodes;dirty;constructor(t,e,n,r){this.anchor=t,this.focus=e,t._selection=this,e._selection=this,this._cachedNodes=null,this.format=n,this.style=r,this.dirty=!1}getCachedNodes(){return this._cachedNodes}setCachedNodes(t){this._cachedNodes=t}is(t){return!!wr(t)&&(this.anchor.is(t.anchor)&&this.focus.is(t.focus)&&this.format===t.format&&this.style===t.style)}isCollapsed(){return this.anchor.is(this.focus)}getNodes(){const t=this._cachedNodes;if(null!==t)return t;const e=function(t){const e=[],[n,r]=t.getTextSlices();n&&e.push(n.caret.origin);const i=new Set,o=new Set;for(const n of t)if(cl(n)){const{origin:t}=n;0===e.length?i.add(t):(o.add(t),e.push(t))}else{const{origin:t}=n;Pi(t)&&o.has(t)||e.push(t)}r&&e.push(r.caret.origin);if(ll(t.focus)&&Pi(t.focus.origin)&&null===t.focus.getNodeAtCaret())for(let n=pl(t.focus.origin,"previous");cl(n)&&i.has(n.origin)&&!n.origin.isEmpty()&&n.origin.is(e[e.length-1]);n=ml(n))i.delete(n.origin),e.pop();for(;e.length>1;){const t=e[e.length-1];if(!Pi(t)||o.has(t)||t.isEmpty()||i.has(t))break;e.pop()}if(0===e.length&&t.isCollapsed()){const n=Bl(t.anchor),r=Bl(t.anchor.getFlipped()),i=t=>ol(t)?t.origin:t.getNodeAtCaret(),o=i(n)||i(r)||(t.anchor.getNodeAtCaret()?n.origin:r.origin);e.push(o)}return e}(jl(Ll(this),"next"));return fi()||(this._cachedNodes=e),e}setTextNodeRange(t,e,n,r){this.anchor.set(t.__key,e,"text"),this.focus.set(n.__key,r,"text")}getTextContent(){const t=this.getNodes();if(0===t.length)return"";const e=t[0],n=t[t.length-1],r=this.anchor,i=this.focus,o=r.isBefore(i),[s,l]=Ar(this);let c="",a=!0;for(let u=0;u<t.length;u++){const f=t[u];if(Pi(f)&&!f.isInline())a||(c+="\n"),a=!f.isEmpty();else if(a=!1,yr(f)){let t=f.getTextContent();f===e?f===n?"element"===r.type&&"element"===i.type&&i.offset!==r.offset||(t=s<l?t.slice(s,l):t.slice(l,s)):t=o?t.slice(s):t.slice(l):f===n&&(t=o?t.slice(0,l):t.slice(0,s)),c+=t}else!Li(f)&&!Zn(f)||f===n&&this.isCollapsed()||(c+=f.getTextContent())}return c}applyDOMRange(t){const e=_i(),n=e.getEditorState()._selection,r=zr(t.startContainer,t.startOffset,t.endContainer,t.endOffset,e,n);if(null===r)return;const[i,o]=r;this.anchor.set(i.key,i.offset,i.type,!0),this.focus.set(o.key,o.offset,o.type,!0),Ct(this)}clone(){const t=this.anchor,e=this.focus;return new Er(kr(t.key,t.offset,t.type),kr(e.key,e.offset,e.type),this.format,this.style)}toggleFormat(t){this.format=No(this.format,t,null),this.dirty=!0}setFormat(t){this.format=t,this.dirty=!0}setStyle(t){this.style=t,this.dirty=!0}hasFormat(t){const e=z[t];return 0!==(this.format&e)}insertRawText(t){const e=t.split(/(\r?\n|\t)/),n=[],r=e.length;for(let t=0;t<r;t++){const r=e[t];"\n"===r||"\r\n"===r?n.push(Qn()):"\t"===r?n.push(Cr()):n.push(pr(r))}this.insertNodes(n)}insertText(e){const n=this.anchor,r=this.focus,i=this.format,o=this.style;let s=n,l=r;!this.isCollapsed()&&r.isBefore(n)&&(s=r,l=n),"element"===s.type&&function(t,e,n,r){const i=t.getNode(),o=i.getChildAtIndex(t.offset),s=pr();if(s.setFormat(n),s.setStyle(r),Yi(o))o.splice(0,0,[s]);else{const t=Ki(i)?Vi().append(s):s;null===o?i.append(t):o.insertBefore(t)}t.is(e)&&e.set(s.__key,0,"text"),t.set(s.__key,0,"text")}(s,l,i,o),"element"===l.type&&Pl(l,Bl(Al(l,"next")));const c=s.offset;let a=l.offset;const u=this.getNodes(),f=u.length;let d=u[0];yr(d)||t(26);const h=d.getTextContent().length,g=d.getParentOrThrow();let _=u[f-1];if(1===f&&"element"===l.type&&(a=h,l.set(s.key,a,"text")),this.isCollapsed()&&c===h&&(So(d)||!d.canInsertTextAfter()||!g.canInsertTextAfter()&&null===d.getNextSibling())){let t=d.getNextSibling();if(yr(t)&&t.canInsertTextBefore()&&!So(t)||(t=pr(),t.setFormat(i),t.setStyle(o),g.canInsertTextAfter()?d.insertAfter(t):g.insertAfter(t)),t.select(0,0),d=t,""!==e)return void this.insertText(e)}else if(this.isCollapsed()&&0===c&&(So(d)||!d.canInsertTextBefore()||!g.canInsertTextBefore()&&null===d.getPreviousSibling())){let t=d.getPreviousSibling();if(yr(t)&&!So(t)||(t=pr(),t.setFormat(i),g.canInsertTextBefore()?d.insertBefore(t):g.insertBefore(t)),t.select(),d=t,""!==e)return void this.insertText(e)}else if(d.isSegmented()&&c!==h){const t=pr(d.getTextContent());t.setFormat(i),d.replace(t),d=t}else if(!this.isCollapsed()&&""!==e){const t=_.getParent();if(!g.canInsertTextBefore()||!g.canInsertTextAfter()||Pi(t)&&(!t.canInsertTextBefore()||!t.canInsertTextAfter()))return this.insertText(""),Kr(this.anchor,this.focus),void this.insertText(e)}if(1===f){if(Co(d)){const t=pr(e);return t.select(),void d.replace(t)}const t=d.getFormat(),n=d.getStyle();if(c!==a||t===i&&n===o){if(Sr(d)){const t=pr(e);return t.setFormat(i),t.setStyle(o),t.select(),void d.replace(t)}}else{if(""!==d.getTextContent()){const t=pr(e);if(t.setFormat(i),t.setStyle(o),t.select(),0===c)d.insertBefore(t,!1);else{const[e]=d.splitText(c);e.insertAfter(t,!1)}return void(t.isComposing()&&"text"===this.anchor.type&&(this.anchor.offset-=e.length))}d.setFormat(i),d.setStyle(o)}const r=a-c;d=d.spliceText(c,r,e,!0),""===d.getTextContent()?d.remove():"text"===this.anchor.type&&(this.format=t,this.style=n,d.isComposing()&&(this.anchor.offset-=e.length))}else{const t=new Set([...d.getParentKeys(),..._.getParentKeys()]),n=Pi(d)?d:d.getParentOrThrow();let r=Pi(_)?_:_.getParentOrThrow(),i=_;if(!n.is(r)&&r.isInline())do{i=r,r=r.getParentOrThrow()}while(r.isInline());if("text"===l.type&&(0!==a||""===_.getTextContent())||"element"===l.type&&_.getIndexWithinParent()<a)if(yr(_)&&!Co(_)&&a!==_.getTextContentSize()){if(_.isSegmented()){const t=pr(_.getTextContent());_.replace(t),_=t}Ki(l.getNode())||"text"!==l.type||(_=_.spliceText(0,a,"")),t.add(_.__key)}else{const t=_.getParentOrThrow();t.canBeEmpty()||1!==t.getChildrenSize()?_.remove():t.remove()}else t.add(_.__key);const o=r.getChildren(),s=new Set(u),g=n.is(r),p=n.isInline()&&null===d.getNextSibling()?n:d;for(let t=o.length-1;t>=0;t--){const e=o[t];if(e.is(d)||Pi(e)&&e.isParentOf(d))break;e.isAttached()&&(!s.has(e)||e.is(i)?g||p.insertAfter(e,!1):e.remove())}if(!g){let e=r,n=null;for(;null!==e;){const r=e.getChildren(),i=r.length;(0===i||r[i-1].is(n))&&(t.delete(e.__key),n=e),e=e.getParent()}}if(Co(d))if(c===h)d.select();else{const t=pr(e);t.select(),d.replace(t)}else d=d.spliceText(c,h-c,e,!0),""===d.getTextContent()?d.remove():"text"===this.anchor.type&&(this.format=d.getFormat(),this.style=d.getStyle(),d.isComposing()&&(this.anchor.offset-=e.length));for(let e=1;e<f;e++){const n=u[e],r=n.__key;t.has(r)||n.remove()}}}removeText(){const t=$r()===this;Fl(this,Rl(Ll(this))),t&&$r()!==this&&Bo(this)}formatText(t,e=null){if(this.isCollapsed())return this.toggleFormat(t),void Mo(null);const n=this.getNodes(),r=[];for(const t of n)yr(t)&&r.push(t);const i=e=>{n.forEach(n=>{if(Pi(n)){const r=n.getFormatFlags(t,e);n.setTextFormat(r)}})},o=r.length;if(0===o)return this.toggleFormat(t),Mo(null),void i(e);const s=this.anchor,l=this.focus,c=this.isBackward(),a=c?l:s,u=c?s:l;let f=0,d=r[0],h="element"===a.type?0:a.offset;if("text"===a.type&&h===d.getTextContentSize()&&(f=1,d=r[1],h=0),null==d)return;const g=d.getFormatFlags(t,e);i(g);const _=o-1;let p=r[_];const y="text"===u.type?u.offset:p.getTextContentSize();if(d.is(p)){if(h===y)return;if(So(d)||0===h&&y===d.getTextContentSize())d.setFormat(g);else{const t=d.splitText(h,y),e=0===h?t[0]:t[1];e.setFormat(g),"text"===a.type&&a.set(e.__key,0,"text"),"text"===u.type&&u.set(e.__key,y-h,"text")}return void(this.format=g)}0===h||So(d)||([,d]=d.splitText(h),h=0),d.setFormat(g);const m=p.getFormatFlags(t,g);y>0&&(y===p.getTextContentSize()||So(p)||([p]=p.splitText(y)),p.setFormat(m));for(let e=f+1;e<_;e++){const n=r[e],i=n.getFormatFlags(t,m);n.setFormat(i)}"text"===a.type&&a.set(d.__key,h,"text"),"text"===u.type&&u.set(p.__key,y,"text"),this.format=g|m}insertNodes(e){if(0===e.length)return;if(this.isCollapsed()||this.removeText(),"root"===this.anchor.key){this.insertParagraph();const n=$r();return wr(n)||t(134),n.insertNodes(e)}const n=(this.isBackward()?this.focus:this.anchor).getNode(),r=Gs(n,Ks),i=e[e.length-1];if(Pi(r)&&"__language"in r){if("__language"in e[0])this.insertText(e[0].getTextContent());else{const t=ni(this);r.splice(t,0,e),i.selectEnd()}return}if(!e.some(t=>(Pi(t)||Li(t))&&!t.isInline())){Pi(r)||t(211,n.constructor.name,n.getType());const o=ni(this);return r.splice(o,0,e),void i.selectEnd()}const o=function(t){const e=Vi();let n=null;for(let r=0;r<t.length;r++){const i=t[r],o=Zn(i);if(o||Li(i)&&i.isInline()||Pi(i)&&i.isInline()||yr(i)||i.isParentRequired()){if(null===n&&(n=i.createParentElementNode(),e.append(n),o))continue;null!==n&&n.append(i)}else e.append(i),n=null}return e}(e),s=o.getLastDescendant(),l=o.getChildren(),c=!Pi(r)||!r.isEmpty()?this.insertParagraph():null,a=l[l.length-1];let u=l[0];var f;Pi(f=u)&&Ks(f)&&!f.isEmpty()&&Pi(r)&&(!r.isEmpty()||r.canMergeWhenEmpty())&&(Pi(r)||t(211,n.constructor.name,n.getType()),r.append(...u.getChildren()),u=l[1]),u&&(null===r&&t(212,n.constructor.name,n.getType()),function(e,n){const r=n.getParentOrThrow().getLastChild();let i=n;const o=[n];for(;i!==r;)i.getNextSibling()||t(140),i=i.getNextSibling(),o.push(i);let s=e;for(const t of o)s=s.insertAfter(t)}(r,u));const d=Gs(s,Ks);c&&Pi(d)&&(c.canMergeWhenEmpty()||Ks(a))&&(d.append(...c.getChildren()),c.remove()),Pi(r)&&r.isEmpty()&&r.remove(),s.selectEnd();const h=Pi(r)?r.getLastChild():null;Zn(h)&&d!==r&&h.remove()}insertParagraph(){if("root"===this.anchor.key){const t=Vi();return zo().splice(this.anchor.offset,0,[t]),t.select(),t}const e=ni(this),n=Gs(this.anchor.getNode(),Ks);Pi(n)||t(213);const r=n.getChildAtIndex(e),i=r?[r,...r.getNextSiblings()]:[],o=n.insertNewAfter(this,!1);return o?(o.append(...i),o.selectStart(),o):null}insertLineBreak(t){const e=Qn();if(this.insertNodes([e]),t){const t=e.getParentOrThrow(),n=e.getIndexWithinParent();t.select(n,n)}}extract(){const t=[...this.getNodes()],e=t.length;let n=t[0],r=t[e-1];const[i,o]=Ar(this),s=this.isBackward(),[l,c]=s?[this.focus,this.anchor]:[this.anchor,this.focus],[a,u]=s?[o,i]:[i,o];if(0===e)return[];if(1===e){if(yr(n)&&!this.isCollapsed()){const t=n.splitText(a,u),e=0===a?t[0]:t[1];return e?(l.set(e.getKey(),0,"text"),c.set(e.getKey(),e.getTextContentSize(),"text"),[e]):[]}return[n]}if(yr(n)&&(a===n.getTextContentSize()?t.shift():0!==a&&([,n]=n.splitText(a),t[0]=n,l.set(n.getKey(),0,"text"))),yr(r)){const e=r.getTextContent().length;0===u?t.pop():u!==e&&([r]=r.splitText(u),t[t.length-1]=r,c.set(r.getKey(),r.getTextContentSize(),"text"))}return t}modify(t,e,n){if(ii(this,t,e,n))return;const r="move"===t,i=_i(),o=Es(ms(i));if(!o)return;const s=i._blockCursorElement,l=i._rootElement,c=this.focus.getNode();if(null===l||null===s||!Pi(c)||c.isInline()||c.canBeEmpty()||ws(s,i,l),this.dirty){let t=us(i,this.anchor.key),e=us(i,this.focus.key);"text"===this.anchor.type&&(t=To(t)),"text"===this.focus.type&&(e=To(e)),t&&e&&Xr(o,t,this.anchor.offset,e,this.focus.offset)}if(function(t,e,n,r){t.modify(e,n,r)}(o,t,e?"backward":"forward",n),o.rangeCount>0){const t=o.getRangeAt(0),n=this.anchor.getNode(),i=Ki(n)?n:Cs(n);if(this.applyDOMRange(t),this.dirty=!0,!r){const n=this.getNodes(),r=[];let s=!1;for(let t=0;t<n.length;t++){const e=n[t];ps(e,i)?r.push(e):s=!0}if(s&&r.length>0)if(e){const t=r[0];Pi(t)?t.selectStart():t.getParentOrThrow().selectStart()}else{const t=r[r.length-1];Pi(t)?t.selectEnd():t.getParentOrThrow().selectEnd()}o.anchorNode===t.startContainer&&o.anchorOffset===t.startOffset||function(t){const e=t.focus,n=t.anchor,r=n.key,i=n.offset,o=n.type;n.set(e.key,e.offset,e.type,!0),e.set(r,i,o,!0)}(this)}}"lineboundary"===n&&ii(this,t,e,n,"decorators")}forwardDeletion(t,e,n){if(!n&&("element"===t.type&&Pi(e)&&t.offset===e.getChildrenSize()||"text"===t.type&&t.offset===e.getTextContentSize())){const t=e.getParent(),n=e.getNextSibling()||(null===t?null:t.getNextSibling());if(Pi(n)&&n.isShadowRoot())return!0}return!1}deleteCharacter(t){const e=this.isCollapsed();if(this.isCollapsed()){const e=this.anchor;let n=e.getNode();if(this.forwardDeletion(e,n,t))return;const r=vl(Al(e,t?"previous":"next"));if(r.getTextSlices().every(t=>null===t||0===t.distance)){let t={type:"initial"};for(const e of r.iterNodeCarets("shadowRoot"))if(cl(e))if(e.origin.isInline());else{if(e.origin.isShadowRoot()){if("merge-block"===t.type)break;if(Pi(r.anchor.origin)&&r.anchor.origin.isEmpty()){const t=Bl(e);Fl(this,Tl(t,t)),r.anchor.origin.remove()}return}"merge-next-block"!==t.type&&"merge-block"!==t.type||(t={block:t.block,caret:e,type:"merge-block"})}else{if("merge-block"===t.type)break;if(ll(e)){if(Pi(e.origin)){if(e.origin.isInline()){if(!e.origin.isParentOf(r.anchor.origin))break}else t={block:e.origin,type:"merge-next-block"};continue}if(Li(e.origin)){if(e.origin.isIsolated());else if("merge-next-block"===t.type&&(e.origin.isKeyboardSelectable()||!e.origin.isInline())&&Pi(r.anchor.origin)&&r.anchor.origin.isEmpty()){r.anchor.origin.remove();const t=Jr();t.add(e.origin.getKey()),Bo(t)}else e.origin.remove();return}break}}if("merge-block"===t.type){const{caret:e,block:n}=t;return Fl(this,Tl(!e.origin.isEmpty()&&n.isEmpty()?Il(dl(n,e.direction)):r.anchor,e)),this.removeText()}}const i=this.focus;if(this.modify("extend",t,"character"),this.isCollapsed()){if(t&&0===e.offset&&Pr(this,e.getNode()))return}else{const r="text"===i.type?i.getNode():null;if(n="text"===e.type?e.getNode():null,null!==r&&r.isSegmented()){const e=i.offset,o=r.getTextContentSize();if(r.is(n)||t&&e!==o||!t&&0!==e)return void Fr(r,t,e)}else if(null!==n&&n.isSegmented()){const i=e.offset,o=n.getTextContentSize();if(n.is(r)||t&&0!==i||!t&&i!==o)return void Fr(n,t,i)}!function(t,e){const n=t.anchor,r=t.focus,i=n.getNode(),o=r.getNode();if(i===o&&"text"===n.type&&"text"===r.type){const t=n.offset,o=r.offset,s=t<o,l=s?t:o,c=s?o:t,a=c-1;if(l!==a){(function(t){return!(Jo(t)||Dr(t))})(i.getTextContent().slice(l,c))&&(e?r.set(r.key,a,r.type):n.set(n.key,a,n.type))}}}(this,t)}}if(this.removeText(),t&&!e&&this.isCollapsed()&&"element"===this.anchor.type&&0===this.anchor.offset){const t=this.anchor.getNode();t.isEmpty()&&Ki(t.getParent())&&null===t.getPreviousSibling()&&Pr(this,t)}}deleteLine(t){this.isCollapsed()&&this.modify("extend",t,"lineboundary"),this.isCollapsed()?this.deleteCharacter(t):this.removeText()}deleteWord(t){if(this.isCollapsed()){const e=this.anchor,n=e.getNode();if(this.forwardDeletion(e,n,t))return;this.modify("extend",t,"word")}this.isCollapsed()?this.deleteCharacter(t):this.removeText()}isBackward(){return this.focus.isBefore(this.anchor)}getStartEndPoints(){return[this.anchor,this.focus]}}function Or(t){return t instanceof br}function Mr(t){const e=t.offset;if("text"===t.type)return e;const n=t.getNode();return e===n.getChildrenSize()?n.getTextContent().length:0}function Ar(t){const e=t.getStartEndPoints();if(null===e)return[0,0];const[n,r]=e;return"element"===n.type&&"element"===r.type&&n.key===r.key&&n.offset===r.offset?[0,0]:[Mr(n),Mr(r)]}function Pr(t,e){for(let n=e;n;n=n.getParent()){if(Pi(n)){if(n.collapseAtStart(t))return!0;if(Ss(n))break}if(n.getPreviousSibling())break}return!1}const Dr=(()=>{try{const t=new RegExp("\\p{Emoji}","u"),e=t.test.bind(t);if(e("\u2764\ufe0f")&&e("#\ufe0f\u20e3")&&e("\u{1f44d}"))return e}catch(t){}return()=>!1})();function Fr(t,e,n){const r=t,i=r.getTextContent().split(/(?=\s)/g),o=i.length;let s=0,l=0;for(let t=0;t<o;t++){const r=t===o-1;if(l=s,s+=i[t].length,e&&s===n||s>n||r){i.splice(t,1),r&&(l=void 0);break}}const c=i.join("").trim();""===c?r.remove():(r.setTextContent(c),r.select(l,l))}function Lr(e,n,r,i){let o,s=n;if(Ps(e)){let l=!1;const c=e.childNodes,a=c.length,u=i._blockCursorElement;s===a&&(l=!0,s=a-1);let f=c[s],d=!1;if(f===u)f=c[s+1],d=!0;else if(null!==u){const t=u.parentNode;if(e===t){n>Array.prototype.indexOf.call(t.children,u)&&s--}}if(o=Wo(f),yr(o))s=gl(o,l?"next":"previous");else{let c=Wo(e);if(null===c)return null;if(Pi(c)){const a=i.getElementByKey(c.getKey());null===a&&t(214);const u=c.getDOMSlot(a);[c,s]=u.resolveChildIndex(c,a,e,n),Pi(c)||t(215),l&&s>=c.getChildrenSize()&&(s=Math.max(0,c.getChildrenSize()-1));let f=c.getChildAtIndex(s);if(Pi(f)&&function(t,e,n){const r=t.getParent();return null===n||null===r||!r.canBeEmpty()||r!==n.getNode()}(f,0,r)){const t=l?f.getLastDescendant():f.getFirstDescendant();null===t?c=f:(f=t,c=Pi(f)?f:f.getParentOrThrow()),s=0}yr(f)?(o=f,c=null,s=gl(f,l?"next":"previous")):f!==c&&l&&!d&&(Pi(c)||t(216),s=Math.min(c.getChildrenSize(),s+1))}else{const t=c.getIndexWithinParent();s=0===n&&Li(c)&&Wo(e)===c?t:t+1,c=c.getParentOrThrow()}if(Pi(c))return kr(c.__key,s,"element")}}else o=Wo(e);return yr(o)?kr(o.__key,gl(o,s,"clamp"),"text"):null}function Ir(t,e,n){const r=t.offset,i=t.getNode();if(0===r){const r=i.getPreviousSibling(),o=i.getParent();if(e){if((n||!e)&&null===r&&Pi(o)&&o.isInline()){const e=o.getPreviousSibling();yr(e)&&t.set(e.__key,e.getTextContent().length,"text")}}else Pi(r)&&!n&&r.isInline()?t.set(r.__key,r.getChildrenSize(),"element"):yr(r)&&t.set(r.__key,r.getTextContent().length,"text")}else if(r===i.getTextContent().length){const r=i.getNextSibling(),o=i.getParent();if(e&&Pi(r)&&r.isInline())t.set(r.__key,0,"element");else if((n||e)&&null===r&&Pi(o)&&o.isInline()&&!o.canInsertTextAfter()){const e=o.getNextSibling();yr(e)&&t.set(e.__key,0,"text")}}}function Kr(t,e,n){if("text"===t.type&&"text"===e.type){const n=t.isBefore(e),r=t.is(e);Ir(t,n,r),Ir(e,!n,r),r&&e.set(t.key,t.offset,t.type)}}function zr(t,e,n,r,i,o){if(null===t||null===n||!_o(i,t,n))return null;const s=Lr(t,e,wr(o)?o.anchor:null,i);if(null===s)return null;const l=Lr(n,r,wr(o)?o.focus:null,i);if(null===l)return null;if("element"===s.type&&"element"===l.type){const e=Wo(t),r=Wo(n);if(Li(e)&&Li(r))return null}return Kr(s,l),[s,l]}function Rr(t){return Pi(t)&&!t.isInline()}function Br(t,e,n,r,i,o){const s=gi(),l=new Er(kr(t,e,i),kr(n,r,o),0,"");return l.dirty=!0,s._selection=l,l}function Wr(){const t=kr("root",0,"element"),e=kr("root",0,"element");return new Er(t,e,0,"")}function Jr(){return new br(new Set)}function jr(t,e){return Ur(null,t,e,null)}function Ur(t,e,n,r){const i=n._window;if(null===i)return null;const o=r||i.event,s=o?o.type:void 0,l="selectionchange"===s,c=!Y&&(l||"beforeinput"===s||"compositionstart"===s||"compositionend"===s||"click"===s&&o&&3===o.detail||"drop"===s||void 0===s);let a,u,f,d;if(wr(t)&&!c)return t.clone();if(null===e)return null;if(a=e.anchorNode,u=e.focusNode,f=e.anchorOffset,d=e.focusOffset,(l||void 0===s)&&wr(t)&&!_o(n,a,u))return t.clone();const h=zr(a,f,u,d,n,t);if(null===h)return null;const[g,_]=h;let p=0,y="";if(wr(t)){const e=t.anchor;if(g.key===e.key)p=t.format,y=t.style;else{const t=g.getNode();yr(t)?(p=t.getFormat(),y=t.getStyle()):Pi(t)&&(p=t.getTextFormat(),y=t.getTextStyle())}}return new Er(g,_,p,y)}function $r(){return gi()._selection}function Vr(){return _i()._editorState._selection}function Yr(t,e,n,r=1){const i=t.anchor,o=t.focus,s=i.getNode(),l=o.getNode();if(!e.is(s)&&!e.is(l))return;const c=e.__key;if(t.isCollapsed()){const e=i.offset;if(n<=e&&r>0||n<e&&r<0){const n=Math.max(0,e+r);i.set(c,n,"element"),o.set(c,n,"element"),qr(t)}}else{const s=t.isBackward(),l=s?o:i,a=l.getNode(),u=s?i:o,f=u.getNode();if(e.is(a)){const t=l.offset;(n<=t&&r>0||n<t&&r<0)&&l.set(c,Math.max(0,t+r),"element")}if(e.is(f)){const t=u.offset;(n<=t&&r>0||n<t&&r<0)&&u.set(c,Math.max(0,t+r),"element")}}qr(t)}function qr(t){const e=t.anchor,n=e.offset,r=t.focus,i=r.offset,o=e.getNode(),s=r.getNode();if(t.isCollapsed()){if(!Pi(o))return;const t=o.getChildrenSize(),i=n>=t,s=i?o.getChildAtIndex(t-1):o.getChildAtIndex(n);if(yr(s)){let t=0;i&&(t=s.getTextContentSize()),e.set(s.__key,t,"text"),r.set(s.__key,t,"text")}return}if(Pi(o)){const t=o.getChildrenSize(),r=n>=t,i=r?o.getChildAtIndex(t-1):o.getChildAtIndex(n);if(yr(i)){let t=0;r&&(t=i.getTextContentSize()),e.set(i.__key,t,"text")}}if(Pi(s)){const t=s.getChildrenSize(),e=i>=t,n=e?s.getChildAtIndex(t-1):s.getChildAtIndex(i);if(yr(n)){let t=0;e&&(t=n.getTextContentSize()),r.set(n.__key,t,"text")}}}function Hr(t,e,n,r,i){let o=null,s=0,l=null;null!==r?(o=r.__key,yr(r)?(s=r.getTextContentSize(),l="text"):Pi(r)&&(s=r.getChildrenSize(),l="element")):null!==i&&(o=i.__key,yr(i)?l="text":Pi(i)&&(l="element")),null!==o&&null!==l?t.set(o,s,l):(s=e.getIndexWithinParent(),-1===s&&(s=n.getChildrenSize()),t.set(n.__key,s,"element"))}function Gr(t,e,n,r,i){"text"===t.type?t.set(n,t.offset+(e?0:i),"text"):t.offset>r.getIndexWithinParent()&&t.set(t.key,t.offset-1,"element")}function Xr(t,e,n,r,i){try{t.setBaseAndExtent(e,n,r,i)}catch(t){}}function Qr(t,e,n){const r=us(t,e.getKey());if(Pi(e)){const t=e.getDOMSlot(r);return[t.element,n+t.getFirstChildOffset()]}return[r,n]}function Zr(t,e,n,r,i,s,l){const c=r.anchorNode,a=r.focusNode,u=r.anchorOffset,f=r.focusOffset,d=document.activeElement;if(i.has(jn)&&d!==s||null!==d&&go(d))return;if(!wr(e))return void(null!==t&&_o(n,c,a)&&r.removeAllRanges());const h=e.anchor,g=e.focus,_=h.getNode(),p=g.getNode(),[y,m]=Qr(n,_,h.offset),[x,C]=Qr(n,p,g.offset),S=e.format,v=e.style,k=e.isCollapsed();let T=y,N=x,b=!1;var w,E,O,M,A;if(("text"===h.type?(T=To(y),b=_.getFormat()!==S||_.getStyle()!==v):wr(t)&&"text"===t.anchor.type&&(b=!0),"text"===g.type&&(N=To(x)),null!==T&&null!==N)&&(k&&(null===t||b||wr(t)&&(t.format!==S||t.style!==v))&&(w=S,E=v,O=m,M=h.key,A=performance.now(),gn=[w,E,O,M,A]),u!==m||f!==C||c!==T||a!==N||"Range"===r.type&&k||(null!==d&&s.contains(d)||i.has(Yn)||s.focus({preventScroll:!0}),"element"===h.type))){if(Xr(r,T,m,N,C),!o||!e.isCollapsed()||null===s||i.has(Yn)||null!==document.activeElement&&s.contains(document.activeElement)||s.focus({preventScroll:!0}),!i.has($n)&&e.isCollapsed()&&null!==s&&s===document.activeElement){const t=wr(e)&&"element"===e.anchor.type?T.childNodes[m]||null:r.rangeCount>0?r.getRangeAt(0):null;if(null!==t){let e;if(t instanceof Text){const n=document.createRange();n.selectNode(t),e=n.getBoundingClientRect()}else e=t.getBoundingClientRect();!function(t,e,n){const r=ds(n),i=ys(r);if(null===r||null===i)return;let{top:o,bottom:s}=e,l=0,c=0,a=n;for(;null!==a;){const e=a===r.body;if(e){l=0,c=ms(t).innerHeight;const e=i.getComputedStyle(r.documentElement),n=parseFloat(e.scrollPaddingTop),o=parseFloat(e.scrollPaddingBottom);isFinite(n)&&(l+=n),isFinite(o)&&(c-=o)}else{const t=a.getBoundingClientRect();l=t.top,c=t.bottom}let n=0;if(o<l?n=-(l-o):s>c&&(n=s-c),0!==n)if(e)i.scrollBy(0,n);else{const t=a.scrollTop;a.scrollTop+=n;const e=a.scrollTop-t;o-=e,s-=e}if(e)break;a=fs(a)}}(n,e,s)}}ln=!0}}function ti(t){let e=$r()||Vr();null===e&&(e=zo().selectEnd()),e.insertNodes(t)}function ei(){const t=$r();return null===t?"":t.getTextContent()}function ni(e){let n=e;e.isCollapsed()||n.removeText();const r=$r();wr(r)&&(n=r),wr(n)||t(161);const i=n.anchor;let o=i.getNode(),s=i.offset;for(;!Ks(o);){const t=o;if([o,s]=ri(o,s),t.is(o))break}return s}function ri(t,e){const n=t.getParent();if(!n){const t=Vi();return zo().append(t),t.select(),[zo(),0]}if(yr(t)){const r=t.splitText(e);if(0===r.length)return[n,t.getIndexWithinParent()];const i=0===e?0:1;return[n,r[0].getIndexWithinParent()+i]}if(!Pi(t)||0===e)return[n,t.getIndexWithinParent()];const r=t.getChildAtIndex(e);if(r){const n=new Er(kr(t.__key,e,"element"),kr(t.__key,e,"element"),0,""),i=t.insertNewAfter(n);i&&i.append(r,...r.getNextSiblings())}return[n,t.getIndexWithinParent()+1]}function ii(t,e,n,r,i="decorators-and-blocks"){if("move"===e&&"character"===r&&!t.isCollapsed()){const[e,r]=n===t.isBackward()?[t.focus,t.anchor]:[t.anchor,t.focus];return r.set(e.key,e.offset,e.type),!0}const o=Al(t.focus,n?"previous":"next"),s="lineboundary"===r,l="move"===e;let c=o,a="decorators-and-blocks"===i;if(!Wl(c)){for(const t of c){a=!1;const{origin:e}=t;if(!Li(e)||e.isIsolated()||(c=t,!s||!e.isInline()))break}if(a)for(const t of vl(o).iterNodeCarets("extend"===e?"shadowRoot":"root")){if(cl(t))t.origin.isInline()||(c=t);else{if(Pi(t.origin))continue;Li(t.origin)&&!t.origin.isInline()&&(c=t)}break}}if(c===o)return!1;if(l&&!s&&Li(c.origin)&&c.origin.isKeyboardSelectable()){const t=Jr();return t.add(c.origin.getKey()),Bo(t),!0}return c=Bl(c),l&&Pl(t.anchor,c),Pl(t.focus,c),a||!s}let oi=null,si=null,li=!1,ci=!1,ai=0;const ui={characterData:!0,childList:!0,subtree:!0};function fi(){return li||null!==oi&&oi._readOnly}function di(){li&&t(13)}function hi(){ai>99&&t(14)}function gi(){return null===oi&&t(195,pi()),oi}function _i(){return null===si&&t(196,pi()),si}function pi(){let t=0;const e=new Set,n=io.version;if("undefined"!=typeof window)for(const r of document.querySelectorAll("[contenteditable]")){const i=mo(r);if(po(i))t++;else if(i){let t=String(i.constructor.version||"<0.17.1");t===n&&(t+=" (separately built, likely a bundler configuration issue)"),e.add(t)}}let r=` Detected on the page: ${t} compatible editor(s) with version ${n}`;return e.size&&(r+=` and incompatible editors with versions ${Array.from(e).join(", ")}`),r}function yi(){return si}function mi(t,e,n){const r=e.__type,i=ao(t,r);let o=n.get(r);void 0===o&&(o=Array.from(i.transforms),n.set(r,o));const s=o.length;for(let t=0;t<s&&(o[t](e),e.isAttached());t++);}function xi(t,e){return void 0!==t&&t.__key!==e&&t.isAttached()}function Ci(t,e){if(!e)return;const n=t._updateTags;let r=e;Array.isArray(e)||(r=[e]);for(const t of r)n.add(t)}function Si(t){return vi(t,_i()._nodes)}function vi(e,n){const r=e.type,i=n.get(r);void 0===i&&t(17,r);const o=i.klass;e.type!==o.getType()&&t(18,o.name);const s=o.importJSON(e),l=e.children;if(Pi(s)&&Array.isArray(l))for(let t=0;t<l.length;t++){const e=vi(l[t],n);s.append(e)}return s}function ki(t,e,n){const r=oi,i=li,o=si;oi=e,li=!0,si=t;try{return n()}finally{oi=r,li=i,si=o}}function Ti(t,e){const n=t._pendingEditorState,r=t._rootElement,i=t._headless||null===r;if(null===n)return;const o=t._editorState,s=o._selection,l=n._selection,c=0!==t._dirtyType,a=oi,u=li,f=si,d=t._updating,h=t._observer;let g=null;if(t._pendingEditorState=null,t._editorState=n,!i&&c&&null!==h){si=t,oi=n,li=!1,t._updating=!0;try{const e=t._dirtyType,r=t._dirtyElements,i=t._dirtyLeaves;h.disconnect(),g=te(o,n,t,e,r,i)}catch(e){if(e instanceof Error&&t._onError(e),ci)throw e;return Zi(t,null,r,n),nt(t),t._dirtyType=2,ci=!0,Ti(t,o),void(ci=!1)}finally{h.observe(r,ui),t._updating=d,oi=a,li=u,si=f}}n._readOnly||(n._readOnly=!0);const _=t._dirtyLeaves,p=t._dirtyElements,y=t._normalizedNodes,m=t._updateTags,x=t._deferred;c&&(t._dirtyType=0,t._cloneNotNeeded.clear(),t._dirtyLeaves=new Set,t._dirtyElements=new Map,t._normalizedNodes=new Set,t._updateTags=new Set),function(t,e){const n=t._decorators;let r=t._pendingDecorators||n;const i=e._nodeMap;let o;for(o in r)i.has(o)||(r===n&&(r=Io(t)),delete r[o])}(t,n);const C=i?null:Es(ms(t));if(t._editable&&null!==C&&(c||null===l||l.dirty||!l.is(s))&&null!==r&&!m.has(Vn)){si=t,oi=n;try{if(null!==h&&h.disconnect(),c||null===l||l.dirty){const e=t._blockCursorElement;null!==e&&ws(e,t,r),Zr(s,l,t,C,m,r)}!function(t,e,n){let r=t._blockCursorElement;if(wr(n)&&n.isCollapsed()&&"element"===n.anchor.type&&e.contains(document.activeElement)){const i=n.anchor,o=i.getNode(),s=i.offset;let l=!1,c=null;if(s===o.getChildrenSize()){bs(o.getChildAtIndex(s-1))&&(l=!0)}else{const e=o.getChildAtIndex(s);if(null!==e&&bs(e)){const n=e.getPreviousSibling();(null===n||bs(n))&&(l=!0,c=t.getElementByKey(e.__key))}}if(l){const n=t.getElementByKey(o.__key);return null===r&&(t._blockCursorElement=r=function(t){const e=t.theme,n=document.createElement("div");n.contentEditable="false",n.setAttribute("data-lexical-cursor","true");let r=e.blockCursor;if(void 0!==r){if("string"==typeof r){const t=tc(r);r=e.blockCursor=t}void 0!==r&&n.classList.add(...r)}return n}(t._config)),e.style.caretColor="transparent",void(null===c?n.appendChild(r):n.insertBefore(r,c))}}null!==r&&ws(r,t,e)}(t,r,l)}finally{null!==h&&h.observe(r,ui),si=f,oi=a}}null!==g&&function(t,e,n,r,i){const o=Array.from(t._listeners.mutation),s=o.length;for(let t=0;t<s;t++){const[s,l]=o[t];for(const t of l){const o=e.get(t);void 0!==o&&s(o,{dirtyLeaves:r,prevEditorState:i,updateTags:n})}}}(t,g,m,_,o),wr(l)||null===l||null!==s&&s.is(l)||t.dispatchCommand(re,void 0);const S=t._pendingDecorators;null!==S&&(t._decorators=S,t._pendingDecorators=null,Ni("decorator",t,!0,S)),function(t,e,n){const r=Ko(e),i=Ko(n);r!==i&&Ni("textcontent",t,!0,i)}(t,e||o,n),Ni("update",t,!0,{dirtyElements:p,dirtyLeaves:_,editorState:n,mutatedNodes:g,normalizedNodes:y,prevEditorState:e||o,tags:m}),function(t,e){if(t._deferred=[],0!==e.length){const n=t._updating;t._updating=!0;try{for(let t=0;t<e.length;t++)e[t]()}finally{t._updating=n}}}(t,x),function(t){const e=t._updates;if(0!==e.length){const n=e.shift();if(n){const[e,r]=n;wi(t,e,r)}}}(t)}function Ni(t,e,n,...r){const i=e._updating;e._updating=n;try{const n=e._listeners[t],i=Array.from(n);for(const[t,e]of i){e&&e();const i=t(...r);n.has(t)?n.set(t,i):i&&i()}}finally{e._updating=i}}function bi(e,n){const r=e._updates;let i=n||!1;for(;0!==r.length;){const n=r.shift();if(n){const[r,o]=n,s=e._pendingEditorState;let l;void 0!==o&&(l=o.onUpdate,o.skipTransforms&&(i=!0),o.discrete&&(null===s&&t(191),s._flushSync=!0),l&&e._deferred.push(l),Ci(e,o.tag)),null==s?wi(e,r,o):r()}}return i}function wi(e,n,r){const i=e._updateTags;let o,s=!1,l=!1;void 0!==r&&(o=r.onUpdate,Ci(e,r.tag),s=r.skipTransforms||!1,l=r.discrete||!1),o&&e._deferred.push(o);const c=e._editorState;let a=e._pendingEditorState,u=!1;(null===a||a._readOnly)&&(a=e._pendingEditorState=zi(a||c),u=!0),a._flushSync=l;const f=oi,d=li,h=si,g=e._updating;oi=a,li=!1,e._updating=!0,si=e;const _=e._headless||null===e.getRootElement();so(null);try{u&&(_?null!==c._selection&&(a._selection=c._selection.clone()):a._selection=function(t,e){const n=t.getEditorState()._selection,r=Es(ms(t));return wr(n)||null==n?Ur(n,r,t,e):n.clone()}(e,r&&r.event||null));const i=e._compositionKey;n(),s=bi(e,s),function(t,e){const n=e.getEditorState()._selection,r=t._selection;if(wr(r)){const t=r.anchor,e=r.focus;let i;if("text"===t.type&&(i=t.getNode(),i.selectionTransform(n,r)),"text"===e.type){const t=e.getNode();i!==t&&t.selectionTransform(n,r)}}}(a,e),0!==e._dirtyType&&(s?function(t,e){const n=e._dirtyLeaves,r=t._nodeMap;for(const t of n){const e=r.get(t);yr(e)&&e.isAttached()&&e.isSimpleText()&&!e.isUnmergeable()&&xt(e)}}(a,e):function(t,e){const n=e._dirtyLeaves,r=e._dirtyElements,i=t._nodeMap,o=Ao(),s=new Map;let l=n,c=l.size,a=r,u=a.size;for(;c>0||u>0;){if(c>0){e._dirtyLeaves=new Set;for(const t of l){const r=i.get(t);yr(r)&&r.isAttached()&&r.isSimpleText()&&!r.isUnmergeable()&&xt(r),void 0!==r&&xi(r,o)&&mi(e,r,s),n.add(t)}if(l=e._dirtyLeaves,c=l.size,c>0){ai++;continue}}e._dirtyLeaves=new Set,e._dirtyElements=new Map,a.delete("root")&&a.set("root",!0);for(const t of a){const n=t[0],l=t[1];if(r.set(n,l),!l)continue;const c=i.get(n);void 0!==c&&xi(c,o)&&mi(e,c,s)}l=e._dirtyLeaves,c=l.size,a=e._dirtyElements,u=a.size,ai++}e._dirtyLeaves=n,e._dirtyElements=r}(a,e),bi(e),function(t,e,n,r){const i=t._nodeMap,o=e._nodeMap,s=[];for(const[t]of r){const e=o.get(t);void 0!==e&&(e.isAttached()||(Pi(e)&&V(e,t,i,o,s,r),i.has(t)||r.delete(t),s.push(t)))}for(const t of s)o.delete(t);for(const t of n){const e=o.get(t);void 0===e||e.isAttached()||(i.has(t)||n.delete(t),o.delete(t))}}(c,a,e._dirtyLeaves,e._dirtyElements));i!==e._compositionKey&&(a._flushSync=!0);const o=a._selection;if(wr(o)){const e=a._nodeMap,n=o.anchor.key,r=o.focus.key;void 0!==e.get(n)&&void 0!==e.get(r)||t(19)}else Or(o)&&0===o._nodes.size&&(a._selection=null)}catch(t){return t instanceof Error&&e._onError(t),e._pendingEditorState=c,e._dirtyType=2,e._cloneNotNeeded.clear(),e._dirtyLeaves=new Set,e._dirtyElements.clear(),void Ti(e)}finally{oi=f,li=d,si=h,e._updating=g,ai=0}const p=0!==e._dirtyType||e._deferred.length>0||function(t,e){const n=e.getEditorState()._selection,r=t._selection;if(null!==r){if(r.dirty||!r.is(n))return!0}else if(null!==n)return!0;return!1}(a,e);p?a._flushSync?(a._flushSync=!1,Ti(e)):u&&fo(()=>{Ti(e)}):(a._flushSync=!1,u&&(i.clear(),e._deferred=[],e._pendingEditorState=null))}function Ei(t,e,n){si===t&&void 0===n?e():wi(t,e,n)}class Oi{element;before;after;constructor(t,e,n){this.element=t,this.before=e||null,this.after=n||null}withBefore(t){return new Oi(this.element,t,this.after)}withAfter(t){return new Oi(this.element,this.before,t)}withElement(t){return this.element===t?this:new Oi(t,this.before,this.after)}insertChild(e){const n=this.before||this.getManagedLineBreak();return null!==n&&n.parentElement!==this.element&&t(222),this.element.insertBefore(e,n),this}removeChild(e){return e.parentElement!==this.element&&t(223),this.element.removeChild(e),this}replaceChild(e,n){return n.parentElement!==this.element&&t(224),this.element.replaceChild(e,n),this}getFirstChild(){const t=this.after?this.after.nextSibling:this.element.firstChild;return t===this.before||t===this.getManagedLineBreak()?null:t}getManagedLineBreak(){return this.element.__lexicalLineBreak||null}setManagedLineBreak(t){if(null===t)this.removeManagedLineBreak();else{const e="decorator"===t&&(d||c||l);this.insertManagedLineBreak(e)}}removeManagedLineBreak(){const t=this.getManagedLineBreak();if(t){const e=this.element,n="IMG"===t.nodeName?t.nextSibling:null;n&&e.removeChild(n),e.removeChild(t),e.__lexicalLineBreak=void 0}}insertManagedLineBreak(t){const e=this.getManagedLineBreak();if(e){if(t===("IMG"===e.nodeName))return;this.removeManagedLineBreak()}const n=this.element,r=this.before,i=document.createElement("br");if(n.insertBefore(i,r),t){const t=document.createElement("img");t.setAttribute("data-lexical-linebreak","true"),t.style.cssText="display: inline !important; border: 0px !important; margin: 0px !important;",t.alt="",n.insertBefore(t,i),n.__lexicalLineBreak=t}else n.__lexicalLineBreak=i}getFirstChildOffset(){let t=0;for(let e=this.after;null!==e;e=e.previousSibling)t++;return t}resolveChildIndex(t,e,n,r){if(n===this.element){const e=this.getFirstChildOffset();return[t,Math.min(e+t.getChildrenSize(),Math.max(e,r))]}const i=Mi(e,n);i.push(r);const o=Mi(e,this.element);let s=t.getIndexWithinParent();for(let t=0;t<o.length;t++){const e=i[t],n=o[t];if(void 0===e||e<n)break;if(e>n){s+=1;break}}return[t.getParentOrThrow(),s]}}function Mi(e,n){const r=[];let i=n;for(;i!==e&&null!==i;i=i.parentNode){let t=0;for(let e=i.previousSibling;null!==e;e=e.previousSibling)t++;r.push(t)}return i!==e&&t(225),r.reverse()}class Ai extends zn{__first;__last;__size;__format;__style;__indent;__dir;__textFormat;__textStyle;constructor(t){super(t),this.__first=null,this.__last=null,this.__size=0,this.__format=0,this.__style="",this.__indent=0,this.__dir=null,this.__textFormat=0,this.__textStyle=""}afterCloneFrom(t){super.afterCloneFrom(t),this.__key===t.__key&&(this.__first=t.__first,this.__last=t.__last,this.__size=t.__size),this.__indent=t.__indent,this.__format=t.__format,this.__style=t.__style,this.__dir=t.__dir,this.__textFormat=t.__textFormat,this.__textStyle=t.__textStyle}getFormat(){return this.getLatest().__format}getFormatType(){const t=this.getFormat();return W[t]||""}getStyle(){return this.getLatest().__style}getIndent(){return this.getLatest().__indent}getChildren(){const t=[];let e=this.getFirstChild();for(;null!==e;)t.push(e),e=e.getNextSibling();return t}getChildrenKeys(){const t=[];let e=this.getFirstChild();for(;null!==e;)t.push(e.__key),e=e.getNextSibling();return t}getChildrenSize(){return this.getLatest().__size}isEmpty(){return 0===this.getChildrenSize()}isDirty(){const t=_i()._dirtyElements;return null!==t&&t.has(this.__key)}isLastChild(){const t=this.getLatest(),e=this.getParentOrThrow().getLastChild();return null!==e&&e.is(t)}getAllTextNodes(){const t=[];let e=this.getFirstChild();for(;null!==e;){if(yr(e)&&t.push(e),Pi(e)){const n=e.getAllTextNodes();t.push(...n)}e=e.getNextSibling()}return t}getFirstDescendant(){let t=this.getFirstChild();for(;Pi(t);){const e=t.getFirstChild();if(null===e)break;t=e}return t}getLastDescendant(){let t=this.getLastChild();for(;Pi(t);){const e=t.getLastChild();if(null===e)break;t=e}return t}getDescendantByIndex(t){const e=this.getChildren(),n=e.length;if(t>=n){const t=e[n-1];return Pi(t)&&t.getLastDescendant()||t||null}const r=e[t];return Pi(r)&&r.getFirstDescendant()||r||null}getFirstChild(){const t=this.getLatest().__first;return null===t?null:Po(t)}getFirstChildOrThrow(){const e=this.getFirstChild();return null===e&&t(45,this.__key),e}getLastChild(){const t=this.getLatest().__last;return null===t?null:Po(t)}getLastChildOrThrow(){const e=this.getLastChild();return null===e&&t(96,this.__key),e}getChildAtIndex(t){const e=this.getChildrenSize();let n,r;if(t<e/2){for(n=this.getFirstChild(),r=0;null!==n&&r<=t;){if(r===t)return n;n=n.getNextSibling(),r++}return null}for(n=this.getLastChild(),r=e-1;null!==n&&r>=t;){if(r===t)return n;n=n.getPreviousSibling(),r--}return null}getTextContent(){let t="";const e=this.getChildren(),n=e.length;for(let r=0;r<n;r++){const i=e[r];t+=i.getTextContent(),Pi(i)&&r!==n-1&&!i.isInline()&&(t+=P)}return t}getTextContentSize(){let t=0;const e=this.getChildren(),n=e.length;for(let r=0;r<n;r++){const i=e[r];t+=i.getTextContentSize(),Pi(i)&&r!==n-1&&!i.isInline()&&(t+=2)}return t}getDirection(){return this.getLatest().__dir}getTextFormat(){return this.getLatest().__textFormat}hasFormat(t){if(""!==t){const e=B[t];return 0!==(this.getFormat()&e)}return!1}hasTextFormat(t){const e=z[t];return 0!==(this.getTextFormat()&e)}getFormatFlags(t,e){return No(this.getLatest().__textFormat,t,e)}getTextStyle(){return this.getLatest().__textStyle}select(t,e){di();const n=$r();let r=t,i=e;const o=this.getChildrenSize();if(!this.canBeEmpty())if(0===t&&0===e){const t=this.getFirstChild();if(yr(t)||Pi(t))return t.select(0,0)}else if(!(void 0!==t&&t!==o||void 0!==e&&e!==o)){const t=this.getLastChild();if(yr(t)||Pi(t))return t.select()}void 0===r&&(r=o),void 0===i&&(i=o);const s=this.__key;return wr(n)?(n.anchor.set(s,r,"element"),n.focus.set(s,i,"element"),n.dirty=!0,n):Br(s,r,s,i,"element","element")}selectStart(){const t=this.getFirstDescendant();return t?t.selectStart():this.select()}selectEnd(){const t=this.getLastDescendant();return t?t.selectEnd():this.select()}clear(){const t=this.getWritable();return this.getChildren().forEach(t=>t.remove()),t}append(...t){return this.splice(this.getChildrenSize(),0,t)}setDirection(t){const e=this.getWritable();return e.__dir=t,e}setFormat(t){return this.getWritable().__format=""!==t?B[t]:0,this}setStyle(t){return this.getWritable().__style=t||"",this}setTextFormat(t){const e=this.getWritable();return e.__textFormat=t,e}setTextStyle(t){const e=this.getWritable();return e.__textStyle=t,e}setIndent(t){return this.getWritable().__indent=t,this}splice(e,n,r){Kn(this)&&t(324,this.__key,this.__type);const i=this.getChildrenSize(),o=this.getWritable();e+n<=i||t(226,String(e),String(n),String(i));const s=o.__key,l=[],c=[],a=this.getChildAtIndex(e+n);let u=null,f=i-n+r.length;if(0!==e)if(e===i)u=this.getLastChild();else{const t=this.getChildAtIndex(e);null!==t&&(u=t.getPreviousSibling())}if(n>0){let e=null===u?this.getFirstChild():u.getNextSibling();for(let r=0;r<n;r++){null===e&&t(100);const n=e.getNextSibling(),r=e.__key;Eo(e.getWritable()),c.push(r),e=n}}let d=u;for(const e of r){null!==d&&e.is(d)&&(u=d=d.getPreviousSibling());const n=e.getWritable();n.__parent===s&&f--,Eo(n);const r=e.__key;if(null===d)o.__first=r,n.__prev=null;else{const t=d.getWritable();t.__next=r,n.__prev=t.__key}e.__key===s&&t(76),n.__parent=s,l.push(r),d=e}if(e+n===i){if(null!==d){d.getWritable().__next=null,o.__last=d.__key}}else if(null!==a){const t=a.getWritable();if(null!==d){const e=d.getWritable();t.__prev=d.__key,e.__next=a.__key}else t.__prev=null}if(o.__size=f,c.length){const t=$r();if(wr(t)){const e=new Set(c),n=new Set(l),{anchor:r,focus:i}=t;Di(r,e,n)&&Hr(r,r.getNode(),this,u,a),Di(i,e,n)&&Hr(i,i.getNode(),this,u,a),0!==f||this.canBeEmpty()||Ss(this)||this.remove()}}return o}getDOMSlot(t){return new Oi(t)}exportDOM(t){const{element:e}=super.exportDOM(t);if(Ps(e)){const t=this.getIndent();t>0&&(e.style.paddingInlineStart=40*t+"px");const n=this.getDirection();n&&(e.dir=n)}return{element:e}}exportJSON(){const t={children:[],direction:this.getDirection(),format:this.getFormatType(),indent:this.getIndent(),...super.exportJSON()},e=this.getTextFormat(),n=this.getTextStyle();return 0===e&&""===n||Ss(this)||this.getChildren().some(yr)||(0!==e&&(t.textFormat=e),""!==n&&(t.textStyle=n)),t}updateFromJSON(t){return super.updateFromJSON(t).setFormat(t.format).setIndent(t.indent).setDirection(t.direction).setTextFormat(t.textFormat||0).setTextStyle(t.textStyle||"")}insertNewAfter(t,e){return null}canIndent(){return!0}collapseAtStart(t){return!1}excludeFromCopy(t){return!1}canReplaceWith(t){return!0}canInsertAfter(t){return!0}canBeEmpty(){return!0}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}isInline(){return!1}isShadowRoot(){return!1}canMergeWith(t){return!1}extractWithChild(t,e,n){return!1}canMergeWhenEmpty(){return!1}reconcileObservedMutation(t,e){const n=this.getDOMSlot(t);let r=n.getFirstChild();for(let t=this.getFirstChild();t;t=t.getNextSibling()){const i=e.getElementByKey(t.getKey());null!==i&&(null==r?(n.insertChild(i),r=i):r!==i&&n.replaceChild(i,r),r=r.nextSibling)}}}function Pi(t){return t instanceof Ai}function Di(t,e,n){let r=t.getNode();for(;r;){const t=r.__key;if(e.has(t)&&!n.has(t))return!0;r=r.getParent()}return!1}class Fi extends zn{decorate(t,e){return null}isIsolated(){return!1}isInline(){return!0}isKeyboardSelectable(){return!0}}function Li(t){return t instanceof Fi}class Ii extends Ai{__cachedText;static getType(){return"root"}static clone(){return new Ii}constructor(){super("root"),this.__cachedText=null}getTopLevelElementOrThrow(){t(51)}getTextContent(){const t=this.__cachedText;return!fi()&&0!==_i()._dirtyType||null===t?super.getTextContent():t}remove(){t(52)}replace(e){t(53)}insertBefore(e){t(54)}insertAfter(e){t(55)}updateDOM(t,e){return!1}splice(e,n,r){for(const e of r)Pi(e)||Li(e)||t(282);return super.splice(e,n,r)}static importJSON(t){return zo().updateFromJSON(t)}collapseAtStart(){return!0}}function Ki(t){return t instanceof Ii}function zi(t){return new Ji(new Map(t._nodeMap))}function Ri(){return new Ji(new Map([["root",new Ii]]))}function Bi(e){const n=e.exportJSON(),r=e.constructor;if(n.type!==r.getType()&&t(130,r.name),Pi(e)){const i=n.children;Array.isArray(i)||t(59,r.name);const o=e.getChildren();for(let t=0;t<o.length;t++){const e=Bi(o[t]);i.push(e)}}return n}function Wi(t){return t instanceof Ji}class Ji{_nodeMap;_selection;_flushSync;_readOnly;constructor(t,e){this._nodeMap=t,this._selection=e||null,this._flushSync=!1,this._readOnly=!1}isEmpty(){return 1===this._nodeMap.size&&null===this._selection}read(t,e){return ki(e&&e.editor||null,this,t)}clone(t){const e=new Ji(this._nodeMap,void 0===t?this._selection:t);return e._readOnly=!0,e}toJSON(){return ki(null,this,()=>({root:Bi(zo())}))}}class ji extends Ai{static getType(){return"artificial"}createDOM(t){return document.createElement("div")}}class Ui extends Ai{static getType(){return"paragraph"}static clone(t){return new Ui(t.__key)}createDOM(t){const e=document.createElement("p"),n=rs(t.theme,"paragraph");if(void 0!==n){e.classList.add(...n)}return e}updateDOM(t,e,n){return!1}static importDOM(){return{p:t=>({conversion:$i,priority:0})}}exportDOM(t){const{element:e}=super.exportDOM(t);if(Ps(e)){this.isEmpty()&&e.append(document.createElement("br"));const t=this.getFormatType();t&&(e.style.textAlign=t)}return{element:e}}static importJSON(t){return Vi().updateFromJSON(t)}exportJSON(){const t=super.exportJSON();if(void 0===t.textFormat||void 0===t.textStyle){const e=this.getChildren().find(yr);e?(t.textFormat=e.getFormat(),t.textStyle=e.getStyle()):(t.textFormat=this.getTextFormat(),t.textStyle=this.getTextStyle())}return t}insertNewAfter(t,e){const n=Vi();n.setTextFormat(t.format),n.setTextStyle(t.style);const r=this.getDirection();return n.setDirection(r),n.setFormat(this.getFormatType()),n.setStyle(this.getStyle()),this.insertAfter(n,e),n}collapseAtStart(){const t=this.getChildren();if(0===t.length||yr(t[0])&&""===t[0].getTextContent().trim()){if(null!==this.getNextSibling())return this.selectNext(),this.remove(),!0;if(null!==this.getPreviousSibling())return this.selectPrevious(),this.remove(),!0}return!1}}function $i(t){const e=Vi();if(t.style&&(e.setFormat(t.style.textAlign),Us(t,e)),""===e.getFormatType()){const n=t.getAttribute("align");n&&n&&n in B&&e.setFormat(n)}return{node:e}}function Vi(){return ks(new Ui)}function Yi(t){return t instanceof Ui}const qi=0,Hi=1,Gi=2,Xi=3,Qi=4;function Zi(t,e,n,r){const i=t._keyToDOMMap;i.clear(),t._editorState=Ri(),t._pendingEditorState=r,t._compositionKey=null,t._dirtyType=0,t._cloneNotNeeded.clear(),t._dirtyLeaves=new Set,t._dirtyElements.clear(),t._normalizedNodes=new Set,t._updateTags=new Set,t._updates=[],t._blockCursorElement=null;const o=t._observer;null!==o&&(o.disconnect(),t._observer=null),null!==e&&(e.textContent=""),null!==n&&(n.textContent="",i.set("root",n))}function to(t){const e=new Set,n=new Set;let r=t;for(;r;){const{ownNodeConfig:t}=qs(r),i=r.transform;if(!n.has(i)){n.add(i);const t=r.transform();t&&e.add(t)}if(t){const n=t.$transform;n&&e.add(n),r=t.extends}else{const t=Object.getPrototypeOf(r);r=t.prototype instanceof zn&&t!==zn?t:void 0}}return e}function eo(t){const e=t||{},n=yi(),r=e.theme||{},i=void 0===t?n:e.parentEditor||null,o=e.disableEvents||!1,s=Ri(),l=e.namespace||(null!==i?i._config.namespace:Uo()),c=e.editorState,a=[Ii,lr,Gn,xr,Ui,ji,...e.nodes||[]],{onError:u,html:f}=e,d=void 0===e.editable||e.editable;let h;if(void 0===t&&null!==n)h=n._nodes;else{h=new Map;for(let t=0;t<a.length;t++){let e=a[t],n=null,r=null;if("function"!=typeof e){const t=e;e=t.replace,n=t.with,r=t.withKlass||null}qs(e);const i=e.getType(),o=to(e);h.set(i,{exportDOM:f&&f.export?f.export.get(e):void 0,klass:e,replace:n,replaceWithKlass:r,sharedNodeState:ct(a[t]),transforms:o})}}const g=new io(s,i,h,{disableEvents:o,namespace:l,theme:r},u||console.error,function(t,e){const n=new Map,r=new Set,i=t=>{Object.keys(t).forEach(e=>{let r=n.get(e);void 0===r&&(r=[],n.set(e,r)),r.push(t[e])})};return t.forEach(t=>{const e=t.klass.importDOM;if(null==e||r.has(e))return;r.add(e);const n=e.call(t.klass);null!==n&&i(n)}),e&&i(e),n}(h,f?f.import:void 0),d,t);return void 0!==c&&(g._pendingEditorState=c,g._dirtyType=2),function(t){t.registerCommand(se,Sn,qi),t.registerCommand(le,vn,qi),t.registerCommand(ce,kn,qi),t.registerCommand(ae,Tn,qi),t.registerCommand(Se,bn,qi)}(g),g}function no(t,e){const n=t.get(e);t.delete(e),n&&n()}function ro(t,e,n){return t.set(e,n),no.bind(null,t,e)}class io{static version;_headless;_parentEditor;_rootElement;_editorState;_pendingEditorState;_compositionKey;_deferred;_keyToDOMMap;_updates;_updating;_listeners;_commands;_nodes;_decorators;_pendingDecorators;_config;_dirtyType;_cloneNotNeeded;_dirtyLeaves;_dirtyElements;_normalizedNodes;_updateTags;_observer;_key;_onError;_htmlConversions;_window;_editable;_blockCursorElement;_createEditorArgs;constructor(t,e,n,r,i,o,s,l){this._createEditorArgs=l,this._parentEditor=e,this._rootElement=null,this._editorState=t,this._pendingEditorState=null,this._compositionKey=null,this._deferred=[],this._keyToDOMMap=new Map,this._updates=[],this._updating=!1,this._listeners={decorator:new Map,editable:new Map,mutation:new Map,root:new Map,textcontent:new Map,update:new Map},this._commands=new Map,this._config=r,this._nodes=n,this._decorators={},this._pendingDecorators=null,this._dirtyType=0,this._cloneNotNeeded=new Set,this._dirtyLeaves=new Set,this._dirtyElements=new Map,this._normalizedNodes=new Set,this._updateTags=new Set,this._observer=null,this._key=Uo(),this._onError=i,this._htmlConversions=o,this._editable=s,this._headless=null!==e&&e._headless,this._window=null,this._blockCursorElement=null}isComposing(){return null!=this._compositionKey}registerUpdateListener(t){return ro(this._listeners.update,t)}registerEditableListener(t){return ro(this._listeners.editable,t)}registerDecoratorListener(t){return ro(this._listeners.decorator,t)}registerTextContentListener(t){return ro(this._listeners.textcontent,t)}registerRootListener(t){const e=this._listeners.root;return rc(ro(e,t,t(this._rootElement,null)||void 0),()=>function(t,e,n){const r=t.get(e);r&&r(),t.set(e,e(...n)||void 0)}(e,t,[null,this._rootElement]))}registerCommand(e,n,r){void 0===r&&t(35);const i=this._commands;i.has(e)||i.set(e,[new Set,new Set,new Set,new Set,new Set]);const o=i.get(e);void 0===o&&t(36,String(e));const s=o[r];return s.add(n),()=>{s.delete(n),o.every(t=>0===t.size)&&i.delete(e)}}registerMutationListener(t,e,n){const r=this.resolveRegisteredNodeAfterReplacements(this.getRegisteredNode(t)).klass,i=this._listeners.mutation;let o=i.get(e);void 0===o&&(o=new Set,i.set(e,o)),o.add(r);const s=n&&n.skipInitialization;return void 0!==s&&s||this.initializeMutationListener(e,r),()=>{o.delete(r),0===o.size&&i.delete(e)}}getRegisteredNode(e){const n=this._nodes.get(e.getType());return void 0===n&&t(37,e.name),n}resolveRegisteredNodeAfterReplacements(t){for(;t.replaceWithKlass;)t=this.getRegisteredNode(t.replaceWithKlass);return t}initializeMutationListener(t,e){const n=this._editorState,r=Ws(n).get(e.getType());if(!r)return;const i=new Map;for(const t of r.keys())i.set(t,"created");i.size>0&&t(i,{dirtyLeaves:new Set,prevEditorState:n,updateTags:new Set(["registerMutationListener"])})}registerNodeTransformToKlass(t,e){const n=this.getRegisteredNode(t);return n.transforms.add(e),n}registerNodeTransform(t,e){const n=this.registerNodeTransformToKlass(t,e),r=[n],i=n.replaceWithKlass;if(null!=i){const t=this.registerNodeTransformToKlass(i,e);r.push(t)}return function(t,e){const n=Ws(t.getEditorState()),r=[];for(const t of e){const e=n.get(t);e&&r.push(e)}if(0===r.length)return;t.update(()=>{for(const t of r)for(const e of t.keys()){const t=Po(e);t&&t.markDirty()}},null===t._pendingEditorState?{tag:Wn}:void 0)}(this,r.map(t=>t.klass.getType())),()=>{r.forEach(t=>t.transforms.delete(e))}}hasNode(t){return this._nodes.has(t.getType())}hasNodes(t){return t.every(this.hasNode.bind(this))}dispatchCommand(t,e){return as(this,t,e)}getDecorators(){return this._decorators}getRootElement(){return this._rootElement}getKey(){return this._key}setRootElement(t){const e=this._rootElement;if(t!==e){const n=rs(this._config.theme,"root"),r=this._pendingEditorState||this._editorState;if(this._rootElement=t,Zi(this,e,t,r),null!==e&&(this._config.disableEvents||Dn(e),null!=n&&e.classList.remove(...n)),null!==t){const e=ys(t),r=t.style;r.userSelect="text",r.whiteSpace="pre-wrap",r.wordBreak="break-word",t.setAttribute("data-lexical-editor","true"),this._window=e,this._dirtyType=2,nt(this),this._updateTags.add(Wn),Ti(this),this._config.disableEvents||function(t,e){const n=t.ownerDocument;on.set(t,n);const r=sn.get(n)??0;r<1&&n.addEventListener("selectionchange",On),sn.set(n,r+1),t.__lexicalEditor=e;const i=wn(t);for(let n=0;n<Ze.length;n++){const[r,o]=Ze[n],s="function"==typeof o?t=>{An(t)||(Mn(t),(e.isEditable()||"click"===r)&&o(t,e))}:t=>{if(An(t))return;Mn(t);const n=e.isEditable();switch(r){case"cut":return n&&as(e,je,t);case"copy":return as(e,Je,t);case"paste":return n&&as(e,ge,t);case"dragstart":return n&&as(e,Re,t);case"dragover":return n&&as(e,Be,t);case"dragend":return n&&as(e,We,t);case"focus":return n&&as(e,He,t);case"blur":return n&&as(e,Ge,t);case"drop":return n&&as(e,Ke,t)}};t.addEventListener(r,s),i.push(()=>{t.removeEventListener(r,s)})}}(t,this),null!=n&&t.classList.add(...n)}else this._window=null,this._updateTags.add(Wn),Ti(this);Ni("root",this,!1,t,e)}}getElementByKey(t){return this._keyToDOMMap.get(t)||null}getEditorState(){return this._editorState}setEditorState(e,n){e.isEmpty()&&t(38);let r=e;r._readOnly&&(r=zi(e),r._selection=e._selection?e._selection.clone():null),et(this);const i=this._pendingEditorState,o=this._updateTags,s=void 0!==n?n.tag:null;null===i||i.isEmpty()||(null!=s&&o.add(s),Ti(this)),this._pendingEditorState=r,this._dirtyType=2,this._dirtyElements.set("root",!1),this._compositionKey=null,null!=s&&o.add(s),this._updating||Ti(this)}parseEditorState(t,e){return function(t,e,n){const r=Ri(),i=oi,o=li,s=si,l=e._dirtyElements,c=e._dirtyLeaves,a=e._cloneNotNeeded,u=e._dirtyType;e._dirtyElements=new Map,e._dirtyLeaves=new Set,e._cloneNotNeeded=new Set,e._dirtyType=0,oi=r,li=!1,si=e,so(null);try{const i=e._nodes;vi(t.root,i),n&&n(r),r._readOnly=!0}catch(t){t instanceof Error&&e._onError(t)}finally{e._dirtyElements=l,e._dirtyLeaves=c,e._cloneNotNeeded=a,e._dirtyType=u,oi=i,li=o,si=s}return r}("string"==typeof t?JSON.parse(t):t,this,e)}read(t){return Ti(this),this.getEditorState().read(t,{editor:this})}update(t,e){!function(t,e,n){t._updating?t._updates.push([e,n]):wi(t,e,n)}(this,t,e)}focus(t,e={}){const n=this._rootElement;null!==n&&(n.setAttribute("autocapitalize","off"),Ei(this,()=>{const r=$r(),i=zo();null!==r?r.dirty||Bo(r.clone()):0!==i.getChildrenSize()&&("rootStart"===e.defaultSelection?i.selectStart():i.selectEnd()),gs("focus"),_s(()=>{n.removeAttribute("autocapitalize"),t&&t()})}),null===this._pendingEditorState&&n.removeAttribute("autocapitalize"))}blur(){const t=this._rootElement;null!==t&&t.blur();const e=Es(this._window);null!==e&&e.removeAllRanges()}isEditable(){return this._editable}setEditable(t){this._editable!==t&&(this._editable=t,Ni("editable",this,!0,t))}toJSON(){return{editorState:this._editorState.toJSON()}}}io.version="0.42.0+prod.esm";let oo=null;function so(t){oo=t}let lo=1;function co(t){lo=void 0!==t?t:1}function ao(e,n){const r=uo(e,n);return void 0===r&&t(30,n),r}function uo(t,e){return t._nodes.get(e)}const fo="function"==typeof queueMicrotask?queueMicrotask:t=>{Promise.resolve().then(t)};function ho(t){return Li(Lo(t))}function go(t){const e=document.activeElement;if(!Ps(e))return!1;const n=e.nodeName;return Li(Lo(t))&&("INPUT"===n||"TEXTAREA"===n||"true"===e.contentEditable&&null==mo(e))}function _o(t,e,n){const r=t.getRootElement();try{return null!==r&&r.contains(e)&&r.contains(n)&&null!==e&&!go(e)&&yo(e)===t}catch(t){return!1}}function po(t){return t instanceof io}function yo(t){let e=t;for(;null!=e;){const t=mo(e);if(po(t))return t;e=fs(e)}return null}function mo(t){return t?t.__lexicalEditor:null}function xo(t){return I.test(t)?"rtl":K.test(t)?"ltr":null}function Co(t){return Sr(t)||t.isToken()}function So(t){return Co(t)||t.isSegmented()}function vo(t){return Ds(t)&&3===t.nodeType}function ko(t){return Ds(t)&&9===t.nodeType}function To(t){let e=t;for(;null!=e;){if(vo(e))return e;e=e.firstChild}return null}function No(t,e,n){const r=z[e];if(null!==n&&(t&r)===(n&r))return t;let i=t^r;return"subscript"===e?i&=~z.superscript:"superscript"===e?i&=~z.subscript:"lowercase"===e?(i&=~z.uppercase,i&=~z.capitalize):"uppercase"===e?(i&=~z.lowercase,i&=~z.capitalize):"capitalize"===e&&(i&=~z.lowercase,i&=~z.uppercase),i}function bo(t){return yr(t)||Zn(t)||Li(t)}function wo(t,e){const n=function(){const t=oo;return oo=null,t}();if(null!=(e=e||n&&n.__key))return void(t.__key=e);di(),hi();const r=_i(),i=gi(),o=""+lo++;i._nodeMap.set(o,t),Pi(t)?r._dirtyElements.set(o,!0):r._dirtyLeaves.add(o),r._cloneNotNeeded.add(o),r._dirtyType=1,t.__key=o}function Eo(t){const e=t.getParent();if(null!==e){const n=t.getWritable(),r=e.getWritable(),i=t.getPreviousSibling(),o=t.getNextSibling(),s=null!==o?o.__key:null,l=null!==i?i.__key:null,c=null!==i?i.getWritable():null,a=null!==o?o.getWritable():null;null===i&&(r.__first=s),null===o&&(r.__last=l),null!==c&&(c.__next=s),null!==a&&(a.__prev=l),n.__prev=null,n.__next=null,n.__parent=null,r.__size--}}function Oo(e){hi(),Kn(e)&&t(323,e.__key,e.__type);const n=e.getLatest(),r=n.__parent,i=gi(),o=_i(),s=i._nodeMap,l=o._dirtyElements;null!==r&&function(t,e,n){let r=t;for(;null!==r;){if(n.has(r))return;const t=e.get(r);if(void 0===t)break;n.set(r,!1),r=t.__parent}}(r,s,l);const c=n.__key;o._dirtyType=1,Pi(e)?l.set(c,!0):o._dirtyLeaves.add(c)}function Mo(t){di();const e=_i(),n=e._compositionKey;if(t!==n){if(e._compositionKey=t,null!==n){const t=Po(n);null!==t&&t.getWritable()}if(null!==t){const e=Po(t);null!==e&&e.getWritable()}}}function Ao(){if(fi())return null;return _i()._compositionKey}function Po(t,e){const n=(e||gi())._nodeMap.get(t);return void 0===n?null:n}function Do(t,e){const n=Fo(t,_i());return void 0!==n?Po(n,e):null}function Fo(t,e){return t[`__lexicalKey_${e._key}`]}function Lo(t,e){let n=t;for(;null!=n;){const t=Do(n,e);if(null!==t)return t;n=fs(n)}return null}function Io(t){const e=t._decorators,n=Object.assign({},e);return t._pendingDecorators=n,n}function Ko(t){return t.read(()=>zo().getTextContent())}function zo(){return Ro(gi())}function Ro(t){return t._nodeMap.get("root")}function Bo(t){di();const e=gi();null!==t&&(t.dirty=!0,t.setCachedNodes(null)),e._selection=t}function Wo(t){const e=_i(),n=function(t,e){let n=t;for(;null!=n;){const t=Fo(n,e);if(void 0!==t)return t;n=fs(n)}return null}(t,e);if(null===n){return t===e.getRootElement()?Po("root"):null}return Po(n)}function Jo(t){return/[\uD800-\uDBFF][\uDC00-\uDFFF]/g.test(t)}function jo(t){const e=[];for(let n=t;null!==n;n=n._updating?null:n._parentEditor)e.push(n);return e}function Uo(){return Math.random().toString(36).replace(/[^a-z]+/g,"").substring(0,5)}function $o(t){return vo(t)?t.nodeValue:null}function Vo(t,e,n){const r=Es(ms(e));if(null===r)return;const i=r.anchorNode;let{anchorOffset:o,focusOffset:s}=r;if(null!==i){let e=$o(i);const r=Lo(i);if(null!==e&&yr(r)){if((e===A||e===D)&&n){const t=n.length;e=n,o=t,s=t}null!==e&&Yo(r,e,o,s,t)}}}function Yo(t,e,n,r,i){let o=t;if(o.isAttached()&&(i||!o.isDirty())){const s=o.isComposing();let a=e;if((s||i)&&(e.endsWith(A)&&(a=e.slice(0,-A.length)),i)){const t=D;let e;for(;-1!==(e=a.indexOf(t));)a=a.slice(0,e)+a.slice(e+t.length),null!==n&&n>e&&(n=Math.max(e,n-t.length)),null!==r&&r>e&&(r=Math.max(e,r-t.length))}const u=o.getTextContent();if(i||a!==u){if(""===a){if(Mo(null),l||c||d)o.remove();else{const t=_i();setTimeout(()=>{t.update(()=>{o.isAttached()&&o.remove()})},20)}return}const e=o.getParent(),i=Vr(),u=o.getTextContentSize(),f=Ao(),h=o.getKey();if(o.isToken()||null!==f&&h===f&&!s||wr(i)&&(null!==e&&!e.canInsertTextBefore()&&0===i.anchor.offset||i.anchor.key===t.__key&&0===i.anchor.offset&&!o.canInsertTextBefore()&&!s||i.focus.key===t.__key&&i.focus.offset===u&&!o.canInsertTextAfter()&&!s))return void o.markDirty();const g=$r();if(!wr(g)||null===n||null===r)return void qo(o,a,g);if(g.setTextNodeRange(o,n,o,r),o.isSegmented()){const t=pr(o.getTextContent());o.replace(t),o=t}qo(o,a,g)}}}function qo(t,e,n){if(t.setTextContent(e),wr(n)){const e=t.getKey();for(const r of["anchor","focus"]){const i=n[r];"text"===i.type&&i.key===e&&(i.offset=gl(t,i.offset,"clamp"))}}}function Ho(t,e,n){const r=e[n]||!1;return"any"===r||r===t[n]}function Go(t,e){return Ho(t,e,"altKey")&&Ho(t,e,"ctrlKey")&&Ho(t,e,"shiftKey")&&Ho(t,e,"metaKey")}function Xo(t,e,n){if(!Go(t,n))return!1;if(t.key.toLowerCase()===e.toLowerCase())return!0;if(e.length>1)return!1;if(1===t.key.length&&t.key.charCodeAt(0)<=127)return!1;const r="Key"+e.toUpperCase();return t.code===r}const Qo={ctrlKey:!i,metaKey:i},Zo={altKey:i,ctrlKey:!i};function ts(t){return"Backspace"===t.key}function es(t){return Xo(t,"a",Qo)}function ns(t){const e=zo();if(wr(t)){const e=t.anchor,n=t.focus,r=e.getNode().getTopLevelElementOrThrow().getParentOrThrow();return e.set(r.getKey(),0,"element"),n.set(r.getKey(),r.getChildrenSize(),"element"),Ct(t),t}{const t=e.select(0,e.getChildrenSize());return Bo(Ct(t)),t}}function rs(t,e){void 0===t.__lexicalClassNameCache&&(t.__lexicalClassNameCache={});const n=t.__lexicalClassNameCache,r=n[e];if(void 0!==r)return r;const i=t[e];if("string"==typeof i){const t=tc(i);return n[e]=t,t}return i}function is(e,n,r,i,o){if(0===r.size)return;const s=i.__type,l=i.__key,c=n.get(s);void 0===c&&t(33,s);const a=c.klass;let u=e.get(a);void 0===u&&(u=new Map,e.set(a,u));const f=u.get(l),d="destroyed"===f&&"created"===o;(void 0===f||d)&&u.set(l,d?"updated":o)}function os(t){const e=t.getType(),n=gi();if(n._readOnly){const t=Ws(n).get(e);return t?Array.from(t.values()):[]}const r=n._nodeMap,i=[];for(const[,n]of r)n instanceof t&&n.__type===e&&n.isAttached()&&i.push(n);return i}function ss(t,e,n){const r=t.getParent();let i=n,o=t;return null!==r&&(e&&0===n?(i=o.getIndexWithinParent(),o=r):e||n!==o.getChildrenSize()||(i=o.getIndexWithinParent()+1,o=r)),o.getChildAtIndex(e?i-1:i)}function ls(t,e){const n=t.offset;if("element"===t.type){return ss(t.getNode(),e,n)}{const r=t.getNode();if(e&&0===n||!e&&n===r.getTextContentSize()){const t=e?r.getPreviousSibling():r.getNextSibling();return null===t?ss(r.getParentOrThrow(),e,r.getIndexWithinParent()+(e?0:1)):t}}return null}function cs(t){const e=ms(t).event,n=e&&e.inputType;return"insertFromPaste"===n||"insertFromPasteAsQuotation"===n}function as(t,e,n){return function(t,e,n){const r=jo(t);for(let i=4;i>=0;i--)for(let o=0;o<r.length;o++){const s=r[o],l=s._commands.get(e);if(void 0!==l){const e=l[i];if(void 0!==e){const r=Array.from(e),i=r.length;let o=!1;if(Ei(s,()=>{for(let e=0;e<i;e++)if(r[e](n,t))return void(o=!0)}),o)return o}}}return!1}(t,e,n)}function us(e,n){const r=e._keyToDOMMap.get(n);return void 0===r&&t(75,n),r}function fs(t){const e=t.assignedSlot||t.parentElement;return Fs(e)?e.host:e}function ds(t){return ko(t)?t:Ps(t)?t.ownerDocument:null}function hs(t){return _i()._updateTags.has(t)}function gs(t){di();_i()._updateTags.add(t)}function _s(t){di();_i()._deferred.push(t)}function ps(t,e){let n=t.getParent();for(;null!==n;){if(n.is(e))return!0;n=n.getParent()}return!1}function ys(t){const e=ds(t);return e?e.defaultView:null}function ms(e){const n=e._window;return null===n&&t(78),n}function xs(t){return Pi(t)&&t.isInline()||Li(t)&&t.isInline()}function Cs(t){let e=t.getParentOrThrow();for(;null!==e;){if(Ss(e))return e;e=e.getParentOrThrow()}return e}function Ss(t){return Ki(t)||Pi(t)&&t.isShadowRoot()}function vs(t,e=!1){const n=t.constructor.clone(t);return wo(n,null),n.afterCloneFrom(t),e||n.resetOnCopyNodeFrom(t),n}function ks(e){const n=_i(),r=e.getType(),i=uo(n,r);void 0===i&&t(200,e.constructor.name,r);const{replace:o,replaceWithKlass:s}=i;if(null!==o){const n=o(e),i=n.constructor;return null!==s?n instanceof s||t(201,s.name,s.getType(),i.name,i.getType(),e.constructor.name,r):n instanceof e.constructor&&i!==e.constructor||t(202,i.name,i.getType(),e.constructor.name,r),n.__key===e.__key&&t(203,e.constructor.name,r,i.name,i.getType()),n}return e}function Ts(e,n){!Ki(e.getParent())||Pi(n)||Li(n)||t(99)}function Ns(e){const n=Po(e);return null===n&&t(63,e),n}function bs(t){return(Li(t)||Pi(t)&&!t.canBeEmpty())&&!t.isInline()}function ws(t,e,n){n.style.removeProperty("caret-color"),e._blockCursorElement=null;const r=t.parentElement;null!==r&&r.removeChild(t)}function Es(t){return n?(t||window).getSelection():null}function Os(t){const e=ys(t);return e?e.getSelection():null}function Ms(e,n){let r=e.getChildAtIndex(n);null==r&&(r=e),Ss(e)&&t(102);const i=e=>{const n=e.getParentOrThrow(),o=Ss(n),s=e!==r||o?vs(e):e;if(o)return Pi(e)&&Pi(s)||t(133),e.insertAfter(s),[e,s,s];{const[t,r,o]=i(n),l=e.getNextSiblings();return o.append(s,...l),[t,r,s]}},[o,s]=i(r);return[o,s]}function As(t){return Ps(t)&&"A"===t.tagName}function Ps(t){return Ds(t)&&1===t.nodeType}function Ds(t){return"object"==typeof t&&null!==t&&"nodeType"in t&&"number"==typeof t.nodeType}function Fs(t){return Ds(t)&&11===t.nodeType}function Ls(t){const e=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");return null!==t.nodeName.match(e)}function Is(t){const e=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");return null!==t.nodeName.match(e)}function Ks(t){if(Li(t)&&!t.isInline())return!0;if(!Pi(t)||Ss(t))return!1;const e=t.getFirstChild(),n=null===e||Zn(e)||yr(e)||e.isInline();return!t.isInline()&&!1!==t.canBeEmpty()&&n}function zs(){return _i()}const Rs=new WeakMap,Bs=new Map;function Ws(e){if(!e._readOnly&&e.isEmpty())return Bs;e._readOnly||t(192);let n=Rs.get(e);return n||(n=function(t){const e=new Map;for(const[n,r]of t._nodeMap){const t=r.__type;let i=e.get(t);i||(i=new Map,e.set(t,i)),i.set(n,r)}return e}(e),Rs.set(e,n)),n}function Js(t){const e=t.constructor.clone(t);return e.afterCloneFrom(t),e}function js(t){return(e=Js(t))[In]=!0,e;var e}function Us(t,e){const n=parseInt(t.style.paddingInlineStart,10)||0,r=Math.round(n/40);e.setIndent(r)}function $s(t){t.__lexicalUnmanaged=!0}function Vs(t){return!0===t.__lexicalUnmanaged}function Ys(t,e){return function(t,e){return Object.prototype.hasOwnProperty.call(t,e)}(t,e)&&t[e]!==zn[e]}function qs(e){const n=$ in e.prototype?e.prototype[$]():void 0,r=function(e){if(!(e===zn||e.prototype instanceof zn)){let n="<unknown>",r="<unknown>";try{n=e.getType()}catch(t){}try{io.version&&(r=JSON.parse(io.version))}catch(t){}t(290,e.name,n,r)}return e===Fi||e===Ai||e===zn}(e),i=!r&&Ys(e,"getType")?e.getType():void 0;let o,s=i;if(n)if(i)o=n[i];else for(const[t,e]of Object.entries(n))s=t,o=e;if(!r&&s&&(Ys(e,"getType")||(e.getType=()=>s),Ys(e,"clone")||(e.clone=t=>(so(t),new e)),Ys(e,"importJSON")||(e.importJSON=o&&o.$importJSON||(t=>(new e).updateFromJSON(t))),!Ys(e,"importDOM")&&o)){const{importDOM:t}=o;t&&(e.importDOM=()=>t)}return{ownNodeConfig:o,ownNodeType:s}}function Hs(t){const e=zs();di();return new(e.resolveRegisteredNodeAfterReplacements(e.getRegisteredNode(t)).klass)}const Gs=(t,e)=>{let n=t;for(;null!=n&&!Ki(n);){if(e(n))return n;n=n.getParent()}return null},Xs={next:"previous",previous:"next"};class Qs{origin;constructor(t){this.origin=t}[Symbol.iterator](){return Nl({hasNext:ll,initial:this.getAdjacentCaret(),map:t=>t,step:t=>t.getAdjacentCaret()})}getAdjacentCaret(){return dl(this.getNodeAtCaret(),this.direction)}getSiblingCaret(){return dl(this.origin,this.direction)}remove(){const t=this.getNodeAtCaret();return t&&t.remove(),this}replaceOrInsert(t,e){const n=this.getNodeAtCaret();return t.is(this.origin)||t.is(n)||(null===n?this.insert(t):n.replace(t,e)),this}splice(e,n,r="next"){const i=r===this.direction?n:Array.from(n).reverse();let o=this;const s=this.getParentAtCaret(),l=new Map;for(let t=o.getAdjacentCaret();null!==t&&l.size<e;t=t.getAdjacentCaret()){const e=t.origin.getWritable();l.set(e.getKey(),e)}for(const e of i){if(l.size>0){const n=o.getNodeAtCaret();if(n)if(l.delete(n.getKey()),l.delete(e.getKey()),n.is(e)||o.origin.is(e));else{const t=e.getParent();t&&t.is(s)&&e.remove(),n.replace(e)}else null===n&&t(263,Array.from(l).join(" "))}else o.insert(e);o=dl(e,this.direction)}for(const t of l.values())t.remove();return this}}class Zs extends Qs{type="child";getLatest(){const t=this.origin.getLatest();return t===this.origin?this:pl(t,this.direction)}getParentCaret(t="root"){return dl(nl(this.getParentAtCaret(),t),this.direction)}getFlipped(){const t=el(this.direction);return dl(this.getNodeAtCaret(),t)||pl(this.origin,t)}getParentAtCaret(){return this.origin}getChildCaret(){return this}isSameNodeCaret(t){return t instanceof Zs&&this.direction===t.direction&&this.origin.is(t.origin)}isSamePointCaret(t){return this.isSameNodeCaret(t)}}const tl={root:Ki,shadowRoot:Ss};function el(t){return Xs[t]}function nl(t,e="root"){return tl[e](t)?null:t}class rl extends Qs{type="sibling";getLatest(){const t=this.origin.getLatest();return t===this.origin?this:dl(t,this.direction)}getSiblingCaret(){return this}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return Pi(this.origin)?pl(this.origin,this.direction):null}getParentCaret(t="root"){return dl(nl(this.getParentAtCaret(),t),this.direction)}getFlipped(){const t=el(this.direction);return dl(this.getNodeAtCaret(),t)||pl(this.origin.getParentOrThrow(),t)}isSamePointCaret(t){return t instanceof rl&&this.direction===t.direction&&this.origin.is(t.origin)}isSameNodeCaret(t){return(t instanceof rl||t instanceof il)&&this.direction===t.direction&&this.origin.is(t.origin)}}class il extends Qs{type="text";offset;constructor(t,e){super(t),this.offset=e}getLatest(){const t=this.origin.getLatest();return t===this.origin?this:hl(t,this.direction,this.offset)}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return null}getParentCaret(t="root"){return dl(nl(this.getParentAtCaret(),t),this.direction)}getFlipped(){return hl(this.origin,el(this.direction),this.offset)}isSamePointCaret(t){return t instanceof il&&this.direction===t.direction&&this.origin.is(t.origin)&&this.offset===t.offset}isSameNodeCaret(t){return(t instanceof rl||t instanceof il)&&this.direction===t.direction&&this.origin.is(t.origin)}getSiblingCaret(){return dl(this.origin,this.direction)}}function ol(t){return t instanceof il}function sl(t){return t instanceof Qs}function ll(t){return t instanceof rl}function cl(t){return t instanceof Zs}const al={next:class extends il{direction="next";getNodeAtCaret(){return this.origin.getNextSibling()}insert(t){return this.origin.insertAfter(t),this}},previous:class extends il{direction="previous";getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(t){return this.origin.insertBefore(t),this}}},ul={next:class extends rl{direction="next";getNodeAtCaret(){return this.origin.getNextSibling()}insert(t){return this.origin.insertAfter(t),this}},previous:class extends rl{direction="previous";getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(t){return this.origin.insertBefore(t),this}}},fl={next:class extends Zs{direction="next";getNodeAtCaret(){return this.origin.getFirstChild()}insert(t){return this.origin.splice(0,0,[t]),this}},previous:class extends Zs{direction="previous";getNodeAtCaret(){return this.origin.getLastChild()}insert(t){return this.origin.splice(this.origin.getChildrenSize(),0,[t]),this}}};function dl(t,e){return t?new ul[e](t):null}function hl(t,e,n){return t?new al[e](t,gl(t,n)):null}function gl(t,n,r="error"){const i=t.getTextContentSize();let o="next"===n?i:"previous"===n?0:n;return(o<0||o>i)&&("clamp"!==r&&e(284,String(n),String(i),t.getKey()),o=o<0?0:i),o}function _l(t,e){return new Cl(t,e)}function pl(t,e){return Pi(t)?new fl[e](t):null}function yl(t){return t&&t.getChildCaret()||t}function ml(t){return t&&yl(t.getAdjacentCaret())}class xl{type="node-caret-range";direction;anchor;focus;constructor(t,e,n){this.anchor=t,this.focus=e,this.direction=n}getLatest(){const t=this.anchor.getLatest(),e=this.focus.getLatest();return t===this.anchor&&e===this.focus?this:new xl(t,e,this.direction)}isCollapsed(){return this.anchor.isSamePointCaret(this.focus)}getTextSlices(){const t=t=>{const e=this[t].getLatest();return ol(e)?function(t,e){const{direction:n,origin:r}=t,i=gl(r,"focus"===e?el(n):n);return _l(t,i-t.offset)}(e,t):null},e=t("anchor"),n=t("focus");if(e&&n){const{caret:t}=e,{caret:r}=n;if(t.isSameNodeCaret(r))return[_l(t,r.offset-t.offset),null]}return[e,n]}iterNodeCarets(t="root"){const e=ol(this.anchor)?this.anchor.getSiblingCaret():this.anchor.getLatest(),n=this.focus.getLatest(),r=ol(n),i=e=>e.isSameNodeCaret(n)?null:ml(e)||e.getParentCaret(t);return Nl({hasNext:t=>null!==t&&!(r&&n.isSameNodeCaret(t)),initial:e.isSameNodeCaret(n)?null:i(e),map:t=>t,step:i})}[Symbol.iterator](){return this.iterNodeCarets("root")}}class Cl{type="slice";caret;distance;constructor(t,e){this.caret=t,this.distance=e}getSliceIndices(){const{distance:t,caret:{offset:e}}=this,n=e+t;return n<e?[n,e]:[e,n]}getTextContent(){const[t,e]=this.getSliceIndices();return this.caret.origin.getTextContent().slice(t,e)}getTextContentSize(){return Math.abs(this.distance)}removeTextSlice(){const{caret:{origin:t,direction:e}}=this,[n,r]=this.getSliceIndices(),i=t.getTextContent();return hl(t.setTextContent(i.slice(0,n)+i.slice(r)),e,n)}}function Sl(t){return t instanceof Cl}function vl(t){return Tl(t,dl(zo(),t.direction))}function kl(t){return Tl(t,t)}function Tl(e,n){return e.direction!==n.direction&&t(265),new xl(e,n,e.direction)}function Nl(t){const{initial:e,hasNext:n,step:r,map:i}=t;let o=e;return{[Symbol.iterator](){return this},next(){if(!n(o))return{done:!0,value:void 0};const t={done:!1,value:i(o)};return o=r(o),t}}}function bl(e,n){const r=Ml(e.origin,n.origin);switch(null===r&&t(275,e.origin.getKey(),n.origin.getKey()),r.type){case"same":{const t="text"===e.type,r="text"===n.type;return t&&r?function(t,e){return Math.sign(t-e)}(e.offset,n.offset):e.type===n.type?0:t?-1:r?1:"child"===e.type?-1:1}case"ancestor":return"child"===e.type?-1:1;case"descendant":return"child"===n.type?1:-1;case"branch":return wl(r)}}function wl(t){const{a:e,b:n}=t,r=e.__key,i=n.__key;let o=e,s=n;for(;o&&s;o=o.getNextSibling(),s=s.getNextSibling()){if(o.__key===i)return-1;if(s.__key===r)return 1}return null===o?1:-1}function El(t,e){return e.is(t)}function Ol(t){return Pi(t)?[t.getLatest(),null]:[t.getParent(),t.getLatest()]}function Ml(e,n){if(e.is(n))return{commonAncestor:e,type:"same"};const r=new Map;for(let[t,n]=Ol(e);t;n=t,t=t.getParent())r.set(t,n);for(let[i,o]=Ol(n);i;o=i,i=i.getParent()){const s=r.get(i);if(void 0!==s)return null===s?(El(e,i)||t(276),{commonAncestor:i,type:"ancestor"}):null===o?(El(n,i)||t(277),{commonAncestor:i,type:"descendant"}):((Pi(s)||El(e,s))&&(Pi(o)||El(n,o))&&i.is(s.getParent())&&i.is(o.getParent())||t(278),{a:s,b:o,commonAncestor:i,type:"branch"})}return null}function Al(e,n){const{type:r,key:i,offset:o}=e,s=Ns(e.key);return"text"===r?(yr(s)||t(266,s.getType(),i),hl(s,n,o)):(Pi(s)||t(267,s.getType(),i),Ul(s,e.offset,n))}function Pl(e,n){const{origin:r,direction:i}=n,o="next"===i;ol(n)?e.set(r.getKey(),n.offset,"text"):ll(n)?yr(r)?e.set(r.getKey(),gl(r,i),"text"):e.set(r.getParentOrThrow().getKey(),r.getIndexWithinParent()+(o?1:0),"element"):(cl(n)&&Pi(r)||t(268),e.set(r.getKey(),o?0:r.getChildrenSize(),"element"))}function Dl(t){const e=$r(),n=wr(e)?e:Wr();return Fl(n,t),Bo(n),n}function Fl(t,e){Pl(t.anchor,e.anchor),Pl(t.focus,e.focus)}function Ll(t){const{anchor:e,focus:n}=t,r=Al(e,"next"),i=Al(n,"next"),o=bl(r,i)<=0?"next":"previous";return Tl(Jl(r,o),Jl(i,o))}function Il(t){const{direction:e,origin:n}=t,r=dl(n,el(e)).getNodeAtCaret();return r?dl(r,e):pl(n.getParentOrThrow(),e)}function Kl(t,e="root"){const n=[t];for(let r=cl(t)?t.getParentCaret(e):t.getSiblingCaret();null!==r;r=r.getParentCaret(e))n.push(Il(r));return n}function zl(t){return!!t&&t.origin.isAttached()}function Rl(e,n="removeEmptySlices"){if(e.isCollapsed())return e;const r="root",i="next";let o=n;const s=jl(e,i),l=Kl(s.anchor,r),c=Kl(s.focus.getFlipped(),r),a=new Set,u=[];for(const t of s.iterNodeCarets(r))if(cl(t))a.add(t.origin.getKey());else if(ll(t)){const{origin:e}=t;Pi(e)&&!a.has(e.getKey())||u.push(e)}for(const t of u)t.remove();for(const t of s.getTextSlices()){if(!t)continue;const{origin:e}=t.caret,n=e.getTextContentSize(),r=Il(dl(e,i)),s=e.getMode();if(Math.abs(t.distance)===n&&"removeEmptySlices"===o||"token"===s&&0!==t.distance)r.remove();else if(0!==t.distance){o="removeEmptySlices";let e=t.removeTextSlice();const n=t.caret.origin;if("segmented"===s){const t=e.origin,n=pr(t.getTextContent()).setStyle(t.getStyle()).setFormat(t.getFormat());r.replaceOrInsert(n),e=hl(n,i,e.offset)}n.is(l[0].origin)&&(l[0]=e),n.is(c[0].origin)&&(c[0]=e.getFlipped())}}let f,d;for(const t of l)if(zl(t)){f=Bl(t);break}for(const t of c)if(zl(t)){d=Bl(t);break}const h=function(t,e,n){if(!t||!e)return null;const r=t.getParentAtCaret(),i=e.getParentAtCaret();if(!r||!i)return null;const o=r.getParents().reverse();o.push(r);const s=i.getParents().reverse();s.push(i);const l=Math.min(o.length,s.length);let c;for(c=0;c<l&&o[c]===s[c];c++);const a=(t,e)=>{let n;for(let r=c;r<t.length;r++){const i=t[r];if(Ss(i))return;!n&&e(i)&&(n=i)}return n},u=a(o,Ks),f=u&&a(s,t=>n.has(t.getKey())&&Ks(t));return u&&f?[u,f]:null}(f,d,a);if(h){const[t,e]=h;pl(t,"previous").splice(0,e.getChildren());let n=e.getParent();for(e.remove(!0);n&&n.isEmpty();){const t=n;n=n.getParent(),t.remove(!0)}}const g=[f,d,...l,...c].find(zl);if(g){return kl(Jl(Bl(g),e.direction))}t(269,JSON.stringify(l.map(t=>t.origin.__key)))}function Bl(t){const e=function(t){let e=t;for(;cl(e);){const t=ml(e);if(!cl(t))break;e=t}return e}(t.getLatest()),{direction:n}=e;if(yr(e.origin))return ol(e)?e:hl(e.origin,n,n);const r=e.getAdjacentCaret();return ll(r)&&yr(r.origin)?hl(r.origin,n,el(n)):e}function Wl(t){return ol(t)&&t.offset!==gl(t.origin,t.direction)}function Jl(t,e){return t.direction===e?t:t.getFlipped()}function jl(t,e){return t.direction===e?t:Tl(Jl(t.focus,e),Jl(t.anchor,e))}function Ul(t,e,n){let r=pl(t,"next");for(let t=0;t<e;t++){const t=r.getAdjacentCaret();if(null===t)break;r=t}return Jl(r,n)}function $l(t,e="root"){let n=0,r=t,i=ml(r);for(;null===i;){if(n--,i=r.getParentCaret(e),!i)return null;r=i,i=ml(r)}return i&&[i,n]}function Vl(e){const{origin:n,offset:r,direction:i}=e;if(r===gl(n,i))return e.getSiblingCaret();if(r===gl(n,el(i)))return Il(e.getSiblingCaret());const[o]=n.splitText(r);return yr(o)||t(281),Jl(dl(o,"next"),i)}function Yl(t,e){return!0}function ql(t,{$copyElementNode:e=vs,$splitTextPointCaretNext:n=Vl,rootMode:r="shadowRoot",$shouldSplit:i=Yl}={}){if(ol(t))return n(t);const o=t.getParentCaret(r);if(o){const{origin:n}=o;if(cl(t)&&(!n.canBeEmpty()||!i(n,"first")))return Il(o);const r=function(t){const e=[];for(let n=t.getAdjacentCaret();n;n=n.getAdjacentCaret())e.push(n.origin);return e}(t);(r.length>0||n.canBeEmpty()&&i(n,"last"))&&o.insert(e(n).splice(0,0,r))}return o}function Hl(t){return t}function Gl(...t){return t}function Xl(t,e){return[t,e]}function Ql(t){return t}function Zl(t,e){if(!e||t===e)return t;for(const n in e)if(t[n]!==e[n])return{...t,...e};return t}function tc(...t){const e=[];for(const n of t)if(n&&"string"==typeof n)for(const[t]of n.matchAll(/\S+/g))e.push(t);return e}function ec(t,...e){const n=tc(...e);n.length>0&&t.classList.add(...n)}function nc(t,...e){const n=tc(...e);n.length>0&&t.classList.remove(...n)}function rc(...t){return()=>{for(let e=t.length-1;e>=0;e--)t[e]();t.length=0}}export{gs as $addUpdateTag,ks as $applyNodeReplacement,Al as $caretFromPoint,Ll as $caretRangeFromSelection,Js as $cloneWithProperties,js as $cloneWithPropertiesEphemeral,bl as $comparePointCaretNext,vs as $copyNode,Hs as $create,Qn as $createLineBreakNode,Jr as $createNodeSelection,Vi as $createParagraphNode,kr as $createPoint,Wr as $createRangeSelection,jr as $createRangeSelectionFromDom,Cr as $createTabNode,pr as $createTextNode,vl as $extendCaretToRange,Gs as $findMatchingParent,ml as $getAdjacentChildCaret,ls as $getAdjacentNode,$l as $getAdjacentSiblingOrParentSiblingCaret,Jl as $getCaretInDirection,Tl as $getCaretRange,jl as $getCaretRangeInDirection,Ar as $getCharacterOffsets,pl as $getChildCaret,Ul as $getChildCaretAtIndex,yl as $getChildCaretOrSelf,kl as $getCollapsedCaretRange,Ml as $getCommonAncestor,wl as $getCommonAncestorResultBranchOrder,zs as $getEditor,Lo as $getNearestNodeFromDOMNode,Cs as $getNearestRootOrShadowRoot,Po as $getNodeByKey,Ns as $getNodeByKeyOrThrow,Do as $getNodeFromDOMNode,Vr as $getPreviousSelection,zo as $getRoot,$r as $getSelection,dl as $getSiblingCaret,ot as $getState,st as $getStateChange,ei as $getTextContent,gl as $getTextNodeOffset,hl as $getTextPointCaret,_l as $getTextPointCaretSlice,ut as $getWritableNodeState,ps as $hasAncestor,hs as $hasUpdateTag,ti as $insertNodes,Rr as $isBlockElementNode,cl as $isChildCaret,Li as $isDecoratorNode,Wi as $isEditorState,Pi as $isElementNode,Wl as $isExtendableTextPointCaret,xs as $isInlineElementOrDecoratorNode,bo as $isLeafNode,Zn as $isLineBreakNode,sl as $isNodeCaret,Or as $isNodeSelection,Yi as $isParagraphNode,wr as $isRangeSelection,Ki as $isRootNode,Ss as $isRootOrShadowRoot,ll as $isSiblingCaret,Sr as $isTabNode,yr as $isTextNode,ol as $isTextPointCaret,Sl as $isTextPointCaretSlice,So as $isTokenOrSegmented,Co as $isTokenOrTab,os as $nodesOfType,Bl as $normalizeCaret,Ct as $normalizeSelection__EXPERIMENTAL,_s as $onUpdate,Si as $parseSerializedNode,Rl as $removeTextFromCaretRange,Il as $rewindSiblingCaret,ns as $selectAll,Mo as $setCompositionKey,Pl as $setPointFromCaret,Bo as $setSelection,Dl as $setSelectionFromCaretRange,lt as $setState,ql as $splitAtPointCaretNext,Ms as $splitNode,Fl as $updateRangeSelectionFromCaretRange,ji as ArtificialNode__DO_NOT_USE,se as BEFORE_INPUT_COMMAND,Ge as BLUR_COMMAND,Ye as CAN_REDO_COMMAND,qe as CAN_UNDO_COMMAND,$e as CLEAR_EDITOR_COMMAND,Ve as CLEAR_HISTORY_COMMAND,oe as CLICK_COMMAND,jn as COLLABORATION_TAG,Qi as COMMAND_PRIORITY_CRITICAL,qi as COMMAND_PRIORITY_EDITOR,Xi as COMMAND_PRIORITY_HIGH,Hi as COMMAND_PRIORITY_LOW,Gi as COMMAND_PRIORITY_NORMAL,ae as COMPOSITION_END_COMMAND,Hn as COMPOSITION_END_TAG,ce as COMPOSITION_START_COMMAND,qn as COMPOSITION_START_TAG,he as CONTROLLED_TEXT_INSERTION_COMMAND,Je as COPY_COMMAND,je as CUT_COMMAND,ue as DELETE_CHARACTER_COMMAND,ye as DELETE_LINE_COMMAND,pe as DELETE_WORD_COMMAND,We as DRAGEND_COMMAND,Be as DRAGOVER_COMMAND,Re as DRAGSTART_COMMAND,Ke as DROP_COMMAND,Fi as DecoratorNode,Ai as ElementNode,He as FOCUS_COMMAND,ze as FORMAT_ELEMENT_COMMAND,me as FORMAT_TEXT_COMMAND,Rn as HISTORIC_TAG,Wn as HISTORY_MERGE_TAG,Bn as HISTORY_PUSH_TAG,Le as INDENT_CONTENT_COMMAND,le as INPUT_COMMAND,fe as INSERT_LINE_BREAK_COMMAND,de as INSERT_PARAGRAPH_COMMAND,Fe as INSERT_TAB_COMMAND,Ks as INTERNAL_$isBlock,T as IS_ALL_FORMATTING,p as IS_BOLD,C as IS_CODE,k as IS_HIGHLIGHT,y as IS_ITALIC,m as IS_STRIKETHROUGH,S as IS_SUBSCRIPT,v as IS_SUPERSCRIPT,x as IS_UNDERLINE,we as KEY_ARROW_DOWN_COMMAND,Te as KEY_ARROW_LEFT_COMMAND,ve as KEY_ARROW_RIGHT_COMMAND,be as KEY_ARROW_UP_COMMAND,Me as KEY_BACKSPACE_COMMAND,Pe as KEY_DELETE_COMMAND,Se as KEY_DOWN_COMMAND,Ee as KEY_ENTER_COMMAND,Ae as KEY_ESCAPE_COMMAND,Xe as KEY_MODIFIER_COMMAND,Oe as KEY_SPACE_COMMAND,De as KEY_TAB_COMMAND,Gn as LineBreakNode,ke as MOVE_TO_END,Ne as MOVE_TO_START,U as NODE_STATE_KEY,Ie as OUTDENT_CONTENT_COMMAND,ge as PASTE_COMMAND,Jn as PASTE_TAG,Ui as ParagraphNode,Ce as REDO_COMMAND,_e as REMOVE_TEXT_COMMAND,Ii as RootNode,re as SELECTION_CHANGE_COMMAND,ie as SELECTION_INSERT_CLIPBOARD_NODES_COMMAND,Ue as SELECT_ALL_COMMAND,Un as SKIP_COLLAB_TAG,Vn as SKIP_DOM_SELECTION_TAG,$n as SKIP_SCROLL_INTO_VIEW_TAG,Yn as SKIP_SELECTION_FOCUS_TAG,z as TEXT_TYPE_TO_FORMAT,xr as TabNode,lr as TextNode,xe as UNDO_COMMAND,ec as addClassNamesToElement,Ln as buildImportMap,Gl as configExtension,ne as createCommand,eo as createEditor,ct as createSharedNodeState,it as createState,Xl as declarePeerDependency,Hl as defineExtension,el as flipDirection,ds as getDOMOwnerDocument,Es as getDOMSelection,Os as getDOMSelectionFromTarget,To as getDOMTextNode,mo as getEditorPropertyFromDOMNode,yo as getNearestEditorFromDOMNode,uo as getRegisteredNode,ao as getRegisteredNodeOrThrow,qs as getStaticNodeConfig,xo as getTextDirection,to as getTransformSetFromKlass,Is as isBlockDomNode,fi as isCurrentlyReadOnlyMode,ko as isDOMDocumentNode,Ds as isDOMNode,vo as isDOMTextNode,Vs as isDOMUnmanaged,Fs as isDocumentFragment,Xo as isExactShortcutMatch,As as isHTMLAnchorElement,Ps as isHTMLElement,Ls as isInlineDomNode,po as isLexicalEditor,Go as isModifierMatch,go as isSelectionCapturedInDecoratorInput,_o as isSelectionWithinEditor,Nl as makeStepwiseIterator,rc as mergeRegister,tc as normalizeClassNames,nc as removeClassNamesFromElement,Eo as removeFromParent,co as resetRandomKey,Ql as safeCast,$s as setDOMUnmanaged,Us as setNodeIndentFromDOM,Zl as shallowMergeConfig,No as toggleTextFormatType};