@mnykj/alleditor-basic-modules 1.0.2 โ†’ 1.0.3

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 (201) hide show
  1. package/dist/alleditor-basic-modules/src/constants/icon-svg.d.ts +46 -0
  2. package/dist/alleditor-basic-modules/src/index.d.ts +10 -0
  3. package/dist/alleditor-basic-modules/src/locale/en.d.ts +95 -0
  4. package/dist/alleditor-basic-modules/src/locale/index.d.ts +5 -0
  5. package/dist/alleditor-basic-modules/src/locale/zh-CN.d.ts +95 -0
  6. package/dist/alleditor-basic-modules/src/modules/blockquote/custom-types.d.ts +9 -0
  7. package/dist/alleditor-basic-modules/src/modules/blockquote/elem-to-html.d.ts +11 -0
  8. package/dist/alleditor-basic-modules/src/modules/blockquote/index.d.ts +7 -0
  9. package/dist/alleditor-basic-modules/src/modules/blockquote/menu/BlockquoteMenu.d.ts +20 -0
  10. package/dist/alleditor-basic-modules/src/modules/blockquote/menu/BlockquoteMergedMenu.d.ts +14 -0
  11. package/dist/alleditor-basic-modules/src/modules/blockquote/menu/index.d.ts +15 -0
  12. package/dist/alleditor-basic-modules/src/modules/blockquote/merge.d.ts +11 -0
  13. package/dist/alleditor-basic-modules/src/modules/blockquote/parse-elem-html.d.ts +14 -0
  14. package/dist/alleditor-basic-modules/src/modules/blockquote/plugin.d.ts +7 -0
  15. package/dist/alleditor-basic-modules/src/modules/blockquote/render-elem.d.ts +16 -0
  16. package/dist/alleditor-basic-modules/src/modules/blockquote/toolbar-icons.d.ts +7 -0
  17. package/dist/alleditor-basic-modules/src/modules/code-block/code-block-ops.d.ts +11 -0
  18. package/dist/alleditor-basic-modules/src/modules/code-block/custom-types.d.ts +19 -0
  19. package/dist/alleditor-basic-modules/src/modules/code-block/elem-to-html.d.ts +16 -0
  20. package/dist/alleditor-basic-modules/src/modules/code-block/index.d.ts +7 -0
  21. package/dist/alleditor-basic-modules/src/modules/code-block/menu/CodeBlockMenu.d.ts +16 -0
  22. package/dist/alleditor-basic-modules/src/modules/code-block/menu/index.d.ts +14 -0
  23. package/dist/alleditor-basic-modules/src/modules/code-block/parse-elem-html.d.ts +19 -0
  24. package/dist/alleditor-basic-modules/src/modules/code-block/plugin.d.ts +7 -0
  25. package/dist/alleditor-basic-modules/src/modules/code-block/pre-parse-html.d.ts +15 -0
  26. package/dist/alleditor-basic-modules/src/modules/code-block/pre-toolbar.d.ts +25 -0
  27. package/dist/alleditor-basic-modules/src/modules/code-block/render-elem.d.ts +18 -0
  28. package/dist/alleditor-basic-modules/src/modules/color/custom-types.d.ts +9 -0
  29. package/dist/alleditor-basic-modules/src/modules/color/index.d.ts +7 -0
  30. package/dist/alleditor-basic-modules/src/modules/color/menu/BaseMenu.d.ts +20 -0
  31. package/dist/alleditor-basic-modules/src/modules/color/menu/BgColorMenu.d.ts +11 -0
  32. package/dist/alleditor-basic-modules/src/modules/color/menu/ColorMenu.d.ts +11 -0
  33. package/dist/alleditor-basic-modules/src/modules/color/menu/config.d.ts +6 -0
  34. package/dist/alleditor-basic-modules/src/modules/color/menu/index.d.ts +20 -0
  35. package/dist/alleditor-basic-modules/src/modules/color/parse-style-html.d.ts +8 -0
  36. package/dist/alleditor-basic-modules/src/modules/color/pre-parse-html.d.ts +15 -0
  37. package/dist/alleditor-basic-modules/src/modules/color/render-style.d.ts +13 -0
  38. package/dist/alleditor-basic-modules/src/modules/color/style-to-html.d.ts +12 -0
  39. package/dist/alleditor-basic-modules/src/modules/common/index.d.ts +7 -0
  40. package/dist/alleditor-basic-modules/src/modules/common/menu/CancelEnterMenu.d.ts +14 -0
  41. package/dist/alleditor-basic-modules/src/modules/common/menu/EnterMenu.d.ts +15 -0
  42. package/dist/alleditor-basic-modules/src/modules/common/menu/index.d.ts +14 -0
  43. package/dist/alleditor-basic-modules/src/modules/divider/custom-types.d.ts +12 -0
  44. package/dist/alleditor-basic-modules/src/modules/divider/elem-to-html.d.ts +11 -0
  45. package/dist/alleditor-basic-modules/src/modules/divider/index.d.ts +7 -0
  46. package/dist/alleditor-basic-modules/src/modules/divider/menu/InsertDividerMenu.d.ts +17 -0
  47. package/dist/alleditor-basic-modules/src/modules/divider/menu/RemoveDividerMenu.d.ts +14 -0
  48. package/dist/alleditor-basic-modules/src/modules/divider/menu/index.d.ts +19 -0
  49. package/dist/alleditor-basic-modules/src/modules/divider/parse-elem-html.d.ts +14 -0
  50. package/dist/alleditor-basic-modules/src/modules/divider/plugin.d.ts +7 -0
  51. package/dist/alleditor-basic-modules/src/modules/divider/render-elem.d.ts +13 -0
  52. package/dist/alleditor-basic-modules/src/modules/emotion/index.d.ts +7 -0
  53. package/dist/alleditor-basic-modules/src/modules/emotion/menu/EmotionMenu.d.ts +19 -0
  54. package/dist/alleditor-basic-modules/src/modules/emotion/menu/config.d.ts +5 -0
  55. package/dist/alleditor-basic-modules/src/modules/emotion/menu/index.d.ts +12 -0
  56. package/dist/alleditor-basic-modules/src/modules/font-size-family/custom-types.d.ts +9 -0
  57. package/dist/alleditor-basic-modules/src/modules/font-size-family/index.d.ts +7 -0
  58. package/dist/alleditor-basic-modules/src/modules/font-size-family/menu/BaseMenu.d.ts +18 -0
  59. package/dist/alleditor-basic-modules/src/modules/font-size-family/menu/FontFamilyMenu.d.ts +14 -0
  60. package/dist/alleditor-basic-modules/src/modules/font-size-family/menu/FontSizeMenu.d.ts +13 -0
  61. package/dist/alleditor-basic-modules/src/modules/font-size-family/menu/config.d.ts +12 -0
  62. package/dist/alleditor-basic-modules/src/modules/font-size-family/menu/index.d.ts +26 -0
  63. package/dist/alleditor-basic-modules/src/modules/font-size-family/parse-style-html.d.ts +8 -0
  64. package/dist/alleditor-basic-modules/src/modules/font-size-family/pre-parse-html.d.ts +15 -0
  65. package/dist/alleditor-basic-modules/src/modules/font-size-family/render-style.d.ts +13 -0
  66. package/dist/alleditor-basic-modules/src/modules/font-size-family/style-to-html.d.ts +12 -0
  67. package/dist/alleditor-basic-modules/src/modules/format-painter/index.d.ts +6 -0
  68. package/dist/alleditor-basic-modules/src/modules/format-painter/menu/FormatPainterMenu.d.ts +25 -0
  69. package/dist/alleditor-basic-modules/src/modules/format-painter/menu/index.d.ts +8 -0
  70. package/dist/alleditor-basic-modules/src/modules/format-painter/plugin.d.ts +6 -0
  71. package/dist/alleditor-basic-modules/src/modules/format-painter/state.d.ts +17 -0
  72. package/dist/alleditor-basic-modules/src/modules/full-screen/index.d.ts +7 -0
  73. package/dist/alleditor-basic-modules/src/modules/full-screen/menu/FullScreen.d.ts +16 -0
  74. package/dist/alleditor-basic-modules/src/modules/full-screen/menu/index.d.ts +9 -0
  75. package/dist/alleditor-basic-modules/src/modules/header/custom-types.d.ts +25 -0
  76. package/dist/alleditor-basic-modules/src/modules/header/elem-to-html.d.ts +25 -0
  77. package/dist/alleditor-basic-modules/src/modules/header/helper.d.ts +14 -0
  78. package/dist/alleditor-basic-modules/src/modules/header/index.d.ts +7 -0
  79. package/dist/alleditor-basic-modules/src/modules/header/menu/Header1ButtonMenu.d.ts +10 -0
  80. package/dist/alleditor-basic-modules/src/modules/header/menu/Header2ButtonMenu.d.ts +10 -0
  81. package/dist/alleditor-basic-modules/src/modules/header/menu/Header3ButtonMenu.d.ts +10 -0
  82. package/dist/alleditor-basic-modules/src/modules/header/menu/Header4ButtonMenu.d.ts +10 -0
  83. package/dist/alleditor-basic-modules/src/modules/header/menu/Header5ButtonMenu.d.ts +10 -0
  84. package/dist/alleditor-basic-modules/src/modules/header/menu/HeaderButtonMenuBase.d.ts +19 -0
  85. package/dist/alleditor-basic-modules/src/modules/header/menu/HeaderSelectMenu.d.ts +26 -0
  86. package/dist/alleditor-basic-modules/src/modules/header/menu/index.d.ts +34 -0
  87. package/dist/alleditor-basic-modules/src/modules/header/parse-elem-html.d.ts +28 -0
  88. package/dist/alleditor-basic-modules/src/modules/header/plugin.d.ts +7 -0
  89. package/dist/alleditor-basic-modules/src/modules/header/render-elem.d.ts +28 -0
  90. package/dist/alleditor-basic-modules/src/modules/image/custom-types.d.ts +20 -0
  91. package/dist/alleditor-basic-modules/src/modules/image/elem-to-html.d.ts +11 -0
  92. package/dist/alleditor-basic-modules/src/modules/image/helper.d.ts +13 -0
  93. package/dist/alleditor-basic-modules/src/modules/image/index.d.ts +7 -0
  94. package/dist/alleditor-basic-modules/src/modules/image/menu/CancelEnter.d.ts +14 -0
  95. package/dist/alleditor-basic-modules/src/modules/image/menu/DeleteImage.d.ts +15 -0
  96. package/dist/alleditor-basic-modules/src/modules/image/menu/EditImage.d.ts +28 -0
  97. package/dist/alleditor-basic-modules/src/modules/image/menu/EnterAbove.d.ts +14 -0
  98. package/dist/alleditor-basic-modules/src/modules/image/menu/InsertImage.d.ts +27 -0
  99. package/dist/alleditor-basic-modules/src/modules/image/menu/ViewImageLink.d.ts +15 -0
  100. package/dist/alleditor-basic-modules/src/modules/image/menu/Width100.d.ts +10 -0
  101. package/dist/alleditor-basic-modules/src/modules/image/menu/Width30.d.ts +10 -0
  102. package/dist/alleditor-basic-modules/src/modules/image/menu/Width50.d.ts +10 -0
  103. package/dist/alleditor-basic-modules/src/modules/image/menu/Width75.d.ts +9 -0
  104. package/dist/alleditor-basic-modules/src/modules/image/menu/WidthBase.d.ts +16 -0
  105. package/dist/alleditor-basic-modules/src/modules/image/menu/config.d.ts +30 -0
  106. package/dist/alleditor-basic-modules/src/modules/image/menu/index.d.ts +66 -0
  107. package/dist/alleditor-basic-modules/src/modules/image/parse-elem-html.d.ts +14 -0
  108. package/dist/alleditor-basic-modules/src/modules/image/plugin.d.ts +7 -0
  109. package/dist/alleditor-basic-modules/src/modules/image/render-elem.d.ts +13 -0
  110. package/dist/alleditor-basic-modules/src/modules/indent/constants.d.ts +4 -0
  111. package/dist/alleditor-basic-modules/src/modules/indent/custom-types.d.ts +13 -0
  112. package/dist/alleditor-basic-modules/src/modules/indent/index.d.ts +7 -0
  113. package/dist/alleditor-basic-modules/src/modules/indent/menu/BaseMenu.d.ts +25 -0
  114. package/dist/alleditor-basic-modules/src/modules/indent/menu/DecreaseIndentMenu.d.ts +13 -0
  115. package/dist/alleditor-basic-modules/src/modules/indent/menu/IncreaseIndentMenu.d.ts +15 -0
  116. package/dist/alleditor-basic-modules/src/modules/indent/menu/index.d.ts +14 -0
  117. package/dist/alleditor-basic-modules/src/modules/indent/parse-style-html.d.ts +8 -0
  118. package/dist/alleditor-basic-modules/src/modules/indent/plugin.d.ts +6 -0
  119. package/dist/alleditor-basic-modules/src/modules/indent/pre-parse-html.d.ts +15 -0
  120. package/dist/alleditor-basic-modules/src/modules/indent/render-style.d.ts +13 -0
  121. package/dist/alleditor-basic-modules/src/modules/indent/style-to-html.d.ts +6 -0
  122. package/dist/alleditor-basic-modules/src/modules/justify/custom-types.d.ts +10 -0
  123. package/dist/alleditor-basic-modules/src/modules/justify/index.d.ts +7 -0
  124. package/dist/alleditor-basic-modules/src/modules/justify/menu/BaseMenu.d.ts +21 -0
  125. package/dist/alleditor-basic-modules/src/modules/justify/menu/JustifyCenterMenu.d.ts +12 -0
  126. package/dist/alleditor-basic-modules/src/modules/justify/menu/JustifyJustifyMenu.d.ts +12 -0
  127. package/dist/alleditor-basic-modules/src/modules/justify/menu/JustifyLeftMenu.d.ts +12 -0
  128. package/dist/alleditor-basic-modules/src/modules/justify/menu/JustifyRightMenu.d.ts +12 -0
  129. package/dist/alleditor-basic-modules/src/modules/justify/menu/index.d.ts +24 -0
  130. package/dist/alleditor-basic-modules/src/modules/justify/parse-style-html.d.ts +8 -0
  131. package/dist/alleditor-basic-modules/src/modules/justify/render-style.d.ts +13 -0
  132. package/dist/alleditor-basic-modules/src/modules/justify/style-to-html.d.ts +6 -0
  133. package/dist/alleditor-basic-modules/src/modules/line-height/custom-types.d.ts +10 -0
  134. package/dist/alleditor-basic-modules/src/modules/line-height/index.d.ts +7 -0
  135. package/dist/alleditor-basic-modules/src/modules/line-height/menu/LineHeightMenu.d.ts +26 -0
  136. package/dist/alleditor-basic-modules/src/modules/line-height/menu/config.d.ts +5 -0
  137. package/dist/alleditor-basic-modules/src/modules/line-height/menu/index.d.ts +12 -0
  138. package/dist/alleditor-basic-modules/src/modules/line-height/parse-style-html.d.ts +8 -0
  139. package/dist/alleditor-basic-modules/src/modules/line-height/render-style.d.ts +13 -0
  140. package/dist/alleditor-basic-modules/src/modules/line-height/style-to-html.d.ts +6 -0
  141. package/dist/alleditor-basic-modules/src/modules/link/custom-types.d.ts +11 -0
  142. package/dist/alleditor-basic-modules/src/modules/link/elem-to-html.d.ts +11 -0
  143. package/dist/alleditor-basic-modules/src/modules/link/helper.d.ts +20 -0
  144. package/dist/alleditor-basic-modules/src/modules/link/index.d.ts +8 -0
  145. package/dist/alleditor-basic-modules/src/modules/link/menu/EditLink.d.ts +29 -0
  146. package/dist/alleditor-basic-modules/src/modules/link/menu/InsertLink.d.ts +25 -0
  147. package/dist/alleditor-basic-modules/src/modules/link/menu/LinkFormMenu.d.ts +41 -0
  148. package/dist/alleditor-basic-modules/src/modules/link/menu/UnLink.d.ts +15 -0
  149. package/dist/alleditor-basic-modules/src/modules/link/menu/ViewLink.d.ts +16 -0
  150. package/dist/alleditor-basic-modules/src/modules/link/menu/ViewLinkOpenMenu.d.ts +16 -0
  151. package/dist/alleditor-basic-modules/src/modules/link/menu/config.d.ts +18 -0
  152. package/dist/alleditor-basic-modules/src/modules/link/menu/index.d.ts +55 -0
  153. package/dist/alleditor-basic-modules/src/modules/link/menu/link-form-state.d.ts +12 -0
  154. package/dist/alleditor-basic-modules/src/modules/link/parse-elem-html.d.ts +14 -0
  155. package/dist/alleditor-basic-modules/src/modules/link/plugin.d.ts +7 -0
  156. package/dist/alleditor-basic-modules/src/modules/link/render-elem.d.ts +20 -0
  157. package/dist/alleditor-basic-modules/src/modules/paragraph/custom-types.d.ts +9 -0
  158. package/dist/alleditor-basic-modules/src/modules/paragraph/elem-to-html.d.ts +11 -0
  159. package/dist/alleditor-basic-modules/src/modules/paragraph/index.d.ts +7 -0
  160. package/dist/alleditor-basic-modules/src/modules/paragraph/parse-elem-html.d.ts +14 -0
  161. package/dist/alleditor-basic-modules/src/modules/paragraph/plugin.d.ts +7 -0
  162. package/dist/alleditor-basic-modules/src/modules/paragraph/render-elem.d.ts +20 -0
  163. package/dist/alleditor-basic-modules/src/modules/text-style/custom-types.d.ts +14 -0
  164. package/dist/alleditor-basic-modules/src/modules/text-style/helper.d.ts +8 -0
  165. package/dist/alleditor-basic-modules/src/modules/text-style/index.d.ts +7 -0
  166. package/dist/alleditor-basic-modules/src/modules/text-style/menu/BaseMenu.d.ts +27 -0
  167. package/dist/alleditor-basic-modules/src/modules/text-style/menu/BoldMenu.d.ts +12 -0
  168. package/dist/alleditor-basic-modules/src/modules/text-style/menu/ClearStyleMenu.d.ts +15 -0
  169. package/dist/alleditor-basic-modules/src/modules/text-style/menu/CodeMenu.d.ts +12 -0
  170. package/dist/alleditor-basic-modules/src/modules/text-style/menu/ItalicMenu.d.ts +12 -0
  171. package/dist/alleditor-basic-modules/src/modules/text-style/menu/SubMenu.d.ts +13 -0
  172. package/dist/alleditor-basic-modules/src/modules/text-style/menu/SupMenu.d.ts +13 -0
  173. package/dist/alleditor-basic-modules/src/modules/text-style/menu/ThroughMenu.d.ts +12 -0
  174. package/dist/alleditor-basic-modules/src/modules/text-style/menu/UnderlineMenu.d.ts +12 -0
  175. package/dist/alleditor-basic-modules/src/modules/text-style/menu/index.d.ts +49 -0
  176. package/dist/alleditor-basic-modules/src/modules/text-style/parse-style-html.d.ts +8 -0
  177. package/dist/alleditor-basic-modules/src/modules/text-style/render-style.d.ts +13 -0
  178. package/dist/alleditor-basic-modules/src/modules/text-style/style-to-html.d.ts +12 -0
  179. package/dist/alleditor-basic-modules/src/modules/todo/custom-types.d.ts +10 -0
  180. package/dist/alleditor-basic-modules/src/modules/todo/elem-to-html.d.ts +11 -0
  181. package/dist/alleditor-basic-modules/src/modules/todo/index.d.ts +7 -0
  182. package/dist/alleditor-basic-modules/src/modules/todo/menu/Todo.d.ts +15 -0
  183. package/dist/alleditor-basic-modules/src/modules/todo/menu/index.d.ts +9 -0
  184. package/dist/alleditor-basic-modules/src/modules/todo/parse-elem-html.d.ts +14 -0
  185. package/dist/alleditor-basic-modules/src/modules/todo/plugin.d.ts +7 -0
  186. package/dist/alleditor-basic-modules/src/modules/todo/pre-parse-html.d.ts +15 -0
  187. package/dist/alleditor-basic-modules/src/modules/todo/render-elem.d.ts +20 -0
  188. package/dist/alleditor-basic-modules/src/modules/undo-redo/index.d.ts +7 -0
  189. package/dist/alleditor-basic-modules/src/modules/undo-redo/menu/RedoMenu.d.ts +15 -0
  190. package/dist/alleditor-basic-modules/src/modules/undo-redo/menu/UndoMenu.d.ts +15 -0
  191. package/dist/alleditor-basic-modules/src/modules/undo-redo/menu/index.d.ts +14 -0
  192. package/dist/alleditor-basic-modules/src/utils/block-toolbar.d.ts +14 -0
  193. package/dist/alleditor-basic-modules/src/utils/dom.d.ts +36 -0
  194. package/dist/alleditor-basic-modules/src/utils/util.d.ts +11 -0
  195. package/dist/alleditor-basic-modules/src/utils/vdom.d.ts +11 -0
  196. package/dist/css/style.css +1 -1
  197. package/dist/index.esm.js +67 -12
  198. package/dist/index.esm.js.map +1 -1
  199. package/dist/index.js +1 -1
  200. package/dist/index.js.map +1 -1
  201. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
- !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@mnykj/alleditor-core"),require("snabbdom"),require("slate"),require("dom7"),require("nanoid"),require("lodash.throttle")):"function"==typeof define&&define.amd?define(["exports","@mnykj/alleditor-core","snabbdom","slate","dom7","nanoid","lodash.throttle"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).WangEditorBasicModules={},t.alleditorCore,t.snabbdom,t.slate,t.$,t.nanoid,t.throttle)}(this,(function(t,e,n,r,o,i,a){"use strict";function u(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var l=u(o),c=u(a);e.i18nAddResources("en",{common:{ok:"OK",delete:"Delete",enter:"Enter",enterAbove:"Enter (blank line above)",cancelEnter:"Cancel enter"},blockQuote:{title:"Quote"},codeBlock:{title:"Code block"},color:{color:"Font color",bgColor:"Back color",default:"Default color",clear:"Clear back color"},divider:{title:"Divider"},emotion:{title:"Emotion"},fontSize:{title:"Font size",default:"Default"},fontFamily:{title:"Font family",default:"Default"},fullScreen:{title:"Full screen"},header:{title:"Header",text:"Text"},image:{netImage:"Net image",delete:"Delete image",edit:"Edit image",viewLink:"View link",src:"Image src",desc:"Description",link:"Image link"},indent:{decrease:"Decrease",increase:"Increase"},justify:{left:"Left",right:"Right",center:"Center",justify:"Justify"},lineHeight:{title:"Line height",default:"Default"},link:{insert:"Insert link",text:"Link text",url:"Link source",unLink:"Unlink",edit:"Edit link",view:"View link"},textStyle:{bold:"Bold",clear:"Clear styles",code:"Inline code",italic:"Italic",sub:"Sub",sup:"Sup",through:"Through",underline:"Underline"},undo:{undo:"undo",redo:"Redo"},todo:{todo:"Todo"}}),e.i18nAddResources("zh-CN",{common:{ok:"็กฎๅฎš",delete:"ๅˆ ้™ค",enter:"ๅ›ž่ฝฆ",enterAbove:"ๅ›ž่ฝฆ๏ผˆไธŠๆ–น็ฉบ่กŒ๏ผ‰",cancelEnter:"ๅ–ๆถˆๅ›ž่ฝฆ"},blockQuote:{title:"ๅผ•็”จ"},codeBlock:{title:"ไปฃ็ ๅ—"},color:{color:"ๆ–‡ๅญ—้ขœ่‰ฒ",bgColor:"่ƒŒๆ™ฏ่‰ฒ",default:"้ป˜่ฎค้ขœ่‰ฒ",clear:"ๆธ…้™ค่ƒŒๆ™ฏ่‰ฒ"},divider:{title:"ๅˆ†ๅ‰ฒ็บฟ"},emotion:{title:"่กจๆƒ…"},fontSize:{title:"ๅญ—ๅท",default:"้ป˜่ฎคๅญ—ๅท"},fontFamily:{title:"ๅญ—ไฝ“",default:"้ป˜่ฎคๅญ—ไฝ“"},fullScreen:{title:"ๅ…จๅฑ"},header:{title:"ๆ ‡้ข˜",text:"ๆญฃๆ–‡"},image:{netImage:"็ฝ‘็ปœๅ›พ็‰‡",delete:"ๅˆ ้™คๅ›พ็‰‡",edit:"็ผ–่พ‘ๅ›พ็‰‡",viewLink:"ๆŸฅ็œ‹้“พๆŽฅ",src:"ๅ›พ็‰‡ๅœฐๅ€",desc:"ๅ›พ็‰‡ๆ่ฟฐ",link:"ๅ›พ็‰‡้“พๆŽฅ"},indent:{decrease:"ๅ‡ๅฐ‘็ผฉ่ฟ›",increase:"ๅขžๅŠ ็ผฉ่ฟ›"},justify:{left:"ๅทฆๅฏน้ฝ",right:"ๅณๅฏน้ฝ",center:"ๅฑ…ไธญๅฏน้ฝ",justify:"ไธค็ซฏๅฏน้ฝ"},lineHeight:{title:"่กŒ้ซ˜",default:"้ป˜่ฎค่กŒ้ซ˜"},link:{insert:"ๆ’ๅ…ฅ้“พๆŽฅ",text:"้“พๆŽฅๆ–‡ๆœฌ",url:"้“พๆŽฅๅœฐๅ€",unLink:"ๅ–ๆถˆ้“พๆŽฅ",edit:"ไฟฎๆ”น้“พๆŽฅ",view:"ๆŸฅ็œ‹้“พๆŽฅ"},textStyle:{bold:"็ฒ—ไฝ“",clear:"ๆธ…้™คๆ ผๅผ",code:"่กŒๅ†…ไปฃ็ ",italic:"ๆ–œไฝ“",sub:"ไธ‹ๆ ‡",sup:"ไธŠๆ ‡",through:"ๅˆ ้™ค็บฟ",underline:"ไธ‹ๅˆ’็บฟ"},undo:{undo:"ๆ’ค้”€",redo:"้‡ๅš"},todo:{todo:"ๅพ…ๅŠž"}});var s={type:"paragraph",renderElem:function(t,e,r){return n.jsx("p",null,e)}};var f={type:"paragraph",elemToHtml:function(t,e){return""===e?"<p><br></p>":"<p>"+e+"</p>"}},d="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function p(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function h(t){var e={exports:{}};return t(e,e.exports),e.exports}var v,g,y=function(t){return t&&t.Math==Math&&t},m=y("object"==typeof globalThis&&globalThis)||y("object"==typeof window&&window)||y("object"==typeof self&&self)||y("object"==typeof d&&d)||function(){return this}()||Function("return this")(),b=function(t){try{return!!t()}catch(t){return!0}},E=!b((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),w=Function.prototype.call,x=w.bind?w.bind(w):function(){return w.apply(w,arguments)},S={}.propertyIsEnumerable,k=Object.getOwnPropertyDescriptor,T=k&&!S.call({1:2},1)?function(t){var e=k(this,t);return!!e&&e.enumerable}:S,N={f:T},A=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},D=Function.prototype,M=D.bind,L=D.call,P=M&&M.bind(L),I=M?function(t){return t&&P(L,t)}:function(t){return t&&function(){return L.apply(t,arguments)}},O=I({}.toString),H=I("".slice),j=function(t){return H(O(t),8,-1)},z=m.Object,C=I("".split),_=b((function(){return!z("z").propertyIsEnumerable(0)}))?function(t){return"String"==j(t)?C(t,""):z(t)}:z,B=m.TypeError,V=function(t){if(null==t)throw B("Can't call method on "+t);return t},R=function(t){return _(V(t))},F=function(t){return"function"==typeof t},q=function(t){return"object"==typeof t?null!==t:F(t)},W=function(t){return F(t)?t:void 0},G=function(t,e){return arguments.length<2?W(m[t]):m[t]&&m[t][e]},$=I({}.isPrototypeOf),U=G("navigator","userAgent")||"",K=m.process,X=m.Deno,J=K&&K.versions||X&&X.version,Y=J&&J.v8;Y&&(g=(v=Y.split("."))[0]>0&&v[0]<4?1:+(v[0]+v[1])),!g&&U&&(!(v=U.match(/Edge\/(\d+)/))||v[1]>=74)&&(v=U.match(/Chrome\/(\d+)/))&&(g=+v[1]);var Q=g,Z=!!Object.getOwnPropertySymbols&&!b((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&Q&&Q<41})),tt=Z&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,et=m.Object,nt=tt?function(t){return"symbol"==typeof t}:function(t){var e=G("Symbol");return F(e)&&$(e.prototype,et(t))},rt=m.String,ot=function(t){try{return rt(t)}catch(t){return"Object"}},it=m.TypeError,at=function(t){if(F(t))return t;throw it(ot(t)+" is not a function")},ut=function(t,e){var n=t[e];return null==n?void 0:at(n)},lt=m.TypeError,ct=Object.defineProperty,st=function(t,e){try{ct(m,t,{value:e,configurable:!0,writable:!0})}catch(n){m[t]=e}return e},ft="__core-js_shared__",dt=m[ft]||st(ft,{}),pt=h((function(t){(t.exports=function(t,e){return dt[t]||(dt[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"ยฉ 2021 Denis Pushkarev (zloirock.ru)"})})),ht=m.Object,vt=function(t){return ht(V(t))},gt=I({}.hasOwnProperty),yt=Object.hasOwn||function(t,e){return gt(vt(t),e)},mt=0,bt=Math.random(),Et=I(1..toString),wt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+Et(++mt+bt,36)},xt=pt("wks"),St=m.Symbol,kt=St&&St.for,Tt=tt?St:St&&St.withoutSetter||wt,Nt=function(t){if(!yt(xt,t)||!Z&&"string"!=typeof xt[t]){var e="Symbol."+t;Z&&yt(St,t)?xt[t]=St[t]:xt[t]=tt&&kt?kt(e):Tt(e)}return xt[t]},At=m.TypeError,Dt=Nt("toPrimitive"),Mt=function(t,e){if(!q(t)||nt(t))return t;var n,r=ut(t,Dt);if(r){if(void 0===e&&(e="default"),n=x(r,t,e),!q(n)||nt(n))return n;throw At("Can't convert object to primitive value")}return void 0===e&&(e="number"),function(t,e){var n,r;if("string"===e&&F(n=t.toString)&&!q(r=x(n,t)))return r;if(F(n=t.valueOf)&&!q(r=x(n,t)))return r;if("string"!==e&&F(n=t.toString)&&!q(r=x(n,t)))return r;throw lt("Can't convert object to primitive value")}(t,e)},Lt=function(t){var e=Mt(t,"string");return nt(e)?e:e+""},Pt=m.document,It=q(Pt)&&q(Pt.createElement),Ot=function(t){return It?Pt.createElement(t):{}},Ht=!E&&!b((function(){return 7!=Object.defineProperty(Ot("div"),"a",{get:function(){return 7}}).a})),jt=Object.getOwnPropertyDescriptor,zt={f:E?jt:function(t,e){if(t=R(t),e=Lt(e),Ht)try{return jt(t,e)}catch(t){}if(yt(t,e))return A(!x(N.f,t,e),t[e])}},Ct=m.String,_t=m.TypeError,Bt=function(t){if(q(t))return t;throw _t(Ct(t)+" is not an object")},Vt=m.TypeError,Rt=Object.defineProperty,Ft={f:E?Rt:function(t,e,n){if(Bt(t),e=Lt(e),Bt(n),Ht)try{return Rt(t,e,n)}catch(t){}if("get"in n||"set"in n)throw Vt("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},qt=E?function(t,e,n){return Ft.f(t,e,A(1,n))}:function(t,e,n){return t[e]=n,t},Wt=I(Function.toString);F(dt.inspectSource)||(dt.inspectSource=function(t){return Wt(t)});var Gt,$t,Ut,Kt=dt.inspectSource,Xt=m.WeakMap,Jt=F(Xt)&&/native code/.test(Kt(Xt)),Yt=pt("keys"),Qt=function(t){return Yt[t]||(Yt[t]=wt(t))},Zt={},te="Object already initialized",ee=m.TypeError,ne=m.WeakMap;if(Jt||dt.state){var re=dt.state||(dt.state=new ne),oe=I(re.get),ie=I(re.has),ae=I(re.set);Gt=function(t,e){if(ie(re,t))throw new ee(te);return e.facade=t,ae(re,t,e),e},$t=function(t){return oe(re,t)||{}},Ut=function(t){return ie(re,t)}}else{var ue=Qt("state");Zt[ue]=!0,Gt=function(t,e){if(yt(t,ue))throw new ee(te);return e.facade=t,qt(t,ue,e),e},$t=function(t){return yt(t,ue)?t[ue]:{}},Ut=function(t){return yt(t,ue)}}var le={set:Gt,get:$t,has:Ut,enforce:function(t){return Ut(t)?$t(t):Gt(t,{})},getterFor:function(t){return function(e){var n;if(!q(e)||(n=$t(e)).type!==t)throw ee("Incompatible receiver, "+t+" required");return n}}},ce=Function.prototype,se=E&&Object.getOwnPropertyDescriptor,fe=yt(ce,"name"),de={EXISTS:fe,PROPER:fe&&"something"===function(){}.name,CONFIGURABLE:fe&&(!E||E&&se(ce,"name").configurable)},pe=h((function(t){var e=de.CONFIGURABLE,n=le.get,r=le.enforce,o=String(String).split("String");(t.exports=function(t,n,i,a){var u,l=!!a&&!!a.unsafe,c=!!a&&!!a.enumerable,s=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;F(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!yt(i,"name")||e&&i.name!==f)&&qt(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),t!==m?(l?!s&&t[n]&&(c=!0):delete t[n],c?t[n]=i:qt(t,n,i)):c?t[n]=i:st(n,i)})(Function.prototype,"toString",(function(){return F(this)&&n(this).source||Kt(this)}))})),he=Math.ceil,ve=Math.floor,ge=function(t){var e=+t;return e!=e||0===e?0:(e>0?ve:he)(e)},ye=Math.max,me=Math.min,be=function(t,e){var n=ge(t);return n<0?ye(n+e,0):me(n,e)},Ee=Math.min,we=function(t){return t>0?Ee(ge(t),9007199254740991):0},xe=function(t){return we(t.length)},Se=function(t){return function(e,n,r){var o,i=R(e),a=xe(i),u=be(r,a);if(t&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===n)return t||u||0;return!t&&-1}},ke={includes:Se(!0),indexOf:Se(!1)},Te=ke.indexOf,Ne=I([].push),Ae=function(t,e){var n,r=R(t),o=0,i=[];for(n in r)!yt(Zt,n)&&yt(r,n)&&Ne(i,n);for(;e.length>o;)yt(r,n=e[o++])&&(~Te(i,n)||Ne(i,n));return i},De=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Me=De.concat("length","prototype"),Le={f:Object.getOwnPropertyNames||function(t){return Ae(t,Me)}},Pe={f:Object.getOwnPropertySymbols},Ie=I([].concat),Oe=G("Reflect","ownKeys")||function(t){var e=Le.f(Bt(t)),n=Pe.f;return n?Ie(e,n(t)):e},He=function(t,e){for(var n=Oe(e),r=Ft.f,o=zt.f,i=0;i<n.length;i++){var a=n[i];yt(t,a)||r(t,a,o(e,a))}},je=/#|\.prototype\./,ze=function(t,e){var n=_e[Ce(t)];return n==Ve||n!=Be&&(F(e)?b(e):!!e)},Ce=ze.normalize=function(t){return String(t).replace(je,".").toLowerCase()},_e=ze.data={},Be=ze.NATIVE="N",Ve=ze.POLYFILL="P",Re=ze,Fe=zt.f,qe=function(t,e){var n,r,o,i,a,u=t.target,l=t.global,c=t.stat;if(n=l?m:c?m[u]||st(u,{}):(m[u]||{}).prototype)for(r in e){if(i=e[r],o=t.noTargetGet?(a=Fe(n,r))&&a.value:n[r],!Re(l?r:u+(c?".":"#")+r,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;He(i,o)}(t.sham||o&&o.sham)&&qt(i,"sham",!0),pe(n,r,i,t)}},We=I(I.bind),Ge=function(t,e){return at(t),void 0===e?t:We?We(t,e):function(){return t.apply(e,arguments)}},$e=Array.isArray||function(t){return"Array"==j(t)},Ue={};Ue[Nt("toStringTag")]="z";var Ke="[object z]"===String(Ue),Xe=Nt("toStringTag"),Je=m.Object,Ye="Arguments"==j(function(){return arguments}()),Qe=Ke?j:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Je(t),Xe))?n:Ye?j(e):"Object"==(r=j(e))&&F(e.callee)?"Arguments":r},Ze=function(){},tn=[],en=G("Reflect","construct"),nn=/^\s*(?:class|function)\b/,rn=I(nn.exec),on=!nn.exec(Ze),an=function(t){if(!F(t))return!1;try{return en(Ze,tn,t),!0}catch(t){return!1}},un=!en||b((function(){var t;return an(an.call)||!an(Object)||!an((function(){t=!0}))||t}))?function(t){if(!F(t))return!1;switch(Qe(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return on||!!rn(nn,Kt(t))}:an,ln=Nt("species"),cn=m.Array,sn=function(t,e){return new(function(t){var e;return $e(t)&&(e=t.constructor,(un(e)&&(e===cn||$e(e.prototype))||q(e)&&null===(e=e[ln]))&&(e=void 0)),void 0===e?cn:e}(t))(0===e?0:e)},fn=I([].push),dn=function(t){var e=1==t,n=2==t,r=3==t,o=4==t,i=6==t,a=7==t,u=5==t||i;return function(l,c,s,f){for(var d,p,h=vt(l),v=_(h),g=Ge(c,s),y=xe(v),m=0,b=f||sn,E=e?b(l,y):n||a?b(l,0):void 0;y>m;m++)if((u||m in v)&&(p=g(d=v[m],m,h),t))if(e)E[m]=p;else if(p)switch(t){case 3:return!0;case 5:return d;case 6:return m;case 2:fn(E,d)}else switch(t){case 4:return!1;case 7:fn(E,d)}return i?-1:r||o?o:E}},pn={forEach:dn(0),map:dn(1),filter:dn(2),some:dn(3),every:dn(4),find:dn(5),findIndex:dn(6),filterReject:dn(7)},hn=Nt("species"),vn=function(t){return Q>=51||!b((function(){var e=[];return(e.constructor={})[hn]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},gn=pn.filter,yn=vn("filter");qe({target:"Array",proto:!0,forced:!yn},{filter:function(t){return gn(this,t,arguments.length>1?arguments[1]:void 0)}});var mn=Ke?{}.toString:function(){return"[object "+Qe(this)+"]"};Ke||pe(Object.prototype,"toString",mn,{unsafe:!0});var bn,En=m.String,wn=function(t){if("Symbol"===Qe(t))throw TypeError("Cannot convert a Symbol value to a string");return En(t)},xn=function(){var t=Bt(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},Sn=m.RegExp,kn=b((function(){var t=Sn("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),Tn=kn||b((function(){return!Sn("a","y").sticky})),Nn={BROKEN_CARET:kn||b((function(){var t=Sn("^r","gy");return t.lastIndex=2,null!=t.exec("str")})),MISSED_STICKY:Tn,UNSUPPORTED_Y:kn},An=Object.keys||function(t){return Ae(t,De)},Dn=E?Object.defineProperties:function(t,e){Bt(t);for(var n,r=R(e),o=An(e),i=o.length,a=0;i>a;)Ft.f(t,n=o[a++],r[n]);return t},Mn=G("document","documentElement"),Ln=Qt("IE_PROTO"),Pn=function(){},In=function(t){return"<script>"+t+"</"+"script>"},On=function(t){t.write(In("")),t.close();var e=t.parentWindow.Object;return t=null,e},Hn=function(){try{bn=new ActiveXObject("htmlfile")}catch(t){}var t,e;Hn="undefined"!=typeof document?document.domain&&bn?On(bn):((e=Ot("iframe")).style.display="none",Mn.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(In("document.F=Object")),t.close(),t.F):On(bn);for(var n=De.length;n--;)delete Hn.prototype[De[n]];return Hn()};Zt[Ln]=!0;var jn,zn,Cn=Object.create||function(t,e){var n;return null!==t?(Pn.prototype=Bt(t),n=new Pn,Pn.prototype=null,n[Ln]=t):n=Hn(),void 0===e?n:Dn(n,e)},_n=m.RegExp,Bn=b((function(){var t=_n(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)})),Vn=m.RegExp,Rn=b((function(){var t=Vn("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})),Fn=le.get,qn=pt("native-string-replace",String.prototype.replace),Wn=RegExp.prototype.exec,Gn=Wn,$n=I("".charAt),Un=I("".indexOf),Kn=I("".replace),Xn=I("".slice),Jn=(zn=/b*/g,x(Wn,jn=/a/,"a"),x(Wn,zn,"a"),0!==jn.lastIndex||0!==zn.lastIndex),Yn=Nn.BROKEN_CARET,Qn=void 0!==/()??/.exec("")[1];(Jn||Qn||Yn||Bn||Rn)&&(Gn=function(t){var e,n,r,o,i,a,u,l=this,c=Fn(l),s=wn(t),f=c.raw;if(f)return f.lastIndex=l.lastIndex,e=x(Gn,f,s),l.lastIndex=f.lastIndex,e;var d=c.groups,p=Yn&&l.sticky,h=x(xn,l),v=l.source,g=0,y=s;if(p&&(h=Kn(h,"y",""),-1===Un(h,"g")&&(h+="g"),y=Xn(s,l.lastIndex),l.lastIndex>0&&(!l.multiline||l.multiline&&"\n"!==$n(s,l.lastIndex-1))&&(v="(?: "+v+")",y=" "+y,g++),n=new RegExp("^(?:"+v+")",h)),Qn&&(n=new RegExp("^"+v+"$(?!\\s)",h)),Jn&&(r=l.lastIndex),o=x(Wn,p?n:l,y),p?o?(o.input=Xn(o.input,g),o[0]=Xn(o[0],g),o.index=l.lastIndex,l.lastIndex+=o[0].length):l.lastIndex=0:Jn&&o&&(l.lastIndex=l.global?o.index+o[0].length:r),Qn&&o&&o.length>1&&x(qn,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=Cn(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var Zn=Gn;qe({target:"RegExp",proto:!0,forced:/./.exec!==Zn},{exec:Zn});var tr=Function.prototype,er=tr.apply,nr=tr.bind,rr=tr.call,or="object"==typeof Reflect&&Reflect.apply||(nr?rr.bind(er):function(){return rr.apply(er,arguments)}),ir=Nt("species"),ar=RegExp.prototype,ur=function(t,e,n,r){var o=Nt(t),i=!b((function(){var e={};return e[o]=function(){return 7},7!=""[t](e)})),a=i&&!b((function(){var e=!1,n=/a/;return"split"===t&&((n={}).constructor={},n.constructor[ir]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return e=!0,null},n[o](""),!e}));if(!i||!a||n){var u=I(/./[o]),l=e(o,""[t],(function(t,e,n,r,o){var a=I(t),l=e.exec;return l===Zn||l===ar.exec?i&&!o?{done:!0,value:u(e,n,r)}:{done:!0,value:a(n,e,r)}:{done:!1}}));pe(String.prototype,t,l[0]),pe(ar,o,l[1])}r&&qt(ar[o],"sham",!0)},lr=I("".charAt),cr=I("".charCodeAt),sr=I("".slice),fr=function(t){return function(e,n){var r,o,i=wn(V(e)),a=ge(n),u=i.length;return a<0||a>=u?t?"":void 0:(r=cr(i,a))<55296||r>56319||a+1===u||(o=cr(i,a+1))<56320||o>57343?t?lr(i,a):r:t?sr(i,a,a+2):o-56320+(r-55296<<10)+65536}},dr={codeAt:fr(!1),charAt:fr(!0)},pr=dr.charAt,hr=function(t,e,n){return e+(n?pr(t,e).length:1)},vr=Math.floor,gr=I("".charAt),yr=I("".replace),mr=I("".slice),br=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Er=/\$([$&'`]|\d{1,2})/g,wr=function(t,e,n,r,o,i){var a=n+t.length,u=r.length,l=Er;return void 0!==o&&(o=vt(o),l=br),yr(i,l,(function(i,l){var c;switch(gr(l,0)){case"$":return"$";case"&":return t;case"`":return mr(e,0,n);case"'":return mr(e,a);case"<":c=o[mr(l,1,-1)];break;default:var s=+l;if(0===s)return i;if(s>u){var f=vr(s/10);return 0===f?i:f<=u?void 0===r[f-1]?gr(l,1):r[f-1]+gr(l,1):i}c=r[s-1]}return void 0===c?"":c}))},xr=m.TypeError,Sr=function(t,e){var n=t.exec;if(F(n)){var r=x(n,t,e);return null!==r&&Bt(r),r}if("RegExp"===j(t))return x(Zn,t,e);throw xr("RegExp#exec called on incompatible receiver")},kr=Nt("replace"),Tr=Math.max,Nr=Math.min,Ar=I([].concat),Dr=I([].push),Mr=I("".indexOf),Lr=I("".slice),Pr="$0"==="a".replace(/./,"$0"),Ir=!!/./[kr]&&""===/./[kr]("a","$0");ur("replace",(function(t,e,n){var r=Ir?"$":"$0";return[function(t,n){var r=V(this),o=null==t?void 0:ut(t,kr);return o?x(o,t,r,n):x(e,wn(r),t,n)},function(t,o){var i=Bt(this),a=wn(t);if("string"==typeof o&&-1===Mr(o,r)&&-1===Mr(o,"$<")){var u=n(e,i,a,o);if(u.done)return u.value}var l=F(o);l||(o=wn(o));var c=i.global;if(c){var s=i.unicode;i.lastIndex=0}for(var f=[];;){var d=Sr(i,a);if(null===d)break;if(Dr(f,d),!c)break;""===wn(d[0])&&(i.lastIndex=hr(a,we(i.lastIndex),s))}for(var p,h="",v=0,g=0;g<f.length;g++){for(var y=wn((d=f[g])[0]),m=Tr(Nr(ge(d.index),a.length),0),b=[],E=1;E<d.length;E++)Dr(b,void 0===(p=d[E])?p:String(p));var w=d.groups;if(l){var x=Ar([y],b,m,a);void 0!==w&&Dr(x,w);var S=wn(or(o,void 0,x))}else S=wr(y,a,m,b,w,o);m>=v&&(h+=Lr(a,v,m)+S,v=m+y.length)}return h+Lr(a,v)}]}),!!b((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}))||!Pr||Ir);var Or=Nt("unscopables"),Hr=Array.prototype;null==Hr[Or]&&Ft.f(Hr,Or,{configurable:!0,value:Cn(null)});var jr=function(t){Hr[Or][t]=!0},zr=pn.find,Cr="find",_r=!0;Cr in[]&&Array(1).find((function(){_r=!1})),qe({target:"Array",proto:!0,forced:_r},{find:function(t){return zr(this,t,arguments.length>1?arguments[1]:void 0)}}),jr(Cr);var Br=Nt("match"),Vr=function(t){var e;return q(t)&&(void 0!==(e=t[Br])?!!e:"RegExp"==j(t))},Rr=m.TypeError,Fr=Nt("species"),qr=function(t,e){var n,r=Bt(t).constructor;return void 0===r||null==(n=Bt(r)[Fr])?e:function(t){if(un(t))return t;throw Rr(ot(t)+" is not a constructor")}(n)},Wr=function(t,e,n){var r=Lt(e);r in t?Ft.f(t,r,A(0,n)):t[r]=n},Gr=m.Array,$r=Math.max,Ur=function(t,e,n){for(var r=xe(t),o=be(e,r),i=be(void 0===n?r:n,r),a=Gr($r(i-o,0)),u=0;o<i;o++,u++)Wr(a,u,t[o]);return a.length=u,a},Kr=Nn.UNSUPPORTED_Y,Xr=4294967295,Jr=Math.min,Yr=[].push,Qr=I(/./.exec),Zr=I(Yr),to=I("".slice),eo=!b((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}));ur("split",(function(t,e,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,n){var r=wn(V(this)),o=void 0===n?Xr:n>>>0;if(0===o)return[];if(void 0===t)return[r];if(!Vr(t))return x(e,r,t,o);for(var i,a,u,l=[],c=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),s=0,f=new RegExp(t.source,c+"g");(i=x(Zn,f,r))&&!((a=f.lastIndex)>s&&(Zr(l,to(r,s,i.index)),i.length>1&&i.index<r.length&&or(Yr,l,Ur(i,1)),u=i[0].length,s=a,l.length>=o));)f.lastIndex===i.index&&f.lastIndex++;return s===r.length?!u&&Qr(f,"")||Zr(l,""):Zr(l,to(r,s)),l.length>o?Ur(l,0,o):l}:"0".split(void 0,0).length?function(t,n){return void 0===t&&0===n?[]:x(e,this,t,n)}:e,[function(e,n){var o=V(this),i=null==e?void 0:ut(e,t);return i?x(i,e,o,n):x(r,wn(o),e,n)},function(t,o){var i=Bt(this),a=wn(t),u=n(r,i,a,o,r!==e);if(u.done)return u.value;var l=qr(i,RegExp),c=i.unicode,s=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(Kr?"g":"y"),f=new l(Kr?"^(?:"+i.source+")":i,s),d=void 0===o?Xr:o>>>0;if(0===d)return[];if(0===a.length)return null===Sr(f,a)?[a]:[];for(var p=0,h=0,v=[];h<a.length;){f.lastIndex=Kr?0:h;var g,y=Sr(f,Kr?to(a,h):a);if(null===y||(g=Jr(we(f.lastIndex+(Kr?h:0)),a.length))===p)h=hr(a,h,c);else{if(Zr(v,to(a,p,h)),v.length===d)return v;for(var m=1;m<=y.length-1;m++)if(Zr(v,y[m]),v.length===d)return v;h=p=g}}return Zr(v,to(a,p)),v}]}),!eo,Kr);var no,ro="\t\n\v\f\r ย แš€โ€€โ€โ€‚โ€ƒโ€„โ€…โ€†โ€‡โ€ˆโ€‰โ€Šโ€ฏโŸใ€€\u2028\u2029\ufeff",oo=I("".replace),io="["+ro+"]",ao=RegExp("^"+io+io+"*"),uo=RegExp(io+io+"*$"),lo=function(t){return function(e){var n=wn(V(e));return 1&t&&(n=oo(n,ao,"")),2&t&&(n=oo(n,uo,"")),n}},co={start:lo(1),end:lo(2),trim:lo(3)},so=de.PROPER,fo=co.trim;function po(t){return 0===l.default("<div>"+t+"</div>").children().filter((function(t){return"BR"!==t.tagName})).length}function ho(t){return 0===t.length?"":t[0].outerHTML}function vo(t){return t.length?t[0].tagName.toLowerCase():""}function go(t,e){for(var n="",r=(t.attr("style")||"").split(";"),o=r.length,i=0;i<o;i++){var a=r[i];if(a){var u=a.split(":");u[0].trim()===e&&(n=u[1].trim())}}return n}qe({target:"String",proto:!0,forced:(no="trim",b((function(){return!!ro[no]()||"โ€‹ย…แ Ž"!=="โ€‹ย…แ Ž"[no]()||so&&ro[no].name!==no})))},{trim:function(){return fo(this)}}),qe({global:!0},{globalThis:m}),o.css&&(l.default.fn.css=o.css),o.append&&(l.default.fn.append=o.append),o.prepend&&(l.default.fn.prepend=o.prepend),o.addClass&&(l.default.fn.addClass=o.addClass),o.removeClass&&(l.default.fn.removeClass=o.removeClass),o.hasClass&&(l.default.fn.hasClass=o.hasClass),o.on&&(l.default.fn.on=o.on),o.off&&(l.default.fn.off=o.off),o.focus&&(l.default.fn.focus=o.focus),o.attr&&(l.default.fn.attr=o.attr),o.removeAttr&&(l.default.fn.removeAttr=o.removeAttr),o.hide&&(l.default.fn.hide=o.hide),o.show&&(l.default.fn.show=o.show),o.parents&&(l.default.fn.parents=o.parents),o.dataset&&(l.default.fn.dataset=o.dataset),o.val&&(l.default.fn.val=o.val),o.text&&(l.default.fn.text=o.text),o.html&&(l.default.fn.html=o.html),o.children&&(l.default.fn.children=o.children),o.remove&&(l.default.fn.remove=o.remove),o.find&&(l.default.fn.find=o.find),o.width&&(l.default.fn.width=o.width),o.height&&(l.default.fn.height=o.height),o.filter&&(l.default.fn.filter=o.filter),o.empty&&(l.default.fn.empty=o.empty);var yo=function(t,e){return yo=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},yo(t,e)};function mo(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}yo(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var bo=function(){return bo=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},bo.apply(this,arguments)};function Eo(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{l(r.next(t))}catch(t){i(t)}}function u(t){try{l(r.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,u)}l((r=r.apply(t,e||[])).next())}))}function wo(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(l){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=e.call(t,a)}catch(t){u=[6,t],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,l])}}}function xo(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function So(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function ko(t,e,n){if(n||2===arguments.length)for(var r,o=0,i=e.length;o<i;o++)!r&&o in e||(r||(r=Array.prototype.slice.call(e,0,o)),r[o]=e[o]);return t.concat(r||Array.prototype.slice.call(e))}function To(t){var e=So(r.Editor.nodes(t,{match:function(e){return t.children[0]===e},mode:"highest"}),1),n=e[0];if(null==n)return!1;var o=n[0];if(!r.Element.isElement(o))return!1;if("paragraph"===o.type)return!1;if(""!==r.Node.string(o))return!1;var i=o.children,a=void 0===i?[]:i;return!!r.Text.isText(a[0])&&(r.Transforms.setNodes(t,{type:"paragraph"}),!0)}"function"==typeof SuppressedError&&SuppressedError;var No={renderElems:[s],elemsToHtml:[f],parseElemsHtml:[{selector:"p:not([data-w-e-type])",parseElemHtml:function(t,e,n){var o=l.default(t);return 0===(e=e.filter((function(t){return!!r.Text.isText(t)||!!n.isInline(t)}))).length&&(e=[{text:o.text().replace(/\s+/gm," ")}]),{type:"paragraph",children:e}}}],editorPlugin:function(t){var e=t.deleteBackward,n=t.deleteForward;t.insertText,t.insertBreak;var r=t;return r.deleteBackward=function(t){To(r)||e(t)},r.deleteForward=function(t){To(r)||n(t)},r}},Ao=/"/g,Do=I("".replace),Mo=function(t,e,n,r){var o=wn(V(t)),i="<"+e;return""!==n&&(i+=" "+n+'="'+Do(wn(r),Ao,"&quot;")+'"'),i+">"+o+"</"+e+">"},Lo=function(t){return b((function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3}))};function Po(t,e){var n=e,r=t,o=r.bold,i=r.italic,a=r.underline;return o&&(n="<strong>"+n+"</strong>"),r.code&&(n="<code>"+n+"</code>"),i&&(n="<em>"+n+"</em>"),a&&(n="<u>"+n+"</u>"),r.through&&(n="<s>"+n+"</s>"),r.sub&&(n="<sub>"+n+"</sub>"),r.sup&&(n="<sup>"+n+"</sup>"),n}function Io(t,e){return 0!==t.length&&(!!t[0].matches(e)||t.find(e).length>0)}qe({target:"String",proto:!0,forced:Lo("bold")},{bold:function(){return Mo(this,"b","","")}}),qe({target:"String",proto:!0,forced:Lo("italics")},{italics:function(){return Mo(this,"i","","")}}),qe({target:"String",proto:!0,forced:Lo("sub")},{sub:function(){return Mo(this,"sub","","")}}),qe({target:"String",proto:!0,forced:Lo("sup")},{sup:function(){return Mo(this,"sup","","")}});var Oo={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},Ho=Ot("span").classList,jo=Ho&&Ho.constructor&&Ho.constructor.prototype,zo=jo===Object.prototype?void 0:jo,Co=function(t,e){var n=[][t];return!!n&&b((function(){n.call(null,e||function(){throw 1},1)}))},_o=pn.forEach,Bo=Co("forEach")?[].forEach:function(t){return _o(this,t,arguments.length>1?arguments[1]:void 0)},Vo=function(t){if(t&&t.forEach!==Bo)try{qt(t,"forEach",Bo)}catch(e){t.forEach=Bo}};for(var Ro in Oo)Oo[Ro]&&Vo(m[Ro]&&m[Ro].prototype);Vo(zo);var Fo=b((function(){An(1)}));function qo(t,n){return null==t.selection||!!So(r.Editor.nodes(t,{match:function(n){return"pre"===e.DomEditor.getNodeType(n)||!!r.Editor.isVoid(t,n)},universal:!0}),1)[0]}function Wo(t,e){Object.keys(e).forEach((function(e){"text"!==e&&r.Editor.removeMark(t,e)}))}qe({target:"Object",stat:!0,forced:Fo},{keys:function(t){return An(vt(t))}});var Go=function(){function t(){this.marksNeedToRemove=[],this.tag="button"}return t.prototype.getValue=function(t){var e=this.mark,n=r.Editor.marks(t);return n?n[e]:!!So(r.Editor.nodes(t,{match:function(t){return!0===t[e]}}),1)[0]},t.prototype.isActive=function(t){return!!this.getValue(t)},t.prototype.isDisabled=function(t){return qo(t,this.mark)},t.prototype.exec=function(t,e){var n=this.mark,r=this.marksNeedToRemove;e?t.removeMark(n):(t.addMark(n,!0),r&&r.forEach((function(e){return t.removeMark(e)})))},t}(),$o='<svg viewBox="0 0 1024 1024"><path d="M707.872 484.64A254.88 254.88 0 0 0 768 320c0-141.152-114.848-256-256-256H192v896h384c141.152 0 256-114.848 256-256a256.096 256.096 0 0 0-124.128-219.36zM384 192h101.504c55.968 0 101.504 57.408 101.504 128s-45.536 128-101.504 128H384V192z m159.008 640H384v-256h159.008c58.464 0 106.016 57.408 106.016 128s-47.552 128-106.016 128z"></path></svg>',Uo='<svg viewBox="0 0 1024 1024"><path d="M704 64l128 0 0 416c0 159.072-143.264 288-320 288s-320-128.928-320-288l0-416 128 0 0 416c0 40.16 18.24 78.688 51.36 108.512 36.896 33.216 86.848 51.488 140.64 51.488s103.744-18.304 140.64-51.488c33.12-29.792 51.36-68.352 51.36-108.512l0-416zM192 832l640 0 0 128-640 0z"></path></svg>',Ko='<svg viewBox="0 0 1024 1024"><path d="M896 64v64h-128L448 896h128v64H128v-64h128L576 128h-128V64z"></path></svg>',Xo='<svg viewBox="0 0 1024 1024"><path d="M1024 512v64h-234.496c27.52 38.496 42.496 82.688 42.496 128 0 70.88-36.672 139.04-100.576 186.976C672.064 935.488 594.144 960 512 960s-160.064-24.512-219.424-69.024C228.64 843.04 192 774.88 192 704h128c0 69.376 87.936 128 192 128s192-58.624 192-128-87.936-128-192-128H0v-64h299.52a385.984 385.984 0 0 1-6.944-5.024C228.64 459.04 192 390.88 192 320s36.672-139.04 100.576-186.976C351.936 88.512 429.856 64 512 64s160.064 24.512 219.424 69.024C795.328 180.96 832 249.12 832 320h-128c0-69.376-87.936-128-192-128s-192 58.624-192 128 87.936 128 192 128c78.976 0 154.048 22.688 212.48 64H1024z"></path></svg>',Jo='<svg viewBox="0 0 1024 1024"><path d="M576 736l96 96 320-320L672 192l-96 96 224 224zM448 288l-96-96L32 512l320 320 96-96-224-224z"></path></svg>',Yo='<svg viewBox="0 0 1024 1024"><path d="M864 0a160 160 0 0 1 128 256l-64 64-224-224 64-64c26.752-20.096 59.968-32 96-32zM64 736l-64 288 288-64 592-592-224-224L64 736z m651.584-372.416l-448 448-55.168-55.168 448-448 55.168 55.168z"></path></svg>',Qo='<svg viewBox="0 0 1024 1024"><path d="M924.402464 1023.068211H0.679665V99.345412h461.861399v98.909208H99.596867v725.896389h725.896389V561.206811h98.909208z" p-id="10909"></path><path d="M930.805104 22.977336l69.965436 69.965436-453.492405 453.492404-69.965435-69.901489z" p-id="10910"></path><path d="M1022.464381 304.030081h-98.917201V99.345412H709.230573V0.428211h313.233808z"></path></svg>',Zo='<svg viewBox="0 0 1024 1024"><path d="M64 864h896v96H64zM360.58 576h302.85l81.53 224h102.16L579.24 64H444.77L176.89 800h102.16l81.53-224zM512 159.96L628.49 480H395.52L512 159.96z"></path></svg>',ti='<svg viewBox="0 0 1024 1024"><path d="M510.030769 315.076923l84.676923 196.923077h-177.230769l76.8-196.923077h15.753846zM945.230769 157.538462v708.923076c0 43.323077-35.446154 78.769231-78.769231 78.769231H157.538462c-43.323077 0-78.769231-35.446154-78.769231-78.769231V157.538462c0-43.323077 35.446154-78.769231 78.769231-78.769231h708.923076c43.323077 0 78.769231 35.446154 78.769231 78.769231z m-108.307692 643.938461L600.615385 216.615385c-5.907692-11.815385-15.753846-19.692308-29.538462-19.692308h-139.815385c-11.815385 0-23.630769 7.876923-27.56923 19.692308l-216.615385 584.861538c-3.938462 11.815385 3.938462 25.6 17.723077 25.6h80.738462c11.815385 0 23.630769-9.846154 27.56923-21.661538l63.015385-175.261539h263.876923l68.923077 175.261539c3.938462 11.815385 15.753846 21.661538 27.569231 21.661538h80.738461c13.784615 0 23.630769-13.784615 19.692308-25.6z"></path></svg>',ei='<svg viewBox="0 0 1024 1024"><path d="M826.8032 356.5312c-19.328 0-36.3776 15.6928-36.3776 35.0464v524.2624c0 19.328-16 34.56-35.328 34.56H264.9344c-19.328 0-35.5072-15.3088-35.5072-34.56V390.0416c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.6928-33.5104 35.0464V915.712c0 57.9328 44.6208 108.288 102.528 108.288H755.2c57.9328 0 108.0832-50.4576 108.0832-108.288V391.4752c-0.1024-19.2512-17.1264-34.944-36.48-34.944z" p-id="9577"></path><path d="M437.1712 775.7568V390.6048c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.616-33.5104 35.0464v385.152c0 19.328 14.1568 35.0464 33.5104 35.0464s33.5104-15.7184 33.5104-35.0464zM649.7024 775.7568V390.6048c0-19.328-17.0496-35.0464-36.3776-35.0464s-36.3776 15.616-36.3776 35.0464v385.152c0 19.328 17.0496 35.0464 36.3776 35.0464s36.3776-15.7184 36.3776-35.0464zM965.0432 217.0368h-174.6176V145.5104c0-57.9328-47.2064-101.76-104.6528-101.76h-350.976c-57.8304 0-105.3952 43.8528-105.3952 101.76v71.5264H54.784c-19.4304 0-35.0464 14.1568-35.0464 33.5104 0 19.328 15.616 33.5104 35.0464 33.5104h910.3616c19.328 0 35.0464-14.1568 35.0464-33.5104 0-19.3536-15.6928-33.5104-35.1488-33.5104z m-247.3728 0H297.3952V145.5104c0-19.328 18.2016-34.7648 37.4272-34.7648h350.976c19.1488 0 31.872 15.1296 31.872 34.7648v71.5264z"></path></svg>',ni='<svg viewBox="0 0 1024 1024"><path d="M894.6 907.1H605.4c-32.6 0-59-26.4-59-59V608.2l-4-14.9c0-315.9 125.5-485.1 376.5-507.5v59.8C752.7 180.4 711.3 315.8 711.3 442.4v41.2l31.5 12.3h151.8c32.6 0 59 26.4 59 59v293.2c0 32.5-26.4 59-59 59z m-472 0H133.4c-32.6 0-59-26.4-59-59V608.2l-4-14.9c0-315.9 125.5-485.1 376.5-507.5v59.8C280.7 180.4 239.3 315.8 239.3 442.4v41.2l31.5 12.3h151.8c32.6 0 59 26.4 59 59v293.2c0 32.5-26.4 59-59 59z"></path></svg>',ri='<svg viewBox="0 0 1024 1024"><path d="M64 512h384v128h-128V1024h-128V640h-128z m896-256H708.2496v768h-136.4992V256H320V128h640z"></path></svg>',oi='<svg viewBox="0 0 1024 1024"><path d="M956.788364 152.110545h-24.110546l23.924364 9.029819 0.186182 121.018181h-65.070546l-86.574545-130.048H566.551273v650.14691l130.048 64.977454v65.163636h-390.050909v-65.163636l129.954909-64.977454V152.110545H198.283636L111.429818 282.065455H46.545455V69.259636C46.545455 33.792 82.664727 22.062545 98.955636 22.062545h812.683637c23.738182 0 45.056 15.173818 45.056 41.053091V169.425455v-17.221819z"></path></svg>',ii='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m256-512v384l-256-192z"></path></svg>',ai='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',ui='<svg viewBox="0 0 1024 1024"><path d="M768 793.6v102.4H51.2v-102.4h716.8z m204.8-230.4v102.4H51.2v-102.4h921.6z m-204.8-230.4v102.4H51.2v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',li='<svg viewBox="0 0 1024 1024"><path d="M972.8 793.6v102.4H256v-102.4h716.8z m0-230.4v102.4H51.2v-102.4h921.6z m0-230.4v102.4H256v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',ci='<svg viewBox="0 0 1024 1024"><path d="M870.4 793.6v102.4H153.6v-102.4h716.8z m102.4-230.4v102.4H51.2v-102.4h921.6z m-102.4-230.4v102.4H153.6v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',si='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z"></path></svg>',fi='<svg viewBox="0 0 1024 1024"><path d="M768 206.016v50.016h128v64h-192V174.016l128-60V64h-128V0h192v146.016zM676 256h-136L352 444 164 256H28l256 256-256 256h136L352 580 540 768h136l-256-256z"></path></svg>',di='<svg viewBox="0 0 1024 1024"><path d="M768 910.016v50.016h128v64h-192v-146.016l128-60V768h-128v-64h192v146.016zM676 256h-136L352 444 164 256H28l256 256-256 256h136L352 580 540 768h136l-256-256z"></path></svg>',pi='<svg viewBox="0 0 1255 1024"><path d="M1095.111111 731.477333h-625.777778V1024L0 658.318222 469.333333 292.408889v292.636444h625.777778V0h156.444445v731.477333z"></path></svg>',hi=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.mark="bold",n.title=e.t("textStyle.bold"),n.iconSvg=$o,n.hotkey="mod+b",n}return mo(n,t),n}(Go),vi=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.mark="code",n.title=e.t("textStyle.code"),n.iconSvg=Jo,n.hotkey="mod+e",n}return mo(n,t),n}(Go),gi=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.mark="italic",n.title=e.t("textStyle.italic"),n.iconSvg=Ko,n.hotkey="mod+i",n}return mo(n,t),n}(Go),yi=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.mark="through",n.title=e.t("textStyle.through"),n.iconSvg=Xo,n.hotkey="mod+shift+x",n}return mo(n,t),n}(Go),mi=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.mark="underline",n.title=e.t("textStyle.underline"),n.iconSvg=Uo,n.hotkey="mod+u",n}return mo(n,t),n}(Go),bi=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.mark="sub",n.marksNeedToRemove=["sup"],n.title=e.t("textStyle.sub"),n.iconSvg=di,n.hotkey="",n}return mo(n,t),n}(Go),Ei=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.mark="sup",n.marksNeedToRemove=["sub"],n.title=e.t("textStyle.sup"),n.iconSvg=fi,n.hotkey="",n}return mo(n,t),n}(Go);var wi=function(){function t(){this.title=e.t("textStyle.clear"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M969.382408 288.738615l-319.401123-270.852152a67.074236 67.074236 0 0 0-96.459139 5.74922l-505.931379 574.922021a68.35184 68.35184 0 0 0-17.886463 47.910169 74.101061 74.101061 0 0 0 24.274486 47.910168l156.50655 132.232065h373.060512L975.131628 383.281347a67.074236 67.074236 0 0 0-5.74922-96.459139z m-440.134747 433.746725H264.144729l-90.071117-78.572676c-5.74922-5.74922-12.137243-12.137243-12.137243-17.886463a36.411728 36.411728 0 0 1 5.749221-24.274485l210.804741-240.828447 265.102932 228.691204z m-439.495945 180.781036h843.218964a60.047411 60.047411 0 1 1 0 120.733624H89.751716a60.047411 60.047411 0 1 1 0-120.733624z m0 0"></path></svg>',this.tag="button"}return t.prototype.getValue=function(t){return""},t.prototype.isActive=function(t){return!1},t.prototype.isDisabled=function(t){return qo(t)},t.prototype.exec=function(t,n){var o,i,a=r.Editor.nodes(t,{match:function(t){return r.Text.isText(t)},universal:!0});try{for(var u=xo(a),l=u.next();!l.done;l=u.next()){Wo(t,l.value[0])}}catch(t){o={error:t}}finally{try{l&&!l.done&&(i=u.return)&&i.call(u)}finally{if(o)throw o.error}}try{r.Transforms.setNodes(t,{type:"paragraph"},{match:function(t){return"header1"===(n=e.DomEditor.getNodeType(t))||"header2"===n||"header3"===n||"header4"===n||"header5"===n||"header6"===n;var n},mode:"highest"})}catch(t){}},t}(),xi={renderStyle:function(t,e){var r=t,o=r.bold,i=r.italic,a=r.underline,u=r.code,l=r.through,c=r.sub,s=r.sup,f=e;return o&&(f=n.jsx("strong",null,f)),u&&(f=n.jsx("code",null,f)),i&&(f=n.jsx("em",null,f)),a&&(f=n.jsx("u",null,f)),l&&(f=n.jsx("s",null,f)),c&&(f=n.jsx("sub",null,f)),s&&(f=n.jsx("sup",null,f)),f},menus:[{key:"bold",factory:function(){return new hi}},{key:"underline",factory:function(){return new mi}},{key:"italic",factory:function(){return new gi}},{key:"through",factory:function(){return new yi}},{key:"code",factory:function(){return new vi}},{key:"sub",factory:function(){return new bi}},{key:"sup",factory:function(){return new Ei}},{key:"clearStyle",factory:function(){return new wi}},{key:"clearAllFormat",factory:function(){return new wi}}],styleToHtml:function(t,e){if(!r.Text.isText(t))return e;if(po(e))return Po(t,e);var n=l.default(e);if("br"===vo(n))return Po(t,"<br>");var o=n.html();return o=Po(t,o),n.html(o),ho(n)},parseStyleHtml:function(t,e,n){var o=l.default(t);if(!r.Text.isText(e))return e;var i=e;return Io(o,"b,strong")&&(i.bold=!0),Io(o,"i,em")&&(i.italic=!0),Io(o,"u")&&(i.underline=!0),Io(o,"s,strike")&&(i.through=!0),Io(o,"sub")&&(i.sub=!0),Io(o,"sup")&&(i.sup=!0),Io(o,"code")&&(i.code=!0),i}};function Si(t){return function(e,r,o){var i="h"+t;return n.jsx(i,null,r)}}var ki={type:"header1",renderElem:Si(1)},Ti={type:"header2",renderElem:Si(2)},Ni={type:"header3",renderElem:Si(3)},Ai={type:"header4",renderElem:Si(4)},Di={type:"header5",renderElem:Si(5)},Mi=de.PROPER,Li="toString",Pi=RegExp.prototype,Ii=Pi.toString,Oi=I(xn),Hi=b((function(){return"/a/b"!=Ii.call({source:"a",flags:"b"})})),ji=Mi&&Ii.name!=Li;(Hi||ji)&&pe(RegExp.prototype,Li,(function(){var t=Bt(this),e=wn(t.source),n=t.flags;return"/"+e+"/"+wn(void 0===n&&$(Pi,t)&&!("flags"in Pi)?Oi(t):n)}),{unsafe:!0});var zi,Ci=m.TypeError,_i=function(t){if(Vr(t))throw Ci("The method doesn't accept regular expressions");return t},Bi=Nt("match"),Vi=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[Bi]=!1,"/./"[t](e)}catch(t){}}return!1},Ri=zt.f,Fi=I("".startsWith),qi=I("".slice),Wi=Math.min,Gi=Vi("startsWith"),$i=!(Gi||(zi=Ri(String.prototype,"startsWith"),!zi||zi.writable));function Ui(t){var n=So(r.Editor.nodes(t,{match:function(t){return e.DomEditor.getNodeType(t).startsWith("header")},universal:!0}),1),o=n[0];if(null==o)return"paragraph";var i=So(o,1)[0];return e.DomEditor.getNodeType(i)}function Ki(t){return null==t.selection||!So(r.Editor.nodes(t,{match:function(t){var n=e.DomEditor.getNodeType(t);return"paragraph"===n||!!n.startsWith("header")},universal:!0,mode:"highest"}),1)[0]}function Xi(t,e){e&&r.Transforms.setNodes(t,{type:e})}qe({target:"String",proto:!0,forced:!$i&&!Gi},{startsWith:function(t){var e=wn(V(this));_i(t);var n=we(Wi(arguments.length>1?arguments[1]:void 0,e.length)),r=wn(t);return Fi?Fi(e,r,n):qi(e,n,n+r.length)===r}});var Ji=function(){function t(){this.title=e.t("header.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M960 960c-51.2 0-102.4-3.2-153.6-3.2-51.2 0-99.2 3.2-150.4 3.2-19.2 0-28.8-22.4-28.8-38.4 0-51.2 57.6-28.8 86.4-48 19.2-12.8 19.2-60.8 19.2-80v-224-19.2c-9.6-3.2-19.2-3.2-28.8-3.2H320c-9.6 0-19.2 0-28.8 3.2V780.8c0 22.4 0 80 22.4 92.8 28.8 19.2 96-6.4 96 44.8 0 16-9.6 41.6-28.8 41.6-54.4 0-105.6-3.2-160-3.2-48 0-96 3.2-147.2 3.2-19.2 0-28.8-22.4-28.8-38.4 0-51.2 51.2-28.8 80-48 19.2-12.8 19.2-60.8 19.2-83.2V294.4c0-28.8 3.2-115.2-22.4-131.2-25.6-16-86.4 9.6-86.4-41.6 0-16 6.4-41.6 28.8-41.6 51.2 0 105.6 3.2 156.8 3.2 48 0 96-3.2 144-3.2 19.2 0 28.8 22.4 28.8 41.6 0 48-57.6 25.6-83.2 41.6-19.2 12.8-19.2 73.6-19.2 92.8v201.6c6.4 3.2 16 3.2 22.4 3.2h400c6.4 0 12.8 0 22.4-3.2V256c0-22.4 0-80-19.2-92.8-28.8-16-86.4 6.4-86.4-41.6 0-16 9.6-41.6 28.8-41.6 51.2 0 99.2 3.2 150.4 3.2 48 0 99.2-3.2 147.2-3.2 19.2 0 28.8 22.4 28.8 41.6 0 51.2-57.6 25.6-86.4 41.6-19.2 12.8-19.2 70.4-19.2 92.8v537.6c0 19.2 0 67.2 19.2 80 28.8 19.2 89.6-6.4 89.6 44.8 0 19.2-6.4 41.6-28.8 41.6z"></path></svg>',this.tag="select",this.width=60}return t.prototype.getOptions=function(t){var n=[{value:"paragraph",text:e.t("header.text"),styleForRenderMenuList:{"font-size":"14px","font-weight":"normal","line-height":"1.25"}},{value:"header1",text:"H1",styleForRenderMenuList:{"font-size":"32px","font-weight":"bold","line-height":"1.25"}},{value:"header2",text:"H2",styleForRenderMenuList:{"font-size":"24px","font-weight":"bold","line-height":"1.25"}},{value:"header3",text:"H3",styleForRenderMenuList:{"font-size":"18px","font-weight":"bold","line-height":"1.25"}},{value:"header4",text:"H4",styleForRenderMenuList:{"font-size":"16px","font-weight":"bold","line-height":"1.25"}},{value:"header5",text:"H5",styleForRenderMenuList:{"font-size":"13px","font-weight":"bold","line-height":"1.25"}}],r=this.getValue(t).toString();return n.forEach((function(t){t.value===r?t.selected=!0:delete t.selected})),n},t.prototype.isActive=function(t){return!1},t.prototype.getValue=function(t){return Ui(t)},t.prototype.isDisabled=function(t){return Ki(t)},t.prototype.exec=function(t,e){Xi(t,e.toString())},t}(),Yi=function(){function t(){this.tag="button"}return t.prototype.getValue=function(t){return Ui(t)},t.prototype.isActive=function(t){return this.getValue(t)===this.type},t.prototype.isDisabled=function(t){return Ki(t)},t.prototype.exec=function(t,e){var n=this.type;Xi(t,e===n?"paragraph":n)},t}(),Qi=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.title="H1",e.type="header1",e}return mo(e,t),e}(Yi),Zi=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.title="H2",e.type="header2",e}return mo(e,t),e}(Yi),ta=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.title="H3",e.type="header3",e}return mo(e,t),e}(Yi),ea=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.title="H4",e.type="header4",e}return mo(e,t),e}(Yi),na=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.title="H5",e.type="header5",e}return mo(e,t),e}(Yi),ra={key:"headerSelect",factory:function(){return new Ji}},oa={key:"header1",factory:function(){return new Qi}},ia={key:"header2",factory:function(){return new Zi}},aa={key:"header3",factory:function(){return new ta}},ua={key:"header4",factory:function(){return new ea}},la={key:"header5",factory:function(){return new na}};function ca(t){return function(e,n){return"<h"+t+">"+n+"</h"+t+">"}}function sa(t){return function(e,n,o){var i=l.default(e);return 0===(n=n.filter((function(t){return!!r.Text.isText(t)||!!o.isInline(t)}))).length&&(n=[{text:i.text().replace(/\s+/gm," ")}]),{type:"header"+t,children:n}}}var fa={renderElems:[ki,Ti,Ni,Ai,Di],elemsToHtml:[{type:"header1",elemToHtml:ca(1)},{type:"header2",elemToHtml:ca(2)},{type:"header3",elemToHtml:ca(3)},{type:"header4",elemToHtml:ca(4)},{type:"header5",elemToHtml:ca(5)}],parseElemsHtml:[{selector:"h1:not([data-w-e-type])",parseElemHtml:sa(1)},{selector:"h2:not([data-w-e-type])",parseElemHtml:sa(2)},{selector:"h3:not([data-w-e-type])",parseElemHtml:sa(3)},{selector:"h4:not([data-w-e-type])",parseElemHtml:sa(4)},{selector:"h5:not([data-w-e-type])",parseElemHtml:sa(5)}],menus:[ra,oa,ia,aa,ua,la],editorPlugin:function(t){var n=t.insertBreak;t.insertNode;var o=t;return o.insertBreak=function(){var i=So(r.Editor.nodes(o,{match:function(t){return e.DomEditor.getNodeType(t).startsWith("header")},universal:!0}),1)[0];if(i)if(e.DomEditor.isSelectionAtLineEnd(t,i[1])){r.Transforms.insertNodes(o,{type:"paragraph",children:[{text:""}]},{mode:"highest"})}else n();else n()},o}},da=Object.assign,pa=Object.defineProperty,ha=I([].concat),va=!da||b((function(){if(E&&1!==da({b:1},da(pa({},"a",{enumerable:!0,get:function(){pa(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach((function(t){e[t]=t})),7!=da({},t)[n]||An(da({},e)).join("")!=r}))?function(t,e){for(var n=vt(t),r=arguments.length,o=1,i=Pe.f,a=N.f;r>o;)for(var u,l=_(arguments[o++]),c=i?ha(An(l),i(l)):An(l),s=c.length,f=0;s>f;)u=c[f++],E&&!x(a,l,u)||(n[u]=l[u]);return n}:da;function ga(t,e){null==t.data&&(t.data={});var n=t.data;null==n.style&&(n.style={}),Object.assign(n.style,e)}qe({target:"Object",stat:!0,forced:Object.assign!==va},{assign:va});var ya={selector:"font",preParseHtml:function(t){var e=l.default(t);if("font"!==vo(e))return t;var n=e.attr("color")||"";return n&&(e.removeAttr("color"),e.css("color",n)),e[0]}};var ma=function(){function t(){this.tag="button",this.showDropPanel=!0,this.$content=null}return t.prototype.exec=function(t,e){},t.prototype.getValue=function(t){var e=this.mark,n=r.Editor.marks(t);return n&&n[e]?n[e]:""},t.prototype.isActive=function(t){return!!this.getValue(t)},t.prototype.isDisabled=function(t){return null==t.selection||!!So(r.Editor.nodes(t,{match:function(n){return"pre"===e.DomEditor.getNodeType(n)||!!r.Editor.isVoid(t,n)},universal:!0}),1)[0]},t.prototype.getPanelContentElem=function(t){var n=this.mark;if(null==this.$content){var o=l.default('<ul class="w-e-panel-content-color"></ul>');o.on("click","li",(function(e){var o=e.target;if(null!=o&&(e.preventDefault(),null!=t.selection)){var i=l.default(o).attr("data-value");"0"===i?r.Editor.removeMark(t,n):r.Editor.addMark(t,n,i)}})),this.$content=o}var i=this.$content;if(null==i)return document.createElement("ul");i.empty();var a=this.getValue(t),u=t.getMenuConfig(n).colors;(void 0===u?[]:u).forEach((function(t){var e=l.default('<div class="color-block" data-value="'+t+'"></div>');e.css("background-color",t);var n=l.default('<li data-value="'+t+'"></li>');a===t&&n.addClass("active"),n.append(e),i.append(n)}));var c="";"color"===n&&(c=e.t("color.default")),"bgColor"===n&&(c=e.t("color.clear"));var s=l.default('\n <li data-value="0" class="clear">\n <svg viewBox="0 0 1024 1024"><path d="M236.8 128L896 787.2V128H236.8z m614.4 704L192 172.8V832h659.2zM192 64h704c38.4 0 64 25.6 64 64v704c0 38.4-25.6 64-64 64H192c-38.4 0-64-25.6-64-64V128c0-38.4 25.6-64 64-64z"></path></svg>\n '+c+"\n </li>\n ");return i.prepend(s),i[0]},t}(),ba=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.title=e.t("color.color"),n.iconSvg=Zo,n.mark="color",n}return mo(n,t),n}(ma),Ea=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.title=e.t("color.bgColor"),n.iconSvg=ti,n.mark="bgColor",n}return mo(n,t),n}(ma),wa=["rgb(0, 0, 0)","rgb(38, 38, 38)","rgb(89, 89, 89)","rgb(140, 140, 140)","rgb(191, 191, 191)","rgb(217, 217, 217)","rgb(233, 233, 233)","rgb(245, 245, 245)","rgb(250, 250, 250)","rgb(255, 255, 255)","rgb(225, 60, 57)","rgb(231, 95, 51)","rgb(235, 144, 58)","rgb(245, 219, 77)","rgb(114, 192, 64)","rgb(89, 191, 192)","rgb(66, 144, 247)","rgb(54, 88, 226)","rgb(106, 57, 201)","rgb(216, 68, 147)","rgb(251, 233, 230)","rgb(252, 237, 225)","rgb(252, 239, 212)","rgb(252, 251, 207)","rgb(231, 246, 213)","rgb(218, 244, 240)","rgb(217, 237, 250)","rgb(224, 232, 250)","rgb(237, 225, 248)","rgb(246, 226, 234)","rgb(255, 163, 158)","rgb(255, 187, 150)","rgb(255, 213, 145)","rgb(255, 251, 143)","rgb(183, 235, 143)","rgb(135, 232, 222)","rgb(145, 213, 255)","rgb(173, 198, 255)","rgb(211, 173, 247)","rgb(255, 173, 210)","rgb(255, 77, 79)","rgb(255, 122, 69)","rgb(255, 169, 64)","rgb(255, 236, 61)","rgb(115, 209, 61)","rgb(54, 207, 201)","rgb(64, 169, 255)","rgb(89, 126, 247)","rgb(146, 84, 222)","rgb(247, 89, 171)","rgb(207, 19, 34)","rgb(212, 56, 13)","rgb(212, 107, 8)","rgb(212, 177, 6)","rgb(56, 158, 13)","rgb(8, 151, 156)","rgb(9, 109, 217)","rgb(29, 57, 196)","rgb(83, 29, 171)","rgb(196, 29, 127)","rgb(130, 0, 20)","rgb(135, 20, 0)","rgb(135, 56, 0)","rgb(97, 71, 0)","rgb(19, 82, 0)","rgb(0, 71, 79)","rgb(0, 58, 140)","rgb(6, 17, 120)","rgb(34, 7, 94)","rgb(120, 6, 80)"];var xa={renderStyle:function(t,e){var n=t,r=n.color,o=n.bgColor,i=e;return r&&ga(i,{color:r}),o&&ga(i,{backgroundColor:o}),i},styleToHtml:function(t,e){if(!r.Text.isText(t))return e;var n,o=t,i=o.color,a=o.bgColor;return i||a?((po(e)||"span"!==vo(n=l.default(e)))&&(n=l.default("<span>"+e+"</span>")),i&&n.css("color",i),a&&n.css("background-color",a),ho(n)):e},preParseHtml:[ya],parseStyleHtml:function(t,e,n){var o=l.default(t);if(!r.Text.isText(e))return e;var i=e,a=go(o,"color");a&&(i.color=a);var u=go(o,"background-color");return u||(u=go(o,"background")),u&&(i.bgColor=u),i},menus:[{key:"color",factory:function(){return new ba},config:{colors:wa}},{key:"bgColor",factory:function(){return new Ea},config:{colors:wa}}]};qe({target:"String",proto:!0,forced:Lo("anchor")},{anchor:function(t){return Mo(this,"a","name",t)}});var Sa=function(t){if("string"!=typeof t)return!1;var e=t.match(ka);if(!e)return!1;var n=e[1];if(!n)return!1;if(Ta.test(n)||Na.test(n))return!0;return!1},ka=/^(?:\w+:)?\/\/(\S+)$/,Ta=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,Na=/^[^\s\.]+\.\S{2,}$/;var Aa=ke.includes;function Da(t){return void 0===t&&(t="r"),t+"-"+i.nanoid()}function Ma(t){return t.replace(/</g,"&lt;").replace(/>/g,"&gt;")}function La(t,e,n,r){return Eo(this,void 0,void 0,(function(){var o,i;return wo(this,(function(a){switch(a.label){case 0:return(o=e.getMenuConfig(t).checkLink)?[4,o(n,r)]:[3,2];case 1:if("string"==typeof(i=a.sent()))return e.alert(i,"error"),[2,!1];if(null==i)return[2,!1];a.label=2;case 2:return[2,!0]}}))}))}function Pa(t,e,n){return Eo(this,void 0,void 0,(function(){var r;return wo(this,(function(o){switch(o.label){case 0:return(r=e.getMenuConfig(t).parseLinkUrl)?[4,r(n)]:[3,2];case 1:return[2,o.sent()];case 2:return[2,n]}}))}))}function Ia(t){return null==t.selection||!!e.DomEditor.getSelectedElems(t).some((function(e){var n=e.type;return!!t.isVoid(e)||(!!["pre","code","link"].includes(n)||void 0)}))}function Oa(t,e){return{type:"link",url:Ma(t),children:e?[{text:e}]:[]}}qe({target:"Array",proto:!0},{includes:function(t){return Aa(this,t,arguments.length>1?arguments[1]:void 0)}}),jr("includes");var Ha={type:"link",renderElem:function(t,e,r){var o=t,i=o.url,a=o.target,u=void 0===a?"_blank":a;return n.jsx("a",{href:i,target:u},e)}};var ja={type:"link",elemToHtml:function(t,e){var n=t,r=n.url,o=n.target;return'<a href="'+r+'" target="'+(void 0===o?"_blank":o)+'">'+e+"</a>"}};var za={selector:"a:not([data-w-e-type])",parseElemHtml:function(t,e,n){var o=l.default(t);return 0===(e=e.filter((function(t){return!!r.Text.isText(t)||!!n.isInline(t)}))).length&&(e=[{text:o.text().replace(/\s+/gm," ")}]),{type:"link",url:o.attr("href")||"",target:o.attr("target")||"",children:e}}},Ca=function(){function t(){this.title=e.t("link.unLink"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M608.16328 811.815036c9.371954 9.371954 9.371954 24.56788 0 33.941834l-89.347563 89.347564c-118.525421 118.523421-311.38448 118.531421-429.919901 0-118.527421-118.529421-118.527421-311.39048 0-429.917901l89.349564-89.349563c9.371954-9.371954 24.56788-9.371954 33.941834 0l79.195613 79.195613c9.371954 9.371954 9.371954 24.56788 0 33.941834l-89.349563 89.347564c-56.143726 56.145726-56.143726 147.49928 0 203.645005 56.143726 56.143726 147.49928 56.145726 203.647005 0l89.347564-89.347563c9.371954-9.371954 24.56788-9.371954 33.941834 0l79.193613 79.195613z m-113.135447-520.429459c9.371954 9.371954 24.56788 9.371954 33.941834 0l89.347564-89.347564c56.143726-56.149726 147.49928-56.145726 203.647006 0 56.143726 56.145726 56.143726 147.49928 0 203.645006l-89.349564 89.347564c-9.371954 9.371954-9.371954 24.56788 0 33.941834l79.195613 79.195613c9.371954 9.371954 24.56788 9.371954 33.941834 0l89.349564-89.349563c118.529421-118.529421 118.529421-311.38848 0-429.917901-118.531421-118.527421-311.38848-118.527421-429.919901 0l-89.347563 89.347564c-9.371954 9.371954-9.371954 24.56788 0 33.941834l79.193613 79.195613z m469.653707 718.556492l45.253779-45.253779c18.745908-18.745908 18.745908-49.13776 0-67.881669L127.195629 14.062931c-18.745908-18.745908-49.13776-18.745908-67.881669 0L14.058181 59.31871c-18.745908 18.745908-18.745908 49.13776 0 67.881669l882.74169 882.74169c18.745908 18.743908 49.13776 18.743908 67.881669 0z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(t){return""},t.prototype.isActive=function(t){return!1},t.prototype.isDisabled=function(t){return null==t.selection||null==e.DomEditor.getSelectedNodeByType(t,"link")},t.prototype.exec=function(t,n){this.isDisabled(t)||r.Transforms.unwrapNodes(t,{match:function(t){return e.DomEditor.checkNodeType(t,"link")}})},t}(),_a=function(){function t(){this.title=e.t("link.view"),this.iconSvg=Qo,this.tag="button"}return t.prototype.getSelectedLinkElem=function(t){var n=e.DomEditor.getSelectedNodeByType(t,"link");return null==n?null:n},t.prototype.getValue=function(t){var e=this.getSelectedLinkElem(t);return e&&e.url||""},t.prototype.isActive=function(t){return!1},t.prototype.isDisabled=function(t){return null==t.selection||null==this.getSelectedLinkElem(t)},t.prototype.exec=function(t,e){if(!this.isDisabled(t)){if(!e||"string"!=typeof e)throw new Error("View link failed, link url is '"+e+"'");window.open(e,"_blank")}},t}(),Ba=I([].slice),Va=vn("slice"),Ra=Nt("species"),Fa=m.Array,qa=Math.max;qe({target:"Array",proto:!0,forced:!Va},{slice:function(t,e){var n,r,o,i=R(this),a=xe(i),u=be(t,a),l=be(void 0===e?a:e,a);if($e(i)&&(n=i.constructor,(un(n)&&(n===Fa||$e(n.prototype))||q(n)&&null===(n=n[Ra]))&&(n=void 0),n===Fa||void 0===n))return Ba(i,u,l);for(r=new(void 0===n?Fa:n)(qa(l-u,0)),o=0;u<l;u++,o++)u in i&&Wr(r,o,i[u]);return r.length=o,r}});var Wa=!1;function Ga(t){Wa=!!t,function(){try{"undefined"!=typeof window&&(window.__wELinkFormApplying=Wa)}catch(t){}}()}var $a=null;function Ua(t,e){var n="undefined"!=typeof document&&(document.querySelector(".editor-content .w-e-text-container")||document.querySelector(".w-e-text-container"))||null;if(n){var r=n.classList.contains("mdg-link-modal-open");if(t)return n.classList.add("mdg-link-modal-open"),void n.classList.add("w-e-link-modal-open");n.classList.remove("mdg-link-modal-open"),n.classList.remove("w-e-link-modal-open"),r&&(Wa||Ka(e))}}function Ka(t){var n=t,r=function(){var t,r,o;try{null===(o=null===(r=null===(t=e.DomEditor.getHoverbar)||void 0===t?void 0:t.call(e.DomEditor,n))||void 0===r?void 0:r.hideAndClean)||void 0===o||o.call(r)}catch(t){}};try{n&&!n.isDestroyed&&"function"==typeof n.deselect&&n.deselect()}catch(t){}r(),"function"==typeof requestAnimationFrame&&requestAnimationFrame(r)}function Xa(t){var e=String(t||"").trim();return!e||"#"===e||/^javascript:/i.test(e)?"":(e=e.replace(/</g,"&lt;").replace(/>/g,"&gt;"),/^[a-z][a-z0-9+.-]*:/i.test(e)?e:"http://"+e)}var Ja=function(){function t(t){void 0===t&&(t="edit"),this.tag="button",this.showModal=!0,this.modalWidth=300,this._root=null,this._editor=null,this._editLinkPath=null,this._savedSelection=null,this.mode="insert"===t?"insert":"edit",this.title="insert"===this.mode?e.t("link.insert"):e.t("link.edit"),this.iconSvg="insert"===this.mode?'<svg viewBox="0 0 1024 1024"><path d="M440.224 635.776a51.84 51.84 0 0 1-36.768-15.232c-95.136-95.136-95.136-249.92 0-345.056l192-192C641.536 37.408 702.816 12.032 768 12.032s126.432 25.376 172.544 71.456c95.136 95.136 95.136 249.92 0 345.056l-87.776 87.776a51.968 51.968 0 1 1-73.536-73.536l87.776-87.776a140.16 140.16 0 0 0 0-197.984c-26.432-26.432-61.6-40.992-99.008-40.992s-72.544 14.56-99.008 40.992l-192 192a140.16 140.16 0 0 0 0 197.984 51.968 51.968 0 0 1-36.768 88.768z"></path><path d="M256 1012a242.4 242.4 0 0 1-172.544-71.456c-95.136-95.136-95.136-249.92 0-345.056l87.776-87.776a51.968 51.968 0 1 1 73.536 73.536l-87.776 87.776a140.16 140.16 0 0 0 0 197.984c26.432 26.432 61.6 40.992 99.008 40.992s72.544-14.56 99.008-40.992l192-192a140.16 140.16 0 0 0 0-197.984 51.968 51.968 0 1 1 73.536-73.536c95.136 95.136 95.136 249.92 0 345.056l-192 192A242.4 242.4 0 0 1 256 1012z"></path></svg>':Yo;var n=Math.random().toString(36).slice(2,9);this._textInputId="w-e-link-form-text-"+n,this._urlInputId="w-e-link-form-url-"+n}return t.prototype.getSelectedLinkElem=function(t){return e.DomEditor.getSelectedNodeByType(t,"link")||null},t.prototype.getValue=function(t){var e=this.getSelectedLinkElem(t);return(null==e?void 0:e.url)||""},t.prototype.isActive=function(){return!1},t.prototype.exec=function(){},t.prototype._isInsertDisabled=function(t){if(null==t.selection)return!0;try{return(e.DomEditor.getSelectedElems(t)||[]).some((function(n){var r;if(null===(r=t.isVoid)||void 0===r?void 0:r.call(t,n))return!0;var o=e.DomEditor.getNodeType(n);return"pre"===o||"code"===o||"link"===o}))}catch(t){return!0}},t.prototype.isDisabled=function(t){return"insert"===this.mode?this._isInsertDisabled(t):null==t.selection||null==this.getSelectedLinkElem(t)},t.prototype.getModalPositionNode=function(t){return"insert"===this.mode?null:e.DomEditor.getSelectedNodeByType(t,"link")},t.prototype._isCollapsedSelection=function(t){if(!(null==t?void 0:t.anchor)||!(null==t?void 0:t.focus))return!0;var e=t.anchor,n=t.focus;return e.offset===n.offset&&(!(!Array.isArray(e.path)||!Array.isArray(n.path)||e.path.length!==n.path.length)&&e.path.every((function(t,e){return t===n.path[e]})))},t.prototype._readFormAndValidate=function(){if(!this._root)return null;var t=this._root.querySelector("#"+this._textInputId),e=this._root.querySelector("#"+this._urlInputId),n=String((null==t?void 0:t.value)||"").trim(),r=String((null==e?void 0:e.value)||"").trim();return r&&(r=Xa(r))?(n||(n=r),{text:n,url:r}):null},t.prototype._restoreEditorSelection=function(t){var e;try{null===(e=t.focus)||void 0===e||e.call(t)}catch(t){}if(this._savedSelection)try{if("function"==typeof t.select?t.select(this._savedSelection):r.Transforms.select(t,this._savedSelection),t.selection)return!0}catch(t){}try{"function"==typeof t.restoreSelection&&t.restoreSelection()}catch(t){}return!!t.selection},t.prototype._applyInsert=function(t){return Eo(this,void 0,void 0,(function(){var e,n,o,i,a;return wo(this,(function(u){Ga(!0);try{if(!this._restoreEditorSelection(t))return[2];if(this._isInsertDisabled(t))return[2];if(!(e=this._readFormAndValidate()))return[2];if(!this._restoreEditorSelection(t))return[2];if(n=e.text,o=e.url,!(i=t.selection))return[2];if(this._isCollapsedSelection(i))"function"==typeof t.insertText?t.insertText(" "):r.Transforms.insertText(t," "),r.Transforms.insertNodes(t,{type:"link",url:o,children:[{text:n}]}),"function"==typeof t.insertFragment?t.insertFragment([{text:" "}]):r.Transforms.insertNodes(t,{text:" "});else{a="";try{a=String(r.Editor.string(t,i)||"")}catch(t){a=""}a!==n?("function"==typeof t.deleteFragment?t.deleteFragment():r.Transforms.delete(t),r.Transforms.insertNodes(t,{type:"link",url:o,children:[{text:n}]})):(r.Transforms.wrapNodes(t,{type:"link",url:o,children:[]},{split:!0}),r.Transforms.collapse(t,{edge:"end"}))}}catch(t){console.warn("[wangeditor] insertLinkForm apply",t)}finally{Ga(!1);try{t.hidePanelOrModal()}catch(t){}Ua(!1,t),Ka(t)}return[2]}))}))},t.prototype._resolveEditLinkPath=function(t){var n=this.getSelectedLinkElem(t),o=null;if(n)try{o=e.DomEditor.findPath(t,n)}catch(t){o=null}if((!o||!o.length)&&Array.isArray(this._editLinkPath)&&this._editLinkPath.length){o=ko([],So(this._editLinkPath));try{var i=r.Editor.node(t,o),a=null==i?void 0:i[0];a&&e.DomEditor.checkNodeType(a,"link")&&(n=a)}catch(t){}}return{linkElem:n,path:o}},t.prototype._applyEdit=function(t){return Eo(this,void 0,void 0,(function(){var n,o,i,a,u,l,c,s,f;return wo(this,(function(d){Ga(!0);try{if(this._restoreEditorSelection(t),!(n=this._readFormAndValidate()))return[2];if(o=n.text,i=n.url,this._restoreEditorSelection(t),a=this._resolveEditLinkPath(t),u=a.linkElem,(!(l=a.path)||!l.length)&&u)try{l=e.DomEditor.findPath(t,u)}catch(t){l=null}if(!(null==l?void 0:l.length))return[2];c=u?String(r.Node.string(u)||""):"",r.Transforms.setNodes(t,{url:i},{at:l}),o!==c&&(s=r.Editor.start(t,l),f=r.Editor.end(t,l),s&&f&&(r.Transforms.select(t,{anchor:s,focus:f}),r.Transforms.insertText(t,o)))}catch(t){console.warn("[wangeditor] editLinkForm apply",t)}finally{Ga(!1);try{t.hidePanelOrModal()}catch(t){}Ua(!1,t),Ka(t)}return[2]}))}))},t.prototype._apply=function(t){return Eo(this,void 0,void 0,(function(){return wo(this,(function(e){switch(e.label){case 0:return t&&!t.isDestroyed&&this._root?"insert"!==this.mode?[3,2]:[4,this._applyInsert(t)]:[2];case 1:case 3:return e.sent(),[2];case 2:return[4,this._applyEdit(t)]}}))}))},t.prototype._onRootClick=function(t){var e,n,r=this._editor;if(r&&!r.isDestroyed){var o=t.target;if(o instanceof Element){var i=null===(n=null===(e=o.closest)||void 0===e?void 0:e.call(o,"[data-w-e-link-action]"))||void 0===n?void 0:n.getAttribute("data-w-e-link-action");if(i){if(t.preventDefault(),"cancel"===i)return r.hidePanelOrModal(),void Ua(!1,r);"ok"===i&&this._apply(r)}}}},t.prototype._onRootKeydown=function(t){"Enter"===t.key&&(t.target instanceof HTMLInputElement&&(t.preventDefault(),this._apply(this._editor)))},t.prototype.getModalContentElem=function(t){var n,o,i,a=this;this._editor=t;try{null===(i=null===(o=null===(n=e.DomEditor.getHoverbar)||void 0===n?void 0:n.call(e.DomEditor,t))||void 0===o?void 0:o.hideAndClean)||void 0===i||i.call(o)}catch(t){}if(Ua(!0,t),!this._root){var u=document.createElement("div");u.className="mdgch-edit-link-form w-e-link-form",u.addEventListener("click",(function(t){return a._onRootClick(t)})),u.addEventListener("keydown",(function(t){return a._onRootKeydown(t)})),this._root=u}this._editLinkPath=null,this._savedSelection=null;try{t.selection&&(this._savedSelection=JSON.parse(JSON.stringify(t.selection)))}catch(e){this._savedSelection=t.selection||null}var l="",c="";if("edit"===this.mode){var s=this.getSelectedLinkElem(t);if(l=(null==s?void 0:s.url)||"",c=s?String(r.Node.string(s)||""):"",s)try{var f=e.DomEditor.findPath(t,s);(null==f?void 0:f.length)&&(this._editLinkPath=ko([],So(f)))}catch(t){this._editLinkPath=null}}else{var d=t.selection;if(d&&!this._isCollapsedSelection(d))try{c=String(r.Editor.string(t,d)||"")}catch(t){c=""}l=""}this._root.innerHTML='\n <div class="mdgch-edit-link-row">\n <span class="mdgch-edit-link-label">ๆ–‡ๆœฌ</span>\n <input type="text" class="mdgch-edit-link-input" id="'+this._textInputId+'" autocomplete="off" />\n </div>\n <div class="mdgch-edit-link-row">\n <span class="mdgch-edit-link-label">้“พๆŽฅ</span>\n <input type="text" class="mdgch-edit-link-input" id="'+this._urlInputId+'" autocomplete="off" />\n </div>\n <div class="mdgch-edit-link-actions">\n <button type="button" class="mdgch-edit-link-btn mdgch-edit-link-btn-cancel" data-w-e-link-action="cancel"><span>ๅ–ๆถˆ</span></button>\n <button type="button" class="mdgch-edit-link-btn mdgch-edit-link-btn-ok" data-w-e-link-action="ok"><span>็กฎๅฎš</span></button>\n </div>\n ';var p=this._root.querySelector("#"+this._textInputId),h=this._root.querySelector("#"+this._urlInputId);return p&&(p.value=c),h&&(h.value=l),setTimeout((function(){var t;null===(t=null==p?void 0:p.focus)||void 0===t||t.call(p)}),0),this._root},t}(),Ya=function(){function t(){this.title=e.t("link.view"),this.iconSvg=Qo,this.tag="button",this.alwaysEnable=!0}return t.prototype._hrefFromSelection=function(t){try{var n=e.DomEditor.getSelectedNodeByType(t,"link"),r=String((null==n?void 0:n.url)||"").trim();if(r&&"#"!==r&&!/^javascript:/i.test(r))return r}catch(t){}return""},t.prototype.getValue=function(t){return this._hrefFromSelection(t)||function(){try{if($a)return $a()||""}catch(t){}try{if("undefined"!=typeof window)return String(window.__wELinkHoverHref||"")}catch(t){}return""}()||""},t.prototype.isActive=function(){return!1},t.prototype.isDisabled=function(t){return!this.getValue(t)},t.prototype.exec=function(t,e){var n="string"==typeof e?e.trim():"";n&&"#"!==n&&!/^javascript:/i.test(n)||(n=String(this.getValue(t)||"")),(n=Xa(n)||n)&&window.open(n,"_blank","noopener,noreferrer")},t}();var Qa={checkLink:function(t,e){return!0},parseLinkUrl:function(t){return t}},Za={renderElems:[Ha],elemsToHtml:[ja],parseElemsHtml:[za],menus:[{key:"insertLink",factory:function(){return new Ja("insert")},config:Qa},{key:"editLink",factory:function(){return new Ja("edit")},config:Qa},{key:"unLink",factory:function(){return new Ca}},{key:"viewLink",factory:function(){return new _a}},{key:"insertLinkForm",factory:function(){return new Ja("insert")},config:Qa},{key:"editLinkForm",factory:function(){return new Ja("edit")},config:Qa},{key:"viewLinkOpen",factory:function(){return new Ya}}],editorPlugin:function(t){var n=t.isInline,o=t.insertData,i=t.normalizeNode;t.insertNode;var a=t.insertText,u=t;return u.isInline=function(t){return"link"===t.type||n(t)},u.insertText=function(t){var n=u.selection;if(t&&n&&r.Range.isCollapsed(n)){var o=r.Editor.above(u,{at:n,match:function(t){return e.DomEditor.checkNodeType(t,"link")}});if(o){var i=So(o,2)[1];if(r.Editor.isEnd(u,n.anchor,i)){var l=r.Editor.after(u,i);if(l)r.Transforms.select(u,l);else{var c=r.Path.next(i);r.Transforms.insertNodes(u,{text:""},{at:c}),r.Transforms.select(u,{path:c,offset:0})}return void a(t)}}}a(t)},u.insertData=function(t){var e=t.getData("text/plain");if(Sa(e)){if(!Ia(u)){var n=u.selection;if(null!=n){var i=r.Editor.string(u,n);!function(t,e,n){Eo(this,void 0,void 0,(function(){var o,i,a;return wo(this,(function(u){switch(u.label){case 0:return n?(e||(e=n),t.restoreSelection(),Ia(t)?[2]:[4,La("insertLink",t,e,n)]):[2];case 1:return u.sent()?[4,Pa("insertLink",t,n)]:[2];case 2:return o=u.sent(),null==(i=t.selection)||(r.Range.isCollapsed(i)?(t.insertText(" "),a=Oa(o,e),r.Transforms.insertNodes(t,a),t.insertFragment([{text:" "}])):r.Editor.string(t,i)!==e?(t.deleteFragment(),a=Oa(o,e),r.Transforms.insertNodes(t,a)):(a=Oa(o),r.Transforms.wrapNodes(t,a,{split:!0}),r.Transforms.collapse(t,{edge:"end"}))),[2]}}))}))}(u,i,e)}}}else o(t)},u.normalizeNode=function(t){var n=So(t,2),o=n[0],a=n[1];return"link"!==e.DomEditor.getNodeType(o)?i([o,a]):""===r.Node.string(o)?r.Transforms.removeNodes(u,{at:a}):i([o,a])},u}};var tu=I(1..valueOf),eu=m.RangeError,nu=m.RangeError,ru=m.String,ou=Math.floor,iu=I((function(t){var e=wn(V(this)),n="",r=ge(t);if(r<0||r==1/0)throw eu("Wrong number of repetitions");for(;r>0;(r>>>=1)&&(e+=e))1&r&&(n+=e);return n})),au=I("".slice),uu=I(1..toFixed),lu=function(t,e,n){return 0===e?n:e%2==1?lu(t,e-1,n*t):lu(t*t,e/2,n)},cu=function(t,e,n){for(var r=-1,o=n;++r<6;)o+=e*t[r],t[r]=o%1e7,o=ou(o/1e7)},su=function(t,e){for(var n=6,r=0;--n>=0;)r+=t[n],t[n]=ou(r/e),r=r%e*1e7},fu=function(t){for(var e=6,n="";--e>=0;)if(""!==n||0===e||0!==t[e]){var r=ru(t[e]);n=""===n?r:n+iu("0",7-r.length)+r}return n},du=b((function(){return"0.000"!==uu(8e-5,3)||"1"!==uu(.9,0)||"1.25"!==uu(1.255,2)||"1000000000000000128"!==uu(0xde0b6b3a7640080,0)}))||!b((function(){uu({})}));function pu(t,n){return"w-e-image-container-"+e.DomEditor.findKey(t,n).id}function hu(t,o,i,a){var u=l.default("body"),s=pu(t,o),f=a.width,d=a.height,p=0,h=0,v=0,g=!1,y=null;function m(n){y=function(){var t=l.default("#"+s);if(0===t.length)throw new Error("Cannot find image container elem");return t}(),p=n;var r=y.find("img");if(0===r.length)throw new Error("Cannot find image elem");h=r.width(),v=r.height(),u.on("mousemove",b),u.on("mouseup",E);var o=e.DomEditor.getHoverbar(t);o&&o.hideAndClean()}var b=c.default((function(t){t.preventDefault();var e=t.clientX,n=h+(g?p-e:e-p),r=v*(n/h);null!=y&&(n<=15||r<=15||(y.css("width",n+"px"),y.css("height",r+"px")))}),100);function E(n){if(u.off("mousemove",b),null!=y){var i=y.width().toFixed(2),a=y.height().toFixed(2),l={style:bo(bo({},o.style),{width:i+"px",height:a+"px"})};r.Transforms.setNodes(t,l,{at:e.DomEditor.findPath(t,o)}),u.off("mouseup",E)}}var w={};return f&&(w.width=f),d&&(w.height=d),n.jsx("div",{id:s,style:w,className:"w-e-image-container w-e-selected-image-container",on:{mousedown:function(t){var e=l.default(t.target);e.hasClass("w-e-image-dragger")&&(t.preventDefault(),(e.hasClass("left-top")||e.hasClass("left-bottom"))&&(g=!0),m(t.clientX))}}},i,n.jsx("div",{className:"w-e-image-dragger left-top"}),n.jsx("div",{className:"w-e-image-dragger right-top"}),n.jsx("div",{className:"w-e-image-dragger left-bottom"}),n.jsx("div",{className:"w-e-image-dragger right-bottom"}))}qe({target:"Number",proto:!0,forced:du},{toFixed:function(t){var e,n,r,o,i=tu(this),a=ge(t),u=[0,0,0,0,0,0],l="",c="0";if(a<0||a>20)throw nu("Incorrect fraction digits");if(i!=i)return"NaN";if(i<=-1e21||i>=1e21)return ru(i);if(i<0&&(l="-",i=-i),i>1e-21)if(n=(e=function(t){for(var e=0,n=t;n>=4096;)e+=12,n/=4096;for(;n>=2;)e+=1,n/=2;return e}(i*lu(2,69,1))-69)<0?i*lu(2,-e,1):i/lu(2,e,1),n*=4503599627370496,(e=52-e)>0){for(cu(u,0,n),r=a;r>=7;)cu(u,1e7,0),r-=7;for(cu(u,lu(10,r,1),0),r=e-1;r>=23;)su(u,1<<23),r-=23;su(u,1<<r),cu(u,1,1),su(u,2),c=fu(u)}else cu(u,0,n),cu(u,1<<-e,0),c=fu(u)+iu("0",a);return c=a>0?l+((o=c.length)<=a?"0."+iu("0",a-o)+c:au(c,0,o-a)+"."+au(c,o-a)):l+c}});var vu={type:"image",renderElem:function(t,r,o){var i=t,a=i.src,u=i.alt,l=void 0===u?"":u,c=i.href,s=void 0===c?"":c,f=i.style,d=void 0===f?{}:f,p=d.width,h=void 0===p?"":p,v=d.height,g=void 0===v?"":v,y=e.DomEditor.isNodeSelected(o,t),m={};h&&(m.width="100%"),g&&(m.height="100%");var b=n.jsx("img",{style:m,src:a,alt:l,"data-href":s}),E=o.isDisabled();return y&&!E?hu(o,t,b,{width:h,height:g}):function(t,e,r,o){var i=o.width,a=o.height,u={};i&&(u.width=i),a&&(u.height=a);var l=pu(t,e);return n.jsx("div",{id:l,style:u,className:"w-e-image-container"},r)}(o,t,b,{width:h,height:g})}};var gu={type:"image",elemToHtml:function(t,e){var n=t,r=n.src,o=n.alt,i=void 0===o?"":o,a=n.href,u=void 0===a?"":a,l=n.style,c=void 0===l?{}:l,s=c.width,f=void 0===s?"":s,d=c.height,p=void 0===d?"":d,h="";return f&&(h+="width: "+f+";"),p&&(h+="height: "+p+";"),'<img src="'+r+'" alt="'+i+'" data-href="'+u+'" style="'+h+'"/>'}};var yu={selector:"img:not([data-w-e-type])",parseElemHtml:function(t,e,n){var r=l.default(t),o=r.attr("data-href")||"";try{o=decodeURIComponent(o)}catch(t){}return{type:"image",src:r.attr("src")||"",alt:r.attr("alt")||"",href:o,style:{width:go(r,"width"),height:go(r,"height")},children:[{text:""}]}}};function mu(t,e,n,r,o){return void 0===r&&(r=""),void 0===o&&(o=""),Eo(this,void 0,void 0,(function(){var i,a;return wo(this,(function(u){switch(u.label){case 0:return(i=e.getMenuConfig(t).checkImage)?[4,i(n,r,o)]:[3,2];case 1:if("string"==typeof(a=u.sent()))return e.alert(a,"error"),[2,!1];if(null==a)return[2,!1];u.label=2;case 2:return[2,!0]}}))}))}function bu(t,e,n){return Eo(this,void 0,void 0,(function(){var r;return wo(this,(function(o){switch(o.label){case 0:return(r=e.getMenuConfig(t).parseImageSrc)?[4,r(n)]:[3,2];case 1:return[2,o.sent()];case 2:return[2,n]}}))}))}function Eu(t,n,o,i){return void 0===o&&(o=""),void 0===i&&(i=""),Eo(this,void 0,void 0,(function(){var a,u,l;return wo(this,(function(c){switch(c.label){case 0:return[4,mu("insertImage",t,n,o,i)];case 1:return c.sent()?[4,bu("insertImage",t,n)]:[2];case 2:return a=c.sent(),u={type:"image",src:Ma(a),href:i,alt:o,style:{},children:[{text:""}]},null===t.selection&&t.restoreSelection(),e.DomEditor.getSelectedNodeByType(t,"image")&&t.move(1),xu(t)?[2]:(r.Transforms.insertNodes(t,u),(l=t.getMenuConfig("insertImage").onInsertedImage)&&l(u),[2])}}))}))}function wu(t,n,o,i,a){return void 0===o&&(o=""),void 0===i&&(i=""),void 0===a&&(a={}),Eo(this,void 0,void 0,(function(){var u,l,c,s,f,d;return wo(this,(function(p){switch(p.label){case 0:return[4,mu("editImage",t,n,o,i)];case 1:return p.sent()?[4,bu("editImage",t,n)]:[2];case 2:return u=p.sent(),null==(l=e.DomEditor.getSelectedNodeByType(t,"image"))?[2]:(c=l.style,s={src:u,alt:o,href:i,style:bo(bo({},void 0===c?{}:c),a)},r.Transforms.setNodes(t,s,{match:function(t){return e.DomEditor.checkNodeType(t,"image")}}),f=e.DomEditor.getSelectedNodeByType(t,"image"),(d=t.getMenuConfig("editImage").onUpdatedImage)&&d(f),[2])}}))}))}function xu(t){var n=t.selection;return null==n||(!r.Range.isCollapsed(n)||!!So(r.Editor.nodes(t,{match:function(n){var o=e.DomEditor.getNodeType(n);return"code"===o||("pre"===o||("link"===o||("list-item"===o||(!!o.startsWith("header")||("blockquote"===o||!!r.Editor.isVoid(t,n))))))},universal:!0}),1)[0])}function Su(){return Da("w-e-insert-image")}var ku=function(){function t(){this.title=e.t("image.netImage"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M959.877 128l0.123 0.123v767.775l-0.123 0.122H64.102l-0.122-0.122V128.123l0.122-0.123h895.775zM960 64H64C28.795 64 0 92.795 0 128v768c0 35.205 28.795 64 64 64h896c35.205 0 64-28.795 64-64V128c0-35.205-28.795-64-64-64zM832 288.01c0 53.023-42.988 96.01-96.01 96.01s-96.01-42.987-96.01-96.01S682.967 192 735.99 192 832 234.988 832 288.01zM896 832H128V704l224.01-384 256 320h64l224.01-192z"></path></svg>',this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=Su(),this.altInputId=Su(),this.hrefInputId=Su(),this.buttonId=Su()}return t.prototype.getValue=function(t){return""},t.prototype.isActive=function(t){return!1},t.prototype.exec=function(t,e){},t.prototype.isDisabled=function(t){return xu(t)},t.prototype.getModalPositionNode=function(t){return null},t.prototype.getModalContentElem=function(t){var n=this,r=this,o=r.srcInputId,i=r.altInputId,a=r.hrefInputId,u=r.buttonId,c=So(e.genModalInputElems(e.t("image.src"),o),2),s=c[0],f=c[1],d=l.default(f),p=So(e.genModalInputElems(e.t("image.desc"),i),2),h=p[0],v=p[1],g=l.default(v),y=So(e.genModalInputElems(e.t("image.link"),a),2),m=y[0],b=y[1],E=l.default(b),w=So(e.genModalButtonElems(u,e.t("common.ok")),1)[0];if(null==this.$content){var x=l.default("<div></div>");x.on("click","#"+u,(function(e){e.preventDefault();var r=x.find("#"+o).val().trim(),u=x.find("#"+i).val().trim(),l=x.find("#"+a).val().trim();n.insertImage(t,r,u,l),t.hidePanelOrModal()})),this.$content=x}var S=this.$content;return S.empty(),S.append(s),S.append(h),S.append(m),S.append(w),d.val(""),g.val(""),E.val(""),setTimeout((function(){d.focus()})),S[0]},t.prototype.insertImage=function(t,e,n,r){void 0===n&&(n=""),void 0===r&&(r=""),e&&(t.restoreSelection(),this.isDisabled(t)||Eu(t,e,n,r))},t}(),Tu=function(){function t(){this.title=e.t("image.delete"),this.iconSvg=ei,this.tag="button"}return t.prototype.getValue=function(t){return""},t.prototype.isActive=function(t){return!1},t.prototype.isDisabled=function(t){return null==t.selection||null==e.DomEditor.getSelectedNodeByType(t,"image")},t.prototype.exec=function(t,n){this.isDisabled(t)||r.Transforms.removeNodes(t,{match:function(t){return e.DomEditor.checkNodeType(t,"image")}})},t}();function Nu(){return Da("w-e-edit-image")}var Au=function(){function t(){this.title=e.t("image.edit"),this.iconSvg=Yo,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=Nu(),this.altInputId=Nu(),this.hrefInputId=Nu(),this.buttonId=Nu()}return t.prototype.getValue=function(t){return""},t.prototype.getImageNode=function(t){return e.DomEditor.getSelectedNodeByType(t,"image")},t.prototype.isActive=function(t){return!1},t.prototype.exec=function(t,e){},t.prototype.isDisabled=function(t){var n=t.selection;return null==n||(!r.Range.isCollapsed(n)||null==e.DomEditor.getSelectedNodeByType(t,"image"))},t.prototype.getModalPositionNode=function(t){return this.getImageNode(t)},t.prototype.getModalContentElem=function(t){var n=this,r=this,o=r.srcInputId,i=r.altInputId,a=r.hrefInputId,u=r.buttonId,c=this.getImageNode(t);if(null==c)throw new Error("Not found selected image node");var s=So(e.genModalInputElems(e.t("image.src"),o),2),f=s[0],d=s[1],p=l.default(d),h=So(e.genModalInputElems(e.t("image.desc"),i),2),v=h[0],g=h[1],y=l.default(g),m=So(e.genModalInputElems(e.t("image.link"),a),2),b=m[0],E=m[1],w=l.default(E),x=So(e.genModalButtonElems(u,e.t("common.ok")),1)[0];if(null==this.$content){var S=l.default("<div></div>");S.on("click","#"+u,(function(e){e.preventDefault();var r=S.find("#"+o).val(),u=S.find("#"+i).val(),l=S.find("#"+a).val();n.updateImage(t,r,u,l),t.hidePanelOrModal()})),this.$content=S}var k=this.$content;k.empty(),k.append(f),k.append(v),k.append(b),k.append(x);var T=c,N=T.src,A=T.alt,D=void 0===A?"":A,M=T.href,L=void 0===M?"":M;return p.val(N),y.val(D),w.val(L),setTimeout((function(){p.focus()})),k[0]},t.prototype.updateImage=function(t,e,n,r,o){void 0===n&&(n=""),void 0===r&&(r=""),void 0===o&&(o={}),e&&(t.restoreSelection(),this.isDisabled(t)||wu(t,e,n,r,o))},t}(),Du=function(){function t(){this.title=e.t("image.viewLink"),this.iconSvg=Qo,this.tag="button"}return t.prototype.getValue=function(t){var n=e.DomEditor.getSelectedNodeByType(t,"image");return n&&n.href||""},t.prototype.isActive=function(t){return!1},t.prototype.isDisabled=function(t){return null==t.selection||!this.getValue(t)},t.prototype.exec=function(t,e){if(!this.isDisabled(t)){if(!e||"string"!=typeof e)throw new Error("View image link failed, image.href is '"+e+"'");window.open(e,"_blank")}},t}(),Mu=function(){function t(){this.tag="button"}return t.prototype.getValue=function(t){return""},t.prototype.isActive=function(t){return!1},t.prototype.getSelectedNode=function(t){return e.DomEditor.getSelectedNodeByType(t,"image")},t.prototype.isDisabled=function(t){return null==t.selection||null==this.getSelectedNode(t)},t.prototype.exec=function(t,n){if(!this.isDisabled(t)){var o=this.getSelectedNode(t);if(null!=o){var i=e.DomEditor.getHoverbar(t);i&&i.hideAndClean();var a=o.style,u={style:bo(bo({},void 0===a?{}:a),{width:this.value,height:""})};r.Transforms.setNodes(t,u,{match:function(t){return e.DomEditor.checkNodeType(t,"image")}})}}},t}(),Lu=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.title="30%",e.value="30%",e}return mo(e,t),e}(Mu),Pu=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.title="50%",e.value="50%",e}return mo(e,t),e}(Mu),Iu=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.title="75%",e.value="75%",e}return mo(e,t),e}(Mu),Ou=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.title="100%",e.value="100%",e}return mo(e,t),e}(Mu),Hu=function(){function t(){this.title=e.t("common.enterAbove"),this.iconSvg=pi,this.tag="button"}return t.prototype.getValue=function(t){return""},t.prototype.isActive=function(t){return!1},t.prototype.isDisabled=function(t){return null==t.selection||null==e.DomEditor.getSelectedNodeByType(t,"image")},t.prototype.exec=function(t,n){if(!this.isDisabled(t)){var o=e.DomEditor.getSelectedNodeByType(t,"image");if(null!=o){var i;try{i=e.DomEditor.findPath(t,o)}catch(t){return}if(null==i?void 0:i.length){var a=[i[0]],u=e.genEmptyParagraph(t);e.pinEditorScrollDuring(t,(function(){r.Transforms.insertNodes(t,u,{at:a});try{r.Transforms.select(t,r.Editor.start(t,[a[0]+1]))}catch(t){}}))}}}},t}(),ju=function(){function t(){this.title=e.t("common.cancelEnter"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M436 680H124v-56h312l-124-124 42-42 220 220-220 220-42-42 124-124z"></path><path d="M198 128l64-64 628 628-64 64z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(t){return""},t.prototype.isActive=function(t){return!1},t.prototype.isDisabled=function(t){if(null==t.selection)return!0;var n=e.DomEditor.getSelectedNodeByType(t,"image");if(null==n)return!0;try{var r=e.DomEditor.findPath(t,n);return!e.canRemoveEmptyLineAboveBlock(t,r)}catch(t){return!0}},t.prototype.exec=function(t,n){if(!this.isDisabled(t)){var r=e.DomEditor.getSelectedNodeByType(t,"image");if(null!=r)try{var o=e.DomEditor.findPath(t,r);e.removeEmptyLineAboveTopLevelBlock(t,o)}catch(t){}}},t}();var zu={onInsertedImage:function(t){},onUpdatedImage:function(t){},checkImage:function(t,e,n){return!0},parseImageSrc:function(t){return t}},Cu={renderElems:[vu],elemsToHtml:[gu],parseElemsHtml:[yu],menus:[{key:"insertImage",factory:function(){return new ku},config:zu},{key:"deleteImage",factory:function(){return new Tu}},{key:"editImage",factory:function(){return new Au},config:zu},{key:"viewImageLink",factory:function(){return new Du}},{key:"imageWidth30",factory:function(){return new Lu}},{key:"imageWidth50",factory:function(){return new Pu}},{key:"imageWidth75",factory:function(){return new Iu}},{key:"imageWidth100",factory:function(){return new Ou}},{key:"imageEnter",factory:function(){return new Hu}},{key:"imageCancelEnter",factory:function(){return new ju}}],editorPlugin:function(t){var e=t.isInline,n=t.isVoid;t.insertNode;var r=t;return r.isInline=function(t){return"image"===t.type||e(t)},r.isVoid=function(t){return"image"===t.type||n(t)},r}};var _u={type:"todo",renderElem:function(t,o,i){var a=!1;i.isDisabled()&&(a=!0);var u=t.checked,l=n.jsx("div",{style:{margin:"5px 0"}},n.jsx("span",{contentEditable:!1,style:{marginRight:"0.5em"}},n.jsx("input",{type:"checkbox",checked:u,disabled:a,on:{change:function(n){var o=e.DomEditor.findPath(i,t),a={checked:n.target.checked};r.Transforms.setNodes(i,a,{at:o})}}})),n.jsx("span",null,o));return l}};var Bu=function(){function t(){this.title=e.t("todo.todo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M278.755556 403.911111l-79.644445 79.644445L455.111111 739.555556l568.888889-568.888889-79.644444-79.644445L455.111111 580.266667l-176.355555-176.355556zM910.222222 910.222222H113.777778V113.777778h568.888889V0H113.777778C51.2 0 0 51.2 0 113.777778v796.444444c0 62.577778 51.2 113.777778 113.777778 113.777778h796.444444c62.577778 0 113.777778-51.2 113.777778-113.777778V455.111111h-113.777778v455.111111z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(t){return""},t.prototype.isActive=function(t){return!!e.DomEditor.getSelectedNodeByType(t,"todo")},t.prototype.isDisabled=function(t){return null==t.selection||!!e.DomEditor.getSelectedElems(t).some((function(e){if(r.Editor.isVoid(t,e)&&r.Editor.isBlock(t,e))return!0;var n=e.type;return!!["pre","table","list-item"].includes(n)||void 0}))},t.prototype.exec=function(t,e){var n=this.isActive(t);r.Transforms.setNodes(t,{type:n?"paragraph":"todo"})},t}();var Vu={renderElems:[_u],elemsToHtml:[{type:"todo",elemToHtml:function(t,e){return'<div data-w-e-type="todo"><input type="checkbox" disabled '+(t.checked?"checked":"")+">"+e+"</div>"}}],preParseHtml:[{selector:"ul.w-e-todo",preParseHtml:function(t){var e=l.default(t).find("li"),n=l.default('<div data-w-e-type="todo"></div>'),r=e.find("input[type]");return n.append(r),e.children()[0].remove(),n[0].innerHTML=n[0].innerHTML+e[0].innerHTML,n[0]}}],parseElemsHtml:[{selector:'div[data-w-e-type="todo"]',parseElemHtml:function(t,e,n){var o=l.default(t);0===(e=e.filter((function(t){return!!r.Text.isText(t)||!!n.isInline(t)}))).length&&(e=[{text:o.text().replace(/\s+/gm," ")}]);var i=!1;return null!=o.find('input[type="checkbox"]').attr("checked")&&(i=!0),{type:"todo",checked:i,children:e}}}],menus:[{key:"todo",factory:function(){return new Bu}}],editorPlugin:function(t){var n=t.deleteBackward,o=t;return o.deleteBackward=function(o){var i=t.selection;if(i&&r.Range.isCollapsed(i)){var a=e.DomEditor.getSelectedNodeByType(t,"todo");if(a&&0===r.Node.string(a).length)return void r.Transforms.setNodes(t,{type:"paragraph"},{mode:"highest"})}n(o)},o}},Ru=I([].join),Fu=_!=Object,qu=Co("join",",");function Wu(t){var e,r=t.action,o=t.title,i=t.iconSvg,a=t.actionAttr,u=t.className,l=t.disabled,c=void 0!==l&&l,s=t.active,f=[u,c?"is-disabled":"",void 0!==s&&s?"is-active":""].filter(Boolean).join(" ");return n.h("button",{attrs:bo((e={type:"button",class:f,title:o},e[a]=r,e["aria-label"]=o,e),c?{disabled:"disabled"}:{}),props:{contentEditable:!1,disabled:c},hook:{insert:function(t){var e=t.elm;e&&(e.innerHTML=i)},postpatch:function(t,e){var n,r=e.elm;"1"!==(null===(n=null==r?void 0:r.getAttribute)||void 0===n?void 0:n.call(r,"data-pre-copy-ok"))&&r&&r.innerHTML!==i&&(r.innerHTML=i)}},on:{mousedown:function(t){t.preventDefault(),t.stopPropagation()}}})}function Gu(t){return n.h("span",{attrs:{class:t}},[])}qe({target:"Array",proto:!0,forced:Fu||!qu},{join:function(t){return Ru(R(this),void 0===t?",":t)}});var $u='<svg viewBox="0 0 1255 1024"><path d="M1095.111111 731.477333h-625.777778V1024L0 658.318222 469.333333 292.408889v292.636444h625.777778V0h156.444445v731.477333z"></path></svg>',Uu='<svg viewBox="0 0 1024 1024"><path d="M436 680H124v-56h312l-124-124 42-42 220 220-220 220-42-42 124-124z"></path><path d="M198 128l64-64 628 628-64 64z"></path></svg>',Ku='<svg viewBox="0 0 1024 1024"><path d="M360 184h304v-40H360v40zM184 264h656v72H184V264zm72 120v456c0 22 18 40 40 40h432c22 0 40-18 40-40V384H256zm120 88h64v280h-64V472zm208 0h64v280h-64V472z"></path></svg>';var Xu={type:"blockquote",renderElem:function(t,r,o){var i=null==r?[]:Array.isArray(r)?r:[r];if(o.isDisabled())return n.h("blockquote",{},i);var a=!1;try{var u=e.DomEditor.findPath(o,t);a=e.canRemoveEmptyLineAboveBlock(o,u)}catch(t){a=!1}var l=n.h("div",{attrs:{class:"mdg-bq-toolbar",contenteditable:"false","data-mdg-bq-toolbar":"1"},props:{contentEditable:!1},on:{mousedown:function(t){t.preventDefault(),t.stopPropagation()},click:function(n){var r,i,a;n.preventDefault(),n.stopPropagation();var u=n.target,l=null===(r=null==u?void 0:u.closest)||void 0===r?void 0:r.call(u,"button[data-bq-action]"),c=null===(i=null==l?void 0:l.getAttribute)||void 0===i?void 0:i.call(l,"data-bq-action");c&&!(null===(a=null==l?void 0:l.classList)||void 0===a?void 0:a.contains("is-disabled"))&&function(t,n,r){if(t&&!t.isDestroyed&&!t.isDisabled()){var o=e.resolveElemPath(t,n);if(null==o?void 0:o.length)if("enter"!==r)if("cancel-enter"!==r)if("unquote"!==r){if("remove"===r){var i=e.DomEditor.getSelectedNodeByType(t,"blockquote")||n;try{var a=e.DomEditor.findPath(t,i);e.replaceBlockWithEmptyLine(t,a,i)}catch(r){e.replaceBlockWithEmptyLine(t,o,n)}}}else e.setBlockToParagraph(t,o);else e.removeEmptyLineAboveTopLevelBlock(t,o);else e.insertEmptyLineAboveAtPath(t,o)}}(o,t,c)}}},[Wu({action:"enter",title:"ๅ›ž่ฝฆ๏ผˆไธŠๆ–น็ฉบ่กŒ๏ผ‰",iconSvg:$u,actionAttr:"data-bq-action",className:"mdg-bq-btn"}),Wu({action:"cancel-enter",title:"ๅ–ๆถˆๅ›ž่ฝฆ",iconSvg:Uu,actionAttr:"data-bq-action",className:"mdg-bq-btn",disabled:!a}),Gu("mdg-bq-toolbar-spacer"),Wu({action:"unquote",title:"ๅ–ๆถˆๅผ•็”จ",iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M422.6 907.1H133.4c-32.6 0-59-26.4-59-59V608.2l-4-14.9c0-315.9 125.5-485.1 376.5-507.5v59.8C280.7 180.4 239.3 315.8 239.3 442.4v41.2l31.5 12.3h151.8c32.6 0 59 26.4 59 59v293.2c0 32.5-26.4 59-59 59z m472 0H605.4c-32.6 0-59-26.4-59-59V608.2l-4-14.9c0-315.9 125.5-485.1 376.5-507.5v59.8C752.7 180.4 711.3 315.8 711.3 442.4v41.2l31.5 12.3h151.8c32.6 0 59 26.4 59 59v293.2c0 32.5-26.4 59-59 59z"></path><path d="M198 128l64-64 628 628-64 64z"></path></svg>',actionAttr:"data-bq-action",className:"mdg-bq-btn"}),Wu({action:"remove",title:"ๅˆ ้™ค",iconSvg:Ku,actionAttr:"data-bq-action",className:"mdg-bq-btn"})]);return n.h("blockquote",{attrs:{class:"mdg-bq-with-toolbar"}},ko(ko([],So(i)),[l]))}};var Ju={type:"blockquote",elemToHtml:function(t,e){return"<blockquote>"+e+"</blockquote>"}};var Yu,Qu,Zu={selector:"blockquote:not([data-w-e-type])",parseElemHtml:function(t,e,n){var o=l.default(t);return 0===(e=e.filter((function(t){return!!r.Text.isText(t)||!!n.isInline(t)}))).length&&(e=[{text:o.text().replace(/\s+/gm," ")}]),{type:"blockquote",children:e}}},tl=function(){function t(){this.title=e.t("blockQuote.title"),this.iconSvg=ni,this.tag="button"}return t.prototype.getValue=function(t){return""},t.prototype.isActive=function(t){return!!e.DomEditor.getSelectedNodeByType(t,"blockquote")},t.prototype.isDisabled=function(t){return null==t.selection||!So(r.Editor.nodes(t,{match:function(t){var n=e.DomEditor.getNodeType(t);return"paragraph"===n||"blockquote"===n},universal:!0,mode:"highest"}),1)[0]},t.prototype.exec=function(t,e){if(!this.isDisabled(t)){var n=this.isActive(t)?"paragraph":"blockquote";r.Transforms.setNodes(t,{type:n},{mode:"highest"})}},t}(),el=function(t){return t&&t.Math==Math&&t},nl=el("object"==typeof globalThis&&globalThis)||el("object"==typeof window&&window)||el("object"==typeof self&&self)||el("object"==typeof d&&d)||function(){return this}()||Function("return this")(),rl=Function.prototype,ol=rl.apply,il=rl.bind,al=rl.call,ul="object"==typeof Reflect&&Reflect.apply||(il?al.bind(ol):function(){return al.apply(ol,arguments)}),ll=Function.prototype,cl=ll.bind,sl=ll.call,fl=cl&&cl.bind(sl),dl=cl?function(t){return t&&fl(sl,t)}:function(t){return t&&function(){return sl.apply(t,arguments)}},pl=function(t){return"function"==typeof t},hl=function(t){try{return!!t()}catch(t){return!0}},vl=!hl((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),gl=Function.prototype.call,yl=gl.bind?gl.bind(gl):function(){return gl.apply(gl,arguments)},ml={}.propertyIsEnumerable,bl=Object.getOwnPropertyDescriptor,El=bl&&!ml.call({1:2},1)?function(t){var e=bl(this,t);return!!e&&e.enumerable}:ml,wl={f:El},xl=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},Sl=dl({}.toString),kl=dl("".slice),Tl=function(t){return kl(Sl(t),8,-1)},Nl=nl.Object,Al=dl("".split),Dl=hl((function(){return!Nl("z").propertyIsEnumerable(0)}))?function(t){return"String"==Tl(t)?Al(t,""):Nl(t)}:Nl,Ml=nl.TypeError,Ll=function(t){if(null==t)throw Ml("Can't call method on "+t);return t},Pl=function(t){return Dl(Ll(t))},Il=function(t){return"object"==typeof t?null!==t:pl(t)},Ol={},Hl=function(t){return pl(t)?t:void 0},jl=function(t,e){return arguments.length<2?Hl(Ol[t])||Hl(nl[t]):Ol[t]&&Ol[t][e]||nl[t]&&nl[t][e]},zl=dl({}.isPrototypeOf),Cl=jl("navigator","userAgent")||"",_l=nl.process,Bl=nl.Deno,Vl=_l&&_l.versions||Bl&&Bl.version,Rl=Vl&&Vl.v8;Rl&&(Qu=(Yu=Rl.split("."))[0]>0&&Yu[0]<4?1:+(Yu[0]+Yu[1])),!Qu&&Cl&&(!(Yu=Cl.match(/Edge\/(\d+)/))||Yu[1]>=74)&&(Yu=Cl.match(/Chrome\/(\d+)/))&&(Qu=+Yu[1]);var Fl=Qu,ql=!!Object.getOwnPropertySymbols&&!hl((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&Fl&&Fl<41})),Wl=ql&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Gl=nl.Object,$l=Wl?function(t){return"symbol"==typeof t}:function(t){var e=jl("Symbol");return pl(e)&&zl(e.prototype,Gl(t))},Ul=nl.String,Kl=nl.TypeError,Xl=function(t){if(pl(t))return t;throw Kl(function(t){try{return Ul(t)}catch(t){return"Object"}}(t)+" is not a function")},Jl=nl.TypeError,Yl=Object.defineProperty,Ql="__core-js_shared__",Zl=nl[Ql]||function(t,e){try{Yl(nl,t,{value:e,configurable:!0,writable:!0})}catch(n){nl[t]=e}return e}(Ql,{}),tc=Zl,ec=h((function(t){(t.exports=function(t,e){return tc[t]||(tc[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.19.3",mode:"pure",copyright:"ยฉ 2021 Denis Pushkarev (zloirock.ru)"})})),nc=nl.Object,rc=function(t){return nc(Ll(t))},oc=dl({}.hasOwnProperty),ic=Object.hasOwn||function(t,e){return oc(rc(t),e)},ac=0,uc=Math.random(),lc=dl(1..toString),cc=function(t){return"Symbol("+(void 0===t?"":t)+")_"+lc(++ac+uc,36)},sc=ec("wks"),fc=nl.Symbol,dc=fc&&fc.for,pc=Wl?fc:fc&&fc.withoutSetter||cc,hc=function(t){if(!ic(sc,t)||!ql&&"string"!=typeof sc[t]){var e="Symbol."+t;ql&&ic(fc,t)?sc[t]=fc[t]:sc[t]=Wl&&dc?dc(e):pc(e)}return sc[t]},vc=nl.TypeError,gc=hc("toPrimitive"),yc=function(t,e){if(!Il(t)||$l(t))return t;var n,r,o=null==(n=t[gc])?void 0:Xl(n);if(o){if(void 0===e&&(e="default"),r=yl(o,t,e),!Il(r)||$l(r))return r;throw vc("Can't convert object to primitive value")}return void 0===e&&(e="number"),function(t,e){var n,r;if("string"===e&&pl(n=t.toString)&&!Il(r=yl(n,t)))return r;if(pl(n=t.valueOf)&&!Il(r=yl(n,t)))return r;if("string"!==e&&pl(n=t.toString)&&!Il(r=yl(n,t)))return r;throw Jl("Can't convert object to primitive value")}(t,e)},mc=function(t){var e=yc(t,"string");return $l(e)?e:e+""},bc=nl.document,Ec=Il(bc)&&Il(bc.createElement),wc=function(t){return Ec?bc.createElement(t):{}},xc=!vl&&!hl((function(){return 7!=Object.defineProperty(wc("div"),"a",{get:function(){return 7}}).a})),Sc=Object.getOwnPropertyDescriptor,kc={f:vl?Sc:function(t,e){if(t=Pl(t),e=mc(e),xc)try{return Sc(t,e)}catch(t){}if(ic(t,e))return xl(!yl(wl.f,t,e),t[e])}},Tc=/#|\.prototype\./,Nc=function(t,e){var n=Dc[Ac(t)];return n==Lc||n!=Mc&&(pl(e)?hl(e):!!e)},Ac=Nc.normalize=function(t){return String(t).replace(Tc,".").toLowerCase()},Dc=Nc.data={},Mc=Nc.NATIVE="N",Lc=Nc.POLYFILL="P",Pc=Nc,Ic=dl(dl.bind),Oc=function(t,e){return Xl(t),void 0===e?t:Ic?Ic(t,e):function(){return t.apply(e,arguments)}},Hc=nl.String,jc=nl.TypeError,zc=function(t){if(Il(t))return t;throw jc(Hc(t)+" is not an object")},Cc=nl.TypeError,_c=Object.defineProperty,Bc={f:vl?_c:function(t,e,n){if(zc(t),e=mc(e),zc(n),xc)try{return _c(t,e,n)}catch(t){}if("get"in n||"set"in n)throw Cc("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},Vc=vl?function(t,e,n){return Bc.f(t,e,xl(1,n))}:function(t,e,n){return t[e]=n,t},Rc=kc.f,Fc=function(t){var e=function(n,r,o){if(this instanceof e){switch(arguments.length){case 0:return new t;case 1:return new t(n);case 2:return new t(n,r)}return new t(n,r,o)}return ul(t,this,arguments)};return e.prototype=t.prototype,e},qc=function(t,e){var n,r,o,i,a,u,l,c,s=t.target,f=t.global,d=t.stat,p=t.proto,h=f?nl:d?nl[s]:(nl[s]||{}).prototype,v=f?Ol:Ol[s]||Vc(Ol,s,{})[s],g=v.prototype;for(o in e)n=!Pc(f?o:s+(d?".":"#")+o,t.forced)&&h&&ic(h,o),a=v[o],n&&(u=t.noTargetGet?(c=Rc(h,o))&&c.value:h[o]),i=n&&u?u:e[o],n&&typeof a==typeof i||(l=t.bind&&n?Oc(i,nl):t.wrap&&n?Fc(i):p&&pl(i)?dl(i):i,(t.sham||i&&i.sham||a&&a.sham)&&Vc(l,"sham",!0),Vc(v,o,l),p&&(ic(Ol,r=s+"Prototype")||Vc(Ol,r,{}),Vc(Ol[r],o,i),t.real&&g&&!g[o]&&Vc(g,o,i)))},Wc=Array.isArray||function(t){return"Array"==Tl(t)},Gc=Math.ceil,$c=Math.floor,Uc=function(t){var e=+t;return e!=e||0===e?0:(e>0?$c:Gc)(e)},Kc=Math.min,Xc=function(t){return(e=t.length)>0?Kc(Uc(e),9007199254740991):0;var e},Jc=function(t,e,n){var r=mc(e);r in t?Bc.f(t,r,xl(0,n)):t[r]=n},Yc={};Yc[hc("toStringTag")]="z";var Qc="[object z]"===String(Yc),Zc=hc("toStringTag"),ts=nl.Object,es="Arguments"==Tl(function(){return arguments}()),ns=Qc?Tl:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=ts(t),Zc))?n:es?Tl(e):"Object"==(r=Tl(e))&&pl(e.callee)?"Arguments":r},rs=dl(Function.toString);pl(tc.inspectSource)||(tc.inspectSource=function(t){return rs(t)});var os=tc.inspectSource,is=function(){},as=[],us=jl("Reflect","construct"),ls=/^\s*(?:class|function)\b/,cs=dl(ls.exec),ss=!ls.exec(is),fs=function(t){if(!pl(t))return!1;try{return us(is,as,t),!0}catch(t){return!1}},ds=!us||hl((function(){var t;return fs(fs.call)||!fs(Object)||!fs((function(){t=!0}))||t}))?function(t){if(!pl(t))return!1;switch(ns(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return ss||!!cs(ls,os(t))}:fs,ps=hc("species"),hs=nl.Array,vs=function(t,e){return new(function(t){var e;return Wc(t)&&(e=t.constructor,(ds(e)&&(e===hs||Wc(e.prototype))||Il(e)&&null===(e=e[ps]))&&(e=void 0)),void 0===e?hs:e}(t))(0===e?0:e)},gs=hc("species"),ys=hc("isConcatSpreadable"),ms=9007199254740991,bs="Maximum allowed index exceeded",Es=nl.TypeError,ws=Fl>=51||!hl((function(){var t=[];return t[ys]=!1,t.concat()[0]!==t})),xs=function(t){return Fl>=51||!hl((function(){var e=[];return(e.constructor={})[gs]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}("concat"),Ss=function(t){if(!Il(t))return!1;var e=t[ys];return void 0!==e?!!e:Wc(t)};qc({target:"Array",proto:!0,forced:!ws||!xs},{concat:function(t){var e,n,r,o,i,a=rc(this),u=vs(a,0),l=0;for(e=-1,r=arguments.length;e<r;e++)if(Ss(i=-1===e?a:arguments[e])){if(l+(o=Xc(i))>ms)throw Es(bs);for(n=0;n<o;n++,l++)n in i&&Jc(u,l,i[n])}else{if(l>=ms)throw Es(bs);Jc(u,l++,i)}return u.length=l,u}});var ks,Ts=nl.String,Ns=function(t){if("Symbol"===ns(t))throw TypeError("Cannot convert a Symbol value to a string");return Ts(t)},As=Math.max,Ds=Math.min,Ms=function(t,e){var n=Uc(t);return n<0?As(n+e,0):Ds(n,e)},Ls=function(t){return function(e,n,r){var o,i=Pl(e),a=Xc(i),u=Ms(r,a);if(t&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===n)return t||u||0;return!t&&-1}},Ps={includes:Ls(!0),indexOf:Ls(!1)},Is={},Os=Ps.indexOf,Hs=dl([].push),js=function(t,e){var n,r=Pl(t),o=0,i=[];for(n in r)!ic(Is,n)&&ic(r,n)&&Hs(i,n);for(;e.length>o;)ic(r,n=e[o++])&&(~Os(i,n)||Hs(i,n));return i},zs=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Cs=Object.keys||function(t){return js(t,zs)},_s=vl?Object.defineProperties:function(t,e){zc(t);for(var n,r=Pl(e),o=Cs(e),i=o.length,a=0;i>a;)Bc.f(t,n=o[a++],r[n]);return t},Bs=jl("document","documentElement"),Vs=ec("keys"),Rs=function(t){return Vs[t]||(Vs[t]=cc(t))},Fs=Rs("IE_PROTO"),qs=function(){},Ws=function(t){return"<script>"+t+"</"+"script>"},Gs=function(t){t.write(Ws("")),t.close();var e=t.parentWindow.Object;return t=null,e},$s=function(){try{ks=new ActiveXObject("htmlfile")}catch(t){}var t,e;$s="undefined"!=typeof document?document.domain&&ks?Gs(ks):((e=wc("iframe")).style.display="none",Bs.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(Ws("document.F=Object")),t.close(),t.F):Gs(ks);for(var n=zs.length;n--;)delete $s.prototype[zs[n]];return $s()};Is[Fs]=!0;var Us,Ks,Xs,Js=Object.create||function(t,e){var n;return null!==t?(qs.prototype=zc(t),n=new qs,qs.prototype=null,n[Fs]=t):n=$s(),void 0===e?n:_s(n,e)},Ys=zs.concat("length","prototype"),Qs={f:Object.getOwnPropertyNames||function(t){return js(t,Ys)}},Zs=nl.Array,tf=Math.max,ef=Qs.f,nf="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],rf=function(t){try{return ef(t)}catch(t){return function(t,e,n){for(var r=Xc(t),o=Ms(e,r),i=Ms(void 0===n?r:n,r),a=Zs(tf(i-o,0)),u=0;o<i;o++,u++)Jc(a,u,t[o]);return a.length=u,a}(nf)}},of={f:function(t){return nf&&"Window"==Tl(t)?rf(t):ef(Pl(t))}},af={f:Object.getOwnPropertySymbols},uf=dl([].slice),lf=function(t,e,n,r){r&&r.enumerable?t[e]=n:Vc(t,e,n)},cf={f:hc},sf=Bc.f,ff=function(t){var e=Ol.Symbol||(Ol.Symbol={});ic(e,t)||sf(e,t,{value:cf.f(t)})},df=Qc?{}.toString:function(){return"[object "+ns(this)+"]"},pf=Bc.f,hf=hc("toStringTag"),vf=function(t,e,n,r){if(t){var o=n?t:t.prototype;ic(o,hf)||pf(o,hf,{configurable:!0,value:e}),r&&!Qc&&Vc(o,"toString",df)}},gf=nl.WeakMap,yf=pl(gf)&&/native code/.test(os(gf)),mf="Object already initialized",bf=nl.TypeError,Ef=nl.WeakMap;if(yf||tc.state){var wf=tc.state||(tc.state=new Ef),xf=dl(wf.get),Sf=dl(wf.has),kf=dl(wf.set);Us=function(t,e){if(Sf(wf,t))throw new bf(mf);return e.facade=t,kf(wf,t,e),e},Ks=function(t){return xf(wf,t)||{}},Xs=function(t){return Sf(wf,t)}}else{var Tf=Rs("state");Is[Tf]=!0,Us=function(t,e){if(ic(t,Tf))throw new bf(mf);return e.facade=t,Vc(t,Tf,e),e},Ks=function(t){return ic(t,Tf)?t[Tf]:{}},Xs=function(t){return ic(t,Tf)}}var Nf={set:Us,get:Ks,has:Xs,enforce:function(t){return Xs(t)?Ks(t):Us(t,{})},getterFor:function(t){return function(e){var n;if(!Il(e)||(n=Ks(e)).type!==t)throw bf("Incompatible receiver, "+t+" required");return n}}},Af=dl([].push),Df=function(t){var e=1==t,n=2==t,r=3==t,o=4==t,i=6==t,a=7==t,u=5==t||i;return function(l,c,s,f){for(var d,p,h=rc(l),v=Dl(h),g=Oc(c,s),y=Xc(v),m=0,b=f||vs,E=e?b(l,y):n||a?b(l,0):void 0;y>m;m++)if((u||m in v)&&(p=g(d=v[m],m,h),t))if(e)E[m]=p;else if(p)switch(t){case 3:return!0;case 5:return d;case 6:return m;case 2:Af(E,d)}else switch(t){case 4:return!1;case 7:Af(E,d)}return i?-1:r||o?o:E}},Mf={forEach:Df(0),map:Df(1),filter:Df(2),some:Df(3),every:Df(4),find:Df(5),findIndex:Df(6),filterReject:Df(7)}.forEach,Lf=Rs("hidden"),Pf="Symbol",If=hc("toPrimitive"),Of=Nf.set,Hf=Nf.getterFor(Pf),jf=Object.prototype,zf=nl.Symbol,Cf=zf&&zf.prototype,_f=nl.TypeError,Bf=nl.QObject,Vf=jl("JSON","stringify"),Rf=kc.f,Ff=Bc.f,qf=of.f,Wf=wl.f,Gf=dl([].push),$f=ec("symbols"),Uf=ec("op-symbols"),Kf=ec("string-to-symbol-registry"),Xf=ec("symbol-to-string-registry"),Jf=ec("wks"),Yf=!Bf||!Bf.prototype||!Bf.prototype.findChild,Qf=vl&&hl((function(){return 7!=Js(Ff({},"a",{get:function(){return Ff(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=Rf(jf,e);r&&delete jf[e],Ff(t,e,n),r&&t!==jf&&Ff(jf,e,r)}:Ff,Zf=function(t,e){var n=$f[t]=Js(Cf);return Of(n,{type:Pf,tag:t,description:e}),vl||(n.description=e),n},td=function(t,e,n){t===jf&&td(Uf,e,n),zc(t);var r=mc(e);return zc(n),ic($f,r)?(n.enumerable?(ic(t,Lf)&&t[Lf][r]&&(t[Lf][r]=!1),n=Js(n,{enumerable:xl(0,!1)})):(ic(t,Lf)||Ff(t,Lf,xl(1,{})),t[Lf][r]=!0),Qf(t,r,n)):Ff(t,r,n)},ed=function(t,e){zc(t);var n=Pl(e),r=Cs(n).concat(id(n));return Mf(r,(function(e){vl&&!yl(nd,n,e)||td(t,e,n[e])})),t},nd=function(t){var e=mc(t),n=yl(Wf,this,e);return!(this===jf&&ic($f,e)&&!ic(Uf,e))&&(!(n||!ic(this,e)||!ic($f,e)||ic(this,Lf)&&this[Lf][e])||n)},rd=function(t,e){var n=Pl(t),r=mc(e);if(n!==jf||!ic($f,r)||ic(Uf,r)){var o=Rf(n,r);return!o||!ic($f,r)||ic(n,Lf)&&n[Lf][r]||(o.enumerable=!0),o}},od=function(t){var e=qf(Pl(t)),n=[];return Mf(e,(function(t){ic($f,t)||ic(Is,t)||Gf(n,t)})),n},id=function(t){var e=t===jf,n=qf(e?Uf:Pl(t)),r=[];return Mf(n,(function(t){!ic($f,t)||e&&!ic(jf,t)||Gf(r,$f[t])})),r};if(ql||(zf=function(){if(zl(Cf,this))throw _f("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?Ns(arguments[0]):void 0,e=cc(t),n=function(t){this===jf&&yl(n,Uf,t),ic(this,Lf)&&ic(this[Lf],e)&&(this[Lf][e]=!1),Qf(this,e,xl(1,t))};return vl&&Yf&&Qf(jf,e,{configurable:!0,set:n}),Zf(e,t)},Cf=zf.prototype,lf(Cf,"toString",(function(){return Hf(this).tag})),lf(zf,"withoutSetter",(function(t){return Zf(cc(t),t)})),wl.f=nd,Bc.f=td,kc.f=rd,Qs.f=of.f=od,af.f=id,cf.f=function(t){return Zf(hc(t),t)},vl&&Ff(Cf,"description",{configurable:!0,get:function(){return Hf(this).description}})),qc({global:!0,wrap:!0,forced:!ql,sham:!ql},{Symbol:zf}),Mf(Cs(Jf),(function(t){ff(t)})),qc({target:Pf,stat:!0,forced:!ql},{for:function(t){var e=Ns(t);if(ic(Kf,e))return Kf[e];var n=zf(e);return Kf[e]=n,Xf[n]=e,n},keyFor:function(t){if(!$l(t))throw _f(t+" is not a symbol");if(ic(Xf,t))return Xf[t]},useSetter:function(){Yf=!0},useSimple:function(){Yf=!1}}),qc({target:"Object",stat:!0,forced:!ql,sham:!vl},{create:function(t,e){return void 0===e?Js(t):ed(Js(t),e)},defineProperty:td,defineProperties:ed,getOwnPropertyDescriptor:rd}),qc({target:"Object",stat:!0,forced:!ql},{getOwnPropertyNames:od,getOwnPropertySymbols:id}),qc({target:"Object",stat:!0,forced:hl((function(){af.f(1)}))},{getOwnPropertySymbols:function(t){return af.f(rc(t))}}),Vf){var ad=!ql||hl((function(){var t=zf();return"[null]"!=Vf([t])||"{}"!=Vf({a:t})||"{}"!=Vf(Object(t))}));qc({target:"JSON",stat:!0,forced:ad},{stringify:function(t,e,n){var r=uf(arguments),o=e;if((Il(e)||void 0!==t)&&!$l(t))return Wc(e)||(e=function(t,e){if(pl(o)&&(e=yl(o,this,t,e)),!$l(e))return e}),r[1]=e,ul(Vf,null,r)}})}if(!Cf[If]){var ud=Cf.valueOf;lf(Cf,If,(function(t){return yl(ud,this)}))}vf(zf,Pf),Is[Lf]=!0,ff("asyncIterator"),ff("hasInstance"),ff("isConcatSpreadable"),ff("iterator"),ff("match"),ff("matchAll"),ff("replace"),ff("search"),ff("species"),ff("split"),ff("toPrimitive"),ff("toStringTag"),ff("unscopables"),vf(nl.JSON,"JSON",!0);var ld,cd,sd,fd=Ol.Symbol,dd={},pd=Function.prototype,hd=vl&&Object.getOwnPropertyDescriptor,vd=ic(pd,"name"),gd={EXISTS:vd,PROPER:vd&&"something"===function(){}.name,CONFIGURABLE:vd&&(!vl||vl&&hd(pd,"name").configurable)},yd=!hl((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),md=Rs("IE_PROTO"),bd=nl.Object,Ed=bd.prototype,wd=yd?bd.getPrototypeOf:function(t){var e=rc(t);if(ic(e,md))return e[md];var n=e.constructor;return pl(n)&&e instanceof n?n.prototype:e instanceof bd?Ed:null},xd=hc("iterator"),Sd=!1;[].keys&&("next"in(sd=[].keys())?(cd=wd(wd(sd)))!==Object.prototype&&(ld=cd):Sd=!0);var kd=null==ld||hl((function(){var t={};return ld[xd].call(t)!==t}));ld=kd?{}:Js(ld),pl(ld[xd])||lf(ld,xd,(function(){return this}));var Td={IteratorPrototype:ld,BUGGY_SAFARI_ITERATORS:Sd},Nd=Td.IteratorPrototype,Ad=function(){return this};nl.String,nl.TypeError;Object.setPrototypeOf||"__proto__"in{}&&function(){var t,e=!1,n={};try{(t=dl(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),e=n instanceof Array}catch(t){}}();var Dd=gd.PROPER,Md=Td.BUGGY_SAFARI_ITERATORS,Ld=hc("iterator"),Pd="keys",Id="values",Od="entries",Hd=function(){return this},jd=function(t,e,n,r,o,i,a){!function(t,e,n,r){var o=e+" Iterator";t.prototype=Js(Nd,{next:xl(+!r,n)}),vf(t,o,!1,!0),dd[o]=Ad}(n,e,r);var u,l,c,s=function(t){if(t===o&&v)return v;if(!Md&&t in p)return p[t];switch(t){case Pd:case Id:case Od:return function(){return new n(this,t)}}return function(){return new n(this)}},f=e+" Iterator",d=!1,p=t.prototype,h=p[Ld]||p["@@iterator"]||o&&p[o],v=!Md&&h||s(o),g="Array"==e&&p.entries||h;if(g&&(u=wd(g.call(new t)))!==Object.prototype&&u.next&&(vf(u,f,!0,!0),dd[f]=Hd),Dd&&o==Id&&h&&h.name!==Id&&(d=!0,v=function(){return yl(h,this)}),o)if(l={values:s(Id),keys:i?v:s(Pd),entries:s(Od)},a)for(c in l)(Md||d||!(c in p))&&lf(p,c,l[c]);else qc({target:e,proto:!0,forced:Md||d},l);return a&&p[Ld]!==v&&lf(p,Ld,v,{name:o}),dd[e]=v,l},zd="Array Iterator",Cd=Nf.set,_d=Nf.getterFor(zd);jd(Array,"Array",(function(t,e){Cd(this,{type:zd,target:Pl(t),index:0,kind:e})}),(function(){var t=_d(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}}),"values"),dd.Arguments=dd.Array;var Bd=hc("toStringTag");for(var Vd in{CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}){var Rd=nl[Vd],Fd=Rd&&Rd.prototype;Fd&&ns(Fd)!==Bd&&Vc(Fd,Bd,Vd),dd[Vd]=dd.Array}var qd=fd;ff("asyncDispose"),ff("dispose"),ff("matcher"),ff("metadata"),ff("observable"),ff("patternMatch"),ff("replaceAll");var Wd=qd,Gd=dl("".charAt),$d=dl("".charCodeAt),Ud=dl("".slice),Kd=function(t){return function(e,n){var r,o,i=Ns(Ll(e)),a=Uc(n),u=i.length;return a<0||a>=u?t?"":void 0:(r=$d(i,a))<55296||r>56319||a+1===u||(o=$d(i,a+1))<56320||o>57343?t?Gd(i,a):r:t?Ud(i,a,a+2):o-56320+(r-55296<<10)+65536}},Xd={codeAt:Kd(!1),charAt:Kd(!0)}.charAt,Jd="String Iterator",Yd=Nf.set,Qd=Nf.getterFor(Jd);jd(String,"String",(function(t){Yd(this,{type:Jd,string:Ns(t),index:0})}),(function(){var t,e=Qd(this),n=e.string,r=e.index;return r>=n.length?{value:void 0,done:!0}:(t=Xd(n,r),e.index+=t.length,{value:t,done:!1})}));var Zd,tp,ep,np=cf.f("iterator"),rp=h((function(t){function e(n){return"function"==typeof Wd&&"symbol"==typeof np?(t.exports=e=function(t){return typeof t},t.exports.default=t.exports,t.exports.__esModule=!0):(t.exports=e=function(t){return t&&"function"==typeof Wd&&t.constructor===Wd&&t!==Wd.prototype?"symbol":typeof t},t.exports.default=t.exports,t.exports.__esModule=!0),e(n)}t.exports=e,t.exports.default=t.exports,t.exports.__esModule=!0})),op=p(rp),ip={},ap=!b((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),up=Qt("IE_PROTO"),lp=m.Object,cp=lp.prototype,sp=ap?lp.getPrototypeOf:function(t){var e=vt(t);if(yt(e,up))return e[up];var n=e.constructor;return F(n)&&e instanceof n?n.prototype:e instanceof lp?cp:null},fp=Nt("iterator"),dp=!1;[].keys&&("next"in(ep=[].keys())?(tp=sp(sp(ep)))!==Object.prototype&&(Zd=tp):dp=!0);var pp=null==Zd||b((function(){var t={};return Zd[fp].call(t)!==t}));pp&&(Zd={}),F(Zd[fp])||pe(Zd,fp,(function(){return this}));var hp={IteratorPrototype:Zd,BUGGY_SAFARI_ITERATORS:dp},vp=Ft.f,gp=Nt("toStringTag"),yp=function(t,e,n){t&&!yt(t=n?t:t.prototype,gp)&&vp(t,gp,{configurable:!0,value:e})},mp=hp.IteratorPrototype,bp=function(){return this},Ep=m.String,wp=m.TypeError,xp=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=I(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),e=n instanceof Array}catch(t){}return function(n,r){return Bt(n),function(t){if("object"==typeof t||F(t))return t;throw wp("Can't set "+Ep(t)+" as a prototype")}(r),e?t(n,r):n.__proto__=r,n}}():void 0),Sp=de.PROPER,kp=de.CONFIGURABLE,Tp=hp.IteratorPrototype,Np=hp.BUGGY_SAFARI_ITERATORS,Ap=Nt("iterator"),Dp="keys",Mp="values",Lp="entries",Pp=function(){return this},Ip=function(t,e,n,r,o,i,a){!function(t,e,n,r){var o=e+" Iterator";t.prototype=Cn(mp,{next:A(+!r,n)}),yp(t,o,!1),ip[o]=bp}(n,e,r);var u,l,c,s=function(t){if(t===o&&v)return v;if(!Np&&t in p)return p[t];switch(t){case Dp:case Mp:case Lp:return function(){return new n(this,t)}}return function(){return new n(this)}},f=e+" Iterator",d=!1,p=t.prototype,h=p[Ap]||p["@@iterator"]||o&&p[o],v=!Np&&h||s(o),g="Array"==e&&p.entries||h;if(g&&(u=sp(g.call(new t)))!==Object.prototype&&u.next&&(sp(u)!==Tp&&(xp?xp(u,Tp):F(u[Ap])||pe(u,Ap,Pp)),yp(u,f,!0)),Sp&&o==Mp&&h&&h.name!==Mp&&(kp?qt(p,"name",Mp):(d=!0,v=function(){return x(h,this)})),o)if(l={values:s(Mp),keys:i?v:s(Dp),entries:s(Lp)},a)for(c in l)(Np||d||!(c in p))&&pe(p,c,l[c]);else qe({target:e,proto:!0,forced:Np||d},l);return p[Ap]!==v&&pe(p,Ap,v,{name:o}),ip[e]=v,l},Op="Array Iterator",Hp=le.set,jp=le.getterFor(Op),zp=Ip(Array,"Array",(function(t,e){Hp(this,{type:Op,target:R(t),index:0,kind:e})}),(function(){var t=jp(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}}),"values");ip.Arguments=ip.Array,jr("keys"),jr("values"),jr("entries");var Cp=Le.f,_p="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Bp={f:function(t){return _p&&"Window"==j(t)?function(t){try{return Cp(t)}catch(t){return Ur(_p)}}(t):Cp(R(t))}},Vp=b((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}})),Rp=Object.isExtensible,Fp=b((function(){Rp(1)}))||Vp?function(t){return!!q(t)&&((!Vp||"ArrayBuffer"!=j(t))&&(!Rp||Rp(t)))}:Rp,qp=!b((function(){return Object.isExtensible(Object.preventExtensions({}))})),Wp=h((function(t){var e=Ft.f,n=!1,r=wt("meta"),o=0,i=function(t){e(t,r,{value:{objectID:"O"+o++,weakData:{}}})},a=t.exports={enable:function(){a.enable=function(){},n=!0;var t=Le.f,e=I([].splice),o={};o[r]=1,t(o).length&&(Le.f=function(n){for(var o=t(n),i=0,a=o.length;i<a;i++)if(o[i]===r){e(o,i,1);break}return o},qe({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Bp.f}))},fastKey:function(t,e){if(!q(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!yt(t,r)){if(!Fp(t))return"F";if(!e)return"E";i(t)}return t[r].objectID},getWeakData:function(t,e){if(!yt(t,r)){if(!Fp(t))return!0;if(!e)return!1;i(t)}return t[r].weakData},onFreeze:function(t){return qp&&n&&Fp(t)&&!yt(t,r)&&i(t),t}};Zt[r]=!0})),Gp=Nt("iterator"),$p=Array.prototype,Up=function(t){return void 0!==t&&(ip.Array===t||$p[Gp]===t)},Kp=Nt("iterator"),Xp=function(t){if(null!=t)return ut(t,Kp)||ut(t,"@@iterator")||ip[Qe(t)]},Jp=m.TypeError,Yp=function(t,e){var n=arguments.length<2?Xp(t):e;if(at(n))return Bt(x(n,t));throw Jp(ot(t)+" is not iterable")},Qp=function(t,e,n){var r,o;Bt(t);try{if(!(r=ut(t,"return"))){if("throw"===e)throw n;return n}r=x(r,t)}catch(t){o=!0,r=t}if("throw"===e)throw n;if(o)throw r;return Bt(r),n},Zp=m.TypeError,th=function(t,e){this.stopped=t,this.result=e},eh=th.prototype,nh=function(t,e,n){var r,o,i,a,u,l,c,s=n&&n.that,f=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_ITERATOR),p=!(!n||!n.INTERRUPTED),h=Ge(e,s),v=function(t){return r&&Qp(r,"normal",t),new th(!0,t)},g=function(t){return f?(Bt(t),p?h(t[0],t[1],v):h(t[0],t[1])):p?h(t,v):h(t)};if(d)r=t;else{if(!(o=Xp(t)))throw Zp(ot(t)+" is not iterable");if(Up(o)){for(i=0,a=xe(t);a>i;i++)if((u=g(t[i]))&&$(eh,u))return u;return new th(!1)}r=Yp(t,o)}for(l=r.next;!(c=x(l,r)).done;){try{u=g(c.value)}catch(t){Qp(r,"throw",t)}if("object"==typeof u&&u&&$(eh,u))return u}return new th(!1)},rh=m.TypeError,oh=function(t,e){if($(e,t))return t;throw rh("Incorrect invocation")},ih=Nt("iterator"),ah=!1;try{var uh=0,lh={next:function(){return{done:!!uh++}},return:function(){ah=!0}};lh[ih]=function(){return this},Array.from(lh,(function(){throw 2}))}catch(t){}var ch=function(t,e){if(!e&&!ah)return!1;var n=!1;try{var r={};r[ih]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(t){}return n},sh=function(t,e,n){var r,o;return xp&&F(r=e.constructor)&&r!==n&&q(o=r.prototype)&&o!==n.prototype&&xp(t,o),t},fh=function(t,e,n){var r=-1!==t.indexOf("Map"),o=-1!==t.indexOf("Weak"),i=r?"set":"add",a=m[t],u=a&&a.prototype,l=a,c={},s=function(t){var e=I(u[t]);pe(u,t,"add"==t?function(t){return e(this,0===t?0:t),this}:"delete"==t?function(t){return!(o&&!q(t))&&e(this,0===t?0:t)}:"get"==t?function(t){return o&&!q(t)?void 0:e(this,0===t?0:t)}:"has"==t?function(t){return!(o&&!q(t))&&e(this,0===t?0:t)}:function(t,n){return e(this,0===t?0:t,n),this})};if(Re(t,!F(a)||!(o||u.forEach&&!b((function(){(new a).entries().next()})))))l=n.getConstructor(e,t,r,i),Wp.enable();else if(Re(t,!0)){var f=new l,d=f[i](o?{}:-0,1)!=f,p=b((function(){f.has(1)})),h=ch((function(t){new a(t)})),v=!o&&b((function(){for(var t=new a,e=5;e--;)t[i](e,e);return!t.has(-0)}));h||((l=e((function(t,e){oh(t,u);var n=sh(new a,t,l);return null!=e&&nh(e,n[i],{that:n,AS_ENTRIES:r}),n}))).prototype=u,u.constructor=l),(p||v)&&(s("delete"),s("has"),r&&s("get")),(v||d)&&s(i),o&&u.clear&&delete u.clear}return c[t]=l,qe({global:!0,forced:l!=a},c),yp(l,t),o||n.setStrong(l,t,r),l},dh=function(t,e,n){for(var r in e)pe(t,r,e[r],n);return t},ph=Nt("species"),hh=Ft.f,vh=Wp.fastKey,gh=le.set,yh=le.getterFor,mh={getConstructor:function(t,e,n,r){var o=t((function(t,o){oh(t,i),gh(t,{type:e,index:Cn(null),first:void 0,last:void 0,size:0}),E||(t.size=0),null!=o&&nh(o,t[r],{that:t,AS_ENTRIES:n})})),i=o.prototype,a=yh(e),u=function(t,e,n){var r,o,i=a(t),u=l(t,e);return u?u.value=n:(i.last=u={index:o=vh(e,!0),key:e,value:n,previous:r=i.last,next:void 0,removed:!1},i.first||(i.first=u),r&&(r.next=u),E?i.size++:t.size++,"F"!==o&&(i.index[o]=u)),t},l=function(t,e){var n,r=a(t),o=vh(e);if("F"!==o)return r.index[o];for(n=r.first;n;n=n.next)if(n.key==e)return n};return dh(i,{clear:function(){for(var t=a(this),e=t.index,n=t.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete e[n.index],n=n.next;t.first=t.last=void 0,E?t.size=0:this.size=0},delete:function(t){var e=this,n=a(e),r=l(e,t);if(r){var o=r.next,i=r.previous;delete n.index[r.index],r.removed=!0,i&&(i.next=o),o&&(o.previous=i),n.first==r&&(n.first=o),n.last==r&&(n.last=i),E?n.size--:e.size--}return!!r},forEach:function(t){for(var e,n=a(this),r=Ge(t,arguments.length>1?arguments[1]:void 0);e=e?e.next:n.first;)for(r(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!l(this,t)}}),dh(i,n?{get:function(t){var e=l(this,t);return e&&e.value},set:function(t,e){return u(this,0===t?0:t,e)}}:{add:function(t){return u(this,t=0===t?0:t,t)}}),E&&hh(i,"size",{get:function(){return a(this).size}}),o},setStrong:function(t,e,n){var r=e+" Iterator",o=yh(e),i=yh(r);Ip(t,e,(function(t,e){gh(this,{type:r,target:t,state:o(t),kind:e,last:void 0})}),(function(){for(var t=i(this),e=t.kind,n=t.last;n&&n.removed;)n=n.previous;return t.target&&(t.last=n=n?n.next:t.state.first)?"keys"==e?{value:n.key,done:!1}:"values"==e?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(t.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),function(t){var e=G(t),n=Ft.f;E&&e&&!e[ph]&&n(e,ph,{configurable:!0,get:function(){return this}})}(e)}};fh("Set",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),mh);var bh=dr.charAt,Eh="String Iterator",wh=le.set,xh=le.getterFor(Eh);Ip(String,"String",(function(t){wh(this,{type:Eh,string:wn(t),index:0})}),(function(){var t,e=xh(this),n=e.string,r=e.index;return r>=n.length?{value:void 0,done:!0}:(t=bh(n,r),e.index+=t.length,{value:t,done:!1})}));var Sh=Nt("iterator"),kh=Nt("toStringTag"),Th=zp.values,Nh=function(t,e){if(t){if(t[Sh]!==Th)try{qt(t,Sh,Th)}catch(e){t[Sh]=Th}if(t[kh]||qt(t,kh,e),Oo[e])for(var n in zp)if(t[n]!==zp[n])try{qt(t,n,zp[n])}catch(e){t[n]=zp[n]}}};for(var Ah in Oo)Nh(m[Ah]&&m[Ah].prototype,Ah);Nh(zo,"DOMTokenList");var Dh=pn.map,Mh=vn("map");qe({target:"Array",proto:!0,forced:!Mh},{map:function(t){return Dh(this,t,arguments.length>1?arguments[1]:void 0)}});var Lh=I("".indexOf);qe({target:"String",proto:!0,forced:!Vi("includes")},{includes:function(t){return!!~Lh(wn(V(this)),wn(_i(t)),arguments.length>1?arguments[1]:void 0)}});var Ph=Math.floor,Ih=function(t,e){var n=t.length,r=Ph(n/2);return n<8?Oh(t,e):Hh(t,Ih(Ur(t,0,r),e),Ih(Ur(t,r),e),e)},Oh=function(t,e){for(var n,r,o=t.length,i=1;i<o;){for(r=i,n=t[i];r&&e(t[r-1],n)>0;)t[r]=t[--r];r!==i++&&(t[r]=n)}return t},Hh=function(t,e,n,r){for(var o=e.length,i=n.length,a=0,u=0;a<o||u<i;)t[a+u]=a<o&&u<i?r(e[a],n[u])<=0?e[a++]:n[u++]:a<o?e[a++]:n[u++];return t},jh=Ih,zh=U.match(/firefox\/(\d+)/i),Ch=!!zh&&+zh[1],_h=/MSIE|Trident/.test(U),Bh=U.match(/AppleWebKit\/(\d+)\./),Vh=!!Bh&&+Bh[1],Rh=[],Fh=I(Rh.sort),qh=I(Rh.push),Wh=b((function(){Rh.sort(void 0)})),Gh=b((function(){Rh.sort(null)})),$h=Co("sort"),Uh=!b((function(){if(Q)return Q<70;if(!(Ch&&Ch>3)){if(_h)return!0;if(Vh)return Vh<603;var t,e,n,r,o="";for(t=65;t<76;t++){switch(e=String.fromCharCode(t),t){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(r=0;r<47;r++)Rh.push({k:e+r,v:n})}for(Rh.sort((function(t,e){return e.v-t.v})),r=0;r<Rh.length;r++)e=Rh[r].k.charAt(0),o.charAt(o.length-1)!==e&&(o+=e);return"DGBEFHACIJK"!==o}}));qe({target:"Array",proto:!0,forced:Wh||!Gh||!$h||!Uh},{sort:function(t){void 0!==t&&at(t);var e=vt(this);if(Uh)return void 0===t?Fh(e):Fh(e,t);var n,r,o=[],i=xe(e);for(r=0;r<i;r++)r in e&&qh(o,e[r]);for(jh(o,function(t){return function(e,n){return void 0===n?-1:void 0===e?1:void 0!==t?+t(e,n)||0:wn(e)>wn(n)?1:-1}}(t)),n=o.length,r=0;r<n;)e[r]=o[r++];for(;r<i;)delete e[r++];return e}});var Kh=new Set(["paragraph","blockquote","header1","header2","header3","header4","header5","header6"]);function Xh(t){return Kh.has(t)}function Jh(t){if(null==t||"object"!==op(t))return{text:""};if("string"==typeof t.text){var e=bo({},t);return delete e.children,e}var n=bo({},t);return Array.isArray(t.children)&&(n.children=t.children.map(Jh)),n}function Yh(t){var e,n=Array.isArray(null===(e=t)||void 0===e?void 0:e.children)?t.children:[];return n.length?n.map(Jh):[{text:""}]}function Qh(t){for(var e=[],n=0;n<t.length;n++)n>0&&e.push({text:"\n"}),e.push.apply(e,ko([],So(Yh(t[n][0]))));return e.length?e:[{text:""}]}function Zh(t){var n,o,i,a,u,l=function(t){var n,o,i=null==t?void 0:t.selection;if(!i)return[];var a=[],u=new Set;try{try{for(var l=xo(r.Editor.nodes(t,{at:i,match:function(n){return null!=n&&"object"===op(n)&&("function"!=typeof t.isVoid||!t.isVoid(n))&&Xh(e.DomEditor.getNodeType(n))},mode:"highest"})),c=l.next();!c.done;c=l.next()){var s=So(c.value,2),f=s[0],d=s[1];if(Array.isArray(d)&&1===d.length){var p=String(d[0]);u.has(p)||(u.add(p),a.push([f,ko([],So(d))]))}}}catch(t){n={error:t}}finally{try{c&&!c.done&&(o=l.return)&&o.call(l)}finally{if(n)throw n.error}}}catch(t){return[]}return a.sort((function(t,e){return t[1][0]-e[1][0]})),a}(t).filter((function(t){var n=So(t,1)[0];return"pre"!==e.DomEditor.getNodeType(n)}));if(l.length>0)return l;var c=null===(i=t)||void 0===i?void 0:i.__mdgchTrustedBlockPaths;if(Array.isArray(c)&&c.length){var s=[];try{for(var f=xo(c),d=f.next();!d.done;d=f.next()){var p=d.value;if(Array.isArray(p)&&p.length)(v=e.getEditorNodeAtPath(t,p))&&"pre"!==v.type&&Xh(e.DomEditor.getNodeType(v))&&s.push([v,ko([],So(p))])}}catch(t){n={error:t}}finally{try{d&&!d.done&&(o=f.return)&&o.call(f)}finally{if(n)throw n.error}}if(s.length)return s}var h=null==t?void 0:t.selection;if(null===(u=null===(a=null==h?void 0:h.anchor)||void 0===a?void 0:a.path)||void 0===u?void 0:u.length){var v;p=[h.anchor.path[0]];if((v=e.getEditorNodeAtPath(t,p))&&"pre"!==v.type&&Xh(e.DomEditor.getNodeType(v)))return[[v,p]]}return[]}function tv(t){if(t&&!t.isDestroyed){var n=Zh(t);if(n.length){var o=n.every((function(t){var n=So(t,1)[0];return"blockquote"===e.DomEditor.getNodeType(n)}));if(o)try{if(1===n.length){var i=So(n[0],2),a=i[0],u=i[1],l=function(t){var e,n,r=[[]],o=function(t){"string"==typeof t.text&&!t.type&&t.text.includes("\n")?t.text.split("\n").forEach((function(e,n){n>0&&r.push([]),r[r.length-1].push(bo(bo({},t),{text:e}))})):r[r.length-1].push(t)};try{for(var i=xo(t),a=i.next();!a.done;a=i.next())o(a.value)}catch(t){e={error:t}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}return r.map((function(t){return t.length?t:[{text:""}]}))}(Yh(a));if(l.length>1)return void function(t,n,o,i){var a=n[0];e.pinEditorScrollDuring(t,(function(){r.Editor.withoutNormalizing(t,(function(){r.Transforms.removeNodes(t,{at:n});for(var e=0;e<i.length;e++)r.Transforms.insertNodes(t,{type:"paragraph",children:i[e]},{at:[a+e]});try{t.select(r.Editor.end(t,[a+i.length-1]))}catch(t){}}))}))}(t,u,0,l)}r.Transforms.setNodes(t,{type:"paragraph"},{mode:"highest"})}catch(t){}else if(1!==n.length){var c=n[0][1][0],s={type:"blockquote",children:Qh(n)};try{e.pinEditorScrollDuring(t,(function(){r.Editor.withoutNormalizing(t,(function(){for(var o=n.length-1;o>=0;o--){var i=[n[o][1][0]];e.getEditorNodeAtPath(t,i)&&r.Transforms.removeNodes(t,{at:i})}var a=[Math.min(c,t.children.length)];r.Transforms.insertNodes(t,s,{at:a});try{t.select(r.Editor.end(t,a))}catch(t){}t.__mdgchTrustedBlockPath=ko([],So(a))}))}))}catch(t){console.warn("[wangeditor] toggleBlockquoteMerged merge failed",t)}}else try{r.Transforms.setNodes(t,{type:"blockquote"},{mode:"highest"})}catch(t){}}else try{var f=e.DomEditor.getSelectedNodeByType(t,"blockquote");r.Transforms.setNodes(t,{type:f?"paragraph":"blockquote"},{mode:"highest"})}catch(t){}}}var ev=function(){function t(){this.title=e.t("blockQuote.title"),this.iconSvg=ni,this.tag="button"}return t.prototype.getValue=function(){return""},t.prototype.isActive=function(t){return null!=e.DomEditor.getSelectedNodeByType(t,"blockquote")},t.prototype.isDisabled=function(t){if(null==t.selection)return!0;try{var n=e.DomEditor.getSelectedElems(t);return!!n.some((function(e){return t.isVoid(e)}))||!n.some((function(t){return Xh(e.DomEditor.getNodeType(t))}))}catch(t){return!0}},t.prototype.exec=function(t){this.isDisabled(t)||tv(t)},t}();var nv={renderElems:[Xu],elemsToHtml:[Ju],parseElemsHtml:[Zu],menus:[{key:"blockquote",factory:function(){return new tl}},{key:"blockquoteMerged",factory:function(){return new ev}}],editorPlugin:function(t){var n=t.insertBreak,o=t.insertText,i=t.insertData,a=t;return a.insertBreak=function(){var i=a.selection;if(null==i)return n();var u=So(r.Editor.nodes(t,{match:function(t){return e.DomEditor.checkNodeType(t,"blockquote")},universal:!0}),1)[0];if(!u)return n();var l=u[0],c=e.DomEditor.findPath(t,l),s=r.Editor.end(t,c);if(r.Point.equals(s,i.focus)){var f=r.Node.string(l);if(f&&"\n"===f.slice(-1)){t.deleteBackward("character");return void r.Transforms.insertNodes(a,{type:"paragraph",children:[{text:""}]},{mode:"highest"})}}o("\n")},a.insertData=function(t){if(null!=e.DomEditor.getSelectedNodeByType(a,"blockquote")){var n=t.files;if(n&&n.length>0)i(t);else{var o=t.getData("text/html");if(o&&/<img[^>]+>/i.test(o))i(t);else{var u=t.getData("text/plain");if(u){var l=u.replace(/\r\n/g,"\n").replace(/\r/g,"\n");r.Editor.insertText(a,l)}else i(t)}}}else i(t)},a}},rv=function(){function t(){this.title=e.t("emotion.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M512 1024C230.4 1024 0 793.6 0 512S230.4 0 512 0s512 230.4 512 512-230.4 512-512 512z m0-102.4c226.742857 0 409.6-182.857143 409.6-409.6S738.742857 102.4 512 102.4 102.4 285.257143 102.4 512s182.857143 409.6 409.6 409.6z m-204.8-358.4h409.6c0 113.371429-91.428571 204.8-204.8 204.8s-204.8-91.428571-204.8-204.8z m0-102.4c-43.885714 0-76.8-32.914286-76.8-76.8s32.914286-76.8 76.8-76.8 76.8 32.914286 76.8 76.8-32.914286 76.8-76.8 76.8z m409.6 0c-43.885714 0-76.8-32.914286-76.8-76.8s32.914286-76.8 76.8-76.8c43.885714 0 76.8 32.914286 76.8 76.8s-32.914286 76.8-76.8 76.8z"></path></svg>',this.tag="button",this.showDropPanel=!0,this.$content=null}return t.prototype.exec=function(t,e){},t.prototype.getValue=function(t){return""},t.prototype.isActive=function(t){return!1},t.prototype.isDisabled=function(t){return null==t.selection||!!So(r.Editor.nodes(t,{match:function(n){return"pre"===e.DomEditor.getNodeType(n)||!!r.Editor.isVoid(t,n)},universal:!0}),1)[0]},t.prototype.getPanelContentElem=function(t){if(null==this.$content){var e=l.default('<ul class="w-e-panel-content-emotion"></ul>');e.on("click","li",(function(e){var n=e.target;if(null!=n){e.preventDefault();var r=l.default(n).text();t.insertText(r)}})),this.$content=e}var n=this.$content;if(null==n)return document.createElement("ul");n.empty();var r=t.getMenuConfig("emotion").emotions;return(void 0===r?[]:r).forEach((function(t){var e=l.default("<li>"+t+"</li>");n.append(e)})),n[0]},t}();var ov={menus:[{key:"emotion",factory:function(){return new rv},config:{emotions:"๐Ÿ˜€ ๐Ÿ˜ƒ ๐Ÿ˜„ ๐Ÿ˜ ๐Ÿ˜† ๐Ÿ˜… ๐Ÿ˜‚ ๐Ÿคฃ ๐Ÿ˜Š ๐Ÿ˜‡ ๐Ÿ™‚ ๐Ÿ™ƒ ๐Ÿ˜‰ ๐Ÿ˜Œ ๐Ÿ˜ ๐Ÿ˜˜ ๐Ÿ˜— ๐Ÿ˜™ ๐Ÿ˜š ๐Ÿ˜‹ ๐Ÿ˜› ๐Ÿ˜ ๐Ÿ˜œ ๐Ÿค“ ๐Ÿ˜Ž ๐Ÿ˜ ๐Ÿ˜’ ๐Ÿ˜ž ๐Ÿ˜” ๐Ÿ˜Ÿ ๐Ÿ˜• ๐Ÿ™ ๐Ÿ˜ฃ ๐Ÿ˜– ๐Ÿ˜ซ ๐Ÿ˜ฉ ๐Ÿ˜ข ๐Ÿ˜ญ ๐Ÿ˜ค ๐Ÿ˜  ๐Ÿ˜ก ๐Ÿ˜ณ ๐Ÿ˜ฑ ๐Ÿ˜จ ๐Ÿค— ๐Ÿค” ๐Ÿ˜ถ ๐Ÿ˜‘ ๐Ÿ˜ฌ ๐Ÿ™„ ๐Ÿ˜ฏ ๐Ÿ˜ด ๐Ÿ˜ท ๐Ÿค‘ ๐Ÿ˜ˆ ๐Ÿคก ๐Ÿ’ฉ ๐Ÿ‘ป ๐Ÿ’€ ๐Ÿ‘€ ๐Ÿ‘ฃ ๐Ÿ‘ ๐Ÿ™Œ ๐Ÿ‘ ๐Ÿค ๐Ÿ‘ ๐Ÿ‘Ž ๐Ÿ‘Š โœŠ ๐Ÿค› ๐Ÿคœ ๐Ÿคž โœŒ๏ธ ๐Ÿค˜ ๐Ÿ‘Œ ๐Ÿ‘ˆ ๐Ÿ‘‰ ๐Ÿ‘† ๐Ÿ‘‡ โ˜๏ธ โœ‹ ๐Ÿคš ๐Ÿ– ๐Ÿ–– ๐Ÿ‘‹ ๐Ÿค™ ๐Ÿ’ช ๐Ÿ–• โœ๏ธ ๐Ÿ™".split(" ")}}]};var iv={1:"12px",2:"14px",3:"16px",4:"19px",5:"24px",6:"32px",7:"48px"};var av={selector:"font",preParseHtml:function(t){var e=l.default(t);if("font"!==vo(e))return t;var n=e.attr("size")||"";n&&(e.removeAttr("size"),e.css("font-size",iv[n]));var r=e.attr("face")||"";return r&&(e.removeAttr("face"),e.css("font-family",r)),e[0]}};var uv=de.EXISTS,lv=Ft.f,cv=Function.prototype,sv=I(cv.toString),fv=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,dv=I(fv.exec);E&&!uv&&lv(cv,"name",{configurable:!0,get:function(){try{return dv(fv,sv(this))[1]}catch(t){return""}}});var pv=function(){function t(){this.tag="select",this.width=80}return t.prototype.isActive=function(t){return!1},t.prototype.getValue=function(t){var e=this.mark,n=r.Editor.marks(t);return n&&n[e]?n[e]:""},t.prototype.isDisabled=function(t){return null==t.selection||(this.mark,!!So(r.Editor.nodes(t,{match:function(n){return"pre"===e.DomEditor.getNodeType(n)||!!r.Editor.isVoid(t,n)},universal:!0}),1)[0])},t.prototype.exec=function(t,e){var n=this.mark;e?t.addMark(n,e):t.removeMark(n)},t}(),hv=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.title=e.t("fontSize.title"),n.iconSvg=ri,n.mark="fontSize",n}return mo(n,t),n.prototype.getOptions=function(t){var n=[],r=t.getMenuConfig(this.mark).fontSizeList,o=void 0===r?[]:r;n.push({text:e.t("fontSize.default"),value:""}),o.forEach((function(t){if("string"==typeof t)n.push({text:t,value:t});else if("object"===op(t)){var e=t.name,r=t.value;n.push({text:e,value:r})}}));var i=this.getValue(t);return n.forEach((function(t){t.value===i?t.selected=!0:delete t.selected})),n},n}(pv),vv=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.title=e.t("fontFamily.title"),n.iconSvg=oi,n.mark="fontFamily",n.selectPanelWidth=150,n}return mo(n,t),n.prototype.getOptions=function(t){var n=[],r=t.getMenuConfig(this.mark).fontFamilyList,o=void 0===r?[]:r;n.push({text:e.t("fontFamily.default"),value:""}),o.forEach((function(t){if("string"==typeof t)n.push({text:t,value:t,styleForRenderMenuList:{"font-family":t}});else if("object"===op(t)){var e=t.name,r=t.value;n.push({text:e,value:r,styleForRenderMenuList:{"font-family":r}})}}));var i=this.getValue(t);return n.forEach((function(t){t.value===i?t.selected=!0:delete t.selected})),n},n}(pv);var gv={renderStyle:function(t,e){var n=t,r=n.fontSize,o=n.fontFamily,i=e;return r&&ga(i,{fontSize:r}),o&&ga(i,{fontFamily:o}),i},styleToHtml:function(t,e){if(!r.Text.isText(t))return e;var n,o=t,i=o.fontSize,a=o.fontFamily;return i||a?((po(e)||"span"!==vo(n=l.default(e)))&&(n=l.default("<span>"+e+"</span>")),i&&n.css("font-size",i),a&&n.css("font-family",a),ho(n)):e},preParseHtml:[av],parseStyleHtml:function(t,e,n){var o=l.default(t);if(!r.Text.isText(e))return e;var i=e,a=n.getMenuConfig("fontSize").fontSizeList,u=void 0===a?[]:a,c=go(o,"font-size"),s=u.find((function(t){return t.value&&t.value===c}))||u.includes(c);c&&s&&(i.fontSize=c);var f=n.getMenuConfig("fontFamily").fontFamilyList,d=void 0===f?[]:f,p=go(o,"font-family").replace(/"/g,""),h=d.find((function(t){return t.value&&t.value===p}))||d.includes(p);return p&&h&&(i.fontFamily=p),i},menus:[{key:"fontSize",factory:function(){return new hv},config:{fontSizeList:["12px",{name:"13px",value:"13px"},"14px","15px","16px","19px",{name:"22px",value:"22px"},"24px","29px","32px","40px","48px"]}},{key:"fontFamily",factory:function(){return new vv},config:{fontFamilyList:["้ป‘ไฝ“",{name:"ไปฟๅฎ‹",value:"ไปฟๅฎ‹"},"ๆฅทไฝ“","ๆ ‡ๆฅทไฝ“","ๅŽๆ–‡ไปฟๅฎ‹","ๅŽๆ–‡ๆฅทไฝ“",{name:"ๅฎ‹ไฝ“",value:"ๅฎ‹ไฝ“"},"ๅพฎ่ฝฏ้›…้ป‘","Arial","Tahoma","Verdana","Times New Roman","Courier New"]}}]},yv=Le.f,mv=zt.f,bv=Ft.f,Ev=co.trim,wv="Number",xv=m.Number,Sv=xv.prototype,kv=m.TypeError,Tv=I("".slice),Nv=I("".charCodeAt),Av=function(t){var e=Mt(t,"number");return"bigint"==typeof e?e:Dv(e)},Dv=function(t){var e,n,r,o,i,a,u,l,c=Mt(t,"number");if(nt(c))throw kv("Cannot convert a Symbol value to a number");if("string"==typeof c&&c.length>2)if(c=Ev(c),43===(e=Nv(c,0))||45===e){if(88===(n=Nv(c,2))||120===n)return NaN}else if(48===e){switch(Nv(c,1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+c}for(a=(i=Tv(c,2)).length,u=0;u<a;u++)if((l=Nv(i,u))<48||l>o)return NaN;return parseInt(i,r)}return+c};if(Re(wv,!xv(" 0o1")||!xv("0b1")||xv("+0x1"))){for(var Mv,Lv=function(t){var e=arguments.length<1?0:xv(Av(t)),n=this;return $(Sv,n)&&b((function(){tu(n)}))?sh(Object(e),n,Lv):e},Pv=E?yv(xv):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),Iv=0;Pv.length>Iv;Iv++)yt(xv,Mv=Pv[Iv])&&!yt(Lv,Mv)&&bv(Lv,Mv,mv(xv,Mv));Lv.prototype=Sv,Sv.constructor=Lv,pe(m,wv,Lv)}var Ov={selector:"p,h1,h2,h3,h4,h5",preParseHtml:function(t){var e=l.default(t),n=go(e,"padding-left");return/\dem/.test(n)&&e.css("text-indent","2em"),/\dpx/.test(n)&&parseInt(n,10)%32==0&&e.css("text-indent","2em"),e[0]}};var Hv=function(){function t(){this.tag="button"}return t.prototype.getValue=function(t){var e=So(r.Editor.nodes(t,{match:function(t){return!!t.indent},universal:!0}),1),n=e[0];return null==n?"":So(n,1)[0].indent||""},t.prototype.isActive=function(t){return!1},t.prototype.getMatchNode=function(t){var n=So(r.Editor.nodes(t,{match:function(t){var n=e.DomEditor.getNodeType(t);return"paragraph"===n||!!n.startsWith("header")},universal:!0,mode:"highest"}),1)[0];return null==n?null:n[0]},t}(),jv=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.title=e.t("indent.decrease"),n.iconSvg=ii,n}return mo(n,t),n.prototype.isDisabled=function(t){var e=this.getMatchNode(t);return null==e||!e.indent},n.prototype.exec=function(t,e){r.Transforms.setNodes(t,{indent:null},{match:function(t){return r.Element.isElement(t)}})},n}(Hv),zv=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.title=e.t("indent.increase"),n.iconSvg=ai,n.DEFAULT_INDENT_VALUE="2em",n}return mo(n,t),n.prototype.isDisabled=function(t){var e=this.getMatchNode(t);return null==e||!!e.indent},n.prototype.getIndentValue=function(t){var e=this.getMatchNode(t);if(!e)return this.DEFAULT_INDENT_VALUE;var n=e.children.filter(r.Text.isText)[0];if(!n||!n.fontSize)return this.DEFAULT_INDENT_VALUE;var o=n.fontSize,i=parseInt(n.fontSize);return""+2*i+o.replace(""+i,"")},n.prototype.exec=function(t,e){var n=this.getIndentValue(t);r.Transforms.setNodes(t,{indent:n},{match:function(t){return r.Element.isElement(t)},mode:"highest"})},n}(Hv),Cv={key:"indent",factory:function(){return new zv}},_v={key:"delIndent",factory:function(){return new jv}},Bv=function(t,e,n,r){try{return r?e(Bt(n)[0],n[1]):e(n)}catch(e){Qp(t,"throw",e)}},Vv=m.Array,Rv=!ch((function(t){Array.from(t)}));function Fv(t){return"paragraph"===t||"todo"===t||"blockquote"===t||!!t.startsWith("header")}function qv(t,n){var o,i;if(null==t.selection)return!1;if(e.DomEditor.getSelectedNodeByType(t,"code")||e.DomEditor.getSelectedNodeByType(t,"pre"))return!1;var a=Array.from(function(t){return r.Editor.nodes(t,{at:t.selection||void 0,match:function(n){return r.Element.isElement(n)&&1===e.DomEditor.findPath(t,n).length}})}(t));if(0===a.length)return!1;var u=!1;try{for(var l=xo(a),c=l.next();!c.done;c=l.next()){var s=So(c.value,2),f=s[0],d=s[1];if(Fv(e.DomEditor.getNodeType(f))){var p=Number(f.lineIndent)||0,h=Math.max(0,Math.min(8,p+n));h!==p?(r.Transforms.setNodes(t,{lineIndent:h>0?h:null},{at:d}),u=!0):u=!0}}}catch(t){o={error:t}}finally{try{c&&!c.done&&(i=l.return)&&i.call(l)}finally{if(o)throw o.error}}return u}function Wv(t){var n=t.selection;if(null==n||r.Range.isExpanded(n))return!1;var o=function(t){return So(r.Editor.nodes(t,{at:t.selection||void 0,match:function(n){return r.Element.isElement(n)&&1===e.DomEditor.findPath(t,n).length},mode:"highest"}),1)[0]||null}(t);if(!o)return!1;var i=So(o,2),a=i[0],u=i[1];if(!Fv(e.DomEditor.getNodeType(a)))return!1;var l=Number(a.lineIndent)||0;if(l<=0)return!1;if(!r.Editor.isStart(t,n.anchor,u))return!1;var c=l-1;return r.Transforms.setNodes(t,{lineIndent:c>0?c:null},{at:u}),!0}qe({target:"Array",stat:!0,forced:Rv},{from:function(t){var e=vt(t),n=un(this),r=arguments.length,o=r>1?arguments[1]:void 0,i=void 0!==o;i&&(o=Ge(o,r>2?arguments[2]:void 0));var a,u,l,c,s,f,d=Xp(e),p=0;if(!d||this==Vv&&Up(d))for(a=xe(e),u=n?new this(a):Vv(a);a>p;p++)f=i?o(e[p],p):e[p],Wr(u,p,f);else for(s=(c=Yp(e,d)).next,u=n?new this:[];!(l=x(s,c)).done;p++)f=i?Bv(c,o,[l.value,p],!0):l.value,Wr(u,p,f);return u.length=p,u}});var Gv={renderStyle:function(t,e){if(!r.Element.isElement(t))return e;var n=t,o=n.indent,i=n.lineIndent,a=e;o&&ga(a,{textIndent:o});var u=Number(i)||0;return u>0&&ga(a,{marginLeft:2*u+"em"}),a},styleToHtml:function(t,e){if(!r.Element.isElement(t))return e;var n=t,o=n.indent,i=n.lineIndent,a=Number(i)||0;if(!o&&a<=0)return e;var u=l.default(e);return o&&u.css("text-indent",o),a>0&&u.css("margin-left",2*a+"em"),ho(u)},preParseHtml:[Ov],parseStyleHtml:function(t,e,n){var o=l.default(t);if(!r.Element.isElement(e))return e;var i=e,a=go(o,"text-indent"),u=parseInt(a,10);a&&u>0&&(i.indent=a);var c=go(o,"margin-left");if(c){var s=parseFloat(c);if(s>0){var f=/em$/i.test(c)?2:32,d=Math.max(1,Math.min(8,Math.round(s/f)));i.lineIndent=d}}return i},menus:[Cv,_v],editorPlugin:function(t){var e=t.handleTab,n=t.handleShiftTab,r=t.deleteBackward,o=t;return o.handleTab=function(){qv(o,1)||e()},o.handleShiftTab=function(){qv(o,-1)||"function"==typeof n&&n()},o.deleteBackward=function(t){Wv(o)||r(t)},o}};var $v=function(){function t(){this.tag="button"}return t.prototype.getValue=function(t){return""},t.prototype.isActive=function(t){return!1},t.prototype.getMatchNode=function(t){var n=So(r.Editor.nodes(t,{match:function(t){var n=e.DomEditor.getNodeType(t);return"paragraph"===n||("blockquote"===n||!!n.startsWith("header"))},universal:!0,mode:"highest"}),1)[0];return null==n?null:n[0]},t.prototype.isDisabled=function(t){return null==t.selection||!!e.DomEditor.getSelectedElems(t).some((function(e){if(r.Editor.isVoid(t,e)&&r.Editor.isBlock(t,e))return!0;var n=e.type;return!!["pre","code"].includes(n)||void 0}))},t}(),Uv=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.title=e.t("justify.left"),n.iconSvg=ui,n}return mo(n,t),n.prototype.exec=function(t,e){r.Transforms.setNodes(t,{textAlign:"left"},{match:function(e){return r.Element.isElement(e)&&!t.isInline(e)}})},n}($v),Kv=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.title=e.t("justify.right"),n.iconSvg=li,n}return mo(n,t),n.prototype.exec=function(t,e){r.Transforms.setNodes(t,{textAlign:"right"},{match:function(e){return r.Element.isElement(e)&&!t.isInline(e)}})},n}($v),Xv=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.title=e.t("justify.center"),n.iconSvg=ci,n}return mo(n,t),n.prototype.exec=function(t,e){r.Transforms.setNodes(t,{textAlign:"center"},{match:function(e){return r.Element.isElement(e)&&!t.isInline(e)}})},n}($v),Jv=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.title=e.t("justify.justify"),n.iconSvg=si,n}return mo(n,t),n.prototype.exec=function(t,e){r.Transforms.setNodes(t,{textAlign:"justify"},{match:function(e){return r.Element.isElement(e)&&!t.isInline(e)}})},n}($v),Yv={renderStyle:function(t,e){if(!r.Element.isElement(t))return e;var n=t.textAlign,o=e;return n&&ga(o,{textAlign:n}),o},styleToHtml:function(t,e){if(!r.Element.isElement(t))return e;var n=t.textAlign;if(!n)return e;var o=l.default(e);return o.css("text-align",n),ho(o)},parseStyleHtml:function(t,e,n){var o=l.default(t);if(!r.Element.isElement(e))return e;var i=e,a=go(o,"text-align");return a&&(i.textAlign=a),i},menus:[{key:"justifyLeft",factory:function(){return new Uv}},{key:"justifyRight",factory:function(){return new Kv}},{key:"justifyCenter",factory:function(){return new Xv}},{key:"justifyJustify",factory:function(){return new Jv}}]};var Qv=function(){function t(){this.title=e.t("lineHeight.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M964 788a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526zM198.93 144.306c6.668-5.798 16.774-5.094 22.573 1.574l122.26 140.582a16 16 0 0 1 3.927 10.5c0 8.836-7.164 16-16 16h-61.8a8 8 0 0 0-8 8v390.077h69.819a16 16 0 0 1 10.502 3.928c6.666 5.8 7.37 15.906 1.57 22.573L221.476 878.123a16 16 0 0 1-1.57 1.57c-6.668 5.8-16.774 5.097-22.574-1.57L75.051 737.538a16 16 0 0 1-3.928-10.5c0-8.837 7.163-16 16-16h69.822V312.96H87.127a16 16 0 0 1-10.502-3.928c-6.666-5.8-7.37-15.906-1.57-22.573l122.303-140.582a16 16 0 0 1 1.572-1.572zM964 465a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526z m0-323a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526z"></path></svg>',this.tag="select",this.width=80}return t.prototype.getOptions=function(t){var n=[],r=t.getMenuConfig("lineHeight").lineHeightList,o=void 0===r?[]:r;n.push({text:e.t("lineHeight.default"),value:""}),o.forEach((function(t){n.push({text:t,value:t})}));var i=this.getValue(t);return n.forEach((function(t){t.value===i?t.selected=!0:delete t.selected})),n},t.prototype.getMatchNode=function(t){var n=So(r.Editor.nodes(t,{match:function(t){var n=e.DomEditor.getNodeType(t);return!!n.startsWith("header")||!!["paragraph","blockquote","list-item"].includes(n)},universal:!0,mode:"highest"}),1)[0];return null==n?null:n[0]},t.prototype.isActive=function(t){return!1},t.prototype.getValue=function(t){var e=this.getMatchNode(t);return null==e?"":r.Element.isElement(e)&&e.lineHeight||""},t.prototype.isDisabled=function(t){return null==t.selection||null==this.getMatchNode(t)},t.prototype.exec=function(t,e){r.Transforms.setNodes(t,{lineHeight:e.toString()},{mode:"highest"})},t}();var Zv={renderStyle:function(t,e){if(!r.Element.isElement(t))return e;var n=t.lineHeight,o=e;return n&&ga(o,{lineHeight:n}),o},styleToHtml:function(t,e){if(!r.Element.isElement(t))return e;var n=t.lineHeight;if(!n)return e;var o=l.default(e);return o.css("line-height",n),ho(o)},parseStyleHtml:function(t,e,n){var o=l.default(t);if(!r.Element.isElement(e))return e;var i=e,a=n.getMenuConfig("lineHeight").lineHeightList,u=void 0===a?[]:a,c=go(o,"line-height");return c&&u.includes(c)&&(i.lineHeight=c),i},menus:[{key:"lineHeight",factory:function(){return new Qv},config:{lineHeightList:["1","1.15","1.5","2","2.5","3"]}}]},tg=function(){function t(){this.title=e.t("undo.redo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M0.00032 576a510.72 510.72 0 0 0 173.344 384l84.672-96A383.136 383.136 0 0 1 128.00032 576C128.00032 363.936 299.93632 192 512.00032 192c106.048 0 202.048 42.976 271.52 112.48L640.00032 448h384V64l-149.984 149.984A510.272 510.272 0 0 0 512.00032 64C229.21632 64 0.00032 293.216 0.00032 576z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(t){return""},t.prototype.isActive=function(t){return!1},t.prototype.isDisabled=function(t){return null==t.selection},t.prototype.exec=function(t,e){"function"==typeof t.redo&&t.redo()},t}(),eg=function(){function t(){this.title=e.t("undo.undo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M512 64A510.272 510.272 0 0 0 149.984 213.984L0.032 64v384h384L240.512 304.48A382.784 382.784 0 0 1 512.032 192c212.064 0 384 171.936 384 384 0 114.688-50.304 217.632-130.016 288l84.672 96a510.72 510.72 0 0 0 173.344-384c0-282.784-229.216-512-512-512z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(t){return""},t.prototype.isActive=function(t){return!1},t.prototype.isDisabled=function(t){return null==t.selection},t.prototype.exec=function(t,e){"function"==typeof t.undo&&t.undo()},t}(),ng={menus:[{key:"redo",factory:function(){return new tg}},{key:"undo",factory:function(){return new eg}}]};var rg={type:"divider",renderElem:function(t,r,o){var i=e.DomEditor.isNodeSelected(o,t);return n.h("div",{props:{contentEditable:!1,className:"w-e-textarea-divider"},dataset:{selected:i?"true":""},style:{},on:{mousedown:function(t){return t.preventDefault()}}},[n.h("hr")])}};var og={type:"divider",elemToHtml:function(t,e){return"<hr/>"}};var ig={selector:"hr:not([data-w-e-type])",parseElemHtml:function(t,e,n){return{type:"divider",children:[{text:""}]}}};var ag=function(){function t(){this.title=e.t("divider.title"),this.iconSvg='<svg viewBox="0 0 1092 1024"><path d="M0 51.2m51.2 0l989.866667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-989.866667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M0 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M819.2 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M409.6 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M0 870.4m51.2 0l989.866667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-989.866667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(){return""},t.prototype.isActive=function(){return!1},t.prototype.isDisabled=function(t){return null==t.selection||!!e.DomEditor.getSelectedElems(t).some((function(n){if(t.isVoid(n))return!0;var r=e.DomEditor.getNodeType(n);return"table"===r||"pre"===r}))},t.prototype.exec=function(t){this.isDisabled(t)||function(t){var n,o,i,a={type:"divider",children:[{text:""}]},u=t.selection,l=null!=(null===(o=null===(n=null==u?void 0:u.anchor)||void 0===n?void 0:n.path)||void 0===o?void 0:o.length)?[u.anchor.path[0]]:null,c=l?e.getEditorNodeAtPath(t,l):null;if(l&&e.isBlankParagraphNode(c)){r.Editor.withoutNormalizing(t,(function(){r.Transforms.removeNodes(t,{at:l});var n=[Math.min(l[0],t.children.length)];r.Transforms.insertNodes(t,a,{at:n});var o=[n[0]+1];try{e.getEditorNodeAtPath(t,o)?t.select(r.Editor.start(t,o)):t.__mdgchTrustedBlockPath=ko([],So(n))}catch(t){}}));try{"function"==typeof t.normalize&&t.normalize()}catch(t){}try{var s=null===(i=t.__mdgchTrustedBlockPath)||void 0===i?void 0:i[0];if(null!=s){var f=e.getEditorNodeAtPath(t,[s+1]),d=e.getEditorNodeAtPath(t,[s]);"divider"===(null==d?void 0:d.type)&&f&&t.select(r.Editor.start(t,[s+1]))}}catch(t){}}else r.Transforms.insertNodes(t,a,{mode:"highest"})}(t)},t}();function ug(t){var n;try{var r=e.DomEditor.getSelectedNodeByType(t,"divider");if(r)if(null==(u=e.DomEditor.findPath(t,r))?void 0:u.length)return u}catch(t){}var o=null==t?void 0:t.selection;if(!(null===(n=null==o?void 0:o.anchor)||void 0===n?void 0:n.path))return null;for(var i=o.anchor.path,a=i.length;a>=1;a--){var u=i.slice(0,a),l=e.getEditorNodeAtPath(t,u);if("divider"===(null==l?void 0:l.type))return u}return null}var lg=function(){function t(){this.title="ๅˆ ้™ค",this.iconSvg=ei,this.tag="button"}return t.prototype.getValue=function(){return""},t.prototype.isActive=function(){return!1},t.prototype.isDisabled=function(t){return null==t.selection||null==ug(t)},t.prototype.exec=function(t){var n,r,o;if(!this.isDisabled(t)){try{null===(o=null===(r=null===(n=e.DomEditor.getHoverbar)||void 0===n?void 0:n.call(e.DomEditor,t))||void 0===r?void 0:r.hideAndClean)||void 0===o||o.call(r)}catch(t){}var i=ug(t);if(null==i?void 0:i.length){var a=e.getEditorNodeAtPath(t,i);a&&"divider"===a.type&&e.replaceBlockWithEmptyLine(t,i,a)}}},t}(),cg={renderElems:[rg],elemsToHtml:[og],parseElemsHtml:[ig],menus:[{key:"divider",factory:function(){return new ag}},{key:"dividerAtCursor",factory:function(){return new ag}},{key:"removeDivider",factory:function(){return new lg}}],editorPlugin:function(t){var n=t.isVoid,o=t.normalizeNode,i=t;return i.isVoid=function(t){return"divider"===t.type||n(t)},i.normalizeNode=function(t){var n=So(t,2),a=n[0],u=n[1];if("divider"!==e.DomEditor.getNodeType(a))return o([a,u]);e.DomEditor.isLastNode(i,a)&&r.Transforms.insertNodes(i,e.DomEditor.genEmptyParagraph(),{at:[u[0]+1]})},i}},sg=new Set(["pre","paragraph","blockquote","header1","header2","header3","header4","header5","header6"]);function fg(t){var n,r;try{var o=e.DomEditor.getSelectedNodeByType(t,"code");if(o){var i=e.DomEditor.getParentNode(t,o);if(i&&"pre"===e.DomEditor.getNodeType(i))return e.DomEditor.findPath(t,i)}}catch(t){}var a=null==t?void 0:t.selection;if(!(null===(r=null===(n=null==a?void 0:a.anchor)||void 0===n?void 0:n.path)||void 0===r?void 0:r.length))return null;var u=[a.anchor.path[0]],l=e.getEditorNodeAtPath(t,u);return l&&"pre"===l.type?u:null}var dg=function(){function t(){this.title=e.t("codeBlock.title"),this.iconSvg='<svg viewBox="0 0 1280 1024"><path d="M832 736l96 96 320-320L928 192l-96 96 224 224zM448 288l-96-96L32 512l320 320 96-96-224-224zM701.312 150.528l69.472 18.944-192 704.032-69.472-18.944 192-704.032z"></path></svg>',this.tag="button"}return t.prototype.getSelectCodeElem=function(t){var n=e.DomEditor.getSelectedNodeByType(t,"code");if(null==n)return null;var r=e.DomEditor.getParentNode(t,n);return null==r||"pre"!==e.DomEditor.getNodeType(r)?null:n},t.prototype.getValue=function(t){var e=this.getSelectCodeElem(t);return null==e?"":e.language||""},t.prototype.isActive=function(t){return!!this.getSelectCodeElem(t)},t.prototype.isDisabled=function(t){return!this.isActive(t)&&!function(t){if(null==t.selection)return!1;try{var n=e.DomEditor.getSelectedElems(t);return!n.some((function(e){return t.isVoid(e)}))&&n.some((function(t){return sg.has(e.DomEditor.getNodeType(t))}))}catch(e){return null!=fg(t)}}(t)},t.prototype.exec=function(t,n){this.isActive(t)?function(t,n){var o=n||fg(t);if(!(null==o?void 0:o.length))return!1;var i=e.getEditorNodeAtPath(t,o);if(!i||"pre"!==i.type)return!1;var a="";try{a=r.Node.string(r.Node.get(t,ko(ko([],So(o)),[0])))}catch(t){a=r.Node.string(i)}var u=String(a).split("\n").map((function(t){return{type:"paragraph",children:[{text:t}]}}));u.length||u.push({type:"paragraph",children:[{text:""}]});try{e.pinEditorScrollDuring(t,(function(){var e,n;r.Transforms.removeNodes(t,{at:o});var i=Math.min(o[0],t.children.length);try{for(var a=xo(u),l=a.next();!l.done;l=a.next()){var c=l.value;r.Transforms.insertNodes(t,c,{at:[i]}),i+=1}}catch(t){e={error:t}}finally{try{l&&!l.done&&(n=a.return)&&n.call(a)}finally{if(e)throw e.error}}try{var s=[Math.min(o[0],t.children.length-1)];t.select({anchor:{path:ko(ko([],So(s)),[0]),offset:0},focus:{path:ko(ko([],So(s)),[0]),offset:0}})}catch(t){}}))}catch(t){return!1}}(t,fg(t)):this.isDisabled(t)||function(t,n){var o,i;if(void 0===n&&(n=""),!t||t.isDestroyed)return!1;var a=Zh(t);if(!a.length){var u=t.selection;if(null===(i=null===(o=null==u?void 0:u.anchor)||void 0===o?void 0:o.path)||void 0===i?void 0:i.length){var l=[u.anchor.path[0]],c=e.getEditorNodeAtPath(t,l);c&&Xh(e.DomEditor.getNodeType(c))&&(a=[[c,l]])}}if(!a.length)return!1;var s=a.map((function(e){var n=So(e,2),o=n[0],i=n[1];try{return r.Node.string(r.Node.get(t,i))}catch(t){return r.Node.string(o)}})),f=s.join("\n"),d=a[0][1][0],p={type:"pre",children:[{type:"code",language:n||"",children:[{text:f}]}]};try{e.pinEditorScrollDuring(t,(function(){r.Editor.withoutNormalizing(t,(function(){for(var n=a.length-1;n>=0;n--){var o=[a[n][1][0]],i=e.getEditorNodeAtPath(t,o);i&&"pre"!==i.type&&r.Transforms.removeNodes(t,{at:o})}var u=[Math.min(d,t.children.length)];r.Transforms.insertNodes(t,p,{at:u});try{t.select(r.Editor.start(t,ko(ko([],So(u)),[0])))}catch(t){}t.__mdgchTrustedBlockPath=ko([],So(u))}))}))}catch(t){return console.warn("[wangeditor] convertSelectionBlockToCodeBlock failed",t),!1}}(t,null!=n?String(n):"")},t}(),pg={key:"codeBlock",factory:function(){return new dg}},hg={key:"codeBlockAtCursor",factory:function(){return new dg}};ur("match",(function(t,e,n){return[function(e){var n=V(this),r=null==e?void 0:ut(e,t);return r?x(r,e,n):new RegExp(e)[t](wn(n))},function(t){var r=Bt(this),o=wn(t),i=n(e,r,o);if(i.done)return i.value;if(!r.global)return Sr(r,o);var a=r.unicode;r.lastIndex=0;for(var u,l=[],c=0;null!==(u=Sr(r,o));){var s=wn(u[0]);l[c]=s,""===s&&(r.lastIndex=hr(o,we(r.lastIndex),a)),c++}return 0===c?null:l}]}));var vg=Wp.getWeakData,gg=le.set,yg=le.getterFor,mg=pn.find,bg=pn.findIndex,Eg=I([].splice),wg=0,xg=function(t){return t.frozen||(t.frozen=new Sg)},Sg=function(){this.entries=[]},kg=function(t,e){return mg(t.entries,(function(t){return t[0]===e}))};Sg.prototype={get:function(t){var e=kg(this,t);if(e)return e[1]},has:function(t){return!!kg(this,t)},set:function(t,e){var n=kg(this,t);n?n[1]=e:this.entries.push([t,e])},delete:function(t){var e=bg(this.entries,(function(e){return e[0]===t}));return~e&&Eg(this.entries,e,1),!!~e}};var Tg,Ng={getConstructor:function(t,e,n,r){var o=t((function(t,o){oh(t,i),gg(t,{type:e,id:wg++,frozen:void 0}),null!=o&&nh(o,t[r],{that:t,AS_ENTRIES:n})})),i=o.prototype,a=yg(e),u=function(t,e,n){var r=a(t),o=vg(Bt(e),!0);return!0===o?xg(r).set(e,n):o[r.id]=n,t};return dh(i,{delete:function(t){var e=a(this);if(!q(t))return!1;var n=vg(t);return!0===n?xg(e).delete(t):n&&yt(n,e.id)&&delete n[e.id]},has:function(t){var e=a(this);if(!q(t))return!1;var n=vg(t);return!0===n?xg(e).has(t):n&&yt(n,e.id)}}),dh(i,n?{get:function(t){var e=a(this);if(q(t)){var n=vg(t);return!0===n?xg(e).get(t):n?n[e.id]:void 0}},set:function(t,e){return u(this,t,e)}}:{add:function(t){return u(this,t,!0)}}),o}},Ag=le.enforce,Dg=!m.ActiveXObject&&"ActiveXObject"in m,Mg=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},Lg=fh("WeakMap",Mg,Ng);if(Jt&&Dg){Tg=Ng.getConstructor(Mg,"WeakMap",!0),Wp.enable();var Pg=Lg.prototype,Ig=I(Pg.delete),Og=I(Pg.has),Hg=I(Pg.get),jg=I(Pg.set);dh(Pg,{delete:function(t){if(q(t)&&!Fp(t)){var e=Ag(this);return e.frozen||(e.frozen=new Tg),Ig(this,t)||e.frozen.delete(t)}return Ig(this,t)},has:function(t){if(q(t)&&!Fp(t)){var e=Ag(this);return e.frozen||(e.frozen=new Tg),Og(this,t)||e.frozen.has(t)}return Og(this,t)},get:function(t){if(q(t)&&!Fp(t)){var e=Ag(this);return e.frozen||(e.frozen=new Tg),Og(this,t)?Hg(this,t):e.frozen.get(t)}return Hg(this,t)},set:function(t,e){if(q(t)&&!Fp(t)){var n=Ag(this);n.frozen||(n.frozen=new Tg),Og(this,t)?jg(this,t,e):n.frozen.set(t,e)}else jg(this,t,e);return this}})}var zg=[{text:"Plain Text",value:""},{text:"CSS",value:"css"},{text:"HTML",value:"html"},{text:"XML",value:"xml"},{text:"Javascript",value:"javascript"},{text:"Typescript",value:"typescript"},{text:"JSX",value:"jsx"},{text:"Go",value:"go"},{text:"PHP",value:"php"},{text:"C",value:"c"},{text:"Python",value:"python"},{text:"Java",value:"java"},{text:"C++",value:"cpp"},{text:"C#",value:"csharp"},{text:"Visual Basic",value:"visual-basic"},{text:"SQL",value:"sql"},{text:"Ruby",value:"ruby"},{text:"Swift",value:"swift"},{text:"Bash",value:"bash"},{text:"Lua",value:"lua"},{text:"Groovy",value:"groovy"},{text:"Markdown",value:"markdown"}],Cg='<svg viewBox="0 0 24 24"><path d="M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z"></path></svg>',_g=new WeakMap;function Bg(t,e,n,o){var i="";try{var a=ko(ko([],So(e)),[0]);i=r.Node.string(r.Node.get(t,a))}catch(t){i=r.Node.string(n)}(function(t){var e;return Eo(this,void 0,void 0,(function(){var n,r,o;return wo(this,(function(i){switch(i.label){case 0:n=null!=t?String(t):"",i.label=1;case 1:return i.trys.push([1,4,,5]),"undefined"!=typeof navigator&&(null===(e=navigator.clipboard)||void 0===e?void 0:e.writeText)?[4,navigator.clipboard.writeText(n)]:[3,3];case 2:return i.sent(),[2,!0];case 3:return[3,5];case 4:return i.sent(),[3,5];case 5:try{return(r=document.createElement("textarea")).value=n,r.setAttribute("readonly",""),r.style.position="fixed",r.style.left="-9999px",r.style.top="0",document.body.appendChild(r),r.select(),o=document.execCommand("copy"),document.body.removeChild(r),[2,o]}catch(t){return[2,!1]}return[2]}}))}))})(i).then((function(t){t&&o&&function(t){var e=_g.get(t);e&&clearTimeout(e),t.setAttribute("data-pre-copy-ok","1"),t.innerHTML='<svg viewBox="0 0 24 24"><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"></path></svg>',t.setAttribute("title","ๅทฒๅคๅˆถ"),t.setAttribute("aria-label","ๅทฒๅคๅˆถ");var n=setTimeout((function(){_g.delete(t),t.isConnected&&(t.removeAttribute("data-pre-copy-ok"),t.innerHTML=Cg,t.setAttribute("title","ๅคๅˆถไปฃ็ "),t.setAttribute("aria-label","ๅคๅˆถไปฃ็ "))}),1600);_g.set(t,n)}(o)}))}var Vg={el:null,anchorEl:null,onDoc:null,onScroll:null,onKey:null};function Rg(){var t=Vg.el,e=Vg.onDoc,n=Vg.onScroll,r=Vg.onKey;e&&document.removeEventListener("mousedown",e,!0),n&&window.removeEventListener("scroll",n,!0),r&&document.removeEventListener("keydown",r,!0),(null==t?void 0:t.parentNode)&&t.parentNode.removeChild(t),Vg={el:null,anchorEl:null,onDoc:null,onScroll:null,onKey:null}}function Fg(t,n,o,i,a){if(t&&!t.isDestroyed&&!t.isDisabled()){var u=e.resolveElemPath(t,n);if(null==u?void 0:u.length)if("enter"!==o)if("cancel-enter"!==o)if("lang"!==o)if("word-wrap"!==o)if("copy"!==o)if("uncode"!==o){if("remove"===o){l=e.getEditorNodeAtPath(t,u)||n;e.replaceBlockWithEmptyLine(t,u,l)}}else{var l=e.getEditorNodeAtPath(t,u)||n;!function(t,n,o){var i="";try{var a=ko(ko([],So(n)),[0]);i=r.Node.string(r.Node.get(t,a))}catch(t){i=r.Node.string(o)}var u=String(i).split("\n").map((function(t){return{type:"paragraph",children:[{text:t}]}}));u.length||u.push({type:"paragraph",children:[{text:""}]});try{e.pinEditorScrollDuring(t,(function(){var e,o;r.Transforms.removeNodes(t,{at:n});var i=Math.min(n[0],t.children.length);try{for(var a=xo(u),l=a.next();!l.done;l=a.next()){var c=l.value;r.Transforms.insertNodes(t,c,{at:[i]}),i+=1}}catch(t){e={error:t}}finally{try{l&&!l.done&&(o=a.return)&&o.call(a)}finally{if(e)throw e.error}}try{var s=[Math.min(n[0],t.children.length-1)];t.select({anchor:{path:ko(ko([],So(s)),[0]),offset:0},focus:{path:ko(ko([],So(s)),[0]),offset:0}})}catch(t){}}))}catch(t){return!1}}(t,u,l)}else{var l=e.getEditorNodeAtPath(t,u)||n;Bg(t,u,l,a)}else{var c=ko(ko([],So(u)),[0]),s=e.getEditorNodeAtPath(t,c);if(!s||"code"!==s.type)return;e.pinEditorScrollDuring(t,(function(){r.Transforms.setNodes(t,{wordWrap:!s.wordWrap},{at:c})}))}else{var f=ko(ko([],So(u)),[0]),d=e.getEditorNodeAtPath(t,f);if(!d||!r.Element.isElement(d)||"code"!==d.type)return;e.pinEditorScrollDuring(t,(function(){r.Transforms.setNodes(t,{language:null!=i?String(i):""},{at:f})}))}else e.removeEmptyLineAboveTopLevelBlock(t,u);else e.insertEmptyLineAboveAtPath(t,u)}}function qg(t,n){var r,o,i=!1,a="",u=!1;try{var l=e.DomEditor.findPath(t,n);i=e.canRemoveEmptyLineAboveBlock(t,l);var c=(o=null===(r=n)||void 0===r?void 0:r.children,Array.isArray(o)&&o.length&&o.find((function(t){var e;return"code"===(null===(e=t)||void 0===e?void 0:e.type)}))||null);a=null!=(null==c?void 0:c.language)?String(c.language):"",u=!!(null==c?void 0:c.wordWrap)}catch(t){}return{canCancelEnter:i,lang:a,wordWrap:u}}function Wg(t){var e,r,o,i=null!=t?String(t):"",a=(r=null!=(e=i)?String(e):"",(null==(o=zg.find((function(t){return t.value===r})))?void 0:o.text)||r||"Plain Text");return n.h("button",{attrs:{type:"button",class:"mdg-pre-lang-btn",title:"่ฏญ่จ€","data-pre-action":"lang-open","data-pre-lang":i,"aria-label":"ไปฃ็ ่ฏญ่จ€","aria-haspopup":"listbox"},props:{contentEditable:!1},on:{mousedown:function(t){t.preventDefault(),t.stopPropagation()}}},[n.h("span",{attrs:{class:"mdg-pre-lang-text"}},[a]),n.h("span",{attrs:{class:"mdg-pre-lang-caret"}},["โ–พ"])])}var Gg={menus:[pg,hg],editorPlugin:function(t){var n=t.insertBreak,o=t.normalizeNode,i=t.insertData,a=t.handleShiftTab,u=t;return u.insertBreak=function(){var t=e.DomEditor.getSelectedNodeByType(u,"code");if(null!=t){var o=function(t,e){var n=e.selection;if(null==n)return"";var o=r.Node.string(t),i=n.anchor.offset,a=o.slice(0,i).split("\n"),u=a.length;return 0===u?"":a[u-1]}(t,u);if(o){var i=o.match(/^\s+/);if(null!=i&&null!=i[0]){var a=i[0];return void u.insertText("\n"+a)}}u.insertText("\n")}else n()},u.handleShiftTab=function(){null!=e.DomEditor.getSelectedNodeByType(u,"code")?function(t){var e=t.selection;if(null!=e&&r.Path.equals(r.Range.start(e).path,r.Range.end(e).path)){var n=r.Range.start(e).path,o=r.Node.get(t,n);if(r.Text.isText(o)){for(var i=o.text,a=r.Range.start(e).offset,u=r.Range.isCollapsed(e)?a:r.Range.end(e).offset,l=[],c=0,s=0;s<=i.length;s++)if(s===i.length||"\n"===i[s]){var f=s;r.Range.isCollapsed(e)?c<=a&&a<=f&&l.push(c):f>a&&c<=u&&l.push(c),c=s+1}for(s=l.length-1;s>=0;s--){var d=l[s],p=i.slice(d).match(/^(?:\t| {1,4})/);if(p){var h=p[0].length;r.Transforms.delete(t,{at:{anchor:{path:n,offset:d},focus:{path:n,offset:d+h}}})}}}}}(u):"function"==typeof a&&a()},u.normalizeNode=function(t){var n=So(t,2),i=n[0],a=n[1],l=e.DomEditor.getNodeType(i);("code"===l&&a.length<=1&&r.Transforms.setNodes(u,{type:"paragraph"},{at:a}),"pre"===l)&&(e.DomEditor.isLastNode(u,i)&&r.Transforms.insertNodes(u,e.DomEditor.genEmptyParagraph(),{at:[a[0]+1]}),"code"!==e.DomEditor.getNodeType(i.children[0])&&(r.Transforms.unwrapNodes(u),r.Transforms.setNodes(u,{type:"paragraph"},{mode:"highest"})));return o([i,a])},u.insertData=function(t){if(null!=e.DomEditor.getSelectedNodeByType(u,"code")){var n=t.getData("text/plain");r.Editor.insertText(u,n)}else i(t)},u},renderElems:[{type:"pre",renderElem:function(t,e,r){var o=null==e?[]:Array.isArray(e)?e:[e];if(r.isDisabled())return n.h("pre",{},o);var i,a=qg(r,t),u=a.canCancelEnter,l=a.lang,c=a.wordWrap,s=n.h("div",{attrs:{class:"mdg-pre-toolbar",contenteditable:"false","data-mdg-pre-toolbar":"1"},props:{contentEditable:!1},on:{mousedown:function(t){t.preventDefault(),t.stopPropagation()},click:function(e){var n,o;e.preventDefault(),e.stopPropagation();var i=e.target,a=null===(n=null==i?void 0:i.closest)||void 0===n?void 0:n.call(i,"button[data-pre-action]"),u=null===(o=null==a?void 0:a.getAttribute)||void 0===o?void 0:o.call(a,"data-pre-action");if(a&&u&&!a.classList.contains("is-disabled"))if("lang-open"!==u)Rg(),Fg(r,t,u,void 0,a);else{var l=a.getAttribute("data-pre-lang")||"";!function(t,e,n,r){var o,i;if(Vg.el&&Vg.anchorEl===t)Rg();else if(Rg(),t&&"undefined"!=typeof document){var a=null!=r?String(r):"",u=document.createElement("div");u.className="mdg-pre-lang-panel",u.setAttribute("contenteditable","false"),u.setAttribute("role","listbox");var l=ko([],So(zg));a&&!l.some((function(t){return t.value===a}))&&l.push({text:a,value:a});var c=function(t){var r=document.createElement("button");r.type="button",r.className="mdg-pre-lang-option"+(t.value===a?" is-selected":""),r.setAttribute("role","option"),r.textContent=t.text,r.addEventListener("mousedown",(function(t){t.preventDefault(),t.stopPropagation()})),r.addEventListener("click",(function(r){r.preventDefault(),r.stopPropagation(),Rg(),Fg(e,n,"lang",t.value)})),u.appendChild(r)};try{for(var s=xo(l),f=s.next();!f.done;f=s.next())c(f.value)}catch(t){o={error:t}}finally{try{f&&!f.done&&(i=s.return)&&i.call(s)}finally{if(o)throw o.error}}document.body.appendChild(u);var d=function(){if(t.isConnected){var e=t.getBoundingClientRect();if(e.bottom<0||e.top>window.innerHeight||e.right<0||e.left>window.innerWidth)Rg();else{var n=window.innerHeight-e.bottom-8,r=e.top-8,o=n<140&&r>n,i=Math.max(96,o?r-4:n-4);u.style.maxHeight=Math.min(240,Math.floor(i))+"px",u.style.minWidth=Math.max(140,Math.round(e.width))+"px";var a=u.offsetWidth||Math.max(140,e.width),l=u.offsetHeight||Math.min(240,i),c=o?Math.max(8,e.top-l-4):e.bottom+4,s=e.left;s+a>window.innerWidth-8&&(s=Math.max(8,window.innerWidth-a-8)),s<8&&(s=8),u.style.top=Math.round(c)+"px",u.style.left=Math.round(s)+"px"}}else Rg()};d(),requestAnimationFrame(d);var p=function(e){var n=e.target;n instanceof globalThis.Node&&(u.contains(n)||t.contains(n))||Rg()},h=function(t){var e=null==t?void 0:t.target;e instanceof globalThis.Node&&(e===u||u.contains(e))||d()},v=function(t){"Escape"===t.key&&(t.preventDefault(),Rg())};Vg={el:u,anchorEl:t,onDoc:p,onScroll:h,onKey:v},requestAnimationFrame((function(){document.addEventListener("mousedown",p,!0),window.addEventListener("scroll",h,!0),document.addEventListener("keydown",v,!0)}))}}(a,r,t,l)}}}},[Wu({action:"enter",title:"ๅ›ž่ฝฆ๏ผˆไธŠๆ–น็ฉบ่กŒ๏ผ‰",iconSvg:$u,actionAttr:"data-pre-action",className:"mdg-pre-btn"}),Wu({action:"cancel-enter",title:"ๅ–ๆถˆๅ›ž่ฝฆ",iconSvg:Uu,actionAttr:"data-pre-action",className:"mdg-pre-btn",disabled:!u}),Wg(l),Gu("mdg-pre-toolbar-spacer"),(i=c,n.h("button",{attrs:{type:"button",class:i?"mdg-pre-wrap-btn is-active":"mdg-pre-wrap-btn",title:"่‡ชๅŠจๆข่กŒ","data-pre-action":"word-wrap","aria-label":"่‡ชๅŠจๆข่กŒ","aria-pressed":i?"true":"false"},props:{contentEditable:!1},on:{mousedown:function(t){t.preventDefault(),t.stopPropagation()}}},[n.h("span",{attrs:{class:"mdg-pre-wrap-label"}},["่‡ชๅŠจๆข่กŒ"]),n.h("span",{attrs:{class:"mdg-pre-wrap-switch"}},[])])),Wu({action:"copy",title:"ๅคๅˆถไปฃ็ ",iconSvg:Cg,actionAttr:"data-pre-action",className:"mdg-pre-btn"}),Wu({action:"uncode",title:"ๅ–ๆถˆไปฃ็ ๅ—",iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M332.288 758.016l-151.552-151.552 151.552-151.552-60.416-60.416-212.992 211.968 212.992 211.968zM691.712 758.016l151.552-151.552-151.552-151.552 60.416-60.416 212.992 211.968-212.992 211.968zM586.752 264.192l-90.112 495.616h-69.632l90.112-495.616z"></path><path d="M198 128l64-64 628 628-64 64z"></path></svg>',actionAttr:"data-pre-action",className:"mdg-pre-btn"}),Wu({action:"remove",title:"ๅˆ ้™ค",iconSvg:Ku,actionAttr:"data-pre-action",className:"mdg-pre-btn"})]);return n.h("pre",{attrs:{class:"mdg-pre-with-toolbar"}},ko([s],So(o)))}},{type:"code",renderElem:function(t,e,r){var o=t,i=o.language,a=void 0===i?"":i,u=o.wordWrap,l=[];a&&l.push("language-"+a),u&&l.push("w-e-code-word-wrap");var c=l.join(" ");return u?n.jsx("code",{className:c,"data-word-wrap":"true"},e):c?n.jsx("code",{className:c},e):n.jsx("code",null,e)}}],elemsToHtml:[{type:"code",elemToHtml:function(t,e){return"<code>"+e+"</code>"}},{type:"pre",elemToHtml:function(t,e){return"<pre>"+e+"</pre>"}}],preParseHtml:[{selector:"pre>code",preParseHtml:function(t){var e=l.default(t);if("code"!==vo(e))return t;var n=e.find("xmp");if(0===n.length)return t;var r=n.text();return n.remove(),e.text(r),e[0]}}],parseElemsHtml:[{selector:"pre:not([data-w-e-type])>code",parseElemHtml:function(t,e,n){return{type:"code",language:"",children:[{text:l.default(t)[0].textContent||""}]}}},{selector:"pre:not([data-w-e-type])",parseElemHtml:function(t,n,r){var o=l.default(t);return 0===(n=n.filter((function(t){return"code"===e.DomEditor.getNodeType(t)}))).length&&(n=[{type:"code",language:"",children:[{text:o[0].textContent||""}]}]),{type:"pre",children:n.filter((function(t){return"code"===e.DomEditor.getNodeType(t)}))}}}]},$g=function(){function t(){this.title=e.t("fullScreen.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M133.705143 335.433143V133.851429h201.581714a29.622857 29.622857 0 0 0 29.622857-29.549715V68.754286a29.622857 29.622857 0 0 0-29.622857-29.622857H61.732571A22.893714 22.893714 0 0 0 38.765714 62.025143V335.725714c0 16.310857 13.238857 29.622857 29.622857 29.622857h35.547429a29.842286 29.842286 0 0 0 29.696-29.842285zM690.980571 133.851429h201.581715v201.654857c0 16.310857 13.238857 29.549714 29.622857 29.549714h35.547428a29.622857 29.622857 0 0 0 29.549715-29.549714V61.952a22.893714 22.893714 0 0 0-22.820572-22.893714h-273.554285a29.622857 29.622857 0 0 0-29.549715 29.622857v35.547428c0 16.310857 13.238857 29.696 29.622857 29.696zM335.286857 892.781714H133.705143V691.2a29.622857 29.622857 0 0 0-29.622857-29.622857H68.534857a29.622857 29.622857 0 0 0-29.549714 29.622857v273.554286c0 12.653714 10.24 22.893714 22.820571 22.893714h273.554286a29.622857 29.622857 0 0 0 29.696-29.622857v-35.547429a29.769143 29.769143 0 0 0-29.769143-29.696z m557.348572-201.581714v201.581714H690.907429a29.622857 29.622857 0 0 0-29.622858 29.622857v35.547429c0 16.310857 13.238857 29.622857 29.622858 29.622857h273.554285c12.580571 0 22.893714-10.313143 22.893715-22.893714V691.2a29.622857 29.622857 0 0 0-29.622858-29.622857h-35.547428a29.622857 29.622857 0 0 0-29.696 29.622857z"></path></svg>',this.tag="button",this.alwaysEnable=!0}return t.prototype.getValue=function(t){return""},t.prototype.isActive=function(t){return t.isFullScreen},t.prototype.isDisabled=function(t){return!1},t.prototype.exec=function(t,e){t.isFullScreen?t.unFullScreen():t.fullScreen()},t}(),Ug={menus:[{key:"fullScreen",factory:function(){return new $g}}]},Kg=function(){function t(){this.title=e.t("common.enter"),this.iconSvg=pi,this.tag="button"}return t.prototype.getValue=function(t){return""},t.prototype.isActive=function(t){return!1},t.prototype.isDisabled=function(t){var e=t.selection;return null==e||!!r.Range.isExpanded(e)},t.prototype.exec=function(t,e){var n=t.selection;if(null!=n){var o=[n.anchor.path[0]];r.Transforms.insertNodes(t,{type:"paragraph",children:[{text:""}]},{at:o}),t.select(r.Editor.start(t,o))}},t}(),Xg={menus:[{key:"enter",factory:function(){return new Kg}}]},Jg=I(N.f),Yg=I([].push),Qg=function(t){return function(e){for(var n,r=R(e),o=An(r),i=o.length,a=0,u=[];i>a;)n=o[a++],E&&!Jg(r,n)||Yg(u,t?[n,r[n]]:r[n]);return u}},Zg={entries:Qg(!0),values:Qg(!1)}.entries;qe({target:"Object",stat:!0},{entries:function(t){return Zg(t)}});var ty=["bold","italic","underline","through","code","sub","sup","color","bgColor","fontSize","fontFamily"],ey={isSelect:!1,formatStyle:null,formatBlockStyle:null,sourceSelKey:""},ny="";function ry(t){try{var n=t?e.DomEditor.getHoverbar(t):null;n&&n.hideAndClean()}catch(t){}"undefined"!=typeof document&&document.querySelectorAll(".w-e-hover-bar").forEach((function(t){t.classList.remove("w-e-bar-show"),t.classList.add("w-e-bar-hidden")}))}function oy(t,e){if("undefined"!=typeof document){document.documentElement.classList.toggle("w-e-format-painter-on",!!t),document.documentElement.classList.toggle("mdg-format-painter-on",!!t);var n=document.querySelector(".editor-content");if(n)if(n.classList.toggle("w-e-format-painter-on",!!t),n.classList.toggle("mdg-format-painter-on",!!t),t){ny="";var r=function(){if(ny)return ny;if("undefined"==typeof document)return"text";try{var t=document.createElement("canvas"),e=Math.min(2,window.devicePixelRatio||1);t.width=22*e,t.height=22*e;var n=t.getContext("2d");if(!n)return"text";n.scale(e,e),n.clearRect(0,0,22,22),n.fillStyle="#111",n.strokeStyle="#111";var r=16.2,o=3.6,i=18.4,a=14,u=11-a/2,l=2.2;n.fillRect(l+3.1,u,2.4,3.4),n.fillRect(l,u+3.4,8.6,3.1),n.lineCap="butt",n.lineWidth=1.35;var c=u+6.5;[[3.1,a-.8],[4.7,a],[6.3,a-.2],[7.9,a-.6],[9.5,a-1.4]].forEach((function(t){var e=So(t,2),r=e[0],o=e[1];n.beginPath(),n.moveTo(r,c),n.lineTo(r,u+o),n.stroke()})),n.lineWidth=1.15,n.beginPath(),n.moveTo(14.1,o),n.lineTo(18.3,o),n.moveTo(r,o),n.lineTo(r,i),n.moveTo(14.1,i),n.lineTo(18.3,i),n.stroke();var s=t.toDataURL("image/png");ny="url("+s+") "+r+" 11, text"}catch(t){ny="text"}return ny}();n.style.setProperty("--w-e-format-painter-cursor",r),n.style.setProperty("--mdg-format-painter-cursor",r),document.documentElement.style.setProperty("--w-e-format-painter-cursor",r),document.documentElement.style.setProperty("--mdg-format-painter-cursor",r),ry(e),[0,50,220,400].forEach((function(t){setTimeout((function(){ey.isSelect&&ry(e)}),t)}))}else n.style.removeProperty("--w-e-format-painter-cursor"),n.style.removeProperty("--mdg-format-painter-cursor"),document.documentElement.style.removeProperty("--w-e-format-painter-cursor"),document.documentElement.style.removeProperty("--mdg-format-painter-cursor");else t||(document.documentElement.style.removeProperty("--w-e-format-painter-cursor"),document.documentElement.style.removeProperty("--mdg-format-painter-cursor"))}}function iy(t){ey.isSelect=!1,ey.formatStyle=null,ey.formatBlockStyle=null,ey.sourceSelKey="",oy(!1,t)}try{"undefined"!=typeof window&&(window.__wEClearFormatPainter=iy)}catch(t){}function ay(t){var e,n;return(null===(e=null==t?void 0:t.anchor)||void 0===e?void 0:e.path)&&(null===(n=null==t?void 0:t.focus)||void 0===n?void 0:n.path)?[t.anchor.path.join("."),t.anchor.offset,t.focus.path.join("."),t.focus.offset].join("|"):""}var uy=function(){function t(){this.title="ๆ ผๅผๅˆท",this.tag="button",this.iconSvg='<svg viewBox="5.2 4.8 14.2 15.2" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M15.1 5.75a.75.75 0 01.75.75v3.3a.75.75 0 01-.75.75H6.9a.75.75 0 01-.75-.75V6.5a.75.75 0 01.75-.75h8.2z" stroke="currentColor" stroke-width="1.5" stroke-linejoin="round"></path><path d="M15.326 8.15h3.141v5.636l-8.4 1.085V19" stroke="currentColor" stroke-width="1.5" stroke-linejoin="round"></path></svg>'}return t.prototype.getValue=function(){return""},t.prototype.isActive=function(){return!!ey.isSelect},t.prototype.isDisabled=function(t){if(ey.isSelect)return!1;if(null==t.selection)return!0;try{var e="function"==typeof t.getSelectionText?t.getSelectionText():"";return!String(e||"").length}catch(t){return!0}},t.prototype.isSourceBlockType=function(t){return"blockquote"===t||"header1"===t||"header2"===t||"header3"===t||"header4"===t||"header5"===t||"header6"===t||"list-item"===t||"todo"===t},t.prototype.isTargetBlockType=function(t){return"paragraph"===t||this.isSourceBlockType(t)},t.prototype.getTopLevelBlockPaths=function(t,e){var n,o,i=[];try{var a=r.Editor.nodes(t,{at:t.selection||void 0,match:function(t){return!!t&&"object"===op(t)&&"type"in t}});try{for(var u=xo(a),l=u.next();!l.done;l=u.next()){var c=So(l.value,2),s=c[0],f=c[1];1===(null==f?void 0:f.length)&&e(s.type)&&i.push(f)}}catch(t){n={error:t}}finally{try{l&&!l.done&&(o=u.return)&&o.call(u)}finally{if(n)throw n.error}}}catch(t){}return i},t.prototype.getSelectedBlockStyle=function(t){var e=this,n=this.getTopLevelBlockPaths(t,(function(t){return e.isSourceBlockType(t)}))[0];if(!n)return null;var o=function(t,e){try{return r.Node.get(t,e)}catch(t){return null}}(t,n);return o&&this.isSourceBlockType(o.type)?"list-item"===o.type?{type:"list-item",ordered:!!o.ordered}:{type:o.type}:null},t.prototype.pickMarks=function(t){var e,n,o=null;try{o=r.Editor.marks(t)}catch(t){o=null}if(!o||"object"!==op(o))return null;var i={};try{for(var a=xo(ty),u=a.next();!u.done;u=a.next()){var l=u.value;null!=o[l]&&!1!==o[l]&&(i[l]=o[l])}}catch(t){e={error:t}}finally{try{u&&!u.done&&(n=a.return)&&n.call(a)}finally{if(e)throw e.error}}return Object.keys(i).length?i:null},t.prototype.unsetListAttrs=function(t,e){try{r.Transforms.unsetNodes(t,["ordered","level","start"],{at:e})}catch(t){}},t.prototype.applyBlockStyle=function(t,e){var n=this,o=this.getTopLevelBlockPaths(t,(function(t){return n.isTargetBlockType(t)}));o.length&&("list-item"!==e.type?"todo"!==e.type?o.forEach((function(o){try{r.Transforms.setNodes(t,{type:e.type},{at:o}),n.unsetListAttrs(t,o),r.Transforms.unsetNodes(t,"checked",{at:o})}catch(t){}})):o.forEach((function(e){try{r.Transforms.setNodes(t,{type:"todo",checked:!1},{at:e}),n.unsetListAttrs(t,e)}catch(t){}})):o.forEach((function(n){try{r.Transforms.setNodes(t,{type:"list-item",ordered:!!e.ordered,level:0},{at:n}),r.Transforms.unsetNodes(t,"checked",{at:n})}catch(t){}})))},t.prototype.applyCopiedFormat=function(t,e){var n,o;void 0===e&&(e={});var i=e.allowPending,a=void 0!==i&&i;if(!ey.isSelect||!t||t.isDestroyed)return"cancel";var u="";try{u="function"==typeof t.getSelectionText?t.getSelectionText():""}catch(t){u=""}u=String(u||"");var l=t.selection,c=ay(l),s=!!c&&c===ey.sourceSelKey;if(!u.length||!l||s)return a?"pending":(iy(t),"cancel");try{if(ey.formatStyle){!function(t){var e,n;if(t&&!t.isDestroyed&&t.selection)try{r.Transforms.unsetNodes(t,ty,{at:t.selection,match:function(t){return"string"==typeof(null==t?void 0:t.text)},split:!0})}catch(r){try{for(var o=xo(ty),i=o.next();!i.done;i=o.next()){var a=i.value;try{t.removeMark(a)}catch(t){}}}catch(t){e={error:t}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}}}(t);try{r.Transforms.setNodes(t,ey.formatStyle,{at:t.selection||l,match:function(t){return"string"==typeof(null==t?void 0:t.text)},split:!0})}catch(e){try{for(var f=xo(Object.entries(ey.formatStyle)),d=f.next();!d.done;d=f.next()){var p=So(d.value,2),h=p[0],v=p[1];try{t.addMark(h,v)}catch(t){}}}catch(t){n={error:t}}finally{try{d&&!d.done&&(o=f.return)&&o.call(f)}finally{if(n)throw n.error}}}}ey.formatBlockStyle&&this.applyBlockStyle(t,ey.formatBlockStyle)}catch(t){console.warn("[wangeditor] formatPainter apply",t)}finally{iy(t)}return"applied"},t.prototype.exec=function(t){if(!this.isDisabled(t))if(ey.isSelect)iy(t);else{var e=this.pickMarks(t),n=this.getSelectedBlockStyle(t);(e||n)&&(ey.formatStyle=e,ey.formatBlockStyle=n,ey.sourceSelKey=ay(t.selection),ey.isSelect=!0,oy(!0,t),ry(t))}},t}();var ly=[xi,xa,gv,{menus:[{key:"formatPainter",factory:function(){return new uy}}],editorPlugin:function(t){if(t.__wFormatPainterPatched)return t;t.__wFormatPainterPatched=!0;var e=new uy,n=!1,r=0,o=!1,i=function(){n&&(n=!1,document.removeEventListener("pointerup",a,!1),document.removeEventListener("mouseup",a,!1))},a=function(n){var a,u;if(i(),ey.isSelect&&!t.isDestroyed){var l=null===(a=n)||void 0===a?void 0:a.target;l instanceof Element&&(null===(u=l.closest)||void 0===u?void 0:u.call(l,'button[data-menu-key="formatPainter"]'))||function(){if(!o){o=!0,r&&(clearTimeout(r),r=0);var n=0,i=function i(){if(r=0,ey.isSelect&&!t.isDestroyed){try{if("pending"===e.applyCopiedFormat(t,{allowPending:n<8}))return n+=1,void(r=window.setTimeout(i,n<3?16:32))}catch(e){iy(t)}o=!1}else o=!1};requestAnimationFrame((function(){requestAnimationFrame(i)}))}}()}},u=function(e){var r,o;if(ey.isSelect&&!t.isDestroyed){var i=null===(r=e)||void 0===r?void 0:r.target;i instanceof Element&&(null===(o=i.closest)||void 0===o?void 0:o.call(i,'button[data-menu-key="formatPainter"]'))||ey.isSelect&&!t.isDestroyed&&(n||(n=!0,document.addEventListener("pointerup",a,!1),document.addEventListener("mouseup",a,!1)))}},l=function(e){"Escape"===e.key&&ey.isSelect&&(e.preventDefault(),e.stopPropagation(),iy(t))};return document.addEventListener("pointerdown",u,!0),document.addEventListener("keydown",l,!0),t.on("destroyed",(function(){r&&clearTimeout(r),i(),document.removeEventListener("pointerdown",u,!0),document.removeEventListener("keydown",l,!0),iy(t)})),t}},Gv,Yv,Zv,Cu,cg,ov,Za,Gg,nv,fa,No,Vu,ng,Ug,Xg];t.default=ly,t.insertImageNode=Eu,t.isInsertImageMenuDisabled=xu,t.setLinkHoverHrefGetter=function(t){$a=t},t.updateImageNode=wu,Object.defineProperty(t,"__esModule",{value:!0})}));
1
+ !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@mnykj/alleditor-core"),require("snabbdom"),require("slate"),require("dom7"),require("nanoid"),require("lodash.throttle")):"function"==typeof define&&define.amd?define(["exports","@mnykj/alleditor-core","snabbdom","slate","dom7","nanoid","lodash.throttle"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).WangEditorBasicModules={},t.alleditorCore,t.snabbdom,t.slate,t.$,t.nanoid,t.throttle)}(this,(function(t,e,n,r,o,i,a){"use strict";function u(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var l=u(o),c=u(a);e.i18nAddResources("en",{common:{ok:"OK",delete:"Delete",enter:"Enter",enterAbove:"Enter (blank line above)",cancelEnter:"Cancel enter"},blockQuote:{title:"Quote"},codeBlock:{title:"Code block"},color:{color:"Font color",bgColor:"Back color",default:"Default color",clear:"Clear back color"},divider:{title:"Divider"},emotion:{title:"Emotion"},fontSize:{title:"Font size",default:"Default"},fontFamily:{title:"Font family",default:"Default"},fullScreen:{title:"Full screen"},header:{title:"Header",text:"Text"},image:{netImage:"Net image",delete:"Delete image",edit:"Edit image",viewLink:"View link",src:"Image src",desc:"Description",link:"Image link"},indent:{decrease:"Decrease",increase:"Increase"},justify:{left:"Left",right:"Right",center:"Center",justify:"Justify"},lineHeight:{title:"Line height",default:"Default"},link:{insert:"Insert link",text:"Link text",url:"Link source",unLink:"Unlink",edit:"Edit link",view:"View link"},textStyle:{bold:"Bold",clear:"Clear styles",code:"Inline code",italic:"Italic",sub:"Sub",sup:"Sup",through:"Through",underline:"Underline"},undo:{undo:"undo",redo:"Redo"},todo:{todo:"Todo"}}),e.i18nAddResources("zh-CN",{common:{ok:"็กฎๅฎš",delete:"ๅˆ ้™ค",enter:"ๅ›ž่ฝฆ",enterAbove:"ๅ›ž่ฝฆ๏ผˆไธŠๆ–น็ฉบ่กŒ๏ผ‰",cancelEnter:"ๅ–ๆถˆๅ›ž่ฝฆ"},blockQuote:{title:"ๅผ•็”จ"},codeBlock:{title:"ไปฃ็ ๅ—"},color:{color:"ๆ–‡ๅญ—้ขœ่‰ฒ",bgColor:"่ƒŒๆ™ฏ่‰ฒ",default:"้ป˜่ฎค้ขœ่‰ฒ",clear:"ๆธ…้™ค่ƒŒๆ™ฏ่‰ฒ"},divider:{title:"ๅˆ†ๅ‰ฒ็บฟ"},emotion:{title:"่กจๆƒ…"},fontSize:{title:"ๅญ—ๅท",default:"้ป˜่ฎคๅญ—ๅท"},fontFamily:{title:"ๅญ—ไฝ“",default:"้ป˜่ฎคๅญ—ไฝ“"},fullScreen:{title:"ๅ…จๅฑ"},header:{title:"ๆ ‡้ข˜",text:"ๆญฃๆ–‡"},image:{netImage:"็ฝ‘็ปœๅ›พ็‰‡",delete:"ๅˆ ้™คๅ›พ็‰‡",edit:"็ผ–่พ‘ๅ›พ็‰‡",viewLink:"ๆŸฅ็œ‹้“พๆŽฅ",src:"ๅ›พ็‰‡ๅœฐๅ€",desc:"ๅ›พ็‰‡ๆ่ฟฐ",link:"ๅ›พ็‰‡้“พๆŽฅ"},indent:{decrease:"ๅ‡ๅฐ‘็ผฉ่ฟ›",increase:"ๅขžๅŠ ็ผฉ่ฟ›"},justify:{left:"ๅทฆๅฏน้ฝ",right:"ๅณๅฏน้ฝ",center:"ๅฑ…ไธญๅฏน้ฝ",justify:"ไธค็ซฏๅฏน้ฝ"},lineHeight:{title:"่กŒ้ซ˜",default:"้ป˜่ฎค่กŒ้ซ˜"},link:{insert:"ๆ’ๅ…ฅ้“พๆŽฅ",text:"้“พๆŽฅๆ–‡ๆœฌ",url:"้“พๆŽฅๅœฐๅ€",unLink:"ๅ–ๆถˆ้“พๆŽฅ",edit:"ไฟฎๆ”น้“พๆŽฅ",view:"ๆŸฅ็œ‹้“พๆŽฅ"},textStyle:{bold:"็ฒ—ไฝ“",clear:"ๆธ…้™คๆ ผๅผ",code:"่กŒๅ†…ไปฃ็ ",italic:"ๆ–œไฝ“",sub:"ไธ‹ๆ ‡",sup:"ไธŠๆ ‡",through:"ๅˆ ้™ค็บฟ",underline:"ไธ‹ๅˆ’็บฟ"},undo:{undo:"ๆ’ค้”€",redo:"้‡ๅš"},todo:{todo:"ๅพ…ๅŠž"}});var s={type:"paragraph",renderElem:function(t,e,r){return n.jsx("p",null,e)}};var f={type:"paragraph",elemToHtml:function(t,e){return""===e?"<p><br></p>":"<p>"+e+"</p>"}},d="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function p(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function h(t){var e={exports:{}};return t(e,e.exports),e.exports}var v,g,y=function(t){return t&&t.Math==Math&&t},m=y("object"==typeof globalThis&&globalThis)||y("object"==typeof window&&window)||y("object"==typeof self&&self)||y("object"==typeof d&&d)||function(){return this}()||Function("return this")(),b=function(t){try{return!!t()}catch(t){return!0}},E=!b((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),w=Function.prototype.call,x=w.bind?w.bind(w):function(){return w.apply(w,arguments)},S={}.propertyIsEnumerable,k=Object.getOwnPropertyDescriptor,T=k&&!S.call({1:2},1)?function(t){var e=k(this,t);return!!e&&e.enumerable}:S,N={f:T},A=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},D=Function.prototype,M=D.bind,L=D.call,P=M&&M.bind(L),I=M?function(t){return t&&P(L,t)}:function(t){return t&&function(){return L.apply(t,arguments)}},O=I({}.toString),H=I("".slice),j=function(t){return H(O(t),8,-1)},z=m.Object,C=I("".split),_=b((function(){return!z("z").propertyIsEnumerable(0)}))?function(t){return"String"==j(t)?C(t,""):z(t)}:z,B=m.TypeError,V=function(t){if(null==t)throw B("Can't call method on "+t);return t},R=function(t){return _(V(t))},F=function(t){return"function"==typeof t},q=function(t){return"object"==typeof t?null!==t:F(t)},W=function(t){return F(t)?t:void 0},G=function(t,e){return arguments.length<2?W(m[t]):m[t]&&m[t][e]},$=I({}.isPrototypeOf),U=G("navigator","userAgent")||"",K=m.process,X=m.Deno,J=K&&K.versions||X&&X.version,Y=J&&J.v8;Y&&(g=(v=Y.split("."))[0]>0&&v[0]<4?1:+(v[0]+v[1])),!g&&U&&(!(v=U.match(/Edge\/(\d+)/))||v[1]>=74)&&(v=U.match(/Chrome\/(\d+)/))&&(g=+v[1]);var Q=g,Z=!!Object.getOwnPropertySymbols&&!b((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&Q&&Q<41})),tt=Z&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,et=m.Object,nt=tt?function(t){return"symbol"==typeof t}:function(t){var e=G("Symbol");return F(e)&&$(e.prototype,et(t))},rt=m.String,ot=function(t){try{return rt(t)}catch(t){return"Object"}},it=m.TypeError,at=function(t){if(F(t))return t;throw it(ot(t)+" is not a function")},ut=function(t,e){var n=t[e];return null==n?void 0:at(n)},lt=m.TypeError,ct=Object.defineProperty,st=function(t,e){try{ct(m,t,{value:e,configurable:!0,writable:!0})}catch(n){m[t]=e}return e},ft="__core-js_shared__",dt=m[ft]||st(ft,{}),pt=h((function(t){(t.exports=function(t,e){return dt[t]||(dt[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"ยฉ 2021 Denis Pushkarev (zloirock.ru)"})})),ht=m.Object,vt=function(t){return ht(V(t))},gt=I({}.hasOwnProperty),yt=Object.hasOwn||function(t,e){return gt(vt(t),e)},mt=0,bt=Math.random(),Et=I(1..toString),wt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+Et(++mt+bt,36)},xt=pt("wks"),St=m.Symbol,kt=St&&St.for,Tt=tt?St:St&&St.withoutSetter||wt,Nt=function(t){if(!yt(xt,t)||!Z&&"string"!=typeof xt[t]){var e="Symbol."+t;Z&&yt(St,t)?xt[t]=St[t]:xt[t]=tt&&kt?kt(e):Tt(e)}return xt[t]},At=m.TypeError,Dt=Nt("toPrimitive"),Mt=function(t,e){if(!q(t)||nt(t))return t;var n,r=ut(t,Dt);if(r){if(void 0===e&&(e="default"),n=x(r,t,e),!q(n)||nt(n))return n;throw At("Can't convert object to primitive value")}return void 0===e&&(e="number"),function(t,e){var n,r;if("string"===e&&F(n=t.toString)&&!q(r=x(n,t)))return r;if(F(n=t.valueOf)&&!q(r=x(n,t)))return r;if("string"!==e&&F(n=t.toString)&&!q(r=x(n,t)))return r;throw lt("Can't convert object to primitive value")}(t,e)},Lt=function(t){var e=Mt(t,"string");return nt(e)?e:e+""},Pt=m.document,It=q(Pt)&&q(Pt.createElement),Ot=function(t){return It?Pt.createElement(t):{}},Ht=!E&&!b((function(){return 7!=Object.defineProperty(Ot("div"),"a",{get:function(){return 7}}).a})),jt=Object.getOwnPropertyDescriptor,zt={f:E?jt:function(t,e){if(t=R(t),e=Lt(e),Ht)try{return jt(t,e)}catch(t){}if(yt(t,e))return A(!x(N.f,t,e),t[e])}},Ct=m.String,_t=m.TypeError,Bt=function(t){if(q(t))return t;throw _t(Ct(t)+" is not an object")},Vt=m.TypeError,Rt=Object.defineProperty,Ft={f:E?Rt:function(t,e,n){if(Bt(t),e=Lt(e),Bt(n),Ht)try{return Rt(t,e,n)}catch(t){}if("get"in n||"set"in n)throw Vt("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},qt=E?function(t,e,n){return Ft.f(t,e,A(1,n))}:function(t,e,n){return t[e]=n,t},Wt=I(Function.toString);F(dt.inspectSource)||(dt.inspectSource=function(t){return Wt(t)});var Gt,$t,Ut,Kt=dt.inspectSource,Xt=m.WeakMap,Jt=F(Xt)&&/native code/.test(Kt(Xt)),Yt=pt("keys"),Qt=function(t){return Yt[t]||(Yt[t]=wt(t))},Zt={},te="Object already initialized",ee=m.TypeError,ne=m.WeakMap;if(Jt||dt.state){var re=dt.state||(dt.state=new ne),oe=I(re.get),ie=I(re.has),ae=I(re.set);Gt=function(t,e){if(ie(re,t))throw new ee(te);return e.facade=t,ae(re,t,e),e},$t=function(t){return oe(re,t)||{}},Ut=function(t){return ie(re,t)}}else{var ue=Qt("state");Zt[ue]=!0,Gt=function(t,e){if(yt(t,ue))throw new ee(te);return e.facade=t,qt(t,ue,e),e},$t=function(t){return yt(t,ue)?t[ue]:{}},Ut=function(t){return yt(t,ue)}}var le={set:Gt,get:$t,has:Ut,enforce:function(t){return Ut(t)?$t(t):Gt(t,{})},getterFor:function(t){return function(e){var n;if(!q(e)||(n=$t(e)).type!==t)throw ee("Incompatible receiver, "+t+" required");return n}}},ce=Function.prototype,se=E&&Object.getOwnPropertyDescriptor,fe=yt(ce,"name"),de={EXISTS:fe,PROPER:fe&&"something"===function(){}.name,CONFIGURABLE:fe&&(!E||E&&se(ce,"name").configurable)},pe=h((function(t){var e=de.CONFIGURABLE,n=le.get,r=le.enforce,o=String(String).split("String");(t.exports=function(t,n,i,a){var u,l=!!a&&!!a.unsafe,c=!!a&&!!a.enumerable,s=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;F(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!yt(i,"name")||e&&i.name!==f)&&qt(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),t!==m?(l?!s&&t[n]&&(c=!0):delete t[n],c?t[n]=i:qt(t,n,i)):c?t[n]=i:st(n,i)})(Function.prototype,"toString",(function(){return F(this)&&n(this).source||Kt(this)}))})),he=Math.ceil,ve=Math.floor,ge=function(t){var e=+t;return e!=e||0===e?0:(e>0?ve:he)(e)},ye=Math.max,me=Math.min,be=function(t,e){var n=ge(t);return n<0?ye(n+e,0):me(n,e)},Ee=Math.min,we=function(t){return t>0?Ee(ge(t),9007199254740991):0},xe=function(t){return we(t.length)},Se=function(t){return function(e,n,r){var o,i=R(e),a=xe(i),u=be(r,a);if(t&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===n)return t||u||0;return!t&&-1}},ke={includes:Se(!0),indexOf:Se(!1)},Te=ke.indexOf,Ne=I([].push),Ae=function(t,e){var n,r=R(t),o=0,i=[];for(n in r)!yt(Zt,n)&&yt(r,n)&&Ne(i,n);for(;e.length>o;)yt(r,n=e[o++])&&(~Te(i,n)||Ne(i,n));return i},De=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Me=De.concat("length","prototype"),Le={f:Object.getOwnPropertyNames||function(t){return Ae(t,Me)}},Pe={f:Object.getOwnPropertySymbols},Ie=I([].concat),Oe=G("Reflect","ownKeys")||function(t){var e=Le.f(Bt(t)),n=Pe.f;return n?Ie(e,n(t)):e},He=function(t,e){for(var n=Oe(e),r=Ft.f,o=zt.f,i=0;i<n.length;i++){var a=n[i];yt(t,a)||r(t,a,o(e,a))}},je=/#|\.prototype\./,ze=function(t,e){var n=_e[Ce(t)];return n==Ve||n!=Be&&(F(e)?b(e):!!e)},Ce=ze.normalize=function(t){return String(t).replace(je,".").toLowerCase()},_e=ze.data={},Be=ze.NATIVE="N",Ve=ze.POLYFILL="P",Re=ze,Fe=zt.f,qe=function(t,e){var n,r,o,i,a,u=t.target,l=t.global,c=t.stat;if(n=l?m:c?m[u]||st(u,{}):(m[u]||{}).prototype)for(r in e){if(i=e[r],o=t.noTargetGet?(a=Fe(n,r))&&a.value:n[r],!Re(l?r:u+(c?".":"#")+r,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;He(i,o)}(t.sham||o&&o.sham)&&qt(i,"sham",!0),pe(n,r,i,t)}},We=I(I.bind),Ge=function(t,e){return at(t),void 0===e?t:We?We(t,e):function(){return t.apply(e,arguments)}},$e=Array.isArray||function(t){return"Array"==j(t)},Ue={};Ue[Nt("toStringTag")]="z";var Ke="[object z]"===String(Ue),Xe=Nt("toStringTag"),Je=m.Object,Ye="Arguments"==j(function(){return arguments}()),Qe=Ke?j:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Je(t),Xe))?n:Ye?j(e):"Object"==(r=j(e))&&F(e.callee)?"Arguments":r},Ze=function(){},tn=[],en=G("Reflect","construct"),nn=/^\s*(?:class|function)\b/,rn=I(nn.exec),on=!nn.exec(Ze),an=function(t){if(!F(t))return!1;try{return en(Ze,tn,t),!0}catch(t){return!1}},un=!en||b((function(){var t;return an(an.call)||!an(Object)||!an((function(){t=!0}))||t}))?function(t){if(!F(t))return!1;switch(Qe(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return on||!!rn(nn,Kt(t))}:an,ln=Nt("species"),cn=m.Array,sn=function(t,e){return new(function(t){var e;return $e(t)&&(e=t.constructor,(un(e)&&(e===cn||$e(e.prototype))||q(e)&&null===(e=e[ln]))&&(e=void 0)),void 0===e?cn:e}(t))(0===e?0:e)},fn=I([].push),dn=function(t){var e=1==t,n=2==t,r=3==t,o=4==t,i=6==t,a=7==t,u=5==t||i;return function(l,c,s,f){for(var d,p,h=vt(l),v=_(h),g=Ge(c,s),y=xe(v),m=0,b=f||sn,E=e?b(l,y):n||a?b(l,0):void 0;y>m;m++)if((u||m in v)&&(p=g(d=v[m],m,h),t))if(e)E[m]=p;else if(p)switch(t){case 3:return!0;case 5:return d;case 6:return m;case 2:fn(E,d)}else switch(t){case 4:return!1;case 7:fn(E,d)}return i?-1:r||o?o:E}},pn={forEach:dn(0),map:dn(1),filter:dn(2),some:dn(3),every:dn(4),find:dn(5),findIndex:dn(6),filterReject:dn(7)},hn=Nt("species"),vn=function(t){return Q>=51||!b((function(){var e=[];return(e.constructor={})[hn]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},gn=pn.filter,yn=vn("filter");qe({target:"Array",proto:!0,forced:!yn},{filter:function(t){return gn(this,t,arguments.length>1?arguments[1]:void 0)}});var mn=Ke?{}.toString:function(){return"[object "+Qe(this)+"]"};Ke||pe(Object.prototype,"toString",mn,{unsafe:!0});var bn,En=m.String,wn=function(t){if("Symbol"===Qe(t))throw TypeError("Cannot convert a Symbol value to a string");return En(t)},xn=function(){var t=Bt(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},Sn=m.RegExp,kn=b((function(){var t=Sn("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),Tn=kn||b((function(){return!Sn("a","y").sticky})),Nn={BROKEN_CARET:kn||b((function(){var t=Sn("^r","gy");return t.lastIndex=2,null!=t.exec("str")})),MISSED_STICKY:Tn,UNSUPPORTED_Y:kn},An=Object.keys||function(t){return Ae(t,De)},Dn=E?Object.defineProperties:function(t,e){Bt(t);for(var n,r=R(e),o=An(e),i=o.length,a=0;i>a;)Ft.f(t,n=o[a++],r[n]);return t},Mn=G("document","documentElement"),Ln=Qt("IE_PROTO"),Pn=function(){},In=function(t){return"<script>"+t+"</"+"script>"},On=function(t){t.write(In("")),t.close();var e=t.parentWindow.Object;return t=null,e},Hn=function(){try{bn=new ActiveXObject("htmlfile")}catch(t){}var t,e;Hn="undefined"!=typeof document?document.domain&&bn?On(bn):((e=Ot("iframe")).style.display="none",Mn.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(In("document.F=Object")),t.close(),t.F):On(bn);for(var n=De.length;n--;)delete Hn.prototype[De[n]];return Hn()};Zt[Ln]=!0;var jn,zn,Cn=Object.create||function(t,e){var n;return null!==t?(Pn.prototype=Bt(t),n=new Pn,Pn.prototype=null,n[Ln]=t):n=Hn(),void 0===e?n:Dn(n,e)},_n=m.RegExp,Bn=b((function(){var t=_n(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)})),Vn=m.RegExp,Rn=b((function(){var t=Vn("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})),Fn=le.get,qn=pt("native-string-replace",String.prototype.replace),Wn=RegExp.prototype.exec,Gn=Wn,$n=I("".charAt),Un=I("".indexOf),Kn=I("".replace),Xn=I("".slice),Jn=(zn=/b*/g,x(Wn,jn=/a/,"a"),x(Wn,zn,"a"),0!==jn.lastIndex||0!==zn.lastIndex),Yn=Nn.BROKEN_CARET,Qn=void 0!==/()??/.exec("")[1];(Jn||Qn||Yn||Bn||Rn)&&(Gn=function(t){var e,n,r,o,i,a,u,l=this,c=Fn(l),s=wn(t),f=c.raw;if(f)return f.lastIndex=l.lastIndex,e=x(Gn,f,s),l.lastIndex=f.lastIndex,e;var d=c.groups,p=Yn&&l.sticky,h=x(xn,l),v=l.source,g=0,y=s;if(p&&(h=Kn(h,"y",""),-1===Un(h,"g")&&(h+="g"),y=Xn(s,l.lastIndex),l.lastIndex>0&&(!l.multiline||l.multiline&&"\n"!==$n(s,l.lastIndex-1))&&(v="(?: "+v+")",y=" "+y,g++),n=new RegExp("^(?:"+v+")",h)),Qn&&(n=new RegExp("^"+v+"$(?!\\s)",h)),Jn&&(r=l.lastIndex),o=x(Wn,p?n:l,y),p?o?(o.input=Xn(o.input,g),o[0]=Xn(o[0],g),o.index=l.lastIndex,l.lastIndex+=o[0].length):l.lastIndex=0:Jn&&o&&(l.lastIndex=l.global?o.index+o[0].length:r),Qn&&o&&o.length>1&&x(qn,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=Cn(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var Zn=Gn;qe({target:"RegExp",proto:!0,forced:/./.exec!==Zn},{exec:Zn});var tr=Function.prototype,er=tr.apply,nr=tr.bind,rr=tr.call,or="object"==typeof Reflect&&Reflect.apply||(nr?rr.bind(er):function(){return rr.apply(er,arguments)}),ir=Nt("species"),ar=RegExp.prototype,ur=function(t,e,n,r){var o=Nt(t),i=!b((function(){var e={};return e[o]=function(){return 7},7!=""[t](e)})),a=i&&!b((function(){var e=!1,n=/a/;return"split"===t&&((n={}).constructor={},n.constructor[ir]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return e=!0,null},n[o](""),!e}));if(!i||!a||n){var u=I(/./[o]),l=e(o,""[t],(function(t,e,n,r,o){var a=I(t),l=e.exec;return l===Zn||l===ar.exec?i&&!o?{done:!0,value:u(e,n,r)}:{done:!0,value:a(n,e,r)}:{done:!1}}));pe(String.prototype,t,l[0]),pe(ar,o,l[1])}r&&qt(ar[o],"sham",!0)},lr=I("".charAt),cr=I("".charCodeAt),sr=I("".slice),fr=function(t){return function(e,n){var r,o,i=wn(V(e)),a=ge(n),u=i.length;return a<0||a>=u?t?"":void 0:(r=cr(i,a))<55296||r>56319||a+1===u||(o=cr(i,a+1))<56320||o>57343?t?lr(i,a):r:t?sr(i,a,a+2):o-56320+(r-55296<<10)+65536}},dr={codeAt:fr(!1),charAt:fr(!0)},pr=dr.charAt,hr=function(t,e,n){return e+(n?pr(t,e).length:1)},vr=Math.floor,gr=I("".charAt),yr=I("".replace),mr=I("".slice),br=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Er=/\$([$&'`]|\d{1,2})/g,wr=function(t,e,n,r,o,i){var a=n+t.length,u=r.length,l=Er;return void 0!==o&&(o=vt(o),l=br),yr(i,l,(function(i,l){var c;switch(gr(l,0)){case"$":return"$";case"&":return t;case"`":return mr(e,0,n);case"'":return mr(e,a);case"<":c=o[mr(l,1,-1)];break;default:var s=+l;if(0===s)return i;if(s>u){var f=vr(s/10);return 0===f?i:f<=u?void 0===r[f-1]?gr(l,1):r[f-1]+gr(l,1):i}c=r[s-1]}return void 0===c?"":c}))},xr=m.TypeError,Sr=function(t,e){var n=t.exec;if(F(n)){var r=x(n,t,e);return null!==r&&Bt(r),r}if("RegExp"===j(t))return x(Zn,t,e);throw xr("RegExp#exec called on incompatible receiver")},kr=Nt("replace"),Tr=Math.max,Nr=Math.min,Ar=I([].concat),Dr=I([].push),Mr=I("".indexOf),Lr=I("".slice),Pr="$0"==="a".replace(/./,"$0"),Ir=!!/./[kr]&&""===/./[kr]("a","$0");ur("replace",(function(t,e,n){var r=Ir?"$":"$0";return[function(t,n){var r=V(this),o=null==t?void 0:ut(t,kr);return o?x(o,t,r,n):x(e,wn(r),t,n)},function(t,o){var i=Bt(this),a=wn(t);if("string"==typeof o&&-1===Mr(o,r)&&-1===Mr(o,"$<")){var u=n(e,i,a,o);if(u.done)return u.value}var l=F(o);l||(o=wn(o));var c=i.global;if(c){var s=i.unicode;i.lastIndex=0}for(var f=[];;){var d=Sr(i,a);if(null===d)break;if(Dr(f,d),!c)break;""===wn(d[0])&&(i.lastIndex=hr(a,we(i.lastIndex),s))}for(var p,h="",v=0,g=0;g<f.length;g++){for(var y=wn((d=f[g])[0]),m=Tr(Nr(ge(d.index),a.length),0),b=[],E=1;E<d.length;E++)Dr(b,void 0===(p=d[E])?p:String(p));var w=d.groups;if(l){var x=Ar([y],b,m,a);void 0!==w&&Dr(x,w);var S=wn(or(o,void 0,x))}else S=wr(y,a,m,b,w,o);m>=v&&(h+=Lr(a,v,m)+S,v=m+y.length)}return h+Lr(a,v)}]}),!!b((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}))||!Pr||Ir);var Or=Nt("unscopables"),Hr=Array.prototype;null==Hr[Or]&&Ft.f(Hr,Or,{configurable:!0,value:Cn(null)});var jr=function(t){Hr[Or][t]=!0},zr=pn.find,Cr="find",_r=!0;Cr in[]&&Array(1).find((function(){_r=!1})),qe({target:"Array",proto:!0,forced:_r},{find:function(t){return zr(this,t,arguments.length>1?arguments[1]:void 0)}}),jr(Cr);var Br=Nt("match"),Vr=function(t){var e;return q(t)&&(void 0!==(e=t[Br])?!!e:"RegExp"==j(t))},Rr=m.TypeError,Fr=Nt("species"),qr=function(t,e){var n,r=Bt(t).constructor;return void 0===r||null==(n=Bt(r)[Fr])?e:function(t){if(un(t))return t;throw Rr(ot(t)+" is not a constructor")}(n)},Wr=function(t,e,n){var r=Lt(e);r in t?Ft.f(t,r,A(0,n)):t[r]=n},Gr=m.Array,$r=Math.max,Ur=function(t,e,n){for(var r=xe(t),o=be(e,r),i=be(void 0===n?r:n,r),a=Gr($r(i-o,0)),u=0;o<i;o++,u++)Wr(a,u,t[o]);return a.length=u,a},Kr=Nn.UNSUPPORTED_Y,Xr=4294967295,Jr=Math.min,Yr=[].push,Qr=I(/./.exec),Zr=I(Yr),to=I("".slice),eo=!b((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}));ur("split",(function(t,e,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,n){var r=wn(V(this)),o=void 0===n?Xr:n>>>0;if(0===o)return[];if(void 0===t)return[r];if(!Vr(t))return x(e,r,t,o);for(var i,a,u,l=[],c=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),s=0,f=new RegExp(t.source,c+"g");(i=x(Zn,f,r))&&!((a=f.lastIndex)>s&&(Zr(l,to(r,s,i.index)),i.length>1&&i.index<r.length&&or(Yr,l,Ur(i,1)),u=i[0].length,s=a,l.length>=o));)f.lastIndex===i.index&&f.lastIndex++;return s===r.length?!u&&Qr(f,"")||Zr(l,""):Zr(l,to(r,s)),l.length>o?Ur(l,0,o):l}:"0".split(void 0,0).length?function(t,n){return void 0===t&&0===n?[]:x(e,this,t,n)}:e,[function(e,n){var o=V(this),i=null==e?void 0:ut(e,t);return i?x(i,e,o,n):x(r,wn(o),e,n)},function(t,o){var i=Bt(this),a=wn(t),u=n(r,i,a,o,r!==e);if(u.done)return u.value;var l=qr(i,RegExp),c=i.unicode,s=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(Kr?"g":"y"),f=new l(Kr?"^(?:"+i.source+")":i,s),d=void 0===o?Xr:o>>>0;if(0===d)return[];if(0===a.length)return null===Sr(f,a)?[a]:[];for(var p=0,h=0,v=[];h<a.length;){f.lastIndex=Kr?0:h;var g,y=Sr(f,Kr?to(a,h):a);if(null===y||(g=Jr(we(f.lastIndex+(Kr?h:0)),a.length))===p)h=hr(a,h,c);else{if(Zr(v,to(a,p,h)),v.length===d)return v;for(var m=1;m<=y.length-1;m++)if(Zr(v,y[m]),v.length===d)return v;h=p=g}}return Zr(v,to(a,p)),v}]}),!eo,Kr);var no,ro="\t\n\v\f\r ย แš€โ€€โ€โ€‚โ€ƒโ€„โ€…โ€†โ€‡โ€ˆโ€‰โ€Šโ€ฏโŸใ€€\u2028\u2029\ufeff",oo=I("".replace),io="["+ro+"]",ao=RegExp("^"+io+io+"*"),uo=RegExp(io+io+"*$"),lo=function(t){return function(e){var n=wn(V(e));return 1&t&&(n=oo(n,ao,"")),2&t&&(n=oo(n,uo,"")),n}},co={start:lo(1),end:lo(2),trim:lo(3)},so=de.PROPER,fo=co.trim;function po(t){return 0===l.default("<div>"+t+"</div>").children().filter((function(t){return"BR"!==t.tagName})).length}function ho(t){return 0===t.length?"":t[0].outerHTML}function vo(t){return t.length?t[0].tagName.toLowerCase():""}function go(t,e){for(var n="",r=(t.attr("style")||"").split(";"),o=r.length,i=0;i<o;i++){var a=r[i];if(a){var u=a.split(":");u[0].trim()===e&&(n=u[1].trim())}}return n}qe({target:"String",proto:!0,forced:(no="trim",b((function(){return!!ro[no]()||"โ€‹ย…แ Ž"!=="โ€‹ย…แ Ž"[no]()||so&&ro[no].name!==no})))},{trim:function(){return fo(this)}}),qe({global:!0},{globalThis:m}),o.css&&(l.default.fn.css=o.css),o.append&&(l.default.fn.append=o.append),o.prepend&&(l.default.fn.prepend=o.prepend),o.addClass&&(l.default.fn.addClass=o.addClass),o.removeClass&&(l.default.fn.removeClass=o.removeClass),o.hasClass&&(l.default.fn.hasClass=o.hasClass),o.on&&(l.default.fn.on=o.on),o.off&&(l.default.fn.off=o.off),o.focus&&(l.default.fn.focus=o.focus),o.attr&&(l.default.fn.attr=o.attr),o.removeAttr&&(l.default.fn.removeAttr=o.removeAttr),o.hide&&(l.default.fn.hide=o.hide),o.show&&(l.default.fn.show=o.show),o.parents&&(l.default.fn.parents=o.parents),o.dataset&&(l.default.fn.dataset=o.dataset),o.val&&(l.default.fn.val=o.val),o.text&&(l.default.fn.text=o.text),o.html&&(l.default.fn.html=o.html),o.children&&(l.default.fn.children=o.children),o.remove&&(l.default.fn.remove=o.remove),o.find&&(l.default.fn.find=o.find),o.width&&(l.default.fn.width=o.width),o.height&&(l.default.fn.height=o.height),o.filter&&(l.default.fn.filter=o.filter),o.empty&&(l.default.fn.empty=o.empty);var yo=function(t,e){return yo=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},yo(t,e)};function mo(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}yo(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var bo=function(){return bo=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},bo.apply(this,arguments)};function Eo(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{l(r.next(t))}catch(t){i(t)}}function u(t){try{l(r.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,u)}l((r=r.apply(t,e||[])).next())}))}function wo(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(l){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=e.call(t,a)}catch(t){u=[6,t],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,l])}}}function xo(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function So(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function ko(t,e,n){if(n||2===arguments.length)for(var r,o=0,i=e.length;o<i;o++)!r&&o in e||(r||(r=Array.prototype.slice.call(e,0,o)),r[o]=e[o]);return t.concat(r||Array.prototype.slice.call(e))}function To(t){var e=So(r.Editor.nodes(t,{match:function(e){return t.children[0]===e},mode:"highest"}),1),n=e[0];if(null==n)return!1;var o=n[0];if(!r.Element.isElement(o))return!1;if("paragraph"===o.type)return!1;if(""!==r.Node.string(o))return!1;var i=o.children,a=void 0===i?[]:i;return!!r.Text.isText(a[0])&&(r.Transforms.setNodes(t,{type:"paragraph"}),!0)}"function"==typeof SuppressedError&&SuppressedError;var No={renderElems:[s],elemsToHtml:[f],parseElemsHtml:[{selector:"p:not([data-w-e-type])",parseElemHtml:function(t,e,n){var o=l.default(t);return 0===(e=e.filter((function(t){return!!r.Text.isText(t)||!!n.isInline(t)}))).length&&(e=[{text:o.text().replace(/\s+/gm," ")}]),{type:"paragraph",children:e}}}],editorPlugin:function(t){var e=t.deleteBackward,n=t.deleteForward;t.insertText,t.insertBreak;var r=t;return r.deleteBackward=function(t){To(r)||e(t)},r.deleteForward=function(t){To(r)||n(t)},r}},Ao=/"/g,Do=I("".replace),Mo=function(t,e,n,r){var o=wn(V(t)),i="<"+e;return""!==n&&(i+=" "+n+'="'+Do(wn(r),Ao,"&quot;")+'"'),i+">"+o+"</"+e+">"},Lo=function(t){return b((function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3}))};function Po(t,e){var n=e,r=t,o=r.bold,i=r.italic,a=r.underline;return o&&(n="<strong>"+n+"</strong>"),r.code&&(n="<code>"+n+"</code>"),i&&(n="<em>"+n+"</em>"),a&&(n="<u>"+n+"</u>"),r.through&&(n="<s>"+n+"</s>"),r.sub&&(n="<sub>"+n+"</sub>"),r.sup&&(n="<sup>"+n+"</sup>"),n}function Io(t,e){return 0!==t.length&&(!!t[0].matches(e)||t.find(e).length>0)}qe({target:"String",proto:!0,forced:Lo("bold")},{bold:function(){return Mo(this,"b","","")}}),qe({target:"String",proto:!0,forced:Lo("italics")},{italics:function(){return Mo(this,"i","","")}}),qe({target:"String",proto:!0,forced:Lo("sub")},{sub:function(){return Mo(this,"sub","","")}}),qe({target:"String",proto:!0,forced:Lo("sup")},{sup:function(){return Mo(this,"sup","","")}});var Oo={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},Ho=Ot("span").classList,jo=Ho&&Ho.constructor&&Ho.constructor.prototype,zo=jo===Object.prototype?void 0:jo,Co=function(t,e){var n=[][t];return!!n&&b((function(){n.call(null,e||function(){throw 1},1)}))},_o=pn.forEach,Bo=Co("forEach")?[].forEach:function(t){return _o(this,t,arguments.length>1?arguments[1]:void 0)},Vo=function(t){if(t&&t.forEach!==Bo)try{qt(t,"forEach",Bo)}catch(e){t.forEach=Bo}};for(var Ro in Oo)Oo[Ro]&&Vo(m[Ro]&&m[Ro].prototype);Vo(zo);var Fo=b((function(){An(1)}));function qo(t,n){return null==t.selection||!!So(r.Editor.nodes(t,{match:function(n){return"pre"===e.DomEditor.getNodeType(n)||!!r.Editor.isVoid(t,n)},universal:!0}),1)[0]}function Wo(t,e){Object.keys(e).forEach((function(e){"text"!==e&&r.Editor.removeMark(t,e)}))}qe({target:"Object",stat:!0,forced:Fo},{keys:function(t){return An(vt(t))}});var Go=function(){function t(){this.marksNeedToRemove=[],this.tag="button"}return t.prototype.getValue=function(t){var e=this.mark,n=r.Editor.marks(t);return n?n[e]:!!So(r.Editor.nodes(t,{match:function(t){return!0===t[e]}}),1)[0]},t.prototype.isActive=function(t){return!!this.getValue(t)},t.prototype.isDisabled=function(t){return qo(t,this.mark)},t.prototype.exec=function(t,e){var n=this.mark,r=this.marksNeedToRemove;e?t.removeMark(n):(t.addMark(n,!0),r&&r.forEach((function(e){return t.removeMark(e)})))},t}(),$o='<svg viewBox="0 0 1024 1024"><path d="M707.872 484.64A254.88 254.88 0 0 0 768 320c0-141.152-114.848-256-256-256H192v896h384c141.152 0 256-114.848 256-256a256.096 256.096 0 0 0-124.128-219.36zM384 192h101.504c55.968 0 101.504 57.408 101.504 128s-45.536 128-101.504 128H384V192z m159.008 640H384v-256h159.008c58.464 0 106.016 57.408 106.016 128s-47.552 128-106.016 128z"></path></svg>',Uo='<svg viewBox="0 0 1024 1024"><path d="M704 64l128 0 0 416c0 159.072-143.264 288-320 288s-320-128.928-320-288l0-416 128 0 0 416c0 40.16 18.24 78.688 51.36 108.512 36.896 33.216 86.848 51.488 140.64 51.488s103.744-18.304 140.64-51.488c33.12-29.792 51.36-68.352 51.36-108.512l0-416zM192 832l640 0 0 128-640 0z"></path></svg>',Ko='<svg viewBox="0 0 1024 1024"><path d="M896 64v64h-128L448 896h128v64H128v-64h128L576 128h-128V64z"></path></svg>',Xo='<svg viewBox="0 0 1024 1024"><path d="M1024 512v64h-234.496c27.52 38.496 42.496 82.688 42.496 128 0 70.88-36.672 139.04-100.576 186.976C672.064 935.488 594.144 960 512 960s-160.064-24.512-219.424-69.024C228.64 843.04 192 774.88 192 704h128c0 69.376 87.936 128 192 128s192-58.624 192-128-87.936-128-192-128H0v-64h299.52a385.984 385.984 0 0 1-6.944-5.024C228.64 459.04 192 390.88 192 320s36.672-139.04 100.576-186.976C351.936 88.512 429.856 64 512 64s160.064 24.512 219.424 69.024C795.328 180.96 832 249.12 832 320h-128c0-69.376-87.936-128-192-128s-192 58.624-192 128 87.936 128 192 128c78.976 0 154.048 22.688 212.48 64H1024z"></path></svg>',Jo='<svg viewBox="0 0 1024 1024"><path d="M576 736l96 96 320-320L672 192l-96 96 224 224zM448 288l-96-96L32 512l320 320 96-96-224-224z"></path></svg>',Yo='<svg viewBox="0 0 1024 1024"><path d="M864 0a160 160 0 0 1 128 256l-64 64-224-224 64-64c26.752-20.096 59.968-32 96-32zM64 736l-64 288 288-64 592-592-224-224L64 736z m651.584-372.416l-448 448-55.168-55.168 448-448 55.168 55.168z"></path></svg>',Qo='<svg viewBox="0 0 1024 1024"><path d="M924.402464 1023.068211H0.679665V99.345412h461.861399v98.909208H99.596867v725.896389h725.896389V561.206811h98.909208z" p-id="10909"></path><path d="M930.805104 22.977336l69.965436 69.965436-453.492405 453.492404-69.965435-69.901489z" p-id="10910"></path><path d="M1022.464381 304.030081h-98.917201V99.345412H709.230573V0.428211h313.233808z"></path></svg>',Zo='<svg viewBox="0 0 1024 1024"><path d="M64 864h896v96H64zM360.58 576h302.85l81.53 224h102.16L579.24 64H444.77L176.89 800h102.16l81.53-224zM512 159.96L628.49 480H395.52L512 159.96z"></path></svg>',ti='<svg viewBox="0 0 1024 1024"><path d="M510.030769 315.076923l84.676923 196.923077h-177.230769l76.8-196.923077h15.753846zM945.230769 157.538462v708.923076c0 43.323077-35.446154 78.769231-78.769231 78.769231H157.538462c-43.323077 0-78.769231-35.446154-78.769231-78.769231V157.538462c0-43.323077 35.446154-78.769231 78.769231-78.769231h708.923076c43.323077 0 78.769231 35.446154 78.769231 78.769231z m-108.307692 643.938461L600.615385 216.615385c-5.907692-11.815385-15.753846-19.692308-29.538462-19.692308h-139.815385c-11.815385 0-23.630769 7.876923-27.56923 19.692308l-216.615385 584.861538c-3.938462 11.815385 3.938462 25.6 17.723077 25.6h80.738462c11.815385 0 23.630769-9.846154 27.56923-21.661538l63.015385-175.261539h263.876923l68.923077 175.261539c3.938462 11.815385 15.753846 21.661538 27.569231 21.661538h80.738461c13.784615 0 23.630769-13.784615 19.692308-25.6z"></path></svg>',ei='<svg viewBox="0 0 1024 1024"><path d="M826.8032 356.5312c-19.328 0-36.3776 15.6928-36.3776 35.0464v524.2624c0 19.328-16 34.56-35.328 34.56H264.9344c-19.328 0-35.5072-15.3088-35.5072-34.56V390.0416c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.6928-33.5104 35.0464V915.712c0 57.9328 44.6208 108.288 102.528 108.288H755.2c57.9328 0 108.0832-50.4576 108.0832-108.288V391.4752c-0.1024-19.2512-17.1264-34.944-36.48-34.944z" p-id="9577"></path><path d="M437.1712 775.7568V390.6048c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.616-33.5104 35.0464v385.152c0 19.328 14.1568 35.0464 33.5104 35.0464s33.5104-15.7184 33.5104-35.0464zM649.7024 775.7568V390.6048c0-19.328-17.0496-35.0464-36.3776-35.0464s-36.3776 15.616-36.3776 35.0464v385.152c0 19.328 17.0496 35.0464 36.3776 35.0464s36.3776-15.7184 36.3776-35.0464zM965.0432 217.0368h-174.6176V145.5104c0-57.9328-47.2064-101.76-104.6528-101.76h-350.976c-57.8304 0-105.3952 43.8528-105.3952 101.76v71.5264H54.784c-19.4304 0-35.0464 14.1568-35.0464 33.5104 0 19.328 15.616 33.5104 35.0464 33.5104h910.3616c19.328 0 35.0464-14.1568 35.0464-33.5104 0-19.3536-15.6928-33.5104-35.1488-33.5104z m-247.3728 0H297.3952V145.5104c0-19.328 18.2016-34.7648 37.4272-34.7648h350.976c19.1488 0 31.872 15.1296 31.872 34.7648v71.5264z"></path></svg>',ni='<svg viewBox="0 0 1024 1024"><path d="M894.6 907.1H605.4c-32.6 0-59-26.4-59-59V608.2l-4-14.9c0-315.9 125.5-485.1 376.5-507.5v59.8C752.7 180.4 711.3 315.8 711.3 442.4v41.2l31.5 12.3h151.8c32.6 0 59 26.4 59 59v293.2c0 32.5-26.4 59-59 59z m-472 0H133.4c-32.6 0-59-26.4-59-59V608.2l-4-14.9c0-315.9 125.5-485.1 376.5-507.5v59.8C280.7 180.4 239.3 315.8 239.3 442.4v41.2l31.5 12.3h151.8c32.6 0 59 26.4 59 59v293.2c0 32.5-26.4 59-59 59z"></path></svg>',ri='<svg viewBox="0 0 1024 1024"><path d="M64 512h384v128h-128V1024h-128V640h-128z m896-256H708.2496v768h-136.4992V256H320V128h640z"></path></svg>',oi='<svg viewBox="0 0 1024 1024"><path d="M956.788364 152.110545h-24.110546l23.924364 9.029819 0.186182 121.018181h-65.070546l-86.574545-130.048H566.551273v650.14691l130.048 64.977454v65.163636h-390.050909v-65.163636l129.954909-64.977454V152.110545H198.283636L111.429818 282.065455H46.545455V69.259636C46.545455 33.792 82.664727 22.062545 98.955636 22.062545h812.683637c23.738182 0 45.056 15.173818 45.056 41.053091V169.425455v-17.221819z"></path></svg>',ii='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m256-512v384l-256-192z"></path></svg>',ai='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',ui='<svg viewBox="0 0 1024 1024"><path d="M768 793.6v102.4H51.2v-102.4h716.8z m204.8-230.4v102.4H51.2v-102.4h921.6z m-204.8-230.4v102.4H51.2v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',li='<svg viewBox="0 0 1024 1024"><path d="M972.8 793.6v102.4H256v-102.4h716.8z m0-230.4v102.4H51.2v-102.4h921.6z m0-230.4v102.4H256v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',ci='<svg viewBox="0 0 1024 1024"><path d="M870.4 793.6v102.4H153.6v-102.4h716.8z m102.4-230.4v102.4H51.2v-102.4h921.6z m-102.4-230.4v102.4H153.6v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',si='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z"></path></svg>',fi='<svg viewBox="0 0 1024 1024"><path d="M768 206.016v50.016h128v64h-192V174.016l128-60V64h-128V0h192v146.016zM676 256h-136L352 444 164 256H28l256 256-256 256h136L352 580 540 768h136l-256-256z"></path></svg>',di='<svg viewBox="0 0 1024 1024"><path d="M768 910.016v50.016h128v64h-192v-146.016l128-60V768h-128v-64h192v146.016zM676 256h-136L352 444 164 256H28l256 256-256 256h136L352 580 540 768h136l-256-256z"></path></svg>',pi='<svg viewBox="0 0 1255 1024"><path d="M1095.111111 731.477333h-625.777778V1024L0 658.318222 469.333333 292.408889v292.636444h625.777778V0h156.444445v731.477333z"></path></svg>',hi='<svg viewBox="0 0 1024 1024"><path d="M436 680H124v-56h312l-124-124 42-42 220 220-220 220-42-42 124-124z"></path><path d="M198 128l64-64 628 628-64 64z"></path></svg>',vi=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.mark="bold",n.title=e.t("textStyle.bold"),n.iconSvg=$o,n.hotkey="mod+b",n}return mo(n,t),n}(Go),gi=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.mark="code",n.title=e.t("textStyle.code"),n.iconSvg=Jo,n.hotkey="mod+e",n}return mo(n,t),n}(Go),yi=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.mark="italic",n.title=e.t("textStyle.italic"),n.iconSvg=Ko,n.hotkey="mod+i",n}return mo(n,t),n}(Go),mi=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.mark="through",n.title=e.t("textStyle.through"),n.iconSvg=Xo,n.hotkey="mod+shift+x",n}return mo(n,t),n}(Go),bi=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.mark="underline",n.title=e.t("textStyle.underline"),n.iconSvg=Uo,n.hotkey="mod+u",n}return mo(n,t),n}(Go),Ei=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.mark="sub",n.marksNeedToRemove=["sup"],n.title=e.t("textStyle.sub"),n.iconSvg=di,n.hotkey="",n}return mo(n,t),n}(Go),wi=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.mark="sup",n.marksNeedToRemove=["sub"],n.title=e.t("textStyle.sup"),n.iconSvg=fi,n.hotkey="",n}return mo(n,t),n}(Go);var xi=function(){function t(){this.title=e.t("textStyle.clear"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M969.382408 288.738615l-319.401123-270.852152a67.074236 67.074236 0 0 0-96.459139 5.74922l-505.931379 574.922021a68.35184 68.35184 0 0 0-17.886463 47.910169 74.101061 74.101061 0 0 0 24.274486 47.910168l156.50655 132.232065h373.060512L975.131628 383.281347a67.074236 67.074236 0 0 0-5.74922-96.459139z m-440.134747 433.746725H264.144729l-90.071117-78.572676c-5.74922-5.74922-12.137243-12.137243-12.137243-17.886463a36.411728 36.411728 0 0 1 5.749221-24.274485l210.804741-240.828447 265.102932 228.691204z m-439.495945 180.781036h843.218964a60.047411 60.047411 0 1 1 0 120.733624H89.751716a60.047411 60.047411 0 1 1 0-120.733624z m0 0"></path></svg>',this.tag="button"}return t.prototype.getValue=function(t){return""},t.prototype.isActive=function(t){return!1},t.prototype.isDisabled=function(t){return qo(t)},t.prototype.exec=function(t,n){var o,i,a=r.Editor.nodes(t,{match:function(t){return r.Text.isText(t)},universal:!0});try{for(var u=xo(a),l=u.next();!l.done;l=u.next()){Wo(t,l.value[0])}}catch(t){o={error:t}}finally{try{l&&!l.done&&(i=u.return)&&i.call(u)}finally{if(o)throw o.error}}try{r.Transforms.setNodes(t,{type:"paragraph"},{match:function(t){return"header1"===(n=e.DomEditor.getNodeType(t))||"header2"===n||"header3"===n||"header4"===n||"header5"===n||"header6"===n;var n},mode:"highest"})}catch(t){}},t}(),Si={renderStyle:function(t,e){var r=t,o=r.bold,i=r.italic,a=r.underline,u=r.code,l=r.through,c=r.sub,s=r.sup,f=e;return o&&(f=n.jsx("strong",null,f)),u&&(f=n.jsx("code",null,f)),i&&(f=n.jsx("em",null,f)),a&&(f=n.jsx("u",null,f)),l&&(f=n.jsx("s",null,f)),c&&(f=n.jsx("sub",null,f)),s&&(f=n.jsx("sup",null,f)),f},menus:[{key:"bold",factory:function(){return new vi}},{key:"underline",factory:function(){return new bi}},{key:"italic",factory:function(){return new yi}},{key:"through",factory:function(){return new mi}},{key:"code",factory:function(){return new gi}},{key:"sub",factory:function(){return new Ei}},{key:"sup",factory:function(){return new wi}},{key:"clearStyle",factory:function(){return new xi}},{key:"clearAllFormat",factory:function(){return new xi}}],styleToHtml:function(t,e){if(!r.Text.isText(t))return e;if(po(e))return Po(t,e);var n=l.default(e);if("br"===vo(n))return Po(t,"<br>");var o=n.html();return o=Po(t,o),n.html(o),ho(n)},parseStyleHtml:function(t,e,n){var o=l.default(t);if(!r.Text.isText(e))return e;var i=e;return Io(o,"b,strong")&&(i.bold=!0),Io(o,"i,em")&&(i.italic=!0),Io(o,"u")&&(i.underline=!0),Io(o,"s,strike")&&(i.through=!0),Io(o,"sub")&&(i.sub=!0),Io(o,"sup")&&(i.sup=!0),Io(o,"code")&&(i.code=!0),i}};function ki(t){return function(e,r,o){var i="h"+t;return n.jsx(i,null,r)}}var Ti={type:"header1",renderElem:ki(1)},Ni={type:"header2",renderElem:ki(2)},Ai={type:"header3",renderElem:ki(3)},Di={type:"header4",renderElem:ki(4)},Mi={type:"header5",renderElem:ki(5)},Li=de.PROPER,Pi="toString",Ii=RegExp.prototype,Oi=Ii.toString,Hi=I(xn),ji=b((function(){return"/a/b"!=Oi.call({source:"a",flags:"b"})})),zi=Li&&Oi.name!=Pi;(ji||zi)&&pe(RegExp.prototype,Pi,(function(){var t=Bt(this),e=wn(t.source),n=t.flags;return"/"+e+"/"+wn(void 0===n&&$(Ii,t)&&!("flags"in Ii)?Hi(t):n)}),{unsafe:!0});var Ci,_i=m.TypeError,Bi=function(t){if(Vr(t))throw _i("The method doesn't accept regular expressions");return t},Vi=Nt("match"),Ri=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[Vi]=!1,"/./"[t](e)}catch(t){}}return!1},Fi=zt.f,qi=I("".startsWith),Wi=I("".slice),Gi=Math.min,$i=Ri("startsWith"),Ui=!($i||(Ci=Fi(String.prototype,"startsWith"),!Ci||Ci.writable));function Ki(t){var n=So(r.Editor.nodes(t,{match:function(t){return e.DomEditor.getNodeType(t).startsWith("header")},universal:!0}),1),o=n[0];if(null==o)return"paragraph";var i=So(o,1)[0];return e.DomEditor.getNodeType(i)}function Xi(t){return null==t.selection||!So(r.Editor.nodes(t,{match:function(t){var n=e.DomEditor.getNodeType(t);return"paragraph"===n||!!n.startsWith("header")},universal:!0,mode:"highest"}),1)[0]}function Ji(t,e){e&&r.Transforms.setNodes(t,{type:e})}qe({target:"String",proto:!0,forced:!Ui&&!$i},{startsWith:function(t){var e=wn(V(this));Bi(t);var n=we(Gi(arguments.length>1?arguments[1]:void 0,e.length)),r=wn(t);return qi?qi(e,r,n):Wi(e,n,n+r.length)===r}});var Yi=function(){function t(){this.title=e.t("header.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M960 960c-51.2 0-102.4-3.2-153.6-3.2-51.2 0-99.2 3.2-150.4 3.2-19.2 0-28.8-22.4-28.8-38.4 0-51.2 57.6-28.8 86.4-48 19.2-12.8 19.2-60.8 19.2-80v-224-19.2c-9.6-3.2-19.2-3.2-28.8-3.2H320c-9.6 0-19.2 0-28.8 3.2V780.8c0 22.4 0 80 22.4 92.8 28.8 19.2 96-6.4 96 44.8 0 16-9.6 41.6-28.8 41.6-54.4 0-105.6-3.2-160-3.2-48 0-96 3.2-147.2 3.2-19.2 0-28.8-22.4-28.8-38.4 0-51.2 51.2-28.8 80-48 19.2-12.8 19.2-60.8 19.2-83.2V294.4c0-28.8 3.2-115.2-22.4-131.2-25.6-16-86.4 9.6-86.4-41.6 0-16 6.4-41.6 28.8-41.6 51.2 0 105.6 3.2 156.8 3.2 48 0 96-3.2 144-3.2 19.2 0 28.8 22.4 28.8 41.6 0 48-57.6 25.6-83.2 41.6-19.2 12.8-19.2 73.6-19.2 92.8v201.6c6.4 3.2 16 3.2 22.4 3.2h400c6.4 0 12.8 0 22.4-3.2V256c0-22.4 0-80-19.2-92.8-28.8-16-86.4 6.4-86.4-41.6 0-16 9.6-41.6 28.8-41.6 51.2 0 99.2 3.2 150.4 3.2 48 0 99.2-3.2 147.2-3.2 19.2 0 28.8 22.4 28.8 41.6 0 51.2-57.6 25.6-86.4 41.6-19.2 12.8-19.2 70.4-19.2 92.8v537.6c0 19.2 0 67.2 19.2 80 28.8 19.2 89.6-6.4 89.6 44.8 0 19.2-6.4 41.6-28.8 41.6z"></path></svg>',this.tag="select",this.width=60}return t.prototype.getOptions=function(t){var n=[{value:"paragraph",text:e.t("header.text"),styleForRenderMenuList:{"font-size":"14px","font-weight":"normal","line-height":"1.25"}},{value:"header1",text:"H1",styleForRenderMenuList:{"font-size":"32px","font-weight":"bold","line-height":"1.25"}},{value:"header2",text:"H2",styleForRenderMenuList:{"font-size":"24px","font-weight":"bold","line-height":"1.25"}},{value:"header3",text:"H3",styleForRenderMenuList:{"font-size":"18px","font-weight":"bold","line-height":"1.25"}},{value:"header4",text:"H4",styleForRenderMenuList:{"font-size":"16px","font-weight":"bold","line-height":"1.25"}},{value:"header5",text:"H5",styleForRenderMenuList:{"font-size":"13px","font-weight":"bold","line-height":"1.25"}}],r=this.getValue(t).toString();return n.forEach((function(t){t.value===r?t.selected=!0:delete t.selected})),n},t.prototype.isActive=function(t){return!1},t.prototype.getValue=function(t){return Ki(t)},t.prototype.isDisabled=function(t){return Xi(t)},t.prototype.exec=function(t,e){Ji(t,e.toString())},t}(),Qi=function(){function t(){this.tag="button"}return t.prototype.getValue=function(t){return Ki(t)},t.prototype.isActive=function(t){return this.getValue(t)===this.type},t.prototype.isDisabled=function(t){return Xi(t)},t.prototype.exec=function(t,e){var n=this.type;Ji(t,e===n?"paragraph":n)},t}(),Zi=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.title="H1",e.type="header1",e}return mo(e,t),e}(Qi),ta=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.title="H2",e.type="header2",e}return mo(e,t),e}(Qi),ea=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.title="H3",e.type="header3",e}return mo(e,t),e}(Qi),na=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.title="H4",e.type="header4",e}return mo(e,t),e}(Qi),ra=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.title="H5",e.type="header5",e}return mo(e,t),e}(Qi),oa={key:"headerSelect",factory:function(){return new Yi}},ia={key:"header1",factory:function(){return new Zi}},aa={key:"header2",factory:function(){return new ta}},ua={key:"header3",factory:function(){return new ea}},la={key:"header4",factory:function(){return new na}},ca={key:"header5",factory:function(){return new ra}};function sa(t){return function(e,n){return"<h"+t+">"+n+"</h"+t+">"}}function fa(t){return function(e,n,o){var i=l.default(e);return 0===(n=n.filter((function(t){return!!r.Text.isText(t)||!!o.isInline(t)}))).length&&(n=[{text:i.text().replace(/\s+/gm," ")}]),{type:"header"+t,children:n}}}var da={renderElems:[Ti,Ni,Ai,Di,Mi],elemsToHtml:[{type:"header1",elemToHtml:sa(1)},{type:"header2",elemToHtml:sa(2)},{type:"header3",elemToHtml:sa(3)},{type:"header4",elemToHtml:sa(4)},{type:"header5",elemToHtml:sa(5)}],parseElemsHtml:[{selector:"h1:not([data-w-e-type])",parseElemHtml:fa(1)},{selector:"h2:not([data-w-e-type])",parseElemHtml:fa(2)},{selector:"h3:not([data-w-e-type])",parseElemHtml:fa(3)},{selector:"h4:not([data-w-e-type])",parseElemHtml:fa(4)},{selector:"h5:not([data-w-e-type])",parseElemHtml:fa(5)}],menus:[oa,ia,aa,ua,la,ca],editorPlugin:function(t){var n=t.insertBreak;t.insertNode;var o=t;return o.insertBreak=function(){var i=So(r.Editor.nodes(o,{match:function(t){return e.DomEditor.getNodeType(t).startsWith("header")},universal:!0}),1)[0];if(i)if(e.DomEditor.isSelectionAtLineEnd(t,i[1])){r.Transforms.insertNodes(o,{type:"paragraph",children:[{text:""}]},{mode:"highest"})}else n();else n()},o}},pa=Object.assign,ha=Object.defineProperty,va=I([].concat),ga=!pa||b((function(){if(E&&1!==pa({b:1},pa(ha({},"a",{enumerable:!0,get:function(){ha(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach((function(t){e[t]=t})),7!=pa({},t)[n]||An(pa({},e)).join("")!=r}))?function(t,e){for(var n=vt(t),r=arguments.length,o=1,i=Pe.f,a=N.f;r>o;)for(var u,l=_(arguments[o++]),c=i?va(An(l),i(l)):An(l),s=c.length,f=0;s>f;)u=c[f++],E&&!x(a,l,u)||(n[u]=l[u]);return n}:pa;function ya(t,e){null==t.data&&(t.data={});var n=t.data;null==n.style&&(n.style={}),Object.assign(n.style,e)}qe({target:"Object",stat:!0,forced:Object.assign!==ga},{assign:ga});var ma={selector:"font",preParseHtml:function(t){var e=l.default(t);if("font"!==vo(e))return t;var n=e.attr("color")||"";return n&&(e.removeAttr("color"),e.css("color",n)),e[0]}};var ba=function(){function t(){this.tag="button",this.showDropPanel=!0,this.$content=null}return t.prototype.exec=function(t,e){},t.prototype.getValue=function(t){var e=this.mark,n=r.Editor.marks(t);return n&&n[e]?n[e]:""},t.prototype.isActive=function(t){return!!this.getValue(t)},t.prototype.isDisabled=function(t){return null==t.selection||!!So(r.Editor.nodes(t,{match:function(n){return"pre"===e.DomEditor.getNodeType(n)||!!r.Editor.isVoid(t,n)},universal:!0}),1)[0]},t.prototype.getPanelContentElem=function(t){var n=this.mark;if(null==this.$content){var o=l.default('<ul class="w-e-panel-content-color"></ul>');o.on("click","li",(function(e){var o=e.target;if(null!=o&&(e.preventDefault(),null!=t.selection)){var i=l.default(o).attr("data-value");"0"===i?r.Editor.removeMark(t,n):r.Editor.addMark(t,n,i)}})),this.$content=o}var i=this.$content;if(null==i)return document.createElement("ul");i.empty();var a=this.getValue(t),u=t.getMenuConfig(n).colors;(void 0===u?[]:u).forEach((function(t){var e=l.default('<div class="color-block" data-value="'+t+'"></div>');e.css("background-color",t);var n=l.default('<li data-value="'+t+'"></li>');a===t&&n.addClass("active"),n.append(e),i.append(n)}));var c="";"color"===n&&(c=e.t("color.default")),"bgColor"===n&&(c=e.t("color.clear"));var s=l.default('\n <li data-value="0" class="clear">\n <svg viewBox="0 0 1024 1024"><path d="M236.8 128L896 787.2V128H236.8z m614.4 704L192 172.8V832h659.2zM192 64h704c38.4 0 64 25.6 64 64v704c0 38.4-25.6 64-64 64H192c-38.4 0-64-25.6-64-64V128c0-38.4 25.6-64 64-64z"></path></svg>\n '+c+"\n </li>\n ");return i.prepend(s),i[0]},t}(),Ea=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.title=e.t("color.color"),n.iconSvg=Zo,n.mark="color",n}return mo(n,t),n}(ba),wa=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.title=e.t("color.bgColor"),n.iconSvg=ti,n.mark="bgColor",n}return mo(n,t),n}(ba),xa=["rgb(0, 0, 0)","rgb(38, 38, 38)","rgb(89, 89, 89)","rgb(140, 140, 140)","rgb(191, 191, 191)","rgb(217, 217, 217)","rgb(233, 233, 233)","rgb(245, 245, 245)","rgb(250, 250, 250)","rgb(255, 255, 255)","rgb(225, 60, 57)","rgb(231, 95, 51)","rgb(235, 144, 58)","rgb(245, 219, 77)","rgb(114, 192, 64)","rgb(89, 191, 192)","rgb(66, 144, 247)","rgb(54, 88, 226)","rgb(106, 57, 201)","rgb(216, 68, 147)","rgb(251, 233, 230)","rgb(252, 237, 225)","rgb(252, 239, 212)","rgb(252, 251, 207)","rgb(231, 246, 213)","rgb(218, 244, 240)","rgb(217, 237, 250)","rgb(224, 232, 250)","rgb(237, 225, 248)","rgb(246, 226, 234)","rgb(255, 163, 158)","rgb(255, 187, 150)","rgb(255, 213, 145)","rgb(255, 251, 143)","rgb(183, 235, 143)","rgb(135, 232, 222)","rgb(145, 213, 255)","rgb(173, 198, 255)","rgb(211, 173, 247)","rgb(255, 173, 210)","rgb(255, 77, 79)","rgb(255, 122, 69)","rgb(255, 169, 64)","rgb(255, 236, 61)","rgb(115, 209, 61)","rgb(54, 207, 201)","rgb(64, 169, 255)","rgb(89, 126, 247)","rgb(146, 84, 222)","rgb(247, 89, 171)","rgb(207, 19, 34)","rgb(212, 56, 13)","rgb(212, 107, 8)","rgb(212, 177, 6)","rgb(56, 158, 13)","rgb(8, 151, 156)","rgb(9, 109, 217)","rgb(29, 57, 196)","rgb(83, 29, 171)","rgb(196, 29, 127)","rgb(130, 0, 20)","rgb(135, 20, 0)","rgb(135, 56, 0)","rgb(97, 71, 0)","rgb(19, 82, 0)","rgb(0, 71, 79)","rgb(0, 58, 140)","rgb(6, 17, 120)","rgb(34, 7, 94)","rgb(120, 6, 80)"];var Sa={renderStyle:function(t,e){var n=t,r=n.color,o=n.bgColor,i=e;return r&&ya(i,{color:r}),o&&ya(i,{backgroundColor:o}),i},styleToHtml:function(t,e){if(!r.Text.isText(t))return e;var n,o=t,i=o.color,a=o.bgColor;return i||a?((po(e)||"span"!==vo(n=l.default(e)))&&(n=l.default("<span>"+e+"</span>")),i&&n.css("color",i),a&&n.css("background-color",a),ho(n)):e},preParseHtml:[ma],parseStyleHtml:function(t,e,n){var o=l.default(t);if(!r.Text.isText(e))return e;var i=e,a=go(o,"color");a&&(i.color=a);var u=go(o,"background-color");return u||(u=go(o,"background")),u&&(i.bgColor=u),i},menus:[{key:"color",factory:function(){return new Ea},config:{colors:xa}},{key:"bgColor",factory:function(){return new wa},config:{colors:xa}}]};qe({target:"String",proto:!0,forced:Lo("anchor")},{anchor:function(t){return Mo(this,"a","name",t)}});var ka=function(t){if("string"!=typeof t)return!1;var e=t.match(Ta);if(!e)return!1;var n=e[1];if(!n)return!1;if(Na.test(n)||Aa.test(n))return!0;return!1},Ta=/^(?:\w+:)?\/\/(\S+)$/,Na=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,Aa=/^[^\s\.]+\.\S{2,}$/;var Da=ke.includes;function Ma(t){return void 0===t&&(t="r"),t+"-"+i.nanoid()}function La(t){return t.replace(/</g,"&lt;").replace(/>/g,"&gt;")}function Pa(t,e,n,r){return Eo(this,void 0,void 0,(function(){var o,i;return wo(this,(function(a){switch(a.label){case 0:return(o=e.getMenuConfig(t).checkLink)?[4,o(n,r)]:[3,2];case 1:if("string"==typeof(i=a.sent()))return e.alert(i,"error"),[2,!1];if(null==i)return[2,!1];a.label=2;case 2:return[2,!0]}}))}))}function Ia(t,e,n){return Eo(this,void 0,void 0,(function(){var r;return wo(this,(function(o){switch(o.label){case 0:return(r=e.getMenuConfig(t).parseLinkUrl)?[4,r(n)]:[3,2];case 1:return[2,o.sent()];case 2:return[2,n]}}))}))}function Oa(t){return null==t.selection||!!e.DomEditor.getSelectedElems(t).some((function(e){var n=e.type;return!!t.isVoid(e)||(!!["pre","code","link"].includes(n)||void 0)}))}function Ha(t,e){return{type:"link",url:La(t),children:e?[{text:e}]:[]}}qe({target:"Array",proto:!0},{includes:function(t){return Da(this,t,arguments.length>1?arguments[1]:void 0)}}),jr("includes");var ja={type:"link",renderElem:function(t,e,r){var o=t,i=o.url,a=o.target,u=void 0===a?"_blank":a;return n.jsx("a",{href:i,target:u},e)}};var za={type:"link",elemToHtml:function(t,e){var n=t,r=n.url,o=n.target;return'<a href="'+r+'" target="'+(void 0===o?"_blank":o)+'">'+e+"</a>"}};var Ca={selector:"a:not([data-w-e-type])",parseElemHtml:function(t,e,n){var o=l.default(t);return 0===(e=e.filter((function(t){return!!r.Text.isText(t)||!!n.isInline(t)}))).length&&(e=[{text:o.text().replace(/\s+/gm," ")}]),{type:"link",url:o.attr("href")||"",target:o.attr("target")||"",children:e}}},_a=function(){function t(){this.title=e.t("link.unLink"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M608.16328 811.815036c9.371954 9.371954 9.371954 24.56788 0 33.941834l-89.347563 89.347564c-118.525421 118.523421-311.38448 118.531421-429.919901 0-118.527421-118.529421-118.527421-311.39048 0-429.917901l89.349564-89.349563c9.371954-9.371954 24.56788-9.371954 33.941834 0l79.195613 79.195613c9.371954 9.371954 9.371954 24.56788 0 33.941834l-89.349563 89.347564c-56.143726 56.145726-56.143726 147.49928 0 203.645005 56.143726 56.143726 147.49928 56.145726 203.647005 0l89.347564-89.347563c9.371954-9.371954 24.56788-9.371954 33.941834 0l79.193613 79.195613z m-113.135447-520.429459c9.371954 9.371954 24.56788 9.371954 33.941834 0l89.347564-89.347564c56.143726-56.149726 147.49928-56.145726 203.647006 0 56.143726 56.145726 56.143726 147.49928 0 203.645006l-89.349564 89.347564c-9.371954 9.371954-9.371954 24.56788 0 33.941834l79.195613 79.195613c9.371954 9.371954 24.56788 9.371954 33.941834 0l89.349564-89.349563c118.529421-118.529421 118.529421-311.38848 0-429.917901-118.531421-118.527421-311.38848-118.527421-429.919901 0l-89.347563 89.347564c-9.371954 9.371954-9.371954 24.56788 0 33.941834l79.193613 79.195613z m469.653707 718.556492l45.253779-45.253779c18.745908-18.745908 18.745908-49.13776 0-67.881669L127.195629 14.062931c-18.745908-18.745908-49.13776-18.745908-67.881669 0L14.058181 59.31871c-18.745908 18.745908-18.745908 49.13776 0 67.881669l882.74169 882.74169c18.745908 18.743908 49.13776 18.743908 67.881669 0z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(t){return""},t.prototype.isActive=function(t){return!1},t.prototype.isDisabled=function(t){return null==t.selection||null==e.DomEditor.getSelectedNodeByType(t,"link")},t.prototype.exec=function(t,n){this.isDisabled(t)||r.Transforms.unwrapNodes(t,{match:function(t){return e.DomEditor.checkNodeType(t,"link")}})},t}(),Ba=function(){function t(){this.title=e.t("link.view"),this.iconSvg=Qo,this.tag="button"}return t.prototype.getSelectedLinkElem=function(t){var n=e.DomEditor.getSelectedNodeByType(t,"link");return null==n?null:n},t.prototype.getValue=function(t){var e=this.getSelectedLinkElem(t);return e&&e.url||""},t.prototype.isActive=function(t){return!1},t.prototype.isDisabled=function(t){return null==t.selection||null==this.getSelectedLinkElem(t)},t.prototype.exec=function(t,e){if(!this.isDisabled(t)){if(!e||"string"!=typeof e)throw new Error("View link failed, link url is '"+e+"'");window.open(e,"_blank")}},t}(),Va=I([].slice),Ra=vn("slice"),Fa=Nt("species"),qa=m.Array,Wa=Math.max;qe({target:"Array",proto:!0,forced:!Ra},{slice:function(t,e){var n,r,o,i=R(this),a=xe(i),u=be(t,a),l=be(void 0===e?a:e,a);if($e(i)&&(n=i.constructor,(un(n)&&(n===qa||$e(n.prototype))||q(n)&&null===(n=n[Fa]))&&(n=void 0),n===qa||void 0===n))return Va(i,u,l);for(r=new(void 0===n?qa:n)(Wa(l-u,0)),o=0;u<l;u++,o++)u in i&&Wr(r,o,i[u]);return r.length=o,r}});var Ga=!1;function $a(t){Ga=!!t,function(){try{"undefined"!=typeof window&&(window.__wELinkFormApplying=Ga)}catch(t){}}()}var Ua=null;function Ka(t,e){var n="undefined"!=typeof document&&(document.querySelector(".editor-content .w-e-text-container")||document.querySelector(".w-e-text-container"))||null;if(n){var r=n.classList.contains("mdg-link-modal-open");if(t)return n.classList.add("mdg-link-modal-open"),void n.classList.add("w-e-link-modal-open");n.classList.remove("mdg-link-modal-open"),n.classList.remove("w-e-link-modal-open"),r&&(Ga||Xa(e))}}function Xa(t){var n=t,r=function(){var t,r,o;try{null===(o=null===(r=null===(t=e.DomEditor.getHoverbar)||void 0===t?void 0:t.call(e.DomEditor,n))||void 0===r?void 0:r.hideAndClean)||void 0===o||o.call(r)}catch(t){}};try{n&&!n.isDestroyed&&"function"==typeof n.deselect&&n.deselect()}catch(t){}r(),"function"==typeof requestAnimationFrame&&requestAnimationFrame(r)}function Ja(t){var e=String(t||"").trim();return!e||"#"===e||/^javascript:/i.test(e)?"":(e=e.replace(/</g,"&lt;").replace(/>/g,"&gt;"),/^[a-z][a-z0-9+.-]*:/i.test(e)?e:"http://"+e)}var Ya=function(){function t(t){void 0===t&&(t="edit"),this.tag="button",this.showModal=!0,this.modalWidth=300,this._root=null,this._editor=null,this._editLinkPath=null,this._savedSelection=null,this.mode="insert"===t?"insert":"edit",this.title="insert"===this.mode?e.t("link.insert"):e.t("link.edit"),this.iconSvg="insert"===this.mode?'<svg viewBox="0 0 1024 1024"><path d="M440.224 635.776a51.84 51.84 0 0 1-36.768-15.232c-95.136-95.136-95.136-249.92 0-345.056l192-192C641.536 37.408 702.816 12.032 768 12.032s126.432 25.376 172.544 71.456c95.136 95.136 95.136 249.92 0 345.056l-87.776 87.776a51.968 51.968 0 1 1-73.536-73.536l87.776-87.776a140.16 140.16 0 0 0 0-197.984c-26.432-26.432-61.6-40.992-99.008-40.992s-72.544 14.56-99.008 40.992l-192 192a140.16 140.16 0 0 0 0 197.984 51.968 51.968 0 0 1-36.768 88.768z"></path><path d="M256 1012a242.4 242.4 0 0 1-172.544-71.456c-95.136-95.136-95.136-249.92 0-345.056l87.776-87.776a51.968 51.968 0 1 1 73.536 73.536l-87.776 87.776a140.16 140.16 0 0 0 0 197.984c26.432 26.432 61.6 40.992 99.008 40.992s72.544-14.56 99.008-40.992l192-192a140.16 140.16 0 0 0 0-197.984 51.968 51.968 0 1 1 73.536-73.536c95.136 95.136 95.136 249.92 0 345.056l-192 192A242.4 242.4 0 0 1 256 1012z"></path></svg>':Yo;var n=Math.random().toString(36).slice(2,9);this._textInputId="w-e-link-form-text-"+n,this._urlInputId="w-e-link-form-url-"+n}return t.prototype.getSelectedLinkElem=function(t){return e.DomEditor.getSelectedNodeByType(t,"link")||null},t.prototype.getValue=function(t){var e=this.getSelectedLinkElem(t);return(null==e?void 0:e.url)||""},t.prototype.isActive=function(){return!1},t.prototype.exec=function(){},t.prototype._isInsertDisabled=function(t){if(null==t.selection)return!0;try{return(e.DomEditor.getSelectedElems(t)||[]).some((function(n){var r;if(null===(r=t.isVoid)||void 0===r?void 0:r.call(t,n))return!0;var o=e.DomEditor.getNodeType(n);return"pre"===o||"code"===o||"link"===o}))}catch(t){return!0}},t.prototype.isDisabled=function(t){return"insert"===this.mode?this._isInsertDisabled(t):null==t.selection||null==this.getSelectedLinkElem(t)},t.prototype.getModalPositionNode=function(t){return"insert"===this.mode?null:e.DomEditor.getSelectedNodeByType(t,"link")},t.prototype._isCollapsedSelection=function(t){if(!(null==t?void 0:t.anchor)||!(null==t?void 0:t.focus))return!0;var e=t.anchor,n=t.focus;return e.offset===n.offset&&(!(!Array.isArray(e.path)||!Array.isArray(n.path)||e.path.length!==n.path.length)&&e.path.every((function(t,e){return t===n.path[e]})))},t.prototype._readFormAndValidate=function(){if(!this._root)return null;var t=this._root.querySelector("#"+this._textInputId),e=this._root.querySelector("#"+this._urlInputId),n=String((null==t?void 0:t.value)||"").trim(),r=String((null==e?void 0:e.value)||"").trim();return r&&(r=Ja(r))?(n||(n=r),{text:n,url:r}):null},t.prototype._restoreEditorSelection=function(t){var e;try{null===(e=t.focus)||void 0===e||e.call(t)}catch(t){}if(this._savedSelection)try{if("function"==typeof t.select?t.select(this._savedSelection):r.Transforms.select(t,this._savedSelection),t.selection)return!0}catch(t){}try{"function"==typeof t.restoreSelection&&t.restoreSelection()}catch(t){}return!!t.selection},t.prototype._applyInsert=function(t){return Eo(this,void 0,void 0,(function(){var e,n,o,i,a;return wo(this,(function(u){$a(!0);try{if(!this._restoreEditorSelection(t))return[2];if(this._isInsertDisabled(t))return[2];if(!(e=this._readFormAndValidate()))return[2];if(!this._restoreEditorSelection(t))return[2];if(n=e.text,o=e.url,!(i=t.selection))return[2];if(this._isCollapsedSelection(i))"function"==typeof t.insertText?t.insertText(" "):r.Transforms.insertText(t," "),r.Transforms.insertNodes(t,{type:"link",url:o,children:[{text:n}]}),"function"==typeof t.insertFragment?t.insertFragment([{text:" "}]):r.Transforms.insertNodes(t,{text:" "});else{a="";try{a=String(r.Editor.string(t,i)||"")}catch(t){a=""}a!==n?("function"==typeof t.deleteFragment?t.deleteFragment():r.Transforms.delete(t),r.Transforms.insertNodes(t,{type:"link",url:o,children:[{text:n}]})):(r.Transforms.wrapNodes(t,{type:"link",url:o,children:[]},{split:!0}),r.Transforms.collapse(t,{edge:"end"}))}}catch(t){console.warn("[wangeditor] insertLinkForm apply",t)}finally{$a(!1);try{t.hidePanelOrModal()}catch(t){}Ka(!1,t),Xa(t)}return[2]}))}))},t.prototype._resolveEditLinkPath=function(t){var n=this.getSelectedLinkElem(t),o=null;if(n)try{o=e.DomEditor.findPath(t,n)}catch(t){o=null}if((!o||!o.length)&&Array.isArray(this._editLinkPath)&&this._editLinkPath.length){o=ko([],So(this._editLinkPath));try{var i=r.Editor.node(t,o),a=null==i?void 0:i[0];a&&e.DomEditor.checkNodeType(a,"link")&&(n=a)}catch(t){}}return{linkElem:n,path:o}},t.prototype._applyEdit=function(t){return Eo(this,void 0,void 0,(function(){var n,o,i,a,u,l,c,s,f;return wo(this,(function(d){$a(!0);try{if(this._restoreEditorSelection(t),!(n=this._readFormAndValidate()))return[2];if(o=n.text,i=n.url,this._restoreEditorSelection(t),a=this._resolveEditLinkPath(t),u=a.linkElem,(!(l=a.path)||!l.length)&&u)try{l=e.DomEditor.findPath(t,u)}catch(t){l=null}if(!(null==l?void 0:l.length))return[2];c=u?String(r.Node.string(u)||""):"",r.Transforms.setNodes(t,{url:i},{at:l}),o!==c&&(s=r.Editor.start(t,l),f=r.Editor.end(t,l),s&&f&&(r.Transforms.select(t,{anchor:s,focus:f}),r.Transforms.insertText(t,o)))}catch(t){console.warn("[wangeditor] editLinkForm apply",t)}finally{$a(!1);try{t.hidePanelOrModal()}catch(t){}Ka(!1,t),Xa(t)}return[2]}))}))},t.prototype._apply=function(t){return Eo(this,void 0,void 0,(function(){return wo(this,(function(e){switch(e.label){case 0:return t&&!t.isDestroyed&&this._root?"insert"!==this.mode?[3,2]:[4,this._applyInsert(t)]:[2];case 1:case 3:return e.sent(),[2];case 2:return[4,this._applyEdit(t)]}}))}))},t.prototype._onRootClick=function(t){var e,n,r=this._editor;if(r&&!r.isDestroyed){var o=t.target;if(o instanceof Element){var i=null===(n=null===(e=o.closest)||void 0===e?void 0:e.call(o,"[data-w-e-link-action]"))||void 0===n?void 0:n.getAttribute("data-w-e-link-action");if(i){if(t.preventDefault(),"cancel"===i)return r.hidePanelOrModal(),void Ka(!1,r);"ok"===i&&this._apply(r)}}}},t.prototype._onRootKeydown=function(t){"Enter"===t.key&&(t.target instanceof HTMLInputElement&&(t.preventDefault(),this._apply(this._editor)))},t.prototype.getModalContentElem=function(t){var n,o,i,a=this;this._editor=t;try{null===(i=null===(o=null===(n=e.DomEditor.getHoverbar)||void 0===n?void 0:n.call(e.DomEditor,t))||void 0===o?void 0:o.hideAndClean)||void 0===i||i.call(o)}catch(t){}if(Ka(!0,t),!this._root){var u=document.createElement("div");u.className="mdgch-edit-link-form w-e-link-form",u.addEventListener("click",(function(t){return a._onRootClick(t)})),u.addEventListener("keydown",(function(t){return a._onRootKeydown(t)})),this._root=u}this._editLinkPath=null,this._savedSelection=null;try{t.selection&&(this._savedSelection=JSON.parse(JSON.stringify(t.selection)))}catch(e){this._savedSelection=t.selection||null}var l="",c="";if("edit"===this.mode){var s=this.getSelectedLinkElem(t);if(l=(null==s?void 0:s.url)||"",c=s?String(r.Node.string(s)||""):"",s)try{var f=e.DomEditor.findPath(t,s);(null==f?void 0:f.length)&&(this._editLinkPath=ko([],So(f)))}catch(t){this._editLinkPath=null}}else{var d=t.selection;if(d&&!this._isCollapsedSelection(d))try{c=String(r.Editor.string(t,d)||"")}catch(t){c=""}l=""}this._root.innerHTML='\n <div class="mdgch-edit-link-row">\n <span class="mdgch-edit-link-label">ๆ–‡ๆœฌ</span>\n <input type="text" class="mdgch-edit-link-input" id="'+this._textInputId+'" autocomplete="off" />\n </div>\n <div class="mdgch-edit-link-row">\n <span class="mdgch-edit-link-label">้“พๆŽฅ</span>\n <input type="text" class="mdgch-edit-link-input" id="'+this._urlInputId+'" autocomplete="off" />\n </div>\n <div class="mdgch-edit-link-actions">\n <button type="button" class="mdgch-edit-link-btn mdgch-edit-link-btn-cancel" data-w-e-link-action="cancel"><span>ๅ–ๆถˆ</span></button>\n <button type="button" class="mdgch-edit-link-btn mdgch-edit-link-btn-ok" data-w-e-link-action="ok"><span>็กฎๅฎš</span></button>\n </div>\n ';var p=this._root.querySelector("#"+this._textInputId),h=this._root.querySelector("#"+this._urlInputId);return p&&(p.value=c),h&&(h.value=l),setTimeout((function(){var t;null===(t=null==p?void 0:p.focus)||void 0===t||t.call(p)}),0),this._root},t}(),Qa=function(){function t(){this.title=e.t("link.view"),this.iconSvg=Qo,this.tag="button",this.alwaysEnable=!0}return t.prototype._hrefFromSelection=function(t){try{var n=e.DomEditor.getSelectedNodeByType(t,"link"),r=String((null==n?void 0:n.url)||"").trim();if(r&&"#"!==r&&!/^javascript:/i.test(r))return r}catch(t){}return""},t.prototype.getValue=function(t){return this._hrefFromSelection(t)||function(){try{if(Ua)return Ua()||""}catch(t){}try{if("undefined"!=typeof window)return String(window.__wELinkHoverHref||"")}catch(t){}return""}()||""},t.prototype.isActive=function(){return!1},t.prototype.isDisabled=function(t){return!this.getValue(t)},t.prototype.exec=function(t,e){var n="string"==typeof e?e.trim():"";n&&"#"!==n&&!/^javascript:/i.test(n)||(n=String(this.getValue(t)||"")),(n=Ja(n)||n)&&window.open(n,"_blank","noopener,noreferrer")},t}();var Za={checkLink:function(t,e){return!0},parseLinkUrl:function(t){return t}},tu={renderElems:[ja],elemsToHtml:[za],parseElemsHtml:[Ca],menus:[{key:"insertLink",factory:function(){return new Ya("insert")},config:Za},{key:"editLink",factory:function(){return new Ya("edit")},config:Za},{key:"unLink",factory:function(){return new _a}},{key:"viewLink",factory:function(){return new Ba}},{key:"insertLinkForm",factory:function(){return new Ya("insert")},config:Za},{key:"editLinkForm",factory:function(){return new Ya("edit")},config:Za},{key:"viewLinkOpen",factory:function(){return new Qa}}],editorPlugin:function(t){var n=t.isInline,o=t.insertData,i=t.normalizeNode;t.insertNode;var a=t.insertText,u=t;return u.isInline=function(t){return"link"===t.type||n(t)},u.insertText=function(t){var n=u.selection;if(t&&n&&r.Range.isCollapsed(n)){var o=r.Editor.above(u,{at:n,match:function(t){return e.DomEditor.checkNodeType(t,"link")}});if(o){var i=So(o,2)[1];if(r.Editor.isEnd(u,n.anchor,i)){var l=r.Editor.after(u,i);if(l)r.Transforms.select(u,l);else{var c=r.Path.next(i);r.Transforms.insertNodes(u,{text:""},{at:c}),r.Transforms.select(u,{path:c,offset:0})}return void a(t)}}}a(t)},u.insertData=function(t){var e=t.getData("text/plain");if(ka(e)){if(!Oa(u)){var n=u.selection;if(null!=n){var i=r.Editor.string(u,n);!function(t,e,n){Eo(this,void 0,void 0,(function(){var o,i,a;return wo(this,(function(u){switch(u.label){case 0:return n?(e||(e=n),t.restoreSelection(),Oa(t)?[2]:[4,Pa("insertLink",t,e,n)]):[2];case 1:return u.sent()?[4,Ia("insertLink",t,n)]:[2];case 2:return o=u.sent(),null==(i=t.selection)||(r.Range.isCollapsed(i)?(t.insertText(" "),a=Ha(o,e),r.Transforms.insertNodes(t,a),t.insertFragment([{text:" "}])):r.Editor.string(t,i)!==e?(t.deleteFragment(),a=Ha(o,e),r.Transforms.insertNodes(t,a)):(a=Ha(o),r.Transforms.wrapNodes(t,a,{split:!0}),r.Transforms.collapse(t,{edge:"end"}))),[2]}}))}))}(u,i,e)}}}else o(t)},u.normalizeNode=function(t){var n=So(t,2),o=n[0],a=n[1];return"link"!==e.DomEditor.getNodeType(o)?i([o,a]):""===r.Node.string(o)?r.Transforms.removeNodes(u,{at:a}):i([o,a])},u}};var eu=I(1..valueOf),nu=m.RangeError,ru=m.RangeError,ou=m.String,iu=Math.floor,au=I((function(t){var e=wn(V(this)),n="",r=ge(t);if(r<0||r==1/0)throw nu("Wrong number of repetitions");for(;r>0;(r>>>=1)&&(e+=e))1&r&&(n+=e);return n})),uu=I("".slice),lu=I(1..toFixed),cu=function(t,e,n){return 0===e?n:e%2==1?cu(t,e-1,n*t):cu(t*t,e/2,n)},su=function(t,e,n){for(var r=-1,o=n;++r<6;)o+=e*t[r],t[r]=o%1e7,o=iu(o/1e7)},fu=function(t,e){for(var n=6,r=0;--n>=0;)r+=t[n],t[n]=iu(r/e),r=r%e*1e7},du=function(t){for(var e=6,n="";--e>=0;)if(""!==n||0===e||0!==t[e]){var r=ou(t[e]);n=""===n?r:n+au("0",7-r.length)+r}return n},pu=b((function(){return"0.000"!==lu(8e-5,3)||"1"!==lu(.9,0)||"1.25"!==lu(1.255,2)||"1000000000000000128"!==lu(0xde0b6b3a7640080,0)}))||!b((function(){lu({})}));function hu(t,n){return"w-e-image-container-"+e.DomEditor.findKey(t,n).id}function vu(t,o,i,a){var u=l.default("body"),s=hu(t,o),f=a.width,d=a.height,p=0,h=0,v=0,g=!1,y=null;function m(n){y=function(){var t=l.default("#"+s);if(0===t.length)throw new Error("Cannot find image container elem");return t}(),p=n;var r=y.find("img");if(0===r.length)throw new Error("Cannot find image elem");h=r.width(),v=r.height(),u.on("mousemove",b),u.on("mouseup",E);var o=e.DomEditor.getHoverbar(t);o&&o.hideAndClean()}var b=c.default((function(t){t.preventDefault();var e=t.clientX,n=h+(g?p-e:e-p),r=v*(n/h);null!=y&&(n<=15||r<=15||(y.css("width",n+"px"),y.css("height",r+"px")))}),100);function E(n){if(u.off("mousemove",b),null!=y){var i=y.width().toFixed(2),a=y.height().toFixed(2),l={style:bo(bo({},o.style),{width:i+"px",height:a+"px"})};r.Transforms.setNodes(t,l,{at:e.DomEditor.findPath(t,o)}),u.off("mouseup",E)}}var w={};return f&&(w.width=f),d&&(w.height=d),n.jsx("div",{id:s,style:w,className:"w-e-image-container w-e-selected-image-container",on:{mousedown:function(t){var e=l.default(t.target);e.hasClass("w-e-image-dragger")&&(t.preventDefault(),(e.hasClass("left-top")||e.hasClass("left-bottom"))&&(g=!0),m(t.clientX))}}},i,n.jsx("div",{className:"w-e-image-dragger left-top"}),n.jsx("div",{className:"w-e-image-dragger right-top"}),n.jsx("div",{className:"w-e-image-dragger left-bottom"}),n.jsx("div",{className:"w-e-image-dragger right-bottom"}))}qe({target:"Number",proto:!0,forced:pu},{toFixed:function(t){var e,n,r,o,i=eu(this),a=ge(t),u=[0,0,0,0,0,0],l="",c="0";if(a<0||a>20)throw ru("Incorrect fraction digits");if(i!=i)return"NaN";if(i<=-1e21||i>=1e21)return ou(i);if(i<0&&(l="-",i=-i),i>1e-21)if(n=(e=function(t){for(var e=0,n=t;n>=4096;)e+=12,n/=4096;for(;n>=2;)e+=1,n/=2;return e}(i*cu(2,69,1))-69)<0?i*cu(2,-e,1):i/cu(2,e,1),n*=4503599627370496,(e=52-e)>0){for(su(u,0,n),r=a;r>=7;)su(u,1e7,0),r-=7;for(su(u,cu(10,r,1),0),r=e-1;r>=23;)fu(u,1<<23),r-=23;fu(u,1<<r),su(u,1,1),fu(u,2),c=du(u)}else su(u,0,n),su(u,1<<-e,0),c=du(u)+au("0",a);return c=a>0?l+((o=c.length)<=a?"0."+au("0",a-o)+c:uu(c,0,o-a)+"."+uu(c,o-a)):l+c}});var gu={type:"image",renderElem:function(t,r,o){var i=t,a=i.src,u=i.alt,l=void 0===u?"":u,c=i.href,s=void 0===c?"":c,f=i.style,d=void 0===f?{}:f,p=d.width,h=void 0===p?"":p,v=d.height,g=void 0===v?"":v,y=e.DomEditor.isNodeSelected(o,t),m={};h&&(m.width="100%"),g&&(m.height="100%");var b=n.jsx("img",{style:m,src:a,alt:l,"data-href":s}),E=o.isDisabled();return y&&!E?vu(o,t,b,{width:h,height:g}):function(t,e,r,o){var i=o.width,a=o.height,u={};i&&(u.width=i),a&&(u.height=a);var l=hu(t,e);return n.jsx("div",{id:l,style:u,className:"w-e-image-container"},r)}(o,t,b,{width:h,height:g})}};var yu={type:"image",elemToHtml:function(t,e){var n=t,r=n.src,o=n.alt,i=void 0===o?"":o,a=n.href,u=void 0===a?"":a,l=n.style,c=void 0===l?{}:l,s=c.width,f=void 0===s?"":s,d=c.height,p=void 0===d?"":d,h="";return f&&(h+="width: "+f+";"),p&&(h+="height: "+p+";"),'<img src="'+r+'" alt="'+i+'" data-href="'+u+'" style="'+h+'"/>'}};var mu={selector:"img:not([data-w-e-type])",parseElemHtml:function(t,e,n){var r=l.default(t),o=r.attr("data-href")||"";try{o=decodeURIComponent(o)}catch(t){}return{type:"image",src:r.attr("src")||"",alt:r.attr("alt")||"",href:o,style:{width:go(r,"width"),height:go(r,"height")},children:[{text:""}]}}};function bu(t,e,n,r,o){return void 0===r&&(r=""),void 0===o&&(o=""),Eo(this,void 0,void 0,(function(){var i,a;return wo(this,(function(u){switch(u.label){case 0:return(i=e.getMenuConfig(t).checkImage)?[4,i(n,r,o)]:[3,2];case 1:if("string"==typeof(a=u.sent()))return e.alert(a,"error"),[2,!1];if(null==a)return[2,!1];u.label=2;case 2:return[2,!0]}}))}))}function Eu(t,e,n){return Eo(this,void 0,void 0,(function(){var r;return wo(this,(function(o){switch(o.label){case 0:return(r=e.getMenuConfig(t).parseImageSrc)?[4,r(n)]:[3,2];case 1:return[2,o.sent()];case 2:return[2,n]}}))}))}function wu(t,n,o,i){return void 0===o&&(o=""),void 0===i&&(i=""),Eo(this,void 0,void 0,(function(){var a,u,l;return wo(this,(function(c){switch(c.label){case 0:return[4,bu("insertImage",t,n,o,i)];case 1:return c.sent()?[4,Eu("insertImage",t,n)]:[2];case 2:return a=c.sent(),u={type:"image",src:La(a),href:i,alt:o,style:{},children:[{text:""}]},null===t.selection&&t.restoreSelection(),e.DomEditor.getSelectedNodeByType(t,"image")&&t.move(1),Su(t)?[2]:(r.Transforms.insertNodes(t,u),(l=t.getMenuConfig("insertImage").onInsertedImage)&&l(u),[2])}}))}))}function xu(t,n,o,i,a){return void 0===o&&(o=""),void 0===i&&(i=""),void 0===a&&(a={}),Eo(this,void 0,void 0,(function(){var u,l,c,s,f,d;return wo(this,(function(p){switch(p.label){case 0:return[4,bu("editImage",t,n,o,i)];case 1:return p.sent()?[4,Eu("editImage",t,n)]:[2];case 2:return u=p.sent(),null==(l=e.DomEditor.getSelectedNodeByType(t,"image"))?[2]:(c=l.style,s={src:u,alt:o,href:i,style:bo(bo({},void 0===c?{}:c),a)},r.Transforms.setNodes(t,s,{match:function(t){return e.DomEditor.checkNodeType(t,"image")}}),f=e.DomEditor.getSelectedNodeByType(t,"image"),(d=t.getMenuConfig("editImage").onUpdatedImage)&&d(f),[2])}}))}))}function Su(t){var n=t.selection;return null==n||(!r.Range.isCollapsed(n)||!!So(r.Editor.nodes(t,{match:function(n){var o=e.DomEditor.getNodeType(n);return"code"===o||("pre"===o||("link"===o||("list-item"===o||(!!o.startsWith("header")||("blockquote"===o||!!r.Editor.isVoid(t,n))))))},universal:!0}),1)[0])}function ku(){return Ma("w-e-insert-image")}var Tu=function(){function t(){this.title=e.t("image.netImage"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M959.877 128l0.123 0.123v767.775l-0.123 0.122H64.102l-0.122-0.122V128.123l0.122-0.123h895.775zM960 64H64C28.795 64 0 92.795 0 128v768c0 35.205 28.795 64 64 64h896c35.205 0 64-28.795 64-64V128c0-35.205-28.795-64-64-64zM832 288.01c0 53.023-42.988 96.01-96.01 96.01s-96.01-42.987-96.01-96.01S682.967 192 735.99 192 832 234.988 832 288.01zM896 832H128V704l224.01-384 256 320h64l224.01-192z"></path></svg>',this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=ku(),this.altInputId=ku(),this.hrefInputId=ku(),this.buttonId=ku()}return t.prototype.getValue=function(t){return""},t.prototype.isActive=function(t){return!1},t.prototype.exec=function(t,e){},t.prototype.isDisabled=function(t){return Su(t)},t.prototype.getModalPositionNode=function(t){return null},t.prototype.getModalContentElem=function(t){var n=this,r=this,o=r.srcInputId,i=r.altInputId,a=r.hrefInputId,u=r.buttonId,c=So(e.genModalInputElems(e.t("image.src"),o),2),s=c[0],f=c[1],d=l.default(f),p=So(e.genModalInputElems(e.t("image.desc"),i),2),h=p[0],v=p[1],g=l.default(v),y=So(e.genModalInputElems(e.t("image.link"),a),2),m=y[0],b=y[1],E=l.default(b),w=So(e.genModalButtonElems(u,e.t("common.ok")),1)[0];if(null==this.$content){var x=l.default("<div></div>");x.on("click","#"+u,(function(e){e.preventDefault();var r=x.find("#"+o).val().trim(),u=x.find("#"+i).val().trim(),l=x.find("#"+a).val().trim();n.insertImage(t,r,u,l),t.hidePanelOrModal()})),this.$content=x}var S=this.$content;return S.empty(),S.append(s),S.append(h),S.append(m),S.append(w),d.val(""),g.val(""),E.val(""),setTimeout((function(){d.focus()})),S[0]},t.prototype.insertImage=function(t,e,n,r){void 0===n&&(n=""),void 0===r&&(r=""),e&&(t.restoreSelection(),this.isDisabled(t)||wu(t,e,n,r))},t}(),Nu=function(){function t(){this.title=e.t("image.delete"),this.iconSvg=ei,this.tag="button"}return t.prototype.getValue=function(t){return""},t.prototype.isActive=function(t){return!1},t.prototype.isDisabled=function(t){return null==t.selection||null==e.DomEditor.getSelectedNodeByType(t,"image")},t.prototype.exec=function(t,n){this.isDisabled(t)||r.Transforms.removeNodes(t,{match:function(t){return e.DomEditor.checkNodeType(t,"image")}})},t}();function Au(){return Ma("w-e-edit-image")}var Du=function(){function t(){this.title=e.t("image.edit"),this.iconSvg=Yo,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=Au(),this.altInputId=Au(),this.hrefInputId=Au(),this.buttonId=Au()}return t.prototype.getValue=function(t){return""},t.prototype.getImageNode=function(t){return e.DomEditor.getSelectedNodeByType(t,"image")},t.prototype.isActive=function(t){return!1},t.prototype.exec=function(t,e){},t.prototype.isDisabled=function(t){var n=t.selection;return null==n||(!r.Range.isCollapsed(n)||null==e.DomEditor.getSelectedNodeByType(t,"image"))},t.prototype.getModalPositionNode=function(t){return this.getImageNode(t)},t.prototype.getModalContentElem=function(t){var n=this,r=this,o=r.srcInputId,i=r.altInputId,a=r.hrefInputId,u=r.buttonId,c=this.getImageNode(t);if(null==c)throw new Error("Not found selected image node");var s=So(e.genModalInputElems(e.t("image.src"),o),2),f=s[0],d=s[1],p=l.default(d),h=So(e.genModalInputElems(e.t("image.desc"),i),2),v=h[0],g=h[1],y=l.default(g),m=So(e.genModalInputElems(e.t("image.link"),a),2),b=m[0],E=m[1],w=l.default(E),x=So(e.genModalButtonElems(u,e.t("common.ok")),1)[0];if(null==this.$content){var S=l.default("<div></div>");S.on("click","#"+u,(function(e){e.preventDefault();var r=S.find("#"+o).val(),u=S.find("#"+i).val(),l=S.find("#"+a).val();n.updateImage(t,r,u,l),t.hidePanelOrModal()})),this.$content=S}var k=this.$content;k.empty(),k.append(f),k.append(v),k.append(b),k.append(x);var T=c,N=T.src,A=T.alt,D=void 0===A?"":A,M=T.href,L=void 0===M?"":M;return p.val(N),y.val(D),w.val(L),setTimeout((function(){p.focus()})),k[0]},t.prototype.updateImage=function(t,e,n,r,o){void 0===n&&(n=""),void 0===r&&(r=""),void 0===o&&(o={}),e&&(t.restoreSelection(),this.isDisabled(t)||xu(t,e,n,r,o))},t}(),Mu=function(){function t(){this.title=e.t("image.viewLink"),this.iconSvg=Qo,this.tag="button"}return t.prototype.getValue=function(t){var n=e.DomEditor.getSelectedNodeByType(t,"image");return n&&n.href||""},t.prototype.isActive=function(t){return!1},t.prototype.isDisabled=function(t){return null==t.selection||!this.getValue(t)},t.prototype.exec=function(t,e){if(!this.isDisabled(t)){if(!e||"string"!=typeof e)throw new Error("View image link failed, image.href is '"+e+"'");window.open(e,"_blank")}},t}(),Lu=function(){function t(){this.tag="button"}return t.prototype.getValue=function(t){return""},t.prototype.isActive=function(t){return!1},t.prototype.getSelectedNode=function(t){return e.DomEditor.getSelectedNodeByType(t,"image")},t.prototype.isDisabled=function(t){return null==t.selection||null==this.getSelectedNode(t)},t.prototype.exec=function(t,n){if(!this.isDisabled(t)){var o=this.getSelectedNode(t);if(null!=o){var i=e.DomEditor.getHoverbar(t);i&&i.hideAndClean();var a=o.style,u={style:bo(bo({},void 0===a?{}:a),{width:this.value,height:""})};r.Transforms.setNodes(t,u,{match:function(t){return e.DomEditor.checkNodeType(t,"image")}})}}},t}(),Pu=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.title="30%",e.value="30%",e}return mo(e,t),e}(Lu),Iu=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.title="50%",e.value="50%",e}return mo(e,t),e}(Lu),Ou=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.title="75%",e.value="75%",e}return mo(e,t),e}(Lu),Hu=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.title="100%",e.value="100%",e}return mo(e,t),e}(Lu),ju=function(){function t(){this.title=e.t("common.enterAbove"),this.iconSvg=pi,this.tag="button"}return t.prototype.getValue=function(t){return""},t.prototype.isActive=function(t){return!1},t.prototype.isDisabled=function(t){return null==t.selection||null==e.DomEditor.getSelectedNodeByType(t,"image")},t.prototype.exec=function(t,n){if(!this.isDisabled(t)){var o=e.DomEditor.getSelectedNodeByType(t,"image");if(null!=o){var i;try{i=e.DomEditor.findPath(t,o)}catch(t){return}if(null==i?void 0:i.length){var a=[i[0]],u=e.genEmptyParagraph(t);e.pinEditorScrollDuring(t,(function(){r.Transforms.insertNodes(t,u,{at:a});try{r.Transforms.select(t,r.Editor.start(t,[a[0]+1]))}catch(t){}}))}}}},t}(),zu=function(){function t(){this.title=e.t("common.cancelEnter"),this.iconSvg=hi,this.tag="button"}return t.prototype.getValue=function(t){return""},t.prototype.isActive=function(t){return!1},t.prototype.isDisabled=function(t){if(null==t.selection)return!0;var n=e.DomEditor.getSelectedNodeByType(t,"image");if(null==n)return!0;try{var r=e.DomEditor.findPath(t,n);return!e.canRemoveEmptyLineAboveBlock(t,r)}catch(t){return!0}},t.prototype.exec=function(t,n){if(!this.isDisabled(t)){var r=e.DomEditor.getSelectedNodeByType(t,"image");if(null!=r)try{var o=e.DomEditor.findPath(t,r);e.removeEmptyLineAboveTopLevelBlock(t,o)}catch(t){}}},t}();var Cu={onInsertedImage:function(t){},onUpdatedImage:function(t){},checkImage:function(t,e,n){return!0},parseImageSrc:function(t){return t}},_u={renderElems:[gu],elemsToHtml:[yu],parseElemsHtml:[mu],menus:[{key:"insertImage",factory:function(){return new Tu},config:Cu},{key:"deleteImage",factory:function(){return new Nu}},{key:"editImage",factory:function(){return new Du},config:Cu},{key:"viewImageLink",factory:function(){return new Mu}},{key:"imageWidth30",factory:function(){return new Pu}},{key:"imageWidth50",factory:function(){return new Iu}},{key:"imageWidth75",factory:function(){return new Ou}},{key:"imageWidth100",factory:function(){return new Hu}},{key:"imageEnter",factory:function(){return new ju}},{key:"imageCancelEnter",factory:function(){return new zu}}],editorPlugin:function(t){var e=t.isInline,n=t.isVoid;t.insertNode;var r=t;return r.isInline=function(t){return"image"===t.type||e(t)},r.isVoid=function(t){return"image"===t.type||n(t)},r}};var Bu={type:"todo",renderElem:function(t,o,i){var a=!1;i.isDisabled()&&(a=!0);var u=t.checked,l=n.jsx("div",{style:{margin:"5px 0"}},n.jsx("span",{contentEditable:!1,style:{marginRight:"0.5em"}},n.jsx("input",{type:"checkbox",checked:u,disabled:a,on:{change:function(n){var o=e.DomEditor.findPath(i,t),a={checked:n.target.checked};r.Transforms.setNodes(i,a,{at:o})}}})),n.jsx("span",null,o));return l}};var Vu=function(){function t(){this.title=e.t("todo.todo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M278.755556 403.911111l-79.644445 79.644445L455.111111 739.555556l568.888889-568.888889-79.644444-79.644445L455.111111 580.266667l-176.355555-176.355556zM910.222222 910.222222H113.777778V113.777778h568.888889V0H113.777778C51.2 0 0 51.2 0 113.777778v796.444444c0 62.577778 51.2 113.777778 113.777778 113.777778h796.444444c62.577778 0 113.777778-51.2 113.777778-113.777778V455.111111h-113.777778v455.111111z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(t){return""},t.prototype.isActive=function(t){return!!e.DomEditor.getSelectedNodeByType(t,"todo")},t.prototype.isDisabled=function(t){return null==t.selection||!!e.DomEditor.getSelectedElems(t).some((function(e){if(r.Editor.isVoid(t,e)&&r.Editor.isBlock(t,e))return!0;var n=e.type;return!!["pre","table","list-item"].includes(n)||void 0}))},t.prototype.exec=function(t,e){var n=this.isActive(t);r.Transforms.setNodes(t,{type:n?"paragraph":"todo"})},t}();var Ru={renderElems:[Bu],elemsToHtml:[{type:"todo",elemToHtml:function(t,e){return'<div data-w-e-type="todo"><input type="checkbox" disabled '+(t.checked?"checked":"")+">"+e+"</div>"}}],preParseHtml:[{selector:"ul.w-e-todo",preParseHtml:function(t){var e=l.default(t).find("li"),n=l.default('<div data-w-e-type="todo"></div>'),r=e.find("input[type]");return n.append(r),e.children()[0].remove(),n[0].innerHTML=n[0].innerHTML+e[0].innerHTML,n[0]}}],parseElemsHtml:[{selector:'div[data-w-e-type="todo"]',parseElemHtml:function(t,e,n){var o=l.default(t);0===(e=e.filter((function(t){return!!r.Text.isText(t)||!!n.isInline(t)}))).length&&(e=[{text:o.text().replace(/\s+/gm," ")}]);var i=!1;return null!=o.find('input[type="checkbox"]').attr("checked")&&(i=!0),{type:"todo",checked:i,children:e}}}],menus:[{key:"todo",factory:function(){return new Vu}}],editorPlugin:function(t){var n=t.deleteBackward,o=t;return o.deleteBackward=function(o){var i=t.selection;if(i&&r.Range.isCollapsed(i)){var a=e.DomEditor.getSelectedNodeByType(t,"todo");if(a&&0===r.Node.string(a).length)return void r.Transforms.setNodes(t,{type:"paragraph"},{mode:"highest"})}n(o)},o}},Fu=I([].join),qu=_!=Object,Wu=Co("join",",");function Gu(t){var e,r=t.action,o=t.title,i=t.iconSvg,a=t.actionAttr,u=t.className,l=t.disabled,c=void 0!==l&&l,s=t.active,f=[u,c?"is-disabled":"",void 0!==s&&s?"is-active":""].filter(Boolean).join(" ");return n.h("button",{attrs:bo((e={type:"button",class:f,title:o},e[a]=r,e["aria-label"]=o,e),c?{disabled:"disabled"}:{}),props:{contentEditable:!1,disabled:c},hook:{insert:function(t){var e=t.elm;e&&(e.innerHTML=i)},postpatch:function(t,e){var n,r=e.elm;"1"!==(null===(n=null==r?void 0:r.getAttribute)||void 0===n?void 0:n.call(r,"data-pre-copy-ok"))&&r&&r.innerHTML!==i&&(r.innerHTML=i)}},on:{mousedown:function(t){t.preventDefault(),t.stopPropagation()}}})}function $u(t){return n.h("span",{attrs:{class:t}},[])}qe({target:"Array",proto:!0,forced:qu||!Wu},{join:function(t){return Fu(R(this),void 0===t?",":t)}});var Uu='<svg viewBox="0 0 1255 1024"><path d="M1095.111111 731.477333h-625.777778V1024L0 658.318222 469.333333 292.408889v292.636444h625.777778V0h156.444445v731.477333z"></path></svg>',Ku='<svg viewBox="0 0 1024 1024"><path d="M436 680H124v-56h312l-124-124 42-42 220 220-220 220-42-42 124-124z"></path><path d="M198 128l64-64 628 628-64 64z"></path></svg>',Xu='<svg viewBox="0 0 1024 1024"><path d="M360 184h304v-40H360v40zM184 264h656v72H184V264zm72 120v456c0 22 18 40 40 40h432c22 0 40-18 40-40V384H256zm120 88h64v280h-64V472zm208 0h64v280h-64V472z"></path></svg>';var Ju={type:"blockquote",renderElem:function(t,r,o){var i=null==r?[]:Array.isArray(r)?r:[r];if(o.isDisabled())return n.h("blockquote",{},i);var a=!1;try{var u=e.DomEditor.findPath(o,t);a=e.canRemoveEmptyLineAboveBlock(o,u)}catch(t){a=!1}var l=n.h("div",{attrs:{class:"mdg-bq-toolbar",contenteditable:"false","data-mdg-bq-toolbar":"1"},props:{contentEditable:!1},on:{mousedown:function(t){t.preventDefault(),t.stopPropagation()},click:function(n){var r,i,a;n.preventDefault(),n.stopPropagation();var u=n.target,l=null===(r=null==u?void 0:u.closest)||void 0===r?void 0:r.call(u,"button[data-bq-action]"),c=null===(i=null==l?void 0:l.getAttribute)||void 0===i?void 0:i.call(l,"data-bq-action");c&&!(null===(a=null==l?void 0:l.classList)||void 0===a?void 0:a.contains("is-disabled"))&&function(t,n,r){if(t&&!t.isDestroyed&&!t.isDisabled()){var o=e.resolveElemPath(t,n);if(null==o?void 0:o.length)if("enter"!==r)if("cancel-enter"!==r)if("unquote"!==r){if("remove"===r){var i=e.DomEditor.getSelectedNodeByType(t,"blockquote")||n;try{var a=e.DomEditor.findPath(t,i);e.replaceBlockWithEmptyLine(t,a,i)}catch(r){e.replaceBlockWithEmptyLine(t,o,n)}}}else e.setBlockToParagraph(t,o);else e.removeEmptyLineAboveTopLevelBlock(t,o);else e.insertEmptyLineAboveAtPath(t,o)}}(o,t,c)}}},[Gu({action:"enter",title:"ๅ›ž่ฝฆ๏ผˆไธŠๆ–น็ฉบ่กŒ๏ผ‰",iconSvg:Uu,actionAttr:"data-bq-action",className:"mdg-bq-btn"}),Gu({action:"cancel-enter",title:"ๅ–ๆถˆๅ›ž่ฝฆ",iconSvg:Ku,actionAttr:"data-bq-action",className:"mdg-bq-btn",disabled:!a}),$u("mdg-bq-toolbar-spacer"),Gu({action:"unquote",title:"ๅ–ๆถˆๅผ•็”จ",iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M422.6 907.1H133.4c-32.6 0-59-26.4-59-59V608.2l-4-14.9c0-315.9 125.5-485.1 376.5-507.5v59.8C280.7 180.4 239.3 315.8 239.3 442.4v41.2l31.5 12.3h151.8c32.6 0 59 26.4 59 59v293.2c0 32.5-26.4 59-59 59z m472 0H605.4c-32.6 0-59-26.4-59-59V608.2l-4-14.9c0-315.9 125.5-485.1 376.5-507.5v59.8C752.7 180.4 711.3 315.8 711.3 442.4v41.2l31.5 12.3h151.8c32.6 0 59 26.4 59 59v293.2c0 32.5-26.4 59-59 59z"></path><path d="M198 128l64-64 628 628-64 64z"></path></svg>',actionAttr:"data-bq-action",className:"mdg-bq-btn"}),Gu({action:"remove",title:"ๅˆ ้™ค",iconSvg:Xu,actionAttr:"data-bq-action",className:"mdg-bq-btn"})]);return n.h("blockquote",{attrs:{class:"mdg-bq-with-toolbar"}},ko(ko([],So(i)),[l]))}};var Yu={type:"blockquote",elemToHtml:function(t,e){return"<blockquote>"+e+"</blockquote>"}};var Qu,Zu,tl={selector:"blockquote:not([data-w-e-type])",parseElemHtml:function(t,e,n){var o=l.default(t);return 0===(e=e.filter((function(t){return!!r.Text.isText(t)||!!n.isInline(t)}))).length&&(e=[{text:o.text().replace(/\s+/gm," ")}]),{type:"blockquote",children:e}}},el=function(){function t(){this.title=e.t("blockQuote.title"),this.iconSvg=ni,this.tag="button"}return t.prototype.getValue=function(t){return""},t.prototype.isActive=function(t){return!!e.DomEditor.getSelectedNodeByType(t,"blockquote")},t.prototype.isDisabled=function(t){return null==t.selection||!So(r.Editor.nodes(t,{match:function(t){var n=e.DomEditor.getNodeType(t);return"paragraph"===n||"blockquote"===n},universal:!0,mode:"highest"}),1)[0]},t.prototype.exec=function(t,e){if(!this.isDisabled(t)){var n=this.isActive(t)?"paragraph":"blockquote";r.Transforms.setNodes(t,{type:n},{mode:"highest"})}},t}(),nl=function(t){return t&&t.Math==Math&&t},rl=nl("object"==typeof globalThis&&globalThis)||nl("object"==typeof window&&window)||nl("object"==typeof self&&self)||nl("object"==typeof d&&d)||function(){return this}()||Function("return this")(),ol=Function.prototype,il=ol.apply,al=ol.bind,ul=ol.call,ll="object"==typeof Reflect&&Reflect.apply||(al?ul.bind(il):function(){return ul.apply(il,arguments)}),cl=Function.prototype,sl=cl.bind,fl=cl.call,dl=sl&&sl.bind(fl),pl=sl?function(t){return t&&dl(fl,t)}:function(t){return t&&function(){return fl.apply(t,arguments)}},hl=function(t){return"function"==typeof t},vl=function(t){try{return!!t()}catch(t){return!0}},gl=!vl((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),yl=Function.prototype.call,ml=yl.bind?yl.bind(yl):function(){return yl.apply(yl,arguments)},bl={}.propertyIsEnumerable,El=Object.getOwnPropertyDescriptor,wl=El&&!bl.call({1:2},1)?function(t){var e=El(this,t);return!!e&&e.enumerable}:bl,xl={f:wl},Sl=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},kl=pl({}.toString),Tl=pl("".slice),Nl=function(t){return Tl(kl(t),8,-1)},Al=rl.Object,Dl=pl("".split),Ml=vl((function(){return!Al("z").propertyIsEnumerable(0)}))?function(t){return"String"==Nl(t)?Dl(t,""):Al(t)}:Al,Ll=rl.TypeError,Pl=function(t){if(null==t)throw Ll("Can't call method on "+t);return t},Il=function(t){return Ml(Pl(t))},Ol=function(t){return"object"==typeof t?null!==t:hl(t)},Hl={},jl=function(t){return hl(t)?t:void 0},zl=function(t,e){return arguments.length<2?jl(Hl[t])||jl(rl[t]):Hl[t]&&Hl[t][e]||rl[t]&&rl[t][e]},Cl=pl({}.isPrototypeOf),_l=zl("navigator","userAgent")||"",Bl=rl.process,Vl=rl.Deno,Rl=Bl&&Bl.versions||Vl&&Vl.version,Fl=Rl&&Rl.v8;Fl&&(Zu=(Qu=Fl.split("."))[0]>0&&Qu[0]<4?1:+(Qu[0]+Qu[1])),!Zu&&_l&&(!(Qu=_l.match(/Edge\/(\d+)/))||Qu[1]>=74)&&(Qu=_l.match(/Chrome\/(\d+)/))&&(Zu=+Qu[1]);var ql=Zu,Wl=!!Object.getOwnPropertySymbols&&!vl((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&ql&&ql<41})),Gl=Wl&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,$l=rl.Object,Ul=Gl?function(t){return"symbol"==typeof t}:function(t){var e=zl("Symbol");return hl(e)&&Cl(e.prototype,$l(t))},Kl=rl.String,Xl=rl.TypeError,Jl=function(t){if(hl(t))return t;throw Xl(function(t){try{return Kl(t)}catch(t){return"Object"}}(t)+" is not a function")},Yl=rl.TypeError,Ql=Object.defineProperty,Zl="__core-js_shared__",tc=rl[Zl]||function(t,e){try{Ql(rl,t,{value:e,configurable:!0,writable:!0})}catch(n){rl[t]=e}return e}(Zl,{}),ec=tc,nc=h((function(t){(t.exports=function(t,e){return ec[t]||(ec[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.19.3",mode:"pure",copyright:"ยฉ 2021 Denis Pushkarev (zloirock.ru)"})})),rc=rl.Object,oc=function(t){return rc(Pl(t))},ic=pl({}.hasOwnProperty),ac=Object.hasOwn||function(t,e){return ic(oc(t),e)},uc=0,lc=Math.random(),cc=pl(1..toString),sc=function(t){return"Symbol("+(void 0===t?"":t)+")_"+cc(++uc+lc,36)},fc=nc("wks"),dc=rl.Symbol,pc=dc&&dc.for,hc=Gl?dc:dc&&dc.withoutSetter||sc,vc=function(t){if(!ac(fc,t)||!Wl&&"string"!=typeof fc[t]){var e="Symbol."+t;Wl&&ac(dc,t)?fc[t]=dc[t]:fc[t]=Gl&&pc?pc(e):hc(e)}return fc[t]},gc=rl.TypeError,yc=vc("toPrimitive"),mc=function(t,e){if(!Ol(t)||Ul(t))return t;var n,r,o=null==(n=t[yc])?void 0:Jl(n);if(o){if(void 0===e&&(e="default"),r=ml(o,t,e),!Ol(r)||Ul(r))return r;throw gc("Can't convert object to primitive value")}return void 0===e&&(e="number"),function(t,e){var n,r;if("string"===e&&hl(n=t.toString)&&!Ol(r=ml(n,t)))return r;if(hl(n=t.valueOf)&&!Ol(r=ml(n,t)))return r;if("string"!==e&&hl(n=t.toString)&&!Ol(r=ml(n,t)))return r;throw Yl("Can't convert object to primitive value")}(t,e)},bc=function(t){var e=mc(t,"string");return Ul(e)?e:e+""},Ec=rl.document,wc=Ol(Ec)&&Ol(Ec.createElement),xc=function(t){return wc?Ec.createElement(t):{}},Sc=!gl&&!vl((function(){return 7!=Object.defineProperty(xc("div"),"a",{get:function(){return 7}}).a})),kc=Object.getOwnPropertyDescriptor,Tc={f:gl?kc:function(t,e){if(t=Il(t),e=bc(e),Sc)try{return kc(t,e)}catch(t){}if(ac(t,e))return Sl(!ml(xl.f,t,e),t[e])}},Nc=/#|\.prototype\./,Ac=function(t,e){var n=Mc[Dc(t)];return n==Pc||n!=Lc&&(hl(e)?vl(e):!!e)},Dc=Ac.normalize=function(t){return String(t).replace(Nc,".").toLowerCase()},Mc=Ac.data={},Lc=Ac.NATIVE="N",Pc=Ac.POLYFILL="P",Ic=Ac,Oc=pl(pl.bind),Hc=function(t,e){return Jl(t),void 0===e?t:Oc?Oc(t,e):function(){return t.apply(e,arguments)}},jc=rl.String,zc=rl.TypeError,Cc=function(t){if(Ol(t))return t;throw zc(jc(t)+" is not an object")},_c=rl.TypeError,Bc=Object.defineProperty,Vc={f:gl?Bc:function(t,e,n){if(Cc(t),e=bc(e),Cc(n),Sc)try{return Bc(t,e,n)}catch(t){}if("get"in n||"set"in n)throw _c("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},Rc=gl?function(t,e,n){return Vc.f(t,e,Sl(1,n))}:function(t,e,n){return t[e]=n,t},Fc=Tc.f,qc=function(t){var e=function(n,r,o){if(this instanceof e){switch(arguments.length){case 0:return new t;case 1:return new t(n);case 2:return new t(n,r)}return new t(n,r,o)}return ll(t,this,arguments)};return e.prototype=t.prototype,e},Wc=function(t,e){var n,r,o,i,a,u,l,c,s=t.target,f=t.global,d=t.stat,p=t.proto,h=f?rl:d?rl[s]:(rl[s]||{}).prototype,v=f?Hl:Hl[s]||Rc(Hl,s,{})[s],g=v.prototype;for(o in e)n=!Ic(f?o:s+(d?".":"#")+o,t.forced)&&h&&ac(h,o),a=v[o],n&&(u=t.noTargetGet?(c=Fc(h,o))&&c.value:h[o]),i=n&&u?u:e[o],n&&typeof a==typeof i||(l=t.bind&&n?Hc(i,rl):t.wrap&&n?qc(i):p&&hl(i)?pl(i):i,(t.sham||i&&i.sham||a&&a.sham)&&Rc(l,"sham",!0),Rc(v,o,l),p&&(ac(Hl,r=s+"Prototype")||Rc(Hl,r,{}),Rc(Hl[r],o,i),t.real&&g&&!g[o]&&Rc(g,o,i)))},Gc=Array.isArray||function(t){return"Array"==Nl(t)},$c=Math.ceil,Uc=Math.floor,Kc=function(t){var e=+t;return e!=e||0===e?0:(e>0?Uc:$c)(e)},Xc=Math.min,Jc=function(t){return(e=t.length)>0?Xc(Kc(e),9007199254740991):0;var e},Yc=function(t,e,n){var r=bc(e);r in t?Vc.f(t,r,Sl(0,n)):t[r]=n},Qc={};Qc[vc("toStringTag")]="z";var Zc="[object z]"===String(Qc),ts=vc("toStringTag"),es=rl.Object,ns="Arguments"==Nl(function(){return arguments}()),rs=Zc?Nl:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=es(t),ts))?n:ns?Nl(e):"Object"==(r=Nl(e))&&hl(e.callee)?"Arguments":r},os=pl(Function.toString);hl(ec.inspectSource)||(ec.inspectSource=function(t){return os(t)});var is=ec.inspectSource,as=function(){},us=[],ls=zl("Reflect","construct"),cs=/^\s*(?:class|function)\b/,ss=pl(cs.exec),fs=!cs.exec(as),ds=function(t){if(!hl(t))return!1;try{return ls(as,us,t),!0}catch(t){return!1}},ps=!ls||vl((function(){var t;return ds(ds.call)||!ds(Object)||!ds((function(){t=!0}))||t}))?function(t){if(!hl(t))return!1;switch(rs(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return fs||!!ss(cs,is(t))}:ds,hs=vc("species"),vs=rl.Array,gs=function(t,e){return new(function(t){var e;return Gc(t)&&(e=t.constructor,(ps(e)&&(e===vs||Gc(e.prototype))||Ol(e)&&null===(e=e[hs]))&&(e=void 0)),void 0===e?vs:e}(t))(0===e?0:e)},ys=vc("species"),ms=vc("isConcatSpreadable"),bs=9007199254740991,Es="Maximum allowed index exceeded",ws=rl.TypeError,xs=ql>=51||!vl((function(){var t=[];return t[ms]=!1,t.concat()[0]!==t})),Ss=function(t){return ql>=51||!vl((function(){var e=[];return(e.constructor={})[ys]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}("concat"),ks=function(t){if(!Ol(t))return!1;var e=t[ms];return void 0!==e?!!e:Gc(t)};Wc({target:"Array",proto:!0,forced:!xs||!Ss},{concat:function(t){var e,n,r,o,i,a=oc(this),u=gs(a,0),l=0;for(e=-1,r=arguments.length;e<r;e++)if(ks(i=-1===e?a:arguments[e])){if(l+(o=Jc(i))>bs)throw ws(Es);for(n=0;n<o;n++,l++)n in i&&Yc(u,l,i[n])}else{if(l>=bs)throw ws(Es);Yc(u,l++,i)}return u.length=l,u}});var Ts,Ns=rl.String,As=function(t){if("Symbol"===rs(t))throw TypeError("Cannot convert a Symbol value to a string");return Ns(t)},Ds=Math.max,Ms=Math.min,Ls=function(t,e){var n=Kc(t);return n<0?Ds(n+e,0):Ms(n,e)},Ps=function(t){return function(e,n,r){var o,i=Il(e),a=Jc(i),u=Ls(r,a);if(t&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===n)return t||u||0;return!t&&-1}},Is={includes:Ps(!0),indexOf:Ps(!1)},Os={},Hs=Is.indexOf,js=pl([].push),zs=function(t,e){var n,r=Il(t),o=0,i=[];for(n in r)!ac(Os,n)&&ac(r,n)&&js(i,n);for(;e.length>o;)ac(r,n=e[o++])&&(~Hs(i,n)||js(i,n));return i},Cs=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],_s=Object.keys||function(t){return zs(t,Cs)},Bs=gl?Object.defineProperties:function(t,e){Cc(t);for(var n,r=Il(e),o=_s(e),i=o.length,a=0;i>a;)Vc.f(t,n=o[a++],r[n]);return t},Vs=zl("document","documentElement"),Rs=nc("keys"),Fs=function(t){return Rs[t]||(Rs[t]=sc(t))},qs=Fs("IE_PROTO"),Ws=function(){},Gs=function(t){return"<script>"+t+"</"+"script>"},$s=function(t){t.write(Gs("")),t.close();var e=t.parentWindow.Object;return t=null,e},Us=function(){try{Ts=new ActiveXObject("htmlfile")}catch(t){}var t,e;Us="undefined"!=typeof document?document.domain&&Ts?$s(Ts):((e=xc("iframe")).style.display="none",Vs.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(Gs("document.F=Object")),t.close(),t.F):$s(Ts);for(var n=Cs.length;n--;)delete Us.prototype[Cs[n]];return Us()};Os[qs]=!0;var Ks,Xs,Js,Ys=Object.create||function(t,e){var n;return null!==t?(Ws.prototype=Cc(t),n=new Ws,Ws.prototype=null,n[qs]=t):n=Us(),void 0===e?n:Bs(n,e)},Qs=Cs.concat("length","prototype"),Zs={f:Object.getOwnPropertyNames||function(t){return zs(t,Qs)}},tf=rl.Array,ef=Math.max,nf=Zs.f,rf="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],of=function(t){try{return nf(t)}catch(t){return function(t,e,n){for(var r=Jc(t),o=Ls(e,r),i=Ls(void 0===n?r:n,r),a=tf(ef(i-o,0)),u=0;o<i;o++,u++)Yc(a,u,t[o]);return a.length=u,a}(rf)}},af={f:function(t){return rf&&"Window"==Nl(t)?of(t):nf(Il(t))}},uf={f:Object.getOwnPropertySymbols},lf=pl([].slice),cf=function(t,e,n,r){r&&r.enumerable?t[e]=n:Rc(t,e,n)},sf={f:vc},ff=Vc.f,df=function(t){var e=Hl.Symbol||(Hl.Symbol={});ac(e,t)||ff(e,t,{value:sf.f(t)})},pf=Zc?{}.toString:function(){return"[object "+rs(this)+"]"},hf=Vc.f,vf=vc("toStringTag"),gf=function(t,e,n,r){if(t){var o=n?t:t.prototype;ac(o,vf)||hf(o,vf,{configurable:!0,value:e}),r&&!Zc&&Rc(o,"toString",pf)}},yf=rl.WeakMap,mf=hl(yf)&&/native code/.test(is(yf)),bf="Object already initialized",Ef=rl.TypeError,wf=rl.WeakMap;if(mf||ec.state){var xf=ec.state||(ec.state=new wf),Sf=pl(xf.get),kf=pl(xf.has),Tf=pl(xf.set);Ks=function(t,e){if(kf(xf,t))throw new Ef(bf);return e.facade=t,Tf(xf,t,e),e},Xs=function(t){return Sf(xf,t)||{}},Js=function(t){return kf(xf,t)}}else{var Nf=Fs("state");Os[Nf]=!0,Ks=function(t,e){if(ac(t,Nf))throw new Ef(bf);return e.facade=t,Rc(t,Nf,e),e},Xs=function(t){return ac(t,Nf)?t[Nf]:{}},Js=function(t){return ac(t,Nf)}}var Af={set:Ks,get:Xs,has:Js,enforce:function(t){return Js(t)?Xs(t):Ks(t,{})},getterFor:function(t){return function(e){var n;if(!Ol(e)||(n=Xs(e)).type!==t)throw Ef("Incompatible receiver, "+t+" required");return n}}},Df=pl([].push),Mf=function(t){var e=1==t,n=2==t,r=3==t,o=4==t,i=6==t,a=7==t,u=5==t||i;return function(l,c,s,f){for(var d,p,h=oc(l),v=Ml(h),g=Hc(c,s),y=Jc(v),m=0,b=f||gs,E=e?b(l,y):n||a?b(l,0):void 0;y>m;m++)if((u||m in v)&&(p=g(d=v[m],m,h),t))if(e)E[m]=p;else if(p)switch(t){case 3:return!0;case 5:return d;case 6:return m;case 2:Df(E,d)}else switch(t){case 4:return!1;case 7:Df(E,d)}return i?-1:r||o?o:E}},Lf={forEach:Mf(0),map:Mf(1),filter:Mf(2),some:Mf(3),every:Mf(4),find:Mf(5),findIndex:Mf(6),filterReject:Mf(7)}.forEach,Pf=Fs("hidden"),If="Symbol",Of=vc("toPrimitive"),Hf=Af.set,jf=Af.getterFor(If),zf=Object.prototype,Cf=rl.Symbol,_f=Cf&&Cf.prototype,Bf=rl.TypeError,Vf=rl.QObject,Rf=zl("JSON","stringify"),Ff=Tc.f,qf=Vc.f,Wf=af.f,Gf=xl.f,$f=pl([].push),Uf=nc("symbols"),Kf=nc("op-symbols"),Xf=nc("string-to-symbol-registry"),Jf=nc("symbol-to-string-registry"),Yf=nc("wks"),Qf=!Vf||!Vf.prototype||!Vf.prototype.findChild,Zf=gl&&vl((function(){return 7!=Ys(qf({},"a",{get:function(){return qf(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=Ff(zf,e);r&&delete zf[e],qf(t,e,n),r&&t!==zf&&qf(zf,e,r)}:qf,td=function(t,e){var n=Uf[t]=Ys(_f);return Hf(n,{type:If,tag:t,description:e}),gl||(n.description=e),n},ed=function(t,e,n){t===zf&&ed(Kf,e,n),Cc(t);var r=bc(e);return Cc(n),ac(Uf,r)?(n.enumerable?(ac(t,Pf)&&t[Pf][r]&&(t[Pf][r]=!1),n=Ys(n,{enumerable:Sl(0,!1)})):(ac(t,Pf)||qf(t,Pf,Sl(1,{})),t[Pf][r]=!0),Zf(t,r,n)):qf(t,r,n)},nd=function(t,e){Cc(t);var n=Il(e),r=_s(n).concat(ad(n));return Lf(r,(function(e){gl&&!ml(rd,n,e)||ed(t,e,n[e])})),t},rd=function(t){var e=bc(t),n=ml(Gf,this,e);return!(this===zf&&ac(Uf,e)&&!ac(Kf,e))&&(!(n||!ac(this,e)||!ac(Uf,e)||ac(this,Pf)&&this[Pf][e])||n)},od=function(t,e){var n=Il(t),r=bc(e);if(n!==zf||!ac(Uf,r)||ac(Kf,r)){var o=Ff(n,r);return!o||!ac(Uf,r)||ac(n,Pf)&&n[Pf][r]||(o.enumerable=!0),o}},id=function(t){var e=Wf(Il(t)),n=[];return Lf(e,(function(t){ac(Uf,t)||ac(Os,t)||$f(n,t)})),n},ad=function(t){var e=t===zf,n=Wf(e?Kf:Il(t)),r=[];return Lf(n,(function(t){!ac(Uf,t)||e&&!ac(zf,t)||$f(r,Uf[t])})),r};if(Wl||(Cf=function(){if(Cl(_f,this))throw Bf("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?As(arguments[0]):void 0,e=sc(t),n=function(t){this===zf&&ml(n,Kf,t),ac(this,Pf)&&ac(this[Pf],e)&&(this[Pf][e]=!1),Zf(this,e,Sl(1,t))};return gl&&Qf&&Zf(zf,e,{configurable:!0,set:n}),td(e,t)},_f=Cf.prototype,cf(_f,"toString",(function(){return jf(this).tag})),cf(Cf,"withoutSetter",(function(t){return td(sc(t),t)})),xl.f=rd,Vc.f=ed,Tc.f=od,Zs.f=af.f=id,uf.f=ad,sf.f=function(t){return td(vc(t),t)},gl&&qf(_f,"description",{configurable:!0,get:function(){return jf(this).description}})),Wc({global:!0,wrap:!0,forced:!Wl,sham:!Wl},{Symbol:Cf}),Lf(_s(Yf),(function(t){df(t)})),Wc({target:If,stat:!0,forced:!Wl},{for:function(t){var e=As(t);if(ac(Xf,e))return Xf[e];var n=Cf(e);return Xf[e]=n,Jf[n]=e,n},keyFor:function(t){if(!Ul(t))throw Bf(t+" is not a symbol");if(ac(Jf,t))return Jf[t]},useSetter:function(){Qf=!0},useSimple:function(){Qf=!1}}),Wc({target:"Object",stat:!0,forced:!Wl,sham:!gl},{create:function(t,e){return void 0===e?Ys(t):nd(Ys(t),e)},defineProperty:ed,defineProperties:nd,getOwnPropertyDescriptor:od}),Wc({target:"Object",stat:!0,forced:!Wl},{getOwnPropertyNames:id,getOwnPropertySymbols:ad}),Wc({target:"Object",stat:!0,forced:vl((function(){uf.f(1)}))},{getOwnPropertySymbols:function(t){return uf.f(oc(t))}}),Rf){var ud=!Wl||vl((function(){var t=Cf();return"[null]"!=Rf([t])||"{}"!=Rf({a:t})||"{}"!=Rf(Object(t))}));Wc({target:"JSON",stat:!0,forced:ud},{stringify:function(t,e,n){var r=lf(arguments),o=e;if((Ol(e)||void 0!==t)&&!Ul(t))return Gc(e)||(e=function(t,e){if(hl(o)&&(e=ml(o,this,t,e)),!Ul(e))return e}),r[1]=e,ll(Rf,null,r)}})}if(!_f[Of]){var ld=_f.valueOf;cf(_f,Of,(function(t){return ml(ld,this)}))}gf(Cf,If),Os[Pf]=!0,df("asyncIterator"),df("hasInstance"),df("isConcatSpreadable"),df("iterator"),df("match"),df("matchAll"),df("replace"),df("search"),df("species"),df("split"),df("toPrimitive"),df("toStringTag"),df("unscopables"),gf(rl.JSON,"JSON",!0);var cd,sd,fd,dd=Hl.Symbol,pd={},hd=Function.prototype,vd=gl&&Object.getOwnPropertyDescriptor,gd=ac(hd,"name"),yd={EXISTS:gd,PROPER:gd&&"something"===function(){}.name,CONFIGURABLE:gd&&(!gl||gl&&vd(hd,"name").configurable)},md=!vl((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),bd=Fs("IE_PROTO"),Ed=rl.Object,wd=Ed.prototype,xd=md?Ed.getPrototypeOf:function(t){var e=oc(t);if(ac(e,bd))return e[bd];var n=e.constructor;return hl(n)&&e instanceof n?n.prototype:e instanceof Ed?wd:null},Sd=vc("iterator"),kd=!1;[].keys&&("next"in(fd=[].keys())?(sd=xd(xd(fd)))!==Object.prototype&&(cd=sd):kd=!0);var Td=null==cd||vl((function(){var t={};return cd[Sd].call(t)!==t}));cd=Td?{}:Ys(cd),hl(cd[Sd])||cf(cd,Sd,(function(){return this}));var Nd={IteratorPrototype:cd,BUGGY_SAFARI_ITERATORS:kd},Ad=Nd.IteratorPrototype,Dd=function(){return this};rl.String,rl.TypeError;Object.setPrototypeOf||"__proto__"in{}&&function(){var t,e=!1,n={};try{(t=pl(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),e=n instanceof Array}catch(t){}}();var Md=yd.PROPER,Ld=Nd.BUGGY_SAFARI_ITERATORS,Pd=vc("iterator"),Id="keys",Od="values",Hd="entries",jd=function(){return this},zd=function(t,e,n,r,o,i,a){!function(t,e,n,r){var o=e+" Iterator";t.prototype=Ys(Ad,{next:Sl(+!r,n)}),gf(t,o,!1,!0),pd[o]=Dd}(n,e,r);var u,l,c,s=function(t){if(t===o&&v)return v;if(!Ld&&t in p)return p[t];switch(t){case Id:case Od:case Hd:return function(){return new n(this,t)}}return function(){return new n(this)}},f=e+" Iterator",d=!1,p=t.prototype,h=p[Pd]||p["@@iterator"]||o&&p[o],v=!Ld&&h||s(o),g="Array"==e&&p.entries||h;if(g&&(u=xd(g.call(new t)))!==Object.prototype&&u.next&&(gf(u,f,!0,!0),pd[f]=jd),Md&&o==Od&&h&&h.name!==Od&&(d=!0,v=function(){return ml(h,this)}),o)if(l={values:s(Od),keys:i?v:s(Id),entries:s(Hd)},a)for(c in l)(Ld||d||!(c in p))&&cf(p,c,l[c]);else Wc({target:e,proto:!0,forced:Ld||d},l);return a&&p[Pd]!==v&&cf(p,Pd,v,{name:o}),pd[e]=v,l},Cd="Array Iterator",_d=Af.set,Bd=Af.getterFor(Cd);zd(Array,"Array",(function(t,e){_d(this,{type:Cd,target:Il(t),index:0,kind:e})}),(function(){var t=Bd(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}}),"values"),pd.Arguments=pd.Array;var Vd=vc("toStringTag");for(var Rd in{CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}){var Fd=rl[Rd],qd=Fd&&Fd.prototype;qd&&rs(qd)!==Vd&&Rc(qd,Vd,Rd),pd[Rd]=pd.Array}var Wd=dd;df("asyncDispose"),df("dispose"),df("matcher"),df("metadata"),df("observable"),df("patternMatch"),df("replaceAll");var Gd=Wd,$d=pl("".charAt),Ud=pl("".charCodeAt),Kd=pl("".slice),Xd=function(t){return function(e,n){var r,o,i=As(Pl(e)),a=Kc(n),u=i.length;return a<0||a>=u?t?"":void 0:(r=Ud(i,a))<55296||r>56319||a+1===u||(o=Ud(i,a+1))<56320||o>57343?t?$d(i,a):r:t?Kd(i,a,a+2):o-56320+(r-55296<<10)+65536}},Jd={codeAt:Xd(!1),charAt:Xd(!0)}.charAt,Yd="String Iterator",Qd=Af.set,Zd=Af.getterFor(Yd);zd(String,"String",(function(t){Qd(this,{type:Yd,string:As(t),index:0})}),(function(){var t,e=Zd(this),n=e.string,r=e.index;return r>=n.length?{value:void 0,done:!0}:(t=Jd(n,r),e.index+=t.length,{value:t,done:!1})}));var tp,ep,np,rp=sf.f("iterator"),op=h((function(t){function e(n){return"function"==typeof Gd&&"symbol"==typeof rp?(t.exports=e=function(t){return typeof t},t.exports.default=t.exports,t.exports.__esModule=!0):(t.exports=e=function(t){return t&&"function"==typeof Gd&&t.constructor===Gd&&t!==Gd.prototype?"symbol":typeof t},t.exports.default=t.exports,t.exports.__esModule=!0),e(n)}t.exports=e,t.exports.default=t.exports,t.exports.__esModule=!0})),ip=p(op),ap={},up=!b((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),lp=Qt("IE_PROTO"),cp=m.Object,sp=cp.prototype,fp=up?cp.getPrototypeOf:function(t){var e=vt(t);if(yt(e,lp))return e[lp];var n=e.constructor;return F(n)&&e instanceof n?n.prototype:e instanceof cp?sp:null},dp=Nt("iterator"),pp=!1;[].keys&&("next"in(np=[].keys())?(ep=fp(fp(np)))!==Object.prototype&&(tp=ep):pp=!0);var hp=null==tp||b((function(){var t={};return tp[dp].call(t)!==t}));hp&&(tp={}),F(tp[dp])||pe(tp,dp,(function(){return this}));var vp={IteratorPrototype:tp,BUGGY_SAFARI_ITERATORS:pp},gp=Ft.f,yp=Nt("toStringTag"),mp=function(t,e,n){t&&!yt(t=n?t:t.prototype,yp)&&gp(t,yp,{configurable:!0,value:e})},bp=vp.IteratorPrototype,Ep=function(){return this},wp=m.String,xp=m.TypeError,Sp=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=I(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),e=n instanceof Array}catch(t){}return function(n,r){return Bt(n),function(t){if("object"==typeof t||F(t))return t;throw xp("Can't set "+wp(t)+" as a prototype")}(r),e?t(n,r):n.__proto__=r,n}}():void 0),kp=de.PROPER,Tp=de.CONFIGURABLE,Np=vp.IteratorPrototype,Ap=vp.BUGGY_SAFARI_ITERATORS,Dp=Nt("iterator"),Mp="keys",Lp="values",Pp="entries",Ip=function(){return this},Op=function(t,e,n,r,o,i,a){!function(t,e,n,r){var o=e+" Iterator";t.prototype=Cn(bp,{next:A(+!r,n)}),mp(t,o,!1),ap[o]=Ep}(n,e,r);var u,l,c,s=function(t){if(t===o&&v)return v;if(!Ap&&t in p)return p[t];switch(t){case Mp:case Lp:case Pp:return function(){return new n(this,t)}}return function(){return new n(this)}},f=e+" Iterator",d=!1,p=t.prototype,h=p[Dp]||p["@@iterator"]||o&&p[o],v=!Ap&&h||s(o),g="Array"==e&&p.entries||h;if(g&&(u=fp(g.call(new t)))!==Object.prototype&&u.next&&(fp(u)!==Np&&(Sp?Sp(u,Np):F(u[Dp])||pe(u,Dp,Ip)),mp(u,f,!0)),kp&&o==Lp&&h&&h.name!==Lp&&(Tp?qt(p,"name",Lp):(d=!0,v=function(){return x(h,this)})),o)if(l={values:s(Lp),keys:i?v:s(Mp),entries:s(Pp)},a)for(c in l)(Ap||d||!(c in p))&&pe(p,c,l[c]);else qe({target:e,proto:!0,forced:Ap||d},l);return p[Dp]!==v&&pe(p,Dp,v,{name:o}),ap[e]=v,l},Hp="Array Iterator",jp=le.set,zp=le.getterFor(Hp),Cp=Op(Array,"Array",(function(t,e){jp(this,{type:Hp,target:R(t),index:0,kind:e})}),(function(){var t=zp(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}}),"values");ap.Arguments=ap.Array,jr("keys"),jr("values"),jr("entries");var _p=Le.f,Bp="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Vp={f:function(t){return Bp&&"Window"==j(t)?function(t){try{return _p(t)}catch(t){return Ur(Bp)}}(t):_p(R(t))}},Rp=b((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}})),Fp=Object.isExtensible,qp=b((function(){Fp(1)}))||Rp?function(t){return!!q(t)&&((!Rp||"ArrayBuffer"!=j(t))&&(!Fp||Fp(t)))}:Fp,Wp=!b((function(){return Object.isExtensible(Object.preventExtensions({}))})),Gp=h((function(t){var e=Ft.f,n=!1,r=wt("meta"),o=0,i=function(t){e(t,r,{value:{objectID:"O"+o++,weakData:{}}})},a=t.exports={enable:function(){a.enable=function(){},n=!0;var t=Le.f,e=I([].splice),o={};o[r]=1,t(o).length&&(Le.f=function(n){for(var o=t(n),i=0,a=o.length;i<a;i++)if(o[i]===r){e(o,i,1);break}return o},qe({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Vp.f}))},fastKey:function(t,e){if(!q(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!yt(t,r)){if(!qp(t))return"F";if(!e)return"E";i(t)}return t[r].objectID},getWeakData:function(t,e){if(!yt(t,r)){if(!qp(t))return!0;if(!e)return!1;i(t)}return t[r].weakData},onFreeze:function(t){return Wp&&n&&qp(t)&&!yt(t,r)&&i(t),t}};Zt[r]=!0})),$p=Nt("iterator"),Up=Array.prototype,Kp=function(t){return void 0!==t&&(ap.Array===t||Up[$p]===t)},Xp=Nt("iterator"),Jp=function(t){if(null!=t)return ut(t,Xp)||ut(t,"@@iterator")||ap[Qe(t)]},Yp=m.TypeError,Qp=function(t,e){var n=arguments.length<2?Jp(t):e;if(at(n))return Bt(x(n,t));throw Yp(ot(t)+" is not iterable")},Zp=function(t,e,n){var r,o;Bt(t);try{if(!(r=ut(t,"return"))){if("throw"===e)throw n;return n}r=x(r,t)}catch(t){o=!0,r=t}if("throw"===e)throw n;if(o)throw r;return Bt(r),n},th=m.TypeError,eh=function(t,e){this.stopped=t,this.result=e},nh=eh.prototype,rh=function(t,e,n){var r,o,i,a,u,l,c,s=n&&n.that,f=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_ITERATOR),p=!(!n||!n.INTERRUPTED),h=Ge(e,s),v=function(t){return r&&Zp(r,"normal",t),new eh(!0,t)},g=function(t){return f?(Bt(t),p?h(t[0],t[1],v):h(t[0],t[1])):p?h(t,v):h(t)};if(d)r=t;else{if(!(o=Jp(t)))throw th(ot(t)+" is not iterable");if(Kp(o)){for(i=0,a=xe(t);a>i;i++)if((u=g(t[i]))&&$(nh,u))return u;return new eh(!1)}r=Qp(t,o)}for(l=r.next;!(c=x(l,r)).done;){try{u=g(c.value)}catch(t){Zp(r,"throw",t)}if("object"==typeof u&&u&&$(nh,u))return u}return new eh(!1)},oh=m.TypeError,ih=function(t,e){if($(e,t))return t;throw oh("Incorrect invocation")},ah=Nt("iterator"),uh=!1;try{var lh=0,ch={next:function(){return{done:!!lh++}},return:function(){uh=!0}};ch[ah]=function(){return this},Array.from(ch,(function(){throw 2}))}catch(t){}var sh=function(t,e){if(!e&&!uh)return!1;var n=!1;try{var r={};r[ah]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(t){}return n},fh=function(t,e,n){var r,o;return Sp&&F(r=e.constructor)&&r!==n&&q(o=r.prototype)&&o!==n.prototype&&Sp(t,o),t},dh=function(t,e,n){var r=-1!==t.indexOf("Map"),o=-1!==t.indexOf("Weak"),i=r?"set":"add",a=m[t],u=a&&a.prototype,l=a,c={},s=function(t){var e=I(u[t]);pe(u,t,"add"==t?function(t){return e(this,0===t?0:t),this}:"delete"==t?function(t){return!(o&&!q(t))&&e(this,0===t?0:t)}:"get"==t?function(t){return o&&!q(t)?void 0:e(this,0===t?0:t)}:"has"==t?function(t){return!(o&&!q(t))&&e(this,0===t?0:t)}:function(t,n){return e(this,0===t?0:t,n),this})};if(Re(t,!F(a)||!(o||u.forEach&&!b((function(){(new a).entries().next()})))))l=n.getConstructor(e,t,r,i),Gp.enable();else if(Re(t,!0)){var f=new l,d=f[i](o?{}:-0,1)!=f,p=b((function(){f.has(1)})),h=sh((function(t){new a(t)})),v=!o&&b((function(){for(var t=new a,e=5;e--;)t[i](e,e);return!t.has(-0)}));h||((l=e((function(t,e){ih(t,u);var n=fh(new a,t,l);return null!=e&&rh(e,n[i],{that:n,AS_ENTRIES:r}),n}))).prototype=u,u.constructor=l),(p||v)&&(s("delete"),s("has"),r&&s("get")),(v||d)&&s(i),o&&u.clear&&delete u.clear}return c[t]=l,qe({global:!0,forced:l!=a},c),mp(l,t),o||n.setStrong(l,t,r),l},ph=function(t,e,n){for(var r in e)pe(t,r,e[r],n);return t},hh=Nt("species"),vh=Ft.f,gh=Gp.fastKey,yh=le.set,mh=le.getterFor,bh={getConstructor:function(t,e,n,r){var o=t((function(t,o){ih(t,i),yh(t,{type:e,index:Cn(null),first:void 0,last:void 0,size:0}),E||(t.size=0),null!=o&&rh(o,t[r],{that:t,AS_ENTRIES:n})})),i=o.prototype,a=mh(e),u=function(t,e,n){var r,o,i=a(t),u=l(t,e);return u?u.value=n:(i.last=u={index:o=gh(e,!0),key:e,value:n,previous:r=i.last,next:void 0,removed:!1},i.first||(i.first=u),r&&(r.next=u),E?i.size++:t.size++,"F"!==o&&(i.index[o]=u)),t},l=function(t,e){var n,r=a(t),o=gh(e);if("F"!==o)return r.index[o];for(n=r.first;n;n=n.next)if(n.key==e)return n};return ph(i,{clear:function(){for(var t=a(this),e=t.index,n=t.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete e[n.index],n=n.next;t.first=t.last=void 0,E?t.size=0:this.size=0},delete:function(t){var e=this,n=a(e),r=l(e,t);if(r){var o=r.next,i=r.previous;delete n.index[r.index],r.removed=!0,i&&(i.next=o),o&&(o.previous=i),n.first==r&&(n.first=o),n.last==r&&(n.last=i),E?n.size--:e.size--}return!!r},forEach:function(t){for(var e,n=a(this),r=Ge(t,arguments.length>1?arguments[1]:void 0);e=e?e.next:n.first;)for(r(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!l(this,t)}}),ph(i,n?{get:function(t){var e=l(this,t);return e&&e.value},set:function(t,e){return u(this,0===t?0:t,e)}}:{add:function(t){return u(this,t=0===t?0:t,t)}}),E&&vh(i,"size",{get:function(){return a(this).size}}),o},setStrong:function(t,e,n){var r=e+" Iterator",o=mh(e),i=mh(r);Op(t,e,(function(t,e){yh(this,{type:r,target:t,state:o(t),kind:e,last:void 0})}),(function(){for(var t=i(this),e=t.kind,n=t.last;n&&n.removed;)n=n.previous;return t.target&&(t.last=n=n?n.next:t.state.first)?"keys"==e?{value:n.key,done:!1}:"values"==e?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(t.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),function(t){var e=G(t),n=Ft.f;E&&e&&!e[hh]&&n(e,hh,{configurable:!0,get:function(){return this}})}(e)}};dh("Set",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),bh);var Eh=dr.charAt,wh="String Iterator",xh=le.set,Sh=le.getterFor(wh);Op(String,"String",(function(t){xh(this,{type:wh,string:wn(t),index:0})}),(function(){var t,e=Sh(this),n=e.string,r=e.index;return r>=n.length?{value:void 0,done:!0}:(t=Eh(n,r),e.index+=t.length,{value:t,done:!1})}));var kh=Nt("iterator"),Th=Nt("toStringTag"),Nh=Cp.values,Ah=function(t,e){if(t){if(t[kh]!==Nh)try{qt(t,kh,Nh)}catch(e){t[kh]=Nh}if(t[Th]||qt(t,Th,e),Oo[e])for(var n in Cp)if(t[n]!==Cp[n])try{qt(t,n,Cp[n])}catch(e){t[n]=Cp[n]}}};for(var Dh in Oo)Ah(m[Dh]&&m[Dh].prototype,Dh);Ah(zo,"DOMTokenList");var Mh=pn.map,Lh=vn("map");qe({target:"Array",proto:!0,forced:!Lh},{map:function(t){return Mh(this,t,arguments.length>1?arguments[1]:void 0)}});var Ph=I("".indexOf);qe({target:"String",proto:!0,forced:!Ri("includes")},{includes:function(t){return!!~Ph(wn(V(this)),wn(Bi(t)),arguments.length>1?arguments[1]:void 0)}});var Ih=Math.floor,Oh=function(t,e){var n=t.length,r=Ih(n/2);return n<8?Hh(t,e):jh(t,Oh(Ur(t,0,r),e),Oh(Ur(t,r),e),e)},Hh=function(t,e){for(var n,r,o=t.length,i=1;i<o;){for(r=i,n=t[i];r&&e(t[r-1],n)>0;)t[r]=t[--r];r!==i++&&(t[r]=n)}return t},jh=function(t,e,n,r){for(var o=e.length,i=n.length,a=0,u=0;a<o||u<i;)t[a+u]=a<o&&u<i?r(e[a],n[u])<=0?e[a++]:n[u++]:a<o?e[a++]:n[u++];return t},zh=Oh,Ch=U.match(/firefox\/(\d+)/i),_h=!!Ch&&+Ch[1],Bh=/MSIE|Trident/.test(U),Vh=U.match(/AppleWebKit\/(\d+)\./),Rh=!!Vh&&+Vh[1],Fh=[],qh=I(Fh.sort),Wh=I(Fh.push),Gh=b((function(){Fh.sort(void 0)})),$h=b((function(){Fh.sort(null)})),Uh=Co("sort"),Kh=!b((function(){if(Q)return Q<70;if(!(_h&&_h>3)){if(Bh)return!0;if(Rh)return Rh<603;var t,e,n,r,o="";for(t=65;t<76;t++){switch(e=String.fromCharCode(t),t){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(r=0;r<47;r++)Fh.push({k:e+r,v:n})}for(Fh.sort((function(t,e){return e.v-t.v})),r=0;r<Fh.length;r++)e=Fh[r].k.charAt(0),o.charAt(o.length-1)!==e&&(o+=e);return"DGBEFHACIJK"!==o}}));qe({target:"Array",proto:!0,forced:Gh||!$h||!Uh||!Kh},{sort:function(t){void 0!==t&&at(t);var e=vt(this);if(Kh)return void 0===t?qh(e):qh(e,t);var n,r,o=[],i=xe(e);for(r=0;r<i;r++)r in e&&Wh(o,e[r]);for(zh(o,function(t){return function(e,n){return void 0===n?-1:void 0===e?1:void 0!==t?+t(e,n)||0:wn(e)>wn(n)?1:-1}}(t)),n=o.length,r=0;r<n;)e[r]=o[r++];for(;r<i;)delete e[r++];return e}});var Xh=new Set(["paragraph","blockquote","header1","header2","header3","header4","header5","header6"]);function Jh(t){return Xh.has(t)}function Yh(t){if(null==t||"object"!==ip(t))return{text:""};if("string"==typeof t.text){var e=bo({},t);return delete e.children,e}var n=bo({},t);return Array.isArray(t.children)&&(n.children=t.children.map(Yh)),n}function Qh(t){var e,n=Array.isArray(null===(e=t)||void 0===e?void 0:e.children)?t.children:[];return n.length?n.map(Yh):[{text:""}]}function Zh(t){for(var e=[],n=0;n<t.length;n++)n>0&&e.push({text:"\n"}),e.push.apply(e,ko([],So(Qh(t[n][0]))));return e.length?e:[{text:""}]}function tv(t){var n,o,i,a,u,l=function(t){var n,o,i=null==t?void 0:t.selection;if(!i)return[];var a=[],u=new Set;try{try{for(var l=xo(r.Editor.nodes(t,{at:i,match:function(n){return null!=n&&"object"===ip(n)&&("function"!=typeof t.isVoid||!t.isVoid(n))&&Jh(e.DomEditor.getNodeType(n))},mode:"highest"})),c=l.next();!c.done;c=l.next()){var s=So(c.value,2),f=s[0],d=s[1];if(Array.isArray(d)&&1===d.length){var p=String(d[0]);u.has(p)||(u.add(p),a.push([f,ko([],So(d))]))}}}catch(t){n={error:t}}finally{try{c&&!c.done&&(o=l.return)&&o.call(l)}finally{if(n)throw n.error}}}catch(t){return[]}return a.sort((function(t,e){return t[1][0]-e[1][0]})),a}(t).filter((function(t){var n=So(t,1)[0];return"pre"!==e.DomEditor.getNodeType(n)}));if(l.length>0)return l;var c=null===(i=t)||void 0===i?void 0:i.__mdgchTrustedBlockPaths;if(Array.isArray(c)&&c.length){var s=[];try{for(var f=xo(c),d=f.next();!d.done;d=f.next()){var p=d.value;if(Array.isArray(p)&&p.length)(v=e.getEditorNodeAtPath(t,p))&&"pre"!==v.type&&Jh(e.DomEditor.getNodeType(v))&&s.push([v,ko([],So(p))])}}catch(t){n={error:t}}finally{try{d&&!d.done&&(o=f.return)&&o.call(f)}finally{if(n)throw n.error}}if(s.length)return s}var h=null==t?void 0:t.selection;if(null===(u=null===(a=null==h?void 0:h.anchor)||void 0===a?void 0:a.path)||void 0===u?void 0:u.length){var v;p=[h.anchor.path[0]];if((v=e.getEditorNodeAtPath(t,p))&&"pre"!==v.type&&Jh(e.DomEditor.getNodeType(v)))return[[v,p]]}return[]}function ev(t){if(t&&!t.isDestroyed){var n=tv(t);if(n.length){var o=n.every((function(t){var n=So(t,1)[0];return"blockquote"===e.DomEditor.getNodeType(n)}));if(o)try{if(1===n.length){var i=So(n[0],2),a=i[0],u=i[1],l=function(t){var e,n,r=[[]],o=function(t){"string"==typeof t.text&&!t.type&&t.text.includes("\n")?t.text.split("\n").forEach((function(e,n){n>0&&r.push([]),r[r.length-1].push(bo(bo({},t),{text:e}))})):r[r.length-1].push(t)};try{for(var i=xo(t),a=i.next();!a.done;a=i.next())o(a.value)}catch(t){e={error:t}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}return r.map((function(t){return t.length?t:[{text:""}]}))}(Qh(a));if(l.length>1)return void function(t,n,o,i){var a=n[0];e.pinEditorScrollDuring(t,(function(){r.Editor.withoutNormalizing(t,(function(){r.Transforms.removeNodes(t,{at:n});for(var e=0;e<i.length;e++)r.Transforms.insertNodes(t,{type:"paragraph",children:i[e]},{at:[a+e]});try{t.select(r.Editor.end(t,[a+i.length-1]))}catch(t){}}))}))}(t,u,0,l)}r.Transforms.setNodes(t,{type:"paragraph"},{mode:"highest"})}catch(t){}else if(1!==n.length){var c=n[0][1][0],s={type:"blockquote",children:Zh(n)};try{e.pinEditorScrollDuring(t,(function(){r.Editor.withoutNormalizing(t,(function(){for(var o=n.length-1;o>=0;o--){var i=[n[o][1][0]];e.getEditorNodeAtPath(t,i)&&r.Transforms.removeNodes(t,{at:i})}var a=[Math.min(c,t.children.length)];r.Transforms.insertNodes(t,s,{at:a});try{t.select(r.Editor.end(t,a))}catch(t){}t.__mdgchTrustedBlockPath=ko([],So(a))}))}))}catch(t){console.warn("[wangeditor] toggleBlockquoteMerged merge failed",t)}}else try{r.Transforms.setNodes(t,{type:"blockquote"},{mode:"highest"})}catch(t){}}else try{var f=e.DomEditor.getSelectedNodeByType(t,"blockquote");r.Transforms.setNodes(t,{type:f?"paragraph":"blockquote"},{mode:"highest"})}catch(t){}}}var nv=function(){function t(){this.title=e.t("blockQuote.title"),this.iconSvg=ni,this.tag="button"}return t.prototype.getValue=function(){return""},t.prototype.isActive=function(t){return null!=e.DomEditor.getSelectedNodeByType(t,"blockquote")},t.prototype.isDisabled=function(t){if(null==t.selection)return!0;try{var n=e.DomEditor.getSelectedElems(t);return!!n.some((function(e){return t.isVoid(e)}))||!n.some((function(t){return Jh(e.DomEditor.getNodeType(t))}))}catch(t){return!0}},t.prototype.exec=function(t){this.isDisabled(t)||ev(t)},t}();var rv={renderElems:[Ju],elemsToHtml:[Yu],parseElemsHtml:[tl],menus:[{key:"blockquote",factory:function(){return new el}},{key:"blockquoteMerged",factory:function(){return new nv}}],editorPlugin:function(t){var n=t.insertBreak,o=t.insertText,i=t.insertData,a=t;return a.insertBreak=function(){var i=a.selection;if(null==i)return n();var u=So(r.Editor.nodes(t,{match:function(t){return e.DomEditor.checkNodeType(t,"blockquote")},universal:!0}),1)[0];if(!u)return n();var l=u[0],c=e.DomEditor.findPath(t,l),s=r.Editor.end(t,c);if(r.Point.equals(s,i.focus)){var f=r.Node.string(l);if(f&&"\n"===f.slice(-1)){t.deleteBackward("character");return void r.Transforms.insertNodes(a,{type:"paragraph",children:[{text:""}]},{mode:"highest"})}}o("\n")},a.insertData=function(t){if(null!=e.DomEditor.getSelectedNodeByType(a,"blockquote")){var n=t.files;if(n&&n.length>0)i(t);else{var o=t.getData("text/html");if(o&&/<img[^>]+>/i.test(o))i(t);else{var u=t.getData("text/plain");if(u){var l=u.replace(/\r\n/g,"\n").replace(/\r/g,"\n");r.Editor.insertText(a,l)}else i(t)}}}else i(t)},a}},ov=function(){function t(){this.title=e.t("emotion.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M512 1024C230.4 1024 0 793.6 0 512S230.4 0 512 0s512 230.4 512 512-230.4 512-512 512z m0-102.4c226.742857 0 409.6-182.857143 409.6-409.6S738.742857 102.4 512 102.4 102.4 285.257143 102.4 512s182.857143 409.6 409.6 409.6z m-204.8-358.4h409.6c0 113.371429-91.428571 204.8-204.8 204.8s-204.8-91.428571-204.8-204.8z m0-102.4c-43.885714 0-76.8-32.914286-76.8-76.8s32.914286-76.8 76.8-76.8 76.8 32.914286 76.8 76.8-32.914286 76.8-76.8 76.8z m409.6 0c-43.885714 0-76.8-32.914286-76.8-76.8s32.914286-76.8 76.8-76.8c43.885714 0 76.8 32.914286 76.8 76.8s-32.914286 76.8-76.8 76.8z"></path></svg>',this.tag="button",this.showDropPanel=!0,this.$content=null}return t.prototype.exec=function(t,e){},t.prototype.getValue=function(t){return""},t.prototype.isActive=function(t){return!1},t.prototype.isDisabled=function(t){return null==t.selection||!!So(r.Editor.nodes(t,{match:function(n){return"pre"===e.DomEditor.getNodeType(n)||!!r.Editor.isVoid(t,n)},universal:!0}),1)[0]},t.prototype.getPanelContentElem=function(t){if(null==this.$content){var e=l.default('<ul class="w-e-panel-content-emotion"></ul>');e.on("click","li",(function(e){var n=e.target;if(null!=n){e.preventDefault();var r=l.default(n).text();t.insertText(r)}})),this.$content=e}var n=this.$content;if(null==n)return document.createElement("ul");n.empty();var r=t.getMenuConfig("emotion").emotions;return(void 0===r?[]:r).forEach((function(t){var e=l.default("<li>"+t+"</li>");n.append(e)})),n[0]},t}();var iv={menus:[{key:"emotion",factory:function(){return new ov},config:{emotions:"๐Ÿ˜€ ๐Ÿ˜ƒ ๐Ÿ˜„ ๐Ÿ˜ ๐Ÿ˜† ๐Ÿ˜… ๐Ÿ˜‚ ๐Ÿคฃ ๐Ÿ˜Š ๐Ÿ˜‡ ๐Ÿ™‚ ๐Ÿ™ƒ ๐Ÿ˜‰ ๐Ÿ˜Œ ๐Ÿ˜ ๐Ÿ˜˜ ๐Ÿ˜— ๐Ÿ˜™ ๐Ÿ˜š ๐Ÿ˜‹ ๐Ÿ˜› ๐Ÿ˜ ๐Ÿ˜œ ๐Ÿค“ ๐Ÿ˜Ž ๐Ÿ˜ ๐Ÿ˜’ ๐Ÿ˜ž ๐Ÿ˜” ๐Ÿ˜Ÿ ๐Ÿ˜• ๐Ÿ™ ๐Ÿ˜ฃ ๐Ÿ˜– ๐Ÿ˜ซ ๐Ÿ˜ฉ ๐Ÿ˜ข ๐Ÿ˜ญ ๐Ÿ˜ค ๐Ÿ˜  ๐Ÿ˜ก ๐Ÿ˜ณ ๐Ÿ˜ฑ ๐Ÿ˜จ ๐Ÿค— ๐Ÿค” ๐Ÿ˜ถ ๐Ÿ˜‘ ๐Ÿ˜ฌ ๐Ÿ™„ ๐Ÿ˜ฏ ๐Ÿ˜ด ๐Ÿ˜ท ๐Ÿค‘ ๐Ÿ˜ˆ ๐Ÿคก ๐Ÿ’ฉ ๐Ÿ‘ป ๐Ÿ’€ ๐Ÿ‘€ ๐Ÿ‘ฃ ๐Ÿ‘ ๐Ÿ™Œ ๐Ÿ‘ ๐Ÿค ๐Ÿ‘ ๐Ÿ‘Ž ๐Ÿ‘Š โœŠ ๐Ÿค› ๐Ÿคœ ๐Ÿคž โœŒ๏ธ ๐Ÿค˜ ๐Ÿ‘Œ ๐Ÿ‘ˆ ๐Ÿ‘‰ ๐Ÿ‘† ๐Ÿ‘‡ โ˜๏ธ โœ‹ ๐Ÿคš ๐Ÿ– ๐Ÿ–– ๐Ÿ‘‹ ๐Ÿค™ ๐Ÿ’ช ๐Ÿ–• โœ๏ธ ๐Ÿ™".split(" ")}}]};var av={1:"12px",2:"14px",3:"16px",4:"19px",5:"24px",6:"32px",7:"48px"};var uv={selector:"font",preParseHtml:function(t){var e=l.default(t);if("font"!==vo(e))return t;var n=e.attr("size")||"";n&&(e.removeAttr("size"),e.css("font-size",av[n]));var r=e.attr("face")||"";return r&&(e.removeAttr("face"),e.css("font-family",r)),e[0]}};var lv=de.EXISTS,cv=Ft.f,sv=Function.prototype,fv=I(sv.toString),dv=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,pv=I(dv.exec);E&&!lv&&cv(sv,"name",{configurable:!0,get:function(){try{return pv(dv,fv(this))[1]}catch(t){return""}}});var hv=function(){function t(){this.tag="select",this.width=80}return t.prototype.isActive=function(t){return!1},t.prototype.getValue=function(t){var e=this.mark,n=r.Editor.marks(t);return n&&n[e]?n[e]:""},t.prototype.isDisabled=function(t){return null==t.selection||(this.mark,!!So(r.Editor.nodes(t,{match:function(n){return"pre"===e.DomEditor.getNodeType(n)||!!r.Editor.isVoid(t,n)},universal:!0}),1)[0])},t.prototype.exec=function(t,e){var n=this.mark;e?t.addMark(n,e):t.removeMark(n)},t}(),vv=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.title=e.t("fontSize.title"),n.iconSvg=ri,n.mark="fontSize",n}return mo(n,t),n.prototype.getOptions=function(t){var n=[],r=t.getMenuConfig(this.mark).fontSizeList,o=void 0===r?[]:r;n.push({text:e.t("fontSize.default"),value:""}),o.forEach((function(t){if("string"==typeof t)n.push({text:t,value:t});else if("object"===ip(t)){var e=t.name,r=t.value;n.push({text:e,value:r})}}));var i=this.getValue(t);return n.forEach((function(t){t.value===i?t.selected=!0:delete t.selected})),n},n}(hv),gv=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.title=e.t("fontFamily.title"),n.iconSvg=oi,n.mark="fontFamily",n.selectPanelWidth=150,n}return mo(n,t),n.prototype.getOptions=function(t){var n=[],r=t.getMenuConfig(this.mark).fontFamilyList,o=void 0===r?[]:r;n.push({text:e.t("fontFamily.default"),value:""}),o.forEach((function(t){if("string"==typeof t)n.push({text:t,value:t,styleForRenderMenuList:{"font-family":t}});else if("object"===ip(t)){var e=t.name,r=t.value;n.push({text:e,value:r,styleForRenderMenuList:{"font-family":r}})}}));var i=this.getValue(t);return n.forEach((function(t){t.value===i?t.selected=!0:delete t.selected})),n},n}(hv);var yv={renderStyle:function(t,e){var n=t,r=n.fontSize,o=n.fontFamily,i=e;return r&&ya(i,{fontSize:r}),o&&ya(i,{fontFamily:o}),i},styleToHtml:function(t,e){if(!r.Text.isText(t))return e;var n,o=t,i=o.fontSize,a=o.fontFamily;return i||a?((po(e)||"span"!==vo(n=l.default(e)))&&(n=l.default("<span>"+e+"</span>")),i&&n.css("font-size",i),a&&n.css("font-family",a),ho(n)):e},preParseHtml:[uv],parseStyleHtml:function(t,e,n){var o=l.default(t);if(!r.Text.isText(e))return e;var i=e,a=n.getMenuConfig("fontSize").fontSizeList,u=void 0===a?[]:a,c=go(o,"font-size"),s=u.find((function(t){return t.value&&t.value===c}))||u.includes(c);c&&s&&(i.fontSize=c);var f=n.getMenuConfig("fontFamily").fontFamilyList,d=void 0===f?[]:f,p=go(o,"font-family").replace(/"/g,""),h=d.find((function(t){return t.value&&t.value===p}))||d.includes(p);return p&&h&&(i.fontFamily=p),i},menus:[{key:"fontSize",factory:function(){return new vv},config:{fontSizeList:["12px",{name:"13px",value:"13px"},"14px","15px","16px","19px",{name:"22px",value:"22px"},"24px","29px","32px","40px","48px"]}},{key:"fontFamily",factory:function(){return new gv},config:{fontFamilyList:["้ป‘ไฝ“",{name:"ไปฟๅฎ‹",value:"ไปฟๅฎ‹"},"ๆฅทไฝ“","ๆ ‡ๆฅทไฝ“","ๅŽๆ–‡ไปฟๅฎ‹","ๅŽๆ–‡ๆฅทไฝ“",{name:"ๅฎ‹ไฝ“",value:"ๅฎ‹ไฝ“"},"ๅพฎ่ฝฏ้›…้ป‘","Arial","Tahoma","Verdana","Times New Roman","Courier New"]}}]},mv=Le.f,bv=zt.f,Ev=Ft.f,wv=co.trim,xv="Number",Sv=m.Number,kv=Sv.prototype,Tv=m.TypeError,Nv=I("".slice),Av=I("".charCodeAt),Dv=function(t){var e=Mt(t,"number");return"bigint"==typeof e?e:Mv(e)},Mv=function(t){var e,n,r,o,i,a,u,l,c=Mt(t,"number");if(nt(c))throw Tv("Cannot convert a Symbol value to a number");if("string"==typeof c&&c.length>2)if(c=wv(c),43===(e=Av(c,0))||45===e){if(88===(n=Av(c,2))||120===n)return NaN}else if(48===e){switch(Av(c,1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+c}for(a=(i=Nv(c,2)).length,u=0;u<a;u++)if((l=Av(i,u))<48||l>o)return NaN;return parseInt(i,r)}return+c};if(Re(xv,!Sv(" 0o1")||!Sv("0b1")||Sv("+0x1"))){for(var Lv,Pv=function(t){var e=arguments.length<1?0:Sv(Dv(t)),n=this;return $(kv,n)&&b((function(){eu(n)}))?fh(Object(e),n,Pv):e},Iv=E?mv(Sv):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),Ov=0;Iv.length>Ov;Ov++)yt(Sv,Lv=Iv[Ov])&&!yt(Pv,Lv)&&Ev(Pv,Lv,bv(Sv,Lv));Pv.prototype=kv,kv.constructor=Pv,pe(m,xv,Pv)}var Hv={selector:"p,h1,h2,h3,h4,h5",preParseHtml:function(t){var e=l.default(t),n=go(e,"padding-left");return/\dem/.test(n)&&e.css("text-indent","2em"),/\dpx/.test(n)&&parseInt(n,10)%32==0&&e.css("text-indent","2em"),e[0]}};var jv=function(){function t(){this.tag="button"}return t.prototype.getValue=function(t){var e=So(r.Editor.nodes(t,{match:function(t){return!!t.indent},universal:!0}),1),n=e[0];return null==n?"":So(n,1)[0].indent||""},t.prototype.isActive=function(t){return!1},t.prototype.getMatchNode=function(t){var n=So(r.Editor.nodes(t,{match:function(t){var n=e.DomEditor.getNodeType(t);return"paragraph"===n||!!n.startsWith("header")},universal:!0,mode:"highest"}),1)[0];return null==n?null:n[0]},t}(),zv=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.title=e.t("indent.decrease"),n.iconSvg=ii,n}return mo(n,t),n.prototype.isDisabled=function(t){var e=this.getMatchNode(t);return null==e||!e.indent},n.prototype.exec=function(t,e){r.Transforms.setNodes(t,{indent:null},{match:function(t){return r.Element.isElement(t)}})},n}(jv),Cv=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.title=e.t("indent.increase"),n.iconSvg=ai,n.DEFAULT_INDENT_VALUE="2em",n}return mo(n,t),n.prototype.isDisabled=function(t){var e=this.getMatchNode(t);return null==e||!!e.indent},n.prototype.getIndentValue=function(t){var e=this.getMatchNode(t);if(!e)return this.DEFAULT_INDENT_VALUE;var n=e.children.filter(r.Text.isText)[0];if(!n||!n.fontSize)return this.DEFAULT_INDENT_VALUE;var o=n.fontSize,i=parseInt(n.fontSize);return""+2*i+o.replace(""+i,"")},n.prototype.exec=function(t,e){var n=this.getIndentValue(t);r.Transforms.setNodes(t,{indent:n},{match:function(t){return r.Element.isElement(t)},mode:"highest"})},n}(jv),_v={key:"indent",factory:function(){return new Cv}},Bv={key:"delIndent",factory:function(){return new zv}},Vv=function(t,e,n,r){try{return r?e(Bt(n)[0],n[1]):e(n)}catch(e){Zp(t,"throw",e)}},Rv=m.Array,Fv=!sh((function(t){Array.from(t)}));function qv(t){return"paragraph"===t||"todo"===t||"blockquote"===t||!!t.startsWith("header")}function Wv(t,n){var o,i;if(null==t.selection)return!1;if(e.DomEditor.getSelectedNodeByType(t,"code")||e.DomEditor.getSelectedNodeByType(t,"pre"))return!1;var a=Array.from(function(t){return r.Editor.nodes(t,{at:t.selection||void 0,match:function(n){return r.Element.isElement(n)&&1===e.DomEditor.findPath(t,n).length}})}(t));if(0===a.length)return!1;var u=!1;try{for(var l=xo(a),c=l.next();!c.done;c=l.next()){var s=So(c.value,2),f=s[0],d=s[1];if(qv(e.DomEditor.getNodeType(f))){var p=Number(f.lineIndent)||0,h=Math.max(0,Math.min(8,p+n));h!==p?(r.Transforms.setNodes(t,{lineIndent:h>0?h:null},{at:d}),u=!0):u=!0}}}catch(t){o={error:t}}finally{try{c&&!c.done&&(i=l.return)&&i.call(l)}finally{if(o)throw o.error}}return u}function Gv(t){var n=t.selection;if(null==n||r.Range.isExpanded(n))return!1;var o=function(t){return So(r.Editor.nodes(t,{at:t.selection||void 0,match:function(n){return r.Element.isElement(n)&&1===e.DomEditor.findPath(t,n).length},mode:"highest"}),1)[0]||null}(t);if(!o)return!1;var i=So(o,2),a=i[0],u=i[1];if(!qv(e.DomEditor.getNodeType(a)))return!1;var l=Number(a.lineIndent)||0;if(l<=0)return!1;if(!r.Editor.isStart(t,n.anchor,u))return!1;var c=l-1;return r.Transforms.setNodes(t,{lineIndent:c>0?c:null},{at:u}),!0}qe({target:"Array",stat:!0,forced:Fv},{from:function(t){var e=vt(t),n=un(this),r=arguments.length,o=r>1?arguments[1]:void 0,i=void 0!==o;i&&(o=Ge(o,r>2?arguments[2]:void 0));var a,u,l,c,s,f,d=Jp(e),p=0;if(!d||this==Rv&&Kp(d))for(a=xe(e),u=n?new this(a):Rv(a);a>p;p++)f=i?o(e[p],p):e[p],Wr(u,p,f);else for(s=(c=Qp(e,d)).next,u=n?new this:[];!(l=x(s,c)).done;p++)f=i?Vv(c,o,[l.value,p],!0):l.value,Wr(u,p,f);return u.length=p,u}});var $v={renderStyle:function(t,e){if(!r.Element.isElement(t))return e;var n=t,o=n.indent,i=n.lineIndent,a=e;o&&ya(a,{textIndent:o});var u=Number(i)||0;return u>0&&ya(a,{marginLeft:2*u+"em"}),a},styleToHtml:function(t,e){if(!r.Element.isElement(t))return e;var n=t,o=n.indent,i=n.lineIndent,a=Number(i)||0;if(!o&&a<=0)return e;var u=l.default(e);return o&&u.css("text-indent",o),a>0&&u.css("margin-left",2*a+"em"),ho(u)},preParseHtml:[Hv],parseStyleHtml:function(t,e,n){var o=l.default(t);if(!r.Element.isElement(e))return e;var i=e,a=go(o,"text-indent"),u=parseInt(a,10);a&&u>0&&(i.indent=a);var c=go(o,"margin-left");if(c){var s=parseFloat(c);if(s>0){var f=/em$/i.test(c)?2:32,d=Math.max(1,Math.min(8,Math.round(s/f)));i.lineIndent=d}}return i},menus:[_v,Bv],editorPlugin:function(t){var e=t.handleTab,n=t.handleShiftTab,r=t.deleteBackward,o=t;return o.handleTab=function(){Wv(o,1)||e()},o.handleShiftTab=function(){Wv(o,-1)||"function"==typeof n&&n()},o.deleteBackward=function(t){Gv(o)||r(t)},o}};var Uv=function(){function t(){this.tag="button"}return t.prototype.getValue=function(t){return""},t.prototype.isActive=function(t){return!1},t.prototype.getMatchNode=function(t){var n=So(r.Editor.nodes(t,{match:function(t){var n=e.DomEditor.getNodeType(t);return"paragraph"===n||("blockquote"===n||!!n.startsWith("header"))},universal:!0,mode:"highest"}),1)[0];return null==n?null:n[0]},t.prototype.isDisabled=function(t){return null==t.selection||!!e.DomEditor.getSelectedElems(t).some((function(e){if(r.Editor.isVoid(t,e)&&r.Editor.isBlock(t,e))return!0;var n=e.type;return!!["pre","code"].includes(n)||void 0}))},t}(),Kv=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.title=e.t("justify.left"),n.iconSvg=ui,n}return mo(n,t),n.prototype.exec=function(t,e){r.Transforms.setNodes(t,{textAlign:"left"},{match:function(e){return r.Element.isElement(e)&&!t.isInline(e)}})},n}(Uv),Xv=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.title=e.t("justify.right"),n.iconSvg=li,n}return mo(n,t),n.prototype.exec=function(t,e){r.Transforms.setNodes(t,{textAlign:"right"},{match:function(e){return r.Element.isElement(e)&&!t.isInline(e)}})},n}(Uv),Jv=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.title=e.t("justify.center"),n.iconSvg=ci,n}return mo(n,t),n.prototype.exec=function(t,e){r.Transforms.setNodes(t,{textAlign:"center"},{match:function(e){return r.Element.isElement(e)&&!t.isInline(e)}})},n}(Uv),Yv=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.title=e.t("justify.justify"),n.iconSvg=si,n}return mo(n,t),n.prototype.exec=function(t,e){r.Transforms.setNodes(t,{textAlign:"justify"},{match:function(e){return r.Element.isElement(e)&&!t.isInline(e)}})},n}(Uv),Qv={renderStyle:function(t,e){if(!r.Element.isElement(t))return e;var n=t.textAlign,o=e;return n&&ya(o,{textAlign:n}),o},styleToHtml:function(t,e){if(!r.Element.isElement(t))return e;var n=t.textAlign;if(!n)return e;var o=l.default(e);return o.css("text-align",n),ho(o)},parseStyleHtml:function(t,e,n){var o=l.default(t);if(!r.Element.isElement(e))return e;var i=e,a=go(o,"text-align");return a&&(i.textAlign=a),i},menus:[{key:"justifyLeft",factory:function(){return new Kv}},{key:"justifyRight",factory:function(){return new Xv}},{key:"justifyCenter",factory:function(){return new Jv}},{key:"justifyJustify",factory:function(){return new Yv}}]};var Zv=function(){function t(){this.title=e.t("lineHeight.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M964 788a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526zM198.93 144.306c6.668-5.798 16.774-5.094 22.573 1.574l122.26 140.582a16 16 0 0 1 3.927 10.5c0 8.836-7.164 16-16 16h-61.8a8 8 0 0 0-8 8v390.077h69.819a16 16 0 0 1 10.502 3.928c6.666 5.8 7.37 15.906 1.57 22.573L221.476 878.123a16 16 0 0 1-1.57 1.57c-6.668 5.8-16.774 5.097-22.574-1.57L75.051 737.538a16 16 0 0 1-3.928-10.5c0-8.837 7.163-16 16-16h69.822V312.96H87.127a16 16 0 0 1-10.502-3.928c-6.666-5.8-7.37-15.906-1.57-22.573l122.303-140.582a16 16 0 0 1 1.572-1.572zM964 465a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526z m0-323a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526z"></path></svg>',this.tag="select",this.width=80}return t.prototype.getOptions=function(t){var n=[],r=t.getMenuConfig("lineHeight").lineHeightList,o=void 0===r?[]:r;n.push({text:e.t("lineHeight.default"),value:""}),o.forEach((function(t){n.push({text:t,value:t})}));var i=this.getValue(t);return n.forEach((function(t){t.value===i?t.selected=!0:delete t.selected})),n},t.prototype.getMatchNode=function(t){var n=So(r.Editor.nodes(t,{match:function(t){var n=e.DomEditor.getNodeType(t);return!!n.startsWith("header")||!!["paragraph","blockquote","list-item"].includes(n)},universal:!0,mode:"highest"}),1)[0];return null==n?null:n[0]},t.prototype.isActive=function(t){return!1},t.prototype.getValue=function(t){var e=this.getMatchNode(t);return null==e?"":r.Element.isElement(e)&&e.lineHeight||""},t.prototype.isDisabled=function(t){return null==t.selection||null==this.getMatchNode(t)},t.prototype.exec=function(t,e){r.Transforms.setNodes(t,{lineHeight:e.toString()},{mode:"highest"})},t}();var tg={renderStyle:function(t,e){if(!r.Element.isElement(t))return e;var n=t.lineHeight,o=e;return n&&ya(o,{lineHeight:n}),o},styleToHtml:function(t,e){if(!r.Element.isElement(t))return e;var n=t.lineHeight;if(!n)return e;var o=l.default(e);return o.css("line-height",n),ho(o)},parseStyleHtml:function(t,e,n){var o=l.default(t);if(!r.Element.isElement(e))return e;var i=e,a=n.getMenuConfig("lineHeight").lineHeightList,u=void 0===a?[]:a,c=go(o,"line-height");return c&&u.includes(c)&&(i.lineHeight=c),i},menus:[{key:"lineHeight",factory:function(){return new Zv},config:{lineHeightList:["1","1.15","1.5","2","2.5","3"]}}]},eg=function(){function t(){this.title=e.t("undo.redo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M0.00032 576a510.72 510.72 0 0 0 173.344 384l84.672-96A383.136 383.136 0 0 1 128.00032 576C128.00032 363.936 299.93632 192 512.00032 192c106.048 0 202.048 42.976 271.52 112.48L640.00032 448h384V64l-149.984 149.984A510.272 510.272 0 0 0 512.00032 64C229.21632 64 0.00032 293.216 0.00032 576z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(t){return""},t.prototype.isActive=function(t){return!1},t.prototype.isDisabled=function(t){return null==t.selection},t.prototype.exec=function(t,e){"function"==typeof t.redo&&t.redo()},t}(),ng=function(){function t(){this.title=e.t("undo.undo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M512 64A510.272 510.272 0 0 0 149.984 213.984L0.032 64v384h384L240.512 304.48A382.784 382.784 0 0 1 512.032 192c212.064 0 384 171.936 384 384 0 114.688-50.304 217.632-130.016 288l84.672 96a510.72 510.72 0 0 0 173.344-384c0-282.784-229.216-512-512-512z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(t){return""},t.prototype.isActive=function(t){return!1},t.prototype.isDisabled=function(t){return null==t.selection},t.prototype.exec=function(t,e){"function"==typeof t.undo&&t.undo()},t}(),rg={menus:[{key:"redo",factory:function(){return new eg}},{key:"undo",factory:function(){return new ng}}]};var og={type:"divider",renderElem:function(t,r,o){var i=e.DomEditor.isNodeSelected(o,t),a=n.h("div",{props:{contentEditable:!1,className:"w-e-textarea-divider"},dataset:{selected:i?"true":""},style:{},on:{mousedown:function(n){var r;if(n.preventDefault(),!(null===(r=o.isDisabled)||void 0===r?void 0:r.call(o)))try{var i=e.DomEditor.findPath(o,t);o.select(i)}catch(t){}}}},[n.h("hr")]);return a}};var ig={type:"divider",elemToHtml:function(t,e){return"<hr/>"}};var ag={selector:"hr:not([data-w-e-type])",parseElemHtml:function(t,e,n){return{type:"divider",children:[{text:""}]}}};var ug=function(){function t(){this.title=e.t("divider.title"),this.iconSvg='<svg viewBox="0 0 1092 1024"><path d="M0 51.2m51.2 0l989.866667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-989.866667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M0 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M819.2 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M409.6 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M0 870.4m51.2 0l989.866667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-989.866667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(){return""},t.prototype.isActive=function(){return!1},t.prototype.isDisabled=function(t){return null==t.selection||!!e.DomEditor.getSelectedElems(t).some((function(n){if(t.isVoid(n))return!0;var r=e.DomEditor.getNodeType(n);return"table"===r||"pre"===r}))},t.prototype.exec=function(t){this.isDisabled(t)||function(t){var n,o,i,a={type:"divider",children:[{text:""}]},u=t.selection,l=null!=(null===(o=null===(n=null==u?void 0:u.anchor)||void 0===n?void 0:n.path)||void 0===o?void 0:o.length)?[u.anchor.path[0]]:null,c=l?e.getEditorNodeAtPath(t,l):null;if(l&&e.isBlankParagraphNode(c)){r.Editor.withoutNormalizing(t,(function(){r.Transforms.removeNodes(t,{at:l});var n=[Math.min(l[0],t.children.length)];r.Transforms.insertNodes(t,a,{at:n});var o=[n[0]+1];try{e.getEditorNodeAtPath(t,o)?t.select(r.Editor.start(t,o)):t.__mdgchTrustedBlockPath=ko([],So(n))}catch(t){}}));try{"function"==typeof t.normalize&&t.normalize()}catch(t){}try{var s=null===(i=t.__mdgchTrustedBlockPath)||void 0===i?void 0:i[0];if(null!=s){var f=e.getEditorNodeAtPath(t,[s+1]),d=e.getEditorNodeAtPath(t,[s]);"divider"===(null==d?void 0:d.type)&&f&&t.select(r.Editor.start(t,[s+1]))}}catch(t){}}else r.Transforms.insertNodes(t,a,{mode:"highest"})}(t)},t}();function lg(t){var n;try{var r=e.DomEditor.getSelectedNodeByType(t,"divider");if(r)if(null==(u=e.DomEditor.findPath(t,r))?void 0:u.length)return u}catch(t){}var o=null==t?void 0:t.selection;if(!(null===(n=null==o?void 0:o.anchor)||void 0===n?void 0:n.path))return null;for(var i=o.anchor.path,a=i.length;a>=1;a--){var u=i.slice(0,a),l=e.getEditorNodeAtPath(t,u);if("divider"===(null==l?void 0:l.type))return u}return null}var cg=function(){function t(){this.title="ๅˆ ้™ค",this.iconSvg=ei,this.tag="button"}return t.prototype.getValue=function(){return""},t.prototype.isActive=function(){return!1},t.prototype.isDisabled=function(t){return null==t.selection||null==lg(t)},t.prototype.exec=function(t){var n,r,o;if(!this.isDisabled(t)){try{null===(o=null===(r=null===(n=e.DomEditor.getHoverbar)||void 0===n?void 0:n.call(e.DomEditor,t))||void 0===r?void 0:r.hideAndClean)||void 0===o||o.call(r)}catch(t){}var i=lg(t);if(null==i?void 0:i.length){var a=e.getEditorNodeAtPath(t,i);a&&"divider"===a.type&&e.replaceBlockWithEmptyLine(t,i,a)}}},t}(),sg={renderElems:[og],elemsToHtml:[ig],parseElemsHtml:[ag],menus:[{key:"divider",factory:function(){return new ug}},{key:"dividerAtCursor",factory:function(){return new ug}},{key:"removeDivider",factory:function(){return new cg}}],editorPlugin:function(t){var n=t.isVoid,o=t.normalizeNode,i=t;return i.isVoid=function(t){return"divider"===t.type||n(t)},i.normalizeNode=function(t){var n=So(t,2),a=n[0],u=n[1];if("divider"!==e.DomEditor.getNodeType(a))return o([a,u]);e.DomEditor.isLastNode(i,a)&&r.Transforms.insertNodes(i,e.DomEditor.genEmptyParagraph(),{at:[u[0]+1]})},i}},fg=new Set(["pre","paragraph","blockquote","header1","header2","header3","header4","header5","header6"]);function dg(t){var n,r;try{var o=e.DomEditor.getSelectedNodeByType(t,"code");if(o){var i=e.DomEditor.getParentNode(t,o);if(i&&"pre"===e.DomEditor.getNodeType(i))return e.DomEditor.findPath(t,i)}}catch(t){}var a=null==t?void 0:t.selection;if(!(null===(r=null===(n=null==a?void 0:a.anchor)||void 0===n?void 0:n.path)||void 0===r?void 0:r.length))return null;var u=[a.anchor.path[0]],l=e.getEditorNodeAtPath(t,u);return l&&"pre"===l.type?u:null}var pg=function(){function t(){this.title=e.t("codeBlock.title"),this.iconSvg='<svg viewBox="0 0 1280 1024"><path d="M832 736l96 96 320-320L928 192l-96 96 224 224zM448 288l-96-96L32 512l320 320 96-96-224-224zM701.312 150.528l69.472 18.944-192 704.032-69.472-18.944 192-704.032z"></path></svg>',this.tag="button"}return t.prototype.getSelectCodeElem=function(t){var n=e.DomEditor.getSelectedNodeByType(t,"code");if(null==n)return null;var r=e.DomEditor.getParentNode(t,n);return null==r||"pre"!==e.DomEditor.getNodeType(r)?null:n},t.prototype.getValue=function(t){var e=this.getSelectCodeElem(t);return null==e?"":e.language||""},t.prototype.isActive=function(t){return!!this.getSelectCodeElem(t)},t.prototype.isDisabled=function(t){return!this.isActive(t)&&!function(t){if(null==t.selection)return!1;try{var n=e.DomEditor.getSelectedElems(t);return!n.some((function(e){return t.isVoid(e)}))&&n.some((function(t){return fg.has(e.DomEditor.getNodeType(t))}))}catch(e){return null!=dg(t)}}(t)},t.prototype.exec=function(t,n){this.isActive(t)?function(t,n){var o=n||dg(t);if(!(null==o?void 0:o.length))return!1;var i=e.getEditorNodeAtPath(t,o);if(!i||"pre"!==i.type)return!1;var a="";try{a=r.Node.string(r.Node.get(t,ko(ko([],So(o)),[0])))}catch(t){a=r.Node.string(i)}var u=String(a).split("\n").map((function(t){return{type:"paragraph",children:[{text:t}]}}));u.length||u.push({type:"paragraph",children:[{text:""}]});try{e.pinEditorScrollDuring(t,(function(){var e,n;r.Transforms.removeNodes(t,{at:o});var i=Math.min(o[0],t.children.length);try{for(var a=xo(u),l=a.next();!l.done;l=a.next()){var c=l.value;r.Transforms.insertNodes(t,c,{at:[i]}),i+=1}}catch(t){e={error:t}}finally{try{l&&!l.done&&(n=a.return)&&n.call(a)}finally{if(e)throw e.error}}try{var s=[Math.min(o[0],t.children.length-1)];t.select({anchor:{path:ko(ko([],So(s)),[0]),offset:0},focus:{path:ko(ko([],So(s)),[0]),offset:0}})}catch(t){}}))}catch(t){return!1}}(t,dg(t)):this.isDisabled(t)||function(t,n){var o,i;if(void 0===n&&(n=""),!t||t.isDestroyed)return!1;var a=tv(t);if(!a.length){var u=t.selection;if(null===(i=null===(o=null==u?void 0:u.anchor)||void 0===o?void 0:o.path)||void 0===i?void 0:i.length){var l=[u.anchor.path[0]],c=e.getEditorNodeAtPath(t,l);c&&Jh(e.DomEditor.getNodeType(c))&&(a=[[c,l]])}}if(!a.length)return!1;var s=a.map((function(e){var n=So(e,2),o=n[0],i=n[1];try{return r.Node.string(r.Node.get(t,i))}catch(t){return r.Node.string(o)}})),f=s.join("\n"),d=a[0][1][0],p={type:"pre",children:[{type:"code",language:n||"",children:[{text:f}]}]};try{e.pinEditorScrollDuring(t,(function(){r.Editor.withoutNormalizing(t,(function(){for(var n=a.length-1;n>=0;n--){var o=[a[n][1][0]],i=e.getEditorNodeAtPath(t,o);i&&"pre"!==i.type&&r.Transforms.removeNodes(t,{at:o})}var u=[Math.min(d,t.children.length)];r.Transforms.insertNodes(t,p,{at:u});try{t.select(r.Editor.start(t,ko(ko([],So(u)),[0])))}catch(t){}t.__mdgchTrustedBlockPath=ko([],So(u))}))}))}catch(t){return console.warn("[wangeditor] convertSelectionBlockToCodeBlock failed",t),!1}}(t,null!=n?String(n):"")},t}(),hg={key:"codeBlock",factory:function(){return new pg}},vg={key:"codeBlockAtCursor",factory:function(){return new pg}};ur("match",(function(t,e,n){return[function(e){var n=V(this),r=null==e?void 0:ut(e,t);return r?x(r,e,n):new RegExp(e)[t](wn(n))},function(t){var r=Bt(this),o=wn(t),i=n(e,r,o);if(i.done)return i.value;if(!r.global)return Sr(r,o);var a=r.unicode;r.lastIndex=0;for(var u,l=[],c=0;null!==(u=Sr(r,o));){var s=wn(u[0]);l[c]=s,""===s&&(r.lastIndex=hr(o,we(r.lastIndex),a)),c++}return 0===c?null:l}]}));var gg=Gp.getWeakData,yg=le.set,mg=le.getterFor,bg=pn.find,Eg=pn.findIndex,wg=I([].splice),xg=0,Sg=function(t){return t.frozen||(t.frozen=new kg)},kg=function(){this.entries=[]},Tg=function(t,e){return bg(t.entries,(function(t){return t[0]===e}))};kg.prototype={get:function(t){var e=Tg(this,t);if(e)return e[1]},has:function(t){return!!Tg(this,t)},set:function(t,e){var n=Tg(this,t);n?n[1]=e:this.entries.push([t,e])},delete:function(t){var e=Eg(this.entries,(function(e){return e[0]===t}));return~e&&wg(this.entries,e,1),!!~e}};var Ng,Ag={getConstructor:function(t,e,n,r){var o=t((function(t,o){ih(t,i),yg(t,{type:e,id:xg++,frozen:void 0}),null!=o&&rh(o,t[r],{that:t,AS_ENTRIES:n})})),i=o.prototype,a=mg(e),u=function(t,e,n){var r=a(t),o=gg(Bt(e),!0);return!0===o?Sg(r).set(e,n):o[r.id]=n,t};return ph(i,{delete:function(t){var e=a(this);if(!q(t))return!1;var n=gg(t);return!0===n?Sg(e).delete(t):n&&yt(n,e.id)&&delete n[e.id]},has:function(t){var e=a(this);if(!q(t))return!1;var n=gg(t);return!0===n?Sg(e).has(t):n&&yt(n,e.id)}}),ph(i,n?{get:function(t){var e=a(this);if(q(t)){var n=gg(t);return!0===n?Sg(e).get(t):n?n[e.id]:void 0}},set:function(t,e){return u(this,t,e)}}:{add:function(t){return u(this,t,!0)}}),o}},Dg=le.enforce,Mg=!m.ActiveXObject&&"ActiveXObject"in m,Lg=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},Pg=dh("WeakMap",Lg,Ag);if(Jt&&Mg){Ng=Ag.getConstructor(Lg,"WeakMap",!0),Gp.enable();var Ig=Pg.prototype,Og=I(Ig.delete),Hg=I(Ig.has),jg=I(Ig.get),zg=I(Ig.set);ph(Ig,{delete:function(t){if(q(t)&&!qp(t)){var e=Dg(this);return e.frozen||(e.frozen=new Ng),Og(this,t)||e.frozen.delete(t)}return Og(this,t)},has:function(t){if(q(t)&&!qp(t)){var e=Dg(this);return e.frozen||(e.frozen=new Ng),Hg(this,t)||e.frozen.has(t)}return Hg(this,t)},get:function(t){if(q(t)&&!qp(t)){var e=Dg(this);return e.frozen||(e.frozen=new Ng),Hg(this,t)?jg(this,t):e.frozen.get(t)}return jg(this,t)},set:function(t,e){if(q(t)&&!qp(t)){var n=Dg(this);n.frozen||(n.frozen=new Ng),Hg(this,t)?zg(this,t,e):n.frozen.set(t,e)}else zg(this,t,e);return this}})}var Cg=[{text:"Plain Text",value:""},{text:"CSS",value:"css"},{text:"HTML",value:"html"},{text:"XML",value:"xml"},{text:"Javascript",value:"javascript"},{text:"Typescript",value:"typescript"},{text:"JSX",value:"jsx"},{text:"Go",value:"go"},{text:"PHP",value:"php"},{text:"C",value:"c"},{text:"Python",value:"python"},{text:"Java",value:"java"},{text:"C++",value:"cpp"},{text:"C#",value:"csharp"},{text:"Visual Basic",value:"visual-basic"},{text:"SQL",value:"sql"},{text:"Ruby",value:"ruby"},{text:"Swift",value:"swift"},{text:"Bash",value:"bash"},{text:"Lua",value:"lua"},{text:"Groovy",value:"groovy"},{text:"Markdown",value:"markdown"}],_g='<svg viewBox="0 0 24 24"><path d="M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z"></path></svg>',Bg=new WeakMap;function Vg(t,e,n,o){var i="";try{var a=ko(ko([],So(e)),[0]);i=r.Node.string(r.Node.get(t,a))}catch(t){i=r.Node.string(n)}(function(t){var e;return Eo(this,void 0,void 0,(function(){var n,r,o;return wo(this,(function(i){switch(i.label){case 0:n=null!=t?String(t):"",i.label=1;case 1:return i.trys.push([1,4,,5]),"undefined"!=typeof navigator&&(null===(e=navigator.clipboard)||void 0===e?void 0:e.writeText)?[4,navigator.clipboard.writeText(n)]:[3,3];case 2:return i.sent(),[2,!0];case 3:return[3,5];case 4:return i.sent(),[3,5];case 5:try{return(r=document.createElement("textarea")).value=n,r.setAttribute("readonly",""),r.style.position="fixed",r.style.left="-9999px",r.style.top="0",document.body.appendChild(r),r.select(),o=document.execCommand("copy"),document.body.removeChild(r),[2,o]}catch(t){return[2,!1]}return[2]}}))}))})(i).then((function(t){t&&o&&function(t){var e=Bg.get(t);e&&clearTimeout(e),t.setAttribute("data-pre-copy-ok","1"),t.innerHTML='<svg viewBox="0 0 24 24"><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"></path></svg>',t.setAttribute("title","ๅทฒๅคๅˆถ"),t.setAttribute("aria-label","ๅทฒๅคๅˆถ");var n=setTimeout((function(){Bg.delete(t),t.isConnected&&(t.removeAttribute("data-pre-copy-ok"),t.innerHTML=_g,t.setAttribute("title","ๅคๅˆถไปฃ็ "),t.setAttribute("aria-label","ๅคๅˆถไปฃ็ "))}),1600);Bg.set(t,n)}(o)}))}var Rg={el:null,anchorEl:null,onDoc:null,onScroll:null,onKey:null};function Fg(){var t=Rg.el,e=Rg.onDoc,n=Rg.onScroll,r=Rg.onKey;e&&document.removeEventListener("mousedown",e,!0),n&&window.removeEventListener("scroll",n,!0),r&&document.removeEventListener("keydown",r,!0),(null==t?void 0:t.parentNode)&&t.parentNode.removeChild(t),Rg={el:null,anchorEl:null,onDoc:null,onScroll:null,onKey:null}}function qg(t,n,o,i,a){if(t&&!t.isDestroyed&&!t.isDisabled()){var u=e.resolveElemPath(t,n);if(null==u?void 0:u.length)if("enter"!==o)if("cancel-enter"!==o)if("lang"!==o)if("word-wrap"!==o)if("copy"!==o)if("uncode"!==o){if("remove"===o){l=e.getEditorNodeAtPath(t,u)||n;e.replaceBlockWithEmptyLine(t,u,l)}}else{var l=e.getEditorNodeAtPath(t,u)||n;!function(t,n,o){var i="";try{var a=ko(ko([],So(n)),[0]);i=r.Node.string(r.Node.get(t,a))}catch(t){i=r.Node.string(o)}var u=String(i).split("\n").map((function(t){return{type:"paragraph",children:[{text:t}]}}));u.length||u.push({type:"paragraph",children:[{text:""}]});try{e.pinEditorScrollDuring(t,(function(){var e,o;r.Transforms.removeNodes(t,{at:n});var i=Math.min(n[0],t.children.length);try{for(var a=xo(u),l=a.next();!l.done;l=a.next()){var c=l.value;r.Transforms.insertNodes(t,c,{at:[i]}),i+=1}}catch(t){e={error:t}}finally{try{l&&!l.done&&(o=a.return)&&o.call(a)}finally{if(e)throw e.error}}try{var s=[Math.min(n[0],t.children.length-1)];t.select({anchor:{path:ko(ko([],So(s)),[0]),offset:0},focus:{path:ko(ko([],So(s)),[0]),offset:0}})}catch(t){}}))}catch(t){return!1}}(t,u,l)}else{var l=e.getEditorNodeAtPath(t,u)||n;Vg(t,u,l,a)}else{var c=ko(ko([],So(u)),[0]),s=e.getEditorNodeAtPath(t,c);if(!s||"code"!==s.type)return;e.pinEditorScrollDuring(t,(function(){r.Transforms.setNodes(t,{wordWrap:!s.wordWrap},{at:c})}))}else{var f=ko(ko([],So(u)),[0]),d=e.getEditorNodeAtPath(t,f);if(!d||!r.Element.isElement(d)||"code"!==d.type)return;e.pinEditorScrollDuring(t,(function(){r.Transforms.setNodes(t,{language:null!=i?String(i):""},{at:f})}))}else e.removeEmptyLineAboveTopLevelBlock(t,u);else e.insertEmptyLineAboveAtPath(t,u)}}function Wg(t,n){var r,o,i=!1,a="",u=!1;try{var l=e.DomEditor.findPath(t,n);i=e.canRemoveEmptyLineAboveBlock(t,l);var c=(o=null===(r=n)||void 0===r?void 0:r.children,Array.isArray(o)&&o.length&&o.find((function(t){var e;return"code"===(null===(e=t)||void 0===e?void 0:e.type)}))||null);a=null!=(null==c?void 0:c.language)?String(c.language):"",u=!!(null==c?void 0:c.wordWrap)}catch(t){}return{canCancelEnter:i,lang:a,wordWrap:u}}function Gg(t){var e,r,o,i=null!=t?String(t):"",a=(r=null!=(e=i)?String(e):"",(null==(o=Cg.find((function(t){return t.value===r})))?void 0:o.text)||r||"Plain Text");return n.h("button",{attrs:{type:"button",class:"mdg-pre-lang-btn",title:"่ฏญ่จ€","data-pre-action":"lang-open","data-pre-lang":i,"aria-label":"ไปฃ็ ่ฏญ่จ€","aria-haspopup":"listbox"},props:{contentEditable:!1},on:{mousedown:function(t){t.preventDefault(),t.stopPropagation()}}},[n.h("span",{attrs:{class:"mdg-pre-lang-text"}},[a]),n.h("span",{attrs:{class:"mdg-pre-lang-caret"}},["โ–พ"])])}var $g={menus:[hg,vg],editorPlugin:function(t){var n=t.insertBreak,o=t.normalizeNode,i=t.insertData,a=t.handleShiftTab,u=t;return u.insertBreak=function(){var t=e.DomEditor.getSelectedNodeByType(u,"code");if(null!=t){var o=function(t,e){var n=e.selection;if(null==n)return"";var o=r.Node.string(t),i=n.anchor.offset,a=o.slice(0,i).split("\n"),u=a.length;return 0===u?"":a[u-1]}(t,u);if(o){var i=o.match(/^\s+/);if(null!=i&&null!=i[0]){var a=i[0];return void u.insertText("\n"+a)}}u.insertText("\n")}else n()},u.handleShiftTab=function(){null!=e.DomEditor.getSelectedNodeByType(u,"code")?function(t){var e=t.selection;if(null!=e&&r.Path.equals(r.Range.start(e).path,r.Range.end(e).path)){var n=r.Range.start(e).path,o=r.Node.get(t,n);if(r.Text.isText(o)){for(var i=o.text,a=r.Range.start(e).offset,u=r.Range.isCollapsed(e)?a:r.Range.end(e).offset,l=[],c=0,s=0;s<=i.length;s++)if(s===i.length||"\n"===i[s]){var f=s;r.Range.isCollapsed(e)?c<=a&&a<=f&&l.push(c):f>a&&c<=u&&l.push(c),c=s+1}for(s=l.length-1;s>=0;s--){var d=l[s],p=i.slice(d).match(/^(?:\t| {1,4})/);if(p){var h=p[0].length;r.Transforms.delete(t,{at:{anchor:{path:n,offset:d},focus:{path:n,offset:d+h}}})}}}}}(u):"function"==typeof a&&a()},u.normalizeNode=function(t){var n=So(t,2),i=n[0],a=n[1],l=e.DomEditor.getNodeType(i);("code"===l&&a.length<=1&&r.Transforms.setNodes(u,{type:"paragraph"},{at:a}),"pre"===l)&&(e.DomEditor.isLastNode(u,i)&&r.Transforms.insertNodes(u,e.DomEditor.genEmptyParagraph(),{at:[a[0]+1]}),"code"!==e.DomEditor.getNodeType(i.children[0])&&(r.Transforms.unwrapNodes(u),r.Transforms.setNodes(u,{type:"paragraph"},{mode:"highest"})));return o([i,a])},u.insertData=function(t){if(null!=e.DomEditor.getSelectedNodeByType(u,"code")){var n=t.getData("text/plain");r.Editor.insertText(u,n)}else i(t)},u},renderElems:[{type:"pre",renderElem:function(t,e,r){var o=null==e?[]:Array.isArray(e)?e:[e];if(r.isDisabled())return n.h("pre",{},o);var i,a=Wg(r,t),u=a.canCancelEnter,l=a.lang,c=a.wordWrap,s=n.h("div",{attrs:{class:"mdg-pre-toolbar",contenteditable:"false","data-mdg-pre-toolbar":"1"},props:{contentEditable:!1},on:{mousedown:function(t){t.preventDefault(),t.stopPropagation()},click:function(e){var n,o;e.preventDefault(),e.stopPropagation();var i=e.target,a=null===(n=null==i?void 0:i.closest)||void 0===n?void 0:n.call(i,"button[data-pre-action]"),u=null===(o=null==a?void 0:a.getAttribute)||void 0===o?void 0:o.call(a,"data-pre-action");if(a&&u&&!a.classList.contains("is-disabled"))if("lang-open"!==u)Fg(),qg(r,t,u,void 0,a);else{var l=a.getAttribute("data-pre-lang")||"";!function(t,e,n,r){var o,i;if(Rg.el&&Rg.anchorEl===t)Fg();else if(Fg(),t&&"undefined"!=typeof document){var a=null!=r?String(r):"",u=document.createElement("div");u.className="mdg-pre-lang-panel",u.setAttribute("contenteditable","false"),u.setAttribute("role","listbox");var l=ko([],So(Cg));a&&!l.some((function(t){return t.value===a}))&&l.push({text:a,value:a});var c=function(t){var r=document.createElement("button");r.type="button",r.className="mdg-pre-lang-option"+(t.value===a?" is-selected":""),r.setAttribute("role","option"),r.textContent=t.text,r.addEventListener("mousedown",(function(t){t.preventDefault(),t.stopPropagation()})),r.addEventListener("click",(function(r){r.preventDefault(),r.stopPropagation(),Fg(),qg(e,n,"lang",t.value)})),u.appendChild(r)};try{for(var s=xo(l),f=s.next();!f.done;f=s.next())c(f.value)}catch(t){o={error:t}}finally{try{f&&!f.done&&(i=s.return)&&i.call(s)}finally{if(o)throw o.error}}document.body.appendChild(u);var d=function(){if(t.isConnected){var e=t.getBoundingClientRect();if(e.bottom<0||e.top>window.innerHeight||e.right<0||e.left>window.innerWidth)Fg();else{var n=window.innerHeight-e.bottom-8,r=e.top-8,o=n<140&&r>n,i=Math.max(96,o?r-4:n-4);u.style.maxHeight=Math.min(240,Math.floor(i))+"px",u.style.minWidth=Math.max(140,Math.round(e.width))+"px";var a=u.offsetWidth||Math.max(140,e.width),l=u.offsetHeight||Math.min(240,i),c=o?Math.max(8,e.top-l-4):e.bottom+4,s=e.left;s+a>window.innerWidth-8&&(s=Math.max(8,window.innerWidth-a-8)),s<8&&(s=8),u.style.top=Math.round(c)+"px",u.style.left=Math.round(s)+"px"}}else Fg()};d(),requestAnimationFrame(d);var p=function(e){var n=e.target;n instanceof globalThis.Node&&(u.contains(n)||t.contains(n))||Fg()},h=function(t){var e=null==t?void 0:t.target;e instanceof globalThis.Node&&(e===u||u.contains(e))||d()},v=function(t){"Escape"===t.key&&(t.preventDefault(),Fg())};Rg={el:u,anchorEl:t,onDoc:p,onScroll:h,onKey:v},requestAnimationFrame((function(){document.addEventListener("mousedown",p,!0),window.addEventListener("scroll",h,!0),document.addEventListener("keydown",v,!0)}))}}(a,r,t,l)}}}},[Gu({action:"enter",title:"ๅ›ž่ฝฆ๏ผˆไธŠๆ–น็ฉบ่กŒ๏ผ‰",iconSvg:Uu,actionAttr:"data-pre-action",className:"mdg-pre-btn"}),Gu({action:"cancel-enter",title:"ๅ–ๆถˆๅ›ž่ฝฆ",iconSvg:Ku,actionAttr:"data-pre-action",className:"mdg-pre-btn",disabled:!u}),Gg(l),$u("mdg-pre-toolbar-spacer"),(i=c,n.h("button",{attrs:{type:"button",class:i?"mdg-pre-wrap-btn is-active":"mdg-pre-wrap-btn",title:"่‡ชๅŠจๆข่กŒ","data-pre-action":"word-wrap","aria-label":"่‡ชๅŠจๆข่กŒ","aria-pressed":i?"true":"false"},props:{contentEditable:!1},on:{mousedown:function(t){t.preventDefault(),t.stopPropagation()}}},[n.h("span",{attrs:{class:"mdg-pre-wrap-label"}},["่‡ชๅŠจๆข่กŒ"]),n.h("span",{attrs:{class:"mdg-pre-wrap-switch"}},[])])),Gu({action:"copy",title:"ๅคๅˆถไปฃ็ ",iconSvg:_g,actionAttr:"data-pre-action",className:"mdg-pre-btn"}),Gu({action:"uncode",title:"ๅ–ๆถˆไปฃ็ ๅ—",iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M332.288 758.016l-151.552-151.552 151.552-151.552-60.416-60.416-212.992 211.968 212.992 211.968zM691.712 758.016l151.552-151.552-151.552-151.552 60.416-60.416 212.992 211.968-212.992 211.968zM586.752 264.192l-90.112 495.616h-69.632l90.112-495.616z"></path><path d="M198 128l64-64 628 628-64 64z"></path></svg>',actionAttr:"data-pre-action",className:"mdg-pre-btn"}),Gu({action:"remove",title:"ๅˆ ้™ค",iconSvg:Xu,actionAttr:"data-pre-action",className:"mdg-pre-btn"})]);return n.h("pre",{attrs:{class:"mdg-pre-with-toolbar"}},ko([s],So(o)))}},{type:"code",renderElem:function(t,e,r){var o=t,i=o.language,a=void 0===i?"":i,u=o.wordWrap,l=[];a&&l.push("language-"+a),u&&l.push("w-e-code-word-wrap");var c=l.join(" ");return u?n.jsx("code",{className:c,"data-word-wrap":"true"},e):c?n.jsx("code",{className:c},e):n.jsx("code",null,e)}}],elemsToHtml:[{type:"code",elemToHtml:function(t,e){return"<code>"+e+"</code>"}},{type:"pre",elemToHtml:function(t,e){return"<pre>"+e+"</pre>"}}],preParseHtml:[{selector:"pre>code",preParseHtml:function(t){var e=l.default(t);if("code"!==vo(e))return t;var n=e.find("xmp");if(0===n.length)return t;var r=n.text();return n.remove(),e.text(r),e[0]}}],parseElemsHtml:[{selector:"pre:not([data-w-e-type])>code",parseElemHtml:function(t,e,n){return{type:"code",language:"",children:[{text:l.default(t)[0].textContent||""}]}}},{selector:"pre:not([data-w-e-type])",parseElemHtml:function(t,n,r){var o=l.default(t);return 0===(n=n.filter((function(t){return"code"===e.DomEditor.getNodeType(t)}))).length&&(n=[{type:"code",language:"",children:[{text:o[0].textContent||""}]}]),{type:"pre",children:n.filter((function(t){return"code"===e.DomEditor.getNodeType(t)}))}}}]},Ug=function(){function t(){this.title=e.t("fullScreen.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M133.705143 335.433143V133.851429h201.581714a29.622857 29.622857 0 0 0 29.622857-29.549715V68.754286a29.622857 29.622857 0 0 0-29.622857-29.622857H61.732571A22.893714 22.893714 0 0 0 38.765714 62.025143V335.725714c0 16.310857 13.238857 29.622857 29.622857 29.622857h35.547429a29.842286 29.842286 0 0 0 29.696-29.842285zM690.980571 133.851429h201.581715v201.654857c0 16.310857 13.238857 29.549714 29.622857 29.549714h35.547428a29.622857 29.622857 0 0 0 29.549715-29.549714V61.952a22.893714 22.893714 0 0 0-22.820572-22.893714h-273.554285a29.622857 29.622857 0 0 0-29.549715 29.622857v35.547428c0 16.310857 13.238857 29.696 29.622857 29.696zM335.286857 892.781714H133.705143V691.2a29.622857 29.622857 0 0 0-29.622857-29.622857H68.534857a29.622857 29.622857 0 0 0-29.549714 29.622857v273.554286c0 12.653714 10.24 22.893714 22.820571 22.893714h273.554286a29.622857 29.622857 0 0 0 29.696-29.622857v-35.547429a29.769143 29.769143 0 0 0-29.769143-29.696z m557.348572-201.581714v201.581714H690.907429a29.622857 29.622857 0 0 0-29.622858 29.622857v35.547429c0 16.310857 13.238857 29.622857 29.622858 29.622857h273.554285c12.580571 0 22.893714-10.313143 22.893715-22.893714V691.2a29.622857 29.622857 0 0 0-29.622858-29.622857h-35.547428a29.622857 29.622857 0 0 0-29.696 29.622857z"></path></svg>',this.tag="button",this.alwaysEnable=!0}return t.prototype.getValue=function(t){return""},t.prototype.isActive=function(t){return t.isFullScreen},t.prototype.isDisabled=function(t){return!1},t.prototype.exec=function(t,e){t.isFullScreen?t.unFullScreen():t.fullScreen()},t}(),Kg={menus:[{key:"fullScreen",factory:function(){return new Ug}}]},Xg=function(){function t(){this.title=e.t("common.enterAbove"),this.iconSvg=pi,this.tag="button"}return t.prototype.getValue=function(t){return""},t.prototype.isActive=function(t){return!1},t.prototype.isDisabled=function(t){var e=t.selection;return null==e||!!r.Range.isExpanded(e)},t.prototype.exec=function(t,n){var o=t.selection;if(null!=o){var i=o.anchor.path,a={type:"paragraph",children:[{text:""}]},u=[i[0]];e.pinEditorScrollDuring(t,(function(){r.Transforms.insertNodes(t,a,{at:u});try{t.select(r.Editor.start(t,[u[0]+1]))}catch(e){try{t.select(r.Editor.start(t,u))}catch(t){}}}))}},t}();function Jg(t){var e,n,r=null===(n=null===(e=t.selection)||void 0===e?void 0:e.anchor)||void 0===n?void 0:n.path;return(null==r?void 0:r.length)?[r[0]]:null}var Yg=function(){function t(){this.title=e.t("common.cancelEnter"),this.iconSvg=hi,this.tag="button"}return t.prototype.getValue=function(t){return""},t.prototype.isActive=function(t){return!1},t.prototype.isDisabled=function(t){if(null==t.selection)return!0;var n=Jg(t);return!(null==n?void 0:n.length)||!e.canRemoveEmptyLineAboveBlock(t,n)},t.prototype.exec=function(t,n){if(!this.isDisabled(t)){var r=Jg(t);(null==r?void 0:r.length)&&e.removeEmptyLineAboveTopLevelBlock(t,r)}},t}(),Qg={menus:[{key:"enter",factory:function(){return new Xg}},{key:"cancelEnter",factory:function(){return new Yg}}]},Zg=I(N.f),ty=I([].push),ey=function(t){return function(e){for(var n,r=R(e),o=An(r),i=o.length,a=0,u=[];i>a;)n=o[a++],E&&!Zg(r,n)||ty(u,t?[n,r[n]]:r[n]);return u}},ny={entries:ey(!0),values:ey(!1)}.entries;qe({target:"Object",stat:!0},{entries:function(t){return ny(t)}});var ry=["bold","italic","underline","through","code","sub","sup","color","bgColor","fontSize","fontFamily"],oy={isSelect:!1,formatStyle:null,formatBlockStyle:null,sourceSelKey:""},iy="";function ay(t){try{var n=t?e.DomEditor.getHoverbar(t):null;n&&n.hideAndClean()}catch(t){}"undefined"!=typeof document&&document.querySelectorAll(".w-e-hover-bar").forEach((function(t){t.classList.remove("w-e-bar-show"),t.classList.add("w-e-bar-hidden")}))}function uy(t,e){if("undefined"!=typeof document){document.documentElement.classList.toggle("w-e-format-painter-on",!!t),document.documentElement.classList.toggle("mdg-format-painter-on",!!t);var n=document.querySelector(".editor-content");if(n)if(n.classList.toggle("w-e-format-painter-on",!!t),n.classList.toggle("mdg-format-painter-on",!!t),t){iy="";var r=function(){if(iy)return iy;if("undefined"==typeof document)return"text";try{var t=document.createElement("canvas"),e=Math.min(2,window.devicePixelRatio||1);t.width=22*e,t.height=22*e;var n=t.getContext("2d");if(!n)return"text";n.scale(e,e),n.clearRect(0,0,22,22),n.fillStyle="#111",n.strokeStyle="#111";var r=16.2,o=3.6,i=18.4,a=14,u=11-a/2,l=2.2;n.fillRect(l+3.1,u,2.4,3.4),n.fillRect(l,u+3.4,8.6,3.1),n.lineCap="butt",n.lineWidth=1.35;var c=u+6.5;[[3.1,a-.8],[4.7,a],[6.3,a-.2],[7.9,a-.6],[9.5,a-1.4]].forEach((function(t){var e=So(t,2),r=e[0],o=e[1];n.beginPath(),n.moveTo(r,c),n.lineTo(r,u+o),n.stroke()})),n.lineWidth=1.15,n.beginPath(),n.moveTo(14.1,o),n.lineTo(18.3,o),n.moveTo(r,o),n.lineTo(r,i),n.moveTo(14.1,i),n.lineTo(18.3,i),n.stroke();var s=t.toDataURL("image/png");iy="url("+s+") "+r+" 11, text"}catch(t){iy="text"}return iy}();n.style.setProperty("--w-e-format-painter-cursor",r),n.style.setProperty("--mdg-format-painter-cursor",r),document.documentElement.style.setProperty("--w-e-format-painter-cursor",r),document.documentElement.style.setProperty("--mdg-format-painter-cursor",r),ay(e),[0,50,220,400].forEach((function(t){setTimeout((function(){oy.isSelect&&ay(e)}),t)}))}else n.style.removeProperty("--w-e-format-painter-cursor"),n.style.removeProperty("--mdg-format-painter-cursor"),document.documentElement.style.removeProperty("--w-e-format-painter-cursor"),document.documentElement.style.removeProperty("--mdg-format-painter-cursor");else t||(document.documentElement.style.removeProperty("--w-e-format-painter-cursor"),document.documentElement.style.removeProperty("--mdg-format-painter-cursor"))}}function ly(t){oy.isSelect=!1,oy.formatStyle=null,oy.formatBlockStyle=null,oy.sourceSelKey="",uy(!1,t)}try{"undefined"!=typeof window&&(window.__wEClearFormatPainter=ly)}catch(t){}function cy(t){var e,n;return(null===(e=null==t?void 0:t.anchor)||void 0===e?void 0:e.path)&&(null===(n=null==t?void 0:t.focus)||void 0===n?void 0:n.path)?[t.anchor.path.join("."),t.anchor.offset,t.focus.path.join("."),t.focus.offset].join("|"):""}var sy=function(){function t(){this.title="ๆ ผๅผๅˆท",this.tag="button",this.iconSvg='<svg viewBox="5.2 4.8 14.2 15.2" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M15.1 5.75a.75.75 0 01.75.75v3.3a.75.75 0 01-.75.75H6.9a.75.75 0 01-.75-.75V6.5a.75.75 0 01.75-.75h8.2z" stroke="currentColor" stroke-width="1.5" stroke-linejoin="round"></path><path d="M15.326 8.15h3.141v5.636l-8.4 1.085V19" stroke="currentColor" stroke-width="1.5" stroke-linejoin="round"></path></svg>'}return t.prototype.getValue=function(){return""},t.prototype.isActive=function(){return!!oy.isSelect},t.prototype.isDisabled=function(t){if(oy.isSelect)return!1;if(null==t.selection)return!0;try{var e="function"==typeof t.getSelectionText?t.getSelectionText():"";return!String(e||"").length}catch(t){return!0}},t.prototype.isSourceBlockType=function(t){return"blockquote"===t||"header1"===t||"header2"===t||"header3"===t||"header4"===t||"header5"===t||"header6"===t||"list-item"===t||"todo"===t},t.prototype.isTargetBlockType=function(t){return"paragraph"===t||this.isSourceBlockType(t)},t.prototype.getTopLevelBlockPaths=function(t,e){var n,o,i=[];try{var a=r.Editor.nodes(t,{at:t.selection||void 0,match:function(t){return!!t&&"object"===ip(t)&&"type"in t}});try{for(var u=xo(a),l=u.next();!l.done;l=u.next()){var c=So(l.value,2),s=c[0],f=c[1];1===(null==f?void 0:f.length)&&e(s.type)&&i.push(f)}}catch(t){n={error:t}}finally{try{l&&!l.done&&(o=u.return)&&o.call(u)}finally{if(n)throw n.error}}}catch(t){}return i},t.prototype.getSelectedBlockStyle=function(t){var e=this,n=this.getTopLevelBlockPaths(t,(function(t){return e.isSourceBlockType(t)}))[0];if(!n)return null;var o=function(t,e){try{return r.Node.get(t,e)}catch(t){return null}}(t,n);return o&&this.isSourceBlockType(o.type)?"list-item"===o.type?{type:"list-item",ordered:!!o.ordered}:{type:o.type}:null},t.prototype.pickMarks=function(t){var e,n,o=null;try{o=r.Editor.marks(t)}catch(t){o=null}if(!o||"object"!==ip(o))return null;var i={};try{for(var a=xo(ry),u=a.next();!u.done;u=a.next()){var l=u.value;null!=o[l]&&!1!==o[l]&&(i[l]=o[l])}}catch(t){e={error:t}}finally{try{u&&!u.done&&(n=a.return)&&n.call(a)}finally{if(e)throw e.error}}return Object.keys(i).length?i:null},t.prototype.unsetListAttrs=function(t,e){try{r.Transforms.unsetNodes(t,["ordered","level","start"],{at:e})}catch(t){}},t.prototype.applyBlockStyle=function(t,e){var n=this,o=this.getTopLevelBlockPaths(t,(function(t){return n.isTargetBlockType(t)}));o.length&&("list-item"!==e.type?"todo"!==e.type?o.forEach((function(o){try{r.Transforms.setNodes(t,{type:e.type},{at:o}),n.unsetListAttrs(t,o),r.Transforms.unsetNodes(t,"checked",{at:o})}catch(t){}})):o.forEach((function(e){try{r.Transforms.setNodes(t,{type:"todo",checked:!1},{at:e}),n.unsetListAttrs(t,e)}catch(t){}})):o.forEach((function(n){try{r.Transforms.setNodes(t,{type:"list-item",ordered:!!e.ordered,level:0},{at:n}),r.Transforms.unsetNodes(t,"checked",{at:n})}catch(t){}})))},t.prototype.applyCopiedFormat=function(t,e){var n,o;void 0===e&&(e={});var i=e.allowPending,a=void 0!==i&&i;if(!oy.isSelect||!t||t.isDestroyed)return"cancel";var u="";try{u="function"==typeof t.getSelectionText?t.getSelectionText():""}catch(t){u=""}u=String(u||"");var l=t.selection,c=cy(l),s=!!c&&c===oy.sourceSelKey;if(!u.length||!l||s)return a?"pending":(ly(t),"cancel");try{if(oy.formatStyle){!function(t){var e,n;if(t&&!t.isDestroyed&&t.selection)try{r.Transforms.unsetNodes(t,ry,{at:t.selection,match:function(t){return"string"==typeof(null==t?void 0:t.text)},split:!0})}catch(r){try{for(var o=xo(ry),i=o.next();!i.done;i=o.next()){var a=i.value;try{t.removeMark(a)}catch(t){}}}catch(t){e={error:t}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}}}(t);try{r.Transforms.setNodes(t,oy.formatStyle,{at:t.selection||l,match:function(t){return"string"==typeof(null==t?void 0:t.text)},split:!0})}catch(e){try{for(var f=xo(Object.entries(oy.formatStyle)),d=f.next();!d.done;d=f.next()){var p=So(d.value,2),h=p[0],v=p[1];try{t.addMark(h,v)}catch(t){}}}catch(t){n={error:t}}finally{try{d&&!d.done&&(o=f.return)&&o.call(f)}finally{if(n)throw n.error}}}}oy.formatBlockStyle&&this.applyBlockStyle(t,oy.formatBlockStyle)}catch(t){console.warn("[wangeditor] formatPainter apply",t)}finally{ly(t)}return"applied"},t.prototype.exec=function(t){if(!this.isDisabled(t))if(oy.isSelect)ly(t);else{var e=this.pickMarks(t),n=this.getSelectedBlockStyle(t);(e||n)&&(oy.formatStyle=e,oy.formatBlockStyle=n,oy.sourceSelKey=cy(t.selection),oy.isSelect=!0,uy(!0,t),ay(t))}},t}();var fy=[Si,Sa,yv,{menus:[{key:"formatPainter",factory:function(){return new sy}}],editorPlugin:function(t){if(t.__wFormatPainterPatched)return t;t.__wFormatPainterPatched=!0;var e=new sy,n=!1,r=0,o=!1,i=function(){n&&(n=!1,document.removeEventListener("pointerup",a,!1),document.removeEventListener("mouseup",a,!1))},a=function(n){var a,u;if(i(),oy.isSelect&&!t.isDestroyed){var l=null===(a=n)||void 0===a?void 0:a.target;l instanceof Element&&(null===(u=l.closest)||void 0===u?void 0:u.call(l,'button[data-menu-key="formatPainter"]'))||function(){if(!o){o=!0,r&&(clearTimeout(r),r=0);var n=0,i=function i(){if(r=0,oy.isSelect&&!t.isDestroyed){try{if("pending"===e.applyCopiedFormat(t,{allowPending:n<8}))return n+=1,void(r=window.setTimeout(i,n<3?16:32))}catch(e){ly(t)}o=!1}else o=!1};requestAnimationFrame((function(){requestAnimationFrame(i)}))}}()}},u=function(e){var r,o;if(oy.isSelect&&!t.isDestroyed){var i=null===(r=e)||void 0===r?void 0:r.target;i instanceof Element&&(null===(o=i.closest)||void 0===o?void 0:o.call(i,'button[data-menu-key="formatPainter"]'))||oy.isSelect&&!t.isDestroyed&&(n||(n=!0,document.addEventListener("pointerup",a,!1),document.addEventListener("mouseup",a,!1)))}},l=function(e){"Escape"===e.key&&oy.isSelect&&(e.preventDefault(),e.stopPropagation(),ly(t))};return document.addEventListener("pointerdown",u,!0),document.addEventListener("keydown",l,!0),t.on("destroyed",(function(){r&&clearTimeout(r),i(),document.removeEventListener("pointerdown",u,!0),document.removeEventListener("keydown",l,!0),ly(t)})),t}},$v,Qv,tg,_u,sg,iv,tu,$g,rv,da,No,Ru,rg,Kg,Qg];t.default=fy,t.insertImageNode=wu,t.isInsertImageMenuDisabled=Su,t.setLinkHoverHrefGetter=function(t){Ua=t},t.updateImageNode=xu,Object.defineProperty(t,"__esModule",{value:!0})}));
2
2
  //# sourceMappingURL=index.js.map